From 9539f2cc440ef5b15352fa748d8d7230127fd491 Mon Sep 17 00:00:00 2001 From: XK4MiLX <62837435+XK4MiLX@users.noreply.github.com> Date: Fri, 4 Oct 2024 19:52:43 +0200 Subject: [PATCH 01/21] Initial --- HomeUI/src/views/apps/Management.vue | 1076 ++++++++++++++++++++++++-- ZelBack/src/services/appsService.js | 207 ++--- package.json | 1 + 3 files changed, 1134 insertions(+), 150 deletions(-) diff --git a/HomeUI/src/views/apps/Management.vue b/HomeUI/src/views/apps/Management.vue index 9d0c2bf90..a94c532a5 100644 --- a/HomeUI/src/views/apps/Management.vue +++ b/HomeUI/src/views/apps/Management.vue @@ -758,73 +758,242 @@ -

History Statistics 1 hour

-
+
-

Component: {{ component.name }}

- -
-
-
- -
- Loading... +
+ Stats Overview +
+ + History Statistics +
-
- -

- -

History Statistics 24 hours

-
-
-

Component: {{ component.name }}

- + +
+
+ + + + + + + -- Please select component -- + + + {{ component.name }} + + + + + + + + + + + +
+
+ + + + + + +
+
+ + + + + + +
-
-
- -
- Loading... + +
+
+
+ + Memory usage + +
+ +
+
+
+ + CPU Usage + +
+ +
+
+
+ + Network usage (aggregate) + +
+ +
+
+
+ + I/O usage (aggregate) + +
+ +
+
+
+ + Persistent Storage + +
+ +
+
+
+ + Root Filesystem (rootfs) + +
+ +
+
+
+ + Processes + +
+ +
+ +
+
+
+ +
+
+ + +
+
+
@@ -5932,6 +6101,11 @@ import { SerializeAddon } from 'xterm-addon-serialize'; import io from 'socket.io-client'; import useAppConfig from '@core/app-config/useAppConfig'; import AnsiToHtml from 'ansi-to-html'; +import { + Chart, LineController, LineElement, CategoryScale, LinearScale, PointElement, Tooltip, Legend, Title, Filler, +} from 'chart.js'; + +Chart.register(LineController, LineElement, CategoryScale, LinearScale, PointElement, Tooltip, Legend, Title, Filler); const projectId = 'df787edc6839c7de49d527bba9199eaa'; @@ -6026,6 +6200,59 @@ export default { }, data() { return { + noDat: false, + enableHistoryStatistics: false, + selectedTimeRange: 1 * 24 * 60 * 60 * 1000, + timeOptions: [ + { value: 15 * 60 * 1000, text: 'Last 15 Minutes' }, // 15 minutes in ms + { value: 30 * 60 * 1000, text: 'Last 30 Minutes' }, // 30 minutes in ms + { value: 1 * 60 * 60 * 1000, text: 'Last 1 Hour' }, // 1 hour in ms + { value: 2 * 60 * 60 * 1000, text: 'Last 2 Hours' }, // 2 hours in ms + { value: 3 * 60 * 60 * 1000, text: 'Last 3 Hours' }, // 3 hours in ms + { value: 5 * 60 * 60 * 1000, text: 'Last 5 Hours' }, // 5 hours in ms + { value: 1 * 24 * 60 * 60 * 1000, text: 'Last 1 Day' }, // 1 day in ms + { value: 2 * 24 * 60 * 60 * 1000, text: 'Last 2 Days' }, // 2 days in ms + { value: 3 * 24 * 60 * 60 * 1000, text: 'Last 3 Days' }, // 3 days in ms + { value: 7 * 24 * 60 * 60 * 1000, text: 'Last 7 Days' }, // 7 days in ms + ], + selectedPoints: 500, + pointsOptions: [5, 10, 25, 50, 100, 200, 300, 400, 500], + search: '', // Search query + currentPage: 1, // Current page for pagination + perPage: 5, // Default items per page + perPageOptions: [ + { value: 5, text: '5' }, + { value: 10, text: '10' }, + { value: 20, text: '20' }, + { value: 50, text: '50' }, + ], + processes: [], + titles: [ + { key: 'uid', label: 'UID' }, + { key: 'pid', label: 'PID' }, + { key: 'ppid', label: 'PPID' }, + { key: 'c', label: 'C' }, + { key: 'stime', label: 'STIME' }, + { key: 'tty', label: 'TTY' }, + { key: 'time', label: 'TIME' }, + { key: 'cmd', label: 'CMD' }, + ], + selectedContainerMonitoring: null, + refreshRateMonitoring: 5000, + containerOptions: [], + memoryChart: null, + diskFileSystemChart: null, + diskPersistentChart: null, + cpuChart: null, + refreshOptions: [ + { value: 5000, text: '5s' }, + { value: 10000, text: '10s' }, + { value: 30000, text: '30s' }, + ], + errorMessage: null, + timerStats: null, + memoryLimit: 1, + cpuSet: 1, logs: [], noLogs: false, manualInProgress: false, @@ -6482,6 +6709,17 @@ export default { }; }, computed: { + filteredProcesses() { + if (this.search) { + return this.processes.filter((process) => Object.values(process).some((value) => String(value).toLowerCase().includes(this.search.toLowerCase()))); + } + return this.processes; + }, + paginatedProcesses() { + const start = (this.currentPage - 1) * this.perPage; + const end = start + this.perPage; + return this.filteredProcesses.slice(start, end); + }, isDisabled() { return !!this.pollingEnabled || this.manualInProgress; }, @@ -6879,11 +7117,23 @@ export default { } } }, + selectedContainerMonitoring() { + if (!this.enableHistoryStatistics) { + if (this.timerStats) this.stopPollingStats(); + if (this.selectedContainer) this.startPollingStats(); + this.clearCharts(); + } + }, + refreshRateMonitoring() { + if (this.timerStats) this.stopPollingStats(); + this.startPollingStats(); + }, isComposeSingle(value) { if (value) { if (this.appSpecification.version >= 4) { this.selectedApp = this.appSpecification.compose[0].name; this.selectedAppVolume = this.appSpecification.compose[0].name; + this.selectedContainerMonitoring = this.appSpecification.compose[0].name; } } }, @@ -6979,12 +7229,612 @@ export default { this.getMultiplier(); this.getEnterpriseNodes(); this.getDaemonBlockCount(); + // this.initCharts(); }, beforeDestroy() { this.stopPolling(); + this.stopPollingStats(); window.removeEventListener('resize', this.onResize); }, methods: { + // Stats Section START + enableHistoryStatisticsChange() { + if (this.enableHistoryStatistics) { + this.stopPollingStats(); + this.clearCharts(); + } else { + this.clearCharts(); + this.startPollingStats(); + } + }, + LimitChartItems(chart) { + const datasetLength = chart.data.datasets[0].data.length; + if (datasetLength > this.selectedPoints) { + const excess = datasetLength - this.selectedPoints; + chart.data.labels = chart.data.labels.slice(excess); + chart.data.datasets.forEach((dataset) => { + dataset.data = dataset.data.slice(excess); + }); + chart.update({ + duration: 800, + lazy: false, + easing: 'easeOutBounce', + }); + } + }, + async scrollToPagination() { + await this.$nextTick(); + window.scrollTo(0, document.body.scrollHeight); + }, + processStatsData(statsData, configData, timeStamp = null) { + const memoryLimitBytes = statsData.memory_stats.limit; + this.memoryLimit = memoryLimitBytes; + const memoryUsageBytes = statsData.memory_stats.usage; + const memoryUsageMB = memoryUsageBytes; + const memoryUsagePercentage = ((memoryUsageBytes / memoryLimitBytes) * 100).toFixed(1); + const cpuUsage = statsData.cpu_stats.cpu_usage.total_usage - statsData.precpu_stats.cpu_usage.total_usage; + const systemCpuUsage = statsData.cpu_stats.system_cpu_usage - statsData.precpu_stats.system_cpu_usage; + const onlineCpus = statsData.cpu_stats.online_cpus; + const nanoCpus = configData.HostConfig.NanoCpus; + const cpuSize = (((cpuUsage / systemCpuUsage) * onlineCpus)).toFixed(1) || 0; + // eslint-disable-next-line no-mixed-operators + const cpuPercent = (cpuSize / (nanoCpus / 1e9) * 100).toFixed(1); + this.cpuSet = (nanoCpus / 1e9).toFixed(1); + const ioReadBytes = statsData.blkio_stats.io_service_bytes_recursive ? statsData.blkio_stats.io_service_bytes_recursive.find((i) => i.op.toLowerCase() === 'read')?.value || 0 : null; + const ioWriteBytes = statsData.blkio_stats.io_service_bytes_recursive ? statsData.blkio_stats.io_service_bytes_recursive.find((i) => i.op.toLowerCase() === 'write')?.value || 0 : null; + const networkRxBytes = statsData.networks.eth0?.rx_bytes || null; + const networkTxBytes = statsData.networks.eth0?.tx_bytes || null; + const diskUsageMounts = statsData.disk_stats?.appDataMounts || null; + const diskUsageDocker = statsData.disk_stats?.dockerVolume || null; + const diskUsageRootFs = statsData.disk_stats?.rootfs || null; + this.insertChartData(cpuPercent, memoryUsageMB, memoryUsagePercentage, networkRxBytes, networkTxBytes, ioReadBytes, ioWriteBytes, diskUsageMounts, diskUsageDocker, diskUsageRootFs, cpuSize, timeStamp); + }, + async fetchStats() { + try { + const appname = this.selectedContainerMonitoring ? `${this.selectedContainerMonitoring}_${this.appSpecification.name}` : this.appSpecification.name; + let statsResponse; + if (this.enableHistoryStatistics) { + statsResponse = await this.executeLocalCommand(`/apps/appmonitor/${appname}`); + } else { + statsResponse = await this.executeLocalCommand(`/apps/appstats/${appname}`); + } + const inspectResponse = await this.executeLocalCommand(`/apps/appinspect/${appname}`); + if (statsResponse.data.status === 'error') { + this.showToast('danger', statsResponse.data.data.message || statsResponse.data.data); + } else if (inspectResponse.data.status === 'error') { + this.showToast('danger', inspectResponse.data.data.message || inspectResponse.data.data); + } else { + if (!this.enableHistoryStatistics) { + this.fetchProcesses(appname); + } + const configData = inspectResponse.data; + const statsData = statsResponse.data; + + if (Array.isArray(statsData)) { + statsData.data.forEach((stats) => { + console.log(stats.timestamp); + console.log(stats.data); + this.processStatsData(stats.data, configData, stats.timestamp); + }); + } else { + console.log(statsData); + this.processStatsData(statsData, configData); + } + if (appname === this.selectedContainerMonitoring) { + this.updateCharts(); + } else { + this.clearCharts(); + } + } + } catch (error) { + console.error('Error fetching container data:', error); + } + }, + updateAxes() { + // Check and update the Y-axis limits for the memory chart + if (this.memoryChart.data.labels.length === 1) { + this.memoryChart.options.scales.y.max = this.memoryLimit * 1.2; + this.memoryChart.options.scales.y1.max = 120; + } + // Check and update the Y-axis limits for the CPU chart + if (this.cpuChart.data.labels.length === 1) { + this.cpuChart.options.scales.y.max = (this.cpuSet * 1.2).toFixed(1); + this.cpuChart.options.scales.y1.max = 120; + } + }, + insertChartData(cpuPercent, memoryUsageMB, memoryUsagePercentage, networkRxBytes, networkTxBytes, ioReadBytes, ioWriteBytes, diskUsageMounts, diskUsageDocker, diskUsageRootFs, cpuSize, timeStamp = null) { + const timeLabel = timeStamp === null ? new Date().toLocaleTimeString() : new Date(timeStamp).toLocaleTimeString(); + // Update memory chart + this.LimitChartItems(this.memoryChart); + this.memoryChart.data.labels.push(timeLabel); + this.memoryChart.data.datasets[0].data.push(memoryUsageMB); + this.memoryChart.data.datasets[1].data.push(memoryUsagePercentage); + // Update CPU chart + this.LimitChartItems(this.cpuChart); + this.cpuChart.data.labels.push(timeLabel); + this.cpuChart.data.datasets[0].data.push(cpuSize); + this.cpuChart.data.datasets[1].data.push(cpuPercent); + // Update Network chart + this.LimitChartItems(this.networkChart); + this.networkChart.data.labels.push(timeLabel); + this.networkChart.data.datasets[0].data.push(networkRxBytes); + this.networkChart.data.datasets[1].data.push(networkTxBytes); + // Update I/O chart + if (ioReadBytes !== null && ioWriteBytes !== null) { + this.LimitChartItems(this.ioChart); + this.ioChart.data.labels.push(timeLabel); + this.ioChart.data.datasets[0].data.push(ioReadBytes); + this.ioChart.data.datasets[1].data.push(ioWriteBytes); + } + // Update Persistent Storage chart + this.LimitChartItems(this.diskPersistentChart); + this.diskPersistentChart.data.labels.push(timeLabel); + this.diskPersistentChart.data.datasets[0].data.push(diskUsageMounts); + this.diskPersistentChart.data.datasets[1].data.push(diskUsageDocker); + this.diskPersistentChart.data.datasets[1].hidden = diskUsageDocker === 0; + // Update File System chart + this.LimitChartItems(this.diskFileSystemChart); + this.diskFileSystemChart.data.labels.push(timeLabel); + this.diskFileSystemChart.data.datasets[0].data.push(diskUsageRootFs); + this.updateAxes(); + this.noDat = true; + }, + updateCharts() { + // Update all charts after data insertion + this.memoryChart.update(); + this.cpuChart.update(); + this.networkChart.update(); + this.ioChart.update(); + this.diskPersistentChart.update(); + this.diskFileSystemChart.update(); + }, + formatDataSize(bytes, options = { base: 10, round: 1 }) { + if (bytes <= 5) { + return `${bytes} B`; + } + const base = options.base === 10 ? 1000 : 1024; // Base 10 for SI, Base 2 for binary + const labels = options.base === 10 ? ['B', 'KB', 'MB', 'GB'] : ['B', 'KiB', 'MiB', 'GiB']; + if (bytes === 0) return '0 B'; + let size = bytes; + let index = 0; + while (size >= base && index < labels.length - 1) { + size /= base; + // eslint-disable-next-line no-plusplus + index++; + } + return `${parseFloat(size.toFixed(options.round)).toString()} ${labels[index]}`; + }, + async fetchProcesses(appname) { + try { + const response = await this.executeLocalCommand(`/apps/apptop/${appname}`); + if (this.selectedContainerMonitoring === appname) { + this.processes = response.data?.data; + } else { + console.error('Selected container has changed. Proccess list discarded.'); + } + } catch (error) { + console.error('Error fetching processes:', error); + } + }, + initCharts() { + const memoryCtx = document.getElementById('memoryChart').getContext('2d'); + const cpuCtx = document.getElementById('cpuChart').getContext('2d'); + const networkCtx = document.getElementById('networkChart').getContext('2d'); + const ioCtx = document.getElementById('ioChart').getContext('2d'); + const diskPersistentCtx = document.getElementById('diskPersistentChart').getContext('2d'); + const diskFileSystemCtx = document.getElementById('diskFileSystemChart').getContext('2d'); + + const noDataPlugin = { + id: 'noDataPlugin', + beforeInit: () => { + console.log('noDataPlugin initialized'); // Check if plugin is loaded + }, + afterDraw: (chart) => { + if (chart.data.datasets.every((dataset) => dataset.data.length === 0) && this.noDat === true) { + const { ctx, width, height } = chart; + ctx.save(); + ctx.font = '16px Arial'; + ctx.fillStyle = 'rgba(0, 0, 0, 0.6)'; + ctx.textAlign = 'center'; + ctx.textBaseline = 'middle'; + ctx.fillText('No Data Available', width / 2, height / 2); + ctx.restore(); + } + }, + }; + Chart.register(noDataPlugin); + this.diskPersistentChart = new Chart(diskPersistentCtx, { + type: 'line', + data: { + labels: [], + datasets: [ + { + label: 'Bind', + data: [], + fill: true, + backgroundColor: 'rgba(119,255,132,0.3)', + borderColor: 'rgba(119,255,132,0.6)', + tension: 0.4, + }, + { + label: 'Volume', + data: [], + borderColor: 'rgba(155,99,132,1)', + borderDash: [5, 5], + pointRadius: 2, + borderWidth: 2, + tension: 0.5, + fill: false, + }, + + ], + }, + options: { + responsive: true, + scales: { + x: { title: { display: true, text: '' } }, + y: { title: { display: true, text: '' }, beginAtZero: true, ticks: { callback: (value) => this.formatDataSize(value, { base: 10, round: 0 }) } }, + }, + plugins: { + tooltip: { + mode: 'index', + intersect: false, + callbacks: { + label: (tooltipItem) => { + const datasetLabel = tooltipItem.dataset.label; + const dataValue = tooltipItem.raw; + return `${datasetLabel}: ${this.formatDataSize(dataValue, { base: 10, round: 1 })}`; + }, + }, + }, + legend: { + display: true, + labels: { + filter: (item) => { + // Check if diskPersistentChart is null + if (!this.diskPersistentChart) return true; // If null, do not display any labels + if (item.datasetIndex === 1) { + const datasetData = this.diskPersistentChart.data.datasets[item.datasetIndex]?.data; // Get the data for dataset index 1 + // Check if dataset exists and has values greater than zero + const hasValuesGreaterThanZero = Array.isArray(datasetData) && datasetData.some((value) => value > 0); + return hasValuesGreaterThanZero; // Return true to keep in legend + } + return true; + }, + }, + }, + }, + }, + }); + + this.diskFileSystemChart = new Chart(diskFileSystemCtx, { + type: 'line', + data: { + labels: [], + datasets: [ + { + label: 'File System (RootFS)', + data: [], + fill: true, + backgroundColor: 'rgba(159,155,132,0.3)', + borderColor: 'rgba(159,155,132,0.6)', + tension: 0.4, + }, + + ], + }, + options: { + responsive: true, + scales: { + x: { title: { display: true, text: '' } }, + y: { title: { display: true, text: '' }, beginAtZero: true, ticks: { callback: (value) => this.formatDataSize(value, { base: 10, round: 0 }) } }, + }, + plugins: { + tooltip: { + mode: 'index', + intersect: false, + callbacks: { + label: (tooltipItem) => { + const datasetLabel = tooltipItem.dataset.label; + const dataValue = tooltipItem.raw; + return `${datasetLabel}: ${this.formatDataSize(dataValue, { base: 10, round: 1 })}`; + }, + }, + }, + }, + }, + }); + + this.memoryChart = new Chart(memoryCtx, { + type: 'line', + data: { + labels: [], + datasets: [ + { + label: 'Memory Allocated', + data: [], + fill: true, + backgroundColor: 'rgba(151,187,205,0.4)', + borderColor: 'rgba(151,187,205,0.6)', + yAxisID: 'y', + pointRadius: 2, + borderWidth: 2, + tension: 0.4, + }, + { + label: 'Memory Utilization (%)', + data: [], + fill: false, + borderColor: 'rgba(255,99,132,1)', + borderDash: [5, 5], + yAxisID: 'y1', + pointRadius: 2, + borderWidth: 2, + tension: 0.4, + }, + ], + }, + options: { + responsive: true, + scales: { + x: { title: { display: true } }, + y: { + id: 'y', + title: { display: true }, + beginAtZero: true, + precision: 0, + ticks: { + callback: (value) => this.formatDataSize(value, { base: 2, round: 1 }), + }, + }, + y1: { + id: 'y1', + title: { + display: true, + }, + beginAtZero: true, + position: 'right', + grid: { + display: false, + }, + ticks: { + callback: (value) => `${value}%`, + }, + }, + }, + plugins: { + tooltip: { + mode: 'index', + intersect: false, + callbacks: { + label: (tooltipItem) => { + const datasetLabel = tooltipItem.dataset.label; + const dataValue = tooltipItem.raw; + if (datasetLabel.includes('%')) { + return `Memory Utilization: ${dataValue}%`; + } + return `${datasetLabel}: ${this.formatDataSize(dataValue, { base: 2, round: 1 })}`; + }, + footer: () => `Available Memory: ${this.formatDataSize(this.memoryLimit, { base: 2, round: 1 })}`, + }, + }, + }, + }, + }); + this.updateYAxisLimits(); + this.cpuChart = new Chart(cpuCtx, { + type: 'line', + data: { + labels: [], + datasets: [ + { + label: 'CPU Allocated', + data: [], + fill: true, + backgroundColor: 'rgba(255,99,132,0.4)', + borderColor: 'rgba(255,99,132,0.6)', + tension: 0.4, + }, + { + label: 'CPU Utilization (%)', + fill: false, + borderColor: 'rgba(255,99,132,1)', + borderDash: [5, 5], + yAxisID: 'y1', + pointRadius: 2, + borderWidth: 2, + tension: 0.4, + }, + + ], + }, + options: { + responsive: true, + scales: { + x: { title: { display: true } }, + y: { + id: 'y', + title: { display: true }, + beginAtZero: true, + ticks: { callback: (value) => `${value} CPU` }, + }, + y1: { + id: 'y1', + title: { + display: true, + }, + beginAtZero: true, + position: 'right', + grid: { + display: false, + }, + ticks: { + callback: (value) => `${value}%`, + }, + }, + + }, + plugins: { + tooltip: { + mode: 'index', + intersect: false, + callbacks: { + label: (tooltipItem) => { + const datasetLabel = tooltipItem.dataset.label; + const dataValue = tooltipItem.raw; + if (datasetLabel.includes('%')) { + return `CPU Utilization: ${dataValue}%`; + } + return `CPU Allocated: ${dataValue} CPU`; + }, + }, + }, + }, + }, + }); + this.updateYAxisCPU(); + this.networkChart = new Chart(networkCtx, { + type: 'line', + data: { + labels: [], + datasets: [ + { + label: 'RX on eth0', + data: [], + fill: true, + backgroundColor: 'rgba(99,255,132,0.4)', + borderColor: 'rgba(99,255,132,0.6)', + tension: 0.4, + }, + { + label: 'TX on eth0', + data: [], + fill: false, + borderColor: 'rgba(132,99,255,1)', + tension: 0.4, + }, + ], + }, + options: { + responsive: true, + scales: { + x: { title: { display: true, text: '' } }, + y: { title: { display: true, text: '' }, beginAtZero: true, ticks: { callback: (value) => this.formatDataSize(value, { base: 10, round: 0 }) } }, + }, + plugins: { + tooltip: { + mode: 'index', + intersect: false, + callbacks: { + label: (tooltipItem) => { + const datasetLabel = tooltipItem.dataset.label; + const dataValue = tooltipItem.raw; + return `${datasetLabel}: ${this.formatDataSize(dataValue)}`; + }, + }, + }, + }, + }, + }); + + this.ioChart = new Chart(ioCtx, { + type: 'line', + data: { + labels: [], + datasets: [ + { + label: 'Read', + data: [], + fill: false, + borderColor: 'rgba(99,132,255,0.6)', + tension: 0.4, + }, + { + label: 'Write', + data: [], + fill: true, + backgroundColor: 'rgba(255,132,99,0.4)', + borderColor: 'rgba(255,132,99,0.6)', + tension: 0.4, + }, + ], + }, + options: { + responsive: true, + scales: { + x: { title: { display: true } }, + y: { title: { display: true }, beginAtZero: true, ticks: { callback: (value) => this.formatDataSize(value, { base: 10, round: 0 }) } }, + }, + plugins: { + noDataPlugin, + tooltip: { + mode: 'index', + intersect: false, + callbacks: { + label: (tooltipItem) => { + const datasetLabel = tooltipItem.dataset.label; + const dataValue = tooltipItem.raw; + return `${datasetLabel}: ${this.formatDataSize(dataValue)}`; + }, + }, + }, + }, + }, + }); + }, + startPollingStats() { + this.timerStats = setInterval(() => { + this.fetchStats(); + }, this.refreshRateMonitoring); + }, + stopPollingStats() { + clearInterval(this.timerStats); + this.timerStats = null; + }, + clearCharts() { + // Clear memory chart data + this.memoryChart.data.labels = []; + this.memoryChart.data.datasets.forEach((dataset) => { + dataset.data = []; + }); + this.memoryChart.options.scales.y.max = 1.2; + this.memoryChart.options.scales.y1.max = 120; + this.memoryChart.update(); + + this.memoryChart.update(); + // Clear CPU chart data + this.cpuChart.data.labels = []; + this.cpuChart.data.datasets.forEach((dataset) => { + dataset.data = []; + }); + this.cpuChart.options.scales.y.max = 1.2; + this.cpuChart.options.scales.y1.max = 120; + this.cpuChart.update(); + // Clear Network chart data + this.networkChart.data.labels = []; + this.networkChart.data.datasets.forEach((dataset) => { + dataset.data = []; + }); + this.networkChart.update(); + // Clear I/O chart data + this.ioChart.data.labels = []; + this.ioChart.data.datasets.forEach((dataset) => { + dataset.data = []; + }); + this.ioChart.update(); + this.diskPersistentChart.data.labels = []; + this.diskPersistentChart.data.datasets.forEach((dataset) => { + dataset.data = []; + }); + this.diskPersistentChart.update(); + this.diskFileSystemChart.data.labels = []; + this.diskFileSystemChart.data.datasets.forEach((dataset) => { + dataset.data = []; + }); + this.diskFileSystemChart.update(); + this.noDat = false; + }, + // Stats Section END extractTimestamp(log) { return log.split(' ')[0]; }, @@ -8716,6 +9566,7 @@ export default { this.getApplicationStats(); break; case 4: + this.initCharts(); this.getApplicationMonitoring(); // this.getApplicationMonitoringStream(); // TODO UI with graphs break; @@ -11584,6 +12435,105 @@ td .ellipsis-wrapper { transition: color 0.6s ease, border-color 0.6s ease, box-shadow 0.6s ease, opacity 0.6s ease, transform 0.6s ease; } +/* Main Container */ +.container { + max-width: 1500px; + width: 100%; /* Use full available width */ + padding: 0; + margin: 0 auto; + display: flex; + flex-direction: column; + justify-content: space-between; +} +/* Flexbox for container selection and refresh rate */ +.flex-container { + height: 50%; + justify-content: space-between; + flex-wrap: nowrap; + padding: 0.5vw; +} +/* Chart Grid */ +.charts-grid { + display: grid; + grid-template-columns: repeat(2, 1fr); + gap: 1vw; + width: 100%; + margin: 1vh; +} +/* Chart Wrapper */ +.chart-wrapper { + padding: 10px; /* Adjust as needed */ + border-radius: 10px; + box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1); + width: 100%; + min-width: 600px; + overflow: hidden; + justify-content: center; + align-items: center; +} + +.chart-title-container { + align-items: center; + display: flex; + margin-right: 10px; /* Odstęp między tytułem a wykresem */ +} + +.table-responsive { + overflow-x: auto; /* Enable horizontal scrolling */ + box-shadow: 0px 6px 6px rgba(0, 0, 0, 0.1); +} + +.table { + table-layout: auto; /* Fixes the table layout so columns don't shift */ + width: 100%; /* Take full width of the container */ +} + +.table th, .table td { + white-space: nowrap; /* Prevent text from wrapping */ + border: none; /* Remove borders */ + background-color: transparent; /* Background color for cells */ + +} + +.chart-title { + margin-left: 8px; /* Odstęp między ikoną a tytułem */ + font-size: 18px; + font-weight: bold; +} + +.icon-large { + font-size: 24px !important; /* Ensure this size takes priority */ +} + +/* Chart canvas responsiveness */ +.chart-wrapper canvas { + max-width: 100%; + height: 100%; +} + +/* Adjust grid for smaller screens */ +@media (max-width: 1200px) { + .charts-grid { + grid-template-columns: 1fr; + gap: 2vw; + margin: 1vh 0; + } +} + +/* Ensure grid returns to original layout */ +@media (min-width: 1200px) { + .charts-grid { + grid-template-columns: repeat(2, 1fr); + gap: 1vw; + } + /* Wyśrodkowanie ostatniego elementu, jeśli liczba elementów jest nieparzysta */ + .charts-grid > .chart-wrapper:nth-last-child(1):nth-child(odd) { + grid-column: 1 / -1; /* Rozciągnij na całą szerokość */ + justify-self: center; /* Wyśrodkuj poziomo */ + width: 100%; /* Ogranicz szerokość do 50%, jeśli chcesz mniejszy element */ + } +} + input[type="number"]::-webkit-outer-spin-button, input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: auto; diff --git a/ZelBack/src/services/appsService.js b/ZelBack/src/services/appsService.js index 124fb4994..489818166 100644 --- a/ZelBack/src/services/appsService.js +++ b/ZelBack/src/services/appsService.js @@ -1153,35 +1153,70 @@ async function getAppFolderSize(appName) { } /** - * Returns total app container storage in bytes - * @param {string} appName - name or id of the container - * @returns {Promise} + * Retrieves the storage usage of a specified Docker container, including bind mounts and volume mounts. + * @param {string} appName The name of the Docker container to inspect. + * @returns {Promise} An object containing the sizes of bind mounts, volume mounts, root filesystem, total used storage, and status. + * - bind: Size of bind mounts in bytes. + * - volume: Size of volume mounts in bytes. + * - rootfs: Size of the container's root filesystem in bytes. + * - used: Total used size (sum of bind, volume, and rootfs sizes) in bytes. + * - status: 'success' if the operation succeeded, 'error' otherwise. + * - message: An error message if the operation failed. */ async function getContainerStorage(appName) { try { const containerInfo = await dockerService.dockerContainerInspect(appName, { size: true }); - let containerTotalSize = serviceHelper.ensureNumber(containerInfo.SizeRootFs) || 0; - // traverse mounts/volumes to find size used on host + let bindMountsSize = 0; + let volumeMountsSize = 0; + const containerRootFsSize = serviceHelper.ensureNumber(containerInfo.SizeRootFs) || 0; if (containerInfo?.Mounts?.length) { await Promise.all(containerInfo.Mounts.map(async (mount) => { let source = mount?.Source; + const mountType = mount?.Type; if (source) { - // remove /appdata to get true size of the app folder - source = source.replace('/appdata', ''); - const exec = `sudo du -sb ${source}`; - const mountInfo = await cmdAsync(exec); - const mountSize = serviceHelper.ensureNumber(mountInfo?.split(source)[0]) || 0; - if (typeof mountSize === 'number' && !Number.isNaN(mountSize)) { - containerTotalSize += mountSize; + if (mountType === 'bind') { + source = source.replace('/appdata', ''); + const exec = `sudo du -sb ${source}`; + const mountInfo = await cmdAsync(exec); + if (mountInfo) { + const sizeNum = serviceHelper.ensureNumber(mountInfo.split('\t')[0]) || 0; + bindMountsSize += sizeNum; + } else { + log.warn(`No mount info returned for source: ${source}`); + } + } else if (mountType === 'volume') { + const exec = `sudo du -sb ${source}`; + const mountInfo = await cmdAsync(exec); + if (mountInfo) { + const sizeNum = serviceHelper.ensureNumber(mountInfo.split('\t')[0]) || 0; + volumeMountsSize += sizeNum; + } else { + log.warn(`No mount info returned for source: ${source}`); + } + } else { + log.warn(`Unsupported mount type or source: Type: ${mountType}, Source: ${source}`); } } })); - return containerTotalSize; } - return containerTotalSize; + const usedSize = bindMountsSize + volumeMountsSize + containerRootFsSize; + return { + bind: bindMountsSize, + volume: volumeMountsSize, + rootfs: containerRootFsSize, + used: usedSize, + status: 'success', + }; } catch (error) { - log.error(error); - return 0; + log.error(`Error fetching container storage: ${error.message}`); + return { + bind: 0, + volume: 0, + rootfs: 0, + used: 0, + status: 'error', + message: error.message, + }; } } @@ -1193,13 +1228,11 @@ function startAppMonitoring(appName) { if (!appName) { throw new Error('No App specified'); } else { - appsMonitored[appName] = {}; // oneMinuteInterval, fifteenMinInterval, oneMinuteStatsStore, fifteenMinStatsStore - if (!appsMonitored[appName].fifteenMinStatsStore) { - appsMonitored[appName].fifteenMinStatsStore = []; - } - if (!appsMonitored[appName].oneMinuteStatsStore) { - appsMonitored[appName].oneMinuteStatsStore = []; + appsMonitored[appName] = {}; // Initialize the app's monitoring object + if (!appsMonitored[appName].statsStore) { + appsMonitored[appName].statsStore = []; } + // Clear previous interval for this app to prevent multiple intervals clearInterval(appsMonitored[appName].oneMinuteInterval); appsMonitored[appName].oneMinuteInterval = setInterval(async () => { try { @@ -1216,52 +1249,17 @@ function startAppMonitoring(appName) { return; } const statsNow = await dockerService.dockerContainerStats(appName); - const containerTotalSize = await getContainerStorage(appName); - - // const appFolderName = dockerService.getAppDockerNameIdentifier(appName).substring(1); - // const folderSize = await getAppFolderSize(appFolderName); - statsNow.disk_stats = { - used: containerTotalSize ?? 0, - }; - appsMonitored[appName].oneMinuteStatsStore.unshift({ timestamp: Date.now(), data: statsNow }); // Most recent stats object is at position 0 in the array - if (appsMonitored[appName].oneMinuteStatsStore.length > 60) { - appsMonitored[appName].oneMinuteStatsStore.length = 60; // Store stats every 1 min for the last hour only - } + const containerStorageInfo = await getContainerStorage(appName); + statsNow.disk_stats = containerStorageInfo; + const now = Date.now(); + appsMonitored[appName].statsStore({ timestamp: now, data: statsNow }); + appsMonitored[appName].statsStore = appsMonitored[appName].statsStore.filter( + (stat) => now - stat.timestamp <= 10 * 60 * 1000, + ); } catch (error) { log.error(error); } }, 1 * 60 * 1000); - clearInterval(appsMonitored[appName].fifteenMinInterval); - appsMonitored[appName].fifteenMinInterval = setInterval(async () => { - try { - if (!appsMonitored[appName]) { - log.error(`Monitoring of ${appName} already stopped`); - clearInterval(appsMonitored[appName].fifteenMinInterval); - return; - } - const dockerContainer = await dockerService.getDockerContainerOnly(appName); - if (!dockerContainer) { - log.error(`Monitoring of ${appName} not possible. App does not exist. Forcing stopping of monitoring`); - // eslint-disable-next-line no-use-before-define - stopAppMonitoring(appName, true); - return; - } - const statsNow = await dockerService.dockerContainerStats(appName); - const containerTotalSize = await getContainerStorage(appName); - - // const appFolderName = dockerService.getAppDockerNameIdentifier(appName).substring(1); - // const folderSize = await getAppFolderSize(appFolderName); - statsNow.disk_stats = { - used: containerTotalSize ?? 0, - }; - appsMonitored[appName].fifteenMinStatsStore.unshift({ timestamp: Date.now(), data: statsNow }); // Most recent stats object is at position 0 in the array - if (appsMonitored[appName].oneMinuteStatsStore.length > 96) { - appsMonitored[appName].fifteenMinStatsStore.length = 96; // Store stats every 15 mins for the last day only - } - } catch (error) { - log.error(error); - } - }, 15 * 60 * 1000); } } @@ -1274,13 +1272,53 @@ function startAppMonitoring(appName) { function stopAppMonitoring(appName, deleteData) { if (appsMonitored[appName]) { clearInterval(appsMonitored[appName].oneMinuteInterval); - clearInterval(appsMonitored[appName].fifteenMinInterval); } if (deleteData) { delete appsMonitored[appName]; } } +/** + * Calculates the average CPU usage for a monitored app over the last 7 days. + * @param {string} appName The name of the app for which to calculate CPU usage. + * @returns {object|null} An object containing the average CPU usage difference and average system CPU usage difference, or null if the app is not monitored or has no stats data. + */ +function getAverageCpuUsage(appName) { + const now = Date.now(); + + if (!appsMonitored[appName] || !appsMonitored[appName].statsStore) { + log.error(`App ${appName} is not being monitored or has no stats data.`); + return null; + } + + const stats = appsMonitored[appName].statsStore.filter( + (stat) => now - stat.timestamp <= 7 * 24 * 60 * 60 * 1000, + ); + + if (stats.length === 0) { + return null; + } + + let totalCpuUsageDiff = 0; + let totalSystemCpuUsageDiff = 0; + + stats.forEach((stat) => { + const cpuUsageDiff = stat.data.cpu_stats.cpu_usage.total_usage - stat.data.precpu_stats.cpu_usage.total_usage; + const systemCpuUsageDiff = stat.data.cpu_stats.system_cpu_usage - stat.data.precpu_stats.system_cpu_usage; + + totalCpuUsageDiff += cpuUsageDiff; + totalSystemCpuUsageDiff += systemCpuUsageDiff; + }); + + const avgCpuUsageDiff = totalCpuUsageDiff / stats.length; + const avgSystemCpuUsageDiff = totalSystemCpuUsageDiff / stats.length; + + return { + avgCpuUsageDiff, + avgSystemCpuUsageDiff, + }; +} + /** * Starts app monitoring for all apps. * @param {array} appSpecsToMonitor Array of application specs to be monitored @@ -9637,22 +9675,19 @@ async function checkApplicationsCpuUSage() { // eslint-disable-next-line no-restricted-syntax for (const app of appsInstalled) { if (app.version <= 3) { - stats = appsMonitored[app.name].oneMinuteStatsStore; + const averageStats = getAverageCpuUsage(app.name); + stats = appsMonitored[app.name].statsStore; // eslint-disable-next-line no-await-in-loop const inspect = await dockerService.dockerContainerInspect(app.name); if (inspect && stats.length > 55) { const nanoCpus = inspect.HostConfig.NanoCpus; let cpuThrottling = true; - // eslint-disable-next-line no-restricted-syntax - for (const stat of stats) { - const cpuUsage = stat.data.cpu_stats.cpu_usage.total_usage - stat.data.precpu_stats.cpu_usage.total_usage; - const systemCpuUsage = stat.data.cpu_stats.system_cpu_usage - stat.data.precpu_stats.system_cpu_usage; - const cpu = ((cpuUsage / systemCpuUsage) * stat.data.cpu_stats.online_cpus * 100) / app.cpu || 0; - const realCpu = cpu / (nanoCpus / app.cpu / 1e9); - if (realCpu < 92) { - cpuThrottling = false; - break; - } + const cpuUsage = averageStats.avgCpuUsageDiff; + const systemCpuUsage = averageStats.avgSystemCpuUsageDiff; + const cpu = ((cpuUsage / systemCpuUsage) * stats[0].data.cpu_stats.online_cpus * 100) / app.cpu || 0; + const realCpu = cpu / (nanoCpus / app.cpu / 1e9); + if (realCpu < 92) { + cpuThrottling = false; } log.info(`checkApplicationsCpuUSage ${app.name} cpu high load: : ${cpuThrottling}`); if (cpuThrottling && app.cpu > 1) { @@ -9675,22 +9710,19 @@ async function checkApplicationsCpuUSage() { } else { // eslint-disable-next-line no-restricted-syntax for (const appComponent of app.compose) { - stats = appsMonitored[`${appComponent.name}_${app.name}`].oneMinuteStatsStore; + stats = appsMonitored[`${appComponent.name}_${app.name}`].statsStore; + const averageStats = getAverageCpuUsage(`${appComponent.name}_${app.name}`); // eslint-disable-next-line no-await-in-loop const inspect = await dockerService.dockerContainerInspect(`${appComponent.name}_${app.name}`); if (inspect && stats.length > 55) { const nanoCpus = inspect.HostConfig.NanoCpus; let cpuThrottling = true; - // eslint-disable-next-line no-restricted-syntax - for (const stat of stats) { - const cpuUsage = stat.data.cpu_stats.cpu_usage.total_usage - stat.data.precpu_stats.cpu_usage.total_usage; - const systemCpuUsage = stat.data.cpu_stats.system_cpu_usage - stat.data.precpu_stats.system_cpu_usage; - const cpu = ((cpuUsage / systemCpuUsage) * 100 * stat.data.cpu_stats.online_cpus) / appComponent.cpu || 0; - const realCpu = cpu / (nanoCpus / appComponent.cpu / 1e9); - if (realCpu < 92) { - cpuThrottling = false; - break; - } + const cpuUsage = averageStats.avgCpuUsageDiff; + const systemCpuUsage = averageStats.avgSystemCpuUsageDiff; + const cpu = ((cpuUsage / systemCpuUsage) * stats[0].data.cpu_stats.online_cpus * 100) / appComponent.cpu || 0; + const realCpu = cpu / (nanoCpus / appComponent.cpu / 1e9); + if (realCpu < 92) { + cpuThrottling = false; } log.info(`checkApplicationsCpuUSage ${appComponent.name}_${app.name} cpu high load: : ${cpuThrottling}`); if (cpuThrottling && appComponent.cpu > 1) { @@ -13206,6 +13238,7 @@ module.exports = { getAppFolderSize, startAppMonitoring, stopMonitoringOfApps, + getAverageCpuUsage, getNodeSpecs, setNodeSpecs, returnNodeSpecs, diff --git a/package.json b/package.json index fd293abe7..01f000380 100644 --- a/package.json +++ b/package.json @@ -143,6 +143,7 @@ "bootstrap-vue": "~2.23.1", "chai": "~4.3.10", "chai-as-promised": "~7.1.1", + "chart.js": "~4.4.4", "concurrently": "~8.2.2", "copy-webpack-plugin": "~11.0.0", "core-js": "~3.35.0", From 360db362ed7d106882126ef443e7c73411ebb7ab Mon Sep 17 00:00:00 2001 From: XK4MiLX <62837435+XK4MiLX@users.noreply.github.com> Date: Fri, 4 Oct 2024 20:29:17 +0200 Subject: [PATCH 02/21] add logs --- ZelBack/src/services/appsService.js | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/ZelBack/src/services/appsService.js b/ZelBack/src/services/appsService.js index 489818166..064873d67 100644 --- a/ZelBack/src/services/appsService.js +++ b/ZelBack/src/services/appsService.js @@ -1076,11 +1076,7 @@ async function appMonitor(req, res) { const authorized = await verificationHelper.verifyPrivilege('appownerabove', req, mainAppName); if (authorized === true) { if (appsMonitored[appname]) { - const response = { - lastHour: appsMonitored[appname].oneMinuteStatsStore, - lastDay: appsMonitored[appname].fifteenMinStatsStore, - }; - + const response = appsMonitored[appname].statsStore; const appResponse = messageHelper.createDataMessage(response); res.json(appResponse); } else throw new Error('No data available'); @@ -1228,6 +1224,7 @@ function startAppMonitoring(appName) { if (!appName) { throw new Error('No App specified'); } else { + log.info('Initialize Monitoring...'); appsMonitored[appName] = {}; // Initialize the app's monitoring object if (!appsMonitored[appName].statsStore) { appsMonitored[appName].statsStore = []; From 0af01abe0a4a7192eb881edcac3e71f9133686d0 Mon Sep 17 00:00:00 2001 From: XK4MiLX <62837435+XK4MiLX@users.noreply.github.com> Date: Fri, 4 Oct 2024 20:39:55 +0200 Subject: [PATCH 03/21] fix statsStore --- ZelBack/src/services/appsService.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ZelBack/src/services/appsService.js b/ZelBack/src/services/appsService.js index 064873d67..17ead604f 100644 --- a/ZelBack/src/services/appsService.js +++ b/ZelBack/src/services/appsService.js @@ -1249,7 +1249,7 @@ function startAppMonitoring(appName) { const containerStorageInfo = await getContainerStorage(appName); statsNow.disk_stats = containerStorageInfo; const now = Date.now(); - appsMonitored[appName].statsStore({ timestamp: now, data: statsNow }); + appsMonitored[appName].statsStore.push({ timestamp: now, data: statsNow }); appsMonitored[appName].statsStore = appsMonitored[appName].statsStore.filter( (stat) => now - stat.timestamp <= 10 * 60 * 1000, ); From 74200004a84bed9a0d37887dae41b3b33cbfc6d7 Mon Sep 17 00:00:00 2001 From: XK4MiLX <62837435+XK4MiLX@users.noreply.github.com> Date: Sat, 5 Oct 2024 00:00:29 +0200 Subject: [PATCH 04/21] [ADD] disk_stats in appStats --- ZelBack/src/services/appsService.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ZelBack/src/services/appsService.js b/ZelBack/src/services/appsService.js index 17ead604f..914307cea 100644 --- a/ZelBack/src/services/appsService.js +++ b/ZelBack/src/services/appsService.js @@ -1040,6 +1040,9 @@ async function appStats(req, res) { const authorized = await verificationHelper.verifyPrivilege('appownerabove', req, mainAppName); if (authorized === true) { const response = await dockerService.dockerContainerStats(appname); + // eslint-disable-next-line no-use-before-define + const containerStorageInfo = await getContainerStorage(appname); + response.disk_stats = containerStorageInfo; const appResponse = messageHelper.createDataMessage(response); res.json(appResponse); } else { From ff3520f4d95e0b4dd3802dbe100a00c4620ad0f8 Mon Sep 17 00:00:00 2001 From: XK4MiLX <62837435+XK4MiLX@users.noreply.github.com> Date: Sat, 5 Oct 2024 10:07:18 +0200 Subject: [PATCH 05/21] add more logs --- ZelBack/src/services/appsService.js | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/ZelBack/src/services/appsService.js b/ZelBack/src/services/appsService.js index 914307cea..0d34d3a69 100644 --- a/ZelBack/src/services/appsService.js +++ b/ZelBack/src/services/appsService.js @@ -1253,8 +1253,11 @@ function startAppMonitoring(appName) { statsNow.disk_stats = containerStorageInfo; const now = Date.now(); appsMonitored[appName].statsStore.push({ timestamp: now, data: statsNow }); + const statsStoreSizeInBytes = new TextEncoder().encode(JSON.stringify(appsMonitored[appName].statsStore)).length; + const estimatedSizeInMB = statsStoreSizeInBytes / (1024 * 1024); + log.info(`Estimated size of statsStore over 7 days: ${estimatedSizeInMB.toFixed(2)} MB`); appsMonitored[appName].statsStore = appsMonitored[appName].statsStore.filter( - (stat) => now - stat.timestamp <= 10 * 60 * 1000, + (stat) => now - stat.timestamp <= 7 * 24 * 60 * 60 * 1000, ); } catch (error) { log.error(error); @@ -1279,7 +1282,7 @@ function stopAppMonitoring(appName, deleteData) { } /** - * Calculates the average CPU usage for a monitored app over the last 7 days. + * Calculates the average CPU usage for a monitored app over the last 1 hour. * @param {string} appName The name of the app for which to calculate CPU usage. * @returns {object|null} An object containing the average CPU usage difference and average system CPU usage difference, or null if the app is not monitored or has no stats data. */ @@ -1292,7 +1295,7 @@ function getAverageCpuUsage(appName) { } const stats = appsMonitored[appName].statsStore.filter( - (stat) => now - stat.timestamp <= 7 * 24 * 60 * 60 * 1000, + (stat) => now - stat.timestamp <= 60 * 60 * 1000, ); if (stats.length === 0) { @@ -1312,7 +1315,7 @@ function getAverageCpuUsage(appName) { const avgCpuUsageDiff = totalCpuUsageDiff / stats.length; const avgSystemCpuUsageDiff = totalSystemCpuUsageDiff / stats.length; - + log.info(`${avgCpuUsageDiff}, ${avgSystemCpuUsageDiff}`); return { avgCpuUsageDiff, avgSystemCpuUsageDiff, @@ -9686,6 +9689,8 @@ async function checkApplicationsCpuUSage() { const systemCpuUsage = averageStats.avgSystemCpuUsageDiff; const cpu = ((cpuUsage / systemCpuUsage) * stats[0].data.cpu_stats.online_cpus * 100) / app.cpu || 0; const realCpu = cpu / (nanoCpus / app.cpu / 1e9); + log.info(`CPU usage: ${realCpu}`); + log.info(`checkApplicationsCpuUSage ${app.name} cpu high load: : ${cpuThrottling}`); if (realCpu < 92) { cpuThrottling = false; } From 1d352d808984897d371722fd7b162d5f3e9d6db6 Mon Sep 17 00:00:00 2001 From: XK4MiLX <62837435+XK4MiLX@users.noreply.github.com> Date: Sat, 5 Oct 2024 11:47:43 +0200 Subject: [PATCH 06/21] dockerContainerLogsPolling logs cleanup --- ZelBack/src/services/dockerService.js | 16 +++++----------- 1 file changed, 5 insertions(+), 11 deletions(-) diff --git a/ZelBack/src/services/dockerService.js b/ZelBack/src/services/dockerService.js index eacf88efd..19aa1570a 100644 --- a/ZelBack/src/services/dockerService.js +++ b/ZelBack/src/services/dockerService.js @@ -409,15 +409,11 @@ async function dockerContainerLogs(idOrName, lines) { async function dockerContainerLogsPolling(idOrName, lineCount, sinceTimestamp, callback) { try { - console.log('Starting dockerContainerLogsPolling'); const dockerContainer = await getDockerContainerByIdOrName(idOrName); - console.log(`Retrieved container: ${idOrName}`); - const logStream = new stream.PassThrough(); let logBuffer = ''; logStream.on('data', (chunk) => { - console.log('Received chunk of data'); logBuffer += chunk.toString('utf8'); const lines = logBuffer.split('\n'); logBuffer = lines.pop(); @@ -432,14 +428,13 @@ async function dockerContainerLogsPolling(idOrName, lineCount, sinceTimestamp, c }); logStream.on('error', (error) => { - console.error('Log stream encountered an error:', error); + log.error('Log stream encountered an error:', error); if (callback) { callback(error); } }); logStream.on('end', () => { - console.log('logStream ended'); if (callback) { callback(null, 'Stream ended'); // Notify end of logs } @@ -460,7 +455,7 @@ async function dockerContainerLogsPolling(idOrName, lineCount, sinceTimestamp, c // eslint-disable-next-line consistent-return dockerContainer.logs(logOptions, (err, mystream) => { if (err) { - console.error('Error fetching logs:', err); + log.error('Error fetching logs:', err); if (callback) { callback(err); } @@ -472,13 +467,12 @@ async function dockerContainerLogsPolling(idOrName, lineCount, sinceTimestamp, c logStream.end(); }, 1500); mystream.on('end', () => { - console.log('mystream ended'); logStream.end(); resolve(); }); mystream.on('error', (error) => { - console.error('Stream error:', error); + log.error('Stream error:', error); logStream.end(); if (callback) { callback(error); @@ -486,7 +480,7 @@ async function dockerContainerLogsPolling(idOrName, lineCount, sinceTimestamp, c reject(error); }); } catch (error) { - console.error('Error during stream processing:', error); + log.error('Error during stream processing:', error); if (callback) { callback(new Error('An error occurred while processing the log stream')); } @@ -495,7 +489,7 @@ async function dockerContainerLogsPolling(idOrName, lineCount, sinceTimestamp, c }); }); } catch (error) { - console.error('Error in dockerContainerLogsPolling:', error); + log.error('Error in dockerContainerLogsPolling:', error); if (callback) { callback(error); } From 888753307e0a241bc62d9fe46c4699cf8dc1db06 Mon Sep 17 00:00:00 2001 From: XK4MiLX <62837435+XK4MiLX@users.noreply.github.com> Date: Sat, 5 Oct 2024 13:28:51 +0200 Subject: [PATCH 07/21] add logs --- ZelBack/src/services/appsService.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ZelBack/src/services/appsService.js b/ZelBack/src/services/appsService.js index 0d34d3a69..f3580ba32 100644 --- a/ZelBack/src/services/appsService.js +++ b/ZelBack/src/services/appsService.js @@ -9689,11 +9689,10 @@ async function checkApplicationsCpuUSage() { const systemCpuUsage = averageStats.avgSystemCpuUsageDiff; const cpu = ((cpuUsage / systemCpuUsage) * stats[0].data.cpu_stats.online_cpus * 100) / app.cpu || 0; const realCpu = cpu / (nanoCpus / app.cpu / 1e9); - log.info(`CPU usage: ${realCpu}`); - log.info(`checkApplicationsCpuUSage ${app.name} cpu high load: : ${cpuThrottling}`); if (realCpu < 92) { cpuThrottling = false; } + log.info(`CPU usage: ${realCpu}%`); log.info(`checkApplicationsCpuUSage ${app.name} cpu high load: : ${cpuThrottling}`); if (cpuThrottling && app.cpu > 1) { if (nanoCpus / app.cpu / 1e9 === 1) { @@ -9729,6 +9728,7 @@ async function checkApplicationsCpuUSage() { if (realCpu < 92) { cpuThrottling = false; } + log.info(`CPU usage: ${realCpu}%`); log.info(`checkApplicationsCpuUSage ${appComponent.name}_${app.name} cpu high load: : ${cpuThrottling}`); if (cpuThrottling && appComponent.cpu > 1) { if (nanoCpus / appComponent.cpu / 1e9 === 1) { From 1829662562408e424f9ec4b6e005239162703e1f Mon Sep 17 00:00:00 2001 From: XK4MiLX <62837435+XK4MiLX@users.noreply.github.com> Date: Sat, 5 Oct 2024 20:27:51 +0200 Subject: [PATCH 08/21] add logs, monitoring interval 3min --- ZelBack/src/services/appsService.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/ZelBack/src/services/appsService.js b/ZelBack/src/services/appsService.js index f3580ba32..001f81fa1 100644 --- a/ZelBack/src/services/appsService.js +++ b/ZelBack/src/services/appsService.js @@ -1255,14 +1255,14 @@ function startAppMonitoring(appName) { appsMonitored[appName].statsStore.push({ timestamp: now, data: statsNow }); const statsStoreSizeInBytes = new TextEncoder().encode(JSON.stringify(appsMonitored[appName].statsStore)).length; const estimatedSizeInMB = statsStoreSizeInBytes / (1024 * 1024); - log.info(`Estimated size of statsStore over 7 days: ${estimatedSizeInMB.toFixed(2)} MB`); + log.info(`Size of stats for ${appName}: ${estimatedSizeInMB.toFixed(2)} MB`); appsMonitored[appName].statsStore = appsMonitored[appName].statsStore.filter( (stat) => now - stat.timestamp <= 7 * 24 * 60 * 60 * 1000, ); } catch (error) { log.error(error); } - }, 1 * 60 * 1000); + }, 3 * 60 * 1000); } } @@ -9682,7 +9682,7 @@ async function checkApplicationsCpuUSage() { stats = appsMonitored[app.name].statsStore; // eslint-disable-next-line no-await-in-loop const inspect = await dockerService.dockerContainerInspect(app.name); - if (inspect && stats.length > 55) { + if (inspect && stats.length > 19) { const nanoCpus = inspect.HostConfig.NanoCpus; let cpuThrottling = true; const cpuUsage = averageStats.avgCpuUsageDiff; @@ -9692,7 +9692,7 @@ async function checkApplicationsCpuUSage() { if (realCpu < 92) { cpuThrottling = false; } - log.info(`CPU usage: ${realCpu}%`); + log.info(`CPU usage: ${realCpu.toFixed(2)}%`); log.info(`checkApplicationsCpuUSage ${app.name} cpu high load: : ${cpuThrottling}`); if (cpuThrottling && app.cpu > 1) { if (nanoCpus / app.cpu / 1e9 === 1) { @@ -9718,7 +9718,7 @@ async function checkApplicationsCpuUSage() { const averageStats = getAverageCpuUsage(`${appComponent.name}_${app.name}`); // eslint-disable-next-line no-await-in-loop const inspect = await dockerService.dockerContainerInspect(`${appComponent.name}_${app.name}`); - if (inspect && stats.length > 55) { + if (inspect && stats.length > 19) { const nanoCpus = inspect.HostConfig.NanoCpus; let cpuThrottling = true; const cpuUsage = averageStats.avgCpuUsageDiff; @@ -9728,7 +9728,7 @@ async function checkApplicationsCpuUSage() { if (realCpu < 92) { cpuThrottling = false; } - log.info(`CPU usage: ${realCpu}%`); + log.info(`CPU usage: ${realCpu.toFixed(2)}%`); log.info(`checkApplicationsCpuUSage ${appComponent.name}_${app.name} cpu high load: : ${cpuThrottling}`); if (cpuThrottling && appComponent.cpu > 1) { if (nanoCpus / appComponent.cpu / 1e9 === 1) { From 6f60e54648355526bc443478520ca3ffaa986668 Mon Sep 17 00:00:00 2001 From: XK4MiLX <62837435+XK4MiLX@users.noreply.github.com> Date: Sun, 6 Oct 2024 16:05:57 +0200 Subject: [PATCH 09/21] Management refactor and cleanup --- HomeUI/src/views/apps/Management.vue | 634 ++++++++++----------------- 1 file changed, 228 insertions(+), 406 deletions(-) diff --git a/HomeUI/src/views/apps/Management.vue b/HomeUI/src/views/apps/Management.vue index a94c532a5..12aef0bc3 100644 --- a/HomeUI/src/views/apps/Management.vue +++ b/HomeUI/src/views/apps/Management.vue @@ -718,66 +718,27 @@ - -

{{ appSpecification.name }}

-
-
- -
- Loading... -
-
-
-
-
-

Component: {{ component.name }}

-
- -
-
-
-
-
- -
-
-
Stats Overview + /> {{ overviewTitle }} {{ noDat }}
History Statistics
-
+
- + @@ -806,9 +767,10 @@ :placeholder="appSpecification.name" disabled /> - + + - +
- +
- + - +
@@ -974,7 +935,7 @@ class="mb-2" />
- +
@@ -1044,45 +1005,6 @@
- -

{{ appSpecification.name }}

-
-
- -
- Loading... -
-
-
-
-
-

Component: {{ component.name }}

-
- -
-
-
-
-
- -
-
-
Object.values(process).some((value) => String(value).toLowerCase().includes(this.search.toLowerCase()))); @@ -7077,6 +7004,16 @@ export default { }, }, watch: { + skin() { + if (this.memoryChart !== null) { + this.updateCharts(); + } + }, + noData() { + if (this.memoryChart !== null) { + this.updateCharts(); + } + }, filterKeyword() { if (this.logs?.length > 0) { this.$nextTick(() => { @@ -7117,16 +7054,28 @@ export default { } } }, - selectedContainerMonitoring() { - if (!this.enableHistoryStatistics) { - if (this.timerStats) this.stopPollingStats(); - if (this.selectedContainer) this.startPollingStats(); - this.clearCharts(); + selectedContainerMonitoring(newValue) { + if (newValue) { + this.buttonStats = false; + if (!this.enableHistoryStatistics) { + if (this.timerStats) this.stopPollingStats(); + if (this.selectedContainerMonitoring !== null) this.startPollingStats(); + if (this.noDat === true) { + this.clearCharts(); + } + } else { + this.stopPollingStats(); + this.fetchStats(); + } } }, refreshRateMonitoring() { - if (this.timerStats) this.stopPollingStats(); - this.startPollingStats(); + if (!this.enableHistoryStatistics) { + if (this.timerStats) this.stopPollingStats(); + this.startPollingStats(); + } else { + this.stopPollingStats(); + } }, isComposeSingle(value) { if (value) { @@ -7239,9 +7188,11 @@ export default { methods: { // Stats Section START enableHistoryStatisticsChange() { + this.buttonStats = false; if (this.enableHistoryStatistics) { this.stopPollingStats(); this.clearCharts(); + this.fetchStats(); } else { this.clearCharts(); this.startPollingStats(); @@ -7267,9 +7218,10 @@ export default { window.scrollTo(0, document.body.scrollHeight); }, processStatsData(statsData, configData, timeStamp = null) { + console.log(statsData); const memoryLimitBytes = statsData.memory_stats.limit; this.memoryLimit = memoryLimitBytes; - const memoryUsageBytes = statsData.memory_stats.usage; + const memoryUsageBytes = statsData.memory_stats?.usage || null; const memoryUsageMB = memoryUsageBytes; const memoryUsagePercentage = ((memoryUsageBytes / memoryLimitBytes) * 100).toFixed(1); const cpuUsage = statsData.cpu_stats.cpu_usage.total_usage - statsData.precpu_stats.cpu_usage.total_usage; @@ -7282,15 +7234,42 @@ export default { this.cpuSet = (nanoCpus / 1e9).toFixed(1); const ioReadBytes = statsData.blkio_stats.io_service_bytes_recursive ? statsData.blkio_stats.io_service_bytes_recursive.find((i) => i.op.toLowerCase() === 'read')?.value || 0 : null; const ioWriteBytes = statsData.blkio_stats.io_service_bytes_recursive ? statsData.blkio_stats.io_service_bytes_recursive.find((i) => i.op.toLowerCase() === 'write')?.value || 0 : null; - const networkRxBytes = statsData.networks.eth0?.rx_bytes || null; - const networkTxBytes = statsData.networks.eth0?.tx_bytes || null; - const diskUsageMounts = statsData.disk_stats?.appDataMounts || null; - const diskUsageDocker = statsData.disk_stats?.dockerVolume || null; + const networkRxBytes = statsData.networks?.eth0?.rx_bytes || null; + const networkTxBytes = statsData.networks?.eth0?.tx_bytes || null; + const diskUsageMounts = statsData.disk_stats?.bind || null; + const diskUsageDocker = statsData.disk_stats?.volume || null; const diskUsageRootFs = statsData.disk_stats?.rootfs || null; + + console.log('CPU Percent:', cpuPercent); + console.log('Memory Usage:', memoryUsageMB); + console.log('Memory Usage (%):', memoryUsagePercentage); + console.log('Network RX Bytes:', networkRxBytes); + console.log('Network TX Bytes:', networkTxBytes); + console.log('I/O Read Bytes:', ioReadBytes); + console.log('I/O Write Bytes:', ioWriteBytes); + console.log('Disk Usage Mounts:', diskUsageMounts); + console.log('Disk Usage Volume:', diskUsageDocker); + console.log('Disk Usage RootFS:', diskUsageRootFs); + console.log('CPU Size:', cpuSize); + this.insertChartData(cpuPercent, memoryUsageMB, memoryUsagePercentage, networkRxBytes, networkTxBytes, ioReadBytes, ioWriteBytes, diskUsageMounts, diskUsageDocker, diskUsageRootFs, cpuSize, timeStamp); }, async fetchStats() { try { + if (this.appSpecification.version >= 4) { + if (!this.selectedContainerMonitoring) { + console.error('No container selected'); + if (this.timerStats) this.stopPollingStats(); + return; + } + } + if (this.$refs.managementTabs?.currentTab !== 3) { + return; + } + if (this.enableHistoryStatistics) { + this.clearCharts(); + } + const containerName = this.selectedContainerMonitoring; const appname = this.selectedContainerMonitoring ? `${this.selectedContainerMonitoring}_${this.appSpecification.name}` : this.appSpecification.name; let statsResponse; if (this.enableHistoryStatistics) { @@ -7305,22 +7284,29 @@ export default { this.showToast('danger', inspectResponse.data.data.message || inspectResponse.data.data); } else { if (!this.enableHistoryStatistics) { - this.fetchProcesses(appname); + this.fetchProcesses(appname, containerName); } const configData = inspectResponse.data; - const statsData = statsResponse.data; - + let statsData; + if (statsResponse.data?.data?.lastDay) { + statsData = statsResponse.data.data.lastDay.reverse(); + } else { + statsData = statsResponse.data.data; + } if (Array.isArray(statsData)) { - statsData.data.forEach((stats) => { - console.log(stats.timestamp); - console.log(stats.data); - this.processStatsData(stats.data, configData, stats.timestamp); + const now = new Date().getTime(); + const cutoffTimestamp = now - this.selectedTimeRange; + const filteredStats = statsData.filter((stats) => { + const statsTimestamp = new Date(stats.timestamp).getTime(); + return statsTimestamp >= cutoffTimestamp; + }); + filteredStats.forEach((stats) => { + this.processStatsData(stats.data, configData.data, stats.timestamp); }); } else { - console.log(statsData); - this.processStatsData(statsData, configData); + this.processStatsData(statsData, configData.data); } - if (appname === this.selectedContainerMonitoring) { + if (containerName === this.selectedContainerMonitoring) { this.updateCharts(); } else { this.clearCharts(); @@ -7328,6 +7314,7 @@ export default { } } catch (error) { console.error('Error fetching container data:', error); + this.stopPollingStats(true); } }, updateAxes() { @@ -7345,20 +7332,26 @@ export default { insertChartData(cpuPercent, memoryUsageMB, memoryUsagePercentage, networkRxBytes, networkTxBytes, ioReadBytes, ioWriteBytes, diskUsageMounts, diskUsageDocker, diskUsageRootFs, cpuSize, timeStamp = null) { const timeLabel = timeStamp === null ? new Date().toLocaleTimeString() : new Date(timeStamp).toLocaleTimeString(); // Update memory chart - this.LimitChartItems(this.memoryChart); - this.memoryChart.data.labels.push(timeLabel); - this.memoryChart.data.datasets[0].data.push(memoryUsageMB); - this.memoryChart.data.datasets[1].data.push(memoryUsagePercentage); + if (memoryUsageMB !== null) { + this.LimitChartItems(this.memoryChart); + this.memoryChart.data.labels.push(timeLabel); + this.memoryChart.data.datasets[0].data.push(memoryUsageMB); + this.memoryChart.data.datasets[1].data.push(memoryUsagePercentage); + } // Update CPU chart - this.LimitChartItems(this.cpuChart); - this.cpuChart.data.labels.push(timeLabel); - this.cpuChart.data.datasets[0].data.push(cpuSize); - this.cpuChart.data.datasets[1].data.push(cpuPercent); + if (networkRxBytes !== null && networkTxBytes !== null) { + this.LimitChartItems(this.cpuChart); + this.cpuChart.data.labels.push(timeLabel); + this.cpuChart.data.datasets[0].data.push(cpuSize); + this.cpuChart.data.datasets[1].data.push(cpuPercent); + } // Update Network chart - this.LimitChartItems(this.networkChart); - this.networkChart.data.labels.push(timeLabel); - this.networkChart.data.datasets[0].data.push(networkRxBytes); - this.networkChart.data.datasets[1].data.push(networkTxBytes); + if (networkRxBytes !== null && networkTxBytes !== null) { + this.LimitChartItems(this.networkChart); + this.networkChart.data.labels.push(timeLabel); + this.networkChart.data.datasets[0].data.push(networkRxBytes); + this.networkChart.data.datasets[1].data.push(networkTxBytes); + } // Update I/O chart if (ioReadBytes !== null && ioWriteBytes !== null) { this.LimitChartItems(this.ioChart); @@ -7367,20 +7360,23 @@ export default { this.ioChart.data.datasets[1].data.push(ioWriteBytes); } // Update Persistent Storage chart - this.LimitChartItems(this.diskPersistentChart); - this.diskPersistentChart.data.labels.push(timeLabel); - this.diskPersistentChart.data.datasets[0].data.push(diskUsageMounts); - this.diskPersistentChart.data.datasets[1].data.push(diskUsageDocker); - this.diskPersistentChart.data.datasets[1].hidden = diskUsageDocker === 0; + if (diskUsageMounts !== null || diskUsageMounts !== null) { + this.LimitChartItems(this.diskPersistentChart); + this.diskPersistentChart.data.labels.push(timeLabel); + this.diskPersistentChart.data.datasets[0].data.push(diskUsageMounts); + this.diskPersistentChart.data.datasets[1].data.push(diskUsageDocker); + this.diskPersistentChart.data.datasets[1].hidden = diskUsageDocker === 0; + } // Update File System chart - this.LimitChartItems(this.diskFileSystemChart); - this.diskFileSystemChart.data.labels.push(timeLabel); - this.diskFileSystemChart.data.datasets[0].data.push(diskUsageRootFs); - this.updateAxes(); + if (diskUsageRootFs !== null) { + this.LimitChartItems(this.diskFileSystemChart); + this.diskFileSystemChart.data.labels.push(timeLabel); + this.diskFileSystemChart.data.datasets[0].data.push(diskUsageRootFs); + } this.noDat = true; + this.updateAxes(); }, updateCharts() { - // Update all charts after data insertion this.memoryChart.update(); this.cpuChart.update(); this.networkChart.update(); @@ -7404,12 +7400,27 @@ export default { } return `${parseFloat(size.toFixed(options.round)).toString()} ${labels[index]}`; }, - async fetchProcesses(appname) { + async fetchProcesses(appname, continer) { try { const response = await this.executeLocalCommand(`/apps/apptop/${appname}`); - if (this.selectedContainerMonitoring === appname) { - this.processes = response.data?.data; + if (response.data.status === 'error') { + this.showToast('danger', response.data.data.message || response.data.data); + this.stopPollingStats(true); + return; + } + if (this.selectedContainerMonitoring === continer) { + this.processes = (response.data?.data?.Processes || []).map((proc) => ({ + uid: proc[0], + pid: proc[1], + ppid: proc[2], + c: proc[3], + stime: proc[4], + tty: proc[5], + time: proc[6], + cmd: proc[7], + })); } else { + this.processes = []; console.error('Selected container has changed. Proccess list discarded.'); } } catch (error) { @@ -7417,6 +7428,14 @@ export default { } }, initCharts() { + if (this.memoryChart) { + this.memoryChart.destroy(); + this.cpuChart.destroy(); + this.networkChart.destroy(); + this.ioChart.destroy(); + this.diskPersistentChart.destroy(); + this.diskFileSystemChart.destroy(); + } const memoryCtx = document.getElementById('memoryChart').getContext('2d'); const cpuCtx = document.getElementById('cpuChart').getContext('2d'); const networkCtx = document.getElementById('networkChart').getContext('2d'); @@ -7426,15 +7445,32 @@ export default { const noDataPlugin = { id: 'noDataPlugin', - beforeInit: () => { - console.log('noDataPlugin initialized'); // Check if plugin is loaded + beforeDraw: (chart) => { + if (chart.data.datasets.every((dataset) => dataset.data.length === 0) && this.noDat === true) { + const { ctx, width, height } = chart; + ctx.save(); + ctx.font = 'bold 16px Arial'; + if (this.skin === 'dark') { + ctx.fillStyle = 'rgba(255, 255, 255, 0.6)'; + } else { + ctx.fillStyle = 'rgba(0, 0, 0, 0.6)'; + } + ctx.textAlign = 'center'; + ctx.textBaseline = 'middle'; + ctx.fillText('No Data Available', width / 2, height / 2); + ctx.restore(); + } }, afterDraw: (chart) => { if (chart.data.datasets.every((dataset) => dataset.data.length === 0) && this.noDat === true) { const { ctx, width, height } = chart; ctx.save(); - ctx.font = '16px Arial'; - ctx.fillStyle = 'rgba(0, 0, 0, 0.6)'; + ctx.font = 'bold 16px Arial'; + if (this.skin === 'dark') { + ctx.fillStyle = 'rgba(255, 255, 255, 0.6)'; + } else { + ctx.fillStyle = 'rgba(0, 0, 0, 0.6)'; + } ctx.textAlign = 'center'; ctx.textBaseline = 'middle'; ctx.fillText('No Data Available', width / 2, height / 2); @@ -7621,7 +7657,7 @@ export default { }, }, }); - this.updateYAxisLimits(); + this.cpuChart = new Chart(cpuCtx, { type: 'line', data: { @@ -7692,7 +7728,7 @@ export default { }, }, }); - this.updateYAxisCPU(); + this.networkChart = new Chart(networkCtx, { type: 'line', data: { @@ -7766,7 +7802,6 @@ export default { y: { title: { display: true }, beginAtZero: true, ticks: { callback: (value) => this.formatDataSize(value, { base: 10, round: 0 }) } }, }, plugins: { - noDataPlugin, tooltip: { mode: 'index', intersect: false, @@ -7781,18 +7816,28 @@ export default { }, }, }); + this.updateAxes(); }, - startPollingStats() { - this.timerStats = setInterval(() => { - this.fetchStats(); - }, this.refreshRateMonitoring); + startPollingStats(action = false) { + if (!this.timerStats) { + this.timerStats = setInterval(() => { + this.fetchStats(); + }, this.refreshRateMonitoring); + } + if (action === true) { + this.buttonStats = false; + } }, - stopPollingStats() { + stopPollingStats(action = false) { clearInterval(this.timerStats); this.timerStats = null; + if (action === true) { + this.buttonStats = true; + } }, clearCharts() { // Clear memory chart data + this.noDat = false; this.memoryChart.data.labels = []; this.memoryChart.data.datasets.forEach((dataset) => { dataset.data = []; @@ -7832,7 +7877,7 @@ export default { dataset.data = []; }); this.diskFileSystemChart.update(); - this.noDat = false; + this.processes = []; }, // Stats Section END extractTimestamp(log) { @@ -7904,7 +7949,7 @@ export default { this.manualInProgress = false; }, async fetchLogsForSelectedContainer() { - if (this.$refs.managementTabs.currentTab !== 7) { + if (this.$refs.managementTabs?.currentTab !== 5) { return; } console.log('fetchLogsForSelectedContainer in progress...'); @@ -9526,6 +9571,7 @@ export default { } }, async updateManagementTab(index) { + this.noData = false; this.callResponse.data = ''; this.callResponse.status = ''; // do not reset global application specifics obtained @@ -9535,13 +9581,19 @@ export default { this.downloadOutput = {}; this.downloadOutputReturned = false; this.backupToUpload = []; - if (index !== 11) { + + const tabs = this.$refs.managementTabs.$children; + const tabTitle = tabs[index]?.title; + if (tabTitle !== 'Interactive Terminal') { this.disconnectTerminal(); } - if (index !== 7) { + if (tabTitle !== 'Logs') { this.stopPolling(); this.pollingEnabled = false; } + if (tabTitle !== 'Monitoring') { + this.stopPollingStats(); + } if (!this.selectedIp) { await this.getInstancesForDropDown(); await this.getInstalledApplicationSpecifics(); @@ -9553,7 +9605,6 @@ export default { this.getApplicationManagementAndStatus(); switch (index) { case 1: - // this.getInstancesForDropDown(); this.getInstalledApplicationSpecifics(); this.getGlobalApplicationSpecifics(); break; @@ -9561,42 +9612,44 @@ export default { this.callResponseInspect.data = ''; this.getApplicationInspect(); break; + // case 3: + // this.callResponseStats.data = ''; + // this.getApplicationStats(); + // break; case 3: - this.callResponseStats.data = ''; - this.getApplicationStats(); + this.$nextTick(() => { + this.initCharts(); + this.processes = []; + setTimeout(this.startPollingStats(), 2000); + }); break; case 4: - this.initCharts(); - this.getApplicationMonitoring(); - // this.getApplicationMonitoringStream(); // TODO UI with graphs - break; - case 5: this.callResponseChanges.data = ''; this.getApplicationChanges(); break; - case 6: - this.callResponseProcesses.data = ''; - this.getApplicationProcesses(); - break; - case 7: + // case 6: + // this.callResponseProcesses.data = ''; + // this.getApplicationProcesses(); + // break; + case 5: this.logs = []; this.selectedLog = []; this.fetchLogsForSelectedContainer(); break; - case 10: + case 8: this.applyFilter(); this.loadBackupList(); break; - case 11: + case 9: if (!this.appSpecification?.compose || this.appSpecification?.compose?.length === 1) { this.refreshFolder(); } break; - case 15: + case 13: this.getZelidAuthority(); this.cleanData(); break; - case 16: + case 14: this.getZelidAuthority(); this.cleanData(); break; @@ -10330,123 +10383,6 @@ export default { this.callResponseInspect.status = 'success'; this.callResponseInspect.data = callData; }, - async getApplicationStats() { - const callData = []; - this.commandExecutingStats = true; - if (this.appSpecification.version >= 4) { - // compose - // eslint-disable-next-line no-restricted-syntax - for (const component of this.appSpecification.compose) { - // eslint-disable-next-line no-await-in-loop - const response = await this.executeLocalCommand(`/apps/appstats/${component.name}_${this.appSpecification.name}`); - if (response.data.status === 'error') { - this.showToast('danger', response.data.data.message || response.data.data); - } else { - const appComponentInspect = { - name: component.name, - callData: response.data.data, - }; - callData.push(appComponentInspect); - } - } - } else { - const response = await this.executeLocalCommand(`/apps/appstats/${this.appName}`); - if (response.data.status === 'error') { - this.showToast('danger', response.data.data.message || response.data.data); - } else { - const appComponentInspect = { - name: this.appSpecification.name, - callData: response.data.data, - }; - callData.push(appComponentInspect); - } - console.log(response); - } - this.commandExecutingStats = false; - this.callResponseStats.status = 'success'; - this.callResponseStats.data = callData; - }, - async getApplicationMonitoring() { - const callData = []; - if (this.appSpecification.version >= 4) { - // compose - // eslint-disable-next-line no-restricted-syntax - for (const component of this.appSpecification.compose) { - // eslint-disable-next-line no-await-in-loop - const response = await this.executeLocalCommand(`/apps/appmonitor/${component.name}_${this.appSpecification.name}`); - // eslint-disable-next-line no-await-in-loop - const responseB = await this.executeLocalCommand(`/apps/appinspect/${component.name}_${this.appSpecification.name}`); - if (response.data.status === 'error') { - this.showToast('danger', response.data.data.message || response.data.data); - } else if (responseB.data.status === 'error') { - this.showToast('danger', responseB.data.data.message || responseB.data.data); - } else { - const appComponentInspect = { - name: component.name, - callData: response.data.data, - nanoCpus: responseB.data.data.HostConfig.NanoCpus, - }; - callData.push(appComponentInspect); - } - } - } else { - const response = await this.executeLocalCommand(`/apps/appmonitor/${this.appName}`); - const responseB = await this.executeLocalCommand(`/apps/appinspect/${this.appName}`); - if (response.data.status === 'error') { - this.showToast('danger', response.data.data.message || response.data.data); - } else if (responseB.data.status === 'error') { - this.showToast('danger', responseB.data.data.message || responseB.data.data); - } else { - const appComponentInspect = { - name: this.appSpecification.name, - callData: response.data.data, - nanoCpus: responseB.data.data.HostConfig.NanoCpus, - }; - callData.push(appComponentInspect); - } - console.log(response); - } - this.callResponseMonitoring.status = 'success'; - this.callResponseMonitoring.data = callData; - }, - async getApplicationMonitoringStream() { - const self = this; - const zelidauth = localStorage.getItem('zelidauth'); - if (this.appSpecification.version >= 4) { - // compose - // eslint-disable-next-line no-restricted-syntax - for (const component of this.appSpecification.compose) { - const axiosConfig = { - headers: { - zelidauth, - }, - onDownloadProgress(progressEvent) { - self.monitoringStream[`${component.name}_${self.appSpecification.name}`] = JSON.parse(`[${progressEvent.event.target.response.replace(/}{"read/g, '},{"read')}]`); - }, - }; - // eslint-disable-next-line no-await-in-loop - const response = await AppsService.justAPI().get(`/apps/appmonitorstream/${component.name}_${this.appSpecification.name}`, axiosConfig); - if (response.data.status === 'error') { - this.showToast('danger', response.data.data.message || response.data.data); - } - } - } else { - const axiosConfig = { - headers: { - zelidauth, - }, - onDownloadProgress(progressEvent) { - console.log(progressEvent.event.target.response); - self.monitoringStream[self.appName] = JSON.parse(`[${progressEvent.event.target.response.replace(/}{/g, '},{')}]`); - }, - }; - // eslint-disable-next-line no-await-in-loop - const response = await AppsService.justAPI().get(`/apps/appmonitorstream/${this.appName}`, axiosConfig); - if (response.data.status === 'error') { - this.showToast('danger', response.data.data.message || response.data.data); - } - } - }, async stopMonitoring(appName, deleteData = false) { this.output = []; this.showToast('warning', `Stopping Monitoring of ${appName}`); @@ -10510,42 +10446,6 @@ export default { this.callResponseChanges.status = 'success'; this.callResponseChanges.data = callData; }, - async getApplicationProcesses() { - const callData = []; - this.commandExecutingProcesses = true; - if (this.appSpecification.version >= 4) { - // compose - // eslint-disable-next-line no-restricted-syntax - for (const component of this.appSpecification.compose) { - // eslint-disable-next-line no-await-in-loop - const response = await this.executeLocalCommand(`/apps/apptop/${component.name}_${this.appSpecification.name}`); - if (response.data.status === 'error') { - this.showToast('danger', response.data.data.message || response.data.data); - } else { - const appComponentInspect = { - name: component.name, - callData: response.data.data, - }; - callData.push(appComponentInspect); - } - } - } else { - const response = await this.executeLocalCommand(`/apps/apptop/${this.appName}`); - if (response.data.status === 'error') { - this.showToast('danger', response.data.data.message || response.data.data); - } else { - const appComponentInspect = { - name: this.appSpecification.name, - callData: response.data.data, - }; - callData.push(appComponentInspect); - } - console.log(response); - } - this.commandExecutingProcesses = false; - this.callResponseProcesses.status = 'success'; - this.callResponseProcesses.data = callData; - }, async getInstancesForDropDown() { const response = await AppsService.getAppLocation(this.appName); this.selectedIp = null; @@ -10712,7 +10612,6 @@ export default { } this.selectedAppOwner = response.data.data; }, - async stopApp(app) { this.output = []; // this.showToast('warning', `Stopping ${app}`); @@ -11168,83 +11067,6 @@ export default { this.maxInstances = this.appUpdateSpecification.instances; } }, - generateStatsTableItems(statsData, nanoCpus, specifications) { - // { key: 'timestamp', label: 'DATE' }, - // { key: 'cpu', label: 'CPU' }, - // { key: 'memory', label: 'RAM' }, - // { key: 'disk', label: 'SSD' }, - // { key: 'net', label: 'NET I/O' }, - // { key: 'block', label: 'BLOCK I/O' }, - // { key: 'pids', label: 'PIDS' }, - console.log(statsData); - console.log(nanoCpus); - if (!statsData || !Array.isArray(statsData)) { - return []; - } - const statsItems = []; - statsData.forEach((entry, index) => { - console.log(`Processing entry ${index}:`, entry); - // Calculate CPU usage - const cpuUsage = entry.data.cpu_stats.cpu_usage.total_usage - entry.data.precpu_stats.cpu_usage.total_usage; - const systemCpuUsage = entry.data.cpu_stats.system_cpu_usage - entry.data.precpu_stats.system_cpu_usage; - const cpu = `${(((cpuUsage / systemCpuUsage) * entry.data.cpu_stats.online_cpus * 100) / (nanoCpus / specifications.cpu / 1e9) || 0).toFixed(2)}%`; - // Calculate memory usage - const memoryUsage = entry.data.memory_stats.usage; - const memory = `${(memoryUsage / 1e9).toFixed(2)} / ${(specifications.ram / 1e3).toFixed(2)} GB, ${((memoryUsage / (specifications.ram * 1e6)) * 100 || 0).toFixed(2)}%`; - // Safely access network data - const networks = entry.data && entry.data.networks; - const eth0 = networks && networks.eth0; - let net = '0 / 0 GB'; - if (eth0) { - const rxBytes = eth0.rx_bytes / 1e9; - const txBytes = eth0.tx_bytes / 1e9; - net = `${rxBytes.toFixed(2)} / ${txBytes.toFixed(2)} GB`; - } else { - console.error(`Network data for entry ${index} is missing or undefined.`); - return; - } - // Safely access block I/O data - const blkioStats = entry.data && entry.data.blkio_stats; - let block = '0.00 / 0.00 GB'; - if (blkioStats && Array.isArray(blkioStats.io_service_bytes_recursive)) { - const read = blkioStats.io_service_bytes_recursive.find((x) => x.op.toLowerCase() === 'read'); - const write = blkioStats.io_service_bytes_recursive.find((x) => x.op.toLowerCase() === 'write'); - const readValue = (read ? read.value : 0) / 1e9; - const writeValue = (write ? write.value : 0) / 1e9; - block = `${readValue.toFixed(2)} / ${writeValue.toFixed(2)} GB`; - } - // Safely access disk data - const diskStats = entry.data && entry.data.disk_stats; - let disk = '0 / 0 GB'; - if (diskStats) { - const diskUsed = diskStats.used; - disk = `${(diskUsed / 1e9).toFixed(2)} / ${(specifications.hdd).toFixed(2)} GB, ${((diskUsed / (specifications.hdd * 1e9)) * 100 || 0).toFixed(2)}%`; - } - // Get PIDs count - const pids = entry.data && entry.data.pids_stats ? entry.data.pids_stats.current : 0; - // Create point object and push to statsItems - const point = { - timestamp: new Date(entry.timestamp).toLocaleString('en-GB', timeoptions.shortDate), - cpu, - memory, - net, - block, - disk, - pids, - }; - statsItems.push(point); - }); - return statsItems; - }, - getCpuPercentage(statsData) { - console.log(statsData); - const percentages = []; - statsData.forEach((data) => { - const onePercentage = `${((data.data.cpu_stats.cpu_usage.total_usage / data.data.cpu_stats.cpu_usage.system_cpu_usage) * 100).toFixed(2)}%`; - percentages.push(onePercentage); - }); - return percentages; - }, getTimestamps(statsData) { const timestamps = []; statsData.forEach((data) => { @@ -12446,7 +12268,7 @@ td .ellipsis-wrapper { justify-content: space-between; } /* Flexbox for container selection and refresh rate */ -.flex-container { +.flex-container2 { height: 50%; justify-content: space-between; flex-wrap: nowrap; @@ -12483,12 +12305,12 @@ td .ellipsis-wrapper { box-shadow: 0px 6px 6px rgba(0, 0, 0, 0.1); } -.table { +.table-monitoring { table-layout: auto; /* Fixes the table layout so columns don't shift */ width: 100%; /* Take full width of the container */ } -.table th, .table td { +.table-monitoring th, .table-monitoring td { white-space: nowrap; /* Prevent text from wrapping */ border: none; /* Remove borders */ background-color: transparent; /* Background color for cells */ @@ -12512,7 +12334,7 @@ td .ellipsis-wrapper { } /* Adjust grid for smaller screens */ -@media (max-width: 1200px) { +@media (max-width: 1800px) { .charts-grid { grid-template-columns: 1fr; gap: 2vw; @@ -12521,7 +12343,7 @@ td .ellipsis-wrapper { } /* Ensure grid returns to original layout */ -@media (min-width: 1200px) { +@media (min-width: 1800px) { .charts-grid { grid-template-columns: repeat(2, 1fr); gap: 1vw; From a20c840f1cfaf02458fbcb38b8802fa18cb0f81e Mon Sep 17 00:00:00 2001 From: XK4MiLX <62837435+XK4MiLX@users.noreply.github.com> Date: Sun, 6 Oct 2024 16:10:15 +0200 Subject: [PATCH 10/21] HomeUI build --- HomeUI/dist/css/{8390.css => 1403.css} | 0 HomeUI/dist/css/{9442.css => 2147.css} | 2 +- HomeUI/dist/css/2532.css | 1 - HomeUI/dist/css/{9568.css => 2558.css} | 2 +- HomeUI/dist/css/{2788.css => 2620.css} | 2 +- HomeUI/dist/css/{3041.css => 266.css} | 0 HomeUI/dist/css/4031.css | 1 + HomeUI/dist/css/{1966.css => 4917.css} | 0 HomeUI/dist/css/{5216.css => 7355.css} | 0 HomeUI/dist/css/{7966.css => 7647.css} | 0 HomeUI/dist/css/{7071.css => 9784.css} | 0 HomeUI/dist/js/1032.js | 2 +- HomeUI/dist/js/1115.js | 2 +- HomeUI/dist/js/1145.js | 2 +- HomeUI/dist/js/1313.js | 2 +- HomeUI/dist/js/1403.js | 1 + HomeUI/dist/js/1530.js | 16 ----- HomeUI/dist/js/1540.js | 2 +- HomeUI/dist/js/1573.js | 2 +- HomeUI/dist/js/1587.js | 22 +++++++ HomeUI/dist/js/1841.js | 2 +- HomeUI/dist/js/1966.js | 1 - HomeUI/dist/js/1994.js | 2 +- HomeUI/dist/js/2147.js | 1 + HomeUI/dist/js/2295.js | 2 +- HomeUI/dist/js/237.js | 2 +- HomeUI/dist/js/2532.js | 86 ------------------------- HomeUI/dist/js/2558.js | 1 + HomeUI/dist/js/2599.js | 1 + HomeUI/dist/js/2620.js | 1 + HomeUI/dist/js/266.js | 1 + HomeUI/dist/js/2743.js | 2 +- HomeUI/dist/js/2755.js | 88 +++++++++++++------------- HomeUI/dist/js/2788.js | 1 - HomeUI/dist/js/2791.js | 2 +- HomeUI/dist/js/3041.js | 1 - HomeUI/dist/js/3196.js | 2 +- HomeUI/dist/js/3404.js | 2 +- HomeUI/dist/js/3678.js | 2 +- HomeUI/dist/js/3904.js | 2 +- HomeUI/dist/js/3920.js | 1 - HomeUI/dist/js/4031.js | 86 +++++++++++++++++++++++++ HomeUI/dist/js/4156.js | 1 - HomeUI/dist/js/4323.js | 4 +- HomeUI/dist/js/4393.js | 1 - HomeUI/dist/js/460.js | 2 +- HomeUI/dist/js/4661.js | 2 +- HomeUI/dist/js/4671.js | 2 +- HomeUI/dist/js/4764.js | 2 +- HomeUI/dist/js/4917.js | 1 + HomeUI/dist/js/5038.js | 2 +- HomeUI/dist/js/5213.js | 2 +- HomeUI/dist/js/5216.js | 17 ++++- HomeUI/dist/js/5497.js | 2 +- HomeUI/dist/js/5528.js | 2 +- HomeUI/dist/js/560.js | 1 + HomeUI/dist/js/5988.js | 2 +- HomeUI/dist/js/6147.js | 2 +- HomeUI/dist/js/62.js | 2 +- HomeUI/dist/js/6223.js | 2 +- HomeUI/dist/js/6262.js | 2 +- HomeUI/dist/js/6301.js | 1 - HomeUI/dist/js/6414.js | 2 +- HomeUI/dist/js/6481.js | 2 +- HomeUI/dist/js/6518.js | 2 +- HomeUI/dist/js/6626.js | 2 +- HomeUI/dist/js/6666.js | 2 +- HomeUI/dist/js/6777.js | 2 +- HomeUI/dist/js/7031.js | 2 +- HomeUI/dist/js/7071.js | 1 - HomeUI/dist/js/7218.js | 2 +- HomeUI/dist/js/7249.js | 2 +- HomeUI/dist/js/7353.js | 1 + HomeUI/dist/js/7355.js | 1 + HomeUI/dist/js/7365.js | 2 +- HomeUI/dist/js/7415.js | 2 +- HomeUI/dist/js/7463.js | 2 +- HomeUI/dist/js/7550.js | 2 +- HomeUI/dist/js/7583.js | 2 +- HomeUI/dist/js/7647.js | 1 + HomeUI/dist/js/7917.js | 2 +- HomeUI/dist/js/7966.js | 1 - HomeUI/dist/js/8390.js | 1 - HomeUI/dist/js/8578.js | 2 +- HomeUI/dist/js/8701.js | 2 +- HomeUI/dist/js/8755.js | 2 +- HomeUI/dist/js/8873.js | 1 - HomeUI/dist/js/8910.js | 2 +- HomeUI/dist/js/9083.js | 2 +- HomeUI/dist/js/9353.js | 2 +- HomeUI/dist/js/9371.js | 1 - HomeUI/dist/js/9389.js | 2 +- HomeUI/dist/js/9442.js | 1 - HomeUI/dist/js/9568.js | 1 - HomeUI/dist/js/9784.js | 1 + HomeUI/dist/js/9816.js | 2 +- HomeUI/dist/js/9853.js | 2 +- HomeUI/dist/js/9875.js | 2 +- HomeUI/dist/js/apexcharts.js | 8 +-- HomeUI/dist/js/bootstrapVue.js | 2 +- HomeUI/dist/js/chunk-vendors.js | 12 ++-- HomeUI/dist/js/clipboard.js | 2 +- HomeUI/dist/js/index.js | 2 +- HomeUI/dist/js/leaflet.js | 2 +- HomeUI/dist/js/metamask.js | 12 ++-- HomeUI/dist/js/openpgp.js | 6 +- HomeUI/dist/js/stablelib.js | 2 +- HomeUI/dist/js/vue.js | 4 +- HomeUI/dist/js/vueAwesome.js | 2 +- HomeUI/dist/js/vueFeatherIcons.js | 2 +- HomeUI/dist/js/vueJsonViewer.js | 2 +- HomeUI/dist/js/vueRouter.js | 2 +- HomeUI/dist/js/vuex.js | 4 +- HomeUI/dist/js/walletconnect.js | 2 +- HomeUI/dist/js/xterm.js | 2 +- 115 files changed, 274 insertions(+), 255 deletions(-) rename HomeUI/dist/css/{8390.css => 1403.css} (100%) rename HomeUI/dist/css/{9442.css => 2147.css} (77%) delete mode 100644 HomeUI/dist/css/2532.css rename HomeUI/dist/css/{9568.css => 2558.css} (71%) rename HomeUI/dist/css/{2788.css => 2620.css} (81%) rename HomeUI/dist/css/{3041.css => 266.css} (100%) create mode 100644 HomeUI/dist/css/4031.css rename HomeUI/dist/css/{1966.css => 4917.css} (100%) rename HomeUI/dist/css/{5216.css => 7355.css} (100%) rename HomeUI/dist/css/{7966.css => 7647.css} (100%) rename HomeUI/dist/css/{7071.css => 9784.css} (100%) create mode 100644 HomeUI/dist/js/1403.js delete mode 100644 HomeUI/dist/js/1530.js create mode 100644 HomeUI/dist/js/1587.js delete mode 100644 HomeUI/dist/js/1966.js create mode 100644 HomeUI/dist/js/2147.js delete mode 100644 HomeUI/dist/js/2532.js create mode 100644 HomeUI/dist/js/2558.js create mode 100644 HomeUI/dist/js/2599.js create mode 100644 HomeUI/dist/js/2620.js create mode 100644 HomeUI/dist/js/266.js delete mode 100644 HomeUI/dist/js/2788.js delete mode 100644 HomeUI/dist/js/3041.js delete mode 100644 HomeUI/dist/js/3920.js create mode 100644 HomeUI/dist/js/4031.js delete mode 100644 HomeUI/dist/js/4156.js delete mode 100644 HomeUI/dist/js/4393.js create mode 100644 HomeUI/dist/js/4917.js create mode 100644 HomeUI/dist/js/560.js delete mode 100644 HomeUI/dist/js/6301.js delete mode 100644 HomeUI/dist/js/7071.js create mode 100644 HomeUI/dist/js/7353.js create mode 100644 HomeUI/dist/js/7355.js create mode 100644 HomeUI/dist/js/7647.js delete mode 100644 HomeUI/dist/js/7966.js delete mode 100644 HomeUI/dist/js/8390.js delete mode 100644 HomeUI/dist/js/8873.js delete mode 100644 HomeUI/dist/js/9371.js delete mode 100644 HomeUI/dist/js/9442.js delete mode 100644 HomeUI/dist/js/9568.js create mode 100644 HomeUI/dist/js/9784.js diff --git a/HomeUI/dist/css/8390.css b/HomeUI/dist/css/1403.css similarity index 100% rename from HomeUI/dist/css/8390.css rename to HomeUI/dist/css/1403.css diff --git a/HomeUI/dist/css/9442.css b/HomeUI/dist/css/2147.css similarity index 77% rename from HomeUI/dist/css/9442.css rename to HomeUI/dist/css/2147.css index 0d16aceb4..ab3f22eec 100644 --- a/HomeUI/dist/css/9442.css +++ b/HomeUI/dist/css/2147.css @@ -1 +1 @@ -.toastification-close-icon[data-v-22d964ca],.toastification-title[data-v-22d964ca]{line-height:26px}.toastification-title[data-v-22d964ca]{color:inherit}.popover{max-width:400px}.confirm-dialog-250{width:250px}.confirm-dialog-275{width:275px}.confirm-dialog-300{width:300px}.confirm-dialog-350{width:350px}.confirm-dialog-400{width:400px}.flux-share-upload-drop[data-v-8e3a5248]{height:250px;width:300px}[dir] .flux-share-upload-drop[data-v-8e3a5248]{border-style:dotted;border-color:var(--secondary-color);cursor:pointer}[dir] .flux-share-upload-drop[data-v-8e3a5248]:hover{border-color:var(--primary-color)}.flux-share-upload-drop svg[data-v-8e3a5248]{width:100px;height:100px}[dir] .flux-share-upload-drop svg[data-v-8e3a5248]{margin:50px 0 10px 0}.flux-share-upload-input[data-v-8e3a5248]{display:none}.upload-footer[data-v-8e3a5248]{font-size:10px;position:relative;top:20px}.upload-column[data-v-8e3a5248]{overflow-y:auto;height:250px}.upload-item[data-v-8e3a5248]{overflow:hidden;white-space:nowrap;position:relative;height:30px}[dir=ltr] .upload-item[data-v-8e3a5248]{padding:0 0 0 3px}[dir=rtl] .upload-item[data-v-8e3a5248]{padding:0 3px 0 0}.upload-item p[data-v-8e3a5248]{text-overflow:ellipsis;overflow:hidden}[dir] .upload-item p[data-v-8e3a5248]{margin:0 0 10px}[dir=ltr] .upload-item p[data-v-8e3a5248]{padding:0 40px 0 0}[dir=rtl] .upload-item p[data-v-8e3a5248]{padding:0 0 0 40px}.upload-item .delete[data-v-8e3a5248]{position:absolute;top:0}[dir=ltr] .upload-item .delete[data-v-8e3a5248]{right:0}[dir=rtl] .upload-item .delete[data-v-8e3a5248]{left:0}.xterm{cursor:text;position:relative;user-select:none;-ms-user-select:none;-webkit-user-select:none}.xterm.focus,.xterm:focus{outline:none}.xterm .xterm-helpers{position:absolute;top:0;z-index:5}.xterm .xterm-helper-textarea{padding:0;border:0;margin:0;position:absolute;opacity:0;left:-9999em;top:0;width:0;height:0;z-index:-5;white-space:nowrap;overflow:hidden;resize:none}.xterm .composition-view{background:#000;color:#fff;display:none;position:absolute;white-space:nowrap;z-index:1}.xterm .composition-view.active{display:block}.xterm .xterm-viewport{background-color:#000;overflow-y:scroll;cursor:default;position:absolute;right:0;left:0;top:0;bottom:0}.xterm .xterm-screen{position:relative}.xterm .xterm-screen canvas{position:absolute;left:0;top:0}.xterm .xterm-scroll-area{visibility:hidden}.xterm-char-measure-element{display:inline-block;visibility:hidden;position:absolute;top:0;left:-9999em;line-height:normal}.xterm.enable-mouse-events{cursor:default}.xterm .xterm-cursor-pointer,.xterm.xterm-cursor-pointer{cursor:pointer}.xterm.column-select.focus{cursor:crosshair}.xterm .xterm-accessibility,.xterm .xterm-message{position:absolute;left:0;top:0;bottom:0;z-index:10;color:#0000}.xterm .live-region{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}.xterm-dim{opacity:.5}.xterm-underline-1{text-decoration:underline}.xterm-underline-2{-webkit-text-decoration:double underline;text-decoration:double underline}.xterm-underline-3{-webkit-text-decoration:wavy underline;text-decoration:wavy underline}.xterm-underline-4{-webkit-text-decoration:dotted underline;text-decoration:dotted underline}.xterm-underline-5{-webkit-text-decoration:dashed underline;text-decoration:dashed underline}.xterm-strikethrough{text-decoration:line-through}.xterm-screen .xterm-decoration-container .xterm-decoration{z-index:6;position:absolute}.xterm-decoration-overview-ruler{z-index:7;position:absolute;top:0;right:0;pointer-events:none}.xterm-decoration-top{z-index:2;position:relative}[dir=ltr] #updatemessage{padding-right:25px!important}[dir=rtl] #updatemessage{padding-left:25px!important}.text-wrap{position:relative}[dir] .text-wrap{padding:0}.clipboard.icon{position:absolute;top:.4em;width:12px;height:12px}[dir] .clipboard.icon{margin-top:4px;border:1px solid #333;border-top:none;border-radius:1px;cursor:pointer}[dir=ltr] .clipboard.icon{right:2em;margin-left:4px}[dir=rtl] .clipboard.icon{left:2em;margin-right:4px}.no-wrap,.no-wrap-limit{white-space:nowrap!important}.no-wrap-limit{min-width:150px}[dir] .no-wrap-limit{text-align:center}.custom-button{width:15px!important;height:25px!important}.button-cell{display:flex;align-items:center;min-width:150px}[dir] .xterm{padding:10px}[dir=ltr] .spin-icon{animation:spin-ltr 2s linear infinite}[dir=rtl] .spin-icon{animation:spin-rtl 2s linear infinite}.spin-icon-l{width:12px!important;height:12px!important}[dir=ltr] .spin-icon-l{animation:spin-ltr 2s linear infinite}[dir=rtl] .spin-icon-l{animation:spin-rtl 2s linear infinite}[dir=ltr] .app-instances-table td:first-child{padding:0 0 0 5px}[dir=rtl] .app-instances-table td:first-child{padding:0 5px 0 0}[dir=ltr] .app-instances-table th:first-child{padding:0 0 0 5px}[dir=rtl] .app-instances-table th:first-child{padding:0 5px 0 0}.app-instances-table td:nth-child(5),.app-instances-table th:nth-child(5){width:105px}.loginRow{display:flex;flex-direction:row;justify-content:space-around;align-items:center}[dir] .loginRow{margin-bottom:10px}.walletIcon{height:90px;width:90px}[dir] .walletIcon{padding:10px}.walletIcon img{-webkit-app-region:no-drag;transition:.1s}.fluxSSO{height:90px}[dir] .fluxSSO{padding:10px}[dir=ltr] .fluxSSO{margin-left:5px}[dir=rtl] .fluxSSO{margin-right:5px}.fluxSSO img{-webkit-app-region:no-drag;transition:.1s}.stripePay{height:90px}[dir] .stripePay{padding:10px}[dir=ltr] .stripePay{margin-left:5px}[dir=rtl] .stripePay{margin-right:5px}.stripePay img{-webkit-app-region:no-drag;transition:.1s}.paypalPay{height:90px}[dir] .paypalPay{padding:10px}[dir=ltr] .paypalPay{margin-left:5px}[dir=rtl] .paypalPay{margin-right:5px}.paypalPay img{-webkit-app-region:no-drag;transition:.1s}a img{transition:all .05s ease-in-out}a:hover img{filter:opacity(70%)}[dir] a:hover img{transform:scale(1.1)}.flex{display:flex}.anchor{display:block;height:100px;visibility:hidden}[dir] .anchor{margin-top:-100px}.v-toast__text{font-family:Roboto,sans-serif!important}.jv-dark{white-space:nowrap;font-size:14px;font-family:Consolas,Menlo,Courier,monospace}[dir] .jv-dark{background:none;margin-bottom:25px}.jv-button{color:#49b3ff!important}.jv-dark .jv-array,.jv-dark .jv-key{color:#999!important}.jv-boolean{color:#fc1e70!important}.jv-function{color:#067bca!important}.jv-number,.jv-number-float,.jv-number-integer{color:#fc1e70!important}.jv-dark .jv-object{color:#999!important}.jv-undefined{color:#e08331!important}.jv-string{color:#42b983!important;word-break:break-word;white-space:normal}[dir] .card-body{padding:1rem}[dir] .table-no-padding>td{padding:0!important}.backups-table td{position:relative}td .ellipsis-wrapper{position:absolute;max-width:calc(100% - 1rem);line-height:calc(3rem - 8px);top:0;text-overflow:ellipsis;overflow:hidden;white-space:nowrap}[dir=ltr] td .ellipsis-wrapper{left:1rem}[dir=rtl] td .ellipsis-wrapper{right:1rem}.logs{max-height:392px;overflow-y:auto;color:#fff;font-size:12px;font-family:Menlo,Monaco,Consolas,Courier New,monospace}[dir] .logs{margin:5px;border:1px solid #ccc;padding:10px;background-color:#000}.input{min-width:150px;width:200px}.input_s{min-width:300px;width:350px}.clear-button{height:100%}.code-container{height:330px;max-width:100vw;position:relative;user-select:text;color:#fff;overflow:auto;font-size:12px;font-family:Menlo,Monaco,Consolas,Courier New,monospace;box-sizing:border-box;clip-path:inset(0 round 6px);word-wrap:break-word;word-break:break-all}[dir] .code-container{margin:5px;background-color:#000;border-radius:6px;border:1px solid #e1e4e8;padding:16px}.log-entry{user-select:text;white-space:pre-wrap}.line-by-line-mode .log-entry{user-select:none}[dir] .line-by-line-mode .log-entry{cursor:pointer}[dir] .line-by-line-mode .log-entry:hover{background-color:#ffffff1a}[dir] .line-by-line-mode .log-entry.selected{background-color:#ffffff4d}[dir=ltr] .line-by-line-mode .log-entry.selected{border-left:5px solid #007bff}[dir=rtl] .line-by-line-mode .log-entry.selected{border-right:5px solid #007bff}[dir] .line-by-line-mode .log-entry.selected:hover{background-color:#ffffff80}.log-copy-button{position:sticky;top:2px;color:#fff;font-size:12px;transition:background-color .2s ease;z-index:1000}[dir] .log-copy-button{padding:4px 8px;border:none;border-radius:4px;background-color:#0366d6;cursor:pointer}[dir=ltr] .log-copy-button{float:right}[dir=rtl] .log-copy-button{float:left}[dir] .log-copy-button:hover{background-color:#024b8e}.log-copy-button:disabled{color:#fff}[dir] .log-copy-button:disabled{background-color:#6c757d}.download-button:disabled{color:#fff}[dir] .download-button:disabled{background-color:#6c757d}.download-button{position:sticky;top:2px;color:#fff;font-size:12px;transition:background-color .2s ease}[dir] .download-button{padding:4px 8px;border:none;border-radius:4px;background-color:#28a745;cursor:pointer}[dir=ltr] .download-button{float:right;right:8px;margin-left:15px}[dir=rtl] .download-button{float:left;left:8px;margin-right:15px}.search_input{min-width:600px}.flex-container{display:flex;justify-content:space-between;align-items:left;flex-wrap:wrap}[dir] .download-button:hover{background-color:#218838}[dir] .download-button:disabled:hover{background-color:#6c757d}.icon-tooltip{font-size:15px;-webkit-appearance:none;-moz-appearance:none;appearance:none;color:#6c757d}[dir] .icon-tooltip{cursor:pointer}[dir=ltr] .icon-tooltip{margin-right:10px}[dir=rtl] .icon-tooltip{margin-left:10px}.x{font-size:1.5rem;vertical-align:middle;color:#f66;transition:color .3s ease}[dir] .x{cursor:pointer}.x:hover{color:#c00}.r{font-size:30px;vertical-align:middle;color:#39ff14;transition:color .6s ease,border-color .6s ease,box-shadow .6s ease,opacity .6s ease,transform .6s ease;box-sizing:border-box}[dir] .r{cursor:pointer;border:2px solid #4caf50;padding:4px;border-radius:4px}@keyframes spin-ltr{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}@keyframes spin-rtl{0%{transform:rotate(0deg)}to{transform:rotate(-1turn)}}.r:hover{color:#39ff14}[dir] .r:hover{border-color:#81c784;box-shadow:0 0 10px 2px #81c784b3}.r.disabled{opacity:.5;pointer-events:none;width:30px!important;height:30px!important;transition:color .6s ease,border-color .6s ease,box-shadow .6s ease,opacity .6s ease,transform .6s ease}[dir] .r.disabled{cursor:not-allowed;border-radius:50%;padding:4px;box-shadow:0 0 10px 2px #81c784b3}[dir=ltr] .r.disabled{animation:spin-ltr 2s linear infinite}[dir=rtl] .r.disabled{animation:spin-rtl 2s linear infinite}input[type=number]::-webkit-inner-spin-button,input[type=number]::-webkit-outer-spin-button{-webkit-appearance:auto}[dir] input[type=number]::-webkit-inner-spin-button,[dir] input[type=number]::-webkit-outer-spin-button{margin:0}input[type=number]{-moz-appearance:textfield;-webkit-appearance:textfield;appearance:textfield;color:gray}[dir=ltr] input[type=number]{padding-right:10px}[dir=rtl] input[type=number]{padding-left:10px}.apps-available-table tbody td,.apps-available-table thead th,.apps-globalAvailable-table thead th,.apps-globalAvailable-tablet body td,.apps-installed-table tbody td,.apps-installed-table thead th,.apps-local-table tbody td,.apps-local-table thead th{text-transform:none!important}[dir=ltr] .apps-running-table td:first-child{padding:0 0 0 5px}[dir=rtl] .apps-running-table td:first-child{padding:0 5px 0 0}[dir=ltr] .apps-running-table th:first-child{padding:0 0 0 5px}[dir=rtl] .apps-running-table th:first-child{padding:0 5px 0 0}[dir=ltr] .apps-local-table td:first-child{padding:0 0 0 5px}[dir=rtl] .apps-local-table td:first-child{padding:0 5px 0 0}[dir=ltr] .apps-local-table th:first-child{padding:0 0 0 5px}[dir=rtl] .apps-local-table th:first-child{padding:0 5px 0 0}[dir=ltr] .apps-installed-table td:first-child{padding:0 0 0 5px}[dir=rtl] .apps-installed-table td:first-child{padding:0 5px 0 0}[dir=ltr] .apps-installed-table th:first-child{padding:0 0 0 5px}[dir=rtl] .apps-installed-table th:first-child{padding:0 5px 0 0}[dir=ltr] .apps-globalAvailable-table td:first-child{padding:0 0 0 5px}[dir=rtl] .apps-globalAvailable-table td:first-child{padding:0 5px 0 0}[dir=ltr] .apps-globalAvailable-table th:first-child{padding:0 0 0 5px}[dir=rtl] .apps-globalAvailable-table th:first-child{padding:0 5px 0 0}[dir=ltr] .apps-available-table td:first-child{padding:0 0 0 5px}[dir=rtl] .apps-available-table td:first-child{padding:0 5px 0 0}[dir=ltr] .apps-available-table th:first-child{padding:0 0 0 5px}[dir=rtl] .apps-available-table th:first-child{padding:0 5px 0 0}.locations-table td:first-child,.locations-table th:first-child{width:105px}.icon-style-trash:hover{color:red;transition:color .2s}.icon-style-start:hover{color:green;transition:color .2s}.icon-style-stop:hover{color:red;transition:color .3s}.icon-style-gear:hover,.icon-style-restart:hover{color:#6495ed;transition:color .2s}.disable-hover:hover{color:inherit}[dir] .disable-hover:hover{background-color:inherit;border-color:inherit}.textarea{display:block;height:inherit;white-space:normal}[dir] .textarea{border-radius:10px}.hover-underline:hover{text-decoration:underline}.red-text{display:inline-block;font-weight:800;color:red}[dir] .red-text{background-color:#ff000040;border-radius:15px;margin:0 .1em;padding:.1em .6em} \ No newline at end of file +.toastification-close-icon[data-v-22d964ca],.toastification-title[data-v-22d964ca]{line-height:26px}.toastification-title[data-v-22d964ca]{color:inherit}.popover{max-width:400px}.confirm-dialog-250{width:250px}.confirm-dialog-275{width:275px}.confirm-dialog-300{width:300px}.confirm-dialog-350{width:350px}.confirm-dialog-400{width:400px}.flux-share-upload-drop[data-v-8e3a5248]{height:250px;width:300px}[dir] .flux-share-upload-drop[data-v-8e3a5248]{border-style:dotted;border-color:var(--secondary-color);cursor:pointer}[dir] .flux-share-upload-drop[data-v-8e3a5248]:hover{border-color:var(--primary-color)}.flux-share-upload-drop svg[data-v-8e3a5248]{width:100px;height:100px}[dir] .flux-share-upload-drop svg[data-v-8e3a5248]{margin:50px 0 10px 0}.flux-share-upload-input[data-v-8e3a5248]{display:none}.upload-footer[data-v-8e3a5248]{font-size:10px;position:relative;top:20px}.upload-column[data-v-8e3a5248]{overflow-y:auto;height:250px}.upload-item[data-v-8e3a5248]{overflow:hidden;white-space:nowrap;position:relative;height:30px}[dir=ltr] .upload-item[data-v-8e3a5248]{padding:0 0 0 3px}[dir=rtl] .upload-item[data-v-8e3a5248]{padding:0 3px 0 0}.upload-item p[data-v-8e3a5248]{text-overflow:ellipsis;overflow:hidden}[dir] .upload-item p[data-v-8e3a5248]{margin:0 0 10px}[dir=ltr] .upload-item p[data-v-8e3a5248]{padding:0 40px 0 0}[dir=rtl] .upload-item p[data-v-8e3a5248]{padding:0 0 0 40px}.upload-item .delete[data-v-8e3a5248]{position:absolute;top:0}[dir=ltr] .upload-item .delete[data-v-8e3a5248]{right:0}[dir=rtl] .upload-item .delete[data-v-8e3a5248]{left:0}.xterm{cursor:text;position:relative;user-select:none;-ms-user-select:none;-webkit-user-select:none}.xterm.focus,.xterm:focus{outline:none}.xterm .xterm-helpers{position:absolute;top:0;z-index:5}.xterm .xterm-helper-textarea{padding:0;border:0;margin:0;position:absolute;opacity:0;left:-9999em;top:0;width:0;height:0;z-index:-5;white-space:nowrap;overflow:hidden;resize:none}.xterm .composition-view{background:#000;color:#fff;display:none;position:absolute;white-space:nowrap;z-index:1}.xterm .composition-view.active{display:block}.xterm .xterm-viewport{background-color:#000;overflow-y:scroll;cursor:default;position:absolute;right:0;left:0;top:0;bottom:0}.xterm .xterm-screen{position:relative}.xterm .xterm-screen canvas{position:absolute;left:0;top:0}.xterm .xterm-scroll-area{visibility:hidden}.xterm-char-measure-element{display:inline-block;visibility:hidden;position:absolute;top:0;left:-9999em;line-height:normal}.xterm.enable-mouse-events{cursor:default}.xterm .xterm-cursor-pointer,.xterm.xterm-cursor-pointer{cursor:pointer}.xterm.column-select.focus{cursor:crosshair}.xterm .xterm-accessibility,.xterm .xterm-message{position:absolute;left:0;top:0;bottom:0;z-index:10;color:#0000}.xterm .live-region{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}.xterm-dim{opacity:.5}.xterm-underline-1{text-decoration:underline}.xterm-underline-2{-webkit-text-decoration:double underline;text-decoration:double underline}.xterm-underline-3{-webkit-text-decoration:wavy underline;text-decoration:wavy underline}.xterm-underline-4{-webkit-text-decoration:dotted underline;text-decoration:dotted underline}.xterm-underline-5{-webkit-text-decoration:dashed underline;text-decoration:dashed underline}.xterm-strikethrough{text-decoration:line-through}.xterm-screen .xterm-decoration-container .xterm-decoration{z-index:6;position:absolute}.xterm-decoration-overview-ruler{z-index:7;position:absolute;top:0;right:0;pointer-events:none}.xterm-decoration-top{z-index:2;position:relative}[dir=ltr] #updatemessage{padding-right:25px!important}[dir=rtl] #updatemessage{padding-left:25px!important}.text-wrap{position:relative}[dir] .text-wrap{padding:0}.clipboard.icon{position:absolute;top:.4em;width:12px;height:12px}[dir] .clipboard.icon{margin-top:4px;border:1px solid #333;border-top:none;border-radius:1px;cursor:pointer}[dir=ltr] .clipboard.icon{right:2em;margin-left:4px}[dir=rtl] .clipboard.icon{left:2em;margin-right:4px}.no-wrap,.no-wrap-limit{white-space:nowrap!important}.no-wrap-limit{min-width:150px}[dir] .no-wrap-limit{text-align:center}.custom-button{width:15px!important;height:25px!important}.button-cell{display:flex;align-items:center;min-width:150px}[dir] .xterm{padding:10px}[dir=ltr] .spin-icon{animation:spin-ltr 2s linear infinite}[dir=rtl] .spin-icon{animation:spin-rtl 2s linear infinite}.spin-icon-l{width:12px!important;height:12px!important}[dir=ltr] .spin-icon-l{animation:spin-ltr 2s linear infinite}[dir=rtl] .spin-icon-l{animation:spin-rtl 2s linear infinite}[dir=ltr] .app-instances-table td:first-child{padding:0 0 0 5px}[dir=rtl] .app-instances-table td:first-child{padding:0 5px 0 0}[dir=ltr] .app-instances-table th:first-child{padding:0 0 0 5px}[dir=rtl] .app-instances-table th:first-child{padding:0 5px 0 0}.app-instances-table td:nth-child(5),.app-instances-table th:nth-child(5){width:105px}.loginRow{display:flex;flex-direction:row;justify-content:space-around;align-items:center}[dir] .loginRow{margin-bottom:10px}.walletIcon{height:90px;width:90px}[dir] .walletIcon{padding:10px}.walletIcon img{-webkit-app-region:no-drag;transition:.1s}.fluxSSO{height:90px}[dir] .fluxSSO{padding:10px}[dir=ltr] .fluxSSO{margin-left:5px}[dir=rtl] .fluxSSO{margin-right:5px}.fluxSSO img{-webkit-app-region:no-drag;transition:.1s}.stripePay{height:90px}[dir] .stripePay{padding:10px}[dir=ltr] .stripePay{margin-left:5px}[dir=rtl] .stripePay{margin-right:5px}.stripePay img{-webkit-app-region:no-drag;transition:.1s}.paypalPay{height:90px}[dir] .paypalPay{padding:10px}[dir=ltr] .paypalPay{margin-left:5px}[dir=rtl] .paypalPay{margin-right:5px}.paypalPay img{-webkit-app-region:no-drag;transition:.1s}a img{transition:all .05s ease-in-out}a:hover img{filter:opacity(70%)}[dir] a:hover img{transform:scale(1.1)}.flex{display:flex}.anchor{display:block;height:100px;visibility:hidden}[dir] .anchor{margin-top:-100px}.v-toast__text{font-family:Roboto,sans-serif!important}.jv-dark{white-space:nowrap;font-size:14px;font-family:Consolas,Menlo,Courier,monospace}[dir] .jv-dark{background:none;margin-bottom:25px}.jv-button{color:#49b3ff!important}.jv-dark .jv-array,.jv-dark .jv-key{color:#999!important}.jv-boolean{color:#fc1e70!important}.jv-function{color:#067bca!important}.jv-number,.jv-number-float,.jv-number-integer{color:#fc1e70!important}.jv-dark .jv-object{color:#999!important}.jv-undefined{color:#e08331!important}.jv-string{color:#42b983!important;word-break:break-word;white-space:normal}[dir] .card-body{padding:1rem}[dir] .table-no-padding>td{padding:0!important}.backups-table td{position:relative}td .ellipsis-wrapper{position:absolute;max-width:calc(100% - 1rem);line-height:calc(3rem - 8px);top:0;text-overflow:ellipsis;overflow:hidden;white-space:nowrap}[dir=ltr] td .ellipsis-wrapper{left:1rem}[dir=rtl] td .ellipsis-wrapper{right:1rem}.logs{max-height:392px;overflow-y:auto;color:#fff;font-size:12px;font-family:Menlo,Monaco,Consolas,Courier New,monospace}[dir] .logs{margin:5px;border:1px solid #ccc;padding:10px;background-color:#000}.input{min-width:150px;width:200px}.input_s{min-width:300px;width:350px}.clear-button{height:100%}.code-container{height:330px;max-width:100vw;position:relative;user-select:text;color:#fff;overflow:auto;font-size:12px;font-family:Menlo,Monaco,Consolas,Courier New,monospace;box-sizing:border-box;clip-path:inset(0 round 6px);word-wrap:break-word;word-break:break-all}[dir] .code-container{margin:5px;background-color:#000;border-radius:6px;border:1px solid #e1e4e8;padding:16px}.log-entry{user-select:text;white-space:pre-wrap}.line-by-line-mode .log-entry{user-select:none}[dir] .line-by-line-mode .log-entry{cursor:pointer}[dir] .line-by-line-mode .log-entry:hover{background-color:#ffffff1a}[dir] .line-by-line-mode .log-entry.selected{background-color:#ffffff4d}[dir=ltr] .line-by-line-mode .log-entry.selected{border-left:5px solid #007bff}[dir=rtl] .line-by-line-mode .log-entry.selected{border-right:5px solid #007bff}[dir] .line-by-line-mode .log-entry.selected:hover{background-color:#ffffff80}.log-copy-button{position:sticky;top:2px;color:#fff;font-size:12px;transition:background-color .2s ease;z-index:1000}[dir] .log-copy-button{padding:4px 8px;border:none;border-radius:4px;background-color:#0366d6;cursor:pointer}[dir=ltr] .log-copy-button{float:right}[dir=rtl] .log-copy-button{float:left}[dir] .log-copy-button:hover{background-color:#024b8e}.log-copy-button:disabled{color:#fff}[dir] .log-copy-button:disabled{background-color:#6c757d}.download-button:disabled{color:#fff}[dir] .download-button:disabled{background-color:#6c757d}.download-button{position:sticky;top:2px;color:#fff;font-size:12px;transition:background-color .2s ease}[dir] .download-button{padding:4px 8px;border:none;border-radius:4px;background-color:#28a745;cursor:pointer}[dir=ltr] .download-button{float:right;right:8px;margin-left:15px}[dir=rtl] .download-button{float:left;left:8px;margin-right:15px}.search_input{min-width:600px}.flex-container{display:flex;justify-content:space-between;align-items:left;flex-wrap:wrap}[dir] .download-button:hover{background-color:#218838}[dir] .download-button:disabled:hover{background-color:#6c757d}.icon-tooltip{font-size:15px;-webkit-appearance:none;-moz-appearance:none;appearance:none;color:#6c757d}[dir] .icon-tooltip{cursor:pointer}[dir=ltr] .icon-tooltip{margin-right:10px}[dir=rtl] .icon-tooltip{margin-left:10px}.x{font-size:1.5rem;vertical-align:middle;color:#f66;transition:color .3s ease}[dir] .x{cursor:pointer}.x:hover{color:#c00}.r{font-size:30px;vertical-align:middle;color:#39ff14;transition:color .6s ease,border-color .6s ease,box-shadow .6s ease,opacity .6s ease,transform .6s ease;box-sizing:border-box}[dir] .r{cursor:pointer;border:2px solid #4caf50;padding:4px;border-radius:4px}@keyframes spin-ltr{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}@keyframes spin-rtl{0%{transform:rotate(0deg)}to{transform:rotate(-1turn)}}.r:hover{color:#39ff14}[dir] .r:hover{border-color:#81c784;box-shadow:0 0 10px 2px #81c784b3}.r.disabled{opacity:.5;pointer-events:none;width:30px!important;height:30px!important;transition:color .6s ease,border-color .6s ease,box-shadow .6s ease,opacity .6s ease,transform .6s ease}[dir] .r.disabled{cursor:not-allowed;border-radius:50%;padding:4px;box-shadow:0 0 10px 2px #81c784b3}[dir=ltr] .r.disabled{animation:spin-ltr 2s linear infinite}[dir=rtl] .r.disabled{animation:spin-rtl 2s linear infinite}.container{max-width:1500px;width:100%;display:flex;flex-direction:column;justify-content:space-between}[dir] .container{padding:0;margin:0 auto}.flex-container2{height:50%;justify-content:space-between;flex-wrap:nowrap}[dir] .flex-container2{padding:.5vw}.charts-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:1vw;width:100%}[dir] .charts-grid{margin:1vh}.chart-wrapper{width:100%;min-width:600px;overflow:hidden;justify-content:center;align-items:center}[dir] .chart-wrapper{padding:10px;border-radius:10px;box-shadow:0 4px 6px #0000001a}.chart-title-container{align-items:center;display:flex}[dir=ltr] .chart-title-container{margin-right:10px}[dir=rtl] .chart-title-container{margin-left:10px}.table-responsive{overflow-x:auto}[dir] .table-responsive{box-shadow:0 6px 6px #0000001a}.table-monitoring{table-layout:auto;width:100%}.table-monitoring td,.table-monitoring th{white-space:nowrap}[dir] .table-monitoring td,[dir] .table-monitoring th{border:none;background-color:#0000}.chart-title{font-size:18px;font-weight:700}[dir=ltr] .chart-title{margin-left:8px}[dir=rtl] .chart-title{margin-right:8px}.icon-large{font-size:24px!important}.chart-wrapper canvas{max-width:100%;height:100%}@media(max-width:1800px){.charts-grid{grid-template-columns:1fr;gap:2vw}[dir] .charts-grid{margin:1vh 0}}@media(min-width:1800px){.charts-grid{grid-template-columns:repeat(2,1fr);gap:1vw}.charts-grid>.chart-wrapper:last-child:nth-child(odd){grid-column:1/-1;justify-self:center;width:100%}}input[type=number]::-webkit-inner-spin-button,input[type=number]::-webkit-outer-spin-button{-webkit-appearance:auto}[dir] input[type=number]::-webkit-inner-spin-button,[dir] input[type=number]::-webkit-outer-spin-button{margin:0}input[type=number]{-moz-appearance:textfield;-webkit-appearance:textfield;appearance:textfield;color:gray}[dir=ltr] input[type=number]{padding-right:10px}[dir=rtl] input[type=number]{padding-left:10px}.apps-active-table tbody td,.apps-active-table thead th,.myapps-table tbody td,.myapps-table thead th{text-transform:none!important}[dir=ltr] .apps-active-table td:first-child{padding:0 0 0 5px}[dir=rtl] .apps-active-table td:first-child{padding:0 5px 0 0}[dir=ltr] .apps-active-table th:first-child{padding:0 0 0 5px}[dir=rtl] .apps-active-table th:first-child{padding:0 5px 0 0}[dir=ltr] .myapps-table td:first-child{padding:0 0 0 5px}[dir=rtl] .myapps-table td:first-child{padding:0 5px 0 0}[dir=ltr] .myapps-table th:first-child{padding:0 0 0 5px}[dir=rtl] .myapps-table th:first-child{padding:0 5px 0 0}.locations-table td:first-child,.locations-table th:first-child,.myapps-table td:nth-child(5),.myapps-table td:nth-child(6),.myapps-table th:nth-child(5),.myapps-table th:nth-child(6){width:105px}.hover-underline:hover{text-decoration:underline}.red-text{display:inline-block;font-weight:800;color:red}[dir] .red-text{background-color:#ff000040;border-radius:15px;margin:0 .1em;padding:.1em .6em} \ No newline at end of file diff --git a/HomeUI/dist/css/2532.css b/HomeUI/dist/css/2532.css deleted file mode 100644 index 87674e647..000000000 --- a/HomeUI/dist/css/2532.css +++ /dev/null @@ -1 +0,0 @@ -@import url(https://fonts.googleapis.com/css?family=Roboto:400,500,700&display=swap);.mdl-button{background:0 0;border:none;border-radius:2px;color:#000;position:relative;height:36px;margin:0;min-width:64px;padding:0 16px;display:inline-block;font-family:Roboto,Helvetica,Arial,sans-serif;font-size:14px;font-weight:500;text-transform:uppercase;line-height:1;letter-spacing:0;overflow:hidden;will-change:box-shadow;transition:box-shadow .2s cubic-bezier(.4,0,1,1),background-color .2s cubic-bezier(.4,0,.2,1),color .2s cubic-bezier(.4,0,.2,1);outline:0;cursor:pointer;text-decoration:none;text-align:center;line-height:36px;vertical-align:middle}.mdl-button::-moz-focus-inner{border:0}.mdl-button:hover{background-color:#9e9e9e33}.mdl-button:focus:not(:active){background-color:#0000001f}.mdl-button:active{background-color:#9e9e9e66}.mdl-button.mdl-button--colored{color:#3f51b5}.mdl-button.mdl-button--colored:focus:not(:active){background-color:#0000001f}input.mdl-button[type=submit]{-webkit-appearance:none}.mdl-button--raised{background:#9e9e9e33;box-shadow:0 2px 2px 0 #00000024,0 3px 1px -2px #0003,0 1px 5px 0 #0000001f}.mdl-button--raised:active{box-shadow:0 4px 5px 0 #00000024,0 1px 10px 0 #0000001f,0 2px 4px -1px #0003;background-color:#9e9e9e66}.mdl-button--raised:focus:not(:active){box-shadow:0 0 8px #0000002e,0 8px 16px #0000005c;background-color:#9e9e9e66}.mdl-button--raised.mdl-button--colored{background:#3f51b5;color:#fff}.mdl-button--raised.mdl-button--colored:active,.mdl-button--raised.mdl-button--colored:focus:not(:active),.mdl-button--raised.mdl-button--colored:hover{background-color:#3f51b5}.mdl-button--raised.mdl-button--colored .mdl-ripple{background:#fff}.mdl-button--fab{border-radius:50%;font-size:24px;height:56px;margin:auto;min-width:56px;width:56px;padding:0;overflow:hidden;background:#9e9e9e33;box-shadow:0 1px 1.5px 0 #0000001f,0 1px 1px 0 #0000003d;position:relative;line-height:normal}.mdl-button--fab .material-icons{position:absolute;top:50%;left:50%;transform:translate(-12px,-12px);line-height:24px;width:24px}.mdl-button--fab.mdl-button--mini-fab{height:40px;min-width:40px;width:40px}.mdl-button--fab .mdl-button__ripple-container{border-radius:50%;-webkit-mask-image:-webkit-radial-gradient(circle,#fff,#000)}.mdl-button--fab:active{box-shadow:0 4px 5px 0 #00000024,0 1px 10px 0 #0000001f,0 2px 4px -1px #0003;background-color:#9e9e9e66}.mdl-button--fab:focus:not(:active){box-shadow:0 0 8px #0000002e,0 8px 16px #0000005c;background-color:#9e9e9e66}.mdl-button--fab.mdl-button--colored{background:#ff4081;color:#fff}.mdl-button--fab.mdl-button--colored:active,.mdl-button--fab.mdl-button--colored:focus:not(:active),.mdl-button--fab.mdl-button--colored:hover{background-color:#ff4081}.mdl-button--fab.mdl-button--colored .mdl-ripple{background:#fff}.mdl-button--icon{border-radius:50%;font-size:24px;height:32px;margin-left:0;margin-right:0;min-width:32px;width:32px;padding:0;overflow:hidden;color:inherit;line-height:normal}.mdl-button--icon .material-icons{position:absolute;top:50%;left:50%;transform:translate(-12px,-12px);line-height:24px;width:24px}.mdl-button--icon.mdl-button--mini-icon{height:24px;min-width:24px;width:24px}.mdl-button--icon.mdl-button--mini-icon .material-icons{top:0;left:0}.mdl-button--icon .mdl-button__ripple-container{border-radius:50%;-webkit-mask-image:-webkit-radial-gradient(circle,#fff,#000)}.mdl-button__ripple-container{display:block;height:100%;left:0;position:absolute;top:0;width:100%;z-index:0;overflow:hidden}.mdl-button.mdl-button--disabled .mdl-button__ripple-container .mdl-ripple,.mdl-button[disabled] .mdl-button__ripple-container .mdl-ripple{background-color:initial}.mdl-button--primary.mdl-button--primary{color:#3f51b5}.mdl-button--primary.mdl-button--primary .mdl-ripple{background:#fff}.mdl-button--primary.mdl-button--primary.mdl-button--fab,.mdl-button--primary.mdl-button--primary.mdl-button--raised{color:#fff;background-color:#3f51b5}.mdl-button--accent.mdl-button--accent{color:#ff4081}.mdl-button--accent.mdl-button--accent .mdl-ripple{background:#fff}.mdl-button--accent.mdl-button--accent.mdl-button--fab,.mdl-button--accent.mdl-button--accent.mdl-button--raised{color:#fff;background-color:#ff4081}.mdl-button.mdl-button--disabled.mdl-button--disabled,.mdl-button[disabled][disabled]{color:#00000042;cursor:default;background-color:initial}.mdl-button--fab.mdl-button--disabled.mdl-button--disabled,.mdl-button--fab[disabled][disabled]{background-color:#0000001f;color:#00000042}.mdl-button--raised.mdl-button--disabled.mdl-button--disabled,.mdl-button--raised[disabled][disabled]{background-color:#0000001f;color:#00000042;box-shadow:none}.mdl-button--colored.mdl-button--disabled.mdl-button--disabled,.mdl-button--colored[disabled][disabled]{color:#00000042}.mdl-button .material-icons{vertical-align:middle}.mdl-card{display:flex;flex-direction:column;font-size:16px;font-weight:400;min-height:200px;overflow:hidden;width:330px;z-index:1;position:relative;background:#fff;border-radius:2px;box-sizing:border-box}.mdl-card__media{background-color:#ff4081;background-repeat:repeat;background-position:50% 50%;background-size:cover;background-origin:initial;background-attachment:scroll;box-sizing:border-box}.mdl-card__title{align-items:center;color:#000;display:block;display:flex;justify-content:stretch;line-height:normal;padding:16px 16px;perspective-origin:165px 56px;transform-origin:165px 56px;box-sizing:border-box}.mdl-card__title.mdl-card--border{border-bottom:1px solid #0000001a}.mdl-card__title-text{align-self:flex-end;color:inherit;display:block;display:flex;font-size:24px;font-weight:300;line-height:normal;overflow:hidden;transform-origin:149px 48px;margin:0}.mdl-card__subtitle-text{font-size:14px;color:#0000008a;margin:0}.mdl-card__supporting-text{color:#0000008a;font-size:1rem;line-height:18px;overflow:hidden;padding:16px 16px;width:90%}.mdl-card__supporting-text.mdl-card--border{border-bottom:1px solid #0000001a}.mdl-card__actions{font-size:16px;line-height:normal;width:100%;background-color:#0000;padding:8px;box-sizing:border-box}.mdl-card__actions.mdl-card--border{border-top:1px solid #0000001a}.mdl-card--expand{flex-grow:1}.mdl-card__menu{position:absolute;right:16px;top:16px}.mdl-dialog{border:none;box-shadow:0 9px 46px 8px #00000024,0 11px 15px -7px #0000001f,0 24px 38px 3px #0003;width:280px}.mdl-dialog__title{padding:24px 24px 0;margin:0;font-size:2.5rem}.mdl-dialog__actions{padding:8px 8px 8px 24px;display:flex;flex-direction:row-reverse;flex-wrap:wrap}.mdl-dialog__actions>*{margin-right:8px;height:36px}.mdl-dialog__actions>:first-child{margin-right:0}.mdl-dialog__actions--full-width{padding:0 0 8px 0}.mdl-dialog__actions--full-width>*{height:48px;flex:0 0 100%;padding-right:16px;margin-right:0;text-align:right}.mdl-dialog__content{padding:20px 24px 24px 24px;color:#0000008a}.mdl-progress{display:block;position:relative;height:4px;width:500px;max-width:100%}.mdl-progress>.bar{display:block;position:absolute;top:0;bottom:0;width:0;transition:width .2s cubic-bezier(.4,0,.2,1)}.mdl-progress>.progressbar{background-color:#3f51b5;z-index:1;left:0}.mdl-progress>.bufferbar{background-image:linear-gradient(90deg,#ffffffb3,#ffffffb3),linear-gradient(90deg,#3f51b5,#3f51b5);z-index:0;left:0}.mdl-progress>.auxbar{right:0}@supports (-webkit-appearance:none){.mdl-progress:not(.mdl-progress--indeterminate):not(.mdl-progress--indeterminate)>.auxbar,.mdl-progress:not(.mdl-progress__indeterminate):not(.mdl-progress__indeterminate)>.auxbar{background-image:linear-gradient(90deg,#ffffffb3,#ffffffb3),linear-gradient(90deg,#3f51b5,#3f51b5);-webkit-mask:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTIiIGhlaWdodD0iNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48Y2lyY2xlIGN4PSIyIiBjeT0iMiIgcj0iMiI+PGFuaW1hdGUgYXR0cmlidXRlTmFtZT0iY3giIGZyb209IjIiIHRvPSItMTAiIGR1cj0iMC42cyIgcmVwZWF0Q291bnQ9ImluZGVmaW5pdGUiLz48L2NpcmNsZT48Y2lyY2xlIGN4PSIxNCIgY3k9IjIiIGNsYXNzPSJsb2FkZXIiIHI9IjIiPjxhbmltYXRlIGF0dHJpYnV0ZU5hbWU9ImN4IiBmcm9tPSIxNCIgdG89IjIiIGR1cj0iMC42cyIgcmVwZWF0Q291bnQ9ImluZGVmaW5pdGUiLz48L2NpcmNsZT48L3N2Zz4=);mask:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTIiIGhlaWdodD0iNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48Y2lyY2xlIGN4PSIyIiBjeT0iMiIgcj0iMiI+PGFuaW1hdGUgYXR0cmlidXRlTmFtZT0iY3giIGZyb209IjIiIHRvPSItMTAiIGR1cj0iMC42cyIgcmVwZWF0Q291bnQ9ImluZGVmaW5pdGUiLz48L2NpcmNsZT48Y2lyY2xlIGN4PSIxNCIgY3k9IjIiIGNsYXNzPSJsb2FkZXIiIHI9IjIiPjxhbmltYXRlIGF0dHJpYnV0ZU5hbWU9ImN4IiBmcm9tPSIxNCIgdG89IjIiIGR1cj0iMC42cyIgcmVwZWF0Q291bnQ9ImluZGVmaW5pdGUiLz48L2NpcmNsZT48L3N2Zz4=)}}.mdl-progress:not(.mdl-progress--indeterminate)>.auxbar,.mdl-progress:not(.mdl-progress__indeterminate)>.auxbar{background-image:linear-gradient(90deg,#ffffffe6,#ffffffe6),linear-gradient(90deg,#3f51b5,#3f51b5)}.mdl-progress.mdl-progress--indeterminate>.bar1,.mdl-progress.mdl-progress__indeterminate>.bar1{background-color:#3f51b5;animation-name:indeterminate1;animation-duration:2s;animation-iteration-count:infinite;animation-timing-function:linear}.mdl-progress.mdl-progress--indeterminate>.bar3,.mdl-progress.mdl-progress__indeterminate>.bar3{background-image:none;background-color:#3f51b5;animation-name:indeterminate2;animation-duration:2s;animation-iteration-count:infinite;animation-timing-function:linear}@keyframes indeterminate1{0%{left:0;width:0}50%{left:25%;width:75%}75%{left:100%;width:0}}@keyframes indeterminate2{0%{left:0;width:0}50%{left:0;width:0}75%{left:0;width:25%}to{left:100%;width:0}}.mdl-shadow--2dp{box-shadow:0 2px 2px 0 #00000024,0 3px 1px -2px #0003,0 1px 5px 0 #0000001f}.mdl-shadow--3dp{box-shadow:0 3px 4px 0 #00000024,0 3px 3px -2px #0003,0 1px 8px 0 #0000001f}.mdl-shadow--4dp{box-shadow:0 4px 5px 0 #00000024,0 1px 10px 0 #0000001f,0 2px 4px -1px #0003}.mdl-shadow--6dp{box-shadow:0 6px 10px 0 #00000024,0 1px 18px 0 #0000001f,0 3px 5px -1px #0003}.mdl-shadow--8dp{box-shadow:0 8px 10px 1px #00000024,0 3px 14px 2px #0000001f,0 5px 5px -3px #0003}.mdl-shadow--16dp{box-shadow:0 16px 24px 2px #00000024,0 6px 30px 5px #0000001f,0 8px 10px -5px #0003}.mdl-shadow--24dp{box-shadow:0 9px 46px 8px #00000024,0 11px 15px -7px #0000001f,0 24px 38px 3px #0003}.mdl-spinner{display:inline-block;position:relative;width:28px;height:28px}.mdl-spinner:not(.is-upgraded).is-active:after{content:"Loading..."}.mdl-spinner.is-upgraded.is-active{animation:mdl-spinner__container-rotate 1.568s linear infinite}@keyframes mdl-spinner__container-rotate{to{transform:rotate(1turn)}}.mdl-spinner__layer{position:absolute;width:100%;height:100%;opacity:0}.mdl-spinner__layer-1{border-color:#42a5f5}.mdl-spinner--single-color .mdl-spinner__layer-1{border-color:#3f51b5}.mdl-spinner.is-active .mdl-spinner__layer-1{animation:mdl-spinner__fill-unfill-rotate 5332ms cubic-bezier(.4,0,.2,1) infinite both,mdl-spinner__layer-1-fade-in-out 5332ms cubic-bezier(.4,0,.2,1) infinite both}.mdl-spinner__layer-2{border-color:#f44336}.mdl-spinner--single-color .mdl-spinner__layer-2{border-color:#3f51b5}.mdl-spinner.is-active .mdl-spinner__layer-2{animation:mdl-spinner__fill-unfill-rotate 5332ms cubic-bezier(.4,0,.2,1) infinite both,mdl-spinner__layer-2-fade-in-out 5332ms cubic-bezier(.4,0,.2,1) infinite both}.mdl-spinner__layer-3{border-color:#fdd835}.mdl-spinner--single-color .mdl-spinner__layer-3{border-color:#3f51b5}.mdl-spinner.is-active .mdl-spinner__layer-3{animation:mdl-spinner__fill-unfill-rotate 5332ms cubic-bezier(.4,0,.2,1) infinite both,mdl-spinner__layer-3-fade-in-out 5332ms cubic-bezier(.4,0,.2,1) infinite both}.mdl-spinner__layer-4{border-color:#4caf50}.mdl-spinner--single-color .mdl-spinner__layer-4{border-color:#3f51b5}.mdl-spinner.is-active .mdl-spinner__layer-4{animation:mdl-spinner__fill-unfill-rotate 5332ms cubic-bezier(.4,0,.2,1) infinite both,mdl-spinner__layer-4-fade-in-out 5332ms cubic-bezier(.4,0,.2,1) infinite both}@keyframes mdl-spinner__fill-unfill-rotate{12.5%{transform:rotate(135deg)}25%{transform:rotate(270deg)}37.5%{transform:rotate(405deg)}50%{transform:rotate(540deg)}62.5%{transform:rotate(675deg)}75%{transform:rotate(810deg)}87.5%{transform:rotate(945deg)}to{transform:rotate(3turn)}}@keyframes mdl-spinner__layer-1-fade-in-out{0%{opacity:.99}25%{opacity:.99}26%{opacity:0}89%{opacity:0}90%{opacity:.99}to{opacity:.99}}@keyframes mdl-spinner__layer-2-fade-in-out{0%{opacity:0}15%{opacity:0}25%{opacity:.99}50%{opacity:.99}51%{opacity:0}}@keyframes mdl-spinner__layer-3-fade-in-out{0%{opacity:0}40%{opacity:0}50%{opacity:.99}75%{opacity:.99}76%{opacity:0}}@keyframes mdl-spinner__layer-4-fade-in-out{0%{opacity:0}65%{opacity:0}75%{opacity:.99}90%{opacity:.99}to{opacity:0}}.mdl-spinner__gap-patch{position:absolute;box-sizing:border-box;top:0;left:45%;width:10%;height:100%;overflow:hidden;border-color:inherit}.mdl-spinner__gap-patch .mdl-spinner__circle{width:1000%;left:-450%}.mdl-spinner__circle-clipper{display:inline-block;position:relative;width:50%;height:100%;overflow:hidden;border-color:inherit}.mdl-spinner__circle-clipper.mdl-spinner__left{float:left}.mdl-spinner__circle-clipper.mdl-spinner__right{float:right}.mdl-spinner__circle-clipper .mdl-spinner__circle{width:200%}.mdl-spinner__circle{box-sizing:border-box;height:100%;border-width:3px;border-style:solid;border-color:inherit;border-bottom-color:#0000!important;border-radius:50%;animation:none;position:absolute;top:0;right:0;bottom:0;left:0}.mdl-spinner__left .mdl-spinner__circle{border-right-color:#0000!important;transform:rotate(129deg)}.mdl-spinner.is-active .mdl-spinner__left .mdl-spinner__circle{animation:mdl-spinner__left-spin 1333ms cubic-bezier(.4,0,.2,1) infinite both}.mdl-spinner__right .mdl-spinner__circle{left:-100%;border-left-color:#0000!important;transform:rotate(-129deg)}.mdl-spinner.is-active .mdl-spinner__right .mdl-spinner__circle{animation:mdl-spinner__right-spin 1333ms cubic-bezier(.4,0,.2,1) infinite both}@keyframes mdl-spinner__left-spin{0%{transform:rotate(130deg)}50%{transform:rotate(-5deg)}to{transform:rotate(130deg)}}@keyframes mdl-spinner__right-spin{0%{transform:rotate(-130deg)}50%{transform:rotate(5deg)}to{transform:rotate(-130deg)}}.mdl-textfield{position:relative;font-size:16px;display:inline-block;box-sizing:border-box;width:300px;max-width:100%;margin:0;padding:20px 0}.mdl-textfield .mdl-button{position:absolute;bottom:20px}.mdl-textfield--align-right{text-align:right}.mdl-textfield--full-width{width:100%}.mdl-textfield--expandable{min-width:32px;width:auto;min-height:32px}.mdl-textfield--expandable .mdl-button--icon{top:16px}.mdl-textfield__input{border:none;border-bottom:1px solid #0000001f;display:block;font-size:16px;font-family:Helvetica,Arial,sans-serif;margin:0;padding:4px 0;width:100%;background:0 0;text-align:left;color:inherit}.mdl-textfield__input[type=number]{-moz-appearance:textfield}.mdl-textfield__input[type=number]::-webkit-inner-spin-button,.mdl-textfield__input[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}.mdl-textfield.is-focused .mdl-textfield__input{outline:0}.mdl-textfield.is-invalid .mdl-textfield__input{border-color:#d50000;box-shadow:none}.mdl-textfield.is-disabled .mdl-textfield__input,fieldset[disabled] .mdl-textfield .mdl-textfield__input{background-color:initial;border-bottom:1px dotted #0000001f;color:#00000042}.mdl-textfield textarea.mdl-textfield__input{display:block}.mdl-textfield__label{bottom:0;color:#00000042;font-size:16px;left:0;right:0;pointer-events:none;position:absolute;display:block;top:24px;width:100%;overflow:hidden;white-space:nowrap;text-align:left}.mdl-textfield.has-placeholder .mdl-textfield__label,.mdl-textfield.is-dirty .mdl-textfield__label{visibility:hidden}.mdl-textfield--floating-label .mdl-textfield__label{transition-duration:.2s;transition-timing-function:cubic-bezier(.4,0,.2,1)}.mdl-textfield--floating-label.has-placeholder .mdl-textfield__label{transition:none}.mdl-textfield.is-disabled.is-disabled .mdl-textfield__label,fieldset[disabled] .mdl-textfield .mdl-textfield__label{color:#00000042}.mdl-textfield--floating-label.has-placeholder .mdl-textfield__label,.mdl-textfield--floating-label.is-dirty .mdl-textfield__label,.mdl-textfield--floating-label.is-focused .mdl-textfield__label{color:#3f51b5;font-size:12px;top:4px;visibility:visible}.mdl-textfield--floating-label.has-placeholder .mdl-textfield__expandable-holder .mdl-textfield__label,.mdl-textfield--floating-label.is-dirty .mdl-textfield__expandable-holder .mdl-textfield__label,.mdl-textfield--floating-label.is-focused .mdl-textfield__expandable-holder .mdl-textfield__label{top:-16px}.mdl-textfield--floating-label.is-invalid .mdl-textfield__label{color:#d50000;font-size:12px}.mdl-textfield__label:after{background-color:#3f51b5;bottom:20px;content:"";height:2px;left:45%;position:absolute;transition-duration:.2s;transition-timing-function:cubic-bezier(.4,0,.2,1);visibility:hidden;width:10px}.mdl-textfield.is-focused .mdl-textfield__label:after{left:0;visibility:visible;width:100%}.mdl-textfield.is-invalid .mdl-textfield__label:after{background-color:#d50000}.mdl-textfield__error{color:#d50000;position:absolute;font-size:12px;margin-top:3px;visibility:hidden;display:block}.mdl-textfield.is-invalid .mdl-textfield__error{visibility:visible}.mdl-textfield__expandable-holder{position:relative;margin-left:32px;transition-duration:.2s;transition-timing-function:cubic-bezier(.4,0,.2,1);display:inline-block;max-width:.1px}.mdl-textfield.is-dirty .mdl-textfield__expandable-holder,.mdl-textfield.is-focused .mdl-textfield__expandable-holder{max-width:600px}.mdl-textfield__expandable-holder .mdl-textfield__label:after{bottom:0}dialog{position:absolute;left:0;right:0;width:-moz-fit-content;width:fit-content;height:-moz-fit-content;height:fit-content;margin:auto;border:solid;padding:1em;background:#fff;color:#000;display:block}dialog:not([open]){display:none}dialog+.backdrop{background:#0000001a}._dialog_overlay,dialog+.backdrop{position:fixed;top:0;right:0;bottom:0;left:0}dialog.fixed{position:fixed;top:50%;transform:translateY(-50%)}.firebaseui-container{background-color:#fff;box-sizing:border-box;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;color:#000000de;direction:ltr;font:16px Roboto,arial,sans-serif;margin:0 auto;max-width:360px;overflow:visible;position:relative;text-align:left;width:100%}.firebaseui-container.mdl-card{overflow:visible}.firebaseui-card-header{padding:24px 24px 0 24px}.firebaseui-card-content,.firebaseui-card-footer{padding:0 24px}.firebaseui-card-actions{box-sizing:border-box;display:table;font-size:14px;padding:8px 24px 24px 24px;text-align:left;width:100%}.firebaseui-form-links{display:table-cell;vertical-align:middle;width:100%}.firebaseui-form-actions{display:table-cell;text-align:right;white-space:nowrap;width:100%}.firebaseui-subtitle,.firebaseui-title{color:#000000de;direction:ltr;font-size:20px;font-weight:500;line-height:24px;margin:0;padding:0;text-align:left}.firebaseui-title{padding-bottom:16px}.firebaseui-subtitle{margin:16px 0}.firebaseui-text{color:#000000de;direction:ltr;font-size:16px;line-height:24px;text-align:left}.firebaseui-id-page-password-recovery-email-sent p.firebaseui-text{margin:16px 0}.firebaseui-text-emphasis{font-weight:700}.firebaseui-error{color:#dd2c00;direction:ltr;font-size:12px;line-height:16px;margin:0;text-align:left}.firebaseui-text-input-error{margin:-16px 0 16px}.firebaseui-error-wrapper{min-height:16px}.firebaseui-list-item{direction:ltr;margin:0;padding:0;text-align:left}.firebaseui-hidden{display:none}.firebaseui-relative-wrapper{position:relative}.firebaseui-label{color:#0000008a;direction:ltr;font-size:16px;text-align:left}.mdl-textfield--floating-label.is-dirty .mdl-textfield__label,.mdl-textfield--floating-label.is-focused .mdl-textfield__label{color:#757575}.firebaseui-input,.firebaseui-input-invalid{border-radius:0;color:#000000de;direction:ltr;font-size:16px;width:100%}input.firebaseui-input,input.firebaseui-input-invalid{direction:ltr;text-align:left}.firebaseui-input-invalid{border-color:#dd2c00}.firebaseui-textfield{width:100%}.firebaseui-textfield.mdl-textfield .firebaseui-input{border-color:#0000001f}.firebaseui-textfield.mdl-textfield .firebaseui-label:after{background-color:#3f51b5}.firebaseui-textfield-invalid.mdl-textfield .firebaseui-input{border-color:#dd2c00}.firebaseui-textfield-invalid.mdl-textfield .firebaseui-label:after{background-color:#dd2c00}.firebaseui-button{display:inline-block;height:36px;margin-left:8px;min-width:88px}.firebaseui-link{color:#4285f4;font-variant:normal;font-weight:400;text-decoration:none}.firebaseui-link:hover{text-decoration:underline}.firebaseui-indent{margin-left:1em}.firebaseui-tos{color:#757575;direction:ltr;font-size:12px;line-height:16px;margin-bottom:24px;margin-top:0;text-align:left}.firebaseui-provider-sign-in-footer>.firebaseui-tos{text-align:center}.firebaseui-tos-list{list-style:none;text-align:right}.firebaseui-inline-list-item{display:inline-block;margin-left:5px;margin-right:5px}.firebaseui-page-provider-sign-in,.firebaseui-page-select-tenant{background:inherit}.firebaseui-idp-list,.firebaseui-tenant-list{list-style:none;margin:1em 0;padding:0}.firebaseui-idp-button,.firebaseui-tenant-button{direction:ltr;font-weight:500;height:auto;line-height:normal;max-width:220px;min-height:40px;padding:8px 16px;text-align:left;width:100%}.firebaseui-idp-list>.firebaseui-list-item,.firebaseui-tenant-list>.firebaseui-list-item{margin-bottom:15px;text-align:center}.firebaseui-idp-icon-wrapper{display:table-cell;vertical-align:middle}.firebaseui-idp-icon{height:18px;width:18px}.firebaseui-idp-favicon,.firebaseui-idp-icon{border:none;display:inline-block;vertical-align:middle}.firebaseui-idp-favicon{height:14px;margin-right:5px;width:14px}.firebaseui-idp-text{color:#fff;display:table-cell;font-size:14px;padding-left:16px;text-transform:none;vertical-align:middle}.firebaseui-idp-text.firebaseui-idp-text-long{display:table-cell}.firebaseui-idp-text.firebaseui-idp-text-short{display:none}@media (max-width:268px){.firebaseui-idp-text.firebaseui-idp-text-long{display:none}.firebaseui-idp-text.firebaseui-idp-text-short{display:table-cell}}@media (max-width:320px){.firebaseui-recaptcha-container>div>div{transform:scale(.9);-webkit-transform:scale(.9);transform-origin:0 0;-webkit-transform-origin:0 0}}.firebaseui-idp-google>.firebaseui-idp-text{color:#757575}[data-provider-id="yahoo.com"]>.firebaseui-idp-icon-wrapper>.firebaseui-idp-icon{height:22px;width:22px}.firebaseui-info-bar{background-color:#f9edbe;border:1px solid #f0c36d;box-shadow:0 2px 4px #0003;-webkit-box-shadow:0 2px 4px #0003;-moz-box-shadow:0 2px 4px #0003;left:10%;padding:8px 16px;position:absolute;right:10%;text-align:center;top:0}.firebaseui-info-bar-message{font-size:12px;margin:0}.firebaseui-dialog{box-sizing:border-box;color:#000000de;font:16px Roboto,arial,sans-serif;height:auto;max-height:-moz-fit-content;max-height:fit-content;padding:24px;text-align:left}.firebaseui-dialog-icon-wrapper{display:table-cell;vertical-align:middle}.firebaseui-dialog-icon{float:left;height:40px;margin-right:24px;width:40px}.firebaseui-progress-dialog-message{display:table-cell;font-size:16px;font-weight:400;min-height:40px;vertical-align:middle}.firebaseui-progress-dialog-loading-icon{height:28px;margin:6px 30px 6px 6px;width:28px}.firebaseui-icon-done{background-image:url(https://www.gstatic.com/images/icons/material/system/2x/done_googgreen_36dp.png);background-position:50%;background-repeat:no-repeat;background-size:36px 36px}.firebaseui-phone-number{display:flex}.firebaseui-country-selector{background-image:url(https://www.gstatic.com/images/icons/material/system/1x/arrow_drop_down_grey600_18dp.png);background-position:100%;background-repeat:no-repeat;background-size:18px auto;border-radius:0;border-bottom:1px solid #0000001f;color:#000000de;flex-shrink:0;font-size:16px;font-weight:400;height:auto;line-height:normal;margin:20px 24px 20px 0;padding:4px 20px 4px 0;width:90px}.firebaseui-country-selector-flag{display:inline-block;margin-right:1ex}.firebaseui-flag{background-image:url(https://www.gstatic.com/firebasejs/ui/2.0.0/images/auth/flags_sprite_2x.png);background-size:100% auto;filter:drop-shadow(1px 1px 1px rgba(0,0,0,.54));height:14px;width:24px}.firebaseui-list-box-dialog{max-height:90%;overflow:auto;padding:8px 0 0 0}.firebaseui-list-box-actions{padding-bottom:8px}.firebaseui-list-box-icon-wrapper{padding-right:24px}.firebaseui-list-box-icon-wrapper,.firebaseui-list-box-label-wrapper{display:table-cell;vertical-align:top}.firebaseui-list-box-dialog-button{color:#000000de;direction:ltr;font-size:16px;font-weight:400;height:auto;line-height:normal;min-height:48px;padding:14px 24px;text-align:left;text-transform:none;width:100%}.firebaseui-phone-number-error{margin-left:114px}.mdl-progress.firebaseui-busy-indicator{height:2px;left:0;position:absolute;top:55px;width:100%}.mdl-spinner.firebaseui-busy-indicator{direction:ltr;height:56px;left:0;margin:auto;position:absolute;right:0;top:30%;width:56px}.firebaseui-callback-indicator-container .firebaseui-busy-indicator{top:0}.firebaseui-callback-indicator-container{height:120px}.firebaseui-new-password-component{display:inline-block;position:relative;width:100%}.firebaseui-input-floating-button{background-position:50%;background-repeat:no-repeat;display:block;height:24px;position:absolute;right:0;top:20px;width:24px}.firebaseui-input-toggle-on{background-image:url(https://www.gstatic.com/images/icons/material/system/1x/visibility_black_24dp.png)}.firebaseui-input-toggle-off{background-image:url(https://www.gstatic.com/images/icons/material/system/1x/visibility_off_black_24dp.png)}.firebaseui-input-toggle-focus{opacity:.87}.firebaseui-input-toggle-blur{opacity:.38}.firebaseui-recaptcha-wrapper{display:table;margin:0 auto;padding-bottom:8px}.firebaseui-recaptcha-container{display:table-cell}.firebaseui-recaptcha-error-wrapper{caption-side:bottom;display:table-caption}.firebaseui-change-phone-number-link{display:block}.firebaseui-resend-container{direction:ltr;margin:20px 0;text-align:center}.firebaseui-id-resend-countdown{color:#00000061}.firebaseui-id-page-phone-sign-in-start .firebaseui-form-actions div{float:left}@media (max-width:480px){.firebaseui-container{box-shadow:none;max-width:none;width:100%}.firebaseui-card-header{border-bottom:1px solid #e0e0e0;margin-bottom:16px;padding:16px 24px 0 24px}.firebaseui-title{padding-bottom:16px}.firebaseui-card-actions{padding-right:24px}.firebaseui-busy-indicator{top:0}}.mdl-textfield__label{font-weight:400;margin-bottom:0}.firebaseui-id-page-blank,.firebaseui-id-page-spinner{background:inherit;height:64px}.firebaseui-email-sent{background-image:url(https://www.gstatic.com/firebasejs/ui/2.0.0/images/auth/success_status.png);background-position:50%;background-repeat:no-repeat;background-size:64px 64px;height:64px;margin-top:16px;text-align:center}.firebaseui-text-justify{text-align:justify}.firebaseui-flag-KY{background-position:0 0}.firebaseui-flag-AC{background-position:0 -14px}.firebaseui-flag-AE{background-position:0 -28px}.firebaseui-flag-AF{background-position:0 -42px}.firebaseui-flag-AG{background-position:0 -56px}.firebaseui-flag-AI{background-position:0 -70px}.firebaseui-flag-AL{background-position:0 -84px}.firebaseui-flag-AM{background-position:0 -98px}.firebaseui-flag-AO{background-position:0 -112px}.firebaseui-flag-AQ{background-position:0 -126px}.firebaseui-flag-AR{background-position:0 -140px}.firebaseui-flag-AS{background-position:0 -154px}.firebaseui-flag-AT{background-position:0 -168px}.firebaseui-flag-AU{background-position:0 -182px}.firebaseui-flag-AW{background-position:0 -196px}.firebaseui-flag-AX{background-position:0 -210px}.firebaseui-flag-AZ{background-position:0 -224px}.firebaseui-flag-BA{background-position:0 -238px}.firebaseui-flag-BB{background-position:0 -252px}.firebaseui-flag-BD{background-position:0 -266px}.firebaseui-flag-BE{background-position:0 -280px}.firebaseui-flag-BF{background-position:0 -294px}.firebaseui-flag-BG{background-position:0 -308px}.firebaseui-flag-BH{background-position:0 -322px}.firebaseui-flag-BI{background-position:0 -336px}.firebaseui-flag-BJ{background-position:0 -350px}.firebaseui-flag-BL{background-position:0 -364px}.firebaseui-flag-BM{background-position:0 -378px}.firebaseui-flag-BN{background-position:0 -392px}.firebaseui-flag-BO{background-position:0 -406px}.firebaseui-flag-BQ{background-position:0 -420px}.firebaseui-flag-BR{background-position:0 -434px}.firebaseui-flag-BS{background-position:0 -448px}.firebaseui-flag-BT{background-position:0 -462px}.firebaseui-flag-BV{background-position:0 -476px}.firebaseui-flag-BW{background-position:0 -490px}.firebaseui-flag-BY{background-position:0 -504px}.firebaseui-flag-BZ{background-position:0 -518px}.firebaseui-flag-CA{background-position:0 -532px}.firebaseui-flag-CC{background-position:0 -546px}.firebaseui-flag-CD{background-position:0 -560px}.firebaseui-flag-CF{background-position:0 -574px}.firebaseui-flag-CG{background-position:0 -588px}.firebaseui-flag-CH{background-position:0 -602px}.firebaseui-flag-CI{background-position:0 -616px}.firebaseui-flag-CK{background-position:0 -630px}.firebaseui-flag-CL{background-position:0 -644px}.firebaseui-flag-CM{background-position:0 -658px}.firebaseui-flag-CN{background-position:0 -672px}.firebaseui-flag-CO{background-position:0 -686px}.firebaseui-flag-CP{background-position:0 -700px}.firebaseui-flag-CR{background-position:0 -714px}.firebaseui-flag-CU{background-position:0 -728px}.firebaseui-flag-CV{background-position:0 -742px}.firebaseui-flag-CW{background-position:0 -756px}.firebaseui-flag-CX{background-position:0 -770px}.firebaseui-flag-CY{background-position:0 -784px}.firebaseui-flag-CZ{background-position:0 -798px}.firebaseui-flag-DE{background-position:0 -812px}.firebaseui-flag-DG{background-position:0 -826px}.firebaseui-flag-DJ{background-position:0 -840px}.firebaseui-flag-DK{background-position:0 -854px}.firebaseui-flag-DM{background-position:0 -868px}.firebaseui-flag-DO{background-position:0 -882px}.firebaseui-flag-DZ{background-position:0 -896px}.firebaseui-flag-EA{background-position:0 -910px}.firebaseui-flag-EC{background-position:0 -924px}.firebaseui-flag-EE{background-position:0 -938px}.firebaseui-flag-EG{background-position:0 -952px}.firebaseui-flag-EH{background-position:0 -966px}.firebaseui-flag-ER{background-position:0 -980px}.firebaseui-flag-ES{background-position:0 -994px}.firebaseui-flag-ET{background-position:0 -1008px}.firebaseui-flag-EU{background-position:0 -1022px}.firebaseui-flag-FI{background-position:0 -1036px}.firebaseui-flag-FJ{background-position:0 -1050px}.firebaseui-flag-FK{background-position:0 -1064px}.firebaseui-flag-FM{background-position:0 -1078px}.firebaseui-flag-FO{background-position:0 -1092px}.firebaseui-flag-FR{background-position:0 -1106px}.firebaseui-flag-GA{background-position:0 -1120px}.firebaseui-flag-GB{background-position:0 -1134px}.firebaseui-flag-GD{background-position:0 -1148px}.firebaseui-flag-GE{background-position:0 -1162px}.firebaseui-flag-GF{background-position:0 -1176px}.firebaseui-flag-GG{background-position:0 -1190px}.firebaseui-flag-GH{background-position:0 -1204px}.firebaseui-flag-GI{background-position:0 -1218px}.firebaseui-flag-GL{background-position:0 -1232px}.firebaseui-flag-GM{background-position:0 -1246px}.firebaseui-flag-GN{background-position:0 -1260px}.firebaseui-flag-GP{background-position:0 -1274px}.firebaseui-flag-GQ{background-position:0 -1288px}.firebaseui-flag-GR{background-position:0 -1302px}.firebaseui-flag-GS{background-position:0 -1316px}.firebaseui-flag-GT{background-position:0 -1330px}.firebaseui-flag-GU{background-position:0 -1344px}.firebaseui-flag-GW{background-position:0 -1358px}.firebaseui-flag-GY{background-position:0 -1372px}.firebaseui-flag-HK{background-position:0 -1386px}.firebaseui-flag-HM{background-position:0 -1400px}.firebaseui-flag-HN{background-position:0 -1414px}.firebaseui-flag-HR{background-position:0 -1428px}.firebaseui-flag-HT{background-position:0 -1442px}.firebaseui-flag-HU{background-position:0 -1456px}.firebaseui-flag-IC{background-position:0 -1470px}.firebaseui-flag-ID{background-position:0 -1484px}.firebaseui-flag-IE{background-position:0 -1498px}.firebaseui-flag-IL{background-position:0 -1512px}.firebaseui-flag-IM{background-position:0 -1526px}.firebaseui-flag-IN{background-position:0 -1540px}.firebaseui-flag-IO{background-position:0 -1554px}.firebaseui-flag-IQ{background-position:0 -1568px}.firebaseui-flag-IR{background-position:0 -1582px}.firebaseui-flag-IS{background-position:0 -1596px}.firebaseui-flag-IT{background-position:0 -1610px}.firebaseui-flag-JE{background-position:0 -1624px}.firebaseui-flag-JM{background-position:0 -1638px}.firebaseui-flag-JO{background-position:0 -1652px}.firebaseui-flag-JP{background-position:0 -1666px}.firebaseui-flag-KE{background-position:0 -1680px}.firebaseui-flag-KG{background-position:0 -1694px}.firebaseui-flag-KH{background-position:0 -1708px}.firebaseui-flag-KI{background-position:0 -1722px}.firebaseui-flag-KM{background-position:0 -1736px}.firebaseui-flag-KN{background-position:0 -1750px}.firebaseui-flag-KP{background-position:0 -1764px}.firebaseui-flag-KR{background-position:0 -1778px}.firebaseui-flag-KW{background-position:0 -1792px}.firebaseui-flag-AD{background-position:0 -1806px}.firebaseui-flag-KZ{background-position:0 -1820px}.firebaseui-flag-LA{background-position:0 -1834px}.firebaseui-flag-LB{background-position:0 -1848px}.firebaseui-flag-LC{background-position:0 -1862px}.firebaseui-flag-LI{background-position:0 -1876px}.firebaseui-flag-LK{background-position:0 -1890px}.firebaseui-flag-LR{background-position:0 -1904px}.firebaseui-flag-LS{background-position:0 -1918px}.firebaseui-flag-LT{background-position:0 -1932px}.firebaseui-flag-LU{background-position:0 -1946px}.firebaseui-flag-LV{background-position:0 -1960px}.firebaseui-flag-LY{background-position:0 -1974px}.firebaseui-flag-MA{background-position:0 -1988px}.firebaseui-flag-MC{background-position:0 -2002px}.firebaseui-flag-MD{background-position:0 -2016px}.firebaseui-flag-ME{background-position:0 -2030px}.firebaseui-flag-MF{background-position:0 -2044px}.firebaseui-flag-MG{background-position:0 -2058px}.firebaseui-flag-MH{background-position:0 -2072px}.firebaseui-flag-MK{background-position:0 -2086px}.firebaseui-flag-ML{background-position:0 -2100px}.firebaseui-flag-MM{background-position:0 -2114px}.firebaseui-flag-MN{background-position:0 -2128px}.firebaseui-flag-MO{background-position:0 -2142px}.firebaseui-flag-MP{background-position:0 -2156px}.firebaseui-flag-MQ{background-position:0 -2170px}.firebaseui-flag-MR{background-position:0 -2184px}.firebaseui-flag-MS{background-position:0 -2198px}.firebaseui-flag-MT{background-position:0 -2212px}.firebaseui-flag-MU{background-position:0 -2226px}.firebaseui-flag-MV{background-position:0 -2240px}.firebaseui-flag-MW{background-position:0 -2254px}.firebaseui-flag-MX{background-position:0 -2268px}.firebaseui-flag-MY{background-position:0 -2282px}.firebaseui-flag-MZ{background-position:0 -2296px}.firebaseui-flag-NA{background-position:0 -2310px}.firebaseui-flag-NC{background-position:0 -2324px}.firebaseui-flag-NE{background-position:0 -2338px}.firebaseui-flag-NF{background-position:0 -2352px}.firebaseui-flag-NG{background-position:0 -2366px}.firebaseui-flag-NI{background-position:0 -2380px}.firebaseui-flag-NL{background-position:0 -2394px}.firebaseui-flag-NO{background-position:0 -2408px}.firebaseui-flag-NP{background-position:0 -2422px}.firebaseui-flag-NR{background-position:0 -2436px}.firebaseui-flag-NU{background-position:0 -2450px}.firebaseui-flag-NZ{background-position:0 -2464px}.firebaseui-flag-OM{background-position:0 -2478px}.firebaseui-flag-PA{background-position:0 -2492px}.firebaseui-flag-PE{background-position:0 -2506px}.firebaseui-flag-PF{background-position:0 -2520px}.firebaseui-flag-PG{background-position:0 -2534px}.firebaseui-flag-PH{background-position:0 -2548px}.firebaseui-flag-PK{background-position:0 -2562px}.firebaseui-flag-PL{background-position:0 -2576px}.firebaseui-flag-PM{background-position:0 -2590px}.firebaseui-flag-PN{background-position:0 -2604px}.firebaseui-flag-PR{background-position:0 -2618px}.firebaseui-flag-PS{background-position:0 -2632px}.firebaseui-flag-PT{background-position:0 -2646px}.firebaseui-flag-PW{background-position:0 -2660px}.firebaseui-flag-PY{background-position:0 -2674px}.firebaseui-flag-QA{background-position:0 -2688px}.firebaseui-flag-RE{background-position:0 -2702px}.firebaseui-flag-RO{background-position:0 -2716px}.firebaseui-flag-RS{background-position:0 -2730px}.firebaseui-flag-RU{background-position:0 -2744px}.firebaseui-flag-RW{background-position:0 -2758px}.firebaseui-flag-SA{background-position:0 -2772px}.firebaseui-flag-SB{background-position:0 -2786px}.firebaseui-flag-SC{background-position:0 -2800px}.firebaseui-flag-SD{background-position:0 -2814px}.firebaseui-flag-SE{background-position:0 -2828px}.firebaseui-flag-SG{background-position:0 -2842px}.firebaseui-flag-SH{background-position:0 -2856px}.firebaseui-flag-SI{background-position:0 -2870px}.firebaseui-flag-SJ{background-position:0 -2884px}.firebaseui-flag-SK{background-position:0 -2898px}.firebaseui-flag-SL{background-position:0 -2912px}.firebaseui-flag-SM{background-position:0 -2926px}.firebaseui-flag-SN{background-position:0 -2940px}.firebaseui-flag-SO{background-position:0 -2954px}.firebaseui-flag-SR{background-position:0 -2968px}.firebaseui-flag-SS{background-position:0 -2982px}.firebaseui-flag-ST{background-position:0 -2996px}.firebaseui-flag-SV{background-position:0 -3010px}.firebaseui-flag-SX{background-position:0 -3024px}.firebaseui-flag-SY{background-position:0 -3038px}.firebaseui-flag-SZ{background-position:0 -3052px}.firebaseui-flag-TA{background-position:0 -3066px}.firebaseui-flag-TC{background-position:0 -3080px}.firebaseui-flag-TD{background-position:0 -3094px}.firebaseui-flag-TF{background-position:0 -3108px}.firebaseui-flag-TG{background-position:0 -3122px}.firebaseui-flag-TH{background-position:0 -3136px}.firebaseui-flag-TJ{background-position:0 -3150px}.firebaseui-flag-TK{background-position:0 -3164px}.firebaseui-flag-TL{background-position:0 -3178px}.firebaseui-flag-TM{background-position:0 -3192px}.firebaseui-flag-TN{background-position:0 -3206px}.firebaseui-flag-TO{background-position:0 -3220px}.firebaseui-flag-TR{background-position:0 -3234px}.firebaseui-flag-TT{background-position:0 -3248px}.firebaseui-flag-TV{background-position:0 -3262px}.firebaseui-flag-TW{background-position:0 -3276px}.firebaseui-flag-TZ{background-position:0 -3290px}.firebaseui-flag-UA{background-position:0 -3304px}.firebaseui-flag-UG{background-position:0 -3318px}.firebaseui-flag-UM{background-position:0 -3332px}.firebaseui-flag-UN{background-position:0 -3346px}.firebaseui-flag-US{background-position:0 -3360px}.firebaseui-flag-UY{background-position:0 -3374px}.firebaseui-flag-UZ{background-position:0 -3388px}.firebaseui-flag-VA{background-position:0 -3402px}.firebaseui-flag-VC{background-position:0 -3416px}.firebaseui-flag-VE{background-position:0 -3430px}.firebaseui-flag-VG{background-position:0 -3444px}.firebaseui-flag-VI{background-position:0 -3458px}.firebaseui-flag-VN{background-position:0 -3472px}.firebaseui-flag-VU{background-position:0 -3486px}.firebaseui-flag-WF{background-position:0 -3500px}.firebaseui-flag-WS{background-position:0 -3514px}.firebaseui-flag-XK{background-position:0 -3528px}.firebaseui-flag-YE{background-position:0 -3542px}.firebaseui-flag-YT{background-position:0 -3556px}.firebaseui-flag-ZA{background-position:0 -3570px}.firebaseui-flag-ZM{background-position:0 -3584px}.firebaseui-flag-ZW{background-position:0 -3598px}.toastification-close-icon[data-v-22d964ca],.toastification-title[data-v-22d964ca]{line-height:26px}.toastification-title[data-v-22d964ca]{color:inherit}.loginText{color:#2b61d1;font-size:16px;font-weight:500}.loginRow{display:flex;flex-direction:row;justify-content:space-around}[dir] .loginRow{margin-top:10px;padding-top:10px}.ssoLogin{display:flex;flex-direction:row;justify-content:center;align-items:center}[dir] .ssoLogin{margin-bottom:10px;margin-top:30px;text-align:center}.walletIcon{height:90px;width:90px}[dir] .walletIcon{padding:10px}.walletIcon img{-webkit-app-region:no-drag;transition:.1s}a img{transition:all .05s ease-in-out}a:hover img{filter:opacity(70%)}[dir] a:hover img{transform:scale(1.1)}[dir] .firebaseui-button{border-radius:3px}[dir=ltr] .firebaseui-button{margin-left:10px}[dir=rtl] .firebaseui-button{margin-right:10px}.mdl-textfield.is-focused .mdl-textfield__label:after{bottom:15px!important}.firebaseui-title{color:#000!important}.sso-tos{color:#d3d3d3;display:flex;justify-content:center;font-size:12px}[dir] .sso-tos{text-align:center}.highlight{color:#2b61d1}.modal-title{color:#fff} \ No newline at end of file diff --git a/HomeUI/dist/css/9568.css b/HomeUI/dist/css/2558.css similarity index 71% rename from HomeUI/dist/css/9568.css rename to HomeUI/dist/css/2558.css index 4e025053b..7524ca59b 100644 --- a/HomeUI/dist/css/9568.css +++ b/HomeUI/dist/css/2558.css @@ -1 +1 @@ -.toastification-close-icon[data-v-22d964ca],.toastification-title[data-v-22d964ca]{line-height:26px}.toastification-title[data-v-22d964ca]{color:inherit}.popover{max-width:400px}.confirm-dialog-250{width:250px}.confirm-dialog-275{width:275px}.confirm-dialog-300{width:300px}.confirm-dialog-350{width:350px}.confirm-dialog-400{width:400px}.flux-share-upload-drop[data-v-8e3a5248]{height:250px;width:300px}[dir] .flux-share-upload-drop[data-v-8e3a5248]{border-style:dotted;border-color:var(--secondary-color);cursor:pointer}[dir] .flux-share-upload-drop[data-v-8e3a5248]:hover{border-color:var(--primary-color)}.flux-share-upload-drop svg[data-v-8e3a5248]{width:100px;height:100px}[dir] .flux-share-upload-drop svg[data-v-8e3a5248]{margin:50px 0 10px 0}.flux-share-upload-input[data-v-8e3a5248]{display:none}.upload-footer[data-v-8e3a5248]{font-size:10px;position:relative;top:20px}.upload-column[data-v-8e3a5248]{overflow-y:auto;height:250px}.upload-item[data-v-8e3a5248]{overflow:hidden;white-space:nowrap;position:relative;height:30px}[dir=ltr] .upload-item[data-v-8e3a5248]{padding:0 0 0 3px}[dir=rtl] .upload-item[data-v-8e3a5248]{padding:0 3px 0 0}.upload-item p[data-v-8e3a5248]{text-overflow:ellipsis;overflow:hidden}[dir] .upload-item p[data-v-8e3a5248]{margin:0 0 10px}[dir=ltr] .upload-item p[data-v-8e3a5248]{padding:0 40px 0 0}[dir=rtl] .upload-item p[data-v-8e3a5248]{padding:0 0 0 40px}.upload-item .delete[data-v-8e3a5248]{position:absolute;top:0}[dir=ltr] .upload-item .delete[data-v-8e3a5248]{right:0}[dir=rtl] .upload-item .delete[data-v-8e3a5248]{left:0}.xterm{cursor:text;position:relative;user-select:none;-ms-user-select:none;-webkit-user-select:none}.xterm.focus,.xterm:focus{outline:none}.xterm .xterm-helpers{position:absolute;top:0;z-index:5}.xterm .xterm-helper-textarea{padding:0;border:0;margin:0;position:absolute;opacity:0;left:-9999em;top:0;width:0;height:0;z-index:-5;white-space:nowrap;overflow:hidden;resize:none}.xterm .composition-view{background:#000;color:#fff;display:none;position:absolute;white-space:nowrap;z-index:1}.xterm .composition-view.active{display:block}.xterm .xterm-viewport{background-color:#000;overflow-y:scroll;cursor:default;position:absolute;right:0;left:0;top:0;bottom:0}.xterm .xterm-screen{position:relative}.xterm .xterm-screen canvas{position:absolute;left:0;top:0}.xterm .xterm-scroll-area{visibility:hidden}.xterm-char-measure-element{display:inline-block;visibility:hidden;position:absolute;top:0;left:-9999em;line-height:normal}.xterm.enable-mouse-events{cursor:default}.xterm .xterm-cursor-pointer,.xterm.xterm-cursor-pointer{cursor:pointer}.xterm.column-select.focus{cursor:crosshair}.xterm .xterm-accessibility,.xterm .xterm-message{position:absolute;left:0;top:0;bottom:0;z-index:10;color:#0000}.xterm .live-region{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}.xterm-dim{opacity:.5}.xterm-underline-1{text-decoration:underline}.xterm-underline-2{-webkit-text-decoration:double underline;text-decoration:double underline}.xterm-underline-3{-webkit-text-decoration:wavy underline;text-decoration:wavy underline}.xterm-underline-4{-webkit-text-decoration:dotted underline;text-decoration:dotted underline}.xterm-underline-5{-webkit-text-decoration:dashed underline;text-decoration:dashed underline}.xterm-strikethrough{text-decoration:line-through}.xterm-screen .xterm-decoration-container .xterm-decoration{z-index:6;position:absolute}.xterm-decoration-overview-ruler{z-index:7;position:absolute;top:0;right:0;pointer-events:none}.xterm-decoration-top{z-index:2;position:relative}[dir=ltr] #updatemessage{padding-right:25px!important}[dir=rtl] #updatemessage{padding-left:25px!important}.text-wrap{position:relative}[dir] .text-wrap{padding:0}.clipboard.icon{position:absolute;top:.4em;width:12px;height:12px}[dir] .clipboard.icon{margin-top:4px;border:1px solid #333;border-top:none;border-radius:1px;cursor:pointer}[dir=ltr] .clipboard.icon{right:2em;margin-left:4px}[dir=rtl] .clipboard.icon{left:2em;margin-right:4px}.no-wrap,.no-wrap-limit{white-space:nowrap!important}.no-wrap-limit{min-width:150px}[dir] .no-wrap-limit{text-align:center}.custom-button{width:15px!important;height:25px!important}.button-cell{display:flex;align-items:center;min-width:150px}[dir] .xterm{padding:10px}[dir=ltr] .spin-icon{animation:spin-ltr 2s linear infinite}[dir=rtl] .spin-icon{animation:spin-rtl 2s linear infinite}.spin-icon-l{width:12px!important;height:12px!important}[dir=ltr] .spin-icon-l{animation:spin-ltr 2s linear infinite}[dir=rtl] .spin-icon-l{animation:spin-rtl 2s linear infinite}[dir=ltr] .app-instances-table td:first-child{padding:0 0 0 5px}[dir=rtl] .app-instances-table td:first-child{padding:0 5px 0 0}[dir=ltr] .app-instances-table th:first-child{padding:0 0 0 5px}[dir=rtl] .app-instances-table th:first-child{padding:0 5px 0 0}.app-instances-table td:nth-child(5),.app-instances-table th:nth-child(5){width:105px}.loginRow{display:flex;flex-direction:row;justify-content:space-around;align-items:center}[dir] .loginRow{margin-bottom:10px}.walletIcon{height:90px;width:90px}[dir] .walletIcon{padding:10px}.walletIcon img{-webkit-app-region:no-drag;transition:.1s}.fluxSSO{height:90px}[dir] .fluxSSO{padding:10px}[dir=ltr] .fluxSSO{margin-left:5px}[dir=rtl] .fluxSSO{margin-right:5px}.fluxSSO img{-webkit-app-region:no-drag;transition:.1s}.stripePay{height:90px}[dir] .stripePay{padding:10px}[dir=ltr] .stripePay{margin-left:5px}[dir=rtl] .stripePay{margin-right:5px}.stripePay img{-webkit-app-region:no-drag;transition:.1s}.paypalPay{height:90px}[dir] .paypalPay{padding:10px}[dir=ltr] .paypalPay{margin-left:5px}[dir=rtl] .paypalPay{margin-right:5px}.paypalPay img{-webkit-app-region:no-drag;transition:.1s}a img{transition:all .05s ease-in-out}a:hover img{filter:opacity(70%)}[dir] a:hover img{transform:scale(1.1)}.flex{display:flex}.anchor{display:block;height:100px;visibility:hidden}[dir] .anchor{margin-top:-100px}.v-toast__text{font-family:Roboto,sans-serif!important}.jv-dark{white-space:nowrap;font-size:14px;font-family:Consolas,Menlo,Courier,monospace}[dir] .jv-dark{background:none;margin-bottom:25px}.jv-button{color:#49b3ff!important}.jv-dark .jv-array,.jv-dark .jv-key{color:#999!important}.jv-boolean{color:#fc1e70!important}.jv-function{color:#067bca!important}.jv-number,.jv-number-float,.jv-number-integer{color:#fc1e70!important}.jv-dark .jv-object{color:#999!important}.jv-undefined{color:#e08331!important}.jv-string{color:#42b983!important;word-break:break-word;white-space:normal}[dir] .card-body{padding:1rem}[dir] .table-no-padding>td{padding:0!important}.backups-table td{position:relative}td .ellipsis-wrapper{position:absolute;max-width:calc(100% - 1rem);line-height:calc(3rem - 8px);top:0;text-overflow:ellipsis;overflow:hidden;white-space:nowrap}[dir=ltr] td .ellipsis-wrapper{left:1rem}[dir=rtl] td .ellipsis-wrapper{right:1rem}.logs{max-height:392px;overflow-y:auto;color:#fff;font-size:12px;font-family:Menlo,Monaco,Consolas,Courier New,monospace}[dir] .logs{margin:5px;border:1px solid #ccc;padding:10px;background-color:#000}.input{min-width:150px;width:200px}.input_s{min-width:300px;width:350px}.clear-button{height:100%}.code-container{height:330px;max-width:100vw;position:relative;user-select:text;color:#fff;overflow:auto;font-size:12px;font-family:Menlo,Monaco,Consolas,Courier New,monospace;box-sizing:border-box;clip-path:inset(0 round 6px);word-wrap:break-word;word-break:break-all}[dir] .code-container{margin:5px;background-color:#000;border-radius:6px;border:1px solid #e1e4e8;padding:16px}.log-entry{user-select:text;white-space:pre-wrap}.line-by-line-mode .log-entry{user-select:none}[dir] .line-by-line-mode .log-entry{cursor:pointer}[dir] .line-by-line-mode .log-entry:hover{background-color:#ffffff1a}[dir] .line-by-line-mode .log-entry.selected{background-color:#ffffff4d}[dir=ltr] .line-by-line-mode .log-entry.selected{border-left:5px solid #007bff}[dir=rtl] .line-by-line-mode .log-entry.selected{border-right:5px solid #007bff}[dir] .line-by-line-mode .log-entry.selected:hover{background-color:#ffffff80}.log-copy-button{position:sticky;top:2px;color:#fff;font-size:12px;transition:background-color .2s ease;z-index:1000}[dir] .log-copy-button{padding:4px 8px;border:none;border-radius:4px;background-color:#0366d6;cursor:pointer}[dir=ltr] .log-copy-button{float:right}[dir=rtl] .log-copy-button{float:left}[dir] .log-copy-button:hover{background-color:#024b8e}.log-copy-button:disabled{color:#fff}[dir] .log-copy-button:disabled{background-color:#6c757d}.download-button:disabled{color:#fff}[dir] .download-button:disabled{background-color:#6c757d}.download-button{position:sticky;top:2px;color:#fff;font-size:12px;transition:background-color .2s ease}[dir] .download-button{padding:4px 8px;border:none;border-radius:4px;background-color:#28a745;cursor:pointer}[dir=ltr] .download-button{float:right;right:8px;margin-left:15px}[dir=rtl] .download-button{float:left;left:8px;margin-right:15px}.search_input{min-width:600px}.flex-container{display:flex;justify-content:space-between;align-items:left;flex-wrap:wrap}[dir] .download-button:hover{background-color:#218838}[dir] .download-button:disabled:hover{background-color:#6c757d}.icon-tooltip{font-size:15px;-webkit-appearance:none;-moz-appearance:none;appearance:none;color:#6c757d}[dir] .icon-tooltip{cursor:pointer}[dir=ltr] .icon-tooltip{margin-right:10px}[dir=rtl] .icon-tooltip{margin-left:10px}.x{font-size:1.5rem;vertical-align:middle;color:#f66;transition:color .3s ease}[dir] .x{cursor:pointer}.x:hover{color:#c00}.r{font-size:30px;vertical-align:middle;color:#39ff14;transition:color .6s ease,border-color .6s ease,box-shadow .6s ease,opacity .6s ease,transform .6s ease;box-sizing:border-box}[dir] .r{cursor:pointer;border:2px solid #4caf50;padding:4px;border-radius:4px}@keyframes spin-ltr{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}@keyframes spin-rtl{0%{transform:rotate(0deg)}to{transform:rotate(-1turn)}}.r:hover{color:#39ff14}[dir] .r:hover{border-color:#81c784;box-shadow:0 0 10px 2px #81c784b3}.r.disabled{opacity:.5;pointer-events:none;width:30px!important;height:30px!important;transition:color .6s ease,border-color .6s ease,box-shadow .6s ease,opacity .6s ease,transform .6s ease}[dir] .r.disabled{cursor:not-allowed;border-radius:50%;padding:4px;box-shadow:0 0 10px 2px #81c784b3}[dir=ltr] .r.disabled{animation:spin-ltr 2s linear infinite}[dir=rtl] .r.disabled{animation:spin-rtl 2s linear infinite}input[type=number]::-webkit-inner-spin-button,input[type=number]::-webkit-outer-spin-button{-webkit-appearance:auto}[dir] input[type=number]::-webkit-inner-spin-button,[dir] input[type=number]::-webkit-outer-spin-button{margin:0}input[type=number]{-moz-appearance:textfield;-webkit-appearance:textfield;appearance:textfield;color:gray}[dir=ltr] input[type=number]{padding-right:10px}[dir=rtl] input[type=number]{padding-left:10px}.red-text{display:inline-block;font-weight:800;color:red}[dir] .red-text{background-color:#ff000040;border-radius:15px;margin:0 .1em;padding:.1em .6em}[dir=ltr] .myapps-table td:first-child{padding:0 0 0 5px}[dir=rtl] .myapps-table td:first-child{padding:0 5px 0 0}[dir=ltr] .myapps-table th:first-child{padding:0 0 0 5px}[dir=rtl] .myapps-table th:first-child{padding:0 5px 0 0}.myapps-table tbody td,.myapps-table thead th{text-transform:none!important} \ No newline at end of file +.toastification-close-icon[data-v-22d964ca],.toastification-title[data-v-22d964ca]{line-height:26px}.toastification-title[data-v-22d964ca]{color:inherit}.popover{max-width:400px}.confirm-dialog-250{width:250px}.confirm-dialog-275{width:275px}.confirm-dialog-300{width:300px}.confirm-dialog-350{width:350px}.confirm-dialog-400{width:400px}.flux-share-upload-drop[data-v-8e3a5248]{height:250px;width:300px}[dir] .flux-share-upload-drop[data-v-8e3a5248]{border-style:dotted;border-color:var(--secondary-color);cursor:pointer}[dir] .flux-share-upload-drop[data-v-8e3a5248]:hover{border-color:var(--primary-color)}.flux-share-upload-drop svg[data-v-8e3a5248]{width:100px;height:100px}[dir] .flux-share-upload-drop svg[data-v-8e3a5248]{margin:50px 0 10px 0}.flux-share-upload-input[data-v-8e3a5248]{display:none}.upload-footer[data-v-8e3a5248]{font-size:10px;position:relative;top:20px}.upload-column[data-v-8e3a5248]{overflow-y:auto;height:250px}.upload-item[data-v-8e3a5248]{overflow:hidden;white-space:nowrap;position:relative;height:30px}[dir=ltr] .upload-item[data-v-8e3a5248]{padding:0 0 0 3px}[dir=rtl] .upload-item[data-v-8e3a5248]{padding:0 3px 0 0}.upload-item p[data-v-8e3a5248]{text-overflow:ellipsis;overflow:hidden}[dir] .upload-item p[data-v-8e3a5248]{margin:0 0 10px}[dir=ltr] .upload-item p[data-v-8e3a5248]{padding:0 40px 0 0}[dir=rtl] .upload-item p[data-v-8e3a5248]{padding:0 0 0 40px}.upload-item .delete[data-v-8e3a5248]{position:absolute;top:0}[dir=ltr] .upload-item .delete[data-v-8e3a5248]{right:0}[dir=rtl] .upload-item .delete[data-v-8e3a5248]{left:0}.xterm{cursor:text;position:relative;user-select:none;-ms-user-select:none;-webkit-user-select:none}.xterm.focus,.xterm:focus{outline:none}.xterm .xterm-helpers{position:absolute;top:0;z-index:5}.xterm .xterm-helper-textarea{padding:0;border:0;margin:0;position:absolute;opacity:0;left:-9999em;top:0;width:0;height:0;z-index:-5;white-space:nowrap;overflow:hidden;resize:none}.xterm .composition-view{background:#000;color:#fff;display:none;position:absolute;white-space:nowrap;z-index:1}.xterm .composition-view.active{display:block}.xterm .xterm-viewport{background-color:#000;overflow-y:scroll;cursor:default;position:absolute;right:0;left:0;top:0;bottom:0}.xterm .xterm-screen{position:relative}.xterm .xterm-screen canvas{position:absolute;left:0;top:0}.xterm .xterm-scroll-area{visibility:hidden}.xterm-char-measure-element{display:inline-block;visibility:hidden;position:absolute;top:0;left:-9999em;line-height:normal}.xterm.enable-mouse-events{cursor:default}.xterm .xterm-cursor-pointer,.xterm.xterm-cursor-pointer{cursor:pointer}.xterm.column-select.focus{cursor:crosshair}.xterm .xterm-accessibility,.xterm .xterm-message{position:absolute;left:0;top:0;bottom:0;z-index:10;color:#0000}.xterm .live-region{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}.xterm-dim{opacity:.5}.xterm-underline-1{text-decoration:underline}.xterm-underline-2{-webkit-text-decoration:double underline;text-decoration:double underline}.xterm-underline-3{-webkit-text-decoration:wavy underline;text-decoration:wavy underline}.xterm-underline-4{-webkit-text-decoration:dotted underline;text-decoration:dotted underline}.xterm-underline-5{-webkit-text-decoration:dashed underline;text-decoration:dashed underline}.xterm-strikethrough{text-decoration:line-through}.xterm-screen .xterm-decoration-container .xterm-decoration{z-index:6;position:absolute}.xterm-decoration-overview-ruler{z-index:7;position:absolute;top:0;right:0;pointer-events:none}.xterm-decoration-top{z-index:2;position:relative}[dir=ltr] #updatemessage{padding-right:25px!important}[dir=rtl] #updatemessage{padding-left:25px!important}.text-wrap{position:relative}[dir] .text-wrap{padding:0}.clipboard.icon{position:absolute;top:.4em;width:12px;height:12px}[dir] .clipboard.icon{margin-top:4px;border:1px solid #333;border-top:none;border-radius:1px;cursor:pointer}[dir=ltr] .clipboard.icon{right:2em;margin-left:4px}[dir=rtl] .clipboard.icon{left:2em;margin-right:4px}.no-wrap,.no-wrap-limit{white-space:nowrap!important}.no-wrap-limit{min-width:150px}[dir] .no-wrap-limit{text-align:center}.custom-button{width:15px!important;height:25px!important}.button-cell{display:flex;align-items:center;min-width:150px}[dir] .xterm{padding:10px}[dir=ltr] .spin-icon{animation:spin-ltr 2s linear infinite}[dir=rtl] .spin-icon{animation:spin-rtl 2s linear infinite}.spin-icon-l{width:12px!important;height:12px!important}[dir=ltr] .spin-icon-l{animation:spin-ltr 2s linear infinite}[dir=rtl] .spin-icon-l{animation:spin-rtl 2s linear infinite}[dir=ltr] .app-instances-table td:first-child{padding:0 0 0 5px}[dir=rtl] .app-instances-table td:first-child{padding:0 5px 0 0}[dir=ltr] .app-instances-table th:first-child{padding:0 0 0 5px}[dir=rtl] .app-instances-table th:first-child{padding:0 5px 0 0}.app-instances-table td:nth-child(5),.app-instances-table th:nth-child(5){width:105px}.loginRow{display:flex;flex-direction:row;justify-content:space-around;align-items:center}[dir] .loginRow{margin-bottom:10px}.walletIcon{height:90px;width:90px}[dir] .walletIcon{padding:10px}.walletIcon img{-webkit-app-region:no-drag;transition:.1s}.fluxSSO{height:90px}[dir] .fluxSSO{padding:10px}[dir=ltr] .fluxSSO{margin-left:5px}[dir=rtl] .fluxSSO{margin-right:5px}.fluxSSO img{-webkit-app-region:no-drag;transition:.1s}.stripePay{height:90px}[dir] .stripePay{padding:10px}[dir=ltr] .stripePay{margin-left:5px}[dir=rtl] .stripePay{margin-right:5px}.stripePay img{-webkit-app-region:no-drag;transition:.1s}.paypalPay{height:90px}[dir] .paypalPay{padding:10px}[dir=ltr] .paypalPay{margin-left:5px}[dir=rtl] .paypalPay{margin-right:5px}.paypalPay img{-webkit-app-region:no-drag;transition:.1s}a img{transition:all .05s ease-in-out}a:hover img{filter:opacity(70%)}[dir] a:hover img{transform:scale(1.1)}.flex{display:flex}.anchor{display:block;height:100px;visibility:hidden}[dir] .anchor{margin-top:-100px}.v-toast__text{font-family:Roboto,sans-serif!important}.jv-dark{white-space:nowrap;font-size:14px;font-family:Consolas,Menlo,Courier,monospace}[dir] .jv-dark{background:none;margin-bottom:25px}.jv-button{color:#49b3ff!important}.jv-dark .jv-array,.jv-dark .jv-key{color:#999!important}.jv-boolean{color:#fc1e70!important}.jv-function{color:#067bca!important}.jv-number,.jv-number-float,.jv-number-integer{color:#fc1e70!important}.jv-dark .jv-object{color:#999!important}.jv-undefined{color:#e08331!important}.jv-string{color:#42b983!important;word-break:break-word;white-space:normal}[dir] .card-body{padding:1rem}[dir] .table-no-padding>td{padding:0!important}.backups-table td{position:relative}td .ellipsis-wrapper{position:absolute;max-width:calc(100% - 1rem);line-height:calc(3rem - 8px);top:0;text-overflow:ellipsis;overflow:hidden;white-space:nowrap}[dir=ltr] td .ellipsis-wrapper{left:1rem}[dir=rtl] td .ellipsis-wrapper{right:1rem}.logs{max-height:392px;overflow-y:auto;color:#fff;font-size:12px;font-family:Menlo,Monaco,Consolas,Courier New,monospace}[dir] .logs{margin:5px;border:1px solid #ccc;padding:10px;background-color:#000}.input{min-width:150px;width:200px}.input_s{min-width:300px;width:350px}.clear-button{height:100%}.code-container{height:330px;max-width:100vw;position:relative;user-select:text;color:#fff;overflow:auto;font-size:12px;font-family:Menlo,Monaco,Consolas,Courier New,monospace;box-sizing:border-box;clip-path:inset(0 round 6px);word-wrap:break-word;word-break:break-all}[dir] .code-container{margin:5px;background-color:#000;border-radius:6px;border:1px solid #e1e4e8;padding:16px}.log-entry{user-select:text;white-space:pre-wrap}.line-by-line-mode .log-entry{user-select:none}[dir] .line-by-line-mode .log-entry{cursor:pointer}[dir] .line-by-line-mode .log-entry:hover{background-color:#ffffff1a}[dir] .line-by-line-mode .log-entry.selected{background-color:#ffffff4d}[dir=ltr] .line-by-line-mode .log-entry.selected{border-left:5px solid #007bff}[dir=rtl] .line-by-line-mode .log-entry.selected{border-right:5px solid #007bff}[dir] .line-by-line-mode .log-entry.selected:hover{background-color:#ffffff80}.log-copy-button{position:sticky;top:2px;color:#fff;font-size:12px;transition:background-color .2s ease;z-index:1000}[dir] .log-copy-button{padding:4px 8px;border:none;border-radius:4px;background-color:#0366d6;cursor:pointer}[dir=ltr] .log-copy-button{float:right}[dir=rtl] .log-copy-button{float:left}[dir] .log-copy-button:hover{background-color:#024b8e}.log-copy-button:disabled{color:#fff}[dir] .log-copy-button:disabled{background-color:#6c757d}.download-button:disabled{color:#fff}[dir] .download-button:disabled{background-color:#6c757d}.download-button{position:sticky;top:2px;color:#fff;font-size:12px;transition:background-color .2s ease}[dir] .download-button{padding:4px 8px;border:none;border-radius:4px;background-color:#28a745;cursor:pointer}[dir=ltr] .download-button{float:right;right:8px;margin-left:15px}[dir=rtl] .download-button{float:left;left:8px;margin-right:15px}.search_input{min-width:600px}.flex-container{display:flex;justify-content:space-between;align-items:left;flex-wrap:wrap}[dir] .download-button:hover{background-color:#218838}[dir] .download-button:disabled:hover{background-color:#6c757d}.icon-tooltip{font-size:15px;-webkit-appearance:none;-moz-appearance:none;appearance:none;color:#6c757d}[dir] .icon-tooltip{cursor:pointer}[dir=ltr] .icon-tooltip{margin-right:10px}[dir=rtl] .icon-tooltip{margin-left:10px}.x{font-size:1.5rem;vertical-align:middle;color:#f66;transition:color .3s ease}[dir] .x{cursor:pointer}.x:hover{color:#c00}.r{font-size:30px;vertical-align:middle;color:#39ff14;transition:color .6s ease,border-color .6s ease,box-shadow .6s ease,opacity .6s ease,transform .6s ease;box-sizing:border-box}[dir] .r{cursor:pointer;border:2px solid #4caf50;padding:4px;border-radius:4px}@keyframes spin-ltr{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}@keyframes spin-rtl{0%{transform:rotate(0deg)}to{transform:rotate(-1turn)}}.r:hover{color:#39ff14}[dir] .r:hover{border-color:#81c784;box-shadow:0 0 10px 2px #81c784b3}.r.disabled{opacity:.5;pointer-events:none;width:30px!important;height:30px!important;transition:color .6s ease,border-color .6s ease,box-shadow .6s ease,opacity .6s ease,transform .6s ease}[dir] .r.disabled{cursor:not-allowed;border-radius:50%;padding:4px;box-shadow:0 0 10px 2px #81c784b3}[dir=ltr] .r.disabled{animation:spin-ltr 2s linear infinite}[dir=rtl] .r.disabled{animation:spin-rtl 2s linear infinite}.container{max-width:1500px;width:100%;display:flex;flex-direction:column;justify-content:space-between}[dir] .container{padding:0;margin:0 auto}.flex-container2{height:50%;justify-content:space-between;flex-wrap:nowrap}[dir] .flex-container2{padding:.5vw}.charts-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:1vw;width:100%}[dir] .charts-grid{margin:1vh}.chart-wrapper{width:100%;min-width:600px;overflow:hidden;justify-content:center;align-items:center}[dir] .chart-wrapper{padding:10px;border-radius:10px;box-shadow:0 4px 6px #0000001a}.chart-title-container{align-items:center;display:flex}[dir=ltr] .chart-title-container{margin-right:10px}[dir=rtl] .chart-title-container{margin-left:10px}.table-responsive{overflow-x:auto}[dir] .table-responsive{box-shadow:0 6px 6px #0000001a}.table-monitoring{table-layout:auto;width:100%}.table-monitoring td,.table-monitoring th{white-space:nowrap}[dir] .table-monitoring td,[dir] .table-monitoring th{border:none;background-color:#0000}.chart-title{font-size:18px;font-weight:700}[dir=ltr] .chart-title{margin-left:8px}[dir=rtl] .chart-title{margin-right:8px}.icon-large{font-size:24px!important}.chart-wrapper canvas{max-width:100%;height:100%}@media(max-width:1800px){.charts-grid{grid-template-columns:1fr;gap:2vw}[dir] .charts-grid{margin:1vh 0}}@media(min-width:1800px){.charts-grid{grid-template-columns:repeat(2,1fr);gap:1vw}.charts-grid>.chart-wrapper:last-child:nth-child(odd){grid-column:1/-1;justify-self:center;width:100%}}input[type=number]::-webkit-inner-spin-button,input[type=number]::-webkit-outer-spin-button{-webkit-appearance:auto}[dir] input[type=number]::-webkit-inner-spin-button,[dir] input[type=number]::-webkit-outer-spin-button{margin:0}input[type=number]{-moz-appearance:textfield;-webkit-appearance:textfield;appearance:textfield;color:gray}[dir=ltr] input[type=number]{padding-right:10px}[dir=rtl] input[type=number]{padding-left:10px}.apps-available-table tbody td,.apps-available-table thead th,.apps-globalAvailable-table thead th,.apps-globalAvailable-tablet body td,.apps-installed-table tbody td,.apps-installed-table thead th,.apps-local-table tbody td,.apps-local-table thead th{text-transform:none!important}[dir=ltr] .apps-running-table td:first-child{padding:0 0 0 5px}[dir=rtl] .apps-running-table td:first-child{padding:0 5px 0 0}[dir=ltr] .apps-running-table th:first-child{padding:0 0 0 5px}[dir=rtl] .apps-running-table th:first-child{padding:0 5px 0 0}[dir=ltr] .apps-local-table td:first-child{padding:0 0 0 5px}[dir=rtl] .apps-local-table td:first-child{padding:0 5px 0 0}[dir=ltr] .apps-local-table th:first-child{padding:0 0 0 5px}[dir=rtl] .apps-local-table th:first-child{padding:0 5px 0 0}[dir=ltr] .apps-installed-table td:first-child{padding:0 0 0 5px}[dir=rtl] .apps-installed-table td:first-child{padding:0 5px 0 0}[dir=ltr] .apps-installed-table th:first-child{padding:0 0 0 5px}[dir=rtl] .apps-installed-table th:first-child{padding:0 5px 0 0}[dir=ltr] .apps-globalAvailable-table td:first-child{padding:0 0 0 5px}[dir=rtl] .apps-globalAvailable-table td:first-child{padding:0 5px 0 0}[dir=ltr] .apps-globalAvailable-table th:first-child{padding:0 0 0 5px}[dir=rtl] .apps-globalAvailable-table th:first-child{padding:0 5px 0 0}[dir=ltr] .apps-available-table td:first-child{padding:0 0 0 5px}[dir=rtl] .apps-available-table td:first-child{padding:0 5px 0 0}[dir=ltr] .apps-available-table th:first-child{padding:0 0 0 5px}[dir=rtl] .apps-available-table th:first-child{padding:0 5px 0 0}.locations-table td:first-child,.locations-table th:first-child{width:105px}.icon-style-trash:hover{color:red;transition:color .2s}.icon-style-start:hover{color:green;transition:color .2s}.icon-style-stop:hover{color:red;transition:color .3s}.icon-style-gear:hover,.icon-style-restart:hover{color:#6495ed;transition:color .2s}.disable-hover:hover{color:inherit}[dir] .disable-hover:hover{background-color:inherit;border-color:inherit}.textarea{display:block;height:inherit;white-space:normal}[dir] .textarea{border-radius:10px}.hover-underline:hover{text-decoration:underline}.red-text{display:inline-block;font-weight:800;color:red}[dir] .red-text{background-color:#ff000040;border-radius:15px;margin:0 .1em;padding:.1em .6em} \ No newline at end of file diff --git a/HomeUI/dist/css/2788.css b/HomeUI/dist/css/2620.css similarity index 81% rename from HomeUI/dist/css/2788.css rename to HomeUI/dist/css/2620.css index df6a3f20d..ee57f6ade 100644 --- a/HomeUI/dist/css/2788.css +++ b/HomeUI/dist/css/2620.css @@ -1 +1 @@ -.toastification-close-icon[data-v-22d964ca],.toastification-title[data-v-22d964ca]{line-height:26px}.toastification-title[data-v-22d964ca]{color:inherit}.popover{max-width:400px}.confirm-dialog-250{width:250px}.confirm-dialog-275{width:275px}.confirm-dialog-300{width:300px}.confirm-dialog-350{width:350px}.confirm-dialog-400{width:400px}.flux-share-upload-drop[data-v-8e3a5248]{height:250px;width:300px}[dir] .flux-share-upload-drop[data-v-8e3a5248]{border-style:dotted;border-color:var(--secondary-color);cursor:pointer}[dir] .flux-share-upload-drop[data-v-8e3a5248]:hover{border-color:var(--primary-color)}.flux-share-upload-drop svg[data-v-8e3a5248]{width:100px;height:100px}[dir] .flux-share-upload-drop svg[data-v-8e3a5248]{margin:50px 0 10px 0}.flux-share-upload-input[data-v-8e3a5248]{display:none}.upload-footer[data-v-8e3a5248]{font-size:10px;position:relative;top:20px}.upload-column[data-v-8e3a5248]{overflow-y:auto;height:250px}.upload-item[data-v-8e3a5248]{overflow:hidden;white-space:nowrap;position:relative;height:30px}[dir=ltr] .upload-item[data-v-8e3a5248]{padding:0 0 0 3px}[dir=rtl] .upload-item[data-v-8e3a5248]{padding:0 3px 0 0}.upload-item p[data-v-8e3a5248]{text-overflow:ellipsis;overflow:hidden}[dir] .upload-item p[data-v-8e3a5248]{margin:0 0 10px}[dir=ltr] .upload-item p[data-v-8e3a5248]{padding:0 40px 0 0}[dir=rtl] .upload-item p[data-v-8e3a5248]{padding:0 0 0 40px}.upload-item .delete[data-v-8e3a5248]{position:absolute;top:0}[dir=ltr] .upload-item .delete[data-v-8e3a5248]{right:0}[dir=rtl] .upload-item .delete[data-v-8e3a5248]{left:0}.xterm{cursor:text;position:relative;user-select:none;-ms-user-select:none;-webkit-user-select:none}.xterm.focus,.xterm:focus{outline:none}.xterm .xterm-helpers{position:absolute;top:0;z-index:5}.xterm .xterm-helper-textarea{padding:0;border:0;margin:0;position:absolute;opacity:0;left:-9999em;top:0;width:0;height:0;z-index:-5;white-space:nowrap;overflow:hidden;resize:none}.xterm .composition-view{background:#000;color:#fff;display:none;position:absolute;white-space:nowrap;z-index:1}.xterm .composition-view.active{display:block}.xterm .xterm-viewport{background-color:#000;overflow-y:scroll;cursor:default;position:absolute;right:0;left:0;top:0;bottom:0}.xterm .xterm-screen{position:relative}.xterm .xterm-screen canvas{position:absolute;left:0;top:0}.xterm .xterm-scroll-area{visibility:hidden}.xterm-char-measure-element{display:inline-block;visibility:hidden;position:absolute;top:0;left:-9999em;line-height:normal}.xterm.enable-mouse-events{cursor:default}.xterm .xterm-cursor-pointer,.xterm.xterm-cursor-pointer{cursor:pointer}.xterm.column-select.focus{cursor:crosshair}.xterm .xterm-accessibility,.xterm .xterm-message{position:absolute;left:0;top:0;bottom:0;z-index:10;color:#0000}.xterm .live-region{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}.xterm-dim{opacity:.5}.xterm-underline-1{text-decoration:underline}.xterm-underline-2{-webkit-text-decoration:double underline;text-decoration:double underline}.xterm-underline-3{-webkit-text-decoration:wavy underline;text-decoration:wavy underline}.xterm-underline-4{-webkit-text-decoration:dotted underline;text-decoration:dotted underline}.xterm-underline-5{-webkit-text-decoration:dashed underline;text-decoration:dashed underline}.xterm-strikethrough{text-decoration:line-through}.xterm-screen .xterm-decoration-container .xterm-decoration{z-index:6;position:absolute}.xterm-decoration-overview-ruler{z-index:7;position:absolute;top:0;right:0;pointer-events:none}.xterm-decoration-top{z-index:2;position:relative}[dir=ltr] #updatemessage{padding-right:25px!important}[dir=rtl] #updatemessage{padding-left:25px!important}.text-wrap{position:relative}[dir] .text-wrap{padding:0}.clipboard.icon{position:absolute;top:.4em;width:12px;height:12px}[dir] .clipboard.icon{margin-top:4px;border:1px solid #333;border-top:none;border-radius:1px;cursor:pointer}[dir=ltr] .clipboard.icon{right:2em;margin-left:4px}[dir=rtl] .clipboard.icon{left:2em;margin-right:4px}.no-wrap,.no-wrap-limit{white-space:nowrap!important}.no-wrap-limit{min-width:150px}[dir] .no-wrap-limit{text-align:center}.custom-button{width:15px!important;height:25px!important}.button-cell{display:flex;align-items:center;min-width:150px}[dir] .xterm{padding:10px}[dir=ltr] .spin-icon{animation:spin-ltr 2s linear infinite}[dir=rtl] .spin-icon{animation:spin-rtl 2s linear infinite}.spin-icon-l{width:12px!important;height:12px!important}[dir=ltr] .spin-icon-l{animation:spin-ltr 2s linear infinite}[dir=rtl] .spin-icon-l{animation:spin-rtl 2s linear infinite}[dir=ltr] .app-instances-table td:first-child{padding:0 0 0 5px}[dir=rtl] .app-instances-table td:first-child{padding:0 5px 0 0}[dir=ltr] .app-instances-table th:first-child{padding:0 0 0 5px}[dir=rtl] .app-instances-table th:first-child{padding:0 5px 0 0}.app-instances-table td:nth-child(5),.app-instances-table th:nth-child(5){width:105px}.loginRow{display:flex;flex-direction:row;justify-content:space-around;align-items:center}[dir] .loginRow{margin-bottom:10px}.walletIcon{height:90px;width:90px}[dir] .walletIcon{padding:10px}.walletIcon img{-webkit-app-region:no-drag;transition:.1s}.fluxSSO{height:90px}[dir] .fluxSSO{padding:10px}[dir=ltr] .fluxSSO{margin-left:5px}[dir=rtl] .fluxSSO{margin-right:5px}.fluxSSO img{-webkit-app-region:no-drag;transition:.1s}.stripePay{height:90px}[dir] .stripePay{padding:10px}[dir=ltr] .stripePay{margin-left:5px}[dir=rtl] .stripePay{margin-right:5px}.stripePay img{-webkit-app-region:no-drag;transition:.1s}.paypalPay{height:90px}[dir] .paypalPay{padding:10px}[dir=ltr] .paypalPay{margin-left:5px}[dir=rtl] .paypalPay{margin-right:5px}.paypalPay img{-webkit-app-region:no-drag;transition:.1s}a img{transition:all .05s ease-in-out}a:hover img{filter:opacity(70%)}[dir] a:hover img{transform:scale(1.1)}.flex{display:flex}.anchor{display:block;height:100px;visibility:hidden}[dir] .anchor{margin-top:-100px}.v-toast__text{font-family:Roboto,sans-serif!important}.jv-dark{white-space:nowrap;font-size:14px;font-family:Consolas,Menlo,Courier,monospace}[dir] .jv-dark{background:none;margin-bottom:25px}.jv-button{color:#49b3ff!important}.jv-dark .jv-array,.jv-dark .jv-key{color:#999!important}.jv-boolean{color:#fc1e70!important}.jv-function{color:#067bca!important}.jv-number,.jv-number-float,.jv-number-integer{color:#fc1e70!important}.jv-dark .jv-object{color:#999!important}.jv-undefined{color:#e08331!important}.jv-string{color:#42b983!important;word-break:break-word;white-space:normal}[dir] .card-body{padding:1rem}[dir] .table-no-padding>td{padding:0!important}.backups-table td{position:relative}td .ellipsis-wrapper{position:absolute;max-width:calc(100% - 1rem);line-height:calc(3rem - 8px);top:0;text-overflow:ellipsis;overflow:hidden;white-space:nowrap}[dir=ltr] td .ellipsis-wrapper{left:1rem}[dir=rtl] td .ellipsis-wrapper{right:1rem}.logs{max-height:392px;overflow-y:auto;color:#fff;font-size:12px;font-family:Menlo,Monaco,Consolas,Courier New,monospace}[dir] .logs{margin:5px;border:1px solid #ccc;padding:10px;background-color:#000}.input{min-width:150px;width:200px}.input_s{min-width:300px;width:350px}.clear-button{height:100%}.code-container{height:330px;max-width:100vw;position:relative;user-select:text;color:#fff;overflow:auto;font-size:12px;font-family:Menlo,Monaco,Consolas,Courier New,monospace;box-sizing:border-box;clip-path:inset(0 round 6px);word-wrap:break-word;word-break:break-all}[dir] .code-container{margin:5px;background-color:#000;border-radius:6px;border:1px solid #e1e4e8;padding:16px}.log-entry{user-select:text;white-space:pre-wrap}.line-by-line-mode .log-entry{user-select:none}[dir] .line-by-line-mode .log-entry{cursor:pointer}[dir] .line-by-line-mode .log-entry:hover{background-color:#ffffff1a}[dir] .line-by-line-mode .log-entry.selected{background-color:#ffffff4d}[dir=ltr] .line-by-line-mode .log-entry.selected{border-left:5px solid #007bff}[dir=rtl] .line-by-line-mode .log-entry.selected{border-right:5px solid #007bff}[dir] .line-by-line-mode .log-entry.selected:hover{background-color:#ffffff80}.log-copy-button{position:sticky;top:2px;color:#fff;font-size:12px;transition:background-color .2s ease;z-index:1000}[dir] .log-copy-button{padding:4px 8px;border:none;border-radius:4px;background-color:#0366d6;cursor:pointer}[dir=ltr] .log-copy-button{float:right}[dir=rtl] .log-copy-button{float:left}[dir] .log-copy-button:hover{background-color:#024b8e}.log-copy-button:disabled{color:#fff}[dir] .log-copy-button:disabled{background-color:#6c757d}.download-button:disabled{color:#fff}[dir] .download-button:disabled{background-color:#6c757d}.download-button{position:sticky;top:2px;color:#fff;font-size:12px;transition:background-color .2s ease}[dir] .download-button{padding:4px 8px;border:none;border-radius:4px;background-color:#28a745;cursor:pointer}[dir=ltr] .download-button{float:right;right:8px;margin-left:15px}[dir=rtl] .download-button{float:left;left:8px;margin-right:15px}.search_input{min-width:600px}.flex-container{display:flex;justify-content:space-between;align-items:left;flex-wrap:wrap}[dir] .download-button:hover{background-color:#218838}[dir] .download-button:disabled:hover{background-color:#6c757d}.icon-tooltip{font-size:15px;-webkit-appearance:none;-moz-appearance:none;appearance:none;color:#6c757d}[dir] .icon-tooltip{cursor:pointer}[dir=ltr] .icon-tooltip{margin-right:10px}[dir=rtl] .icon-tooltip{margin-left:10px}.x{font-size:1.5rem;vertical-align:middle;color:#f66;transition:color .3s ease}[dir] .x{cursor:pointer}.x:hover{color:#c00}.r{font-size:30px;vertical-align:middle;color:#39ff14;transition:color .6s ease,border-color .6s ease,box-shadow .6s ease,opacity .6s ease,transform .6s ease;box-sizing:border-box}[dir] .r{cursor:pointer;border:2px solid #4caf50;padding:4px;border-radius:4px}@keyframes spin-ltr{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}@keyframes spin-rtl{0%{transform:rotate(0deg)}to{transform:rotate(-1turn)}}.r:hover{color:#39ff14}[dir] .r:hover{border-color:#81c784;box-shadow:0 0 10px 2px #81c784b3}.r.disabled{opacity:.5;pointer-events:none;width:30px!important;height:30px!important;transition:color .6s ease,border-color .6s ease,box-shadow .6s ease,opacity .6s ease,transform .6s ease}[dir] .r.disabled{cursor:not-allowed;border-radius:50%;padding:4px;box-shadow:0 0 10px 2px #81c784b3}[dir=ltr] .r.disabled{animation:spin-ltr 2s linear infinite}[dir=rtl] .r.disabled{animation:spin-rtl 2s linear infinite}input[type=number]::-webkit-inner-spin-button,input[type=number]::-webkit-outer-spin-button{-webkit-appearance:auto}[dir] input[type=number]::-webkit-inner-spin-button,[dir] input[type=number]::-webkit-outer-spin-button{margin:0}input[type=number]{-moz-appearance:textfield;-webkit-appearance:textfield;appearance:textfield;color:gray}[dir=ltr] input[type=number]{padding-right:10px}[dir=rtl] input[type=number]{padding-left:10px}.apps-active-table tbody td,.apps-active-table thead th,.myapps-table tbody td,.myapps-table thead th{text-transform:none!important}[dir=ltr] .apps-active-table td:first-child{padding:0 0 0 5px}[dir=rtl] .apps-active-table td:first-child{padding:0 5px 0 0}[dir=ltr] .apps-active-table th:first-child{padding:0 0 0 5px}[dir=rtl] .apps-active-table th:first-child{padding:0 5px 0 0}[dir=ltr] .myapps-table td:first-child{padding:0 0 0 5px}[dir=rtl] .myapps-table td:first-child{padding:0 5px 0 0}[dir=ltr] .myapps-table th:first-child{padding:0 0 0 5px}[dir=rtl] .myapps-table th:first-child{padding:0 5px 0 0}.locations-table td:first-child,.locations-table th:first-child,.myapps-table td:nth-child(5),.myapps-table td:nth-child(6),.myapps-table th:nth-child(5),.myapps-table th:nth-child(6){width:105px}.hover-underline:hover{text-decoration:underline}.red-text{display:inline-block;font-weight:800;color:red}[dir] .red-text{background-color:#ff000040;border-radius:15px;margin:0 .1em;padding:.1em .6em} \ No newline at end of file +.toastification-close-icon[data-v-22d964ca],.toastification-title[data-v-22d964ca]{line-height:26px}.toastification-title[data-v-22d964ca]{color:inherit}.popover{max-width:400px}.confirm-dialog-250{width:250px}.confirm-dialog-275{width:275px}.confirm-dialog-300{width:300px}.confirm-dialog-350{width:350px}.confirm-dialog-400{width:400px}.flux-share-upload-drop[data-v-8e3a5248]{height:250px;width:300px}[dir] .flux-share-upload-drop[data-v-8e3a5248]{border-style:dotted;border-color:var(--secondary-color);cursor:pointer}[dir] .flux-share-upload-drop[data-v-8e3a5248]:hover{border-color:var(--primary-color)}.flux-share-upload-drop svg[data-v-8e3a5248]{width:100px;height:100px}[dir] .flux-share-upload-drop svg[data-v-8e3a5248]{margin:50px 0 10px 0}.flux-share-upload-input[data-v-8e3a5248]{display:none}.upload-footer[data-v-8e3a5248]{font-size:10px;position:relative;top:20px}.upload-column[data-v-8e3a5248]{overflow-y:auto;height:250px}.upload-item[data-v-8e3a5248]{overflow:hidden;white-space:nowrap;position:relative;height:30px}[dir=ltr] .upload-item[data-v-8e3a5248]{padding:0 0 0 3px}[dir=rtl] .upload-item[data-v-8e3a5248]{padding:0 3px 0 0}.upload-item p[data-v-8e3a5248]{text-overflow:ellipsis;overflow:hidden}[dir] .upload-item p[data-v-8e3a5248]{margin:0 0 10px}[dir=ltr] .upload-item p[data-v-8e3a5248]{padding:0 40px 0 0}[dir=rtl] .upload-item p[data-v-8e3a5248]{padding:0 0 0 40px}.upload-item .delete[data-v-8e3a5248]{position:absolute;top:0}[dir=ltr] .upload-item .delete[data-v-8e3a5248]{right:0}[dir=rtl] .upload-item .delete[data-v-8e3a5248]{left:0}.xterm{cursor:text;position:relative;user-select:none;-ms-user-select:none;-webkit-user-select:none}.xterm.focus,.xterm:focus{outline:none}.xterm .xterm-helpers{position:absolute;top:0;z-index:5}.xterm .xterm-helper-textarea{padding:0;border:0;margin:0;position:absolute;opacity:0;left:-9999em;top:0;width:0;height:0;z-index:-5;white-space:nowrap;overflow:hidden;resize:none}.xterm .composition-view{background:#000;color:#fff;display:none;position:absolute;white-space:nowrap;z-index:1}.xterm .composition-view.active{display:block}.xterm .xterm-viewport{background-color:#000;overflow-y:scroll;cursor:default;position:absolute;right:0;left:0;top:0;bottom:0}.xterm .xterm-screen{position:relative}.xterm .xterm-screen canvas{position:absolute;left:0;top:0}.xterm .xterm-scroll-area{visibility:hidden}.xterm-char-measure-element{display:inline-block;visibility:hidden;position:absolute;top:0;left:-9999em;line-height:normal}.xterm.enable-mouse-events{cursor:default}.xterm .xterm-cursor-pointer,.xterm.xterm-cursor-pointer{cursor:pointer}.xterm.column-select.focus{cursor:crosshair}.xterm .xterm-accessibility,.xterm .xterm-message{position:absolute;left:0;top:0;bottom:0;z-index:10;color:#0000}.xterm .live-region{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}.xterm-dim{opacity:.5}.xterm-underline-1{text-decoration:underline}.xterm-underline-2{-webkit-text-decoration:double underline;text-decoration:double underline}.xterm-underline-3{-webkit-text-decoration:wavy underline;text-decoration:wavy underline}.xterm-underline-4{-webkit-text-decoration:dotted underline;text-decoration:dotted underline}.xterm-underline-5{-webkit-text-decoration:dashed underline;text-decoration:dashed underline}.xterm-strikethrough{text-decoration:line-through}.xterm-screen .xterm-decoration-container .xterm-decoration{z-index:6;position:absolute}.xterm-decoration-overview-ruler{z-index:7;position:absolute;top:0;right:0;pointer-events:none}.xterm-decoration-top{z-index:2;position:relative}[dir=ltr] #updatemessage{padding-right:25px!important}[dir=rtl] #updatemessage{padding-left:25px!important}.text-wrap{position:relative}[dir] .text-wrap{padding:0}.clipboard.icon{position:absolute;top:.4em;width:12px;height:12px}[dir] .clipboard.icon{margin-top:4px;border:1px solid #333;border-top:none;border-radius:1px;cursor:pointer}[dir=ltr] .clipboard.icon{right:2em;margin-left:4px}[dir=rtl] .clipboard.icon{left:2em;margin-right:4px}.no-wrap,.no-wrap-limit{white-space:nowrap!important}.no-wrap-limit{min-width:150px}[dir] .no-wrap-limit{text-align:center}.custom-button{width:15px!important;height:25px!important}.button-cell{display:flex;align-items:center;min-width:150px}[dir] .xterm{padding:10px}[dir=ltr] .spin-icon{animation:spin-ltr 2s linear infinite}[dir=rtl] .spin-icon{animation:spin-rtl 2s linear infinite}.spin-icon-l{width:12px!important;height:12px!important}[dir=ltr] .spin-icon-l{animation:spin-ltr 2s linear infinite}[dir=rtl] .spin-icon-l{animation:spin-rtl 2s linear infinite}[dir=ltr] .app-instances-table td:first-child{padding:0 0 0 5px}[dir=rtl] .app-instances-table td:first-child{padding:0 5px 0 0}[dir=ltr] .app-instances-table th:first-child{padding:0 0 0 5px}[dir=rtl] .app-instances-table th:first-child{padding:0 5px 0 0}.app-instances-table td:nth-child(5),.app-instances-table th:nth-child(5){width:105px}.loginRow{display:flex;flex-direction:row;justify-content:space-around;align-items:center}[dir] .loginRow{margin-bottom:10px}.walletIcon{height:90px;width:90px}[dir] .walletIcon{padding:10px}.walletIcon img{-webkit-app-region:no-drag;transition:.1s}.fluxSSO{height:90px}[dir] .fluxSSO{padding:10px}[dir=ltr] .fluxSSO{margin-left:5px}[dir=rtl] .fluxSSO{margin-right:5px}.fluxSSO img{-webkit-app-region:no-drag;transition:.1s}.stripePay{height:90px}[dir] .stripePay{padding:10px}[dir=ltr] .stripePay{margin-left:5px}[dir=rtl] .stripePay{margin-right:5px}.stripePay img{-webkit-app-region:no-drag;transition:.1s}.paypalPay{height:90px}[dir] .paypalPay{padding:10px}[dir=ltr] .paypalPay{margin-left:5px}[dir=rtl] .paypalPay{margin-right:5px}.paypalPay img{-webkit-app-region:no-drag;transition:.1s}a img{transition:all .05s ease-in-out}a:hover img{filter:opacity(70%)}[dir] a:hover img{transform:scale(1.1)}.flex{display:flex}.anchor{display:block;height:100px;visibility:hidden}[dir] .anchor{margin-top:-100px}.v-toast__text{font-family:Roboto,sans-serif!important}.jv-dark{white-space:nowrap;font-size:14px;font-family:Consolas,Menlo,Courier,monospace}[dir] .jv-dark{background:none;margin-bottom:25px}.jv-button{color:#49b3ff!important}.jv-dark .jv-array,.jv-dark .jv-key{color:#999!important}.jv-boolean{color:#fc1e70!important}.jv-function{color:#067bca!important}.jv-number,.jv-number-float,.jv-number-integer{color:#fc1e70!important}.jv-dark .jv-object{color:#999!important}.jv-undefined{color:#e08331!important}.jv-string{color:#42b983!important;word-break:break-word;white-space:normal}[dir] .card-body{padding:1rem}[dir] .table-no-padding>td{padding:0!important}.backups-table td{position:relative}td .ellipsis-wrapper{position:absolute;max-width:calc(100% - 1rem);line-height:calc(3rem - 8px);top:0;text-overflow:ellipsis;overflow:hidden;white-space:nowrap}[dir=ltr] td .ellipsis-wrapper{left:1rem}[dir=rtl] td .ellipsis-wrapper{right:1rem}.logs{max-height:392px;overflow-y:auto;color:#fff;font-size:12px;font-family:Menlo,Monaco,Consolas,Courier New,monospace}[dir] .logs{margin:5px;border:1px solid #ccc;padding:10px;background-color:#000}.input{min-width:150px;width:200px}.input_s{min-width:300px;width:350px}.clear-button{height:100%}.code-container{height:330px;max-width:100vw;position:relative;user-select:text;color:#fff;overflow:auto;font-size:12px;font-family:Menlo,Monaco,Consolas,Courier New,monospace;box-sizing:border-box;clip-path:inset(0 round 6px);word-wrap:break-word;word-break:break-all}[dir] .code-container{margin:5px;background-color:#000;border-radius:6px;border:1px solid #e1e4e8;padding:16px}.log-entry{user-select:text;white-space:pre-wrap}.line-by-line-mode .log-entry{user-select:none}[dir] .line-by-line-mode .log-entry{cursor:pointer}[dir] .line-by-line-mode .log-entry:hover{background-color:#ffffff1a}[dir] .line-by-line-mode .log-entry.selected{background-color:#ffffff4d}[dir=ltr] .line-by-line-mode .log-entry.selected{border-left:5px solid #007bff}[dir=rtl] .line-by-line-mode .log-entry.selected{border-right:5px solid #007bff}[dir] .line-by-line-mode .log-entry.selected:hover{background-color:#ffffff80}.log-copy-button{position:sticky;top:2px;color:#fff;font-size:12px;transition:background-color .2s ease;z-index:1000}[dir] .log-copy-button{padding:4px 8px;border:none;border-radius:4px;background-color:#0366d6;cursor:pointer}[dir=ltr] .log-copy-button{float:right}[dir=rtl] .log-copy-button{float:left}[dir] .log-copy-button:hover{background-color:#024b8e}.log-copy-button:disabled{color:#fff}[dir] .log-copy-button:disabled{background-color:#6c757d}.download-button:disabled{color:#fff}[dir] .download-button:disabled{background-color:#6c757d}.download-button{position:sticky;top:2px;color:#fff;font-size:12px;transition:background-color .2s ease}[dir] .download-button{padding:4px 8px;border:none;border-radius:4px;background-color:#28a745;cursor:pointer}[dir=ltr] .download-button{float:right;right:8px;margin-left:15px}[dir=rtl] .download-button{float:left;left:8px;margin-right:15px}.search_input{min-width:600px}.flex-container{display:flex;justify-content:space-between;align-items:left;flex-wrap:wrap}[dir] .download-button:hover{background-color:#218838}[dir] .download-button:disabled:hover{background-color:#6c757d}.icon-tooltip{font-size:15px;-webkit-appearance:none;-moz-appearance:none;appearance:none;color:#6c757d}[dir] .icon-tooltip{cursor:pointer}[dir=ltr] .icon-tooltip{margin-right:10px}[dir=rtl] .icon-tooltip{margin-left:10px}.x{font-size:1.5rem;vertical-align:middle;color:#f66;transition:color .3s ease}[dir] .x{cursor:pointer}.x:hover{color:#c00}.r{font-size:30px;vertical-align:middle;color:#39ff14;transition:color .6s ease,border-color .6s ease,box-shadow .6s ease,opacity .6s ease,transform .6s ease;box-sizing:border-box}[dir] .r{cursor:pointer;border:2px solid #4caf50;padding:4px;border-radius:4px}@keyframes spin-ltr{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}@keyframes spin-rtl{0%{transform:rotate(0deg)}to{transform:rotate(-1turn)}}.r:hover{color:#39ff14}[dir] .r:hover{border-color:#81c784;box-shadow:0 0 10px 2px #81c784b3}.r.disabled{opacity:.5;pointer-events:none;width:30px!important;height:30px!important;transition:color .6s ease,border-color .6s ease,box-shadow .6s ease,opacity .6s ease,transform .6s ease}[dir] .r.disabled{cursor:not-allowed;border-radius:50%;padding:4px;box-shadow:0 0 10px 2px #81c784b3}[dir=ltr] .r.disabled{animation:spin-ltr 2s linear infinite}[dir=rtl] .r.disabled{animation:spin-rtl 2s linear infinite}.container{max-width:1500px;width:100%;display:flex;flex-direction:column;justify-content:space-between}[dir] .container{padding:0;margin:0 auto}.flex-container2{height:50%;justify-content:space-between;flex-wrap:nowrap}[dir] .flex-container2{padding:.5vw}.charts-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:1vw;width:100%}[dir] .charts-grid{margin:1vh}.chart-wrapper{width:100%;min-width:600px;overflow:hidden;justify-content:center;align-items:center}[dir] .chart-wrapper{padding:10px;border-radius:10px;box-shadow:0 4px 6px #0000001a}.chart-title-container{align-items:center;display:flex}[dir=ltr] .chart-title-container{margin-right:10px}[dir=rtl] .chart-title-container{margin-left:10px}.table-responsive{overflow-x:auto}[dir] .table-responsive{box-shadow:0 6px 6px #0000001a}.table-monitoring{table-layout:auto;width:100%}.table-monitoring td,.table-monitoring th{white-space:nowrap}[dir] .table-monitoring td,[dir] .table-monitoring th{border:none;background-color:#0000}.chart-title{font-size:18px;font-weight:700}[dir=ltr] .chart-title{margin-left:8px}[dir=rtl] .chart-title{margin-right:8px}.icon-large{font-size:24px!important}.chart-wrapper canvas{max-width:100%;height:100%}@media(max-width:1800px){.charts-grid{grid-template-columns:1fr;gap:2vw}[dir] .charts-grid{margin:1vh 0}}@media(min-width:1800px){.charts-grid{grid-template-columns:repeat(2,1fr);gap:1vw}.charts-grid>.chart-wrapper:last-child:nth-child(odd){grid-column:1/-1;justify-self:center;width:100%}}input[type=number]::-webkit-inner-spin-button,input[type=number]::-webkit-outer-spin-button{-webkit-appearance:auto}[dir] input[type=number]::-webkit-inner-spin-button,[dir] input[type=number]::-webkit-outer-spin-button{margin:0}input[type=number]{-moz-appearance:textfield;-webkit-appearance:textfield;appearance:textfield;color:gray}[dir=ltr] input[type=number]{padding-right:10px}[dir=rtl] input[type=number]{padding-left:10px}.red-text{display:inline-block;font-weight:800;color:red}[dir] .red-text{background-color:#ff000040;border-radius:15px;margin:0 .1em;padding:.1em .6em}[dir=ltr] .myapps-table td:first-child{padding:0 0 0 5px}[dir=rtl] .myapps-table td:first-child{padding:0 5px 0 0}[dir=ltr] .myapps-table th:first-child{padding:0 0 0 5px}[dir=rtl] .myapps-table th:first-child{padding:0 5px 0 0}.myapps-table tbody td,.myapps-table thead th{text-transform:none!important} \ No newline at end of file diff --git a/HomeUI/dist/css/3041.css b/HomeUI/dist/css/266.css similarity index 100% rename from HomeUI/dist/css/3041.css rename to HomeUI/dist/css/266.css diff --git a/HomeUI/dist/css/4031.css b/HomeUI/dist/css/4031.css new file mode 100644 index 000000000..cb1bb133d --- /dev/null +++ b/HomeUI/dist/css/4031.css @@ -0,0 +1 @@ +@import url(https://fonts.googleapis.com/css?family=Roboto:400,500,700&display=swap);.mdl-button{background:0 0;border:none;border-radius:2px;color:#000;position:relative;height:36px;margin:0;min-width:64px;padding:0 16px;display:inline-block;font-family:Roboto,Helvetica,Arial,sans-serif;font-size:14px;font-weight:500;text-transform:uppercase;line-height:1;letter-spacing:0;overflow:hidden;will-change:box-shadow;transition:box-shadow .2s cubic-bezier(.4,0,1,1),background-color .2s cubic-bezier(.4,0,.2,1),color .2s cubic-bezier(.4,0,.2,1);outline:0;cursor:pointer;text-decoration:none;text-align:center;line-height:36px;vertical-align:middle}.mdl-button::-moz-focus-inner{border:0}.mdl-button:hover{background-color:#9e9e9e33}.mdl-button:focus:not(:active){background-color:#0000001f}.mdl-button:active{background-color:#9e9e9e66}.mdl-button.mdl-button--colored{color:#3f51b5}.mdl-button.mdl-button--colored:focus:not(:active){background-color:#0000001f}input.mdl-button[type=submit]{-webkit-appearance:none}.mdl-button--raised{background:#9e9e9e33;box-shadow:0 2px 2px 0 #00000024,0 3px 1px -2px #0003,0 1px 5px 0 #0000001f}.mdl-button--raised:active{box-shadow:0 4px 5px 0 #00000024,0 1px 10px 0 #0000001f,0 2px 4px -1px #0003;background-color:#9e9e9e66}.mdl-button--raised:focus:not(:active){box-shadow:0 0 8px #0000002e,0 8px 16px #0000005c;background-color:#9e9e9e66}.mdl-button--raised.mdl-button--colored{background:#3f51b5;color:#fff}.mdl-button--raised.mdl-button--colored:active,.mdl-button--raised.mdl-button--colored:focus:not(:active),.mdl-button--raised.mdl-button--colored:hover{background-color:#3f51b5}.mdl-button--raised.mdl-button--colored .mdl-ripple{background:#fff}.mdl-button--fab{border-radius:50%;font-size:24px;height:56px;margin:auto;min-width:56px;width:56px;padding:0;overflow:hidden;background:#9e9e9e33;box-shadow:0 1px 1.5px 0 #0000001f,0 1px 1px 0 #0000003d;position:relative;line-height:normal}.mdl-button--fab .material-icons{position:absolute;top:50%;left:50%;transform:translate(-12px,-12px);line-height:24px;width:24px}.mdl-button--fab.mdl-button--mini-fab{height:40px;min-width:40px;width:40px}.mdl-button--fab .mdl-button__ripple-container{border-radius:50%;-webkit-mask-image:-webkit-radial-gradient(circle,#fff,#000)}.mdl-button--fab:active{box-shadow:0 4px 5px 0 #00000024,0 1px 10px 0 #0000001f,0 2px 4px -1px #0003;background-color:#9e9e9e66}.mdl-button--fab:focus:not(:active){box-shadow:0 0 8px #0000002e,0 8px 16px #0000005c;background-color:#9e9e9e66}.mdl-button--fab.mdl-button--colored{background:#ff4081;color:#fff}.mdl-button--fab.mdl-button--colored:active,.mdl-button--fab.mdl-button--colored:focus:not(:active),.mdl-button--fab.mdl-button--colored:hover{background-color:#ff4081}.mdl-button--fab.mdl-button--colored .mdl-ripple{background:#fff}.mdl-button--icon{border-radius:50%;font-size:24px;height:32px;margin-left:0;margin-right:0;min-width:32px;width:32px;padding:0;overflow:hidden;color:inherit;line-height:normal}.mdl-button--icon .material-icons{position:absolute;top:50%;left:50%;transform:translate(-12px,-12px);line-height:24px;width:24px}.mdl-button--icon.mdl-button--mini-icon{height:24px;min-width:24px;width:24px}.mdl-button--icon.mdl-button--mini-icon .material-icons{top:0;left:0}.mdl-button--icon .mdl-button__ripple-container{border-radius:50%;-webkit-mask-image:-webkit-radial-gradient(circle,#fff,#000)}.mdl-button__ripple-container{display:block;height:100%;left:0;position:absolute;top:0;width:100%;z-index:0;overflow:hidden}.mdl-button.mdl-button--disabled .mdl-button__ripple-container .mdl-ripple,.mdl-button[disabled] .mdl-button__ripple-container .mdl-ripple{background-color:initial}.mdl-button--primary.mdl-button--primary{color:#3f51b5}.mdl-button--primary.mdl-button--primary .mdl-ripple{background:#fff}.mdl-button--primary.mdl-button--primary.mdl-button--fab,.mdl-button--primary.mdl-button--primary.mdl-button--raised{color:#fff;background-color:#3f51b5}.mdl-button--accent.mdl-button--accent{color:#ff4081}.mdl-button--accent.mdl-button--accent .mdl-ripple{background:#fff}.mdl-button--accent.mdl-button--accent.mdl-button--fab,.mdl-button--accent.mdl-button--accent.mdl-button--raised{color:#fff;background-color:#ff4081}.mdl-button.mdl-button--disabled.mdl-button--disabled,.mdl-button[disabled][disabled]{color:#00000042;cursor:default;background-color:initial}.mdl-button--fab.mdl-button--disabled.mdl-button--disabled,.mdl-button--fab[disabled][disabled]{background-color:#0000001f;color:#00000042}.mdl-button--raised.mdl-button--disabled.mdl-button--disabled,.mdl-button--raised[disabled][disabled]{background-color:#0000001f;color:#00000042;box-shadow:none}.mdl-button--colored.mdl-button--disabled.mdl-button--disabled,.mdl-button--colored[disabled][disabled]{color:#00000042}.mdl-button .material-icons{vertical-align:middle}.mdl-card{display:flex;flex-direction:column;font-size:16px;font-weight:400;min-height:200px;overflow:hidden;width:330px;z-index:1;position:relative;background:#fff;border-radius:2px;box-sizing:border-box}.mdl-card__media{background-color:#ff4081;background-repeat:repeat;background-position:50% 50%;background-size:cover;background-origin:initial;background-attachment:scroll;box-sizing:border-box}.mdl-card__title{align-items:center;color:#000;display:block;display:flex;justify-content:stretch;line-height:normal;padding:16px 16px;perspective-origin:165px 56px;transform-origin:165px 56px;box-sizing:border-box}.mdl-card__title.mdl-card--border{border-bottom:1px solid #0000001a}.mdl-card__title-text{align-self:flex-end;color:inherit;display:block;display:flex;font-size:24px;font-weight:300;line-height:normal;overflow:hidden;transform-origin:149px 48px;margin:0}.mdl-card__subtitle-text{font-size:14px;color:#0000008a;margin:0}.mdl-card__supporting-text{color:#0000008a;font-size:1rem;line-height:18px;overflow:hidden;padding:16px 16px;width:90%}.mdl-card__supporting-text.mdl-card--border{border-bottom:1px solid #0000001a}.mdl-card__actions{font-size:16px;line-height:normal;width:100%;background-color:#0000;padding:8px;box-sizing:border-box}.mdl-card__actions.mdl-card--border{border-top:1px solid #0000001a}.mdl-card--expand{flex-grow:1}.mdl-card__menu{position:absolute;right:16px;top:16px}.mdl-dialog{border:none;box-shadow:0 9px 46px 8px #00000024,0 11px 15px -7px #0000001f,0 24px 38px 3px #0003;width:280px}.mdl-dialog__title{padding:24px 24px 0;margin:0;font-size:2.5rem}.mdl-dialog__actions{padding:8px 8px 8px 24px;display:flex;flex-direction:row-reverse;flex-wrap:wrap}.mdl-dialog__actions>*{margin-right:8px;height:36px}.mdl-dialog__actions>:first-child{margin-right:0}.mdl-dialog__actions--full-width{padding:0 0 8px 0}.mdl-dialog__actions--full-width>*{height:48px;flex:0 0 100%;padding-right:16px;margin-right:0;text-align:right}.mdl-dialog__content{padding:20px 24px 24px 24px;color:#0000008a}.mdl-progress{display:block;position:relative;height:4px;width:500px;max-width:100%}.mdl-progress>.bar{display:block;position:absolute;top:0;bottom:0;width:0;transition:width .2s cubic-bezier(.4,0,.2,1)}.mdl-progress>.progressbar{background-color:#3f51b5;z-index:1;left:0}.mdl-progress>.bufferbar{background-image:linear-gradient(90deg,#ffffffb3,#ffffffb3),linear-gradient(90deg,#3f51b5,#3f51b5);z-index:0;left:0}.mdl-progress>.auxbar{right:0}@supports (-webkit-appearance:none){.mdl-progress:not(.mdl-progress--indeterminate):not(.mdl-progress--indeterminate)>.auxbar,.mdl-progress:not(.mdl-progress__indeterminate):not(.mdl-progress__indeterminate)>.auxbar{background-image:linear-gradient(90deg,#ffffffb3,#ffffffb3),linear-gradient(90deg,#3f51b5,#3f51b5);-webkit-mask:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTIiIGhlaWdodD0iNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48Y2lyY2xlIGN4PSIyIiBjeT0iMiIgcj0iMiI+PGFuaW1hdGUgYXR0cmlidXRlTmFtZT0iY3giIGZyb209IjIiIHRvPSItMTAiIGR1cj0iMC42cyIgcmVwZWF0Q291bnQ9ImluZGVmaW5pdGUiLz48L2NpcmNsZT48Y2lyY2xlIGN4PSIxNCIgY3k9IjIiIGNsYXNzPSJsb2FkZXIiIHI9IjIiPjxhbmltYXRlIGF0dHJpYnV0ZU5hbWU9ImN4IiBmcm9tPSIxNCIgdG89IjIiIGR1cj0iMC42cyIgcmVwZWF0Q291bnQ9ImluZGVmaW5pdGUiLz48L2NpcmNsZT48L3N2Zz4=);mask:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTIiIGhlaWdodD0iNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48Y2lyY2xlIGN4PSIyIiBjeT0iMiIgcj0iMiI+PGFuaW1hdGUgYXR0cmlidXRlTmFtZT0iY3giIGZyb209IjIiIHRvPSItMTAiIGR1cj0iMC42cyIgcmVwZWF0Q291bnQ9ImluZGVmaW5pdGUiLz48L2NpcmNsZT48Y2lyY2xlIGN4PSIxNCIgY3k9IjIiIGNsYXNzPSJsb2FkZXIiIHI9IjIiPjxhbmltYXRlIGF0dHJpYnV0ZU5hbWU9ImN4IiBmcm9tPSIxNCIgdG89IjIiIGR1cj0iMC42cyIgcmVwZWF0Q291bnQ9ImluZGVmaW5pdGUiLz48L2NpcmNsZT48L3N2Zz4=)}}.mdl-progress:not(.mdl-progress--indeterminate)>.auxbar,.mdl-progress:not(.mdl-progress__indeterminate)>.auxbar{background-image:linear-gradient(90deg,#ffffffe6,#ffffffe6),linear-gradient(90deg,#3f51b5,#3f51b5)}.mdl-progress.mdl-progress--indeterminate>.bar1,.mdl-progress.mdl-progress__indeterminate>.bar1{background-color:#3f51b5;animation-name:indeterminate1;animation-duration:2s;animation-iteration-count:infinite;animation-timing-function:linear}.mdl-progress.mdl-progress--indeterminate>.bar3,.mdl-progress.mdl-progress__indeterminate>.bar3{background-image:none;background-color:#3f51b5;animation-name:indeterminate2;animation-duration:2s;animation-iteration-count:infinite;animation-timing-function:linear}@keyframes indeterminate1{0%{left:0;width:0}50%{left:25%;width:75%}75%{left:100%;width:0}}@keyframes indeterminate2{0%{left:0;width:0}50%{left:0;width:0}75%{left:0;width:25%}to{left:100%;width:0}}.mdl-shadow--2dp{box-shadow:0 2px 2px 0 #00000024,0 3px 1px -2px #0003,0 1px 5px 0 #0000001f}.mdl-shadow--3dp{box-shadow:0 3px 4px 0 #00000024,0 3px 3px -2px #0003,0 1px 8px 0 #0000001f}.mdl-shadow--4dp{box-shadow:0 4px 5px 0 #00000024,0 1px 10px 0 #0000001f,0 2px 4px -1px #0003}.mdl-shadow--6dp{box-shadow:0 6px 10px 0 #00000024,0 1px 18px 0 #0000001f,0 3px 5px -1px #0003}.mdl-shadow--8dp{box-shadow:0 8px 10px 1px #00000024,0 3px 14px 2px #0000001f,0 5px 5px -3px #0003}.mdl-shadow--16dp{box-shadow:0 16px 24px 2px #00000024,0 6px 30px 5px #0000001f,0 8px 10px -5px #0003}.mdl-shadow--24dp{box-shadow:0 9px 46px 8px #00000024,0 11px 15px -7px #0000001f,0 24px 38px 3px #0003}.mdl-spinner{display:inline-block;position:relative;width:28px;height:28px}.mdl-spinner:not(.is-upgraded).is-active:after{content:"Loading..."}.mdl-spinner.is-upgraded.is-active{animation:mdl-spinner__container-rotate 1.568s linear infinite}@keyframes mdl-spinner__container-rotate{to{transform:rotate(1turn)}}.mdl-spinner__layer{position:absolute;width:100%;height:100%;opacity:0}.mdl-spinner__layer-1{border-color:#42a5f5}.mdl-spinner--single-color .mdl-spinner__layer-1{border-color:#3f51b5}.mdl-spinner.is-active .mdl-spinner__layer-1{animation:mdl-spinner__fill-unfill-rotate 5332ms cubic-bezier(.4,0,.2,1) infinite both,mdl-spinner__layer-1-fade-in-out 5332ms cubic-bezier(.4,0,.2,1) infinite both}.mdl-spinner__layer-2{border-color:#f44336}.mdl-spinner--single-color .mdl-spinner__layer-2{border-color:#3f51b5}.mdl-spinner.is-active .mdl-spinner__layer-2{animation:mdl-spinner__fill-unfill-rotate 5332ms cubic-bezier(.4,0,.2,1) infinite both,mdl-spinner__layer-2-fade-in-out 5332ms cubic-bezier(.4,0,.2,1) infinite both}.mdl-spinner__layer-3{border-color:#fdd835}.mdl-spinner--single-color .mdl-spinner__layer-3{border-color:#3f51b5}.mdl-spinner.is-active .mdl-spinner__layer-3{animation:mdl-spinner__fill-unfill-rotate 5332ms cubic-bezier(.4,0,.2,1) infinite both,mdl-spinner__layer-3-fade-in-out 5332ms cubic-bezier(.4,0,.2,1) infinite both}.mdl-spinner__layer-4{border-color:#4caf50}.mdl-spinner--single-color .mdl-spinner__layer-4{border-color:#3f51b5}.mdl-spinner.is-active .mdl-spinner__layer-4{animation:mdl-spinner__fill-unfill-rotate 5332ms cubic-bezier(.4,0,.2,1) infinite both,mdl-spinner__layer-4-fade-in-out 5332ms cubic-bezier(.4,0,.2,1) infinite both}@keyframes mdl-spinner__fill-unfill-rotate{12.5%{transform:rotate(135deg)}25%{transform:rotate(270deg)}37.5%{transform:rotate(405deg)}50%{transform:rotate(540deg)}62.5%{transform:rotate(675deg)}75%{transform:rotate(810deg)}87.5%{transform:rotate(945deg)}to{transform:rotate(3turn)}}@keyframes mdl-spinner__layer-1-fade-in-out{0%{opacity:.99}25%{opacity:.99}26%{opacity:0}89%{opacity:0}90%{opacity:.99}to{opacity:.99}}@keyframes mdl-spinner__layer-2-fade-in-out{0%{opacity:0}15%{opacity:0}25%{opacity:.99}50%{opacity:.99}51%{opacity:0}}@keyframes mdl-spinner__layer-3-fade-in-out{0%{opacity:0}40%{opacity:0}50%{opacity:.99}75%{opacity:.99}76%{opacity:0}}@keyframes mdl-spinner__layer-4-fade-in-out{0%{opacity:0}65%{opacity:0}75%{opacity:.99}90%{opacity:.99}to{opacity:0}}.mdl-spinner__gap-patch{position:absolute;box-sizing:border-box;top:0;left:45%;width:10%;height:100%;overflow:hidden;border-color:inherit}.mdl-spinner__gap-patch .mdl-spinner__circle{width:1000%;left:-450%}.mdl-spinner__circle-clipper{display:inline-block;position:relative;width:50%;height:100%;overflow:hidden;border-color:inherit}.mdl-spinner__circle-clipper.mdl-spinner__left{float:left}.mdl-spinner__circle-clipper.mdl-spinner__right{float:right}.mdl-spinner__circle-clipper .mdl-spinner__circle{width:200%}.mdl-spinner__circle{box-sizing:border-box;height:100%;border-width:3px;border-style:solid;border-color:inherit;border-bottom-color:#0000!important;border-radius:50%;animation:none;position:absolute;top:0;right:0;bottom:0;left:0}.mdl-spinner__left .mdl-spinner__circle{border-right-color:#0000!important;transform:rotate(129deg)}.mdl-spinner.is-active .mdl-spinner__left .mdl-spinner__circle{animation:mdl-spinner__left-spin 1333ms cubic-bezier(.4,0,.2,1) infinite both}.mdl-spinner__right .mdl-spinner__circle{left:-100%;border-left-color:#0000!important;transform:rotate(-129deg)}.mdl-spinner.is-active .mdl-spinner__right .mdl-spinner__circle{animation:mdl-spinner__right-spin 1333ms cubic-bezier(.4,0,.2,1) infinite both}@keyframes mdl-spinner__left-spin{0%{transform:rotate(130deg)}50%{transform:rotate(-5deg)}to{transform:rotate(130deg)}}@keyframes mdl-spinner__right-spin{0%{transform:rotate(-130deg)}50%{transform:rotate(5deg)}to{transform:rotate(-130deg)}}.mdl-textfield{position:relative;font-size:16px;display:inline-block;box-sizing:border-box;width:300px;max-width:100%;margin:0;padding:20px 0}.mdl-textfield .mdl-button{position:absolute;bottom:20px}.mdl-textfield--align-right{text-align:right}.mdl-textfield--full-width{width:100%}.mdl-textfield--expandable{min-width:32px;width:auto;min-height:32px}.mdl-textfield--expandable .mdl-button--icon{top:16px}.mdl-textfield__input{border:none;border-bottom:1px solid #0000001f;display:block;font-size:16px;font-family:Helvetica,Arial,sans-serif;margin:0;padding:4px 0;width:100%;background:0 0;text-align:left;color:inherit}.mdl-textfield__input[type=number]{-moz-appearance:textfield}.mdl-textfield__input[type=number]::-webkit-inner-spin-button,.mdl-textfield__input[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}.mdl-textfield.is-focused .mdl-textfield__input{outline:0}.mdl-textfield.is-invalid .mdl-textfield__input{border-color:#d50000;box-shadow:none}.mdl-textfield.is-disabled .mdl-textfield__input,fieldset[disabled] .mdl-textfield .mdl-textfield__input{background-color:initial;border-bottom:1px dotted #0000001f;color:#00000042}.mdl-textfield textarea.mdl-textfield__input{display:block}.mdl-textfield__label{bottom:0;color:#00000042;font-size:16px;left:0;right:0;pointer-events:none;position:absolute;display:block;top:24px;width:100%;overflow:hidden;white-space:nowrap;text-align:left}.mdl-textfield.has-placeholder .mdl-textfield__label,.mdl-textfield.is-dirty .mdl-textfield__label{visibility:hidden}.mdl-textfield--floating-label .mdl-textfield__label{transition-duration:.2s;transition-timing-function:cubic-bezier(.4,0,.2,1)}.mdl-textfield--floating-label.has-placeholder .mdl-textfield__label{transition:none}.mdl-textfield.is-disabled.is-disabled .mdl-textfield__label,fieldset[disabled] .mdl-textfield .mdl-textfield__label{color:#00000042}.mdl-textfield--floating-label.has-placeholder .mdl-textfield__label,.mdl-textfield--floating-label.is-dirty .mdl-textfield__label,.mdl-textfield--floating-label.is-focused .mdl-textfield__label{color:#3f51b5;font-size:12px;top:4px;visibility:visible}.mdl-textfield--floating-label.has-placeholder .mdl-textfield__expandable-holder .mdl-textfield__label,.mdl-textfield--floating-label.is-dirty .mdl-textfield__expandable-holder .mdl-textfield__label,.mdl-textfield--floating-label.is-focused .mdl-textfield__expandable-holder .mdl-textfield__label{top:-16px}.mdl-textfield--floating-label.is-invalid .mdl-textfield__label{color:#d50000;font-size:12px}.mdl-textfield__label:after{background-color:#3f51b5;bottom:20px;content:"";height:2px;left:45%;position:absolute;transition-duration:.2s;transition-timing-function:cubic-bezier(.4,0,.2,1);visibility:hidden;width:10px}.mdl-textfield.is-focused .mdl-textfield__label:after{left:0;visibility:visible;width:100%}.mdl-textfield.is-invalid .mdl-textfield__label:after{background-color:#d50000}.mdl-textfield__error{color:#d50000;position:absolute;font-size:12px;margin-top:3px;visibility:hidden;display:block}.mdl-textfield.is-invalid .mdl-textfield__error{visibility:visible}.mdl-textfield__expandable-holder{position:relative;margin-left:32px;transition-duration:.2s;transition-timing-function:cubic-bezier(.4,0,.2,1);display:inline-block;max-width:.1px}.mdl-textfield.is-dirty .mdl-textfield__expandable-holder,.mdl-textfield.is-focused .mdl-textfield__expandable-holder{max-width:600px}.mdl-textfield__expandable-holder .mdl-textfield__label:after{bottom:0}dialog{position:absolute;left:0;right:0;width:fit-content;height:fit-content;margin:auto;border:solid;padding:1em;background:#fff;color:#000;display:block}dialog:not([open]){display:none}dialog+.backdrop{background:#0000001a}._dialog_overlay,dialog+.backdrop{position:fixed;top:0;right:0;bottom:0;left:0}dialog.fixed{position:fixed;top:50%;transform:translateY(-50%)}.firebaseui-container{background-color:#fff;box-sizing:border-box;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;color:#000000de;direction:ltr;font:16px Roboto,arial,sans-serif;margin:0 auto;max-width:360px;overflow:visible;position:relative;text-align:left;width:100%}.firebaseui-container.mdl-card{overflow:visible}.firebaseui-card-header{padding:24px 24px 0 24px}.firebaseui-card-content,.firebaseui-card-footer{padding:0 24px}.firebaseui-card-actions{box-sizing:border-box;display:table;font-size:14px;padding:8px 24px 24px 24px;text-align:left;width:100%}.firebaseui-form-links{display:table-cell;vertical-align:middle;width:100%}.firebaseui-form-actions{display:table-cell;text-align:right;white-space:nowrap;width:100%}.firebaseui-subtitle,.firebaseui-title{color:#000000de;direction:ltr;font-size:20px;font-weight:500;line-height:24px;margin:0;padding:0;text-align:left}.firebaseui-title{padding-bottom:16px}.firebaseui-subtitle{margin:16px 0}.firebaseui-text{color:#000000de;direction:ltr;font-size:16px;line-height:24px;text-align:left}.firebaseui-id-page-password-recovery-email-sent p.firebaseui-text{margin:16px 0}.firebaseui-text-emphasis{font-weight:700}.firebaseui-error{color:#dd2c00;direction:ltr;font-size:12px;line-height:16px;margin:0;text-align:left}.firebaseui-text-input-error{margin:-16px 0 16px}.firebaseui-error-wrapper{min-height:16px}.firebaseui-list-item{direction:ltr;margin:0;padding:0;text-align:left}.firebaseui-hidden{display:none}.firebaseui-relative-wrapper{position:relative}.firebaseui-label{color:#0000008a;direction:ltr;font-size:16px;text-align:left}.mdl-textfield--floating-label.is-dirty .mdl-textfield__label,.mdl-textfield--floating-label.is-focused .mdl-textfield__label{color:#757575}.firebaseui-input,.firebaseui-input-invalid{border-radius:0;color:#000000de;direction:ltr;font-size:16px;width:100%}input.firebaseui-input,input.firebaseui-input-invalid{direction:ltr;text-align:left}.firebaseui-input-invalid{border-color:#dd2c00}.firebaseui-textfield{width:100%}.firebaseui-textfield.mdl-textfield .firebaseui-input{border-color:#0000001f}.firebaseui-textfield.mdl-textfield .firebaseui-label:after{background-color:#3f51b5}.firebaseui-textfield-invalid.mdl-textfield .firebaseui-input{border-color:#dd2c00}.firebaseui-textfield-invalid.mdl-textfield .firebaseui-label:after{background-color:#dd2c00}.firebaseui-button{display:inline-block;height:36px;margin-left:8px;min-width:88px}.firebaseui-link{color:#4285f4;font-variant:normal;font-weight:400;text-decoration:none}.firebaseui-link:hover{text-decoration:underline}.firebaseui-indent{margin-left:1em}.firebaseui-tos{color:#757575;direction:ltr;font-size:12px;line-height:16px;margin-bottom:24px;margin-top:0;text-align:left}.firebaseui-provider-sign-in-footer>.firebaseui-tos{text-align:center}.firebaseui-tos-list{list-style:none;text-align:right}.firebaseui-inline-list-item{display:inline-block;margin-left:5px;margin-right:5px}.firebaseui-page-provider-sign-in,.firebaseui-page-select-tenant{background:inherit}.firebaseui-idp-list,.firebaseui-tenant-list{list-style:none;margin:1em 0;padding:0}.firebaseui-idp-button,.firebaseui-tenant-button{direction:ltr;font-weight:500;height:auto;line-height:normal;max-width:220px;min-height:40px;padding:8px 16px;text-align:left;width:100%}.firebaseui-idp-list>.firebaseui-list-item,.firebaseui-tenant-list>.firebaseui-list-item{margin-bottom:15px;text-align:center}.firebaseui-idp-icon-wrapper{display:table-cell;vertical-align:middle}.firebaseui-idp-icon{height:18px;width:18px}.firebaseui-idp-favicon,.firebaseui-idp-icon{border:none;display:inline-block;vertical-align:middle}.firebaseui-idp-favicon{height:14px;margin-right:5px;width:14px}.firebaseui-idp-text{color:#fff;display:table-cell;font-size:14px;padding-left:16px;text-transform:none;vertical-align:middle}.firebaseui-idp-text.firebaseui-idp-text-long{display:table-cell}.firebaseui-idp-text.firebaseui-idp-text-short{display:none}@media (max-width:268px){.firebaseui-idp-text.firebaseui-idp-text-long{display:none}.firebaseui-idp-text.firebaseui-idp-text-short{display:table-cell}}@media (max-width:320px){.firebaseui-recaptcha-container>div>div{transform:scale(.9);-webkit-transform:scale(.9);transform-origin:0 0;-webkit-transform-origin:0 0}}.firebaseui-idp-google>.firebaseui-idp-text{color:#757575}[data-provider-id="yahoo.com"]>.firebaseui-idp-icon-wrapper>.firebaseui-idp-icon{height:22px;width:22px}.firebaseui-info-bar{background-color:#f9edbe;border:1px solid #f0c36d;box-shadow:0 2px 4px #0003;-webkit-box-shadow:0 2px 4px #0003;-moz-box-shadow:0 2px 4px #0003;left:10%;padding:8px 16px;position:absolute;right:10%;text-align:center;top:0}.firebaseui-info-bar-message{font-size:12px;margin:0}.firebaseui-dialog{box-sizing:border-box;color:#000000de;font:16px Roboto,arial,sans-serif;height:auto;max-height:fit-content;padding:24px;text-align:left}.firebaseui-dialog-icon-wrapper{display:table-cell;vertical-align:middle}.firebaseui-dialog-icon{float:left;height:40px;margin-right:24px;width:40px}.firebaseui-progress-dialog-message{display:table-cell;font-size:16px;font-weight:400;min-height:40px;vertical-align:middle}.firebaseui-progress-dialog-loading-icon{height:28px;margin:6px 30px 6px 6px;width:28px}.firebaseui-icon-done{background-image:url(https://www.gstatic.com/images/icons/material/system/2x/done_googgreen_36dp.png);background-position:50%;background-repeat:no-repeat;background-size:36px 36px}.firebaseui-phone-number{display:flex}.firebaseui-country-selector{background-image:url(https://www.gstatic.com/images/icons/material/system/1x/arrow_drop_down_grey600_18dp.png);background-position:100%;background-repeat:no-repeat;background-size:18px auto;border-radius:0;border-bottom:1px solid #0000001f;color:#000000de;flex-shrink:0;font-size:16px;font-weight:400;height:auto;line-height:normal;margin:20px 24px 20px 0;padding:4px 20px 4px 0;width:90px}.firebaseui-country-selector-flag{display:inline-block;margin-right:1ex}.firebaseui-flag{background-image:url(https://www.gstatic.com/firebasejs/ui/2.0.0/images/auth/flags_sprite_2x.png);background-size:100% auto;filter:drop-shadow(1px 1px 1px rgba(0,0,0,.54));height:14px;width:24px}.firebaseui-list-box-dialog{max-height:90%;overflow:auto;padding:8px 0 0 0}.firebaseui-list-box-actions{padding-bottom:8px}.firebaseui-list-box-icon-wrapper{padding-right:24px}.firebaseui-list-box-icon-wrapper,.firebaseui-list-box-label-wrapper{display:table-cell;vertical-align:top}.firebaseui-list-box-dialog-button{color:#000000de;direction:ltr;font-size:16px;font-weight:400;height:auto;line-height:normal;min-height:48px;padding:14px 24px;text-align:left;text-transform:none;width:100%}.firebaseui-phone-number-error{margin-left:114px}.mdl-progress.firebaseui-busy-indicator{height:2px;left:0;position:absolute;top:55px;width:100%}.mdl-spinner.firebaseui-busy-indicator{direction:ltr;height:56px;left:0;margin:auto;position:absolute;right:0;top:30%;width:56px}.firebaseui-callback-indicator-container .firebaseui-busy-indicator{top:0}.firebaseui-callback-indicator-container{height:120px}.firebaseui-new-password-component{display:inline-block;position:relative;width:100%}.firebaseui-input-floating-button{background-position:50%;background-repeat:no-repeat;display:block;height:24px;position:absolute;right:0;top:20px;width:24px}.firebaseui-input-toggle-on{background-image:url(https://www.gstatic.com/images/icons/material/system/1x/visibility_black_24dp.png)}.firebaseui-input-toggle-off{background-image:url(https://www.gstatic.com/images/icons/material/system/1x/visibility_off_black_24dp.png)}.firebaseui-input-toggle-focus{opacity:.87}.firebaseui-input-toggle-blur{opacity:.38}.firebaseui-recaptcha-wrapper{display:table;margin:0 auto;padding-bottom:8px}.firebaseui-recaptcha-container{display:table-cell}.firebaseui-recaptcha-error-wrapper{caption-side:bottom;display:table-caption}.firebaseui-change-phone-number-link{display:block}.firebaseui-resend-container{direction:ltr;margin:20px 0;text-align:center}.firebaseui-id-resend-countdown{color:#00000061}.firebaseui-id-page-phone-sign-in-start .firebaseui-form-actions div{float:left}@media (max-width:480px){.firebaseui-container{box-shadow:none;max-width:none;width:100%}.firebaseui-card-header{border-bottom:1px solid #e0e0e0;margin-bottom:16px;padding:16px 24px 0 24px}.firebaseui-title{padding-bottom:16px}.firebaseui-card-actions{padding-right:24px}.firebaseui-busy-indicator{top:0}}.mdl-textfield__label{font-weight:400;margin-bottom:0}.firebaseui-id-page-blank,.firebaseui-id-page-spinner{background:inherit;height:64px}.firebaseui-email-sent{background-image:url(https://www.gstatic.com/firebasejs/ui/2.0.0/images/auth/success_status.png);background-position:50%;background-repeat:no-repeat;background-size:64px 64px;height:64px;margin-top:16px;text-align:center}.firebaseui-text-justify{text-align:justify}.firebaseui-flag-KY{background-position:0 0}.firebaseui-flag-AC{background-position:0 -14px}.firebaseui-flag-AE{background-position:0 -28px}.firebaseui-flag-AF{background-position:0 -42px}.firebaseui-flag-AG{background-position:0 -56px}.firebaseui-flag-AI{background-position:0 -70px}.firebaseui-flag-AL{background-position:0 -84px}.firebaseui-flag-AM{background-position:0 -98px}.firebaseui-flag-AO{background-position:0 -112px}.firebaseui-flag-AQ{background-position:0 -126px}.firebaseui-flag-AR{background-position:0 -140px}.firebaseui-flag-AS{background-position:0 -154px}.firebaseui-flag-AT{background-position:0 -168px}.firebaseui-flag-AU{background-position:0 -182px}.firebaseui-flag-AW{background-position:0 -196px}.firebaseui-flag-AX{background-position:0 -210px}.firebaseui-flag-AZ{background-position:0 -224px}.firebaseui-flag-BA{background-position:0 -238px}.firebaseui-flag-BB{background-position:0 -252px}.firebaseui-flag-BD{background-position:0 -266px}.firebaseui-flag-BE{background-position:0 -280px}.firebaseui-flag-BF{background-position:0 -294px}.firebaseui-flag-BG{background-position:0 -308px}.firebaseui-flag-BH{background-position:0 -322px}.firebaseui-flag-BI{background-position:0 -336px}.firebaseui-flag-BJ{background-position:0 -350px}.firebaseui-flag-BL{background-position:0 -364px}.firebaseui-flag-BM{background-position:0 -378px}.firebaseui-flag-BN{background-position:0 -392px}.firebaseui-flag-BO{background-position:0 -406px}.firebaseui-flag-BQ{background-position:0 -420px}.firebaseui-flag-BR{background-position:0 -434px}.firebaseui-flag-BS{background-position:0 -448px}.firebaseui-flag-BT{background-position:0 -462px}.firebaseui-flag-BV{background-position:0 -476px}.firebaseui-flag-BW{background-position:0 -490px}.firebaseui-flag-BY{background-position:0 -504px}.firebaseui-flag-BZ{background-position:0 -518px}.firebaseui-flag-CA{background-position:0 -532px}.firebaseui-flag-CC{background-position:0 -546px}.firebaseui-flag-CD{background-position:0 -560px}.firebaseui-flag-CF{background-position:0 -574px}.firebaseui-flag-CG{background-position:0 -588px}.firebaseui-flag-CH{background-position:0 -602px}.firebaseui-flag-CI{background-position:0 -616px}.firebaseui-flag-CK{background-position:0 -630px}.firebaseui-flag-CL{background-position:0 -644px}.firebaseui-flag-CM{background-position:0 -658px}.firebaseui-flag-CN{background-position:0 -672px}.firebaseui-flag-CO{background-position:0 -686px}.firebaseui-flag-CP{background-position:0 -700px}.firebaseui-flag-CR{background-position:0 -714px}.firebaseui-flag-CU{background-position:0 -728px}.firebaseui-flag-CV{background-position:0 -742px}.firebaseui-flag-CW{background-position:0 -756px}.firebaseui-flag-CX{background-position:0 -770px}.firebaseui-flag-CY{background-position:0 -784px}.firebaseui-flag-CZ{background-position:0 -798px}.firebaseui-flag-DE{background-position:0 -812px}.firebaseui-flag-DG{background-position:0 -826px}.firebaseui-flag-DJ{background-position:0 -840px}.firebaseui-flag-DK{background-position:0 -854px}.firebaseui-flag-DM{background-position:0 -868px}.firebaseui-flag-DO{background-position:0 -882px}.firebaseui-flag-DZ{background-position:0 -896px}.firebaseui-flag-EA{background-position:0 -910px}.firebaseui-flag-EC{background-position:0 -924px}.firebaseui-flag-EE{background-position:0 -938px}.firebaseui-flag-EG{background-position:0 -952px}.firebaseui-flag-EH{background-position:0 -966px}.firebaseui-flag-ER{background-position:0 -980px}.firebaseui-flag-ES{background-position:0 -994px}.firebaseui-flag-ET{background-position:0 -1008px}.firebaseui-flag-EU{background-position:0 -1022px}.firebaseui-flag-FI{background-position:0 -1036px}.firebaseui-flag-FJ{background-position:0 -1050px}.firebaseui-flag-FK{background-position:0 -1064px}.firebaseui-flag-FM{background-position:0 -1078px}.firebaseui-flag-FO{background-position:0 -1092px}.firebaseui-flag-FR{background-position:0 -1106px}.firebaseui-flag-GA{background-position:0 -1120px}.firebaseui-flag-GB{background-position:0 -1134px}.firebaseui-flag-GD{background-position:0 -1148px}.firebaseui-flag-GE{background-position:0 -1162px}.firebaseui-flag-GF{background-position:0 -1176px}.firebaseui-flag-GG{background-position:0 -1190px}.firebaseui-flag-GH{background-position:0 -1204px}.firebaseui-flag-GI{background-position:0 -1218px}.firebaseui-flag-GL{background-position:0 -1232px}.firebaseui-flag-GM{background-position:0 -1246px}.firebaseui-flag-GN{background-position:0 -1260px}.firebaseui-flag-GP{background-position:0 -1274px}.firebaseui-flag-GQ{background-position:0 -1288px}.firebaseui-flag-GR{background-position:0 -1302px}.firebaseui-flag-GS{background-position:0 -1316px}.firebaseui-flag-GT{background-position:0 -1330px}.firebaseui-flag-GU{background-position:0 -1344px}.firebaseui-flag-GW{background-position:0 -1358px}.firebaseui-flag-GY{background-position:0 -1372px}.firebaseui-flag-HK{background-position:0 -1386px}.firebaseui-flag-HM{background-position:0 -1400px}.firebaseui-flag-HN{background-position:0 -1414px}.firebaseui-flag-HR{background-position:0 -1428px}.firebaseui-flag-HT{background-position:0 -1442px}.firebaseui-flag-HU{background-position:0 -1456px}.firebaseui-flag-IC{background-position:0 -1470px}.firebaseui-flag-ID{background-position:0 -1484px}.firebaseui-flag-IE{background-position:0 -1498px}.firebaseui-flag-IL{background-position:0 -1512px}.firebaseui-flag-IM{background-position:0 -1526px}.firebaseui-flag-IN{background-position:0 -1540px}.firebaseui-flag-IO{background-position:0 -1554px}.firebaseui-flag-IQ{background-position:0 -1568px}.firebaseui-flag-IR{background-position:0 -1582px}.firebaseui-flag-IS{background-position:0 -1596px}.firebaseui-flag-IT{background-position:0 -1610px}.firebaseui-flag-JE{background-position:0 -1624px}.firebaseui-flag-JM{background-position:0 -1638px}.firebaseui-flag-JO{background-position:0 -1652px}.firebaseui-flag-JP{background-position:0 -1666px}.firebaseui-flag-KE{background-position:0 -1680px}.firebaseui-flag-KG{background-position:0 -1694px}.firebaseui-flag-KH{background-position:0 -1708px}.firebaseui-flag-KI{background-position:0 -1722px}.firebaseui-flag-KM{background-position:0 -1736px}.firebaseui-flag-KN{background-position:0 -1750px}.firebaseui-flag-KP{background-position:0 -1764px}.firebaseui-flag-KR{background-position:0 -1778px}.firebaseui-flag-KW{background-position:0 -1792px}.firebaseui-flag-AD{background-position:0 -1806px}.firebaseui-flag-KZ{background-position:0 -1820px}.firebaseui-flag-LA{background-position:0 -1834px}.firebaseui-flag-LB{background-position:0 -1848px}.firebaseui-flag-LC{background-position:0 -1862px}.firebaseui-flag-LI{background-position:0 -1876px}.firebaseui-flag-LK{background-position:0 -1890px}.firebaseui-flag-LR{background-position:0 -1904px}.firebaseui-flag-LS{background-position:0 -1918px}.firebaseui-flag-LT{background-position:0 -1932px}.firebaseui-flag-LU{background-position:0 -1946px}.firebaseui-flag-LV{background-position:0 -1960px}.firebaseui-flag-LY{background-position:0 -1974px}.firebaseui-flag-MA{background-position:0 -1988px}.firebaseui-flag-MC{background-position:0 -2002px}.firebaseui-flag-MD{background-position:0 -2016px}.firebaseui-flag-ME{background-position:0 -2030px}.firebaseui-flag-MF{background-position:0 -2044px}.firebaseui-flag-MG{background-position:0 -2058px}.firebaseui-flag-MH{background-position:0 -2072px}.firebaseui-flag-MK{background-position:0 -2086px}.firebaseui-flag-ML{background-position:0 -2100px}.firebaseui-flag-MM{background-position:0 -2114px}.firebaseui-flag-MN{background-position:0 -2128px}.firebaseui-flag-MO{background-position:0 -2142px}.firebaseui-flag-MP{background-position:0 -2156px}.firebaseui-flag-MQ{background-position:0 -2170px}.firebaseui-flag-MR{background-position:0 -2184px}.firebaseui-flag-MS{background-position:0 -2198px}.firebaseui-flag-MT{background-position:0 -2212px}.firebaseui-flag-MU{background-position:0 -2226px}.firebaseui-flag-MV{background-position:0 -2240px}.firebaseui-flag-MW{background-position:0 -2254px}.firebaseui-flag-MX{background-position:0 -2268px}.firebaseui-flag-MY{background-position:0 -2282px}.firebaseui-flag-MZ{background-position:0 -2296px}.firebaseui-flag-NA{background-position:0 -2310px}.firebaseui-flag-NC{background-position:0 -2324px}.firebaseui-flag-NE{background-position:0 -2338px}.firebaseui-flag-NF{background-position:0 -2352px}.firebaseui-flag-NG{background-position:0 -2366px}.firebaseui-flag-NI{background-position:0 -2380px}.firebaseui-flag-NL{background-position:0 -2394px}.firebaseui-flag-NO{background-position:0 -2408px}.firebaseui-flag-NP{background-position:0 -2422px}.firebaseui-flag-NR{background-position:0 -2436px}.firebaseui-flag-NU{background-position:0 -2450px}.firebaseui-flag-NZ{background-position:0 -2464px}.firebaseui-flag-OM{background-position:0 -2478px}.firebaseui-flag-PA{background-position:0 -2492px}.firebaseui-flag-PE{background-position:0 -2506px}.firebaseui-flag-PF{background-position:0 -2520px}.firebaseui-flag-PG{background-position:0 -2534px}.firebaseui-flag-PH{background-position:0 -2548px}.firebaseui-flag-PK{background-position:0 -2562px}.firebaseui-flag-PL{background-position:0 -2576px}.firebaseui-flag-PM{background-position:0 -2590px}.firebaseui-flag-PN{background-position:0 -2604px}.firebaseui-flag-PR{background-position:0 -2618px}.firebaseui-flag-PS{background-position:0 -2632px}.firebaseui-flag-PT{background-position:0 -2646px}.firebaseui-flag-PW{background-position:0 -2660px}.firebaseui-flag-PY{background-position:0 -2674px}.firebaseui-flag-QA{background-position:0 -2688px}.firebaseui-flag-RE{background-position:0 -2702px}.firebaseui-flag-RO{background-position:0 -2716px}.firebaseui-flag-RS{background-position:0 -2730px}.firebaseui-flag-RU{background-position:0 -2744px}.firebaseui-flag-RW{background-position:0 -2758px}.firebaseui-flag-SA{background-position:0 -2772px}.firebaseui-flag-SB{background-position:0 -2786px}.firebaseui-flag-SC{background-position:0 -2800px}.firebaseui-flag-SD{background-position:0 -2814px}.firebaseui-flag-SE{background-position:0 -2828px}.firebaseui-flag-SG{background-position:0 -2842px}.firebaseui-flag-SH{background-position:0 -2856px}.firebaseui-flag-SI{background-position:0 -2870px}.firebaseui-flag-SJ{background-position:0 -2884px}.firebaseui-flag-SK{background-position:0 -2898px}.firebaseui-flag-SL{background-position:0 -2912px}.firebaseui-flag-SM{background-position:0 -2926px}.firebaseui-flag-SN{background-position:0 -2940px}.firebaseui-flag-SO{background-position:0 -2954px}.firebaseui-flag-SR{background-position:0 -2968px}.firebaseui-flag-SS{background-position:0 -2982px}.firebaseui-flag-ST{background-position:0 -2996px}.firebaseui-flag-SV{background-position:0 -3010px}.firebaseui-flag-SX{background-position:0 -3024px}.firebaseui-flag-SY{background-position:0 -3038px}.firebaseui-flag-SZ{background-position:0 -3052px}.firebaseui-flag-TA{background-position:0 -3066px}.firebaseui-flag-TC{background-position:0 -3080px}.firebaseui-flag-TD{background-position:0 -3094px}.firebaseui-flag-TF{background-position:0 -3108px}.firebaseui-flag-TG{background-position:0 -3122px}.firebaseui-flag-TH{background-position:0 -3136px}.firebaseui-flag-TJ{background-position:0 -3150px}.firebaseui-flag-TK{background-position:0 -3164px}.firebaseui-flag-TL{background-position:0 -3178px}.firebaseui-flag-TM{background-position:0 -3192px}.firebaseui-flag-TN{background-position:0 -3206px}.firebaseui-flag-TO{background-position:0 -3220px}.firebaseui-flag-TR{background-position:0 -3234px}.firebaseui-flag-TT{background-position:0 -3248px}.firebaseui-flag-TV{background-position:0 -3262px}.firebaseui-flag-TW{background-position:0 -3276px}.firebaseui-flag-TZ{background-position:0 -3290px}.firebaseui-flag-UA{background-position:0 -3304px}.firebaseui-flag-UG{background-position:0 -3318px}.firebaseui-flag-UM{background-position:0 -3332px}.firebaseui-flag-UN{background-position:0 -3346px}.firebaseui-flag-US{background-position:0 -3360px}.firebaseui-flag-UY{background-position:0 -3374px}.firebaseui-flag-UZ{background-position:0 -3388px}.firebaseui-flag-VA{background-position:0 -3402px}.firebaseui-flag-VC{background-position:0 -3416px}.firebaseui-flag-VE{background-position:0 -3430px}.firebaseui-flag-VG{background-position:0 -3444px}.firebaseui-flag-VI{background-position:0 -3458px}.firebaseui-flag-VN{background-position:0 -3472px}.firebaseui-flag-VU{background-position:0 -3486px}.firebaseui-flag-WF{background-position:0 -3500px}.firebaseui-flag-WS{background-position:0 -3514px}.firebaseui-flag-XK{background-position:0 -3528px}.firebaseui-flag-YE{background-position:0 -3542px}.firebaseui-flag-YT{background-position:0 -3556px}.firebaseui-flag-ZA{background-position:0 -3570px}.firebaseui-flag-ZM{background-position:0 -3584px}.firebaseui-flag-ZW{background-position:0 -3598px}.toastification-close-icon[data-v-22d964ca],.toastification-title[data-v-22d964ca]{line-height:26px}.toastification-title[data-v-22d964ca]{color:inherit}.loginText{color:#2b61d1;font-size:16px;font-weight:500}.loginRow{display:flex;flex-direction:row;justify-content:space-around}[dir] .loginRow{margin-top:10px;padding-top:10px}.ssoLogin{display:flex;flex-direction:row;justify-content:center;align-items:center}[dir] .ssoLogin{margin-bottom:10px;margin-top:30px;text-align:center}.walletIcon{height:90px;width:90px}[dir] .walletIcon{padding:10px}.walletIcon img{-webkit-app-region:no-drag;transition:.1s}a img{transition:all .05s ease-in-out}a:hover img{filter:opacity(70%)}[dir] a:hover img{transform:scale(1.1)}[dir] .firebaseui-button{border-radius:3px}[dir=ltr] .firebaseui-button{margin-left:10px}[dir=rtl] .firebaseui-button{margin-right:10px}.mdl-textfield.is-focused .mdl-textfield__label:after{bottom:15px!important}.firebaseui-title{color:#000!important}.sso-tos{color:#d3d3d3;display:flex;justify-content:center;font-size:12px}[dir] .sso-tos{text-align:center}.highlight{color:#2b61d1}.modal-title{color:#fff} \ No newline at end of file diff --git a/HomeUI/dist/css/1966.css b/HomeUI/dist/css/4917.css similarity index 100% rename from HomeUI/dist/css/1966.css rename to HomeUI/dist/css/4917.css diff --git a/HomeUI/dist/css/5216.css b/HomeUI/dist/css/7355.css similarity index 100% rename from HomeUI/dist/css/5216.css rename to HomeUI/dist/css/7355.css diff --git a/HomeUI/dist/css/7966.css b/HomeUI/dist/css/7647.css similarity index 100% rename from HomeUI/dist/css/7966.css rename to HomeUI/dist/css/7647.css diff --git a/HomeUI/dist/css/7071.css b/HomeUI/dist/css/9784.css similarity index 100% rename from HomeUI/dist/css/7071.css rename to HomeUI/dist/css/9784.css diff --git a/HomeUI/dist/js/1032.js b/HomeUI/dist/js/1032.js index 6a64803aa..e17e60a23 100644 --- a/HomeUI/dist/js/1032.js +++ b/HomeUI/dist/js/1032.js @@ -1 +1 @@ -"use strict";(globalThis["webpackChunkflux"]=globalThis["webpackChunkflux"]||[]).push([[1032],{91032:(t,o,e)=>{e.r(o),e.d(o,{default:()=>w});var n=function(){var t=this,o=t._self._c;return o("div",[o("flux-map",{staticClass:"m-0 p-0",attrs:{nodes:t.fluxList}}),o("b-row",[o("b-col",{attrs:{md:"6",sm:"12",xs:"12"}},[o("b-card",[o("h4",[t._v("Geographic Locations ("+t._s(t.getLocationCount())+")")]),o("vue-apex-charts",{attrs:{type:"donut",height:"650",width:"100%",options:t.geographicData.chartOptions,series:t.geographicData.series}})],1)],1),o("b-col",{attrs:{md:"6",sm:"12",xs:"12"}},[o("b-card",[o("h4",[t._v("Providers ("+t._s(t.getProviderCount())+")")]),o("vue-apex-charts",{attrs:{type:"donut",height:"650",width:"100%",options:t.providerData.chartOptions,series:t.providerData.series}})],1)],1)],1)],1)},s=[],a=(e(70560),e(86855)),i=e(26253),r=e(50725),u=e(67166),h=e.n(u),l=e(51136),c=e(57071);const g=e(97218),d={components:{BCard:a._,BRow:i.T,BCol:r.l,VueApexCharts:h(),FluxMap:c.Z},data(){return{fluxList:[],fluxNodeCount:0,self:this,providerData:{series:[],chartOptions:{chart:{toolbar:{show:!1}},dataLabels:{enabled:!0},legend:{show:!0,height:100},stroke:{width:0},plotOptions:{pie:{donut:{size:"40%"}}}}},geographicData:{series:[],chartOptions:{chart:{toolbar:{show:!1}},dataLabels:{enabled:!0},legend:{show:!0,height:100},stroke:{width:0},plotOptions:{pie:{donut:{size:"40%"}}}}}}},mounted(){this.getFluxList()},methods:{async getFluxList(){try{const t=await g.get("https://stats.runonflux.io/fluxinfo?projection=geolocation,ip,tier");this.fluxList=t.data.data;const o=await l.Z.fluxnodeCount();this.fluxNodeCount=o.data.data.total,await this.generateGeographicPie(),await this.generateProviderPie()}catch(t){console.log(t)}},async generateGeographicPie(){const t=[],o=[],e=[];this.fluxList.forEach((t=>{if(t.geolocation&&t.geolocation.country){const o=e.find((o=>o.country===t.geolocation.country));if(o)o.amount+=1;else{const o={country:t.geolocation.country||"Unknown",amount:1};e.push(o)}}else{const t=e.find((t=>"Unknown"===t.country));if(t)t.amount+=1;else{const t={country:"Unknown",amount:1};e.push(t)}}}));for(let n=0;n"Unknown"===t.country));if(t)t.amount+=1;else{const t={country:"Unknown",amount:1};e.push(t)}}e.sort(((t,o)=>o.amount-t.amount)),this.geographicData.series=[],e.forEach((e=>{t.push(`${e.country} (${e.amount})`),o.push(e.amount)})),this.geographicData.chartOptions={labels:t,legend:{show:!0,position:"bottom",height:100}},this.geographicData.series=o},getLocationCount(){return this.geographicData.series&&this.geographicData.series.length>1?this.geographicData.series.length:0},async generateProviderPie(){const t=[],o=[],e=[];this.fluxList.forEach((t=>{if(t.geolocation&&t.geolocation.org){const o=e.find((o=>o.org===t.geolocation.org));if(o)o.amount+=1;else if(t.geolocation.org){const o={org:t.geolocation.org,amount:1};e.push(o)}else{const t=e.find((t=>"Unknown"===t.org));if(t)t.amount+=1;else{const t={org:"Unknown",amount:1};e.push(t)}}}else{const t=e.find((t=>"Unknown"===t.org));if(t)t.amount+=1;else{const t={org:"Unknown",amount:1};e.push(t)}}}));for(let n=0;n"Unknown"===t.org));if(t)t.amount+=1;else{const t={org:"Unknown",amount:1};e.push(t)}}e.sort(((t,o)=>o.amount-t.amount)),this.providerData.series=[],e.forEach((e=>{t.push(`${e.org} (${e.amount})`),o.push(e.amount)})),this.providerData.chartOptions={labels:t,legend:{show:!0,position:"bottom",height:100}},this.providerData.series=o},getProviderCount(){return this.providerData.series&&this.providerData.series.length>1?this.providerData.series.length:0},beautifyValue(t,o=2){const e=t.toFixed(o);return e.replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1,")}}},p=d;var f=e(1001),m=(0,f.Z)(p,n,s,!1,null,null,null);const w=m.exports},51136:(t,o,e)=>{e.d(o,{Z:()=>s});var n=e(80914);const s={listFluxNodes(){return(0,n.Z)().get("/daemon/listzelnodes")},fluxnodeCount(){return(0,n.Z)().get("/daemon/getzelnodecount")},blockReward(){return(0,n.Z)().get("/daemon/getblocksubsidy")}}}}]); \ No newline at end of file +"use strict";(self["webpackChunkflux"]=self["webpackChunkflux"]||[]).push([[1032],{91032:(t,o,e)=>{e.r(o),e.d(o,{default:()=>w});var n=function(){var t=this,o=t._self._c;return o("div",[o("flux-map",{staticClass:"m-0 p-0",attrs:{nodes:t.fluxList}}),o("b-row",[o("b-col",{attrs:{md:"6",sm:"12",xs:"12"}},[o("b-card",[o("h4",[t._v("Geographic Locations ("+t._s(t.getLocationCount())+")")]),o("vue-apex-charts",{attrs:{type:"donut",height:"650",width:"100%",options:t.geographicData.chartOptions,series:t.geographicData.series}})],1)],1),o("b-col",{attrs:{md:"6",sm:"12",xs:"12"}},[o("b-card",[o("h4",[t._v("Providers ("+t._s(t.getProviderCount())+")")]),o("vue-apex-charts",{attrs:{type:"donut",height:"650",width:"100%",options:t.providerData.chartOptions,series:t.providerData.series}})],1)],1)],1)],1)},s=[],a=(e(70560),e(86855)),i=e(26253),r=e(50725),u=e(67166),h=e.n(u),c=e(51136),l=e(57071);const g=e(97218),d={components:{BCard:a._,BRow:i.T,BCol:r.l,VueApexCharts:h(),FluxMap:l.Z},data(){return{fluxList:[],fluxNodeCount:0,self:this,providerData:{series:[],chartOptions:{chart:{toolbar:{show:!1}},dataLabels:{enabled:!0},legend:{show:!0,height:100},stroke:{width:0},plotOptions:{pie:{donut:{size:"40%"}}}}},geographicData:{series:[],chartOptions:{chart:{toolbar:{show:!1}},dataLabels:{enabled:!0},legend:{show:!0,height:100},stroke:{width:0},plotOptions:{pie:{donut:{size:"40%"}}}}}}},mounted(){this.getFluxList()},methods:{async getFluxList(){try{const t=await g.get("https://stats.runonflux.io/fluxinfo?projection=geolocation,ip,tier");this.fluxList=t.data.data;const o=await c.Z.fluxnodeCount();this.fluxNodeCount=o.data.data.total,await this.generateGeographicPie(),await this.generateProviderPie()}catch(t){console.log(t)}},async generateGeographicPie(){const t=[],o=[],e=[];this.fluxList.forEach((t=>{if(t.geolocation&&t.geolocation.country){const o=e.find((o=>o.country===t.geolocation.country));if(o)o.amount+=1;else{const o={country:t.geolocation.country||"Unknown",amount:1};e.push(o)}}else{const t=e.find((t=>"Unknown"===t.country));if(t)t.amount+=1;else{const t={country:"Unknown",amount:1};e.push(t)}}}));for(let n=0;n"Unknown"===t.country));if(t)t.amount+=1;else{const t={country:"Unknown",amount:1};e.push(t)}}e.sort(((t,o)=>o.amount-t.amount)),this.geographicData.series=[],e.forEach((e=>{t.push(`${e.country} (${e.amount})`),o.push(e.amount)})),this.geographicData.chartOptions={labels:t,legend:{show:!0,position:"bottom",height:100}},this.geographicData.series=o},getLocationCount(){return this.geographicData.series&&this.geographicData.series.length>1?this.geographicData.series.length:0},async generateProviderPie(){const t=[],o=[],e=[];this.fluxList.forEach((t=>{if(t.geolocation&&t.geolocation.org){const o=e.find((o=>o.org===t.geolocation.org));if(o)o.amount+=1;else if(t.geolocation.org){const o={org:t.geolocation.org,amount:1};e.push(o)}else{const t=e.find((t=>"Unknown"===t.org));if(t)t.amount+=1;else{const t={org:"Unknown",amount:1};e.push(t)}}}else{const t=e.find((t=>"Unknown"===t.org));if(t)t.amount+=1;else{const t={org:"Unknown",amount:1};e.push(t)}}}));for(let n=0;n"Unknown"===t.org));if(t)t.amount+=1;else{const t={org:"Unknown",amount:1};e.push(t)}}e.sort(((t,o)=>o.amount-t.amount)),this.providerData.series=[],e.forEach((e=>{t.push(`${e.org} (${e.amount})`),o.push(e.amount)})),this.providerData.chartOptions={labels:t,legend:{show:!0,position:"bottom",height:100}},this.providerData.series=o},getProviderCount(){return this.providerData.series&&this.providerData.series.length>1?this.providerData.series.length:0},beautifyValue(t,o=2){const e=t.toFixed(o);return e.replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1,")}}},p=d;var f=e(1001),m=(0,f.Z)(p,n,s,!1,null,null,null);const w=m.exports},51136:(t,o,e)=>{e.d(o,{Z:()=>s});var n=e(80914);const s={listFluxNodes(){return(0,n.Z)().get("/daemon/listzelnodes")},fluxnodeCount(){return(0,n.Z)().get("/daemon/getzelnodecount")},blockReward(){return(0,n.Z)().get("/daemon/getblocksubsidy")}}}}]); \ No newline at end of file diff --git a/HomeUI/dist/js/1115.js b/HomeUI/dist/js/1115.js index 901eb8140..85d48aa17 100644 --- a/HomeUI/dist/js/1115.js +++ b/HomeUI/dist/js/1115.js @@ -1 +1 @@ -"use strict";(globalThis["webpackChunkflux"]=globalThis["webpackChunkflux"]||[]).push([[1115],{34547:(t,e,a)=>{a.d(e,{Z:()=>u});var n=function(){var t=this,e=t._self._c;return e("div",{staticClass:"toastification"},[e("div",{staticClass:"d-flex align-items-start"},[e("b-avatar",{staticClass:"mr-75 flex-shrink-0",attrs:{variant:t.variant,size:"1.8rem"}},[e("feather-icon",{attrs:{icon:t.icon,size:"15"}})],1),e("div",{staticClass:"d-flex flex-grow-1"},[e("div",[t.title?e("h5",{staticClass:"mb-0 font-weight-bolder toastification-title",class:`text-${t.variant}`,domProps:{textContent:t._s(t.title)}}):t._e(),t.text?e("small",{staticClass:"d-inline-block text-body",domProps:{textContent:t._s(t.text)}}):t._e()]),e("span",{staticClass:"cursor-pointer toastification-close-icon ml-auto",on:{click:function(e){return t.$emit("close-toast")}}},[t.hideClose?t._e():e("feather-icon",{staticClass:"text-body",attrs:{icon:"XIcon"}})],1)])],1)])},r=[],o=a(47389);const s={components:{BAvatar:o.SH},props:{variant:{type:String,default:"primary"},icon:{type:String,default:null},title:{type:String,default:null},text:{type:String,default:null},hideClose:{type:Boolean,default:!1}}},i=s;var l=a(1001),d=(0,l.Z)(i,n,r,!1,null,"22d964ca",null);const u=d.exports},61115:(t,e,a)=>{a.r(e),a.d(e,{default:()=>m});var n=function(){var t=this,e=t._self._c;return e("b-card",[t.callResponse.data?e("b-form-textarea",{attrs:{plaintext:"","no-resize":"",rows:"30",value:t.callResponse.data}}):t._e()],1)},r=[],o=a(86855),s=a(333),i=a(34547),l=a(27616);const d={components:{BCard:o._,BFormTextarea:s.y,ToastificationContent:i.Z},data(){return{callResponse:{status:"",data:""}}},mounted(){this.daemonGetBlockchainInfo()},methods:{async daemonGetBlockchainInfo(){const t=await l.Z.getBlockchainInfo();"error"===t.data.status?this.$toast({component:i.Z,props:{title:t.data.data.message||t.data.data,icon:"InfoIcon",variant:"danger"}}):(this.callResponse.status=t.data.status,this.callResponse.data=JSON.stringify(t.data.data,null,4))}}},u=d;var c=a(1001),g=(0,c.Z)(u,n,r,!1,null,null,null);const m=g.exports},27616:(t,e,a)=>{a.d(e,{Z:()=>r});var n=a(80914);const r={help(){return(0,n.Z)().get("/daemon/help")},helpSpecific(t){return(0,n.Z)().get(`/daemon/help/${t}`)},getInfo(){return(0,n.Z)().get("/daemon/getinfo")},getFluxNodeStatus(){return(0,n.Z)().get("/daemon/getzelnodestatus")},getRawTransaction(t,e){return(0,n.Z)().get(`/daemon/getrawtransaction/${t}/${e}`)},listFluxNodes(){return(0,n.Z)().get("/daemon/listzelnodes")},viewDeterministicFluxNodeList(){return(0,n.Z)().get("/daemon/viewdeterministiczelnodelist")},getFluxNodeCount(){return(0,n.Z)().get("/daemon/getzelnodecount")},getStartList(){return(0,n.Z)().get("/daemon/getstartlist")},getDOSList(){return(0,n.Z)().get("/daemon/getdoslist")},fluxCurrentWinner(){return(0,n.Z)().get("/daemon/fluxcurrentwinner")},getBenchmarks(){return(0,n.Z)().get("/daemon/getbenchmarks")},getBenchStatus(){return(0,n.Z)().get("/daemon/getbenchstatus")},startBenchmark(t){return(0,n.Z)().get("/daemon/startbenchmark",{headers:{zelidauth:t}})},stopBenchmark(t){return(0,n.Z)().get("/daemon/stopbenchmark",{headers:{zelidauth:t}})},getBlockCount(){return(0,n.Z)().get("/daemon/getBlockCount")},getBlockchainInfo(){return(0,n.Z)().get("/daemon/getblockchaininfo")},getMiningInfo(){return(0,n.Z)().get("/daemon/getmininginfo")},getNetworkInfo(){return(0,n.Z)().get("/daemon/getnetworkinfo")},validateAddress(t,e){return(0,n.Z)().get(`/daemon/validateaddress/${e}`,{headers:{zelidauth:t}})},getWalletInfo(t){return(0,n.Z)().get("/daemon/getwalletinfo",{headers:{zelidauth:t}})},listFluxNodeConf(t){return(0,n.Z)().get("/daemon/listzelnodeconf",{headers:{zelidauth:t}})},start(t){return(0,n.Z)().get("/daemon/start",{headers:{zelidauth:t}})},restart(t){return(0,n.Z)().get("/daemon/restart",{headers:{zelidauth:t}})},stopDaemon(t){return(0,n.Z)().get("/daemon/stop",{headers:{zelidauth:t}})},rescanDaemon(t,e){return(0,n.Z)().get(`/daemon/rescanblockchain/${e}`,{headers:{zelidauth:t}})},getBlock(t,e){return(0,n.Z)().get(`/daemon/getblock/${t}/${e}`)},tailDaemonDebug(t){return(0,n.Z)().get("/flux/taildaemondebug",{headers:{zelidauth:t}})},justAPI(){return(0,n.Z)()},cancelToken(){return n.S}}}}]); \ No newline at end of file +"use strict";(self["webpackChunkflux"]=self["webpackChunkflux"]||[]).push([[1115],{34547:(t,e,a)=>{a.d(e,{Z:()=>u});var n=function(){var t=this,e=t._self._c;return e("div",{staticClass:"toastification"},[e("div",{staticClass:"d-flex align-items-start"},[e("b-avatar",{staticClass:"mr-75 flex-shrink-0",attrs:{variant:t.variant,size:"1.8rem"}},[e("feather-icon",{attrs:{icon:t.icon,size:"15"}})],1),e("div",{staticClass:"d-flex flex-grow-1"},[e("div",[t.title?e("h5",{staticClass:"mb-0 font-weight-bolder toastification-title",class:`text-${t.variant}`,domProps:{textContent:t._s(t.title)}}):t._e(),t.text?e("small",{staticClass:"d-inline-block text-body",domProps:{textContent:t._s(t.text)}}):t._e()]),e("span",{staticClass:"cursor-pointer toastification-close-icon ml-auto",on:{click:function(e){return t.$emit("close-toast")}}},[t.hideClose?t._e():e("feather-icon",{staticClass:"text-body",attrs:{icon:"XIcon"}})],1)])],1)])},r=[],o=a(47389);const s={components:{BAvatar:o.SH},props:{variant:{type:String,default:"primary"},icon:{type:String,default:null},title:{type:String,default:null},text:{type:String,default:null},hideClose:{type:Boolean,default:!1}}},i=s;var l=a(1001),d=(0,l.Z)(i,n,r,!1,null,"22d964ca",null);const u=d.exports},61115:(t,e,a)=>{a.r(e),a.d(e,{default:()=>m});var n=function(){var t=this,e=t._self._c;return e("b-card",[t.callResponse.data?e("b-form-textarea",{attrs:{plaintext:"","no-resize":"",rows:"30",value:t.callResponse.data}}):t._e()],1)},r=[],o=a(86855),s=a(333),i=a(34547),l=a(27616);const d={components:{BCard:o._,BFormTextarea:s.y,ToastificationContent:i.Z},data(){return{callResponse:{status:"",data:""}}},mounted(){this.daemonGetBlockchainInfo()},methods:{async daemonGetBlockchainInfo(){const t=await l.Z.getBlockchainInfo();"error"===t.data.status?this.$toast({component:i.Z,props:{title:t.data.data.message||t.data.data,icon:"InfoIcon",variant:"danger"}}):(this.callResponse.status=t.data.status,this.callResponse.data=JSON.stringify(t.data.data,null,4))}}},u=d;var c=a(1001),g=(0,c.Z)(u,n,r,!1,null,null,null);const m=g.exports},27616:(t,e,a)=>{a.d(e,{Z:()=>r});var n=a(80914);const r={help(){return(0,n.Z)().get("/daemon/help")},helpSpecific(t){return(0,n.Z)().get(`/daemon/help/${t}`)},getInfo(){return(0,n.Z)().get("/daemon/getinfo")},getFluxNodeStatus(){return(0,n.Z)().get("/daemon/getzelnodestatus")},getRawTransaction(t,e){return(0,n.Z)().get(`/daemon/getrawtransaction/${t}/${e}`)},listFluxNodes(){return(0,n.Z)().get("/daemon/listzelnodes")},viewDeterministicFluxNodeList(){return(0,n.Z)().get("/daemon/viewdeterministiczelnodelist")},getFluxNodeCount(){return(0,n.Z)().get("/daemon/getzelnodecount")},getStartList(){return(0,n.Z)().get("/daemon/getstartlist")},getDOSList(){return(0,n.Z)().get("/daemon/getdoslist")},fluxCurrentWinner(){return(0,n.Z)().get("/daemon/fluxcurrentwinner")},getBenchmarks(){return(0,n.Z)().get("/daemon/getbenchmarks")},getBenchStatus(){return(0,n.Z)().get("/daemon/getbenchstatus")},startBenchmark(t){return(0,n.Z)().get("/daemon/startbenchmark",{headers:{zelidauth:t}})},stopBenchmark(t){return(0,n.Z)().get("/daemon/stopbenchmark",{headers:{zelidauth:t}})},getBlockCount(){return(0,n.Z)().get("/daemon/getBlockCount")},getBlockchainInfo(){return(0,n.Z)().get("/daemon/getblockchaininfo")},getMiningInfo(){return(0,n.Z)().get("/daemon/getmininginfo")},getNetworkInfo(){return(0,n.Z)().get("/daemon/getnetworkinfo")},validateAddress(t,e){return(0,n.Z)().get(`/daemon/validateaddress/${e}`,{headers:{zelidauth:t}})},getWalletInfo(t){return(0,n.Z)().get("/daemon/getwalletinfo",{headers:{zelidauth:t}})},listFluxNodeConf(t){return(0,n.Z)().get("/daemon/listzelnodeconf",{headers:{zelidauth:t}})},start(t){return(0,n.Z)().get("/daemon/start",{headers:{zelidauth:t}})},restart(t){return(0,n.Z)().get("/daemon/restart",{headers:{zelidauth:t}})},stopDaemon(t){return(0,n.Z)().get("/daemon/stop",{headers:{zelidauth:t}})},rescanDaemon(t,e){return(0,n.Z)().get(`/daemon/rescanblockchain/${e}`,{headers:{zelidauth:t}})},getBlock(t,e){return(0,n.Z)().get(`/daemon/getblock/${t}/${e}`)},tailDaemonDebug(t){return(0,n.Z)().get("/flux/taildaemondebug",{headers:{zelidauth:t}})},justAPI(){return(0,n.Z)()},cancelToken(){return n.S}}}}]); \ No newline at end of file diff --git a/HomeUI/dist/js/1145.js b/HomeUI/dist/js/1145.js index e9f78013c..50d2dd41f 100644 --- a/HomeUI/dist/js/1145.js +++ b/HomeUI/dist/js/1145.js @@ -1 +1 @@ -"use strict";(globalThis["webpackChunkflux"]=globalThis["webpackChunkflux"]||[]).push([[1145],{34547:(t,e,a)=>{a.d(e,{Z:()=>c});var s=function(){var t=this,e=t._self._c;return e("div",{staticClass:"toastification"},[e("div",{staticClass:"d-flex align-items-start"},[e("b-avatar",{staticClass:"mr-75 flex-shrink-0",attrs:{variant:t.variant,size:"1.8rem"}},[e("feather-icon",{attrs:{icon:t.icon,size:"15"}})],1),e("div",{staticClass:"d-flex flex-grow-1"},[e("div",[t.title?e("h5",{staticClass:"mb-0 font-weight-bolder toastification-title",class:`text-${t.variant}`,domProps:{textContent:t._s(t.title)}}):t._e(),t.text?e("small",{staticClass:"d-inline-block text-body",domProps:{textContent:t._s(t.text)}}):t._e()]),e("span",{staticClass:"cursor-pointer toastification-close-icon ml-auto",on:{click:function(e){return t.$emit("close-toast")}}},[t.hideClose?t._e():e("feather-icon",{staticClass:"text-body",attrs:{icon:"XIcon"}})],1)])],1)])},n=[],r=a(47389);const l={components:{BAvatar:r.SH},props:{variant:{type:String,default:"primary"},icon:{type:String,default:null},title:{type:String,default:null},text:{type:String,default:null},hideClose:{type:Boolean,default:!1}}},i=l;var o=a(1001),d=(0,o.Z)(i,s,n,!1,null,"22d964ca",null);const c=d.exports},51748:(t,e,a)=>{a.d(e,{Z:()=>c});var s=function(){var t=this,e=t._self._c;return e("dl",{staticClass:"row",class:t.classes},[e("dt",{staticClass:"col-sm-3"},[t._v(" "+t._s(t.title)+" ")]),t.href.length>0?e("dd",{staticClass:"col-sm-9 mb-0",class:`text-${t.variant}`},[t.href.length>0?e("b-link",{attrs:{href:t.href,target:"_blank",rel:"noopener noreferrer"}},[t._v(" "+t._s(t.data.length>0?t.data:t.number!==Number.MAX_VALUE?t.number:"")+" ")]):t._e()],1):t.click?e("dd",{staticClass:"col-sm-9 mb-0",class:`text-${t.variant}`,on:{click:function(e){return t.$emit("click")}}},[e("b-link",[t._v(" "+t._s(t.data.length>0?t.data:t.number!==Number.MAX_VALUE?t.number:"")+" ")])],1):e("dd",{staticClass:"col-sm-9 mb-0",class:`text-${t.variant}`},[t._v(" "+t._s(t.data.length>0?t.data:t.number!==Number.MAX_VALUE?t.number:"")+" ")])])},n=[],r=a(67347);const l={components:{BLink:r.we},props:{title:{type:String,required:!0},classes:{type:String,required:!1,default:"mb-1"},data:{type:String,required:!1,default:""},number:{type:Number,required:!1,default:Number.MAX_VALUE},variant:{type:String,required:!1,default:"secondary"},href:{type:String,required:!1,default:""},click:{type:Boolean,required:!1,default:!1}}},i=l;var o=a(1001),d=(0,o.Z)(i,s,n,!1,null,null,null);const c=d.exports},81145:(t,e,a)=>{a.r(e),a.d(e,{default:()=>h});var s=function(){var t=this,e=t._self._c;return""!==t.callResponse.data?e("b-card",{attrs:{title:"Get FluxNode Status"}},[e("list-entry",{attrs:{title:"Status",data:t.callResponse.data.status}}),e("list-entry",{attrs:{title:"Collateral",data:t.callResponse.data.collateral}}),t.callResponse.data.txhash?e("list-entry",{attrs:{title:"TX Hash",data:t.callResponse.data.txhash}}):t._e(),t.callResponse.data.outidx?e("list-entry",{attrs:{title:"Output ID",data:t.callResponse.data.outidx}}):t._e(),t.callResponse.data.ip?e("list-entry",{attrs:{title:"IP Address",data:t.callResponse.data.ip}}):t._e(),t.callResponse.data.network?e("list-entry",{attrs:{title:"Network",data:t.callResponse.data.network}}):t._e(),t.callResponse.data.added_height?e("list-entry",{attrs:{title:"Added Height",number:t.callResponse.data.added_height}}):t._e(),t.callResponse.data.confirmed_height?e("list-entry",{attrs:{title:"Confirmed Height",number:t.callResponse.data.confirmed_height}}):t._e(),t.callResponse.data.last_confirmed_height?e("list-entry",{attrs:{title:"Last Confirmed Height",number:t.callResponse.data.last_confirmed_height}}):t._e(),t.callResponse.data.last_paid_height?e("list-entry",{attrs:{title:"Last Paid Height",number:t.callResponse.data.last_paid_height}}):t._e(),t.callResponse.data.tier?e("list-entry",{attrs:{title:"Tier",data:t.callResponse.data.tier}}):t._e(),t.callResponse.data.payment_address?e("list-entry",{attrs:{title:"Payment Address",data:t.callResponse.data.payment_address}}):t._e(),t.callResponse.data.pubkey?e("list-entry",{attrs:{title:"Public Key",data:t.callResponse.data.pubkey}}):t._e(),t.callResponse.data.activesince?e("list-entry",{attrs:{title:"Active Since",data:new Date(1e3*t.callResponse.data.activesince).toLocaleString("en-GB",t.timeoptions.shortDate)}}):t._e(),t.callResponse.data.lastpaid?e("list-entry",{attrs:{title:"Last Paid",data:new Date(1e3*t.callResponse.data.lastpaid).toLocaleString("en-GB",t.timeoptions.shortDate)}}):t._e()],1):t._e()},n=[],r=a(86855),l=a(34547),i=a(27616),o=a(51748);const d=a(63005),c={components:{ListEntry:o.Z,BCard:r._,ToastificationContent:l.Z},data(){return{timeoptions:d,callResponse:{status:"",data:""}}},mounted(){this.daemonGetNodeStatus()},methods:{async daemonGetNodeStatus(){const t=await i.Z.getFluxNodeStatus();"error"===t.data.status?this.$toast({component:l.Z,props:{title:t.data.data.message||t.data.data,icon:"InfoIcon",variant:"danger"}}):(this.callResponse.status=t.data.status,this.callResponse.data=t.data.data,console.log(t.data))}}},u=c;var m=a(1001),g=(0,m.Z)(u,s,n,!1,null,null,null);const h=g.exports},63005:(t,e,a)=>{a.r(e),a.d(e,{default:()=>r});const s={year:"numeric",month:"short",day:"numeric",hour:"2-digit",minute:"2-digit"},n={year:"numeric",month:"short",day:"numeric"},r={shortDate:s,date:n}},27616:(t,e,a)=>{a.d(e,{Z:()=>n});var s=a(80914);const n={help(){return(0,s.Z)().get("/daemon/help")},helpSpecific(t){return(0,s.Z)().get(`/daemon/help/${t}`)},getInfo(){return(0,s.Z)().get("/daemon/getinfo")},getFluxNodeStatus(){return(0,s.Z)().get("/daemon/getzelnodestatus")},getRawTransaction(t,e){return(0,s.Z)().get(`/daemon/getrawtransaction/${t}/${e}`)},listFluxNodes(){return(0,s.Z)().get("/daemon/listzelnodes")},viewDeterministicFluxNodeList(){return(0,s.Z)().get("/daemon/viewdeterministiczelnodelist")},getFluxNodeCount(){return(0,s.Z)().get("/daemon/getzelnodecount")},getStartList(){return(0,s.Z)().get("/daemon/getstartlist")},getDOSList(){return(0,s.Z)().get("/daemon/getdoslist")},fluxCurrentWinner(){return(0,s.Z)().get("/daemon/fluxcurrentwinner")},getBenchmarks(){return(0,s.Z)().get("/daemon/getbenchmarks")},getBenchStatus(){return(0,s.Z)().get("/daemon/getbenchstatus")},startBenchmark(t){return(0,s.Z)().get("/daemon/startbenchmark",{headers:{zelidauth:t}})},stopBenchmark(t){return(0,s.Z)().get("/daemon/stopbenchmark",{headers:{zelidauth:t}})},getBlockCount(){return(0,s.Z)().get("/daemon/getBlockCount")},getBlockchainInfo(){return(0,s.Z)().get("/daemon/getblockchaininfo")},getMiningInfo(){return(0,s.Z)().get("/daemon/getmininginfo")},getNetworkInfo(){return(0,s.Z)().get("/daemon/getnetworkinfo")},validateAddress(t,e){return(0,s.Z)().get(`/daemon/validateaddress/${e}`,{headers:{zelidauth:t}})},getWalletInfo(t){return(0,s.Z)().get("/daemon/getwalletinfo",{headers:{zelidauth:t}})},listFluxNodeConf(t){return(0,s.Z)().get("/daemon/listzelnodeconf",{headers:{zelidauth:t}})},start(t){return(0,s.Z)().get("/daemon/start",{headers:{zelidauth:t}})},restart(t){return(0,s.Z)().get("/daemon/restart",{headers:{zelidauth:t}})},stopDaemon(t){return(0,s.Z)().get("/daemon/stop",{headers:{zelidauth:t}})},rescanDaemon(t,e){return(0,s.Z)().get(`/daemon/rescanblockchain/${e}`,{headers:{zelidauth:t}})},getBlock(t,e){return(0,s.Z)().get(`/daemon/getblock/${t}/${e}`)},tailDaemonDebug(t){return(0,s.Z)().get("/flux/taildaemondebug",{headers:{zelidauth:t}})},justAPI(){return(0,s.Z)()},cancelToken(){return s.S}}}}]); \ No newline at end of file +"use strict";(self["webpackChunkflux"]=self["webpackChunkflux"]||[]).push([[1145],{34547:(t,e,a)=>{a.d(e,{Z:()=>c});var s=function(){var t=this,e=t._self._c;return e("div",{staticClass:"toastification"},[e("div",{staticClass:"d-flex align-items-start"},[e("b-avatar",{staticClass:"mr-75 flex-shrink-0",attrs:{variant:t.variant,size:"1.8rem"}},[e("feather-icon",{attrs:{icon:t.icon,size:"15"}})],1),e("div",{staticClass:"d-flex flex-grow-1"},[e("div",[t.title?e("h5",{staticClass:"mb-0 font-weight-bolder toastification-title",class:`text-${t.variant}`,domProps:{textContent:t._s(t.title)}}):t._e(),t.text?e("small",{staticClass:"d-inline-block text-body",domProps:{textContent:t._s(t.text)}}):t._e()]),e("span",{staticClass:"cursor-pointer toastification-close-icon ml-auto",on:{click:function(e){return t.$emit("close-toast")}}},[t.hideClose?t._e():e("feather-icon",{staticClass:"text-body",attrs:{icon:"XIcon"}})],1)])],1)])},n=[],r=a(47389);const l={components:{BAvatar:r.SH},props:{variant:{type:String,default:"primary"},icon:{type:String,default:null},title:{type:String,default:null},text:{type:String,default:null},hideClose:{type:Boolean,default:!1}}},i=l;var o=a(1001),d=(0,o.Z)(i,s,n,!1,null,"22d964ca",null);const c=d.exports},51748:(t,e,a)=>{a.d(e,{Z:()=>c});var s=function(){var t=this,e=t._self._c;return e("dl",{staticClass:"row",class:t.classes},[e("dt",{staticClass:"col-sm-3"},[t._v(" "+t._s(t.title)+" ")]),t.href.length>0?e("dd",{staticClass:"col-sm-9 mb-0",class:`text-${t.variant}`},[t.href.length>0?e("b-link",{attrs:{href:t.href,target:"_blank",rel:"noopener noreferrer"}},[t._v(" "+t._s(t.data.length>0?t.data:t.number!==Number.MAX_VALUE?t.number:"")+" ")]):t._e()],1):t.click?e("dd",{staticClass:"col-sm-9 mb-0",class:`text-${t.variant}`,on:{click:function(e){return t.$emit("click")}}},[e("b-link",[t._v(" "+t._s(t.data.length>0?t.data:t.number!==Number.MAX_VALUE?t.number:"")+" ")])],1):e("dd",{staticClass:"col-sm-9 mb-0",class:`text-${t.variant}`},[t._v(" "+t._s(t.data.length>0?t.data:t.number!==Number.MAX_VALUE?t.number:"")+" ")])])},n=[],r=a(67347);const l={components:{BLink:r.we},props:{title:{type:String,required:!0},classes:{type:String,required:!1,default:"mb-1"},data:{type:String,required:!1,default:""},number:{type:Number,required:!1,default:Number.MAX_VALUE},variant:{type:String,required:!1,default:"secondary"},href:{type:String,required:!1,default:""},click:{type:Boolean,required:!1,default:!1}}},i=l;var o=a(1001),d=(0,o.Z)(i,s,n,!1,null,null,null);const c=d.exports},81145:(t,e,a)=>{a.r(e),a.d(e,{default:()=>h});var s=function(){var t=this,e=t._self._c;return""!==t.callResponse.data?e("b-card",{attrs:{title:"Get FluxNode Status"}},[e("list-entry",{attrs:{title:"Status",data:t.callResponse.data.status}}),e("list-entry",{attrs:{title:"Collateral",data:t.callResponse.data.collateral}}),t.callResponse.data.txhash?e("list-entry",{attrs:{title:"TX Hash",data:t.callResponse.data.txhash}}):t._e(),t.callResponse.data.outidx?e("list-entry",{attrs:{title:"Output ID",data:t.callResponse.data.outidx}}):t._e(),t.callResponse.data.ip?e("list-entry",{attrs:{title:"IP Address",data:t.callResponse.data.ip}}):t._e(),t.callResponse.data.network?e("list-entry",{attrs:{title:"Network",data:t.callResponse.data.network}}):t._e(),t.callResponse.data.added_height?e("list-entry",{attrs:{title:"Added Height",number:t.callResponse.data.added_height}}):t._e(),t.callResponse.data.confirmed_height?e("list-entry",{attrs:{title:"Confirmed Height",number:t.callResponse.data.confirmed_height}}):t._e(),t.callResponse.data.last_confirmed_height?e("list-entry",{attrs:{title:"Last Confirmed Height",number:t.callResponse.data.last_confirmed_height}}):t._e(),t.callResponse.data.last_paid_height?e("list-entry",{attrs:{title:"Last Paid Height",number:t.callResponse.data.last_paid_height}}):t._e(),t.callResponse.data.tier?e("list-entry",{attrs:{title:"Tier",data:t.callResponse.data.tier}}):t._e(),t.callResponse.data.payment_address?e("list-entry",{attrs:{title:"Payment Address",data:t.callResponse.data.payment_address}}):t._e(),t.callResponse.data.pubkey?e("list-entry",{attrs:{title:"Public Key",data:t.callResponse.data.pubkey}}):t._e(),t.callResponse.data.activesince?e("list-entry",{attrs:{title:"Active Since",data:new Date(1e3*t.callResponse.data.activesince).toLocaleString("en-GB",t.timeoptions.shortDate)}}):t._e(),t.callResponse.data.lastpaid?e("list-entry",{attrs:{title:"Last Paid",data:new Date(1e3*t.callResponse.data.lastpaid).toLocaleString("en-GB",t.timeoptions.shortDate)}}):t._e()],1):t._e()},n=[],r=a(86855),l=a(34547),i=a(27616),o=a(51748);const d=a(63005),c={components:{ListEntry:o.Z,BCard:r._,ToastificationContent:l.Z},data(){return{timeoptions:d,callResponse:{status:"",data:""}}},mounted(){this.daemonGetNodeStatus()},methods:{async daemonGetNodeStatus(){const t=await i.Z.getFluxNodeStatus();"error"===t.data.status?this.$toast({component:l.Z,props:{title:t.data.data.message||t.data.data,icon:"InfoIcon",variant:"danger"}}):(this.callResponse.status=t.data.status,this.callResponse.data=t.data.data,console.log(t.data))}}},u=c;var m=a(1001),g=(0,m.Z)(u,s,n,!1,null,null,null);const h=g.exports},63005:(t,e,a)=>{a.r(e),a.d(e,{default:()=>r});const s={year:"numeric",month:"short",day:"numeric",hour:"2-digit",minute:"2-digit"},n={year:"numeric",month:"short",day:"numeric"},r={shortDate:s,date:n}},27616:(t,e,a)=>{a.d(e,{Z:()=>n});var s=a(80914);const n={help(){return(0,s.Z)().get("/daemon/help")},helpSpecific(t){return(0,s.Z)().get(`/daemon/help/${t}`)},getInfo(){return(0,s.Z)().get("/daemon/getinfo")},getFluxNodeStatus(){return(0,s.Z)().get("/daemon/getzelnodestatus")},getRawTransaction(t,e){return(0,s.Z)().get(`/daemon/getrawtransaction/${t}/${e}`)},listFluxNodes(){return(0,s.Z)().get("/daemon/listzelnodes")},viewDeterministicFluxNodeList(){return(0,s.Z)().get("/daemon/viewdeterministiczelnodelist")},getFluxNodeCount(){return(0,s.Z)().get("/daemon/getzelnodecount")},getStartList(){return(0,s.Z)().get("/daemon/getstartlist")},getDOSList(){return(0,s.Z)().get("/daemon/getdoslist")},fluxCurrentWinner(){return(0,s.Z)().get("/daemon/fluxcurrentwinner")},getBenchmarks(){return(0,s.Z)().get("/daemon/getbenchmarks")},getBenchStatus(){return(0,s.Z)().get("/daemon/getbenchstatus")},startBenchmark(t){return(0,s.Z)().get("/daemon/startbenchmark",{headers:{zelidauth:t}})},stopBenchmark(t){return(0,s.Z)().get("/daemon/stopbenchmark",{headers:{zelidauth:t}})},getBlockCount(){return(0,s.Z)().get("/daemon/getBlockCount")},getBlockchainInfo(){return(0,s.Z)().get("/daemon/getblockchaininfo")},getMiningInfo(){return(0,s.Z)().get("/daemon/getmininginfo")},getNetworkInfo(){return(0,s.Z)().get("/daemon/getnetworkinfo")},validateAddress(t,e){return(0,s.Z)().get(`/daemon/validateaddress/${e}`,{headers:{zelidauth:t}})},getWalletInfo(t){return(0,s.Z)().get("/daemon/getwalletinfo",{headers:{zelidauth:t}})},listFluxNodeConf(t){return(0,s.Z)().get("/daemon/listzelnodeconf",{headers:{zelidauth:t}})},start(t){return(0,s.Z)().get("/daemon/start",{headers:{zelidauth:t}})},restart(t){return(0,s.Z)().get("/daemon/restart",{headers:{zelidauth:t}})},stopDaemon(t){return(0,s.Z)().get("/daemon/stop",{headers:{zelidauth:t}})},rescanDaemon(t,e){return(0,s.Z)().get(`/daemon/rescanblockchain/${e}`,{headers:{zelidauth:t}})},getBlock(t,e){return(0,s.Z)().get(`/daemon/getblock/${t}/${e}`)},tailDaemonDebug(t){return(0,s.Z)().get("/flux/taildaemondebug",{headers:{zelidauth:t}})},justAPI(){return(0,s.Z)()},cancelToken(){return s.S}}}}]); \ No newline at end of file diff --git a/HomeUI/dist/js/1313.js b/HomeUI/dist/js/1313.js index ec48121c2..bcfe3bf1a 100644 --- a/HomeUI/dist/js/1313.js +++ b/HomeUI/dist/js/1313.js @@ -1 +1 @@ -"use strict";(globalThis["webpackChunkflux"]=globalThis["webpackChunkflux"]||[]).push([[1313],{34547:(e,t,a)=>{a.d(t,{Z:()=>c});var n=function(){var e=this,t=e._self._c;return t("div",{staticClass:"toastification"},[t("div",{staticClass:"d-flex align-items-start"},[t("b-avatar",{staticClass:"mr-75 flex-shrink-0",attrs:{variant:e.variant,size:"1.8rem"}},[t("feather-icon",{attrs:{icon:e.icon,size:"15"}})],1),t("div",{staticClass:"d-flex flex-grow-1"},[t("div",[e.title?t("h5",{staticClass:"mb-0 font-weight-bolder toastification-title",class:`text-${e.variant}`,domProps:{textContent:e._s(e.title)}}):e._e(),e.text?t("small",{staticClass:"d-inline-block text-body",domProps:{textContent:e._s(e.text)}}):e._e()]),t("span",{staticClass:"cursor-pointer toastification-close-icon ml-auto",on:{click:function(t){return e.$emit("close-toast")}}},[e.hideClose?e._e():t("feather-icon",{staticClass:"text-body",attrs:{icon:"XIcon"}})],1)])],1)])},o=[],r=a(47389);const i={components:{BAvatar:r.SH},props:{variant:{type:String,default:"primary"},icon:{type:String,default:null},title:{type:String,default:null},text:{type:String,default:null},hideClose:{type:Boolean,default:!1}}},s=i;var l=a(1001),d=(0,l.Z)(s,n,o,!1,null,"22d964ca",null);const c=d.exports},91313:(e,t,a)=>{a.r(t),a.d(t,{default:()=>f});var n=function(){var e=this,t=e._self._c;return t("b-card",[t("div",[t("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"ml-1",attrs:{id:"stop-daemon",variant:"outline-primary",size:"md"}},[e._v(" Stop Daemon ")]),t("b-popover",{ref:"popover",attrs:{target:"stop-daemon",triggers:"click",show:e.popoverShow,placement:"auto",container:"my-container"},on:{"update:show":function(t){e.popoverShow=t}},scopedSlots:e._u([{key:"title",fn:function(){return[t("div",{staticClass:"d-flex justify-content-between align-items-center"},[t("span",[e._v("Are You Sure?")]),t("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"close",attrs:{variant:"transparent","aria-label":"Close"},on:{click:e.onClose}},[t("span",{staticClass:"d-inline-block text-white",attrs:{"aria-hidden":"true"}},[e._v("×")])])],1)]},proxy:!0}])},[t("div",[t("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"mr-1",attrs:{size:"sm",variant:"danger"},on:{click:e.onClose}},[e._v(" Cancel ")]),t("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],attrs:{size:"sm",variant:"primary"},on:{click:e.onOk}},[e._v(" Stop Daemon ")])],1)]),t("b-modal",{attrs:{id:"modal-center",centered:"",title:"Daemon Stop","ok-only":"","ok-title":"OK"},model:{value:e.modalShow,callback:function(t){e.modalShow=t},expression:"modalShow"}},[t("b-card-text",[e._v(" The daemon will now stop. ")])],1)],1)])},o=[],r=a(86855),i=a(15193),s=a(53862),l=a(31220),d=a(64206),c=a(34547),u=a(20266),m=a(27616);const p={components:{BCard:r._,BButton:i.T,BPopover:s.x,BModal:l.N,BCardText:d.j,ToastificationContent:c.Z},directives:{Ripple:u.Z},data(){return{popoverShow:!1,modalShow:!1}},methods:{onClose(){this.popoverShow=!1},onOk(){this.popoverShow=!1,this.modalShow=!0;const e=localStorage.getItem("zelidauth");m.Z.stopDaemon(e).then((e=>{this.$toast({component:c.Z,props:{title:e.data.data.message||e.data.data,icon:"InfoIcon",variant:"success"}})})).catch((()=>{this.$toast({component:c.Z,props:{title:"Error while trying to stop Daemon",icon:"InfoIcon",variant:"danger"}})}))}}},g=p;var h=a(1001),v=(0,h.Z)(g,n,o,!1,null,null,null);const f=v.exports},27616:(e,t,a)=>{a.d(t,{Z:()=>o});var n=a(80914);const o={help(){return(0,n.Z)().get("/daemon/help")},helpSpecific(e){return(0,n.Z)().get(`/daemon/help/${e}`)},getInfo(){return(0,n.Z)().get("/daemon/getinfo")},getFluxNodeStatus(){return(0,n.Z)().get("/daemon/getzelnodestatus")},getRawTransaction(e,t){return(0,n.Z)().get(`/daemon/getrawtransaction/${e}/${t}`)},listFluxNodes(){return(0,n.Z)().get("/daemon/listzelnodes")},viewDeterministicFluxNodeList(){return(0,n.Z)().get("/daemon/viewdeterministiczelnodelist")},getFluxNodeCount(){return(0,n.Z)().get("/daemon/getzelnodecount")},getStartList(){return(0,n.Z)().get("/daemon/getstartlist")},getDOSList(){return(0,n.Z)().get("/daemon/getdoslist")},fluxCurrentWinner(){return(0,n.Z)().get("/daemon/fluxcurrentwinner")},getBenchmarks(){return(0,n.Z)().get("/daemon/getbenchmarks")},getBenchStatus(){return(0,n.Z)().get("/daemon/getbenchstatus")},startBenchmark(e){return(0,n.Z)().get("/daemon/startbenchmark",{headers:{zelidauth:e}})},stopBenchmark(e){return(0,n.Z)().get("/daemon/stopbenchmark",{headers:{zelidauth:e}})},getBlockCount(){return(0,n.Z)().get("/daemon/getBlockCount")},getBlockchainInfo(){return(0,n.Z)().get("/daemon/getblockchaininfo")},getMiningInfo(){return(0,n.Z)().get("/daemon/getmininginfo")},getNetworkInfo(){return(0,n.Z)().get("/daemon/getnetworkinfo")},validateAddress(e,t){return(0,n.Z)().get(`/daemon/validateaddress/${t}`,{headers:{zelidauth:e}})},getWalletInfo(e){return(0,n.Z)().get("/daemon/getwalletinfo",{headers:{zelidauth:e}})},listFluxNodeConf(e){return(0,n.Z)().get("/daemon/listzelnodeconf",{headers:{zelidauth:e}})},start(e){return(0,n.Z)().get("/daemon/start",{headers:{zelidauth:e}})},restart(e){return(0,n.Z)().get("/daemon/restart",{headers:{zelidauth:e}})},stopDaemon(e){return(0,n.Z)().get("/daemon/stop",{headers:{zelidauth:e}})},rescanDaemon(e,t){return(0,n.Z)().get(`/daemon/rescanblockchain/${t}`,{headers:{zelidauth:e}})},getBlock(e,t){return(0,n.Z)().get(`/daemon/getblock/${e}/${t}`)},tailDaemonDebug(e){return(0,n.Z)().get("/flux/taildaemondebug",{headers:{zelidauth:e}})},justAPI(){return(0,n.Z)()},cancelToken(){return n.S}}}}]); \ No newline at end of file +"use strict";(self["webpackChunkflux"]=self["webpackChunkflux"]||[]).push([[1313],{34547:(e,t,a)=>{a.d(t,{Z:()=>c});var n=function(){var e=this,t=e._self._c;return t("div",{staticClass:"toastification"},[t("div",{staticClass:"d-flex align-items-start"},[t("b-avatar",{staticClass:"mr-75 flex-shrink-0",attrs:{variant:e.variant,size:"1.8rem"}},[t("feather-icon",{attrs:{icon:e.icon,size:"15"}})],1),t("div",{staticClass:"d-flex flex-grow-1"},[t("div",[e.title?t("h5",{staticClass:"mb-0 font-weight-bolder toastification-title",class:`text-${e.variant}`,domProps:{textContent:e._s(e.title)}}):e._e(),e.text?t("small",{staticClass:"d-inline-block text-body",domProps:{textContent:e._s(e.text)}}):e._e()]),t("span",{staticClass:"cursor-pointer toastification-close-icon ml-auto",on:{click:function(t){return e.$emit("close-toast")}}},[e.hideClose?e._e():t("feather-icon",{staticClass:"text-body",attrs:{icon:"XIcon"}})],1)])],1)])},o=[],r=a(47389);const s={components:{BAvatar:r.SH},props:{variant:{type:String,default:"primary"},icon:{type:String,default:null},title:{type:String,default:null},text:{type:String,default:null},hideClose:{type:Boolean,default:!1}}},i=s;var l=a(1001),d=(0,l.Z)(i,n,o,!1,null,"22d964ca",null);const c=d.exports},91313:(e,t,a)=>{a.r(t),a.d(t,{default:()=>f});var n=function(){var e=this,t=e._self._c;return t("b-card",[t("div",[t("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"ml-1",attrs:{id:"stop-daemon",variant:"outline-primary",size:"md"}},[e._v(" Stop Daemon ")]),t("b-popover",{ref:"popover",attrs:{target:"stop-daemon",triggers:"click",show:e.popoverShow,placement:"auto",container:"my-container"},on:{"update:show":function(t){e.popoverShow=t}},scopedSlots:e._u([{key:"title",fn:function(){return[t("div",{staticClass:"d-flex justify-content-between align-items-center"},[t("span",[e._v("Are You Sure?")]),t("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"close",attrs:{variant:"transparent","aria-label":"Close"},on:{click:e.onClose}},[t("span",{staticClass:"d-inline-block text-white",attrs:{"aria-hidden":"true"}},[e._v("×")])])],1)]},proxy:!0}])},[t("div",[t("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"mr-1",attrs:{size:"sm",variant:"danger"},on:{click:e.onClose}},[e._v(" Cancel ")]),t("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],attrs:{size:"sm",variant:"primary"},on:{click:e.onOk}},[e._v(" Stop Daemon ")])],1)]),t("b-modal",{attrs:{id:"modal-center",centered:"",title:"Daemon Stop","ok-only":"","ok-title":"OK"},model:{value:e.modalShow,callback:function(t){e.modalShow=t},expression:"modalShow"}},[t("b-card-text",[e._v(" The daemon will now stop. ")])],1)],1)])},o=[],r=a(86855),s=a(15193),i=a(53862),l=a(31220),d=a(64206),c=a(34547),u=a(20266),m=a(27616);const p={components:{BCard:r._,BButton:s.T,BPopover:i.x,BModal:l.N,BCardText:d.j,ToastificationContent:c.Z},directives:{Ripple:u.Z},data(){return{popoverShow:!1,modalShow:!1}},methods:{onClose(){this.popoverShow=!1},onOk(){this.popoverShow=!1,this.modalShow=!0;const e=localStorage.getItem("zelidauth");m.Z.stopDaemon(e).then((e=>{this.$toast({component:c.Z,props:{title:e.data.data.message||e.data.data,icon:"InfoIcon",variant:"success"}})})).catch((()=>{this.$toast({component:c.Z,props:{title:"Error while trying to stop Daemon",icon:"InfoIcon",variant:"danger"}})}))}}},g=p;var h=a(1001),v=(0,h.Z)(g,n,o,!1,null,null,null);const f=v.exports},27616:(e,t,a)=>{a.d(t,{Z:()=>o});var n=a(80914);const o={help(){return(0,n.Z)().get("/daemon/help")},helpSpecific(e){return(0,n.Z)().get(`/daemon/help/${e}`)},getInfo(){return(0,n.Z)().get("/daemon/getinfo")},getFluxNodeStatus(){return(0,n.Z)().get("/daemon/getzelnodestatus")},getRawTransaction(e,t){return(0,n.Z)().get(`/daemon/getrawtransaction/${e}/${t}`)},listFluxNodes(){return(0,n.Z)().get("/daemon/listzelnodes")},viewDeterministicFluxNodeList(){return(0,n.Z)().get("/daemon/viewdeterministiczelnodelist")},getFluxNodeCount(){return(0,n.Z)().get("/daemon/getzelnodecount")},getStartList(){return(0,n.Z)().get("/daemon/getstartlist")},getDOSList(){return(0,n.Z)().get("/daemon/getdoslist")},fluxCurrentWinner(){return(0,n.Z)().get("/daemon/fluxcurrentwinner")},getBenchmarks(){return(0,n.Z)().get("/daemon/getbenchmarks")},getBenchStatus(){return(0,n.Z)().get("/daemon/getbenchstatus")},startBenchmark(e){return(0,n.Z)().get("/daemon/startbenchmark",{headers:{zelidauth:e}})},stopBenchmark(e){return(0,n.Z)().get("/daemon/stopbenchmark",{headers:{zelidauth:e}})},getBlockCount(){return(0,n.Z)().get("/daemon/getBlockCount")},getBlockchainInfo(){return(0,n.Z)().get("/daemon/getblockchaininfo")},getMiningInfo(){return(0,n.Z)().get("/daemon/getmininginfo")},getNetworkInfo(){return(0,n.Z)().get("/daemon/getnetworkinfo")},validateAddress(e,t){return(0,n.Z)().get(`/daemon/validateaddress/${t}`,{headers:{zelidauth:e}})},getWalletInfo(e){return(0,n.Z)().get("/daemon/getwalletinfo",{headers:{zelidauth:e}})},listFluxNodeConf(e){return(0,n.Z)().get("/daemon/listzelnodeconf",{headers:{zelidauth:e}})},start(e){return(0,n.Z)().get("/daemon/start",{headers:{zelidauth:e}})},restart(e){return(0,n.Z)().get("/daemon/restart",{headers:{zelidauth:e}})},stopDaemon(e){return(0,n.Z)().get("/daemon/stop",{headers:{zelidauth:e}})},rescanDaemon(e,t){return(0,n.Z)().get(`/daemon/rescanblockchain/${t}`,{headers:{zelidauth:e}})},getBlock(e,t){return(0,n.Z)().get(`/daemon/getblock/${e}/${t}`)},tailDaemonDebug(e){return(0,n.Z)().get("/flux/taildaemondebug",{headers:{zelidauth:e}})},justAPI(){return(0,n.Z)()},cancelToken(){return n.S}}}}]); \ No newline at end of file diff --git a/HomeUI/dist/js/1403.js b/HomeUI/dist/js/1403.js new file mode 100644 index 000000000..d163971c6 --- /dev/null +++ b/HomeUI/dist/js/1403.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunkflux"]=self["webpackChunkflux"]||[]).push([[1403],{57796:(t,e,a)=>{a.d(e,{Z:()=>c});var n=function(){var t=this,e=t._self._c;return e("div",{staticClass:"collapse-icon",class:t.collapseClasses,attrs:{role:"tablist"}},[t._t("default")],2)},r=[],s=(a(70560),a(57632));const l={props:{accordion:{type:Boolean,default:!1},hover:{type:Boolean,default:!1},type:{type:String,default:"default"}},data(){return{collapseID:""}},computed:{collapseClasses(){const t=[],e={default:"collapse-default",border:"collapse-border",shadow:"collapse-shadow",margin:"collapse-margin"};return t.push(e[this.type]),t}},created(){this.collapseID=(0,s.Z)()}},o=l;var i=a(1001),d=(0,i.Z)(o,n,r,!1,null,null,null);const c=d.exports},22049:(t,e,a)=>{a.d(e,{Z:()=>h});var n=function(){var t=this,e=t._self._c;return e("b-card",{class:{open:t.visible},attrs:{"no-body":""},on:{mouseenter:t.collapseOpen,mouseleave:t.collapseClose,focus:t.collapseOpen,blur:t.collapseClose}},[e("b-card-header",{class:{collapsed:!t.visible},attrs:{"aria-expanded":t.visible?"true":"false","aria-controls":t.collapseItemID,role:"tab","data-toggle":"collapse"},on:{click:function(e){return t.updateVisible(!t.visible)}}},[t._t("header",(function(){return[e("span",{staticClass:"lead collapse-title"},[t._v(t._s(t.title))])]}))],2),e("b-collapse",{attrs:{id:t.collapseItemID,accordion:t.accordion,role:"tabpanel"},model:{value:t.visible,callback:function(e){t.visible=e},expression:"visible"}},[e("b-card-body",[t._t("default")],2)],1)],1)},r=[],s=a(86855),l=a(87047),o=a(19279),i=a(11688),d=a(57632);const c={components:{BCard:s._,BCardHeader:l.p,BCardBody:o.O,BCollapse:i.k},props:{isVisible:{type:Boolean,default:!1},title:{type:String,required:!0}},data(){return{visible:!1,collapseItemID:"",openOnHover:this.$parent.hover}},computed:{accordion(){return this.$parent.accordion?`accordion-${this.$parent.collapseID}`:null}},created(){this.collapseItemID=(0,d.Z)(),this.visible=this.isVisible},methods:{updateVisible(t=!0){this.visible=t,this.$emit("visible",t)},collapseOpen(){this.openOnHover&&this.updateVisible(!0)},collapseClose(){this.openOnHover&&this.updateVisible(!1)}}},u=c;var p=a(1001),m=(0,p.Z)(u,n,r,!1,null,null,null);const h=m.exports},34547:(t,e,a)=>{a.d(e,{Z:()=>c});var n=function(){var t=this,e=t._self._c;return e("div",{staticClass:"toastification"},[e("div",{staticClass:"d-flex align-items-start"},[e("b-avatar",{staticClass:"mr-75 flex-shrink-0",attrs:{variant:t.variant,size:"1.8rem"}},[e("feather-icon",{attrs:{icon:t.icon,size:"15"}})],1),e("div",{staticClass:"d-flex flex-grow-1"},[e("div",[t.title?e("h5",{staticClass:"mb-0 font-weight-bolder toastification-title",class:`text-${t.variant}`,domProps:{textContent:t._s(t.title)}}):t._e(),t.text?e("small",{staticClass:"d-inline-block text-body",domProps:{textContent:t._s(t.text)}}):t._e()]),e("span",{staticClass:"cursor-pointer toastification-close-icon ml-auto",on:{click:function(e){return t.$emit("close-toast")}}},[t.hideClose?t._e():e("feather-icon",{staticClass:"text-body",attrs:{icon:"XIcon"}})],1)])],1)])},r=[],s=a(47389);const l={components:{BAvatar:s.SH},props:{variant:{type:String,default:"primary"},icon:{type:String,default:null},title:{type:String,default:null},text:{type:String,default:null},hideClose:{type:Boolean,default:!1}}},o=l;var i=a(1001),d=(0,i.Z)(o,n,r,!1,null,"22d964ca",null);const c=d.exports},51748:(t,e,a)=>{a.d(e,{Z:()=>c});var n=function(){var t=this,e=t._self._c;return e("dl",{staticClass:"row",class:t.classes},[e("dt",{staticClass:"col-sm-3"},[t._v(" "+t._s(t.title)+" ")]),t.href.length>0?e("dd",{staticClass:"col-sm-9 mb-0",class:`text-${t.variant}`},[t.href.length>0?e("b-link",{attrs:{href:t.href,target:"_blank",rel:"noopener noreferrer"}},[t._v(" "+t._s(t.data.length>0?t.data:t.number!==Number.MAX_VALUE?t.number:"")+" ")]):t._e()],1):t.click?e("dd",{staticClass:"col-sm-9 mb-0",class:`text-${t.variant}`,on:{click:function(e){return t.$emit("click")}}},[e("b-link",[t._v(" "+t._s(t.data.length>0?t.data:t.number!==Number.MAX_VALUE?t.number:"")+" ")])],1):e("dd",{staticClass:"col-sm-9 mb-0",class:`text-${t.variant}`},[t._v(" "+t._s(t.data.length>0?t.data:t.number!==Number.MAX_VALUE?t.number:"")+" ")])])},r=[],s=a(67347);const l={components:{BLink:s.we},props:{title:{type:String,required:!0},classes:{type:String,required:!1,default:"mb-1"},data:{type:String,required:!1,default:""},number:{type:Number,required:!1,default:Number.MAX_VALUE},variant:{type:String,required:!1,default:"secondary"},href:{type:String,required:!1,default:""},click:{type:Boolean,required:!1,default:!1}}},o=l;var i=a(1001),d=(0,i.Z)(o,n,r,!1,null,null,null);const c=d.exports},81403:(t,e,a)=>{a.r(e),a.d(e,{default:()=>g});var n=function(){var t=this,e=t._self._c;return e("b-card",{attrs:{title:"Current FluxNode winners that will be paid in the next Flux block"}},[e("app-collapse",t._l(t.callResponse.data,(function(a,n){return e("app-collapse-item",{key:n,attrs:{title:t.toPascalCase(n)}},[e("list-entry",{attrs:{title:"Address",data:t.callResponse.data[n].payment_address}}),e("list-entry",{attrs:{title:"IP Address",data:t.callResponse.data[n].ip}}),e("list-entry",{attrs:{title:"Added Height",number:t.callResponse.data[n].added_height}}),e("list-entry",{attrs:{title:"Collateral",data:t.callResponse.data[n].collateral}}),e("list-entry",{attrs:{title:"Last Paid Height",number:t.callResponse.data[n].last_paid_height}}),e("list-entry",{attrs:{title:"Confirmed Height",number:t.callResponse.data[n].confirmed_height}}),e("list-entry",{attrs:{title:"Last Confirmed Height",number:t.callResponse.data[n].last_confirmed_height}})],1)})),1)],1)},r=[],s=a(86855),l=a(34547),o=a(57796),i=a(22049),d=a(51748),c=a(27616);const u={components:{BCard:s._,ListEntry:d.Z,AppCollapse:o.Z,AppCollapseItem:i.Z,ToastificationContent:l.Z},data(){return{callResponse:{status:"",data:""}}},mounted(){this.daemonFluxCurrentWinner()},methods:{async daemonFluxCurrentWinner(){const t=await c.Z.fluxCurrentWinner();"error"===t.data.status?this.$toast({component:l.Z,props:{title:t.data.data.message||t.data.data,icon:"InfoIcon",variant:"danger"}}):(this.callResponse.status=t.data.status,this.callResponse.data=t.data.data,console.log(t))},toPascalCase(t){const e=t.split(/\s|_/);let a,n;for(a=0,n=e.length;a1?e[a].slice(1).toLowerCase():"");return e.join(" ")}}},p=u;var m=a(1001),h=(0,m.Z)(p,n,r,!1,null,null,null);const g=h.exports},27616:(t,e,a)=>{a.d(e,{Z:()=>r});var n=a(80914);const r={help(){return(0,n.Z)().get("/daemon/help")},helpSpecific(t){return(0,n.Z)().get(`/daemon/help/${t}`)},getInfo(){return(0,n.Z)().get("/daemon/getinfo")},getFluxNodeStatus(){return(0,n.Z)().get("/daemon/getzelnodestatus")},getRawTransaction(t,e){return(0,n.Z)().get(`/daemon/getrawtransaction/${t}/${e}`)},listFluxNodes(){return(0,n.Z)().get("/daemon/listzelnodes")},viewDeterministicFluxNodeList(){return(0,n.Z)().get("/daemon/viewdeterministiczelnodelist")},getFluxNodeCount(){return(0,n.Z)().get("/daemon/getzelnodecount")},getStartList(){return(0,n.Z)().get("/daemon/getstartlist")},getDOSList(){return(0,n.Z)().get("/daemon/getdoslist")},fluxCurrentWinner(){return(0,n.Z)().get("/daemon/fluxcurrentwinner")},getBenchmarks(){return(0,n.Z)().get("/daemon/getbenchmarks")},getBenchStatus(){return(0,n.Z)().get("/daemon/getbenchstatus")},startBenchmark(t){return(0,n.Z)().get("/daemon/startbenchmark",{headers:{zelidauth:t}})},stopBenchmark(t){return(0,n.Z)().get("/daemon/stopbenchmark",{headers:{zelidauth:t}})},getBlockCount(){return(0,n.Z)().get("/daemon/getBlockCount")},getBlockchainInfo(){return(0,n.Z)().get("/daemon/getblockchaininfo")},getMiningInfo(){return(0,n.Z)().get("/daemon/getmininginfo")},getNetworkInfo(){return(0,n.Z)().get("/daemon/getnetworkinfo")},validateAddress(t,e){return(0,n.Z)().get(`/daemon/validateaddress/${e}`,{headers:{zelidauth:t}})},getWalletInfo(t){return(0,n.Z)().get("/daemon/getwalletinfo",{headers:{zelidauth:t}})},listFluxNodeConf(t){return(0,n.Z)().get("/daemon/listzelnodeconf",{headers:{zelidauth:t}})},start(t){return(0,n.Z)().get("/daemon/start",{headers:{zelidauth:t}})},restart(t){return(0,n.Z)().get("/daemon/restart",{headers:{zelidauth:t}})},stopDaemon(t){return(0,n.Z)().get("/daemon/stop",{headers:{zelidauth:t}})},rescanDaemon(t,e){return(0,n.Z)().get(`/daemon/rescanblockchain/${e}`,{headers:{zelidauth:t}})},getBlock(t,e){return(0,n.Z)().get(`/daemon/getblock/${t}/${e}`)},tailDaemonDebug(t){return(0,n.Z)().get("/flux/taildaemondebug",{headers:{zelidauth:t}})},justAPI(){return(0,n.Z)()},cancelToken(){return n.S}}},57632:(t,e,a)=>{a.d(e,{Z:()=>u});const n="undefined"!==typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),r={randomUUID:n};let s;const l=new Uint8Array(16);function o(){if(!s&&(s="undefined"!==typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!s))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return s(l)}const i=[];for(let p=0;p<256;++p)i.push((p+256).toString(16).slice(1));function d(t,e=0){return i[t[e+0]]+i[t[e+1]]+i[t[e+2]]+i[t[e+3]]+"-"+i[t[e+4]]+i[t[e+5]]+"-"+i[t[e+6]]+i[t[e+7]]+"-"+i[t[e+8]]+i[t[e+9]]+"-"+i[t[e+10]]+i[t[e+11]]+i[t[e+12]]+i[t[e+13]]+i[t[e+14]]+i[t[e+15]]}function c(t,e,a){if(r.randomUUID&&!e&&!t)return r.randomUUID();t=t||{};const n=t.random||(t.rng||o)();if(n[6]=15&n[6]|64,n[8]=63&n[8]|128,e){a=a||0;for(let t=0;t<16;++t)e[a+t]=n[t];return e}return d(n)}const u=c}}]); \ No newline at end of file diff --git a/HomeUI/dist/js/1530.js b/HomeUI/dist/js/1530.js deleted file mode 100644 index 8d1afe202..000000000 --- a/HomeUI/dist/js/1530.js +++ /dev/null @@ -1,16 +0,0 @@ -(globalThis["webpackChunkflux"]=globalThis["webpackChunkflux"]||[]).push([[1530],{51748:(e,t,r)=>{"use strict";r.d(t,{Z:()=>l});var n=function(){var e=this,t=e._self._c;return t("dl",{staticClass:"row",class:e.classes},[t("dt",{staticClass:"col-sm-3"},[e._v(" "+e._s(e.title)+" ")]),e.href.length>0?t("dd",{staticClass:"col-sm-9 mb-0",class:`text-${e.variant}`},[e.href.length>0?t("b-link",{attrs:{href:e.href,target:"_blank",rel:"noopener noreferrer"}},[e._v(" "+e._s(e.data.length>0?e.data:e.number!==Number.MAX_VALUE?e.number:"")+" ")]):e._e()],1):e.click?t("dd",{staticClass:"col-sm-9 mb-0",class:`text-${e.variant}`,on:{click:function(t){return e.$emit("click")}}},[t("b-link",[e._v(" "+e._s(e.data.length>0?e.data:e.number!==Number.MAX_VALUE?e.number:"")+" ")])],1):t("dd",{staticClass:"col-sm-9 mb-0",class:`text-${e.variant}`},[e._v(" "+e._s(e.data.length>0?e.data:e.number!==Number.MAX_VALUE?e.number:"")+" ")])])},o=[],i=r(67347);const a={components:{BLink:i.we},props:{title:{type:String,required:!0},classes:{type:String,required:!1,default:"mb-1"},data:{type:String,required:!1,default:""},number:{type:Number,required:!1,default:Number.MAX_VALUE},variant:{type:String,required:!1,default:"secondary"},href:{type:String,required:!1,default:""},click:{type:Boolean,required:!1,default:!1}}},s=a;var u=r(1001),c=(0,u.Z)(s,n,o,!1,null,null,null);const l=c.exports},44020:e=>{"use strict";var t="%[a-f0-9]{2}",r=new RegExp("("+t+")|([^%]+?)","gi"),n=new RegExp("("+t+")+","gi");function o(e,t){try{return[decodeURIComponent(e.join(""))]}catch(i){}if(1===e.length)return e;t=t||1;var r=e.slice(0,t),n=e.slice(t);return Array.prototype.concat.call([],o(r),o(n))}function i(e){try{return decodeURIComponent(e)}catch(i){for(var t=e.match(r)||[],n=1;n{"use strict";r.d(t,{qY:()=>h});var n=function(e,t,r){if(r||2===arguments.length)for(var n,o=0,i=t.length;o{"use strict";var t,r="object"===typeof Reflect?Reflect:null,n=r&&"function"===typeof r.apply?r.apply:function(e,t,r){return Function.prototype.apply.call(e,t,r)};function o(e){console&&console.warn&&console.warn(e)}t=r&&"function"===typeof r.ownKeys?r.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var i=Number.isNaN||function(e){return e!==e};function a(){a.init.call(this)}e.exports=a,e.exports.once=b,a.EventEmitter=a,a.prototype._events=void 0,a.prototype._eventsCount=0,a.prototype._maxListeners=void 0;var s=10;function u(e){if("function"!==typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function c(e){return void 0===e._maxListeners?a.defaultMaxListeners:e._maxListeners}function l(e,t,r,n){var i,a,s;if(u(r),a=e._events,void 0===a?(a=e._events=Object.create(null),e._eventsCount=0):(void 0!==a.newListener&&(e.emit("newListener",t,r.listener?r.listener:r),a=e._events),s=a[t]),void 0===s)s=a[t]=r,++e._eventsCount;else if("function"===typeof s?s=a[t]=n?[r,s]:[s,r]:n?s.unshift(r):s.push(r),i=c(e),i>0&&s.length>i&&!s.warned){s.warned=!0;var l=new Error("Possible EventEmitter memory leak detected. "+s.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");l.name="MaxListenersExceededWarning",l.emitter=e,l.type=t,l.count=s.length,o(l)}return e}function f(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function p(e,t,r){var n={fired:!1,wrapFn:void 0,target:e,type:t,listener:r},o=f.bind(n);return o.listener=r,n.wrapFn=o,o}function d(e,t,r){var n=e._events;if(void 0===n)return[];var o=n[t];return void 0===o?[]:"function"===typeof o?r?[o.listener||o]:[o]:r?m(o):y(o,o.length)}function h(e){var t=this._events;if(void 0!==t){var r=t[e];if("function"===typeof r)return 1;if(void 0!==r)return r.length}return 0}function y(e,t){for(var r=new Array(t),n=0;n0&&(a=t[0]),a instanceof Error)throw a;var s=new Error("Unhandled error."+(a?" ("+a.message+")":""));throw s.context=a,s}var u=i[e];if(void 0===u)return!1;if("function"===typeof u)n(u,this,t);else{var c=u.length,l=y(u,c);for(r=0;r=0;i--)if(r[i]===t||r[i].listener===t){a=r[i].listener,o=i;break}if(o<0)return this;0===o?r.shift():v(r,o),1===r.length&&(n[e]=r[0]),void 0!==n.removeListener&&this.emit("removeListener",e,a||t)}return this},a.prototype.off=a.prototype.removeListener,a.prototype.removeAllListeners=function(e){var t,r,n;if(r=this._events,void 0===r)return this;if(void 0===r.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==r[e]&&(0===--this._eventsCount?this._events=Object.create(null):delete r[e]),this;if(0===arguments.length){var o,i=Object.keys(r);for(n=0;n=0;n--)this.removeListener(e,t[n]);return this},a.prototype.listeners=function(e){return d(this,e,!0)},a.prototype.rawListeners=function(e){return d(this,e,!1)},a.listenerCount=function(e,t){return"function"===typeof e.listenerCount?e.listenerCount(t):h.call(e,t)},a.prototype.listenerCount=h,a.prototype.eventNames=function(){return this._eventsCount>0?t(this._events):[]}},92806:e=>{"use strict";e.exports=function(e,t){for(var r={},n=Object.keys(e),o=Array.isArray(t),i=0;i{e.exports=self.fetch||(self.fetch=r(25869)["default"]||r(25869))},72307:(e,t,r)=>{e=r.nmd(e);var n=200,o="__lodash_hash_undefined__",i=1,a=2,s=9007199254740991,u="[object Arguments]",c="[object Array]",l="[object AsyncFunction]",f="[object Boolean]",p="[object Date]",d="[object Error]",h="[object Function]",y="[object GeneratorFunction]",v="[object Map]",m="[object Number]",b="[object Null]",g="[object Object]",w="[object Promise]",_="[object Proxy]",x="[object RegExp]",O="[object Set]",A="[object String]",j="[object Symbol]",S="[object Undefined]",k="[object WeakMap]",E="[object ArrayBuffer]",P="[object DataView]",T="[object Float32Array]",I="[object Float64Array]",C="[object Int8Array]",L="[object Int16Array]",z="[object Int32Array]",N="[object Uint8Array]",M="[object Uint8ClampedArray]",U="[object Uint16Array]",B="[object Uint32Array]",F=/[\\^$.*+?()[\]{}|]/g,R=/^\[object .+?Constructor\]$/,$=/^(?:0|[1-9]\d*)$/,W={};W[T]=W[I]=W[C]=W[L]=W[z]=W[N]=W[M]=W[U]=W[B]=!0,W[u]=W[c]=W[E]=W[f]=W[P]=W[p]=W[d]=W[h]=W[v]=W[m]=W[g]=W[x]=W[O]=W[A]=W[k]=!1;var D="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g,Z="object"==typeof self&&self&&self.Object===Object&&self,K=D||Z||Function("return this")(),V=t&&!t.nodeType&&t,q=V&&e&&!e.nodeType&&e,J=q&&q.exports===V,G=J&&D.process,X=function(){try{return G&&G.binding&&G.binding("util")}catch(e){}}(),H=X&&X.isTypedArray;function Y(e,t){var r=-1,n=null==e?0:e.length,o=0,i=[];while(++r-1}function Xe(e,t){var r=this.__data__,n=dt(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}function He(e){var t=-1,r=null==e?0:e.length;this.clear();while(++tc))return!1;var f=s.get(e);if(f&&s.get(t))return f==t;var p=-1,d=!0,h=r&a?new nt:void 0;s.set(e,t),s.set(t,e);while(++p-1&&e%1==0&&e-1&&e%1==0&&e<=s}function Kt(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function Vt(e){return null!=e&&"object"==typeof e}var qt=H?re(H):wt;function Jt(e){return Rt(e)?pt(e):_t(e)}function Gt(){return[]}function Xt(){return!1}e.exports=Wt},17563:(e,t,r)=>{"use strict";const n=r(70610),o=r(44020),i=r(80500),a=r(92806),s=e=>null===e||void 0===e,u=Symbol("encodeFragmentIdentifier");function c(e){switch(e.arrayFormat){case"index":return t=>(r,n)=>{const o=r.length;return void 0===n||e.skipNull&&null===n||e.skipEmptyString&&""===n?r:null===n?[...r,[p(t,e),"[",o,"]"].join("")]:[...r,[p(t,e),"[",p(o,e),"]=",p(n,e)].join("")]};case"bracket":return t=>(r,n)=>void 0===n||e.skipNull&&null===n||e.skipEmptyString&&""===n?r:null===n?[...r,[p(t,e),"[]"].join("")]:[...r,[p(t,e),"[]=",p(n,e)].join("")];case"colon-list-separator":return t=>(r,n)=>void 0===n||e.skipNull&&null===n||e.skipEmptyString&&""===n?r:null===n?[...r,[p(t,e),":list="].join("")]:[...r,[p(t,e),":list=",p(n,e)].join("")];case"comma":case"separator":case"bracket-separator":{const t="bracket-separator"===e.arrayFormat?"[]=":"=";return r=>(n,o)=>void 0===o||e.skipNull&&null===o||e.skipEmptyString&&""===o?n:(o=null===o?"":o,0===n.length?[[p(r,e),t,p(o,e)].join("")]:[[n,p(o,e)].join(e.arrayFormatSeparator)])}default:return t=>(r,n)=>void 0===n||e.skipNull&&null===n||e.skipEmptyString&&""===n?r:null===n?[...r,p(t,e)]:[...r,[p(t,e),"=",p(n,e)].join("")]}}function l(e){let t;switch(e.arrayFormat){case"index":return(e,r,n)=>{t=/\[(\d*)\]$/.exec(e),e=e.replace(/\[\d*\]$/,""),t?(void 0===n[e]&&(n[e]={}),n[e][t[1]]=r):n[e]=r};case"bracket":return(e,r,n)=>{t=/(\[\])$/.exec(e),e=e.replace(/\[\]$/,""),t?void 0!==n[e]?n[e]=[].concat(n[e],r):n[e]=[r]:n[e]=r};case"colon-list-separator":return(e,r,n)=>{t=/(:list)$/.exec(e),e=e.replace(/:list$/,""),t?void 0!==n[e]?n[e]=[].concat(n[e],r):n[e]=[r]:n[e]=r};case"comma":case"separator":return(t,r,n)=>{const o="string"===typeof r&&r.includes(e.arrayFormatSeparator),i="string"===typeof r&&!o&&d(r,e).includes(e.arrayFormatSeparator);r=i?d(r,e):r;const a=o||i?r.split(e.arrayFormatSeparator).map((t=>d(t,e))):null===r?r:d(r,e);n[t]=a};case"bracket-separator":return(t,r,n)=>{const o=/(\[\])$/.test(t);if(t=t.replace(/\[\]$/,""),!o)return void(n[t]=r?d(r,e):r);const i=null===r?[]:r.split(e.arrayFormatSeparator).map((t=>d(t,e)));void 0!==n[t]?n[t]=[].concat(n[t],i):n[t]=i};default:return(e,t,r)=>{void 0!==r[e]?r[e]=[].concat(r[e],t):r[e]=t}}}function f(e){if("string"!==typeof e||1!==e.length)throw new TypeError("arrayFormatSeparator must be single character string")}function p(e,t){return t.encode?t.strict?n(e):encodeURIComponent(e):e}function d(e,t){return t.decode?o(e):e}function h(e){return Array.isArray(e)?e.sort():"object"===typeof e?h(Object.keys(e)).sort(((e,t)=>Number(e)-Number(t))).map((t=>e[t])):e}function y(e){const t=e.indexOf("#");return-1!==t&&(e=e.slice(0,t)),e}function v(e){let t="";const r=e.indexOf("#");return-1!==r&&(t=e.slice(r)),t}function m(e){e=y(e);const t=e.indexOf("?");return-1===t?"":e.slice(t+1)}function b(e,t){return t.parseNumbers&&!Number.isNaN(Number(e))&&"string"===typeof e&&""!==e.trim()?e=Number(e):!t.parseBooleans||null===e||"true"!==e.toLowerCase()&&"false"!==e.toLowerCase()||(e="true"===e.toLowerCase()),e}function g(e,t){t=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},t),f(t.arrayFormatSeparator);const r=l(t),n=Object.create(null);if("string"!==typeof e)return n;if(e=e.trim().replace(/^[?#&]/,""),!e)return n;for(const o of e.split("&")){if(""===o)continue;let[e,a]=i(t.decode?o.replace(/\+/g," "):o,"=");a=void 0===a?null:["comma","separator","bracket-separator"].includes(t.arrayFormat)?a:d(a,t),r(d(e,t),a,n)}for(const o of Object.keys(n)){const e=n[o];if("object"===typeof e&&null!==e)for(const r of Object.keys(e))e[r]=b(e[r],t);else n[o]=b(e,t)}return!1===t.sort?n:(!0===t.sort?Object.keys(n).sort():Object.keys(n).sort(t.sort)).reduce(((e,t)=>{const r=n[t];return Boolean(r)&&"object"===typeof r&&!Array.isArray(r)?e[t]=h(r):e[t]=r,e}),Object.create(null))}t.extract=m,t.parse=g,t.stringify=(e,t)=>{if(!e)return"";t=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},t),f(t.arrayFormatSeparator);const r=r=>t.skipNull&&s(e[r])||t.skipEmptyString&&""===e[r],n=c(t),o={};for(const a of Object.keys(e))r(a)||(o[a]=e[a]);const i=Object.keys(o);return!1!==t.sort&&i.sort(t.sort),i.map((r=>{const o=e[r];return void 0===o?"":null===o?p(r,t):Array.isArray(o)?0===o.length&&"bracket-separator"===t.arrayFormat?p(r,t)+"[]":o.reduce(n(r),[]).join("&"):p(r,t)+"="+p(o,t)})).filter((e=>e.length>0)).join("&")},t.parseUrl=(e,t)=>{t=Object.assign({decode:!0},t);const[r,n]=i(e,"#");return Object.assign({url:r.split("?")[0]||"",query:g(m(e),t)},t&&t.parseFragmentIdentifier&&n?{fragmentIdentifier:d(n,t)}:{})},t.stringifyUrl=(e,r)=>{r=Object.assign({encode:!0,strict:!0,[u]:!0},r);const n=y(e.url).split("?")[0]||"",o=t.extract(e.url),i=t.parse(o,{sort:!1}),a=Object.assign(i,e.query);let s=t.stringify(a,r);s&&(s=`?${s}`);let c=v(e.url);return e.fragmentIdentifier&&(c=`#${r[u]?p(e.fragmentIdentifier,r):e.fragmentIdentifier}`),`${n}${s}${c}`},t.pick=(e,r,n)=>{n=Object.assign({parseFragmentIdentifier:!0,[u]:!1},n);const{url:o,query:i,fragmentIdentifier:s}=t.parseUrl(e,n);return t.stringifyUrl({url:o,query:a(i,r),fragmentIdentifier:s},n)},t.exclude=(e,r,n)=>{const o=Array.isArray(r)?e=>!r.includes(e):(e,t)=>!r(e,t);return t.pick(e,o,n)}},85346:e=>{"use strict";function t(e){try{return JSON.stringify(e)}catch(t){return'"[Circular]"'}}function r(e,r,n){var o=n&&n.stringify||t,i=1;if("object"===typeof e&&null!==e){var a=r.length+i;if(1===a)return e;var s=new Array(a);s[0]=o(e);for(var u=1;u-1?p:0,e.charCodeAt(h+1)){case 100:case 102:if(f>=c)break;if(null==r[f])break;p=c)break;if(null==r[f])break;p=c)break;if(void 0===r[f])break;p",p=h+2,h++;break}l+=o(r[f]),p=h+2,h++;break;case 115:if(f>=c)break;p{"use strict";e.exports=(e,t)=>{if("string"!==typeof e||"string"!==typeof t)throw new TypeError("Expected the arguments to be of type `string`");if(""===t)return[e];const r=e.indexOf(t);return-1===r?[e]:[e.slice(0,r),e.slice(r+t.length)]}},70610:e=>{"use strict";e.exports=e=>encodeURIComponent(e).replace(/[!'()*]/g,(e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`))},27616:(e,t,r)=>{"use strict";r.d(t,{Z:()=>o});var n=r(80914);const o={help(){return(0,n.Z)().get("/daemon/help")},helpSpecific(e){return(0,n.Z)().get(`/daemon/help/${e}`)},getInfo(){return(0,n.Z)().get("/daemon/getinfo")},getFluxNodeStatus(){return(0,n.Z)().get("/daemon/getzelnodestatus")},getRawTransaction(e,t){return(0,n.Z)().get(`/daemon/getrawtransaction/${e}/${t}`)},listFluxNodes(){return(0,n.Z)().get("/daemon/listzelnodes")},viewDeterministicFluxNodeList(){return(0,n.Z)().get("/daemon/viewdeterministiczelnodelist")},getFluxNodeCount(){return(0,n.Z)().get("/daemon/getzelnodecount")},getStartList(){return(0,n.Z)().get("/daemon/getstartlist")},getDOSList(){return(0,n.Z)().get("/daemon/getdoslist")},fluxCurrentWinner(){return(0,n.Z)().get("/daemon/fluxcurrentwinner")},getBenchmarks(){return(0,n.Z)().get("/daemon/getbenchmarks")},getBenchStatus(){return(0,n.Z)().get("/daemon/getbenchstatus")},startBenchmark(e){return(0,n.Z)().get("/daemon/startbenchmark",{headers:{zelidauth:e}})},stopBenchmark(e){return(0,n.Z)().get("/daemon/stopbenchmark",{headers:{zelidauth:e}})},getBlockCount(){return(0,n.Z)().get("/daemon/getBlockCount")},getBlockchainInfo(){return(0,n.Z)().get("/daemon/getblockchaininfo")},getMiningInfo(){return(0,n.Z)().get("/daemon/getmininginfo")},getNetworkInfo(){return(0,n.Z)().get("/daemon/getnetworkinfo")},validateAddress(e,t){return(0,n.Z)().get(`/daemon/validateaddress/${t}`,{headers:{zelidauth:e}})},getWalletInfo(e){return(0,n.Z)().get("/daemon/getwalletinfo",{headers:{zelidauth:e}})},listFluxNodeConf(e){return(0,n.Z)().get("/daemon/listzelnodeconf",{headers:{zelidauth:e}})},start(e){return(0,n.Z)().get("/daemon/start",{headers:{zelidauth:e}})},restart(e){return(0,n.Z)().get("/daemon/restart",{headers:{zelidauth:e}})},stopDaemon(e){return(0,n.Z)().get("/daemon/stop",{headers:{zelidauth:e}})},rescanDaemon(e,t){return(0,n.Z)().get(`/daemon/rescanblockchain/${t}`,{headers:{zelidauth:e}})},getBlock(e,t){return(0,n.Z)().get(`/daemon/getblock/${e}/${t}`)},tailDaemonDebug(e){return(0,n.Z)().get("/flux/taildaemondebug",{headers:{zelidauth:e}})},justAPI(){return(0,n.Z)()},cancelToken(){return n.S}}},70655:(e,t,r)=>{"use strict";r.r(t),r.d(t,{__assign:()=>i,__asyncDelegator:()=>w,__asyncGenerator:()=>g,__asyncValues:()=>_,__await:()=>b,__awaiter:()=>l,__classPrivateFieldGet:()=>j,__classPrivateFieldSet:()=>S,__createBinding:()=>p,__decorate:()=>s,__exportStar:()=>d,__extends:()=>o,__generator:()=>f,__importDefault:()=>A,__importStar:()=>O,__makeTemplateObject:()=>x,__metadata:()=>c,__param:()=>u,__read:()=>y,__rest:()=>a,__spread:()=>v,__spreadArrays:()=>m,__values:()=>h}); -/*! ***************************************************************************** -Copyright (c) Microsoft Corporation. - -Permission to use, copy, modify, and/or distribute this software for any -purpose with or without fee is hereby granted. - -THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH -REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY -AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, -INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM -LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR -OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR -PERFORMANCE OF THIS SOFTWARE. -***************************************************************************** */ -var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])},n(e,t)};function o(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var i=function(){return i=Object.assign||function(e){for(var t,r=1,n=arguments.length;r=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,r,a):o(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a}function u(e,t){return function(r,n){t(r,n,e)}}function c(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)}function l(e,t,r,n){function o(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,i){function a(e){try{u(n.next(e))}catch(t){i(t)}}function s(e){try{u(n["throw"](e))}catch(t){i(t)}}function u(e){e.done?r(e.value):o(e.value).then(a,s)}u((n=n.apply(e,t||[])).next())}))}function f(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(e){return function(t){return u([e,t])}}function u(i){if(r)throw new TypeError("Generator is already executing.");while(a)try{if(r=1,n&&(o=2&i[0]?n["return"]:i[0]?n["throw"]||((o=n["return"])&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(o=a.trys,!(o=o.length>0&&o[o.length-1])&&(6===i[0]||2===i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function y(e,t){var r="function"===typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{while((void 0===t||t-- >0)&&!(n=i.next()).done)a.push(n.value)}catch(s){o={error:s}}finally{try{n&&!n.done&&(r=i["return"])&&r.call(i)}finally{if(o)throw o.error}}return a}function v(){for(var e=[],t=0;t1||s(e,t)}))})}function s(e,t){try{u(o[e](t))}catch(r){f(i[0][3],r)}}function u(e){e.value instanceof b?Promise.resolve(e.value.v).then(c,l):f(i[0][2],e)}function c(e){s("next",e)}function l(e){s("throw",e)}function f(e,t){e(t),i.shift(),i.length&&s(i[0][0],i[0][1])}}function w(e){var t,r;return t={},n("next"),n("throw",(function(e){throw e})),n("return"),t[Symbol.iterator]=function(){return this},t;function n(n,o){t[n]=e[n]?function(t){return(r=!r)?{value:b(e[n](t)),done:"return"===n}:o?o(t):t}:o}}function _(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,r=e[Symbol.asyncIterator];return r?r.call(e):(e="function"===typeof h?h(e):e[Symbol.iterator](),t={},n("next"),n("throw"),n("return"),t[Symbol.asyncIterator]=function(){return this},t);function n(r){t[r]=e[r]&&function(t){return new Promise((function(n,i){t=e[r](t),o(n,i,t.done,t.value)}))}}function o(e,t,r,n){Promise.resolve(n).then((function(t){e({value:t,done:r})}),t)}}function x(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}function O(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}function A(e){return e&&e.__esModule?e:{default:e}}function j(e,t){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return t.get(e)}function S(e,t,r){if(!t.has(e))throw new TypeError("attempted to set private field on non-instance");return t.set(e,r),r}},25869:(e,t,r)=>{"use strict";function n(e,t){return t=t||{},new Promise((function(r,n){var o=new XMLHttpRequest,i=[],a=[],s={},u=function(){return{ok:2==(o.status/100|0),statusText:o.statusText,status:o.status,url:o.responseURL,text:function(){return Promise.resolve(o.responseText)},json:function(){return Promise.resolve(o.responseText).then(JSON.parse)},blob:function(){return Promise.resolve(new Blob([o.response]))},clone:u,headers:{keys:function(){return i},entries:function(){return a},get:function(e){return s[e.toLowerCase()]},has:function(e){return e.toLowerCase()in s}}}};for(var c in o.open(t.method||"get",e,!0),o.onload=function(){o.getAllResponseHeaders().replace(/^(.*?):[^\S\n]*([\s\S]*?)$/gm,(function(e,t,r){i.push(t=t.toLowerCase()),a.push([t,r]),s[t]=s[t]?s[t]+","+r:r})),r(u())},o.onerror=n,o.withCredentials="include"==t.credentials,t.headers)o.setRequestHeader(c,t.headers[c]);o.send(t.body||null)}))}r.r(t),r.d(t,{default:()=>n})},57026:e=>{"use strict";e.exports=function(){throw new Error("ws does not work in the browser. Browser clients must use the native WebSocket object")}},96358:(e,t,r)=>{"use strict";e.exports=r.p+"img/FluxID.svg"},28125:(e,t,r)=>{"use strict";e.exports=r.p+"img/metamask.svg"},58962:(e,t,r)=>{"use strict";e.exports=r.p+"img/ssp-logo-black.svg"},56070:(e,t,r)=>{"use strict";e.exports=r.p+"img/ssp-logo-white.svg"},47622:(e,t,r)=>{"use strict";e.exports=r.p+"img/walletconnect.svg"},35883:()=>{},23550:(e,t,r)=>{"use strict";var n=r(60598),o=String,i=TypeError;e.exports=function(e){if(n(e))return e;throw new i("Can't set "+o(e)+" as a prototype")}},37075:e=>{"use strict";e.exports="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView},54872:(e,t,r)=>{"use strict";var n,o,i,a=r(37075),s=r(67697),u=r(19037),c=r(69985),l=r(48999),f=r(36812),p=r(50926),d=r(23691),h=r(75773),y=r(11880),v=r(62148),m=r(23622),b=r(61868),g=r(49385),w=r(44201),_=r(14630),x=r(618),O=x.enforce,A=x.get,j=u.Int8Array,S=j&&j.prototype,k=u.Uint8ClampedArray,E=k&&k.prototype,P=j&&b(j),T=S&&b(S),I=Object.prototype,C=u.TypeError,L=w("toStringTag"),z=_("TYPED_ARRAY_TAG"),N="TypedArrayConstructor",M=a&&!!g&&"Opera"!==p(u.opera),U=!1,B={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},F={BigInt64Array:8,BigUint64Array:8},R=function(e){if(!l(e))return!1;var t=p(e);return"DataView"===t||f(B,t)||f(F,t)},$=function(e){var t=b(e);if(l(t)){var r=A(t);return r&&f(r,N)?r[N]:$(t)}},W=function(e){if(!l(e))return!1;var t=p(e);return f(B,t)||f(F,t)},D=function(e){if(W(e))return e;throw new C("Target is not a typed array")},Z=function(e){if(c(e)&&(!g||m(P,e)))return e;throw new C(d(e)+" is not a typed array constructor")},K=function(e,t,r,n){if(s){if(r)for(var o in B){var i=u[o];if(i&&f(i.prototype,e))try{delete i.prototype[e]}catch(a){try{i.prototype[e]=t}catch(c){}}}T[e]&&!r||y(T,e,r?t:M&&S[e]||t,n)}},V=function(e,t,r){var n,o;if(s){if(g){if(r)for(n in B)if(o=u[n],o&&f(o,e))try{delete o[e]}catch(i){}if(P[e]&&!r)return;try{return y(P,e,r?t:M&&P[e]||t)}catch(i){}}for(n in B)o=u[n],!o||o[e]&&!r||y(o,e,t)}};for(n in B)o=u[n],i=o&&o.prototype,i?O(i)[N]=o:M=!1;for(n in F)o=u[n],i=o&&o.prototype,i&&(O(i)[N]=o);if((!M||!c(P)||P===Function.prototype)&&(P=function(){throw new C("Incorrect invocation")},M))for(n in B)u[n]&&g(u[n],P);if((!M||!T||T===I)&&(T=P.prototype,M))for(n in B)u[n]&&g(u[n].prototype,T);if(M&&b(E)!==T&&g(E,T),s&&!f(T,L))for(n in U=!0,v(T,L,{configurable:!0,get:function(){return l(this)?this[z]:void 0}}),B)u[n]&&h(u[n],z,n);e.exports={NATIVE_ARRAY_BUFFER_VIEWS:M,TYPED_ARRAY_TAG:U&&z,aTypedArray:D,aTypedArrayConstructor:Z,exportTypedArrayMethod:K,exportTypedArrayStaticMethod:V,getTypedArrayConstructor:$,isView:R,isTypedArray:W,TypedArray:P,TypedArrayPrototype:T}},59976:(e,t,r)=>{"use strict";var n=r(6310);e.exports=function(e,t,r){var o=0,i=arguments.length>2?r:n(t),a=new e(i);while(i>o)a[o]=t[o++];return a}},26166:(e,t,r)=>{"use strict";var n=r(6310);e.exports=function(e,t){for(var r=n(e),o=new t(r),i=0;i{"use strict";var n=r(6310),o=r(68700),i=RangeError;e.exports=function(e,t,r,a){var s=n(e),u=o(r),c=u<0?s+u:u;if(c>=s||c<0)throw new i("Incorrect index");for(var l=new t(s),f=0;f{"use strict";var n=r(23043),o=r(69985),i=r(6648),a=r(44201),s=a("toStringTag"),u=Object,c="Arguments"===i(function(){return arguments}()),l=function(e,t){try{return e[t]}catch(r){}};e.exports=n?i:function(e){var t,r,n;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(r=l(t=u(e),s))?r:c?i(t):"Object"===(n=i(t))&&o(t.callee)?"Arguments":n}},81748:(e,t,r)=>{"use strict";var n=r(3689);e.exports=!n((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},62148:(e,t,r)=>{"use strict";var n=r(98702),o=r(72560);e.exports=function(e,t,r){return r.get&&n(r.get,t,{getter:!0}),r.set&&n(r.set,t,{setter:!0}),o.f(e,t,r)}},52743:(e,t,r)=>{"use strict";var n=r(68844),o=r(10509);e.exports=function(e,t,r){try{return n(o(Object.getOwnPropertyDescriptor(e,t)[r]))}catch(i){}}},9401:(e,t,r)=>{"use strict";var n=r(50926);e.exports=function(e){var t=n(e);return"BigInt64Array"===t||"BigUint64Array"===t}},60598:(e,t,r)=>{"use strict";var n=r(48999);e.exports=function(e){return n(e)||null===e}},61868:(e,t,r)=>{"use strict";var n=r(36812),o=r(69985),i=r(90690),a=r(2713),s=r(81748),u=a("IE_PROTO"),c=Object,l=c.prototype;e.exports=s?c.getPrototypeOf:function(e){var t=i(e);if(n(t,u))return t[u];var r=t.constructor;return o(r)&&t instanceof r?r.prototype:t instanceof c?l:null}},49385:(e,t,r)=>{"use strict";var n=r(52743),o=r(85027),i=r(23550);e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,r={};try{e=n(Object.prototype,"__proto__","set"),e(r,[]),t=r instanceof Array}catch(a){}return function(r,n){return o(r),i(n),t?e(r,n):r.__proto__=n,r}}():void 0)},71530:(e,t,r)=>{"use strict";var n=r(88732),o=TypeError;e.exports=function(e){var t=n(e,"number");if("number"==typeof t)throw new o("Can't convert number to bigint");return BigInt(t)}},23043:(e,t,r)=>{"use strict";var n=r(44201),o=n("toStringTag"),i={};i[o]="z",e.exports="[object z]"===String(i)},34327:(e,t,r)=>{"use strict";var n=r(50926),o=String;e.exports=function(e){if("Symbol"===n(e))throw new TypeError("Cannot convert a Symbol value to a string");return o(e)}},21500:e=>{"use strict";var t=TypeError;e.exports=function(e,r){if(e{"use strict";var n=r(26166),o=r(54872),i=o.aTypedArray,a=o.exportTypedArrayMethod,s=o.getTypedArrayConstructor;a("toReversed",(function(){return n(i(this),s(this))}))},61121:(e,t,r)=>{"use strict";var n=r(54872),o=r(68844),i=r(10509),a=r(59976),s=n.aTypedArray,u=n.getTypedArrayConstructor,c=n.exportTypedArrayMethod,l=o(n.TypedArrayPrototype.sort);c("toSorted",(function(e){void 0!==e&&i(e);var t=s(this),r=a(u(t),t);return l(r,e)}))},37133:(e,t,r)=>{"use strict";var n=r(16134),o=r(54872),i=r(9401),a=r(68700),s=r(71530),u=o.aTypedArray,c=o.getTypedArrayConstructor,l=o.exportTypedArrayMethod,f=!!function(){try{new Int8Array(1)["with"](2,{valueOf:function(){throw 8}})}catch(e){return 8===e}}();l("with",{with:function(e,t){var r=u(this),o=a(e),l=i(r)?s(t):+t;return n(r,c(r),o,l)}}["with"],!f)},98858:(e,t,r)=>{"use strict";var n=r(11880),o=r(68844),i=r(34327),a=r(21500),s=URLSearchParams,u=s.prototype,c=o(u.append),l=o(u["delete"]),f=o(u.forEach),p=o([].push),d=new s("a=1&a=2&b=3");d["delete"]("a",1),d["delete"]("b",void 0),d+""!=="a=2"&&n(u,"delete",(function(e){var t=arguments.length,r=t<2?void 0:arguments[1];if(t&&void 0===r)return l(this,e);var n=[];f(this,(function(e,t){p(n,{key:t,value:e})})),a(t,1);var o,s=i(e),u=i(r),d=0,h=0,y=!1,v=n.length;while(d{"use strict";var n=r(11880),o=r(68844),i=r(34327),a=r(21500),s=URLSearchParams,u=s.prototype,c=o(u.getAll),l=o(u.has),f=new s("a=1");!f.has("a",2)&&f.has("a",void 0)||n(u,"has",(function(e){var t=arguments.length,r=t<2?void 0:arguments[1];if(t&&void 0===r)return l(this,e);var n=c(this,e);a(t,1);var o=i(r),s=0;while(s{"use strict";var n=r(67697),o=r(68844),i=r(62148),a=URLSearchParams.prototype,s=o(a.forEach);n&&!("size"in a)&&i(a,"size",{get:function(){var e=0;return s(this,(function(){e++})),e},configurable:!0,enumerable:!0})},36559:(e,t,r)=>{"use strict";const n=r(85346);e.exports=s;const o=A().console||{},i={mapHttpRequest:m,mapHttpResponse:m,wrapRequestSerializer:b,wrapResponseSerializer:b,wrapErrorSerializer:b,req:m,res:m,err:y};function a(e,t){if(Array.isArray(e)){const t=e.filter((function(e){return"!stdSerializers.err"!==e}));return t}return!0===e&&Object.keys(t)}function s(e){e=e||{},e.browser=e.browser||{};const t=e.browser.transmit;if(t&&"function"!==typeof t.send)throw Error("pino: transmit option must have a send function");const r=e.browser.write||o;e.browser.write&&(e.browser.asObject=!0);const n=e.serializers||{},i=a(e.browser.serialize,n);let c=e.browser.serialize;Array.isArray(e.browser.serialize)&&e.browser.serialize.indexOf("!stdSerializers.err")>-1&&(c=!1);const l=["error","fatal","warn","info","debug","trace"];"function"===typeof r&&(r.error=r.fatal=r.warn=r.info=r.debug=r.trace=r),!1===e.enabled&&(e.level="silent");const d=e.level||"info",y=Object.create(r);y.log||(y.log=g),Object.defineProperty(y,"levelVal",{get:b}),Object.defineProperty(y,"level",{get:w,set:_});const m={transmit:t,serialize:i,asObject:e.browser.asObject,levels:l,timestamp:v(e)};function b(){return"silent"===this.level?1/0:this.levels.values[this.level]}function w(){return this._level}function _(e){if("silent"!==e&&!this.levels.values[e])throw Error("unknown level "+e);this._level=e,u(m,y,"error","log"),u(m,y,"fatal","error"),u(m,y,"warn","error"),u(m,y,"info","log"),u(m,y,"debug","log"),u(m,y,"trace","log")}function x(r,o){if(!r)throw new Error("missing bindings for child Pino");o=o||{},i&&r.serializers&&(o.serializers=r.serializers);const a=o.serializers;if(i&&a){var s=Object.assign({},n,a),u=!0===e.browser.serialize?Object.keys(s):i;delete r.serializers,f([r],u,s,this._stdErrSerialize)}function c(e){this._childLevel=1+(0|e._childLevel),this.error=p(e,r,"error"),this.fatal=p(e,r,"fatal"),this.warn=p(e,r,"warn"),this.info=p(e,r,"info"),this.debug=p(e,r,"debug"),this.trace=p(e,r,"trace"),s&&(this.serializers=s,this._serialize=u),t&&(this._logEvent=h([].concat(e._logEvent.bindings,r)))}return c.prototype=this,new c(this)}return y.levels=s.levels,y.level=d,y.setMaxListeners=y.getMaxListeners=y.emit=y.addListener=y.on=y.prependListener=y.once=y.prependOnceListener=y.removeListener=y.removeAllListeners=y.listeners=y.listenerCount=y.eventNames=y.write=y.flush=g,y.serializers=n,y._serialize=i,y._stdErrSerialize=c,y.child=x,t&&(y._logEvent=h()),y}function u(e,t,r,n){const i=Object.getPrototypeOf(t);t[r]=t.levelVal>t.levels.values[r]?g:i[r]?i[r]:o[r]||o[n]||g,c(e,t,r)}function c(e,t,r){(e.transmit||t[r]!==g)&&(t[r]=function(n){return function(){const i=e.timestamp(),a=new Array(arguments.length),u=Object.getPrototypeOf&&Object.getPrototypeOf(this)===o?o:this;for(var c=0;c-1&&n in r&&(e[o][n]=r[n](e[o][n]))}function p(e,t,r){return function(){const n=new Array(1+arguments.length);n[0]=t;for(var o=1;o{"use strict";r.d(t,{o6:()=>j});r(70560);const n=/"(?:_|\\u0{2}5[Ff]){2}(?:p|\\u0{2}70)(?:r|\\u0{2}72)(?:o|\\u0{2}6[Ff])(?:t|\\u0{2}74)(?:o|\\u0{2}6[Ff])(?:_|\\u0{2}5[Ff]){2}"\s*:/,o=/"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/,i=/^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/;function a(e,t){if(!("__proto__"===e||"constructor"===e&&t&&"object"===typeof t&&"prototype"in t))return t;s(e)}function s(e){console.warn(`[destr] Dropping "${e}" key to prevent prototype pollution.`)}function u(e,t={}){if("string"!==typeof e)return e;const r=e.trim();if('"'===e[0]&&'"'===e.at(-1)&&!e.includes("\\"))return r.slice(1,-1);if(r.length<=9){const e=r.toLowerCase();if("true"===e)return!0;if("false"===e)return!1;if("undefined"===e)return;if("null"===e)return null;if("nan"===e)return Number.NaN;if("infinity"===e)return Number.POSITIVE_INFINITY;if("-infinity"===e)return Number.NEGATIVE_INFINITY}if(!i.test(e)){if(t.strict)throw new SyntaxError("[destr] Invalid JSON");return e}try{if(n.test(e)||o.test(e)){if(t.strict)throw new Error("[destr] Possible prototype pollution");return JSON.parse(e,a)}return JSON.parse(e)}catch(s){if(t.strict)throw s;return e}}var c=r(48764)["lW"];function l(e){return e&&"function"===typeof e.then?e:Promise.resolve(e)}function f(e,...t){try{return l(e(...t))}catch(r){return Promise.reject(r)}}function p(e){const t=typeof e;return null===e||"object"!==t&&"function"!==t}function d(e){const t=Object.getPrototypeOf(e);return!t||t.isPrototypeOf(Object)}function h(e){if(p(e))return String(e);if(d(e)||Array.isArray(e))return JSON.stringify(e);if("function"===typeof e.toJSON)return h(e.toJSON());throw new Error("[unstorage] Cannot stringify value!")}function y(){if(void 0===typeof c)throw new TypeError("[unstorage] Buffer is not supported!")}const v="base64:";function m(e){if("string"===typeof e)return e;y();const t=c.from(e).toString("base64");return v+t}function b(e){return"string"!==typeof e?e:e.startsWith(v)?(y(),c.from(e.slice(v.length),"base64")):e}function g(e){return e?e.split("?")[0].replace(/[/\\]/g,":").replace(/:+/g,":").replace(/^:|:$/g,""):""}function w(...e){return g(e.join(":"))}function _(e){return e=g(e),e?e+":":""}function x(e){return e}const O="memory",A=x((()=>{const e=new Map;return{name:O,options:{},hasItem(t){return e.has(t)},getItem(t){return e.get(t)??null},getItemRaw(t){return e.get(t)??null},setItem(t,r){e.set(t,r)},setItemRaw(t,r){e.set(t,r)},removeItem(t){e.delete(t)},getKeys(){return Array.from(e.keys())},clear(){e.clear()},dispose(){e.clear()}}}));function j(e={}){const t={mounts:{"":e.driver||A()},mountpoints:[""],watching:!1,watchListeners:[],unwatch:{}},r=e=>{for(const r of t.mountpoints)if(e.startsWith(r))return{base:r,relativeKey:e.slice(r.length),driver:t.mounts[r]};return{base:"",relativeKey:e,driver:t.mounts[""]}},n=(e,r)=>t.mountpoints.filter((t=>t.startsWith(e)||r&&e.startsWith(t))).map((r=>({relativeBase:e.length>r.length?e.slice(r.length):void 0,mountpoint:r,driver:t.mounts[r]}))),o=(e,r)=>{if(t.watching){r=g(r);for(const n of t.watchListeners)n(e,r)}},i=async()=>{if(!t.watching){t.watching=!0;for(const e in t.mounts)t.unwatch[e]=await S(t.mounts[e],o,e)}},a=async()=>{if(t.watching){for(const e in t.unwatch)await t.unwatch[e]();t.unwatch={},t.watching=!1}},s=(e,t,n)=>{const o=new Map,i=e=>{let t=o.get(e.base);return t||(t={driver:e.driver,base:e.base,items:[]},o.set(e.base,t)),t};for(const a of e){const e="string"===typeof a,n=g(e?a:a.key),o=e?void 0:a.value,s=e||!a.options?t:{...t,...a.options},u=r(n);i(u).items.push({key:n,value:o,relativeKey:u.relativeKey,options:s})}return Promise.all([...o.values()].map((e=>n(e)))).then((e=>e.flat()))},c={hasItem(e,t={}){e=g(e);const{relativeKey:n,driver:o}=r(e);return f(o.hasItem,n,t)},getItem(e,t={}){e=g(e);const{relativeKey:n,driver:o}=r(e);return f(o.getItem,n,t).then((e=>u(e)))},getItems(e,t){return s(e,t,(e=>e.driver.getItems?f(e.driver.getItems,e.items.map((e=>({key:e.relativeKey,options:e.options}))),t).then((t=>t.map((t=>({key:w(e.base,t.key),value:u(t.value)}))))):Promise.all(e.items.map((t=>f(e.driver.getItem,t.relativeKey,t.options).then((e=>({key:t.key,value:u(e)}))))))))},getItemRaw(e,t={}){e=g(e);const{relativeKey:n,driver:o}=r(e);return o.getItemRaw?f(o.getItemRaw,n,t):f(o.getItem,n,t).then((e=>b(e)))},async setItem(e,t,n={}){if(void 0===t)return c.removeItem(e);e=g(e);const{relativeKey:i,driver:a}=r(e);a.setItem&&(await f(a.setItem,i,h(t),n),a.watch||o("update",e))},async setItems(e,t){await s(e,t,(async e=>{e.driver.setItems&&await f(e.driver.setItems,e.items.map((e=>({key:e.relativeKey,value:h(e.value),options:e.options}))),t),e.driver.setItem&&await Promise.all(e.items.map((t=>f(e.driver.setItem,t.relativeKey,h(t.value),t.options))))}))},async setItemRaw(e,t,n={}){if(void 0===t)return c.removeItem(e,n);e=g(e);const{relativeKey:i,driver:a}=r(e);if(a.setItemRaw)await f(a.setItemRaw,i,t,n);else{if(!a.setItem)return;await f(a.setItem,i,m(t),n)}a.watch||o("update",e)},async removeItem(e,t={}){"boolean"===typeof t&&(t={removeMeta:t}),e=g(e);const{relativeKey:n,driver:i}=r(e);i.removeItem&&(await f(i.removeItem,n,t),(t.removeMeta||t.removeMata)&&await f(i.removeItem,n+"$",t),i.watch||o("remove",e))},async getMeta(e,t={}){"boolean"===typeof t&&(t={nativeOnly:t}),e=g(e);const{relativeKey:n,driver:o}=r(e),i=Object.create(null);if(o.getMeta&&Object.assign(i,await f(o.getMeta,n,t)),!t.nativeOnly){const e=await f(o.getItem,n+"$",t).then((e=>u(e)));e&&"object"===typeof e&&("string"===typeof e.atime&&(e.atime=new Date(e.atime)),"string"===typeof e.mtime&&(e.mtime=new Date(e.mtime)),Object.assign(i,e))}return i},setMeta(e,t,r={}){return this.setItem(e+"$",t,r)},removeMeta(e,t={}){return this.removeItem(e+"$",t)},async getKeys(e,t={}){e=_(e);const r=n(e,!0);let o=[];const i=[];for(const n of r){const e=await f(n.driver.getKeys,n.relativeBase,t),r=e.map((e=>n.mountpoint+g(e))).filter((e=>!o.some((t=>e.startsWith(t)))));i.push(...r),o=[n.mountpoint,...o.filter((e=>!e.startsWith(n.mountpoint)))]}return e?i.filter((t=>t.startsWith(e)&&!t.endsWith("$"))):i.filter((e=>!e.endsWith("$")))},async clear(e,t={}){e=_(e),await Promise.all(n(e,!1).map((async e=>{if(e.driver.clear)return f(e.driver.clear,e.relativeBase,t);if(e.driver.removeItem){const r=await e.driver.getKeys(e.relativeBase||"",t);return Promise.all(r.map((r=>e.driver.removeItem(r,t))))}})))},async dispose(){await Promise.all(Object.values(t.mounts).map((e=>k(e))))},async watch(e){return await i(),t.watchListeners.push(e),async()=>{t.watchListeners=t.watchListeners.filter((t=>t!==e)),0===t.watchListeners.length&&await a()}},async unwatch(){t.watchListeners=[],await a()},mount(e,r){if(e=_(e),e&&t.mounts[e])throw new Error(`already mounted at ${e}`);return e&&(t.mountpoints.push(e),t.mountpoints.sort(((e,t)=>t.length-e.length))),t.mounts[e]=r,t.watching&&Promise.resolve(S(r,o,e)).then((r=>{t.unwatch[e]=r})).catch(console.error),c},async unmount(e,r=!0){e=_(e),e&&t.mounts[e]&&(t.watching&&e in t.unwatch&&(t.unwatch[e](),delete t.unwatch[e]),r&&await k(t.mounts[e]),t.mountpoints=t.mountpoints.filter((t=>t!==e)),delete t.mounts[e])},getMount(e=""){e=g(e)+":";const t=r(e);return{driver:t.driver,base:t.base}},getMounts(e="",t={}){e=g(e);const r=n(e,t.parents);return r.map((e=>({driver:e.driver,base:e.mountpoint})))}};return c}function S(e,t,r){return e.watch?e.watch(((e,n)=>t(e,r+n))):()=>{}}async function k(e){"function"===typeof e.dispose&&await f(e.dispose)}},24678:(e,t,r)=>{"use strict";function n(e){return new Promise(((t,r)=>{e.oncomplete=e.onsuccess=()=>t(e.result),e.onabort=e.onerror=()=>r(e.error)}))}function o(e,t){const r=indexedDB.open(e);r.onupgradeneeded=()=>r.result.createObjectStore(t);const o=n(r);return(e,r)=>o.then((n=>r(n.transaction(t,e).objectStore(t))))}let i;function a(){return i||(i=o("keyval-store","keyval")),i}function s(e,t=a()){return t("readonly",(t=>n(t.get(e))))}function u(e,t,r=a()){return r("readwrite",(r=>(r.put(t,e),n(r.transaction))))}function c(e,t=a()){return t("readwrite",(t=>(t.delete(e),n(t.transaction))))}function l(e=a()){return e("readwrite",(e=>(e.clear(),n(e.transaction))))}function f(e,t){return e.openCursor().onsuccess=function(){this.result&&(t(this.result),this.result.continue())},n(e.transaction)}function p(e=a()){return e("readonly",(e=>{if(e.getAllKeys)return n(e.getAllKeys());const t=[];return f(e,(e=>t.push(e.key))).then((()=>t))}))}r.d(t,{IV:()=>c,MT:()=>o,U2:()=>s,XP:()=>p,ZH:()=>l,t8:()=>u})},53160:(e,t,r)=>{"use strict";r.d(t,{E:()=>o});var n=r(16867);function o(e=0){return null!=globalThis.Buffer&&null!=globalThis.Buffer.allocUnsafe?(0,n.P)(globalThis.Buffer.allocUnsafe(e)):new Uint8Array(e)}},20605:(e,t,r)=>{"use strict";r.d(t,{z:()=>i});var n=r(53160),o=r(16867);function i(e,t){t||(t=e.reduce(((e,t)=>e+t.length),0));const r=(0,n.E)(t);let i=0;for(const n of e)r.set(n,i),i+=n.length;return(0,o.P)(r)}},52217:(e,t,r)=>{"use strict";r.d(t,{m:()=>i});var n=r(73149),o=r(16867);function i(e,t="utf8"){const r=n.Z[t];if(!r)throw new Error(`Unsupported encoding "${t}"`);return"utf8"!==t&&"utf-8"!==t||null==globalThis.Buffer||null==globalThis.Buffer.from?r.decoder.decode(`${r.prefix}${e}`):(0,o.P)(globalThis.Buffer.from(e,"utf-8"))}},37466:(e,t,r)=>{"use strict";r.d(t,{BB:()=>i.B,mL:()=>o.m,zo:()=>n.z});var n=r(20605),o=r(52217),i=r(92263)},92263:(e,t,r)=>{"use strict";r.d(t,{B:()=>o});var n=r(73149);function o(e,t="utf8"){const r=n.Z[t];if(!r)throw new Error(`Unsupported encoding "${t}"`);return"utf8"!==t&&"utf-8"!==t||null==globalThis.Buffer||null==globalThis.Buffer.from?r.encoder.encode(e).substring(1):globalThis.Buffer.from(e.buffer,e.byteOffset,e.byteLength).toString("utf8")}},16867:(e,t,r)=>{"use strict";function n(e){return null!=globalThis.Buffer?new Uint8Array(e.buffer,e.byteOffset,e.byteLength):e}r.d(t,{P:()=>n})},73149:(e,t,r)=>{"use strict";r.d(t,{Z:()=>ut});var n={};r.r(n),r.d(n,{identity:()=>z});var o={};r.r(o),r.d(o,{base2:()=>N});var i={};r.r(i),r.d(i,{base8:()=>M});var a={};r.r(a),r.d(a,{base10:()=>U});var s={};r.r(s),r.d(s,{base16:()=>B,base16upper:()=>F});var u={};r.r(u),r.d(u,{base32:()=>R,base32hex:()=>Z,base32hexpad:()=>V,base32hexpadupper:()=>q,base32hexupper:()=>K,base32pad:()=>W,base32padupper:()=>D,base32upper:()=>$,base32z:()=>J});var c={};r.r(c),r.d(c,{base36:()=>G,base36upper:()=>X});var l={};r.r(l),r.d(l,{base58btc:()=>H,base58flickr:()=>Y});var f={};r.r(f),r.d(f,{base64:()=>Q,base64pad:()=>ee,base64url:()=>te,base64urlpad:()=>re});var p={};r.r(p),r.d(p,{base256emoji:()=>ue});var d={};r.r(d),r.d(d,{sha256:()=>Fe,sha512:()=>Re});var h={};r.r(h),r.d(h,{identity:()=>Ke});var y={};r.r(y),r.d(y,{code:()=>qe,decode:()=>Ge,encode:()=>Je,name:()=>Ve});var v={};function m(e,t){if(e.length>=255)throw new TypeError("Alphabet too long");for(var r=new Uint8Array(256),n=0;n>>0,c=new Uint8Array(a);while(o!==i){for(var f=t[o],p=0,d=a-1;(0!==f||p>>0,c[d]=f%s>>>0,f=f/s>>>0;if(0!==f)throw new Error("Non-zero carry");n=p,o++}var h=a-n;while(h!==a&&0===c[h])h++;for(var y=u.repeat(r);h>>0,a=new Uint8Array(i);while(e[t]){var l=r[e.charCodeAt(t)];if(255===l)return;for(var f=0,p=i-1;(0!==l||f>>0,a[p]=l%256>>>0,l=l/256>>>0;if(0!==l)throw new Error("Non-zero carry");o=f,t++}if(" "!==e[t]){var d=i-o;while(d!==i&&0===a[d])d++;var h=new Uint8Array(n+(i-d)),y=n;while(d!==i)h[y++]=a[d++];return h}}}function d(e){var r=p(e);if(r)return r;throw new Error(`Non-${t} character`)}return{encode:f,decodeUnsafe:p,decode:d}}r.r(v),r.d(v,{code:()=>Qe,decode:()=>tt,encode:()=>et,name:()=>Ye});var b=m,g=b;const w=g,_=(new Uint8Array(0),e=>{if(e instanceof Uint8Array&&"Uint8Array"===e.constructor.name)return e;if(e instanceof ArrayBuffer)return new Uint8Array(e);if(ArrayBuffer.isView(e))return new Uint8Array(e.buffer,e.byteOffset,e.byteLength);throw new Error("Unknown type, must be binary type")}),x=e=>(new TextEncoder).encode(e),O=e=>(new TextDecoder).decode(e);class A{constructor(e,t,r){this.name=e,this.prefix=t,this.baseEncode=r}encode(e){if(e instanceof Uint8Array)return`${this.prefix}${this.baseEncode(e)}`;throw Error("Unknown type, must be binary type")}}class j{constructor(e,t,r){if(this.name=e,this.prefix=t,void 0===t.codePointAt(0))throw new Error("Invalid prefix character");this.prefixCodePoint=t.codePointAt(0),this.baseDecode=r}decode(e){if("string"===typeof e){if(e.codePointAt(0)!==this.prefixCodePoint)throw Error(`Unable to decode multibase string ${JSON.stringify(e)}, ${this.name} decoder only supports inputs prefixed with ${this.prefix}`);return this.baseDecode(e.slice(this.prefix.length))}throw Error("Can only multibase decode strings")}or(e){return k(this,e)}}class S{constructor(e){this.decoders=e}or(e){return k(this,e)}decode(e){const t=e[0],r=this.decoders[t];if(r)return r.decode(e);throw RangeError(`Unable to decode multibase string ${JSON.stringify(e)}, only inputs prefixed with ${Object.keys(this.decoders)} are supported`)}}const k=(e,t)=>new S({...e.decoders||{[e.prefix]:e},...t.decoders||{[t.prefix]:t}});class E{constructor(e,t,r,n){this.name=e,this.prefix=t,this.baseEncode=r,this.baseDecode=n,this.encoder=new A(e,t,r),this.decoder=new j(e,t,n)}encode(e){return this.encoder.encode(e)}decode(e){return this.decoder.decode(e)}}const P=({name:e,prefix:t,encode:r,decode:n})=>new E(e,t,r,n),T=({prefix:e,name:t,alphabet:r})=>{const{encode:n,decode:o}=w(r,t);return P({prefix:e,name:t,encode:n,decode:e=>_(o(e))})},I=(e,t,r,n)=>{const o={};for(let l=0;l=8&&(s-=8,a[c++]=255&u>>s)}if(s>=r||255&u<<8-s)throw new SyntaxError("Unexpected end of data");return a},C=(e,t,r)=>{const n="="===t[t.length-1],o=(1<r)a-=r,i+=t[o&s>>a]}if(a&&(i+=t[o&s<P({prefix:t,name:e,encode(e){return C(e,n,r)},decode(t){return I(t,n,r,e)}}),z=P({prefix:"\0",name:"identity",encode:e=>O(e),decode:e=>x(e)}),N=L({prefix:"0",name:"base2",alphabet:"01",bitsPerChar:1}),M=L({prefix:"7",name:"base8",alphabet:"01234567",bitsPerChar:3}),U=T({prefix:"9",name:"base10",alphabet:"0123456789"}),B=L({prefix:"f",name:"base16",alphabet:"0123456789abcdef",bitsPerChar:4}),F=L({prefix:"F",name:"base16upper",alphabet:"0123456789ABCDEF",bitsPerChar:4}),R=L({prefix:"b",name:"base32",alphabet:"abcdefghijklmnopqrstuvwxyz234567",bitsPerChar:5}),$=L({prefix:"B",name:"base32upper",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567",bitsPerChar:5}),W=L({prefix:"c",name:"base32pad",alphabet:"abcdefghijklmnopqrstuvwxyz234567=",bitsPerChar:5}),D=L({prefix:"C",name:"base32padupper",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567=",bitsPerChar:5}),Z=L({prefix:"v",name:"base32hex",alphabet:"0123456789abcdefghijklmnopqrstuv",bitsPerChar:5}),K=L({prefix:"V",name:"base32hexupper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV",bitsPerChar:5}),V=L({prefix:"t",name:"base32hexpad",alphabet:"0123456789abcdefghijklmnopqrstuv=",bitsPerChar:5}),q=L({prefix:"T",name:"base32hexpadupper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV=",bitsPerChar:5}),J=L({prefix:"h",name:"base32z",alphabet:"ybndrfg8ejkmcpqxot1uwisza345h769",bitsPerChar:5}),G=T({prefix:"k",name:"base36",alphabet:"0123456789abcdefghijklmnopqrstuvwxyz"}),X=T({prefix:"K",name:"base36upper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"}),H=T({name:"base58btc",prefix:"z",alphabet:"123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"}),Y=T({name:"base58flickr",prefix:"Z",alphabet:"123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ"}),Q=L({prefix:"m",name:"base64",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",bitsPerChar:6}),ee=L({prefix:"M",name:"base64pad",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",bitsPerChar:6}),te=L({prefix:"u",name:"base64url",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_",bitsPerChar:6}),re=L({prefix:"U",name:"base64urlpad",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_=",bitsPerChar:6}),ne=Array.from("🚀🪐☄🛰🌌🌑🌒🌓🌔🌕🌖🌗🌘🌍🌏🌎🐉☀💻🖥💾💿😂❤😍🤣😊🙏💕😭😘👍😅👏😁🔥🥰💔💖💙😢🤔😆🙄💪😉☺👌🤗💜😔😎😇🌹🤦🎉💞✌✨🤷😱😌🌸🙌😋💗💚😏💛🙂💓🤩😄😀🖤😃💯🙈👇🎶😒🤭❣😜💋👀😪😑💥🙋😞😩😡🤪👊🥳😥🤤👉💃😳✋😚😝😴🌟😬🙃🍀🌷😻😓⭐✅🥺🌈😈🤘💦✔😣🏃💐☹🎊💘😠☝😕🌺🎂🌻😐🖕💝🙊😹🗣💫💀👑🎵🤞😛🔴😤🌼😫⚽🤙☕🏆🤫👈😮🙆🍻🍃🐶💁😲🌿🧡🎁⚡🌞🎈❌✊👋😰🤨😶🤝🚶💰🍓💢🤟🙁🚨💨🤬✈🎀🍺🤓😙💟🌱😖👶🥴▶➡❓💎💸⬇😨🌚🦋😷🕺⚠🙅😟😵👎🤲🤠🤧📌🔵💅🧐🐾🍒😗🤑🌊🤯🐷☎💧😯💆👆🎤🙇🍑❄🌴💣🐸💌📍🥀🤢👅💡💩👐📸👻🤐🤮🎼🥵🚩🍎🍊👼💍📣🥂"),oe=ne.reduce(((e,t,r)=>(e[r]=t,e)),[]),ie=ne.reduce(((e,t,r)=>(e[t.codePointAt(0)]=r,e)),[]);function ae(e){return e.reduce(((e,t)=>(e+=oe[t],e)),"")}function se(e){const t=[];for(const r of e){const e=ie[r.codePointAt(0)];if(void 0===e)throw new Error(`Non-base256emoji character: ${r}`);t.push(e)}return new Uint8Array(t)}const ue=P({prefix:"🚀",name:"base256emoji",encode:ae,decode:se});var ce=he,le=128,fe=127,pe=~fe,de=Math.pow(2,31);function he(e,t,r){t=t||[],r=r||0;var n=r;while(e>=de)t[r++]=255&e|le,e/=128;while(e&pe)t[r++]=255&e|le,e>>>=7;return t[r]=0|e,he.bytes=r-n+1,t}var ye=be,ve=128,me=127;function be(e,t){var r,n=0,o=(t=t||0,0),i=t,a=e.length;do{if(i>=a)throw be.bytes=0,new RangeError("Could not decode varint");r=e[i++],n+=o<28?(r&me)<=ve);return be.bytes=i-t,n}var ge=Math.pow(2,7),we=Math.pow(2,14),_e=Math.pow(2,21),xe=Math.pow(2,28),Oe=Math.pow(2,35),Ae=Math.pow(2,42),je=Math.pow(2,49),Se=Math.pow(2,56),ke=Math.pow(2,63),Ee=function(e){return e(Ie.encode(e,t,r),t),Le=e=>Ie.encodingLength(e),ze=(e,t)=>{const r=t.byteLength,n=Le(e),o=n+Le(r),i=new Uint8Array(o+r);return Ce(e,i,0),Ce(r,i,n),i.set(t,o),new Ne(e,r,t,i)};class Ne{constructor(e,t,r,n){this.code=e,this.size=t,this.digest=r,this.bytes=n}}const Me=({name:e,code:t,encode:r})=>new Ue(e,t,r);class Ue{constructor(e,t,r){this.name=e,this.code=t,this.encode=r}digest(e){if(e instanceof Uint8Array){const t=this.encode(e);return t instanceof Uint8Array?ze(this.code,t):t.then((e=>ze(this.code,e)))}throw Error("Unknown type, must be binary type")}}const Be=e=>async t=>new Uint8Array(await crypto.subtle.digest(e,t)),Fe=Me({name:"sha2-256",code:18,encode:Be("SHA-256")}),Re=Me({name:"sha2-512",code:19,encode:Be("SHA-512")}),$e=0,We="identity",De=_,Ze=e=>ze($e,De(e)),Ke={code:$e,name:We,encode:De,digest:Ze},Ve="raw",qe=85,Je=e=>_(e),Ge=e=>_(e),Xe=new TextEncoder,He=new TextDecoder,Ye="json",Qe=512,et=e=>Xe.encode(JSON.stringify(e)),tt=e=>JSON.parse(He.decode(e));Symbol.toStringTag,Symbol.for("nodejs.util.inspect.custom");Symbol.for("@ipld/js-cid/CID");const rt={...n,...o,...i,...a,...s,...u,...c,...l,...f,...p};var nt=r(53160);function ot(e,t,r,n){return{name:e,prefix:t,encoder:{name:e,prefix:t,encode:r},decoder:{decode:n}}}const it=ot("utf8","u",(e=>{const t=new TextDecoder("utf8");return"u"+t.decode(e)}),(e=>{const t=new TextEncoder;return t.encode(e.substring(1))})),at=ot("ascii","a",(e=>{let t="a";for(let r=0;r{e=e.substring(1);const t=(0,nt.E)(e.length);for(let r=0;r{r.d(t,{Z:()=>u});var a=function(){var e=this,t=e._self._c;return t("div",{staticClass:"toastification"},[t("div",{staticClass:"d-flex align-items-start"},[t("b-avatar",{staticClass:"mr-75 flex-shrink-0",attrs:{variant:e.variant,size:"1.8rem"}},[t("feather-icon",{attrs:{icon:e.icon,size:"15"}})],1),t("div",{staticClass:"d-flex flex-grow-1"},[t("div",[e.title?t("h5",{staticClass:"mb-0 font-weight-bolder toastification-title",class:`text-${e.variant}`,domProps:{textContent:e._s(e.title)}}):e._e(),e.text?t("small",{staticClass:"d-inline-block text-body",domProps:{textContent:e._s(e.text)}}):e._e()]),t("span",{staticClass:"cursor-pointer toastification-close-icon ml-auto",on:{click:function(t){return e.$emit("close-toast")}}},[e.hideClose?e._e():t("feather-icon",{staticClass:"text-body",attrs:{icon:"XIcon"}})],1)])],1)])},n=[],s=r(47389);const o={components:{BAvatar:s.SH},props:{variant:{type:String,default:"primary"},icon:{type:String,default:null},title:{type:String,default:null},text:{type:String,default:null},hideClose:{type:Boolean,default:!1}}},i=o;var l=r(1001),c=(0,l.Z)(i,a,n,!1,null,"22d964ca",null);const u=c.exports},1540:(e,t,r)=>{r.r(t),r.d(t,{default:()=>P});var a=function(){var e=this,t=e._self._c;return t("div",[t("h6",{staticClass:"mb-1"},[e._v(" Click the 'Download File' button to download the log. This may take a few minutes depending on file size. ")]),t("h6",{staticClass:"mb-1"},[e._v(" Click the 'Show File' button to view the last 100 lines of the log file. ")]),t("b-row",e._l(e.logTypes,(function(r){return t("b-col",{key:r},[t("b-card",{attrs:{title:`${e.capitalizeWord(r)} File`}},[t("div",[t("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"mr-1",attrs:{id:`start-download-${r}`,variant:"outline-primary",size:"md",block:""}},[e._v(" Download File ")]),e.total[r]&&e.downloaded[r]?t("div",{staticClass:"d-flex",staticStyle:{width:"300px"}},[t("b-card-text",{staticClass:"mt-1 mb-0 mr-auto"},[e._v(" "+e._s(`${(e.downloaded[r]/1e6).toFixed(2)} / ${(e.total[r]/1e6).toFixed(2)}`)+" MB - "+e._s(`${(e.downloaded[r]/e.total[r]*100).toFixed(2)}%`)+" ")]),t("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"btn-icon cancel-button",attrs:{variant:"danger",size:"sm"},on:{click:function(t){return e.cancelDownload(r)}}},[e._v(" x ")])],1):e._e(),t("b-popover",{ref:"popover",refInFor:!0,attrs:{target:`start-download-${r}`,triggers:"click",show:e.downloadPopoverShow[r],placement:"auto",container:"my-container"},on:{"update:show":function(t){return e.$set(e.downloadPopoverShow,r,t)}},scopedSlots:e._u([{key:"title",fn:function(){return[t("div",{staticClass:"d-flex justify-content-between align-items-center"},[t("span",[e._v("Are You Sure?")]),t("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"close",attrs:{variant:"transparent","aria-label":"Close"},on:{click:function(t){return e.onDownloadClose(r)}}},[t("span",{staticClass:"d-inline-block text-white",attrs:{"aria-hidden":"true"}},[e._v("×")])])],1)]},proxy:!0}],null,!0)},[t("div",[t("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"mr-1",attrs:{size:"sm",variant:"danger"},on:{click:function(t){return e.onDownloadClose(r)}}},[e._v(" Cancel ")]),t("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],attrs:{size:"sm",variant:"primary"},on:{click:function(t){return e.onDownloadOk(r)}}},[e._v(" Download "+e._s(e.capitalizeWord(r))+" ")])],1)]),t("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"mr-1 mt-1",attrs:{id:`start-tail-${r}`,variant:"outline-primary",size:"md",block:""}},[e._v(" Show File ")]),t("b-popover",{ref:"popover",refInFor:!0,attrs:{target:`start-tail-${r}`,triggers:"click",show:e.tailPopoverShow[r],placement:"auto",container:"my-container"},on:{"update:show":function(t){return e.$set(e.tailPopoverShow,r,t)}},scopedSlots:e._u([{key:"title",fn:function(){return[t("div",{staticClass:"d-flex justify-content-between align-items-center"},[t("span",[e._v("Are You Sure?")]),t("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"close",attrs:{variant:"transparent","aria-label":"Close"},on:{click:function(t){return e.onTailClose(r)}}},[t("span",{staticClass:"d-inline-block text-white",attrs:{"aria-hidden":"true"}},[e._v("×")])])],1)]},proxy:!0}],null,!0)},[t("div",[t("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"mr-1",attrs:{size:"sm",variant:"danger"},on:{click:function(t){return e.onTailClose(r)}}},[e._v(" Cancel ")]),t("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],attrs:{size:"sm",variant:"primary"},on:{click:function(t){return e.onTailOk(r)}}},[e._v(" Show "+e._s(e.capitalizeWord(r))+" ")])],1)])],1)])],1)})),1),e.callResponse.data.message?t("b-card",[t("b-btn",{staticClass:"top-right",attrs:{variant:"danger"},on:{click:e.closeTextArea}},[t("b-icon",{attrs:{icon:"x"}})],1),t("b-form-textarea",{staticClass:"mt-1",attrs:{plaintext:"","no-resize":"",rows:"30",value:e.callResponse.data.message}})],1):e._e(),t("request-history")],1)},n=[],s=(r(98858),r(61318),r(33228),r(86855)),o=r(50725),i=r(26253),l=r(15193),c=r(53862),u=r(333),d=r(64206),p=r(34547),h=function(){var e=this,t=e._self._c;return t("div",[t("b-card",[t("b-row",[t("b-col",{attrs:{align:"center"}},[e._v(" 1 Min Requests: "+e._s(e.oneMinuteRequests)+" ")]),t("b-col",{attrs:{align:"center"}},[e._v(" 5 Min Requests: "+e._s(e.fiveMinuteRequests)+" ")]),t("b-col",{attrs:{align:"center"}},[e._v(" 15 Min Requests: "+e._s(e.fifteenMinuteRequests)+" ")]),t("b-col",{attrs:{align:"center"}},[e._v(" Total Requests: "+e._s(e.totalRequests)+" ")])],1)],1),t("b-container",{staticClass:"p-0 wrapper",attrs:{fluid:""}},[t("b-table",{ref:"primaryTable",staticClass:"primary-table",attrs:{caption:"Outbound Requests","caption-top":"","table-variant":"secondary",items:e.primaryRows,fields:e.primaryFields,bordered:"",responsive:"","sticky-header":"100%","primary-key":"target",hover:"",fixed:"","no-border-collapse":"","show-empty":""},on:{"row-clicked":e.onRowClicked},scopedSlots:e._u([{key:"cell(lastSeen)",fn:function(t){return[e._v(" "+e._s(e.timestampToLastSeen(t.item.lastSeen))+" ")]}},{key:"row-details",fn:function({item:r}){return[t("b-table",{ref:`requestsTable_${r.target}`,attrs:{items:r.requests,fields:e.secondaryFields,"no-border-collapse":"",fixed:"",small:"","sticky-header":"400px","primary-key":"id"},scopedSlots:e._u([{key:"cell(timestamp)",fn:function(t){return[e._v(" "+e._s(new Date(t.item.timestamp).toISOString())+" ")]}}],null,!0)})]}}])})],1)],1)},f=[],m=(r(70560),r(53920));const g={components:{},data(){return{accessViaIp:!1,refreshTimer:null,socket:null,now:Date.now(),totalRequests:0,targets:{},primaryRows:[],secondaryRows:[],detailsRow:null,primaryFields:[{key:"target"},{key:"count",class:"small-col"},{key:"lastSeen",class:"small-col"}],secondaryFields:[{key:"verb"},{key:"params"},{key:"timeout"},{key:"timestamp"}]}},computed:{oneMinuteRequests(){const e=this.now-6e4;return this.requestsSinceTimestamp(e)},fiveMinuteRequests(){const e=this.now-3e5;return this.requestsSinceTimestamp(e)},fifteenMinuteRequests(){const e=this.now-9e5;return this.requestsSinceTimestamp(e)}},beforeMount(){const{hostname:e}=window.location;this.accessViaIp=!/[a-z]/i.test(e)},mounted(){!this.socket&&this.accessViaIp&&this.connectSocket(),this.refreshTimer=setInterval((()=>{this.now=Date.now()}),5e3)},unmounted(){this.socket&&this.socket.disconnect(),clearInterval(this.refreshTimer)},methods:{requestsSinceTimestamp(e){return Object.values(this.targets).flatMap((t=>t.filter((t=>t.timestamp>e)))).length},timestampToLastSeen(e){const t=Math.max(this.now-e,0),r=new Date(t).toISOString().substring(11,19);return r},generatePrimaryRow(e){const t=this.targets[e],r=t.length,{timestamp:a}=this.latestRequest(e),n={target:e,lastSeen:a,count:r,requests:t};return n},historyAddedHandler(e){this.primaryRows.length=0,this.targets=e,Object.keys(this.targets).forEach((e=>{this.primaryRows.push(this.generatePrimaryRow(e))})),this.totalRequests=Object.values(this.targets).reduce(((e,t)=>e+t.length),0)},requestAddedHandler(e){const{target:t,requestData:r}=e;t in this.targets||(this.targets[t]=[]),this.targets[t].push(r);const a=this.generatePrimaryRow(t),n=this.primaryRows.find((e=>e.target===t));n?(n.count=a.count,n.lastSeen=a.lastSeen):this.primaryRows.push(a),this.totalRequests+=1},requestRemovedHandler(e){const{target:t,id:r}=e;if(!(t in this.targets))return;const a=this.targets[t],n=a.findIndex((e=>e.id===r)),s=this.primaryRows.findIndex((e=>e.target===t));-1!==n?(a.splice(n,1),this.primaryRows[s].count-=1,a.length||(delete this.targets[t],this.primaryRows.splice(s,1)),this.totalRequests-=1):console.log("Unknown request, skipping")},connectSocket(){const{protocol:e,hostname:t,port:r}=window.location,a="127.0.0.1"===t?3333:+r+1,n=`${e}//${t}:${a}/debug`,s=localStorage.getItem("zelidauth");s&&(this.socket=(0,m.ZP)(n,{query:{roomName:"outboundHttp",authDetails:s},autoConnect:!1}),this.socket.on("connect",(()=>{console.log("connected")})),this.socket.on("addHistory",(e=>this.historyAddedHandler(e))),this.socket.on("addRequest",(e=>this.requestAddedHandler(e))),this.socket.on("removeRequest",(e=>this.requestRemovedHandler(e))),this.socket.connect())},latestRequest(e){const t=this.targets[e].reduce(((e,t)=>e&&e.timestamp>t.timestamp?e:t));return t},onRowClicked(e){const{detailsRow:t}=this;t&&t!==e&&(t._showDetails=!1),this.$set(e,"_showDetails",!e._showDetails),this.detailsRow=e}}},v=g;var b=r(1001),w=(0,b.Z)(v,h,f,!1,null,null,null);const x=w.exports;var y=r(20266),k=r(87066),S=r(39055);const R={components:{BCard:s._,BCol:o.l,BRow:i.T,BButton:l.T,BPopover:c.x,BFormTextarea:u.y,BCardText:d.j,RequestHistory:x,ToastificationContent:p.Z},directives:{Ripple:y.Z},data(){return{downloadPopoverShow:{},tailPopoverShow:{},abortToken:{},downloaded:{},total:{},callResponse:{status:"",data:{}},logTypes:["error","warn","info","debug"]}},computed:{fluxLogTail(){return this.callResponse.data.message?this.callResponse.data.message.split("\n").reverse().filter((e=>""!==e)).join("\n"):this.callResponse.data}},methods:{closeTextArea(){this.callResponse={status:"",data:{}}},cancelDownload(e){this.abortToken[e].cancel("User download cancelled"),this.downloaded[e]="",this.total[e]=""},onDownloadClose(e){this.downloadPopoverShow[e]=!1},async onDownloadOk(e){const t=this;t.abortToken[e]&&t.abortToken[e].cancel(),this.downloadPopoverShow[e]=!1;const r=k["default"].CancelToken,a=r.source();this.abortToken[e]=a;const n=localStorage.getItem("zelidauth"),s={headers:{zelidauth:n},responseType:"blob",onDownloadProgress(r){t.downloaded[e]=r.loaded,t.total[e]=r.total,t.$forceUpdate()},cancelToken:t.abortToken[e].token},o=await S.Z.justAPI().get(`/flux/${e}log`,s),i=window.URL.createObjectURL(new Blob([o.data])),l=document.createElement("a");l.href=i,l.setAttribute("download",`${e}.log`),document.body.appendChild(l),l.click()},onTailClose(e){this.tailPopoverShow[e]=!1},async onTailOk(e){this.tailPopoverShow[e]=!1;const t=localStorage.getItem("zelidauth");S.Z.tailFluxLog(e,t).then((e=>{"error"===e.data.status?this.$toast({component:p.Z,props:{title:e.data.data.message||e.data.data,icon:"InfoIcon",variant:"danger"}}):(this.callResponse.status=e.data.status,this.callResponse.data=e.data.data)})).catch((t=>{this.$toast({component:p.Z,props:{title:`Error while trying to get latest ${e} log`,icon:"InfoIcon",variant:"danger"}}),console.log(t)}))},capitalizeWord(e){return e[0].toUpperCase()+e.slice(1)}}},C=R;var _=(0,b.Z)(C,a,n,!1,null,null,null);const P=_.exports},39055:(e,t,r)=>{r.d(t,{Z:()=>n});var a=r(80914);const n={softUpdateFlux(e){return(0,a.Z)().get("/flux/softupdateflux",{headers:{zelidauth:e}})},softUpdateInstallFlux(e){return(0,a.Z)().get("/flux/softupdatefluxinstall",{headers:{zelidauth:e}})},updateFlux(e){return(0,a.Z)().get("/flux/updateflux",{headers:{zelidauth:e}})},hardUpdateFlux(e){return(0,a.Z)().get("/flux/hardupdateflux",{headers:{zelidauth:e}})},rebuildHome(e){return(0,a.Z)().get("/flux/rebuildhome",{headers:{zelidauth:e}})},updateDaemon(e){return(0,a.Z)().get("/flux/updatedaemon",{headers:{zelidauth:e}})},reindexDaemon(e){return(0,a.Z)().get("/flux/reindexdaemon",{headers:{zelidauth:e}})},updateBenchmark(e){return(0,a.Z)().get("/flux/updatebenchmark",{headers:{zelidauth:e}})},getFluxVersion(){return(0,a.Z)().get("/flux/version")},broadcastMessage(e,t){const r=t,n={headers:{zelidauth:e}};return(0,a.Z)().post("/flux/broadcastmessage",JSON.stringify(r),n)},connectedPeers(){return(0,a.Z)().get(`/flux/connectedpeers?timestamp=${Date.now()}`)},connectedPeersInfo(){return(0,a.Z)().get(`/flux/connectedpeersinfo?timestamp=${Date.now()}`)},incomingConnections(){return(0,a.Z)().get(`/flux/incomingconnections?timestamp=${Date.now()}`)},incomingConnectionsInfo(){return(0,a.Z)().get(`/flux/incomingconnectionsinfo?timestamp=${Date.now()}`)},addPeer(e,t){return(0,a.Z)().get(`/flux/addpeer/${t}`,{headers:{zelidauth:e}})},removePeer(e,t){return(0,a.Z)().get(`/flux/removepeer/${t}`,{headers:{zelidauth:e}})},removeIncomingPeer(e,t){return(0,a.Z)().get(`/flux/removeincomingpeer/${t}`,{headers:{zelidauth:e}})},adjustKadena(e,t,r){return(0,a.Z)().get(`/flux/adjustkadena/${t}/${r}`,{headers:{zelidauth:e}})},adjustRouterIP(e,t){return(0,a.Z)().get(`/flux/adjustrouterip/${t}`,{headers:{zelidauth:e}})},adjustBlockedPorts(e,t){const r={blockedPorts:t},n={headers:{zelidauth:e}};return(0,a.Z)().post("/flux/adjustblockedports",r,n)},adjustAPIPort(e,t){return(0,a.Z)().get(`/flux/adjustapiport/${t}`,{headers:{zelidauth:e}})},adjustBlockedRepositories(e,t){const r={blockedRepositories:t},n={headers:{zelidauth:e}};return(0,a.Z)().post("/flux/adjustblockedrepositories",r,n)},getKadenaAccount(){const e={headers:{"x-apicache-bypass":!0}};return(0,a.Z)().get("/flux/kadena",e)},getRouterIP(){const e={headers:{"x-apicache-bypass":!0}};return(0,a.Z)().get("/flux/routerip",e)},getBlockedPorts(){const e={headers:{"x-apicache-bypass":!0}};return(0,a.Z)().get("/flux/blockedports",e)},getAPIPort(){const e={headers:{"x-apicache-bypass":!0}};return(0,a.Z)().get("/flux/apiport",e)},getBlockedRepositories(){const e={headers:{"x-apicache-bypass":!0}};return(0,a.Z)().get("/flux/blockedrepositories",e)},getMarketPlaceURL(){return(0,a.Z)().get("/flux/marketplaceurl")},getZelid(){const e={headers:{"x-apicache-bypass":!0}};return(0,a.Z)().get("/flux/zelid",e)},getStaticIpInfo(){return(0,a.Z)().get("/flux/staticip")},restartFluxOS(e){const t={headers:{zelidauth:e,"x-apicache-bypass":!0}};return(0,a.Z)().get("/flux/restart",t)},tailFluxLog(e,t){return(0,a.Z)().get(`/flux/tail${e}log`,{headers:{zelidauth:t}})},justAPI(){return(0,a.Z)()},cancelToken(){return a.S}}},84328:(e,t,r)=>{var a=r(65290),n=r(27578),s=r(6310),o=function(e){return function(t,r,o){var i,l=a(t),c=s(l),u=n(o,c);if(e&&r!==r){while(c>u)if(i=l[u++],i!==i)return!0}else for(;c>u;u++)if((e||u in l)&&l[u]===r)return e||u||0;return!e&&-1}};e.exports={includes:o(!0),indexOf:o(!1)}},5649:(e,t,r)=>{var a=r(67697),n=r(92297),s=TypeError,o=Object.getOwnPropertyDescriptor,i=a&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(e){return e instanceof TypeError}}();e.exports=i?function(e,t){if(n(e)&&!o(e,"length").writable)throw new s("Cannot set read only .length");return e.length=t}:function(e,t){return e.length=t}},50926:(e,t,r)=>{var a=r(23043),n=r(69985),s=r(6648),o=r(44201),i=o("toStringTag"),l=Object,c="Arguments"===s(function(){return arguments}()),u=function(e,t){try{return e[t]}catch(r){}};e.exports=a?s:function(e){var t,r,a;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(r=u(t=l(e),i))?r:c?s(t):"Object"===(a=s(t))&&n(t.callee)?"Arguments":a}},8758:(e,t,r)=>{var a=r(36812),n=r(19152),s=r(82474),o=r(72560);e.exports=function(e,t,r){for(var i=n(t),l=o.f,c=s.f,u=0;u{var a=r(98702),n=r(72560);e.exports=function(e,t,r){return r.get&&a(r.get,t,{getter:!0}),r.set&&a(r.set,t,{setter:!0}),n.f(e,t,r)}},55565:e=>{var t=TypeError,r=9007199254740991;e.exports=function(e){if(e>r)throw t("Maximum allowed index exceeded");return e}},72739:e=>{e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},79989:(e,t,r)=>{var a=r(19037),n=r(82474).f,s=r(75773),o=r(11880),i=r(95014),l=r(8758),c=r(35266);e.exports=function(e,t){var r,u,d,p,h,f,m=e.target,g=e.global,v=e.stat;if(u=g?a:v?a[m]||i(m,{}):(a[m]||{}).prototype,u)for(d in t){if(h=t[d],e.dontCallGetSet?(f=n(u,d),p=f&&f.value):p=u[d],r=c(g?d:m+(v?".":"#")+d,e.forced),!r&&void 0!==p){if(typeof h==typeof p)continue;l(h,p)}(e.sham||p&&p.sham)&&s(h,"sham",!0),o(u,d,h,e)}}},94413:(e,t,r)=>{var a=r(68844),n=r(3689),s=r(6648),o=Object,i=a("".split);e.exports=n((function(){return!o("z").propertyIsEnumerable(0)}))?function(e){return"String"===s(e)?i(e,""):o(e)}:o},92297:(e,t,r)=>{var a=r(6648);e.exports=Array.isArray||function(e){return"Array"===a(e)}},35266:(e,t,r)=>{var a=r(3689),n=r(69985),s=/#|\.prototype\./,o=function(e,t){var r=l[i(e)];return r===u||r!==c&&(n(t)?a(t):!!t)},i=o.normalize=function(e){return String(e).replace(s,".").toLowerCase()},l=o.data={},c=o.NATIVE="N",u=o.POLYFILL="P";e.exports=o},6310:(e,t,r)=>{var a=r(43126);e.exports=function(e){return a(e.length)}},58828:e=>{var t=Math.ceil,r=Math.floor;e.exports=Math.trunc||function(e){var a=+e;return(a>0?r:t)(a)}},82474:(e,t,r)=>{var a=r(67697),n=r(22615),s=r(49556),o=r(75684),i=r(65290),l=r(18360),c=r(36812),u=r(68506),d=Object.getOwnPropertyDescriptor;t.f=a?d:function(e,t){if(e=i(e),t=l(t),u)try{return d(e,t)}catch(r){}if(c(e,t))return o(!n(s.f,e,t),e[t])}},72741:(e,t,r)=>{var a=r(54948),n=r(72739),s=n.concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return a(e,s)}},7518:(e,t)=>{t.f=Object.getOwnPropertySymbols},54948:(e,t,r)=>{var a=r(68844),n=r(36812),s=r(65290),o=r(84328).indexOf,i=r(57248),l=a([].push);e.exports=function(e,t){var r,a=s(e),c=0,u=[];for(r in a)!n(i,r)&&n(a,r)&&l(u,r);while(t.length>c)n(a,r=t[c++])&&(~o(u,r)||l(u,r));return u}},49556:(e,t)=>{var r={}.propertyIsEnumerable,a=Object.getOwnPropertyDescriptor,n=a&&!r.call({1:2},1);t.f=n?function(e){var t=a(this,e);return!!t&&t.enumerable}:r},19152:(e,t,r)=>{var a=r(76058),n=r(68844),s=r(72741),o=r(7518),i=r(85027),l=n([].concat);e.exports=a("Reflect","ownKeys")||function(e){var t=s.f(i(e)),r=o.f;return r?l(t,r(e)):t}},27578:(e,t,r)=>{var a=r(68700),n=Math.max,s=Math.min;e.exports=function(e,t){var r=a(e);return r<0?n(r+t,0):s(r,t)}},65290:(e,t,r)=>{var a=r(94413),n=r(74684);e.exports=function(e){return a(n(e))}},68700:(e,t,r)=>{var a=r(58828);e.exports=function(e){var t=+e;return t!==t||0===t?0:a(t)}},43126:(e,t,r)=>{var a=r(68700),n=Math.min;e.exports=function(e){return e>0?n(a(e),9007199254740991):0}},23043:(e,t,r)=>{var a=r(44201),n=a("toStringTag"),s={};s[n]="z",e.exports="[object z]"===String(s)},34327:(e,t,r)=>{var a=r(50926),n=String;e.exports=function(e){if("Symbol"===a(e))throw new TypeError("Cannot convert a Symbol value to a string");return n(e)}},21500:e=>{var t=TypeError;e.exports=function(e,r){if(e{var a=r(79989),n=r(90690),s=r(6310),o=r(5649),i=r(55565),l=r(3689),c=l((function(){return 4294967297!==[].push.call({length:4294967296},1)})),u=function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(e){return e instanceof TypeError}},d=c||!u();a({target:"Array",proto:!0,arity:1,forced:d},{push:function(e){var t=n(this),r=s(t),a=arguments.length;i(r+a);for(var l=0;l{var a=r(11880),n=r(68844),s=r(34327),o=r(21500),i=URLSearchParams,l=i.prototype,c=n(l.append),u=n(l["delete"]),d=n(l.forEach),p=n([].push),h=new i("a=1&a=2&b=3");h["delete"]("a",1),h["delete"]("b",void 0),h+""!=="a=2"&&a(l,"delete",(function(e){var t=arguments.length,r=t<2?void 0:arguments[1];if(t&&void 0===r)return u(this,e);var a=[];d(this,(function(e,t){p(a,{key:t,value:e})})),o(t,1);var n,i=s(e),l=s(r),h=0,f=0,m=!1,g=a.length;while(h{var a=r(11880),n=r(68844),s=r(34327),o=r(21500),i=URLSearchParams,l=i.prototype,c=n(l.getAll),u=n(l.has),d=new i("a=1");!d.has("a",2)&&d.has("a",void 0)||a(l,"has",(function(e){var t=arguments.length,r=t<2?void 0:arguments[1];if(t&&void 0===r)return u(this,e);var a=c(this,e);o(t,1);var n=s(r),i=0;while(i{var a=r(67697),n=r(68844),s=r(62148),o=URLSearchParams.prototype,i=n(o.forEach);a&&!("size"in o)&&s(o,"size",{get:function(){var e=0;return i(this,(function(){e++})),e},configurable:!0,enumerable:!0})}}]); \ No newline at end of file +"use strict";(self["webpackChunkflux"]=self["webpackChunkflux"]||[]).push([[1540],{34547:(e,t,a)=>{a.d(t,{Z:()=>d});var s=function(){var e=this,t=e._self._c;return t("div",{staticClass:"toastification"},[t("div",{staticClass:"d-flex align-items-start"},[t("b-avatar",{staticClass:"mr-75 flex-shrink-0",attrs:{variant:e.variant,size:"1.8rem"}},[t("feather-icon",{attrs:{icon:e.icon,size:"15"}})],1),t("div",{staticClass:"d-flex flex-grow-1"},[t("div",[e.title?t("h5",{staticClass:"mb-0 font-weight-bolder toastification-title",class:`text-${e.variant}`,domProps:{textContent:e._s(e.title)}}):e._e(),e.text?t("small",{staticClass:"d-inline-block text-body",domProps:{textContent:e._s(e.text)}}):e._e()]),t("span",{staticClass:"cursor-pointer toastification-close-icon ml-auto",on:{click:function(t){return e.$emit("close-toast")}}},[e.hideClose?e._e():t("feather-icon",{staticClass:"text-body",attrs:{icon:"XIcon"}})],1)])],1)])},r=[],o=a(47389);const n={components:{BAvatar:o.SH},props:{variant:{type:String,default:"primary"},icon:{type:String,default:null},title:{type:String,default:null},text:{type:String,default:null},hideClose:{type:Boolean,default:!1}}},i=n;var l=a(1001),c=(0,l.Z)(i,s,r,!1,null,"22d964ca",null);const d=c.exports},1540:(e,t,a)=>{a.r(t),a.d(t,{default:()=>Z});var s=function(){var e=this,t=e._self._c;return t("div",[t("h6",{staticClass:"mb-1"},[e._v(" Click the 'Download File' button to download the log. This may take a few minutes depending on file size. ")]),t("h6",{staticClass:"mb-1"},[e._v(" Click the 'Show File' button to view the last 100 lines of the log file. ")]),t("b-row",e._l(e.logTypes,(function(a){return t("b-col",{key:a},[t("b-card",{attrs:{title:`${e.capitalizeWord(a)} File`}},[t("div",[t("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"mr-1",attrs:{id:`start-download-${a}`,variant:"outline-primary",size:"md",block:""}},[e._v(" Download File ")]),e.total[a]&&e.downloaded[a]?t("div",{staticClass:"d-flex",staticStyle:{width:"300px"}},[t("b-card-text",{staticClass:"mt-1 mb-0 mr-auto"},[e._v(" "+e._s(`${(e.downloaded[a]/1e6).toFixed(2)} / ${(e.total[a]/1e6).toFixed(2)}`)+" MB - "+e._s(`${(e.downloaded[a]/e.total[a]*100).toFixed(2)}%`)+" ")]),t("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"btn-icon cancel-button",attrs:{variant:"danger",size:"sm"},on:{click:function(t){return e.cancelDownload(a)}}},[e._v(" x ")])],1):e._e(),t("b-popover",{ref:"popover",refInFor:!0,attrs:{target:`start-download-${a}`,triggers:"click",show:e.downloadPopoverShow[a],placement:"auto",container:"my-container"},on:{"update:show":function(t){return e.$set(e.downloadPopoverShow,a,t)}},scopedSlots:e._u([{key:"title",fn:function(){return[t("div",{staticClass:"d-flex justify-content-between align-items-center"},[t("span",[e._v("Are You Sure?")]),t("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"close",attrs:{variant:"transparent","aria-label":"Close"},on:{click:function(t){return e.onDownloadClose(a)}}},[t("span",{staticClass:"d-inline-block text-white",attrs:{"aria-hidden":"true"}},[e._v("×")])])],1)]},proxy:!0}],null,!0)},[t("div",[t("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"mr-1",attrs:{size:"sm",variant:"danger"},on:{click:function(t){return e.onDownloadClose(a)}}},[e._v(" Cancel ")]),t("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],attrs:{size:"sm",variant:"primary"},on:{click:function(t){return e.onDownloadOk(a)}}},[e._v(" Download "+e._s(e.capitalizeWord(a))+" ")])],1)]),t("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"mr-1 mt-1",attrs:{id:`start-tail-${a}`,variant:"outline-primary",size:"md",block:""}},[e._v(" Show File ")]),t("b-popover",{ref:"popover",refInFor:!0,attrs:{target:`start-tail-${a}`,triggers:"click",show:e.tailPopoverShow[a],placement:"auto",container:"my-container"},on:{"update:show":function(t){return e.$set(e.tailPopoverShow,a,t)}},scopedSlots:e._u([{key:"title",fn:function(){return[t("div",{staticClass:"d-flex justify-content-between align-items-center"},[t("span",[e._v("Are You Sure?")]),t("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"close",attrs:{variant:"transparent","aria-label":"Close"},on:{click:function(t){return e.onTailClose(a)}}},[t("span",{staticClass:"d-inline-block text-white",attrs:{"aria-hidden":"true"}},[e._v("×")])])],1)]},proxy:!0}],null,!0)},[t("div",[t("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"mr-1",attrs:{size:"sm",variant:"danger"},on:{click:function(t){return e.onTailClose(a)}}},[e._v(" Cancel ")]),t("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],attrs:{size:"sm",variant:"primary"},on:{click:function(t){return e.onTailOk(a)}}},[e._v(" Show "+e._s(e.capitalizeWord(a))+" ")])],1)])],1)])],1)})),1),e.callResponse.data.message?t("b-card",[t("b-btn",{staticClass:"top-right",attrs:{variant:"danger"},on:{click:e.closeTextArea}},[t("b-icon",{attrs:{icon:"x"}})],1),t("b-form-textarea",{staticClass:"mt-1",attrs:{plaintext:"","no-resize":"",rows:"30",value:e.callResponse.data.message}})],1):e._e(),t("request-history")],1)},r=[],o=a(86855),n=a(50725),i=a(26253),l=a(15193),c=a(53862),d=a(333),u=a(64206),p=a(34547),h=function(){var e=this,t=e._self._c;return t("div",[t("b-card",[t("b-row",[t("b-col",{attrs:{align:"center"}},[e._v(" 1 Min Requests: "+e._s(e.oneMinuteRequests)+" ")]),t("b-col",{attrs:{align:"center"}},[e._v(" 5 Min Requests: "+e._s(e.fiveMinuteRequests)+" ")]),t("b-col",{attrs:{align:"center"}},[e._v(" 15 Min Requests: "+e._s(e.fifteenMinuteRequests)+" ")]),t("b-col",{attrs:{align:"center"}},[e._v(" Total Requests: "+e._s(e.totalRequests)+" ")])],1)],1),t("b-container",{staticClass:"p-0 wrapper",attrs:{fluid:""}},[t("b-table",{ref:"primaryTable",staticClass:"primary-table",attrs:{caption:"Outbound Requests","caption-top":"","table-variant":"secondary",items:e.primaryRows,fields:e.primaryFields,bordered:"",responsive:"","sticky-header":"100%","primary-key":"target",hover:"",fixed:"","no-border-collapse":"","show-empty":""},on:{"row-clicked":e.onRowClicked},scopedSlots:e._u([{key:"cell(lastSeen)",fn:function(t){return[e._v(" "+e._s(e.timestampToLastSeen(t.item.lastSeen))+" ")]}},{key:"row-details",fn:function({item:a}){return[t("b-table",{ref:`requestsTable_${a.target}`,attrs:{items:a.requests,fields:e.secondaryFields,"no-border-collapse":"",fixed:"",small:"","sticky-header":"400px","primary-key":"id"},scopedSlots:e._u([{key:"cell(timestamp)",fn:function(t){return[e._v(" "+e._s(new Date(t.item.timestamp).toISOString())+" ")]}}],null,!0)})]}}])})],1)],1)},m=[],g=(a(70560),a(62599));const f={components:{},data(){return{accessViaIp:!1,refreshTimer:null,socket:null,now:Date.now(),totalRequests:0,targets:{},primaryRows:[],secondaryRows:[],detailsRow:null,primaryFields:[{key:"target"},{key:"count",class:"small-col"},{key:"lastSeen",class:"small-col"}],secondaryFields:[{key:"verb"},{key:"params"},{key:"timeout"},{key:"timestamp"}]}},computed:{oneMinuteRequests(){const e=this.now-6e4;return this.requestsSinceTimestamp(e)},fiveMinuteRequests(){const e=this.now-3e5;return this.requestsSinceTimestamp(e)},fifteenMinuteRequests(){const e=this.now-9e5;return this.requestsSinceTimestamp(e)}},beforeMount(){const{hostname:e}=window.location;this.accessViaIp=!/[a-z]/i.test(e)},mounted(){!this.socket&&this.accessViaIp&&this.connectSocket(),this.refreshTimer=setInterval((()=>{this.now=Date.now()}),5e3)},unmounted(){this.socket&&this.socket.disconnect(),clearInterval(this.refreshTimer)},methods:{requestsSinceTimestamp(e){return Object.values(this.targets).flatMap((t=>t.filter((t=>t.timestamp>e)))).length},timestampToLastSeen(e){const t=Math.max(this.now-e,0),a=new Date(t).toISOString().substring(11,19);return a},generatePrimaryRow(e){const t=this.targets[e],a=t.length,{timestamp:s}=this.latestRequest(e),r={target:e,lastSeen:s,count:a,requests:t};return r},historyAddedHandler(e){this.primaryRows.length=0,this.targets=e,Object.keys(this.targets).forEach((e=>{this.primaryRows.push(this.generatePrimaryRow(e))})),this.totalRequests=Object.values(this.targets).reduce(((e,t)=>e+t.length),0)},requestAddedHandler(e){const{target:t,requestData:a}=e;t in this.targets||(this.targets[t]=[]),this.targets[t].push(a);const s=this.generatePrimaryRow(t),r=this.primaryRows.find((e=>e.target===t));r?(r.count=s.count,r.lastSeen=s.lastSeen):this.primaryRows.push(s),this.totalRequests+=1},requestRemovedHandler(e){const{target:t,id:a}=e;if(!(t in this.targets))return;const s=this.targets[t],r=s.findIndex((e=>e.id===a)),o=this.primaryRows.findIndex((e=>e.target===t));-1!==r?(s.splice(r,1),this.primaryRows[o].count-=1,s.length||(delete this.targets[t],this.primaryRows.splice(o,1)),this.totalRequests-=1):console.log("Unknown request, skipping")},connectSocket(){const{protocol:e,hostname:t,port:a}=window.location,s="127.0.0.1"===t?3333:+a+1,r=`${e}//${t}:${s}/debug`,o=localStorage.getItem("zelidauth");o&&(this.socket=(0,g.ZP)(r,{query:{roomName:"outboundHttp",authDetails:o},autoConnect:!1}),this.socket.on("connect",(()=>{console.log("connected")})),this.socket.on("addHistory",(e=>this.historyAddedHandler(e))),this.socket.on("addRequest",(e=>this.requestAddedHandler(e))),this.socket.on("removeRequest",(e=>this.requestRemovedHandler(e))),this.socket.connect())},latestRequest(e){const t=this.targets[e].reduce(((e,t)=>e&&e.timestamp>t.timestamp?e:t));return t},onRowClicked(e){const{detailsRow:t}=this;t&&t!==e&&(t._showDetails=!1),this.$set(e,"_showDetails",!e._showDetails),this.detailsRow=e}}},b=f;var v=a(1001),w=(0,v.Z)(b,h,m,!1,null,null,null);const x=w.exports;var k=a(20266),y=a(87066),R=a(39055);const C={components:{BCard:o._,BCol:n.l,BRow:i.T,BButton:l.T,BPopover:c.x,BFormTextarea:d.y,BCardText:u.j,RequestHistory:x,ToastificationContent:p.Z},directives:{Ripple:k.Z},data(){return{downloadPopoverShow:{},tailPopoverShow:{},abortToken:{},downloaded:{},total:{},callResponse:{status:"",data:{}},logTypes:["error","warn","info","debug"]}},computed:{fluxLogTail(){return this.callResponse.data.message?this.callResponse.data.message.split("\n").reverse().filter((e=>""!==e)).join("\n"):this.callResponse.data}},methods:{closeTextArea(){this.callResponse={status:"",data:{}}},cancelDownload(e){this.abortToken[e].cancel("User download cancelled"),this.downloaded[e]="",this.total[e]=""},onDownloadClose(e){this.downloadPopoverShow[e]=!1},async onDownloadOk(e){const t=this;t.abortToken[e]&&t.abortToken[e].cancel(),this.downloadPopoverShow[e]=!1;const a=y["default"].CancelToken,s=a.source();this.abortToken[e]=s;const r=localStorage.getItem("zelidauth"),o={headers:{zelidauth:r},responseType:"blob",onDownloadProgress(a){t.downloaded[e]=a.loaded,t.total[e]=a.total,t.$forceUpdate()},cancelToken:t.abortToken[e].token},n=await R.Z.justAPI().get(`/flux/${e}log`,o),i=window.URL.createObjectURL(new Blob([n.data])),l=document.createElement("a");l.href=i,l.setAttribute("download",`${e}.log`),document.body.appendChild(l),l.click()},onTailClose(e){this.tailPopoverShow[e]=!1},async onTailOk(e){this.tailPopoverShow[e]=!1;const t=localStorage.getItem("zelidauth");R.Z.tailFluxLog(e,t).then((e=>{"error"===e.data.status?this.$toast({component:p.Z,props:{title:e.data.data.message||e.data.data,icon:"InfoIcon",variant:"danger"}}):(this.callResponse.status=e.data.status,this.callResponse.data=e.data.data)})).catch((t=>{this.$toast({component:p.Z,props:{title:`Error while trying to get latest ${e} log`,icon:"InfoIcon",variant:"danger"}}),console.log(t)}))},capitalizeWord(e){return e[0].toUpperCase()+e.slice(1)}}},_=C;var S=(0,v.Z)(_,s,r,!1,null,null,null);const Z=S.exports},39055:(e,t,a)=>{a.d(t,{Z:()=>r});var s=a(80914);const r={softUpdateFlux(e){return(0,s.Z)().get("/flux/softupdateflux",{headers:{zelidauth:e}})},softUpdateInstallFlux(e){return(0,s.Z)().get("/flux/softupdatefluxinstall",{headers:{zelidauth:e}})},updateFlux(e){return(0,s.Z)().get("/flux/updateflux",{headers:{zelidauth:e}})},hardUpdateFlux(e){return(0,s.Z)().get("/flux/hardupdateflux",{headers:{zelidauth:e}})},rebuildHome(e){return(0,s.Z)().get("/flux/rebuildhome",{headers:{zelidauth:e}})},updateDaemon(e){return(0,s.Z)().get("/flux/updatedaemon",{headers:{zelidauth:e}})},reindexDaemon(e){return(0,s.Z)().get("/flux/reindexdaemon",{headers:{zelidauth:e}})},updateBenchmark(e){return(0,s.Z)().get("/flux/updatebenchmark",{headers:{zelidauth:e}})},getFluxVersion(){return(0,s.Z)().get("/flux/version")},broadcastMessage(e,t){const a=t,r={headers:{zelidauth:e}};return(0,s.Z)().post("/flux/broadcastmessage",JSON.stringify(a),r)},connectedPeers(){return(0,s.Z)().get(`/flux/connectedpeers?timestamp=${Date.now()}`)},connectedPeersInfo(){return(0,s.Z)().get(`/flux/connectedpeersinfo?timestamp=${Date.now()}`)},incomingConnections(){return(0,s.Z)().get(`/flux/incomingconnections?timestamp=${Date.now()}`)},incomingConnectionsInfo(){return(0,s.Z)().get(`/flux/incomingconnectionsinfo?timestamp=${Date.now()}`)},addPeer(e,t){return(0,s.Z)().get(`/flux/addpeer/${t}`,{headers:{zelidauth:e}})},removePeer(e,t){return(0,s.Z)().get(`/flux/removepeer/${t}`,{headers:{zelidauth:e}})},removeIncomingPeer(e,t){return(0,s.Z)().get(`/flux/removeincomingpeer/${t}`,{headers:{zelidauth:e}})},adjustKadena(e,t,a){return(0,s.Z)().get(`/flux/adjustkadena/${t}/${a}`,{headers:{zelidauth:e}})},adjustRouterIP(e,t){return(0,s.Z)().get(`/flux/adjustrouterip/${t}`,{headers:{zelidauth:e}})},adjustBlockedPorts(e,t){const a={blockedPorts:t},r={headers:{zelidauth:e}};return(0,s.Z)().post("/flux/adjustblockedports",a,r)},adjustAPIPort(e,t){return(0,s.Z)().get(`/flux/adjustapiport/${t}`,{headers:{zelidauth:e}})},adjustBlockedRepositories(e,t){const a={blockedRepositories:t},r={headers:{zelidauth:e}};return(0,s.Z)().post("/flux/adjustblockedrepositories",a,r)},getKadenaAccount(){const e={headers:{"x-apicache-bypass":!0}};return(0,s.Z)().get("/flux/kadena",e)},getRouterIP(){const e={headers:{"x-apicache-bypass":!0}};return(0,s.Z)().get("/flux/routerip",e)},getBlockedPorts(){const e={headers:{"x-apicache-bypass":!0}};return(0,s.Z)().get("/flux/blockedports",e)},getAPIPort(){const e={headers:{"x-apicache-bypass":!0}};return(0,s.Z)().get("/flux/apiport",e)},getBlockedRepositories(){const e={headers:{"x-apicache-bypass":!0}};return(0,s.Z)().get("/flux/blockedrepositories",e)},getMarketPlaceURL(){return(0,s.Z)().get("/flux/marketplaceurl")},getZelid(){const e={headers:{"x-apicache-bypass":!0}};return(0,s.Z)().get("/flux/zelid",e)},getStaticIpInfo(){return(0,s.Z)().get("/flux/staticip")},restartFluxOS(e){const t={headers:{zelidauth:e,"x-apicache-bypass":!0}};return(0,s.Z)().get("/flux/restart",t)},tailFluxLog(e,t){return(0,s.Z)().get(`/flux/tail${e}log`,{headers:{zelidauth:t}})},justAPI(){return(0,s.Z)()},cancelToken(){return s.S}}}}]); \ No newline at end of file diff --git a/HomeUI/dist/js/1573.js b/HomeUI/dist/js/1573.js index 65b6c9d6d..dd3d9730d 100644 --- a/HomeUI/dist/js/1573.js +++ b/HomeUI/dist/js/1573.js @@ -1 +1 @@ -"use strict";(globalThis["webpackChunkflux"]=globalThis["webpackChunkflux"]||[]).push([[1573],{34547:(t,e,a)=>{a.d(e,{Z:()=>c});var s=function(){var t=this,e=t._self._c;return e("div",{staticClass:"toastification"},[e("div",{staticClass:"d-flex align-items-start"},[e("b-avatar",{staticClass:"mr-75 flex-shrink-0",attrs:{variant:t.variant,size:"1.8rem"}},[e("feather-icon",{attrs:{icon:t.icon,size:"15"}})],1),e("div",{staticClass:"d-flex flex-grow-1"},[e("div",[t.title?e("h5",{staticClass:"mb-0 font-weight-bolder toastification-title",class:`text-${t.variant}`,domProps:{textContent:t._s(t.title)}}):t._e(),t.text?e("small",{staticClass:"d-inline-block text-body",domProps:{textContent:t._s(t.text)}}):t._e()]),e("span",{staticClass:"cursor-pointer toastification-close-icon ml-auto",on:{click:function(e){return t.$emit("close-toast")}}},[t.hideClose?t._e():e("feather-icon",{staticClass:"text-body",attrs:{icon:"XIcon"}})],1)])],1)])},r=[],n=a(47389);const l={components:{BAvatar:n.SH},props:{variant:{type:String,default:"primary"},icon:{type:String,default:null},title:{type:String,default:null},text:{type:String,default:null},hideClose:{type:Boolean,default:!1}}},i=l;var o=a(1001),d=(0,o.Z)(i,s,r,!1,null,"22d964ca",null);const c=d.exports},1573:(t,e,a)=>{a.r(e),a.d(e,{default:()=>m});var s=function(){var t=this,e=t._self._c;return""!==t.callResponse.data?e("b-card",{attrs:{title:"Get Benchmarks"}},[t.callResponse.data.status?e("list-entry",{attrs:{title:"Status",data:t.callResponse.data.status}}):t._e(),t.callResponse.data.architecture?e("list-entry",{attrs:{title:"Architecture",data:t.callResponse.data.architecture}}):t._e(),t.callResponse.data.time?e("list-entry",{attrs:{title:"Time",data:new Date(1e3*t.callResponse.data.time).toLocaleString("en-GB",t.timeoptions.short)}}):t._e(),t.callResponse.data.ipaddress?e("list-entry",{attrs:{title:"IP Address",data:t.callResponse.data.ipaddress}}):t._e(),t.callResponse.data.real_cores?e("list-entry",{attrs:{title:"CPU Cores",number:t.callResponse.data.real_cores}}):t._e(),t.callResponse.data.cores?e("list-entry",{attrs:{title:"CPU Threads",number:t.callResponse.data.cores}}):t._e(),t.callResponse.data.ram?e("list-entry",{attrs:{title:"RAM",data:`${t.callResponse.data.ram} GB`}}):t._e(),t.callResponse.data.disksinfo&&t.callResponse.data.disksinfo.length>0?e("list-entry",{attrs:{title:"Disk(s) (Name/Size(GB)/Write Speed(MB/s))",data:`${JSON.stringify(t.callResponse.data.disksinfo)}`}}):t._e(),t.callResponse.data.eps?e("list-entry",{attrs:{title:"CPU Speed",data:`${t.callResponse.data.eps.toFixed(2)} eps`}}):t._e(),t.callResponse.data.download_speed?e("list-entry",{attrs:{title:"Download Speed",data:`${t.callResponse.data.download_speed.toFixed(2)} Mb/s`}}):t._e(),t.callResponse.data.upload_speed?e("list-entry",{attrs:{title:"Upload Speed",data:`${t.callResponse.data.upload_speed.toFixed(2)} Mb/s`}}):t._e(),t.callResponse.data.ping?e("list-entry",{attrs:{title:"Ping",data:`${t.callResponse.data.ping.toFixed(2)} ms`}}):t._e(),t.callResponse.data.error?e("list-entry",{attrs:{title:"Error",data:t.callResponse.data.error,variant:"danger"}}):t._e()],1):t._e()},r=[],n=a(86855),l=a(34547),i=a(51748),o=a(39569);const d=a(63005),c={components:{ListEntry:i.Z,BCard:n._,ToastificationContent:l.Z},data(){return{timeoptions:d,callResponse:{status:"",data:""}}},mounted(){this.benchmarkGetBenchmarks()},methods:{async benchmarkGetBenchmarks(){const t=await o.Z.getBenchmarks();"error"===t.data.status?this.$toast({component:l.Z,props:{title:t.data.data.message||t.data.data,icon:"InfoIcon",variant:"danger"}}):(this.callResponse.status=t.data.status,this.callResponse.data=t.data.data)}}},u=c;var p=a(1001),h=(0,p.Z)(u,s,r,!1,null,null,null);const m=h.exports},51748:(t,e,a)=>{a.d(e,{Z:()=>c});var s=function(){var t=this,e=t._self._c;return e("dl",{staticClass:"row",class:t.classes},[e("dt",{staticClass:"col-sm-3"},[t._v(" "+t._s(t.title)+" ")]),t.href.length>0?e("dd",{staticClass:"col-sm-9 mb-0",class:`text-${t.variant}`},[t.href.length>0?e("b-link",{attrs:{href:t.href,target:"_blank",rel:"noopener noreferrer"}},[t._v(" "+t._s(t.data.length>0?t.data:t.number!==Number.MAX_VALUE?t.number:"")+" ")]):t._e()],1):t.click?e("dd",{staticClass:"col-sm-9 mb-0",class:`text-${t.variant}`,on:{click:function(e){return t.$emit("click")}}},[e("b-link",[t._v(" "+t._s(t.data.length>0?t.data:t.number!==Number.MAX_VALUE?t.number:"")+" ")])],1):e("dd",{staticClass:"col-sm-9 mb-0",class:`text-${t.variant}`},[t._v(" "+t._s(t.data.length>0?t.data:t.number!==Number.MAX_VALUE?t.number:"")+" ")])])},r=[],n=a(67347);const l={components:{BLink:n.we},props:{title:{type:String,required:!0},classes:{type:String,required:!1,default:"mb-1"},data:{type:String,required:!1,default:""},number:{type:Number,required:!1,default:Number.MAX_VALUE},variant:{type:String,required:!1,default:"secondary"},href:{type:String,required:!1,default:""},click:{type:Boolean,required:!1,default:!1}}},i=l;var o=a(1001),d=(0,o.Z)(i,s,r,!1,null,null,null);const c=d.exports},63005:(t,e,a)=>{a.r(e),a.d(e,{default:()=>n});const s={year:"numeric",month:"short",day:"numeric",hour:"2-digit",minute:"2-digit"},r={year:"numeric",month:"short",day:"numeric"},n={shortDate:s,date:r}},39569:(t,e,a)=>{a.d(e,{Z:()=>r});var s=a(80914);const r={start(t){return(0,s.Z)().get("/benchmark/start",{headers:{zelidauth:t}})},restart(t){return(0,s.Z)().get("/benchmark/restart",{headers:{zelidauth:t}})},getStatus(){return(0,s.Z)().get("/benchmark/getstatus")},restartNodeBenchmarks(t){return(0,s.Z)().get("/benchmark/restartnodebenchmarks",{headers:{zelidauth:t}})},signFluxTransaction(t,e){return(0,s.Z)().get(`/benchmark/signzelnodetransaction/${e}`,{headers:{zelidauth:t}})},helpSpecific(t){return(0,s.Z)().get(`/benchmark/help/${t}`)},help(){return(0,s.Z)().get("/benchmark/help")},stop(t){return(0,s.Z)().get("/benchmark/stop",{headers:{zelidauth:t}})},getBenchmarks(){return(0,s.Z)().get("/benchmark/getbenchmarks")},getInfo(){return(0,s.Z)().get("/benchmark/getinfo")},tailBenchmarkDebug(t){return(0,s.Z)().get("/flux/tailbenchmarkdebug",{headers:{zelidauth:t}})},justAPI(){return(0,s.Z)()},cancelToken(){return s.S}}}}]); \ No newline at end of file +"use strict";(self["webpackChunkflux"]=self["webpackChunkflux"]||[]).push([[1573],{34547:(t,e,a)=>{a.d(e,{Z:()=>c});var s=function(){var t=this,e=t._self._c;return e("div",{staticClass:"toastification"},[e("div",{staticClass:"d-flex align-items-start"},[e("b-avatar",{staticClass:"mr-75 flex-shrink-0",attrs:{variant:t.variant,size:"1.8rem"}},[e("feather-icon",{attrs:{icon:t.icon,size:"15"}})],1),e("div",{staticClass:"d-flex flex-grow-1"},[e("div",[t.title?e("h5",{staticClass:"mb-0 font-weight-bolder toastification-title",class:`text-${t.variant}`,domProps:{textContent:t._s(t.title)}}):t._e(),t.text?e("small",{staticClass:"d-inline-block text-body",domProps:{textContent:t._s(t.text)}}):t._e()]),e("span",{staticClass:"cursor-pointer toastification-close-icon ml-auto",on:{click:function(e){return t.$emit("close-toast")}}},[t.hideClose?t._e():e("feather-icon",{staticClass:"text-body",attrs:{icon:"XIcon"}})],1)])],1)])},r=[],n=a(47389);const l={components:{BAvatar:n.SH},props:{variant:{type:String,default:"primary"},icon:{type:String,default:null},title:{type:String,default:null},text:{type:String,default:null},hideClose:{type:Boolean,default:!1}}},i=l;var o=a(1001),d=(0,o.Z)(i,s,r,!1,null,"22d964ca",null);const c=d.exports},1573:(t,e,a)=>{a.r(e),a.d(e,{default:()=>m});var s=function(){var t=this,e=t._self._c;return""!==t.callResponse.data?e("b-card",{attrs:{title:"Get Benchmarks"}},[t.callResponse.data.status?e("list-entry",{attrs:{title:"Status",data:t.callResponse.data.status}}):t._e(),t.callResponse.data.architecture?e("list-entry",{attrs:{title:"Architecture",data:t.callResponse.data.architecture}}):t._e(),t.callResponse.data.time?e("list-entry",{attrs:{title:"Time",data:new Date(1e3*t.callResponse.data.time).toLocaleString("en-GB",t.timeoptions.short)}}):t._e(),t.callResponse.data.ipaddress?e("list-entry",{attrs:{title:"IP Address",data:t.callResponse.data.ipaddress}}):t._e(),t.callResponse.data.real_cores?e("list-entry",{attrs:{title:"CPU Cores",number:t.callResponse.data.real_cores}}):t._e(),t.callResponse.data.cores?e("list-entry",{attrs:{title:"CPU Threads",number:t.callResponse.data.cores}}):t._e(),t.callResponse.data.ram?e("list-entry",{attrs:{title:"RAM",data:`${t.callResponse.data.ram} GB`}}):t._e(),t.callResponse.data.disksinfo&&t.callResponse.data.disksinfo.length>0?e("list-entry",{attrs:{title:"Disk(s) (Name/Size(GB)/Write Speed(MB/s))",data:`${JSON.stringify(t.callResponse.data.disksinfo)}`}}):t._e(),t.callResponse.data.eps?e("list-entry",{attrs:{title:"CPU Speed",data:`${t.callResponse.data.eps.toFixed(2)} eps`}}):t._e(),t.callResponse.data.download_speed?e("list-entry",{attrs:{title:"Download Speed",data:`${t.callResponse.data.download_speed.toFixed(2)} Mb/s`}}):t._e(),t.callResponse.data.upload_speed?e("list-entry",{attrs:{title:"Upload Speed",data:`${t.callResponse.data.upload_speed.toFixed(2)} Mb/s`}}):t._e(),t.callResponse.data.ping?e("list-entry",{attrs:{title:"Ping",data:`${t.callResponse.data.ping.toFixed(2)} ms`}}):t._e(),t.callResponse.data.error?e("list-entry",{attrs:{title:"Error",data:t.callResponse.data.error,variant:"danger"}}):t._e()],1):t._e()},r=[],n=a(86855),l=a(34547),i=a(51748),o=a(39569);const d=a(63005),c={components:{ListEntry:i.Z,BCard:n._,ToastificationContent:l.Z},data(){return{timeoptions:d,callResponse:{status:"",data:""}}},mounted(){this.benchmarkGetBenchmarks()},methods:{async benchmarkGetBenchmarks(){const t=await o.Z.getBenchmarks();"error"===t.data.status?this.$toast({component:l.Z,props:{title:t.data.data.message||t.data.data,icon:"InfoIcon",variant:"danger"}}):(this.callResponse.status=t.data.status,this.callResponse.data=t.data.data)}}},u=c;var p=a(1001),h=(0,p.Z)(u,s,r,!1,null,null,null);const m=h.exports},51748:(t,e,a)=>{a.d(e,{Z:()=>c});var s=function(){var t=this,e=t._self._c;return e("dl",{staticClass:"row",class:t.classes},[e("dt",{staticClass:"col-sm-3"},[t._v(" "+t._s(t.title)+" ")]),t.href.length>0?e("dd",{staticClass:"col-sm-9 mb-0",class:`text-${t.variant}`},[t.href.length>0?e("b-link",{attrs:{href:t.href,target:"_blank",rel:"noopener noreferrer"}},[t._v(" "+t._s(t.data.length>0?t.data:t.number!==Number.MAX_VALUE?t.number:"")+" ")]):t._e()],1):t.click?e("dd",{staticClass:"col-sm-9 mb-0",class:`text-${t.variant}`,on:{click:function(e){return t.$emit("click")}}},[e("b-link",[t._v(" "+t._s(t.data.length>0?t.data:t.number!==Number.MAX_VALUE?t.number:"")+" ")])],1):e("dd",{staticClass:"col-sm-9 mb-0",class:`text-${t.variant}`},[t._v(" "+t._s(t.data.length>0?t.data:t.number!==Number.MAX_VALUE?t.number:"")+" ")])])},r=[],n=a(67347);const l={components:{BLink:n.we},props:{title:{type:String,required:!0},classes:{type:String,required:!1,default:"mb-1"},data:{type:String,required:!1,default:""},number:{type:Number,required:!1,default:Number.MAX_VALUE},variant:{type:String,required:!1,default:"secondary"},href:{type:String,required:!1,default:""},click:{type:Boolean,required:!1,default:!1}}},i=l;var o=a(1001),d=(0,o.Z)(i,s,r,!1,null,null,null);const c=d.exports},63005:(t,e,a)=>{a.r(e),a.d(e,{default:()=>n});const s={year:"numeric",month:"short",day:"numeric",hour:"2-digit",minute:"2-digit"},r={year:"numeric",month:"short",day:"numeric"},n={shortDate:s,date:r}},39569:(t,e,a)=>{a.d(e,{Z:()=>r});var s=a(80914);const r={start(t){return(0,s.Z)().get("/benchmark/start",{headers:{zelidauth:t}})},restart(t){return(0,s.Z)().get("/benchmark/restart",{headers:{zelidauth:t}})},getStatus(){return(0,s.Z)().get("/benchmark/getstatus")},restartNodeBenchmarks(t){return(0,s.Z)().get("/benchmark/restartnodebenchmarks",{headers:{zelidauth:t}})},signFluxTransaction(t,e){return(0,s.Z)().get(`/benchmark/signzelnodetransaction/${e}`,{headers:{zelidauth:t}})},helpSpecific(t){return(0,s.Z)().get(`/benchmark/help/${t}`)},help(){return(0,s.Z)().get("/benchmark/help")},stop(t){return(0,s.Z)().get("/benchmark/stop",{headers:{zelidauth:t}})},getBenchmarks(){return(0,s.Z)().get("/benchmark/getbenchmarks")},getInfo(){return(0,s.Z)().get("/benchmark/getinfo")},tailBenchmarkDebug(t){return(0,s.Z)().get("/flux/tailbenchmarkdebug",{headers:{zelidauth:t}})},justAPI(){return(0,s.Z)()},cancelToken(){return s.S}}}}]); \ No newline at end of file diff --git a/HomeUI/dist/js/1587.js b/HomeUI/dist/js/1587.js new file mode 100644 index 000000000..f9c6cf799 --- /dev/null +++ b/HomeUI/dist/js/1587.js @@ -0,0 +1,22 @@ +(self["webpackChunkflux"]=self["webpackChunkflux"]||[]).push([[1587],{91587:(t,e,s)=>{"use strict";s.d(e,{Z:()=>xc});var i=function(){var t=this,e=t._self._c;return e("div",[e("b-modal",{attrs:{"hide-footer":"",centered:"","hide-header-close":"","no-close-on-backdrop":"","no-close-on-esc":"",size:"lg","header-bg-variant":"primary",title:t.operationTitle,"title-tag":"h5"},model:{value:t.progressVisable,callback:function(e){t.progressVisable=e},expression:"progressVisable"}},[e("div",{staticClass:"d-flex flex-column justify-content-center align-items-center",staticStyle:{height:"100%"}},[e("div",{staticClass:"d-flex align-items-center mb-2"},[e("b-spinner",{attrs:{label:"Loading..."}}),e("div",{staticClass:"ml-1"},[t._v(" Waiting for the operation to be completed... ")])],1)])]),e("div",[e("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"mr-2",attrs:{variant:"outline-primary",pill:""},on:{click:t.goBackToApps}},[e("v-icon",{attrs:{name:"chevron-left"}}),t._v(" Back ")],1),t._v(" "+t._s(t.applicationManagementAndStatus)+" ")],1),e("b-tabs",{ref:"managementTabs",staticClass:"mt-2",staticStyle:{"flex-wrap":"nowrap"},attrs:{pills:"",vertical:t.windowWidth>860,lazy:""},on:{input:e=>t.updateManagementTab(e)}},[t.windowWidth>860?e("b-tab",{attrs:{title:"Local App Management",disabled:""}}):t._e(),e("b-tab",{attrs:{active:"",title:"Specifications"}},[e("div",[e("b-card",[e("h3",[e("b-icon",{attrs:{icon:"hdd-network-fill"}}),t._v("  Backend Selection")],1),e("b-input-group",{staticClass:"my-1",staticStyle:{width:"350px"}},[e("b-input-group-prepend",[e("b-input-group-text",[e("b-icon",{attrs:{icon:"laptop"}})],1)],1),e("b-form-select",{attrs:{options:null},on:{change:t.selectedIpChanged},model:{value:t.selectedIp,callback:function(e){t.selectedIp=e},expression:"selectedIp"}},t._l(t.instances.data,(function(s){return e("b-form-select-option",{key:s.ip,attrs:{value:s.ip}},[t._v(" "+t._s(s.ip)+" ")])})),1),e("b-button",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.top",value:"Refresh",expression:"'Refresh'",modifiers:{hover:!0,top:!0}},{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.12)",expression:"'rgba(255, 255, 255, 0.12)'",modifiers:{400:!0}}],ref:"BackendRefresh",staticClass:"ml-1 bb",staticStyle:{outline:"none !important","box-shadow":"none !important"},attrs:{variant:"outline-success",size:"sm"},on:{click:t.refreshInfo}},[e("b-icon",{attrs:{scale:"1.2",icon:"arrow-clockwise"}})],1)],1)],1)],1),e("div",[e("b-card",[t.callBResponse.data&&t.callResponse.data?e("div",[t.callBResponse.data.hash!==t.callResponse.data.hash?e("div",[e("h1",[t._v("Locally running application does not match global specifications! Update needed")]),e("br"),e("br")]):e("div",[t._v(" Application is synced with Global network "),e("br"),e("br")])]):t._e(),e("h2",[t._v("Installed Specifications")]),t.callResponse.data?e("div",{staticStyle:{"text-align":"left"}},[e("b-card",{},[e("list-entry",{attrs:{title:"Name",data:t.callResponse.data.name}}),e("list-entry",{attrs:{title:"Description",data:t.callResponse.data.description}}),e("list-entry",{attrs:{title:"Owner",data:t.callResponse.data.owner}}),e("list-entry",{attrs:{title:"Hash",data:t.callResponse.data.hash}}),t.callResponse.data.version>=5?e("div",[t.callResponse.data.geolocation.length?e("div",t._l(t.callResponse.data.geolocation,(function(s){return e("div",{key:s},[e("list-entry",{attrs:{title:"Geolocation",data:t.getGeolocation(s)}})],1)})),0):e("div",[e("list-entry",{attrs:{title:"Continent",data:"All"}}),e("list-entry",{attrs:{title:"Country",data:"All"}}),e("list-entry",{attrs:{title:"Region",data:"All"}})],1)]):t._e(),t.callResponse.data.instances?e("list-entry",{attrs:{title:"Instances",data:t.callResponse.data.instances.toString()}}):t._e(),e("list-entry",{attrs:{title:"Specifications version",number:t.callResponse.data.version}}),e("list-entry",{attrs:{title:"Registered on Blockheight",number:t.callResponse.data.height}}),t.callResponse.data.hash&&64===t.callResponse.data.hash.length?e("list-entry",{attrs:{title:"Expires on Blockheight",number:t.callResponse.data.height+(t.callResponse.data.expire||22e3)}}):t._e(),e("list-entry",{attrs:{title:"Expires in",data:t.getNewExpireLabel}}),e("list-entry",{attrs:{title:"Enterprise Nodes",data:t.callResponse.data.nodes?t.callResponse.data.nodes.toString():"Not scoped"}}),e("list-entry",{attrs:{title:"Static IP",data:t.callResponse.data.staticip?"Yes, Running only on Static IP nodes":"No, Running on all nodes"}}),e("h4",[t._v("Composition")]),t.callResponse.data.version<=3?e("div",[e("b-card",[e("list-entry",{attrs:{title:"Repository",data:t.callResponse.data.repotag}}),e("list-entry",{attrs:{title:"Custom Domains",data:t.callResponse.data.domains.toString()||"none"}}),e("list-entry",{attrs:{title:"Automatic Domains",data:t.constructAutomaticDomains(t.callResponse.data.ports,t.callResponse.data.name).toString()||"none"}}),e("list-entry",{attrs:{title:"Ports",data:t.callResponse.data.ports.toString()||"none"}}),e("list-entry",{attrs:{title:"Container Ports",data:t.callResponse.data.containerPorts.toString()||"none"}}),e("list-entry",{attrs:{title:"Container Data",data:t.callResponse.data.containerData.toString()||"none"}}),e("list-entry",{attrs:{title:"Environment Parameters",data:t.callResponse.data.enviromentParameters.length>0?t.callResponse.data.enviromentParameters.toString():"none"}}),e("list-entry",{attrs:{title:"Commands",data:t.callResponse.data.commands.length>0?t.callResponse.data.commands.toString():"none"}}),t.callResponse.data.tiered?e("div",[e("list-entry",{attrs:{title:"CPU Cumulus",data:`${t.callResponse.data.cpubasic} vCore`}}),e("list-entry",{attrs:{title:"CPU Nimbus",data:`${t.callResponse.data.cpusuper} vCore`}}),e("list-entry",{attrs:{title:"CPU Stratus",data:`${t.callResponse.data.cpubamf} vCore`}}),e("list-entry",{attrs:{title:"RAM Cumulus",data:`${t.callResponse.data.rambasic} MB`}}),e("list-entry",{attrs:{title:"RAM Nimbus",data:`${t.callResponse.data.ramsuper} MB`}}),e("list-entry",{attrs:{title:"RAM Stratus",data:`${t.callResponse.data.rambamf} MB`}}),e("list-entry",{attrs:{title:"SSD Cumulus",data:`${t.callResponse.data.hddbasic} GB`}}),e("list-entry",{attrs:{title:"SSD Nimbus",data:`${t.callResponse.data.hddsuper} GB`}}),e("list-entry",{attrs:{title:"SSD Stratus",data:`${t.callResponse.data.hddbamf} GB`}})],1):e("div",[e("list-entry",{attrs:{title:"CPU",data:`${t.callResponse.data.cpu} vCore`}}),e("list-entry",{attrs:{title:"RAM",data:`${t.callResponse.data.ram} MB`}}),e("list-entry",{attrs:{title:"SSD",data:`${t.callResponse.data.hdd} GB`}})],1)],1)],1):e("div",t._l(t.callResponse.data.compose,(function(s,i){return e("b-card",{key:i},[e("b-card-title",[t._v(" Component "+t._s(s.name)+" ")]),e("list-entry",{attrs:{title:"Name",data:s.name}}),e("list-entry",{attrs:{title:"Description",data:s.description}}),e("list-entry",{attrs:{title:"Repository",data:s.repotag}}),e("list-entry",{attrs:{title:"Repository Authentication",data:s.repoauth?"Content Encrypted":"Public"}}),e("list-entry",{attrs:{title:"Custom Domains",data:s.domains.toString()||"none"}}),e("list-entry",{attrs:{title:"Automatic Domains",data:t.constructAutomaticDomains(s.ports,t.callResponse.data.name,i).toString()||"none"}}),e("list-entry",{attrs:{title:"Ports",data:s.ports.toString()||"none"}}),e("list-entry",{attrs:{title:"Container Ports",data:s.containerPorts.toString()||"none"}}),e("list-entry",{attrs:{title:"Container Data",data:s.containerData}}),e("list-entry",{attrs:{title:"Environment Parameters",data:s.environmentParameters.length>0?s.environmentParameters.toString():"none"}}),e("list-entry",{attrs:{title:"Commands",data:s.commands.length>0?s.commands.toString():"none"}}),e("list-entry",{attrs:{title:"Secret Environment Parameters",data:s.secrets?"Content Encrypted":"none"}}),s.tiered?e("div",[e("list-entry",{attrs:{title:"CPU Cumulus",data:`${s.cpubasic} vCore`}}),e("list-entry",{attrs:{title:"CPU Nimbus",data:`${s.cpusuper} vCore`}}),e("list-entry",{attrs:{title:"CPU Stratus",data:`${s.cpubamf} vCore`}}),e("list-entry",{attrs:{title:"RAM Cumulus",data:`${s.rambasic} MB`}}),e("list-entry",{attrs:{title:"RAM Nimbus",data:`${s.ramsuper} MB`}}),e("list-entry",{attrs:{title:"RAM Stratus",data:`${s.rambamf} MB`}}),e("list-entry",{attrs:{title:"SSD Cumulus",data:`${s.hddbasic} GB`}}),e("list-entry",{attrs:{title:"SSD Nimbus",data:`${s.hddsuper} GB`}}),e("list-entry",{attrs:{title:"SSD Stratus",data:`${s.hddbamf} GB`}})],1):e("div",[e("list-entry",{attrs:{title:"CPU",data:`${s.cpu} vCore`}}),e("list-entry",{attrs:{title:"RAM",data:`${s.ram} MB`}}),e("list-entry",{attrs:{title:"SSD",data:`${s.hdd} GB`}})],1)],1)})),1)],1)],1):e("div",[t._v(" Local Specifications loading... ")]),e("h2",{staticClass:"mt-2"},[t._v(" Global Specifications ")]),t.callBResponse.data?e("div",{staticStyle:{"text-align":"left"}},[e("b-card",{},[e("list-entry",{attrs:{title:"Name",data:t.callBResponse.data.name}}),e("list-entry",{attrs:{title:"Description",data:t.callBResponse.data.description}}),e("list-entry",{attrs:{title:"Owner",data:t.callBResponse.data.owner}}),e("list-entry",{attrs:{title:"Hash",data:t.callBResponse.data.hash}}),t.callBResponse.data.version>=5?e("div",[t.callBResponse.data.geolocation.length?e("div",t._l(t.callBResponse.data.geolocation,(function(s){return e("div",{key:s},[e("list-entry",{attrs:{title:"Geolocation",data:t.getGeolocation(s)}})],1)})),0):e("div",[e("list-entry",{attrs:{title:"Continent",data:"All"}}),e("list-entry",{attrs:{title:"Country",data:"All"}}),e("list-entry",{attrs:{title:"Region",data:"All"}})],1)]):t._e(),t.callBResponse.data.instances?e("list-entry",{attrs:{title:"Instances",data:t.callBResponse.data.instances.toString()}}):t._e(),e("list-entry",{attrs:{title:"Specifications version",number:t.callBResponse.data.version}}),e("list-entry",{attrs:{title:"Registered on Blockheight",number:t.callBResponse.data.height}}),t.callBResponse.data.hash&&64===t.callBResponse.data.hash.length?e("list-entry",{attrs:{title:"Expires on Blockheight",number:t.callBResponse.data.height+(t.callBResponse.data.expire||22e3)}}):t._e(),e("list-entry",{attrs:{title:"Expires in",data:t.getNewExpireLabel}}),e("list-entry",{attrs:{title:"Enterprise Nodes",data:t.callBResponse.data.nodes?t.callBResponse.data.nodes.toString():"Not scoped"}}),e("list-entry",{attrs:{title:"Static IP",data:t.callBResponse.data.staticip?"Yes, Running only on Static IP nodes":"No, Running on all nodes"}}),e("h4",[t._v("Composition")]),t.callBResponse.data.version<=3?e("div",[e("b-card",[e("list-entry",{attrs:{title:"Repository",data:t.callBResponse.data.repotag}}),e("list-entry",{attrs:{title:"Custom Domains",data:t.callBResponse.data.domains.toString()||"none"}}),e("list-entry",{attrs:{title:"Automatic Domains",data:t.constructAutomaticDomainsGlobal.toString()||"none"}}),e("list-entry",{attrs:{title:"Ports",data:t.callBResponse.data.ports.toString()||"none"}}),e("list-entry",{attrs:{title:"Container Ports",data:t.callBResponse.data.containerPorts.toString()||"none"}}),e("list-entry",{attrs:{title:"Container Data",data:t.callBResponse.data.containerData}}),e("list-entry",{attrs:{title:"Environment Parameters",data:t.callBResponse.data.enviromentParameters.length>0?t.callBResponse.data.enviromentParameters.toString():"none"}}),e("list-entry",{attrs:{title:"Commands",data:t.callBResponse.data.commands.length>0?t.callBResponse.data.commands.toString():"none"}}),t.callBResponse.data.tiered?e("div",[e("list-entry",{attrs:{title:"CPU Cumulus",data:`${t.callBResponse.data.cpubasic} vCore`}}),e("list-entry",{attrs:{title:"CPU Nimbus",data:`${t.callBResponse.data.cpusuper} vCore`}}),e("list-entry",{attrs:{title:"CPU Stratus",data:`${t.callBResponse.data.cpubamf} vCore`}}),e("list-entry",{attrs:{title:"RAM Cumulus",data:`${t.callBResponse.data.rambasic} MB`}}),e("list-entry",{attrs:{title:"RAM Nimbus",data:`${t.callBResponse.data.ramsuper} MB`}}),e("list-entry",{attrs:{title:"RAM Stratus",data:`${t.callBResponse.data.rambamf} MB`}}),e("list-entry",{attrs:{title:"SSD Cumulus",data:`${t.callBResponse.data.hddbasic} GB`}}),e("list-entry",{attrs:{title:"SSD Nimbus",data:`${t.callBResponse.data.hddsuper} GB`}}),e("list-entry",{attrs:{title:"SSD Stratus",data:`${t.callBResponse.data.hddbamf} GB`}})],1):e("div",[e("list-entry",{attrs:{title:"CPU",data:`${t.callBResponse.data.cpu} vCore`}}),e("list-entry",{attrs:{title:"RAM",data:`${t.callBResponse.data.ram} MB`}}),e("list-entry",{attrs:{title:"SSD",data:`${t.callBResponse.data.hdd} GB`}})],1)],1)],1):e("div",t._l(t.callBResponse.data.compose,(function(s,i){return e("b-card",{key:i},[e("b-card-title",[t._v(" Component "+t._s(s.name)+" ")]),e("list-entry",{attrs:{title:"Name",data:s.name}}),e("list-entry",{attrs:{title:"Description",data:s.description}}),e("list-entry",{attrs:{title:"Repository",data:s.repotag}}),e("list-entry",{attrs:{title:"Repository Authentication",data:s.repoauth?"Content Encrypted":"Public"}}),e("list-entry",{attrs:{title:"Custom Domains",data:s.domains.toString()||"none"}}),e("list-entry",{attrs:{title:"Automatic Domains",data:t.constructAutomaticDomains(s.ports,t.callBResponse.data.name,i).toString()||"none"}}),e("list-entry",{attrs:{title:"Ports",data:s.ports.toString()||"none"}}),e("list-entry",{attrs:{title:"Container Ports",data:s.containerPorts.toString()||"none"}}),e("list-entry",{attrs:{title:"Container Data",data:s.containerData}}),e("list-entry",{attrs:{title:"Environment Parameters",data:s.environmentParameters.length>0?s.environmentParameters.toString():"none"}}),e("list-entry",{attrs:{title:"Commands",data:s.commands.length>0?s.commands.toString():"none"}}),e("list-entry",{attrs:{title:"Secret Environment Parameters",data:s.secrets?"Content Encrypted":"none"}}),s.tiered?e("div",[e("list-entry",{attrs:{title:"CPU Cumulus",data:`${s.cpubasic} vCore`}}),e("list-entry",{attrs:{title:"CPU Nimbus",data:`${s.cpusuper} vCore`}}),e("list-entry",{attrs:{title:"CPU Stratus",data:`${s.cpubamf} vCore`}}),e("list-entry",{attrs:{title:"RAM Cumulus",data:`${s.rambasic} MB`}}),e("list-entry",{attrs:{title:"RAM Nimbus",data:`${s.ramsuper} MB`}}),e("list-entry",{attrs:{title:"RAM Stratus",data:`${s.rambamf} MB`}}),e("list-entry",{attrs:{title:"SSD Cumulus",data:`${s.hddbasic} GB`}}),e("list-entry",{attrs:{title:"SSD Nimbus",data:`${s.hddsuper} GB`}}),e("list-entry",{attrs:{title:"SSD Stratus",data:`${s.hddbamf} GB`}})],1):e("div",[e("list-entry",{attrs:{title:"CPU",data:`${s.cpu} vCore`}}),e("list-entry",{attrs:{title:"RAM",data:`${s.ram} MB`}}),e("list-entry",{attrs:{title:"SSD",data:`${s.hdd} GB`}})],1)],1)})),1)],1)],1):"error"===t.callBResponse.status?e("div",[t._v(" Global specifications not found! ")]):e("div",[t._v(" Global Specifications loading... ")])])],1)]),e("b-tab",{attrs:{title:"Information"}},[e("h3",[e("b-icon",{attrs:{icon:"app-indicator"}}),t._v(" "+t._s(t.appSpecification.name))],1),t.commandExecutingInspect?e("div",[e("div",{staticStyle:{display:"flex","align-items":"center"}},[e("v-icon",{staticClass:"spin-icon",staticStyle:{"margin-right":"5px"},attrs:{name:"spinner"}}),e("h5",{staticStyle:{margin:"0"}},[t._v(" Loading... ")])],1)]):t._e(),t.appSpecification.version>=4?e("div",t._l(t.callResponseInspect.data,(function(s,i){return e("div",{key:i},[e("h4",[t._v("Component: "+t._s(s.name))]),s.callData?e("div",[e("json-viewer",{attrs:{value:s.callData,"expand-depth":5,copyable:"",boxed:"",theme:"jv-dark"}})],1):t._e()])})),0):e("div",[t.callResponseInspect.data&&t.callResponseInspect.data[0]?e("div",[e("json-viewer",{attrs:{value:t.callResponseInspect.data[0].callData,"expand-depth":5,copyable:"",boxed:"",theme:"jv-dark"}})],1):t._e()])]),e("b-tab",{attrs:{title:"Monitoring"}},[e("div",{staticClass:"container"},[e("div",{staticClass:"d-flex mb-1 mt-2 align-items-center justify-content-between",staticStyle:{border:"1px solid #ccc","border-radius":"8px",height:"45px","padding-top":"12px","padding-bottom":"4px","padding-left":"12px","padding-right":"12px","text-align":"left"}},[e("h5",[e("b-icon",{staticClass:"mr-1",attrs:{scale:"1.2",icon:"bar-chart-fill"}}),t._v(" "+t._s(t.overviewTitle)+" "+t._s(t.noDat)+" ")],1),e("b-form-checkbox",{attrs:{switch:""},on:{change:t.enableHistoryStatisticsChange},model:{value:t.enableHistoryStatistics,callback:function(e){t.enableHistoryStatistics=e},expression:"enableHistoryStatistics"}},[t._v(" History Statistics ")])],1),e("div",{staticClass:"d-flex flex-container2"},[e("div",[e("b-input-group",{staticClass:"mb-1",attrs:{size:"sm"}},[e("b-input-group-prepend",{attrs:{"is-text":""}},[e("b-icon",{attrs:{icon:"app-indicator"}})],1),t.appSpecification?.compose?e("b-form-select",{attrs:{options:null,disabled:t.isComposeSingle},model:{value:t.selectedContainerMonitoring,callback:function(e){t.selectedContainerMonitoring=e},expression:"selectedContainerMonitoring"}},[e("b-form-select-option",{attrs:{value:"null",disabled:""}},[t._v(" -- Please select component -- ")]),t._l(t.appSpecification?.compose,(function(s){return e("b-form-select-option",{key:s.name,attrs:{value:s.name}},[t._v(" "+t._s(s.name)+" ")])}))],2):t._e(),t.appSpecification?.compose?t._e():e("b-form-input",{attrs:{placeholder:t.appSpecification.name,disabled:""}}),t.enableHistoryStatistics?e("b-icon",{class:["ml-1","r"],attrs:{icon:"arrow-clockwise"},on:{click:t.fetchStats}}):t._e(),t.enableHistoryStatistics||!0!==t.buttonStats?t._e():e("b-icon",{class:["ml-1","r"],attrs:{icon:"arrow-clockwise"},on:{click:function(e){return t.startPollingStats(!0)}}})],1),t.enableHistoryStatistics?t._e():e("b-input-group",{staticStyle:{width:"120px"},attrs:{size:"sm"}},[e("b-input-group-prepend",{attrs:{"is-text":""}},[e("b-icon",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.top",value:"Limit the number of data points displayed on the charts.",expression:"'Limit the number of data points displayed on the charts.'",modifiers:{hover:!0,top:!0}},{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.12)",expression:"'rgba(255, 255, 255, 0.12)'",modifiers:{400:!0}}],attrs:{icon:"clipboard-data"}})],1),e("b-form-select",{attrs:{options:t.pointsOptions},model:{value:t.selectedPoints,callback:function(e){t.selectedPoints=e},expression:"selectedPoints"}})],1)],1),t.enableHistoryStatistics?t._e():e("div",[e("b-input-group",{attrs:{size:"sm"}},[e("b-input-group-prepend",{attrs:{"is-text":""}},[e("b-icon",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.top",value:"Choose the interval for refreshing data on the charts.",expression:"'Choose the interval for refreshing data on the charts.'",modifiers:{hover:!0,top:!0}},{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.12)",expression:"'rgba(255, 255, 255, 0.12)'",modifiers:{400:!0}}],attrs:{icon:"clock"}})],1),e("b-form-select",{attrs:{size:"sm",options:t.refreshOptions},model:{value:t.refreshRateMonitoring,callback:function(e){t.refreshRateMonitoring=e},expression:"refreshRateMonitoring"}})],1)],1),t.enableHistoryStatistics?e("div",[e("b-input-group",{attrs:{size:"sm"}},[e("b-input-group-prepend",{attrs:{"is-text":""}},[e("b-icon",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.top",value:"Choose the time period to display historical data.",expression:"'Choose the time period to display historical data.'",modifiers:{hover:!0,top:!0}},{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.12)",expression:"'rgba(255, 255, 255, 0.12)'",modifiers:{400:!0}}],attrs:{icon:"calendar-range"}})],1),e("b-form-select",{attrs:{options:t.timeOptions},on:{change:t.fetchStats},model:{value:t.selectedTimeRange,callback:function(e){t.selectedTimeRange=e},expression:"selectedTimeRange"}})],1)],1):t._e()]),e("div",{staticClass:"charts-grid"},[e("div",{staticClass:"chart-wrapper"},[e("div",{staticClass:"chart-title-container"},[e("b-icon",{staticStyle:{width:"30px",height:"30px"},attrs:{icon:"bar-chart-line"}}),e("span",{staticClass:"chart-title ml-2"},[t._v("Memory usage")]),e("b-icon",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.top",value:"Displays memory usage over time. Monitoring memory usage helps identify potential memory leaks, optimize application performance, and.",expression:"'Displays memory usage over time. Monitoring memory usage helps identify potential memory leaks, optimize application performance, and.'",modifiers:{hover:!0,top:!0}},{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.12)",expression:"'rgba(255, 255, 255, 0.12)'",modifiers:{400:!0}}],staticClass:"ml-1",staticStyle:{width:"15px",height:"15px"},attrs:{icon:"info-circle"}})],1),e("canvas",{attrs:{id:"memoryChart"}})]),e("div",{staticClass:"chart-wrapper"},[e("div",{staticClass:"chart-title-container"},[e("b-icon",{staticStyle:{width:"30px",height:"30px"},attrs:{icon:"bar-chart-line"}}),e("span",{staticClass:"chart-title"},[t._v("CPU Usage")]),e("b-icon",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.top",value:"Displays CPU usage over time. Monitoring CPU usage helps identify high load periods, optimize resource allocation, and troubleshoot performance bottlenecks.",expression:"'Displays CPU usage over time. Monitoring CPU usage helps identify high load periods, optimize resource allocation, and troubleshoot performance bottlenecks.'",modifiers:{hover:!0,top:!0}},{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.12)",expression:"'rgba(255, 255, 255, 0.12)'",modifiers:{400:!0}}],staticClass:"ml-1",staticStyle:{width:"15px",height:"15px"},attrs:{icon:"info-circle"}})],1),e("canvas",{attrs:{id:"cpuChart"}})]),e("div",{staticClass:"chart-wrapper"},[e("div",{staticClass:"chart-title-container"},[e("b-icon",{staticStyle:{width:"30px",height:"30px"},attrs:{icon:"bar-chart-line"}}),e("span",{staticClass:"chart-title"},[t._v("Network usage (aggregate)")]),e("b-icon",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.top",value:"Displays network usage over time (TX: Transmit - outgoing data; RX: Receive - incoming data). Key metrics include bandwidth, throughput, and latency. Monitoring helps identify bottlenecks, optimize performance, and ensure efficient data transfer.",expression:"'Displays network usage over time (TX: Transmit - outgoing data; RX: Receive - incoming data). Key metrics include bandwidth, throughput, and latency. Monitoring helps identify bottlenecks, optimize performance, and ensure efficient data transfer.'",modifiers:{hover:!0,top:!0}},{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.12)",expression:"'rgba(255, 255, 255, 0.12)'",modifiers:{400:!0}}],staticClass:"ml-1",staticStyle:{width:"15px",height:"15px"},attrs:{icon:"info-circle"}})],1),e("canvas",{attrs:{id:"networkChart"}})]),e("div",{staticClass:"chart-wrapper"},[e("div",{staticClass:"chart-title-container"},[e("b-icon",{staticStyle:{width:"30px",height:"30px"},attrs:{icon:"bar-chart-line"}}),e("span",{staticClass:"chart-title"},[t._v("I/O usage (aggregate)")]),e("b-icon",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.top",value:"Displays Input/Output operations over time, measuring data transfer to/from storage devices and peripherals. Monitoring I/O helps identify bottlenecks, optimize performance, and ensure responsive system behavior.",expression:"'Displays Input/Output operations over time, measuring data transfer to/from storage devices and peripherals. Monitoring I/O helps identify bottlenecks, optimize performance, and ensure responsive system behavior.'",modifiers:{hover:!0,top:!0}},{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.12)",expression:"'rgba(255, 255, 255, 0.12)'",modifiers:{400:!0}}],staticClass:"ml-1",staticStyle:{width:"15px",height:"15px"},attrs:{icon:"info-circle"}})],1),e("canvas",{attrs:{id:"ioChart"}})]),e("div",{staticClass:"chart-wrapper"},[e("div",{staticClass:"chart-title-container"},[e("b-icon",{staticStyle:{width:"30px",height:"30px"},attrs:{icon:"bar-chart-line"}}),e("span",{staticClass:"chart-title"},[t._v("Persistent Storage")]),e("b-icon",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.top",value:"Persistent Storage refers to data that is retained across container restarts and updates. It ensures important information is preserved. Monitoring this helps prevent disk space exhaustion and supports efficient data management.",expression:"'Persistent Storage refers to data that is retained across container restarts and updates. It ensures important information is preserved. Monitoring this helps prevent disk space exhaustion and supports efficient data management.'",modifiers:{hover:!0,top:!0}},{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.12)",expression:"'rgba(255, 255, 255, 0.12)'",modifiers:{400:!0}}],staticClass:"ml-1",staticStyle:{width:"15px",height:"15px"},attrs:{icon:"info-circle"}})],1),e("canvas",{attrs:{id:"diskPersistentChart"}})]),e("div",{staticClass:"chart-wrapper"},[e("div",{staticClass:"chart-title-container"},[e("b-icon",{staticStyle:{width:"30px",height:"30px"},attrs:{icon:"bar-chart-line"}}),e("span",{staticClass:"chart-title"},[t._v("Root Filesystem (rootfs)")]),e("b-icon",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.top",value:"Root Filesystem refers to the temporary storage used by the container during its lifetime. This data is not retained after the container is stopped or deleted. Monitoring rootfs usage helps avoid disk space issues within the container’s filesystem.",expression:"'Root Filesystem refers to the temporary storage used by the container during its lifetime. This data is not retained after the container is stopped or deleted. Monitoring rootfs usage helps avoid disk space issues within the container’s filesystem.'",modifiers:{hover:!0,top:!0}},{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.12)",expression:"'rgba(255, 255, 255, 0.12)'",modifiers:{400:!0}}],staticClass:"ml-1",staticStyle:{width:"15px",height:"15px"},attrs:{icon:"info-circle"}})],1),e("canvas",{attrs:{id:"diskFileSystemChart"}})]),t.enableHistoryStatistics?t._e():e("div",{staticClass:"chart-wrapper"},[e("div",{staticClass:"chart-title-container mb-2"},[e("b-icon",{staticStyle:{width:"30px",height:"30px"},attrs:{icon:"list-ul"}}),e("span",{staticClass:"chart-title"},[t._v("Processes")]),e("b-icon",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.top",value:"List of running process in continer.",expression:"'List of running process in continer.'",modifiers:{hover:!0,top:!0}},{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.12)",expression:"'rgba(255, 255, 255, 0.12)'",modifiers:{400:!0}}],staticClass:"ml-1",staticStyle:{width:"15px",height:"15px"},attrs:{icon:"info-circle"}})],1),e("b-form-input",{staticClass:"mb-2",attrs:{placeholder:"Search processes..."},model:{value:t.search,callback:function(e){t.search=e},expression:"search"}}),e("div",{staticClass:"table-responsive"},[e("b-table",{staticClass:"table-monitoring",attrs:{small:"",responsive:"","show-empty":"","empty-text":"No records available.",items:t.paginatedProcesses,fields:t.titles,bordered:"",hover:""}})],1),e("div",{staticClass:"d-flex align-items-center my-3"},[e("div",{staticClass:"flex-grow-1 text-center"},[t.filteredProcesses.length?e("b-pagination",{attrs:{pills:"",size:"sm","total-rows":t.filteredProcesses.length,"per-page":t.perPage},on:{change:t.scrollToPagination},model:{value:t.currentPage,callback:function(e){t.currentPage=e},expression:"currentPage"}}):t._e()],1),e("div",{staticClass:"d-flex align-items-center ml-3"},[e("label",{staticClass:"mr-2 mb-0",staticStyle:{"white-space":"nowrap"}},[t._v("Items per page:")]),e("b-form-select",{staticClass:"ml-2",attrs:{options:t.perPageOptions,size:"sm"},on:{change:t.scrollToPagination},model:{value:t.perPage,callback:function(e){t.perPage=e},expression:"perPage"}})],1)])],1)])])]),e("b-tab",{attrs:{title:"File Changes"}},[e("h3",[e("b-icon",{attrs:{icon:"app-indicator"}}),t._v(" "+t._s(t.appSpecification.name))],1),t.commandExecutingChanges?e("div",[e("div",{staticStyle:{display:"flex","align-items":"center"}},[e("v-icon",{staticClass:"spin-icon",staticStyle:{"margin-right":"5px"},attrs:{name:"spinner"}}),e("h5",{staticStyle:{margin:"0"}},[t._v(" Loading... ")])],1)]):t._e(),t.appSpecification.version>=4?e("div",t._l(t.callResponseChanges.data,(function(s,i){return e("div",{key:i},[e("h4",[t._v("Component: "+t._s(s.name))]),s.callData?e("div",[e("kbd",{staticClass:"bg-primary mr-1"},[t._v("Kind: 0 = Modified")]),e("kbd",{staticClass:"bg-success mr-1"},[t._v("Kind: 1 = Added ")]),e("kbd",{staticClass:"bg-danger"},[t._v("Kind: 2 = Deleted")]),e("json-viewer",{staticClass:"mt-1",attrs:{value:s.callData,"expand-depth":5,copyable:"",boxed:"",theme:"jv-dark"}})],1):t._e()])})),0):e("div",[t.callResponseChanges.data&&t.callResponseChanges.data[0]?e("div",[e("kbd",{staticClass:"bg-primary mr-1"},[t._v("Kind: 0 = Modified")]),e("kbd",{staticClass:"bg-success mr-1"},[t._v("Kind: 1 = Added ")]),e("kbd",{staticClass:"bg-danger"},[t._v("Kind: 2 = Deleted")]),e("json-viewer",{staticClass:"mt-1",attrs:{value:t.callResponseChanges.data[0].callData,"expand-depth":5,copyable:"",boxed:"",theme:"jv-dark"}})],1):t._e()])]),e("b-tab",{attrs:{title:"Logs"}},[e("div",[e("div",{staticClass:"mb-2",staticStyle:{border:"1px solid #ccc","border-radius":"8px",height:"45px",padding:"12px","text-align":"left","line-height":"0px"}},[e("h5",[e("b-icon",{staticClass:"mr-1",attrs:{scale:"1.2",icon:"search"}}),t._v(" Logs Management ")],1)]),e("b-form",{staticClass:"ml-2 mr-2"},[e("div",{staticClass:"flex-container"},[e("b-form-group",[t.appSpecification?.compose?t._e():e("b-form-group",{attrs:{label:"Component"}},[e("div",{staticClass:"d-flex align-items-center"},[e("b-form-input",{staticClass:"input_s",attrs:{size:"sm",placeholder:t.appSpecification.name,disabled:""}}),e("b-icon",{class:["ml-1","r",{disabled:t.isDisabled}],attrs:{icon:"arrow-clockwise"},on:{click:t.manualFetchLogs}})],1)]),t.appSpecification?.compose?e("b-form-group",{attrs:{label:"Component"}},[e("div",{staticClass:"d-flex align-items-center"},[e("b-form-select",{staticClass:"input_s",attrs:{options:null,disabled:t.isComposeSingle,size:"sm"},on:{change:t.handleContainerChange},model:{value:t.selectedApp,callback:function(e){t.selectedApp=e},expression:"selectedApp"}},[e("b-form-select-option",{attrs:{value:"null",disabled:""}},[t._v(" -- Please select component -- ")]),t._l(t.appSpecification?.compose,(function(s){return e("b-form-select-option",{key:s.name,attrs:{value:s.name}},[t._v(" "+t._s(s.name)+" ")])}))],2),e("b-icon",{class:["ml-1","r",{disabled:t.isDisabled}],attrs:{icon:"arrow-clockwise"},on:{click:t.manualFetchLogs}})],1)]):t._e(),e("b-form-group",{attrs:{label:"Line Count"}},[e("b-form-input",{staticClass:"input",attrs:{type:"number",size:"sm",disabled:t.fetchAllLogs,step:"10",min:"0"},model:{value:t.lineCount,callback:function(e){t.lineCount=e},expression:"lineCount"}})],1),e("b-form-group",{attrs:{label:"Logs Since"}},[e("div",{staticClass:"d-flex align-items-center"},[e("b-form-input",{staticClass:"input",attrs:{size:"sm",type:"datetime-local",placeholder:"Logs Since"},model:{value:t.sinceTimestamp,callback:function(e){t.sinceTimestamp=e},expression:"sinceTimestamp"}}),t.sinceTimestamp?e("b-icon",{staticClass:"ml-1 x",attrs:{icon:"x-square"},on:{click:t.clearDateFilter}}):t._e()],1)])],1),e("b-form-group",{attrs:{label:"Filter"}},[e("b-input-group",{staticClass:"search_input",attrs:{size:"sm"}},[e("b-input-group-prepend",{attrs:{"is-text":""}},[e("b-icon",{attrs:{icon:"funnel-fill"}})],1),e("b-form-input",{attrs:{type:"search",placeholder:"Enter keywords.."},model:{value:t.filterKeyword,callback:function(e){t.filterKeyword=e},expression:"filterKeyword"}})],1),e("b-form-checkbox",{staticClass:"mt-2",attrs:{switch:""},on:{change:t.togglePolling},model:{value:t.pollingEnabled,callback:function(e){t.pollingEnabled=e},expression:"pollingEnabled"}},[t._v(" Auto-refresh "),e("b-icon",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.title",value:"Enable or disable automatic refreshing of logs every few seconds.",expression:"'Enable or disable automatic refreshing of logs every few seconds.'",modifiers:{hover:!0,title:!0}}],staticClass:"icon-tooltip",attrs:{icon:"info-circle"}})],1),e("b-form-checkbox",{attrs:{switch:""},model:{value:t.fetchAllLogs,callback:function(e){t.fetchAllLogs=e},expression:"fetchAllLogs"}},[t._v(" Fetch All Logs ")]),e("b-form-checkbox",{attrs:{switch:""},model:{value:t.displayTimestamps,callback:function(e){t.displayTimestamps=e},expression:"displayTimestamps"}},[t._v(" Display Timestamps ")]),e("b-form-checkbox",{attrs:{switch:""},model:{value:t.isLineByLineMode,callback:function(e){t.isLineByLineMode=e},expression:"isLineByLineMode"}},[t._v(" Line Selection "),e("b-icon",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.title",value:"Switch between normal text selection or selecting individual log lines for copying.",expression:"'Switch between normal text selection or selecting individual log lines for copying.'",modifiers:{hover:!0,title:!0}}],staticClass:"icon-tooltip",attrs:{icon:"info-circle"}})],1),e("b-form-checkbox",{staticClass:"mb-1",attrs:{switch:""},model:{value:t.autoScroll,callback:function(e){t.autoScroll=e},expression:"autoScroll"}},[t._v(" Auto-scroll "),e("b-icon",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.title",value:"Enable or disable automatic scrolling to the latest logs.",expression:"'Enable or disable automatic scrolling to the latest logs.'",modifiers:{hover:!0,title:!0}}],staticClass:"icon-tooltip",attrs:{icon:"info-circle"}})],1)],1)],1)]),e("div",{ref:"logsContainer",staticClass:"code-container",class:{"line-by-line-mode":t.isLineByLineMode}},[t.filteredLogs.length>0?e("button",{ref:"copyButton",staticClass:"log-copy-button ml-2",attrs:{type:"button",disabled:t.copied},on:{click:t.copyCode}},[e("b-icon",{attrs:{icon:t.copied?"check":"back"}}),t._v(" "+t._s(t.copied?"Copied!":"Copy")+" ")],1):t._e(),t.selectedLog.length>0&&t.filteredLogs.length>0?e("button",{staticClass:"log-copy-button ml-2",attrs:{type:"button"},on:{click:t.unselectText}},[e("b-icon",{attrs:{icon:"exclude"}}),t._v(" Unselect ")],1):t._e(),t.filteredLogs.length>0?e("button",{staticClass:"download-button",attrs:{disabled:t.downloadingLog,type:"button"},on:{click:function(e){return t.downloadApplicationLog(t.selectedApp?`${t.selectedApp}_${t.appSpecification.name}`:t.appSpecification.name)}}},[e("b-icon",{class:{"spin-icon-l":t.downloadingLog},attrs:{icon:t.downloadingLog?"arrow-repeat":"download"}}),t._v(" Download ")],1):t._e(),t.filteredLogs.length>0?e("div",t._l(t.filteredLogs,(function(s){return e("div",{directives:[{name:"sane-html",rawName:"v-sane-html",value:t.formatLog(s),expression:"formatLog(log)"}],key:t.extractTimestamp(s),staticClass:"log-entry",class:{selected:t.selectedLog.includes(t.extractTimestamp(s))},on:{click:function(e){t.isLineByLineMode&&t.toggleLogSelection(s)}}})})),0):""!==t.filterKeyword.trim()?e("div",{staticClass:"no-matches"},[t._v(" No log line matching the '"+t._s(t.filterKeyword)+"' filter. ")]):t.noLogs?e("div",{staticClass:"no-matches"},[t._v(" No log records found. ")]):t._e()])],1)]),e("b-tab",{attrs:{title:"Control"}},[e("b-row",{staticClass:"match-height"},[e("b-col",{attrs:{xs:"6"}},[e("b-card",{attrs:{title:"Control"}},[e("b-card-text",{staticClass:"mb-2"},[t._v(" General options to control running status of App. ")]),e("div",{staticClass:"text-center"},[e("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"mx-1 my-1",attrs:{id:"start-app",variant:"success","aria-label":"Start App"}},[t._v(" Start App ")]),e("confirm-dialog",{attrs:{target:"start-app","confirm-button":"Start App"},on:{confirm:function(e){return t.startApp(t.appName)}}}),e("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"mx-1 my-1",attrs:{id:"stop-app",variant:"success","aria-label":"Stop App"}},[t._v(" Stop App ")]),e("confirm-dialog",{attrs:{target:"stop-app","confirm-button":"Stop App"},on:{confirm:function(e){return t.stopApp(t.appName)}}}),e("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"mx-1 my-1",attrs:{id:"restart-app",variant:"success","aria-label":"Restart App"}},[t._v(" Restart App ")]),e("confirm-dialog",{attrs:{target:"restart-app","confirm-button":"Restart App"},on:{confirm:function(e){return t.restartApp(t.appName)}}})],1)],1)],1),e("b-col",{attrs:{xs:"6"}},[e("b-card",{attrs:{title:"Pause"}},[e("b-card-text",{staticClass:"mb-2"},[t._v(" The Pause command suspends all processes in the specified App. ")]),e("div",{staticClass:"text-center"},[e("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"mx-1 my-1",attrs:{id:"pause-app",variant:"success","aria-label":"Pause App"}},[t._v(" Pause App ")]),e("confirm-dialog",{attrs:{target:"pause-app","confirm-button":"Pause App"},on:{confirm:function(e){return t.pauseApp(t.appName)}}}),e("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"mx-1 my-1",attrs:{id:"unpause-app",variant:"success","aria-label":"Unpause App"}},[t._v(" Unpause App ")]),e("confirm-dialog",{attrs:{target:"unpause-app","confirm-button":"Unpause App"},on:{confirm:function(e){return t.unpauseApp(t.appName)}}})],1)],1)],1),e("b-col",{attrs:{xs:"6"}},[e("b-card",{attrs:{title:"Monitoring"}},[e("b-card-text",{staticClass:"mb-2"},[t._v(" Controls Application Monitoring ")]),e("div",{staticClass:"text-center"},[e("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"mx-1 my-1",attrs:{id:"start-monitoring",variant:"success","aria-label":"Start Monitoring"}},[t._v(" Start Monitoring ")]),e("confirm-dialog",{attrs:{target:"start-monitoring","confirm-button":"Start Monitoring"},on:{confirm:function(e){return t.startMonitoring(t.appName)}}}),e("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"mx-1 my-1",attrs:{id:"stop-monitoring",variant:"success","aria-label":"Stop Monitoring"}},[t._v(" Stop Monitoring ")]),e("confirm-dialog",{attrs:{target:"stop-monitoring","confirm-button":"Stop Monitoring"},on:{confirm:function(e){return t.stopMonitoring(t.appName,!1)}}}),e("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"mx-1 my-1",attrs:{id:"stop-monitoring-delete",variant:"success","aria-label":"Stop Monitoring and Delete Monitored Data"}},[t._v(" Stop Monitoring and Delete Monitored Data ")]),e("confirm-dialog",{attrs:{target:"stop-monitoring-delete","confirm-button":"Stop Monitoring"},on:{confirm:function(e){return t.stopMonitoring(t.appName,!0)}}})],1)],1)],1)],1),e("b-row",{staticClass:"match-height"},[e("b-col",{attrs:{xs:"6"}},[e("b-card",{attrs:{title:"Redeploy"}},[e("b-card-text",{staticClass:"mb-2"},[t._v(" Redeployes your application. Hard redeploy removes persistant data storage. ")]),e("div",{staticClass:"text-center"},[e("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"mx-1 my-1",attrs:{id:"redeploy-app-soft",variant:"success","aria-label":"Soft Redeploy App"}},[t._v(" Soft Redeploy App ")]),e("confirm-dialog",{attrs:{target:"redeploy-app-soft","confirm-button":"Redeploy"},on:{confirm:function(e){return t.redeployAppSoft(t.appName)}}}),e("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"mx-1 my-1",attrs:{id:"redeploy-app-hard",variant:"success","aria-label":"Hard Redeploy App"}},[t._v(" Hard Redeploy App ")]),e("confirm-dialog",{attrs:{target:"redeploy-app-hard","confirm-button":"Redeploy"},on:{confirm:function(e){return t.redeployAppHard(t.appName)}}})],1)],1)],1),e("b-col",{attrs:{xs:"6"}},[e("b-card",{attrs:{title:"Remove"}},[e("b-card-text",{staticClass:"mb-2"},[t._v(" Stops, uninstalls and removes all App data from this Flux node. ")]),e("div",{staticClass:"text-center"},[e("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"mx-1 my-1",attrs:{id:"remove-app",variant:"success","aria-label":"Remove App"}},[t._v(" Remove App ")]),e("confirm-dialog",{attrs:{target:"remove-app","confirm-button":"Remove App"},on:{confirm:function(e){return t.removeApp(t.appName)}}})],1)],1)],1)],1)],1),t.windowWidth>860?e("b-tab",{attrs:{title:"Component Control",disabled:!t.isApplicationInstalledLocally||t.appSpecification.version<=3}},t._l(t.appSpecification.compose,(function(s,i){return e("b-card",{key:i},[e("h4",[t._v(t._s(s.name)+" Component")]),e("b-row",{staticClass:"match-height"},[e("b-col",{attrs:{xs:"6"}},[e("b-card",{attrs:{title:"Control"}},[e("b-card-text",{staticClass:"mb-2"},[t._v(" General options to control running status of Component. ")]),e("div",{staticClass:"text-center"},[e("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"mx-1 my-1",attrs:{id:`start-app-${s.name}_${t.appSpecification.name}`,variant:"success","aria-label":"Start Component"}},[t._v(" Start Component ")]),e("confirm-dialog",{attrs:{target:`start-app-${s.name}_${t.appSpecification.name}`,"confirm-button":"Start Component"},on:{confirm:function(e){return t.startApp(`${s.name}_${t.appSpecification.name}`)}}}),e("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"mx-1 my-1",attrs:{id:`stop-app-${s.name}_${t.appSpecification.name}`,variant:"success","aria-label":"Stop Component"}},[t._v(" Stop Component ")]),e("confirm-dialog",{attrs:{target:`stop-app-${s.name}_${t.appSpecification.name}`,"confirm-button":"Stop App"},on:{confirm:function(e){return t.stopApp(`${s.name}_${t.appSpecification.name}`)}}}),e("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"mx-1 my-1",attrs:{id:`restart-app-${s.name}_${t.appSpecification.name}`,variant:"success","aria-label":"Restart Component"}},[t._v(" Restart Component ")]),e("confirm-dialog",{attrs:{target:`restart-app-${s.name}_${t.appSpecification.name}`,"confirm-button":"Restart Component"},on:{confirm:function(e){return t.restartApp(`${s.name}_${t.appSpecification.name}`)}}})],1)],1)],1),e("b-col",{attrs:{xs:"6"}},[e("b-card",{attrs:{title:"Pause"}},[e("b-card-text",{staticClass:"mb-2"},[t._v(" The Pause command suspends all processes in the specified Component. ")]),e("div",{staticClass:"text-center"},[e("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"mx-1 my-1",attrs:{id:`pause-app-${s.name}_${t.appSpecification.name}`,variant:"success","aria-label":"Pause Component"}},[t._v(" Pause Component ")]),e("confirm-dialog",{attrs:{target:`pause-app-${s.name}_${t.appSpecification.name}`,"confirm-button":"Pause Component"},on:{confirm:function(e){return t.pauseApp(`${s.name}_${t.appSpecification.name}`)}}}),e("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"mx-1 my-1",attrs:{id:`unpause-app-${s.name}_${t.appSpecification.name}`,variant:"success","aria-label":"Unpause Component"}},[t._v(" Unpause Component ")]),e("confirm-dialog",{attrs:{target:`unpause-app-${s.name}_${t.appSpecification.name}`,"confirm-button":"Unpause Component"},on:{confirm:function(e){return t.unpauseApp(`${s.name}_${t.appSpecification.name}`)}}})],1)],1)],1),e("b-col",{attrs:{xs:"6"}},[e("b-card",{attrs:{title:"Monitoring"}},[e("b-card-text",{staticClass:"mb-2"},[t._v(" Controls Component Monitoring ")]),e("div",{staticClass:"text-center"},[e("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"mx-1 my-1",attrs:{id:`start-monitoring-${s.name}_${t.appSpecification.name}`,variant:"success","aria-label":"Start Monitoring"}},[t._v(" Start Monitoring ")]),e("confirm-dialog",{attrs:{target:`start-monitoring-${s.name}_${t.appSpecification.name}`,"confirm-button":"Start Monitoring"},on:{confirm:function(e){return t.startMonitoring(`${s.name}_${t.appSpecification.name}`)}}}),e("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"mx-1 my-1",attrs:{id:`stop-monitoring-${s.name}_${t.appSpecification.name}`,variant:"success","aria-label":"Stop Monitoring"}},[t._v(" Stop Monitoring ")]),e("confirm-dialog",{attrs:{target:`stop-monitoring-${s.name}_${t.appSpecification.name}`,"confirm-button":"Stop Monitoring"},on:{confirm:function(e){return t.stopMonitoring(`${s.name}_${t.appSpecification.name}`,!1)}}}),e("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"mx-1 my-1",attrs:{id:`stop-monitoring-delete-${s.name}_${t.appSpecification.name}`,variant:"success","aria-label":"Stop Monitoring and Delete Monitored Data"}},[t._v(" Stop Monitoring and Delete Monitored Data ")]),e("confirm-dialog",{attrs:{target:`stop-monitoring-delete-${s.name}_${t.appSpecification.name}`,"confirm-button":"Stop Monitoring"},on:{confirm:function(e){return t.stopMonitoring(`${s.name}_${t.appSpecification.name}`,!0)}}})],1)],1)],1)],1)],1)})),1):t._e(),e("b-tab",{attrs:{title:"Backup/Restore",disabled:!t.appSpecification?.compose}},[e("div",[e("b-card",{attrs:{"no-body":""}},[e("b-tabs",{attrs:{pills:"",card:""}},[e("b-tab",{staticStyle:{margin:"0","padding-top":"0px"},attrs:{title:"Backup"}},[e("div",{staticClass:"mb-2",staticStyle:{border:"1px solid #ccc","border-radius":"8px",height:"45px",padding:"12px","line-height":"0px"}},[e("h5",[e("b-icon",{staticClass:"mr-1",attrs:{icon:"back"}}),t._v(" Manual Backup Container Data ")],1)]),e("div",{staticClass:"mb-2"},[e("b-form-group",[e("b-form-tags",{attrs:{id:"tags-component-select",size:"lg","add-on-change":"","no-outer-focus":""},scopedSlots:t._u([{key:"default",fn:function({tags:s,inputAttrs:i,inputHandlers:a,disabled:o,removeTag:n}){return[s.length>0?e("ul",{staticClass:"list-inline d-inline-block mb-2"},t._l(s,(function(s){return e("li",{key:s,staticClass:"list-inline-item"},[e("b-form-tag",{attrs:{title:s,disabled:o,variant:"primary"},on:{remove:function(t){return n(s)}}},[t._v(" "+t._s(s)+" ")])],1)})),0):t._e(),e("b-form-select",t._g(t._b({attrs:{disabled:o||0===t.componentAvailableOptions?.length||1===t.components?.length,options:t.componentAvailableOptions},scopedSlots:t._u([{key:"first",fn:function(){return[e("option",{attrs:{disabled:"",value:""}},[t._v(" Select the application component(s) you would like to backup ")])]},proxy:!0}],null,!0)},"b-form-select",i,!1),a))]}}]),model:{value:t.selectedBackupComponents,callback:function(e){t.selectedBackupComponents=e},expression:"selectedBackupComponents"}})],1)],1),t.components?.length>1?e("b-button",{staticClass:"mr-1",attrs:{variant:"outline-primary"},on:{click:t.addAllTags}},[e("b-icon",{staticClass:"mr-1",attrs:{scale:"0.9",icon:"check2-square"}}),t._v(" Select all ")],1):t._e(),e("b-button",{staticStyle:{"white-space":"nowrap"},attrs:{disabled:0===t.selectedBackupComponents.length||!0===t.backupProgress,variant:"outline-primary"},on:{click:function(e){return t.createBackup(t.appName,t.selectedBackupComponents)}}},[e("b-icon",{staticClass:"mr-1",attrs:{scale:"0.9",icon:"back"}}),t._v(" Create backup ")],1),e("br"),e("div",{staticClass:"mt-1"},[!0===t.backupProgress?e("div",{staticClass:"mb-2 mt-2 w-100",staticStyle:{margin:"0 auto",padding:"12px",border:"1px solid #eaeaea","border-radius":"8px","box-shadow":"0 4px 8px rgba(0, 0, 0, 0.1)","text-align":"center"}},[e("h5",{staticStyle:{"font-size":"16px","margin-bottom":"5px"}},[!0===t.backupProgress?e("span",[e("b-spinner",{attrs:{small:""}}),t._v(" "+t._s(t.tarProgress)+" ")],1):t._e()]),t._l(t.computedFileProgress,(function(s,i){return s.progress>0?e("b-progress",{key:i,staticClass:"mt-1",staticStyle:{height:"16px"},attrs:{max:100}},[e("b-progress-bar",{staticStyle:{"font-size":"14px"},attrs:{value:s.progress,label:`${s.fileName} - ${s.progress.toFixed(2)}%`}})],1):t._e()}))],2):t._e()]),t.backupList?.length>0&&!1===t.backupProgress?e("div",[e("div",{staticClass:"mb-1 text-right"},[e("b-dropdown",{staticClass:"mr-1",staticStyle:{"max-height":"38px","min-width":"100px","white-space":"nowrap"},attrs:{text:"Select",variant:"outline-primary"},scopedSlots:t._u([{key:"button-content",fn:function(){return[e("b-icon",{staticClass:"mr-1",attrs:{scale:"0.9",icon:"check2-square"}}),t._v(" Select ")]},proxy:!0}],null,!1,1960591975)},[e("b-dropdown-item",{attrs:{disabled:t.backupToUpload?.length===t.backupList?.length},on:{click:t.selectAllRows}},[e("b-icon",{staticClass:"mr-1",attrs:{scale:"0.9",icon:"check2-circle"}}),t._v(" Select all ")],1),e("b-dropdown-item",{attrs:{disabled:0===t.backupToUpload?.length},on:{click:t.clearSelected}},[e("b-icon",{staticClass:"mr-1",attrs:{scale:"0.7",icon:"square"}}),t._v(" Select none ")],1)],1),e("b-dropdown",{staticClass:"mr-1",staticStyle:{"max-height":"38px","min-width":"100px","white-space":"nowrap"},attrs:{text:"Download",variant:"outline-primary"},scopedSlots:t._u([{key:"button-content",fn:function(){return[e("b-icon",{staticClass:"mr-1",attrs:{scale:"0.9",icon:"download"}}),t._v(" Download ")]},proxy:!0}],null,!1,2545655511)},[e("b-dropdown-item",{attrs:{disabled:0===t.backupToUpload?.length},on:{click:function(e){return t.downloadAllBackupFiles(t.backupToUpload)}}},[e("b-icon",{staticClass:"mr-1",attrs:{scale:"0.7",icon:"download"}}),t._v(" Download selected ")],1),e("b-dropdown-item",{on:{click:function(e){return t.downloadAllBackupFiles(t.backupList)}}},[e("b-icon",{staticClass:"mr-1",attrs:{scale:"0.7",icon:"download"}}),t._v(" Download all ")],1)],1),e("b-button",{staticStyle:{"max-height":"38px","min-width":"100px","white-space":"nowrap"},attrs:{variant:"outline-danger"},on:{click:function(e){return t.deleteLocalBackup(null,t.backupList)}}},[e("b-icon",{staticClass:"mr-1",attrs:{scale:"0.9",icon:"trash"}}),t._v(" Remove all ")],1)],1),t.backupList?.length>0?e("b-table",{ref:"selectableTable",staticClass:"mb-0",attrs:{items:t.backupList,fields:[...t.localBackupTableFields,{key:"actions",label:"Actions",thStyle:{width:"5%"},class:"text-center"}],stacked:"md","show-empty":"",bordered:"","select-mode":"multi",selectable:"","selected-variant":"outline-dark",hover:"",small:""},on:{"row-selected":t.onRowSelected},scopedSlots:t._u([{key:"thead-top",fn:function(){return[e("b-tr",[e("b-td",{staticClass:"text-center",attrs:{colspan:"6"}},[e("b",[t._v(" List of available backups on the local machine (backups are automatically deleted 24 hours after creation) ")])])],1)]},proxy:!0},{key:"cell(create)",fn:function(e){return[t._v(" "+t._s(t.formatDateTime(e.item.create))+" ")]}},{key:"cell(expire)",fn:function(e){return[t._v(" "+t._s(t.formatDateTime(e.item.create,!0))+" ")]}},{key:"cell(isActive)",fn:function({rowSelected:s}){return[s?[e("span",{staticStyle:{color:"green"},attrs:{"aria-hidden":"true"}},[e("b-icon",{attrs:{icon:"check-square-fill",scale:"1",variant:"success"}})],1),e("span",{staticClass:"sr-only"},[t._v("Selected")])]:[e("span",{staticStyle:{color:"white"},attrs:{"aria-hidden":"true"}},[e("b-icon",{attrs:{icon:"square",scale:"1",variant:"secondary"}})],1),e("span",{staticClass:"sr-only"},[t._v("Not selected")])]]}},{key:"cell(file_size)",fn:function(e){return[t._v(" "+t._s(t.addAndConvertFileSizes(e.item.file_size))+" ")]}},{key:"cell(actions)",fn:function(s){return[e("div",{staticClass:"d-flex justify-content-center align-items-center"},[e("b-button",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.top",value:"Remove file",expression:"'Remove file'",modifiers:{hover:!0,top:!0}}],staticClass:"d-flex justify-content-center align-items-center mr-1 custom-button",attrs:{id:`delete-local-backup-${s.item.component}_${t.backupList[s.index].create}`,variant:"outline-danger"}},[e("b-icon",{staticClass:"d-flex justify-content-center align-items-center",attrs:{scale:"0.9",icon:"trash"}})],1),e("confirm-dialog",{attrs:{target:`delete-local-backup-${s.item.component}_${t.backupList[s.index].create}`,"confirm-button":"Remove File"},on:{confirm:function(e){return t.deleteLocalBackup(s.item.component,t.backupList,t.backupList[s.index].file)}}}),e("b-button",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.top",value:"Download file",expression:"'Download file'",modifiers:{hover:!0,top:!0}}],staticClass:"d-flex justify-content-center align-items-center custom-button",attrs:{variant:"outline-primary"},on:{click:function(e){return t.downloadAllBackupFiles([{component:s.item.component,file:t.backupList[s.index].file}])}}},[e("b-icon",{staticClass:"d-flex justify-content-center align-items-center",attrs:{scale:"1",icon:"cloud-arrow-down"}})],1)],1)]}}],null,!1,1174065662)}):t._e(),e("span",{staticStyle:{"font-size":"0.9rem"}},[t._v("Select application component(s) you would like to upload")]),t.showProgressBar?e("b-card-text",[e("div",{staticClass:"mt-1"},[t.fileProgress.length>0?e("div",{staticClass:"mb-2 mt-2 w-100",staticStyle:{margin:"0 auto",padding:"12px",border:"1px solid #eaeaea","border-radius":"8px","box-shadow":"0 4px 8px rgba(0, 0, 0, 0.1)","text-align":"center"}},[e("h5",{staticStyle:{"font-size":"16px","margin-bottom":"5px"}},[t.allDownloadsCompleted()?e("span",[t._v(" Download Completed ")]):e("span",[e("b-spinner",{attrs:{small:""}}),t._v(" Downloading... ")],1)]),t._l(t.computedFileProgress,(function(s,i){return s.progress>0?e("b-progress",{key:i,staticClass:"mt-1",staticStyle:{height:"16px"},attrs:{max:100}},[e("b-progress-bar",{staticStyle:{"font-size":"14px"},attrs:{value:s.progress,label:`${s.fileName} - ${s.progress.toFixed(2)}%`}})],1):t._e()}))],2):t._e()])]):t._e(),t.backupList?.length>0?e("div",{staticClass:"mt-2"},[e("div",{staticClass:"mb-2 mt-3",staticStyle:{border:"1px solid #ccc","border-radius":"8px",height:"45px",padding:"12px","line-height":"0px"}},[e("h5",[e("b-icon",{attrs:{icon:"gear-fill"}}),t._v(" Choose your storage method")],1)]),e("b-form-radio-group",{attrs:{id:"btn-radios-2",options:t.storageMethod,"button-variant":"outline-primary",name:"radio-btn-outline",disable:t.storageMethod,buttons:""},model:{value:t.selectedStorageMethod,callback:function(e){t.selectedStorageMethod=e},expression:"selectedStorageMethod"}}),"flux"===t.selectedStorageMethod?e("div",[!0===t.sigInPrivilage?e("div",{staticClass:"mb-2"},[e("ul",{staticClass:"mt-2",staticStyle:{"font-size":"0.9rem"}},[e("li",[t._v("Free FluxDrive backups! Up to 10GB total to use per user")]),e("li",[t._v("FluxDrive backups can be downloaded on Restore page")])]),e("b-button",{staticClass:"mt-2",attrs:{disabled:!0===t.uploadProgress||0===t.backupToUpload.length,block:"",variant:"outline-primary"},on:{click:function(e){return t.uploadToFluxDrive()}}},[e("b-icon",{staticClass:"mr-1",attrs:{scale:"1.2",icon:"cloud-arrow-up"}}),t._v(" Upload Selected Components To FluxDrive ")],1)],1):t._e(),!1===t.sigInPrivilage?e("b-button",{staticClass:"mt-1 w-100",attrs:{variant:"outline-primary"},on:{click:t.removeAllBackup}},[e("b-icon",{staticClass:"mr-1",attrs:{scale:"1.5",icon:"cloud-arrow-up"}}),t._v(" Export ")],1):t._e()],1):t._e(),"google"===t.selectedStorageMethod?e("div",[e("b-button",{staticClass:"mt-1 w-100",attrs:{variant:"outline-primary"},on:{click:t.removeAllBackup}},[e("b-icon",{staticClass:"mr-1",attrs:{scale:"1.5",icon:"cloud-arrow-up"}}),t._v(" Export ")],1)],1):t._e(),t.showUploadProgressBar?e("b-card-text",[e("div",{staticClass:"mt-1"},[t.fileProgress.length>0?e("div",{staticClass:"mb-2 mt-2 w-100",staticStyle:{margin:"0 auto",padding:"12px",border:"1px solid #eaeaea","border-radius":"8px","box-shadow":"0 4px 8px rgba(0, 0, 0, 0.1)","text-align":"center"}},[e("h5",{staticStyle:{"font-size":"16px","margin-bottom":"5px"}},[e("span",[e("b-spinner",{attrs:{small:""}}),t._v(" "+t._s(t.uploadStatus)+" ")],1)]),t._l(t.computedFileProgress,(function(s,i){return s.progress>0?e("b-progress",{key:i,staticClass:"mt-1",staticStyle:{height:"16px"},attrs:{max:100}},[e("b-progress-bar",{staticStyle:{"font-size":"14px"},attrs:{value:s.progress,label:`${s.fileName} - ${s.progress.toFixed(2)}%`}})],1):t._e()}))],2):t._e()])]):t._e(),t.showFluxDriveProgressBar?e("b-card-text",[e("div",{staticClass:"mt-1"},[t.fileProgressFD.length>0?e("div",{staticClass:"mb-2 mt-2 w-100",staticStyle:{margin:"0 auto",padding:"12px",border:"1px solid #eaeaea","border-radius":"8px","box-shadow":"0 4px 8px rgba(0, 0, 0, 0.1)","text-align":"center"}},[e("h5",{staticStyle:{"font-size":"16px","margin-bottom":"5px"}},[e("span",[e("b-spinner",{attrs:{small:""}}),t._v(" "+t._s(t.fluxDriveUploadStatus)+" ")],1)]),t._l(t.computedFileProgressFD,(function(s,i){return s.progress>0?e("b-progress",{key:i,staticClass:"mt-1",staticStyle:{height:"16px"},attrs:{max:100}},[e("b-progress-bar",{staticStyle:{"font-size":"14px"},attrs:{value:s.progress,label:`${s.fileName} - ${s.progress.toFixed(2)}%`}})],1):t._e()}))],2):t._e()])]):t._e()],1):t._e()],1):t._e()],1),e("b-tab",{staticStyle:{margin:"0","padding-top":"0px"},attrs:{title:"Restore"},on:{click:t.handleRadioClick}},[e("div",{staticClass:"mb-2",staticStyle:{border:"1px solid #ccc","border-radius":"8px",height:"45px",padding:"12px","line-height":"0px"}},[e("h5",[e("b-icon",{staticClass:"mr-1",attrs:{scale:"1.4",icon:"cloud-download"}}),t._v(" Select restore method ")],1)]),e("b-form-group",{staticClass:"mb-2"},[e("b-row",[e("b-col",{staticClass:"d-flex align-items-center",staticStyle:{height:"38px"}},[e("b-form-radio-group",{staticStyle:{"max-height":"38px","min-width":"100px","white-space":"nowrap"},attrs:{id:"btn-radios-2",options:t.restoreOptions,disable:t.restoreOptions,"button-variant":"outline-primary",name:"radio-btn-outline",buttons:""},on:{change:t.handleRadioClick},model:{value:t.selectedRestoreOption,callback:function(e){t.selectedRestoreOption=e},expression:"selectedRestoreOption"}})],1),e("b-col",{staticClass:"text-right",staticStyle:{height:"38px"}},["FluxDrive"===t.selectedRestoreOption?e("b-button",{staticStyle:{"max-height":"38px","min-width":"100px","white-space":"nowrap"},attrs:{variant:"outline-success"},on:{click:t.getFluxDriveBackupList}},[e("b-icon",{staticClass:"mr-1",attrs:{scale:"1.2",icon:"arrow-repeat"}}),t._v("Refresh ")],1):t._e()],1)],1)],1),"FluxDrive"===t.selectedRestoreOption?e("div",[!0===t.sigInPrivilage?e("div",[e("div",[e("b-input-group",{staticClass:"mb-2"},[e("b-input-group-prepend",{attrs:{"is-text":""}},[e("b-icon",{attrs:{icon:"funnel-fill"}})],1),e("b-form-select",{attrs:{options:t.restoreComponents},model:{value:t.nestedTableFilter,callback:function(e){t.nestedTableFilter=e},expression:"nestedTableFilter"}})],1)],1),e("b-table",{key:t.tableBackup,attrs:{items:t.checkpoints,fields:t.backupTableFields,stacked:"md","show-empty":"",bordered:"",small:"","empty-text":"No records available. Please export your backup to FluxDrive.","sort-by":t.sortbackupTableKey,"sort-desc":t.sortbackupTableDesc,"tbody-tr-class":t.rowClassFluxDriveBackups},on:{"update:sortBy":function(e){t.sortbackupTableKey=e},"update:sort-by":function(e){t.sortbackupTableKey=e},"update:sortDesc":function(e){t.sortbackupTableDesc=e},"update:sort-desc":function(e){t.sortbackupTableDesc=e},filtered:t.onFilteredBackup},scopedSlots:t._u([{key:"thead-top",fn:function(){return[e("b-tr",[e("b-td",{staticClass:"text-center",attrs:{colspan:"6",variant:"dark"}},[e("b-icon",{staticClass:"mr-2",attrs:{scale:"1.2",icon:"back"}}),e("b",[t._v("Backups Inventory")])],1)],1)]},proxy:!0},{key:"cell(actions)",fn:function(s){return[e("div",{staticClass:"d-flex justify-content-center align-items-center"},[e("b-button",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.top",value:"Remove Backup(s)",expression:"'Remove Backup(s)'",modifiers:{hover:!0,top:!0}}],staticClass:"d-flex justify-content-center align-items-center mr-1",staticStyle:{width:"15px",height:"25px"},attrs:{id:`remove-checkpoint-${s.item.timestamp}`,variant:"outline-danger"}},[e("b-icon",{staticClass:"d-flex justify-content-center align-items-center",attrs:{scale:"0.9",icon:"trash"}})],1),e("confirm-dialog",{attrs:{target:`remove-checkpoint-${s.item.timestamp}`,"confirm-button":"Remove Backup(s)"},on:{confirm:function(e){return t.deleteRestoreBackup(s.item.component,t.checkpoints,s.item.timestamp)}}}),e("b-button",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.top",value:"Add all to Restore List",expression:"'Add all to Restore List'",modifiers:{hover:!0,top:!0}}],staticClass:"d-flex justify-content-center align-items-center",staticStyle:{width:"15px",height:"25px"},attrs:{variant:"outline-primary"},on:{click:function(e){return t.addAllBackupComponents(s.item.timestamp)}}},[e("b-icon",{staticClass:"d-flex justify-content-center align-items-center",attrs:{scale:"0.9",icon:"save"}})],1)],1)]}},{key:"cell(timestamp)",fn:function(s){return[e("kbd",{staticClass:"alert-info no-wrap"},[e("b-icon",{attrs:{scale:"1.2",icon:"hdd"}}),t._v("  backup_"+t._s(s.item.timestamp))],1)]}},{key:"cell(time)",fn:function(e){return[t._v(" "+t._s(t.formatDateTime(e.item.timestamp))+" ")]}},{key:"row-details",fn:function(s){return[e("b-table",{key:t.tableBackup,staticClass:"backups-table",attrs:{stacked:"md","show-empty":"",bordered:"",hover:"",small:"",items:s.item.components.filter((e=>Object.values(e).some((e=>String(e).toLowerCase().includes(t.nestedTableFilter.toLowerCase()))))),fields:t.componentsTable1},scopedSlots:t._u([{key:"cell(file_url)",fn:function(s){return[e("div",{staticClass:"ellipsis-wrapper"},[e("b-link",{attrs:{href:s.item.file_url,target:"_blank",rel:"noopener noreferrer"}},[t._v(" "+t._s(s.item.file_url)+" ")])],1)]}},{key:"cell(file_size)",fn:function(e){return[t._v(" "+t._s(t.addAndConvertFileSizes(e.item.file_size))+" ")]}},{key:"cell(actions)",fn:function(i){return[e("b-button",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.top",value:"Add to Restore List",expression:"'Add to Restore List'",modifiers:{hover:!0,top:!0}}],staticClass:"d-flex justify-content-center align-items-center",staticStyle:{margin:"auto",width:"95px",height:"25px",display:"flex"},attrs:{variant:"outline-primary"},on:{click:function(e){return t.addComponent(i.item,s.item.timestamp)}}},[e("b-icon",{staticClass:"d-flex justify-content-center align-items-center",attrs:{scale:"0.7",icon:"plus-lg"}})],1)]}}],null,!0)})]}}],null,!1,1747254148)}),t.newComponents.length>0?e("b-table",{staticClass:"mt-1 backups-table",attrs:{items:t.newComponents,fields:[...t.newComponentsTableFields,{key:"actions",label:"Actions",thStyle:{width:"20%"},class:"text-center"}],stacked:"md","show-empty":"",bordered:"",small:""},scopedSlots:t._u([{key:"thead-top",fn:function(){return[e("b-tr",[e("b-td",{staticClass:"text-center",attrs:{colspan:"6",variant:"dark"}},[e("b-icon",{staticClass:"mr-1",attrs:{scale:"1.2",icon:"life-preserver"}}),e("b",[t._v("Restore Overview")])],1)],1)]},proxy:!0},{key:"cell(timestamp)",fn:function(e){return[t._v(" "+t._s(t.formatDateTime(e.item.timestamp))+" ")]}},{key:"cell(file_url)",fn:function(s){return[e("div",{staticClass:"ellipsis-wrapper"},[e("b-link",{attrs:{href:s.item.file_url,target:"_blank",rel:"noopener noreferrer"}},[t._v(" "+t._s(s.item.file_url)+" ")])],1)]}},{key:"cell(file_size)",fn:function(e){return[t._v(" "+t._s(t.addAndConvertFileSizes(e.item.file_size))+" ")]}},{key:"cell(actions)",fn:function(s){return[e("div",{staticClass:"d-flex justify-content-center align-items-center"},[e("b-button",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.top",value:"Remove restore job",expression:"'Remove restore job'",modifiers:{hover:!0,top:!0}}],staticClass:"d-flex justify-content-center align-items-center",staticStyle:{width:"95px",height:"25px"},attrs:{variant:"outline-danger"},on:{click:function(e){return t.deleteItem(s.index,t.newComponents)}}},[e("b-icon",{staticClass:"d-flex justify-content-center align-items-center",attrs:{scale:"0.9",icon:"trash"}})],1)],1)]}},{key:"custom-foot",fn:function(){return[e("b-tr",[e("b-td",{staticClass:"text-right",attrs:{colspan:"3",variant:"dark"}}),e("b-td",{staticStyle:{"text-align":"center","vertical-align":"middle"},attrs:{colspan:"2",variant:"dark"}},[e("b-icon",{staticClass:"mr-2",attrs:{icon:"hdd",scale:"1.4"}}),t._v(" "+t._s(t.addAndConvertFileSizes(t.totalArchiveFileSize(t.newComponents)))+" ")],1)],1)]},proxy:!0}],null,!1,3243908673)}):t._e(),e("b-alert",{staticClass:"mt-1 rounded-0 d-flex align-items-center justify-content-center",staticStyle:{"z-index":"1000"},attrs:{variant:t.alertVariant,solid:"true",dismissible:""},model:{value:t.showTopFluxDrive,callback:function(e){t.showTopFluxDrive=e},expression:"showTopFluxDrive"}},[e("h5",{staticClass:"mt-1 mb-1"},[t._v(" "+t._s(t.alertMessage)+" ")])]),t.newComponents?.length>0&&!t.restoringFromFluxDrive?e("b-button",{staticClass:"mt-2",attrs:{block:"",variant:"outline-primary"},on:{click:function(e){return t.restoreFromFluxDrive(t.newComponents)}}},[e("b-icon",{staticClass:"mr-1",attrs:{icon:"arrow-clockwise",scale:"1.2"}}),t._v("Restore ")],1):t._e(),!0===t.restoringFromFluxDrive?e("div",{staticClass:"mb-2 mt-2 w-100",staticStyle:{margin:"0 auto",padding:"12px",border:"1px solid #eaeaea","border-radius":"8px","box-shadow":"0 4px 8px rgba(0, 0, 0, 0.1)","text-align":"center"}},[e("h5",{staticStyle:{"font-size":"16px","margin-bottom":"5px"}},[!0===t.restoringFromFluxDrive?e("span",[e("b-spinner",{attrs:{small:""}}),t._v(" "+t._s(t.restoreFromFluxDriveStatus)+" ")],1):t._e()])]):t._e()],1):t._e()]):t._e(),"Upload File"===t.selectedRestoreOption?e("div",[e("div",[e("b-input-group",{staticClass:"mb-0"},[e("b-input-group-prepend",{attrs:{"is-text":""}},[e("b-icon",{attrs:{icon:"folder-plus"}})],1),e("b-form-select",{staticStyle:{"border-radius":"0"},attrs:{options:t.components,disabled:t.remoteFileComponents},scopedSlots:t._u([{key:"first",fn:function(){return[e("b-form-select-option",{attrs:{value:null,disabled:""}},[t._v(" - Select component - ")])]},proxy:!0}],null,!1,2230972607),model:{value:t.restoreRemoteFile,callback:function(e){t.restoreRemoteFile=e},expression:"restoreRemoteFile"}}),e("b-input-group-append",[e("b-button",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.top",value:"Choose file to upload",expression:"'Choose file to upload'",modifiers:{hover:!0,top:!0}}],attrs:{disabled:null===t.restoreRemoteFile,text:"Button",size:"sm",variant:"outline-primary"},on:{click:t.addRemoteFile}},[e("b-icon",{attrs:{icon:"cloud-arrow-up",scale:"1.5"}})],1)],1)],1)],1),e("div",[e("input",{ref:"fileselector",staticClass:"flux-share-upload-input",staticStyle:{display:"none"},attrs:{id:"file-selector",type:"file"},on:{input:t.handleFiles}})]),e("b-alert",{staticClass:"mt-1 rounded-0 d-flex align-items-center justify-content-center",staticStyle:{"z-index":"1000"},attrs:{variant:t.alertVariant,solid:"true",dismissible:""},model:{value:t.showTopUpload,callback:function(e){t.showTopUpload=e},expression:"showTopUpload"}},[e("h5",{staticClass:"mt-1 mb-1"},[t._v(" "+t._s(t.alertMessage)+" ")])]),t.files?.length>0?e("div",{staticClass:"d-flex justify-content-between mt-2"},[e("b-table",{staticClass:"b-table",attrs:{small:"",bordered:"",size:"sm",items:t.files,fields:t.computedRestoreUploadFileFields},scopedSlots:t._u([{key:"thead-top",fn:function(){return[e("b-tr",[e("b-td",{staticClass:"text-center",attrs:{colspan:"6",variant:"dark"}},[e("b-icon",{staticClass:"mr-1",attrs:{scale:"1.2",icon:"life-preserver"}}),e("b",[t._v("Restore Overview")])],1)],1)]},proxy:!0},{key:"cell(file)",fn:function(s){return[e("div",{staticClass:"table-cell"},[t._v(" "+t._s(s.value)+" ")])]}},{key:"cell(file_size)",fn:function(s){return[e("div",{staticClass:"table-cell no-wrap"},[t._v(" "+t._s(t.addAndConvertFileSizes(s.value))+" ")])]}},{key:"cell(actions)",fn:function(s){return[e("div",{staticClass:"d-flex justify-content-center align-items-center"},[e("b-button",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.top",value:"Remove restore job",expression:"'Remove restore job'",modifiers:{hover:!0,top:!0}}],staticClass:"d-flex justify-content-center align-items-center",staticStyle:{width:"15px",height:"25px"},attrs:{variant:"outline-danger"},on:{click:function(e){return t.deleteItem(s.index,t.files,s.item.file,"upload")}}},[e("b-icon",{staticClass:"d-flex justify-content-center align-items-center",attrs:{scale:"0.9",icon:"trash"}})],1)],1)]}},{key:"custom-foot",fn:function(){return[e("b-tr",[e("b-td",{staticClass:"text-right",attrs:{colspan:"2",variant:"dark"}}),e("b-td",{staticStyle:{"text-align":"center","vertical-align":"middle"},attrs:{colspan:"2",variant:"dark"}},[e("b-icon",{staticClass:"mr-1",attrs:{icon:"hdd",scale:"1.4"}}),t._v(t._s(t.addAndConvertFileSizes(t.files))+" ")],1)],1)]},proxy:!0}],null,!1,1264712967)})],1):t._e(),e("div",{staticClass:"mt-2"},[t.restoreFromUpload?e("div",{staticClass:"mb-2 mt-2 w-100",staticStyle:{margin:"0 auto",padding:"12px",border:"1px solid #eaeaea","border-radius":"8px","box-shadow":"0 4px 8px rgba(0, 0, 0, 0.1)"}},[e("h5",{staticStyle:{"font-size":"16px","margin-bottom":"5px","text-align":"center"}},[t.restoreFromUpload?e("span",[e("b-spinner",{attrs:{small:""}}),t._v(" "+t._s(t.restoreFromUploadStatus)+" ")],1):t._e()]),t._l(t.files,(function(s){return s.uploading?e("div",{key:s.file_name,staticClass:"upload-item mb-1"},[e("div",{class:s.uploading?"":"hidden"},[t._v(" "+t._s(s.file_name)+" ")]),e("b-progress",{attrs:{max:"100",height:"15px"}},[e("b-progress-bar",{class:s.uploading?"":"hidden",attrs:{value:s.progress,label:`${s.progress.toFixed(2)}%`}})],1)],1):t._e()}))],2):t._e()]),t.files?.length>0&&""===t.restoreFromUploadStatus?e("b-button",{staticClass:"mt-2",attrs:{block:"",variant:"outline-primary"},on:{click:function(e){return t.startUpload()}}},[e("b-icon",{staticClass:"mr-1",attrs:{icon:"arrow-clockwise",scale:"1.1"}}),t._v("Restore ")],1):t._e()],1):t._e(),"Remote URL"===t.selectedRestoreOption?e("div",[e("div",[e("b-input-group",{staticClass:"mb-0"},[e("b-input-group-prepend",{attrs:{"is-text":""}},[e("b-icon",{attrs:{icon:"globe"}})],1),e("b-form-input",{attrs:{state:t.urlValidationState,type:"url",placeholder:"Enter the URL for your remote backup archive",required:""},model:{value:t.restoreRemoteUrl,callback:function(e){t.restoreRemoteUrl=e},expression:"restoreRemoteUrl"}}),e("b-input-group-append",[e("b-form-select",{staticStyle:{"border-radius":"0"},attrs:{options:t.components,disabled:t.remoteUrlComponents},scopedSlots:t._u([{key:"first",fn:function(){return[e("b-form-select-option",{attrs:{value:null,disabled:""}},[t._v(" - Select component - ")])]},proxy:!0}],null,!1,2230972607),model:{value:t.restoreRemoteUrlComponent,callback:function(e){t.restoreRemoteUrlComponent=e},expression:"restoreRemoteUrlComponent"}})],1),e("b-input-group-append",[e("b-button",{attrs:{disabled:null===t.restoreRemoteUrlComponent,size:"sm",variant:"outline-primary"},on:{click:function(e){return t.addRemoteUrlItem(t.appName,t.restoreRemoteUrlComponent)}}},[e("b-icon",{attrs:{scale:"0.8",icon:"plus-lg"}})],1)],1)],1),e("b-form-invalid-feedback",{staticClass:"mb-2",attrs:{state:t.urlValidationState}},[t._v(" "+t._s(t.urlValidationMessage)+" ")])],1),e("b-alert",{staticClass:"mt-1 rounded-0 d-flex align-items-center justify-content-center",staticStyle:{"z-index":"1000"},attrs:{variant:t.alertVariant,solid:"true",dismissible:""},model:{value:t.showTopRemote,callback:function(e){t.showTopRemote=e},expression:"showTopRemote"}},[e("h5",{staticClass:"mt-1 mb-1"},[t._v(" "+t._s(t.alertMessage)+" ")])]),t.restoreRemoteUrlItems?.length>0?e("div",{staticClass:"d-flex justify-content-between mt-2"},[e("b-table",{staticClass:"b-table",attrs:{small:"",bordered:"",size:"sm",items:t.restoreRemoteUrlItems,fields:t.computedRestoreRemoteURLFields},scopedSlots:t._u([{key:"thead-top",fn:function(){return[e("b-tr",[e("b-td",{staticClass:"text-center",attrs:{colspan:"6",variant:"dark"}},[e("b-icon",{staticClass:"mr-1",attrs:{scale:"1.2",icon:"life-preserver"}}),e("b",[t._v("Restore Overview")])],1)],1)]},proxy:!0},{key:"cell(url)",fn:function(s){return[e("div",{staticClass:"table-cell no"},[t._v(" "+t._s(s.value)+" ")])]}},{key:"cell(component)",fn:function(s){return[e("div",{staticClass:"table-cell"},[t._v(" "+t._s(s.value)+" ")])]}},{key:"cell(file_size)",fn:function(s){return[e("div",{staticClass:"table-cell no-wrap"},[t._v(" "+t._s(t.addAndConvertFileSizes(s.value))+" ")])]}},{key:"cell(actions)",fn:function(s){return[e("div",{staticClass:"d-flex justify-content-center align-items-center"},[e("b-button",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.top",value:"Remove restore job",expression:"'Remove restore job'",modifiers:{hover:!0,top:!0}}],staticClass:"d-flex justify-content-center align-items-center",staticStyle:{width:"15px",height:"25px"},attrs:{variant:"outline-danger"},on:{click:function(e){return t.deleteItem(s.index,t.restoreRemoteUrlItems)}}},[e("b-icon",{staticClass:"d-flex justify-content-center align-items-center",attrs:{scale:"0.9",icon:"trash"}})],1)],1)]}},{key:"custom-foot",fn:function(){return[e("b-tr",[e("b-td",{staticClass:"text-right",attrs:{colspan:"2",variant:"dark"}}),e("b-td",{staticStyle:{"text-align":"center","vertical-align":"middle"},attrs:{colspan:"2",variant:"dark"}},[e("b-icon",{staticClass:"mr-1",attrs:{icon:"hdd",scale:"1.4"}}),t._v(t._s(t.addAndConvertFileSizes(t.restoreRemoteUrlItems))+" ")],1)],1)]},proxy:!0}],null,!1,2584524300)})],1):t._e(),e("div",{staticClass:"mt-2"},[!0===t.downloadingFromUrl?e("div",{staticClass:"mb-2 mt-2 w-100",staticStyle:{margin:"0 auto",padding:"12px",border:"1px solid #eaeaea","border-radius":"8px","box-shadow":"0 4px 8px rgba(0, 0, 0, 0.1)","text-align":"center"}},[e("h5",{staticStyle:{"font-size":"16px","margin-bottom":"5px"}},[!0===t.downloadingFromUrl?e("span",[e("b-spinner",{attrs:{small:""}}),t._v(" "+t._s(t.restoreFromRemoteURLStatus)+" ")],1):t._e()])]):t._e()]),t.restoreRemoteUrlItems?.length>0&&""===t.restoreFromRemoteURLStatus?e("b-button",{staticClass:"mt-2",attrs:{block:"",variant:"outline-primary"},on:{click:function(e){return t.restoreFromRemoteFile(t.appName)}}},[e("b-icon",{staticClass:"mr-1",attrs:{icon:"arrow-clockwise",scale:"1.1"}}),t._v("Restore ")],1):t._e()],1):t._e()],1)],1)],1)],1)]),e("b-tab",{attrs:{title:"Interactive Terminal"}},[e("div",{staticClass:"text-center"},[e("div",[e("b-card-group",{attrs:{deck:""}},[e("b-card",{attrs:{"header-tag":"header"}},[e("div",{staticClass:"mb-2",staticStyle:{border:"1px solid #ccc","border-radius":"8px",height:"45px",padding:"12px","text-align":"left","line-height":"0px"}},[e("h5",[e("b-icon",{staticClass:"mr-1",attrs:{scale:"1.2",icon:"terminal"}}),t._v(" Browser-based Interactive Terminal ")],1)]),e("div",{staticClass:"d-flex align-items-center"},[e("div",{directives:[{name:"show",rawName:"v-show",value:t.appSpecification?.compose,expression:"appSpecification?.compose"}],staticClass:"mr-4"},[e("b-form-select",{attrs:{options:null,disabled:!!t.isVisible||t.isComposeSingle},model:{value:t.selectedApp,callback:function(e){t.selectedApp=e},expression:"selectedApp"}},[e("b-form-select-option",{attrs:{value:"null",disabled:""}},[t._v(" -- Please select component -- ")]),t._l(t.appSpecification?.compose,(function(s){return e("b-form-select-option",{key:s.name,attrs:{value:s.name}},[t._v(" "+t._s(s.name)+" ")])}))],2)],1),e("div",{staticClass:"mr-4"},[e("b-form-select",{attrs:{options:t.options,disabled:!!t.isVisible},on:{input:t.onSelectChangeCmd},scopedSlots:t._u([{key:"first",fn:function(){return[e("b-form-select-option",{attrs:{option:null,value:null,disabled:""}},[t._v(" -- Please select command -- ")])]},proxy:!0}]),model:{value:t.selectedCmd,callback:function(e){t.selectedCmd=e},expression:"selectedCmd"}})],1),t.isVisible||t.isConnecting?t._e():e("b-button",{staticClass:"col-2 no-wrap-limit",attrs:{href:"#",variant:"outline-primary"},on:{click:function(e){return t.connectTerminal(t.selectedApp?`${t.selectedApp}_${t.appSpecification.name}`:t.appSpecification.name)}}},[t._v(" Connect ")]),t.isVisible?e("b-button",{staticClass:"col-2 no-wrap-limit",attrs:{variant:"outline-danger"},on:{click:t.disconnectTerminal}},[t._v(" Disconnect ")]):t._e(),t.isConnecting?e("b-button",{staticClass:"col-2 align-items-center justify-content-center",attrs:{variant:"outline-primary",disabled:""}},[e("div",{staticClass:"d-flex align-items-center justify-content-center"},[e("b-spinner",{staticClass:"mr-1",attrs:{small:""}}),t._v(" Connecting... ")],1)]):t._e(),e("div",{staticClass:"ml-auto mt-1"},[e("div",{staticClass:"ml-auto d-flex"},[e("b-form-checkbox",{staticClass:"ml-4 mr-1 d-flex align-items-center justify-content-center",attrs:{switch:"",disabled:!!t.isVisible},on:{input:t.onSelectChangeUser},model:{value:t.enableUser,callback:function(e){t.enableUser=e},expression:"enableUser"}},[e("div",{staticClass:"d-flex",staticStyle:{"font-size":"14px"}},[t._v(" User ")])]),e("b-form-checkbox",{staticClass:"ml-2 d-flex align-items-center justify-content-center",attrs:{switch:"",disabled:!!t.isVisible},on:{input:t.onSelectChangeEnv},model:{value:t.enableEnvironment,callback:function(e){t.enableEnvironment=e},expression:"enableEnvironment"}},[e("div",{staticClass:"d-flex",staticStyle:{"font-size":"14px"}},[t._v(" Environment ")])])],1)])],1),"Custom"!==t.selectedCmd||t.isVisible?t._e():e("div",{staticClass:"d-flex mt-1"},[e("b-form-input",{style:{width:"100%"},attrs:{placeholder:"Enter custom command (string)"},model:{value:t.customValue,callback:function(e){t.customValue=e},expression:"customValue"}})],1),t.enableUser&&!t.isVisible?e("div",{staticClass:"d-flex mt-1"},[e("b-form-input",{style:{width:"100%"},attrs:{placeholder:"Enter user. Format is one of: user, user:group, uid, or uid:gid."},model:{value:t.userInputValue,callback:function(e){t.userInputValue=e},expression:"userInputValue"}})],1):t._e(),t.enableEnvironment&&!t.isVisible?e("div",{staticClass:"d-flex mt-1"},[e("b-form-input",{style:{width:"100%"},attrs:{placeholder:"Enter environment parameters (string)"},model:{value:t.envInputValue,callback:function(e){t.envInputValue=e},expression:"envInputValue"}})],1):t._e(),e("div",{staticClass:"d-flex align-items-center mb-1"},[t.isVisible?e("div",{staticClass:"mt-2"},["Custom"!==t.selectedCmd?[e("span",{staticStyle:{"font-weight":"bold"}},[t._v("Exec into container")]),e("span",{style:t.selectedOptionTextStyle},[t._v(t._s(t.selectedApp||t.appSpecification.name))]),e("span",{staticStyle:{"font-weight":"bold"}},[t._v("using command")]),e("span",{style:t.selectedOptionTextStyle},[t._v(t._s(t.selectedOptionText))]),e("span",{staticStyle:{"font-weight":"bold"}},[t._v("as")]),e("span",{style:t.selectedOptionTextStyle},[t._v(t._s(t.userInputValue?t.userInputValue:"default user"))])]:[e("span",{staticStyle:{"font-weight":"bold"}},[t._v("Exec into container")]),e("span",{style:t.selectedOptionTextStyle},[t._v(t._s(t.selectedApp||t.appSpecification.name))]),e("span",{staticStyle:{"font-weight":"bold"}},[t._v("using custom command")]),e("span",{style:t.selectedOptionTextStyle},[t._v(t._s(t.customValue))]),e("span",{staticStyle:{"font-weight":"bold"}},[t._v("as")]),e("span",{style:t.selectedOptionTextStyle},[t._v(t._s(t.userInputValue?t.userInputValue:"default user"))])]],2):t._e()])])],1),e("div",{directives:[{name:"show",rawName:"v-show",value:t.isVisible,expression:"isVisible"}],ref:"terminalElement",staticStyle:{"text-align":"left","border-radius":"6px",border:"1px solid #e1e4e8",overflow:"hidden"}})],1)]),e("div",[e("b-card",{staticClass:"mt-1"},[e("div",{staticClass:"mb-2",staticStyle:{display:"flex","justify-content":"space-between",border:"1px solid #ccc","border-radius":"8px",height:"45px",padding:"12px","text-align":"left","line-height":"0px"}},[e("h5",[e("b-icon",{staticClass:"mr-1",attrs:{scale:"1.2",icon:"server"}}),t._v(" Volume browser ")],1),t.selectedAppVolume||!t.appSpecification?.compose?e("h6",{staticClass:"progress-label"},[e("b-icon",{staticClass:"mr-1",style:t.getIconColorStyle(t.storage.used,t.storage.total),attrs:{icon:t.getIconName(t.storage.used,t.storage.total),scale:"1.4"}}),t._v(" "+t._s(`${t.storage.used.toFixed(2)} / ${t.storage.total.toFixed(2)}`)+" GB ")],1):t._e()]),e("div",{staticClass:"mr-4 d-flex",class:{"mb-2":t.appSpecification&&t.appSpecification.compose},staticStyle:{"max-width":"250px"}},[e("b-form-select",{directives:[{name:"show",rawName:"v-show",value:t.appSpecification?.compose,expression:"appSpecification?.compose"}],attrs:{options:null,disabled:t.isComposeSingle},on:{change:t.refreshFolderSwitch},model:{value:t.selectedAppVolume,callback:function(e){t.selectedAppVolume=e},expression:"selectedAppVolume"}},[e("b-form-select-option",{attrs:{value:"null",disabled:""}},[t._v(" -- Please select component -- ")]),t._l(t.appSpecification.compose,(function(s){return e("b-form-select-option",{key:s.name,attrs:{value:s.name}},[t._v(" "+t._s(s.name)+" ")])}))],2)],1),t.fileProgressVolume.length>0?e("div",{staticClass:"mb-2 mt-2 w-100",staticStyle:{margin:"0 auto",padding:"12px",border:"1px solid #eaeaea","border-radius":"8px","box-shadow":"0 4px 8px rgba(0, 0, 0, 0.1)","text-align":"center"}},[e("h5",{staticStyle:{"font-size":"16px","margin-bottom":"5px"}},[t.allDownloadsCompletedVolume()?e("span",[t._v(" Download Completed ")]):e("span",[e("b-spinner",{attrs:{small:""}}),t._v(" Downloading... ")],1)]),t._l(t.computedFileProgressVolume,(function(s,i){return s.progress>0?e("b-progress",{key:i,staticClass:"mt-1",staticStyle:{height:"16px"},attrs:{max:100}},[e("b-progress-bar",{staticStyle:{"font-size":"14px"},attrs:{value:s.progress,label:`${s.fileName} - ${s.progress.toFixed(2)}%`}})],1):t._e()}))],2):t._e(),e("div",[t.selectedAppVolume||!t.appSpecification?.compose?e("b-button-toolbar",{staticClass:"mb-1 w-100",attrs:{justify:""}},[e("div",{staticClass:"d-flex flex-row w-100"},[e("b-input-group",{staticClass:"w-100 mr-2"},[e("b-input-group-prepend",[e("b-input-group-text",[e("b-icon",{attrs:{icon:"house-fill"}})],1)],1),e("b-form-input",{staticClass:"text-secondary",staticStyle:{"font-weight":"bold","font-size":"1.0em"},model:{value:t.inputPathValue,callback:function(e){t.inputPathValue=e},expression:"inputPathValue"}})],1),e("b-button-group",{attrs:{size:"sm"}}),e("b-button-group",{staticClass:"ml-auto",attrs:{size:"sm"}},[e("b-button",{attrs:{variant:"outline-primary"},on:{click:function(e){return t.refreshFolder()}}},[e("v-icon",{attrs:{name:"redo-alt"}})],1),e("b-button",{attrs:{variant:"outline-primary"},on:{click:function(e){t.uploadFilesDialog=!0}}},[e("v-icon",{attrs:{name:"cloud-upload-alt"}})],1),e("b-button",{attrs:{variant:"outline-primary"},on:{click:function(e){t.createDirectoryDialogVisible=!0}}},[e("v-icon",{attrs:{name:"folder-plus"}})],1),e("b-modal",{attrs:{title:"Create Folder",size:"lg",centered:"","ok-only":"","ok-title":"Create Folder","header-bg-variant":"primary"},on:{ok:function(e){return t.createFolder(t.newDirName)}},model:{value:t.createDirectoryDialogVisible,callback:function(e){t.createDirectoryDialogVisible=e},expression:"createDirectoryDialogVisible"}},[e("b-form-group",{attrs:{label:"Folder Name","label-for":"folderNameInput"}},[e("b-form-input",{attrs:{id:"folderNameInput",size:"lg",placeholder:"New Folder Name"},model:{value:t.newDirName,callback:function(e){t.newDirName=e},expression:"newDirName"}})],1)],1),e("b-modal",{attrs:{title:"Upload Files",size:"lg","header-bg-variant":"primary",centered:"","hide-footer":""},on:{close:function(e){return t.refreshFolder()}},model:{value:t.uploadFilesDialog,callback:function(e){t.uploadFilesDialog=e},expression:"uploadFilesDialog"}},[e("file-upload",{attrs:{"upload-folder":t.getUploadFolder(),headers:t.zelidHeader},on:{complete:t.refreshFolder}})],1)],1)],1)]):t._e(),t.selectedAppVolume||!t.appSpecification?.compose?e("b-table",{staticClass:"fluxshare-table",attrs:{hover:"",responsive:"",small:"",outlined:"",size:"sm",items:t.folderContentFilter,fields:t.fields,busy:t.loadingFolder,"sort-compare":t.sort,"sort-by":"name","show-empty":"","empty-text":"Directory is empty."},scopedSlots:t._u([{key:"table-busy",fn:function(){return[e("div",{staticClass:"text-center text-danger my-2"},[e("b-spinner",{staticClass:"align-middle mx-2"}),e("strong",[t._v("Loading...")])],1)]},proxy:!0},{key:"head(name)",fn:function(e){return[t._v(" "+t._s(e.label.toUpperCase())+" ")]}},{key:"cell(name)",fn:function(s){return[s.item.symLink?e("div",[e("b-link",{on:{click:function(e){return t.changeFolder(s.item.name)}}},[e("b-icon",{staticClass:"mr-1",attrs:{scale:"1.4",icon:"folder-symlink"}}),t._v(" "+t._s(s.item.name)+" ")],1)],1):t._e(),s.item.isDirectory?e("div",[e("b-link",{on:{click:function(e){return t.changeFolder(s.item.name)}}},[e("b-icon",{staticClass:"mr-1",attrs:{scale:"1.4",icon:"folder"}}),t._v(" "+t._s(s.item.name)+" ")],1)],1):e("div",[s.item.symLink?t._e():e("div",[e("b-icon",{staticClass:"mr-1",attrs:{scale:"1.4",icon:"file-earmark"}}),t._v(" "+t._s(s.item.name)+" ")],1)])]}},{key:"cell(modifiedAt)",fn:function(s){return[s.item.isUpButton?t._e():e("div",{staticClass:"no-wrap"},[t._v(" "+t._s(new Date(s.item.modifiedAt).toLocaleString("en-GB",t.timeoptions))+" ")])]}},{key:"cell(type)",fn:function(s){return[s.item.isUpButton?t._e():e("div",[s.item.isDirectory?e("div",[t._v(" Folder ")]):s.item.isFile||s.item.isSymbolicLink?e("div",[t._v(" File ")]):e("div",[t._v(" Other ")])])]}},{key:"cell(size)",fn:function(s){return[s.item.size>0&&!s.item.isUpButton?e("div",{staticClass:"no-wrap"},[t._v(" "+t._s(t.addAndConvertFileSizes(s.item.size))+" ")]):t._e()]}},{key:"cell(actions)",fn:function(s){return[s.item.isUpButton?t._e():e("b-button-group",{attrs:{size:"sm"}},[e("b-button",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.bottom",value:s.item.isFile?"Download":"Download zip of folder",expression:"data.item.isFile ? 'Download' : 'Download zip of folder'",modifiers:{hover:!0,bottom:!0}},{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],attrs:{id:`download-${s.item.name}`,variant:"outline-secondary"}},[e("v-icon",{attrs:{name:s.item.isFile?"file-download":"file-archive"}})],1),e("b-button",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.bottom",value:"Rename",expression:"'Rename'",modifiers:{hover:!0,bottom:!0}},{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],attrs:{id:`rename-${s.item.name}`,variant:"outline-secondary"},on:{click:function(e){return t.rename(s.item.name)}}},[e("v-icon",{attrs:{name:"edit"}})],1),e("b-button",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.bottom",value:"Delete",expression:"'Delete'",modifiers:{hover:!0,bottom:!0}},{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],attrs:{id:`delete-${s.item.name}`,variant:"outline-secondary"}},[e("v-icon",{attrs:{name:"trash-alt"}})],1),e("confirm-dialog",{attrs:{target:`delete-${s.item.name}`,"confirm-button":s.item.isFile?"Delete File":"Delete Folder"},on:{confirm:function(e){return t.deleteFile(s.item.name)}}})],1),e("confirm-dialog",{attrs:{target:`download-${s.item.name}`,"confirm-button":s.item.isFile?"Download File":"Download Folder"},on:{confirm:function(e){s.item.isFile?t.download(s.item.name):t.download(s.item.name,!0,s.item.size)}}}),e("b-modal",{attrs:{title:"Rename",size:"lg",centered:"","ok-only":"","ok-title":"Rename"},on:{ok:function(e){return t.confirmRename()}},model:{value:t.renameDialogVisible,callback:function(e){t.renameDialogVisible=e},expression:"renameDialogVisible"}},[e("b-form-group",{attrs:{label:"Name","label-for":"nameInput"}},[e("b-form-input",{attrs:{id:"nameInput",size:"lg",placeholder:"Name"},model:{value:t.newName,callback:function(e){t.newName=e},expression:"newName"}})],1)],1)]}}],null,!1,3040013154)}):t._e()],1)])],1)]),t.windowWidth>860?e("b-tab",{attrs:{title:"Global App Management",disabled:""}}):t._e(),e("b-tab",{attrs:{title:"Global Control"}},[t.globalZelidAuthorized?e("div",[e("b-row",{staticClass:"match-height"},[e("b-col",{attrs:{xs:"6"}},[e("b-card",{attrs:{title:"Control"}},[e("b-card-text",{staticClass:"mb-2"},[t._v(" "+t._s(t.isAppOwner?"General options to control all instances of your application":"General options to control instances of selected application running on all nodes that you own")+" ")]),e("div",{staticClass:"text-center"},[e("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"mx-1 my-1",attrs:{id:"start-app-global",variant:"success","aria-label":"Start App"}},[t._v(" Start App ")]),e("confirm-dialog",{attrs:{target:"start-app-global","confirm-button":"Start App"},on:{confirm:function(e){return t.startAppGlobally(t.appName)}}}),e("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"mx-1 my-1",attrs:{id:"stop-app-global",variant:"success","aria-label":"Stop App"}},[t._v(" Stop App ")]),e("confirm-dialog",{attrs:{target:"stop-app-global","confirm-button":"Stop App"},on:{confirm:function(e){return t.stopAppGlobally(t.appName)}}}),e("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"mx-1 my-1",attrs:{id:"restart-app-global",variant:"success","aria-label":"Restart App"}},[t._v(" Restart App ")]),e("confirm-dialog",{attrs:{target:"restart-app-global","confirm-button":"Restart App"},on:{confirm:function(e){return t.restartAppGlobally(t.appName)}}})],1)],1)],1),e("b-col",{attrs:{xs:"6"}},[e("b-card",{attrs:{title:"Pause"}},[e("b-card-text",{staticClass:"mb-2"},[t._v(" "+t._s(t.isAppOwner?"The Pause command suspends all processes of all instances of your app":"The Pause command suspends all processes of selected application on all of nodes that you own")+" ")]),e("div",{staticClass:"text-center"},[e("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"mx-1 my-1",attrs:{id:"pause-app-global",variant:"success","aria-label":"Pause App"}},[t._v(" Pause App ")]),e("confirm-dialog",{attrs:{target:"pause-app-global","confirm-button":"Pause App"},on:{confirm:function(e){return t.pauseAppGlobally(t.appName)}}}),e("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"mx-1 my-1",attrs:{id:"unpause-app-global",variant:"success","aria-label":"Unpause App"}},[t._v(" Unpause App ")]),e("confirm-dialog",{attrs:{target:"unpause-app-global","confirm-button":"Unpause App"},on:{confirm:function(e){return t.unpauseAppGlobally(t.appName)}}})],1)],1)],1)],1),e("b-row",{staticClass:"match-height"},[e("b-col",{attrs:{xs:"6"}},[e("b-card",{attrs:{title:"Redeploy"}},[e("b-card-text",{staticClass:"mb-2"},[t._v(" "+t._s(t.isAppOwner?"Redeployes all instances of your application.Hard redeploy removes persistant data storage. If app uses syncthing it can takes up to 30 to be up and running.":"Redeployes instances of selected application running on all of your nodes. Hard redeploy removes persistant data storage.")+" ")]),e("div",{staticClass:"text-center"},[e("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"mx-1 my-1",attrs:{id:"redeploy-app-soft-global",variant:"success","aria-label":"Soft Redeploy App"}},[t._v(" Soft Redeploy App ")]),e("confirm-dialog",{attrs:{target:"redeploy-app-soft-global","confirm-button":"Redeploy"},on:{confirm:function(e){return t.redeployAppSoftGlobally(t.appName)}}}),e("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"mx-1 my-1",attrs:{id:"redeploy-app-hard-global",variant:"success","aria-label":"Hard Redeploy App"}},[t._v(" Hard Redeploy App ")]),e("confirm-dialog",{attrs:{target:"redeploy-app-hard-global","confirm-button":"Redeploy"},on:{confirm:function(e){return t.redeployAppHardGlobally(t.appName)}}})],1)],1)],1),e("b-col",{attrs:{xs:"6"}},[e("b-card",{attrs:{title:"Reinstall"}},[e("b-card-text",{staticClass:"mb-2"},[t._v(" "+t._s(t.isAppOwner?"Removes all instances of your App forcing an installation on different nodes.":"Removes all instances of selected App on all of your nodes forcing installation on different nodes.")+" ")]),e("div",{staticClass:"text-center"},[e("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"mx-1 my-1",attrs:{id:"remove-app-global",variant:"success","aria-label":"Reinstall App"}},[t._v(" Reinstall App ")]),e("confirm-dialog",{attrs:{target:"remove-app-global","confirm-button":"Reinstall App"},on:{confirm:function(e){return t.removeAppGlobally(t.appName)}}})],1)],1)],1)],1)],1):e("div",[t._v(" Global management session expired. Please log out and back into FluxOS. ")])]),e("b-tab",{attrs:{title:"Running Instances"}},[t.masterSlaveApp?e("div",[e("b-card",{attrs:{title:"Primary/Standby App Information"}},[e("list-entry",{attrs:{title:"Current IP selected as Primary running your application",data:t.masterIP}})],1)],1):t._e(),e("b-row",[e("b-col",[e("flux-map",{staticClass:"mb-0",attrs:{"show-all":!1,"filter-nodes":t.mapLocations}})],1)],1),e("b-row",[e("b-col",{staticClass:"my-1",attrs:{md:"4",sm:"4"}},[e("b-form-group",{staticClass:"mb-0"},[e("label",{staticClass:"d-inline-block text-left mr-50"},[t._v("Per page")]),e("b-form-select",{staticClass:"w-50",attrs:{id:"perPageSelect",size:"sm",options:t.instances.pageOptions},model:{value:t.instances.perPage,callback:function(e){t.$set(t.instances,"perPage",e)},expression:"instances.perPage"}})],1)],1),e("b-col",{staticClass:"my-1",attrs:{md:"8"}},[e("b-form-group",{staticClass:"mb-0",attrs:{label:"Filter","label-cols-sm":"1","label-align-sm":"right","label-for":"filterInput"}},[e("b-input-group",{attrs:{size:"sm"}},[e("b-form-input",{attrs:{id:"filterInput",type:"search",placeholder:"Type to Search"},model:{value:t.instances.filter,callback:function(e){t.$set(t.instances,"filter",e)},expression:"instances.filter"}}),e("b-input-group-append",[e("b-button",{attrs:{disabled:!t.instances.filter},on:{click:function(e){t.instances.filter=""}}},[t._v(" Clear ")])],1)],1)],1)],1),e("b-col",{attrs:{cols:"12"}},[e("b-table",{key:t.tableKey,staticClass:"app-instances-table",attrs:{striped:"",hover:"",outlined:"",responsive:"",busy:t.isBusy,"per-page":t.instances.perPage,"current-page":t.instances.currentPage,items:t.instances.data,fields:t.instances.fields,"sort-by":t.instances.sortBy,"sort-desc":t.instances.sortDesc,"sort-direction":t.instances.sortDirection,filter:t.instances.filter,"show-empty":"","empty-text":`No instances of ${t.appName}`},on:{"update:sortBy":function(e){return t.$set(t.instances,"sortBy",e)},"update:sort-by":function(e){return t.$set(t.instances,"sortBy",e)},"update:sortDesc":function(e){return t.$set(t.instances,"sortDesc",e)},"update:sort-desc":function(e){return t.$set(t.instances,"sortDesc",e)}},scopedSlots:t._u([{key:"table-busy",fn:function(){return[e("div",{staticClass:"text-center text-danger my-2"},[e("b-spinner",{staticClass:"align-middle mr-1"}),e("strong",[t._v("Loading geolocation...")])],1)]},proxy:!0},{key:"cell(show_details)",fn:function(s){return[e("a",{on:{click:s.toggleDetails}},[s.detailsShowing?t._e():e("v-icon",{staticClass:"ml-2",attrs:{name:"chevron-down"}}),s.detailsShowing?e("v-icon",{staticClass:"ml-2",attrs:{name:"chevron-up"}}):t._e()],1)]}},{key:"row-details",fn:function(s){return[e("b-card",{},[s.item.broadcastedAt?e("list-entry",{attrs:{title:"Broadcast",data:new Date(s.item.broadcastedAt).toLocaleString("en-GB",t.timeoptions.shortDate)}}):t._e(),s.item.expireAt?e("list-entry",{attrs:{title:"Expires",data:new Date(s.item.expireAt).toLocaleString("en-GB",t.timeoptions.shortDate)}}):t._e()],1)]}},{key:"cell(visit)",fn:function(s){return[e("div",{staticClass:"button-cell"},[e("b-button",{staticClass:"mr-1",attrs:{size:"sm",variant:"outline-secondary"},on:{click:function(e){t.openApp(s.item.name,s.item.ip.split(":")[0],t.getProperPort())}}},[t._v(" App ")]),e("b-button",{staticClass:"mr-0",attrs:{size:"sm",variant:"outline-primary"},on:{click:function(e){t.openNodeFluxOS(s.item.ip.split(":")[0],s.item.ip.split(":")[1]?+s.item.ip.split(":")[1]-1:16126)}}},[t._v(" FluxNode ")])],1)]}}])})],1),e("b-col",{attrs:{cols:"12"}},[e("b-pagination",{staticClass:"my-0",attrs:{"total-rows":t.instances.totalRows,"per-page":t.instances.perPage,align:"center",size:"sm"},model:{value:t.instances.currentPage,callback:function(e){t.$set(t.instances,"currentPage",e)},expression:"instances.currentPage"}})],1)],1)],1),e("b-tab",{attrs:{title:"Update/Renew",disabled:!t.isAppOwner}},[t.fluxCommunication?t._e():e("div",{staticClass:"text-danger"},[t._v(" Warning: Connected Flux is not communicating properly with Flux network ")]),e("div",{staticStyle:{border:"1px solid #ccc","border-radius":"8px",height:"45px",padding:"12px","line-height":"0px"}},[e("h5",[e("b-icon",{staticClass:"mr-1",attrs:{icon:"ui-checks-grid"}}),t._v(" Update Application Specifications / Extend subscription ")],1)]),e("div",{staticClass:"form-row form-group"},[e("b-input-group",{staticClass:"mt-2"},[e("b-input-group-prepend",[e("b-input-group-text",[e("b-icon",{staticClass:"mr-1",attrs:{icon:"plus-square"}}),t._v(" Update Specifications "),e("v-icon",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.top",value:"Select if you want to change your application specifications",expression:"'Select if you want to change your application specifications'",modifiers:{hover:!0,top:!0}}],staticClass:"ml-1",attrs:{name:"info-circle"}})],1)],1),e("b-input-group-append",{attrs:{"is-text":""}},[e("b-form-checkbox",{staticClass:"custom-control-primary",attrs:{id:"updateSpecifications",switch:""},model:{value:t.updateSpecifications,callback:function(e){t.updateSpecifications=e},expression:"updateSpecifications"}})],1)],1)],1),t.updateSpecifications?e("div",[t.appUpdateSpecification.version>=4?e("div",[e("b-row",{staticClass:"match-height"},[e("b-col",{attrs:{xs:"6"}},[e("b-card",{attrs:{title:"Details"}},[e("b-form-group",{attrs:{"label-cols":"2","label-cols-lg":"1",label:"Version","label-for":"version"}},[e("b-form-input",{attrs:{id:"version",placeholder:t.appUpdateSpecification.version.toString(),readonly:""},model:{value:t.appUpdateSpecification.version,callback:function(e){t.$set(t.appUpdateSpecification,"version",e)},expression:"appUpdateSpecification.version"}})],1),e("b-form-group",{attrs:{"label-cols":"2","label-cols-lg":"1",label:"Name","label-for":"name"}},[e("b-form-input",{attrs:{id:"name",placeholder:"Application Name",readonly:""},model:{value:t.appUpdateSpecification.name,callback:function(e){t.$set(t.appUpdateSpecification,"name",e)},expression:"appUpdateSpecification.name"}})],1),e("b-form-group",{attrs:{"label-cols":"2","label-cols-lg":"1",label:"Desc.","label-for":"desc"}},[e("b-form-textarea",{attrs:{id:"desc",placeholder:"Description",rows:"3"},model:{value:t.appUpdateSpecification.description,callback:function(e){t.$set(t.appUpdateSpecification,"description",e)},expression:"appUpdateSpecification.description"}})],1),e("b-form-group",{attrs:{"label-cols":"2","label-cols-lg":"1",label:"Owner","label-for":"owner"}},[e("b-form-input",{attrs:{id:"owner",placeholder:"Flux ID of Application Owner"},model:{value:t.appUpdateSpecification.owner,callback:function(e){t.$set(t.appUpdateSpecification,"owner",e)},expression:"appUpdateSpecification.owner"}})],1),t.appUpdateSpecification.version>=5&&!t.isPrivateApp?e("div",[e("div",{staticClass:"form-row form-group"},[e("label",{staticClass:"col-1 col-form-label"},[t._v(" Contacts "),e("v-icon",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.top",value:"Array of strings of emails Contacts to get notifications ex. app about to expire, app spawns. Contacts are also PUBLIC information.",expression:"'Array of strings of emails Contacts to get notifications ex. app about to expire, app spawns. Contacts are also PUBLIC information.'",modifiers:{hover:!0,top:!0}}],staticClass:"mr-1",attrs:{name:"info-circle"}})],1),e("div",{staticClass:"col"},[e("b-form-input",{attrs:{id:"contacs"},model:{value:t.appUpdateSpecification.contacts,callback:function(e){t.$set(t.appUpdateSpecification,"contacts",e)},expression:"appUpdateSpecification.contacts"}})],1),e("div",{staticClass:"col-0"},[e("b-button",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.top",value:"Uploads Contacts to Flux Storage. Contacts will be replaced with a link to Flux Storage instead. This increases maximum allowed contacts while adding enhanced privacy - nobody except FluxOS Team maintaining notifications system has access to contacts.",expression:"\n 'Uploads Contacts to Flux Storage. Contacts will be replaced with a link to Flux Storage instead. This increases maximum allowed contacts while adding enhanced privacy - nobody except FluxOS Team maintaining notifications system has access to contacts.'\n ",modifiers:{hover:!0,top:!0}}],attrs:{id:"upload-contacts",variant:"outline-primary"}},[e("v-icon",{attrs:{name:"cloud-upload-alt"}})],1),e("confirm-dialog",{attrs:{target:"upload-contacts","confirm-button":"Upload Contacts",width:600},on:{confirm:function(e){return t.uploadContactsToFluxStorage()}}})],1)])]):t._e(),t.appUpdateSpecification.version>=5&&!t.isPrivateApp?e("div",[e("h4",[t._v("Allowed Geolocation")]),t._l(t.numberOfGeolocations,(function(s){return e("div",{key:`${s}pos`},[e("b-form-group",{attrs:{"label-cols":"3","label-cols-lg":"1",label:`Continent - ${s}`,"label-for":"Continent"}},[e("b-form-select",{attrs:{id:"Continent",options:t.continentsOptions(!1)},on:{change:function(e){return t.adjustMaxInstancesPossible()}},scopedSlots:t._u([{key:"first",fn:function(){return[e("b-form-select-option",{attrs:{value:void 0,disabled:""}},[t._v(" -- Select to restrict Continent -- ")])]},proxy:!0}],null,!0),model:{value:t.allowedGeolocations[`selectedContinent${s}`],callback:function(e){t.$set(t.allowedGeolocations,`selectedContinent${s}`,e)},expression:"allowedGeolocations[`selectedContinent${n}`]"}})],1),t.allowedGeolocations[`selectedContinent${s}`]&&"ALL"!==t.allowedGeolocations[`selectedContinent${s}`]?e("b-form-group",{attrs:{"label-cols":"3","label-cols-lg":"1",label:`Country - ${s}`,"label-for":"Country"}},[e("b-form-select",{attrs:{id:"country",options:t.countriesOptions(t.allowedGeolocations[`selectedContinent${s}`],!1)},on:{change:function(e){return t.adjustMaxInstancesPossible()}},scopedSlots:t._u([{key:"first",fn:function(){return[e("b-form-select-option",{attrs:{value:void 0,disabled:""}},[t._v(" -- Select to restrict Country -- ")])]},proxy:!0}],null,!0),model:{value:t.allowedGeolocations[`selectedCountry${s}`],callback:function(e){t.$set(t.allowedGeolocations,`selectedCountry${s}`,e)},expression:"allowedGeolocations[`selectedCountry${n}`]"}})],1):t._e(),t.allowedGeolocations[`selectedContinent${s}`]&&"ALL"!==t.allowedGeolocations[`selectedContinent${s}`]&&t.allowedGeolocations[`selectedCountry${s}`]&&"ALL"!==t.allowedGeolocations[`selectedCountry${s}`]?e("b-form-group",{attrs:{"label-cols":"3","label-cols-lg":"1",label:`Region - ${s}`,"label-for":"Region"}},[e("b-form-select",{attrs:{id:"Region",options:t.regionsOptions(t.allowedGeolocations[`selectedContinent${s}`],t.allowedGeolocations[`selectedCountry${s}`],!1)},on:{change:function(e){return t.adjustMaxInstancesPossible()}},scopedSlots:t._u([{key:"first",fn:function(){return[e("b-form-select-option",{attrs:{value:void 0,disabled:""}},[t._v(" -- Select to restrict Region -- ")])]},proxy:!0}],null,!0),model:{value:t.allowedGeolocations[`selectedRegion${s}`],callback:function(e){t.$set(t.allowedGeolocations,`selectedRegion${s}`,e)},expression:"allowedGeolocations[`selectedRegion${n}`]"}})],1):t._e()],1)})),e("div",{staticClass:"text-center"},[t.numberOfGeolocations>1?e("b-button",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.bottom",value:"Remove Allowed Geolocation Restriction",expression:"'Remove Allowed Geolocation Restriction'",modifiers:{hover:!0,bottom:!0}},{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"m-1",attrs:{variant:"outline-secondary",size:"sm"},on:{click:function(e){t.numberOfGeolocations=t.numberOfGeolocations-1,t.adjustMaxInstancesPossible()}}},[e("v-icon",{attrs:{name:"minus"}})],1):t._e(),t.numberOfGeolocations<5?e("b-button",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.bottom",value:"Add Allowed Geolocation Restriction",expression:"'Add Allowed Geolocation Restriction'",modifiers:{hover:!0,bottom:!0}},{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"m-1",attrs:{variant:"outline-secondary",size:"sm"},on:{click:function(e){t.numberOfGeolocations=t.numberOfGeolocations+1,t.adjustMaxInstancesPossible()}}},[e("v-icon",{attrs:{name:"plus"}})],1):t._e()],1)],2):t._e(),e("br"),e("br"),t.appUpdateSpecification.version>=5?e("div",[e("h4",[t._v("Forbidden Geolocation")]),t._l(t.numberOfNegativeGeolocations,(function(s){return e("div",{key:`${s}posB`},[e("b-form-group",{attrs:{"label-cols":"3","label-cols-lg":"1",label:`Continent - ${s}`,"label-for":"Continent"}},[e("b-form-select",{attrs:{id:"Continent",options:t.continentsOptions(!0)},scopedSlots:t._u([{key:"first",fn:function(){return[e("b-form-select-option",{attrs:{value:void 0,disabled:""}},[t._v(" -- Select to ban Continent -- ")])]},proxy:!0}],null,!0),model:{value:t.forbiddenGeolocations[`selectedContinent${s}`],callback:function(e){t.$set(t.forbiddenGeolocations,`selectedContinent${s}`,e)},expression:"forbiddenGeolocations[`selectedContinent${n}`]"}})],1),t.forbiddenGeolocations[`selectedContinent${s}`]&&"NONE"!==t.forbiddenGeolocations[`selectedContinent${s}`]?e("b-form-group",{attrs:{"label-cols":"3","label-cols-lg":"1",label:`Country - ${s}`,"label-for":"Country"}},[e("b-form-select",{attrs:{id:"country",options:t.countriesOptions(t.forbiddenGeolocations[`selectedContinent${s}`],!0)},scopedSlots:t._u([{key:"first",fn:function(){return[e("b-form-select-option",{attrs:{value:void 0,disabled:""}},[t._v(" -- Select to ban Country -- ")])]},proxy:!0}],null,!0),model:{value:t.forbiddenGeolocations[`selectedCountry${s}`],callback:function(e){t.$set(t.forbiddenGeolocations,`selectedCountry${s}`,e)},expression:"forbiddenGeolocations[`selectedCountry${n}`]"}})],1):t._e(),t.forbiddenGeolocations[`selectedContinent${s}`]&&"NONE"!==t.forbiddenGeolocations[`selectedContinent${s}`]&&t.forbiddenGeolocations[`selectedCountry${s}`]&&"ALL"!==t.forbiddenGeolocations[`selectedCountry${s}`]?e("b-form-group",{attrs:{"label-cols":"3","label-cols-lg":"1",label:`Region - ${s}`,"label-for":"Region"}},[e("b-form-select",{attrs:{id:"Region",options:t.regionsOptions(t.forbiddenGeolocations[`selectedContinent${s}`],t.forbiddenGeolocations[`selectedCountry${s}`],!0)},scopedSlots:t._u([{key:"first",fn:function(){return[e("b-form-select-option",{attrs:{value:void 0,disabled:""}},[t._v(" -- Select to ban Region -- ")])]},proxy:!0}],null,!0),model:{value:t.forbiddenGeolocations[`selectedRegion${s}`],callback:function(e){t.$set(t.forbiddenGeolocations,`selectedRegion${s}`,e)},expression:"forbiddenGeolocations[`selectedRegion${n}`]"}})],1):t._e()],1)})),e("div",{staticClass:"text-center"},[t.numberOfNegativeGeolocations>1?e("b-button",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.bottom",value:"Remove Forbidden Geolocation Restriction",expression:"'Remove Forbidden Geolocation Restriction'",modifiers:{hover:!0,bottom:!0}},{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"m-1",attrs:{variant:"outline-secondary",size:"sm"},on:{click:function(e){t.numberOfNegativeGeolocations=t.numberOfNegativeGeolocations-1}}},[e("v-icon",{attrs:{name:"minus"}})],1):t._e(),t.numberOfNegativeGeolocations<5?e("b-button",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.bottom",value:"Add Forbidden Geolocation Restriction",expression:"'Add Forbidden Geolocation Restriction'",modifiers:{hover:!0,bottom:!0}},{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"m-1",attrs:{variant:"outline-secondary",size:"sm"},on:{click:function(e){t.numberOfNegativeGeolocations=t.numberOfNegativeGeolocations+1}}},[e("v-icon",{attrs:{name:"plus"}})],1):t._e()],1)],2):t._e(),e("br"),t.appUpdateSpecification.version>=3?e("b-form-group",{attrs:{"label-cols":"2","label-cols-lg":"1",label:"Instances","label-for":"instances"}},[e("div",{staticClass:"mx-1"},[t._v(" "+t._s(t.appUpdateSpecification.instances)+" ")]),e("b-form-input",{attrs:{id:"instances",placeholder:"Minimum number of application instances to be spawned",type:"range",min:"3",max:t.maxInstances,step:"1"},model:{value:t.appUpdateSpecification.instances,callback:function(e){t.$set(t.appUpdateSpecification,"instances",e)},expression:"appUpdateSpecification.instances"}})],1):t._e(),t.appUpdateSpecification.version>=7?e("div",{staticClass:"form-row form-group"},[e("label",{staticClass:"col-form-label"},[t._v(" Static IP "),e("v-icon",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.top",value:"Select if your application strictly requires static IP address",expression:"'Select if your application strictly requires static IP address'",modifiers:{hover:!0,top:!0}}],staticClass:"mr-1",attrs:{name:"info-circle"}})],1),e("div",{staticClass:"col"},[e("b-form-checkbox",{staticClass:"custom-control-primary inline",attrs:{id:"staticip",switch:""},model:{value:t.appUpdateSpecification.staticip,callback:function(e){t.$set(t.appUpdateSpecification,"staticip",e)},expression:"appUpdateSpecification.staticip"}})],1)]):t._e(),e("br"),t.appUpdateSpecification.version>=7?e("div",{staticClass:"form-row form-group"},[e("label",{staticClass:"col-form-label"},[t._v(" Enterprise Application "),e("v-icon",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.top",value:"Select if your application requires private image, secrets or if you want to target specific nodes on which application can run. Geolocation targetting is not possible in this case.",expression:"'Select if your application requires private image, secrets or if you want to target specific nodes on which application can run. Geolocation targetting is not possible in this case.'",modifiers:{hover:!0,top:!0}}],staticClass:"mr-1",attrs:{name:"info-circle"}})],1),e("div",{staticClass:"col"},[e("b-form-checkbox",{staticClass:"custom-control-primary inline",attrs:{id:"enterpriseapp",switch:""},model:{value:t.isPrivateApp,callback:function(e){t.isPrivateApp=e},expression:"isPrivateApp"}})],1)]):t._e()],1)],1)],1),t._l(t.appUpdateSpecification.compose,(function(s,i){return e("b-card",{key:i},[e("b-card-title",[t._v(" Component "+t._s(s.name)+" ")]),e("b-row",{staticClass:"match-height"},[e("b-col",{attrs:{xs:"12",xl:"6"}},[e("b-card",[e("b-card-title",[t._v(" General ")]),e("div",{staticClass:"form-row form-group"},[e("label",{staticClass:"col-3 col-form-label"},[t._v(" Name "),e("v-icon",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.top",value:"Name of Application Component",expression:"'Name of Application Component'",modifiers:{hover:!0,top:!0}}],staticClass:"mr-1",attrs:{name:"info-circle"}})],1),e("div",{staticClass:"col"},[e("b-form-input",{attrs:{id:`repo-${s.name}_${t.appUpdateSpecification.name}`,placeholder:"Component name",readonly:""},model:{value:s.name,callback:function(e){t.$set(s,"name",e)},expression:"component.name"}})],1)]),e("div",{staticClass:"form-row form-group"},[e("label",{staticClass:"col-3 col-form-label"},[t._v(" Description "),e("v-icon",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.top",value:"Description of Application Component",expression:"'Description of Application Component'",modifiers:{hover:!0,top:!0}}],staticClass:"mr-1",attrs:{name:"info-circle"}})],1),e("div",{staticClass:"col"},[e("b-form-input",{attrs:{id:`repo-${s.name}_${t.appUpdateSpecification.name}`,placeholder:"Component description"},model:{value:s.description,callback:function(e){t.$set(s,"description",e)},expression:"component.description"}})],1)]),e("div",{staticClass:"form-row form-group"},[e("label",{staticClass:"col-3 col-form-label"},[t._v(" Repository "),e("v-icon",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.top",value:"Docker image namespace/repository:tag for component",expression:"'Docker image namespace/repository:tag for component'",modifiers:{hover:!0,top:!0}}],staticClass:"mr-1",attrs:{name:"info-circle"}})],1),e("div",{staticClass:"col"},[e("b-form-input",{attrs:{id:`repo-${s.name}_${t.appUpdateSpecification.name}`,placeholder:"Docker image namespace/repository:tag"},model:{value:s.repotag,callback:function(e){t.$set(s,"repotag",e)},expression:"component.repotag"}})],1)]),t.appUpdateSpecification.version>=7&&t.isPrivateApp?e("div",{staticClass:"form-row form-group"},[e("label",{staticClass:"col-3 col-form-label"},[t._v(" Repository Authentication "),e("v-icon",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.top",value:"Docker image authentication for private images in the format of username:apikey. This field will be encrypted and accessible to selected enterprise nodes only.",expression:"'Docker image authentication for private images in the format of username:apikey. This field will be encrypted and accessible to selected enterprise nodes only.'",modifiers:{hover:!0,top:!0}}],staticClass:"mr-1",attrs:{name:"info-circle"}})],1),e("div",{staticClass:"col"},[e("b-form-input",{attrs:{id:`repoauth-${s.name}_${t.appUpdateSpecification.name}`,placeholder:"Docker authentication username:apikey"},model:{value:s.repoauth,callback:function(e){t.$set(s,"repoauth",e)},expression:"component.repoauth"}})],1)]):t._e(),e("br"),e("b-card-title",[t._v(" Connectivity ")]),e("div",{staticClass:"form-row form-group"},[e("label",{staticClass:"col-3 col-form-label"},[t._v(" Ports "),e("v-icon",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.top",value:"Array of Ports on which application will be available",expression:"'Array of Ports on which application will be available'",modifiers:{hover:!0,top:!0}}],staticClass:"mr-1",attrs:{name:"info-circle"}})],1),e("div",{staticClass:"col"},[e("b-form-input",{attrs:{id:`ports-${s.name}_${t.appUpdateSpecification.name}`},model:{value:s.ports,callback:function(e){t.$set(s,"ports",e)},expression:"component.ports"}})],1)]),e("div",{staticClass:"form-row form-group"},[e("label",{staticClass:"col-3 col-form-label"},[t._v(" Domains "),e("v-icon",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.top",value:"Array of strings of Domains managed by Flux Domain Manager (FDM). Length must correspond to available ports. Use empty strings for no domains",expression:"'Array of strings of Domains managed by Flux Domain Manager (FDM). Length must correspond to available ports. Use empty strings for no domains'",modifiers:{hover:!0,top:!0}}],staticClass:"mr-1",attrs:{name:"info-circle"}})],1),e("div",{staticClass:"col"},[e("b-form-input",{attrs:{id:`domains-${s.name}_${t.appUpdateSpecification.name}`},model:{value:s.domains,callback:function(e){t.$set(s,"domains",e)},expression:"component.domains"}})],1)]),e("div",{staticClass:"form-row form-group"},[e("label",{staticClass:"col-3 col-form-label"},[t._v(" Cont. Ports "),e("v-icon",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.top",value:"Container Ports - Array of ports which your container has",expression:"'Container Ports - Array of ports which your container has'",modifiers:{hover:!0,top:!0}}],staticClass:"mr-1",attrs:{name:"info-circle"}})],1),e("div",{staticClass:"col"},[e("b-form-input",{attrs:{id:`containerPorts-${s.name}_${t.appUpdateSpecification.name}`},model:{value:s.containerPorts,callback:function(e){t.$set(s,"containerPorts",e)},expression:"component.containerPorts"}})],1)])],1)],1),e("b-col",{attrs:{xs:"12",xl:"6"}},[e("b-card",[e("b-card-title",[t._v(" Environment ")]),e("div",{staticClass:"form-row form-group"},[e("label",{staticClass:"col-3 col-form-label"},[t._v(" Environment "),e("v-icon",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.top",value:"Array of strings of Environmental Parameters",expression:"'Array of strings of Environmental Parameters'",modifiers:{hover:!0,top:!0}}],staticClass:"mr-1",attrs:{name:"info-circle"}})],1),e("div",{staticClass:"col"},[e("b-form-input",{attrs:{id:`environmentParameters-${s.name}_${t.appUpdateSpecification.name}`},model:{value:s.environmentParameters,callback:function(e){t.$set(s,"environmentParameters",e)},expression:"component.environmentParameters"}})],1),e("div",{staticClass:"col-0"},[e("b-button",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.top",value:"Uploads Enviornment to Flux Storage. Environment parameters will be replaced with a link to Flux Storage instead. This increases maximum allowed size of Env. parameters while adding basic privacy - instead of parameters, link to Flux Storage will be visible.",expression:"\n 'Uploads Enviornment to Flux Storage. Environment parameters will be replaced with a link to Flux Storage instead. This increases maximum allowed size of Env. parameters while adding basic privacy - instead of parameters, link to Flux Storage will be visible.'\n ",modifiers:{hover:!0,top:!0}}],attrs:{id:"upload-env",variant:"outline-primary"}},[e("v-icon",{attrs:{name:"cloud-upload-alt"}})],1),e("confirm-dialog",{attrs:{target:"upload-env","confirm-button":"Upload Environment Parameters",width:600},on:{confirm:function(e){return t.uploadEnvToFluxStorage(i)}}})],1)]),e("div",{staticClass:"form-row form-group"},[e("label",{staticClass:"col-3 col-form-label"},[t._v(" Commands "),e("v-icon",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.top",value:"Array of strings of Commands",expression:"'Array of strings of Commands'",modifiers:{hover:!0,top:!0}}],staticClass:"mr-1",attrs:{name:"info-circle"}})],1),e("div",{staticClass:"col"},[e("b-form-input",{attrs:{id:`commands-${s.name}_${t.appUpdateSpecification.name}`},model:{value:s.commands,callback:function(e){t.$set(s,"commands",e)},expression:"component.commands"}})],1),e("div",{staticClass:"col-0"},[e("b-button",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.top",value:"Uploads Commands to Flux Storage. Commands will be replaced with a link to Flux Storage instead. This increases maximum allowed size of Commands while adding basic privacy - instead of commands, link to Flux Storage will be visible.",expression:"'Uploads Commands to Flux Storage. Commands will be replaced with a link to Flux Storage instead. This increases maximum allowed size of Commands while adding basic privacy - instead of commands, link to Flux Storage will be visible.'",modifiers:{hover:!0,top:!0}}],attrs:{id:"upload-cmd",variant:"outline-primary"}},[e("v-icon",{attrs:{name:"cloud-upload-alt"}})],1),e("confirm-dialog",{attrs:{target:"upload-cmd","confirm-button":"Upload Commands",width:600},on:{confirm:function(e){return t.uploadCmdToFluxStorage(i)}}})],1)]),e("div",{staticClass:"form-row form-group"},[e("label",{staticClass:"col-3 col-form-label"},[t._v(" Cont. Data "),e("v-icon",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.top",value:"Data folder that is shared by application to App volume. Prepend with r: for synced data between instances. Ex. r:/data. Prepend with g: for synced data and primary/standby solution. Ex. g:/data",expression:"'Data folder that is shared by application to App volume. Prepend with r: for synced data between instances. Ex. r:/data. Prepend with g: for synced data and primary/standby solution. Ex. g:/data'",modifiers:{hover:!0,top:!0}}],staticClass:"mr-1",attrs:{name:"info-circle"}})],1),e("div",{staticClass:"col"},[e("b-form-input",{attrs:{id:`containerData-${s.name}_${t.appUpdateSpecification.name}`},model:{value:s.containerData,callback:function(e){t.$set(s,"containerData",e)},expression:"component.containerData"}})],1)]),t.appUpdateSpecification.version>=7&&t.isPrivateApp?e("div",{staticClass:"form-row form-group"},[e("label",{staticClass:"col-3 col-form-label"},[t._v(" Secrets "),e("v-icon",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.top",value:"Array of strings of Secret Environmental Parameters. This will be encrypted and accessible to selected Enterprise Nodes only",expression:"'Array of strings of Secret Environmental Parameters. This will be encrypted and accessible to selected Enterprise Nodes only'",modifiers:{hover:!0,top:!0}}],staticClass:"mr-1",attrs:{name:"info-circle"}})],1),e("div",{staticClass:"col"},[e("b-form-input",{attrs:{id:`secrets-${s.name}_${t.appUpdateSpecification.name}`,placeholder:"[]"},model:{value:s.secrets,callback:function(e){t.$set(s,"secrets",e)},expression:"component.secrets"}})],1)]):t._e(),e("br"),e("b-card-title",[t._v(" Resources    "),e("h6",{staticClass:"inline text-small"},[t._v(" Tiered: "),e("b-form-checkbox",{staticClass:"custom-control-primary inline",attrs:{id:"tiered",switch:""},model:{value:s.tiered,callback:function(e){t.$set(s,"tiered",e)},expression:"component.tiered"}})],1)]),s.tiered?t._e():e("b-form-group",{attrs:{"label-cols":"3","label-cols-lg":"2",label:"CPU","label-for":"cpu"}},[e("div",{staticClass:"mx-1"},[t._v(" "+t._s(s.cpu)+" ")]),e("b-form-input",{attrs:{id:`cpu-${s.name}_${t.appUpdateSpecification.name}`,placeholder:"CPU cores to use by default",type:"range",min:"0.1",max:"15",step:"0.1"},model:{value:s.cpu,callback:function(e){t.$set(s,"cpu",e)},expression:"component.cpu"}})],1),s.tiered?t._e():e("b-form-group",{attrs:{"label-cols":"3","label-cols-lg":"2",label:"RAM","label-for":"ram"}},[e("div",{staticClass:"mx-1"},[t._v(" "+t._s(s.ram)+" ")]),e("b-form-input",{attrs:{id:`ram-${s.name}_${t.appUpdateSpecification.name}`,placeholder:"RAM in MB value to use by default",type:"range",min:"100",max:"59000",step:"100"},model:{value:s.ram,callback:function(e){t.$set(s,"ram",e)},expression:"component.ram"}})],1),s.tiered?t._e():e("b-form-group",{attrs:{"label-cols":"3","label-cols-lg":"2",label:"SSD","label-for":"ssd"}},[e("div",{staticClass:"mx-1"},[t._v(" "+t._s(s.hdd)+" ")]),e("b-form-input",{attrs:{id:`ssd-${s.name}_${t.appUpdateSpecification.name}`,placeholder:"SSD in GB value to use by default",type:"range",min:"1",max:"820",step:"1"},model:{value:s.hdd,callback:function(e){t.$set(s,"hdd",e)},expression:"component.hdd"}})],1)],1)],1)],1),s.tiered?e("b-row",[e("b-col",{attrs:{xs:"12",md:"6",lg:"4"}},[e("b-card",{attrs:{title:"Cumulus"}},[e("div",[t._v(" CPU: "+t._s(s.cpubasic)+" ")]),e("b-form-input",{attrs:{type:"range",min:"0.1",max:"3",step:"0.1"},model:{value:s.cpubasic,callback:function(e){t.$set(s,"cpubasic",e)},expression:"component.cpubasic"}}),e("div",[t._v(" RAM: "+t._s(s.rambasic)+" ")]),e("b-form-input",{attrs:{type:"range",min:"100",max:"5000",step:"100"},model:{value:s.rambasic,callback:function(e){t.$set(s,"rambasic",e)},expression:"component.rambasic"}}),e("div",[t._v(" SSD: "+t._s(s.hddbasic)+" ")]),e("b-form-input",{attrs:{type:"range",min:"1",max:"180",step:"1"},model:{value:s.hddbasic,callback:function(e){t.$set(s,"hddbasic",e)},expression:"component.hddbasic"}})],1)],1),e("b-col",{attrs:{xs:"12",md:"6",lg:"4"}},[e("b-card",{attrs:{title:"Nimbus"}},[e("div",[t._v(" CPU: "+t._s(s.cpusuper)+" ")]),e("b-form-input",{attrs:{type:"range",min:"0.1",max:"7",step:"0.1"},model:{value:s.cpusuper,callback:function(e){t.$set(s,"cpusuper",e)},expression:"component.cpusuper"}}),e("div",[t._v(" RAM: "+t._s(s.ramsuper)+" ")]),e("b-form-input",{attrs:{type:"range",min:"100",max:"28000",step:"100"},model:{value:s.ramsuper,callback:function(e){t.$set(s,"ramsuper",e)},expression:"component.ramsuper"}}),e("div",[t._v(" SSD: "+t._s(s.hddsuper)+" ")]),e("b-form-input",{attrs:{type:"range",min:"1",max:"400",step:"1"},model:{value:s.hddsuper,callback:function(e){t.$set(s,"hddsuper",e)},expression:"component.hddsuper"}})],1)],1),e("b-col",{attrs:{xs:"12",lg:"4"}},[e("b-card",{attrs:{title:"Stratus"}},[e("div",[t._v(" CPU: "+t._s(s.cpubamf)+" ")]),e("b-form-input",{attrs:{type:"range",min:"0.1",max:"15",step:"0.1"},model:{value:s.cpubamf,callback:function(e){t.$set(s,"cpubamf",e)},expression:"component.cpubamf"}}),e("div",[t._v(" RAM: "+t._s(s.rambamf)+" ")]),e("b-form-input",{attrs:{type:"range",min:"100",max:"59000",step:"100"},model:{value:s.rambamf,callback:function(e){t.$set(s,"rambamf",e)},expression:"component.rambamf"}}),e("div",[t._v(" SSD: "+t._s(s.hddbamf)+" ")]),e("b-form-input",{attrs:{type:"range",min:"1",max:"820",step:"1"},model:{value:s.hddbamf,callback:function(e){t.$set(s,"hddbamf",e)},expression:"component.hddbamf"}})],1)],1)],1):t._e()],1)})),t.appUpdateSpecification.version>=7&&t.isPrivateApp?e("b-card",{attrs:{title:"Enterprise Nodes"}},[t._v(" Only these selected enterprise nodes will be able to run your application and are used for encryption. Only these nodes are able to access your private image and secrets."),e("br"),t._v(" Changing the node list after the message is computed and encrypted will result in a failure to run. Secrets and Repository Authentication would need to be adjusted again."),e("br"),t._v(" The score determines how reputable a node and node operator are. The higher the score, the higher the reputation on the network."),e("br"),t._v(" Secrets and Repository Authentication need to be set again if this node list changes."),e("br"),t._v(" The more nodes can run your application, the more stable it is. On the other hand, more nodes will have access to your private data!"),e("br"),e("b-row",[e("b-col",{staticClass:"my-1",attrs:{md:"4",sm:"4"}},[e("b-form-group",{staticClass:"mb-0"},[e("label",{staticClass:"d-inline-block text-left mr-50"},[t._v("Per page")]),e("b-form-select",{staticClass:"w-50",attrs:{id:"perPageSelect",size:"sm",options:t.entNodesTable.pageOptions},model:{value:t.entNodesTable.perPage,callback:function(e){t.$set(t.entNodesTable,"perPage",e)},expression:"entNodesTable.perPage"}})],1)],1),e("b-col",{staticClass:"my-1",attrs:{md:"8"}},[e("b-form-group",{staticClass:"mb-0",attrs:{label:"Filter","label-cols-sm":"1","label-align-sm":"right","label-for":"filterInput"}},[e("b-input-group",{attrs:{size:"sm"}},[e("b-form-input",{attrs:{id:"filterInput",type:"search",placeholder:"Type to Search"},model:{value:t.entNodesTable.filter,callback:function(e){t.$set(t.entNodesTable,"filter",e)},expression:"entNodesTable.filter"}}),e("b-input-group-append",[e("b-button",{attrs:{disabled:!t.entNodesTable.filter},on:{click:function(e){t.entNodesTable.filter=""}}},[t._v(" Clear ")])],1)],1)],1)],1),e("b-col",{attrs:{cols:"12"}},[e("b-table",{staticClass:"app-enterprise-nodes-table",attrs:{striped:"",hover:"",responsive:"","per-page":t.entNodesTable.perPage,"current-page":t.entNodesTable.currentPage,items:t.selectedEnterpriseNodes,fields:t.entNodesTable.fields,"sort-by":t.entNodesTable.sortBy,"sort-desc":t.entNodesTable.sortDesc,"sort-direction":t.entNodesTable.sortDirection,filter:t.entNodesTable.filter,"filter-included-fields":t.entNodesTable.filterOn,"show-empty":"","empty-text":"No Enterprise Nodes selected"},on:{"update:sortBy":function(e){return t.$set(t.entNodesTable,"sortBy",e)},"update:sort-by":function(e){return t.$set(t.entNodesTable,"sortBy",e)},"update:sortDesc":function(e){return t.$set(t.entNodesTable,"sortDesc",e)},"update:sort-desc":function(e){return t.$set(t.entNodesTable,"sortDesc",e)}},scopedSlots:t._u([{key:"cell(show_details)",fn:function(s){return[e("a",{on:{click:s.toggleDetails}},[s.detailsShowing?t._e():e("v-icon",{attrs:{name:"chevron-down"}}),s.detailsShowing?e("v-icon",{attrs:{name:"chevron-up"}}):t._e()],1)]}},{key:"row-details",fn:function(s){return[e("b-card",{},[s.item.ip?e("list-entry",{attrs:{title:"IP Address",data:s.item.ip}}):t._e(),e("list-entry",{attrs:{title:"Public Key",data:s.item.pubkey}}),e("list-entry",{attrs:{title:"Node Address",data:s.item.payment_address}}),e("list-entry",{attrs:{title:"Collateral",data:`${s.item.txhash}:${s.item.outidx}`}}),e("list-entry",{attrs:{title:"Tier",data:s.item.tier}}),e("list-entry",{attrs:{title:"Overall Score",data:s.item.score.toString()}}),e("list-entry",{attrs:{title:"Collateral Score",data:s.item.collateralPoints.toString()}}),e("list-entry",{attrs:{title:"Maturity Score",data:s.item.maturityPoints.toString()}}),e("list-entry",{attrs:{title:"Public Key Score",data:s.item.pubKeyPoints.toString()}}),e("list-entry",{attrs:{title:"Enterprise Apps Assigned",data:s.item.enterpriseApps.toString()}}),e("div",[e("b-button",{staticClass:"mr-0",attrs:{size:"sm",variant:"primary"},on:{click:function(e){t.openNodeFluxOS(s.item.ip.split(":")[0],s.item.ip.split(":")[1]?+s.item.ip.split(":")[1]-1:16126)}}},[t._v(" Visit FluxNode ")])],1)],1)]}},{key:"cell(ip)",fn:function(e){return[t._v(" "+t._s(e.item.ip)+" ")]}},{key:"cell(payment_address)",fn:function(e){return[t._v(" "+t._s(e.item.payment_address.slice(0,8))+"..."+t._s(e.item.payment_address.slice(e.item.payment_address.length-8,e.item.payment_address.length))+" ")]}},{key:"cell(tier)",fn:function(e){return[t._v(" "+t._s(e.item.tier)+" ")]}},{key:"cell(score)",fn:function(e){return[t._v(" "+t._s(e.item.score)+" ")]}},{key:"cell(actions)",fn:function(s){return[e("b-button",{staticClass:"mr-1 mb-1",attrs:{id:`remove-${s.item.ip}`,size:"sm",variant:"danger"}},[t._v(" Remove ")]),e("confirm-dialog",{attrs:{target:`remove-${s.item.ip}`,"confirm-button":"Remove FluxNode"},on:{confirm:function(e){return t.removeFluxNode(s.item.ip)}}}),e("b-button",{staticClass:"mr-1 mb-1",attrs:{size:"sm",variant:"primary"},on:{click:function(e){t.openNodeFluxOS(s.item.ip.split(":")[0],s.item.ip.split(":")[1]?+s.item.ip.split(":")[1]-1:16126)}}},[t._v(" Visit ")])]}}],null,!1,2861207668)})],1),e("b-col",{attrs:{cols:"12"}},[e("b-pagination",{staticClass:"my-0",attrs:{"total-rows":t.selectedEnterpriseNodes.length,"per-page":t.entNodesTable.perPage,align:"center",size:"sm"},model:{value:t.entNodesTable.currentPage,callback:function(e){t.$set(t.entNodesTable,"currentPage",e)},expression:"entNodesTable.currentPage"}}),e("span",{staticClass:"table-total"},[t._v("Total: "+t._s(t.selectedEnterpriseNodes.length))])],1)],1),e("br"),e("br"),e("div",{staticClass:"text-center"},[e("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"mb-2 mr-2",attrs:{variant:"primary","aria-label":"Auto Select Enterprise Nodes"},on:{click:t.autoSelectNodes}},[t._v(" Auto Select Enterprise Nodes ")]),e("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"mb-2 mr-2",attrs:{variant:"primary","aria-label":"Choose Enterprise Nodes"},on:{click:function(e){t.chooseEnterpriseDialog=!0}}},[t._v(" Choose Enterprise Nodes ")])],1)],1):t._e()],2):e("div",[e("b-row",{staticClass:"match-height"},[e("b-col",{attrs:{xs:"12",xl:"6"}},[e("b-card",{attrs:{title:"Details"}},[e("b-form-group",{attrs:{"label-cols":"2",label:"Version","label-for":"version"}},[e("b-form-input",{attrs:{id:"version",placeholder:t.appUpdateSpecification.version.toString(),readonly:""},model:{value:t.appUpdateSpecification.version,callback:function(e){t.$set(t.appUpdateSpecification,"version",e)},expression:"appUpdateSpecification.version"}})],1),e("b-form-group",{attrs:{"label-cols":"2",label:"Name","label-for":"name"}},[e("b-form-input",{attrs:{id:"name",placeholder:"App Name",readonly:""},model:{value:t.appUpdateSpecification.name,callback:function(e){t.$set(t.appUpdateSpecification,"name",e)},expression:"appUpdateSpecification.name"}})],1),e("b-form-group",{attrs:{"label-cols":"2",label:"Desc.","label-for":"desc"}},[e("b-form-textarea",{attrs:{id:"desc",placeholder:"Description",rows:"3"},model:{value:t.appUpdateSpecification.description,callback:function(e){t.$set(t.appUpdateSpecification,"description",e)},expression:"appUpdateSpecification.description"}})],1),e("b-form-group",{attrs:{"label-cols":"2",label:"Repo","label-for":"repo"}},[e("b-form-input",{attrs:{id:"repo",placeholder:"Docker image namespace/repository:tag",readonly:""},model:{value:t.appUpdateSpecification.repotag,callback:function(e){t.$set(t.appUpdateSpecification,"repotag",e)},expression:"appUpdateSpecification.repotag"}})],1),e("b-form-group",{attrs:{"label-cols":"2",label:"Owner","label-for":"owner"}},[e("b-form-input",{attrs:{id:"owner",placeholder:"Flux ID of Application Owner"},model:{value:t.appUpdateSpecification.owner,callback:function(e){t.$set(t.appUpdateSpecification,"owner",e)},expression:"appUpdateSpecification.owner"}})],1),e("br"),t.appUpdateSpecification.version>=3?e("b-form-group",{attrs:{"label-cols":"2","label-cols-lg":"1",label:"Instances","label-for":"instances"}},[e("div",{staticClass:"mx-1"},[t._v(" "+t._s(t.appUpdateSpecification.instances)+" ")]),e("b-form-input",{attrs:{id:"instances",placeholder:"Minimum number of application instances to be spawned",type:"range",min:"3",max:t.maxInstances,step:"1"},model:{value:t.appUpdateSpecification.instances,callback:function(e){t.$set(t.appUpdateSpecification,"instances",e)},expression:"appUpdateSpecification.instances"}})],1):t._e(),e("br"),t.appUpdateSpecification.version>=6?e("b-form-group",{attrs:{"label-cols":"2","label-cols-lg":"1",label:"Period","label-for":"period"}},[e("div",{staticClass:"mx-1"},[t._v(" "+t._s(t.getExpireLabel||(t.appUpdateSpecification.expire?`${t.appUpdateSpecification.expire} blocks`:"1 month"))+" ")]),e("b-form-input",{attrs:{id:"period",placeholder:"How long an application will live on Flux network",type:"range",min:0,max:5,step:1},model:{value:t.expirePosition,callback:function(e){t.expirePosition=e},expression:"expirePosition"}})],1):t._e()],1)],1),e("b-col",{attrs:{xs:"12",xl:"6"}},[e("b-card",{attrs:{title:"Environment"}},[e("div",{staticClass:"form-row form-group"},[e("label",{staticClass:"col-3 col-form-label"},[t._v(" Ports "),e("v-icon",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.top",value:"Array of Ports on which application will be available",expression:"'Array of Ports on which application will be available'",modifiers:{hover:!0,top:!0}}],staticClass:"mr-1",attrs:{name:"info-circle"}})],1),e("div",{staticClass:"col"},[e("b-form-input",{attrs:{id:"ports"},model:{value:t.appUpdateSpecification.ports,callback:function(e){t.$set(t.appUpdateSpecification,"ports",e)},expression:"appUpdateSpecification.ports"}})],1)]),e("div",{staticClass:"form-row form-group"},[e("label",{staticClass:"col-3 col-form-label"},[t._v(" Domains "),e("v-icon",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.top",value:"Array of strings of Domains managed by Flux Domain Manager (FDM). Length must correspond to available ports. Use empty strings for no domains",expression:"'Array of strings of Domains managed by Flux Domain Manager (FDM). Length must correspond to available ports. Use empty strings for no domains'",modifiers:{hover:!0,top:!0}}],staticClass:"mr-1",attrs:{name:"info-circle"}})],1),e("div",{staticClass:"col"},[e("b-form-input",{attrs:{id:"domains"},model:{value:t.appUpdateSpecification.domains,callback:function(e){t.$set(t.appUpdateSpecification,"domains",e)},expression:"appUpdateSpecification.domains"}})],1)]),e("div",{staticClass:"form-row form-group"},[e("label",{staticClass:"col-3 col-form-label"},[t._v(" Environment "),e("v-icon",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.top",value:"Array of strings of Environmental Parameters",expression:"'Array of strings of Environmental Parameters'",modifiers:{hover:!0,top:!0}}],staticClass:"mr-1",attrs:{name:"info-circle"}})],1),e("div",{staticClass:"col"},[e("b-form-input",{attrs:{id:"environmentParameters"},model:{value:t.appUpdateSpecification.enviromentParameters,callback:function(e){t.$set(t.appUpdateSpecification,"enviromentParameters",e)},expression:"appUpdateSpecification.enviromentParameters"}})],1)]),e("div",{staticClass:"form-row form-group"},[e("label",{staticClass:"col-3 col-form-label"},[t._v(" Commands "),e("v-icon",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.top",value:"Array of strings of Commands",expression:"'Array of strings of Commands'",modifiers:{hover:!0,top:!0}}],staticClass:"mr-1",attrs:{name:"info-circle"}})],1),e("div",{staticClass:"col"},[e("b-form-input",{attrs:{id:"commands"},model:{value:t.appUpdateSpecification.commands,callback:function(e){t.$set(t.appUpdateSpecification,"commands",e)},expression:"appUpdateSpecification.commands"}})],1)]),e("div",{staticClass:"form-row form-group"},[e("label",{staticClass:"col-3 col-form-label"},[t._v(" Cont. Ports "),e("v-icon",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.top",value:"Container Ports - Array of ports which your container has",expression:"'Container Ports - Array of ports which your container has'",modifiers:{hover:!0,top:!0}}],staticClass:"mr-1",attrs:{name:"info-circle"}})],1),e("div",{staticClass:"col"},[e("b-form-input",{attrs:{id:"containerPorts"},model:{value:t.appUpdateSpecification.containerPorts,callback:function(e){t.$set(t.appUpdateSpecification,"containerPorts",e)},expression:"appUpdateSpecification.containerPorts"}})],1)]),e("div",{staticClass:"form-row form-group"},[e("label",{staticClass:"col-3 col-form-label"},[t._v(" Cont. Data "),e("v-icon",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.top",value:"Data folder that is shared by application to App volume. Prepend with r: for synced data between instances. Ex. r:/data. Prepend with g: for synced data and primary/standby solution. Ex. g:/data",expression:"'Data folder that is shared by application to App volume. Prepend with r: for synced data between instances. Ex. r:/data. Prepend with g: for synced data and primary/standby solution. Ex. g:/data'",modifiers:{hover:!0,top:!0}}],staticClass:"mr-1",attrs:{name:"info-circle"}})],1),e("div",{staticClass:"col"},[e("b-form-input",{attrs:{id:"containerData"},model:{value:t.appUpdateSpecification.containerData,callback:function(e){t.$set(t.appUpdateSpecification,"containerData",e)},expression:"appUpdateSpecification.containerData"}})],1)])])],1)],1),e("b-row",{staticClass:"match-height"},[e("b-col",{attrs:{xs:"12"}},[e("b-card",[e("b-card-title",[t._v(" Resources    "),e("h6",{staticClass:"inline etext-small"},[t._v(" Tiered: "),e("b-form-checkbox",{staticClass:"custom-control-primary inline",attrs:{id:"tiered",switch:""},model:{value:t.appUpdateSpecification.tiered,callback:function(e){t.$set(t.appUpdateSpecification,"tiered",e)},expression:"appUpdateSpecification.tiered"}})],1)]),t.appUpdateSpecification.tiered?t._e():e("b-form-group",{attrs:{"label-cols":"2","label-cols-lg":"1",label:"CPU","label-for":"cpu"}},[e("div",{staticClass:"mx-1"},[t._v(" "+t._s(t.appUpdateSpecification.cpu)+" ")]),e("b-form-input",{attrs:{id:"cpu",placeholder:"CPU cores to use by default",type:"range",min:"0.1",max:"15",step:"0.1"},model:{value:t.appUpdateSpecification.cpu,callback:function(e){t.$set(t.appUpdateSpecification,"cpu",e)},expression:"appUpdateSpecification.cpu"}})],1),t.appUpdateSpecification.tiered?t._e():e("b-form-group",{attrs:{"label-cols":"2","label-cols-lg":"1",label:"RAM","label-for":"ram"}},[e("div",{staticClass:"mx-1"},[t._v(" "+t._s(t.appUpdateSpecification.ram)+" ")]),e("b-form-input",{attrs:{id:"ram",placeholder:"RAM in MB value to use by default",type:"range",min:"100",max:"59000",step:"100"},model:{value:t.appUpdateSpecification.ram,callback:function(e){t.$set(t.appUpdateSpecification,"ram",e)},expression:"appUpdateSpecification.ram"}})],1),t.appUpdateSpecification.tiered?t._e():e("b-form-group",{attrs:{"label-cols":"2","label-cols-lg":"1",label:"SSD","label-for":"ssd"}},[e("div",{staticClass:"mx-1"},[t._v(" "+t._s(t.appUpdateSpecification.hdd)+" ")]),e("b-form-input",{attrs:{id:"ssd",placeholder:"SSD in GB value to use by default",type:"range",min:"1",max:"820",step:"1"},model:{value:t.appUpdateSpecification.hdd,callback:function(e){t.$set(t.appUpdateSpecification,"hdd",e)},expression:"appUpdateSpecification.hdd"}})],1)],1)],1)],1),t.appUpdateSpecification.tiered?e("b-row",[e("b-col",{attrs:{xs:"12",md:"6",lg:"4"}},[e("b-card",{attrs:{title:"Cumulus"}},[e("div",[t._v(" CPU: "+t._s(t.appUpdateSpecification.cpubasic)+" ")]),e("b-form-input",{attrs:{type:"range",min:"0.1",max:"3",step:"0.1"},model:{value:t.appUpdateSpecification.cpubasic,callback:function(e){t.$set(t.appUpdateSpecification,"cpubasic",e)},expression:"appUpdateSpecification.cpubasic"}}),e("div",[t._v(" RAM: "+t._s(t.appUpdateSpecification.rambasic)+" ")]),e("b-form-input",{attrs:{type:"range",min:"100",max:"5000",step:"100"},model:{value:t.appUpdateSpecification.rambasic,callback:function(e){t.$set(t.appUpdateSpecification,"rambasic",e)},expression:"appUpdateSpecification.rambasic"}}),e("div",[t._v(" SSD: "+t._s(t.appUpdateSpecification.hddbasic)+" ")]),e("b-form-input",{attrs:{type:"range",min:"1",max:"180",step:"1"},model:{value:t.appUpdateSpecification.hddbasic,callback:function(e){t.$set(t.appUpdateSpecification,"hddbasic",e)},expression:"appUpdateSpecification.hddbasic"}})],1)],1),e("b-col",{attrs:{xs:"12",md:"6",lg:"4"}},[e("b-card",{attrs:{title:"Nimbus"}},[e("div",[t._v(" CPU: "+t._s(t.appUpdateSpecification.cpusuper)+" ")]),e("b-form-input",{attrs:{type:"range",min:"0.1",max:"7",step:"0.1"},model:{value:t.appUpdateSpecification.cpusuper,callback:function(e){t.$set(t.appUpdateSpecification,"cpusuper",e)},expression:"appUpdateSpecification.cpusuper"}}),e("div",[t._v(" RAM: "+t._s(t.appUpdateSpecification.ramsuper)+" ")]),e("b-form-input",{attrs:{type:"range",min:"100",max:"28000",step:"100"},model:{value:t.appUpdateSpecification.ramsuper,callback:function(e){t.$set(t.appUpdateSpecification,"ramsuper",e)},expression:"appUpdateSpecification.ramsuper"}}),e("div",[t._v(" SSD: "+t._s(t.appUpdateSpecification.hddsuper)+" ")]),e("b-form-input",{attrs:{type:"range",min:"1",max:"400",step:"1"},model:{value:t.appUpdateSpecification.hddsuper,callback:function(e){t.$set(t.appUpdateSpecification,"hddsuper",e)},expression:"appUpdateSpecification.hddsuper"}})],1)],1),e("b-col",{attrs:{xs:"12",lg:"4"}},[e("b-card",{attrs:{title:"Stratus"}},[e("div",[t._v(" CPU: "+t._s(t.appUpdateSpecification.cpubamf)+" ")]),e("b-form-input",{attrs:{type:"range",min:"0.1",max:"15",step:"0.1"},model:{value:t.appUpdateSpecification.cpubamf,callback:function(e){t.$set(t.appUpdateSpecification,"cpubamf",e)},expression:"appUpdateSpecification.cpubamf"}}),e("div",[t._v(" RAM: "+t._s(t.appUpdateSpecification.rambamf)+" ")]),e("b-form-input",{attrs:{type:"range",min:"100",max:"59000",step:"100"},model:{value:t.appUpdateSpecification.rambamf,callback:function(e){t.$set(t.appUpdateSpecification,"rambamf",e)},expression:"appUpdateSpecification.rambamf"}}),e("div",[t._v(" SSD: "+t._s(t.appUpdateSpecification.hddbamf)+" ")]),e("b-form-input",{attrs:{type:"range",min:"1",max:"820",step:"1"},model:{value:t.appUpdateSpecification.hddbamf,callback:function(e){t.$set(t.appUpdateSpecification,"hddbamf",e)},expression:"appUpdateSpecification.hddbamf"}})],1)],1)],1):t._e()],1)]):t._e(),t.appUpdateSpecification.version>=6?e("div",{staticClass:"form-row form-group d-flex align-items-center"},[e("b-input-group",[e("b-input-group-prepend",[e("b-input-group-text",[e("b-icon",{staticClass:"mr-1",attrs:{icon:"clock-history"}}),t._v(" Extend Subscription "),e("v-icon",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.top",value:"Select if you want to extend or change your subscription period",expression:"'Select if you want to extend or change your subscription period'",modifiers:{hover:!0,top:!0}}],staticClass:"ml-1",attrs:{name:"info-circle"}}),t._v("    ")],1)],1),e("b-input-group-append",{attrs:{"is-text":""}},[e("b-form-checkbox",{staticClass:"custom-control-primary",attrs:{id:"extendSubscription",switch:""},model:{value:t.extendSubscription,callback:function(e){t.extendSubscription=e},expression:"extendSubscription"}})],1)],1)],1):t._e(),t.extendSubscription&&t.appUpdateSpecification.version>=6?e("div",{staticClass:"form-row form-group"},[e("label",{staticClass:"col-form-label"},[t._v(" Period "),e("v-icon",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.top",value:"Time your application subscription will be extended",expression:"'Time your application subscription will be extended'",modifiers:{hover:!0,top:!0}}],staticClass:"mr-2",attrs:{name:"info-circle"}}),e("kbd",{staticClass:"bg-primary mr-1"},[e("b",[t._v(t._s(t.getExpireLabel||(t.appUpdateSpecification.expire?`${t.appUpdateSpecification.expire} blocks`:"1 month")))])])],1),e("div",{staticClass:"w-100",staticStyle:{flex:"1",padding:"10px"}},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.expirePosition,expression:"expirePosition"}],staticClass:"form-control-range",staticStyle:{width:"100%",outline:"none"},attrs:{id:"period",type:"range",min:0,max:5,step:1},domProps:{value:t.expirePosition},on:{__r:function(e){t.expirePosition=e.target.value}}})])]):t._e(),e("div",[t._v(" Currently your application is subscribed until "),e("b",[t._v(t._s(new Date(t.appRunningTill.current).toLocaleString("en-GB",t.timeoptions.shortDate)))]),t._v(". "),t.extendSubscription?e("span",[e("br"),t._v(" Your new adjusted subscription end on "),e("b",[t._v(t._s(new Date(t.appRunningTill.new).toLocaleString("en-GB",t.timeoptions.shortDate)))]),t._v(". ")]):t._e(),t.appRunningTill.new0?e("h4",[e("kbd",{staticClass:"d-flex justify-content-center bg-primary mb-2"},[t._v("Discount - "+t._s(t.applicationPriceFluxDiscount)+"%")])]):t._e(),e("h4",{staticClass:"text-center mb-2"},[t._v(" Pay with Zelcore/SSP ")]),e("div",{staticClass:"loginRow"},[e("a",{attrs:{href:`zel:?action=pay&coin=zelcash&address=${t.deploymentAddress}&amount=${t.appPricePerSpecs}&message=${t.updateHash}&icon=https%3A%2F%2Fraw.githubusercontent.com%2Frunonflux%2Fflux%2Fmaster%2Fflux_banner.png`}},[e("img",{staticClass:"walletIcon",attrs:{src:s(96358),alt:"Flux ID",height:"100%",width:"100%"}})]),e("a",{on:{click:t.initSSPpay}},[e("img",{staticClass:"walletIcon",attrs:{src:"dark"===t.skin?s(56070):s(58962),alt:"SSP",height:"100%",width:"100%"}})])])])],1)],1),t.updateHash&&t.freeUpdate?e("b-row",{staticClass:"match-height"},[e("b-card",[e("b-card-text",[t._v(" Everything is ready, your application update should be effective automatically in less than 30 minutes. ")])],1)],1):t._e()],1):t._e()]),e("b-tab",{attrs:{title:"Cancel Subscription",disabled:!t.isAppOwner||t.appUpdateSpecification.version<6}},[t.fluxCommunication?t._e():e("div",{staticClass:"text-danger"},[t._v(" Warning: Connected Flux is not communicating properly with Flux network ")]),e("div",{staticStyle:{border:"1px solid #ccc","border-radius":"8px",height:"45px",padding:"12px","line-height":"0px"}},[e("h5",[e("b-icon",{staticClass:"mr-1",attrs:{icon:"ui-checks-grid"}}),t._v(" Cancel Application subscription ")],1)]),e("br"),e("div",[t._v(" Currently your application is subscribed until "),e("b",[t._v(t._s(new Date(t.appRunningTill.current).toLocaleString("en-GB",t.timeoptions.shortDate)))]),t._v(". "),e("br"),e("b",[t._v("WARNING: By cancelling your application subscription, your application will be removed from the network and all data will be lost.")])]),e("br"),e("div",[e("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"mb-2 w-100",attrs:{variant:"outline-success","aria-label":"Compute Cancel Message"},on:{click:t.checkFluxCancelSubscriptionAndFormatMessage}},[t._v(" Compute Cancel Message ")])],1),t.dataToSign?e("div",[e("b-form-group",{attrs:{"label-cols":"3","label-cols-lg":"2",label:"Update Message","label-for":"updatemessage"}},[e("div",{staticClass:"text-wrap"},[e("b-form-textarea",{attrs:{id:"updatemessage",rows:"6",readonly:""},model:{value:t.dataToSign,callback:function(e){t.dataToSign=e},expression:"dataToSign"}}),e("b-icon",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip",value:t.tooltipText,expression:"tooltipText"}],ref:"copyButtonRef",staticClass:"clipboard icon",attrs:{scale:"1.5",icon:"clipboard"},on:{click:t.copyMessageToSign}})],1)]),e("b-form-group",{attrs:{"label-cols":"3","label-cols-lg":"2",label:"Signature","label-for":"updatesignature"}},[e("b-form-input",{attrs:{id:"updatesignature"},model:{value:t.signature,callback:function(e){t.signature=e},expression:"signature"}})],1),e("b-row",{staticClass:"match-height"},[e("b-col",{attrs:{xs:"6",lg:"8"}},[e("b-card",[e("br"),e("div",{staticClass:"text-center"},[e("h4",[e("b-icon",{staticClass:"mr-1",attrs:{scale:"1.4",icon:"chat-right"}}),t._v(" Data has to be signed by the last application owner ")],1)]),e("br"),e("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"w-100",attrs:{variant:"outline-success","aria-label":"Update Flux App"},on:{click:t.update}},[t._v(" Cancel Application ")])],1)],1),e("b-col",{attrs:{xs:"6",lg:"4"}},[e("b-card",{staticClass:"text-center",attrs:{title:"Sign with"}},[e("div",{staticClass:"loginRow"},[e("a",{attrs:{href:`zel:?action=sign&message=${t.dataToSign}&icon=https%3A%2F%2Fraw.githubusercontent.com%2Frunonflux%2Fflux%2Fmaster%2FzelID.svg&callback=${t.callbackValue}`},on:{click:t.initiateSignWSUpdate}},[e("img",{staticClass:"walletIcon",attrs:{src:s(96358),alt:"Flux ID",height:"100%",width:"100%"}})]),e("a",{on:{click:t.initSSP}},[e("img",{staticClass:"walletIcon",attrs:{src:"dark"===t.skin?s(56070):s(58962),alt:"SSP",height:"100%",width:"100%"}})])]),e("div",{staticClass:"loginRow"},[e("a",{on:{click:t.initWalletConnect}},[e("img",{staticClass:"walletIcon",attrs:{src:s(47622),alt:"WalletConnect",height:"100%",width:"100%"}})]),e("a",{on:{click:t.initMetamask}},[e("img",{staticClass:"walletIcon",attrs:{src:s(28125),alt:"Metamask",height:"100%",width:"100%"}})])]),e("div",{staticClass:"loginRow"},[e("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"my-1",staticStyle:{width:"250px"},attrs:{variant:"primary","aria-label":"Flux Single Sign On"},on:{click:t.initSignFluxSSO}},[t._v(" Flux Single Sign On (SSO) ")])],1)])],1)],1),t.updateHash?e("b-row",{staticClass:"match-height"},[e("b-card",[e("b-card-text",[t._v(" Everything is ready, your application cancelattion should be effective automatically in less than 30 minutes and removed from the network in the next ~3hours. ")])],1)],1):t._e()],1):t._e()])],1),t.output.length>0?e("div",{staticClass:"actionCenter"},[e("br"),e("b-row",[e("b-col",{attrs:{cols:"9"}},[e("b-form-textarea",{staticClass:"mt-1",attrs:{plaintext:"","no-resize":"",rows:t.output.length+1,value:t.stringOutput()}})],1),t.downloadOutputReturned?e("b-col",{attrs:{cols:"3"}},[e("h3",[t._v("Downloads")]),t._l(t.downloadOutput,(function(s){return e("div",{key:s.id},[e("h4",[t._v(" "+t._s(s.id))]),e("b-progress",{attrs:{value:s.detail.current/s.detail.total*100,max:"100",striped:"",height:"1rem",variant:s.variant}}),e("br")],1)}))],2):t._e()],1)],1):t._e(),t._m(0),e("b-modal",{attrs:{title:"Select Enterprise Nodes",size:"xl",centered:"","button-size":"sm","ok-only":"","ok-title":"Done"},model:{value:t.chooseEnterpriseDialog,callback:function(e){t.chooseEnterpriseDialog=e},expression:"chooseEnterpriseDialog"}},[e("b-row",[e("b-col",{staticClass:"my-1",attrs:{md:"4",sm:"4"}},[e("b-form-group",{staticClass:"mb-0"},[e("label",{staticClass:"d-inline-block text-left mr-50"},[t._v("Per page")]),e("b-form-select",{staticClass:"w-50",attrs:{id:"perPageSelect",size:"sm",options:t.entNodesSelectTable.pageOptions},model:{value:t.entNodesSelectTable.perPage,callback:function(e){t.$set(t.entNodesSelectTable,"perPage",e)},expression:"entNodesSelectTable.perPage"}})],1)],1),e("b-col",{staticClass:"my-1",attrs:{md:"8"}},[e("b-form-group",{staticClass:"mb-0",attrs:{label:"Filter","label-cols-sm":"1","label-align-sm":"right","label-for":"filterInput"}},[e("b-input-group",{attrs:{size:"sm"}},[e("b-form-input",{attrs:{id:"filterInput",type:"search",placeholder:"Type to Search"},model:{value:t.entNodesSelectTable.filter,callback:function(e){t.$set(t.entNodesSelectTable,"filter",e)},expression:"entNodesSelectTable.filter"}}),e("b-input-group-append",[e("b-button",{attrs:{disabled:!t.entNodesSelectTable.filter},on:{click:function(e){t.entNodesSelectTable.filter=""}}},[t._v(" Clear ")])],1)],1)],1)],1),e("b-col",{attrs:{cols:"12"}},[e("b-table",{staticClass:"app-enterprise-nodes-table",attrs:{striped:"",hover:"",responsive:"","per-page":t.entNodesSelectTable.perPage,"current-page":t.entNodesSelectTable.currentPage,items:t.enterpriseNodes,fields:t.entNodesSelectTable.fields,"sort-by":t.entNodesSelectTable.sortBy,"sort-desc":t.entNodesSelectTable.sortDesc,"sort-direction":t.entNodesSelectTable.sortDirection,filter:t.entNodesSelectTable.filter,"filter-included-fields":t.entNodesSelectTable.filterOn,"show-empty":"","empty-text":"No Enterprise Nodes For Addition Found"},on:{"update:sortBy":function(e){return t.$set(t.entNodesSelectTable,"sortBy",e)},"update:sort-by":function(e){return t.$set(t.entNodesSelectTable,"sortBy",e)},"update:sortDesc":function(e){return t.$set(t.entNodesSelectTable,"sortDesc",e)},"update:sort-desc":function(e){return t.$set(t.entNodesSelectTable,"sortDesc",e)}},scopedSlots:t._u([{key:"cell(show_details)",fn:function(s){return[e("a",{on:{click:s.toggleDetails}},[s.detailsShowing?t._e():e("v-icon",{attrs:{name:"chevron-down"}}),s.detailsShowing?e("v-icon",{attrs:{name:"chevron-up"}}):t._e()],1)]}},{key:"row-details",fn:function(s){return[e("b-card",{},[e("list-entry",{attrs:{title:"IP Address",data:s.item.ip}}),e("list-entry",{attrs:{title:"Public Key",data:s.item.pubkey}}),e("list-entry",{attrs:{title:"Node Address",data:s.item.payment_address}}),e("list-entry",{attrs:{title:"Collateral",data:`${s.item.txhash}:${s.item.outidx}`}}),e("list-entry",{attrs:{title:"Tier",data:s.item.tier}}),e("list-entry",{attrs:{title:"Overall Score",data:s.item.score.toString()}}),e("list-entry",{attrs:{title:"Collateral Score",data:s.item.collateralPoints.toString()}}),e("list-entry",{attrs:{title:"Maturity Score",data:s.item.maturityPoints.toString()}}),e("list-entry",{attrs:{title:"Public Key Score",data:s.item.pubKeyPoints.toString()}}),e("list-entry",{attrs:{title:"Enterprise Apps Assigned",data:s.item.enterpriseApps.toString()}}),e("div",[e("b-button",{staticClass:"mr-0",attrs:{size:"sm",variant:"primary"},on:{click:function(e){t.openNodeFluxOS(t.locationRow.item.ip.split(":")[0],t.locationRow.item.ip.split(":")[1]?+t.locationRow.item.ip.split(":")[1]-1:16126)}}},[t._v(" Visit FluxNode ")])],1)],1)]}},{key:"cell(ip)",fn:function(e){return[t._v(" "+t._s(e.item.ip)+" ")]}},{key:"cell(payment_address)",fn:function(e){return[t._v(" "+t._s(e.item.payment_address.slice(0,8))+"..."+t._s(e.item.payment_address.slice(e.item.payment_address.length-8,e.item.payment_address.length))+" ")]}},{key:"cell(tier)",fn:function(e){return[t._v(" "+t._s(e.item.tier)+" ")]}},{key:"cell(score)",fn:function(e){return[t._v(" "+t._s(e.item.score)+" ")]}},{key:"cell(actions)",fn:function(s){return[e("b-button",{staticClass:"mr-1 mb-1",attrs:{size:"sm",variant:"primary"},on:{click:function(e){t.openNodeFluxOS(s.item.ip.split(":")[0],s.item.ip.split(":")[1]?+s.item.ip.split(":")[1]-1:16126)}}},[t._v(" Visit ")]),t.selectedEnterpriseNodes.find((t=>t.ip===s.item.ip))?t._e():e("b-button",{staticClass:"mr-1 mb-1",attrs:{id:`add-${s.item.ip}`,size:"sm",variant:"success"},on:{click:function(e){return t.addFluxNode(s.item.ip)}}},[t._v(" Add ")]),t.selectedEnterpriseNodes.find((t=>t.ip===s.item.ip))?e("b-button",{staticClass:"mr-1 mb-1",attrs:{id:`add-${s.item.ip}`,size:"sm",variant:"danger"},on:{click:function(e){return t.removeFluxNode(s.item.ip)}}},[t._v(" Remove ")]):t._e()]}}])})],1),e("b-col",{attrs:{cols:"12"}},[e("b-pagination",{staticClass:"my-0",attrs:{"total-rows":t.entNodesSelectTable.totalRows,"per-page":t.entNodesSelectTable.perPage,align:"center",size:"sm"},model:{value:t.entNodesSelectTable.currentPage,callback:function(e){t.$set(t.entNodesSelectTable,"currentPage",e)},expression:"entNodesSelectTable.currentPage"}}),e("span",{staticClass:"table-total"},[t._v("Total: "+t._s(t.entNodesSelectTable.totalRows))])],1)],1)],1)],1)},a=[function(){var t=this,e=t._self._c;return e("div",[e("br"),t._v(" By managing an application I agree with "),e("a",{attrs:{href:"https://cdn.runonflux.io/Flux_Terms_of_Service.pdf",target:"_blank",rel:"noopener noreferrer"}},[t._v(" Terms of Service ")])])}],o=(s(70560),s(15716),s(33442),s(61964),s(69878),s(52915),s(97895),s(22275),s(73106)),n=s(58887),r=s(51015),l=s(16521),c=s(66456),p=s(92095),d=s(31642),h=s(87379),u=s(51909),m=s(71605),f=s(43022),g=s(4060),b=s(27754),v=s(22418),y=s(50725),x=s(86855),w=s(64206),_=s(49379),S=s(97794),C=s(26253),k=s(15193),A=s(1759),T=s(87167),P=s(333),R=s(46709),D=s(22183),L=s(19692),F=s(8051),M=s(78959),$=s(10962),I=s(45752),N=s(22981),U=s(5870),O=s(67166),E=s.n(O),B=s(20266),z=s(20629),V=s(34547),H=s(87156),j=s(51748),q=s(57071),G=s(90699),W=s.n(G),K=s(2272),X=s(52829),Y=s(5449),Z=s(65864),J=s(43672),Q=s(27616),tt=s(93767),et=s(94145),st=s(12320),it=s(12617),at=s(67511),ot=s(32993),nt=s(12286),rt=s(62599),lt=s(37307),ct=s(7174),pt=s.n(ct); +/*! + * @kurkle/color v0.3.2 + * https://github.com/kurkle/color#readme + * (c) 2023 Jukka Kurkela + * Released under the MIT License + */ +function dt(t){return t+.5|0}const ht=(t,e,s)=>Math.max(Math.min(t,s),e);function ut(t){return ht(dt(2.55*t),0,255)}function mt(t){return ht(dt(255*t),0,255)}function ft(t){return ht(dt(t/2.55)/100,0,1)}function gt(t){return ht(dt(100*t),0,100)}const bt={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},vt=[..."0123456789ABCDEF"],yt=t=>vt[15&t],xt=t=>vt[(240&t)>>4]+vt[15&t],wt=t=>(240&t)>>4===(15&t),_t=t=>wt(t.r)&&wt(t.g)&&wt(t.b)&&wt(t.a);function St(t){var e,s=t.length;return"#"===t[0]&&(4===s||5===s?e={r:255&17*bt[t[1]],g:255&17*bt[t[2]],b:255&17*bt[t[3]],a:5===s?17*bt[t[4]]:255}:7!==s&&9!==s||(e={r:bt[t[1]]<<4|bt[t[2]],g:bt[t[3]]<<4|bt[t[4]],b:bt[t[5]]<<4|bt[t[6]],a:9===s?bt[t[7]]<<4|bt[t[8]]:255})),e}const Ct=(t,e)=>t<255?e(t):"";function kt(t){var e=_t(t)?yt:xt;return t?"#"+e(t.r)+e(t.g)+e(t.b)+Ct(t.a,e):void 0}const At=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function Tt(t,e,s){const i=e*Math.min(s,1-s),a=(e,a=(e+t/30)%12)=>s-i*Math.max(Math.min(a-3,9-a,1),-1);return[a(0),a(8),a(4)]}function Pt(t,e,s){const i=(i,a=(i+t/60)%6)=>s-s*e*Math.max(Math.min(a,4-a,1),0);return[i(5),i(3),i(1)]}function Rt(t,e,s){const i=Tt(t,1,.5);let a;for(e+s>1&&(a=1/(e+s),e*=a,s*=a),a=0;a<3;a++)i[a]*=1-e-s,i[a]+=e;return i}function Dt(t,e,s,i,a){return t===a?(e-s)/i+(e.5?p/(2-o-n):p/(o+n),l=Dt(s,i,a,p,o),l=60*l+.5),[0|l,c||0,r]}function Ft(t,e,s,i){return(Array.isArray(e)?t(e[0],e[1],e[2]):t(e,s,i)).map(mt)}function Mt(t,e,s){return Ft(Tt,t,e,s)}function $t(t,e,s){return Ft(Rt,t,e,s)}function It(t,e,s){return Ft(Pt,t,e,s)}function Nt(t){return(t%360+360)%360}function Ut(t){const e=At.exec(t);let s,i=255;if(!e)return;e[5]!==s&&(i=e[6]?ut(+e[5]):mt(+e[5]));const a=Nt(+e[2]),o=+e[3]/100,n=+e[4]/100;return s="hwb"===e[1]?$t(a,o,n):"hsv"===e[1]?It(a,o,n):Mt(a,o,n),{r:s[0],g:s[1],b:s[2],a:i}}function Ot(t,e){var s=Lt(t);s[0]=Nt(s[0]+e),s=Mt(s),t.r=s[0],t.g=s[1],t.b=s[2]}function Et(t){if(!t)return;const e=Lt(t),s=e[0],i=gt(e[1]),a=gt(e[2]);return t.a<255?`hsla(${s}, ${i}%, ${a}%, ${ft(t.a)})`:`hsl(${s}, ${i}%, ${a}%)`}const Bt={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"},zt={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 Vt(){const t={},e=Object.keys(zt),s=Object.keys(Bt);let i,a,o,n,r;for(i=0;i>16&255,o>>8&255,255&o]}return t}let Ht;function jt(t){Ht||(Ht=Vt(),Ht.transparent=[0,0,0,0]);const e=Ht[t.toLowerCase()];return e&&{r:e[0],g:e[1],b:e[2],a:4===e.length?e[3]:255}}const qt=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;function Gt(t){const e=qt.exec(t);let s,i,a,o=255;if(e){if(e[7]!==s){const t=+e[7];o=e[8]?ut(t):ht(255*t,0,255)}return s=+e[1],i=+e[3],a=+e[5],s=255&(e[2]?ut(s):ht(s,0,255)),i=255&(e[4]?ut(i):ht(i,0,255)),a=255&(e[6]?ut(a):ht(a,0,255)),{r:s,g:i,b:a,a:o}}}function Wt(t){return t&&(t.a<255?`rgba(${t.r}, ${t.g}, ${t.b}, ${ft(t.a)})`:`rgb(${t.r}, ${t.g}, ${t.b})`)}const Kt=t=>t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055,Xt=t=>t<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4);function Yt(t,e,s){const i=Xt(ft(t.r)),a=Xt(ft(t.g)),o=Xt(ft(t.b));return{r:mt(Kt(i+s*(Xt(ft(e.r))-i))),g:mt(Kt(a+s*(Xt(ft(e.g))-a))),b:mt(Kt(o+s*(Xt(ft(e.b))-o))),a:t.a+s*(e.a-t.a)}}function Zt(t,e,s){if(t){let i=Lt(t);i[e]=Math.max(0,Math.min(i[e]+i[e]*s,0===e?360:1)),i=Mt(i),t.r=i[0],t.g=i[1],t.b=i[2]}}function Jt(t,e){return t?Object.assign(e||{},t):t}function Qt(t){var e={r:0,g:0,b:0,a:255};return Array.isArray(t)?t.length>=3&&(e={r:t[0],g:t[1],b:t[2],a:255},t.length>3&&(e.a=mt(t[3]))):(e=Jt(t,{r:0,g:0,b:0,a:1}),e.a=mt(e.a)),e}function te(t){return"r"===t.charAt(0)?Gt(t):Ut(t)}class ee{constructor(t){if(t instanceof ee)return t;const e=typeof t;let s;"object"===e?s=Qt(t):"string"===e&&(s=St(t)||jt(t)||te(t)),this._rgb=s,this._valid=!!s}get valid(){return this._valid}get rgb(){var t=Jt(this._rgb);return t&&(t.a=ft(t.a)),t}set rgb(t){this._rgb=Qt(t)}rgbString(){return this._valid?Wt(this._rgb):void 0}hexString(){return this._valid?kt(this._rgb):void 0}hslString(){return this._valid?Et(this._rgb):void 0}mix(t,e){if(t){const s=this.rgb,i=t.rgb;let a;const o=e===a?.5:e,n=2*o-1,r=s.a-i.a,l=((n*r===-1?n:(n+r)/(1+n*r))+1)/2;a=1-l,s.r=255&l*s.r+a*i.r+.5,s.g=255&l*s.g+a*i.g+.5,s.b=255&l*s.b+a*i.b+.5,s.a=o*s.a+(1-o)*i.a,this.rgb=s}return this}interpolate(t,e){return t&&(this._rgb=Yt(this._rgb,t._rgb,e)),this}clone(){return new ee(this.rgb)}alpha(t){return this._rgb.a=mt(t),this}clearer(t){const e=this._rgb;return e.a*=1-t,this}greyscale(){const t=this._rgb,e=dt(.3*t.r+.59*t.g+.11*t.b);return t.r=t.g=t.b=e,this}opaquer(t){const e=this._rgb;return e.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 Zt(this._rgb,2,t),this}darken(t){return Zt(this._rgb,2,-t),this}saturate(t){return Zt(this._rgb,1,t),this}desaturate(t){return Zt(this._rgb,1,-t),this}rotate(t){return Ot(this._rgb,t),this}} +/*! + * Chart.js v4.4.4 + * https://www.chartjs.org + * (c) 2024 Chart.js Contributors + * Released under the MIT License + */ +function se(){}const ie=(()=>{let t=0;return()=>t++})();function ae(t){return null===t||"undefined"===typeof t}function oe(t){if(Array.isArray&&Array.isArray(t))return!0;const e=Object.prototype.toString.call(t);return"[object"===e.slice(0,7)&&"Array]"===e.slice(-6)}function ne(t){return null!==t&&"[object Object]"===Object.prototype.toString.call(t)}function re(t){return("number"===typeof t||t instanceof Number)&&isFinite(+t)}function le(t,e){return re(t)?t:e}function ce(t,e){return"undefined"===typeof t?e:t}const pe=(t,e)=>"string"===typeof t&&t.endsWith("%")?parseFloat(t)/100*e:+t;function de(t,e,s){if(t&&"function"===typeof t.call)return t.apply(s,e)}function he(t,e,s,i){let a,o,n;if(oe(t))if(o=t.length,i)for(a=o-1;a>=0;a--)e.call(s,t[a],a);else for(a=0;at,x:t=>t.x,y:t=>t.y};function we(t){const e=t.split("."),s=[];let i="";for(const a of e)i+=a,i.endsWith("\\")?i=i.slice(0,-1)+".":(s.push(i),i="");return s}function _e(t){const e=we(t);return t=>{for(const s of e){if(""===s)break;t=t&&t[s]}return t}}function Se(t,e){const s=xe[e]||(xe[e]=_e(e));return s(t)}function Ce(t){return t.charAt(0).toUpperCase()+t.slice(1)}const ke=t=>"undefined"!==typeof t,Ae=t=>"function"===typeof t,Te=(t,e)=>{if(t.size!==e.size)return!1;for(const s of t)if(!e.has(s))return!1;return!0};function Pe(t){return"mouseup"===t.type||"click"===t.type||"contextmenu"===t.type}const Re=Math.PI,De=2*Re,Le=De+Re,Fe=Number.POSITIVE_INFINITY,Me=Re/180,$e=Re/2,Ie=Re/4,Ne=2*Re/3,Ue=Math.log10,Oe=Math.sign;function Ee(t,e,s){return Math.abs(t-e)t-e)).pop(),e}function Ve(t){return!isNaN(parseFloat(t))&&isFinite(t)}function He(t,e){const s=Math.round(t);return s-e<=t&&s+e>=t}function je(t,e,s){let i,a,o;for(i=0,a=t.length;il&&c=Math.min(e,s)-i&&t<=Math.max(e,s)+i}function ss(t,e,s){s=s||(s=>t[s]1)i=o+a>>1,s(i)?o=i:a=i;return{lo:o,hi:a}}const is=(t,e,s,i)=>ss(t,s,i?i=>{const a=t[i][e];return at[i][e]ss(t,s,(i=>t[i][e]>=s));function os(t,e,s){let i=0,a=t.length;while(ii&&t[a-1]>s)a--;return i>0||a{const s="_onData"+Ce(e),i=t[e];Object.defineProperty(t,e,{configurable:!0,enumerable:!1,value(...e){const a=i.apply(this,e);return t._chartjs.listeners.forEach((t=>{"function"===typeof t[s]&&t[s](...e)})),a}})})))}function ls(t,e){const s=t._chartjs;if(!s)return;const i=s.listeners,a=i.indexOf(e);-1!==a&&i.splice(a,1),i.length>0||(ns.forEach((e=>{delete t[e]})),delete t._chartjs)}function cs(t){const e=new Set(t);return e.size===t.length?t:Array.from(e)}const ps=function(){return"undefined"===typeof window?function(t){return t()}:window.requestAnimationFrame}();function ds(t,e){let s=[],i=!1;return function(...a){s=a,i||(i=!0,ps.call(window,(()=>{i=!1,t.apply(e,s)})))}}function hs(t,e){let s;return function(...i){return e?(clearTimeout(s),s=setTimeout(t,e,i)):t.apply(this,i),e}}const us=t=>"start"===t?"left":"end"===t?"right":"center",ms=(t,e,s)=>"start"===t?e:"end"===t?s:(e+s)/2,fs=(t,e,s,i)=>{const a=i?"left":"right";return t===a?s:"center"===t?(e+s)/2:e};function gs(t,e,s){const i=e.length;let a=0,o=i;if(t._sorted){const{iScale:n,_parsed:r}=t,l=n.axis,{min:c,max:p,minDefined:d,maxDefined:h}=n.getUserBounds();d&&(a=Qe(Math.min(is(r,l,c).lo,s?i:is(e,l,n.getPixelForValue(c)).lo),0,i-1)),o=h?Qe(Math.max(is(r,n.axis,p,!0).hi+1,s?0:is(e,l,n.getPixelForValue(p),!0).hi+1),a,i)-a:i-a}return{start:a,count:o}}function bs(t){const{xScale:e,yScale:s,_scaleRanges:i}=t,a={xmin:e.min,xmax:e.max,ymin:s.min,ymax:s.max};if(!i)return t._scaleRanges=a,!0;const o=i.xmin!==e.min||i.xmax!==e.max||i.ymin!==s.min||i.ymax!==s.max;return Object.assign(i,a),o}const vs=t=>0===t||1===t,ys=(t,e,s)=>-Math.pow(2,10*(t-=1))*Math.sin((t-e)*De/s),xs=(t,e,s)=>Math.pow(2,-10*t)*Math.sin((t-e)*De/s)+1,ws={linear:t=>t,easeInQuad:t=>t*t,easeOutQuad:t=>-t*(t-2),easeInOutQuad:t=>(t/=.5)<1?.5*t*t:-.5*(--t*(t-2)-1),easeInCubic:t=>t*t*t,easeOutCubic:t=>(t-=1)*t*t+1,easeInOutCubic:t=>(t/=.5)<1?.5*t*t*t:.5*((t-=2)*t*t+2),easeInQuart:t=>t*t*t*t,easeOutQuart:t=>-((t-=1)*t*t*t-1),easeInOutQuart:t=>(t/=.5)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2),easeInQuint:t=>t*t*t*t*t,easeOutQuint:t=>(t-=1)*t*t*t*t+1,easeInOutQuint:t=>(t/=.5)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2),easeInSine:t=>1-Math.cos(t*$e),easeOutSine:t=>Math.sin(t*$e),easeInOutSine:t=>-.5*(Math.cos(Re*t)-1),easeInExpo:t=>0===t?0:Math.pow(2,10*(t-1)),easeOutExpo:t=>1===t?1:1-Math.pow(2,-10*t),easeInOutExpo:t=>vs(t)?t:t<.5?.5*Math.pow(2,10*(2*t-1)):.5*(2-Math.pow(2,-10*(2*t-1))),easeInCirc:t=>t>=1?t:-(Math.sqrt(1-t*t)-1),easeOutCirc:t=>Math.sqrt(1-(t-=1)*t),easeInOutCirc:t=>(t/=.5)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1),easeInElastic:t=>vs(t)?t:ys(t,.075,.3),easeOutElastic:t=>vs(t)?t:xs(t,.075,.3),easeInOutElastic(t){const e=.1125,s=.45;return vs(t)?t:t<.5?.5*ys(2*t,e,s):.5+.5*xs(2*t-1,e,s)},easeInBack(t){const e=1.70158;return t*t*((e+1)*t-e)},easeOutBack(t){const e=1.70158;return(t-=1)*t*((e+1)*t+e)+1},easeInOutBack(t){let e=1.70158;return(t/=.5)<1?t*t*((1+(e*=1.525))*t-e)*.5:.5*((t-=2)*t*((1+(e*=1.525))*t+e)+2)},easeInBounce:t=>1-ws.easeOutBounce(1-t),easeOutBounce(t){const e=7.5625,s=2.75;return t<1/s?e*t*t:t<2/s?e*(t-=1.5/s)*t+.75:t<2.5/s?e*(t-=2.25/s)*t+.9375:e*(t-=2.625/s)*t+.984375},easeInOutBounce:t=>t<.5?.5*ws.easeInBounce(2*t):.5*ws.easeOutBounce(2*t-1)+.5};function _s(t){if(t&&"object"===typeof t){const e=t.toString();return"[object CanvasPattern]"===e||"[object CanvasGradient]"===e}return!1}function Ss(t){return _s(t)?t:new ee(t)}function Cs(t){return _s(t)?t:new ee(t).saturate(.5).darken(.1).hexString()}const ks=["x","y","borderWidth","radius","tension"],As=["color","borderColor","backgroundColor"];function Ts(t){t.set("animation",{delay:void 0,duration:1e3,easing:"easeOutQuart",fn:void 0,from:void 0,loop:void 0,to:void 0,type:void 0}),t.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:t=>"onProgress"!==t&&"onComplete"!==t&&"fn"!==t}),t.set("animations",{colors:{type:"color",properties:As},numbers:{type:"number",properties:ks}}),t.describe("animations",{_fallback:"animation"}),t.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=>0|t}}}})}function Ps(t){t.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}})}const Rs=new Map;function Ds(t,e){e=e||{};const s=t+JSON.stringify(e);let i=Rs.get(s);return i||(i=new Intl.NumberFormat(t,e),Rs.set(s,i)),i}function Ls(t,e,s){return Ds(e,s).format(t)}const Fs={values(t){return oe(t)?t:""+t},numeric(t,e,s){if(0===t)return"0";const i=this.chart.options.locale;let a,o=t;if(s.length>1){const e=Math.max(Math.abs(s[0].value),Math.abs(s[s.length-1].value));(e<1e-4||e>1e15)&&(a="scientific"),o=Ms(t,s)}const n=Ue(Math.abs(o)),r=isNaN(n)?1:Math.max(Math.min(-1*Math.floor(n),20),0),l={notation:a,minimumFractionDigits:r,maximumFractionDigits:r};return Object.assign(l,this.options.ticks.format),Ls(t,i,l)},logarithmic(t,e,s){if(0===t)return"0";const i=s[e].significand||t/Math.pow(10,Math.floor(Ue(t)));return[1,2,3,5,10,15].includes(i)||e>.8*s.length?Fs.numeric.call(this,t,e,s):""}};function Ms(t,e){let s=e.length>3?e[2].value-e[1].value:e[1].value-e[0].value;return Math.abs(s)>=1&&t!==Math.floor(t)&&(s=t-Math.floor(t)),s}var $s={formatters:Fs};function Is(t){t.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,e)=>e.lineWidth,tickColor:(t,e)=>e.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:$s.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),t.route("scale.ticks","color","","color"),t.route("scale.grid","color","","borderColor"),t.route("scale.border","color","","borderColor"),t.route("scale.title","color","","color"),t.describe("scale",{_fallback:!1,_scriptable:t=>!t.startsWith("before")&&!t.startsWith("after")&&"callback"!==t&&"parser"!==t,_indexable:t=>"borderDash"!==t&&"tickBorderDash"!==t&&"dash"!==t}),t.describe("scales",{_fallback:"scale"}),t.describe("scale.ticks",{_scriptable:t=>"backdropPadding"!==t&&"callback"!==t,_indexable:t=>"backdropPadding"!==t})}const Ns=Object.create(null),Us=Object.create(null);function Os(t,e){if(!e)return t;const s=e.split(".");for(let i=0,a=s.length;it.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=(t,e)=>Cs(e.backgroundColor),this.hoverBorderColor=(t,e)=>Cs(e.borderColor),this.hoverColor=(t,e)=>Cs(e.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(e)}set(t,e){return Es(this,t,e)}get(t){return Os(this,t)}describe(t,e){return Es(Us,t,e)}override(t,e){return Es(Ns,t,e)}route(t,e,s,i){const a=Os(this,t),o=Os(this,s),n="_"+e;Object.defineProperties(a,{[n]:{value:a[e],writable:!0},[e]:{enumerable:!0,get(){const t=this[n],e=o[i];return ne(t)?Object.assign({},e,t):ce(t,e)},set(t){this[n]=t}}})}apply(t){t.forEach((t=>t(this)))}}var zs=new Bs({_scriptable:t=>!t.startsWith("on"),_indexable:t=>"events"!==t,hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}},[Ts,Ps,Is]);function Vs(t){return!t||ae(t.size)||ae(t.family)?null:(t.style?t.style+" ":"")+(t.weight?t.weight+" ":"")+t.size+"px "+t.family}function Hs(t,e,s,i,a){let o=e[a];return o||(o=e[a]=t.measureText(a).width,s.push(a)),o>i&&(i=o),i}function js(t,e,s){const i=t.currentDevicePixelRatio,a=0!==s?Math.max(s/2,.5):0;return Math.round((e-a)*i)/i+a}function qs(t,e){(e||t)&&(e=e||t.getContext("2d"),e.save(),e.resetTransform(),e.clearRect(0,0,t.width,t.height),e.restore())}function Gs(t,e,s,i){Ws(t,e,s,i,null)}function Ws(t,e,s,i,a){let o,n,r,l,c,p,d,h;const u=e.pointStyle,m=e.rotation,f=e.radius;let g=(m||0)*Me;if(u&&"object"===typeof u&&(o=u.toString(),"[object HTMLImageElement]"===o||"[object HTMLCanvasElement]"===o))return t.save(),t.translate(s,i),t.rotate(g),t.drawImage(u,-u.width/2,-u.height/2,u.width,u.height),void t.restore();if(!(isNaN(f)||f<=0)){switch(t.beginPath(),u){default:a?t.ellipse(s,i,a/2,f,0,0,De):t.arc(s,i,f,0,De),t.closePath();break;case"triangle":p=a?a/2:f,t.moveTo(s+Math.sin(g)*p,i-Math.cos(g)*f),g+=Ne,t.lineTo(s+Math.sin(g)*p,i-Math.cos(g)*f),g+=Ne,t.lineTo(s+Math.sin(g)*p,i-Math.cos(g)*f),t.closePath();break;case"rectRounded":c=.516*f,l=f-c,n=Math.cos(g+Ie)*l,d=Math.cos(g+Ie)*(a?a/2-c:l),r=Math.sin(g+Ie)*l,h=Math.sin(g+Ie)*(a?a/2-c:l),t.arc(s-d,i-r,c,g-Re,g-$e),t.arc(s+h,i-n,c,g-$e,g),t.arc(s+d,i+r,c,g,g+$e),t.arc(s-h,i+n,c,g+$e,g+Re),t.closePath();break;case"rect":if(!m){l=Math.SQRT1_2*f,p=a?a/2:l,t.rect(s-p,i-l,2*p,2*l);break}g+=Ie;case"rectRot":d=Math.cos(g)*(a?a/2:f),n=Math.cos(g)*f,r=Math.sin(g)*f,h=Math.sin(g)*(a?a/2:f),t.moveTo(s-d,i-r),t.lineTo(s+h,i-n),t.lineTo(s+d,i+r),t.lineTo(s-h,i+n),t.closePath();break;case"crossRot":g+=Ie;case"cross":d=Math.cos(g)*(a?a/2:f),n=Math.cos(g)*f,r=Math.sin(g)*f,h=Math.sin(g)*(a?a/2:f),t.moveTo(s-d,i-r),t.lineTo(s+d,i+r),t.moveTo(s+h,i-n),t.lineTo(s-h,i+n);break;case"star":d=Math.cos(g)*(a?a/2:f),n=Math.cos(g)*f,r=Math.sin(g)*f,h=Math.sin(g)*(a?a/2:f),t.moveTo(s-d,i-r),t.lineTo(s+d,i+r),t.moveTo(s+h,i-n),t.lineTo(s-h,i+n),g+=Ie,d=Math.cos(g)*(a?a/2:f),n=Math.cos(g)*f,r=Math.sin(g)*f,h=Math.sin(g)*(a?a/2:f),t.moveTo(s-d,i-r),t.lineTo(s+d,i+r),t.moveTo(s+h,i-n),t.lineTo(s-h,i+n);break;case"line":n=a?a/2:Math.cos(g)*f,r=Math.sin(g)*f,t.moveTo(s-n,i-r),t.lineTo(s+n,i+r);break;case"dash":t.moveTo(s,i),t.lineTo(s+Math.cos(g)*(a?a/2:f),i+Math.sin(g)*f);break;case!1:t.closePath();break}t.fill(),e.borderWidth>0&&t.stroke()}}function Ks(t,e,s){return s=s||.5,!e||t&&t.x>e.left-s&&t.xe.top-s&&t.y0&&""!==o.strokeColor;let l,c;for(t.save(),t.font=a.string,Qs(t,o),l=0;l+t||0;function li(t,e){const s={},i=ne(e),a=i?Object.keys(e):e,o=ne(t)?i?s=>ce(t[s],t[e[s]]):e=>t[e]:()=>t;for(const n of a)s[n]=ri(o(n));return s}function ci(t){return li(t,{top:"y",right:"x",bottom:"y",left:"x"})}function pi(t){return li(t,["topLeft","topRight","bottomLeft","bottomRight"])}function di(t){const e=ci(t);return e.width=e.left+e.right,e.height=e.top+e.bottom,e}function hi(t,e){t=t||{},e=e||zs.font;let s=ce(t.size,e.size);"string"===typeof s&&(s=parseInt(s,10));let i=ce(t.style,e.style);i&&!(""+i).match(oi)&&(console.warn('Invalid font style specified: "'+i+'"'),i=void 0);const a={family:ce(t.family,e.family),lineHeight:ni(ce(t.lineHeight,e.lineHeight),s),size:s,style:i,weight:ce(t.weight,e.weight),string:""};return a.string=Vs(a),a}function ui(t,e,s,i){let a,o,n,r=!0;for(a=0,o=t.length;as&&0===t?0:t+e;return{min:n(i,-Math.abs(o)),max:n(a,o)}}function fi(t,e){return Object.assign(Object.create(t),e)}function gi(t,e=[""],s,i,a=()=>t[0]){const o=s||t;"undefined"===typeof i&&(i=Fi("_fallback",t));const n={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:t,_rootScopes:o,_fallback:i,_getTarget:a,override:s=>gi([s,...t],e,o,i)};return new Proxy(n,{deleteProperty(e,s){return delete e[s],delete e._keys,delete t[0][s],!0},get(s,i){return wi(s,i,(()=>Li(i,e,t,s)))},getOwnPropertyDescriptor(t,e){return Reflect.getOwnPropertyDescriptor(t._scopes[0],e)},getPrototypeOf(){return Reflect.getPrototypeOf(t[0])},has(t,e){return Mi(t).includes(e)},ownKeys(t){return Mi(t)},set(t,e,s){const i=t._storage||(t._storage=a());return t[e]=i[e]=s,delete t._keys,!0}})}function bi(t,e,s,i){const a={_cacheable:!1,_proxy:t,_context:e,_subProxy:s,_stack:new Set,_descriptors:vi(t,i),setContext:e=>bi(t,e,s,i),override:a=>bi(t.override(a),e,s,i)};return new Proxy(a,{deleteProperty(e,s){return delete e[s],delete t[s],!0},get(t,e,s){return wi(t,e,(()=>_i(t,e,s)))},getOwnPropertyDescriptor(e,s){return e._descriptors.allKeys?Reflect.has(t,s)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(t,s)},getPrototypeOf(){return Reflect.getPrototypeOf(t)},has(e,s){return Reflect.has(t,s)},ownKeys(){return Reflect.ownKeys(t)},set(e,s,i){return t[s]=i,delete e[s],!0}})}function vi(t,e={scriptable:!0,indexable:!0}){const{_scriptable:s=e.scriptable,_indexable:i=e.indexable,_allKeys:a=e.allKeys}=t;return{allKeys:a,scriptable:s,indexable:i,isScriptable:Ae(s)?s:()=>s,isIndexable:Ae(i)?i:()=>i}}const yi=(t,e)=>t?t+Ce(e):e,xi=(t,e)=>ne(e)&&"adapters"!==t&&(null===Object.getPrototypeOf(e)||e.constructor===Object);function wi(t,e,s){if(Object.prototype.hasOwnProperty.call(t,e)||"constructor"===e)return t[e];const i=s();return t[e]=i,i}function _i(t,e,s){const{_proxy:i,_context:a,_subProxy:o,_descriptors:n}=t;let r=i[e];return Ae(r)&&n.isScriptable(e)&&(r=Si(e,r,t,s)),oe(r)&&r.length&&(r=Ci(e,r,t,n.isIndexable)),xi(e,r)&&(r=bi(r,a,o&&o[e],n)),r}function Si(t,e,s,i){const{_proxy:a,_context:o,_subProxy:n,_stack:r}=s;if(r.has(t))throw new Error("Recursion detected: "+Array.from(r).join("->")+"->"+t);r.add(t);let l=e(o,n||i);return r.delete(t),xi(t,l)&&(l=Pi(a._scopes,a,t,l)),l}function Ci(t,e,s,i){const{_proxy:a,_context:o,_subProxy:n,_descriptors:r}=s;if("undefined"!==typeof o.index&&i(t))return e[o.index%e.length];if(ne(e[0])){const s=e,i=a._scopes.filter((t=>t!==s));e=[];for(const l of s){const s=Pi(i,a,t,l);e.push(bi(s,o,n&&n[t],r))}}return e}function ki(t,e,s){return Ae(t)?t(e,s):t}const Ai=(t,e)=>!0===t?e:"string"===typeof t?Se(e,t):void 0;function Ti(t,e,s,i,a){for(const o of e){const e=Ai(s,o);if(e){t.add(e);const o=ki(e._fallback,s,a);if("undefined"!==typeof o&&o!==s&&o!==i)return o}else if(!1===e&&"undefined"!==typeof i&&s!==i)return null}return!1}function Pi(t,e,s,i){const a=e._rootScopes,o=ki(e._fallback,s,i),n=[...t,...a],r=new Set;r.add(i);let l=Ri(r,n,s,o||s,i);return null!==l&&(("undefined"===typeof o||o===s||(l=Ri(r,n,o,l,i),null!==l))&&gi(Array.from(r),[""],a,o,(()=>Di(e,s,i))))}function Ri(t,e,s,i,a){while(s)s=Ti(t,e,s,i,a);return s}function Di(t,e,s){const i=t._getTarget();e in i||(i[e]={});const a=i[e];return oe(a)&&ne(s)?s:a||{}}function Li(t,e,s,i){let a;for(const o of e)if(a=Fi(yi(o,t),s),"undefined"!==typeof a)return xi(t,a)?Pi(s,i,t,a):a}function Fi(t,e){for(const s of e){if(!s)continue;const e=s[t];if("undefined"!==typeof e)return e}}function Mi(t){let e=t._keys;return e||(e=t._keys=$i(t._scopes)),e}function $i(t){const e=new Set;for(const s of t)for(const t of Object.keys(s).filter((t=>!t.startsWith("_"))))e.add(t);return Array.from(e)}const Ii=Number.EPSILON||1e-14,Ni=(t,e)=>e"x"===t?"y":"x";function Oi(t,e,s,i){const a=t.skip?e:t,o=e,n=s.skip?e:s,r=Xe(o,a),l=Xe(n,o);let c=r/(r+l),p=l/(r+l);c=isNaN(c)?0:c,p=isNaN(p)?0:p;const d=i*c,h=i*p;return{previous:{x:o.x-d*(n.x-a.x),y:o.y-d*(n.y-a.y)},next:{x:o.x+h*(n.x-a.x),y:o.y+h*(n.y-a.y)}}}function Ei(t,e,s){const i=t.length;let a,o,n,r,l,c=Ni(t,0);for(let p=0;p!t.skip))),"monotone"===e.cubicInterpolationMode)zi(t,a);else{let s=i?t[t.length-1]:t[0];for(o=0,n=t.length;ot.ownerDocument.defaultView.getComputedStyle(t,null);function Xi(t,e){return Ki(t).getPropertyValue(e)}const Yi=["top","right","bottom","left"];function Zi(t,e,s){const i={};s=s?"-"+s:"";for(let a=0;a<4;a++){const o=Yi[a];i[o]=parseFloat(t[e+"-"+o+s])||0}return i.width=i.left+i.right,i.height=i.top+i.bottom,i}const Ji=(t,e,s)=>(t>0||e>0)&&(!s||!s.shadowRoot);function Qi(t,e){const s=t.touches,i=s&&s.length?s[0]:t,{offsetX:a,offsetY:o}=i;let n,r,l=!1;if(Ji(a,o,t.target))n=a,r=o;else{const t=e.getBoundingClientRect();n=i.clientX-t.left,r=i.clientY-t.top,l=!0}return{x:n,y:r,box:l}}function ta(t,e){if("native"in t)return t;const{canvas:s,currentDevicePixelRatio:i}=e,a=Ki(s),o="border-box"===a.boxSizing,n=Zi(a,"padding"),r=Zi(a,"border","width"),{x:l,y:c,box:p}=Qi(t,s),d=n.left+(p&&r.left),h=n.top+(p&&r.top);let{width:u,height:m}=e;return o&&(u-=n.width+r.width,m-=n.height+r.height),{x:Math.round((l-d)/u*s.width/i),y:Math.round((c-h)/m*s.height/i)}}function ea(t,e,s){let i,a;if(void 0===e||void 0===s){const o=t&&Gi(t);if(o){const t=o.getBoundingClientRect(),n=Ki(o),r=Zi(n,"border","width"),l=Zi(n,"padding");e=t.width-l.width-r.width,s=t.height-l.height-r.height,i=Wi(n.maxWidth,o,"clientWidth"),a=Wi(n.maxHeight,o,"clientHeight")}else e=t.clientWidth,s=t.clientHeight}return{width:e,height:s,maxWidth:i||Fe,maxHeight:a||Fe}}const sa=t=>Math.round(10*t)/10;function ia(t,e,s,i){const a=Ki(t),o=Zi(a,"margin"),n=Wi(a.maxWidth,t,"clientWidth")||Fe,r=Wi(a.maxHeight,t,"clientHeight")||Fe,l=ea(t,e,s);let{width:c,height:p}=l;if("content-box"===a.boxSizing){const t=Zi(a,"border","width"),e=Zi(a,"padding");c-=e.width+t.width,p-=e.height+t.height}c=Math.max(0,c-o.width),p=Math.max(0,i?c/i:p-o.height),c=sa(Math.min(c,n,l.maxWidth)),p=sa(Math.min(p,r,l.maxHeight)),c&&!p&&(p=sa(c/2));const d=void 0!==e||void 0!==s;return d&&i&&l.height&&p>l.height&&(p=l.height,c=sa(Math.floor(p*i))),{width:c,height:p}}function aa(t,e,s){const i=e||1,a=Math.floor(t.height*i),o=Math.floor(t.width*i);t.height=Math.floor(t.height),t.width=Math.floor(t.width);const n=t.canvas;return n.style&&(s||!n.style.height&&!n.style.width)&&(n.style.height=`${t.height}px`,n.style.width=`${t.width}px`),(t.currentDevicePixelRatio!==i||n.height!==a||n.width!==o)&&(t.currentDevicePixelRatio=i,n.height=a,n.width=o,t.ctx.setTransform(i,0,0,i,0,0),!0)}const oa=function(){let t=!1;try{const e={get passive(){return t=!0,!1}};qi()&&(window.addEventListener("test",null,e),window.removeEventListener("test",null,e))}catch(e){}return t}();function na(t,e){const s=Xi(t,e),i=s&&s.match(/^(\d+)(\.\d+)?px$/);return i?+i[1]:void 0}function ra(t,e,s,i){return{x:t.x+s*(e.x-t.x),y:t.y+s*(e.y-t.y)}}function la(t,e,s,i){return{x:t.x+s*(e.x-t.x),y:"middle"===i?s<.5?t.y:e.y:"after"===i?s<1?t.y:e.y:s>0?e.y:t.y}}function ca(t,e,s,i){const a={x:t.cp2x,y:t.cp2y},o={x:e.cp1x,y:e.cp1y},n=ra(t,a,s),r=ra(a,o,s),l=ra(o,e,s),c=ra(n,r,s),p=ra(r,l,s);return ra(c,p,s)}const pa=function(t,e){return{x(s){return t+t+e-s},setWidth(t){e=t},textAlign(t){return"center"===t?t:"right"===t?"left":"right"},xPlus(t,e){return t-e},leftForLtr(t,e){return t-e}}},da=function(){return{x(t){return t},setWidth(t){},textAlign(t){return t},xPlus(t,e){return t+e},leftForLtr(t,e){return t}}};function ha(t,e,s){return t?pa(e,s):da()}function ua(t,e){let s,i;"ltr"!==e&&"rtl"!==e||(s=t.canvas.style,i=[s.getPropertyValue("direction"),s.getPropertyPriority("direction")],s.setProperty("direction",e,"important"),t.prevTextDirection=i)}function ma(t,e){void 0!==e&&(delete t.prevTextDirection,t.canvas.style.setProperty("direction",e[0],e[1]))}function fa(t){return"angle"===t?{between:Je,compare:Ye,normalize:Ze}:{between:es,compare:(t,e)=>t-e,normalize:t=>t}}function ga({start:t,end:e,count:s,loop:i,style:a}){return{start:t%s,end:e%s,loop:i&&(e-t+1)%s===0,style:a}}function ba(t,e,s){const{property:i,start:a,end:o}=s,{between:n,normalize:r}=fa(i),l=e.length;let c,p,{start:d,end:h,loop:u}=t;if(u){for(d+=l,h+=l,c=0,p=l;cl(a,b,f)&&0!==r(a,b),w=()=>0===r(o,f)||l(o,b,f),_=()=>v||x(),S=()=>!v||w();for(let C=p,k=p;C<=d;++C)g=e[C%n],g.skip||(f=c(g[i]),f!==b&&(v=l(f,a,o),null===y&&_()&&(y=0===r(f,a)?C:k),null!==y&&S()&&(m.push(ga({start:y,end:C,loop:h,count:n,style:u})),y=null),k=C,b=f));return null!==y&&m.push(ga({start:y,end:d,loop:h,count:n,style:u})),m}function ya(t,e){const s=[],i=t.segments;for(let a=0;aa&&t[o%e].skip)o--;return o%=e,{start:a,end:o}}function wa(t,e,s,i){const a=t.length,o=[];let n,r=e,l=t[e];for(n=e+1;n<=s;++n){const s=t[n%a];s.skip||s.stop?l.skip||(i=!1,o.push({start:e%a,end:(n-1)%a,loop:i}),e=r=s.stop?n:null):(r=n,l.skip&&(e=n)),l=s}return null!==r&&o.push({start:e%a,end:r%a,loop:i}),o}function _a(t,e){const s=t.points,i=t.options.spanGaps,a=s.length;if(!a)return[];const o=!!t._loop,{start:n,end:r}=xa(s,a,o,i);if(!0===i)return Sa(t,[{start:n,end:r,loop:o}],s,e);const l=ri({chart:t,initial:e.initial,numSteps:o,currentStep:Math.min(s-e.start,o)})))}_refresh(){this._request||(this._running=!0,this._request=ps.call(window,(()=>{this._update(),this._request=null,this._running&&this._refresh()})))}_update(t=Date.now()){let e=0;this._charts.forEach(((s,i)=>{if(!s.running||!s.items.length)return;const a=s.items;let o,n=a.length-1,r=!1;for(;n>=0;--n)o=a[n],o._active?(o._total>s.duration&&(s.duration=o._total),o.tick(t),r=!0):(a[n]=a[a.length-1],a.pop());r&&(i.draw(),this._notify(i,s,t,"progress")),a.length||(s.running=!1,this._notify(i,s,t,"complete"),s.initial=!1),e+=a.length})),this._lastDate=t,0===e&&(this._running=!1)}_getAnims(t){const e=this._charts;let s=e.get(t);return s||(s={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},e.set(t,s)),s}listen(t,e,s){this._getAnims(t).listeners[e].push(s)}add(t,e){e&&e.length&&this._getAnims(t).items.push(...e)}has(t){return this._getAnims(t).items.length>0}start(t){const e=this._charts.get(t);e&&(e.running=!0,e.start=Date.now(),e.duration=e.items.reduce(((t,e)=>Math.max(t,e._duration)),0),this._refresh())}running(t){if(!this._running)return!1;const e=this._charts.get(t);return!!(e&&e.running&&e.items.length)}stop(t){const e=this._charts.get(t);if(!e||!e.items.length)return;const s=e.items;let i=s.length-1;for(;i>=0;--i)s[i].cancel();e.items=[],this._notify(t,e,Date.now(),"complete")}remove(t){return this._charts.delete(t)}}var Pa=new Ta;const Ra="transparent",Da={boolean(t,e,s){return s>.5?e:t},color(t,e,s){const i=Ss(t||Ra),a=i.valid&&Ss(e||Ra);return a&&a.valid?a.mix(i,s).hexString():e},number(t,e,s){return t+(e-t)*s}};class La{constructor(t,e,s,i){const a=e[s];i=ui([t.to,i,a,t.from]);const o=ui([t.from,a,i]);this._active=!0,this._fn=t.fn||Da[t.type||typeof o],this._easing=ws[t.easing]||ws.linear,this._start=Math.floor(Date.now()+(t.delay||0)),this._duration=this._total=Math.floor(t.duration),this._loop=!!t.loop,this._target=e,this._prop=s,this._from=o,this._to=i,this._promises=void 0}active(){return this._active}update(t,e,s){if(this._active){this._notify(!1);const i=this._target[this._prop],a=s-this._start,o=this._duration-a;this._start=s,this._duration=Math.floor(Math.max(o,t.duration)),this._total+=a,this._loop=!!t.loop,this._to=ui([t.to,e,i,t.from]),this._from=ui([t.from,i,e])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(t){const e=t-this._start,s=this._duration,i=this._prop,a=this._from,o=this._loop,n=this._to;let r;if(this._active=a!==n&&(o||e1?2-r:r,r=this._easing(Math.min(1,Math.max(0,r))),this._target[i]=this._fn(a,n,r))}wait(){const t=this._promises||(this._promises=[]);return new Promise(((e,s)=>{t.push({res:e,rej:s})}))}_notify(t){const e=t?"res":"rej",s=this._promises||[];for(let i=0;i{const a=t[i];if(!ne(a))return;const o={};for(const t of e)o[t]=a[t];(oe(a.properties)&&a.properties||[i]).forEach((t=>{t!==i&&s.has(t)||s.set(t,o)}))}))}_animateOptions(t,e){const s=e.options,i=$a(t,s);if(!i)return[];const a=this._createAnimations(i,s);return s.$shared&&Ma(t.options.$animations,s).then((()=>{t.options=s}),(()=>{})),a}_createAnimations(t,e){const s=this._properties,i=[],a=t.$animations||(t.$animations={}),o=Object.keys(e),n=Date.now();let r;for(r=o.length-1;r>=0;--r){const l=o[r];if("$"===l.charAt(0))continue;if("options"===l){i.push(...this._animateOptions(t,e));continue}const c=e[l];let p=a[l];const d=s.get(l);if(p){if(d&&p.active()){p.update(d,c,n);continue}p.cancel()}d&&d.duration?(a[l]=p=new La(d,t,l,c),i.push(p)):t[l]=c}return i}update(t,e){if(0===this._properties.size)return void Object.assign(t,e);const s=this._createAnimations(t,e);return s.length?(Pa.add(this._chart,s),!0):void 0}}function Ma(t,e){const s=[],i=Object.keys(e);for(let a=0;a0||!s&&e<0)return a.index}return null}function Ga(t,e){const{chart:s,_cachedMeta:i}=t,a=s._stacks||(s._stacks={}),{iScale:o,vScale:n,index:r}=i,l=o.axis,c=n.axis,p=Va(o,n,i),d=e.length;let h;for(let u=0;us[t].axis===e)).shift()}function Ka(t,e){return fi(t,{active:!1,dataset:void 0,datasetIndex:e,index:e,mode:"default",type:"dataset"})}function Xa(t,e,s){return fi(t,{active:!1,dataIndex:e,parsed:void 0,raw:void 0,element:s,index:e,mode:"default",type:"data"})}function Ya(t,e){const s=t.controller.index,i=t.vScale&&t.vScale.axis;if(i){e=e||t._parsed;for(const t of e){const e=t._stacks;if(!e||void 0===e[i]||void 0===e[i][s])return;delete e[i][s],void 0!==e[i]._visualValues&&void 0!==e[i]._visualValues[s]&&delete e[i]._visualValues[s]}}}const Za=t=>"reset"===t||"none"===t,Ja=(t,e)=>e?t:Object.assign({},t),Qa=(t,e,s)=>t&&!e.hidden&&e._stacked&&{keys:Oa(s,!0),values:null};class to{static defaults={};static datasetElementType=null;static dataElementType=null;constructor(t,e){this.chart=t,this._ctx=t.ctx,this.index=e,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=za(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&&Ya(this._cachedMeta),this.index=t}linkScales(){const t=this.chart,e=this._cachedMeta,s=this.getDataset(),i=(t,e,s,i)=>"x"===t?e:"r"===t?i:s,a=e.xAxisID=ce(s.xAxisID,Wa(t,"x")),o=e.yAxisID=ce(s.yAxisID,Wa(t,"y")),n=e.rAxisID=ce(s.rAxisID,Wa(t,"r")),r=e.indexAxis,l=e.iAxisID=i(r,a,o,n),c=e.vAxisID=i(r,o,a,n);e.xScale=this.getScaleForId(a),e.yScale=this.getScaleForId(o),e.rScale=this.getScaleForId(n),e.iScale=this.getScaleForId(l),e.vScale=this.getScaleForId(c)}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 e=this._cachedMeta;return t===e.iScale?e.vScale:e.iScale}reset(){this._update("reset")}_destroy(){const t=this._cachedMeta;this._data&&ls(this._data,this),t._stacked&&Ya(t)}_dataCheck(){const t=this.getDataset(),e=t.data||(t.data=[]),s=this._data;if(ne(e)){const t=this._cachedMeta;this._data=Ba(e,t)}else if(s!==e){if(s){ls(s,this);const t=this._cachedMeta;Ya(t),t._parsed=[]}e&&Object.isExtensible(e)&&rs(e,this),this._syncList=[],this._data=e}}addElements(){const t=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(t.dataset=new this.datasetElementType)}buildOrUpdateElements(t){const e=this._cachedMeta,s=this.getDataset();let i=!1;this._dataCheck();const a=e._stacked;e._stacked=za(e.vScale,e),e.stack!==s.stack&&(i=!0,Ya(e),e.stack=s.stack),this._resyncElements(t),(i||a!==e._stacked)&&Ga(this,e._parsed)}configure(){const t=this.chart.config,e=t.datasetScopeKeys(this._type),s=t.getOptionScopes(this.getDataset(),e,!0);this.options=t.createResolver(s,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(t,e){const{_cachedMeta:s,_data:i}=this,{iScale:a,_stacked:o}=s,n=a.axis;let r,l,c,p=0===t&&e===i.length||s._sorted,d=t>0&&s._parsed[t-1];if(!1===this._parsing)s._parsed=i,s._sorted=!0,c=i;else{c=oe(i[t])?this.parseArrayData(s,i,t,e):ne(i[t])?this.parseObjectData(s,i,t,e):this.parsePrimitiveData(s,i,t,e);const a=()=>null===l[n]||d&&l[n]e||p=0;--d)if(!u()){this.updateRangeFromParsed(l,t,h,r);break}return l}getAllParsedValues(t){const e=this._cachedMeta._parsed,s=[];let i,a,o;for(i=0,a=e.length;i=0&&tthis.getContext(s,i,e),m=l.resolveNamedOptions(d,h,u,p);return m.$shared&&(m.$shared=r,a[o]=Object.freeze(Ja(m,r))),m}_resolveAnimations(t,e,s){const i=this.chart,a=this._cachedDataOpts,o=`animation-${e}`,n=a[o];if(n)return n;let r;if(!1!==i.options.animation){const i=this.chart.config,a=i.datasetAnimationScopeKeys(this._type,e),o=i.getOptionScopes(this.getDataset(),a);r=i.createResolver(o,this.getContext(t,s,e))}const l=new Fa(i,r&&r.animations);return r&&r._cacheable&&(a[o]=Object.freeze(l)),l}getSharedOptions(t){if(t.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},t))}includeOptions(t,e){return!e||Za(t)||this.chart._animationsDisabled}_getSharedOptions(t,e){const s=this.resolveDataElementOptions(t,e),i=this._sharedOptions,a=this.getSharedOptions(s),o=this.includeOptions(e,a)||a!==i;return this.updateSharedOptions(a,e,s),{sharedOptions:a,includeOptions:o}}updateElement(t,e,s,i){Za(i)?Object.assign(t,s):this._resolveAnimations(e,i).update(t,s)}updateSharedOptions(t,e,s){t&&!Za(e)&&this._resolveAnimations(void 0,e).update(t,s)}_setStyle(t,e,s,i){t.active=i;const a=this.getStyle(e,i);this._resolveAnimations(e,s,i).update(t,{options:!i&&this.getSharedOptions(a)||a})}removeHoverStyle(t,e,s){this._setStyle(t,s,"active",!1)}setHoverStyle(t,e,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 e=this._data,s=this._cachedMeta.data;for(const[n,r,l]of this._syncList)this[n](r,l);this._syncList=[];const i=s.length,a=e.length,o=Math.min(a,i);o&&this.parse(0,o),a>i?this._insertElements(i,a-i,t):a{for(t.length+=e,n=t.length-1;n>=o;n--)t[n]=t[n-e]};for(r(a),n=t;n0&&this.getParsed(e-1);for(let x=0;x=b){u.skip=!0;continue}const v=this.getParsed(x),w=ae(v[h]),_=u[d]=o.getPixelForValue(v[d],x),S=u[h]=a||w?n.getBasePixel():n.getPixelForValue(r?this.applyStack(n,v,r):v[h],x);u.skip=isNaN(_)||isNaN(S)||w,u.stop=x>0&&Math.abs(v[d]-y[d])>f,m&&(u.parsed=v,u.raw=l.data[x]),p&&(u.options=c||this.resolveDataElementOptions(x,s.active?"active":i)),g||this.updateElement(s,x,u,i),y=v}}getMaxOverflow(){const t=this._cachedMeta,e=t.dataset,s=e.options&&e.options.borderWidth||0,i=t.data||[];if(!i.length)return s;const a=i[0].size(this.resolveDataElementOptions(0)),o=i[i.length-1].size(this.resolveDataElementOptions(i.length-1));return Math.max(s,a,o)/2}draw(){const t=this._cachedMeta;t.dataset.updateControlPoints(this.chart.chartArea,t.iScale.axis),super.draw()}}function so(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}class io{static override(t){Object.assign(io.prototype,t)}options;constructor(t){this.options=t||{}}init(){}formats(){return so()}parse(){return so()}format(){return so()}add(){return so()}diff(){return so()}startOf(){return so()}endOf(){return so()}}var ao={_date:io};function oo(t,e,s,i){const{controller:a,data:o,_sorted:n}=t,r=a._cachedMeta.iScale;if(r&&e===r.axis&&"r"!==e&&n&&o.length){const t=r._reversePixels?as:is;if(!i)return t(o,e,s);if(a._sharedOptions){const i=o[0],a="function"===typeof i.getRange&&i.getRange(e);if(a){const i=t(o,e,s-a),n=t(o,e,s+a);return{lo:i.lo,hi:n.hi}}}}return{lo:0,hi:o.length-1}}function no(t,e,s,i,a){const o=t.getSortedVisibleDatasetMetas(),n=s[e];for(let r=0,l=o.length;r{t[n]&&t[n](e[s],a)&&(o.push({element:t,datasetIndex:i,index:l}),r=r||t.inRange(e.x,e.y,a))})),i&&!r?[]:o}var mo={evaluateInteractionItems:no,modes:{index(t,e,s,i){const a=ta(e,t),o=s.axis||"x",n=s.includeInvisible||!1,r=s.intersect?lo(t,a,o,i,n):ho(t,a,o,!1,i,n),l=[];return r.length?(t.getSortedVisibleDatasetMetas().forEach((t=>{const e=r[0].index,s=t.data[e];s&&!s.skip&&l.push({element:s,datasetIndex:t.index,index:e})})),l):[]},dataset(t,e,s,i){const a=ta(e,t),o=s.axis||"xy",n=s.includeInvisible||!1;let r=s.intersect?lo(t,a,o,i,n):ho(t,a,o,!1,i,n);if(r.length>0){const e=r[0].datasetIndex,s=t.getDatasetMeta(e).data;r=[];for(let t=0;tt.pos===e))}function bo(t,e){return t.filter((t=>-1===fo.indexOf(t.pos)&&t.box.axis===e))}function vo(t,e){return t.sort(((t,s)=>{const i=e?s:t,a=e?t:s;return i.weight===a.weight?i.index-a.index:i.weight-a.weight}))}function yo(t){const e=[];let s,i,a,o,n,r;for(s=0,i=(t||[]).length;st.box.fullSize)),!0),i=vo(go(e,"left"),!0),a=vo(go(e,"right")),o=vo(go(e,"top"),!0),n=vo(go(e,"bottom")),r=bo(e,"x"),l=bo(e,"y");return{fullSize:s,leftAndTop:i.concat(o),rightAndBottom:a.concat(l).concat(n).concat(r),chartArea:go(e,"chartArea"),vertical:i.concat(a).concat(l),horizontal:o.concat(n).concat(r)}}function So(t,e,s,i){return Math.max(t[s],e[s])+Math.max(t[i],e[i])}function Co(t,e){t.top=Math.max(t.top,e.top),t.left=Math.max(t.left,e.left),t.bottom=Math.max(t.bottom,e.bottom),t.right=Math.max(t.right,e.right)}function ko(t,e,s,i){const{pos:a,box:o}=s,n=t.maxPadding;if(!ne(a)){s.size&&(t[a]-=s.size);const e=i[s.stack]||{size:0,count:1};e.size=Math.max(e.size,s.horizontal?o.height:o.width),s.size=e.size/e.count,t[a]+=s.size}o.getPadding&&Co(n,o.getPadding());const r=Math.max(0,e.outerWidth-So(n,t,"left","right")),l=Math.max(0,e.outerHeight-So(n,t,"top","bottom")),c=r!==t.w,p=l!==t.h;return t.w=r,t.h=l,s.horizontal?{same:c,other:p}:{same:p,other:c}}function Ao(t){const e=t.maxPadding;function s(s){const i=Math.max(e[s]-t[s],0);return t[s]+=i,i}t.y+=s("top"),t.x+=s("left"),s("right"),s("bottom")}function To(t,e){const s=e.maxPadding;function i(t){const i={left:0,top:0,right:0,bottom:0};return t.forEach((t=>{i[t]=Math.max(e[t],s[t])})),i}return i(t?["left","right"]:["top","bottom"])}function Po(t,e,s,i){const a=[];let o,n,r,l,c,p;for(o=0,n=t.length,c=0;o{"function"===typeof t.beforeLayout&&t.beforeLayout()}));const p=l.reduce(((t,e)=>e.box.options&&!1===e.box.options.display?t:t+1),0)||1,d=Object.freeze({outerWidth:e,outerHeight:s,padding:a,availableWidth:o,availableHeight:n,vBoxMaxWidth:o/2/p,hBoxMaxHeight:n/2}),h=Object.assign({},a);Co(h,di(i));const u=Object.assign({maxPadding:h,w:o,h:n,x:a.left,y:a.top},a),m=wo(l.concat(c),d);Po(r.fullSize,u,d,m),Po(l,u,d,m),Po(c,u,d,m)&&Po(l,u,d,m),Ao(u),Do(r.leftAndTop,u,d,m),u.x+=u.w,u.y+=u.h,Do(r.rightAndBottom,u,d,m),t.chartArea={left:u.left,top:u.top,right:u.left+u.w,bottom:u.top+u.h,height:u.h,width:u.w},he(r.chartArea,(e=>{const s=e.box;Object.assign(s,t.chartArea),s.update(u.w,u.h,{left:0,top:0,right:0,bottom:0})}))}};class Fo{acquireContext(t,e){}releaseContext(t){return!1}addEventListener(t,e,s){}removeEventListener(t,e,s){}getDevicePixelRatio(){return 1}getMaximumSize(t,e,s,i){return e=Math.max(0,e||t.width),s=s||t.height,{width:e,height:Math.max(0,i?Math.floor(e/i):s)}}isAttached(t){return!0}updateConfig(t){}}class Mo extends Fo{acquireContext(t){return t&&t.getContext&&t.getContext("2d")||null}updateConfig(t){t.options.animation=!1}}const $o="$chartjs",Io={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},No=t=>null===t||""===t;function Uo(t,e){const s=t.style,i=t.getAttribute("height"),a=t.getAttribute("width");if(t[$o]={initial:{height:i,width:a,style:{display:s.display,height:s.height,width:s.width}}},s.display=s.display||"block",s.boxSizing=s.boxSizing||"border-box",No(a)){const e=na(t,"width");void 0!==e&&(t.width=e)}if(No(i))if(""===t.style.height)t.height=t.width/(e||2);else{const e=na(t,"height");void 0!==e&&(t.height=e)}return t}const Oo=!!oa&&{passive:!0};function Eo(t,e,s){t&&t.addEventListener(e,s,Oo)}function Bo(t,e,s){t&&t.canvas&&t.canvas.removeEventListener(e,s,Oo)}function zo(t,e){const s=Io[t.type]||t.type,{x:i,y:a}=ta(t,e);return{type:s,chart:e,native:t,x:void 0!==i?i:null,y:void 0!==a?a:null}}function Vo(t,e){for(const s of t)if(s===e||s.contains(e))return!0}function Ho(t,e,s){const i=t.canvas,a=new MutationObserver((t=>{let e=!1;for(const s of t)e=e||Vo(s.addedNodes,i),e=e&&!Vo(s.removedNodes,i);e&&s()}));return a.observe(document,{childList:!0,subtree:!0}),a}function jo(t,e,s){const i=t.canvas,a=new MutationObserver((t=>{let e=!1;for(const s of t)e=e||Vo(s.removedNodes,i),e=e&&!Vo(s.addedNodes,i);e&&s()}));return a.observe(document,{childList:!0,subtree:!0}),a}const qo=new Map;let Go=0;function Wo(){const t=window.devicePixelRatio;t!==Go&&(Go=t,qo.forEach(((e,s)=>{s.currentDevicePixelRatio!==t&&e()})))}function Ko(t,e){qo.size||window.addEventListener("resize",Wo),qo.set(t,e)}function Xo(t){qo.delete(t),qo.size||window.removeEventListener("resize",Wo)}function Yo(t,e,s){const i=t.canvas,a=i&&Gi(i);if(!a)return;const o=ds(((t,e)=>{const i=a.clientWidth;s(t,e),i{const e=t[0],s=e.contentRect.width,i=e.contentRect.height;0===s&&0===i||o(s,i)}));return n.observe(a),Ko(t,o),n}function Zo(t,e,s){s&&s.disconnect(),"resize"===e&&Xo(t)}function Jo(t,e,s){const i=t.canvas,a=ds((e=>{null!==t.ctx&&s(zo(e,t))}),t);return Eo(i,e,a),a}class Qo extends Fo{acquireContext(t,e){const s=t&&t.getContext&&t.getContext("2d");return s&&s.canvas===t?(Uo(t,e),s):null}releaseContext(t){const e=t.canvas;if(!e[$o])return!1;const s=e[$o].initial;["height","width"].forEach((t=>{const i=s[t];ae(i)?e.removeAttribute(t):e.setAttribute(t,i)}));const i=s.style||{};return Object.keys(i).forEach((t=>{e.style[t]=i[t]})),e.width=e.width,delete e[$o],!0}addEventListener(t,e,s){this.removeEventListener(t,e);const i=t.$proxies||(t.$proxies={}),a={attach:Ho,detach:jo,resize:Yo},o=a[e]||Jo;i[e]=o(t,e,s)}removeEventListener(t,e){const s=t.$proxies||(t.$proxies={}),i=s[e];if(!i)return;const a={attach:Zo,detach:Zo,resize:Zo},o=a[e]||Bo;o(t,e,i),s[e]=void 0}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(t,e,s,i){return ia(t,e,s,i)}isAttached(t){const e=t&&Gi(t);return!(!e||!e.isConnected)}}function tn(t){return!qi()||"undefined"!==typeof OffscreenCanvas&&t instanceof OffscreenCanvas?Mo:Qo}class en{static defaults={};static defaultRoutes=void 0;x;y;active=!1;options;$animations;tooltipPosition(t){const{x:e,y:s}=this.getProps(["x","y"],t);return{x:e,y:s}}hasValue(){return Ve(this.x)&&Ve(this.y)}getProps(t,e){const s=this.$animations;if(!e||!s)return this;const i={};return t.forEach((t=>{i[t]=s[t]&&s[t].active()?s[t]._to:this[t]})),i}}function sn(t,e){const s=t.options.ticks,i=an(t),a=Math.min(s.maxTicksLimit||i,i),o=s.major.enabled?nn(e):[],n=o.length,r=o[0],l=o[n-1],c=[];if(n>a)return rn(e,c,o,n/a),c;const p=on(o,e,a);if(n>0){let t,s;const i=n>1?Math.round((l-r)/(n-1)):null;for(ln(e,c,p,ae(i)?0:r-i,r),t=0,s=n-1;ta)return t}return Math.max(a,1)}function nn(t){const e=[];let s,i;for(s=0,i=t.length;s"left"===t?"right":"right"===t?"left":t,dn=(t,e,s)=>"top"===e||"left"===e?t[e]+s:t[e]-s,hn=(t,e)=>Math.min(e||t,t);function un(t,e){const s=[],i=t.length/e,a=t.length;let o=0;for(;on+r)))return c}function fn(t,e){he(t,(t=>{const s=t.gc,i=s.length/2;let a;if(i>e){for(a=0;ai?i:s,i=a&&s>i?s:i,{min:le(s,le(i,s)),max:le(i,le(s,i))}}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){const e=this._labelItems||(this._labelItems=this._computeLabelItems(t));return e}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){de(this.options.beforeUpdate,[this])}update(t,e,s){const{beginAtZero:i,grace:a,ticks:o}=this.options,n=o.sampleSize;this.beforeUpdate(),this.maxWidth=t,this.maxHeight=e,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=mi(this,a,i),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();const r=n=a||s<=1||!this.isHorizontal())return void(this.labelRotation=i);const c=this._getLabelSizes(),p=c.widest.width,d=c.highest.height,h=Qe(this.chart.width-p,0,this.maxWidth);o=t.offset?this.maxWidth/s:h/(s-1),p+6>o&&(o=h/(s-(t.offset?.5:1)),n=this.maxHeight-gn(t.grid)-e.padding-bn(t.title,this.chart.options.font),r=Math.sqrt(p*p+d*d),l=Ge(Math.min(Math.asin(Qe((c.highest.height+6)/o,-1,1)),Math.asin(Qe(n/r,-1,1))-Math.asin(Qe(d/r,-1,1)))),l=Math.max(i,Math.min(a,l))),this.labelRotation=l}afterCalculateLabelRotation(){de(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){de(this.options.beforeFit,[this])}fit(){const t={width:0,height:0},{chart:e,options:{ticks:s,title:i,grid:a}}=this,o=this._isVisible(),n=this.isHorizontal();if(o){const o=bn(i,e.options.font);if(n?(t.width=this.maxWidth,t.height=gn(a)+o):(t.height=this.maxHeight,t.width=gn(a)+o),s.display&&this.ticks.length){const{first:e,last:i,widest:a,highest:o}=this._getLabelSizes(),r=2*s.padding,l=qe(this.labelRotation),c=Math.cos(l),p=Math.sin(l);if(n){const e=s.mirror?0:p*a.width+c*o.height;t.height=Math.min(this.maxHeight,t.height+e+r)}else{const e=s.mirror?0:c*a.width+p*o.height;t.width=Math.min(this.maxWidth,t.width+e+r)}this._calculatePadding(e,i,p,c)}}this._handleMargins(),n?(this.width=this._length=e.width-this._margins.left-this._margins.right,this.height=t.height):(this.width=t.width,this.height=this._length=e.height-this._margins.top-this._margins.bottom)}_calculatePadding(t,e,s,i){const{ticks:{align:a,padding:o},position:n}=this.options,r=0!==this.labelRotation,l="top"!==n&&"x"===this.axis;if(this.isHorizontal()){const n=this.getPixelForTick(0)-this.left,c=this.right-this.getPixelForTick(this.ticks.length-1);let p=0,d=0;r?l?(p=i*t.width,d=s*e.height):(p=s*t.height,d=i*e.width):"start"===a?d=e.width:"end"===a?p=t.width:"inner"!==a&&(p=t.width/2,d=e.width/2),this.paddingLeft=Math.max((p-n+o)*this.width/(this.width-n),0),this.paddingRight=Math.max((d-c+o)*this.width/(this.width-c),0)}else{let s=e.height/2,i=t.height/2;"start"===a?(s=0,i=t.height):"end"===a&&(s=e.height,i=0),this.paddingTop=s+o,this.paddingBottom=i+o}}_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(){de(this.options.afterFit,[this])}isHorizontal(){const{axis:t,position:e}=this.options;return"top"===e||"bottom"===e||"x"===t}isFullSize(){return this.options.fullSize}_convertTicksToLabels(t){let e,s;for(this.beforeTickToLabelConversion(),this.generateTickLabels(t),e=0,s=t.length;e({width:o[t]||0,height:n[t]||0});return{first:S(0),last:S(e-1),widest:S(w),highest:S(_),widths:o,heights:n}}getLabelForValue(t){return t}getPixelForValue(t,e){return NaN}getValueForPixel(t){}getPixelForTick(t){const e=this.ticks;return t<0||t>e.length-1?null:this.getPixelForValue(e[t].value)}getPixelForDecimal(t){this._reversePixels&&(t=1-t);const e=this._startPixel+t*this._length;return ts(this._alignToPixels?js(this.chart,e,0):e)}getDecimalForPixel(t){const e=(t-this._startPixel)/this._length;return this._reversePixels?1-e:e}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){const{min:t,max:e}=this;return t<0&&e<0?e:t>0&&e>0?t:0}getContext(t){const e=this.ticks||[];if(t>=0&&tn*i?n/s:r/i:r*i0}_computeGridLineItems(t){const e=this.axis,s=this.chart,i=this.options,{grid:a,position:o,border:n}=i,r=a.offset,l=this.isHorizontal(),c=this.ticks,p=c.length+(r?1:0),d=gn(a),h=[],u=n.setContext(this.getContext()),m=u.display?u.width:0,f=m/2,g=function(t){return js(s,t,m)};let b,v,y,x,w,_,S,C,k,A,T,P;if("top"===o)b=g(this.bottom),_=this.bottom-d,C=b-f,A=g(t.top)+f,P=t.bottom;else if("bottom"===o)b=g(this.top),A=t.top,P=g(t.bottom)-f,_=b+f,C=this.top+d;else if("left"===o)b=g(this.right),w=this.right-d,S=b-f,k=g(t.left)+f,T=t.right;else if("right"===o)b=g(this.left),k=t.left,T=g(t.right)-f,w=b+f,S=this.left+d;else if("x"===e){if("center"===o)b=g((t.top+t.bottom)/2+.5);else if(ne(o)){const t=Object.keys(o)[0],e=o[t];b=g(this.chart.scales[t].getPixelForValue(e))}A=t.top,P=t.bottom,_=b+f,C=_+d}else if("y"===e){if("center"===o)b=g((t.left+t.right)/2);else if(ne(o)){const t=Object.keys(o)[0],e=o[t];b=g(this.chart.scales[t].getPixelForValue(e))}w=b-f,S=w-d,k=t.left,T=t.right}const R=ce(i.ticks.maxTicksLimit,p),D=Math.max(1,Math.ceil(p/R));for(v=0;v0&&(o-=i/2);break}d={left:o,top:a,width:i+e.width,height:s+e.height,color:t.backdropColor}}f.push({label:y,font:C,textOffset:T,options:{rotation:m,color:s,strokeColor:r,strokeWidth:c,textAlign:h,textBaseline:P,translation:[x,w],backdrop:d}})}return f}_getXAxisLabelAlignment(){const{position:t,ticks:e}=this.options,s=-qe(this.labelRotation);if(s)return"top"===t?"left":"right";let i="center";return"start"===e.align?i="left":"end"===e.align?i="right":"inner"===e.align&&(i="inner"),i}_getYAxisLabelAlignment(t){const{position:e,ticks:{crossAlign:s,mirror:i,padding:a}}=this.options,o=this._getLabelSizes(),n=t+a,r=o.widest.width;let l,c;return"left"===e?i?(c=this.right+a,"near"===s?l="left":"center"===s?(l="center",c+=r/2):(l="right",c+=r)):(c=this.right-n,"near"===s?l="right":"center"===s?(l="center",c-=r/2):(l="left",c=this.left)):"right"===e?i?(c=this.left+a,"near"===s?l="right":"center"===s?(l="center",c-=r/2):(l="left",c-=r)):(c=this.left+n,"near"===s?l="left":"center"===s?(l="center",c+=r/2):(l="right",c=this.right)):l="right",{textAlign:l,x:c}}_computeLabelArea(){if(this.options.ticks.mirror)return;const t=this.chart,e=this.options.position;return"left"===e||"right"===e?{top:0,left:this.left,bottom:t.height,right:this.right}:"top"===e||"bottom"===e?{top:this.top,left:0,bottom:this.bottom,right:t.width}:void 0}drawBackground(){const{ctx:t,options:{backgroundColor:e},left:s,top:i,width:a,height:o}=this;e&&(t.save(),t.fillStyle=e,t.fillRect(s,i,a,o),t.restore())}getLineWidthForValue(t){const e=this.options.grid;if(!this._isVisible()||!e.display)return 0;const s=this.ticks,i=s.findIndex((e=>e.value===t));if(i>=0){const t=e.setContext(this.getContext(i));return t.lineWidth}return 0}drawGrid(t){const e=this.options.grid,s=this.ctx,i=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(t));let a,o;const n=(t,e,i)=>{i.width&&i.color&&(s.save(),s.lineWidth=i.width,s.strokeStyle=i.color,s.setLineDash(i.borderDash||[]),s.lineDashOffset=i.borderDashOffset,s.beginPath(),s.moveTo(t.x,t.y),s.lineTo(e.x,e.y),s.stroke(),s.restore())};if(e.display)for(a=0,o=i.length;a{this.drawBackground(),this.drawGrid(t),this.drawTitle()}},{z:i,draw:()=>{this.drawBorder()}},{z:e,draw:t=>{this.drawLabels(t)}}]:[{z:e,draw:t=>{this.draw(t)}}]}getMatchingVisibleMetas(t){const e=this.chart.getSortedVisibleDatasetMetas(),s=this.axis+"AxisID",i=[];let a,o;for(a=0,o=e.length;a{const i=s.split("."),a=i.pop(),o=[t].concat(i).join("."),n=e[s].split("."),r=n.pop(),l=n.join(".");zs.route(o,a,l,r)}))}function An(t){return"id"in t&&"defaults"in t}class Tn{constructor(){this.controllers=new Sn(to,"datasets",!0),this.elements=new Sn(en,"elements"),this.plugins=new Sn(Object,"plugins"),this.scales=new Sn(_n,"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,e,s){[...e].forEach((e=>{const i=s||this._getRegistryForType(e);s||i.isForType(e)||i===this.plugins&&e.id?this._exec(t,i,e):he(e,(e=>{const i=s||this._getRegistryForType(e);this._exec(t,i,e)}))}))}_exec(t,e,s){const i=Ce(t);de(s["before"+i],[],s),e[t](s),de(s["after"+i],[],s)}_getRegistryForType(t){for(let e=0;et.filter((t=>!e.some((e=>t.plugin.id===e.plugin.id))));this._notify(i(e,s),t,"stop"),this._notify(i(s,e),t,"start")}}function Dn(t){const e={},s=[],i=Object.keys(Pn.plugins.items);for(let o=0;o1&&Un(t[0].toLowerCase());if(e)return e}throw new Error(`Cannot determine type of '${t}' axis. Please provide 'axis' or 'position' option.`)}function Bn(t,e,s){if(s[e+"AxisID"]===t)return{axis:e}}function zn(t,e){if(e.data&&e.data.datasets){const s=e.data.datasets.filter((e=>e.xAxisID===t||e.yAxisID===t));if(s.length)return Bn(t,"x",s[0])||Bn(t,"y",s[0])}return{}}function Vn(t,e){const s=Ns[t.type]||{scales:{}},i=e.scales||{},a=$n(t.type,e),o=Object.create(null);return Object.keys(i).forEach((e=>{const n=i[e];if(!ne(n))return console.error(`Invalid scale configuration for scale: ${e}`);if(n._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${e}`);const r=En(e,n,zn(e,t),zs.scales[n.type]),l=Nn(r,a),c=s.scales||{};o[e]=ve(Object.create(null),[{axis:r},n,c[r],c[l]])})),t.data.datasets.forEach((s=>{const a=s.type||t.type,n=s.indexAxis||$n(a,e),r=Ns[a]||{},l=r.scales||{};Object.keys(l).forEach((t=>{const e=In(t,n),a=s[e+"AxisID"]||e;o[a]=o[a]||Object.create(null),ve(o[a],[{axis:e},i[a],l[t]])}))})),Object.keys(o).forEach((t=>{const e=o[t];ve(e,[zs.scales[e.type],zs.scale])})),o}function Hn(t){const e=t.options||(t.options={});e.plugins=ce(e.plugins,{}),e.scales=Vn(t,e)}function jn(t){return t=t||{},t.datasets=t.datasets||[],t.labels=t.labels||[],t}function qn(t){return t=t||{},t.data=jn(t.data),Hn(t),t}const Gn=new Map,Wn=new Set;function Kn(t,e){let s=Gn.get(t);return s||(s=e(),Gn.set(t,s),Wn.add(s)),s}const Xn=(t,e,s)=>{const i=Se(e,s);void 0!==i&&t.add(i)};class Yn{constructor(t){this._config=qn(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=jn(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(),Hn(t)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(t){return Kn(t,(()=>[[`datasets.${t}`,""]]))}datasetAnimationScopeKeys(t,e){return Kn(`${t}.transition.${e}`,(()=>[[`datasets.${t}.transitions.${e}`,`transitions.${e}`],[`datasets.${t}`,""]]))}datasetElementScopeKeys(t,e){return Kn(`${t}-${e}`,(()=>[[`datasets.${t}.elements.${e}`,`datasets.${t}`,`elements.${e}`,""]]))}pluginScopeKeys(t){const e=t.id,s=this.type;return Kn(`${s}-plugin-${e}`,(()=>[[`plugins.${e}`,...t.additionalOptionScopes||[]]]))}_cachedScopes(t,e){const s=this._scopeCache;let i=s.get(t);return i&&!e||(i=new Map,s.set(t,i)),i}getOptionScopes(t,e,s){const{options:i,type:a}=this,o=this._cachedScopes(t,s),n=o.get(e);if(n)return n;const r=new Set;e.forEach((e=>{t&&(r.add(t),e.forEach((e=>Xn(r,t,e)))),e.forEach((t=>Xn(r,i,t))),e.forEach((t=>Xn(r,Ns[a]||{},t))),e.forEach((t=>Xn(r,zs,t))),e.forEach((t=>Xn(r,Us,t)))}));const l=Array.from(r);return 0===l.length&&l.push(Object.create(null)),Wn.has(e)&&o.set(e,l),l}chartOptionScopes(){const{options:t,type:e}=this;return[t,Ns[e]||{},zs.datasets[e]||{},{type:e},zs,Us]}resolveNamedOptions(t,e,s,i=[""]){const a={$shared:!0},{resolver:o,subPrefixes:n}=Zn(this._resolverCache,t,i);let r=o;if(Qn(o,e)){a.$shared=!1,s=Ae(s)?s():s;const e=this.createResolver(t,s,n);r=bi(o,s,e)}for(const l of e)a[l]=r[l];return a}createResolver(t,e,s=[""],i){const{resolver:a}=Zn(this._resolverCache,t,s);return ne(e)?bi(a,e,void 0,i):a}}function Zn(t,e,s){let i=t.get(e);i||(i=new Map,t.set(e,i));const a=s.join();let o=i.get(a);if(!o){const t=gi(e,s);o={resolver:t,subPrefixes:s.filter((t=>!t.toLowerCase().includes("hover")))},i.set(a,o)}return o}const Jn=t=>ne(t)&&Object.getOwnPropertyNames(t).some((e=>Ae(t[e])));function Qn(t,e){const{isScriptable:s,isIndexable:i}=vi(t);for(const a of e){const e=s(a),o=i(a),n=(o||e)&&t[a];if(e&&(Ae(n)||Jn(n))||o&&oe(n))return!0}return!1}var tr="4.4.4";const er=["top","bottom","left","right","chartArea"];function sr(t,e){return"top"===t||"bottom"===t||-1===er.indexOf(t)&&"x"===e}function ir(t,e){return function(s,i){return s[t]===i[t]?s[e]-i[e]:s[t]-i[t]}}function ar(t){const e=t.chart,s=e.options.animation;e.notifyPlugins("afterRender"),de(s&&s.onComplete,[t],e)}function or(t){const e=t.chart,s=e.options.animation;de(s&&s.onProgress,[t],e)}function nr(t){return qi()&&"string"===typeof t?t=document.getElementById(t):t&&t.length&&(t=t[0]),t&&t.canvas&&(t=t.canvas),t}const rr={},lr=t=>{const e=nr(t);return Object.values(rr).filter((t=>t.canvas===e)).pop()};function cr(t,e,s){const i=Object.keys(t);for(const a of i){const i=+a;if(i>=e){const o=t[a];delete t[a],(s>0||i>e)&&(t[i+s]=o)}}}function pr(t,e,s,i){return s&&"mouseout"!==t.type?i?e:t:null}function dr(t,e,s){return t.options.clip?t[s]:e[s]}function hr(t,e){const{xScale:s,yScale:i}=t;return s&&i?{left:dr(s,e,"left"),right:dr(s,e,"right"),top:dr(i,e,"top"),bottom:dr(i,e,"bottom")}:e}class ur{static defaults=zs;static instances=rr;static overrides=Ns;static registry=Pn;static version=tr;static getChart=lr;static register(...t){Pn.add(...t),mr()}static unregister(...t){Pn.remove(...t),mr()}constructor(t,e){const s=this.config=new Yn(e),i=nr(t),a=lr(i);if(a)throw new Error("Canvas is already in use. Chart with ID '"+a.id+"' must be destroyed before the canvas with ID '"+a.canvas.id+"' can be reused.");const o=s.createResolver(s.chartOptionScopes(),this.getContext());this.platform=new(s.platform||tn(i)),this.platform.updateConfig(s);const n=this.platform.acquireContext(i,o.aspectRatio),r=n&&n.canvas,l=r&&r.height,c=r&&r.width;this.id=ie(),this.ctx=n,this.canvas=r,this.width=c,this.height=l,this._options=o,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 Rn,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=hs((t=>this.update(t)),o.resizeDelay||0),this._dataChanges=[],rr[this.id]=this,n&&r?(Pa.listen(this,"complete",ar),Pa.listen(this,"progress",or),this._initialize(),this.attached&&this.update()):console.error("Failed to create chart: can't acquire context from the given item")}get aspectRatio(){const{options:{aspectRatio:t,maintainAspectRatio:e},width:s,height:i,_aspectRatio:a}=this;return ae(t)?e&&a?a: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 Pn}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():aa(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return qs(this.canvas,this.ctx),this}stop(){return Pa.stop(this),this}resize(t,e){Pa.running(this)?this._resizeBeforeDraw={width:t,height:e}:this._resize(t,e)}_resize(t,e){const s=this.options,i=this.canvas,a=s.maintainAspectRatio&&this.aspectRatio,o=this.platform.getMaximumSize(i,t,e,a),n=s.devicePixelRatio||this.platform.getDevicePixelRatio(),r=this.width?"resize":"attach";this.width=o.width,this.height=o.height,this._aspectRatio=this.aspectRatio,aa(this,n,!0)&&(this.notifyPlugins("resize",{size:o}),de(s.onResize,[this,o],this),this.attached&&this._doResize(r)&&this.render())}ensureScalesHaveIDs(){const t=this.options,e=t.scales||{};he(e,((t,e)=>{t.id=e}))}buildOrUpdateScales(){const t=this.options,e=t.scales,s=this.scales,i=Object.keys(s).reduce(((t,e)=>(t[e]=!1,t)),{});let a=[];e&&(a=a.concat(Object.keys(e).map((t=>{const s=e[t],i=En(t,s),a="r"===i,o="x"===i;return{options:s,dposition:a?"chartArea":o?"bottom":"left",dtype:a?"radialLinear":o?"category":"linear"}})))),he(a,(e=>{const a=e.options,o=a.id,n=En(o,a),r=ce(a.type,e.dtype);void 0!==a.position&&sr(a.position,n)===sr(e.dposition)||(a.position=e.dposition),i[o]=!0;let l=null;if(o in s&&s[o].type===r)l=s[o];else{const t=Pn.getScale(r);l=new t({id:o,type:r,ctx:this.ctx,chart:this}),s[l.id]=l}l.init(a,t)})),he(i,((t,e)=>{t||delete s[e]})),he(s,(t=>{Lo.configure(this,t,t.options),Lo.addBox(this,t)}))}_updateMetasets(){const t=this._metasets,e=this.data.datasets.length,s=t.length;if(t.sort(((t,e)=>t.index-e.index)),s>e){for(let t=e;te.length&&delete this._stacks,t.forEach(((t,s)=>{0===e.filter((e=>e===t._dataset)).length&&this._destroyDatasetMeta(s)}))}buildOrUpdateControllers(){const t=[],e=this.data.datasets;let s,i;for(this._removeUnreferencedMetasets(),s=0,i=e.length;s{this.getDatasetMeta(e).controller.reset()}),this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(t){const e=this.config;e.update();const s=this._options=e.createResolver(e.chartOptionScopes(),this.getContext()),i=this._animationsDisabled=!s.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),!1===this.notifyPlugins("beforeUpdate",{mode:t,cancelable:!0}))return;const a=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let o=0;for(let l=0,c=this.data.datasets.length;l{t.reset()})),this._updateDatasets(t),this.notifyPlugins("afterUpdate",{mode:t}),this._layers.sort(ir("z","_idx"));const{_active:n,_lastEvent:r}=this;r?this._eventHandler(r,!0):n.length&&this._updateHoverStyles(n,n,!0),this.render()}_updateScales(){he(this.scales,(t=>{Lo.removeBox(this,t)})),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){const t=this.options,e=new Set(Object.keys(this._listeners)),s=new Set(t.events);Te(e,s)&&!!this._responsiveListeners===t.responsive||(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){const{_hiddenIndices:t}=this,e=this._getUniformDataChanges()||[];for(const{method:s,start:i,count:a}of e){const e="_removeElements"===s?-a:a;cr(t,i,e)}}_getUniformDataChanges(){const t=this._dataChanges;if(!t||!t.length)return;this._dataChanges=[];const e=this.data.datasets.length,s=e=>new Set(t.filter((t=>t[0]===e)).map(((t,e)=>e+","+t.splice(1).join(",")))),i=s(0);for(let a=1;at.split(","))).map((t=>({method:t[1],start:+t[2],count:+t[3]})))}_updateLayout(t){if(!1===this.notifyPlugins("beforeLayout",{cancelable:!0}))return;Lo.update(this,this.width,this.height,t);const e=this.chartArea,s=e.width<=0||e.height<=0;this._layers=[],he(this.boxes,(t=>{s&&"chartArea"===t.position||(t.configure&&t.configure(),this._layers.push(...t._layers()))}),this),this._layers.forEach(((t,e)=>{t._idx=e})),this.notifyPlugins("afterLayout")}_updateDatasets(t){if(!1!==this.notifyPlugins("beforeDatasetsUpdate",{mode:t,cancelable:!0})){for(let t=0,e=this.data.datasets.length;t=0;--e)this._drawDataset(t[e]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(t){const e=this.ctx,s=t._clip,i=!s.disabled,a=hr(t,this.chartArea),o={meta:t,index:t.index,cancelable:!0};!1!==this.notifyPlugins("beforeDatasetDraw",o)&&(i&&Xs(e,{left:!1===s.left?0:a.left-s.left,right:!1===s.right?this.width:a.right+s.right,top:!1===s.top?0:a.top-s.top,bottom:!1===s.bottom?this.height:a.bottom+s.bottom}),t.controller.draw(),i&&Ys(e),o.cancelable=!1,this.notifyPlugins("afterDatasetDraw",o))}isPointInArea(t){return Ks(t,this.chartArea,this._minPadding)}getElementsAtEventForMode(t,e,s,i){const a=mo.modes[e];return"function"===typeof a?a(this,t,s,i):[]}getDatasetMeta(t){const e=this.data.datasets[t],s=this._metasets;let i=s.filter((t=>t&&t._dataset===e)).pop();return i||(i={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:e&&e.order||0,index:t,_dataset:e,_parsed:[],_sorted:!1},s.push(i)),i}getContext(){return this.$context||(this.$context=fi(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(t){const e=this.data.datasets[t];if(!e)return!1;const s=this.getDatasetMeta(t);return"boolean"===typeof s.hidden?!s.hidden:!e.hidden}setDatasetVisibility(t,e){const s=this.getDatasetMeta(t);s.hidden=!e}toggleDataVisibility(t){this._hiddenIndices[t]=!this._hiddenIndices[t]}getDataVisibility(t){return!this._hiddenIndices[t]}_updateVisibility(t,e,s){const i=s?"show":"hide",a=this.getDatasetMeta(t),o=a.controller._resolveAnimations(void 0,i);ke(e)?(a.data[e].hidden=!s,this.update()):(this.setDatasetVisibility(t,s),o.update(a,{visible:s}),this.update((e=>e.datasetIndex===t?i:void 0)))}hide(t,e){this._updateVisibility(t,e,!1)}show(t,e){this._updateVisibility(t,e,!0)}_destroyDatasetMeta(t){const e=this._metasets[t];e&&e.controller&&e.controller._destroy(),delete this._metasets[t]}_stop(){let t,e;for(this.stop(),Pa.remove(this),t=0,e=this.data.datasets.length;t{e.addEventListener(this,s,i),t[s]=i},i=(t,e,s)=>{t.offsetX=e,t.offsetY=s,this._eventHandler(t)};he(this.options.events,(t=>s(t,i)))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});const t=this._responsiveListeners,e=this.platform,s=(s,i)=>{e.addEventListener(this,s,i),t[s]=i},i=(s,i)=>{t[s]&&(e.removeEventListener(this,s,i),delete t[s])},a=(t,e)=>{this.canvas&&this.resize(t,e)};let o;const n=()=>{i("attach",n),this.attached=!0,this.resize(),s("resize",a),s("detach",o)};o=()=>{this.attached=!1,i("resize",a),this._stop(),this._resize(0,0),s("attach",n)},e.isAttached(this.canvas)?n():o()}unbindEvents(){he(this._listeners,((t,e)=>{this.platform.removeEventListener(this,e,t)})),this._listeners={},he(this._responsiveListeners,((t,e)=>{this.platform.removeEventListener(this,e,t)})),this._responsiveListeners=void 0}updateHoverStyle(t,e,s){const i=s?"set":"remove";let a,o,n,r;for("dataset"===e&&(a=this.getDatasetMeta(t[0].datasetIndex),a.controller["_"+i+"DatasetHoverStyle"]()),n=0,r=t.length;n{const s=this.getDatasetMeta(t);if(!s)throw new Error("No dataset found at index "+t);return{datasetIndex:t,element:s.data[e],index:e}})),i=!ue(s,e);i&&(this._active=s,this._lastEvent=null,this._updateHoverStyles(s,e))}notifyPlugins(t,e,s){return this._plugins.notify(this,t,e,s)}isPluginEnabled(t){return 1===this._plugins._cache.filter((e=>e.plugin.id===t)).length}_updateHoverStyles(t,e,s){const i=this.options.hover,a=(t,e)=>t.filter((t=>!e.some((e=>t.datasetIndex===e.datasetIndex&&t.index===e.index)))),o=a(e,t),n=s?t:a(t,e);o.length&&this.updateHoverStyle(o,i.mode,!1),n.length&&i.mode&&this.updateHoverStyle(n,i.mode,!0)}_eventHandler(t,e){const s={event:t,replay:e,cancelable:!0,inChartArea:this.isPointInArea(t)},i=e=>(e.options.events||this.options.events).includes(t.native.type);if(!1===this.notifyPlugins("beforeEvent",s,i))return;const a=this._handleEvent(t,e,s.inChartArea);return s.cancelable=!1,this.notifyPlugins("afterEvent",s,i),(a||s.changed)&&this.render(),this}_handleEvent(t,e,s){const{_active:i=[],options:a}=this,o=e,n=this._getActiveElements(t,i,s,o),r=Pe(t),l=pr(t,this._lastEvent,s,r);s&&(this._lastEvent=null,de(a.onHover,[t,n,this],this),r&&de(a.onClick,[t,n,this],this));const c=!ue(n,i);return(c||e)&&(this._active=n,this._updateHoverStyles(n,i,e)),this._lastEvent=l,c}_getActiveElements(t,e,s,i){if("mouseout"===t.type)return[];if(!s)return e;const a=this.options.hover;return this.getElementsAtEventForMode(t,a.mode,a,i)}}function mr(){return he(ur.instances,(t=>t._plugins.invalidate()))}function fr(t,e,s=e){t.lineCap=ce(s.borderCapStyle,e.borderCapStyle),t.setLineDash(ce(s.borderDash,e.borderDash)),t.lineDashOffset=ce(s.borderDashOffset,e.borderDashOffset),t.lineJoin=ce(s.borderJoinStyle,e.borderJoinStyle),t.lineWidth=ce(s.borderWidth,e.borderWidth),t.strokeStyle=ce(s.borderColor,e.borderColor)}function gr(t,e,s){t.lineTo(s.x,s.y)}function br(t){return t.stepped?Zs:t.tension||"monotone"===t.cubicInterpolationMode?Js:gr}function vr(t,e,s={}){const i=t.length,{start:a=0,end:o=i-1}=s,{start:n,end:r}=e,l=Math.max(a,n),c=Math.min(o,r),p=ar&&o>r;return{count:i,start:l,loop:e.loop,ilen:c(n+(c?r-t:t))%o,y=()=>{u!==m&&(t.lineTo(g,m),t.lineTo(g,u),t.lineTo(g,f))};for(l&&(d=a[v(0)],t.moveTo(d.x,d.y)),p=0;p<=r;++p){if(d=a[v(p)],d.skip)continue;const e=d.x,s=d.y,i=0|e;i===h?(sm&&(m=s),g=(b*g+e)/++b):(y(),t.lineTo(e,s),h=i,b=0,u=m=s),f=s}y()}function wr(t){const e=t.options,s=e.borderDash&&e.borderDash.length,i=!t._decimated&&!t._loop&&!e.tension&&"monotone"!==e.cubicInterpolationMode&&!e.stepped&&!s;return i?xr:yr}function _r(t){return t.stepped?la:t.tension||"monotone"===t.cubicInterpolationMode?ca:ra}function Sr(t,e,s,i){let a=e._path;a||(a=e._path=new Path2D,e.path(a,s,i)&&a.closePath()),fr(t,e.options),t.stroke(a)}function Cr(t,e,s,i){const{segments:a,options:o}=e,n=wr(e);for(const r of a)fr(t,o,r.style),t.beginPath(),n(t,e,r,{start:s,end:s+i-1})&&t.closePath(),t.stroke()}const kr="function"===typeof Path2D;function Ar(t,e,s,i){kr&&!e.options.segment?Sr(t,e,s,i):Cr(t,e,s,i)}class Tr extends en{static id="line";static defaults={borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderWidth:3,capBezierPoints:!0,cubicInterpolationMode:"default",fill:!1,spanGaps:!1,stepped:!1,tension:0};static defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};static descriptors={_scriptable:!0,_indexable:t=>"borderDash"!==t&&"fill"!==t};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,e){const s=this.options;if((s.tension||"monotone"===s.cubicInterpolationMode)&&!s.stepped&&!this._pointsUpdated){const i=s.spanGaps?this._loop:this._fullLoop;ji(this._points,s,t,i,e),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=_a(this,this.options.segment))}first(){const t=this.segments,e=this.points;return t.length&&e[t[0].start]}last(){const t=this.segments,e=this.points,s=t.length;return s&&e[t[s-1].end]}interpolate(t,e){const s=this.options,i=t[e],a=this.points,o=ya(this,{property:e,start:i,end:i});if(!o.length)return;const n=[],r=_r(s);let l,c;for(l=0,c=o.length;l{e=Mr(t,e,a);const n=a[t],r=a[e];null!==i?(o.push({x:n.x,y:i}),o.push({x:r.x,y:i})):null!==s&&(o.push({x:s,y:n.y}),o.push({x:s,y:r.y}))})),o}function Mr(t,e,s){for(;e>t;e--){const t=s[e];if(!isNaN(t.x)&&!isNaN(t.y))break}return e}function $r(t,e,s,i){return t&&e?i(t[s],e[s]):t?t[s]:e?e[s]:0}function Ir(t,e){let s=[],i=!1;return oe(t)?(i=!0,s=t):s=Fr(t,e),s.length?new Tr({points:s,options:{tension:0},_loop:i,_fullLoop:i}):null}function Nr(t){return t&&!1!==t.fill}function Ur(t,e,s){const i=t[e];let a=i.fill;const o=[e];let n;if(!s)return a;while(!1!==a&&-1===o.indexOf(a)){if(!re(a))return a;if(n=t[a],!n)return!1;if(n.visible)return a;o.push(a),a=n.fill}return!1}function Or(t,e,s){const i=Vr(t);if(ne(i))return!isNaN(i.value)&&i;let a=parseFloat(i);return re(a)&&Math.floor(a)===a?Er(i[0],e,a,s):["origin","start","end","stack","shape"].indexOf(i)>=0&&i}function Er(t,e,s,i){return"-"!==t&&"+"!==t||(s=e+s),!(s===e||s<0||s>=i)&&s}function Br(t,e){let s=null;return"start"===t?s=e.bottom:"end"===t?s=e.top:ne(t)?s=e.getPixelForValue(t.value):e.getBasePixel&&(s=e.getBasePixel()),s}function zr(t,e,s){let i;return i="start"===t?s:"end"===t?e.options.reverse?e.min:e.max:ne(t)?t.value:e.getBaseValue(),i}function Vr(t){const e=t.options,s=e.fill;let i=ce(s&&s.target,s);return void 0===i&&(i=!!e.backgroundColor),!1!==i&&null!==i&&(!0===i?"origin":i)}function Hr(t){const{scale:e,index:s,line:i}=t,a=[],o=i.segments,n=i.points,r=jr(e,s);r.push(Ir({x:null,y:e.bottom},i));for(let l=0;l=0;--n){const e=a[n].$filler;e&&(e.line.updateControlPoints(o,e.axis),i&&e.fill&&Qr(t.ctx,e,o))}},beforeDatasetsDraw(t,e,s){if("beforeDatasetsDraw"!==s.drawTime)return;const i=t.getSortedVisibleDatasetMetas();for(let a=i.length-1;a>=0;--a){const e=i[a].$filler;Nr(e)&&Qr(t.ctx,e,t.chartArea)}},beforeDatasetDraw(t,e,s){const i=e.meta.$filler;Nr(i)&&"beforeDatasetDraw"===s.drawTime&&Qr(t.ctx,i,t.chartArea)},defaults:{propagate:!0,drawTime:"beforeDatasetDraw"}};const nl=(t,e)=>{let{boxHeight:s=e,boxWidth:i=e}=t;return t.usePointStyle&&(s=Math.min(s,e),i=t.pointStyleWidth||Math.min(i,e)),{boxWidth:i,boxHeight:s,itemHeight:Math.max(e,s)}},rl=(t,e)=>null!==t&&null!==e&&t.datasetIndex===e.datasetIndex&&t.index===e.index;class ll extends en{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,e,s){this.maxWidth=t,this.maxHeight=e,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 e=de(t.generateLabels,[this.chart],this)||[];t.filter&&(e=e.filter((e=>t.filter(e,this.chart.data)))),t.sort&&(e=e.sort(((e,s)=>t.sort(e,s,this.chart.data)))),this.options.reverse&&e.reverse(),this.legendItems=e}fit(){const{options:t,ctx:e}=this;if(!t.display)return void(this.width=this.height=0);const s=t.labels,i=hi(s.font),a=i.size,o=this._computeTitleHeight(),{boxWidth:n,itemHeight:r}=nl(s,a);let l,c;e.font=i.string,this.isHorizontal()?(l=this.maxWidth,c=this._fitRows(o,a,n,r)+10):(c=this.maxHeight,l=this._fitCols(o,i,n,r)+10),this.width=Math.min(l,t.maxWidth||this.maxWidth),this.height=Math.min(c,t.maxHeight||this.maxHeight)}_fitRows(t,e,s,i){const{ctx:a,maxWidth:o,options:{labels:{padding:n}}}=this,r=this.legendHitBoxes=[],l=this.lineWidths=[0],c=i+n;let p=t;a.textAlign="left",a.textBaseline="middle";let d=-1,h=-c;return this.legendItems.forEach(((t,u)=>{const m=s+e/2+a.measureText(t.text).width;(0===u||l[l.length-1]+m+2*n>o)&&(p+=c,l[l.length-(u>0?0:1)]=0,h+=c,d++),r[u]={left:0,top:h,row:d,width:m,height:i},l[l.length-1]+=m+n})),p}_fitCols(t,e,s,i){const{ctx:a,maxHeight:o,options:{labels:{padding:n}}}=this,r=this.legendHitBoxes=[],l=this.columnSizes=[],c=o-t;let p=n,d=0,h=0,u=0,m=0;return this.legendItems.forEach(((t,o)=>{const{itemWidth:f,itemHeight:g}=cl(s,e,a,t,i);o>0&&h+g+2*n>c&&(p+=d+n,l.push({width:d,height:h}),u+=d+n,m++,d=h=0),r[o]={left:u,top:h,col:m,width:f,height:g},d=Math.max(d,f),h+=g+n})),p+=d,l.push({width:d,height:h}),p}adjustHitBoxes(){if(!this.options.display)return;const t=this._computeTitleHeight(),{legendHitBoxes:e,options:{align:s,labels:{padding:i},rtl:a}}=this,o=ha(a,this.left,this.width);if(this.isHorizontal()){let a=0,n=ms(s,this.left+i,this.right-this.lineWidths[a]);for(const r of e)a!==r.row&&(a=r.row,n=ms(s,this.left+i,this.right-this.lineWidths[a])),r.top+=this.top+t+i,r.left=o.leftForLtr(o.x(n),r.width),n+=r.width+i}else{let a=0,n=ms(s,this.top+t+i,this.bottom-this.columnSizes[a].height);for(const r of e)r.col!==a&&(a=r.col,n=ms(s,this.top+t+i,this.bottom-this.columnSizes[a].height)),r.top=n,r.left+=this.left+i,r.left=o.leftForLtr(o.x(r.left),r.width),n+=r.height+i}}isHorizontal(){return"top"===this.options.position||"bottom"===this.options.position}draw(){if(this.options.display){const t=this.ctx;Xs(t,this),this._draw(),Ys(t)}}_draw(){const{options:t,columnSizes:e,lineWidths:s,ctx:i}=this,{align:a,labels:o}=t,n=zs.color,r=ha(t.rtl,this.left,this.width),l=hi(o.font),{padding:c}=o,p=l.size,d=p/2;let h;this.drawTitle(),i.textAlign=r.textAlign("left"),i.textBaseline="middle",i.lineWidth=.5,i.font=l.string;const{boxWidth:u,boxHeight:m,itemHeight:f}=nl(o,p),g=function(t,e,s){if(isNaN(u)||u<=0||isNaN(m)||m<0)return;i.save();const a=ce(s.lineWidth,1);if(i.fillStyle=ce(s.fillStyle,n),i.lineCap=ce(s.lineCap,"butt"),i.lineDashOffset=ce(s.lineDashOffset,0),i.lineJoin=ce(s.lineJoin,"miter"),i.lineWidth=a,i.strokeStyle=ce(s.strokeStyle,n),i.setLineDash(ce(s.lineDash,[])),o.usePointStyle){const n={radius:m*Math.SQRT2/2,pointStyle:s.pointStyle,rotation:s.rotation,borderWidth:a},l=r.xPlus(t,u/2),c=e+d;Ws(i,n,l,c,o.pointStyleWidth&&u)}else{const o=e+Math.max((p-m)/2,0),n=r.leftForLtr(t,u),l=pi(s.borderRadius);i.beginPath(),Object.values(l).some((t=>0!==t))?ii(i,{x:n,y:o,w:u,h:m,radius:l}):i.rect(n,o,u,m),i.fill(),0!==a&&i.stroke()}i.restore()},b=function(t,e,s){si(i,s.text,t,e+f/2,l,{strikethrough:s.hidden,textAlign:r.textAlign(s.textAlign)})},v=this.isHorizontal(),y=this._computeTitleHeight();h=v?{x:ms(a,this.left+c,this.right-s[0]),y:this.top+c+y,line:0}:{x:this.left+c,y:ms(a,this.top+y+c,this.bottom-e[0].height),line:0},ua(this.ctx,t.textDirection);const x=f+c;this.legendItems.forEach(((n,p)=>{i.strokeStyle=n.fontColor,i.fillStyle=n.fontColor;const m=i.measureText(n.text).width,f=r.textAlign(n.textAlign||(n.textAlign=o.textAlign)),w=u+d+m;let _=h.x,S=h.y;r.setWidth(this.width),v?p>0&&_+w+c>this.right&&(S=h.y+=x,h.line++,_=h.x=ms(a,this.left+c,this.right-s[h.line])):p>0&&S+x>this.bottom&&(_=h.x=_+e[h.line].width+c,h.line++,S=h.y=ms(a,this.top+y+c,this.bottom-e[h.line].height));const C=r.x(_);if(g(C,S,n),_=fs(f,_+u+d,v?_+w:this.right,t.rtl),b(r.x(_),S,n),v)h.x+=w+c;else if("string"!==typeof n.text){const t=l.lineHeight;h.y+=hl(n,t)+c}else h.y+=x})),ma(this.ctx,t.textDirection)}drawTitle(){const t=this.options,e=t.title,s=hi(e.font),i=di(e.padding);if(!e.display)return;const a=ha(t.rtl,this.left,this.width),o=this.ctx,n=e.position,r=s.size/2,l=i.top+r;let c,p=this.left,d=this.width;if(this.isHorizontal())d=Math.max(...this.lineWidths),c=this.top+l,p=ms(t.align,p,this.right-d);else{const e=this.columnSizes.reduce(((t,e)=>Math.max(t,e.height)),0);c=l+ms(t.align,this.top,this.bottom-e-t.labels.padding-this._computeTitleHeight())}const h=ms(n,p,p+d);o.textAlign=a.textAlign(us(n)),o.textBaseline="middle",o.strokeStyle=e.color,o.fillStyle=e.color,o.font=s.string,si(o,e.text,h,c,s)}_computeTitleHeight(){const t=this.options.title,e=hi(t.font),s=di(t.padding);return t.display?e.lineHeight+s.height:0}_getLegendItemAt(t,e){let s,i,a;if(es(t,this.left,this.right)&&es(e,this.top,this.bottom))for(a=this.legendHitBoxes,s=0;st.length>e.length?t:e))),e+s.size/2+i.measureText(a).width}function dl(t,e,s){let i=t;return"string"!==typeof e.text&&(i=hl(e,s)),i}function hl(t,e){const s=t.text?t.text.length:0;return e*s}function ul(t,e){return!("mousemove"!==t&&"mouseout"!==t||!e.onHover&&!e.onLeave)||!(!e.onClick||"click"!==t&&"mouseup"!==t)}var ml={id:"legend",_element:ll,start(t,e,s){const i=t.legend=new ll({ctx:t.ctx,options:s,chart:t});Lo.configure(t,i,s),Lo.addBox(t,i)},stop(t){Lo.removeBox(t,t.legend),delete t.legend},beforeUpdate(t,e,s){const i=t.legend;Lo.configure(t,i,s),i.options=s},afterUpdate(t){const e=t.legend;e.buildLabels(),e.adjustHitBoxes()},afterEvent(t,e){e.replay||t.legend.handleEvent(e.event)},defaults:{display:!0,position:"top",align:"center",fullSize:!0,reverse:!1,weight:1e3,onClick(t,e,s){const i=e.datasetIndex,a=s.chart;a.isDatasetVisible(i)?(a.hide(i),e.hidden=!0):(a.show(i),e.hidden=!1)},onHover:null,onLeave:null,labels:{color:t=>t.chart.options.color,boxWidth:40,padding:10,generateLabels(t){const e=t.data.datasets,{labels:{usePointStyle:s,pointStyle:i,textAlign:a,color:o,useBorderRadius:n,borderRadius:r}}=t.legend.options;return t._getSortedDatasetMetas().map((t=>{const l=t.controller.getStyle(s?0:void 0),c=di(l.borderWidth);return{text:e[t.index].label,fillStyle:l.backgroundColor,fontColor:o,hidden:!t.visible,lineCap:l.borderCapStyle,lineDash:l.borderDash,lineDashOffset:l.borderDashOffset,lineJoin:l.borderJoinStyle,lineWidth:(c.width+c.height)/4,strokeStyle:l.borderColor,pointStyle:i||l.pointStyle,rotation:l.rotation,textAlign:a||l.textAlign,borderRadius:n&&(r||l.borderRadius),datasetIndex:t.index}}),this)}},title:{color:t=>t.chart.options.color,display:!1,position:"center",text:""}},descriptors:{_scriptable:t=>!t.startsWith("on"),labels:{_scriptable:t=>!["generateLabels","filter","sort"].includes(t)}}};class fl extends en{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,e){const s=this.options;if(this.left=0,this.top=0,!s.display)return void(this.width=this.height=this.right=this.bottom=0);this.width=this.right=t,this.height=this.bottom=e;const i=oe(s.text)?s.text.length:1;this._padding=di(s.padding);const a=i*hi(s.font).lineHeight+this._padding.height;this.isHorizontal()?this.height=a:this.width=a}isHorizontal(){const t=this.options.position;return"top"===t||"bottom"===t}_drawArgs(t){const{top:e,left:s,bottom:i,right:a,options:o}=this,n=o.align;let r,l,c,p=0;return this.isHorizontal()?(l=ms(n,s,a),c=e+t,r=a-s):("left"===o.position?(l=s+t,c=ms(n,i,e),p=-.5*Re):(l=a-t,c=ms(n,e,i),p=.5*Re),r=i-e),{titleX:l,titleY:c,maxWidth:r,rotation:p}}draw(){const t=this.ctx,e=this.options;if(!e.display)return;const s=hi(e.font),i=s.lineHeight,a=i/2+this._padding.top,{titleX:o,titleY:n,maxWidth:r,rotation:l}=this._drawArgs(a);si(t,e.text,0,0,s,{color:e.color,maxWidth:r,rotation:l,textAlign:us(e.align),textBaseline:"middle",translation:[o,n]})}}function gl(t,e){const s=new fl({ctx:t.ctx,options:e,chart:t});Lo.configure(t,s,e),Lo.addBox(t,s),t.titleBlock=s}var bl={id:"title",_element:fl,start(t,e,s){gl(t,s)},stop(t){const e=t.titleBlock;Lo.removeBox(t,e),delete t.titleBlock},beforeUpdate(t,e,s){const i=t.titleBlock;Lo.configure(t,i,s),i.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}};new WeakMap;const vl={average(t){if(!t.length)return!1;let e,s,i=new Set,a=0,o=0;for(e=0,s=t.length;et+e))/i.size;return{x:n,y:a/o}},nearest(t,e){if(!t.length)return!1;let s,i,a,o=e.x,n=e.y,r=Number.POSITIVE_INFINITY;for(s=0,i=t.length;s-1?t.split("\n"):t}function wl(t,e){const{element:s,datasetIndex:i,index:a}=e,o=t.getDatasetMeta(i).controller,{label:n,value:r}=o.getLabelAndValue(a);return{chart:t,label:n,parsed:o.getParsed(a),raw:t.data.datasets[i].data[a],formattedValue:r,dataset:o.getDataset(),dataIndex:a,datasetIndex:i,element:s}}function _l(t,e){const s=t.chart.ctx,{body:i,footer:a,title:o}=t,{boxWidth:n,boxHeight:r}=e,l=hi(e.bodyFont),c=hi(e.titleFont),p=hi(e.footerFont),d=o.length,h=a.length,u=i.length,m=di(e.padding);let f=m.height,g=0,b=i.reduce(((t,e)=>t+e.before.length+e.lines.length+e.after.length),0);if(b+=t.beforeBody.length+t.afterBody.length,d&&(f+=d*c.lineHeight+(d-1)*e.titleSpacing+e.titleMarginBottom),b){const t=e.displayColors?Math.max(r,l.lineHeight):l.lineHeight;f+=u*t+(b-u)*l.lineHeight+(b-1)*e.bodySpacing}h&&(f+=e.footerMarginTop+h*p.lineHeight+(h-1)*e.footerSpacing);let v=0;const y=function(t){g=Math.max(g,s.measureText(t).width+v)};return s.save(),s.font=c.string,he(t.title,y),s.font=l.string,he(t.beforeBody.concat(t.afterBody),y),v=e.displayColors?n+2+e.boxPadding:0,he(i,(t=>{he(t.before,y),he(t.lines,y),he(t.after,y)})),v=0,s.font=p.string,he(t.footer,y),s.restore(),g+=m.width,{width:g,height:f}}function Sl(t,e){const{y:s,height:i}=e;return st.height-i/2?"bottom":"center"}function Cl(t,e,s,i){const{x:a,width:o}=i,n=s.caretSize+s.caretPadding;return"left"===t&&a+o+n>e.width||("right"===t&&a-o-n<0||void 0)}function kl(t,e,s,i){const{x:a,width:o}=s,{width:n,chartArea:{left:r,right:l}}=t;let c="center";return"center"===i?c=a<=(r+l)/2?"left":"right":a<=o/2?c="left":a>=n-o/2&&(c="right"),Cl(c,t,e,s)&&(c="center"),c}function Al(t,e,s){const i=s.yAlign||e.yAlign||Sl(t,s);return{xAlign:s.xAlign||e.xAlign||kl(t,e,s,i),yAlign:i}}function Tl(t,e){let{x:s,width:i}=t;return"right"===e?s-=i:"center"===e&&(s-=i/2),s}function Pl(t,e,s){let{y:i,height:a}=t;return"top"===e?i+=s:i-="bottom"===e?a+s:a/2,i}function Rl(t,e,s,i){const{caretSize:a,caretPadding:o,cornerRadius:n}=t,{xAlign:r,yAlign:l}=s,c=a+o,{topLeft:p,topRight:d,bottomLeft:h,bottomRight:u}=pi(n);let m=Tl(e,r);const f=Pl(e,l,c);return"center"===l?"left"===r?m+=c:"right"===r&&(m-=c):"left"===r?m-=Math.max(p,h)+a:"right"===r&&(m+=Math.max(d,u)+a),{x:Qe(m,0,i.width-e.width),y:Qe(f,0,i.height-e.height)}}function Dl(t,e,s){const i=di(s.padding);return"center"===e?t.x+t.width/2:"right"===e?t.x+t.width-i.right:t.x+i.left}function Ll(t){return yl([],xl(t))}function Fl(t,e,s){return fi(t,{tooltip:e,tooltipItems:s,type:"tooltip"})}function Ml(t,e){const s=e&&e.dataset&&e.dataset.tooltip&&e.dataset.tooltip.callbacks;return s?t.override(s):t}const $l={beforeTitle:se,title(t){if(t.length>0){const e=t[0],s=e.chart.data.labels,i=s?s.length:0;if(this&&this.options&&"dataset"===this.options.mode)return e.dataset.label||"";if(e.label)return e.label;if(i>0&&e.dataIndex{const e={before:[],lines:[],after:[]},a=Ml(s,t);yl(e.before,xl(Il(a,"beforeLabel",this,t))),yl(e.lines,Il(a,"label",this,t)),yl(e.after,xl(Il(a,"afterLabel",this,t))),i.push(e)})),i}getAfterBody(t,e){return Ll(Il(e.callbacks,"afterBody",this,t))}getFooter(t,e){const{callbacks:s}=e,i=Il(s,"beforeFooter",this,t),a=Il(s,"footer",this,t),o=Il(s,"afterFooter",this,t);let n=[];return n=yl(n,xl(i)),n=yl(n,xl(a)),n=yl(n,xl(o)),n}_createItems(t){const e=this._active,s=this.chart.data,i=[],a=[],o=[];let n,r,l=[];for(n=0,r=e.length;nt.filter(e,i,a,s)))),t.itemSort&&(l=l.sort(((e,i)=>t.itemSort(e,i,s)))),he(l,(e=>{const s=Ml(t.callbacks,e);i.push(Il(s,"labelColor",this,e)),a.push(Il(s,"labelPointStyle",this,e)),o.push(Il(s,"labelTextColor",this,e))})),this.labelColors=i,this.labelPointStyles=a,this.labelTextColors=o,this.dataPoints=l,l}update(t,e){const s=this.options.setContext(this.getContext()),i=this._active;let a,o=[];if(i.length){const t=vl[s.position].call(this,i,this._eventPosition);o=this._createItems(s),this.title=this.getTitle(o,s),this.beforeBody=this.getBeforeBody(o,s),this.body=this.getBody(o,s),this.afterBody=this.getAfterBody(o,s),this.footer=this.getFooter(o,s);const e=this._size=_l(this,s),n=Object.assign({},t,e),r=Al(this.chart,s,n),l=Rl(s,n,r,this.chart);this.xAlign=r.xAlign,this.yAlign=r.yAlign,a={opacity:1,x:l.x,y:l.y,width:e.width,height:e.height,caretX:t.x,caretY:t.y}}else 0!==this.opacity&&(a={opacity:0});this._tooltipItems=o,this.$context=void 0,a&&this._resolveAnimations().update(this,a),t&&s.external&&s.external.call(this,{chart:this.chart,tooltip:this,replay:e})}drawCaret(t,e,s,i){const a=this.getCaretPosition(t,s,i);e.lineTo(a.x1,a.y1),e.lineTo(a.x2,a.y2),e.lineTo(a.x3,a.y3)}getCaretPosition(t,e,s){const{xAlign:i,yAlign:a}=this,{caretSize:o,cornerRadius:n}=s,{topLeft:r,topRight:l,bottomLeft:c,bottomRight:p}=pi(n),{x:d,y:h}=t,{width:u,height:m}=e;let f,g,b,v,y,x;return"center"===a?(y=h+m/2,"left"===i?(f=d,g=f-o,v=y+o,x=y-o):(f=d+u,g=f+o,v=y-o,x=y+o),b=f):(g="left"===i?d+Math.max(r,c)+o:"right"===i?d+u-Math.max(l,p)-o:this.caretX,"top"===a?(v=h,y=v-o,f=g-o,b=g+o):(v=h+m,y=v+o,f=g+o,b=g-o),x=v),{x1:f,x2:g,x3:b,y1:v,y2:y,y3:x}}drawTitle(t,e,s){const i=this.title,a=i.length;let o,n,r;if(a){const l=ha(s.rtl,this.x,this.width);for(t.x=Dl(this,s.titleAlign,s),e.textAlign=l.textAlign(s.titleAlign),e.textBaseline="middle",o=hi(s.titleFont),n=s.titleSpacing,e.fillStyle=s.titleColor,e.font=o.string,r=0;r0!==t))?(t.beginPath(),t.fillStyle=a.multiKeyBackground,ii(t,{x:e,y:u,w:l,h:r,radius:n}),t.fill(),t.stroke(),t.fillStyle=o.backgroundColor,t.beginPath(),ii(t,{x:s,y:u+1,w:l-2,h:r-2,radius:n}),t.fill()):(t.fillStyle=a.multiKeyBackground,t.fillRect(e,u,l,r),t.strokeRect(e,u,l,r),t.fillStyle=o.backgroundColor,t.fillRect(s,u+1,l-2,r-2))}t.fillStyle=this.labelTextColors[s]}drawBody(t,e,s){const{body:i}=this,{bodySpacing:a,bodyAlign:o,displayColors:n,boxHeight:r,boxWidth:l,boxPadding:c}=s,p=hi(s.bodyFont);let d=p.lineHeight,h=0;const u=ha(s.rtl,this.x,this.width),m=function(s){e.fillText(s,u.x(t.x+h),t.y+d/2),t.y+=d+a},f=u.textAlign(o);let g,b,v,y,x,w,_;for(e.textAlign=o,e.textBaseline="middle",e.font=p.string,t.x=Dl(this,f,s),e.fillStyle=s.bodyColor,he(this.beforeBody,m),h=n&&"right"!==f?"center"===o?l/2+c:l+2+c:0,y=0,w=i.length;y0&&e.stroke()}_updateAnimationTarget(t){const e=this.chart,s=this.$animations,i=s&&s.x,a=s&&s.y;if(i||a){const s=vl[t.position].call(this,this._active,this._eventPosition);if(!s)return;const o=this._size=_l(this,t),n=Object.assign({},s,this._size),r=Al(e,t,n),l=Rl(t,n,r,e);i._to===l.x&&a._to===l.y||(this.xAlign=r.xAlign,this.yAlign=r.yAlign,this.width=o.width,this.height=o.height,this.caretX=s.x,this.caretY=s.y,this._resolveAnimations().update(this,l))}}_willRender(){return!!this.opacity}draw(t){const e=this.options.setContext(this.getContext());let s=this.opacity;if(!s)return;this._updateAnimationTarget(e);const i={width:this.width,height:this.height},a={x:this.x,y:this.y};s=Math.abs(s)<.001?0:s;const o=di(e.padding),n=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;e.enabled&&n&&(t.save(),t.globalAlpha=s,this.drawBackground(a,t,i,e),ua(t,e.textDirection),a.y+=o.top,this.drawTitle(a,t,e),this.drawBody(a,t,e),this.drawFooter(a,t,e),ma(t,e.textDirection),t.restore())}getActiveElements(){return this._active||[]}setActiveElements(t,e){const s=this._active,i=t.map((({datasetIndex:t,index:e})=>{const s=this.chart.getDatasetMeta(t);if(!s)throw new Error("Cannot find a dataset at index "+t);return{datasetIndex:t,element:s.data[e],index:e}})),a=!ue(s,i),o=this._positionChanged(i,e);(a||o)&&(this._active=i,this._eventPosition=e,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(t,e,s=!0){if(e&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;const i=this.options,a=this._active||[],o=this._getActiveElements(t,a,e,s),n=this._positionChanged(o,t),r=e||!ue(o,a)||n;return r&&(this._active=o,(i.enabled||i.external)&&(this._eventPosition={x:t.x,y:t.y},this.update(!0,e))),r}_getActiveElements(t,e,s,i){const a=this.options;if("mouseout"===t.type)return[];if(!i)return e.filter((t=>this.chart.data.datasets[t.datasetIndex]&&void 0!==this.chart.getDatasetMeta(t.datasetIndex).controller.getParsed(t.index)));const o=this.chart.getElementsAtEventForMode(t,a.mode,a,s);return a.reverse&&o.reverse(),o}_positionChanged(t,e){const{caretX:s,caretY:i,options:a}=this,o=vl[a.position].call(this,t,e);return!1!==o&&(s!==o.x||i!==o.y)}}var Ul={id:"tooltip",_element:Nl,positioners:vl,afterInit(t,e,s){s&&(t.tooltip=new Nl({chart:t,options:s}))},beforeUpdate(t,e,s){t.tooltip&&t.tooltip.initialize(s)},reset(t,e,s){t.tooltip&&t.tooltip.initialize(s)},afterDraw(t){const e=t.tooltip;if(e&&e._willRender()){const s={tooltip:e};if(!1===t.notifyPlugins("beforeTooltipDraw",{...s,cancelable:!0}))return;e.draw(t.ctx),t.notifyPlugins("afterTooltipDraw",s)}},afterEvent(t,e){if(t.tooltip){const s=e.replay;t.tooltip.handleEvent(e.event,s,e.inChartArea)&&(e.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:(t,e)=>e.bodyFont.size,boxWidth:(t,e)=>e.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:$l},defaultRoutes:{bodyFont:"font",footerFont:"font",titleFont:"font"},descriptors:{_scriptable:t=>"filter"!==t&&"itemSort"!==t&&"external"!==t,_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:"animation"}},additionalOptionScopes:["interaction"]};const Ol=(t,e,s,i)=>("string"===typeof e?(s=t.push(e)-1,i.unshift({index:s,label:e})):isNaN(e)&&(s=null),s);function El(t,e,s,i){const a=t.indexOf(e);if(-1===a)return Ol(t,e,s,i);const o=t.lastIndexOf(e);return a!==o?s:a}const Bl=(t,e)=>null===t?null:Qe(Math.round(t),0,e);function zl(t){const e=this.getLabels();return t>=0&&te.length-1?null:this.getPixelForValue(e[t].value)}getValueForPixel(t){return Math.round(this._startValue+this.getDecimalForPixel(t)*this._valueRange)}getBasePixel(){return this.bottom}}function Hl(t,e){const s=[],i=1e-14,{bounds:a,step:o,min:n,max:r,precision:l,count:c,maxTicks:p,maxDigits:d,includeBounds:h}=t,u=o||1,m=p-1,{min:f,max:g}=e,b=!ae(n),v=!ae(r),y=!ae(c),x=(g-f)/(d+1);let w,_,S,C,k=Be((g-f)/m/u)*u;if(km&&(k=Be(C*k/m/u)*u),ae(l)||(w=Math.pow(10,l),k=Math.ceil(k*w)/w),"ticks"===a?(_=Math.floor(f/k)*k,S=Math.ceil(g/k)*k):(_=f,S=g),b&&v&&o&&He((r-n)/o,k/1e3)?(C=Math.round(Math.min((r-n)/k,p)),k=(r-n)/C,_=n,S=r):y?(_=b?n:_,S=v?r:S,C=c-1,k=(S-_)/C):(C=(S-_)/k,C=Ee(C,Math.round(C),k/1e3)?Math.round(C):Math.ceil(C));const A=Math.max(We(k),We(_));w=Math.pow(10,ae(l)?A:l),_=Math.round(_*w)/w,S=Math.round(S*w)/w;let T=0;for(b&&(h&&_!==n?(s.push({value:n}),_r)break;s.push({value:t})}return v&&h&&S!==r?s.length&&Ee(s[s.length-1].value,r,jl(r,x,t))?s[s.length-1].value=r:s.push({value:r}):v&&S!==r||s.push({value:S}),s}function jl(t,e,{horizontal:s,minRotation:i}){const a=qe(i),o=(s?Math.sin(a):Math.cos(a))||.001,n=.75*e*(""+t).length;return Math.min(e/o,n)}class ql extends _n{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,e){return ae(t)||("number"===typeof t||t instanceof Number)&&!isFinite(+t)?null:+t}handleTickRangeOptions(){const{beginAtZero:t}=this.options,{minDefined:e,maxDefined:s}=this.getUserBounds();let{min:i,max:a}=this;const o=t=>i=e?i:t,n=t=>a=s?a:t;if(t){const t=Oe(i),e=Oe(a);t<0&&e<0?n(0):t>0&&e>0&&o(0)}if(i===a){let e=0===a?1:Math.abs(.05*a);n(a+e),t||o(i-e)}this.min=i,this.max=a}getTickLimit(){const t=this.options.ticks;let e,{maxTicksLimit:s,stepSize:i}=t;return i?(e=Math.ceil(this.max/i)-Math.floor(this.min/i)+1,e>1e3&&(console.warn(`scales.${this.id}.ticks.stepSize: ${i} would result generating up to ${e} ticks. Limiting to 1000.`),e=1e3)):(e=this.computeTickLimit(),s=s||11),s&&(e=Math.min(s,e)),e}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){const t=this.options,e=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:e.precision,step:e.stepSize,count:e.count,maxDigits:this._maxDigits(),horizontal:this.isHorizontal(),minRotation:e.minRotation||0,includeBounds:!1!==e.includeBounds},a=this._range||this,o=Hl(i,a);return"ticks"===t.bounds&&je(o,this,"value"),t.reverse?(o.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),o}configure(){const t=this.ticks;let e=this.min,s=this.max;if(super.configure(),this.options.offset&&t.length){const i=(s-e)/Math.max(t.length-1,1)/2;e-=i,s+=i}this._startValue=e,this._endValue=s,this._valueRange=s-e}getLabelForValue(t){return Ls(t,this.chart.options.locale,this.options.ticks.format)}}class Gl extends ql{static id="linear";static defaults={ticks:{callback:$s.formatters.numeric}};determineDataLimits(){const{min:t,max:e}=this.getMinMax(!0);this.min=re(t)?t:0,this.max=re(e)?e:1,this.handleTickRangeOptions()}computeTickLimit(){const t=this.isHorizontal(),e=t?this.width:this.height,s=qe(this.options.ticks.minRotation),i=(t?Math.sin(s):Math.cos(s))||.001,a=this._resolveTickFontOptions(0);return Math.ceil(e/Math.min(40,a.lineHeight/i))}getPixelForValue(t){return null===t?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getValueForPixel(t){return this._startValue+this.getDecimalForPixel(t)*this._valueRange}}$s.formatters.logarithmic;$s.formatters.numeric;const Wl={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}},Kl=Object.keys(Wl);function Xl(t,e){return t-e}function Yl(t,e){if(ae(e))return null;const s=t._adapter,{parser:i,round:a,isoWeekday:o}=t._parseOpts;let n=e;return"function"===typeof i&&(n=i(n)),re(n)||(n="string"===typeof i?s.parse(n,i):s.parse(n)),null===n?null:(a&&(n="week"!==a||!Ve(o)&&!0!==o?s.startOf(n,a):s.startOf(n,"isoWeek",o)),+n)}function Zl(t,e,s,i){const a=Kl.length;for(let o=Kl.indexOf(t);o=Kl.indexOf(s);o--){const s=Kl[o];if(Wl[s].common&&t._adapter.diff(a,i,s)>=e-1)return s}return Kl[s?Kl.indexOf(s):0]}function Ql(t){for(let e=Kl.indexOf(t)+1,s=Kl.length;e=e?s[i]:s[a];t[o]=!0}}else t[e]=!0}function ec(t,e,s,i){const a=t._adapter,o=+a.startOf(e[0].value,i),n=e[e.length-1].value;let r,l;for(r=o;r<=n;r=+a.add(r,1,i))l=s[r],l>=0&&(e[l].major=!0);return e}function sc(t,e,s){const i=[],a={},o=e.length;let n,r;for(n=0;n+t.value)))}initOffsets(t=[]){let e,s,i=0,a=0;this.options.offset&&t.length&&(e=this.getDecimalForValue(t[0]),i=1===t.length?1-e:(this.getDecimalForValue(t[1])-e)/2,s=this.getDecimalForValue(t[t.length-1]),a=1===t.length?s:(s-this.getDecimalForValue(t[t.length-2]))/2);const o=t.length<3?.5:.25;i=Qe(i,0,o),a=Qe(a,0,o),this._offsets={start:i,end:a,factor:1/(i+1+a)}}_generate(){const t=this._adapter,e=this.min,s=this.max,i=this.options,a=i.time,o=a.unit||Zl(a.minUnit,e,s,this._getLabelCapacity(e)),n=ce(i.ticks.stepSize,1),r="week"===o&&a.isoWeekday,l=Ve(r)||!0===r,c={};let p,d,h=e;if(l&&(h=+t.startOf(h,"isoWeek",r)),h=+t.startOf(h,l?"day":o),t.diff(s,e,o)>1e5*n)throw new Error(e+" and "+s+" are too far apart with stepSize of "+n+" "+o);const u="data"===i.ticks.source&&this.getDataTimestamps();for(p=h,d=0;p+t))}getLabelForValue(t){const e=this._adapter,s=this.options.time;return s.tooltipFormat?e.format(t,s.tooltipFormat):e.format(t,s.displayFormats.datetime)}format(t,e){const s=this.options,i=s.time.displayFormats,a=this._unit,o=e||i[a];return this._adapter.format(t,o)}_tickFormatFunction(t,e,s,i){const a=this.options,o=a.ticks.callback;if(o)return de(o,[t,e,s],this);const n=a.time.displayFormats,r=this._unit,l=this._majorUnit,c=r&&n[r],p=l&&n[l],d=s[e],h=l&&p&&d&&d.major;return this._adapter.format(t,i||(h?p:c))}generateTickLabels(t){let e,s,i;for(e=0,s=t.length;e0?n:1}getDataTimestamps(){let t,e,s=this._cache.data||[];if(s.length)return s;const i=this.getMatchingVisibleMetas();if(this._normalized&&i.length)return this._cache.data=i[0].controller.getAllParsedValues(this);for(t=0,e=i.length;tObject.values(t).some((t=>String(t).toLowerCase().includes(this.search.toLowerCase()))))):this.processes},paginatedProcesses(){const t=(this.currentPage-1)*this.perPage,e=t+this.perPage;return this.filteredProcesses.slice(t,e)},isDisabled(){return!!this.pollingEnabled||this.manualInProgress},filteredLogs(){const t=this.filterKeyword.toLowerCase();return this.logs.filter((e=>e.toLowerCase().includes(t)))},formattedLogs(){return this.filteredLogs.map((t=>this.formatLog(t)))},mapLocations(){return this.instances.data.map((t=>t.ip))},appRunningTill(){const t=12e4,e=this.callBResponse.data.expire||22e3,s=this.callBResponse.data.height+e-this.daemonBlockCount;let i=s;this.extendSubscription&&(i=this.expireOptions[this.expirePosition].value);const a=this.timestamp||Date.now(),o=s*t+a,n=i*t+a,r={current:o,new:n};return r},skin(){return(0,lt.Z)().skin.value},zelidHeader(){const t=localStorage.getItem("zelidauth"),e={zelidauth:t};return e},ipAddress(){const t=hc.get("backendURL");if(t)return`${hc.get("backendURL").split(":")[0]}:${hc.get("backendURL").split(":")[1]}`;const{hostname:e}=window.location;return`${e}`},filesToUpload(){return this.files.length>0&&this.files.some((t=>!t.uploading&&!t.uploaded&&0===t.progress))},computedFileProgress(){return this.fileProgress},computedFileProgressFD(){return this.fileProgressFD},computedFileProgressVolume(){return this.fileProgressVolume},folderContentFilter(){const t=this.folderView.filter((t=>JSON.stringify(t.name).toLowerCase().includes(this.filterFolder.toLowerCase()))),e=this.currentFolder?{name:"..",symLink:!0,isUpButton:!0}:null,s=[e,...t.filter((t=>".gitkeep"!==t.name))].filter(Boolean);return s},downloadLabel(){this.totalMB=this.backupList.reduce(((t,e)=>t+parseFloat(e.file_size)),2);const t=(this.downloadedSize/1048576).toFixed(2);return t===this.totalMB&&setTimeout((()=>{this.showProgressBar=!1}),5e3),`${t} / ${this.totalMB} MB`},isValidUrl(){const t=/^(http|https):\/\/[^\s]+$/,e=this.restoreRemoteUrl.split("?"),s=e[0];return""===this.restoreRemoteUrl||s.endsWith(".tar.gz")&&t.test(s)},urlValidationState(){return!!this.isValidUrl&&null},urlValidationMessage(){return this.isValidUrl?null:"Please enter a valid URL ending with .tar.gz"},computedRestoreRemoteURLFields(){return this.RestoreTableBuilder("URL")},computedRestoreUploadFileFields(){return this.RestoreTableBuilder("File_name")},checkpointsTable(){return[{key:"name",label:"Name",thStyle:{width:"70%"}},{key:"date",label:"Date",thStyle:{width:"20%"}},{key:"action",label:"Action",thStyle:{width:"5%"}}]},componentsTable1(){return[{key:"component",label:"Component Name",thStyle:{width:"200px"}},{key:"file_url",label:"URL"},{key:"file_size",label:"Size",thStyle:{width:"100px"}},{key:"actions",label:"Actions",thStyle:{width:"117px"},class:"text-center"}]},componentAvailableOptions(){return 1===this.components.length&&(this.selectedBackupComponents=this.components),this.components.filter((t=>-1===this.selectedBackupComponents.indexOf(t)))},remoteFileComponents(){return 1===this.components.length&&(this.restoreRemoteFile=this.components[0],!0)},remoteUrlComponents(){return 1===this.components.length&&(this.restoreRemoteUrlComponent=this.components[0],!0)},isComposeSingle(){return this.appSpecification.version<=3||1===this.appSpecification.compose?.length},selectedOptionText(){const t=this.options.flatMap((t=>t.options)).find((t=>t===this.selectedCmd));return t||""},selectedOptionTextStyle(){return{color:"red",backgroundColor:"rgba(128, 128, 128, 0.1)",fontWeight:"bold",padding:"4px 8px",borderRadius:"4px",marginRight:"10px",marginLeft:"10px"}},...(0,z.rn)("flux",["config","privilege"]),instancesLocked(){try{if(this.appUpdateSpecification.name&&this.marketPlaceApps.length){const t=this.marketPlaceApps.find((t=>this.appUpdateSpecification.name.toLowerCase().startsWith(t.name.toLowerCase())));if(t&&t.lockedValues&&t.lockedValues.includes("instances"))return!0}return!1}catch(t){return console.log(t),!1}},priceMultiplier(){try{if(this.appUpdateSpecification.name&&this.marketPlaceApps.length){const t=this.marketPlaceApps.find((t=>this.appUpdateSpecification.name.toLowerCase().startsWith(t.name.toLowerCase())));if(t&&t.multiplier>1)return t.multiplier*this.generalMultiplier}return this.generalMultiplier}catch(t){return console.log(t),this.generalMultiplier}},callbackValue(){const{protocol:t,hostname:e,port:s}=window.location;let i="";i+=t,i+="//";const a=/[A-Za-z]/g;if(e.split("-")[4]){const t=e.split("-"),s=t[4].split("."),a=+s[0]+1;s[0]=a.toString(),s[2]="api",t[4]="",i+=t.join("-"),i+=s.join(".")}else if(e.match(a)){const t=e.split(".");t[0]="api",i+=t.join(".")}else{if("string"===typeof e&&this.$store.commit("flux/setUserIp",e),+s>16100){const t=+s+1;this.$store.commit("flux/setFluxPort",t)}i+=e,i+=":",i+=this.config.apiPort}const o=hc.get("backendURL")||i,n=`${o}/id/providesign`;return encodeURI(n)},isAppOwner(){const t=localStorage.getItem("zelidauth"),e=dc.parse(t);return!!(t&&e&&e.zelid&&this.selectedAppOwner===e.zelid)},validTill(){const t=this.timestamp+36e5;return t},subscribedTill(){if(this.appUpdateSpecification.expire){const t=this.expireOptions.find((t=>t.value===this.appUpdateSpecification.expire));if(t){const e=1e6*Math.floor((this.timestamp+t.time)/1e6);return e}const e=this.appUpdateSpecification.expire,s=12e4,i=e*s,a=1e6*Math.floor((this.timestamp+i)/1e6);return a}const t=1e6*Math.floor((this.timestamp+2592e6)/1e6);return t},isApplicationInstalledLocally(){if(this.installedApps){const t=this.installedApps.find((t=>t.name===this.appName));return!!t}return!1},constructAutomaticDomainsGlobal(){if(!this.callBResponse.data)return"loading...";if(console.log(this.callBResponse.data),!this.callBResponse.data.name)return"loading...";const t=this.callBResponse.data.name,e=t.toLowerCase();if(!this.callBResponse.data.compose){const t=JSON.parse(JSON.stringify(this.callBResponse.data.ports)),s=[`${e}.app.runonflux.io`];for(let i=0;i{for(let i=0;i=2&&s.push(` ${a} ${i}s`),t%=e[i]}return s},getNewExpireLabel(){if(-1===this.daemonBlockCount)return"Not possible to calculate expiration";const t=this.callBResponse.data.expire||22e3,e=this.callBResponse.data.height+t-this.daemonBlockCount;if(e<1)return"Application Expired";this.minutesRemaining=2*e;const s=this.minutesToString;return s.length>2?`${s[0]}, ${s[1]}, ${s[2]}`:s.length>1?`${s[0]}, ${s[1]}`:`${s[0]}`}},watch:{skin(){null!==this.memoryChart&&this.updateCharts()},noData(){null!==this.memoryChart&&this.updateCharts()},filterKeyword(){this.logs?.length>0&&this.$nextTick((()=>{this.scrollToBottom()}))},isLineByLineMode(){this.isLineByLineMode||(this.selectedLog=[]),this.logs?.length>0&&this.$nextTick((()=>{this.scrollToBottom()}))},fetchAllLogs(){this.restartPolling()},lineCount(){this.debounce((()=>this.restartPolling()),1e3)()},sinceTimestamp(){this.restartPolling()},selectedApp(t,e){e&&e!==t&&(this.filterKeyword="",this.sinceTimestamp="",this.stopPolling(),this.clearLogs()),t&&(this.handleContainerChange(),this.pollingEnabled&&this.startPolling())},selectedContainerMonitoring(t){t&&(this.buttonStats=!1,this.enableHistoryStatistics?(this.stopPollingStats(),this.fetchStats()):(this.timerStats&&this.stopPollingStats(),null!==this.selectedContainerMonitoring&&this.startPollingStats(),!0===this.noDat&&this.clearCharts()))},refreshRateMonitoring(){this.enableHistoryStatistics?this.stopPollingStats():(this.timerStats&&this.stopPollingStats(),this.startPollingStats())},isComposeSingle(t){t&&this.appSpecification.version>=4&&(this.selectedApp=this.appSpecification.compose[0].name,this.selectedAppVolume=this.appSpecification.compose[0].name,this.selectedContainerMonitoring=this.appSpecification.compose[0].name)},appUpdateSpecification:{handler(){this.dataToSign="",this.signature="",this.timestamp=null,this.dataForAppUpdate={},this.updateHash="",this.testError=!1,this.output=[],null!==this.websocket&&(this.websocket.close(),this.websocket=null)},deep:!0},expirePosition:{handler(){this.dataToSign="",this.signature="",this.timestamp=null,this.dataForAppUpdate={},this.updateHash="",this.testError=!1,this.output=[],null!==this.websocket&&(this.websocket.close(),this.websocket=null)}},isPrivateApp(t){this.appUpdateSpecification.version>=7&&!1===t&&(this.appUpdateSpecification.nodes=[],this.appUpdateSpecification.compose.forEach((t=>{t.secrets="",t.repoauth=""})),this.selectedEnterpriseNodes=[]),this.allowedGeolocations={},this.forbiddenGeolocations={},this.dataToSign="",this.signature="",this.timestamp=null,this.dataForAppUpdate={},this.updateHash="",this.testError=!1,this.output=[],null!==this.websocket&&(this.websocket.close(),this.websocket=null)}},created(){this.fluxDriveUploadTask=[],this.fluxDriveEndPoint="https://mws.fluxdrive.runonflux.io"},mounted(){const{hostname:t}=window.location,e=/[A-Za-z]/g;t.match(e)?this.ipAccess=!1:this.ipAccess=!0;const s=this;this.$nextTick((()=>{window.addEventListener("resize",s.onResize)})),this.initMMSDK(),this.callBResponse.data="",this.callBResponse.status="",this.appSpecification={},this.callResponse.data="",this.callResponse.status="",this.monitoringStream={},this.appExec.cmd="",this.appExec.env="",this.checkFluxCommunication(),this.getAppOwner(),this.getGlobalApplicationSpecifics(),this.appsDeploymentInformation(),this.getGeolocationData(),this.getMarketPlace(),this.getMultiplier(),this.getEnterpriseNodes(),this.getDaemonBlockCount()},beforeDestroy(){this.stopPolling(),this.stopPollingStats(),window.removeEventListener("resize",this.onResize)},methods:{enableHistoryStatisticsChange(){this.buttonStats=!1,this.enableHistoryStatistics?(this.stopPollingStats(),this.clearCharts(),this.fetchStats()):(this.clearCharts(),this.startPollingStats())},LimitChartItems(t){const e=t.data.datasets[0].data.length;if(e>this.selectedPoints){const s=e-this.selectedPoints;t.data.labels=t.data.labels.slice(s),t.data.datasets.forEach((t=>{t.data=t.data.slice(s)})),t.update({duration:800,lazy:!1,easing:"easeOutBounce"})}},async scrollToPagination(){await this.$nextTick(),window.scrollTo(0,document.body.scrollHeight)},processStatsData(t,e,s=null){console.log(t);const i=t.memory_stats.limit;this.memoryLimit=i;const a=t.memory_stats?.usage||null,o=a,n=(a/i*100).toFixed(1),r=t.cpu_stats.cpu_usage.total_usage-t.precpu_stats.cpu_usage.total_usage,l=t.cpu_stats.system_cpu_usage-t.precpu_stats.system_cpu_usage,c=t.cpu_stats.online_cpus,p=e.HostConfig.NanoCpus,d=(r/l*c).toFixed(1)||0,h=(d/(p/1e9)*100).toFixed(1);this.cpuSet=(p/1e9).toFixed(1);const u=t.blkio_stats.io_service_bytes_recursive?t.blkio_stats.io_service_bytes_recursive.find((t=>"read"===t.op.toLowerCase()))?.value||0:null,m=t.blkio_stats.io_service_bytes_recursive?t.blkio_stats.io_service_bytes_recursive.find((t=>"write"===t.op.toLowerCase()))?.value||0:null,f=t.networks?.eth0?.rx_bytes||null,g=t.networks?.eth0?.tx_bytes||null,b=t.disk_stats?.bind||null,v=t.disk_stats?.volume||null,y=t.disk_stats?.rootfs||null;console.log("CPU Percent:",h),console.log("Memory Usage:",o),console.log("Memory Usage (%):",n),console.log("Network RX Bytes:",f),console.log("Network TX Bytes:",g),console.log("I/O Read Bytes:",u),console.log("I/O Write Bytes:",m),console.log("Disk Usage Mounts:",b),console.log("Disk Usage Volume:",v),console.log("Disk Usage RootFS:",y),console.log("CPU Size:",d),this.insertChartData(h,o,n,f,g,u,m,b,v,y,d,s)},async fetchStats(){try{if(this.appSpecification.version>=4&&!this.selectedContainerMonitoring)return console.error("No container selected"),void(this.timerStats&&this.stopPollingStats());if(3!==this.$refs.managementTabs?.currentTab)return;this.enableHistoryStatistics&&this.clearCharts();const t=this.selectedContainerMonitoring,e=this.selectedContainerMonitoring?`${this.selectedContainerMonitoring}_${this.appSpecification.name}`:this.appSpecification.name;let s;s=this.enableHistoryStatistics?await this.executeLocalCommand(`/apps/appmonitor/${e}`):await this.executeLocalCommand(`/apps/appstats/${e}`);const i=await this.executeLocalCommand(`/apps/appinspect/${e}`);if("error"===s.data.status)this.showToast("danger",s.data.data.message||s.data.data);else if("error"===i.data.status)this.showToast("danger",i.data.data.message||i.data.data);else{this.enableHistoryStatistics||this.fetchProcesses(e,t);const a=i.data;let o;if(o=s.data?.data?.lastDay?s.data.data.lastDay.reverse():s.data.data,Array.isArray(o)){const t=(new Date).getTime(),e=t-this.selectedTimeRange,s=o.filter((t=>{const s=new Date(t.timestamp).getTime();return s>=e}));s.forEach((t=>{this.processStatsData(t.data,a.data,t.timestamp)}))}else this.processStatsData(o,a.data);t===this.selectedContainerMonitoring?this.updateCharts():this.clearCharts()}}catch(t){console.error("Error fetching container data:",t),this.stopPollingStats(!0)}},updateAxes(){1===this.memoryChart.data.labels.length&&(this.memoryChart.options.scales.y.max=1.2*this.memoryLimit,this.memoryChart.options.scales.y1.max=120),1===this.cpuChart.data.labels.length&&(this.cpuChart.options.scales.y.max=(1.2*this.cpuSet).toFixed(1),this.cpuChart.options.scales.y1.max=120)},insertChartData(t,e,s,i,a,o,n,r,l,c,p,d=null){const h=null===d?(new Date).toLocaleTimeString():new Date(d).toLocaleTimeString();null!==e&&(this.LimitChartItems(this.memoryChart),this.memoryChart.data.labels.push(h),this.memoryChart.data.datasets[0].data.push(e),this.memoryChart.data.datasets[1].data.push(s)),null!==i&&null!==a&&(this.LimitChartItems(this.cpuChart),this.cpuChart.data.labels.push(h),this.cpuChart.data.datasets[0].data.push(p),this.cpuChart.data.datasets[1].data.push(t)),null!==i&&null!==a&&(this.LimitChartItems(this.networkChart),this.networkChart.data.labels.push(h),this.networkChart.data.datasets[0].data.push(i),this.networkChart.data.datasets[1].data.push(a)),null!==o&&null!==n&&(this.LimitChartItems(this.ioChart),this.ioChart.data.labels.push(h),this.ioChart.data.datasets[0].data.push(o),this.ioChart.data.datasets[1].data.push(n)),null===r&&null===r||(this.LimitChartItems(this.diskPersistentChart),this.diskPersistentChart.data.labels.push(h),this.diskPersistentChart.data.datasets[0].data.push(r),this.diskPersistentChart.data.datasets[1].data.push(l),this.diskPersistentChart.data.datasets[1].hidden=0===l),null!==c&&(this.LimitChartItems(this.diskFileSystemChart),this.diskFileSystemChart.data.labels.push(h),this.diskFileSystemChart.data.datasets[0].data.push(c)),this.noDat=!0,this.updateAxes()},updateCharts(){this.memoryChart.update(),this.cpuChart.update(),this.networkChart.update(),this.ioChart.update(),this.diskPersistentChart.update(),this.diskFileSystemChart.update()},formatDataSize(t,e={base:10,round:1}){if(t<=5)return`${t} B`;const s=10===e.base?1e3:1024,i=10===e.base?["B","KB","MB","GB"]:["B","KiB","MiB","GiB"];if(0===t)return"0 B";let a=t,o=0;while(a>=s&&o({uid:t[0],pid:t[1],ppid:t[2],c:t[3],stime:t[4],tty:t[5],time:t[6],cmd:t[7]}))):(this.processes=[],console.error("Selected container has changed. Proccess list discarded."))}catch(s){console.error("Error fetching processes:",s)}},initCharts(){this.memoryChart&&(this.memoryChart.destroy(),this.cpuChart.destroy(),this.networkChart.destroy(),this.ioChart.destroy(),this.diskPersistentChart.destroy(),this.diskFileSystemChart.destroy());const t=document.getElementById("memoryChart").getContext("2d"),e=document.getElementById("cpuChart").getContext("2d"),s=document.getElementById("networkChart").getContext("2d"),i=document.getElementById("ioChart").getContext("2d"),a=document.getElementById("diskPersistentChart").getContext("2d"),o=document.getElementById("diskFileSystemChart").getContext("2d"),n={id:"noDataPlugin",beforeDraw:t=>{if(t.data.datasets.every((t=>0===t.data.length))&&!0===this.noDat){const{ctx:e,width:s,height:i}=t;e.save(),e.font="bold 16px Arial","dark"===this.skin?e.fillStyle="rgba(255, 255, 255, 0.6)":e.fillStyle="rgba(0, 0, 0, 0.6)",e.textAlign="center",e.textBaseline="middle",e.fillText("No Data Available",s/2,i/2),e.restore()}},afterDraw:t=>{if(t.data.datasets.every((t=>0===t.data.length))&&!0===this.noDat){const{ctx:e,width:s,height:i}=t;e.save(),e.font="bold 16px Arial","dark"===this.skin?e.fillStyle="rgba(255, 255, 255, 0.6)":e.fillStyle="rgba(0, 0, 0, 0.6)",e.textAlign="center",e.textBaseline="middle",e.fillText("No Data Available",s/2,i/2),e.restore()}}};ur.register(n),this.diskPersistentChart=new ur(a,{type:"line",data:{labels:[],datasets:[{label:"Bind",data:[],fill:!0,backgroundColor:"rgba(119,255,132,0.3)",borderColor:"rgba(119,255,132,0.6)",tension:.4},{label:"Volume",data:[],borderColor:"rgba(155,99,132,1)",borderDash:[5,5],pointRadius:2,borderWidth:2,tension:.5,fill:!1}]},options:{responsive:!0,scales:{x:{title:{display:!0,text:""}},y:{title:{display:!0,text:""},beginAtZero:!0,ticks:{callback:t=>this.formatDataSize(t,{base:10,round:0})}}},plugins:{tooltip:{mode:"index",intersect:!1,callbacks:{label:t=>{const e=t.dataset.label,s=t.raw;return`${e}: ${this.formatDataSize(s,{base:10,round:1})}`}}},legend:{display:!0,labels:{filter:t=>{if(!this.diskPersistentChart)return!0;if(1===t.datasetIndex){const e=this.diskPersistentChart.data.datasets[t.datasetIndex]?.data,s=Array.isArray(e)&&e.some((t=>t>0));return s}return!0}}}}}}),this.diskFileSystemChart=new ur(o,{type:"line",data:{labels:[],datasets:[{label:"File System (RootFS)",data:[],fill:!0,backgroundColor:"rgba(159,155,132,0.3)",borderColor:"rgba(159,155,132,0.6)",tension:.4}]},options:{responsive:!0,scales:{x:{title:{display:!0,text:""}},y:{title:{display:!0,text:""},beginAtZero:!0,ticks:{callback:t=>this.formatDataSize(t,{base:10,round:0})}}},plugins:{tooltip:{mode:"index",intersect:!1,callbacks:{label:t=>{const e=t.dataset.label,s=t.raw;return`${e}: ${this.formatDataSize(s,{base:10,round:1})}`}}}}}}),this.memoryChart=new ur(t,{type:"line",data:{labels:[],datasets:[{label:"Memory Allocated",data:[],fill:!0,backgroundColor:"rgba(151,187,205,0.4)",borderColor:"rgba(151,187,205,0.6)",yAxisID:"y",pointRadius:2,borderWidth:2,tension:.4},{label:"Memory Utilization (%)",data:[],fill:!1,borderColor:"rgba(255,99,132,1)",borderDash:[5,5],yAxisID:"y1",pointRadius:2,borderWidth:2,tension:.4}]},options:{responsive:!0,scales:{x:{title:{display:!0}},y:{id:"y",title:{display:!0},beginAtZero:!0,precision:0,ticks:{callback:t=>this.formatDataSize(t,{base:2,round:1})}},y1:{id:"y1",title:{display:!0},beginAtZero:!0,position:"right",grid:{display:!1},ticks:{callback:t=>`${t}%`}}},plugins:{tooltip:{mode:"index",intersect:!1,callbacks:{label:t=>{const e=t.dataset.label,s=t.raw;return e.includes("%")?`Memory Utilization: ${s}%`:`${e}: ${this.formatDataSize(s,{base:2,round:1})}`},footer:()=>`Available Memory: ${this.formatDataSize(this.memoryLimit,{base:2,round:1})}`}}}}}),this.cpuChart=new ur(e,{type:"line",data:{labels:[],datasets:[{label:"CPU Allocated",data:[],fill:!0,backgroundColor:"rgba(255,99,132,0.4)",borderColor:"rgba(255,99,132,0.6)",tension:.4},{label:"CPU Utilization (%)",fill:!1,borderColor:"rgba(255,99,132,1)",borderDash:[5,5],yAxisID:"y1",pointRadius:2,borderWidth:2,tension:.4}]},options:{responsive:!0,scales:{x:{title:{display:!0}},y:{id:"y",title:{display:!0},beginAtZero:!0,ticks:{callback:t=>`${t} CPU`}},y1:{id:"y1",title:{display:!0},beginAtZero:!0,position:"right",grid:{display:!1},ticks:{callback:t=>`${t}%`}}},plugins:{tooltip:{mode:"index",intersect:!1,callbacks:{label:t=>{const e=t.dataset.label,s=t.raw;return e.includes("%")?`CPU Utilization: ${s}%`:`CPU Allocated: ${s} CPU`}}}}}}),this.networkChart=new ur(s,{type:"line",data:{labels:[],datasets:[{label:"RX on eth0",data:[],fill:!0,backgroundColor:"rgba(99,255,132,0.4)",borderColor:"rgba(99,255,132,0.6)",tension:.4},{label:"TX on eth0",data:[],fill:!1,borderColor:"rgba(132,99,255,1)",tension:.4}]},options:{responsive:!0,scales:{x:{title:{display:!0,text:""}},y:{title:{display:!0,text:""},beginAtZero:!0,ticks:{callback:t=>this.formatDataSize(t,{base:10,round:0})}}},plugins:{tooltip:{mode:"index",intersect:!1,callbacks:{label:t=>{const e=t.dataset.label,s=t.raw;return`${e}: ${this.formatDataSize(s)}`}}}}}}),this.ioChart=new ur(i,{type:"line",data:{labels:[],datasets:[{label:"Read",data:[],fill:!1,borderColor:"rgba(99,132,255,0.6)",tension:.4},{label:"Write",data:[],fill:!0,backgroundColor:"rgba(255,132,99,0.4)",borderColor:"rgba(255,132,99,0.6)",tension:.4}]},options:{responsive:!0,scales:{x:{title:{display:!0}},y:{title:{display:!0},beginAtZero:!0,ticks:{callback:t=>this.formatDataSize(t,{base:10,round:0})}}},plugins:{tooltip:{mode:"index",intersect:!1,callbacks:{label:t=>{const e=t.dataset.label,s=t.raw;return`${e}: ${this.formatDataSize(s)}`}}}}}}),this.updateAxes()},startPollingStats(t=!1){this.timerStats||(this.timerStats=setInterval((()=>{this.fetchStats()}),this.refreshRateMonitoring)),!0===t&&(this.buttonStats=!1)},stopPollingStats(t=!1){clearInterval(this.timerStats),this.timerStats=null,!0===t&&(this.buttonStats=!0)},clearCharts(){this.noDat=!1,this.memoryChart.data.labels=[],this.memoryChart.data.datasets.forEach((t=>{t.data=[]})),this.memoryChart.options.scales.y.max=1.2,this.memoryChart.options.scales.y1.max=120,this.memoryChart.update(),this.memoryChart.update(),this.cpuChart.data.labels=[],this.cpuChart.data.datasets.forEach((t=>{t.data=[]})),this.cpuChart.options.scales.y.max=1.2,this.cpuChart.options.scales.y1.max=120,this.cpuChart.update(),this.networkChart.data.labels=[],this.networkChart.data.datasets.forEach((t=>{t.data=[]})),this.networkChart.update(),this.ioChart.data.labels=[],this.ioChart.data.datasets.forEach((t=>{t.data=[]})),this.ioChart.update(),this.diskPersistentChart.data.labels=[],this.diskPersistentChart.data.datasets.forEach((t=>{t.data=[]})),this.diskPersistentChart.update(),this.diskFileSystemChart.data.labels=[],this.diskFileSystemChart.data.datasets.forEach((t=>{t.data=[]})),this.diskFileSystemChart.update(),this.processes=[]},extractTimestamp(t){return t.split(" ")[0]},toggleLogSelection(t){const e=this.extractTimestamp(t);this.selectedLog.includes(e)?this.selectedLog=this.selectedLog.filter((t=>t!==e)):this.selectedLog.push(e)},unselectText(){this.selectedLog=[]},async copyCode(){try{let t="";t=this.isLineByLineMode&&this.selectedLog.length>0?this.filteredLogs.filter((t=>this.selectedLog.includes(this.extractTimestamp(t)))).map((t=>t)).join("\n"):this.logs.join("\n");const e=/\u001b\[[0-9;]*[a-zA-Z]/g;if(t=t.replace(e,""),!this.displayTimestamps){const e=/^[^\s]+\s*/;t=t.split(/\r?\n/).map((t=>t.replace(e,""))).join("\n")}if(navigator.clipboard)await navigator.clipboard.writeText(t);else{const e=document.createElement("textarea");e.value=t,document.body.appendChild(e),e.select(),document.execCommand("copy"),document.body.removeChild(e)}this.copied=!0,setTimeout((()=>{this.copied=!1}),2e3)}catch(t){console.error("Failed to copy code:",t)}},debounce(t,e){return(...s)=>{this.debounceTimeout&&clearTimeout(this.debounceTimeout),this.debounceTimeout=setTimeout((()=>t(...s)),e)}},async manualFetchLogs(){this.manualInProgress=!0,await this.fetchLogsForSelectedContainer(),this.manualInProgress=!1},async fetchLogsForSelectedContainer(){if(5!==this.$refs.managementTabs?.currentTab)return;if(console.log("fetchLogsForSelectedContainer in progress..."),this.appSpecification.version>=4&&!this.selectedApp)return void console.error("No container selected");if(this.requestInProgress)return void console.log("Request in progress, skipping this call.");const t=this.selectedApp?`${this.selectedApp}_${this.appSpecification.name}`:this.appSpecification.name;this.requestInProgress=!0,this.noLogs=!1;try{const e=this.selectedApp,s=this.fetchAllLogs?"all":this.lineCount||100,i=await this.executeLocalCommand(`/apps/applogpolling/${t}/${s}/${this.sinceTimestamp}`);this.selectedApp===e?(this.logs=i.data?.logs,"success"===i.data?.status&&0===this.logs?.length&&(this.noLogs=!0),this.logs.length>0&&this.$nextTick((()=>{this.autoScroll&&this.scrollToBottom()}))):console.error("Selected container has changed. Logs discarded.")}catch(e){console.error("Error fetching logs:",e.message),this.clearLogs(),!0===this.pollingEnabled&&(this.pollingEnabled=!1,this.stopPolling())}finally{console.log("fetchLogsForSelectedContainer completed..."),this.requestInProgress=!1}},startPolling(){this.pollingInterval&&clearInterval(this.pollingInterval),this.pollingInterval=setInterval((async()=>{await this.fetchLogsForSelectedContainer()}),this.refreshRate)},stopPolling(){this.pollingInterval&&(clearInterval(this.pollingInterval),this.pollingInterval=null)},restartPolling(){this.stopPolling(),this.fetchLogsForSelectedContainer(),this.pollingEnabled&&this.startPolling()},togglePolling(){this.pollingEnabled?this.startPolling():this.stopPolling()},formatLog(t){const e=new(pt());if(this.displayTimestamps){const[s,...i]=t.split(" "),a=i.join(" ");return`${s} - ${e.toHtml(a)}`}{const s=/^[^\s]+\s*/;return e.toHtml(t.replace(s,""))}},scrollToBottom(){const t=this.$refs.logsContainer;t&&(t.scrollTop=t.scrollHeight)},clearLogs(){this.logs=[]},clearDateFilter(){this.sinceTimestamp=""},handleContainerChange(){const t=this.debounce(this.fetchLogsForSelectedContainer,300);t()},async refreshInfo(){this.$refs.BackendRefresh.blur(),await this.getInstancesForDropDown(),this.selectedIpChanged(),this.getApplicationLocations().catch((()=>{this.isBusy=!1,this.showToast("danger","Error loading application locations")}))},copyMessageToSign(){const{copy:t}=(0,X.VPI)({source:this.dataToSign,legacy:!0});t(),this.tooltipText="Copied!",setTimeout((()=>{this.$refs.copyButtonRef&&(this.$refs.copyButtonRef.blur(),this.tooltipText="")}),1e3),setTimeout((()=>{this.tooltipText="Copy to clipboard"}),1500)},getIconName(t,e){const s=t/e*100;let i;return i=s<=60?"battery-full":s>60&&s<=80?"battery-half":"battery",i},getIconColorStyle(t,e){const s=t/e*100;let i;return i=s<=60?"green":s>60&&s<=80?"yellow":"red",{color:i}},sortNameFolder(t,e){return(t.isDirectory?`..${t.name}`:t.name).localeCompare(e.isDirectory?`..${e.name}`:e.name)},sortTypeFolder(t,e){return t.isDirectory&&e.isFile?-1:t.isFile&&e.isDirectory?1:0},sort(t,e,s,i){return"name"===s?this.sortNameFolder(t,e,i):"type"===s?this.sortTypeFolder(t,e,i):"modifiedAt"===s?t.modifiedAt>e.modifiedAt?-1:t.modifiedAte.size?-1:t.size""!==t)),s=e.map((t=>` ${t} `)).join("/");this.inputPathValue=`/${s}`,this.loadFolder(this.currentFolder)},async loadFolder(t,e=!1){try{this.filterFolder="",e||(this.folderView=[]),this.loadingFolder=!0;const s=await this.executeLocalCommand(`/apps/getfolderinfo/${this.appName}/${this.selectedAppVolume}/${encodeURIComponent(t)}`);this.loadingFolder=!1,"success"===s.data.status?(this.folderView=s.data.data,console.log(this.folderView)):this.showToast("danger",s.data.data.message||s.data.data)}catch(s){this.loadingFolder=!1,console.log(s.message),this.showToast("danger",s.message||s)}},async createFolder(t){try{let e=t;""!==this.currentFolder&&(e=`${this.currentFolder}/${t}`);const s=await this.executeLocalCommand(`/apps/createfolder/${this.appName}/${this.selectedAppVolume}/${encodeURIComponent(e)}`);"error"===s.data.status?"EEXIST"===s.data.data.code?this.showToast("danger",`Folder ${t} already exists`):this.showToast("danger",s.data.data.message||s.data.data):(this.loadFolder(this.currentFolder,!0),this.createDirectoryDialogVisible=!1)}catch(e){this.loadingFolder=!1,console.log(e.message),this.showToast("danger",e.message||e)}this.newDirName=""},cancelDownload(t){this.abortToken[t].cancel(`Download of ${t} cancelled`),this.downloaded[t]="",this.total[t]=""},async download(t,e=!1){try{const s=this,i=this.currentFolder,a=i?`${i}/${t}`:t,o={headers:this.zelidHeader,responseType:"blob",onDownloadProgress(i){const{loaded:a,total:o,lengthComputable:n}=i;if(n){const i=a/o*100;e?s.updateFileProgressVolume(`${t}.zip`,i):s.updateFileProgressVolume(t,i)}else console.log("Total file size is unknown. Cannot compute progress percentage."),e?s.updateFileProgressVolume(`${t}.zip`,"Downloading..."):s.updateFileProgressVolume(t,"Downloading...")}};let n;if(e?(this.showToast("info","Directory download initiated. Please wait..."),n=await this.executeLocalCommand(`/apps/downloadfolder/${this.appName}/${this.selectedAppVolume}/${encodeURIComponent(a)}`,null,o)):n=await this.executeLocalCommand(`/apps/downloadfile/${this.appName}/${this.selectedAppVolume}/${encodeURIComponent(a)}`,null,o),console.log(n),!e&&n.data&&200===n.status&&s.updateFileProgressVolume(t,100),"error"===n.data.status)this.showToast("danger",n.data.data.message||n.data.data);else{const s=window.URL.createObjectURL(new Blob([n.data])),i=document.createElement("a");i.href=s,e?i.setAttribute("download",`${t}.zip`):i.setAttribute("download",t),document.body.appendChild(i),i.click()}}catch(s){console.log(s.message),s.message?s.message.startsWith("Download")||this.showToast("danger",s.message):this.showToast("danger",s)}},beautifyValue(t){const e=t.split(".");return e[0].length>=4&&(e[0]=e[0].replace(/(\d)(?=(\d{3})+$)/g,"$1,")),e.join(".")},refreshFolder(){const t=this.currentFolder.split("/").filter((t=>""!==t)),e=t.map((t=>` ${t} `)).join("/");this.inputPathValue=`/${e}`,this.loadFolder(this.currentFolder,!0),this.storageStats()},refreshFolderSwitch(){this.currentFolder="";const t=this.currentFolder.split("/").filter((t=>""!==t)),e=t.map((t=>` ${t} `)).join("/");this.inputPathValue=`/${e}`,this.loadFolder(this.currentFolder,!0),this.storageStats()},async deleteFile(t){try{const e=this.currentFolder,s=e?`${e}/${t}`:t,i=await this.executeLocalCommand(`/apps/removeobject/${this.appName}/${this.selectedAppVolume}/${encodeURIComponent(s)}`);"error"===i.data.status?this.showToast("danger",i.data.data.message||i.data.data):(this.refreshFolder(),this.showToast("success",`${t} deleted`))}catch(e){this.showToast("danger",e.message||e)}},rename(t){this.renameDialogVisible=!0;let e=t;""!==this.currentFolder&&(e=`${this.currentFolder}/${t}`),this.fileRenaming=e,this.newName=t},async confirmRename(){this.renameDialogVisible=!1;try{const t=this.fileRenaming,e=this.newName,s=await this.executeLocalCommand(`/apps/renameobject/${this.appName}/${this.selectedAppVolume}/${encodeURIComponent(t)}/${e}`);console.log(s),"error"===s.data.status?this.showToast("danger",s.data.data.message||s.data.data):(t.includes("/")?this.showToast("success",`${t.split("/").pop()} renamed to ${e}`):this.showToast("success",`${t} renamed to ${e}`),this.loadFolder(this.currentFolder,!0))}catch(t){this.showToast("danger",t.message||t)}},upFolder(){this.changeFolder("..")},onResize(){this.windowWidth=window.innerWidth},handleRadioClick(){"Upload File"===this.selectedRestoreOption&&this.loadBackupList(this.appName,"upload","files"),"FluxDrive"===this.selectedRestoreOption&&this.getFluxDriveBackupList(),console.log("Radio button clicked. Selected option:",this.selectedOption)},getUploadFolder(){if(this.selectedIp){const t=this.selectedIp.split(":")[0],e=this.selectedIp.split(":")[1]||16127;if(this.currentFolder){const s=encodeURIComponent(this.currentFolder);return this.ipAccess?`http://${t}:${e}/ioutils/fileupload/volume/${this.appName}/${this.selectedAppVolume}/${s}`:`https://${t.replace(/\./g,"-")}-${e}.node.api.runonflux.io/ioutils/fileupload/volume/${this.appName}/${this.selectedAppVolume}/${s}`}return this.ipAccess?`http://${t}:${e}/ioutils/fileupload/volume/${this.appName}/${this.selectedAppVolume}`:`https://${t.replace(/\./g,"-")}-${e}.node.api.runonflux.io/ioutils/fileupload/volume/${this.appName}/${this.selectedAppVolume}`}},getUploadFolderBackup(t){const e=this.selectedIp.split(":")[0],s=this.selectedIp.split(":")[1]||16127,i=encodeURIComponent(t);return this.ipAccess?`http://${e}:${s}/ioutils/fileupload/backup/${this.appName}/${this.restoreRemoteFile}/null/${i}`:`https://${e.replace(/\./g,"-")}-${s}.node.api.runonflux.io/ioutils/fileupload/backup/${this.appName}/${this.restoreRemoteFile}/null/${i}`},addAndConvertFileSizes(t,e="auto",s=2){const i={B:1,KB:1024,MB:1048576,GB:1073741824},a=(t,e)=>t/i[e.toUpperCase()],o=(t,e)=>{const i="B"===e?t.toFixed(0):t.toFixed(s);return`${i} ${e}`};let n;if(Array.isArray(t)&&t.length>0)n=+t.reduce(((t,e)=>t+(e.file_size||0)),0);else{if("number"!==typeof+t)return console.error("Invalid sizes parameter"),"N/A";n=+t}if(isNaN(n))return console.error("Total size is not a valid number"),"N/A";if("auto"===e){let t,e=n;return Object.keys(i).forEach((s=>{const i=a(n,s);i>=1&&(void 0===e||ie.file_name===t[0].name&&e.component!==this.restoreRemoteFile));if(-1!==s)return this.showToast("warning",`'${e.name}' is already in the upload queue for other component.`),!1;const i=this.files.findIndex((t=>t.component===this.restoreRemoteFile));-1!==i?this.$set(this.files,i,{selected_file:e,uploading:!1,uploaded:!1,progress:0,path:`${this.volumePath}/backup/upload`,component:this.restoreRemoteFile,file_name:`backup_${this.restoreRemoteFile.toLowerCase()}.tar.gz`,file_size:e.size}):this.files.push({selected_file:e,uploading:!1,uploaded:!1,progress:0,path:`${this.volumePath}/backup/upload`,component:this.restoreRemoteFile,file_name:`backup_${this.restoreRemoteFile.toLowerCase()}.tar.gz`,file_size:e.size})}return!0},removeFile(t){this.files=this.files.filter((e=>e.selected_file.name!==t.selected_file.name))},async processChunks(t,e){const s={restore_upload:"restoreFromUploadStatus",restore_remote:"restoreFromRemoteURLStatus",backup:"tarProgress",restore_fluxdrive:"restoreFromFluxDriveStatus"};for(const i of t)if(""!==i){const t=s[e];t&&(this[t]=i,"restore_upload"===e&&i.includes("Error:")?(console.log(i),this.changeAlert("danger",i,"showTopUpload",!0)):"restore_upload"===e&&i.includes("Finalizing")?setTimeout((()=>{this.changeAlert("success","Restore completed successfully","showTopUpload",!0)}),5e3):"restore_remote"===e&&i.includes("Error:")?this.changeAlert("danger",i,"showTopRemote",!0):"restore_remote"===e&&i.includes("Finalizing")?setTimeout((()=>{this.changeAlert("success","Restore completed successfully","showTopRemote",!0),this.restoreRemoteUrlItems=[]}),5e3):"restore_fluxdrive"===e&&i.includes("Error:")?this.changeAlert("danger",i,"showTopFluxDrive",!0):"restore_fluxdrive"===e&&i.includes("Finalizing")&&setTimeout((()=>{this.changeAlert("success","Restore completed successfully","showTopFluxDrive",!0),this.restoreRemoteUrlItems=[]}),5e3))}},changeAlert(t,e,s,i){this.alertVariant=t,this.alertMessage=e,this[s]=i},startUpload(){this.showTopUpload=!1;const t=this;return new Promise((async(e,s)=>{try{this.restoreFromUpload=!0,this.restoreFromUploadStatus="Uploading...";const s=this.files.map((t=>new Promise((async(e,s)=>{if(t.uploaded||t.uploading||!t.selected_file)e();else try{await this.upload(t),e()}catch(i){s(i)}}))));await Promise.all(s),this.files.forEach((t=>{t.uploading=!1,t.uploaded=!1,t.progress=0})),this.restoreFromUploadStatus="Initializing restore jobs...";const i=this.buildPostBody(this.appSpecification,"restore","upload");let a;for(const t of this.files)a=this.updateJobStatus(i,t.component,"restore");const o=localStorage.getItem("zelidauth"),n={zelidauth:o,"Content-Type":"application/json","Access-Control-Allow-Origin":"*",Connection:"keep-alive"},r=this.selectedIp.split(":")[0],l=this.selectedIp.split(":")[1]||16127;let c=`https://${r.replace(/\./g,"-")}-${l}.node.api.runonflux.io/apps/appendrestoretask`;this.ipAccess&&(c=`http://${r}:${l}/apps/appendrestoretask`);const p=await fetch(c,{method:"POST",body:JSON.stringify(a),headers:n}),d=p.body.getReader();await new Promise(((e,s)=>{function i(){d.read().then((async({done:s,value:a})=>{if(s)return void e();const o=new TextDecoder("utf-8").decode(a),n=o.split("\n");await t.processChunks(n,"restore_upload"),i()}))}i()})),this.restoreFromUpload=!1,this.restoreFromUploadStatus="",this.loadBackupList(this.appName,"upload","files"),e()}catch(i){s(i)}}))},async upload(t){return new Promise(((e,s)=>{const i=this;if("undefined"===typeof XMLHttpRequest)return void s("XMLHttpRequest is not supported.");const a=new XMLHttpRequest,o=this.getUploadFolderBackup(t.file_name);a.upload&&(a.upload.onprogress=function(e){e.total>0&&(e.percent=e.loaded/e.total*100),t.progress=e.percent});const n=new FormData;n.append(t.selected_file.name,t.selected_file),t.uploading=!0,a.onerror=function(e){i.restoreFromUpload=!1,i.restoreFromUploadStatus="",i.files.forEach((t=>{t.uploading=!1,t.uploaded=!1,t.progress=0})),i.showToast("danger",`An error occurred while uploading ${t.selected_file.name}, try to relogin`),s(e)},a.onload=function(){if(a.status<200||a.status>=300)return console.error(a.status),i.restoreFromUpload=!1,i.restoreFromUploadStatus="",i.files.forEach((t=>{t.uploading=!1,t.uploaded=!1,t.progress=0})),i.showToast("danger",`An error occurred while uploading '${t.selected_file.name}' - Status code: ${a.status}`),void s(a.status);t.uploaded=!0,t.uploading=!1,i.$emit("complete"),e()},a.open("post",o,!0);const r=this.zelidHeader||{},l=Object.keys(r);for(let t=0;tt+parseFloat(e.file_size)),0)},RestoreTableBuilder(t){const e=t.toString(),s=e.split("_")[0];return[{key:"component",label:"Component Name",thStyle:{width:"25%"}},{key:t.toString().toLowerCase(),label:s,thStyle:{width:"70%"}},{key:"file_size",label:"Size",thStyle:{width:"10%"}},{key:"actions",label:"Action",thStyle:{width:"5%"}}]},addAllTags(){this.selectedBackupComponents=[...this.selectedBackupComponents,...this.components]},clearSelected(){this.$refs.selectableTable.clearSelected()},selectAllRows(){this.$refs.selectableTable.selectAllRows()},selectStorageOption(t){this.selectedStorageMethod=t},buildPostBody(t,e,s=""){const i={appname:t.name,..."restore"===e?{type:s}:{},[e]:t.compose.map((t=>({component:t.name,[e]:!1,..."restore"===e&&"remote"===s?{url:""}:{}})))};return i},updateJobStatus(t,e,s,i=[]){const a=t[s].find((t=>t.component===e));if(a){if(a[s]=!0,"restore"===s&&"remote"===t?.type){const t=i.find((t=>t.component===e));t?(a.url=t.url||"",console.log(`${t.url}`)):console.log(`URL info not found for component ${e}.`)}console.log(`Status for ${e} set to true for ${s}.`)}else console.log(`Component ${e} not found in the ${s} array.`);return t},async createBackup(t,e){if(0===this.selectedBackupComponents?.length)return;this.backupProgress=!0,this.tarProgress="Initializing backup jobs...";const s=localStorage.getItem("zelidauth"),i={zelidauth:s,"Content-Type":"application/json","Access-Control-Allow-Origin":"*",Connection:"keep-alive"},a=this.buildPostBody(this.appSpecification,"backup");let o;for(const h of e)o=this.updateJobStatus(a,h,"backup");const n=this.selectedIp.split(":")[0],r=this.selectedIp.split(":")[1]||16127;let l=`https://${n.replace(/\./g,"-")}-${r}.node.api.runonflux.io/apps/appendbackuptask`;this.ipAccess&&(l=`http://${n}:${r}/apps/appendbackuptask`);const c=await fetch(l,{method:"POST",body:JSON.stringify(o),headers:i}),p=this,d=c.body.getReader();await new Promise(((t,e)=>{function s(){d.read().then((async({done:e,value:i})=>{if(e)return void t();const a=new TextDecoder("utf-8").decode(i),o=a.split("\n");await p.processChunks(o,"backup"),s()}))}s()})),setTimeout((()=>{this.backupProgress=!1}),5e3),this.loadBackupList()},onRowSelected(t){this.backupToUpload=t.map((t=>{const e=t.component,s=this.backupList.find((t=>t.component===e));return{component:e,file:s?s.file:null,file_size:s?s.file_size:null,file_name:s?s.file_name:null,create:s?s.create:null}})).filter((t=>null!==t.file))},applyFilter(){this.$nextTick((()=>{this.checkpoints.forEach((t=>{t._showDetails=!0}))})),console.log(this.appSpecification.compose),this.components=this.appSpecification.compose.map((t=>t.name))},onFilteredBackup(t){this.totalRows=t.length,this.currentPage=1},addAllBackupComponents(t){const e=this.checkpoints.find((e=>e.timestamp===t)),s=e.components.map((t=>({component:t.component,file_url:t.file_url,timestamp:e.timestamp,file_size:t.file_size})));this.newComponents=s},addComponent(t,e){const s=this.newComponents.findIndex((e=>e.component===t.component));-1!==s?this.$set(this.newComponents,s,{timestamp:e,component:t.component,file_url:t.file_url,file_size:t.file_size}):this.newComponents.push({component:t.component,timestamp:e,file_url:t.file_url,file_size:t.file_size})},formatName(t){return`backup_${t.timestamp}`},formatDateTime(t,e=!1){const s=t>1e12,i=s?new Date(t):new Date(1e3*t);return e&&i.setHours(i.getHours()+24),i.toLocaleString()},addRemoteFile(){this.selectFiles()},async restoreFromRemoteFile(){const t=localStorage.getItem("zelidauth");this.showTopRemote=!1,this.downloadingFromUrl=!0,this.restoreFromRemoteURLStatus="Initializing restore jobs...";const e={zelidauth:t,"Content-Type":"application/json","Access-Control-Allow-Origin":"*",Connection:"keep-alive"},s=this.buildPostBody(this.appSpecification,"restore","remote");let i;for(const p of this.restoreRemoteUrlItems)i=this.updateJobStatus(s,p.component,"restore",this.restoreRemoteUrlItems);const a=this.selectedIp.split(":")[0],o=this.selectedIp.split(":")[1]||16127;let n=`https://${a.replace(/\./g,"-")}-${o}.node.api.runonflux.io/apps/appendrestoretask`;this.ipAccess&&(n=`http://${a}:${o}/apps/appendrestoretask`);const r=await fetch(n,{method:"POST",body:JSON.stringify(i),headers:e}),l=this,c=r.body.getReader();await new Promise(((t,e)=>{function s(){c.read().then((async({done:e,value:i})=>{if(e)return void t();const a=new TextDecoder("utf-8").decode(i),o=a.split("\n");await l.processChunks(o,"restore_remote"),s()}))}s()})),this.downloadingFromUrl=!1,this.restoreFromRemoteURLStatus=""},async addRemoteUrlItem(t,e,s=!1){if((s||this.isValidUrl)&&""!==this.restoreRemoteUrl.trim()&&null!==this.restoreRemoteUrlComponent){if(this.remoteFileSizeResponse=await this.executeLocalCommand(`/backup/getremotefilesize/${encodeURIComponent(this.restoreRemoteUrl.trim())}/B/0/true/${this.appName}`),"success"!==this.remoteFileSizeResponse.data?.status)return void this.showToast("danger",this.remoteFileSizeResponse.data?.data.message||this.remoteFileSizeResponse.data?.massage);if(this.volumeInfoResponse=await this.executeLocalCommand(`/backup/getvolumedataofcomponent/${t}/${e}/B/0/size,available,mount`),"success"!==this.volumeInfoResponse.data?.status)return void this.showToast("danger",this.volumeInfoResponse.data?.data.message||this.volumeInfoResponse.data?.data);if(this.remoteFileSizeResponse.data.data>this.volumeInfoResponse.data.data.available)return void this.showToast("danger",`File is too large (${this.addAndConvertFileSizes(this.remoteFileSizeResponse.data.data)})...`);const s=this.restoreRemoteUrlItems.findIndex((t=>t.url===this.restoreRemoteUrl));if(-1!==s)return void this.showToast("warning",`'${this.restoreRemoteUrl}' is already in the download queue for other component.`);const i=this.restoreRemoteUrlItems.findIndex((t=>t.component===this.restoreRemoteUrlComponent));if(0===this.remoteFileSizeResponse.data.data||null===this.remoteFileSizeResponse.data.data)return;-1!==i?(this.restoreRemoteUrlItems[i].url=this.restoreRemoteUrl,this.restoreRemoteUrlItems[i].file_size=this.remoteFileSizeResponse.data.data):this.restoreRemoteUrlItems.push({url:this.restoreRemoteUrl,component:this.restoreRemoteUrlComponent,file_size:this.remoteFileSizeResponse.data.data})}},async deleteItem(t,e,s="",i=""){const a=e.findIndex((t=>t.file===s));-1!==a&&(e[a]?.selected_file||"upload"!==i||(console.log(e[a].file),await this.executeLocalCommand(`/backup/removebackupfile/${encodeURIComponent(e[a].file)}/${this.appName}`))),e.splice(t,1)},async loadBackupList(t=this.appName,e="local",s="backupList"){const i=[];for(const a of this.components)this.volumeInfo=await this.executeLocalCommand(`/backup/getvolumedataofcomponent/${t}/${a}/B/0/mount`),this.volumePath=this.volumeInfo.data?.data,this.backupFile=await this.executeLocalCommand(`/backup/getlocalbackuplist/${encodeURIComponent(`${this.volumePath.mount}/backup/${e}`)}/B/0/true/${t}`),this.backupItem=this.backupFile.data?.data,Array.isArray(this.backupItem)&&(this.BackupItem={isActive:!1,component:a,create:+this.backupItem[0].create,file_size:this.backupItem[0].size,file:`${this.volumePath.mount}/backup/${e}/${this.backupItem[0].name}`,file_name:`${this.backupItem[0].name}`},i.push(this.BackupItem));console.log(JSON.stringify(s)),this[s]=i},allDownloadsCompleted(){return this.computedFileProgress.every((t=>100===t.progress))},allDownloadsCompletedVolume(){return this.computedFileProgressVolume.every((t=>100===t.progress))&&setTimeout((()=>{this.fileProgressVolume=this.fileProgressVolume.filter((t=>100!==t.progress))}),5e3),this.computedFileProgressVolume.every((t=>100===t.progress))},updateFileProgress(t,e,s,i,a){this.$nextTick((()=>{const t=this.fileProgress.findIndex((t=>t.fileName===a));-1!==t?this.$set(this.fileProgress,t,{fileName:a,progress:e}):this.fileProgress.push({fileName:a,progress:e})}))},updateFileProgressFD(t,e,s,i,a){this.$nextTick((()=>{const t=this.fileProgressFD.findIndex((t=>t.fileName===a));-1!==t?this.$set(this.fileProgressFD,t,{fileName:a,progress:e}):this.fileProgressFD.push({fileName:a,progress:e})}))},updateFileProgressVolume(t,e){this.$nextTick((()=>{const s=this.fileProgressVolume.findIndex((e=>e.fileName===t));-1!==s?this.$set(this.fileProgressVolume,s,{fileName:t,progress:e}):this.fileProgressVolume.push({fileName:t,progress:e})}))},rowClassFluxDriveBackups(t,e){return t&&"row"===e?"":"table-no-padding"},async deleteRestoreBackup(t,e,s=0){if(0!==s){this.newComponents=this.newComponents.filter((t=>t.timestamp!==s));try{const t=localStorage.getItem("zelidauth"),i={headers:{zelidauth:t}},a={appname:this.appName,timestamp:s},o=await pc.post(`${this.fluxDriveEndPoint}/removeCheckpoint`,a,i);if(console.error(o.data),o&&o.data&&"success"===o.data.status){const t=e.findIndex((t=>t.timestamp===s));return e.splice(t,1),this.showToast("success","Checkpoint backup removed successfully."),!0}return this.showToast("danger",o.data.data.message),!1}catch(i){console.error("Error removing checkpoint",i),this.showToast("Error removing checkpoint")}}return!1},async deleteLocalBackup(t,e,s=0){if(0===s){for(const t of e){const e=t.file;await this.executeLocalCommand(`/backup/removebackupfile/${encodeURIComponent(e)}/${this.appName}`)}this.backupList=[],this.backupToUpload=[]}else{this.status=await this.executeLocalCommand(`/backup/removebackupfile/${encodeURIComponent(s)}/${this.appName}`);const i=e.findIndex((e=>e.component===t));e.splice(i,1)}},async downloadAllBackupFiles(t){try{this.showProgressBar=!0;const e=localStorage.getItem("zelidauth"),s=this,i={headers:{zelidauth:e},responseType:"blob",onDownloadProgress(t){const{loaded:e,total:i,target:a}=t,o=decodeURIComponent(a.responseURL),n=o.lastIndexOf("/"),r=-1!==n?o.slice(0,n):o,l=r.split("/").pop(),c=e/i*100,p=s.backupList.find((t=>t.file.endsWith(l)));s.updateFileProgress(l,c,e,i,p.component)}},a=t.map((async t=>{try{const{file:e}=t,a=e.split("/"),o=a[a.length-1],n=await this.executeLocalCommand(`/backup/downloadlocalfile/${encodeURIComponent(e)}/${s.appName}`,null,i),r=new Blob([n.data]),l=window.URL.createObjectURL(r),c=document.createElement("a");return c.href=l,c.setAttribute("download",o),document.body.appendChild(c),c.click(),document.body.removeChild(c),window.URL.revokeObjectURL(l),!0}catch(e){return console.error("Error downloading file:",e),!1}})),o=await Promise.all(a);o.every((t=>t))?console.log("All downloads completed successfully"):console.error("Some downloads failed. Check the console for details.")}catch(e){console.error("Error downloading files:",e)}finally{setTimeout((()=>{this.showProgressBar=!1,this.fileProgress=[]}),5e3)}},async checkFluxDriveUploadProgress(){const t=localStorage.getItem("zelidauth"),e={headers:{zelidauth:t}},s=[];let i=!1;for(const o of this.fluxDriveUploadTask)try{const t=await pc.get(`${this.fluxDriveEndPoint}/gettaskstatus?taskId=${o.taskId}`,e);t&&t.data&&"success"===t.data.status?(o.status=t.data.data.status.state,"downloading"===o.status?o.progress=t.data.data.status.progress/2:"uploading"===o.status?o.progress=50+t.data.data.status.progress/2:o.progress=t.data.data.status.progress,o.message=t.data.data.status.message,this.updateFileProgressFD(o.filename,o.progress,0,0,o.component),this.fluxDriveUploadStatus=t.data.data.status.message,"finished"===o.status?this.showToast("success",`${o.component} backup uploaded to FluxDrive successfully.`):"failed"===o.status?this.showToast("danger",`failed to upload ${o.component} backup to FluxDrive.${this.fluxDriveUploadStatus}`):s.push(o)):i=!0}catch(a){i=!0,console.log("error fetching upload status")}i||(this.fluxDriveUploadTask=s),this.fluxDriveUploadTask.length>0?setTimeout((()=>{this.checkFluxDriveUploadProgress()}),2e3):(this.uploadProgress=!1,this.showFluxDriveProgressBar=!1,this.fluxDriveUploadStatus="",this.fileProgressFD=[])},async uploadToFluxDrive(){try{this.uploadProgress=!0;const t=localStorage.getItem("zelidauth"),e=this,s={headers:{zelidauth:t}};let i=0;const a=this.backupToUpload.map((async t=>{try{const{file:a}=t,{component:o}=t,{file_size:n}=t,{file_name:r}=t,{create:l}=t;let c=l;Math.abs(c-i)>36e5?i=c:c=i;const p=this.selectedIp.split(":")[0],d=this.selectedIp.split(":")[1]||16127,h=`https://${p.replace(/\./g,"-")}-${d}.node.api.runonflux.io/backup/downloadlocalfile/${encodeURIComponent(a)}/${e.appName}`,u={appname:e.appName,component:o,filename:r,timestamp:c,host:h,filesize:n},m=await pc.post(`${this.fluxDriveEndPoint}/registerbackupfile`,u,s);return m&&m.data&&"success"===m.data.status?(this.fluxDriveUploadTask.push({taskId:m.data.data.taskId,filename:r,component:o,status:"in queue",progress:0}),!0):(console.error(m.data),this.showToast("danger",m.data.data.message),!1)}catch(a){return console.error("Error registering file:",a),this.showToast("danger","Error registering file(s) for upload."),!1}})),o=await Promise.all(a);o.every((t=>t))?(console.log("All uploads registered successfully"),this.showFluxDriveProgressBar=!0):console.error("Some uploads failed. Check the console for details.")}catch(t){console.error("Error registering files:",t),this.showToast("danger","Error registering file(s) for upload.")}finally{setTimeout((()=>{this.checkFluxDriveUploadProgress()}),2e3)}},async restoreFromFluxDrive(t){const e=[];for(const h of t)e.push({component:h.component,file_size:h.file_size,url:h.file_url});const s=localStorage.getItem("zelidauth");this.showTopFluxDrive=!1,this.restoringFromFluxDrive=!0,this.restoreFromFluxDriveStatus="Initializing restore jobs...";const i={zelidauth:s,"Content-Type":"application/json","Access-Control-Allow-Origin":"*",Connection:"keep-alive"},a=this.buildPostBody(this.appSpecification,"restore","remote");let o;for(const h of e)o=this.updateJobStatus(a,h.component,"restore",e);const n=this.selectedIp.split(":")[0],r=this.selectedIp.split(":")[1]||16127;let l=`https://${n.replace(/\./g,"-")}-${r}.node.api.runonflux.io/apps/appendrestoretask`;this.ipAccess&&(l=`http://${n}:${r}/apps/appendrestoretask`);const c=await fetch(l,{method:"POST",body:JSON.stringify(o),headers:i}),p=this,d=c.body.getReader();await new Promise(((t,e)=>{function s(){d.read().then((async({done:e,value:i})=>{if(e)return void t();const a=new TextDecoder("utf-8").decode(i),o=a.split("\n");await p.processChunks(o,"restore_fluxdrive"),s()}))}s()})),this.restoringFromFluxDrive=!1,this.restoreFromFluxDriveStatus=""},async getFluxDriveBackupList(){try{const t=localStorage.getItem("zelidauth"),e={headers:{zelidauth:t}},s=await pc.get(`${this.fluxDriveEndPoint}/getbackuplist?appname=${this.appName}`,e);if(s.data&&"success"===s.data.status){console.log(JSON.stringify(s.data.checkpoints)),this.tableBackup+=1;const t=s.data.checkpoints.reduce(((t,{components:e})=>(e.forEach((e=>t.add(e.component))),t)),new Set),e=[{value:"",text:"all"}];for(const s of t)e.push({value:s,text:s});this.restoreComponents=e,this.applyFilter(),this.checkpoints=s.data.checkpoints}else s.data&&"error"===s.data.status&&this.showToast("danger",s.data.data.message)}catch(t){console.error("Error receiving FluxDrive backup list",t),this.showToast("danger","Error receiving FluxDrive backup list")}},async initMMSDK(){try{await lc.init(),cc=lc.getProvider()}catch(t){console.log(t)}},connectTerminal(t){if(this.appSpecification.version>=4){const t=Object.values(this.appSpecification.compose),e=t.some((t=>t.name===this.selectedApp));if(!e)return void this.showToast("danger","Please select an container app before connecting.")}let e=0;if(!(this.selectedApp||this.appSpecification.version<=3))return void this.showToast("danger","Please select an container app before connecting.");if(null===this.selectedCmd)return void this.showToast("danger","No command selected.");if("Custom"===this.selectedCmd){if(!this.customValue)return void this.showToast("danger","Please enter a custom command.");console.log(`Custom command: ${this.customValue}`),console.log(`App name: ${t}`)}else console.log(`Selected command: ${this.selectedCmd}`),console.log(`App name: ${t}`);this.isConnecting=!0,this.terminal=new st.Terminal({allowProposedApi:!0,cursorBlink:!0,theme:{foreground:"white",background:"black"}});const s=this.selectedIp.split(":")[0],i=this.selectedIp.split(":")[1]||16127,a=localStorage.getItem("zelidauth");let o=`https://${s.replace(/\./g,"-")}-${i}.node.api.runonflux.io/terminal`;this.ipAccess&&(o=`http://${s}:${i}/terminal`),this.socket=rt.ZP.connect(o);let n="";this.enableUser&&(n=this.userInputValue),this.customValue?this.socket.emit("exec",a,t,this.customValue,this.envInputValue,n):this.socket.emit("exec",a,t,this.selectedCmd,this.envInputValue,n),this.terminal.open(this.$refs.terminalElement);const r=new it.FitAddon;this.terminal.loadAddon(r);const l=new at.WebLinksAddon;this.terminal.loadAddon(l);const c=new ot.Unicode11Addon;this.terminal.loadAddon(c);const p=new nt.SerializeAddon;this.terminal.loadAddon(p),this.terminal._initialized=!0,this.terminal.onResize((t=>{const{cols:e,rows:s}=t;console.log("Resizing to",{cols:e,rows:s}),this.socket.emit("resize",{cols:e,rows:s})})),this.terminal.onTitleChange((t=>{console.log(t)})),window.onresize=()=>{r.fit()},this.terminal.onData((t=>{this.socket.emit("cmd",t)})),this.socket.on("error",(t=>{this.showToast("danger",t),this.disconnectTerminal()})),this.socket.on("show",(t=>{0===e&&(e=1,this.customValue||(this.socket.emit("cmd","export TERM=xterm\n"),"/bin/bash"===this.selectedCmd&&this.socket.emit("cmd",'PS1="\\[\\033[01;31m\\]\\u\\[\\033[01;33m\\]@\\[\\033[01;36m\\]\\h \\[\\033[01;33m\\]\\w \\[\\033[01;35m\\]\\$ \\[\\033[00m\\]"\n'),this.socket.emit("cmd","alias ls='ls --color'\n"),this.socket.emit("cmd","alias ll='ls -alF'\n"),this.socket.emit("cmd","clear\n")),setTimeout((()=>{this.isConnecting=!1,this.isVisible=!0,this.$nextTick((()=>{setTimeout((()=>{this.terminal.focus(),r.fit()}),500)}))}),1400)),this.terminal.write(t)})),this.socket.on("end",(()=>{this.disconnectTerminal()}))},disconnectTerminal(){this.socket&&this.socket.disconnect(),this.terminal&&this.terminal.dispose(),this.isVisible=!1,this.isConnecting=!1},onSelectChangeCmd(){"Custom"!==this.selectedCmd&&(this.customValue="")},onSelectChangeEnv(){this.enableEnvironment||(this.envInputValue="")},onSelectChangeUser(){this.enableUser||(this.userInputValue="")},onFilteredSelection(t){this.entNodesSelectTable.totalRows=t.length,this.entNodesSelectTable.currentPage=1},async getMarketPlace(){try{const t=await pc.get("https://stats.runonflux.io/marketplace/listapps");"success"===t.data.status&&(this.marketPlaceApps=t.data.data)}catch(t){console.log(t)}},async getMultiplier(){try{const t=await pc.get("https://stats.runonflux.io/apps/multiplier");"success"===t.data.status&&"number"===typeof t.data.data&&t.data.data>=1&&(this.generalMultiplier=t.data.data)}catch(t){this.generalMultiplier=10,console.log(t)}},async appsDeploymentInformation(){const t=await J.Z.appsDeploymentInformation(),{data:e}=t.data;"success"===t.data.status?this.deploymentAddress=e.address:this.showToast("danger",t.data.data.message||t.data.data)},async updateManagementTab(t){this.noData=!1,this.callResponse.data="",this.callResponse.status="",this.appExec.cmd="",this.appExec.env="",this.output=[],this.downloadOutput={},this.downloadOutputReturned=!1,this.backupToUpload=[];const e=this.$refs.managementTabs.$children,s=e[t]?.title;switch("Interactive Terminal"!==s&&this.disconnectTerminal(),"Logs"!==s&&(this.stopPolling(),this.pollingEnabled=!1),"Monitoring"!==s&&this.stopPollingStats(),this.selectedIp||(await this.getInstancesForDropDown(),await this.getInstalledApplicationSpecifics(),this.getApplicationLocations().catch((()=>{this.isBusy=!1,this.showToast("danger","Error loading application locations")}))),this.getApplicationManagementAndStatus(),t){case 1:this.getInstalledApplicationSpecifics(),this.getGlobalApplicationSpecifics();break;case 2:this.callResponseInspect.data="",this.getApplicationInspect();break;case 3:this.$nextTick((()=>{this.initCharts(),this.processes=[],setTimeout(this.startPollingStats(),2e3)}));break;case 4:this.callResponseChanges.data="",this.getApplicationChanges();break;case 5:this.logs=[],this.selectedLog=[],this.fetchLogsForSelectedContainer();break;case 8:this.applyFilter(),this.loadBackupList();break;case 9:this.appSpecification?.compose&&1!==this.appSpecification?.compose?.length||this.refreshFolder();break;case 13:this.getZelidAuthority(),this.cleanData();break;case 14:this.getZelidAuthority(),this.cleanData();break;default:break}},async appsGetListAllApps(){const t=await this.executeLocalCommand("/apps/listallapps");console.log(t),this.getAllAppsResponse.status=t.data.status,this.getAllAppsResponse.data=t.data.data},goBackToApps(){this.$emit("back")},async initSignFluxSSO(){try{const t=this.dataToSign,e=(0,Y.PR)();if(!e)return void this.showToast("warning","Not logged in as SSO. Login with SSO or use different signing method.");const s=e.auth.currentUser.accessToken,i={"Content-Type":"application/json",Authorization:`Bearer ${s}`},a=await pc.post("https://service.fluxcore.ai/api/signMessage",{message:t},{headers:i});if("success"!==a.data?.status&&a.data?.signature)return void this.showToast("warning","Failed to sign message, please try again.");this.signature=a.data.signature}catch(t){this.showToast("warning","Failed to sign message, please try again.")}},async initiateSignWSUpdate(){if(this.dataToSign.length>1800){const t=this.dataToSign,e={publicid:Math.floor(999999999999999*Math.random()).toString(),public:t};await pc.post("https://storage.runonflux.io/v1/public",e);const s=`zel:?action=sign&message=FLUX_URL=https://storage.runonflux.io/v1/public/${e.publicid}&icon=https%3A%2F%2Fraw.githubusercontent.com%2Frunonflux%2Fflux%2Fmaster%2FzelID.svg&callback=${this.callbackValue}`;window.location.href=s}else window.location.href=`zel:?action=sign&message=${this.dataToSign}&icon=https%3A%2F%2Fraw.githubusercontent.com%2Frunonflux%2Fflux%2Fmaster%2FzelID.svg&callback=${this.callbackValue}`;const t=this,{protocol:e,hostname:s,port:i}=window.location;let a="";a+=e,a+="//";const o=/[A-Za-z]/g;if(s.split("-")[4]){const t=s.split("-"),e=t[4].split("."),i=+e[0]+1;e[0]=i.toString(),e[2]="api",t[4]="",a+=t.join("-"),a+=e.join(".")}else if(s.match(o)){const t=s.split(".");t[0]="api",a+=t.join(".")}else{if("string"===typeof s&&this.$store.commit("flux/setUserIp",s),+i>16100){const t=+i+1;this.$store.commit("flux/setFluxPort",t)}a+=s,a+=":",a+=this.config.apiPort}let n=hc.get("backendURL")||a;n=n.replace("https://","wss://"),n=n.replace("http://","ws://");const r=this.appUpdateSpecification.owner+this.timestamp,l=`${n}/ws/sign/${r}`,c=new WebSocket(l);this.websocket=c,c.onopen=e=>{t.onOpen(e)},c.onclose=e=>{t.onClose(e)},c.onmessage=e=>{t.onMessage(e)},c.onerror=e=>{t.onError(e)}},onError(t){console.log(t)},onMessage(t){const e=dc.parse(t.data);"success"===e.status&&e.data&&(this.signature=e.data.signature),console.log(e),console.log(t)},onClose(t){console.log(t)},onOpen(t){console.log(t)},async getInstalledApplicationSpecifics(){const t=await this.executeLocalCommand(`/apps/installedapps/${this.appName}`);console.log(t),t&&("error"!==t.data.status&&t.data.data[0]?(this.callResponse.status=t.data.status,this.callResponse.data=t.data.data[0],this.appSpecification=t.data.data[0]):this.showToast("danger",t.data.data.message||t.data.data))},getExpireOptions(){this.expireOptions=[];const t=this.callBResponse.data.expire||22e3,e=this.callBResponse.data.height+t-this.daemonBlockCount;e+5e3<264e3&&this.expireOptions.push({value:5e3+e,label:"1 week",time:6048e5}),this.expirePosition=0,e+11e3<264e3&&(this.expireOptions.push({value:11e3+e,label:"2 weeks",time:12096e5}),this.expirePosition=1),e+22e3<264e3&&(this.expireOptions.push({value:22e3+e,label:"1 month",time:2592e6}),this.expirePosition=2),e+66e3<264e3&&this.expireOptions.push({value:66e3+e,label:"3 months",time:7776e6}),e+132e3<264e3&&this.expireOptions.push({value:132e3+e,label:"6 months",time:15552e6}),this.expireOptions.push({value:264e3,label:"Up to one year",time:31536e6})},async getGlobalApplicationSpecifics(){const t=await J.Z.getAppSpecifics(this.appName);if(console.log(t),"error"===t.data.status)this.showToast("danger",t.data.data.message||t.data.data),this.callBResponse.status=t.data.status;else{this.callBResponse.status=t.data.status,this.callBResponse.data=t.data.data;const s=t.data.data;if(console.log(s),this.appUpdateSpecification=JSON.parse(JSON.stringify(s)),this.appUpdateSpecification.instances=s.instances||3,this.instancesLocked&&(this.maxInstances=this.appUpdateSpecification.instances),this.appUpdateSpecification.version<=3)this.appUpdateSpecification.version=3,this.appUpdateSpecification.ports=s.port||this.ensureString(s.ports),this.appUpdateSpecification.domains=this.ensureString(s.domains),this.appUpdateSpecification.enviromentParameters=this.ensureString(s.enviromentParameters),this.appUpdateSpecification.commands=this.ensureString(s.commands),this.appUpdateSpecification.containerPorts=s.containerPort||this.ensureString(s.containerPorts);else{if(this.appUpdateSpecification.version>3&&this.appUpdateSpecification.compose.find((t=>t.containerData.includes("g:")))&&(this.masterSlaveApp=!0),this.appUpdateSpecification.version<=7&&(this.appUpdateSpecification.version=7),this.appUpdateSpecification.contacts=this.ensureString([]),this.appUpdateSpecification.geolocation=this.ensureString([]),this.appUpdateSpecification.version>=5){this.appUpdateSpecification.contacts=this.ensureString(s.contacts||[]),this.appUpdateSpecification.geolocation=this.ensureString(s.geolocation||[]);try{this.decodeGeolocation(s.geolocation||[])}catch(e){console.log(e),this.appUpdateSpecification.geolocation=this.ensureString([])}}this.appUpdateSpecification.compose.forEach((t=>{t.ports=this.ensureString(t.ports),t.domains=this.ensureString(t.domains),t.environmentParameters=this.ensureString(t.environmentParameters),t.commands=this.ensureString(t.commands),t.containerPorts=this.ensureString(t.containerPorts),t.secrets=this.ensureString(t.secrets||""),t.repoauth=this.ensureString(t.repoauth||"")})),this.appUpdateSpecification.version>=6&&(this.getExpireOptions(),this.appUpdateSpecification.expire=this.ensureNumber(this.expireOptions[this.expirePosition].value)),this.appUpdateSpecification.version>=7&&(this.appUpdateSpecification.staticip=this.appUpdateSpecification.staticip??!1,this.appUpdateSpecification.nodes=this.appUpdateSpecification.nodes||[],this.appUpdateSpecification.nodes&&this.appUpdateSpecification.nodes.length&&(this.isPrivateApp=!0),this.appUpdateSpecification.nodes.forEach((async t=>{const e=this.enterprisePublicKeys.find((e=>e.nodeip===t));if(!e){const e=await this.fetchEnterpriseKey(t);if(e){const s={nodeip:t.ip,nodekey:e},i=this.enterprisePublicKeys.find((e=>e.nodeip===t));i||this.enterprisePublicKeys.push(s)}}})),this.enterpriseNodes||await this.getEnterpriseNodes(),this.selectedEnterpriseNodes=[],this.appUpdateSpecification.nodes.forEach((t=>{if(this.enterpriseNodes){const e=this.enterpriseNodes.find((e=>e.ip===t||t===`${e.txhash}:${e.outidx}`));e&&this.selectedEnterpriseNodes.push(e)}else this.showToast("danger","Failed to load Enterprise Node List")})))}}},async testAppInstall(t){if(this.downloading)return void this.showToast("danger","Test install/launch was already initiated");const e=this;this.output=[],this.downloadOutput={},this.downloadOutputReturned=!1,this.downloading=!0,this.testError=!1,this.showToast("warning",`Testing ${t} installation, please wait`);const s=localStorage.getItem("zelidauth"),i={headers:{zelidauth:s},onDownloadProgress(t){console.log(t.event.target.response),e.output=JSON.parse(`[${t.event.target.response.replace(/}{/g,"},{")}]`)}};let a;try{if(this.appUpdateSpecification.nodes.length>0){const e=this.appUpdateSpecification.nodes[Math.floor(Math.random()*this.appUpdateSpecification.nodes.length)],s=e.split(":")[0],o=Number(e.split(":")[1]||16127),n=`https://${s.replace(/\./g,"-")}-${o}.node.api.runonflux.io/apps/testappinstall/${t}`;a=await pc.get(n,i)}else a=await J.Z.justAPI().get(`/apps/testappinstall/${t}`,i);if("error"===a.data.status)this.testError=!0,this.showToast("danger",a.data.data.message||a.data.data);else{console.log(a),this.output=JSON.parse(`[${a.data.replace(/}{/g,"},{")}]`),console.log(this.output);for(let t=0;t{this.showToast("danger",t.message||t)}));console.log(s),"success"===s.data.status?(this.updateHash=s.data.data,console.log(this.updateHash),this.showToast("success",s.data.data.message||s.data.data)):this.showToast("danger",s.data.data.message||s.data.data);const i=await(0,Z.Z)();i&&(this.stripeEnabled=i.stripe,this.paypalEnabled=i.paypal),this.progressVisable=!1},async checkFluxCommunication(){const t=await J.Z.checkCommunication();"success"===t.data.status?this.fluxCommunication=!0:this.showToast("danger",t.data.data.message||t.data.data)},convertExpire(){if(!this.extendSubscription){const t=this.callBResponse.data.expire||22e3,e=this.callBResponse.data.height+t-this.daemonBlockCount;if(e<5e3)throw new Error("Your application will expire in less than one week, you need to extend subscription to be able to update specifications");return e}return this.expireOptions[this.expirePosition]?this.expireOptions[this.expirePosition].value:22e3},async checkFluxUpdateSpecificationsAndFormatMessage(){try{if(this.appRunningTill.new=7&&(this.constructNodes(),this.appUpdateSpecification.compose.forEach((t=>{if((t.repoauth||t.secrets)&&(e=!0,!this.appUpdateSpecification.nodes.length))throw new Error("Private repositories and secrets can only run on Enterprise Nodes")}))),e){this.showToast("info","Encrypting specifications, this will take a while...");const t=[];for(const e of this.appUpdateSpecification.nodes){const s=this.enterprisePublicKeys.find((t=>t.nodeip===e));if(s)t.push(s.nodekey);else{const s=await this.fetchEnterpriseKey(e);if(s){const i={nodeip:e.ip,nodekey:s},a=this.enterprisePublicKeys.find((t=>t.nodeip===e.ip));a||this.enterprisePublicKeys.push(i),t.push(s)}}}for(const e of this.appUpdateSpecification.compose){if(e.environmentParameters=e.environmentParameters.replace("\\“",'\\"'),e.commands=e.commands.replace("\\“",'\\"'),e.domains=e.domains.replace("\\“",'\\"'),e.secrets&&!e.secrets.startsWith("-----BEGIN PGP MESSAGE")){e.secrets=e.secrets.replace("\\“",'\\"');const s=await this.encryptMessage(e.secrets,t);if(!s)return;e.secrets=s}if(e.repoauth&&!e.repoauth.startsWith("-----BEGIN PGP MESSAGE")){const s=await this.encryptMessage(e.repoauth,t);if(!s)return;e.repoauth=s}}}e&&this.appUpdateSpecification.compose.forEach((t=>{if(t.secrets&&!t.secrets.startsWith("-----BEGIN PGP MESSAGE"))throw new Error("Encryption failed");if(t.repoauth&&!t.repoauth.startsWith("-----BEGIN PGP MESSAGE"))throw new Error("Encryption failed")})),t.version>=5&&(t.geolocation=this.generateGeolocations()),t.version>=6&&(await this.getDaemonBlockCount(),t.expire=this.convertExpire());const s=await J.Z.appUpdateVerification(t);if("error"===s.data.status)throw new Error(s.data.data.message||s.data.data);const i=s.data.data;this.appPricePerSpecs=0,this.appPricePerSpecsUSD=0,this.applicationPriceFluxDiscount="",this.applicationPriceFluxError=!1,this.freeUpdate=!1;const a=await J.Z.appPriceUSDandFlux(i);if("error"===a.data.status)throw new Error(a.data.data.message||a.data.data);this.appPricePerSpecsUSD=+a.data.data.usd,console.log(a.data.data),0===this.appPricePerSpecsUSD?this.freeUpdate=!0:Number.isNaN(+a.data.data.fluxDiscount)?(this.applicationPriceFluxError=!0,this.showToast("danger","Not possible to complete payment with Flux crypto currency")):(this.appPricePerSpecs=+a.data.data.flux,this.applicationPriceFluxDiscount=+a.data.data.fluxDiscount);const o=this.marketPlaceApps.find((t=>this.appUpdateSpecification.name.toLowerCase().startsWith(t.name.toLowerCase())));o&&(this.isMarketplaceApp=!0),this.timestamp=Date.now(),this.dataForAppUpdate=i,this.dataToSign=this.updatetype+this.version+JSON.stringify(i)+this.timestamp,this.progressVisable=!1}catch(t){this.progressVisable=!1,console.log(t.message),console.error(t),this.showToast("danger",t.message||t)}},async checkFluxCancelSubscriptionAndFormatMessage(){try{this.progressVisable=!0,this.operationTitle="Cancelling subscription...";const t=this.appUpdateSpecification;t.geolocation=this.generateGeolocations(),t.expire=100;const e=await J.Z.appUpdateVerification(t);if(this.progressVisable=!1,"error"===e.data.status)throw new Error(e.data.data.message||e.data.data);const s=e.data.data;this.timestamp=Date.now(),this.dataForAppUpdate=s,this.dataToSign=this.updatetype+this.version+JSON.stringify(s)+this.timestamp}catch(t){this.progressVisable=!1,console.log(t.message),console.error(t),this.showToast("danger",t.message||t)}},async appExecute(t=this.appSpecification.name){try{if(!this.appExec.cmd)return void this.showToast("danger","No commands specified");const e=this.appExec.env?this.appExec.env:"[]",{cmd:s}=this.appExec;this.commandExecuting=!0,console.log("here");const i={appname:t,cmd:mc(s),env:JSON.parse(e)},a=await this.executeLocalCommand("/apps/appexec/",i);console.log(a),"error"===a.data.status?this.showToast("danger",a.data.data.message||a.data.data):(this.commandExecuting=!1,this.callResponse.status=a.status,t.includes("_")?(this.callResponse.data&&Array.isArray(this.callResponse.data)||(this.callResponse.data=[]),this.callResponse.data.unshift({name:t,data:a.data})):this.callResponse.data=a.data)}catch(e){this.commandExecuting=!1,console.log(e),this.showToast("danger",e.message||e)}},async downloadApplicationLog(t){const e=this;this.downloaded="",this.total="";const s=localStorage.getItem("zelidauth"),i={headers:{zelidauth:s},responseType:"blob",onDownloadProgress(t){e.downloaded=t.loaded,e.total=t.total,e.downloaded===e.total&&setTimeout((()=>{e.downloaded="",e.total=""}),5e3)}};try{this.downloadingLog=!0;const e=await this.executeLocalCommand(`/apps/applogpolling/${t}/all`,null,i),s=await e.data.text(),a=JSON.parse(s);let o=a.logs;if(!Array.isArray(o))throw new Error("Log data is missing or is not in the expected format.");if(0===o.length)throw new Error("No logs available to download.");const n=/\u001b\[[0-9;]*[a-zA-Z]/g;if(o=o.map((t=>t.replace(n,""))),!this.displayTimestamps){const t=/^[^\s]+\s*/;o=o.map((e=>e.replace(t,"")))}const r=o.join("\n"),l=new Blob([r],{type:"text/plain"}),c=window.URL.createObjectURL(l),p=document.createElement("a");p.href=c,p.setAttribute("download","app.log"),document.body.appendChild(p),p.click(),this.downloadingLog=!1,window.URL.revokeObjectURL(c)}catch(a){this.downloadingLog=!1,console.error("Error occurred while handling logs:",a),this.showToast("danger",a)}},getAppIdentifier(t=this.appName){return t&&t.startsWith("zel")||t&&t.startsWith("flux")?t:"KadenaChainWebNode"===t||"FoldingAtHomeB"===t?`zel${t}`:`flux${t}`},getAppDockerNameIdentifier(t){const e=this.getAppIdentifier(t);return e&&e.startsWith("/")?e:`/${e}`},async getApplicationInspect(){const t=[];if(this.commandExecutingInspect=!0,this.appSpecification.version>=4)for(const e of this.appSpecification.compose){const s=await this.executeLocalCommand(`/apps/appinspect/${e.name}_${this.appSpecification.name}`);if("error"===s.data.status)this.showToast("danger",s.data.data.message||s.data.data);else{const i={name:e.name,callData:s.data.data};t.push(i)}}else{const e=await this.executeLocalCommand(`/apps/appinspect/${this.appName}`);if("error"===e.data.status)this.showToast("danger",e.data.data.message||e.data.data);else{const s={name:this.appSpecification.name,callData:e.data.data};t.push(s)}console.log(e)}this.commandExecutingInspect=!1,this.callResponseInspect.status="success",this.callResponseInspect.data=t},async stopMonitoring(t,e=!1){let s;this.output=[],this.showToast("warning",`Stopping Monitoring of ${t}`),s=e?await this.executeLocalCommand(`/apps/stopmonitoring/${t}/true`):await this.executeLocalCommand(`/apps/stopmonitoring/${t}`),"success"===s.data.status?this.showToast("success",s.data.data.message||s.data.data):this.showToast("danger",s.data.data.message||s.data.data),console.log(s)},async startMonitoring(t){this.output=[],this.showToast("warning",`Starting Monitoring of ${t}`);const e=await this.executeLocalCommand(`/apps/startmonitoring/${t}`);"success"===e.data.status?this.showToast("success",e.data.data.message||e.data.data):this.showToast("danger",e.data.data.message||e.data.data),console.log(e)},async getApplicationChanges(){const t=[];if(this.commandExecutingChanges=!0,this.appSpecification.version>=4)for(const e of this.appSpecification.compose){const s=await this.executeLocalCommand(`/apps/appchanges/${e.name}_${this.appSpecification.name}`);if("error"===s.data.status)this.showToast("danger",s.data.data.message||s.data.data);else{const i={name:e.name,callData:s.data.data};t.push(i)}}else{const e=await this.executeLocalCommand(`/apps/appchanges/${this.appName}`);if("error"===e.data.status)this.showToast("danger",e.data.data.message||e.data.data);else{const s={name:this.appSpecification.name,callData:e.data.data};t.push(s)}console.log(e)}this.commandExecutingChanges=!1,this.callResponseChanges.status="success",this.callResponseChanges.data=t},async getInstancesForDropDown(){const t=await J.Z.getAppLocation(this.appName);if(this.selectedIp=null,console.log(t),"error"===t.data.status)this.showToast("danger",t.data.data.message||t.data.data);else{if(this.masterIP=null,this.instances.data=[],this.instances.data=t.data.data,this.masterSlaveApp){const t=`https://${this.appName}.app.runonflux.io/fluxstatistics?scope=${this.appName}apprunonfluxio;json;norefresh`;let e=!1,s=await pc.get(t).catch((t=>{e=!0,console.log(`UImasterSlave: Failed to reach FDM with error: ${t}`),this.masterIP="Failed to Check"}));if(!e){if(s=s.data,s&&s.length>0){console.log("FDM_Data_Received");for(const t of s){const e=t.find((t=>1===t.id&&"Server"===t.objType&&"pxname"===t.field.name&&t.value.value.toLowerCase().startsWith(`${this.appName.toLowerCase()}apprunonfluxio`)));if(e){console.log("FDM_Data_Service_Found");const e=t.find((t=>1===t.id&&"Server"===t.objType&&"svname"===t.field.name));if(e)return console.log("FDM_Data_IP_Found"),this.masterIP=e.value.value.split(":")[0],console.log(this.masterIP),void(this.selectedIp||("16127"===e.value.value.split(":")[1]?this.selectedIp=e.value.value.split(":")[0]:this.selectedIp=e.value.value));break}}}this.masterIP||(this.masterIP="Defining New Primary In Progress"),this.selectedIp||(this.selectedIp=this.instances.data[0].ip)}}else this.selectedIp||(this.selectedIp=this.instances.data[0].ip);if(console.log(this.ipAccess),this.ipAccess){const t=this.ipAddress.replace("http://",""),e=16127===this.config.apiPort?t:`${t}:${this.config.apiPort}`,s=this.instances.data.filter((t=>t.ip===e));s.length>0&&(this.selectedIp=e)}else{const t=/https:\/\/(\d+-\d+-\d+-\d+)-(\d+)/,e=this.ipAddress.match(t);if(e){const t=e[1].replace(/-/g,"."),s=16127===this.config.apiPort?t:`${t}:${this.config.apiPort}`,i=this.instances.data.filter((t=>t.ip===s));i.length>0&&(this.selectedIp=s)}}this.instances.totalRows=this.instances.data.length}},async getApplicationLocations(){this.isBusy=!0;const t=await J.Z.getAppLocation(this.appName);if(console.log(t),"error"===t.data.status)this.showToast("danger",t.data.data.message||t.data.data);else{if(this.masterSlaveApp){const t=`https://${this.appName}.app.runonflux.io/fluxstatistics?scope=${this.appName};json;norefresh`;let e=!1;this.masterIP=null;let s=await pc.get(t).catch((t=>{e=!0,console.log(`UImasterSlave: Failed to reach FDM with error: ${t}`),this.masterIP="Failed to Check"}));if(!e){if(s=s.data,s&&s.length>0){console.log("FDM_Data_Received");for(const t of s){const e=t.find((t=>1===t.id&&"Server"===t.objType&&"pxname"===t.field.name&&t.value.value.toLowerCase().startsWith(`${this.appName.toLowerCase()}apprunonfluxio`)));if(e){console.log("FDM_Data_Service_Found");const e=t.find((t=>1===t.id&&"Server"===t.objType&&"svname"===t.field.name));e?(console.log("FDM_Data_IP_Found"),this.masterIP=e.value.value.split(":")[0],console.log(this.masterIP)):this.masterIP="Defining New Primary In Progress";break}}}this.masterIP||(this.masterIP="Defining New Primary In Progress")}}this.instances.data=[],this.instances.data=t.data.data;const e=this.instances.data;setTimeout((async()=>{for(const t of e){const e=t.ip.split(":")[0],s=t.ip.split(":")[1]||16127;let i=`https://${e.replace(/\./g,"-")}-${s}.node.api.runonflux.io/flux/geolocation`;this.ipAccess&&(i=`http://${e}:${s}/flux/geolocation`);let a=!1;const o=await pc.get(i).catch((i=>{a=!0,console.log(`Error geting geolocation from ${e}:${s} : ${i}`),t.continent="N/A",t.country="N/A",t.region="N/A"}));!a&&"success"===o.data?.status&&o.data.data?.continent?(t.continent=o.data.data.continent,t.country=o.data.data.country,t.region=o.data.data.regionName):(t.continent="N/A",t.country="N/A",t.region="N/A")}}),5),this.instances.totalRows=this.instances.data.length,this.tableKey+=1,this.isBusy=!1}},async getAppOwner(){const t=await J.Z.getAppOwner(this.appName);console.log(t),"error"===t.data.status&&this.showToast("danger",t.data.data.message||t.data.data),this.selectedAppOwner=t.data.data},async stopApp(t){this.output=[],this.progressVisable=!0,this.operationTitle=`Stopping ${t}...`;const e=await this.executeLocalCommand(`/apps/appstop/${t}`);"success"===e.data.status?this.showToast("success",e.data.data.message||e.data.data):this.showToast("danger",e.data.data.message||e.data.data),this.appsGetListAllApps(),console.log(e),this.progressVisable=!1},async startApp(t){this.output=[],this.progressVisable=!0,this.operationTitle=`Starting ${t}...`,setTimeout((async()=>{const e=await this.executeLocalCommand(`/apps/appstart/${t}`);"success"===e.data.status?this.showToast("success",e.data.data.message||e.data.data):this.showToast("danger",e.data.data.message||e.data.data),this.appsGetListAllApps(),console.log(e),this.progressVisable=!1}),3e3)},async restartApp(t){this.output=[],this.progressVisable=!0,this.operationTitle=`Restarting ${t}...`;const e=await this.executeLocalCommand(`/apps/apprestart/${t}`);"success"===e.data.status?this.showToast("success",e.data.data.message||e.data.data):this.showToast("danger",e.data.data.message||e.data.data),this.appsGetListAllApps(),console.log(e),this.progressVisable=!1},async pauseApp(t){this.output=[],this.progressVisable=!0,this.operationTitle=`Pausing ${t}...`,setTimeout((async()=>{const e=await this.executeLocalCommand(`/apps/apppause/${t}`);"success"===e.data.status?this.showToast("success",e.data.data.message||e.data.data):this.showToast("danger",e.data.data.message||e.data.data),this.appsGetListAllApps(),console.log(e),this.progressVisable=!1}),2e3)},async unpauseApp(t){this.output=[],this.progressVisable=!0,this.operationTitle=`Unpausing ${t}...`,setTimeout((async()=>{const e=await this.executeLocalCommand(`/apps/appunpause/${t}`);"success"===e.data.status?this.showToast("success",e.data.data.message||e.data.data):this.showToast("danger",e.data.data.message||e.data.data),this.appsGetListAllApps(),console.log(e),this.progressVisable=!1}),2e3)},redeployAppSoft(t){this.redeployApp(t,!1)},redeployAppHard(t){this.redeployApp(t,!0)},async redeployApp(t,e){const s=this;this.output=[],this.downloadOutput={},this.downloadOutputReturned=!1,this.progressVisable=!0,this.operationTitle=`Redeploying ${t}...`;const i=localStorage.getItem("zelidauth"),a={headers:{zelidauth:i},onDownloadProgress(t){console.log(t.event.target.response),s.output=JSON.parse(`[${t.event.target.response.replace(/}{/g,"},{")}]`)}},o=await this.executeLocalCommand(`/apps/redeploy/${t}/${e}`,null,a);this.progressVisable=!1,"error"===o.data.status?this.showToast("danger",o.data.data.message||o.data.data):(this.output=JSON.parse(`[${o.data.replace(/}{/g,"},{")}]`),"error"===this.output[this.output.length-1].status?this.showToast("danger",this.output[this.output.length-1].data.message||this.output[this.output.length-1].data):"warning"===this.output[this.output.length-1].status?this.showToast("warning",this.output[this.output.length-1].data.message||this.output[this.output.length-1].data):this.showToast("success",this.output[this.output.length-1].data.message||this.output[this.output.length-1].data))},async removeApp(t){const e=this;this.output=[],this.progressVisable=!0,this.operationTitle=`Removing ${t}...`;const s=localStorage.getItem("zelidauth"),i={headers:{zelidauth:s},onDownloadProgress(t){console.log(t.event.target.response),e.output=JSON.parse(`[${t.event.target.response.replace(/}{/g,"},{")}]`)}},a=await this.executeLocalCommand(`/apps/appremove/${t}`,null,i);this.progressVisable=!1,"error"===a.data.status?this.showToast("danger",a.data.data.message||a.data.data):(this.output=JSON.parse(`[${a.data.replace(/}{/g,"},{")}]`),"error"===this.output[this.output.length-1].status?this.showToast("danger",this.output[this.output.length-1].data.message||this.output[this.output.length-1].data):"warning"===this.output[this.output.length-1].status?this.showToast("warning",this.output[this.output.length-1].data.message||this.output[this.output.length-1].data):this.showToast("success",this.output[this.output.length-1].data.message||this.output[this.output.length-1].data),setTimeout((()=>{e.managedApplication=""}),5e3))},getZelidAuthority(){const t=localStorage.getItem("zelidauth");this.globalZelidAuthorized=!1;const e=dc.parse(t),s=Date.now(),i=54e5,a=e.loginPhrase.substring(0,13);this.globalZelidAuthorized=!(+a{setTimeout(e,t)}))},async executeLocalCommand(t,e,s){try{const i=localStorage.getItem("zelidauth");let a=s;if(a||(a={headers:{zelidauth:i}}),this.getZelidAuthority(),!this.globalZelidAuthorized)throw new Error("Session expired. Please log into FluxOS again");const o=this.selectedIp.split(":")[0],n=this.selectedIp.split(":")[1]||16127;let r=null,l=`https://${o.replace(/\./g,"-")}-${n}.node.api.runonflux.io${t}`;return this.ipAccess&&(l=`http://${o}:${n}${t}`),r=e?await pc.post(l,e,a):await pc.get(l,a),r}catch(i){return this.showToast("danger",i.message||i),null}},async executeCommand(t,e,s,i){try{const a=localStorage.getItem("zelidauth"),o={headers:{zelidauth:a}};if(this.getZelidAuthority(),!this.globalZelidAuthorized)throw new Error("Session expired. Please log into FluxOS again");this.showToast("warning",s);let n=`/apps/${e}/${t}`;i&&(n+=`/${i}`),n+="/true";const r=await J.Z.justAPI().get(n,o);await this.delay(500),"success"===r.data.status?this.showToast("success",r.data.data.message||r.data.data):this.showToast("danger",r.data.data.message||r.data.data)}catch(a){this.showToast("danger",a.message||a)}},async stopAppGlobally(t){this.executeCommand(t,"appstop",`Stopping ${t} globally. This will take a while...`)},async startAppGlobally(t){this.executeCommand(t,"appstart",`Starting ${t} globally. This will take a while...`)},async restartAppGlobally(t){this.executeCommand(t,"apprestart",`Restarting ${t} globally. This will take a while...`)},async pauseAppGlobally(t){this.executeCommand(t,"apppause",`Pausing ${t} globally. This will take a while...`)},async unpauseAppGlobally(t){this.executeCommand(t,"appunpause",`Unpausing ${t} globally. This will take a while...`)},async redeployAppSoftGlobally(t){this.executeCommand(t,"redeploy",`Soft redeploying ${t} globally. This will take a while...`,"false")},async redeployAppHardGlobally(t){this.executeCommand(t,"redeploy",`Hard redeploying ${t} globally. This will take a while...`,"true")},async removeAppGlobally(t){this.executeCommand(t,"appremove",`Reinstalling ${t} globally. This will take a while...`,"true")},openApp(t,e,s){if(console.log(t,e,s),s&&e){const t=e,i=s,a=`http://${t}:${i}`;this.openSite(a)}else this.showToast("danger","Unable to open App :(, App does not have a port.")},getProperPort(t=this.appUpdateSpecification){if(t.port)return t.port;if(t.ports){const e="string"===typeof t.ports?JSON.parse(t.ports):t.ports;return e[0]}for(let e=0;e{console.log(e),"success"===e.status?t+=`${e.data.message||e.data}\r\n`:"Downloading"===e.status?(this.downloadOutputReturned=!0,this.downloadOutput[e.id]={id:e.id,detail:e.progressDetail,variant:"danger"}):"Verifying Checksum"===e.status?(this.downloadOutputReturned=!0,this.downloadOutput[e.id]={id:e.id,detail:{current:1,total:1},variant:"warning"}):"Download complete"===e.status?(this.downloadOutputReturned=!0,this.downloadOutput[e.id]={id:e.id,detail:{current:1,total:1},variant:"info"}):"Extracting"===e.status?(this.downloadOutputReturned=!0,this.downloadOutput[e.id]={id:e.id,detail:e.progressDetail,variant:"primary"}):"Pull complete"===e.status?this.downloadOutput[e.id]={id:e.id,detail:{current:1,total:1},variant:"success"}:"error"===e.status?t+=`Error: ${JSON.stringify(e.data)}\r\n`:t+=`${e.status}\r\n`})),t},showToast(t,e,s="InfoIcon"){this.$toast({component:V.Z,props:{title:e,icon:s,variant:t}})},decodeAsciiResponse(t){return"string"===typeof t?t.replace(/[^\x20-\x7E\t\r\n\v\f]/g,""):""},getContinent(t){const e=this.ensureObject(t),s=e.find((t=>t.startsWith("a")));if(s){const t=this.continentsOptions.find((t=>t.value===s.slice(1)));return t?t.text:"All"}return"All"},getCountry(t){const e=this.ensureObject(t),s=e.find((t=>t.startsWith("b")));if(s){const t=this.countriesOptions.find((t=>t.value===s.slice(1)));return t?t.text:"All"}return"All"},continentChanged(){if(this.selectedCountry=null,this.selectedContinent){const t=this.continentsOptions.find((t=>t.value===this.selectedContinent));this.maxInstances=t.maxInstances,this.appUpdateSpecification.instances>this.maxInstances&&(this.appUpdateSpecification.instances=this.maxInstances),this.showToast("warning",`The node type may fluctuate based upon system requirements for your application. For better results in ${t.text}, please consider specifications more suited to ${t.nodeTier} hardware.`)}else this.maxInstances=this.appUpdateSpecificationv5template.maxInstances,this.showToast("info","No geolocation set you can define up to maximum of 100 instances and up to the maximum hardware specs available on Flux network to your app.");this.instancesLocked&&(this.maxInstances=this.appUpdateSpecification.instances)},countryChanged(){if(this.selectedCountry){const t=this.countriesOptions.find((t=>t.value===this.selectedCountry));this.maxInstances=t.maxInstances,this.appUpdateSpecification.instances>this.maxInstances&&(this.appUpdateSpecification.instances=this.maxInstances),this.showToast("warning",`The node type may fluctuate based upon system requirements for your application. For better results in ${t.text}, please consider specifications more suited to ${t.nodeTier} hardware.`)}else{const t=this.continentsOptions.find((t=>t.value===this.selectedContinent));this.maxInstances=t.maxInstances,this.appUpdateSpecification.instances>this.maxInstances&&(this.appUpdateSpecification.instances=this.maxInstances),this.showToast("warning",`The node type may fluctuate based upon system requirements for your application. For better results in ${t.text}, please consider specifications more suited to ${t.nodeTier} hardware.`)}this.instancesLocked&&(this.maxInstances=this.appUpdateSpecification.instances)},getTimestamps(t){const e=[];return t.forEach((t=>{e.push(t.timestamp)})),e},chartOptions(t){const e={chart:{height:350,type:"area"},dataLabels:{enabled:!1},stroke:{curve:"smooth"},xaxis:{type:"timestamp",categories:t},tooltip:{x:{format:"dd/MM/yy HH:mm"}}};return e},decodeGeolocation(t){let e=!1;t.forEach((t=>{t.startsWith("b")&&(e=!0),t.startsWith("a")&&t.startsWith("ac")&&t.startsWith("a!c")&&(e=!0)}));let s=t;if(e){const e=t.find((t=>t.startsWith("a")&&t.startsWith("ac")&&t.startsWith("a!c"))),i=t.find((t=>t.startsWith("b")));let a=`ac${e.slice(1)}`;i&&(a+=`_${i.slice(1)}`),s=[a]}const i=s.filter((t=>t.startsWith("ac"))),a=s.filter((t=>t.startsWith("a!c")));for(let o=1;o{t.push({value:e.code,instances:e.available?100:0})})),fc.countries.forEach((e=>{t.push({value:`${e.continent}_${e.code}`,instances:e.available?100:0})}));const e=await pc.get("https://stats.runonflux.io/fluxinfo?projection=geo");if("success"===e.data.status){const s=e.data.data;s.length>5e3&&(t=[],s.forEach((e=>{if(e.geolocation&&e.geolocation.continentCode&&e.geolocation.regionName&&e.geolocation.countryCode){const s=e.geolocation.continentCode,i=`${s}_${e.geolocation.countryCode}`,a=`${i}_${e.geolocation.regionName}`,o=t.find((t=>t.value===s));o?o.instances+=1:t.push({value:s,instances:1});const n=t.find((t=>t.value===i));n?n.instances+=1:t.push({value:i,instances:1});const r=t.find((t=>t.value===a));r?r.instances+=1:t.push({value:a,instances:1})}})))}else this.showToast("info","Failed to get geolocation data from FluxStats, Using stored locations")}catch(e){console.log(e),this.showToast("info","Failed to get geolocation data from FluxStats, Using stored locations")}this.possibleLocations=t},continentsOptions(t){const e=[{value:t?"NONE":"ALL",text:t?"NONE":"ALL"}];return this.possibleLocations.filter((e=>e.instances>(t?-1:3))).forEach((t=>{if(!t.value.includes("_")){const s=fc.continents.find((e=>e.code===t.value));e.push({value:t.value,text:s?s.name:t.value})}})),e},countriesOptions(t,e){const s=[{value:"ALL",text:"ALL"}];return this.possibleLocations.filter((t=>t.instances>(e?-1:3))).forEach((e=>{if(!e.value.split("_")[2]&&e.value.startsWith(`${t}_`)){const t=fc.countries.find((t=>t.code===e.value.split("_")[1]));s.push({value:e.value.split("_")[1],text:t?t.name:e.value.split("_")[1]})}})),s},regionsOptions(t,e,s){const i=[{value:"ALL",text:"ALL"}];return this.possibleLocations.filter((t=>t.instances>(s?-1:3))).forEach((s=>{s.value.startsWith(`${t}_${e}_`)&&i.push({value:s.value.split("_")[2],text:s.value.split("_")[2]})})),i},generateGeolocations(){const t=[];for(let e=1;et.code===e))||{name:"ALL"};return`Continent: ${s.name||"Unkown"}`}if(t.startsWith("b")){const e=t.slice(1),s=fc.countries.find((t=>t.code===e))||{name:"ALL"};return`Country: ${s.name||"Unkown"}`}if(t.startsWith("ac")){const e=t.slice(2),s=e.split("_"),i=s[0],a=s[1],o=s[2],n=fc.continents.find((t=>t.code===i))||{name:"ALL"},r=fc.countries.find((t=>t.code===a))||{name:"ALL"};let l=`Allowed location: Continent: ${n.name}`;return a&&(l+=`, Country: ${r.name}`),o&&(l+=`, Region: ${o}`),l}if(t.startsWith("a!c")){const e=t.slice(3),s=e.split("_"),i=s[0],a=s[1],o=s[2],n=fc.continents.find((t=>t.code===i))||{name:"ALL"},r=fc.countries.find((t=>t.code===a))||{name:"ALL"};let l=`Forbidden location: Continent: ${n.name}`;return a&&(l+=`, Country: ${r.name}`),o&&(l+=`, Region: ${o}`),l}return"All locations allowed"},adjustMaxInstancesPossible(){const t=this.generateGeolocations(),e=t.filter((t=>t.startsWith("ac")));console.log(t);let s=0;e.forEach((t=>{const e=this.possibleLocations.find((e=>e.value===t.slice(2)));e&&(s+=e.instances),"ALL"===t&&(s+=100)})),e.length||(s+=100),console.log(s),s=s>3?s:3;const i=s>100?100:s;this.maxInstances=i,this.instancesLocked&&(this.maxInstances=this.appUpdateSpecification.instances)},constructAutomaticDomains(t,e,s=0){const i=JSON.parse(JSON.stringify(t)),a=e.toLowerCase();if(0===s){const t=[`${a}.app.runonflux.io`];for(let e=0;ee.ip===t));e>-1&&this.selectedEnterpriseNodes.splice(e,1)},async addFluxNode(t){try{const e=this.selectedEnterpriseNodes.find((e=>e.ip===t));if(console.log(t),!e){const e=this.enterpriseNodes.find((e=>e.ip===t));this.selectedEnterpriseNodes.push(e),console.log(this.selectedEnterpriseNodes);const s=this.enterprisePublicKeys.find((e=>e.nodeip===t));if(!s){const e=await this.fetchEnterpriseKey(t);if(e){const s={nodeip:t,nodekey:e},i=this.enterprisePublicKeys.find((e=>e.nodeip===t));i||this.enterprisePublicKeys.push(s)}}}}catch(e){console.log(e)}},async autoSelectNodes(){const{instances:t}=this.appUpdateSpecification,e=+t+3,s=+t+Math.ceil(Math.max(7,.15*+t)),i=this.enterpriseNodes.filter((t=>!this.selectedEnterpriseNodes.includes(t))),a=[],o=i.filter((t=>t.enterprisePoints>0&&t.score>1e3));for(let n=0;nt.pubkey===o[n].pubkey)).length,i=a.filter((t=>t.pubkey===o[n].pubkey)).length;if(t+i=s)break}if(a.length{const e=this.selectedEnterpriseNodes.find((e=>e.ip===t.ip));if(!e){this.selectedEnterpriseNodes.push(t);const e=this.enterprisePublicKeys.find((e=>e.nodeip===t.ip));if(!e){const e=await this.fetchEnterpriseKey(t.ip);if(e){const s={nodeip:t.ip,nodekey:e},i=this.enterprisePublicKeys.find((e=>e.nodeip===t.ip));i||this.enterprisePublicKeys.push(s)}}}}))},constructNodes(){if(this.appUpdateSpecification.nodes=[],this.selectedEnterpriseNodes.forEach((t=>{this.appUpdateSpecification.nodes.push(t.ip)})),this.appUpdateSpecification.nodes.length>this.maximumEnterpriseNodes)throw new Error("Maximum of 120 Enterprise Nodes allowed")},async getEnterpriseNodes(){const t=sessionStorage.getItem("flux_enterprise_nodes");t&&(this.enterpriseNodes=JSON.parse(t),this.entNodesSelectTable.totalRows=this.enterpriseNodes.length);try{const t=await J.Z.getEnterpriseNodes();"error"===t.data.status?this.showToast("danger",t.data.data.message||t.data.data):(this.enterpriseNodes=t.data.data,this.entNodesSelectTable.totalRows=this.enterpriseNodes.length,sessionStorage.setItem("flux_enterprise_nodes",JSON.stringify(this.enterpriseNodes)))}catch(e){console.log(e)}},async getDaemonBlockCount(){const t=await Q.Z.getBlockCount();"success"===t.data.status&&(this.daemonBlockCount=t.data.data)},async fetchEnterpriseKey(t){try{const e=t.split(":")[0],s=Number(t.split(":")[1]||16127);let i=`https://${e.replace(/\./g,"-")}-${s}.node.api.runonflux.io/flux/pgp`;this.ipAccess&&(i=`http://${e}:${s}/flux/pgp`);const a=await pc.get(i);if("error"!==a.data.status){const t=a.data.data;return t}return this.showToast("danger",a.data.data.message||a.data.data),null}catch(e){return console.log(e),null}},async encryptMessage(t,e){try{const s=await Promise.all(e.map((t=>uc.readKey({armoredKey:t}))));console.log(e),console.log(t);const i=await uc.createMessage({text:t}),a=await uc.encrypt({message:i,encryptionKeys:s});return a}catch(s){return this.showToast("danger","Data encryption failed"),null}},async onSessionConnect(t){console.log(t);const e=await this.signClient.request({topic:t.topic,chainId:"eip155:1",request:{method:"personal_sign",params:[this.dataToSign,t.namespaces.eip155.accounts[0].split(":")[2]]}});console.log(e),this.signature=e},async initWalletConnect(){try{const t=await tt.ZP.init(nc);this.signClient=t;const e=t.session.getAll().length-1,s=t.session.getAll()[e];if(!s)throw new Error("WalletConnect session expired. Please log into FluxOS again");this.onSessionConnect(s)}catch(t){console.error(t),this.showToast("danger",t.message)}},async siwe(t,e){try{const s=`0x${ac.from(t,"utf8").toString("hex")}`,i=await cc.request({method:"personal_sign",params:[s,e]});console.log(i),this.signature=i}catch(s){console.error(s),this.showToast("danger",s.message)}},async initMetamask(){try{if(!cc)return void this.showToast("danger","Metamask not detected");let t;if(cc&&!cc.selectedAddress){const e=await cc.request({method:"eth_requestAccounts",params:[]});console.log(e),t=e[0]}else t=cc.selectedAddress;this.siwe(this.dataToSign,t)}catch(t){this.showToast("danger",t.message)}},async initSSP(){try{if(!window.ssp)return void this.showToast("danger","SSP Wallet not installed");const t=await window.ssp.request("sspwid_sign_message",{message:this.dataToSign});if("ERROR"===t.status)throw new Error(t.data||t.result);this.signature=t.signature}catch(t){this.showToast("danger",t.message)}},async initSSPpay(){try{if(!window.ssp)return void this.showToast("danger","SSP Wallet not installed");const t={message:this.updateHash,amount:(+this.appPricePerSpecs||0).toString(),address:this.deploymentAddress,chain:"flux"},e=await window.ssp.request("pay",t);if("ERROR"===e.status)throw new Error(e.data||e.result);this.showToast("success",`${e.data}: ${e.txid}`)}catch(t){this.showToast("danger",t.message)}},async initStripePay(t,e,s,i){try{this.fiatCheckoutURL="",this.checkoutLoading=!0;const o=localStorage.getItem("zelidauth"),n=dc.parse(o),r={zelid:n.zelid,signature:n.signature,loginPhrase:n.loginPhrase,details:{name:e,description:i,hash:t,price:s,productName:e,success_url:"https://home.runonflux.io/successcheckout",cancel_url:"https://home.runonflux.io",kpi:{origin:"FluxOS",marketplace:this.isMarketplaceApp,registration:!1}}},l=await pc.post(`${Z.M}/api/v1/stripe/checkout/create`,r);if("error"===l.data.status)return this.showToast("error","Failed to create stripe checkout"),void(this.checkoutLoading=!1);this.fiatCheckoutURL=l.data.data,this.checkoutLoading=!1;try{this.openSite(l.data.data)}catch(a){console.log(a),this.showToast("error","Failed to open Stripe checkout, pop-up blocked?")}}catch(a){console.log(a),this.showToast("error","Failed to create stripe checkout"),this.checkoutLoading=!1}},async initPaypalPay(t,e,s,i){try{this.fiatCheckoutURL="",this.checkoutLoading=!0;let o=null,n=await pc.get("https://api.ipify.org?format=json").catch((()=>{console.log("Error geting clientIp from api.ipify.org from")}));n&&n.data&&n.data.ip?o=n.data.ip:(n=await pc.get("https://ipinfo.io").catch((()=>{console.log("Error geting clientIp from ipinfo.io from")})),n&&n.data&&n.data.ip?o=n.data.ip:(n=await pc.get("https://api.ip2location.io").catch((()=>{console.log("Error geting clientIp from api.ip2location.io from")})),n&&n.data&&n.data.ip&&(o=n.data.ip)));const r=localStorage.getItem("zelidauth"),l=dc.parse(r),c={zelid:l.zelid,signature:l.signature,loginPhrase:l.loginPhrase,details:{clientIP:o,name:e,description:i,hash:t,price:s,productName:e,return_url:"home.runonflux.io/successcheckout",cancel_url:"home.runonflux.io",kpi:{origin:"FluxOS",marketplace:this.isMarketplaceApp,registration:!1}}},p=await pc.post(`${Z.M}/api/v1/paypal/checkout/create`,c);if("error"===p.data.status)return this.showToast("error","Failed to create PayPal checkout"),void(this.checkoutLoading=!1);this.fiatCheckoutURL=p.data.data,this.checkoutLoading=!1;try{this.openSite(p.data.data)}catch(a){console.log(a),this.showToast("error","Failed to open Paypal checkout, pop-up blocked?")}}catch(a){console.log(a),this.showToast("error","Failed to create PayPal checkout"),this.checkoutLoading=!1}},async getApplicationManagementAndStatus(){if(this.selectedIp){await this.appsGetListAllApps(),console.log(this.getAllAppsResponse);const t=this.getAllAppsResponse.data.find((t=>t.Names[0]===this.getAppDockerNameIdentifier()))||{},e={name:this.appName,state:t.State||"Unknown state",status:t.Status||"Unknown status"};this.appInfoObject.push(e),e.state=e.state.charAt(0).toUpperCase()+e.state.slice(1),e.status=e.status.charAt(0).toUpperCase()+e.status.slice(1);let s=`${e.name} - ${e.state} - ${e.status}`;if(this.appSpecification&&this.appSpecification.version>=4){s=`${this.appSpecification.name}:`;for(const t of this.appSpecification.compose){const e=this.getAllAppsResponse.data.find((e=>e.Names[0]===this.getAppDockerNameIdentifier(`${t.name}_${this.appSpecification.name}`)))||{},i={name:t.name,state:e.State||"Unknown state",status:e.Status||"Unknown status"};this.appInfoObject.push(i),i.state=i.state.charAt(0).toUpperCase()+i.state.slice(1),i.status=i.status.charAt(0).toUpperCase()+i.status.slice(1);const a=` ${i.name} - ${i.state} - ${i.status},`;s+=a}s=s.substring(0,s.length-1),s+=` - ${this.selectedIp}`}this.applicationManagementAndStatus=s}},selectedIpChanged(){this.getApplicationManagementAndStatus(),this.getInstalledApplicationSpecifics()},cleanData(){this.dataToSign="",this.timestamp="",this.signature="",this.updateHash="",this.output=[]}}},bc=gc;var vc=s(1001),yc=(0,vc.Z)(bc,i,a,!1,null,null,null);const xc=yc.exports},2272:(t,e,s)=>{"use strict";s.d(e,{Z:()=>f});var i=function(){var t=this,e=t._self._c;return e("div",{staticClass:"flux-share-upload",style:t.cssProps},[e("b-row",[e("div",{staticClass:"flux-share-upload-drop text-center",attrs:{id:"dropTarget"},on:{drop:function(e){return e.preventDefault(),t.addFile.apply(null,arguments)},dragover:function(t){t.preventDefault()},click:t.selectFiles}},[e("v-icon",{attrs:{name:"cloud-upload-alt"}}),e("p",[t._v("Drop files here or "),e("em",[t._v("click to upload")])]),e("p",{staticClass:"upload-footer"},[t._v(" (File size is limited to 5GB) ")])],1),e("input",{ref:"fileselector",staticClass:"flux-share-upload-input",attrs:{id:"file-selector",type:"file",multiple:""},on:{change:t.handleFiles}}),e("b-col",{staticClass:"upload-column"},t._l(t.files,(function(s){return e("div",{key:s.file.name,staticClass:"upload-item",staticStyle:{"margin-bottom":"3px"}},[t._v(" "+t._s(s.file.name)+" ("+t._s(t.addAndConvertFileSizes(s.file.size))+") "),e("span",{staticClass:"delete text-white",attrs:{"aria-hidden":"true"}},[s.uploading?t._e():e("v-icon",{style:{color:t.determineColor(s.file.name)},attrs:{name:"trash-alt",disabled:s.uploading},on:{mouseenter:function(e){return t.handleHover(s.file.name,!0)},mouseleave:function(e){return t.handleHover(s.file.name,!1)},focusin:function(e){return t.handleHover(s.file.name,!0)},focusout:function(e){return t.handleHover(s.file.name,!1)},click:function(e){return t.removeFile(s)}}})],1),e("b-progress",{class:s.uploading||s.uploaded?"":"hidden",attrs:{value:s.progress,max:"100",striped:"",height:"5px"}})],1)})),0)],1),e("b-row",[e("b-col",{staticClass:"text-center",attrs:{xs:"12"}},[e("b-button",{staticClass:"delete mt-1",attrs:{variant:"primary",disabled:!t.filesToUpload,size:"sm","aria-label":"Close"},on:{click:function(e){return t.startUpload()}}},[t._v(" Upload Files ")])],1)],1)],1)},a=[],o=(s(70560),s(26253)),n=s(50725),r=s(45752),l=s(15193),c=s(68934),p=s(34547);const d={components:{BRow:o.T,BCol:n.l,BProgress:r.D,BButton:l.T,ToastificationContent:p.Z},props:{uploadFolder:{type:String,required:!0},headers:{type:Object,required:!0}},data(){return{isHovered:!1,hoverStates:{},files:[],primaryColor:c.j.primary,secondaryColor:c.j.secondary}},computed:{cssProps(){return{"--primary-color":this.primaryColor,"--secondary-color":this.secondaryColor}},filesToUpload(){return this.files.length>0&&this.files.some((t=>!t.uploading&&!t.uploaded&&0===t.progress))}},methods:{addAndConvertFileSizes(t,e="auto",s=2){const i={B:1,KB:1024,MB:1048576,GB:1073741824},a=(t,e)=>t/i[e.toUpperCase()],o=(t,e)=>{const i="B"===e?t.toFixed(0):t.toFixed(s);return`${i} ${e}`};let n;if(Array.isArray(t)&&t.length>0)n=+t.reduce(((t,e)=>t+(e.file_size||0)),0);else{if("number"!==typeof+t)return console.error("Invalid sizes parameter"),"N/A";n=+t}if(isNaN(n))return console.error("Total size is not a valid number"),"N/A";if("auto"===e){let t,e=n;return Object.keys(i).forEach((s=>{const i=a(n,s);i>=1&&(void 0===e||i{const e=this.files.some((e=>e.file.name===t.name));console.log(e),e?this.showToast("warning",`'${t.name}' is already in the upload queue`):this.files.push({file:t,uploading:!1,uploaded:!1,progress:0})}))},removeFile(t){this.files=this.files.filter((e=>e.file.name!==t.file.name))},startUpload(){console.log(this.uploadFolder),console.log(this.files),this.files.forEach((t=>{console.log(t),t.uploaded||t.uploading||this.upload(t)}))},upload(t){const e=this;if("undefined"===typeof XMLHttpRequest)return;const s=new XMLHttpRequest,i=this.uploadFolder;s.upload&&(s.upload.onprogress=function(e){console.log(e),e.total>0&&(e.percent=e.loaded/e.total*100),t.progress=e.percent});const a=new FormData;a.append(t.file.name,t.file),t.uploading=!0,s.onerror=function(s){console.log(s),e.showToast("danger",`An error occurred while uploading '${t.file.name}' - ${s}`),e.removeFile(t)},s.onload=function(){if(s.status<200||s.status>=300)return console.log("error"),console.log(s.status),e.showToast("danger",`An error occurred while uploading '${t.file.name}' - Status code: ${s.status}`),void e.removeFile(t);t.uploaded=!0,t.uploading=!1,e.$emit("complete"),e.removeFile(t),e.showToast("success",`'${t.file.name}' has been uploaded`)},s.open("post",i,!0);const o=this.headers||{},n=Object.keys(o);for(let r=0;r{"use strict";function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){for(var s=0;s=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,n=!0,l=!1;return{s:function(){s=s.call(t)},n:function(){var t=s.next();return n=t.done,t},e:function(t){l=!0,o=t},f:function(){try{n||null==s["return"]||s["return"]()}finally{if(l)throw o}}}}function r(t,e){if(t){if("string"===typeof t)return l(t,e);var s=Object.prototype.toString.call(t).slice(8,-1);return"Object"===s&&t.constructor&&(s=t.constructor.name),"Map"===s||"Set"===s?Array.from(t):"Arguments"===s||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(s)?l(t,e):void 0}}function l(t,e){(null==e||e>t.length)&&(e=t.length);for(var s=0,i=new Array(e);s0?40*t+55:0,n=e>0?40*e+55:0,r=s>0?40*s+55:0;i[a]=m([o,n,r])}function u(t){var e=t.toString(16);while(e.length<2)e="0"+e;return e}function m(t){var e,s=[],i=n(t);try{for(i.s();!(e=i.n()).done;){var a=e.value;s.push(u(a))}}catch(o){i.e(o)}finally{i.f()}return"#"+s.join("")}function f(t,e,s,i){var a;return"text"===e?a=_(s,i):"display"===e?a=b(t,s,i):"xterm256Foreground"===e?a=k(t,i.colors[s]):"xterm256Background"===e?a=A(t,i.colors[s]):"rgb"===e&&(a=g(t,s)),a}function g(t,e){e=e.substring(2).slice(0,-1);var s=+e.substr(0,2),i=e.substring(5).split(";"),a=i.map((function(t){return("0"+Number(t).toString(16)).substr(-2)})).join("");return C(t,(38===s?"color:#":"background-color:#")+a)}function b(t,e,s){e=parseInt(e,10);var i,a={"-1":function(){return"
"},0:function(){return t.length&&v(t)},1:function(){return S(t,"b")},3:function(){return S(t,"i")},4:function(){return S(t,"u")},8:function(){return C(t,"display:none")},9:function(){return S(t,"strike")},22:function(){return C(t,"font-weight:normal;text-decoration:none;font-style:normal")},23:function(){return T(t,"i")},24:function(){return T(t,"u")},39:function(){return k(t,s.fg)},49:function(){return A(t,s.bg)},53:function(){return C(t,"text-decoration:overline")}};return a[e]?i=a[e]():4"})).join("")}function y(t,e){for(var s=[],i=t;i<=e;i++)s.push(i);return s}function x(t){return function(e){return(null===t||e.category!==t)&&"all"!==t}}function w(t){t=parseInt(t,10);var e=null;return 0===t?e="all":1===t?e="bold":2")}function C(t,e){return S(t,"span",e)}function k(t,e){return S(t,"span","color:"+e)}function A(t,e){return S(t,"span","background-color:"+e)}function T(t,e){var s;if(t.slice(-1)[0]===e&&(s=t.pop()),s)return""}function P(t,e,s){var i=!1,a=3;function o(){return""}function r(t,e){return s("xterm256Foreground",e),""}function l(t,e){return s("xterm256Background",e),""}function c(t){return e.newline?s("display",-1):s("text",t),""}function p(t,e){i=!0,0===e.trim().length&&(e="0"),e=e.trimRight(";").split(";");var a,o=n(e);try{for(o.s();!(a=o.n()).done;){var r=a.value;s("display",r)}}catch(l){o.e(l)}finally{o.f()}return""}function d(t){return s("text",t),""}function h(t){return s("rgb",t),""}var u=[{pattern:/^\x08+/,sub:o},{pattern:/^\x1b\[[012]?K/,sub:o},{pattern:/^\x1b\[\(B/,sub:o},{pattern:/^\x1b\[[34]8;2;\d+;\d+;\d+m/,sub:h},{pattern:/^\x1b\[38;5;(\d+)m/,sub:r},{pattern:/^\x1b\[48;5;(\d+)m/,sub:l},{pattern:/^\n/,sub:c},{pattern:/^\r+\n/,sub:c},{pattern:/^\r/,sub:c},{pattern:/^\x1b\[((?:\d{1,3};?)+|)m/,sub:p},{pattern:/^\x1b\[\d?J/,sub:o},{pattern:/^\x1b\[\d{0,3};\d{0,3}f/,sub:o},{pattern:/^\x1b\[?[\d;]{0,3}/,sub:o},{pattern:/^(([^\x1b\x08\r\n])+)/,sub:d}];function m(e,s){s>a&&i||(i=!1,t=t.replace(e.pattern,e.sub))}var f=[],g=t,b=g.length;t:while(b>0){for(var v=0,y=0,x=u.length;y65535&&(t-=65536,e+=String.fromCharCode(t>>>10&1023|55296),t=56320|1023&t),e+=String.fromCharCode(t),e};function n(t){return t>=55296&&t<=57343||t>1114111?"�":(t in a.default&&(t=a.default[t]),o(t))}e["default"]=n},65746:function(t,e,s){"use strict";var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.escapeUTF8=e.escape=e.encodeNonAsciiHTML=e.encodeHTML=e.encodeXML=void 0;var a=i(s(70663)),o=p(a.default),n=d(o);e.encodeXML=y(o);var r=i(s(60291)),l=p(r.default),c=d(l);function p(t){return Object.keys(t).sort().reduce((function(e,s){return e[t[s]]="&"+s+";",e}),{})}function d(t){for(var e=[],s=[],i=0,a=Object.keys(t);i1?u(t):t.charCodeAt(0)).toString(16).toUpperCase()+";"}function f(t,e){return function(s){return s.replace(e,(function(e){return t[e]})).replace(h,m)}}var g=new RegExp(n.source+"|"+h.source,"g");function b(t){return t.replace(g,m)}function v(t){return t.replace(n,m)}function y(t){return function(e){return e.replace(g,(function(e){return t[e]||m(e)}))}}e.escape=b,e.escapeUTF8=v},68320:(t,e,s)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.decodeXMLStrict=e.decodeHTML5Strict=e.decodeHTML4Strict=e.decodeHTML5=e.decodeHTML4=e.decodeHTMLStrict=e.decodeHTML=e.decodeXML=e.encodeHTML5=e.encodeHTML4=e.escapeUTF8=e.escape=e.encodeNonAsciiHTML=e.encodeHTML=e.encodeXML=e.encode=e.decodeStrict=e.decode=void 0;var i=s(89995),a=s(65746);function o(t,e){return(!e||e<=0?i.decodeXML:i.decodeHTML)(t)}function n(t,e){return(!e||e<=0?i.decodeXML:i.decodeHTMLStrict)(t)}function r(t,e){return(!e||e<=0?a.encodeXML:a.encodeHTML)(t)}e.decode=o,e.decodeStrict=n,e.encode=r;var l=s(65746);Object.defineProperty(e,"encodeXML",{enumerable:!0,get:function(){return l.encodeXML}}),Object.defineProperty(e,"encodeHTML",{enumerable:!0,get:function(){return l.encodeHTML}}),Object.defineProperty(e,"encodeNonAsciiHTML",{enumerable:!0,get:function(){return l.encodeNonAsciiHTML}}),Object.defineProperty(e,"escape",{enumerable:!0,get:function(){return l.escape}}),Object.defineProperty(e,"escapeUTF8",{enumerable:!0,get:function(){return l.escapeUTF8}}),Object.defineProperty(e,"encodeHTML4",{enumerable:!0,get:function(){return l.encodeHTML}}),Object.defineProperty(e,"encodeHTML5",{enumerable:!0,get:function(){return l.encodeHTML}});var c=s(89995);Object.defineProperty(e,"decodeXML",{enumerable:!0,get:function(){return c.decodeXML}}),Object.defineProperty(e,"decodeHTML",{enumerable:!0,get:function(){return c.decodeHTML}}),Object.defineProperty(e,"decodeHTMLStrict",{enumerable:!0,get:function(){return c.decodeHTMLStrict}}),Object.defineProperty(e,"decodeHTML4",{enumerable:!0,get:function(){return c.decodeHTML}}),Object.defineProperty(e,"decodeHTML5",{enumerable:!0,get:function(){return c.decodeHTML}}),Object.defineProperty(e,"decodeHTML4Strict",{enumerable:!0,get:function(){return c.decodeHTMLStrict}}),Object.defineProperty(e,"decodeHTML5Strict",{enumerable:!0,get:function(){return c.decodeHTMLStrict}}),Object.defineProperty(e,"decodeXMLStrict",{enumerable:!0,get:function(){return c.decodeXML}})},56761:t=>{(function(){"use strict";t.exports=function(t,e,s){for(var i=e||/\s/g,a=!1,o=!1,n=[],r=[],l=t.split(""),c=0;c0?(r.push(n.join("")),n=[]):e&&r.push(p):(!0===s&&n.push(p),o=!o):(!0===s&&n.push(p),a=!a)}return n.length>0?r.push(n.join("")):e&&r.push(""),r}})()},12617:t=>{!function(e,s){t.exports=s()}(self,(()=>(()=>{"use strict";var t={};return(()=>{var e=t;Object.defineProperty(e,"__esModule",{value:!0}),e.FitAddon=void 0,e.FitAddon=class{activate(t){this._terminal=t}dispose(){}fit(){const t=this.proposeDimensions();if(!t||!this._terminal||isNaN(t.cols)||isNaN(t.rows))return;const e=this._terminal._core;this._terminal.rows===t.rows&&this._terminal.cols===t.cols||(e._renderService.clear(),this._terminal.resize(t.cols,t.rows))}proposeDimensions(){if(!this._terminal)return;if(!this._terminal.element||!this._terminal.element.parentElement)return;const t=this._terminal._core,e=t._renderService.dimensions;if(0===e.css.cell.width||0===e.css.cell.height)return;const s=0===this._terminal.options.scrollback?0:t.viewport.scrollBarWidth,i=window.getComputedStyle(this._terminal.element.parentElement),a=parseInt(i.getPropertyValue("height")),o=Math.max(0,parseInt(i.getPropertyValue("width"))),n=window.getComputedStyle(this._terminal.element),r=a-(parseInt(n.getPropertyValue("padding-top"))+parseInt(n.getPropertyValue("padding-bottom"))),l=o-(parseInt(n.getPropertyValue("padding-right"))+parseInt(n.getPropertyValue("padding-left")))-s;return{cols:Math.max(2,Math.floor(l/e.css.cell.width)),rows:Math.max(1,Math.floor(r/e.css.cell.height))}}}})(),t})()))},12286:function(t){!function(e,s){t.exports=s()}(0,(()=>(()=>{"use strict";var t={930:(t,e,s)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.ColorContrastCache=void 0;const i=s(485);e.ColorContrastCache=class{constructor(){this._color=new i.TwoKeyMap,this._css=new i.TwoKeyMap}setCss(t,e,s){this._css.set(t,e,s)}getCss(t,e){return this._css.get(t,e)}setColor(t,e,s){this._color.set(t,e,s)}getColor(t,e){return this._color.get(t,e)}clear(){this._color.clear(),this._css.clear()}}},997:function(t,e,s){var i=this&&this.__decorate||function(t,e,s,i){var a,o=arguments.length,n=o<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,s):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,s,i);else for(var r=t.length-1;r>=0;r--)(a=t[r])&&(n=(o<3?a(n):o>3?a(e,s,n):a(e,s))||n);return o>3&&n&&Object.defineProperty(e,s,n),n},a=this&&this.__param||function(t,e){return function(s,i){e(s,i,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.ThemeService=e.DEFAULT_ANSI_COLORS=void 0;const o=s(930),n=s(160),r=s(345),l=s(859),c=s(97),p=n.css.toColor("#ffffff"),d=n.css.toColor("#000000"),h=n.css.toColor("#ffffff"),u=n.css.toColor("#000000"),m={css:"rgba(255, 255, 255, 0.3)",rgba:4294967117};e.DEFAULT_ANSI_COLORS=Object.freeze((()=>{const t=[n.css.toColor("#2e3436"),n.css.toColor("#cc0000"),n.css.toColor("#4e9a06"),n.css.toColor("#c4a000"),n.css.toColor("#3465a4"),n.css.toColor("#75507b"),n.css.toColor("#06989a"),n.css.toColor("#d3d7cf"),n.css.toColor("#555753"),n.css.toColor("#ef2929"),n.css.toColor("#8ae234"),n.css.toColor("#fce94f"),n.css.toColor("#729fcf"),n.css.toColor("#ad7fa8"),n.css.toColor("#34e2e2"),n.css.toColor("#eeeeec")],e=[0,95,135,175,215,255];for(let s=0;s<216;s++){const i=e[s/36%6|0],a=e[s/6%6|0],o=e[s%6];t.push({css:n.channels.toCss(i,a,o),rgba:n.channels.toRgba(i,a,o)})}for(let s=0;s<24;s++){const e=8+10*s;t.push({css:n.channels.toCss(e,e,e),rgba:n.channels.toRgba(e,e,e)})}return t})());let f=e.ThemeService=class extends l.Disposable{get colors(){return this._colors}constructor(t){super(),this._optionsService=t,this._contrastCache=new o.ColorContrastCache,this._halfContrastCache=new o.ColorContrastCache,this._onChangeColors=this.register(new r.EventEmitter),this.onChangeColors=this._onChangeColors.event,this._colors={foreground:p,background:d,cursor:h,cursorAccent:u,selectionForeground:void 0,selectionBackgroundTransparent:m,selectionBackgroundOpaque:n.color.blend(d,m),selectionInactiveBackgroundTransparent:m,selectionInactiveBackgroundOpaque:n.color.blend(d,m),ansi:e.DEFAULT_ANSI_COLORS.slice(),contrastCache:this._contrastCache,halfContrastCache:this._halfContrastCache},this._updateRestoreColors(),this._setTheme(this._optionsService.rawOptions.theme),this.register(this._optionsService.onSpecificOptionChange("minimumContrastRatio",(()=>this._contrastCache.clear()))),this.register(this._optionsService.onSpecificOptionChange("theme",(()=>this._setTheme(this._optionsService.rawOptions.theme))))}_setTheme(t={}){const s=this._colors;if(s.foreground=g(t.foreground,p),s.background=g(t.background,d),s.cursor=g(t.cursor,h),s.cursorAccent=g(t.cursorAccent,u),s.selectionBackgroundTransparent=g(t.selectionBackground,m),s.selectionBackgroundOpaque=n.color.blend(s.background,s.selectionBackgroundTransparent),s.selectionInactiveBackgroundTransparent=g(t.selectionInactiveBackground,s.selectionBackgroundTransparent),s.selectionInactiveBackgroundOpaque=n.color.blend(s.background,s.selectionInactiveBackgroundTransparent),s.selectionForeground=t.selectionForeground?g(t.selectionForeground,n.NULL_COLOR):void 0,s.selectionForeground===n.NULL_COLOR&&(s.selectionForeground=void 0),n.color.isOpaque(s.selectionBackgroundTransparent)){const t=.3;s.selectionBackgroundTransparent=n.color.opacity(s.selectionBackgroundTransparent,t)}if(n.color.isOpaque(s.selectionInactiveBackgroundTransparent)){const t=.3;s.selectionInactiveBackgroundTransparent=n.color.opacity(s.selectionInactiveBackgroundTransparent,t)}if(s.ansi=e.DEFAULT_ANSI_COLORS.slice(),s.ansi[0]=g(t.black,e.DEFAULT_ANSI_COLORS[0]),s.ansi[1]=g(t.red,e.DEFAULT_ANSI_COLORS[1]),s.ansi[2]=g(t.green,e.DEFAULT_ANSI_COLORS[2]),s.ansi[3]=g(t.yellow,e.DEFAULT_ANSI_COLORS[3]),s.ansi[4]=g(t.blue,e.DEFAULT_ANSI_COLORS[4]),s.ansi[5]=g(t.magenta,e.DEFAULT_ANSI_COLORS[5]),s.ansi[6]=g(t.cyan,e.DEFAULT_ANSI_COLORS[6]),s.ansi[7]=g(t.white,e.DEFAULT_ANSI_COLORS[7]),s.ansi[8]=g(t.brightBlack,e.DEFAULT_ANSI_COLORS[8]),s.ansi[9]=g(t.brightRed,e.DEFAULT_ANSI_COLORS[9]),s.ansi[10]=g(t.brightGreen,e.DEFAULT_ANSI_COLORS[10]),s.ansi[11]=g(t.brightYellow,e.DEFAULT_ANSI_COLORS[11]),s.ansi[12]=g(t.brightBlue,e.DEFAULT_ANSI_COLORS[12]),s.ansi[13]=g(t.brightMagenta,e.DEFAULT_ANSI_COLORS[13]),s.ansi[14]=g(t.brightCyan,e.DEFAULT_ANSI_COLORS[14]),s.ansi[15]=g(t.brightWhite,e.DEFAULT_ANSI_COLORS[15]),t.extendedAnsi){const i=Math.min(s.ansi.length-16,t.extendedAnsi.length);for(let a=0;a{Object.defineProperty(e,"__esModule",{value:!0}),e.contrastRatio=e.toPaddedHex=e.rgba=e.rgb=e.css=e.color=e.channels=e.NULL_COLOR=void 0;const i=s(399);let a=0,o=0,n=0,r=0;var l,c,p,d,h;function u(t){const e=t.toString(16);return e.length<2?"0"+e:e}function m(t,e){return t>>0}}(l||(e.channels=l={})),function(t){function e(t,e){return r=Math.round(255*e),[a,o,n]=h.toChannels(t.rgba),{css:l.toCss(a,o,n,r),rgba:l.toRgba(a,o,n,r)}}t.blend=function(t,e){if(r=(255&e.rgba)/255,1===r)return{css:e.css,rgba:e.rgba};const s=e.rgba>>24&255,i=e.rgba>>16&255,c=e.rgba>>8&255,p=t.rgba>>24&255,d=t.rgba>>16&255,h=t.rgba>>8&255;return a=p+Math.round((s-p)*r),o=d+Math.round((i-d)*r),n=h+Math.round((c-h)*r),{css:l.toCss(a,o,n),rgba:l.toRgba(a,o,n)}},t.isOpaque=function(t){return 255==(255&t.rgba)},t.ensureContrastRatio=function(t,e,s){const i=h.ensureContrastRatio(t.rgba,e.rgba,s);if(i)return h.toColor(i>>24&255,i>>16&255,i>>8&255)},t.opaque=function(t){const e=(255|t.rgba)>>>0;return[a,o,n]=h.toChannels(e),{css:l.toCss(a,o,n),rgba:e}},t.opacity=e,t.multiplyOpacity=function(t,s){return r=255&t.rgba,e(t,r*s/255)},t.toColorRGB=function(t){return[t.rgba>>24&255,t.rgba>>16&255,t.rgba>>8&255]}}(c||(e.color=c={})),function(t){let e,s;if(!i.isNode){const t=document.createElement("canvas");t.width=1,t.height=1;const i=t.getContext("2d",{willReadFrequently:!0});i&&(e=i,e.globalCompositeOperation="copy",s=e.createLinearGradient(0,0,1,1))}t.toColor=function(t){if(t.match(/#[\da-f]{3,8}/i))switch(t.length){case 4:return a=parseInt(t.slice(1,2).repeat(2),16),o=parseInt(t.slice(2,3).repeat(2),16),n=parseInt(t.slice(3,4).repeat(2),16),h.toColor(a,o,n);case 5:return a=parseInt(t.slice(1,2).repeat(2),16),o=parseInt(t.slice(2,3).repeat(2),16),n=parseInt(t.slice(3,4).repeat(2),16),r=parseInt(t.slice(4,5).repeat(2),16),h.toColor(a,o,n,r);case 7:return{css:t,rgba:(parseInt(t.slice(1),16)<<8|255)>>>0};case 9:return{css:t,rgba:parseInt(t.slice(1),16)>>>0}}const i=t.match(/rgba?\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*(,\s*(0|1|\d?\.(\d+))\s*)?\)/);if(i)return a=parseInt(i[1]),o=parseInt(i[2]),n=parseInt(i[3]),r=Math.round(255*(void 0===i[5]?1:parseFloat(i[5]))),h.toColor(a,o,n,r);if(!e||!s)throw new Error("css.toColor: Unsupported css format");if(e.fillStyle=s,e.fillStyle=t,"string"!=typeof e.fillStyle)throw new Error("css.toColor: Unsupported css format");if(e.fillRect(0,0,1,1),[a,o,n,r]=e.getImageData(0,0,1,1).data,255!==r)throw new Error("css.toColor: Unsupported css format");return{rgba:l.toRgba(a,o,n,r),css:t}}}(p||(e.css=p={})),function(t){function e(t,e,s){const i=t/255,a=e/255,o=s/255;return.2126*(i<=.03928?i/12.92:Math.pow((i+.055)/1.055,2.4))+.7152*(a<=.03928?a/12.92:Math.pow((a+.055)/1.055,2.4))+.0722*(o<=.03928?o/12.92:Math.pow((o+.055)/1.055,2.4))}t.relativeLuminance=function(t){return e(t>>16&255,t>>8&255,255&t)},t.relativeLuminance2=e}(d||(e.rgb=d={})),function(t){function e(t,e,s){const i=t>>24&255,a=t>>16&255,o=t>>8&255;let n=e>>24&255,r=e>>16&255,l=e>>8&255,c=m(d.relativeLuminance2(n,r,l),d.relativeLuminance2(i,a,o));for(;c0||r>0||l>0);)n-=Math.max(0,Math.ceil(.1*n)),r-=Math.max(0,Math.ceil(.1*r)),l-=Math.max(0,Math.ceil(.1*l)),c=m(d.relativeLuminance2(n,r,l),d.relativeLuminance2(i,a,o));return(n<<24|r<<16|l<<8|255)>>>0}function s(t,e,s){const i=t>>24&255,a=t>>16&255,o=t>>8&255;let n=e>>24&255,r=e>>16&255,l=e>>8&255,c=m(d.relativeLuminance2(n,r,l),d.relativeLuminance2(i,a,o));for(;c>>0}t.ensureContrastRatio=function(t,i,a){const o=d.relativeLuminance(t>>8),n=d.relativeLuminance(i>>8);if(m(o,n)>8));if(rm(o,d.relativeLuminance(e>>8))?n:e}return n}const r=s(t,i,a),l=m(o,d.relativeLuminance(r>>8));if(lm(o,d.relativeLuminance(s>>8))?r:s}return r}},t.reduceLuminance=e,t.increaseLuminance=s,t.toChannels=function(t){return[t>>24&255,t>>16&255,t>>8&255,255&t]},t.toColor=function(t,e,s,i){return{css:l.toCss(t,e,s,i),rgba:l.toRgba(t,e,s,i)}}}(h||(e.rgba=h={})),e.toPaddedHex=u,e.contrastRatio=m},345:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.forwardEvent=e.EventEmitter=void 0,e.EventEmitter=class{constructor(){this._listeners=[],this._disposed=!1}get event(){return this._event||(this._event=t=>(this._listeners.push(t),{dispose:()=>{if(!this._disposed)for(let e=0;ee.fire(t)))}},859:(t,e)=>{function s(t){for(const e of t)e.dispose();t.length=0}Object.defineProperty(e,"__esModule",{value:!0}),e.getDisposeArrayDisposable=e.disposeArray=e.toDisposable=e.MutableDisposable=e.Disposable=void 0,e.Disposable=class{constructor(){this._disposables=[],this._isDisposed=!1}dispose(){this._isDisposed=!0;for(const t of this._disposables)t.dispose();this._disposables.length=0}register(t){return this._disposables.push(t),t}unregister(t){const e=this._disposables.indexOf(t);-1!==e&&this._disposables.splice(e,1)}},e.MutableDisposable=class{constructor(){this._isDisposed=!1}get value(){return this._isDisposed?void 0:this._value}set value(t){var e;this._isDisposed||t===this._value||(null===(e=this._value)||void 0===e||e.dispose(),this._value=t)}clear(){this.value=void 0}dispose(){var t;this._isDisposed=!0,null===(t=this._value)||void 0===t||t.dispose(),this._value=void 0}},e.toDisposable=function(t){return{dispose:t}},e.disposeArray=s,e.getDisposeArrayDisposable=function(t){return{dispose:()=>s(t)}}},485:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.FourKeyMap=e.TwoKeyMap=void 0;class s{constructor(){this._data={}}set(t,e,s){this._data[t]||(this._data[t]={}),this._data[t][e]=s}get(t,e){return this._data[t]?this._data[t][e]:void 0}clear(){this._data={}}}e.TwoKeyMap=s,e.FourKeyMap=class{constructor(){this._data=new s}set(t,e,i,a,o){this._data.get(t,e)||this._data.set(t,e,new s),this._data.get(t,e).set(i,a,o)}get(t,e,s,i){var a;return null===(a=this._data.get(t,e))||void 0===a?void 0:a.get(s,i)}clear(){this._data.clear()}}},399:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.isChromeOS=e.isLinux=e.isWindows=e.isIphone=e.isIpad=e.isMac=e.getSafariVersion=e.isSafari=e.isLegacyEdge=e.isFirefox=e.isNode=void 0,e.isNode="undefined"==typeof navigator;const s=e.isNode?"node":navigator.userAgent,i=e.isNode?"node":navigator.platform;e.isFirefox=s.includes("Firefox"),e.isLegacyEdge=s.includes("Edge"),e.isSafari=/^((?!chrome|android).)*safari/i.test(s),e.getSafariVersion=function(){if(!e.isSafari)return 0;const t=s.match(/Version\/(\d+)/);return null===t||t.length<2?0:parseInt(t[1])},e.isMac=["Macintosh","MacIntel","MacPPC","Mac68K"].includes(i),e.isIpad="iPad"===i,e.isIphone="iPhone"===i,e.isWindows=["Windows","Win16","Win32","WinCE"].includes(i),e.isLinux=i.indexOf("Linux")>=0,e.isChromeOS=/\bCrOS\b/.test(s)},726:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.createDecorator=e.getServiceDependencies=e.serviceRegistry=void 0;const s="di$target",i="di$dependencies";e.serviceRegistry=new Map,e.getServiceDependencies=function(t){return t[i]||[]},e.createDecorator=function(t){if(e.serviceRegistry.has(t))return e.serviceRegistry.get(t);const a=function(t,e,o){if(3!==arguments.length)throw new Error("@IServiceName-decorator can only be used to decorate a parameter");!function(t,e,a){e[s]===e?e[i].push({id:t,index:a}):(e[i]=[{id:t,index:a}],e[s]=e)}(a,t,o)};return a.toString=()=>t,e.serviceRegistry.set(t,a),a}},97:(t,e,s)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.IDecorationService=e.IUnicodeService=e.IOscLinkService=e.IOptionsService=e.ILogService=e.LogLevelEnum=e.IInstantiationService=e.ICharsetService=e.ICoreService=e.ICoreMouseService=e.IBufferService=void 0;const i=s(726);var a;e.IBufferService=(0,i.createDecorator)("BufferService"),e.ICoreMouseService=(0,i.createDecorator)("CoreMouseService"),e.ICoreService=(0,i.createDecorator)("CoreService"),e.ICharsetService=(0,i.createDecorator)("CharsetService"),e.IInstantiationService=(0,i.createDecorator)("InstantiationService"),function(t){t[t.TRACE=0]="TRACE",t[t.DEBUG=1]="DEBUG",t[t.INFO=2]="INFO",t[t.WARN=3]="WARN",t[t.ERROR=4]="ERROR",t[t.OFF=5]="OFF"}(a||(e.LogLevelEnum=a={})),e.ILogService=(0,i.createDecorator)("LogService"),e.IOptionsService=(0,i.createDecorator)("OptionsService"),e.IOscLinkService=(0,i.createDecorator)("OscLinkService"),e.IUnicodeService=(0,i.createDecorator)("UnicodeService"),e.IDecorationService=(0,i.createDecorator)("DecorationService")}},e={};function s(i){var a=e[i];if(void 0!==a)return a.exports;var o=e[i]={exports:{}};return t[i].call(o.exports,o,o.exports,s),o.exports}var i={};return(()=>{var t=i;Object.defineProperty(t,"__esModule",{value:!0}),t.HTMLSerializeHandler=t.SerializeAddon=void 0;const e=s(997);function a(t,e,s){return Math.max(e,Math.min(t,s))}class o{constructor(t){this._buffer=t}serialize(t){const e=this._buffer.getNullCell(),s=this._buffer.getNullCell();let i=e;const a=t.start.x,o=t.end.x,n=t.start.y,r=t.end.y;this._beforeSerialize(o-a,a,o);for(let l=a;l<=o;l++){const a=this._buffer.getLine(l);if(a){const o=l!==t.start.x?0:n,c=l!==t.end.x?a.length:r;for(let t=o;t0&&!r(this._cursorStyle,this._backgroundCell)&&(this._currentRow+=`[${this._nullCellCount}X`);let i="";if(!e){t-this._firstRow>=this._terminal.rows&&(null===(s=this._buffer.getLine(this._cursorStyleRow))||void 0===s||s.getCell(this._cursorStyleCol,this._backgroundCell));const e=this._buffer.getLine(t),a=this._buffer.getLine(t+1);if(a.isWrapped){i="";const s=e.getCell(e.length-1,this._thisRowLastChar),o=e.getCell(e.length-2,this._thisRowLastSecondChar),n=a.getCell(0,this._nextRowFirstChar),l=n.getWidth()>1;let c=!1;(n.getChars()&&l?this._nullCellCount<=1:this._nullCellCount<=0)&&((s.getChars()||0===s.getWidth())&&r(s,n)&&(c=!0),l&&(o.getChars()||0===o.getWidth())&&r(s,n)&&r(o,n)&&(c=!0)),c||(i="-".repeat(this._nullCellCount+1),i+="",this._nullCellCount>0&&(i+="",i+=`[${e.length-this._nullCellCount}C`,i+=`[${this._nullCellCount}X`,i+=`[${e.length-this._nullCellCount}D`,i+=""),this._lastContentCursorRow=t+1,this._lastContentCursorCol=0,this._lastCursorRow=t+1,this._lastCursorCol=0)}else i="\r\n",this._lastCursorRow=t+1,this._lastCursorCol=0}this._allRows[this._rowIndex]=this._currentRow,this._allRowSeparators[this._rowIndex++]=i,this._currentRow="",this._nullCellCount=0}_diffStyle(t,e){const s=[],i=!n(t,e),a=!r(t,e),o=!l(t,e);if(i||a||o)if(t.isAttributeDefault())e.isAttributeDefault()||s.push(0);else{if(i){const e=t.getFgColor();t.isFgRGB()?s.push(38,2,e>>>16&255,e>>>8&255,255&e):t.isFgPalette()?e>=16?s.push(38,5,e):s.push(8&e?90+(7&e):30+(7&e)):s.push(39)}if(a){const e=t.getBgColor();t.isBgRGB()?s.push(48,2,e>>>16&255,e>>>8&255,255&e):t.isBgPalette()?e>=16?s.push(48,5,e):s.push(8&e?100+(7&e):40+(7&e)):s.push(49)}o&&(t.isInverse()!==e.isInverse()&&s.push(t.isInverse()?7:27),t.isBold()!==e.isBold()&&s.push(t.isBold()?1:22),t.isUnderline()!==e.isUnderline()&&s.push(t.isUnderline()?4:24),t.isOverline()!==e.isOverline()&&s.push(t.isOverline()?53:55),t.isBlink()!==e.isBlink()&&s.push(t.isBlink()?5:25),t.isInvisible()!==e.isInvisible()&&s.push(t.isInvisible()?8:28),t.isItalic()!==e.isItalic()&&s.push(t.isItalic()?3:23),t.isDim()!==e.isDim()&&s.push(t.isDim()?2:22),t.isStrikethrough()!==e.isStrikethrough()&&s.push(t.isStrikethrough()?9:29))}return s}_nextCell(t,e,s,i){if(0===t.getWidth())return;const a=""===t.getChars(),o=this._diffStyle(t,this._cursorStyle);if(a?!r(this._cursorStyle,t):o.length>0){this._nullCellCount>0&&(r(this._cursorStyle,this._backgroundCell)||(this._currentRow+=`[${this._nullCellCount}X`),this._currentRow+=`[${this._nullCellCount}C`,this._nullCellCount=0),this._lastContentCursorRow=this._lastCursorRow=s,this._lastContentCursorCol=this._lastCursorCol=i,this._currentRow+=`[${o.join(";")}m`;const t=this._buffer.getLine(s);void 0!==t&&(t.getCell(i,this._cursorStyle),this._cursorStyleRow=s,this._cursorStyleCol=i)}a?this._nullCellCount+=t.getWidth():(this._nullCellCount>0&&(r(this._cursorStyle,this._backgroundCell)||(this._currentRow+=`[${this._nullCellCount}X`),this._currentRow+=`[${this._nullCellCount}C`,this._nullCellCount=0),this._currentRow+=t.getChars(),this._lastContentCursorRow=this._lastCursorRow=s,this._lastContentCursorCol=this._lastCursorCol=i+t.getWidth())}_serializeString(){let t=this._allRows.length;this._buffer.length-this._firstRow<=this._terminal.rows&&(t=this._lastContentCursorRow+1-this._firstRow,this._lastCursorCol=this._lastContentCursorCol,this._lastCursorRow=this._lastContentCursorRow);let e="";for(let r=0;r0?e+=`[${a}B`:a<0&&(e+=`[${-a}A`),(t=>{t>0?e+=`[${t}C`:t<0&&(e+=`[${-t}D`)})(i-this._lastCursorCol));const o=this._terminal._core._inputHandler._curAttrData,n=this._diffStyle(o,this._cursorStyle);return n.length>0&&(e+=`[${n.join(";")}m`),e}}t.SerializeAddon=class{activate(t){this._terminal=t}_serializeBuffer(t,e,s){const i=e.length,o=new c(e,t),n=void 0===s?i:a(s+t.rows,0,i);return o.serialize({start:{x:i-n,y:0},end:{x:i-1,y:t.cols}})}_serializeBufferAsHTML(t,e){var s,i;const o=t.buffer.active,n=new p(o,t,e);if(null===(s=e.onlySelection)||void 0===s||!s){const s=o.length,i=e.scrollback,r=void 0===i?s:a(i+t.rows,0,s);return n.serialize({start:{x:s-r,y:0},end:{x:s-1,y:t.cols}})}const r=null===(i=this._terminal)||void 0===i?void 0:i.getSelectionPosition();return void 0!==r?n.serialize({start:{x:r.start.y,y:r.start.x},end:{x:r.end.y,y:r.end.x}}):""}_serializeModes(t){let e="";const s=t.modes;if(s.applicationCursorKeysMode&&(e+="[?1h"),s.applicationKeypadMode&&(e+="[?66h"),s.bracketedPasteMode&&(e+="[?2004h"),s.insertMode&&(e+=""),s.originMode&&(e+="[?6h"),s.reverseWraparoundMode&&(e+="[?45h"),s.sendFocusMode&&(e+="[?1004h"),!1===s.wraparoundMode&&(e+="[?7l"),"none"!==s.mouseTrackingMode)switch(s.mouseTrackingMode){case"x10":e+="[?9h";break;case"vt200":e+="[?1000h";break;case"drag":e+="[?1002h";break;case"any":e+="[?1003h"}return e}serialize(t){if(!this._terminal)throw new Error("Cannot use addon until it has been loaded");let e=this._serializeBuffer(this._terminal,this._terminal.buffer.normal,null==t?void 0:t.scrollback);return(null==t?void 0:t.excludeAltBuffer)||"alternate"!==this._terminal.buffer.active.type||(e+=`[?1049h${this._serializeBuffer(this._terminal,this._terminal.buffer.alternate,void 0)}`),(null==t?void 0:t.excludeModes)||(e+=this._serializeModes(this._terminal)),e}serializeAsHTML(t){if(!this._terminal)throw new Error("Cannot use addon until it has been loaded");return this._serializeBufferAsHTML(this._terminal,t||{})}dispose(){}};class p extends o{constructor(t,s,i){super(t),this._terminal=s,this._options=i,this._currentRow="",this._htmlContent="",s._core._themeService?this._ansiColors=s._core._themeService.colors.ansi:this._ansiColors=e.DEFAULT_ANSI_COLORS}_padStart(t,e,s){return e>>=0,s=null!=s?s:" ",t.length>e?t:((e-=t.length)>s.length&&(s+=s.repeat(e/s.length)),s.slice(0,e)+t)}_beforeSerialize(t,e,s){var i,a,o,n,r;this._htmlContent+="\x3c!--StartFragment--\x3e
";let l="#000000",c="#ffffff";null!==(i=this._options.includeGlobalBackground)&&void 0!==i&&i&&(l=null!==(o=null===(a=this._terminal.options.theme)||void 0===a?void 0:a.foreground)&&void 0!==o?o:"#ffffff",c=null!==(r=null===(n=this._terminal.options.theme)||void 0===n?void 0:n.background)&&void 0!==r?r:"#000000");const p=[];p.push("color: "+l+";"),p.push("background-color: "+c+";"),p.push("font-family: "+this._terminal.options.fontFamily+";"),p.push("font-size: "+this._terminal.options.fontSize+"px;"),this._htmlContent+="
"}_afterSerialize(){this._htmlContent+="
",this._htmlContent+="
\x3c!--EndFragment--\x3e"}_rowEnd(t,e){this._htmlContent+="
"+this._currentRow+"
",this._currentRow=""}_getHexColor(t,e){const s=e?t.getFgColor():t.getBgColor();return(e?t.isFgRGB():t.isBgRGB())?[s>>16&255,s>>8&255,255&s].map((t=>this._padStart(t.toString(16),2,"0"))).join(""):(e?t.isFgPalette():t.isBgPalette())?this._ansiColors[s].css:void 0}_diffStyle(t,e){const s=[],i=!n(t,e),a=!r(t,e),o=!l(t,e);if(i||a||o){const e=this._getHexColor(t,!0);e&&s.push("color: "+e+";");const i=this._getHexColor(t,!1);return i&&s.push("background-color: "+i+";"),t.isInverse()&&s.push("color: #000000; background-color: #BFBFBF;"),t.isBold()&&s.push("font-weight: bold;"),t.isUnderline()&&t.isOverline()?s.push("text-decoration: overline underline;"):t.isUnderline()?s.push("text-decoration: underline;"):t.isOverline()&&s.push("text-decoration: overline;"),t.isBlink()&&s.push("text-decoration: blink;"),t.isInvisible()&&s.push("visibility: hidden;"),t.isItalic()&&s.push("font-style: italic;"),t.isDim()&&s.push("opacity: 0.5;"),t.isStrikethrough()&&s.push("text-decoration: line-through;"),s}}_nextCell(t,e,s,i){if(0===t.getWidth())return;const a=""===t.getChars(),o=this._diffStyle(t,e);o&&(this._currentRow+=0===o.length?"":""),this._currentRow+=a?" ":t.getChars()}_serializeString(){return this._htmlContent}}t.HTMLSerializeHandler=p})(),i})()))},32993:function(t){!function(e,s){t.exports=s()}(0,(()=>(()=>{"use strict";var t={433:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.UnicodeV11=void 0;const s=[[768,879],[1155,1161],[1425,1469],[1471,1471],[1473,1474],[1476,1477],[1479,1479],[1536,1541],[1552,1562],[1564,1564],[1611,1631],[1648,1648],[1750,1757],[1759,1764],[1767,1768],[1770,1773],[1807,1807],[1809,1809],[1840,1866],[1958,1968],[2027,2035],[2045,2045],[2070,2073],[2075,2083],[2085,2087],[2089,2093],[2137,2139],[2259,2306],[2362,2362],[2364,2364],[2369,2376],[2381,2381],[2385,2391],[2402,2403],[2433,2433],[2492,2492],[2497,2500],[2509,2509],[2530,2531],[2558,2558],[2561,2562],[2620,2620],[2625,2626],[2631,2632],[2635,2637],[2641,2641],[2672,2673],[2677,2677],[2689,2690],[2748,2748],[2753,2757],[2759,2760],[2765,2765],[2786,2787],[2810,2815],[2817,2817],[2876,2876],[2879,2879],[2881,2884],[2893,2893],[2902,2902],[2914,2915],[2946,2946],[3008,3008],[3021,3021],[3072,3072],[3076,3076],[3134,3136],[3142,3144],[3146,3149],[3157,3158],[3170,3171],[3201,3201],[3260,3260],[3263,3263],[3270,3270],[3276,3277],[3298,3299],[3328,3329],[3387,3388],[3393,3396],[3405,3405],[3426,3427],[3530,3530],[3538,3540],[3542,3542],[3633,3633],[3636,3642],[3655,3662],[3761,3761],[3764,3772],[3784,3789],[3864,3865],[3893,3893],[3895,3895],[3897,3897],[3953,3966],[3968,3972],[3974,3975],[3981,3991],[3993,4028],[4038,4038],[4141,4144],[4146,4151],[4153,4154],[4157,4158],[4184,4185],[4190,4192],[4209,4212],[4226,4226],[4229,4230],[4237,4237],[4253,4253],[4448,4607],[4957,4959],[5906,5908],[5938,5940],[5970,5971],[6002,6003],[6068,6069],[6071,6077],[6086,6086],[6089,6099],[6109,6109],[6155,6158],[6277,6278],[6313,6313],[6432,6434],[6439,6440],[6450,6450],[6457,6459],[6679,6680],[6683,6683],[6742,6742],[6744,6750],[6752,6752],[6754,6754],[6757,6764],[6771,6780],[6783,6783],[6832,6846],[6912,6915],[6964,6964],[6966,6970],[6972,6972],[6978,6978],[7019,7027],[7040,7041],[7074,7077],[7080,7081],[7083,7085],[7142,7142],[7144,7145],[7149,7149],[7151,7153],[7212,7219],[7222,7223],[7376,7378],[7380,7392],[7394,7400],[7405,7405],[7412,7412],[7416,7417],[7616,7673],[7675,7679],[8203,8207],[8234,8238],[8288,8292],[8294,8303],[8400,8432],[11503,11505],[11647,11647],[11744,11775],[12330,12333],[12441,12442],[42607,42610],[42612,42621],[42654,42655],[42736,42737],[43010,43010],[43014,43014],[43019,43019],[43045,43046],[43204,43205],[43232,43249],[43263,43263],[43302,43309],[43335,43345],[43392,43394],[43443,43443],[43446,43449],[43452,43453],[43493,43493],[43561,43566],[43569,43570],[43573,43574],[43587,43587],[43596,43596],[43644,43644],[43696,43696],[43698,43700],[43703,43704],[43710,43711],[43713,43713],[43756,43757],[43766,43766],[44005,44005],[44008,44008],[44013,44013],[64286,64286],[65024,65039],[65056,65071],[65279,65279],[65529,65531]],i=[[66045,66045],[66272,66272],[66422,66426],[68097,68099],[68101,68102],[68108,68111],[68152,68154],[68159,68159],[68325,68326],[68900,68903],[69446,69456],[69633,69633],[69688,69702],[69759,69761],[69811,69814],[69817,69818],[69821,69821],[69837,69837],[69888,69890],[69927,69931],[69933,69940],[70003,70003],[70016,70017],[70070,70078],[70089,70092],[70191,70193],[70196,70196],[70198,70199],[70206,70206],[70367,70367],[70371,70378],[70400,70401],[70459,70460],[70464,70464],[70502,70508],[70512,70516],[70712,70719],[70722,70724],[70726,70726],[70750,70750],[70835,70840],[70842,70842],[70847,70848],[70850,70851],[71090,71093],[71100,71101],[71103,71104],[71132,71133],[71219,71226],[71229,71229],[71231,71232],[71339,71339],[71341,71341],[71344,71349],[71351,71351],[71453,71455],[71458,71461],[71463,71467],[71727,71735],[71737,71738],[72148,72151],[72154,72155],[72160,72160],[72193,72202],[72243,72248],[72251,72254],[72263,72263],[72273,72278],[72281,72283],[72330,72342],[72344,72345],[72752,72758],[72760,72765],[72767,72767],[72850,72871],[72874,72880],[72882,72883],[72885,72886],[73009,73014],[73018,73018],[73020,73021],[73023,73029],[73031,73031],[73104,73105],[73109,73109],[73111,73111],[73459,73460],[78896,78904],[92912,92916],[92976,92982],[94031,94031],[94095,94098],[113821,113822],[113824,113827],[119143,119145],[119155,119170],[119173,119179],[119210,119213],[119362,119364],[121344,121398],[121403,121452],[121461,121461],[121476,121476],[121499,121503],[121505,121519],[122880,122886],[122888,122904],[122907,122913],[122915,122916],[122918,122922],[123184,123190],[123628,123631],[125136,125142],[125252,125258],[917505,917505],[917536,917631],[917760,917999]],a=[[4352,4447],[8986,8987],[9001,9002],[9193,9196],[9200,9200],[9203,9203],[9725,9726],[9748,9749],[9800,9811],[9855,9855],[9875,9875],[9889,9889],[9898,9899],[9917,9918],[9924,9925],[9934,9934],[9940,9940],[9962,9962],[9970,9971],[9973,9973],[9978,9978],[9981,9981],[9989,9989],[9994,9995],[10024,10024],[10060,10060],[10062,10062],[10067,10069],[10071,10071],[10133,10135],[10160,10160],[10175,10175],[11035,11036],[11088,11088],[11093,11093],[11904,11929],[11931,12019],[12032,12245],[12272,12283],[12288,12329],[12334,12350],[12353,12438],[12443,12543],[12549,12591],[12593,12686],[12688,12730],[12736,12771],[12784,12830],[12832,12871],[12880,19903],[19968,42124],[42128,42182],[43360,43388],[44032,55203],[63744,64255],[65040,65049],[65072,65106],[65108,65126],[65128,65131],[65281,65376],[65504,65510]],o=[[94176,94179],[94208,100343],[100352,101106],[110592,110878],[110928,110930],[110948,110951],[110960,111355],[126980,126980],[127183,127183],[127374,127374],[127377,127386],[127488,127490],[127504,127547],[127552,127560],[127568,127569],[127584,127589],[127744,127776],[127789,127797],[127799,127868],[127870,127891],[127904,127946],[127951,127955],[127968,127984],[127988,127988],[127992,128062],[128064,128064],[128066,128252],[128255,128317],[128331,128334],[128336,128359],[128378,128378],[128405,128406],[128420,128420],[128507,128591],[128640,128709],[128716,128716],[128720,128722],[128725,128725],[128747,128748],[128756,128762],[128992,129003],[129293,129393],[129395,129398],[129402,129442],[129445,129450],[129454,129482],[129485,129535],[129648,129651],[129656,129658],[129664,129666],[129680,129685],[131072,196605],[196608,262141]];let n;function r(t,e){let s,i=0,a=e.length-1;if(te[a][1])return!1;for(;a>=i;)if(s=i+a>>1,t>e[s][1])i=s+1;else{if(!(t{var t=i;Object.defineProperty(t,"__esModule",{value:!0}),t.Unicode11Addon=void 0;const e=s(433);t.Unicode11Addon=class{activate(t){t.unicode.register(new e.UnicodeV11)}dispose(){}}})(),i})()))},67511:t=>{!function(e,s){t.exports=s()}(self,(()=>(()=>{"use strict";var t={6:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.LinkComputer=e.WebLinkProvider=void 0,e.WebLinkProvider=class{constructor(t,e,s,i={}){this._terminal=t,this._regex=e,this._handler=s,this._options=i}provideLinks(t,e){const i=s.computeLink(t,this._regex,this._terminal,this._handler);e(this._addCallbacks(i))}_addCallbacks(t){return t.map((t=>(t.leave=this._options.leave,t.hover=(e,s)=>{if(this._options.hover){const{range:i}=t;this._options.hover(e,s,i)}},t)))}};class s{static computeLink(t,e,i,a){const o=new RegExp(e.source,(e.flags||"")+"g"),[n,r]=s._getWindowedLineStrings(t-1,i),l=n.join("");let c;const p=[];for(;c=o.exec(l);){const e=c[0];try{const t=new URL(e),s=decodeURI(t.toString());if(e!==s&&e+"/"!==s)continue}catch(t){continue}const[o,n]=s._mapStrIdx(i,r,0,c.index),[l,d]=s._mapStrIdx(i,o,n,e.length);if(-1===o||-1===n||-1===l||-1===d)continue;const h={start:{x:n+1,y:o+1},end:{x:d,y:l+1}};p.push({range:h,text:e,activate:a})}return p}static _getWindowedLineStrings(t,e){let s,i=t,a=t,o=0,n="";const r=[];if(s=e.buffer.active.getLine(t)){const t=s.translateToString(!0);if(s.isWrapped&&" "!==t[0]){for(o=0;(s=e.buffer.active.getLine(--i))&&o<2048&&(n=s.translateToString(!0),o+=n.length,r.push(n),s.isWrapped&&-1===n.indexOf(" ")););r.reverse()}for(r.push(t),o=0;(s=e.buffer.active.getLine(++a))&&s.isWrapped&&o<2048&&(n=s.translateToString(!0),o+=n.length,r.push(n),-1===n.indexOf(" ")););}return[r,i]}static _mapStrIdx(t,e,s,i){const a=t.buffer.active,o=a.getNullCell();let n=s;for(;i;){const t=a.getLine(e);if(!t)return[-1,-1];for(let s=n;s{var t=i;Object.defineProperty(t,"__esModule",{value:!0}),t.WebLinksAddon=void 0;const e=s(6),a=/https?:[/]{2}[^\s"'!*(){}|\\\^<>`]*[^\s"':,.!?{}|\\\^~\[\]`()<>]/;function o(t,e){const s=window.open();if(s){try{s.opener=null}catch(t){}s.location.href=e}else console.warn("Opening link blocked as opener could not be cleared")}t.WebLinksAddon=class{constructor(t=o,e={}){this._handler=t,this._options=e}activate(t){this._terminal=t;const s=this._options,i=s.urlRegex||a;this._linkProvider=this._terminal.registerLinkProvider(new e.WebLinkProvider(this._terminal,i,this._handler,s))}dispose(){var t;null===(t=this._linkProvider)||void 0===t||t.dispose()}}})(),i})()))},94961:t=>{"use strict";t.exports=JSON.parse('{"0":65533,"128":8364,"130":8218,"131":402,"132":8222,"133":8230,"134":8224,"135":8225,"136":710,"137":8240,"138":352,"139":8249,"140":338,"142":381,"145":8216,"146":8217,"147":8220,"148":8221,"149":8226,"150":8211,"151":8212,"152":732,"153":8482,"154":353,"155":8250,"156":339,"158":382,"159":376}')},60291:t=>{"use strict";t.exports=JSON.parse('{"Aacute":"Á","aacute":"á","Abreve":"Ă","abreve":"ă","ac":"∾","acd":"∿","acE":"∾̳","Acirc":"Â","acirc":"â","acute":"´","Acy":"А","acy":"а","AElig":"Æ","aelig":"æ","af":"⁡","Afr":"𝔄","afr":"𝔞","Agrave":"À","agrave":"à","alefsym":"ℵ","aleph":"ℵ","Alpha":"Α","alpha":"α","Amacr":"Ā","amacr":"ā","amalg":"⨿","amp":"&","AMP":"&","andand":"⩕","And":"⩓","and":"∧","andd":"⩜","andslope":"⩘","andv":"⩚","ang":"∠","ange":"⦤","angle":"∠","angmsdaa":"⦨","angmsdab":"⦩","angmsdac":"⦪","angmsdad":"⦫","angmsdae":"⦬","angmsdaf":"⦭","angmsdag":"⦮","angmsdah":"⦯","angmsd":"∡","angrt":"∟","angrtvb":"⊾","angrtvbd":"⦝","angsph":"∢","angst":"Å","angzarr":"⍼","Aogon":"Ą","aogon":"ą","Aopf":"𝔸","aopf":"𝕒","apacir":"⩯","ap":"≈","apE":"⩰","ape":"≊","apid":"≋","apos":"\'","ApplyFunction":"⁡","approx":"≈","approxeq":"≊","Aring":"Å","aring":"å","Ascr":"𝒜","ascr":"𝒶","Assign":"≔","ast":"*","asymp":"≈","asympeq":"≍","Atilde":"Ã","atilde":"ã","Auml":"Ä","auml":"ä","awconint":"∳","awint":"⨑","backcong":"≌","backepsilon":"϶","backprime":"‵","backsim":"∽","backsimeq":"⋍","Backslash":"∖","Barv":"⫧","barvee":"⊽","barwed":"⌅","Barwed":"⌆","barwedge":"⌅","bbrk":"⎵","bbrktbrk":"⎶","bcong":"≌","Bcy":"Б","bcy":"б","bdquo":"„","becaus":"∵","because":"∵","Because":"∵","bemptyv":"⦰","bepsi":"϶","bernou":"ℬ","Bernoullis":"ℬ","Beta":"Β","beta":"β","beth":"ℶ","between":"≬","Bfr":"𝔅","bfr":"𝔟","bigcap":"⋂","bigcirc":"◯","bigcup":"⋃","bigodot":"⨀","bigoplus":"⨁","bigotimes":"⨂","bigsqcup":"⨆","bigstar":"★","bigtriangledown":"▽","bigtriangleup":"△","biguplus":"⨄","bigvee":"⋁","bigwedge":"⋀","bkarow":"⤍","blacklozenge":"⧫","blacksquare":"▪","blacktriangle":"▴","blacktriangledown":"▾","blacktriangleleft":"◂","blacktriangleright":"▸","blank":"␣","blk12":"▒","blk14":"░","blk34":"▓","block":"█","bne":"=⃥","bnequiv":"≡⃥","bNot":"⫭","bnot":"⌐","Bopf":"𝔹","bopf":"𝕓","bot":"⊥","bottom":"⊥","bowtie":"⋈","boxbox":"⧉","boxdl":"┐","boxdL":"╕","boxDl":"╖","boxDL":"╗","boxdr":"┌","boxdR":"╒","boxDr":"╓","boxDR":"╔","boxh":"─","boxH":"═","boxhd":"┬","boxHd":"╤","boxhD":"╥","boxHD":"╦","boxhu":"┴","boxHu":"╧","boxhU":"╨","boxHU":"╩","boxminus":"⊟","boxplus":"⊞","boxtimes":"⊠","boxul":"┘","boxuL":"╛","boxUl":"╜","boxUL":"╝","boxur":"└","boxuR":"╘","boxUr":"╙","boxUR":"╚","boxv":"│","boxV":"║","boxvh":"┼","boxvH":"╪","boxVh":"╫","boxVH":"╬","boxvl":"┤","boxvL":"╡","boxVl":"╢","boxVL":"╣","boxvr":"├","boxvR":"╞","boxVr":"╟","boxVR":"╠","bprime":"‵","breve":"˘","Breve":"˘","brvbar":"¦","bscr":"𝒷","Bscr":"ℬ","bsemi":"⁏","bsim":"∽","bsime":"⋍","bsolb":"⧅","bsol":"\\\\","bsolhsub":"⟈","bull":"•","bullet":"•","bump":"≎","bumpE":"⪮","bumpe":"≏","Bumpeq":"≎","bumpeq":"≏","Cacute":"Ć","cacute":"ć","capand":"⩄","capbrcup":"⩉","capcap":"⩋","cap":"∩","Cap":"⋒","capcup":"⩇","capdot":"⩀","CapitalDifferentialD":"ⅅ","caps":"∩︀","caret":"⁁","caron":"ˇ","Cayleys":"ℭ","ccaps":"⩍","Ccaron":"Č","ccaron":"č","Ccedil":"Ç","ccedil":"ç","Ccirc":"Ĉ","ccirc":"ĉ","Cconint":"∰","ccups":"⩌","ccupssm":"⩐","Cdot":"Ċ","cdot":"ċ","cedil":"¸","Cedilla":"¸","cemptyv":"⦲","cent":"¢","centerdot":"·","CenterDot":"·","cfr":"𝔠","Cfr":"ℭ","CHcy":"Ч","chcy":"ч","check":"✓","checkmark":"✓","Chi":"Χ","chi":"χ","circ":"ˆ","circeq":"≗","circlearrowleft":"↺","circlearrowright":"↻","circledast":"⊛","circledcirc":"⊚","circleddash":"⊝","CircleDot":"⊙","circledR":"®","circledS":"Ⓢ","CircleMinus":"⊖","CirclePlus":"⊕","CircleTimes":"⊗","cir":"○","cirE":"⧃","cire":"≗","cirfnint":"⨐","cirmid":"⫯","cirscir":"⧂","ClockwiseContourIntegral":"∲","CloseCurlyDoubleQuote":"”","CloseCurlyQuote":"’","clubs":"♣","clubsuit":"♣","colon":":","Colon":"∷","Colone":"⩴","colone":"≔","coloneq":"≔","comma":",","commat":"@","comp":"∁","compfn":"∘","complement":"∁","complexes":"ℂ","cong":"≅","congdot":"⩭","Congruent":"≡","conint":"∮","Conint":"∯","ContourIntegral":"∮","copf":"𝕔","Copf":"ℂ","coprod":"∐","Coproduct":"∐","copy":"©","COPY":"©","copysr":"℗","CounterClockwiseContourIntegral":"∳","crarr":"↵","cross":"✗","Cross":"⨯","Cscr":"𝒞","cscr":"𝒸","csub":"⫏","csube":"⫑","csup":"⫐","csupe":"⫒","ctdot":"⋯","cudarrl":"⤸","cudarrr":"⤵","cuepr":"⋞","cuesc":"⋟","cularr":"↶","cularrp":"⤽","cupbrcap":"⩈","cupcap":"⩆","CupCap":"≍","cup":"∪","Cup":"⋓","cupcup":"⩊","cupdot":"⊍","cupor":"⩅","cups":"∪︀","curarr":"↷","curarrm":"⤼","curlyeqprec":"⋞","curlyeqsucc":"⋟","curlyvee":"⋎","curlywedge":"⋏","curren":"¤","curvearrowleft":"↶","curvearrowright":"↷","cuvee":"⋎","cuwed":"⋏","cwconint":"∲","cwint":"∱","cylcty":"⌭","dagger":"†","Dagger":"‡","daleth":"ℸ","darr":"↓","Darr":"↡","dArr":"⇓","dash":"‐","Dashv":"⫤","dashv":"⊣","dbkarow":"⤏","dblac":"˝","Dcaron":"Ď","dcaron":"ď","Dcy":"Д","dcy":"д","ddagger":"‡","ddarr":"⇊","DD":"ⅅ","dd":"ⅆ","DDotrahd":"⤑","ddotseq":"⩷","deg":"°","Del":"∇","Delta":"Δ","delta":"δ","demptyv":"⦱","dfisht":"⥿","Dfr":"𝔇","dfr":"𝔡","dHar":"⥥","dharl":"⇃","dharr":"⇂","DiacriticalAcute":"´","DiacriticalDot":"˙","DiacriticalDoubleAcute":"˝","DiacriticalGrave":"`","DiacriticalTilde":"˜","diam":"⋄","diamond":"⋄","Diamond":"⋄","diamondsuit":"♦","diams":"♦","die":"¨","DifferentialD":"ⅆ","digamma":"ϝ","disin":"⋲","div":"÷","divide":"÷","divideontimes":"⋇","divonx":"⋇","DJcy":"Ђ","djcy":"ђ","dlcorn":"⌞","dlcrop":"⌍","dollar":"$","Dopf":"𝔻","dopf":"𝕕","Dot":"¨","dot":"˙","DotDot":"⃜","doteq":"≐","doteqdot":"≑","DotEqual":"≐","dotminus":"∸","dotplus":"∔","dotsquare":"⊡","doublebarwedge":"⌆","DoubleContourIntegral":"∯","DoubleDot":"¨","DoubleDownArrow":"⇓","DoubleLeftArrow":"⇐","DoubleLeftRightArrow":"⇔","DoubleLeftTee":"⫤","DoubleLongLeftArrow":"⟸","DoubleLongLeftRightArrow":"⟺","DoubleLongRightArrow":"⟹","DoubleRightArrow":"⇒","DoubleRightTee":"⊨","DoubleUpArrow":"⇑","DoubleUpDownArrow":"⇕","DoubleVerticalBar":"∥","DownArrowBar":"⤓","downarrow":"↓","DownArrow":"↓","Downarrow":"⇓","DownArrowUpArrow":"⇵","DownBreve":"̑","downdownarrows":"⇊","downharpoonleft":"⇃","downharpoonright":"⇂","DownLeftRightVector":"⥐","DownLeftTeeVector":"⥞","DownLeftVectorBar":"⥖","DownLeftVector":"↽","DownRightTeeVector":"⥟","DownRightVectorBar":"⥗","DownRightVector":"⇁","DownTeeArrow":"↧","DownTee":"⊤","drbkarow":"⤐","drcorn":"⌟","drcrop":"⌌","Dscr":"𝒟","dscr":"𝒹","DScy":"Ѕ","dscy":"ѕ","dsol":"⧶","Dstrok":"Đ","dstrok":"đ","dtdot":"⋱","dtri":"▿","dtrif":"▾","duarr":"⇵","duhar":"⥯","dwangle":"⦦","DZcy":"Џ","dzcy":"џ","dzigrarr":"⟿","Eacute":"É","eacute":"é","easter":"⩮","Ecaron":"Ě","ecaron":"ě","Ecirc":"Ê","ecirc":"ê","ecir":"≖","ecolon":"≕","Ecy":"Э","ecy":"э","eDDot":"⩷","Edot":"Ė","edot":"ė","eDot":"≑","ee":"ⅇ","efDot":"≒","Efr":"𝔈","efr":"𝔢","eg":"⪚","Egrave":"È","egrave":"è","egs":"⪖","egsdot":"⪘","el":"⪙","Element":"∈","elinters":"⏧","ell":"ℓ","els":"⪕","elsdot":"⪗","Emacr":"Ē","emacr":"ē","empty":"∅","emptyset":"∅","EmptySmallSquare":"◻","emptyv":"∅","EmptyVerySmallSquare":"▫","emsp13":" ","emsp14":" ","emsp":" ","ENG":"Ŋ","eng":"ŋ","ensp":" ","Eogon":"Ę","eogon":"ę","Eopf":"𝔼","eopf":"𝕖","epar":"⋕","eparsl":"⧣","eplus":"⩱","epsi":"ε","Epsilon":"Ε","epsilon":"ε","epsiv":"ϵ","eqcirc":"≖","eqcolon":"≕","eqsim":"≂","eqslantgtr":"⪖","eqslantless":"⪕","Equal":"⩵","equals":"=","EqualTilde":"≂","equest":"≟","Equilibrium":"⇌","equiv":"≡","equivDD":"⩸","eqvparsl":"⧥","erarr":"⥱","erDot":"≓","escr":"ℯ","Escr":"ℰ","esdot":"≐","Esim":"⩳","esim":"≂","Eta":"Η","eta":"η","ETH":"Ð","eth":"ð","Euml":"Ë","euml":"ë","euro":"€","excl":"!","exist":"∃","Exists":"∃","expectation":"ℰ","exponentiale":"ⅇ","ExponentialE":"ⅇ","fallingdotseq":"≒","Fcy":"Ф","fcy":"ф","female":"♀","ffilig":"ffi","fflig":"ff","ffllig":"ffl","Ffr":"𝔉","ffr":"𝔣","filig":"fi","FilledSmallSquare":"◼","FilledVerySmallSquare":"▪","fjlig":"fj","flat":"♭","fllig":"fl","fltns":"▱","fnof":"ƒ","Fopf":"𝔽","fopf":"𝕗","forall":"∀","ForAll":"∀","fork":"⋔","forkv":"⫙","Fouriertrf":"ℱ","fpartint":"⨍","frac12":"½","frac13":"⅓","frac14":"¼","frac15":"⅕","frac16":"⅙","frac18":"⅛","frac23":"⅔","frac25":"⅖","frac34":"¾","frac35":"⅗","frac38":"⅜","frac45":"⅘","frac56":"⅚","frac58":"⅝","frac78":"⅞","frasl":"⁄","frown":"⌢","fscr":"𝒻","Fscr":"ℱ","gacute":"ǵ","Gamma":"Γ","gamma":"γ","Gammad":"Ϝ","gammad":"ϝ","gap":"⪆","Gbreve":"Ğ","gbreve":"ğ","Gcedil":"Ģ","Gcirc":"Ĝ","gcirc":"ĝ","Gcy":"Г","gcy":"г","Gdot":"Ġ","gdot":"ġ","ge":"≥","gE":"≧","gEl":"⪌","gel":"⋛","geq":"≥","geqq":"≧","geqslant":"⩾","gescc":"⪩","ges":"⩾","gesdot":"⪀","gesdoto":"⪂","gesdotol":"⪄","gesl":"⋛︀","gesles":"⪔","Gfr":"𝔊","gfr":"𝔤","gg":"≫","Gg":"⋙","ggg":"⋙","gimel":"ℷ","GJcy":"Ѓ","gjcy":"ѓ","gla":"⪥","gl":"≷","glE":"⪒","glj":"⪤","gnap":"⪊","gnapprox":"⪊","gne":"⪈","gnE":"≩","gneq":"⪈","gneqq":"≩","gnsim":"⋧","Gopf":"𝔾","gopf":"𝕘","grave":"`","GreaterEqual":"≥","GreaterEqualLess":"⋛","GreaterFullEqual":"≧","GreaterGreater":"⪢","GreaterLess":"≷","GreaterSlantEqual":"⩾","GreaterTilde":"≳","Gscr":"𝒢","gscr":"ℊ","gsim":"≳","gsime":"⪎","gsiml":"⪐","gtcc":"⪧","gtcir":"⩺","gt":">","GT":">","Gt":"≫","gtdot":"⋗","gtlPar":"⦕","gtquest":"⩼","gtrapprox":"⪆","gtrarr":"⥸","gtrdot":"⋗","gtreqless":"⋛","gtreqqless":"⪌","gtrless":"≷","gtrsim":"≳","gvertneqq":"≩︀","gvnE":"≩︀","Hacek":"ˇ","hairsp":" ","half":"½","hamilt":"ℋ","HARDcy":"Ъ","hardcy":"ъ","harrcir":"⥈","harr":"↔","hArr":"⇔","harrw":"↭","Hat":"^","hbar":"ℏ","Hcirc":"Ĥ","hcirc":"ĥ","hearts":"♥","heartsuit":"♥","hellip":"…","hercon":"⊹","hfr":"𝔥","Hfr":"ℌ","HilbertSpace":"ℋ","hksearow":"⤥","hkswarow":"⤦","hoarr":"⇿","homtht":"∻","hookleftarrow":"↩","hookrightarrow":"↪","hopf":"𝕙","Hopf":"ℍ","horbar":"―","HorizontalLine":"─","hscr":"𝒽","Hscr":"ℋ","hslash":"ℏ","Hstrok":"Ħ","hstrok":"ħ","HumpDownHump":"≎","HumpEqual":"≏","hybull":"⁃","hyphen":"‐","Iacute":"Í","iacute":"í","ic":"⁣","Icirc":"Î","icirc":"î","Icy":"И","icy":"и","Idot":"İ","IEcy":"Е","iecy":"е","iexcl":"¡","iff":"⇔","ifr":"𝔦","Ifr":"ℑ","Igrave":"Ì","igrave":"ì","ii":"ⅈ","iiiint":"⨌","iiint":"∭","iinfin":"⧜","iiota":"℩","IJlig":"IJ","ijlig":"ij","Imacr":"Ī","imacr":"ī","image":"ℑ","ImaginaryI":"ⅈ","imagline":"ℐ","imagpart":"ℑ","imath":"ı","Im":"ℑ","imof":"⊷","imped":"Ƶ","Implies":"⇒","incare":"℅","in":"∈","infin":"∞","infintie":"⧝","inodot":"ı","intcal":"⊺","int":"∫","Int":"∬","integers":"ℤ","Integral":"∫","intercal":"⊺","Intersection":"⋂","intlarhk":"⨗","intprod":"⨼","InvisibleComma":"⁣","InvisibleTimes":"⁢","IOcy":"Ё","iocy":"ё","Iogon":"Į","iogon":"į","Iopf":"𝕀","iopf":"𝕚","Iota":"Ι","iota":"ι","iprod":"⨼","iquest":"¿","iscr":"𝒾","Iscr":"ℐ","isin":"∈","isindot":"⋵","isinE":"⋹","isins":"⋴","isinsv":"⋳","isinv":"∈","it":"⁢","Itilde":"Ĩ","itilde":"ĩ","Iukcy":"І","iukcy":"і","Iuml":"Ï","iuml":"ï","Jcirc":"Ĵ","jcirc":"ĵ","Jcy":"Й","jcy":"й","Jfr":"𝔍","jfr":"𝔧","jmath":"ȷ","Jopf":"𝕁","jopf":"𝕛","Jscr":"𝒥","jscr":"𝒿","Jsercy":"Ј","jsercy":"ј","Jukcy":"Є","jukcy":"є","Kappa":"Κ","kappa":"κ","kappav":"ϰ","Kcedil":"Ķ","kcedil":"ķ","Kcy":"К","kcy":"к","Kfr":"𝔎","kfr":"𝔨","kgreen":"ĸ","KHcy":"Х","khcy":"х","KJcy":"Ќ","kjcy":"ќ","Kopf":"𝕂","kopf":"𝕜","Kscr":"𝒦","kscr":"𝓀","lAarr":"⇚","Lacute":"Ĺ","lacute":"ĺ","laemptyv":"⦴","lagran":"ℒ","Lambda":"Λ","lambda":"λ","lang":"⟨","Lang":"⟪","langd":"⦑","langle":"⟨","lap":"⪅","Laplacetrf":"ℒ","laquo":"«","larrb":"⇤","larrbfs":"⤟","larr":"←","Larr":"↞","lArr":"⇐","larrfs":"⤝","larrhk":"↩","larrlp":"↫","larrpl":"⤹","larrsim":"⥳","larrtl":"↢","latail":"⤙","lAtail":"⤛","lat":"⪫","late":"⪭","lates":"⪭︀","lbarr":"⤌","lBarr":"⤎","lbbrk":"❲","lbrace":"{","lbrack":"[","lbrke":"⦋","lbrksld":"⦏","lbrkslu":"⦍","Lcaron":"Ľ","lcaron":"ľ","Lcedil":"Ļ","lcedil":"ļ","lceil":"⌈","lcub":"{","Lcy":"Л","lcy":"л","ldca":"⤶","ldquo":"“","ldquor":"„","ldrdhar":"⥧","ldrushar":"⥋","ldsh":"↲","le":"≤","lE":"≦","LeftAngleBracket":"⟨","LeftArrowBar":"⇤","leftarrow":"←","LeftArrow":"←","Leftarrow":"⇐","LeftArrowRightArrow":"⇆","leftarrowtail":"↢","LeftCeiling":"⌈","LeftDoubleBracket":"⟦","LeftDownTeeVector":"⥡","LeftDownVectorBar":"⥙","LeftDownVector":"⇃","LeftFloor":"⌊","leftharpoondown":"↽","leftharpoonup":"↼","leftleftarrows":"⇇","leftrightarrow":"↔","LeftRightArrow":"↔","Leftrightarrow":"⇔","leftrightarrows":"⇆","leftrightharpoons":"⇋","leftrightsquigarrow":"↭","LeftRightVector":"⥎","LeftTeeArrow":"↤","LeftTee":"⊣","LeftTeeVector":"⥚","leftthreetimes":"⋋","LeftTriangleBar":"⧏","LeftTriangle":"⊲","LeftTriangleEqual":"⊴","LeftUpDownVector":"⥑","LeftUpTeeVector":"⥠","LeftUpVectorBar":"⥘","LeftUpVector":"↿","LeftVectorBar":"⥒","LeftVector":"↼","lEg":"⪋","leg":"⋚","leq":"≤","leqq":"≦","leqslant":"⩽","lescc":"⪨","les":"⩽","lesdot":"⩿","lesdoto":"⪁","lesdotor":"⪃","lesg":"⋚︀","lesges":"⪓","lessapprox":"⪅","lessdot":"⋖","lesseqgtr":"⋚","lesseqqgtr":"⪋","LessEqualGreater":"⋚","LessFullEqual":"≦","LessGreater":"≶","lessgtr":"≶","LessLess":"⪡","lesssim":"≲","LessSlantEqual":"⩽","LessTilde":"≲","lfisht":"⥼","lfloor":"⌊","Lfr":"𝔏","lfr":"𝔩","lg":"≶","lgE":"⪑","lHar":"⥢","lhard":"↽","lharu":"↼","lharul":"⥪","lhblk":"▄","LJcy":"Љ","ljcy":"љ","llarr":"⇇","ll":"≪","Ll":"⋘","llcorner":"⌞","Lleftarrow":"⇚","llhard":"⥫","lltri":"◺","Lmidot":"Ŀ","lmidot":"ŀ","lmoustache":"⎰","lmoust":"⎰","lnap":"⪉","lnapprox":"⪉","lne":"⪇","lnE":"≨","lneq":"⪇","lneqq":"≨","lnsim":"⋦","loang":"⟬","loarr":"⇽","lobrk":"⟦","longleftarrow":"⟵","LongLeftArrow":"⟵","Longleftarrow":"⟸","longleftrightarrow":"⟷","LongLeftRightArrow":"⟷","Longleftrightarrow":"⟺","longmapsto":"⟼","longrightarrow":"⟶","LongRightArrow":"⟶","Longrightarrow":"⟹","looparrowleft":"↫","looparrowright":"↬","lopar":"⦅","Lopf":"𝕃","lopf":"𝕝","loplus":"⨭","lotimes":"⨴","lowast":"∗","lowbar":"_","LowerLeftArrow":"↙","LowerRightArrow":"↘","loz":"◊","lozenge":"◊","lozf":"⧫","lpar":"(","lparlt":"⦓","lrarr":"⇆","lrcorner":"⌟","lrhar":"⇋","lrhard":"⥭","lrm":"‎","lrtri":"⊿","lsaquo":"‹","lscr":"𝓁","Lscr":"ℒ","lsh":"↰","Lsh":"↰","lsim":"≲","lsime":"⪍","lsimg":"⪏","lsqb":"[","lsquo":"‘","lsquor":"‚","Lstrok":"Ł","lstrok":"ł","ltcc":"⪦","ltcir":"⩹","lt":"<","LT":"<","Lt":"≪","ltdot":"⋖","lthree":"⋋","ltimes":"⋉","ltlarr":"⥶","ltquest":"⩻","ltri":"◃","ltrie":"⊴","ltrif":"◂","ltrPar":"⦖","lurdshar":"⥊","luruhar":"⥦","lvertneqq":"≨︀","lvnE":"≨︀","macr":"¯","male":"♂","malt":"✠","maltese":"✠","Map":"⤅","map":"↦","mapsto":"↦","mapstodown":"↧","mapstoleft":"↤","mapstoup":"↥","marker":"▮","mcomma":"⨩","Mcy":"М","mcy":"м","mdash":"—","mDDot":"∺","measuredangle":"∡","MediumSpace":" ","Mellintrf":"ℳ","Mfr":"𝔐","mfr":"𝔪","mho":"℧","micro":"µ","midast":"*","midcir":"⫰","mid":"∣","middot":"·","minusb":"⊟","minus":"−","minusd":"∸","minusdu":"⨪","MinusPlus":"∓","mlcp":"⫛","mldr":"…","mnplus":"∓","models":"⊧","Mopf":"𝕄","mopf":"𝕞","mp":"∓","mscr":"𝓂","Mscr":"ℳ","mstpos":"∾","Mu":"Μ","mu":"μ","multimap":"⊸","mumap":"⊸","nabla":"∇","Nacute":"Ń","nacute":"ń","nang":"∠⃒","nap":"≉","napE":"⩰̸","napid":"≋̸","napos":"ʼn","napprox":"≉","natural":"♮","naturals":"ℕ","natur":"♮","nbsp":" ","nbump":"≎̸","nbumpe":"≏̸","ncap":"⩃","Ncaron":"Ň","ncaron":"ň","Ncedil":"Ņ","ncedil":"ņ","ncong":"≇","ncongdot":"⩭̸","ncup":"⩂","Ncy":"Н","ncy":"н","ndash":"–","nearhk":"⤤","nearr":"↗","neArr":"⇗","nearrow":"↗","ne":"≠","nedot":"≐̸","NegativeMediumSpace":"​","NegativeThickSpace":"​","NegativeThinSpace":"​","NegativeVeryThinSpace":"​","nequiv":"≢","nesear":"⤨","nesim":"≂̸","NestedGreaterGreater":"≫","NestedLessLess":"≪","NewLine":"\\n","nexist":"∄","nexists":"∄","Nfr":"𝔑","nfr":"𝔫","ngE":"≧̸","nge":"≱","ngeq":"≱","ngeqq":"≧̸","ngeqslant":"⩾̸","nges":"⩾̸","nGg":"⋙̸","ngsim":"≵","nGt":"≫⃒","ngt":"≯","ngtr":"≯","nGtv":"≫̸","nharr":"↮","nhArr":"⇎","nhpar":"⫲","ni":"∋","nis":"⋼","nisd":"⋺","niv":"∋","NJcy":"Њ","njcy":"њ","nlarr":"↚","nlArr":"⇍","nldr":"‥","nlE":"≦̸","nle":"≰","nleftarrow":"↚","nLeftarrow":"⇍","nleftrightarrow":"↮","nLeftrightarrow":"⇎","nleq":"≰","nleqq":"≦̸","nleqslant":"⩽̸","nles":"⩽̸","nless":"≮","nLl":"⋘̸","nlsim":"≴","nLt":"≪⃒","nlt":"≮","nltri":"⋪","nltrie":"⋬","nLtv":"≪̸","nmid":"∤","NoBreak":"⁠","NonBreakingSpace":" ","nopf":"𝕟","Nopf":"ℕ","Not":"⫬","not":"¬","NotCongruent":"≢","NotCupCap":"≭","NotDoubleVerticalBar":"∦","NotElement":"∉","NotEqual":"≠","NotEqualTilde":"≂̸","NotExists":"∄","NotGreater":"≯","NotGreaterEqual":"≱","NotGreaterFullEqual":"≧̸","NotGreaterGreater":"≫̸","NotGreaterLess":"≹","NotGreaterSlantEqual":"⩾̸","NotGreaterTilde":"≵","NotHumpDownHump":"≎̸","NotHumpEqual":"≏̸","notin":"∉","notindot":"⋵̸","notinE":"⋹̸","notinva":"∉","notinvb":"⋷","notinvc":"⋶","NotLeftTriangleBar":"⧏̸","NotLeftTriangle":"⋪","NotLeftTriangleEqual":"⋬","NotLess":"≮","NotLessEqual":"≰","NotLessGreater":"≸","NotLessLess":"≪̸","NotLessSlantEqual":"⩽̸","NotLessTilde":"≴","NotNestedGreaterGreater":"⪢̸","NotNestedLessLess":"⪡̸","notni":"∌","notniva":"∌","notnivb":"⋾","notnivc":"⋽","NotPrecedes":"⊀","NotPrecedesEqual":"⪯̸","NotPrecedesSlantEqual":"⋠","NotReverseElement":"∌","NotRightTriangleBar":"⧐̸","NotRightTriangle":"⋫","NotRightTriangleEqual":"⋭","NotSquareSubset":"⊏̸","NotSquareSubsetEqual":"⋢","NotSquareSuperset":"⊐̸","NotSquareSupersetEqual":"⋣","NotSubset":"⊂⃒","NotSubsetEqual":"⊈","NotSucceeds":"⊁","NotSucceedsEqual":"⪰̸","NotSucceedsSlantEqual":"⋡","NotSucceedsTilde":"≿̸","NotSuperset":"⊃⃒","NotSupersetEqual":"⊉","NotTilde":"≁","NotTildeEqual":"≄","NotTildeFullEqual":"≇","NotTildeTilde":"≉","NotVerticalBar":"∤","nparallel":"∦","npar":"∦","nparsl":"⫽⃥","npart":"∂̸","npolint":"⨔","npr":"⊀","nprcue":"⋠","nprec":"⊀","npreceq":"⪯̸","npre":"⪯̸","nrarrc":"⤳̸","nrarr":"↛","nrArr":"⇏","nrarrw":"↝̸","nrightarrow":"↛","nRightarrow":"⇏","nrtri":"⋫","nrtrie":"⋭","nsc":"⊁","nsccue":"⋡","nsce":"⪰̸","Nscr":"𝒩","nscr":"𝓃","nshortmid":"∤","nshortparallel":"∦","nsim":"≁","nsime":"≄","nsimeq":"≄","nsmid":"∤","nspar":"∦","nsqsube":"⋢","nsqsupe":"⋣","nsub":"⊄","nsubE":"⫅̸","nsube":"⊈","nsubset":"⊂⃒","nsubseteq":"⊈","nsubseteqq":"⫅̸","nsucc":"⊁","nsucceq":"⪰̸","nsup":"⊅","nsupE":"⫆̸","nsupe":"⊉","nsupset":"⊃⃒","nsupseteq":"⊉","nsupseteqq":"⫆̸","ntgl":"≹","Ntilde":"Ñ","ntilde":"ñ","ntlg":"≸","ntriangleleft":"⋪","ntrianglelefteq":"⋬","ntriangleright":"⋫","ntrianglerighteq":"⋭","Nu":"Ν","nu":"ν","num":"#","numero":"№","numsp":" ","nvap":"≍⃒","nvdash":"⊬","nvDash":"⊭","nVdash":"⊮","nVDash":"⊯","nvge":"≥⃒","nvgt":">⃒","nvHarr":"⤄","nvinfin":"⧞","nvlArr":"⤂","nvle":"≤⃒","nvlt":"<⃒","nvltrie":"⊴⃒","nvrArr":"⤃","nvrtrie":"⊵⃒","nvsim":"∼⃒","nwarhk":"⤣","nwarr":"↖","nwArr":"⇖","nwarrow":"↖","nwnear":"⤧","Oacute":"Ó","oacute":"ó","oast":"⊛","Ocirc":"Ô","ocirc":"ô","ocir":"⊚","Ocy":"О","ocy":"о","odash":"⊝","Odblac":"Ő","odblac":"ő","odiv":"⨸","odot":"⊙","odsold":"⦼","OElig":"Œ","oelig":"œ","ofcir":"⦿","Ofr":"𝔒","ofr":"𝔬","ogon":"˛","Ograve":"Ò","ograve":"ò","ogt":"⧁","ohbar":"⦵","ohm":"Ω","oint":"∮","olarr":"↺","olcir":"⦾","olcross":"⦻","oline":"‾","olt":"⧀","Omacr":"Ō","omacr":"ō","Omega":"Ω","omega":"ω","Omicron":"Ο","omicron":"ο","omid":"⦶","ominus":"⊖","Oopf":"𝕆","oopf":"𝕠","opar":"⦷","OpenCurlyDoubleQuote":"“","OpenCurlyQuote":"‘","operp":"⦹","oplus":"⊕","orarr":"↻","Or":"⩔","or":"∨","ord":"⩝","order":"ℴ","orderof":"ℴ","ordf":"ª","ordm":"º","origof":"⊶","oror":"⩖","orslope":"⩗","orv":"⩛","oS":"Ⓢ","Oscr":"𝒪","oscr":"ℴ","Oslash":"Ø","oslash":"ø","osol":"⊘","Otilde":"Õ","otilde":"õ","otimesas":"⨶","Otimes":"⨷","otimes":"⊗","Ouml":"Ö","ouml":"ö","ovbar":"⌽","OverBar":"‾","OverBrace":"⏞","OverBracket":"⎴","OverParenthesis":"⏜","para":"¶","parallel":"∥","par":"∥","parsim":"⫳","parsl":"⫽","part":"∂","PartialD":"∂","Pcy":"П","pcy":"п","percnt":"%","period":".","permil":"‰","perp":"⊥","pertenk":"‱","Pfr":"𝔓","pfr":"𝔭","Phi":"Φ","phi":"φ","phiv":"ϕ","phmmat":"ℳ","phone":"☎","Pi":"Π","pi":"π","pitchfork":"⋔","piv":"ϖ","planck":"ℏ","planckh":"ℎ","plankv":"ℏ","plusacir":"⨣","plusb":"⊞","pluscir":"⨢","plus":"+","plusdo":"∔","plusdu":"⨥","pluse":"⩲","PlusMinus":"±","plusmn":"±","plussim":"⨦","plustwo":"⨧","pm":"±","Poincareplane":"ℌ","pointint":"⨕","popf":"𝕡","Popf":"ℙ","pound":"£","prap":"⪷","Pr":"⪻","pr":"≺","prcue":"≼","precapprox":"⪷","prec":"≺","preccurlyeq":"≼","Precedes":"≺","PrecedesEqual":"⪯","PrecedesSlantEqual":"≼","PrecedesTilde":"≾","preceq":"⪯","precnapprox":"⪹","precneqq":"⪵","precnsim":"⋨","pre":"⪯","prE":"⪳","precsim":"≾","prime":"′","Prime":"″","primes":"ℙ","prnap":"⪹","prnE":"⪵","prnsim":"⋨","prod":"∏","Product":"∏","profalar":"⌮","profline":"⌒","profsurf":"⌓","prop":"∝","Proportional":"∝","Proportion":"∷","propto":"∝","prsim":"≾","prurel":"⊰","Pscr":"𝒫","pscr":"𝓅","Psi":"Ψ","psi":"ψ","puncsp":" ","Qfr":"𝔔","qfr":"𝔮","qint":"⨌","qopf":"𝕢","Qopf":"ℚ","qprime":"⁗","Qscr":"𝒬","qscr":"𝓆","quaternions":"ℍ","quatint":"⨖","quest":"?","questeq":"≟","quot":"\\"","QUOT":"\\"","rAarr":"⇛","race":"∽̱","Racute":"Ŕ","racute":"ŕ","radic":"√","raemptyv":"⦳","rang":"⟩","Rang":"⟫","rangd":"⦒","range":"⦥","rangle":"⟩","raquo":"»","rarrap":"⥵","rarrb":"⇥","rarrbfs":"⤠","rarrc":"⤳","rarr":"→","Rarr":"↠","rArr":"⇒","rarrfs":"⤞","rarrhk":"↪","rarrlp":"↬","rarrpl":"⥅","rarrsim":"⥴","Rarrtl":"⤖","rarrtl":"↣","rarrw":"↝","ratail":"⤚","rAtail":"⤜","ratio":"∶","rationals":"ℚ","rbarr":"⤍","rBarr":"⤏","RBarr":"⤐","rbbrk":"❳","rbrace":"}","rbrack":"]","rbrke":"⦌","rbrksld":"⦎","rbrkslu":"⦐","Rcaron":"Ř","rcaron":"ř","Rcedil":"Ŗ","rcedil":"ŗ","rceil":"⌉","rcub":"}","Rcy":"Р","rcy":"р","rdca":"⤷","rdldhar":"⥩","rdquo":"”","rdquor":"”","rdsh":"↳","real":"ℜ","realine":"ℛ","realpart":"ℜ","reals":"ℝ","Re":"ℜ","rect":"▭","reg":"®","REG":"®","ReverseElement":"∋","ReverseEquilibrium":"⇋","ReverseUpEquilibrium":"⥯","rfisht":"⥽","rfloor":"⌋","rfr":"𝔯","Rfr":"ℜ","rHar":"⥤","rhard":"⇁","rharu":"⇀","rharul":"⥬","Rho":"Ρ","rho":"ρ","rhov":"ϱ","RightAngleBracket":"⟩","RightArrowBar":"⇥","rightarrow":"→","RightArrow":"→","Rightarrow":"⇒","RightArrowLeftArrow":"⇄","rightarrowtail":"↣","RightCeiling":"⌉","RightDoubleBracket":"⟧","RightDownTeeVector":"⥝","RightDownVectorBar":"⥕","RightDownVector":"⇂","RightFloor":"⌋","rightharpoondown":"⇁","rightharpoonup":"⇀","rightleftarrows":"⇄","rightleftharpoons":"⇌","rightrightarrows":"⇉","rightsquigarrow":"↝","RightTeeArrow":"↦","RightTee":"⊢","RightTeeVector":"⥛","rightthreetimes":"⋌","RightTriangleBar":"⧐","RightTriangle":"⊳","RightTriangleEqual":"⊵","RightUpDownVector":"⥏","RightUpTeeVector":"⥜","RightUpVectorBar":"⥔","RightUpVector":"↾","RightVectorBar":"⥓","RightVector":"⇀","ring":"˚","risingdotseq":"≓","rlarr":"⇄","rlhar":"⇌","rlm":"‏","rmoustache":"⎱","rmoust":"⎱","rnmid":"⫮","roang":"⟭","roarr":"⇾","robrk":"⟧","ropar":"⦆","ropf":"𝕣","Ropf":"ℝ","roplus":"⨮","rotimes":"⨵","RoundImplies":"⥰","rpar":")","rpargt":"⦔","rppolint":"⨒","rrarr":"⇉","Rrightarrow":"⇛","rsaquo":"›","rscr":"𝓇","Rscr":"ℛ","rsh":"↱","Rsh":"↱","rsqb":"]","rsquo":"’","rsquor":"’","rthree":"⋌","rtimes":"⋊","rtri":"▹","rtrie":"⊵","rtrif":"▸","rtriltri":"⧎","RuleDelayed":"⧴","ruluhar":"⥨","rx":"℞","Sacute":"Ś","sacute":"ś","sbquo":"‚","scap":"⪸","Scaron":"Š","scaron":"š","Sc":"⪼","sc":"≻","sccue":"≽","sce":"⪰","scE":"⪴","Scedil":"Ş","scedil":"ş","Scirc":"Ŝ","scirc":"ŝ","scnap":"⪺","scnE":"⪶","scnsim":"⋩","scpolint":"⨓","scsim":"≿","Scy":"С","scy":"с","sdotb":"⊡","sdot":"⋅","sdote":"⩦","searhk":"⤥","searr":"↘","seArr":"⇘","searrow":"↘","sect":"§","semi":";","seswar":"⤩","setminus":"∖","setmn":"∖","sext":"✶","Sfr":"𝔖","sfr":"𝔰","sfrown":"⌢","sharp":"♯","SHCHcy":"Щ","shchcy":"щ","SHcy":"Ш","shcy":"ш","ShortDownArrow":"↓","ShortLeftArrow":"←","shortmid":"∣","shortparallel":"∥","ShortRightArrow":"→","ShortUpArrow":"↑","shy":"­","Sigma":"Σ","sigma":"σ","sigmaf":"ς","sigmav":"ς","sim":"∼","simdot":"⩪","sime":"≃","simeq":"≃","simg":"⪞","simgE":"⪠","siml":"⪝","simlE":"⪟","simne":"≆","simplus":"⨤","simrarr":"⥲","slarr":"←","SmallCircle":"∘","smallsetminus":"∖","smashp":"⨳","smeparsl":"⧤","smid":"∣","smile":"⌣","smt":"⪪","smte":"⪬","smtes":"⪬︀","SOFTcy":"Ь","softcy":"ь","solbar":"⌿","solb":"⧄","sol":"/","Sopf":"𝕊","sopf":"𝕤","spades":"♠","spadesuit":"♠","spar":"∥","sqcap":"⊓","sqcaps":"⊓︀","sqcup":"⊔","sqcups":"⊔︀","Sqrt":"√","sqsub":"⊏","sqsube":"⊑","sqsubset":"⊏","sqsubseteq":"⊑","sqsup":"⊐","sqsupe":"⊒","sqsupset":"⊐","sqsupseteq":"⊒","square":"□","Square":"□","SquareIntersection":"⊓","SquareSubset":"⊏","SquareSubsetEqual":"⊑","SquareSuperset":"⊐","SquareSupersetEqual":"⊒","SquareUnion":"⊔","squarf":"▪","squ":"□","squf":"▪","srarr":"→","Sscr":"𝒮","sscr":"𝓈","ssetmn":"∖","ssmile":"⌣","sstarf":"⋆","Star":"⋆","star":"☆","starf":"★","straightepsilon":"ϵ","straightphi":"ϕ","strns":"¯","sub":"⊂","Sub":"⋐","subdot":"⪽","subE":"⫅","sube":"⊆","subedot":"⫃","submult":"⫁","subnE":"⫋","subne":"⊊","subplus":"⪿","subrarr":"⥹","subset":"⊂","Subset":"⋐","subseteq":"⊆","subseteqq":"⫅","SubsetEqual":"⊆","subsetneq":"⊊","subsetneqq":"⫋","subsim":"⫇","subsub":"⫕","subsup":"⫓","succapprox":"⪸","succ":"≻","succcurlyeq":"≽","Succeeds":"≻","SucceedsEqual":"⪰","SucceedsSlantEqual":"≽","SucceedsTilde":"≿","succeq":"⪰","succnapprox":"⪺","succneqq":"⪶","succnsim":"⋩","succsim":"≿","SuchThat":"∋","sum":"∑","Sum":"∑","sung":"♪","sup1":"¹","sup2":"²","sup3":"³","sup":"⊃","Sup":"⋑","supdot":"⪾","supdsub":"⫘","supE":"⫆","supe":"⊇","supedot":"⫄","Superset":"⊃","SupersetEqual":"⊇","suphsol":"⟉","suphsub":"⫗","suplarr":"⥻","supmult":"⫂","supnE":"⫌","supne":"⊋","supplus":"⫀","supset":"⊃","Supset":"⋑","supseteq":"⊇","supseteqq":"⫆","supsetneq":"⊋","supsetneqq":"⫌","supsim":"⫈","supsub":"⫔","supsup":"⫖","swarhk":"⤦","swarr":"↙","swArr":"⇙","swarrow":"↙","swnwar":"⤪","szlig":"ß","Tab":"\\t","target":"⌖","Tau":"Τ","tau":"τ","tbrk":"⎴","Tcaron":"Ť","tcaron":"ť","Tcedil":"Ţ","tcedil":"ţ","Tcy":"Т","tcy":"т","tdot":"⃛","telrec":"⌕","Tfr":"𝔗","tfr":"𝔱","there4":"∴","therefore":"∴","Therefore":"∴","Theta":"Θ","theta":"θ","thetasym":"ϑ","thetav":"ϑ","thickapprox":"≈","thicksim":"∼","ThickSpace":"  ","ThinSpace":" ","thinsp":" ","thkap":"≈","thksim":"∼","THORN":"Þ","thorn":"þ","tilde":"˜","Tilde":"∼","TildeEqual":"≃","TildeFullEqual":"≅","TildeTilde":"≈","timesbar":"⨱","timesb":"⊠","times":"×","timesd":"⨰","tint":"∭","toea":"⤨","topbot":"⌶","topcir":"⫱","top":"⊤","Topf":"𝕋","topf":"𝕥","topfork":"⫚","tosa":"⤩","tprime":"‴","trade":"™","TRADE":"™","triangle":"▵","triangledown":"▿","triangleleft":"◃","trianglelefteq":"⊴","triangleq":"≜","triangleright":"▹","trianglerighteq":"⊵","tridot":"◬","trie":"≜","triminus":"⨺","TripleDot":"⃛","triplus":"⨹","trisb":"⧍","tritime":"⨻","trpezium":"⏢","Tscr":"𝒯","tscr":"𝓉","TScy":"Ц","tscy":"ц","TSHcy":"Ћ","tshcy":"ћ","Tstrok":"Ŧ","tstrok":"ŧ","twixt":"≬","twoheadleftarrow":"↞","twoheadrightarrow":"↠","Uacute":"Ú","uacute":"ú","uarr":"↑","Uarr":"↟","uArr":"⇑","Uarrocir":"⥉","Ubrcy":"Ў","ubrcy":"ў","Ubreve":"Ŭ","ubreve":"ŭ","Ucirc":"Û","ucirc":"û","Ucy":"У","ucy":"у","udarr":"⇅","Udblac":"Ű","udblac":"ű","udhar":"⥮","ufisht":"⥾","Ufr":"𝔘","ufr":"𝔲","Ugrave":"Ù","ugrave":"ù","uHar":"⥣","uharl":"↿","uharr":"↾","uhblk":"▀","ulcorn":"⌜","ulcorner":"⌜","ulcrop":"⌏","ultri":"◸","Umacr":"Ū","umacr":"ū","uml":"¨","UnderBar":"_","UnderBrace":"⏟","UnderBracket":"⎵","UnderParenthesis":"⏝","Union":"⋃","UnionPlus":"⊎","Uogon":"Ų","uogon":"ų","Uopf":"𝕌","uopf":"𝕦","UpArrowBar":"⤒","uparrow":"↑","UpArrow":"↑","Uparrow":"⇑","UpArrowDownArrow":"⇅","updownarrow":"↕","UpDownArrow":"↕","Updownarrow":"⇕","UpEquilibrium":"⥮","upharpoonleft":"↿","upharpoonright":"↾","uplus":"⊎","UpperLeftArrow":"↖","UpperRightArrow":"↗","upsi":"υ","Upsi":"ϒ","upsih":"ϒ","Upsilon":"Υ","upsilon":"υ","UpTeeArrow":"↥","UpTee":"⊥","upuparrows":"⇈","urcorn":"⌝","urcorner":"⌝","urcrop":"⌎","Uring":"Ů","uring":"ů","urtri":"◹","Uscr":"𝒰","uscr":"𝓊","utdot":"⋰","Utilde":"Ũ","utilde":"ũ","utri":"▵","utrif":"▴","uuarr":"⇈","Uuml":"Ü","uuml":"ü","uwangle":"⦧","vangrt":"⦜","varepsilon":"ϵ","varkappa":"ϰ","varnothing":"∅","varphi":"ϕ","varpi":"ϖ","varpropto":"∝","varr":"↕","vArr":"⇕","varrho":"ϱ","varsigma":"ς","varsubsetneq":"⊊︀","varsubsetneqq":"⫋︀","varsupsetneq":"⊋︀","varsupsetneqq":"⫌︀","vartheta":"ϑ","vartriangleleft":"⊲","vartriangleright":"⊳","vBar":"⫨","Vbar":"⫫","vBarv":"⫩","Vcy":"В","vcy":"в","vdash":"⊢","vDash":"⊨","Vdash":"⊩","VDash":"⊫","Vdashl":"⫦","veebar":"⊻","vee":"∨","Vee":"⋁","veeeq":"≚","vellip":"⋮","verbar":"|","Verbar":"‖","vert":"|","Vert":"‖","VerticalBar":"∣","VerticalLine":"|","VerticalSeparator":"❘","VerticalTilde":"≀","VeryThinSpace":" ","Vfr":"𝔙","vfr":"𝔳","vltri":"⊲","vnsub":"⊂⃒","vnsup":"⊃⃒","Vopf":"𝕍","vopf":"𝕧","vprop":"∝","vrtri":"⊳","Vscr":"𝒱","vscr":"𝓋","vsubnE":"⫋︀","vsubne":"⊊︀","vsupnE":"⫌︀","vsupne":"⊋︀","Vvdash":"⊪","vzigzag":"⦚","Wcirc":"Ŵ","wcirc":"ŵ","wedbar":"⩟","wedge":"∧","Wedge":"⋀","wedgeq":"≙","weierp":"℘","Wfr":"𝔚","wfr":"𝔴","Wopf":"𝕎","wopf":"𝕨","wp":"℘","wr":"≀","wreath":"≀","Wscr":"𝒲","wscr":"𝓌","xcap":"⋂","xcirc":"◯","xcup":"⋃","xdtri":"▽","Xfr":"𝔛","xfr":"𝔵","xharr":"⟷","xhArr":"⟺","Xi":"Ξ","xi":"ξ","xlarr":"⟵","xlArr":"⟸","xmap":"⟼","xnis":"⋻","xodot":"⨀","Xopf":"𝕏","xopf":"𝕩","xoplus":"⨁","xotime":"⨂","xrarr":"⟶","xrArr":"⟹","Xscr":"𝒳","xscr":"𝓍","xsqcup":"⨆","xuplus":"⨄","xutri":"△","xvee":"⋁","xwedge":"⋀","Yacute":"Ý","yacute":"ý","YAcy":"Я","yacy":"я","Ycirc":"Ŷ","ycirc":"ŷ","Ycy":"Ы","ycy":"ы","yen":"¥","Yfr":"𝔜","yfr":"𝔶","YIcy":"Ї","yicy":"ї","Yopf":"𝕐","yopf":"𝕪","Yscr":"𝒴","yscr":"𝓎","YUcy":"Ю","yucy":"ю","yuml":"ÿ","Yuml":"Ÿ","Zacute":"Ź","zacute":"ź","Zcaron":"Ž","zcaron":"ž","Zcy":"З","zcy":"з","Zdot":"Ż","zdot":"ż","zeetrf":"ℨ","ZeroWidthSpace":"​","Zeta":"Ζ","zeta":"ζ","zfr":"𝔷","Zfr":"ℨ","ZHcy":"Ж","zhcy":"ж","zigrarr":"⇝","zopf":"𝕫","Zopf":"ℤ","Zscr":"𝒵","zscr":"𝓏","zwj":"‍","zwnj":"‌"}')},48491:t=>{"use strict";t.exports=JSON.parse('{"Aacute":"Á","aacute":"á","Acirc":"Â","acirc":"â","acute":"´","AElig":"Æ","aelig":"æ","Agrave":"À","agrave":"à","amp":"&","AMP":"&","Aring":"Å","aring":"å","Atilde":"Ã","atilde":"ã","Auml":"Ä","auml":"ä","brvbar":"¦","Ccedil":"Ç","ccedil":"ç","cedil":"¸","cent":"¢","copy":"©","COPY":"©","curren":"¤","deg":"°","divide":"÷","Eacute":"É","eacute":"é","Ecirc":"Ê","ecirc":"ê","Egrave":"È","egrave":"è","ETH":"Ð","eth":"ð","Euml":"Ë","euml":"ë","frac12":"½","frac14":"¼","frac34":"¾","gt":">","GT":">","Iacute":"Í","iacute":"í","Icirc":"Î","icirc":"î","iexcl":"¡","Igrave":"Ì","igrave":"ì","iquest":"¿","Iuml":"Ï","iuml":"ï","laquo":"«","lt":"<","LT":"<","macr":"¯","micro":"µ","middot":"·","nbsp":" ","not":"¬","Ntilde":"Ñ","ntilde":"ñ","Oacute":"Ó","oacute":"ó","Ocirc":"Ô","ocirc":"ô","Ograve":"Ò","ograve":"ò","ordf":"ª","ordm":"º","Oslash":"Ø","oslash":"ø","Otilde":"Õ","otilde":"õ","Ouml":"Ö","ouml":"ö","para":"¶","plusmn":"±","pound":"£","quot":"\\"","QUOT":"\\"","raquo":"»","reg":"®","REG":"®","sect":"§","shy":"­","sup1":"¹","sup2":"²","sup3":"³","szlig":"ß","THORN":"Þ","thorn":"þ","times":"×","Uacute":"Ú","uacute":"ú","Ucirc":"Û","ucirc":"û","Ugrave":"Ù","ugrave":"ù","uml":"¨","Uuml":"Ü","uuml":"ü","Yacute":"Ý","yacute":"ý","yen":"¥","yuml":"ÿ"}')},70663:t=>{"use strict";t.exports=JSON.parse('{"amp":"&","apos":"\'","gt":">","lt":"<","quot":"\\""}')}}]); \ No newline at end of file diff --git a/HomeUI/dist/js/1841.js b/HomeUI/dist/js/1841.js index 4fcd5d14f..b8f70908c 100644 --- a/HomeUI/dist/js/1841.js +++ b/HomeUI/dist/js/1841.js @@ -1 +1 @@ -"use strict";(globalThis["webpackChunkflux"]=globalThis["webpackChunkflux"]||[]).push([[1841],{34547:(t,e,s)=>{s.d(e,{Z:()=>u});var a=function(){var t=this,e=t._self._c;return e("div",{staticClass:"toastification"},[e("div",{staticClass:"d-flex align-items-start"},[e("b-avatar",{staticClass:"mr-75 flex-shrink-0",attrs:{variant:t.variant,size:"1.8rem"}},[e("feather-icon",{attrs:{icon:t.icon,size:"15"}})],1),e("div",{staticClass:"d-flex flex-grow-1"},[e("div",[t.title?e("h5",{staticClass:"mb-0 font-weight-bolder toastification-title",class:`text-${t.variant}`,domProps:{textContent:t._s(t.title)}}):t._e(),t.text?e("small",{staticClass:"d-inline-block text-body",domProps:{textContent:t._s(t.text)}}):t._e()]),e("span",{staticClass:"cursor-pointer toastification-close-icon ml-auto",on:{click:function(e){return t.$emit("close-toast")}}},[t.hideClose?t._e():e("feather-icon",{staticClass:"text-body",attrs:{icon:"XIcon"}})],1)])],1)])},o=[],r=s(47389);const i={components:{BAvatar:r.SH},props:{variant:{type:String,default:"primary"},icon:{type:String,default:null},title:{type:String,default:null},text:{type:String,default:null},hideClose:{type:Boolean,default:!1}}},n=i;var l=s(1001),c=(0,l.Z)(n,a,o,!1,null,"22d964ca",null);const u=c.exports},87156:(t,e,s)=>{s.d(e,{Z:()=>g});var a=function(){var t=this,e=t._self._c;return e("b-popover",{ref:"popover",attrs:{target:`${t.target}`,triggers:"click blur",show:t.show,placement:"auto",container:"my-container","custom-class":`confirm-dialog-${t.width}`},on:{"update:show":function(e){t.show=e}},scopedSlots:t._u([{key:"title",fn:function(){return[e("div",{staticClass:"d-flex justify-content-between align-items-center"},[e("span",[t._v(t._s(t.title))]),e("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"close",attrs:{variant:"transparent","aria-label":"Close"},on:{click:function(e){t.show=!1}}},[e("span",{staticClass:"d-inline-block text-white",attrs:{"aria-hidden":"true"}},[t._v("×")])])],1)]},proxy:!0}])},[e("div",{staticClass:"text-center"},[e("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"mr-1",attrs:{size:"sm",variant:"danger"},on:{click:function(e){t.show=!1}}},[t._v(" "+t._s(t.cancelButton)+" ")]),e("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],attrs:{size:"sm",variant:"primary"},on:{click:function(e){return t.confirm()}}},[t._v(" "+t._s(t.confirmButton)+" ")])],1)])},o=[],r=s(15193),i=s(53862),n=s(20266);const l={components:{BButton:r.T,BPopover:i.x},directives:{Ripple:n.Z},props:{target:{type:String,required:!0},title:{type:String,required:!1,default:"Are You Sure?"},cancelButton:{type:String,required:!1,default:"Cancel"},confirmButton:{type:String,required:!0},width:{type:Number,required:!1,default:300}},data(){return{show:!1}},methods:{confirm(){this.show=!1,this.$emit("confirm")}}},c=l;var u=s(1001),d=(0,u.Z)(c,a,o,!1,null,null,null);const g=d.exports},21841:(t,e,s)=>{s.r(e),s.d(e,{default:()=>k});var a=function(){var t=this,e=t._self._c;return e("b-overlay",{attrs:{show:t.usersLoading,variant:"transparent",blur:"5px"}},[e("b-card",[e("b-row",[e("b-col",{staticClass:"my-1",attrs:{md:"4",sm:"4"}},[e("b-form-group",{staticClass:"mb-0"},[e("label",{staticClass:"d-inline-block text-left mr-50"},[t._v("Per page")]),e("b-form-select",{staticClass:"w-50",attrs:{id:"perPageSelect",size:"sm",options:t.pageOptions},model:{value:t.perPage,callback:function(e){t.perPage=e},expression:"perPage"}})],1)],1),e("b-col",{staticClass:"my-1",attrs:{md:"8"}},[e("b-form-group",{staticClass:"mb-0",attrs:{label:"Filter","label-cols-sm":"1","label-align-sm":"right","label-for":"filterInput"}},[e("b-input-group",{attrs:{size:"sm"}},[e("b-form-input",{attrs:{id:"filterInput",type:"search",placeholder:"Type to Search"},model:{value:t.filter,callback:function(e){t.filter=e},expression:"filter"}}),e("b-input-group-append",[e("b-button",{attrs:{disabled:!t.filter},on:{click:function(e){t.filter=""}}},[t._v(" Clear ")])],1)],1)],1)],1),e("b-col",{attrs:{cols:"12"}},[e("b-table",{attrs:{striped:"",hover:"",responsive:"",small:"","per-page":t.perPage,"current-page":t.currentPage,items:t.items,fields:t.fields,"sort-by":t.sortBy,"sort-desc":t.sortDesc,"sort-direction":t.sortDirection,filter:t.filter,"filter-included-fields":t.filterOn,"show-empty":"","empty-text":"No Users"},on:{"update:sortBy":function(e){t.sortBy=e},"update:sort-by":function(e){t.sortBy=e},"update:sortDesc":function(e){t.sortDesc=e},"update:sort-desc":function(e){t.sortDesc=e},filtered:t.onFiltered},scopedSlots:t._u([{key:"cell(logout)",fn:function(s){return[e("v-icon",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.top",value:"Currently logged and used session by you",expression:"'Currently logged and used session by you'",modifiers:{hover:!0,top:!0}}],staticClass:"mr-1",class:s.item.loginPhrase===t.currentLoginPhrase?"":"hidden",attrs:{name:"info-circle"}}),e("b-button",{staticClass:"mr-0",attrs:{id:`${s.item.loginPhrase}`,size:"sm",variant:"danger"},on:{click:function(e){t.logoutPopoverShow[s.item.loginPhrase]=!0}}},[t._v(" Log Out ")]),e("confirm-dialog",{attrs:{target:`${s.item.loginPhrase}`,"confirm-button":"Log Out!"},on:{confirm:function(e){return t.onLogoutOK(s.item)}}})]}}])})],1),e("b-col",{attrs:{cols:"12"}},[e("b-pagination",{staticClass:"my-0",attrs:{"total-rows":t.totalRows,"per-page":t.perPage,align:"center",size:"sm"},model:{value:t.currentPage,callback:function(e){t.currentPage=e},expression:"currentPage"}}),e("span",{staticClass:"table-total"},[t._v("Total: "+t._s(t.totalRows))])],1)],1),e("div",{staticClass:"text-center"},[e("b-button",{staticClass:"mt-2",attrs:{id:"logout-all",size:"sm",variant:"danger"},on:{click:function(e){t.logoutAllPopoverShow=!0}}},[t._v(" Log Out all Users ")]),e("confirm-dialog",{attrs:{target:"logout-all","confirm-button":"Log Out All!"},on:{confirm:function(e){return t.onLogoutAllOK()}}})],1)],1)],1)},o=[],r=s(86855),i=s(16521),n=s(26253),l=s(50725),c=s(10962),u=s(46709),d=s(8051),g=s(4060),p=s(22183),m=s(22418),h=s(15193),f=s(66126),b=s(5870),v=s(34547),y=s(20266),w=s(87156),x=s(34369);const C=s(80129),P={components:{BCard:r._,BTable:i.h,BRow:n.T,BCol:l.l,BPagination:c.c,BFormGroup:u.x,BFormSelect:d.K,BInputGroup:g.w,BFormInput:p.e,BInputGroupAppend:m.B,BButton:h.T,BOverlay:f.X,ToastificationContent:v.Z,ConfirmDialog:w.Z},directives:{"b-tooltip":b.o,Ripple:y.Z},data(){return{perPage:10,pageOptions:[10,25,50,100],sortBy:"",sortDesc:!1,sortDirection:"asc",items:[],filter:"",filterOn:[],fields:[{key:"zelid",label:"Flux ID",sortable:!0},{key:"loginPhrase",label:"Login Phrase",sortable:!0},{key:"logout",label:""}],totalRows:1,currentPage:1,usersLoading:!0}},computed:{sortOptions(){return this.fields.filter((t=>t.sortable)).map((t=>({text:t.label,value:t.key})))},currentLoginPhrase(){const t=localStorage.getItem("zelidauth"),e=C.parse(t);return e.loginPhrase}},mounted(){this.loggedUsers()},methods:{async loggedUsers(){this.usersLoading=!0;const t=localStorage.getItem("zelidauth");x.Z.loggedUsers(t).then((t=>{"error"===t.data.status?this.showToast("danger",t.data.data.message||t.data.data):(this.items=t.data.data,this.totalRows=this.items.length,this.currentPage=1),this.usersLoading=!1})).catch((t=>{console.log(t),this.showToast("danger",t.toString()),this.usersLoading=!1}))},onFiltered(t){this.totalRows=t.length,this.currentPage=1},async onLogoutOK(t){const e=localStorage.getItem("zelidauth"),s=C.parse(e);x.Z.logoutSpecificSession(e,t.loginPhrase).then((e=>{"error"===e.data.status?this.showToast("danger",e.data.data.message||e.data.data):(this.showToast("success",e.data.data.message||e.data.data),t.loginPhrase===s.loginPhrase?(localStorage.removeItem("zelidauth"),this.$store.commit("flux/setPrivilege","none"),this.$store.commit("flux/setZelid",""),this.$router.replace("/")):this.loggedUsers())})).catch((t=>{console.log(t),this.showToast("danger",t.toString())}))},async onLogoutAllOK(){const t=localStorage.getItem("zelidauth");x.Z.logoutAllUsers(t).then((t=>{"error"===t.data.status?this.showToast("danger",t.data.data.message||t.data.data):(localStorage.removeItem("zelidauth"),this.$store.commit("flux/setPrivilege","none"),this.$store.commit("flux/setZelid",""),this.$router.replace("/"),this.showToast("success",t.data.data.message||t.data.data))})).catch((t=>{console.log(t),this.showToast("danger",t.toString())}))},showToast(t,e,s="InfoIcon"){this.$toast({component:v.Z,props:{title:e,icon:s,variant:t}})}}},B=P;var S=s(1001),_=(0,S.Z)(B,a,o,!1,null,null,null);const k=_.exports}}]); \ No newline at end of file +"use strict";(self["webpackChunkflux"]=self["webpackChunkflux"]||[]).push([[1841],{34547:(t,e,s)=>{s.d(e,{Z:()=>u});var a=function(){var t=this,e=t._self._c;return e("div",{staticClass:"toastification"},[e("div",{staticClass:"d-flex align-items-start"},[e("b-avatar",{staticClass:"mr-75 flex-shrink-0",attrs:{variant:t.variant,size:"1.8rem"}},[e("feather-icon",{attrs:{icon:t.icon,size:"15"}})],1),e("div",{staticClass:"d-flex flex-grow-1"},[e("div",[t.title?e("h5",{staticClass:"mb-0 font-weight-bolder toastification-title",class:`text-${t.variant}`,domProps:{textContent:t._s(t.title)}}):t._e(),t.text?e("small",{staticClass:"d-inline-block text-body",domProps:{textContent:t._s(t.text)}}):t._e()]),e("span",{staticClass:"cursor-pointer toastification-close-icon ml-auto",on:{click:function(e){return t.$emit("close-toast")}}},[t.hideClose?t._e():e("feather-icon",{staticClass:"text-body",attrs:{icon:"XIcon"}})],1)])],1)])},o=[],r=s(47389);const i={components:{BAvatar:r.SH},props:{variant:{type:String,default:"primary"},icon:{type:String,default:null},title:{type:String,default:null},text:{type:String,default:null},hideClose:{type:Boolean,default:!1}}},n=i;var l=s(1001),c=(0,l.Z)(n,a,o,!1,null,"22d964ca",null);const u=c.exports},87156:(t,e,s)=>{s.d(e,{Z:()=>g});var a=function(){var t=this,e=t._self._c;return e("b-popover",{ref:"popover",attrs:{target:`${t.target}`,triggers:"click blur",show:t.show,placement:"auto",container:"my-container","custom-class":`confirm-dialog-${t.width}`},on:{"update:show":function(e){t.show=e}},scopedSlots:t._u([{key:"title",fn:function(){return[e("div",{staticClass:"d-flex justify-content-between align-items-center"},[e("span",[t._v(t._s(t.title))]),e("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"close",attrs:{variant:"transparent","aria-label":"Close"},on:{click:function(e){t.show=!1}}},[e("span",{staticClass:"d-inline-block text-white",attrs:{"aria-hidden":"true"}},[t._v("×")])])],1)]},proxy:!0}])},[e("div",{staticClass:"text-center"},[e("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"mr-1",attrs:{size:"sm",variant:"danger"},on:{click:function(e){t.show=!1}}},[t._v(" "+t._s(t.cancelButton)+" ")]),e("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],attrs:{size:"sm",variant:"primary"},on:{click:function(e){return t.confirm()}}},[t._v(" "+t._s(t.confirmButton)+" ")])],1)])},o=[],r=s(15193),i=s(53862),n=s(20266);const l={components:{BButton:r.T,BPopover:i.x},directives:{Ripple:n.Z},props:{target:{type:String,required:!0},title:{type:String,required:!1,default:"Are You Sure?"},cancelButton:{type:String,required:!1,default:"Cancel"},confirmButton:{type:String,required:!0},width:{type:Number,required:!1,default:300}},data(){return{show:!1}},methods:{confirm(){this.show=!1,this.$emit("confirm")}}},c=l;var u=s(1001),d=(0,u.Z)(c,a,o,!1,null,null,null);const g=d.exports},21841:(t,e,s)=>{s.r(e),s.d(e,{default:()=>k});var a=function(){var t=this,e=t._self._c;return e("b-overlay",{attrs:{show:t.usersLoading,variant:"transparent",blur:"5px"}},[e("b-card",[e("b-row",[e("b-col",{staticClass:"my-1",attrs:{md:"4",sm:"4"}},[e("b-form-group",{staticClass:"mb-0"},[e("label",{staticClass:"d-inline-block text-left mr-50"},[t._v("Per page")]),e("b-form-select",{staticClass:"w-50",attrs:{id:"perPageSelect",size:"sm",options:t.pageOptions},model:{value:t.perPage,callback:function(e){t.perPage=e},expression:"perPage"}})],1)],1),e("b-col",{staticClass:"my-1",attrs:{md:"8"}},[e("b-form-group",{staticClass:"mb-0",attrs:{label:"Filter","label-cols-sm":"1","label-align-sm":"right","label-for":"filterInput"}},[e("b-input-group",{attrs:{size:"sm"}},[e("b-form-input",{attrs:{id:"filterInput",type:"search",placeholder:"Type to Search"},model:{value:t.filter,callback:function(e){t.filter=e},expression:"filter"}}),e("b-input-group-append",[e("b-button",{attrs:{disabled:!t.filter},on:{click:function(e){t.filter=""}}},[t._v(" Clear ")])],1)],1)],1)],1),e("b-col",{attrs:{cols:"12"}},[e("b-table",{attrs:{striped:"",hover:"",responsive:"",small:"","per-page":t.perPage,"current-page":t.currentPage,items:t.items,fields:t.fields,"sort-by":t.sortBy,"sort-desc":t.sortDesc,"sort-direction":t.sortDirection,filter:t.filter,"filter-included-fields":t.filterOn,"show-empty":"","empty-text":"No Users"},on:{"update:sortBy":function(e){t.sortBy=e},"update:sort-by":function(e){t.sortBy=e},"update:sortDesc":function(e){t.sortDesc=e},"update:sort-desc":function(e){t.sortDesc=e},filtered:t.onFiltered},scopedSlots:t._u([{key:"cell(logout)",fn:function(s){return[e("v-icon",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.top",value:"Currently logged and used session by you",expression:"'Currently logged and used session by you'",modifiers:{hover:!0,top:!0}}],staticClass:"mr-1",class:s.item.loginPhrase===t.currentLoginPhrase?"":"hidden",attrs:{name:"info-circle"}}),e("b-button",{staticClass:"mr-0",attrs:{id:`${s.item.loginPhrase}`,size:"sm",variant:"danger"},on:{click:function(e){t.logoutPopoverShow[s.item.loginPhrase]=!0}}},[t._v(" Log Out ")]),e("confirm-dialog",{attrs:{target:`${s.item.loginPhrase}`,"confirm-button":"Log Out!"},on:{confirm:function(e){return t.onLogoutOK(s.item)}}})]}}])})],1),e("b-col",{attrs:{cols:"12"}},[e("b-pagination",{staticClass:"my-0",attrs:{"total-rows":t.totalRows,"per-page":t.perPage,align:"center",size:"sm"},model:{value:t.currentPage,callback:function(e){t.currentPage=e},expression:"currentPage"}}),e("span",{staticClass:"table-total"},[t._v("Total: "+t._s(t.totalRows))])],1)],1),e("div",{staticClass:"text-center"},[e("b-button",{staticClass:"mt-2",attrs:{id:"logout-all",size:"sm",variant:"danger"},on:{click:function(e){t.logoutAllPopoverShow=!0}}},[t._v(" Log Out all Users ")]),e("confirm-dialog",{attrs:{target:"logout-all","confirm-button":"Log Out All!"},on:{confirm:function(e){return t.onLogoutAllOK()}}})],1)],1)],1)},o=[],r=s(86855),i=s(16521),n=s(26253),l=s(50725),c=s(10962),u=s(46709),d=s(8051),g=s(4060),p=s(22183),m=s(22418),f=s(15193),h=s(66126),b=s(5870),v=s(34547),y=s(20266),w=s(87156),x=s(34369);const C=s(80129),P={components:{BCard:r._,BTable:i.h,BRow:n.T,BCol:l.l,BPagination:c.c,BFormGroup:u.x,BFormSelect:d.K,BInputGroup:g.w,BFormInput:p.e,BInputGroupAppend:m.B,BButton:f.T,BOverlay:h.X,ToastificationContent:v.Z,ConfirmDialog:w.Z},directives:{"b-tooltip":b.o,Ripple:y.Z},data(){return{perPage:10,pageOptions:[10,25,50,100],sortBy:"",sortDesc:!1,sortDirection:"asc",items:[],filter:"",filterOn:[],fields:[{key:"zelid",label:"Flux ID",sortable:!0},{key:"loginPhrase",label:"Login Phrase",sortable:!0},{key:"logout",label:""}],totalRows:1,currentPage:1,usersLoading:!0}},computed:{sortOptions(){return this.fields.filter((t=>t.sortable)).map((t=>({text:t.label,value:t.key})))},currentLoginPhrase(){const t=localStorage.getItem("zelidauth"),e=C.parse(t);return e.loginPhrase}},mounted(){this.loggedUsers()},methods:{async loggedUsers(){this.usersLoading=!0;const t=localStorage.getItem("zelidauth");x.Z.loggedUsers(t).then((t=>{"error"===t.data.status?this.showToast("danger",t.data.data.message||t.data.data):(this.items=t.data.data,this.totalRows=this.items.length,this.currentPage=1),this.usersLoading=!1})).catch((t=>{console.log(t),this.showToast("danger",t.toString()),this.usersLoading=!1}))},onFiltered(t){this.totalRows=t.length,this.currentPage=1},async onLogoutOK(t){const e=localStorage.getItem("zelidauth"),s=C.parse(e);x.Z.logoutSpecificSession(e,t.loginPhrase).then((e=>{"error"===e.data.status?this.showToast("danger",e.data.data.message||e.data.data):(this.showToast("success",e.data.data.message||e.data.data),t.loginPhrase===s.loginPhrase?(localStorage.removeItem("zelidauth"),this.$store.commit("flux/setPrivilege","none"),this.$store.commit("flux/setZelid",""),this.$router.replace("/")):this.loggedUsers())})).catch((t=>{console.log(t),this.showToast("danger",t.toString())}))},async onLogoutAllOK(){const t=localStorage.getItem("zelidauth");x.Z.logoutAllUsers(t).then((t=>{"error"===t.data.status?this.showToast("danger",t.data.data.message||t.data.data):(localStorage.removeItem("zelidauth"),this.$store.commit("flux/setPrivilege","none"),this.$store.commit("flux/setZelid",""),this.$router.replace("/"),this.showToast("success",t.data.data.message||t.data.data))})).catch((t=>{console.log(t),this.showToast("danger",t.toString())}))},showToast(t,e,s="InfoIcon"){this.$toast({component:v.Z,props:{title:e,icon:s,variant:t}})}}},B=P;var S=s(1001),_=(0,S.Z)(B,a,o,!1,null,null,null);const k=_.exports}}]); \ No newline at end of file diff --git a/HomeUI/dist/js/1966.js b/HomeUI/dist/js/1966.js deleted file mode 100644 index 3a03dcae9..000000000 --- a/HomeUI/dist/js/1966.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(globalThis["webpackChunkflux"]=globalThis["webpackChunkflux"]||[]).push([[1966],{67647:(e,t,a)=>{a.r(t),a.d(t,{default:()=>m});var n=function(){var e=this,t=e._self._c;return t("div",[e.callResponse.data?t("b-card",[t("app-collapse",{attrs:{accordion:""},model:{value:e.activeHelpNames,callback:function(t){e.activeHelpNames=t},expression:"activeHelpNames"}},e._l(e.helpResponse,(function(a){return t("div",{key:a},[a.startsWith("=")?t("div",[t("br"),t("h2",[e._v(" "+e._s(a.split(" ")[1])+" ")])]):e._e(),a.startsWith("=")?e._e():t("app-collapse-item",{attrs:{title:a},on:{visible:function(t){return e.updateActiveHelpNames(t,a)}}},[t("p",{staticClass:"helpSpecific"},[e._v(" "+e._s(e.currentHelpResponse||"Loading help message...")+" ")]),t("hr")])],1)})),0)],1):e._e()],1)},s=[],r=a(86855),o=a(34547),l=a(57796),i=a(22049),d=a(27616);const c={components:{BCard:r._,AppCollapse:l.Z,AppCollapseItem:i.Z,ToastificationContent:o.Z},data(){return{callResponse:{status:"",data:""},activeHelpNames:"",currentHelpResponse:""}},computed:{helpResponse(){return this.callResponse.data?this.callResponse.data.split("\n").filter((e=>""!==e)).map((e=>e.startsWith("=")?e:e.split(" ")[0])):[]}},mounted(){this.daemonHelp()},methods:{async daemonHelp(){const e=await d.Z.help();"error"===e.data.status?this.$toast({component:o.Z,props:{title:e.data.data.message||e.data.data,icon:"InfoIcon",variant:"danger"}}):(this.callResponse.status=e.data.status,this.callResponse.data=e.data.data)},updateActiveHelpNames(e,t){this.activeHelpNames=t,this.daemonHelpSpecific()},async daemonHelpSpecific(){this.currentHelpResponse="",console.log(this.activeHelpNames);const e=await d.Z.helpSpecific(this.activeHelpNames);if(console.log(e),"error"===e.data.status)this.$toast({component:o.Z,props:{title:e.data.data.message||e.data.data,icon:"InfoIcon",variant:"danger"}});else{const t=e.data.data.split("\n"),a=t.length;let n=0;for(let e=0;e{a.d(t,{Z:()=>s});var n=a(80914);const s={help(){return(0,n.Z)().get("/daemon/help")},helpSpecific(e){return(0,n.Z)().get(`/daemon/help/${e}`)},getInfo(){return(0,n.Z)().get("/daemon/getinfo")},getFluxNodeStatus(){return(0,n.Z)().get("/daemon/getzelnodestatus")},getRawTransaction(e,t){return(0,n.Z)().get(`/daemon/getrawtransaction/${e}/${t}`)},listFluxNodes(){return(0,n.Z)().get("/daemon/listzelnodes")},viewDeterministicFluxNodeList(){return(0,n.Z)().get("/daemon/viewdeterministiczelnodelist")},getFluxNodeCount(){return(0,n.Z)().get("/daemon/getzelnodecount")},getStartList(){return(0,n.Z)().get("/daemon/getstartlist")},getDOSList(){return(0,n.Z)().get("/daemon/getdoslist")},fluxCurrentWinner(){return(0,n.Z)().get("/daemon/fluxcurrentwinner")},getBenchmarks(){return(0,n.Z)().get("/daemon/getbenchmarks")},getBenchStatus(){return(0,n.Z)().get("/daemon/getbenchstatus")},startBenchmark(e){return(0,n.Z)().get("/daemon/startbenchmark",{headers:{zelidauth:e}})},stopBenchmark(e){return(0,n.Z)().get("/daemon/stopbenchmark",{headers:{zelidauth:e}})},getBlockCount(){return(0,n.Z)().get("/daemon/getBlockCount")},getBlockchainInfo(){return(0,n.Z)().get("/daemon/getblockchaininfo")},getMiningInfo(){return(0,n.Z)().get("/daemon/getmininginfo")},getNetworkInfo(){return(0,n.Z)().get("/daemon/getnetworkinfo")},validateAddress(e,t){return(0,n.Z)().get(`/daemon/validateaddress/${t}`,{headers:{zelidauth:e}})},getWalletInfo(e){return(0,n.Z)().get("/daemon/getwalletinfo",{headers:{zelidauth:e}})},listFluxNodeConf(e){return(0,n.Z)().get("/daemon/listzelnodeconf",{headers:{zelidauth:e}})},start(e){return(0,n.Z)().get("/daemon/start",{headers:{zelidauth:e}})},restart(e){return(0,n.Z)().get("/daemon/restart",{headers:{zelidauth:e}})},stopDaemon(e){return(0,n.Z)().get("/daemon/stop",{headers:{zelidauth:e}})},rescanDaemon(e,t){return(0,n.Z)().get(`/daemon/rescanblockchain/${t}`,{headers:{zelidauth:e}})},getBlock(e,t){return(0,n.Z)().get(`/daemon/getblock/${e}/${t}`)},tailDaemonDebug(e){return(0,n.Z)().get("/flux/taildaemondebug",{headers:{zelidauth:e}})},justAPI(){return(0,n.Z)()},cancelToken(){return n.S}}}}]); \ No newline at end of file diff --git a/HomeUI/dist/js/1994.js b/HomeUI/dist/js/1994.js index e7f604bf9..e7df70254 100644 --- a/HomeUI/dist/js/1994.js +++ b/HomeUI/dist/js/1994.js @@ -1 +1 @@ -"use strict";(globalThis["webpackChunkflux"]=globalThis["webpackChunkflux"]||[]).push([[1994],{34547:(t,e,a)=>{a.d(e,{Z:()=>u});var r=function(){var t=this,e=t._self._c;return e("div",{staticClass:"toastification"},[e("div",{staticClass:"d-flex align-items-start"},[e("b-avatar",{staticClass:"mr-75 flex-shrink-0",attrs:{variant:t.variant,size:"1.8rem"}},[e("feather-icon",{attrs:{icon:t.icon,size:"15"}})],1),e("div",{staticClass:"d-flex flex-grow-1"},[e("div",[t.title?e("h5",{staticClass:"mb-0 font-weight-bolder toastification-title",class:`text-${t.variant}`,domProps:{textContent:t._s(t.title)}}):t._e(),t.text?e("small",{staticClass:"d-inline-block text-body",domProps:{textContent:t._s(t.text)}}):t._e()]),e("span",{staticClass:"cursor-pointer toastification-close-icon ml-auto",on:{click:function(e){return t.$emit("close-toast")}}},[t.hideClose?t._e():e("feather-icon",{staticClass:"text-body",attrs:{icon:"XIcon"}})],1)])],1)])},s=[],n=a(47389);const o={components:{BAvatar:n.SH},props:{variant:{type:String,default:"primary"},icon:{type:String,default:null},title:{type:String,default:null},text:{type:String,default:null},hideClose:{type:Boolean,default:!1}}},i=o;var c=a(1001),l=(0,c.Z)(i,r,s,!1,null,"22d964ca",null);const u=l.exports},87156:(t,e,a)=>{a.d(e,{Z:()=>h});var r=function(){var t=this,e=t._self._c;return e("b-popover",{ref:"popover",attrs:{target:`${t.target}`,triggers:"click blur",show:t.show,placement:"auto",container:"my-container","custom-class":`confirm-dialog-${t.width}`},on:{"update:show":function(e){t.show=e}},scopedSlots:t._u([{key:"title",fn:function(){return[e("div",{staticClass:"d-flex justify-content-between align-items-center"},[e("span",[t._v(t._s(t.title))]),e("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"close",attrs:{variant:"transparent","aria-label":"Close"},on:{click:function(e){t.show=!1}}},[e("span",{staticClass:"d-inline-block text-white",attrs:{"aria-hidden":"true"}},[t._v("×")])])],1)]},proxy:!0}])},[e("div",{staticClass:"text-center"},[e("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"mr-1",attrs:{size:"sm",variant:"danger"},on:{click:function(e){t.show=!1}}},[t._v(" "+t._s(t.cancelButton)+" ")]),e("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],attrs:{size:"sm",variant:"primary"},on:{click:function(e){return t.confirm()}}},[t._v(" "+t._s(t.confirmButton)+" ")])],1)])},s=[],n=a(15193),o=a(53862),i=a(20266);const c={components:{BButton:n.T,BPopover:o.x},directives:{Ripple:i.Z},props:{target:{type:String,required:!0},title:{type:String,required:!1,default:"Are You Sure?"},cancelButton:{type:String,required:!1,default:"Cancel"},confirmButton:{type:String,required:!0},width:{type:Number,required:!1,default:300}},data(){return{show:!1}},methods:{confirm(){this.show=!1,this.$emit("confirm")}}},l=c;var u=a(1001),d=(0,u.Z)(l,r,s,!1,null,null,null);const h=d.exports},71994:(t,e,a)=>{a.r(e),a.d(e,{default:()=>w});var r=function(){var t=this,e=t._self._c;return e("div",[e("b-row",{staticClass:"match-height"},[e("b-col",{attrs:{sm:"12",lg:"6",xl:"4"}},[e("b-card",{attrs:{title:"Benchmark"}},[e("b-card-text",{staticClass:"mb-3"},[t._v(" An easy way to update your Benchmark daemon to the latest version. Benchmark will be automatically started once update is done. ")]),e("div",{staticClass:"text-center"},[e("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],attrs:{id:"update-benchmark",variant:"success","aria-label":"Update Benchmark"}},[t._v(" Update Benchmark ")]),e("confirm-dialog",{attrs:{target:"update-benchmark","confirm-button":"Update Benchmark"},on:{confirm:function(e){return t.updateBenchmark()}}})],1)],1)],1),e("b-col",{attrs:{sm:"12",lg:"6",xl:"4"}},[e("b-card",{attrs:{title:"Manage Process"}},[e("b-card-text",{staticClass:"mb-3"},[t._v(" Here you can manage your Benchmark daemon process. ")]),e("div",{staticClass:"text-center"},[e("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"mx-1 mb-1",attrs:{id:"start-benchmark",variant:"success","aria-label":"Start Benchmark"}},[t._v(" Start Benchmark ")]),e("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"mx-1 mb-1",attrs:{id:"stop-benchmark",variant:"success","aria-label":"Stop Benchmark"}},[t._v(" Stop Benchmark ")]),e("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"mx-1 mb-1",attrs:{id:"restart-benchmark",variant:"success","aria-label":"Restart Benchmakr"}},[t._v(" Restart Benchmark ")]),e("confirm-dialog",{attrs:{target:"start-benchmark","confirm-button":"Start Benchmark"},on:{confirm:function(e){return t.startBenchmark()}}}),e("confirm-dialog",{attrs:{target:"stop-benchmark","confirm-button":"Stop Benchmark"},on:{confirm:function(e){return t.stopBenchmark()}}}),e("confirm-dialog",{attrs:{target:"restart-benchmark","confirm-button":"Restart Benchmark"},on:{confirm:function(e){return t.restartBenchmark()}}})],1)],1)],1),e("b-col",{attrs:{sm:"12",xl:"4"}},[e("b-card",{attrs:{title:"Restart"}},[e("b-card-text",{staticClass:"mb-2"},[t._v(" Option to trigger a complete new run of node benchmarking. Useful when your node falls down in category or fails benchmarking tests. ")]),e("div",{staticClass:"text-center"},[e("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],attrs:{id:"restart-benchmarks",variant:"success","aria-label":"Restart Benchmarks"}},[t._v(" Restart Benchmarks ")]),e("confirm-dialog",{attrs:{target:"restart-benchmarks","confirm-button":"Restart Benchmarks"},on:{confirm:function(e){return t.restartBenchmarks()}}})],1)],1)],1)],1)],1)},s=[],n=a(86855),o=a(26253),i=a(50725),c=a(64206),l=a(15193),u=a(34547),d=a(20266),h=a(87066),m=a(87156),g=a(39055),p=a(39569);const f=a(80129),b={components:{BCard:n._,BRow:o.T,BCol:i.l,BCardText:c.j,BButton:l.T,ConfirmDialog:m.Z,ToastificationContent:u.Z},directives:{Ripple:d.Z},mounted(){this.checkBenchmarkVersion()},methods:{checkBenchmarkVersion(){p.Z.getInfo().then((t=>{console.log(t);const e=t.data.data.version;h["default"].get("https://raw.githubusercontent.com/runonflux/flux/master/helpers/benchmarkinfo.json").then((t=>{console.log(t),t.data.version!==e?this.showToast("warning","Benchmark requires an update!"):this.showToast("success","Benchmark is up to date")})).catch((t=>{console.log(t),this.showToast("danger","Error verifying recent version")}))})).catch((t=>{console.log(t),this.showToast("danger","Error connecting to benchmark")}))},updateBenchmark(){p.Z.getInfo().then((t=>{console.log(t);const e=t.data.data.version;h["default"].get("https://raw.githubusercontent.com/runonflux/flux/master/helpers/benchmarkinfo.json").then((t=>{if(console.log(t),t.data.version!==e){const t=localStorage.getItem("zelidauth"),e=f.parse(t);console.log(e),this.showToast("success","Benchmark is now updating in the background"),g.Z.updateBenchmark(t).then((t=>{console.log(t),"error"===t.data.status&&this.showToast("danger",t.data.data.message||t.data.data)})).catch((t=>{console.log(t),console.log(t.code),this.showToast("danger",t.toString())}))}else this.showToast("success","Benchmark is already up to date")})).catch((t=>{console.log(t),this.showToast("danger","Error verifying recent version")}))})).catch((t=>{console.log(t),this.showToast("danger","Error connecting to benchmark")}))},startBenchmark(){this.showToast("warning","Benchmark will start");const t=localStorage.getItem("zelidauth");p.Z.start(t).then((t=>{"error"===t.data.status?this.showToast("danger",t.data.data.message||t.data.data):this.showToast("success",t.data.data.message||t.data.data)})).catch((t=>{console.log(t),this.showToast("danger","Error while trying to start benchmark")}))},stopBenchmark(){this.showToast("warning","Benchmark will be stopped");const t=localStorage.getItem("zelidauth");p.Z.stop(t).then((t=>{"error"===t.data.status?this.showToast("danger",t.data.data.message||t.data.data):this.showToast("success",t.data.data.message||t.data.data)})).catch((t=>{console.log(t),this.showToast("danger","Error while trying to stop benchmark")}))},restartBenchmark(){this.showToast("warning","Benchmark will now restart");const t=localStorage.getItem("zelidauth");p.Z.restart(t).then((t=>{"error"===t.data.status?this.showToast("danger",t.data.data.message||t.data.data):this.showToast("success",t.data.data.message||t.data.data)})).catch((t=>{console.log(t),this.showToast("danger","Error while trying to restart benchmark")}))},restartBenchmarks(){this.showToast("warning","Initiating new benchmarks");const t=localStorage.getItem("zelidauth");p.Z.restartNodeBenchmarks(t).then((t=>{console.log(t),"error"===t.data.status?this.showToast("danger",t.data.data.message||t.data.data):this.showToast("success",t.data.data.message||t.data.data)})).catch((t=>{console.log(t),this.showToast("danger","Error while trying to run new benchmarks")}))},showToast(t,e,a="InfoIcon"){this.$toast({component:u.Z,props:{title:e,icon:a,variant:t}})}}},k=b;var x=a(1001),v=(0,x.Z)(k,r,s,!1,null,null,null);const w=v.exports},39569:(t,e,a)=>{a.d(e,{Z:()=>s});var r=a(80914);const s={start(t){return(0,r.Z)().get("/benchmark/start",{headers:{zelidauth:t}})},restart(t){return(0,r.Z)().get("/benchmark/restart",{headers:{zelidauth:t}})},getStatus(){return(0,r.Z)().get("/benchmark/getstatus")},restartNodeBenchmarks(t){return(0,r.Z)().get("/benchmark/restartnodebenchmarks",{headers:{zelidauth:t}})},signFluxTransaction(t,e){return(0,r.Z)().get(`/benchmark/signzelnodetransaction/${e}`,{headers:{zelidauth:t}})},helpSpecific(t){return(0,r.Z)().get(`/benchmark/help/${t}`)},help(){return(0,r.Z)().get("/benchmark/help")},stop(t){return(0,r.Z)().get("/benchmark/stop",{headers:{zelidauth:t}})},getBenchmarks(){return(0,r.Z)().get("/benchmark/getbenchmarks")},getInfo(){return(0,r.Z)().get("/benchmark/getinfo")},tailBenchmarkDebug(t){return(0,r.Z)().get("/flux/tailbenchmarkdebug",{headers:{zelidauth:t}})},justAPI(){return(0,r.Z)()},cancelToken(){return r.S}}},39055:(t,e,a)=>{a.d(e,{Z:()=>s});var r=a(80914);const s={softUpdateFlux(t){return(0,r.Z)().get("/flux/softupdateflux",{headers:{zelidauth:t}})},softUpdateInstallFlux(t){return(0,r.Z)().get("/flux/softupdatefluxinstall",{headers:{zelidauth:t}})},updateFlux(t){return(0,r.Z)().get("/flux/updateflux",{headers:{zelidauth:t}})},hardUpdateFlux(t){return(0,r.Z)().get("/flux/hardupdateflux",{headers:{zelidauth:t}})},rebuildHome(t){return(0,r.Z)().get("/flux/rebuildhome",{headers:{zelidauth:t}})},updateDaemon(t){return(0,r.Z)().get("/flux/updatedaemon",{headers:{zelidauth:t}})},reindexDaemon(t){return(0,r.Z)().get("/flux/reindexdaemon",{headers:{zelidauth:t}})},updateBenchmark(t){return(0,r.Z)().get("/flux/updatebenchmark",{headers:{zelidauth:t}})},getFluxVersion(){return(0,r.Z)().get("/flux/version")},broadcastMessage(t,e){const a=e,s={headers:{zelidauth:t}};return(0,r.Z)().post("/flux/broadcastmessage",JSON.stringify(a),s)},connectedPeers(){return(0,r.Z)().get(`/flux/connectedpeers?timestamp=${Date.now()}`)},connectedPeersInfo(){return(0,r.Z)().get(`/flux/connectedpeersinfo?timestamp=${Date.now()}`)},incomingConnections(){return(0,r.Z)().get(`/flux/incomingconnections?timestamp=${Date.now()}`)},incomingConnectionsInfo(){return(0,r.Z)().get(`/flux/incomingconnectionsinfo?timestamp=${Date.now()}`)},addPeer(t,e){return(0,r.Z)().get(`/flux/addpeer/${e}`,{headers:{zelidauth:t}})},removePeer(t,e){return(0,r.Z)().get(`/flux/removepeer/${e}`,{headers:{zelidauth:t}})},removeIncomingPeer(t,e){return(0,r.Z)().get(`/flux/removeincomingpeer/${e}`,{headers:{zelidauth:t}})},adjustKadena(t,e,a){return(0,r.Z)().get(`/flux/adjustkadena/${e}/${a}`,{headers:{zelidauth:t}})},adjustRouterIP(t,e){return(0,r.Z)().get(`/flux/adjustrouterip/${e}`,{headers:{zelidauth:t}})},adjustBlockedPorts(t,e){const a={blockedPorts:e},s={headers:{zelidauth:t}};return(0,r.Z)().post("/flux/adjustblockedports",a,s)},adjustAPIPort(t,e){return(0,r.Z)().get(`/flux/adjustapiport/${e}`,{headers:{zelidauth:t}})},adjustBlockedRepositories(t,e){const a={blockedRepositories:e},s={headers:{zelidauth:t}};return(0,r.Z)().post("/flux/adjustblockedrepositories",a,s)},getKadenaAccount(){const t={headers:{"x-apicache-bypass":!0}};return(0,r.Z)().get("/flux/kadena",t)},getRouterIP(){const t={headers:{"x-apicache-bypass":!0}};return(0,r.Z)().get("/flux/routerip",t)},getBlockedPorts(){const t={headers:{"x-apicache-bypass":!0}};return(0,r.Z)().get("/flux/blockedports",t)},getAPIPort(){const t={headers:{"x-apicache-bypass":!0}};return(0,r.Z)().get("/flux/apiport",t)},getBlockedRepositories(){const t={headers:{"x-apicache-bypass":!0}};return(0,r.Z)().get("/flux/blockedrepositories",t)},getMarketPlaceURL(){return(0,r.Z)().get("/flux/marketplaceurl")},getZelid(){const t={headers:{"x-apicache-bypass":!0}};return(0,r.Z)().get("/flux/zelid",t)},getStaticIpInfo(){return(0,r.Z)().get("/flux/staticip")},restartFluxOS(t){const e={headers:{zelidauth:t,"x-apicache-bypass":!0}};return(0,r.Z)().get("/flux/restart",e)},tailFluxLog(t,e){return(0,r.Z)().get(`/flux/tail${t}log`,{headers:{zelidauth:e}})},justAPI(){return(0,r.Z)()},cancelToken(){return r.S}}}}]); \ No newline at end of file +"use strict";(self["webpackChunkflux"]=self["webpackChunkflux"]||[]).push([[1994],{34547:(t,e,a)=>{a.d(e,{Z:()=>u});var r=function(){var t=this,e=t._self._c;return e("div",{staticClass:"toastification"},[e("div",{staticClass:"d-flex align-items-start"},[e("b-avatar",{staticClass:"mr-75 flex-shrink-0",attrs:{variant:t.variant,size:"1.8rem"}},[e("feather-icon",{attrs:{icon:t.icon,size:"15"}})],1),e("div",{staticClass:"d-flex flex-grow-1"},[e("div",[t.title?e("h5",{staticClass:"mb-0 font-weight-bolder toastification-title",class:`text-${t.variant}`,domProps:{textContent:t._s(t.title)}}):t._e(),t.text?e("small",{staticClass:"d-inline-block text-body",domProps:{textContent:t._s(t.text)}}):t._e()]),e("span",{staticClass:"cursor-pointer toastification-close-icon ml-auto",on:{click:function(e){return t.$emit("close-toast")}}},[t.hideClose?t._e():e("feather-icon",{staticClass:"text-body",attrs:{icon:"XIcon"}})],1)])],1)])},s=[],n=a(47389);const o={components:{BAvatar:n.SH},props:{variant:{type:String,default:"primary"},icon:{type:String,default:null},title:{type:String,default:null},text:{type:String,default:null},hideClose:{type:Boolean,default:!1}}},i=o;var c=a(1001),l=(0,c.Z)(i,r,s,!1,null,"22d964ca",null);const u=l.exports},87156:(t,e,a)=>{a.d(e,{Z:()=>h});var r=function(){var t=this,e=t._self._c;return e("b-popover",{ref:"popover",attrs:{target:`${t.target}`,triggers:"click blur",show:t.show,placement:"auto",container:"my-container","custom-class":`confirm-dialog-${t.width}`},on:{"update:show":function(e){t.show=e}},scopedSlots:t._u([{key:"title",fn:function(){return[e("div",{staticClass:"d-flex justify-content-between align-items-center"},[e("span",[t._v(t._s(t.title))]),e("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"close",attrs:{variant:"transparent","aria-label":"Close"},on:{click:function(e){t.show=!1}}},[e("span",{staticClass:"d-inline-block text-white",attrs:{"aria-hidden":"true"}},[t._v("×")])])],1)]},proxy:!0}])},[e("div",{staticClass:"text-center"},[e("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"mr-1",attrs:{size:"sm",variant:"danger"},on:{click:function(e){t.show=!1}}},[t._v(" "+t._s(t.cancelButton)+" ")]),e("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],attrs:{size:"sm",variant:"primary"},on:{click:function(e){return t.confirm()}}},[t._v(" "+t._s(t.confirmButton)+" ")])],1)])},s=[],n=a(15193),o=a(53862),i=a(20266);const c={components:{BButton:n.T,BPopover:o.x},directives:{Ripple:i.Z},props:{target:{type:String,required:!0},title:{type:String,required:!1,default:"Are You Sure?"},cancelButton:{type:String,required:!1,default:"Cancel"},confirmButton:{type:String,required:!0},width:{type:Number,required:!1,default:300}},data(){return{show:!1}},methods:{confirm(){this.show=!1,this.$emit("confirm")}}},l=c;var u=a(1001),d=(0,u.Z)(l,r,s,!1,null,null,null);const h=d.exports},71994:(t,e,a)=>{a.r(e),a.d(e,{default:()=>w});var r=function(){var t=this,e=t._self._c;return e("div",[e("b-row",{staticClass:"match-height"},[e("b-col",{attrs:{sm:"12",lg:"6",xl:"4"}},[e("b-card",{attrs:{title:"Benchmark"}},[e("b-card-text",{staticClass:"mb-3"},[t._v(" An easy way to update your Benchmark daemon to the latest version. Benchmark will be automatically started once update is done. ")]),e("div",{staticClass:"text-center"},[e("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],attrs:{id:"update-benchmark",variant:"success","aria-label":"Update Benchmark"}},[t._v(" Update Benchmark ")]),e("confirm-dialog",{attrs:{target:"update-benchmark","confirm-button":"Update Benchmark"},on:{confirm:function(e){return t.updateBenchmark()}}})],1)],1)],1),e("b-col",{attrs:{sm:"12",lg:"6",xl:"4"}},[e("b-card",{attrs:{title:"Manage Process"}},[e("b-card-text",{staticClass:"mb-3"},[t._v(" Here you can manage your Benchmark daemon process. ")]),e("div",{staticClass:"text-center"},[e("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"mx-1 mb-1",attrs:{id:"start-benchmark",variant:"success","aria-label":"Start Benchmark"}},[t._v(" Start Benchmark ")]),e("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"mx-1 mb-1",attrs:{id:"stop-benchmark",variant:"success","aria-label":"Stop Benchmark"}},[t._v(" Stop Benchmark ")]),e("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"mx-1 mb-1",attrs:{id:"restart-benchmark",variant:"success","aria-label":"Restart Benchmakr"}},[t._v(" Restart Benchmark ")]),e("confirm-dialog",{attrs:{target:"start-benchmark","confirm-button":"Start Benchmark"},on:{confirm:function(e){return t.startBenchmark()}}}),e("confirm-dialog",{attrs:{target:"stop-benchmark","confirm-button":"Stop Benchmark"},on:{confirm:function(e){return t.stopBenchmark()}}}),e("confirm-dialog",{attrs:{target:"restart-benchmark","confirm-button":"Restart Benchmark"},on:{confirm:function(e){return t.restartBenchmark()}}})],1)],1)],1),e("b-col",{attrs:{sm:"12",xl:"4"}},[e("b-card",{attrs:{title:"Restart"}},[e("b-card-text",{staticClass:"mb-2"},[t._v(" Option to trigger a complete new run of node benchmarking. Useful when your node falls down in category or fails benchmarking tests. ")]),e("div",{staticClass:"text-center"},[e("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],attrs:{id:"restart-benchmarks",variant:"success","aria-label":"Restart Benchmarks"}},[t._v(" Restart Benchmarks ")]),e("confirm-dialog",{attrs:{target:"restart-benchmarks","confirm-button":"Restart Benchmarks"},on:{confirm:function(e){return t.restartBenchmarks()}}})],1)],1)],1)],1)],1)},s=[],n=a(86855),o=a(26253),i=a(50725),c=a(64206),l=a(15193),u=a(34547),d=a(20266),h=a(87066),m=a(87156),g=a(39055),p=a(39569);const f=a(80129),b={components:{BCard:n._,BRow:o.T,BCol:i.l,BCardText:c.j,BButton:l.T,ConfirmDialog:m.Z,ToastificationContent:u.Z},directives:{Ripple:d.Z},mounted(){this.checkBenchmarkVersion()},methods:{checkBenchmarkVersion(){p.Z.getInfo().then((t=>{console.log(t);const e=t.data.data.version;h["default"].get("https://raw.githubusercontent.com/runonflux/flux/master/helpers/benchmarkinfo.json").then((t=>{console.log(t),t.data.version!==e?this.showToast("warning","Benchmark requires an update!"):this.showToast("success","Benchmark is up to date")})).catch((t=>{console.log(t),this.showToast("danger","Error verifying recent version")}))})).catch((t=>{console.log(t),this.showToast("danger","Error connecting to benchmark")}))},updateBenchmark(){p.Z.getInfo().then((t=>{console.log(t);const e=t.data.data.version;h["default"].get("https://raw.githubusercontent.com/runonflux/flux/master/helpers/benchmarkinfo.json").then((t=>{if(console.log(t),t.data.version!==e){const t=localStorage.getItem("zelidauth"),e=f.parse(t);console.log(e),this.showToast("success","Benchmark is now updating in the background"),g.Z.updateBenchmark(t).then((t=>{console.log(t),"error"===t.data.status&&this.showToast("danger",t.data.data.message||t.data.data)})).catch((t=>{console.log(t),console.log(t.code),this.showToast("danger",t.toString())}))}else this.showToast("success","Benchmark is already up to date")})).catch((t=>{console.log(t),this.showToast("danger","Error verifying recent version")}))})).catch((t=>{console.log(t),this.showToast("danger","Error connecting to benchmark")}))},startBenchmark(){this.showToast("warning","Benchmark will start");const t=localStorage.getItem("zelidauth");p.Z.start(t).then((t=>{"error"===t.data.status?this.showToast("danger",t.data.data.message||t.data.data):this.showToast("success",t.data.data.message||t.data.data)})).catch((t=>{console.log(t),this.showToast("danger","Error while trying to start benchmark")}))},stopBenchmark(){this.showToast("warning","Benchmark will be stopped");const t=localStorage.getItem("zelidauth");p.Z.stop(t).then((t=>{"error"===t.data.status?this.showToast("danger",t.data.data.message||t.data.data):this.showToast("success",t.data.data.message||t.data.data)})).catch((t=>{console.log(t),this.showToast("danger","Error while trying to stop benchmark")}))},restartBenchmark(){this.showToast("warning","Benchmark will now restart");const t=localStorage.getItem("zelidauth");p.Z.restart(t).then((t=>{"error"===t.data.status?this.showToast("danger",t.data.data.message||t.data.data):this.showToast("success",t.data.data.message||t.data.data)})).catch((t=>{console.log(t),this.showToast("danger","Error while trying to restart benchmark")}))},restartBenchmarks(){this.showToast("warning","Initiating new benchmarks");const t=localStorage.getItem("zelidauth");p.Z.restartNodeBenchmarks(t).then((t=>{console.log(t),"error"===t.data.status?this.showToast("danger",t.data.data.message||t.data.data):this.showToast("success",t.data.data.message||t.data.data)})).catch((t=>{console.log(t),this.showToast("danger","Error while trying to run new benchmarks")}))},showToast(t,e,a="InfoIcon"){this.$toast({component:u.Z,props:{title:e,icon:a,variant:t}})}}},k=b;var x=a(1001),v=(0,x.Z)(k,r,s,!1,null,null,null);const w=v.exports},39569:(t,e,a)=>{a.d(e,{Z:()=>s});var r=a(80914);const s={start(t){return(0,r.Z)().get("/benchmark/start",{headers:{zelidauth:t}})},restart(t){return(0,r.Z)().get("/benchmark/restart",{headers:{zelidauth:t}})},getStatus(){return(0,r.Z)().get("/benchmark/getstatus")},restartNodeBenchmarks(t){return(0,r.Z)().get("/benchmark/restartnodebenchmarks",{headers:{zelidauth:t}})},signFluxTransaction(t,e){return(0,r.Z)().get(`/benchmark/signzelnodetransaction/${e}`,{headers:{zelidauth:t}})},helpSpecific(t){return(0,r.Z)().get(`/benchmark/help/${t}`)},help(){return(0,r.Z)().get("/benchmark/help")},stop(t){return(0,r.Z)().get("/benchmark/stop",{headers:{zelidauth:t}})},getBenchmarks(){return(0,r.Z)().get("/benchmark/getbenchmarks")},getInfo(){return(0,r.Z)().get("/benchmark/getinfo")},tailBenchmarkDebug(t){return(0,r.Z)().get("/flux/tailbenchmarkdebug",{headers:{zelidauth:t}})},justAPI(){return(0,r.Z)()},cancelToken(){return r.S}}},39055:(t,e,a)=>{a.d(e,{Z:()=>s});var r=a(80914);const s={softUpdateFlux(t){return(0,r.Z)().get("/flux/softupdateflux",{headers:{zelidauth:t}})},softUpdateInstallFlux(t){return(0,r.Z)().get("/flux/softupdatefluxinstall",{headers:{zelidauth:t}})},updateFlux(t){return(0,r.Z)().get("/flux/updateflux",{headers:{zelidauth:t}})},hardUpdateFlux(t){return(0,r.Z)().get("/flux/hardupdateflux",{headers:{zelidauth:t}})},rebuildHome(t){return(0,r.Z)().get("/flux/rebuildhome",{headers:{zelidauth:t}})},updateDaemon(t){return(0,r.Z)().get("/flux/updatedaemon",{headers:{zelidauth:t}})},reindexDaemon(t){return(0,r.Z)().get("/flux/reindexdaemon",{headers:{zelidauth:t}})},updateBenchmark(t){return(0,r.Z)().get("/flux/updatebenchmark",{headers:{zelidauth:t}})},getFluxVersion(){return(0,r.Z)().get("/flux/version")},broadcastMessage(t,e){const a=e,s={headers:{zelidauth:t}};return(0,r.Z)().post("/flux/broadcastmessage",JSON.stringify(a),s)},connectedPeers(){return(0,r.Z)().get(`/flux/connectedpeers?timestamp=${Date.now()}`)},connectedPeersInfo(){return(0,r.Z)().get(`/flux/connectedpeersinfo?timestamp=${Date.now()}`)},incomingConnections(){return(0,r.Z)().get(`/flux/incomingconnections?timestamp=${Date.now()}`)},incomingConnectionsInfo(){return(0,r.Z)().get(`/flux/incomingconnectionsinfo?timestamp=${Date.now()}`)},addPeer(t,e){return(0,r.Z)().get(`/flux/addpeer/${e}`,{headers:{zelidauth:t}})},removePeer(t,e){return(0,r.Z)().get(`/flux/removepeer/${e}`,{headers:{zelidauth:t}})},removeIncomingPeer(t,e){return(0,r.Z)().get(`/flux/removeincomingpeer/${e}`,{headers:{zelidauth:t}})},adjustKadena(t,e,a){return(0,r.Z)().get(`/flux/adjustkadena/${e}/${a}`,{headers:{zelidauth:t}})},adjustRouterIP(t,e){return(0,r.Z)().get(`/flux/adjustrouterip/${e}`,{headers:{zelidauth:t}})},adjustBlockedPorts(t,e){const a={blockedPorts:e},s={headers:{zelidauth:t}};return(0,r.Z)().post("/flux/adjustblockedports",a,s)},adjustAPIPort(t,e){return(0,r.Z)().get(`/flux/adjustapiport/${e}`,{headers:{zelidauth:t}})},adjustBlockedRepositories(t,e){const a={blockedRepositories:e},s={headers:{zelidauth:t}};return(0,r.Z)().post("/flux/adjustblockedrepositories",a,s)},getKadenaAccount(){const t={headers:{"x-apicache-bypass":!0}};return(0,r.Z)().get("/flux/kadena",t)},getRouterIP(){const t={headers:{"x-apicache-bypass":!0}};return(0,r.Z)().get("/flux/routerip",t)},getBlockedPorts(){const t={headers:{"x-apicache-bypass":!0}};return(0,r.Z)().get("/flux/blockedports",t)},getAPIPort(){const t={headers:{"x-apicache-bypass":!0}};return(0,r.Z)().get("/flux/apiport",t)},getBlockedRepositories(){const t={headers:{"x-apicache-bypass":!0}};return(0,r.Z)().get("/flux/blockedrepositories",t)},getMarketPlaceURL(){return(0,r.Z)().get("/flux/marketplaceurl")},getZelid(){const t={headers:{"x-apicache-bypass":!0}};return(0,r.Z)().get("/flux/zelid",t)},getStaticIpInfo(){return(0,r.Z)().get("/flux/staticip")},restartFluxOS(t){const e={headers:{zelidauth:t,"x-apicache-bypass":!0}};return(0,r.Z)().get("/flux/restart",e)},tailFluxLog(t,e){return(0,r.Z)().get(`/flux/tail${t}log`,{headers:{zelidauth:e}})},justAPI(){return(0,r.Z)()},cancelToken(){return r.S}}}}]); \ No newline at end of file diff --git a/HomeUI/dist/js/2147.js b/HomeUI/dist/js/2147.js new file mode 100644 index 000000000..fe316bc14 --- /dev/null +++ b/HomeUI/dist/js/2147.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunkflux"]=self["webpackChunkflux"]||[]).push([[2147],{57494:(t,e,a)=>{a.r(e),a.d(e,{default:()=>A});var i=function(){var t=this,e=t._self._c;return e("div",[t.managedApplication?t._e():e("b-tabs",{attrs:{pills:""},on:{"activate-tab":function(e){return t.tabChanged()}}},[e("b-tab",{attrs:{title:"Active Apps"}},[e("b-overlay",{attrs:{show:t.tableconfig.active.loading,variant:"transparent",blur:"5px"}},[e("b-card",[e("b-row",[e("b-col",{staticClass:"my-1",attrs:{md:"4",sm:"4"}},[e("b-form-group",{staticClass:"mb-0"},[e("label",{staticClass:"d-inline-block text-left mr-50"},[t._v("Per page")]),e("b-form-select",{staticClass:"w-50",attrs:{id:"perPageSelect",size:"sm",options:t.tableconfig.active.pageOptions},model:{value:t.tableconfig.active.perPage,callback:function(e){t.$set(t.tableconfig.active,"perPage",e)},expression:"tableconfig.active.perPage"}})],1)],1),e("b-col",{staticClass:"my-1",attrs:{md:"8"}},[e("b-form-group",{staticClass:"mb-0 mt-0",attrs:{label:"Filter","label-cols-sm":"1","label-align-sm":"right","label-for":"filterInput"}},[e("b-input-group",{attrs:{size:"sm"}},[e("b-form-input",{attrs:{id:"filterInput",type:"search",placeholder:"Type to Search"},model:{value:t.tableconfig.active.filter,callback:function(e){t.$set(t.tableconfig.active,"filter",e)},expression:"tableconfig.active.filter"}}),e("b-input-group-append",[e("b-button",{attrs:{disabled:!t.tableconfig.active.filter},on:{click:function(e){t.tableconfig.active.filter=""}}},[t._v(" Clear ")])],1)],1)],1)],1),e("b-col",{attrs:{cols:"12"}},[e("b-table",{staticClass:"apps-active-table",attrs:{striped:"",outlined:"",responsive:"","per-page":t.tableconfig.active.perPage,"current-page":t.tableconfig.active.currentPage,items:t.tableconfig.active.apps,fields:t.tableconfig.active.fields,"sort-by":t.tableconfig.active.sortBy,"sort-desc":t.tableconfig.active.sortDesc,"sort-direction":t.tableconfig.active.sortDirection,filter:t.tableconfig.active.filter,"sort-icon-left":"","show-empty":"","empty-text":"No Flux Apps are active"},on:{"update:sortBy":function(e){return t.$set(t.tableconfig.active,"sortBy",e)},"update:sort-by":function(e){return t.$set(t.tableconfig.active,"sortBy",e)},"update:sortDesc":function(e){return t.$set(t.tableconfig.active,"sortDesc",e)},"update:sort-desc":function(e){return t.$set(t.tableconfig.active,"sortDesc",e)}},scopedSlots:t._u([{key:"cell(description)",fn:function(a){return[e("kbd",{staticClass:"text-secondary textarea text",staticStyle:{float:"left","text-align":"left"}},[t._v(t._s(a.item.description))])]}},{key:"cell(name)",fn:function(a){return[e("div",{staticClass:"text-left"},[e("kbd",{staticClass:"alert-info no-wrap",staticStyle:{"border-radius":"15px","font-weight":"700 !important"}},[e("b-icon",{attrs:{scale:"1.2",icon:"app-indicator"}}),t._v("  "+t._s(a.item.name)+"  ")],1),e("br"),e("small",{staticStyle:{"font-size":"11px"}},[e("div",{staticClass:"d-flex align-items-center",staticStyle:{"margin-top":"3px"}},[t._v("   "),e("b-icon",{attrs:{scale:"1.4",icon:"speedometer2"}}),t._v("  "),e("kbd",{staticClass:"alert-success",staticStyle:{"border-radius":"15px"}},[t._v(" "),e("b",[t._v(t._s(t.getServiceUsageValue(1,a.item.name,a.item)))]),t._v(" ")]),t._v("   "),e("b-icon",{attrs:{scale:"1.4",icon:"cpu"}}),t._v("  "),e("kbd",{staticClass:"alert-success",staticStyle:{"border-radius":"15px"}},[t._v(" "),e("b",[t._v(t._s(t.getServiceUsageValue(0,a.item.name,a.item)))]),t._v(" ")]),t._v("   "),e("b-icon",{attrs:{scale:"1.4",icon:"hdd"}}),t._v("  "),e("kbd",{staticClass:"alert-success",staticStyle:{"border-radius":"15px"}},[t._v(" "),e("b",[t._v(t._s(t.getServiceUsageValue(2,a.item.name,a.item)))]),t._v(" ")]),t._v("  "),e("b-icon",{attrs:{scale:"1.2",icon:"geo-alt"}}),t._v(" "),e("kbd",{staticClass:"alert-warning",staticStyle:{"border-radius":"15px"}},[t._v(" "),e("b",[t._v(t._s(a.item.instances))]),t._v(" ")])],1),e("span",{staticClass:"no-wrap",class:{"red-text":t.isLessThanTwoDays(t.labelForExpire(a.item.expire,a.item.height))}},[t._v("   "),e("b-icon",{attrs:{scale:"1.2",icon:"hourglass-split"}}),t._v(" "+t._s(t.labelForExpire(a.item.expire,a.item.height))+"   ")],1)])])]}},{key:"cell(show_details)",fn:function(a){return[e("a",{on:{click:function(e){return t.showLocations(a,t.tableconfig.active.apps)}}},[a.detailsShowing?t._e():e("v-icon",{staticClass:"ml-1",attrs:{name:"chevron-down"}}),a.detailsShowing?e("v-icon",{staticClass:"ml-1",attrs:{name:"chevron-up"}}):t._e()],1)]}},{key:"row-details",fn:function(a){return[e("b-card",{staticClass:"mx-2"},[e("b-button",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.top",value:"Copy to Clipboard",expression:"'Copy to Clipboard'",modifiers:{hover:!0,top:!0}}],staticClass:"mr-2",attrs:{id:`copy-active-app-${a.item.name}`,size:"sm",variant:"outline-dark",pill:""},on:{click:function(e){t.copyToClipboard(JSON.stringify(a.item))}}},[e("b-icon",{attrs:{scale:"1",icon:"clipboard"}}),t._v(" Copy Specifications ")],1),e("b-button",{staticClass:"mr-2",attrs:{id:`deploy-active-app-${a.item.name}`,size:"sm",variant:"outline-dark",pill:""}},[e("b-icon",{attrs:{scale:"1",icon:"building"}}),t._v(" Deploy Myself ")],1),e("confirm-dialog",{attrs:{target:`deploy-active-app-${a.item.name}`,"confirm-button":"Deploy App"},on:{confirm:function(e){return t.redeployApp(a.item,!0)}}})],1),e("b-card",{staticClass:"mx-2"},[e("h3",{staticClass:"no-wrap"},[e("kbd",{staticClass:"alert-info d-flex",staticStyle:{"border-radius":"15px","font-family":"monospace","padding-right":"100%"}},[e("b-icon",{staticClass:"ml-1",attrs:{scale:"1",icon:"info-square"}}),t._v("  Application Information ")],1)]),e("div",{staticClass:"ml-1"},[a.item.owner?e("list-entry",{attrs:{title:"Owner",data:a.item.owner}}):t._e(),a.item.hash?e("list-entry",{attrs:{title:"Hash",data:a.item.hash}}):t._e(),a.item.version>=5?e("div",[a.item.contacts.length>0?e("list-entry",{attrs:{title:"Contacts",data:JSON.stringify(a.item.contacts)}}):t._e(),a.item.geolocation.length?e("div",t._l(a.item.geolocation,(function(a){return e("div",{key:a},[e("list-entry",{attrs:{title:"Geolocation",data:t.getGeolocation(a)}})],1)})),0):e("div",[e("list-entry",{attrs:{title:"Continent",data:"All"}}),e("list-entry",{attrs:{title:"Country",data:"All"}}),e("list-entry",{attrs:{title:"Region",data:"All"}})],1)],1):t._e(),a.item.instances?e("list-entry",{attrs:{title:"Instances",data:a.item.instances.toString()}}):t._e(),e("list-entry",{attrs:{title:"Expires in",data:t.labelForExpire(a.item.expire,a.item.height)}}),a.item?.nodes?.length>0?e("list-entry",{attrs:{title:"Enterprise Nodes",data:a.item.nodes?a.item.nodes.toString():"Not scoped"}}):t._e(),e("list-entry",{attrs:{title:"Static IP",data:a.item.staticip?"Yes, Running only on Static IP nodes":"No, Running on all nodes"}})],1),a.item.version<=3?e("div",[e("b-card",[e("list-entry",{attrs:{title:"Repository",data:a.item.repotag}}),e("list-entry",{attrs:{title:"Custom Domains",data:a.item.domains.toString()||"none"}}),e("list-entry",{attrs:{title:"Automatic Domains",data:t.constructAutomaticDomains(a.item.ports,void 0,a.item.name).toString()}}),e("list-entry",{attrs:{title:"Ports",data:a.item.ports.toString()}}),e("list-entry",{attrs:{title:"Container Ports",data:a.item.containerPorts.toString()}}),e("list-entry",{attrs:{title:"Container Data",data:a.item.containerData}}),e("list-entry",{attrs:{title:"Enviroment Parameters",data:a.item.enviromentParameters.length>0?a.item.enviromentParameters.toString():"none"}}),e("list-entry",{attrs:{title:"Commands",data:a.item.commands.length>0?a.item.commands.toString():"none"}}),a.item.tiered?e("div",[e("list-entry",{attrs:{title:"CPU Cumulus",data:`${a.item.cpubasic} vCore`}}),e("list-entry",{attrs:{title:"CPU Nimbus",data:`${a.item.cpusuper} vCore`}}),e("list-entry",{attrs:{title:"CPU Stratus",data:`${a.item.cpubamf} vCore`}}),e("list-entry",{attrs:{title:"RAM Cumulus",data:`${a.item.rambasic} MB`}}),e("list-entry",{attrs:{title:"RAM Nimbus",data:`${a.item.ramsuper} MB`}}),e("list-entry",{attrs:{title:"RAM Stratus",data:`${a.item.rambamf} MB`}}),e("list-entry",{attrs:{title:"SSD Cumulus",data:`${a.item.hddbasic} GB`}}),e("list-entry",{attrs:{title:"SSD Nimbus",data:`${a.item.hddsuper} GB`}}),e("list-entry",{attrs:{title:"SSD Stratus",data:`${a.item.hddbamf} GB`}})],1):e("div",[e("list-entry",{attrs:{title:"CPU",data:`${a.item.cpu} vCore`}}),e("list-entry",{attrs:{title:"RAM",data:`${a.item.ram} MB`}}),e("list-entry",{attrs:{title:"SSD",data:`${a.item.hdd} GB`}})],1)],1)],1):e("div",[e("h3",{staticClass:"no-wrap"},[e("kbd",{staticClass:"alert-info d-flex",staticStyle:{"border-radius":"15px","font-family":"monospace","padding-right":"100%"}},[e("b-icon",{staticClass:"ml-1",attrs:{scale:"1",icon:"box"}}),t._v("  Composition ")],1)]),t._l(a.item.compose,(function(i,s){return e("b-card",{key:s,staticClass:"mb-0"},[e("h3",{staticClass:"no-wrap"},[e("kbd",{staticClass:"alert-success d-flex",staticStyle:{"border-radius":"15px","font-family":"monospace","max-width":"500px"}},[e("b-icon",{staticClass:"ml-1",attrs:{scale:"1",icon:"menu-app-fill"}}),t._v("  "+t._s(i.name)+" ")],1)]),e("div",{staticClass:"ml-1"},[e("list-entry",{attrs:{title:"Name",data:i.name}}),e("list-entry",{attrs:{title:"Description",data:i.description}}),e("list-entry",{attrs:{title:"Repository",data:i.repotag}}),e("list-entry",{attrs:{title:"Repository Authentication",data:i.repoauth?"Content Encrypted":"Public"}}),e("list-entry",{attrs:{title:"Custom Domains",data:i.domains.toString()||"none"}}),e("list-entry",{attrs:{title:"Automatic Domains",data:t.constructAutomaticDomains(i.ports,i.name,a.item.name,s).toString()}}),e("list-entry",{attrs:{title:"Ports",data:i.ports.toString()}}),e("list-entry",{attrs:{title:"Container Ports",data:i.containerPorts.toString()}}),e("list-entry",{attrs:{title:"Container Data",data:i.containerData}}),e("list-entry",{attrs:{title:"Environment Parameters",data:i.environmentParameters.length>0?i.environmentParameters.toString():"none"}}),e("list-entry",{attrs:{title:"Commands",data:i.commands.length>0?i.commands.toString():"none"}}),e("list-entry",{attrs:{title:"Secret Environment Parameters",data:i.secrets?"Content Encrypted":"none"}}),i.tiered?e("div",[e("list-entry",{attrs:{title:"CPU Cumulus",data:`${i.cpubasic} vCore`}}),e("list-entry",{attrs:{title:"CPU Nimbus",data:`${i.cpusuper} vCore`}}),e("list-entry",{attrs:{title:"CPU Stratus",data:`${i.cpubamf} vCore`}}),e("list-entry",{attrs:{title:"RAM Cumulus",data:`${i.rambasic} MB`}}),e("list-entry",{attrs:{title:"RAM Nimbus",data:`${i.ramsuper} MB`}}),e("list-entry",{attrs:{title:"RAM Stratus",data:`${i.rambamf} MB`}}),e("list-entry",{attrs:{title:"SSD Cumulus",data:`${i.hddbasic} GB`}}),e("list-entry",{attrs:{title:"SSD Nimbus",data:`${i.hddsuper} GB`}}),e("list-entry",{attrs:{title:"SSD Stratus",data:`${i.hddbamf} GB`}})],1):e("div",[e("list-entry",{attrs:{title:"CPU",data:`${i.cpu} vCore`}}),e("list-entry",{attrs:{title:"RAM",data:`${i.ram} MB`}}),e("list-entry",{attrs:{title:"SSD",data:`${i.hdd} GB`}})],1)],1)])}))],2),e("h3",[e("kbd",{staticClass:"alert-info d-flex",staticStyle:{"border-radius":"15px","font-family":"monospace","padding-right":"100%"}},[e("b-icon",{attrs:{scale:"1",icon:"globe"}}),t._v("  Locations ")],1)]),e("b-row",[e("b-col",{staticClass:"my-1",attrs:{md:"4",sm:"4"}},[e("b-form-group",{staticClass:"mb-0"},[e("label",{staticClass:"d-inline-block text-left mr-50"},[t._v("Per page")]),e("b-form-select",{staticClass:"w-50",attrs:{id:"perPageSelect",size:"sm",options:t.appLocationOptions.pageOptions},model:{value:t.appLocationOptions.perPage,callback:function(e){t.$set(t.appLocationOptions,"perPage",e)},expression:"appLocationOptions.perPage"}})],1)],1),e("b-col",{staticClass:"my-1",attrs:{md:"8"}},[e("b-form-group",{staticClass:"mb-0",attrs:{label:"Filter","label-cols-sm":"1","label-align-sm":"right","label-for":"filterInput"}},[e("b-input-group",{attrs:{size:"sm"}},[e("b-form-input",{attrs:{id:"filterInput",type:"search",placeholder:"Type to Search"},model:{value:t.appLocationOptions.filter,callback:function(e){t.$set(t.appLocationOptions,"filter",e)},expression:"appLocationOptions.filter"}}),e("b-input-group-append",[e("b-button",{attrs:{disabled:!t.appLocationOptions.filter},on:{click:function(e){t.appLocationOptions.filter=""}}},[t._v(" Clear ")])],1)],1)],1)],1),e("b-col",{attrs:{cols:"12"}},[e("b-table",{staticClass:"locations-table",attrs:{borderless:"","per-page":t.appLocationOptions.perPage,"current-page":t.appLocationOptions.currentPage,items:t.appLocations,fields:t.appLocationFields,"thead-class":"d-none",filter:t.appLocationOptions.filter,"show-empty":"","sort-icon-left":"","empty-text":"No instances found.."},scopedSlots:t._u([{key:"cell(ip)",fn:function(a){return[e("div",{staticClass:"no-wrap"},[e("kbd",{staticClass:"alert-info",staticStyle:{"border-radius":"15px"}},[e("b-icon",{attrs:{scale:"1.1",icon:"hdd-network-fill"}})],1),t._v("  "),e("kbd",{staticClass:"alert-success no-wrap",staticStyle:{"border-radius":"15px"}},[e("b",[t._v("  "+t._s(a.item.ip)+"  ")])])])]}},{key:"cell(visit)",fn:function(i){return[e("div",{staticClass:"d-flex justify-content-end"},[e("b-button",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.top",value:"Visit App",expression:"'Visit App'",modifiers:{hover:!0,top:!0}}],staticClass:"mr-1",attrs:{size:"sm",pill:"",variant:"dark"},on:{click:function(e){t.openApp(a.item.name,i.item.ip.split(":")[0],t.getProperPort(a.item))}}},[e("b-icon",{attrs:{scale:"1",icon:"door-open"}}),t._v(" App ")],1),e("b-button",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.top",value:"Visit FluxNode",expression:"'Visit FluxNode'",modifiers:{hover:!0,top:!0}}],staticClass:"mr-0",attrs:{size:"sm",pill:"",variant:"outline-dark"},on:{click:function(e){t.openNodeFluxOS(i.item.ip.split(":")[0],i.item.ip.split(":")[1]?+i.item.ip.split(":")[1]-1:16126)}}},[e("b-icon",{attrs:{scale:"1",icon:"house-door-fill"}}),t._v(" FluxNode ")],1),t._v("   ")],1)]}}],null,!0)})],1),e("b-col",{attrs:{cols:"12"}},[e("b-pagination",{staticClass:"my-0 mt-1",attrs:{"total-rows":t.appLocationOptions.totalRows,"per-page":t.appLocationOptions.perPage,align:"center",size:"sm"},model:{value:t.appLocationOptions.currentPage,callback:function(e){t.$set(t.appLocationOptions,"currentPage",e)},expression:"appLocationOptions.currentPage"}})],1)],1)],1)]}},{key:"cell(visit)",fn:function(a){return[e("div",{staticClass:"d-flex no-wrap"},["fluxteam"===t.privilege?e("b-button",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.top",value:"Manage Installed App",expression:"'Manage Installed App'",modifiers:{hover:!0,top:!0}}],staticClass:"mr-0",attrs:{id:`manage-installed-app-${a.item.name}`,size:"sm",variant:"outline-dark"}},[e("b-icon",{attrs:{scale:"1",icon:"gear"}}),t._v(" Manage ")],1):t._e(),e("confirm-dialog",{attrs:{target:`manage-installed-app-${a.item.name}`,"confirm-button":"Manage App"},on:{confirm:function(e){return t.openAppManagement(a.item.name)}}}),e("b-button",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.top",value:"Visit App",expression:"'Visit App'",modifiers:{hover:!0,top:!0}}],staticClass:"mr-0 no-wrap hover-underline",attrs:{size:"sm",variant:"link"},on:{click:function(e){return t.openGlobalApp(a.item.name)}}},[e("b-icon",{attrs:{scale:"1",icon:"front"}}),t._v(" Visit ")],1),t._v("    ")],1)]}}],null,!1,649067422)})],1)],1),e("b-col",{attrs:{cols:"12"}},[e("b-pagination",{staticClass:"my-0",attrs:{"total-rows":t.tableconfig.active?.apps?.length||1,"per-page":t.tableconfig.active.perPage,align:"center",size:"sm"},model:{value:t.tableconfig.active.currentPage,callback:function(e){t.$set(t.tableconfig.active,"currentPage",e)},expression:"tableconfig.active.currentPage"}})],1)],1)],1)],1),e("b-tab",{attrs:{title:"Marketplace Deployments"}},[e("b-overlay",{attrs:{show:t.tableconfig.active.loading,variant:"transparent",blur:"5px"}},[e("b-card",[e("b-row",[e("b-col",{staticClass:"my-1",attrs:{md:"4",sm:"4"}},[e("b-form-group",{staticClass:"mb-0"},[e("label",{staticClass:"d-inline-block text-left mr-50"},[t._v("Per page")]),e("b-form-select",{staticClass:"w-50",attrs:{id:"perPageSelect",size:"sm",options:t.tableconfig.active_marketplace.pageOptions},model:{value:t.tableconfig.active_marketplace.perPage,callback:function(e){t.$set(t.tableconfig.active_marketplace,"perPage",e)},expression:"tableconfig.active_marketplace.perPage"}})],1)],1),e("b-col",{staticClass:"my-1",attrs:{md:"8"}},[e("b-form-group",{staticClass:"mb-0 mt-0",attrs:{label:"Filter","label-cols-sm":"1","label-align-sm":"right","label-for":"filterInput"}},[e("b-input-group",{attrs:{size:"sm"}},[e("b-form-input",{attrs:{id:"filterInput",type:"search",placeholder:"Type to Search"},model:{value:t.tableconfig.active_marketplace.filter,callback:function(e){t.$set(t.tableconfig.active_marketplace,"filter",e)},expression:"tableconfig.active_marketplace.filter"}}),e("b-input-group-append",[e("b-button",{attrs:{disabled:!t.tableconfig.active_marketplace.filter},on:{click:function(e){t.tableconfig.active_marketplace.filter=""}}},[t._v(" Clear ")])],1)],1)],1)],1),e("b-col",{attrs:{cols:"12"}},[e("b-table",{staticClass:"apps-active-table",attrs:{striped:"",outlined:"",responsive:"",items:t.tableconfig.active_marketplace.apps,fields:t.tableconfig.active_marketplace.fields,"per-page":t.tableconfig.active_marketplace.perPage,"current-page":t.tableconfig.active_marketplace.currentPage,filter:t.tableconfig.active_marketplace.filter,"show-empty":"","sort-icon-left":"","empty-text":"No Flux Marketplace Apps are active"},scopedSlots:t._u([{key:"cell(visit)",fn:function(a){return[e("div",{staticClass:"d-flex no-wrap"},["fluxteam"===t.privilege?e("b-button",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.top",value:"Manage Installed App",expression:"'Manage Installed App'",modifiers:{hover:!0,top:!0}}],staticClass:"mr-0",attrs:{id:`manage-installed-app-${a.item.name}`,size:"sm",variant:"outline-dark"}},[e("b-icon",{attrs:{scale:"1",icon:"gear"}}),t._v(" Manage ")],1):t._e(),e("confirm-dialog",{attrs:{target:`manage-installed-app-${a.item.name}`,"confirm-button":"Manage App"},on:{confirm:function(e){return t.openAppManagement(a.item.name)}}}),e("b-button",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.top",value:"Visit App",expression:"'Visit App'",modifiers:{hover:!0,top:!0}}],staticClass:"mr-0 no-wrap hover-underline",attrs:{size:"sm",variant:"link"},on:{click:function(e){return t.openGlobalApp(a.item.name)}}},[e("b-icon",{attrs:{scale:"1",icon:"front"}}),t._v(" Visit ")],1)],1)]}},{key:"cell(description)",fn:function(a){return[e("kbd",{staticClass:"text-secondary textarea text",staticStyle:{float:"left","text-align":"left"}},[t._v(t._s(a.item.description))])]}},{key:"cell(name)",fn:function(a){return[e("div",{staticClass:"text-left"},[e("kbd",{staticClass:"alert-info no-wrap",staticStyle:{"border-radius":"15px","font-weight":"700 !important"}},[e("b-icon",{attrs:{scale:"1.2",icon:"app-indicator"}}),t._v("  "+t._s(a.item.name)+"  ")],1),e("br"),e("small",{staticStyle:{"font-size":"11px"}},[e("div",{staticClass:"d-flex align-items-center",staticStyle:{"margin-top":"3px"}},[t._v("   "),e("b-icon",{attrs:{scale:"1.4",icon:"speedometer2"}}),t._v("  "),e("kbd",{staticClass:"alert-success",staticStyle:{"border-radius":"15px"}},[t._v(" "),e("b",[t._v(t._s(t.getServiceUsageValue(1,a.item.name,a.item)))]),t._v(" ")]),t._v("   "),e("b-icon",{attrs:{scale:"1.4",icon:"cpu"}}),t._v("  "),e("kbd",{staticClass:"alert-success",staticStyle:{"border-radius":"15px"}},[t._v(" "),e("b",[t._v(t._s(t.getServiceUsageValue(0,a.item.name,a.item)))]),t._v(" ")]),t._v("   "),e("b-icon",{attrs:{scale:"1.4",icon:"hdd"}}),t._v("  "),e("kbd",{staticClass:"alert-success",staticStyle:{"border-radius":"15px"}},[t._v(" "),e("b",[t._v(t._s(t.getServiceUsageValue(2,a.item.name,a.item)))]),t._v(" ")]),t._v("  "),e("b-icon",{attrs:{scale:"1.2",icon:"geo-alt"}}),t._v(" "),e("kbd",{staticClass:"alert-warning",staticStyle:{"border-radius":"15px"}},[t._v(" "),e("b",[t._v(t._s(a.item.instances))]),t._v(" ")])],1),e("span",{staticClass:"no-wrap",class:{"red-text":t.isLessThanTwoDays(t.labelForExpire(a.item.expire,a.item.height))}},[t._v("   "),e("b-icon",{attrs:{scale:"1.2",icon:"hourglass-split"}}),t._v(" "+t._s(t.labelForExpire(a.item.expire,a.item.height))+"   ")],1)])])]}},{key:"cell(show_details)",fn:function(a){return[e("a",{on:{click:function(e){return t.showLocations(a,t.tableconfig.active_marketplace.apps)}}},[a.detailsShowing?t._e():e("v-icon",{staticClass:"ml-1",attrs:{name:"chevron-down"}}),a.detailsShowing?e("v-icon",{staticClass:"ml-1",attrs:{name:"chevron-up"}}):t._e()],1)]}},{key:"row-details",fn:function(a){return[e("b-card",{staticClass:"mx-2"},[e("h3",{staticClass:"no-wrap"},[e("kbd",{staticClass:"alert-info d-flex",staticStyle:{"border-radius":"15px","font-family":"monospace","padding-right":"100%"}},[e("b-icon",{staticClass:"ml-1",attrs:{scale:"1",icon:"info-square"}}),t._v("  Application Information ")],1)]),e("div",{staticClass:"ml-1"},[a.item.owner?e("list-entry",{attrs:{title:"Owner",data:a.item.owner}}):t._e(),a.item.hash?e("list-entry",{attrs:{title:"Hash",data:a.item.hash}}):t._e(),a.item.version>=5?e("div",[a.item.contacts.length>0?e("list-entry",{attrs:{title:"Contacts",data:JSON.stringify(a.item.contacts)}}):t._e(),a.item.geolocation.length?e("div",t._l(a.item.geolocation,(function(a){return e("div",{key:a},[e("list-entry",{attrs:{title:"Geolocation",data:t.getGeolocation(a)}})],1)})),0):e("div",[e("list-entry",{attrs:{title:"Continent",data:"All"}}),e("list-entry",{attrs:{title:"Country",data:"All"}}),e("list-entry",{attrs:{title:"Region",data:"All"}})],1)],1):t._e(),a.item.instances?e("list-entry",{attrs:{title:"Instances",data:a.item.instances.toString()}}):t._e(),e("list-entry",{attrs:{title:"Expires in",data:t.labelForExpire(a.item.expire,a.item.height)}}),a.item?.nodes?.length>0?e("list-entry",{attrs:{title:"Enterprise Nodes",data:a.item.nodes?a.item.nodes.toString():"Not scoped"}}):t._e(),e("list-entry",{attrs:{title:"Static IP",data:a.item.staticip?"Yes, Running only on Static IP nodes":"No, Running on all nodes"}})],1),a.item.version<=3?e("div",[e("b-card",[e("list-entry",{attrs:{title:"Repository",data:a.item.repotag}}),e("list-entry",{attrs:{title:"Custom Domains",data:a.item.domains.toString()||"none"}}),e("list-entry",{attrs:{title:"Automatic Domains",data:t.constructAutomaticDomains(a.item.ports,void 0,a.item.name).toString()}}),e("list-entry",{attrs:{title:"Ports",data:a.item.ports.toString()}}),e("list-entry",{attrs:{title:"Container Ports",data:a.item.containerPorts.toString()}}),e("list-entry",{attrs:{title:"Container Data",data:a.item.containerData}}),e("list-entry",{attrs:{title:"Enviroment Parameters",data:a.item.enviromentParameters.length>0?a.item.enviromentParameters.toString():"none"}}),e("list-entry",{attrs:{title:"Commands",data:a.item.commands.length>0?a.item.commands.toString():"none"}}),a.item.tiered?e("div",[e("list-entry",{attrs:{title:"CPU Cumulus",data:`${a.item.cpubasic} vCore`}}),e("list-entry",{attrs:{title:"CPU Nimbus",data:`${a.item.cpusuper} vCore`}}),e("list-entry",{attrs:{title:"CPU Stratus",data:`${a.item.cpubamf} vCore`}}),e("list-entry",{attrs:{title:"RAM Cumulus",data:`${a.item.rambasic} MB`}}),e("list-entry",{attrs:{title:"RAM Nimbus",data:`${a.item.ramsuper} MB`}}),e("list-entry",{attrs:{title:"RAM Stratus",data:`${a.item.rambamf} MB`}}),e("list-entry",{attrs:{title:"SSD Cumulus",data:`${a.item.hddbasic} GB`}}),e("list-entry",{attrs:{title:"SSD Nimbus",data:`${a.item.hddsuper} GB`}}),e("list-entry",{attrs:{title:"SSD Stratus",data:`${a.item.hddbamf} GB`}})],1):e("div",[e("list-entry",{attrs:{title:"CPU",data:`${a.item.cpu} vCore`}}),e("list-entry",{attrs:{title:"RAM",data:`${a.item.ram} MB`}}),e("list-entry",{attrs:{title:"SSD",data:`${a.item.hdd} GB`}})],1)],1)],1):e("div",[e("h3",{staticClass:"no-wrap"},[e("kbd",{staticClass:"alert-info d-flex",staticStyle:{"border-radius":"15px","font-family":"monospace","padding-right":"100%"}},[e("b-icon",{staticClass:"ml-1",attrs:{scale:"1",icon:"box"}}),t._v("  Composition ")],1)]),t._l(a.item.compose,(function(i,s){return e("b-card",{key:s,staticClass:"mb-0"},[e("h3",{staticClass:"no-wrap"},[e("kbd",{staticClass:"alert-success d-flex",staticStyle:{"border-radius":"15px","font-family":"monospace","max-width":"500px"}},[e("b-icon",{staticClass:"ml-1",attrs:{scale:"1",icon:"menu-app-fill"}}),t._v("  "+t._s(i.name)+" ")],1)]),e("div",{staticClass:"ml-1"},[e("list-entry",{attrs:{title:"Name",data:i.name}}),e("list-entry",{attrs:{title:"Description",data:i.description}}),e("list-entry",{attrs:{title:"Repository",data:i.repotag}}),e("list-entry",{attrs:{title:"Repository Authentication",data:i.repoauth?"Content Encrypted":"Public"}}),e("list-entry",{attrs:{title:"Custom Domains",data:i.domains.toString()||"none"}}),e("list-entry",{attrs:{title:"Automatic Domains",data:t.constructAutomaticDomains(i.ports,i.name,a.item.name,s).toString()}}),e("list-entry",{attrs:{title:"Ports",data:i.ports.toString()}}),e("list-entry",{attrs:{title:"Container Ports",data:i.containerPorts.toString()}}),e("list-entry",{attrs:{title:"Container Data",data:i.containerData}}),e("list-entry",{attrs:{title:"Environment Parameters",data:i.environmentParameters.length>0?i.environmentParameters.toString():"none"}}),e("list-entry",{attrs:{title:"Commands",data:i.commands.length>0?i.commands.toString():"none"}}),e("list-entry",{attrs:{title:"Secret Environment Parameters",data:i.secrets?"Content Encrypted":"none"}}),i.tiered?e("div",[e("list-entry",{attrs:{title:"CPU Cumulus",data:`${i.cpubasic} vCore`}}),e("list-entry",{attrs:{title:"CPU Nimbus",data:`${i.cpusuper} vCore`}}),e("list-entry",{attrs:{title:"CPU Stratus",data:`${i.cpubamf} vCore`}}),e("list-entry",{attrs:{title:"RAM Cumulus",data:`${i.rambasic} MB`}}),e("list-entry",{attrs:{title:"RAM Nimbus",data:`${i.ramsuper} MB`}}),e("list-entry",{attrs:{title:"RAM Stratus",data:`${i.rambamf} MB`}}),e("list-entry",{attrs:{title:"SSD Cumulus",data:`${i.hddbasic} GB`}}),e("list-entry",{attrs:{title:"SSD Nimbus",data:`${i.hddsuper} GB`}}),e("list-entry",{attrs:{title:"SSD Stratus",data:`${i.hddbamf} GB`}})],1):e("div",[e("list-entry",{attrs:{title:"CPU",data:`${i.cpu} vCore`}}),e("list-entry",{attrs:{title:"RAM",data:`${i.ram} MB`}}),e("list-entry",{attrs:{title:"SSD",data:`${i.hdd} GB`}})],1)],1)])}))],2),e("h3",[e("kbd",{staticClass:"alert-info d-flex",staticStyle:{"border-radius":"15px","font-family":"monospace","padding-right":"100%"}},[e("b-icon",{attrs:{scale:"1",icon:"globe"}}),t._v("  Locations ")],1)]),e("b-row",[e("b-col",{staticClass:"my-1",attrs:{md:"4",sm:"4"}},[e("b-form-group",{staticClass:"mb-0"},[e("label",{staticClass:"d-inline-block text-left mr-50"},[t._v("Per page")]),e("b-form-select",{staticClass:"w-50",attrs:{id:"perPageSelect",size:"sm",options:t.appLocationOptions.pageOptions},model:{value:t.appLocationOptions.perPage,callback:function(e){t.$set(t.appLocationOptions,"perPage",e)},expression:"appLocationOptions.perPage"}})],1)],1),e("b-col",{staticClass:"my-1",attrs:{md:"8"}},[e("b-form-group",{staticClass:"mb-0",attrs:{label:"Filter","label-cols-sm":"1","label-align-sm":"right","label-for":"filterInput"}},[e("b-input-group",{attrs:{size:"sm"}},[e("b-form-input",{attrs:{id:"filterInput",type:"search",placeholder:"Type to Search"},model:{value:t.appLocationOptions.filter,callback:function(e){t.$set(t.appLocationOptions,"filter",e)},expression:"appLocationOptions.filter"}}),e("b-input-group-append",[e("b-button",{attrs:{disabled:!t.appLocationOptions.filter},on:{click:function(e){t.appLocationOptions.filter=""}}},[t._v(" Clear ")])],1)],1)],1)],1),e("b-col",{attrs:{cols:"12"}},[e("b-table",{staticClass:"locations-table",attrs:{borderless:"","per-page":t.appLocationOptions.perPage,"current-page":t.appLocationOptions.currentPage,items:t.appLocations,fields:t.appLocationFields,"thead-class":"d-none",filter:t.appLocationOptions.filter,"show-empty":"","sort-icon-left":"","empty-text":"No instances found.."},scopedSlots:t._u([{key:"cell(ip)",fn:function(a){return[e("div",{staticClass:"no-wrap"},[e("kbd",{staticClass:"alert-info",staticStyle:{"border-radius":"15px"}},[e("b-icon",{attrs:{scale:"1.1",icon:"hdd-network-fill"}})],1),t._v("  "),e("kbd",{staticClass:"alert-success no-wrap",staticStyle:{"border-radius":"15px"}},[e("b",[t._v("  "+t._s(a.item.ip)+"  ")])])])]}},{key:"cell(visit)",fn:function(i){return[e("div",{staticClass:"d-flex justify-content-end"},[e("b-button",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.top",value:"Visit App",expression:"'Visit App'",modifiers:{hover:!0,top:!0}}],staticClass:"mr-1",attrs:{size:"sm",pill:"",variant:"dark"},on:{click:function(e){t.openApp(a.item.name,i.item.ip.split(":")[0],t.getProperPort(a.item))}}},[e("b-icon",{attrs:{scale:"1",icon:"door-open"}}),t._v(" App ")],1),e("b-button",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.top",value:"Visit FluxNode",expression:"'Visit FluxNode'",modifiers:{hover:!0,top:!0}}],staticClass:"mr-0",attrs:{size:"sm",pill:"",variant:"outline-dark"},on:{click:function(e){t.openNodeFluxOS(i.item.ip.split(":")[0],i.item.ip.split(":")[1]?+i.item.ip.split(":")[1]-1:16126)}}},[e("b-icon",{attrs:{scale:"1",icon:"house-door-fill"}}),t._v(" FluxNode ")],1),t._v("   ")],1)]}}],null,!0)})],1),e("b-col",{attrs:{cols:"12"}},[e("b-pagination",{staticClass:"my-0 mt-1",attrs:{"total-rows":t.appLocationOptions.totalRows,"per-page":t.appLocationOptions.perPage,align:"center",size:"sm"},model:{value:t.appLocationOptions.currentPage,callback:function(e){t.$set(t.appLocationOptions,"currentPage",e)},expression:"appLocationOptions.currentPage"}})],1)],1)],1)]}}],null,!1,3275809554)})],1)],1),e("b-col",{attrs:{cols:"12"}},[e("b-pagination",{staticClass:"my-0",attrs:{"total-rows":t.tableconfig.active_marketplace?.apps?.length||1,"per-page":t.tableconfig.active_marketplace.perPage,align:"center",size:"sm"},model:{value:t.tableconfig.active_marketplace.currentPage,callback:function(e){t.$set(t.tableconfig.active_marketplace,"currentPage",e)},expression:"tableconfig.active_marketplace.currentPage"}})],1)],1)],1)],1)],1),t.managedApplication?e("div",[e("management",{attrs:{"app-name":t.managedApplication,global:!0,"installed-apps":[]},on:{back:function(e){return t.clearManagedApplication()}}})],1):t._e()],1)},s=[],n=(a(70560),a(58887)),o=a(51015),r=a(16521),l=a(50725),c=a(86855),p=a(26253),m=a(15193),d=a(66126),u=a(5870),b=a(20266),g=a(20629),f=a(34547),v=a(51748),y=a(87156),h=a(91587),C=a(43672),S=a(27616);const _=a(80129),x=a(57306),k={components:{BTabs:n.M,BTab:o.L,BTable:r.h,BCol:l.l,BCard:c._,BRow:p.T,BButton:m.T,BOverlay:d.X,ListEntry:v.Z,ConfirmDialog:y.Z,Management:h.Z,ToastificationContent:f.Z},directives:{"b-tooltip":u.o,Ripple:b.Z},data(){return{managedApplication:"",daemonBlockCount:-1,appLocations:[],appLocationFields:[{key:"ip",label:"Locations",thStyle:{width:"30%"}},{key:"visit",label:""}],myappLocations:[],myappLocationFields:[{key:"ip",label:"IP Address",thStyle:{width:"30%"}},{key:"visit",label:""}],tableconfig:{active:{apps:[],fields:[{key:"show_details",label:""},{key:"name",label:"Name",sortable:!0,thStyle:{width:"18%"}},{key:"description",label:"Description",thStyle:{width:"75%"}},{key:"Management",label:"",thStyle:{width:"3%"}},{key:"visit",label:"",class:"text-center",thStyle:{width:"3%"}}],loading:!0,sortBy:"",sortDesc:!1,sortDirection:"asc",filter:"",filterOn:[],perPage:25,pageOptions:[5,10,25,50,100],currentPage:1,totalRows:1},active_marketplace:{apps:[],fields:[{key:"show_details",label:""},{key:"name",label:"Name",sortable:!0,thStyle:{width:"18%"}},{key:"description",label:"Description",thStyle:{width:"75%"}},{key:"Management",label:"",thStyle:{width:"3%"}},{key:"visit",label:"",class:"text-center",thStyle:{width:"3%"}}],loading:!0,sortBy:"",sortDesc:!1,sortDirection:"asc",filter:"",filterOn:[],perPage:25,pageOptions:[5,10,25,50,100],currentPage:1,totalRows:1}},allApps:[],appLocationOptions:{perPage:5,pageOptions:[5,10,25,50,100],currentPage:1,totalRows:1,filterOn:[],filter:""}}},computed:{...(0,g.rn)("flux",["config","userconfig","privilege"]),myGlobalApps(){const t=localStorage.getItem("zelidauth"),e=_.parse(t);return this.allApps?this.allApps.filter((t=>t.owner===e.zelid)):[]},isLoggedIn(){const t=localStorage.getItem("zelidauth"),e=_.parse(t);return!!e.zelid}},mounted(){this.appsGetListGlobalApps(),this.getDaemonBlockCount()},methods:{getServiceUsageValue(t,e,a){if("undefined"===typeof a?.compose)return this.usage=[+a.ram,+a.cpu,+a.hdd],this.usage[t];const i=this.getServiceUsage(e,a.compose);return i[t]},getServiceUsage(t,e){let a=0,i=0,s=0;return e.forEach((t=>{a+=t.ram,i+=t.cpu,s+=t.hdd})),console.log(`Info: ${a}, ${i}, ${s}`),[a,i,s]},isLessThanTwoDays(t){const e=t?.split(",").map((t=>t.trim()));let a=0,i=0,s=0;for(const o of e)o.includes("days")?a=parseInt(o,10):o.includes("hours")?i=parseInt(o,10):o.includes("minutes")&&(s=parseInt(o,10));const n=24*a*60+60*i+s;return n<2880},minutesToString(t){let e=60*t;const a={day:86400,hour:3600,minute:60,second:1},i=[];for(const s in a){const t=Math.floor(e/a[s]);1===t&&i.push(` ${t} ${s}`),t>=2&&i.push(` ${t} ${s}s`),e%=a[s]}return i},labelForExpire(t,e){if(-1===this.daemonBlockCount)return"Not possible to calculate expiration";const a=t||22e3,i=e+a-this.daemonBlockCount;if(i<1)return"Application Expired";const s=2*i,n=this.minutesToString(s);return n.length>2?`${n[0]}, ${n[1]}, ${n[2]}`:n.length>1?`${n[0]}, ${n[1]}`:`${n[0]}`},async getDaemonBlockCount(){const t=await S.Z.getBlockCount();"success"===t.data.status&&(this.daemonBlockCount=t.data.data)},openAppManagement(t){this.managedApplication=t},clearManagedApplication(){this.managedApplication=""},async appsGetListGlobalApps(){this.tableconfig.active.loading=!0;const t=await C.Z.globalAppSpecifications();console.log(t),this.allApps=t.data.data,this.tableconfig.active.apps=this.allApps.filter((t=>{if(t.name.length>=14){const e=t.name.substring(t.name.length-13,t.name.length),a=Number(e);if(!Number.isNaN(a))return!1}return!0})),this.tableconfig.active_marketplace.apps=this.allApps.filter((t=>{if(t.name.length>=14){const e=t.name.substring(t.name.length-13,t.name.length),a=Number(e);if(!Number.isNaN(a))return!0}return!1})),this.tableconfig.active.loading=!1,this.loadPermanentMessages()},async loadPermanentMessages(){try{const t=localStorage.getItem("zelidauth"),e=_.parse(t);if(!e.zelid)return void(this.tableconfig.my_expired.loading=!1);const a=await C.Z.permanentMessagesOwner(e.zelid),i=[];for(const n of a.data.data){const t=i.find((t=>t.appSpecifications.name===n.appSpecifications.name));if(t){if(n.height>t.height){const t=i.findIndex((t=>t.appSpecifications.name===n.appSpecifications.name));t>-1&&(i.splice(t,1),i.push(n))}}else i.push(n)}const s=[];for(const n of i){const t=this.allApps.find((t=>t.name.toLowerCase()===n.appSpecifications.name.toLowerCase()));if(!t){const t=n.appSpecifications;s.push(t)}}this.tableconfig.my_expired.apps=s,this.tableconfig.my_expired.loading=!1}catch(t){console.log(t)}},redeployApp(t,e=!1){const a=t;e&&(a.name+="XXX",a.name+=Date.now().toString().slice(-5));const i=localStorage.getItem("zelidauth"),s=_.parse(i);s?a.owner=s.zelid:e&&(a.owner=""),this.$router.replace({name:"apps-registerapp",params:{appspecs:JSON.stringify(t)}})},copyToClipboard(t){const e=JSON.parse(t);delete e._showDetails;const a=JSON.stringify(e),i=document.createElement("textarea");i.value=a,i.setAttribute("readonly",""),i.style.position="absolute",i.style.left="-9999px",document.body.appendChild(i),i.select(),document.execCommand("copy"),document.body.removeChild(i),this.showToast("success","Application Specifications copied to Clipboard")},openApp(t,e,a){if(console.log(t,e,a),a&&e){const t=e,i=a,s=`http://${t}:${i}`;this.openSite(s)}else this.showToast("danger","Unable to open App :(, App does not have a port.")},getProperPort(t){if(t.port)return t.port;if(t.ports)return t.ports[0];for(let e=0;e{this.showToast("danger",t.message||t)}));if(console.log(e),"success"===e.data.status){const a=e.data.data,i=a[0];if(i){const e=`https://${t}.app.runonflux.io`;this.openSite(e)}else this.showToast("danger","Application is awaiting launching...")}else this.showToast("danger",e.data.data.message||e.data.data)},openSite(t){const e=window.open(t,"_blank");e.focus()},tabChanged(){this.tableconfig.active.apps.forEach((t=>{this.$set(t,"_showDetails",!1)})),this.tableconfig.active_marketplace.apps.forEach((t=>{this.$set(t,"_showDetails",!1)})),this.appLocations=[]},showLocations(t,e){t.detailsShowing?t.toggleDetails():(e.forEach((t=>{this.$set(t,"_showDetails",!1)})),this.$nextTick((()=>{t.toggleDetails(),this.loadLocations(t)})))},async loadLocations(t){console.log(t),this.appLocations=[];const e=await C.Z.getAppLocation(t.item.name).catch((t=>{this.showToast("danger",t.message||t)}));if(console.log(e),"success"===e.data.status){const t=e.data.data;this.appLocations=t}},showToast(t,e,a="InfoIcon"){this.$toast({component:f.Z,props:{title:e,icon:a,variant:t}})},constructAutomaticDomains(t,e="",a,i=0){const s=a.toLowerCase(),n=e.toLowerCase();if(!n){const e=[];0===i&&e.push(`${s}.app.runonflux.io`);for(let a=0;at.code===e))||{name:"ALL"};return`Continent: ${a.name||"Unkown"}`}if(t.startsWith("b")){const e=t.slice(1),a=x.countries.find((t=>t.code===e))||{name:"ALL"};return`Country: ${a.name||"Unkown"}`}if(t.startsWith("ac")){const e=t.slice(2),a=e.split("_"),i=a[0],s=a[1],n=a[2],o=x.continents.find((t=>t.code===i))||{name:"ALL"},r=x.countries.find((t=>t.code===s))||{name:"ALL"};let l=`Allowed location: Continent: ${o.name}`;return s&&(l+=`, Country: ${r.name}`),n&&(l+=`, Region: ${n}`),l}if(t.startsWith("a!c")){const e=t.slice(3),a=e.split("_"),i=a[0],s=a[1],n=a[2],o=x.continents.find((t=>t.code===i))||{name:"ALL"},r=x.countries.find((t=>t.code===s))||{name:"ALL"};let l=`Forbidden location: Continent: ${o.name}`;return s&&(l+=`, Country: ${r.name}`),n&&(l+=`, Region: ${n}`),l}return"All locations allowed"}}},w=k;var $=a(1001),P=(0,$.Z)(w,i,s,!1,null,null,null);const A=P.exports}}]); \ No newline at end of file diff --git a/HomeUI/dist/js/2295.js b/HomeUI/dist/js/2295.js index cd5d65e98..75389cc4f 100644 --- a/HomeUI/dist/js/2295.js +++ b/HomeUI/dist/js/2295.js @@ -1 +1 @@ -"use strict";(globalThis["webpackChunkflux"]=globalThis["webpackChunkflux"]||[]).push([[2295],{246:(t,a,s)=>{s.d(a,{Z:()=>g});var o=function(){var t=this,a=t._self._c;return a("b-img",{attrs:{src:"dark"===t.skin?t.appLogoImageDark:t.appLogoImage,alt:"logo"}})},e=[],n=s(98156),r=s(37307),p=s(68934);const i={components:{BImg:n.s},setup(){const{skin:t}=(0,r.Z)(),{appName:a,appLogoImageDark:s,appLogoImage:o}=p.$themeConfig.app;return{skin:t,appName:a,appLogoImage:o,appLogoImageDark:s}}},l=i;var m=s(1001),c=(0,m.Z)(l,o,e,!1,null,null,null);const g=c.exports},42295:(t,a,s)=>{s.r(a),s.d(a,{default:()=>d});var o=function(){var t=this,a=t._self._c;return a("div",{staticClass:"misc-wrapper"},[a("b-link",{staticClass:"brand-logo",staticStyle:{height:"100px"}},[a("vuexy-logo")],1),a("div",{staticClass:"misc-inner p-2 p-sm-3"},[a("div",{staticClass:"w-100 text-center"},[a("h2",{staticClass:"mb-1"},[t._v(" Your application payment was completed! ")]),a("p",{staticClass:"mb-2"},[t._v(" It can take up to 30 minutes for the payment be broadcasted/processed on the Flux network. ")]),a("b-button",{staticClass:"mb-2 btn-sm-block",attrs:{variant:"primary",to:{path:"/"}}},[t._v(" Back to home ")]),a("b-img",{attrs:{fluid:"",src:t.imgUrl,alt:"Payment Completed"}})],1)])],1)},e=[],n=s(67347),r=s(15193),p=s(98156),i=s(246),l=s(73507);const m={components:{VuexyLogo:i.Z,BLink:n.we,BButton:r.T,BImg:p.s},data(){return{downImg:s(94640)}},computed:{imgUrl(){return"dark"===l.Z.state.appConfig.layout.skin?(this.downImg=s(24686),this.downImg):this.downImg}}},c=m;var g=s(1001),u=(0,g.Z)(c,o,e,!1,null,null,null);const d=u.exports},24686:(t,a,s)=>{t.exports=s.p+"img/error-dark.svg"},94640:(t,a,s)=>{t.exports=s.p+"img/error.svg"}}]); \ No newline at end of file +"use strict";(self["webpackChunkflux"]=self["webpackChunkflux"]||[]).push([[2295],{246:(t,a,s)=>{s.d(a,{Z:()=>g});var e=function(){var t=this,a=t._self._c;return a("b-img",{attrs:{src:"dark"===t.skin?t.appLogoImageDark:t.appLogoImage,alt:"logo"}})},o=[],n=s(98156),r=s(37307),p=s(68934);const i={components:{BImg:n.s},setup(){const{skin:t}=(0,r.Z)(),{appName:a,appLogoImageDark:s,appLogoImage:e}=p.$themeConfig.app;return{skin:t,appName:a,appLogoImage:e,appLogoImageDark:s}}},l=i;var m=s(1001),c=(0,m.Z)(l,e,o,!1,null,null,null);const g=c.exports},42295:(t,a,s)=>{s.r(a),s.d(a,{default:()=>d});var e=function(){var t=this,a=t._self._c;return a("div",{staticClass:"misc-wrapper"},[a("b-link",{staticClass:"brand-logo",staticStyle:{height:"100px"}},[a("vuexy-logo")],1),a("div",{staticClass:"misc-inner p-2 p-sm-3"},[a("div",{staticClass:"w-100 text-center"},[a("h2",{staticClass:"mb-1"},[t._v(" Your application payment was completed! ")]),a("p",{staticClass:"mb-2"},[t._v(" It can take up to 30 minutes for the payment be broadcasted/processed on the Flux network. ")]),a("b-button",{staticClass:"mb-2 btn-sm-block",attrs:{variant:"primary",to:{path:"/"}}},[t._v(" Back to home ")]),a("b-img",{attrs:{fluid:"",src:t.imgUrl,alt:"Payment Completed"}})],1)])],1)},o=[],n=s(67347),r=s(15193),p=s(98156),i=s(246),l=s(73507);const m={components:{VuexyLogo:i.Z,BLink:n.we,BButton:r.T,BImg:p.s},data(){return{downImg:s(94640)}},computed:{imgUrl(){return"dark"===l.Z.state.appConfig.layout.skin?(this.downImg=s(24686),this.downImg):this.downImg}}},c=m;var g=s(1001),u=(0,g.Z)(c,e,o,!1,null,null,null);const d=u.exports},24686:(t,a,s)=>{t.exports=s.p+"img/error-dark.svg"},94640:(t,a,s)=>{t.exports=s.p+"img/error.svg"}}]); \ No newline at end of file diff --git a/HomeUI/dist/js/237.js b/HomeUI/dist/js/237.js index 9b2c4e1e1..1d35b9146 100644 --- a/HomeUI/dist/js/237.js +++ b/HomeUI/dist/js/237.js @@ -1 +1 @@ -"use strict";(globalThis["webpackChunkflux"]=globalThis["webpackChunkflux"]||[]).push([[237],{34547:(t,e,a)=>{a.d(e,{Z:()=>u});var n=function(){var t=this,e=t._self._c;return e("div",{staticClass:"toastification"},[e("div",{staticClass:"d-flex align-items-start"},[e("b-avatar",{staticClass:"mr-75 flex-shrink-0",attrs:{variant:t.variant,size:"1.8rem"}},[e("feather-icon",{attrs:{icon:t.icon,size:"15"}})],1),e("div",{staticClass:"d-flex flex-grow-1"},[e("div",[t.title?e("h5",{staticClass:"mb-0 font-weight-bolder toastification-title",class:`text-${t.variant}`,domProps:{textContent:t._s(t.title)}}):t._e(),t.text?e("small",{staticClass:"d-inline-block text-body",domProps:{textContent:t._s(t.text)}}):t._e()]),e("span",{staticClass:"cursor-pointer toastification-close-icon ml-auto",on:{click:function(e){return t.$emit("close-toast")}}},[t.hideClose?t._e():e("feather-icon",{staticClass:"text-body",attrs:{icon:"XIcon"}})],1)])],1)])},r=[],s=a(47389);const o={components:{BAvatar:s.SH},props:{variant:{type:String,default:"primary"},icon:{type:String,default:null},title:{type:String,default:null},text:{type:String,default:null},hideClose:{type:Boolean,default:!1}}},i=o;var d=a(1001),l=(0,d.Z)(i,n,r,!1,null,"22d964ca",null);const u=l.exports},60237:(t,e,a)=>{a.r(e),a.d(e,{default:()=>v});var n=function(){var t=this,e=t._self._c;return e("b-overlay",{attrs:{show:t.addressLoading,variant:"transparent",blur:"5px"}},[e("b-card",[e("b-card-text",[t._v(" Please paste a transparent Flux address below to display information about it. ")]),e("b-form-input",{attrs:{placeholder:"FLUX Address"},model:{value:t.address,callback:function(e){t.address=e},expression:"address"}}),e("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"my-1",attrs:{variant:"outline-primary",size:"md"},on:{click:t.fluxValidateAddress}},[t._v(" Validate Address ")]),t.callResponse.data?e("b-form-textarea",{attrs:{plaintext:"","no-resize":"",rows:"30",value:t.callResponse.data}}):t._e()],1)],1)},r=[],s=a(86855),o=a(64206),i=a(15193),d=a(22183),l=a(333),u=a(66126),c=a(34547),g=a(20266),m=a(27616);const h={components:{BCard:s._,BCardText:o.j,BButton:i.T,BFormInput:d.e,BFormTextarea:l.y,BOverlay:u.X,ToastificationContent:c.Z},directives:{Ripple:g.Z},data(){return{address:"",callResponse:{status:"",data:""},addressLoading:!1}},methods:{async fluxValidateAddress(){this.addressLoading=!0;const t=localStorage.getItem("zelidauth"),e=await m.Z.validateAddress(t,this.address);"error"===e.data.status?this.$toast({component:c.Z,props:{title:e.data.data.message||e.data.data,icon:"InfoIcon",variant:"danger"}}):(this.callResponse.status=e.data.status,this.callResponse.data=JSON.stringify(e.data.data,void 0,4)),this.addressLoading=!1}}},p=h;var f=a(1001),Z=(0,f.Z)(p,n,r,!1,null,null,null);const v=Z.exports},27616:(t,e,a)=>{a.d(e,{Z:()=>r});var n=a(80914);const r={help(){return(0,n.Z)().get("/daemon/help")},helpSpecific(t){return(0,n.Z)().get(`/daemon/help/${t}`)},getInfo(){return(0,n.Z)().get("/daemon/getinfo")},getFluxNodeStatus(){return(0,n.Z)().get("/daemon/getzelnodestatus")},getRawTransaction(t,e){return(0,n.Z)().get(`/daemon/getrawtransaction/${t}/${e}`)},listFluxNodes(){return(0,n.Z)().get("/daemon/listzelnodes")},viewDeterministicFluxNodeList(){return(0,n.Z)().get("/daemon/viewdeterministiczelnodelist")},getFluxNodeCount(){return(0,n.Z)().get("/daemon/getzelnodecount")},getStartList(){return(0,n.Z)().get("/daemon/getstartlist")},getDOSList(){return(0,n.Z)().get("/daemon/getdoslist")},fluxCurrentWinner(){return(0,n.Z)().get("/daemon/fluxcurrentwinner")},getBenchmarks(){return(0,n.Z)().get("/daemon/getbenchmarks")},getBenchStatus(){return(0,n.Z)().get("/daemon/getbenchstatus")},startBenchmark(t){return(0,n.Z)().get("/daemon/startbenchmark",{headers:{zelidauth:t}})},stopBenchmark(t){return(0,n.Z)().get("/daemon/stopbenchmark",{headers:{zelidauth:t}})},getBlockCount(){return(0,n.Z)().get("/daemon/getBlockCount")},getBlockchainInfo(){return(0,n.Z)().get("/daemon/getblockchaininfo")},getMiningInfo(){return(0,n.Z)().get("/daemon/getmininginfo")},getNetworkInfo(){return(0,n.Z)().get("/daemon/getnetworkinfo")},validateAddress(t,e){return(0,n.Z)().get(`/daemon/validateaddress/${e}`,{headers:{zelidauth:t}})},getWalletInfo(t){return(0,n.Z)().get("/daemon/getwalletinfo",{headers:{zelidauth:t}})},listFluxNodeConf(t){return(0,n.Z)().get("/daemon/listzelnodeconf",{headers:{zelidauth:t}})},start(t){return(0,n.Z)().get("/daemon/start",{headers:{zelidauth:t}})},restart(t){return(0,n.Z)().get("/daemon/restart",{headers:{zelidauth:t}})},stopDaemon(t){return(0,n.Z)().get("/daemon/stop",{headers:{zelidauth:t}})},rescanDaemon(t,e){return(0,n.Z)().get(`/daemon/rescanblockchain/${e}`,{headers:{zelidauth:t}})},getBlock(t,e){return(0,n.Z)().get(`/daemon/getblock/${t}/${e}`)},tailDaemonDebug(t){return(0,n.Z)().get("/flux/taildaemondebug",{headers:{zelidauth:t}})},justAPI(){return(0,n.Z)()},cancelToken(){return n.S}}}}]); \ No newline at end of file +"use strict";(self["webpackChunkflux"]=self["webpackChunkflux"]||[]).push([[237],{34547:(t,e,a)=>{a.d(e,{Z:()=>u});var n=function(){var t=this,e=t._self._c;return e("div",{staticClass:"toastification"},[e("div",{staticClass:"d-flex align-items-start"},[e("b-avatar",{staticClass:"mr-75 flex-shrink-0",attrs:{variant:t.variant,size:"1.8rem"}},[e("feather-icon",{attrs:{icon:t.icon,size:"15"}})],1),e("div",{staticClass:"d-flex flex-grow-1"},[e("div",[t.title?e("h5",{staticClass:"mb-0 font-weight-bolder toastification-title",class:`text-${t.variant}`,domProps:{textContent:t._s(t.title)}}):t._e(),t.text?e("small",{staticClass:"d-inline-block text-body",domProps:{textContent:t._s(t.text)}}):t._e()]),e("span",{staticClass:"cursor-pointer toastification-close-icon ml-auto",on:{click:function(e){return t.$emit("close-toast")}}},[t.hideClose?t._e():e("feather-icon",{staticClass:"text-body",attrs:{icon:"XIcon"}})],1)])],1)])},r=[],s=a(47389);const o={components:{BAvatar:s.SH},props:{variant:{type:String,default:"primary"},icon:{type:String,default:null},title:{type:String,default:null},text:{type:String,default:null},hideClose:{type:Boolean,default:!1}}},i=o;var d=a(1001),l=(0,d.Z)(i,n,r,!1,null,"22d964ca",null);const u=l.exports},60237:(t,e,a)=>{a.r(e),a.d(e,{default:()=>v});var n=function(){var t=this,e=t._self._c;return e("b-overlay",{attrs:{show:t.addressLoading,variant:"transparent",blur:"5px"}},[e("b-card",[e("b-card-text",[t._v(" Please paste a transparent Flux address below to display information about it. ")]),e("b-form-input",{attrs:{placeholder:"FLUX Address"},model:{value:t.address,callback:function(e){t.address=e},expression:"address"}}),e("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"my-1",attrs:{variant:"outline-primary",size:"md"},on:{click:t.fluxValidateAddress}},[t._v(" Validate Address ")]),t.callResponse.data?e("b-form-textarea",{attrs:{plaintext:"","no-resize":"",rows:"30",value:t.callResponse.data}}):t._e()],1)],1)},r=[],s=a(86855),o=a(64206),i=a(15193),d=a(22183),l=a(333),u=a(66126),c=a(34547),g=a(20266),m=a(27616);const h={components:{BCard:s._,BCardText:o.j,BButton:i.T,BFormInput:d.e,BFormTextarea:l.y,BOverlay:u.X,ToastificationContent:c.Z},directives:{Ripple:g.Z},data(){return{address:"",callResponse:{status:"",data:""},addressLoading:!1}},methods:{async fluxValidateAddress(){this.addressLoading=!0;const t=localStorage.getItem("zelidauth"),e=await m.Z.validateAddress(t,this.address);"error"===e.data.status?this.$toast({component:c.Z,props:{title:e.data.data.message||e.data.data,icon:"InfoIcon",variant:"danger"}}):(this.callResponse.status=e.data.status,this.callResponse.data=JSON.stringify(e.data.data,void 0,4)),this.addressLoading=!1}}},p=h;var f=a(1001),Z=(0,f.Z)(p,n,r,!1,null,null,null);const v=Z.exports},27616:(t,e,a)=>{a.d(e,{Z:()=>r});var n=a(80914);const r={help(){return(0,n.Z)().get("/daemon/help")},helpSpecific(t){return(0,n.Z)().get(`/daemon/help/${t}`)},getInfo(){return(0,n.Z)().get("/daemon/getinfo")},getFluxNodeStatus(){return(0,n.Z)().get("/daemon/getzelnodestatus")},getRawTransaction(t,e){return(0,n.Z)().get(`/daemon/getrawtransaction/${t}/${e}`)},listFluxNodes(){return(0,n.Z)().get("/daemon/listzelnodes")},viewDeterministicFluxNodeList(){return(0,n.Z)().get("/daemon/viewdeterministiczelnodelist")},getFluxNodeCount(){return(0,n.Z)().get("/daemon/getzelnodecount")},getStartList(){return(0,n.Z)().get("/daemon/getstartlist")},getDOSList(){return(0,n.Z)().get("/daemon/getdoslist")},fluxCurrentWinner(){return(0,n.Z)().get("/daemon/fluxcurrentwinner")},getBenchmarks(){return(0,n.Z)().get("/daemon/getbenchmarks")},getBenchStatus(){return(0,n.Z)().get("/daemon/getbenchstatus")},startBenchmark(t){return(0,n.Z)().get("/daemon/startbenchmark",{headers:{zelidauth:t}})},stopBenchmark(t){return(0,n.Z)().get("/daemon/stopbenchmark",{headers:{zelidauth:t}})},getBlockCount(){return(0,n.Z)().get("/daemon/getBlockCount")},getBlockchainInfo(){return(0,n.Z)().get("/daemon/getblockchaininfo")},getMiningInfo(){return(0,n.Z)().get("/daemon/getmininginfo")},getNetworkInfo(){return(0,n.Z)().get("/daemon/getnetworkinfo")},validateAddress(t,e){return(0,n.Z)().get(`/daemon/validateaddress/${e}`,{headers:{zelidauth:t}})},getWalletInfo(t){return(0,n.Z)().get("/daemon/getwalletinfo",{headers:{zelidauth:t}})},listFluxNodeConf(t){return(0,n.Z)().get("/daemon/listzelnodeconf",{headers:{zelidauth:t}})},start(t){return(0,n.Z)().get("/daemon/start",{headers:{zelidauth:t}})},restart(t){return(0,n.Z)().get("/daemon/restart",{headers:{zelidauth:t}})},stopDaemon(t){return(0,n.Z)().get("/daemon/stop",{headers:{zelidauth:t}})},rescanDaemon(t,e){return(0,n.Z)().get(`/daemon/rescanblockchain/${e}`,{headers:{zelidauth:t}})},getBlock(t,e){return(0,n.Z)().get(`/daemon/getblock/${t}/${e}`)},tailDaemonDebug(t){return(0,n.Z)().get("/flux/taildaemondebug",{headers:{zelidauth:t}})},justAPI(){return(0,n.Z)()},cancelToken(){return n.S}}}}]); \ No newline at end of file diff --git a/HomeUI/dist/js/2532.js b/HomeUI/dist/js/2532.js deleted file mode 100644 index 4f9a0f279..000000000 --- a/HomeUI/dist/js/2532.js +++ /dev/null @@ -1,86 +0,0 @@ -(globalThis["webpackChunkflux"]=globalThis["webpackChunkflux"]||[]).push([[2532],{18119:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>H});var n=function(){var e=this,t=e._self._c;return t("div",[t("b-card",{attrs:{title:"Welcome to Flux - The biggest decentralized computational network"}},[t("list-entry",{attrs:{title:"Dashboard",data:e.dashboard}}),t("list-entry",{attrs:{title:"Applications",data:e.applications}}),t("list-entry",{attrs:{title:"XDAO",data:e.xdao}}),t("list-entry",{attrs:{title:"Administration",data:e.administration}}),t("list-entry",{attrs:{title:"Node Status",data:e.getNodeStatusResponse.nodeStatus,variant:e.getNodeStatusResponse.class}})],1),"none"===e.privilege?t("b-card",[t("b-card-title",[e._v("Automated Login")]),t("dl",{staticClass:"row"},[t("dd",{staticClass:"col-sm-6"},[t("b-tabs",{attrs:{"content-class":"mt-0"}},[t("b-tab",{attrs:{title:"3rd Party Login",active:""}},[t("div",{staticClass:"ssoLogin"},[t("div",{attrs:{id:"ssoLoading"}},[t("b-spinner",{attrs:{variant:"primary"}}),t("div",[e._v(" Loading Sign In Options ")])],1),t("div",{staticStyle:{display:"none"},attrs:{id:"ssoLoggedIn"}},[t("b-spinner",{attrs:{variant:"primary"}}),t("div",[e._v(" Finishing Login Process ")])],1),t("div",{staticStyle:{display:"none"},attrs:{id:"ssoVerify"}},[t("b-button",{staticClass:"mb-2",attrs:{variant:"primary",type:"submit"},on:{click:e.cancelVerification}},[e._v(" Cancel Verification ")]),t("div",[t("b-spinner",{attrs:{variant:"primary"}}),t("div",[e._v(" Finishing Verification Process ")]),t("div",[t("i",[e._v("Please check email for verification link.")])])],1)],1),t("div",{attrs:{id:"firebaseui-auth-container"}})])]),t("b-tab",{attrs:{title:"Email/Password"}},[t("dl",{staticClass:"row"},[t("dd",{staticClass:"col-sm-12 mt-1"},[t("b-form",{ref:"emailLoginForm",staticClass:"mx-5",attrs:{id:"emailLoginForm"},on:{submit:function(e){e.preventDefault()}}},[t("b-row",[t("b-col",{attrs:{cols:"12"}},[t("b-form-group",{attrs:{label:"Email","label-for":"h-email","label-cols-md":"4"}},[t("b-form-input",{attrs:{id:"h-email",type:"email",placeholder:"Email...",required:""},model:{value:e.emailForm.email,callback:function(t){e.$set(e.emailForm,"email",t)},expression:"emailForm.email"}})],1)],1),t("b-col",{attrs:{cols:"12"}},[t("b-form-group",{attrs:{label:"Password","label-for":"h-password","label-cols-md":"4"}},[t("b-form-input",{attrs:{id:"h-password",type:"password",placeholder:"Password...",required:""},model:{value:e.emailForm.password,callback:function(t){e.$set(e.emailForm,"password",t)},expression:"emailForm.password"}})],1)],1),t("b-col",{attrs:{cols:"12"}},[t("b-form-group",{attrs:{"label-cols-md":"4"}},[t("b-button",{staticClass:"w-100",attrs:{type:"submit",variant:"primary"},on:{click:e.emailLogin}},[t("div",{staticStyle:{display:"none"},attrs:{id:"emailLoginProcessing"}},[t("b-spinner",{attrs:{variant:"secondary",small:""}})],1),t("div",{attrs:{id:"emailLoginExecute"}},[e._v(" Login ")])])],1)],1),t("b-col",{attrs:{cols:"12"}},[t("b-form-group",{attrs:{"label-cols-md":"4"}},[t("b-button",{directives:[{name:"b-modal",rawName:"v-b-modal.modal-prevent-closing",modifiers:{"modal-prevent-closing":!0}}],staticClass:"w-100",attrs:{id:"signUpButton",type:"submit",variant:"secondary"},on:{click:e.createAccount}},[e._v(" Sign Up ")])],1)],1)],1)],1),t("div",{staticClass:"text-center",staticStyle:{display:"none"},attrs:{id:"ssoEmailVerify"}},[t("b-button",{staticClass:"mb-2",attrs:{variant:"primary",type:"submit"},on:{click:e.cancelVerification}},[e._v(" Cancel Verification ")]),t("div",[t("b-spinner",{attrs:{variant:"primary"}}),t("div",[e._v(" Finishing Verification Process ")]),t("div",[t("i",[e._v("Please check email for verification link.")])])],1)],1)],1)])])],1)],1),t("dd",{staticClass:"col-sm-6"},[t("b-card-text",{staticClass:"text-center loginText"},[e._v(" Decentralized Login ")]),t("div",{staticClass:"loginRow"},[t("a",{attrs:{href:`zel:?action=sign&message=${e.loginPhrase}&icon=https%3A%2F%2Fraw.githubusercontent.com%2Frunonflux%2Fflux%2Fmaster%2FzelID.svg&callback=${e.callbackValue}`,title:"Login with Zelcore"},on:{click:e.initiateLoginWS}},[t("img",{staticClass:"walletIcon",attrs:{src:i(96358),alt:"Flux ID",height:"100%",width:"100%"}})]),t("a",{attrs:{title:"Login with SSP"},on:{click:e.initSSP}},[t("img",{staticClass:"walletIcon",attrs:{src:"dark"===e.skin?i(56070):i(58962),alt:"SSP",height:"100%",width:"100%"}})])]),t("div",{staticClass:"loginRow"},[t("a",{attrs:{title:"Login with WalletConnect"},on:{click:e.initWalletConnect}},[t("img",{staticClass:"walletIcon",attrs:{src:i(47622),alt:"WalletConnect",height:"100%",width:"100%"}})]),t("a",{attrs:{title:"Login with Metamask"},on:{click:e.initMetamask}},[t("img",{staticClass:"walletIcon",attrs:{src:i(28125),alt:"Metamask",height:"100%",width:"100%"}})])])],1)])],1):e._e(),"none"===e.privilege?t("b-card",[t("b-card-title",[e._v("Manual Login")]),t("dl",{staticClass:"row"},[t("dd",{staticClass:"col-sm-12"},[t("b-card-text",{staticClass:"text-center"},[e._v(" Sign the following message with any Flux ID / SSP Wallet ID / Bitcoin / Ethereum address ")]),t("br"),t("br"),t("b-form",{staticClass:"mx-5",on:{submit:function(e){e.preventDefault()}}},[t("b-row",[t("b-col",{attrs:{cols:"12"}},[t("b-form-group",{attrs:{label:"Message","label-for":"h-message","label-cols-md":"3"}},[t("b-form-input",{attrs:{id:"h-message",placeholder:"Insert Login Phrase"},model:{value:e.loginForm.loginPhrase,callback:function(t){e.$set(e.loginForm,"loginPhrase",t)},expression:"loginForm.loginPhrase"}})],1)],1),t("b-col",{attrs:{cols:"12"}},[t("b-form-group",{attrs:{label:"Address","label-for":"h-address","label-cols-md":"3"}},[t("b-form-input",{attrs:{id:"h-address",placeholder:"Insert Flux ID or Bitcoin address"},model:{value:e.loginForm.zelid,callback:function(t){e.$set(e.loginForm,"zelid",t)},expression:"loginForm.zelid"}})],1)],1),t("b-col",{attrs:{cols:"12"}},[t("b-form-group",{attrs:{label:"Signature","label-for":"h-signature","label-cols-md":"3"}},[t("b-form-input",{attrs:{id:"h-signature",placeholder:"Insert Signature"},model:{value:e.loginForm.signature,callback:function(t){e.$set(e.loginForm,"signature",t)},expression:"loginForm.signature"}})],1)],1),t("b-col",{attrs:{cols:"12"}},[t("b-form-group",{attrs:{"label-cols-md":"3"}},[t("b-button",{staticClass:"w-100",attrs:{type:"submit",variant:"primary"},on:{click:e.login}},[e._v(" Login ")])],1)],1)],1)],1)],1)])],1):e._e(),t("b-modal",{ref:"modal",attrs:{id:"modal-prevent-closing",title:"Create Flux SSO Account","header-bg-variant":"primary","title-class":"modal-title"},on:{show:e.resetModal,hidden:e.resetModal,ok:e.handleOk}},[t("form",{ref:"form",on:{submit:function(t){return t.stopPropagation(),t.preventDefault(),e.handleSubmit.apply(null,arguments)}}},[t("b-form-group",{attrs:{label:"Email","label-for":"email-input","invalid-feedback":"Email is required",state:e.emailState}},[t("b-form-input",{attrs:{id:"email-input",type:"email",state:e.emailState,required:""},model:{value:e.createSSOForm.email,callback:function(t){e.$set(e.createSSOForm,"email",t)},expression:"createSSOForm.email"}})],1),t("b-form-group",{attrs:{label:"Password","label-for":"pw1-input","invalid-feedback":"Password is required",state:e.pw1State}},[t("b-form-input",{attrs:{id:"pw1-input",type:"password",state:e.pw1State,required:""},model:{value:e.createSSOForm.pw1,callback:function(t){e.$set(e.createSSOForm,"pw1",t)},expression:"createSSOForm.pw1"}})],1),t("b-form-group",{attrs:{label:"Confirm Password","label-for":"pw2-input","invalid-feedback":"Password is required",state:e.pw2State}},[t("b-form-input",{attrs:{id:"pw2-input",type:"password",state:e.pw2State,required:""},model:{value:e.createSSOForm.pw2,callback:function(t){e.$set(e.createSSOForm,"pw2",t)},expression:"createSSOForm.pw2"}})],1)],1),t("div",{staticClass:"sso-tos"},[t("p",{staticStyle:{width:"75%"}},[e._v(" By continuing, you are indicating that you accept our "),t("a",{staticClass:"highlight",attrs:{href:"https://cdn.runonflux.io/Flux_Terms_of_Service.pdf",referrerpolicy:"no-referrer",target:"_blank",rel:"noopener noreferrer"}},[e._v(" Terms of Service")]),e._v(" and "),t("a",{staticClass:"highlight",attrs:{href:"https://runonflux.io/privacyPolicy",referrerpolicy:"no-referrer",target:"_blank",rel:"noopener noreferrer"}},[e._v(" Privacy Policy")]),e._v(". ")])])])],1)},a=[],r=i(86855),s=i(64206),o=i(49379),l=i(15193),c=i(54909),u=i(50725),d=i(26253),h=i(22183),f=i(46709),p=i(20629),g=i(38511),m=i(62693),v=i(94145),b=i(44866),y=(i(52141),i(97211)),w=i.n(y);i(73544),i(74997),i(4210),i(95634),i(86573);(function(){(function(){var e,t,n="function"==typeof Object.create?Object.create:function(e){function t(){}return t.prototype=e,new t};if("function"==typeof Object.setPrototypeOf)t=Object.setPrototypeOf;else{var a;e:{var r={xb:!0},s={};try{s.__proto__=r,a=s.xb;break e}catch(Ef){}a=!1}t=a?function(e,t){if(e.__proto__=t,e.__proto__!==t)throw new TypeError(e+" is not extensible");return e}:null}var o=t;function l(e,t){if(e.prototype=n(t.prototype),e.prototype.constructor=e,o)o(e,t);else for(var i in t)if("prototype"!=i)if(Object.defineProperties){var a=Object.getOwnPropertyDescriptor(t,i);a&&Object.defineProperty(e,i,a)}else e[i]=t[i];e.K=t.prototype}var c="function"==typeof Object.defineProperties?Object.defineProperty:function(e,t,i){e!=Array.prototype&&e!=Object.prototype&&(e[t]=i.value)},u="undefined"!=typeof window&&window===this?this:"undefined"!=typeof i.g&&null!=i.g?i.g:this;function d(e,t){if(t){var i=u;e=e.split(".");for(var n=0;nt&&(t=Math.max(t+n,0));t>>0),_=0;function A(e,t,i){return e.call.apply(e.bind,arguments)}function P(e,t,i){if(!e)throw Error();if(2=arguments.length?Array.prototype.slice.call(e,t):Array.prototype.slice.call(e,t,i)}var Q=String.prototype.trim?function(e){return e.trim()}:function(e){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(e)[1]},ee=/&/g,te=//g,ne=/"/g,ae=/'/g,re=/\x00/g,se=/[\x00&<>"']/;function oe(e,t){return et?1:0}function le(e){return se.test(e)&&(-1!=e.indexOf("&")&&(e=e.replace(ee,"&")),-1!=e.indexOf("<")&&(e=e.replace(te,"<")),-1!=e.indexOf(">")&&(e=e.replace(ie,">")),-1!=e.indexOf('"')&&(e=e.replace(ne,""")),-1!=e.indexOf("'")&&(e=e.replace(ae,"'")),-1!=e.indexOf("\0")&&(e=e.replace(re,"�"))),e}function ce(e,t,i){for(var n in e)t.call(i,e[n],n,e)}function ue(e){var t,i={};for(t in e)i[t]=e[t];return i}var de="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");function he(e,t){for(var i,n,a=1;a=e.length)throw fe;if(t in e)return e[t++];t++}},i}throw Error("Not implemented")}function me(e,t){if(I(e))try{B(e,t,void 0)}catch(i){if(i!==fe)throw i}else{e=ge(e);try{for(;;)t.call(void 0,e.next(),void 0,e)}catch(n){if(n!==fe)throw n}}}function ve(e){if(I(e))return J(e);e=ge(e);var t=[];return me(e,(function(e){t.push(e)})),t}function be(e,t){this.g={},this.a=[],this.j=this.h=0;var i=arguments.length;if(1=n.a.length)throw fe;var a=n.a[t++];return e?a:n.g[a]},a};var Se=/^(?:([^:/?#.]+):)?(?:\/\/(?:([^/?#]*)@)?([^/#?]*?)(?::([0-9]+))?(?=[/#?]|$))?([^?#]+)?(?:\?([^#]*))?(?:#([\s\S]*))?$/;function Ie(e,t){if(e){e=e.split("&");for(var i=0;in)return null;var a=e.indexOf("&",n);return(0>a||a>i)&&(a=i),n+=t.length+1,decodeURIComponent(e.substr(n,a-n).replace(/\+/g," "))}var _e=/[?&]($|#)/;function Ae(e,t){var i;this.h=this.A=this.j="",this.C=null,this.s=this.g="",this.i=!1,e instanceof Ae?(this.i=f(t)?t:e.i,Pe(this,e.j),this.A=e.A,this.h=e.h,xe(this,e.C),this.g=e.g,Re(this,Ke(e.a)),this.s=e.s):e&&(i=String(e).match(Se))?(this.i=!!t,Pe(this,i[1]||"",!0),this.A=Te(i[2]||""),this.h=Te(i[3]||"",!0),xe(this,i[4]),this.g=Te(i[5]||"",!0),Re(this,i[6]||"",!0),this.s=Te(i[7]||"")):(this.i=!!t,this.a=new Be(null,this.i))}function Pe(e,t,i){e.j=i?Te(t,!0):t,e.j&&(e.j=e.j.replace(/:$/,""))}function xe(e,t){if(t){if(t=Number(t),isNaN(t)||0>t)throw Error("Bad port number "+t);e.C=t}else e.C=null}function Re(e,t,i){t instanceof Be?(e.a=t,We(e.a,e.i)):(i||(t=Me(t,Ue)),e.a=new Be(t,e.i))}function Le(e){return e instanceof Ae?new Ae(e):new Ae(e,void 0)}function Te(e,t){return e?t?decodeURI(e.replace(/%25/g,"%2525")):decodeURIComponent(e):""}function Me(e,t,i){return p(e)?(e=encodeURI(e).replace(t,De),i&&(e=e.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),e):null}function De(e){return e=e.charCodeAt(0),"%"+(e>>4&15).toString(16)+(15&e).toString(16)}Ae.prototype.toString=function(){var e=[],t=this.j;t&&e.push(Me(t,Oe,!0),":");var i=this.h;return(i||"file"==t)&&(e.push("//"),(t=this.A)&&e.push(Me(t,Oe,!0),"@"),e.push(encodeURIComponent(String(i)).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),i=this.C,null!=i&&e.push(":",String(i))),(i=this.g)&&(this.h&&"/"!=i.charAt(0)&&e.push("/"),e.push(Me(i,"/"==i.charAt(0)?Fe:Ne,!0))),(i=this.a.toString())&&e.push("?",i),(i=this.s)&&e.push("#",Me(i,je)),e.join("")};var Oe=/[#\/\?@]/g,Ne=/[#\?:]/g,Fe=/[#\?]/g,Ue=/[#\?@]/g,je=/#/g;function Be(e,t){this.g=this.a=null,this.h=e||null,this.j=!!t}function Ve(e){e.a||(e.a=new be,e.g=0,e.h&&Ie(e.h,(function(t,i){e.add(decodeURIComponent(t.replace(/\+/g," ")),i)})))}function He(e,t){Ve(e),t=Ze(e,t),we(e.a.g,t)&&(e.h=null,e.g-=e.a.get(t).length,e=e.a,we(e.g,t)&&(delete e.g[t],e.h--,e.j++,e.a.length>2*e.h&&ye(e)))}function Ge(e,t){return Ve(e),t=Ze(e,t),we(e.a.g,t)}function Ke(e){var t=new Be;return t.h=e.h,e.a&&(t.a=new be(e.a),t.g=e.g),t}function Ze(e,t){return t=String(t),e.j&&(t=t.toLowerCase()),t}function We(e,t){t&&!e.j&&(Ve(e),e.h=null,e.a.forEach((function(e,t){var i=t.toLowerCase();t!=i&&(He(this,t),He(this,i),0parseFloat(mt)){st=String(bt);break e}}st=mt}var yt,wt={};function St(e){return rt(e,(function(){for(var t=0,i=Q(String(st)).split("."),n=Q(String(e)).split("."),a=Math.max(i.length,n.length),r=0;0==t&&r",0);var Gt=Ht("",0);Ht("
",0);var Kt=function(e){var t,i=!1;return function(){return i||(t=e(),i=!0),t}}((function(){if("undefined"===typeof document)return!1;var e=document.createElement("div"),t=document.createElement("div");return t.appendChild(document.createElement("div")),e.appendChild(t),!!e.firstChild&&(t=e.firstChild.firstChild,e.innerHTML=Bt(Gt),!t.parentElement)}));function Zt(e,t){e.src=At(t),null===m&&(t=h.document,m=(t=t.querySelector&&t.querySelector("script[nonce]"))&&(t=t.nonce||t.getAttribute("nonce"))&&g.test(t)?t:""),t=m,t&&e.setAttribute("nonce",t)}function Wt(e,t){t=t instanceof Rt?t:Dt(t),e.assign(Lt(t))}function zt(e,t){this.a=f(e)?e:0,this.g=f(t)?t:0}function Yt(e,t){this.width=e,this.height=t}function qt(e){return e?new oi(ni(e)):T||(T=new oi)}function $t(e,t){var i=t||document;return i.querySelectorAll&&i.querySelector?i.querySelectorAll("."+e):Xt(document,e,t)}function Jt(e,t){var i=t||document;if(i.getElementsByClassName)e=i.getElementsByClassName(e)[0];else{i=document;var n=t||i;e=n.querySelectorAll&&n.querySelector&&e?n.querySelector(e?"."+e:""):Xt(i,e,t)[0]||null}return e||null}function Xt(e,t,i){var n;if(e=i||e,e.querySelectorAll&&e.querySelector&&t)return e.querySelectorAll(t?"."+t:"");if(t&&e.getElementsByClassName){var a=e.getElementsByClassName(t);return a}if(a=e.getElementsByTagName("*"),t){var r={};for(i=n=0;e=a[i];i++){var s=e.className;"function"==typeof s.split&&Z(s.split(/\s+/),t)&&(r[n++]=e)}return r.length=n,r}return a}function Qt(e,t){ce(t,(function(t,i){t&&"object"==typeof t&&t.ma&&(t=t.ka()),"style"==i?e.style.cssText=t:"class"==i?e.className=t:"for"==i?e.htmlFor=t:ei.hasOwnProperty(i)?e.setAttribute(ei[i],t):0==i.lastIndexOf("aria-",0)||0==i.lastIndexOf("data-",0)?e.setAttribute(i,t):e[i]=t}))}zt.prototype.toString=function(){return"("+this.a+", "+this.g+")"},zt.prototype.ceil=function(){return this.a=Math.ceil(this.a),this.g=Math.ceil(this.g),this},zt.prototype.floor=function(){return this.a=Math.floor(this.a),this.g=Math.floor(this.g),this},zt.prototype.round=function(){return this.a=Math.round(this.a),this.g=Math.round(this.g),this},e=Yt.prototype,e.toString=function(){return"("+this.width+" x "+this.height+")"},e.aspectRatio=function(){return this.width/this.height},e.ceil=function(){return this.width=Math.ceil(this.width),this.height=Math.ceil(this.height),this},e.floor=function(){return this.width=Math.floor(this.width),this.height=Math.floor(this.height),this},e.round=function(){return this.width=Math.round(this.width),this.height=Math.round(this.height),this};var ei={cellpadding:"cellPadding",cellspacing:"cellSpacing",colspan:"colSpan",frameborder:"frameBorder",height:"height",maxlength:"maxLength",nonce:"nonce",role:"role",rowspan:"rowSpan",type:"type",usemap:"useMap",valign:"vAlign",width:"width"};function ti(e){return e.scrollingElement?e.scrollingElement:(ht||"CSS1Compat"!=e.compatMode)&&e.body||e.documentElement}function ii(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function ni(e){return 9==e.nodeType?e:e.ownerDocument||e.document}function ai(e,t){if("textContent"in e)e.textContent=t;else if(3==e.nodeType)e.data=String(t);else if(e.firstChild&&3==e.firstChild.nodeType){for(;e.lastChild!=e.firstChild;)e.removeChild(e.lastChild);e.firstChild.data=String(t)}else{for(var i;i=e.firstChild;)e.removeChild(i);e.appendChild(ni(e).createTextNode(String(t)))}}function ri(e,t){return t?si(e,(function(e){return!t||p(e.className)&&Z(e.className.split(/\s+/),t)})):null}function si(e,t){for(;e;){if(t(e))return e;e=e.parentNode}return null}function oi(e){this.a=e||h.document||document}oi.prototype.N=function(){return p(void 0)?this.a.getElementById(void 0):void 0};var li={Fc:!0},ci={Hc:!0},ui={Ec:!0},di={Gc:!0};function hi(){throw Error("Do not instantiate directly")}function fi(e,t,i,n){if(e=e(t||mi,void 0,i),n=(n||qt()).a.createElement("DIV"),e=pi(e),e.match(gi),e=Ht(e,null),Kt())for(;n.lastChild;)n.removeChild(n.lastChild);return n.innerHTML=Bt(e),1==n.childNodes.length&&(e=n.firstChild,1==e.nodeType&&(n=e)),n}function pi(e){if(!C(e))return le(String(e));if(e instanceof hi){if(e.fa===li)return e.content;if(e.fa===di)return le(e.content)}return U("Soy template output is unsafe for use as HTML: "+e),"zSoyz"}hi.prototype.va=null,hi.prototype.toString=function(){return this.content};var gi=/^<(body|caption|col|colgroup|head|html|tr|td|th|tbody|thead|tfoot)>/i,mi={};function vi(e){if(null!=e)switch(e.va){case 1:return 1;case-1:return-1;case 0:return 0}return null}function bi(){hi.call(this)}function yi(e){return null!=e&&e.fa===li?e:e instanceof jt?Ei(Bt(e).toString(),e.g()):Ei(le(String(String(e))),vi(e))}function wi(){hi.call(this)}function Si(e,t){this.content=String(e),this.va=null!=t?t:null}function Ii(e){return new Si(e,void 0)}O(bi,hi),bi.prototype.fa=li,O(wi,hi),wi.prototype.fa=ci,wi.prototype.va=1,O(Si,hi),Si.prototype.fa=di;var Ei=function(e){function t(e){this.content=e}return t.prototype=e.prototype,function(e,i){return e=new t(String(e)),void 0!==i&&(e.va=i),e}}(bi),Ci=function(e){function t(e){this.content=e}return t.prototype=e.prototype,function(e){return new t(String(e))}}(wi);function ki(e){function t(){}var i={label:_i("New password")};for(var n in t.prototype=e,e=new t,i)e[n]=i[n];return e}function _i(e){return(e=String(e))?new Si(e,void 0):""}var Ai=function(e){function t(e){this.content=e}return t.prototype=e.prototype,function(e,i){return e=String(e),e?(e=new t(e),void 0!==i&&(e.va=i),e):""}}(bi);function Pi(e){return null!=e&&e.fa===li?String(String(e.content).replace(ji,"").replace(Bi,"<")).replace(Oi,Ti):le(String(e))}function xi(e){return null!=e&&e.fa===ci?e=String(e).replace(Ni,Di):e instanceof Rt?e=String(Lt(e).toString()).replace(Ni,Di):(e=String(e),Ui.test(e)?e=e.replace(Ni,Di):(U("Bad value `%s` for |filterNormalizeUri",[e]),e="#zSoyz")),e}function Ri(e){return null!=e&&e.fa===ui?e=e.content:null==e?e="":e instanceof Ft?e instanceof Ft&&e.constructor===Ft&&e.g===Ut?e=e.a:(U("expected object of type SafeStyle, got '"+e+"' of type "+w(e)),e="type_error:SafeStyle"):(e=String(e),Fi.test(e)||(U("Bad value `%s` for |filterCssValue",[e]),e="zSoyz")),e}var Li={"\0":"�","\t":" ","\n":" ","\v":" ","\f":" ","\r":" "," ":" ",'"':""","&":"&","'":"'","-":"-","/":"/","<":"<","=":"=",">":">","`":"`","…":"…"," ":" ","\u2028":"
","\u2029":"
"};function Ti(e){return Li[e]}var Mi={"\0":"%00","":"%01","":"%02","":"%03","":"%04","":"%05","":"%06","":"%07","\b":"%08","\t":"%09","\n":"%0A","\v":"%0B","\f":"%0C","\r":"%0D","":"%0E","":"%0F","":"%10","":"%11","":"%12","":"%13","":"%14","":"%15","":"%16","":"%17","":"%18","":"%19","":"%1A","":"%1B","":"%1C","":"%1D","":"%1E","":"%1F"," ":"%20",'"':"%22","'":"%27","(":"%28",")":"%29","<":"%3C",">":"%3E","\\":"%5C","{":"%7B","}":"%7D","":"%7F","…":"%C2%85"," ":"%C2%A0","\u2028":"%E2%80%A8","\u2029":"%E2%80%A9","!":"%EF%BC%81","#":"%EF%BC%83","$":"%EF%BC%84","&":"%EF%BC%86","'":"%EF%BC%87","(":"%EF%BC%88",")":"%EF%BC%89","*":"%EF%BC%8A","+":"%EF%BC%8B",",":"%EF%BC%8C","/":"%EF%BC%8F",":":"%EF%BC%9A",";":"%EF%BC%9B","=":"%EF%BC%9D","?":"%EF%BC%9F","@":"%EF%BC%A0","[":"%EF%BC%BB","]":"%EF%BC%BD"};function Di(e){return Mi[e]}var Oi=/[\x00\x22\x27\x3c\x3e]/g,Ni=/[\x00- \x22\x27-\x29\x3c\x3e\\\x7b\x7d\x7f\x85\xa0\u2028\u2029\uff01\uff03\uff04\uff06-\uff0c\uff0f\uff1a\uff1b\uff1d\uff1f\uff20\uff3b\uff3d]/g,Fi=/^(?!-*(?:expression|(?:moz-)?binding))(?:[.#]?-?(?:[_a-z0-9-]+)(?:-[_a-z0-9-]+)*-?|-?(?:[0-9]+(?:\.[0-9]*)?|\.[0-9]+)(?:[a-z]{1,2}|%)?|!important|)$/i,Ui=/^(?![^#?]*\/(?:\.|%2E){2}(?:[\/?#]|$))(?:(?:https?|mailto):|[^&:\/?#]*(?:[\/?#]|$))/i,ji=/<(?:!|\/?([a-zA-Z][a-zA-Z0-9:\-]*))(?:[^>'"]|"[^"]*"|'[^']*')*>/g,Bi=/=e.keyCode)&&(e.keyCode=-1)}catch(t){}};var ln="closure_listenable_"+(1e6*Math.random()|0),cn=0;function un(e,t,i,n,a){this.listener=e,this.proxy=null,this.src=t,this.type=i,this.capture=!!n,this.La=a,this.key=++cn,this.sa=this.Ia=!1}function dn(e){e.sa=!0,e.listener=null,e.proxy=null,e.src=null,e.La=null}function hn(e){this.src=e,this.a={},this.g=0}function fn(e,t){var i=t.type;i in e.a&&W(e.a[i],t)&&(dn(t),0==e.a[i].length&&(delete e.a[i],e.g--))}function pn(e,t,i,n){for(var a=0;an.keyCode||void 0!=n.returnValue)){e:{var a=!1;if(0==n.keyCode)try{n.keyCode=-1;break e}catch(s){a=!0}(a||void 0==n.returnValue)&&(n.returnValue=!0)}for(n=[],a=t.g;a;a=a.parentNode)n.push(a);for(e=e.type,a=n.length-1;!t.h&&0<=a;a--){t.g=n[a];var r=Cn(n[a],e,!0,t);i=i&&r}for(a=0;!t.h&&a>>0);function xn(e){return E(e)?e:(e[Pn]||(e[Pn]=function(t){return e.handleEvent(t)}),e[Pn])}function Rn(){qi.call(this),this.J=new hn(this),this.wb=this,this.Ha=null}function Ln(e,t){var i,n=e.Ha;if(n)for(i=[];n;n=n.Ha)i.push(n);if(e=e.wb,n=t.type||t,p(t))t=new rn(t,e);else if(t instanceof rn)t.target=t.target||e;else{var a=t;t=new rn(n,e),he(t,a)}if(a=!0,i)for(var r=i.length-1;!t.h&&0<=r;r--){var s=t.g=i[r];a=Tn(s,n,!0,t)&&a}if(t.h||(s=t.g=e,a=Tn(s,n,!0,t)&&a,t.h||(a=Tn(s,n,!1,t)&&a)),i)for(r=0;!t.h&&re.g&&(e.g++,t.next=e.a,e.a=t)}function Hn(){this.g=this.a=null}l(Un,Rn),Un.prototype.N=function(){return this.a},Un.prototype.register=function(){var e=Fn(this.N());Mn[e]?Z(Mn[e],this)||Mn[e].push(this):Mn[e]=[this]},Bn.prototype.get=function(){if(0',null),i.document.write(Bt(t)),i.document.close())):(i=i.open(Lt(n).toString(),e,r))&&t.noopener&&(i.opener=null),i}function Ea(){try{return!(!window.opener||!window.opener.location||window.opener.location.hostname!==window.location.hostname||window.opener.location.protocol!==window.location.protocol)}catch(e){}return!1}function Ca(e){Ia(e,{target:window.cordova&&window.cordova.InAppBrowser?"_system":"_blank"},void 0)}function ka(e,t){if(e=C(e)&&1==e.nodeType?e:document.querySelector(String(e)),null==e)throw Error(t||"Cannot find element.");return e}function _a(){return window.location.href}function Aa(){var e=null;return new ta((function(t){"complete"==h.document.readyState?t():(e=function(){t()},wn(window,"load",e))})).Ca((function(t){throw Sn(window,"load",e),t}))}function Pa(){for(var e=32,t=[];0=t.C&&t.cancel())}this.T?this.T.call(this.O,this):this.J=!0,this.a||(e=new Fa(this),Ta(this),La(this,!1,e))}},Ra.prototype.L=function(e,t){this.A=!1,La(this,e,t)},Ra.prototype.callback=function(e){Ta(this),La(this,!0,e)},Ra.prototype.then=function(e,t,i){var n,a,r=new ta((function(e,t){n=e,a=t}));return Ma(this,n,(function(e){e instanceof Fa?r.cancel():a(e)})),r.then(e,t,i)},Ra.prototype.$goog_Thenable=!0,O(Na,N),Na.prototype.message="Deferred has already fired",Na.prototype.name="AlreadyCalledError",O(Fa,N),Fa.prototype.message="Deferred was canceled",Fa.prototype.name="CanceledError",Ua.prototype.h=function(){throw delete ja[this.a],this.g};var ja={};function Ba(e){var t={},i=t.document||document,n=At(e).toString(),a=document.createElement("SCRIPT"),r={rb:a,sb:void 0},s=new Ra(r),o=null,l=null!=t.timeout?t.timeout:5e3;return 0=rr(this).value)for(E(t)&&(t=t()),e=new Qa(e,String(t),this.s),i&&(e.a=i),i=this;i;){var n=i,a=e;if(n.a)for(var r=0;t=n.a[r];r++)t(a);i=i.g}};var sr={},or=null;function lr(){or||(or=new er(""),sr[""]=or,or.j=ar)}function cr(e){var t;if(lr(),!(t=sr[e])){t=new er(e);var i=e.lastIndexOf("."),n=e.substr(i+1);i=cr(e.substr(0,i)),i.h||(i.h={}),i.h[n]=t,t.g=i,sr[e]=t}return t}function ur(){this.a=M()}var dr=null;function hr(e){this.j=e||"",dr||(dr=new ur),this.s=dr}function fr(e){return 10>e?"0"+e:String(e)}function pr(e,t){e=(e.h-t)/1e3,t=e.toFixed(3);var i=0;if(1>e)i=2;else for(;100>e;)i++,e*=10;for(;0=ir.value)return"error";if(e.value>=nr.value)return"warn";if(e.value>=ar.value)return"log"}return"debug"}if(!this.j[e.g]){var i=mr(this.a,e),n=yr;if(n){var a=t(e.j);wr(n,a,i,e.a)}}};var br,yr=h.console;function wr(e,t,i,n){e[t]?e[t](i,n||""):e.log(i,n||"")}function Sr(e,t){var i=br;i&&i.log(ir,e,t)}br=cr("firebaseui");var Ir=new vr;if(1!=Ir.g){var Er;lr(),Er=or;var Cr=Ir.s;Er.a||(Er.a=[]),Er.a.push(Cr),Ir.g=!0}function kr(e){var t=br;t&&t.log(nr,e,void 0)}function _r(){this.a=("undefined"==typeof document?null:document)||{cookie:""}}function Ar(e){e=(e.a.cookie||"").split(";");for(var t,i,n=[],a=[],r=0;ri?"":0==i?";expires="+new Date(1970,1,1).toUTCString():";expires="+new Date(M()+1e3*i).toUTCString(),this.a.cookie=e+"="+t+a+n+i+r},e.get=function(e,t){for(var i,n=e+"=",a=(this.a.cookie||"").split(";"),r=0;r>=8),t[i++]=a}return t}function Nr(e){return G(e,(function(e){return e=e.toString(16),1a;a++)i=4*a+n,i=t[i],e.h[n][a]=i}function Br(e){for(var t=[],i=0;in;n++)t[4*n+i]=e.h[i][n];return t}function Vr(e,t){for(var i=0;4>i;i++)for(var n=0;4>n;n++)e.h[i][n]^=e.a[4*t+n][i]}function Hr(e,t){for(var i=0;4>i;i++)for(var n=0;4>n;n++)e.h[i][n]=t[e.h[i][n]]}function Gr(e){for(var t=1;4>t;t++)for(var i=0;4>i;i++)e.s[t][i]=e.h[t][i];for(t=1;4>t;t++)for(i=0;4>i;i++)e.h[t][i]=e.s[t][(i+t)%Ur]}function Kr(e){for(var t=1;4>t;t++)for(var i=0;4>i;i++)e.s[t][(i+t)%Ur]=e.h[t][i];for(t=1;4>t;t++)for(i=0;4>i;i++)e.h[t][i]=e.s[t][i]}function Zr(e){e[0]=Wr[e[0]],e[1]=Wr[e[1]],e[2]=Wr[e[2]],e[3]=Wr[e[3]]}var Wr=[99,124,119,123,242,107,111,197,48,1,103,43,254,215,171,118,202,130,201,125,250,89,71,240,173,212,162,175,156,164,114,192,183,253,147,38,54,63,247,204,52,165,229,241,113,216,49,21,4,199,35,195,24,150,5,154,7,18,128,226,235,39,178,117,9,131,44,26,27,110,90,160,82,59,214,179,41,227,47,132,83,209,0,237,32,252,177,91,106,203,190,57,74,76,88,207,208,239,170,251,67,77,51,133,69,249,2,127,80,60,159,168,81,163,64,143,146,157,56,245,188,182,218,33,16,255,243,210,205,12,19,236,95,151,68,23,196,167,126,61,100,93,25,115,96,129,79,220,34,42,144,136,70,238,184,20,222,94,11,219,224,50,58,10,73,6,36,92,194,211,172,98,145,149,228,121,231,200,55,109,141,213,78,169,108,86,244,234,101,122,174,8,186,120,37,46,28,166,180,198,232,221,116,31,75,189,139,138,112,62,181,102,72,3,246,14,97,53,87,185,134,193,29,158,225,248,152,17,105,217,142,148,155,30,135,233,206,85,40,223,140,161,137,13,191,230,66,104,65,153,45,15,176,84,187,22],zr=[82,9,106,213,48,54,165,56,191,64,163,158,129,243,215,251,124,227,57,130,155,47,255,135,52,142,67,68,196,222,233,203,84,123,148,50,166,194,35,61,238,76,149,11,66,250,195,78,8,46,161,102,40,217,36,178,118,91,162,73,109,139,209,37,114,248,246,100,134,104,152,22,212,164,92,204,93,101,182,146,108,112,72,80,253,237,185,218,94,21,70,87,167,141,157,132,144,216,171,0,140,188,211,10,247,228,88,5,184,179,69,6,208,44,30,143,202,63,15,2,193,175,189,3,1,19,138,107,58,145,17,65,79,103,220,234,151,242,207,206,240,180,230,115,150,172,116,34,231,173,53,133,226,249,55,232,28,117,223,110,71,241,26,113,29,41,197,137,111,183,98,14,170,24,190,27,252,86,62,75,198,210,121,32,154,219,192,254,120,205,90,244,31,221,168,51,136,7,199,49,177,18,16,89,39,128,236,95,96,81,127,169,25,181,74,13,45,229,122,159,147,201,156,239,160,224,59,77,174,42,245,176,200,235,187,60,131,83,153,97,23,43,4,126,186,119,214,38,225,105,20,99,85,33,12,125],Yr=[[0,0,0,0],[1,0,0,0],[2,0,0,0],[4,0,0,0],[8,0,0,0],[16,0,0,0],[32,0,0,0],[64,0,0,0],[128,0,0,0],[27,0,0,0],[54,0,0,0]],qr=[0,2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,36,38,40,42,44,46,48,50,52,54,56,58,60,62,64,66,68,70,72,74,76,78,80,82,84,86,88,90,92,94,96,98,100,102,104,106,108,110,112,114,116,118,120,122,124,126,128,130,132,134,136,138,140,142,144,146,148,150,152,154,156,158,160,162,164,166,168,170,172,174,176,178,180,182,184,186,188,190,192,194,196,198,200,202,204,206,208,210,212,214,216,218,220,222,224,226,228,230,232,234,236,238,240,242,244,246,248,250,252,254,27,25,31,29,19,17,23,21,11,9,15,13,3,1,7,5,59,57,63,61,51,49,55,53,43,41,47,45,35,33,39,37,91,89,95,93,83,81,87,85,75,73,79,77,67,65,71,69,123,121,127,125,115,113,119,117,107,105,111,109,99,97,103,101,155,153,159,157,147,145,151,149,139,137,143,141,131,129,135,133,187,185,191,189,179,177,183,181,171,169,175,173,163,161,167,165,219,217,223,221,211,209,215,213,203,201,207,205,195,193,199,197,251,249,255,253,243,241,247,245,235,233,239,237,227,225,231,229],$r=[0,3,6,5,12,15,10,9,24,27,30,29,20,23,18,17,48,51,54,53,60,63,58,57,40,43,46,45,36,39,34,33,96,99,102,101,108,111,106,105,120,123,126,125,116,119,114,113,80,83,86,85,92,95,90,89,72,75,78,77,68,71,66,65,192,195,198,197,204,207,202,201,216,219,222,221,212,215,210,209,240,243,246,245,252,255,250,249,232,235,238,237,228,231,226,225,160,163,166,165,172,175,170,169,184,187,190,189,180,183,178,177,144,147,150,149,156,159,154,153,136,139,142,141,132,135,130,129,155,152,157,158,151,148,145,146,131,128,133,134,143,140,137,138,171,168,173,174,167,164,161,162,179,176,181,182,191,188,185,186,251,248,253,254,247,244,241,242,227,224,229,230,239,236,233,234,203,200,205,206,199,196,193,194,211,208,213,214,223,220,217,218,91,88,93,94,87,84,81,82,67,64,69,70,79,76,73,74,107,104,109,110,103,100,97,98,115,112,117,118,127,124,121,122,59,56,61,62,55,52,49,50,35,32,37,38,47,44,41,42,11,8,13,14,7,4,1,2,19,16,21,22,31,28,25,26],Jr=[0,9,18,27,36,45,54,63,72,65,90,83,108,101,126,119,144,153,130,139,180,189,166,175,216,209,202,195,252,245,238,231,59,50,41,32,31,22,13,4,115,122,97,104,87,94,69,76,171,162,185,176,143,134,157,148,227,234,241,248,199,206,213,220,118,127,100,109,82,91,64,73,62,55,44,37,26,19,8,1,230,239,244,253,194,203,208,217,174,167,188,181,138,131,152,145,77,68,95,86,105,96,123,114,5,12,23,30,33,40,51,58,221,212,207,198,249,240,235,226,149,156,135,142,177,184,163,170,236,229,254,247,200,193,218,211,164,173,182,191,128,137,146,155,124,117,110,103,88,81,74,67,52,61,38,47,16,25,2,11,215,222,197,204,243,250,225,232,159,150,141,132,187,178,169,160,71,78,85,92,99,106,113,120,15,6,29,20,43,34,57,48,154,147,136,129,190,183,172,165,210,219,192,201,246,255,228,237,10,3,24,17,46,39,60,53,66,75,80,89,102,111,116,125,161,168,179,186,133,140,151,158,233,224,251,242,205,196,223,214,49,56,35,42,21,28,7,14,121,112,107,98,93,84,79,70],Xr=[0,11,22,29,44,39,58,49,88,83,78,69,116,127,98,105,176,187,166,173,156,151,138,129,232,227,254,245,196,207,210,217,123,112,109,102,87,92,65,74,35,40,53,62,15,4,25,18,203,192,221,214,231,236,241,250,147,152,133,142,191,180,169,162,246,253,224,235,218,209,204,199,174,165,184,179,130,137,148,159,70,77,80,91,106,97,124,119,30,21,8,3,50,57,36,47,141,134,155,144,161,170,183,188,213,222,195,200,249,242,239,228,61,54,43,32,17,26,7,12,101,110,115,120,73,66,95,84,247,252,225,234,219,208,205,198,175,164,185,178,131,136,149,158,71,76,81,90,107,96,125,118,31,20,9,2,51,56,37,46,140,135,154,145,160,171,182,189,212,223,194,201,248,243,238,229,60,55,42,33,16,27,6,13,100,111,114,121,72,67,94,85,1,10,23,28,45,38,59,48,89,82,79,68,117,126,99,104,177,186,167,172,157,150,139,128,233,226,255,244,197,206,211,216,122,113,108,103,86,93,64,75,34,41,52,63,14,5,24,19,202,193,220,215,230,237,240,251,146,153,132,143,190,181,168,163],Qr=[0,13,26,23,52,57,46,35,104,101,114,127,92,81,70,75,208,221,202,199,228,233,254,243,184,181,162,175,140,129,150,155,187,182,161,172,143,130,149,152,211,222,201,196,231,234,253,240,107,102,113,124,95,82,69,72,3,14,25,20,55,58,45,32,109,96,119,122,89,84,67,78,5,8,31,18,49,60,43,38,189,176,167,170,137,132,147,158,213,216,207,194,225,236,251,246,214,219,204,193,226,239,248,245,190,179,164,169,138,135,144,157,6,11,28,17,50,63,40,37,110,99,116,121,90,87,64,77,218,215,192,205,238,227,244,249,178,191,168,165,134,139,156,145,10,7,16,29,62,51,36,41,98,111,120,117,86,91,76,65,97,108,123,118,85,88,79,66,9,4,19,30,61,48,39,42,177,188,171,166,133,136,159,146,217,212,195,206,237,224,247,250,183,186,173,160,131,142,153,148,223,210,197,200,235,230,241,252,103,106,125,112,83,94,73,68,15,2,21,24,59,54,33,44,12,1,22,27,56,53,34,47,100,105,126,115,80,93,74,71,220,209,198,203,232,229,242,255,180,185,174,163,128,141,154,151],es=[0,14,28,18,56,54,36,42,112,126,108,98,72,70,84,90,224,238,252,242,216,214,196,202,144,158,140,130,168,166,180,186,219,213,199,201,227,237,255,241,171,165,183,185,147,157,143,129,59,53,39,41,3,13,31,17,75,69,87,89,115,125,111,97,173,163,177,191,149,155,137,135,221,211,193,207,229,235,249,247,77,67,81,95,117,123,105,103,61,51,33,47,5,11,25,23,118,120,106,100,78,64,82,92,6,8,26,20,62,48,34,44,150,152,138,132,174,160,178,188,230,232,250,244,222,208,194,204,65,79,93,83,121,119,101,107,49,63,45,35,9,7,21,27,161,175,189,179,153,151,133,139,209,223,205,195,233,231,245,251,154,148,134,136,162,172,190,176,234,228,246,248,210,220,206,192,122,116,102,104,66,76,94,80,10,4,22,24,50,60,46,32,236,226,240,254,212,218,200,198,156,146,128,142,164,170,184,182,12,2,16,30,52,58,40,38,124,114,96,110,68,74,88,86,55,57,43,37,15,1,19,29,71,73,91,85,127,113,99,109,215,217,203,197,239,225,243,253,167,169,187,181,159,145,131,141];function ts(e,t){e=new Fr(ns(e)),t=Or(t);for(var i,n=t.splice(0,16),a="";n.length;){i=16-n.length;for(var r=0;ro;o++)s[0]=r[0][o],s[1]=r[1][o],s[2]=r[2][o],s[3]=r[3][o],r[0][o]=qr[s[0]]^$r[s[1]]^s[2]^s[3],r[1][o]=s[0]^qr[s[1]]^$r[s[2]]^s[3],r[2][o]=s[0]^s[1]^qr[s[2]]^$r[s[3]],r[3][o]=$r[s[0]]^s[1]^s[2]^qr[s[3]];Vr(i,n)}Hr(i,Wr),Gr(i),Vr(i,i.j),a+=Nr(Br(i)),n=t.splice(0,16)}return a}function is(e,t){e=new Fr(ns(e));for(var i=[],n=0;no;o++)s[0]=r[0][o],s[1]=r[1][o],s[2]=r[2][o],s[3]=r[3][o],r[0][o]=es[s[0]]^Xr[s[1]]^Qr[s[2]]^Jr[s[3]],r[1][o]=Jr[s[0]]^es[s[1]]^Xr[s[2]]^Qr[s[3]],r[2][o]=Qr[s[0]]^Jr[s[1]]^es[s[2]]^Xr[s[3]],r[3][o]=Xr[s[0]]^Qr[s[1]]^Jr[s[2]]^es[s[3]]}if(Kr(n),Hr(n,zr),Vr(n,0),n=Br(n),8192>=n.length)n=String.fromCharCode.apply(null,n);else{for(a="",r=0;r=i.length)throw fe;var n=i.key(t++);if(e)return n;if(n=i.getItem(n),!p(n))throw"Storage mechanism: Invalid value was encountered";return n},n},e.clear=function(){this.a.clear()},e.key=function(e){return this.a.key(e)},O(ps,hs),O(gs,hs),O(ms,ds),ms.prototype.set=function(e,t){this.g.set(this.a+e,t)},ms.prototype.get=function(e){return this.g.get(this.a+e)},ms.prototype.ra=function(e){this.g.ra(this.a+e)},ms.prototype.ha=function(e){var t=this.g.ha(!0),i=this,n=new pe;return n.next=function(){for(var n=t.next();n.substr(0,i.a.length)!=i.a;)n=t.next();return e?n.substr(i.a.length):i.g.get(n)},n},fs(new ps);var vs,bs=new gs;vs=fs(bs)?new ms(bs,"firebaseui"):null;var ys=new us(vs),ws={name:"pendingEmailCredential",storage:ys},Ss={name:"redirectStatus",storage:ys},Is={name:"redirectUrl",storage:ys},Es={name:"emailForSignIn",storage:new us(new Rr(3600,"/"))},Cs={name:"pendingEncryptedCredential",storage:new us(new Rr(3600,"/"))};function ks(e,t){return e.storage.get(t?e.name+":"+t:e.name)}function _s(e,t){e.storage.a.ra(t?e.name+":"+t:e.name)}function As(e,t,i){e.storage.set(i?e.name+":"+i:e.name,t)}function Ps(e){return ks(Is,e)||null}function xs(e){return e=ks(ws,e)||null,Mr(e)}function Rs(e){_s(ws,e)}function Ls(e,t){As(ws,Tr(e),t)}function Ts(e){return(e=ks(Ss,e)||null)&&"undefined"!==typeof e.tenantId?new Dr(e.tenantId):null}function Ms(e,t){As(Ss,{tenantId:e.a},t)}function Ds(e,t){t=ks(Es,t);var i=null;if(t)try{var n=is(e,t),a=JSON.parse(n);i=a&&a.email||null}catch(r){}return i}function Os(e,t){t=ks(Cs,t);var i=null;if(t)try{var n=is(e,t);i=JSON.parse(n)}catch(a){}return Mr(i||null)}function Ns(e,t,i){As(Cs,ts(e,JSON.stringify(Tr(t))),i)}function Fs(){this.W={}}function Us(e,t,i){if(t.toLowerCase()in e.W)throw Error("Configuration "+t+" has already been defined.");e.W[t.toLowerCase()]=i}function js(e,t,i){if(!(t.toLowerCase()in e.W))throw Error("Configuration "+t+" is not defined.");e.W[t.toLowerCase()]=i}function Bs(e,t){if(e=e.get(t),!e)throw Error("Configuration "+t+" is required.");return e}function Vs(){this.g=void 0,this.a={}}function Hs(e,t,i,n){for(var a=0;a=e.keyCode)return!1;if(ol(e.keyCode))return!0;switch(e.keyCode){case 18:case 20:case 93:case 17:case 40:case 35:case 27:case 36:case 45:case 37:case 224:case 91:case 144:case 12:case 34:case 33:case 19:case 255:case 44:case 39:case 145:case 16:case 38:case 252:case 224:case 92:return!1;case 0:return!dt;default:return 166>e.keyCode||183=e||96<=e&&106>=e||65<=e&&90>=e||(ht||ct)&&0==e)return!0;switch(e){case 32:case 43:case 63:case 64:case 107:case 109:case 110:case 111:case 186:case 59:case 189:case 187:case 61:case 188:case 190:case 191:case 192:case 222:case 219:case 220:case 221:case 163:return!0;case 173:return dt;default:return!1}}function ll(e){if(dt)e=cl(e);else if(pt&&ht)switch(e){case 93:e=91}return e}function cl(e){switch(e){case 61:return 187;case 59:return 186;case 173:return 189;case 224:return 91;case 0:return 224;default:return e}}function ul(e){Rn.call(this),this.a=e,vn(e,"keydown",this.g,!1,this),vn(e,"click",this.h,!1,this)}function dl(e,t){var i=new fl(t);if(Ln(e,i)){i=new hl(t);try{Ln(e,i)}finally{t.stopPropagation()}}}function hl(e){sn.call(this,e.a),this.type="action"}function fl(e){sn.call(this,e.a),this.type="beforeaction"}function pl(e){Rn.call(this),this.a=e,e=lt?"focusout":"blur",this.g=vn(this.a,lt?"focusin":"focus",this,!lt),this.h=vn(this.a,e,this,!lt)}function gl(e,t){Rn.call(this),this.g=e||1,this.a=t||h,this.h=x(this.gc,this),this.j=M()}function ml(e){e.Ka=!1,e.aa&&(e.a.clearTimeout(e.aa),e.aa=null)}function vl(e,t){if(E(e))t&&(e=x(e,t));else{if(!e||"function"!=typeof e.handleEvent)throw Error("Invalid listener argument");e=x(e.handleEvent,e)}return 2147483647t.charCode&&ol(n)?t.charCode:0):ot&&!ht?(n=this.X,a=ol(n)?t.keyCode:0):("keypress"==e.type?(xl&&(i=this.Ua),t.keyCode==t.charCode?32>t.keyCode?(n=t.keyCode,a=0):(n=this.X,a=t.charCode):(n=t.keyCode||this.X,a=t.charCode||0)):(n=t.keyCode||this.X,a=t.charCode||0),pt&&63==a&&224==n&&(n=191));var r=n=ll(n);n?63232<=n&&n in _l?r=_l[n]:25==n&&e.shiftKey&&(r=9):t.keyIdentifier&&t.keyIdentifier in Al&&(r=Al[t.keyIdentifier]),dt&&Pl&&"keypress"==e.type&&!sl(r,this.R,e.shiftKey,e.ctrlKey,i,e.metaKey)||(e=r==this.R,this.R=r,t=new Ll(r,a,e,t),t.altKey=i,Ln(this,t))},e.N=function(){return this.qa},e.o=function(){kl.K.o.call(this),Rl(this)},O(Ll,sn),Tl.prototype.toString=function(){return"("+this.top+"t, "+this.right+"r, "+this.bottom+"b, "+this.left+"l)"},Tl.prototype.ceil=function(){return this.top=Math.ceil(this.top),this.right=Math.ceil(this.right),this.bottom=Math.ceil(this.bottom),this.left=Math.ceil(this.left),this},Tl.prototype.floor=function(){return this.top=Math.floor(this.top),this.right=Math.floor(this.right),this.bottom=Math.floor(this.bottom),this.left=Math.floor(this.left),this},Tl.prototype.round=function(){return this.top=Math.round(this.top),this.right=Math.round(this.right),this.bottom=Math.round(this.bottom),this.left=Math.round(this.left),this};var Fl={thin:2,medium:4,thick:6};function Ul(e,t){if("none"==(e.currentStyle?e.currentStyle[t+"Style"]:null))return 0;var i=e.currentStyle?e.currentStyle[t+"Width"]:null;if(i in Fl)e=Fl[i];else if(/^\d+px?$/.test(i))e=parseInt(i,10);else{t=e.style.left;var n=e.runtimeStyle.left;e.runtimeStyle.left=e.currentStyle.left,e.style.left=i,i=e.style.pixelLeft,e.style.left=t,e.runtimeStyle.left=n,e=+i}return e}function jl(){}function Bl(e){Rn.call(this),this.s=e||qt(),this.cb=null,this.na=!1,this.g=null,this.L=void 0,this.oa=this.Ea=this.Y=null}function Vl(e,t){return e.g?Jt(t,e.g||e.s.a):null}function Hl(e){return e.L||(e.L=new bl(e)),e.L}function Gl(e,t){e.Ea&&B(e.Ea,t,void 0)}function Kl(e,t){var i=ri(e,"firebaseui-textfield");t?(il(e,"firebaseui-input-invalid"),tl(e,"firebaseui-input"),i&&il(i,"firebaseui-textfield-invalid")):(il(e,"firebaseui-input"),tl(e,"firebaseui-input-invalid"),i&&tl(i,"firebaseui-textfield-invalid"))}function Zl(e,t,i){t=new Il(t),Xi(e,R(Qi,t)),wl(Hl(e),t,"input",i)}function Wl(e,t,i){t=new kl(t),Xi(e,R(Qi,t)),wl(Hl(e),t,"key",(function(e){13==e.keyCode&&(e.stopPropagation(),e.preventDefault(),i(e))}))}function zl(e,t,i){t=new pl(t),Xi(e,R(Qi,t)),wl(Hl(e),t,"focusin",i)}function Yl(e,t,i){t=new pl(t),Xi(e,R(Qi,t)),wl(Hl(e),t,"focusout",i)}function ql(e,t,i){t=new ul(t),Xi(e,R(Qi,t)),wl(Hl(e),t,"action",(function(e){e.stopPropagation(),e.preventDefault(),i(e)}))}function $l(e){tl(e,"firebaseui-hidden")}function Jl(e,t){t&&ai(e,t),il(e,"firebaseui-hidden")}function Xl(e){return!el(e,"firebaseui-hidden")&&"none"!=e.style.display}function Ql(e){e=e||{};var t=e.email,i=e.disabled,n='

',Ei(n)}function ec(e){e=e||{},e=e.label;var t='")}function tc(){var e=""+ec({label:_i("Sign In")});return Ei(e)}function ic(){var e=""+ec({label:_i("Save")});return Ei(e)}function nc(){var e=""+ec({label:_i("Continue")});return Ei(e)}function ac(e){e=e||{},e=e.label;var t='

')}function rc(){var e={},t='

')}function sc(){return Ei('Trouble signing in?')}function oc(e){e=e||{},e=e.label;var t='")}function lc(e){var t="";return e.F&&e.D&&(t+=''),Ei(t)}function cc(e){var t="";return e.F&&e.D&&(t+='

By continuing, you are indicating that you accept our Terms of Service and Privacy Policy.

'),Ei(t)}function uc(e){return e='

'+yi(e.message)+'  Dismiss

',Ei(e)}function dc(e){var t=e.content;return e=e.Ab,Ei(''+yi(t)+"")}function hc(e){var t=e.message;return Ei(dc({content:Ai('
'+yi(t)+"
")}))}function fc(e){var t='
';e=e.items;for(var i=e.length,n=0;n'+(a.Ma?'
':"")+'
'+yi(a.label)+"
"}return t=""+dc({Ab:_i("firebaseui-list-box-dialog"),content:Ai(t+"
")}),Ei(t)}function pc(e){return e=e||{},Ei(e.tb?'
':'
')}function gc(e,t){return e=e||{},e=e.ga,Ii(e.S?e.S:t.hb[e.providerId]?""+t.hb[e.providerId]:e.providerId&&0==e.providerId.indexOf("saml.")||e.providerId&&0==e.providerId.indexOf("oidc.")?e.providerId.substring(5):""+e.providerId)}function mc(e){yc(e,"upgradeElement")}function vc(e){yc(e,"downgradeElements")}y(jl),jl.prototype.a=0,O(Bl,Rn),e=Bl.prototype,e.Lb=jl.Xa(),e.N=function(){return this.g},e.Za=function(e){if(this.Y&&this.Y!=e)throw Error("Method not supported");Bl.K.Za.call(this,e)},e.kb=function(){this.g=this.s.a.createElement("DIV")},e.render=function(e){if(this.na)throw Error("Component already rendered");this.g||this.kb(),e?e.insertBefore(this.g,null):this.s.a.body.appendChild(this.g),this.Y&&!this.Y.na||this.v()},e.v=function(){this.na=!0,Gl(this,(function(e){!e.na&&e.N()&&e.v()}))},e.ya=function(){Gl(this,(function(e){e.na&&e.ya()})),this.L&&Sl(this.L),this.na=!1},e.o=function(){this.na&&this.ya(),this.L&&(this.L.m(),delete this.L),Gl(this,(function(e){e.m()})),this.g&&ii(this.g),this.Y=this.g=this.oa=this.Ea=null,Bl.K.o.call(this)},e.removeChild=function(e,t){if(e){var i=p(e)?e:e.cb||(e.cb=":"+(e.Lb.a++).toString(36));if(this.oa&&i?(e=this.oa,e=(null!==e&&i in e?e[i]:void 0)||null):e=null,i&&e){var n=this.oa;if(i in n&&delete n[i],W(this.Ea,e),t&&(e.ya(),e.g&&ii(e.g)),t=e,null==t)throw Error("Unable to set parent component");t.Y=null,Bl.K.Za.call(t,null)}}if(!e)throw Error("Child is not in parent component");return e},uc.a="firebaseui.auth.soy2.element.infoBar",hc.a="firebaseui.auth.soy2.element.progressDialog",fc.a="firebaseui.auth.soy2.element.listBoxDialog",pc.a="firebaseui.auth.soy2.element.busyIndicator";var bc=["mdl-js-textfield","mdl-js-progress","mdl-js-spinner","mdl-js-button"];function yc(e,t){e&&window.componentHandler&&window.componentHandler[t]&&bc.forEach((function(i){el(e,i)&&window.componentHandler[t](e),B($t(i,e),(function(e){window.componentHandler[t](e)}))}))}function wc(e,t,i){if(Sc.call(this),document.body.appendChild(e),e.showModal||window.dialogPolyfill.registerDialog(e),e.showModal(),mc(e),t&&ql(this,e,(function(t){var i=e.getBoundingClientRect();(t.clientX
'+(t?oc(null):"")+ec(null)+'
",Ei(e)}function Dc(e,t,i){return e=e||{},t=e.ia,e='",Ei(e)}function Oc(e,t,i){e=e||{};var n=e.Tb;t=e.Ta;var a=e.ia,r='",Ei(i)}function Nc(e,t,i){return e=e||{},t=e.Ta,e='

Recover password

Get instructions sent to this email that explain how to reset your password

'+Ql(e)+'
'+(t?oc(null):"")+ec({label:_i("Send")})+'
",Ei(e)}function Fc(e,t,i){t=e.G;var n="";return e="Follow the instructions sent to "+yi(e.email)+" to recover your password",n+='

Check your email

'+e+'

',t&&(n+='
'+ec({label:_i("Done")})+"
"),n+='
",Ei(n)}function Uc(e,t,i){return Ei('
'+pc(null,null,i)+"
")}function jc(e,t,i){return Ei('
'+pc({tb:!0},null,i)+"
")}function Bc(){return Ei('
')}function Vc(e,t,i){t="",e="A sign-in email with additional instructions was sent to "+yi(e.email)+". Check your email to complete sign-in.";var n=Ei('Trouble getting email?');return t+='",Ei(t)}function Hc(e,t,i){return e='

Trouble getting email?

Try these common fixes:

  • Check if the email was marked as spam or filtered.
  • Check your internet connection.
  • Check that you did not misspell your email.
  • Check that your inbox space is not running out or other inbox settings related issues.

If the steps above didn\'t work, you can resend the email. Note that this will deactivate the link in the older email.

'+oc({label:_i("Back")})+'
",Ei(e)}function Gc(e,t,i){return e='",Ei(e)}function Kc(){var e='

New device or browser detected

Try opening the link using the same device or browser where you started the sign-in process.

'+oc({label:_i("Dismiss")})+"
";return Ei(e)}function Zc(){var e='

Session ended

The session associated with this sign-in request has either expired or was cleared.

'+oc({label:_i("Dismiss")})+"
";return Ei(e)}function Wc(e,t,i){return t="",e="You’ve already used "+yi(e.email)+" to sign in. Enter your password for that account.",t+='

Sign in

You already have an account

'+e+"

"+rc()+'
'+tc()+'
",Ei(t)}function zc(e,t,i){var n=e.email;return t="",e=""+gc(e,i),e=_i(e),n="You’ve already used "+yi(n)+". You can connect your "+yi(e)+" account with "+yi(n)+" by signing in with email link below.",e="For this flow to successfully connect your "+yi(e)+" account with this email, you have to open the link on the same device or browser.",t+='",Ei(t)}function Yc(e,t,i){t="";var n=""+gc(e,i);return n=_i(n),e="You originally intended to connect "+yi(n)+" to your email account but have opened the link on a different device where you are not signed in.",n="If you still want to connect your "+yi(n)+" account, open the link on the same device where you started sign-in. Otherwise, tap Continue to sign-in on this device.",t+='",Ei(t)}function qc(e,t,i){var n=e.email;return t="",e=""+gc(e,i),e=_i(e),n="You’ve already used "+yi(n)+". Sign in with "+yi(e)+" to continue.",t+='

Sign in

You already have an account

'+n+'

'+ec({label:_i("Sign in with "+e)})+'
",Ei(t)}function $c(e,t,i){e=e||{};var n=e.kc;t=e.yb,e=e.Eb;var a='

Not Authorized

';return n?(n=""+yi(n)+" is not authorized to view the requested page.",a+=n):a+="User is not authorized to view the requested page.",a+="

",t&&(t="Please contact "+yi(t)+" for authorization.",a+='

'+t+"

"),a+='
'+oc({label:_i("Back")})+'
",Ei(a)}function Jc(e,t,i){return t="",e="To continue sign in with "+yi(e.email)+" on this device, you have to recover the password.",t+='

Sign in

'+e+'

'+oc(null)+ec({label:_i("Recover password")})+'
",Ei(t)}function Xc(e){var t="",i='

for '+yi(e.email)+"

";return t+='

Reset your password

'+i+ac(ki(e))+'
'+ic()+"
",Ei(t)}function Qc(e){return e=e||{},e='

Password changed

You can now sign in with your new password

'+(e.G?'
'+nc()+"
":"")+"
",Ei(e)}function eu(e){return e=e||{},e='

Try resetting your password again

Your request to reset your password has expired or the link has already been used

'+(e.G?'
'+nc()+"
":"")+"
",Ei(e)}function tu(e){var t=e.G,i="";return e="Your sign-in email address has been changed back to "+yi(e.email)+".",i+='

Updated email address

'+e+'

If you didn’t ask to change your sign-in email, it’s possible someone is trying to access your account and you should change your password right away.

'+(t?'
'+nc()+"
":"")+"
",Ei(i)}function iu(e){return e=e||{},e='

Unable to update your email address

There was a problem changing your sign-in email back.

If you try again and still can’t reset your email, try asking your administrator for help.

'+(e.G?'
'+nc()+"
":"")+"
",Ei(e)}function nu(e){return e=e||{},e='

Your email has been verified

You can now sign in with your new account

'+(e.G?'
'+nc()+"
":"")+"
",Ei(e)}function au(e){return e=e||{},e='

Try verifying your email again

Your request to verify your email has expired or the link has already been used

'+(e.G?'
'+nc()+"
":"")+"
",Ei(e)}function ru(e){var t=e.G,i="";return e="You can now sign in with your new email "+yi(e.email)+".",i+='

Your email has been verified and changed

'+e+'

'+(t?'
'+nc()+"
":"")+"
",Ei(i)}function su(e){return e=e||{},e='

Try updating your email again

Your request to verify and update your email has expired or the link has already been used.

'+(e.G?'
'+nc()+"
":"")+"
",Ei(e)}function ou(e){var t=e.factorId,i=e.phoneNumber;e=e.G;var n='

Removed second factor

';switch(t){case"phone":t="The "+yi(t)+" "+yi(i)+" was removed as a second authentication step.",n+=t;break;default:n+="The device or app was removed as a second authentication step."}return n+='

If you don\'t recognize this device, someone might be trying to access your account. Consider changing your password right away.

'+(e?'
'+nc()+"
":"")+"
",Ei(n)}function lu(e){return e=e||{},e='

Couldn\'t remove your second factor

Something went wrong removing your second factor.

Try removing it again. If that doesn\'t work, contact support for assistance.

'+(e.G?'
'+nc()+"
":"")+"
",Ei(e)}function cu(e){var t=e.zb;return e='

Error encountered

'+yi(e.errorMessage)+'

',t&&(e+=ec({label:_i("Retry")})),Ei(e+"
")}function uu(e){return e='

Error encountered

'+yi(e.errorMessage)+"

",Ei(e)}function du(e,t,i){var n=e.Qb;return t="",e="Continue with "+yi(e.jc)+"?",n="You originally wanted to sign in with "+yi(n),t+='

Sign in

'+e+'

'+n+'

'+oc(null)+ec({label:_i("Continue")})+'
",Ei(t)}function hu(e,t,i){var n='",Ei(n)}function fu(e,t,i){e=e||{};var n,a=e.Gb,r=e.Va;return t=e.ia,e=e||{},e=e.Aa,e='

',e='")}function pu(e,t,i){e=e||{},t=e.phoneNumber;var n="";return e='Enter the 6-digit code we sent to ‎'+yi(t)+"",yi(t),t=n,n=Ei('

'),i='"))}function gu(){return Ei('

Sign Out

You are now successfully signed out.

')}function mu(e,t,i){var n='
    ';e=e.ec,t=e.length;for(var a=0;a',r.V?s+=yi(r.V):(r="Sign in to "+yi(r.displayName),s+=r),s=Ei(s+''+o+""),n+='
  • '+s+"
  • "}return n+='
",Ei(n)}function vu(e,t,i){return e='

Sign in

'+Ql(null)+'
'+ec(null)+'
",Ei(e)}function bu(){return Vl(this,"firebaseui-id-submit")}function yu(){return Vl(this,"firebaseui-id-secondary-link")}function wu(e,t){ql(this,bu.call(this),(function(t){e(t)}));var i=yu.call(this);i&&t&&ql(this,i,(function(e){t(e)}))}function Su(){return Vl(this,"firebaseui-id-password")}function Iu(){return Vl(this,"firebaseui-id-password-error")}function Eu(){var e=Su.call(this),t=Iu.call(this);Zl(this,e,(function(){Xl(t)&&(Kl(e,!0),$l(t))}))}function Cu(){var e=Su.call(this),t=Iu.call(this);return nl(e)?(Kl(e,!0),$l(t),t=!0):(Kl(e,!1),Jl(t,Ii("Enter your password").toString()),t=!1),t?nl(e):null}function ku(e,t,i,n,a,r){Pc.call(this,Wc,{email:e},r,"passwordLinking",{F:n,D:a}),this.w=t,this.H=i}O(Ac,rn),O(Pc,Bl),e=Pc.prototype,e.kb=function(){var e=fi(this.fb,this.eb,this.Z,this.s);mc(e),this.g=e},e.v=function(){if(Pc.K.v.call(this),On(Rc(this),new Ac("pageEnter",Rc(this),{pageId:this.Ga})),this.bb()&&this.Z.F){var e=this.Z.F;ql(this,this.bb(),(function(){e()}))}if(this.ab()&&this.Z.D){var t=this.Z.D;ql(this,this.ab(),(function(){t()}))}},e.ya=function(){On(Rc(this),new Ac("pageExit",Rc(this),{pageId:this.Ga})),Pc.K.ya.call(this)},e.o=function(){window.clearTimeout(this.ca),this.eb=this.fb=this.ca=null,this.Fa=!1,this.A=null,vc(this.N()),Pc.K.o.call(this)},e.I=function(e,t,i,n){function a(){if(r.T)return null;r.Fa=!1,window.clearTimeout(r.ca),r.ca=null,r.A&&(vc(r.A),ii(r.A),r.A=null)}var r=this;return r.Fa?null:(xc(r),e.apply(null,t).then(i,n).then(a,a))},L(Pc.prototype,{a:function(e){Ec.call(this);var t=fi(uc,{message:e},null,this.s);this.N().appendChild(t),ql(this,kc.call(this),(function(){ii(t)}))},yc:Ec,Ac:Cc,zc:kc,$:function(e,t){e=fi(hc,{Ma:e,message:t},null,this.s),wc.call(this,e)},h:Sc,Cb:Ic,Cc:function(){return Vl(this,"firebaseui-tos")},bb:function(){return Vl(this,"firebaseui-tos-link")},ab:function(){return Vl(this,"firebaseui-pp-link")},Dc:function(){return Vl(this,"firebaseui-tos-list")}}),Mc.a="firebaseui.auth.soy2.page.signIn",Dc.a="firebaseui.auth.soy2.page.passwordSignIn",Oc.a="firebaseui.auth.soy2.page.passwordSignUp",Nc.a="firebaseui.auth.soy2.page.passwordRecovery",Fc.a="firebaseui.auth.soy2.page.passwordRecoveryEmailSent",Uc.a="firebaseui.auth.soy2.page.callback",jc.a="firebaseui.auth.soy2.page.spinner",Bc.a="firebaseui.auth.soy2.page.blank",Vc.a="firebaseui.auth.soy2.page.emailLinkSignInSent",Hc.a="firebaseui.auth.soy2.page.emailNotReceived",Gc.a="firebaseui.auth.soy2.page.emailLinkSignInConfirmation",Kc.a="firebaseui.auth.soy2.page.differentDeviceError",Zc.a="firebaseui.auth.soy2.page.anonymousUserMismatch",Wc.a="firebaseui.auth.soy2.page.passwordLinking",zc.a="firebaseui.auth.soy2.page.emailLinkSignInLinking",Yc.a="firebaseui.auth.soy2.page.emailLinkSignInLinkingDifferentDevice",qc.a="firebaseui.auth.soy2.page.federatedLinking",$c.a="firebaseui.auth.soy2.page.unauthorizedUser",Jc.a="firebaseui.auth.soy2.page.unsupportedProvider",Xc.a="firebaseui.auth.soy2.page.passwordReset",Qc.a="firebaseui.auth.soy2.page.passwordResetSuccess",eu.a="firebaseui.auth.soy2.page.passwordResetFailure",tu.a="firebaseui.auth.soy2.page.emailChangeRevokeSuccess",iu.a="firebaseui.auth.soy2.page.emailChangeRevokeFailure",nu.a="firebaseui.auth.soy2.page.emailVerificationSuccess",au.a="firebaseui.auth.soy2.page.emailVerificationFailure",ru.a="firebaseui.auth.soy2.page.verifyAndChangeEmailSuccess",su.a="firebaseui.auth.soy2.page.verifyAndChangeEmailFailure",ou.a="firebaseui.auth.soy2.page.revertSecondFactorAdditionSuccess",lu.a="firebaseui.auth.soy2.page.revertSecondFactorAdditionFailure",cu.a="firebaseui.auth.soy2.page.recoverableError",uu.a="firebaseui.auth.soy2.page.unrecoverableError",du.a="firebaseui.auth.soy2.page.emailMismatch",hu.a="firebaseui.auth.soy2.page.providerSignIn",fu.a="firebaseui.auth.soy2.page.phoneSignInStart",pu.a="firebaseui.auth.soy2.page.phoneSignInFinish",gu.a="firebaseui.auth.soy2.page.signOut",mu.a="firebaseui.auth.soy2.page.selectTenant",vu.a="firebaseui.auth.soy2.page.providerMatchByEmail",l(ku,Pc),ku.prototype.v=function(){this.P(),this.M(this.w,this.H),Tc(this,this.i(),this.w),this.i().focus(),Pc.prototype.v.call(this)},ku.prototype.o=function(){this.w=null,Pc.prototype.o.call(this)},ku.prototype.j=function(){return nl(Vl(this,"firebaseui-id-email"))},L(ku.prototype,{i:Su,B:Iu,P:Eu,u:Cu,ea:bu,ba:yu,M:wu});var _u=/^[+a-zA-Z0-9_.!#$%&'*\/=?^`{|}~-]+@([a-zA-Z0-9-]+\.)+[a-zA-Z0-9]{2,63}$/;function Au(){return Vl(this,"firebaseui-id-email")}function Pu(){return Vl(this,"firebaseui-id-email-error")}function xu(e){var t=Au.call(this),i=Pu.call(this);Zl(this,t,(function(){Xl(i)&&(Kl(t,!0),$l(i))})),e&&Wl(this,t,(function(){e()}))}function Ru(){return Q(nl(Au.call(this))||"")}function Lu(){var e=Au.call(this),t=Pu.call(this),i=nl(e)||"";return i?_u.test(i)?(Kl(e,!0),$l(t),t=!0):(Kl(e,!1),Jl(t,Ii("That email address isn't correct").toString()),t=!1):(Kl(e,!1),Jl(t,Ii("Enter your email address to continue").toString()),t=!1),t?Q(nl(e)):null}function Tu(e,t,i,n,a,r,s){Pc.call(this,Dc,{email:i,ia:!!r},s,"passwordSignIn",{F:n,D:a}),this.w=e,this.H=t}function Mu(e,t,i,n,a,r){Pc.call(this,e,t,n,a||"notice",r),this.i=i||null}function Du(e,t,i,n,a){Mu.call(this,Fc,{email:e,G:!!t},t,a,"passwordRecoveryEmailSent",{F:i,D:n})}function Ou(e,t){Mu.call(this,nu,{G:!!e},e,t,"emailVerificationSuccess")}function Nu(e,t){Mu.call(this,au,{G:!!e},e,t,"emailVerificationFailure")}function Fu(e,t,i){Mu.call(this,ru,{email:e,G:!!t},t,i,"verifyAndChangeEmailSuccess")}function Uu(e,t){Mu.call(this,su,{G:!!e},e,t,"verifyAndChangeEmailFailure")}function ju(e,t){Mu.call(this,lu,{G:!!e},e,t,"revertSecondFactorAdditionFailure")}function Bu(e){Mu.call(this,gu,void 0,void 0,e,"signOut")}function Vu(e,t){Mu.call(this,Qc,{G:!!e},e,t,"passwordResetSuccess")}function Hu(e,t){Mu.call(this,eu,{G:!!e},e,t,"passwordResetFailure")}function Gu(e,t){Mu.call(this,iu,{G:!!e},e,t,"emailChangeRevokeFailure")}function Ku(e,t,i){Mu.call(this,cu,{errorMessage:e,zb:!!t},t,i,"recoverableError")}function Zu(e,t){Mu.call(this,uu,{errorMessage:e},void 0,t,"unrecoverableError")}function Wu(e){if("auth/invalid-credential"===e.code&&e.message&&-1!==e.message.indexOf("error=consent_required"))return{code:"auth/user-cancelled"};if(e.message&&-1!==e.message.indexOf("HTTP Cloud Function returned an error:")){var t=JSON.parse(e.message.substring(e.message.indexOf("{"),e.message.lastIndexOf("}")+1));return{code:e.code,message:t&&t.error&&t.error.message||e.message}}return e}function zu(e,t,i,n){function a(i){if(!i.name||"cancel"!=i.name){e:{var n=i.message;try{var a=((JSON.parse(n).error||{}).message||"").toLowerCase().match(/invalid.+(access|id)_token/);if(a&&a.length){var r=!0;break e}}catch(s){}r=!1}if(r)i=Rc(t),t.m(),ad(e,i,void 0,Ii("Your sign-in session has expired. Please try again.").toString());else{if(r=i&&i.message||"",i.code){if("auth/email-already-in-use"==i.code||"auth/credential-already-in-use"==i.code)return;r=$u(i)}t.a(r)}}}if(Gh(e),n)return Yu(e,i),la();if(!i.credential)throw Error("No credential found!");if(!Th(e).currentUser&&!i.user)throw Error("User not logged in.");try{var r=ef(e,i)}catch(s){return Sr(s.code||s.message,s),t.a(s.code||s.message),la()}return i=r.then((function(t){Yu(e,t)}),a).then(void 0,a),Vh(e,r),la(i)}function Yu(e,t){if(!t.user)throw Error("No user found");var i=No(Wh(e));if(Oo(Wh(e))&&i&&kr("Both signInSuccess and signInSuccessWithAuthResult callbacks are provided. Only signInSuccessWithAuthResult callback will be invoked."),i){i=No(Wh(e));var n=Ps(Dh(e))||void 0;_s(Is,Dh(e));var a=!1;Ea()?(i&&!i(t,n)||(a=!0,Wt(window.opener.location,qu(e,n))),i||window.close()):i&&!i(t,n)||(a=!0,Wt(window.location,qu(e,n))),a||e.reset()}else{i=t.user,t=t.credential,n=Oo(Wh(e)),a=Ps(Dh(e))||void 0,_s(Is,Dh(e));var r=!1;Ea()?(n&&!n(i,t,a)||(r=!0,Wt(window.opener.location,qu(e,a))),n||window.close()):n&&!n(i,t,a)||(r=!0,Wt(window.location,qu(e,a))),r||e.reset()}}function qu(e,t){if(e=t||Wh(e).a.get("signInSuccessUrl"),!e)throw Error("No redirect URL has been found. You must either specify a signInSuccessUrl in the configuration, pass in a redirect URL to the widget URL, or return false from the callback.");return e}function $u(e){var t={code:e.code};t=t||{};var i="";switch(t.code){case"auth/email-already-in-use":i+="The email address is already used by another account";break;case"auth/requires-recent-login":i+=Wi();break;case"auth/too-many-requests":i+="You have entered an incorrect password too many times. Please try again in a few minutes.";break;case"auth/user-cancelled":i+="Please authorize the required permissions to sign in to the application";break;case"auth/user-not-found":i+="That email address doesn't match an existing account";break;case"auth/user-token-expired":i+=Wi();break;case"auth/weak-password":i+="Strong passwords have at least 6 characters and a mix of letters and numbers";break;case"auth/wrong-password":i+="The email and password you entered don't match";break;case"auth/network-request-failed":i+="A network error has occurred";break;case"auth/invalid-phone-number":i+=Vi();break;case"auth/invalid-verification-code":i+=Ii("Wrong code. Try again.");break;case"auth/code-expired":i+="This code is no longer valid";break;case"auth/expired-action-code":i+="This code has expired.";break;case"auth/invalid-action-code":i+="The action code is invalid. This can happen if the code is malformed, expired, or has already been used."}if(t=Ii(i).toString())return t;try{return JSON.parse(e.message),Sr("Internal error: "+e.message,void 0),Gi().toString()}catch(n){return e.message}}function Ju(e,t,i){var n=ao[t]&&b.Z.auth[ao[t]]?new b.Z.auth[ao[t]]:0==t.indexOf("saml.")?new b.Z.auth.SAMLAuthProvider(t):new b.Z.auth.OAuthProvider(t);if(!n)throw Error("Invalid Firebase Auth provider!");var a=So(Wh(e),t);if(n.addScope)for(var r=0;rn&&(n=t.length),a=t.indexOf("?"),0>a||a>n?(a=n,i=""):i=t.substring(a+1,n),t=[t.substr(0,a),i,t.substr(n)],n=t[1],t[1]=e?n?n+"&"+e:e:n,n=t[0]+(t[1]?"?"+t[1]:"")+t[2]):n=t,Wh(this).a.get("popupMode")?(e=(window.screen.availHeight-600)/2,t=(window.screen.availWidth-500)/2,n=n||"about:blank",e={width:500,height:600,top:0{if(console.log(e),"success"===e.data.status){const t={zelid:a.data.public_address,signature:a.data.signature,loginPhrase:this.loginPhrase};this.$store.commit("flux/setPrivilege",e.data.data.privilage),this.$store.commit("flux/setZelid",t.zelid),localStorage.setItem("zelidauth",N.stringify(t)),this.showToast("success",e.data.data.message)}else this.showToast(this.getVariant(e.data.status),e.data.data.message||e.data.data),this.resetLoginUI()})).catch((e=>{console.log(e),this.resetLoginUI()}))}else{if(e.displayName){const t=/\b((http|https|ftp):\/\/[-A-Z0-9+&@#%?=~_|!:,.;]*[-A-Z0-9+&@#%=~_|]|www\.[-A-Z0-9+&@#%?=~_|!:,.;]*[-A-Z0-9+&@#%=~_|]|[-A-Z0-9]+\.[A-Z]{2,}[-A-Z0-9+&@#%?=~_|]*[-A-Z0-9+&@#%=~_|])/i;if(t.test(e.displayName))throw new Error("Login Failed, please try again.")}e.sendEmailVerification().then((()=>{this.showToast("info","please verify email")})).catch((()=>{this.showToast("warning","failed to send new verification email")})).finally((async()=>{document.getElementById("ssoVerify").style.display="block",document.getElementById("ssoEmailVerify").style.display="block",document.getElementById("emailLoginForm").style.display="none",this.ssoVerification=!0,await this.checkVerification()}))}}catch(t){this.resetLoginUI(),this.showToast("warning","Login Failed, please try again.")}},async checkVerification(){try{let e=(0,I.PR)();e&&this.ssoVerification?(await e.reload(),e=(0,I.PR)(),e.emailVerified?(this.showToast("info","email verified"),document.getElementById("ssoVerify").style.display="none",this.handleSignedInUser(e),this.ssoVerification=!1):setTimeout((()=>{this.checkVerification()}),5e3)):this.resetLoginUI()}catch(e){this.showToast("warning","email verification failed"),this.resetLoginUI()}},cancelVerification(){this.resetLoginUI()},resetLoginUI(){document.getElementById("ssoVerify").style.display="none",document.getElementById("ssoEmailVerify").style.display="none",document.getElementById("ssoLoggedIn").style.display="none",document.getElementById("emailLoginProcessing").style.display="none",document.getElementById("emailLoginExecute").style.display="block",document.getElementById("emailLoginForm").style.display="block",document.getElementById("signUpButton").style.display="block",this.emailForm.email="",this.emailForm.password="",this.ui.reset(),this.ui.start("#firebaseui-auth-container"),this.ssoVerification=!1},async daemonWelcomeGetFluxNodeStatus(){const e=await A.Z.getFluxNodeStatus().catch((()=>null)),t=await A.Z.getBlockchainInfo().catch((()=>null));if(!e||!t)return this.getNodeStatusResponse.status="UNKNOWN",this.getNodeStatusResponse.nodeStatus="Unable to connect to Flux Blockchain Daemon.",void(this.getNodeStatusResponse.class="danger");this.getNodeStatusResponse.status=e.data.status,this.getNodeStatusResponse.data=e.data.data,this.getNodeStatusResponse.data&&t.data.data&&(t.data.data.blocks+316100){const e=+i+1;this.$store.commit("flux/setFluxPort",e)}n+=t,n+=":",n+=this.config.apiPort}return F.get("backendURL")||n},initiateLoginWS(){const e=this;let t=this.backendURL();t=t.replace("https://","wss://"),t=t.replace("http://","ws://");const i=`${t}/ws/id/${this.loginPhrase}`,n=new WebSocket(i);this.websocket=n,n.onopen=t=>{e.onOpen(t)},n.onclose=t=>{e.onClose(t)},n.onmessage=t=>{e.onMessage(t)},n.onerror=t=>{e.onError(t)}},onError(e){console.log(e)},onMessage(e){const t=N.parse(e.data);if(console.log(t),"success"===t.status&&t.data){const e={zelid:t.data.zelid,signature:t.data.signature,loginPhrase:t.data.loginPhrase};this.$store.commit("flux/setPrivilege",t.data.privilage),this.$store.commit("flux/setZelid",e.zelid),localStorage.setItem("zelidauth",N.stringify(e)),this.showToast("success",t.data.message)}console.log(t),console.log(e)},onClose(e){console.log(e)},onOpen(e){console.log(e)},showToast(e,t){this.$toast({component:E.Z,props:{title:t,icon:"BellIcon",variant:e}})},getZelIdLoginPhrase(){_.Z.loginPhrase().then((e=>{console.log(e),"error"===e.data.status?this.getEmergencyLoginPhrase():(this.loginPhrase=e.data.data,this.loginForm.loginPhrase=e.data.data)})).catch((e=>{console.log(e),this.showToast("danger",e)}))},getEmergencyLoginPhrase(){_.Z.emergencyLoginPhrase().then((e=>{console.log(e),"error"===e.data.status?this.showToast("danger",e.data.data.message):(this.loginPhrase=e.data.data,this.loginForm.loginPhrase=e.data.data)})).catch((e=>{console.log(e),this.showToast("danger",e)}))},getVariant(e){return"error"===e?"danger":"message"===e?"info":e},login(){console.log(this.loginForm),_.Z.verifyLogin(this.loginForm).then((e=>{if(console.log(e),"success"===e.data.status){const t={zelid:this.loginForm.zelid,signature:this.loginForm.signature,loginPhrase:this.loginForm.loginPhrase};this.$store.commit("flux/setPrivilege",e.data.data.privilage),this.$store.commit("flux/setZelid",t.zelid),localStorage.setItem("zelidauth",N.stringify(t)),this.showToast("success",e.data.data.message)}else this.showToast(this.getVariant(e.data.status),e.data.data.message||e.data.data)})).catch((e=>{console.log(e),this.showToast("danger",e.toString())}))},async emailLogin(){try{if(this.$refs.emailLoginForm.reportValidity()){document.getElementById("emailLoginExecute").style.display="none",document.getElementById("emailLoginProcessing").style.display="block",document.getElementById("signUpButton").style.display="none";const e=await(0,I.fZ)(this.emailForm);this.handleSignInSuccessWithAuthResult(e)}}catch(e){document.getElementById("emailLoginExecute").style.display="block",document.getElementById("emailLoginProcessing").style.display="none",document.getElementById("signUpButton").style.display="block",document.getElementById("ssoEmailVerify").style.display="none",this.showToast("danger","login failed, please try again")}},async createAccount(){this.modalShow=!this.modalShow},async onSessionConnect(e){console.log(e);const t=await this.signClient.request({topic:e.topic,chainId:"eip155:1",request:{method:"personal_sign",params:[this.loginPhrase,e.namespaces.eip155.accounts[0].split(":")[2]]}});console.log(t);const i={zelid:e.namespaces.eip155.accounts[0].split(":")[2],signature:t,loginPhrase:this.loginPhrase},n=await _.Z.verifyLogin(i);if(console.log(n),"success"===n.data.status){const e=i;this.$store.commit("flux/setPrivilege",n.data.data.privilage),this.$store.commit("flux/setZelid",e.zelid),localStorage.setItem("zelidauth",N.stringify(e)),this.showToast("success",n.data.data.message)}else this.showToast(this.getVariant(n.data.status),n.data.data.message||n.data.data)},onSessionUpdate(e){console.log(e)},async initWalletConnect(){const e=this;try{const t=await g.ZP.init(L);this.signClient=t,t.on("session_event",(({event:e})=>{console.log(e)})),t.on("session_update",(({topic:i,params:n})=>{const{namespaces:a}=n,r=t.session.get(i),s={...r,namespaces:a};e.onSessionUpdate(s)})),t.on("session_delete",(()=>{}));const{uri:i,approval:n}=await t.connect({requiredNamespaces:{eip155:{methods:["personal_sign"],chains:["eip155:1"],events:["chainChanged","accountsChanged"]}}});if(i){T.openModal({uri:i});const e=await n();this.onSessionConnect(e),T.closeModal()}}catch(t){console.error(t),this.showToast("danger",t.message)}},async siwe(e,t){try{const i=`0x${x.from(e,"utf8").toString("hex")}`,n=await O.request({method:"personal_sign",params:[i,t]});console.log(n);const a={zelid:t,signature:n,loginPhrase:this.loginPhrase},r=await _.Z.verifyLogin(a);if(console.log(r),"success"===r.data.status){const e=a;this.$store.commit("flux/setPrivilege",r.data.data.privilage),this.$store.commit("flux/setZelid",e.zelid),localStorage.setItem("zelidauth",N.stringify(e)),this.showToast("success",r.data.data.message)}else this.showToast(this.getVariant(r.data.status),r.data.data.message||r.data.data)}catch(i){console.error(i),this.showToast("danger",i.message)}},async initMetamask(){try{if(!O)return void this.showToast("danger","Metamask not detected");let e;if(O&&!O.selectedAddress){const t=await O.request({method:"eth_requestAccounts",params:[]});console.log(t),e=t[0]}else e=O.selectedAddress;this.siwe(this.loginPhrase,e)}catch(e){this.showToast("danger",e.message)}},async initSSP(){try{if(!window.ssp)return void this.showToast("danger","SSP Wallet not installed");const e=await window.ssp.request("sspwid_sign_message",{message:this.loginPhrase});if("ERROR"===e.status)throw new Error(e.data||e.result);const t={zelid:e.address,signature:e.signature,loginPhrase:this.loginPhrase},i=await _.Z.verifyLogin(t);if(console.log(i),"success"===i.data.status){const e=t;this.$store.commit("flux/setPrivilege",i.data.data.privilage),this.$store.commit("flux/setZelid",e.zelid),localStorage.setItem("zelidauth",N.stringify(e)),this.showToast("success",i.data.data.message)}else this.showToast(this.getVariant(i.data.status),i.data.data.message||i.data.data)}catch(e){this.showToast("danger",e.message)}},checkFormValidity(){const e=this.$refs.form.reportValidity();return this.createSSOForm.pw1.length>=8?(this.pw1State=!0,this.createSSOForm.pw2.length>=8?(this.pw2State=!0,this.createSSOForm.pw1!==this.createSSOForm.pw2?(this.showToast("info","passwords do not match"),this.pw1State=!1,this.pw2State=!1,null):e):(this.showToast("info","password must be at least 8 chars"),null)):(this.showToast("info","password must be at least 8 chars"),null)},resetModal(){this.createSSOForm.email="",this.createSSOForm.pw1="",this.createSSOForm.pw2="",this.emailState=null,this.pw1State=null,this.pw2State=null},handleOk(e){e.preventDefault(),this.handleSubmit()},async handleSubmit(){if(this.checkFormValidity()){try{const e=await(0,I.wY)({email:this.createSSOForm.email,password:this.createSSOForm.pw1});this.handleSignInSuccessWithAuthResult(e)}catch(e){this.resetLoginUI(),this.showToast("danger","Account creation failed, try again")}this.$nextTick((()=>{this.$bvModal.hide("modal-prevent-closing")}))}}}},j=U;var B=i(1001),V=(0,B.Z)(j,n,a,!1,null,null,null);const H=V.exports},97211:(e,t,i)=>{var n;(function(){var a=window.CustomEvent;function r(e){while(e&&e!==document.body){var t=window.getComputedStyle(e),i=function(e,i){return!(void 0===t[e]||t[e]===i)};if(t.opacity<1||i("zIndex","auto")||i("transform","none")||i("mixBlendMode","normal")||i("filter","none")||i("perspective","none")||"isolate"===t["isolation"]||"fixed"===t.position||"touch"===t.webkitOverflowScrolling)return!0;e=e.parentElement}return!1}function s(e){while(e){if("dialog"===e.localName)return e;e=e.parentElement}return null}function o(e){e&&e.blur&&e!==document.body&&e.blur()}function l(e,t){for(var i=0;i=0&&(e=this.dialog_),!e){var t=["button","input","keygen","select","textarea"],i=t.map((function(e){return e+":not([disabled])"}));i.push('[tabindex]:not([disabled]):not([tabindex=""])'),e=this.dialog_.querySelector(i.join(", "))}o(document.activeElement),e&&e.focus()},updateZIndex:function(e,t){if(e, the polyfill may not work correctly",e),"dialog"!==e.localName)throw new Error("Failed to register dialog: The element is not a dialog.");new u(e)},registerDialog:function(e){e.showModal||d.forceRegisterDialog(e)},DialogManager:function(){this.pendingDialogStack=[];var e=this.checkDOM_.bind(this);this.overlay=document.createElement("div"),this.overlay.className="_dialog_overlay",this.overlay.addEventListener("click",function(t){this.forwardTab_=void 0,t.stopPropagation(),e([])}.bind(this)),this.handleKey_=this.handleKey_.bind(this),this.handleFocus_=this.handleFocus_.bind(this),this.zIndexLow_=1e5,this.zIndexHigh_=100150,this.forwardTab_=void 0,"MutationObserver"in window&&(this.mo_=new MutationObserver((function(t){var i=[];t.forEach((function(e){for(var t,n=0;t=e.removedNodes[n];++n)t instanceof Element&&("dialog"===t.localName&&i.push(t),i=i.concat(t.querySelectorAll("dialog")))})),i.length&&e(i)})))}};if(d.DialogManager.prototype.blockDocument=function(){document.documentElement.addEventListener("focus",this.handleFocus_,!0),document.addEventListener("keydown",this.handleKey_),this.mo_&&this.mo_.observe(document,{childList:!0,subtree:!0})},d.DialogManager.prototype.unblockDocument=function(){document.documentElement.removeEventListener("focus",this.handleFocus_,!0),document.removeEventListener("keydown",this.handleKey_),this.mo_&&this.mo_.disconnect()},d.DialogManager.prototype.updateStacking=function(){for(var e,t=this.zIndexHigh_,i=0;e=this.pendingDialogStack[i];++i)e.updateZIndex(--t,--t),0===i&&(this.overlay.style.zIndex=--t);var n=this.pendingDialogStack[0];if(n){var a=n.dialog.parentNode||document.body;a.appendChild(this.overlay)}else this.overlay.parentNode&&this.overlay.parentNode.removeChild(this.overlay)},d.DialogManager.prototype.containedByTopDialog_=function(e){while(e=s(e)){for(var t,i=0;t=this.pendingDialogStack[i];++i)if(t.dialog===e)return 0===i;e=e.parentElement}return!1},d.DialogManager.prototype.handleFocus_=function(e){if(!this.containedByTopDialog_(e.target)&&(e.preventDefault(),e.stopPropagation(),o(e.target),void 0!==this.forwardTab_)){var t=this.pendingDialogStack[0],i=t.dialog,n=i.compareDocumentPosition(e.target);return n&Node.DOCUMENT_POSITION_PRECEDING&&(this.forwardTab_?t.focus_():document.documentElement.focus()),!1}},d.DialogManager.prototype.handleKey_=function(e){if(this.forwardTab_=void 0,27===e.keyCode){e.preventDefault(),e.stopPropagation();var t=new a("cancel",{bubbles:!1,cancelable:!0}),i=this.pendingDialogStack[0];i&&i.dialog.dispatchEvent(t)&&i.dialog.close()}else 9===e.keyCode&&(this.forwardTab_=!e.shiftKey)},d.DialogManager.prototype.checkDOM_=function(e){var t=this.pendingDialogStack.slice();t.forEach((function(t){-1!==e.indexOf(t.dialog)?t.downgradeModal():t.maybeHideModal()}))},d.DialogManager.prototype.pushDialog=function(e){var t=(this.zIndexHigh_-this.zIndexLow_)/2-1;return!(this.pendingDialogStack.length>=t)&&(1===this.pendingDialogStack.unshift(e)&&this.blockDocument(),this.updateStacking(),!0)},d.DialogManager.prototype.removeDialog=function(e){var t=this.pendingDialogStack.indexOf(e);-1!==t&&(this.pendingDialogStack.splice(t,1),0===this.pendingDialogStack.length&&this.unblockDocument(),this.updateStacking())},d.dm=new d.DialogManager,d.formSubmitter=null,d.useValue=null,void 0===window.HTMLDialogElement){var h=document.createElement("form");if(h.setAttribute("method","dialog"),"dialog"!==h.method){var f=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"method");if(f){var p=f.get;f.get=function(){return c(this)?"dialog":p.call(this)};var g=f.set;f.set=function(e){return"string"===typeof e&&"dialog"===e.toLowerCase()?this.setAttribute("method",e):g.call(this,e)},Object.defineProperty(HTMLFormElement.prototype,"method",f)}}document.addEventListener("click",(function(e){if(d.formSubmitter=null,d.useValue=null,!e.defaultPrevented){var t=e.target;if(t&&c(t.form)){var i="submit"===t.type&&["button","input"].indexOf(t.localName)>-1;if(!i){if("input"!==t.localName||"image"!==t.type)return;d.useValue=e.offsetX+","+e.offsetY}var n=s(t);n&&(d.formSubmitter=t)}}}),!1);var m=HTMLFormElement.prototype.submit,v=function(){if(!c(this))return m.call(this);var e=s(this);e&&e.close()};HTMLFormElement.prototype.submit=v,document.addEventListener("submit",(function(e){var t=e.target;if(c(t)){e.preventDefault();var i=s(t);if(i){var n=d.formSubmitter;n&&n.form===t?i.close(d.useValue||n.value):i.close(),d.formSubmitter=null}}}),!0)}d["forceRegisterDialog"]=d.forceRegisterDialog,d["registerDialog"]=d.registerDialog,"amd"in i.amdD?(n=function(){return d}.call(t,i,t,e),void 0===n||(e.exports=n)):"object"===typeof e["exports"]?e["exports"]=d:window["dialogPolyfill"]=d})()},74997:()=>{ -/** - * @license - * Copyright 2015 Google Inc. All Rights Reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -(function(){"use strict";var e=function(e){this.element_=e,this.init()};window["MaterialButton"]=e,e.prototype.Constant_={},e.prototype.CssClasses_={RIPPLE_EFFECT:"mdl-js-ripple-effect",RIPPLE_CONTAINER:"mdl-button__ripple-container",RIPPLE:"mdl-ripple"},e.prototype.blurHandler_=function(e){e&&this.element_.blur()},e.prototype.disable=function(){this.element_.disabled=!0},e.prototype["disable"]=e.prototype.disable,e.prototype.enable=function(){this.element_.disabled=!1},e.prototype["enable"]=e.prototype.enable,e.prototype.init=function(){if(this.element_){if(this.element_.classList.contains(this.CssClasses_.RIPPLE_EFFECT)){var e=document.createElement("span");e.classList.add(this.CssClasses_.RIPPLE_CONTAINER),this.rippleElement_=document.createElement("span"),this.rippleElement_.classList.add(this.CssClasses_.RIPPLE),e.appendChild(this.rippleElement_),this.boundRippleBlurHandler=this.blurHandler_.bind(this),this.rippleElement_.addEventListener("mouseup",this.boundRippleBlurHandler),this.element_.appendChild(e)}this.boundButtonBlurHandler=this.blurHandler_.bind(this),this.element_.addEventListener("mouseup",this.boundButtonBlurHandler),this.element_.addEventListener("mouseleave",this.boundButtonBlurHandler)}},componentHandler.register({constructor:e,classAsString:"MaterialButton",cssClass:"mdl-js-button",widget:!0})})()},73544:()=>{ -/** - * @license - * Copyright 2015 Google Inc. All Rights Reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -var e={upgradeDom:function(e,t){},upgradeElement:function(e,t){},upgradeElements:function(e){},upgradeAllRegistered:function(){},registerUpgradedCallback:function(e,t){},register:function(e){},downgradeElements:function(e){}};e=function(){"use strict";var e=[],t=[],i="mdlComponentConfigInternal_";function n(t,i){for(var n=0;n0&&c(t.children))}function u(t){var a="undefined"===typeof t.widget&&"undefined"===typeof t["widget"],r=!0;a||(r=t.widget||t["widget"]);var s={classConstructor:t.constructor||t["constructor"],className:t.classAsString||t["classAsString"],cssClass:t.cssClass||t["cssClass"],widget:r,callbacks:[]};if(e.forEach((function(e){if(e.cssClass===s.cssClass)throw new Error("The provided cssClass has already been registered: "+e.cssClass);if(e.className===s.className)throw new Error("The provided className has already been registered")})),t.constructor.prototype.hasOwnProperty(i))throw new Error("MDL component classes must not have "+i+" defined as a property.");var o=n(t.classAsString,s);o||e.push(s)}function d(e,t){var i=n(e);i&&i.callbacks.push(t)}function h(){for(var t=0;t{ -/** - * @license - * Copyright 2015 Google Inc. All Rights Reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -(function(){"use strict";var e=function(e){this.element_=e,this.init()};window["MaterialProgress"]=e,e.prototype.Constant_={},e.prototype.CssClasses_={INDETERMINATE_CLASS:"mdl-progress__indeterminate"},e.prototype.setProgress=function(e){this.element_.classList.contains(this.CssClasses_.INDETERMINATE_CLASS)||(this.progressbar_.style.width=e+"%")},e.prototype["setProgress"]=e.prototype.setProgress,e.prototype.setBuffer=function(e){this.bufferbar_.style.width=e+"%",this.auxbar_.style.width=100-e+"%"},e.prototype["setBuffer"]=e.prototype.setBuffer,e.prototype.init=function(){if(this.element_){var e=document.createElement("div");e.className="progressbar bar bar1",this.element_.appendChild(e),this.progressbar_=e,e=document.createElement("div"),e.className="bufferbar bar bar2",this.element_.appendChild(e),this.bufferbar_=e,e=document.createElement("div"),e.className="auxbar bar bar3",this.element_.appendChild(e),this.auxbar_=e,this.progressbar_.style.width="0%",this.bufferbar_.style.width="100%",this.auxbar_.style.width="0%",this.element_.classList.add("is-upgraded")}},componentHandler.register({constructor:e,classAsString:"MaterialProgress",cssClass:"mdl-js-progress",widget:!0})})()},95634:()=>{ -/** - * @license - * Copyright 2015 Google Inc. All Rights Reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -(function(){"use strict";var e=function(e){this.element_=e,this.init()};window["MaterialSpinner"]=e,e.prototype.Constant_={MDL_SPINNER_LAYER_COUNT:4},e.prototype.CssClasses_={MDL_SPINNER_LAYER:"mdl-spinner__layer",MDL_SPINNER_CIRCLE_CLIPPER:"mdl-spinner__circle-clipper",MDL_SPINNER_CIRCLE:"mdl-spinner__circle",MDL_SPINNER_GAP_PATCH:"mdl-spinner__gap-patch",MDL_SPINNER_LEFT:"mdl-spinner__left",MDL_SPINNER_RIGHT:"mdl-spinner__right"},e.prototype.createLayer=function(e){var t=document.createElement("div");t.classList.add(this.CssClasses_.MDL_SPINNER_LAYER),t.classList.add(this.CssClasses_.MDL_SPINNER_LAYER+"-"+e);var i=document.createElement("div");i.classList.add(this.CssClasses_.MDL_SPINNER_CIRCLE_CLIPPER),i.classList.add(this.CssClasses_.MDL_SPINNER_LEFT);var n=document.createElement("div");n.classList.add(this.CssClasses_.MDL_SPINNER_GAP_PATCH);var a=document.createElement("div");a.classList.add(this.CssClasses_.MDL_SPINNER_CIRCLE_CLIPPER),a.classList.add(this.CssClasses_.MDL_SPINNER_RIGHT);for(var r=[i,n,a],s=0;s{ -/** - * @license - * Copyright 2015 Google Inc. All Rights Reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -(function(){"use strict";var e=function(e){this.element_=e,this.maxRows=this.Constant_.NO_MAX_ROWS,this.init()};window["MaterialTextfield"]=e,e.prototype.Constant_={NO_MAX_ROWS:-1,MAX_ROWS_ATTRIBUTE:"maxrows"},e.prototype.CssClasses_={LABEL:"mdl-textfield__label",INPUT:"mdl-textfield__input",IS_DIRTY:"is-dirty",IS_FOCUSED:"is-focused",IS_DISABLED:"is-disabled",IS_INVALID:"is-invalid",IS_UPGRADED:"is-upgraded",HAS_PLACEHOLDER:"has-placeholder"},e.prototype.onKeyDown_=function(e){var t=e.target.value.split("\n").length;13===e.keyCode&&t>=this.maxRows&&e.preventDefault()},e.prototype.onFocus_=function(e){this.element_.classList.add(this.CssClasses_.IS_FOCUSED)},e.prototype.onBlur_=function(e){this.element_.classList.remove(this.CssClasses_.IS_FOCUSED)},e.prototype.onReset_=function(e){this.updateClasses_()},e.prototype.updateClasses_=function(){this.checkDisabled(),this.checkValidity(),this.checkDirty(),this.checkFocus()},e.prototype.checkDisabled=function(){this.input_.disabled?this.element_.classList.add(this.CssClasses_.IS_DISABLED):this.element_.classList.remove(this.CssClasses_.IS_DISABLED)},e.prototype["checkDisabled"]=e.prototype.checkDisabled,e.prototype.checkFocus=function(){Boolean(this.element_.querySelector(":focus"))?this.element_.classList.add(this.CssClasses_.IS_FOCUSED):this.element_.classList.remove(this.CssClasses_.IS_FOCUSED)},e.prototype["checkFocus"]=e.prototype.checkFocus,e.prototype.checkValidity=function(){this.input_.validity&&(this.input_.validity.valid?this.element_.classList.remove(this.CssClasses_.IS_INVALID):this.element_.classList.add(this.CssClasses_.IS_INVALID))},e.prototype["checkValidity"]=e.prototype.checkValidity,e.prototype.checkDirty=function(){this.input_.value&&this.input_.value.length>0?this.element_.classList.add(this.CssClasses_.IS_DIRTY):this.element_.classList.remove(this.CssClasses_.IS_DIRTY)},e.prototype["checkDirty"]=e.prototype.checkDirty,e.prototype.disable=function(){this.input_.disabled=!0,this.updateClasses_()},e.prototype["disable"]=e.prototype.disable,e.prototype.enable=function(){this.input_.disabled=!1,this.updateClasses_()},e.prototype["enable"]=e.prototype.enable,e.prototype.change=function(e){this.input_.value=e||"",this.updateClasses_()},e.prototype["change"]=e.prototype.change,e.prototype.init=function(){if(this.element_&&(this.label_=this.element_.querySelector("."+this.CssClasses_.LABEL),this.input_=this.element_.querySelector("."+this.CssClasses_.INPUT),this.input_)){this.input_.hasAttribute(this.Constant_.MAX_ROWS_ATTRIBUTE)&&(this.maxRows=parseInt(this.input_.getAttribute(this.Constant_.MAX_ROWS_ATTRIBUTE),10),isNaN(this.maxRows)&&(this.maxRows=this.Constant_.NO_MAX_ROWS)),this.input_.hasAttribute("placeholder")&&this.element_.classList.add(this.CssClasses_.HAS_PLACEHOLDER),this.boundUpdateClassesHandler=this.updateClasses_.bind(this),this.boundFocusHandler=this.onFocus_.bind(this),this.boundBlurHandler=this.onBlur_.bind(this),this.boundResetHandler=this.onReset_.bind(this),this.input_.addEventListener("input",this.boundUpdateClassesHandler),this.input_.addEventListener("focus",this.boundFocusHandler),this.input_.addEventListener("blur",this.boundBlurHandler),this.input_.addEventListener("reset",this.boundResetHandler),this.maxRows!==this.Constant_.NO_MAX_ROWS&&(this.boundKeyDownHandler=this.onKeyDown_.bind(this),this.input_.addEventListener("keydown",this.boundKeyDownHandler));var e=this.element_.classList.contains(this.CssClasses_.IS_INVALID);this.updateClasses_(),this.element_.classList.add(this.CssClasses_.IS_UPGRADED),e&&this.element_.classList.add(this.CssClasses_.IS_INVALID),this.input_.hasAttribute("autofocus")&&(this.element_.focus(),this.checkFocus())}},componentHandler.register({constructor:e,classAsString:"MaterialTextfield",cssClass:"mdl-js-textfield",widget:!0})})()},84328:(e,t,i)=>{"use strict";var n=i(65290),a=i(27578),r=i(6310),s=function(e){return function(t,i,s){var o,l=n(t),c=r(l),u=a(s,c);if(e&&i!==i){while(c>u)if(o=l[u++],o!==o)return!0}else for(;c>u;u++)if((e||u in l)&&l[u]===i)return e||u||0;return!e&&-1}};e.exports={includes:s(!0),indexOf:s(!1)}},5649:(e,t,i)=>{"use strict";var n=i(67697),a=i(92297),r=TypeError,s=Object.getOwnPropertyDescriptor,o=n&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(e){return e instanceof TypeError}}();e.exports=o?function(e,t){if(a(e)&&!s(e,"length").writable)throw new r("Cannot set read only .length");return e.length=t}:function(e,t){return e.length=t}},8758:(e,t,i)=>{"use strict";var n=i(36812),a=i(19152),r=i(82474),s=i(72560);e.exports=function(e,t,i){for(var o=a(t),l=s.f,c=r.f,u=0;u{"use strict";var t=TypeError,i=9007199254740991;e.exports=function(e){if(e>i)throw t("Maximum allowed index exceeded");return e}},72739:e=>{"use strict";e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},79989:(e,t,i)=>{"use strict";var n=i(19037),a=i(82474).f,r=i(75773),s=i(11880),o=i(95014),l=i(8758),c=i(35266);e.exports=function(e,t){var i,u,d,h,f,p,g=e.target,m=e.global,v=e.stat;if(u=m?n:v?n[g]||o(g,{}):(n[g]||{}).prototype,u)for(d in t){if(f=t[d],e.dontCallGetSet?(p=a(u,d),h=p&&p.value):h=u[d],i=c(m?d:g+(v?".":"#")+d,e.forced),!i&&void 0!==h){if(typeof f==typeof h)continue;l(f,h)}(e.sham||h&&h.sham)&&r(f,"sham",!0),s(u,d,f,e)}}},94413:(e,t,i)=>{"use strict";var n=i(68844),a=i(3689),r=i(6648),s=Object,o=n("".split);e.exports=a((function(){return!s("z").propertyIsEnumerable(0)}))?function(e){return"String"===r(e)?o(e,""):s(e)}:s},92297:(e,t,i)=>{"use strict";var n=i(6648);e.exports=Array.isArray||function(e){return"Array"===n(e)}},35266:(e,t,i)=>{"use strict";var n=i(3689),a=i(69985),r=/#|\.prototype\./,s=function(e,t){var i=l[o(e)];return i===u||i!==c&&(a(t)?n(t):!!t)},o=s.normalize=function(e){return String(e).replace(r,".").toLowerCase()},l=s.data={},c=s.NATIVE="N",u=s.POLYFILL="P";e.exports=s},6310:(e,t,i)=>{"use strict";var n=i(43126);e.exports=function(e){return n(e.length)}},58828:e=>{"use strict";var t=Math.ceil,i=Math.floor;e.exports=Math.trunc||function(e){var n=+e;return(n>0?i:t)(n)}},82474:(e,t,i)=>{"use strict";var n=i(67697),a=i(22615),r=i(49556),s=i(75684),o=i(65290),l=i(18360),c=i(36812),u=i(68506),d=Object.getOwnPropertyDescriptor;t.f=n?d:function(e,t){if(e=o(e),t=l(t),u)try{return d(e,t)}catch(i){}if(c(e,t))return s(!a(r.f,e,t),e[t])}},72741:(e,t,i)=>{"use strict";var n=i(54948),a=i(72739),r=a.concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return n(e,r)}},7518:(e,t)=>{"use strict";t.f=Object.getOwnPropertySymbols},54948:(e,t,i)=>{"use strict";var n=i(68844),a=i(36812),r=i(65290),s=i(84328).indexOf,o=i(57248),l=n([].push);e.exports=function(e,t){var i,n=r(e),c=0,u=[];for(i in n)!a(o,i)&&a(n,i)&&l(u,i);while(t.length>c)a(n,i=t[c++])&&(~s(u,i)||l(u,i));return u}},49556:(e,t)=>{"use strict";var i={}.propertyIsEnumerable,n=Object.getOwnPropertyDescriptor,a=n&&!i.call({1:2},1);t.f=a?function(e){var t=n(this,e);return!!t&&t.enumerable}:i},19152:(e,t,i)=>{"use strict";var n=i(76058),a=i(68844),r=i(72741),s=i(7518),o=i(85027),l=a([].concat);e.exports=n("Reflect","ownKeys")||function(e){var t=r.f(o(e)),i=s.f;return i?l(t,i(e)):t}},27578:(e,t,i)=>{"use strict";var n=i(68700),a=Math.max,r=Math.min;e.exports=function(e,t){var i=n(e);return i<0?a(i+t,0):r(i,t)}},65290:(e,t,i)=>{"use strict";var n=i(94413),a=i(74684);e.exports=function(e){return n(a(e))}},68700:(e,t,i)=>{"use strict";var n=i(58828);e.exports=function(e){var t=+e;return t!==t||0===t?0:n(t)}},43126:(e,t,i)=>{"use strict";var n=i(68700),a=Math.min;e.exports=function(e){return e>0?a(n(e),9007199254740991):0}},70560:(e,t,i)=>{"use strict";var n=i(79989),a=i(90690),r=i(6310),s=i(5649),o=i(55565),l=i(3689),c=l((function(){return 4294967297!==[].push.call({length:4294967296},1)})),u=function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(e){return e instanceof TypeError}},d=c||!u();n({target:"Array",proto:!0,arity:1,forced:d},{push:function(e){var t=a(this),i=r(t),n=arguments.length;o(i+n);for(var l=0;l{"use strict";i.d(t,{sj:()=>p,CO:()=>m,Ld:()=>g});Symbol();const n=Symbol();const a=Object.getPrototypeOf,r=new WeakMap,s=e=>e&&(r.has(e)?r.get(e):a(e)===Object.prototype||a(e)===Array.prototype),o=e=>s(e)&&e[n]||null,l=(e,t=!0)=>{r.set(e,t)},c=e=>"object"===typeof e&&null!==e,u=new WeakMap,d=new WeakSet,h=(e=Object.is,t=((e,t)=>new Proxy(e,t)),i=(e=>c(e)&&!d.has(e)&&(Array.isArray(e)||!(Symbol.iterator in e))&&!(e instanceof WeakMap)&&!(e instanceof WeakSet)&&!(e instanceof Error)&&!(e instanceof Number)&&!(e instanceof Date)&&!(e instanceof String)&&!(e instanceof RegExp)&&!(e instanceof ArrayBuffer)),n=(e=>{switch(e.status){case"fulfilled":return e.value;case"rejected":throw e.reason;default:throw e}}),a=new WeakMap,r=((e,t,i=n)=>{const s=a.get(e);if((null==s?void 0:s[0])===t)return s[1];const o=Array.isArray(e)?[]:Object.create(Object.getPrototypeOf(e));return l(o,!0),a.set(e,[t,o]),Reflect.ownKeys(e).forEach((t=>{if(Object.getOwnPropertyDescriptor(o,t))return;const n=Reflect.get(e,t),a={value:n,enumerable:!0,configurable:!0};if(d.has(n))l(n,!1);else if(n instanceof Promise)delete a.value,a.get=()=>i(n);else if(u.has(n)){const[e,t]=u.get(n);a.value=r(e,t(),i)}Object.defineProperty(o,t,a)})),Object.preventExtensions(o)}),s=new WeakMap,h=[1,1],f=(n=>{if(!c(n))throw new Error("object required");const a=s.get(n);if(a)return a;let l=h[0];const p=new Set,g=(e,t=++h[0])=>{l!==t&&(l=t,p.forEach((i=>i(e,t))))};let m=h[1];const v=(e=++h[1])=>(m===e||p.size||(m=e,y.forEach((([t])=>{const i=t[1](e);i>l&&(l=i)}))),l),b=e=>(t,i)=>{const n=[...t];n[1]=[e,...n[1]],g(n,i)},y=new Map,w=(e,t)=>{if(y.has(e))throw new Error("prop listener already exists");if(p.size){const i=t[3](b(e));y.set(e,[t,i])}else y.set(e,[t])},S=e=>{var t;const i=y.get(e);i&&(y.delete(e),null==(t=i[1])||t.call(i))},I=e=>{p.add(e),1===p.size&&y.forEach((([e,t],i)=>{if(t)throw new Error("remove already exists");const n=e[3](b(i));y.set(i,[e,n])}));const t=()=>{p.delete(e),0===p.size&&y.forEach((([e,t],i)=>{t&&(t(),y.set(i,[e]))}))};return t},E=Array.isArray(n)?[]:Object.create(Object.getPrototypeOf(n)),C={deleteProperty(e,t){const i=Reflect.get(e,t);S(t);const n=Reflect.deleteProperty(e,t);return n&&g(["delete",[t],i]),n},set(t,n,a,r){const l=Reflect.has(t,n),h=Reflect.get(t,n,r);if(l&&(e(h,a)||s.has(a)&&e(h,s.get(a))))return!0;S(n),c(a)&&(a=o(a)||a);let p=a;if(a instanceof Promise)a.then((e=>{a.status="fulfilled",a.value=e,g(["resolve",[n],e])})).catch((e=>{a.status="rejected",a.reason=e,g(["reject",[n],e])}));else{!u.has(a)&&i(a)&&(p=f(a));const e=!d.has(p)&&u.get(p);e&&w(n,e)}return Reflect.set(t,n,p,r),g(["set",[n],a,h]),!0}},k=t(E,C);s.set(n,k);const _=[E,v,r,I];return u.set(k,_),Reflect.ownKeys(n).forEach((e=>{const t=Object.getOwnPropertyDescriptor(n,e);"value"in t&&(k[e]=n[e],delete t.value,delete t.writable),Object.defineProperty(E,e,t)})),k}))=>[f,u,d,e,t,i,n,a,r,s,h],[f]=h();function p(e={}){return f(e)}function g(e,t,i){const n=u.get(e);let a;n||console.warn("Please use proxy object");const r=[],s=n[3];let o=!1;const l=e=>{r.push(e),i?t(r.splice(0)):a||(a=Promise.resolve().then((()=>{a=void 0,o&&t(r.splice(0))})))},c=s(l);return o=!0,()=>{o=!1,c()}}function m(e,t){const i=u.get(e);i||console.warn("Please use proxy object");const[n,a,r]=i;return r(n,a(),t)}}}]); \ No newline at end of file diff --git a/HomeUI/dist/js/2558.js b/HomeUI/dist/js/2558.js new file mode 100644 index 000000000..00f89a643 --- /dev/null +++ b/HomeUI/dist/js/2558.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunkflux"]=self["webpackChunkflux"]||[]).push([[2558],{65530:(t,a,e)=>{e.r(a),e.d(a,{default:()=>z});var s=function(){var t=this,a=t._self._c;return a("div",[a("div",{class:t.managedApplication?"d-none":""},[a("b-tabs",{attrs:{pills:""},on:{"activate-tab":function(a){return t.tabChanged()}}},[a("b-tab",{attrs:{title:"Installed"}},[a("b-overlay",{attrs:{show:t.tableconfig.installed.loading,variant:"transparent",blur:"5px"}},[a("b-card",[a("b-row",[a("b-col",{attrs:{cols:"12"}},[a("b-table",{staticClass:"apps-installed-table",attrs:{striped:"",outlined:"",responsive:"",items:t.tableconfig.installed.apps,fields:t.isLoggedIn()?t.tableconfig.installed.loggedInFields:t.tableconfig.installed.fields,"show-empty":"","empty-text":"No Flux Apps installed","sort-icon-left":""},scopedSlots:t._u([{key:"cell(name)",fn:function(e){return[a("div",{staticClass:"text-left"},[a("kbd",{staticClass:"alert-info no-wrap",staticStyle:{"border-radius":"15px","font-weight":"700 !important"}},[a("b-icon",{attrs:{scale:"1.2",icon:"app-indicator"}}),t._v("  "+t._s(e.item.name)+"  ")],1),a("br"),a("small",{staticStyle:{"font-size":"11px"}},[a("div",{staticClass:"d-flex align-items-center",staticStyle:{"margin-top":"3px"}},[t._v("   "),a("b-icon",{attrs:{scale:"1.4",icon:"speedometer2"}}),t._v("  "),a("kbd",{staticClass:"alert-success",staticStyle:{"border-radius":"15px"}},[t._v(" "),a("b",[t._v(t._s(t.getServiceUsageValue(1,e.item.name,e.item)))]),t._v(" ")]),t._v("   "),a("b-icon",{attrs:{scale:"1.4",icon:"cpu"}}),t._v("  "),a("kbd",{staticClass:"alert-success",staticStyle:{"border-radius":"15px"}},[t._v(" "),a("b",[t._v(t._s(t.getServiceUsageValue(0,e.item.name,e.item)))]),t._v(" ")]),t._v("   "),a("b-icon",{attrs:{scale:"1.4",icon:"hdd"}}),t._v("  "),a("kbd",{staticClass:"alert-success",staticStyle:{"border-radius":"15px"}},[t._v(" "),a("b",[t._v(t._s(t.getServiceUsageValue(2,e.item.name,e.item)))]),t._v(" ")]),t._v("  "),a("b-icon",{attrs:{scale:"1.2",icon:"geo-alt"}}),t._v(" "),a("kbd",{staticClass:"alert-warning",staticStyle:{"border-radius":"15px"}},[t._v(" "),a("b",[t._v(t._s(e.item.instances))]),t._v(" ")])],1),a("span",{staticClass:"no-wrap",class:{"red-text":t.isLessThanTwoDays(t.labelForExpire(e.item.expire,e.item.height))}},[t._v("   "),a("b-icon",{attrs:{scale:"1.2",icon:"hourglass-split"}}),t._v(" "+t._s(t.labelForExpire(e.item.expire,e.item.height))+"   ")],1)])])]}},{key:"cell(visit)",fn:function(e){return[a("b-button",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.top",value:"Visit App",expression:"'Visit App'",modifiers:{hover:!0,top:!0}}],staticClass:"mr-0 no-wrap hover-underline",attrs:{size:"sm",variant:"link"},on:{click:function(a){return t.openApp(e.item.name)}}},[a("b-icon",{attrs:{scale:"1",icon:"front"}}),t._v(" Visit ")],1)]}},{key:"cell(description)",fn:function(e){return[a("kbd",{staticClass:"text-secondary textarea",staticStyle:{float:"left","text-align":"left"}},[t._v(t._s(e.item.description))])]}},{key:"cell(state)",fn:function(e){return[a("kbd",{class:t.getBadgeClass(e.item.name),staticStyle:{"border-radius":"15px"}},[t._v(" "),a("b",[t._v(t._s(t.getStateByName(e.item.name)))]),t._v(" ")])]}},{key:"cell(show_details)",fn:function(e){return[a("a",{on:{click:function(a){return t.showLocations(e,t.tableconfig.installed.apps)}}},[e.detailsShowing?t._e():a("v-icon",{staticClass:"ml-1",attrs:{name:"chevron-down"}}),e.detailsShowing?a("v-icon",{staticClass:"ml-1",attrs:{name:"chevron-up"}}):t._e()],1)]}},{key:"row-details",fn:function(e){return[a("b-card",{staticClass:"mx-2"},[a("h3",{staticClass:"no-wrap"},[a("kbd",{staticClass:"alert-info d-flex",staticStyle:{"border-radius":"15px","font-family":"monospace","padding-right":"100%"}},[a("b-icon",{staticClass:"ml-1",attrs:{scale:"1",icon:"info-square"}}),t._v("  Application Information ")],1)]),a("div",{staticClass:"ml-1"},[e.item.owner?a("list-entry",{attrs:{title:"Owner",data:e.item.owner}}):t._e(),e.item.hash?a("list-entry",{attrs:{title:"Hash",data:e.item.hash}}):t._e(),e.item.version>=5?a("div",[e.item.contacts.length>0?a("list-entry",{attrs:{title:"Contacts",data:JSON.stringify(e.item.contacts)}}):t._e(),e.item.geolocation.length?a("div",t._l(e.item.geolocation,(function(e){return a("div",{key:e},[a("list-entry",{attrs:{title:"Geolocation",data:t.getGeolocation(e)}})],1)})),0):a("div",[a("list-entry",{attrs:{title:"Continent",data:"All"}}),a("list-entry",{attrs:{title:"Country",data:"All"}}),a("list-entry",{attrs:{title:"Region",data:"All"}})],1)],1):t._e(),e.item.instances?a("list-entry",{attrs:{title:"Instances",data:e.item.instances.toString()}}):t._e(),a("list-entry",{attrs:{title:"Expires in",data:t.labelForExpire(e.item.expire,e.item.height)}}),e.item?.nodes?.length>0?a("list-entry",{attrs:{title:"Enterprise Nodes",data:e.item.nodes?e.item.nodes.toString():"Not scoped"}}):t._e(),a("list-entry",{attrs:{title:"Static IP",data:e.item.staticip?"Yes, Running only on Static IP nodes":"No, Running on all nodes"}})],1),e.item.version<=3?a("div",[a("b-card",[a("list-entry",{attrs:{title:"Repository",data:e.item.repotag}}),a("list-entry",{attrs:{title:"Custom Domains",data:e.item.domains.toString()||"none"}}),a("list-entry",{attrs:{title:"Automatic Domains",data:t.constructAutomaticDomains(e.item.ports,void 0,e.item.name).toString()}}),a("list-entry",{attrs:{title:"Ports",data:e.item.ports.toString()}}),a("list-entry",{attrs:{title:"Container Ports",data:e.item.containerPorts.toString()}}),a("list-entry",{attrs:{title:"Container Data",data:e.item.containerData}}),a("list-entry",{attrs:{title:"Enviroment Parameters",data:e.item.enviromentParameters.length>0?e.item.enviromentParameters.toString():"none"}}),a("list-entry",{attrs:{title:"Commands",data:e.item.commands.length>0?e.item.commands.toString():"none"}}),e.item.tiered?a("div",[a("list-entry",{attrs:{title:"CPU Cumulus",data:`${e.item.cpubasic} vCore`}}),a("list-entry",{attrs:{title:"CPU Nimbus",data:`${e.item.cpusuper} vCore`}}),a("list-entry",{attrs:{title:"CPU Stratus",data:`${e.item.cpubamf} vCore`}}),a("list-entry",{attrs:{title:"RAM Cumulus",data:`${e.item.rambasic} MB`}}),a("list-entry",{attrs:{title:"RAM Nimbus",data:`${e.item.ramsuper} MB`}}),a("list-entry",{attrs:{title:"RAM Stratus",data:`${e.item.rambamf} MB`}}),a("list-entry",{attrs:{title:"SSD Cumulus",data:`${e.item.hddbasic} GB`}}),a("list-entry",{attrs:{title:"SSD Nimbus",data:`${e.item.hddsuper} GB`}}),a("list-entry",{attrs:{title:"SSD Stratus",data:`${e.item.hddbamf} GB`}})],1):a("div",[a("list-entry",{attrs:{title:"CPU",data:`${e.item.cpu} vCore`}}),a("list-entry",{attrs:{title:"RAM",data:`${e.item.ram} MB`}}),a("list-entry",{attrs:{title:"SSD",data:`${e.item.hdd} GB`}})],1)],1)],1):a("div",[a("h3",{staticClass:"no-wrap"},[a("kbd",{staticClass:"alert-info d-flex",staticStyle:{"border-radius":"15px","font-family":"monospace","padding-right":"100%"}},[a("b-icon",{staticClass:"ml-1",attrs:{scale:"1",icon:"box"}}),t._v("  Composition ")],1)]),t._l(e.item.compose,(function(s,i){return a("b-card",{key:i,staticClass:"mb-0"},[a("h3",{staticClass:"no-wrap"},[a("kbd",{staticClass:"alert-success d-flex",staticStyle:{"border-radius":"15px","font-family":"monospace","max-width":"500px"}},[a("b-icon",{staticClass:"ml-1",attrs:{scale:"1",icon:"menu-app-fill"}}),t._v("  "+t._s(s.name)+" ")],1)]),a("div",{staticClass:"ml-1"},[a("list-entry",{attrs:{title:"Name",data:s.name}}),a("list-entry",{attrs:{title:"Description",data:s.description}}),a("list-entry",{attrs:{title:"Repository",data:s.repotag}}),a("list-entry",{attrs:{title:"Repository Authentication",data:s.repoauth?"Content Encrypted":"Public"}}),a("list-entry",{attrs:{title:"Custom Domains",data:s.domains.toString()||"none"}}),a("list-entry",{attrs:{title:"Automatic Domains",data:t.constructAutomaticDomains(s.ports,s.name,e.item.name,i).toString()}}),a("list-entry",{attrs:{title:"Ports",data:s.ports.toString()}}),a("list-entry",{attrs:{title:"Container Ports",data:s.containerPorts.toString()}}),a("list-entry",{attrs:{title:"Container Data",data:s.containerData}}),a("list-entry",{attrs:{title:"Environment Parameters",data:s.environmentParameters.length>0?s.environmentParameters.toString():"none"}}),a("list-entry",{attrs:{title:"Commands",data:s.commands.length>0?s.commands.toString():"none"}}),a("list-entry",{attrs:{title:"Secret Environment Parameters",data:s.secrets?"Content Encrypted":"none"}}),s.tiered?a("div",[a("list-entry",{attrs:{title:"CPU Cumulus",data:`${s.cpubasic} vCore`}}),a("list-entry",{attrs:{title:"CPU Nimbus",data:`${s.cpusuper} vCore`}}),a("list-entry",{attrs:{title:"CPU Stratus",data:`${s.cpubamf} vCore`}}),a("list-entry",{attrs:{title:"RAM Cumulus",data:`${s.rambasic} MB`}}),a("list-entry",{attrs:{title:"RAM Nimbus",data:`${s.ramsuper} MB`}}),a("list-entry",{attrs:{title:"RAM Stratus",data:`${s.rambamf} MB`}}),a("list-entry",{attrs:{title:"SSD Cumulus",data:`${s.hddbasic} GB`}}),a("list-entry",{attrs:{title:"SSD Nimbus",data:`${s.hddsuper} GB`}}),a("list-entry",{attrs:{title:"SSD Stratus",data:`${s.hddbamf} GB`}})],1):a("div",[a("list-entry",{attrs:{title:"CPU",data:`${s.cpu} vCore`}}),a("list-entry",{attrs:{title:"RAM",data:`${s.ram} MB`}}),a("list-entry",{attrs:{title:"SSD",data:`${s.hdd} GB`}})],1)],1)])}))],2),a("h3",[a("kbd",{staticClass:"alert-info d-flex",staticStyle:{"border-radius":"15px","font-family":"monospace","padding-right":"100%"}},[a("b-icon",{staticClass:"ml-1",attrs:{scale:"1",icon:"globe"}}),t._v("  Locations ")],1)]),a("b-row",[a("b-col",{staticClass:"my-1",attrs:{md:"4",sm:"4"}},[a("b-form-group",{staticClass:"mb-0"},[a("label",{staticClass:"d-inline-block text-left mr-50"},[t._v("Per page")]),a("b-form-select",{staticClass:"w-50",attrs:{id:"perPageSelect",size:"sm",options:t.appLocationOptions.pageOptions},model:{value:t.appLocationOptions.perPage,callback:function(a){t.$set(t.appLocationOptions,"perPage",a)},expression:"appLocationOptions.perPage"}})],1)],1),a("b-col",{staticClass:"my-1",attrs:{md:"8"}},[a("b-form-group",{staticClass:"mb-0",attrs:{label:"Filter","label-cols-sm":"1","label-align-sm":"right","label-for":"filterInput"}},[a("b-input-group",{attrs:{size:"sm"}},[a("b-form-input",{attrs:{id:"filterInput",type:"search",placeholder:"Type to Search"},model:{value:t.appLocationOptions.filterOne,callback:function(a){t.$set(t.appLocationOptions,"filterOne",a)},expression:"appLocationOptions.filterOne"}}),a("b-input-group-append",[a("b-button",{attrs:{disabled:!t.appLocationOptions.filterOne},on:{click:function(a){t.appLocationOptions.filterOne=""}}},[t._v(" Clear ")])],1)],1)],1)],1),a("b-col",{attrs:{cols:"12"}},[a("b-table",{staticClass:"locations-table",attrs:{borderless:"","per-page":t.appLocationOptions.perPage,"current-page":t.appLocationOptions.currentPage,items:t.appLocations,fields:t.appLocationFields,"thead-class":"d-none",filter:t.appLocationOptions.filterOne,"show-empty":"","sort-icon-left":"","empty-text":"No instances found.."},scopedSlots:t._u([{key:"cell(ip)",fn:function(e){return[a("div",{staticClass:"no-wrap"},[a("kbd",{staticClass:"alert-info",staticStyle:{"border-radius":"15px"}},[a("b-icon",{attrs:{scale:"1.1",icon:"hdd-network-fill"}})],1),t._v("  "),a("kbd",{staticClass:"alert-success no-wrap",staticStyle:{"border-radius":"15px"}},[a("b",[t._v("  "+t._s(e.item.ip)+"  ")])])])]}},{key:"cell(visit)",fn:function(s){return[a("div",{staticClass:"d-flex justify-content-end"},[a("b-button",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.top",value:"Visit App",expression:"'Visit App'",modifiers:{hover:!0,top:!0}}],staticClass:"mr-1",attrs:{size:"sm",pill:"",variant:"dark"},on:{click:function(a){t.openApp(e.item.name,s.item.ip.split(":")[0],t.getProperPort(e.item))}}},[a("b-icon",{attrs:{scale:"1",icon:"door-open"}}),t._v(" App ")],1),a("b-button",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.top",value:"Visit FluxNode",expression:"'Visit FluxNode'",modifiers:{hover:!0,top:!0}}],staticClass:"mr-0",attrs:{size:"sm",pill:"",variant:"outline-dark"},on:{click:function(a){t.openNodeFluxOS(s.item.ip.split(":")[0],s.item.ip.split(":")[1]?+s.item.ip.split(":")[1]-1:16126)}}},[a("b-icon",{attrs:{scale:"1",icon:"house-door-fill"}}),t._v(" FluxNode ")],1),t._v("   ")],1)]}}],null,!0)})],1),a("b-col",{attrs:{cols:"12"}},[a("b-pagination",{staticClass:"my-0 mt-1",attrs:{"total-rows":t.appLocationOptions.totalRows,"per-page":t.appLocationOptions.perPage,align:"center",size:"sm"},model:{value:t.appLocationOptions.currentPage,callback:function(a){t.$set(t.appLocationOptions,"currentPage",a)},expression:"appLocationOptions.currentPage"}})],1)],1)],1)]}},{key:"cell(Name)",fn:function(a){return[t._v(" "+t._s(t.getAppName(a.item.name))+" ")]}},{key:"cell(Description)",fn:function(a){return[t._v(" "+t._s(a.item.description)+" ")]}},{key:"cell(actions)",fn:function(e){return[a("b-button-toolbar",[a("b-button-group",{attrs:{size:"sm"}},[a("b-button",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.top",value:"Start App",expression:"'Start App'",modifiers:{hover:!0,top:!0}}],staticClass:"no-wrap",attrs:{id:`start-installed-app-${e.item.name}`,disabled:t.isAppInList(e.item.name,t.tableconfig.running.apps),size:"sm",variant:"outline-dark"}},[a("b-icon",{staticClass:"icon-style-start",class:{"disable-hover":t.isAppInList(e.item.name,t.tableconfig.running.apps)},attrs:{scale:"1.2",icon:"play-fill"}})],1),a("confirm-dialog",{attrs:{target:`start-installed-app-${e.item.name}`,"confirm-button":"Start App"},on:{confirm:function(a){return t.startApp(e.item.name)}}}),a("b-button",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.top",value:"Stop App",expression:"'Stop App'",modifiers:{hover:!0,top:!0}}],staticClass:"mr-0",attrs:{id:`stop-installed-app-${e.item.name}`,size:"sm",variant:"outline-dark",disabled:!t.isAppInList(e.item.name,t.tableconfig.running.apps)}},[a("b-icon",{staticClass:"icon-style-stop",class:{"disable-hover":!t.isAppInList(e.item.name,t.tableconfig.running.apps)},attrs:{scale:"1.2",icon:"stop-circle"}})],1),a("confirm-dialog",{attrs:{target:`stop-installed-app-${e.item.name}`,"confirm-button":"Stop App"},on:{confirm:function(a){return t.stopApp(e.item.name)}}}),a("b-button",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.top",value:"Restart App",expression:"'Restart App'",modifiers:{hover:!0,top:!0}}],staticClass:"no-wrap",attrs:{id:`restart-installed-app-${e.item.name}`,size:"sm",variant:"outline-dark"}},[a("b-icon",{staticClass:"icon-style-restart",attrs:{scale:"1",icon:"bootstrap-reboot"}})],1),a("confirm-dialog",{attrs:{target:`restart-installed-app-${e.item.name}`,"confirm-button":"Restart App"},on:{confirm:function(a){return t.restartApp(e.item.name)}}}),a("b-button",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.top",value:"Remove App",expression:"'Remove App'",modifiers:{hover:!0,top:!0}}],staticClass:"no-wrap",attrs:{id:`remove-installed-app-${e.item.name}`,size:"sm",variant:"outline-dark"}},[a("b-icon",{staticClass:"icon-style-trash",attrs:{scale:"1",icon:"trash"}})],1),a("confirm-dialog",{attrs:{target:`remove-installed-app-${e.item.name}`,"confirm-button":"Remove App"},on:{confirm:function(a){return t.removeApp(e.item.name)}}})],1)],1)]}}])})],1)],1),a("b-icon",{staticClass:"ml-1",attrs:{scale:"1.4",icon:"layers"}}),t._v("  "),a("b",[t._v(" "),a("kbd",{staticClass:"alert-success",staticStyle:{"border-radius":"15px"}},[t._v(" "+t._s(t.tableconfig.installed?.apps?.length||0)+" ")])])],1)],1)],1),a("b-tab",{attrs:{title:"Available"}},[a("b-overlay",{attrs:{show:t.tableconfig.available.loading,variant:"transparent",blur:"5px"}},[a("b-card",[a("h3",{staticClass:"mb-1"},[a("kbd",{staticClass:"alert-info d-flex no-wrap",staticStyle:{"border-radius":"15px","font-family":"monospace","padding-right":"100%"}},[t._v("  "),a("b-icon",{staticClass:"mr-1",attrs:{scale:"1",icon:"building"}}),t._v(" Prebuilt Applications ")],1)]),a("b-row",[a("b-col",{attrs:{cols:"12"}},[a("b-table",{staticClass:"apps-available-table",attrs:{striped:"",outlined:"",responsive:"",items:t.tableconfig.available.apps,fields:t.isLoggedIn()?t.tableconfig.available.loggedInFields:t.tableconfig.available.fields,"show-empty":"","sort-icon-left":"","empty-text":"No Flux Apps available"},scopedSlots:t._u([{key:"cell(name)",fn:function(e){return[a("div",{staticClass:"text-left"},[a("kbd",{staticClass:"alert-info no-wrap",staticStyle:{"border-radius":"15px","font-weight":"700 !important"}},[a("b-icon",{attrs:{scale:"1.2",icon:"app-indicator"}}),t._v("  "+t._s(e.item.name)+"  ")],1),a("br"),a("small",{staticStyle:{"font-size":"11px"}},[a("div",{staticClass:"d-flex align-items-center",staticStyle:{"margin-top":"3px"}},[t._v("   "),a("b-icon",{attrs:{scale:"1.4",icon:"speedometer2"}}),t._v("  "),a("kbd",{staticClass:"alert-success",staticStyle:{"border-radius":"15px"}},[t._v(" "),a("b",[t._v(t._s(t.getServiceUsageValue(1,e.item.name,e.item)))]),t._v(" ")]),t._v("   "),a("b-icon",{attrs:{scale:"1.4",icon:"cpu"}}),t._v("  "),a("kbd",{staticClass:"alert-success",staticStyle:{"border-radius":"15px"}},[t._v(" "),a("b",[t._v(t._s(t.getServiceUsageValue(0,e.item.name,e.item)))]),t._v(" ")]),t._v("   "),a("b-icon",{attrs:{scale:"1.4",icon:"hdd"}}),t._v("  "),a("kbd",{staticClass:"alert-success",staticStyle:{"border-radius":"15px"}},[t._v(" "),a("b",[t._v(t._s(t.getServiceUsageValue(2,e.item.name,e.item)))]),t._v(" ")]),t._v("  ")],1)])])]}},{key:"cell(visit)",fn:function(e){return[a("b-button",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.top",value:"Visit App",expression:"'Visit App'",modifiers:{hover:!0,top:!0}}],staticClass:"mr-0 no-wrap hover-underline",attrs:{size:"sm",variant:"link"},on:{click:function(a){return t.openApp(e.item.name)}}},[a("b-icon",{attrs:{scale:"1",icon:"front"}}),t._v(" Visit ")],1)]}},{key:"cell(description)",fn:function(e){return[a("kbd",{staticClass:"text-secondary textarea",staticStyle:{float:"left","text-align":"left"}},[t._v(t._s(e.item.description))])]}},{key:"cell(state)",fn:function(e){return[a("kbd",{class:t.getBadgeClass(e.item.name),staticStyle:{"border-radius":"15px"}},[t._v(" "),a("b",[t._v(t._s(t.getStateByName(e.item.name)))]),t._v(" ")])]}},{key:"cell(show_details)",fn:function(e){return[a("a",{on:{click:function(a){return t.showLocations(e,t.tableconfig.available.apps)}}},[e.detailsShowing?t._e():a("v-icon",{staticClass:"ml-1",attrs:{name:"chevron-down"}}),e.detailsShowing?a("v-icon",{staticClass:"ml-1",attrs:{name:"chevron-up"}}):t._e()],1)]}},{key:"row-details",fn:function(e){return[a("b-card",{staticClass:"mx-2"},[a("h3",{staticClass:"no-wrap"},[a("kbd",{staticClass:"alert-info d-flex",staticStyle:{"border-radius":"15px","font-family":"monospace","padding-right":"100%"}},[a("b-icon",{staticClass:"ml-1",attrs:{scale:"1",icon:"info-square"}}),t._v("  Application Information ")],1)]),a("div",{staticClass:"ml-1"},[e.item.owner?a("list-entry",{attrs:{title:"Owner",data:e.item.owner}}):t._e(),e.item.hash?a("list-entry",{attrs:{title:"Hash",data:e.item.hash}}):t._e(),e.item.version>=5?a("div",[e.item.contacts.length>0?a("list-entry",{attrs:{title:"Contacts",data:JSON.stringify(e.item.contacts)}}):t._e(),e.item.geolocation.length?a("div",t._l(e.item.geolocation,(function(e){return a("div",{key:e},[a("list-entry",{attrs:{title:"Geolocation",data:t.getGeolocation(e)}})],1)})),0):a("div",[a("list-entry",{attrs:{title:"Continent",data:"All"}}),a("list-entry",{attrs:{title:"Country",data:"All"}}),a("list-entry",{attrs:{title:"Region",data:"All"}})],1)],1):t._e(),e.item.instances?a("list-entry",{attrs:{title:"Instances",data:e.item.instances.toString()}}):t._e(),a("list-entry",{attrs:{title:"Expires in",data:t.labelForExpire(e.item.expire,e.item.height)}}),e.item?.nodes?.length>0?a("list-entry",{attrs:{title:"Enterprise Nodes",data:e.item.nodes?e.item.nodes.toString():"Not scoped"}}):t._e(),a("list-entry",{attrs:{title:"Static IP",data:e.item.staticip?"Yes, Running only on Static IP nodes":"No, Running on all nodes"}})],1),e.item.version<=3?a("div",[a("b-card",[a("list-entry",{attrs:{title:"Repository",data:e.item.repotag}}),a("list-entry",{attrs:{title:"Custom Domains",data:e.item.domains.toString()||"none"}}),a("list-entry",{attrs:{title:"Automatic Domains",data:t.constructAutomaticDomains(e.item.ports,void 0,e.item.name).toString()}}),a("list-entry",{attrs:{title:"Ports",data:e.item.ports.toString()}}),a("list-entry",{attrs:{title:"Container Ports",data:e.item.containerPorts.toString()}}),a("list-entry",{attrs:{title:"Container Data",data:e.item.containerData}}),a("list-entry",{attrs:{title:"Enviroment Parameters",data:e.item.enviromentParameters.length>0?e.item.enviromentParameters.toString():"none"}}),a("list-entry",{attrs:{title:"Commands",data:e.item.commands.length>0?e.item.commands.toString():"none"}}),e.item.tiered?a("div",[a("list-entry",{attrs:{title:"CPU Cumulus",data:`${e.item.cpubasic} vCore`}}),a("list-entry",{attrs:{title:"CPU Nimbus",data:`${e.item.cpusuper} vCore`}}),a("list-entry",{attrs:{title:"CPU Stratus",data:`${e.item.cpubamf} vCore`}}),a("list-entry",{attrs:{title:"RAM Cumulus",data:`${e.item.rambasic} MB`}}),a("list-entry",{attrs:{title:"RAM Nimbus",data:`${e.item.ramsuper} MB`}}),a("list-entry",{attrs:{title:"RAM Stratus",data:`${e.item.rambamf} MB`}}),a("list-entry",{attrs:{title:"SSD Cumulus",data:`${e.item.hddbasic} GB`}}),a("list-entry",{attrs:{title:"SSD Nimbus",data:`${e.item.hddsuper} GB`}}),a("list-entry",{attrs:{title:"SSD Stratus",data:`${e.item.hddbamf} GB`}})],1):a("div",[a("list-entry",{attrs:{title:"CPU",data:`${e.item.cpu} vCore`}}),a("list-entry",{attrs:{title:"RAM",data:`${e.item.ram} MB`}}),a("list-entry",{attrs:{title:"SSD",data:`${e.item.hdd} GB`}})],1)],1)],1):a("div",[a("h3",{staticClass:"no-wrap"},[a("kbd",{staticClass:"alert-info d-flex",staticStyle:{"border-radius":"15px","font-family":"monospace","padding-right":"100%"}},[a("b-icon",{staticClass:"ml-1",attrs:{scale:"1",icon:"box"}}),t._v("  Composition ")],1)]),t._l(e.item.compose,(function(s,i){return a("b-card",{key:i,staticClass:"mb-0"},[a("h3",{staticClass:"no-wrap"},[a("kbd",{staticClass:"alert-success d-flex",staticStyle:{"border-radius":"15px","font-family":"monospace","max-width":"500px"}},[a("b-icon",{staticClass:"ml-1",attrs:{scale:"1",icon:"menu-app-fill"}}),t._v("  "+t._s(s.name)+" ")],1)]),a("div",{staticClass:"ml-1"},[a("list-entry",{attrs:{title:"Name",data:s.name}}),a("list-entry",{attrs:{title:"Description",data:s.description}}),a("list-entry",{attrs:{title:"Repository",data:s.repotag}}),a("list-entry",{attrs:{title:"Repository Authentication",data:s.repoauth?"Content Encrypted":"Public"}}),a("list-entry",{attrs:{title:"Custom Domains",data:s.domains.toString()||"none"}}),a("list-entry",{attrs:{title:"Automatic Domains",data:t.constructAutomaticDomains(s.ports,s.name,e.item.name,i).toString()}}),a("list-entry",{attrs:{title:"Ports",data:s.ports.toString()}}),a("list-entry",{attrs:{title:"Container Ports",data:s.containerPorts.toString()}}),a("list-entry",{attrs:{title:"Container Data",data:s.containerData}}),a("list-entry",{attrs:{title:"Environment Parameters",data:s.environmentParameters.length>0?s.environmentParameters.toString():"none"}}),a("list-entry",{attrs:{title:"Commands",data:s.commands.length>0?s.commands.toString():"none"}}),a("list-entry",{attrs:{title:"Secret Environment Parameters",data:s.secrets?"Content Encrypted":"none"}}),s.tiered?a("div",[a("list-entry",{attrs:{title:"CPU Cumulus",data:`${s.cpubasic} vCore`}}),a("list-entry",{attrs:{title:"CPU Nimbus",data:`${s.cpusuper} vCore`}}),a("list-entry",{attrs:{title:"CPU Stratus",data:`${s.cpubamf} vCore`}}),a("list-entry",{attrs:{title:"RAM Cumulus",data:`${s.rambasic} MB`}}),a("list-entry",{attrs:{title:"RAM Nimbus",data:`${s.ramsuper} MB`}}),a("list-entry",{attrs:{title:"RAM Stratus",data:`${s.rambamf} MB`}}),a("list-entry",{attrs:{title:"SSD Cumulus",data:`${s.hddbasic} GB`}}),a("list-entry",{attrs:{title:"SSD Nimbus",data:`${s.hddsuper} GB`}}),a("list-entry",{attrs:{title:"SSD Stratus",data:`${s.hddbamf} GB`}})],1):a("div",[a("list-entry",{attrs:{title:"CPU",data:`${s.cpu} vCore`}}),a("list-entry",{attrs:{title:"RAM",data:`${s.ram} MB`}}),a("list-entry",{attrs:{title:"SSD",data:`${s.hdd} GB`}})],1)],1)])}))],2),a("h3",[a("kbd",{staticClass:"alert-info d-flex",staticStyle:{"border-radius":"15px","font-family":"monospace","padding-right":"100%"}},[a("b-icon",{staticClass:"ml-1",attrs:{scale:"1",icon:"globe"}}),t._v("  Locations ")],1)]),a("b-row",[a("b-col",{staticClass:"my-1",attrs:{md:"4",sm:"4"}},[a("b-form-group",{staticClass:"mb-0"},[a("label",{staticClass:"d-inline-block text-left mr-50"},[t._v("Per page")]),a("b-form-select",{staticClass:"w-50",attrs:{id:"perPageSelect",size:"sm",options:t.appLocationOptions.pageOptions},model:{value:t.appLocationOptions.perPage,callback:function(a){t.$set(t.appLocationOptions,"perPage",a)},expression:"appLocationOptions.perPage"}})],1)],1),a("b-col",{staticClass:"my-1",attrs:{md:"8"}},[a("b-form-group",{staticClass:"mb-0",attrs:{label:"Filter","label-cols-sm":"1","label-align-sm":"right","label-for":"filterInput"}},[a("b-input-group",{attrs:{size:"sm"}},[a("b-form-input",{attrs:{id:"filterInput",type:"search",placeholder:"Type to Search"},model:{value:t.appLocationOptions.filterTwo,callback:function(a){t.$set(t.appLocationOptions,"filterTwo",a)},expression:"appLocationOptions.filterTwo"}}),a("b-input-group-append",[a("b-button",{attrs:{disabled:!t.appLocationOptions.filterTwo},on:{click:function(a){t.appLocationOptions.filterTwo=""}}},[t._v(" Clear ")])],1)],1)],1)],1),a("b-col",{attrs:{cols:"12"}},[a("b-table",{staticClass:"locations-table",attrs:{borderless:"","per-page":t.appLocationOptions.perPage,"current-page":t.appLocationOptions.currentPage,items:t.appLocations,fields:t.appLocationFields,"thead-class":"d-none",filter:t.appLocationOptions.filterTwo,"show-empty":"","sort-icon-left":"","empty-text":"No instances found.."},scopedSlots:t._u([{key:"cell(ip)",fn:function(e){return[a("div",{staticClass:"no-wrap"},[a("kbd",{staticClass:"alert-info",staticStyle:{"border-radius":"15px"}},[a("b-icon",{attrs:{scale:"1.1",icon:"hdd-network-fill"}})],1),t._v("  "),a("kbd",{staticClass:"alert-success no-wrap",staticStyle:{"border-radius":"15px"}},[a("b",[t._v("  "+t._s(e.item.ip)+"  ")])])])]}},{key:"cell(visit)",fn:function(s){return[a("div",{staticClass:"d-flex justify-content-end"},[a("b-button",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.top",value:"Visit App",expression:"'Visit App'",modifiers:{hover:!0,top:!0}}],staticClass:"mr-1",attrs:{size:"sm",pill:"",variant:"dark"},on:{click:function(a){t.openApp(e.item.name,s.item.ip.split(":")[0],t.getProperPort(e.item))}}},[a("b-icon",{attrs:{scale:"1",icon:"door-open"}}),t._v(" App ")],1),a("b-button",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.top",value:"Visit FluxNode",expression:"'Visit FluxNode'",modifiers:{hover:!0,top:!0}}],staticClass:"mr-0",attrs:{size:"sm",pill:"",variant:"outline-dark"},on:{click:function(a){t.openNodeFluxOS(s.item.ip.split(":")[0],s.item.ip.split(":")[1]?+s.item.ip.split(":")[1]-1:16126)}}},[a("b-icon",{attrs:{scale:"1",icon:"house-door-fill"}}),t._v(" FluxNode ")],1),t._v("   ")],1)]}}],null,!0)})],1),a("b-col",{attrs:{cols:"12"}},[a("b-pagination",{staticClass:"my-0 mt-1",attrs:{"total-rows":t.appLocationOptions.totalRows,"per-page":t.appLocationOptions.perPage,align:"center",size:"sm"},model:{value:t.appLocationOptions.currentPage,callback:function(a){t.$set(t.appLocationOptions,"currentPage",a)},expression:"appLocationOptions.currentPage"}})],1)],1)],1)]}},{key:"cell(Name)",fn:function(a){return[t._v(" "+t._s(t.getAppName(a.item.name))+" ")]}},{key:"cell(Description)",fn:function(a){return[t._v(" "+t._s(a.item.description)+" ")]}},{key:"cell(install)",fn:function(e){return[a("b-button",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.top",value:"Install App",expression:"'Install App'",modifiers:{hover:!0,top:!0}}],staticClass:"mr-0 no-wrap",attrs:{id:`install-app-${e.item.name}`,size:"sm",variant:"primary",pill:""}},[a("b-icon",{attrs:{scale:"0.9",icon:"layer-forward"}}),t._v(" Install ")],1),a("confirm-dialog",{attrs:{target:`install-app-${e.item.name}`,"confirm-button":"Install App"},on:{confirm:function(a){return t.installAppLocally(e.item.name)}}})]}}])})],1)],1)],1),a("b-card",[a("div",{staticClass:"mb-0"},[a("h3",[a("kbd",{staticClass:"alert-info d-flex no-wrap",staticStyle:{"border-radius":"15px","font-family":"monospace","padding-right":"100%"}},[t._v("  "),a("b-icon",{staticClass:"mr-1",attrs:{scale:"1",icon:"globe"}}),t._v(" Global Applications ")],1)])]),a("b-row",[a("b-col",{staticClass:"my-1",attrs:{md:"4",sm:"4"}},[a("b-form-group",{staticClass:"mb-0"},[a("label",{staticClass:"d-inline-block text-left mr-50"},[t._v("Per page")]),a("b-form-select",{staticClass:"w-50",attrs:{id:"perPageSelect",size:"sm",options:t.appLocationOptions.pageOptions},model:{value:t.tableconfig.globalAvailable.perPage,callback:function(a){t.$set(t.tableconfig.globalAvailable,"perPage",a)},expression:"tableconfig.globalAvailable.perPage"}})],1)],1),a("b-col",{staticClass:"my-1",attrs:{md:"8"}},[a("b-form-group",{staticClass:"mb-0 mt-0",attrs:{label:"Filter","label-cols-sm":"1","label-align-sm":"right","label-for":"filterInput"}},[a("b-input-group",{attrs:{size:"sm"}},[a("b-form-input",{attrs:{id:"filterInput",type:"search",placeholder:"Type to Search"},model:{value:t.tableconfig.globalAvailable.filter,callback:function(a){t.$set(t.tableconfig.globalAvailable,"filter",a)},expression:"tableconfig.globalAvailable.filter"}}),a("b-input-group-append",[a("b-button",{attrs:{disabled:!t.tableconfig.globalAvailable.filter},on:{click:function(a){t.tableconfig.globalAvailable.filter=""}}},[t._v(" Clear ")])],1)],1)],1)],1),a("b-col",{attrs:{cols:"12 mt-0"}},[a("b-table",{staticClass:"apps-globalAvailable-table",attrs:{striped:"",outlined:"",responsive:"","per-page":t.tableconfig.globalAvailable.perPage,"current-page":t.tableconfig.globalAvailable.currentPage,items:t.tableconfig.globalAvailable.apps,fields:t.isLoggedIn()?t.tableconfig.globalAvailable.loggedInFields:t.tableconfig.globalAvailable.fields,filter:t.tableconfig.globalAvailable.filter,"show-empty":"","sort-icon-left":"","empty-text":"No Flux Apps Globally Available"},scopedSlots:t._u([{key:"cell(name)",fn:function(e){return[a("div",{staticClass:"text-left"},[a("kbd",{staticClass:"alert-info no-wrap",staticStyle:{"border-radius":"15px","font-weight":"700 !important"}},[a("b-icon",{attrs:{scale:"1.2",icon:"app-indicator"}}),t._v("  "+t._s(e.item.name)+"  ")],1),a("br"),a("small",{staticStyle:{"font-size":"11px"}},[a("div",{staticClass:"d-flex align-items-center",staticStyle:{"margin-top":"3px"}},[t._v("   "),a("b-icon",{attrs:{scale:"1.4",icon:"speedometer2"}}),t._v("  "),a("kbd",{staticClass:"alert-success",staticStyle:{"border-radius":"15px"}},[t._v(" "),a("b",[t._v(t._s(t.getServiceUsageValue(1,e.item.name,e.item)))]),t._v(" ")]),t._v("   "),a("b-icon",{attrs:{scale:"1.4",icon:"cpu"}}),t._v("  "),a("kbd",{staticClass:"alert-success",staticStyle:{"border-radius":"15px"}},[t._v(" "),a("b",[t._v(t._s(t.getServiceUsageValue(0,e.item.name,e.item)))]),t._v(" ")]),t._v("   "),a("b-icon",{attrs:{scale:"1.4",icon:"hdd"}}),t._v("  "),a("kbd",{staticClass:"alert-success",staticStyle:{"border-radius":"15px"}},[t._v(" "),a("b",[t._v(t._s(t.getServiceUsageValue(2,e.item.name,e.item)))]),t._v(" ")]),t._v("  "),a("b-icon",{attrs:{scale:"1.2",icon:"geo-alt"}}),t._v(" "),a("kbd",{staticClass:"alert-warning",staticStyle:{"border-radius":"15px"}},[t._v(" "),a("b",[t._v(t._s(e.item.instances))]),t._v(" ")])],1),a("span",{staticClass:"no-wrap",class:{"red-text":t.isLessThanTwoDays(t.labelForExpire(e.item.expire,e.item.height))}},[t._v("   "),a("b-icon",{attrs:{scale:"1.2",icon:"hourglass-split"}}),t._v(" "+t._s(t.labelForExpire(e.item.expire,e.item.height))+"   ")],1)])])]}},{key:"cell(description)",fn:function(e){return[a("kbd",{staticClass:"text-secondary textarea",staticStyle:{float:"left","text-align":"left"}},[t._v(t._s(e.item.description))])]}},{key:"cell(show_details)",fn:function(e){return[a("a",{on:{click:function(a){return t.showLocations(e,t.tableconfig.globalAvailable.apps)}}},[e.detailsShowing?t._e():a("v-icon",{staticClass:"ml-1",attrs:{name:"chevron-down"}}),e.detailsShowing?a("v-icon",{staticClass:"ml-1",attrs:{name:"chevron-up"}}):t._e()],1)]}},{key:"row-details",fn:function(e){return[a("b-card",{staticClass:"mx-2"},[a("h3",{staticClass:"no-wrap"},[a("kbd",{staticClass:"alert-info d-flex",staticStyle:{"border-radius":"15px","font-family":"monospace","padding-right":"100%"}},[a("b-icon",{staticClass:"ml-1",attrs:{scale:"1",icon:"info-square"}}),t._v("  Application Information ")],1)]),a("div",{staticClass:"ml-1"},[e.item.owner?a("list-entry",{attrs:{title:"Owner",data:e.item.owner}}):t._e(),e.item.hash?a("list-entry",{attrs:{title:"Hash",data:e.item.hash}}):t._e(),e.item.version>=5?a("div",[e.item.contacts.length>0?a("list-entry",{attrs:{title:"Contacts",data:JSON.stringify(e.item.contacts)}}):t._e(),e.item.geolocation.length?a("div",t._l(e.item.geolocation,(function(e){return a("div",{key:e},[a("list-entry",{attrs:{title:"Geolocation",data:t.getGeolocation(e)}})],1)})),0):a("div",[a("list-entry",{attrs:{title:"Continent",data:"All"}}),a("list-entry",{attrs:{title:"Country",data:"All"}}),a("list-entry",{attrs:{title:"Region",data:"All"}})],1)],1):t._e(),e.item.instances?a("list-entry",{attrs:{title:"Instances",data:e.item.instances.toString()}}):t._e(),a("list-entry",{attrs:{title:"Expires in",data:t.labelForExpire(e.item.expire,e.item.height)}}),e.item?.nodes?.length>0?a("list-entry",{attrs:{title:"Enterprise Nodes",data:e.item.nodes?e.item.nodes.toString():"Not scoped"}}):t._e(),a("list-entry",{attrs:{title:"Static IP",data:e.item.staticip?"Yes, Running only on Static IP nodes":"No, Running on all nodes"}})],1),e.item.version<=3?a("div",[a("b-card",[a("list-entry",{attrs:{title:"Repository",data:e.item.repotag}}),a("list-entry",{attrs:{title:"Custom Domains",data:e.item.domains.toString()||"none"}}),a("list-entry",{attrs:{title:"Automatic Domains",data:t.constructAutomaticDomains(e.item.ports,void 0,e.item.name).toString()}}),a("list-entry",{attrs:{title:"Ports",data:e.item.ports.toString()}}),a("list-entry",{attrs:{title:"Container Ports",data:e.item.containerPorts.toString()}}),a("list-entry",{attrs:{title:"Container Data",data:e.item.containerData}}),a("list-entry",{attrs:{title:"Enviroment Parameters",data:e.item.enviromentParameters.length>0?e.item.enviromentParameters.toString():"none"}}),a("list-entry",{attrs:{title:"Commands",data:e.item.commands.length>0?e.item.commands.toString():"none"}}),e.item.tiered?a("div",[a("list-entry",{attrs:{title:"CPU Cumulus",data:`${e.item.cpubasic} vCore`}}),a("list-entry",{attrs:{title:"CPU Nimbus",data:`${e.item.cpusuper} vCore`}}),a("list-entry",{attrs:{title:"CPU Stratus",data:`${e.item.cpubamf} vCore`}}),a("list-entry",{attrs:{title:"RAM Cumulus",data:`${e.item.rambasic} MB`}}),a("list-entry",{attrs:{title:"RAM Nimbus",data:`${e.item.ramsuper} MB`}}),a("list-entry",{attrs:{title:"RAM Stratus",data:`${e.item.rambamf} MB`}}),a("list-entry",{attrs:{title:"SSD Cumulus",data:`${e.item.hddbasic} GB`}}),a("list-entry",{attrs:{title:"SSD Nimbus",data:`${e.item.hddsuper} GB`}}),a("list-entry",{attrs:{title:"SSD Stratus",data:`${e.item.hddbamf} GB`}})],1):a("div",[a("list-entry",{attrs:{title:"CPU",data:`${e.item.cpu} vCore`}}),a("list-entry",{attrs:{title:"RAM",data:`${e.item.ram} MB`}}),a("list-entry",{attrs:{title:"SSD",data:`${e.item.hdd} GB`}})],1)],1)],1):a("div",[a("h3",{staticClass:"no-wrap"},[a("kbd",{staticClass:"alert-info d-flex",staticStyle:{"border-radius":"15px","font-family":"monospace","padding-right":"100%"}},[a("b-icon",{staticClass:"ml-1",attrs:{scale:"1",icon:"box"}}),t._v("  Composition ")],1)]),t._l(e.item.compose,(function(s,i){return a("b-card",{key:i,staticClass:"mb-0"},[a("h3",{staticClass:"no-wrap"},[a("kbd",{staticClass:"alert-success d-flex",staticStyle:{"border-radius":"15px","font-family":"monospace","max-width":"500px"}},[a("b-icon",{staticClass:"ml-1",attrs:{scale:"1",icon:"menu-app-fill"}}),t._v("  "+t._s(s.name)+" ")],1)]),a("div",{staticClass:"ml-1"},[a("list-entry",{attrs:{title:"Name",data:s.name}}),a("list-entry",{attrs:{title:"Description",data:s.description}}),a("list-entry",{attrs:{title:"Repository",data:s.repotag}}),a("list-entry",{attrs:{title:"Repository Authentication",data:s.repoauth?"Content Encrypted":"Public"}}),a("list-entry",{attrs:{title:"Custom Domains",data:s.domains.toString()||"none"}}),a("list-entry",{attrs:{title:"Automatic Domains",data:t.constructAutomaticDomains(s.ports,s.name,e.item.name,i).toString()}}),a("list-entry",{attrs:{title:"Ports",data:s.ports.toString()}}),a("list-entry",{attrs:{title:"Container Ports",data:s.containerPorts.toString()}}),a("list-entry",{attrs:{title:"Container Data",data:s.containerData}}),a("list-entry",{attrs:{title:"Environment Parameters",data:s.environmentParameters.length>0?s.environmentParameters.toString():"none"}}),a("list-entry",{attrs:{title:"Commands",data:s.commands.length>0?s.commands.toString():"none"}}),a("list-entry",{attrs:{title:"Secret Environment Parameters",data:s.secrets?"Content Encrypted":"none"}}),s.tiered?a("div",[a("list-entry",{attrs:{title:"CPU Cumulus",data:`${s.cpubasic} vCore`}}),a("list-entry",{attrs:{title:"CPU Nimbus",data:`${s.cpusuper} vCore`}}),a("list-entry",{attrs:{title:"CPU Stratus",data:`${s.cpubamf} vCore`}}),a("list-entry",{attrs:{title:"RAM Cumulus",data:`${s.rambasic} MB`}}),a("list-entry",{attrs:{title:"RAM Nimbus",data:`${s.ramsuper} MB`}}),a("list-entry",{attrs:{title:"RAM Stratus",data:`${s.rambamf} MB`}}),a("list-entry",{attrs:{title:"SSD Cumulus",data:`${s.hddbasic} GB`}}),a("list-entry",{attrs:{title:"SSD Nimbus",data:`${s.hddsuper} GB`}}),a("list-entry",{attrs:{title:"SSD Stratus",data:`${s.hddbamf} GB`}})],1):a("div",[a("list-entry",{attrs:{title:"CPU",data:`${s.cpu} vCore`}}),a("list-entry",{attrs:{title:"RAM",data:`${s.ram} MB`}}),a("list-entry",{attrs:{title:"SSD",data:`${s.hdd} GB`}})],1)],1)])}))],2),a("h3",[a("kbd",{staticClass:"alert-info d-flex",staticStyle:{"border-radius":"15px","font-family":"monospace","padding-right":"100%"}},[a("b-icon",{staticClass:"ml-1",attrs:{scale:"1",icon:"globe"}}),t._v("  Locations ")],1)]),a("b-row",[a("b-col",{staticClass:"my-1",attrs:{md:"4",sm:"4"}},[a("b-form-group",{staticClass:"mb-0"},[a("label",{staticClass:"d-inline-block text-left mr-50"},[t._v("Per page")]),a("b-form-select",{staticClass:"w-50",attrs:{id:"perPageSelect",size:"sm",options:t.appLocationOptions.pageOptions},model:{value:t.appLocationOptions.perPage,callback:function(a){t.$set(t.appLocationOptions,"perPage",a)},expression:"appLocationOptions.perPage"}})],1)],1),a("b-col",{staticClass:"my-1",attrs:{md:"8"}},[a("b-form-group",{staticClass:"mb-0",attrs:{label:"Filter","label-cols-sm":"1","label-align-sm":"right","label-for":"filterInput"}},[a("b-input-group",{attrs:{size:"sm"}},[a("b-form-input",{attrs:{id:"filterInput",type:"search",placeholder:"Type to Search"},model:{value:t.appLocationOptions.filterTree,callback:function(a){t.$set(t.appLocationOptions,"filterTree",a)},expression:"appLocationOptions.filterTree"}}),a("b-input-group-append",[a("b-button",{attrs:{disabled:!t.appLocationOptions.filterTree},on:{click:function(a){t.appLocationOptions.filterTree=""}}},[t._v(" Clear ")])],1)],1)],1)],1),a("b-col",{attrs:{cols:"12"}},[a("b-table",{staticClass:"locations-table",attrs:{borderless:"","per-page":t.appLocationOptions.perPage,"current-page":t.appLocationOptions.currentPage,items:t.appLocations,fields:t.appLocationFields,"thead-class":"d-none",filter:t.appLocationOptions.filterTree,"show-empty":"","sort-icon-left":"","empty-text":"No instances found.."},scopedSlots:t._u([{key:"cell(ip)",fn:function(e){return[a("div",{staticClass:"no-wrap"},[a("kbd",{staticClass:"alert-info",staticStyle:{"border-radius":"15px"}},[a("b-icon",{attrs:{scale:"1.1",icon:"hdd-network-fill"}})],1),t._v("  "),a("kbd",{staticClass:"alert-success no-wrap",staticStyle:{"border-radius":"15px"}},[a("b",[t._v("  "+t._s(e.item.ip)+"  ")])])])]}},{key:"cell(visit)",fn:function(s){return[a("div",{staticClass:"d-flex justify-content-end"},[a("b-button",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.top",value:"Visit App",expression:"'Visit App'",modifiers:{hover:!0,top:!0}}],staticClass:"mr-1",attrs:{size:"sm",pill:"",variant:"dark"},on:{click:function(a){t.openApp(e.item.name,s.item.ip.split(":")[0],t.getProperPort(e.item))}}},[a("b-icon",{attrs:{scale:"1",icon:"door-open"}}),t._v(" App ")],1),a("b-button",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.top",value:"Visit FluxNode",expression:"'Visit FluxNode'",modifiers:{hover:!0,top:!0}}],staticClass:"mr-0",attrs:{size:"sm",pill:"",variant:"outline-dark"},on:{click:function(a){t.openNodeFluxOS(s.item.ip.split(":")[0],s.item.ip.split(":")[1]?+s.item.ip.split(":")[1]-1:16126)}}},[a("b-icon",{attrs:{scale:"1",icon:"house-door-fill"}}),t._v(" FluxNode ")],1),t._v("   ")],1)]}}],null,!0)})],1),a("b-col",{attrs:{cols:"12"}},[a("b-pagination",{staticClass:"my-0 mt-1",attrs:{"total-rows":t.appLocationOptions.totalRows,"per-page":t.appLocationOptions.perPage,align:"center",size:"sm"},model:{value:t.appLocationOptions.currentPage,callback:function(a){t.$set(t.appLocationOptions,"currentPage",a)},expression:"appLocationOptions.currentPage"}})],1)],1)],1)]}},{key:"cell(install)",fn:function(e){return[a("b-button",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.top",value:"Install App",expression:"'Install App'",modifiers:{hover:!0,top:!0}}],staticClass:"mr-0 no-wrap",attrs:{id:`install-app-${e.item.name}`,size:"sm",pill:"",variant:"primary"}},[a("b-icon",{attrs:{scale:"0.9",icon:"layer-forward"}}),t._v(" Install ")],1),a("confirm-dialog",{attrs:{target:`install-app-${e.item.name}`,"confirm-button":"Install App"},on:{confirm:function(a){return t.installAppLocally(e.item.name)}}})]}}])})],1),a("b-col",{attrs:{cols:"12"}},[a("b-pagination",{staticClass:"my-0",attrs:{"total-rows":t.tableconfig.globalAvailable.apps.length,"per-page":t.tableconfig.globalAvailable.perPage,align:"center",size:"sm"},model:{value:t.tableconfig.globalAvailable.currentPage,callback:function(a){t.$set(t.tableconfig.globalAvailable,"currentPage",a)},expression:"tableconfig.globalAvailable.currentPage"}})],1)],1)],1)],1)],1),a("b-tab",{attrs:{title:"My Local Apps"}},[a("b-overlay",{attrs:{show:t.tableconfig.installed.loading,variant:"transparent",blur:"5px"}},[a("b-card",[a("b-row",[a("b-col",{staticClass:"my-1",attrs:{md:"4",sm:"4"}},[a("b-form-group",{staticClass:"mb-0"},[a("label",{staticClass:"d-inline-block text-left mr-50"},[t._v("Per page")]),a("b-form-select",{staticClass:"w-50",attrs:{id:"perPageSelect",size:"sm",options:t.tableconfig.local.pageOptions},model:{value:t.tableconfig.local.perPage,callback:function(a){t.$set(t.tableconfig.local,"perPage",a)},expression:"tableconfig.local.perPage"}})],1)],1),a("b-col",{staticClass:"my-1",attrs:{md:"8"}},[a("b-form-group",{staticClass:"mb-0",attrs:{label:"Filter","label-cols-sm":"1","label-align-sm":"right","label-for":"filterInput"}},[a("b-input-group",{attrs:{size:"sm"}},[a("b-form-input",{attrs:{id:"filterInput",type:"search",placeholder:"Type to Search"},model:{value:t.tableconfig.local.filter,callback:function(a){t.$set(t.tableconfig.local,"filter",a)},expression:"tableconfig.local.filter"}}),a("b-input-group-append",[a("b-button",{attrs:{disabled:!t.tableconfig.local.filter},on:{click:function(a){t.tableconfig.local.filter=""}}},[t._v(" Clear ")])],1)],1)],1)],1),a("b-col",{attrs:{cols:"12"}},[a("b-table",{staticClass:"apps-local-table",attrs:{striped:"",outlined:"",responsive:"","per-page":t.tableconfig.local.perPage,"current-page":t.tableconfig.local.currentPage,items:t.tableconfig.local.apps,fields:t.tableconfig.local.fields,"sort-by":t.tableconfig.local.sortBy,"sort-desc":t.tableconfig.local.sortDesc,"sort-direction":t.tableconfig.local.sortDirection,filter:t.tableconfig.local.filter,"show-empty":"","sort-icon-left":"","empty-text":"No Local Apps owned."},on:{"update:sortBy":function(a){return t.$set(t.tableconfig.local,"sortBy",a)},"update:sort-by":function(a){return t.$set(t.tableconfig.local,"sortBy",a)},"update:sortDesc":function(a){return t.$set(t.tableconfig.local,"sortDesc",a)},"update:sort-desc":function(a){return t.$set(t.tableconfig.local,"sortDesc",a)},filtered:t.onFilteredLocal},scopedSlots:t._u([{key:"cell(name)",fn:function(e){return[a("div",{staticClass:"text-left"},[a("kbd",{staticClass:"alert-info no-wrap",staticStyle:{"border-radius":"15px","font-weight":"700 !important"}},[a("b-icon",{attrs:{scale:"1.2",icon:"app-indicator"}}),t._v("  "+t._s(e.item.name)+"  ")],1),a("br"),a("small",{staticStyle:{"font-size":"11px"}},[a("div",{staticClass:"d-flex align-items-center",staticStyle:{"margin-top":"3px"}},[t._v("   "),a("b-icon",{attrs:{scale:"1.4",icon:"speedometer2"}}),t._v("  "),a("kbd",{staticClass:"alert-success",staticStyle:{"border-radius":"15px"}},[t._v(" "),a("b",[t._v(t._s(t.getServiceUsageValue(1,e.item.name,e.item)))]),t._v(" ")]),t._v("   "),a("b-icon",{attrs:{scale:"1.4",icon:"cpu"}}),t._v("  "),a("kbd",{staticClass:"alert-success",staticStyle:{"border-radius":"15px"}},[t._v(" "),a("b",[t._v(t._s(t.getServiceUsageValue(0,e.item.name,e.item)))]),t._v(" ")]),t._v("   "),a("b-icon",{attrs:{scale:"1.4",icon:"hdd"}}),t._v("  "),a("kbd",{staticClass:"alert-success",staticStyle:{"border-radius":"15px"}},[t._v(" "),a("b",[t._v(t._s(t.getServiceUsageValue(2,e.item.name,e.item)))]),t._v(" ")]),t._v("  "),a("b-icon",{attrs:{scale:"1.2",icon:"geo-alt"}}),t._v(" "),a("kbd",{staticClass:"alert-warning",staticStyle:{"border-radius":"15px"}},[t._v(" "),a("b",[t._v(t._s(e.item.instances))]),t._v(" ")])],1),a("span",{staticClass:"no-wrap",class:{"red-text":t.isLessThanTwoDays(t.labelForExpire(e.item.expire,e.item.height))}},[t._v("   "),a("b-icon",{attrs:{scale:"1.2",icon:"hourglass-split"}}),t._v(" "+t._s(t.labelForExpire(e.item.expire,e.item.height))+"   ")],1)])])]}},{key:"cell(visit)",fn:function(e){return[a("b-button",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.top",value:"Visit App",expression:"'Visit App'",modifiers:{hover:!0,top:!0}}],staticClass:"mr-0 no-wrap hover-underline",attrs:{size:"sm",variant:"link"},on:{click:function(a){return t.openApp(e.item.name)}}},[a("b-icon",{attrs:{scale:"1",icon:"front"}}),t._v(" Visit ")],1)]}},{key:"cell(description)",fn:function(e){return[a("kbd",{staticClass:"text-secondary textarea",staticStyle:{float:"left","text-align":"left"}},[t._v(t._s(e.item.description))])]}},{key:"cell(state)",fn:function(e){return[a("kbd",{class:t.getBadgeClass(e.item.name),staticStyle:{"border-radius":"15px"}},[t._v(" "),a("b",[t._v(t._s(t.getStateByName(e.item.name)))]),t._v(" ")])]}},{key:"cell(show_details)",fn:function(e){return[a("a",{on:{click:function(a){return t.showLocations(e,t.tableconfig.local.apps)}}},[e.detailsShowing?t._e():a("v-icon",{staticClass:"ml-1",attrs:{name:"chevron-down"}}),e.detailsShowing?a("v-icon",{staticClass:"ml-1",attrs:{name:"chevron-up"}}):t._e()],1)]}},{key:"row-details",fn:function(e){return[a("b-card",{staticClass:"mx-2"},[a("h3",{staticClass:"no-wrap"},[a("kbd",{staticClass:"alert-info d-flex",staticStyle:{"border-radius":"15px","font-family":"monospace","padding-right":"100%"}},[a("b-icon",{staticClass:"ml-1",attrs:{scale:"1",icon:"info-square"}}),t._v("  Application Information ")],1)]),a("div",{staticClass:"ml-1"},[e.item.owner?a("list-entry",{attrs:{title:"Owner",data:e.item.owner}}):t._e(),e.item.hash?a("list-entry",{attrs:{title:"Hash",data:e.item.hash}}):t._e(),e.item.version>=5?a("div",[e.item.contacts.length>0?a("list-entry",{attrs:{title:"Contacts",data:JSON.stringify(e.item.contacts)}}):t._e(),e.item.geolocation.length?a("div",t._l(e.item.geolocation,(function(e){return a("div",{key:e},[a("list-entry",{attrs:{title:"Geolocation",data:t.getGeolocation(e)}})],1)})),0):a("div",[a("list-entry",{attrs:{title:"Continent",data:"All"}}),a("list-entry",{attrs:{title:"Country",data:"All"}}),a("list-entry",{attrs:{title:"Region",data:"All"}})],1)],1):t._e(),e.item.instances?a("list-entry",{attrs:{title:"Instances",data:e.item.instances.toString()}}):t._e(),a("list-entry",{attrs:{title:"Expires in",data:t.labelForExpire(e.item.expire,e.item.height)}}),e.item?.nodes?.length>0?a("list-entry",{attrs:{title:"Enterprise Nodes",data:e.item.nodes?e.item.nodes.toString():"Not scoped"}}):t._e(),a("list-entry",{attrs:{title:"Static IP",data:e.item.staticip?"Yes, Running only on Static IP nodes":"No, Running on all nodes"}})],1),e.item.version<=3?a("div",[a("b-card",[a("list-entry",{attrs:{title:"Repository",data:e.item.repotag}}),a("list-entry",{attrs:{title:"Custom Domains",data:e.item.domains.toString()||"none"}}),a("list-entry",{attrs:{title:"Automatic Domains",data:t.constructAutomaticDomains(e.item.ports,void 0,e.item.name).toString()}}),a("list-entry",{attrs:{title:"Ports",data:e.item.ports.toString()}}),a("list-entry",{attrs:{title:"Container Ports",data:e.item.containerPorts.toString()}}),a("list-entry",{attrs:{title:"Container Data",data:e.item.containerData}}),a("list-entry",{attrs:{title:"Enviroment Parameters",data:e.item.enviromentParameters.length>0?e.item.enviromentParameters.toString():"none"}}),a("list-entry",{attrs:{title:"Commands",data:e.item.commands.length>0?e.item.commands.toString():"none"}}),e.item.tiered?a("div",[a("list-entry",{attrs:{title:"CPU Cumulus",data:`${e.item.cpubasic} vCore`}}),a("list-entry",{attrs:{title:"CPU Nimbus",data:`${e.item.cpusuper} vCore`}}),a("list-entry",{attrs:{title:"CPU Stratus",data:`${e.item.cpubamf} vCore`}}),a("list-entry",{attrs:{title:"RAM Cumulus",data:`${e.item.rambasic} MB`}}),a("list-entry",{attrs:{title:"RAM Nimbus",data:`${e.item.ramsuper} MB`}}),a("list-entry",{attrs:{title:"RAM Stratus",data:`${e.item.rambamf} MB`}}),a("list-entry",{attrs:{title:"SSD Cumulus",data:`${e.item.hddbasic} GB`}}),a("list-entry",{attrs:{title:"SSD Nimbus",data:`${e.item.hddsuper} GB`}}),a("list-entry",{attrs:{title:"SSD Stratus",data:`${e.item.hddbamf} GB`}})],1):a("div",[a("list-entry",{attrs:{title:"CPU",data:`${e.item.cpu} vCore`}}),a("list-entry",{attrs:{title:"RAM",data:`${e.item.ram} MB`}}),a("list-entry",{attrs:{title:"SSD",data:`${e.item.hdd} GB`}})],1)],1)],1):a("div",[a("h3",{staticClass:"no-wrap"},[a("kbd",{staticClass:"alert-info d-flex",staticStyle:{"border-radius":"15px","font-family":"monospace","padding-right":"100%"}},[a("b-icon",{staticClass:"ml-1",attrs:{scale:"1",icon:"box"}}),t._v("  Composition ")],1)]),t._l(e.item.compose,(function(s,i){return a("b-card",{key:i,staticClass:"mb-0"},[a("h3",{staticClass:"no-wrap"},[a("kbd",{staticClass:"alert-success d-flex",staticStyle:{"border-radius":"15px","font-family":"monospace","max-width":"500px"}},[a("b-icon",{staticClass:"ml-1",attrs:{scale:"1",icon:"menu-app-fill"}}),t._v("  "+t._s(s.name)+" ")],1)]),a("div",{staticClass:"ml-1"},[a("list-entry",{attrs:{title:"Name",data:s.name}}),a("list-entry",{attrs:{title:"Description",data:s.description}}),a("list-entry",{attrs:{title:"Repository",data:s.repotag}}),a("list-entry",{attrs:{title:"Repository Authentication",data:s.repoauth?"Content Encrypted":"Public"}}),a("list-entry",{attrs:{title:"Custom Domains",data:s.domains.toString()||"none"}}),a("list-entry",{attrs:{title:"Automatic Domains",data:t.constructAutomaticDomains(s.ports,s.name,e.item.name,i).toString()}}),a("list-entry",{attrs:{title:"Ports",data:s.ports.toString()}}),a("list-entry",{attrs:{title:"Container Ports",data:s.containerPorts.toString()}}),a("list-entry",{attrs:{title:"Container Data",data:s.containerData}}),a("list-entry",{attrs:{title:"Environment Parameters",data:s.environmentParameters.length>0?s.environmentParameters.toString():"none"}}),a("list-entry",{attrs:{title:"Commands",data:s.commands.length>0?s.commands.toString():"none"}}),a("list-entry",{attrs:{title:"Secret Environment Parameters",data:s.secrets?"Content Encrypted":"none"}}),s.tiered?a("div",[a("list-entry",{attrs:{title:"CPU Cumulus",data:`${s.cpubasic} vCore`}}),a("list-entry",{attrs:{title:"CPU Nimbus",data:`${s.cpusuper} vCore`}}),a("list-entry",{attrs:{title:"CPU Stratus",data:`${s.cpubamf} vCore`}}),a("list-entry",{attrs:{title:"RAM Cumulus",data:`${s.rambasic} MB`}}),a("list-entry",{attrs:{title:"RAM Nimbus",data:`${s.ramsuper} MB`}}),a("list-entry",{attrs:{title:"RAM Stratus",data:`${s.rambamf} MB`}}),a("list-entry",{attrs:{title:"SSD Cumulus",data:`${s.hddbasic} GB`}}),a("list-entry",{attrs:{title:"SSD Nimbus",data:`${s.hddsuper} GB`}}),a("list-entry",{attrs:{title:"SSD Stratus",data:`${s.hddbamf} GB`}})],1):a("div",[a("list-entry",{attrs:{title:"CPU",data:`${s.cpu} vCore`}}),a("list-entry",{attrs:{title:"RAM",data:`${s.ram} MB`}}),a("list-entry",{attrs:{title:"SSD",data:`${s.hdd} GB`}})],1)],1)])}))],2),a("h3",[a("kbd",{staticClass:"alert-info d-flex",staticStyle:{"border-radius":"15px","font-family":"monospace","padding-right":"100%"}},[a("b-icon",{staticClass:"ml-1",attrs:{scale:"1",icon:"globe"}}),t._v("  Locations ")],1)]),a("b-row",[a("b-col",{staticClass:"my-1",attrs:{md:"4",sm:"4"}},[a("b-form-group",{staticClass:"mb-0"},[a("label",{staticClass:"d-inline-block text-left mr-50"},[t._v("Per page")]),a("b-form-select",{staticClass:"w-50",attrs:{id:"perPageSelect",size:"sm",options:t.appLocationOptions.pageOptions},model:{value:t.appLocationOptions.perPage,callback:function(a){t.$set(t.appLocationOptions,"perPage",a)},expression:"appLocationOptions.perPage"}})],1)],1),a("b-col",{staticClass:"my-1",attrs:{md:"8"}},[a("b-form-group",{staticClass:"mb-0",attrs:{label:"Filter","label-cols-sm":"1","label-align-sm":"right","label-for":"filterInput"}},[a("b-input-group",{attrs:{size:"sm"}},[a("b-form-input",{attrs:{id:"filterInput",type:"search",placeholder:"Type to Search"},model:{value:t.appLocationOptions.filterTree,callback:function(a){t.$set(t.appLocationOptions,"filterTree",a)},expression:"appLocationOptions.filterTree"}}),a("b-input-group-append",[a("b-button",{attrs:{disabled:!t.appLocationOptions.filterTree},on:{click:function(a){t.appLocationOptions.filterTree=""}}},[t._v(" Clear ")])],1)],1)],1)],1),a("b-col",{attrs:{cols:"12"}},[a("b-table",{staticClass:"locations-table",attrs:{borderless:"","per-page":t.appLocationOptions.perPage,"current-page":t.appLocationOptions.currentPage,items:t.appLocations,fields:t.appLocationFields,"thead-class":"d-none",filter:t.appLocationOptions.filterTree,"show-empty":"","sort-icon-left":"","empty-text":"No instances found.."},scopedSlots:t._u([{key:"cell(ip)",fn:function(e){return[a("div",{staticClass:"no-wrap"},[a("kbd",{staticClass:"alert-info",staticStyle:{"border-radius":"15px"}},[a("b-icon",{attrs:{scale:"1.1",icon:"hdd-network-fill"}})],1),t._v("  "),a("kbd",{staticClass:"alert-success no-wrap",staticStyle:{"border-radius":"15px"}},[a("b",[t._v("  "+t._s(e.item.ip)+"  ")])])])]}},{key:"cell(visit)",fn:function(s){return[a("div",{staticClass:"d-flex justify-content-end"},[a("b-button",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.top",value:"Visit App",expression:"'Visit App'",modifiers:{hover:!0,top:!0}}],staticClass:"mr-1",attrs:{size:"sm",pill:"",variant:"dark"},on:{click:function(a){t.openApp(e.item.name,s.item.ip.split(":")[0],t.getProperPort(e.item))}}},[a("b-icon",{attrs:{scale:"1",icon:"door-open"}}),t._v(" App ")],1),a("b-button",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.top",value:"Visit FluxNode",expression:"'Visit FluxNode'",modifiers:{hover:!0,top:!0}}],staticClass:"mr-0",attrs:{size:"sm",pill:"",variant:"outline-dark"},on:{click:function(a){t.openNodeFluxOS(s.item.ip.split(":")[0],s.item.ip.split(":")[1]?+s.item.ip.split(":")[1]-1:16126)}}},[a("b-icon",{attrs:{scale:"1",icon:"house-door-fill"}}),t._v(" FluxNode ")],1),t._v("   ")],1)]}}],null,!0)})],1),a("b-col",{attrs:{cols:"12"}},[a("b-pagination",{staticClass:"my-0 mt-1",attrs:{"total-rows":t.appLocationOptions.totalRows,"per-page":t.appLocationOptions.perPage,align:"center",size:"sm"},model:{value:t.appLocationOptions.currentPage,callback:function(a){t.$set(t.appLocationOptions,"currentPage",a)},expression:"appLocationOptions.currentPage"}})],1)],1)],1)]}},{key:"cell(Name)",fn:function(a){return[t._v(" "+t._s(t.getAppName(a.item.name))+" ")]}},{key:"cell(Description)",fn:function(a){return[t._v(" "+t._s(a.item.description)+" ")]}},{key:"cell(actions)",fn:function(e){return[a("b-button-toolbar",[a("b-button-group",{attrs:{size:"sm"}},[a("b-button",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.top",value:"Start App",expression:"'Start App'",modifiers:{hover:!0,top:!0}}],staticClass:"no-wrap",attrs:{id:`start-local-app-${e.item.name}`,disabled:t.isAppInList(e.item.name,t.tableconfig.running.apps),size:"sm",variant:"outline-dark"}},[a("b-icon",{staticClass:"icon-style-start",class:{"disable-hover":t.isAppInList(e.item.name,t.tableconfig.running.apps)},attrs:{scale:"1.2",icon:"play-fill"}})],1),a("confirm-dialog",{attrs:{target:`start-local-app-${e.item.name}`,"confirm-button":"Start App"},on:{confirm:function(a){return t.startApp(e.item.name)}}}),a("b-button",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.top",value:"Stop App",expression:"'Stop App'",modifiers:{hover:!0,top:!0}}],staticClass:"mr-0",attrs:{id:`stop-local-app-${e.item.name}`,size:"sm",variant:"outline-dark",disabled:!t.isAppInList(e.item.name,t.tableconfig.running.apps)}},[a("b-icon",{staticClass:"icon-style-stop",class:{"disable-hover":!t.isAppInList(e.item.name,t.tableconfig.running.apps)},attrs:{scale:"1.2",icon:"stop-circle"}})],1),a("confirm-dialog",{attrs:{target:`stop-local-app-${e.item.name}`,"confirm-button":"Stop App"},on:{confirm:function(a){return t.stopApp(e.item.name)}}}),a("b-button",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.top",value:"Restart App",expression:"'Restart App'",modifiers:{hover:!0,top:!0}}],staticClass:"no-wrap",attrs:{id:`restart-local-app-${e.item.name}`,size:"sm",variant:"outline-dark"}},[a("b-icon",{staticClass:"icon-style-restart",attrs:{scale:"1",icon:"bootstrap-reboot"}})],1),a("confirm-dialog",{attrs:{target:`restart-local-app-${e.item.name}`,"confirm-button":"Restart App"},on:{confirm:function(a){return t.restartApp(e.item.name)}}}),a("b-button",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.top",value:"Remove App",expression:"'Remove App'",modifiers:{hover:!0,top:!0}}],staticClass:"no-wrap",attrs:{id:`remove-local-app-${e.item.name}`,size:"sm",variant:"outline-dark"}},[a("b-icon",{staticClass:"icon-style-trash",attrs:{scale:"1",icon:"trash"}})],1),a("confirm-dialog",{attrs:{target:`remove-local-app-${e.item.name}`,"confirm-button":"Remove App"},on:{confirm:function(a){return t.removeApp(e.item.name)}}}),a("b-button",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.top",value:"Manage App",expression:"'Manage App'",modifiers:{hover:!0,top:!0}}],staticClass:"no-wrap",attrs:{id:`manage-local-app-${e.item.name}`,size:"sm",variant:"outline-dark"}},[a("b-icon",{staticClass:"icon-style-gear",attrs:{scale:"1",icon:"gear"}})],1),a("confirm-dialog",{attrs:{target:`manage-local-app-${e.item.name}`,"confirm-button":"Manage App"},on:{confirm:function(a){return t.openAppManagement(e.item.name)}}})],1)],1)]}}])})],1),a("b-col",{attrs:{cols:"12"}},[a("div",{staticClass:"d-flex justify-content-between align-items-center"},[a("div",[t.isLoggedIn()?a("div",{staticClass:"d-inline ml-2"},[a("b-icon",{attrs:{scale:"1.4",icon:"layers"}}),a("b",[t._v("  "),a("kbd",{staticClass:"alert-success",staticStyle:{"border-radius":"15px"}},[t._v(" "+t._s(t.tableconfig.local.totalRows)+" ")])])],1):t._e()]),a("div",{staticClass:"text-center flex-grow-1"},[a("b-pagination",{staticClass:"my-0",attrs:{"total-rows":t.tableconfig.local.totalRows,"per-page":t.tableconfig.local.perPage,align:"center",size:"sm"},model:{value:t.tableconfig.local.currentPage,callback:function(a){t.$set(t.tableconfig.local,"currentPage",a)},expression:"tableconfig.local.currentPage"}})],1)])])],1)],1)],1)],1)],1),t.output.length>0?a("div",{staticClass:"actionCenter"},[a("br"),a("b-row",[a("b-col",{attrs:{cols:"9"}},[a("b-form-textarea",{ref:"outputTextarea",staticClass:"mt-1",attrs:{plaintext:"","no-resize":"",rows:t.output.length+1,value:t.stringOutput()}})],1),t.downloadOutputReturned?a("b-col",{attrs:{cols:"3"}},[a("h3",[t._v("Downloads")]),t._l(t.downloadOutput,(function(e){return a("div",{key:e.id},[a("h4",[t._v(" "+t._s(e.id))]),a("b-progress",{attrs:{value:e.detail.current/e.detail.total*100,max:"100",striped:"",height:"1rem",variant:e.variant}}),a("br")],1)}))],2):t._e()],1)],1):t._e()],1),t.managedApplication?a("div",[a("management",{attrs:{"app-name":t.managedApplication,global:!1,"installed-apps":t.tableconfig.installed.apps},on:{back:function(a){return t.clearManagedApplication()}}})],1):t._e()])},i=[],o=(e(70560),e(15716),e(33442),e(61964),e(69878),e(52915),e(97895),e(22275),e(58887)),n=e(51015),l=e(16521),r=e(50725),c=e(86855),p=e(26253),d=e(15193),m=e(41984),u=e(45969),b=e(46709),g=e(22183),h=e(8051),f=e(4060),v=e(22418),y=e(333),C=e(66126),S=e(10962),w=e(45752),_=e(20266),A=e(20629),x=e(34547),k=e(87156),$=e(51748),P=e(91587),L=e(43672),N=e(27616);const O=e(58971),D=e(80129),B=e(63005),R=e(57306),I={components:{BTabs:o.M,BTab:n.L,BTable:l.h,BCol:r.l,BCard:c._,BRow:p.T,BButton:d.T,BButtonToolbar:m.r,BButtonGroup:u.a,BFormGroup:b.x,BFormInput:g.e,BFormSelect:h.K,BInputGroup:f.w,BInputGroupAppend:v.B,BFormTextarea:y.y,BOverlay:C.X,BPagination:S.c,BProgress:w.D,ConfirmDialog:k.Z,ListEntry:$.Z,Management:P.Z,ToastificationContent:x.Z},directives:{Ripple:_.Z},data(){return{stateAppsNames:[],tableKey:0,timeoptions:B,output:[],downloading:!1,downloadOutputReturned:!1,downloadOutput:{},managedApplication:"",daemonBlockCount:-1,tableconfig:{running:{apps:[],status:"",loggedInFields:[{key:"show_details",label:""},{key:"name",label:"Name",sortable:!0},{key:"description",label:"Description"},{key:"visit",label:"Visit",thStyle:{width:"3%"}},{key:"actions",label:"Actions",thStyle:{width:"15%"}}],fields:[{key:"show_details",label:""},{key:"name",label:"Name",sortable:!0},{key:"description",label:"Description"},{key:"visit",label:"Visit",thStyle:{width:"3%"}}],loading:!0},installed:{apps:[],status:"",loggedInFields:[{key:"show_details",label:""},{key:"name",label:"Name",sortable:!0},{key:"state",label:"State",class:"text-center",thStyle:{width:"2%"}},{key:"description",label:"Description",class:"text-left"},{key:"actions",label:"",thStyle:{width:"12%"}},{key:"visit",label:"",class:"text-center",thStyle:{width:"2%"}}],fields:[{key:"show_details",label:""},{key:"name",label:"Name",sortable:!0},{key:"description",label:"Description"},{key:"visit",label:"",class:"text-center",thStyle:{width:"3%"}}],loading:!0},available:{apps:[],status:"",loggedInFields:[{key:"show_details",label:""},{key:"name",label:"Name",sortable:!0,thStyle:{width:"18%"}},{key:"description",label:"Description",thStyle:{width:"75%"}},{key:"install",label:"",thStyle:{width:"5%"}}],fields:[{key:"show_details",label:""},{key:"name",label:"Name",sortable:!0},{key:"description",label:"Description",thStyle:{width:"80%"}}],loading:!0},globalAvailable:{apps:[],status:"",loggedInFields:[{key:"show_details",label:""},{key:"name",label:"Name",sortable:!0,thStyle:{width:"18%"}},{key:"description",label:"Description",thStyle:{width:"75%"}},{key:"install",label:"",thStyle:{width:"5%"}}],fields:[{key:"show_details",label:""},{key:"name",label:"Name",sortable:!0},{key:"description",label:"Description",thStyle:{width:"80%"}}],loading:!0,perPage:50,pageOptions:[5,10,25,50,100],filter:"",filterOn:[],currentPage:1,totalRows:1},local:{apps:[],status:"",fields:[{key:"show_details",label:""},{key:"name",label:"Name",sortable:!0},{key:"description",label:"Description"},{key:"actions",label:"",thStyle:{width:"15%"}},{key:"visit",label:"",class:"text-center",thStyle:{width:"3%"}}],perPage:5,pageOptions:[5,10,25,50,100],sortBy:"",sortDesc:!1,sortDirection:"asc",connectedPeers:[],filter:"",filterOn:[],currentPage:1,totalRows:1}},tier:"",appLocations:[],appLocationFields:[{key:"ip",label:"IP Address",sortable:!0},{key:"visit",label:""}],appLocationOptions:{perPage:5,pageOptions:[5,10,25,50,100],currentPage:1,totalRows:1,filterOne:"",filterTwo:"",filterTree:""},callResponse:{status:"",data:""}}},computed:{...(0,A.rn)("flux",["config","userconfig","privilege"]),isApplicationInstalledLocally(){if(this.tableconfig.installed.apps){const t=this.tableconfig.installed.apps.find((t=>t.name===this.managedApplication));return!!t}return!1}},mounted(){this.getFluxNodeStatus(),this.appsGetAvailableApps(),this.appsGetListRunningApps(),this.appsGetInstalledApps(),this.appsGetListGlobalApps();const{hostname:t,port:a}=window.location,e=/[A-Za-z]/g;if(!t.match(e)&&("string"===typeof t&&this.$store.commit("flux/setUserIp",t),+a>16100)){const t=+a+1;this.$store.commit("flux/setFluxPort",t)}this.getDaemonBlockCount()},methods:{openNodeFluxOS(t,a){if(console.log(t,a),a&&t){const e=t,s=a,i=`http://${e}:${s}`;this.openSite(i)}else this.showToast("danger","Unable to open FluxOS :(")},tabChanged(){this.tableconfig.installed.apps.forEach((t=>{this.$set(t,"_showDetails",!1)})),this.tableconfig.available.apps.forEach((t=>{this.$set(t,"_showDetails",!1)})),this.tableconfig.globalAvailable.apps.forEach((t=>{this.$set(t,"_showDetails",!1)})),this.appLocations=[],!1===this.downloading&&(this.output=[])},isLessThanTwoDays(t){const a=t?.split(",").map((t=>t.trim()));let e=0,s=0,i=0;for(const n of a)n.includes("days")?e=parseInt(n,10):n.includes("hours")?s=parseInt(n,10):n.includes("minutes")&&(i=parseInt(n,10));const o=24*e*60+60*s+i;return o<2880},getServiceUsageValue(t,a,e){if("undefined"===typeof e?.compose)return this.usage=[+e.ram,+e.cpu,+e.hdd],this.usage[t];const s=this.getServiceUsage(a,e.compose);return s[t]},getServiceUsage(t,a){const[e,s,i]=a.reduce(((t,a)=>{const e=+a.ram||0,s=+a.cpu||0,i=+a.hdd||0;return t[0]+=e,t[1]+=s,t[2]+=i,t}),[0,0,0]);return[e,s,i]},getBadgeClass(t){const a=this.getStateByName(t);return{"alert-success":"running"===a,"alert-danger":"stopped"===a}},getStateByName(t){const a=this.stateAppsNames.filter((a=>a.name===t));return a?.length>0?a[0].state:"stopped"},isAppInList(t,a){return 0!==a?.length&&a.some((a=>a.name===t))},minutesToString(t){let a=60*t;const e={day:86400,hour:3600,minute:60,second:1},s=[];for(const i in e){const t=Math.floor(a/e[i]);1===t&&s.push(` ${t} ${i}`),t>=2&&s.push(` ${t} ${i}s`),a%=e[i]}return s},labelForExpire(t,a){if(-1===this.daemonBlockCount)return"Not possible to calculate expiration";const e=t||22e3,s=a+e-this.daemonBlockCount;if(s<1)return"Application Expired";const i=2*s,o=this.minutesToString(i);return o.length>2?`${o[0]}, ${o[1]}, ${o[2]}`:o.length>1?`${o[0]}, ${o[1]}`:`${o[0]}`},async appsGetListGlobalApps(){this.tableconfig.globalAvailable.loading=!0,console.log("CALL1");const t=await L.Z.globalAppSpecifications();console.log(t),console.log("CALL2");const a=t.data.data.sort(((t,a)=>t.name.toLowerCase()>a.name.toLowerCase()?1:-1));console.log("CALL3"),this.tableconfig.globalAvailable.apps=a,this.tableconfig.globalAvailable.loading=!1,this.tableconfig.globalAvailable.status=t.data.status},async getDaemonBlockCount(){const t=await N.Z.getBlockCount();"success"===t.data.status&&(this.daemonBlockCount=t.data.data)},async getFluxNodeStatus(){const t=await N.Z.getFluxNodeStatus();"success"===t.data.status&&(this.tier=t.data.data.tier)},async appsGetInstalledApps(){this.tableconfig.installed.loading=!0;const t=await L.Z.installedApps();this.tableconfig.installed.status=t.data.status,this.tableconfig.installed.apps=t.data.data,this.tableconfig.installed.loading=!1;const a=localStorage.getItem("zelidauth"),e=D.parse(a);this.tableconfig.local.apps=this.tableconfig.installed.apps.filter((t=>t.owner===e.zelid)),this.tableconfig.local.totalRows=this.tableconfig.local.apps.length},async appsGetListRunningApps(t=0){this.tableconfig.running.loading=!0;const a=this;setTimeout((async()=>{const t=await L.Z.listRunningApps(),e=t.data.data,s=[],i=[];a.stateAppsNames=[],e.forEach((t=>{const e=t.Names[0].startsWith("/flux")?t.Names[0].slice(5):t.Names[0].slice(4);if(e.includes("_")){if(s.push(e.split("_")[1]),!e.includes("watchtower")){const s={name:e.split("_")[1],state:t.State};a.stateAppsNames.push(s)}}else if(s.push(e),!e.includes("watchtower")){const s={name:e,state:t.State};a.stateAppsNames.push(s)}}));const o=[...new Set(s)];for(const a of o){const t=await L.Z.getAppSpecifics(a);"success"===t.data.status&&i.push(t.data.data)}a.tableconfig.running.status=t.data.status,a.tableconfig.running.apps=i,a.tableconfig.running.loading=!1,a.tableconfig.running.status=t.data.data}),t)},async appsGetAvailableApps(){this.tableconfig.available.loading=!0;const t=await L.Z.availableApps();this.tableconfig.available.status=t.data.status,this.tableconfig.available.apps=t.data.data,this.tableconfig.available.loading=!1},openApp(t,a,e){if(e&&a){const t=`http://${a}:${e}`;this.openSite(t)}else{const a=this.installedApp(t),e=O.get("backendURL")||`http://${this.userconfig.externalip}:${this.config.apiPort}`,s=e.split(":")[1].split("//")[1],i=a.port||a.ports?a?.ports[0]:a?.compose[0].ports[0];if(""===i)return void this.showToast("danger","Unable to open App :(, App does not have a port.");const o=`http://${s}:${i}`;this.openSite(o)}},getProperPort(t){if(t.port)return t.port;if(t.ports)return t.ports[0];for(let a=0;aa.name===t))},openSite(t){const a=window.open(t,"_blank");a.focus()},async stopApp(t){this.output=[],this.showToast("warning",`Stopping ${this.getAppName(t)}`);const a=localStorage.getItem("zelidauth"),e=await L.Z.stopApp(a,t);"success"===e.data.status?this.showToast("success",e.data.data.message||e.data.data):this.showToast("danger",e.data.data.message||e.data.data),this.appsGetListRunningApps(5e3)},async startApp(t){this.output=[],this.showToast("warning",`Starting ${this.getAppName(t)}`);const a=localStorage.getItem("zelidauth"),e=await L.Z.startApp(a,t);"success"===e.data.status?this.showToast("success",e.data.data.message||e.data.data):this.showToast("danger",e.data.data.message||e.data.data),this.appsGetListRunningApps(5e3)},async restartApp(t){this.output=[],this.showToast("warning",`Restarting ${this.getAppName(t)}`);const a=localStorage.getItem("zelidauth"),e=await L.Z.restartApp(a,t);"success"===e.data.status?this.showToast("success",e.data.data.message||e.data.data):this.showToast("danger",e.data.data.message||e.data.data),this.appsGetListRunningApps(5e3)},async pauseApp(t){this.output=[],this.showToast("warning",`Pausing ${this.getAppName(t)}`);const a=localStorage.getItem("zelidauth"),e=await L.Z.pauseApp(a,t);"success"===e.data.status?this.showToast("success",e.data.data.message||e.data.data):this.showToast("danger",e.data.data.message||e.data.data)},async unpauseApp(t){this.output=[],this.showToast("warning",`Unpausing ${this.getAppName(t)}`);const a=localStorage.getItem("zelidauth"),e=await L.Z.unpauseApp(a,t);"success"===e.data.status?this.showToast("success",e.data.data.message||e.data.data):this.showToast("danger",e.data.data.message||e.data.data)},redeployAppSoft(t){this.redeployApp(t,!1)},redeployAppHard(t){this.redeployApp(t,!0)},async redeployApp(t,a){const e=this;this.output=[],this.downloadOutput={},this.downloadOutputReturned=!1,this.showToast("warning",`Redeploying ${this.getAppName(t)}`);const s=localStorage.getItem("zelidauth"),i={headers:{zelidauth:s},onDownloadProgress(t){console.log(t.event.target.response),e.output=JSON.parse(`[${t.event.target.response.replace(/}{/g,"},{")}]`)}},o=await L.Z.justAPI().get(`/apps/redeploy/${t}/${a}`,i);"error"===o.data.status?this.showToast("danger",o.data.data.message||o.data.data):(this.output=JSON.parse(`[${o.data.replace(/}{/g,"},{")}]`),"error"===this.output[this.output.length-1].status?this.showToast("danger",this.output[this.output.length-1].data.message||this.output[this.output.length-1].data):"warning"===this.output[this.output.length-1].status?this.showToast("warning",this.output[this.output.length-1].data.message||this.output[this.output.length-1].data):this.showToast("success",this.output[this.output.length-1].data.message||this.output[this.output.length-1].data))},async removeApp(t){const a=this.getAppName(t),e=this;this.output=[],this.showToast("warning",`Removing ${a}`);const s=localStorage.getItem("zelidauth"),i={headers:{zelidauth:s},onDownloadProgress(t){console.log(t.event.target.response),e.output=JSON.parse(`[${t.event.target.response.replace(/}{/g,"},{")}]`)}},o=await L.Z.justAPI().get(`/apps/appremove/${t}`,i);"error"===o.data.status?this.showToast("danger",o.data.data.message||o.data.data):(this.output=JSON.parse(`[${o.data.replace(/}{/g,"},{")}]`),"error"===this.output[this.output.length-1].status?this.showToast("danger",this.output[this.output.length-1].data.message||this.output[this.output.length-1].data):"warning"===this.output[this.output.length-1].status?this.showToast("warning",this.output[this.output.length-1].data.message||this.output[this.output.length-1].data):this.showToast("success",this.output[this.output.length-1].data.message||this.output[this.output.length-1].data),setTimeout((()=>{this.appsGetInstalledApps(),this.appsGetListRunningApps(),e.managedApplication=""}),5e3))},async installAppLocally(t){const a=this.getAppName(t),e=this;this.output=[],this.downloadOutput={},this.downloadOutputReturned=!1,this.downloading=!0,this.showToast("warning",`Installing ${a}`);const s=localStorage.getItem("zelidauth"),i={headers:{zelidauth:s},onDownloadProgress(t){console.log(t.event.target.response),e.output=JSON.parse(`[${t.event.target.response.replace(/}{/g,"},{")}]`)}},o=await L.Z.justAPI().get(`/apps/installapplocally/${t}`,i);if("error"===o.data.status)this.showToast("danger",o.data.data.message||o.data.data);else{console.log(o),this.output=JSON.parse(`[${o.data.replace(/}{/g,"},{")}]`),console.log(this.output);for(let t=0;t{this.$set(t,"_showDetails",!1)})),this.$nextTick((()=>{t.toggleDetails(),this.loadLocations(t)})))},async loadLocations(t){console.log(t),this.appLocations=[];const a=await L.Z.getAppLocation(t.item.name).catch((t=>{this.showToast("danger",t.message||t)}));if(console.log(a),"success"===a.data.status){const t=a.data.data;this.appLocations=t,this.appLocationOptions.totalRows=this.appLocations.length}},openAppManagement(t){const a=this.getAppName(t);this.managedApplication=a},clearManagedApplication(){this.managedApplication="",this.appsGetInstalledApps(),this.appsGetListRunningApps()},onFilteredLocal(t){this.tableconfig.local.totalRows=t.length,this.tableconfig.local.currentPage=1},stringOutput(){let t="";return this.output.forEach((a=>{"success"===a.status?t+=`${a.data.message||a.data}\r\n`:"Downloading"===a.status?(this.downloadOutputReturned=!0,this.downloadOutput[a.id]={id:a.id,detail:a.progressDetail,variant:"danger"}):"Verifying Checksum"===a.status?(this.downloadOutputReturned=!0,this.downloadOutput[a.id]={id:a.id,detail:{current:1,total:1},variant:"warning"}):"Download complete"===a.status?(this.downloadOutputReturned=!0,this.downloadOutput[a.id]={id:a.id,detail:{current:1,total:1},variant:"info"}):"Extracting"===a.status?(this.downloadOutputReturned=!0,this.downloadOutput[a.id]={id:a.id,detail:a.progressDetail,variant:"primary"}):"Pull complete"===a.status?(this.downloadOutputReturned=!0,this.downloadOutput[a.id]={id:a.id,detail:{current:1,total:1},variant:"success"}):"error"===a.status?t+=`Error: ${JSON.stringify(a.data)}\r\n`:t+=`${a.status}\r\n`})),t},showToast(t,a,e="InfoIcon"){this.$toast({component:x.Z,props:{title:a,icon:e,variant:t}})},constructAutomaticDomains(t,a="",e,s=0){const i=e.toLowerCase(),o=a.toLowerCase();if(!o){const a=[];0===s&&a.push(`${i}.app.runonflux.io`);for(let e=0;et.code===a))||{name:"ALL"};return`Continent: ${e.name||"Unkown"}`}if(t.startsWith("b")){const a=t.slice(1),e=R.countries.find((t=>t.code===a))||{name:"ALL"};return`Country: ${e.name||"Unkown"}`}if(t.startsWith("ac")){const a=t.slice(2),e=a.split("_"),s=e[0],i=e[1],o=e[2],n=R.continents.find((t=>t.code===s))||{name:"ALL"},l=R.countries.find((t=>t.code===i))||{name:"ALL"};let r=`Allowed location: Continent: ${n.name}`;return i&&(r+=`, Country: ${l.name}`),o&&(r+=`, Region: ${o}`),r}if(t.startsWith("a!c")){const a=t.slice(3),e=a.split("_"),s=e[0],i=e[1],o=e[2],n=R.continents.find((t=>t.code===s))||{name:"ALL"},l=R.countries.find((t=>t.code===i))||{name:"ALL"};let r=`Forbidden location: Continent: ${n.name}`;return i&&(r+=`, Country: ${l.name}`),o&&(r+=`, Region: ${o}`),r}return"All locations allowed"}}},T=I;var M=e(1001),G=(0,M.Z)(T,s,i,!1,null,null,null);const z=G.exports},63005:(t,a,e)=>{e.r(a),e.d(a,{default:()=>o});const s={year:"numeric",month:"short",day:"numeric",hour:"2-digit",minute:"2-digit"},i={year:"numeric",month:"short",day:"numeric"},o={shortDate:s,date:i}}}]); \ No newline at end of file diff --git a/HomeUI/dist/js/2599.js b/HomeUI/dist/js/2599.js new file mode 100644 index 000000000..b9af5e9a8 --- /dev/null +++ b/HomeUI/dist/js/2599.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunkflux"]=self["webpackChunkflux"]||[]).push([[2599],{62599:(t,e,s)=>{s.d(e,{ZP:()=>Jt});var n={};s.r(n),s.d(n,{Decoder:()=>Ft,Encoder:()=>Ut,PacketType:()=>Dt,protocol:()=>jt});const i=Object.create(null);i["open"]="0",i["close"]="1",i["ping"]="2",i["pong"]="3",i["message"]="4",i["upgrade"]="5",i["noop"]="6";const r=Object.create(null);Object.keys(i).forEach((t=>{r[i[t]]=t}));const o={type:"error",data:"parser error"},a="function"===typeof Blob||"undefined"!==typeof Blob&&"[object BlobConstructor]"===Object.prototype.toString.call(Blob),h="function"===typeof ArrayBuffer,c=t=>"function"===typeof ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer instanceof ArrayBuffer,u=({type:t,data:e},s,n)=>a&&e instanceof Blob?s?n(e):p(e,n):h&&(e instanceof ArrayBuffer||c(e))?s?n(e):p(new Blob([e]),n):n(i[t]+(e||"")),p=(t,e)=>{const s=new FileReader;return s.onload=function(){const t=s.result.split(",")[1];e("b"+(t||""))},s.readAsDataURL(t)};function l(t){return t instanceof Uint8Array?t:t instanceof ArrayBuffer?new Uint8Array(t):new Uint8Array(t.buffer,t.byteOffset,t.byteLength)}let d;function f(t,e){return a&&t.data instanceof Blob?t.data.arrayBuffer().then(l).then(e):h&&(t.data instanceof ArrayBuffer||c(t.data))?e(l(t.data)):void u(t,!1,(t=>{d||(d=new TextEncoder),e(d.encode(t))}))}const y="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",g="undefined"===typeof Uint8Array?[]:new Uint8Array(256);for(let Qt=0;Qt{let e,s,n,i,r,o=.75*t.length,a=t.length,h=0;"="===t[t.length-1]&&(o--,"="===t[t.length-2]&&o--);const c=new ArrayBuffer(o),u=new Uint8Array(c);for(e=0;e>4,u[h++]=(15&n)<<4|i>>2,u[h++]=(3&i)<<6|63&r;return c},b="function"===typeof ArrayBuffer,w=(t,e)=>{if("string"!==typeof t)return{type:"message",data:k(t,e)};const s=t.charAt(0);if("b"===s)return{type:"message",data:v(t.substring(1),e)};const n=r[s];return n?t.length>1?{type:r[s],data:t.substring(1)}:{type:r[s]}:o},v=(t,e)=>{if(b){const s=m(t);return k(s,e)}return{base64:!0,data:t}},k=(t,e)=>{switch(e){case"blob":return t instanceof Blob?t:new Blob([t]);case"arraybuffer":default:return t instanceof ArrayBuffer?t:t.buffer}},_=String.fromCharCode(30),E=(t,e)=>{const s=t.length,n=new Array(s);let i=0;t.forEach(((t,r)=>{u(t,!1,(t=>{n[r]=t,++i===s&&e(n.join(_))}))}))},A=(t,e)=>{const s=t.split(_),n=[];for(let i=0;i{const n=s.length;let i;if(n<126)i=new Uint8Array(1),new DataView(i.buffer).setUint8(0,n);else if(n<65536){i=new Uint8Array(3);const t=new DataView(i.buffer);t.setUint8(0,126),t.setUint16(1,n)}else{i=new Uint8Array(9);const t=new DataView(i.buffer);t.setUint8(0,127),t.setBigUint64(1,BigInt(n))}t.data&&"string"!==typeof t.data&&(i[0]|=128),e.enqueue(i),e.enqueue(s)}))}})}let T;function R(t){return t.reduce(((t,e)=>t+e.length),0)}function C(t,e){if(t[0].length===e)return t.shift();const s=new Uint8Array(e);let n=0;for(let i=0;iMath.pow(2,21)-1){h.enqueue(o);break}i=r*Math.pow(2,32)+e.getUint32(4),n=3}else{if(R(s)t){h.enqueue(o);break}}}})}const S=4;function N(t){if(t)return x(t)}function x(t){for(var e in N.prototype)t[e]=N.prototype[e];return t}N.prototype.on=N.prototype.addEventListener=function(t,e){return this._callbacks=this._callbacks||{},(this._callbacks["$"+t]=this._callbacks["$"+t]||[]).push(e),this},N.prototype.once=function(t,e){function s(){this.off(t,s),e.apply(this,arguments)}return s.fn=e,this.on(t,s),this},N.prototype.off=N.prototype.removeListener=N.prototype.removeAllListeners=N.prototype.removeEventListener=function(t,e){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var s,n=this._callbacks["$"+t];if(!n)return this;if(1==arguments.length)return delete this._callbacks["$"+t],this;for(var i=0;i"undefined"!==typeof self?self:"undefined"!==typeof window?window:Function("return this")())();function q(t,...e){return e.reduce(((e,s)=>(t.hasOwnProperty(s)&&(e[s]=t[s]),e)),{})}const P=L.setTimeout,j=L.clearTimeout;function D(t,e){e.useNativeTimers?(t.setTimeoutFn=P.bind(L),t.clearTimeoutFn=j.bind(L)):(t.setTimeoutFn=L.setTimeout.bind(L),t.clearTimeoutFn=L.clearTimeout.bind(L))}const U=1.33;function I(t){return"string"===typeof t?F(t):Math.ceil((t.byteLength||t.size)*U)}function F(t){let e=0,s=0;for(let n=0,i=t.length;n=57344?s+=3:(n++,s+=4);return s}function M(t){let e="";for(let s in t)t.hasOwnProperty(s)&&(e.length&&(e+="&"),e+=encodeURIComponent(s)+"="+encodeURIComponent(t[s]));return e}function V(t){let e={},s=t.split("&");for(let n=0,i=s.length;n0);return e}function G(){const t=X(+new Date);return t!==J?($=0,J=t):t+"."+X($++)}for(;Q{this.readyState="paused",t()};if(this.polling||!this.writable){let t=0;this.polling&&(t++,this.once("pollComplete",(function(){--t||e()}))),this.writable||(t++,this.once("drain",(function(){--t||e()})))}else e()}poll(){this.polling=!0,this.doPoll(),this.emitReserved("poll")}onData(t){const e=t=>{if("opening"===this.readyState&&"open"===t.type&&this.onOpen(),"close"===t.type)return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(t)};A(t,this.socket.binaryType).forEach(e),"closed"!==this.readyState&&(this.polling=!1,this.emitReserved("pollComplete"),"open"===this.readyState&&this.poll())}doClose(){const t=()=>{this.write([{type:"close"}])};"open"===this.readyState?t():this.once("open",t)}write(t){this.writable=!1,E(t,(t=>{this.doWrite(t,(()=>{this.writable=!0,this.emitReserved("drain")}))}))}uri(){const t=this.opts.secure?"https":"http",e=this.query||{};return!1!==this.opts.timestampRequests&&(e[this.opts.timestampParam]=G()),this.supportsBinary||e.sid||(e.b64=1),this.createUri(t,e)}request(t={}){return Object.assign(t,{xd:this.xd,cookieJar:this.cookieJar},this.opts),new ot(this.uri(),t)}doWrite(t,e){const s=this.request({method:"POST",data:t});s.on("success",e),s.on("error",((t,e)=>{this.onError("xhr post error",t,e)}))}doPoll(){const t=this.request();t.on("data",this.onData.bind(this)),t.on("error",((t,e)=>{this.onError("xhr poll error",t,e)})),this.pollXhr=t}}class ot extends N{constructor(t,e){super(),D(this,e),this.opts=e,this.method=e.method||"GET",this.uri=t,this.data=void 0!==e.data?e.data:null,this.create()}create(){var t;const e=q(this.opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");e.xdomain=!!this.opts.xd;const s=this.xhr=new et(e);try{s.open(this.method,this.uri,!0);try{if(this.opts.extraHeaders){s.setDisableHeaderCheck&&s.setDisableHeaderCheck(!0);for(let t in this.opts.extraHeaders)this.opts.extraHeaders.hasOwnProperty(t)&&s.setRequestHeader(t,this.opts.extraHeaders[t])}}catch(n){}if("POST"===this.method)try{s.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch(n){}try{s.setRequestHeader("Accept","*/*")}catch(n){}null===(t=this.opts.cookieJar)||void 0===t||t.addCookies(s),"withCredentials"in s&&(s.withCredentials=this.opts.withCredentials),this.opts.requestTimeout&&(s.timeout=this.opts.requestTimeout),s.onreadystatechange=()=>{var t;3===s.readyState&&(null===(t=this.opts.cookieJar)||void 0===t||t.parseCookies(s)),4===s.readyState&&(200===s.status||1223===s.status?this.onLoad():this.setTimeoutFn((()=>{this.onError("number"===typeof s.status?s.status:0)}),0))},s.send(this.data)}catch(n){return void this.setTimeoutFn((()=>{this.onError(n)}),0)}"undefined"!==typeof document&&(this.index=ot.requestsCount++,ot.requests[this.index]=this)}onError(t){this.emitReserved("error",t,this.xhr),this.cleanup(!0)}cleanup(t){if("undefined"!==typeof this.xhr&&null!==this.xhr){if(this.xhr.onreadystatechange=nt,t)try{this.xhr.abort()}catch(e){}"undefined"!==typeof document&&delete ot.requests[this.index],this.xhr=null}}onLoad(){const t=this.xhr.responseText;null!==t&&(this.emitReserved("data",t),this.emitReserved("success"),this.cleanup())}abort(){this.cleanup()}}if(ot.requestsCount=0,ot.requests={},"undefined"!==typeof document)if("function"===typeof attachEvent)attachEvent("onunload",at);else if("function"===typeof addEventListener){const t="onpagehide"in L?"pagehide":"unload";addEventListener(t,at,!1)}function at(){for(let t in ot.requests)ot.requests.hasOwnProperty(t)&&ot.requests[t].abort()}const ht=(()=>{const t="function"===typeof Promise&&"function"===typeof Promise.resolve;return t?t=>Promise.resolve().then(t):(t,e)=>e(t,0)})(),ct=L.WebSocket||L.MozWebSocket,ut=!0,pt="arraybuffer";var lt=s(48764)["lW"];const dt="undefined"!==typeof navigator&&"string"===typeof navigator.product&&"reactnative"===navigator.product.toLowerCase();class ft extends K{constructor(t){super(t),this.supportsBinary=!t.forceBase64}get name(){return"websocket"}doOpen(){if(!this.check())return;const t=this.uri(),e=this.opts.protocols,s=dt?{}:q(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(s.headers=this.opts.extraHeaders);try{this.ws=ut&&!dt?e?new ct(t,e):new ct(t):new ct(t,e,s)}catch($t){return this.emitReserved("error",$t)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=t=>this.onClose({description:"websocket connection closed",context:t}),this.ws.onmessage=t=>this.onData(t.data),this.ws.onerror=t=>this.onError("websocket error",t)}write(t){this.writable=!1;for(let e=0;e{const e={};if(!ut&&(s.options&&(e.compress=s.options.compress),this.opts.perMessageDeflate)){const s="string"===typeof t?lt.byteLength(t):t.length;s{this.writable=!0,this.emitReserved("drain")}),this.setTimeoutFn)}))}}doClose(){"undefined"!==typeof this.ws&&(this.ws.close(),this.ws=null)}uri(){const t=this.opts.secure?"wss":"ws",e=this.query||{};return this.opts.timestampRequests&&(e[this.opts.timestampParam]=G()),this.supportsBinary||(e.b64=1),this.createUri(t,e)}check(){return!!ct}}class yt extends K{get name(){return"webtransport"}doOpen(){"function"===typeof WebTransport&&(this.transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name]),this.transport.closed.then((()=>{this.onClose()})).catch((t=>{this.onError("webtransport error",t)})),this.transport.ready.then((()=>{this.transport.createBidirectionalStream().then((t=>{const e=B(Number.MAX_SAFE_INTEGER,this.socket.binaryType),s=t.readable.pipeThrough(e).getReader(),n=O();n.readable.pipeTo(t.writable),this.writer=n.writable.getWriter();const i=()=>{s.read().then((({done:t,value:e})=>{t||(this.onPacket(e),i())})).catch((t=>{}))};i();const r={type:"open"};this.query.sid&&(r.data=`{"sid":"${this.query.sid}"}`),this.writer.write(r).then((()=>this.onOpen()))}))})))}write(t){this.writable=!1;for(let e=0;e{n&&ht((()=>{this.writable=!0,this.emitReserved("drain")}),this.setTimeoutFn)}))}}doClose(){var t;null===(t=this.transport)||void 0===t||t.close()}}const gt={websocket:ft,webtransport:yt,polling:rt},mt=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,bt=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function wt(t){if(t.length>2e3)throw"URI too long";const e=t,s=t.indexOf("["),n=t.indexOf("]");-1!=s&&-1!=n&&(t=t.substring(0,s)+t.substring(s,n).replace(/:/g,";")+t.substring(n,t.length));let i=mt.exec(t||""),r={},o=14;while(o--)r[bt[o]]=i[o]||"";return-1!=s&&-1!=n&&(r.source=e,r.host=r.host.substring(1,r.host.length-1).replace(/;/g,":"),r.authority=r.authority.replace("[","").replace("]","").replace(/;/g,":"),r.ipv6uri=!0),r.pathNames=vt(r,r["path"]),r.queryKey=kt(r,r["query"]),r}function vt(t,e){const s=/\/{2,9}/g,n=e.replace(s,"/").split("/");return"/"!=e.slice(0,1)&&0!==e.length||n.splice(0,1),"/"==e.slice(-1)&&n.splice(n.length-1,1),n}function kt(t,e){const s={};return e.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,(function(t,e,n){e&&(s[e]=n)})),s}class _t extends N{constructor(t,e={}){super(),this.binaryType=pt,this.writeBuffer=[],t&&"object"===typeof t&&(e=t,t=null),t?(t=wt(t),e.hostname=t.host,e.secure="https"===t.protocol||"wss"===t.protocol,e.port=t.port,t.query&&(e.query=t.query)):e.host&&(e.hostname=wt(e.host).host),D(this,e),this.secure=null!=e.secure?e.secure:"undefined"!==typeof location&&"https:"===location.protocol,e.hostname&&!e.port&&(e.port=this.secure?"443":"80"),this.hostname=e.hostname||("undefined"!==typeof location?location.hostname:"localhost"),this.port=e.port||("undefined"!==typeof location&&location.port?location.port:this.secure?"443":"80"),this.transports=e.transports||["polling","websocket","webtransport"],this.writeBuffer=[],this.prevBufferLen=0,this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},e),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),"string"===typeof this.opts.query&&(this.opts.query=V(this.opts.query)),this.id=null,this.upgrades=null,this.pingInterval=null,this.pingTimeout=null,this.pingTimeoutTimer=null,"function"===typeof addEventListener&&(this.opts.closeOnBeforeunload&&(this.beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this.beforeunloadEventListener,!1)),"localhost"!==this.hostname&&(this.offlineEventListener=()=>{this.onClose("transport close",{description:"network connection lost"})},addEventListener("offline",this.offlineEventListener,!1))),this.open()}createTransport(t){const e=Object.assign({},this.opts.query);e.EIO=S,e.transport=t,this.id&&(e.sid=this.id);const s=Object.assign({},this.opts,{query:e,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[t]);return new gt[t](s)}open(){let t;if(this.opts.rememberUpgrade&&_t.priorWebsocketSuccess&&-1!==this.transports.indexOf("websocket"))t="websocket";else{if(0===this.transports.length)return void this.setTimeoutFn((()=>{this.emitReserved("error","No transports available")}),0);t=this.transports[0]}this.readyState="opening";try{t=this.createTransport(t)}catch(e){return this.transports.shift(),void this.open()}t.open(),this.setTransport(t)}setTransport(t){this.transport&&this.transport.removeAllListeners(),this.transport=t,t.on("drain",this.onDrain.bind(this)).on("packet",this.onPacket.bind(this)).on("error",this.onError.bind(this)).on("close",(t=>this.onClose("transport close",t)))}probe(t){let e=this.createTransport(t),s=!1;_t.priorWebsocketSuccess=!1;const n=()=>{s||(e.send([{type:"ping",data:"probe"}]),e.once("packet",(t=>{if(!s)if("pong"===t.type&&"probe"===t.data){if(this.upgrading=!0,this.emitReserved("upgrading",e),!e)return;_t.priorWebsocketSuccess="websocket"===e.name,this.transport.pause((()=>{s||"closed"!==this.readyState&&(c(),this.setTransport(e),e.send([{type:"upgrade"}]),this.emitReserved("upgrade",e),e=null,this.upgrading=!1,this.flush())}))}else{const t=new Error("probe error");t.transport=e.name,this.emitReserved("upgradeError",t)}})))};function i(){s||(s=!0,c(),e.close(),e=null)}const r=t=>{const s=new Error("probe error: "+t);s.transport=e.name,i(),this.emitReserved("upgradeError",s)};function o(){r("transport closed")}function a(){r("socket closed")}function h(t){e&&t.name!==e.name&&i()}const c=()=>{e.removeListener("open",n),e.removeListener("error",r),e.removeListener("close",o),this.off("close",a),this.off("upgrading",h)};e.once("open",n),e.once("error",r),e.once("close",o),this.once("close",a),this.once("upgrading",h),-1!==this.upgrades.indexOf("webtransport")&&"webtransport"!==t?this.setTimeoutFn((()=>{s||e.open()}),200):e.open()}onOpen(){if(this.readyState="open",_t.priorWebsocketSuccess="websocket"===this.transport.name,this.emitReserved("open"),this.flush(),"open"===this.readyState&&this.opts.upgrade){let t=0;const e=this.upgrades.length;for(;t{this.onClose("ping timeout")}),this.pingInterval+this.pingTimeout),this.opts.autoUnref&&this.pingTimeoutTimer.unref()}onDrain(){this.writeBuffer.splice(0,this.prevBufferLen),this.prevBufferLen=0,0===this.writeBuffer.length?this.emitReserved("drain"):this.flush()}flush(){if("closed"!==this.readyState&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){const t=this.getWritablePackets();this.transport.send(t),this.prevBufferLen=t.length,this.emitReserved("flush")}}getWritablePackets(){const t=this.maxPayload&&"polling"===this.transport.name&&this.writeBuffer.length>1;if(!t)return this.writeBuffer;let e=1;for(let s=0;s0&&e>this.maxPayload)return this.writeBuffer.slice(0,s);e+=2}return this.writeBuffer}write(t,e,s){return this.sendPacket("message",t,e,s),this}send(t,e,s){return this.sendPacket("message",t,e,s),this}sendPacket(t,e,s,n){if("function"===typeof e&&(n=e,e=void 0),"function"===typeof s&&(n=s,s=null),"closing"===this.readyState||"closed"===this.readyState)return;s=s||{},s.compress=!1!==s.compress;const i={type:t,data:e,options:s};this.emitReserved("packetCreate",i),this.writeBuffer.push(i),n&&this.once("flush",n),this.flush()}close(){const t=()=>{this.onClose("forced close"),this.transport.close()},e=()=>{this.off("upgrade",e),this.off("upgradeError",e),t()},s=()=>{this.once("upgrade",e),this.once("upgradeError",e)};return"opening"!==this.readyState&&"open"!==this.readyState||(this.readyState="closing",this.writeBuffer.length?this.once("drain",(()=>{this.upgrading?s():t()})):this.upgrading?s():t()),this}onError(t){_t.priorWebsocketSuccess=!1,this.emitReserved("error",t),this.onClose("transport error",t)}onClose(t,e){"opening"!==this.readyState&&"open"!==this.readyState&&"closing"!==this.readyState||(this.clearTimeoutFn(this.pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),"function"===typeof removeEventListener&&(removeEventListener("beforeunload",this.beforeunloadEventListener,!1),removeEventListener("offline",this.offlineEventListener,!1)),this.readyState="closed",this.id=null,this.emitReserved("close",t,e),this.writeBuffer=[],this.prevBufferLen=0)}filterUpgrades(t){const e=[];let s=0;const n=t.length;for(;s"function"===typeof ArrayBuffer.isView?ArrayBuffer.isView(t):t.buffer instanceof ArrayBuffer,Tt=Object.prototype.toString,Rt="function"===typeof Blob||"undefined"!==typeof Blob&&"[object BlobConstructor]"===Tt.call(Blob),Ct="function"===typeof File||"undefined"!==typeof File&&"[object FileConstructor]"===Tt.call(File);function Bt(t){return At&&(t instanceof ArrayBuffer||Ot(t))||Rt&&t instanceof Blob||Ct&&t instanceof File}function St(t,e){if(!t||"object"!==typeof t)return!1;if(Array.isArray(t)){for(let e=0,s=t.length;e=0&&t.num{delete this.acks[t];for(let e=0;e{this.io.clearTimeoutFn(i),e.apply(this,t)};r.withError=!0,this.acks[t]=r}emitWithAck(t,...e){return new Promise(((s,n)=>{const i=(t,e)=>t?n(t):s(e);i.withError=!0,e.push(i),this.emit(t,...e)}))}_addToQueue(t){let e;"function"===typeof t[t.length-1]&&(e=t.pop());const s={id:this._queueSeq++,tryCount:0,pending:!1,args:t,flags:Object.assign({fromQueue:!0},this.flags)};t.push(((t,...n)=>{if(s!==this._queue[0])return;const i=null!==t;return i?s.tryCount>this._opts.retries&&(this._queue.shift(),e&&e(t)):(this._queue.shift(),e&&e(null,...n)),s.pending=!1,this._drainQueue()})),this._queue.push(s),this._drainQueue()}_drainQueue(t=!1){if(!this.connected||0===this._queue.length)return;const e=this._queue[0];e.pending&&!t||(e.pending=!0,e.tryCount++,this.flags=e.flags,this.emit.apply(this,e.args))}packet(t){t.nsp=this.nsp,this.io._packet(t)}onopen(){"function"==typeof this.auth?this.auth((t=>{this._sendConnectPacket(t)})):this._sendConnectPacket(this.auth)}_sendConnectPacket(t){this.packet({type:Dt.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},t):t})}onerror(t){this.connected||this.emitReserved("connect_error",t)}onclose(t,e){this.connected=!1,delete this.id,this.emitReserved("disconnect",t,e),this._clearAcks()}_clearAcks(){Object.keys(this.acks).forEach((t=>{const e=this.sendBuffer.some((e=>String(e.id)===t));if(!e){const e=this.acks[t];delete this.acks[t],e.withError&&e.call(this,new Error("socket has been disconnected"))}}))}onpacket(t){const e=t.nsp===this.nsp;if(e)switch(t.type){case Dt.CONNECT:t.data&&t.data.sid?this.onconnect(t.data.sid,t.data.pid):this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case Dt.EVENT:case Dt.BINARY_EVENT:this.onevent(t);break;case Dt.ACK:case Dt.BINARY_ACK:this.onack(t);break;case Dt.DISCONNECT:this.ondisconnect();break;case Dt.CONNECT_ERROR:this.destroy();const e=new Error(t.data.message);e.data=t.data.data,this.emitReserved("connect_error",e);break}}onevent(t){const e=t.data||[];null!=t.id&&e.push(this.ack(t.id)),this.connected?this.emitEvent(e):this.receiveBuffer.push(Object.freeze(e))}emitEvent(t){if(this._anyListeners&&this._anyListeners.length){const e=this._anyListeners.slice();for(const s of e)s.apply(this,t)}super.emit.apply(this,t),this._pid&&t.length&&"string"===typeof t[t.length-1]&&(this._lastOffset=t[t.length-1])}ack(t){const e=this;let s=!1;return function(...n){s||(s=!0,e.packet({type:Dt.ACK,id:t,data:n}))}}onack(t){const e=this.acks[t.id];"function"===typeof e&&(delete this.acks[t.id],e.withError&&t.data.unshift(null),e.apply(this,t.data))}onconnect(t,e){this.id=t,this.recovered=e&&this._pid===e,this._pid=e,this.connected=!0,this.emitBuffered(),this.emitReserved("connect"),this._drainQueue(!0)}emitBuffered(){this.receiveBuffer.forEach((t=>this.emitEvent(t))),this.receiveBuffer=[],this.sendBuffer.forEach((t=>{this.notifyOutgoingListeners(t),this.packet(t)})),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach((t=>t())),this.subs=void 0),this.io["_destroy"](this)}disconnect(){return this.connected&&this.packet({type:Dt.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(t){return this.flags.compress=t,this}get volatile(){return this.flags.volatile=!0,this}timeout(t){return this.flags.timeout=t,this}onAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(t),this}prependAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(t),this}offAny(t){if(!this._anyListeners)return this;if(t){const e=this._anyListeners;for(let s=0;s0&&t.jitter<=1?t.jitter:0,this.attempts=0}Wt.prototype.duration=function(){var t=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var e=Math.random(),s=Math.floor(e*this.jitter*t);t=0==(1&Math.floor(10*e))?t-s:t+s}return 0|Math.min(t,this.max)},Wt.prototype.reset=function(){this.attempts=0},Wt.prototype.setMin=function(t){this.ms=t},Wt.prototype.setMax=function(t){this.max=t},Wt.prototype.setJitter=function(t){this.jitter=t};class Yt extends N{constructor(t,e){var s;super(),this.nsps={},this.subs=[],t&&"object"===typeof t&&(e=t,t=void 0),e=e||{},e.path=e.path||"/socket.io",this.opts=e,D(this,e),this.reconnection(!1!==e.reconnection),this.reconnectionAttempts(e.reconnectionAttempts||1/0),this.reconnectionDelay(e.reconnectionDelay||1e3),this.reconnectionDelayMax(e.reconnectionDelayMax||5e3),this.randomizationFactor(null!==(s=e.randomizationFactor)&&void 0!==s?s:.5),this.backoff=new Wt({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(null==e.timeout?2e4:e.timeout),this._readyState="closed",this.uri=t;const i=e.parser||n;this.encoder=new i.Encoder,this.decoder=new i.Decoder,this._autoConnect=!1!==e.autoConnect,this._autoConnect&&this.open()}reconnection(t){return arguments.length?(this._reconnection=!!t,this):this._reconnection}reconnectionAttempts(t){return void 0===t?this._reconnectionAttempts:(this._reconnectionAttempts=t,this)}reconnectionDelay(t){var e;return void 0===t?this._reconnectionDelay:(this._reconnectionDelay=t,null===(e=this.backoff)||void 0===e||e.setMin(t),this)}randomizationFactor(t){var e;return void 0===t?this._randomizationFactor:(this._randomizationFactor=t,null===(e=this.backoff)||void 0===e||e.setJitter(t),this)}reconnectionDelayMax(t){var e;return void 0===t?this._reconnectionDelayMax:(this._reconnectionDelayMax=t,null===(e=this.backoff)||void 0===e||e.setMax(t),this)}timeout(t){return arguments.length?(this._timeout=t,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&0===this.backoff.attempts&&this.reconnect()}open(t){if(~this._readyState.indexOf("open"))return this;this.engine=new _t(this.uri,this.opts);const e=this.engine,s=this;this._readyState="opening",this.skipReconnect=!1;const n=Vt(e,"open",(function(){s.onopen(),t&&t()})),i=e=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",e),t?t(e):this.maybeReconnectOnOpen()},r=Vt(e,"error",i);if(!1!==this._timeout){const t=this._timeout,s=this.setTimeoutFn((()=>{n(),i(new Error("timeout")),e.close()}),t);this.opts.autoUnref&&s.unref(),this.subs.push((()=>{this.clearTimeoutFn(s)}))}return this.subs.push(n),this.subs.push(r),this}connect(t){return this.open(t)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const t=this.engine;this.subs.push(Vt(t,"ping",this.onping.bind(this)),Vt(t,"data",this.ondata.bind(this)),Vt(t,"error",this.onerror.bind(this)),Vt(t,"close",this.onclose.bind(this)),Vt(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(t){try{this.decoder.add(t)}catch(e){this.onclose("parse error",e)}}ondecoded(t){ht((()=>{this.emitReserved("packet",t)}),this.setTimeoutFn)}onerror(t){this.emitReserved("error",t)}socket(t,e){let s=this.nsps[t];return s?this._autoConnect&&!s.active&&s.connect():(s=new Kt(this,t,e),this.nsps[t]=s),s}_destroy(t){const e=Object.keys(this.nsps);for(const s of e){const t=this.nsps[s];if(t.active)return}this._close()}_packet(t){const e=this.encoder.encode(t);for(let s=0;st())),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close"),this.engine&&this.engine.close()}disconnect(){return this._close()}onclose(t,e){this.cleanup(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",t,e),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const t=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const e=this.backoff.duration();this._reconnecting=!0;const s=this.setTimeoutFn((()=>{t.skipReconnect||(this.emitReserved("reconnect_attempt",t.backoff.attempts),t.skipReconnect||t.open((e=>{e?(t._reconnecting=!1,t.reconnect(),this.emitReserved("reconnect_error",e)):t.onreconnect()})))}),e);this.opts.autoUnref&&s.unref(),this.subs.push((()=>{this.clearTimeoutFn(s)}))}}onreconnect(){const t=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",t)}}const zt={};function Jt(t,e){"object"===typeof t&&(e=t,t=void 0),e=e||{};const s=Et(t,e.path||"/socket.io"),n=s.source,i=s.id,r=s.path,o=zt[i]&&r in zt[i]["nsps"],a=e.forceNew||e["force new connection"]||!1===e.multiplex||o;let h;return a?h=new Yt(n,e):(zt[i]||(zt[i]=new Yt(n,e)),h=zt[i]),s.query&&!e.query&&(e.query=s.queryKey),h.socket(s.path,e)}Object.assign(Jt,{Manager:Yt,Socket:Kt,io:Jt,connect:Jt})}}]); \ No newline at end of file diff --git a/HomeUI/dist/js/2620.js b/HomeUI/dist/js/2620.js new file mode 100644 index 000000000..d19372e1b --- /dev/null +++ b/HomeUI/dist/js/2620.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunkflux"]=self["webpackChunkflux"]||[]).push([[2620],{22039:(t,e,a)=>{a.r(e),a.d(e,{default:()=>X});var s=function(){var t=this,e=t._self._c;return e("div",[t.managedApplication?t._e():e("b-tabs",{attrs:{pills:""},on:{"activate-tab":t.tabChanged}},[e("my-apps-tab",{ref:"activeApps",attrs:{apps:t.activeApps,loading:t.loading.active,"logged-in":t.loggedIn,"current-block-height":t.daemonBlockCount},on:{"open-app-management":t.openAppManagement}}),e("my-apps-tab",{ref:"expiredApps",attrs:{apps:t.expiredApps,loading:t.loading.expired,"logged-in":t.loggedIn,"current-block-height":t.daemonBlockCount,"active-apps-tab":!1}})],1),t.managedApplication?e("management",{attrs:{"app-name":t.managedApplication,global:!0,"installed-apps":[]},on:{back:t.clearManagedApplication}}):t._e()],1)},i=[],n=(a(70560),a(91587)),o=function(){var t=this,e=t._self._c;return e("b-tab",{attrs:{active:t.activeAppsTab,title:t.activeAppsTab?"My Active Apps":"My Expired Apps"}},[e("b-overlay",{attrs:{show:t.loading,variant:"transparent",blur:"5px"}},[e("b-card",[e("b-row",[e("b-col",{staticClass:"my-1",attrs:{md:"4",sm:"4"}},[e("b-form-group",{staticClass:"mb-0",attrs:{label:"Per Page","label-cols-sm":"auto","label-align-sm":"left"}},[e("b-form-select",{staticClass:"w-50",attrs:{size:"sm",options:t.tableOptions.pageOptions},model:{value:t.tableOptions.perPage,callback:function(e){t.$set(t.tableOptions,"perPage",e)},expression:"tableOptions.perPage"}})],1)],1),e("b-col",{staticClass:"my-1",attrs:{md:"8"}},[e("b-form-group",{staticClass:"mb-0 mt-0",attrs:{label:"Filter","label-cols-sm":"1","label-align-sm":"right"}},[e("b-input-group",{attrs:{size:"sm"}},[e("b-form-input",{attrs:{type:"search",placeholder:"Type to Search"},model:{value:t.tableOptions.filter,callback:function(e){t.$set(t.tableOptions,"filter",e)},expression:"tableOptions.filter"}}),e("b-input-group-append",[e("b-button",{attrs:{disabled:!t.tableOptions.filter},on:{click:function(e){t.tableOptions.filter=""}}},[t._v(" Clear ")])],1)],1)],1)],1)],1),e("b-row",[e("b-col",{attrs:{cols:"12"}},[e("b-table",{staticClass:"myapps-table",attrs:{striped:"",outlined:"",responsive:"",items:t.apps,fields:t.mergedFields,"sort-by":t.tableOptions.sortBy,"sort-desc":t.tableOptions.sortDesc,"sort-direction":t.tableOptions.sortDirection,filter:t.tableOptions.filter,"per-page":t.tableOptions.perPage,"current-page":t.tableOptions.currentPage,"show-empty":"","sort-icon-left":"","empty-text":t.emptyText},on:{"update:sortBy":function(e){return t.$set(t.tableOptions,"sortBy",e)},"update:sort-by":function(e){return t.$set(t.tableOptions,"sortBy",e)},"update:sortDesc":function(e){return t.$set(t.tableOptions,"sortDesc",e)},"update:sort-desc":function(e){return t.$set(t.tableOptions,"sortDesc",e)}},scopedSlots:t._u([{key:"cell(description)",fn:function(a){return[e("kbd",{staticClass:"text-secondary textarea text",staticStyle:{float:"left","text-align":"left"}},[t._v(t._s(a.item.description))])]}},{key:"cell(name)",fn:function(a){return[e("div",{staticClass:"text-left"},[e("kbd",{staticClass:"alert-info no-wrap",staticStyle:{"border-radius":"15px","font-weight":"700 !important"}},[e("b-icon",{attrs:{scale:"1.2",icon:"app-indicator"}}),t._v("  "+t._s(a.item.name)+"  ")],1),e("br"),e("small",{staticStyle:{"font-size":"11px"}},[e("div",{staticClass:"d-flex align-items-center",staticStyle:{"margin-top":"3px"}},[t._v("   "),e("b-icon",{attrs:{scale:"1.4",icon:"speedometer2"}}),t._v("  "),e("kbd",{staticClass:"alert-success",staticStyle:{"border-radius":"15px"}},[t._v(" "),e("b",[t._v(t._s(t.getServiceUsageValue(1,a.item.name,a.item)))]),t._v(" ")]),t._v("   "),e("b-icon",{attrs:{scale:"1.4",icon:"cpu"}}),t._v("  "),e("kbd",{staticClass:"alert-success",staticStyle:{"border-radius":"15px"}},[t._v(" "),e("b",[t._v(t._s(t.getServiceUsageValue(0,a.item.name,a.item)))]),t._v(" ")]),t._v("   "),e("b-icon",{attrs:{scale:"1.4",icon:"hdd"}}),t._v("  "),e("kbd",{staticClass:"alert-success",staticStyle:{"border-radius":"15px"}},[t._v(" "),e("b",[t._v(t._s(t.getServiceUsageValue(2,a.item.name,a.item)))]),t._v(" ")]),t._v("  "),e("b-icon",{attrs:{scale:"1.2",icon:"geo-alt"}}),t._v(" "),e("kbd",{staticClass:"alert-warning",staticStyle:{"border-radius":"15px"}},[t._v(" "),e("b",[t._v(t._s(a.item.instances))]),t._v(" ")])],1),t.activeAppsTab?e("expiry-label",{attrs:{"expire-time":t.labelForExpire(a.item.expire,a.item.height)}}):t._e()],1)])]}},{key:"cell(show_details)",fn:function(a){return[e("a",{on:{click:function(e){return t.showLocations(a,t.apps)}}},[e("v-icon",{staticClass:"ml-1",attrs:{name:a.detailsShowing?"chevron-up":"chevron-down"}})],1)]}},{key:"row-details",fn:function(a){return[e("b-card",{staticClass:"mx-2"},[e("h3",{staticClass:"no-wrap"},[e("kbd",{staticClass:"alert-info d-flex",staticStyle:{"border-radius":"15px","font-family":"monospace","padding-right":"100%"}},[e("b-icon",{staticClass:"ml-1",attrs:{scale:"1",icon:"info-square"}}),t._v("  Application Information ")],1)]),e("div",{staticClass:"ml-1"},[a.item.owner?e("list-entry",{attrs:{title:"Owner",data:a.item.owner}}):t._e(),a.item.hash?e("list-entry",{attrs:{title:"Hash",data:a.item.hash}}):t._e(),a.item.version>=5?e("div",[a.item.contacts.length>0?e("list-entry",{attrs:{title:"Contacts",data:JSON.stringify(a.item.contacts)}}):t._e(),a.item.geolocation.length?e("div",t._l(a.item.geolocation,(function(a){return e("div",{key:a},[e("list-entry",{attrs:{title:"Geolocation",data:t.getGeolocation(a)}})],1)})),0):e("div",[e("list-entry",{attrs:{title:"Continent",data:"All"}}),e("list-entry",{attrs:{title:"Country",data:"All"}}),e("list-entry",{attrs:{title:"Region",data:"All"}})],1)],1):t._e(),a.item.instances?e("list-entry",{attrs:{title:"Instances",data:a.item.instances.toString()}}):t._e(),e("list-entry",{attrs:{title:"Expires in",data:t.labelForExpire(a.item.expire,a.item.height)}}),a.item?.nodes?.length>0?e("list-entry",{attrs:{title:"Enterprise Nodes",data:a.item.nodes?a.item.nodes.toString():"Not scoped"}}):t._e(),e("list-entry",{attrs:{title:"Static IP",data:a.item.staticip?"Yes, Running only on Static IP nodes":"No, Running on all nodes"}})],1),a.item.version<=3?e("div",[e("b-card",[e("list-entry",{attrs:{title:"Repository",data:a.item.repotag}}),e("list-entry",{attrs:{title:"Custom Domains",data:a.item.domains.toString()||"none"}}),e("list-entry",{attrs:{title:"Automatic Domains",data:t.constructAutomaticDomains(a.item.ports,a.item.name).toString()}}),e("list-entry",{attrs:{title:"Ports",data:a.item.ports.toString()}}),e("list-entry",{attrs:{title:"Container Ports",data:a.item.containerPorts.toString()}}),e("list-entry",{attrs:{title:"Container Data",data:a.item.containerData}}),e("list-entry",{attrs:{title:"Enviroment Parameters",data:a.item.enviromentParameters.length>0?a.item.enviromentParameters.toString():"none"}}),e("list-entry",{attrs:{title:"Commands",data:a.item.commands.length>0?a.item.commands.toString():"none"}}),a.item.tiered?e("div",[e("list-entry",{attrs:{title:"CPU Cumulus",data:`${a.item.cpubasic} vCore`}}),e("list-entry",{attrs:{title:"CPU Nimbus",data:`${a.item.cpusuper} vCore`}}),e("list-entry",{attrs:{title:"CPU Stratus",data:`${a.item.cpubamf} vCore`}}),e("list-entry",{attrs:{title:"RAM Cumulus",data:`${a.item.rambasic} MB`}}),e("list-entry",{attrs:{title:"RAM Nimbus",data:`${a.item.ramsuper} MB`}}),e("list-entry",{attrs:{title:"RAM Stratus",data:`${a.item.rambamf} MB`}}),e("list-entry",{attrs:{title:"SSD Cumulus",data:`${a.item.hddbasic} GB`}}),e("list-entry",{attrs:{title:"SSD Nimbus",data:`${a.item.hddsuper} GB`}}),e("list-entry",{attrs:{title:"SSD Stratus",data:`${a.item.hddbamf} GB`}})],1):e("div",[e("list-entry",{attrs:{title:"CPU",data:`${a.item.cpu} vCore`}}),e("list-entry",{attrs:{title:"RAM",data:`${a.item.ram} MB`}}),e("list-entry",{attrs:{title:"SSD",data:`${a.item.hdd} GB`}})],1)],1)],1):e("div",[e("h3",{staticClass:"no-wrap"},[e("kbd",{staticClass:"alert-info d-flex",staticStyle:{"border-radius":"15px","font-family":"monospace","padding-right":"100%"}},[e("b-icon",{staticClass:"ml-1",attrs:{scale:"1",icon:"box"}}),t._v("  Composition ")],1)]),t._l(a.item.compose,(function(s,i){return e("b-card",{key:i,staticClass:"mb-0"},[e("h3",{staticClass:"no-wrap"},[e("kbd",{staticClass:"alert-success d-flex",staticStyle:{"border-radius":"15px","font-family":"monospace","max-width":"500px"}},[e("b-icon",{staticClass:"ml-1",attrs:{scale:"1",icon:"menu-app-fill"}}),t._v("  "+t._s(s.name)+" ")],1)]),e("div",{staticClass:"ml-1"},[e("list-entry",{attrs:{title:"Name",data:s.name}}),e("list-entry",{attrs:{title:"Description",data:s.description}}),e("list-entry",{attrs:{title:"Repository",data:s.repotag}}),e("list-entry",{attrs:{title:"Repository Authentication",data:s.repoauth?"Content Encrypted":"Public"}}),e("list-entry",{attrs:{title:"Custom Domains",data:s.domains.toString()||"none"}}),e("list-entry",{attrs:{title:"Automatic Domains",data:t.constructAutomaticDomains(s.ports,a.item.name,{componentName:s.name,index:i}).toString()}}),e("list-entry",{attrs:{title:"Ports",data:s.ports.toString()}}),e("list-entry",{attrs:{title:"Container Ports",data:s.containerPorts.toString()}}),e("list-entry",{attrs:{title:"Container Data",data:s.containerData}}),e("list-entry",{attrs:{title:"Environment Parameters",data:s.environmentParameters.length>0?s.environmentParameters.toString():"none"}}),e("list-entry",{attrs:{title:"Commands",data:s.commands.length>0?s.commands.toString():"none"}}),e("list-entry",{attrs:{title:"Secret Environment Parameters",data:s.secrets?"Content Encrypted":"none"}}),s.tiered?e("div",[e("list-entry",{attrs:{title:"CPU Cumulus",data:`${s.cpubasic} vCore`}}),e("list-entry",{attrs:{title:"CPU Nimbus",data:`${s.cpusuper} vCore`}}),e("list-entry",{attrs:{title:"CPU Stratus",data:`${s.cpubamf} vCore`}}),e("list-entry",{attrs:{title:"RAM Cumulus",data:`${s.rambasic} MB`}}),e("list-entry",{attrs:{title:"RAM Nimbus",data:`${s.ramsuper} MB`}}),e("list-entry",{attrs:{title:"RAM Stratus",data:`${s.rambamf} MB`}}),e("list-entry",{attrs:{title:"SSD Cumulus",data:`${s.hddbasic} GB`}}),e("list-entry",{attrs:{title:"SSD Nimbus",data:`${s.hddsuper} GB`}}),e("list-entry",{attrs:{title:"SSD Stratus",data:`${s.hddbamf} GB`}})],1):e("div",[e("list-entry",{attrs:{title:"CPU",data:`${s.cpu} vCore`}}),e("list-entry",{attrs:{title:"RAM",data:`${s.ram} MB`}}),e("list-entry",{attrs:{title:"SSD",data:`${s.hdd} GB`}})],1)],1)])}))],2),t.activeAppsTab?e("locations",{attrs:{"app-locations":t.appLocations}}):t._e()],1)]}},{key:"cell(actions)",fn:function(a){return[t.activeAppsTab?e("manage",{attrs:{row:a},on:{"open-app-management":t.openAppManagement}}):e("redeploy",{attrs:{row:a}})]}}])})],1)],1),e("b-col",{attrs:{cols:"12"}},[e("b-pagination",{staticClass:"my-0",attrs:{"total-rows":t.apps.length,"per-page":t.tableOptions.perPage,align:"center",size:"sm"},model:{value:t.tableOptions.currentPage,callback:function(e){t.$set(t.tableOptions,"currentPage",e)},expression:"tableOptions.currentPage"}})],1),e("b-icon",{staticClass:"ml-1",attrs:{scale:"1.4",icon:"layers"}}),t._v("  "),e("b",[t._v(" "),e("kbd",{staticClass:"alert-success",staticStyle:{"border-radius":"15px"}},[t._v(" "+t._s(t.apps.length||0)+" ")])])],1)],1)],1)},r=[],l=a(43672),p=a(34547),c=a(51748),d=function(){var t=this,e=t._self._c;return e("div",[e("h3",[e("kbd",{staticClass:"alert-info d-flex",staticStyle:{"border-radius":"15px","font-family":"monospace","padding-right":"100%"}},[e("b-icon",{attrs:{scale:"1",icon:"globe"}}),t._v("  Locations ")],1)]),e("b-row",[e("b-col",{staticClass:"p-0 m-0"},[e("flux-map",{staticClass:"mb-0",attrs:{"show-all":!1,nodes:t.allNodesLocations,"filter-nodes":t.mapLocations},on:{"nodes-updated":t.nodesUpdated}})],1)],1),e("b-row",[e("b-col",{staticClass:"my-1",attrs:{md:"4",sm:"4"}},[e("b-form-group",{staticClass:"mb-0"},[e("label",{staticClass:"d-inline-block text-left mr-50"},[t._v("Per page")]),e("b-form-select",{staticClass:"w-50",attrs:{id:"perPageSelect",size:"sm",options:t.appLocationOptions.pageOptions},model:{value:t.appLocationOptions.perPage,callback:function(e){t.$set(t.appLocationOptions,"perPage",e)},expression:"appLocationOptions.perPage"}})],1)],1),e("b-col",{staticClass:"my-1",attrs:{md:"8"}},[e("b-form-group",{staticClass:"mb-0",attrs:{label:"Filter","label-cols-sm":"1","label-align-sm":"right","label-for":"filterInput"}},[e("b-input-group",{attrs:{size:"sm"}},[e("b-form-input",{attrs:{id:"filterInput",type:"search",placeholder:"Type to Search"},model:{value:t.appLocationOptions.filter,callback:function(e){t.$set(t.appLocationOptions,"filter",e)},expression:"appLocationOptions.filter"}}),e("b-input-group-append",[e("b-button",{attrs:{disabled:!t.appLocationOptions.filter},on:{click:function(e){t.appLocationOptions.filter=""}}},[t._v(" Clear ")])],1)],1)],1)],1),e("b-col",{attrs:{cols:"12"}},[e("b-table",{staticClass:"locations-table",attrs:{borderless:"","per-page":t.appLocationOptions.perPage,"current-page":t.appLocationOptions.currentPage,items:t.appLocations,fields:t.appLocationFields,filter:t.appLocationOptions.filter,"thead-class":"d-none","show-empty":"","sort-icon-left":"","empty-text":"No instances found..."},scopedSlots:t._u([{key:"cell(ip)",fn:function(a){return[e("div",{staticClass:"no-wrap"},[e("kbd",{staticClass:"alert-info",staticStyle:{"border-radius":"15px"}},[e("b-icon",{attrs:{scale:"1.1",icon:"hdd-network-fill"}})],1),t._v("  "),e("kbd",{staticClass:"alert-success no-wrap",staticStyle:{"border-radius":"15px"}},[e("b",[t._v("  "+t._s(a.item.ip)+"  ")])])])]}},{key:"cell(visit)",fn:function(a){return[e("div",{staticClass:"d-flex justify-content-end"},[e("b-button",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.top",value:"Visit App",expression:"'Visit App'",modifiers:{hover:!0,top:!0}}],staticClass:"mr-1",attrs:{size:"sm",pill:"",variant:"dark"},on:{click:function(e){t.openApp(t.row.item.name,a.item.ip.split(":")[0],t.getProperPort(t.row.item))}}},[e("b-icon",{attrs:{scale:"1",icon:"door-open"}}),t._v(" App ")],1),e("b-button",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.top",value:"Visit FluxNode",expression:"'Visit FluxNode'",modifiers:{hover:!0,top:!0}}],staticClass:"mr-0",attrs:{size:"sm",pill:"",variant:"outline-dark"},on:{click:function(e){t.openNodeFluxOS(a.item.ip.split(":")[0],a.item.ip.split(":")[1]?+a.item.ip.split(":")[1]-1:16126)}}},[e("b-icon",{attrs:{scale:"1",icon:"house-door-fill"}}),t._v(" FluxNode ")],1),t._v("   ")],1)]}}])})],1),e("b-col",{attrs:{cols:"12"}},[e("b-pagination",{staticClass:"my-0 mt-1",attrs:{"total-rows":t.appLocationOptions.totalRows,"per-page":t.appLocationOptions.perPage,align:"center",size:"sm"},model:{value:t.appLocationOptions.currentPage,callback:function(e){t.$set(t.appLocationOptions,"currentPage",e)},expression:"appLocationOptions.currentPage"}})],1)],1)],1)},m=[],u=a(57071);const g={components:{FluxMap:u.Z},props:{appLocations:{type:Array,default(){return[]}}},data(){return{allNodesLocations:[],appLocationFields:[{key:"ip",label:"IP Address"},{key:"visit",label:""}],appLocationOptions:{perPage:25,pageOptions:[5,10,25,50,100],currentPage:1,totalRows:1,filterOn:[],filter:""}}},computed:{mapLocations(){return this.appLocations.map((t=>t.ip))}},methods:{nodesUpdated(t){this.$set(this.allNodesLocations,t)},getProperPort(t){if(t.port)return t.port;if(t.ports)return t.ports[0];for(let e=0;e{this.showToast("danger",t.message||t)}));if(console.log(e),"success"===e.data.status){const a=e.data.data,s=a[0];if(s){const e=`https://${t}.app.runonflux.io`;this.openSite(e)}else this.showToast("danger","Application is awaiting launching...")}else this.showToast("danger",e.data.data.message||e.data.data)},openSite(t){const e=window.open(t,"_blank");e.focus()}}},P=O;var D=(0,h.Z)(P,k,L,!1,null,null,null);const M=D.exports;var B=function(){var t=this,e=t._self._c;return e("span",{class:t.spanClasses},[t._v("   "),e("b-icon",{attrs:{scale:"1.2",icon:"hourglass-split"}}),t._v(" "+t._s(t.expireTime)+"   ")],1)},T=[];const N={components:{},props:{expireTime:{type:String,required:!0}},data(){return{}},computed:{spanClasses(){return{"red-text":this.isLessThanTwoDays(this.expireTime),"no-wrap":!0}}},methods:{isLessThanTwoDays(t){if(!t)return!0;const e=t.split(",").map((t=>t.trim()));let a=0,s=0,i=0;e.forEach((t=>{t.includes("days")?a=parseInt(t,10):t.includes("hours")?s=parseInt(t,10):t.includes("minutes")&&(i=parseInt(t,10))}));const n=24*a*60+60*s+i;return n<2880}}},E=N;var I=(0,h.Z)(E,B,T,!1,null,null,null);const R=I.exports,z=a(57306),U={expose:["hideTabs"],components:{Locations:y,Redeploy:$,Manage:M,ExpiryLabel:R,ListEntry:c.Z},props:{apps:{type:Array,required:!0},currentBlockHeight:{type:Number,required:!0},activeAppsTab:{type:Boolean,default:!0},loading:{type:Boolean,default:!1},fields:{type:Array,default(){return[]}},loggedIn:{type:Boolean,default:!1}},data(){return{appLocations:[],defaultFields:[{key:"show_details",label:""},{key:"name",label:"Name",sortable:!0,thStyle:{width:"5%"}},{key:"description",label:"Description",thStyle:{width:"75%"}},{key:"actions",label:"",class:"text-center",thStyle:{width:"8%"}}],tableOptions:{perPage:25,pageOptions:[5,10,25,50,100],currentPage:1,totalRows:1,sortBy:"",sortDesc:!1,sortDirection:"asc",filter:""}}},computed:{emptyText(){return this.loggedIn?this.activeAppsTab?"No Global Apps are owned.":"No owned Apps are expired.":"You must log in to see your applications."},mergedFields(){const t=this.fields.map((t=>({...t})));return this.defaultFields.forEach((e=>{t.find((t=>t.key===e.key))||t.push(e)})),t}},methods:{hideTabs(){this.apps.forEach((t=>{this.$set(t,"_showDetails",!1)}))},openAppManagement(t){this.$emit("open-app-management",t)},getGeolocation(t){if(t.startsWith("a")&&!t.startsWith("ac")&&!t.startsWith("a!c")){const e=t.slice(1),a=z.continents.find((t=>t.code===e))||{name:"ALL"};return`Continent: ${a.name||"Unkown"}`}if(t.startsWith("b")){const e=t.slice(1),a=z.countries.find((t=>t.code===e))||{name:"ALL"};return`Country: ${a.name||"Unkown"}`}if(t.startsWith("ac")){const e=t.slice(2),a=e.split("_"),s=a[0],i=a[1],n=a[2],o=z.continents.find((t=>t.code===s))||{name:"ALL"},r=z.countries.find((t=>t.code===i))||{name:"ALL"};let l=`Allowed location: Continent: ${o.name}`;return i&&(l+=`, Country: ${r.name}`),n&&(l+=`, Region: ${n}`),l}if(t.startsWith("a!c")){const e=t.slice(3),a=e.split("_"),s=a[0],i=a[1],n=a[2],o=z.continents.find((t=>t.code===s))||{name:"ALL"},r=z.countries.find((t=>t.code===i))||{name:"ALL"};let l=`Forbidden location: Continent: ${o.name}`;return i&&(l+=`, Country: ${r.name}`),n&&(l+=`, Region: ${n}`),l}return"All locations allowed"},constructAutomaticDomains(t,e,a={}){const{componentName:s="",index:i=0}=a,n=e.toLowerCase(),o=s.toLowerCase();if(!o){const e=[];0===i&&e.push(`${n}.app.runonflux.io`);for(let a=0;a{const i=Math.floor(e/a[t]);1===i&&s.push(` ${i} ${t}`),i>=2&&s.push(` ${i} ${t}s`),e%=a[t]})),s},labelForExpire(t,e){if(!e)return"Application Expired";if(-1===this.currentBlockHeight)return"Not possible to calculate expiration";const a=t||22e3,s=e+a-this.currentBlockHeight;if(s<1)return"Application Expired";const i=2*s,n=this.minutesToString(i);return n.length>2?`${n[0]}, ${n[1]}, ${n[2]}`:n.length>1?`${n[0]}, ${n[1]}`:`${n[0]}`},getServiceUsageValue(t,e,a){if("undefined"===typeof a?.compose)return this.usage=[+a.ram,+a.cpu,+a.hdd],this.usage[t];const s=this.getServiceUsage(e,a.compose);return s[t]},getServiceUsage(t,e){let a=0,s=0,i=0;return e.forEach((t=>{a+=t.ram,s+=t.cpu,i+=t.hdd})),[a,s,i]},showToast(t,e,a="InfoIcon"){this.$toast({component:p.Z,props:{title:e,icon:a,variant:t}})},showLocations(t,e){t.detailsShowing?t.toggleDetails():(e.forEach((t=>{this.$set(t,"_showDetails",!1)})),this.$nextTick((()=>{t.toggleDetails(),this.activeAppsTab&&this.loadLocations(t)})))},async loadLocations(t){const e=await l.Z.getAppLocation(t.item.name).catch((t=>(this.showToast("danger",t.message||t),{data:{status:"fail"}})));if("success"===e.data.status){const{data:{data:t}}=e;this.appLocations=t}}}},F=U;var Z=(0,h.Z)(F,o,r,!1,null,null,null);const G=Z.exports;var V=a(27616);const q=a(80129),W={components:{Management:n.Z,MyAppsTab:G},data(){return{allApps:[],activeApps:[],expiredApps:[],managedApplication:"",daemonBlockCount:-1,loading:{active:!0,expired:!0},loggedIn:!1}},created(){this.setLoginStatus(),this.getApps(),this.getDaemonBlockCount()},methods:{async getDaemonBlockCount(){const t=await V.Z.getBlockCount().catch((()=>({data:{status:"fail"}})));"success"===t.data.status&&(this.daemonBlockCount=t.data.data)},openAppManagement(t){this.managedApplication=t},clearManagedApplication(){this.managedApplication="",this.$nextTick((()=>{this.tabChanged()}))},async getActiveApps(){this.loading.active=!0;const t=await l.Z.globalAppSpecifications().catch((()=>({data:{data:[]}})));this.allApps=t.data.data;const e=localStorage.getItem("zelidauth"),a=q.parse(e);a?(this.activeApps=this.allApps.filter((t=>t.owner===a.zelid)),this.loading.active=!1):this.$set(this.activeApps,[])},async getExpiredApps(){try{const t=localStorage.getItem("zelidauth"),e=q.parse(t);if(!e.zelid)return void this.$set(this.expiredApps,[]);const a=await l.Z.permanentMessagesOwner(e.zelid).catch((()=>({data:{data:[]}}))),s=[],{data:{data:i}}=a;i.forEach((t=>{const e=s.find((e=>e.appSpecifications.name===t.appSpecifications.name));if(e){if(t.height>e.height){const e=s.findIndex((e=>e.appSpecifications.name===t.appSpecifications.name));e>-1&&(s.splice(e,1),s.push(t))}}else s.push(t)}));const n=[];s.forEach((t=>{const e=this.allApps.find((e=>e.name.toLowerCase()===t.appSpecifications.name.toLowerCase()));if(!e){const e=t.appSpecifications;n.push(e)}})),this.expiredApps=n}catch(t){console.log(t)}finally{this.loading.expired=!1}},async getApps(){await this.getActiveApps(),await this.getExpiredApps()},tabChanged(){this.$refs.activeApps.hideTabs(),this.$refs.expiredApps.hideTabs(),this.setLoginStatus()},setLoginStatus(){const t=localStorage.getItem("zelidauth"),e=q.parse(t);this.loggedIn=Boolean(e.zelid)}}},j=W;var H=(0,h.Z)(j,s,i,!1,null,null,null);const X=H.exports}}]); \ No newline at end of file diff --git a/HomeUI/dist/js/266.js b/HomeUI/dist/js/266.js new file mode 100644 index 000000000..d1d49a6d5 --- /dev/null +++ b/HomeUI/dist/js/266.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunkflux"]=self["webpackChunkflux"]||[]).push([[266],{57796:(t,e,s)=>{s.d(e,{Z:()=>d});var a=function(){var t=this,e=t._self._c;return e("div",{staticClass:"collapse-icon",class:t.collapseClasses,attrs:{role:"tablist"}},[t._t("default")],2)},n=[],r=(s(70560),s(57632));const i={props:{accordion:{type:Boolean,default:!1},hover:{type:Boolean,default:!1},type:{type:String,default:"default"}},data(){return{collapseID:""}},computed:{collapseClasses(){const t=[],e={default:"collapse-default",border:"collapse-border",shadow:"collapse-shadow",margin:"collapse-margin"};return t.push(e[this.type]),t}},created(){this.collapseID=(0,r.Z)()}},o=i;var l=s(1001),c=(0,l.Z)(o,a,n,!1,null,null,null);const d=c.exports},22049:(t,e,s)=>{s.d(e,{Z:()=>g});var a=function(){var t=this,e=t._self._c;return e("b-card",{class:{open:t.visible},attrs:{"no-body":""},on:{mouseenter:t.collapseOpen,mouseleave:t.collapseClose,focus:t.collapseOpen,blur:t.collapseClose}},[e("b-card-header",{class:{collapsed:!t.visible},attrs:{"aria-expanded":t.visible?"true":"false","aria-controls":t.collapseItemID,role:"tab","data-toggle":"collapse"},on:{click:function(e){return t.updateVisible(!t.visible)}}},[t._t("header",(function(){return[e("span",{staticClass:"lead collapse-title"},[t._v(t._s(t.title))])]}))],2),e("b-collapse",{attrs:{id:t.collapseItemID,accordion:t.accordion,role:"tabpanel"},model:{value:t.visible,callback:function(e){t.visible=e},expression:"visible"}},[e("b-card-body",[t._t("default")],2)],1)],1)},n=[],r=s(86855),i=s(87047),o=s(19279),l=s(11688),c=s(57632);const d={components:{BCard:r._,BCardHeader:i.p,BCardBody:o.O,BCollapse:l.k},props:{isVisible:{type:Boolean,default:!1},title:{type:String,required:!0}},data(){return{visible:!1,collapseItemID:"",openOnHover:this.$parent.hover}},computed:{accordion(){return this.$parent.accordion?`accordion-${this.$parent.collapseID}`:null}},created(){this.collapseItemID=(0,c.Z)(),this.visible=this.isVisible},methods:{updateVisible(t=!0){this.visible=t,this.$emit("visible",t)},collapseOpen(){this.openOnHover&&this.updateVisible(!0)},collapseClose(){this.openOnHover&&this.updateVisible(!1)}}},u=d;var h=s(1001),p=(0,h.Z)(u,a,n,!1,null,null,null);const g=p.exports},34547:(t,e,s)=>{s.d(e,{Z:()=>d});var a=function(){var t=this,e=t._self._c;return e("div",{staticClass:"toastification"},[e("div",{staticClass:"d-flex align-items-start"},[e("b-avatar",{staticClass:"mr-75 flex-shrink-0",attrs:{variant:t.variant,size:"1.8rem"}},[e("feather-icon",{attrs:{icon:t.icon,size:"15"}})],1),e("div",{staticClass:"d-flex flex-grow-1"},[e("div",[t.title?e("h5",{staticClass:"mb-0 font-weight-bolder toastification-title",class:`text-${t.variant}`,domProps:{textContent:t._s(t.title)}}):t._e(),t.text?e("small",{staticClass:"d-inline-block text-body",domProps:{textContent:t._s(t.text)}}):t._e()]),e("span",{staticClass:"cursor-pointer toastification-close-icon ml-auto",on:{click:function(e){return t.$emit("close-toast")}}},[t.hideClose?t._e():e("feather-icon",{staticClass:"text-body",attrs:{icon:"XIcon"}})],1)])],1)])},n=[],r=s(47389);const i={components:{BAvatar:r.SH},props:{variant:{type:String,default:"primary"},icon:{type:String,default:null},title:{type:String,default:null},text:{type:String,default:null},hideClose:{type:Boolean,default:!1}}},o=i;var l=s(1001),c=(0,l.Z)(o,a,n,!1,null,"22d964ca",null);const d=c.exports},51748:(t,e,s)=>{s.d(e,{Z:()=>d});var a=function(){var t=this,e=t._self._c;return e("dl",{staticClass:"row",class:t.classes},[e("dt",{staticClass:"col-sm-3"},[t._v(" "+t._s(t.title)+" ")]),t.href.length>0?e("dd",{staticClass:"col-sm-9 mb-0",class:`text-${t.variant}`},[t.href.length>0?e("b-link",{attrs:{href:t.href,target:"_blank",rel:"noopener noreferrer"}},[t._v(" "+t._s(t.data.length>0?t.data:t.number!==Number.MAX_VALUE?t.number:"")+" ")]):t._e()],1):t.click?e("dd",{staticClass:"col-sm-9 mb-0",class:`text-${t.variant}`,on:{click:function(e){return t.$emit("click")}}},[e("b-link",[t._v(" "+t._s(t.data.length>0?t.data:t.number!==Number.MAX_VALUE?t.number:"")+" ")])],1):e("dd",{staticClass:"col-sm-9 mb-0",class:`text-${t.variant}`},[t._v(" "+t._s(t.data.length>0?t.data:t.number!==Number.MAX_VALUE?t.number:"")+" ")])])},n=[],r=s(67347);const i={components:{BLink:r.we},props:{title:{type:String,required:!0},classes:{type:String,required:!1,default:"mb-1"},data:{type:String,required:!1,default:""},number:{type:Number,required:!1,default:Number.MAX_VALUE},variant:{type:String,required:!1,default:"secondary"},href:{type:String,required:!1,default:""},click:{type:Boolean,required:!1,default:!1}}},o=i;var l=s(1001),c=(0,l.Z)(o,a,n,!1,null,null,null);const d=c.exports},266:(t,e,s)=>{s.r(e),s.d(e,{default:()=>V});var a=function(){var t=this,e=t._self._c;return e("div",[e("b-row",[e("b-col",{attrs:{cols:"4",sm:"4",lg:"2"}},[t.explorerView?t._e():e("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"mr-2",attrs:{variant:"outline-primary",pill:""},on:{click:t.goBackToExplorer}},[e("v-icon",{attrs:{name:"chevron-left"}}),t._v(" Back ")],1)],1),e("b-col",{attrs:{cols:"8",sm:"8",lg:"10"}},[e("b-form-input",{attrs:{placeholder:"Search for block, transaction or address"},model:{value:t.searchBar,callback:function(e){t.searchBar=e},expression:"searchBar"}})],1)],1),t.explorerView?e("b-row",[e("b-col",{attrs:{xs:"12"}},[e("b-table",{staticClass:"blocks-table mt-2",attrs:{striped:"",hover:"",responsive:"",items:t.blocks,fields:t.blocksFields,"sort-by":"height","sort-desc":!0},on:{"row-clicked":t.selectBlock},scopedSlots:t._u([{key:"cell(time)",fn:function(e){return[t._v(" "+t._s(t.formatTimeAgo(e.item.time))+" ")]}},{key:"cell(transactions)",fn:function(e){return[t._v(" "+t._s(e.item.tx.length)+" ")]}}],null,!1,250861534)}),e("div",{staticClass:"text-center"},[e("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"mt-1",attrs:{variant:"primary"},on:{click:t.loadMoreBlocks}},[t._v(" Load More Blocks ")])],1),e("div",{staticClass:"syncstatus"},[t._v(" "+t._s(`Synced: ${t.scannedHeight}/${t.getInfoResponse.data.blocks}`)+" ")])],1)],1):t._e(),t.blockView?e("b-row",{staticClass:"mt-2"},[e("b-col",{attrs:{cols:"12"}},[e("b-card",{attrs:{title:`Block #${t.selectedBlock.height}`}},[e("list-entry",{attrs:{title:"Block Hash",data:t.selectedBlock.hash}}),t.selectedBlock.height>0?e("list-entry",{attrs:{title:"Previous Block",number:t.selectedBlock.height-1,click:!0},on:{click:t.selectPreviousBlock}}):t._e()],1),e("b-card",{attrs:{title:"Summary"}},[e("b-row",[e("b-col",{attrs:{cols:"12",lg:"4"}},[e("list-entry",{attrs:{title:"Transactions",number:t.selectedBlock.tx.length}}),e("list-entry",{attrs:{title:"Height",number:t.selectedBlock.height}}),e("list-entry",{attrs:{title:"Timestamp",data:new Date(1e3*t.selectedBlock.time).toLocaleString("en-GB",t.timeoptions.shortDate)}}),e("list-entry",{attrs:{title:"Difficulty",number:t.selectedBlock.difficulty}}),e("list-entry",{attrs:{title:"Size (bytes)",number:t.selectedBlock.size}})],1),e("b-col",{attrs:{cols:"12",lg:"8"}},[e("list-entry",{attrs:{title:"Version",number:t.selectedBlock.version}}),e("list-entry",{attrs:{title:"Bits",data:t.selectedBlock.bits}}),e("list-entry",{attrs:{title:"Merkle Root",data:t.selectedBlock.merkleroot}}),e("list-entry",{attrs:{title:"Nonce",data:t.selectedBlock.nonce}}),e("list-entry",{attrs:{title:"Solution",data:t.selectedBlock.solution}})],1)],1)],1),e("b-card",{attrs:{title:"Transactions"}},[e("app-collapse",t._l(t.selectedBlockTransactions,(function(s){return e("app-collapse-item",{key:s.txid,staticClass:"txid-title",attrs:{title:`TXID: ${s.txid}`}},[e("Transaction",{attrs:{transaction:s,"current-height":t.getInfoResponse.data.blocks}})],1)})),1)],1)],1)],1):t._e(),t.txView?e("b-row",{staticClass:"mt-2"},[e("b-col",{attrs:{cols:"12"}},[e("b-overlay",{attrs:{show:!t.transactionDetail.txid,variant:"transparent",blur:"5px",opacity:"0.82"}},[e("b-card",{attrs:{title:`Transaction: ${t.transactionDetail.txid?t.transactionDetail.txid:"Loading..."}`}},[t.transactionDetail.txid?e("Transaction",{attrs:{transaction:t.transactionDetail,"current-height":t.getInfoResponse.data.blocks}}):t._e()],1)],1)],1)],1):t._e(),t.addressView?e("b-overlay",{attrs:{show:!t.addressWithTransactions[t.address],variant:"transparent",blur:"5px",opacity:"0.82"}},[e("b-row",{key:t.uniqueKeyAddress,staticClass:"mt-2 match-height"},[e("b-col",{attrs:{cols:"12",lg:"6"}},[e("b-card",{attrs:{title:`Address: ${t.addressWithTransactions[t.address]?t.addressWithTransactions[t.address].address:"Loading..."}`}},[e("h2",[t._v(" Balance: "+t._s(t.addressWithTransactions[t.address]?`${(t.addressWithTransactions[t.address].balance/1e8).toLocaleString()} FLUX`:"Loading...")+" ")])])],1),e("b-col",{attrs:{cols:"12",lg:"6"}},[e("b-card",{attrs:{title:"Summary"}},[e("list-entry",{attrs:{title:"No. Transactions",number:t.addressWithTransactions[t.address]?t.addressWithTransactions[t.address].transactions.length:0}})],1)],1)],1),t.addressWithTransactions[t.address]&&t.addressWithTransactions[t.address].fetchedTransactions&&t.addressWithTransactions[t.address].fetchedTransactions.length>0?e("b-row",[e("b-col",{attrs:{cols:"12"}},[e("b-card",{attrs:{title:"Transactions"}},[e("app-collapse",t._l(t.addressWithTransactions[t.address].fetchedTransactions,(function(s){return e("app-collapse-item",{key:s.txid,attrs:{title:`TXID: ${s.txid}`}},[e("Transaction",{attrs:{transaction:s,"current-height":t.getInfoResponse.data.blocks}})],1)})),1)],1)],1)],1):t._e()],1):t._e()],1)},n=[],r=(s(70560),s(15193)),i=s(86855),o=s(22183),l=s(16521),c=s(66126),d=s(20266),u=s(34547),h=s(57796),p=s(22049),g=s(51748),y=function(){var t=this,e=t._self._c;return e("b-card",{staticClass:"mb-0"},[e("list-entry",{attrs:{title:"Date",data:new Date(1e3*t.transaction.time).toLocaleString("en-GB",t.timeoptions.shortDate),classes:"skinny-list-entry"}}),e("list-entry",{attrs:{title:"Confirmations",number:t.transaction.height?t.currentHeight-t.transaction.height+1:0,classes:"skinny-list-entry"}}),e("list-entry",{attrs:{title:"Version",data:`${t.transaction.version} ${5===t.transaction.version?" - Flux transaction":JSON.stringify(t.transaction.vin).includes("coinbase")?" - Coinbase transaction":" - Standard transaction"}`,classes:"skinny-list-entry"}}),e("list-entry",{attrs:{title:"Size",data:t.transaction.hex.length/2+" bytes",classes:"skinny-list-entry"}}),e("list-entry",{attrs:{title:"Fee",data:`${t.calculateTxFee()} FLUX`,classes:"skinny-list-entry"}}),t.transaction.version<5&&t.transaction.version>0?e("div",[e("list-entry",{attrs:{title:"Overwintered",data:t.transaction.overwintered.toString(),classes:"skinny-list-entry"}}),e("list-entry",{attrs:{title:"Version Group ID",data:t.transaction.versiongroupid,classes:"skinny-list-entry"}}),e("list-entry",{attrs:{title:"Lock Time",number:t.transaction.locktime,classes:"skinny-list-entry"}}),e("list-entry",{attrs:{title:"Expiry Height",number:t.transaction.expiryheight,classes:"skinny-list-entry"}})],1):t._e(),t.transaction.version<5&&t.transaction.version>0?e("div",[4===t.transaction.version?e("list-entry",{attrs:{title:"Sapling Inputs / Outputs",data:`${t.transaction.vShieldedSpend.length} / ${t.transaction.vShieldedOutput.length}`,classes:"skinny-list-entry"}}):t._e(),e("list-entry",{attrs:{title:"Sprout Inputs / Outputs",data:`${t.calculateJoinSplitInput(t.transaction.vJoinSplit)} / ${t.calculateJoinSplitOutput(t.transaction.vJoinSplit)}`,classes:"skinny-list-entry"}}),e("b-row",{staticClass:"match-height mt-1"},[e("b-col",{attrs:{cols:"6"}},[e("b-card",{staticClass:"io-section",attrs:{title:"Inputs","border-variant":"secondary"}},t._l(t.transaction.vin.length,(function(s){return e("div",{key:s},[e("div",[t.transaction.vin[s-1].coinbase?e("div",[t._v(" No Inputs (Newly generated coins) ")]):"object"===typeof t.transaction.senders[s-1]?e("b-card",{key:t.transaction.senders[s-1].value||t.transaction.senders[s-1],staticClass:"tx",attrs:{"border-variant":"success","no-body":""}},[e("b-card-body",{staticClass:"d-flex tx-body"},[e("p",{staticClass:"flex-grow-1"},[t._v(" "+t._s(t.transaction.senders[s-1].scriptPubKey.addresses[0])+" ")]),e("p",[t._v(" "+t._s(t.transaction.senders[s-1].value)+" FLUX ")])])],1):e("div",[t._v(" "+t._s(t.transaction.senders[s-1]||"Loading Sender")+" ")])],1)])})),0)],1),e("b-col",{attrs:{cols:"6"}},[e("b-card",{staticClass:"io-section",attrs:{title:"Outputs","border-variant":"secondary"}},t._l(t.transaction.vout.length,(function(s){return e("b-card",{key:s,staticClass:"tx",attrs:{"border-variant":"warning","no-body":""}},[t.transaction.vout[s-1].scriptPubKey.addresses?e("b-card-body",{staticClass:"tx-body"},[e("b-row",[e("b-col",{attrs:{lg:"8",xs:"12"}},[e("p",{staticClass:"flex-grow-1"},[t._v(" "+t._s(t.transaction.vout[s-1].scriptPubKey.addresses[0])+" ")])]),e("b-col",{attrs:{lg:"4",xs:"12"}},[e("p",[t._v(" "+t._s(t.transaction.vout[s-1].value)+" FLUX ")])])],1)],1):e("b-card-body",[t._v(" "+t._s(t.decodeMessage(t.transaction.vout[s-1].asm))+" ")])],1)})),1)],1)],1)],1):t._e(),5===t.transaction.version?e("div",[e("list-entry",{attrs:{title:"Type",data:t.transaction.type,classes:"skinny-list-entry"}}),e("list-entry",{attrs:{title:"Collateral Hash",data:t.getValueHexBuffer(t.transaction.hex.slice(10,74)),classes:"skinny-list-entry"}}),e("list-entry",{attrs:{title:"Collateral Index",number:t.getCollateralIndex(t.transaction.hex.slice(74,82)),classes:"skinny-list-entry"}}),e("list-entry",{attrs:{title:"Signature",data:t.transaction.sig,classes:"skinny-list-entry"}}),e("list-entry",{attrs:{title:"Signature Time",data:new Date(1e3*t.transaction.sigtime).toLocaleString("en-GB",t.timeoptions.shortDate),classes:"skinny-list-entry"}}),"Starting a fluxnode"===t.transaction.type?e("list-entry",{attrs:{title:"Collateral Public Key",data:t.transaction.collateral_pubkey,classes:"skinny-list-entry"}}):t._e(),"Starting a fluxnode"===t.transaction.type?e("list-entry",{attrs:{title:"Flux Public Key",data:t.transaction.zelnode_pubkey||t.transaction.fluxnode_pubkey||t.transaction.node_pubkey,classes:"skinny-list-entry"}}):t._e(),"Confirming a fluxnode"===t.transaction.type?e("list-entry",{attrs:{title:"Flux Network",data:t.transaction.ip,classes:"skinny-list-entry"}}):t._e(),"Confirming a fluxnode"===t.transaction.type?e("list-entry",{attrs:{title:"Update Type",number:t.transaction.update_type,classes:"skinny-list-entry"}}):t._e(),"Confirming a fluxnode"===t.transaction.type?e("list-entry",{attrs:{title:"Benchmark Tier",data:t.transaction.benchmark_tier,classes:"skinny-list-entry"}}):t._e(),"Confirming a fluxnode"===t.transaction.type?e("list-entry",{attrs:{title:"Benchmark Signature",data:t.transaction.benchmark_sig,classes:"skinny-list-entry"}}):t._e(),"Confirming a fluxnode"===t.transaction.type?e("list-entry",{attrs:{title:"Benchmark Signature Time",data:new Date(1e3*t.transaction.benchmark_sigtime).toLocaleString("en-GB",t.timeoptions.shortDate),classes:"skinny-list-entry"}}):t._e()],1):t._e()],1)},m=[],b=s(19279),f=s(48764)["lW"];const k=s(63005),v={components:{BCard:i._,BCardBody:b.O,ListEntry:g.Z},props:{transaction:{type:Object,default(){return{version:0}}},currentHeight:{type:Number,required:!0}},data(){return{timeoptions:k}},mounted(){this.processTransaction()},methods:{async processTransaction(){this.calculateTxFee()},getValueHexBuffer(t){const e=f.from(t,"hex").reverse();return e.toString("hex")},getCollateralIndex(t){const e=f.from(t,"hex").reverse();return parseInt(e.toString("hex"),16)},calculateTxFee(){if(5===this.transaction.version)return 0;if(this.transaction.vin[0]&&this.transaction.vin[0].coinbase)return 0;const t=this.transaction.valueBalanceZat||0;let e=0,s=0;this.transaction.senders.forEach((t=>{"object"===typeof t&&(s+=t.valueSat)})),this.transaction.vout.forEach((t=>{e+=t.valueSat})),this.transaction.vJoinSplit.forEach((t=>{s+=t.vpub_newZat,e+=t.vpub_oldZat}));const a=(t-e+s)/1e8;return a},calculateJoinSplitInput(t){let e=0;return t.forEach((t=>{e+=t.vpub_newZat})),e/1e8},calculateJoinSplitOutput(t){let e=0;return t.forEach((t=>{e+=t.vpub_oldZat})),e/1e8},decodeMessage(t){if(!t)return"";const e=t.split("OP_RETURN ",2);let s="";if(e[1]){const t=e[1],a=t.toString();for(let e=0;e0&&parseInt(t,10).toString().length===t.length||64===t.length?this.getBlock(t):t.length>=30&&t.length<38&&this.getAddress(t)},selectedBlock:{handler(t){this.selectedBlockTransactions=t.transactions},deep:!0,immediate:!0},addressWithTransactions:{handler(){},deep:!0,immediate:!0}},mounted(){this.daemonGetInfo(),this.getSyncedHeight()},methods:{async daemonGetInfo(){const t=await T.Z.getInfo();this.getInfoResponse.status=t.data.status,"number"===typeof t.data.data.blocks?(t.data.data.blocks>this.getInfoResponse.data.blocks||!this.getInfoResponse.data.blocks)&&(this.getInfoResponse.data=t.data.data,this.lastBlock=this.getInfoResponse.data.blocks,this.getBlocks(this.getInfoResponse.data.blocks)):(this.errorMessage="Unable to communicate with Flux Daemon",this.showToast("danger",this.errorMessage))},async getSyncedHeight(){const t=await Z.Z.getScannedHeight();"success"===t.data.status?this.scannedHeight=t.data.data.generalScannedHeight:this.scannedHeight="ERROR"},async getBlocks(t,e){const s=1,a=t-(e?1:20),n=[];for(let i=a;i<=t;i+=1)n.push(i);const r=[];this.blocks.forEach((t=>{r.push(t.hash)})),await Promise.all(n.map((async t=>{const a=await T.Z.getBlock(t,s);"success"===a.data.status&&(r.includes(a.data.data.hash)||(this.blocks.push(a.data.data),e&&e===a.data.data.height&&(this.selectedBlock=a.data.data),a.data.data.height0){const t=[];s.vin.forEach((e=>{e.coinbase||t.push(e)}));for(const s of t){const t=await this.getSenderForBlockOrAddress(s.txid,s.vout);this.addressWithTransactions[e].fetchedTransactions[a].senders.push(t),this.uniqueKeyAddress+=1}this.uniqueKeyAddress+=1}}a+=1,this.uniqueKeyAddress+=1}},async getTransaction(t){this.transactionDetail={},this.txView=!0,this.explorerView=!1;const e=1,s=await T.Z.getRawTransaction(t,e);if(console.log(s),"success"===s.data.status)if(s.data.data.version<5&&s.data.data.version>0){const t=s.data.data;t.senders=[],this.transactionDetail=t;const e=[];s.data.data.vin.forEach((t=>{t.coinbase||e.push(t)}));const a=[];for(const n of e){const t=await this.getSender(n.txid,n.vout);a.push(t);const e=s.data.data;e.senders=a,this.transactionDetail=e,this.uniqueKey+=1}}else this.transactionDetail=s.data.data,this.uniqueKey+=1;else this.showToast("warning","Transaction not found"),this.txView=!1,this.explorerView=!0;console.log(this.transactionDetail)},async getSender(t,e){const s=1,a=await T.Z.getRawTransaction(t,s);if(console.log(a),"success"===a.data.status){const t=a.data.data.vout[e];return t}return"Sender not found"},async getSenderForBlockOrAddress(t,e){const s=1,a=await T.Z.getRawTransaction(t,s);if(console.log(a),"success"===a.data.status){const t=a.data.data.vout[e];return t}return"Sender not found"},formatTimeAgo(t){const e={month:2592e6,week:6048e5,day:864e5,hour:36e5,minute:6e4},s=Date.now()-1e3*t;return s>e.month?`${Math.floor(s/e.month)} months ago`:s>e.week?`${Math.floor(s/e.week)} weeks ago`:s>e.day?`${Math.floor(s/e.day)} days ago`:s>e.hour?`${Math.floor(s/e.hour)} hours ago`:s>e.minute?`${Math.floor(s/e.minute)} minutes ago`:"Just now"},selectBlock(t){console.log(t),this.selectedBlock=t,this.explorerView=!1,this.blockView=!0,this.txView=!1,this.addressView=!1,this.selectedBlock.transactions=[],this.getBlockTransactions(this.selectedBlock)},async getBlockTransactions(t){let e=0;for(const s of t.tx){const a=await T.Z.getRawTransaction(s,1);if("success"===a.data.status){const s=a.data.data;if(s.senders=[],t.transactions.push(s),s.version<5&&s.version>0){const a=[];s.vin.forEach((t=>{t.coinbase||a.push(t)}));for(const s of a){const a=await this.getSenderForBlockOrAddress(s.txid,s.vout);t.transactions[e].senders.push(a)}}}e+=1}console.log(t)},selectPreviousBlock(){const t=this.selectedBlock.height-1;for(let e=0;e{s.r(e),s.d(e,{default:()=>r});const a={year:"numeric",month:"short",day:"numeric",hour:"2-digit",minute:"2-digit"},n={year:"numeric",month:"short",day:"numeric"},r={shortDate:a,date:n}},27616:(t,e,s)=>{s.d(e,{Z:()=>n});var a=s(80914);const n={help(){return(0,a.Z)().get("/daemon/help")},helpSpecific(t){return(0,a.Z)().get(`/daemon/help/${t}`)},getInfo(){return(0,a.Z)().get("/daemon/getinfo")},getFluxNodeStatus(){return(0,a.Z)().get("/daemon/getzelnodestatus")},getRawTransaction(t,e){return(0,a.Z)().get(`/daemon/getrawtransaction/${t}/${e}`)},listFluxNodes(){return(0,a.Z)().get("/daemon/listzelnodes")},viewDeterministicFluxNodeList(){return(0,a.Z)().get("/daemon/viewdeterministiczelnodelist")},getFluxNodeCount(){return(0,a.Z)().get("/daemon/getzelnodecount")},getStartList(){return(0,a.Z)().get("/daemon/getstartlist")},getDOSList(){return(0,a.Z)().get("/daemon/getdoslist")},fluxCurrentWinner(){return(0,a.Z)().get("/daemon/fluxcurrentwinner")},getBenchmarks(){return(0,a.Z)().get("/daemon/getbenchmarks")},getBenchStatus(){return(0,a.Z)().get("/daemon/getbenchstatus")},startBenchmark(t){return(0,a.Z)().get("/daemon/startbenchmark",{headers:{zelidauth:t}})},stopBenchmark(t){return(0,a.Z)().get("/daemon/stopbenchmark",{headers:{zelidauth:t}})},getBlockCount(){return(0,a.Z)().get("/daemon/getBlockCount")},getBlockchainInfo(){return(0,a.Z)().get("/daemon/getblockchaininfo")},getMiningInfo(){return(0,a.Z)().get("/daemon/getmininginfo")},getNetworkInfo(){return(0,a.Z)().get("/daemon/getnetworkinfo")},validateAddress(t,e){return(0,a.Z)().get(`/daemon/validateaddress/${e}`,{headers:{zelidauth:t}})},getWalletInfo(t){return(0,a.Z)().get("/daemon/getwalletinfo",{headers:{zelidauth:t}})},listFluxNodeConf(t){return(0,a.Z)().get("/daemon/listzelnodeconf",{headers:{zelidauth:t}})},start(t){return(0,a.Z)().get("/daemon/start",{headers:{zelidauth:t}})},restart(t){return(0,a.Z)().get("/daemon/restart",{headers:{zelidauth:t}})},stopDaemon(t){return(0,a.Z)().get("/daemon/stop",{headers:{zelidauth:t}})},rescanDaemon(t,e){return(0,a.Z)().get(`/daemon/rescanblockchain/${e}`,{headers:{zelidauth:t}})},getBlock(t,e){return(0,a.Z)().get(`/daemon/getblock/${t}/${e}`)},tailDaemonDebug(t){return(0,a.Z)().get("/flux/taildaemondebug",{headers:{zelidauth:t}})},justAPI(){return(0,a.Z)()},cancelToken(){return a.S}}},20702:(t,e,s)=>{s.d(e,{Z:()=>n});var a=s(80914);const n={getAddressBalance(t){return(0,a.Z)().get(`/explorer/balance/${t}`)},getAddressTransactions(t){return(0,a.Z)().get(`/explorer/transactions/${t}`)},getScannedHeight(){return(0,a.Z)().get("/explorer/scannedheight")},reindexExplorer(t){return(0,a.Z)().get("/explorer/reindex/false",{headers:{zelidauth:t}})},reindexFlux(t){return(0,a.Z)().get("/explorer/reindex/true",{headers:{zelidauth:t}})},rescanExplorer(t,e){return(0,a.Z)().get(`/explorer/rescan/${e}/false`,{headers:{zelidauth:t}})},rescanFlux(t,e){return(0,a.Z)().get(`/explorer/rescan/${e}/true`,{headers:{zelidauth:t}})},restartBlockProcessing(t){return(0,a.Z)().get("/explorer/restart",{headers:{zelidauth:t}})},stopBlockProcessing(t){return(0,a.Z)().get("/explorer/stop",{headers:{zelidauth:t}})}}},57632:(t,e,s)=>{s.d(e,{Z:()=>u});const a="undefined"!==typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),n={randomUUID:a};let r;const i=new Uint8Array(16);function o(){if(!r&&(r="undefined"!==typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!r))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return r(i)}const l=[];for(let h=0;h<256;++h)l.push((h+256).toString(16).slice(1));function c(t,e=0){return l[t[e+0]]+l[t[e+1]]+l[t[e+2]]+l[t[e+3]]+"-"+l[t[e+4]]+l[t[e+5]]+"-"+l[t[e+6]]+l[t[e+7]]+"-"+l[t[e+8]]+l[t[e+9]]+"-"+l[t[e+10]]+l[t[e+11]]+l[t[e+12]]+l[t[e+13]]+l[t[e+14]]+l[t[e+15]]}function d(t,e,s){if(n.randomUUID&&!e&&!t)return n.randomUUID();t=t||{};const a=t.random||(t.rng||o)();if(a[6]=15&a[6]|64,a[8]=63&a[8]|128,e){s=s||0;for(let t=0;t<16;++t)e[s+t]=a[t];return e}return c(a)}const u=d}}]); \ No newline at end of file diff --git a/HomeUI/dist/js/2743.js b/HomeUI/dist/js/2743.js index bb475c46c..40b762a81 100644 --- a/HomeUI/dist/js/2743.js +++ b/HomeUI/dist/js/2743.js @@ -1 +1 @@ -"use strict";(globalThis["webpackChunkflux"]=globalThis["webpackChunkflux"]||[]).push([[2743],{34547:(t,e,r)=>{r.d(e,{Z:()=>u});var n=function(){var t=this,e=t._self._c;return e("div",{staticClass:"toastification"},[e("div",{staticClass:"d-flex align-items-start"},[e("b-avatar",{staticClass:"mr-75 flex-shrink-0",attrs:{variant:t.variant,size:"1.8rem"}},[e("feather-icon",{attrs:{icon:t.icon,size:"15"}})],1),e("div",{staticClass:"d-flex flex-grow-1"},[e("div",[t.title?e("h5",{staticClass:"mb-0 font-weight-bolder toastification-title",class:`text-${t.variant}`,domProps:{textContent:t._s(t.title)}}):t._e(),t.text?e("small",{staticClass:"d-inline-block text-body",domProps:{textContent:t._s(t.text)}}):t._e()]),e("span",{staticClass:"cursor-pointer toastification-close-icon ml-auto",on:{click:function(e){return t.$emit("close-toast")}}},[t.hideClose?t._e():e("feather-icon",{staticClass:"text-body",attrs:{icon:"XIcon"}})],1)])],1)])},a=[],o=r(47389);const s={components:{BAvatar:o.SH},props:{variant:{type:String,default:"primary"},icon:{type:String,default:null},title:{type:String,default:null},text:{type:String,default:null},hideClose:{type:Boolean,default:!1}}},i=s;var l=r(1001),c=(0,l.Z)(i,n,a,!1,null,"22d964ca",null);const u=c.exports},51748:(t,e,r)=>{r.d(e,{Z:()=>u});var n=function(){var t=this,e=t._self._c;return e("dl",{staticClass:"row",class:t.classes},[e("dt",{staticClass:"col-sm-3"},[t._v(" "+t._s(t.title)+" ")]),t.href.length>0?e("dd",{staticClass:"col-sm-9 mb-0",class:`text-${t.variant}`},[t.href.length>0?e("b-link",{attrs:{href:t.href,target:"_blank",rel:"noopener noreferrer"}},[t._v(" "+t._s(t.data.length>0?t.data:t.number!==Number.MAX_VALUE?t.number:"")+" ")]):t._e()],1):t.click?e("dd",{staticClass:"col-sm-9 mb-0",class:`text-${t.variant}`,on:{click:function(e){return t.$emit("click")}}},[e("b-link",[t._v(" "+t._s(t.data.length>0?t.data:t.number!==Number.MAX_VALUE?t.number:"")+" ")])],1):e("dd",{staticClass:"col-sm-9 mb-0",class:`text-${t.variant}`},[t._v(" "+t._s(t.data.length>0?t.data:t.number!==Number.MAX_VALUE?t.number:"")+" ")])])},a=[],o=r(67347);const s={components:{BLink:o.we},props:{title:{type:String,required:!0},classes:{type:String,required:!1,default:"mb-1"},data:{type:String,required:!1,default:""},number:{type:Number,required:!1,default:Number.MAX_VALUE},variant:{type:String,required:!1,default:"secondary"},href:{type:String,required:!1,default:""},click:{type:Boolean,required:!1,default:!1}}},i=s;var l=r(1001),c=(0,l.Z)(i,n,a,!1,null,null,null);const u=c.exports},32743:(t,e,r)=>{r.r(e),r.d(e,{default:()=>Z});var n=function(){var t=this,e=t._self._c;return e("b-card",[e("b-row",[e("b-col",{staticClass:"my-1",attrs:{md:"4",sm:"4"}},[e("b-form-group",{staticClass:"mb-0"},[e("label",{staticClass:"d-inline-block text-left mr-50"},[t._v("Per page")]),e("b-form-select",{staticClass:"w-50",attrs:{id:"perPageSelect",size:"sm",options:t.pageOptions},model:{value:t.perPage,callback:function(e){t.perPage=e},expression:"perPage"}})],1)],1),e("b-col",{staticClass:"my-1",attrs:{md:"8"}},[e("b-form-group",{staticClass:"mb-0",attrs:{label:"Filter","label-cols-sm":"1","label-align-sm":"right","label-for":"filterInput"}},[e("b-input-group",{attrs:{size:"sm"}},[e("b-form-input",{attrs:{id:"filterInput",type:"search",placeholder:"Type to Search"},model:{value:t.filter,callback:function(e){t.filter=e},expression:"filter"}}),e("b-input-group-append",[e("b-button",{attrs:{disabled:!t.filter},on:{click:function(e){t.filter=""}}},[t._v(" Clear ")])],1)],1)],1)],1),e("b-col",{attrs:{cols:"12"}},[e("b-table",{staticClass:"fluxnode-table",attrs:{striped:"",hover:"",responsive:"","per-page":t.perPage,"current-page":t.currentPage,items:t.items,fields:t.fields,"sort-by":t.sortBy,"sort-desc":t.sortDesc,"sort-direction":t.sortDirection,filter:t.filter,"filter-included-fields":t.filterOn,"show-empty":"","empty-text":"No FluxNodes in Start state"},on:{"update:sortBy":function(e){t.sortBy=e},"update:sort-by":function(e){t.sortBy=e},"update:sortDesc":function(e){t.sortDesc=e},"update:sort-desc":function(e){t.sortDesc=e},filtered:t.onFiltered},scopedSlots:t._u([{key:"cell(show_details)",fn:function(r){return[e("a",{on:{click:r.toggleDetails}},[r.detailsShowing?t._e():e("v-icon",{attrs:{name:"chevron-down"}}),r.detailsShowing?e("v-icon",{attrs:{name:"chevron-up"}}):t._e()],1)]}},{key:"row-details",fn:function(r){return[e("b-card",{staticClass:"mx-2"},[r.item.collateral?e("list-entry",{attrs:{title:"Collateral",data:r.item.collateral}}):t._e()],1)]}}])})],1),e("b-col",{attrs:{cols:"12"}},[e("b-pagination",{staticClass:"my-0",attrs:{"total-rows":t.totalRows,"per-page":t.perPage,align:"center",size:"sm"},model:{value:t.currentPage,callback:function(e){t.currentPage=e},expression:"currentPage"}}),e("span",{staticClass:"table-total"},[t._v("Total: "+t._s(t.totalRows))])],1)],1)],1)},a=[],o=(r(70560),r(86855)),s=r(16521),i=r(26253),l=r(50725),c=r(10962),u=r(46709),d=r(8051),f=r(4060),p=r(22183),g=r(22418),m=r(15193),h=r(34547),b=r(51748),v=r(27616);const y=r(63005),x={components:{BCard:o._,BTable:s.h,BRow:i.T,BCol:l.l,BPagination:c.c,BFormGroup:u.x,BFormSelect:d.K,BInputGroup:f.w,BFormInput:p.e,BInputGroupAppend:g.B,BButton:m.T,ListEntry:b.Z,ToastificationContent:h.Z},data(){return{timeoptions:y,callResponse:{status:"",data:""},perPage:10,pageOptions:[10,25,50,100],sortBy:"",sortDesc:!1,sortDirection:"asc",items:[],filter:"",filterOn:[],fields:[{key:"show_details",label:""},{key:"payment_address",label:"Address",sortable:!0},{key:"added_height",label:"Added Height",sortable:!0},{key:"expires_in",label:"Expires In Blocks",sortable:!0}],totalRows:1,currentPage:1}},computed:{sortOptions(){return this.fields.filter((t=>t.sortable)).map((t=>({text:t.label,value:t.key})))}},mounted(){this.daemonGetStartList()},methods:{async daemonGetStartList(){const t=await v.Z.getStartList();if("error"===t.data.status)this.$toast({component:h.Z,props:{title:t.data.data.message||t.data.data,icon:"InfoIcon",variant:"danger"}});else{const e=this;t.data.data.forEach((t=>{e.items.push(t)})),this.totalRows=this.items.length,this.currentPage=1}},onFiltered(t){this.totalRows=t.length,this.currentPage=1}}},w=x;var k=r(1001),C=(0,k.Z)(w,n,a,!1,null,null,null);const Z=C.exports},63005:(t,e,r)=>{r.r(e),r.d(e,{default:()=>o});const n={year:"numeric",month:"short",day:"numeric",hour:"2-digit",minute:"2-digit"},a={year:"numeric",month:"short",day:"numeric"},o={shortDate:n,date:a}},27616:(t,e,r)=>{r.d(e,{Z:()=>a});var n=r(80914);const a={help(){return(0,n.Z)().get("/daemon/help")},helpSpecific(t){return(0,n.Z)().get(`/daemon/help/${t}`)},getInfo(){return(0,n.Z)().get("/daemon/getinfo")},getFluxNodeStatus(){return(0,n.Z)().get("/daemon/getzelnodestatus")},getRawTransaction(t,e){return(0,n.Z)().get(`/daemon/getrawtransaction/${t}/${e}`)},listFluxNodes(){return(0,n.Z)().get("/daemon/listzelnodes")},viewDeterministicFluxNodeList(){return(0,n.Z)().get("/daemon/viewdeterministiczelnodelist")},getFluxNodeCount(){return(0,n.Z)().get("/daemon/getzelnodecount")},getStartList(){return(0,n.Z)().get("/daemon/getstartlist")},getDOSList(){return(0,n.Z)().get("/daemon/getdoslist")},fluxCurrentWinner(){return(0,n.Z)().get("/daemon/fluxcurrentwinner")},getBenchmarks(){return(0,n.Z)().get("/daemon/getbenchmarks")},getBenchStatus(){return(0,n.Z)().get("/daemon/getbenchstatus")},startBenchmark(t){return(0,n.Z)().get("/daemon/startbenchmark",{headers:{zelidauth:t}})},stopBenchmark(t){return(0,n.Z)().get("/daemon/stopbenchmark",{headers:{zelidauth:t}})},getBlockCount(){return(0,n.Z)().get("/daemon/getBlockCount")},getBlockchainInfo(){return(0,n.Z)().get("/daemon/getblockchaininfo")},getMiningInfo(){return(0,n.Z)().get("/daemon/getmininginfo")},getNetworkInfo(){return(0,n.Z)().get("/daemon/getnetworkinfo")},validateAddress(t,e){return(0,n.Z)().get(`/daemon/validateaddress/${e}`,{headers:{zelidauth:t}})},getWalletInfo(t){return(0,n.Z)().get("/daemon/getwalletinfo",{headers:{zelidauth:t}})},listFluxNodeConf(t){return(0,n.Z)().get("/daemon/listzelnodeconf",{headers:{zelidauth:t}})},start(t){return(0,n.Z)().get("/daemon/start",{headers:{zelidauth:t}})},restart(t){return(0,n.Z)().get("/daemon/restart",{headers:{zelidauth:t}})},stopDaemon(t){return(0,n.Z)().get("/daemon/stop",{headers:{zelidauth:t}})},rescanDaemon(t,e){return(0,n.Z)().get(`/daemon/rescanblockchain/${e}`,{headers:{zelidauth:t}})},getBlock(t,e){return(0,n.Z)().get(`/daemon/getblock/${t}/${e}`)},tailDaemonDebug(t){return(0,n.Z)().get("/flux/taildaemondebug",{headers:{zelidauth:t}})},justAPI(){return(0,n.Z)()},cancelToken(){return n.S}}},84328:(t,e,r)=>{var n=r(65290),a=r(27578),o=r(6310),s=function(t){return function(e,r,s){var i,l=n(e),c=o(l),u=a(s,c);if(t&&r!==r){while(c>u)if(i=l[u++],i!==i)return!0}else for(;c>u;u++)if((t||u in l)&&l[u]===r)return t||u||0;return!t&&-1}};t.exports={includes:s(!0),indexOf:s(!1)}},5649:(t,e,r)=>{var n=r(67697),a=r(92297),o=TypeError,s=Object.getOwnPropertyDescriptor,i=n&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(t){return t instanceof TypeError}}();t.exports=i?function(t,e){if(a(t)&&!s(t,"length").writable)throw new o("Cannot set read only .length");return t.length=e}:function(t,e){return t.length=e}},8758:(t,e,r)=>{var n=r(36812),a=r(19152),o=r(82474),s=r(72560);t.exports=function(t,e,r){for(var i=a(e),l=s.f,c=o.f,u=0;u{var e=TypeError,r=9007199254740991;t.exports=function(t){if(t>r)throw e("Maximum allowed index exceeded");return t}},72739:t=>{t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},79989:(t,e,r)=>{var n=r(19037),a=r(82474).f,o=r(75773),s=r(11880),i=r(95014),l=r(8758),c=r(35266);t.exports=function(t,e){var r,u,d,f,p,g,m=t.target,h=t.global,b=t.stat;if(u=h?n:b?n[m]||i(m,{}):(n[m]||{}).prototype,u)for(d in e){if(p=e[d],t.dontCallGetSet?(g=a(u,d),f=g&&g.value):f=u[d],r=c(h?d:m+(b?".":"#")+d,t.forced),!r&&void 0!==f){if(typeof p==typeof f)continue;l(p,f)}(t.sham||f&&f.sham)&&o(p,"sham",!0),s(u,d,p,t)}}},94413:(t,e,r)=>{var n=r(68844),a=r(3689),o=r(6648),s=Object,i=n("".split);t.exports=a((function(){return!s("z").propertyIsEnumerable(0)}))?function(t){return"String"===o(t)?i(t,""):s(t)}:s},92297:(t,e,r)=>{var n=r(6648);t.exports=Array.isArray||function(t){return"Array"===n(t)}},35266:(t,e,r)=>{var n=r(3689),a=r(69985),o=/#|\.prototype\./,s=function(t,e){var r=l[i(t)];return r===u||r!==c&&(a(e)?n(e):!!e)},i=s.normalize=function(t){return String(t).replace(o,".").toLowerCase()},l=s.data={},c=s.NATIVE="N",u=s.POLYFILL="P";t.exports=s},6310:(t,e,r)=>{var n=r(43126);t.exports=function(t){return n(t.length)}},58828:t=>{var e=Math.ceil,r=Math.floor;t.exports=Math.trunc||function(t){var n=+t;return(n>0?r:e)(n)}},82474:(t,e,r)=>{var n=r(67697),a=r(22615),o=r(49556),s=r(75684),i=r(65290),l=r(18360),c=r(36812),u=r(68506),d=Object.getOwnPropertyDescriptor;e.f=n?d:function(t,e){if(t=i(t),e=l(e),u)try{return d(t,e)}catch(r){}if(c(t,e))return s(!a(o.f,t,e),t[e])}},72741:(t,e,r)=>{var n=r(54948),a=r(72739),o=a.concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return n(t,o)}},7518:(t,e)=>{e.f=Object.getOwnPropertySymbols},54948:(t,e,r)=>{var n=r(68844),a=r(36812),o=r(65290),s=r(84328).indexOf,i=r(57248),l=n([].push);t.exports=function(t,e){var r,n=o(t),c=0,u=[];for(r in n)!a(i,r)&&a(n,r)&&l(u,r);while(e.length>c)a(n,r=e[c++])&&(~s(u,r)||l(u,r));return u}},49556:(t,e)=>{var r={}.propertyIsEnumerable,n=Object.getOwnPropertyDescriptor,a=n&&!r.call({1:2},1);e.f=a?function(t){var e=n(this,t);return!!e&&e.enumerable}:r},19152:(t,e,r)=>{var n=r(76058),a=r(68844),o=r(72741),s=r(7518),i=r(85027),l=a([].concat);t.exports=n("Reflect","ownKeys")||function(t){var e=o.f(i(t)),r=s.f;return r?l(e,r(t)):e}},27578:(t,e,r)=>{var n=r(68700),a=Math.max,o=Math.min;t.exports=function(t,e){var r=n(t);return r<0?a(r+e,0):o(r,e)}},65290:(t,e,r)=>{var n=r(94413),a=r(74684);t.exports=function(t){return n(a(t))}},68700:(t,e,r)=>{var n=r(58828);t.exports=function(t){var e=+t;return e!==e||0===e?0:n(e)}},43126:(t,e,r)=>{var n=r(68700),a=Math.min;t.exports=function(t){return t>0?a(n(t),9007199254740991):0}},70560:(t,e,r)=>{var n=r(79989),a=r(90690),o=r(6310),s=r(5649),i=r(55565),l=r(3689),c=l((function(){return 4294967297!==[].push.call({length:4294967296},1)})),u=function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(t){return t instanceof TypeError}},d=c||!u();n({target:"Array",proto:!0,arity:1,forced:d},{push:function(t){var e=a(this),r=o(e),n=arguments.length;i(r+n);for(var l=0;l{a.d(e,{Z:()=>c});var r=function(){var t=this,e=t._self._c;return e("div",{staticClass:"toastification"},[e("div",{staticClass:"d-flex align-items-start"},[e("b-avatar",{staticClass:"mr-75 flex-shrink-0",attrs:{variant:t.variant,size:"1.8rem"}},[e("feather-icon",{attrs:{icon:t.icon,size:"15"}})],1),e("div",{staticClass:"d-flex flex-grow-1"},[e("div",[t.title?e("h5",{staticClass:"mb-0 font-weight-bolder toastification-title",class:`text-${t.variant}`,domProps:{textContent:t._s(t.title)}}):t._e(),t.text?e("small",{staticClass:"d-inline-block text-body",domProps:{textContent:t._s(t.text)}}):t._e()]),e("span",{staticClass:"cursor-pointer toastification-close-icon ml-auto",on:{click:function(e){return t.$emit("close-toast")}}},[t.hideClose?t._e():e("feather-icon",{staticClass:"text-body",attrs:{icon:"XIcon"}})],1)])],1)])},s=[],n=a(47389);const o={components:{BAvatar:n.SH},props:{variant:{type:String,default:"primary"},icon:{type:String,default:null},title:{type:String,default:null},text:{type:String,default:null},hideClose:{type:Boolean,default:!1}}},l=o;var i=a(1001),d=(0,i.Z)(l,r,s,!1,null,"22d964ca",null);const c=d.exports},51748:(t,e,a)=>{a.d(e,{Z:()=>c});var r=function(){var t=this,e=t._self._c;return e("dl",{staticClass:"row",class:t.classes},[e("dt",{staticClass:"col-sm-3"},[t._v(" "+t._s(t.title)+" ")]),t.href.length>0?e("dd",{staticClass:"col-sm-9 mb-0",class:`text-${t.variant}`},[t.href.length>0?e("b-link",{attrs:{href:t.href,target:"_blank",rel:"noopener noreferrer"}},[t._v(" "+t._s(t.data.length>0?t.data:t.number!==Number.MAX_VALUE?t.number:"")+" ")]):t._e()],1):t.click?e("dd",{staticClass:"col-sm-9 mb-0",class:`text-${t.variant}`,on:{click:function(e){return t.$emit("click")}}},[e("b-link",[t._v(" "+t._s(t.data.length>0?t.data:t.number!==Number.MAX_VALUE?t.number:"")+" ")])],1):e("dd",{staticClass:"col-sm-9 mb-0",class:`text-${t.variant}`},[t._v(" "+t._s(t.data.length>0?t.data:t.number!==Number.MAX_VALUE?t.number:"")+" ")])])},s=[],n=a(67347);const o={components:{BLink:n.we},props:{title:{type:String,required:!0},classes:{type:String,required:!1,default:"mb-1"},data:{type:String,required:!1,default:""},number:{type:Number,required:!1,default:Number.MAX_VALUE},variant:{type:String,required:!1,default:"secondary"},href:{type:String,required:!1,default:""},click:{type:Boolean,required:!1,default:!1}}},l=o;var i=a(1001),d=(0,i.Z)(l,r,s,!1,null,null,null);const c=d.exports},32743:(t,e,a)=>{a.r(e),a.d(e,{default:()=>_});var r=function(){var t=this,e=t._self._c;return e("b-card",[e("b-row",[e("b-col",{staticClass:"my-1",attrs:{md:"4",sm:"4"}},[e("b-form-group",{staticClass:"mb-0"},[e("label",{staticClass:"d-inline-block text-left mr-50"},[t._v("Per page")]),e("b-form-select",{staticClass:"w-50",attrs:{id:"perPageSelect",size:"sm",options:t.pageOptions},model:{value:t.perPage,callback:function(e){t.perPage=e},expression:"perPage"}})],1)],1),e("b-col",{staticClass:"my-1",attrs:{md:"8"}},[e("b-form-group",{staticClass:"mb-0",attrs:{label:"Filter","label-cols-sm":"1","label-align-sm":"right","label-for":"filterInput"}},[e("b-input-group",{attrs:{size:"sm"}},[e("b-form-input",{attrs:{id:"filterInput",type:"search",placeholder:"Type to Search"},model:{value:t.filter,callback:function(e){t.filter=e},expression:"filter"}}),e("b-input-group-append",[e("b-button",{attrs:{disabled:!t.filter},on:{click:function(e){t.filter=""}}},[t._v(" Clear ")])],1)],1)],1)],1),e("b-col",{attrs:{cols:"12"}},[e("b-table",{staticClass:"fluxnode-table",attrs:{striped:"",hover:"",responsive:"","per-page":t.perPage,"current-page":t.currentPage,items:t.items,fields:t.fields,"sort-by":t.sortBy,"sort-desc":t.sortDesc,"sort-direction":t.sortDirection,filter:t.filter,"filter-included-fields":t.filterOn,"show-empty":"","empty-text":"No FluxNodes in Start state"},on:{"update:sortBy":function(e){t.sortBy=e},"update:sort-by":function(e){t.sortBy=e},"update:sortDesc":function(e){t.sortDesc=e},"update:sort-desc":function(e){t.sortDesc=e},filtered:t.onFiltered},scopedSlots:t._u([{key:"cell(show_details)",fn:function(a){return[e("a",{on:{click:a.toggleDetails}},[a.detailsShowing?t._e():e("v-icon",{attrs:{name:"chevron-down"}}),a.detailsShowing?e("v-icon",{attrs:{name:"chevron-up"}}):t._e()],1)]}},{key:"row-details",fn:function(a){return[e("b-card",{staticClass:"mx-2"},[a.item.collateral?e("list-entry",{attrs:{title:"Collateral",data:a.item.collateral}}):t._e()],1)]}}])})],1),e("b-col",{attrs:{cols:"12"}},[e("b-pagination",{staticClass:"my-0",attrs:{"total-rows":t.totalRows,"per-page":t.perPage,align:"center",size:"sm"},model:{value:t.currentPage,callback:function(e){t.currentPage=e},expression:"currentPage"}}),e("span",{staticClass:"table-total"},[t._v("Total: "+t._s(t.totalRows))])],1)],1)],1)},s=[],n=(a(70560),a(86855)),o=a(16521),l=a(26253),i=a(50725),d=a(10962),c=a(46709),u=a(8051),m=a(4060),g=a(22183),p=a(22418),f=a(15193),h=a(34547),b=a(51748),v=a(27616);const k=a(63005),y={components:{BCard:n._,BTable:o.h,BRow:l.T,BCol:i.l,BPagination:d.c,BFormGroup:c.x,BFormSelect:u.K,BInputGroup:m.w,BFormInput:g.e,BInputGroupAppend:p.B,BButton:f.T,ListEntry:b.Z,ToastificationContent:h.Z},data(){return{timeoptions:k,callResponse:{status:"",data:""},perPage:10,pageOptions:[10,25,50,100],sortBy:"",sortDesc:!1,sortDirection:"asc",items:[],filter:"",filterOn:[],fields:[{key:"show_details",label:""},{key:"payment_address",label:"Address",sortable:!0},{key:"added_height",label:"Added Height",sortable:!0},{key:"expires_in",label:"Expires In Blocks",sortable:!0}],totalRows:1,currentPage:1}},computed:{sortOptions(){return this.fields.filter((t=>t.sortable)).map((t=>({text:t.label,value:t.key})))}},mounted(){this.daemonGetStartList()},methods:{async daemonGetStartList(){const t=await v.Z.getStartList();if("error"===t.data.status)this.$toast({component:h.Z,props:{title:t.data.data.message||t.data.data,icon:"InfoIcon",variant:"danger"}});else{const e=this;t.data.data.forEach((t=>{e.items.push(t)})),this.totalRows=this.items.length,this.currentPage=1}},onFiltered(t){this.totalRows=t.length,this.currentPage=1}}},x=y;var C=a(1001),Z=(0,C.Z)(x,r,s,!1,null,null,null);const _=Z.exports},63005:(t,e,a)=>{a.r(e),a.d(e,{default:()=>n});const r={year:"numeric",month:"short",day:"numeric",hour:"2-digit",minute:"2-digit"},s={year:"numeric",month:"short",day:"numeric"},n={shortDate:r,date:s}},27616:(t,e,a)=>{a.d(e,{Z:()=>s});var r=a(80914);const s={help(){return(0,r.Z)().get("/daemon/help")},helpSpecific(t){return(0,r.Z)().get(`/daemon/help/${t}`)},getInfo(){return(0,r.Z)().get("/daemon/getinfo")},getFluxNodeStatus(){return(0,r.Z)().get("/daemon/getzelnodestatus")},getRawTransaction(t,e){return(0,r.Z)().get(`/daemon/getrawtransaction/${t}/${e}`)},listFluxNodes(){return(0,r.Z)().get("/daemon/listzelnodes")},viewDeterministicFluxNodeList(){return(0,r.Z)().get("/daemon/viewdeterministiczelnodelist")},getFluxNodeCount(){return(0,r.Z)().get("/daemon/getzelnodecount")},getStartList(){return(0,r.Z)().get("/daemon/getstartlist")},getDOSList(){return(0,r.Z)().get("/daemon/getdoslist")},fluxCurrentWinner(){return(0,r.Z)().get("/daemon/fluxcurrentwinner")},getBenchmarks(){return(0,r.Z)().get("/daemon/getbenchmarks")},getBenchStatus(){return(0,r.Z)().get("/daemon/getbenchstatus")},startBenchmark(t){return(0,r.Z)().get("/daemon/startbenchmark",{headers:{zelidauth:t}})},stopBenchmark(t){return(0,r.Z)().get("/daemon/stopbenchmark",{headers:{zelidauth:t}})},getBlockCount(){return(0,r.Z)().get("/daemon/getBlockCount")},getBlockchainInfo(){return(0,r.Z)().get("/daemon/getblockchaininfo")},getMiningInfo(){return(0,r.Z)().get("/daemon/getmininginfo")},getNetworkInfo(){return(0,r.Z)().get("/daemon/getnetworkinfo")},validateAddress(t,e){return(0,r.Z)().get(`/daemon/validateaddress/${e}`,{headers:{zelidauth:t}})},getWalletInfo(t){return(0,r.Z)().get("/daemon/getwalletinfo",{headers:{zelidauth:t}})},listFluxNodeConf(t){return(0,r.Z)().get("/daemon/listzelnodeconf",{headers:{zelidauth:t}})},start(t){return(0,r.Z)().get("/daemon/start",{headers:{zelidauth:t}})},restart(t){return(0,r.Z)().get("/daemon/restart",{headers:{zelidauth:t}})},stopDaemon(t){return(0,r.Z)().get("/daemon/stop",{headers:{zelidauth:t}})},rescanDaemon(t,e){return(0,r.Z)().get(`/daemon/rescanblockchain/${e}`,{headers:{zelidauth:t}})},getBlock(t,e){return(0,r.Z)().get(`/daemon/getblock/${t}/${e}`)},tailDaemonDebug(t){return(0,r.Z)().get("/flux/taildaemondebug",{headers:{zelidauth:t}})},justAPI(){return(0,r.Z)()},cancelToken(){return r.S}}}}]); \ No newline at end of file diff --git a/HomeUI/dist/js/2755.js b/HomeUI/dist/js/2755.js index d033d39f2..678b486da 100644 --- a/HomeUI/dist/js/2755.js +++ b/HomeUI/dist/js/2755.js @@ -1,4 +1,4 @@ -"use strict";(globalThis["webpackChunkflux"]=globalThis["webpackChunkflux"]||[]).push([[2755],{74444:(e,t,n)=>{n.d(t,{BH:()=>y,L:()=>c,LL:()=>O,Pz:()=>_,UG:()=>b,ZB:()=>u,ZR:()=>P,aH:()=>v,b$:()=>k,eu:()=>C,hl:()=>A,jU:()=>T,m9:()=>$,ne:()=>z,pd:()=>j,r3:()=>D,ru:()=>E,tV:()=>l,uI:()=>w,vZ:()=>U,w1:()=>S,xO:()=>x,xb:()=>M,z$:()=>I,zd:()=>V}); +"use strict";(self["webpackChunkflux"]=self["webpackChunkflux"]||[]).push([[2755],{74444:(e,t,n)=>{n.d(t,{BH:()=>y,L:()=>c,LL:()=>O,Pz:()=>_,UG:()=>b,ZB:()=>l,ZR:()=>P,aH:()=>v,b$:()=>k,eu:()=>C,hl:()=>A,jU:()=>T,m9:()=>$,ne:()=>z,pd:()=>j,r3:()=>D,ru:()=>E,tV:()=>u,uI:()=>w,vZ:()=>U,w1:()=>S,xO:()=>x,xb:()=>M,z$:()=>I,zd:()=>V}); /** * @license * Copyright 2017 Google LLC @@ -15,7 +15,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -const i=function(e){const t=[];let n=0;for(let i=0;i>6|192,t[n++]=63&r|128):55296===(64512&r)&&i+1>18|240,t[n++]=r>>12&63|128,t[n++]=r>>6&63|128,t[n++]=63&r|128):(t[n++]=r>>12|224,t[n++]=r>>6&63|128,t[n++]=63&r|128)}return t},r=function(e){const t=[];let n=0,i=0;while(n191&&r<224){const s=e[n++];t[i++]=String.fromCharCode((31&r)<<6|63&s)}else if(r>239&&r<365){const s=e[n++],o=e[n++],a=e[n++],c=((7&r)<<18|(63&s)<<12|(63&o)<<6|63&a)-65536;t[i++]=String.fromCharCode(55296+(c>>10)),t[i++]=String.fromCharCode(56320+(1023&c))}else{const s=e[n++],o=e[n++];t[i++]=String.fromCharCode((15&r)<<12|(63&s)<<6|63&o)}}return t.join("")},s={byteToCharMap_:null,charToByteMap_:null,byteToCharMapWebSafe_:null,charToByteMapWebSafe_:null,ENCODED_VALS_BASE:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",get ENCODED_VALS(){return this.ENCODED_VALS_BASE+"+/="},get ENCODED_VALS_WEBSAFE(){return this.ENCODED_VALS_BASE+"-_."},HAS_NATIVE_SUPPORT:"function"===typeof atob,encodeByteArray(e,t){if(!Array.isArray(e))throw Error("encodeByteArray takes an array as a parameter");this.init_();const n=t?this.byteToCharMapWebSafe_:this.byteToCharMap_,i=[];for(let r=0;r>2,u=(3&t)<<4|o>>4;let d=(15&o)<<2|c>>6,h=63&c;a||(h=64,s||(d=64)),i.push(n[l],n[u],n[d],n[h])}return i.join("")},encodeString(e,t){return this.HAS_NATIVE_SUPPORT&&!t?btoa(e):this.encodeByteArray(i(e),t)},decodeString(e,t){return this.HAS_NATIVE_SUPPORT&&!t?atob(e):r(this.decodeStringToByteArray(e,t))},decodeStringToByteArray(e,t){this.init_();const n=t?this.charToByteMapWebSafe_:this.charToByteMap_,i=[];for(let r=0;r>4;if(i.push(h),64!==l){const e=a<<4&240|l>>2;if(i.push(e),64!==d){const e=l<<6&192|d;i.push(e)}}}return i},init_(){if(!this.byteToCharMap_){this.byteToCharMap_={},this.charToByteMap_={},this.byteToCharMapWebSafe_={},this.charToByteMapWebSafe_={};for(let e=0;e=this.ENCODED_VALS_BASE.length&&(this.charToByteMap_[this.ENCODED_VALS_WEBSAFE.charAt(e)]=e,this.charToByteMapWebSafe_[this.ENCODED_VALS.charAt(e)]=e)}}}; +const i=function(e){const t=[];let n=0;for(let i=0;i>6|192,t[n++]=63&r|128):55296===(64512&r)&&i+1>18|240,t[n++]=r>>12&63|128,t[n++]=r>>6&63|128,t[n++]=63&r|128):(t[n++]=r>>12|224,t[n++]=r>>6&63|128,t[n++]=63&r|128)}return t},r=function(e){const t=[];let n=0,i=0;while(n191&&r<224){const s=e[n++];t[i++]=String.fromCharCode((31&r)<<6|63&s)}else if(r>239&&r<365){const s=e[n++],o=e[n++],a=e[n++],c=((7&r)<<18|(63&s)<<12|(63&o)<<6|63&a)-65536;t[i++]=String.fromCharCode(55296+(c>>10)),t[i++]=String.fromCharCode(56320+(1023&c))}else{const s=e[n++],o=e[n++];t[i++]=String.fromCharCode((15&r)<<12|(63&s)<<6|63&o)}}return t.join("")},s={byteToCharMap_:null,charToByteMap_:null,byteToCharMapWebSafe_:null,charToByteMapWebSafe_:null,ENCODED_VALS_BASE:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",get ENCODED_VALS(){return this.ENCODED_VALS_BASE+"+/="},get ENCODED_VALS_WEBSAFE(){return this.ENCODED_VALS_BASE+"-_."},HAS_NATIVE_SUPPORT:"function"===typeof atob,encodeByteArray(e,t){if(!Array.isArray(e))throw Error("encodeByteArray takes an array as a parameter");this.init_();const n=t?this.byteToCharMapWebSafe_:this.byteToCharMap_,i=[];for(let r=0;r>2,l=(3&t)<<4|o>>4;let d=(15&o)<<2|c>>6,h=63&c;a||(h=64,s||(d=64)),i.push(n[u],n[l],n[d],n[h])}return i.join("")},encodeString(e,t){return this.HAS_NATIVE_SUPPORT&&!t?btoa(e):this.encodeByteArray(i(e),t)},decodeString(e,t){return this.HAS_NATIVE_SUPPORT&&!t?atob(e):r(this.decodeStringToByteArray(e,t))},decodeStringToByteArray(e,t){this.init_();const n=t?this.charToByteMapWebSafe_:this.charToByteMap_,i=[];for(let r=0;r>4;if(i.push(h),64!==u){const e=a<<4&240|u>>2;if(i.push(e),64!==d){const e=u<<6&192|d;i.push(e)}}}return i},init_(){if(!this.byteToCharMap_){this.byteToCharMap_={},this.charToByteMap_={},this.byteToCharMapWebSafe_={},this.charToByteMapWebSafe_={};for(let e=0;e=this.ENCODED_VALS_BASE.length&&(this.charToByteMap_[this.ENCODED_VALS_WEBSAFE.charAt(e)]=e,this.charToByteMapWebSafe_[this.ENCODED_VALS.charAt(e)]=e)}}}; /** * @license * Copyright 2017 Google LLC @@ -31,7 +31,7 @@ const i=function(e){const t=[];let n=0;for(let i=0;ih().__FIREBASE_DEFAULTS__,f=()=>{if("undefined"===typeof process)return;const e={NODE_ENV:"production",BASE_URL:"/"}.__FIREBASE_DEFAULTS__;return e?JSON.parse(e):void 0},m=()=>{if("undefined"===typeof document)return;let e;try{e=document.cookie.match(/__FIREBASE_DEFAULTS__=([^;]+)/)}catch(n){return}const t=e&&l(e[1]);return t&&JSON.parse(t)},g=()=>{try{return p()||f()||m()}catch(e){return void console.info(`Unable to get __FIREBASE_DEFAULTS__ due to: ${e}`)}},v=()=>{var e;return null===(e=g())||void 0===e?void 0:e.config},_=e=>{var t;return null===(t=g())||void 0===t?void 0:t[`_${e}`]}; + */const p=()=>h().__FIREBASE_DEFAULTS__,f=()=>{if("undefined"===typeof process)return;const e={NODE_ENV:"production",BASE_URL:"/"}.__FIREBASE_DEFAULTS__;return e?JSON.parse(e):void 0},m=()=>{if("undefined"===typeof document)return;let e;try{e=document.cookie.match(/__FIREBASE_DEFAULTS__=([^;]+)/)}catch(n){return}const t=e&&u(e[1]);return t&&JSON.parse(t)},g=()=>{try{return p()||f()||m()}catch(e){return void console.info(`Unable to get __FIREBASE_DEFAULTS__ due to: ${e}`)}},v=()=>{var e;return null===(e=g())||void 0===e?void 0:e.config},_=e=>{var t;return null===(t=g())||void 0===t?void 0:t[`_${e}`]}; /** * @license * Copyright 2017 Google LLC @@ -245,7 +245,7 @@ function x(e){const t=[];for(const[n,i]of Object.entries(e))Array.isArray(i)?i.f * See the License for the specific language governing permissions and * limitations under the License. */ -function $(e){return e&&e._delegate?e._delegate:e}},34547:(e,t,n)=>{n.d(t,{Z:()=>u});var i=function(){var e=this,t=e._self._c;return t("div",{staticClass:"toastification"},[t("div",{staticClass:"d-flex align-items-start"},[t("b-avatar",{staticClass:"mr-75 flex-shrink-0",attrs:{variant:e.variant,size:"1.8rem"}},[t("feather-icon",{attrs:{icon:e.icon,size:"15"}})],1),t("div",{staticClass:"d-flex flex-grow-1"},[t("div",[e.title?t("h5",{staticClass:"mb-0 font-weight-bolder toastification-title",class:`text-${e.variant}`,domProps:{textContent:e._s(e.title)}}):e._e(),e.text?t("small",{staticClass:"d-inline-block text-body",domProps:{textContent:e._s(e.text)}}):e._e()]),t("span",{staticClass:"cursor-pointer toastification-close-icon ml-auto",on:{click:function(t){return e.$emit("close-toast")}}},[e.hideClose?e._e():t("feather-icon",{staticClass:"text-body",attrs:{icon:"XIcon"}})],1)])],1)])},r=[],s=n(47389);const o={components:{BAvatar:s.SH},props:{variant:{type:String,default:"primary"},icon:{type:String,default:null},title:{type:String,default:null},text:{type:String,default:null},hideClose:{type:Boolean,default:!1}}},a=o;var c=n(1001),l=(0,c.Z)(a,i,r,!1,null,"22d964ca",null);const u=l.exports},5449:(e,t,n)=>{n.d(t,{PR:()=>a,ZP:()=>u,fZ:()=>l,wY:()=>c});var i=n(44866);n(52141);const r={apiKey:"AIzaSyAtMsozWwJhhPIOd9BGkZxk5D6Wr8jVGVM",authDomain:"fluxcore-prod.firebaseapp.com",projectId:"fluxcore-prod",storageBucket:"fluxcore-prod.appspot.com",messagingSenderId:"468366888401",appId:"1:468366888401:web:56eb34ebe93751527ea4f0",measurementId:"G-SEGT3X2737"},s=i.Z.initializeApp(r),o=i.Z.auth();function a(){try{return o.currentUser}catch(e){return null}}async function c(e){try{const{email:t,password:n}=e;return await o.createUserWithEmailAndPassword(t,n)}catch(t){return null}}async function l(e){const{email:t,password:n}=e;try{return await o.signInWithEmailAndPassword(t,n)}catch(i){return null}}const u=s},98180:(e,t,n)=>{n.d(t,{Z:()=>v});var i=n(74444),r=n(8463),s=n(25816),o=n(53333); +function $(e){return e&&e._delegate?e._delegate:e}},34547:(e,t,n)=>{n.d(t,{Z:()=>l});var i=function(){var e=this,t=e._self._c;return t("div",{staticClass:"toastification"},[t("div",{staticClass:"d-flex align-items-start"},[t("b-avatar",{staticClass:"mr-75 flex-shrink-0",attrs:{variant:e.variant,size:"1.8rem"}},[t("feather-icon",{attrs:{icon:e.icon,size:"15"}})],1),t("div",{staticClass:"d-flex flex-grow-1"},[t("div",[e.title?t("h5",{staticClass:"mb-0 font-weight-bolder toastification-title",class:`text-${e.variant}`,domProps:{textContent:e._s(e.title)}}):e._e(),e.text?t("small",{staticClass:"d-inline-block text-body",domProps:{textContent:e._s(e.text)}}):e._e()]),t("span",{staticClass:"cursor-pointer toastification-close-icon ml-auto",on:{click:function(t){return e.$emit("close-toast")}}},[e.hideClose?e._e():t("feather-icon",{staticClass:"text-body",attrs:{icon:"XIcon"}})],1)])],1)])},r=[],s=n(47389);const o={components:{BAvatar:s.SH},props:{variant:{type:String,default:"primary"},icon:{type:String,default:null},title:{type:String,default:null},text:{type:String,default:null},hideClose:{type:Boolean,default:!1}}},a=o;var c=n(1001),u=(0,c.Z)(a,i,r,!1,null,"22d964ca",null);const l=u.exports},5449:(e,t,n)=>{n.d(t,{PR:()=>a,ZP:()=>l,fZ:()=>u,wY:()=>c});var i=n(44866);n(52141);const r={apiKey:"AIzaSyAtMsozWwJhhPIOd9BGkZxk5D6Wr8jVGVM",authDomain:"fluxcore-prod.firebaseapp.com",projectId:"fluxcore-prod",storageBucket:"fluxcore-prod.appspot.com",messagingSenderId:"468366888401",appId:"1:468366888401:web:56eb34ebe93751527ea4f0",measurementId:"G-SEGT3X2737"},s=i.Z.initializeApp(r),o=i.Z.auth();function a(){try{return o.currentUser}catch(e){return null}}async function c(e){try{const{email:t,password:n}=e;return await o.createUserWithEmailAndPassword(t,n)}catch(t){return null}}async function u(e){const{email:t,password:n}=e;try{return await o.signInWithEmailAndPassword(t,n)}catch(i){return null}}const l=s},98180:(e,t,n)=>{n.d(t,{Z:()=>v});var i=n(74444),r=n(8463),s=n(25816),o=n(53333); /** * @license * Copyright 2020 Google LLC @@ -278,7 +278,7 @@ class a{constructor(e,t){this._delegate=e,this.firebase=t,(0,s._addComponent)(e, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */const c={["no-app"]:"No Firebase App '{$appName}' has been created - call Firebase App.initializeApp()",["invalid-app-argument"]:"firebase.{$appName}() takes either no argument or a Firebase App instance."},l=new i.LL("app-compat","Firebase",c); + */const c={["no-app"]:"No Firebase App '{$appName}' has been created - call Firebase App.initializeApp()",["invalid-app-argument"]:"firebase.{$appName}() takes either no argument or a Firebase App instance."},u=new i.LL("app-compat","Firebase",c); /** * @license * Copyright 2019 Google LLC @@ -295,7 +295,7 @@ class a{constructor(e,t){this._delegate=e,this.firebase=t,(0,s._addComponent)(e, * See the License for the specific language governing permissions and * limitations under the License. */ -function u(e){const t={},n={__esModule:!0,initializeApp:a,app:o,registerVersion:s.registerVersion,setLogLevel:s.setLogLevel,onLog:s.onLog,apps:null,SDK_VERSION:s.SDK_VERSION,INTERNAL:{registerComponent:u,removeApp:r,useAsService:d,modularAPIs:s}};function r(e){delete t[e]}function o(e){if(e=e||s._DEFAULT_ENTRY_NAME,!(0,i.r3)(t,e))throw l.create("no-app",{appName:e});return t[e]}function a(r,o={}){const a=s.initializeApp(r,o);if((0,i.r3)(t,a.name))return t[a.name];const c=new e(a,n);return t[a.name]=c,c}function c(){return Object.keys(t).map((e=>t[e]))}function u(t){const r=t.name,a=r.replace("-compat","");if(s._registerComponent(t)&&"PUBLIC"===t.type){const s=(e=o())=>{if("function"!==typeof e[a])throw l.create("invalid-app-argument",{appName:r});return e[a]()};void 0!==t.serviceProps&&(0,i.ZB)(s,t.serviceProps),n[a]=s,e.prototype[a]=function(...e){const n=this._getService.bind(this,r);return n.apply(this,t.multipleInstances?e:[])}}return"PUBLIC"===t.type?n[a]:null}function d(e,t){if("serverAuth"===t)return null;const n=t;return n}return n["default"]=n,Object.defineProperty(n,"apps",{get:c}),o["App"]=e,n} +function l(e){const t={},n={__esModule:!0,initializeApp:a,app:o,registerVersion:s.registerVersion,setLogLevel:s.setLogLevel,onLog:s.onLog,apps:null,SDK_VERSION:s.SDK_VERSION,INTERNAL:{registerComponent:l,removeApp:r,useAsService:d,modularAPIs:s}};function r(e){delete t[e]}function o(e){if(e=e||s._DEFAULT_ENTRY_NAME,!(0,i.r3)(t,e))throw u.create("no-app",{appName:e});return t[e]}function a(r,o={}){const a=s.initializeApp(r,o);if((0,i.r3)(t,a.name))return t[a.name];const c=new e(a,n);return t[a.name]=c,c}function c(){return Object.keys(t).map((e=>t[e]))}function l(t){const r=t.name,a=r.replace("-compat","");if(s._registerComponent(t)&&"PUBLIC"===t.type){const s=(e=o())=>{if("function"!==typeof e[a])throw u.create("invalid-app-argument",{appName:r});return e[a]()};void 0!==t.serviceProps&&(0,i.ZB)(s,t.serviceProps),n[a]=s,e.prototype[a]=function(...e){const n=this._getService.bind(this,r);return n.apply(this,t.multipleInstances?e:[])}}return"PUBLIC"===t.type?n[a]:null}function d(e,t){if("serverAuth"===t)return null;const n=t;return n}return n["default"]=n,Object.defineProperty(n,"apps",{get:c}),o["App"]=e,n} /** * @license * Copyright 2019 Google LLC @@ -311,7 +311,7 @@ function u(e){const t={},n={__esModule:!0,initializeApp:a,app:o,registerVersion: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */function d(){const e=u(a);function t(t){(0,i.ZB)(e,t)}return e.INTERNAL=Object.assign(Object.assign({},e.INTERNAL),{createFirebaseNamespace:d,extendNamespace:t,createSubscribe:i.ne,ErrorFactory:i.LL,deepExtend:i.ZB}),e}const h=d(),p=new o.Yd("@firebase/app-compat"),f="@firebase/app-compat",m="0.2.29"; + */function d(){const e=l(a);function t(t){(0,i.ZB)(e,t)}return e.INTERNAL=Object.assign(Object.assign({},e.INTERNAL),{createFirebaseNamespace:d,extendNamespace:t,createSubscribe:i.ne,ErrorFactory:i.LL,deepExtend:i.ZB}),e}const h=d(),p=new o.Yd("@firebase/app-compat"),f="@firebase/app-compat",m="0.2.29"; /** * @license * Copyright 2019 Google LLC @@ -360,7 +360,7 @@ function g(e){(0,s.registerVersion)(f,m,e)} * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */if((0,i.jU)()&&void 0!==self.firebase){p.warn("\n Warning: Firebase is already defined in the global scope. Please make sure\n Firebase library is only loaded once.\n ");const e=self.firebase.SDK_VERSION;e&&e.indexOf("LITE")>=0&&p.warn("\n Warning: You are trying to load Firebase while using Firebase Performance standalone script.\n You should load Firebase Performance with this instance of Firebase to avoid loading duplicate code.\n ")}const v=h;g()},25816:(e,t,n)=>{n.r(t),n.d(t,{FirebaseError:()=>s.ZR,SDK_VERSION:()=>_e,_DEFAULT_ENTRY_NAME:()=>se,_addComponent:()=>le,_addOrOverwriteComponent:()=>ue,_apps:()=>ae,_clearComponents:()=>fe,_components:()=>ce,_getProvider:()=>he,_registerComponent:()=>de,_removeServiceInstance:()=>pe,deleteApp:()=>be,getApp:()=>Ie,getApps:()=>we,initializeApp:()=>ye,onLog:()=>Ee,registerVersion:()=>Te,setLogLevel:()=>ke});var i=n(8463),r=n(53333),s=n(74444);const o=(e,t)=>t.some((t=>e instanceof t));let a,c;function l(){return a||(a=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])}function u(){return c||(c=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])}const d=new WeakMap,h=new WeakMap,p=new WeakMap,f=new WeakMap,m=new WeakMap;function g(e){const t=new Promise(((t,n)=>{const i=()=>{e.removeEventListener("success",r),e.removeEventListener("error",s)},r=()=>{t(b(e.result)),i()},s=()=>{n(e.error),i()};e.addEventListener("success",r),e.addEventListener("error",s)}));return t.then((t=>{t instanceof IDBCursor&&d.set(t,e)})).catch((()=>{})),m.set(t,e),t}function v(e){if(h.has(e))return;const t=new Promise(((t,n)=>{const i=()=>{e.removeEventListener("complete",r),e.removeEventListener("error",s),e.removeEventListener("abort",s)},r=()=>{t(),i()},s=()=>{n(e.error||new DOMException("AbortError","AbortError")),i()};e.addEventListener("complete",r),e.addEventListener("error",s),e.addEventListener("abort",s)}));h.set(e,t)}let _={get(e,t,n){if(e instanceof IDBTransaction){if("done"===t)return h.get(e);if("objectStoreNames"===t)return e.objectStoreNames||p.get(e);if("store"===t)return n.objectStoreNames[1]?void 0:n.objectStore(n.objectStoreNames[0])}return b(e[t])},set(e,t,n){return e[t]=n,!0},has(e,t){return e instanceof IDBTransaction&&("done"===t||"store"===t)||t in e}};function y(e){_=e(_)}function I(e){return e!==IDBDatabase.prototype.transaction||"objectStoreNames"in IDBTransaction.prototype?u().includes(e)?function(...t){return e.apply(T(this),t),b(d.get(this))}:function(...t){return b(e.apply(T(this),t))}:function(t,...n){const i=e.call(T(this),t,...n);return p.set(i,t.sort?t.sort():[t]),b(i)}}function w(e){return"function"===typeof e?I(e):(e instanceof IDBTransaction&&v(e),o(e,l())?new Proxy(e,_):e)}function b(e){if(e instanceof IDBRequest)return g(e);if(f.has(e))return f.get(e);const t=w(e);return t!==e&&(f.set(e,t),m.set(t,e)),t}const T=e=>m.get(e);function E(e,t,{blocked:n,upgrade:i,blocking:r,terminated:s}={}){const o=indexedDB.open(e,t),a=b(o);return i&&o.addEventListener("upgradeneeded",(e=>{i(b(o.result),e.oldVersion,e.newVersion,b(o.transaction),e)})),n&&o.addEventListener("blocked",(e=>n(e.oldVersion,e.newVersion,e))),a.then((e=>{s&&e.addEventListener("close",(()=>s())),r&&e.addEventListener("versionchange",(e=>r(e.oldVersion,e.newVersion,e)))})).catch((()=>{})),a}const k=["get","getKey","getAll","getAllKeys","count"],S=["put","add","delete","clear"],A=new Map;function C(e,t){if(!(e instanceof IDBDatabase)||t in e||"string"!==typeof t)return;if(A.get(t))return A.get(t);const n=t.replace(/FromIndex$/,""),i=t!==n,r=S.includes(n);if(!(n in(i?IDBIndex:IDBObjectStore).prototype)||!r&&!k.includes(n))return;const s=async function(e,...t){const s=this.transaction(e,r?"readwrite":"readonly");let o=s.store;return i&&(o=o.index(t.shift())),(await Promise.all([o[n](...t),r&&s.done]))[0]};return A.set(t,s),s}y((e=>({...e,get:(t,n,i)=>C(t,n)||e.get(t,n,i),has:(t,n)=>!!C(t,n)||e.has(t,n)}))); + */if((0,i.jU)()&&void 0!==self.firebase){p.warn("\n Warning: Firebase is already defined in the global scope. Please make sure\n Firebase library is only loaded once.\n ");const e=self.firebase.SDK_VERSION;e&&e.indexOf("LITE")>=0&&p.warn("\n Warning: You are trying to load Firebase while using Firebase Performance standalone script.\n You should load Firebase Performance with this instance of Firebase to avoid loading duplicate code.\n ")}const v=h;g()},25816:(e,t,n)=>{n.r(t),n.d(t,{FirebaseError:()=>s.ZR,SDK_VERSION:()=>_e,_DEFAULT_ENTRY_NAME:()=>se,_addComponent:()=>ue,_addOrOverwriteComponent:()=>le,_apps:()=>ae,_clearComponents:()=>fe,_components:()=>ce,_getProvider:()=>he,_registerComponent:()=>de,_removeServiceInstance:()=>pe,deleteApp:()=>be,getApp:()=>Ie,getApps:()=>we,initializeApp:()=>ye,onLog:()=>Ee,registerVersion:()=>Te,setLogLevel:()=>ke});var i=n(8463),r=n(53333),s=n(74444);const o=(e,t)=>t.some((t=>e instanceof t));let a,c;function u(){return a||(a=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])}function l(){return c||(c=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])}const d=new WeakMap,h=new WeakMap,p=new WeakMap,f=new WeakMap,m=new WeakMap;function g(e){const t=new Promise(((t,n)=>{const i=()=>{e.removeEventListener("success",r),e.removeEventListener("error",s)},r=()=>{t(b(e.result)),i()},s=()=>{n(e.error),i()};e.addEventListener("success",r),e.addEventListener("error",s)}));return t.then((t=>{t instanceof IDBCursor&&d.set(t,e)})).catch((()=>{})),m.set(t,e),t}function v(e){if(h.has(e))return;const t=new Promise(((t,n)=>{const i=()=>{e.removeEventListener("complete",r),e.removeEventListener("error",s),e.removeEventListener("abort",s)},r=()=>{t(),i()},s=()=>{n(e.error||new DOMException("AbortError","AbortError")),i()};e.addEventListener("complete",r),e.addEventListener("error",s),e.addEventListener("abort",s)}));h.set(e,t)}let _={get(e,t,n){if(e instanceof IDBTransaction){if("done"===t)return h.get(e);if("objectStoreNames"===t)return e.objectStoreNames||p.get(e);if("store"===t)return n.objectStoreNames[1]?void 0:n.objectStore(n.objectStoreNames[0])}return b(e[t])},set(e,t,n){return e[t]=n,!0},has(e,t){return e instanceof IDBTransaction&&("done"===t||"store"===t)||t in e}};function y(e){_=e(_)}function I(e){return e!==IDBDatabase.prototype.transaction||"objectStoreNames"in IDBTransaction.prototype?l().includes(e)?function(...t){return e.apply(T(this),t),b(d.get(this))}:function(...t){return b(e.apply(T(this),t))}:function(t,...n){const i=e.call(T(this),t,...n);return p.set(i,t.sort?t.sort():[t]),b(i)}}function w(e){return"function"===typeof e?I(e):(e instanceof IDBTransaction&&v(e),o(e,u())?new Proxy(e,_):e)}function b(e){if(e instanceof IDBRequest)return g(e);if(f.has(e))return f.get(e);const t=w(e);return t!==e&&(f.set(e,t),m.set(t,e)),t}const T=e=>m.get(e);function E(e,t,{blocked:n,upgrade:i,blocking:r,terminated:s}={}){const o=indexedDB.open(e,t),a=b(o);return i&&o.addEventListener("upgradeneeded",(e=>{i(b(o.result),e.oldVersion,e.newVersion,b(o.transaction),e)})),n&&o.addEventListener("blocked",(e=>n(e.oldVersion,e.newVersion,e))),a.then((e=>{s&&e.addEventListener("close",(()=>s())),r&&e.addEventListener("versionchange",(e=>r(e.oldVersion,e.newVersion,e)))})).catch((()=>{})),a}const k=["get","getKey","getAll","getAllKeys","count"],S=["put","add","delete","clear"],A=new Map;function C(e,t){if(!(e instanceof IDBDatabase)||t in e||"string"!==typeof t)return;if(A.get(t))return A.get(t);const n=t.replace(/FromIndex$/,""),i=t!==n,r=S.includes(n);if(!(n in(i?IDBIndex:IDBObjectStore).prototype)||!r&&!k.includes(n))return;const s=async function(e,...t){const s=this.transaction(e,r?"readwrite":"readonly");let o=s.store;return i&&(o=o.index(t.shift())),(await Promise.all([o[n](...t),r&&s.done]))[0]};return A.set(t,s),s}y((e=>({...e,get:(t,n,i)=>C(t,n)||e.get(t,n,i),has:(t,n)=>!!C(t,n)||e.has(t,n)}))); /** * @license * Copyright 2019 Google LLC @@ -377,7 +377,7 @@ function g(e){(0,s.registerVersion)(f,m,e)} * See the License for the specific language governing permissions and * limitations under the License. */ -class R{constructor(e){this.container=e}getPlatformInfoString(){const e=this.container.getProviders();return e.map((e=>{if(P(e)){const t=e.getImmediate();return`${t.library}/${t.version}`}return null})).filter((e=>e)).join(" ")}}function P(e){const t=e.getComponent();return"VERSION"===(null===t||void 0===t?void 0:t.type)}const O="@firebase/app",N="0.9.29",L=new r.Yd("@firebase/app"),D="@firebase/app-compat",M="@firebase/analytics-compat",U="@firebase/analytics",F="@firebase/app-check-compat",x="@firebase/app-check",V="@firebase/auth",j="@firebase/auth-compat",z="@firebase/database",H="@firebase/database-compat",W="@firebase/functions",B="@firebase/functions-compat",$="@firebase/installations",q="@firebase/installations-compat",G="@firebase/messaging",K="@firebase/messaging-compat",J="@firebase/performance",Y="@firebase/performance-compat",Z="@firebase/remote-config",X="@firebase/remote-config-compat",Q="@firebase/storage",ee="@firebase/storage-compat",te="@firebase/firestore",ne="@firebase/firestore-compat",ie="firebase",re="10.9.0",se="[DEFAULT]",oe={[O]:"fire-core",[D]:"fire-core-compat",[U]:"fire-analytics",[M]:"fire-analytics-compat",[x]:"fire-app-check",[F]:"fire-app-check-compat",[V]:"fire-auth",[j]:"fire-auth-compat",[z]:"fire-rtdb",[H]:"fire-rtdb-compat",[W]:"fire-fn",[B]:"fire-fn-compat",[$]:"fire-iid",[q]:"fire-iid-compat",[G]:"fire-fcm",[K]:"fire-fcm-compat",[J]:"fire-perf",[Y]:"fire-perf-compat",[Z]:"fire-rc",[X]:"fire-rc-compat",[Q]:"fire-gcs",[ee]:"fire-gcs-compat",[te]:"fire-fst",[ne]:"fire-fst-compat","fire-js":"fire-js",[ie]:"fire-js-all"},ae=new Map,ce=new Map;function le(e,t){try{e.container.addComponent(t)}catch(n){L.debug(`Component ${t.name} failed to register with FirebaseApp ${e.name}`,n)}}function ue(e,t){e.container.addOrOverwriteComponent(t)}function de(e){const t=e.name;if(ce.has(t))return L.debug(`There were multiple attempts to register component ${t}.`),!1;ce.set(t,e);for(const n of ae.values())le(n,e);return!0}function he(e,t){const n=e.container.getProvider("heartbeat").getImmediate({optional:!0});return n&&n.triggerHeartbeat(),e.container.getProvider(t)}function pe(e,t,n=se){he(e,t).clearInstance(n)}function fe(){ce.clear()} +class R{constructor(e){this.container=e}getPlatformInfoString(){const e=this.container.getProviders();return e.map((e=>{if(P(e)){const t=e.getImmediate();return`${t.library}/${t.version}`}return null})).filter((e=>e)).join(" ")}}function P(e){const t=e.getComponent();return"VERSION"===(null===t||void 0===t?void 0:t.type)}const O="@firebase/app",N="0.9.29",L=new r.Yd("@firebase/app"),D="@firebase/app-compat",M="@firebase/analytics-compat",U="@firebase/analytics",F="@firebase/app-check-compat",x="@firebase/app-check",V="@firebase/auth",j="@firebase/auth-compat",z="@firebase/database",H="@firebase/database-compat",W="@firebase/functions",B="@firebase/functions-compat",$="@firebase/installations",q="@firebase/installations-compat",G="@firebase/messaging",K="@firebase/messaging-compat",J="@firebase/performance",Y="@firebase/performance-compat",Z="@firebase/remote-config",X="@firebase/remote-config-compat",Q="@firebase/storage",ee="@firebase/storage-compat",te="@firebase/firestore",ne="@firebase/firestore-compat",ie="firebase",re="10.9.0",se="[DEFAULT]",oe={[O]:"fire-core",[D]:"fire-core-compat",[U]:"fire-analytics",[M]:"fire-analytics-compat",[x]:"fire-app-check",[F]:"fire-app-check-compat",[V]:"fire-auth",[j]:"fire-auth-compat",[z]:"fire-rtdb",[H]:"fire-rtdb-compat",[W]:"fire-fn",[B]:"fire-fn-compat",[$]:"fire-iid",[q]:"fire-iid-compat",[G]:"fire-fcm",[K]:"fire-fcm-compat",[J]:"fire-perf",[Y]:"fire-perf-compat",[Z]:"fire-rc",[X]:"fire-rc-compat",[Q]:"fire-gcs",[ee]:"fire-gcs-compat",[te]:"fire-fst",[ne]:"fire-fst-compat","fire-js":"fire-js",[ie]:"fire-js-all"},ae=new Map,ce=new Map;function ue(e,t){try{e.container.addComponent(t)}catch(n){L.debug(`Component ${t.name} failed to register with FirebaseApp ${e.name}`,n)}}function le(e,t){e.container.addOrOverwriteComponent(t)}function de(e){const t=e.name;if(ce.has(t))return L.debug(`There were multiple attempts to register component ${t}.`),!1;ce.set(t,e);for(const n of ae.values())ue(n,e);return!0}function he(e,t){const n=e.container.getProvider("heartbeat").getImmediate({optional:!0});return n&&n.triggerHeartbeat(),e.container.getProvider(t)}function pe(e,t,n=se){he(e,t).clearInstance(n)}function fe(){ce.clear()} /** * @license * Copyright 2019 Google LLC @@ -426,7 +426,7 @@ class ve{constructor(e,t,n){this._isDeleted=!1,this._options=Object.assign({},e) * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */const _e=re;function ye(e,t={}){let n=e;if("object"!==typeof t){const e=t;t={name:e}}const r=Object.assign({name:se,automaticDataCollectionEnabled:!1},t),o=r.name;if("string"!==typeof o||!o)throw ge.create("bad-app-name",{appName:String(o)});if(n||(n=(0,s.aH)()),!n)throw ge.create("no-options");const a=ae.get(o);if(a){if((0,s.vZ)(n,a.options)&&(0,s.vZ)(r,a.config))return a;throw ge.create("duplicate-app",{appName:o})}const c=new i.H0(o);for(const i of ce.values())c.addComponent(i);const l=new ve(n,r,c);return ae.set(o,l),l}function Ie(e=se){const t=ae.get(e);if(!t&&e===se&&(0,s.aH)())return ye();if(!t)throw ge.create("no-app",{appName:e});return t}function we(){return Array.from(ae.values())}async function be(e){const t=e.name;ae.has(t)&&(ae.delete(t),await Promise.all(e.container.getProviders().map((e=>e.delete()))),e.isDeleted=!0)}function Te(e,t,n){var r;let s=null!==(r=oe[e])&&void 0!==r?r:e;n&&(s+=`-${n}`);const o=s.match(/\s|\//),a=t.match(/\s|\//);if(o||a){const e=[`Unable to register library "${s}" with version "${t}":`];return o&&e.push(`library name "${s}" contains illegal characters (whitespace or "/")`),o&&a&&e.push("and"),a&&e.push(`version name "${t}" contains illegal characters (whitespace or "/")`),void L.warn(e.join(" "))}de(new i.wA(`${s}-version`,(()=>({library:s,version:t})),"VERSION"))}function Ee(e,t){if(null!==e&&"function"!==typeof e)throw ge.create("invalid-log-argument");(0,r.Am)(e,t)}function ke(e){(0,r.Ub)(e)} + */const _e=re;function ye(e,t={}){let n=e;if("object"!==typeof t){const e=t;t={name:e}}const r=Object.assign({name:se,automaticDataCollectionEnabled:!1},t),o=r.name;if("string"!==typeof o||!o)throw ge.create("bad-app-name",{appName:String(o)});if(n||(n=(0,s.aH)()),!n)throw ge.create("no-options");const a=ae.get(o);if(a){if((0,s.vZ)(n,a.options)&&(0,s.vZ)(r,a.config))return a;throw ge.create("duplicate-app",{appName:o})}const c=new i.H0(o);for(const i of ce.values())c.addComponent(i);const u=new ve(n,r,c);return ae.set(o,u),u}function Ie(e=se){const t=ae.get(e);if(!t&&e===se&&(0,s.aH)())return ye();if(!t)throw ge.create("no-app",{appName:e});return t}function we(){return Array.from(ae.values())}async function be(e){const t=e.name;ae.has(t)&&(ae.delete(t),await Promise.all(e.container.getProviders().map((e=>e.delete()))),e.isDeleted=!0)}function Te(e,t,n){var r;let s=null!==(r=oe[e])&&void 0!==r?r:e;n&&(s+=`-${n}`);const o=s.match(/\s|\//),a=t.match(/\s|\//);if(o||a){const e=[`Unable to register library "${s}" with version "${t}":`];return o&&e.push(`library name "${s}" contains illegal characters (whitespace or "/")`),o&&a&&e.push("and"),a&&e.push(`version name "${t}" contains illegal characters (whitespace or "/")`),void L.warn(e.join(" "))}de(new i.wA(`${s}-version`,(()=>({library:s,version:t})),"VERSION"))}function Ee(e,t){if(null!==e&&"function"!==typeof e)throw ge.create("invalid-log-argument");(0,r.Am)(e,t)}function ke(e){(0,r.Ub)(e)} /** * @license * Copyright 2021 Google LLC @@ -474,7 +474,7 @@ class ve{constructor(e,t,n){this._isDeleted=!1,this._options=Object.assign({},e) * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */function ze(e){de(new i.wA("platform-logger",(e=>new R(e)),"PRIVATE")),de(new i.wA("heartbeat",(e=>new Ue(e)),"PRIVATE")),Te(O,N,e),Te(O,N,"esm2017"),Te("fire-js","")}ze("")},8463:(e,t,n)=>{n.d(t,{H0:()=>l,wA:()=>r});var i=n(74444);class r{constructor(e,t,n){this.name=e,this.instanceFactory=t,this.type=n,this.multipleInstances=!1,this.serviceProps={},this.instantiationMode="LAZY",this.onInstanceCreated=null}setInstantiationMode(e){return this.instantiationMode=e,this}setMultipleInstances(e){return this.multipleInstances=e,this}setServiceProps(e){return this.serviceProps=e,this}setInstanceCreatedCallback(e){return this.onInstanceCreated=e,this}} + */function ze(e){de(new i.wA("platform-logger",(e=>new R(e)),"PRIVATE")),de(new i.wA("heartbeat",(e=>new Ue(e)),"PRIVATE")),Te(O,N,e),Te(O,N,"esm2017"),Te("fire-js","")}ze("")},8463:(e,t,n)=>{n.d(t,{H0:()=>u,wA:()=>r});var i=n(74444);class r{constructor(e,t,n){this.name=e,this.instanceFactory=t,this.type=n,this.multipleInstances=!1,this.serviceProps={},this.instantiationMode="LAZY",this.onInstanceCreated=null}setInstantiationMode(e){return this.instantiationMode=e,this}setMultipleInstances(e){return this.multipleInstances=e,this}setServiceProps(e){return this.serviceProps=e,this}setInstanceCreatedCallback(e){return this.onInstanceCreated=e,this}} /** * @license * Copyright 2019 Google LLC @@ -522,7 +522,7 @@ class ve{constructor(e,t,n){this._isDeleted=!1,this._options=Object.assign({},e) * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */class l{constructor(e){this.name=e,this.providers=new Map}addComponent(e){const t=this.getProvider(e.name);if(t.isComponentSet())throw new Error(`Component ${e.name} has already been registered with ${this.name}`);t.setComponent(e)}addOrOverwriteComponent(e){const t=this.getProvider(e.name);t.isComponentSet()&&this.providers.delete(e.name),this.addComponent(e)}getProvider(e){if(this.providers.has(e))return this.providers.get(e);const t=new o(e,this);return this.providers.set(e,t),t}getProviders(){return Array.from(this.providers.values())}}},53333:(e,t,n)=>{n.d(t,{Am:()=>d,Ub:()=>u,Yd:()=>l,in:()=>r}); + */class u{constructor(e){this.name=e,this.providers=new Map}addComponent(e){const t=this.getProvider(e.name);if(t.isComponentSet())throw new Error(`Component ${e.name} has already been registered with ${this.name}`);t.setComponent(e)}addOrOverwriteComponent(e){const t=this.getProvider(e.name);t.isComponentSet()&&this.providers.delete(e.name),this.addComponent(e)}getProvider(e){if(this.providers.has(e))return this.providers.get(e);const t=new o(e,this);return this.providers.set(e,t),t}getProviders(){return Array.from(this.providers.values())}}},53333:(e,t,n)=>{n.d(t,{Am:()=>d,Ub:()=>l,Yd:()=>u,in:()=>r}); /** * @license * Copyright 2017 Google LLC @@ -539,7 +539,7 @@ class ve{constructor(e,t,n){this._isDeleted=!1,this._options=Object.assign({},e) * See the License for the specific language governing permissions and * limitations under the License. */ -const i=[];var r;(function(e){e[e["DEBUG"]=0]="DEBUG",e[e["VERBOSE"]=1]="VERBOSE",e[e["INFO"]=2]="INFO",e[e["WARN"]=3]="WARN",e[e["ERROR"]=4]="ERROR",e[e["SILENT"]=5]="SILENT"})(r||(r={}));const s={debug:r.DEBUG,verbose:r.VERBOSE,info:r.INFO,warn:r.WARN,error:r.ERROR,silent:r.SILENT},o=r.INFO,a={[r.DEBUG]:"log",[r.VERBOSE]:"log",[r.INFO]:"info",[r.WARN]:"warn",[r.ERROR]:"error"},c=(e,t,...n)=>{if(t{t.setLogLevel(e)}))}function d(e,t){for(const n of i){let i=null;t&&t.level&&(i=s[t.level]),n.userLogHandler=null===e?null:(t,n,...s)=>{const o=s.map((e=>{if(null==e)return null;if("string"===typeof e)return e;if("number"===typeof e||"boolean"===typeof e)return e.toString();if(e instanceof Error)return e.message;try{return JSON.stringify(e)}catch(t){return null}})).filter((e=>e)).join(" ");n>=(null!==i&&void 0!==i?i:t.logLevel)&&e({level:r[n].toLowerCase(),message:o,args:s,type:t.name})}}}},44866:(e,t,n)=>{n.d(t,{Z:()=>i.Z});var i=n(98180),r="firebase",s="10.9.0"; +const i=[];var r;(function(e){e[e["DEBUG"]=0]="DEBUG",e[e["VERBOSE"]=1]="VERBOSE",e[e["INFO"]=2]="INFO",e[e["WARN"]=3]="WARN",e[e["ERROR"]=4]="ERROR",e[e["SILENT"]=5]="SILENT"})(r||(r={}));const s={debug:r.DEBUG,verbose:r.VERBOSE,info:r.INFO,warn:r.WARN,error:r.ERROR,silent:r.SILENT},o=r.INFO,a={[r.DEBUG]:"log",[r.VERBOSE]:"log",[r.INFO]:"info",[r.WARN]:"warn",[r.ERROR]:"error"},c=(e,t,...n)=>{if(t{t.setLogLevel(e)}))}function d(e,t){for(const n of i){let i=null;t&&t.level&&(i=s[t.level]),n.userLogHandler=null===e?null:(t,n,...s)=>{const o=s.map((e=>{if(null==e)return null;if("string"===typeof e)return e;if("number"===typeof e||"boolean"===typeof e)return e.toString();if(e instanceof Error)return e.message;try{return JSON.stringify(e)}catch(t){return null}})).filter((e=>e)).join(" ");n>=(null!==i&&void 0!==i?i:t.logLevel)&&e({level:r[n].toLowerCase(),message:o,args:s,type:t.name})}}}},44866:(e,t,n)=>{n.d(t,{Z:()=>i.Z});var i=n(98180),r="firebase",s="10.9.0"; /** * @license * Copyright 2020 Google LLC @@ -573,7 +573,7 @@ i.Z.registerVersion(r,s,"app-compat")},52141:(e,t,n)=>{var i=n(98180),r=n(74444) * See the License for the specific language governing permissions and * limitations under the License. */ -const l={FACEBOOK:"facebook.com",GITHUB:"github.com",GOOGLE:"google.com",PASSWORD:"password",PHONE:"phone",TWITTER:"twitter.com"},u={EMAIL_SIGNIN:"EMAIL_SIGNIN",PASSWORD_RESET:"PASSWORD_RESET",RECOVER_EMAIL:"RECOVER_EMAIL",REVERT_SECOND_FACTOR_ADDITION:"REVERT_SECOND_FACTOR_ADDITION",VERIFY_AND_CHANGE_EMAIL:"VERIFY_AND_CHANGE_EMAIL",VERIFY_EMAIL:"VERIFY_EMAIL"}; +const u={FACEBOOK:"facebook.com",GITHUB:"github.com",GOOGLE:"google.com",PASSWORD:"password",PHONE:"phone",TWITTER:"twitter.com"},l={EMAIL_SIGNIN:"EMAIL_SIGNIN",PASSWORD_RESET:"PASSWORD_RESET",RECOVER_EMAIL:"RECOVER_EMAIL",REVERT_SECOND_FACTOR_ADDITION:"REVERT_SECOND_FACTOR_ADDITION",VERIFY_AND_CHANGE_EMAIL:"VERIFY_AND_CHANGE_EMAIL",VERIFY_EMAIL:"VERIFY_EMAIL"}; /** * @license * Copyright 2020 Google LLC @@ -862,7 +862,7 @@ function d(){return{["admin-restricted-operation"]:"This operation is restricted * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */async function ce(e){var t;const n=e.auth,i=await e.getIdToken(),r=await re(e,X(n,{idToken:i}));E(null===r||void 0===r?void 0:r.users.length,n,"internal-error");const s=r.users[0];e._notifyReloadListener(s);const o=(null===(t=s.providerUserInfo)||void 0===t?void 0:t.length)?de(s.providerUserInfo):[],a=ue(e.providerData,o),c=e.isAnonymous,l=!(e.email&&s.passwordHash)&&!(null===a||void 0===a?void 0:a.length),u=!!c&&l,d={uid:s.localId,displayName:s.displayName||null,photoURL:s.photoUrl||null,email:s.email||null,emailVerified:s.emailVerified||!1,phoneNumber:s.phoneNumber||null,tenantId:s.tenantId||null,providerData:a,metadata:new ae(s.createdAt,s.lastLoginAt),isAnonymous:u};Object.assign(e,d)}async function le(e){const t=(0,r.m9)(e);await ce(t),await t.auth._persistUserIfCurrent(t),t.auth._notifyListenersIfCurrent(t)}function ue(e,t){const n=e.filter((e=>!t.some((t=>t.providerId===e.providerId))));return[...n,...t]}function de(e){return e.map((e=>{var{providerId:t}=e,n=a(e,["providerId"]);return{providerId:t,uid:n.rawId||"",displayName:n.displayName||null,email:n.email||null,phoneNumber:n.phoneNumber||null,photoURL:n.photoUrl||null}}))} + */async function ce(e){var t;const n=e.auth,i=await e.getIdToken(),r=await re(e,X(n,{idToken:i}));E(null===r||void 0===r?void 0:r.users.length,n,"internal-error");const s=r.users[0];e._notifyReloadListener(s);const o=(null===(t=s.providerUserInfo)||void 0===t?void 0:t.length)?de(s.providerUserInfo):[],a=le(e.providerData,o),c=e.isAnonymous,u=!(e.email&&s.passwordHash)&&!(null===a||void 0===a?void 0:a.length),l=!!c&&u,d={uid:s.localId,displayName:s.displayName||null,photoURL:s.photoUrl||null,email:s.email||null,emailVerified:s.emailVerified||!1,phoneNumber:s.phoneNumber||null,tenantId:s.tenantId||null,providerData:a,metadata:new ae(s.createdAt,s.lastLoginAt),isAnonymous:l};Object.assign(e,d)}async function ue(e){const t=(0,r.m9)(e);await ce(t),await t.auth._persistUserIfCurrent(t),t.auth._notifyListenersIfCurrent(t)}function le(e,t){const n=e.filter((e=>!t.some((t=>t.providerId===e.providerId))));return[...n,...t]}function de(e){return e.map((e=>{var{providerId:t}=e,n=a(e,["providerId"]);return{providerId:t,uid:n.rawId||"",displayName:n.displayName||null,email:n.email||null,phoneNumber:n.phoneNumber||null,photoURL:n.photoUrl||null}}))} /** * @license * Copyright 2020 Google LLC @@ -910,7 +910,7 @@ function d(){return{["admin-restricted-operation"]:"This operation is restricted * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */function me(e,t){E("string"===typeof e||"undefined"===typeof e,"internal-error",{appName:t})}class ge{constructor(e){var{uid:t,auth:n,stsTokenManager:i}=e,r=a(e,["uid","auth","stsTokenManager"]);this.providerId="firebase",this.proactiveRefresh=new oe(this),this.reloadUserInfo=null,this.reloadListener=null,this.uid=t,this.auth=n,this.stsTokenManager=i,this.accessToken=i.accessToken,this.displayName=r.displayName||null,this.email=r.email||null,this.emailVerified=r.emailVerified||!1,this.phoneNumber=r.phoneNumber||null,this.photoURL=r.photoURL||null,this.isAnonymous=r.isAnonymous||!1,this.tenantId=r.tenantId||null,this.providerData=r.providerData?[...r.providerData]:[],this.metadata=new ae(r.createdAt||void 0,r.lastLoginAt||void 0)}async getIdToken(e){const t=await re(this,this.stsTokenManager.getToken(this.auth,e));return E(t,this.auth,"internal-error"),this.accessToken!==t&&(this.accessToken=t,await this.auth._persistUserIfCurrent(this),this.auth._notifyListenersIfCurrent(this)),t}getIdTokenResult(e){return ee(this,e)}reload(){return le(this)}_assign(e){this!==e&&(E(this.uid===e.uid,this.auth,"internal-error"),this.displayName=e.displayName,this.photoURL=e.photoURL,this.email=e.email,this.emailVerified=e.emailVerified,this.phoneNumber=e.phoneNumber,this.isAnonymous=e.isAnonymous,this.tenantId=e.tenantId,this.providerData=e.providerData.map((e=>Object.assign({},e))),this.metadata._copy(e.metadata),this.stsTokenManager._assign(e.stsTokenManager))}_clone(e){const t=new ge(Object.assign(Object.assign({},this),{auth:e,stsTokenManager:this.stsTokenManager._clone()}));return t.metadata._copy(this.metadata),t}_onReload(e){E(!this.reloadListener,this.auth,"internal-error"),this.reloadListener=e,this.reloadUserInfo&&(this._notifyReloadListener(this.reloadUserInfo),this.reloadUserInfo=null)}_notifyReloadListener(e){this.reloadListener?this.reloadListener(e):this.reloadUserInfo=e}_startProactiveRefresh(){this.proactiveRefresh._start()}_stopProactiveRefresh(){this.proactiveRefresh._stop()}async _updateTokensIfNecessary(e,t=!1){let n=!1;e.idToken&&e.idToken!==this.stsTokenManager.accessToken&&(this.stsTokenManager.updateFromServerResponse(e),n=!0),t&&await ce(this),await this.auth._persistUserIfCurrent(this),n&&this.auth._notifyListenersIfCurrent(this)}async delete(){const e=await this.getIdToken();return await re(this,Y(this.auth,{idToken:e})),this.stsTokenManager.clearRefreshToken(),this.auth.signOut()}toJSON(){return Object.assign(Object.assign({uid:this.uid,email:this.email||void 0,emailVerified:this.emailVerified,displayName:this.displayName||void 0,isAnonymous:this.isAnonymous,photoURL:this.photoURL||void 0,phoneNumber:this.phoneNumber||void 0,tenantId:this.tenantId||void 0,providerData:this.providerData.map((e=>Object.assign({},e))),stsTokenManager:this.stsTokenManager.toJSON(),_redirectEventId:this._redirectEventId},this.metadata.toJSON()),{apiKey:this.auth.config.apiKey,appName:this.auth.name})}get refreshToken(){return this.stsTokenManager.refreshToken||""}static _fromJSON(e,t){var n,i,r,s,o,a,c,l;const u=null!==(n=t.displayName)&&void 0!==n?n:void 0,d=null!==(i=t.email)&&void 0!==i?i:void 0,h=null!==(r=t.phoneNumber)&&void 0!==r?r:void 0,p=null!==(s=t.photoURL)&&void 0!==s?s:void 0,f=null!==(o=t.tenantId)&&void 0!==o?o:void 0,m=null!==(a=t._redirectEventId)&&void 0!==a?a:void 0,g=null!==(c=t.createdAt)&&void 0!==c?c:void 0,v=null!==(l=t.lastLoginAt)&&void 0!==l?l:void 0,{uid:_,emailVerified:y,isAnonymous:I,providerData:w,stsTokenManager:b}=t;E(_&&b,e,"internal-error");const T=fe.fromJSON(this.name,b);E("string"===typeof _,e,"internal-error"),me(u,e.name),me(d,e.name),E("boolean"===typeof y,e,"internal-error"),E("boolean"===typeof I,e,"internal-error"),me(h,e.name),me(p,e.name),me(f,e.name),me(m,e.name),me(g,e.name),me(v,e.name);const k=new ge({uid:_,auth:e,email:d,emailVerified:y,displayName:u,isAnonymous:I,photoURL:p,phoneNumber:h,tenantId:f,stsTokenManager:T,createdAt:g,lastLoginAt:v});return w&&Array.isArray(w)&&(k.providerData=w.map((e=>Object.assign({},e)))),m&&(k._redirectEventId=m),k}static async _fromIdTokenResponse(e,t,n=!1){const i=new fe;i.updateFromServerResponse(t);const r=new ge({uid:t.localId,auth:e,stsTokenManager:i,isAnonymous:n});return await ce(r),r}} + */function me(e,t){E("string"===typeof e||"undefined"===typeof e,"internal-error",{appName:t})}class ge{constructor(e){var{uid:t,auth:n,stsTokenManager:i}=e,r=a(e,["uid","auth","stsTokenManager"]);this.providerId="firebase",this.proactiveRefresh=new oe(this),this.reloadUserInfo=null,this.reloadListener=null,this.uid=t,this.auth=n,this.stsTokenManager=i,this.accessToken=i.accessToken,this.displayName=r.displayName||null,this.email=r.email||null,this.emailVerified=r.emailVerified||!1,this.phoneNumber=r.phoneNumber||null,this.photoURL=r.photoURL||null,this.isAnonymous=r.isAnonymous||!1,this.tenantId=r.tenantId||null,this.providerData=r.providerData?[...r.providerData]:[],this.metadata=new ae(r.createdAt||void 0,r.lastLoginAt||void 0)}async getIdToken(e){const t=await re(this,this.stsTokenManager.getToken(this.auth,e));return E(t,this.auth,"internal-error"),this.accessToken!==t&&(this.accessToken=t,await this.auth._persistUserIfCurrent(this),this.auth._notifyListenersIfCurrent(this)),t}getIdTokenResult(e){return ee(this,e)}reload(){return ue(this)}_assign(e){this!==e&&(E(this.uid===e.uid,this.auth,"internal-error"),this.displayName=e.displayName,this.photoURL=e.photoURL,this.email=e.email,this.emailVerified=e.emailVerified,this.phoneNumber=e.phoneNumber,this.isAnonymous=e.isAnonymous,this.tenantId=e.tenantId,this.providerData=e.providerData.map((e=>Object.assign({},e))),this.metadata._copy(e.metadata),this.stsTokenManager._assign(e.stsTokenManager))}_clone(e){const t=new ge(Object.assign(Object.assign({},this),{auth:e,stsTokenManager:this.stsTokenManager._clone()}));return t.metadata._copy(this.metadata),t}_onReload(e){E(!this.reloadListener,this.auth,"internal-error"),this.reloadListener=e,this.reloadUserInfo&&(this._notifyReloadListener(this.reloadUserInfo),this.reloadUserInfo=null)}_notifyReloadListener(e){this.reloadListener?this.reloadListener(e):this.reloadUserInfo=e}_startProactiveRefresh(){this.proactiveRefresh._start()}_stopProactiveRefresh(){this.proactiveRefresh._stop()}async _updateTokensIfNecessary(e,t=!1){let n=!1;e.idToken&&e.idToken!==this.stsTokenManager.accessToken&&(this.stsTokenManager.updateFromServerResponse(e),n=!0),t&&await ce(this),await this.auth._persistUserIfCurrent(this),n&&this.auth._notifyListenersIfCurrent(this)}async delete(){const e=await this.getIdToken();return await re(this,Y(this.auth,{idToken:e})),this.stsTokenManager.clearRefreshToken(),this.auth.signOut()}toJSON(){return Object.assign(Object.assign({uid:this.uid,email:this.email||void 0,emailVerified:this.emailVerified,displayName:this.displayName||void 0,isAnonymous:this.isAnonymous,photoURL:this.photoURL||void 0,phoneNumber:this.phoneNumber||void 0,tenantId:this.tenantId||void 0,providerData:this.providerData.map((e=>Object.assign({},e))),stsTokenManager:this.stsTokenManager.toJSON(),_redirectEventId:this._redirectEventId},this.metadata.toJSON()),{apiKey:this.auth.config.apiKey,appName:this.auth.name})}get refreshToken(){return this.stsTokenManager.refreshToken||""}static _fromJSON(e,t){var n,i,r,s,o,a,c,u;const l=null!==(n=t.displayName)&&void 0!==n?n:void 0,d=null!==(i=t.email)&&void 0!==i?i:void 0,h=null!==(r=t.phoneNumber)&&void 0!==r?r:void 0,p=null!==(s=t.photoURL)&&void 0!==s?s:void 0,f=null!==(o=t.tenantId)&&void 0!==o?o:void 0,m=null!==(a=t._redirectEventId)&&void 0!==a?a:void 0,g=null!==(c=t.createdAt)&&void 0!==c?c:void 0,v=null!==(u=t.lastLoginAt)&&void 0!==u?u:void 0,{uid:_,emailVerified:y,isAnonymous:I,providerData:w,stsTokenManager:b}=t;E(_&&b,e,"internal-error");const T=fe.fromJSON(this.name,b);E("string"===typeof _,e,"internal-error"),me(l,e.name),me(d,e.name),E("boolean"===typeof y,e,"internal-error"),E("boolean"===typeof I,e,"internal-error"),me(h,e.name),me(p,e.name),me(f,e.name),me(m,e.name),me(g,e.name),me(v,e.name);const k=new ge({uid:_,auth:e,email:d,emailVerified:y,displayName:l,isAnonymous:I,photoURL:p,phoneNumber:h,tenantId:f,stsTokenManager:T,createdAt:g,lastLoginAt:v});return w&&Array.isArray(w)&&(k.providerData=w.map((e=>Object.assign({},e)))),m&&(k._redirectEventId=m),k}static async _fromIdTokenResponse(e,t,n=!1){const i=new fe;i.updateFromServerResponse(t);const r=new ge({uid:t.localId,auth:e,stsTokenManager:i,isAnonymous:n});return await ce(r),r}} /** * @license * Copyright 2020 Google LLC @@ -958,7 +958,7 @@ function d(){return{["admin-restricted-operation"]:"This operation is restricted * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */function we(e,t,n){return`firebase:${e}:${t}:${n}`}class be{constructor(e,t,n){this.persistence=e,this.auth=t,this.userKey=n;const{config:i,name:r}=this.auth;this.fullUserKey=we(this.userKey,i.apiKey,r),this.fullPersistenceKey=we("persistence",i.apiKey,r),this.boundEventHandler=t._onStorageEvent.bind(t),this.persistence._addListener(this.fullUserKey,this.boundEventHandler)}setCurrentUser(e){return this.persistence._set(this.fullUserKey,e.toJSON())}async getCurrentUser(){const e=await this.persistence._get(this.fullUserKey);return e?ge._fromJSON(this.auth,e):null}removeCurrentUser(){return this.persistence._remove(this.fullUserKey)}savePersistenceForRedirect(){return this.persistence._set(this.fullPersistenceKey,this.persistence.type)}async setPersistence(e){if(this.persistence===e)return;const t=await this.getCurrentUser();return await this.removeCurrentUser(),this.persistence=e,t?this.setCurrentUser(t):void 0}delete(){this.persistence._removeListener(this.fullUserKey,this.boundEventHandler)}static async create(e,t,n="authUser"){if(!t.length)return new be(_e(Ie),e,n);const i=(await Promise.all(t.map((async e=>{if(await e._isAvailable())return e})))).filter((e=>e));let r=i[0]||_e(Ie);const s=we(n,e.config.apiKey,e.name);let o=null;for(const l of t)try{const t=await l._get(s);if(t){const n=ge._fromJSON(e,t);l!==r&&(o=n),r=l;break}}catch(c){}const a=i.filter((e=>e._shouldAllowMigration));return r._shouldAllowMigration&&a.length?(r=a[0],o&&await r._set(s,o.toJSON()),await Promise.all(t.map((async e=>{if(e!==r)try{await e._remove(s)}catch(c){}}))),new be(r,e,n)):new be(r,e,n)}} + */function we(e,t,n){return`firebase:${e}:${t}:${n}`}class be{constructor(e,t,n){this.persistence=e,this.auth=t,this.userKey=n;const{config:i,name:r}=this.auth;this.fullUserKey=we(this.userKey,i.apiKey,r),this.fullPersistenceKey=we("persistence",i.apiKey,r),this.boundEventHandler=t._onStorageEvent.bind(t),this.persistence._addListener(this.fullUserKey,this.boundEventHandler)}setCurrentUser(e){return this.persistence._set(this.fullUserKey,e.toJSON())}async getCurrentUser(){const e=await this.persistence._get(this.fullUserKey);return e?ge._fromJSON(this.auth,e):null}removeCurrentUser(){return this.persistence._remove(this.fullUserKey)}savePersistenceForRedirect(){return this.persistence._set(this.fullPersistenceKey,this.persistence.type)}async setPersistence(e){if(this.persistence===e)return;const t=await this.getCurrentUser();return await this.removeCurrentUser(),this.persistence=e,t?this.setCurrentUser(t):void 0}delete(){this.persistence._removeListener(this.fullUserKey,this.boundEventHandler)}static async create(e,t,n="authUser"){if(!t.length)return new be(_e(Ie),e,n);const i=(await Promise.all(t.map((async e=>{if(await e._isAvailable())return e})))).filter((e=>e));let r=i[0]||_e(Ie);const s=we(n,e.config.apiKey,e.name);let o=null;for(const u of t)try{const t=await u._get(s);if(t){const n=ge._fromJSON(e,t);u!==r&&(o=n),r=u;break}}catch(c){}const a=i.filter((e=>e._shouldAllowMigration));return r._shouldAllowMigration&&a.length?(r=a[0],o&&await r._set(s,o.toJSON()),await Promise.all(t.map((async e=>{if(e!==r)try{await e._remove(s)}catch(c){}}))),new be(r,e,n)):new be(r,e,n)}} /** * @license * Copyright 2020 Google LLC @@ -1086,7 +1086,7 @@ function d(){return{["admin-restricted-operation"]:"This operation is restricted * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */class lt{constructor(e,t){this.providerId=e,this.signInMethod=t}toJSON(){return k("not implemented")}_getIdTokenResponse(e){return k("not implemented")}_linkToIdToken(e,t){return k("not implemented")}_getReauthenticationResolver(e){return k("not implemented")}} + */class ut{constructor(e,t){this.providerId=e,this.signInMethod=t}toJSON(){return k("not implemented")}_getIdTokenResponse(e){return k("not implemented")}_linkToIdToken(e,t){return k("not implemented")}_getReauthenticationResolver(e){return k("not implemented")}} /** * @license * Copyright 2020 Google LLC @@ -1102,7 +1102,7 @@ function d(){return{["admin-restricted-operation"]:"This operation is restricted * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */async function ut(e,t){return x(e,"POST","/v1/accounts:resetPassword",F(e,t))}async function dt(e,t){return x(e,"POST","/v1/accounts:update",t)}async function ht(e,t){return x(e,"POST","/v1/accounts:signUp",t)}async function pt(e,t){return x(e,"POST","/v1/accounts:update",F(e,t))} + */async function lt(e,t){return x(e,"POST","/v1/accounts:resetPassword",F(e,t))}async function dt(e,t){return x(e,"POST","/v1/accounts:update",t)}async function ht(e,t){return x(e,"POST","/v1/accounts:signUp",t)}async function pt(e,t){return x(e,"POST","/v1/accounts:update",F(e,t))} /** * @license * Copyright 2020 Google LLC @@ -1150,7 +1150,7 @@ function d(){return{["admin-restricted-operation"]:"This operation is restricted * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */class bt extends lt{constructor(e,t,n,i=null){super("password",n),this._email=e,this._password=t,this._tenantId=i}static _fromEmailAndPassword(e,t){return new bt(e,t,"password")}static _fromEmailAndCode(e,t,n=null){return new bt(e,t,"emailLink",n)}toJSON(){return{email:this._email,password:this._password,signInMethod:this.signInMethod,tenantId:this._tenantId}}static fromJSON(e){const t="string"===typeof e?JSON.parse(e):e;if((null===t||void 0===t?void 0:t.email)&&(null===t||void 0===t?void 0:t.password)){if("password"===t.signInMethod)return this._fromEmailAndPassword(t.email,t.password);if("emailLink"===t.signInMethod)return this._fromEmailAndCode(t.email,t.password,t.tenantId)}return null}async _getIdTokenResponse(e){switch(this.signInMethod){case"password":const t={returnSecureToken:!0,email:this._email,password:this._password,clientType:"CLIENT_TYPE_WEB"};return nt(e,t,"signInWithPassword",ft);case"emailLink":return It(e,{email:this._email,oobCode:this._password});default:y(e,"internal-error")}}async _linkToIdToken(e,t){switch(this.signInMethod){case"password":const n={idToken:t,returnSecureToken:!0,email:this._email,password:this._password,clientType:"CLIENT_TYPE_WEB"};return nt(e,n,"signUpPassword",ht);case"emailLink":return wt(e,{idToken:t,email:this._email,oobCode:this._password});default:y(e,"internal-error")}}_getReauthenticationResolver(e){return this._getIdTokenResponse(e)}} + */class bt extends ut{constructor(e,t,n,i=null){super("password",n),this._email=e,this._password=t,this._tenantId=i}static _fromEmailAndPassword(e,t){return new bt(e,t,"password")}static _fromEmailAndCode(e,t,n=null){return new bt(e,t,"emailLink",n)}toJSON(){return{email:this._email,password:this._password,signInMethod:this.signInMethod,tenantId:this._tenantId}}static fromJSON(e){const t="string"===typeof e?JSON.parse(e):e;if((null===t||void 0===t?void 0:t.email)&&(null===t||void 0===t?void 0:t.password)){if("password"===t.signInMethod)return this._fromEmailAndPassword(t.email,t.password);if("emailLink"===t.signInMethod)return this._fromEmailAndCode(t.email,t.password,t.tenantId)}return null}async _getIdTokenResponse(e){switch(this.signInMethod){case"password":const t={returnSecureToken:!0,email:this._email,password:this._password,clientType:"CLIENT_TYPE_WEB"};return nt(e,t,"signInWithPassword",ft);case"emailLink":return It(e,{email:this._email,oobCode:this._password});default:y(e,"internal-error")}}async _linkToIdToken(e,t){switch(this.signInMethod){case"password":const n={idToken:t,returnSecureToken:!0,email:this._email,password:this._password,clientType:"CLIENT_TYPE_WEB"};return nt(e,n,"signUpPassword",ht);case"emailLink":return wt(e,{idToken:t,email:this._email,oobCode:this._password});default:y(e,"internal-error")}}_getReauthenticationResolver(e){return this._getIdTokenResponse(e)}} /** * @license * Copyright 2020 Google LLC @@ -1182,7 +1182,7 @@ function d(){return{["admin-restricted-operation"]:"This operation is restricted * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */const Et="http://localhost";class kt extends lt{constructor(){super(...arguments),this.pendingToken=null}static _fromParams(e){const t=new kt(e.providerId,e.signInMethod);return e.idToken||e.accessToken?(e.idToken&&(t.idToken=e.idToken),e.accessToken&&(t.accessToken=e.accessToken),e.nonce&&!e.pendingToken&&(t.nonce=e.nonce),e.pendingToken&&(t.pendingToken=e.pendingToken)):e.oauthToken&&e.oauthTokenSecret?(t.accessToken=e.oauthToken,t.secret=e.oauthTokenSecret):y("argument-error"),t}toJSON(){return{idToken:this.idToken,accessToken:this.accessToken,secret:this.secret,nonce:this.nonce,pendingToken:this.pendingToken,providerId:this.providerId,signInMethod:this.signInMethod}}static fromJSON(e){const t="string"===typeof e?JSON.parse(e):e,{providerId:n,signInMethod:i}=t,r=a(t,["providerId","signInMethod"]);if(!n||!i)return null;const s=new kt(n,i);return s.idToken=r.idToken||void 0,s.accessToken=r.accessToken||void 0,s.secret=r.secret,s.nonce=r.nonce,s.pendingToken=r.pendingToken||null,s}_getIdTokenResponse(e){const t=this.buildRequest();return Tt(e,t)}_linkToIdToken(e,t){const n=this.buildRequest();return n.idToken=t,Tt(e,n)}_getReauthenticationResolver(e){const t=this.buildRequest();return t.autoCreate=!1,Tt(e,t)}buildRequest(){const e={requestUri:Et,returnSecureToken:!0};if(this.pendingToken)e.pendingToken=this.pendingToken;else{const t={};this.idToken&&(t["id_token"]=this.idToken),this.accessToken&&(t["access_token"]=this.accessToken),this.secret&&(t["oauth_token_secret"]=this.secret),t["providerId"]=this.providerId,this.nonce&&!this.pendingToken&&(t["nonce"]=this.nonce),e.postBody=(0,r.xO)(t)}return e}} + */const Et="http://localhost";class kt extends ut{constructor(){super(...arguments),this.pendingToken=null}static _fromParams(e){const t=new kt(e.providerId,e.signInMethod);return e.idToken||e.accessToken?(e.idToken&&(t.idToken=e.idToken),e.accessToken&&(t.accessToken=e.accessToken),e.nonce&&!e.pendingToken&&(t.nonce=e.nonce),e.pendingToken&&(t.pendingToken=e.pendingToken)):e.oauthToken&&e.oauthTokenSecret?(t.accessToken=e.oauthToken,t.secret=e.oauthTokenSecret):y("argument-error"),t}toJSON(){return{idToken:this.idToken,accessToken:this.accessToken,secret:this.secret,nonce:this.nonce,pendingToken:this.pendingToken,providerId:this.providerId,signInMethod:this.signInMethod}}static fromJSON(e){const t="string"===typeof e?JSON.parse(e):e,{providerId:n,signInMethod:i}=t,r=a(t,["providerId","signInMethod"]);if(!n||!i)return null;const s=new kt(n,i);return s.idToken=r.idToken||void 0,s.accessToken=r.accessToken||void 0,s.secret=r.secret,s.nonce=r.nonce,s.pendingToken=r.pendingToken||null,s}_getIdTokenResponse(e){const t=this.buildRequest();return Tt(e,t)}_linkToIdToken(e,t){const n=this.buildRequest();return n.idToken=t,Tt(e,n)}_getReauthenticationResolver(e){const t=this.buildRequest();return t.autoCreate=!1,Tt(e,t)}buildRequest(){const e={requestUri:Et,returnSecureToken:!0};if(this.pendingToken)e.pendingToken=this.pendingToken;else{const t={};this.idToken&&(t["id_token"]=this.idToken),this.accessToken&&(t["access_token"]=this.accessToken),this.secret&&(t["oauth_token_secret"]=this.secret),t["providerId"]=this.providerId,this.nonce&&!this.pendingToken&&(t["nonce"]=this.nonce),e.postBody=(0,r.xO)(t)}return e}} /** * @license * Copyright 2020 Google LLC @@ -1214,7 +1214,7 @@ function d(){return{["admin-restricted-operation"]:"This operation is restricted * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */class Ot extends lt{constructor(e){super("phone","phone"),this.params=e}static _fromVerification(e,t){return new Ot({verificationId:e,verificationCode:t})}static _fromTokenResponse(e,t){return new Ot({phoneNumber:e,temporaryProof:t})}_getIdTokenResponse(e){return At(e,this._makeVerificationRequest())}_linkToIdToken(e,t){return Ct(e,Object.assign({idToken:t},this._makeVerificationRequest()))}_getReauthenticationResolver(e){return Pt(e,this._makeVerificationRequest())}_makeVerificationRequest(){const{temporaryProof:e,phoneNumber:t,verificationId:n,verificationCode:i}=this.params;return e&&t?{temporaryProof:e,phoneNumber:t}:{sessionInfo:n,code:i}}toJSON(){const e={providerId:this.providerId};return this.params.phoneNumber&&(e.phoneNumber=this.params.phoneNumber),this.params.temporaryProof&&(e.temporaryProof=this.params.temporaryProof),this.params.verificationCode&&(e.verificationCode=this.params.verificationCode),this.params.verificationId&&(e.verificationId=this.params.verificationId),e}static fromJSON(e){"string"===typeof e&&(e=JSON.parse(e));const{verificationId:t,verificationCode:n,phoneNumber:i,temporaryProof:r}=e;return n||t||i||r?new Ot({verificationId:t,verificationCode:n,phoneNumber:i,temporaryProof:r}):null}} + */class Ot extends ut{constructor(e){super("phone","phone"),this.params=e}static _fromVerification(e,t){return new Ot({verificationId:e,verificationCode:t})}static _fromTokenResponse(e,t){return new Ot({phoneNumber:e,temporaryProof:t})}_getIdTokenResponse(e){return At(e,this._makeVerificationRequest())}_linkToIdToken(e,t){return Ct(e,Object.assign({idToken:t},this._makeVerificationRequest()))}_getReauthenticationResolver(e){return Pt(e,this._makeVerificationRequest())}_makeVerificationRequest(){const{temporaryProof:e,phoneNumber:t,verificationId:n,verificationCode:i}=this.params;return e&&t?{temporaryProof:e,phoneNumber:t}:{sessionInfo:n,code:i}}toJSON(){const e={providerId:this.providerId};return this.params.phoneNumber&&(e.phoneNumber=this.params.phoneNumber),this.params.temporaryProof&&(e.temporaryProof=this.params.temporaryProof),this.params.verificationCode&&(e.verificationCode=this.params.verificationCode),this.params.verificationId&&(e.verificationId=this.params.verificationId),e}static fromJSON(e){"string"===typeof e&&(e=JSON.parse(e));const{verificationId:t,verificationCode:n,phoneNumber:i,temporaryProof:r}=e;return n||t||i||r?new Ot({verificationId:t,verificationCode:n,phoneNumber:i,temporaryProof:r}):null}} /** * @license * Copyright 2020 Google LLC @@ -1230,7 +1230,7 @@ function d(){return{["admin-restricted-operation"]:"This operation is restricted * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */function Nt(e){switch(e){case"recoverEmail":return"RECOVER_EMAIL";case"resetPassword":return"PASSWORD_RESET";case"signIn":return"EMAIL_SIGNIN";case"verifyEmail":return"VERIFY_EMAIL";case"verifyAndChangeEmail":return"VERIFY_AND_CHANGE_EMAIL";case"revertSecondFactorAddition":return"REVERT_SECOND_FACTOR_ADDITION";default:return null}}function Lt(e){const t=(0,r.zd)((0,r.pd)(e))["link"],n=t?(0,r.zd)((0,r.pd)(t))["deep_link_id"]:null,i=(0,r.zd)((0,r.pd)(e))["deep_link_id"],s=i?(0,r.zd)((0,r.pd)(i))["link"]:null;return s||i||n||t||e}class Dt{constructor(e){var t,n,i,s,o,a;const c=(0,r.zd)((0,r.pd)(e)),l=null!==(t=c["apiKey"])&&void 0!==t?t:null,u=null!==(n=c["oobCode"])&&void 0!==n?n:null,d=Nt(null!==(i=c["mode"])&&void 0!==i?i:null);E(l&&u&&d,"argument-error"),this.apiKey=l,this.operation=d,this.code=u,this.continueUrl=null!==(s=c["continueUrl"])&&void 0!==s?s:null,this.languageCode=null!==(o=c["languageCode"])&&void 0!==o?o:null,this.tenantId=null!==(a=c["tenantId"])&&void 0!==a?a:null}static parseLink(e){const t=Lt(e);try{return new Dt(t)}catch(n){return null}}} + */function Nt(e){switch(e){case"recoverEmail":return"RECOVER_EMAIL";case"resetPassword":return"PASSWORD_RESET";case"signIn":return"EMAIL_SIGNIN";case"verifyEmail":return"VERIFY_EMAIL";case"verifyAndChangeEmail":return"VERIFY_AND_CHANGE_EMAIL";case"revertSecondFactorAddition":return"REVERT_SECOND_FACTOR_ADDITION";default:return null}}function Lt(e){const t=(0,r.zd)((0,r.pd)(e))["link"],n=t?(0,r.zd)((0,r.pd)(t))["deep_link_id"]:null,i=(0,r.zd)((0,r.pd)(e))["deep_link_id"],s=i?(0,r.zd)((0,r.pd)(i))["link"]:null;return s||i||n||t||e}class Dt{constructor(e){var t,n,i,s,o,a;const c=(0,r.zd)((0,r.pd)(e)),u=null!==(t=c["apiKey"])&&void 0!==t?t:null,l=null!==(n=c["oobCode"])&&void 0!==n?n:null,d=Nt(null!==(i=c["mode"])&&void 0!==i?i:null);E(u&&l&&d,"argument-error"),this.apiKey=u,this.operation=d,this.code=l,this.continueUrl=null!==(s=c["continueUrl"])&&void 0!==s?s:null,this.languageCode=null!==(o=c["languageCode"])&&void 0!==o?o:null,this.tenantId=null!==(a=c["tenantId"])&&void 0!==a?a:null}static parseLink(e){const t=Lt(e);try{return new Dt(t)}catch(n){return null}}} /** * @license * Copyright 2020 Google LLC @@ -1347,7 +1347,7 @@ class zt extends Ft{constructor(){super("github.com")}static credential(e){retur * See the License for the specific language governing permissions and * limitations under the License. */ -const Ht="http://localhost";class Wt extends lt{constructor(e,t){super(e,e),this.pendingToken=t}_getIdTokenResponse(e){const t=this.buildRequest();return Tt(e,t)}_linkToIdToken(e,t){const n=this.buildRequest();return n.idToken=t,Tt(e,n)}_getReauthenticationResolver(e){const t=this.buildRequest();return t.autoCreate=!1,Tt(e,t)}toJSON(){return{signInMethod:this.signInMethod,providerId:this.providerId,pendingToken:this.pendingToken}}static fromJSON(e){const t="string"===typeof e?JSON.parse(e):e,{providerId:n,signInMethod:i,pendingToken:r}=t;return n&&i&&r&&n===i?new Wt(n,r):null}static _create(e,t){return new Wt(e,t)}buildRequest(){return{requestUri:Ht,returnSecureToken:!0,pendingToken:this.pendingToken}}} +const Ht="http://localhost";class Wt extends ut{constructor(e,t){super(e,e),this.pendingToken=t}_getIdTokenResponse(e){const t=this.buildRequest();return Tt(e,t)}_linkToIdToken(e,t){const n=this.buildRequest();return n.idToken=t,Tt(e,n)}_getReauthenticationResolver(e){const t=this.buildRequest();return t.autoCreate=!1,Tt(e,t)}toJSON(){return{signInMethod:this.signInMethod,providerId:this.providerId,pendingToken:this.pendingToken}}static fromJSON(e){const t="string"===typeof e?JSON.parse(e):e,{providerId:n,signInMethod:i,pendingToken:r}=t;return n&&i&&r&&n===i?new Wt(n,r):null}static _create(e,t){return new Wt(e,t)}buildRequest(){return{requestUri:Ht,returnSecureToken:!0,pendingToken:this.pendingToken}}} /** * @license * Copyright 2020 Google LLC @@ -1524,7 +1524,7 @@ async function Gt(e,t){return j(e,"POST","/v1/accounts:signUp",F(e,t))} * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */async function ln(e,t){return j(e,"POST","/v1/accounts:signInWithCustomToken",F(e,t))} + */async function un(e,t){return j(e,"POST","/v1/accounts:signInWithCustomToken",F(e,t))} /** * @license * Copyright 2020 Google LLC @@ -1540,7 +1540,7 @@ async function Gt(e,t){return j(e,"POST","/v1/accounts:signUp",F(e,t))} * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */async function un(e,t){const n=We(e),i=await ln(n,{token:t,returnSecureToken:!0}),r=await Kt._fromIdTokenResponse(n,"signIn",i);return await n._updateCurrentUser(r.user),r} + */async function ln(e,t){const n=We(e),i=await un(n,{token:t,returnSecureToken:!0}),r=await Kt._fromIdTokenResponse(n,"signIn",i);return await n._updateCurrentUser(r.user),r} /** * @license * Copyright 2020 Google LLC @@ -1588,7 +1588,7 @@ async function Gt(e,t){return j(e,"POST","/v1/accounts:signUp",F(e,t))} * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */async function mn(e){const t=We(e);t._getPasswordPolicyInternal()&&await t._updatePasswordPolicy()}async function gn(e,t,n){const i=We(e),r={requestType:"PASSWORD_RESET",email:t,clientType:"CLIENT_TYPE_WEB"};n&&fn(i,r,n),await nt(i,r,"getOobCode",vt)}async function vn(e,t,n){await ut((0,r.m9)(e),{oobCode:t,newPassword:n}).catch((async t=>{throw"auth/password-does-not-meet-requirements"===t.code&&mn(e),t}))}async function _n(e,t){await pt((0,r.m9)(e),{oobCode:t})}async function yn(e,t){const n=(0,r.m9)(e),i=await ut(n,{oobCode:t}),s=i.requestType;switch(E(s,n,"internal-error"),s){case"EMAIL_SIGNIN":break;case"VERIFY_AND_CHANGE_EMAIL":E(i.newEmail,n,"internal-error");break;case"REVERT_SECOND_FACTOR_ADDITION":E(i.mfaInfo,n,"internal-error");default:E(i.email,n,"internal-error")}let o=null;return i.mfaInfo&&(o=dn._fromServerResponse(We(n),i.mfaInfo)),{data:{email:("VERIFY_AND_CHANGE_EMAIL"===i.requestType?i.newEmail:i.email)||null,previousEmail:("VERIFY_AND_CHANGE_EMAIL"===i.requestType?i.email:i.newEmail)||null,multiFactorInfo:o},operation:s}}async function In(e,t){const{data:n}=await yn((0,r.m9)(e),t);return n.email}async function wn(e,t,n){const i=We(e),r={returnSecureToken:!0,email:t,password:n,clientType:"CLIENT_TYPE_WEB"},s=nt(i,r,"signUpPassword",Gt),o=await s.catch((t=>{throw"auth/password-does-not-meet-requirements"===t.code&&mn(e),t})),a=await Kt._fromIdTokenResponse(i,"signIn",o);return await i._updateCurrentUser(a.user),a}function bn(e,t,n){return on((0,r.m9)(e),Mt.credential(t,n)).catch((async t=>{throw"auth/password-does-not-meet-requirements"===t.code&&mn(e),t}))} + */async function mn(e){const t=We(e);t._getPasswordPolicyInternal()&&await t._updatePasswordPolicy()}async function gn(e,t,n){const i=We(e),r={requestType:"PASSWORD_RESET",email:t,clientType:"CLIENT_TYPE_WEB"};n&&fn(i,r,n),await nt(i,r,"getOobCode",vt)}async function vn(e,t,n){await lt((0,r.m9)(e),{oobCode:t,newPassword:n}).catch((async t=>{throw"auth/password-does-not-meet-requirements"===t.code&&mn(e),t}))}async function _n(e,t){await pt((0,r.m9)(e),{oobCode:t})}async function yn(e,t){const n=(0,r.m9)(e),i=await lt(n,{oobCode:t}),s=i.requestType;switch(E(s,n,"internal-error"),s){case"EMAIL_SIGNIN":break;case"VERIFY_AND_CHANGE_EMAIL":E(i.newEmail,n,"internal-error");break;case"REVERT_SECOND_FACTOR_ADDITION":E(i.mfaInfo,n,"internal-error");default:E(i.email,n,"internal-error")}let o=null;return i.mfaInfo&&(o=dn._fromServerResponse(We(n),i.mfaInfo)),{data:{email:("VERIFY_AND_CHANGE_EMAIL"===i.requestType?i.newEmail:i.email)||null,previousEmail:("VERIFY_AND_CHANGE_EMAIL"===i.requestType?i.email:i.newEmail)||null,multiFactorInfo:o},operation:s}}async function In(e,t){const{data:n}=await yn((0,r.m9)(e),t);return n.email}async function wn(e,t,n){const i=We(e),r={returnSecureToken:!0,email:t,password:n,clientType:"CLIENT_TYPE_WEB"},s=nt(i,r,"signUpPassword",Gt),o=await s.catch((t=>{throw"auth/password-does-not-meet-requirements"===t.code&&mn(e),t})),a=await Kt._fromIdTokenResponse(i,"signIn",o);return await i._updateCurrentUser(a.user),a}function bn(e,t,n){return on((0,r.m9)(e),Mt.credential(t,n)).catch((async t=>{throw"auth/password-does-not-meet-requirements"===t.code&&mn(e),t}))} /** * @license * Copyright 2020 Google LLC @@ -1813,7 +1813,7 @@ class Wn{constructor(e,t,n){this.type=e,this.credential=t,this.user=n}static _fr * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */function li(e){return Promise.all(e.map((async e=>{try{const t=await e;return{fulfilled:!0,value:t}}catch(t){return{fulfilled:!1,reason:t}}})))} + */function ui(e){return Promise.all(e.map((async e=>{try{const t=await e;return{fulfilled:!0,value:t}}catch(t){return{fulfilled:!1,reason:t}}})))} /** * @license * Copyright 2019 Google LLC @@ -1829,7 +1829,7 @@ class Wn{constructor(e,t,n){this.type=e,this.credential=t,this.user=n}static _fr * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */class ui{constructor(e){this.eventTarget=e,this.handlersMap={},this.boundEventHandler=this.handleEvent.bind(this)}static _getInstance(e){const t=this.receivers.find((t=>t.isListeningto(e)));if(t)return t;const n=new ui(e);return this.receivers.push(n),n}isListeningto(e){return this.eventTarget===e}async handleEvent(e){const t=e,{eventId:n,eventType:i,data:r}=t.data,s=this.handlersMap[i];if(!(null===s||void 0===s?void 0:s.size))return;t.ports[0].postMessage({status:"ack",eventId:n,eventType:i});const o=Array.from(s).map((async e=>e(t.origin,r))),a=await li(o);t.ports[0].postMessage({status:"done",eventId:n,eventType:i,response:a})}_subscribe(e,t){0===Object.keys(this.handlersMap).length&&this.eventTarget.addEventListener("message",this.boundEventHandler),this.handlersMap[e]||(this.handlersMap[e]=new Set),this.handlersMap[e].add(t)}_unsubscribe(e,t){this.handlersMap[e]&&t&&this.handlersMap[e].delete(t),t&&0!==this.handlersMap[e].size||delete this.handlersMap[e],0===Object.keys(this.handlersMap).length&&this.eventTarget.removeEventListener("message",this.boundEventHandler)}} + */class li{constructor(e){this.eventTarget=e,this.handlersMap={},this.boundEventHandler=this.handleEvent.bind(this)}static _getInstance(e){const t=this.receivers.find((t=>t.isListeningto(e)));if(t)return t;const n=new li(e);return this.receivers.push(n),n}isListeningto(e){return this.eventTarget===e}async handleEvent(e){const t=e,{eventId:n,eventType:i,data:r}=t.data,s=this.handlersMap[i];if(!(null===s||void 0===s?void 0:s.size))return;t.ports[0].postMessage({status:"ack",eventId:n,eventType:i});const o=Array.from(s).map((async e=>e(t.origin,r))),a=await ui(o);t.ports[0].postMessage({status:"done",eventId:n,eventType:i,response:a})}_subscribe(e,t){0===Object.keys(this.handlersMap).length&&this.eventTarget.addEventListener("message",this.boundEventHandler),this.handlersMap[e]||(this.handlersMap[e]=new Set),this.handlersMap[e].add(t)}_unsubscribe(e,t){this.handlersMap[e]&&t&&this.handlersMap[e].delete(t),t&&0!==this.handlersMap[e].size||delete this.handlersMap[e],0===Object.keys(this.handlersMap).length&&this.eventTarget.removeEventListener("message",this.boundEventHandler)}} /** * @license * Copyright 2020 Google LLC @@ -1862,7 +1862,7 @@ function di(e="",t=10){let n="";for(let i=0;i{const c=di("",20);i.port1.start();const l=setTimeout((()=>{a(new Error("unsupported_event"))}),n);s={messageChannel:i,onMessage(e){const t=e;if(t.data.eventId===c)switch(t.data.status){case"ack":clearTimeout(l),r=setTimeout((()=>{a(new Error("timeout"))}),3e3);break;case"done":clearTimeout(r),o(t.data.response);break;default:clearTimeout(l),clearTimeout(r),a(new Error("invalid_response"));break}}},this.handlers.add(s),i.port1.addEventListener("message",s.onMessage),this.target.postMessage({eventType:e,eventId:c,data:t},[i.port2])})).finally((()=>{s&&this.removeMessageHandler(s)}))}} + */li.receivers=[];class hi{constructor(e){this.target=e,this.handlers=new Set}removeMessageHandler(e){e.messageChannel&&(e.messageChannel.port1.removeEventListener("message",e.onMessage),e.messageChannel.port1.close()),this.handlers.delete(e)}async _send(e,t,n=50){const i="undefined"!==typeof MessageChannel?new MessageChannel:null;if(!i)throw new Error("connection_unavailable");let r,s;return new Promise(((o,a)=>{const c=di("",20);i.port1.start();const u=setTimeout((()=>{a(new Error("unsupported_event"))}),n);s={messageChannel:i,onMessage(e){const t=e;if(t.data.eventId===c)switch(t.data.status){case"ack":clearTimeout(u),r=setTimeout((()=>{a(new Error("timeout"))}),3e3);break;case"done":clearTimeout(r),o(t.data.response);break;default:clearTimeout(u),clearTimeout(r),a(new Error("invalid_response"));break}}},this.handlers.add(s),i.port1.addEventListener("message",s.onMessage),this.target.postMessage({eventType:e,eventId:c,data:t},[i.port2])})).finally((()=>{s&&this.removeMessageHandler(s)}))}} /** * @license * Copyright 2020 Google LLC @@ -1910,7 +1910,7 @@ function di(e="",t=10){let n="";for(let i=0;i{this.request.addEventListener("success",(()=>{e(this.request.result)})),this.request.addEventListener("error",(()=>{t(this.request.error)}))}))}}function Ei(e,t){return e.transaction([wi],t?"readwrite":"readonly").objectStore(wi)}function ki(){const e=indexedDB.deleteDatabase(yi);return new Ti(e).toPromise()}function Si(){const e=indexedDB.open(yi,Ii);return new Promise(((t,n)=>{e.addEventListener("error",(()=>{n(e.error)})),e.addEventListener("upgradeneeded",(()=>{const t=e.result;try{t.createObjectStore(wi,{keyPath:bi})}catch(i){n(i)}})),e.addEventListener("success",(async()=>{const n=e.result;n.objectStoreNames.contains(wi)?t(n):(n.close(),await ki(),t(await Si()))}))}))}async function Ai(e,t,n){const i=Ei(e,!0).put({[bi]:t,value:n});return new Ti(i).toPromise()}async function Ci(e,t){const n=Ei(e,!1).get(t),i=await new Ti(n).toPromise();return void 0===i?null:i.value}function Ri(e,t){const n=Ei(e,!0).delete(t);return new Ti(n).toPromise()}const Pi=800,Oi=3;class Ni{constructor(){this.type="LOCAL",this._shouldAllowMigration=!0,this.listeners={},this.localCache={},this.pollTimer=null,this.pendingWrites=0,this.receiver=null,this.sender=null,this.serviceWorkerReceiverAvailable=!1,this.activeServiceWorker=null,this._workerInitializationPromise=this.initializeServiceWorkerMessaging().then((()=>{}),(()=>{}))}async _openDb(){return this.db||(this.db=await Si()),this.db}async _withRetries(e){let t=0;while(1)try{const t=await this._openDb();return await e(t)}catch(n){if(t++>Oi)throw n;this.db&&(this.db.close(),this.db=void 0)}}async initializeServiceWorkerMessaging(){return mi()?this.initializeReceiver():this.initializeSender()}async initializeReceiver(){this.receiver=ui._getInstance(_i()),this.receiver._subscribe("keyChanged",(async(e,t)=>{const n=await this._poll();return{keyProcessed:n.includes(t.key)}})),this.receiver._subscribe("ping",(async(e,t)=>["keyChanged"]))}async initializeSender(){var e,t;if(this.activeServiceWorker=await gi(),!this.activeServiceWorker)return;this.sender=new hi(this.activeServiceWorker);const n=await this.sender._send("ping",{},800);n&&(null===(e=n[0])||void 0===e?void 0:e.fulfilled)&&(null===(t=n[0])||void 0===t?void 0:t.value.includes("keyChanged"))&&(this.serviceWorkerReceiverAvailable=!0)}async notifyServiceWorker(e){if(this.sender&&this.activeServiceWorker&&vi()===this.activeServiceWorker)try{await this.sender._send("keyChanged",{key:e},this.serviceWorkerReceiverAvailable?800:50)}catch(t){}}async _isAvailable(){try{if(!indexedDB)return!1;const e=await Si();return await Ai(e,ei,"1"),await Ri(e,ei),!0}catch(e){}return!1}async _withPendingWrite(e){this.pendingWrites++;try{await e()}finally{this.pendingWrites--}}async _set(e,t){return this._withPendingWrite((async()=>(await this._withRetries((n=>Ai(n,e,t))),this.localCache[e]=t,this.notifyServiceWorker(e))))}async _get(e){const t=await this._withRetries((t=>Ci(t,e)));return this.localCache[e]=t,t}async _remove(e){return this._withPendingWrite((async()=>(await this._withRetries((t=>Ri(t,e))),delete this.localCache[e],this.notifyServiceWorker(e))))}async _poll(){const e=await this._withRetries((e=>{const t=Ei(e,!1).getAll();return new Ti(t).toPromise()}));if(!e)return[];if(0!==this.pendingWrites)return[];const t=[],n=new Set;if(0!==e.length)for(const{fbase_key:i,value:r}of e)n.add(i),JSON.stringify(this.localCache[i])!==JSON.stringify(r)&&(this.notifyListeners(i,r),t.push(i));for(const i of Object.keys(this.localCache))this.localCache[i]&&!n.has(i)&&(this.notifyListeners(i,null),t.push(i));return t}notifyListeners(e,t){this.localCache[e]=t;const n=this.listeners[e];if(n)for(const i of Array.from(n))i(t)}startPolling(){this.stopPolling(),this.pollTimer=setInterval((async()=>this._poll()),Pi)}stopPolling(){this.pollTimer&&(clearInterval(this.pollTimer),this.pollTimer=null)}_addListener(e,t){0===Object.keys(this.listeners).length&&this.startPolling(),this.listeners[e]||(this.listeners[e]=new Set,this._get(e)),this.listeners[e].add(t)}_removeListener(e,t){this.listeners[e]&&(this.listeners[e].delete(t),0===this.listeners[e].size&&delete this.listeners[e]),0===Object.keys(this.listeners).length&&this.stopPolling()}}Ni.type="LOCAL";const Li=Ni; + */const yi="firebaseLocalStorageDb",Ii=1,wi="firebaseLocalStorage",bi="fbase_key";class Ti{constructor(e){this.request=e}toPromise(){return new Promise(((e,t)=>{this.request.addEventListener("success",(()=>{e(this.request.result)})),this.request.addEventListener("error",(()=>{t(this.request.error)}))}))}}function Ei(e,t){return e.transaction([wi],t?"readwrite":"readonly").objectStore(wi)}function ki(){const e=indexedDB.deleteDatabase(yi);return new Ti(e).toPromise()}function Si(){const e=indexedDB.open(yi,Ii);return new Promise(((t,n)=>{e.addEventListener("error",(()=>{n(e.error)})),e.addEventListener("upgradeneeded",(()=>{const t=e.result;try{t.createObjectStore(wi,{keyPath:bi})}catch(i){n(i)}})),e.addEventListener("success",(async()=>{const n=e.result;n.objectStoreNames.contains(wi)?t(n):(n.close(),await ki(),t(await Si()))}))}))}async function Ai(e,t,n){const i=Ei(e,!0).put({[bi]:t,value:n});return new Ti(i).toPromise()}async function Ci(e,t){const n=Ei(e,!1).get(t),i=await new Ti(n).toPromise();return void 0===i?null:i.value}function Ri(e,t){const n=Ei(e,!0).delete(t);return new Ti(n).toPromise()}const Pi=800,Oi=3;class Ni{constructor(){this.type="LOCAL",this._shouldAllowMigration=!0,this.listeners={},this.localCache={},this.pollTimer=null,this.pendingWrites=0,this.receiver=null,this.sender=null,this.serviceWorkerReceiverAvailable=!1,this.activeServiceWorker=null,this._workerInitializationPromise=this.initializeServiceWorkerMessaging().then((()=>{}),(()=>{}))}async _openDb(){return this.db||(this.db=await Si()),this.db}async _withRetries(e){let t=0;while(1)try{const t=await this._openDb();return await e(t)}catch(n){if(t++>Oi)throw n;this.db&&(this.db.close(),this.db=void 0)}}async initializeServiceWorkerMessaging(){return mi()?this.initializeReceiver():this.initializeSender()}async initializeReceiver(){this.receiver=li._getInstance(_i()),this.receiver._subscribe("keyChanged",(async(e,t)=>{const n=await this._poll();return{keyProcessed:n.includes(t.key)}})),this.receiver._subscribe("ping",(async(e,t)=>["keyChanged"]))}async initializeSender(){var e,t;if(this.activeServiceWorker=await gi(),!this.activeServiceWorker)return;this.sender=new hi(this.activeServiceWorker);const n=await this.sender._send("ping",{},800);n&&(null===(e=n[0])||void 0===e?void 0:e.fulfilled)&&(null===(t=n[0])||void 0===t?void 0:t.value.includes("keyChanged"))&&(this.serviceWorkerReceiverAvailable=!0)}async notifyServiceWorker(e){if(this.sender&&this.activeServiceWorker&&vi()===this.activeServiceWorker)try{await this.sender._send("keyChanged",{key:e},this.serviceWorkerReceiverAvailable?800:50)}catch(t){}}async _isAvailable(){try{if(!indexedDB)return!1;const e=await Si();return await Ai(e,ei,"1"),await Ri(e,ei),!0}catch(e){}return!1}async _withPendingWrite(e){this.pendingWrites++;try{await e()}finally{this.pendingWrites--}}async _set(e,t){return this._withPendingWrite((async()=>(await this._withRetries((n=>Ai(n,e,t))),this.localCache[e]=t,this.notifyServiceWorker(e))))}async _get(e){const t=await this._withRetries((t=>Ci(t,e)));return this.localCache[e]=t,t}async _remove(e){return this._withPendingWrite((async()=>(await this._withRetries((t=>Ri(t,e))),delete this.localCache[e],this.notifyServiceWorker(e))))}async _poll(){const e=await this._withRetries((e=>{const t=Ei(e,!1).getAll();return new Ti(t).toPromise()}));if(!e)return[];if(0!==this.pendingWrites)return[];const t=[],n=new Set;if(0!==e.length)for(const{fbase_key:i,value:r}of e)n.add(i),JSON.stringify(this.localCache[i])!==JSON.stringify(r)&&(this.notifyListeners(i,r),t.push(i));for(const i of Object.keys(this.localCache))this.localCache[i]&&!n.has(i)&&(this.notifyListeners(i,null),t.push(i));return t}notifyListeners(e,t){this.localCache[e]=t;const n=this.listeners[e];if(n)for(const i of Array.from(n))i(t)}startPolling(){this.stopPolling(),this.pollTimer=setInterval((async()=>this._poll()),Pi)}stopPolling(){this.pollTimer&&(clearInterval(this.pollTimer),this.pollTimer=null)}_addListener(e,t){0===Object.keys(this.listeners).length&&this.startPolling(),this.listeners[e]||(this.listeners[e]=new Set,this._get(e)),this.listeners[e].add(t)}_removeListener(e,t){this.listeners[e]&&(this.listeners[e].delete(t),0===this.listeners[e].size&&delete this.listeners[e]),0===Object.keys(this.listeners).length&&this.stopPolling()}}Ni.type="LOCAL";const Li=Ni; /** * @license * Copyright 2020 Google LLC @@ -2039,7 +2039,7 @@ function sr(e,t){return t?_e(t):(E(e._popupRedirectResolver,e,"argument-error"), * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */rr.PROVIDER_ID="phone",rr.PHONE_SIGN_IN_METHOD="phone";class or extends lt{constructor(e){super("custom","custom"),this.params=e}_getIdTokenResponse(e){return Tt(e,this._buildIdpRequest())}_linkToIdToken(e,t){return Tt(e,this._buildIdpRequest(t))}_getReauthenticationResolver(e){return Tt(e,this._buildIdpRequest())}_buildIdpRequest(e){const t={requestUri:this.params.requestUri,sessionId:this.params.sessionId,postBody:this.params.postBody,tenantId:this.params.tenantId,pendingToken:this.params.pendingToken,returnSecureToken:!0,returnIdpCredential:!0};return e&&(t.idToken=e),t}}function ar(e){return sn(e.auth,new or(e),e.bypassAuthState)}function cr(e){const{auth:t,user:n}=e;return E(n,t,"internal-error"),rn(n,new or(e),e.bypassAuthState)}async function lr(e){const{auth:t,user:n}=e;return E(n,t,"internal-error"),tn(n,new or(e),e.bypassAuthState)} + */rr.PROVIDER_ID="phone",rr.PHONE_SIGN_IN_METHOD="phone";class or extends ut{constructor(e){super("custom","custom"),this.params=e}_getIdTokenResponse(e){return Tt(e,this._buildIdpRequest())}_linkToIdToken(e,t){return Tt(e,this._buildIdpRequest(t))}_getReauthenticationResolver(e){return Tt(e,this._buildIdpRequest())}_buildIdpRequest(e){const t={requestUri:this.params.requestUri,sessionId:this.params.sessionId,postBody:this.params.postBody,tenantId:this.params.tenantId,pendingToken:this.params.pendingToken,returnSecureToken:!0,returnIdpCredential:!0};return e&&(t.idToken=e),t}}function ar(e){return sn(e.auth,new or(e),e.bypassAuthState)}function cr(e){const{auth:t,user:n}=e;return E(n,t,"internal-error"),rn(n,new or(e),e.bypassAuthState)}async function ur(e){const{auth:t,user:n}=e;return E(n,t,"internal-error"),tn(n,new or(e),e.bypassAuthState)} /** * @license * Copyright 2020 Google LLC @@ -2055,7 +2055,7 @@ function sr(e,t){return t?_e(t):(E(e._popupRedirectResolver,e,"argument-error"), * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */class ur{constructor(e,t,n,i,r=!1){this.auth=e,this.resolver=n,this.user=i,this.bypassAuthState=r,this.pendingPromise=null,this.eventManager=null,this.filter=Array.isArray(t)?t:[t]}execute(){return new Promise((async(e,t)=>{this.pendingPromise={resolve:e,reject:t};try{this.eventManager=await this.resolver._initialize(this.auth),await this.onExecution(),this.eventManager.registerConsumer(this)}catch(n){this.reject(n)}}))}async onAuthEvent(e){const{urlResponse:t,sessionId:n,postBody:i,tenantId:r,error:s,type:o}=e;if(s)return void this.reject(s);const a={auth:this.auth,requestUri:t,sessionId:n,tenantId:r||void 0,postBody:i||void 0,user:this.user,bypassAuthState:this.bypassAuthState};try{this.resolve(await this.getIdpTask(o)(a))}catch(c){this.reject(c)}}onError(e){this.reject(e)}getIdpTask(e){switch(e){case"signInViaPopup":case"signInViaRedirect":return ar;case"linkViaPopup":case"linkViaRedirect":return lr;case"reauthViaPopup":case"reauthViaRedirect":return cr;default:y(this.auth,"internal-error")}}resolve(e){S(this.pendingPromise,"Pending promise was never set"),this.pendingPromise.resolve(e),this.unregisterAndCleanUp()}reject(e){S(this.pendingPromise,"Pending promise was never set"),this.pendingPromise.reject(e),this.unregisterAndCleanUp()}unregisterAndCleanUp(){this.eventManager&&this.eventManager.unregisterConsumer(this),this.pendingPromise=null,this.cleanUp()}} + */class lr{constructor(e,t,n,i,r=!1){this.auth=e,this.resolver=n,this.user=i,this.bypassAuthState=r,this.pendingPromise=null,this.eventManager=null,this.filter=Array.isArray(t)?t:[t]}execute(){return new Promise((async(e,t)=>{this.pendingPromise={resolve:e,reject:t};try{this.eventManager=await this.resolver._initialize(this.auth),await this.onExecution(),this.eventManager.registerConsumer(this)}catch(n){this.reject(n)}}))}async onAuthEvent(e){const{urlResponse:t,sessionId:n,postBody:i,tenantId:r,error:s,type:o}=e;if(s)return void this.reject(s);const a={auth:this.auth,requestUri:t,sessionId:n,tenantId:r||void 0,postBody:i||void 0,user:this.user,bypassAuthState:this.bypassAuthState};try{this.resolve(await this.getIdpTask(o)(a))}catch(c){this.reject(c)}}onError(e){this.reject(e)}getIdpTask(e){switch(e){case"signInViaPopup":case"signInViaRedirect":return ar;case"linkViaPopup":case"linkViaRedirect":return ur;case"reauthViaPopup":case"reauthViaRedirect":return cr;default:y(this.auth,"internal-error")}}resolve(e){S(this.pendingPromise,"Pending promise was never set"),this.pendingPromise.resolve(e),this.unregisterAndCleanUp()}reject(e){S(this.pendingPromise,"Pending promise was never set"),this.pendingPromise.reject(e),this.unregisterAndCleanUp()}unregisterAndCleanUp(){this.eventManager&&this.eventManager.unregisterConsumer(this),this.pendingPromise=null,this.cleanUp()}} /** * @license * Copyright 2020 Google LLC @@ -2071,7 +2071,7 @@ function sr(e,t){return t?_e(t):(E(e._popupRedirectResolver,e,"argument-error"), * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */const dr=new N(2e3,1e4);async function hr(e,t,n){const i=We(e);b(e,t,Ut);const r=sr(i,n),s=new mr(i,"signInViaPopup",t,r);return s.executeNotNull()}async function pr(e,t,n){const i=(0,r.m9)(e);b(i.auth,t,Ut);const s=sr(i.auth,n),o=new mr(i.auth,"reauthViaPopup",t,s,i);return o.executeNotNull()}async function fr(e,t,n){const i=(0,r.m9)(e);b(i.auth,t,Ut);const s=sr(i.auth,n),o=new mr(i.auth,"linkViaPopup",t,s,i);return o.executeNotNull()}class mr extends ur{constructor(e,t,n,i,r){super(e,t,i,r),this.provider=n,this.authWindow=null,this.pollId=null,mr.currentPopupAction&&mr.currentPopupAction.cancel(),mr.currentPopupAction=this}async executeNotNull(){const e=await this.execute();return E(e,this.auth,"internal-error"),e}async onExecution(){S(1===this.filter.length,"Popup operations only handle one event");const e=di();this.authWindow=await this.resolver._openPopup(this.auth,this.provider,this.filter[0],e),this.authWindow.associatedEvent=e,this.resolver._originValidation(this.auth).catch((e=>{this.reject(e)})),this.resolver._isIframeWebStorageSupported(this.auth,(e=>{e||this.reject(I(this.auth,"web-storage-unsupported"))})),this.pollUserCancellation()}get eventId(){var e;return(null===(e=this.authWindow)||void 0===e?void 0:e.associatedEvent)||null}cancel(){this.reject(I(this.auth,"cancelled-popup-request"))}cleanUp(){this.authWindow&&this.authWindow.close(),this.pollId&&window.clearTimeout(this.pollId),this.authWindow=null,this.pollId=null,mr.currentPopupAction=null}pollUserCancellation(){const e=()=>{var t,n;(null===(n=null===(t=this.authWindow)||void 0===t?void 0:t.window)||void 0===n?void 0:n.closed)?this.pollId=window.setTimeout((()=>{this.pollId=null,this.reject(I(this.auth,"popup-closed-by-user"))}),8e3):this.pollId=window.setTimeout(e,dr.get())};e()}}mr.currentPopupAction=null; + */const dr=new N(2e3,1e4);async function hr(e,t,n){const i=We(e);b(e,t,Ut);const r=sr(i,n),s=new mr(i,"signInViaPopup",t,r);return s.executeNotNull()}async function pr(e,t,n){const i=(0,r.m9)(e);b(i.auth,t,Ut);const s=sr(i.auth,n),o=new mr(i.auth,"reauthViaPopup",t,s,i);return o.executeNotNull()}async function fr(e,t,n){const i=(0,r.m9)(e);b(i.auth,t,Ut);const s=sr(i.auth,n),o=new mr(i.auth,"linkViaPopup",t,s,i);return o.executeNotNull()}class mr extends lr{constructor(e,t,n,i,r){super(e,t,i,r),this.provider=n,this.authWindow=null,this.pollId=null,mr.currentPopupAction&&mr.currentPopupAction.cancel(),mr.currentPopupAction=this}async executeNotNull(){const e=await this.execute();return E(e,this.auth,"internal-error"),e}async onExecution(){S(1===this.filter.length,"Popup operations only handle one event");const e=di();this.authWindow=await this.resolver._openPopup(this.auth,this.provider,this.filter[0],e),this.authWindow.associatedEvent=e,this.resolver._originValidation(this.auth).catch((e=>{this.reject(e)})),this.resolver._isIframeWebStorageSupported(this.auth,(e=>{e||this.reject(I(this.auth,"web-storage-unsupported"))})),this.pollUserCancellation()}get eventId(){var e;return(null===(e=this.authWindow)||void 0===e?void 0:e.associatedEvent)||null}cancel(){this.reject(I(this.auth,"cancelled-popup-request"))}cleanUp(){this.authWindow&&this.authWindow.close(),this.pollId&&window.clearTimeout(this.pollId),this.authWindow=null,this.pollId=null,mr.currentPopupAction=null}pollUserCancellation(){const e=()=>{var t,n;(null===(n=null===(t=this.authWindow)||void 0===t?void 0:t.window)||void 0===n?void 0:n.closed)?this.pollId=window.setTimeout((()=>{this.pollId=null,this.reject(I(this.auth,"popup-closed-by-user"))}),8e3):this.pollId=window.setTimeout(e,dr.get())};e()}}mr.currentPopupAction=null; /** * @license * Copyright 2020 Google LLC @@ -2088,7 +2088,7 @@ function sr(e,t){return t?_e(t):(E(e._popupRedirectResolver,e,"argument-error"), * See the License for the specific language governing permissions and * limitations under the License. */ -const gr="pendingRedirect",vr=new Map;class _r extends ur{constructor(e,t,n=!1){super(e,["signInViaRedirect","linkViaRedirect","reauthViaRedirect","unknown"],t,void 0,n),this.eventId=null}async execute(){let e=vr.get(this.auth._key());if(!e){try{const t=await yr(this.resolver,this.auth),n=t?await super.execute():null;e=()=>Promise.resolve(n)}catch(t){e=()=>Promise.reject(t)}vr.set(this.auth._key(),e)}return this.bypassAuthState||vr.set(this.auth._key(),(()=>Promise.resolve(null))),e()}async onAuthEvent(e){if("signInViaRedirect"===e.type)return super.onAuthEvent(e);if("unknown"!==e.type){if(e.eventId){const t=await this.auth._redirectUserForId(e.eventId);if(t)return this.user=t,super.onAuthEvent(e);this.resolve(null)}}else this.resolve(null)}async onExecution(){}cleanUp(){}}async function yr(e,t){const n=Er(t),i=Tr(e);if(!await i._isAvailable())return!1;const r="true"===await i._get(n);return await i._remove(n),r}async function Ir(e,t){return Tr(e)._set(Er(t),"true")}function wr(){vr.clear()}function br(e,t){vr.set(e._key(),t)}function Tr(e){return _e(e._redirectPersistence)}function Er(e){return we(gr,e.config.apiKey,e.name)} +const gr="pendingRedirect",vr=new Map;class _r extends lr{constructor(e,t,n=!1){super(e,["signInViaRedirect","linkViaRedirect","reauthViaRedirect","unknown"],t,void 0,n),this.eventId=null}async execute(){let e=vr.get(this.auth._key());if(!e){try{const t=await yr(this.resolver,this.auth),n=t?await super.execute():null;e=()=>Promise.resolve(n)}catch(t){e=()=>Promise.reject(t)}vr.set(this.auth._key(),e)}return this.bypassAuthState||vr.set(this.auth._key(),(()=>Promise.resolve(null))),e()}async onAuthEvent(e){if("signInViaRedirect"===e.type)return super.onAuthEvent(e);if("unknown"!==e.type){if(e.eventId){const t=await this.auth._redirectUserForId(e.eventId);if(t)return this.user=t,super.onAuthEvent(e);this.resolve(null)}}else this.resolve(null)}async onExecution(){}cleanUp(){}}async function yr(e,t){const n=Er(t),i=Tr(e);if(!await i._isAvailable())return!1;const r="true"===await i._get(n);return await i._remove(n),r}async function Ir(e,t){return Tr(e)._set(Er(t),"true")}function wr(){vr.clear()}function br(e,t){vr.set(e._key(),t)}function Tr(e){return _e(e._redirectPersistence)}function Er(e){return we(gr,e.config.apiKey,e.name)} /** * @license * Copyright 2020 Google LLC @@ -2200,7 +2200,7 @@ const gr="pendingRedirect",vr=new Map;class _r extends ur{constructor(e,t,n=!1){ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */const ns={location:"yes",resizable:"yes",statusbar:"yes",toolbar:"no"},is=500,rs=600,ss="_blank",os="http://localhost";class as{constructor(e){this.window=e,this.associatedEvent=null}close(){if(this.window)try{this.window.close()}catch(e){}}}function cs(e,t,n,i=is,s=rs){const o=Math.max((window.screen.availHeight-s)/2,0).toString(),a=Math.max((window.screen.availWidth-i)/2,0).toString();let c="";const l=Object.assign(Object.assign({},ns),{width:i.toString(),height:s.toString(),top:o,left:a}),u=(0,r.z$)().toLowerCase();n&&(c=Se(u)?ss:n),Ee(u)&&(t=t||os,l.scrollbars="yes");const d=Object.entries(l).reduce(((e,[t,n])=>`${e}${t}=${n},`),"");if(Le(u)&&"_self"!==c)return ls(t||"",c),new as(null);const h=window.open(t||"",c,d);E(h,e,"popup-blocked");try{h.focus()}catch(p){}return new as(h)}function ls(e,t){const n=document.createElement("a");n.href=e,n.target=t;const i=document.createEvent("MouseEvent");i.initMouseEvent("click",!0,!0,window,1,0,0,0,0,!1,!1,!1,!1,1,null),n.dispatchEvent(i)} + */const ns={location:"yes",resizable:"yes",statusbar:"yes",toolbar:"no"},is=500,rs=600,ss="_blank",os="http://localhost";class as{constructor(e){this.window=e,this.associatedEvent=null}close(){if(this.window)try{this.window.close()}catch(e){}}}function cs(e,t,n,i=is,s=rs){const o=Math.max((window.screen.availHeight-s)/2,0).toString(),a=Math.max((window.screen.availWidth-i)/2,0).toString();let c="";const u=Object.assign(Object.assign({},ns),{width:i.toString(),height:s.toString(),top:o,left:a}),l=(0,r.z$)().toLowerCase();n&&(c=Se(l)?ss:n),Ee(l)&&(t=t||os,u.scrollbars="yes");const d=Object.entries(u).reduce(((e,[t,n])=>`${e}${t}=${n},`),"");if(Le(l)&&"_self"!==c)return us(t||"",c),new as(null);const h=window.open(t||"",c,d);E(h,e,"popup-blocked");try{h.focus()}catch(p){}return new as(h)}function us(e,t){const n=document.createElement("a");n.href=e,n.target=t;const i=document.createEvent("MouseEvent");i.initMouseEvent("click",!0,!0,window,1,0,0,0,0,!1,!1,!1,!1,1,null),n.dispatchEvent(i)} /** * @license * Copyright 2021 Google LLC @@ -2216,7 +2216,7 @@ const gr="pendingRedirect",vr=new Map;class _r extends ur{constructor(e,t,n=!1){ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */const us="__/auth/handler",ds="emulator/auth/handler",hs=encodeURIComponent("fac");async function ps(e,t,n,i,o,a){E(e.config.authDomain,e,"auth-domain-config-required"),E(e.config.apiKey,e,"invalid-api-key");const c={apiKey:e.config.apiKey,appName:e.name,authType:n,redirectUrl:i,v:s.SDK_VERSION,eventId:o};if(t instanceof Ut){t.setDefaultLanguage(e.languageCode),c.providerId=t.providerId||"",(0,r.xb)(t.getCustomParameters())||(c.customParameters=JSON.stringify(t.getCustomParameters()));for(const[e,t]of Object.entries(a||{}))c[e]=t}if(t instanceof Ft){const e=t.getScopes().filter((e=>""!==e));e.length>0&&(c.scopes=e.join(","))}e.tenantId&&(c.tid=e.tenantId);const l=c;for(const r of Object.keys(l))void 0===l[r]&&delete l[r];const u=await e._getAppCheckToken(),d=u?`#${hs}=${encodeURIComponent(u)}`:"";return`${fs(e)}?${(0,r.xO)(l).slice(1)}${d}`}function fs({config:e}){return e.emulator?L(e,ds):`https://${e.authDomain}/${us}`} + */const ls="__/auth/handler",ds="emulator/auth/handler",hs=encodeURIComponent("fac");async function ps(e,t,n,i,o,a){E(e.config.authDomain,e,"auth-domain-config-required"),E(e.config.apiKey,e,"invalid-api-key");const c={apiKey:e.config.apiKey,appName:e.name,authType:n,redirectUrl:i,v:s.SDK_VERSION,eventId:o};if(t instanceof Ut){t.setDefaultLanguage(e.languageCode),c.providerId=t.providerId||"",(0,r.xb)(t.getCustomParameters())||(c.customParameters=JSON.stringify(t.getCustomParameters()));for(const[e,t]of Object.entries(a||{}))c[e]=t}if(t instanceof Ft){const e=t.getScopes().filter((e=>""!==e));e.length>0&&(c.scopes=e.join(","))}e.tenantId&&(c.tid=e.tenantId);const u=c;for(const r of Object.keys(u))void 0===u[r]&&delete u[r];const l=await e._getAppCheckToken(),d=l?`#${hs}=${encodeURIComponent(l)}`:"";return`${fs(e)}?${(0,r.xO)(u).slice(1)}${d}`}function fs({config:e}){return e.emulator?L(e,ds):`https://${e.authDomain}/${ls}`} /** * @license * Copyright 2020 Google LLC @@ -2265,7 +2265,7 @@ class As{constructor(e){this.auth=e,this.internalListeners=new Map}getUid(){var * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */function Cs(e){switch(e){case"Node":return"node";case"ReactNative":return"rn";case"Worker":return"webworker";case"Cordova":return"cordova";case"WebExtension":return"web-extension";default:return}}function Rs(e){(0,s._registerComponent)(new c.wA("auth",((t,{options:n})=>{const i=t.getProvider("app").getImmediate(),r=t.getProvider("heartbeat"),s=t.getProvider("app-check-internal"),{apiKey:o,authDomain:a}=i.options;E(o&&!o.includes(":"),"invalid-api-key",{appName:i.name});const c={apiKey:o,authDomain:a,clientPlatform:e,apiHost:"identitytoolkit.googleapis.com",tokenApiHost:"securetoken.googleapis.com",apiScheme:"https",sdkClientVersion:Fe(e)},l=new He(i,r,s,c);return it(l,n),l}),"PUBLIC").setInstantiationMode("EXPLICIT").setInstanceCreatedCallback(((e,t,n)=>{const i=e.getProvider("auth-internal");i.initialize()}))),(0,s._registerComponent)(new c.wA("auth-internal",(e=>{const t=We(e.getProvider("auth").getImmediate());return(e=>new As(e))(t)}),"PRIVATE").setInstantiationMode("EXPLICIT")),(0,s.registerVersion)(ks,Ss,Cs(e)),(0,s.registerVersion)(ks,Ss,"esm2017")} + */function Cs(e){switch(e){case"Node":return"node";case"ReactNative":return"rn";case"Worker":return"webworker";case"Cordova":return"cordova";case"WebExtension":return"web-extension";default:return}}function Rs(e){(0,s._registerComponent)(new c.wA("auth",((t,{options:n})=>{const i=t.getProvider("app").getImmediate(),r=t.getProvider("heartbeat"),s=t.getProvider("app-check-internal"),{apiKey:o,authDomain:a}=i.options;E(o&&!o.includes(":"),"invalid-api-key",{appName:i.name});const c={apiKey:o,authDomain:a,clientPlatform:e,apiHost:"identitytoolkit.googleapis.com",tokenApiHost:"securetoken.googleapis.com",apiScheme:"https",sdkClientVersion:Fe(e)},u=new He(i,r,s,c);return it(u,n),u}),"PUBLIC").setInstantiationMode("EXPLICIT").setInstanceCreatedCallback(((e,t,n)=>{const i=e.getProvider("auth-internal");i.initialize()}))),(0,s._registerComponent)(new c.wA("auth-internal",(e=>{const t=We(e.getProvider("auth").getImmediate());return(e=>new As(e))(t)}),"PRIVATE").setInstantiationMode("EXPLICIT")),(0,s.registerVersion)(ks,Ss,Cs(e)),(0,s.registerVersion)(ks,Ss,"esm2017")} /** * @license * Copyright 2021 Google LLC @@ -2314,7 +2314,7 @@ function Ns(){return window} * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */qe({loadJS(e){return new Promise(((t,n)=>{const i=document.createElement("script");i.setAttribute("src",e),i.onload=t,i.onerror=e=>{const t=I("internal-error");t.customData=e,n(t)},i.type="text/javascript",i.charset="UTF-8",Os().appendChild(i)}))},gapiScript:"https://apis.google.com/js/api.js",recaptchaV2Script:"https://www.google.com/recaptcha/api.js",recaptchaEnterpriseScript:"https://www.google.com/recaptcha/enterprise.js?render="}),Rs("Browser");const Ls=2e3;async function Ds(e,t,n){var i;const{BuildInfo:r}=Ns();S(t.sessionId,"AuthEvent did not contain a session ID");const s=await Vs(t.sessionId),o={};return Oe()?o["ibi"]=r.packageName:Ce()?o["apn"]=r.packageName:y(e,"operation-not-supported-in-this-environment"),r.displayName&&(o["appDisplayName"]=r.displayName),o["sessionId"]=s,ps(e,n,t.type,void 0,null!==(i=t.eventId)&&void 0!==i?i:void 0,o)}async function Ms(e){const{BuildInfo:t}=Ns(),n={};Oe()?n.iosBundleId=t.packageName:Ce()?n.androidPackageName=t.packageName:y(e,"operation-not-supported-in-this-environment"),await Vr(e,n)}function Us(e){const{cordova:t}=Ns();return new Promise((n=>{t.plugins.browsertab.isAvailable((i=>{let r=null;i?t.plugins.browsertab.openUrl(e):r=t.InAppBrowser.open(e,Ne()?"_blank":"_system","location=yes"),n(r)}))}))}async function Fs(e,t,n){const{cordova:i}=Ns();let r=()=>{};try{await new Promise(((s,o)=>{let a=null;function c(){var e;s();const t=null===(e=i.plugins.browsertab)||void 0===e?void 0:e.close;"function"===typeof t&&t(),"function"===typeof(null===n||void 0===n?void 0:n.close)&&n.close()}function l(){a||(a=window.setTimeout((()=>{o(I(e,"redirect-cancelled-by-user"))}),Ls))}function u(){"visible"===(null===document||void 0===document?void 0:document.visibilityState)&&l()}t.addPassiveListener(c),document.addEventListener("resume",l,!1),Ce()&&document.addEventListener("visibilitychange",u,!1),r=()=>{t.removePassiveListener(c),document.removeEventListener("resume",l,!1),document.removeEventListener("visibilitychange",u,!1),a&&window.clearTimeout(a)}}))}finally{r()}}function xs(e){var t,n,i,r,s,o,a,c,l,u;const d=Ns();E("function"===typeof(null===(t=null===d||void 0===d?void 0:d.universalLinks)||void 0===t?void 0:t.subscribe),e,"invalid-cordova-configuration",{missingPlugin:"cordova-universal-links-plugin-fix"}),E("undefined"!==typeof(null===(n=null===d||void 0===d?void 0:d.BuildInfo)||void 0===n?void 0:n.packageName),e,"invalid-cordova-configuration",{missingPlugin:"cordova-plugin-buildInfo"}),E("function"===typeof(null===(s=null===(r=null===(i=null===d||void 0===d?void 0:d.cordova)||void 0===i?void 0:i.plugins)||void 0===r?void 0:r.browsertab)||void 0===s?void 0:s.openUrl),e,"invalid-cordova-configuration",{missingPlugin:"cordova-plugin-browsertab"}),E("function"===typeof(null===(c=null===(a=null===(o=null===d||void 0===d?void 0:d.cordova)||void 0===o?void 0:o.plugins)||void 0===a?void 0:a.browsertab)||void 0===c?void 0:c.isAvailable),e,"invalid-cordova-configuration",{missingPlugin:"cordova-plugin-browsertab"}),E("function"===typeof(null===(u=null===(l=null===d||void 0===d?void 0:d.cordova)||void 0===l?void 0:l.InAppBrowser)||void 0===u?void 0:u.open),e,"invalid-cordova-configuration",{missingPlugin:"cordova-plugin-inappbrowser"})}async function Vs(e){const t=js(e),n=await crypto.subtle.digest("SHA-256",t),i=Array.from(new Uint8Array(n));return i.map((e=>e.toString(16).padStart(2,"0"))).join("")}function js(e){if(S(/[0-9a-zA-Z]+/.test(e),"Can only convert alpha-numeric strings"),"undefined"!==typeof TextEncoder)return(new TextEncoder).encode(e);const t=new ArrayBuffer(e.length),n=new Uint8Array(t);for(let i=0;i{const i=document.createElement("script");i.setAttribute("src",e),i.onload=t,i.onerror=e=>{const t=I("internal-error");t.customData=e,n(t)},i.type="text/javascript",i.charset="UTF-8",Os().appendChild(i)}))},gapiScript:"https://apis.google.com/js/api.js",recaptchaV2Script:"https://www.google.com/recaptcha/api.js",recaptchaEnterpriseScript:"https://www.google.com/recaptcha/enterprise.js?render="}),Rs("Browser");const Ls=2e3;async function Ds(e,t,n){var i;const{BuildInfo:r}=Ns();S(t.sessionId,"AuthEvent did not contain a session ID");const s=await Vs(t.sessionId),o={};return Oe()?o["ibi"]=r.packageName:Ce()?o["apn"]=r.packageName:y(e,"operation-not-supported-in-this-environment"),r.displayName&&(o["appDisplayName"]=r.displayName),o["sessionId"]=s,ps(e,n,t.type,void 0,null!==(i=t.eventId)&&void 0!==i?i:void 0,o)}async function Ms(e){const{BuildInfo:t}=Ns(),n={};Oe()?n.iosBundleId=t.packageName:Ce()?n.androidPackageName=t.packageName:y(e,"operation-not-supported-in-this-environment"),await Vr(e,n)}function Us(e){const{cordova:t}=Ns();return new Promise((n=>{t.plugins.browsertab.isAvailable((i=>{let r=null;i?t.plugins.browsertab.openUrl(e):r=t.InAppBrowser.open(e,Ne()?"_blank":"_system","location=yes"),n(r)}))}))}async function Fs(e,t,n){const{cordova:i}=Ns();let r=()=>{};try{await new Promise(((s,o)=>{let a=null;function c(){var e;s();const t=null===(e=i.plugins.browsertab)||void 0===e?void 0:e.close;"function"===typeof t&&t(),"function"===typeof(null===n||void 0===n?void 0:n.close)&&n.close()}function u(){a||(a=window.setTimeout((()=>{o(I(e,"redirect-cancelled-by-user"))}),Ls))}function l(){"visible"===(null===document||void 0===document?void 0:document.visibilityState)&&u()}t.addPassiveListener(c),document.addEventListener("resume",u,!1),Ce()&&document.addEventListener("visibilitychange",l,!1),r=()=>{t.removePassiveListener(c),document.removeEventListener("resume",u,!1),document.removeEventListener("visibilitychange",l,!1),a&&window.clearTimeout(a)}}))}finally{r()}}function xs(e){var t,n,i,r,s,o,a,c,u,l;const d=Ns();E("function"===typeof(null===(t=null===d||void 0===d?void 0:d.universalLinks)||void 0===t?void 0:t.subscribe),e,"invalid-cordova-configuration",{missingPlugin:"cordova-universal-links-plugin-fix"}),E("undefined"!==typeof(null===(n=null===d||void 0===d?void 0:d.BuildInfo)||void 0===n?void 0:n.packageName),e,"invalid-cordova-configuration",{missingPlugin:"cordova-plugin-buildInfo"}),E("function"===typeof(null===(s=null===(r=null===(i=null===d||void 0===d?void 0:d.cordova)||void 0===i?void 0:i.plugins)||void 0===r?void 0:r.browsertab)||void 0===s?void 0:s.openUrl),e,"invalid-cordova-configuration",{missingPlugin:"cordova-plugin-browsertab"}),E("function"===typeof(null===(c=null===(a=null===(o=null===d||void 0===d?void 0:d.cordova)||void 0===o?void 0:o.plugins)||void 0===a?void 0:a.browsertab)||void 0===c?void 0:c.isAvailable),e,"invalid-cordova-configuration",{missingPlugin:"cordova-plugin-browsertab"}),E("function"===typeof(null===(l=null===(u=null===d||void 0===d?void 0:d.cordova)||void 0===u?void 0:u.InAppBrowser)||void 0===l?void 0:l.open),e,"invalid-cordova-configuration",{missingPlugin:"cordova-plugin-inappbrowser"})}async function Vs(e){const t=js(e),n=await crypto.subtle.digest("SHA-256",t),i=Array.from(new Uint8Array(n));return i.map((e=>e.toString(16).padStart(2,"0"))).join("")}function js(e){if(S(/[0-9a-zA-Z]+/.test(e),"Can only convert alpha-numeric strings"),"undefined"!==typeof TextEncoder)return(new TextEncoder).encode(e);const t=new ArrayBuffer(e.length),n=new Uint8Array(t);for(let i=0;i{const t=setTimeout((()=>{e(!1)}),oo);document.addEventListener("deviceready",(()=>{clearTimeout(t),e(!0)}))}))}function Io(){return"undefined"!==typeof window?window:null} +const oo=1e3;function ao(){var e;return(null===(e=null===self||void 0===self?void 0:self.location)||void 0===e?void 0:e.protocol)||null}function co(){return"http:"===ao()||"https:"===ao()}function uo(e=(0,r.z$)()){return!("file:"!==ao()&&"ionic:"!==ao()&&"capacitor:"!==ao()||!e.toLowerCase().match(/iphone|ipad|ipod|android/))}function lo(){return(0,r.b$)()||(0,r.UG)()}function ho(){return(0,r.w1)()&&11===(null===document||void 0===document?void 0:document.documentMode)}function po(e=(0,r.z$)()){return/Edge\/\d+/.test(e)}function fo(e=(0,r.z$)()){return ho()||po(e)}function mo(){try{const e=self.localStorage,t=di();if(e)return e["setItem"](t,"1"),e["removeItem"](t),!fo()||(0,r.hl)()}catch(e){return go()&&(0,r.hl)()}return!1}function go(){return"undefined"!==typeof n.g&&"WorkerGlobalScope"in n.g&&"importScripts"in n.g}function vo(){return(co()||(0,r.ru)()||uo())&&!lo()&&mo()&&!go()}function _o(){return uo()&&"undefined"!==typeof document}async function yo(){return!!_o()&&new Promise((e=>{const t=setTimeout((()=>{e(!1)}),oo);document.addEventListener("deviceready",(()=>{clearTimeout(t),e(!0)}))}))}function Io(){return"undefined"!==typeof window?window:null} /** * @license * Copyright 2020 Google LLC @@ -2443,7 +2443,7 @@ const oo=1e3;function ao(){var e;return(null===(e=null===self||void 0===self?voi * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */function No(e){return Do(e)}function Lo(e,t){var n;const i=null===(n=t.customData)||void 0===n?void 0:n._tokenResponse;if("auth/multi-factor-auth-required"===(null===t||void 0===t?void 0:t.code)){const n=t;n.resolver=new Fo(e,$n(e,t))}else if(i){const e=Do(t),n=t;e&&(n.credential=e,n.tenantId=i.tenantId||void 0,n.email=i.email||void 0,n.phoneNumber=i.phoneNumber||void 0)}}function Do(e){const{_tokenResponse:t}=e instanceof r.ZR?e.customData:e;if(!t)return null;if(!(e instanceof r.ZR)&&"temporaryProof"in t&&"phoneNumber"in t)return rr.credentialFromResult(e);const n=t.providerId;if(!n||n===l.PASSWORD)return null;let i;switch(n){case l.GOOGLE:i=jt;break;case l.FACEBOOK:i=Vt;break;case l.GITHUB:i=zt;break;case l.TWITTER:i=qt;break;default:const{oauthIdToken:e,oauthAccessToken:r,oauthTokenSecret:s,pendingToken:o,nonce:a}=t;return r||s||e||o?o?n.startsWith("saml.")?Wt._create(n,o):kt._fromParams({providerId:n,signInMethod:n,pendingToken:o,idToken:e,accessToken:r}):new xt(n).credential({idToken:e,accessToken:r,rawNonce:a}):null}return e instanceof r.ZR?i.credentialFromError(e):i.credentialFromResult(e)}function Mo(e,t){return t.catch((t=>{throw t instanceof r.ZR&&Lo(e,t),t})).then((e=>{const t=e.operationType,n=e.user;return{operationType:t,credential:No(e),additionalUserInfo:Hn(e),user:xo.getOrCreate(n)}}))}async function Uo(e,t){const n=await t;return{verificationId:n.verificationId,confirm:t=>Mo(e,n.confirm(t))}}class Fo{constructor(e,t){this.resolver=t,this.auth=Oo(e)}get session(){return this.resolver.session}get hints(){return this.resolver.hints}resolveSignIn(e){return Mo(Po(this.auth),this.resolver.resolveSignIn(e))}} + */function No(e){return Do(e)}function Lo(e,t){var n;const i=null===(n=t.customData)||void 0===n?void 0:n._tokenResponse;if("auth/multi-factor-auth-required"===(null===t||void 0===t?void 0:t.code)){const n=t;n.resolver=new Fo(e,$n(e,t))}else if(i){const e=Do(t),n=t;e&&(n.credential=e,n.tenantId=i.tenantId||void 0,n.email=i.email||void 0,n.phoneNumber=i.phoneNumber||void 0)}}function Do(e){const{_tokenResponse:t}=e instanceof r.ZR?e.customData:e;if(!t)return null;if(!(e instanceof r.ZR)&&"temporaryProof"in t&&"phoneNumber"in t)return rr.credentialFromResult(e);const n=t.providerId;if(!n||n===u.PASSWORD)return null;let i;switch(n){case u.GOOGLE:i=jt;break;case u.FACEBOOK:i=Vt;break;case u.GITHUB:i=zt;break;case u.TWITTER:i=qt;break;default:const{oauthIdToken:e,oauthAccessToken:r,oauthTokenSecret:s,pendingToken:o,nonce:a}=t;return r||s||e||o?o?n.startsWith("saml.")?Wt._create(n,o):kt._fromParams({providerId:n,signInMethod:n,pendingToken:o,idToken:e,accessToken:r}):new xt(n).credential({idToken:e,accessToken:r,rawNonce:a}):null}return e instanceof r.ZR?i.credentialFromError(e):i.credentialFromResult(e)}function Mo(e,t){return t.catch((t=>{throw t instanceof r.ZR&&Lo(e,t),t})).then((e=>{const t=e.operationType,n=e.user;return{operationType:t,credential:No(e),additionalUserInfo:Hn(e),user:xo.getOrCreate(n)}}))}async function Uo(e,t){const n=await t;return{verificationId:n.verificationId,confirm:t=>Mo(e,n.confirm(t))}}class Fo{constructor(e,t){this.resolver=t,this.auth=Oo(e)}get session(){return this.resolver.session}get hints(){return this.resolver.hints}resolveSignIn(e){return Mo(Po(this.auth),this.resolver.resolveSignIn(e))}} /** * @license * Copyright 2020 Google LLC @@ -2476,7 +2476,7 @@ const oo=1e3;function ao(){var e;return(null===(e=null===self||void 0===self?voi * See the License for the specific language governing permissions and * limitations under the License. */ -const Vo=E;class jo{constructor(e,t){if(this.app=e,t.isInitialized())return this._delegate=t.getImmediate(),void this.linkUnderlyingAuth();const{apiKey:n}=e.options;Vo(n,"invalid-api-key",{appName:e.name}),Vo(n,"invalid-api-key",{appName:e.name});const i="undefined"!==typeof window?Ro:void 0;this._delegate=t.initialize({options:{persistence:Ho(n,e.name),popupRedirectResolver:i}}),this._delegate._updateErrorMap(p),this.linkUnderlyingAuth()}get emulatorConfig(){return this._delegate.emulatorConfig}get currentUser(){return this._delegate.currentUser?xo.getOrCreate(this._delegate.currentUser):null}get languageCode(){return this._delegate.languageCode}set languageCode(e){this._delegate.languageCode=e}get settings(){return this._delegate.settings}get tenantId(){return this._delegate.tenantId}set tenantId(e){this._delegate.tenantId=e}useDeviceLanguage(){this._delegate.useDeviceLanguage()}signOut(){return this._delegate.signOut()}useEmulator(e,t){rt(this._delegate,e,t)}applyActionCode(e){return _n(this._delegate,e)}checkActionCode(e){return yn(this._delegate,e)}confirmPasswordReset(e,t){return vn(this._delegate,e,t)}async createUserWithEmailAndPassword(e,t){return Mo(this._delegate,wn(this._delegate,e,t))}fetchProvidersForEmail(e){return this.fetchSignInMethodsForEmail(e)}fetchSignInMethodsForEmail(e){return An(this._delegate,e)}isSignInWithEmailLink(e){return En(this._delegate,e)}async getRedirectResult(){Vo(vo(),this._delegate,"operation-not-supported-in-this-environment");const e=await Or(this._delegate,Ro);return e?Mo(this._delegate,Promise.resolve(e)):{credential:null,user:null}}addFrameworkForLogging(e){io(this._delegate,e)}onAuthStateChanged(e,t,n){const{next:i,error:r,complete:s}=zo(e,t,n);return this._delegate.onAuthStateChanged(i,r,s)}onIdTokenChanged(e,t,n){const{next:i,error:r,complete:s}=zo(e,t,n);return this._delegate.onIdTokenChanged(i,r,s)}sendSignInLinkToEmail(e,t){return Tn(this._delegate,e,t)}sendPasswordResetEmail(e,t){return gn(this._delegate,e,t||void 0)}async setPersistence(e){let t;switch(Eo(this._delegate,e),e){case wo.SESSION:t=ci;break;case wo.LOCAL:const e=await _e(Li)._isAvailable();t=e?Li:oi;break;case wo.NONE:t=Ie;break;default:return y("argument-error",{appName:this._delegate.name})}return this._delegate.setPersistence(t)}signInAndRetrieveDataWithCredential(e){return this.signInWithCredential(e)}signInAnonymously(){return Mo(this._delegate,Yt(this._delegate))}signInWithCredential(e){return Mo(this._delegate,on(this._delegate,e))}signInWithCustomToken(e){return Mo(this._delegate,un(this._delegate,e))}signInWithEmailAndPassword(e,t){return Mo(this._delegate,bn(this._delegate,e,t))}signInWithEmailLink(e,t){return Mo(this._delegate,kn(this._delegate,e,t))}signInWithPhoneNumber(e,t){return Uo(this._delegate,Qi(this._delegate,e,t))}async signInWithPopup(e){return Vo(vo(),this._delegate,"operation-not-supported-in-this-environment"),Mo(this._delegate,hr(this._delegate,e,Ro))}async signInWithRedirect(e){return Vo(vo(),this._delegate,"operation-not-supported-in-this-environment"),await ko(this._delegate),kr(this._delegate,e,Ro)}updateCurrentUser(e){return this._delegate.updateCurrentUser(e)}verifyPasswordResetCode(e){return In(this._delegate,e)}unwrap(){return this._delegate}_delete(){return this._delegate._delete()}linkUnderlyingAuth(){this._delegate.wrapped=()=>this}}function zo(e,t,n){let i=e;"function"!==typeof e&&({next:i,error:t,complete:n}=e);const r=i,s=e=>r(e&&xo.getOrCreate(e));return{next:s,error:t,complete:n}}function Ho(e,t){const n=So(e,t);if("undefined"===typeof self||n.includes(Li)||n.push(Li),"undefined"!==typeof window)for(const i of[oi,ci])n.includes(i)||n.push(i);return n.includes(Ie)||n.push(Ie),n} +const Vo=E;class jo{constructor(e,t){if(this.app=e,t.isInitialized())return this._delegate=t.getImmediate(),void this.linkUnderlyingAuth();const{apiKey:n}=e.options;Vo(n,"invalid-api-key",{appName:e.name}),Vo(n,"invalid-api-key",{appName:e.name});const i="undefined"!==typeof window?Ro:void 0;this._delegate=t.initialize({options:{persistence:Ho(n,e.name),popupRedirectResolver:i}}),this._delegate._updateErrorMap(p),this.linkUnderlyingAuth()}get emulatorConfig(){return this._delegate.emulatorConfig}get currentUser(){return this._delegate.currentUser?xo.getOrCreate(this._delegate.currentUser):null}get languageCode(){return this._delegate.languageCode}set languageCode(e){this._delegate.languageCode=e}get settings(){return this._delegate.settings}get tenantId(){return this._delegate.tenantId}set tenantId(e){this._delegate.tenantId=e}useDeviceLanguage(){this._delegate.useDeviceLanguage()}signOut(){return this._delegate.signOut()}useEmulator(e,t){rt(this._delegate,e,t)}applyActionCode(e){return _n(this._delegate,e)}checkActionCode(e){return yn(this._delegate,e)}confirmPasswordReset(e,t){return vn(this._delegate,e,t)}async createUserWithEmailAndPassword(e,t){return Mo(this._delegate,wn(this._delegate,e,t))}fetchProvidersForEmail(e){return this.fetchSignInMethodsForEmail(e)}fetchSignInMethodsForEmail(e){return An(this._delegate,e)}isSignInWithEmailLink(e){return En(this._delegate,e)}async getRedirectResult(){Vo(vo(),this._delegate,"operation-not-supported-in-this-environment");const e=await Or(this._delegate,Ro);return e?Mo(this._delegate,Promise.resolve(e)):{credential:null,user:null}}addFrameworkForLogging(e){io(this._delegate,e)}onAuthStateChanged(e,t,n){const{next:i,error:r,complete:s}=zo(e,t,n);return this._delegate.onAuthStateChanged(i,r,s)}onIdTokenChanged(e,t,n){const{next:i,error:r,complete:s}=zo(e,t,n);return this._delegate.onIdTokenChanged(i,r,s)}sendSignInLinkToEmail(e,t){return Tn(this._delegate,e,t)}sendPasswordResetEmail(e,t){return gn(this._delegate,e,t||void 0)}async setPersistence(e){let t;switch(Eo(this._delegate,e),e){case wo.SESSION:t=ci;break;case wo.LOCAL:const e=await _e(Li)._isAvailable();t=e?Li:oi;break;case wo.NONE:t=Ie;break;default:return y("argument-error",{appName:this._delegate.name})}return this._delegate.setPersistence(t)}signInAndRetrieveDataWithCredential(e){return this.signInWithCredential(e)}signInAnonymously(){return Mo(this._delegate,Yt(this._delegate))}signInWithCredential(e){return Mo(this._delegate,on(this._delegate,e))}signInWithCustomToken(e){return Mo(this._delegate,ln(this._delegate,e))}signInWithEmailAndPassword(e,t){return Mo(this._delegate,bn(this._delegate,e,t))}signInWithEmailLink(e,t){return Mo(this._delegate,kn(this._delegate,e,t))}signInWithPhoneNumber(e,t){return Uo(this._delegate,Qi(this._delegate,e,t))}async signInWithPopup(e){return Vo(vo(),this._delegate,"operation-not-supported-in-this-environment"),Mo(this._delegate,hr(this._delegate,e,Ro))}async signInWithRedirect(e){return Vo(vo(),this._delegate,"operation-not-supported-in-this-environment"),await ko(this._delegate),kr(this._delegate,e,Ro)}updateCurrentUser(e){return this._delegate.updateCurrentUser(e)}verifyPasswordResetCode(e){return In(this._delegate,e)}unwrap(){return this._delegate}_delete(){return this._delegate._delete()}linkUnderlyingAuth(){this._delegate.wrapped=()=>this}}function zo(e,t,n){let i=e;"function"!==typeof e&&({next:i,error:t,complete:n}=e);const r=i,s=e=>r(e&&xo.getOrCreate(e));return{next:s,error:t,complete:n}}function Ho(e,t){const n=So(e,t);if("undefined"===typeof self||n.includes(Li)||n.push(Li),"undefined"!==typeof window)for(const i of[oi,ci])n.includes(i)||n.push(i);return n.includes(Ie)||n.push(Ie),n} /** * @license * Copyright 2020 Google LLC @@ -2525,4 +2525,4 @@ const Bo=E;class $o{constructor(e,t,n=i.Z.app()){var r;Bo(null===(r=n.options)|| * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */const qo="auth-compat";function Go(e){e.INTERNAL.registerComponent(new c.wA(qo,(e=>{const t=e.getProvider("app-compat").getImmediate(),n=e.getProvider("auth");return new jo(t,n)}),"PUBLIC").setServiceProps({ActionCodeInfo:{Operation:{EMAIL_SIGNIN:u.EMAIL_SIGNIN,PASSWORD_RESET:u.PASSWORD_RESET,RECOVER_EMAIL:u.RECOVER_EMAIL,REVERT_SECOND_FACTOR_ADDITION:u.REVERT_SECOND_FACTOR_ADDITION,VERIFY_AND_CHANGE_EMAIL:u.VERIFY_AND_CHANGE_EMAIL,VERIFY_EMAIL:u.VERIFY_EMAIL}},EmailAuthProvider:Mt,FacebookAuthProvider:Vt,GithubAuthProvider:zt,GoogleAuthProvider:jt,OAuthProvider:xt,SAMLAuthProvider:$t,PhoneAuthProvider:Wo,PhoneMultiFactorGenerator:Is,RecaptchaVerifier:$o,TwitterAuthProvider:qt,Auth:jo,AuthCredential:lt,Error:r.ZR}).setInstantiationMode("LAZY").setMultipleInstances(!1)),e.registerVersion(ro,so)}Go(i.Z)}}]); \ No newline at end of file + */const qo="auth-compat";function Go(e){e.INTERNAL.registerComponent(new c.wA(qo,(e=>{const t=e.getProvider("app-compat").getImmediate(),n=e.getProvider("auth");return new jo(t,n)}),"PUBLIC").setServiceProps({ActionCodeInfo:{Operation:{EMAIL_SIGNIN:l.EMAIL_SIGNIN,PASSWORD_RESET:l.PASSWORD_RESET,RECOVER_EMAIL:l.RECOVER_EMAIL,REVERT_SECOND_FACTOR_ADDITION:l.REVERT_SECOND_FACTOR_ADDITION,VERIFY_AND_CHANGE_EMAIL:l.VERIFY_AND_CHANGE_EMAIL,VERIFY_EMAIL:l.VERIFY_EMAIL}},EmailAuthProvider:Mt,FacebookAuthProvider:Vt,GithubAuthProvider:zt,GoogleAuthProvider:jt,OAuthProvider:xt,SAMLAuthProvider:$t,PhoneAuthProvider:Wo,PhoneMultiFactorGenerator:Is,RecaptchaVerifier:$o,TwitterAuthProvider:qt,Auth:jo,AuthCredential:ut,Error:r.ZR}).setInstantiationMode("LAZY").setMultipleInstances(!1)),e.registerVersion(ro,so)}Go(i.Z)}}]); \ No newline at end of file diff --git a/HomeUI/dist/js/2788.js b/HomeUI/dist/js/2788.js deleted file mode 100644 index 089d1ab08..000000000 --- a/HomeUI/dist/js/2788.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(globalThis["webpackChunkflux"]=globalThis["webpackChunkflux"]||[]).push([[2788],{57494:(t,e,a)=>{a.r(e),a.d(e,{default:()=>A});var i=function(){var t=this,e=t._self._c;return e("div",[t.managedApplication?t._e():e("b-tabs",{attrs:{pills:""},on:{"activate-tab":function(e){return t.tabChanged()}}},[e("b-tab",{attrs:{title:"Active Apps"}},[e("b-overlay",{attrs:{show:t.tableconfig.active.loading,variant:"transparent",blur:"5px"}},[e("b-card",[e("b-row",[e("b-col",{staticClass:"my-1",attrs:{md:"4",sm:"4"}},[e("b-form-group",{staticClass:"mb-0"},[e("label",{staticClass:"d-inline-block text-left mr-50"},[t._v("Per page")]),e("b-form-select",{staticClass:"w-50",attrs:{id:"perPageSelect",size:"sm",options:t.tableconfig.active.pageOptions},model:{value:t.tableconfig.active.perPage,callback:function(e){t.$set(t.tableconfig.active,"perPage",e)},expression:"tableconfig.active.perPage"}})],1)],1),e("b-col",{staticClass:"my-1",attrs:{md:"8"}},[e("b-form-group",{staticClass:"mb-0 mt-0",attrs:{label:"Filter","label-cols-sm":"1","label-align-sm":"right","label-for":"filterInput"}},[e("b-input-group",{attrs:{size:"sm"}},[e("b-form-input",{attrs:{id:"filterInput",type:"search",placeholder:"Type to Search"},model:{value:t.tableconfig.active.filter,callback:function(e){t.$set(t.tableconfig.active,"filter",e)},expression:"tableconfig.active.filter"}}),e("b-input-group-append",[e("b-button",{attrs:{disabled:!t.tableconfig.active.filter},on:{click:function(e){t.tableconfig.active.filter=""}}},[t._v(" Clear ")])],1)],1)],1)],1),e("b-col",{attrs:{cols:"12"}},[e("b-table",{staticClass:"apps-active-table",attrs:{striped:"",outlined:"",responsive:"","per-page":t.tableconfig.active.perPage,"current-page":t.tableconfig.active.currentPage,items:t.tableconfig.active.apps,fields:t.tableconfig.active.fields,"sort-by":t.tableconfig.active.sortBy,"sort-desc":t.tableconfig.active.sortDesc,"sort-direction":t.tableconfig.active.sortDirection,filter:t.tableconfig.active.filter,"sort-icon-left":"","show-empty":"","empty-text":"No Flux Apps are active"},on:{"update:sortBy":function(e){return t.$set(t.tableconfig.active,"sortBy",e)},"update:sort-by":function(e){return t.$set(t.tableconfig.active,"sortBy",e)},"update:sortDesc":function(e){return t.$set(t.tableconfig.active,"sortDesc",e)},"update:sort-desc":function(e){return t.$set(t.tableconfig.active,"sortDesc",e)}},scopedSlots:t._u([{key:"cell(description)",fn:function(a){return[e("kbd",{staticClass:"text-secondary textarea text",staticStyle:{float:"left","text-align":"left"}},[t._v(t._s(a.item.description))])]}},{key:"cell(name)",fn:function(a){return[e("div",{staticClass:"text-left"},[e("kbd",{staticClass:"alert-info no-wrap",staticStyle:{"border-radius":"15px","font-weight":"700 !important"}},[e("b-icon",{attrs:{scale:"1.2",icon:"app-indicator"}}),t._v("  "+t._s(a.item.name)+"  ")],1),e("br"),e("small",{staticStyle:{"font-size":"11px"}},[e("div",{staticClass:"d-flex align-items-center",staticStyle:{"margin-top":"3px"}},[t._v("   "),e("b-icon",{attrs:{scale:"1.4",icon:"speedometer2"}}),t._v("  "),e("kbd",{staticClass:"alert-success",staticStyle:{"border-radius":"15px"}},[t._v(" "),e("b",[t._v(t._s(t.getServiceUsageValue(1,a.item.name,a.item)))]),t._v(" ")]),t._v("   "),e("b-icon",{attrs:{scale:"1.4",icon:"cpu"}}),t._v("  "),e("kbd",{staticClass:"alert-success",staticStyle:{"border-radius":"15px"}},[t._v(" "),e("b",[t._v(t._s(t.getServiceUsageValue(0,a.item.name,a.item)))]),t._v(" ")]),t._v("   "),e("b-icon",{attrs:{scale:"1.4",icon:"hdd"}}),t._v("  "),e("kbd",{staticClass:"alert-success",staticStyle:{"border-radius":"15px"}},[t._v(" "),e("b",[t._v(t._s(t.getServiceUsageValue(2,a.item.name,a.item)))]),t._v(" ")]),t._v("  "),e("b-icon",{attrs:{scale:"1.2",icon:"geo-alt"}}),t._v(" "),e("kbd",{staticClass:"alert-warning",staticStyle:{"border-radius":"15px"}},[t._v(" "),e("b",[t._v(t._s(a.item.instances))]),t._v(" ")])],1),e("span",{staticClass:"no-wrap",class:{"red-text":t.isLessThanTwoDays(t.labelForExpire(a.item.expire,a.item.height))}},[t._v("   "),e("b-icon",{attrs:{scale:"1.2",icon:"hourglass-split"}}),t._v(" "+t._s(t.labelForExpire(a.item.expire,a.item.height))+"   ")],1)])])]}},{key:"cell(show_details)",fn:function(a){return[e("a",{on:{click:function(e){return t.showLocations(a,t.tableconfig.active.apps)}}},[a.detailsShowing?t._e():e("v-icon",{staticClass:"ml-1",attrs:{name:"chevron-down"}}),a.detailsShowing?e("v-icon",{staticClass:"ml-1",attrs:{name:"chevron-up"}}):t._e()],1)]}},{key:"row-details",fn:function(a){return[e("b-card",{staticClass:"mx-2"},[e("b-button",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.top",value:"Copy to Clipboard",expression:"'Copy to Clipboard'",modifiers:{hover:!0,top:!0}}],staticClass:"mr-2",attrs:{id:`copy-active-app-${a.item.name}`,size:"sm",variant:"outline-dark",pill:""},on:{click:function(e){t.copyToClipboard(JSON.stringify(a.item))}}},[e("b-icon",{attrs:{scale:"1",icon:"clipboard"}}),t._v(" Copy Specifications ")],1),e("b-button",{staticClass:"mr-2",attrs:{id:`deploy-active-app-${a.item.name}`,size:"sm",variant:"outline-dark",pill:""}},[e("b-icon",{attrs:{scale:"1",icon:"building"}}),t._v(" Deploy Myself ")],1),e("confirm-dialog",{attrs:{target:`deploy-active-app-${a.item.name}`,"confirm-button":"Deploy App"},on:{confirm:function(e){return t.redeployApp(a.item,!0)}}})],1),e("b-card",{staticClass:"mx-2"},[e("h3",{staticClass:"no-wrap"},[e("kbd",{staticClass:"alert-info d-flex",staticStyle:{"border-radius":"15px","font-family":"monospace","padding-right":"100%"}},[e("b-icon",{staticClass:"ml-1",attrs:{scale:"1",icon:"info-square"}}),t._v("  Application Information ")],1)]),e("div",{staticClass:"ml-1"},[a.item.owner?e("list-entry",{attrs:{title:"Owner",data:a.item.owner}}):t._e(),a.item.hash?e("list-entry",{attrs:{title:"Hash",data:a.item.hash}}):t._e(),a.item.version>=5?e("div",[a.item.contacts.length>0?e("list-entry",{attrs:{title:"Contacts",data:JSON.stringify(a.item.contacts)}}):t._e(),a.item.geolocation.length?e("div",t._l(a.item.geolocation,(function(a){return e("div",{key:a},[e("list-entry",{attrs:{title:"Geolocation",data:t.getGeolocation(a)}})],1)})),0):e("div",[e("list-entry",{attrs:{title:"Continent",data:"All"}}),e("list-entry",{attrs:{title:"Country",data:"All"}}),e("list-entry",{attrs:{title:"Region",data:"All"}})],1)],1):t._e(),a.item.instances?e("list-entry",{attrs:{title:"Instances",data:a.item.instances.toString()}}):t._e(),e("list-entry",{attrs:{title:"Expires in",data:t.labelForExpire(a.item.expire,a.item.height)}}),a.item?.nodes?.length>0?e("list-entry",{attrs:{title:"Enterprise Nodes",data:a.item.nodes?a.item.nodes.toString():"Not scoped"}}):t._e(),e("list-entry",{attrs:{title:"Static IP",data:a.item.staticip?"Yes, Running only on Static IP nodes":"No, Running on all nodes"}})],1),a.item.version<=3?e("div",[e("b-card",[e("list-entry",{attrs:{title:"Repository",data:a.item.repotag}}),e("list-entry",{attrs:{title:"Custom Domains",data:a.item.domains.toString()||"none"}}),e("list-entry",{attrs:{title:"Automatic Domains",data:t.constructAutomaticDomains(a.item.ports,void 0,a.item.name).toString()}}),e("list-entry",{attrs:{title:"Ports",data:a.item.ports.toString()}}),e("list-entry",{attrs:{title:"Container Ports",data:a.item.containerPorts.toString()}}),e("list-entry",{attrs:{title:"Container Data",data:a.item.containerData}}),e("list-entry",{attrs:{title:"Enviroment Parameters",data:a.item.enviromentParameters.length>0?a.item.enviromentParameters.toString():"none"}}),e("list-entry",{attrs:{title:"Commands",data:a.item.commands.length>0?a.item.commands.toString():"none"}}),a.item.tiered?e("div",[e("list-entry",{attrs:{title:"CPU Cumulus",data:`${a.item.cpubasic} vCore`}}),e("list-entry",{attrs:{title:"CPU Nimbus",data:`${a.item.cpusuper} vCore`}}),e("list-entry",{attrs:{title:"CPU Stratus",data:`${a.item.cpubamf} vCore`}}),e("list-entry",{attrs:{title:"RAM Cumulus",data:`${a.item.rambasic} MB`}}),e("list-entry",{attrs:{title:"RAM Nimbus",data:`${a.item.ramsuper} MB`}}),e("list-entry",{attrs:{title:"RAM Stratus",data:`${a.item.rambamf} MB`}}),e("list-entry",{attrs:{title:"SSD Cumulus",data:`${a.item.hddbasic} GB`}}),e("list-entry",{attrs:{title:"SSD Nimbus",data:`${a.item.hddsuper} GB`}}),e("list-entry",{attrs:{title:"SSD Stratus",data:`${a.item.hddbamf} GB`}})],1):e("div",[e("list-entry",{attrs:{title:"CPU",data:`${a.item.cpu} vCore`}}),e("list-entry",{attrs:{title:"RAM",data:`${a.item.ram} MB`}}),e("list-entry",{attrs:{title:"SSD",data:`${a.item.hdd} GB`}})],1)],1)],1):e("div",[e("h3",{staticClass:"no-wrap"},[e("kbd",{staticClass:"alert-info d-flex",staticStyle:{"border-radius":"15px","font-family":"monospace","padding-right":"100%"}},[e("b-icon",{staticClass:"ml-1",attrs:{scale:"1",icon:"box"}}),t._v("  Composition ")],1)]),t._l(a.item.compose,(function(i,s){return e("b-card",{key:s,staticClass:"mb-0"},[e("h3",{staticClass:"no-wrap"},[e("kbd",{staticClass:"alert-success d-flex",staticStyle:{"border-radius":"15px","font-family":"monospace","max-width":"500px"}},[e("b-icon",{staticClass:"ml-1",attrs:{scale:"1",icon:"menu-app-fill"}}),t._v("  "+t._s(i.name)+" ")],1)]),e("div",{staticClass:"ml-1"},[e("list-entry",{attrs:{title:"Name",data:i.name}}),e("list-entry",{attrs:{title:"Description",data:i.description}}),e("list-entry",{attrs:{title:"Repository",data:i.repotag}}),e("list-entry",{attrs:{title:"Repository Authentication",data:i.repoauth?"Content Encrypted":"Public"}}),e("list-entry",{attrs:{title:"Custom Domains",data:i.domains.toString()||"none"}}),e("list-entry",{attrs:{title:"Automatic Domains",data:t.constructAutomaticDomains(i.ports,i.name,a.item.name,s).toString()}}),e("list-entry",{attrs:{title:"Ports",data:i.ports.toString()}}),e("list-entry",{attrs:{title:"Container Ports",data:i.containerPorts.toString()}}),e("list-entry",{attrs:{title:"Container Data",data:i.containerData}}),e("list-entry",{attrs:{title:"Environment Parameters",data:i.environmentParameters.length>0?i.environmentParameters.toString():"none"}}),e("list-entry",{attrs:{title:"Commands",data:i.commands.length>0?i.commands.toString():"none"}}),e("list-entry",{attrs:{title:"Secret Environment Parameters",data:i.secrets?"Content Encrypted":"none"}}),i.tiered?e("div",[e("list-entry",{attrs:{title:"CPU Cumulus",data:`${i.cpubasic} vCore`}}),e("list-entry",{attrs:{title:"CPU Nimbus",data:`${i.cpusuper} vCore`}}),e("list-entry",{attrs:{title:"CPU Stratus",data:`${i.cpubamf} vCore`}}),e("list-entry",{attrs:{title:"RAM Cumulus",data:`${i.rambasic} MB`}}),e("list-entry",{attrs:{title:"RAM Nimbus",data:`${i.ramsuper} MB`}}),e("list-entry",{attrs:{title:"RAM Stratus",data:`${i.rambamf} MB`}}),e("list-entry",{attrs:{title:"SSD Cumulus",data:`${i.hddbasic} GB`}}),e("list-entry",{attrs:{title:"SSD Nimbus",data:`${i.hddsuper} GB`}}),e("list-entry",{attrs:{title:"SSD Stratus",data:`${i.hddbamf} GB`}})],1):e("div",[e("list-entry",{attrs:{title:"CPU",data:`${i.cpu} vCore`}}),e("list-entry",{attrs:{title:"RAM",data:`${i.ram} MB`}}),e("list-entry",{attrs:{title:"SSD",data:`${i.hdd} GB`}})],1)],1)])}))],2),e("h3",[e("kbd",{staticClass:"alert-info d-flex",staticStyle:{"border-radius":"15px","font-family":"monospace","padding-right":"100%"}},[e("b-icon",{attrs:{scale:"1",icon:"globe"}}),t._v("  Locations ")],1)]),e("b-row",[e("b-col",{staticClass:"my-1",attrs:{md:"4",sm:"4"}},[e("b-form-group",{staticClass:"mb-0"},[e("label",{staticClass:"d-inline-block text-left mr-50"},[t._v("Per page")]),e("b-form-select",{staticClass:"w-50",attrs:{id:"perPageSelect",size:"sm",options:t.appLocationOptions.pageOptions},model:{value:t.appLocationOptions.perPage,callback:function(e){t.$set(t.appLocationOptions,"perPage",e)},expression:"appLocationOptions.perPage"}})],1)],1),e("b-col",{staticClass:"my-1",attrs:{md:"8"}},[e("b-form-group",{staticClass:"mb-0",attrs:{label:"Filter","label-cols-sm":"1","label-align-sm":"right","label-for":"filterInput"}},[e("b-input-group",{attrs:{size:"sm"}},[e("b-form-input",{attrs:{id:"filterInput",type:"search",placeholder:"Type to Search"},model:{value:t.appLocationOptions.filter,callback:function(e){t.$set(t.appLocationOptions,"filter",e)},expression:"appLocationOptions.filter"}}),e("b-input-group-append",[e("b-button",{attrs:{disabled:!t.appLocationOptions.filter},on:{click:function(e){t.appLocationOptions.filter=""}}},[t._v(" Clear ")])],1)],1)],1)],1),e("b-col",{attrs:{cols:"12"}},[e("b-table",{staticClass:"locations-table",attrs:{borderless:"","per-page":t.appLocationOptions.perPage,"current-page":t.appLocationOptions.currentPage,items:t.appLocations,fields:t.appLocationFields,"thead-class":"d-none",filter:t.appLocationOptions.filter,"show-empty":"","sort-icon-left":"","empty-text":"No instances found.."},scopedSlots:t._u([{key:"cell(ip)",fn:function(a){return[e("div",{staticClass:"no-wrap"},[e("kbd",{staticClass:"alert-info",staticStyle:{"border-radius":"15px"}},[e("b-icon",{attrs:{scale:"1.1",icon:"hdd-network-fill"}})],1),t._v("  "),e("kbd",{staticClass:"alert-success no-wrap",staticStyle:{"border-radius":"15px"}},[e("b",[t._v("  "+t._s(a.item.ip)+"  ")])])])]}},{key:"cell(visit)",fn:function(i){return[e("div",{staticClass:"d-flex justify-content-end"},[e("b-button",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.top",value:"Visit App",expression:"'Visit App'",modifiers:{hover:!0,top:!0}}],staticClass:"mr-1",attrs:{size:"sm",pill:"",variant:"dark"},on:{click:function(e){t.openApp(a.item.name,i.item.ip.split(":")[0],t.getProperPort(a.item))}}},[e("b-icon",{attrs:{scale:"1",icon:"door-open"}}),t._v(" App ")],1),e("b-button",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.top",value:"Visit FluxNode",expression:"'Visit FluxNode'",modifiers:{hover:!0,top:!0}}],staticClass:"mr-0",attrs:{size:"sm",pill:"",variant:"outline-dark"},on:{click:function(e){t.openNodeFluxOS(i.item.ip.split(":")[0],i.item.ip.split(":")[1]?+i.item.ip.split(":")[1]-1:16126)}}},[e("b-icon",{attrs:{scale:"1",icon:"house-door-fill"}}),t._v(" FluxNode ")],1),t._v("   ")],1)]}}],null,!0)})],1),e("b-col",{attrs:{cols:"12"}},[e("b-pagination",{staticClass:"my-0 mt-1",attrs:{"total-rows":t.appLocationOptions.totalRows,"per-page":t.appLocationOptions.perPage,align:"center",size:"sm"},model:{value:t.appLocationOptions.currentPage,callback:function(e){t.$set(t.appLocationOptions,"currentPage",e)},expression:"appLocationOptions.currentPage"}})],1)],1)],1)]}},{key:"cell(visit)",fn:function(a){return[e("div",{staticClass:"d-flex no-wrap"},["fluxteam"===t.privilege?e("b-button",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.top",value:"Manage Installed App",expression:"'Manage Installed App'",modifiers:{hover:!0,top:!0}}],staticClass:"mr-0",attrs:{id:`manage-installed-app-${a.item.name}`,size:"sm",variant:"outline-dark"}},[e("b-icon",{attrs:{scale:"1",icon:"gear"}}),t._v(" Manage ")],1):t._e(),e("confirm-dialog",{attrs:{target:`manage-installed-app-${a.item.name}`,"confirm-button":"Manage App"},on:{confirm:function(e){return t.openAppManagement(a.item.name)}}}),e("b-button",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.top",value:"Visit App",expression:"'Visit App'",modifiers:{hover:!0,top:!0}}],staticClass:"mr-0 no-wrap hover-underline",attrs:{size:"sm",variant:"link"},on:{click:function(e){return t.openGlobalApp(a.item.name)}}},[e("b-icon",{attrs:{scale:"1",icon:"front"}}),t._v(" Visit ")],1),t._v("    ")],1)]}}],null,!1,649067422)})],1)],1),e("b-col",{attrs:{cols:"12"}},[e("b-pagination",{staticClass:"my-0",attrs:{"total-rows":t.tableconfig.active?.apps?.length||1,"per-page":t.tableconfig.active.perPage,align:"center",size:"sm"},model:{value:t.tableconfig.active.currentPage,callback:function(e){t.$set(t.tableconfig.active,"currentPage",e)},expression:"tableconfig.active.currentPage"}})],1)],1)],1)],1),e("b-tab",{attrs:{title:"Marketplace Deployments"}},[e("b-overlay",{attrs:{show:t.tableconfig.active.loading,variant:"transparent",blur:"5px"}},[e("b-card",[e("b-row",[e("b-col",{staticClass:"my-1",attrs:{md:"4",sm:"4"}},[e("b-form-group",{staticClass:"mb-0"},[e("label",{staticClass:"d-inline-block text-left mr-50"},[t._v("Per page")]),e("b-form-select",{staticClass:"w-50",attrs:{id:"perPageSelect",size:"sm",options:t.tableconfig.active_marketplace.pageOptions},model:{value:t.tableconfig.active_marketplace.perPage,callback:function(e){t.$set(t.tableconfig.active_marketplace,"perPage",e)},expression:"tableconfig.active_marketplace.perPage"}})],1)],1),e("b-col",{staticClass:"my-1",attrs:{md:"8"}},[e("b-form-group",{staticClass:"mb-0 mt-0",attrs:{label:"Filter","label-cols-sm":"1","label-align-sm":"right","label-for":"filterInput"}},[e("b-input-group",{attrs:{size:"sm"}},[e("b-form-input",{attrs:{id:"filterInput",type:"search",placeholder:"Type to Search"},model:{value:t.tableconfig.active_marketplace.filter,callback:function(e){t.$set(t.tableconfig.active_marketplace,"filter",e)},expression:"tableconfig.active_marketplace.filter"}}),e("b-input-group-append",[e("b-button",{attrs:{disabled:!t.tableconfig.active_marketplace.filter},on:{click:function(e){t.tableconfig.active_marketplace.filter=""}}},[t._v(" Clear ")])],1)],1)],1)],1),e("b-col",{attrs:{cols:"12"}},[e("b-table",{staticClass:"apps-active-table",attrs:{striped:"",outlined:"",responsive:"",items:t.tableconfig.active_marketplace.apps,fields:t.tableconfig.active_marketplace.fields,"per-page":t.tableconfig.active_marketplace.perPage,"current-page":t.tableconfig.active_marketplace.currentPage,filter:t.tableconfig.active_marketplace.filter,"show-empty":"","sort-icon-left":"","empty-text":"No Flux Marketplace Apps are active"},scopedSlots:t._u([{key:"cell(visit)",fn:function(a){return[e("div",{staticClass:"d-flex no-wrap"},["fluxteam"===t.privilege?e("b-button",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.top",value:"Manage Installed App",expression:"'Manage Installed App'",modifiers:{hover:!0,top:!0}}],staticClass:"mr-0",attrs:{id:`manage-installed-app-${a.item.name}`,size:"sm",variant:"outline-dark"}},[e("b-icon",{attrs:{scale:"1",icon:"gear"}}),t._v(" Manage ")],1):t._e(),e("confirm-dialog",{attrs:{target:`manage-installed-app-${a.item.name}`,"confirm-button":"Manage App"},on:{confirm:function(e){return t.openAppManagement(a.item.name)}}}),e("b-button",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.top",value:"Visit App",expression:"'Visit App'",modifiers:{hover:!0,top:!0}}],staticClass:"mr-0 no-wrap hover-underline",attrs:{size:"sm",variant:"link"},on:{click:function(e){return t.openGlobalApp(a.item.name)}}},[e("b-icon",{attrs:{scale:"1",icon:"front"}}),t._v(" Visit ")],1)],1)]}},{key:"cell(description)",fn:function(a){return[e("kbd",{staticClass:"text-secondary textarea text",staticStyle:{float:"left","text-align":"left"}},[t._v(t._s(a.item.description))])]}},{key:"cell(name)",fn:function(a){return[e("div",{staticClass:"text-left"},[e("kbd",{staticClass:"alert-info no-wrap",staticStyle:{"border-radius":"15px","font-weight":"700 !important"}},[e("b-icon",{attrs:{scale:"1.2",icon:"app-indicator"}}),t._v("  "+t._s(a.item.name)+"  ")],1),e("br"),e("small",{staticStyle:{"font-size":"11px"}},[e("div",{staticClass:"d-flex align-items-center",staticStyle:{"margin-top":"3px"}},[t._v("   "),e("b-icon",{attrs:{scale:"1.4",icon:"speedometer2"}}),t._v("  "),e("kbd",{staticClass:"alert-success",staticStyle:{"border-radius":"15px"}},[t._v(" "),e("b",[t._v(t._s(t.getServiceUsageValue(1,a.item.name,a.item)))]),t._v(" ")]),t._v("   "),e("b-icon",{attrs:{scale:"1.4",icon:"cpu"}}),t._v("  "),e("kbd",{staticClass:"alert-success",staticStyle:{"border-radius":"15px"}},[t._v(" "),e("b",[t._v(t._s(t.getServiceUsageValue(0,a.item.name,a.item)))]),t._v(" ")]),t._v("   "),e("b-icon",{attrs:{scale:"1.4",icon:"hdd"}}),t._v("  "),e("kbd",{staticClass:"alert-success",staticStyle:{"border-radius":"15px"}},[t._v(" "),e("b",[t._v(t._s(t.getServiceUsageValue(2,a.item.name,a.item)))]),t._v(" ")]),t._v("  "),e("b-icon",{attrs:{scale:"1.2",icon:"geo-alt"}}),t._v(" "),e("kbd",{staticClass:"alert-warning",staticStyle:{"border-radius":"15px"}},[t._v(" "),e("b",[t._v(t._s(a.item.instances))]),t._v(" ")])],1),e("span",{staticClass:"no-wrap",class:{"red-text":t.isLessThanTwoDays(t.labelForExpire(a.item.expire,a.item.height))}},[t._v("   "),e("b-icon",{attrs:{scale:"1.2",icon:"hourglass-split"}}),t._v(" "+t._s(t.labelForExpire(a.item.expire,a.item.height))+"   ")],1)])])]}},{key:"cell(show_details)",fn:function(a){return[e("a",{on:{click:function(e){return t.showLocations(a,t.tableconfig.active_marketplace.apps)}}},[a.detailsShowing?t._e():e("v-icon",{staticClass:"ml-1",attrs:{name:"chevron-down"}}),a.detailsShowing?e("v-icon",{staticClass:"ml-1",attrs:{name:"chevron-up"}}):t._e()],1)]}},{key:"row-details",fn:function(a){return[e("b-card",{staticClass:"mx-2"},[e("h3",{staticClass:"no-wrap"},[e("kbd",{staticClass:"alert-info d-flex",staticStyle:{"border-radius":"15px","font-family":"monospace","padding-right":"100%"}},[e("b-icon",{staticClass:"ml-1",attrs:{scale:"1",icon:"info-square"}}),t._v("  Application Information ")],1)]),e("div",{staticClass:"ml-1"},[a.item.owner?e("list-entry",{attrs:{title:"Owner",data:a.item.owner}}):t._e(),a.item.hash?e("list-entry",{attrs:{title:"Hash",data:a.item.hash}}):t._e(),a.item.version>=5?e("div",[a.item.contacts.length>0?e("list-entry",{attrs:{title:"Contacts",data:JSON.stringify(a.item.contacts)}}):t._e(),a.item.geolocation.length?e("div",t._l(a.item.geolocation,(function(a){return e("div",{key:a},[e("list-entry",{attrs:{title:"Geolocation",data:t.getGeolocation(a)}})],1)})),0):e("div",[e("list-entry",{attrs:{title:"Continent",data:"All"}}),e("list-entry",{attrs:{title:"Country",data:"All"}}),e("list-entry",{attrs:{title:"Region",data:"All"}})],1)],1):t._e(),a.item.instances?e("list-entry",{attrs:{title:"Instances",data:a.item.instances.toString()}}):t._e(),e("list-entry",{attrs:{title:"Expires in",data:t.labelForExpire(a.item.expire,a.item.height)}}),a.item?.nodes?.length>0?e("list-entry",{attrs:{title:"Enterprise Nodes",data:a.item.nodes?a.item.nodes.toString():"Not scoped"}}):t._e(),e("list-entry",{attrs:{title:"Static IP",data:a.item.staticip?"Yes, Running only on Static IP nodes":"No, Running on all nodes"}})],1),a.item.version<=3?e("div",[e("b-card",[e("list-entry",{attrs:{title:"Repository",data:a.item.repotag}}),e("list-entry",{attrs:{title:"Custom Domains",data:a.item.domains.toString()||"none"}}),e("list-entry",{attrs:{title:"Automatic Domains",data:t.constructAutomaticDomains(a.item.ports,void 0,a.item.name).toString()}}),e("list-entry",{attrs:{title:"Ports",data:a.item.ports.toString()}}),e("list-entry",{attrs:{title:"Container Ports",data:a.item.containerPorts.toString()}}),e("list-entry",{attrs:{title:"Container Data",data:a.item.containerData}}),e("list-entry",{attrs:{title:"Enviroment Parameters",data:a.item.enviromentParameters.length>0?a.item.enviromentParameters.toString():"none"}}),e("list-entry",{attrs:{title:"Commands",data:a.item.commands.length>0?a.item.commands.toString():"none"}}),a.item.tiered?e("div",[e("list-entry",{attrs:{title:"CPU Cumulus",data:`${a.item.cpubasic} vCore`}}),e("list-entry",{attrs:{title:"CPU Nimbus",data:`${a.item.cpusuper} vCore`}}),e("list-entry",{attrs:{title:"CPU Stratus",data:`${a.item.cpubamf} vCore`}}),e("list-entry",{attrs:{title:"RAM Cumulus",data:`${a.item.rambasic} MB`}}),e("list-entry",{attrs:{title:"RAM Nimbus",data:`${a.item.ramsuper} MB`}}),e("list-entry",{attrs:{title:"RAM Stratus",data:`${a.item.rambamf} MB`}}),e("list-entry",{attrs:{title:"SSD Cumulus",data:`${a.item.hddbasic} GB`}}),e("list-entry",{attrs:{title:"SSD Nimbus",data:`${a.item.hddsuper} GB`}}),e("list-entry",{attrs:{title:"SSD Stratus",data:`${a.item.hddbamf} GB`}})],1):e("div",[e("list-entry",{attrs:{title:"CPU",data:`${a.item.cpu} vCore`}}),e("list-entry",{attrs:{title:"RAM",data:`${a.item.ram} MB`}}),e("list-entry",{attrs:{title:"SSD",data:`${a.item.hdd} GB`}})],1)],1)],1):e("div",[e("h3",{staticClass:"no-wrap"},[e("kbd",{staticClass:"alert-info d-flex",staticStyle:{"border-radius":"15px","font-family":"monospace","padding-right":"100%"}},[e("b-icon",{staticClass:"ml-1",attrs:{scale:"1",icon:"box"}}),t._v("  Composition ")],1)]),t._l(a.item.compose,(function(i,s){return e("b-card",{key:s,staticClass:"mb-0"},[e("h3",{staticClass:"no-wrap"},[e("kbd",{staticClass:"alert-success d-flex",staticStyle:{"border-radius":"15px","font-family":"monospace","max-width":"500px"}},[e("b-icon",{staticClass:"ml-1",attrs:{scale:"1",icon:"menu-app-fill"}}),t._v("  "+t._s(i.name)+" ")],1)]),e("div",{staticClass:"ml-1"},[e("list-entry",{attrs:{title:"Name",data:i.name}}),e("list-entry",{attrs:{title:"Description",data:i.description}}),e("list-entry",{attrs:{title:"Repository",data:i.repotag}}),e("list-entry",{attrs:{title:"Repository Authentication",data:i.repoauth?"Content Encrypted":"Public"}}),e("list-entry",{attrs:{title:"Custom Domains",data:i.domains.toString()||"none"}}),e("list-entry",{attrs:{title:"Automatic Domains",data:t.constructAutomaticDomains(i.ports,i.name,a.item.name,s).toString()}}),e("list-entry",{attrs:{title:"Ports",data:i.ports.toString()}}),e("list-entry",{attrs:{title:"Container Ports",data:i.containerPorts.toString()}}),e("list-entry",{attrs:{title:"Container Data",data:i.containerData}}),e("list-entry",{attrs:{title:"Environment Parameters",data:i.environmentParameters.length>0?i.environmentParameters.toString():"none"}}),e("list-entry",{attrs:{title:"Commands",data:i.commands.length>0?i.commands.toString():"none"}}),e("list-entry",{attrs:{title:"Secret Environment Parameters",data:i.secrets?"Content Encrypted":"none"}}),i.tiered?e("div",[e("list-entry",{attrs:{title:"CPU Cumulus",data:`${i.cpubasic} vCore`}}),e("list-entry",{attrs:{title:"CPU Nimbus",data:`${i.cpusuper} vCore`}}),e("list-entry",{attrs:{title:"CPU Stratus",data:`${i.cpubamf} vCore`}}),e("list-entry",{attrs:{title:"RAM Cumulus",data:`${i.rambasic} MB`}}),e("list-entry",{attrs:{title:"RAM Nimbus",data:`${i.ramsuper} MB`}}),e("list-entry",{attrs:{title:"RAM Stratus",data:`${i.rambamf} MB`}}),e("list-entry",{attrs:{title:"SSD Cumulus",data:`${i.hddbasic} GB`}}),e("list-entry",{attrs:{title:"SSD Nimbus",data:`${i.hddsuper} GB`}}),e("list-entry",{attrs:{title:"SSD Stratus",data:`${i.hddbamf} GB`}})],1):e("div",[e("list-entry",{attrs:{title:"CPU",data:`${i.cpu} vCore`}}),e("list-entry",{attrs:{title:"RAM",data:`${i.ram} MB`}}),e("list-entry",{attrs:{title:"SSD",data:`${i.hdd} GB`}})],1)],1)])}))],2),e("h3",[e("kbd",{staticClass:"alert-info d-flex",staticStyle:{"border-radius":"15px","font-family":"monospace","padding-right":"100%"}},[e("b-icon",{attrs:{scale:"1",icon:"globe"}}),t._v("  Locations ")],1)]),e("b-row",[e("b-col",{staticClass:"my-1",attrs:{md:"4",sm:"4"}},[e("b-form-group",{staticClass:"mb-0"},[e("label",{staticClass:"d-inline-block text-left mr-50"},[t._v("Per page")]),e("b-form-select",{staticClass:"w-50",attrs:{id:"perPageSelect",size:"sm",options:t.appLocationOptions.pageOptions},model:{value:t.appLocationOptions.perPage,callback:function(e){t.$set(t.appLocationOptions,"perPage",e)},expression:"appLocationOptions.perPage"}})],1)],1),e("b-col",{staticClass:"my-1",attrs:{md:"8"}},[e("b-form-group",{staticClass:"mb-0",attrs:{label:"Filter","label-cols-sm":"1","label-align-sm":"right","label-for":"filterInput"}},[e("b-input-group",{attrs:{size:"sm"}},[e("b-form-input",{attrs:{id:"filterInput",type:"search",placeholder:"Type to Search"},model:{value:t.appLocationOptions.filter,callback:function(e){t.$set(t.appLocationOptions,"filter",e)},expression:"appLocationOptions.filter"}}),e("b-input-group-append",[e("b-button",{attrs:{disabled:!t.appLocationOptions.filter},on:{click:function(e){t.appLocationOptions.filter=""}}},[t._v(" Clear ")])],1)],1)],1)],1),e("b-col",{attrs:{cols:"12"}},[e("b-table",{staticClass:"locations-table",attrs:{borderless:"","per-page":t.appLocationOptions.perPage,"current-page":t.appLocationOptions.currentPage,items:t.appLocations,fields:t.appLocationFields,"thead-class":"d-none",filter:t.appLocationOptions.filter,"show-empty":"","sort-icon-left":"","empty-text":"No instances found.."},scopedSlots:t._u([{key:"cell(ip)",fn:function(a){return[e("div",{staticClass:"no-wrap"},[e("kbd",{staticClass:"alert-info",staticStyle:{"border-radius":"15px"}},[e("b-icon",{attrs:{scale:"1.1",icon:"hdd-network-fill"}})],1),t._v("  "),e("kbd",{staticClass:"alert-success no-wrap",staticStyle:{"border-radius":"15px"}},[e("b",[t._v("  "+t._s(a.item.ip)+"  ")])])])]}},{key:"cell(visit)",fn:function(i){return[e("div",{staticClass:"d-flex justify-content-end"},[e("b-button",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.top",value:"Visit App",expression:"'Visit App'",modifiers:{hover:!0,top:!0}}],staticClass:"mr-1",attrs:{size:"sm",pill:"",variant:"dark"},on:{click:function(e){t.openApp(a.item.name,i.item.ip.split(":")[0],t.getProperPort(a.item))}}},[e("b-icon",{attrs:{scale:"1",icon:"door-open"}}),t._v(" App ")],1),e("b-button",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.top",value:"Visit FluxNode",expression:"'Visit FluxNode'",modifiers:{hover:!0,top:!0}}],staticClass:"mr-0",attrs:{size:"sm",pill:"",variant:"outline-dark"},on:{click:function(e){t.openNodeFluxOS(i.item.ip.split(":")[0],i.item.ip.split(":")[1]?+i.item.ip.split(":")[1]-1:16126)}}},[e("b-icon",{attrs:{scale:"1",icon:"house-door-fill"}}),t._v(" FluxNode ")],1),t._v("   ")],1)]}}],null,!0)})],1),e("b-col",{attrs:{cols:"12"}},[e("b-pagination",{staticClass:"my-0 mt-1",attrs:{"total-rows":t.appLocationOptions.totalRows,"per-page":t.appLocationOptions.perPage,align:"center",size:"sm"},model:{value:t.appLocationOptions.currentPage,callback:function(e){t.$set(t.appLocationOptions,"currentPage",e)},expression:"appLocationOptions.currentPage"}})],1)],1)],1)]}}],null,!1,3275809554)})],1)],1),e("b-col",{attrs:{cols:"12"}},[e("b-pagination",{staticClass:"my-0",attrs:{"total-rows":t.tableconfig.active_marketplace?.apps?.length||1,"per-page":t.tableconfig.active_marketplace.perPage,align:"center",size:"sm"},model:{value:t.tableconfig.active_marketplace.currentPage,callback:function(e){t.$set(t.tableconfig.active_marketplace,"currentPage",e)},expression:"tableconfig.active_marketplace.currentPage"}})],1)],1)],1)],1)],1),t.managedApplication?e("div",[e("management",{attrs:{"app-name":t.managedApplication,global:!0,"installed-apps":[]},on:{back:function(e){return t.clearManagedApplication()}}})],1):t._e()],1)},s=[],n=(a(70560),a(58887)),o=a(51015),r=a(16521),l=a(50725),c=a(86855),p=a(26253),m=a(15193),d=a(66126),u=a(5870),b=a(20266),g=a(20629),f=a(34547),v=a(51748),y=a(87156),h=a(49371),C=a(43672),S=a(27616);const _=a(80129),x=a(57306),k={components:{BTabs:n.M,BTab:o.L,BTable:r.h,BCol:l.l,BCard:c._,BRow:p.T,BButton:m.T,BOverlay:d.X,ListEntry:v.Z,ConfirmDialog:y.Z,Management:h.Z,ToastificationContent:f.Z},directives:{"b-tooltip":u.o,Ripple:b.Z},data(){return{managedApplication:"",daemonBlockCount:-1,appLocations:[],appLocationFields:[{key:"ip",label:"Locations",thStyle:{width:"30%"}},{key:"visit",label:""}],myappLocations:[],myappLocationFields:[{key:"ip",label:"IP Address",thStyle:{width:"30%"}},{key:"visit",label:""}],tableconfig:{active:{apps:[],fields:[{key:"show_details",label:""},{key:"name",label:"Name",sortable:!0,thStyle:{width:"18%"}},{key:"description",label:"Description",thStyle:{width:"75%"}},{key:"Management",label:"",thStyle:{width:"3%"}},{key:"visit",label:"",class:"text-center",thStyle:{width:"3%"}}],loading:!0,sortBy:"",sortDesc:!1,sortDirection:"asc",filter:"",filterOn:[],perPage:25,pageOptions:[5,10,25,50,100],currentPage:1,totalRows:1},active_marketplace:{apps:[],fields:[{key:"show_details",label:""},{key:"name",label:"Name",sortable:!0,thStyle:{width:"18%"}},{key:"description",label:"Description",thStyle:{width:"75%"}},{key:"Management",label:"",thStyle:{width:"3%"}},{key:"visit",label:"",class:"text-center",thStyle:{width:"3%"}}],loading:!0,sortBy:"",sortDesc:!1,sortDirection:"asc",filter:"",filterOn:[],perPage:25,pageOptions:[5,10,25,50,100],currentPage:1,totalRows:1}},allApps:[],appLocationOptions:{perPage:5,pageOptions:[5,10,25,50,100],currentPage:1,totalRows:1,filterOn:[],filter:""}}},computed:{...(0,g.rn)("flux",["config","userconfig","privilege"]),myGlobalApps(){const t=localStorage.getItem("zelidauth"),e=_.parse(t);return this.allApps?this.allApps.filter((t=>t.owner===e.zelid)):[]},isLoggedIn(){const t=localStorage.getItem("zelidauth"),e=_.parse(t);return!!e.zelid}},mounted(){this.appsGetListGlobalApps(),this.getDaemonBlockCount()},methods:{getServiceUsageValue(t,e,a){if("undefined"===typeof a?.compose)return this.usage=[+a.ram,+a.cpu,+a.hdd],this.usage[t];const i=this.getServiceUsage(e,a.compose);return i[t]},getServiceUsage(t,e){let a=0,i=0,s=0;return e.forEach((t=>{a+=t.ram,i+=t.cpu,s+=t.hdd})),console.log(`Info: ${a}, ${i}, ${s}`),[a,i,s]},isLessThanTwoDays(t){const e=t?.split(",").map((t=>t.trim()));let a=0,i=0,s=0;for(const o of e)o.includes("days")?a=parseInt(o,10):o.includes("hours")?i=parseInt(o,10):o.includes("minutes")&&(s=parseInt(o,10));const n=24*a*60+60*i+s;return n<2880},minutesToString(t){let e=60*t;const a={day:86400,hour:3600,minute:60,second:1},i=[];for(const s in a){const t=Math.floor(e/a[s]);1===t&&i.push(` ${t} ${s}`),t>=2&&i.push(` ${t} ${s}s`),e%=a[s]}return i},labelForExpire(t,e){if(-1===this.daemonBlockCount)return"Not possible to calculate expiration";const a=t||22e3,i=e+a-this.daemonBlockCount;if(i<1)return"Application Expired";const s=2*i,n=this.minutesToString(s);return n.length>2?`${n[0]}, ${n[1]}, ${n[2]}`:n.length>1?`${n[0]}, ${n[1]}`:`${n[0]}`},async getDaemonBlockCount(){const t=await S.Z.getBlockCount();"success"===t.data.status&&(this.daemonBlockCount=t.data.data)},openAppManagement(t){this.managedApplication=t},clearManagedApplication(){this.managedApplication=""},async appsGetListGlobalApps(){this.tableconfig.active.loading=!0;const t=await C.Z.globalAppSpecifications();console.log(t),this.allApps=t.data.data,this.tableconfig.active.apps=this.allApps.filter((t=>{if(t.name.length>=14){const e=t.name.substring(t.name.length-13,t.name.length),a=Number(e);if(!Number.isNaN(a))return!1}return!0})),this.tableconfig.active_marketplace.apps=this.allApps.filter((t=>{if(t.name.length>=14){const e=t.name.substring(t.name.length-13,t.name.length),a=Number(e);if(!Number.isNaN(a))return!0}return!1})),this.tableconfig.active.loading=!1,this.loadPermanentMessages()},async loadPermanentMessages(){try{const t=localStorage.getItem("zelidauth"),e=_.parse(t);if(!e.zelid)return void(this.tableconfig.my_expired.loading=!1);const a=await C.Z.permanentMessagesOwner(e.zelid),i=[];for(const n of a.data.data){const t=i.find((t=>t.appSpecifications.name===n.appSpecifications.name));if(t){if(n.height>t.height){const t=i.findIndex((t=>t.appSpecifications.name===n.appSpecifications.name));t>-1&&(i.splice(t,1),i.push(n))}}else i.push(n)}const s=[];for(const n of i){const t=this.allApps.find((t=>t.name.toLowerCase()===n.appSpecifications.name.toLowerCase()));if(!t){const t=n.appSpecifications;s.push(t)}}this.tableconfig.my_expired.apps=s,this.tableconfig.my_expired.loading=!1}catch(t){console.log(t)}},redeployApp(t,e=!1){const a=t;e&&(a.name+="XXX",a.name+=Date.now().toString().slice(-5));const i=localStorage.getItem("zelidauth"),s=_.parse(i);s?a.owner=s.zelid:e&&(a.owner=""),this.$router.replace({name:"apps-registerapp",params:{appspecs:JSON.stringify(t)}})},copyToClipboard(t){const e=JSON.parse(t);delete e._showDetails;const a=JSON.stringify(e),i=document.createElement("textarea");i.value=a,i.setAttribute("readonly",""),i.style.position="absolute",i.style.left="-9999px",document.body.appendChild(i),i.select(),document.execCommand("copy"),document.body.removeChild(i),this.showToast("success","Application Specifications copied to Clipboard")},openApp(t,e,a){if(console.log(t,e,a),a&&e){const t=e,i=a,s=`http://${t}:${i}`;this.openSite(s)}else this.showToast("danger","Unable to open App :(, App does not have a port.")},getProperPort(t){if(t.port)return t.port;if(t.ports)return t.ports[0];for(let e=0;e{this.showToast("danger",t.message||t)}));if(console.log(e),"success"===e.data.status){const a=e.data.data,i=a[0];if(i){const e=`https://${t}.app.runonflux.io`;this.openSite(e)}else this.showToast("danger","Application is awaiting launching...")}else this.showToast("danger",e.data.data.message||e.data.data)},openSite(t){const e=window.open(t,"_blank");e.focus()},tabChanged(){this.tableconfig.active.apps.forEach((t=>{this.$set(t,"_showDetails",!1)})),this.tableconfig.active_marketplace.apps.forEach((t=>{this.$set(t,"_showDetails",!1)})),this.appLocations=[]},showLocations(t,e){t.detailsShowing?t.toggleDetails():(e.forEach((t=>{this.$set(t,"_showDetails",!1)})),this.$nextTick((()=>{t.toggleDetails(),this.loadLocations(t)})))},async loadLocations(t){console.log(t),this.appLocations=[];const e=await C.Z.getAppLocation(t.item.name).catch((t=>{this.showToast("danger",t.message||t)}));if(console.log(e),"success"===e.data.status){const t=e.data.data;this.appLocations=t}},showToast(t,e,a="InfoIcon"){this.$toast({component:f.Z,props:{title:e,icon:a,variant:t}})},constructAutomaticDomains(t,e="",a,i=0){const s=a.toLowerCase(),n=e.toLowerCase();if(!n){const e=[];0===i&&e.push(`${s}.app.runonflux.io`);for(let a=0;at.code===e))||{name:"ALL"};return`Continent: ${a.name||"Unkown"}`}if(t.startsWith("b")){const e=t.slice(1),a=x.countries.find((t=>t.code===e))||{name:"ALL"};return`Country: ${a.name||"Unkown"}`}if(t.startsWith("ac")){const e=t.slice(2),a=e.split("_"),i=a[0],s=a[1],n=a[2],o=x.continents.find((t=>t.code===i))||{name:"ALL"},r=x.countries.find((t=>t.code===s))||{name:"ALL"};let l=`Allowed location: Continent: ${o.name}`;return s&&(l+=`, Country: ${r.name}`),n&&(l+=`, Region: ${n}`),l}if(t.startsWith("a!c")){const e=t.slice(3),a=e.split("_"),i=a[0],s=a[1],n=a[2],o=x.continents.find((t=>t.code===i))||{name:"ALL"},r=x.countries.find((t=>t.code===s))||{name:"ALL"};let l=`Forbidden location: Continent: ${o.name}`;return s&&(l+=`, Country: ${r.name}`),n&&(l+=`, Region: ${n}`),l}return"All locations allowed"}}},w=k;var $=a(1001),P=(0,$.Z)(w,i,s,!1,null,null,null);const A=P.exports}}]); \ No newline at end of file diff --git a/HomeUI/dist/js/2791.js b/HomeUI/dist/js/2791.js index d73ea4918..7f1e0524d 100644 --- a/HomeUI/dist/js/2791.js +++ b/HomeUI/dist/js/2791.js @@ -1 +1 @@ -"use strict";(globalThis["webpackChunkflux"]=globalThis["webpackChunkflux"]||[]).push([[2791],{82791:(t,n,l)=>{l.r(n),l.d(n,{default:()=>b});var u=function(){var t=this,n=t._self._c;return n("layout-full",[n("router-view")],1)},e=[],o=function(){var t=this,n=t._self._c;return n("div",{class:"boxed"===t.contentWidth?"container p-0":null},[n("router-view")],1)},r=[],s=l(37307);const c={setup(){const{contentWidth:t}=(0,s.Z)();return{contentWidth:t}}},a=c;var i=l(1001),h=(0,i.Z)(a,o,r,!1,null,null,null);const f=h.exports,p={components:{LayoutFull:f}},v=p;var d=(0,i.Z)(v,u,e,!1,null,null,null);const b=d.exports}}]); \ No newline at end of file +"use strict";(self["webpackChunkflux"]=self["webpackChunkflux"]||[]).push([[2791],{82791:(t,n,l)=>{l.r(n),l.d(n,{default:()=>x});var u=function(){var t=this,n=t._self._c;return n("layout-full",[n("router-view")],1)},e=[],r=function(){var t=this,n=t._self._c;return n("div",{class:"boxed"===t.contentWidth?"container p-0":null},[n("router-view")],1)},o=[],s=l(37307);const c={setup(){const{contentWidth:t}=(0,s.Z)();return{contentWidth:t}}},a=c;var i=l(1001),f=(0,i.Z)(a,r,o,!1,null,null,null);const h=f.exports,p={components:{LayoutFull:h}},v=p;var d=(0,i.Z)(v,u,e,!1,null,null,null);const x=d.exports}}]); \ No newline at end of file diff --git a/HomeUI/dist/js/3041.js b/HomeUI/dist/js/3041.js deleted file mode 100644 index 87cb22e6e..000000000 --- a/HomeUI/dist/js/3041.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(globalThis["webpackChunkflux"]=globalThis["webpackChunkflux"]||[]).push([[3041],{51748:(t,e,s)=>{s.d(e,{Z:()=>d});var a=function(){var t=this,e=t._self._c;return e("dl",{staticClass:"row",class:t.classes},[e("dt",{staticClass:"col-sm-3"},[t._v(" "+t._s(t.title)+" ")]),t.href.length>0?e("dd",{staticClass:"col-sm-9 mb-0",class:`text-${t.variant}`},[t.href.length>0?e("b-link",{attrs:{href:t.href,target:"_blank",rel:"noopener noreferrer"}},[t._v(" "+t._s(t.data.length>0?t.data:t.number!==Number.MAX_VALUE?t.number:"")+" ")]):t._e()],1):t.click?e("dd",{staticClass:"col-sm-9 mb-0",class:`text-${t.variant}`,on:{click:function(e){return t.$emit("click")}}},[e("b-link",[t._v(" "+t._s(t.data.length>0?t.data:t.number!==Number.MAX_VALUE?t.number:"")+" ")])],1):e("dd",{staticClass:"col-sm-9 mb-0",class:`text-${t.variant}`},[t._v(" "+t._s(t.data.length>0?t.data:t.number!==Number.MAX_VALUE?t.number:"")+" ")])])},n=[],r=s(67347);const i={components:{BLink:r.we},props:{title:{type:String,required:!0},classes:{type:String,required:!1,default:"mb-1"},data:{type:String,required:!1,default:""},number:{type:Number,required:!1,default:Number.MAX_VALUE},variant:{type:String,required:!1,default:"secondary"},href:{type:String,required:!1,default:""},click:{type:Boolean,required:!1,default:!1}}},o=i;var l=s(1001),c=(0,l.Z)(o,a,n,!1,null,null,null);const d=c.exports},266:(t,e,s)=>{s.r(e),s.d(e,{default:()=>$});var a=function(){var t=this,e=t._self._c;return e("div",[e("b-row",[e("b-col",{attrs:{cols:"4",sm:"4",lg:"2"}},[t.explorerView?t._e():e("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"mr-2",attrs:{variant:"outline-primary",pill:""},on:{click:t.goBackToExplorer}},[e("v-icon",{attrs:{name:"chevron-left"}}),t._v(" Back ")],1)],1),e("b-col",{attrs:{cols:"8",sm:"8",lg:"10"}},[e("b-form-input",{attrs:{placeholder:"Search for block, transaction or address"},model:{value:t.searchBar,callback:function(e){t.searchBar=e},expression:"searchBar"}})],1)],1),t.explorerView?e("b-row",[e("b-col",{attrs:{xs:"12"}},[e("b-table",{staticClass:"blocks-table mt-2",attrs:{striped:"",hover:"",responsive:"",items:t.blocks,fields:t.blocksFields,"sort-by":"height","sort-desc":!0},on:{"row-clicked":t.selectBlock},scopedSlots:t._u([{key:"cell(time)",fn:function(e){return[t._v(" "+t._s(t.formatTimeAgo(e.item.time))+" ")]}},{key:"cell(transactions)",fn:function(e){return[t._v(" "+t._s(e.item.tx.length)+" ")]}}],null,!1,250861534)}),e("div",{staticClass:"text-center"},[e("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"mt-1",attrs:{variant:"primary"},on:{click:t.loadMoreBlocks}},[t._v(" Load More Blocks ")])],1),e("div",{staticClass:"syncstatus"},[t._v(" "+t._s(`Synced: ${t.scannedHeight}/${t.getInfoResponse.data.blocks}`)+" ")])],1)],1):t._e(),t.blockView?e("b-row",{staticClass:"mt-2"},[e("b-col",{attrs:{cols:"12"}},[e("b-card",{attrs:{title:`Block #${t.selectedBlock.height}`}},[e("list-entry",{attrs:{title:"Block Hash",data:t.selectedBlock.hash}}),t.selectedBlock.height>0?e("list-entry",{attrs:{title:"Previous Block",number:t.selectedBlock.height-1,click:!0},on:{click:t.selectPreviousBlock}}):t._e()],1),e("b-card",{attrs:{title:"Summary"}},[e("b-row",[e("b-col",{attrs:{cols:"12",lg:"4"}},[e("list-entry",{attrs:{title:"Transactions",number:t.selectedBlock.tx.length}}),e("list-entry",{attrs:{title:"Height",number:t.selectedBlock.height}}),e("list-entry",{attrs:{title:"Timestamp",data:new Date(1e3*t.selectedBlock.time).toLocaleString("en-GB",t.timeoptions.shortDate)}}),e("list-entry",{attrs:{title:"Difficulty",number:t.selectedBlock.difficulty}}),e("list-entry",{attrs:{title:"Size (bytes)",number:t.selectedBlock.size}})],1),e("b-col",{attrs:{cols:"12",lg:"8"}},[e("list-entry",{attrs:{title:"Version",number:t.selectedBlock.version}}),e("list-entry",{attrs:{title:"Bits",data:t.selectedBlock.bits}}),e("list-entry",{attrs:{title:"Merkle Root",data:t.selectedBlock.merkleroot}}),e("list-entry",{attrs:{title:"Nonce",data:t.selectedBlock.nonce}}),e("list-entry",{attrs:{title:"Solution",data:t.selectedBlock.solution}})],1)],1)],1),e("b-card",{attrs:{title:"Transactions"}},[e("app-collapse",t._l(t.selectedBlockTransactions,(function(s){return e("app-collapse-item",{key:s.txid,staticClass:"txid-title",attrs:{title:`TXID: ${s.txid}`}},[e("Transaction",{attrs:{transaction:s,"current-height":t.getInfoResponse.data.blocks}})],1)})),1)],1)],1)],1):t._e(),t.txView?e("b-row",{staticClass:"mt-2"},[e("b-col",{attrs:{cols:"12"}},[e("b-overlay",{attrs:{show:!t.transactionDetail.txid,variant:"transparent",blur:"5px",opacity:"0.82"}},[e("b-card",{attrs:{title:`Transaction: ${t.transactionDetail.txid?t.transactionDetail.txid:"Loading..."}`}},[t.transactionDetail.txid?e("Transaction",{attrs:{transaction:t.transactionDetail,"current-height":t.getInfoResponse.data.blocks}}):t._e()],1)],1)],1)],1):t._e(),t.addressView?e("b-overlay",{attrs:{show:!t.addressWithTransactions[t.address],variant:"transparent",blur:"5px",opacity:"0.82"}},[e("b-row",{key:t.uniqueKeyAddress,staticClass:"mt-2 match-height"},[e("b-col",{attrs:{cols:"12",lg:"6"}},[e("b-card",{attrs:{title:`Address: ${t.addressWithTransactions[t.address]?t.addressWithTransactions[t.address].address:"Loading..."}`}},[e("h2",[t._v(" Balance: "+t._s(t.addressWithTransactions[t.address]?`${(t.addressWithTransactions[t.address].balance/1e8).toLocaleString()} FLUX`:"Loading...")+" ")])])],1),e("b-col",{attrs:{cols:"12",lg:"6"}},[e("b-card",{attrs:{title:"Summary"}},[e("list-entry",{attrs:{title:"No. Transactions",number:t.addressWithTransactions[t.address]?t.addressWithTransactions[t.address].transactions.length:0}})],1)],1)],1),t.addressWithTransactions[t.address]&&t.addressWithTransactions[t.address].fetchedTransactions&&t.addressWithTransactions[t.address].fetchedTransactions.length>0?e("b-row",[e("b-col",{attrs:{cols:"12"}},[e("b-card",{attrs:{title:"Transactions"}},[e("app-collapse",t._l(t.addressWithTransactions[t.address].fetchedTransactions,(function(s){return e("app-collapse-item",{key:s.txid,attrs:{title:`TXID: ${s.txid}`}},[e("Transaction",{attrs:{transaction:s,"current-height":t.getInfoResponse.data.blocks}})],1)})),1)],1)],1)],1):t._e()],1):t._e()],1)},n=[],r=(s(70560),s(15193)),i=s(86855),o=s(22183),l=s(16521),c=s(66126),d=s(20266),u=s(34547),h=s(57796),g=s(22049),p=s(51748),y=function(){var t=this,e=t._self._c;return e("b-card",{staticClass:"mb-0"},[e("list-entry",{attrs:{title:"Date",data:new Date(1e3*t.transaction.time).toLocaleString("en-GB",t.timeoptions.shortDate),classes:"skinny-list-entry"}}),e("list-entry",{attrs:{title:"Confirmations",number:t.transaction.height?t.currentHeight-t.transaction.height+1:0,classes:"skinny-list-entry"}}),e("list-entry",{attrs:{title:"Version",data:`${t.transaction.version} ${5===t.transaction.version?" - Flux transaction":JSON.stringify(t.transaction.vin).includes("coinbase")?" - Coinbase transaction":" - Standard transaction"}`,classes:"skinny-list-entry"}}),e("list-entry",{attrs:{title:"Size",data:t.transaction.hex.length/2+" bytes",classes:"skinny-list-entry"}}),e("list-entry",{attrs:{title:"Fee",data:`${t.calculateTxFee()} FLUX`,classes:"skinny-list-entry"}}),t.transaction.version<5&&t.transaction.version>0?e("div",[e("list-entry",{attrs:{title:"Overwintered",data:t.transaction.overwintered.toString(),classes:"skinny-list-entry"}}),e("list-entry",{attrs:{title:"Version Group ID",data:t.transaction.versiongroupid,classes:"skinny-list-entry"}}),e("list-entry",{attrs:{title:"Lock Time",number:t.transaction.locktime,classes:"skinny-list-entry"}}),e("list-entry",{attrs:{title:"Expiry Height",number:t.transaction.expiryheight,classes:"skinny-list-entry"}})],1):t._e(),t.transaction.version<5&&t.transaction.version>0?e("div",[4===t.transaction.version?e("list-entry",{attrs:{title:"Sapling Inputs / Outputs",data:`${t.transaction.vShieldedSpend.length} / ${t.transaction.vShieldedOutput.length}`,classes:"skinny-list-entry"}}):t._e(),e("list-entry",{attrs:{title:"Sprout Inputs / Outputs",data:`${t.calculateJoinSplitInput(t.transaction.vJoinSplit)} / ${t.calculateJoinSplitOutput(t.transaction.vJoinSplit)}`,classes:"skinny-list-entry"}}),e("b-row",{staticClass:"match-height mt-1"},[e("b-col",{attrs:{cols:"6"}},[e("b-card",{staticClass:"io-section",attrs:{title:"Inputs","border-variant":"secondary"}},t._l(t.transaction.vin.length,(function(s){return e("div",{key:s},[e("div",[t.transaction.vin[s-1].coinbase?e("div",[t._v(" No Inputs (Newly generated coins) ")]):"object"===typeof t.transaction.senders[s-1]?e("b-card",{key:t.transaction.senders[s-1].value||t.transaction.senders[s-1],staticClass:"tx",attrs:{"border-variant":"success","no-body":""}},[e("b-card-body",{staticClass:"d-flex tx-body"},[e("p",{staticClass:"flex-grow-1"},[t._v(" "+t._s(t.transaction.senders[s-1].scriptPubKey.addresses[0])+" ")]),e("p",[t._v(" "+t._s(t.transaction.senders[s-1].value)+" FLUX ")])])],1):e("div",[t._v(" "+t._s(t.transaction.senders[s-1]||"Loading Sender")+" ")])],1)])})),0)],1),e("b-col",{attrs:{cols:"6"}},[e("b-card",{staticClass:"io-section",attrs:{title:"Outputs","border-variant":"secondary"}},t._l(t.transaction.vout.length,(function(s){return e("b-card",{key:s,staticClass:"tx",attrs:{"border-variant":"warning","no-body":""}},[t.transaction.vout[s-1].scriptPubKey.addresses?e("b-card-body",{staticClass:"tx-body"},[e("b-row",[e("b-col",{attrs:{lg:"8",xs:"12"}},[e("p",{staticClass:"flex-grow-1"},[t._v(" "+t._s(t.transaction.vout[s-1].scriptPubKey.addresses[0])+" ")])]),e("b-col",{attrs:{lg:"4",xs:"12"}},[e("p",[t._v(" "+t._s(t.transaction.vout[s-1].value)+" FLUX ")])])],1)],1):e("b-card-body",[t._v(" "+t._s(t.decodeMessage(t.transaction.vout[s-1].asm))+" ")])],1)})),1)],1)],1)],1):t._e(),5===t.transaction.version?e("div",[e("list-entry",{attrs:{title:"Type",data:t.transaction.type,classes:"skinny-list-entry"}}),e("list-entry",{attrs:{title:"Collateral Hash",data:t.getValueHexBuffer(t.transaction.hex.slice(10,74)),classes:"skinny-list-entry"}}),e("list-entry",{attrs:{title:"Collateral Index",number:t.getCollateralIndex(t.transaction.hex.slice(74,82)),classes:"skinny-list-entry"}}),e("list-entry",{attrs:{title:"Signature",data:t.transaction.sig,classes:"skinny-list-entry"}}),e("list-entry",{attrs:{title:"Signature Time",data:new Date(1e3*t.transaction.sigtime).toLocaleString("en-GB",t.timeoptions.shortDate),classes:"skinny-list-entry"}}),"Starting a fluxnode"===t.transaction.type?e("list-entry",{attrs:{title:"Collateral Public Key",data:t.transaction.collateral_pubkey,classes:"skinny-list-entry"}}):t._e(),"Starting a fluxnode"===t.transaction.type?e("list-entry",{attrs:{title:"Flux Public Key",data:t.transaction.zelnode_pubkey||t.transaction.fluxnode_pubkey||t.transaction.node_pubkey,classes:"skinny-list-entry"}}):t._e(),"Confirming a fluxnode"===t.transaction.type?e("list-entry",{attrs:{title:"Flux Network",data:t.transaction.ip,classes:"skinny-list-entry"}}):t._e(),"Confirming a fluxnode"===t.transaction.type?e("list-entry",{attrs:{title:"Update Type",number:t.transaction.update_type,classes:"skinny-list-entry"}}):t._e(),"Confirming a fluxnode"===t.transaction.type?e("list-entry",{attrs:{title:"Benchmark Tier",data:t.transaction.benchmark_tier,classes:"skinny-list-entry"}}):t._e(),"Confirming a fluxnode"===t.transaction.type?e("list-entry",{attrs:{title:"Benchmark Signature",data:t.transaction.benchmark_sig,classes:"skinny-list-entry"}}):t._e(),"Confirming a fluxnode"===t.transaction.type?e("list-entry",{attrs:{title:"Benchmark Signature Time",data:new Date(1e3*t.transaction.benchmark_sigtime).toLocaleString("en-GB",t.timeoptions.shortDate),classes:"skinny-list-entry"}}):t._e()],1):t._e()],1)},m=[],b=s(19279),k=s(48764)["lW"];const f=s(63005),v={components:{BCard:i._,BCardBody:b.O,ListEntry:p.Z},props:{transaction:{type:Object,default(){return{version:0}}},currentHeight:{type:Number,required:!0}},data(){return{timeoptions:f}},mounted(){this.processTransaction()},methods:{async processTransaction(){this.calculateTxFee()},getValueHexBuffer(t){const e=k.from(t,"hex").reverse();return e.toString("hex")},getCollateralIndex(t){const e=k.from(t,"hex").reverse();return parseInt(e.toString("hex"),16)},calculateTxFee(){if(5===this.transaction.version)return 0;if(this.transaction.vin[0]&&this.transaction.vin[0].coinbase)return 0;const t=this.transaction.valueBalanceZat||0;let e=0,s=0;this.transaction.senders.forEach((t=>{"object"===typeof t&&(s+=t.valueSat)})),this.transaction.vout.forEach((t=>{e+=t.valueSat})),this.transaction.vJoinSplit.forEach((t=>{s+=t.vpub_newZat,e+=t.vpub_oldZat}));const a=(t-e+s)/1e8;return a},calculateJoinSplitInput(t){let e=0;return t.forEach((t=>{e+=t.vpub_newZat})),e/1e8},calculateJoinSplitOutput(t){let e=0;return t.forEach((t=>{e+=t.vpub_oldZat})),e/1e8},decodeMessage(t){if(!t)return"";const e=t.split("OP_RETURN ",2);let s="";if(e[1]){const t=e[1],a=t.toString();for(let e=0;e0&&parseInt(t,10).toString().length===t.length||64===t.length?this.getBlock(t):t.length>=30&&t.length<38&&this.getAddress(t)},selectedBlock:{handler(t){this.selectedBlockTransactions=t.transactions},deep:!0,immediate:!0},addressWithTransactions:{handler(){},deep:!0,immediate:!0}},mounted(){this.daemonGetInfo(),this.getSyncedHeight()},methods:{async daemonGetInfo(){const t=await _.Z.getInfo();this.getInfoResponse.status=t.data.status,"number"===typeof t.data.data.blocks?(t.data.data.blocks>this.getInfoResponse.data.blocks||!this.getInfoResponse.data.blocks)&&(this.getInfoResponse.data=t.data.data,this.lastBlock=this.getInfoResponse.data.blocks,this.getBlocks(this.getInfoResponse.data.blocks)):(this.errorMessage="Unable to communicate with Flux Daemon",this.showToast("danger",this.errorMessage))},async getSyncedHeight(){const t=await Z.Z.getScannedHeight();"success"===t.data.status?this.scannedHeight=t.data.data.generalScannedHeight:this.scannedHeight="ERROR"},async getBlocks(t,e){const s=1,a=t-(e?1:20),n=[];for(let i=a;i<=t;i+=1)n.push(i);const r=[];this.blocks.forEach((t=>{r.push(t.hash)})),await Promise.all(n.map((async t=>{const a=await _.Z.getBlock(t,s);"success"===a.data.status&&(r.includes(a.data.data.hash)||(this.blocks.push(a.data.data),e&&e===a.data.data.height&&(this.selectedBlock=a.data.data),a.data.data.height0){const t=[];s.vin.forEach((e=>{e.coinbase||t.push(e)}));for(const s of t){const t=await this.getSenderForBlockOrAddress(s.txid,s.vout);this.addressWithTransactions[e].fetchedTransactions[a].senders.push(t),this.uniqueKeyAddress+=1}this.uniqueKeyAddress+=1}}a+=1,this.uniqueKeyAddress+=1}},async getTransaction(t){this.transactionDetail={},this.txView=!0,this.explorerView=!1;const e=1,s=await _.Z.getRawTransaction(t,e);if(console.log(s),"success"===s.data.status)if(s.data.data.version<5&&s.data.data.version>0){const t=s.data.data;t.senders=[],this.transactionDetail=t;const e=[];s.data.data.vin.forEach((t=>{t.coinbase||e.push(t)}));const a=[];for(const n of e){const t=await this.getSender(n.txid,n.vout);a.push(t);const e=s.data.data;e.senders=a,this.transactionDetail=e,this.uniqueKey+=1}}else this.transactionDetail=s.data.data,this.uniqueKey+=1;else this.showToast("warning","Transaction not found"),this.txView=!1,this.explorerView=!0;console.log(this.transactionDetail)},async getSender(t,e){const s=1,a=await _.Z.getRawTransaction(t,s);if(console.log(a),"success"===a.data.status){const t=a.data.data.vout[e];return t}return"Sender not found"},async getSenderForBlockOrAddress(t,e){const s=1,a=await _.Z.getRawTransaction(t,s);if(console.log(a),"success"===a.data.status){const t=a.data.data.vout[e];return t}return"Sender not found"},formatTimeAgo(t){const e={month:2592e6,week:6048e5,day:864e5,hour:36e5,minute:6e4},s=Date.now()-1e3*t;return s>e.month?`${Math.floor(s/e.month)} months ago`:s>e.week?`${Math.floor(s/e.week)} weeks ago`:s>e.day?`${Math.floor(s/e.day)} days ago`:s>e.hour?`${Math.floor(s/e.hour)} hours ago`:s>e.minute?`${Math.floor(s/e.minute)} minutes ago`:"Just now"},selectBlock(t){console.log(t),this.selectedBlock=t,this.explorerView=!1,this.blockView=!0,this.txView=!1,this.addressView=!1,this.selectedBlock.transactions=[],this.getBlockTransactions(this.selectedBlock)},async getBlockTransactions(t){let e=0;for(const s of t.tx){const a=await _.Z.getRawTransaction(s,1);if("success"===a.data.status){const s=a.data.data;if(s.senders=[],t.transactions.push(s),s.version<5&&s.version>0){const a=[];s.vin.forEach((t=>{t.coinbase||a.push(t)}));for(const s of a){const a=await this.getSenderForBlockOrAddress(s.txid,s.vout);t.transactions[e].senders.push(a)}}}e+=1}console.log(t)},selectPreviousBlock(){const t=this.selectedBlock.height-1;for(let e=0;e{s.r(e),s.d(e,{default:()=>r});const a={year:"numeric",month:"short",day:"numeric",hour:"2-digit",minute:"2-digit"},n={year:"numeric",month:"short",day:"numeric"},r={shortDate:a,date:n}},27616:(t,e,s)=>{s.d(e,{Z:()=>n});var a=s(80914);const n={help(){return(0,a.Z)().get("/daemon/help")},helpSpecific(t){return(0,a.Z)().get(`/daemon/help/${t}`)},getInfo(){return(0,a.Z)().get("/daemon/getinfo")},getFluxNodeStatus(){return(0,a.Z)().get("/daemon/getzelnodestatus")},getRawTransaction(t,e){return(0,a.Z)().get(`/daemon/getrawtransaction/${t}/${e}`)},listFluxNodes(){return(0,a.Z)().get("/daemon/listzelnodes")},viewDeterministicFluxNodeList(){return(0,a.Z)().get("/daemon/viewdeterministiczelnodelist")},getFluxNodeCount(){return(0,a.Z)().get("/daemon/getzelnodecount")},getStartList(){return(0,a.Z)().get("/daemon/getstartlist")},getDOSList(){return(0,a.Z)().get("/daemon/getdoslist")},fluxCurrentWinner(){return(0,a.Z)().get("/daemon/fluxcurrentwinner")},getBenchmarks(){return(0,a.Z)().get("/daemon/getbenchmarks")},getBenchStatus(){return(0,a.Z)().get("/daemon/getbenchstatus")},startBenchmark(t){return(0,a.Z)().get("/daemon/startbenchmark",{headers:{zelidauth:t}})},stopBenchmark(t){return(0,a.Z)().get("/daemon/stopbenchmark",{headers:{zelidauth:t}})},getBlockCount(){return(0,a.Z)().get("/daemon/getBlockCount")},getBlockchainInfo(){return(0,a.Z)().get("/daemon/getblockchaininfo")},getMiningInfo(){return(0,a.Z)().get("/daemon/getmininginfo")},getNetworkInfo(){return(0,a.Z)().get("/daemon/getnetworkinfo")},validateAddress(t,e){return(0,a.Z)().get(`/daemon/validateaddress/${e}`,{headers:{zelidauth:t}})},getWalletInfo(t){return(0,a.Z)().get("/daemon/getwalletinfo",{headers:{zelidauth:t}})},listFluxNodeConf(t){return(0,a.Z)().get("/daemon/listzelnodeconf",{headers:{zelidauth:t}})},start(t){return(0,a.Z)().get("/daemon/start",{headers:{zelidauth:t}})},restart(t){return(0,a.Z)().get("/daemon/restart",{headers:{zelidauth:t}})},stopDaemon(t){return(0,a.Z)().get("/daemon/stop",{headers:{zelidauth:t}})},rescanDaemon(t,e){return(0,a.Z)().get(`/daemon/rescanblockchain/${e}`,{headers:{zelidauth:t}})},getBlock(t,e){return(0,a.Z)().get(`/daemon/getblock/${t}/${e}`)},tailDaemonDebug(t){return(0,a.Z)().get("/flux/taildaemondebug",{headers:{zelidauth:t}})},justAPI(){return(0,a.Z)()},cancelToken(){return a.S}}},20702:(t,e,s)=>{s.d(e,{Z:()=>n});var a=s(80914);const n={getAddressBalance(t){return(0,a.Z)().get(`/explorer/balance/${t}`)},getAddressTransactions(t){return(0,a.Z)().get(`/explorer/transactions/${t}`)},getScannedHeight(){return(0,a.Z)().get("/explorer/scannedheight")},reindexExplorer(t){return(0,a.Z)().get("/explorer/reindex/false",{headers:{zelidauth:t}})},reindexFlux(t){return(0,a.Z)().get("/explorer/reindex/true",{headers:{zelidauth:t}})},rescanExplorer(t,e){return(0,a.Z)().get(`/explorer/rescan/${e}/false`,{headers:{zelidauth:t}})},rescanFlux(t,e){return(0,a.Z)().get(`/explorer/rescan/${e}/true`,{headers:{zelidauth:t}})},restartBlockProcessing(t){return(0,a.Z)().get("/explorer/restart",{headers:{zelidauth:t}})},stopBlockProcessing(t){return(0,a.Z)().get("/explorer/stop",{headers:{zelidauth:t}})}}}}]); \ No newline at end of file diff --git a/HomeUI/dist/js/3196.js b/HomeUI/dist/js/3196.js index 6d96757a8..eb1e93e12 100644 --- a/HomeUI/dist/js/3196.js +++ b/HomeUI/dist/js/3196.js @@ -1 +1 @@ -"use strict";(globalThis["webpackChunkflux"]=globalThis["webpackChunkflux"]||[]).push([[3196],{34547:(t,e,r)=>{r.d(e,{Z:()=>u});var n=function(){var t=this,e=t._self._c;return e("div",{staticClass:"toastification"},[e("div",{staticClass:"d-flex align-items-start"},[e("b-avatar",{staticClass:"mr-75 flex-shrink-0",attrs:{variant:t.variant,size:"1.8rem"}},[e("feather-icon",{attrs:{icon:t.icon,size:"15"}})],1),e("div",{staticClass:"d-flex flex-grow-1"},[e("div",[t.title?e("h5",{staticClass:"mb-0 font-weight-bolder toastification-title",class:`text-${t.variant}`,domProps:{textContent:t._s(t.title)}}):t._e(),t.text?e("small",{staticClass:"d-inline-block text-body",domProps:{textContent:t._s(t.text)}}):t._e()]),e("span",{staticClass:"cursor-pointer toastification-close-icon ml-auto",on:{click:function(e){return t.$emit("close-toast")}}},[t.hideClose?t._e():e("feather-icon",{staticClass:"text-body",attrs:{icon:"XIcon"}})],1)])],1)])},a=[],o=r(47389);const s={components:{BAvatar:o.SH},props:{variant:{type:String,default:"primary"},icon:{type:String,default:null},title:{type:String,default:null},text:{type:String,default:null},hideClose:{type:Boolean,default:!1}}},i=s;var l=r(1001),c=(0,l.Z)(i,n,a,!1,null,"22d964ca",null);const u=c.exports},51748:(t,e,r)=>{r.d(e,{Z:()=>u});var n=function(){var t=this,e=t._self._c;return e("dl",{staticClass:"row",class:t.classes},[e("dt",{staticClass:"col-sm-3"},[t._v(" "+t._s(t.title)+" ")]),t.href.length>0?e("dd",{staticClass:"col-sm-9 mb-0",class:`text-${t.variant}`},[t.href.length>0?e("b-link",{attrs:{href:t.href,target:"_blank",rel:"noopener noreferrer"}},[t._v(" "+t._s(t.data.length>0?t.data:t.number!==Number.MAX_VALUE?t.number:"")+" ")]):t._e()],1):t.click?e("dd",{staticClass:"col-sm-9 mb-0",class:`text-${t.variant}`,on:{click:function(e){return t.$emit("click")}}},[e("b-link",[t._v(" "+t._s(t.data.length>0?t.data:t.number!==Number.MAX_VALUE?t.number:"")+" ")])],1):e("dd",{staticClass:"col-sm-9 mb-0",class:`text-${t.variant}`},[t._v(" "+t._s(t.data.length>0?t.data:t.number!==Number.MAX_VALUE?t.number:"")+" ")])])},a=[],o=r(67347);const s={components:{BLink:o.we},props:{title:{type:String,required:!0},classes:{type:String,required:!1,default:"mb-1"},data:{type:String,required:!1,default:""},number:{type:Number,required:!1,default:Number.MAX_VALUE},variant:{type:String,required:!1,default:"secondary"},href:{type:String,required:!1,default:""},click:{type:Boolean,required:!1,default:!1}}},i=s;var l=r(1001),c=(0,l.Z)(i,n,a,!1,null,null,null);const u=c.exports},43196:(t,e,r)=>{r.r(e),r.d(e,{default:()=>Z});var n=function(){var t=this,e=t._self._c;return e("b-card",[e("b-row",[e("b-col",{staticClass:"my-1",attrs:{md:"4",sm:"4"}},[e("b-form-group",{staticClass:"mb-0"},[e("label",{staticClass:"d-inline-block text-left mr-50"},[t._v("Per page")]),e("b-form-select",{staticClass:"w-50",attrs:{id:"perPageSelect",size:"sm",options:t.pageOptions},model:{value:t.perPage,callback:function(e){t.perPage=e},expression:"perPage"}})],1)],1),e("b-col",{staticClass:"my-1",attrs:{md:"8"}},[e("b-form-group",{staticClass:"mb-0",attrs:{label:"Filter","label-cols-sm":"1","label-align-sm":"right","label-for":"filterInput"}},[e("b-input-group",{attrs:{size:"sm"}},[e("b-form-input",{attrs:{id:"filterInput",type:"search",placeholder:"Type to Search"},model:{value:t.filter,callback:function(e){t.filter=e},expression:"filter"}}),e("b-input-group-append",[e("b-button",{attrs:{disabled:!t.filter},on:{click:function(e){t.filter=""}}},[t._v(" Clear ")])],1)],1)],1)],1),e("b-col",{attrs:{cols:"12"}},[e("b-table",{staticClass:"fluxnode-table",attrs:{striped:"",hover:"",responsive:"","per-page":t.perPage,"current-page":t.currentPage,items:t.items,fields:t.fields,"sort-by":t.sortBy,"sort-desc":t.sortDesc,"sort-direction":t.sortDirection,filter:t.filter,"filter-included-fields":t.filterOn,"show-empty":"","empty-text":"No FluxNodes in DOS state"},on:{"update:sortBy":function(e){t.sortBy=e},"update:sort-by":function(e){t.sortBy=e},"update:sortDesc":function(e){t.sortDesc=e},"update:sort-desc":function(e){t.sortDesc=e},filtered:t.onFiltered},scopedSlots:t._u([{key:"cell(show_details)",fn:function(r){return[e("a",{on:{click:r.toggleDetails}},[r.detailsShowing?t._e():e("v-icon",{attrs:{name:"chevron-down"}}),r.detailsShowing?e("v-icon",{attrs:{name:"chevron-up"}}):t._e()],1)]}},{key:"row-details",fn:function(r){return[e("b-card",{staticClass:"mx-2"},[r.item.collateral?e("list-entry",{attrs:{title:"Collateral",data:r.item.collateral}}):t._e()],1)]}}])})],1),e("b-col",{attrs:{cols:"12"}},[e("b-pagination",{staticClass:"my-0",attrs:{"total-rows":t.totalRows,"per-page":t.perPage,align:"center",size:"sm"},model:{value:t.currentPage,callback:function(e){t.currentPage=e},expression:"currentPage"}}),e("span",{staticClass:"table-total"},[t._v("Total: "+t._s(t.totalRows))])],1)],1)],1)},a=[],o=(r(70560),r(86855)),s=r(16521),i=r(26253),l=r(50725),c=r(10962),u=r(46709),d=r(8051),f=r(4060),p=r(22183),g=r(22418),m=r(15193),h=r(34547),b=r(51748),v=r(27616);const y=r(63005),x={components:{BCard:o._,BTable:s.h,BRow:i.T,BCol:l.l,BPagination:c.c,BFormGroup:u.x,BFormSelect:d.K,BInputGroup:f.w,BFormInput:p.e,BInputGroupAppend:g.B,BButton:m.T,ListEntry:b.Z,ToastificationContent:h.Z},data(){return{timeoptions:y,callResponse:{status:"",data:""},perPage:10,pageOptions:[10,25,50,100],sortBy:"",sortDesc:!1,sortDirection:"asc",items:[],filter:"",filterOn:[],fields:[{key:"show_details",label:""},{key:"payment_address",label:"Address",sortable:!0},{key:"added_height",label:"Added Height",sortable:!0},{key:"eligible_in",label:"Eligible In Blocks",sortable:!0}],totalRows:1,currentPage:1}},computed:{sortOptions(){return this.fields.filter((t=>t.sortable)).map((t=>({text:t.label,value:t.key})))}},mounted(){this.daemonGetDOSList()},methods:{async daemonGetDOSList(){const t=await v.Z.getDOSList();if("error"===t.data.status)this.$toast({component:h.Z,props:{title:t.data.data.message||t.data.data,icon:"InfoIcon",variant:"danger"}});else{const e=this;t.data.data.forEach((t=>{e.items.push(t)})),this.totalRows=this.items.length,this.currentPage=1}},onFiltered(t){this.totalRows=t.length,this.currentPage=1}}},w=x;var k=r(1001),C=(0,k.Z)(w,n,a,!1,null,null,null);const Z=C.exports},63005:(t,e,r)=>{r.r(e),r.d(e,{default:()=>o});const n={year:"numeric",month:"short",day:"numeric",hour:"2-digit",minute:"2-digit"},a={year:"numeric",month:"short",day:"numeric"},o={shortDate:n,date:a}},27616:(t,e,r)=>{r.d(e,{Z:()=>a});var n=r(80914);const a={help(){return(0,n.Z)().get("/daemon/help")},helpSpecific(t){return(0,n.Z)().get(`/daemon/help/${t}`)},getInfo(){return(0,n.Z)().get("/daemon/getinfo")},getFluxNodeStatus(){return(0,n.Z)().get("/daemon/getzelnodestatus")},getRawTransaction(t,e){return(0,n.Z)().get(`/daemon/getrawtransaction/${t}/${e}`)},listFluxNodes(){return(0,n.Z)().get("/daemon/listzelnodes")},viewDeterministicFluxNodeList(){return(0,n.Z)().get("/daemon/viewdeterministiczelnodelist")},getFluxNodeCount(){return(0,n.Z)().get("/daemon/getzelnodecount")},getStartList(){return(0,n.Z)().get("/daemon/getstartlist")},getDOSList(){return(0,n.Z)().get("/daemon/getdoslist")},fluxCurrentWinner(){return(0,n.Z)().get("/daemon/fluxcurrentwinner")},getBenchmarks(){return(0,n.Z)().get("/daemon/getbenchmarks")},getBenchStatus(){return(0,n.Z)().get("/daemon/getbenchstatus")},startBenchmark(t){return(0,n.Z)().get("/daemon/startbenchmark",{headers:{zelidauth:t}})},stopBenchmark(t){return(0,n.Z)().get("/daemon/stopbenchmark",{headers:{zelidauth:t}})},getBlockCount(){return(0,n.Z)().get("/daemon/getBlockCount")},getBlockchainInfo(){return(0,n.Z)().get("/daemon/getblockchaininfo")},getMiningInfo(){return(0,n.Z)().get("/daemon/getmininginfo")},getNetworkInfo(){return(0,n.Z)().get("/daemon/getnetworkinfo")},validateAddress(t,e){return(0,n.Z)().get(`/daemon/validateaddress/${e}`,{headers:{zelidauth:t}})},getWalletInfo(t){return(0,n.Z)().get("/daemon/getwalletinfo",{headers:{zelidauth:t}})},listFluxNodeConf(t){return(0,n.Z)().get("/daemon/listzelnodeconf",{headers:{zelidauth:t}})},start(t){return(0,n.Z)().get("/daemon/start",{headers:{zelidauth:t}})},restart(t){return(0,n.Z)().get("/daemon/restart",{headers:{zelidauth:t}})},stopDaemon(t){return(0,n.Z)().get("/daemon/stop",{headers:{zelidauth:t}})},rescanDaemon(t,e){return(0,n.Z)().get(`/daemon/rescanblockchain/${e}`,{headers:{zelidauth:t}})},getBlock(t,e){return(0,n.Z)().get(`/daemon/getblock/${t}/${e}`)},tailDaemonDebug(t){return(0,n.Z)().get("/flux/taildaemondebug",{headers:{zelidauth:t}})},justAPI(){return(0,n.Z)()},cancelToken(){return n.S}}},84328:(t,e,r)=>{var n=r(65290),a=r(27578),o=r(6310),s=function(t){return function(e,r,s){var i,l=n(e),c=o(l),u=a(s,c);if(t&&r!==r){while(c>u)if(i=l[u++],i!==i)return!0}else for(;c>u;u++)if((t||u in l)&&l[u]===r)return t||u||0;return!t&&-1}};t.exports={includes:s(!0),indexOf:s(!1)}},5649:(t,e,r)=>{var n=r(67697),a=r(92297),o=TypeError,s=Object.getOwnPropertyDescriptor,i=n&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(t){return t instanceof TypeError}}();t.exports=i?function(t,e){if(a(t)&&!s(t,"length").writable)throw new o("Cannot set read only .length");return t.length=e}:function(t,e){return t.length=e}},8758:(t,e,r)=>{var n=r(36812),a=r(19152),o=r(82474),s=r(72560);t.exports=function(t,e,r){for(var i=a(e),l=s.f,c=o.f,u=0;u{var e=TypeError,r=9007199254740991;t.exports=function(t){if(t>r)throw e("Maximum allowed index exceeded");return t}},72739:t=>{t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},79989:(t,e,r)=>{var n=r(19037),a=r(82474).f,o=r(75773),s=r(11880),i=r(95014),l=r(8758),c=r(35266);t.exports=function(t,e){var r,u,d,f,p,g,m=t.target,h=t.global,b=t.stat;if(u=h?n:b?n[m]||i(m,{}):(n[m]||{}).prototype,u)for(d in e){if(p=e[d],t.dontCallGetSet?(g=a(u,d),f=g&&g.value):f=u[d],r=c(h?d:m+(b?".":"#")+d,t.forced),!r&&void 0!==f){if(typeof p==typeof f)continue;l(p,f)}(t.sham||f&&f.sham)&&o(p,"sham",!0),s(u,d,p,t)}}},94413:(t,e,r)=>{var n=r(68844),a=r(3689),o=r(6648),s=Object,i=n("".split);t.exports=a((function(){return!s("z").propertyIsEnumerable(0)}))?function(t){return"String"===o(t)?i(t,""):s(t)}:s},92297:(t,e,r)=>{var n=r(6648);t.exports=Array.isArray||function(t){return"Array"===n(t)}},35266:(t,e,r)=>{var n=r(3689),a=r(69985),o=/#|\.prototype\./,s=function(t,e){var r=l[i(t)];return r===u||r!==c&&(a(e)?n(e):!!e)},i=s.normalize=function(t){return String(t).replace(o,".").toLowerCase()},l=s.data={},c=s.NATIVE="N",u=s.POLYFILL="P";t.exports=s},6310:(t,e,r)=>{var n=r(43126);t.exports=function(t){return n(t.length)}},58828:t=>{var e=Math.ceil,r=Math.floor;t.exports=Math.trunc||function(t){var n=+t;return(n>0?r:e)(n)}},82474:(t,e,r)=>{var n=r(67697),a=r(22615),o=r(49556),s=r(75684),i=r(65290),l=r(18360),c=r(36812),u=r(68506),d=Object.getOwnPropertyDescriptor;e.f=n?d:function(t,e){if(t=i(t),e=l(e),u)try{return d(t,e)}catch(r){}if(c(t,e))return s(!a(o.f,t,e),t[e])}},72741:(t,e,r)=>{var n=r(54948),a=r(72739),o=a.concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return n(t,o)}},7518:(t,e)=>{e.f=Object.getOwnPropertySymbols},54948:(t,e,r)=>{var n=r(68844),a=r(36812),o=r(65290),s=r(84328).indexOf,i=r(57248),l=n([].push);t.exports=function(t,e){var r,n=o(t),c=0,u=[];for(r in n)!a(i,r)&&a(n,r)&&l(u,r);while(e.length>c)a(n,r=e[c++])&&(~s(u,r)||l(u,r));return u}},49556:(t,e)=>{var r={}.propertyIsEnumerable,n=Object.getOwnPropertyDescriptor,a=n&&!r.call({1:2},1);e.f=a?function(t){var e=n(this,t);return!!e&&e.enumerable}:r},19152:(t,e,r)=>{var n=r(76058),a=r(68844),o=r(72741),s=r(7518),i=r(85027),l=a([].concat);t.exports=n("Reflect","ownKeys")||function(t){var e=o.f(i(t)),r=s.f;return r?l(e,r(t)):e}},27578:(t,e,r)=>{var n=r(68700),a=Math.max,o=Math.min;t.exports=function(t,e){var r=n(t);return r<0?a(r+e,0):o(r,e)}},65290:(t,e,r)=>{var n=r(94413),a=r(74684);t.exports=function(t){return n(a(t))}},68700:(t,e,r)=>{var n=r(58828);t.exports=function(t){var e=+t;return e!==e||0===e?0:n(e)}},43126:(t,e,r)=>{var n=r(68700),a=Math.min;t.exports=function(t){return t>0?a(n(t),9007199254740991):0}},70560:(t,e,r)=>{var n=r(79989),a=r(90690),o=r(6310),s=r(5649),i=r(55565),l=r(3689),c=l((function(){return 4294967297!==[].push.call({length:4294967296},1)})),u=function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(t){return t instanceof TypeError}},d=c||!u();n({target:"Array",proto:!0,arity:1,forced:d},{push:function(t){var e=a(this),r=o(e),n=arguments.length;i(r+n);for(var l=0;l{a.d(e,{Z:()=>c});var r=function(){var t=this,e=t._self._c;return e("div",{staticClass:"toastification"},[e("div",{staticClass:"d-flex align-items-start"},[e("b-avatar",{staticClass:"mr-75 flex-shrink-0",attrs:{variant:t.variant,size:"1.8rem"}},[e("feather-icon",{attrs:{icon:t.icon,size:"15"}})],1),e("div",{staticClass:"d-flex flex-grow-1"},[e("div",[t.title?e("h5",{staticClass:"mb-0 font-weight-bolder toastification-title",class:`text-${t.variant}`,domProps:{textContent:t._s(t.title)}}):t._e(),t.text?e("small",{staticClass:"d-inline-block text-body",domProps:{textContent:t._s(t.text)}}):t._e()]),e("span",{staticClass:"cursor-pointer toastification-close-icon ml-auto",on:{click:function(e){return t.$emit("close-toast")}}},[t.hideClose?t._e():e("feather-icon",{staticClass:"text-body",attrs:{icon:"XIcon"}})],1)])],1)])},s=[],n=a(47389);const o={components:{BAvatar:n.SH},props:{variant:{type:String,default:"primary"},icon:{type:String,default:null},title:{type:String,default:null},text:{type:String,default:null},hideClose:{type:Boolean,default:!1}}},l=o;var i=a(1001),d=(0,i.Z)(l,r,s,!1,null,"22d964ca",null);const c=d.exports},51748:(t,e,a)=>{a.d(e,{Z:()=>c});var r=function(){var t=this,e=t._self._c;return e("dl",{staticClass:"row",class:t.classes},[e("dt",{staticClass:"col-sm-3"},[t._v(" "+t._s(t.title)+" ")]),t.href.length>0?e("dd",{staticClass:"col-sm-9 mb-0",class:`text-${t.variant}`},[t.href.length>0?e("b-link",{attrs:{href:t.href,target:"_blank",rel:"noopener noreferrer"}},[t._v(" "+t._s(t.data.length>0?t.data:t.number!==Number.MAX_VALUE?t.number:"")+" ")]):t._e()],1):t.click?e("dd",{staticClass:"col-sm-9 mb-0",class:`text-${t.variant}`,on:{click:function(e){return t.$emit("click")}}},[e("b-link",[t._v(" "+t._s(t.data.length>0?t.data:t.number!==Number.MAX_VALUE?t.number:"")+" ")])],1):e("dd",{staticClass:"col-sm-9 mb-0",class:`text-${t.variant}`},[t._v(" "+t._s(t.data.length>0?t.data:t.number!==Number.MAX_VALUE?t.number:"")+" ")])])},s=[],n=a(67347);const o={components:{BLink:n.we},props:{title:{type:String,required:!0},classes:{type:String,required:!1,default:"mb-1"},data:{type:String,required:!1,default:""},number:{type:Number,required:!1,default:Number.MAX_VALUE},variant:{type:String,required:!1,default:"secondary"},href:{type:String,required:!1,default:""},click:{type:Boolean,required:!1,default:!1}}},l=o;var i=a(1001),d=(0,i.Z)(l,r,s,!1,null,null,null);const c=d.exports},43196:(t,e,a)=>{a.r(e),a.d(e,{default:()=>x});var r=function(){var t=this,e=t._self._c;return e("b-card",[e("b-row",[e("b-col",{staticClass:"my-1",attrs:{md:"4",sm:"4"}},[e("b-form-group",{staticClass:"mb-0"},[e("label",{staticClass:"d-inline-block text-left mr-50"},[t._v("Per page")]),e("b-form-select",{staticClass:"w-50",attrs:{id:"perPageSelect",size:"sm",options:t.pageOptions},model:{value:t.perPage,callback:function(e){t.perPage=e},expression:"perPage"}})],1)],1),e("b-col",{staticClass:"my-1",attrs:{md:"8"}},[e("b-form-group",{staticClass:"mb-0",attrs:{label:"Filter","label-cols-sm":"1","label-align-sm":"right","label-for":"filterInput"}},[e("b-input-group",{attrs:{size:"sm"}},[e("b-form-input",{attrs:{id:"filterInput",type:"search",placeholder:"Type to Search"},model:{value:t.filter,callback:function(e){t.filter=e},expression:"filter"}}),e("b-input-group-append",[e("b-button",{attrs:{disabled:!t.filter},on:{click:function(e){t.filter=""}}},[t._v(" Clear ")])],1)],1)],1)],1),e("b-col",{attrs:{cols:"12"}},[e("b-table",{staticClass:"fluxnode-table",attrs:{striped:"",hover:"",responsive:"","per-page":t.perPage,"current-page":t.currentPage,items:t.items,fields:t.fields,"sort-by":t.sortBy,"sort-desc":t.sortDesc,"sort-direction":t.sortDirection,filter:t.filter,"filter-included-fields":t.filterOn,"show-empty":"","empty-text":"No FluxNodes in DOS state"},on:{"update:sortBy":function(e){t.sortBy=e},"update:sort-by":function(e){t.sortBy=e},"update:sortDesc":function(e){t.sortDesc=e},"update:sort-desc":function(e){t.sortDesc=e},filtered:t.onFiltered},scopedSlots:t._u([{key:"cell(show_details)",fn:function(a){return[e("a",{on:{click:a.toggleDetails}},[a.detailsShowing?t._e():e("v-icon",{attrs:{name:"chevron-down"}}),a.detailsShowing?e("v-icon",{attrs:{name:"chevron-up"}}):t._e()],1)]}},{key:"row-details",fn:function(a){return[e("b-card",{staticClass:"mx-2"},[a.item.collateral?e("list-entry",{attrs:{title:"Collateral",data:a.item.collateral}}):t._e()],1)]}}])})],1),e("b-col",{attrs:{cols:"12"}},[e("b-pagination",{staticClass:"my-0",attrs:{"total-rows":t.totalRows,"per-page":t.perPage,align:"center",size:"sm"},model:{value:t.currentPage,callback:function(e){t.currentPage=e},expression:"currentPage"}}),e("span",{staticClass:"table-total"},[t._v("Total: "+t._s(t.totalRows))])],1)],1)],1)},s=[],n=(a(70560),a(86855)),o=a(16521),l=a(26253),i=a(50725),d=a(10962),c=a(46709),u=a(8051),m=a(4060),g=a(22183),p=a(22418),f=a(15193),h=a(34547),b=a(51748),v=a(27616);const k=a(63005),y={components:{BCard:n._,BTable:o.h,BRow:l.T,BCol:i.l,BPagination:d.c,BFormGroup:c.x,BFormSelect:u.K,BInputGroup:m.w,BFormInput:g.e,BInputGroupAppend:p.B,BButton:f.T,ListEntry:b.Z,ToastificationContent:h.Z},data(){return{timeoptions:k,callResponse:{status:"",data:""},perPage:10,pageOptions:[10,25,50,100],sortBy:"",sortDesc:!1,sortDirection:"asc",items:[],filter:"",filterOn:[],fields:[{key:"show_details",label:""},{key:"payment_address",label:"Address",sortable:!0},{key:"added_height",label:"Added Height",sortable:!0},{key:"eligible_in",label:"Eligible In Blocks",sortable:!0}],totalRows:1,currentPage:1}},computed:{sortOptions(){return this.fields.filter((t=>t.sortable)).map((t=>({text:t.label,value:t.key})))}},mounted(){this.daemonGetDOSList()},methods:{async daemonGetDOSList(){const t=await v.Z.getDOSList();if("error"===t.data.status)this.$toast({component:h.Z,props:{title:t.data.data.message||t.data.data,icon:"InfoIcon",variant:"danger"}});else{const e=this;t.data.data.forEach((t=>{e.items.push(t)})),this.totalRows=this.items.length,this.currentPage=1}},onFiltered(t){this.totalRows=t.length,this.currentPage=1}}},C=y;var Z=a(1001),_=(0,Z.Z)(C,r,s,!1,null,null,null);const x=_.exports},63005:(t,e,a)=>{a.r(e),a.d(e,{default:()=>n});const r={year:"numeric",month:"short",day:"numeric",hour:"2-digit",minute:"2-digit"},s={year:"numeric",month:"short",day:"numeric"},n={shortDate:r,date:s}},27616:(t,e,a)=>{a.d(e,{Z:()=>s});var r=a(80914);const s={help(){return(0,r.Z)().get("/daemon/help")},helpSpecific(t){return(0,r.Z)().get(`/daemon/help/${t}`)},getInfo(){return(0,r.Z)().get("/daemon/getinfo")},getFluxNodeStatus(){return(0,r.Z)().get("/daemon/getzelnodestatus")},getRawTransaction(t,e){return(0,r.Z)().get(`/daemon/getrawtransaction/${t}/${e}`)},listFluxNodes(){return(0,r.Z)().get("/daemon/listzelnodes")},viewDeterministicFluxNodeList(){return(0,r.Z)().get("/daemon/viewdeterministiczelnodelist")},getFluxNodeCount(){return(0,r.Z)().get("/daemon/getzelnodecount")},getStartList(){return(0,r.Z)().get("/daemon/getstartlist")},getDOSList(){return(0,r.Z)().get("/daemon/getdoslist")},fluxCurrentWinner(){return(0,r.Z)().get("/daemon/fluxcurrentwinner")},getBenchmarks(){return(0,r.Z)().get("/daemon/getbenchmarks")},getBenchStatus(){return(0,r.Z)().get("/daemon/getbenchstatus")},startBenchmark(t){return(0,r.Z)().get("/daemon/startbenchmark",{headers:{zelidauth:t}})},stopBenchmark(t){return(0,r.Z)().get("/daemon/stopbenchmark",{headers:{zelidauth:t}})},getBlockCount(){return(0,r.Z)().get("/daemon/getBlockCount")},getBlockchainInfo(){return(0,r.Z)().get("/daemon/getblockchaininfo")},getMiningInfo(){return(0,r.Z)().get("/daemon/getmininginfo")},getNetworkInfo(){return(0,r.Z)().get("/daemon/getnetworkinfo")},validateAddress(t,e){return(0,r.Z)().get(`/daemon/validateaddress/${e}`,{headers:{zelidauth:t}})},getWalletInfo(t){return(0,r.Z)().get("/daemon/getwalletinfo",{headers:{zelidauth:t}})},listFluxNodeConf(t){return(0,r.Z)().get("/daemon/listzelnodeconf",{headers:{zelidauth:t}})},start(t){return(0,r.Z)().get("/daemon/start",{headers:{zelidauth:t}})},restart(t){return(0,r.Z)().get("/daemon/restart",{headers:{zelidauth:t}})},stopDaemon(t){return(0,r.Z)().get("/daemon/stop",{headers:{zelidauth:t}})},rescanDaemon(t,e){return(0,r.Z)().get(`/daemon/rescanblockchain/${e}`,{headers:{zelidauth:t}})},getBlock(t,e){return(0,r.Z)().get(`/daemon/getblock/${t}/${e}`)},tailDaemonDebug(t){return(0,r.Z)().get("/flux/taildaemondebug",{headers:{zelidauth:t}})},justAPI(){return(0,r.Z)()},cancelToken(){return r.S}}}}]); \ No newline at end of file diff --git a/HomeUI/dist/js/3404.js b/HomeUI/dist/js/3404.js index f5db26091..ec70de5b8 100644 --- a/HomeUI/dist/js/3404.js +++ b/HomeUI/dist/js/3404.js @@ -1 +1 @@ -"use strict";(globalThis["webpackChunkflux"]=globalThis["webpackChunkflux"]||[]).push([[3404],{34547:(t,e,a)=>{a.d(e,{Z:()=>c});var n=function(){var t=this,e=t._self._c;return e("div",{staticClass:"toastification"},[e("div",{staticClass:"d-flex align-items-start"},[e("b-avatar",{staticClass:"mr-75 flex-shrink-0",attrs:{variant:t.variant,size:"1.8rem"}},[e("feather-icon",{attrs:{icon:t.icon,size:"15"}})],1),e("div",{staticClass:"d-flex flex-grow-1"},[e("div",[t.title?e("h5",{staticClass:"mb-0 font-weight-bolder toastification-title",class:`text-${t.variant}`,domProps:{textContent:t._s(t.title)}}):t._e(),t.text?e("small",{staticClass:"d-inline-block text-body",domProps:{textContent:t._s(t.text)}}):t._e()]),e("span",{staticClass:"cursor-pointer toastification-close-icon ml-auto",on:{click:function(e){return t.$emit("close-toast")}}},[t.hideClose?t._e():e("feather-icon",{staticClass:"text-body",attrs:{icon:"XIcon"}})],1)])],1)])},r=[],o=a(47389);const i={components:{BAvatar:o.SH},props:{variant:{type:String,default:"primary"},icon:{type:String,default:null},title:{type:String,default:null},text:{type:String,default:null},hideClose:{type:Boolean,default:!1}}},s=i;var l=a(1001),d=(0,l.Z)(s,n,r,!1,null,"22d964ca",null);const c=d.exports},43404:(t,e,a)=>{a.r(e),a.d(e,{default:()=>f});var n=function(){var t=this,e=t._self._c;return e("b-card",[e("div",[e("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"ml-1",attrs:{id:"start-daemon",variant:"outline-primary",size:"md"}},[t._v(" Start Daemon ")]),e("b-popover",{ref:"popover",attrs:{target:"start-daemon",triggers:"click",show:t.popoverShow,placement:"auto",container:"my-container"},on:{"update:show":function(e){t.popoverShow=e}},scopedSlots:t._u([{key:"title",fn:function(){return[e("div",{staticClass:"d-flex justify-content-between align-items-center"},[e("span",[t._v("Are You Sure?")]),e("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"close",attrs:{variant:"transparent","aria-label":"Close"},on:{click:t.onClose}},[e("span",{staticClass:"d-inline-block text-white",attrs:{"aria-hidden":"true"}},[t._v("×")])])],1)]},proxy:!0}])},[e("div",[e("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"mr-1",attrs:{size:"sm",variant:"danger"},on:{click:t.onClose}},[t._v(" Cancel ")]),e("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],attrs:{size:"sm",variant:"primary"},on:{click:t.onOk}},[t._v(" Start Daemon ")])],1)]),e("b-modal",{attrs:{id:"modal-center",centered:"",title:"Daemon Start","ok-only":"","ok-title":"OK"},model:{value:t.modalShow,callback:function(e){t.modalShow=e},expression:"modalShow"}},[e("b-card-text",[t._v(" The daemon will now start. ")])],1)],1)])},r=[],o=a(86855),i=a(15193),s=a(53862),l=a(31220),d=a(64206),c=a(34547),u=a(20266),m=a(27616);const g={components:{BCard:o._,BButton:i.T,BPopover:s.x,BModal:l.N,BCardText:d.j,ToastificationContent:c.Z},directives:{Ripple:u.Z},data(){return{popoverShow:!1,modalShow:!1}},methods:{onClose(){this.popoverShow=!1},onOk(){this.popoverShow=!1,this.modalShow=!0;const t=localStorage.getItem("zelidauth");m.Z.start(t).then((t=>{this.$toast({component:c.Z,props:{title:t.data.data.message||t.data.data,icon:"InfoIcon",variant:"success"}})})).catch((()=>{this.$toast({component:c.Z,props:{title:"Error while trying to start Daemon",icon:"InfoIcon",variant:"danger"}})}))}}},p=g;var h=a(1001),v=(0,h.Z)(p,n,r,!1,null,null,null);const f=v.exports},27616:(t,e,a)=>{a.d(e,{Z:()=>r});var n=a(80914);const r={help(){return(0,n.Z)().get("/daemon/help")},helpSpecific(t){return(0,n.Z)().get(`/daemon/help/${t}`)},getInfo(){return(0,n.Z)().get("/daemon/getinfo")},getFluxNodeStatus(){return(0,n.Z)().get("/daemon/getzelnodestatus")},getRawTransaction(t,e){return(0,n.Z)().get(`/daemon/getrawtransaction/${t}/${e}`)},listFluxNodes(){return(0,n.Z)().get("/daemon/listzelnodes")},viewDeterministicFluxNodeList(){return(0,n.Z)().get("/daemon/viewdeterministiczelnodelist")},getFluxNodeCount(){return(0,n.Z)().get("/daemon/getzelnodecount")},getStartList(){return(0,n.Z)().get("/daemon/getstartlist")},getDOSList(){return(0,n.Z)().get("/daemon/getdoslist")},fluxCurrentWinner(){return(0,n.Z)().get("/daemon/fluxcurrentwinner")},getBenchmarks(){return(0,n.Z)().get("/daemon/getbenchmarks")},getBenchStatus(){return(0,n.Z)().get("/daemon/getbenchstatus")},startBenchmark(t){return(0,n.Z)().get("/daemon/startbenchmark",{headers:{zelidauth:t}})},stopBenchmark(t){return(0,n.Z)().get("/daemon/stopbenchmark",{headers:{zelidauth:t}})},getBlockCount(){return(0,n.Z)().get("/daemon/getBlockCount")},getBlockchainInfo(){return(0,n.Z)().get("/daemon/getblockchaininfo")},getMiningInfo(){return(0,n.Z)().get("/daemon/getmininginfo")},getNetworkInfo(){return(0,n.Z)().get("/daemon/getnetworkinfo")},validateAddress(t,e){return(0,n.Z)().get(`/daemon/validateaddress/${e}`,{headers:{zelidauth:t}})},getWalletInfo(t){return(0,n.Z)().get("/daemon/getwalletinfo",{headers:{zelidauth:t}})},listFluxNodeConf(t){return(0,n.Z)().get("/daemon/listzelnodeconf",{headers:{zelidauth:t}})},start(t){return(0,n.Z)().get("/daemon/start",{headers:{zelidauth:t}})},restart(t){return(0,n.Z)().get("/daemon/restart",{headers:{zelidauth:t}})},stopDaemon(t){return(0,n.Z)().get("/daemon/stop",{headers:{zelidauth:t}})},rescanDaemon(t,e){return(0,n.Z)().get(`/daemon/rescanblockchain/${e}`,{headers:{zelidauth:t}})},getBlock(t,e){return(0,n.Z)().get(`/daemon/getblock/${t}/${e}`)},tailDaemonDebug(t){return(0,n.Z)().get("/flux/taildaemondebug",{headers:{zelidauth:t}})},justAPI(){return(0,n.Z)()},cancelToken(){return n.S}}}}]); \ No newline at end of file +"use strict";(self["webpackChunkflux"]=self["webpackChunkflux"]||[]).push([[3404],{34547:(t,e,a)=>{a.d(e,{Z:()=>c});var n=function(){var t=this,e=t._self._c;return e("div",{staticClass:"toastification"},[e("div",{staticClass:"d-flex align-items-start"},[e("b-avatar",{staticClass:"mr-75 flex-shrink-0",attrs:{variant:t.variant,size:"1.8rem"}},[e("feather-icon",{attrs:{icon:t.icon,size:"15"}})],1),e("div",{staticClass:"d-flex flex-grow-1"},[e("div",[t.title?e("h5",{staticClass:"mb-0 font-weight-bolder toastification-title",class:`text-${t.variant}`,domProps:{textContent:t._s(t.title)}}):t._e(),t.text?e("small",{staticClass:"d-inline-block text-body",domProps:{textContent:t._s(t.text)}}):t._e()]),e("span",{staticClass:"cursor-pointer toastification-close-icon ml-auto",on:{click:function(e){return t.$emit("close-toast")}}},[t.hideClose?t._e():e("feather-icon",{staticClass:"text-body",attrs:{icon:"XIcon"}})],1)])],1)])},r=[],o=a(47389);const s={components:{BAvatar:o.SH},props:{variant:{type:String,default:"primary"},icon:{type:String,default:null},title:{type:String,default:null},text:{type:String,default:null},hideClose:{type:Boolean,default:!1}}},i=s;var l=a(1001),d=(0,l.Z)(i,n,r,!1,null,"22d964ca",null);const c=d.exports},43404:(t,e,a)=>{a.r(e),a.d(e,{default:()=>f});var n=function(){var t=this,e=t._self._c;return e("b-card",[e("div",[e("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"ml-1",attrs:{id:"start-daemon",variant:"outline-primary",size:"md"}},[t._v(" Start Daemon ")]),e("b-popover",{ref:"popover",attrs:{target:"start-daemon",triggers:"click",show:t.popoverShow,placement:"auto",container:"my-container"},on:{"update:show":function(e){t.popoverShow=e}},scopedSlots:t._u([{key:"title",fn:function(){return[e("div",{staticClass:"d-flex justify-content-between align-items-center"},[e("span",[t._v("Are You Sure?")]),e("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"close",attrs:{variant:"transparent","aria-label":"Close"},on:{click:t.onClose}},[e("span",{staticClass:"d-inline-block text-white",attrs:{"aria-hidden":"true"}},[t._v("×")])])],1)]},proxy:!0}])},[e("div",[e("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"mr-1",attrs:{size:"sm",variant:"danger"},on:{click:t.onClose}},[t._v(" Cancel ")]),e("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],attrs:{size:"sm",variant:"primary"},on:{click:t.onOk}},[t._v(" Start Daemon ")])],1)]),e("b-modal",{attrs:{id:"modal-center",centered:"",title:"Daemon Start","ok-only":"","ok-title":"OK"},model:{value:t.modalShow,callback:function(e){t.modalShow=e},expression:"modalShow"}},[e("b-card-text",[t._v(" The daemon will now start. ")])],1)],1)])},r=[],o=a(86855),s=a(15193),i=a(53862),l=a(31220),d=a(64206),c=a(34547),u=a(20266),m=a(27616);const g={components:{BCard:o._,BButton:s.T,BPopover:i.x,BModal:l.N,BCardText:d.j,ToastificationContent:c.Z},directives:{Ripple:u.Z},data(){return{popoverShow:!1,modalShow:!1}},methods:{onClose(){this.popoverShow=!1},onOk(){this.popoverShow=!1,this.modalShow=!0;const t=localStorage.getItem("zelidauth");m.Z.start(t).then((t=>{this.$toast({component:c.Z,props:{title:t.data.data.message||t.data.data,icon:"InfoIcon",variant:"success"}})})).catch((()=>{this.$toast({component:c.Z,props:{title:"Error while trying to start Daemon",icon:"InfoIcon",variant:"danger"}})}))}}},p=g;var h=a(1001),v=(0,h.Z)(p,n,r,!1,null,null,null);const f=v.exports},27616:(t,e,a)=>{a.d(e,{Z:()=>r});var n=a(80914);const r={help(){return(0,n.Z)().get("/daemon/help")},helpSpecific(t){return(0,n.Z)().get(`/daemon/help/${t}`)},getInfo(){return(0,n.Z)().get("/daemon/getinfo")},getFluxNodeStatus(){return(0,n.Z)().get("/daemon/getzelnodestatus")},getRawTransaction(t,e){return(0,n.Z)().get(`/daemon/getrawtransaction/${t}/${e}`)},listFluxNodes(){return(0,n.Z)().get("/daemon/listzelnodes")},viewDeterministicFluxNodeList(){return(0,n.Z)().get("/daemon/viewdeterministiczelnodelist")},getFluxNodeCount(){return(0,n.Z)().get("/daemon/getzelnodecount")},getStartList(){return(0,n.Z)().get("/daemon/getstartlist")},getDOSList(){return(0,n.Z)().get("/daemon/getdoslist")},fluxCurrentWinner(){return(0,n.Z)().get("/daemon/fluxcurrentwinner")},getBenchmarks(){return(0,n.Z)().get("/daemon/getbenchmarks")},getBenchStatus(){return(0,n.Z)().get("/daemon/getbenchstatus")},startBenchmark(t){return(0,n.Z)().get("/daemon/startbenchmark",{headers:{zelidauth:t}})},stopBenchmark(t){return(0,n.Z)().get("/daemon/stopbenchmark",{headers:{zelidauth:t}})},getBlockCount(){return(0,n.Z)().get("/daemon/getBlockCount")},getBlockchainInfo(){return(0,n.Z)().get("/daemon/getblockchaininfo")},getMiningInfo(){return(0,n.Z)().get("/daemon/getmininginfo")},getNetworkInfo(){return(0,n.Z)().get("/daemon/getnetworkinfo")},validateAddress(t,e){return(0,n.Z)().get(`/daemon/validateaddress/${e}`,{headers:{zelidauth:t}})},getWalletInfo(t){return(0,n.Z)().get("/daemon/getwalletinfo",{headers:{zelidauth:t}})},listFluxNodeConf(t){return(0,n.Z)().get("/daemon/listzelnodeconf",{headers:{zelidauth:t}})},start(t){return(0,n.Z)().get("/daemon/start",{headers:{zelidauth:t}})},restart(t){return(0,n.Z)().get("/daemon/restart",{headers:{zelidauth:t}})},stopDaemon(t){return(0,n.Z)().get("/daemon/stop",{headers:{zelidauth:t}})},rescanDaemon(t,e){return(0,n.Z)().get(`/daemon/rescanblockchain/${e}`,{headers:{zelidauth:t}})},getBlock(t,e){return(0,n.Z)().get(`/daemon/getblock/${t}/${e}`)},tailDaemonDebug(t){return(0,n.Z)().get("/flux/taildaemondebug",{headers:{zelidauth:t}})},justAPI(){return(0,n.Z)()},cancelToken(){return n.S}}}}]); \ No newline at end of file diff --git a/HomeUI/dist/js/3678.js b/HomeUI/dist/js/3678.js index 321a660cb..2c67047ad 100644 --- a/HomeUI/dist/js/3678.js +++ b/HomeUI/dist/js/3678.js @@ -1 +1 @@ -"use strict";(globalThis["webpackChunkflux"]=globalThis["webpackChunkflux"]||[]).push([[3678],{34547:(t,e,r)=>{r.d(e,{Z:()=>u});var a=function(){var t=this,e=t._self._c;return e("div",{staticClass:"toastification"},[e("div",{staticClass:"d-flex align-items-start"},[e("b-avatar",{staticClass:"mr-75 flex-shrink-0",attrs:{variant:t.variant,size:"1.8rem"}},[e("feather-icon",{attrs:{icon:t.icon,size:"15"}})],1),e("div",{staticClass:"d-flex flex-grow-1"},[e("div",[t.title?e("h5",{staticClass:"mb-0 font-weight-bolder toastification-title",class:`text-${t.variant}`,domProps:{textContent:t._s(t.title)}}):t._e(),t.text?e("small",{staticClass:"d-inline-block text-body",domProps:{textContent:t._s(t.text)}}):t._e()]),e("span",{staticClass:"cursor-pointer toastification-close-icon ml-auto",on:{click:function(e){return t.$emit("close-toast")}}},[t.hideClose?t._e():e("feather-icon",{staticClass:"text-body",attrs:{icon:"XIcon"}})],1)])],1)])},n=[],s=r(47389);const i={components:{BAvatar:s.SH},props:{variant:{type:String,default:"primary"},icon:{type:String,default:null},title:{type:String,default:null},text:{type:String,default:null},hideClose:{type:Boolean,default:!1}}},o=i;var l=r(1001),c=(0,l.Z)(o,a,n,!1,null,"22d964ca",null);const u=c.exports},63678:(t,e,r)=>{r.r(e),r.d(e,{default:()=>b});var a=function(){var t=this,e=t._self._c;return e("b-card",[e("div",[e("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"ml-1",attrs:{id:"restart-benchmarks",variant:"outline-primary",size:"md"}},[t._v(" Restart Benchmarks ")]),e("confirm-dialog",{attrs:{target:"restart-benchmarks","confirm-button":"Restart Benchmarks"},on:{confirm:t.onOk}}),e("b-modal",{attrs:{id:"modal-center",centered:"",title:"Benchmark Restart","ok-only":"","ok-title":"OK"},model:{value:t.modalShow,callback:function(e){t.modalShow=e},expression:"modalShow"}},[e("b-card-text",[t._v(" The node benchmarks will now restart. ")])],1)],1)])},n=[],s=r(86855),i=r(15193),o=r(31220),l=r(64206),c=r(34547),u=r(20266),d=r(87156),h=r(39569);const m={components:{BCard:s._,BButton:i.T,BModal:o.N,BCardText:l.j,ConfirmDialog:d.Z,ToastificationContent:c.Z},directives:{Ripple:u.Z},data(){return{modalShow:!1}},methods:{onOk(){this.modalShow=!0;const t=localStorage.getItem("zelidauth");h.Z.restartNodeBenchmarks(t).then((t=>{console.log(t),this.showToast("success",t.data.data.message||t.data.data)})).catch((t=>{console.log(t),this.showToast("danger","Error while trying to restart Benchmark")}))},showToast(t,e,r="InfoIcon"){this.$toast({component:c.Z,props:{title:e,icon:r,variant:t}})}}},p=m;var g=r(1001),f=(0,g.Z)(p,a,n,!1,null,null,null);const b=f.exports},87156:(t,e,r)=>{r.d(e,{Z:()=>h});var a=function(){var t=this,e=t._self._c;return e("b-popover",{ref:"popover",attrs:{target:`${t.target}`,triggers:"click blur",show:t.show,placement:"auto",container:"my-container","custom-class":`confirm-dialog-${t.width}`},on:{"update:show":function(e){t.show=e}},scopedSlots:t._u([{key:"title",fn:function(){return[e("div",{staticClass:"d-flex justify-content-between align-items-center"},[e("span",[t._v(t._s(t.title))]),e("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"close",attrs:{variant:"transparent","aria-label":"Close"},on:{click:function(e){t.show=!1}}},[e("span",{staticClass:"d-inline-block text-white",attrs:{"aria-hidden":"true"}},[t._v("×")])])],1)]},proxy:!0}])},[e("div",{staticClass:"text-center"},[e("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"mr-1",attrs:{size:"sm",variant:"danger"},on:{click:function(e){t.show=!1}}},[t._v(" "+t._s(t.cancelButton)+" ")]),e("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],attrs:{size:"sm",variant:"primary"},on:{click:function(e){return t.confirm()}}},[t._v(" "+t._s(t.confirmButton)+" ")])],1)])},n=[],s=r(15193),i=r(53862),o=r(20266);const l={components:{BButton:s.T,BPopover:i.x},directives:{Ripple:o.Z},props:{target:{type:String,required:!0},title:{type:String,required:!1,default:"Are You Sure?"},cancelButton:{type:String,required:!1,default:"Cancel"},confirmButton:{type:String,required:!0},width:{type:Number,required:!1,default:300}},data(){return{show:!1}},methods:{confirm(){this.show=!1,this.$emit("confirm")}}},c=l;var u=r(1001),d=(0,u.Z)(c,a,n,!1,null,null,null);const h=d.exports},39569:(t,e,r)=>{r.d(e,{Z:()=>n});var a=r(80914);const n={start(t){return(0,a.Z)().get("/benchmark/start",{headers:{zelidauth:t}})},restart(t){return(0,a.Z)().get("/benchmark/restart",{headers:{zelidauth:t}})},getStatus(){return(0,a.Z)().get("/benchmark/getstatus")},restartNodeBenchmarks(t){return(0,a.Z)().get("/benchmark/restartnodebenchmarks",{headers:{zelidauth:t}})},signFluxTransaction(t,e){return(0,a.Z)().get(`/benchmark/signzelnodetransaction/${e}`,{headers:{zelidauth:t}})},helpSpecific(t){return(0,a.Z)().get(`/benchmark/help/${t}`)},help(){return(0,a.Z)().get("/benchmark/help")},stop(t){return(0,a.Z)().get("/benchmark/stop",{headers:{zelidauth:t}})},getBenchmarks(){return(0,a.Z)().get("/benchmark/getbenchmarks")},getInfo(){return(0,a.Z)().get("/benchmark/getinfo")},tailBenchmarkDebug(t){return(0,a.Z)().get("/flux/tailbenchmarkdebug",{headers:{zelidauth:t}})},justAPI(){return(0,a.Z)()},cancelToken(){return a.S}}}}]); \ No newline at end of file +"use strict";(self["webpackChunkflux"]=self["webpackChunkflux"]||[]).push([[3678],{34547:(t,e,r)=>{r.d(e,{Z:()=>u});var a=function(){var t=this,e=t._self._c;return e("div",{staticClass:"toastification"},[e("div",{staticClass:"d-flex align-items-start"},[e("b-avatar",{staticClass:"mr-75 flex-shrink-0",attrs:{variant:t.variant,size:"1.8rem"}},[e("feather-icon",{attrs:{icon:t.icon,size:"15"}})],1),e("div",{staticClass:"d-flex flex-grow-1"},[e("div",[t.title?e("h5",{staticClass:"mb-0 font-weight-bolder toastification-title",class:`text-${t.variant}`,domProps:{textContent:t._s(t.title)}}):t._e(),t.text?e("small",{staticClass:"d-inline-block text-body",domProps:{textContent:t._s(t.text)}}):t._e()]),e("span",{staticClass:"cursor-pointer toastification-close-icon ml-auto",on:{click:function(e){return t.$emit("close-toast")}}},[t.hideClose?t._e():e("feather-icon",{staticClass:"text-body",attrs:{icon:"XIcon"}})],1)])],1)])},n=[],s=r(47389);const i={components:{BAvatar:s.SH},props:{variant:{type:String,default:"primary"},icon:{type:String,default:null},title:{type:String,default:null},text:{type:String,default:null},hideClose:{type:Boolean,default:!1}}},o=i;var l=r(1001),c=(0,l.Z)(o,a,n,!1,null,"22d964ca",null);const u=c.exports},63678:(t,e,r)=>{r.r(e),r.d(e,{default:()=>b});var a=function(){var t=this,e=t._self._c;return e("b-card",[e("div",[e("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"ml-1",attrs:{id:"restart-benchmarks",variant:"outline-primary",size:"md"}},[t._v(" Restart Benchmarks ")]),e("confirm-dialog",{attrs:{target:"restart-benchmarks","confirm-button":"Restart Benchmarks"},on:{confirm:t.onOk}}),e("b-modal",{attrs:{id:"modal-center",centered:"",title:"Benchmark Restart","ok-only":"","ok-title":"OK"},model:{value:t.modalShow,callback:function(e){t.modalShow=e},expression:"modalShow"}},[e("b-card-text",[t._v(" The node benchmarks will now restart. ")])],1)],1)])},n=[],s=r(86855),i=r(15193),o=r(31220),l=r(64206),c=r(34547),u=r(20266),d=r(87156),h=r(39569);const m={components:{BCard:s._,BButton:i.T,BModal:o.N,BCardText:l.j,ConfirmDialog:d.Z,ToastificationContent:c.Z},directives:{Ripple:u.Z},data(){return{modalShow:!1}},methods:{onOk(){this.modalShow=!0;const t=localStorage.getItem("zelidauth");h.Z.restartNodeBenchmarks(t).then((t=>{console.log(t),this.showToast("success",t.data.data.message||t.data.data)})).catch((t=>{console.log(t),this.showToast("danger","Error while trying to restart Benchmark")}))},showToast(t,e,r="InfoIcon"){this.$toast({component:c.Z,props:{title:e,icon:r,variant:t}})}}},p=m;var f=r(1001),g=(0,f.Z)(p,a,n,!1,null,null,null);const b=g.exports},87156:(t,e,r)=>{r.d(e,{Z:()=>h});var a=function(){var t=this,e=t._self._c;return e("b-popover",{ref:"popover",attrs:{target:`${t.target}`,triggers:"click blur",show:t.show,placement:"auto",container:"my-container","custom-class":`confirm-dialog-${t.width}`},on:{"update:show":function(e){t.show=e}},scopedSlots:t._u([{key:"title",fn:function(){return[e("div",{staticClass:"d-flex justify-content-between align-items-center"},[e("span",[t._v(t._s(t.title))]),e("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"close",attrs:{variant:"transparent","aria-label":"Close"},on:{click:function(e){t.show=!1}}},[e("span",{staticClass:"d-inline-block text-white",attrs:{"aria-hidden":"true"}},[t._v("×")])])],1)]},proxy:!0}])},[e("div",{staticClass:"text-center"},[e("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"mr-1",attrs:{size:"sm",variant:"danger"},on:{click:function(e){t.show=!1}}},[t._v(" "+t._s(t.cancelButton)+" ")]),e("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],attrs:{size:"sm",variant:"primary"},on:{click:function(e){return t.confirm()}}},[t._v(" "+t._s(t.confirmButton)+" ")])],1)])},n=[],s=r(15193),i=r(53862),o=r(20266);const l={components:{BButton:s.T,BPopover:i.x},directives:{Ripple:o.Z},props:{target:{type:String,required:!0},title:{type:String,required:!1,default:"Are You Sure?"},cancelButton:{type:String,required:!1,default:"Cancel"},confirmButton:{type:String,required:!0},width:{type:Number,required:!1,default:300}},data(){return{show:!1}},methods:{confirm(){this.show=!1,this.$emit("confirm")}}},c=l;var u=r(1001),d=(0,u.Z)(c,a,n,!1,null,null,null);const h=d.exports},39569:(t,e,r)=>{r.d(e,{Z:()=>n});var a=r(80914);const n={start(t){return(0,a.Z)().get("/benchmark/start",{headers:{zelidauth:t}})},restart(t){return(0,a.Z)().get("/benchmark/restart",{headers:{zelidauth:t}})},getStatus(){return(0,a.Z)().get("/benchmark/getstatus")},restartNodeBenchmarks(t){return(0,a.Z)().get("/benchmark/restartnodebenchmarks",{headers:{zelidauth:t}})},signFluxTransaction(t,e){return(0,a.Z)().get(`/benchmark/signzelnodetransaction/${e}`,{headers:{zelidauth:t}})},helpSpecific(t){return(0,a.Z)().get(`/benchmark/help/${t}`)},help(){return(0,a.Z)().get("/benchmark/help")},stop(t){return(0,a.Z)().get("/benchmark/stop",{headers:{zelidauth:t}})},getBenchmarks(){return(0,a.Z)().get("/benchmark/getbenchmarks")},getInfo(){return(0,a.Z)().get("/benchmark/getinfo")},tailBenchmarkDebug(t){return(0,a.Z)().get("/flux/tailbenchmarkdebug",{headers:{zelidauth:t}})},justAPI(){return(0,a.Z)()},cancelToken(){return a.S}}}}]); \ No newline at end of file diff --git a/HomeUI/dist/js/3904.js b/HomeUI/dist/js/3904.js index 4f44917da..41936f523 100644 --- a/HomeUI/dist/js/3904.js +++ b/HomeUI/dist/js/3904.js @@ -1 +1 @@ -"use strict";(globalThis["webpackChunkflux"]=globalThis["webpackChunkflux"]||[]).push([[3904],{34547:(t,e,n)=>{n.d(e,{Z:()=>g});var o=function(){var t=this,e=t._self._c;return e("div",{staticClass:"toastification"},[e("div",{staticClass:"d-flex align-items-start"},[e("b-avatar",{staticClass:"mr-75 flex-shrink-0",attrs:{variant:t.variant,size:"1.8rem"}},[e("feather-icon",{attrs:{icon:t.icon,size:"15"}})],1),e("div",{staticClass:"d-flex flex-grow-1"},[e("div",[t.title?e("h5",{staticClass:"mb-0 font-weight-bolder toastification-title",class:`text-${t.variant}`,domProps:{textContent:t._s(t.title)}}):t._e(),t.text?e("small",{staticClass:"d-inline-block text-body",domProps:{textContent:t._s(t.text)}}):t._e()]),e("span",{staticClass:"cursor-pointer toastification-close-icon ml-auto",on:{click:function(e){return t.$emit("close-toast")}}},[t.hideClose?t._e():e("feather-icon",{staticClass:"text-body",attrs:{icon:"XIcon"}})],1)])],1)])},i=[],a=n(47389);const s={components:{BAvatar:a.SH},props:{variant:{type:String,default:"primary"},icon:{type:String,default:null},title:{type:String,default:null},text:{type:String,default:null},hideClose:{type:Boolean,default:!1}}},r=s;var c=n(1001),l=(0,c.Z)(r,o,i,!1,null,"22d964ca",null);const g=l.exports},87156:(t,e,n)=>{n.d(e,{Z:()=>d});var o=function(){var t=this,e=t._self._c;return e("b-popover",{ref:"popover",attrs:{target:`${t.target}`,triggers:"click blur",show:t.show,placement:"auto",container:"my-container","custom-class":`confirm-dialog-${t.width}`},on:{"update:show":function(e){t.show=e}},scopedSlots:t._u([{key:"title",fn:function(){return[e("div",{staticClass:"d-flex justify-content-between align-items-center"},[e("span",[t._v(t._s(t.title))]),e("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"close",attrs:{variant:"transparent","aria-label":"Close"},on:{click:function(e){t.show=!1}}},[e("span",{staticClass:"d-inline-block text-white",attrs:{"aria-hidden":"true"}},[t._v("×")])])],1)]},proxy:!0}])},[e("div",{staticClass:"text-center"},[e("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"mr-1",attrs:{size:"sm",variant:"danger"},on:{click:function(e){t.show=!1}}},[t._v(" "+t._s(t.cancelButton)+" ")]),e("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],attrs:{size:"sm",variant:"primary"},on:{click:function(e){return t.confirm()}}},[t._v(" "+t._s(t.confirmButton)+" ")])],1)])},i=[],a=n(15193),s=n(53862),r=n(20266);const c={components:{BButton:a.T,BPopover:s.x},directives:{Ripple:r.Z},props:{target:{type:String,required:!0},title:{type:String,required:!1,default:"Are You Sure?"},cancelButton:{type:String,required:!1,default:"Cancel"},confirmButton:{type:String,required:!0},width:{type:Number,required:!1,default:300}},data(){return{show:!1}},methods:{confirm(){this.show=!1,this.$emit("confirm")}}},l=c;var g=n(1001),u=(0,g.Z)(l,o,i,!1,null,null,null);const d=u.exports},63904:(t,e,n)=>{n.r(e),n.d(e,{default:()=>$});var o=function(){var t=this,e=t._self._c;return e("b-tabs",[e("b-tab",{attrs:{active:"",title:"Outgoing"}},[e("b-overlay",{attrs:{show:t.config.outgoing.loading,variant:"transparent",blur:"5px"}},[e("b-card",[e("b-row",[e("b-col",{staticClass:"my-1",attrs:{md:"4",sm:"4"}},[e("b-form-group",{staticClass:"mb-0"},[e("label",{staticClass:"d-inline-block text-left mr-50"},[t._v("Per page")]),e("b-form-select",{staticClass:"w-50",attrs:{id:"perPageSelect",size:"sm",options:t.config.outgoing.pageOptions},model:{value:t.config.outgoing.perPage,callback:function(e){t.$set(t.config.outgoing,"perPage",e)},expression:"config.outgoing.perPage"}})],1)],1),e("b-col",{staticClass:"my-1",attrs:{md:"8"}},[e("b-form-group",{staticClass:"mb-0",attrs:{label:"Filter","label-cols-sm":"1","label-align-sm":"right","label-for":"filterInput"}},[e("b-input-group",{attrs:{size:"sm"}},[e("b-form-input",{attrs:{id:"filterInput",type:"search",placeholder:"Type to Search"},model:{value:t.config.outgoing.filter,callback:function(e){t.$set(t.config.outgoing,"filter",e)},expression:"config.outgoing.filter"}}),e("b-input-group-append",[e("b-button",{attrs:{disabled:!t.config.outgoing.filter},on:{click:function(e){t.config.outgoing.filter=""}}},[t._v(" Clear ")])],1)],1)],1)],1),e("b-col",{attrs:{cols:"12"}},[e("b-table",{staticClass:"fluxnetwork-outgoing-table",attrs:{striped:"",hover:"",responsive:"","per-page":t.config.outgoing.perPage,"current-page":t.config.outgoing.currentPage,items:t.config.outgoing.connectedPeers,fields:t.config.outgoing.fields,"sort-by":t.config.outgoing.sortBy,"sort-desc":t.config.outgoing.sortDesc,"sort-direction":t.config.outgoing.sortDirection,filter:t.config.outgoing.filter,"filter-included-fields":t.config.outgoing.filterOn,"show-empty":"","empty-text":"No Connected Nodes"},on:{"update:sortBy":function(e){return t.$set(t.config.outgoing,"sortBy",e)},"update:sort-by":function(e){return t.$set(t.config.outgoing,"sortBy",e)},"update:sortDesc":function(e){return t.$set(t.config.outgoing,"sortDesc",e)},"update:sort-desc":function(e){return t.$set(t.config.outgoing,"sortDesc",e)},filtered:t.onFilteredOutgoing},scopedSlots:t._u(["admin"===t.privilege||"fluxteam"===t.privilege?{key:"cell(disconnect)",fn:function(n){return[e("b-button",{staticClass:"mr-0",attrs:{id:`disconnect-peer-${n.item.ip}`,size:"sm",variant:"danger"}},[t._v(" Disconnect ")]),e("confirm-dialog",{attrs:{target:`disconnect-peer-${n.item.ip}`,"confirm-button":"Disconnect Peer"},on:{confirm:function(e){return t.disconnectPeer(n)}}})]}}:null,{key:"cell(lastPingTime)",fn:function(e){return[t._v(" "+t._s(new Date(e.item.lastPingTime).toLocaleString("en-GB",t.timeoptions))+" ")]}}],null,!0)})],1),e("b-col",{attrs:{cols:"12"}},[e("b-pagination",{staticClass:"my-0",attrs:{"total-rows":t.config.outgoing.totalRows,"per-page":t.config.outgoing.perPage,align:"center",size:"sm"},model:{value:t.config.outgoing.currentPage,callback:function(e){t.$set(t.config.outgoing,"currentPage",e)},expression:"config.outgoing.currentPage"}}),e("span",{staticClass:"table-total"},[t._v("Total: "+t._s(t.config.outgoing.totalRows))])],1)],1)],1)],1),e("b-card",[e("h4",[t._v("Add Peer")]),e("div",{staticClass:"mt-1"},[t._v(" IP address (with api port): ")]),e("b-form-input",{staticClass:"mb-2",attrs:{id:"ip",placeholder:"Enter IP address:API Port",type:"text"},model:{value:t.addPeerIP,callback:function(e){t.addPeerIP=e},expression:"addPeerIP"}}),e("div",[e("b-button",{staticClass:"mb-2",attrs:{variant:"success","aria-label":"Initiate connection"},on:{click:t.addPeer}},[t._v(" Initiate connection ")])],1)],1)],1),e("b-tab",{attrs:{title:"Incoming"}},[e("b-overlay",{attrs:{show:t.config.incoming.loading,variant:"transparent",blur:"5px"}},[e("b-card",[e("b-row",[e("b-col",{staticClass:"my-1",attrs:{md:"4",sm:"4"}},[e("b-form-group",{staticClass:"mb-0"},[e("label",{staticClass:"d-inline-block text-left mr-50"},[t._v("Per page")]),e("b-form-select",{staticClass:"w-50",attrs:{id:"perPageSelect",size:"sm",options:t.config.incoming.pageOptions},model:{value:t.config.incoming.perPage,callback:function(e){t.$set(t.config.incoming,"perPage",e)},expression:"config.incoming.perPage"}})],1)],1),e("b-col",{staticClass:"my-1",attrs:{md:"8"}},[e("b-form-group",{staticClass:"mb-0",attrs:{label:"Filter","label-cols-sm":"1","label-align-sm":"right","label-for":"filterInput"}},[e("b-input-group",{attrs:{size:"sm"}},[e("b-form-input",{attrs:{id:"filterInput",type:"search",placeholder:"Type to Search"},model:{value:t.config.incoming.filter,callback:function(e){t.$set(t.config.incoming,"filter",e)},expression:"config.incoming.filter"}}),e("b-input-group-append",[e("b-button",{attrs:{disabled:!t.config.incoming.filter},on:{click:function(e){t.config.incoming.filter=""}}},[t._v(" Clear ")])],1)],1)],1)],1),e("b-col",{attrs:{cols:"12"}},[e("b-table",{staticClass:"fluxnetwork-incoming-table",attrs:{striped:"",hover:"",responsive:"","per-page":t.config.incoming.perPage,"current-page":t.config.incoming.currentPage,items:t.config.incoming.incomingConnections,fields:t.config.incoming.fields,"sort-by":t.config.incoming.sortBy,"sort-desc":t.config.incoming.sortDesc,"sort-direction":t.config.incoming.sortDirection,filter:t.config.incoming.filter,"filter-included-fields":t.config.incoming.filterOn,"show-empty":"","empty-text":"No Incoming Connections"},on:{"update:sortBy":function(e){return t.$set(t.config.incoming,"sortBy",e)},"update:sort-by":function(e){return t.$set(t.config.incoming,"sortBy",e)},"update:sortDesc":function(e){return t.$set(t.config.incoming,"sortDesc",e)},"update:sort-desc":function(e){return t.$set(t.config.incoming,"sortDesc",e)},filtered:t.onFilteredIncoming},scopedSlots:t._u(["admin"===t.privilege||"fluxteam"===t.privilege?{key:"cell(disconnect)",fn:function(n){return[e("b-button",{staticClass:"mr-0",attrs:{id:`disconnect-incoming-${n.item.ip}`,size:"sm",variant:"danger"}},[t._v(" Disconnect ")]),e("confirm-dialog",{attrs:{target:`disconnect-incoming-${n.item.ip}`,"confirm-button":"Disconnect Incoming"},on:{confirm:function(e){return t.disconnectIncoming(n)}}})]}}:null],null,!0)})],1),e("b-col",{attrs:{cols:"12"}},[e("b-pagination",{staticClass:"my-0",attrs:{"total-rows":t.config.incoming.totalRows,"per-page":t.config.incoming.perPage,align:"center",size:"sm"},model:{value:t.config.incoming.currentPage,callback:function(e){t.$set(t.config.incoming,"currentPage",e)},expression:"config.incoming.currentPage"}}),e("span",{staticClass:"table-total"},[t._v("Total: "+t._s(t.config.incoming.totalRows))])],1)],1)],1)],1)],1)],1)},i=[],a=n(58887),s=n(51015),r=n(16521),c=n(50725),l=n(86855),g=n(26253),u=n(46709),d=n(22183),f=n(8051),p=n(4060),m=n(22418),h=n(15193),b=n(10962),x=n(66126),P=n(20629),v=n(34547),y=n(87156),C=n(39055);const w=n(63005),I={components:{BTabs:a.M,BTab:s.L,BTable:r.h,BCol:c.l,BCard:l._,BRow:g.T,BFormGroup:u.x,BFormInput:d.e,BFormSelect:f.K,BInputGroup:p.w,BInputGroupAppend:m.B,BButton:h.T,BPagination:b.c,BOverlay:x.X,ConfirmDialog:y.Z,ToastificationContent:v.Z},data(){return{timeoptions:w,config:{outgoing:{perPage:10,pageOptions:[10,25,50,100],sortBy:"",sortDesc:!1,sortDirection:"asc",connectedPeers:[],filter:"",filterOn:[],fields:[{key:"ip",label:"IP Address",sortable:!0},{key:"port",label:"Port",sortable:!0},{key:"latency",label:"Latency",sortable:!0},{key:"lastPingTime",label:"Last Ping",sortable:!0},{key:"disconnect",label:""}],totalRows:1,currentPage:1,loading:!0},incoming:{perPage:10,pageOptions:[10,25,50,100],sortBy:"",sortDesc:!1,sortDirection:"asc",incomingConnections:[],filter:"",filterOn:[],fields:[{key:"ip",label:"IP Address",sortable:!0},{key:"port",label:"Port",sortable:!0},{key:"disconnect",label:""}],totalRows:1,currentPage:1,loading:!0}},addPeerIP:""}},computed:{...(0,P.rn)("flux",["privilege"])},mounted(){this.fluxConnectedPeersInfo(),this.fluxIncomingConnectionsInfo()},methods:{async fluxConnectedPeersInfo(){this.config.outgoing.loading=!0;const t=await C.Z.connectedPeersInfo();console.log(t),"success"===t.data.status?(this.config.outgoing.connectedPeers=t.data.data,this.config.outgoing.totalRows=this.config.outgoing.connectedPeers.length,this.config.outgoing.currentPage=1):this.showToast("danger",t.data.data.message||t.data.data),this.config.outgoing.loading=!1},async fluxIncomingConnectionsInfo(){this.config.incoming.loading=!0;const t=await C.Z.incomingConnectionsInfo();"success"===t.data.status?(this.config.incoming.incomingConnections=t.data.data,this.config.incoming.totalRows=this.config.incoming.incomingConnections.length,this.config.incoming.currentPage=1):this.showToast("danger",t.data.data.message||t.data.data),this.config.incoming.loading=!1},async disconnectPeer(t){const e=this,n=localStorage.getItem("zelidauth"),o=await C.Z.removePeer(n,`${t.item.ip}:${t.item.port}`).catch((t=>{this.showToast("danger",t.message||t)}));console.log(o),"success"===o.data.status?(this.showToast(o.data.status,o.data.data.message||o.data.data),this.config.outgoing.loading=!0,setTimeout((()=>{e.fluxConnectedPeersInfo()}),2500)):this.fluxConnectedPeersInfo()},async disconnectIncoming(t){const e=this,n=localStorage.getItem("zelidauth"),o=await C.Z.removeIncomingPeer(n,`${t.item.ip}:${t.item.port}`).catch((t=>{this.showToast("danger",t.message||t)}));console.log(o),"success"===o.data.status?(this.showToast(o.data.status,o.data.data.message||o.data.data),this.config.incoming.loading=!0,setTimeout((()=>{e.fluxIncomingConnectionsInfo()}),2500)):e.fluxIncomingConnectionsInfo()},async addPeer(){const t=this,e=localStorage.getItem("zelidauth"),n=await C.Z.addPeer(e,this.addPeerIP).catch((t=>{this.showToast("danger",t.message||t)}));console.log(n),"success"===n.data.status?(this.showToast(n.data.status,n.data.data.message||n.data.data),this.config.incoming.loading=!0,setTimeout((()=>{t.fluxConnectedPeersInfo()}),2500)):(this.showToast("danger",n.data.data.message||n.data.data),t.fluxConnectedPeersInfo())},onFilteredOutgoing(t){this.config.outgoing.totalRows=t.length,this.config.outgoing.currentPage=1},onFilteredIncoming(t){this.config.incoming.totalRows=t.length,this.config.incoming.currentPage=1},showToast(t,e,n="InfoIcon"){this.$toast({component:v.Z,props:{title:e,icon:n,variant:t}})}}},k=I;var Z=n(1001),B=(0,Z.Z)(k,o,i,!1,null,null,null);const $=B.exports},63005:(t,e,n)=>{n.r(e),n.d(e,{default:()=>a});const o={year:"numeric",month:"short",day:"numeric",hour:"2-digit",minute:"2-digit"},i={year:"numeric",month:"short",day:"numeric"},a={shortDate:o,date:i}},39055:(t,e,n)=>{n.d(e,{Z:()=>i});var o=n(80914);const i={softUpdateFlux(t){return(0,o.Z)().get("/flux/softupdateflux",{headers:{zelidauth:t}})},softUpdateInstallFlux(t){return(0,o.Z)().get("/flux/softupdatefluxinstall",{headers:{zelidauth:t}})},updateFlux(t){return(0,o.Z)().get("/flux/updateflux",{headers:{zelidauth:t}})},hardUpdateFlux(t){return(0,o.Z)().get("/flux/hardupdateflux",{headers:{zelidauth:t}})},rebuildHome(t){return(0,o.Z)().get("/flux/rebuildhome",{headers:{zelidauth:t}})},updateDaemon(t){return(0,o.Z)().get("/flux/updatedaemon",{headers:{zelidauth:t}})},reindexDaemon(t){return(0,o.Z)().get("/flux/reindexdaemon",{headers:{zelidauth:t}})},updateBenchmark(t){return(0,o.Z)().get("/flux/updatebenchmark",{headers:{zelidauth:t}})},getFluxVersion(){return(0,o.Z)().get("/flux/version")},broadcastMessage(t,e){const n=e,i={headers:{zelidauth:t}};return(0,o.Z)().post("/flux/broadcastmessage",JSON.stringify(n),i)},connectedPeers(){return(0,o.Z)().get(`/flux/connectedpeers?timestamp=${Date.now()}`)},connectedPeersInfo(){return(0,o.Z)().get(`/flux/connectedpeersinfo?timestamp=${Date.now()}`)},incomingConnections(){return(0,o.Z)().get(`/flux/incomingconnections?timestamp=${Date.now()}`)},incomingConnectionsInfo(){return(0,o.Z)().get(`/flux/incomingconnectionsinfo?timestamp=${Date.now()}`)},addPeer(t,e){return(0,o.Z)().get(`/flux/addpeer/${e}`,{headers:{zelidauth:t}})},removePeer(t,e){return(0,o.Z)().get(`/flux/removepeer/${e}`,{headers:{zelidauth:t}})},removeIncomingPeer(t,e){return(0,o.Z)().get(`/flux/removeincomingpeer/${e}`,{headers:{zelidauth:t}})},adjustKadena(t,e,n){return(0,o.Z)().get(`/flux/adjustkadena/${e}/${n}`,{headers:{zelidauth:t}})},adjustRouterIP(t,e){return(0,o.Z)().get(`/flux/adjustrouterip/${e}`,{headers:{zelidauth:t}})},adjustBlockedPorts(t,e){const n={blockedPorts:e},i={headers:{zelidauth:t}};return(0,o.Z)().post("/flux/adjustblockedports",n,i)},adjustAPIPort(t,e){return(0,o.Z)().get(`/flux/adjustapiport/${e}`,{headers:{zelidauth:t}})},adjustBlockedRepositories(t,e){const n={blockedRepositories:e},i={headers:{zelidauth:t}};return(0,o.Z)().post("/flux/adjustblockedrepositories",n,i)},getKadenaAccount(){const t={headers:{"x-apicache-bypass":!0}};return(0,o.Z)().get("/flux/kadena",t)},getRouterIP(){const t={headers:{"x-apicache-bypass":!0}};return(0,o.Z)().get("/flux/routerip",t)},getBlockedPorts(){const t={headers:{"x-apicache-bypass":!0}};return(0,o.Z)().get("/flux/blockedports",t)},getAPIPort(){const t={headers:{"x-apicache-bypass":!0}};return(0,o.Z)().get("/flux/apiport",t)},getBlockedRepositories(){const t={headers:{"x-apicache-bypass":!0}};return(0,o.Z)().get("/flux/blockedrepositories",t)},getMarketPlaceURL(){return(0,o.Z)().get("/flux/marketplaceurl")},getZelid(){const t={headers:{"x-apicache-bypass":!0}};return(0,o.Z)().get("/flux/zelid",t)},getStaticIpInfo(){return(0,o.Z)().get("/flux/staticip")},restartFluxOS(t){const e={headers:{zelidauth:t,"x-apicache-bypass":!0}};return(0,o.Z)().get("/flux/restart",e)},tailFluxLog(t,e){return(0,o.Z)().get(`/flux/tail${t}log`,{headers:{zelidauth:e}})},justAPI(){return(0,o.Z)()},cancelToken(){return o.S}}}}]); \ No newline at end of file +"use strict";(self["webpackChunkflux"]=self["webpackChunkflux"]||[]).push([[3904],{34547:(t,e,n)=>{n.d(e,{Z:()=>g});var o=function(){var t=this,e=t._self._c;return e("div",{staticClass:"toastification"},[e("div",{staticClass:"d-flex align-items-start"},[e("b-avatar",{staticClass:"mr-75 flex-shrink-0",attrs:{variant:t.variant,size:"1.8rem"}},[e("feather-icon",{attrs:{icon:t.icon,size:"15"}})],1),e("div",{staticClass:"d-flex flex-grow-1"},[e("div",[t.title?e("h5",{staticClass:"mb-0 font-weight-bolder toastification-title",class:`text-${t.variant}`,domProps:{textContent:t._s(t.title)}}):t._e(),t.text?e("small",{staticClass:"d-inline-block text-body",domProps:{textContent:t._s(t.text)}}):t._e()]),e("span",{staticClass:"cursor-pointer toastification-close-icon ml-auto",on:{click:function(e){return t.$emit("close-toast")}}},[t.hideClose?t._e():e("feather-icon",{staticClass:"text-body",attrs:{icon:"XIcon"}})],1)])],1)])},i=[],a=n(47389);const s={components:{BAvatar:a.SH},props:{variant:{type:String,default:"primary"},icon:{type:String,default:null},title:{type:String,default:null},text:{type:String,default:null},hideClose:{type:Boolean,default:!1}}},r=s;var c=n(1001),l=(0,c.Z)(r,o,i,!1,null,"22d964ca",null);const g=l.exports},87156:(t,e,n)=>{n.d(e,{Z:()=>d});var o=function(){var t=this,e=t._self._c;return e("b-popover",{ref:"popover",attrs:{target:`${t.target}`,triggers:"click blur",show:t.show,placement:"auto",container:"my-container","custom-class":`confirm-dialog-${t.width}`},on:{"update:show":function(e){t.show=e}},scopedSlots:t._u([{key:"title",fn:function(){return[e("div",{staticClass:"d-flex justify-content-between align-items-center"},[e("span",[t._v(t._s(t.title))]),e("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"close",attrs:{variant:"transparent","aria-label":"Close"},on:{click:function(e){t.show=!1}}},[e("span",{staticClass:"d-inline-block text-white",attrs:{"aria-hidden":"true"}},[t._v("×")])])],1)]},proxy:!0}])},[e("div",{staticClass:"text-center"},[e("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"mr-1",attrs:{size:"sm",variant:"danger"},on:{click:function(e){t.show=!1}}},[t._v(" "+t._s(t.cancelButton)+" ")]),e("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],attrs:{size:"sm",variant:"primary"},on:{click:function(e){return t.confirm()}}},[t._v(" "+t._s(t.confirmButton)+" ")])],1)])},i=[],a=n(15193),s=n(53862),r=n(20266);const c={components:{BButton:a.T,BPopover:s.x},directives:{Ripple:r.Z},props:{target:{type:String,required:!0},title:{type:String,required:!1,default:"Are You Sure?"},cancelButton:{type:String,required:!1,default:"Cancel"},confirmButton:{type:String,required:!0},width:{type:Number,required:!1,default:300}},data(){return{show:!1}},methods:{confirm(){this.show=!1,this.$emit("confirm")}}},l=c;var g=n(1001),u=(0,g.Z)(l,o,i,!1,null,null,null);const d=u.exports},63904:(t,e,n)=>{n.r(e),n.d(e,{default:()=>$});var o=function(){var t=this,e=t._self._c;return e("b-tabs",[e("b-tab",{attrs:{active:"",title:"Outgoing"}},[e("b-overlay",{attrs:{show:t.config.outgoing.loading,variant:"transparent",blur:"5px"}},[e("b-card",[e("b-row",[e("b-col",{staticClass:"my-1",attrs:{md:"4",sm:"4"}},[e("b-form-group",{staticClass:"mb-0"},[e("label",{staticClass:"d-inline-block text-left mr-50"},[t._v("Per page")]),e("b-form-select",{staticClass:"w-50",attrs:{id:"perPageSelect",size:"sm",options:t.config.outgoing.pageOptions},model:{value:t.config.outgoing.perPage,callback:function(e){t.$set(t.config.outgoing,"perPage",e)},expression:"config.outgoing.perPage"}})],1)],1),e("b-col",{staticClass:"my-1",attrs:{md:"8"}},[e("b-form-group",{staticClass:"mb-0",attrs:{label:"Filter","label-cols-sm":"1","label-align-sm":"right","label-for":"filterInput"}},[e("b-input-group",{attrs:{size:"sm"}},[e("b-form-input",{attrs:{id:"filterInput",type:"search",placeholder:"Type to Search"},model:{value:t.config.outgoing.filter,callback:function(e){t.$set(t.config.outgoing,"filter",e)},expression:"config.outgoing.filter"}}),e("b-input-group-append",[e("b-button",{attrs:{disabled:!t.config.outgoing.filter},on:{click:function(e){t.config.outgoing.filter=""}}},[t._v(" Clear ")])],1)],1)],1)],1),e("b-col",{attrs:{cols:"12"}},[e("b-table",{staticClass:"fluxnetwork-outgoing-table",attrs:{striped:"",hover:"",responsive:"","per-page":t.config.outgoing.perPage,"current-page":t.config.outgoing.currentPage,items:t.config.outgoing.connectedPeers,fields:t.config.outgoing.fields,"sort-by":t.config.outgoing.sortBy,"sort-desc":t.config.outgoing.sortDesc,"sort-direction":t.config.outgoing.sortDirection,filter:t.config.outgoing.filter,"filter-included-fields":t.config.outgoing.filterOn,"show-empty":"","empty-text":"No Connected Nodes"},on:{"update:sortBy":function(e){return t.$set(t.config.outgoing,"sortBy",e)},"update:sort-by":function(e){return t.$set(t.config.outgoing,"sortBy",e)},"update:sortDesc":function(e){return t.$set(t.config.outgoing,"sortDesc",e)},"update:sort-desc":function(e){return t.$set(t.config.outgoing,"sortDesc",e)},filtered:t.onFilteredOutgoing},scopedSlots:t._u(["admin"===t.privilege||"fluxteam"===t.privilege?{key:"cell(disconnect)",fn:function(n){return[e("b-button",{staticClass:"mr-0",attrs:{id:`disconnect-peer-${n.item.ip}`,size:"sm",variant:"danger"}},[t._v(" Disconnect ")]),e("confirm-dialog",{attrs:{target:`disconnect-peer-${n.item.ip}`,"confirm-button":"Disconnect Peer"},on:{confirm:function(e){return t.disconnectPeer(n)}}})]}}:null,{key:"cell(lastPingTime)",fn:function(e){return[t._v(" "+t._s(new Date(e.item.lastPingTime).toLocaleString("en-GB",t.timeoptions))+" ")]}}],null,!0)})],1),e("b-col",{attrs:{cols:"12"}},[e("b-pagination",{staticClass:"my-0",attrs:{"total-rows":t.config.outgoing.totalRows,"per-page":t.config.outgoing.perPage,align:"center",size:"sm"},model:{value:t.config.outgoing.currentPage,callback:function(e){t.$set(t.config.outgoing,"currentPage",e)},expression:"config.outgoing.currentPage"}}),e("span",{staticClass:"table-total"},[t._v("Total: "+t._s(t.config.outgoing.totalRows))])],1)],1)],1)],1),e("b-card",[e("h4",[t._v("Add Peer")]),e("div",{staticClass:"mt-1"},[t._v(" IP address (with api port): ")]),e("b-form-input",{staticClass:"mb-2",attrs:{id:"ip",placeholder:"Enter IP address:API Port",type:"text"},model:{value:t.addPeerIP,callback:function(e){t.addPeerIP=e},expression:"addPeerIP"}}),e("div",[e("b-button",{staticClass:"mb-2",attrs:{variant:"success","aria-label":"Initiate connection"},on:{click:t.addPeer}},[t._v(" Initiate connection ")])],1)],1)],1),e("b-tab",{attrs:{title:"Incoming"}},[e("b-overlay",{attrs:{show:t.config.incoming.loading,variant:"transparent",blur:"5px"}},[e("b-card",[e("b-row",[e("b-col",{staticClass:"my-1",attrs:{md:"4",sm:"4"}},[e("b-form-group",{staticClass:"mb-0"},[e("label",{staticClass:"d-inline-block text-left mr-50"},[t._v("Per page")]),e("b-form-select",{staticClass:"w-50",attrs:{id:"perPageSelect",size:"sm",options:t.config.incoming.pageOptions},model:{value:t.config.incoming.perPage,callback:function(e){t.$set(t.config.incoming,"perPage",e)},expression:"config.incoming.perPage"}})],1)],1),e("b-col",{staticClass:"my-1",attrs:{md:"8"}},[e("b-form-group",{staticClass:"mb-0",attrs:{label:"Filter","label-cols-sm":"1","label-align-sm":"right","label-for":"filterInput"}},[e("b-input-group",{attrs:{size:"sm"}},[e("b-form-input",{attrs:{id:"filterInput",type:"search",placeholder:"Type to Search"},model:{value:t.config.incoming.filter,callback:function(e){t.$set(t.config.incoming,"filter",e)},expression:"config.incoming.filter"}}),e("b-input-group-append",[e("b-button",{attrs:{disabled:!t.config.incoming.filter},on:{click:function(e){t.config.incoming.filter=""}}},[t._v(" Clear ")])],1)],1)],1)],1),e("b-col",{attrs:{cols:"12"}},[e("b-table",{staticClass:"fluxnetwork-incoming-table",attrs:{striped:"",hover:"",responsive:"","per-page":t.config.incoming.perPage,"current-page":t.config.incoming.currentPage,items:t.config.incoming.incomingConnections,fields:t.config.incoming.fields,"sort-by":t.config.incoming.sortBy,"sort-desc":t.config.incoming.sortDesc,"sort-direction":t.config.incoming.sortDirection,filter:t.config.incoming.filter,"filter-included-fields":t.config.incoming.filterOn,"show-empty":"","empty-text":"No Incoming Connections"},on:{"update:sortBy":function(e){return t.$set(t.config.incoming,"sortBy",e)},"update:sort-by":function(e){return t.$set(t.config.incoming,"sortBy",e)},"update:sortDesc":function(e){return t.$set(t.config.incoming,"sortDesc",e)},"update:sort-desc":function(e){return t.$set(t.config.incoming,"sortDesc",e)},filtered:t.onFilteredIncoming},scopedSlots:t._u(["admin"===t.privilege||"fluxteam"===t.privilege?{key:"cell(disconnect)",fn:function(n){return[e("b-button",{staticClass:"mr-0",attrs:{id:`disconnect-incoming-${n.item.ip}`,size:"sm",variant:"danger"}},[t._v(" Disconnect ")]),e("confirm-dialog",{attrs:{target:`disconnect-incoming-${n.item.ip}`,"confirm-button":"Disconnect Incoming"},on:{confirm:function(e){return t.disconnectIncoming(n)}}})]}}:null],null,!0)})],1),e("b-col",{attrs:{cols:"12"}},[e("b-pagination",{staticClass:"my-0",attrs:{"total-rows":t.config.incoming.totalRows,"per-page":t.config.incoming.perPage,align:"center",size:"sm"},model:{value:t.config.incoming.currentPage,callback:function(e){t.$set(t.config.incoming,"currentPage",e)},expression:"config.incoming.currentPage"}}),e("span",{staticClass:"table-total"},[t._v("Total: "+t._s(t.config.incoming.totalRows))])],1)],1)],1)],1)],1)],1)},i=[],a=n(58887),s=n(51015),r=n(16521),c=n(50725),l=n(86855),g=n(26253),u=n(46709),d=n(22183),f=n(8051),p=n(4060),m=n(22418),h=n(15193),b=n(10962),x=n(66126),P=n(20629),v=n(34547),y=n(87156),C=n(39055);const w=n(63005),I={components:{BTabs:a.M,BTab:s.L,BTable:r.h,BCol:c.l,BCard:l._,BRow:g.T,BFormGroup:u.x,BFormInput:d.e,BFormSelect:f.K,BInputGroup:p.w,BInputGroupAppend:m.B,BButton:h.T,BPagination:b.c,BOverlay:x.X,ConfirmDialog:y.Z,ToastificationContent:v.Z},data(){return{timeoptions:w,config:{outgoing:{perPage:10,pageOptions:[10,25,50,100],sortBy:"",sortDesc:!1,sortDirection:"asc",connectedPeers:[],filter:"",filterOn:[],fields:[{key:"ip",label:"IP Address",sortable:!0},{key:"port",label:"Port",sortable:!0},{key:"latency",label:"Latency",sortable:!0},{key:"lastPingTime",label:"Last Ping",sortable:!0},{key:"disconnect",label:""}],totalRows:1,currentPage:1,loading:!0},incoming:{perPage:10,pageOptions:[10,25,50,100],sortBy:"",sortDesc:!1,sortDirection:"asc",incomingConnections:[],filter:"",filterOn:[],fields:[{key:"ip",label:"IP Address",sortable:!0},{key:"port",label:"Port",sortable:!0},{key:"disconnect",label:""}],totalRows:1,currentPage:1,loading:!0}},addPeerIP:""}},computed:{...(0,P.rn)("flux",["privilege"])},mounted(){this.fluxConnectedPeersInfo(),this.fluxIncomingConnectionsInfo()},methods:{async fluxConnectedPeersInfo(){this.config.outgoing.loading=!0;const t=await C.Z.connectedPeersInfo();console.log(t),"success"===t.data.status?(this.config.outgoing.connectedPeers=t.data.data,this.config.outgoing.totalRows=this.config.outgoing.connectedPeers.length,this.config.outgoing.currentPage=1):this.showToast("danger",t.data.data.message||t.data.data),this.config.outgoing.loading=!1},async fluxIncomingConnectionsInfo(){this.config.incoming.loading=!0;const t=await C.Z.incomingConnectionsInfo();"success"===t.data.status?(this.config.incoming.incomingConnections=t.data.data,this.config.incoming.totalRows=this.config.incoming.incomingConnections.length,this.config.incoming.currentPage=1):this.showToast("danger",t.data.data.message||t.data.data),this.config.incoming.loading=!1},async disconnectPeer(t){const e=this,n=localStorage.getItem("zelidauth"),o=await C.Z.removePeer(n,`${t.item.ip}:${t.item.port}`).catch((t=>{this.showToast("danger",t.message||t)}));console.log(o),"success"===o.data.status?(this.showToast(o.data.status,o.data.data.message||o.data.data),this.config.outgoing.loading=!0,setTimeout((()=>{e.fluxConnectedPeersInfo()}),2500)):this.fluxConnectedPeersInfo()},async disconnectIncoming(t){const e=this,n=localStorage.getItem("zelidauth"),o=await C.Z.removeIncomingPeer(n,`${t.item.ip}:${t.item.port}`).catch((t=>{this.showToast("danger",t.message||t)}));console.log(o),"success"===o.data.status?(this.showToast(o.data.status,o.data.data.message||o.data.data),this.config.incoming.loading=!0,setTimeout((()=>{e.fluxIncomingConnectionsInfo()}),2500)):e.fluxIncomingConnectionsInfo()},async addPeer(){const t=this,e=localStorage.getItem("zelidauth"),n=await C.Z.addPeer(e,this.addPeerIP).catch((t=>{this.showToast("danger",t.message||t)}));console.log(n),"success"===n.data.status?(this.showToast(n.data.status,n.data.data.message||n.data.data),this.config.incoming.loading=!0,setTimeout((()=>{t.fluxConnectedPeersInfo()}),2500)):(this.showToast("danger",n.data.data.message||n.data.data),t.fluxConnectedPeersInfo())},onFilteredOutgoing(t){this.config.outgoing.totalRows=t.length,this.config.outgoing.currentPage=1},onFilteredIncoming(t){this.config.incoming.totalRows=t.length,this.config.incoming.currentPage=1},showToast(t,e,n="InfoIcon"){this.$toast({component:v.Z,props:{title:e,icon:n,variant:t}})}}},k=I;var Z=n(1001),B=(0,Z.Z)(k,o,i,!1,null,null,null);const $=B.exports},63005:(t,e,n)=>{n.r(e),n.d(e,{default:()=>a});const o={year:"numeric",month:"short",day:"numeric",hour:"2-digit",minute:"2-digit"},i={year:"numeric",month:"short",day:"numeric"},a={shortDate:o,date:i}},39055:(t,e,n)=>{n.d(e,{Z:()=>i});var o=n(80914);const i={softUpdateFlux(t){return(0,o.Z)().get("/flux/softupdateflux",{headers:{zelidauth:t}})},softUpdateInstallFlux(t){return(0,o.Z)().get("/flux/softupdatefluxinstall",{headers:{zelidauth:t}})},updateFlux(t){return(0,o.Z)().get("/flux/updateflux",{headers:{zelidauth:t}})},hardUpdateFlux(t){return(0,o.Z)().get("/flux/hardupdateflux",{headers:{zelidauth:t}})},rebuildHome(t){return(0,o.Z)().get("/flux/rebuildhome",{headers:{zelidauth:t}})},updateDaemon(t){return(0,o.Z)().get("/flux/updatedaemon",{headers:{zelidauth:t}})},reindexDaemon(t){return(0,o.Z)().get("/flux/reindexdaemon",{headers:{zelidauth:t}})},updateBenchmark(t){return(0,o.Z)().get("/flux/updatebenchmark",{headers:{zelidauth:t}})},getFluxVersion(){return(0,o.Z)().get("/flux/version")},broadcastMessage(t,e){const n=e,i={headers:{zelidauth:t}};return(0,o.Z)().post("/flux/broadcastmessage",JSON.stringify(n),i)},connectedPeers(){return(0,o.Z)().get(`/flux/connectedpeers?timestamp=${Date.now()}`)},connectedPeersInfo(){return(0,o.Z)().get(`/flux/connectedpeersinfo?timestamp=${Date.now()}`)},incomingConnections(){return(0,o.Z)().get(`/flux/incomingconnections?timestamp=${Date.now()}`)},incomingConnectionsInfo(){return(0,o.Z)().get(`/flux/incomingconnectionsinfo?timestamp=${Date.now()}`)},addPeer(t,e){return(0,o.Z)().get(`/flux/addpeer/${e}`,{headers:{zelidauth:t}})},removePeer(t,e){return(0,o.Z)().get(`/flux/removepeer/${e}`,{headers:{zelidauth:t}})},removeIncomingPeer(t,e){return(0,o.Z)().get(`/flux/removeincomingpeer/${e}`,{headers:{zelidauth:t}})},adjustKadena(t,e,n){return(0,o.Z)().get(`/flux/adjustkadena/${e}/${n}`,{headers:{zelidauth:t}})},adjustRouterIP(t,e){return(0,o.Z)().get(`/flux/adjustrouterip/${e}`,{headers:{zelidauth:t}})},adjustBlockedPorts(t,e){const n={blockedPorts:e},i={headers:{zelidauth:t}};return(0,o.Z)().post("/flux/adjustblockedports",n,i)},adjustAPIPort(t,e){return(0,o.Z)().get(`/flux/adjustapiport/${e}`,{headers:{zelidauth:t}})},adjustBlockedRepositories(t,e){const n={blockedRepositories:e},i={headers:{zelidauth:t}};return(0,o.Z)().post("/flux/adjustblockedrepositories",n,i)},getKadenaAccount(){const t={headers:{"x-apicache-bypass":!0}};return(0,o.Z)().get("/flux/kadena",t)},getRouterIP(){const t={headers:{"x-apicache-bypass":!0}};return(0,o.Z)().get("/flux/routerip",t)},getBlockedPorts(){const t={headers:{"x-apicache-bypass":!0}};return(0,o.Z)().get("/flux/blockedports",t)},getAPIPort(){const t={headers:{"x-apicache-bypass":!0}};return(0,o.Z)().get("/flux/apiport",t)},getBlockedRepositories(){const t={headers:{"x-apicache-bypass":!0}};return(0,o.Z)().get("/flux/blockedrepositories",t)},getMarketPlaceURL(){return(0,o.Z)().get("/flux/marketplaceurl")},getZelid(){const t={headers:{"x-apicache-bypass":!0}};return(0,o.Z)().get("/flux/zelid",t)},getStaticIpInfo(){return(0,o.Z)().get("/flux/staticip")},restartFluxOS(t){const e={headers:{zelidauth:t,"x-apicache-bypass":!0}};return(0,o.Z)().get("/flux/restart",e)},tailFluxLog(t,e){return(0,o.Z)().get(`/flux/tail${t}log`,{headers:{zelidauth:e}})},justAPI(){return(0,o.Z)()},cancelToken(){return o.S}}}}]); \ No newline at end of file diff --git a/HomeUI/dist/js/3920.js b/HomeUI/dist/js/3920.js deleted file mode 100644 index 0ddf1c045..000000000 --- a/HomeUI/dist/js/3920.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(globalThis["webpackChunkflux"]=globalThis["webpackChunkflux"]||[]).push([[3920],{53920:(t,e,s)=>{s.d(e,{ZP:()=>Jt});var n={};s.r(n),s.d(n,{Decoder:()=>Ft,Encoder:()=>Ut,PacketType:()=>Dt,protocol:()=>jt});const i=Object.create(null);i["open"]="0",i["close"]="1",i["ping"]="2",i["pong"]="3",i["message"]="4",i["upgrade"]="5",i["noop"]="6";const r=Object.create(null);Object.keys(i).forEach((t=>{r[i[t]]=t}));const o={type:"error",data:"parser error"},a="function"===typeof Blob||"undefined"!==typeof Blob&&"[object BlobConstructor]"===Object.prototype.toString.call(Blob),h="function"===typeof ArrayBuffer,c=t=>"function"===typeof ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer instanceof ArrayBuffer,u=({type:t,data:e},s,n)=>a&&e instanceof Blob?s?n(e):p(e,n):h&&(e instanceof ArrayBuffer||c(e))?s?n(e):p(new Blob([e]),n):n(i[t]+(e||"")),p=(t,e)=>{const s=new FileReader;return s.onload=function(){const t=s.result.split(",")[1];e("b"+(t||""))},s.readAsDataURL(t)};function l(t){return t instanceof Uint8Array?t:t instanceof ArrayBuffer?new Uint8Array(t):new Uint8Array(t.buffer,t.byteOffset,t.byteLength)}let d;function f(t,e){return a&&t.data instanceof Blob?t.data.arrayBuffer().then(l).then(e):h&&(t.data instanceof ArrayBuffer||c(t.data))?e(l(t.data)):void u(t,!1,(t=>{d||(d=new TextEncoder),e(d.encode(t))}))}const y="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",g="undefined"===typeof Uint8Array?[]:new Uint8Array(256);for(let Qt=0;Qt{let e,s,n,i,r,o=.75*t.length,a=t.length,h=0;"="===t[t.length-1]&&(o--,"="===t[t.length-2]&&o--);const c=new ArrayBuffer(o),u=new Uint8Array(c);for(e=0;e>4,u[h++]=(15&n)<<4|i>>2,u[h++]=(3&i)<<6|63&r;return c},b="function"===typeof ArrayBuffer,w=(t,e)=>{if("string"!==typeof t)return{type:"message",data:k(t,e)};const s=t.charAt(0);if("b"===s)return{type:"message",data:v(t.substring(1),e)};const n=r[s];return n?t.length>1?{type:r[s],data:t.substring(1)}:{type:r[s]}:o},v=(t,e)=>{if(b){const s=m(t);return k(s,e)}return{base64:!0,data:t}},k=(t,e)=>{switch(e){case"blob":return t instanceof Blob?t:new Blob([t]);case"arraybuffer":default:return t instanceof ArrayBuffer?t:t.buffer}},_=String.fromCharCode(30),E=(t,e)=>{const s=t.length,n=new Array(s);let i=0;t.forEach(((t,r)=>{u(t,!1,(t=>{n[r]=t,++i===s&&e(n.join(_))}))}))},A=(t,e)=>{const s=t.split(_),n=[];for(let i=0;i{const n=s.length;let i;if(n<126)i=new Uint8Array(1),new DataView(i.buffer).setUint8(0,n);else if(n<65536){i=new Uint8Array(3);const t=new DataView(i.buffer);t.setUint8(0,126),t.setUint16(1,n)}else{i=new Uint8Array(9);const t=new DataView(i.buffer);t.setUint8(0,127),t.setBigUint64(1,BigInt(n))}t.data&&"string"!==typeof t.data&&(i[0]|=128),e.enqueue(i),e.enqueue(s)}))}})}let O;function R(t){return t.reduce(((t,e)=>t+e.length),0)}function C(t,e){if(t[0].length===e)return t.shift();const s=new Uint8Array(e);let n=0;for(let i=0;iMath.pow(2,21)-1){h.enqueue(o);break}i=r*Math.pow(2,32)+e.getUint32(4),n=3}else{if(R(s)t){h.enqueue(o);break}}}})}const N=4;function S(t){if(t)return x(t)}function x(t){for(var e in S.prototype)t[e]=S.prototype[e];return t}S.prototype.on=S.prototype.addEventListener=function(t,e){return this._callbacks=this._callbacks||{},(this._callbacks["$"+t]=this._callbacks["$"+t]||[]).push(e),this},S.prototype.once=function(t,e){function s(){this.off(t,s),e.apply(this,arguments)}return s.fn=e,this.on(t,s),this},S.prototype.off=S.prototype.removeListener=S.prototype.removeAllListeners=S.prototype.removeEventListener=function(t,e){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var s,n=this._callbacks["$"+t];if(!n)return this;if(1==arguments.length)return delete this._callbacks["$"+t],this;for(var i=0;i"undefined"!==typeof self?self:"undefined"!==typeof window?window:Function("return this")())();function q(t,...e){return e.reduce(((e,s)=>(t.hasOwnProperty(s)&&(e[s]=t[s]),e)),{})}const P=L.setTimeout,j=L.clearTimeout;function D(t,e){e.useNativeTimers?(t.setTimeoutFn=P.bind(L),t.clearTimeoutFn=j.bind(L)):(t.setTimeoutFn=L.setTimeout.bind(L),t.clearTimeoutFn=L.clearTimeout.bind(L))}const U=1.33;function I(t){return"string"===typeof t?F(t):Math.ceil((t.byteLength||t.size)*U)}function F(t){let e=0,s=0;for(let n=0,i=t.length;n=57344?s+=3:(n++,s+=4);return s}function M(t){let e="";for(let s in t)t.hasOwnProperty(s)&&(e.length&&(e+="&"),e+=encodeURIComponent(s)+"="+encodeURIComponent(t[s]));return e}function V(t){let e={},s=t.split("&");for(let n=0,i=s.length;n0);return e}function G(){const t=X(+new Date);return t!==J?($=0,J=t):t+"."+X($++)}for(;Q{this.readyState="paused",t()};if(this.polling||!this.writable){let t=0;this.polling&&(t++,this.once("pollComplete",(function(){--t||e()}))),this.writable||(t++,this.once("drain",(function(){--t||e()})))}else e()}poll(){this.polling=!0,this.doPoll(),this.emitReserved("poll")}onData(t){const e=t=>{if("opening"===this.readyState&&"open"===t.type&&this.onOpen(),"close"===t.type)return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(t)};A(t,this.socket.binaryType).forEach(e),"closed"!==this.readyState&&(this.polling=!1,this.emitReserved("pollComplete"),"open"===this.readyState&&this.poll())}doClose(){const t=()=>{this.write([{type:"close"}])};"open"===this.readyState?t():this.once("open",t)}write(t){this.writable=!1,E(t,(t=>{this.doWrite(t,(()=>{this.writable=!0,this.emitReserved("drain")}))}))}uri(){const t=this.opts.secure?"https":"http",e=this.query||{};return!1!==this.opts.timestampRequests&&(e[this.opts.timestampParam]=G()),this.supportsBinary||e.sid||(e.b64=1),this.createUri(t,e)}request(t={}){return Object.assign(t,{xd:this.xd,cookieJar:this.cookieJar},this.opts),new ot(this.uri(),t)}doWrite(t,e){const s=this.request({method:"POST",data:t});s.on("success",e),s.on("error",((t,e)=>{this.onError("xhr post error",t,e)}))}doPoll(){const t=this.request();t.on("data",this.onData.bind(this)),t.on("error",((t,e)=>{this.onError("xhr poll error",t,e)})),this.pollXhr=t}}class ot extends S{constructor(t,e){super(),D(this,e),this.opts=e,this.method=e.method||"GET",this.uri=t,this.data=void 0!==e.data?e.data:null,this.create()}create(){var t;const e=q(this.opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");e.xdomain=!!this.opts.xd;const s=this.xhr=new et(e);try{s.open(this.method,this.uri,!0);try{if(this.opts.extraHeaders){s.setDisableHeaderCheck&&s.setDisableHeaderCheck(!0);for(let t in this.opts.extraHeaders)this.opts.extraHeaders.hasOwnProperty(t)&&s.setRequestHeader(t,this.opts.extraHeaders[t])}}catch(n){}if("POST"===this.method)try{s.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch(n){}try{s.setRequestHeader("Accept","*/*")}catch(n){}null===(t=this.opts.cookieJar)||void 0===t||t.addCookies(s),"withCredentials"in s&&(s.withCredentials=this.opts.withCredentials),this.opts.requestTimeout&&(s.timeout=this.opts.requestTimeout),s.onreadystatechange=()=>{var t;3===s.readyState&&(null===(t=this.opts.cookieJar)||void 0===t||t.parseCookies(s)),4===s.readyState&&(200===s.status||1223===s.status?this.onLoad():this.setTimeoutFn((()=>{this.onError("number"===typeof s.status?s.status:0)}),0))},s.send(this.data)}catch(n){return void this.setTimeoutFn((()=>{this.onError(n)}),0)}"undefined"!==typeof document&&(this.index=ot.requestsCount++,ot.requests[this.index]=this)}onError(t){this.emitReserved("error",t,this.xhr),this.cleanup(!0)}cleanup(t){if("undefined"!==typeof this.xhr&&null!==this.xhr){if(this.xhr.onreadystatechange=nt,t)try{this.xhr.abort()}catch(e){}"undefined"!==typeof document&&delete ot.requests[this.index],this.xhr=null}}onLoad(){const t=this.xhr.responseText;null!==t&&(this.emitReserved("data",t),this.emitReserved("success"),this.cleanup())}abort(){this.cleanup()}}if(ot.requestsCount=0,ot.requests={},"undefined"!==typeof document)if("function"===typeof attachEvent)attachEvent("onunload",at);else if("function"===typeof addEventListener){const t="onpagehide"in L?"pagehide":"unload";addEventListener(t,at,!1)}function at(){for(let t in ot.requests)ot.requests.hasOwnProperty(t)&&ot.requests[t].abort()}const ht=(()=>{const t="function"===typeof Promise&&"function"===typeof Promise.resolve;return t?t=>Promise.resolve().then(t):(t,e)=>e(t,0)})(),ct=L.WebSocket||L.MozWebSocket,ut=!0,pt="arraybuffer";var lt=s(48764)["lW"];const dt="undefined"!==typeof navigator&&"string"===typeof navigator.product&&"reactnative"===navigator.product.toLowerCase();class ft extends K{constructor(t){super(t),this.supportsBinary=!t.forceBase64}get name(){return"websocket"}doOpen(){if(!this.check())return;const t=this.uri(),e=this.opts.protocols,s=dt?{}:q(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(s.headers=this.opts.extraHeaders);try{this.ws=ut&&!dt?e?new ct(t,e):new ct(t):new ct(t,e,s)}catch($t){return this.emitReserved("error",$t)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=t=>this.onClose({description:"websocket connection closed",context:t}),this.ws.onmessage=t=>this.onData(t.data),this.ws.onerror=t=>this.onError("websocket error",t)}write(t){this.writable=!1;for(let e=0;e{const e={};if(!ut&&(s.options&&(e.compress=s.options.compress),this.opts.perMessageDeflate)){const s="string"===typeof t?lt.byteLength(t):t.length;s{this.writable=!0,this.emitReserved("drain")}),this.setTimeoutFn)}))}}doClose(){"undefined"!==typeof this.ws&&(this.ws.close(),this.ws=null)}uri(){const t=this.opts.secure?"wss":"ws",e=this.query||{};return this.opts.timestampRequests&&(e[this.opts.timestampParam]=G()),this.supportsBinary||(e.b64=1),this.createUri(t,e)}check(){return!!ct}}class yt extends K{get name(){return"webtransport"}doOpen(){"function"===typeof WebTransport&&(this.transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name]),this.transport.closed.then((()=>{this.onClose()})).catch((t=>{this.onError("webtransport error",t)})),this.transport.ready.then((()=>{this.transport.createBidirectionalStream().then((t=>{const e=B(Number.MAX_SAFE_INTEGER,this.socket.binaryType),s=t.readable.pipeThrough(e).getReader(),n=T();n.readable.pipeTo(t.writable),this.writer=n.writable.getWriter();const i=()=>{s.read().then((({done:t,value:e})=>{t||(this.onPacket(e),i())})).catch((t=>{}))};i();const r={type:"open"};this.query.sid&&(r.data=`{"sid":"${this.query.sid}"}`),this.writer.write(r).then((()=>this.onOpen()))}))})))}write(t){this.writable=!1;for(let e=0;e{n&&ht((()=>{this.writable=!0,this.emitReserved("drain")}),this.setTimeoutFn)}))}}doClose(){var t;null===(t=this.transport)||void 0===t||t.close()}}const gt={websocket:ft,webtransport:yt,polling:rt},mt=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,bt=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function wt(t){if(t.length>2e3)throw"URI too long";const e=t,s=t.indexOf("["),n=t.indexOf("]");-1!=s&&-1!=n&&(t=t.substring(0,s)+t.substring(s,n).replace(/:/g,";")+t.substring(n,t.length));let i=mt.exec(t||""),r={},o=14;while(o--)r[bt[o]]=i[o]||"";return-1!=s&&-1!=n&&(r.source=e,r.host=r.host.substring(1,r.host.length-1).replace(/;/g,":"),r.authority=r.authority.replace("[","").replace("]","").replace(/;/g,":"),r.ipv6uri=!0),r.pathNames=vt(r,r["path"]),r.queryKey=kt(r,r["query"]),r}function vt(t,e){const s=/\/{2,9}/g,n=e.replace(s,"/").split("/");return"/"!=e.slice(0,1)&&0!==e.length||n.splice(0,1),"/"==e.slice(-1)&&n.splice(n.length-1,1),n}function kt(t,e){const s={};return e.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,(function(t,e,n){e&&(s[e]=n)})),s}class _t extends S{constructor(t,e={}){super(),this.binaryType=pt,this.writeBuffer=[],t&&"object"===typeof t&&(e=t,t=null),t?(t=wt(t),e.hostname=t.host,e.secure="https"===t.protocol||"wss"===t.protocol,e.port=t.port,t.query&&(e.query=t.query)):e.host&&(e.hostname=wt(e.host).host),D(this,e),this.secure=null!=e.secure?e.secure:"undefined"!==typeof location&&"https:"===location.protocol,e.hostname&&!e.port&&(e.port=this.secure?"443":"80"),this.hostname=e.hostname||("undefined"!==typeof location?location.hostname:"localhost"),this.port=e.port||("undefined"!==typeof location&&location.port?location.port:this.secure?"443":"80"),this.transports=e.transports||["polling","websocket","webtransport"],this.writeBuffer=[],this.prevBufferLen=0,this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},e),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),"string"===typeof this.opts.query&&(this.opts.query=V(this.opts.query)),this.id=null,this.upgrades=null,this.pingInterval=null,this.pingTimeout=null,this.pingTimeoutTimer=null,"function"===typeof addEventListener&&(this.opts.closeOnBeforeunload&&(this.beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this.beforeunloadEventListener,!1)),"localhost"!==this.hostname&&(this.offlineEventListener=()=>{this.onClose("transport close",{description:"network connection lost"})},addEventListener("offline",this.offlineEventListener,!1))),this.open()}createTransport(t){const e=Object.assign({},this.opts.query);e.EIO=N,e.transport=t,this.id&&(e.sid=this.id);const s=Object.assign({},this.opts,{query:e,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[t]);return new gt[t](s)}open(){let t;if(this.opts.rememberUpgrade&&_t.priorWebsocketSuccess&&-1!==this.transports.indexOf("websocket"))t="websocket";else{if(0===this.transports.length)return void this.setTimeoutFn((()=>{this.emitReserved("error","No transports available")}),0);t=this.transports[0]}this.readyState="opening";try{t=this.createTransport(t)}catch(e){return this.transports.shift(),void this.open()}t.open(),this.setTransport(t)}setTransport(t){this.transport&&this.transport.removeAllListeners(),this.transport=t,t.on("drain",this.onDrain.bind(this)).on("packet",this.onPacket.bind(this)).on("error",this.onError.bind(this)).on("close",(t=>this.onClose("transport close",t)))}probe(t){let e=this.createTransport(t),s=!1;_t.priorWebsocketSuccess=!1;const n=()=>{s||(e.send([{type:"ping",data:"probe"}]),e.once("packet",(t=>{if(!s)if("pong"===t.type&&"probe"===t.data){if(this.upgrading=!0,this.emitReserved("upgrading",e),!e)return;_t.priorWebsocketSuccess="websocket"===e.name,this.transport.pause((()=>{s||"closed"!==this.readyState&&(c(),this.setTransport(e),e.send([{type:"upgrade"}]),this.emitReserved("upgrade",e),e=null,this.upgrading=!1,this.flush())}))}else{const t=new Error("probe error");t.transport=e.name,this.emitReserved("upgradeError",t)}})))};function i(){s||(s=!0,c(),e.close(),e=null)}const r=t=>{const s=new Error("probe error: "+t);s.transport=e.name,i(),this.emitReserved("upgradeError",s)};function o(){r("transport closed")}function a(){r("socket closed")}function h(t){e&&t.name!==e.name&&i()}const c=()=>{e.removeListener("open",n),e.removeListener("error",r),e.removeListener("close",o),this.off("close",a),this.off("upgrading",h)};e.once("open",n),e.once("error",r),e.once("close",o),this.once("close",a),this.once("upgrading",h),-1!==this.upgrades.indexOf("webtransport")&&"webtransport"!==t?this.setTimeoutFn((()=>{s||e.open()}),200):e.open()}onOpen(){if(this.readyState="open",_t.priorWebsocketSuccess="websocket"===this.transport.name,this.emitReserved("open"),this.flush(),"open"===this.readyState&&this.opts.upgrade){let t=0;const e=this.upgrades.length;for(;t{this.onClose("ping timeout")}),this.pingInterval+this.pingTimeout),this.opts.autoUnref&&this.pingTimeoutTimer.unref()}onDrain(){this.writeBuffer.splice(0,this.prevBufferLen),this.prevBufferLen=0,0===this.writeBuffer.length?this.emitReserved("drain"):this.flush()}flush(){if("closed"!==this.readyState&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){const t=this.getWritablePackets();this.transport.send(t),this.prevBufferLen=t.length,this.emitReserved("flush")}}getWritablePackets(){const t=this.maxPayload&&"polling"===this.transport.name&&this.writeBuffer.length>1;if(!t)return this.writeBuffer;let e=1;for(let s=0;s0&&e>this.maxPayload)return this.writeBuffer.slice(0,s);e+=2}return this.writeBuffer}write(t,e,s){return this.sendPacket("message",t,e,s),this}send(t,e,s){return this.sendPacket("message",t,e,s),this}sendPacket(t,e,s,n){if("function"===typeof e&&(n=e,e=void 0),"function"===typeof s&&(n=s,s=null),"closing"===this.readyState||"closed"===this.readyState)return;s=s||{},s.compress=!1!==s.compress;const i={type:t,data:e,options:s};this.emitReserved("packetCreate",i),this.writeBuffer.push(i),n&&this.once("flush",n),this.flush()}close(){const t=()=>{this.onClose("forced close"),this.transport.close()},e=()=>{this.off("upgrade",e),this.off("upgradeError",e),t()},s=()=>{this.once("upgrade",e),this.once("upgradeError",e)};return"opening"!==this.readyState&&"open"!==this.readyState||(this.readyState="closing",this.writeBuffer.length?this.once("drain",(()=>{this.upgrading?s():t()})):this.upgrading?s():t()),this}onError(t){_t.priorWebsocketSuccess=!1,this.emitReserved("error",t),this.onClose("transport error",t)}onClose(t,e){"opening"!==this.readyState&&"open"!==this.readyState&&"closing"!==this.readyState||(this.clearTimeoutFn(this.pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),"function"===typeof removeEventListener&&(removeEventListener("beforeunload",this.beforeunloadEventListener,!1),removeEventListener("offline",this.offlineEventListener,!1)),this.readyState="closed",this.id=null,this.emitReserved("close",t,e),this.writeBuffer=[],this.prevBufferLen=0)}filterUpgrades(t){const e=[];let s=0;const n=t.length;for(;s"function"===typeof ArrayBuffer.isView?ArrayBuffer.isView(t):t.buffer instanceof ArrayBuffer,Ot=Object.prototype.toString,Rt="function"===typeof Blob||"undefined"!==typeof Blob&&"[object BlobConstructor]"===Ot.call(Blob),Ct="function"===typeof File||"undefined"!==typeof File&&"[object FileConstructor]"===Ot.call(File);function Bt(t){return At&&(t instanceof ArrayBuffer||Tt(t))||Rt&&t instanceof Blob||Ct&&t instanceof File}function Nt(t,e){if(!t||"object"!==typeof t)return!1;if(Array.isArray(t)){for(let e=0,s=t.length;e=0&&t.num{delete this.acks[t];for(let e=0;e{this.io.clearTimeoutFn(i),e.apply(this,[null,...t])}}emitWithAck(t,...e){const s=void 0!==this.flags.timeout||void 0!==this._opts.ackTimeout;return new Promise(((n,i)=>{e.push(((t,e)=>s?t?i(t):n(e):n(t))),this.emit(t,...e)}))}_addToQueue(t){let e;"function"===typeof t[t.length-1]&&(e=t.pop());const s={id:this._queueSeq++,tryCount:0,pending:!1,args:t,flags:Object.assign({fromQueue:!0},this.flags)};t.push(((t,...n)=>{if(s!==this._queue[0])return;const i=null!==t;return i?s.tryCount>this._opts.retries&&(this._queue.shift(),e&&e(t)):(this._queue.shift(),e&&e(null,...n)),s.pending=!1,this._drainQueue()})),this._queue.push(s),this._drainQueue()}_drainQueue(t=!1){if(!this.connected||0===this._queue.length)return;const e=this._queue[0];e.pending&&!t||(e.pending=!0,e.tryCount++,this.flags=e.flags,this.emit.apply(this,e.args))}packet(t){t.nsp=this.nsp,this.io._packet(t)}onopen(){"function"==typeof this.auth?this.auth((t=>{this._sendConnectPacket(t)})):this._sendConnectPacket(this.auth)}_sendConnectPacket(t){this.packet({type:Dt.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},t):t})}onerror(t){this.connected||this.emitReserved("connect_error",t)}onclose(t,e){this.connected=!1,delete this.id,this.emitReserved("disconnect",t,e)}onpacket(t){const e=t.nsp===this.nsp;if(e)switch(t.type){case Dt.CONNECT:t.data&&t.data.sid?this.onconnect(t.data.sid,t.data.pid):this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case Dt.EVENT:case Dt.BINARY_EVENT:this.onevent(t);break;case Dt.ACK:case Dt.BINARY_ACK:this.onack(t);break;case Dt.DISCONNECT:this.ondisconnect();break;case Dt.CONNECT_ERROR:this.destroy();const e=new Error(t.data.message);e.data=t.data.data,this.emitReserved("connect_error",e);break}}onevent(t){const e=t.data||[];null!=t.id&&e.push(this.ack(t.id)),this.connected?this.emitEvent(e):this.receiveBuffer.push(Object.freeze(e))}emitEvent(t){if(this._anyListeners&&this._anyListeners.length){const e=this._anyListeners.slice();for(const s of e)s.apply(this,t)}super.emit.apply(this,t),this._pid&&t.length&&"string"===typeof t[t.length-1]&&(this._lastOffset=t[t.length-1])}ack(t){const e=this;let s=!1;return function(...n){s||(s=!0,e.packet({type:Dt.ACK,id:t,data:n}))}}onack(t){const e=this.acks[t.id];"function"===typeof e&&(e.apply(this,t.data),delete this.acks[t.id])}onconnect(t,e){this.id=t,this.recovered=e&&this._pid===e,this._pid=e,this.connected=!0,this.emitBuffered(),this.emitReserved("connect"),this._drainQueue(!0)}emitBuffered(){this.receiveBuffer.forEach((t=>this.emitEvent(t))),this.receiveBuffer=[],this.sendBuffer.forEach((t=>{this.notifyOutgoingListeners(t),this.packet(t)})),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach((t=>t())),this.subs=void 0),this.io["_destroy"](this)}disconnect(){return this.connected&&this.packet({type:Dt.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(t){return this.flags.compress=t,this}get volatile(){return this.flags.volatile=!0,this}timeout(t){return this.flags.timeout=t,this}onAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(t),this}prependAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(t),this}offAny(t){if(!this._anyListeners)return this;if(t){const e=this._anyListeners;for(let s=0;s0&&t.jitter<=1?t.jitter:0,this.attempts=0}Wt.prototype.duration=function(){var t=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var e=Math.random(),s=Math.floor(e*this.jitter*t);t=0==(1&Math.floor(10*e))?t-s:t+s}return 0|Math.min(t,this.max)},Wt.prototype.reset=function(){this.attempts=0},Wt.prototype.setMin=function(t){this.ms=t},Wt.prototype.setMax=function(t){this.max=t},Wt.prototype.setJitter=function(t){this.jitter=t};class Yt extends S{constructor(t,e){var s;super(),this.nsps={},this.subs=[],t&&"object"===typeof t&&(e=t,t=void 0),e=e||{},e.path=e.path||"/socket.io",this.opts=e,D(this,e),this.reconnection(!1!==e.reconnection),this.reconnectionAttempts(e.reconnectionAttempts||1/0),this.reconnectionDelay(e.reconnectionDelay||1e3),this.reconnectionDelayMax(e.reconnectionDelayMax||5e3),this.randomizationFactor(null!==(s=e.randomizationFactor)&&void 0!==s?s:.5),this.backoff=new Wt({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(null==e.timeout?2e4:e.timeout),this._readyState="closed",this.uri=t;const i=e.parser||n;this.encoder=new i.Encoder,this.decoder=new i.Decoder,this._autoConnect=!1!==e.autoConnect,this._autoConnect&&this.open()}reconnection(t){return arguments.length?(this._reconnection=!!t,this):this._reconnection}reconnectionAttempts(t){return void 0===t?this._reconnectionAttempts:(this._reconnectionAttempts=t,this)}reconnectionDelay(t){var e;return void 0===t?this._reconnectionDelay:(this._reconnectionDelay=t,null===(e=this.backoff)||void 0===e||e.setMin(t),this)}randomizationFactor(t){var e;return void 0===t?this._randomizationFactor:(this._randomizationFactor=t,null===(e=this.backoff)||void 0===e||e.setJitter(t),this)}reconnectionDelayMax(t){var e;return void 0===t?this._reconnectionDelayMax:(this._reconnectionDelayMax=t,null===(e=this.backoff)||void 0===e||e.setMax(t),this)}timeout(t){return arguments.length?(this._timeout=t,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&0===this.backoff.attempts&&this.reconnect()}open(t){if(~this._readyState.indexOf("open"))return this;this.engine=new _t(this.uri,this.opts);const e=this.engine,s=this;this._readyState="opening",this.skipReconnect=!1;const n=Vt(e,"open",(function(){s.onopen(),t&&t()})),i=e=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",e),t?t(e):this.maybeReconnectOnOpen()},r=Vt(e,"error",i);if(!1!==this._timeout){const t=this._timeout,s=this.setTimeoutFn((()=>{n(),i(new Error("timeout")),e.close()}),t);this.opts.autoUnref&&s.unref(),this.subs.push((()=>{this.clearTimeoutFn(s)}))}return this.subs.push(n),this.subs.push(r),this}connect(t){return this.open(t)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const t=this.engine;this.subs.push(Vt(t,"ping",this.onping.bind(this)),Vt(t,"data",this.ondata.bind(this)),Vt(t,"error",this.onerror.bind(this)),Vt(t,"close",this.onclose.bind(this)),Vt(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(t){try{this.decoder.add(t)}catch(e){this.onclose("parse error",e)}}ondecoded(t){ht((()=>{this.emitReserved("packet",t)}),this.setTimeoutFn)}onerror(t){this.emitReserved("error",t)}socket(t,e){let s=this.nsps[t];return s?this._autoConnect&&!s.active&&s.connect():(s=new Kt(this,t,e),this.nsps[t]=s),s}_destroy(t){const e=Object.keys(this.nsps);for(const s of e){const t=this.nsps[s];if(t.active)return}this._close()}_packet(t){const e=this.encoder.encode(t);for(let s=0;st())),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close"),this.engine&&this.engine.close()}disconnect(){return this._close()}onclose(t,e){this.cleanup(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",t,e),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const t=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const e=this.backoff.duration();this._reconnecting=!0;const s=this.setTimeoutFn((()=>{t.skipReconnect||(this.emitReserved("reconnect_attempt",t.backoff.attempts),t.skipReconnect||t.open((e=>{e?(t._reconnecting=!1,t.reconnect(),this.emitReserved("reconnect_error",e)):t.onreconnect()})))}),e);this.opts.autoUnref&&s.unref(),this.subs.push((()=>{this.clearTimeoutFn(s)}))}}onreconnect(){const t=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",t)}}const zt={};function Jt(t,e){"object"===typeof t&&(e=t,t=void 0),e=e||{};const s=Et(t,e.path||"/socket.io"),n=s.source,i=s.id,r=s.path,o=zt[i]&&r in zt[i]["nsps"],a=e.forceNew||e["force new connection"]||!1===e.multiplex||o;let h;return a?h=new Yt(n,e):(zt[i]||(zt[i]=new Yt(n,e)),h=zt[i]),s.query&&!e.query&&(e.query=s.queryKey),h.socket(s.path,e)}Object.assign(Jt,{Manager:Yt,Socket:Kt,io:Jt,connect:Jt})}}]); \ No newline at end of file diff --git a/HomeUI/dist/js/4031.js b/HomeUI/dist/js/4031.js new file mode 100644 index 000000000..aa64988c8 --- /dev/null +++ b/HomeUI/dist/js/4031.js @@ -0,0 +1,86 @@ +(self["webpackChunkflux"]=self["webpackChunkflux"]||[]).push([[4031],{18119:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>H});var n=function(){var e=this,t=e._self._c;return t("div",[t("b-card",{attrs:{title:"Welcome to Flux - The biggest decentralized computational network"}},[t("list-entry",{attrs:{title:"Dashboard",data:e.dashboard}}),t("list-entry",{attrs:{title:"Applications",data:e.applications}}),t("list-entry",{attrs:{title:"XDAO",data:e.xdao}}),t("list-entry",{attrs:{title:"Administration",data:e.administration}}),t("list-entry",{attrs:{title:"Node Status",data:e.getNodeStatusResponse.nodeStatus,variant:e.getNodeStatusResponse.class}})],1),"none"===e.privilege?t("b-card",[t("b-card-title",[e._v("Automated Login")]),t("dl",{staticClass:"row"},[t("dd",{staticClass:"col-sm-6"},[t("b-tabs",{attrs:{"content-class":"mt-0"}},[t("b-tab",{attrs:{title:"3rd Party Login",active:""}},[t("div",{staticClass:"ssoLogin"},[t("div",{attrs:{id:"ssoLoading"}},[t("b-spinner",{attrs:{variant:"primary"}}),t("div",[e._v(" Loading Sign In Options ")])],1),t("div",{staticStyle:{display:"none"},attrs:{id:"ssoLoggedIn"}},[t("b-spinner",{attrs:{variant:"primary"}}),t("div",[e._v(" Finishing Login Process ")])],1),t("div",{staticStyle:{display:"none"},attrs:{id:"ssoVerify"}},[t("b-button",{staticClass:"mb-2",attrs:{variant:"primary",type:"submit"},on:{click:e.cancelVerification}},[e._v(" Cancel Verification ")]),t("div",[t("b-spinner",{attrs:{variant:"primary"}}),t("div",[e._v(" Finishing Verification Process ")]),t("div",[t("i",[e._v("Please check email for verification link.")])])],1)],1),t("div",{attrs:{id:"firebaseui-auth-container"}})])]),t("b-tab",{attrs:{title:"Email/Password"}},[t("dl",{staticClass:"row"},[t("dd",{staticClass:"col-sm-12 mt-1"},[t("b-form",{ref:"emailLoginForm",staticClass:"mx-5",attrs:{id:"emailLoginForm"},on:{submit:function(e){e.preventDefault()}}},[t("b-row",[t("b-col",{attrs:{cols:"12"}},[t("b-form-group",{attrs:{label:"Email","label-for":"h-email","label-cols-md":"4"}},[t("b-form-input",{attrs:{id:"h-email",type:"email",placeholder:"Email...",required:""},model:{value:e.emailForm.email,callback:function(t){e.$set(e.emailForm,"email",t)},expression:"emailForm.email"}})],1)],1),t("b-col",{attrs:{cols:"12"}},[t("b-form-group",{attrs:{label:"Password","label-for":"h-password","label-cols-md":"4"}},[t("b-form-input",{attrs:{id:"h-password",type:"password",placeholder:"Password...",required:""},model:{value:e.emailForm.password,callback:function(t){e.$set(e.emailForm,"password",t)},expression:"emailForm.password"}})],1)],1),t("b-col",{attrs:{cols:"12"}},[t("b-form-group",{attrs:{"label-cols-md":"4"}},[t("b-button",{staticClass:"w-100",attrs:{type:"submit",variant:"primary"},on:{click:e.emailLogin}},[t("div",{staticStyle:{display:"none"},attrs:{id:"emailLoginProcessing"}},[t("b-spinner",{attrs:{variant:"secondary",small:""}})],1),t("div",{attrs:{id:"emailLoginExecute"}},[e._v(" Login ")])])],1)],1),t("b-col",{attrs:{cols:"12"}},[t("b-form-group",{attrs:{"label-cols-md":"4"}},[t("b-button",{directives:[{name:"b-modal",rawName:"v-b-modal.modal-prevent-closing",modifiers:{"modal-prevent-closing":!0}}],staticClass:"w-100",attrs:{id:"signUpButton",type:"submit",variant:"secondary"},on:{click:e.createAccount}},[e._v(" Sign Up ")])],1)],1)],1)],1),t("div",{staticClass:"text-center",staticStyle:{display:"none"},attrs:{id:"ssoEmailVerify"}},[t("b-button",{staticClass:"mb-2",attrs:{variant:"primary",type:"submit"},on:{click:e.cancelVerification}},[e._v(" Cancel Verification ")]),t("div",[t("b-spinner",{attrs:{variant:"primary"}}),t("div",[e._v(" Finishing Verification Process ")]),t("div",[t("i",[e._v("Please check email for verification link.")])])],1)],1)],1)])])],1)],1),t("dd",{staticClass:"col-sm-6"},[t("b-card-text",{staticClass:"text-center loginText"},[e._v(" Decentralized Login ")]),t("div",{staticClass:"loginRow"},[t("a",{attrs:{href:`zel:?action=sign&message=${e.loginPhrase}&icon=https%3A%2F%2Fraw.githubusercontent.com%2Frunonflux%2Fflux%2Fmaster%2FzelID.svg&callback=${e.callbackValue}`,title:"Login with Zelcore"},on:{click:e.initiateLoginWS}},[t("img",{staticClass:"walletIcon",attrs:{src:i(96358),alt:"Flux ID",height:"100%",width:"100%"}})]),t("a",{attrs:{title:"Login with SSP"},on:{click:e.initSSP}},[t("img",{staticClass:"walletIcon",attrs:{src:"dark"===e.skin?i(56070):i(58962),alt:"SSP",height:"100%",width:"100%"}})])]),t("div",{staticClass:"loginRow"},[t("a",{attrs:{title:"Login with WalletConnect"},on:{click:e.initWalletConnect}},[t("img",{staticClass:"walletIcon",attrs:{src:i(47622),alt:"WalletConnect",height:"100%",width:"100%"}})]),t("a",{attrs:{title:"Login with Metamask"},on:{click:e.initMetamask}},[t("img",{staticClass:"walletIcon",attrs:{src:i(28125),alt:"Metamask",height:"100%",width:"100%"}})])])],1)])],1):e._e(),"none"===e.privilege?t("b-card",[t("b-card-title",[e._v("Manual Login")]),t("dl",{staticClass:"row"},[t("dd",{staticClass:"col-sm-12"},[t("b-card-text",{staticClass:"text-center"},[e._v(" Sign the following message with any Flux ID / SSP Wallet ID / Bitcoin / Ethereum address ")]),t("br"),t("br"),t("b-form",{staticClass:"mx-5",on:{submit:function(e){e.preventDefault()}}},[t("b-row",[t("b-col",{attrs:{cols:"12"}},[t("b-form-group",{attrs:{label:"Message","label-for":"h-message","label-cols-md":"3"}},[t("b-form-input",{attrs:{id:"h-message",placeholder:"Insert Login Phrase"},model:{value:e.loginForm.loginPhrase,callback:function(t){e.$set(e.loginForm,"loginPhrase",t)},expression:"loginForm.loginPhrase"}})],1)],1),t("b-col",{attrs:{cols:"12"}},[t("b-form-group",{attrs:{label:"Address","label-for":"h-address","label-cols-md":"3"}},[t("b-form-input",{attrs:{id:"h-address",placeholder:"Insert Flux ID or Bitcoin address"},model:{value:e.loginForm.zelid,callback:function(t){e.$set(e.loginForm,"zelid",t)},expression:"loginForm.zelid"}})],1)],1),t("b-col",{attrs:{cols:"12"}},[t("b-form-group",{attrs:{label:"Signature","label-for":"h-signature","label-cols-md":"3"}},[t("b-form-input",{attrs:{id:"h-signature",placeholder:"Insert Signature"},model:{value:e.loginForm.signature,callback:function(t){e.$set(e.loginForm,"signature",t)},expression:"loginForm.signature"}})],1)],1),t("b-col",{attrs:{cols:"12"}},[t("b-form-group",{attrs:{"label-cols-md":"3"}},[t("b-button",{staticClass:"w-100",attrs:{type:"submit",variant:"primary"},on:{click:e.login}},[e._v(" Login ")])],1)],1)],1)],1)],1)])],1):e._e(),t("b-modal",{ref:"modal",attrs:{id:"modal-prevent-closing",title:"Create Flux SSO Account","header-bg-variant":"primary","title-class":"modal-title"},on:{show:e.resetModal,hidden:e.resetModal,ok:e.handleOk}},[t("form",{ref:"form",on:{submit:function(t){return t.stopPropagation(),t.preventDefault(),e.handleSubmit.apply(null,arguments)}}},[t("b-form-group",{attrs:{label:"Email","label-for":"email-input","invalid-feedback":"Email is required",state:e.emailState}},[t("b-form-input",{attrs:{id:"email-input",type:"email",state:e.emailState,required:""},model:{value:e.createSSOForm.email,callback:function(t){e.$set(e.createSSOForm,"email",t)},expression:"createSSOForm.email"}})],1),t("b-form-group",{attrs:{label:"Password","label-for":"pw1-input","invalid-feedback":"Password is required",state:e.pw1State}},[t("b-form-input",{attrs:{id:"pw1-input",type:"password",state:e.pw1State,required:""},model:{value:e.createSSOForm.pw1,callback:function(t){e.$set(e.createSSOForm,"pw1",t)},expression:"createSSOForm.pw1"}})],1),t("b-form-group",{attrs:{label:"Confirm Password","label-for":"pw2-input","invalid-feedback":"Password is required",state:e.pw2State}},[t("b-form-input",{attrs:{id:"pw2-input",type:"password",state:e.pw2State,required:""},model:{value:e.createSSOForm.pw2,callback:function(t){e.$set(e.createSSOForm,"pw2",t)},expression:"createSSOForm.pw2"}})],1)],1),t("div",{staticClass:"sso-tos"},[t("p",{staticStyle:{width:"75%"}},[e._v(" By continuing, you are indicating that you accept our "),t("a",{staticClass:"highlight",attrs:{href:"https://cdn.runonflux.io/Flux_Terms_of_Service.pdf",referrerpolicy:"no-referrer",target:"_blank",rel:"noopener noreferrer"}},[e._v(" Terms of Service")]),e._v(" and "),t("a",{staticClass:"highlight",attrs:{href:"https://runonflux.io/privacyPolicy",referrerpolicy:"no-referrer",target:"_blank",rel:"noopener noreferrer"}},[e._v(" Privacy Policy")]),e._v(". ")])])])],1)},a=[],r=i(86855),s=i(64206),o=i(49379),l=i(15193),c=i(54909),u=i(50725),d=i(26253),h=i(22183),f=i(46709),p=i(20629),g=i(93767),m=i(62693),v=i(94145),b=i(44866),y=(i(52141),i(97211)),w=i.n(y);i(73544),i(74997),i(4210),i(95634),i(86573);(function(){(function(){var e,t,n="function"==typeof Object.create?Object.create:function(e){function t(){}return t.prototype=e,new t};if("function"==typeof Object.setPrototypeOf)t=Object.setPrototypeOf;else{var a;e:{var r={xb:!0},s={};try{s.__proto__=r,a=s.xb;break e}catch(Ef){}a=!1}t=a?function(e,t){if(e.__proto__=t,e.__proto__!==t)throw new TypeError(e+" is not extensible");return e}:null}var o=t;function l(e,t){if(e.prototype=n(t.prototype),e.prototype.constructor=e,o)o(e,t);else for(var i in t)if("prototype"!=i)if(Object.defineProperties){var a=Object.getOwnPropertyDescriptor(t,i);a&&Object.defineProperty(e,i,a)}else e[i]=t[i];e.K=t.prototype}var c="function"==typeof Object.defineProperties?Object.defineProperty:function(e,t,i){e!=Array.prototype&&e!=Object.prototype&&(e[t]=i.value)},u="undefined"!=typeof window&&window===this?this:"undefined"!=typeof i.g&&null!=i.g?i.g:this;function d(e,t){if(t){var i=u;e=e.split(".");for(var n=0;nt&&(t=Math.max(t+n,0));t>>0),_=0;function A(e,t,i){return e.call.apply(e.bind,arguments)}function P(e,t,i){if(!e)throw Error();if(2=arguments.length?Array.prototype.slice.call(e,t):Array.prototype.slice.call(e,t,i)}var Q=String.prototype.trim?function(e){return e.trim()}:function(e){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(e)[1]},ee=/&/g,te=//g,ne=/"/g,ae=/'/g,re=/\x00/g,se=/[\x00&<>"']/;function oe(e,t){return et?1:0}function le(e){return se.test(e)&&(-1!=e.indexOf("&")&&(e=e.replace(ee,"&")),-1!=e.indexOf("<")&&(e=e.replace(te,"<")),-1!=e.indexOf(">")&&(e=e.replace(ie,">")),-1!=e.indexOf('"')&&(e=e.replace(ne,""")),-1!=e.indexOf("'")&&(e=e.replace(ae,"'")),-1!=e.indexOf("\0")&&(e=e.replace(re,"�"))),e}function ce(e,t,i){for(var n in e)t.call(i,e[n],n,e)}function ue(e){var t,i={};for(t in e)i[t]=e[t];return i}var de="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");function he(e,t){for(var i,n,a=1;a=e.length)throw fe;if(t in e)return e[t++];t++}},i}throw Error("Not implemented")}function me(e,t){if(I(e))try{B(e,t,void 0)}catch(i){if(i!==fe)throw i}else{e=ge(e);try{for(;;)t.call(void 0,e.next(),void 0,e)}catch(n){if(n!==fe)throw n}}}function ve(e){if(I(e))return J(e);e=ge(e);var t=[];return me(e,(function(e){t.push(e)})),t}function be(e,t){this.g={},this.a=[],this.j=this.h=0;var i=arguments.length;if(1=n.a.length)throw fe;var a=n.a[t++];return e?a:n.g[a]},a};var Se=/^(?:([^:/?#.]+):)?(?:\/\/(?:([^/?#]*)@)?([^/#?]*?)(?::([0-9]+))?(?=[/#?]|$))?([^?#]+)?(?:\?([^#]*))?(?:#([\s\S]*))?$/;function Ie(e,t){if(e){e=e.split("&");for(var i=0;in)return null;var a=e.indexOf("&",n);return(0>a||a>i)&&(a=i),n+=t.length+1,decodeURIComponent(e.substr(n,a-n).replace(/\+/g," "))}var _e=/[?&]($|#)/;function Ae(e,t){var i;this.h=this.A=this.j="",this.C=null,this.s=this.g="",this.i=!1,e instanceof Ae?(this.i=f(t)?t:e.i,Pe(this,e.j),this.A=e.A,this.h=e.h,xe(this,e.C),this.g=e.g,Re(this,Ke(e.a)),this.s=e.s):e&&(i=String(e).match(Se))?(this.i=!!t,Pe(this,i[1]||"",!0),this.A=Te(i[2]||""),this.h=Te(i[3]||"",!0),xe(this,i[4]),this.g=Te(i[5]||"",!0),Re(this,i[6]||"",!0),this.s=Te(i[7]||"")):(this.i=!!t,this.a=new Be(null,this.i))}function Pe(e,t,i){e.j=i?Te(t,!0):t,e.j&&(e.j=e.j.replace(/:$/,""))}function xe(e,t){if(t){if(t=Number(t),isNaN(t)||0>t)throw Error("Bad port number "+t);e.C=t}else e.C=null}function Re(e,t,i){t instanceof Be?(e.a=t,We(e.a,e.i)):(i||(t=Me(t,Ue)),e.a=new Be(t,e.i))}function Le(e){return e instanceof Ae?new Ae(e):new Ae(e,void 0)}function Te(e,t){return e?t?decodeURI(e.replace(/%25/g,"%2525")):decodeURIComponent(e):""}function Me(e,t,i){return p(e)?(e=encodeURI(e).replace(t,De),i&&(e=e.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),e):null}function De(e){return e=e.charCodeAt(0),"%"+(e>>4&15).toString(16)+(15&e).toString(16)}Ae.prototype.toString=function(){var e=[],t=this.j;t&&e.push(Me(t,Oe,!0),":");var i=this.h;return(i||"file"==t)&&(e.push("//"),(t=this.A)&&e.push(Me(t,Oe,!0),"@"),e.push(encodeURIComponent(String(i)).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),i=this.C,null!=i&&e.push(":",String(i))),(i=this.g)&&(this.h&&"/"!=i.charAt(0)&&e.push("/"),e.push(Me(i,"/"==i.charAt(0)?Fe:Ne,!0))),(i=this.a.toString())&&e.push("?",i),(i=this.s)&&e.push("#",Me(i,je)),e.join("")};var Oe=/[#\/\?@]/g,Ne=/[#\?:]/g,Fe=/[#\?]/g,Ue=/[#\?@]/g,je=/#/g;function Be(e,t){this.g=this.a=null,this.h=e||null,this.j=!!t}function Ve(e){e.a||(e.a=new be,e.g=0,e.h&&Ie(e.h,(function(t,i){e.add(decodeURIComponent(t.replace(/\+/g," ")),i)})))}function He(e,t){Ve(e),t=Ze(e,t),we(e.a.g,t)&&(e.h=null,e.g-=e.a.get(t).length,e=e.a,we(e.g,t)&&(delete e.g[t],e.h--,e.j++,e.a.length>2*e.h&&ye(e)))}function Ge(e,t){return Ve(e),t=Ze(e,t),we(e.a.g,t)}function Ke(e){var t=new Be;return t.h=e.h,e.a&&(t.a=new be(e.a),t.g=e.g),t}function Ze(e,t){return t=String(t),e.j&&(t=t.toLowerCase()),t}function We(e,t){t&&!e.j&&(Ve(e),e.h=null,e.a.forEach((function(e,t){var i=t.toLowerCase();t!=i&&(He(this,t),He(this,i),0parseFloat(mt)){st=String(bt);break e}}st=mt}var yt,wt={};function St(e){return rt(e,(function(){for(var t=0,i=Q(String(st)).split("."),n=Q(String(e)).split("."),a=Math.max(i.length,n.length),r=0;0==t&&r",0);var Gt=Ht("",0);Ht("
",0);var Kt=function(e){var t,i=!1;return function(){return i||(t=e(),i=!0),t}}((function(){if("undefined"===typeof document)return!1;var e=document.createElement("div"),t=document.createElement("div");return t.appendChild(document.createElement("div")),e.appendChild(t),!!e.firstChild&&(t=e.firstChild.firstChild,e.innerHTML=Bt(Gt),!t.parentElement)}));function Zt(e,t){e.src=At(t),null===m&&(t=h.document,m=(t=t.querySelector&&t.querySelector("script[nonce]"))&&(t=t.nonce||t.getAttribute("nonce"))&&g.test(t)?t:""),t=m,t&&e.setAttribute("nonce",t)}function Wt(e,t){t=t instanceof Rt?t:Dt(t),e.assign(Lt(t))}function zt(e,t){this.a=f(e)?e:0,this.g=f(t)?t:0}function Yt(e,t){this.width=e,this.height=t}function qt(e){return e?new oi(ni(e)):T||(T=new oi)}function $t(e,t){var i=t||document;return i.querySelectorAll&&i.querySelector?i.querySelectorAll("."+e):Xt(document,e,t)}function Jt(e,t){var i=t||document;if(i.getElementsByClassName)e=i.getElementsByClassName(e)[0];else{i=document;var n=t||i;e=n.querySelectorAll&&n.querySelector&&e?n.querySelector(e?"."+e:""):Xt(i,e,t)[0]||null}return e||null}function Xt(e,t,i){var n;if(e=i||e,e.querySelectorAll&&e.querySelector&&t)return e.querySelectorAll(t?"."+t:"");if(t&&e.getElementsByClassName){var a=e.getElementsByClassName(t);return a}if(a=e.getElementsByTagName("*"),t){var r={};for(i=n=0;e=a[i];i++){var s=e.className;"function"==typeof s.split&&Z(s.split(/\s+/),t)&&(r[n++]=e)}return r.length=n,r}return a}function Qt(e,t){ce(t,(function(t,i){t&&"object"==typeof t&&t.ma&&(t=t.ka()),"style"==i?e.style.cssText=t:"class"==i?e.className=t:"for"==i?e.htmlFor=t:ei.hasOwnProperty(i)?e.setAttribute(ei[i],t):0==i.lastIndexOf("aria-",0)||0==i.lastIndexOf("data-",0)?e.setAttribute(i,t):e[i]=t}))}zt.prototype.toString=function(){return"("+this.a+", "+this.g+")"},zt.prototype.ceil=function(){return this.a=Math.ceil(this.a),this.g=Math.ceil(this.g),this},zt.prototype.floor=function(){return this.a=Math.floor(this.a),this.g=Math.floor(this.g),this},zt.prototype.round=function(){return this.a=Math.round(this.a),this.g=Math.round(this.g),this},e=Yt.prototype,e.toString=function(){return"("+this.width+" x "+this.height+")"},e.aspectRatio=function(){return this.width/this.height},e.ceil=function(){return this.width=Math.ceil(this.width),this.height=Math.ceil(this.height),this},e.floor=function(){return this.width=Math.floor(this.width),this.height=Math.floor(this.height),this},e.round=function(){return this.width=Math.round(this.width),this.height=Math.round(this.height),this};var ei={cellpadding:"cellPadding",cellspacing:"cellSpacing",colspan:"colSpan",frameborder:"frameBorder",height:"height",maxlength:"maxLength",nonce:"nonce",role:"role",rowspan:"rowSpan",type:"type",usemap:"useMap",valign:"vAlign",width:"width"};function ti(e){return e.scrollingElement?e.scrollingElement:(ht||"CSS1Compat"!=e.compatMode)&&e.body||e.documentElement}function ii(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function ni(e){return 9==e.nodeType?e:e.ownerDocument||e.document}function ai(e,t){if("textContent"in e)e.textContent=t;else if(3==e.nodeType)e.data=String(t);else if(e.firstChild&&3==e.firstChild.nodeType){for(;e.lastChild!=e.firstChild;)e.removeChild(e.lastChild);e.firstChild.data=String(t)}else{for(var i;i=e.firstChild;)e.removeChild(i);e.appendChild(ni(e).createTextNode(String(t)))}}function ri(e,t){return t?si(e,(function(e){return!t||p(e.className)&&Z(e.className.split(/\s+/),t)})):null}function si(e,t){for(;e;){if(t(e))return e;e=e.parentNode}return null}function oi(e){this.a=e||h.document||document}oi.prototype.N=function(){return p(void 0)?this.a.getElementById(void 0):void 0};var li={Fc:!0},ci={Hc:!0},ui={Ec:!0},di={Gc:!0};function hi(){throw Error("Do not instantiate directly")}function fi(e,t,i,n){if(e=e(t||mi,void 0,i),n=(n||qt()).a.createElement("DIV"),e=pi(e),e.match(gi),e=Ht(e,null),Kt())for(;n.lastChild;)n.removeChild(n.lastChild);return n.innerHTML=Bt(e),1==n.childNodes.length&&(e=n.firstChild,1==e.nodeType&&(n=e)),n}function pi(e){if(!C(e))return le(String(e));if(e instanceof hi){if(e.fa===li)return e.content;if(e.fa===di)return le(e.content)}return U("Soy template output is unsafe for use as HTML: "+e),"zSoyz"}hi.prototype.va=null,hi.prototype.toString=function(){return this.content};var gi=/^<(body|caption|col|colgroup|head|html|tr|td|th|tbody|thead|tfoot)>/i,mi={};function vi(e){if(null!=e)switch(e.va){case 1:return 1;case-1:return-1;case 0:return 0}return null}function bi(){hi.call(this)}function yi(e){return null!=e&&e.fa===li?e:e instanceof jt?Ei(Bt(e).toString(),e.g()):Ei(le(String(String(e))),vi(e))}function wi(){hi.call(this)}function Si(e,t){this.content=String(e),this.va=null!=t?t:null}function Ii(e){return new Si(e,void 0)}O(bi,hi),bi.prototype.fa=li,O(wi,hi),wi.prototype.fa=ci,wi.prototype.va=1,O(Si,hi),Si.prototype.fa=di;var Ei=function(e){function t(e){this.content=e}return t.prototype=e.prototype,function(e,i){return e=new t(String(e)),void 0!==i&&(e.va=i),e}}(bi),Ci=function(e){function t(e){this.content=e}return t.prototype=e.prototype,function(e){return new t(String(e))}}(wi);function ki(e){function t(){}var i={label:_i("New password")};for(var n in t.prototype=e,e=new t,i)e[n]=i[n];return e}function _i(e){return(e=String(e))?new Si(e,void 0):""}var Ai=function(e){function t(e){this.content=e}return t.prototype=e.prototype,function(e,i){return e=String(e),e?(e=new t(e),void 0!==i&&(e.va=i),e):""}}(bi);function Pi(e){return null!=e&&e.fa===li?String(String(e.content).replace(ji,"").replace(Bi,"<")).replace(Oi,Ti):le(String(e))}function xi(e){return null!=e&&e.fa===ci?e=String(e).replace(Ni,Di):e instanceof Rt?e=String(Lt(e).toString()).replace(Ni,Di):(e=String(e),Ui.test(e)?e=e.replace(Ni,Di):(U("Bad value `%s` for |filterNormalizeUri",[e]),e="#zSoyz")),e}function Ri(e){return null!=e&&e.fa===ui?e=e.content:null==e?e="":e instanceof Ft?e instanceof Ft&&e.constructor===Ft&&e.g===Ut?e=e.a:(U("expected object of type SafeStyle, got '"+e+"' of type "+w(e)),e="type_error:SafeStyle"):(e=String(e),Fi.test(e)||(U("Bad value `%s` for |filterCssValue",[e]),e="zSoyz")),e}var Li={"\0":"�","\t":" ","\n":" ","\v":" ","\f":" ","\r":" "," ":" ",'"':""","&":"&","'":"'","-":"-","/":"/","<":"<","=":"=",">":">","`":"`","…":"…"," ":" ","\u2028":"
","\u2029":"
"};function Ti(e){return Li[e]}var Mi={"\0":"%00","":"%01","":"%02","":"%03","":"%04","":"%05","":"%06","":"%07","\b":"%08","\t":"%09","\n":"%0A","\v":"%0B","\f":"%0C","\r":"%0D","":"%0E","":"%0F","":"%10","":"%11","":"%12","":"%13","":"%14","":"%15","":"%16","":"%17","":"%18","":"%19","":"%1A","":"%1B","":"%1C","":"%1D","":"%1E","":"%1F"," ":"%20",'"':"%22","'":"%27","(":"%28",")":"%29","<":"%3C",">":"%3E","\\":"%5C","{":"%7B","}":"%7D","":"%7F","…":"%C2%85"," ":"%C2%A0","\u2028":"%E2%80%A8","\u2029":"%E2%80%A9","!":"%EF%BC%81","#":"%EF%BC%83","$":"%EF%BC%84","&":"%EF%BC%86","'":"%EF%BC%87","(":"%EF%BC%88",")":"%EF%BC%89","*":"%EF%BC%8A","+":"%EF%BC%8B",",":"%EF%BC%8C","/":"%EF%BC%8F",":":"%EF%BC%9A",";":"%EF%BC%9B","=":"%EF%BC%9D","?":"%EF%BC%9F","@":"%EF%BC%A0","[":"%EF%BC%BB","]":"%EF%BC%BD"};function Di(e){return Mi[e]}var Oi=/[\x00\x22\x27\x3c\x3e]/g,Ni=/[\x00- \x22\x27-\x29\x3c\x3e\\\x7b\x7d\x7f\x85\xa0\u2028\u2029\uff01\uff03\uff04\uff06-\uff0c\uff0f\uff1a\uff1b\uff1d\uff1f\uff20\uff3b\uff3d]/g,Fi=/^(?!-*(?:expression|(?:moz-)?binding))(?:[.#]?-?(?:[_a-z0-9-]+)(?:-[_a-z0-9-]+)*-?|-?(?:[0-9]+(?:\.[0-9]*)?|\.[0-9]+)(?:[a-z]{1,2}|%)?|!important|)$/i,Ui=/^(?![^#?]*\/(?:\.|%2E){2}(?:[\/?#]|$))(?:(?:https?|mailto):|[^&:\/?#]*(?:[\/?#]|$))/i,ji=/<(?:!|\/?([a-zA-Z][a-zA-Z0-9:\-]*))(?:[^>'"]|"[^"]*"|'[^']*')*>/g,Bi=/=e.keyCode)&&(e.keyCode=-1)}catch(t){}};var ln="closure_listenable_"+(1e6*Math.random()|0),cn=0;function un(e,t,i,n,a){this.listener=e,this.proxy=null,this.src=t,this.type=i,this.capture=!!n,this.La=a,this.key=++cn,this.sa=this.Ia=!1}function dn(e){e.sa=!0,e.listener=null,e.proxy=null,e.src=null,e.La=null}function hn(e){this.src=e,this.a={},this.g=0}function fn(e,t){var i=t.type;i in e.a&&W(e.a[i],t)&&(dn(t),0==e.a[i].length&&(delete e.a[i],e.g--))}function pn(e,t,i,n){for(var a=0;an.keyCode||void 0!=n.returnValue)){e:{var a=!1;if(0==n.keyCode)try{n.keyCode=-1;break e}catch(s){a=!0}(a||void 0==n.returnValue)&&(n.returnValue=!0)}for(n=[],a=t.g;a;a=a.parentNode)n.push(a);for(e=e.type,a=n.length-1;!t.h&&0<=a;a--){t.g=n[a];var r=Cn(n[a],e,!0,t);i=i&&r}for(a=0;!t.h&&a>>0);function xn(e){return E(e)?e:(e[Pn]||(e[Pn]=function(t){return e.handleEvent(t)}),e[Pn])}function Rn(){qi.call(this),this.J=new hn(this),this.wb=this,this.Ha=null}function Ln(e,t){var i,n=e.Ha;if(n)for(i=[];n;n=n.Ha)i.push(n);if(e=e.wb,n=t.type||t,p(t))t=new rn(t,e);else if(t instanceof rn)t.target=t.target||e;else{var a=t;t=new rn(n,e),he(t,a)}if(a=!0,i)for(var r=i.length-1;!t.h&&0<=r;r--){var s=t.g=i[r];a=Tn(s,n,!0,t)&&a}if(t.h||(s=t.g=e,a=Tn(s,n,!0,t)&&a,t.h||(a=Tn(s,n,!1,t)&&a)),i)for(r=0;!t.h&&re.g&&(e.g++,t.next=e.a,e.a=t)}function Hn(){this.g=this.a=null}l(Un,Rn),Un.prototype.N=function(){return this.a},Un.prototype.register=function(){var e=Fn(this.N());Mn[e]?Z(Mn[e],this)||Mn[e].push(this):Mn[e]=[this]},Bn.prototype.get=function(){if(0',null),i.document.write(Bt(t)),i.document.close())):(i=i.open(Lt(n).toString(),e,r))&&t.noopener&&(i.opener=null),i}function Ea(){try{return!(!window.opener||!window.opener.location||window.opener.location.hostname!==window.location.hostname||window.opener.location.protocol!==window.location.protocol)}catch(e){}return!1}function Ca(e){Ia(e,{target:window.cordova&&window.cordova.InAppBrowser?"_system":"_blank"},void 0)}function ka(e,t){if(e=C(e)&&1==e.nodeType?e:document.querySelector(String(e)),null==e)throw Error(t||"Cannot find element.");return e}function _a(){return window.location.href}function Aa(){var e=null;return new ta((function(t){"complete"==h.document.readyState?t():(e=function(){t()},wn(window,"load",e))})).Ca((function(t){throw Sn(window,"load",e),t}))}function Pa(){for(var e=32,t=[];0=t.C&&t.cancel())}this.T?this.T.call(this.O,this):this.J=!0,this.a||(e=new Fa(this),Ta(this),La(this,!1,e))}},Ra.prototype.L=function(e,t){this.A=!1,La(this,e,t)},Ra.prototype.callback=function(e){Ta(this),La(this,!0,e)},Ra.prototype.then=function(e,t,i){var n,a,r=new ta((function(e,t){n=e,a=t}));return Ma(this,n,(function(e){e instanceof Fa?r.cancel():a(e)})),r.then(e,t,i)},Ra.prototype.$goog_Thenable=!0,O(Na,N),Na.prototype.message="Deferred has already fired",Na.prototype.name="AlreadyCalledError",O(Fa,N),Fa.prototype.message="Deferred was canceled",Fa.prototype.name="CanceledError",Ua.prototype.h=function(){throw delete ja[this.a],this.g};var ja={};function Ba(e){var t={},i=t.document||document,n=At(e).toString(),a=document.createElement("SCRIPT"),r={rb:a,sb:void 0},s=new Ra(r),o=null,l=null!=t.timeout?t.timeout:5e3;return 0=rr(this).value)for(E(t)&&(t=t()),e=new Qa(e,String(t),this.s),i&&(e.a=i),i=this;i;){var n=i,a=e;if(n.a)for(var r=0;t=n.a[r];r++)t(a);i=i.g}};var sr={},or=null;function lr(){or||(or=new er(""),sr[""]=or,or.j=ar)}function cr(e){var t;if(lr(),!(t=sr[e])){t=new er(e);var i=e.lastIndexOf("."),n=e.substr(i+1);i=cr(e.substr(0,i)),i.h||(i.h={}),i.h[n]=t,t.g=i,sr[e]=t}return t}function ur(){this.a=M()}var dr=null;function hr(e){this.j=e||"",dr||(dr=new ur),this.s=dr}function fr(e){return 10>e?"0"+e:String(e)}function pr(e,t){e=(e.h-t)/1e3,t=e.toFixed(3);var i=0;if(1>e)i=2;else for(;100>e;)i++,e*=10;for(;0=ir.value)return"error";if(e.value>=nr.value)return"warn";if(e.value>=ar.value)return"log"}return"debug"}if(!this.j[e.g]){var i=mr(this.a,e),n=yr;if(n){var a=t(e.j);wr(n,a,i,e.a)}}};var br,yr=h.console;function wr(e,t,i,n){e[t]?e[t](i,n||""):e.log(i,n||"")}function Sr(e,t){var i=br;i&&i.log(ir,e,t)}br=cr("firebaseui");var Ir=new vr;if(1!=Ir.g){var Er;lr(),Er=or;var Cr=Ir.s;Er.a||(Er.a=[]),Er.a.push(Cr),Ir.g=!0}function kr(e){var t=br;t&&t.log(nr,e,void 0)}function _r(){this.a=("undefined"==typeof document?null:document)||{cookie:""}}function Ar(e){e=(e.a.cookie||"").split(";");for(var t,i,n=[],a=[],r=0;ri?"":0==i?";expires="+new Date(1970,1,1).toUTCString():";expires="+new Date(M()+1e3*i).toUTCString(),this.a.cookie=e+"="+t+a+n+i+r},e.get=function(e,t){for(var i,n=e+"=",a=(this.a.cookie||"").split(";"),r=0;r>=8),t[i++]=a}return t}function Nr(e){return G(e,(function(e){return e=e.toString(16),1a;a++)i=4*a+n,i=t[i],e.h[n][a]=i}function Br(e){for(var t=[],i=0;in;n++)t[4*n+i]=e.h[i][n];return t}function Vr(e,t){for(var i=0;4>i;i++)for(var n=0;4>n;n++)e.h[i][n]^=e.a[4*t+n][i]}function Hr(e,t){for(var i=0;4>i;i++)for(var n=0;4>n;n++)e.h[i][n]=t[e.h[i][n]]}function Gr(e){for(var t=1;4>t;t++)for(var i=0;4>i;i++)e.s[t][i]=e.h[t][i];for(t=1;4>t;t++)for(i=0;4>i;i++)e.h[t][i]=e.s[t][(i+t)%Ur]}function Kr(e){for(var t=1;4>t;t++)for(var i=0;4>i;i++)e.s[t][(i+t)%Ur]=e.h[t][i];for(t=1;4>t;t++)for(i=0;4>i;i++)e.h[t][i]=e.s[t][i]}function Zr(e){e[0]=Wr[e[0]],e[1]=Wr[e[1]],e[2]=Wr[e[2]],e[3]=Wr[e[3]]}var Wr=[99,124,119,123,242,107,111,197,48,1,103,43,254,215,171,118,202,130,201,125,250,89,71,240,173,212,162,175,156,164,114,192,183,253,147,38,54,63,247,204,52,165,229,241,113,216,49,21,4,199,35,195,24,150,5,154,7,18,128,226,235,39,178,117,9,131,44,26,27,110,90,160,82,59,214,179,41,227,47,132,83,209,0,237,32,252,177,91,106,203,190,57,74,76,88,207,208,239,170,251,67,77,51,133,69,249,2,127,80,60,159,168,81,163,64,143,146,157,56,245,188,182,218,33,16,255,243,210,205,12,19,236,95,151,68,23,196,167,126,61,100,93,25,115,96,129,79,220,34,42,144,136,70,238,184,20,222,94,11,219,224,50,58,10,73,6,36,92,194,211,172,98,145,149,228,121,231,200,55,109,141,213,78,169,108,86,244,234,101,122,174,8,186,120,37,46,28,166,180,198,232,221,116,31,75,189,139,138,112,62,181,102,72,3,246,14,97,53,87,185,134,193,29,158,225,248,152,17,105,217,142,148,155,30,135,233,206,85,40,223,140,161,137,13,191,230,66,104,65,153,45,15,176,84,187,22],zr=[82,9,106,213,48,54,165,56,191,64,163,158,129,243,215,251,124,227,57,130,155,47,255,135,52,142,67,68,196,222,233,203,84,123,148,50,166,194,35,61,238,76,149,11,66,250,195,78,8,46,161,102,40,217,36,178,118,91,162,73,109,139,209,37,114,248,246,100,134,104,152,22,212,164,92,204,93,101,182,146,108,112,72,80,253,237,185,218,94,21,70,87,167,141,157,132,144,216,171,0,140,188,211,10,247,228,88,5,184,179,69,6,208,44,30,143,202,63,15,2,193,175,189,3,1,19,138,107,58,145,17,65,79,103,220,234,151,242,207,206,240,180,230,115,150,172,116,34,231,173,53,133,226,249,55,232,28,117,223,110,71,241,26,113,29,41,197,137,111,183,98,14,170,24,190,27,252,86,62,75,198,210,121,32,154,219,192,254,120,205,90,244,31,221,168,51,136,7,199,49,177,18,16,89,39,128,236,95,96,81,127,169,25,181,74,13,45,229,122,159,147,201,156,239,160,224,59,77,174,42,245,176,200,235,187,60,131,83,153,97,23,43,4,126,186,119,214,38,225,105,20,99,85,33,12,125],Yr=[[0,0,0,0],[1,0,0,0],[2,0,0,0],[4,0,0,0],[8,0,0,0],[16,0,0,0],[32,0,0,0],[64,0,0,0],[128,0,0,0],[27,0,0,0],[54,0,0,0]],qr=[0,2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,36,38,40,42,44,46,48,50,52,54,56,58,60,62,64,66,68,70,72,74,76,78,80,82,84,86,88,90,92,94,96,98,100,102,104,106,108,110,112,114,116,118,120,122,124,126,128,130,132,134,136,138,140,142,144,146,148,150,152,154,156,158,160,162,164,166,168,170,172,174,176,178,180,182,184,186,188,190,192,194,196,198,200,202,204,206,208,210,212,214,216,218,220,222,224,226,228,230,232,234,236,238,240,242,244,246,248,250,252,254,27,25,31,29,19,17,23,21,11,9,15,13,3,1,7,5,59,57,63,61,51,49,55,53,43,41,47,45,35,33,39,37,91,89,95,93,83,81,87,85,75,73,79,77,67,65,71,69,123,121,127,125,115,113,119,117,107,105,111,109,99,97,103,101,155,153,159,157,147,145,151,149,139,137,143,141,131,129,135,133,187,185,191,189,179,177,183,181,171,169,175,173,163,161,167,165,219,217,223,221,211,209,215,213,203,201,207,205,195,193,199,197,251,249,255,253,243,241,247,245,235,233,239,237,227,225,231,229],$r=[0,3,6,5,12,15,10,9,24,27,30,29,20,23,18,17,48,51,54,53,60,63,58,57,40,43,46,45,36,39,34,33,96,99,102,101,108,111,106,105,120,123,126,125,116,119,114,113,80,83,86,85,92,95,90,89,72,75,78,77,68,71,66,65,192,195,198,197,204,207,202,201,216,219,222,221,212,215,210,209,240,243,246,245,252,255,250,249,232,235,238,237,228,231,226,225,160,163,166,165,172,175,170,169,184,187,190,189,180,183,178,177,144,147,150,149,156,159,154,153,136,139,142,141,132,135,130,129,155,152,157,158,151,148,145,146,131,128,133,134,143,140,137,138,171,168,173,174,167,164,161,162,179,176,181,182,191,188,185,186,251,248,253,254,247,244,241,242,227,224,229,230,239,236,233,234,203,200,205,206,199,196,193,194,211,208,213,214,223,220,217,218,91,88,93,94,87,84,81,82,67,64,69,70,79,76,73,74,107,104,109,110,103,100,97,98,115,112,117,118,127,124,121,122,59,56,61,62,55,52,49,50,35,32,37,38,47,44,41,42,11,8,13,14,7,4,1,2,19,16,21,22,31,28,25,26],Jr=[0,9,18,27,36,45,54,63,72,65,90,83,108,101,126,119,144,153,130,139,180,189,166,175,216,209,202,195,252,245,238,231,59,50,41,32,31,22,13,4,115,122,97,104,87,94,69,76,171,162,185,176,143,134,157,148,227,234,241,248,199,206,213,220,118,127,100,109,82,91,64,73,62,55,44,37,26,19,8,1,230,239,244,253,194,203,208,217,174,167,188,181,138,131,152,145,77,68,95,86,105,96,123,114,5,12,23,30,33,40,51,58,221,212,207,198,249,240,235,226,149,156,135,142,177,184,163,170,236,229,254,247,200,193,218,211,164,173,182,191,128,137,146,155,124,117,110,103,88,81,74,67,52,61,38,47,16,25,2,11,215,222,197,204,243,250,225,232,159,150,141,132,187,178,169,160,71,78,85,92,99,106,113,120,15,6,29,20,43,34,57,48,154,147,136,129,190,183,172,165,210,219,192,201,246,255,228,237,10,3,24,17,46,39,60,53,66,75,80,89,102,111,116,125,161,168,179,186,133,140,151,158,233,224,251,242,205,196,223,214,49,56,35,42,21,28,7,14,121,112,107,98,93,84,79,70],Xr=[0,11,22,29,44,39,58,49,88,83,78,69,116,127,98,105,176,187,166,173,156,151,138,129,232,227,254,245,196,207,210,217,123,112,109,102,87,92,65,74,35,40,53,62,15,4,25,18,203,192,221,214,231,236,241,250,147,152,133,142,191,180,169,162,246,253,224,235,218,209,204,199,174,165,184,179,130,137,148,159,70,77,80,91,106,97,124,119,30,21,8,3,50,57,36,47,141,134,155,144,161,170,183,188,213,222,195,200,249,242,239,228,61,54,43,32,17,26,7,12,101,110,115,120,73,66,95,84,247,252,225,234,219,208,205,198,175,164,185,178,131,136,149,158,71,76,81,90,107,96,125,118,31,20,9,2,51,56,37,46,140,135,154,145,160,171,182,189,212,223,194,201,248,243,238,229,60,55,42,33,16,27,6,13,100,111,114,121,72,67,94,85,1,10,23,28,45,38,59,48,89,82,79,68,117,126,99,104,177,186,167,172,157,150,139,128,233,226,255,244,197,206,211,216,122,113,108,103,86,93,64,75,34,41,52,63,14,5,24,19,202,193,220,215,230,237,240,251,146,153,132,143,190,181,168,163],Qr=[0,13,26,23,52,57,46,35,104,101,114,127,92,81,70,75,208,221,202,199,228,233,254,243,184,181,162,175,140,129,150,155,187,182,161,172,143,130,149,152,211,222,201,196,231,234,253,240,107,102,113,124,95,82,69,72,3,14,25,20,55,58,45,32,109,96,119,122,89,84,67,78,5,8,31,18,49,60,43,38,189,176,167,170,137,132,147,158,213,216,207,194,225,236,251,246,214,219,204,193,226,239,248,245,190,179,164,169,138,135,144,157,6,11,28,17,50,63,40,37,110,99,116,121,90,87,64,77,218,215,192,205,238,227,244,249,178,191,168,165,134,139,156,145,10,7,16,29,62,51,36,41,98,111,120,117,86,91,76,65,97,108,123,118,85,88,79,66,9,4,19,30,61,48,39,42,177,188,171,166,133,136,159,146,217,212,195,206,237,224,247,250,183,186,173,160,131,142,153,148,223,210,197,200,235,230,241,252,103,106,125,112,83,94,73,68,15,2,21,24,59,54,33,44,12,1,22,27,56,53,34,47,100,105,126,115,80,93,74,71,220,209,198,203,232,229,242,255,180,185,174,163,128,141,154,151],es=[0,14,28,18,56,54,36,42,112,126,108,98,72,70,84,90,224,238,252,242,216,214,196,202,144,158,140,130,168,166,180,186,219,213,199,201,227,237,255,241,171,165,183,185,147,157,143,129,59,53,39,41,3,13,31,17,75,69,87,89,115,125,111,97,173,163,177,191,149,155,137,135,221,211,193,207,229,235,249,247,77,67,81,95,117,123,105,103,61,51,33,47,5,11,25,23,118,120,106,100,78,64,82,92,6,8,26,20,62,48,34,44,150,152,138,132,174,160,178,188,230,232,250,244,222,208,194,204,65,79,93,83,121,119,101,107,49,63,45,35,9,7,21,27,161,175,189,179,153,151,133,139,209,223,205,195,233,231,245,251,154,148,134,136,162,172,190,176,234,228,246,248,210,220,206,192,122,116,102,104,66,76,94,80,10,4,22,24,50,60,46,32,236,226,240,254,212,218,200,198,156,146,128,142,164,170,184,182,12,2,16,30,52,58,40,38,124,114,96,110,68,74,88,86,55,57,43,37,15,1,19,29,71,73,91,85,127,113,99,109,215,217,203,197,239,225,243,253,167,169,187,181,159,145,131,141];function ts(e,t){e=new Fr(ns(e)),t=Or(t);for(var i,n=t.splice(0,16),a="";n.length;){i=16-n.length;for(var r=0;ro;o++)s[0]=r[0][o],s[1]=r[1][o],s[2]=r[2][o],s[3]=r[3][o],r[0][o]=qr[s[0]]^$r[s[1]]^s[2]^s[3],r[1][o]=s[0]^qr[s[1]]^$r[s[2]]^s[3],r[2][o]=s[0]^s[1]^qr[s[2]]^$r[s[3]],r[3][o]=$r[s[0]]^s[1]^s[2]^qr[s[3]];Vr(i,n)}Hr(i,Wr),Gr(i),Vr(i,i.j),a+=Nr(Br(i)),n=t.splice(0,16)}return a}function is(e,t){e=new Fr(ns(e));for(var i=[],n=0;no;o++)s[0]=r[0][o],s[1]=r[1][o],s[2]=r[2][o],s[3]=r[3][o],r[0][o]=es[s[0]]^Xr[s[1]]^Qr[s[2]]^Jr[s[3]],r[1][o]=Jr[s[0]]^es[s[1]]^Xr[s[2]]^Qr[s[3]],r[2][o]=Qr[s[0]]^Jr[s[1]]^es[s[2]]^Xr[s[3]],r[3][o]=Xr[s[0]]^Qr[s[1]]^Jr[s[2]]^es[s[3]]}if(Kr(n),Hr(n,zr),Vr(n,0),n=Br(n),8192>=n.length)n=String.fromCharCode.apply(null,n);else{for(a="",r=0;r=i.length)throw fe;var n=i.key(t++);if(e)return n;if(n=i.getItem(n),!p(n))throw"Storage mechanism: Invalid value was encountered";return n},n},e.clear=function(){this.a.clear()},e.key=function(e){return this.a.key(e)},O(ps,hs),O(gs,hs),O(ms,ds),ms.prototype.set=function(e,t){this.g.set(this.a+e,t)},ms.prototype.get=function(e){return this.g.get(this.a+e)},ms.prototype.ra=function(e){this.g.ra(this.a+e)},ms.prototype.ha=function(e){var t=this.g.ha(!0),i=this,n=new pe;return n.next=function(){for(var n=t.next();n.substr(0,i.a.length)!=i.a;)n=t.next();return e?n.substr(i.a.length):i.g.get(n)},n},fs(new ps);var vs,bs=new gs;vs=fs(bs)?new ms(bs,"firebaseui"):null;var ys=new us(vs),ws={name:"pendingEmailCredential",storage:ys},Ss={name:"redirectStatus",storage:ys},Is={name:"redirectUrl",storage:ys},Es={name:"emailForSignIn",storage:new us(new Rr(3600,"/"))},Cs={name:"pendingEncryptedCredential",storage:new us(new Rr(3600,"/"))};function ks(e,t){return e.storage.get(t?e.name+":"+t:e.name)}function _s(e,t){e.storage.a.ra(t?e.name+":"+t:e.name)}function As(e,t,i){e.storage.set(i?e.name+":"+i:e.name,t)}function Ps(e){return ks(Is,e)||null}function xs(e){return e=ks(ws,e)||null,Mr(e)}function Rs(e){_s(ws,e)}function Ls(e,t){As(ws,Tr(e),t)}function Ts(e){return(e=ks(Ss,e)||null)&&"undefined"!==typeof e.tenantId?new Dr(e.tenantId):null}function Ms(e,t){As(Ss,{tenantId:e.a},t)}function Ds(e,t){t=ks(Es,t);var i=null;if(t)try{var n=is(e,t),a=JSON.parse(n);i=a&&a.email||null}catch(r){}return i}function Os(e,t){t=ks(Cs,t);var i=null;if(t)try{var n=is(e,t);i=JSON.parse(n)}catch(a){}return Mr(i||null)}function Ns(e,t,i){As(Cs,ts(e,JSON.stringify(Tr(t))),i)}function Fs(){this.W={}}function Us(e,t,i){if(t.toLowerCase()in e.W)throw Error("Configuration "+t+" has already been defined.");e.W[t.toLowerCase()]=i}function js(e,t,i){if(!(t.toLowerCase()in e.W))throw Error("Configuration "+t+" is not defined.");e.W[t.toLowerCase()]=i}function Bs(e,t){if(e=e.get(t),!e)throw Error("Configuration "+t+" is required.");return e}function Vs(){this.g=void 0,this.a={}}function Hs(e,t,i,n){for(var a=0;a=e.keyCode)return!1;if(ol(e.keyCode))return!0;switch(e.keyCode){case 18:case 20:case 93:case 17:case 40:case 35:case 27:case 36:case 45:case 37:case 224:case 91:case 144:case 12:case 34:case 33:case 19:case 255:case 44:case 39:case 145:case 16:case 38:case 252:case 224:case 92:return!1;case 0:return!dt;default:return 166>e.keyCode||183=e||96<=e&&106>=e||65<=e&&90>=e||(ht||ct)&&0==e)return!0;switch(e){case 32:case 43:case 63:case 64:case 107:case 109:case 110:case 111:case 186:case 59:case 189:case 187:case 61:case 188:case 190:case 191:case 192:case 222:case 219:case 220:case 221:case 163:return!0;case 173:return dt;default:return!1}}function ll(e){if(dt)e=cl(e);else if(pt&&ht)switch(e){case 93:e=91}return e}function cl(e){switch(e){case 61:return 187;case 59:return 186;case 173:return 189;case 224:return 91;case 0:return 224;default:return e}}function ul(e){Rn.call(this),this.a=e,vn(e,"keydown",this.g,!1,this),vn(e,"click",this.h,!1,this)}function dl(e,t){var i=new fl(t);if(Ln(e,i)){i=new hl(t);try{Ln(e,i)}finally{t.stopPropagation()}}}function hl(e){sn.call(this,e.a),this.type="action"}function fl(e){sn.call(this,e.a),this.type="beforeaction"}function pl(e){Rn.call(this),this.a=e,e=lt?"focusout":"blur",this.g=vn(this.a,lt?"focusin":"focus",this,!lt),this.h=vn(this.a,e,this,!lt)}function gl(e,t){Rn.call(this),this.g=e||1,this.a=t||h,this.h=x(this.gc,this),this.j=M()}function ml(e){e.Ka=!1,e.aa&&(e.a.clearTimeout(e.aa),e.aa=null)}function vl(e,t){if(E(e))t&&(e=x(e,t));else{if(!e||"function"!=typeof e.handleEvent)throw Error("Invalid listener argument");e=x(e.handleEvent,e)}return 2147483647t.charCode&&ol(n)?t.charCode:0):ot&&!ht?(n=this.X,a=ol(n)?t.keyCode:0):("keypress"==e.type?(xl&&(i=this.Ua),t.keyCode==t.charCode?32>t.keyCode?(n=t.keyCode,a=0):(n=this.X,a=t.charCode):(n=t.keyCode||this.X,a=t.charCode||0)):(n=t.keyCode||this.X,a=t.charCode||0),pt&&63==a&&224==n&&(n=191));var r=n=ll(n);n?63232<=n&&n in _l?r=_l[n]:25==n&&e.shiftKey&&(r=9):t.keyIdentifier&&t.keyIdentifier in Al&&(r=Al[t.keyIdentifier]),dt&&Pl&&"keypress"==e.type&&!sl(r,this.R,e.shiftKey,e.ctrlKey,i,e.metaKey)||(e=r==this.R,this.R=r,t=new Ll(r,a,e,t),t.altKey=i,Ln(this,t))},e.N=function(){return this.qa},e.o=function(){kl.K.o.call(this),Rl(this)},O(Ll,sn),Tl.prototype.toString=function(){return"("+this.top+"t, "+this.right+"r, "+this.bottom+"b, "+this.left+"l)"},Tl.prototype.ceil=function(){return this.top=Math.ceil(this.top),this.right=Math.ceil(this.right),this.bottom=Math.ceil(this.bottom),this.left=Math.ceil(this.left),this},Tl.prototype.floor=function(){return this.top=Math.floor(this.top),this.right=Math.floor(this.right),this.bottom=Math.floor(this.bottom),this.left=Math.floor(this.left),this},Tl.prototype.round=function(){return this.top=Math.round(this.top),this.right=Math.round(this.right),this.bottom=Math.round(this.bottom),this.left=Math.round(this.left),this};var Fl={thin:2,medium:4,thick:6};function Ul(e,t){if("none"==(e.currentStyle?e.currentStyle[t+"Style"]:null))return 0;var i=e.currentStyle?e.currentStyle[t+"Width"]:null;if(i in Fl)e=Fl[i];else if(/^\d+px?$/.test(i))e=parseInt(i,10);else{t=e.style.left;var n=e.runtimeStyle.left;e.runtimeStyle.left=e.currentStyle.left,e.style.left=i,i=e.style.pixelLeft,e.style.left=t,e.runtimeStyle.left=n,e=+i}return e}function jl(){}function Bl(e){Rn.call(this),this.s=e||qt(),this.cb=null,this.na=!1,this.g=null,this.L=void 0,this.oa=this.Ea=this.Y=null}function Vl(e,t){return e.g?Jt(t,e.g||e.s.a):null}function Hl(e){return e.L||(e.L=new bl(e)),e.L}function Gl(e,t){e.Ea&&B(e.Ea,t,void 0)}function Kl(e,t){var i=ri(e,"firebaseui-textfield");t?(il(e,"firebaseui-input-invalid"),tl(e,"firebaseui-input"),i&&il(i,"firebaseui-textfield-invalid")):(il(e,"firebaseui-input"),tl(e,"firebaseui-input-invalid"),i&&tl(i,"firebaseui-textfield-invalid"))}function Zl(e,t,i){t=new Il(t),Xi(e,R(Qi,t)),wl(Hl(e),t,"input",i)}function Wl(e,t,i){t=new kl(t),Xi(e,R(Qi,t)),wl(Hl(e),t,"key",(function(e){13==e.keyCode&&(e.stopPropagation(),e.preventDefault(),i(e))}))}function zl(e,t,i){t=new pl(t),Xi(e,R(Qi,t)),wl(Hl(e),t,"focusin",i)}function Yl(e,t,i){t=new pl(t),Xi(e,R(Qi,t)),wl(Hl(e),t,"focusout",i)}function ql(e,t,i){t=new ul(t),Xi(e,R(Qi,t)),wl(Hl(e),t,"action",(function(e){e.stopPropagation(),e.preventDefault(),i(e)}))}function $l(e){tl(e,"firebaseui-hidden")}function Jl(e,t){t&&ai(e,t),il(e,"firebaseui-hidden")}function Xl(e){return!el(e,"firebaseui-hidden")&&"none"!=e.style.display}function Ql(e){e=e||{};var t=e.email,i=e.disabled,n='

',Ei(n)}function ec(e){e=e||{},e=e.label;var t='")}function tc(){var e=""+ec({label:_i("Sign In")});return Ei(e)}function ic(){var e=""+ec({label:_i("Save")});return Ei(e)}function nc(){var e=""+ec({label:_i("Continue")});return Ei(e)}function ac(e){e=e||{},e=e.label;var t='

')}function rc(){var e={},t='

')}function sc(){return Ei('Trouble signing in?')}function oc(e){e=e||{},e=e.label;var t='")}function lc(e){var t="";return e.F&&e.D&&(t+=''),Ei(t)}function cc(e){var t="";return e.F&&e.D&&(t+='

By continuing, you are indicating that you accept our Terms of Service and Privacy Policy.

'),Ei(t)}function uc(e){return e='

'+yi(e.message)+'  Dismiss

',Ei(e)}function dc(e){var t=e.content;return e=e.Ab,Ei(''+yi(t)+"")}function hc(e){var t=e.message;return Ei(dc({content:Ai('
'+yi(t)+"
")}))}function fc(e){var t='
';e=e.items;for(var i=e.length,n=0;n'+(a.Ma?'
':"")+'
'+yi(a.label)+"
"}return t=""+dc({Ab:_i("firebaseui-list-box-dialog"),content:Ai(t+"
")}),Ei(t)}function pc(e){return e=e||{},Ei(e.tb?'
':'
')}function gc(e,t){return e=e||{},e=e.ga,Ii(e.S?e.S:t.hb[e.providerId]?""+t.hb[e.providerId]:e.providerId&&0==e.providerId.indexOf("saml.")||e.providerId&&0==e.providerId.indexOf("oidc.")?e.providerId.substring(5):""+e.providerId)}function mc(e){yc(e,"upgradeElement")}function vc(e){yc(e,"downgradeElements")}y(jl),jl.prototype.a=0,O(Bl,Rn),e=Bl.prototype,e.Lb=jl.Xa(),e.N=function(){return this.g},e.Za=function(e){if(this.Y&&this.Y!=e)throw Error("Method not supported");Bl.K.Za.call(this,e)},e.kb=function(){this.g=this.s.a.createElement("DIV")},e.render=function(e){if(this.na)throw Error("Component already rendered");this.g||this.kb(),e?e.insertBefore(this.g,null):this.s.a.body.appendChild(this.g),this.Y&&!this.Y.na||this.v()},e.v=function(){this.na=!0,Gl(this,(function(e){!e.na&&e.N()&&e.v()}))},e.ya=function(){Gl(this,(function(e){e.na&&e.ya()})),this.L&&Sl(this.L),this.na=!1},e.o=function(){this.na&&this.ya(),this.L&&(this.L.m(),delete this.L),Gl(this,(function(e){e.m()})),this.g&&ii(this.g),this.Y=this.g=this.oa=this.Ea=null,Bl.K.o.call(this)},e.removeChild=function(e,t){if(e){var i=p(e)?e:e.cb||(e.cb=":"+(e.Lb.a++).toString(36));if(this.oa&&i?(e=this.oa,e=(null!==e&&i in e?e[i]:void 0)||null):e=null,i&&e){var n=this.oa;if(i in n&&delete n[i],W(this.Ea,e),t&&(e.ya(),e.g&&ii(e.g)),t=e,null==t)throw Error("Unable to set parent component");t.Y=null,Bl.K.Za.call(t,null)}}if(!e)throw Error("Child is not in parent component");return e},uc.a="firebaseui.auth.soy2.element.infoBar",hc.a="firebaseui.auth.soy2.element.progressDialog",fc.a="firebaseui.auth.soy2.element.listBoxDialog",pc.a="firebaseui.auth.soy2.element.busyIndicator";var bc=["mdl-js-textfield","mdl-js-progress","mdl-js-spinner","mdl-js-button"];function yc(e,t){e&&window.componentHandler&&window.componentHandler[t]&&bc.forEach((function(i){el(e,i)&&window.componentHandler[t](e),B($t(i,e),(function(e){window.componentHandler[t](e)}))}))}function wc(e,t,i){if(Sc.call(this),document.body.appendChild(e),e.showModal||window.dialogPolyfill.registerDialog(e),e.showModal(),mc(e),t&&ql(this,e,(function(t){var i=e.getBoundingClientRect();(t.clientX
'+(t?oc(null):"")+ec(null)+'
",Ei(e)}function Dc(e,t,i){return e=e||{},t=e.ia,e='",Ei(e)}function Oc(e,t,i){e=e||{};var n=e.Tb;t=e.Ta;var a=e.ia,r='",Ei(i)}function Nc(e,t,i){return e=e||{},t=e.Ta,e='

Recover password

Get instructions sent to this email that explain how to reset your password

'+Ql(e)+'
'+(t?oc(null):"")+ec({label:_i("Send")})+'
",Ei(e)}function Fc(e,t,i){t=e.G;var n="";return e="Follow the instructions sent to "+yi(e.email)+" to recover your password",n+='

Check your email

'+e+'

',t&&(n+='
'+ec({label:_i("Done")})+"
"),n+='
",Ei(n)}function Uc(e,t,i){return Ei('
'+pc(null,null,i)+"
")}function jc(e,t,i){return Ei('
'+pc({tb:!0},null,i)+"
")}function Bc(){return Ei('
')}function Vc(e,t,i){t="",e="A sign-in email with additional instructions was sent to "+yi(e.email)+". Check your email to complete sign-in.";var n=Ei('Trouble getting email?');return t+='",Ei(t)}function Hc(e,t,i){return e='

Trouble getting email?

Try these common fixes:

  • Check if the email was marked as spam or filtered.
  • Check your internet connection.
  • Check that you did not misspell your email.
  • Check that your inbox space is not running out or other inbox settings related issues.

If the steps above didn\'t work, you can resend the email. Note that this will deactivate the link in the older email.

'+oc({label:_i("Back")})+'
",Ei(e)}function Gc(e,t,i){return e='",Ei(e)}function Kc(){var e='

New device or browser detected

Try opening the link using the same device or browser where you started the sign-in process.

'+oc({label:_i("Dismiss")})+"
";return Ei(e)}function Zc(){var e='

Session ended

The session associated with this sign-in request has either expired or was cleared.

'+oc({label:_i("Dismiss")})+"
";return Ei(e)}function Wc(e,t,i){return t="",e="You’ve already used "+yi(e.email)+" to sign in. Enter your password for that account.",t+='

Sign in

You already have an account

'+e+"

"+rc()+'
'+tc()+'
",Ei(t)}function zc(e,t,i){var n=e.email;return t="",e=""+gc(e,i),e=_i(e),n="You’ve already used "+yi(n)+". You can connect your "+yi(e)+" account with "+yi(n)+" by signing in with email link below.",e="For this flow to successfully connect your "+yi(e)+" account with this email, you have to open the link on the same device or browser.",t+='",Ei(t)}function Yc(e,t,i){t="";var n=""+gc(e,i);return n=_i(n),e="You originally intended to connect "+yi(n)+" to your email account but have opened the link on a different device where you are not signed in.",n="If you still want to connect your "+yi(n)+" account, open the link on the same device where you started sign-in. Otherwise, tap Continue to sign-in on this device.",t+='",Ei(t)}function qc(e,t,i){var n=e.email;return t="",e=""+gc(e,i),e=_i(e),n="You’ve already used "+yi(n)+". Sign in with "+yi(e)+" to continue.",t+='

Sign in

You already have an account

'+n+'

'+ec({label:_i("Sign in with "+e)})+'
",Ei(t)}function $c(e,t,i){e=e||{};var n=e.kc;t=e.yb,e=e.Eb;var a='

Not Authorized

';return n?(n=""+yi(n)+" is not authorized to view the requested page.",a+=n):a+="User is not authorized to view the requested page.",a+="

",t&&(t="Please contact "+yi(t)+" for authorization.",a+='

'+t+"

"),a+='
'+oc({label:_i("Back")})+'
",Ei(a)}function Jc(e,t,i){return t="",e="To continue sign in with "+yi(e.email)+" on this device, you have to recover the password.",t+='

Sign in

'+e+'

'+oc(null)+ec({label:_i("Recover password")})+'
",Ei(t)}function Xc(e){var t="",i='

for '+yi(e.email)+"

";return t+='

Reset your password

'+i+ac(ki(e))+'
'+ic()+"
",Ei(t)}function Qc(e){return e=e||{},e='

Password changed

You can now sign in with your new password

'+(e.G?'
'+nc()+"
":"")+"
",Ei(e)}function eu(e){return e=e||{},e='

Try resetting your password again

Your request to reset your password has expired or the link has already been used

'+(e.G?'
'+nc()+"
":"")+"
",Ei(e)}function tu(e){var t=e.G,i="";return e="Your sign-in email address has been changed back to "+yi(e.email)+".",i+='

Updated email address

'+e+'

If you didn’t ask to change your sign-in email, it’s possible someone is trying to access your account and you should change your password right away.

'+(t?'
'+nc()+"
":"")+"
",Ei(i)}function iu(e){return e=e||{},e='

Unable to update your email address

There was a problem changing your sign-in email back.

If you try again and still can’t reset your email, try asking your administrator for help.

'+(e.G?'
'+nc()+"
":"")+"
",Ei(e)}function nu(e){return e=e||{},e='

Your email has been verified

You can now sign in with your new account

'+(e.G?'
'+nc()+"
":"")+"
",Ei(e)}function au(e){return e=e||{},e='

Try verifying your email again

Your request to verify your email has expired or the link has already been used

'+(e.G?'
'+nc()+"
":"")+"
",Ei(e)}function ru(e){var t=e.G,i="";return e="You can now sign in with your new email "+yi(e.email)+".",i+='

Your email has been verified and changed

'+e+'

'+(t?'
'+nc()+"
":"")+"
",Ei(i)}function su(e){return e=e||{},e='

Try updating your email again

Your request to verify and update your email has expired or the link has already been used.

'+(e.G?'
'+nc()+"
":"")+"
",Ei(e)}function ou(e){var t=e.factorId,i=e.phoneNumber;e=e.G;var n='

Removed second factor

';switch(t){case"phone":t="The "+yi(t)+" "+yi(i)+" was removed as a second authentication step.",n+=t;break;default:n+="The device or app was removed as a second authentication step."}return n+='

If you don\'t recognize this device, someone might be trying to access your account. Consider changing your password right away.

'+(e?'
'+nc()+"
":"")+"
",Ei(n)}function lu(e){return e=e||{},e='

Couldn\'t remove your second factor

Something went wrong removing your second factor.

Try removing it again. If that doesn\'t work, contact support for assistance.

'+(e.G?'
'+nc()+"
":"")+"
",Ei(e)}function cu(e){var t=e.zb;return e='

Error encountered

'+yi(e.errorMessage)+'

',t&&(e+=ec({label:_i("Retry")})),Ei(e+"
")}function uu(e){return e='

Error encountered

'+yi(e.errorMessage)+"

",Ei(e)}function du(e,t,i){var n=e.Qb;return t="",e="Continue with "+yi(e.jc)+"?",n="You originally wanted to sign in with "+yi(n),t+='

Sign in

'+e+'

'+n+'

'+oc(null)+ec({label:_i("Continue")})+'
",Ei(t)}function hu(e,t,i){var n='",Ei(n)}function fu(e,t,i){e=e||{};var n,a=e.Gb,r=e.Va;return t=e.ia,e=e||{},e=e.Aa,e='

',e='")}function pu(e,t,i){e=e||{},t=e.phoneNumber;var n="";return e='Enter the 6-digit code we sent to ‎'+yi(t)+"",yi(t),t=n,n=Ei('

'),i='"))}function gu(){return Ei('

Sign Out

You are now successfully signed out.

')}function mu(e,t,i){var n='
    ';e=e.ec,t=e.length;for(var a=0;a',r.V?s+=yi(r.V):(r="Sign in to "+yi(r.displayName),s+=r),s=Ei(s+''+o+""),n+='
  • '+s+"
  • "}return n+='
",Ei(n)}function vu(e,t,i){return e='

Sign in

'+Ql(null)+'
'+ec(null)+'
",Ei(e)}function bu(){return Vl(this,"firebaseui-id-submit")}function yu(){return Vl(this,"firebaseui-id-secondary-link")}function wu(e,t){ql(this,bu.call(this),(function(t){e(t)}));var i=yu.call(this);i&&t&&ql(this,i,(function(e){t(e)}))}function Su(){return Vl(this,"firebaseui-id-password")}function Iu(){return Vl(this,"firebaseui-id-password-error")}function Eu(){var e=Su.call(this),t=Iu.call(this);Zl(this,e,(function(){Xl(t)&&(Kl(e,!0),$l(t))}))}function Cu(){var e=Su.call(this),t=Iu.call(this);return nl(e)?(Kl(e,!0),$l(t),t=!0):(Kl(e,!1),Jl(t,Ii("Enter your password").toString()),t=!1),t?nl(e):null}function ku(e,t,i,n,a,r){Pc.call(this,Wc,{email:e},r,"passwordLinking",{F:n,D:a}),this.w=t,this.H=i}O(Ac,rn),O(Pc,Bl),e=Pc.prototype,e.kb=function(){var e=fi(this.fb,this.eb,this.Z,this.s);mc(e),this.g=e},e.v=function(){if(Pc.K.v.call(this),On(Rc(this),new Ac("pageEnter",Rc(this),{pageId:this.Ga})),this.bb()&&this.Z.F){var e=this.Z.F;ql(this,this.bb(),(function(){e()}))}if(this.ab()&&this.Z.D){var t=this.Z.D;ql(this,this.ab(),(function(){t()}))}},e.ya=function(){On(Rc(this),new Ac("pageExit",Rc(this),{pageId:this.Ga})),Pc.K.ya.call(this)},e.o=function(){window.clearTimeout(this.ca),this.eb=this.fb=this.ca=null,this.Fa=!1,this.A=null,vc(this.N()),Pc.K.o.call(this)},e.I=function(e,t,i,n){function a(){if(r.T)return null;r.Fa=!1,window.clearTimeout(r.ca),r.ca=null,r.A&&(vc(r.A),ii(r.A),r.A=null)}var r=this;return r.Fa?null:(xc(r),e.apply(null,t).then(i,n).then(a,a))},L(Pc.prototype,{a:function(e){Ec.call(this);var t=fi(uc,{message:e},null,this.s);this.N().appendChild(t),ql(this,kc.call(this),(function(){ii(t)}))},yc:Ec,Ac:Cc,zc:kc,$:function(e,t){e=fi(hc,{Ma:e,message:t},null,this.s),wc.call(this,e)},h:Sc,Cb:Ic,Cc:function(){return Vl(this,"firebaseui-tos")},bb:function(){return Vl(this,"firebaseui-tos-link")},ab:function(){return Vl(this,"firebaseui-pp-link")},Dc:function(){return Vl(this,"firebaseui-tos-list")}}),Mc.a="firebaseui.auth.soy2.page.signIn",Dc.a="firebaseui.auth.soy2.page.passwordSignIn",Oc.a="firebaseui.auth.soy2.page.passwordSignUp",Nc.a="firebaseui.auth.soy2.page.passwordRecovery",Fc.a="firebaseui.auth.soy2.page.passwordRecoveryEmailSent",Uc.a="firebaseui.auth.soy2.page.callback",jc.a="firebaseui.auth.soy2.page.spinner",Bc.a="firebaseui.auth.soy2.page.blank",Vc.a="firebaseui.auth.soy2.page.emailLinkSignInSent",Hc.a="firebaseui.auth.soy2.page.emailNotReceived",Gc.a="firebaseui.auth.soy2.page.emailLinkSignInConfirmation",Kc.a="firebaseui.auth.soy2.page.differentDeviceError",Zc.a="firebaseui.auth.soy2.page.anonymousUserMismatch",Wc.a="firebaseui.auth.soy2.page.passwordLinking",zc.a="firebaseui.auth.soy2.page.emailLinkSignInLinking",Yc.a="firebaseui.auth.soy2.page.emailLinkSignInLinkingDifferentDevice",qc.a="firebaseui.auth.soy2.page.federatedLinking",$c.a="firebaseui.auth.soy2.page.unauthorizedUser",Jc.a="firebaseui.auth.soy2.page.unsupportedProvider",Xc.a="firebaseui.auth.soy2.page.passwordReset",Qc.a="firebaseui.auth.soy2.page.passwordResetSuccess",eu.a="firebaseui.auth.soy2.page.passwordResetFailure",tu.a="firebaseui.auth.soy2.page.emailChangeRevokeSuccess",iu.a="firebaseui.auth.soy2.page.emailChangeRevokeFailure",nu.a="firebaseui.auth.soy2.page.emailVerificationSuccess",au.a="firebaseui.auth.soy2.page.emailVerificationFailure",ru.a="firebaseui.auth.soy2.page.verifyAndChangeEmailSuccess",su.a="firebaseui.auth.soy2.page.verifyAndChangeEmailFailure",ou.a="firebaseui.auth.soy2.page.revertSecondFactorAdditionSuccess",lu.a="firebaseui.auth.soy2.page.revertSecondFactorAdditionFailure",cu.a="firebaseui.auth.soy2.page.recoverableError",uu.a="firebaseui.auth.soy2.page.unrecoverableError",du.a="firebaseui.auth.soy2.page.emailMismatch",hu.a="firebaseui.auth.soy2.page.providerSignIn",fu.a="firebaseui.auth.soy2.page.phoneSignInStart",pu.a="firebaseui.auth.soy2.page.phoneSignInFinish",gu.a="firebaseui.auth.soy2.page.signOut",mu.a="firebaseui.auth.soy2.page.selectTenant",vu.a="firebaseui.auth.soy2.page.providerMatchByEmail",l(ku,Pc),ku.prototype.v=function(){this.P(),this.M(this.w,this.H),Tc(this,this.i(),this.w),this.i().focus(),Pc.prototype.v.call(this)},ku.prototype.o=function(){this.w=null,Pc.prototype.o.call(this)},ku.prototype.j=function(){return nl(Vl(this,"firebaseui-id-email"))},L(ku.prototype,{i:Su,B:Iu,P:Eu,u:Cu,ea:bu,ba:yu,M:wu});var _u=/^[+a-zA-Z0-9_.!#$%&'*\/=?^`{|}~-]+@([a-zA-Z0-9-]+\.)+[a-zA-Z0-9]{2,63}$/;function Au(){return Vl(this,"firebaseui-id-email")}function Pu(){return Vl(this,"firebaseui-id-email-error")}function xu(e){var t=Au.call(this),i=Pu.call(this);Zl(this,t,(function(){Xl(i)&&(Kl(t,!0),$l(i))})),e&&Wl(this,t,(function(){e()}))}function Ru(){return Q(nl(Au.call(this))||"")}function Lu(){var e=Au.call(this),t=Pu.call(this),i=nl(e)||"";return i?_u.test(i)?(Kl(e,!0),$l(t),t=!0):(Kl(e,!1),Jl(t,Ii("That email address isn't correct").toString()),t=!1):(Kl(e,!1),Jl(t,Ii("Enter your email address to continue").toString()),t=!1),t?Q(nl(e)):null}function Tu(e,t,i,n,a,r,s){Pc.call(this,Dc,{email:i,ia:!!r},s,"passwordSignIn",{F:n,D:a}),this.w=e,this.H=t}function Mu(e,t,i,n,a,r){Pc.call(this,e,t,n,a||"notice",r),this.i=i||null}function Du(e,t,i,n,a){Mu.call(this,Fc,{email:e,G:!!t},t,a,"passwordRecoveryEmailSent",{F:i,D:n})}function Ou(e,t){Mu.call(this,nu,{G:!!e},e,t,"emailVerificationSuccess")}function Nu(e,t){Mu.call(this,au,{G:!!e},e,t,"emailVerificationFailure")}function Fu(e,t,i){Mu.call(this,ru,{email:e,G:!!t},t,i,"verifyAndChangeEmailSuccess")}function Uu(e,t){Mu.call(this,su,{G:!!e},e,t,"verifyAndChangeEmailFailure")}function ju(e,t){Mu.call(this,lu,{G:!!e},e,t,"revertSecondFactorAdditionFailure")}function Bu(e){Mu.call(this,gu,void 0,void 0,e,"signOut")}function Vu(e,t){Mu.call(this,Qc,{G:!!e},e,t,"passwordResetSuccess")}function Hu(e,t){Mu.call(this,eu,{G:!!e},e,t,"passwordResetFailure")}function Gu(e,t){Mu.call(this,iu,{G:!!e},e,t,"emailChangeRevokeFailure")}function Ku(e,t,i){Mu.call(this,cu,{errorMessage:e,zb:!!t},t,i,"recoverableError")}function Zu(e,t){Mu.call(this,uu,{errorMessage:e},void 0,t,"unrecoverableError")}function Wu(e){if("auth/invalid-credential"===e.code&&e.message&&-1!==e.message.indexOf("error=consent_required"))return{code:"auth/user-cancelled"};if(e.message&&-1!==e.message.indexOf("HTTP Cloud Function returned an error:")){var t=JSON.parse(e.message.substring(e.message.indexOf("{"),e.message.lastIndexOf("}")+1));return{code:e.code,message:t&&t.error&&t.error.message||e.message}}return e}function zu(e,t,i,n){function a(i){if(!i.name||"cancel"!=i.name){e:{var n=i.message;try{var a=((JSON.parse(n).error||{}).message||"").toLowerCase().match(/invalid.+(access|id)_token/);if(a&&a.length){var r=!0;break e}}catch(s){}r=!1}if(r)i=Rc(t),t.m(),ad(e,i,void 0,Ii("Your sign-in session has expired. Please try again.").toString());else{if(r=i&&i.message||"",i.code){if("auth/email-already-in-use"==i.code||"auth/credential-already-in-use"==i.code)return;r=$u(i)}t.a(r)}}}if(Gh(e),n)return Yu(e,i),la();if(!i.credential)throw Error("No credential found!");if(!Th(e).currentUser&&!i.user)throw Error("User not logged in.");try{var r=ef(e,i)}catch(s){return Sr(s.code||s.message,s),t.a(s.code||s.message),la()}return i=r.then((function(t){Yu(e,t)}),a).then(void 0,a),Vh(e,r),la(i)}function Yu(e,t){if(!t.user)throw Error("No user found");var i=No(Wh(e));if(Oo(Wh(e))&&i&&kr("Both signInSuccess and signInSuccessWithAuthResult callbacks are provided. Only signInSuccessWithAuthResult callback will be invoked."),i){i=No(Wh(e));var n=Ps(Dh(e))||void 0;_s(Is,Dh(e));var a=!1;Ea()?(i&&!i(t,n)||(a=!0,Wt(window.opener.location,qu(e,n))),i||window.close()):i&&!i(t,n)||(a=!0,Wt(window.location,qu(e,n))),a||e.reset()}else{i=t.user,t=t.credential,n=Oo(Wh(e)),a=Ps(Dh(e))||void 0,_s(Is,Dh(e));var r=!1;Ea()?(n&&!n(i,t,a)||(r=!0,Wt(window.opener.location,qu(e,a))),n||window.close()):n&&!n(i,t,a)||(r=!0,Wt(window.location,qu(e,a))),r||e.reset()}}function qu(e,t){if(e=t||Wh(e).a.get("signInSuccessUrl"),!e)throw Error("No redirect URL has been found. You must either specify a signInSuccessUrl in the configuration, pass in a redirect URL to the widget URL, or return false from the callback.");return e}function $u(e){var t={code:e.code};t=t||{};var i="";switch(t.code){case"auth/email-already-in-use":i+="The email address is already used by another account";break;case"auth/requires-recent-login":i+=Wi();break;case"auth/too-many-requests":i+="You have entered an incorrect password too many times. Please try again in a few minutes.";break;case"auth/user-cancelled":i+="Please authorize the required permissions to sign in to the application";break;case"auth/user-not-found":i+="That email address doesn't match an existing account";break;case"auth/user-token-expired":i+=Wi();break;case"auth/weak-password":i+="Strong passwords have at least 6 characters and a mix of letters and numbers";break;case"auth/wrong-password":i+="The email and password you entered don't match";break;case"auth/network-request-failed":i+="A network error has occurred";break;case"auth/invalid-phone-number":i+=Vi();break;case"auth/invalid-verification-code":i+=Ii("Wrong code. Try again.");break;case"auth/code-expired":i+="This code is no longer valid";break;case"auth/expired-action-code":i+="This code has expired.";break;case"auth/invalid-action-code":i+="The action code is invalid. This can happen if the code is malformed, expired, or has already been used."}if(t=Ii(i).toString())return t;try{return JSON.parse(e.message),Sr("Internal error: "+e.message,void 0),Gi().toString()}catch(n){return e.message}}function Ju(e,t,i){var n=ao[t]&&b.Z.auth[ao[t]]?new b.Z.auth[ao[t]]:0==t.indexOf("saml.")?new b.Z.auth.SAMLAuthProvider(t):new b.Z.auth.OAuthProvider(t);if(!n)throw Error("Invalid Firebase Auth provider!");var a=So(Wh(e),t);if(n.addScope)for(var r=0;rn&&(n=t.length),a=t.indexOf("?"),0>a||a>n?(a=n,i=""):i=t.substring(a+1,n),t=[t.substr(0,a),i,t.substr(n)],n=t[1],t[1]=e?n?n+"&"+e:e:n,n=t[0]+(t[1]?"?"+t[1]:"")+t[2]):n=t,Wh(this).a.get("popupMode")?(e=(window.screen.availHeight-600)/2,t=(window.screen.availWidth-500)/2,n=n||"about:blank",e={width:500,height:600,top:0{if(console.log(e),"success"===e.data.status){const t={zelid:a.data.public_address,signature:a.data.signature,loginPhrase:this.loginPhrase};this.$store.commit("flux/setPrivilege",e.data.data.privilage),this.$store.commit("flux/setZelid",t.zelid),localStorage.setItem("zelidauth",N.stringify(t)),this.showToast("success",e.data.data.message)}else this.showToast(this.getVariant(e.data.status),e.data.data.message||e.data.data),this.resetLoginUI()})).catch((e=>{console.log(e),this.resetLoginUI()}))}else{if(e.displayName){const t=/\b((http|https|ftp):\/\/[-A-Z0-9+&@#%?=~_|!:,.;]*[-A-Z0-9+&@#%=~_|]|www\.[-A-Z0-9+&@#%?=~_|!:,.;]*[-A-Z0-9+&@#%=~_|]|[-A-Z0-9]+\.[A-Z]{2,}[-A-Z0-9+&@#%?=~_|]*[-A-Z0-9+&@#%=~_|])/i;if(t.test(e.displayName))throw new Error("Login Failed, please try again.")}e.sendEmailVerification().then((()=>{this.showToast("info","please verify email")})).catch((()=>{this.showToast("warning","failed to send new verification email")})).finally((async()=>{document.getElementById("ssoVerify").style.display="block",document.getElementById("ssoEmailVerify").style.display="block",document.getElementById("emailLoginForm").style.display="none",this.ssoVerification=!0,await this.checkVerification()}))}}catch(t){this.resetLoginUI(),this.showToast("warning","Login Failed, please try again.")}},async checkVerification(){try{let e=(0,I.PR)();e&&this.ssoVerification?(await e.reload(),e=(0,I.PR)(),e.emailVerified?(this.showToast("info","email verified"),document.getElementById("ssoVerify").style.display="none",this.handleSignedInUser(e),this.ssoVerification=!1):setTimeout((()=>{this.checkVerification()}),5e3)):this.resetLoginUI()}catch(e){this.showToast("warning","email verification failed"),this.resetLoginUI()}},cancelVerification(){this.resetLoginUI()},resetLoginUI(){document.getElementById("ssoVerify").style.display="none",document.getElementById("ssoEmailVerify").style.display="none",document.getElementById("ssoLoggedIn").style.display="none",document.getElementById("emailLoginProcessing").style.display="none",document.getElementById("emailLoginExecute").style.display="block",document.getElementById("emailLoginForm").style.display="block",document.getElementById("signUpButton").style.display="block",this.emailForm.email="",this.emailForm.password="",this.ui.reset(),this.ui.start("#firebaseui-auth-container"),this.ssoVerification=!1},async daemonWelcomeGetFluxNodeStatus(){const e=await A.Z.getFluxNodeStatus().catch((()=>null)),t=await A.Z.getBlockchainInfo().catch((()=>null));if(!e||!t)return this.getNodeStatusResponse.status="UNKNOWN",this.getNodeStatusResponse.nodeStatus="Unable to connect to Flux Blockchain Daemon.",void(this.getNodeStatusResponse.class="danger");this.getNodeStatusResponse.status=e.data.status,this.getNodeStatusResponse.data=e.data.data,this.getNodeStatusResponse.data&&t.data.data&&(t.data.data.blocks+316100){const e=+i+1;this.$store.commit("flux/setFluxPort",e)}n+=t,n+=":",n+=this.config.apiPort}return F.get("backendURL")||n},initiateLoginWS(){const e=this;let t=this.backendURL();t=t.replace("https://","wss://"),t=t.replace("http://","ws://");const i=`${t}/ws/id/${this.loginPhrase}`,n=new WebSocket(i);this.websocket=n,n.onopen=t=>{e.onOpen(t)},n.onclose=t=>{e.onClose(t)},n.onmessage=t=>{e.onMessage(t)},n.onerror=t=>{e.onError(t)}},onError(e){console.log(e)},onMessage(e){const t=N.parse(e.data);if(console.log(t),"success"===t.status&&t.data){const e={zelid:t.data.zelid,signature:t.data.signature,loginPhrase:t.data.loginPhrase};this.$store.commit("flux/setPrivilege",t.data.privilage),this.$store.commit("flux/setZelid",e.zelid),localStorage.setItem("zelidauth",N.stringify(e)),this.showToast("success",t.data.message)}console.log(t),console.log(e)},onClose(e){console.log(e)},onOpen(e){console.log(e)},showToast(e,t){this.$toast({component:E.Z,props:{title:t,icon:"BellIcon",variant:e}})},getZelIdLoginPhrase(){_.Z.loginPhrase().then((e=>{console.log(e),"error"===e.data.status?this.getEmergencyLoginPhrase():(this.loginPhrase=e.data.data,this.loginForm.loginPhrase=e.data.data)})).catch((e=>{console.log(e),this.showToast("danger",e)}))},getEmergencyLoginPhrase(){_.Z.emergencyLoginPhrase().then((e=>{console.log(e),"error"===e.data.status?this.showToast("danger",e.data.data.message):(this.loginPhrase=e.data.data,this.loginForm.loginPhrase=e.data.data)})).catch((e=>{console.log(e),this.showToast("danger",e)}))},getVariant(e){return"error"===e?"danger":"message"===e?"info":e},login(){console.log(this.loginForm),_.Z.verifyLogin(this.loginForm).then((e=>{if(console.log(e),"success"===e.data.status){const t={zelid:this.loginForm.zelid,signature:this.loginForm.signature,loginPhrase:this.loginForm.loginPhrase};this.$store.commit("flux/setPrivilege",e.data.data.privilage),this.$store.commit("flux/setZelid",t.zelid),localStorage.setItem("zelidauth",N.stringify(t)),this.showToast("success",e.data.data.message)}else this.showToast(this.getVariant(e.data.status),e.data.data.message||e.data.data)})).catch((e=>{console.log(e),this.showToast("danger",e.toString())}))},async emailLogin(){try{if(this.$refs.emailLoginForm.reportValidity()){document.getElementById("emailLoginExecute").style.display="none",document.getElementById("emailLoginProcessing").style.display="block",document.getElementById("signUpButton").style.display="none";const e=await(0,I.fZ)(this.emailForm);this.handleSignInSuccessWithAuthResult(e)}}catch(e){document.getElementById("emailLoginExecute").style.display="block",document.getElementById("emailLoginProcessing").style.display="none",document.getElementById("signUpButton").style.display="block",document.getElementById("ssoEmailVerify").style.display="none",this.showToast("danger","login failed, please try again")}},async createAccount(){this.modalShow=!this.modalShow},async onSessionConnect(e){console.log(e);const t=await this.signClient.request({topic:e.topic,chainId:"eip155:1",request:{method:"personal_sign",params:[this.loginPhrase,e.namespaces.eip155.accounts[0].split(":")[2]]}});console.log(t);const i={zelid:e.namespaces.eip155.accounts[0].split(":")[2],signature:t,loginPhrase:this.loginPhrase},n=await _.Z.verifyLogin(i);if(console.log(n),"success"===n.data.status){const e=i;this.$store.commit("flux/setPrivilege",n.data.data.privilage),this.$store.commit("flux/setZelid",e.zelid),localStorage.setItem("zelidauth",N.stringify(e)),this.showToast("success",n.data.data.message)}else this.showToast(this.getVariant(n.data.status),n.data.data.message||n.data.data)},onSessionUpdate(e){console.log(e)},async initWalletConnect(){const e=this;try{const t=await g.ZP.init(L);this.signClient=t,t.on("session_event",(({event:e})=>{console.log(e)})),t.on("session_update",(({topic:i,params:n})=>{const{namespaces:a}=n,r=t.session.get(i),s={...r,namespaces:a};e.onSessionUpdate(s)})),t.on("session_delete",(()=>{}));const{uri:i,approval:n}=await t.connect({requiredNamespaces:{eip155:{methods:["personal_sign"],chains:["eip155:1"],events:["chainChanged","accountsChanged"]}}});if(i){T.openModal({uri:i});const e=await n();this.onSessionConnect(e),T.closeModal()}}catch(t){console.error(t),this.showToast("danger",t.message)}},async siwe(e,t){try{const i=`0x${x.from(e,"utf8").toString("hex")}`,n=await O.request({method:"personal_sign",params:[i,t]});console.log(n);const a={zelid:t,signature:n,loginPhrase:this.loginPhrase},r=await _.Z.verifyLogin(a);if(console.log(r),"success"===r.data.status){const e=a;this.$store.commit("flux/setPrivilege",r.data.data.privilage),this.$store.commit("flux/setZelid",e.zelid),localStorage.setItem("zelidauth",N.stringify(e)),this.showToast("success",r.data.data.message)}else this.showToast(this.getVariant(r.data.status),r.data.data.message||r.data.data)}catch(i){console.error(i),this.showToast("danger",i.message)}},async initMetamask(){try{if(!O)return void this.showToast("danger","Metamask not detected");let e;if(O&&!O.selectedAddress){const t=await O.request({method:"eth_requestAccounts",params:[]});console.log(t),e=t[0]}else e=O.selectedAddress;this.siwe(this.loginPhrase,e)}catch(e){this.showToast("danger",e.message)}},async initSSP(){try{if(!window.ssp)return void this.showToast("danger","SSP Wallet not installed");const e=await window.ssp.request("sspwid_sign_message",{message:this.loginPhrase});if("ERROR"===e.status)throw new Error(e.data||e.result);const t={zelid:e.address,signature:e.signature,loginPhrase:this.loginPhrase},i=await _.Z.verifyLogin(t);if(console.log(i),"success"===i.data.status){const e=t;this.$store.commit("flux/setPrivilege",i.data.data.privilage),this.$store.commit("flux/setZelid",e.zelid),localStorage.setItem("zelidauth",N.stringify(e)),this.showToast("success",i.data.data.message)}else this.showToast(this.getVariant(i.data.status),i.data.data.message||i.data.data)}catch(e){this.showToast("danger",e.message)}},checkFormValidity(){const e=this.$refs.form.reportValidity();return this.createSSOForm.pw1.length>=8?(this.pw1State=!0,this.createSSOForm.pw2.length>=8?(this.pw2State=!0,this.createSSOForm.pw1!==this.createSSOForm.pw2?(this.showToast("info","passwords do not match"),this.pw1State=!1,this.pw2State=!1,null):e):(this.showToast("info","password must be at least 8 chars"),null)):(this.showToast("info","password must be at least 8 chars"),null)},resetModal(){this.createSSOForm.email="",this.createSSOForm.pw1="",this.createSSOForm.pw2="",this.emailState=null,this.pw1State=null,this.pw2State=null},handleOk(e){e.preventDefault(),this.handleSubmit()},async handleSubmit(){if(this.checkFormValidity()){try{const e=await(0,I.wY)({email:this.createSSOForm.email,password:this.createSSOForm.pw1});this.handleSignInSuccessWithAuthResult(e)}catch(e){this.resetLoginUI(),this.showToast("danger","Account creation failed, try again")}this.$nextTick((()=>{this.$bvModal.hide("modal-prevent-closing")}))}}}},j=U;var B=i(1001),V=(0,B.Z)(j,n,a,!1,null,null,null);const H=V.exports},97211:(e,t,i)=>{var n;(function(){var a=window.CustomEvent;function r(e){while(e&&e!==document.body){var t=window.getComputedStyle(e),i=function(e,i){return!(void 0===t[e]||t[e]===i)};if(t.opacity<1||i("zIndex","auto")||i("transform","none")||i("mixBlendMode","normal")||i("filter","none")||i("perspective","none")||"isolate"===t["isolation"]||"fixed"===t.position||"touch"===t.webkitOverflowScrolling)return!0;e=e.parentElement}return!1}function s(e){while(e){if("dialog"===e.localName)return e;e=e.parentElement}return null}function o(e){e&&e.blur&&e!==document.body&&e.blur()}function l(e,t){for(var i=0;i=0&&(e=this.dialog_),!e){var t=["button","input","keygen","select","textarea"],i=t.map((function(e){return e+":not([disabled])"}));i.push('[tabindex]:not([disabled]):not([tabindex=""])'),e=this.dialog_.querySelector(i.join(", "))}o(document.activeElement),e&&e.focus()},updateZIndex:function(e,t){if(e, the polyfill may not work correctly",e),"dialog"!==e.localName)throw new Error("Failed to register dialog: The element is not a dialog.");new u(e)},registerDialog:function(e){e.showModal||d.forceRegisterDialog(e)},DialogManager:function(){this.pendingDialogStack=[];var e=this.checkDOM_.bind(this);this.overlay=document.createElement("div"),this.overlay.className="_dialog_overlay",this.overlay.addEventListener("click",function(t){this.forwardTab_=void 0,t.stopPropagation(),e([])}.bind(this)),this.handleKey_=this.handleKey_.bind(this),this.handleFocus_=this.handleFocus_.bind(this),this.zIndexLow_=1e5,this.zIndexHigh_=100150,this.forwardTab_=void 0,"MutationObserver"in window&&(this.mo_=new MutationObserver((function(t){var i=[];t.forEach((function(e){for(var t,n=0;t=e.removedNodes[n];++n)t instanceof Element&&("dialog"===t.localName&&i.push(t),i=i.concat(t.querySelectorAll("dialog")))})),i.length&&e(i)})))}};if(d.DialogManager.prototype.blockDocument=function(){document.documentElement.addEventListener("focus",this.handleFocus_,!0),document.addEventListener("keydown",this.handleKey_),this.mo_&&this.mo_.observe(document,{childList:!0,subtree:!0})},d.DialogManager.prototype.unblockDocument=function(){document.documentElement.removeEventListener("focus",this.handleFocus_,!0),document.removeEventListener("keydown",this.handleKey_),this.mo_&&this.mo_.disconnect()},d.DialogManager.prototype.updateStacking=function(){for(var e,t=this.zIndexHigh_,i=0;e=this.pendingDialogStack[i];++i)e.updateZIndex(--t,--t),0===i&&(this.overlay.style.zIndex=--t);var n=this.pendingDialogStack[0];if(n){var a=n.dialog.parentNode||document.body;a.appendChild(this.overlay)}else this.overlay.parentNode&&this.overlay.parentNode.removeChild(this.overlay)},d.DialogManager.prototype.containedByTopDialog_=function(e){while(e=s(e)){for(var t,i=0;t=this.pendingDialogStack[i];++i)if(t.dialog===e)return 0===i;e=e.parentElement}return!1},d.DialogManager.prototype.handleFocus_=function(e){if(!this.containedByTopDialog_(e.target)&&(e.preventDefault(),e.stopPropagation(),o(e.target),void 0!==this.forwardTab_)){var t=this.pendingDialogStack[0],i=t.dialog,n=i.compareDocumentPosition(e.target);return n&Node.DOCUMENT_POSITION_PRECEDING&&(this.forwardTab_?t.focus_():document.documentElement.focus()),!1}},d.DialogManager.prototype.handleKey_=function(e){if(this.forwardTab_=void 0,27===e.keyCode){e.preventDefault(),e.stopPropagation();var t=new a("cancel",{bubbles:!1,cancelable:!0}),i=this.pendingDialogStack[0];i&&i.dialog.dispatchEvent(t)&&i.dialog.close()}else 9===e.keyCode&&(this.forwardTab_=!e.shiftKey)},d.DialogManager.prototype.checkDOM_=function(e){var t=this.pendingDialogStack.slice();t.forEach((function(t){-1!==e.indexOf(t.dialog)?t.downgradeModal():t.maybeHideModal()}))},d.DialogManager.prototype.pushDialog=function(e){var t=(this.zIndexHigh_-this.zIndexLow_)/2-1;return!(this.pendingDialogStack.length>=t)&&(1===this.pendingDialogStack.unshift(e)&&this.blockDocument(),this.updateStacking(),!0)},d.DialogManager.prototype.removeDialog=function(e){var t=this.pendingDialogStack.indexOf(e);-1!==t&&(this.pendingDialogStack.splice(t,1),0===this.pendingDialogStack.length&&this.unblockDocument(),this.updateStacking())},d.dm=new d.DialogManager,d.formSubmitter=null,d.useValue=null,void 0===window.HTMLDialogElement){var h=document.createElement("form");if(h.setAttribute("method","dialog"),"dialog"!==h.method){var f=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"method");if(f){var p=f.get;f.get=function(){return c(this)?"dialog":p.call(this)};var g=f.set;f.set=function(e){return"string"===typeof e&&"dialog"===e.toLowerCase()?this.setAttribute("method",e):g.call(this,e)},Object.defineProperty(HTMLFormElement.prototype,"method",f)}}document.addEventListener("click",(function(e){if(d.formSubmitter=null,d.useValue=null,!e.defaultPrevented){var t=e.target;if(t&&c(t.form)){var i="submit"===t.type&&["button","input"].indexOf(t.localName)>-1;if(!i){if("input"!==t.localName||"image"!==t.type)return;d.useValue=e.offsetX+","+e.offsetY}var n=s(t);n&&(d.formSubmitter=t)}}}),!1);var m=HTMLFormElement.prototype.submit,v=function(){if(!c(this))return m.call(this);var e=s(this);e&&e.close()};HTMLFormElement.prototype.submit=v,document.addEventListener("submit",(function(e){var t=e.target;if(c(t)){e.preventDefault();var i=s(t);if(i){var n=d.formSubmitter;n&&n.form===t?i.close(d.useValue||n.value):i.close(),d.formSubmitter=null}}}),!0)}d["forceRegisterDialog"]=d.forceRegisterDialog,d["registerDialog"]=d.registerDialog,"amd"in i.amdD?(n=function(){return d}.call(t,i,t,e),void 0===n||(e.exports=n)):"object"===typeof e["exports"]?e["exports"]=d:window["dialogPolyfill"]=d})()},74997:()=>{ +/** + * @license + * Copyright 2015 Google Inc. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +(function(){"use strict";var e=function(e){this.element_=e,this.init()};window["MaterialButton"]=e,e.prototype.Constant_={},e.prototype.CssClasses_={RIPPLE_EFFECT:"mdl-js-ripple-effect",RIPPLE_CONTAINER:"mdl-button__ripple-container",RIPPLE:"mdl-ripple"},e.prototype.blurHandler_=function(e){e&&this.element_.blur()},e.prototype.disable=function(){this.element_.disabled=!0},e.prototype["disable"]=e.prototype.disable,e.prototype.enable=function(){this.element_.disabled=!1},e.prototype["enable"]=e.prototype.enable,e.prototype.init=function(){if(this.element_){if(this.element_.classList.contains(this.CssClasses_.RIPPLE_EFFECT)){var e=document.createElement("span");e.classList.add(this.CssClasses_.RIPPLE_CONTAINER),this.rippleElement_=document.createElement("span"),this.rippleElement_.classList.add(this.CssClasses_.RIPPLE),e.appendChild(this.rippleElement_),this.boundRippleBlurHandler=this.blurHandler_.bind(this),this.rippleElement_.addEventListener("mouseup",this.boundRippleBlurHandler),this.element_.appendChild(e)}this.boundButtonBlurHandler=this.blurHandler_.bind(this),this.element_.addEventListener("mouseup",this.boundButtonBlurHandler),this.element_.addEventListener("mouseleave",this.boundButtonBlurHandler)}},componentHandler.register({constructor:e,classAsString:"MaterialButton",cssClass:"mdl-js-button",widget:!0})})()},73544:()=>{ +/** + * @license + * Copyright 2015 Google Inc. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +var e={upgradeDom:function(e,t){},upgradeElement:function(e,t){},upgradeElements:function(e){},upgradeAllRegistered:function(){},registerUpgradedCallback:function(e,t){},register:function(e){},downgradeElements:function(e){}};e=function(){"use strict";var e=[],t=[],i="mdlComponentConfigInternal_";function n(t,i){for(var n=0;n0&&c(t.children))}function u(t){var a="undefined"===typeof t.widget&&"undefined"===typeof t["widget"],r=!0;a||(r=t.widget||t["widget"]);var s={classConstructor:t.constructor||t["constructor"],className:t.classAsString||t["classAsString"],cssClass:t.cssClass||t["cssClass"],widget:r,callbacks:[]};if(e.forEach((function(e){if(e.cssClass===s.cssClass)throw new Error("The provided cssClass has already been registered: "+e.cssClass);if(e.className===s.className)throw new Error("The provided className has already been registered")})),t.constructor.prototype.hasOwnProperty(i))throw new Error("MDL component classes must not have "+i+" defined as a property.");var o=n(t.classAsString,s);o||e.push(s)}function d(e,t){var i=n(e);i&&i.callbacks.push(t)}function h(){for(var t=0;t{ +/** + * @license + * Copyright 2015 Google Inc. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +(function(){"use strict";var e=function(e){this.element_=e,this.init()};window["MaterialProgress"]=e,e.prototype.Constant_={},e.prototype.CssClasses_={INDETERMINATE_CLASS:"mdl-progress__indeterminate"},e.prototype.setProgress=function(e){this.element_.classList.contains(this.CssClasses_.INDETERMINATE_CLASS)||(this.progressbar_.style.width=e+"%")},e.prototype["setProgress"]=e.prototype.setProgress,e.prototype.setBuffer=function(e){this.bufferbar_.style.width=e+"%",this.auxbar_.style.width=100-e+"%"},e.prototype["setBuffer"]=e.prototype.setBuffer,e.prototype.init=function(){if(this.element_){var e=document.createElement("div");e.className="progressbar bar bar1",this.element_.appendChild(e),this.progressbar_=e,e=document.createElement("div"),e.className="bufferbar bar bar2",this.element_.appendChild(e),this.bufferbar_=e,e=document.createElement("div"),e.className="auxbar bar bar3",this.element_.appendChild(e),this.auxbar_=e,this.progressbar_.style.width="0%",this.bufferbar_.style.width="100%",this.auxbar_.style.width="0%",this.element_.classList.add("is-upgraded")}},componentHandler.register({constructor:e,classAsString:"MaterialProgress",cssClass:"mdl-js-progress",widget:!0})})()},95634:()=>{ +/** + * @license + * Copyright 2015 Google Inc. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +(function(){"use strict";var e=function(e){this.element_=e,this.init()};window["MaterialSpinner"]=e,e.prototype.Constant_={MDL_SPINNER_LAYER_COUNT:4},e.prototype.CssClasses_={MDL_SPINNER_LAYER:"mdl-spinner__layer",MDL_SPINNER_CIRCLE_CLIPPER:"mdl-spinner__circle-clipper",MDL_SPINNER_CIRCLE:"mdl-spinner__circle",MDL_SPINNER_GAP_PATCH:"mdl-spinner__gap-patch",MDL_SPINNER_LEFT:"mdl-spinner__left",MDL_SPINNER_RIGHT:"mdl-spinner__right"},e.prototype.createLayer=function(e){var t=document.createElement("div");t.classList.add(this.CssClasses_.MDL_SPINNER_LAYER),t.classList.add(this.CssClasses_.MDL_SPINNER_LAYER+"-"+e);var i=document.createElement("div");i.classList.add(this.CssClasses_.MDL_SPINNER_CIRCLE_CLIPPER),i.classList.add(this.CssClasses_.MDL_SPINNER_LEFT);var n=document.createElement("div");n.classList.add(this.CssClasses_.MDL_SPINNER_GAP_PATCH);var a=document.createElement("div");a.classList.add(this.CssClasses_.MDL_SPINNER_CIRCLE_CLIPPER),a.classList.add(this.CssClasses_.MDL_SPINNER_RIGHT);for(var r=[i,n,a],s=0;s{ +/** + * @license + * Copyright 2015 Google Inc. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +(function(){"use strict";var e=function(e){this.element_=e,this.maxRows=this.Constant_.NO_MAX_ROWS,this.init()};window["MaterialTextfield"]=e,e.prototype.Constant_={NO_MAX_ROWS:-1,MAX_ROWS_ATTRIBUTE:"maxrows"},e.prototype.CssClasses_={LABEL:"mdl-textfield__label",INPUT:"mdl-textfield__input",IS_DIRTY:"is-dirty",IS_FOCUSED:"is-focused",IS_DISABLED:"is-disabled",IS_INVALID:"is-invalid",IS_UPGRADED:"is-upgraded",HAS_PLACEHOLDER:"has-placeholder"},e.prototype.onKeyDown_=function(e){var t=e.target.value.split("\n").length;13===e.keyCode&&t>=this.maxRows&&e.preventDefault()},e.prototype.onFocus_=function(e){this.element_.classList.add(this.CssClasses_.IS_FOCUSED)},e.prototype.onBlur_=function(e){this.element_.classList.remove(this.CssClasses_.IS_FOCUSED)},e.prototype.onReset_=function(e){this.updateClasses_()},e.prototype.updateClasses_=function(){this.checkDisabled(),this.checkValidity(),this.checkDirty(),this.checkFocus()},e.prototype.checkDisabled=function(){this.input_.disabled?this.element_.classList.add(this.CssClasses_.IS_DISABLED):this.element_.classList.remove(this.CssClasses_.IS_DISABLED)},e.prototype["checkDisabled"]=e.prototype.checkDisabled,e.prototype.checkFocus=function(){Boolean(this.element_.querySelector(":focus"))?this.element_.classList.add(this.CssClasses_.IS_FOCUSED):this.element_.classList.remove(this.CssClasses_.IS_FOCUSED)},e.prototype["checkFocus"]=e.prototype.checkFocus,e.prototype.checkValidity=function(){this.input_.validity&&(this.input_.validity.valid?this.element_.classList.remove(this.CssClasses_.IS_INVALID):this.element_.classList.add(this.CssClasses_.IS_INVALID))},e.prototype["checkValidity"]=e.prototype.checkValidity,e.prototype.checkDirty=function(){this.input_.value&&this.input_.value.length>0?this.element_.classList.add(this.CssClasses_.IS_DIRTY):this.element_.classList.remove(this.CssClasses_.IS_DIRTY)},e.prototype["checkDirty"]=e.prototype.checkDirty,e.prototype.disable=function(){this.input_.disabled=!0,this.updateClasses_()},e.prototype["disable"]=e.prototype.disable,e.prototype.enable=function(){this.input_.disabled=!1,this.updateClasses_()},e.prototype["enable"]=e.prototype.enable,e.prototype.change=function(e){this.input_.value=e||"",this.updateClasses_()},e.prototype["change"]=e.prototype.change,e.prototype.init=function(){if(this.element_&&(this.label_=this.element_.querySelector("."+this.CssClasses_.LABEL),this.input_=this.element_.querySelector("."+this.CssClasses_.INPUT),this.input_)){this.input_.hasAttribute(this.Constant_.MAX_ROWS_ATTRIBUTE)&&(this.maxRows=parseInt(this.input_.getAttribute(this.Constant_.MAX_ROWS_ATTRIBUTE),10),isNaN(this.maxRows)&&(this.maxRows=this.Constant_.NO_MAX_ROWS)),this.input_.hasAttribute("placeholder")&&this.element_.classList.add(this.CssClasses_.HAS_PLACEHOLDER),this.boundUpdateClassesHandler=this.updateClasses_.bind(this),this.boundFocusHandler=this.onFocus_.bind(this),this.boundBlurHandler=this.onBlur_.bind(this),this.boundResetHandler=this.onReset_.bind(this),this.input_.addEventListener("input",this.boundUpdateClassesHandler),this.input_.addEventListener("focus",this.boundFocusHandler),this.input_.addEventListener("blur",this.boundBlurHandler),this.input_.addEventListener("reset",this.boundResetHandler),this.maxRows!==this.Constant_.NO_MAX_ROWS&&(this.boundKeyDownHandler=this.onKeyDown_.bind(this),this.input_.addEventListener("keydown",this.boundKeyDownHandler));var e=this.element_.classList.contains(this.CssClasses_.IS_INVALID);this.updateClasses_(),this.element_.classList.add(this.CssClasses_.IS_UPGRADED),e&&this.element_.classList.add(this.CssClasses_.IS_INVALID),this.input_.hasAttribute("autofocus")&&(this.element_.focus(),this.checkFocus())}},componentHandler.register({constructor:e,classAsString:"MaterialTextfield",cssClass:"mdl-js-textfield",widget:!0})})()},17832:(e,t,i)=>{"use strict";i.d(t,{sj:()=>p,CO:()=>m,Ld:()=>g});Symbol();const n=Symbol();const a=Object.getPrototypeOf,r=new WeakMap,s=e=>e&&(r.has(e)?r.get(e):a(e)===Object.prototype||a(e)===Array.prototype),o=e=>s(e)&&e[n]||null,l=(e,t=!0)=>{r.set(e,t)},c=e=>"object"===typeof e&&null!==e,u=new WeakMap,d=new WeakSet,h=(e=Object.is,t=(e,t)=>new Proxy(e,t),i=e=>c(e)&&!d.has(e)&&(Array.isArray(e)||!(Symbol.iterator in e))&&!(e instanceof WeakMap)&&!(e instanceof WeakSet)&&!(e instanceof Error)&&!(e instanceof Number)&&!(e instanceof Date)&&!(e instanceof String)&&!(e instanceof RegExp)&&!(e instanceof ArrayBuffer),n=e=>{switch(e.status){case"fulfilled":return e.value;case"rejected":throw e.reason;default:throw e}},a=new WeakMap,r=(e,t,i=n)=>{const s=a.get(e);if((null==s?void 0:s[0])===t)return s[1];const o=Array.isArray(e)?[]:Object.create(Object.getPrototypeOf(e));return l(o,!0),a.set(e,[t,o]),Reflect.ownKeys(e).forEach((t=>{if(Object.getOwnPropertyDescriptor(o,t))return;const n=Reflect.get(e,t),a={value:n,enumerable:!0,configurable:!0};if(d.has(n))l(n,!1);else if(n instanceof Promise)delete a.value,a.get=()=>i(n);else if(u.has(n)){const[e,t]=u.get(n);a.value=r(e,t(),i)}Object.defineProperty(o,t,a)})),Object.preventExtensions(o)},s=new WeakMap,h=[1,1],f=n=>{if(!c(n))throw new Error("object required");const a=s.get(n);if(a)return a;let l=h[0];const p=new Set,g=(e,t=++h[0])=>{l!==t&&(l=t,p.forEach((i=>i(e,t))))};let m=h[1];const v=(e=++h[1])=>(m===e||p.size||(m=e,y.forEach((([t])=>{const i=t[1](e);i>l&&(l=i)}))),l),b=e=>(t,i)=>{const n=[...t];n[1]=[e,...n[1]],g(n,i)},y=new Map,w=(e,t)=>{if(y.has(e))throw new Error("prop listener already exists");if(p.size){const i=t[3](b(e));y.set(e,[t,i])}else y.set(e,[t])},S=e=>{var t;const i=y.get(e);i&&(y.delete(e),null==(t=i[1])||t.call(i))},I=e=>{p.add(e),1===p.size&&y.forEach((([e,t],i)=>{if(t)throw new Error("remove already exists");const n=e[3](b(i));y.set(i,[e,n])}));const t=()=>{p.delete(e),0===p.size&&y.forEach((([e,t],i)=>{t&&(t(),y.set(i,[e]))}))};return t},E=Array.isArray(n)?[]:Object.create(Object.getPrototypeOf(n)),C={deleteProperty(e,t){const i=Reflect.get(e,t);S(t);const n=Reflect.deleteProperty(e,t);return n&&g(["delete",[t],i]),n},set(t,n,a,r){const l=Reflect.has(t,n),h=Reflect.get(t,n,r);if(l&&(e(h,a)||s.has(a)&&e(h,s.get(a))))return!0;S(n),c(a)&&(a=o(a)||a);let p=a;if(a instanceof Promise)a.then((e=>{a.status="fulfilled",a.value=e,g(["resolve",[n],e])})).catch((e=>{a.status="rejected",a.reason=e,g(["reject",[n],e])}));else{!u.has(a)&&i(a)&&(p=f(a));const e=!d.has(p)&&u.get(p);e&&w(n,e)}return Reflect.set(t,n,p,r),g(["set",[n],a,h]),!0}},k=t(E,C);s.set(n,k);const _=[E,v,r,I];return u.set(k,_),Reflect.ownKeys(n).forEach((e=>{const t=Object.getOwnPropertyDescriptor(n,e);"value"in t&&(k[e]=n[e],delete t.value,delete t.writable),Object.defineProperty(E,e,t)})),k})=>[f,u,d,e,t,i,n,a,r,s,h],[f]=h();function p(e={}){return f(e)}function g(e,t,i){const n=u.get(e);let a;n||console.warn("Please use proxy object");const r=[],s=n[3];let o=!1;const l=e=>{r.push(e),i?t(r.splice(0)):a||(a=Promise.resolve().then((()=>{a=void 0,o&&t(r.splice(0))})))},c=s(l);return o=!0,()=>{o=!1,c()}}function m(e,t){const i=u.get(e);i||console.warn("Please use proxy object");const[n,a,r]=i;return r(n,a(),t)}}}]); \ No newline at end of file diff --git a/HomeUI/dist/js/4156.js b/HomeUI/dist/js/4156.js deleted file mode 100644 index a9431b033..000000000 --- a/HomeUI/dist/js/4156.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(globalThis["webpackChunkflux"]=globalThis["webpackChunkflux"]||[]).push([[4156],{57796:(t,e,r)=>{r.d(e,{Z:()=>u});var n=function(){var t=this,e=t._self._c;return e("div",{staticClass:"collapse-icon",class:t.collapseClasses,attrs:{role:"tablist"}},[t._t("default")],2)},o=[],a=(r(70560),r(57632));const s={props:{accordion:{type:Boolean,default:!1},hover:{type:Boolean,default:!1},type:{type:String,default:"default"}},data(){return{collapseID:""}},computed:{collapseClasses(){const t=[],e={default:"collapse-default",border:"collapse-border",shadow:"collapse-shadow",margin:"collapse-margin"};return t.push(e[this.type]),t}},created(){this.collapseID=(0,a.Z)()}},i=s;var l=r(1001),c=(0,l.Z)(i,n,o,!1,null,null,null);const u=c.exports},22049:(t,e,r)=>{r.d(e,{Z:()=>h});var n=function(){var t=this,e=t._self._c;return e("b-card",{class:{open:t.visible},attrs:{"no-body":""},on:{mouseenter:t.collapseOpen,mouseleave:t.collapseClose,focus:t.collapseOpen,blur:t.collapseClose}},[e("b-card-header",{class:{collapsed:!t.visible},attrs:{"aria-expanded":t.visible?"true":"false","aria-controls":t.collapseItemID,role:"tab","data-toggle":"collapse"},on:{click:function(e){return t.updateVisible(!t.visible)}}},[t._t("header",(function(){return[e("span",{staticClass:"lead collapse-title"},[t._v(t._s(t.title))])]}))],2),e("b-collapse",{attrs:{id:t.collapseItemID,accordion:t.accordion,role:"tabpanel"},model:{value:t.visible,callback:function(e){t.visible=e},expression:"visible"}},[e("b-card-body",[t._t("default")],2)],1)],1)},o=[],a=r(86855),s=r(87047),i=r(19279),l=r(11688),c=r(57632);const u={components:{BCard:a._,BCardHeader:s.p,BCardBody:i.O,BCollapse:l.k},props:{isVisible:{type:Boolean,default:!1},title:{type:String,required:!0}},data(){return{visible:!1,collapseItemID:"",openOnHover:this.$parent.hover}},computed:{accordion(){return this.$parent.accordion?`accordion-${this.$parent.collapseID}`:null}},created(){this.collapseItemID=(0,c.Z)(),this.visible=this.isVisible},methods:{updateVisible(t=!0){this.visible=t,this.$emit("visible",t)},collapseOpen(){this.openOnHover&&this.updateVisible(!0)},collapseClose(){this.openOnHover&&this.updateVisible(!1)}}},p=u;var f=r(1001),d=(0,f.Z)(p,n,o,!1,null,null,null);const h=d.exports},34547:(t,e,r)=>{r.d(e,{Z:()=>u});var n=function(){var t=this,e=t._self._c;return e("div",{staticClass:"toastification"},[e("div",{staticClass:"d-flex align-items-start"},[e("b-avatar",{staticClass:"mr-75 flex-shrink-0",attrs:{variant:t.variant,size:"1.8rem"}},[e("feather-icon",{attrs:{icon:t.icon,size:"15"}})],1),e("div",{staticClass:"d-flex flex-grow-1"},[e("div",[t.title?e("h5",{staticClass:"mb-0 font-weight-bolder toastification-title",class:`text-${t.variant}`,domProps:{textContent:t._s(t.title)}}):t._e(),t.text?e("small",{staticClass:"d-inline-block text-body",domProps:{textContent:t._s(t.text)}}):t._e()]),e("span",{staticClass:"cursor-pointer toastification-close-icon ml-auto",on:{click:function(e){return t.$emit("close-toast")}}},[t.hideClose?t._e():e("feather-icon",{staticClass:"text-body",attrs:{icon:"XIcon"}})],1)])],1)])},o=[],a=r(47389);const s={components:{BAvatar:a.SH},props:{variant:{type:String,default:"primary"},icon:{type:String,default:null},title:{type:String,default:null},text:{type:String,default:null},hideClose:{type:Boolean,default:!1}}},i=s;var l=r(1001),c=(0,l.Z)(i,n,o,!1,null,"22d964ca",null);const u=c.exports},57632:(t,e,r)=>{r.d(e,{Z:()=>p});const n="undefined"!==typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),o={randomUUID:n};let a;const s=new Uint8Array(16);function i(){if(!a&&(a="undefined"!==typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!a))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return a(s)}const l=[];for(let f=0;f<256;++f)l.push((f+256).toString(16).slice(1));function c(t,e=0){return l[t[e+0]]+l[t[e+1]]+l[t[e+2]]+l[t[e+3]]+"-"+l[t[e+4]]+l[t[e+5]]+"-"+l[t[e+6]]+l[t[e+7]]+"-"+l[t[e+8]]+l[t[e+9]]+"-"+l[t[e+10]]+l[t[e+11]]+l[t[e+12]]+l[t[e+13]]+l[t[e+14]]+l[t[e+15]]}function u(t,e,r){if(o.randomUUID&&!e&&!t)return o.randomUUID();t=t||{};const n=t.random||(t.rng||i)();if(n[6]=15&n[6]|64,n[8]=63&n[8]|128,e){r=r||0;for(let t=0;t<16;++t)e[r+t]=n[t];return e}return c(n)}const p=u},84328:(t,e,r)=>{var n=r(65290),o=r(27578),a=r(6310),s=function(t){return function(e,r,s){var i,l=n(e),c=a(l),u=o(s,c);if(t&&r!==r){while(c>u)if(i=l[u++],i!==i)return!0}else for(;c>u;u++)if((t||u in l)&&l[u]===r)return t||u||0;return!t&&-1}};t.exports={includes:s(!0),indexOf:s(!1)}},5649:(t,e,r)=>{var n=r(67697),o=r(92297),a=TypeError,s=Object.getOwnPropertyDescriptor,i=n&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(t){return t instanceof TypeError}}();t.exports=i?function(t,e){if(o(t)&&!s(t,"length").writable)throw new a("Cannot set read only .length");return t.length=e}:function(t,e){return t.length=e}},8758:(t,e,r)=>{var n=r(36812),o=r(19152),a=r(82474),s=r(72560);t.exports=function(t,e,r){for(var i=o(e),l=s.f,c=a.f,u=0;u{var e=TypeError,r=9007199254740991;t.exports=function(t){if(t>r)throw e("Maximum allowed index exceeded");return t}},72739:t=>{t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},79989:(t,e,r)=>{var n=r(19037),o=r(82474).f,a=r(75773),s=r(11880),i=r(95014),l=r(8758),c=r(35266);t.exports=function(t,e){var r,u,p,f,d,h,v=t.target,y=t.global,b=t.stat;if(u=y?n:b?n[v]||i(v,{}):(n[v]||{}).prototype,u)for(p in e){if(d=e[p],t.dontCallGetSet?(h=o(u,p),f=h&&h.value):f=u[p],r=c(y?p:v+(b?".":"#")+p,t.forced),!r&&void 0!==f){if(typeof d==typeof f)continue;l(d,f)}(t.sham||f&&f.sham)&&a(d,"sham",!0),s(u,p,d,t)}}},94413:(t,e,r)=>{var n=r(68844),o=r(3689),a=r(6648),s=Object,i=n("".split);t.exports=o((function(){return!s("z").propertyIsEnumerable(0)}))?function(t){return"String"===a(t)?i(t,""):s(t)}:s},92297:(t,e,r)=>{var n=r(6648);t.exports=Array.isArray||function(t){return"Array"===n(t)}},35266:(t,e,r)=>{var n=r(3689),o=r(69985),a=/#|\.prototype\./,s=function(t,e){var r=l[i(t)];return r===u||r!==c&&(o(e)?n(e):!!e)},i=s.normalize=function(t){return String(t).replace(a,".").toLowerCase()},l=s.data={},c=s.NATIVE="N",u=s.POLYFILL="P";t.exports=s},6310:(t,e,r)=>{var n=r(43126);t.exports=function(t){return n(t.length)}},58828:t=>{var e=Math.ceil,r=Math.floor;t.exports=Math.trunc||function(t){var n=+t;return(n>0?r:e)(n)}},82474:(t,e,r)=>{var n=r(67697),o=r(22615),a=r(49556),s=r(75684),i=r(65290),l=r(18360),c=r(36812),u=r(68506),p=Object.getOwnPropertyDescriptor;e.f=n?p:function(t,e){if(t=i(t),e=l(e),u)try{return p(t,e)}catch(r){}if(c(t,e))return s(!o(a.f,t,e),t[e])}},72741:(t,e,r)=>{var n=r(54948),o=r(72739),a=o.concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return n(t,a)}},7518:(t,e)=>{e.f=Object.getOwnPropertySymbols},54948:(t,e,r)=>{var n=r(68844),o=r(36812),a=r(65290),s=r(84328).indexOf,i=r(57248),l=n([].push);t.exports=function(t,e){var r,n=a(t),c=0,u=[];for(r in n)!o(i,r)&&o(n,r)&&l(u,r);while(e.length>c)o(n,r=e[c++])&&(~s(u,r)||l(u,r));return u}},49556:(t,e)=>{var r={}.propertyIsEnumerable,n=Object.getOwnPropertyDescriptor,o=n&&!r.call({1:2},1);e.f=o?function(t){var e=n(this,t);return!!e&&e.enumerable}:r},19152:(t,e,r)=>{var n=r(76058),o=r(68844),a=r(72741),s=r(7518),i=r(85027),l=o([].concat);t.exports=n("Reflect","ownKeys")||function(t){var e=a.f(i(t)),r=s.f;return r?l(e,r(t)):e}},27578:(t,e,r)=>{var n=r(68700),o=Math.max,a=Math.min;t.exports=function(t,e){var r=n(t);return r<0?o(r+e,0):a(r,e)}},65290:(t,e,r)=>{var n=r(94413),o=r(74684);t.exports=function(t){return n(o(t))}},68700:(t,e,r)=>{var n=r(58828);t.exports=function(t){var e=+t;return e!==e||0===e?0:n(e)}},43126:(t,e,r)=>{var n=r(68700),o=Math.min;t.exports=function(t){return t>0?o(n(t),9007199254740991):0}},70560:(t,e,r)=>{var n=r(79989),o=r(90690),a=r(6310),s=r(5649),i=r(55565),l=r(3689),c=l((function(){return 4294967297!==[].push.call({length:4294967296},1)})),u=function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(t){return t instanceof TypeError}},p=c||!u();n({target:"Array",proto:!0,arity:1,forced:p},{push:function(t){var e=o(this),r=a(e),n=arguments.length;i(r+n);for(var l=0;l{"use strict";i.r(e),i.d(e,{default:()=>da});var o=function(){var t=this,e=t._self._c;return e("div",[e("b-modal",{attrs:{"hide-footer":"",centered:"","hide-header-close":"","no-close-on-backdrop":"","no-close-on-esc":"",size:"lg","header-bg-variant":"primary",title:t.operationTitle,"title-tag":"h5"},model:{value:t.progressVisable,callback:function(e){t.progressVisable=e},expression:"progressVisable"}},[e("div",{staticClass:"d-flex flex-column justify-content-center align-items-center",staticStyle:{height:"100%"}},[e("div",{staticClass:"d-flex align-items-center mb-2"},[e("b-spinner",{attrs:{label:"Loading..."}}),e("div",{staticClass:"ml-1"},[t._v(" Waiting for the operation to be completed... ")])],1)])]),e("b-card",[e("b-card-sub-title",[t._v(" Note: Mining of any sort including bandwidth mining is prohibited as well as any illegal activites. Please read through "),e("b-link",{attrs:{href:"https://cdn.runonflux.io/Flux_Terms_of_Service.pdf",target:"_blank","active-class":"primary",rel:"noopener noreferrer"}},[t._v(" Terms of Service ")]),t._v(" before deploying your application. In case of any question please contact the Flux Community via "),e("b-link",{attrs:{href:"https://discord.gg/runonflux",target:"_blank","active-class":"primary",rel:"noopener noreferrer"}},[t._v(" Discord ")]),t._v(" or submit an issue directly to "),e("b-link",{attrs:{href:"https://github.com/RunOnFlux/flux",target:"_blank","active-class":"primary",rel:"noopener noreferrer"}},[t._v(" Flux repository. ")]),t._v(". ")],1)],1),t.specificationVersion>=4?e("div",{on:{dragover:t.dragover,dragleave:t.dragleave,drop:t.drop}},[e("b-overlay",{attrs:{"no-center":"",variant:"transparent",opacity:"1",blur:"3px",show:t.isDragging,rounded:"sm"},scopedSlots:t._u([{key:"overlay",fn:function(){return[e("div",{staticClass:"text-center",attrs:{id:"fileDropOverlay"}},[e("b-icon",{attrs:{icon:"folder","font-scale":"8",animation:"cylon"}}),e("div",{staticClass:"text bd-highlight",staticStyle:{"font-size":"20px"}},[t._v(" Drop your docker-compose.yaml here ")])],1)]},proxy:!0}],null,!1,854400542)},[e("b-row",{staticClass:"match-height"},[e("b-col",{attrs:{xs:"6"}},[e("b-form-file",{ref:"uploadSpecs",staticClass:"d-none",on:{input:t.loadFile}}),e("b-card",[e("b-row",{attrs:{"align-h":"end"}},[e("b-col",[e("b-card-title",[t._v(" Details ")])],1),e("b-col",{staticClass:"pr-0 mb-1",attrs:{sm:"auto"}},[e("b-button",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.top",value:"Upload Docker Compose File",expression:"'Upload Docker Compose File'",modifiers:{hover:!0,top:!0}}],staticClass:"mr-0",attrs:{variant:"outline-primary"},on:{click:t.uploadFile}},[e("v-icon",{attrs:{name:"cloud-download-alt"}}),t._v(" Upload ")],1)],1),e("b-col",{staticClass:"pl-1 mb-1",attrs:{sm:"auto"}},[e("b-button",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.top",value:"Import Application Specification",expression:"'Import Application Specification'",modifiers:{hover:!0,top:!0}}],staticClass:"ml-0",attrs:{variant:"outline-primary"},on:{click:function(e){t.importAppSpecs=!0}}},[e("v-icon",{attrs:{name:"cloud-download-alt"}}),t._v(" Import ")],1)],1)],1),e("b-form-group",{attrs:{"label-cols":"2","label-cols-lg":"1",label:"Version","label-for":"version"}},[e("b-form-input",{attrs:{id:"version",placeholder:t.appRegistrationSpecification.version.toString(),readonly:""},model:{value:t.appRegistrationSpecification.version,callback:function(e){t.$set(t.appRegistrationSpecification,"version",e)},expression:"appRegistrationSpecification.version"}})],1),e("b-form-group",{attrs:{"label-cols":"2","label-cols-lg":"1",label:"Name","label-for":"name"}},[e("b-form-input",{attrs:{id:"name",placeholder:"Application Name"},model:{value:t.appRegistrationSpecification.name,callback:function(e){t.$set(t.appRegistrationSpecification,"name",e)},expression:"appRegistrationSpecification.name"}})],1),e("b-form-group",{attrs:{"label-cols":"2","label-cols-lg":"1",label:"Desc.","label-for":"desc"}},[e("b-form-textarea",{attrs:{id:"desc",placeholder:"Description",rows:"3"},model:{value:t.appRegistrationSpecification.description,callback:function(e){t.$set(t.appRegistrationSpecification,"description",e)},expression:"appRegistrationSpecification.description"}})],1),e("b-form-group",{attrs:{"label-cols":"2","label-cols-lg":"1",label:"Owner","label-for":"owner"}},[e("b-form-input",{attrs:{id:"owner",placeholder:"Flux ID of Application Owner"},model:{value:t.appRegistrationSpecification.owner,callback:function(e){t.$set(t.appRegistrationSpecification,"owner",e)},expression:"appRegistrationSpecification.owner"}})],1),t.specificationVersion>=5?e("div",[e("div",{staticClass:"form-row form-group"},[e("label",{staticClass:"col-1 col-form-label"},[t._v(" Contacts "),e("v-icon",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.top",value:"Array of strings of emails Contacts to get notifications ex. app about to expire, app spawns. Contacts are also PUBLIC information.",expression:"'Array of strings of emails Contacts to get notifications ex. app about to expire, app spawns. Contacts are also PUBLIC information.'",modifiers:{hover:!0,top:!0}}],staticClass:"mr-1",attrs:{name:"info-circle"}})],1),e("div",{staticClass:"col"},[e("b-form-input",{attrs:{id:"contacs"},model:{value:t.appRegistrationSpecification.contacts,callback:function(e){t.$set(t.appRegistrationSpecification,"contacts",e)},expression:"appRegistrationSpecification.contacts"}})],1),e("div",{staticClass:"col-0"},[e("b-button",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.top",value:"Uploads Contacts to Flux Storage. Contacts will be replaced with a link to Flux Storage instead. This increases maximum allowed contacts while adding enhanced privacy - nobody except FluxOS Team maintaining notifications system has access to contacts.",expression:"\n 'Uploads Contacts to Flux Storage. Contacts will be replaced with a link to Flux Storage instead. This increases maximum allowed contacts while adding enhanced privacy - nobody except FluxOS Team maintaining notifications system has access to contacts.'\n ",modifiers:{hover:!0,top:!0}}],attrs:{id:"upload-contacts",variant:"outline-primary"}},[e("v-icon",{attrs:{name:"cloud-upload-alt"}})],1),e("confirm-dialog",{attrs:{target:"upload-contacts","confirm-button":"Upload Contacts",width:600},on:{confirm:function(e){return t.uploadContactsToFluxStorage()}}})],1)]),t.specificationVersion>=5&&!t.isPrivateApp?e("div",[e("h4",[t._v("Allowed Geolocation")]),t._l(t.numberOfGeolocations,(function(i){return e("div",{key:`${i}pos`},[e("b-form-group",{attrs:{"label-cols":"3","label-cols-lg":"1",label:`Continent - ${i}`,"label-for":"Continent"}},[e("b-form-select",{attrs:{id:"Continent",options:t.continentsOptions(!1)},on:{change:function(e){return t.adjustMaxInstancesPossible()}},scopedSlots:t._u([{key:"first",fn:function(){return[e("b-form-select-option",{attrs:{value:void 0,disabled:""}},[t._v(" -- Select to restrict Continent -- ")])]},proxy:!0}],null,!0),model:{value:t.allowedGeolocations[`selectedContinent${i}`],callback:function(e){t.$set(t.allowedGeolocations,`selectedContinent${i}`,e)},expression:"allowedGeolocations[`selectedContinent${n}`]"}})],1),t.allowedGeolocations[`selectedContinent${i}`]&&"ALL"!==t.allowedGeolocations[`selectedContinent${i}`]?e("b-form-group",{attrs:{"label-cols":"3","label-cols-lg":"1",label:`Country - ${i}`,"label-for":"Country"}},[e("b-form-select",{attrs:{id:"country",options:t.countriesOptions(t.allowedGeolocations[`selectedContinent${i}`],!1)},on:{change:function(e){return t.adjustMaxInstancesPossible()}},scopedSlots:t._u([{key:"first",fn:function(){return[e("b-form-select-option",{attrs:{value:void 0,disabled:""}},[t._v(" -- Select to restrict Country -- ")])]},proxy:!0}],null,!0),model:{value:t.allowedGeolocations[`selectedCountry${i}`],callback:function(e){t.$set(t.allowedGeolocations,`selectedCountry${i}`,e)},expression:"allowedGeolocations[`selectedCountry${n}`]"}})],1):t._e(),t.allowedGeolocations[`selectedContinent${i}`]&&"ALL"!==t.allowedGeolocations[`selectedContinent${i}`]&&t.allowedGeolocations[`selectedCountry${i}`]&&"ALL"!==t.allowedGeolocations[`selectedCountry${i}`]?e("b-form-group",{attrs:{"label-cols":"3","label-cols-lg":"1",label:`Region - ${i}`,"label-for":"Region"}},[e("b-form-select",{attrs:{id:"Region",options:t.regionsOptions(t.allowedGeolocations[`selectedContinent${i}`],t.allowedGeolocations[`selectedCountry${i}`],!1)},on:{change:function(e){return t.adjustMaxInstancesPossible()}},scopedSlots:t._u([{key:"first",fn:function(){return[e("b-form-select-option",{attrs:{value:void 0,disabled:""}},[t._v(" -- Select to restrict Region -- ")])]},proxy:!0}],null,!0),model:{value:t.allowedGeolocations[`selectedRegion${i}`],callback:function(e){t.$set(t.allowedGeolocations,`selectedRegion${i}`,e)},expression:"allowedGeolocations[`selectedRegion${n}`]"}})],1):t._e()],1)})),e("div",{staticClass:"text-center"},[t.numberOfGeolocations>1?e("b-button",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.bottom",value:"Remove Allowed Geolocation Restriction",expression:"'Remove Allowed Geolocation Restriction'",modifiers:{hover:!0,bottom:!0}},{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"m-1",attrs:{variant:"outline-secondary",size:"sm"},on:{click:function(e){t.numberOfGeolocations=t.numberOfGeolocations-1,t.adjustMaxInstancesPossible()}}},[e("v-icon",{attrs:{name:"minus"}})],1):t._e(),t.numberOfGeolocations<5?e("b-button",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.bottom",value:"Add Allowed Geolocation Restriction",expression:"'Add Allowed Geolocation Restriction'",modifiers:{hover:!0,bottom:!0}},{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"m-1",attrs:{variant:"outline-secondary",size:"sm"},on:{click:function(e){t.numberOfGeolocations=t.numberOfGeolocations+1,t.adjustMaxInstancesPossible()}}},[e("v-icon",{attrs:{name:"plus"}})],1):t._e()],1)],2):t._e(),e("br"),e("br"),t.specificationVersion>=5&&!t.isPrivateApp?e("div",[e("h4",[t._v("Forbidden Geolocation")]),t._l(t.numberOfNegativeGeolocations,(function(i){return e("div",{key:`${i}posB`},[e("b-form-group",{attrs:{"label-cols":"3","label-cols-lg":"1",label:`Continent - ${i}`,"label-for":"Continent"}},[e("b-form-select",{attrs:{id:"Continent",options:t.continentsOptions(!0)},scopedSlots:t._u([{key:"first",fn:function(){return[e("b-form-select-option",{attrs:{value:void 0,disabled:""}},[t._v(" -- Select to ban Continent -- ")])]},proxy:!0}],null,!0),model:{value:t.forbiddenGeolocations[`selectedContinent${i}`],callback:function(e){t.$set(t.forbiddenGeolocations,`selectedContinent${i}`,e)},expression:"forbiddenGeolocations[`selectedContinent${n}`]"}})],1),t.forbiddenGeolocations[`selectedContinent${i}`]&&"NONE"!==t.forbiddenGeolocations[`selectedContinent${i}`]?e("b-form-group",{attrs:{"label-cols":"3","label-cols-lg":"1",label:`Country - ${i}`,"label-for":"Country"}},[e("b-form-select",{attrs:{id:"country",options:t.countriesOptions(t.forbiddenGeolocations[`selectedContinent${i}`],!0)},scopedSlots:t._u([{key:"first",fn:function(){return[e("b-form-select-option",{attrs:{value:void 0,disabled:""}},[t._v(" -- Select to ban Country -- ")])]},proxy:!0}],null,!0),model:{value:t.forbiddenGeolocations[`selectedCountry${i}`],callback:function(e){t.$set(t.forbiddenGeolocations,`selectedCountry${i}`,e)},expression:"forbiddenGeolocations[`selectedCountry${n}`]"}})],1):t._e(),t.forbiddenGeolocations[`selectedContinent${i}`]&&"NONE"!==t.forbiddenGeolocations[`selectedContinent${i}`]&&t.forbiddenGeolocations[`selectedCountry${i}`]&&"ALL"!==t.forbiddenGeolocations[`selectedCountry${i}`]?e("b-form-group",{attrs:{"label-cols":"3","label-cols-lg":"1",label:`Region - ${i}`,"label-for":"Region"}},[e("b-form-select",{attrs:{id:"Region",options:t.regionsOptions(t.forbiddenGeolocations[`selectedContinent${i}`],t.forbiddenGeolocations[`selectedCountry${i}`],!0)},scopedSlots:t._u([{key:"first",fn:function(){return[e("b-form-select-option",{attrs:{value:void 0,disabled:""}},[t._v(" -- Select to ban Region -- ")])]},proxy:!0}],null,!0),model:{value:t.forbiddenGeolocations[`selectedRegion${i}`],callback:function(e){t.$set(t.forbiddenGeolocations,`selectedRegion${i}`,e)},expression:"forbiddenGeolocations[`selectedRegion${n}`]"}})],1):t._e()],1)})),e("div",{staticClass:"text-center"},[t.numberOfNegativeGeolocations>1?e("b-button",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.bottom",value:"Remove Forbidden Geolocation Restriction",expression:"'Remove Forbidden Geolocation Restriction'",modifiers:{hover:!0,bottom:!0}},{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"m-1",attrs:{variant:"outline-secondary",size:"sm"},on:{click:function(e){t.numberOfNegativeGeolocations=t.numberOfNegativeGeolocations-1}}},[e("v-icon",{attrs:{name:"minus"}})],1):t._e(),t.numberOfNegativeGeolocations<5?e("b-button",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.bottom",value:"Add Forbidden Geolocation Restriction",expression:"'Add Forbidden Geolocation Restriction'",modifiers:{hover:!0,bottom:!0}},{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"m-1",attrs:{variant:"outline-secondary",size:"sm"},on:{click:function(e){t.numberOfNegativeGeolocations=t.numberOfNegativeGeolocations+1}}},[e("v-icon",{attrs:{name:"plus"}})],1):t._e()],1)],2):t._e()]):t._e(),e("br"),t.appRegistrationSpecification.version>=3?e("b-form-group",{attrs:{"label-cols":"2","label-cols-lg":"1",label:"Instances","label-for":"instances"}},[e("div",{staticClass:"mx-1"},[t._v(" "+t._s(t.appRegistrationSpecification.instances)+" ")]),e("b-form-input",{attrs:{id:"instances",placeholder:"Minimum number of application instances to be spawned",type:"range",min:t.minInstances,max:t.maxInstances,step:"1"},model:{value:t.appRegistrationSpecification.instances,callback:function(e){t.$set(t.appRegistrationSpecification,"instances",e)},expression:"appRegistrationSpecification.instances"}})],1):t._e(),e("br"),t.appRegistrationSpecification.version>=6?e("b-form-group",{attrs:{"label-cols":"2","label-cols-lg":"1",label:"Period","label-for":"period"}},[e("div",{staticClass:"mx-1"},[t._v(" "+t._s(t.getExpireLabel||(t.appRegistrationSpecification.expire?`${t.appRegistrationSpecification.expire} blocks`:"1 month"))+" ")]),e("b-form-input",{attrs:{id:"period",placeholder:"How long an application will live on Flux network",type:"range",min:0,max:5,step:1},model:{value:t.expirePosition,callback:function(e){t.expirePosition=e},expression:"expirePosition"}})],1):t._e(),e("br"),t.appRegistrationSpecification.version>=7?e("div",{staticClass:"form-row form-group"},[e("label",{staticClass:"col-form-label"},[t._v(" Static IP "),e("v-icon",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.top",value:"Select if your application strictly requires static IP address",expression:"'Select if your application strictly requires static IP address'",modifiers:{hover:!0,top:!0}}],staticClass:"mr-1",attrs:{name:"info-circle"}})],1),e("div",{staticClass:"col"},[e("b-form-checkbox",{staticClass:"custom-control-primary inline",attrs:{id:"staticip",switch:""},model:{value:t.appRegistrationSpecification.staticip,callback:function(e){t.$set(t.appRegistrationSpecification,"staticip",e)},expression:"appRegistrationSpecification.staticip"}})],1)]):t._e(),t.appRegistrationSpecification.version>=7?e("div",{staticClass:"form-row form-group"},[e("label",{staticClass:"col-form-label"},[t._v(" Enterprise Application "),e("v-icon",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.top",value:"Select if your application requires private image, secrets or if you want to target specific nodes on which application can run. Geolocation targetting is not possible in this case.",expression:"'Select if your application requires private image, secrets or if you want to target specific nodes on which application can run. Geolocation targetting is not possible in this case.'",modifiers:{hover:!0,top:!0}}],staticClass:"mr-1",attrs:{name:"info-circle"}})],1),e("div",{staticClass:"col"},[e("b-form-checkbox",{staticClass:"custom-control-primary inline",attrs:{id:"enterpriseapp",switch:""},model:{value:t.isPrivateApp,callback:function(e){t.isPrivateApp=e},expression:"isPrivateApp"}})],1)]):t._e()],1)],1)],1),t._l(t.appRegistrationSpecification.compose,(function(i,o){return e("b-card",{key:o,ref:"components",refInFor:!0},[e("b-card-title",[t._v(" Component "+t._s(i.name)+" "),t.appRegistrationSpecification.compose.length>1?e("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"float-right",attrs:{variant:"warning","aria-label":"Remove Component",size:"sm"},on:{click:function(e){return t.removeComponent(o)}}},[t._v(" Remove ")]):t._e()],1),e("b-row",{staticClass:"match-height"},[e("b-col",{attrs:{xs:"12",xl:"6"}},[e("b-card",[e("b-card-title",[t._v(" General ")]),e("div",{staticClass:"form-row form-group"},[e("label",{staticClass:"col-3 col-form-label"},[t._v(" Name "),e("v-icon",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.top",value:"Name of Application Component",expression:"'Name of Application Component'",modifiers:{hover:!0,top:!0}}],staticClass:"mr-1",attrs:{name:"info-circle"}})],1),e("div",{staticClass:"col"},[e("b-form-input",{attrs:{id:"repo",placeholder:"Component name"},model:{value:i.name,callback:function(e){t.$set(i,"name",e)},expression:"component.name"}})],1)]),e("div",{staticClass:"form-row form-group"},[e("label",{staticClass:"col-3 col-form-label"},[t._v(" Description "),e("v-icon",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.top",value:"Description of Application Component",expression:"'Description of Application Component'",modifiers:{hover:!0,top:!0}}],staticClass:"mr-1",attrs:{name:"info-circle"}})],1),e("div",{staticClass:"col"},[e("b-form-input",{attrs:{id:"repo",placeholder:"Component description"},model:{value:i.description,callback:function(e){t.$set(i,"description",e)},expression:"component.description"}})],1)]),e("div",{staticClass:"form-row form-group"},[e("label",{staticClass:"col-3 col-form-label"},[t._v(" Repository "),e("v-icon",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.top",value:"Docker image namespace/repository:tag for component",expression:"'Docker image namespace/repository:tag for component'",modifiers:{hover:!0,top:!0}}],staticClass:"mr-1",attrs:{name:"info-circle"}})],1),e("div",{staticClass:"col"},[e("b-form-input",{attrs:{id:"repo",placeholder:"Docker image namespace/repository:tag"},model:{value:i.repotag,callback:function(e){t.$set(i,"repotag",e)},expression:"component.repotag"}})],1)]),t.appRegistrationSpecification.version>=7&&t.isPrivateApp?e("div",{staticClass:"form-row form-group"},[e("label",{staticClass:"col-3 col-form-label"},[t._v(" Repository Authentication "),e("v-icon",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.top",value:"Docker image authentication for private images in the format of username:apikey. This field will be encrypted and accessible to selected enterprise nodes only.",expression:"'Docker image authentication for private images in the format of username:apikey. This field will be encrypted and accessible to selected enterprise nodes only.'",modifiers:{hover:!0,top:!0}}],staticClass:"mr-1",attrs:{name:"info-circle"}})],1),e("div",{staticClass:"col"},[e("b-form-input",{attrs:{id:"repoauth",placeholder:"Docker authentication username:apikey"},model:{value:i.repoauth,callback:function(e){t.$set(i,"repoauth",e)},expression:"component.repoauth"}})],1)]):t._e(),e("br"),e("b-card-title",[t._v(" Connectivity ")]),e("div",{staticClass:"form-row form-group"},[e("label",{staticClass:"col-3 col-form-label"},[t._v(" Ports "),e("v-icon",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.top",value:"Array of Ports on which application will be available",expression:"'Array of Ports on which application will be available'",modifiers:{hover:!0,top:!0}}],staticClass:"mr-1",attrs:{name:"info-circle"}})],1),e("div",{staticClass:"col"},[e("b-form-input",{attrs:{id:"ports"},model:{value:i.ports,callback:function(e){t.$set(i,"ports",e)},expression:"component.ports"}})],1)]),e("div",{staticClass:"form-row form-group"},[e("label",{staticClass:"col-3 col-form-label"},[t._v(" Domains "),e("v-icon",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.top",value:"Array of strings of Domains managed by Flux Domain Manager (FDM). Length must correspond to available ports. Use empty strings for no domains",expression:"'Array of strings of Domains managed by Flux Domain Manager (FDM). Length must correspond to available ports. Use empty strings for no domains'",modifiers:{hover:!0,top:!0}}],staticClass:"mr-1",attrs:{name:"info-circle"}})],1),e("div",{staticClass:"col"},[e("b-form-input",{attrs:{id:"domains"},model:{value:i.domains,callback:function(e){t.$set(i,"domains",e)},expression:"component.domains"}})],1)]),e("div",{staticClass:"form-row form-group"},[e("label",{staticClass:"col-3 col-form-label"},[t._v(" Cont. Ports "),e("v-icon",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.top",value:"Container Ports - Array of ports which your container has",expression:"'Container Ports - Array of ports which your container has'",modifiers:{hover:!0,top:!0}}],staticClass:"mr-1",attrs:{name:"info-circle"}})],1),e("div",{staticClass:"col"},[e("b-form-input",{attrs:{id:"containerPorts"},model:{value:i.containerPorts,callback:function(e){t.$set(i,"containerPorts",e)},expression:"component.containerPorts"}})],1)])],1)],1),e("b-col",{attrs:{xs:"12",xl:"6"}},[e("b-card",[e("b-card-title",[t._v(" Environment ")]),e("div",{staticClass:"form-row form-group"},[e("label",{staticClass:"col-3 col-form-label"},[t._v(" Environment "),e("v-icon",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.top",value:"Array of strings of Environmental Parameters",expression:"'Array of strings of Environmental Parameters'",modifiers:{hover:!0,top:!0}}],staticClass:"mr-1",attrs:{name:"info-circle"}})],1),e("div",{staticClass:"col"},[e("b-form-input",{attrs:{id:"environmentParameters"},model:{value:i.environmentParameters,callback:function(e){t.$set(i,"environmentParameters",e)},expression:"component.environmentParameters"}})],1),e("div",{staticClass:"col-0"},[e("b-button",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.top",value:"Uploads Enviornment to Flux Storage. Environment parameters will be replaced with a link to Flux Storage instead. This increases maximum allowed size of Env. parameters while adding basic privacy - instead of parameters, link to Flux Storage will be visible.",expression:"\n 'Uploads Enviornment to Flux Storage. Environment parameters will be replaced with a link to Flux Storage instead. This increases maximum allowed size of Env. parameters while adding basic privacy - instead of parameters, link to Flux Storage will be visible.'\n ",modifiers:{hover:!0,top:!0}}],attrs:{id:"upload-env",variant:"outline-primary"}},[e("v-icon",{attrs:{name:"cloud-upload-alt"}})],1),e("confirm-dialog",{attrs:{target:"upload-env","confirm-button":"Upload Environment Parameters",width:600},on:{confirm:function(e){return t.uploadEnvToFluxStorage(o)}}})],1)]),e("div",{staticClass:"form-row form-group"},[e("label",{staticClass:"col-3 col-form-label"},[t._v(" Commands "),e("v-icon",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.top",value:"Array of strings of Commands",expression:"'Array of strings of Commands'",modifiers:{hover:!0,top:!0}}],staticClass:"mr-1",attrs:{name:"info-circle"}})],1),e("div",{staticClass:"col"},[e("b-form-input",{attrs:{id:"commands"},model:{value:i.commands,callback:function(e){t.$set(i,"commands",e)},expression:"component.commands"}})],1),e("div",{staticClass:"col-0"},[e("b-button",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.top",value:"Uploads Commands to Flux Storage. Commands will be replaced with a link to Flux Storage instead. This increases maximum allowed size of Commands while adding basic privacy - instead of commands, link to Flux Storage will be visible.",expression:"'Uploads Commands to Flux Storage. Commands will be replaced with a link to Flux Storage instead. This increases maximum allowed size of Commands while adding basic privacy - instead of commands, link to Flux Storage will be visible.'",modifiers:{hover:!0,top:!0}}],attrs:{id:"upload-cmd",variant:"outline-primary"}},[e("v-icon",{attrs:{name:"cloud-upload-alt"}})],1),e("confirm-dialog",{attrs:{target:"upload-cmd","confirm-button":"Upload Commands",width:600},on:{confirm:function(e){return t.uploadCmdToFluxStorage(o)}}})],1)]),e("div",{staticClass:"form-row form-group"},[e("label",{staticClass:"col-3 col-form-label"},[t._v(" Cont. Data "),e("v-icon",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.top",value:"Data folder that is shared by application to App volume. Prepend with r: for synced data between instances. Ex. r:/data. Prepend with g: for synced data and primary/standby solution. Ex. g:/data",expression:"'Data folder that is shared by application to App volume. Prepend with r: for synced data between instances. Ex. r:/data. Prepend with g: for synced data and primary/standby solution. Ex. g:/data'",modifiers:{hover:!0,top:!0}}],staticClass:"mr-1",attrs:{name:"info-circle"}})],1),e("div",{staticClass:"col"},[e("b-form-input",{attrs:{id:"containerData"},model:{value:i.containerData,callback:function(e){t.$set(i,"containerData",e)},expression:"component.containerData"}})],1)]),t.appRegistrationSpecification.version>=7&&t.isPrivateApp?e("div",{staticClass:"form-row form-group"},[e("label",{staticClass:"col-3 col-form-label"},[t._v(" Secrets "),e("v-icon",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.top",value:"Array of strings of Secret Environmental Parameters. This will be encrypted and accessible to selected Enterprise Nodes only",expression:"'Array of strings of Secret Environmental Parameters. This will be encrypted and accessible to selected Enterprise Nodes only'",modifiers:{hover:!0,top:!0}}],staticClass:"mr-1",attrs:{name:"info-circle"}})],1),e("div",{staticClass:"col"},[e("b-form-input",{attrs:{id:"secrets",placeholder:"[]"},model:{value:i.secrets,callback:function(e){t.$set(i,"secrets",e)},expression:"component.secrets"}})],1)]):t._e(),e("br"),e("b-card-title",[t._v(" Resources    "),e("h6",{staticClass:"inline text-small"},[t._v(" Tiered: "),e("b-form-checkbox",{staticClass:"custom-control-primary inline",attrs:{id:"tiered",switch:""},model:{value:i.tiered,callback:function(e){t.$set(i,"tiered",e)},expression:"component.tiered"}})],1)]),i.tiered?t._e():e("b-form-group",{attrs:{"label-cols":"2","label-cols-lg":"1",label:"CPU","label-for":"cpu"}},[e("div",{staticClass:"mx-1"},[t._v(" "+t._s(i.cpu)+" ")]),e("b-form-input",{attrs:{id:"cpu",placeholder:"CPU cores to use by default",type:"range",min:"0.1",max:"15",step:"0.1"},model:{value:i.cpu,callback:function(e){t.$set(i,"cpu",e)},expression:"component.cpu"}})],1),i.tiered?t._e():e("b-form-group",{attrs:{"label-cols":"2","label-cols-lg":"1",label:"RAM","label-for":"ram"}},[e("div",{staticClass:"mx-1"},[t._v(" "+t._s(i.ram)+" ")]),e("b-form-input",{attrs:{id:"ram",placeholder:"RAM in MB value to use by default",type:"range",min:"100",max:"59000",step:"100"},model:{value:i.ram,callback:function(e){t.$set(i,"ram",e)},expression:"component.ram"}})],1),i.tiered?t._e():e("b-form-group",{attrs:{"label-cols":"2","label-cols-lg":"1",label:"SSD","label-for":"ssd"}},[e("div",{staticClass:"mx-1"},[t._v(" "+t._s(i.hdd)+" ")]),e("b-form-input",{attrs:{id:"ssd",placeholder:"SSD in GB value to use by default",type:"range",min:"1",max:"820",step:"1"},model:{value:i.hdd,callback:function(e){t.$set(i,"hdd",e)},expression:"component.hdd"}})],1)],1)],1)],1),i.tiered?e("b-row",[e("b-col",{attrs:{xs:"12",md:"6",lg:"4"}},[e("b-card",{attrs:{title:"Cumulus"}},[e("div",[t._v(" CPU: "+t._s(i.cpubasic)+" ")]),e("b-form-input",{attrs:{type:"range",min:"0.1",max:"3",step:"0.1"},model:{value:i.cpubasic,callback:function(e){t.$set(i,"cpubasic",e)},expression:"component.cpubasic"}}),e("div",[t._v(" RAM: "+t._s(i.rambasic)+" ")]),e("b-form-input",{attrs:{type:"range",min:"100",max:"5000",step:"100"},model:{value:i.rambasic,callback:function(e){t.$set(i,"rambasic",e)},expression:"component.rambasic"}}),e("div",[t._v(" SSD: "+t._s(i.hddbasic)+" ")]),e("b-form-input",{attrs:{type:"range",min:"1",max:"180",step:"1"},model:{value:i.hddbasic,callback:function(e){t.$set(i,"hddbasic",e)},expression:"component.hddbasic"}})],1)],1),e("b-col",{attrs:{xs:"12",md:"6",lg:"4"}},[e("b-card",{attrs:{title:"Nimbus"}},[e("div",[t._v(" CPU: "+t._s(i.cpusuper)+" ")]),e("b-form-input",{attrs:{type:"range",min:"0.1",max:"7",step:"0.1"},model:{value:i.cpusuper,callback:function(e){t.$set(i,"cpusuper",e)},expression:"component.cpusuper"}}),e("div",[t._v(" RAM: "+t._s(i.ramsuper)+" ")]),e("b-form-input",{attrs:{type:"range",min:"100",max:"28000",step:"100"},model:{value:i.ramsuper,callback:function(e){t.$set(i,"ramsuper",e)},expression:"component.ramsuper"}}),e("div",[t._v(" SSD: "+t._s(i.hddsuper)+" ")]),e("b-form-input",{attrs:{type:"range",min:"1",max:"400",step:"1"},model:{value:i.hddsuper,callback:function(e){t.$set(i,"hddsuper",e)},expression:"component.hddsuper"}})],1)],1),e("b-col",{attrs:{xs:"12",lg:"4"}},[e("b-card",{attrs:{title:"Stratus"}},[e("div",[t._v(" CPU: "+t._s(i.cpubamf)+" ")]),e("b-form-input",{attrs:{type:"range",min:"0.1",max:"15",step:"0.1"},model:{value:i.cpubamf,callback:function(e){t.$set(i,"cpubamf",e)},expression:"component.cpubamf"}}),e("div",[t._v(" RAM: "+t._s(i.rambamf)+" ")]),e("b-form-input",{attrs:{type:"range",min:"100",max:"59000",step:"100"},model:{value:i.rambamf,callback:function(e){t.$set(i,"rambamf",e)},expression:"component.rambamf"}}),e("div",[t._v(" SSD: "+t._s(i.hddbamf)+" ")]),e("b-form-input",{attrs:{type:"range",min:"1",max:"820",step:"1"},model:{value:i.hddbamf,callback:function(e){t.$set(i,"hddbamf",e)},expression:"component.hddbamf"}})],1)],1)],1):t._e()],1)})),t.appRegistrationSpecification.version>=7&&t.isPrivateApp?e("b-card",{attrs:{title:"Enterprise Nodes"}},[t._v(" Only these selected enterprise nodes will be able to run your application and are used for encryption. Only these nodes are able to access your private image and secrets."),e("br"),t._v(" Changing the node list after the message is computed and encrypted will result in a failure to run. Secrets and Repository Authentication would need to be adjusted again."),e("br"),t._v(" The score determines how reputable a node and node operator are. The higher the score, the higher the reputation on the network."),e("br"),t._v(" Secrets and Repository Authentication need to be set again if this node list changes."),e("br"),t._v(" The more nodes can run your application, the more stable it is. On the other hand, more nodes will have access to your private data!"),e("br"),e("b-row",[e("b-col",{staticClass:"my-1",attrs:{md:"4",sm:"4"}},[e("b-form-group",{staticClass:"mb-0"},[e("label",{staticClass:"d-inline-block text-left mr-50"},[t._v("Per page")]),e("b-form-select",{staticClass:"w-50",attrs:{id:"perPageSelect",size:"sm",options:t.entNodesTable.pageOptions},model:{value:t.entNodesTable.perPage,callback:function(e){t.$set(t.entNodesTable,"perPage",e)},expression:"entNodesTable.perPage"}})],1)],1),e("b-col",{staticClass:"my-1",attrs:{md:"8"}},[e("b-form-group",{staticClass:"mb-0",attrs:{label:"Filter","label-cols-sm":"1","label-align-sm":"right","label-for":"filterInput"}},[e("b-input-group",{attrs:{size:"sm"}},[e("b-form-input",{attrs:{id:"filterInput",type:"search",placeholder:"Type to Search"},model:{value:t.entNodesTable.filter,callback:function(e){t.$set(t.entNodesTable,"filter",e)},expression:"entNodesTable.filter"}}),e("b-input-group-append",[e("b-button",{attrs:{disabled:!t.entNodesTable.filter},on:{click:function(e){t.entNodesTable.filter=""}}},[t._v(" Clear ")])],1)],1)],1)],1),e("b-col",{attrs:{cols:"12"}},[e("b-table",{staticClass:"app-enterprise-nodes-table",attrs:{striped:"",hover:"",responsive:"","per-page":t.entNodesTable.perPage,"current-page":t.entNodesTable.currentPage,items:t.selectedEnterpriseNodes,fields:t.entNodesTable.fields,"sort-by":t.entNodesTable.sortBy,"sort-desc":t.entNodesTable.sortDesc,"sort-direction":t.entNodesTable.sortDirection,filter:t.entNodesTable.filter,"filter-included-fields":t.entNodesTable.filterOn,"show-empty":"","empty-text":"No Enterprise Nodes selected"},on:{"update:sortBy":function(e){return t.$set(t.entNodesTable,"sortBy",e)},"update:sort-by":function(e){return t.$set(t.entNodesTable,"sortBy",e)},"update:sortDesc":function(e){return t.$set(t.entNodesTable,"sortDesc",e)},"update:sort-desc":function(e){return t.$set(t.entNodesTable,"sortDesc",e)}},scopedSlots:t._u([{key:"cell(show_details)",fn:function(i){return[e("a",{on:{click:i.toggleDetails}},[i.detailsShowing?t._e():e("v-icon",{attrs:{name:"chevron-down"}}),i.detailsShowing?e("v-icon",{attrs:{name:"chevron-up"}}):t._e()],1)]}},{key:"row-details",fn:function(i){return[e("b-card",{staticClass:"mx-2"},[e("list-entry",{attrs:{title:"IP Address",data:i.item.ip}}),e("list-entry",{attrs:{title:"Public Key",data:i.item.pubkey}}),e("list-entry",{attrs:{title:"Node Address",data:i.item.payment_address}}),e("list-entry",{attrs:{title:"Collateral",data:`${i.item.txhash}:${i.item.outidx}`}}),e("list-entry",{attrs:{title:"Tier",data:i.item.tier}}),e("list-entry",{attrs:{title:"Overall Score",data:i.item.score.toString()}}),e("list-entry",{attrs:{title:"Collateral Score",data:i.item.collateralPoints.toString()}}),e("list-entry",{attrs:{title:"Maturity Score",data:i.item.maturityPoints.toString()}}),e("list-entry",{attrs:{title:"Public Key Score",data:i.item.pubKeyPoints.toString()}}),e("list-entry",{attrs:{title:"Enterprise Apps Assigned",data:i.item.enterpriseApps.toString()}}),e("div",[e("b-button",{staticClass:"mr-0",attrs:{size:"sm",variant:"primary"},on:{click:function(e){t.openNodeFluxOS(i.item.ip.split(":")[0],i.item.ip.split(":")[1]?+i.item.ip.split(":")[1]-1:16126)}}},[t._v(" Visit FluxNode ")])],1)],1)]}},{key:"cell(ip)",fn:function(e){return[t._v(" "+t._s(e.item.ip)+" ")]}},{key:"cell(payment_address)",fn:function(e){return[t._v(" "+t._s(e.item.payment_address.slice(0,8))+"..."+t._s(e.item.payment_address.slice(e.item.payment_address.length-8,e.item.payment_address.length))+" ")]}},{key:"cell(tier)",fn:function(e){return[t._v(" "+t._s(e.item.tier)+" ")]}},{key:"cell(score)",fn:function(e){return[t._v(" "+t._s(e.item.score)+" ")]}},{key:"cell(actions)",fn:function(i){return[e("b-button",{staticClass:"mr-1 mb-1",attrs:{id:`remove-${i.item.ip}`,size:"sm",variant:"danger"}},[t._v(" Remove ")]),e("confirm-dialog",{attrs:{target:`remove-${i.item.ip}`,"confirm-button":"Remove FluxNode"},on:{confirm:function(e){return t.removeFluxNode(i.item.ip)}}}),e("b-button",{staticClass:"mr-1 mb-1",attrs:{size:"sm",variant:"primary"},on:{click:function(e){t.openNodeFluxOS(i.item.ip.split(":")[0],i.item.ip.split(":")[1]?+i.item.ip.split(":")[1]-1:16126)}}},[t._v(" Visit ")])]}}],null,!1,21821003)})],1),e("b-col",{attrs:{cols:"12"}},[e("b-pagination",{staticClass:"my-0",attrs:{"total-rows":t.selectedEnterpriseNodes.length,"per-page":t.entNodesTable.perPage,align:"center",size:"sm"},model:{value:t.entNodesTable.currentPage,callback:function(e){t.$set(t.entNodesTable,"currentPage",e)},expression:"entNodesTable.currentPage"}}),e("span",{staticClass:"table-total"},[t._v("Total: "+t._s(t.selectedEnterpriseNodes.length))])],1)],1),e("br"),e("br"),e("div",{staticClass:"text-center"},[e("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"mb-2 mr-2",attrs:{variant:"primary","aria-label":"Auto Select Enterprise Nodes"},on:{click:t.autoSelectNodes}},[t._v(" Auto Select Enterprise Nodes ")]),e("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"mb-2 mr-2",attrs:{variant:"primary","aria-label":"Choose Enterprise Nodes"},on:{click:function(e){t.chooseEnterpriseDialog=!0}}},[t._v(" Choose Enterprise Nodes ")])],1)],1):t._e()],2)],1):e("div",[e("b-row",{staticClass:"match-height"},[e("b-col",{attrs:{xs:"12",xl:"6"}},[e("b-card",{attrs:{title:"Details"}},[e("b-form-group",{attrs:{"label-cols":"2",label:"Version","label-for":"version"}},[e("b-form-input",{attrs:{id:"version",placeholder:t.appRegistrationSpecification.version.toString(),readonly:""},model:{value:t.appRegistrationSpecification.version,callback:function(e){t.$set(t.appRegistrationSpecification,"version",e)},expression:"appRegistrationSpecification.version"}})],1),e("b-form-group",{attrs:{"label-cols":"2",label:"Name","label-for":"name"}},[e("b-form-input",{attrs:{id:"name",placeholder:"App Name"},model:{value:t.appRegistrationSpecification.name,callback:function(e){t.$set(t.appRegistrationSpecification,"name",e)},expression:"appRegistrationSpecification.name"}})],1),e("b-form-group",{attrs:{"label-cols":"2",label:"Desc.","label-for":"desc"}},[e("b-form-textarea",{attrs:{id:"desc",placeholder:"Description",rows:"3"},model:{value:t.appRegistrationSpecification.description,callback:function(e){t.$set(t.appRegistrationSpecification,"description",e)},expression:"appRegistrationSpecification.description"}})],1),e("b-form-group",{attrs:{"label-cols":"2",label:"Repo","label-for":"repo"}},[e("b-form-input",{attrs:{id:"repo",placeholder:"Docker image namespace/repository:tag"},model:{value:t.appRegistrationSpecification.repotag,callback:function(e){t.$set(t.appRegistrationSpecification,"repotag",e)},expression:"appRegistrationSpecification.repotag"}})],1),e("b-form-group",{attrs:{"label-cols":"2",label:"Owner","label-for":"owner"}},[e("b-form-input",{attrs:{id:"owner",placeholder:"Flux ID of Application Owner"},model:{value:t.appRegistrationSpecification.owner,callback:function(e){t.$set(t.appRegistrationSpecification,"owner",e)},expression:"appRegistrationSpecification.owner"}})],1)],1)],1),e("b-col",{attrs:{xs:"12",xl:"6"}},[e("b-card",{attrs:{title:"Environment"}},[e("div",{staticClass:"form-row form-group"},[e("label",{staticClass:"col-3 col-form-label"},[t._v(" Ports "),e("v-icon",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.top",value:"Array of Ports on which application will be available",expression:"'Array of Ports on which application will be available'",modifiers:{hover:!0,top:!0}}],staticClass:"mr-1",attrs:{name:"info-circle"}})],1),e("div",{staticClass:"col"},[e("b-form-input",{attrs:{id:"ports"},model:{value:t.appRegistrationSpecification.ports,callback:function(e){t.$set(t.appRegistrationSpecification,"ports",e)},expression:"appRegistrationSpecification.ports"}})],1)]),e("div",{staticClass:"form-row form-group"},[e("label",{staticClass:"col-3 col-form-label"},[t._v(" Domains "),e("v-icon",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.top",value:"Array of strings of Domains managed by Flux Domain Manager (FDM). Length must correspond to available ports. Use empty strings for no domains",expression:"'Array of strings of Domains managed by Flux Domain Manager (FDM). Length must correspond to available ports. Use empty strings for no domains'",modifiers:{hover:!0,top:!0}}],staticClass:"mr-1",attrs:{name:"info-circle"}})],1),e("div",{staticClass:"col"},[e("b-form-input",{attrs:{id:"domains"},model:{value:t.appRegistrationSpecification.domains,callback:function(e){t.$set(t.appRegistrationSpecification,"domains",e)},expression:"appRegistrationSpecification.domains"}})],1)]),e("div",{staticClass:"form-row form-group"},[e("label",{staticClass:"col-3 col-form-label"},[t._v(" Environment "),e("v-icon",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.top",value:"Array of strings of Environmental Parameters",expression:"'Array of strings of Environmental Parameters'",modifiers:{hover:!0,top:!0}}],staticClass:"mr-1",attrs:{name:"info-circle"}})],1),e("div",{staticClass:"col"},[e("b-form-input",{attrs:{id:"environmentParameters"},model:{value:t.appRegistrationSpecification.enviromentParameters,callback:function(e){t.$set(t.appRegistrationSpecification,"enviromentParameters",e)},expression:"appRegistrationSpecification.enviromentParameters"}})],1)]),e("div",{staticClass:"form-row form-group"},[e("label",{staticClass:"col-3 col-form-label"},[t._v(" Commands "),e("v-icon",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.top",value:"Array of strings of Commands",expression:"'Array of strings of Commands'",modifiers:{hover:!0,top:!0}}],staticClass:"mr-1",attrs:{name:"info-circle"}})],1),e("div",{staticClass:"col"},[e("b-form-input",{attrs:{id:"commands"},model:{value:t.appRegistrationSpecification.commands,callback:function(e){t.$set(t.appRegistrationSpecification,"commands",e)},expression:"appRegistrationSpecification.commands"}})],1)]),e("div",{staticClass:"form-row form-group"},[e("label",{staticClass:"col-3 col-form-label"},[t._v(" Cont. Ports "),e("v-icon",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.top",value:"Container Ports - Array of ports which your container has",expression:"'Container Ports - Array of ports which your container has'",modifiers:{hover:!0,top:!0}}],staticClass:"mr-1",attrs:{name:"info-circle"}})],1),e("div",{staticClass:"col"},[e("b-form-input",{attrs:{id:"containerPorts"},model:{value:t.appRegistrationSpecification.containerPorts,callback:function(e){t.$set(t.appRegistrationSpecification,"containerPorts",e)},expression:"appRegistrationSpecification.containerPorts"}})],1)]),e("div",{staticClass:"form-row form-group"},[e("label",{staticClass:"col-3 col-form-label"},[t._v(" Cont. Data "),e("v-icon",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.top",value:"Data folder that is shared by application to App volume. Prepend with r: for synced data between instances. Ex. r:/data. Prepend with g: for synced data and master/slave solution. Ex. g:/data",expression:"'Data folder that is shared by application to App volume. Prepend with r: for synced data between instances. Ex. r:/data. Prepend with g: for synced data and master/slave solution. Ex. g:/data'",modifiers:{hover:!0,top:!0}}],staticClass:"mr-1",attrs:{name:"info-circle"}})],1),e("div",{staticClass:"col"},[e("b-form-input",{attrs:{id:"containerData"},model:{value:t.appRegistrationSpecification.containerData,callback:function(e){t.$set(t.appRegistrationSpecification,"containerData",e)},expression:"appRegistrationSpecification.containerData"}})],1)])])],1)],1),e("b-row",{staticClass:"match-height"},[e("b-col",{attrs:{xs:"12"}},[e("b-card",[e("b-card-title",[t._v(" Resources    "),e("h6",{staticClass:"inline text-small"},[t._v(" Tiered: "),e("b-form-checkbox",{staticClass:"custom-control-primary inline",attrs:{id:"tiered",switch:""},model:{value:t.appRegistrationSpecification.tiered,callback:function(e){t.$set(t.appRegistrationSpecification,"tiered",e)},expression:"appRegistrationSpecification.tiered"}})],1)]),t.appRegistrationSpecification.version>=3?e("b-form-group",{attrs:{"label-cols":"2","label-cols-lg":"1",label:"Instances","label-for":"instances"}},[e("div",{staticClass:"mx-1"},[t._v(" "+t._s(t.appRegistrationSpecification.instances)+" ")]),e("b-form-input",{attrs:{id:"instances",placeholder:"Minimum number of application instances to be spawned",type:"range",min:"3",max:"100",step:"1"},model:{value:t.appRegistrationSpecification.instances,callback:function(e){t.$set(t.appRegistrationSpecification,"instances",e)},expression:"appRegistrationSpecification.instances"}})],1):t._e(),t.appRegistrationSpecification.tiered?t._e():e("b-form-group",{attrs:{"label-cols":"2","label-cols-lg":"1",label:"CPU","label-for":"cpu"}},[e("div",{staticClass:"mx-1"},[t._v(" "+t._s(t.appRegistrationSpecification.cpu)+" ")]),e("b-form-input",{attrs:{id:"cpu",placeholder:"CPU cores to use by default",type:"range",min:"0.1",max:"15",step:"0.1"},model:{value:t.appRegistrationSpecification.cpu,callback:function(e){t.$set(t.appRegistrationSpecification,"cpu",e)},expression:"appRegistrationSpecification.cpu"}})],1),t.appRegistrationSpecification.tiered?t._e():e("b-form-group",{attrs:{"label-cols":"2","label-cols-lg":"1",label:"RAM","label-for":"ram"}},[e("div",{staticClass:"mx-1"},[t._v(" "+t._s(t.appRegistrationSpecification.ram)+" ")]),e("b-form-input",{attrs:{id:"ram",placeholder:"RAM in MB value to use by default",type:"range",min:"100",max:"59000",step:"100"},model:{value:t.appRegistrationSpecification.ram,callback:function(e){t.$set(t.appRegistrationSpecification,"ram",e)},expression:"appRegistrationSpecification.ram"}})],1),t.appRegistrationSpecification.tiered?t._e():e("b-form-group",{attrs:{"label-cols":"2","label-cols-lg":"1",label:"SSD","label-for":"ssd"}},[e("div",{staticClass:"mx-1"},[t._v(" "+t._s(t.appRegistrationSpecification.hdd)+" ")]),e("b-form-input",{attrs:{id:"ssd",placeholder:"SSD in GB value to use by default",type:"range",min:"1",max:"820",step:"1"},model:{value:t.appRegistrationSpecification.hdd,callback:function(e){t.$set(t.appRegistrationSpecification,"hdd",e)},expression:"appRegistrationSpecification.hdd"}})],1)],1)],1)],1),t.appRegistrationSpecification.tiered?e("b-row",[e("b-col",{attrs:{xs:"12",md:"6",lg:"4"}},[e("b-card",{attrs:{title:"Cumulus"}},[e("div",[t._v(" CPU: "+t._s(t.appRegistrationSpecification.cpubasic)+" ")]),e("b-form-input",{attrs:{type:"range",min:"0.1",max:"3",step:"0.1"},model:{value:t.appRegistrationSpecification.cpubasic,callback:function(e){t.$set(t.appRegistrationSpecification,"cpubasic",e)},expression:"appRegistrationSpecification.cpubasic"}}),e("div",[t._v(" RAM: "+t._s(t.appRegistrationSpecification.rambasic)+" ")]),e("b-form-input",{attrs:{type:"range",min:"100",max:"5000",step:"100"},model:{value:t.appRegistrationSpecification.rambasic,callback:function(e){t.$set(t.appRegistrationSpecification,"rambasic",e)},expression:"appRegistrationSpecification.rambasic"}}),e("div",[t._v(" SSD: "+t._s(t.appRegistrationSpecification.hddbasic)+" ")]),e("b-form-input",{attrs:{type:"range",min:"1",max:"180",step:"1"},model:{value:t.appRegistrationSpecification.hddbasic,callback:function(e){t.$set(t.appRegistrationSpecification,"hddbasic",e)},expression:"appRegistrationSpecification.hddbasic"}})],1)],1),e("b-col",{attrs:{xs:"12",md:"6",lg:"4"}},[e("b-card",{attrs:{title:"Nimbus"}},[e("div",[t._v(" CPU: "+t._s(t.appRegistrationSpecification.cpusuper)+" ")]),e("b-form-input",{attrs:{type:"range",min:"0.1",max:"7",step:"0.1"},model:{value:t.appRegistrationSpecification.cpusuper,callback:function(e){t.$set(t.appRegistrationSpecification,"cpusuper",e)},expression:"appRegistrationSpecification.cpusuper"}}),e("div",[t._v(" RAM: "+t._s(t.appRegistrationSpecification.ramsuper)+" ")]),e("b-form-input",{attrs:{type:"range",min:"100",max:"28000",step:"100"},model:{value:t.appRegistrationSpecification.ramsuper,callback:function(e){t.$set(t.appRegistrationSpecification,"ramsuper",e)},expression:"appRegistrationSpecification.ramsuper"}}),e("div",[t._v(" SSD: "+t._s(t.appRegistrationSpecification.hddsuper)+" ")]),e("b-form-input",{attrs:{type:"range",min:"1",max:"400",step:"1"},model:{value:t.appRegistrationSpecification.hddsuper,callback:function(e){t.$set(t.appRegistrationSpecification,"hddsuper",e)},expression:"appRegistrationSpecification.hddsuper"}})],1)],1),e("b-col",{attrs:{xs:"12",lg:"4"}},[e("b-card",{attrs:{title:"Stratus"}},[e("div",[t._v(" CPU: "+t._s(t.appRegistrationSpecification.cpubamf)+" ")]),e("b-form-input",{attrs:{type:"range",min:"0.1",max:"15",step:"0.1"},model:{value:t.appRegistrationSpecification.cpubamf,callback:function(e){t.$set(t.appRegistrationSpecification,"cpubamf",e)},expression:"appRegistrationSpecification.cpubamf"}}),e("div",[t._v(" RAM: "+t._s(t.appRegistrationSpecification.rambamf)+" ")]),e("b-form-input",{attrs:{type:"range",min:"1000",max:"59000",step:"100"},model:{value:t.appRegistrationSpecification.rambamf,callback:function(e){t.$set(t.appRegistrationSpecification,"rambamf",e)},expression:"appRegistrationSpecification.rambamf"}}),e("div",[t._v(" SSD: "+t._s(t.appRegistrationSpecification.hddbamf)+" ")]),e("b-form-input",{attrs:{type:"range",min:"1",max:"820",step:"1"},model:{value:t.appRegistrationSpecification.hddbamf,callback:function(e){t.$set(t.appRegistrationSpecification,"hddbamf",e)},expression:"appRegistrationSpecification.hddbamf"}})],1)],1)],1):t._e()],1),e("div",[e("br"),e("b-form-checkbox",{staticClass:"custom-control-primary inline",attrs:{id:"tos",switch:""},model:{value:t.tosAgreed,callback:function(e){t.tosAgreed=e},expression:"tosAgreed"}}),t._v(" I agree with "),e("a",{attrs:{href:"https://cdn.runonflux.io/Flux_Terms_of_Service.pdf",target:"_blank",rel:"noopener noreferrer"}},[t._v(" Terms of Service ")])],1),t.appRegistrationSpecification.version>=4&&t.appRegistrationSpecification.compose.length<(t.currentHeight<13e5?5:10)?e("div",{staticClass:"text-center"},[e("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"mb-4",attrs:{variant:"secondary","aria-label":"Add Component to Application Composition"},on:{click:t.addCopmonent}},[t._v(" Add Component to Application Composition ")])],1):t._e(),e("div",{staticClass:"text-center"},[e("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"mb-2",attrs:{variant:"success","aria-label":"Compute Registration Message"},on:{click:t.checkFluxSpecificationsAndFormatMessage}},[t._v(" Compute Registration Message ")])],1),t.dataToSign?e("div",[e("b-form-group",{attrs:{"label-cols":"3","label-cols-lg":"2",label:"Registration Message","label-for":"registrationmessage"}},[e("div",{staticClass:"text-wrap"},[e("b-form-textarea",{staticStyle:{"padding-top":"15px"},attrs:{id:"registrationmessage",rows:"6",readonly:""},model:{value:t.dataToSign,callback:function(e){t.dataToSign=e},expression:"dataToSign"}}),e("b-icon",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip",value:t.tooltipText,expression:"tooltipText"}],ref:"copyButtonRef",staticClass:"clipboard icon",attrs:{scale:"1.5",icon:"clipboard"},on:{click:t.copyMessageToSign}})],1)]),e("b-form-group",{attrs:{"label-cols":"3","label-cols-lg":"2",label:"Signature","label-for":"signature"}},[e("b-form-input",{attrs:{id:"signature"},model:{value:t.signature,callback:function(e){t.signature=e},expression:"signature"}})],1),e("b-row",{staticClass:"match-height"},[e("b-col",{attrs:{xs:"6",lg:"8"}},[e("b-card",{staticClass:"text-center",attrs:{title:"Register Application"}},[e("b-card-text",[e("h5",[t._v("  "),e("b-icon",{staticClass:"mr-1 mt-2",attrs:{scale:"1.4",icon:"cash-coin"}}),t._v("Price: "),e("b",[t._v(t._s(t.applicationPriceUSD)+" USD + VAT")])],1)]),e("b-card-text",[e("h5",[t._v("  "),e("b-icon",{staticClass:"mr-1",attrs:{scale:"1.4",icon:"clock"}}),t._v("Subscription period: "),e("b",[t._v(t._s(t.getExpireLabel||(t.appRegistrationSpecification.expire?`${t.appRegistrationSpecification.expire} blocks`:"1 month")))])],1)]),e("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"mt-3",staticStyle:{width:"300px"},attrs:{disabled:!t.signature,variant:"outline-success","aria-label":"Register Flux App"},on:{click:t.register}},[t._v(" Register ")])],1)],1),e("b-col",{attrs:{xs:"6",lg:"4"}},[e("b-card",{ref:"signContainer",staticClass:"text-center highlight-container",attrs:{title:"Sign with"}},[e("div",{staticClass:"loginRow"},[e("a",{on:{click:t.initiateSignWS}},[e("img",{staticClass:"walletIcon",attrs:{src:i(96358),alt:"Flux ID",height:"100%",width:"100%"}})]),e("a",{on:{click:t.initSSP}},[e("img",{staticClass:"walletIcon",attrs:{src:"dark"===t.skin?i(56070):i(58962),alt:"SSP",height:"100%",width:"100%"}})])]),e("div",{staticClass:"loginRow"},[e("a",{on:{click:t.initWalletConnect}},[e("img",{staticClass:"walletIcon",attrs:{src:i(47622),alt:"WalletConnect",height:"100%",width:"100%"}})]),e("a",{on:{click:t.initMetamask}},[e("img",{staticClass:"walletIcon",attrs:{src:i(28125),alt:"Metamask",height:"100%",width:"100%"}})])]),e("div",{staticClass:"loginRow"},[e("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"my-1",staticStyle:{width:"250px"},attrs:{variant:"primary","aria-label":"Flux Single Sign On"},on:{click:t.initSignFluxSSO}},[t._v(" Flux Single Sign On (SSO) ")])],1)])],1)],1),t.registrationHash?e("div",{staticClass:"match-height"},[e("b-row",[e("b-card",{attrs:{title:"Test Application Installation"}},[e("b-card-text",[e("div",[t._v(" It's now time to test your application install/launch. It's very important to test the app install/launch to make sure your application specifications work. You will get the application install/launch log at the bottom of this page once it's completed, if the app starts you can proceed with the payment, if not, you need to fix/change the specifications and try again before you can pay the app subscription. ")]),t.testError?e("span",{staticStyle:{color:"red"}},[e("br"),e("b",[t._v("WARNING: Test failed! Check logs at the bottom. If the error is related with your application specifications try to fix it before you pay your registration subscription.")])]):t._e()]),e("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"my-1",attrs:{variant:"success","aria-label":"Test Launch"},on:{click:function(e){return t.testAppInstall(t.registrationHash)}}},[t._v(" Test Installation ")])],1)],1)],1):t._e(),t.testFinished?e("b-row",{staticClass:"match-height"},[e("b-col",{attrs:{xs:"6",lg:"8"}},[e("b-card",[e("b-card-text",[e("b",[t._v("Everything is ready, your payment option links, both for fiat and flux, are valid for the next 30 minutes.")])]),e("br"),t._v(" The application will be subscribed until "),e("b",[t._v(t._s(new Date(t.subscribedTill).toLocaleString("en-GB",t.timeoptions.shortDate)))]),e("br"),t._v(" To finish the application registration, pay your application with your prefered payment method or check below how to pay with Flux crypto currency. ")],1)],1),e("b-col",{attrs:{xs:"6",lg:"4"}},[e("b-card",{staticClass:"text-center",attrs:{title:"Pay with Stripe/PayPal"}},[e("div",{staticClass:"loginRow"},[t.stripeEnabled?e("a",{on:{click:function(e){return t.initStripePay(t.registrationHash,t.appRegistrationSpecification.name,t.applicationPriceUSD,t.appRegistrationSpecification.description)}}},[e("img",{staticClass:"stripePay",attrs:{src:i(20134),alt:"Stripe",height:"100%",width:"100%"}})]):t._e(),t.paypalEnabled?e("a",{on:{click:function(e){return t.initPaypalPay(t.registrationHash,t.appRegistrationSpecification.name,t.applicationPriceUSD,t.appRegistrationSpecification.description)}}},[e("img",{staticClass:"paypalPay",attrs:{src:i(36547),alt:"PayPal",height:"100%",width:"100%"}})]):t._e(),t.paypalEnabled||t.stripeEnabled?t._e():e("span",[t._v("Fiat Gateways Unavailable.")])]),t.checkoutLoading?e("div",{attrs:{className:"loginRow"}},[e("b-spinner",{attrs:{variant:"primary"}}),e("div",{staticClass:"text-center"},[t._v(" Checkout Loading ... ")])],1):t._e(),t.fiatCheckoutURL?e("div",{attrs:{className:"loginRow"}},[e("a",{attrs:{href:t.fiatCheckoutURL,target:"_blank",rel:"noopener noreferrer"}},[t._v(" Click here for checkout if not redirected ")])]):t._e()])],1)],1):t._e(),t.testFinished&&!t.applicationPriceFluxError?e("b-row",{staticClass:"match-height"},[e("b-col",{attrs:{xs:"6",lg:"8"}},[e("b-card",[e("b-card-text",[t._v(" To pay in FLUX, please make a transaction of "),e("b",[t._v(t._s(t.applicationPrice)+" FLUX")]),t._v(" to address "),e("b",[t._v("'"+t._s(t.deploymentAddress)+"'")]),t._v(" with the following message: "),e("b",[t._v("'"+t._s(t.registrationHash)+"'")])])],1)],1),e("b-col",{attrs:{xs:"6",lg:"4"}},[e("b-card",[t.applicationPriceFluxDiscount>0?e("h4",[e("kbd",{staticClass:"d-flex justify-content-center bg-primary mb-2"},[t._v("Discount - "+t._s(t.applicationPriceFluxDiscount)+"%")])]):t._e(),e("h4",{staticClass:"text-center mb-2"},[t._v(" Pay with Zelcore/SSP ")]),e("div",{staticClass:"loginRow"},[e("a",{attrs:{href:`zel:?action=pay&coin=zelcash&address=${t.deploymentAddress}&amount=${t.applicationPrice}&message=${t.registrationHash}&icon=https%3A%2F%2Fraw.githubusercontent.com%2Frunonflux%2Fflux%2Fmaster%2Fflux_banner.png`}},[e("img",{staticClass:"walletIcon",attrs:{src:i(96358),alt:"Flux ID",height:"100%",width:"100%"}})]),e("a",{on:{click:t.initSSPpay}},[e("img",{staticClass:"walletIcon",attrs:{src:"dark"===t.skin?i(56070):i(58962),alt:"SSP",height:"100%",width:"100%"}})])])])],1)],1):t._e()],1):t._e(),t.output.length>0?e("div",{staticClass:"actionCenter"},[e("br"),e("b-row",[e("b-col",{attrs:{cols:"9"}},[e("b-form-textarea",{staticClass:"mt-1",attrs:{plaintext:"","no-resize":"",rows:t.output.length+1,value:t.stringOutput()}})],1),t.downloadOutputReturned?e("b-col",{attrs:{cols:"3"}},[e("h3",[t._v("Downloads")]),t._l(t.downloadOutput,(function(i){return e("div",{key:i.id},[e("h4",[t._v(" "+t._s(i.id))]),e("b-progress",{attrs:{value:i.detail.current/i.detail.total*100,max:"100",striped:"",height:"1rem",variant:i.variant}}),e("br")],1)}))],2):t._e()],1)],1):t._e(),e("b-modal",{attrs:{title:"Select Enterprise Nodes",size:"xl",centered:"","button-size":"sm","ok-only":"","ok-title":"Done"},model:{value:t.chooseEnterpriseDialog,callback:function(e){t.chooseEnterpriseDialog=e},expression:"chooseEnterpriseDialog"}},[e("b-row",[e("b-col",{staticClass:"my-1",attrs:{md:"4",sm:"4"}},[e("b-form-group",{staticClass:"mb-0"},[e("label",{staticClass:"d-inline-block text-left mr-50"},[t._v("Per page")]),e("b-form-select",{staticClass:"w-50",attrs:{id:"perPageSelect",size:"sm",options:t.entNodesSelectTable.pageOptions},model:{value:t.entNodesSelectTable.perPage,callback:function(e){t.$set(t.entNodesSelectTable,"perPage",e)},expression:"entNodesSelectTable.perPage"}})],1)],1),e("b-col",{staticClass:"my-1",attrs:{md:"8"}},[e("b-form-group",{staticClass:"mb-0",attrs:{label:"Filter","label-cols-sm":"1","label-align-sm":"right","label-for":"filterInput"}},[e("b-input-group",{attrs:{size:"sm"}},[e("b-form-input",{attrs:{id:"filterInput",type:"search",placeholder:"Type to Search"},model:{value:t.entNodesSelectTable.filter,callback:function(e){t.$set(t.entNodesSelectTable,"filter",e)},expression:"entNodesSelectTable.filter"}}),e("b-input-group-append",[e("b-button",{attrs:{disabled:!t.entNodesSelectTable.filter},on:{click:function(e){t.entNodesSelectTable.filter=""}}},[t._v(" Clear ")])],1)],1)],1)],1),e("b-col",{attrs:{cols:"12"}},[e("b-table",{staticClass:"app-enterprise-nodes-table",attrs:{striped:"",hover:"",responsive:"","per-page":t.entNodesSelectTable.perPage,"current-page":t.entNodesSelectTable.currentPage,items:t.enterpriseNodes,fields:t.entNodesSelectTable.fields,"sort-by":t.entNodesSelectTable.sortBy,"sort-desc":t.entNodesSelectTable.sortDesc,"sort-direction":t.entNodesSelectTable.sortDirection,filter:t.entNodesSelectTable.filter,"filter-included-fields":t.entNodesSelectTable.filterOn,"show-empty":"","empty-text":"No Enterprise Nodes For Addition Found"},on:{"update:sortBy":function(e){return t.$set(t.entNodesSelectTable,"sortBy",e)},"update:sort-by":function(e){return t.$set(t.entNodesSelectTable,"sortBy",e)},"update:sortDesc":function(e){return t.$set(t.entNodesSelectTable,"sortDesc",e)},"update:sort-desc":function(e){return t.$set(t.entNodesSelectTable,"sortDesc",e)},filtered:t.onFilteredSelection},scopedSlots:t._u([{key:"cell(show_details)",fn:function(i){return[e("a",{on:{click:i.toggleDetails}},[i.detailsShowing?t._e():e("v-icon",{attrs:{name:"chevron-down"}}),i.detailsShowing?e("v-icon",{attrs:{name:"chevron-up"}}):t._e()],1)]}},{key:"row-details",fn:function(i){return[e("b-card",{staticClass:"mx-2"},[e("list-entry",{attrs:{title:"IP Address",data:i.item.ip}}),e("list-entry",{attrs:{title:"Public Key",data:i.item.pubkey}}),e("list-entry",{attrs:{title:"Node Address",data:i.item.payment_address}}),e("list-entry",{attrs:{title:"Collateral",data:`${i.item.txhash}:${i.item.outidx}`}}),e("list-entry",{attrs:{title:"Tier",data:i.item.tier}}),e("list-entry",{attrs:{title:"Overall Score",data:i.item.score.toString()}}),e("list-entry",{attrs:{title:"Collateral Score",data:i.item.collateralPoints.toString()}}),e("list-entry",{attrs:{title:"Maturity Score",data:i.item.maturityPoints.toString()}}),e("list-entry",{attrs:{title:"Public Key Score",data:i.item.pubKeyPoints.toString()}}),e("list-entry",{attrs:{title:"Enterprise Apps Assigned",data:i.item.enterpriseApps.toString()}}),e("div",[e("b-button",{staticClass:"mr-0",attrs:{size:"sm",variant:"primary"},on:{click:function(e){t.openNodeFluxOS(t.locationRow.item.ip.split(":")[0],t.locationRow.item.ip.split(":")[1]?+t.locationRow.item.ip.split(":")[1]-1:16126)}}},[t._v(" Visit FluxNode ")])],1)],1)]}},{key:"cell(ip)",fn:function(e){return[t._v(" "+t._s(e.item.ip)+" ")]}},{key:"cell(payment_address)",fn:function(e){return[t._v(" "+t._s(e.item.payment_address.slice(0,8))+"..."+t._s(e.item.payment_address.slice(e.item.payment_address.length-8,e.item.payment_address.length))+" ")]}},{key:"cell(tier)",fn:function(e){return[t._v(" "+t._s(e.item.tier)+" ")]}},{key:"cell(score)",fn:function(e){return[t._v(" "+t._s(e.item.score)+" ")]}},{key:"cell(actions)",fn:function(i){return[e("b-button",{staticClass:"mr-1 mb-1",attrs:{size:"sm",variant:"primary"},on:{click:function(e){t.openNodeFluxOS(i.item.ip.split(":")[0],i.item.ip.split(":")[1]?+i.item.ip.split(":")[1]-1:16126)}}},[t._v(" Visit ")]),t.selectedEnterpriseNodes.find((t=>t.ip===i.item.ip))?t._e():e("b-button",{staticClass:"mr-1 mb-1",attrs:{id:`add-${i.item.ip}`,size:"sm",variant:"success"},on:{click:function(e){return t.addFluxNode(i.item.ip)}}},[t._v(" Add ")]),t.selectedEnterpriseNodes.find((t=>t.ip===i.item.ip))?e("b-button",{staticClass:"mr-1 mb-1",attrs:{id:`add-${i.item.ip}`,size:"sm",variant:"danger"},on:{click:function(e){return t.removeFluxNode(i.item.ip)}}},[t._v(" Remove ")]):t._e()]}}])})],1),e("b-col",{attrs:{cols:"12"}},[e("b-pagination",{staticClass:"my-0",attrs:{"total-rows":t.entNodesSelectTable.totalRows,"per-page":t.entNodesSelectTable.perPage,align:"center",size:"sm"},model:{value:t.entNodesSelectTable.currentPage,callback:function(e){t.$set(t.entNodesSelectTable,"currentPage",e)},expression:"entNodesSelectTable.currentPage"}}),e("span",{staticClass:"table-total"},[t._v("Total: "+t._s(t.entNodesSelectTable.totalRows))])],1)],1)],1),e("b-modal",{attrs:{title:"Import Application Specifications",size:"lg",centered:"","ok-title":"Import","cancel-title":"Cancel"},on:{ok:function(e){return t.importSpecs(t.importedSpecs)},cancel:function(e){t.importAppSpecs=!1,t.importedSpecs=""}},model:{value:t.importAppSpecs,callback:function(e){t.importAppSpecs=e},expression:"importAppSpecs"}},[e("b-form-textarea",{attrs:{id:"importedAppSpecs",rows:"6"},model:{value:t.importedSpecs,callback:function(e){t.importedSpecs=e},expression:"importedSpecs"}})],1)],1)},a=[],n=(i(70560),i(45752)),s=i(15193),r=i(86855),l=i(49034),c=i(64206),p=i(49379),u=i(19692),d=i(46709),m=i(22183),f=i(8051),h=i(78959),g=i(333),b=i(67347),v=i(16521),y=i(10962),w=i(4060),S=i(22418),x=i(5870),C=i(20629),k=i(20266),_=i(34547),A=i(43672),R=i(27616),N=i(87156),T=i(51748),P=i(38511),E=i(94145),F=i(37307),O=i(52829),$=i(5449),I=i(65864),D=i(40710),M=i.n(D); +(self["webpackChunkflux"]=self["webpackChunkflux"]||[]).push([[4323],{41219:(t,e,i)=>{"use strict";i.r(e),i.d(e,{default:()=>da});var o=function(){var t=this,e=t._self._c;return e("div",[e("b-modal",{attrs:{"hide-footer":"",centered:"","hide-header-close":"","no-close-on-backdrop":"","no-close-on-esc":"",size:"lg","header-bg-variant":"primary",title:t.operationTitle,"title-tag":"h5"},model:{value:t.progressVisable,callback:function(e){t.progressVisable=e},expression:"progressVisable"}},[e("div",{staticClass:"d-flex flex-column justify-content-center align-items-center",staticStyle:{height:"100%"}},[e("div",{staticClass:"d-flex align-items-center mb-2"},[e("b-spinner",{attrs:{label:"Loading..."}}),e("div",{staticClass:"ml-1"},[t._v(" Waiting for the operation to be completed... ")])],1)])]),e("b-card",[e("b-card-sub-title",[t._v(" Note: Mining of any sort including bandwidth mining is prohibited as well as any illegal activites. Please read through "),e("b-link",{attrs:{href:"https://cdn.runonflux.io/Flux_Terms_of_Service.pdf",target:"_blank","active-class":"primary",rel:"noopener noreferrer"}},[t._v(" Terms of Service ")]),t._v(" before deploying your application. In case of any question please contact the Flux Community via "),e("b-link",{attrs:{href:"https://discord.gg/runonflux",target:"_blank","active-class":"primary",rel:"noopener noreferrer"}},[t._v(" Discord ")]),t._v(" or submit an issue directly to "),e("b-link",{attrs:{href:"https://github.com/RunOnFlux/flux",target:"_blank","active-class":"primary",rel:"noopener noreferrer"}},[t._v(" Flux repository. ")]),t._v(". ")],1)],1),t.specificationVersion>=4?e("div",{on:{dragover:t.dragover,dragleave:t.dragleave,drop:t.drop}},[e("b-overlay",{attrs:{"no-center":"",variant:"transparent",opacity:"1",blur:"3px",show:t.isDragging,rounded:"sm"},scopedSlots:t._u([{key:"overlay",fn:function(){return[e("div",{staticClass:"text-center",attrs:{id:"fileDropOverlay"}},[e("b-icon",{attrs:{icon:"folder","font-scale":"8",animation:"cylon"}}),e("div",{staticClass:"text bd-highlight",staticStyle:{"font-size":"20px"}},[t._v(" Drop your docker-compose.yaml here ")])],1)]},proxy:!0}],null,!1,854400542)},[e("b-row",{staticClass:"match-height"},[e("b-col",{attrs:{xs:"6"}},[e("b-form-file",{ref:"uploadSpecs",staticClass:"d-none",on:{input:t.loadFile}}),e("b-card",[e("b-row",{attrs:{"align-h":"end"}},[e("b-col",[e("b-card-title",[t._v(" Details ")])],1),e("b-col",{staticClass:"pr-0 mb-1",attrs:{sm:"auto"}},[e("b-button",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.top",value:"Upload Docker Compose File",expression:"'Upload Docker Compose File'",modifiers:{hover:!0,top:!0}}],staticClass:"mr-0",attrs:{variant:"outline-primary"},on:{click:t.uploadFile}},[e("v-icon",{attrs:{name:"cloud-download-alt"}}),t._v(" Upload ")],1)],1),e("b-col",{staticClass:"pl-1 mb-1",attrs:{sm:"auto"}},[e("b-button",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.top",value:"Import Application Specification",expression:"'Import Application Specification'",modifiers:{hover:!0,top:!0}}],staticClass:"ml-0",attrs:{variant:"outline-primary"},on:{click:function(e){t.importAppSpecs=!0}}},[e("v-icon",{attrs:{name:"cloud-download-alt"}}),t._v(" Import ")],1)],1)],1),e("b-form-group",{attrs:{"label-cols":"2","label-cols-lg":"1",label:"Version","label-for":"version"}},[e("b-form-input",{attrs:{id:"version",placeholder:t.appRegistrationSpecification.version.toString(),readonly:""},model:{value:t.appRegistrationSpecification.version,callback:function(e){t.$set(t.appRegistrationSpecification,"version",e)},expression:"appRegistrationSpecification.version"}})],1),e("b-form-group",{attrs:{"label-cols":"2","label-cols-lg":"1",label:"Name","label-for":"name"}},[e("b-form-input",{attrs:{id:"name",placeholder:"Application Name"},model:{value:t.appRegistrationSpecification.name,callback:function(e){t.$set(t.appRegistrationSpecification,"name",e)},expression:"appRegistrationSpecification.name"}})],1),e("b-form-group",{attrs:{"label-cols":"2","label-cols-lg":"1",label:"Desc.","label-for":"desc"}},[e("b-form-textarea",{attrs:{id:"desc",placeholder:"Description",rows:"3"},model:{value:t.appRegistrationSpecification.description,callback:function(e){t.$set(t.appRegistrationSpecification,"description",e)},expression:"appRegistrationSpecification.description"}})],1),e("b-form-group",{attrs:{"label-cols":"2","label-cols-lg":"1",label:"Owner","label-for":"owner"}},[e("b-form-input",{attrs:{id:"owner",placeholder:"Flux ID of Application Owner"},model:{value:t.appRegistrationSpecification.owner,callback:function(e){t.$set(t.appRegistrationSpecification,"owner",e)},expression:"appRegistrationSpecification.owner"}})],1),t.specificationVersion>=5?e("div",[e("div",{staticClass:"form-row form-group"},[e("label",{staticClass:"col-1 col-form-label"},[t._v(" Contacts "),e("v-icon",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.top",value:"Array of strings of emails Contacts to get notifications ex. app about to expire, app spawns. Contacts are also PUBLIC information.",expression:"'Array of strings of emails Contacts to get notifications ex. app about to expire, app spawns. Contacts are also PUBLIC information.'",modifiers:{hover:!0,top:!0}}],staticClass:"mr-1",attrs:{name:"info-circle"}})],1),e("div",{staticClass:"col"},[e("b-form-input",{attrs:{id:"contacs"},model:{value:t.appRegistrationSpecification.contacts,callback:function(e){t.$set(t.appRegistrationSpecification,"contacts",e)},expression:"appRegistrationSpecification.contacts"}})],1),e("div",{staticClass:"col-0"},[e("b-button",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.top",value:"Uploads Contacts to Flux Storage. Contacts will be replaced with a link to Flux Storage instead. This increases maximum allowed contacts while adding enhanced privacy - nobody except FluxOS Team maintaining notifications system has access to contacts.",expression:"\n 'Uploads Contacts to Flux Storage. Contacts will be replaced with a link to Flux Storage instead. This increases maximum allowed contacts while adding enhanced privacy - nobody except FluxOS Team maintaining notifications system has access to contacts.'\n ",modifiers:{hover:!0,top:!0}}],attrs:{id:"upload-contacts",variant:"outline-primary"}},[e("v-icon",{attrs:{name:"cloud-upload-alt"}})],1),e("confirm-dialog",{attrs:{target:"upload-contacts","confirm-button":"Upload Contacts",width:600},on:{confirm:function(e){return t.uploadContactsToFluxStorage()}}})],1)]),t.specificationVersion>=5&&!t.isPrivateApp?e("div",[e("h4",[t._v("Allowed Geolocation")]),t._l(t.numberOfGeolocations,(function(i){return e("div",{key:`${i}pos`},[e("b-form-group",{attrs:{"label-cols":"3","label-cols-lg":"1",label:`Continent - ${i}`,"label-for":"Continent"}},[e("b-form-select",{attrs:{id:"Continent",options:t.continentsOptions(!1)},on:{change:function(e){return t.adjustMaxInstancesPossible()}},scopedSlots:t._u([{key:"first",fn:function(){return[e("b-form-select-option",{attrs:{value:void 0,disabled:""}},[t._v(" -- Select to restrict Continent -- ")])]},proxy:!0}],null,!0),model:{value:t.allowedGeolocations[`selectedContinent${i}`],callback:function(e){t.$set(t.allowedGeolocations,`selectedContinent${i}`,e)},expression:"allowedGeolocations[`selectedContinent${n}`]"}})],1),t.allowedGeolocations[`selectedContinent${i}`]&&"ALL"!==t.allowedGeolocations[`selectedContinent${i}`]?e("b-form-group",{attrs:{"label-cols":"3","label-cols-lg":"1",label:`Country - ${i}`,"label-for":"Country"}},[e("b-form-select",{attrs:{id:"country",options:t.countriesOptions(t.allowedGeolocations[`selectedContinent${i}`],!1)},on:{change:function(e){return t.adjustMaxInstancesPossible()}},scopedSlots:t._u([{key:"first",fn:function(){return[e("b-form-select-option",{attrs:{value:void 0,disabled:""}},[t._v(" -- Select to restrict Country -- ")])]},proxy:!0}],null,!0),model:{value:t.allowedGeolocations[`selectedCountry${i}`],callback:function(e){t.$set(t.allowedGeolocations,`selectedCountry${i}`,e)},expression:"allowedGeolocations[`selectedCountry${n}`]"}})],1):t._e(),t.allowedGeolocations[`selectedContinent${i}`]&&"ALL"!==t.allowedGeolocations[`selectedContinent${i}`]&&t.allowedGeolocations[`selectedCountry${i}`]&&"ALL"!==t.allowedGeolocations[`selectedCountry${i}`]?e("b-form-group",{attrs:{"label-cols":"3","label-cols-lg":"1",label:`Region - ${i}`,"label-for":"Region"}},[e("b-form-select",{attrs:{id:"Region",options:t.regionsOptions(t.allowedGeolocations[`selectedContinent${i}`],t.allowedGeolocations[`selectedCountry${i}`],!1)},on:{change:function(e){return t.adjustMaxInstancesPossible()}},scopedSlots:t._u([{key:"first",fn:function(){return[e("b-form-select-option",{attrs:{value:void 0,disabled:""}},[t._v(" -- Select to restrict Region -- ")])]},proxy:!0}],null,!0),model:{value:t.allowedGeolocations[`selectedRegion${i}`],callback:function(e){t.$set(t.allowedGeolocations,`selectedRegion${i}`,e)},expression:"allowedGeolocations[`selectedRegion${n}`]"}})],1):t._e()],1)})),e("div",{staticClass:"text-center"},[t.numberOfGeolocations>1?e("b-button",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.bottom",value:"Remove Allowed Geolocation Restriction",expression:"'Remove Allowed Geolocation Restriction'",modifiers:{hover:!0,bottom:!0}},{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"m-1",attrs:{variant:"outline-secondary",size:"sm"},on:{click:function(e){t.numberOfGeolocations=t.numberOfGeolocations-1,t.adjustMaxInstancesPossible()}}},[e("v-icon",{attrs:{name:"minus"}})],1):t._e(),t.numberOfGeolocations<5?e("b-button",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.bottom",value:"Add Allowed Geolocation Restriction",expression:"'Add Allowed Geolocation Restriction'",modifiers:{hover:!0,bottom:!0}},{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"m-1",attrs:{variant:"outline-secondary",size:"sm"},on:{click:function(e){t.numberOfGeolocations=t.numberOfGeolocations+1,t.adjustMaxInstancesPossible()}}},[e("v-icon",{attrs:{name:"plus"}})],1):t._e()],1)],2):t._e(),e("br"),e("br"),t.specificationVersion>=5&&!t.isPrivateApp?e("div",[e("h4",[t._v("Forbidden Geolocation")]),t._l(t.numberOfNegativeGeolocations,(function(i){return e("div",{key:`${i}posB`},[e("b-form-group",{attrs:{"label-cols":"3","label-cols-lg":"1",label:`Continent - ${i}`,"label-for":"Continent"}},[e("b-form-select",{attrs:{id:"Continent",options:t.continentsOptions(!0)},scopedSlots:t._u([{key:"first",fn:function(){return[e("b-form-select-option",{attrs:{value:void 0,disabled:""}},[t._v(" -- Select to ban Continent -- ")])]},proxy:!0}],null,!0),model:{value:t.forbiddenGeolocations[`selectedContinent${i}`],callback:function(e){t.$set(t.forbiddenGeolocations,`selectedContinent${i}`,e)},expression:"forbiddenGeolocations[`selectedContinent${n}`]"}})],1),t.forbiddenGeolocations[`selectedContinent${i}`]&&"NONE"!==t.forbiddenGeolocations[`selectedContinent${i}`]?e("b-form-group",{attrs:{"label-cols":"3","label-cols-lg":"1",label:`Country - ${i}`,"label-for":"Country"}},[e("b-form-select",{attrs:{id:"country",options:t.countriesOptions(t.forbiddenGeolocations[`selectedContinent${i}`],!0)},scopedSlots:t._u([{key:"first",fn:function(){return[e("b-form-select-option",{attrs:{value:void 0,disabled:""}},[t._v(" -- Select to ban Country -- ")])]},proxy:!0}],null,!0),model:{value:t.forbiddenGeolocations[`selectedCountry${i}`],callback:function(e){t.$set(t.forbiddenGeolocations,`selectedCountry${i}`,e)},expression:"forbiddenGeolocations[`selectedCountry${n}`]"}})],1):t._e(),t.forbiddenGeolocations[`selectedContinent${i}`]&&"NONE"!==t.forbiddenGeolocations[`selectedContinent${i}`]&&t.forbiddenGeolocations[`selectedCountry${i}`]&&"ALL"!==t.forbiddenGeolocations[`selectedCountry${i}`]?e("b-form-group",{attrs:{"label-cols":"3","label-cols-lg":"1",label:`Region - ${i}`,"label-for":"Region"}},[e("b-form-select",{attrs:{id:"Region",options:t.regionsOptions(t.forbiddenGeolocations[`selectedContinent${i}`],t.forbiddenGeolocations[`selectedCountry${i}`],!0)},scopedSlots:t._u([{key:"first",fn:function(){return[e("b-form-select-option",{attrs:{value:void 0,disabled:""}},[t._v(" -- Select to ban Region -- ")])]},proxy:!0}],null,!0),model:{value:t.forbiddenGeolocations[`selectedRegion${i}`],callback:function(e){t.$set(t.forbiddenGeolocations,`selectedRegion${i}`,e)},expression:"forbiddenGeolocations[`selectedRegion${n}`]"}})],1):t._e()],1)})),e("div",{staticClass:"text-center"},[t.numberOfNegativeGeolocations>1?e("b-button",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.bottom",value:"Remove Forbidden Geolocation Restriction",expression:"'Remove Forbidden Geolocation Restriction'",modifiers:{hover:!0,bottom:!0}},{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"m-1",attrs:{variant:"outline-secondary",size:"sm"},on:{click:function(e){t.numberOfNegativeGeolocations=t.numberOfNegativeGeolocations-1}}},[e("v-icon",{attrs:{name:"minus"}})],1):t._e(),t.numberOfNegativeGeolocations<5?e("b-button",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.bottom",value:"Add Forbidden Geolocation Restriction",expression:"'Add Forbidden Geolocation Restriction'",modifiers:{hover:!0,bottom:!0}},{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"m-1",attrs:{variant:"outline-secondary",size:"sm"},on:{click:function(e){t.numberOfNegativeGeolocations=t.numberOfNegativeGeolocations+1}}},[e("v-icon",{attrs:{name:"plus"}})],1):t._e()],1)],2):t._e()]):t._e(),e("br"),t.appRegistrationSpecification.version>=3?e("b-form-group",{attrs:{"label-cols":"2","label-cols-lg":"1",label:"Instances","label-for":"instances"}},[e("div",{staticClass:"mx-1"},[t._v(" "+t._s(t.appRegistrationSpecification.instances)+" ")]),e("b-form-input",{attrs:{id:"instances",placeholder:"Minimum number of application instances to be spawned",type:"range",min:t.minInstances,max:t.maxInstances,step:"1"},model:{value:t.appRegistrationSpecification.instances,callback:function(e){t.$set(t.appRegistrationSpecification,"instances",e)},expression:"appRegistrationSpecification.instances"}})],1):t._e(),e("br"),t.appRegistrationSpecification.version>=6?e("b-form-group",{attrs:{"label-cols":"2","label-cols-lg":"1",label:"Period","label-for":"period"}},[e("div",{staticClass:"mx-1"},[t._v(" "+t._s(t.getExpireLabel||(t.appRegistrationSpecification.expire?`${t.appRegistrationSpecification.expire} blocks`:"1 month"))+" ")]),e("b-form-input",{attrs:{id:"period",placeholder:"How long an application will live on Flux network",type:"range",min:0,max:5,step:1},model:{value:t.expirePosition,callback:function(e){t.expirePosition=e},expression:"expirePosition"}})],1):t._e(),e("br"),t.appRegistrationSpecification.version>=7?e("div",{staticClass:"form-row form-group"},[e("label",{staticClass:"col-form-label"},[t._v(" Static IP "),e("v-icon",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.top",value:"Select if your application strictly requires static IP address",expression:"'Select if your application strictly requires static IP address'",modifiers:{hover:!0,top:!0}}],staticClass:"mr-1",attrs:{name:"info-circle"}})],1),e("div",{staticClass:"col"},[e("b-form-checkbox",{staticClass:"custom-control-primary inline",attrs:{id:"staticip",switch:""},model:{value:t.appRegistrationSpecification.staticip,callback:function(e){t.$set(t.appRegistrationSpecification,"staticip",e)},expression:"appRegistrationSpecification.staticip"}})],1)]):t._e(),t.appRegistrationSpecification.version>=7?e("div",{staticClass:"form-row form-group"},[e("label",{staticClass:"col-form-label"},[t._v(" Enterprise Application "),e("v-icon",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.top",value:"Select if your application requires private image, secrets or if you want to target specific nodes on which application can run. Geolocation targetting is not possible in this case.",expression:"'Select if your application requires private image, secrets or if you want to target specific nodes on which application can run. Geolocation targetting is not possible in this case.'",modifiers:{hover:!0,top:!0}}],staticClass:"mr-1",attrs:{name:"info-circle"}})],1),e("div",{staticClass:"col"},[e("b-form-checkbox",{staticClass:"custom-control-primary inline",attrs:{id:"enterpriseapp",switch:""},model:{value:t.isPrivateApp,callback:function(e){t.isPrivateApp=e},expression:"isPrivateApp"}})],1)]):t._e()],1)],1)],1),t._l(t.appRegistrationSpecification.compose,(function(i,o){return e("b-card",{key:o,ref:"components",refInFor:!0},[e("b-card-title",[t._v(" Component "+t._s(i.name)+" "),t.appRegistrationSpecification.compose.length>1?e("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"float-right",attrs:{variant:"warning","aria-label":"Remove Component",size:"sm"},on:{click:function(e){return t.removeComponent(o)}}},[t._v(" Remove ")]):t._e()],1),e("b-row",{staticClass:"match-height"},[e("b-col",{attrs:{xs:"12",xl:"6"}},[e("b-card",[e("b-card-title",[t._v(" General ")]),e("div",{staticClass:"form-row form-group"},[e("label",{staticClass:"col-3 col-form-label"},[t._v(" Name "),e("v-icon",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.top",value:"Name of Application Component",expression:"'Name of Application Component'",modifiers:{hover:!0,top:!0}}],staticClass:"mr-1",attrs:{name:"info-circle"}})],1),e("div",{staticClass:"col"},[e("b-form-input",{attrs:{id:"repo",placeholder:"Component name"},model:{value:i.name,callback:function(e){t.$set(i,"name",e)},expression:"component.name"}})],1)]),e("div",{staticClass:"form-row form-group"},[e("label",{staticClass:"col-3 col-form-label"},[t._v(" Description "),e("v-icon",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.top",value:"Description of Application Component",expression:"'Description of Application Component'",modifiers:{hover:!0,top:!0}}],staticClass:"mr-1",attrs:{name:"info-circle"}})],1),e("div",{staticClass:"col"},[e("b-form-input",{attrs:{id:"repo",placeholder:"Component description"},model:{value:i.description,callback:function(e){t.$set(i,"description",e)},expression:"component.description"}})],1)]),e("div",{staticClass:"form-row form-group"},[e("label",{staticClass:"col-3 col-form-label"},[t._v(" Repository "),e("v-icon",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.top",value:"Docker image namespace/repository:tag for component",expression:"'Docker image namespace/repository:tag for component'",modifiers:{hover:!0,top:!0}}],staticClass:"mr-1",attrs:{name:"info-circle"}})],1),e("div",{staticClass:"col"},[e("b-form-input",{attrs:{id:"repo",placeholder:"Docker image namespace/repository:tag"},model:{value:i.repotag,callback:function(e){t.$set(i,"repotag",e)},expression:"component.repotag"}})],1)]),t.appRegistrationSpecification.version>=7&&t.isPrivateApp?e("div",{staticClass:"form-row form-group"},[e("label",{staticClass:"col-3 col-form-label"},[t._v(" Repository Authentication "),e("v-icon",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.top",value:"Docker image authentication for private images in the format of username:apikey. This field will be encrypted and accessible to selected enterprise nodes only.",expression:"'Docker image authentication for private images in the format of username:apikey. This field will be encrypted and accessible to selected enterprise nodes only.'",modifiers:{hover:!0,top:!0}}],staticClass:"mr-1",attrs:{name:"info-circle"}})],1),e("div",{staticClass:"col"},[e("b-form-input",{attrs:{id:"repoauth",placeholder:"Docker authentication username:apikey"},model:{value:i.repoauth,callback:function(e){t.$set(i,"repoauth",e)},expression:"component.repoauth"}})],1)]):t._e(),e("br"),e("b-card-title",[t._v(" Connectivity ")]),e("div",{staticClass:"form-row form-group"},[e("label",{staticClass:"col-3 col-form-label"},[t._v(" Ports "),e("v-icon",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.top",value:"Array of Ports on which application will be available",expression:"'Array of Ports on which application will be available'",modifiers:{hover:!0,top:!0}}],staticClass:"mr-1",attrs:{name:"info-circle"}})],1),e("div",{staticClass:"col"},[e("b-form-input",{attrs:{id:"ports"},model:{value:i.ports,callback:function(e){t.$set(i,"ports",e)},expression:"component.ports"}})],1)]),e("div",{staticClass:"form-row form-group"},[e("label",{staticClass:"col-3 col-form-label"},[t._v(" Domains "),e("v-icon",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.top",value:"Array of strings of Domains managed by Flux Domain Manager (FDM). Length must correspond to available ports. Use empty strings for no domains",expression:"'Array of strings of Domains managed by Flux Domain Manager (FDM). Length must correspond to available ports. Use empty strings for no domains'",modifiers:{hover:!0,top:!0}}],staticClass:"mr-1",attrs:{name:"info-circle"}})],1),e("div",{staticClass:"col"},[e("b-form-input",{attrs:{id:"domains"},model:{value:i.domains,callback:function(e){t.$set(i,"domains",e)},expression:"component.domains"}})],1)]),e("div",{staticClass:"form-row form-group"},[e("label",{staticClass:"col-3 col-form-label"},[t._v(" Cont. Ports "),e("v-icon",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.top",value:"Container Ports - Array of ports which your container has",expression:"'Container Ports - Array of ports which your container has'",modifiers:{hover:!0,top:!0}}],staticClass:"mr-1",attrs:{name:"info-circle"}})],1),e("div",{staticClass:"col"},[e("b-form-input",{attrs:{id:"containerPorts"},model:{value:i.containerPorts,callback:function(e){t.$set(i,"containerPorts",e)},expression:"component.containerPorts"}})],1)])],1)],1),e("b-col",{attrs:{xs:"12",xl:"6"}},[e("b-card",[e("b-card-title",[t._v(" Environment ")]),e("div",{staticClass:"form-row form-group"},[e("label",{staticClass:"col-3 col-form-label"},[t._v(" Environment "),e("v-icon",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.top",value:"Array of strings of Environmental Parameters",expression:"'Array of strings of Environmental Parameters'",modifiers:{hover:!0,top:!0}}],staticClass:"mr-1",attrs:{name:"info-circle"}})],1),e("div",{staticClass:"col"},[e("b-form-input",{attrs:{id:"environmentParameters"},model:{value:i.environmentParameters,callback:function(e){t.$set(i,"environmentParameters",e)},expression:"component.environmentParameters"}})],1),e("div",{staticClass:"col-0"},[e("b-button",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.top",value:"Uploads Enviornment to Flux Storage. Environment parameters will be replaced with a link to Flux Storage instead. This increases maximum allowed size of Env. parameters while adding basic privacy - instead of parameters, link to Flux Storage will be visible.",expression:"\n 'Uploads Enviornment to Flux Storage. Environment parameters will be replaced with a link to Flux Storage instead. This increases maximum allowed size of Env. parameters while adding basic privacy - instead of parameters, link to Flux Storage will be visible.'\n ",modifiers:{hover:!0,top:!0}}],attrs:{id:"upload-env",variant:"outline-primary"}},[e("v-icon",{attrs:{name:"cloud-upload-alt"}})],1),e("confirm-dialog",{attrs:{target:"upload-env","confirm-button":"Upload Environment Parameters",width:600},on:{confirm:function(e){return t.uploadEnvToFluxStorage(o)}}})],1)]),e("div",{staticClass:"form-row form-group"},[e("label",{staticClass:"col-3 col-form-label"},[t._v(" Commands "),e("v-icon",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.top",value:"Array of strings of Commands",expression:"'Array of strings of Commands'",modifiers:{hover:!0,top:!0}}],staticClass:"mr-1",attrs:{name:"info-circle"}})],1),e("div",{staticClass:"col"},[e("b-form-input",{attrs:{id:"commands"},model:{value:i.commands,callback:function(e){t.$set(i,"commands",e)},expression:"component.commands"}})],1),e("div",{staticClass:"col-0"},[e("b-button",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.top",value:"Uploads Commands to Flux Storage. Commands will be replaced with a link to Flux Storage instead. This increases maximum allowed size of Commands while adding basic privacy - instead of commands, link to Flux Storage will be visible.",expression:"'Uploads Commands to Flux Storage. Commands will be replaced with a link to Flux Storage instead. This increases maximum allowed size of Commands while adding basic privacy - instead of commands, link to Flux Storage will be visible.'",modifiers:{hover:!0,top:!0}}],attrs:{id:"upload-cmd",variant:"outline-primary"}},[e("v-icon",{attrs:{name:"cloud-upload-alt"}})],1),e("confirm-dialog",{attrs:{target:"upload-cmd","confirm-button":"Upload Commands",width:600},on:{confirm:function(e){return t.uploadCmdToFluxStorage(o)}}})],1)]),e("div",{staticClass:"form-row form-group"},[e("label",{staticClass:"col-3 col-form-label"},[t._v(" Cont. Data "),e("v-icon",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.top",value:"Data folder that is shared by application to App volume. Prepend with r: for synced data between instances. Ex. r:/data. Prepend with g: for synced data and primary/standby solution. Ex. g:/data",expression:"'Data folder that is shared by application to App volume. Prepend with r: for synced data between instances. Ex. r:/data. Prepend with g: for synced data and primary/standby solution. Ex. g:/data'",modifiers:{hover:!0,top:!0}}],staticClass:"mr-1",attrs:{name:"info-circle"}})],1),e("div",{staticClass:"col"},[e("b-form-input",{attrs:{id:"containerData"},model:{value:i.containerData,callback:function(e){t.$set(i,"containerData",e)},expression:"component.containerData"}})],1)]),t.appRegistrationSpecification.version>=7&&t.isPrivateApp?e("div",{staticClass:"form-row form-group"},[e("label",{staticClass:"col-3 col-form-label"},[t._v(" Secrets "),e("v-icon",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.top",value:"Array of strings of Secret Environmental Parameters. This will be encrypted and accessible to selected Enterprise Nodes only",expression:"'Array of strings of Secret Environmental Parameters. This will be encrypted and accessible to selected Enterprise Nodes only'",modifiers:{hover:!0,top:!0}}],staticClass:"mr-1",attrs:{name:"info-circle"}})],1),e("div",{staticClass:"col"},[e("b-form-input",{attrs:{id:"secrets",placeholder:"[]"},model:{value:i.secrets,callback:function(e){t.$set(i,"secrets",e)},expression:"component.secrets"}})],1)]):t._e(),e("br"),e("b-card-title",[t._v(" Resources    "),e("h6",{staticClass:"inline text-small"},[t._v(" Tiered: "),e("b-form-checkbox",{staticClass:"custom-control-primary inline",attrs:{id:"tiered",switch:""},model:{value:i.tiered,callback:function(e){t.$set(i,"tiered",e)},expression:"component.tiered"}})],1)]),i.tiered?t._e():e("b-form-group",{attrs:{"label-cols":"2","label-cols-lg":"1",label:"CPU","label-for":"cpu"}},[e("div",{staticClass:"mx-1"},[t._v(" "+t._s(i.cpu)+" ")]),e("b-form-input",{attrs:{id:"cpu",placeholder:"CPU cores to use by default",type:"range",min:"0.1",max:"15",step:"0.1"},model:{value:i.cpu,callback:function(e){t.$set(i,"cpu",e)},expression:"component.cpu"}})],1),i.tiered?t._e():e("b-form-group",{attrs:{"label-cols":"2","label-cols-lg":"1",label:"RAM","label-for":"ram"}},[e("div",{staticClass:"mx-1"},[t._v(" "+t._s(i.ram)+" ")]),e("b-form-input",{attrs:{id:"ram",placeholder:"RAM in MB value to use by default",type:"range",min:"100",max:"59000",step:"100"},model:{value:i.ram,callback:function(e){t.$set(i,"ram",e)},expression:"component.ram"}})],1),i.tiered?t._e():e("b-form-group",{attrs:{"label-cols":"2","label-cols-lg":"1",label:"SSD","label-for":"ssd"}},[e("div",{staticClass:"mx-1"},[t._v(" "+t._s(i.hdd)+" ")]),e("b-form-input",{attrs:{id:"ssd",placeholder:"SSD in GB value to use by default",type:"range",min:"1",max:"820",step:"1"},model:{value:i.hdd,callback:function(e){t.$set(i,"hdd",e)},expression:"component.hdd"}})],1)],1)],1)],1),i.tiered?e("b-row",[e("b-col",{attrs:{xs:"12",md:"6",lg:"4"}},[e("b-card",{attrs:{title:"Cumulus"}},[e("div",[t._v(" CPU: "+t._s(i.cpubasic)+" ")]),e("b-form-input",{attrs:{type:"range",min:"0.1",max:"3",step:"0.1"},model:{value:i.cpubasic,callback:function(e){t.$set(i,"cpubasic",e)},expression:"component.cpubasic"}}),e("div",[t._v(" RAM: "+t._s(i.rambasic)+" ")]),e("b-form-input",{attrs:{type:"range",min:"100",max:"5000",step:"100"},model:{value:i.rambasic,callback:function(e){t.$set(i,"rambasic",e)},expression:"component.rambasic"}}),e("div",[t._v(" SSD: "+t._s(i.hddbasic)+" ")]),e("b-form-input",{attrs:{type:"range",min:"1",max:"180",step:"1"},model:{value:i.hddbasic,callback:function(e){t.$set(i,"hddbasic",e)},expression:"component.hddbasic"}})],1)],1),e("b-col",{attrs:{xs:"12",md:"6",lg:"4"}},[e("b-card",{attrs:{title:"Nimbus"}},[e("div",[t._v(" CPU: "+t._s(i.cpusuper)+" ")]),e("b-form-input",{attrs:{type:"range",min:"0.1",max:"7",step:"0.1"},model:{value:i.cpusuper,callback:function(e){t.$set(i,"cpusuper",e)},expression:"component.cpusuper"}}),e("div",[t._v(" RAM: "+t._s(i.ramsuper)+" ")]),e("b-form-input",{attrs:{type:"range",min:"100",max:"28000",step:"100"},model:{value:i.ramsuper,callback:function(e){t.$set(i,"ramsuper",e)},expression:"component.ramsuper"}}),e("div",[t._v(" SSD: "+t._s(i.hddsuper)+" ")]),e("b-form-input",{attrs:{type:"range",min:"1",max:"400",step:"1"},model:{value:i.hddsuper,callback:function(e){t.$set(i,"hddsuper",e)},expression:"component.hddsuper"}})],1)],1),e("b-col",{attrs:{xs:"12",lg:"4"}},[e("b-card",{attrs:{title:"Stratus"}},[e("div",[t._v(" CPU: "+t._s(i.cpubamf)+" ")]),e("b-form-input",{attrs:{type:"range",min:"0.1",max:"15",step:"0.1"},model:{value:i.cpubamf,callback:function(e){t.$set(i,"cpubamf",e)},expression:"component.cpubamf"}}),e("div",[t._v(" RAM: "+t._s(i.rambamf)+" ")]),e("b-form-input",{attrs:{type:"range",min:"100",max:"59000",step:"100"},model:{value:i.rambamf,callback:function(e){t.$set(i,"rambamf",e)},expression:"component.rambamf"}}),e("div",[t._v(" SSD: "+t._s(i.hddbamf)+" ")]),e("b-form-input",{attrs:{type:"range",min:"1",max:"820",step:"1"},model:{value:i.hddbamf,callback:function(e){t.$set(i,"hddbamf",e)},expression:"component.hddbamf"}})],1)],1)],1):t._e()],1)})),t.appRegistrationSpecification.version>=7&&t.isPrivateApp?e("b-card",{attrs:{title:"Enterprise Nodes"}},[t._v(" Only these selected enterprise nodes will be able to run your application and are used for encryption. Only these nodes are able to access your private image and secrets."),e("br"),t._v(" Changing the node list after the message is computed and encrypted will result in a failure to run. Secrets and Repository Authentication would need to be adjusted again."),e("br"),t._v(" The score determines how reputable a node and node operator are. The higher the score, the higher the reputation on the network."),e("br"),t._v(" Secrets and Repository Authentication need to be set again if this node list changes."),e("br"),t._v(" The more nodes can run your application, the more stable it is. On the other hand, more nodes will have access to your private data!"),e("br"),e("b-row",[e("b-col",{staticClass:"my-1",attrs:{md:"4",sm:"4"}},[e("b-form-group",{staticClass:"mb-0"},[e("label",{staticClass:"d-inline-block text-left mr-50"},[t._v("Per page")]),e("b-form-select",{staticClass:"w-50",attrs:{id:"perPageSelect",size:"sm",options:t.entNodesTable.pageOptions},model:{value:t.entNodesTable.perPage,callback:function(e){t.$set(t.entNodesTable,"perPage",e)},expression:"entNodesTable.perPage"}})],1)],1),e("b-col",{staticClass:"my-1",attrs:{md:"8"}},[e("b-form-group",{staticClass:"mb-0",attrs:{label:"Filter","label-cols-sm":"1","label-align-sm":"right","label-for":"filterInput"}},[e("b-input-group",{attrs:{size:"sm"}},[e("b-form-input",{attrs:{id:"filterInput",type:"search",placeholder:"Type to Search"},model:{value:t.entNodesTable.filter,callback:function(e){t.$set(t.entNodesTable,"filter",e)},expression:"entNodesTable.filter"}}),e("b-input-group-append",[e("b-button",{attrs:{disabled:!t.entNodesTable.filter},on:{click:function(e){t.entNodesTable.filter=""}}},[t._v(" Clear ")])],1)],1)],1)],1),e("b-col",{attrs:{cols:"12"}},[e("b-table",{staticClass:"app-enterprise-nodes-table",attrs:{striped:"",hover:"",responsive:"","per-page":t.entNodesTable.perPage,"current-page":t.entNodesTable.currentPage,items:t.selectedEnterpriseNodes,fields:t.entNodesTable.fields,"sort-by":t.entNodesTable.sortBy,"sort-desc":t.entNodesTable.sortDesc,"sort-direction":t.entNodesTable.sortDirection,filter:t.entNodesTable.filter,"filter-included-fields":t.entNodesTable.filterOn,"show-empty":"","empty-text":"No Enterprise Nodes selected"},on:{"update:sortBy":function(e){return t.$set(t.entNodesTable,"sortBy",e)},"update:sort-by":function(e){return t.$set(t.entNodesTable,"sortBy",e)},"update:sortDesc":function(e){return t.$set(t.entNodesTable,"sortDesc",e)},"update:sort-desc":function(e){return t.$set(t.entNodesTable,"sortDesc",e)}},scopedSlots:t._u([{key:"cell(show_details)",fn:function(i){return[e("a",{on:{click:i.toggleDetails}},[i.detailsShowing?t._e():e("v-icon",{attrs:{name:"chevron-down"}}),i.detailsShowing?e("v-icon",{attrs:{name:"chevron-up"}}):t._e()],1)]}},{key:"row-details",fn:function(i){return[e("b-card",{staticClass:"mx-2"},[e("list-entry",{attrs:{title:"IP Address",data:i.item.ip}}),e("list-entry",{attrs:{title:"Public Key",data:i.item.pubkey}}),e("list-entry",{attrs:{title:"Node Address",data:i.item.payment_address}}),e("list-entry",{attrs:{title:"Collateral",data:`${i.item.txhash}:${i.item.outidx}`}}),e("list-entry",{attrs:{title:"Tier",data:i.item.tier}}),e("list-entry",{attrs:{title:"Overall Score",data:i.item.score.toString()}}),e("list-entry",{attrs:{title:"Collateral Score",data:i.item.collateralPoints.toString()}}),e("list-entry",{attrs:{title:"Maturity Score",data:i.item.maturityPoints.toString()}}),e("list-entry",{attrs:{title:"Public Key Score",data:i.item.pubKeyPoints.toString()}}),e("list-entry",{attrs:{title:"Enterprise Apps Assigned",data:i.item.enterpriseApps.toString()}}),e("div",[e("b-button",{staticClass:"mr-0",attrs:{size:"sm",variant:"primary"},on:{click:function(e){t.openNodeFluxOS(i.item.ip.split(":")[0],i.item.ip.split(":")[1]?+i.item.ip.split(":")[1]-1:16126)}}},[t._v(" Visit FluxNode ")])],1)],1)]}},{key:"cell(ip)",fn:function(e){return[t._v(" "+t._s(e.item.ip)+" ")]}},{key:"cell(payment_address)",fn:function(e){return[t._v(" "+t._s(e.item.payment_address.slice(0,8))+"..."+t._s(e.item.payment_address.slice(e.item.payment_address.length-8,e.item.payment_address.length))+" ")]}},{key:"cell(tier)",fn:function(e){return[t._v(" "+t._s(e.item.tier)+" ")]}},{key:"cell(score)",fn:function(e){return[t._v(" "+t._s(e.item.score)+" ")]}},{key:"cell(actions)",fn:function(i){return[e("b-button",{staticClass:"mr-1 mb-1",attrs:{id:`remove-${i.item.ip}`,size:"sm",variant:"danger"}},[t._v(" Remove ")]),e("confirm-dialog",{attrs:{target:`remove-${i.item.ip}`,"confirm-button":"Remove FluxNode"},on:{confirm:function(e){return t.removeFluxNode(i.item.ip)}}}),e("b-button",{staticClass:"mr-1 mb-1",attrs:{size:"sm",variant:"primary"},on:{click:function(e){t.openNodeFluxOS(i.item.ip.split(":")[0],i.item.ip.split(":")[1]?+i.item.ip.split(":")[1]-1:16126)}}},[t._v(" Visit ")])]}}],null,!1,21821003)})],1),e("b-col",{attrs:{cols:"12"}},[e("b-pagination",{staticClass:"my-0",attrs:{"total-rows":t.selectedEnterpriseNodes.length,"per-page":t.entNodesTable.perPage,align:"center",size:"sm"},model:{value:t.entNodesTable.currentPage,callback:function(e){t.$set(t.entNodesTable,"currentPage",e)},expression:"entNodesTable.currentPage"}}),e("span",{staticClass:"table-total"},[t._v("Total: "+t._s(t.selectedEnterpriseNodes.length))])],1)],1),e("br"),e("br"),e("div",{staticClass:"text-center"},[e("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"mb-2 mr-2",attrs:{variant:"primary","aria-label":"Auto Select Enterprise Nodes"},on:{click:t.autoSelectNodes}},[t._v(" Auto Select Enterprise Nodes ")]),e("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"mb-2 mr-2",attrs:{variant:"primary","aria-label":"Choose Enterprise Nodes"},on:{click:function(e){t.chooseEnterpriseDialog=!0}}},[t._v(" Choose Enterprise Nodes ")])],1)],1):t._e()],2)],1):e("div",[e("b-row",{staticClass:"match-height"},[e("b-col",{attrs:{xs:"12",xl:"6"}},[e("b-card",{attrs:{title:"Details"}},[e("b-form-group",{attrs:{"label-cols":"2",label:"Version","label-for":"version"}},[e("b-form-input",{attrs:{id:"version",placeholder:t.appRegistrationSpecification.version.toString(),readonly:""},model:{value:t.appRegistrationSpecification.version,callback:function(e){t.$set(t.appRegistrationSpecification,"version",e)},expression:"appRegistrationSpecification.version"}})],1),e("b-form-group",{attrs:{"label-cols":"2",label:"Name","label-for":"name"}},[e("b-form-input",{attrs:{id:"name",placeholder:"App Name"},model:{value:t.appRegistrationSpecification.name,callback:function(e){t.$set(t.appRegistrationSpecification,"name",e)},expression:"appRegistrationSpecification.name"}})],1),e("b-form-group",{attrs:{"label-cols":"2",label:"Desc.","label-for":"desc"}},[e("b-form-textarea",{attrs:{id:"desc",placeholder:"Description",rows:"3"},model:{value:t.appRegistrationSpecification.description,callback:function(e){t.$set(t.appRegistrationSpecification,"description",e)},expression:"appRegistrationSpecification.description"}})],1),e("b-form-group",{attrs:{"label-cols":"2",label:"Repo","label-for":"repo"}},[e("b-form-input",{attrs:{id:"repo",placeholder:"Docker image namespace/repository:tag"},model:{value:t.appRegistrationSpecification.repotag,callback:function(e){t.$set(t.appRegistrationSpecification,"repotag",e)},expression:"appRegistrationSpecification.repotag"}})],1),e("b-form-group",{attrs:{"label-cols":"2",label:"Owner","label-for":"owner"}},[e("b-form-input",{attrs:{id:"owner",placeholder:"Flux ID of Application Owner"},model:{value:t.appRegistrationSpecification.owner,callback:function(e){t.$set(t.appRegistrationSpecification,"owner",e)},expression:"appRegistrationSpecification.owner"}})],1)],1)],1),e("b-col",{attrs:{xs:"12",xl:"6"}},[e("b-card",{attrs:{title:"Environment"}},[e("div",{staticClass:"form-row form-group"},[e("label",{staticClass:"col-3 col-form-label"},[t._v(" Ports "),e("v-icon",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.top",value:"Array of Ports on which application will be available",expression:"'Array of Ports on which application will be available'",modifiers:{hover:!0,top:!0}}],staticClass:"mr-1",attrs:{name:"info-circle"}})],1),e("div",{staticClass:"col"},[e("b-form-input",{attrs:{id:"ports"},model:{value:t.appRegistrationSpecification.ports,callback:function(e){t.$set(t.appRegistrationSpecification,"ports",e)},expression:"appRegistrationSpecification.ports"}})],1)]),e("div",{staticClass:"form-row form-group"},[e("label",{staticClass:"col-3 col-form-label"},[t._v(" Domains "),e("v-icon",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.top",value:"Array of strings of Domains managed by Flux Domain Manager (FDM). Length must correspond to available ports. Use empty strings for no domains",expression:"'Array of strings of Domains managed by Flux Domain Manager (FDM). Length must correspond to available ports. Use empty strings for no domains'",modifiers:{hover:!0,top:!0}}],staticClass:"mr-1",attrs:{name:"info-circle"}})],1),e("div",{staticClass:"col"},[e("b-form-input",{attrs:{id:"domains"},model:{value:t.appRegistrationSpecification.domains,callback:function(e){t.$set(t.appRegistrationSpecification,"domains",e)},expression:"appRegistrationSpecification.domains"}})],1)]),e("div",{staticClass:"form-row form-group"},[e("label",{staticClass:"col-3 col-form-label"},[t._v(" Environment "),e("v-icon",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.top",value:"Array of strings of Environmental Parameters",expression:"'Array of strings of Environmental Parameters'",modifiers:{hover:!0,top:!0}}],staticClass:"mr-1",attrs:{name:"info-circle"}})],1),e("div",{staticClass:"col"},[e("b-form-input",{attrs:{id:"environmentParameters"},model:{value:t.appRegistrationSpecification.enviromentParameters,callback:function(e){t.$set(t.appRegistrationSpecification,"enviromentParameters",e)},expression:"appRegistrationSpecification.enviromentParameters"}})],1)]),e("div",{staticClass:"form-row form-group"},[e("label",{staticClass:"col-3 col-form-label"},[t._v(" Commands "),e("v-icon",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.top",value:"Array of strings of Commands",expression:"'Array of strings of Commands'",modifiers:{hover:!0,top:!0}}],staticClass:"mr-1",attrs:{name:"info-circle"}})],1),e("div",{staticClass:"col"},[e("b-form-input",{attrs:{id:"commands"},model:{value:t.appRegistrationSpecification.commands,callback:function(e){t.$set(t.appRegistrationSpecification,"commands",e)},expression:"appRegistrationSpecification.commands"}})],1)]),e("div",{staticClass:"form-row form-group"},[e("label",{staticClass:"col-3 col-form-label"},[t._v(" Cont. Ports "),e("v-icon",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.top",value:"Container Ports - Array of ports which your container has",expression:"'Container Ports - Array of ports which your container has'",modifiers:{hover:!0,top:!0}}],staticClass:"mr-1",attrs:{name:"info-circle"}})],1),e("div",{staticClass:"col"},[e("b-form-input",{attrs:{id:"containerPorts"},model:{value:t.appRegistrationSpecification.containerPorts,callback:function(e){t.$set(t.appRegistrationSpecification,"containerPorts",e)},expression:"appRegistrationSpecification.containerPorts"}})],1)]),e("div",{staticClass:"form-row form-group"},[e("label",{staticClass:"col-3 col-form-label"},[t._v(" Cont. Data "),e("v-icon",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.top",value:"Data folder that is shared by application to App volume. Prepend with r: for synced data between instances. Ex. r:/data. Prepend with g: for synced data and master/slave solution. Ex. g:/data",expression:"'Data folder that is shared by application to App volume. Prepend with r: for synced data between instances. Ex. r:/data. Prepend with g: for synced data and master/slave solution. Ex. g:/data'",modifiers:{hover:!0,top:!0}}],staticClass:"mr-1",attrs:{name:"info-circle"}})],1),e("div",{staticClass:"col"},[e("b-form-input",{attrs:{id:"containerData"},model:{value:t.appRegistrationSpecification.containerData,callback:function(e){t.$set(t.appRegistrationSpecification,"containerData",e)},expression:"appRegistrationSpecification.containerData"}})],1)])])],1)],1),e("b-row",{staticClass:"match-height"},[e("b-col",{attrs:{xs:"12"}},[e("b-card",[e("b-card-title",[t._v(" Resources    "),e("h6",{staticClass:"inline text-small"},[t._v(" Tiered: "),e("b-form-checkbox",{staticClass:"custom-control-primary inline",attrs:{id:"tiered",switch:""},model:{value:t.appRegistrationSpecification.tiered,callback:function(e){t.$set(t.appRegistrationSpecification,"tiered",e)},expression:"appRegistrationSpecification.tiered"}})],1)]),t.appRegistrationSpecification.version>=3?e("b-form-group",{attrs:{"label-cols":"2","label-cols-lg":"1",label:"Instances","label-for":"instances"}},[e("div",{staticClass:"mx-1"},[t._v(" "+t._s(t.appRegistrationSpecification.instances)+" ")]),e("b-form-input",{attrs:{id:"instances",placeholder:"Minimum number of application instances to be spawned",type:"range",min:"3",max:"100",step:"1"},model:{value:t.appRegistrationSpecification.instances,callback:function(e){t.$set(t.appRegistrationSpecification,"instances",e)},expression:"appRegistrationSpecification.instances"}})],1):t._e(),t.appRegistrationSpecification.tiered?t._e():e("b-form-group",{attrs:{"label-cols":"2","label-cols-lg":"1",label:"CPU","label-for":"cpu"}},[e("div",{staticClass:"mx-1"},[t._v(" "+t._s(t.appRegistrationSpecification.cpu)+" ")]),e("b-form-input",{attrs:{id:"cpu",placeholder:"CPU cores to use by default",type:"range",min:"0.1",max:"15",step:"0.1"},model:{value:t.appRegistrationSpecification.cpu,callback:function(e){t.$set(t.appRegistrationSpecification,"cpu",e)},expression:"appRegistrationSpecification.cpu"}})],1),t.appRegistrationSpecification.tiered?t._e():e("b-form-group",{attrs:{"label-cols":"2","label-cols-lg":"1",label:"RAM","label-for":"ram"}},[e("div",{staticClass:"mx-1"},[t._v(" "+t._s(t.appRegistrationSpecification.ram)+" ")]),e("b-form-input",{attrs:{id:"ram",placeholder:"RAM in MB value to use by default",type:"range",min:"100",max:"59000",step:"100"},model:{value:t.appRegistrationSpecification.ram,callback:function(e){t.$set(t.appRegistrationSpecification,"ram",e)},expression:"appRegistrationSpecification.ram"}})],1),t.appRegistrationSpecification.tiered?t._e():e("b-form-group",{attrs:{"label-cols":"2","label-cols-lg":"1",label:"SSD","label-for":"ssd"}},[e("div",{staticClass:"mx-1"},[t._v(" "+t._s(t.appRegistrationSpecification.hdd)+" ")]),e("b-form-input",{attrs:{id:"ssd",placeholder:"SSD in GB value to use by default",type:"range",min:"1",max:"820",step:"1"},model:{value:t.appRegistrationSpecification.hdd,callback:function(e){t.$set(t.appRegistrationSpecification,"hdd",e)},expression:"appRegistrationSpecification.hdd"}})],1)],1)],1)],1),t.appRegistrationSpecification.tiered?e("b-row",[e("b-col",{attrs:{xs:"12",md:"6",lg:"4"}},[e("b-card",{attrs:{title:"Cumulus"}},[e("div",[t._v(" CPU: "+t._s(t.appRegistrationSpecification.cpubasic)+" ")]),e("b-form-input",{attrs:{type:"range",min:"0.1",max:"3",step:"0.1"},model:{value:t.appRegistrationSpecification.cpubasic,callback:function(e){t.$set(t.appRegistrationSpecification,"cpubasic",e)},expression:"appRegistrationSpecification.cpubasic"}}),e("div",[t._v(" RAM: "+t._s(t.appRegistrationSpecification.rambasic)+" ")]),e("b-form-input",{attrs:{type:"range",min:"100",max:"5000",step:"100"},model:{value:t.appRegistrationSpecification.rambasic,callback:function(e){t.$set(t.appRegistrationSpecification,"rambasic",e)},expression:"appRegistrationSpecification.rambasic"}}),e("div",[t._v(" SSD: "+t._s(t.appRegistrationSpecification.hddbasic)+" ")]),e("b-form-input",{attrs:{type:"range",min:"1",max:"180",step:"1"},model:{value:t.appRegistrationSpecification.hddbasic,callback:function(e){t.$set(t.appRegistrationSpecification,"hddbasic",e)},expression:"appRegistrationSpecification.hddbasic"}})],1)],1),e("b-col",{attrs:{xs:"12",md:"6",lg:"4"}},[e("b-card",{attrs:{title:"Nimbus"}},[e("div",[t._v(" CPU: "+t._s(t.appRegistrationSpecification.cpusuper)+" ")]),e("b-form-input",{attrs:{type:"range",min:"0.1",max:"7",step:"0.1"},model:{value:t.appRegistrationSpecification.cpusuper,callback:function(e){t.$set(t.appRegistrationSpecification,"cpusuper",e)},expression:"appRegistrationSpecification.cpusuper"}}),e("div",[t._v(" RAM: "+t._s(t.appRegistrationSpecification.ramsuper)+" ")]),e("b-form-input",{attrs:{type:"range",min:"100",max:"28000",step:"100"},model:{value:t.appRegistrationSpecification.ramsuper,callback:function(e){t.$set(t.appRegistrationSpecification,"ramsuper",e)},expression:"appRegistrationSpecification.ramsuper"}}),e("div",[t._v(" SSD: "+t._s(t.appRegistrationSpecification.hddsuper)+" ")]),e("b-form-input",{attrs:{type:"range",min:"1",max:"400",step:"1"},model:{value:t.appRegistrationSpecification.hddsuper,callback:function(e){t.$set(t.appRegistrationSpecification,"hddsuper",e)},expression:"appRegistrationSpecification.hddsuper"}})],1)],1),e("b-col",{attrs:{xs:"12",lg:"4"}},[e("b-card",{attrs:{title:"Stratus"}},[e("div",[t._v(" CPU: "+t._s(t.appRegistrationSpecification.cpubamf)+" ")]),e("b-form-input",{attrs:{type:"range",min:"0.1",max:"15",step:"0.1"},model:{value:t.appRegistrationSpecification.cpubamf,callback:function(e){t.$set(t.appRegistrationSpecification,"cpubamf",e)},expression:"appRegistrationSpecification.cpubamf"}}),e("div",[t._v(" RAM: "+t._s(t.appRegistrationSpecification.rambamf)+" ")]),e("b-form-input",{attrs:{type:"range",min:"1000",max:"59000",step:"100"},model:{value:t.appRegistrationSpecification.rambamf,callback:function(e){t.$set(t.appRegistrationSpecification,"rambamf",e)},expression:"appRegistrationSpecification.rambamf"}}),e("div",[t._v(" SSD: "+t._s(t.appRegistrationSpecification.hddbamf)+" ")]),e("b-form-input",{attrs:{type:"range",min:"1",max:"820",step:"1"},model:{value:t.appRegistrationSpecification.hddbamf,callback:function(e){t.$set(t.appRegistrationSpecification,"hddbamf",e)},expression:"appRegistrationSpecification.hddbamf"}})],1)],1)],1):t._e()],1),e("div",[e("br"),e("b-form-checkbox",{staticClass:"custom-control-primary inline",attrs:{id:"tos",switch:""},model:{value:t.tosAgreed,callback:function(e){t.tosAgreed=e},expression:"tosAgreed"}}),t._v(" I agree with "),e("a",{attrs:{href:"https://cdn.runonflux.io/Flux_Terms_of_Service.pdf",target:"_blank",rel:"noopener noreferrer"}},[t._v(" Terms of Service ")])],1),t.appRegistrationSpecification.version>=4&&t.appRegistrationSpecification.compose.length<(t.currentHeight<13e5?5:10)?e("div",{staticClass:"text-center"},[e("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"mb-4",attrs:{variant:"secondary","aria-label":"Add Component to Application Composition"},on:{click:t.addCopmonent}},[t._v(" Add Component to Application Composition ")])],1):t._e(),e("div",{staticClass:"text-center"},[e("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"mb-2",attrs:{variant:"success","aria-label":"Compute Registration Message"},on:{click:t.checkFluxSpecificationsAndFormatMessage}},[t._v(" Compute Registration Message ")])],1),t.dataToSign?e("div",[e("b-form-group",{attrs:{"label-cols":"3","label-cols-lg":"2",label:"Registration Message","label-for":"registrationmessage"}},[e("div",{staticClass:"text-wrap"},[e("b-form-textarea",{staticStyle:{"padding-top":"15px"},attrs:{id:"registrationmessage",rows:"6",readonly:""},model:{value:t.dataToSign,callback:function(e){t.dataToSign=e},expression:"dataToSign"}}),e("b-icon",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip",value:t.tooltipText,expression:"tooltipText"}],ref:"copyButtonRef",staticClass:"clipboard icon",attrs:{scale:"1.5",icon:"clipboard"},on:{click:t.copyMessageToSign}})],1)]),e("b-form-group",{attrs:{"label-cols":"3","label-cols-lg":"2",label:"Signature","label-for":"signature"}},[e("b-form-input",{attrs:{id:"signature"},model:{value:t.signature,callback:function(e){t.signature=e},expression:"signature"}})],1),e("b-row",{staticClass:"match-height"},[e("b-col",{attrs:{xs:"6",lg:"8"}},[e("b-card",{staticClass:"text-center",attrs:{title:"Register Application"}},[e("b-card-text",[e("h5",[t._v("  "),e("b-icon",{staticClass:"mr-1 mt-2",attrs:{scale:"1.4",icon:"cash-coin"}}),t._v("Price: "),e("b",[t._v(t._s(t.applicationPriceUSD)+" USD + VAT")])],1)]),e("b-card-text",[e("h5",[t._v("  "),e("b-icon",{staticClass:"mr-1",attrs:{scale:"1.4",icon:"clock"}}),t._v("Subscription period: "),e("b",[t._v(t._s(t.getExpireLabel||(t.appRegistrationSpecification.expire?`${t.appRegistrationSpecification.expire} blocks`:"1 month")))])],1)]),e("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"mt-3",staticStyle:{width:"300px"},attrs:{disabled:!t.signature,variant:"outline-success","aria-label":"Register Flux App"},on:{click:t.register}},[t._v(" Register ")])],1)],1),e("b-col",{attrs:{xs:"6",lg:"4"}},[e("b-card",{ref:"signContainer",staticClass:"text-center highlight-container",attrs:{title:"Sign with"}},[e("div",{staticClass:"loginRow"},[e("a",{on:{click:t.initiateSignWS}},[e("img",{staticClass:"walletIcon",attrs:{src:i(96358),alt:"Flux ID",height:"100%",width:"100%"}})]),e("a",{on:{click:t.initSSP}},[e("img",{staticClass:"walletIcon",attrs:{src:"dark"===t.skin?i(56070):i(58962),alt:"SSP",height:"100%",width:"100%"}})])]),e("div",{staticClass:"loginRow"},[e("a",{on:{click:t.initWalletConnect}},[e("img",{staticClass:"walletIcon",attrs:{src:i(47622),alt:"WalletConnect",height:"100%",width:"100%"}})]),e("a",{on:{click:t.initMetamask}},[e("img",{staticClass:"walletIcon",attrs:{src:i(28125),alt:"Metamask",height:"100%",width:"100%"}})])]),e("div",{staticClass:"loginRow"},[e("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"my-1",staticStyle:{width:"250px"},attrs:{variant:"primary","aria-label":"Flux Single Sign On"},on:{click:t.initSignFluxSSO}},[t._v(" Flux Single Sign On (SSO) ")])],1)])],1)],1),t.registrationHash?e("div",{staticClass:"match-height"},[e("b-row",[e("b-card",{attrs:{title:"Test Application Installation"}},[e("b-card-text",[e("div",[t._v(" It's now time to test your application install/launch. It's very important to test the app install/launch to make sure your application specifications work. You will get the application install/launch log at the bottom of this page once it's completed, if the app starts you can proceed with the payment, if not, you need to fix/change the specifications and try again before you can pay the app subscription. ")]),t.testError?e("span",{staticStyle:{color:"red"}},[e("br"),e("b",[t._v("WARNING: Test failed! Check logs at the bottom. If the error is related with your application specifications try to fix it before you pay your registration subscription.")])]):t._e()]),e("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"my-1",attrs:{variant:"success","aria-label":"Test Launch"},on:{click:function(e){return t.testAppInstall(t.registrationHash)}}},[t._v(" Test Installation ")])],1)],1)],1):t._e(),t.testFinished?e("b-row",{staticClass:"match-height"},[e("b-col",{attrs:{xs:"6",lg:"8"}},[e("b-card",[e("b-card-text",[e("b",[t._v("Everything is ready, your payment option links, both for fiat and flux, are valid for the next 30 minutes.")])]),e("br"),t._v(" The application will be subscribed until "),e("b",[t._v(t._s(new Date(t.subscribedTill).toLocaleString("en-GB",t.timeoptions.shortDate)))]),e("br"),t._v(" To finish the application registration, pay your application with your prefered payment method or check below how to pay with Flux crypto currency. ")],1)],1),e("b-col",{attrs:{xs:"6",lg:"4"}},[e("b-card",{staticClass:"text-center",attrs:{title:"Pay with Stripe/PayPal"}},[e("div",{staticClass:"loginRow"},[t.stripeEnabled?e("a",{on:{click:function(e){return t.initStripePay(t.registrationHash,t.appRegistrationSpecification.name,t.applicationPriceUSD,t.appRegistrationSpecification.description)}}},[e("img",{staticClass:"stripePay",attrs:{src:i(20134),alt:"Stripe",height:"100%",width:"100%"}})]):t._e(),t.paypalEnabled?e("a",{on:{click:function(e){return t.initPaypalPay(t.registrationHash,t.appRegistrationSpecification.name,t.applicationPriceUSD,t.appRegistrationSpecification.description)}}},[e("img",{staticClass:"paypalPay",attrs:{src:i(36547),alt:"PayPal",height:"100%",width:"100%"}})]):t._e(),t.paypalEnabled||t.stripeEnabled?t._e():e("span",[t._v("Fiat Gateways Unavailable.")])]),t.checkoutLoading?e("div",{attrs:{className:"loginRow"}},[e("b-spinner",{attrs:{variant:"primary"}}),e("div",{staticClass:"text-center"},[t._v(" Checkout Loading ... ")])],1):t._e(),t.fiatCheckoutURL?e("div",{attrs:{className:"loginRow"}},[e("a",{attrs:{href:t.fiatCheckoutURL,target:"_blank",rel:"noopener noreferrer"}},[t._v(" Click here for checkout if not redirected ")])]):t._e()])],1)],1):t._e(),t.testFinished&&!t.applicationPriceFluxError?e("b-row",{staticClass:"match-height"},[e("b-col",{attrs:{xs:"6",lg:"8"}},[e("b-card",[e("b-card-text",[t._v(" To pay in FLUX, please make a transaction of "),e("b",[t._v(t._s(t.applicationPrice)+" FLUX")]),t._v(" to address "),e("b",[t._v("'"+t._s(t.deploymentAddress)+"'")]),t._v(" with the following message: "),e("b",[t._v("'"+t._s(t.registrationHash)+"'")])])],1)],1),e("b-col",{attrs:{xs:"6",lg:"4"}},[e("b-card",[t.applicationPriceFluxDiscount>0?e("h4",[e("kbd",{staticClass:"d-flex justify-content-center bg-primary mb-2"},[t._v("Discount - "+t._s(t.applicationPriceFluxDiscount)+"%")])]):t._e(),e("h4",{staticClass:"text-center mb-2"},[t._v(" Pay with Zelcore/SSP ")]),e("div",{staticClass:"loginRow"},[e("a",{attrs:{href:`zel:?action=pay&coin=zelcash&address=${t.deploymentAddress}&amount=${t.applicationPrice}&message=${t.registrationHash}&icon=https%3A%2F%2Fraw.githubusercontent.com%2Frunonflux%2Fflux%2Fmaster%2Fflux_banner.png`}},[e("img",{staticClass:"walletIcon",attrs:{src:i(96358),alt:"Flux ID",height:"100%",width:"100%"}})]),e("a",{on:{click:t.initSSPpay}},[e("img",{staticClass:"walletIcon",attrs:{src:"dark"===t.skin?i(56070):i(58962),alt:"SSP",height:"100%",width:"100%"}})])])])],1)],1):t._e()],1):t._e(),t.output.length>0?e("div",{staticClass:"actionCenter"},[e("br"),e("b-row",[e("b-col",{attrs:{cols:"9"}},[e("b-form-textarea",{staticClass:"mt-1",attrs:{plaintext:"","no-resize":"",rows:t.output.length+1,value:t.stringOutput()}})],1),t.downloadOutputReturned?e("b-col",{attrs:{cols:"3"}},[e("h3",[t._v("Downloads")]),t._l(t.downloadOutput,(function(i){return e("div",{key:i.id},[e("h4",[t._v(" "+t._s(i.id))]),e("b-progress",{attrs:{value:i.detail.current/i.detail.total*100,max:"100",striped:"",height:"1rem",variant:i.variant}}),e("br")],1)}))],2):t._e()],1)],1):t._e(),e("b-modal",{attrs:{title:"Select Enterprise Nodes",size:"xl",centered:"","button-size":"sm","ok-only":"","ok-title":"Done"},model:{value:t.chooseEnterpriseDialog,callback:function(e){t.chooseEnterpriseDialog=e},expression:"chooseEnterpriseDialog"}},[e("b-row",[e("b-col",{staticClass:"my-1",attrs:{md:"4",sm:"4"}},[e("b-form-group",{staticClass:"mb-0"},[e("label",{staticClass:"d-inline-block text-left mr-50"},[t._v("Per page")]),e("b-form-select",{staticClass:"w-50",attrs:{id:"perPageSelect",size:"sm",options:t.entNodesSelectTable.pageOptions},model:{value:t.entNodesSelectTable.perPage,callback:function(e){t.$set(t.entNodesSelectTable,"perPage",e)},expression:"entNodesSelectTable.perPage"}})],1)],1),e("b-col",{staticClass:"my-1",attrs:{md:"8"}},[e("b-form-group",{staticClass:"mb-0",attrs:{label:"Filter","label-cols-sm":"1","label-align-sm":"right","label-for":"filterInput"}},[e("b-input-group",{attrs:{size:"sm"}},[e("b-form-input",{attrs:{id:"filterInput",type:"search",placeholder:"Type to Search"},model:{value:t.entNodesSelectTable.filter,callback:function(e){t.$set(t.entNodesSelectTable,"filter",e)},expression:"entNodesSelectTable.filter"}}),e("b-input-group-append",[e("b-button",{attrs:{disabled:!t.entNodesSelectTable.filter},on:{click:function(e){t.entNodesSelectTable.filter=""}}},[t._v(" Clear ")])],1)],1)],1)],1),e("b-col",{attrs:{cols:"12"}},[e("b-table",{staticClass:"app-enterprise-nodes-table",attrs:{striped:"",hover:"",responsive:"","per-page":t.entNodesSelectTable.perPage,"current-page":t.entNodesSelectTable.currentPage,items:t.enterpriseNodes,fields:t.entNodesSelectTable.fields,"sort-by":t.entNodesSelectTable.sortBy,"sort-desc":t.entNodesSelectTable.sortDesc,"sort-direction":t.entNodesSelectTable.sortDirection,filter:t.entNodesSelectTable.filter,"filter-included-fields":t.entNodesSelectTable.filterOn,"show-empty":"","empty-text":"No Enterprise Nodes For Addition Found"},on:{"update:sortBy":function(e){return t.$set(t.entNodesSelectTable,"sortBy",e)},"update:sort-by":function(e){return t.$set(t.entNodesSelectTable,"sortBy",e)},"update:sortDesc":function(e){return t.$set(t.entNodesSelectTable,"sortDesc",e)},"update:sort-desc":function(e){return t.$set(t.entNodesSelectTable,"sortDesc",e)},filtered:t.onFilteredSelection},scopedSlots:t._u([{key:"cell(show_details)",fn:function(i){return[e("a",{on:{click:i.toggleDetails}},[i.detailsShowing?t._e():e("v-icon",{attrs:{name:"chevron-down"}}),i.detailsShowing?e("v-icon",{attrs:{name:"chevron-up"}}):t._e()],1)]}},{key:"row-details",fn:function(i){return[e("b-card",{staticClass:"mx-2"},[e("list-entry",{attrs:{title:"IP Address",data:i.item.ip}}),e("list-entry",{attrs:{title:"Public Key",data:i.item.pubkey}}),e("list-entry",{attrs:{title:"Node Address",data:i.item.payment_address}}),e("list-entry",{attrs:{title:"Collateral",data:`${i.item.txhash}:${i.item.outidx}`}}),e("list-entry",{attrs:{title:"Tier",data:i.item.tier}}),e("list-entry",{attrs:{title:"Overall Score",data:i.item.score.toString()}}),e("list-entry",{attrs:{title:"Collateral Score",data:i.item.collateralPoints.toString()}}),e("list-entry",{attrs:{title:"Maturity Score",data:i.item.maturityPoints.toString()}}),e("list-entry",{attrs:{title:"Public Key Score",data:i.item.pubKeyPoints.toString()}}),e("list-entry",{attrs:{title:"Enterprise Apps Assigned",data:i.item.enterpriseApps.toString()}}),e("div",[e("b-button",{staticClass:"mr-0",attrs:{size:"sm",variant:"primary"},on:{click:function(e){t.openNodeFluxOS(t.locationRow.item.ip.split(":")[0],t.locationRow.item.ip.split(":")[1]?+t.locationRow.item.ip.split(":")[1]-1:16126)}}},[t._v(" Visit FluxNode ")])],1)],1)]}},{key:"cell(ip)",fn:function(e){return[t._v(" "+t._s(e.item.ip)+" ")]}},{key:"cell(payment_address)",fn:function(e){return[t._v(" "+t._s(e.item.payment_address.slice(0,8))+"..."+t._s(e.item.payment_address.slice(e.item.payment_address.length-8,e.item.payment_address.length))+" ")]}},{key:"cell(tier)",fn:function(e){return[t._v(" "+t._s(e.item.tier)+" ")]}},{key:"cell(score)",fn:function(e){return[t._v(" "+t._s(e.item.score)+" ")]}},{key:"cell(actions)",fn:function(i){return[e("b-button",{staticClass:"mr-1 mb-1",attrs:{size:"sm",variant:"primary"},on:{click:function(e){t.openNodeFluxOS(i.item.ip.split(":")[0],i.item.ip.split(":")[1]?+i.item.ip.split(":")[1]-1:16126)}}},[t._v(" Visit ")]),t.selectedEnterpriseNodes.find((t=>t.ip===i.item.ip))?t._e():e("b-button",{staticClass:"mr-1 mb-1",attrs:{id:`add-${i.item.ip}`,size:"sm",variant:"success"},on:{click:function(e){return t.addFluxNode(i.item.ip)}}},[t._v(" Add ")]),t.selectedEnterpriseNodes.find((t=>t.ip===i.item.ip))?e("b-button",{staticClass:"mr-1 mb-1",attrs:{id:`add-${i.item.ip}`,size:"sm",variant:"danger"},on:{click:function(e){return t.removeFluxNode(i.item.ip)}}},[t._v(" Remove ")]):t._e()]}}])})],1),e("b-col",{attrs:{cols:"12"}},[e("b-pagination",{staticClass:"my-0",attrs:{"total-rows":t.entNodesSelectTable.totalRows,"per-page":t.entNodesSelectTable.perPage,align:"center",size:"sm"},model:{value:t.entNodesSelectTable.currentPage,callback:function(e){t.$set(t.entNodesSelectTable,"currentPage",e)},expression:"entNodesSelectTable.currentPage"}}),e("span",{staticClass:"table-total"},[t._v("Total: "+t._s(t.entNodesSelectTable.totalRows))])],1)],1)],1),e("b-modal",{attrs:{title:"Import Application Specifications",size:"lg",centered:"","ok-title":"Import","cancel-title":"Cancel"},on:{ok:function(e){return t.importSpecs(t.importedSpecs)},cancel:function(e){t.importAppSpecs=!1,t.importedSpecs=""}},model:{value:t.importAppSpecs,callback:function(e){t.importAppSpecs=e},expression:"importAppSpecs"}},[e("b-form-textarea",{attrs:{id:"importedAppSpecs",rows:"6"},model:{value:t.importedSpecs,callback:function(e){t.importedSpecs=e},expression:"importedSpecs"}})],1)],1)},a=[],n=(i(70560),i(15716),i(33442),i(61964),i(69878),i(52915),i(97895),i(22275),i(45752)),s=i(15193),r=i(86855),l=i(49034),c=i(64206),p=i(49379),u=i(19692),d=i(46709),m=i(22183),f=i(8051),h=i(78959),g=i(333),b=i(67347),v=i(16521),y=i(10962),w=i(4060),S=i(22418),x=i(5870),C=i(20629),k=i(20266),_=i(34547),A=i(43672),R=i(27616),N=i(87156),T=i(51748),P=i(93767),E=i(94145),F=i(37307),$=i(52829),O=i(5449),I=i(65864),D=i(40710),M=i.n(D); /*! js-yaml 4.1.0 https://github.com/nodeca/js-yaml @license MIT */ -function L(t){return"undefined"===typeof t||null===t}function G(t){return"object"===typeof t&&null!==t}function j(t){return Array.isArray(t)?t:L(t)?[]:[t]}function U(t,e){var i,o,a,n;if(e)for(n=Object.keys(e),i=0,o=n.length;ir&&(n=" ... ",e=o-r+n.length),i-o>r&&(s=" ...",i=o+r-s.length),{str:n+t.slice(e,i).replace(/\t/g,"→")+s,pos:o-e+n.length}}function et(t,e){return H.repeat(" ",e-t.length)+t}function it(t,e){if(e=Object.create(e||null),!t.buffer)return null;e.maxLength||(e.maxLength=79),"number"!==typeof e.indent&&(e.indent=1),"number"!==typeof e.linesBefore&&(e.linesBefore=3),"number"!==typeof e.linesAfter&&(e.linesAfter=2);var i,o=/\r?\n|\r|\0/g,a=[0],n=[],s=-1;while(i=o.exec(t.buffer))n.push(i.index),a.push(i.index+i[0].length),t.position<=i.index&&s<0&&(s=a.length-2);s<0&&(s=a.length-1);var r,l,c="",p=Math.min(t.line+e.linesAfter,n.length).toString().length,u=e.maxLength-(e.indent+p+3);for(r=1;r<=e.linesBefore;r++){if(s-r<0)break;l=tt(t.buffer,a[s-r],n[s-r],t.position-(a[s]-a[s-r]),u),c=H.repeat(" ",e.indent)+et((t.line-r+1).toString(),p)+" | "+l.str+"\n"+c}for(l=tt(t.buffer,a[s],n[s],t.position,u),c+=H.repeat(" ",e.indent)+et((t.line+1).toString(),p)+" | "+l.str+"\n",c+=H.repeat("-",e.indent+p+3+l.pos)+"^\n",r=1;r<=e.linesAfter;r++){if(s+r>=n.length)break;l=tt(t.buffer,a[s+r],n[s+r],t.position-(a[s]-a[s+r]),u),c+=H.repeat(" ",e.indent)+et((t.line+r+1).toString(),p)+" | "+l.str+"\n"}return c.replace(/\n$/,"")}var ot=it,at=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],nt=["scalar","sequence","mapping"];function st(t){var e={};return null!==t&&Object.keys(t).forEach((function(i){t[i].forEach((function(t){e[String(t)]=i}))})),e}function rt(t,e){if(e=e||{},Object.keys(e).forEach((function(e){if(-1===at.indexOf(e))throw new X('Unknown option "'+e+'" is met in definition of "'+t+'" YAML type.')})),this.options=e,this.tag=t,this.kind=e["kind"]||null,this.resolve=e["resolve"]||function(){return!0},this.construct=e["construct"]||function(t){return t},this.instanceOf=e["instanceOf"]||null,this.predicate=e["predicate"]||null,this.represent=e["represent"]||null,this.representName=e["representName"]||null,this.defaultStyle=e["defaultStyle"]||null,this.multi=e["multi"]||!1,this.styleAliases=st(e["styleAliases"]||null),-1===nt.indexOf(this.kind))throw new X('Unknown kind "'+this.kind+'" is specified for "'+t+'" YAML type.')}var lt=rt;function ct(t,e){var i=[];return t[e].forEach((function(t){var e=i.length;i.forEach((function(i,o){i.tag===t.tag&&i.kind===t.kind&&i.multi===t.multi&&(e=o)})),i[e]=t})),i}function pt(){var t,e,i={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}};function o(t){t.multi?(i.multi[t.kind].push(t),i.multi["fallback"].push(t)):i[t.kind][t.tag]=i["fallback"][t.tag]=t}for(t=0,e=arguments.length;t=0?"0b"+t.toString(2):"-0b"+t.toString(2).slice(1)},octal:function(t){return t>=0?"0o"+t.toString(8):"-0o"+t.toString(8).slice(1)},decimal:function(t){return t.toString(10)},hexadecimal:function(t){return t>=0?"0x"+t.toString(16).toUpperCase():"-0x"+t.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),Ft=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function Ot(t){return null!==t&&!(!Ft.test(t)||"_"===t[t.length-1])}function $t(t){var e,i;return e=t.replace(/_/g,"").toLowerCase(),i="-"===e[0]?-1:1,"+-".indexOf(e[0])>=0&&(e=e.slice(1)),".inf"===e?1===i?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:".nan"===e?NaN:i*parseFloat(e,10)}var It=/^[-+]?[0-9]+e/;function Dt(t,e){var i;if(isNaN(t))switch(e){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===t)switch(e){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===t)switch(e){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(H.isNegativeZero(t))return"-0.0";return i=t.toString(10),It.test(i)?i.replace("e",".e"):i}function Mt(t){return"[object Number]"===Object.prototype.toString.call(t)&&(t%1!==0||H.isNegativeZero(t))}var Lt=new lt("tag:yaml.org,2002:float",{kind:"scalar",resolve:Ot,construct:$t,predicate:Mt,represent:Dt,defaultStyle:"lowercase"}),Gt=gt.extend({implicit:[wt,kt,Et,Lt]}),jt=Gt,Ut=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),zt=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");function Bt(t){return null!==t&&(null!==Ut.exec(t)||null!==zt.exec(t))}function Vt(t){var e,i,o,a,n,s,r,l,c,p,u=0,d=null;if(e=Ut.exec(t),null===e&&(e=zt.exec(t)),null===e)throw new Error("Date resolve error");if(i=+e[1],o=+e[2]-1,a=+e[3],!e[4])return new Date(Date.UTC(i,o,a));if(n=+e[4],s=+e[5],r=+e[6],e[7]){u=e[7].slice(0,3);while(u.length<3)u+="0";u=+u}return e[9]&&(l=+e[10],c=+(e[11]||0),d=6e4*(60*l+c),"-"===e[9]&&(d=-d)),p=new Date(Date.UTC(i,o,a,n,s,r,u)),d&&p.setTime(p.getTime()-d),p}function Wt(t){return t.toISOString()}var Kt=new lt("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:Bt,construct:Vt,instanceOf:Date,represent:Wt});function qt(t){return"<<"===t||null===t}var Zt=new lt("tag:yaml.org,2002:merge",{kind:"scalar",resolve:qt}),Yt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r";function Ht(t){if(null===t)return!1;var e,i,o=0,a=t.length,n=Yt;for(i=0;i64)){if(e<0)return!1;o+=6}return o%8===0}function Jt(t){var e,i,o=t.replace(/[\r\n=]/g,""),a=o.length,n=Yt,s=0,r=[];for(e=0;e>16&255),r.push(s>>8&255),r.push(255&s)),s=s<<6|n.indexOf(o.charAt(e));return i=a%4*6,0===i?(r.push(s>>16&255),r.push(s>>8&255),r.push(255&s)):18===i?(r.push(s>>10&255),r.push(s>>2&255)):12===i&&r.push(s>>4&255),new Uint8Array(r)}function Qt(t){var e,i,o="",a=0,n=t.length,s=Yt;for(e=0;e>18&63],o+=s[a>>12&63],o+=s[a>>6&63],o+=s[63&a]),a=(a<<8)+t[e];return i=n%3,0===i?(o+=s[a>>18&63],o+=s[a>>12&63],o+=s[a>>6&63],o+=s[63&a]):2===i?(o+=s[a>>10&63],o+=s[a>>4&63],o+=s[a<<2&63],o+=s[64]):1===i&&(o+=s[a>>2&63],o+=s[a<<4&63],o+=s[64],o+=s[64]),o}function Xt(t){return"[object Uint8Array]"===Object.prototype.toString.call(t)}var te=new lt("tag:yaml.org,2002:binary",{kind:"scalar",resolve:Ht,construct:Jt,predicate:Xt,represent:Qt}),ee=Object.prototype.hasOwnProperty,ie=Object.prototype.toString;function oe(t){if(null===t)return!0;var e,i,o,a,n,s=[],r=t;for(e=0,i=r.length;e>10),56320+(t-65536&1023))}for(var Le=new Array(256),Ge=new Array(256),je=0;je<256;je++)Le[je]=De(je)?1:0,Ge[je]=De(je);function Ue(t,e){this.input=t,this.filename=e["filename"]||null,this.schema=e["schema"]||fe,this.onWarning=e["onWarning"]||null,this.legacy=e["legacy"]||!1,this.json=e["json"]||!1,this.listener=e["listener"]||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=t.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function ze(t,e){var i={name:t.filename,buffer:t.input.slice(0,-1),position:t.position,line:t.line,column:t.position-t.lineStart};return i.snippet=ot(i),new X(e,i)}function Be(t,e){throw ze(t,e)}function Ve(t,e){t.onWarning&&t.onWarning.call(null,ze(t,e))}var We={YAML:function(t,e,i){var o,a,n;null!==t.version&&Be(t,"duplication of %YAML directive"),1!==i.length&&Be(t,"YAML directive accepts exactly one argument"),o=/^([0-9]+)\.([0-9]+)$/.exec(i[0]),null===o&&Be(t,"ill-formed argument of the YAML directive"),a=parseInt(o[1],10),n=parseInt(o[2],10),1!==a&&Be(t,"unacceptable YAML version of the document"),t.version=i[0],t.checkLineBreaks=n<2,1!==n&&2!==n&&Ve(t,"unsupported YAML version of the document")},TAG:function(t,e,i){var o,a;2!==i.length&&Be(t,"TAG directive accepts exactly two arguments"),o=i[0],a=i[1],Ae.test(o)||Be(t,"ill-formed tag handle (first argument) of the TAG directive"),he.call(t.tagMap,o)&&Be(t,'there is a previously declared suffix for "'+o+'" tag handle'),Re.test(a)||Be(t,"ill-formed tag prefix (second argument) of the TAG directive");try{a=decodeURIComponent(a)}catch(n){Be(t,"tag prefix is malformed: "+a)}t.tagMap[o]=a}};function Ke(t,e,i,o){var a,n,s,r;if(e1&&(t.result+=H.repeat("\n",e-1))}function Xe(t,e,i){var o,a,n,s,r,l,c,p,u,d=t.kind,m=t.result;if(u=t.input.charCodeAt(t.position),Ee(u)||Fe(u)||35===u||38===u||42===u||33===u||124===u||62===u||39===u||34===u||37===u||64===u||96===u)return!1;if((63===u||45===u)&&(a=t.input.charCodeAt(t.position+1),Ee(a)||i&&Fe(a)))return!1;t.kind="scalar",t.result="",n=s=t.position,r=!1;while(0!==u){if(58===u){if(a=t.input.charCodeAt(t.position+1),Ee(a)||i&&Fe(a))break}else if(35===u){if(o=t.input.charCodeAt(t.position-1),Ee(o))break}else{if(t.position===t.lineStart&&Je(t)||i&&Fe(u))break;if(Te(u)){if(l=t.line,c=t.lineStart,p=t.lineIndent,He(t,!1,-1),t.lineIndent>=e){r=!0,u=t.input.charCodeAt(t.position);continue}t.position=s,t.line=l,t.lineStart=c,t.lineIndent=p;break}}r&&(Ke(t,n,s,!1),Qe(t,t.line-l),n=s=t.position,r=!1),Pe(u)||(s=t.position+1),u=t.input.charCodeAt(++t.position)}return Ke(t,n,s,!1),!!t.result||(t.kind=d,t.result=m,!1)}function ti(t,e){var i,o,a;if(i=t.input.charCodeAt(t.position),39!==i)return!1;t.kind="scalar",t.result="",t.position++,o=a=t.position;while(0!==(i=t.input.charCodeAt(t.position)))if(39===i){if(Ke(t,o,t.position,!0),i=t.input.charCodeAt(++t.position),39!==i)return!0;o=t.position,t.position++,a=t.position}else Te(i)?(Ke(t,o,a,!0),Qe(t,He(t,!1,e)),o=a=t.position):t.position===t.lineStart&&Je(t)?Be(t,"unexpected end of the document within a single quoted scalar"):(t.position++,a=t.position);Be(t,"unexpected end of the stream within a single quoted scalar")}function ei(t,e){var i,o,a,n,s,r;if(r=t.input.charCodeAt(t.position),34!==r)return!1;t.kind="scalar",t.result="",t.position++,i=o=t.position;while(0!==(r=t.input.charCodeAt(t.position))){if(34===r)return Ke(t,i,t.position,!0),t.position++,!0;if(92===r){if(Ke(t,i,t.position,!0),r=t.input.charCodeAt(++t.position),Te(r))He(t,!1,e);else if(r<256&&Le[r])t.result+=Ge[r],t.position++;else if((s=$e(r))>0){for(a=s,n=0;a>0;a--)r=t.input.charCodeAt(++t.position),(s=Oe(r))>=0?n=(n<<4)+s:Be(t,"expected hexadecimal character");t.result+=Me(n),t.position++}else Be(t,"unknown escape sequence");i=o=t.position}else Te(r)?(Ke(t,i,o,!0),Qe(t,He(t,!1,e)),i=o=t.position):t.position===t.lineStart&&Je(t)?Be(t,"unexpected end of the document within a double quoted scalar"):(t.position++,o=t.position)}Be(t,"unexpected end of the stream within a double quoted scalar")}function ii(t,e){var i,o,a,n,s,r,l,c,p,u,d,m,f,h=!0,g=t.tag,b=t.anchor,v=Object.create(null);if(f=t.input.charCodeAt(t.position),91===f)r=93,p=!1,n=[];else{if(123!==f)return!1;r=125,p=!0,n={}}null!==t.anchor&&(t.anchorMap[t.anchor]=n),f=t.input.charCodeAt(++t.position);while(0!==f){if(He(t,!0,e),f=t.input.charCodeAt(t.position),f===r)return t.position++,t.tag=g,t.anchor=b,t.kind=p?"mapping":"sequence",t.result=n,!0;h?44===f&&Be(t,"expected the node content, but found ','"):Be(t,"missed comma between flow collection entries"),d=u=m=null,l=c=!1,63===f&&(s=t.input.charCodeAt(t.position+1),Ee(s)&&(l=c=!0,t.position++,He(t,!0,e))),i=t.line,o=t.lineStart,a=t.position,ci(t,e,ge,!1,!0),d=t.tag,u=t.result,He(t,!0,e),f=t.input.charCodeAt(t.position),!c&&t.line!==i||58!==f||(l=!0,f=t.input.charCodeAt(++t.position),He(t,!0,e),ci(t,e,ge,!1,!0),m=t.result),p?Ze(t,n,v,d,u,m,i,o,a):l?n.push(Ze(t,null,v,d,u,m,i,o,a)):n.push(u),He(t,!0,e),f=t.input.charCodeAt(t.position),44===f?(h=!0,f=t.input.charCodeAt(++t.position)):h=!1}Be(t,"unexpected end of the stream within a flow collection")}function oi(t,e){var i,o,a,n,s=we,r=!1,l=!1,c=e,p=0,u=!1;if(n=t.input.charCodeAt(t.position),124===n)o=!1;else{if(62!==n)return!1;o=!0}t.kind="scalar",t.result="";while(0!==n)if(n=t.input.charCodeAt(++t.position),43===n||45===n)we===s?s=43===n?xe:Se:Be(t,"repeat of a chomping mode identifier");else{if(!((a=Ie(n))>=0))break;0===a?Be(t,"bad explicit indentation width of a block scalar; it cannot be less than one"):l?Be(t,"repeat of an indentation width identifier"):(c=e+a-1,l=!0)}if(Pe(n)){do{n=t.input.charCodeAt(++t.position)}while(Pe(n));if(35===n)do{n=t.input.charCodeAt(++t.position)}while(!Te(n)&&0!==n)}while(0!==n){Ye(t),t.lineIndent=0,n=t.input.charCodeAt(t.position);while((!l||t.lineIndentc&&(c=t.lineIndent),Te(n))p++;else{if(t.lineIndente)&&0!==a)Be(t,"bad indentation of a sequence entry");else if(t.lineIndente)&&(b&&(s=t.line,r=t.lineStart,l=t.position),ci(t,e,ye,!0,a)&&(b?h=t.result:g=t.result),b||(Ze(t,d,m,f,h,g,s,r,l),f=h=g=null),He(t,!0,-1),c=t.input.charCodeAt(t.position)),(t.line===n||t.lineIndent>e)&&0!==c)Be(t,"bad indentation of a mapping entry");else if(t.lineIndente?f=1:t.lineIndent===e?f=0:t.lineIndente?f=1:t.lineIndent===e?f=0:t.lineIndent tag; it should be "scalar", not "'+t.kind+'"'),l=0,c=t.implicitTypes.length;l"),null!==t.result&&u.kind!==t.kind&&Be(t,"unacceptable node kind for !<"+t.tag+'> tag; it should be "'+u.kind+'", not "'+t.kind+'"'),u.resolve(t.result,t.tag)?(t.result=u.construct(t.result,t.tag),null!==t.anchor&&(t.anchorMap[t.anchor]=t.result)):Be(t,"cannot resolve a node with !<"+t.tag+"> explicit tag")}return null!==t.listener&&t.listener("close",t),null!==t.tag||null!==t.anchor||g}function pi(t){var e,i,o,a,n=t.position,s=!1;t.version=null,t.checkLineBreaks=t.legacy,t.tagMap=Object.create(null),t.anchorMap=Object.create(null);while(0!==(a=t.input.charCodeAt(t.position))){if(He(t,!0,-1),a=t.input.charCodeAt(t.position),t.lineIndent>0||37!==a)break;s=!0,a=t.input.charCodeAt(++t.position),e=t.position;while(0!==a&&!Ee(a))a=t.input.charCodeAt(++t.position);i=t.input.slice(e,t.position),o=[],i.length<1&&Be(t,"directive name must not be less than one character in length");while(0!==a){while(Pe(a))a=t.input.charCodeAt(++t.position);if(35===a){do{a=t.input.charCodeAt(++t.position)}while(0!==a&&!Te(a));break}if(Te(a))break;e=t.position;while(0!==a&&!Ee(a))a=t.input.charCodeAt(++t.position);o.push(t.input.slice(e,t.position))}0!==a&&Ye(t),he.call(We,i)?We[i](t,i,o):Ve(t,'unknown document directive "'+i+'"')}He(t,!0,-1),0===t.lineIndent&&45===t.input.charCodeAt(t.position)&&45===t.input.charCodeAt(t.position+1)&&45===t.input.charCodeAt(t.position+2)?(t.position+=3,He(t,!0,-1)):s&&Be(t,"directives end mark is expected"),ci(t,t.lineIndent-1,ye,!1,!0),He(t,!0,-1),t.checkLineBreaks&&ke.test(t.input.slice(n,t.position))&&Ve(t,"non-ASCII line breaks are interpreted as content"),t.documents.push(t.result),t.position===t.lineStart&&Je(t)?46===t.input.charCodeAt(t.position)&&(t.position+=3,He(t,!0,-1)):t.position=55296&&o<=56319&&e+1=56320&&i<=57343)?1024*(o-55296)+i-56320+65536:o}function lo(t){var e=/^\n* /;return e.test(t)}var co=1,po=2,uo=3,mo=4,fo=5;function ho(t,e,i,o,a,n,s,r){var l,c=0,p=null,u=!1,d=!1,m=-1!==o,f=-1,h=no(ro(t,0))&&so(ro(t,t.length-1));if(e||s)for(l=0;l=65536?l+=2:l++){if(c=ro(t,l),!io(c))return fo;h=h&&ao(c,p,r),p=c}else{for(l=0;l=65536?l+=2:l++){if(c=ro(t,l),c===Si)u=!0,m&&(d=d||l-f-1>o&&" "!==t[f+1],f=l);else if(!io(c))return fo;h=h&&ao(c,p,r),p=c}d=d||m&&l-f-1>o&&" "!==t[f+1]}return u||d?i>9&&lo(t)?fo:s?n===Hi?fo:po:d?mo:uo:!h||s||a(t)?n===Hi?fo:po:co}function go(t,e,i,o,a){t.dump=function(){if(0===e.length)return t.quotingType===Hi?'""':"''";if(!t.noCompatMode&&(-1!==Wi.indexOf(e)||Ki.test(e)))return t.quotingType===Hi?'"'+e+'"':"'"+e+"'";var n=t.indent*Math.max(1,i),s=-1===t.lineWidth?-1:Math.max(Math.min(t.lineWidth,40),t.lineWidth-n),r=o||t.flowLevel>-1&&i>=t.flowLevel;function l(e){return to(t,e)}switch(ho(e,r,t.indent,s,l,t.quotingType,t.forceQuotes&&!o,a)){case co:return e;case po:return"'"+e.replace(/'/g,"''")+"'";case uo:return"|"+bo(e,t.indent)+vo(Qi(e,n));case mo:return">"+bo(e,t.indent)+vo(Qi(yo(e,s),n));case fo:return'"'+So(e)+'"';default:throw new X("impossible error: invalid scalar style")}}()}function bo(t,e){var i=lo(t)?String(e):"",o="\n"===t[t.length-1],a=o&&("\n"===t[t.length-2]||"\n"===t),n=a?"+":o?"":"-";return i+n+"\n"}function vo(t){return"\n"===t[t.length-1]?t.slice(0,-1):t}function yo(t,e){var i,o,a=/(\n+)([^\n]*)/g,n=function(){var i=t.indexOf("\n");return i=-1!==i?i:t.length,a.lastIndex=i,wo(t.slice(0,i),e)}(),s="\n"===t[0]||" "===t[0];while(o=a.exec(t)){var r=o[1],l=o[2];i=" "===l[0],n+=r+(s||i||""===l?"":"\n")+wo(l,e),s=i}return n}function wo(t,e){if(""===t||" "===t[0])return t;var i,o,a=/ [^ ]/g,n=0,s=0,r=0,l="";while(i=a.exec(t))r=i.index,r-n>e&&(o=s>n?s:r,l+="\n"+t.slice(n,o),n=o+1),s=r;return l+="\n",t.length-n>e&&s>n?l+=t.slice(n,s)+"\n"+t.slice(s+1):l+=t.slice(n),l.slice(1)}function So(t){for(var e,i="",o=0,a=0;a=65536?a+=2:a++)o=ro(t,a),e=Vi[o],!e&&io(o)?(i+=t[a],o>=65536&&(i+=t[a+1])):i+=e||Zi(o);return i}function xo(t,e,i){var o,a,n,s="",r=t.tag;for(o=0,a=i.length;o1024&&(r+="? "),r+=t.dump+(t.condenseFlow?'"':"")+":"+(t.condenseFlow?"":" "),Ro(t,e,s,!1,!1)&&(r+=t.dump,l+=r));t.tag=c,t.dump="{"+l+"}"}function _o(t,e,i,o){var a,n,s,r,l,c,p="",u=t.tag,d=Object.keys(i);if(!0===t.sortKeys)d.sort();else if("function"===typeof t.sortKeys)d.sort(t.sortKeys);else if(t.sortKeys)throw new X("sortKeys must be a boolean or a function");for(a=0,n=d.length;a1024,l&&(t.dump&&Si===t.dump.charCodeAt(0)?c+="?":c+="? "),c+=t.dump,l&&(c+=Xi(t,e)),Ro(t,e+1,r,!0,l)&&(t.dump&&Si===t.dump.charCodeAt(0)?c+=":":c+=": ",c+=t.dump,p+=c));t.tag=u,t.dump=p||"{}"}function Ao(t,e,i){var o,a,n,s,r,l;for(a=i?t.explicitTypes:t.implicitTypes,n=0,s=a.length;n tag resolver accepts not "'+l+'" style');o=r.represent[l](e,l)}t.dump=o}return!0}return!1}function Ro(t,e,i,o,a,n,s){t.tag=null,t.dump=i,Ao(t,i,!1)||Ao(t,i,!0);var r,l=bi.call(t.dump),c=o;o&&(o=t.flowLevel<0||t.flowLevel>e);var p,u,d="[object Object]"===l||"[object Array]"===l;if(d&&(p=t.duplicates.indexOf(i),u=-1!==p),(null!==t.tag&&"?"!==t.tag||u||2!==t.indent&&e>0)&&(a=!1),u&&t.usedDuplicates[p])t.dump="*ref_"+p;else{if(d&&u&&!t.usedDuplicates[p]&&(t.usedDuplicates[p]=!0),"[object Object]"===l)o&&0!==Object.keys(t.dump).length?(_o(t,e,t.dump,a),u&&(t.dump="&ref_"+p+t.dump)):(ko(t,e,t.dump),u&&(t.dump="&ref_"+p+" "+t.dump));else if("[object Array]"===l)o&&0!==t.dump.length?(t.noArrayIndent&&!s&&e>0?Co(t,e-1,t.dump,a):Co(t,e,t.dump,a),u&&(t.dump="&ref_"+p+t.dump)):(xo(t,e,t.dump),u&&(t.dump="&ref_"+p+" "+t.dump));else{if("[object String]"!==l){if("[object Undefined]"===l)return!1;if(t.skipInvalid)return!1;throw new X("unacceptable kind of an object to dump "+l)}"?"!==t.tag&&go(t,t.dump,e,n,c)}null!==t.tag&&"?"!==t.tag&&(r=encodeURI("!"===t.tag[0]?t.tag.slice(1):t.tag).replace(/!/g,"%21"),r="!"===t.tag[0]?"!"+r:"tag:yaml.org,2002:"===r.slice(0,18)?"!!"+r.slice(18):"!<"+r+">",t.dump=r+" "+t.dump)}return!0}function No(t,e){var i,o,a=[],n=[];for(To(t,a,n),i=0,o=n.length;it.value===this.appRegistrationSpecification.expire));if(t){const e=this.timestamp+t.time;return e}const e=this.appRegistrationSpecification.expire,i=12e4,o=e*i,a=this.timestamp+o;return a}const t=this.timestamp+2592e6;return t},callbackValue(){const{protocol:t,hostname:e,port:i}=window.location;let o="";o+=t,o+="//";const a=/[A-Za-z]/g;if(e.split("-")[4]){const t=e.split("-"),i=t[4].split("."),a=+i[0]+1;i[0]=a.toString(),i[2]="api",t[4]="",o+=t.join("-"),o+=i.join(".")}else if(e.match(a)){const t=e.split(".");t[0]="api",o+=t.join(".")}else{if("string"===typeof e&&this.$store.commit("flux/setUserIp",e),+i>16100){const t=+i+1;this.$store.commit("flux/setFluxPort",t)}o+=e,o+=":",o+=this.config.apiPort}const n=aa.get("backendURL")||o,s=`${n}/id/providesign`;return encodeURI(s)},getExpireLabel(){return this.expireOptions[this.expirePosition]?this.expireOptions[this.expirePosition].label:null},immutableAppSpecs(){return JSON.stringify(this.appRegistrationSpecification)}},watch:{immutableAppSpecs:{handler(){this.dataToSign="",this.signature="",this.timestamp=null,this.dataForAppRegistration={},this.registrationHash="",this.output=[],this.testError=!1,this.testFinished=!1,null!==this.websocket&&(this.websocket.close(),this.websocket=null)}},expirePosition:{handler(){this.dataToSign="",this.signature="",this.timestamp=null,this.dataForAppRegistration={},this.registrationHash="",this.output=[],this.testError=!1,this.testFinished=!1,null!==this.websocket&&(this.websocket.close(),this.websocket=null)}},isPrivateApp(t){console.log(t),this.appRegistrationSpecification.version>=7&&!1===t&&(this.appRegistrationSpecification.nodes=[],this.appRegistrationSpecification.compose.forEach((t=>{t.secrets="",t.repoauth=""})),this.selectedEnterpriseNodes=[]),this.allowedGeolocations={},this.forbiddenGeolocations={},this.dataToSign="",this.signature="",this.timestamp=null,this.dataForAppRegistration={},this.registrationHash="",null!==this.websocket&&(this.websocket.close(),this.websocket=null)}},beforeMount(){this.appRegistrationSpecification=this.appRegistrationSpecificationV7Template},mounted(){const{hostname:t}=window.location,e=/[A-Za-z]/g;t.match(e)?this.ipAccess=!1:this.ipAccess=!0,this.initMMSDK(),this.getGeolocationData(),this.getDaemonInfo(),this.appsDeploymentInformation(),this.getFluxnodeStatus(),this.getMultiplier(),this.getEnterpriseNodes();const i=localStorage.getItem("zelidauth"),o=ia.parse(i);this.appRegistrationSpecification.owner=o.zelid,this.$router.currentRoute.params.appspecs&&this.importSpecs(this.$router.currentRoute.params.appspecs),o.zelid?this.appRegistrationSpecification.owner=o.zelid:this.showToast("warning","Please log in first before registering an application")},methods:{async initMMSDK(){try{await ta.init(),ea=ta.getProvider()}catch(t){console.log(t)}},onFilteredSelection(t){this.entNodesSelectTable.totalRows=t.length,this.entNodesSelectTable.currentPage=1},getExpirePosition(t){const e=this.expireOptions.findIndex((e=>e.value===t));return e||0===e?e:2},decodeGeolocation(t){console.log(t);let e=!1;t.forEach((t=>{t.startsWith("b")&&(e=!0),t.startsWith("a")&&t.startsWith("ac")&&t.startsWith("a!c")&&(e=!0)}));let i=t;if(e){const e=t.find((t=>t.startsWith("a")&&t.startsWith("ac")&&t.startsWith("a!c"))),o=t.find((t=>t.startsWith("b")));let a=`ac${e.slice(1)}`;o&&(a+=`_${o.slice(1)}`),i=[a]}const o=i.filter((t=>t.startsWith("ac"))),a=i.filter((t=>t.startsWith("a!c")));for(let n=1;n=1&&(this.generalMultiplier=t.data.data)}catch(t){this.generalMultiplier=10,console.log(t)}},convertExpire(){return this.expireOptions[this.expirePosition]?this.expireOptions[this.expirePosition].value:22e3},async checkFluxSpecificationsAndFormatMessage(){try{if(!this.tosAgreed)throw new Error("Please agree to Terms of Service");if(this.appRegistrationSpecification.compose.find((t=>t.repotag.toLowerCase().includes("presearch/node")||t.repotag.toLowerCase().includes("thijsvanloef/palworld-server-docker"))))throw new Error("This application is configured and needs to be bought directly from marketplace.");this.operationTitle=" Compute registration message...",this.progressVisable=!0;const t=this.appRegistrationSpecification;let e=!1;if(t.version>=7&&(this.constructNodes(),this.appRegistrationSpecification.compose.forEach((t=>{if((t.repoauth||t.secrets)&&(e=!0,!this.appRegistrationSpecification.nodes.length))throw new Error("Private repositories and secrets can only run on Enterprise Nodes")}))),e){this.showToast("info","Encrypting specifications, this will take a while...");const t=[];for(const e of this.appRegistrationSpecification.nodes){const i=this.enterprisePublicKeys.find((t=>t.nodeip===e));if(i)t.push(i.nodekey);else{const i=await this.fetchEnterpriseKey(e);if(i){const o={nodeip:e.ip,nodekey:i},a=this.enterprisePublicKeys.find((t=>t.nodeip===e.ip));a||this.enterprisePublicKeys.push(o),t.push(i)}}}for(const e of this.appRegistrationSpecification.compose){if(e.environmentParameters=e.environmentParameters.replace("\\“",'\\"'),e.commands=e.commands.replace("\\“",'\\"'),e.domains=e.domains.replace("\\“",'\\"'),e.secrets&&!e.secrets.startsWith("-----BEGIN PGP MESSAGE")){e.secrets=e.secrets.replace("\\“",'\\"');const i=await this.encryptMessage(e.secrets,t);if(!i)return;e.secrets=i}if(e.repoauth&&!e.repoauth.startsWith("-----BEGIN PGP MESSAGE")){const i=await this.encryptMessage(e.repoauth,t);if(!i)return;e.repoauth=i}}}e&&this.appRegistrationSpecification.compose.forEach((t=>{if(t.secrets&&!t.secrets.startsWith("-----BEGIN PGP MESSAGE"))throw new Error("Encryption failed");if(t.repoauth&&!t.repoauth.startsWith("-----BEGIN PGP MESSAGE"))throw new Error("Encryption failed")})),t.version>=5&&(t.geolocation=this.generateGeolocations()),t.version>=6&&(t.expire=this.convertExpire());const i=await A.Z.appRegistrationVerificaiton(t);if("error"===i.data.status)throw new Error(i.data.data.message||i.data.data);const o=i.data.data;this.applicationPrice=0,this.applicationPriceUSD=0,this.applicationPriceFluxDiscount="",this.applicationPriceFluxError=!1;const a=await A.Z.appPriceUSDandFlux(o);if("error"===a.data.status)throw new Error(a.data.data.message||a.data.data);this.applicationPriceUSD=+a.data.data.usd,Number.isNaN(+a.data.data.fluxDiscount)?(this.applicationPriceFluxError=!0,this.showToast("danger","Not possible to complete payment with Flux crypto currency")):(this.applicationPrice=+a.data.data.flux,this.applicationPriceFluxDiscount=+a.data.data.fluxDiscount),this.progressVisable=!1,this.timestamp=Date.now(),this.dataForAppRegistration=o,this.dataToSign=this.registrationtype+this.version+JSON.stringify(o)+this.timestamp,this.$nextTick((()=>{this.isElementInViewport(this.$refs.signContainer)||this.$refs.signContainer.scrollIntoView({behavior:"smooth"})}))}catch(t){this.progressVisable=!1,console.log(t),this.showToast("danger",t.message||t)}},async getDaemonInfo(){this.specificationVersion=7,this.composeTemplate=this.composeTemplatev7,this.appRegistrationSpecification=this.appRegistrationSpecificationV7Template,this.appRegistrationSpecification.compose.forEach((t=>{const e=this.getRandomPort();t.ports=e,t.domains='[""]'}));const t=localStorage.getItem("zelidauth"),e=ia.parse(t);this.appRegistrationSpecification.owner=e.zelid},async initSignFluxSSO(){try{const t=this.dataToSign,e=(0,$.PR)();if(!e)return void this.showToast("warning","Not logged in as SSO. Login with SSO or use different signing method.");const i=e.auth.currentUser.accessToken,o={"Content-Type":"application/json",Authorization:`Bearer ${i}`},a=await oa.post("https://service.fluxcore.ai/api/signMessage",{message:t},{headers:o});if("success"!==a.data?.status&&a.data?.signature)return void this.showToast("warning","Failed to sign message, please try again.");this.signature=a.data.signature}catch(t){this.showToast("warning","Failed to sign message, please try again.")}},async initiateSignWS(){if(this.dataToSign.length>1800){const t=this.dataToSign,e={publicid:Math.floor(999999999999999*Math.random()).toString(),public:t};await oa.post("https://storage.runonflux.io/v1/public",e);const i=`zel:?action=sign&message=FLUX_URL=https://storage.runonflux.io/v1/public/${e.publicid}&icon=https%3A%2F%2Fraw.githubusercontent.com%2Frunonflux%2Fflux%2Fmaster%2FzelID.svg&callback=${this.callbackValue}`;window.location.href=i}else window.location.href=`zel:?action=sign&message=${this.dataToSign}&icon=https%3A%2F%2Fraw.githubusercontent.com%2Frunonflux%2Fflux%2Fmaster%2FzelID.svg&callback=${this.callbackValue}`;const t=this,{protocol:e,hostname:i,port:o}=window.location;let a="";a+=e,a+="//";const n=/[A-Za-z]/g;if(i.split("-")[4]){const t=i.split("-"),e=t[4].split("."),o=+e[0]+1;e[0]=o.toString(),e[2]="api",t[4]="",a+=t.join("-"),a+=e.join(".")}else if(i.match(n)){const t=i.split(".");t[0]="api",a+=t.join(".")}else{if("string"===typeof i&&this.$store.commit("flux/setUserIp",i),+o>16100){const t=+o+1;this.$store.commit("flux/setFluxPort",t)}a+=i,a+=":",a+=this.config.apiPort}let s=aa.get("backendURL")||a;s=s.replace("https://","wss://"),s=s.replace("http://","ws://");const r=this.appRegistrationSpecification.owner+this.timestamp,l=`${s}/ws/sign/${r}`,c=new WebSocket(l);this.websocket=c,c.onopen=e=>{t.onOpen(e)},c.onclose=e=>{t.onClose(e)},c.onmessage=e=>{t.onMessage(e)},c.onerror=e=>{t.onError(e)}},onError(t){console.log(t)},onMessage(t){const e=ia.parse(t.data);"success"===e.status&&e.data&&(this.signature=e.data.signature),console.log(e),console.log(t)},onClose(t){console.log(t)},onOpen(t){console.log(t)},async register(){const t=localStorage.getItem("zelidauth"),e={type:this.registrationtype,version:this.version,appSpecification:this.dataForAppRegistration,timestamp:this.timestamp,signature:this.signature};this.progressVisable=!0,this.operationTitle="Propagating message accross Flux network...";const i=await A.Z.registerApp(t,e).catch((t=>{this.showToast("danger",t.message||t)}));console.log(i),"success"===i.data.status?(this.registrationHash=i.data.data,this.showToast("success",i.data.data.message||i.data.data)):this.showToast("danger",i.data.data.message||i.data.data);const o=await(0,I.Z)();o&&(this.stripeEnabled=o.stripe,this.paypalEnabled=o.paypal),this.progressVisable=!1},async appsDeploymentInformation(){const t=await A.Z.appsDeploymentInformation(),{data:e}=t.data;"success"===t.data.status?(this.deploymentAddress=e.address,this.minInstances=e.minimumInstances,this.maxInstances=e.maximumInstances):this.showToast("danger",t.data.data.message||t.data.data)},addCopmonent(){const t=this.getRandomPort();this.composeTemplate.ports=t,this.composeTemplate.domains='[""]',this.appRegistrationSpecification.compose.push(JSON.parse(JSON.stringify(this.composeTemplate)))},removeComponent(t){this.appRegistrationSpecification.compose.splice(t,1)},getRandomPort(){const t=31001,e=39998,i=[],o=Math.floor(Math.random()*(e-t)+t);return i.push(o),JSON.stringify(i)},ensureBoolean(t){let e;return"false"!==t&&0!==t&&"0"!==t&&!1!==t||(e=!1),"true"!==t&&1!==t&&"1"!==t&&!0!==t||(e=!0),e},ensureNumber(t){return"number"===typeof t?t:Number(t)},ensureObject(t){if("object"===typeof t)return t;let e;try{e=JSON.parse(t)}catch(i){e=ia.parse(t)}return e},ensureString(t){return"string"===typeof t?t:JSON.stringify(t)},showToast(t,e,i="InfoIcon"){this.$toast({component:_.Z,props:{title:e,icon:i,variant:t}})},async getGeolocationData(){let t=[];try{ra.continents.forEach((e=>{t.push({value:e.code,instances:e.available?100:0})})),ra.countries.forEach((e=>{t.push({value:`${e.continent}_${e.code}`,instances:e.available?100:0})}));const e=await oa.get("https://stats.runonflux.io/fluxinfo?projection=geo");if("success"===e.data.status){const i=e.data.data;i.length>5e3&&(t=[],i.forEach((e=>{if(e.geolocation&&e.geolocation.continentCode&&e.geolocation.regionName&&e.geolocation.countryCode){const i=e.geolocation.continentCode,o=`${i}_${e.geolocation.countryCode}`,a=`${o}_${e.geolocation.regionName}`,n=t.find((t=>t.value===i));n?n.instances+=1:t.push({value:i,instances:1});const s=t.find((t=>t.value===o));s?s.instances+=1:t.push({value:o,instances:1});const r=t.find((t=>t.value===a));r?r.instances+=1:t.push({value:a,instances:1})}})))}else this.showToast("info","Failed to get geolocation data from FluxStats, Using stored locations")}catch(e){console.log(e),this.showToast("info","Failed to get geolocation data from FluxStats, Using stored locations")}this.possibleLocations=t},continentsOptions(t){const e=[{value:t?"NONE":"ALL",text:t?"NONE":"ALL"}];return this.possibleLocations.filter((e=>e.instances>(t?-1:3))).forEach((t=>{if(!t.value.includes("_")){const i=ra.continents.find((e=>e.code===t.value));e.push({value:t.value,text:i?i.name:t.value})}})),e},countriesOptions(t,e){const i=[{value:"ALL",text:"ALL"}];return this.possibleLocations.filter((t=>t.instances>(e?-1:3))).forEach((e=>{if(!e.value.split("_")[2]&&e.value.startsWith(`${t}_`)){const t=ra.countries.find((t=>t.code===e.value.split("_")[1]));i.push({value:e.value.split("_")[1],text:t?t.name:e.value.split("_")[1]})}})),i},regionsOptions(t,e,i){const o=[{value:"ALL",text:"ALL"}];return this.possibleLocations.filter((t=>t.instances>(i?-1:3))).forEach((i=>{i.value.startsWith(`${t}_${e}_`)&&o.push({value:i.value.split("_")[2],text:i.value.split("_")[2]})})),o},generateGeolocations(){const t=[];for(let e=1;et.startsWith("ac")));console.log(t);let i=0;e.forEach((t=>{const e=this.possibleLocations.find((e=>e.value===t.slice(2)));e&&(i+=e.instances),"ALL"===t&&(i+=100)})),e.length||(i+=100),console.log(i),i=i>3?i:3;const o=i>100?100:i;this.maxInstances=o},stringOutput(){let t="";return this.output.forEach((e=>{"success"===e.status?t+=`${e.data.message||e.data}\r\n`:"Downloading"===e.status?(this.downloadOutputReturned=!0,this.downloadOutput[e.id]={id:e.id,detail:e.progressDetail,variant:"danger"}):"Verifying Checksum"===e.status?(this.downloadOutputReturned=!0,this.downloadOutput[e.id]={id:e.id,detail:{current:1,total:1},variant:"warning"}):"Download complete"===e.status?(this.downloadOutputReturned=!0,this.downloadOutput[e.id]={id:e.id,detail:{current:1,total:1},variant:"info"}):"Extracting"===e.status?(this.downloadOutputReturned=!0,this.downloadOutput[e.id]={id:e.id,detail:e.progressDetail,variant:"primary"}):"Pull complete"===e.status?(this.downloadOutputReturned=!0,this.downloadOutput[e.id]={id:e.id,detail:{current:1,total:1},variant:"success"}):"error"===e.status?t+=`Error: ${JSON.stringify(e.data)}\r\n`:t+=`${e.status}\r\n`})),t},async testAppInstall(t){if(this.downloading)return void this.showToast("danger","Test install/launch was already initiated");const e=this;this.output=[],this.downloadOutput={},this.downloadOutputReturned=!1,this.downloading=!0,this.testError=!1,this.testFinished=!1,this.showToast("warning",`Testing ${t} installation, please wait`);const i=localStorage.getItem("zelidauth"),o={headers:{zelidauth:i},onDownloadProgress(t){console.log(t.event.target.response),e.output=JSON.parse(`[${t.event.target.response.replace(/}{/g,"},{")}]`)}};let a;try{if(this.appRegistrationSpecification.nodes.length>0){const e=this.appRegistrationSpecification.nodes[Math.floor(Math.random()*this.appRegistrationSpecification.nodes.length)],i=e.split(":")[0],n=Number(e.split(":")[1]||16127),s=`https://${i.replace(/\./g,"-")}-${n}.node.api.runonflux.io/apps/testappinstall/${t}`;a=await oa.get(s,o)}else a=await A.Z.justAPI().get(`/apps/testappinstall/${t}`,o);if("error"===a.data.status)this.showToast("danger",a.data.data.message||a.data.data),this.testError=!0;else{console.log(a),this.output=JSON.parse(`[${a.data.replace(/}{/g,"},{")}]`),console.log(this.output);for(let t=0;te.ip===t));e>-1&&this.selectedEnterpriseNodes.splice(e,1)},async addFluxNode(t){try{const e=this.selectedEnterpriseNodes.find((e=>e.ip===t));if(console.log(t),!e){const e=this.enterpriseNodes.find((e=>e.ip===t));this.selectedEnterpriseNodes.push(e),console.log(this.selectedEnterpriseNodes);const i=this.enterprisePublicKeys.find((e=>e.nodeip===t));if(!i){const e=await this.fetchEnterpriseKey(t);if(e){const i={nodeip:t,nodekey:e},o=this.enterprisePublicKeys.find((e=>e.nodeip===t));o||this.enterprisePublicKeys.push(i)}}}}catch(e){console.log(e)}},async autoSelectNodes(){const{instances:t}=this.appRegistrationSpecification,e=+t+3,i=+t+Math.ceil(Math.max(7,.15*+t)),o=this.enterpriseNodes.filter((t=>!this.selectedEnterpriseNodes.includes(t))),a=[],n=o.filter((t=>t.enterprisePoints>0&&t.score>1e3));for(let s=0;st.pubkey===n[s].pubkey)).length,o=a.filter((t=>t.pubkey===n[s].pubkey)).length;if(t+o=i)break}if(a.length{const e=this.selectedEnterpriseNodes.find((e=>e.ip===t.ip));if(!e){this.selectedEnterpriseNodes.push(t);const e=this.enterprisePublicKeys.find((e=>e.nodeip===t.ip));if(!e){const e=await this.fetchEnterpriseKey(t.ip);if(e){const i={nodeip:t.ip,nodekey:e},o=this.enterprisePublicKeys.find((e=>e.nodeip===t.ip));o||this.enterprisePublicKeys.push(i)}}}}))},constructNodes(){if(this.appRegistrationSpecification.nodes=[],this.selectedEnterpriseNodes.forEach((t=>{this.appRegistrationSpecification.nodes.push(t.ip)})),this.appRegistrationSpecification.nodes.length>this.maximumEnterpriseNodes)throw new Error("Maximum of 120 Enterprise Nodes allowed")},async getEnterpriseNodes(){const t=sessionStorage.getItem("flux_enterprise_nodes");t&&(this.enterpriseNodes=JSON.parse(t),this.entNodesSelectTable.totalRows=this.enterpriseNodes.length);try{const t=await A.Z.getEnterpriseNodes();"error"===t.data.status?this.showToast("danger",t.data.data.message||t.data.data):(this.enterpriseNodes=t.data.data,this.entNodesSelectTable.totalRows=this.enterpriseNodes.length,sessionStorage.setItem("flux_enterprise_nodes",JSON.stringify(this.enterpriseNodes)))}catch(e){console.log(e)}},async fetchEnterpriseKey(t){try{const e=t.split(":")[0],i=Number(t.split(":")[1]||16127);let o=`https://${e.replace(/\./g,"-")}-${i}.node.api.runonflux.io/flux/pgp`;this.ipAccess&&(o=`http://${e}:${i}/flux/pgp`);const a=await oa.get(o);if("error"!==a.data.status){const t=a.data.data;return t}return this.showToast("danger",a.data.data.message||a.data.data),null}catch(e){return console.log(e),null}},async encryptMessage(t,e){try{const i=await Promise.all(e.map((t=>na.readKey({armoredKey:t}))));console.log(e),console.log(t);const o=await na.createMessage({text:t.replace("\\“",'\\"')}),a=await na.encrypt({message:o,encryptionKeys:i});return a}catch(i){return this.showToast("danger","Data encryption failed"),null}},async onSessionConnect(t){console.log(t);const e=await this.signClient.request({topic:t.topic,chainId:"eip155:1",request:{method:"personal_sign",params:[this.dataToSign,t.namespaces.eip155.accounts[0].split(":")[2]]}});console.log(e),this.signature=e},async initWalletConnect(){try{const t=await P.ZP.init(Qo);this.signClient=t;const e=t.session.getAll().length-1,i=t.session.getAll()[e];if(!i)throw new Error("WalletConnect session expired. Please log into FluxOS again");this.onSessionConnect(i)}catch(t){console.error(t),this.showToast("danger",t.message)}},async siwe(t,e){try{const i=`0x${Ho.from(t,"utf8").toString("hex")}`,o=await ea.request({method:"personal_sign",params:[i,e]});console.log(o),this.signature=o}catch(i){console.error(i),this.showToast("danger",i.message)}},async initMetamask(){try{if(!ea)return void this.showToast("danger","Metamask not detected");let t;if(ea&&!ea.selectedAddress){const e=await ea.request({method:"eth_requestAccounts",params:[]});console.log(e),t=e[0]}else t=ea.selectedAddress;this.siwe(this.dataToSign,t)}catch(t){this.showToast("danger",t.message)}},async initSSP(){try{if(!window.ssp)return void this.showToast("danger","SSP Wallet not installed");const t=await window.ssp.request("sspwid_sign_message",{message:this.dataToSign});if("ERROR"===t.status)throw new Error(t.data||t.result);this.signature=t.signature}catch(t){this.showToast("danger",t.message)}},async initSSPpay(){try{if(!window.ssp)return void this.showToast("danger","SSP Wallet not installed");const t={message:this.registrationHash,amount:(+this.applicationPrice||0).toString(),address:this.deploymentAddress,chain:"flux"},e=await window.ssp.request("pay",t);if("ERROR"===e.status)throw new Error(e.data||e.result);this.showToast("success",`${e.data}: ${e.txid}`)}catch(t){this.showToast("danger",t.message)}},async initStripePay(t,e,i,o){try{this.fiatCheckoutURL="",this.checkoutLoading=!0;const n=localStorage.getItem("zelidauth"),s=ia.parse(n),r={zelid:s.zelid,signature:s.signature,loginPhrase:s.loginPhrase,details:{name:e,description:o,hash:t,price:i,productName:e,success_url:"https://home.runonflux.io/successcheckout",cancel_url:"https://home.runonflux.io",kpi:{origin:"FluxOS",marketplace:!1,registration:!0}}},l=await oa.post(`${I.M}/api/v1/stripe/checkout/create`,r);if("error"===l.data.status)return this.showToast("error","Failed to create stripe checkout"),void(this.checkoutLoading=!1);this.fiatCheckoutURL=l.data.data,this.checkoutLoading=!1;try{this.openSite(l.data.data)}catch(a){console.log(a),this.showToast("error","Failed to open Stripe checkout, pop-up blocked?")}}catch(a){console.log(a),this.showToast("error","Failed to create stripe checkout"),this.checkoutLoading=!1}},async initPaypalPay(t,e,i,o){try{this.fiatCheckoutURL="",this.checkoutLoading=!0;let n=null,s=await oa.get("https://api.ipify.org?format=json").catch((()=>{console.log("Error geting clientIp from api.ipify.org from")}));s&&s.data&&s.data.ip?n=s.data.ip:(s=await oa.get("https://ipinfo.io").catch((()=>{console.log("Error geting clientIp from ipinfo.io from")})),s&&s.data&&s.data.ip?n=s.data.ip:(s=await oa.get("https://api.ip2location.io").catch((()=>{console.log("Error geting clientIp from api.ip2location.io from")})),s&&s.data&&s.data.ip&&(n=s.data.ip)));const r=localStorage.getItem("zelidauth"),l=ia.parse(r),c={zelid:l.zelid,signature:l.signature,loginPhrase:l.loginPhrase,details:{clientIP:n,name:e,description:o,hash:t,price:i,productName:e,return_url:"home.runonflux.io/successcheckout",cancel_url:"home.runonflux.io",kpi:{origin:"FluxOS",marketplace:!1,registration:!0}}},p=await oa.post(`${I.M}/api/v1/paypal/checkout/create`,c);if("error"===p.data.status)return this.showToast("error","Failed to create PayPal checkout"),void(this.checkoutLoading=!1);this.fiatCheckoutURL=p.data.data,this.checkoutLoading=!1;try{this.openSite(p.data.data)}catch(a){console.log(a),this.showToast("error","Failed to open Paypal checkout, pop-up blocked?")}}catch(a){console.log(a),this.showToast("error","Failed to create PayPal checkout"),this.checkoutLoading=!1}},importSpecs(t){try{JSON.parse(t)}catch(o){return void this.showToast("error","Invalid Application Specifications")}const e=localStorage.getItem("zelidauth"),i=ia.parse(e);if(t){const e=JSON.parse(t);if(console.log(e),this.appRegistrationSpecification=JSON.parse(t),this.appRegistrationSpecification.instances=e.instances||3,this.appRegistrationSpecification.version<=3)this.appRegistrationSpecification.version=3,this.appRegistrationSpecification.ports=e.port||this.ensureString(e.ports),this.appRegistrationSpecification.domains=this.ensureString(e.domains),this.appRegistrationSpecification.enviromentParameters=this.ensureString(e.enviromentParameters),this.appRegistrationSpecification.commands=this.ensureString(e.commands),this.appRegistrationSpecification.containerPorts=e.containerPort||this.ensureString(e.containerPorts);else{if(this.appRegistrationSpecification.version<=7&&(this.appRegistrationSpecification.version=7),this.appRegistrationSpecification.contacts=this.ensureString([]),this.appRegistrationSpecification.geolocation=this.ensureString([]),this.appRegistrationSpecification.version>=5){this.appRegistrationSpecification.contacts=this.ensureString(e.contacts||[]),this.appRegistrationSpecification.geolocation=this.ensureString(e.geolocation||[]);try{this.decodeGeolocation(e.geolocation||[])}catch(o){console.log(o),this.appRegistrationSpecification.geolocation=this.ensureString([])}}this.appRegistrationSpecification.compose.forEach((t=>{t.ports=this.ensureString(t.ports),t.domains=this.ensureString(t.domains),t.environmentParameters=this.ensureString(t.environmentParameters),t.commands=this.ensureString(t.commands),t.containerPorts=this.ensureString(t.containerPorts),t.secrets=this.ensureString(t.secrets||""),t.repoauth=this.ensureString(t.repoauth||"")})),this.appRegistrationSpecification.version>=6&&(this.appRegistrationSpecification.expire=this.ensureNumber(e.expire||22e3),this.expirePosition=this.getExpirePosition(this.appRegistrationSpecification.expire)),this.appRegistrationSpecification.version>=7&&(this.appRegistrationSpecification.staticip=this.appRegistrationSpecification.staticip??!1,this.appRegistrationSpecification.nodes=this.appRegistrationSpecification.nodes||[],this.appRegistrationSpecification.nodes&&this.appRegistrationSpecification.nodes.length&&(this.isPrivateApp=!0),this.appRegistrationSpecification.nodes.forEach((async t=>{this.enterpriseNodes||await this.getEnterpriseNodes();const e=this.enterprisePublicKeys.find((e=>e.nodeip===t));if(!e){const e=await this.fetchEnterpriseKey(t);if(e){const i={nodeip:t.ip,nodekey:e},o=this.enterprisePublicKeys.find((e=>e.nodeip===t));o||this.enterprisePublicKeys.push(i)}}})),this.selectedEnterpriseNodes=[],this.appRegistrationSpecification.nodes.forEach((t=>{if(this.enterpriseNodes){const e=this.enterpriseNodes.find((e=>e.ip===t||t===`${e.txhash}:${e.outidx}`));e&&this.selectedEnterpriseNodes.push(e)}else this.showToast("danger","Failed to load Enterprise Node List")})))}}i.zelid?this.appRegistrationSpecification.owner=i.zelid:(this.appRegistrationSpecification.owner="",this.showToast("warning","Please log in first before registering an application"))},copyMessageToSign(){const{copy:t}=(0,O.VPI)({source:this.dataToSign,legacy:!0});t(),this.tooltipText="Copied!",setTimeout((()=>{this.$refs.copyButtonRef&&(this.$refs.copyButtonRef.blur(),this.tooltipText="")}),1e3),setTimeout((()=>{this.tooltipText="Copy to clipboard"}),1500)},byteValueAsMb(t){const e={k:1/1024,kb:1/1024,mb:1,m:1,gb:1024,g:1024},i=t.match(/[0-9]+(?:\.[0-9]+)?|[a-zA-Z]+/g);if(2!==i.length)return 0;const o=+i[0],a=i[1].toLowerCase();return a in e?Math.ceil(o*e[a]):0},dragover(t){t.preventDefault(),this.isDragging=!0},dragleave(){this.isDragging=!1},drop(t){if(t.preventDefault(),this.isDragging=!1,!t?.dataTransfer?.files||!t.dataTransfer.files.length)return;const e=t.dataTransfer.files[0];"application/x-yaml"===e?.type?this.loadFile(e):this.showToast("warning","File must be in yaml format. Ignoring.")},loadFile(t){this.reader.addEventListener("load",this.parseCompose,{once:!0}),this.reader.readAsText(t)},uploadFile(){this.$refs.uploadSpecs.$el.childNodes[0].click()},isElementInViewport(t){const e=t.getBoundingClientRect();return e.top>=0&&e.left>=0&&e.bottom<=(window.innerHeight||document.documentElement.clientHeight)&&e.right<=(window.innerWidth||document.documentElement.clientWidth)},parseCompose(){let t;try{t=Yo.load(this.reader.result)}catch(e){this.showToast("warning","Unable to parse yaml file. Ignoring.")}if(t)if(t.services)try{const e=(t,e,i)=>Array.from({length:(e-t)/i+1},((e,o)=>t+o*i)),i={compose:[]},o={};Object.entries(t.services).forEach((t=>{const[a,n]=t,s={name:a};if(i.compose.push(s),a in o||(o[a]=new Set),n.depends_on){let t=n.depends_on;Array.isArray(t)||(t=Object.keys(t)),t.forEach((t=>{t in o||(o[t]=new Set),o[t].add(a)}))}if(s.repotag=n.image||"",n.deploy?.resources?.limits){const{limits:t}=n.deploy.resources;if(t.cpus&&(s.cpu=Math.max((Math.ceil(10*+t.cpus)/10).toFixed(1),.1)),t.memory){const e=this.byteValueAsMb(t.memory),i=Math.max(100*Math.ceil(e/100),100);s.ram=i}}let r="";if(r=n.command?n.command.match(/\\?.|^$/g).reduce(((t,e)=>('"'===e?t.quote^=1:t.quote||" "!==e?t.a[t.a.length-1]+=e.replace(/\\(.)/,"$1"):t.a.push(""),t)),{a:[""]}).a:[],s.commands=this.ensureString(r),n.environment){let t=n.environment;t instanceof Array||(t=Object.keys(t).map((e=>`${e}=${t[e]}`))),s.environmentParameters=this.ensureString(t)}else s.environmentParameters="[]";if(n.ports&&n.ports.length){let t=[],i=[],o=[];n.ports.forEach((a=>{if("string"!==typeof a)return;if(!a.includes(":"))return;let[n,s]=a.split(":");if(n.includes("-")){const[t,i]=n.split("-");n=e(+t,+i,1)}if(s.includes("-")){const[t,i]=s.split("-");s=e(+t,+i,1)}if("string"===typeof n&&(n=[n]),"string"===typeof s&&(s=[s]),n.length!==s.length)return;const r=Array.from({length:n.length},(()=>""));t=t.concat(n.map((t=>+t))),i=i.concat(s.map((t=>+t))),o=o.concat(r)})),s.ports=this.ensureString(t),s.containerPorts=this.ensureString(i),s.domains=this.ensureString(o)}else s.ports="[]",s.containerPorts="[]",s.domains="[]";s.hdd=40,s.ram||(s.ram=2e3),s.cpu||(s.cpu=.5),s.description="",s.repoauth="",s.containerData="/tmp",s.tiered=!1,s.secrets="",s.cpubasic=.5,s.rambasic=500,s.hddbasic=10,s.cpusuper=1.5,s.ramsuper=2500,s.hddsuper=60,s.cpubamf=3.5,s.rambamf=14e3,s.hddbamf=285}));const a=M()(o);a.length===i.compose.length&&i.compose.sort(((t,e)=>a.indexOf(t.name)-a.indexOf(e.name))),this.appRegistrationSpecification.compose=i.compose,this.$refs.components.length&&!this.isElementInViewport(this.$refs.components[0])&&this.$refs.components[0].scrollIntoView({behavior:"smooth"})}catch(e){console.log(e),this.showToast("Error","Unable to parse compose specifications.")}else this.showToast("warning","Yaml parsed, but no services found. Ignoring.")}}},ca=la;var pa=i(1001),ua=(0,pa.Z)(ca,o,a,!1,null,"08c62d54",null);const da=ua.exports},40710:(t,e,i)=>{var o=i(79639)["default"],a=i(76890)["default"],n=i(22989)["default"],s=i(76808)["default"];i(70560);class r{constructor(t){s(this,"prev",null),s(this,"next",null),this.value=t}}var l=new WeakMap,c=new WeakMap,p=new WeakMap;class u{constructor(){o(this,l,{writable:!0,value:new r}),o(this,c,{writable:!0,value:new r}),o(this,p,{writable:!0,value:0}),n(this,l).prev=n(this,c),n(this,c).next=n(this,l)}get isEmpty(){return 0===n(this,p)}get front(){if(!this.isEmpty)return n(this,l).prev.value}get back(){if(!this.isEmpty)return n(this,c).next.value}get length(){return n(this,p)}enqueue(t){const e=new r(t),i=n(this,c).next;return i.prev=e,e.next=i,e.prev=n(this,c),n(this,c).next=e,a(this,p,n(this,p)+1),n(this,p)}dequeue(){if(this.isEmpty)return;const t=n(this,l).prev,e=t.prev;return n(this,l).prev=e,e.next=n(this,l),t.prev=null,t.next=null,a(this,p,n(this,p)-1),t.value}}function d(t){const e=new Map,i=new u,o=[];Object.keys(t).forEach((i=>{e.set(i,{in:0,out:new Set(t[i])})})),Object.keys(t).forEach((i=>{t[i].forEach((t=>{e.has(t)&&(e.get(t).in+=1)}))})),e.forEach(((t,e)=>{0===t.in&&i.enqueue(e)}));while(i.length){const t=i.dequeue();e.get(t).out.forEach((t=>{e.has(t)&&(e.get(t).in-=1,0===e.get(t).in&&i.enqueue(t))})),o.push(t)}return o.length===Object.keys(t).length?o:[]}t.exports=d},84328:(t,e,i)=>{"use strict";var o=i(65290),a=i(27578),n=i(6310),s=function(t){return function(e,i,s){var r,l=o(e),c=n(l),p=a(s,c);if(t&&i!==i){while(c>p)if(r=l[p++],r!==r)return!0}else for(;c>p;p++)if((t||p in l)&&l[p]===i)return t||p||0;return!t&&-1}};t.exports={includes:s(!0),indexOf:s(!1)}},5649:(t,e,i)=>{"use strict";var o=i(67697),a=i(92297),n=TypeError,s=Object.getOwnPropertyDescriptor,r=o&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(t){return t instanceof TypeError}}();t.exports=r?function(t,e){if(a(t)&&!s(t,"length").writable)throw new n("Cannot set read only .length");return t.length=e}:function(t,e){return t.length=e}},8758:(t,e,i)=>{"use strict";var o=i(36812),a=i(19152),n=i(82474),s=i(72560);t.exports=function(t,e,i){for(var r=a(e),l=s.f,c=n.f,p=0;p{"use strict";var e=TypeError,i=9007199254740991;t.exports=function(t){if(t>i)throw e("Maximum allowed index exceeded");return t}},72739:t=>{"use strict";t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},79989:(t,e,i)=>{"use strict";var o=i(19037),a=i(82474).f,n=i(75773),s=i(11880),r=i(95014),l=i(8758),c=i(35266);t.exports=function(t,e){var i,p,u,d,m,f,h=t.target,g=t.global,b=t.stat;if(p=g?o:b?o[h]||r(h,{}):(o[h]||{}).prototype,p)for(u in e){if(m=e[u],t.dontCallGetSet?(f=a(p,u),d=f&&f.value):d=p[u],i=c(g?u:h+(b?".":"#")+u,t.forced),!i&&void 0!==d){if(typeof m==typeof d)continue;l(m,d)}(t.sham||d&&d.sham)&&n(m,"sham",!0),s(p,u,m,t)}}},94413:(t,e,i)=>{"use strict";var o=i(68844),a=i(3689),n=i(6648),s=Object,r=o("".split);t.exports=a((function(){return!s("z").propertyIsEnumerable(0)}))?function(t){return"String"===n(t)?r(t,""):s(t)}:s},92297:(t,e,i)=>{"use strict";var o=i(6648);t.exports=Array.isArray||function(t){return"Array"===o(t)}},35266:(t,e,i)=>{"use strict";var o=i(3689),a=i(69985),n=/#|\.prototype\./,s=function(t,e){var i=l[r(t)];return i===p||i!==c&&(a(e)?o(e):!!e)},r=s.normalize=function(t){return String(t).replace(n,".").toLowerCase()},l=s.data={},c=s.NATIVE="N",p=s.POLYFILL="P";t.exports=s},6310:(t,e,i)=>{"use strict";var o=i(43126);t.exports=function(t){return o(t.length)}},58828:t=>{"use strict";var e=Math.ceil,i=Math.floor;t.exports=Math.trunc||function(t){var o=+t;return(o>0?i:e)(o)}},82474:(t,e,i)=>{"use strict";var o=i(67697),a=i(22615),n=i(49556),s=i(75684),r=i(65290),l=i(18360),c=i(36812),p=i(68506),u=Object.getOwnPropertyDescriptor;e.f=o?u:function(t,e){if(t=r(t),e=l(e),p)try{return u(t,e)}catch(i){}if(c(t,e))return s(!a(n.f,t,e),t[e])}},72741:(t,e,i)=>{"use strict";var o=i(54948),a=i(72739),n=a.concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return o(t,n)}},7518:(t,e)=>{"use strict";e.f=Object.getOwnPropertySymbols},54948:(t,e,i)=>{"use strict";var o=i(68844),a=i(36812),n=i(65290),s=i(84328).indexOf,r=i(57248),l=o([].push);t.exports=function(t,e){var i,o=n(t),c=0,p=[];for(i in o)!a(r,i)&&a(o,i)&&l(p,i);while(e.length>c)a(o,i=e[c++])&&(~s(p,i)||l(p,i));return p}},49556:(t,e)=>{"use strict";var i={}.propertyIsEnumerable,o=Object.getOwnPropertyDescriptor,a=o&&!i.call({1:2},1);e.f=a?function(t){var e=o(this,t);return!!e&&e.enumerable}:i},19152:(t,e,i)=>{"use strict";var o=i(76058),a=i(68844),n=i(72741),s=i(7518),r=i(85027),l=a([].concat);t.exports=o("Reflect","ownKeys")||function(t){var e=n.f(r(t)),i=s.f;return i?l(e,i(t)):e}},27578:(t,e,i)=>{"use strict";var o=i(68700),a=Math.max,n=Math.min;t.exports=function(t,e){var i=o(t);return i<0?a(i+e,0):n(i,e)}},65290:(t,e,i)=>{"use strict";var o=i(94413),a=i(74684);t.exports=function(t){return o(a(t))}},68700:(t,e,i)=>{"use strict";var o=i(58828);t.exports=function(t){var e=+t;return e!==e||0===e?0:o(e)}},43126:(t,e,i)=>{"use strict";var o=i(68700),a=Math.min;t.exports=function(t){return t>0?a(o(t),9007199254740991):0}},70560:(t,e,i)=>{"use strict";var o=i(79989),a=i(90690),n=i(6310),s=i(5649),r=i(55565),l=i(3689),c=l((function(){return 4294967297!==[].push.call({length:4294967296},1)})),p=function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(t){return t instanceof TypeError}},u=c||!p();o({target:"Array",proto:!0,arity:1,forced:u},{push:function(t){var e=a(this),i=n(e),o=arguments.length;r(i+o);for(var l=0;l{function e(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}t.exports=e,t.exports.__esModule=!0,t.exports["default"]=t.exports},50934:t=>{function e(t,e){return e.get?e.get.call(t):e.value}t.exports=e,t.exports.__esModule=!0,t.exports["default"]=t.exports},14368:t=>{function e(t,e,i){if(e.set)e.set.call(t,i);else{if(!e.writable)throw new TypeError("attempted to set read only private field");e.value=i}}t.exports=e,t.exports.__esModule=!0,t.exports["default"]=t.exports},38615:t=>{function e(t,e,i){if(!e.has(t))throw new TypeError("attempted to "+i+" private field on non-instance");return e.get(t)}t.exports=e,t.exports.__esModule=!0,t.exports["default"]=t.exports},22989:(t,e,i)=>{var o=i(50934),a=i(38615);function n(t,e){var i=a(t,e,"get");return o(t,i)}t.exports=n,t.exports.__esModule=!0,t.exports["default"]=t.exports},79639:(t,e,i)=>{var o=i(9665);function a(t,e,i){o(t,e),e.set(t,i)}t.exports=a,t.exports.__esModule=!0,t.exports["default"]=t.exports},76890:(t,e,i)=>{var o=i(14368),a=i(38615);function n(t,e,i){var n=a(t,e,"set");return o(t,n,i),i}t.exports=n,t.exports.__esModule=!0,t.exports["default"]=t.exports},76808:(t,e,i)=>{var o=i(58252);function a(t,e,i){return e=o(e),e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}t.exports=a,t.exports.__esModule=!0,t.exports["default"]=t.exports},29388:(t,e,i)=>{var o=i(12583)["default"];function a(t,e){if("object"!=o(t)||!t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var a=i.call(t,e||"default");if("object"!=o(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}t.exports=a,t.exports.__esModule=!0,t.exports["default"]=t.exports},58252:(t,e,i)=>{var o=i(12583)["default"],a=i(29388);function n(t){var e=a(t,"string");return"symbol"==o(e)?e:String(e)}t.exports=n,t.exports.__esModule=!0,t.exports["default"]=t.exports},12583:t=>{function e(i){return t.exports=e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t.exports.__esModule=!0,t.exports["default"]=t.exports,e(i)}t.exports=e,t.exports.__esModule=!0,t.exports["default"]=t.exports}}]); \ No newline at end of file +function L(t){return"undefined"===typeof t||null===t}function G(t){return"object"===typeof t&&null!==t}function j(t){return Array.isArray(t)?t:L(t)?[]:[t]}function U(t,e){var i,o,a,n;if(e)for(n=Object.keys(e),i=0,o=n.length;ir&&(n=" ... ",e=o-r+n.length),i-o>r&&(s=" ...",i=o+r-s.length),{str:n+t.slice(e,i).replace(/\t/g,"→")+s,pos:o-e+n.length}}function et(t,e){return H.repeat(" ",e-t.length)+t}function it(t,e){if(e=Object.create(e||null),!t.buffer)return null;e.maxLength||(e.maxLength=79),"number"!==typeof e.indent&&(e.indent=1),"number"!==typeof e.linesBefore&&(e.linesBefore=3),"number"!==typeof e.linesAfter&&(e.linesAfter=2);var i,o=/\r?\n|\r|\0/g,a=[0],n=[],s=-1;while(i=o.exec(t.buffer))n.push(i.index),a.push(i.index+i[0].length),t.position<=i.index&&s<0&&(s=a.length-2);s<0&&(s=a.length-1);var r,l,c="",p=Math.min(t.line+e.linesAfter,n.length).toString().length,u=e.maxLength-(e.indent+p+3);for(r=1;r<=e.linesBefore;r++){if(s-r<0)break;l=tt(t.buffer,a[s-r],n[s-r],t.position-(a[s]-a[s-r]),u),c=H.repeat(" ",e.indent)+et((t.line-r+1).toString(),p)+" | "+l.str+"\n"+c}for(l=tt(t.buffer,a[s],n[s],t.position,u),c+=H.repeat(" ",e.indent)+et((t.line+1).toString(),p)+" | "+l.str+"\n",c+=H.repeat("-",e.indent+p+3+l.pos)+"^\n",r=1;r<=e.linesAfter;r++){if(s+r>=n.length)break;l=tt(t.buffer,a[s+r],n[s+r],t.position-(a[s]-a[s+r]),u),c+=H.repeat(" ",e.indent)+et((t.line+r+1).toString(),p)+" | "+l.str+"\n"}return c.replace(/\n$/,"")}var ot=it,at=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],nt=["scalar","sequence","mapping"];function st(t){var e={};return null!==t&&Object.keys(t).forEach((function(i){t[i].forEach((function(t){e[String(t)]=i}))})),e}function rt(t,e){if(e=e||{},Object.keys(e).forEach((function(e){if(-1===at.indexOf(e))throw new X('Unknown option "'+e+'" is met in definition of "'+t+'" YAML type.')})),this.options=e,this.tag=t,this.kind=e["kind"]||null,this.resolve=e["resolve"]||function(){return!0},this.construct=e["construct"]||function(t){return t},this.instanceOf=e["instanceOf"]||null,this.predicate=e["predicate"]||null,this.represent=e["represent"]||null,this.representName=e["representName"]||null,this.defaultStyle=e["defaultStyle"]||null,this.multi=e["multi"]||!1,this.styleAliases=st(e["styleAliases"]||null),-1===nt.indexOf(this.kind))throw new X('Unknown kind "'+this.kind+'" is specified for "'+t+'" YAML type.')}var lt=rt;function ct(t,e){var i=[];return t[e].forEach((function(t){var e=i.length;i.forEach((function(i,o){i.tag===t.tag&&i.kind===t.kind&&i.multi===t.multi&&(e=o)})),i[e]=t})),i}function pt(){var t,e,i={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}};function o(t){t.multi?(i.multi[t.kind].push(t),i.multi["fallback"].push(t)):i[t.kind][t.tag]=i["fallback"][t.tag]=t}for(t=0,e=arguments.length;t=0?"0b"+t.toString(2):"-0b"+t.toString(2).slice(1)},octal:function(t){return t>=0?"0o"+t.toString(8):"-0o"+t.toString(8).slice(1)},decimal:function(t){return t.toString(10)},hexadecimal:function(t){return t>=0?"0x"+t.toString(16).toUpperCase():"-0x"+t.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),Ft=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function $t(t){return null!==t&&!(!Ft.test(t)||"_"===t[t.length-1])}function Ot(t){var e,i;return e=t.replace(/_/g,"").toLowerCase(),i="-"===e[0]?-1:1,"+-".indexOf(e[0])>=0&&(e=e.slice(1)),".inf"===e?1===i?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:".nan"===e?NaN:i*parseFloat(e,10)}var It=/^[-+]?[0-9]+e/;function Dt(t,e){var i;if(isNaN(t))switch(e){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===t)switch(e){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===t)switch(e){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(H.isNegativeZero(t))return"-0.0";return i=t.toString(10),It.test(i)?i.replace("e",".e"):i}function Mt(t){return"[object Number]"===Object.prototype.toString.call(t)&&(t%1!==0||H.isNegativeZero(t))}var Lt=new lt("tag:yaml.org,2002:float",{kind:"scalar",resolve:$t,construct:Ot,predicate:Mt,represent:Dt,defaultStyle:"lowercase"}),Gt=gt.extend({implicit:[wt,kt,Et,Lt]}),jt=Gt,Ut=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),zt=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");function Bt(t){return null!==t&&(null!==Ut.exec(t)||null!==zt.exec(t))}function Vt(t){var e,i,o,a,n,s,r,l,c,p,u=0,d=null;if(e=Ut.exec(t),null===e&&(e=zt.exec(t)),null===e)throw new Error("Date resolve error");if(i=+e[1],o=+e[2]-1,a=+e[3],!e[4])return new Date(Date.UTC(i,o,a));if(n=+e[4],s=+e[5],r=+e[6],e[7]){u=e[7].slice(0,3);while(u.length<3)u+="0";u=+u}return e[9]&&(l=+e[10],c=+(e[11]||0),d=6e4*(60*l+c),"-"===e[9]&&(d=-d)),p=new Date(Date.UTC(i,o,a,n,s,r,u)),d&&p.setTime(p.getTime()-d),p}function Wt(t){return t.toISOString()}var qt=new lt("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:Bt,construct:Vt,instanceOf:Date,represent:Wt});function Kt(t){return"<<"===t||null===t}var Zt=new lt("tag:yaml.org,2002:merge",{kind:"scalar",resolve:Kt}),Yt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r";function Ht(t){if(null===t)return!1;var e,i,o=0,a=t.length,n=Yt;for(i=0;i64)){if(e<0)return!1;o+=6}return o%8===0}function Jt(t){var e,i,o=t.replace(/[\r\n=]/g,""),a=o.length,n=Yt,s=0,r=[];for(e=0;e>16&255),r.push(s>>8&255),r.push(255&s)),s=s<<6|n.indexOf(o.charAt(e));return i=a%4*6,0===i?(r.push(s>>16&255),r.push(s>>8&255),r.push(255&s)):18===i?(r.push(s>>10&255),r.push(s>>2&255)):12===i&&r.push(s>>4&255),new Uint8Array(r)}function Qt(t){var e,i,o="",a=0,n=t.length,s=Yt;for(e=0;e>18&63],o+=s[a>>12&63],o+=s[a>>6&63],o+=s[63&a]),a=(a<<8)+t[e];return i=n%3,0===i?(o+=s[a>>18&63],o+=s[a>>12&63],o+=s[a>>6&63],o+=s[63&a]):2===i?(o+=s[a>>10&63],o+=s[a>>4&63],o+=s[a<<2&63],o+=s[64]):1===i&&(o+=s[a>>2&63],o+=s[a<<4&63],o+=s[64],o+=s[64]),o}function Xt(t){return"[object Uint8Array]"===Object.prototype.toString.call(t)}var te=new lt("tag:yaml.org,2002:binary",{kind:"scalar",resolve:Ht,construct:Jt,predicate:Xt,represent:Qt}),ee=Object.prototype.hasOwnProperty,ie=Object.prototype.toString;function oe(t){if(null===t)return!0;var e,i,o,a,n,s=[],r=t;for(e=0,i=r.length;e>10),56320+(t-65536&1023))}for(var Le=new Array(256),Ge=new Array(256),je=0;je<256;je++)Le[je]=De(je)?1:0,Ge[je]=De(je);function Ue(t,e){this.input=t,this.filename=e["filename"]||null,this.schema=e["schema"]||fe,this.onWarning=e["onWarning"]||null,this.legacy=e["legacy"]||!1,this.json=e["json"]||!1,this.listener=e["listener"]||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=t.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function ze(t,e){var i={name:t.filename,buffer:t.input.slice(0,-1),position:t.position,line:t.line,column:t.position-t.lineStart};return i.snippet=ot(i),new X(e,i)}function Be(t,e){throw ze(t,e)}function Ve(t,e){t.onWarning&&t.onWarning.call(null,ze(t,e))}var We={YAML:function(t,e,i){var o,a,n;null!==t.version&&Be(t,"duplication of %YAML directive"),1!==i.length&&Be(t,"YAML directive accepts exactly one argument"),o=/^([0-9]+)\.([0-9]+)$/.exec(i[0]),null===o&&Be(t,"ill-formed argument of the YAML directive"),a=parseInt(o[1],10),n=parseInt(o[2],10),1!==a&&Be(t,"unacceptable YAML version of the document"),t.version=i[0],t.checkLineBreaks=n<2,1!==n&&2!==n&&Ve(t,"unsupported YAML version of the document")},TAG:function(t,e,i){var o,a;2!==i.length&&Be(t,"TAG directive accepts exactly two arguments"),o=i[0],a=i[1],Ae.test(o)||Be(t,"ill-formed tag handle (first argument) of the TAG directive"),he.call(t.tagMap,o)&&Be(t,'there is a previously declared suffix for "'+o+'" tag handle'),Re.test(a)||Be(t,"ill-formed tag prefix (second argument) of the TAG directive");try{a=decodeURIComponent(a)}catch(n){Be(t,"tag prefix is malformed: "+a)}t.tagMap[o]=a}};function qe(t,e,i,o){var a,n,s,r;if(e1&&(t.result+=H.repeat("\n",e-1))}function Xe(t,e,i){var o,a,n,s,r,l,c,p,u,d=t.kind,m=t.result;if(u=t.input.charCodeAt(t.position),Ee(u)||Fe(u)||35===u||38===u||42===u||33===u||124===u||62===u||39===u||34===u||37===u||64===u||96===u)return!1;if((63===u||45===u)&&(a=t.input.charCodeAt(t.position+1),Ee(a)||i&&Fe(a)))return!1;t.kind="scalar",t.result="",n=s=t.position,r=!1;while(0!==u){if(58===u){if(a=t.input.charCodeAt(t.position+1),Ee(a)||i&&Fe(a))break}else if(35===u){if(o=t.input.charCodeAt(t.position-1),Ee(o))break}else{if(t.position===t.lineStart&&Je(t)||i&&Fe(u))break;if(Te(u)){if(l=t.line,c=t.lineStart,p=t.lineIndent,He(t,!1,-1),t.lineIndent>=e){r=!0,u=t.input.charCodeAt(t.position);continue}t.position=s,t.line=l,t.lineStart=c,t.lineIndent=p;break}}r&&(qe(t,n,s,!1),Qe(t,t.line-l),n=s=t.position,r=!1),Pe(u)||(s=t.position+1),u=t.input.charCodeAt(++t.position)}return qe(t,n,s,!1),!!t.result||(t.kind=d,t.result=m,!1)}function ti(t,e){var i,o,a;if(i=t.input.charCodeAt(t.position),39!==i)return!1;t.kind="scalar",t.result="",t.position++,o=a=t.position;while(0!==(i=t.input.charCodeAt(t.position)))if(39===i){if(qe(t,o,t.position,!0),i=t.input.charCodeAt(++t.position),39!==i)return!0;o=t.position,t.position++,a=t.position}else Te(i)?(qe(t,o,a,!0),Qe(t,He(t,!1,e)),o=a=t.position):t.position===t.lineStart&&Je(t)?Be(t,"unexpected end of the document within a single quoted scalar"):(t.position++,a=t.position);Be(t,"unexpected end of the stream within a single quoted scalar")}function ei(t,e){var i,o,a,n,s,r;if(r=t.input.charCodeAt(t.position),34!==r)return!1;t.kind="scalar",t.result="",t.position++,i=o=t.position;while(0!==(r=t.input.charCodeAt(t.position))){if(34===r)return qe(t,i,t.position,!0),t.position++,!0;if(92===r){if(qe(t,i,t.position,!0),r=t.input.charCodeAt(++t.position),Te(r))He(t,!1,e);else if(r<256&&Le[r])t.result+=Ge[r],t.position++;else if((s=Oe(r))>0){for(a=s,n=0;a>0;a--)r=t.input.charCodeAt(++t.position),(s=$e(r))>=0?n=(n<<4)+s:Be(t,"expected hexadecimal character");t.result+=Me(n),t.position++}else Be(t,"unknown escape sequence");i=o=t.position}else Te(r)?(qe(t,i,o,!0),Qe(t,He(t,!1,e)),i=o=t.position):t.position===t.lineStart&&Je(t)?Be(t,"unexpected end of the document within a double quoted scalar"):(t.position++,o=t.position)}Be(t,"unexpected end of the stream within a double quoted scalar")}function ii(t,e){var i,o,a,n,s,r,l,c,p,u,d,m,f,h=!0,g=t.tag,b=t.anchor,v=Object.create(null);if(f=t.input.charCodeAt(t.position),91===f)r=93,p=!1,n=[];else{if(123!==f)return!1;r=125,p=!0,n={}}null!==t.anchor&&(t.anchorMap[t.anchor]=n),f=t.input.charCodeAt(++t.position);while(0!==f){if(He(t,!0,e),f=t.input.charCodeAt(t.position),f===r)return t.position++,t.tag=g,t.anchor=b,t.kind=p?"mapping":"sequence",t.result=n,!0;h?44===f&&Be(t,"expected the node content, but found ','"):Be(t,"missed comma between flow collection entries"),d=u=m=null,l=c=!1,63===f&&(s=t.input.charCodeAt(t.position+1),Ee(s)&&(l=c=!0,t.position++,He(t,!0,e))),i=t.line,o=t.lineStart,a=t.position,ci(t,e,ge,!1,!0),d=t.tag,u=t.result,He(t,!0,e),f=t.input.charCodeAt(t.position),!c&&t.line!==i||58!==f||(l=!0,f=t.input.charCodeAt(++t.position),He(t,!0,e),ci(t,e,ge,!1,!0),m=t.result),p?Ze(t,n,v,d,u,m,i,o,a):l?n.push(Ze(t,null,v,d,u,m,i,o,a)):n.push(u),He(t,!0,e),f=t.input.charCodeAt(t.position),44===f?(h=!0,f=t.input.charCodeAt(++t.position)):h=!1}Be(t,"unexpected end of the stream within a flow collection")}function oi(t,e){var i,o,a,n,s=we,r=!1,l=!1,c=e,p=0,u=!1;if(n=t.input.charCodeAt(t.position),124===n)o=!1;else{if(62!==n)return!1;o=!0}t.kind="scalar",t.result="";while(0!==n)if(n=t.input.charCodeAt(++t.position),43===n||45===n)we===s?s=43===n?xe:Se:Be(t,"repeat of a chomping mode identifier");else{if(!((a=Ie(n))>=0))break;0===a?Be(t,"bad explicit indentation width of a block scalar; it cannot be less than one"):l?Be(t,"repeat of an indentation width identifier"):(c=e+a-1,l=!0)}if(Pe(n)){do{n=t.input.charCodeAt(++t.position)}while(Pe(n));if(35===n)do{n=t.input.charCodeAt(++t.position)}while(!Te(n)&&0!==n)}while(0!==n){Ye(t),t.lineIndent=0,n=t.input.charCodeAt(t.position);while((!l||t.lineIndentc&&(c=t.lineIndent),Te(n))p++;else{if(t.lineIndente)&&0!==a)Be(t,"bad indentation of a sequence entry");else if(t.lineIndente)&&(b&&(s=t.line,r=t.lineStart,l=t.position),ci(t,e,ye,!0,a)&&(b?h=t.result:g=t.result),b||(Ze(t,d,m,f,h,g,s,r,l),f=h=g=null),He(t,!0,-1),c=t.input.charCodeAt(t.position)),(t.line===n||t.lineIndent>e)&&0!==c)Be(t,"bad indentation of a mapping entry");else if(t.lineIndente?f=1:t.lineIndent===e?f=0:t.lineIndente?f=1:t.lineIndent===e?f=0:t.lineIndent tag; it should be "scalar", not "'+t.kind+'"'),l=0,c=t.implicitTypes.length;l"),null!==t.result&&u.kind!==t.kind&&Be(t,"unacceptable node kind for !<"+t.tag+'> tag; it should be "'+u.kind+'", not "'+t.kind+'"'),u.resolve(t.result,t.tag)?(t.result=u.construct(t.result,t.tag),null!==t.anchor&&(t.anchorMap[t.anchor]=t.result)):Be(t,"cannot resolve a node with !<"+t.tag+"> explicit tag")}return null!==t.listener&&t.listener("close",t),null!==t.tag||null!==t.anchor||g}function pi(t){var e,i,o,a,n=t.position,s=!1;t.version=null,t.checkLineBreaks=t.legacy,t.tagMap=Object.create(null),t.anchorMap=Object.create(null);while(0!==(a=t.input.charCodeAt(t.position))){if(He(t,!0,-1),a=t.input.charCodeAt(t.position),t.lineIndent>0||37!==a)break;s=!0,a=t.input.charCodeAt(++t.position),e=t.position;while(0!==a&&!Ee(a))a=t.input.charCodeAt(++t.position);i=t.input.slice(e,t.position),o=[],i.length<1&&Be(t,"directive name must not be less than one character in length");while(0!==a){while(Pe(a))a=t.input.charCodeAt(++t.position);if(35===a){do{a=t.input.charCodeAt(++t.position)}while(0!==a&&!Te(a));break}if(Te(a))break;e=t.position;while(0!==a&&!Ee(a))a=t.input.charCodeAt(++t.position);o.push(t.input.slice(e,t.position))}0!==a&&Ye(t),he.call(We,i)?We[i](t,i,o):Ve(t,'unknown document directive "'+i+'"')}He(t,!0,-1),0===t.lineIndent&&45===t.input.charCodeAt(t.position)&&45===t.input.charCodeAt(t.position+1)&&45===t.input.charCodeAt(t.position+2)?(t.position+=3,He(t,!0,-1)):s&&Be(t,"directives end mark is expected"),ci(t,t.lineIndent-1,ye,!1,!0),He(t,!0,-1),t.checkLineBreaks&&ke.test(t.input.slice(n,t.position))&&Ve(t,"non-ASCII line breaks are interpreted as content"),t.documents.push(t.result),t.position===t.lineStart&&Je(t)?46===t.input.charCodeAt(t.position)&&(t.position+=3,He(t,!0,-1)):t.position=55296&&o<=56319&&e+1=56320&&i<=57343)?1024*(o-55296)+i-56320+65536:o}function lo(t){var e=/^\n* /;return e.test(t)}var co=1,po=2,uo=3,mo=4,fo=5;function ho(t,e,i,o,a,n,s,r){var l,c=0,p=null,u=!1,d=!1,m=-1!==o,f=-1,h=no(ro(t,0))&&so(ro(t,t.length-1));if(e||s)for(l=0;l=65536?l+=2:l++){if(c=ro(t,l),!io(c))return fo;h=h&&ao(c,p,r),p=c}else{for(l=0;l=65536?l+=2:l++){if(c=ro(t,l),c===Si)u=!0,m&&(d=d||l-f-1>o&&" "!==t[f+1],f=l);else if(!io(c))return fo;h=h&&ao(c,p,r),p=c}d=d||m&&l-f-1>o&&" "!==t[f+1]}return u||d?i>9&&lo(t)?fo:s?n===Hi?fo:po:d?mo:uo:!h||s||a(t)?n===Hi?fo:po:co}function go(t,e,i,o,a){t.dump=function(){if(0===e.length)return t.quotingType===Hi?'""':"''";if(!t.noCompatMode&&(-1!==Wi.indexOf(e)||qi.test(e)))return t.quotingType===Hi?'"'+e+'"':"'"+e+"'";var n=t.indent*Math.max(1,i),s=-1===t.lineWidth?-1:Math.max(Math.min(t.lineWidth,40),t.lineWidth-n),r=o||t.flowLevel>-1&&i>=t.flowLevel;function l(e){return to(t,e)}switch(ho(e,r,t.indent,s,l,t.quotingType,t.forceQuotes&&!o,a)){case co:return e;case po:return"'"+e.replace(/'/g,"''")+"'";case uo:return"|"+bo(e,t.indent)+vo(Qi(e,n));case mo:return">"+bo(e,t.indent)+vo(Qi(yo(e,s),n));case fo:return'"'+So(e)+'"';default:throw new X("impossible error: invalid scalar style")}}()}function bo(t,e){var i=lo(t)?String(e):"",o="\n"===t[t.length-1],a=o&&("\n"===t[t.length-2]||"\n"===t),n=a?"+":o?"":"-";return i+n+"\n"}function vo(t){return"\n"===t[t.length-1]?t.slice(0,-1):t}function yo(t,e){var i,o,a=/(\n+)([^\n]*)/g,n=function(){var i=t.indexOf("\n");return i=-1!==i?i:t.length,a.lastIndex=i,wo(t.slice(0,i),e)}(),s="\n"===t[0]||" "===t[0];while(o=a.exec(t)){var r=o[1],l=o[2];i=" "===l[0],n+=r+(s||i||""===l?"":"\n")+wo(l,e),s=i}return n}function wo(t,e){if(""===t||" "===t[0])return t;var i,o,a=/ [^ ]/g,n=0,s=0,r=0,l="";while(i=a.exec(t))r=i.index,r-n>e&&(o=s>n?s:r,l+="\n"+t.slice(n,o),n=o+1),s=r;return l+="\n",t.length-n>e&&s>n?l+=t.slice(n,s)+"\n"+t.slice(s+1):l+=t.slice(n),l.slice(1)}function So(t){for(var e,i="",o=0,a=0;a=65536?a+=2:a++)o=ro(t,a),e=Vi[o],!e&&io(o)?(i+=t[a],o>=65536&&(i+=t[a+1])):i+=e||Zi(o);return i}function xo(t,e,i){var o,a,n,s="",r=t.tag;for(o=0,a=i.length;o1024&&(r+="? "),r+=t.dump+(t.condenseFlow?'"':"")+":"+(t.condenseFlow?"":" "),Ro(t,e,s,!1,!1)&&(r+=t.dump,l+=r));t.tag=c,t.dump="{"+l+"}"}function _o(t,e,i,o){var a,n,s,r,l,c,p="",u=t.tag,d=Object.keys(i);if(!0===t.sortKeys)d.sort();else if("function"===typeof t.sortKeys)d.sort(t.sortKeys);else if(t.sortKeys)throw new X("sortKeys must be a boolean or a function");for(a=0,n=d.length;a1024,l&&(t.dump&&Si===t.dump.charCodeAt(0)?c+="?":c+="? "),c+=t.dump,l&&(c+=Xi(t,e)),Ro(t,e+1,r,!0,l)&&(t.dump&&Si===t.dump.charCodeAt(0)?c+=":":c+=": ",c+=t.dump,p+=c));t.tag=u,t.dump=p||"{}"}function Ao(t,e,i){var o,a,n,s,r,l;for(a=i?t.explicitTypes:t.implicitTypes,n=0,s=a.length;n tag resolver accepts not "'+l+'" style');o=r.represent[l](e,l)}t.dump=o}return!0}return!1}function Ro(t,e,i,o,a,n,s){t.tag=null,t.dump=i,Ao(t,i,!1)||Ao(t,i,!0);var r,l=bi.call(t.dump),c=o;o&&(o=t.flowLevel<0||t.flowLevel>e);var p,u,d="[object Object]"===l||"[object Array]"===l;if(d&&(p=t.duplicates.indexOf(i),u=-1!==p),(null!==t.tag&&"?"!==t.tag||u||2!==t.indent&&e>0)&&(a=!1),u&&t.usedDuplicates[p])t.dump="*ref_"+p;else{if(d&&u&&!t.usedDuplicates[p]&&(t.usedDuplicates[p]=!0),"[object Object]"===l)o&&0!==Object.keys(t.dump).length?(_o(t,e,t.dump,a),u&&(t.dump="&ref_"+p+t.dump)):(ko(t,e,t.dump),u&&(t.dump="&ref_"+p+" "+t.dump));else if("[object Array]"===l)o&&0!==t.dump.length?(t.noArrayIndent&&!s&&e>0?Co(t,e-1,t.dump,a):Co(t,e,t.dump,a),u&&(t.dump="&ref_"+p+t.dump)):(xo(t,e,t.dump),u&&(t.dump="&ref_"+p+" "+t.dump));else{if("[object String]"!==l){if("[object Undefined]"===l)return!1;if(t.skipInvalid)return!1;throw new X("unacceptable kind of an object to dump "+l)}"?"!==t.tag&&go(t,t.dump,e,n,c)}null!==t.tag&&"?"!==t.tag&&(r=encodeURI("!"===t.tag[0]?t.tag.slice(1):t.tag).replace(/!/g,"%21"),r="!"===t.tag[0]?"!"+r:"tag:yaml.org,2002:"===r.slice(0,18)?"!!"+r.slice(18):"!<"+r+">",t.dump=r+" "+t.dump)}return!0}function No(t,e){var i,o,a=[],n=[];for(To(t,a,n),i=0,o=n.length;it.value===this.appRegistrationSpecification.expire));if(t){const e=this.timestamp+t.time;return e}const e=this.appRegistrationSpecification.expire,i=12e4,o=e*i,a=this.timestamp+o;return a}const t=this.timestamp+2592e6;return t},callbackValue(){const{protocol:t,hostname:e,port:i}=window.location;let o="";o+=t,o+="//";const a=/[A-Za-z]/g;if(e.split("-")[4]){const t=e.split("-"),i=t[4].split("."),a=+i[0]+1;i[0]=a.toString(),i[2]="api",t[4]="",o+=t.join("-"),o+=i.join(".")}else if(e.match(a)){const t=e.split(".");t[0]="api",o+=t.join(".")}else{if("string"===typeof e&&this.$store.commit("flux/setUserIp",e),+i>16100){const t=+i+1;this.$store.commit("flux/setFluxPort",t)}o+=e,o+=":",o+=this.config.apiPort}const n=aa.get("backendURL")||o,s=`${n}/id/providesign`;return encodeURI(s)},getExpireLabel(){return this.expireOptions[this.expirePosition]?this.expireOptions[this.expirePosition].label:null},immutableAppSpecs(){return JSON.stringify(this.appRegistrationSpecification)}},watch:{immutableAppSpecs:{handler(){this.dataToSign="",this.signature="",this.timestamp=null,this.dataForAppRegistration={},this.registrationHash="",this.output=[],this.testError=!1,this.testFinished=!1,null!==this.websocket&&(this.websocket.close(),this.websocket=null)}},expirePosition:{handler(){this.dataToSign="",this.signature="",this.timestamp=null,this.dataForAppRegistration={},this.registrationHash="",this.output=[],this.testError=!1,this.testFinished=!1,null!==this.websocket&&(this.websocket.close(),this.websocket=null)}},isPrivateApp(t){console.log(t),this.appRegistrationSpecification.version>=7&&!1===t&&(this.appRegistrationSpecification.nodes=[],this.appRegistrationSpecification.compose.forEach((t=>{t.secrets="",t.repoauth=""})),this.selectedEnterpriseNodes=[]),this.allowedGeolocations={},this.forbiddenGeolocations={},this.dataToSign="",this.signature="",this.timestamp=null,this.dataForAppRegistration={},this.registrationHash="",null!==this.websocket&&(this.websocket.close(),this.websocket=null)}},beforeMount(){this.appRegistrationSpecification=this.appRegistrationSpecificationV7Template},mounted(){const{hostname:t}=window.location,e=/[A-Za-z]/g;t.match(e)?this.ipAccess=!1:this.ipAccess=!0,this.initMMSDK(),this.getGeolocationData(),this.getDaemonInfo(),this.appsDeploymentInformation(),this.getFluxnodeStatus(),this.getMultiplier(),this.getEnterpriseNodes();const i=localStorage.getItem("zelidauth"),o=ia.parse(i);this.appRegistrationSpecification.owner=o.zelid,this.$router.currentRoute.params.appspecs&&this.importSpecs(this.$router.currentRoute.params.appspecs),o.zelid?this.appRegistrationSpecification.owner=o.zelid:this.showToast("warning","Please log in first before registering an application")},methods:{async initMMSDK(){try{await ta.init(),ea=ta.getProvider()}catch(t){console.log(t)}},onFilteredSelection(t){this.entNodesSelectTable.totalRows=t.length,this.entNodesSelectTable.currentPage=1},getExpirePosition(t){const e=this.expireOptions.findIndex((e=>e.value===t));return e||0===e?e:2},decodeGeolocation(t){console.log(t);let e=!1;t.forEach((t=>{t.startsWith("b")&&(e=!0),t.startsWith("a")&&t.startsWith("ac")&&t.startsWith("a!c")&&(e=!0)}));let i=t;if(e){const e=t.find((t=>t.startsWith("a")&&t.startsWith("ac")&&t.startsWith("a!c"))),o=t.find((t=>t.startsWith("b")));let a=`ac${e.slice(1)}`;o&&(a+=`_${o.slice(1)}`),i=[a]}const o=i.filter((t=>t.startsWith("ac"))),a=i.filter((t=>t.startsWith("a!c")));for(let n=1;n=1&&(this.generalMultiplier=t.data.data)}catch(t){this.generalMultiplier=10,console.log(t)}},convertExpire(){return this.expireOptions[this.expirePosition]?this.expireOptions[this.expirePosition].value:22e3},async checkFluxSpecificationsAndFormatMessage(){try{if(!this.tosAgreed)throw new Error("Please agree to Terms of Service");if(this.appRegistrationSpecification.compose.find((t=>t.repotag.toLowerCase().includes("presearch/node")||t.repotag.toLowerCase().includes("thijsvanloef/palworld-server-docker"))))throw new Error("This application is configured and needs to be bought directly from marketplace.");this.operationTitle=" Compute registration message...",this.progressVisable=!0;const t=this.appRegistrationSpecification;let e=!1;if(t.version>=7&&(this.constructNodes(),this.appRegistrationSpecification.compose.forEach((t=>{if((t.repoauth||t.secrets)&&(e=!0,!this.appRegistrationSpecification.nodes.length))throw new Error("Private repositories and secrets can only run on Enterprise Nodes")}))),e){this.showToast("info","Encrypting specifications, this will take a while...");const t=[];for(const e of this.appRegistrationSpecification.nodes){const i=this.enterprisePublicKeys.find((t=>t.nodeip===e));if(i)t.push(i.nodekey);else{const i=await this.fetchEnterpriseKey(e);if(i){const o={nodeip:e.ip,nodekey:i},a=this.enterprisePublicKeys.find((t=>t.nodeip===e.ip));a||this.enterprisePublicKeys.push(o),t.push(i)}}}for(const e of this.appRegistrationSpecification.compose){if(e.environmentParameters=e.environmentParameters.replace("\\“",'\\"'),e.commands=e.commands.replace("\\“",'\\"'),e.domains=e.domains.replace("\\“",'\\"'),e.secrets&&!e.secrets.startsWith("-----BEGIN PGP MESSAGE")){e.secrets=e.secrets.replace("\\“",'\\"');const i=await this.encryptMessage(e.secrets,t);if(!i)return;e.secrets=i}if(e.repoauth&&!e.repoauth.startsWith("-----BEGIN PGP MESSAGE")){const i=await this.encryptMessage(e.repoauth,t);if(!i)return;e.repoauth=i}}}e&&this.appRegistrationSpecification.compose.forEach((t=>{if(t.secrets&&!t.secrets.startsWith("-----BEGIN PGP MESSAGE"))throw new Error("Encryption failed");if(t.repoauth&&!t.repoauth.startsWith("-----BEGIN PGP MESSAGE"))throw new Error("Encryption failed")})),t.version>=5&&(t.geolocation=this.generateGeolocations()),t.version>=6&&(t.expire=this.convertExpire());const i=await A.Z.appRegistrationVerificaiton(t);if("error"===i.data.status)throw new Error(i.data.data.message||i.data.data);const o=i.data.data;this.applicationPrice=0,this.applicationPriceUSD=0,this.applicationPriceFluxDiscount="",this.applicationPriceFluxError=!1;const a=await A.Z.appPriceUSDandFlux(o);if("error"===a.data.status)throw new Error(a.data.data.message||a.data.data);this.applicationPriceUSD=+a.data.data.usd,Number.isNaN(+a.data.data.fluxDiscount)?(this.applicationPriceFluxError=!0,this.showToast("danger","Not possible to complete payment with Flux crypto currency")):(this.applicationPrice=+a.data.data.flux,this.applicationPriceFluxDiscount=+a.data.data.fluxDiscount),this.progressVisable=!1,this.timestamp=Date.now(),this.dataForAppRegistration=o,this.dataToSign=this.registrationtype+this.version+JSON.stringify(o)+this.timestamp,this.$nextTick((()=>{this.isElementInViewport(this.$refs.signContainer)||this.$refs.signContainer.scrollIntoView({behavior:"smooth"})}))}catch(t){this.progressVisable=!1,console.log(t),this.showToast("danger",t.message||t)}},async getDaemonInfo(){this.specificationVersion=7,this.composeTemplate=this.composeTemplatev7,this.appRegistrationSpecification=this.appRegistrationSpecificationV7Template,this.appRegistrationSpecification.compose.forEach((t=>{const e=this.getRandomPort();t.ports=e,t.domains='[""]'}));const t=localStorage.getItem("zelidauth"),e=ia.parse(t);this.appRegistrationSpecification.owner=e.zelid},async initSignFluxSSO(){try{const t=this.dataToSign,e=(0,O.PR)();if(!e)return void this.showToast("warning","Not logged in as SSO. Login with SSO or use different signing method.");const i=e.auth.currentUser.accessToken,o={"Content-Type":"application/json",Authorization:`Bearer ${i}`},a=await oa.post("https://service.fluxcore.ai/api/signMessage",{message:t},{headers:o});if("success"!==a.data?.status&&a.data?.signature)return void this.showToast("warning","Failed to sign message, please try again.");this.signature=a.data.signature}catch(t){this.showToast("warning","Failed to sign message, please try again.")}},async initiateSignWS(){if(this.dataToSign.length>1800){const t=this.dataToSign,e={publicid:Math.floor(999999999999999*Math.random()).toString(),public:t};await oa.post("https://storage.runonflux.io/v1/public",e);const i=`zel:?action=sign&message=FLUX_URL=https://storage.runonflux.io/v1/public/${e.publicid}&icon=https%3A%2F%2Fraw.githubusercontent.com%2Frunonflux%2Fflux%2Fmaster%2FzelID.svg&callback=${this.callbackValue}`;window.location.href=i}else window.location.href=`zel:?action=sign&message=${this.dataToSign}&icon=https%3A%2F%2Fraw.githubusercontent.com%2Frunonflux%2Fflux%2Fmaster%2FzelID.svg&callback=${this.callbackValue}`;const t=this,{protocol:e,hostname:i,port:o}=window.location;let a="";a+=e,a+="//";const n=/[A-Za-z]/g;if(i.split("-")[4]){const t=i.split("-"),e=t[4].split("."),o=+e[0]+1;e[0]=o.toString(),e[2]="api",t[4]="",a+=t.join("-"),a+=e.join(".")}else if(i.match(n)){const t=i.split(".");t[0]="api",a+=t.join(".")}else{if("string"===typeof i&&this.$store.commit("flux/setUserIp",i),+o>16100){const t=+o+1;this.$store.commit("flux/setFluxPort",t)}a+=i,a+=":",a+=this.config.apiPort}let s=aa.get("backendURL")||a;s=s.replace("https://","wss://"),s=s.replace("http://","ws://");const r=this.appRegistrationSpecification.owner+this.timestamp,l=`${s}/ws/sign/${r}`,c=new WebSocket(l);this.websocket=c,c.onopen=e=>{t.onOpen(e)},c.onclose=e=>{t.onClose(e)},c.onmessage=e=>{t.onMessage(e)},c.onerror=e=>{t.onError(e)}},onError(t){console.log(t)},onMessage(t){const e=ia.parse(t.data);"success"===e.status&&e.data&&(this.signature=e.data.signature),console.log(e),console.log(t)},onClose(t){console.log(t)},onOpen(t){console.log(t)},async register(){const t=localStorage.getItem("zelidauth"),e={type:this.registrationtype,version:this.version,appSpecification:this.dataForAppRegistration,timestamp:this.timestamp,signature:this.signature};this.progressVisable=!0,this.operationTitle="Propagating message accross Flux network...";const i=await A.Z.registerApp(t,e).catch((t=>{this.showToast("danger",t.message||t)}));console.log(i),"success"===i.data.status?(this.registrationHash=i.data.data,this.showToast("success",i.data.data.message||i.data.data)):this.showToast("danger",i.data.data.message||i.data.data);const o=await(0,I.Z)();o&&(this.stripeEnabled=o.stripe,this.paypalEnabled=o.paypal),this.progressVisable=!1},async appsDeploymentInformation(){const t=await A.Z.appsDeploymentInformation(),{data:e}=t.data;"success"===t.data.status?(this.deploymentAddress=e.address,this.minInstances=e.minimumInstances,this.maxInstances=e.maximumInstances):this.showToast("danger",t.data.data.message||t.data.data)},addCopmonent(){const t=this.getRandomPort();this.composeTemplate.ports=t,this.composeTemplate.domains='[""]',this.appRegistrationSpecification.compose.push(JSON.parse(JSON.stringify(this.composeTemplate)))},removeComponent(t){this.appRegistrationSpecification.compose.splice(t,1)},getRandomPort(){const t=31001,e=39998,i=[],o=Math.floor(Math.random()*(e-t)+t);return i.push(o),JSON.stringify(i)},ensureBoolean(t){let e;return"false"!==t&&0!==t&&"0"!==t&&!1!==t||(e=!1),"true"!==t&&1!==t&&"1"!==t&&!0!==t||(e=!0),e},ensureNumber(t){return"number"===typeof t?t:Number(t)},ensureObject(t){if("object"===typeof t)return t;let e;try{e=JSON.parse(t)}catch(i){e=ia.parse(t)}return e},ensureString(t){return"string"===typeof t?t:JSON.stringify(t)},showToast(t,e,i="InfoIcon"){this.$toast({component:_.Z,props:{title:e,icon:i,variant:t}})},async getGeolocationData(){let t=[];try{ra.continents.forEach((e=>{t.push({value:e.code,instances:e.available?100:0})})),ra.countries.forEach((e=>{t.push({value:`${e.continent}_${e.code}`,instances:e.available?100:0})}));const e=await oa.get("https://stats.runonflux.io/fluxinfo?projection=geo");if("success"===e.data.status){const i=e.data.data;i.length>5e3&&(t=[],i.forEach((e=>{if(e.geolocation&&e.geolocation.continentCode&&e.geolocation.regionName&&e.geolocation.countryCode){const i=e.geolocation.continentCode,o=`${i}_${e.geolocation.countryCode}`,a=`${o}_${e.geolocation.regionName}`,n=t.find((t=>t.value===i));n?n.instances+=1:t.push({value:i,instances:1});const s=t.find((t=>t.value===o));s?s.instances+=1:t.push({value:o,instances:1});const r=t.find((t=>t.value===a));r?r.instances+=1:t.push({value:a,instances:1})}})))}else this.showToast("info","Failed to get geolocation data from FluxStats, Using stored locations")}catch(e){console.log(e),this.showToast("info","Failed to get geolocation data from FluxStats, Using stored locations")}this.possibleLocations=t},continentsOptions(t){const e=[{value:t?"NONE":"ALL",text:t?"NONE":"ALL"}];return this.possibleLocations.filter((e=>e.instances>(t?-1:3))).forEach((t=>{if(!t.value.includes("_")){const i=ra.continents.find((e=>e.code===t.value));e.push({value:t.value,text:i?i.name:t.value})}})),e},countriesOptions(t,e){const i=[{value:"ALL",text:"ALL"}];return this.possibleLocations.filter((t=>t.instances>(e?-1:3))).forEach((e=>{if(!e.value.split("_")[2]&&e.value.startsWith(`${t}_`)){const t=ra.countries.find((t=>t.code===e.value.split("_")[1]));i.push({value:e.value.split("_")[1],text:t?t.name:e.value.split("_")[1]})}})),i},regionsOptions(t,e,i){const o=[{value:"ALL",text:"ALL"}];return this.possibleLocations.filter((t=>t.instances>(i?-1:3))).forEach((i=>{i.value.startsWith(`${t}_${e}_`)&&o.push({value:i.value.split("_")[2],text:i.value.split("_")[2]})})),o},generateGeolocations(){const t=[];for(let e=1;et.startsWith("ac")));console.log(t);let i=0;e.forEach((t=>{const e=this.possibleLocations.find((e=>e.value===t.slice(2)));e&&(i+=e.instances),"ALL"===t&&(i+=100)})),e.length||(i+=100),console.log(i),i=i>3?i:3;const o=i>100?100:i;this.maxInstances=o},stringOutput(){let t="";return this.output.forEach((e=>{"success"===e.status?t+=`${e.data.message||e.data}\r\n`:"Downloading"===e.status?(this.downloadOutputReturned=!0,this.downloadOutput[e.id]={id:e.id,detail:e.progressDetail,variant:"danger"}):"Verifying Checksum"===e.status?(this.downloadOutputReturned=!0,this.downloadOutput[e.id]={id:e.id,detail:{current:1,total:1},variant:"warning"}):"Download complete"===e.status?(this.downloadOutputReturned=!0,this.downloadOutput[e.id]={id:e.id,detail:{current:1,total:1},variant:"info"}):"Extracting"===e.status?(this.downloadOutputReturned=!0,this.downloadOutput[e.id]={id:e.id,detail:e.progressDetail,variant:"primary"}):"Pull complete"===e.status?(this.downloadOutputReturned=!0,this.downloadOutput[e.id]={id:e.id,detail:{current:1,total:1},variant:"success"}):"error"===e.status?t+=`Error: ${JSON.stringify(e.data)}\r\n`:t+=`${e.status}\r\n`})),t},async testAppInstall(t){if(this.downloading)return void this.showToast("danger","Test install/launch was already initiated");const e=this;this.output=[],this.downloadOutput={},this.downloadOutputReturned=!1,this.downloading=!0,this.testError=!1,this.testFinished=!1,this.showToast("warning",`Testing ${t} installation, please wait`);const i=localStorage.getItem("zelidauth"),o={headers:{zelidauth:i},onDownloadProgress(t){console.log(t.event.target.response),e.output=JSON.parse(`[${t.event.target.response.replace(/}{/g,"},{")}]`)}};let a;try{if(this.appRegistrationSpecification.nodes.length>0){const e=this.appRegistrationSpecification.nodes[Math.floor(Math.random()*this.appRegistrationSpecification.nodes.length)],i=e.split(":")[0],n=Number(e.split(":")[1]||16127),s=`https://${i.replace(/\./g,"-")}-${n}.node.api.runonflux.io/apps/testappinstall/${t}`;a=await oa.get(s,o)}else a=await A.Z.justAPI().get(`/apps/testappinstall/${t}`,o);if("error"===a.data.status)this.showToast("danger",a.data.data.message||a.data.data),this.testError=!0;else{console.log(a),this.output=JSON.parse(`[${a.data.replace(/}{/g,"},{")}]`),console.log(this.output);for(let t=0;te.ip===t));e>-1&&this.selectedEnterpriseNodes.splice(e,1)},async addFluxNode(t){try{const e=this.selectedEnterpriseNodes.find((e=>e.ip===t));if(console.log(t),!e){const e=this.enterpriseNodes.find((e=>e.ip===t));this.selectedEnterpriseNodes.push(e),console.log(this.selectedEnterpriseNodes);const i=this.enterprisePublicKeys.find((e=>e.nodeip===t));if(!i){const e=await this.fetchEnterpriseKey(t);if(e){const i={nodeip:t,nodekey:e},o=this.enterprisePublicKeys.find((e=>e.nodeip===t));o||this.enterprisePublicKeys.push(i)}}}}catch(e){console.log(e)}},async autoSelectNodes(){const{instances:t}=this.appRegistrationSpecification,e=+t+3,i=+t+Math.ceil(Math.max(7,.15*+t)),o=this.enterpriseNodes.filter((t=>!this.selectedEnterpriseNodes.includes(t))),a=[],n=o.filter((t=>t.enterprisePoints>0&&t.score>1e3));for(let s=0;st.pubkey===n[s].pubkey)).length,o=a.filter((t=>t.pubkey===n[s].pubkey)).length;if(t+o=i)break}if(a.length{const e=this.selectedEnterpriseNodes.find((e=>e.ip===t.ip));if(!e){this.selectedEnterpriseNodes.push(t);const e=this.enterprisePublicKeys.find((e=>e.nodeip===t.ip));if(!e){const e=await this.fetchEnterpriseKey(t.ip);if(e){const i={nodeip:t.ip,nodekey:e},o=this.enterprisePublicKeys.find((e=>e.nodeip===t.ip));o||this.enterprisePublicKeys.push(i)}}}}))},constructNodes(){if(this.appRegistrationSpecification.nodes=[],this.selectedEnterpriseNodes.forEach((t=>{this.appRegistrationSpecification.nodes.push(t.ip)})),this.appRegistrationSpecification.nodes.length>this.maximumEnterpriseNodes)throw new Error("Maximum of 120 Enterprise Nodes allowed")},async getEnterpriseNodes(){const t=sessionStorage.getItem("flux_enterprise_nodes");t&&(this.enterpriseNodes=JSON.parse(t),this.entNodesSelectTable.totalRows=this.enterpriseNodes.length);try{const t=await A.Z.getEnterpriseNodes();"error"===t.data.status?this.showToast("danger",t.data.data.message||t.data.data):(this.enterpriseNodes=t.data.data,this.entNodesSelectTable.totalRows=this.enterpriseNodes.length,sessionStorage.setItem("flux_enterprise_nodes",JSON.stringify(this.enterpriseNodes)))}catch(e){console.log(e)}},async fetchEnterpriseKey(t){try{const e=t.split(":")[0],i=Number(t.split(":")[1]||16127);let o=`https://${e.replace(/\./g,"-")}-${i}.node.api.runonflux.io/flux/pgp`;this.ipAccess&&(o=`http://${e}:${i}/flux/pgp`);const a=await oa.get(o);if("error"!==a.data.status){const t=a.data.data;return t}return this.showToast("danger",a.data.data.message||a.data.data),null}catch(e){return console.log(e),null}},async encryptMessage(t,e){try{const i=await Promise.all(e.map((t=>na.readKey({armoredKey:t}))));console.log(e),console.log(t);const o=await na.createMessage({text:t.replace("\\“",'\\"')}),a=await na.encrypt({message:o,encryptionKeys:i});return a}catch(i){return this.showToast("danger","Data encryption failed"),null}},async onSessionConnect(t){console.log(t);const e=await this.signClient.request({topic:t.topic,chainId:"eip155:1",request:{method:"personal_sign",params:[this.dataToSign,t.namespaces.eip155.accounts[0].split(":")[2]]}});console.log(e),this.signature=e},async initWalletConnect(){try{const t=await P.ZP.init(Qo);this.signClient=t;const e=t.session.getAll().length-1,i=t.session.getAll()[e];if(!i)throw new Error("WalletConnect session expired. Please log into FluxOS again");this.onSessionConnect(i)}catch(t){console.error(t),this.showToast("danger",t.message)}},async siwe(t,e){try{const i=`0x${Ho.from(t,"utf8").toString("hex")}`,o=await ea.request({method:"personal_sign",params:[i,e]});console.log(o),this.signature=o}catch(i){console.error(i),this.showToast("danger",i.message)}},async initMetamask(){try{if(!ea)return void this.showToast("danger","Metamask not detected");let t;if(ea&&!ea.selectedAddress){const e=await ea.request({method:"eth_requestAccounts",params:[]});console.log(e),t=e[0]}else t=ea.selectedAddress;this.siwe(this.dataToSign,t)}catch(t){this.showToast("danger",t.message)}},async initSSP(){try{if(!window.ssp)return void this.showToast("danger","SSP Wallet not installed");const t=await window.ssp.request("sspwid_sign_message",{message:this.dataToSign});if("ERROR"===t.status)throw new Error(t.data||t.result);this.signature=t.signature}catch(t){this.showToast("danger",t.message)}},async initSSPpay(){try{if(!window.ssp)return void this.showToast("danger","SSP Wallet not installed");const t={message:this.registrationHash,amount:(+this.applicationPrice||0).toString(),address:this.deploymentAddress,chain:"flux"},e=await window.ssp.request("pay",t);if("ERROR"===e.status)throw new Error(e.data||e.result);this.showToast("success",`${e.data}: ${e.txid}`)}catch(t){this.showToast("danger",t.message)}},async initStripePay(t,e,i,o){try{this.fiatCheckoutURL="",this.checkoutLoading=!0;const n=localStorage.getItem("zelidauth"),s=ia.parse(n),r={zelid:s.zelid,signature:s.signature,loginPhrase:s.loginPhrase,details:{name:e,description:o,hash:t,price:i,productName:e,success_url:"https://home.runonflux.io/successcheckout",cancel_url:"https://home.runonflux.io",kpi:{origin:"FluxOS",marketplace:!1,registration:!0}}},l=await oa.post(`${I.M}/api/v1/stripe/checkout/create`,r);if("error"===l.data.status)return this.showToast("error","Failed to create stripe checkout"),void(this.checkoutLoading=!1);this.fiatCheckoutURL=l.data.data,this.checkoutLoading=!1;try{this.openSite(l.data.data)}catch(a){console.log(a),this.showToast("error","Failed to open Stripe checkout, pop-up blocked?")}}catch(a){console.log(a),this.showToast("error","Failed to create stripe checkout"),this.checkoutLoading=!1}},async initPaypalPay(t,e,i,o){try{this.fiatCheckoutURL="",this.checkoutLoading=!0;let n=null,s=await oa.get("https://api.ipify.org?format=json").catch((()=>{console.log("Error geting clientIp from api.ipify.org from")}));s&&s.data&&s.data.ip?n=s.data.ip:(s=await oa.get("https://ipinfo.io").catch((()=>{console.log("Error geting clientIp from ipinfo.io from")})),s&&s.data&&s.data.ip?n=s.data.ip:(s=await oa.get("https://api.ip2location.io").catch((()=>{console.log("Error geting clientIp from api.ip2location.io from")})),s&&s.data&&s.data.ip&&(n=s.data.ip)));const r=localStorage.getItem("zelidauth"),l=ia.parse(r),c={zelid:l.zelid,signature:l.signature,loginPhrase:l.loginPhrase,details:{clientIP:n,name:e,description:o,hash:t,price:i,productName:e,return_url:"home.runonflux.io/successcheckout",cancel_url:"home.runonflux.io",kpi:{origin:"FluxOS",marketplace:!1,registration:!0}}},p=await oa.post(`${I.M}/api/v1/paypal/checkout/create`,c);if("error"===p.data.status)return this.showToast("error","Failed to create PayPal checkout"),void(this.checkoutLoading=!1);this.fiatCheckoutURL=p.data.data,this.checkoutLoading=!1;try{this.openSite(p.data.data)}catch(a){console.log(a),this.showToast("error","Failed to open Paypal checkout, pop-up blocked?")}}catch(a){console.log(a),this.showToast("error","Failed to create PayPal checkout"),this.checkoutLoading=!1}},importSpecs(t){try{JSON.parse(t)}catch(o){return void this.showToast("error","Invalid Application Specifications")}const e=localStorage.getItem("zelidauth"),i=ia.parse(e);if(t){const e=JSON.parse(t);if(console.log(e),this.appRegistrationSpecification=JSON.parse(t),this.appRegistrationSpecification.instances=e.instances||3,this.appRegistrationSpecification.version<=3)this.appRegistrationSpecification.version=3,this.appRegistrationSpecification.ports=e.port||this.ensureString(e.ports),this.appRegistrationSpecification.domains=this.ensureString(e.domains),this.appRegistrationSpecification.enviromentParameters=this.ensureString(e.enviromentParameters),this.appRegistrationSpecification.commands=this.ensureString(e.commands),this.appRegistrationSpecification.containerPorts=e.containerPort||this.ensureString(e.containerPorts);else{if(this.appRegistrationSpecification.version<=7&&(this.appRegistrationSpecification.version=7),this.appRegistrationSpecification.contacts=this.ensureString([]),this.appRegistrationSpecification.geolocation=this.ensureString([]),this.appRegistrationSpecification.version>=5){this.appRegistrationSpecification.contacts=this.ensureString(e.contacts||[]),this.appRegistrationSpecification.geolocation=this.ensureString(e.geolocation||[]);try{this.decodeGeolocation(e.geolocation||[])}catch(o){console.log(o),this.appRegistrationSpecification.geolocation=this.ensureString([])}}this.appRegistrationSpecification.compose.forEach((t=>{t.ports=this.ensureString(t.ports),t.domains=this.ensureString(t.domains),t.environmentParameters=this.ensureString(t.environmentParameters),t.commands=this.ensureString(t.commands),t.containerPorts=this.ensureString(t.containerPorts),t.secrets=this.ensureString(t.secrets||""),t.repoauth=this.ensureString(t.repoauth||"")})),this.appRegistrationSpecification.version>=6&&(this.appRegistrationSpecification.expire=this.ensureNumber(e.expire||22e3),this.expirePosition=this.getExpirePosition(this.appRegistrationSpecification.expire)),this.appRegistrationSpecification.version>=7&&(this.appRegistrationSpecification.staticip=this.appRegistrationSpecification.staticip??!1,this.appRegistrationSpecification.nodes=this.appRegistrationSpecification.nodes||[],this.appRegistrationSpecification.nodes&&this.appRegistrationSpecification.nodes.length&&(this.isPrivateApp=!0),this.appRegistrationSpecification.nodes.forEach((async t=>{this.enterpriseNodes||await this.getEnterpriseNodes();const e=this.enterprisePublicKeys.find((e=>e.nodeip===t));if(!e){const e=await this.fetchEnterpriseKey(t);if(e){const i={nodeip:t.ip,nodekey:e},o=this.enterprisePublicKeys.find((e=>e.nodeip===t));o||this.enterprisePublicKeys.push(i)}}})),this.selectedEnterpriseNodes=[],this.appRegistrationSpecification.nodes.forEach((t=>{if(this.enterpriseNodes){const e=this.enterpriseNodes.find((e=>e.ip===t||t===`${e.txhash}:${e.outidx}`));e&&this.selectedEnterpriseNodes.push(e)}else this.showToast("danger","Failed to load Enterprise Node List")})))}}i.zelid?this.appRegistrationSpecification.owner=i.zelid:(this.appRegistrationSpecification.owner="",this.showToast("warning","Please log in first before registering an application"))},copyMessageToSign(){const{copy:t}=(0,$.VPI)({source:this.dataToSign,legacy:!0});t(),this.tooltipText="Copied!",setTimeout((()=>{this.$refs.copyButtonRef&&(this.$refs.copyButtonRef.blur(),this.tooltipText="")}),1e3),setTimeout((()=>{this.tooltipText="Copy to clipboard"}),1500)},byteValueAsMb(t){const e={k:1/1024,kb:1/1024,mb:1,m:1,gb:1024,g:1024},i=t.match(/[0-9]+(?:\.[0-9]+)?|[a-zA-Z]+/g);if(2!==i.length)return 0;const o=+i[0],a=i[1].toLowerCase();return a in e?Math.ceil(o*e[a]):0},dragover(t){t.preventDefault(),this.isDragging=!0},dragleave(){this.isDragging=!1},drop(t){if(t.preventDefault(),this.isDragging=!1,!t?.dataTransfer?.files||!t.dataTransfer.files.length)return;const e=t.dataTransfer.files[0];"application/x-yaml"===e?.type?this.loadFile(e):this.showToast("warning","File must be in yaml format. Ignoring.")},loadFile(t){this.reader.addEventListener("load",this.parseCompose,{once:!0}),this.reader.readAsText(t)},uploadFile(){this.$refs.uploadSpecs.$el.childNodes[0].click()},isElementInViewport(t){const e=t.getBoundingClientRect();return e.top>=0&&e.left>=0&&e.bottom<=(window.innerHeight||document.documentElement.clientHeight)&&e.right<=(window.innerWidth||document.documentElement.clientWidth)},parseCompose(){let t;try{t=Yo.load(this.reader.result)}catch(e){this.showToast("warning","Unable to parse yaml file. Ignoring.")}if(t)if(t.services)try{const e=(t,e,i)=>Array.from({length:(e-t)/i+1},((e,o)=>t+o*i)),i={compose:[]},o={};Object.entries(t.services).forEach((t=>{const[a,n]=t,s={name:a};if(i.compose.push(s),a in o||(o[a]=new Set),n.depends_on){let t=n.depends_on;Array.isArray(t)||(t=Object.keys(t)),t.forEach((t=>{t in o||(o[t]=new Set),o[t].add(a)}))}if(s.repotag=n.image||"",n.deploy?.resources?.limits){const{limits:t}=n.deploy.resources;if(t.cpus&&(s.cpu=Math.max((Math.ceil(10*+t.cpus)/10).toFixed(1),.1)),t.memory){const e=this.byteValueAsMb(t.memory),i=Math.max(100*Math.ceil(e/100),100);s.ram=i}}let r="";if(r=n.command?n.command.match(/\\?.|^$/g).reduce(((t,e)=>('"'===e?t.quote^=1:t.quote||" "!==e?t.a[t.a.length-1]+=e.replace(/\\(.)/,"$1"):t.a.push(""),t)),{a:[""]}).a:[],s.commands=this.ensureString(r),n.environment){let t=n.environment;t instanceof Array||(t=Object.keys(t).map((e=>`${e}=${t[e]}`))),s.environmentParameters=this.ensureString(t)}else s.environmentParameters="[]";if(n.ports&&n.ports.length){let t=[],i=[],o=[];n.ports.forEach((a=>{if("string"!==typeof a)return;if(!a.includes(":"))return;let[n,s]=a.split(":");if(n.includes("-")){const[t,i]=n.split("-");n=e(+t,+i,1)}if(s.includes("-")){const[t,i]=s.split("-");s=e(+t,+i,1)}if("string"===typeof n&&(n=[n]),"string"===typeof s&&(s=[s]),n.length!==s.length)return;const r=Array.from({length:n.length},(()=>""));t=t.concat(n.map((t=>+t))),i=i.concat(s.map((t=>+t))),o=o.concat(r)})),s.ports=this.ensureString(t),s.containerPorts=this.ensureString(i),s.domains=this.ensureString(o)}else s.ports="[]",s.containerPorts="[]",s.domains="[]";s.hdd=40,s.ram||(s.ram=2e3),s.cpu||(s.cpu=.5),s.description="",s.repoauth="",s.containerData="/tmp",s.tiered=!1,s.secrets="",s.cpubasic=.5,s.rambasic=500,s.hddbasic=10,s.cpusuper=1.5,s.ramsuper=2500,s.hddsuper=60,s.cpubamf=3.5,s.rambamf=14e3,s.hddbamf=285}));const a=M()(o);a.length===i.compose.length&&i.compose.sort(((t,e)=>a.indexOf(t.name)-a.indexOf(e.name))),this.appRegistrationSpecification.compose=i.compose,this.$refs.components.length&&!this.isElementInViewport(this.$refs.components[0])&&this.$refs.components[0].scrollIntoView({behavior:"smooth"})}catch(e){console.log(e),this.showToast("Error","Unable to parse compose specifications.")}else this.showToast("warning","Yaml parsed, but no services found. Ignoring.")}}},ca=la;var pa=i(1001),ua=(0,pa.Z)(ca,o,a,!1,null,"08c62d54",null);const da=ua.exports},63005:(t,e,i)=>{"use strict";i.r(e),i.d(e,{default:()=>n});const o={year:"numeric",month:"short",day:"numeric",hour:"2-digit",minute:"2-digit"},a={year:"numeric",month:"short",day:"numeric"},n={shortDate:o,date:a}},40710:(t,e,i)=>{var o=i(79639)["default"],a=i(70949)["default"],n=i(42080)["default"],s=i(76808)["default"];i(70560),i(15716),i(33442),i(61964),i(69878),i(52915),i(97895),i(22275);class r{constructor(t){s(this,"prev",null),s(this,"next",null),this.value=t}}var l=new WeakMap,c=new WeakMap,p=new WeakMap;class u{constructor(){o(this,l,new r),o(this,c,new r),o(this,p,0),n(l,this).prev=n(c,this),n(c,this).next=n(l,this)}get isEmpty(){return 0===n(p,this)}get front(){if(!this.isEmpty)return n(l,this).prev.value}get back(){if(!this.isEmpty)return n(c,this).next.value}get length(){return n(p,this)}enqueue(t){const e=new r(t),i=n(c,this).next;return i.prev=e,e.next=i,e.prev=n(c,this),n(c,this).next=e,a(p,this,n(p,this)+1),n(p,this)}dequeue(){if(this.isEmpty)return;const t=n(l,this).prev,e=t.prev;return n(l,this).prev=e,e.next=n(l,this),t.prev=null,t.next=null,a(p,this,n(p,this)-1),t.value}}function d(t){const e=new Map,i=new u,o=[];Object.keys(t).forEach((i=>{e.set(i,{in:0,out:new Set(t[i])})})),Object.keys(t).forEach((i=>{t[i].forEach((t=>{e.has(t)&&(e.get(t).in+=1)}))})),e.forEach(((t,e)=>{0===t.in&&i.enqueue(e)}));while(i.length){const t=i.dequeue();e.get(t).out.forEach((t=>{e.has(t)&&(e.get(t).in-=1,0===e.get(t).in&&i.enqueue(t))})),o.push(t)}return o.length===Object.keys(t).length?o:[]}t.exports=d},88523:t=>{function e(t,e,i){if("function"==typeof t?t===e:t.has(e))return arguments.length<3?e:i;throw new TypeError("Private element is not present on this object")}t.exports=e,t.exports.__esModule=!0,t.exports["default"]=t.exports},9665:t=>{function e(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}t.exports=e,t.exports.__esModule=!0,t.exports["default"]=t.exports},42080:(t,e,i)=>{var o=i(88523);function a(t,e){return t.get(o(t,e))}t.exports=a,t.exports.__esModule=!0,t.exports["default"]=t.exports},79639:(t,e,i)=>{var o=i(9665);function a(t,e,i){o(t,e),e.set(t,i)}t.exports=a,t.exports.__esModule=!0,t.exports["default"]=t.exports},70949:(t,e,i)=>{var o=i(88523);function a(t,e,i){return t.set(o(t,e),i),i}t.exports=a,t.exports.__esModule=!0,t.exports["default"]=t.exports},76808:(t,e,i)=>{var o=i(58252);function a(t,e,i){return(e=o(e))in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}t.exports=a,t.exports.__esModule=!0,t.exports["default"]=t.exports},29388:(t,e,i)=>{var o=i(12583)["default"];function a(t,e){if("object"!=o(t)||!t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var a=i.call(t,e||"default");if("object"!=o(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}t.exports=a,t.exports.__esModule=!0,t.exports["default"]=t.exports},58252:(t,e,i)=>{var o=i(12583)["default"],a=i(29388);function n(t){var e=a(t,"string");return"symbol"==o(e)?e:e+""}t.exports=n,t.exports.__esModule=!0,t.exports["default"]=t.exports},12583:t=>{function e(i){return t.exports=e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t.exports.__esModule=!0,t.exports["default"]=t.exports,e(i)}t.exports=e,t.exports.__esModule=!0,t.exports["default"]=t.exports}}]); \ No newline at end of file diff --git a/HomeUI/dist/js/4393.js b/HomeUI/dist/js/4393.js deleted file mode 100644 index e7e85dd81..000000000 --- a/HomeUI/dist/js/4393.js +++ /dev/null @@ -1 +0,0 @@ -(globalThis["webpackChunkflux"]=globalThis["webpackChunkflux"]||[]).push([[4393],{67166:function(t,r,e){(function(r,n){t.exports=n(e(47514))})(0,(function(t){"use strict";function r(t){return r="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}function e(t,r,e){return r in t?Object.defineProperty(t,r,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[r]=e,t}t=t&&t.hasOwnProperty("default")?t["default"]:t;var n={props:{options:{type:Object},type:{type:String},series:{type:Array,required:!0,default:function(){return[]}},width:{default:"100%"},height:{default:"auto"}},data:function(){return{chart:null}},beforeMount:function(){window.ApexCharts=t},mounted:function(){this.init()},created:function(){var t=this;this.$watch("options",(function(r){!t.chart&&r?t.init():t.chart.updateOptions(t.options)})),this.$watch("series",(function(r){!t.chart&&r?t.init():t.chart.updateSeries(t.series)}));var r=["type","width","height"];r.forEach((function(r){t.$watch(r,(function(){t.refresh()}))}))},beforeDestroy:function(){this.chart&&this.destroy()},render:function(t){return t("div")},methods:{init:function(){var r=this,e={chart:{type:this.type||this.options.chart.type||"line",height:this.height,width:this.width,events:{}},series:this.series};Object.keys(this.$listeners).forEach((function(t){e.chart.events[t]=r.$listeners[t]}));var n=this.extend(this.options,e);return this.chart=new t(this.$el,n),this.chart.render()},isObject:function(t){return t&&"object"===r(t)&&!Array.isArray(t)&&null!=t},extend:function(t,r){var n=this;"function"!==typeof Object.assign&&function(){Object.assign=function(t){if(void 0===t||null===t)throw new TypeError("Cannot convert undefined or null to object");for(var r=Object(t),e=1;e{"use strict";var n=e(65290),i=e(27578),o=e(6310),s=function(t){return function(r,e,s){var a,c=n(r),u=o(c),h=i(s,u);if(t&&e!==e){while(u>h)if(a=c[h++],a!==a)return!0}else for(;u>h;h++)if((t||h in c)&&c[h]===e)return t||h||0;return!t&&-1}};t.exports={includes:s(!0),indexOf:s(!1)}},5649:(t,r,e)=>{"use strict";var n=e(67697),i=e(92297),o=TypeError,s=Object.getOwnPropertyDescriptor,a=n&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(t){return t instanceof TypeError}}();t.exports=a?function(t,r){if(i(t)&&!s(t,"length").writable)throw new o("Cannot set read only .length");return t.length=r}:function(t,r){return t.length=r}},8758:(t,r,e)=>{"use strict";var n=e(36812),i=e(19152),o=e(82474),s=e(72560);t.exports=function(t,r,e){for(var a=i(r),c=s.f,u=o.f,h=0;h{"use strict";var r=TypeError,e=9007199254740991;t.exports=function(t){if(t>e)throw r("Maximum allowed index exceeded");return t}},72739:t=>{"use strict";t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},79989:(t,r,e)=>{"use strict";var n=e(19037),i=e(82474).f,o=e(75773),s=e(11880),a=e(95014),c=e(8758),u=e(35266);t.exports=function(t,r){var e,h,f,p,l,d,y=t.target,v=t.global,b=t.stat;if(h=v?n:b?n[y]||a(y,{}):(n[y]||{}).prototype,h)for(f in r){if(l=r[f],t.dontCallGetSet?(d=i(h,f),p=d&&d.value):p=h[f],e=u(v?f:y+(b?".":"#")+f,t.forced),!e&&void 0!==p){if(typeof l==typeof p)continue;c(l,p)}(t.sham||p&&p.sham)&&o(l,"sham",!0),s(h,f,l,t)}}},94413:(t,r,e)=>{"use strict";var n=e(68844),i=e(3689),o=e(6648),s=Object,a=n("".split);t.exports=i((function(){return!s("z").propertyIsEnumerable(0)}))?function(t){return"String"===o(t)?a(t,""):s(t)}:s},92297:(t,r,e)=>{"use strict";var n=e(6648);t.exports=Array.isArray||function(t){return"Array"===n(t)}},35266:(t,r,e)=>{"use strict";var n=e(3689),i=e(69985),o=/#|\.prototype\./,s=function(t,r){var e=c[a(t)];return e===h||e!==u&&(i(r)?n(r):!!r)},a=s.normalize=function(t){return String(t).replace(o,".").toLowerCase()},c=s.data={},u=s.NATIVE="N",h=s.POLYFILL="P";t.exports=s},6310:(t,r,e)=>{"use strict";var n=e(43126);t.exports=function(t){return n(t.length)}},58828:t=>{"use strict";var r=Math.ceil,e=Math.floor;t.exports=Math.trunc||function(t){var n=+t;return(n>0?e:r)(n)}},82474:(t,r,e)=>{"use strict";var n=e(67697),i=e(22615),o=e(49556),s=e(75684),a=e(65290),c=e(18360),u=e(36812),h=e(68506),f=Object.getOwnPropertyDescriptor;r.f=n?f:function(t,r){if(t=a(t),r=c(r),h)try{return f(t,r)}catch(e){}if(u(t,r))return s(!i(o.f,t,r),t[r])}},72741:(t,r,e)=>{"use strict";var n=e(54948),i=e(72739),o=i.concat("length","prototype");r.f=Object.getOwnPropertyNames||function(t){return n(t,o)}},7518:(t,r)=>{"use strict";r.f=Object.getOwnPropertySymbols},54948:(t,r,e)=>{"use strict";var n=e(68844),i=e(36812),o=e(65290),s=e(84328).indexOf,a=e(57248),c=n([].push);t.exports=function(t,r){var e,n=o(t),u=0,h=[];for(e in n)!i(a,e)&&i(n,e)&&c(h,e);while(r.length>u)i(n,e=r[u++])&&(~s(h,e)||c(h,e));return h}},49556:(t,r)=>{"use strict";var e={}.propertyIsEnumerable,n=Object.getOwnPropertyDescriptor,i=n&&!e.call({1:2},1);r.f=i?function(t){var r=n(this,t);return!!r&&r.enumerable}:e},19152:(t,r,e)=>{"use strict";var n=e(76058),i=e(68844),o=e(72741),s=e(7518),a=e(85027),c=i([].concat);t.exports=n("Reflect","ownKeys")||function(t){var r=o.f(a(t)),e=s.f;return e?c(r,e(t)):r}},27578:(t,r,e)=>{"use strict";var n=e(68700),i=Math.max,o=Math.min;t.exports=function(t,r){var e=n(t);return e<0?i(e+r,0):o(e,r)}},65290:(t,r,e)=>{"use strict";var n=e(94413),i=e(74684);t.exports=function(t){return n(i(t))}},68700:(t,r,e)=>{"use strict";var n=e(58828);t.exports=function(t){var r=+t;return r!==r||0===r?0:n(r)}},43126:(t,r,e)=>{"use strict";var n=e(68700),i=Math.min;t.exports=function(t){return t>0?i(n(t),9007199254740991):0}},70560:(t,r,e)=>{"use strict";var n=e(79989),i=e(90690),o=e(6310),s=e(5649),a=e(55565),c=e(3689),u=c((function(){return 4294967297!==[].push.call({length:4294967296},1)})),h=function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(t){return t instanceof TypeError}},f=u||!h();n({target:"Array",proto:!0,arity:1,forced:f},{push:function(t){var r=i(this),e=o(r),n=arguments.length;a(e+n);for(var c=0;c{"use strict";r.d(e,{Kn:()=>o,_d:()=>l,tv:()=>s});var n=r(20144),i=r(24019);const o=t=>"object"===typeof t&&null!==t,l=t=>{const{route:e}=i.Z.resolve(t);return e.path===i.Z.currentRoute.path},s=()=>{const t=(0,n.getCurrentInstance)().proxy,e=(0,n.reactive)({route:t.$route});return(0,n.watch)((()=>t.$route),(t=>{e.route=t})),{...(0,n.toRefs)(e),router:t.$router}}},91040:t=>{t.exports=function(t){function e(n){if(r[n])return r[n].exports;var i=r[n]={i:n,l:!1,exports:{}};return t[n].call(i.exports,i,i.exports,e),i.l=!0,i.exports}var r={};return e.m=t,e.c=r,e.i=function(t){return t},e.d=function(t,r,n){e.o(t,r)||Object.defineProperty(t,r,{configurable:!1,enumerable:!0,get:n})},e.n=function(t){var r=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(r,"a",r),r},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="/dist/",e(e.s=2)}([function(t,e){t.exports=function(){var t=[];return t.toString=function(){for(var t=[],e=0;e.ps__rail-x,.ps--active-y>.ps__rail-y{display:block;background-color:transparent}.ps--focus>.ps__rail-x,.ps--focus>.ps__rail-y,.ps--scrolling-x>.ps__rail-x,.ps--scrolling-y>.ps__rail-y,.ps:hover>.ps__rail-x,.ps:hover>.ps__rail-y{opacity:.6}.ps .ps__rail-x.ps--clicking,.ps .ps__rail-x:focus,.ps .ps__rail-x:hover,.ps .ps__rail-y.ps--clicking,.ps .ps__rail-y:focus,.ps .ps__rail-y:hover{background-color:#eee;opacity:.9}.ps__thumb-x{transition:background-color .2s linear,height .2s ease-in-out;-webkit-transition:background-color .2s linear,height .2s ease-in-out;height:6px;bottom:2px}.ps__thumb-x,.ps__thumb-y{background-color:#aaa;border-radius:6px;position:absolute}.ps__thumb-y{transition:background-color .2s linear,width .2s ease-in-out;-webkit-transition:background-color .2s linear,width .2s ease-in-out;width:6px;right:2px}.ps__rail-x.ps--clicking .ps__thumb-x,.ps__rail-x:focus>.ps__thumb-x,.ps__rail-x:hover>.ps__thumb-x{background-color:#999;height:11px}.ps__rail-y.ps--clicking .ps__thumb-y,.ps__rail-y:focus>.ps__thumb-y,.ps__rail-y:hover>.ps__thumb-y{background-color:#999;width:11px}@supports (-ms-overflow-style:none){.ps{overflow:auto!important}}@media (-ms-high-contrast:none),screen and (-ms-high-contrast:active){.ps{overflow:auto!important}}",""])},function(t,e,r){e=t.exports=r(0)(),e.i(r(4),""),e.push([t.i,".ps-container{position:relative}",""])},function(t,e,r){"use strict"; +(self["webpackChunkflux"]=self["webpackChunkflux"]||[]).push([[460],{23646:(t,e,r)=>{"use strict";r.d(e,{Kn:()=>o,_d:()=>l,tv:()=>s});var n=r(20144),i=r(24019);const o=t=>"object"===typeof t&&null!==t,l=t=>{const{route:e}=i.Z.resolve(t);return e.path===i.Z.currentRoute.path},s=()=>{const t=(0,n.getCurrentInstance)().proxy,e=(0,n.reactive)({route:t.$route});return(0,n.watch)((()=>t.$route),(t=>{e.route=t})),{...(0,n.toRefs)(e),router:t.$router}}},91040:t=>{t.exports=function(t){function e(n){if(r[n])return r[n].exports;var i=r[n]={i:n,l:!1,exports:{}};return t[n].call(i.exports,i,i.exports,e),i.l=!0,i.exports}var r={};return e.m=t,e.c=r,e.i=function(t){return t},e.d=function(t,r,n){e.o(t,r)||Object.defineProperty(t,r,{configurable:!1,enumerable:!0,get:n})},e.n=function(t){var r=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(r,"a",r),r},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="/dist/",e(e.s=2)}([function(t,e){t.exports=function(){var t=[];return t.toString=function(){for(var t=[],e=0;e.ps__rail-x,.ps--active-y>.ps__rail-y{display:block;background-color:transparent}.ps--focus>.ps__rail-x,.ps--focus>.ps__rail-y,.ps--scrolling-x>.ps__rail-x,.ps--scrolling-y>.ps__rail-y,.ps:hover>.ps__rail-x,.ps:hover>.ps__rail-y{opacity:.6}.ps .ps__rail-x.ps--clicking,.ps .ps__rail-x:focus,.ps .ps__rail-x:hover,.ps .ps__rail-y.ps--clicking,.ps .ps__rail-y:focus,.ps .ps__rail-y:hover{background-color:#eee;opacity:.9}.ps__thumb-x{transition:background-color .2s linear,height .2s ease-in-out;-webkit-transition:background-color .2s linear,height .2s ease-in-out;height:6px;bottom:2px}.ps__thumb-x,.ps__thumb-y{background-color:#aaa;border-radius:6px;position:absolute}.ps__thumb-y{transition:background-color .2s linear,width .2s ease-in-out;-webkit-transition:background-color .2s linear,width .2s ease-in-out;width:6px;right:2px}.ps__rail-x.ps--clicking .ps__thumb-x,.ps__rail-x:focus>.ps__thumb-x,.ps__rail-x:hover>.ps__thumb-x{background-color:#999;height:11px}.ps__rail-y.ps--clicking .ps__thumb-y,.ps__rail-y:focus>.ps__thumb-y,.ps__rail-y:hover>.ps__thumb-y{background-color:#999;width:11px}@supports (-ms-overflow-style:none){.ps{overflow:auto!important}}@media (-ms-high-contrast:none),screen and (-ms-high-contrast:active){.ps{overflow:auto!important}}",""])},function(t,e,r){e=t.exports=r(0)(),e.i(r(4),""),e.push([t.i,".ps-container{position:relative}",""])},function(t,e,r){"use strict"; /*! * perfect-scrollbar v1.4.0 * (c) 2018 Hyunje Jun diff --git a/HomeUI/dist/js/4661.js b/HomeUI/dist/js/4661.js index 7136e22fa..a9a1ee8d3 100644 --- a/HomeUI/dist/js/4661.js +++ b/HomeUI/dist/js/4661.js @@ -1 +1 @@ -"use strict";(globalThis["webpackChunkflux"]=globalThis["webpackChunkflux"]||[]).push([[4661],{246:(t,a,s)=>{s.d(a,{Z:()=>u});var o=function(){var t=this,a=t._self._c;return a("b-img",{attrs:{src:"dark"===t.skin?t.appLogoImageDark:t.appLogoImage,alt:"logo"}})},r=[],e=s(98156),n=s(37307),i=s(68934);const p={components:{BImg:e.s},setup(){const{skin:t}=(0,n.Z)(),{appName:a,appLogoImageDark:s,appLogoImage:o}=i.$themeConfig.app;return{skin:t,appName:a,appLogoImage:o,appLogoImageDark:s}}},l=p;var g=s(1001),m=(0,g.Z)(l,o,r,!1,null,null,null);const u=m.exports},84661:(t,a,s)=>{s.r(a),s.d(a,{default:()=>d});var o=function(){var t=this,a=t._self._c;return a("div",{staticClass:"misc-wrapper"},[a("b-link",{staticClass:"brand-logo",staticStyle:{height:"100px"}},[a("vuexy-logo")],1),a("div",{staticClass:"misc-inner p-2 p-sm-3"},[a("div",{staticClass:"w-100 text-center"},[a("h2",{staticClass:"mb-1"},[t._v(" Page Not Found 🕵🏻‍♀️ ")]),a("p",{staticClass:"mb-2"},[t._v(" Oops! 😖 The requested URL was not found on this server. ")]),a("b-button",{staticClass:"mb-2 btn-sm-block",attrs:{variant:"primary",to:{path:"/"}}},[t._v(" Back to home ")]),a("b-img",{attrs:{fluid:"",src:t.imgUrl,alt:"Error page"}})],1)])],1)},r=[],e=s(67347),n=s(15193),i=s(98156),p=s(246),l=s(73507);const g={components:{VuexyLogo:p.Z,BLink:e.we,BButton:n.T,BImg:i.s},data(){return{downImg:s(94640)}},computed:{imgUrl(){return"dark"===l.Z.state.appConfig.layout.skin?(this.downImg=s(24686),this.downImg):this.downImg}}},m=g;var u=s(1001),c=(0,u.Z)(m,o,r,!1,null,null,null);const d=c.exports},24686:(t,a,s)=>{t.exports=s.p+"img/error-dark.svg"},94640:(t,a,s)=>{t.exports=s.p+"img/error.svg"}}]); \ No newline at end of file +"use strict";(self["webpackChunkflux"]=self["webpackChunkflux"]||[]).push([[4661],{246:(t,s,a)=>{a.d(s,{Z:()=>u});var o=function(){var t=this,s=t._self._c;return s("b-img",{attrs:{src:"dark"===t.skin?t.appLogoImageDark:t.appLogoImage,alt:"logo"}})},r=[],e=a(98156),n=a(37307),p=a(68934);const i={components:{BImg:e.s},setup(){const{skin:t}=(0,n.Z)(),{appName:s,appLogoImageDark:a,appLogoImage:o}=p.$themeConfig.app;return{skin:t,appName:s,appLogoImage:o,appLogoImageDark:a}}},l=i;var g=a(1001),m=(0,g.Z)(l,o,r,!1,null,null,null);const u=m.exports},84661:(t,s,a)=>{a.r(s),a.d(s,{default:()=>d});var o=function(){var t=this,s=t._self._c;return s("div",{staticClass:"misc-wrapper"},[s("b-link",{staticClass:"brand-logo",staticStyle:{height:"100px"}},[s("vuexy-logo")],1),s("div",{staticClass:"misc-inner p-2 p-sm-3"},[s("div",{staticClass:"w-100 text-center"},[s("h2",{staticClass:"mb-1"},[t._v(" Page Not Found 🕵🏻‍♀️ ")]),s("p",{staticClass:"mb-2"},[t._v(" Oops! 😖 The requested URL was not found on this server. ")]),s("b-button",{staticClass:"mb-2 btn-sm-block",attrs:{variant:"primary",to:{path:"/"}}},[t._v(" Back to home ")]),s("b-img",{attrs:{fluid:"",src:t.imgUrl,alt:"Error page"}})],1)])],1)},r=[],e=a(67347),n=a(15193),p=a(98156),i=a(246),l=a(73507);const g={components:{VuexyLogo:i.Z,BLink:e.we,BButton:n.T,BImg:p.s},data(){return{downImg:a(94640)}},computed:{imgUrl(){return"dark"===l.Z.state.appConfig.layout.skin?(this.downImg=a(24686),this.downImg):this.downImg}}},m=g;var u=a(1001),c=(0,u.Z)(m,o,r,!1,null,null,null);const d=c.exports},24686:(t,s,a)=>{t.exports=a.p+"img/error-dark.svg"},94640:(t,s,a)=>{t.exports=a.p+"img/error.svg"}}]); \ No newline at end of file diff --git a/HomeUI/dist/js/4671.js b/HomeUI/dist/js/4671.js index 9fa72a4c8..4d93481c1 100644 --- a/HomeUI/dist/js/4671.js +++ b/HomeUI/dist/js/4671.js @@ -1 +1 @@ -"use strict";(globalThis["webpackChunkflux"]=globalThis["webpackChunkflux"]||[]).push([[4671],{34547:(t,e,a)=>{a.d(e,{Z:()=>u});var n=function(){var t=this,e=t._self._c;return e("div",{staticClass:"toastification"},[e("div",{staticClass:"d-flex align-items-start"},[e("b-avatar",{staticClass:"mr-75 flex-shrink-0",attrs:{variant:t.variant,size:"1.8rem"}},[e("feather-icon",{attrs:{icon:t.icon,size:"15"}})],1),e("div",{staticClass:"d-flex flex-grow-1"},[e("div",[t.title?e("h5",{staticClass:"mb-0 font-weight-bolder toastification-title",class:`text-${t.variant}`,domProps:{textContent:t._s(t.title)}}):t._e(),t.text?e("small",{staticClass:"d-inline-block text-body",domProps:{textContent:t._s(t.text)}}):t._e()]),e("span",{staticClass:"cursor-pointer toastification-close-icon ml-auto",on:{click:function(e){return t.$emit("close-toast")}}},[t.hideClose?t._e():e("feather-icon",{staticClass:"text-body",attrs:{icon:"XIcon"}})],1)])],1)])},s=[],l=a(47389);const r={components:{BAvatar:l.SH},props:{variant:{type:String,default:"primary"},icon:{type:String,default:null},title:{type:String,default:null},text:{type:String,default:null},hideClose:{type:Boolean,default:!1}}},o=r;var i=a(1001),d=(0,i.Z)(o,n,s,!1,null,"22d964ca",null);const u=d.exports},51748:(t,e,a)=>{a.d(e,{Z:()=>u});var n=function(){var t=this,e=t._self._c;return e("dl",{staticClass:"row",class:t.classes},[e("dt",{staticClass:"col-sm-3"},[t._v(" "+t._s(t.title)+" ")]),t.href.length>0?e("dd",{staticClass:"col-sm-9 mb-0",class:`text-${t.variant}`},[t.href.length>0?e("b-link",{attrs:{href:t.href,target:"_blank",rel:"noopener noreferrer"}},[t._v(" "+t._s(t.data.length>0?t.data:t.number!==Number.MAX_VALUE?t.number:"")+" ")]):t._e()],1):t.click?e("dd",{staticClass:"col-sm-9 mb-0",class:`text-${t.variant}`,on:{click:function(e){return t.$emit("click")}}},[e("b-link",[t._v(" "+t._s(t.data.length>0?t.data:t.number!==Number.MAX_VALUE?t.number:"")+" ")])],1):e("dd",{staticClass:"col-sm-9 mb-0",class:`text-${t.variant}`},[t._v(" "+t._s(t.data.length>0?t.data:t.number!==Number.MAX_VALUE?t.number:"")+" ")])])},s=[],l=a(67347);const r={components:{BLink:l.we},props:{title:{type:String,required:!0},classes:{type:String,required:!1,default:"mb-1"},data:{type:String,required:!1,default:""},number:{type:Number,required:!1,default:Number.MAX_VALUE},variant:{type:String,required:!1,default:"secondary"},href:{type:String,required:!1,default:""},click:{type:Boolean,required:!1,default:!1}}},o=r;var i=a(1001),d=(0,i.Z)(o,n,s,!1,null,null,null);const u=d.exports},14671:(t,e,a)=>{a.r(e),a.d(e,{default:()=>g});var n=function(){var t=this,e=t._self._c;return e("b-card",[t.callResponse.data.total?e("list-entry",{attrs:{title:"Total",data:t.callResponse.data.total.toFixed(0)}}):t._e(),t.callResponse.data.stable?e("list-entry",{attrs:{title:"Stable",data:t.callResponse.data.stable.toFixed(0)}}):t._e(),t.callResponse.data["basic-enabled"]||t.callResponse.data["cumulus-enabled"]?e("list-entry",{attrs:{title:"Cumulus Tier",data:(t.callResponse.data["basic-enabled"]||t.callResponse.data["cumulus-enabled"]).toFixed(0)}}):t._e(),t.callResponse.data["super-enabled"]||t.callResponse.data["nimbus-enabled"]?e("list-entry",{attrs:{title:"Nimbus Tier",data:(t.callResponse.data["super-enabled"]||t.callResponse.data["nimbus-enabled"]).toFixed(0)}}):t._e(),t.callResponse.data["bamf-enabled"]||t.callResponse.data["stratus-enabled"]?e("list-entry",{attrs:{title:"Stratus Tier",data:(t.callResponse.data["bamf-enabled"]||t.callResponse.data["stratus-enabled"]).toFixed(0)}}):t._e(),t.callResponse.data.ipv4>=0?e("list-entry",{attrs:{title:"IPv4",data:t.callResponse.data.ipv4.toFixed(0)}}):t._e(),t.callResponse.data.ipv6>=0?e("list-entry",{attrs:{title:"IPv6",data:t.callResponse.data.ipv6.toFixed(0)}}):t._e(),t.callResponse.data.onion>=0?e("list-entry",{attrs:{title:"Tor",data:t.callResponse.data.onion.toFixed(0)}}):t._e()],1)},s=[],l=a(86855),r=a(34547),o=a(27616),i=a(51748);const d={components:{ListEntry:i.Z,BCard:l._,ToastificationContent:r.Z},data(){return{callResponse:{status:"",data:""}}},mounted(){this.daemonGetFluxNodeCount()},methods:{async daemonGetFluxNodeCount(){const t=await o.Z.getFluxNodeCount();"error"===t.data.status?this.$toast({component:r.Z,props:{title:t.data.data.message||t.data.data,icon:"InfoIcon",variant:"danger"}}):(this.callResponse.status=t.data.status,this.callResponse.data=t.data.data,console.log(t.data))}}},u=d;var c=a(1001),m=(0,c.Z)(u,n,s,!1,null,null,null);const g=m.exports},27616:(t,e,a)=>{a.d(e,{Z:()=>s});var n=a(80914);const s={help(){return(0,n.Z)().get("/daemon/help")},helpSpecific(t){return(0,n.Z)().get(`/daemon/help/${t}`)},getInfo(){return(0,n.Z)().get("/daemon/getinfo")},getFluxNodeStatus(){return(0,n.Z)().get("/daemon/getzelnodestatus")},getRawTransaction(t,e){return(0,n.Z)().get(`/daemon/getrawtransaction/${t}/${e}`)},listFluxNodes(){return(0,n.Z)().get("/daemon/listzelnodes")},viewDeterministicFluxNodeList(){return(0,n.Z)().get("/daemon/viewdeterministiczelnodelist")},getFluxNodeCount(){return(0,n.Z)().get("/daemon/getzelnodecount")},getStartList(){return(0,n.Z)().get("/daemon/getstartlist")},getDOSList(){return(0,n.Z)().get("/daemon/getdoslist")},fluxCurrentWinner(){return(0,n.Z)().get("/daemon/fluxcurrentwinner")},getBenchmarks(){return(0,n.Z)().get("/daemon/getbenchmarks")},getBenchStatus(){return(0,n.Z)().get("/daemon/getbenchstatus")},startBenchmark(t){return(0,n.Z)().get("/daemon/startbenchmark",{headers:{zelidauth:t}})},stopBenchmark(t){return(0,n.Z)().get("/daemon/stopbenchmark",{headers:{zelidauth:t}})},getBlockCount(){return(0,n.Z)().get("/daemon/getBlockCount")},getBlockchainInfo(){return(0,n.Z)().get("/daemon/getblockchaininfo")},getMiningInfo(){return(0,n.Z)().get("/daemon/getmininginfo")},getNetworkInfo(){return(0,n.Z)().get("/daemon/getnetworkinfo")},validateAddress(t,e){return(0,n.Z)().get(`/daemon/validateaddress/${e}`,{headers:{zelidauth:t}})},getWalletInfo(t){return(0,n.Z)().get("/daemon/getwalletinfo",{headers:{zelidauth:t}})},listFluxNodeConf(t){return(0,n.Z)().get("/daemon/listzelnodeconf",{headers:{zelidauth:t}})},start(t){return(0,n.Z)().get("/daemon/start",{headers:{zelidauth:t}})},restart(t){return(0,n.Z)().get("/daemon/restart",{headers:{zelidauth:t}})},stopDaemon(t){return(0,n.Z)().get("/daemon/stop",{headers:{zelidauth:t}})},rescanDaemon(t,e){return(0,n.Z)().get(`/daemon/rescanblockchain/${e}`,{headers:{zelidauth:t}})},getBlock(t,e){return(0,n.Z)().get(`/daemon/getblock/${t}/${e}`)},tailDaemonDebug(t){return(0,n.Z)().get("/flux/taildaemondebug",{headers:{zelidauth:t}})},justAPI(){return(0,n.Z)()},cancelToken(){return n.S}}}}]); \ No newline at end of file +"use strict";(self["webpackChunkflux"]=self["webpackChunkflux"]||[]).push([[4671],{34547:(t,e,a)=>{a.d(e,{Z:()=>u});var n=function(){var t=this,e=t._self._c;return e("div",{staticClass:"toastification"},[e("div",{staticClass:"d-flex align-items-start"},[e("b-avatar",{staticClass:"mr-75 flex-shrink-0",attrs:{variant:t.variant,size:"1.8rem"}},[e("feather-icon",{attrs:{icon:t.icon,size:"15"}})],1),e("div",{staticClass:"d-flex flex-grow-1"},[e("div",[t.title?e("h5",{staticClass:"mb-0 font-weight-bolder toastification-title",class:`text-${t.variant}`,domProps:{textContent:t._s(t.title)}}):t._e(),t.text?e("small",{staticClass:"d-inline-block text-body",domProps:{textContent:t._s(t.text)}}):t._e()]),e("span",{staticClass:"cursor-pointer toastification-close-icon ml-auto",on:{click:function(e){return t.$emit("close-toast")}}},[t.hideClose?t._e():e("feather-icon",{staticClass:"text-body",attrs:{icon:"XIcon"}})],1)])],1)])},s=[],l=a(47389);const r={components:{BAvatar:l.SH},props:{variant:{type:String,default:"primary"},icon:{type:String,default:null},title:{type:String,default:null},text:{type:String,default:null},hideClose:{type:Boolean,default:!1}}},o=r;var i=a(1001),d=(0,i.Z)(o,n,s,!1,null,"22d964ca",null);const u=d.exports},51748:(t,e,a)=>{a.d(e,{Z:()=>u});var n=function(){var t=this,e=t._self._c;return e("dl",{staticClass:"row",class:t.classes},[e("dt",{staticClass:"col-sm-3"},[t._v(" "+t._s(t.title)+" ")]),t.href.length>0?e("dd",{staticClass:"col-sm-9 mb-0",class:`text-${t.variant}`},[t.href.length>0?e("b-link",{attrs:{href:t.href,target:"_blank",rel:"noopener noreferrer"}},[t._v(" "+t._s(t.data.length>0?t.data:t.number!==Number.MAX_VALUE?t.number:"")+" ")]):t._e()],1):t.click?e("dd",{staticClass:"col-sm-9 mb-0",class:`text-${t.variant}`,on:{click:function(e){return t.$emit("click")}}},[e("b-link",[t._v(" "+t._s(t.data.length>0?t.data:t.number!==Number.MAX_VALUE?t.number:"")+" ")])],1):e("dd",{staticClass:"col-sm-9 mb-0",class:`text-${t.variant}`},[t._v(" "+t._s(t.data.length>0?t.data:t.number!==Number.MAX_VALUE?t.number:"")+" ")])])},s=[],l=a(67347);const r={components:{BLink:l.we},props:{title:{type:String,required:!0},classes:{type:String,required:!1,default:"mb-1"},data:{type:String,required:!1,default:""},number:{type:Number,required:!1,default:Number.MAX_VALUE},variant:{type:String,required:!1,default:"secondary"},href:{type:String,required:!1,default:""},click:{type:Boolean,required:!1,default:!1}}},o=r;var i=a(1001),d=(0,i.Z)(o,n,s,!1,null,null,null);const u=d.exports},14671:(t,e,a)=>{a.r(e),a.d(e,{default:()=>g});var n=function(){var t=this,e=t._self._c;return e("b-card",[t.callResponse.data.total?e("list-entry",{attrs:{title:"Total",data:t.callResponse.data.total.toFixed(0)}}):t._e(),t.callResponse.data.stable?e("list-entry",{attrs:{title:"Stable",data:t.callResponse.data.stable.toFixed(0)}}):t._e(),t.callResponse.data["basic-enabled"]||t.callResponse.data["cumulus-enabled"]?e("list-entry",{attrs:{title:"Cumulus Tier",data:(t.callResponse.data["basic-enabled"]||t.callResponse.data["cumulus-enabled"]).toFixed(0)}}):t._e(),t.callResponse.data["super-enabled"]||t.callResponse.data["nimbus-enabled"]?e("list-entry",{attrs:{title:"Nimbus Tier",data:(t.callResponse.data["super-enabled"]||t.callResponse.data["nimbus-enabled"]).toFixed(0)}}):t._e(),t.callResponse.data["bamf-enabled"]||t.callResponse.data["stratus-enabled"]?e("list-entry",{attrs:{title:"Stratus Tier",data:(t.callResponse.data["bamf-enabled"]||t.callResponse.data["stratus-enabled"]).toFixed(0)}}):t._e(),t.callResponse.data.ipv4>=0?e("list-entry",{attrs:{title:"IPv4",data:t.callResponse.data.ipv4.toFixed(0)}}):t._e(),t.callResponse.data.ipv6>=0?e("list-entry",{attrs:{title:"IPv6",data:t.callResponse.data.ipv6.toFixed(0)}}):t._e(),t.callResponse.data.onion>=0?e("list-entry",{attrs:{title:"Tor",data:t.callResponse.data.onion.toFixed(0)}}):t._e()],1)},s=[],l=a(86855),r=a(34547),o=a(27616),i=a(51748);const d={components:{ListEntry:i.Z,BCard:l._,ToastificationContent:r.Z},data(){return{callResponse:{status:"",data:""}}},mounted(){this.daemonGetFluxNodeCount()},methods:{async daemonGetFluxNodeCount(){const t=await o.Z.getFluxNodeCount();"error"===t.data.status?this.$toast({component:r.Z,props:{title:t.data.data.message||t.data.data,icon:"InfoIcon",variant:"danger"}}):(this.callResponse.status=t.data.status,this.callResponse.data=t.data.data,console.log(t.data))}}},u=d;var c=a(1001),m=(0,c.Z)(u,n,s,!1,null,null,null);const g=m.exports},27616:(t,e,a)=>{a.d(e,{Z:()=>s});var n=a(80914);const s={help(){return(0,n.Z)().get("/daemon/help")},helpSpecific(t){return(0,n.Z)().get(`/daemon/help/${t}`)},getInfo(){return(0,n.Z)().get("/daemon/getinfo")},getFluxNodeStatus(){return(0,n.Z)().get("/daemon/getzelnodestatus")},getRawTransaction(t,e){return(0,n.Z)().get(`/daemon/getrawtransaction/${t}/${e}`)},listFluxNodes(){return(0,n.Z)().get("/daemon/listzelnodes")},viewDeterministicFluxNodeList(){return(0,n.Z)().get("/daemon/viewdeterministiczelnodelist")},getFluxNodeCount(){return(0,n.Z)().get("/daemon/getzelnodecount")},getStartList(){return(0,n.Z)().get("/daemon/getstartlist")},getDOSList(){return(0,n.Z)().get("/daemon/getdoslist")},fluxCurrentWinner(){return(0,n.Z)().get("/daemon/fluxcurrentwinner")},getBenchmarks(){return(0,n.Z)().get("/daemon/getbenchmarks")},getBenchStatus(){return(0,n.Z)().get("/daemon/getbenchstatus")},startBenchmark(t){return(0,n.Z)().get("/daemon/startbenchmark",{headers:{zelidauth:t}})},stopBenchmark(t){return(0,n.Z)().get("/daemon/stopbenchmark",{headers:{zelidauth:t}})},getBlockCount(){return(0,n.Z)().get("/daemon/getBlockCount")},getBlockchainInfo(){return(0,n.Z)().get("/daemon/getblockchaininfo")},getMiningInfo(){return(0,n.Z)().get("/daemon/getmininginfo")},getNetworkInfo(){return(0,n.Z)().get("/daemon/getnetworkinfo")},validateAddress(t,e){return(0,n.Z)().get(`/daemon/validateaddress/${e}`,{headers:{zelidauth:t}})},getWalletInfo(t){return(0,n.Z)().get("/daemon/getwalletinfo",{headers:{zelidauth:t}})},listFluxNodeConf(t){return(0,n.Z)().get("/daemon/listzelnodeconf",{headers:{zelidauth:t}})},start(t){return(0,n.Z)().get("/daemon/start",{headers:{zelidauth:t}})},restart(t){return(0,n.Z)().get("/daemon/restart",{headers:{zelidauth:t}})},stopDaemon(t){return(0,n.Z)().get("/daemon/stop",{headers:{zelidauth:t}})},rescanDaemon(t,e){return(0,n.Z)().get(`/daemon/rescanblockchain/${e}`,{headers:{zelidauth:t}})},getBlock(t,e){return(0,n.Z)().get(`/daemon/getblock/${t}/${e}`)},tailDaemonDebug(t){return(0,n.Z)().get("/flux/taildaemondebug",{headers:{zelidauth:t}})},justAPI(){return(0,n.Z)()},cancelToken(){return n.S}}}}]); \ No newline at end of file diff --git a/HomeUI/dist/js/4764.js b/HomeUI/dist/js/4764.js index 3cff58167..e6c54c4a2 100644 --- a/HomeUI/dist/js/4764.js +++ b/HomeUI/dist/js/4764.js @@ -1 +1 @@ -"use strict";(globalThis["webpackChunkflux"]=globalThis["webpackChunkflux"]||[]).push([[4764],{34547:(t,e,a)=>{a.d(e,{Z:()=>u});var n=function(){var t=this,e=t._self._c;return e("div",{staticClass:"toastification"},[e("div",{staticClass:"d-flex align-items-start"},[e("b-avatar",{staticClass:"mr-75 flex-shrink-0",attrs:{variant:t.variant,size:"1.8rem"}},[e("feather-icon",{attrs:{icon:t.icon,size:"15"}})],1),e("div",{staticClass:"d-flex flex-grow-1"},[e("div",[t.title?e("h5",{staticClass:"mb-0 font-weight-bolder toastification-title",class:`text-${t.variant}`,domProps:{textContent:t._s(t.title)}}):t._e(),t.text?e("small",{staticClass:"d-inline-block text-body",domProps:{textContent:t._s(t.text)}}):t._e()]),e("span",{staticClass:"cursor-pointer toastification-close-icon ml-auto",on:{click:function(e){return t.$emit("close-toast")}}},[t.hideClose?t._e():e("feather-icon",{staticClass:"text-body",attrs:{icon:"XIcon"}})],1)])],1)])},r=[],o=a(47389);const s={components:{BAvatar:o.SH},props:{variant:{type:String,default:"primary"},icon:{type:String,default:null},title:{type:String,default:null},text:{type:String,default:null},hideClose:{type:Boolean,default:!1}}},i=s;var l=a(1001),d=(0,l.Z)(i,n,r,!1,null,"22d964ca",null);const u=d.exports},84764:(t,e,a)=>{a.r(e),a.d(e,{default:()=>m});var n=function(){var t=this,e=t._self._c;return e("b-card",[t.callResponse.data?e("b-form-textarea",{attrs:{plaintext:"","no-resize":"",rows:"30",value:t.callResponse.data}}):t._e()],1)},r=[],o=a(86855),s=a(333),i=a(34547),l=a(27616);const d={components:{BCard:o._,BFormTextarea:s.y,ToastificationContent:i.Z},data(){return{callResponse:{status:"",data:""}}},mounted(){this.daemonGetNetworkInfo()},methods:{async daemonGetNetworkInfo(){const t=await l.Z.getNetworkInfo();"error"===t.data.status?this.$toast({component:i.Z,props:{title:t.data.data.message||t.data.data,icon:"InfoIcon",variant:"danger"}}):(this.callResponse.status=t.data.status,this.callResponse.data=JSON.stringify(t.data.data,null,4))}}},u=d;var c=a(1001),g=(0,c.Z)(u,n,r,!1,null,null,null);const m=g.exports},27616:(t,e,a)=>{a.d(e,{Z:()=>r});var n=a(80914);const r={help(){return(0,n.Z)().get("/daemon/help")},helpSpecific(t){return(0,n.Z)().get(`/daemon/help/${t}`)},getInfo(){return(0,n.Z)().get("/daemon/getinfo")},getFluxNodeStatus(){return(0,n.Z)().get("/daemon/getzelnodestatus")},getRawTransaction(t,e){return(0,n.Z)().get(`/daemon/getrawtransaction/${t}/${e}`)},listFluxNodes(){return(0,n.Z)().get("/daemon/listzelnodes")},viewDeterministicFluxNodeList(){return(0,n.Z)().get("/daemon/viewdeterministiczelnodelist")},getFluxNodeCount(){return(0,n.Z)().get("/daemon/getzelnodecount")},getStartList(){return(0,n.Z)().get("/daemon/getstartlist")},getDOSList(){return(0,n.Z)().get("/daemon/getdoslist")},fluxCurrentWinner(){return(0,n.Z)().get("/daemon/fluxcurrentwinner")},getBenchmarks(){return(0,n.Z)().get("/daemon/getbenchmarks")},getBenchStatus(){return(0,n.Z)().get("/daemon/getbenchstatus")},startBenchmark(t){return(0,n.Z)().get("/daemon/startbenchmark",{headers:{zelidauth:t}})},stopBenchmark(t){return(0,n.Z)().get("/daemon/stopbenchmark",{headers:{zelidauth:t}})},getBlockCount(){return(0,n.Z)().get("/daemon/getBlockCount")},getBlockchainInfo(){return(0,n.Z)().get("/daemon/getblockchaininfo")},getMiningInfo(){return(0,n.Z)().get("/daemon/getmininginfo")},getNetworkInfo(){return(0,n.Z)().get("/daemon/getnetworkinfo")},validateAddress(t,e){return(0,n.Z)().get(`/daemon/validateaddress/${e}`,{headers:{zelidauth:t}})},getWalletInfo(t){return(0,n.Z)().get("/daemon/getwalletinfo",{headers:{zelidauth:t}})},listFluxNodeConf(t){return(0,n.Z)().get("/daemon/listzelnodeconf",{headers:{zelidauth:t}})},start(t){return(0,n.Z)().get("/daemon/start",{headers:{zelidauth:t}})},restart(t){return(0,n.Z)().get("/daemon/restart",{headers:{zelidauth:t}})},stopDaemon(t){return(0,n.Z)().get("/daemon/stop",{headers:{zelidauth:t}})},rescanDaemon(t,e){return(0,n.Z)().get(`/daemon/rescanblockchain/${e}`,{headers:{zelidauth:t}})},getBlock(t,e){return(0,n.Z)().get(`/daemon/getblock/${t}/${e}`)},tailDaemonDebug(t){return(0,n.Z)().get("/flux/taildaemondebug",{headers:{zelidauth:t}})},justAPI(){return(0,n.Z)()},cancelToken(){return n.S}}}}]); \ No newline at end of file +"use strict";(self["webpackChunkflux"]=self["webpackChunkflux"]||[]).push([[4764],{34547:(t,e,a)=>{a.d(e,{Z:()=>u});var n=function(){var t=this,e=t._self._c;return e("div",{staticClass:"toastification"},[e("div",{staticClass:"d-flex align-items-start"},[e("b-avatar",{staticClass:"mr-75 flex-shrink-0",attrs:{variant:t.variant,size:"1.8rem"}},[e("feather-icon",{attrs:{icon:t.icon,size:"15"}})],1),e("div",{staticClass:"d-flex flex-grow-1"},[e("div",[t.title?e("h5",{staticClass:"mb-0 font-weight-bolder toastification-title",class:`text-${t.variant}`,domProps:{textContent:t._s(t.title)}}):t._e(),t.text?e("small",{staticClass:"d-inline-block text-body",domProps:{textContent:t._s(t.text)}}):t._e()]),e("span",{staticClass:"cursor-pointer toastification-close-icon ml-auto",on:{click:function(e){return t.$emit("close-toast")}}},[t.hideClose?t._e():e("feather-icon",{staticClass:"text-body",attrs:{icon:"XIcon"}})],1)])],1)])},r=[],o=a(47389);const s={components:{BAvatar:o.SH},props:{variant:{type:String,default:"primary"},icon:{type:String,default:null},title:{type:String,default:null},text:{type:String,default:null},hideClose:{type:Boolean,default:!1}}},i=s;var l=a(1001),d=(0,l.Z)(i,n,r,!1,null,"22d964ca",null);const u=d.exports},84764:(t,e,a)=>{a.r(e),a.d(e,{default:()=>m});var n=function(){var t=this,e=t._self._c;return e("b-card",[t.callResponse.data?e("b-form-textarea",{attrs:{plaintext:"","no-resize":"",rows:"30",value:t.callResponse.data}}):t._e()],1)},r=[],o=a(86855),s=a(333),i=a(34547),l=a(27616);const d={components:{BCard:o._,BFormTextarea:s.y,ToastificationContent:i.Z},data(){return{callResponse:{status:"",data:""}}},mounted(){this.daemonGetNetworkInfo()},methods:{async daemonGetNetworkInfo(){const t=await l.Z.getNetworkInfo();"error"===t.data.status?this.$toast({component:i.Z,props:{title:t.data.data.message||t.data.data,icon:"InfoIcon",variant:"danger"}}):(this.callResponse.status=t.data.status,this.callResponse.data=JSON.stringify(t.data.data,null,4))}}},u=d;var c=a(1001),g=(0,c.Z)(u,n,r,!1,null,null,null);const m=g.exports},27616:(t,e,a)=>{a.d(e,{Z:()=>r});var n=a(80914);const r={help(){return(0,n.Z)().get("/daemon/help")},helpSpecific(t){return(0,n.Z)().get(`/daemon/help/${t}`)},getInfo(){return(0,n.Z)().get("/daemon/getinfo")},getFluxNodeStatus(){return(0,n.Z)().get("/daemon/getzelnodestatus")},getRawTransaction(t,e){return(0,n.Z)().get(`/daemon/getrawtransaction/${t}/${e}`)},listFluxNodes(){return(0,n.Z)().get("/daemon/listzelnodes")},viewDeterministicFluxNodeList(){return(0,n.Z)().get("/daemon/viewdeterministiczelnodelist")},getFluxNodeCount(){return(0,n.Z)().get("/daemon/getzelnodecount")},getStartList(){return(0,n.Z)().get("/daemon/getstartlist")},getDOSList(){return(0,n.Z)().get("/daemon/getdoslist")},fluxCurrentWinner(){return(0,n.Z)().get("/daemon/fluxcurrentwinner")},getBenchmarks(){return(0,n.Z)().get("/daemon/getbenchmarks")},getBenchStatus(){return(0,n.Z)().get("/daemon/getbenchstatus")},startBenchmark(t){return(0,n.Z)().get("/daemon/startbenchmark",{headers:{zelidauth:t}})},stopBenchmark(t){return(0,n.Z)().get("/daemon/stopbenchmark",{headers:{zelidauth:t}})},getBlockCount(){return(0,n.Z)().get("/daemon/getBlockCount")},getBlockchainInfo(){return(0,n.Z)().get("/daemon/getblockchaininfo")},getMiningInfo(){return(0,n.Z)().get("/daemon/getmininginfo")},getNetworkInfo(){return(0,n.Z)().get("/daemon/getnetworkinfo")},validateAddress(t,e){return(0,n.Z)().get(`/daemon/validateaddress/${e}`,{headers:{zelidauth:t}})},getWalletInfo(t){return(0,n.Z)().get("/daemon/getwalletinfo",{headers:{zelidauth:t}})},listFluxNodeConf(t){return(0,n.Z)().get("/daemon/listzelnodeconf",{headers:{zelidauth:t}})},start(t){return(0,n.Z)().get("/daemon/start",{headers:{zelidauth:t}})},restart(t){return(0,n.Z)().get("/daemon/restart",{headers:{zelidauth:t}})},stopDaemon(t){return(0,n.Z)().get("/daemon/stop",{headers:{zelidauth:t}})},rescanDaemon(t,e){return(0,n.Z)().get(`/daemon/rescanblockchain/${e}`,{headers:{zelidauth:t}})},getBlock(t,e){return(0,n.Z)().get(`/daemon/getblock/${t}/${e}`)},tailDaemonDebug(t){return(0,n.Z)().get("/flux/taildaemondebug",{headers:{zelidauth:t}})},justAPI(){return(0,n.Z)()},cancelToken(){return n.S}}}}]); \ No newline at end of file diff --git a/HomeUI/dist/js/4917.js b/HomeUI/dist/js/4917.js new file mode 100644 index 000000000..00af49860 --- /dev/null +++ b/HomeUI/dist/js/4917.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunkflux"]=self["webpackChunkflux"]||[]).push([[4917],{57796:(e,t,a)=>{a.d(t,{Z:()=>p});var s=function(){var e=this,t=e._self._c;return t("div",{staticClass:"collapse-icon",class:e.collapseClasses,attrs:{role:"tablist"}},[e._t("default")],2)},l=[],n=(a(70560),a(57632));const r={props:{accordion:{type:Boolean,default:!1},hover:{type:Boolean,default:!1},type:{type:String,default:"default"}},data(){return{collapseID:""}},computed:{collapseClasses(){const e=[],t={default:"collapse-default",border:"collapse-border",shadow:"collapse-shadow",margin:"collapse-margin"};return e.push(t[this.type]),e}},created(){this.collapseID=(0,n.Z)()}},o=r;var i=a(1001),c=(0,i.Z)(o,s,l,!1,null,null,null);const p=c.exports},22049:(e,t,a)=>{a.d(t,{Z:()=>m});var s=function(){var e=this,t=e._self._c;return t("b-card",{class:{open:e.visible},attrs:{"no-body":""},on:{mouseenter:e.collapseOpen,mouseleave:e.collapseClose,focus:e.collapseOpen,blur:e.collapseClose}},[t("b-card-header",{class:{collapsed:!e.visible},attrs:{"aria-expanded":e.visible?"true":"false","aria-controls":e.collapseItemID,role:"tab","data-toggle":"collapse"},on:{click:function(t){return e.updateVisible(!e.visible)}}},[e._t("header",(function(){return[t("span",{staticClass:"lead collapse-title"},[e._v(e._s(e.title))])]}))],2),t("b-collapse",{attrs:{id:e.collapseItemID,accordion:e.accordion,role:"tabpanel"},model:{value:e.visible,callback:function(t){e.visible=t},expression:"visible"}},[t("b-card-body",[e._t("default")],2)],1)],1)},l=[],n=a(86855),r=a(87047),o=a(19279),i=a(11688),c=a(57632);const p={components:{BCard:n._,BCardHeader:r.p,BCardBody:o.O,BCollapse:i.k},props:{isVisible:{type:Boolean,default:!1},title:{type:String,required:!0}},data(){return{visible:!1,collapseItemID:"",openOnHover:this.$parent.hover}},computed:{accordion(){return this.$parent.accordion?`accordion-${this.$parent.collapseID}`:null}},created(){this.collapseItemID=(0,c.Z)(),this.visible=this.isVisible},methods:{updateVisible(e=!0){this.visible=e,this.$emit("visible",e)},collapseOpen(){this.openOnHover&&this.updateVisible(!0)},collapseClose(){this.openOnHover&&this.updateVisible(!1)}}},d=p;var u=a(1001),h=(0,u.Z)(d,s,l,!1,null,null,null);const m=h.exports},34547:(e,t,a)=>{a.d(t,{Z:()=>p});var s=function(){var e=this,t=e._self._c;return t("div",{staticClass:"toastification"},[t("div",{staticClass:"d-flex align-items-start"},[t("b-avatar",{staticClass:"mr-75 flex-shrink-0",attrs:{variant:e.variant,size:"1.8rem"}},[t("feather-icon",{attrs:{icon:e.icon,size:"15"}})],1),t("div",{staticClass:"d-flex flex-grow-1"},[t("div",[e.title?t("h5",{staticClass:"mb-0 font-weight-bolder toastification-title",class:`text-${e.variant}`,domProps:{textContent:e._s(e.title)}}):e._e(),e.text?t("small",{staticClass:"d-inline-block text-body",domProps:{textContent:e._s(e.text)}}):e._e()]),t("span",{staticClass:"cursor-pointer toastification-close-icon ml-auto",on:{click:function(t){return e.$emit("close-toast")}}},[e.hideClose?e._e():t("feather-icon",{staticClass:"text-body",attrs:{icon:"XIcon"}})],1)])],1)])},l=[],n=a(47389);const r={components:{BAvatar:n.SH},props:{variant:{type:String,default:"primary"},icon:{type:String,default:null},title:{type:String,default:null},text:{type:String,default:null},hideClose:{type:Boolean,default:!1}}},o=r;var i=a(1001),c=(0,i.Z)(o,s,l,!1,null,"22d964ca",null);const p=c.exports},34917:(e,t,a)=>{a.r(t),a.d(t,{default:()=>m});var s=function(){var e=this,t=e._self._c;return t("div",[e.callResponse.data?t("b-card",[t("app-collapse",{attrs:{accordion:""},model:{value:e.activeHelpNames,callback:function(t){e.activeHelpNames=t},expression:"activeHelpNames"}},e._l(e.helpResponse,(function(a){return t("div",{key:a},[a.startsWith("=")?t("div",[t("br"),t("h2",[e._v(" "+e._s(a.split(" ")[1])+" ")])]):e._e(),a.startsWith("=")?e._e():t("app-collapse-item",{attrs:{title:a},on:{visible:function(t){return e.updateActiveHelpNames(t,a)}}},[t("p",{staticClass:"helpSpecific"},[e._v(" "+e._s(e.currentHelpResponse||"Loading help message...")+" ")]),t("hr")])],1)})),0)],1):e._e()],1)},l=[],n=a(86855),r=a(34547),o=a(57796),i=a(22049),c=a(39569);const p={components:{BCard:n._,AppCollapse:o.Z,AppCollapseItem:i.Z,ToastificationContent:r.Z},data(){return{callResponse:{status:"",data:""},activeHelpNames:"",currentHelpResponse:""}},computed:{helpResponse(){return this.callResponse.data?this.callResponse.data.split("\n").filter((e=>""!==e)).map((e=>e.startsWith("=")?e:e.split(" ")[0])):[]}},mounted(){this.daemonHelp()},methods:{async daemonHelp(){const e=await c.Z.help();"error"===e.data.status?this.$toast({component:r.Z,props:{title:e.data.data.message||e.data.data,icon:"InfoIcon",variant:"danger"}}):(this.callResponse.status=e.data.status,this.callResponse.data=e.data.data)},updateActiveHelpNames(e,t){this.activeHelpNames=t,this.benchmarkHelpSpecific()},async benchmarkHelpSpecific(){this.currentHelpResponse="",console.log(this.activeHelpNames);const e=await c.Z.helpSpecific(this.activeHelpNames);if(console.log(e),"error"===e.data.status)this.$toast({component:r.Z,props:{title:e.data.data.message||e.data.data,icon:"InfoIcon",variant:"danger"}});else{const t=e.data.data.split("\n"),a=t.length;let s=0;for(let e=0;e{a.d(t,{Z:()=>l});var s=a(80914);const l={start(e){return(0,s.Z)().get("/benchmark/start",{headers:{zelidauth:e}})},restart(e){return(0,s.Z)().get("/benchmark/restart",{headers:{zelidauth:e}})},getStatus(){return(0,s.Z)().get("/benchmark/getstatus")},restartNodeBenchmarks(e){return(0,s.Z)().get("/benchmark/restartnodebenchmarks",{headers:{zelidauth:e}})},signFluxTransaction(e,t){return(0,s.Z)().get(`/benchmark/signzelnodetransaction/${t}`,{headers:{zelidauth:e}})},helpSpecific(e){return(0,s.Z)().get(`/benchmark/help/${e}`)},help(){return(0,s.Z)().get("/benchmark/help")},stop(e){return(0,s.Z)().get("/benchmark/stop",{headers:{zelidauth:e}})},getBenchmarks(){return(0,s.Z)().get("/benchmark/getbenchmarks")},getInfo(){return(0,s.Z)().get("/benchmark/getinfo")},tailBenchmarkDebug(e){return(0,s.Z)().get("/flux/tailbenchmarkdebug",{headers:{zelidauth:e}})},justAPI(){return(0,s.Z)()},cancelToken(){return s.S}}},57632:(e,t,a)=>{a.d(t,{Z:()=>d});const s="undefined"!==typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),l={randomUUID:s};let n;const r=new Uint8Array(16);function o(){if(!n&&(n="undefined"!==typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!n))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return n(r)}const i=[];for(let u=0;u<256;++u)i.push((u+256).toString(16).slice(1));function c(e,t=0){return i[e[t+0]]+i[e[t+1]]+i[e[t+2]]+i[e[t+3]]+"-"+i[e[t+4]]+i[e[t+5]]+"-"+i[e[t+6]]+i[e[t+7]]+"-"+i[e[t+8]]+i[e[t+9]]+"-"+i[e[t+10]]+i[e[t+11]]+i[e[t+12]]+i[e[t+13]]+i[e[t+14]]+i[e[t+15]]}function p(e,t,a){if(l.randomUUID&&!t&&!e)return l.randomUUID();e=e||{};const s=e.random||(e.rng||o)();if(s[6]=15&s[6]|64,s[8]=63&s[8]|128,t){a=a||0;for(let e=0;e<16;++e)t[a+e]=s[e];return t}return c(s)}const d=p}}]); \ No newline at end of file diff --git a/HomeUI/dist/js/5038.js b/HomeUI/dist/js/5038.js index c3e15859d..5873e6d8e 100644 --- a/HomeUI/dist/js/5038.js +++ b/HomeUI/dist/js/5038.js @@ -1 +1 @@ -"use strict";(globalThis["webpackChunkflux"]=globalThis["webpackChunkflux"]||[]).push([[5038],{34547:(t,e,a)=>{a.d(e,{Z:()=>d});var r=function(){var t=this,e=t._self._c;return e("div",{staticClass:"toastification"},[e("div",{staticClass:"d-flex align-items-start"},[e("b-avatar",{staticClass:"mr-75 flex-shrink-0",attrs:{variant:t.variant,size:"1.8rem"}},[e("feather-icon",{attrs:{icon:t.icon,size:"15"}})],1),e("div",{staticClass:"d-flex flex-grow-1"},[e("div",[t.title?e("h5",{staticClass:"mb-0 font-weight-bolder toastification-title",class:`text-${t.variant}`,domProps:{textContent:t._s(t.title)}}):t._e(),t.text?e("small",{staticClass:"d-inline-block text-body",domProps:{textContent:t._s(t.text)}}):t._e()]),e("span",{staticClass:"cursor-pointer toastification-close-icon ml-auto",on:{click:function(e){return t.$emit("close-toast")}}},[t.hideClose?t._e():e("feather-icon",{staticClass:"text-body",attrs:{icon:"XIcon"}})],1)])],1)])},n=[],s=a(47389);const i={components:{BAvatar:s.SH},props:{variant:{type:String,default:"primary"},icon:{type:String,default:null},title:{type:String,default:null},text:{type:String,default:null},hideClose:{type:Boolean,default:!1}}},o=i;var l=a(1001),c=(0,l.Z)(o,r,n,!1,null,"22d964ca",null);const d=c.exports},45038:(t,e,a)=>{a.r(e),a.d(e,{default:()=>g});var r=function(){var t=this,e=t._self._c;return e("b-card",[e("div",[e("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"ml-1",attrs:{id:"start-benchmark",variant:"outline-primary",size:"md"}},[t._v(" Start Benchmark ")]),e("b-popover",{ref:"popover",attrs:{target:"start-benchmark",triggers:"click",show:t.popoverShow,placement:"auto",container:"my-container"},on:{"update:show":function(e){t.popoverShow=e}},scopedSlots:t._u([{key:"title",fn:function(){return[e("div",{staticClass:"d-flex justify-content-between align-items-center"},[e("span",[t._v("Are You Sure?")]),e("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"close",attrs:{variant:"transparent","aria-label":"Close"},on:{click:t.onClose}},[e("span",{staticClass:"d-inline-block text-white",attrs:{"aria-hidden":"true"}},[t._v("×")])])],1)]},proxy:!0}])},[e("div",[e("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"mr-1",attrs:{size:"sm",variant:"danger"},on:{click:t.onClose}},[t._v(" Cancel ")]),e("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],attrs:{size:"sm",variant:"primary"},on:{click:t.onOk}},[t._v(" Start Benchmark ")])],1)]),e("b-modal",{attrs:{id:"modal-center",centered:"",title:"Benchmark Start","ok-only":"","ok-title":"OK"},model:{value:t.modalShow,callback:function(e){t.modalShow=e},expression:"modalShow"}},[e("b-card-text",[t._v(" The benchmark will now start. ")])],1)],1)])},n=[],s=a(86855),i=a(15193),o=a(53862),l=a(31220),c=a(64206),d=a(34547),p=a(20266),u=a(39569);const h={components:{BCard:s._,BButton:i.T,BPopover:o.x,BModal:l.N,BCardText:c.j,ToastificationContent:d.Z},directives:{Ripple:p.Z},data(){return{popoverShow:!1,modalShow:!1}},methods:{onClose(){this.popoverShow=!1},onOk(){this.popoverShow=!1,this.modalShow=!0;const t=localStorage.getItem("zelidauth");u.Z.start(t).then((t=>{this.$toast({component:d.Z,props:{title:t.data.data.message||t.data.data,icon:"InfoIcon",variant:"success"}})})).catch((()=>{this.$toast({component:d.Z,props:{title:"Error while trying to start Benchmark",icon:"InfoIcon",variant:"danger"}})}))}}},m=h;var v=a(1001),b=(0,v.Z)(m,r,n,!1,null,null,null);const g=b.exports},39569:(t,e,a)=>{a.d(e,{Z:()=>n});var r=a(80914);const n={start(t){return(0,r.Z)().get("/benchmark/start",{headers:{zelidauth:t}})},restart(t){return(0,r.Z)().get("/benchmark/restart",{headers:{zelidauth:t}})},getStatus(){return(0,r.Z)().get("/benchmark/getstatus")},restartNodeBenchmarks(t){return(0,r.Z)().get("/benchmark/restartnodebenchmarks",{headers:{zelidauth:t}})},signFluxTransaction(t,e){return(0,r.Z)().get(`/benchmark/signzelnodetransaction/${e}`,{headers:{zelidauth:t}})},helpSpecific(t){return(0,r.Z)().get(`/benchmark/help/${t}`)},help(){return(0,r.Z)().get("/benchmark/help")},stop(t){return(0,r.Z)().get("/benchmark/stop",{headers:{zelidauth:t}})},getBenchmarks(){return(0,r.Z)().get("/benchmark/getbenchmarks")},getInfo(){return(0,r.Z)().get("/benchmark/getinfo")},tailBenchmarkDebug(t){return(0,r.Z)().get("/flux/tailbenchmarkdebug",{headers:{zelidauth:t}})},justAPI(){return(0,r.Z)()},cancelToken(){return r.S}}}}]); \ No newline at end of file +"use strict";(self["webpackChunkflux"]=self["webpackChunkflux"]||[]).push([[5038],{34547:(t,e,a)=>{a.d(e,{Z:()=>d});var r=function(){var t=this,e=t._self._c;return e("div",{staticClass:"toastification"},[e("div",{staticClass:"d-flex align-items-start"},[e("b-avatar",{staticClass:"mr-75 flex-shrink-0",attrs:{variant:t.variant,size:"1.8rem"}},[e("feather-icon",{attrs:{icon:t.icon,size:"15"}})],1),e("div",{staticClass:"d-flex flex-grow-1"},[e("div",[t.title?e("h5",{staticClass:"mb-0 font-weight-bolder toastification-title",class:`text-${t.variant}`,domProps:{textContent:t._s(t.title)}}):t._e(),t.text?e("small",{staticClass:"d-inline-block text-body",domProps:{textContent:t._s(t.text)}}):t._e()]),e("span",{staticClass:"cursor-pointer toastification-close-icon ml-auto",on:{click:function(e){return t.$emit("close-toast")}}},[t.hideClose?t._e():e("feather-icon",{staticClass:"text-body",attrs:{icon:"XIcon"}})],1)])],1)])},n=[],s=a(47389);const i={components:{BAvatar:s.SH},props:{variant:{type:String,default:"primary"},icon:{type:String,default:null},title:{type:String,default:null},text:{type:String,default:null},hideClose:{type:Boolean,default:!1}}},o=i;var l=a(1001),c=(0,l.Z)(o,r,n,!1,null,"22d964ca",null);const d=c.exports},45038:(t,e,a)=>{a.r(e),a.d(e,{default:()=>g});var r=function(){var t=this,e=t._self._c;return e("b-card",[e("div",[e("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"ml-1",attrs:{id:"start-benchmark",variant:"outline-primary",size:"md"}},[t._v(" Start Benchmark ")]),e("b-popover",{ref:"popover",attrs:{target:"start-benchmark",triggers:"click",show:t.popoverShow,placement:"auto",container:"my-container"},on:{"update:show":function(e){t.popoverShow=e}},scopedSlots:t._u([{key:"title",fn:function(){return[e("div",{staticClass:"d-flex justify-content-between align-items-center"},[e("span",[t._v("Are You Sure?")]),e("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"close",attrs:{variant:"transparent","aria-label":"Close"},on:{click:t.onClose}},[e("span",{staticClass:"d-inline-block text-white",attrs:{"aria-hidden":"true"}},[t._v("×")])])],1)]},proxy:!0}])},[e("div",[e("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"mr-1",attrs:{size:"sm",variant:"danger"},on:{click:t.onClose}},[t._v(" Cancel ")]),e("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],attrs:{size:"sm",variant:"primary"},on:{click:t.onOk}},[t._v(" Start Benchmark ")])],1)]),e("b-modal",{attrs:{id:"modal-center",centered:"",title:"Benchmark Start","ok-only":"","ok-title":"OK"},model:{value:t.modalShow,callback:function(e){t.modalShow=e},expression:"modalShow"}},[e("b-card-text",[t._v(" The benchmark will now start. ")])],1)],1)])},n=[],s=a(86855),i=a(15193),o=a(53862),l=a(31220),c=a(64206),d=a(34547),p=a(20266),u=a(39569);const h={components:{BCard:s._,BButton:i.T,BPopover:o.x,BModal:l.N,BCardText:c.j,ToastificationContent:d.Z},directives:{Ripple:p.Z},data(){return{popoverShow:!1,modalShow:!1}},methods:{onClose(){this.popoverShow=!1},onOk(){this.popoverShow=!1,this.modalShow=!0;const t=localStorage.getItem("zelidauth");u.Z.start(t).then((t=>{this.$toast({component:d.Z,props:{title:t.data.data.message||t.data.data,icon:"InfoIcon",variant:"success"}})})).catch((()=>{this.$toast({component:d.Z,props:{title:"Error while trying to start Benchmark",icon:"InfoIcon",variant:"danger"}})}))}}},m=h;var v=a(1001),b=(0,v.Z)(m,r,n,!1,null,null,null);const g=b.exports},39569:(t,e,a)=>{a.d(e,{Z:()=>n});var r=a(80914);const n={start(t){return(0,r.Z)().get("/benchmark/start",{headers:{zelidauth:t}})},restart(t){return(0,r.Z)().get("/benchmark/restart",{headers:{zelidauth:t}})},getStatus(){return(0,r.Z)().get("/benchmark/getstatus")},restartNodeBenchmarks(t){return(0,r.Z)().get("/benchmark/restartnodebenchmarks",{headers:{zelidauth:t}})},signFluxTransaction(t,e){return(0,r.Z)().get(`/benchmark/signzelnodetransaction/${e}`,{headers:{zelidauth:t}})},helpSpecific(t){return(0,r.Z)().get(`/benchmark/help/${t}`)},help(){return(0,r.Z)().get("/benchmark/help")},stop(t){return(0,r.Z)().get("/benchmark/stop",{headers:{zelidauth:t}})},getBenchmarks(){return(0,r.Z)().get("/benchmark/getbenchmarks")},getInfo(){return(0,r.Z)().get("/benchmark/getinfo")},tailBenchmarkDebug(t){return(0,r.Z)().get("/flux/tailbenchmarkdebug",{headers:{zelidauth:t}})},justAPI(){return(0,r.Z)()},cancelToken(){return r.S}}}}]); \ No newline at end of file diff --git a/HomeUI/dist/js/5213.js b/HomeUI/dist/js/5213.js index b57285f85..d5e21bd3f 100644 --- a/HomeUI/dist/js/5213.js +++ b/HomeUI/dist/js/5213.js @@ -1 +1 @@ -"use strict";(globalThis["webpackChunkflux"]=globalThis["webpackChunkflux"]||[]).push([[5213],{34547:(t,e,a)=>{a.d(e,{Z:()=>u});var n=function(){var t=this,e=t._self._c;return e("div",{staticClass:"toastification"},[e("div",{staticClass:"d-flex align-items-start"},[e("b-avatar",{staticClass:"mr-75 flex-shrink-0",attrs:{variant:t.variant,size:"1.8rem"}},[e("feather-icon",{attrs:{icon:t.icon,size:"15"}})],1),e("div",{staticClass:"d-flex flex-grow-1"},[e("div",[t.title?e("h5",{staticClass:"mb-0 font-weight-bolder toastification-title",class:`text-${t.variant}`,domProps:{textContent:t._s(t.title)}}):t._e(),t.text?e("small",{staticClass:"d-inline-block text-body",domProps:{textContent:t._s(t.text)}}):t._e()]),e("span",{staticClass:"cursor-pointer toastification-close-icon ml-auto",on:{click:function(e){return t.$emit("close-toast")}}},[t.hideClose?t._e():e("feather-icon",{staticClass:"text-body",attrs:{icon:"XIcon"}})],1)])],1)])},r=[],s=a(47389);const o={components:{BAvatar:s.SH},props:{variant:{type:String,default:"primary"},icon:{type:String,default:null},title:{type:String,default:null},text:{type:String,default:null},hideClose:{type:Boolean,default:!1}}},i=o;var l=a(1001),d=(0,l.Z)(i,n,r,!1,null,"22d964ca",null);const u=d.exports},51748:(t,e,a)=>{a.d(e,{Z:()=>u});var n=function(){var t=this,e=t._self._c;return e("dl",{staticClass:"row",class:t.classes},[e("dt",{staticClass:"col-sm-3"},[t._v(" "+t._s(t.title)+" ")]),t.href.length>0?e("dd",{staticClass:"col-sm-9 mb-0",class:`text-${t.variant}`},[t.href.length>0?e("b-link",{attrs:{href:t.href,target:"_blank",rel:"noopener noreferrer"}},[t._v(" "+t._s(t.data.length>0?t.data:t.number!==Number.MAX_VALUE?t.number:"")+" ")]):t._e()],1):t.click?e("dd",{staticClass:"col-sm-9 mb-0",class:`text-${t.variant}`,on:{click:function(e){return t.$emit("click")}}},[e("b-link",[t._v(" "+t._s(t.data.length>0?t.data:t.number!==Number.MAX_VALUE?t.number:"")+" ")])],1):e("dd",{staticClass:"col-sm-9 mb-0",class:`text-${t.variant}`},[t._v(" "+t._s(t.data.length>0?t.data:t.number!==Number.MAX_VALUE?t.number:"")+" ")])])},r=[],s=a(67347);const o={components:{BLink:s.we},props:{title:{type:String,required:!0},classes:{type:String,required:!1,default:"mb-1"},data:{type:String,required:!1,default:""},number:{type:Number,required:!1,default:Number.MAX_VALUE},variant:{type:String,required:!1,default:"secondary"},href:{type:String,required:!1,default:""},click:{type:Boolean,required:!1,default:!1}}},i=o;var l=a(1001),d=(0,l.Z)(i,n,r,!1,null,null,null);const u=d.exports},35213:(t,e,a)=>{a.r(e),a.d(e,{default:()=>f});var n=function(){var t=this,e=t._self._c;return""!==t.getInfoResponse.data?e("b-card",{attrs:{title:"Get Info"}},[e("list-entry",{attrs:{title:"Daemon Version",data:t.getInfoResponse.data.version.toFixed(0)}}),e("list-entry",{attrs:{title:"Protocol Version",data:t.getInfoResponse.data.protocolversion.toFixed(0)}}),e("list-entry",{attrs:{title:"Wallet Version",data:t.getInfoResponse.data.walletversion.toFixed(0)}}),t.getInfoResponse.data.balance?e("list-entry",{attrs:{title:"Balance",data:t.getInfoResponse.data.balance.toFixed(0)}}):t._e(),e("list-entry",{attrs:{title:"Blocks",data:t.getInfoResponse.data.blocks.toFixed(0)}}),e("list-entry",{attrs:{title:"Time Offset",data:t.getInfoResponse.data.timeoffset.toString()}}),e("list-entry",{attrs:{title:"Connections",data:t.getInfoResponse.data.connections.toFixed(0)}}),e("list-entry",{attrs:{title:"Proxy",data:t.getInfoResponse.data.proxy}}),e("list-entry",{attrs:{title:"Difficulty",data:t.getInfoResponse.data.difficulty.toFixed(0)}}),e("list-entry",{attrs:{title:"Testnet",data:t.getInfoResponse.data.testnet.toString()}}),e("list-entry",{attrs:{title:"Key Pool Oldest",data:new Date(1e3*t.getInfoResponse.data.keypoololdest).toLocaleString("en-GB",t.timeoptions.shortDate)}}),e("list-entry",{attrs:{title:"Key Pool Size",data:t.getInfoResponse.data.keypoolsize.toFixed(0)}}),e("list-entry",{attrs:{title:"Pay TX Fee",data:t.getInfoResponse.data.paytxfee.toString()}}),e("list-entry",{attrs:{title:"Relay Fee",data:t.getInfoResponse.data.relayfee.toString()}}),""!==t.getInfoResponse.data.errors?e("list-entry",{attrs:{title:"Error",data:t.getInfoResponse.data.errors,variant:"danger"}}):t._e()],1):t._e()},r=[],s=a(86855),o=a(34547),i=a(51748),l=a(27616);const d=a(63005),u={components:{ListEntry:i.Z,BCard:s._,ToastificationContent:o.Z},data(){return{timeoptions:d,getInfoResponse:{status:"",data:""}}},mounted(){this.daemonGetNodeStatus()},methods:{async daemonGetNodeStatus(){const t=await l.Z.getInfo();"error"===t.data.status?this.$toast({component:o.Z,props:{title:t.data.data.message||t.data.data,icon:"InfoIcon",variant:"danger"}}):(this.getInfoResponse.status=t.data.status,this.getInfoResponse.data=t.data.data)}}},c=u;var g=a(1001),m=(0,g.Z)(c,n,r,!1,null,null,null);const f=m.exports},63005:(t,e,a)=>{a.r(e),a.d(e,{default:()=>s});const n={year:"numeric",month:"short",day:"numeric",hour:"2-digit",minute:"2-digit"},r={year:"numeric",month:"short",day:"numeric"},s={shortDate:n,date:r}},27616:(t,e,a)=>{a.d(e,{Z:()=>r});var n=a(80914);const r={help(){return(0,n.Z)().get("/daemon/help")},helpSpecific(t){return(0,n.Z)().get(`/daemon/help/${t}`)},getInfo(){return(0,n.Z)().get("/daemon/getinfo")},getFluxNodeStatus(){return(0,n.Z)().get("/daemon/getzelnodestatus")},getRawTransaction(t,e){return(0,n.Z)().get(`/daemon/getrawtransaction/${t}/${e}`)},listFluxNodes(){return(0,n.Z)().get("/daemon/listzelnodes")},viewDeterministicFluxNodeList(){return(0,n.Z)().get("/daemon/viewdeterministiczelnodelist")},getFluxNodeCount(){return(0,n.Z)().get("/daemon/getzelnodecount")},getStartList(){return(0,n.Z)().get("/daemon/getstartlist")},getDOSList(){return(0,n.Z)().get("/daemon/getdoslist")},fluxCurrentWinner(){return(0,n.Z)().get("/daemon/fluxcurrentwinner")},getBenchmarks(){return(0,n.Z)().get("/daemon/getbenchmarks")},getBenchStatus(){return(0,n.Z)().get("/daemon/getbenchstatus")},startBenchmark(t){return(0,n.Z)().get("/daemon/startbenchmark",{headers:{zelidauth:t}})},stopBenchmark(t){return(0,n.Z)().get("/daemon/stopbenchmark",{headers:{zelidauth:t}})},getBlockCount(){return(0,n.Z)().get("/daemon/getBlockCount")},getBlockchainInfo(){return(0,n.Z)().get("/daemon/getblockchaininfo")},getMiningInfo(){return(0,n.Z)().get("/daemon/getmininginfo")},getNetworkInfo(){return(0,n.Z)().get("/daemon/getnetworkinfo")},validateAddress(t,e){return(0,n.Z)().get(`/daemon/validateaddress/${e}`,{headers:{zelidauth:t}})},getWalletInfo(t){return(0,n.Z)().get("/daemon/getwalletinfo",{headers:{zelidauth:t}})},listFluxNodeConf(t){return(0,n.Z)().get("/daemon/listzelnodeconf",{headers:{zelidauth:t}})},start(t){return(0,n.Z)().get("/daemon/start",{headers:{zelidauth:t}})},restart(t){return(0,n.Z)().get("/daemon/restart",{headers:{zelidauth:t}})},stopDaemon(t){return(0,n.Z)().get("/daemon/stop",{headers:{zelidauth:t}})},rescanDaemon(t,e){return(0,n.Z)().get(`/daemon/rescanblockchain/${e}`,{headers:{zelidauth:t}})},getBlock(t,e){return(0,n.Z)().get(`/daemon/getblock/${t}/${e}`)},tailDaemonDebug(t){return(0,n.Z)().get("/flux/taildaemondebug",{headers:{zelidauth:t}})},justAPI(){return(0,n.Z)()},cancelToken(){return n.S}}}}]); \ No newline at end of file +"use strict";(self["webpackChunkflux"]=self["webpackChunkflux"]||[]).push([[5213],{34547:(t,e,a)=>{a.d(e,{Z:()=>u});var n=function(){var t=this,e=t._self._c;return e("div",{staticClass:"toastification"},[e("div",{staticClass:"d-flex align-items-start"},[e("b-avatar",{staticClass:"mr-75 flex-shrink-0",attrs:{variant:t.variant,size:"1.8rem"}},[e("feather-icon",{attrs:{icon:t.icon,size:"15"}})],1),e("div",{staticClass:"d-flex flex-grow-1"},[e("div",[t.title?e("h5",{staticClass:"mb-0 font-weight-bolder toastification-title",class:`text-${t.variant}`,domProps:{textContent:t._s(t.title)}}):t._e(),t.text?e("small",{staticClass:"d-inline-block text-body",domProps:{textContent:t._s(t.text)}}):t._e()]),e("span",{staticClass:"cursor-pointer toastification-close-icon ml-auto",on:{click:function(e){return t.$emit("close-toast")}}},[t.hideClose?t._e():e("feather-icon",{staticClass:"text-body",attrs:{icon:"XIcon"}})],1)])],1)])},r=[],s=a(47389);const o={components:{BAvatar:s.SH},props:{variant:{type:String,default:"primary"},icon:{type:String,default:null},title:{type:String,default:null},text:{type:String,default:null},hideClose:{type:Boolean,default:!1}}},i=o;var l=a(1001),d=(0,l.Z)(i,n,r,!1,null,"22d964ca",null);const u=d.exports},51748:(t,e,a)=>{a.d(e,{Z:()=>u});var n=function(){var t=this,e=t._self._c;return e("dl",{staticClass:"row",class:t.classes},[e("dt",{staticClass:"col-sm-3"},[t._v(" "+t._s(t.title)+" ")]),t.href.length>0?e("dd",{staticClass:"col-sm-9 mb-0",class:`text-${t.variant}`},[t.href.length>0?e("b-link",{attrs:{href:t.href,target:"_blank",rel:"noopener noreferrer"}},[t._v(" "+t._s(t.data.length>0?t.data:t.number!==Number.MAX_VALUE?t.number:"")+" ")]):t._e()],1):t.click?e("dd",{staticClass:"col-sm-9 mb-0",class:`text-${t.variant}`,on:{click:function(e){return t.$emit("click")}}},[e("b-link",[t._v(" "+t._s(t.data.length>0?t.data:t.number!==Number.MAX_VALUE?t.number:"")+" ")])],1):e("dd",{staticClass:"col-sm-9 mb-0",class:`text-${t.variant}`},[t._v(" "+t._s(t.data.length>0?t.data:t.number!==Number.MAX_VALUE?t.number:"")+" ")])])},r=[],s=a(67347);const o={components:{BLink:s.we},props:{title:{type:String,required:!0},classes:{type:String,required:!1,default:"mb-1"},data:{type:String,required:!1,default:""},number:{type:Number,required:!1,default:Number.MAX_VALUE},variant:{type:String,required:!1,default:"secondary"},href:{type:String,required:!1,default:""},click:{type:Boolean,required:!1,default:!1}}},i=o;var l=a(1001),d=(0,l.Z)(i,n,r,!1,null,null,null);const u=d.exports},35213:(t,e,a)=>{a.r(e),a.d(e,{default:()=>m});var n=function(){var t=this,e=t._self._c;return""!==t.getInfoResponse.data?e("b-card",{attrs:{title:"Get Info"}},[e("list-entry",{attrs:{title:"Daemon Version",data:t.getInfoResponse.data.version.toFixed(0)}}),e("list-entry",{attrs:{title:"Protocol Version",data:t.getInfoResponse.data.protocolversion.toFixed(0)}}),e("list-entry",{attrs:{title:"Wallet Version",data:t.getInfoResponse.data.walletversion.toFixed(0)}}),t.getInfoResponse.data.balance?e("list-entry",{attrs:{title:"Balance",data:t.getInfoResponse.data.balance.toFixed(0)}}):t._e(),e("list-entry",{attrs:{title:"Blocks",data:t.getInfoResponse.data.blocks.toFixed(0)}}),e("list-entry",{attrs:{title:"Time Offset",data:t.getInfoResponse.data.timeoffset.toString()}}),e("list-entry",{attrs:{title:"Connections",data:t.getInfoResponse.data.connections.toFixed(0)}}),e("list-entry",{attrs:{title:"Proxy",data:t.getInfoResponse.data.proxy}}),e("list-entry",{attrs:{title:"Difficulty",data:t.getInfoResponse.data.difficulty.toFixed(0)}}),e("list-entry",{attrs:{title:"Testnet",data:t.getInfoResponse.data.testnet.toString()}}),e("list-entry",{attrs:{title:"Key Pool Oldest",data:new Date(1e3*t.getInfoResponse.data.keypoololdest).toLocaleString("en-GB",t.timeoptions.shortDate)}}),e("list-entry",{attrs:{title:"Key Pool Size",data:t.getInfoResponse.data.keypoolsize.toFixed(0)}}),e("list-entry",{attrs:{title:"Pay TX Fee",data:t.getInfoResponse.data.paytxfee.toString()}}),e("list-entry",{attrs:{title:"Relay Fee",data:t.getInfoResponse.data.relayfee.toString()}}),""!==t.getInfoResponse.data.errors?e("list-entry",{attrs:{title:"Error",data:t.getInfoResponse.data.errors,variant:"danger"}}):t._e()],1):t._e()},r=[],s=a(86855),o=a(34547),i=a(51748),l=a(27616);const d=a(63005),u={components:{ListEntry:i.Z,BCard:s._,ToastificationContent:o.Z},data(){return{timeoptions:d,getInfoResponse:{status:"",data:""}}},mounted(){this.daemonGetNodeStatus()},methods:{async daemonGetNodeStatus(){const t=await l.Z.getInfo();"error"===t.data.status?this.$toast({component:o.Z,props:{title:t.data.data.message||t.data.data,icon:"InfoIcon",variant:"danger"}}):(this.getInfoResponse.status=t.data.status,this.getInfoResponse.data=t.data.data)}}},c=u;var g=a(1001),f=(0,g.Z)(c,n,r,!1,null,null,null);const m=f.exports},63005:(t,e,a)=>{a.r(e),a.d(e,{default:()=>s});const n={year:"numeric",month:"short",day:"numeric",hour:"2-digit",minute:"2-digit"},r={year:"numeric",month:"short",day:"numeric"},s={shortDate:n,date:r}},27616:(t,e,a)=>{a.d(e,{Z:()=>r});var n=a(80914);const r={help(){return(0,n.Z)().get("/daemon/help")},helpSpecific(t){return(0,n.Z)().get(`/daemon/help/${t}`)},getInfo(){return(0,n.Z)().get("/daemon/getinfo")},getFluxNodeStatus(){return(0,n.Z)().get("/daemon/getzelnodestatus")},getRawTransaction(t,e){return(0,n.Z)().get(`/daemon/getrawtransaction/${t}/${e}`)},listFluxNodes(){return(0,n.Z)().get("/daemon/listzelnodes")},viewDeterministicFluxNodeList(){return(0,n.Z)().get("/daemon/viewdeterministiczelnodelist")},getFluxNodeCount(){return(0,n.Z)().get("/daemon/getzelnodecount")},getStartList(){return(0,n.Z)().get("/daemon/getstartlist")},getDOSList(){return(0,n.Z)().get("/daemon/getdoslist")},fluxCurrentWinner(){return(0,n.Z)().get("/daemon/fluxcurrentwinner")},getBenchmarks(){return(0,n.Z)().get("/daemon/getbenchmarks")},getBenchStatus(){return(0,n.Z)().get("/daemon/getbenchstatus")},startBenchmark(t){return(0,n.Z)().get("/daemon/startbenchmark",{headers:{zelidauth:t}})},stopBenchmark(t){return(0,n.Z)().get("/daemon/stopbenchmark",{headers:{zelidauth:t}})},getBlockCount(){return(0,n.Z)().get("/daemon/getBlockCount")},getBlockchainInfo(){return(0,n.Z)().get("/daemon/getblockchaininfo")},getMiningInfo(){return(0,n.Z)().get("/daemon/getmininginfo")},getNetworkInfo(){return(0,n.Z)().get("/daemon/getnetworkinfo")},validateAddress(t,e){return(0,n.Z)().get(`/daemon/validateaddress/${e}`,{headers:{zelidauth:t}})},getWalletInfo(t){return(0,n.Z)().get("/daemon/getwalletinfo",{headers:{zelidauth:t}})},listFluxNodeConf(t){return(0,n.Z)().get("/daemon/listzelnodeconf",{headers:{zelidauth:t}})},start(t){return(0,n.Z)().get("/daemon/start",{headers:{zelidauth:t}})},restart(t){return(0,n.Z)().get("/daemon/restart",{headers:{zelidauth:t}})},stopDaemon(t){return(0,n.Z)().get("/daemon/stop",{headers:{zelidauth:t}})},rescanDaemon(t,e){return(0,n.Z)().get(`/daemon/rescanblockchain/${e}`,{headers:{zelidauth:t}})},getBlock(t,e){return(0,n.Z)().get(`/daemon/getblock/${t}/${e}`)},tailDaemonDebug(t){return(0,n.Z)().get("/flux/taildaemondebug",{headers:{zelidauth:t}})},justAPI(){return(0,n.Z)()},cancelToken(){return n.S}}}}]); \ No newline at end of file diff --git a/HomeUI/dist/js/5216.js b/HomeUI/dist/js/5216.js index 834008db2..a4a8ff4b9 100644 --- a/HomeUI/dist/js/5216.js +++ b/HomeUI/dist/js/5216.js @@ -1 +1,16 @@ -"use strict";(globalThis["webpackChunkflux"]=globalThis["webpackChunkflux"]||[]).push([[5216],{34547:(t,s,a)=>{a.d(s,{Z:()=>h});var e=function(){var t=this,s=t._self._c;return s("div",{staticClass:"toastification"},[s("div",{staticClass:"d-flex align-items-start"},[s("b-avatar",{staticClass:"mr-75 flex-shrink-0",attrs:{variant:t.variant,size:"1.8rem"}},[s("feather-icon",{attrs:{icon:t.icon,size:"15"}})],1),s("div",{staticClass:"d-flex flex-grow-1"},[s("div",[t.title?s("h5",{staticClass:"mb-0 font-weight-bolder toastification-title",class:`text-${t.variant}`,domProps:{textContent:t._s(t.title)}}):t._e(),t.text?s("small",{staticClass:"d-inline-block text-body",domProps:{textContent:t._s(t.text)}}):t._e()]),s("span",{staticClass:"cursor-pointer toastification-close-icon ml-auto",on:{click:function(s){return t.$emit("close-toast")}}},[t.hideClose?t._e():s("feather-icon",{staticClass:"text-body",attrs:{icon:"XIcon"}})],1)])],1)])},r=[],i=a(47389);const o={components:{BAvatar:i.SH},props:{variant:{type:String,default:"primary"},icon:{type:String,default:null},title:{type:String,default:null},text:{type:String,default:null},hideClose:{type:Boolean,default:!1}}},u=o;var l=a(1001),n=(0,l.Z)(u,e,r,!1,null,"22d964ca",null);const h=n.exports},25216:(t,s,a)=>{a.r(s),a.d(s,{default:()=>D});var e=function(){var t=this,s=t._self._c;return s("div",[s("b-row",[s("b-col",{attrs:{md:"6",sm:"12",lg:"3"}},[s("b-overlay",{attrs:{show:t.fluxListLoading,variant:"transparent",blur:"5px"}},[s("b-card",{attrs:{"no-body":""}},[s("b-card-body",{staticClass:"mr-2"},[s("b-avatar",{attrs:{size:"48",variant:"light-success"}},[s("feather-icon",{attrs:{size:"24",icon:"CpuIcon"}})],1),s("h2",{staticClass:"mt-1"},[t._v(" Total Cores: "+t._s(t.beautifyValue(t.totalCores,0))+" ")]),s("vue-apex-charts",{attrs:{type:"bar",height:"400",options:t.cpuData.chartOptions,series:t.cpuData.series}})],1)],1)],1)],1),s("b-col",{attrs:{md:"6",sm:"12",lg:"3"}},[s("b-overlay",{attrs:{show:t.fluxListLoading,variant:"transparent",blur:"5px"}},[s("b-card",{attrs:{"no-body":""}},[s("b-card-body",{staticClass:"mr-2"},[s("b-avatar",{attrs:{size:"48",variant:"light-success"}},[s("feather-icon",{attrs:{size:"24",icon:"DatabaseIcon"}})],1),s("h2",{staticClass:"mt-1"},[t._v(" Total RAM: "+t._s(t.beautifyValue(t.totalRAM/1024,2))+" TB ")]),s("vue-apex-charts",{attrs:{type:"bar",height:"400",options:t.ramData.chartOptions,series:t.ramData.series}})],1)],1)],1)],1),s("b-col",{attrs:{md:"6",sm:"12",lg:"3"}},[s("b-overlay",{attrs:{show:t.fluxListLoading,variant:"transparent",blur:"5px"}},[s("b-card",{attrs:{"no-body":""}},[s("b-card-body",{staticClass:"mr-2"},[s("b-avatar",{attrs:{size:"48",variant:"light-success"}},[s("feather-icon",{attrs:{size:"24",icon:"HardDriveIcon"}})],1),s("h2",{staticClass:"mt-1"},[t._v(" Total SSD: "+t._s(t.beautifyValue(t.totalSSD/1e6,2))+" PB ")]),s("vue-apex-charts",{attrs:{type:"bar",height:"400",options:t.ssdData.chartOptions,series:t.ssdData.series}})],1)],1)],1)],1),s("b-col",{attrs:{md:"6",sm:"12",lg:"3"}},[s("b-overlay",{attrs:{show:t.fluxListLoading,variant:"transparent",blur:"5px"}},[s("b-card",{attrs:{"no-body":""}},[s("b-card-body",{staticClass:"mr-2"},[s("b-avatar",{attrs:{size:"48",variant:"light-success"}},[s("feather-icon",{attrs:{size:"24",icon:"HardDriveIcon"}})],1),s("h2",{staticClass:"mt-1"},[t._v(" Total HDD: "+t._s(t.beautifyValue(t.totalHDD/1e3,2))+" TB ")]),s("vue-apex-charts",{attrs:{type:"bar",height:"400",options:t.hddData.chartOptions,series:t.hddData.series}})],1)],1)],1)],1)],1),s("b-row",[s("b-col",{attrs:{md:"12",sm:"12",lg:"4"}},[s("b-overlay",{attrs:{show:t.historyStatsLoading,variant:"transparent",blur:"5px"}},[s("b-card",{attrs:{"no-body":""}},[s("b-card-body",{staticClass:"mr-2"},[s("b-avatar",{attrs:{size:"48",variant:"light-success"}},[s("feather-icon",{attrs:{size:"24",icon:"CpuIcon"}})],1),s("h2",{staticClass:"mt-1"},[t._v(" CPU History ")])],1),s("vue-apex-charts",{attrs:{type:"area",height:"200",width:"100%",options:t.cpuHistoryData.chartOptions,series:t.cpuHistoryData.series}})],1)],1)],1),s("b-col",{attrs:{md:"6",sm:"12",lg:"4"}},[s("b-overlay",{attrs:{show:t.historyStatsLoading,variant:"transparent",blur:"5px"}},[s("b-card",{attrs:{"no-body":""}},[s("b-card-body",{staticClass:"mr-2"},[s("b-avatar",{attrs:{size:"48",variant:"light-success"}},[s("feather-icon",{attrs:{size:"24",icon:"DatabaseIcon"}})],1),s("h2",{staticClass:"mt-1"},[t._v(" RAM History ")])],1),s("vue-apex-charts",{attrs:{type:"area",height:"200",width:"100%",options:t.ramHistoryData.chartOptions,series:t.ramHistoryData.series}})],1)],1)],1),s("b-col",{attrs:{md:"6",sm:"12",lg:"4"}},[s("b-overlay",{attrs:{show:t.historyStatsLoading,variant:"transparent",blur:"5px"}},[s("b-card",{attrs:{"no-body":""}},[s("b-card-body",{staticClass:"mr-2"},[s("b-avatar",{attrs:{size:"48",variant:"light-success"}},[s("feather-icon",{attrs:{size:"24",icon:"HardDriveIcon"}})],1),s("h2",{staticClass:"mt-1"},[t._v(" Storage History ")])],1),s("vue-apex-charts",{attrs:{type:"area",height:"200",width:"100%",options:t.ssdHistoryData.chartOptions,series:t.ssdHistoryData.series}})],1)],1)],1)],1)],1)},r=[],i=(a(70560),a(86855)),o=a(19279),u=a(26253),l=a(50725),n=a(66126),h=a(47389),c=a(67166),m=a.n(c),b=a(34547),d=a(72918);const p=a(97218),y={components:{BCard:i._,BCardBody:o.O,BRow:u.T,BCol:l.l,BOverlay:n.X,BAvatar:h.SH,VueApexCharts:m(),ToastificationContent:b.Z},data(){return{timeoptions:{year:"numeric",month:"short",day:"numeric",hour:"2-digit",minute:"2-digit"},fluxListLoading:!0,fluxList:[],totalCores:0,totalRAM:0,totalSSD:0,totalHDD:0,cumulusCpuValue:0,nimbusCpuValue:0,stratusCpuValue:0,cumulusRamValue:0,nimbusRamValue:0,stratusRamValue:0,cumulusSSDStorageValue:0,cumulusHDDStorageValue:0,nimbusSSDStorageValue:0,nimbusHDDStorageValue:0,stratusSSDStorageValue:0,stratusHDDStorageValue:0,cpuData:{series:[],chartOptions:{colors:[d.Z.cumulus,d.Z.nimbus,d.Z.stratus],plotOptions:{bar:{columnWidth:"85%",distributed:!0}},dataLabels:{enabled:!1},legend:{show:!1},xaxis:{labels:{categories:["Cumulus","Nimbus","Stratus"],style:{colors:[d.Z.cumulus,d.Z.nimbus,d.Z.stratus],fontSize:"14px",fontFamily:"Montserrat"}}},yaxis:{labels:{style:{colors:"#888",fontSize:"14px",fontFamily:"Montserrat"},formatter:t=>this.beautifyValue(t,0)}},stroke:{lineCap:"round"},labels:["Cumulus","Nimbus","Stratus"]}},cpuHistoryData:{series:[],chartOptions:{colors:[d.Z.cumulus,d.Z.nimbus,d.Z.stratus],grid:{show:!1,padding:{left:0,right:0}},chart:{toolbar:{show:!1},sparkline:{enabled:!0}},dataLabels:{enabled:!1},stroke:{curve:"smooth",width:2.5},fill:{type:"gradient",gradient:{shadeIntensity:.9,opacityFrom:.5,opacityTo:0,stops:[0,80,100]}},xaxis:{type:"numeric",lines:{show:!1},axisBorder:{show:!1},labels:{show:!1}},yaxis:[{y:0,offsetX:0,offsetY:0,padding:{left:0,right:0}}],tooltip:{x:{formatter:t=>new Date(t).toLocaleString("en-GB",this.timeoptions)},y:{formatter:t=>this.beautifyValue(t,0)}}}},ramData:{series:[],chartOptions:{colors:[d.Z.cumulus,d.Z.nimbus,d.Z.stratus],plotOptions:{bar:{columnWidth:"85%",distributed:!0}},dataLabels:{enabled:!1},legend:{show:!1},xaxis:{labels:{categories:["Cumulus","Nimbus","Stratus"],style:{colors:[d.Z.cumulus,d.Z.nimbus,d.Z.stratus],fontSize:"14px",fontFamily:"Montserrat"}}},yaxis:{labels:{style:{colors:"#888",fontSize:"14px",fontFamily:"Montserrat"},formatter:t=>`${this.beautifyValue(t/1024,0)}`}},tooltip:{y:{formatter:t=>`${this.beautifyValue(t/1024,2)} TB`}},stroke:{lineCap:"round"},labels:["Cumulus","Nimbus","Stratus"]}},ramHistoryData:{series:[],chartOptions:{colors:[d.Z.cumulus,d.Z.nimbus,d.Z.stratus],grid:{show:!1,padding:{left:0,right:0}},chart:{toolbar:{show:!1},sparkline:{enabled:!0}},dataLabels:{enabled:!1},stroke:{curve:"smooth",width:2.5},fill:{type:"gradient",gradient:{shadeIntensity:.9,opacityFrom:.5,opacityTo:0,stops:[0,80,100]}},xaxis:{type:"numeric",lines:{show:!1},axisBorder:{show:!1},labels:{show:!1}},yaxis:[{y:0,offsetX:0,offsetY:0,padding:{left:0,right:0}}],tooltip:{x:{formatter:t=>new Date(t).toLocaleString("en-GB",this.timeoptions)},y:{formatter:t=>`${this.beautifyValue(t/1024,2)} TB`}}}},ssdData:{series:[],chartOptions:{colors:[d.Z.cumulus,d.Z.nimbus,d.Z.stratus],plotOptions:{bar:{columnWidth:"85%",distributed:!0}},dataLabels:{enabled:!1},legend:{show:!1},xaxis:{labels:{categories:["Cumulus","Nimbus","Stratus"],style:{colors:[d.Z.cumulus,d.Z.nimbus,d.Z.stratus],fontSize:"14px",fontFamily:"Montserrat"}}},yaxis:{labels:{style:{colors:"#888",fontSize:"14px",fontFamily:"Montserrat"},formatter:t=>`${this.beautifyValue(t/1e3,0)}`}},tooltip:{y:{formatter:t=>`${this.beautifyValue(t/1e3,2)} TB`}},stroke:{lineCap:"round"},labels:["Cumulus","Nimbus","Stratus"]}},ssdHistoryData:{series:[],chartOptions:{colors:[d.Z.cumulus,d.Z.nimbus,d.Z.stratus],grid:{show:!1,padding:{left:0,right:0}},chart:{toolbar:{show:!1},sparkline:{enabled:!0}},dataLabels:{enabled:!1},stroke:{curve:"smooth",width:2.5},fill:{type:"gradient",gradient:{shadeIntensity:.9,opacityFrom:.5,opacityTo:0,stops:[0,80,100]}},xaxis:{type:"numeric",lines:{show:!1},axisBorder:{show:!1},labels:{show:!1}},yaxis:[{y:0,offsetX:0,offsetY:0,padding:{left:0,right:0}}],tooltip:{x:{formatter:t=>new Date(t).toLocaleString("en-GB",this.timeoptions)},y:{formatter:t=>`${this.beautifyValue(t/1e3,2)} TB`}}}},hddData:{series:[],chartOptions:{colors:[d.Z.cumulus,d.Z.nimbus,d.Z.stratus],plotOptions:{bar:{columnWidth:"85%",distributed:!0}},dataLabels:{enabled:!1},legend:{show:!1},xaxis:{labels:{categories:["Cumulus","Nimbus","Stratus"],style:{colors:[d.Z.cumulus,d.Z.nimbus,d.Z.stratus],fontSize:"14px",fontFamily:"Montserrat"}}},yaxis:{labels:{style:{colors:"#888",fontSize:"14px",fontFamily:"Montserrat"},formatter:t=>`${this.beautifyValue(t/1e3,0)}`}},tooltip:{y:{formatter:t=>`${this.beautifyValue(t/1e3,2)} TB`}},stroke:{lineCap:"round"},labels:["Cumulus","Nimbus","Stratus"]}},historyStatsLoading:!0,fluxHistoryStats:[]}},mounted(){this.generateResources(),this.getHistoryStats()},methods:{async generateResources(){const t=await p.get("https://stats.runonflux.io/fluxinfo?projection=tier,benchmark"),s=t.data.data;s.forEach((t=>{"CUMULUS"===t.tier&&t.benchmark&&t.benchmark.bench?(this.cumulusCpuValue+=0===t.benchmark.bench.cores?4:t.benchmark.bench.cores,this.cumulusRamValue+=t.benchmark.bench.ram<8?8:Math.round(t.benchmark.bench.ram),this.cumulusSSDStorageValue+=t.benchmark.bench.ssd,this.cumulusHDDStorageValue+=t.benchmark.bench.hdd):"CUMULUS"===t.tier?(this.cumulusCpuValue+=4,this.cumulusRamValue+=8,this.cumulusHDDStorageValue+=220):"NIMBUS"===t.tier&&t.benchmark&&t.benchmark.bench?(this.nimbusCpuValue+=0===t.benchmark.bench.cores?8:t.benchmark.bench.cores,this.nimbusRamValue+=t.benchmark.bench.ram<32?32:Math.round(t.benchmark.bench.ram),this.nimbusSSDStorageValue+=t.benchmark.bench.ssd,this.nimbusHDDStorageValue+=t.benchmark.bench.hdd):"NIMBUS"===t.tier?(this.nimbusCpuValue+=8,this.nimbusRamValue+=32,this.nimbusSSDStorageValue+=440):"STRATUS"===t.tier&&t.benchmark&&t.benchmark.bench?(this.stratusCpuValue+=0===t.benchmark.bench.cores?16:t.benchmark.bench.cores,this.stratusRamValue+=t.benchmark.bench.ram<64?64:Math.round(t.benchmark.bench.ram),this.stratusSSDStorageValue+=t.benchmark.bench.ssd,this.stratusHDDStorageValue+=t.benchmark.bench.hdd):"STRATUS"===t.tier&&(this.stratusCpuValue+=16,this.stratusRamValue+=64,this.stratusSSDStorageValue+=880)})),this.totalCores=this.cumulusCpuValue+this.nimbusCpuValue+this.stratusCpuValue,this.cpuData.series=[{name:"CPU Cores",data:[this.cumulusCpuValue,this.nimbusCpuValue,this.stratusCpuValue]}],this.totalRAM=this.cumulusRamValue+this.nimbusRamValue+this.stratusRamValue,this.ramData.series=[{name:"RAM",data:[this.cumulusRamValue,this.nimbusRamValue,this.stratusRamValue]}],this.totalSSD=this.cumulusSSDStorageValue+this.nimbusSSDStorageValue+this.stratusSSDStorageValue,this.ssdData.series=[{name:"SSD",data:[this.cumulusSSDStorageValue,this.nimbusSSDStorageValue,this.stratusSSDStorageValue]}],this.totalHDD=this.cumulusHDDStorageValue+this.nimbusHDDStorageValue+this.stratusHDDStorageValue,this.hddData.series=[{name:"HDD",data:[this.cumulusHDDStorageValue,this.nimbusHDDStorageValue,this.stratusHDDStorageValue]}],this.fluxListLoading=!1},async getHistoryStats(){try{this.historyStatsLoading=!0;const t=await p.get("https://stats.runonflux.io/fluxhistorystats");t.data.data?(this.fluxHistoryStats=t.data.data,this.generateCPUHistory(),this.generateRAMHistory(),this.generateSSDHistory(),this.historyStatsLoading=!1):this.$toast({component:b.Z,props:{title:"Unable to fetch history stats",icon:"InfoIcon",variant:"danger"}})}catch(t){console.log(t)}},generateCPUHistory(){this.cpuHistoryData.series=this.generateHistory(2,4,4,8,8,16)},generateRAMHistory(){this.ramHistoryData.series=this.generateHistory(4,8,8,32,32,64)},generateSSDHistory(){this.ssdHistoryData.series=this.generateHistory(40,220,150,440,600,880)},generateHistory(t,s,a,e,r,i){const o=[],u=[],l=[],n=Object.keys(this.fluxHistoryStats);return n.forEach((n=>{n<1647197215e3?o.push([Number(n),this.fluxHistoryStats[n].cumulus*t]):o.push([Number(n),this.fluxHistoryStats[n].cumulus*s]),n<1647831196e3?u.push([Number(n),this.fluxHistoryStats[n].nimbus*a]):u.push([Number(n),this.fluxHistoryStats[n].nimbus*e]),n<2e12?l.push([Number(n),this.fluxHistoryStats[n].stratus*r]):l.push([Number(n),this.fluxHistoryStats[n].stratus*i])})),[{name:"Cumulus",data:o},{name:"Nimbus",data:u},{name:"Stratus",data:l}]},beautifyValue(t,s=2){const a=t.toFixed(s);return a.replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1,")}}},f=y;var g=a(1001),S=(0,g.Z)(f,e,r,!1,null,null,null);const D=S.exports},72918:(t,s,a)=>{a.d(s,{Z:()=>r});const e={cumulus:"#2B61D1",nimbus:"#ff9f43",stratus:"#ea5455"},r=e}}]); \ No newline at end of file +(self["webpackChunkflux"]=self["webpackChunkflux"]||[]).push([[5216],{51748:(e,t,r)=>{"use strict";r.d(t,{Z:()=>l});var n=function(){var e=this,t=e._self._c;return t("dl",{staticClass:"row",class:e.classes},[t("dt",{staticClass:"col-sm-3"},[e._v(" "+e._s(e.title)+" ")]),e.href.length>0?t("dd",{staticClass:"col-sm-9 mb-0",class:`text-${e.variant}`},[e.href.length>0?t("b-link",{attrs:{href:e.href,target:"_blank",rel:"noopener noreferrer"}},[e._v(" "+e._s(e.data.length>0?e.data:e.number!==Number.MAX_VALUE?e.number:"")+" ")]):e._e()],1):e.click?t("dd",{staticClass:"col-sm-9 mb-0",class:`text-${e.variant}`,on:{click:function(t){return e.$emit("click")}}},[t("b-link",[e._v(" "+e._s(e.data.length>0?e.data:e.number!==Number.MAX_VALUE?e.number:"")+" ")])],1):t("dd",{staticClass:"col-sm-9 mb-0",class:`text-${e.variant}`},[e._v(" "+e._s(e.data.length>0?e.data:e.number!==Number.MAX_VALUE?e.number:"")+" ")])])},o=[],i=r(67347);const s={components:{BLink:i.we},props:{title:{type:String,required:!0},classes:{type:String,required:!1,default:"mb-1"},data:{type:String,required:!1,default:""},number:{type:Number,required:!1,default:Number.MAX_VALUE},variant:{type:String,required:!1,default:"secondary"},href:{type:String,required:!1,default:""},click:{type:Boolean,required:!1,default:!1}}},a=s;var u=r(1001),c=(0,u.Z)(a,n,o,!1,null,null,null);const l=c.exports},44020:e=>{"use strict";var t="%[a-f0-9]{2}",r=new RegExp("("+t+")|([^%]+?)","gi"),n=new RegExp("("+t+")+","gi");function o(e,t){try{return[decodeURIComponent(e.join(""))]}catch(i){}if(1===e.length)return e;t=t||1;var r=e.slice(0,t),n=e.slice(t);return Array.prototype.concat.call([],o(r),o(n))}function i(e){try{return decodeURIComponent(e)}catch(i){for(var t=e.match(r)||[],n=1;n{"use strict";r.d(t,{qY:()=>p});var n=function(e,t,r){if(r||2===arguments.length)for(var n,o=0,i=t.length;o{"use strict";var t,r="object"===typeof Reflect?Reflect:null,n=r&&"function"===typeof r.apply?r.apply:function(e,t,r){return Function.prototype.apply.call(e,t,r)};function o(e){console&&console.warn&&console.warn(e)}t=r&&"function"===typeof r.ownKeys?r.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var i=Number.isNaN||function(e){return e!==e};function s(){s.init.call(this)}e.exports=s,e.exports.once=b,s.EventEmitter=s,s.prototype._events=void 0,s.prototype._eventsCount=0,s.prototype._maxListeners=void 0;var a=10;function u(e){if("function"!==typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function c(e){return void 0===e._maxListeners?s.defaultMaxListeners:e._maxListeners}function l(e,t,r,n){var i,s,a;if(u(r),s=e._events,void 0===s?(s=e._events=Object.create(null),e._eventsCount=0):(void 0!==s.newListener&&(e.emit("newListener",t,r.listener?r.listener:r),s=e._events),a=s[t]),void 0===a)a=s[t]=r,++e._eventsCount;else if("function"===typeof a?a=s[t]=n?[r,a]:[a,r]:n?a.unshift(r):a.push(r),i=c(e),i>0&&a.length>i&&!a.warned){a.warned=!0;var l=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");l.name="MaxListenersExceededWarning",l.emitter=e,l.type=t,l.count=a.length,o(l)}return e}function f(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function d(e,t,r){var n={fired:!1,wrapFn:void 0,target:e,type:t,listener:r},o=f.bind(n);return o.listener=r,n.wrapFn=o,o}function h(e,t,r){var n=e._events;if(void 0===n)return[];var o=n[t];return void 0===o?[]:"function"===typeof o?r?[o.listener||o]:[o]:r?m(o):v(o,o.length)}function p(e){var t=this._events;if(void 0!==t){var r=t[e];if("function"===typeof r)return 1;if(void 0!==r)return r.length}return 0}function v(e,t){for(var r=new Array(t),n=0;n0&&(s=t[0]),s instanceof Error)throw s;var a=new Error("Unhandled error."+(s?" ("+s.message+")":""));throw a.context=s,a}var u=i[e];if(void 0===u)return!1;if("function"===typeof u)n(u,this,t);else{var c=u.length,l=v(u,c);for(r=0;r=0;i--)if(r[i]===t||r[i].listener===t){s=r[i].listener,o=i;break}if(o<0)return this;0===o?r.shift():y(r,o),1===r.length&&(n[e]=r[0]),void 0!==n.removeListener&&this.emit("removeListener",e,s||t)}return this},s.prototype.off=s.prototype.removeListener,s.prototype.removeAllListeners=function(e){var t,r,n;if(r=this._events,void 0===r)return this;if(void 0===r.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==r[e]&&(0===--this._eventsCount?this._events=Object.create(null):delete r[e]),this;if(0===arguments.length){var o,i=Object.keys(r);for(n=0;n=0;n--)this.removeListener(e,t[n]);return this},s.prototype.listeners=function(e){return h(this,e,!0)},s.prototype.rawListeners=function(e){return h(this,e,!1)},s.listenerCount=function(e,t){return"function"===typeof e.listenerCount?e.listenerCount(t):p.call(e,t)},s.prototype.listenerCount=p,s.prototype.eventNames=function(){return this._eventsCount>0?t(this._events):[]}},92806:e=>{"use strict";e.exports=function(e,t){for(var r={},n=Object.keys(e),o=Array.isArray(t),i=0;i{e.exports=self.fetch||(self.fetch=r(25869)["default"]||r(25869))},72307:(e,t,r)=>{e=r.nmd(e);var n=200,o="__lodash_hash_undefined__",i=1,s=2,a=9007199254740991,u="[object Arguments]",c="[object Array]",l="[object AsyncFunction]",f="[object Boolean]",d="[object Date]",h="[object Error]",p="[object Function]",v="[object GeneratorFunction]",y="[object Map]",m="[object Number]",b="[object Null]",g="[object Object]",w="[object Promise]",_="[object Proxy]",x="[object RegExp]",O="[object Set]",j="[object String]",S="[object Symbol]",k="[object Undefined]",E="[object WeakMap]",A="[object ArrayBuffer]",I="[object DataView]",P="[object Float32Array]",z="[object Float64Array]",L="[object Int8Array]",C="[object Int16Array]",T="[object Int32Array]",N="[object Uint8Array]",M="[object Uint8ClampedArray]",B="[object Uint16Array]",F="[object Uint32Array]",U=/[\\^$.*+?()[\]{}|]/g,$=/^\[object .+?Constructor\]$/,R=/^(?:0|[1-9]\d*)$/,W={};W[P]=W[z]=W[L]=W[C]=W[T]=W[N]=W[M]=W[B]=W[F]=!0,W[u]=W[c]=W[A]=W[f]=W[I]=W[d]=W[h]=W[p]=W[y]=W[m]=W[g]=W[x]=W[O]=W[j]=W[E]=!1;var D="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g,Z="object"==typeof self&&self&&self.Object===Object&&self,K=D||Z||Function("return this")(),V=t&&!t.nodeType&&t,q=V&&e&&!e.nodeType&&e,J=q&&q.exports===V,X=J&&D.process,G=function(){try{return X&&X.binding&&X.binding("util")}catch(e){}}(),H=G&&G.isTypedArray;function Y(e,t){var r=-1,n=null==e?0:e.length,o=0,i=[];while(++r-1}function Ge(e,t){var r=this.__data__,n=ht(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}function He(e){var t=-1,r=null==e?0:e.length;this.clear();while(++tc))return!1;var f=a.get(e);if(f&&a.get(t))return f==t;var d=-1,h=!0,p=r&s?new nt:void 0;a.set(e,t),a.set(t,e);while(++d-1&&e%1==0&&e-1&&e%1==0&&e<=a}function Kt(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function Vt(e){return null!=e&&"object"==typeof e}var qt=H?re(H):wt;function Jt(e){return $t(e)?dt(e):_t(e)}function Xt(){return[]}function Gt(){return!1}e.exports=Wt},17563:(e,t,r)=>{"use strict";const n=r(70610),o=r(44020),i=r(80500),s=r(92806),a=e=>null===e||void 0===e,u=Symbol("encodeFragmentIdentifier");function c(e){switch(e.arrayFormat){case"index":return t=>(r,n)=>{const o=r.length;return void 0===n||e.skipNull&&null===n||e.skipEmptyString&&""===n?r:null===n?[...r,[d(t,e),"[",o,"]"].join("")]:[...r,[d(t,e),"[",d(o,e),"]=",d(n,e)].join("")]};case"bracket":return t=>(r,n)=>void 0===n||e.skipNull&&null===n||e.skipEmptyString&&""===n?r:null===n?[...r,[d(t,e),"[]"].join("")]:[...r,[d(t,e),"[]=",d(n,e)].join("")];case"colon-list-separator":return t=>(r,n)=>void 0===n||e.skipNull&&null===n||e.skipEmptyString&&""===n?r:null===n?[...r,[d(t,e),":list="].join("")]:[...r,[d(t,e),":list=",d(n,e)].join("")];case"comma":case"separator":case"bracket-separator":{const t="bracket-separator"===e.arrayFormat?"[]=":"=";return r=>(n,o)=>void 0===o||e.skipNull&&null===o||e.skipEmptyString&&""===o?n:(o=null===o?"":o,0===n.length?[[d(r,e),t,d(o,e)].join("")]:[[n,d(o,e)].join(e.arrayFormatSeparator)])}default:return t=>(r,n)=>void 0===n||e.skipNull&&null===n||e.skipEmptyString&&""===n?r:null===n?[...r,d(t,e)]:[...r,[d(t,e),"=",d(n,e)].join("")]}}function l(e){let t;switch(e.arrayFormat){case"index":return(e,r,n)=>{t=/\[(\d*)\]$/.exec(e),e=e.replace(/\[\d*\]$/,""),t?(void 0===n[e]&&(n[e]={}),n[e][t[1]]=r):n[e]=r};case"bracket":return(e,r,n)=>{t=/(\[\])$/.exec(e),e=e.replace(/\[\]$/,""),t?void 0!==n[e]?n[e]=[].concat(n[e],r):n[e]=[r]:n[e]=r};case"colon-list-separator":return(e,r,n)=>{t=/(:list)$/.exec(e),e=e.replace(/:list$/,""),t?void 0!==n[e]?n[e]=[].concat(n[e],r):n[e]=[r]:n[e]=r};case"comma":case"separator":return(t,r,n)=>{const o="string"===typeof r&&r.includes(e.arrayFormatSeparator),i="string"===typeof r&&!o&&h(r,e).includes(e.arrayFormatSeparator);r=i?h(r,e):r;const s=o||i?r.split(e.arrayFormatSeparator).map((t=>h(t,e))):null===r?r:h(r,e);n[t]=s};case"bracket-separator":return(t,r,n)=>{const o=/(\[\])$/.test(t);if(t=t.replace(/\[\]$/,""),!o)return void(n[t]=r?h(r,e):r);const i=null===r?[]:r.split(e.arrayFormatSeparator).map((t=>h(t,e)));void 0!==n[t]?n[t]=[].concat(n[t],i):n[t]=i};default:return(e,t,r)=>{void 0!==r[e]?r[e]=[].concat(r[e],t):r[e]=t}}}function f(e){if("string"!==typeof e||1!==e.length)throw new TypeError("arrayFormatSeparator must be single character string")}function d(e,t){return t.encode?t.strict?n(e):encodeURIComponent(e):e}function h(e,t){return t.decode?o(e):e}function p(e){return Array.isArray(e)?e.sort():"object"===typeof e?p(Object.keys(e)).sort(((e,t)=>Number(e)-Number(t))).map((t=>e[t])):e}function v(e){const t=e.indexOf("#");return-1!==t&&(e=e.slice(0,t)),e}function y(e){let t="";const r=e.indexOf("#");return-1!==r&&(t=e.slice(r)),t}function m(e){e=v(e);const t=e.indexOf("?");return-1===t?"":e.slice(t+1)}function b(e,t){return t.parseNumbers&&!Number.isNaN(Number(e))&&"string"===typeof e&&""!==e.trim()?e=Number(e):!t.parseBooleans||null===e||"true"!==e.toLowerCase()&&"false"!==e.toLowerCase()||(e="true"===e.toLowerCase()),e}function g(e,t){t=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},t),f(t.arrayFormatSeparator);const r=l(t),n=Object.create(null);if("string"!==typeof e)return n;if(e=e.trim().replace(/^[?#&]/,""),!e)return n;for(const o of e.split("&")){if(""===o)continue;let[e,s]=i(t.decode?o.replace(/\+/g," "):o,"=");s=void 0===s?null:["comma","separator","bracket-separator"].includes(t.arrayFormat)?s:h(s,t),r(h(e,t),s,n)}for(const o of Object.keys(n)){const e=n[o];if("object"===typeof e&&null!==e)for(const r of Object.keys(e))e[r]=b(e[r],t);else n[o]=b(e,t)}return!1===t.sort?n:(!0===t.sort?Object.keys(n).sort():Object.keys(n).sort(t.sort)).reduce(((e,t)=>{const r=n[t];return Boolean(r)&&"object"===typeof r&&!Array.isArray(r)?e[t]=p(r):e[t]=r,e}),Object.create(null))}t.extract=m,t.parse=g,t.stringify=(e,t)=>{if(!e)return"";t=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},t),f(t.arrayFormatSeparator);const r=r=>t.skipNull&&a(e[r])||t.skipEmptyString&&""===e[r],n=c(t),o={};for(const s of Object.keys(e))r(s)||(o[s]=e[s]);const i=Object.keys(o);return!1!==t.sort&&i.sort(t.sort),i.map((r=>{const o=e[r];return void 0===o?"":null===o?d(r,t):Array.isArray(o)?0===o.length&&"bracket-separator"===t.arrayFormat?d(r,t)+"[]":o.reduce(n(r),[]).join("&"):d(r,t)+"="+d(o,t)})).filter((e=>e.length>0)).join("&")},t.parseUrl=(e,t)=>{t=Object.assign({decode:!0},t);const[r,n]=i(e,"#");return Object.assign({url:r.split("?")[0]||"",query:g(m(e),t)},t&&t.parseFragmentIdentifier&&n?{fragmentIdentifier:h(n,t)}:{})},t.stringifyUrl=(e,r)=>{r=Object.assign({encode:!0,strict:!0,[u]:!0},r);const n=v(e.url).split("?")[0]||"",o=t.extract(e.url),i=t.parse(o,{sort:!1}),s=Object.assign(i,e.query);let a=t.stringify(s,r);a&&(a=`?${a}`);let c=y(e.url);return e.fragmentIdentifier&&(c=`#${r[u]?d(e.fragmentIdentifier,r):e.fragmentIdentifier}`),`${n}${a}${c}`},t.pick=(e,r,n)=>{n=Object.assign({parseFragmentIdentifier:!0,[u]:!1},n);const{url:o,query:i,fragmentIdentifier:a}=t.parseUrl(e,n);return t.stringifyUrl({url:o,query:s(i,r),fragmentIdentifier:a},n)},t.exclude=(e,r,n)=>{const o=Array.isArray(r)?e=>!r.includes(e):(e,t)=>!r(e,t);return t.pick(e,o,n)}},85346:e=>{"use strict";function t(e){try{return JSON.stringify(e)}catch(t){return'"[Circular]"'}}function r(e,r,n){var o=n&&n.stringify||t,i=1;if("object"===typeof e&&null!==e){var s=r.length+i;if(1===s)return e;var a=new Array(s);a[0]=o(e);for(var u=1;u-1?d:0,e.charCodeAt(p+1)){case 100:case 102:if(f>=c)break;if(null==r[f])break;d=c)break;if(null==r[f])break;d=c)break;if(void 0===r[f])break;d",d=p+2,p++;break}l+=o(r[f]),d=p+2,p++;break;case 115:if(f>=c)break;d{"use strict";e.exports=(e,t)=>{if("string"!==typeof e||"string"!==typeof t)throw new TypeError("Expected the arguments to be of type `string`");if(""===t)return[e];const r=e.indexOf(t);return-1===r?[e]:[e.slice(0,r),e.slice(r+t.length)]}},70610:e=>{"use strict";e.exports=e=>encodeURIComponent(e).replace(/[!'()*]/g,(e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`))},27616:(e,t,r)=>{"use strict";r.d(t,{Z:()=>o});var n=r(80914);const o={help(){return(0,n.Z)().get("/daemon/help")},helpSpecific(e){return(0,n.Z)().get(`/daemon/help/${e}`)},getInfo(){return(0,n.Z)().get("/daemon/getinfo")},getFluxNodeStatus(){return(0,n.Z)().get("/daemon/getzelnodestatus")},getRawTransaction(e,t){return(0,n.Z)().get(`/daemon/getrawtransaction/${e}/${t}`)},listFluxNodes(){return(0,n.Z)().get("/daemon/listzelnodes")},viewDeterministicFluxNodeList(){return(0,n.Z)().get("/daemon/viewdeterministiczelnodelist")},getFluxNodeCount(){return(0,n.Z)().get("/daemon/getzelnodecount")},getStartList(){return(0,n.Z)().get("/daemon/getstartlist")},getDOSList(){return(0,n.Z)().get("/daemon/getdoslist")},fluxCurrentWinner(){return(0,n.Z)().get("/daemon/fluxcurrentwinner")},getBenchmarks(){return(0,n.Z)().get("/daemon/getbenchmarks")},getBenchStatus(){return(0,n.Z)().get("/daemon/getbenchstatus")},startBenchmark(e){return(0,n.Z)().get("/daemon/startbenchmark",{headers:{zelidauth:e}})},stopBenchmark(e){return(0,n.Z)().get("/daemon/stopbenchmark",{headers:{zelidauth:e}})},getBlockCount(){return(0,n.Z)().get("/daemon/getBlockCount")},getBlockchainInfo(){return(0,n.Z)().get("/daemon/getblockchaininfo")},getMiningInfo(){return(0,n.Z)().get("/daemon/getmininginfo")},getNetworkInfo(){return(0,n.Z)().get("/daemon/getnetworkinfo")},validateAddress(e,t){return(0,n.Z)().get(`/daemon/validateaddress/${t}`,{headers:{zelidauth:e}})},getWalletInfo(e){return(0,n.Z)().get("/daemon/getwalletinfo",{headers:{zelidauth:e}})},listFluxNodeConf(e){return(0,n.Z)().get("/daemon/listzelnodeconf",{headers:{zelidauth:e}})},start(e){return(0,n.Z)().get("/daemon/start",{headers:{zelidauth:e}})},restart(e){return(0,n.Z)().get("/daemon/restart",{headers:{zelidauth:e}})},stopDaemon(e){return(0,n.Z)().get("/daemon/stop",{headers:{zelidauth:e}})},rescanDaemon(e,t){return(0,n.Z)().get(`/daemon/rescanblockchain/${t}`,{headers:{zelidauth:e}})},getBlock(e,t){return(0,n.Z)().get(`/daemon/getblock/${e}/${t}`)},tailDaemonDebug(e){return(0,n.Z)().get("/flux/taildaemondebug",{headers:{zelidauth:e}})},justAPI(){return(0,n.Z)()},cancelToken(){return n.S}}},70655:(e,t,r)=>{"use strict";r.r(t),r.d(t,{__assign:()=>i,__asyncDelegator:()=>w,__asyncGenerator:()=>g,__asyncValues:()=>_,__await:()=>b,__awaiter:()=>l,__classPrivateFieldGet:()=>S,__classPrivateFieldSet:()=>k,__createBinding:()=>d,__decorate:()=>a,__exportStar:()=>h,__extends:()=>o,__generator:()=>f,__importDefault:()=>j,__importStar:()=>O,__makeTemplateObject:()=>x,__metadata:()=>c,__param:()=>u,__read:()=>v,__rest:()=>s,__spread:()=>y,__spreadArrays:()=>m,__values:()=>p}); +/*! ***************************************************************************** +Copyright (c) Microsoft Corporation. + +Permission to use, copy, modify, and/or distribute this software for any +purpose with or without fee is hereby granted. + +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH +REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY +AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, +INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM +LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR +OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR +PERFORMANCE OF THIS SOFTWARE. +***************************************************************************** */ +var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])},n(e,t)};function o(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var i=function(){return i=Object.assign||function(e){for(var t,r=1,n=arguments.length;r=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,r,s):o(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s}function u(e,t){return function(r,n){t(r,n,e)}}function c(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)}function l(e,t,r,n){function o(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,i){function s(e){try{u(n.next(e))}catch(t){i(t)}}function a(e){try{u(n["throw"](e))}catch(t){i(t)}}function u(e){e.done?r(e.value):o(e.value).then(s,a)}u((n=n.apply(e,t||[])).next())}))}function f(e,t){var r,n,o,i,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"===typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(e){return function(t){return u([e,t])}}function u(i){if(r)throw new TypeError("Generator is already executing.");while(s)try{if(r=1,n&&(o=2&i[0]?n["return"]:i[0]?n["throw"]||((o=n["return"])&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return s.label++,{value:i[1],done:!1};case 5:s.label++,n=i[1],i=[0];continue;case 7:i=s.ops.pop(),s.trys.pop();continue;default:if(o=s.trys,!(o=o.length>0&&o[o.length-1])&&(6===i[0]||2===i[0])){s=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function v(e,t){var r="function"===typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),s=[];try{while((void 0===t||t-- >0)&&!(n=i.next()).done)s.push(n.value)}catch(a){o={error:a}}finally{try{n&&!n.done&&(r=i["return"])&&r.call(i)}finally{if(o)throw o.error}}return s}function y(){for(var e=[],t=0;t1||a(e,t)}))})}function a(e,t){try{u(o[e](t))}catch(r){f(i[0][3],r)}}function u(e){e.value instanceof b?Promise.resolve(e.value.v).then(c,l):f(i[0][2],e)}function c(e){a("next",e)}function l(e){a("throw",e)}function f(e,t){e(t),i.shift(),i.length&&a(i[0][0],i[0][1])}}function w(e){var t,r;return t={},n("next"),n("throw",(function(e){throw e})),n("return"),t[Symbol.iterator]=function(){return this},t;function n(n,o){t[n]=e[n]?function(t){return(r=!r)?{value:b(e[n](t)),done:"return"===n}:o?o(t):t}:o}}function _(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,r=e[Symbol.asyncIterator];return r?r.call(e):(e="function"===typeof p?p(e):e[Symbol.iterator](),t={},n("next"),n("throw"),n("return"),t[Symbol.asyncIterator]=function(){return this},t);function n(r){t[r]=e[r]&&function(t){return new Promise((function(n,i){t=e[r](t),o(n,i,t.done,t.value)}))}}function o(e,t,r,n){Promise.resolve(n).then((function(t){e({value:t,done:r})}),t)}}function x(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}function O(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}function j(e){return e&&e.__esModule?e:{default:e}}function S(e,t){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return t.get(e)}function k(e,t,r){if(!t.has(e))throw new TypeError("attempted to set private field on non-instance");return t.set(e,r),r}},25869:(e,t,r)=>{"use strict";function n(e,t){return t=t||{},new Promise((function(r,n){var o=new XMLHttpRequest,i=[],s=[],a={},u=function(){return{ok:2==(o.status/100|0),statusText:o.statusText,status:o.status,url:o.responseURL,text:function(){return Promise.resolve(o.responseText)},json:function(){return Promise.resolve(o.responseText).then(JSON.parse)},blob:function(){return Promise.resolve(new Blob([o.response]))},clone:u,headers:{keys:function(){return i},entries:function(){return s},get:function(e){return a[e.toLowerCase()]},has:function(e){return e.toLowerCase()in a}}}};for(var c in o.open(t.method||"get",e,!0),o.onload=function(){o.getAllResponseHeaders().replace(/^(.*?):[^\S\n]*([\s\S]*?)$/gm,(function(e,t,r){i.push(t=t.toLowerCase()),s.push([t,r]),a[t]=a[t]?a[t]+","+r:r})),r(u())},o.onerror=n,o.withCredentials="include"==t.credentials,t.headers)o.setRequestHeader(c,t.headers[c]);o.send(t.body||null)}))}r.r(t),r.d(t,{default:()=>n})},57026:e=>{"use strict";e.exports=function(){throw new Error("ws does not work in the browser. Browser clients must use the native WebSocket object")}},96358:(e,t,r)=>{"use strict";e.exports=r.p+"img/FluxID.svg"},28125:(e,t,r)=>{"use strict";e.exports=r.p+"img/metamask.svg"},58962:(e,t,r)=>{"use strict";e.exports=r.p+"img/ssp-logo-black.svg"},56070:(e,t,r)=>{"use strict";e.exports=r.p+"img/ssp-logo-white.svg"},47622:(e,t,r)=>{"use strict";e.exports=r.p+"img/walletconnect.svg"},35883:()=>{},10029:(e,t,r)=>{"use strict";var n=r(61034).has;e.exports=function(e){return n(e),e}},52743:(e,t,r)=>{"use strict";var n=r(68844),o=r(10509);e.exports=function(e,t,r){try{return n(o(Object.getOwnPropertyDescriptor(e,t)[r]))}catch(i){}}},22302:e=>{"use strict";e.exports=function(e){return{iterator:e,next:e.next,done:!1}}},41074:(e,t,r)=>{"use strict";var n=r(10509),o=r(85027),i=r(22615),s=r(68700),a=r(22302),u="Invalid size",c=RangeError,l=TypeError,f=Math.max,d=function(e,t){this.set=e,this.size=f(t,0),this.has=n(e.has),this.keys=n(e.keys)};d.prototype={getIterator:function(){return a(o(i(this.keys,this.set)))},includes:function(e){return i(this.has,this.set,e)}},e.exports=function(e){o(e);var t=+e.size;if(t!==t)throw new l(u);var r=s(t);if(r<0)throw new c(u);return new d(e,r)}},96704:(e,t,r)=>{"use strict";var n=r(22615);e.exports=function(e,t,r){var o,i,s=r?e:e.iterator,a=e.next;while(!(o=n(a,s)).done)if(i=t(o.value),void 0!==i)return i}},72125:(e,t,r)=>{"use strict";var n=r(22615),o=r(85027),i=r(54849);e.exports=function(e,t,r){var s,a;o(e);try{if(s=i(e,"return"),!s){if("throw"===t)throw r;return r}s=n(s,e)}catch(u){a=!0,s=u}if("throw"===t)throw r;if(a)throw s;return o(s),r}},3097:(e,t,r)=>{"use strict";var n=r(61034),o=r(48774),i=n.Set,s=n.add;e.exports=function(e){var t=new i;return o(e,(function(e){s(t,e)})),t}},27748:(e,t,r)=>{"use strict";var n=r(10029),o=r(61034),i=r(3097),s=r(17026),a=r(41074),u=r(48774),c=r(96704),l=o.has,f=o.remove;e.exports=function(e){var t=n(this),r=a(e),o=i(t);return s(t)<=r.size?u(t,(function(e){r.includes(e)&&f(o,e)})):c(r.getIterator(),(function(e){l(t,e)&&f(o,e)})),o}},61034:(e,t,r)=>{"use strict";var n=r(68844),o=Set.prototype;e.exports={Set,add:n(o.add),has:n(o.has),remove:n(o["delete"]),proto:o}},72948:(e,t,r)=>{"use strict";var n=r(10029),o=r(61034),i=r(17026),s=r(41074),a=r(48774),u=r(96704),c=o.Set,l=o.add,f=o.has;e.exports=function(e){var t=n(this),r=s(e),o=new c;return i(t)>r.size?u(r.getIterator(),(function(e){f(t,e)&&l(o,e)})):a(t,(function(e){r.includes(e)&&l(o,e)})),o}},97795:(e,t,r)=>{"use strict";var n=r(10029),o=r(61034).has,i=r(17026),s=r(41074),a=r(48774),u=r(96704),c=r(72125);e.exports=function(e){var t=n(this),r=s(e);if(i(t)<=r.size)return!1!==a(t,(function(e){if(r.includes(e))return!1}),!0);var l=r.getIterator();return!1!==u(l,(function(e){if(o(t,e))return c(l,"normal",!1)}))}},26951:(e,t,r)=>{"use strict";var n=r(10029),o=r(17026),i=r(48774),s=r(41074);e.exports=function(e){var t=n(this),r=s(e);return!(o(t)>r.size)&&!1!==i(t,(function(e){if(!r.includes(e))return!1}),!0)}},3894:(e,t,r)=>{"use strict";var n=r(10029),o=r(61034).has,i=r(17026),s=r(41074),a=r(96704),u=r(72125);e.exports=function(e){var t=n(this),r=s(e);if(i(t){"use strict";var n=r(68844),o=r(96704),i=r(61034),s=i.Set,a=i.proto,u=n(a.forEach),c=n(a.keys),l=c(new s).next;e.exports=function(e,t,r){return r?o({iterator:c(e),next:l},t):u(e,t)}},53234:(e,t,r)=>{"use strict";var n=r(76058),o=function(e){return{size:e,has:function(){return!1},keys:function(){return{next:function(){return{done:!0}}}}}};e.exports=function(e){var t=n("Set");try{(new t)[e](o(0));try{return(new t)[e](o(-1)),!1}catch(r){return!0}}catch(i){return!1}}},17026:(e,t,r)=>{"use strict";var n=r(52743),o=r(61034);e.exports=n(o.proto,"size","get")||function(e){return e.size}},62289:(e,t,r)=>{"use strict";var n=r(10029),o=r(61034),i=r(3097),s=r(41074),a=r(96704),u=o.add,c=o.has,l=o.remove;e.exports=function(e){var t=n(this),r=s(e).getIterator(),o=i(t);return a(r,(function(e){c(t,e)?l(o,e):u(o,e)})),o}},75674:(e,t,r)=>{"use strict";var n=r(10029),o=r(61034).add,i=r(3097),s=r(41074),a=r(96704);e.exports=function(e){var t=n(this),r=s(e).getIterator(),u=i(t);return a(r,(function(e){o(u,e)})),u}},15716:(e,t,r)=>{"use strict";var n=r(79989),o=r(27748),i=r(53234);n({target:"Set",proto:!0,real:!0,forced:!i("difference")},{difference:o})},33442:(e,t,r)=>{"use strict";var n=r(79989),o=r(3689),i=r(72948),s=r(53234),a=!s("intersection")||o((function(){return"3,2"!==Array.from(new Set([1,2,3]).intersection(new Set([3,2])))}));n({target:"Set",proto:!0,real:!0,forced:a},{intersection:i})},61964:(e,t,r)=>{"use strict";var n=r(79989),o=r(97795),i=r(53234);n({target:"Set",proto:!0,real:!0,forced:!i("isDisjointFrom")},{isDisjointFrom:o})},69878:(e,t,r)=>{"use strict";var n=r(79989),o=r(26951),i=r(53234);n({target:"Set",proto:!0,real:!0,forced:!i("isSubsetOf")},{isSubsetOf:o})},52915:(e,t,r)=>{"use strict";var n=r(79989),o=r(3894),i=r(53234);n({target:"Set",proto:!0,real:!0,forced:!i("isSupersetOf")},{isSupersetOf:o})},97895:(e,t,r)=>{"use strict";var n=r(79989),o=r(62289),i=r(53234);n({target:"Set",proto:!0,real:!0,forced:!i("symmetricDifference")},{symmetricDifference:o})},22275:(e,t,r)=>{"use strict";var n=r(79989),o=r(75674),i=r(53234);n({target:"Set",proto:!0,real:!0,forced:!i("union")},{union:o})},36559:(e,t,r)=>{"use strict";const n=r(85346);e.exports=a;const o=j().console||{},i={mapHttpRequest:m,mapHttpResponse:m,wrapRequestSerializer:b,wrapResponseSerializer:b,wrapErrorSerializer:b,req:m,res:m,err:v};function s(e,t){if(Array.isArray(e)){const t=e.filter((function(e){return"!stdSerializers.err"!==e}));return t}return!0===e&&Object.keys(t)}function a(e){e=e||{},e.browser=e.browser||{};const t=e.browser.transmit;if(t&&"function"!==typeof t.send)throw Error("pino: transmit option must have a send function");const r=e.browser.write||o;e.browser.write&&(e.browser.asObject=!0);const n=e.serializers||{},i=s(e.browser.serialize,n);let c=e.browser.serialize;Array.isArray(e.browser.serialize)&&e.browser.serialize.indexOf("!stdSerializers.err")>-1&&(c=!1);const l=["error","fatal","warn","info","debug","trace"];"function"===typeof r&&(r.error=r.fatal=r.warn=r.info=r.debug=r.trace=r),!1===e.enabled&&(e.level="silent");const h=e.level||"info",v=Object.create(r);v.log||(v.log=g),Object.defineProperty(v,"levelVal",{get:b}),Object.defineProperty(v,"level",{get:w,set:_});const m={transmit:t,serialize:i,asObject:e.browser.asObject,levels:l,timestamp:y(e)};function b(){return"silent"===this.level?1/0:this.levels.values[this.level]}function w(){return this._level}function _(e){if("silent"!==e&&!this.levels.values[e])throw Error("unknown level "+e);this._level=e,u(m,v,"error","log"),u(m,v,"fatal","error"),u(m,v,"warn","error"),u(m,v,"info","log"),u(m,v,"debug","log"),u(m,v,"trace","log")}function x(r,o){if(!r)throw new Error("missing bindings for child Pino");o=o||{},i&&r.serializers&&(o.serializers=r.serializers);const s=o.serializers;if(i&&s){var a=Object.assign({},n,s),u=!0===e.browser.serialize?Object.keys(a):i;delete r.serializers,f([r],u,a,this._stdErrSerialize)}function c(e){this._childLevel=1+(0|e._childLevel),this.error=d(e,r,"error"),this.fatal=d(e,r,"fatal"),this.warn=d(e,r,"warn"),this.info=d(e,r,"info"),this.debug=d(e,r,"debug"),this.trace=d(e,r,"trace"),a&&(this.serializers=a,this._serialize=u),t&&(this._logEvent=p([].concat(e._logEvent.bindings,r)))}return c.prototype=this,new c(this)}return v.levels=a.levels,v.level=h,v.setMaxListeners=v.getMaxListeners=v.emit=v.addListener=v.on=v.prependListener=v.once=v.prependOnceListener=v.removeListener=v.removeAllListeners=v.listeners=v.listenerCount=v.eventNames=v.write=v.flush=g,v.serializers=n,v._serialize=i,v._stdErrSerialize=c,v.child=x,t&&(v._logEvent=p()),v}function u(e,t,r,n){const i=Object.getPrototypeOf(t);t[r]=t.levelVal>t.levels.values[r]?g:i[r]?i[r]:o[r]||o[n]||g,c(e,t,r)}function c(e,t,r){(e.transmit||t[r]!==g)&&(t[r]=function(n){return function(){const i=e.timestamp(),s=new Array(arguments.length),u=Object.getPrototypeOf&&Object.getPrototypeOf(this)===o?o:this;for(var c=0;c-1&&n in r&&(e[o][n]=r[n](e[o][n]))}function d(e,t,r){return function(){const n=new Array(1+arguments.length);n[0]=t;for(var o=1;o{"use strict";r.d(t,{o6:()=>S});r(70560);const n=/"(?:_|\\u0{2}5[Ff]){2}(?:p|\\u0{2}70)(?:r|\\u0{2}72)(?:o|\\u0{2}6[Ff])(?:t|\\u0{2}74)(?:o|\\u0{2}6[Ff])(?:_|\\u0{2}5[Ff]){2}"\s*:/,o=/"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/,i=/^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/;function s(e,t){if(!("__proto__"===e||"constructor"===e&&t&&"object"===typeof t&&"prototype"in t))return t;a(e)}function a(e){console.warn(`[destr] Dropping "${e}" key to prevent prototype pollution.`)}function u(e,t={}){if("string"!==typeof e)return e;const r=e.trim();if('"'===e[0]&&e.endsWith('"')&&!e.includes("\\"))return r.slice(1,-1);if(r.length<=9){const e=r.toLowerCase();if("true"===e)return!0;if("false"===e)return!1;if("undefined"===e)return;if("null"===e)return null;if("nan"===e)return Number.NaN;if("infinity"===e)return Number.POSITIVE_INFINITY;if("-infinity"===e)return Number.NEGATIVE_INFINITY}if(!i.test(e)){if(t.strict)throw new SyntaxError("[destr] Invalid JSON");return e}try{if(n.test(e)||o.test(e)){if(t.strict)throw new Error("[destr] Possible prototype pollution");return JSON.parse(e,s)}return JSON.parse(e)}catch(a){if(t.strict)throw a;return e}}var c=r(48764)["lW"];function l(e){return e&&"function"===typeof e.then?e:Promise.resolve(e)}function f(e,...t){try{return l(e(...t))}catch(r){return Promise.reject(r)}}function d(e){const t=typeof e;return null===e||"object"!==t&&"function"!==t}function h(e){const t=Object.getPrototypeOf(e);return!t||t.isPrototypeOf(Object)}function p(e){if(d(e))return String(e);if(h(e)||Array.isArray(e))return JSON.stringify(e);if("function"===typeof e.toJSON)return p(e.toJSON());throw new Error("[unstorage] Cannot stringify value!")}function v(){if("undefined"===typeof c)throw new TypeError("[unstorage] Buffer is not supported!")}const y="base64:";function m(e){if("string"===typeof e)return e;v();const t=c.from(e).toString("base64");return y+t}function b(e){return"string"!==typeof e?e:e.startsWith(y)?(v(),c.from(e.slice(y.length),"base64")):e}function g(e){return e?e.split("?")[0].replace(/[/\\]/g,":").replace(/:+/g,":").replace(/^:|:$/g,""):""}function w(...e){return g(e.join(":"))}function _(e){return e=g(e),e?e+":":""}function x(e){return e}const O="memory",j=x((()=>{const e=new Map;return{name:O,getInstance:()=>e,hasItem(t){return e.has(t)},getItem(t){return e.get(t)??null},getItemRaw(t){return e.get(t)??null},setItem(t,r){e.set(t,r)},setItemRaw(t,r){e.set(t,r)},removeItem(t){e.delete(t)},getKeys(){return[...e.keys()]},clear(){e.clear()},dispose(){e.clear()}}}));function S(e={}){const t={mounts:{"":e.driver||j()},mountpoints:[""],watching:!1,watchListeners:[],unwatch:{}},r=e=>{for(const r of t.mountpoints)if(e.startsWith(r))return{base:r,relativeKey:e.slice(r.length),driver:t.mounts[r]};return{base:"",relativeKey:e,driver:t.mounts[""]}},n=(e,r)=>t.mountpoints.filter((t=>t.startsWith(e)||r&&e.startsWith(t))).map((r=>({relativeBase:e.length>r.length?e.slice(r.length):void 0,mountpoint:r,driver:t.mounts[r]}))),o=(e,r)=>{if(t.watching){r=g(r);for(const n of t.watchListeners)n(e,r)}},i=async()=>{if(!t.watching){t.watching=!0;for(const e in t.mounts)t.unwatch[e]=await k(t.mounts[e],o,e)}},s=async()=>{if(t.watching){for(const e in t.unwatch)await t.unwatch[e]();t.unwatch={},t.watching=!1}},a=(e,t,n)=>{const o=new Map,i=e=>{let t=o.get(e.base);return t||(t={driver:e.driver,base:e.base,items:[]},o.set(e.base,t)),t};for(const s of e){const e="string"===typeof s,n=g(e?s:s.key),o=e?void 0:s.value,a=e||!s.options?t:{...t,...s.options},u=r(n);i(u).items.push({key:n,value:o,relativeKey:u.relativeKey,options:a})}return Promise.all([...o.values()].map((e=>n(e)))).then((e=>e.flat()))},c={hasItem(e,t={}){e=g(e);const{relativeKey:n,driver:o}=r(e);return f(o.hasItem,n,t)},getItem(e,t={}){e=g(e);const{relativeKey:n,driver:o}=r(e);return f(o.getItem,n,t).then((e=>u(e)))},getItems(e,t){return a(e,t,(e=>e.driver.getItems?f(e.driver.getItems,e.items.map((e=>({key:e.relativeKey,options:e.options}))),t).then((t=>t.map((t=>({key:w(e.base,t.key),value:u(t.value)}))))):Promise.all(e.items.map((t=>f(e.driver.getItem,t.relativeKey,t.options).then((e=>({key:t.key,value:u(e)}))))))))},getItemRaw(e,t={}){e=g(e);const{relativeKey:n,driver:o}=r(e);return o.getItemRaw?f(o.getItemRaw,n,t):f(o.getItem,n,t).then((e=>b(e)))},async setItem(e,t,n={}){if(void 0===t)return c.removeItem(e);e=g(e);const{relativeKey:i,driver:s}=r(e);s.setItem&&(await f(s.setItem,i,p(t),n),s.watch||o("update",e))},async setItems(e,t){await a(e,t,(async e=>{if(e.driver.setItems)return f(e.driver.setItems,e.items.map((e=>({key:e.relativeKey,value:p(e.value),options:e.options}))),t);e.driver.setItem&&await Promise.all(e.items.map((t=>f(e.driver.setItem,t.relativeKey,p(t.value),t.options))))}))},async setItemRaw(e,t,n={}){if(void 0===t)return c.removeItem(e,n);e=g(e);const{relativeKey:i,driver:s}=r(e);if(s.setItemRaw)await f(s.setItemRaw,i,t,n);else{if(!s.setItem)return;await f(s.setItem,i,m(t),n)}s.watch||o("update",e)},async removeItem(e,t={}){"boolean"===typeof t&&(t={removeMeta:t}),e=g(e);const{relativeKey:n,driver:i}=r(e);i.removeItem&&(await f(i.removeItem,n,t),(t.removeMeta||t.removeMata)&&await f(i.removeItem,n+"$",t),i.watch||o("remove",e))},async getMeta(e,t={}){"boolean"===typeof t&&(t={nativeOnly:t}),e=g(e);const{relativeKey:n,driver:o}=r(e),i=Object.create(null);if(o.getMeta&&Object.assign(i,await f(o.getMeta,n,t)),!t.nativeOnly){const e=await f(o.getItem,n+"$",t).then((e=>u(e)));e&&"object"===typeof e&&("string"===typeof e.atime&&(e.atime=new Date(e.atime)),"string"===typeof e.mtime&&(e.mtime=new Date(e.mtime)),Object.assign(i,e))}return i},setMeta(e,t,r={}){return this.setItem(e+"$",t,r)},removeMeta(e,t={}){return this.removeItem(e+"$",t)},async getKeys(e,t={}){e=_(e);const r=n(e,!0);let o=[];const i=[];for(const n of r){const e=await f(n.driver.getKeys,n.relativeBase,t);for(const t of e){const e=n.mountpoint+g(t);o.some((t=>e.startsWith(t)))||i.push(e)}o=[n.mountpoint,...o.filter((e=>!e.startsWith(n.mountpoint)))]}return e?i.filter((t=>t.startsWith(e)&&"$"!==t[t.length-1])):i.filter((e=>"$"!==e[e.length-1]))},async clear(e,t={}){e=_(e),await Promise.all(n(e,!1).map((async e=>{if(e.driver.clear)return f(e.driver.clear,e.relativeBase,t);if(e.driver.removeItem){const r=await e.driver.getKeys(e.relativeBase||"",t);return Promise.all(r.map((r=>e.driver.removeItem(r,t))))}})))},async dispose(){await Promise.all(Object.values(t.mounts).map((e=>E(e))))},async watch(e){return await i(),t.watchListeners.push(e),async()=>{t.watchListeners=t.watchListeners.filter((t=>t!==e)),0===t.watchListeners.length&&await s()}},async unwatch(){t.watchListeners=[],await s()},mount(e,r){if(e=_(e),e&&t.mounts[e])throw new Error(`already mounted at ${e}`);return e&&(t.mountpoints.push(e),t.mountpoints.sort(((e,t)=>t.length-e.length))),t.mounts[e]=r,t.watching&&Promise.resolve(k(r,o,e)).then((r=>{t.unwatch[e]=r})).catch(console.error),c},async unmount(e,r=!0){e=_(e),e&&t.mounts[e]&&(t.watching&&e in t.unwatch&&(t.unwatch[e](),delete t.unwatch[e]),r&&await E(t.mounts[e]),t.mountpoints=t.mountpoints.filter((t=>t!==e)),delete t.mounts[e])},getMount(e=""){e=g(e)+":";const t=r(e);return{driver:t.driver,base:t.base}},getMounts(e="",t={}){e=g(e);const r=n(e,t.parents);return r.map((e=>({driver:e.driver,base:e.mountpoint})))},keys:(e,t={})=>c.getKeys(e,t),get:(e,t={})=>c.getItem(e,t),set:(e,t,r={})=>c.setItem(e,t,r),has:(e,t={})=>c.hasItem(e,t),del:(e,t={})=>c.removeItem(e,t),remove:(e,t={})=>c.removeItem(e,t)};return c}function k(e,t,r){return e.watch?e.watch(((e,n)=>t(e,r+n))):()=>{}}async function E(e){"function"===typeof e.dispose&&await f(e.dispose)}},24678:(e,t,r)=>{"use strict";function n(e){return new Promise(((t,r)=>{e.oncomplete=e.onsuccess=()=>t(e.result),e.onabort=e.onerror=()=>r(e.error)}))}function o(e,t){const r=indexedDB.open(e);r.onupgradeneeded=()=>r.result.createObjectStore(t);const o=n(r);return(e,r)=>o.then((n=>r(n.transaction(t,e).objectStore(t))))}let i;function s(){return i||(i=o("keyval-store","keyval")),i}function a(e,t=s()){return t("readonly",(t=>n(t.get(e))))}function u(e,t,r=s()){return r("readwrite",(r=>(r.put(t,e),n(r.transaction))))}function c(e,t=s()){return t("readwrite",(t=>(t.delete(e),n(t.transaction))))}function l(e=s()){return e("readwrite",(e=>(e.clear(),n(e.transaction))))}function f(e,t){return e.openCursor().onsuccess=function(){this.result&&(t(this.result),this.result.continue())},n(e.transaction)}function d(e=s()){return e("readonly",(e=>{if(e.getAllKeys)return n(e.getAllKeys());const t=[];return f(e,(e=>t.push(e.key))).then((()=>t))}))}r.d(t,{IV:()=>c,MT:()=>o,U2:()=>a,XP:()=>d,ZH:()=>l,t8:()=>u})},53160:(e,t,r)=>{"use strict";r.d(t,{E:()=>o});var n=r(16867);function o(e=0){return null!=globalThis.Buffer&&null!=globalThis.Buffer.allocUnsafe?(0,n.P)(globalThis.Buffer.allocUnsafe(e)):new Uint8Array(e)}},20605:(e,t,r)=>{"use strict";r.d(t,{z:()=>i});var n=r(53160),o=r(16867);function i(e,t){t||(t=e.reduce(((e,t)=>e+t.length),0));const r=(0,n.E)(t);let i=0;for(const n of e)r.set(n,i),i+=n.length;return(0,o.P)(r)}},52217:(e,t,r)=>{"use strict";r.d(t,{m:()=>i});var n=r(73149),o=r(16867);function i(e,t="utf8"){const r=n.Z[t];if(!r)throw new Error(`Unsupported encoding "${t}"`);return"utf8"!==t&&"utf-8"!==t||null==globalThis.Buffer||null==globalThis.Buffer.from?r.decoder.decode(`${r.prefix}${e}`):(0,o.P)(globalThis.Buffer.from(e,"utf-8"))}},37466:(e,t,r)=>{"use strict";r.d(t,{BB:()=>i.B,mL:()=>o.m,zo:()=>n.z});var n=r(20605),o=r(52217),i=r(92263)},92263:(e,t,r)=>{"use strict";r.d(t,{B:()=>o});var n=r(73149);function o(e,t="utf8"){const r=n.Z[t];if(!r)throw new Error(`Unsupported encoding "${t}"`);return"utf8"!==t&&"utf-8"!==t||null==globalThis.Buffer||null==globalThis.Buffer.from?r.encoder.encode(e).substring(1):globalThis.Buffer.from(e.buffer,e.byteOffset,e.byteLength).toString("utf8")}},16867:(e,t,r)=>{"use strict";function n(e){return null!=globalThis.Buffer?new Uint8Array(e.buffer,e.byteOffset,e.byteLength):e}r.d(t,{P:()=>n})},73149:(e,t,r)=>{"use strict";r.d(t,{Z:()=>ut});var n={};r.r(n),r.d(n,{identity:()=>T});var o={};r.r(o),r.d(o,{base2:()=>N});var i={};r.r(i),r.d(i,{base8:()=>M});var s={};r.r(s),r.d(s,{base10:()=>B});var a={};r.r(a),r.d(a,{base16:()=>F,base16upper:()=>U});var u={};r.r(u),r.d(u,{base32:()=>$,base32hex:()=>Z,base32hexpad:()=>V,base32hexpadupper:()=>q,base32hexupper:()=>K,base32pad:()=>W,base32padupper:()=>D,base32upper:()=>R,base32z:()=>J});var c={};r.r(c),r.d(c,{base36:()=>X,base36upper:()=>G});var l={};r.r(l),r.d(l,{base58btc:()=>H,base58flickr:()=>Y});var f={};r.r(f),r.d(f,{base64:()=>Q,base64pad:()=>ee,base64url:()=>te,base64urlpad:()=>re});var d={};r.r(d),r.d(d,{base256emoji:()=>ue});var h={};r.r(h),r.d(h,{sha256:()=>Ue,sha512:()=>$e});var p={};r.r(p),r.d(p,{identity:()=>Ke});var v={};r.r(v),r.d(v,{code:()=>qe,decode:()=>Xe,encode:()=>Je,name:()=>Ve});var y={};function m(e,t){if(e.length>=255)throw new TypeError("Alphabet too long");for(var r=new Uint8Array(256),n=0;n>>0,c=new Uint8Array(s);while(o!==i){for(var f=t[o],d=0,h=s-1;(0!==f||d>>0,c[h]=f%a>>>0,f=f/a>>>0;if(0!==f)throw new Error("Non-zero carry");n=d,o++}var p=s-n;while(p!==s&&0===c[p])p++;for(var v=u.repeat(r);p>>0,s=new Uint8Array(i);while(e[t]){var l=r[e.charCodeAt(t)];if(255===l)return;for(var f=0,d=i-1;(0!==l||f>>0,s[d]=l%256>>>0,l=l/256>>>0;if(0!==l)throw new Error("Non-zero carry");o=f,t++}if(" "!==e[t]){var h=i-o;while(h!==i&&0===s[h])h++;var p=new Uint8Array(n+(i-h)),v=n;while(h!==i)p[v++]=s[h++];return p}}}function h(e){var r=d(e);if(r)return r;throw new Error(`Non-${t} character`)}return{encode:f,decodeUnsafe:d,decode:h}}r.r(y),r.d(y,{code:()=>Qe,decode:()=>tt,encode:()=>et,name:()=>Ye});var b=m,g=b;const w=g,_=(new Uint8Array(0),e=>{if(e instanceof Uint8Array&&"Uint8Array"===e.constructor.name)return e;if(e instanceof ArrayBuffer)return new Uint8Array(e);if(ArrayBuffer.isView(e))return new Uint8Array(e.buffer,e.byteOffset,e.byteLength);throw new Error("Unknown type, must be binary type")}),x=e=>(new TextEncoder).encode(e),O=e=>(new TextDecoder).decode(e);class j{constructor(e,t,r){this.name=e,this.prefix=t,this.baseEncode=r}encode(e){if(e instanceof Uint8Array)return`${this.prefix}${this.baseEncode(e)}`;throw Error("Unknown type, must be binary type")}}class S{constructor(e,t,r){if(this.name=e,this.prefix=t,void 0===t.codePointAt(0))throw new Error("Invalid prefix character");this.prefixCodePoint=t.codePointAt(0),this.baseDecode=r}decode(e){if("string"===typeof e){if(e.codePointAt(0)!==this.prefixCodePoint)throw Error(`Unable to decode multibase string ${JSON.stringify(e)}, ${this.name} decoder only supports inputs prefixed with ${this.prefix}`);return this.baseDecode(e.slice(this.prefix.length))}throw Error("Can only multibase decode strings")}or(e){return E(this,e)}}class k{constructor(e){this.decoders=e}or(e){return E(this,e)}decode(e){const t=e[0],r=this.decoders[t];if(r)return r.decode(e);throw RangeError(`Unable to decode multibase string ${JSON.stringify(e)}, only inputs prefixed with ${Object.keys(this.decoders)} are supported`)}}const E=(e,t)=>new k({...e.decoders||{[e.prefix]:e},...t.decoders||{[t.prefix]:t}});class A{constructor(e,t,r,n){this.name=e,this.prefix=t,this.baseEncode=r,this.baseDecode=n,this.encoder=new j(e,t,r),this.decoder=new S(e,t,n)}encode(e){return this.encoder.encode(e)}decode(e){return this.decoder.decode(e)}}const I=({name:e,prefix:t,encode:r,decode:n})=>new A(e,t,r,n),P=({prefix:e,name:t,alphabet:r})=>{const{encode:n,decode:o}=w(r,t);return I({prefix:e,name:t,encode:n,decode:e=>_(o(e))})},z=(e,t,r,n)=>{const o={};for(let l=0;l=8&&(a-=8,s[c++]=255&u>>a)}if(a>=r||255&u<<8-a)throw new SyntaxError("Unexpected end of data");return s},L=(e,t,r)=>{const n="="===t[t.length-1],o=(1<r)s-=r,i+=t[o&a>>s]}if(s&&(i+=t[o&a<I({prefix:t,name:e,encode(e){return L(e,n,r)},decode(t){return z(t,n,r,e)}}),T=I({prefix:"\0",name:"identity",encode:e=>O(e),decode:e=>x(e)}),N=C({prefix:"0",name:"base2",alphabet:"01",bitsPerChar:1}),M=C({prefix:"7",name:"base8",alphabet:"01234567",bitsPerChar:3}),B=P({prefix:"9",name:"base10",alphabet:"0123456789"}),F=C({prefix:"f",name:"base16",alphabet:"0123456789abcdef",bitsPerChar:4}),U=C({prefix:"F",name:"base16upper",alphabet:"0123456789ABCDEF",bitsPerChar:4}),$=C({prefix:"b",name:"base32",alphabet:"abcdefghijklmnopqrstuvwxyz234567",bitsPerChar:5}),R=C({prefix:"B",name:"base32upper",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567",bitsPerChar:5}),W=C({prefix:"c",name:"base32pad",alphabet:"abcdefghijklmnopqrstuvwxyz234567=",bitsPerChar:5}),D=C({prefix:"C",name:"base32padupper",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567=",bitsPerChar:5}),Z=C({prefix:"v",name:"base32hex",alphabet:"0123456789abcdefghijklmnopqrstuv",bitsPerChar:5}),K=C({prefix:"V",name:"base32hexupper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV",bitsPerChar:5}),V=C({prefix:"t",name:"base32hexpad",alphabet:"0123456789abcdefghijklmnopqrstuv=",bitsPerChar:5}),q=C({prefix:"T",name:"base32hexpadupper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV=",bitsPerChar:5}),J=C({prefix:"h",name:"base32z",alphabet:"ybndrfg8ejkmcpqxot1uwisza345h769",bitsPerChar:5}),X=P({prefix:"k",name:"base36",alphabet:"0123456789abcdefghijklmnopqrstuvwxyz"}),G=P({prefix:"K",name:"base36upper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"}),H=P({name:"base58btc",prefix:"z",alphabet:"123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"}),Y=P({name:"base58flickr",prefix:"Z",alphabet:"123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ"}),Q=C({prefix:"m",name:"base64",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",bitsPerChar:6}),ee=C({prefix:"M",name:"base64pad",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",bitsPerChar:6}),te=C({prefix:"u",name:"base64url",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_",bitsPerChar:6}),re=C({prefix:"U",name:"base64urlpad",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_=",bitsPerChar:6}),ne=Array.from("🚀🪐☄🛰🌌🌑🌒🌓🌔🌕🌖🌗🌘🌍🌏🌎🐉☀💻🖥💾💿😂❤😍🤣😊🙏💕😭😘👍😅👏😁🔥🥰💔💖💙😢🤔😆🙄💪😉☺👌🤗💜😔😎😇🌹🤦🎉💞✌✨🤷😱😌🌸🙌😋💗💚😏💛🙂💓🤩😄😀🖤😃💯🙈👇🎶😒🤭❣😜💋👀😪😑💥🙋😞😩😡🤪👊🥳😥🤤👉💃😳✋😚😝😴🌟😬🙃🍀🌷😻😓⭐✅🥺🌈😈🤘💦✔😣🏃💐☹🎊💘😠☝😕🌺🎂🌻😐🖕💝🙊😹🗣💫💀👑🎵🤞😛🔴😤🌼😫⚽🤙☕🏆🤫👈😮🙆🍻🍃🐶💁😲🌿🧡🎁⚡🌞🎈❌✊👋😰🤨😶🤝🚶💰🍓💢🤟🙁🚨💨🤬✈🎀🍺🤓😙💟🌱😖👶🥴▶➡❓💎💸⬇😨🌚🦋😷🕺⚠🙅😟😵👎🤲🤠🤧📌🔵💅🧐🐾🍒😗🤑🌊🤯🐷☎💧😯💆👆🎤🙇🍑❄🌴💣🐸💌📍🥀🤢👅💡💩👐📸👻🤐🤮🎼🥵🚩🍎🍊👼💍📣🥂"),oe=ne.reduce(((e,t,r)=>(e[r]=t,e)),[]),ie=ne.reduce(((e,t,r)=>(e[t.codePointAt(0)]=r,e)),[]);function se(e){return e.reduce(((e,t)=>(e+=oe[t],e)),"")}function ae(e){const t=[];for(const r of e){const e=ie[r.codePointAt(0)];if(void 0===e)throw new Error(`Non-base256emoji character: ${r}`);t.push(e)}return new Uint8Array(t)}const ue=I({prefix:"🚀",name:"base256emoji",encode:se,decode:ae});var ce=pe,le=128,fe=127,de=~fe,he=Math.pow(2,31);function pe(e,t,r){t=t||[],r=r||0;var n=r;while(e>=he)t[r++]=255&e|le,e/=128;while(e&de)t[r++]=255&e|le,e>>>=7;return t[r]=0|e,pe.bytes=r-n+1,t}var ve=be,ye=128,me=127;function be(e,t){var r,n=0,o=(t=t||0,0),i=t,s=e.length;do{if(i>=s)throw be.bytes=0,new RangeError("Could not decode varint");r=e[i++],n+=o<28?(r&me)<=ye);return be.bytes=i-t,n}var ge=Math.pow(2,7),we=Math.pow(2,14),_e=Math.pow(2,21),xe=Math.pow(2,28),Oe=Math.pow(2,35),je=Math.pow(2,42),Se=Math.pow(2,49),ke=Math.pow(2,56),Ee=Math.pow(2,63),Ae=function(e){return e(ze.encode(e,t,r),t),Ce=e=>ze.encodingLength(e),Te=(e,t)=>{const r=t.byteLength,n=Ce(e),o=n+Ce(r),i=new Uint8Array(o+r);return Le(e,i,0),Le(r,i,n),i.set(t,o),new Ne(e,r,t,i)};class Ne{constructor(e,t,r,n){this.code=e,this.size=t,this.digest=r,this.bytes=n}}const Me=({name:e,code:t,encode:r})=>new Be(e,t,r);class Be{constructor(e,t,r){this.name=e,this.code=t,this.encode=r}digest(e){if(e instanceof Uint8Array){const t=this.encode(e);return t instanceof Uint8Array?Te(this.code,t):t.then((e=>Te(this.code,e)))}throw Error("Unknown type, must be binary type")}}const Fe=e=>async t=>new Uint8Array(await crypto.subtle.digest(e,t)),Ue=Me({name:"sha2-256",code:18,encode:Fe("SHA-256")}),$e=Me({name:"sha2-512",code:19,encode:Fe("SHA-512")}),Re=0,We="identity",De=_,Ze=e=>Te(Re,De(e)),Ke={code:Re,name:We,encode:De,digest:Ze},Ve="raw",qe=85,Je=e=>_(e),Xe=e=>_(e),Ge=new TextEncoder,He=new TextDecoder,Ye="json",Qe=512,et=e=>Ge.encode(JSON.stringify(e)),tt=e=>JSON.parse(He.decode(e));Symbol.toStringTag,Symbol.for("nodejs.util.inspect.custom");Symbol.for("@ipld/js-cid/CID");const rt={...n,...o,...i,...s,...a,...u,...c,...l,...f,...d};var nt=r(53160);function ot(e,t,r,n){return{name:e,prefix:t,encoder:{name:e,prefix:t,encode:r},decoder:{decode:n}}}const it=ot("utf8","u",(e=>{const t=new TextDecoder("utf8");return"u"+t.decode(e)}),(e=>{const t=new TextEncoder;return t.encode(e.substring(1))})),st=ot("ascii","a",(e=>{let t="a";for(let r=0;r{e=e.substring(1);const t=(0,nt.E)(e.length);for(let r=0;r{a.d(e,{Z:()=>u});var n=function(){var t=this,e=t._self._c;return e("div",{staticClass:"toastification"},[e("div",{staticClass:"d-flex align-items-start"},[e("b-avatar",{staticClass:"mr-75 flex-shrink-0",attrs:{variant:t.variant,size:"1.8rem"}},[e("feather-icon",{attrs:{icon:t.icon,size:"15"}})],1),e("div",{staticClass:"d-flex flex-grow-1"},[e("div",[t.title?e("h5",{staticClass:"mb-0 font-weight-bolder toastification-title",class:`text-${t.variant}`,domProps:{textContent:t._s(t.title)}}):t._e(),t.text?e("small",{staticClass:"d-inline-block text-body",domProps:{textContent:t._s(t.text)}}):t._e()]),e("span",{staticClass:"cursor-pointer toastification-close-icon ml-auto",on:{click:function(e){return t.$emit("close-toast")}}},[t.hideClose?t._e():e("feather-icon",{staticClass:"text-body",attrs:{icon:"XIcon"}})],1)])],1)])},r=[],o=a(47389);const s={components:{BAvatar:o.SH},props:{variant:{type:String,default:"primary"},icon:{type:String,default:null},title:{type:String,default:null},text:{type:String,default:null},hideClose:{type:Boolean,default:!1}}},i=s;var l=a(1001),d=(0,l.Z)(i,n,r,!1,null,"22d964ca",null);const u=d.exports},85497:(t,e,a)=>{a.r(e),a.d(e,{default:()=>m});var n=function(){var t=this,e=t._self._c;return e("b-card",[t.callResponse.data?e("b-form-textarea",{attrs:{plaintext:"","no-resize":"",rows:"15",value:t.callResponse.data}}):t._e()],1)},r=[],o=a(86855),s=a(333),i=a(34547),l=a(27616);const d={components:{BCard:o._,BFormTextarea:s.y,ToastificationContent:i.Z},data(){return{callResponse:{status:"",data:""}}},mounted(){this.daemonGetMiningInfo()},methods:{async daemonGetMiningInfo(){const t=await l.Z.getMiningInfo();"error"===t.data.status?this.$toast({component:i.Z,props:{title:t.data.data.message||t.data.data,icon:"InfoIcon",variant:"danger"}}):(this.callResponse.status=t.data.status,this.callResponse.data=JSON.stringify(t.data.data,null,4))}}},u=d;var c=a(1001),g=(0,c.Z)(u,n,r,!1,null,null,null);const m=g.exports},27616:(t,e,a)=>{a.d(e,{Z:()=>r});var n=a(80914);const r={help(){return(0,n.Z)().get("/daemon/help")},helpSpecific(t){return(0,n.Z)().get(`/daemon/help/${t}`)},getInfo(){return(0,n.Z)().get("/daemon/getinfo")},getFluxNodeStatus(){return(0,n.Z)().get("/daemon/getzelnodestatus")},getRawTransaction(t,e){return(0,n.Z)().get(`/daemon/getrawtransaction/${t}/${e}`)},listFluxNodes(){return(0,n.Z)().get("/daemon/listzelnodes")},viewDeterministicFluxNodeList(){return(0,n.Z)().get("/daemon/viewdeterministiczelnodelist")},getFluxNodeCount(){return(0,n.Z)().get("/daemon/getzelnodecount")},getStartList(){return(0,n.Z)().get("/daemon/getstartlist")},getDOSList(){return(0,n.Z)().get("/daemon/getdoslist")},fluxCurrentWinner(){return(0,n.Z)().get("/daemon/fluxcurrentwinner")},getBenchmarks(){return(0,n.Z)().get("/daemon/getbenchmarks")},getBenchStatus(){return(0,n.Z)().get("/daemon/getbenchstatus")},startBenchmark(t){return(0,n.Z)().get("/daemon/startbenchmark",{headers:{zelidauth:t}})},stopBenchmark(t){return(0,n.Z)().get("/daemon/stopbenchmark",{headers:{zelidauth:t}})},getBlockCount(){return(0,n.Z)().get("/daemon/getBlockCount")},getBlockchainInfo(){return(0,n.Z)().get("/daemon/getblockchaininfo")},getMiningInfo(){return(0,n.Z)().get("/daemon/getmininginfo")},getNetworkInfo(){return(0,n.Z)().get("/daemon/getnetworkinfo")},validateAddress(t,e){return(0,n.Z)().get(`/daemon/validateaddress/${e}`,{headers:{zelidauth:t}})},getWalletInfo(t){return(0,n.Z)().get("/daemon/getwalletinfo",{headers:{zelidauth:t}})},listFluxNodeConf(t){return(0,n.Z)().get("/daemon/listzelnodeconf",{headers:{zelidauth:t}})},start(t){return(0,n.Z)().get("/daemon/start",{headers:{zelidauth:t}})},restart(t){return(0,n.Z)().get("/daemon/restart",{headers:{zelidauth:t}})},stopDaemon(t){return(0,n.Z)().get("/daemon/stop",{headers:{zelidauth:t}})},rescanDaemon(t,e){return(0,n.Z)().get(`/daemon/rescanblockchain/${e}`,{headers:{zelidauth:t}})},getBlock(t,e){return(0,n.Z)().get(`/daemon/getblock/${t}/${e}`)},tailDaemonDebug(t){return(0,n.Z)().get("/flux/taildaemondebug",{headers:{zelidauth:t}})},justAPI(){return(0,n.Z)()},cancelToken(){return n.S}}}}]); \ No newline at end of file +"use strict";(self["webpackChunkflux"]=self["webpackChunkflux"]||[]).push([[5497],{34547:(t,e,a)=>{a.d(e,{Z:()=>u});var n=function(){var t=this,e=t._self._c;return e("div",{staticClass:"toastification"},[e("div",{staticClass:"d-flex align-items-start"},[e("b-avatar",{staticClass:"mr-75 flex-shrink-0",attrs:{variant:t.variant,size:"1.8rem"}},[e("feather-icon",{attrs:{icon:t.icon,size:"15"}})],1),e("div",{staticClass:"d-flex flex-grow-1"},[e("div",[t.title?e("h5",{staticClass:"mb-0 font-weight-bolder toastification-title",class:`text-${t.variant}`,domProps:{textContent:t._s(t.title)}}):t._e(),t.text?e("small",{staticClass:"d-inline-block text-body",domProps:{textContent:t._s(t.text)}}):t._e()]),e("span",{staticClass:"cursor-pointer toastification-close-icon ml-auto",on:{click:function(e){return t.$emit("close-toast")}}},[t.hideClose?t._e():e("feather-icon",{staticClass:"text-body",attrs:{icon:"XIcon"}})],1)])],1)])},r=[],s=a(47389);const o={components:{BAvatar:s.SH},props:{variant:{type:String,default:"primary"},icon:{type:String,default:null},title:{type:String,default:null},text:{type:String,default:null},hideClose:{type:Boolean,default:!1}}},i=o;var l=a(1001),d=(0,l.Z)(i,n,r,!1,null,"22d964ca",null);const u=d.exports},85497:(t,e,a)=>{a.r(e),a.d(e,{default:()=>m});var n=function(){var t=this,e=t._self._c;return e("b-card",[t.callResponse.data?e("b-form-textarea",{attrs:{plaintext:"","no-resize":"",rows:"15",value:t.callResponse.data}}):t._e()],1)},r=[],s=a(86855),o=a(333),i=a(34547),l=a(27616);const d={components:{BCard:s._,BFormTextarea:o.y,ToastificationContent:i.Z},data(){return{callResponse:{status:"",data:""}}},mounted(){this.daemonGetMiningInfo()},methods:{async daemonGetMiningInfo(){const t=await l.Z.getMiningInfo();"error"===t.data.status?this.$toast({component:i.Z,props:{title:t.data.data.message||t.data.data,icon:"InfoIcon",variant:"danger"}}):(this.callResponse.status=t.data.status,this.callResponse.data=JSON.stringify(t.data.data,null,4))}}},u=d;var c=a(1001),g=(0,c.Z)(u,n,r,!1,null,null,null);const m=g.exports},27616:(t,e,a)=>{a.d(e,{Z:()=>r});var n=a(80914);const r={help(){return(0,n.Z)().get("/daemon/help")},helpSpecific(t){return(0,n.Z)().get(`/daemon/help/${t}`)},getInfo(){return(0,n.Z)().get("/daemon/getinfo")},getFluxNodeStatus(){return(0,n.Z)().get("/daemon/getzelnodestatus")},getRawTransaction(t,e){return(0,n.Z)().get(`/daemon/getrawtransaction/${t}/${e}`)},listFluxNodes(){return(0,n.Z)().get("/daemon/listzelnodes")},viewDeterministicFluxNodeList(){return(0,n.Z)().get("/daemon/viewdeterministiczelnodelist")},getFluxNodeCount(){return(0,n.Z)().get("/daemon/getzelnodecount")},getStartList(){return(0,n.Z)().get("/daemon/getstartlist")},getDOSList(){return(0,n.Z)().get("/daemon/getdoslist")},fluxCurrentWinner(){return(0,n.Z)().get("/daemon/fluxcurrentwinner")},getBenchmarks(){return(0,n.Z)().get("/daemon/getbenchmarks")},getBenchStatus(){return(0,n.Z)().get("/daemon/getbenchstatus")},startBenchmark(t){return(0,n.Z)().get("/daemon/startbenchmark",{headers:{zelidauth:t}})},stopBenchmark(t){return(0,n.Z)().get("/daemon/stopbenchmark",{headers:{zelidauth:t}})},getBlockCount(){return(0,n.Z)().get("/daemon/getBlockCount")},getBlockchainInfo(){return(0,n.Z)().get("/daemon/getblockchaininfo")},getMiningInfo(){return(0,n.Z)().get("/daemon/getmininginfo")},getNetworkInfo(){return(0,n.Z)().get("/daemon/getnetworkinfo")},validateAddress(t,e){return(0,n.Z)().get(`/daemon/validateaddress/${e}`,{headers:{zelidauth:t}})},getWalletInfo(t){return(0,n.Z)().get("/daemon/getwalletinfo",{headers:{zelidauth:t}})},listFluxNodeConf(t){return(0,n.Z)().get("/daemon/listzelnodeconf",{headers:{zelidauth:t}})},start(t){return(0,n.Z)().get("/daemon/start",{headers:{zelidauth:t}})},restart(t){return(0,n.Z)().get("/daemon/restart",{headers:{zelidauth:t}})},stopDaemon(t){return(0,n.Z)().get("/daemon/stop",{headers:{zelidauth:t}})},rescanDaemon(t,e){return(0,n.Z)().get(`/daemon/rescanblockchain/${e}`,{headers:{zelidauth:t}})},getBlock(t,e){return(0,n.Z)().get(`/daemon/getblock/${t}/${e}`)},tailDaemonDebug(t){return(0,n.Z)().get("/flux/taildaemondebug",{headers:{zelidauth:t}})},justAPI(){return(0,n.Z)()},cancelToken(){return n.S}}}}]); \ No newline at end of file diff --git a/HomeUI/dist/js/5528.js b/HomeUI/dist/js/5528.js index e5fcf9523..301f5c265 100644 --- a/HomeUI/dist/js/5528.js +++ b/HomeUI/dist/js/5528.js @@ -1 +1 @@ -"use strict";(globalThis["webpackChunkflux"]=globalThis["webpackChunkflux"]||[]).push([[5528],{34547:(t,e,a)=>{a.d(e,{Z:()=>u});var n=function(){var t=this,e=t._self._c;return e("div",{staticClass:"toastification"},[e("div",{staticClass:"d-flex align-items-start"},[e("b-avatar",{staticClass:"mr-75 flex-shrink-0",attrs:{variant:t.variant,size:"1.8rem"}},[e("feather-icon",{attrs:{icon:t.icon,size:"15"}})],1),e("div",{staticClass:"d-flex flex-grow-1"},[e("div",[t.title?e("h5",{staticClass:"mb-0 font-weight-bolder toastification-title",class:`text-${t.variant}`,domProps:{textContent:t._s(t.title)}}):t._e(),t.text?e("small",{staticClass:"d-inline-block text-body",domProps:{textContent:t._s(t.text)}}):t._e()]),e("span",{staticClass:"cursor-pointer toastification-close-icon ml-auto",on:{click:function(e){return t.$emit("close-toast")}}},[t.hideClose?t._e():e("feather-icon",{staticClass:"text-body",attrs:{icon:"XIcon"}})],1)])],1)])},r=[],o=a(47389);const s={components:{BAvatar:o.SH},props:{variant:{type:String,default:"primary"},icon:{type:String,default:null},title:{type:String,default:null},text:{type:String,default:null},hideClose:{type:Boolean,default:!1}}},l=s;var i=a(1001),d=(0,i.Z)(l,n,r,!1,null,"22d964ca",null);const u=d.exports},95528:(t,e,a)=>{a.r(e),a.d(e,{default:()=>f});var n=function(){var t=this,e=t._self._c;return e("b-overlay",{attrs:{show:!t.callResponse.data,variant:"transparent",blur:"5px"}},[e("b-card",[t.callResponse.data?t._e():e("b-card-title",[t._v(" Loading... ")]),t.callResponse.data?e("b-form-textarea",{attrs:{plaintext:"","no-resize":"",rows:"11",value:t.callResponse.data}}):t._e()],1)],1)},r=[],o=a(86855),s=a(49379),l=a(333),i=a(66126),d=a(34547),u=a(27616);const c={components:{BCard:o._,BCardTitle:s._,BFormTextarea:l.y,BOverlay:i.X,ToastificationContent:d.Z},data(){return{callResponse:{status:"",data:""}}},mounted(){this.daemonGetWalletInfo()},methods:{async daemonGetWalletInfo(){const t=localStorage.getItem("zelidauth"),e=await u.Z.getWalletInfo(t);"error"===e.data.status?this.$toast({component:d.Z,props:{title:e.data.data.message||e.data.data,icon:"InfoIcon",variant:"danger"}}):(this.callResponse.status=e.data.status,this.callResponse.data=JSON.stringify(e.data.data,null,4))}}},g=c;var m=a(1001),h=(0,m.Z)(g,n,r,!1,null,null,null);const f=h.exports},27616:(t,e,a)=>{a.d(e,{Z:()=>r});var n=a(80914);const r={help(){return(0,n.Z)().get("/daemon/help")},helpSpecific(t){return(0,n.Z)().get(`/daemon/help/${t}`)},getInfo(){return(0,n.Z)().get("/daemon/getinfo")},getFluxNodeStatus(){return(0,n.Z)().get("/daemon/getzelnodestatus")},getRawTransaction(t,e){return(0,n.Z)().get(`/daemon/getrawtransaction/${t}/${e}`)},listFluxNodes(){return(0,n.Z)().get("/daemon/listzelnodes")},viewDeterministicFluxNodeList(){return(0,n.Z)().get("/daemon/viewdeterministiczelnodelist")},getFluxNodeCount(){return(0,n.Z)().get("/daemon/getzelnodecount")},getStartList(){return(0,n.Z)().get("/daemon/getstartlist")},getDOSList(){return(0,n.Z)().get("/daemon/getdoslist")},fluxCurrentWinner(){return(0,n.Z)().get("/daemon/fluxcurrentwinner")},getBenchmarks(){return(0,n.Z)().get("/daemon/getbenchmarks")},getBenchStatus(){return(0,n.Z)().get("/daemon/getbenchstatus")},startBenchmark(t){return(0,n.Z)().get("/daemon/startbenchmark",{headers:{zelidauth:t}})},stopBenchmark(t){return(0,n.Z)().get("/daemon/stopbenchmark",{headers:{zelidauth:t}})},getBlockCount(){return(0,n.Z)().get("/daemon/getBlockCount")},getBlockchainInfo(){return(0,n.Z)().get("/daemon/getblockchaininfo")},getMiningInfo(){return(0,n.Z)().get("/daemon/getmininginfo")},getNetworkInfo(){return(0,n.Z)().get("/daemon/getnetworkinfo")},validateAddress(t,e){return(0,n.Z)().get(`/daemon/validateaddress/${e}`,{headers:{zelidauth:t}})},getWalletInfo(t){return(0,n.Z)().get("/daemon/getwalletinfo",{headers:{zelidauth:t}})},listFluxNodeConf(t){return(0,n.Z)().get("/daemon/listzelnodeconf",{headers:{zelidauth:t}})},start(t){return(0,n.Z)().get("/daemon/start",{headers:{zelidauth:t}})},restart(t){return(0,n.Z)().get("/daemon/restart",{headers:{zelidauth:t}})},stopDaemon(t){return(0,n.Z)().get("/daemon/stop",{headers:{zelidauth:t}})},rescanDaemon(t,e){return(0,n.Z)().get(`/daemon/rescanblockchain/${e}`,{headers:{zelidauth:t}})},getBlock(t,e){return(0,n.Z)().get(`/daemon/getblock/${t}/${e}`)},tailDaemonDebug(t){return(0,n.Z)().get("/flux/taildaemondebug",{headers:{zelidauth:t}})},justAPI(){return(0,n.Z)()},cancelToken(){return n.S}}}}]); \ No newline at end of file +"use strict";(self["webpackChunkflux"]=self["webpackChunkflux"]||[]).push([[5528],{34547:(t,e,a)=>{a.d(e,{Z:()=>u});var n=function(){var t=this,e=t._self._c;return e("div",{staticClass:"toastification"},[e("div",{staticClass:"d-flex align-items-start"},[e("b-avatar",{staticClass:"mr-75 flex-shrink-0",attrs:{variant:t.variant,size:"1.8rem"}},[e("feather-icon",{attrs:{icon:t.icon,size:"15"}})],1),e("div",{staticClass:"d-flex flex-grow-1"},[e("div",[t.title?e("h5",{staticClass:"mb-0 font-weight-bolder toastification-title",class:`text-${t.variant}`,domProps:{textContent:t._s(t.title)}}):t._e(),t.text?e("small",{staticClass:"d-inline-block text-body",domProps:{textContent:t._s(t.text)}}):t._e()]),e("span",{staticClass:"cursor-pointer toastification-close-icon ml-auto",on:{click:function(e){return t.$emit("close-toast")}}},[t.hideClose?t._e():e("feather-icon",{staticClass:"text-body",attrs:{icon:"XIcon"}})],1)])],1)])},r=[],s=a(47389);const o={components:{BAvatar:s.SH},props:{variant:{type:String,default:"primary"},icon:{type:String,default:null},title:{type:String,default:null},text:{type:String,default:null},hideClose:{type:Boolean,default:!1}}},l=o;var i=a(1001),d=(0,i.Z)(l,n,r,!1,null,"22d964ca",null);const u=d.exports},95528:(t,e,a)=>{a.r(e),a.d(e,{default:()=>f});var n=function(){var t=this,e=t._self._c;return e("b-overlay",{attrs:{show:!t.callResponse.data,variant:"transparent",blur:"5px"}},[e("b-card",[t.callResponse.data?t._e():e("b-card-title",[t._v(" Loading... ")]),t.callResponse.data?e("b-form-textarea",{attrs:{plaintext:"","no-resize":"",rows:"11",value:t.callResponse.data}}):t._e()],1)],1)},r=[],s=a(86855),o=a(49379),l=a(333),i=a(66126),d=a(34547),u=a(27616);const c={components:{BCard:s._,BCardTitle:o._,BFormTextarea:l.y,BOverlay:i.X,ToastificationContent:d.Z},data(){return{callResponse:{status:"",data:""}}},mounted(){this.daemonGetWalletInfo()},methods:{async daemonGetWalletInfo(){const t=localStorage.getItem("zelidauth"),e=await u.Z.getWalletInfo(t);"error"===e.data.status?this.$toast({component:d.Z,props:{title:e.data.data.message||e.data.data,icon:"InfoIcon",variant:"danger"}}):(this.callResponse.status=e.data.status,this.callResponse.data=JSON.stringify(e.data.data,null,4))}}},g=c;var m=a(1001),h=(0,m.Z)(g,n,r,!1,null,null,null);const f=h.exports},27616:(t,e,a)=>{a.d(e,{Z:()=>r});var n=a(80914);const r={help(){return(0,n.Z)().get("/daemon/help")},helpSpecific(t){return(0,n.Z)().get(`/daemon/help/${t}`)},getInfo(){return(0,n.Z)().get("/daemon/getinfo")},getFluxNodeStatus(){return(0,n.Z)().get("/daemon/getzelnodestatus")},getRawTransaction(t,e){return(0,n.Z)().get(`/daemon/getrawtransaction/${t}/${e}`)},listFluxNodes(){return(0,n.Z)().get("/daemon/listzelnodes")},viewDeterministicFluxNodeList(){return(0,n.Z)().get("/daemon/viewdeterministiczelnodelist")},getFluxNodeCount(){return(0,n.Z)().get("/daemon/getzelnodecount")},getStartList(){return(0,n.Z)().get("/daemon/getstartlist")},getDOSList(){return(0,n.Z)().get("/daemon/getdoslist")},fluxCurrentWinner(){return(0,n.Z)().get("/daemon/fluxcurrentwinner")},getBenchmarks(){return(0,n.Z)().get("/daemon/getbenchmarks")},getBenchStatus(){return(0,n.Z)().get("/daemon/getbenchstatus")},startBenchmark(t){return(0,n.Z)().get("/daemon/startbenchmark",{headers:{zelidauth:t}})},stopBenchmark(t){return(0,n.Z)().get("/daemon/stopbenchmark",{headers:{zelidauth:t}})},getBlockCount(){return(0,n.Z)().get("/daemon/getBlockCount")},getBlockchainInfo(){return(0,n.Z)().get("/daemon/getblockchaininfo")},getMiningInfo(){return(0,n.Z)().get("/daemon/getmininginfo")},getNetworkInfo(){return(0,n.Z)().get("/daemon/getnetworkinfo")},validateAddress(t,e){return(0,n.Z)().get(`/daemon/validateaddress/${e}`,{headers:{zelidauth:t}})},getWalletInfo(t){return(0,n.Z)().get("/daemon/getwalletinfo",{headers:{zelidauth:t}})},listFluxNodeConf(t){return(0,n.Z)().get("/daemon/listzelnodeconf",{headers:{zelidauth:t}})},start(t){return(0,n.Z)().get("/daemon/start",{headers:{zelidauth:t}})},restart(t){return(0,n.Z)().get("/daemon/restart",{headers:{zelidauth:t}})},stopDaemon(t){return(0,n.Z)().get("/daemon/stop",{headers:{zelidauth:t}})},rescanDaemon(t,e){return(0,n.Z)().get(`/daemon/rescanblockchain/${e}`,{headers:{zelidauth:t}})},getBlock(t,e){return(0,n.Z)().get(`/daemon/getblock/${t}/${e}`)},tailDaemonDebug(t){return(0,n.Z)().get("/flux/taildaemondebug",{headers:{zelidauth:t}})},justAPI(){return(0,n.Z)()},cancelToken(){return n.S}}}}]); \ No newline at end of file diff --git a/HomeUI/dist/js/560.js b/HomeUI/dist/js/560.js new file mode 100644 index 000000000..f584ef9ae --- /dev/null +++ b/HomeUI/dist/js/560.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunkflux"]=self["webpackChunkflux"]||[]).push([[560],{10509:(t,r,e)=>{var n=e(69985),o=e(23691),i=TypeError;t.exports=function(t){if(n(t))return t;throw new i(o(t)+" is not a function")}},85027:(t,r,e)=>{var n=e(48999),o=String,i=TypeError;t.exports=function(t){if(n(t))return t;throw new i(o(t)+" is not an object")}},84328:(t,r,e)=>{var n=e(65290),o=e(27578),i=e(6310),u=function(t){return function(r,e,u){var a,c=n(r),f=i(c),p=o(u,f);if(t&&e!==e){while(f>p)if(a=c[p++],a!==a)return!0}else for(;f>p;p++)if((t||p in c)&&c[p]===e)return t||p||0;return!t&&-1}};t.exports={includes:u(!0),indexOf:u(!1)}},5649:(t,r,e)=>{var n=e(67697),o=e(92297),i=TypeError,u=Object.getOwnPropertyDescriptor,a=n&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(t){return t instanceof TypeError}}();t.exports=a?function(t,r){if(o(t)&&!u(t,"length").writable)throw new i("Cannot set read only .length");return t.length=r}:function(t,r){return t.length=r}},6648:(t,r,e)=>{var n=e(68844),o=n({}.toString),i=n("".slice);t.exports=function(t){return i(o(t),8,-1)}},8758:(t,r,e)=>{var n=e(36812),o=e(19152),i=e(82474),u=e(72560);t.exports=function(t,r,e){for(var a=o(r),c=u.f,f=i.f,p=0;p{var n=e(67697),o=e(72560),i=e(75684);t.exports=n?function(t,r,e){return o.f(t,r,i(1,e))}:function(t,r,e){return t[r]=e,t}},75684:t=>{t.exports=function(t,r){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:r}}},11880:(t,r,e)=>{var n=e(69985),o=e(72560),i=e(98702),u=e(95014);t.exports=function(t,r,e,a){a||(a={});var c=a.enumerable,f=void 0!==a.name?a.name:r;if(n(e)&&i(e,f,a),a.global)c?t[r]=e:u(r,e);else{try{a.unsafe?t[r]&&(c=!0):delete t[r]}catch(p){}c?t[r]=e:o.f(t,r,{value:e,enumerable:!1,configurable:!a.nonConfigurable,writable:!a.nonWritable})}return t}},95014:(t,r,e)=>{var n=e(19037),o=Object.defineProperty;t.exports=function(t,r){try{o(n,t,{value:r,configurable:!0,writable:!0})}catch(e){n[t]=r}return r}},67697:(t,r,e)=>{var n=e(3689);t.exports=!n((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}))},36420:(t,r,e)=>{var n=e(19037),o=e(48999),i=n.document,u=o(i)&&o(i.createElement);t.exports=function(t){return u?i.createElement(t):{}}},55565:t=>{var r=TypeError,e=9007199254740991;t.exports=function(t){if(t>e)throw r("Maximum allowed index exceeded");return t}},30071:t=>{t.exports="undefined"!=typeof navigator&&String(navigator.userAgent)||""},3615:(t,r,e)=>{var n,o,i=e(19037),u=e(30071),a=i.process,c=i.Deno,f=a&&a.versions||c&&c.version,p=f&&f.v8;p&&(n=p.split("."),o=n[0]>0&&n[0]<4?1:+(n[0]+n[1])),!o&&u&&(n=u.match(/Edge\/(\d+)/),(!n||n[1]>=74)&&(n=u.match(/Chrome\/(\d+)/),n&&(o=+n[1]))),t.exports=o},72739:t=>{t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},79989:(t,r,e)=>{var n=e(19037),o=e(82474).f,i=e(75773),u=e(11880),a=e(95014),c=e(8758),f=e(35266);t.exports=function(t,r){var e,p,s,l,v,y,h=t.target,b=t.global,g=t.stat;if(p=b?n:g?n[h]||a(h,{}):n[h]&&n[h].prototype,p)for(s in r){if(v=r[s],t.dontCallGetSet?(y=o(p,s),l=y&&y.value):l=p[s],e=f(b?s:h+(g?".":"#")+s,t.forced),!e&&void 0!==l){if(typeof v==typeof l)continue;c(v,l)}(t.sham||l&&l.sham)&&i(v,"sham",!0),u(p,s,v,t)}}},3689:t=>{t.exports=function(t){try{return!!t()}catch(r){return!0}}},97215:(t,r,e)=>{var n=e(3689);t.exports=!n((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")}))},22615:(t,r,e)=>{var n=e(97215),o=Function.prototype.call;t.exports=n?o.bind(o):function(){return o.apply(o,arguments)}},41236:(t,r,e)=>{var n=e(67697),o=e(36812),i=Function.prototype,u=n&&Object.getOwnPropertyDescriptor,a=o(i,"name"),c=a&&"something"===function(){}.name,f=a&&(!n||n&&u(i,"name").configurable);t.exports={EXISTS:a,PROPER:c,CONFIGURABLE:f}},68844:(t,r,e)=>{var n=e(97215),o=Function.prototype,i=o.call,u=n&&o.bind.bind(i,i);t.exports=n?u:function(t){return function(){return i.apply(t,arguments)}}},76058:(t,r,e)=>{var n=e(19037),o=e(69985),i=function(t){return o(t)?t:void 0};t.exports=function(t,r){return arguments.length<2?i(n[t]):n[t]&&n[t][r]}},54849:(t,r,e)=>{var n=e(10509),o=e(981);t.exports=function(t,r){var e=t[r];return o(e)?void 0:n(e)}},19037:function(t,r,e){var n=function(t){return t&&t.Math===Math&&t};t.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof e.g&&e.g)||n("object"==typeof this&&this)||function(){return this}()||Function("return this")()},36812:(t,r,e)=>{var n=e(68844),o=e(90690),i=n({}.hasOwnProperty);t.exports=Object.hasOwn||function(t,r){return i(o(t),r)}},57248:t=>{t.exports={}},68506:(t,r,e)=>{var n=e(67697),o=e(3689),i=e(36420);t.exports=!n&&!o((function(){return 7!==Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},94413:(t,r,e)=>{var n=e(68844),o=e(3689),i=e(6648),u=Object,a=n("".split);t.exports=o((function(){return!u("z").propertyIsEnumerable(0)}))?function(t){return"String"===i(t)?a(t,""):u(t)}:u},6738:(t,r,e)=>{var n=e(68844),o=e(69985),i=e(84091),u=n(Function.toString);o(i.inspectSource)||(i.inspectSource=function(t){return u(t)}),t.exports=i.inspectSource},618:(t,r,e)=>{var n,o,i,u=e(59834),a=e(19037),c=e(48999),f=e(75773),p=e(36812),s=e(84091),l=e(2713),v=e(57248),y="Object already initialized",h=a.TypeError,b=a.WeakMap,g=function(t){return i(t)?o(t):n(t,{})},x=function(t){return function(r){var e;if(!c(r)||(e=o(r)).type!==t)throw new h("Incompatible receiver, "+t+" required");return e}};if(u||s.state){var m=s.state||(s.state=new b);m.get=m.get,m.has=m.has,m.set=m.set,n=function(t,r){if(m.has(t))throw new h(y);return r.facade=t,m.set(t,r),r},o=function(t){return m.get(t)||{}},i=function(t){return m.has(t)}}else{var d=l("state");v[d]=!0,n=function(t,r){if(p(t,d))throw new h(y);return r.facade=t,f(t,d,r),r},o=function(t){return p(t,d)?t[d]:{}},i=function(t){return p(t,d)}}t.exports={set:n,get:o,has:i,enforce:g,getterFor:x}},92297:(t,r,e)=>{var n=e(6648);t.exports=Array.isArray||function(t){return"Array"===n(t)}},69985:t=>{var r="object"==typeof document&&document.all;t.exports="undefined"==typeof r&&void 0!==r?function(t){return"function"==typeof t||t===r}:function(t){return"function"==typeof t}},35266:(t,r,e)=>{var n=e(3689),o=e(69985),i=/#|\.prototype\./,u=function(t,r){var e=c[a(t)];return e===p||e!==f&&(o(r)?n(r):!!r)},a=u.normalize=function(t){return String(t).replace(i,".").toLowerCase()},c=u.data={},f=u.NATIVE="N",p=u.POLYFILL="P";t.exports=u},981:t=>{t.exports=function(t){return null===t||void 0===t}},48999:(t,r,e)=>{var n=e(69985);t.exports=function(t){return"object"==typeof t?null!==t:n(t)}},53931:t=>{t.exports=!1},30734:(t,r,e)=>{var n=e(76058),o=e(69985),i=e(23622),u=e(39525),a=Object;t.exports=u?function(t){return"symbol"==typeof t}:function(t){var r=n("Symbol");return o(r)&&i(r.prototype,a(t))}},6310:(t,r,e)=>{var n=e(43126);t.exports=function(t){return n(t.length)}},98702:(t,r,e)=>{var n=e(68844),o=e(3689),i=e(69985),u=e(36812),a=e(67697),c=e(41236).CONFIGURABLE,f=e(6738),p=e(618),s=p.enforce,l=p.get,v=String,y=Object.defineProperty,h=n("".slice),b=n("".replace),g=n([].join),x=a&&!o((function(){return 8!==y((function(){}),"length",{value:8}).length})),m=String(String).split("String"),d=t.exports=function(t,r,e){"Symbol("===h(v(r),0,7)&&(r="["+b(v(r),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),e&&e.getter&&(r="get "+r),e&&e.setter&&(r="set "+r),(!u(t,"name")||c&&t.name!==r)&&(a?y(t,"name",{value:r,configurable:!0}):t.name=r),x&&e&&u(e,"arity")&&t.length!==e.arity&&y(t,"length",{value:e.arity});try{e&&u(e,"constructor")&&e.constructor?a&&y(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(o){}var n=s(t);return u(n,"source")||(n.source=g(m,"string"==typeof r?r:"")),t};Function.prototype.toString=d((function(){return i(this)&&l(this).source||f(this)}),"toString")},58828:t=>{var r=Math.ceil,e=Math.floor;t.exports=Math.trunc||function(t){var n=+t;return(n>0?e:r)(n)}},72560:(t,r,e)=>{var n=e(67697),o=e(68506),i=e(15648),u=e(85027),a=e(18360),c=TypeError,f=Object.defineProperty,p=Object.getOwnPropertyDescriptor,s="enumerable",l="configurable",v="writable";r.f=n?i?function(t,r,e){if(u(t),r=a(r),u(e),"function"===typeof t&&"prototype"===r&&"value"in e&&v in e&&!e[v]){var n=p(t,r);n&&n[v]&&(t[r]=e.value,e={configurable:l in e?e[l]:n[l],enumerable:s in e?e[s]:n[s],writable:!1})}return f(t,r,e)}:f:function(t,r,e){if(u(t),r=a(r),u(e),o)try{return f(t,r,e)}catch(n){}if("get"in e||"set"in e)throw new c("Accessors not supported");return"value"in e&&(t[r]=e.value),t}},82474:(t,r,e)=>{var n=e(67697),o=e(22615),i=e(49556),u=e(75684),a=e(65290),c=e(18360),f=e(36812),p=e(68506),s=Object.getOwnPropertyDescriptor;r.f=n?s:function(t,r){if(t=a(t),r=c(r),p)try{return s(t,r)}catch(e){}if(f(t,r))return u(!o(i.f,t,r),t[r])}},72741:(t,r,e)=>{var n=e(54948),o=e(72739),i=o.concat("length","prototype");r.f=Object.getOwnPropertyNames||function(t){return n(t,i)}},7518:(t,r)=>{r.f=Object.getOwnPropertySymbols},23622:(t,r,e)=>{var n=e(68844);t.exports=n({}.isPrototypeOf)},54948:(t,r,e)=>{var n=e(68844),o=e(36812),i=e(65290),u=e(84328).indexOf,a=e(57248),c=n([].push);t.exports=function(t,r){var e,n=i(t),f=0,p=[];for(e in n)!o(a,e)&&o(n,e)&&c(p,e);while(r.length>f)o(n,e=r[f++])&&(~u(p,e)||c(p,e));return p}},49556:(t,r)=>{var e={}.propertyIsEnumerable,n=Object.getOwnPropertyDescriptor,o=n&&!e.call({1:2},1);r.f=o?function(t){var r=n(this,t);return!!r&&r.enumerable}:e},35899:(t,r,e)=>{var n=e(22615),o=e(69985),i=e(48999),u=TypeError;t.exports=function(t,r){var e,a;if("string"===r&&o(e=t.toString)&&!i(a=n(e,t)))return a;if(o(e=t.valueOf)&&!i(a=n(e,t)))return a;if("string"!==r&&o(e=t.toString)&&!i(a=n(e,t)))return a;throw new u("Can't convert object to primitive value")}},19152:(t,r,e)=>{var n=e(76058),o=e(68844),i=e(72741),u=e(7518),a=e(85027),c=o([].concat);t.exports=n("Reflect","ownKeys")||function(t){var r=i.f(a(t)),e=u.f;return e?c(r,e(t)):r}},74684:(t,r,e)=>{var n=e(981),o=TypeError;t.exports=function(t){if(n(t))throw new o("Can't call method on "+t);return t}},2713:(t,r,e)=>{var n=e(83430),o=e(14630),i=n("keys");t.exports=function(t){return i[t]||(i[t]=o(t))}},84091:(t,r,e)=>{var n=e(19037),o=e(95014),i="__core-js_shared__",u=n[i]||o(i,{});t.exports=u},83430:(t,r,e)=>{var n=e(53931),o=e(84091);(t.exports=function(t,r){return o[t]||(o[t]=void 0!==r?r:{})})("versions",[]).push({version:"3.35.1",mode:n?"pure":"global",copyright:"© 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.35.1/LICENSE",source:"https://github.com/zloirock/core-js"})},50146:(t,r,e)=>{var n=e(3615),o=e(3689),i=e(19037),u=i.String;t.exports=!!Object.getOwnPropertySymbols&&!o((function(){var t=Symbol("symbol detection");return!u(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&n&&n<41}))},27578:(t,r,e)=>{var n=e(68700),o=Math.max,i=Math.min;t.exports=function(t,r){var e=n(t);return e<0?o(e+r,0):i(e,r)}},65290:(t,r,e)=>{var n=e(94413),o=e(74684);t.exports=function(t){return n(o(t))}},68700:(t,r,e)=>{var n=e(58828);t.exports=function(t){var r=+t;return r!==r||0===r?0:n(r)}},43126:(t,r,e)=>{var n=e(68700),o=Math.min;t.exports=function(t){var r=n(t);return r>0?o(r,9007199254740991):0}},90690:(t,r,e)=>{var n=e(74684),o=Object;t.exports=function(t){return o(n(t))}},88732:(t,r,e)=>{var n=e(22615),o=e(48999),i=e(30734),u=e(54849),a=e(35899),c=e(44201),f=TypeError,p=c("toPrimitive");t.exports=function(t,r){if(!o(t)||i(t))return t;var e,c=u(t,p);if(c){if(void 0===r&&(r="default"),e=n(c,t,r),!o(e)||i(e))return e;throw new f("Can't convert object to primitive value")}return void 0===r&&(r="number"),a(t,r)}},18360:(t,r,e)=>{var n=e(88732),o=e(30734);t.exports=function(t){var r=n(t,"string");return o(r)?r:r+""}},23691:t=>{var r=String;t.exports=function(t){try{return r(t)}catch(e){return"Object"}}},14630:(t,r,e)=>{var n=e(68844),o=0,i=Math.random(),u=n(1..toString);t.exports=function(t){return"Symbol("+(void 0===t?"":t)+")_"+u(++o+i,36)}},39525:(t,r,e)=>{var n=e(50146);t.exports=n&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},15648:(t,r,e)=>{var n=e(67697),o=e(3689);t.exports=n&&o((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},59834:(t,r,e)=>{var n=e(19037),o=e(69985),i=n.WeakMap;t.exports=o(i)&&/native code/.test(String(i))},44201:(t,r,e)=>{var n=e(19037),o=e(83430),i=e(36812),u=e(14630),a=e(50146),c=e(39525),f=n.Symbol,p=o("wks"),s=c?f["for"]||f:f&&f.withoutSetter||u;t.exports=function(t){return i(p,t)||(p[t]=a&&i(f,t)?f[t]:s("Symbol."+t)),p[t]}},70560:(t,r,e)=>{var n=e(79989),o=e(90690),i=e(6310),u=e(5649),a=e(55565),c=e(3689),f=c((function(){return 4294967297!==[].push.call({length:4294967296},1)})),p=function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(t){return t instanceof TypeError}},s=f||!p();n({target:"Array",proto:!0,arity:1,forced:s},{push:function(t){var r=o(this),e=i(r),n=arguments.length;a(e+n);for(var c=0;c{a.d(s,{Z:()=>c});var e=function(){var t=this,s=t._self._c;return s("div",{staticClass:"toastification"},[s("div",{staticClass:"d-flex align-items-start"},[s("b-avatar",{staticClass:"mr-75 flex-shrink-0",attrs:{variant:t.variant,size:"1.8rem"}},[s("feather-icon",{attrs:{icon:t.icon,size:"15"}})],1),s("div",{staticClass:"d-flex flex-grow-1"},[s("div",[t.title?s("h5",{staticClass:"mb-0 font-weight-bolder toastification-title",class:`text-${t.variant}`,domProps:{textContent:t._s(t.title)}}):t._e(),t.text?s("small",{staticClass:"d-inline-block text-body",domProps:{textContent:t._s(t.text)}}):t._e()]),s("span",{staticClass:"cursor-pointer toastification-close-icon ml-auto",on:{click:function(s){return t.$emit("close-toast")}}},[t.hideClose?t._e():s("feather-icon",{staticClass:"text-body",attrs:{icon:"XIcon"}})],1)])],1)])},i=[],o=a(47389);const l={components:{BAvatar:o.SH},props:{variant:{type:String,default:"primary"},icon:{type:String,default:null},title:{type:String,default:null},text:{type:String,default:null},hideClose:{type:Boolean,default:!1}}},r=l;var n=a(1001),u=(0,n.Z)(r,e,i,!1,null,"22d964ca",null);const c=u.exports},35988:(t,s,a)=>{a.r(s),a.d(s,{default:()=>w});var e=function(){var t=this,s=t._self._c;return s("div",[s("b-overlay",{attrs:{show:t.historyStatsLoading,variant:"transparent",blur:"5px"}},[s("b-row",{staticClass:"match-height"},[s("b-col",{attrs:{md:"12",lg:"6",xxl:"4"}},[s("b-card",{attrs:{"no-body":""}},[s("b-card-body",{staticClass:"d-flex justify-content-between align-items-center"},[s("div",[s("h2",{staticClass:"mt-0 truncate"},[t._v(" Total Nodes: "+t._s(t.totalNodes)+" ")])]),s("b-avatar",{attrs:{size:"48",variant:"light-success"}},[s("feather-icon",{attrs:{size:"24",icon:"ServerIcon"}})],1)],1),s("vue-apex-charts",{attrs:{type:"donut",height:"400",width:"100%",options:t.nodeData.chartOptions,series:t.nodeData.series}})],1)],1),s("b-col",{attrs:{md:"12",lg:"6",xxl:"8"}},[s("b-card",{attrs:{"no-body":""}},[s("b-card-body",{staticClass:"d-flex justify-content-between align-items-center"},[s("div",[s("h2",{staticClass:"mt-0 truncate"},[t._v(" Node History ")])])]),s("div",{staticClass:"mt-auto"},[s("vue-apex-charts",{attrs:{type:"area",height:"400",width:"100%",options:t.nodeHistoryData.chartOptions,series:t.nodeHistoryData.series}})],1)],1)],1)],1)],1),s("b-overlay",{attrs:{show:t.supplyLoading,variant:"transparent",blur:"5px"}},[s("b-row",{staticClass:"match-height"},[s("b-col",{attrs:{md:"12",lg:"6",xxl:"4"}},[s("b-card",{attrs:{"no-body":""}},[s("b-card-body",{staticClass:"d-flex justify-content-between align-items-center"},[s("div",[s("h2",{staticClass:"mt-0 truncate"},[t._v(" Locked Supply: "+t._s(t.beautifyValue(t.lockedSupply,0))+" ")])]),s("b-avatar",{attrs:{size:"48",variant:"light-success"}},[s("feather-icon",{attrs:{size:"24",icon:"LockIcon"}})],1)],1),s("vue-apex-charts",{attrs:{type:"donut",height:"300",options:t.lockedSupplyData.chartOptions,series:t.lockedSupplyData.series}})],1)],1),s("b-col",{attrs:{md:"12",lg:"6",xxl:"8"}},[s("b-card",{attrs:{"no-body":""}},[s("b-card-body",[s("div",[s("h2",{staticClass:"mt-0 truncate"},[t._v(" FLUX Supply ")])]),s("div",[s("b-card-text",{staticClass:"mt-2"},[t._v(" Max Supply ")]),s("h3",[t._v(" "+t._s(t.beautifyValue(t.maxSupply,0))+" FLUX ")])],1),s("hr"),s("div",[s("b-card-text",[t._v("Circulating Supply")]),s("b-row",[s("b-col",{attrs:{xl:"4",md:"6",sm:"12"}},[s("h3",[t._v(" "+t._s(t.beautifyValue(t.circulatingSupply,0))+" FLUX ")])]),s("b-col",{attrs:{xl:"8",md:"6",sm:"12"}},[s("b-progress",{staticClass:"mt-25",attrs:{value:t.circulatingSupply,max:t.maxSupply,variant:"success",height:"10px"}})],1)],1)],1),s("hr"),s("div",[s("b-card-text",[t._v("Locked Supply")]),s("b-row",[s("b-col",{attrs:{xl:"4",md:"6",sm:"12"}},[s("h3",[t._v(" "+t._s(t.beautifyValue(t.lockedSupply,0))+" FLUX ")])]),s("b-col",{attrs:{xl:"8",md:"6",sm:"12"}},[s("b-progress",{staticClass:"mt-25",attrs:{value:t.lockedSupply,max:t.circulatingSupply,variant:"success",height:"10px"}})],1)],1)],1)])],1)],1)],1)],1)],1)},i=[],o=(a(70560),a(66126)),l=a(86855),r=a(19279),n=a(64206),u=a(26253),c=a(50725),d=a(47389),p=a(45752),h=a(67166),b=a.n(h),y=a(34547),m=a(72918),g=a(51136);const x=a(97218),f={components:{BOverlay:o.X,BCard:l._,BCardBody:r.O,BCardText:n.j,BRow:u.T,BCol:c.l,BAvatar:d.SH,BProgress:p.D,VueApexCharts:b(),ToastificationContent:y.Z},data(){return{historyStatsLoading:!0,supplyLoading:!0,totalNodes:0,nodeData:{chartOptions:{chart:{toolbar:{show:!1}},dataLabels:{enabled:!0},labels:["Cumulus","Nimbus","Stratus"],legend:{show:!1},stroke:{width:0},colors:[m.Z.cumulus,m.Z.nimbus,m.Z.stratus],tooltip:{y:{formatter:t=>this.beautifyValue(t,0)}}},series:[]},nodeHistoryData:{chartOptions:{colors:[m.Z.cumulus,m.Z.nimbus,m.Z.stratus],labels:["Cumulus","Nimbus","Stratus"],grid:{show:!1,padding:{left:0,right:0}},chart:{toolbar:{show:!1},sparkline:{enabled:!0},stacked:!0},dataLabels:{enabled:!1},stroke:{curve:"smooth",width:2.5},fill:{type:"gradient",gradient:{shadeIntensity:.9,opacityFrom:.7,opacityTo:.2,stops:[0,80,100]}},xaxis:{type:"numeric",lines:{show:!1},axisBorder:{show:!1},labels:{show:!1}},yaxis:[{y:0,offsetX:0,offsetY:0,padding:{left:0,right:0}}],tooltip:{x:{formatter:t=>new Date(t).toLocaleString("en-GB",this.timeoptions)}}},series:[]},lockedSupplyData:{chartOptions:{chart:{toolbar:{show:!1}},dataLabels:{enabled:!0},labels:["Cumulus","Nimbus","Stratus"],legend:{show:!1},stroke:{width:0},colors:[m.Z.cumulus,m.Z.nimbus,m.Z.stratus],tooltip:{y:{formatter:t=>this.beautifyValue(t,0)}}},series:[]},maxSupply:44e7,lockedSupply:0,lockedSupplyPerc:0,circulatingSupply:0,circulatingSupplyPerc:0}},mounted(){this.getHistoryStats(),this.getCircSupply()},methods:{async getCircSupply(){this.supplyLoading=!0;const t=await x.get("https://explorer.runonflux.io/api/statistics/circulating-supply");this.circulatingSupply=t.data,this.circulatingSupplyPerc=Number((this.circulatingSupply/44e7*100).toFixed(2)),await this.getFluxNodeCount(),this.supplyLoading=!1},async getHistoryStats(){try{this.historyStatsLoading=!0;const t=await x.get("https://stats.runonflux.io/fluxhistorystats");this.fluxHistoryStats=t.data.data,this.historyStatsLoading=!1;const s=Object.keys(this.fluxHistoryStats),a=[],e=[],i=[];s.forEach((t=>{a.push([Number(t),this.fluxHistoryStats[t].cumulus]),e.push([Number(t),this.fluxHistoryStats[t].nimbus]),i.push([Number(t),this.fluxHistoryStats[t].stratus])})),this.nodeHistoryData.series=[{name:"Cumulus",data:a},{name:"Nimbus",data:e},{name:"Stratus",data:i}]}catch(t){console.log(t),this.$toast({component:y.Z,props:{title:"Unable to fetch history stats",icon:"InfoIcon",variant:"danger"}})}},async getFluxNodeCount(){try{const t=await g.Z.fluxnodeCount(),s=t.data.data,a=s["stratus-enabled"];let e=s["nimbus-enabled"],i=s["cumulus-enabled"];s["cumulus-enabled"]{a.d(s,{Z:()=>i});const e={cumulus:"#2B61D1",nimbus:"#ff9f43",stratus:"#ea5455"},i=e},51136:(t,s,a)=>{a.d(s,{Z:()=>i});var e=a(80914);const i={listFluxNodes(){return(0,e.Z)().get("/daemon/listzelnodes")},fluxnodeCount(){return(0,e.Z)().get("/daemon/getzelnodecount")},blockReward(){return(0,e.Z)().get("/daemon/getblocksubsidy")}}}}]); \ No newline at end of file +(self["webpackChunkflux"]=self["webpackChunkflux"]||[]).push([[5988],{34547:(t,e,s)=>{"use strict";s.d(e,{Z:()=>l});var a=function(){var t=this,e=t._self._c;return e("div",{staticClass:"toastification"},[e("div",{staticClass:"d-flex align-items-start"},[e("b-avatar",{staticClass:"mr-75 flex-shrink-0",attrs:{variant:t.variant,size:"1.8rem"}},[e("feather-icon",{attrs:{icon:t.icon,size:"15"}})],1),e("div",{staticClass:"d-flex flex-grow-1"},[e("div",[t.title?e("h5",{staticClass:"mb-0 font-weight-bolder toastification-title",class:`text-${t.variant}`,domProps:{textContent:t._s(t.title)}}):t._e(),t.text?e("small",{staticClass:"d-inline-block text-body",domProps:{textContent:t._s(t.text)}}):t._e()]),e("span",{staticClass:"cursor-pointer toastification-close-icon ml-auto",on:{click:function(e){return t.$emit("close-toast")}}},[t.hideClose?t._e():e("feather-icon",{staticClass:"text-body",attrs:{icon:"XIcon"}})],1)])],1)])},i=[],n=s(47389);const o={components:{BAvatar:n.SH},props:{variant:{type:String,default:"primary"},icon:{type:String,default:null},title:{type:String,default:null},text:{type:String,default:null},hideClose:{type:Boolean,default:!1}}},r=o;var c=s(1001),u=(0,c.Z)(r,a,i,!1,null,"22d964ca",null);const l=u.exports},35988:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>C});var a=function(){var t=this,e=t._self._c;return e("div",[e("b-overlay",{attrs:{show:t.historyStatsLoading,variant:"transparent",blur:"5px"}},[e("b-row",{staticClass:"match-height"},[e("b-col",{attrs:{md:"12",lg:"6",xxl:"4"}},[e("b-card",{attrs:{"no-body":""}},[e("b-card-body",{staticClass:"d-flex justify-content-between align-items-center"},[e("div",[e("h2",{staticClass:"mt-0 truncate"},[t._v(" Total Nodes: "+t._s(t.totalNodes)+" ")])]),e("b-avatar",{attrs:{size:"48",variant:"light-success"}},[e("feather-icon",{attrs:{size:"24",icon:"ServerIcon"}})],1)],1),e("vue-apex-charts",{attrs:{type:"donut",height:"400",width:"100%",options:t.nodeData.chartOptions,series:t.nodeData.series}})],1)],1),e("b-col",{attrs:{md:"12",lg:"6",xxl:"8"}},[e("b-card",{attrs:{"no-body":""}},[e("b-card-body",{staticClass:"d-flex justify-content-between align-items-center"},[e("div",[e("h2",{staticClass:"mt-0 truncate"},[t._v(" Node History ")])])]),e("div",{staticClass:"mt-auto"},[e("vue-apex-charts",{attrs:{type:"area",height:"400",width:"100%",options:t.nodeHistoryData.chartOptions,series:t.nodeHistoryData.series}})],1)],1)],1)],1)],1),e("b-overlay",{attrs:{show:t.supplyLoading,variant:"transparent",blur:"5px"}},[e("b-row",{staticClass:"match-height"},[e("b-col",{attrs:{md:"12",lg:"6",xxl:"4"}},[e("b-card",{attrs:{"no-body":""}},[e("b-card-body",{staticClass:"d-flex justify-content-between align-items-center"},[e("div",[e("h2",{staticClass:"mt-0 truncate"},[t._v(" Locked Supply: "+t._s(t.beautifyValue(t.lockedSupply,0))+" ")])]),e("b-avatar",{attrs:{size:"48",variant:"light-success"}},[e("feather-icon",{attrs:{size:"24",icon:"LockIcon"}})],1)],1),e("vue-apex-charts",{attrs:{type:"donut",height:"300",options:t.lockedSupplyData.chartOptions,series:t.lockedSupplyData.series}})],1)],1),e("b-col",{attrs:{md:"12",lg:"6",xxl:"8"}},[e("b-card",{attrs:{"no-body":""}},[e("b-card-body",[e("div",[e("h2",{staticClass:"mt-0 truncate"},[t._v(" FLUX Supply ")])]),e("div",[e("b-card-text",{staticClass:"mt-2"},[t._v(" Max Supply ")]),e("h3",[t._v(" "+t._s(t.beautifyValue(t.maxSupply,0))+" FLUX ")])],1),e("hr"),e("div",[e("b-card-text",[t._v("Circulating Supply")]),e("b-row",[e("b-col",{attrs:{xl:"4",md:"6",sm:"12"}},[e("h3",[t._v(" "+t._s(t.beautifyValue(t.circulatingSupply,0))+" FLUX ")])]),e("b-col",{attrs:{xl:"8",md:"6",sm:"12"}},[e("b-progress",{staticClass:"mt-25",attrs:{value:t.circulatingSupply,max:t.maxSupply,variant:"success",height:"10px"}})],1)],1)],1),e("hr"),e("div",[e("b-card-text",[t._v("Locked Supply")]),e("b-row",[e("b-col",{attrs:{xl:"4",md:"6",sm:"12"}},[e("h3",[t._v(" "+t._s(t.beautifyValue(t.lockedSupply,0))+" FLUX ")])]),e("b-col",{attrs:{xl:"8",md:"6",sm:"12"}},[e("b-progress",{staticClass:"mt-25",attrs:{value:t.lockedSupply,max:t.circulatingSupply,variant:"success",height:"10px"}})],1)],1)],1)])],1)],1)],1)],1)],1)},i=[],n=(s(70560),s(66126)),o=s(86855),r=s(19279),c=s(64206),u=s(26253),l=s(50725),d=s(47389),h=s(45752),p=s(67166),f=s.n(p),y=s(34547),b=s(72918),m=s(51136);const g=s(97218),x={components:{BOverlay:n.X,BCard:o._,BCardBody:r.O,BCardText:c.j,BRow:u.T,BCol:l.l,BAvatar:d.SH,BProgress:h.D,VueApexCharts:f(),ToastificationContent:y.Z},data(){return{historyStatsLoading:!0,supplyLoading:!0,totalNodes:0,nodeData:{chartOptions:{chart:{toolbar:{show:!1}},dataLabels:{enabled:!0},labels:["Cumulus","Nimbus","Stratus"],legend:{show:!1},stroke:{width:0},colors:[b.Z.cumulus,b.Z.nimbus,b.Z.stratus],tooltip:{y:{formatter:t=>this.beautifyValue(t,0)}}},series:[]},nodeHistoryData:{chartOptions:{colors:[b.Z.cumulus,b.Z.nimbus,b.Z.stratus],labels:["Cumulus","Nimbus","Stratus"],grid:{show:!1,padding:{left:0,right:0}},chart:{toolbar:{show:!1},sparkline:{enabled:!0},stacked:!0},dataLabels:{enabled:!1},stroke:{curve:"smooth",width:2.5},fill:{type:"gradient",gradient:{shadeIntensity:.9,opacityFrom:.7,opacityTo:.2,stops:[0,80,100]}},xaxis:{type:"numeric",lines:{show:!1},axisBorder:{show:!1},labels:{show:!1}},yaxis:[{y:0,offsetX:0,offsetY:0,padding:{left:0,right:0}}],tooltip:{x:{formatter:t=>new Date(t).toLocaleString("en-GB",this.timeoptions)}}},series:[]},lockedSupplyData:{chartOptions:{chart:{toolbar:{show:!1}},dataLabels:{enabled:!0},labels:["Cumulus","Nimbus","Stratus"],legend:{show:!1},stroke:{width:0},colors:[b.Z.cumulus,b.Z.nimbus,b.Z.stratus],tooltip:{y:{formatter:t=>this.beautifyValue(t,0)}}},series:[]},maxSupply:44e7,lockedSupply:0,lockedSupplyPerc:0,circulatingSupply:0,circulatingSupplyPerc:0}},mounted(){this.getHistoryStats(),this.getCircSupply()},methods:{async getCircSupply(){this.supplyLoading=!0;const t=await g.get("https://explorer.runonflux.io/api/statistics/circulating-supply");this.circulatingSupply=t.data,this.circulatingSupplyPerc=Number((this.circulatingSupply/44e7*100).toFixed(2)),await this.getFluxNodeCount(),this.supplyLoading=!1},async getHistoryStats(){try{this.historyStatsLoading=!0;const t=await g.get("https://stats.runonflux.io/fluxhistorystats");this.fluxHistoryStats=t.data.data,this.historyStatsLoading=!1;const e=Object.keys(this.fluxHistoryStats),s=[],a=[],i=[];e.forEach((t=>{s.push([Number(t),this.fluxHistoryStats[t].cumulus]),a.push([Number(t),this.fluxHistoryStats[t].nimbus]),i.push([Number(t),this.fluxHistoryStats[t].stratus])})),this.nodeHistoryData.series=[{name:"Cumulus",data:s},{name:"Nimbus",data:a},{name:"Stratus",data:i}]}catch(t){console.log(t),this.$toast({component:y.Z,props:{title:"Unable to fetch history stats",icon:"InfoIcon",variant:"danger"}})}},async getFluxNodeCount(){try{const t=await m.Z.fluxnodeCount(),e=t.data.data,s=e["stratus-enabled"];let a=e["nimbus-enabled"],i=e["cumulus-enabled"];e["cumulus-enabled"]{"use strict";s.d(e,{Z:()=>i});const a={cumulus:"#2B61D1",nimbus:"#ff9f43",stratus:"#ea5455"},i=a},51136:(t,e,s)=>{"use strict";s.d(e,{Z:()=>i});var a=s(80914);const i={listFluxNodes(){return(0,a.Z)().get("/daemon/listzelnodes")},fluxnodeCount(){return(0,a.Z)().get("/daemon/getzelnodecount")},blockReward(){return(0,a.Z)().get("/daemon/getblocksubsidy")}}},67166:function(t,e,s){(function(e,a){t.exports=a(s(47514))})(0,(function(t){"use strict";function e(t){return e="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},e(t)}function s(t,e,s){return e in t?Object.defineProperty(t,e,{value:s,enumerable:!0,configurable:!0,writable:!0}):t[e]=s,t}t=t&&t.hasOwnProperty("default")?t["default"]:t;var a={props:{options:{type:Object},type:{type:String},series:{type:Array,required:!0,default:function(){return[]}},width:{default:"100%"},height:{default:"auto"}},data:function(){return{chart:null}},beforeMount:function(){window.ApexCharts=t},mounted:function(){this.init()},created:function(){var t=this;this.$watch("options",(function(e){!t.chart&&e?t.init():t.chart.updateOptions(t.options)})),this.$watch("series",(function(e){!t.chart&&e?t.init():t.chart.updateSeries(t.series)}));var e=["type","width","height"];e.forEach((function(e){t.$watch(e,(function(){t.refresh()}))}))},beforeDestroy:function(){this.chart&&this.destroy()},render:function(t){return t("div")},methods:{init:function(){var e=this,s={chart:{type:this.type||this.options.chart.type||"line",height:this.height,width:this.width,events:{}},series:this.series};Object.keys(this.$listeners).forEach((function(t){s.chart.events[t]=e.$listeners[t]}));var a=this.extend(this.options,s);return this.chart=new t(this.$el,a),this.chart.render()},isObject:function(t){return t&&"object"===e(t)&&!Array.isArray(t)&&null!=t},extend:function(t,e){var a=this;"function"!==typeof Object.assign&&function(){Object.assign=function(t){if(void 0===t||null===t)throw new TypeError("Cannot convert undefined or null to object");for(var e=Object(t),s=1;s{a.d(e,{Z:()=>u});var n=function(){var t=this,e=t._self._c;return e("div",{staticClass:"toastification"},[e("div",{staticClass:"d-flex align-items-start"},[e("b-avatar",{staticClass:"mr-75 flex-shrink-0",attrs:{variant:t.variant,size:"1.8rem"}},[e("feather-icon",{attrs:{icon:t.icon,size:"15"}})],1),e("div",{staticClass:"d-flex flex-grow-1"},[e("div",[t.title?e("h5",{staticClass:"mb-0 font-weight-bolder toastification-title",class:`text-${t.variant}`,domProps:{textContent:t._s(t.title)}}):t._e(),t.text?e("small",{staticClass:"d-inline-block text-body",domProps:{textContent:t._s(t.text)}}):t._e()]),e("span",{staticClass:"cursor-pointer toastification-close-icon ml-auto",on:{click:function(e){return t.$emit("close-toast")}}},[t.hideClose?t._e():e("feather-icon",{staticClass:"text-body",attrs:{icon:"XIcon"}})],1)])],1)])},r=[],s=a(47389);const l={components:{BAvatar:s.SH},props:{variant:{type:String,default:"primary"},icon:{type:String,default:null},title:{type:String,default:null},text:{type:String,default:null},hideClose:{type:Boolean,default:!1}}},o=l;var i=a(1001),d=(0,i.Z)(o,n,r,!1,null,"22d964ca",null);const u=d.exports},51748:(t,e,a)=>{a.d(e,{Z:()=>u});var n=function(){var t=this,e=t._self._c;return e("dl",{staticClass:"row",class:t.classes},[e("dt",{staticClass:"col-sm-3"},[t._v(" "+t._s(t.title)+" ")]),t.href.length>0?e("dd",{staticClass:"col-sm-9 mb-0",class:`text-${t.variant}`},[t.href.length>0?e("b-link",{attrs:{href:t.href,target:"_blank",rel:"noopener noreferrer"}},[t._v(" "+t._s(t.data.length>0?t.data:t.number!==Number.MAX_VALUE?t.number:"")+" ")]):t._e()],1):t.click?e("dd",{staticClass:"col-sm-9 mb-0",class:`text-${t.variant}`,on:{click:function(e){return t.$emit("click")}}},[e("b-link",[t._v(" "+t._s(t.data.length>0?t.data:t.number!==Number.MAX_VALUE?t.number:"")+" ")])],1):e("dd",{staticClass:"col-sm-9 mb-0",class:`text-${t.variant}`},[t._v(" "+t._s(t.data.length>0?t.data:t.number!==Number.MAX_VALUE?t.number:"")+" ")])])},r=[],s=a(67347);const l={components:{BLink:s.we},props:{title:{type:String,required:!0},classes:{type:String,required:!1,default:"mb-1"},data:{type:String,required:!1,default:""},number:{type:Number,required:!1,default:Number.MAX_VALUE},variant:{type:String,required:!1,default:"secondary"},href:{type:String,required:!1,default:""},click:{type:Boolean,required:!1,default:!1}}},o=l;var i=a(1001),d=(0,i.Z)(o,n,r,!1,null,null,null);const u=d.exports},96147:(t,e,a)=>{a.r(e),a.d(e,{default:()=>h});var n=function(){var t=this,e=t._self._c;return""!==t.callResponse.data?e("b-card",[t.callResponse.data.status?e("list-entry",{attrs:{title:"Status",data:t.callResponse.data.status}}):t._e(),t.callResponse.data.benchmarking?e("list-entry",{attrs:{title:"Benchmarking",data:t.callResponse.data.benchmarking}}):t._e(),t.callResponse.data.zelback||t.callResponse.data.flux?e("list-entry",{attrs:{title:"Flux",data:t.callResponse.data.zelback||t.callResponse.data.flux}}):t._e(),t.callResponse.data.errors?e("list-entry",{attrs:{title:"Error",data:t.callResponse.data.errors,variant:"danger"}}):t._e()],1):t._e()},r=[],s=a(86855),l=a(34547),o=a(51748),i=a(27616);const d=a(63005),u={components:{ListEntry:o.Z,BCard:s._,ToastificationContent:l.Z},data(){return{timeoptions:d,callResponse:{status:"",data:""}}},mounted(){this.daemonGetBenchStatus()},methods:{async daemonGetBenchStatus(){const t=await i.Z.getBenchStatus();"error"===t.data.status?this.$toast({component:l.Z,props:{title:t.data.data.message||t.data.data,icon:"InfoIcon",variant:"danger"}}):(this.callResponse.status=t.data.status,this.callResponse.data=JSON.parse(t.data.data),console.log(this.callResponse))}}},c=u;var m=a(1001),g=(0,m.Z)(c,n,r,!1,null,null,null);const h=g.exports},63005:(t,e,a)=>{a.r(e),a.d(e,{default:()=>s});const n={year:"numeric",month:"short",day:"numeric",hour:"2-digit",minute:"2-digit"},r={year:"numeric",month:"short",day:"numeric"},s={shortDate:n,date:r}},27616:(t,e,a)=>{a.d(e,{Z:()=>r});var n=a(80914);const r={help(){return(0,n.Z)().get("/daemon/help")},helpSpecific(t){return(0,n.Z)().get(`/daemon/help/${t}`)},getInfo(){return(0,n.Z)().get("/daemon/getinfo")},getFluxNodeStatus(){return(0,n.Z)().get("/daemon/getzelnodestatus")},getRawTransaction(t,e){return(0,n.Z)().get(`/daemon/getrawtransaction/${t}/${e}`)},listFluxNodes(){return(0,n.Z)().get("/daemon/listzelnodes")},viewDeterministicFluxNodeList(){return(0,n.Z)().get("/daemon/viewdeterministiczelnodelist")},getFluxNodeCount(){return(0,n.Z)().get("/daemon/getzelnodecount")},getStartList(){return(0,n.Z)().get("/daemon/getstartlist")},getDOSList(){return(0,n.Z)().get("/daemon/getdoslist")},fluxCurrentWinner(){return(0,n.Z)().get("/daemon/fluxcurrentwinner")},getBenchmarks(){return(0,n.Z)().get("/daemon/getbenchmarks")},getBenchStatus(){return(0,n.Z)().get("/daemon/getbenchstatus")},startBenchmark(t){return(0,n.Z)().get("/daemon/startbenchmark",{headers:{zelidauth:t}})},stopBenchmark(t){return(0,n.Z)().get("/daemon/stopbenchmark",{headers:{zelidauth:t}})},getBlockCount(){return(0,n.Z)().get("/daemon/getBlockCount")},getBlockchainInfo(){return(0,n.Z)().get("/daemon/getblockchaininfo")},getMiningInfo(){return(0,n.Z)().get("/daemon/getmininginfo")},getNetworkInfo(){return(0,n.Z)().get("/daemon/getnetworkinfo")},validateAddress(t,e){return(0,n.Z)().get(`/daemon/validateaddress/${e}`,{headers:{zelidauth:t}})},getWalletInfo(t){return(0,n.Z)().get("/daemon/getwalletinfo",{headers:{zelidauth:t}})},listFluxNodeConf(t){return(0,n.Z)().get("/daemon/listzelnodeconf",{headers:{zelidauth:t}})},start(t){return(0,n.Z)().get("/daemon/start",{headers:{zelidauth:t}})},restart(t){return(0,n.Z)().get("/daemon/restart",{headers:{zelidauth:t}})},stopDaemon(t){return(0,n.Z)().get("/daemon/stop",{headers:{zelidauth:t}})},rescanDaemon(t,e){return(0,n.Z)().get(`/daemon/rescanblockchain/${e}`,{headers:{zelidauth:t}})},getBlock(t,e){return(0,n.Z)().get(`/daemon/getblock/${t}/${e}`)},tailDaemonDebug(t){return(0,n.Z)().get("/flux/taildaemondebug",{headers:{zelidauth:t}})},justAPI(){return(0,n.Z)()},cancelToken(){return n.S}}}}]); \ No newline at end of file +"use strict";(self["webpackChunkflux"]=self["webpackChunkflux"]||[]).push([[6147],{34547:(t,e,a)=>{a.d(e,{Z:()=>u});var n=function(){var t=this,e=t._self._c;return e("div",{staticClass:"toastification"},[e("div",{staticClass:"d-flex align-items-start"},[e("b-avatar",{staticClass:"mr-75 flex-shrink-0",attrs:{variant:t.variant,size:"1.8rem"}},[e("feather-icon",{attrs:{icon:t.icon,size:"15"}})],1),e("div",{staticClass:"d-flex flex-grow-1"},[e("div",[t.title?e("h5",{staticClass:"mb-0 font-weight-bolder toastification-title",class:`text-${t.variant}`,domProps:{textContent:t._s(t.title)}}):t._e(),t.text?e("small",{staticClass:"d-inline-block text-body",domProps:{textContent:t._s(t.text)}}):t._e()]),e("span",{staticClass:"cursor-pointer toastification-close-icon ml-auto",on:{click:function(e){return t.$emit("close-toast")}}},[t.hideClose?t._e():e("feather-icon",{staticClass:"text-body",attrs:{icon:"XIcon"}})],1)])],1)])},r=[],s=a(47389);const l={components:{BAvatar:s.SH},props:{variant:{type:String,default:"primary"},icon:{type:String,default:null},title:{type:String,default:null},text:{type:String,default:null},hideClose:{type:Boolean,default:!1}}},o=l;var i=a(1001),d=(0,i.Z)(o,n,r,!1,null,"22d964ca",null);const u=d.exports},51748:(t,e,a)=>{a.d(e,{Z:()=>u});var n=function(){var t=this,e=t._self._c;return e("dl",{staticClass:"row",class:t.classes},[e("dt",{staticClass:"col-sm-3"},[t._v(" "+t._s(t.title)+" ")]),t.href.length>0?e("dd",{staticClass:"col-sm-9 mb-0",class:`text-${t.variant}`},[t.href.length>0?e("b-link",{attrs:{href:t.href,target:"_blank",rel:"noopener noreferrer"}},[t._v(" "+t._s(t.data.length>0?t.data:t.number!==Number.MAX_VALUE?t.number:"")+" ")]):t._e()],1):t.click?e("dd",{staticClass:"col-sm-9 mb-0",class:`text-${t.variant}`,on:{click:function(e){return t.$emit("click")}}},[e("b-link",[t._v(" "+t._s(t.data.length>0?t.data:t.number!==Number.MAX_VALUE?t.number:"")+" ")])],1):e("dd",{staticClass:"col-sm-9 mb-0",class:`text-${t.variant}`},[t._v(" "+t._s(t.data.length>0?t.data:t.number!==Number.MAX_VALUE?t.number:"")+" ")])])},r=[],s=a(67347);const l={components:{BLink:s.we},props:{title:{type:String,required:!0},classes:{type:String,required:!1,default:"mb-1"},data:{type:String,required:!1,default:""},number:{type:Number,required:!1,default:Number.MAX_VALUE},variant:{type:String,required:!1,default:"secondary"},href:{type:String,required:!1,default:""},click:{type:Boolean,required:!1,default:!1}}},o=l;var i=a(1001),d=(0,i.Z)(o,n,r,!1,null,null,null);const u=d.exports},96147:(t,e,a)=>{a.r(e),a.d(e,{default:()=>h});var n=function(){var t=this,e=t._self._c;return""!==t.callResponse.data?e("b-card",[t.callResponse.data.status?e("list-entry",{attrs:{title:"Status",data:t.callResponse.data.status}}):t._e(),t.callResponse.data.benchmarking?e("list-entry",{attrs:{title:"Benchmarking",data:t.callResponse.data.benchmarking}}):t._e(),t.callResponse.data.zelback||t.callResponse.data.flux?e("list-entry",{attrs:{title:"Flux",data:t.callResponse.data.zelback||t.callResponse.data.flux}}):t._e(),t.callResponse.data.errors?e("list-entry",{attrs:{title:"Error",data:t.callResponse.data.errors,variant:"danger"}}):t._e()],1):t._e()},r=[],s=a(86855),l=a(34547),o=a(51748),i=a(27616);const d=a(63005),u={components:{ListEntry:o.Z,BCard:s._,ToastificationContent:l.Z},data(){return{timeoptions:d,callResponse:{status:"",data:""}}},mounted(){this.daemonGetBenchStatus()},methods:{async daemonGetBenchStatus(){const t=await i.Z.getBenchStatus();"error"===t.data.status?this.$toast({component:l.Z,props:{title:t.data.data.message||t.data.data,icon:"InfoIcon",variant:"danger"}}):(this.callResponse.status=t.data.status,this.callResponse.data=JSON.parse(t.data.data),console.log(this.callResponse))}}},c=u;var m=a(1001),g=(0,m.Z)(c,n,r,!1,null,null,null);const h=g.exports},63005:(t,e,a)=>{a.r(e),a.d(e,{default:()=>s});const n={year:"numeric",month:"short",day:"numeric",hour:"2-digit",minute:"2-digit"},r={year:"numeric",month:"short",day:"numeric"},s={shortDate:n,date:r}},27616:(t,e,a)=>{a.d(e,{Z:()=>r});var n=a(80914);const r={help(){return(0,n.Z)().get("/daemon/help")},helpSpecific(t){return(0,n.Z)().get(`/daemon/help/${t}`)},getInfo(){return(0,n.Z)().get("/daemon/getinfo")},getFluxNodeStatus(){return(0,n.Z)().get("/daemon/getzelnodestatus")},getRawTransaction(t,e){return(0,n.Z)().get(`/daemon/getrawtransaction/${t}/${e}`)},listFluxNodes(){return(0,n.Z)().get("/daemon/listzelnodes")},viewDeterministicFluxNodeList(){return(0,n.Z)().get("/daemon/viewdeterministiczelnodelist")},getFluxNodeCount(){return(0,n.Z)().get("/daemon/getzelnodecount")},getStartList(){return(0,n.Z)().get("/daemon/getstartlist")},getDOSList(){return(0,n.Z)().get("/daemon/getdoslist")},fluxCurrentWinner(){return(0,n.Z)().get("/daemon/fluxcurrentwinner")},getBenchmarks(){return(0,n.Z)().get("/daemon/getbenchmarks")},getBenchStatus(){return(0,n.Z)().get("/daemon/getbenchstatus")},startBenchmark(t){return(0,n.Z)().get("/daemon/startbenchmark",{headers:{zelidauth:t}})},stopBenchmark(t){return(0,n.Z)().get("/daemon/stopbenchmark",{headers:{zelidauth:t}})},getBlockCount(){return(0,n.Z)().get("/daemon/getBlockCount")},getBlockchainInfo(){return(0,n.Z)().get("/daemon/getblockchaininfo")},getMiningInfo(){return(0,n.Z)().get("/daemon/getmininginfo")},getNetworkInfo(){return(0,n.Z)().get("/daemon/getnetworkinfo")},validateAddress(t,e){return(0,n.Z)().get(`/daemon/validateaddress/${e}`,{headers:{zelidauth:t}})},getWalletInfo(t){return(0,n.Z)().get("/daemon/getwalletinfo",{headers:{zelidauth:t}})},listFluxNodeConf(t){return(0,n.Z)().get("/daemon/listzelnodeconf",{headers:{zelidauth:t}})},start(t){return(0,n.Z)().get("/daemon/start",{headers:{zelidauth:t}})},restart(t){return(0,n.Z)().get("/daemon/restart",{headers:{zelidauth:t}})},stopDaemon(t){return(0,n.Z)().get("/daemon/stop",{headers:{zelidauth:t}})},rescanDaemon(t,e){return(0,n.Z)().get(`/daemon/rescanblockchain/${e}`,{headers:{zelidauth:t}})},getBlock(t,e){return(0,n.Z)().get(`/daemon/getblock/${t}/${e}`)},tailDaemonDebug(t){return(0,n.Z)().get("/flux/taildaemondebug",{headers:{zelidauth:t}})},justAPI(){return(0,n.Z)()},cancelToken(){return n.S}}}}]); \ No newline at end of file diff --git a/HomeUI/dist/js/62.js b/HomeUI/dist/js/62.js index e92535854..a8c06f90d 100644 --- a/HomeUI/dist/js/62.js +++ b/HomeUI/dist/js/62.js @@ -1 +1 @@ -"use strict";(globalThis["webpackChunkflux"]=globalThis["webpackChunkflux"]||[]).push([[62],{34547:(t,e,a)=>{a.d(e,{Z:()=>p});var s=function(){var t=this,e=t._self._c;return e("div",{staticClass:"toastification"},[e("div",{staticClass:"d-flex align-items-start"},[e("b-avatar",{staticClass:"mr-75 flex-shrink-0",attrs:{variant:t.variant,size:"1.8rem"}},[e("feather-icon",{attrs:{icon:t.icon,size:"15"}})],1),e("div",{staticClass:"d-flex flex-grow-1"},[e("div",[t.title?e("h5",{staticClass:"mb-0 font-weight-bolder toastification-title",class:`text-${t.variant}`,domProps:{textContent:t._s(t.title)}}):t._e(),t.text?e("small",{staticClass:"d-inline-block text-body",domProps:{textContent:t._s(t.text)}}):t._e()]),e("span",{staticClass:"cursor-pointer toastification-close-icon ml-auto",on:{click:function(e){return t.$emit("close-toast")}}},[t.hideClose?t._e():e("feather-icon",{staticClass:"text-body",attrs:{icon:"XIcon"}})],1)])],1)])},n=[],r=a(47389);const i={components:{BAvatar:r.SH},props:{variant:{type:String,default:"primary"},icon:{type:String,default:null},title:{type:String,default:null},text:{type:String,default:null},hideClose:{type:Boolean,default:!1}}},o=i;var l=a(1001),c=(0,l.Z)(o,s,n,!1,null,"22d964ca",null);const p=c.exports},20062:(t,e,a)=>{a.r(e),a.d(e,{default:()=>f});var s=function(){var t=this,e=t._self._c;return e("b-overlay",{attrs:{show:t.signingInProgress,variant:"transparent",blur:"5px"}},[e("b-card",[e("b-card-text",[t._v(" Please paste a valid Flux Transaction (hex) below ")]),e("b-form-input",{attrs:{placeholder:"Transaction Hex"},model:{value:t.hexFluxTransaction,callback:function(e){t.hexFluxTransaction=e},expression:"hexFluxTransaction"}}),e("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"my-1",attrs:{id:"sign-transaction",variant:"outline-primary",size:"md"}},[t._v(" Sign Transaction ")]),"success"===t.callResponse.status?e("div",{staticClass:"ml-1 mt-1"},[e("p",[t._v(" Status: "+t._s(t.callResponse.data.status)+" ")]),t.callResponse.data.tier?e("p",[t._v(" Tier: "+t._s(t.callResponse.data.tier)+" ")]):t._e(),t.callResponse.data.hex?e("p",[t._v(" Hex: "+t._s(t.callResponse.data.hex)+" ")]):t._e()]):t._e(),e("b-popover",{ref:"popover",attrs:{target:"sign-transaction",triggers:"click",show:t.popoverShow,placement:"auto",container:"my-container"},on:{"update:show":function(e){t.popoverShow=e}},scopedSlots:t._u([{key:"title",fn:function(){return[e("div",{staticClass:"d-flex justify-content-between align-items-center"},[e("span",[t._v("Are You Sure?")]),e("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"close",attrs:{variant:"transparent","aria-label":"Close"},on:{click:t.onClose}},[e("span",{staticClass:"d-inline-block text-white",attrs:{"aria-hidden":"true"}},[t._v("×")])])],1)]},proxy:!0}])},[e("div",[e("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"mr-1",attrs:{size:"sm",variant:"danger"},on:{click:t.onClose}},[t._v(" Cancel ")]),e("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],attrs:{size:"sm",variant:"primary"},on:{click:t.signFluxTransaction}},[t._v(" Sign Transaction ")])],1)]),t.callResponse.data?e("b-form-textarea",{attrs:{plaintext:"","no-resize":"",rows:"30",value:t.callResponse.data}}):t._e()],1)],1)},n=[],r=a(86855),i=a(64206),o=a(15193),l=a(53862),c=a(22183),p=a(333),u=a(66126),d=a(34547),h=a(20266),g=a(39569);const v={components:{BCard:r._,BCardText:i.j,BButton:o.T,BPopover:l.x,BFormInput:c.e,BFormTextarea:p.y,BOverlay:u.X,ToastificationContent:d.Z},directives:{Ripple:h.Z},data(){return{txid:"",popoverShow:!1,callResponse:{status:"",data:""},hexFluxTransaction:"",signingInProgress:!1}},methods:{onClose(){this.popoverShow=!1},signFluxTransaction(){if(this.popoverShow=!1,!this.hexFluxTransaction)return void this.$toast({component:d.Z,props:{title:"No Flux transaction hex provided",icon:"InfoIcon",variant:"danger"}});this.signingInProgress=!0;const t=localStorage.getItem("zelidauth");g.Z.signFluxTransaction(t,this.hexFluxTransaction).then((t=>{console.log(t),"error"===t.data.status?this.$toast({component:d.Z,props:{title:t.data.data.message||t.data.data,icon:"InfoIcon",variant:"danger"}}):(this.callResponse.status=t.data.status,this.callResponse.data=t.data.data),this.signingInProgress=!1})).catch((t=>{console.log(t),this.$toast({component:d.Z,props:{title:"Error while trying to sign Flux transaction",icon:"InfoIcon",variant:"danger"}}),this.signingInProgress=!1}))}}},m=v;var x=a(1001),b=(0,x.Z)(m,s,n,!1,null,null,null);const f=b.exports},39569:(t,e,a)=>{a.d(e,{Z:()=>n});var s=a(80914);const n={start(t){return(0,s.Z)().get("/benchmark/start",{headers:{zelidauth:t}})},restart(t){return(0,s.Z)().get("/benchmark/restart",{headers:{zelidauth:t}})},getStatus(){return(0,s.Z)().get("/benchmark/getstatus")},restartNodeBenchmarks(t){return(0,s.Z)().get("/benchmark/restartnodebenchmarks",{headers:{zelidauth:t}})},signFluxTransaction(t,e){return(0,s.Z)().get(`/benchmark/signzelnodetransaction/${e}`,{headers:{zelidauth:t}})},helpSpecific(t){return(0,s.Z)().get(`/benchmark/help/${t}`)},help(){return(0,s.Z)().get("/benchmark/help")},stop(t){return(0,s.Z)().get("/benchmark/stop",{headers:{zelidauth:t}})},getBenchmarks(){return(0,s.Z)().get("/benchmark/getbenchmarks")},getInfo(){return(0,s.Z)().get("/benchmark/getinfo")},tailBenchmarkDebug(t){return(0,s.Z)().get("/flux/tailbenchmarkdebug",{headers:{zelidauth:t}})},justAPI(){return(0,s.Z)()},cancelToken(){return s.S}}}}]); \ No newline at end of file +"use strict";(self["webpackChunkflux"]=self["webpackChunkflux"]||[]).push([[62],{34547:(t,e,a)=>{a.d(e,{Z:()=>p});var s=function(){var t=this,e=t._self._c;return e("div",{staticClass:"toastification"},[e("div",{staticClass:"d-flex align-items-start"},[e("b-avatar",{staticClass:"mr-75 flex-shrink-0",attrs:{variant:t.variant,size:"1.8rem"}},[e("feather-icon",{attrs:{icon:t.icon,size:"15"}})],1),e("div",{staticClass:"d-flex flex-grow-1"},[e("div",[t.title?e("h5",{staticClass:"mb-0 font-weight-bolder toastification-title",class:`text-${t.variant}`,domProps:{textContent:t._s(t.title)}}):t._e(),t.text?e("small",{staticClass:"d-inline-block text-body",domProps:{textContent:t._s(t.text)}}):t._e()]),e("span",{staticClass:"cursor-pointer toastification-close-icon ml-auto",on:{click:function(e){return t.$emit("close-toast")}}},[t.hideClose?t._e():e("feather-icon",{staticClass:"text-body",attrs:{icon:"XIcon"}})],1)])],1)])},n=[],r=a(47389);const i={components:{BAvatar:r.SH},props:{variant:{type:String,default:"primary"},icon:{type:String,default:null},title:{type:String,default:null},text:{type:String,default:null},hideClose:{type:Boolean,default:!1}}},o=i;var l=a(1001),c=(0,l.Z)(o,s,n,!1,null,"22d964ca",null);const p=c.exports},20062:(t,e,a)=>{a.r(e),a.d(e,{default:()=>f});var s=function(){var t=this,e=t._self._c;return e("b-overlay",{attrs:{show:t.signingInProgress,variant:"transparent",blur:"5px"}},[e("b-card",[e("b-card-text",[t._v(" Please paste a valid Flux Transaction (hex) below ")]),e("b-form-input",{attrs:{placeholder:"Transaction Hex"},model:{value:t.hexFluxTransaction,callback:function(e){t.hexFluxTransaction=e},expression:"hexFluxTransaction"}}),e("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"my-1",attrs:{id:"sign-transaction",variant:"outline-primary",size:"md"}},[t._v(" Sign Transaction ")]),"success"===t.callResponse.status?e("div",{staticClass:"ml-1 mt-1"},[e("p",[t._v(" Status: "+t._s(t.callResponse.data.status)+" ")]),t.callResponse.data.tier?e("p",[t._v(" Tier: "+t._s(t.callResponse.data.tier)+" ")]):t._e(),t.callResponse.data.hex?e("p",[t._v(" Hex: "+t._s(t.callResponse.data.hex)+" ")]):t._e()]):t._e(),e("b-popover",{ref:"popover",attrs:{target:"sign-transaction",triggers:"click",show:t.popoverShow,placement:"auto",container:"my-container"},on:{"update:show":function(e){t.popoverShow=e}},scopedSlots:t._u([{key:"title",fn:function(){return[e("div",{staticClass:"d-flex justify-content-between align-items-center"},[e("span",[t._v("Are You Sure?")]),e("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"close",attrs:{variant:"transparent","aria-label":"Close"},on:{click:t.onClose}},[e("span",{staticClass:"d-inline-block text-white",attrs:{"aria-hidden":"true"}},[t._v("×")])])],1)]},proxy:!0}])},[e("div",[e("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"mr-1",attrs:{size:"sm",variant:"danger"},on:{click:t.onClose}},[t._v(" Cancel ")]),e("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],attrs:{size:"sm",variant:"primary"},on:{click:t.signFluxTransaction}},[t._v(" Sign Transaction ")])],1)]),t.callResponse.data?e("b-form-textarea",{attrs:{plaintext:"","no-resize":"",rows:"30",value:t.callResponse.data}}):t._e()],1)],1)},n=[],r=a(86855),i=a(64206),o=a(15193),l=a(53862),c=a(22183),p=a(333),u=a(66126),d=a(34547),h=a(20266),g=a(39569);const v={components:{BCard:r._,BCardText:i.j,BButton:o.T,BPopover:l.x,BFormInput:c.e,BFormTextarea:p.y,BOverlay:u.X,ToastificationContent:d.Z},directives:{Ripple:h.Z},data(){return{txid:"",popoverShow:!1,callResponse:{status:"",data:""},hexFluxTransaction:"",signingInProgress:!1}},methods:{onClose(){this.popoverShow=!1},signFluxTransaction(){if(this.popoverShow=!1,!this.hexFluxTransaction)return void this.$toast({component:d.Z,props:{title:"No Flux transaction hex provided",icon:"InfoIcon",variant:"danger"}});this.signingInProgress=!0;const t=localStorage.getItem("zelidauth");g.Z.signFluxTransaction(t,this.hexFluxTransaction).then((t=>{console.log(t),"error"===t.data.status?this.$toast({component:d.Z,props:{title:t.data.data.message||t.data.data,icon:"InfoIcon",variant:"danger"}}):(this.callResponse.status=t.data.status,this.callResponse.data=t.data.data),this.signingInProgress=!1})).catch((t=>{console.log(t),this.$toast({component:d.Z,props:{title:"Error while trying to sign Flux transaction",icon:"InfoIcon",variant:"danger"}}),this.signingInProgress=!1}))}}},m=v;var x=a(1001),b=(0,x.Z)(m,s,n,!1,null,null,null);const f=b.exports},39569:(t,e,a)=>{a.d(e,{Z:()=>n});var s=a(80914);const n={start(t){return(0,s.Z)().get("/benchmark/start",{headers:{zelidauth:t}})},restart(t){return(0,s.Z)().get("/benchmark/restart",{headers:{zelidauth:t}})},getStatus(){return(0,s.Z)().get("/benchmark/getstatus")},restartNodeBenchmarks(t){return(0,s.Z)().get("/benchmark/restartnodebenchmarks",{headers:{zelidauth:t}})},signFluxTransaction(t,e){return(0,s.Z)().get(`/benchmark/signzelnodetransaction/${e}`,{headers:{zelidauth:t}})},helpSpecific(t){return(0,s.Z)().get(`/benchmark/help/${t}`)},help(){return(0,s.Z)().get("/benchmark/help")},stop(t){return(0,s.Z)().get("/benchmark/stop",{headers:{zelidauth:t}})},getBenchmarks(){return(0,s.Z)().get("/benchmark/getbenchmarks")},getInfo(){return(0,s.Z)().get("/benchmark/getinfo")},tailBenchmarkDebug(t){return(0,s.Z)().get("/flux/tailbenchmarkdebug",{headers:{zelidauth:t}})},justAPI(){return(0,s.Z)()},cancelToken(){return s.S}}}}]); \ No newline at end of file diff --git a/HomeUI/dist/js/6223.js b/HomeUI/dist/js/6223.js index bcad3edd8..7c500c07f 100644 --- a/HomeUI/dist/js/6223.js +++ b/HomeUI/dist/js/6223.js @@ -1 +1 @@ -"use strict";(globalThis["webpackChunkflux"]=globalThis["webpackChunkflux"]||[]).push([[6223],{34547:(e,t,a)=>{a.d(t,{Z:()=>c});var n=function(){var e=this,t=e._self._c;return t("div",{staticClass:"toastification"},[t("div",{staticClass:"d-flex align-items-start"},[t("b-avatar",{staticClass:"mr-75 flex-shrink-0",attrs:{variant:e.variant,size:"1.8rem"}},[t("feather-icon",{attrs:{icon:e.icon,size:"15"}})],1),t("div",{staticClass:"d-flex flex-grow-1"},[t("div",[e.title?t("h5",{staticClass:"mb-0 font-weight-bolder toastification-title",class:`text-${e.variant}`,domProps:{textContent:e._s(e.title)}}):e._e(),e.text?t("small",{staticClass:"d-inline-block text-body",domProps:{textContent:e._s(e.text)}}):e._e()]),t("span",{staticClass:"cursor-pointer toastification-close-icon ml-auto",on:{click:function(t){return e.$emit("close-toast")}}},[e.hideClose?e._e():t("feather-icon",{staticClass:"text-body",attrs:{icon:"XIcon"}})],1)])],1)])},r=[],o=a(47389);const i={components:{BAvatar:o.SH},props:{variant:{type:String,default:"primary"},icon:{type:String,default:null},title:{type:String,default:null},text:{type:String,default:null},hideClose:{type:Boolean,default:!1}}},s=i;var l=a(1001),d=(0,l.Z)(s,n,r,!1,null,"22d964ca",null);const c=d.exports},16223:(e,t,a)=>{a.r(t),a.d(t,{default:()=>f});var n=function(){var e=this,t=e._self._c;return t("b-card",[t("div",[t("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"ml-1",attrs:{id:"reindex-daemon",variant:"outline-primary",size:"md"}},[e._v(" Reindex Daemon ")]),t("b-popover",{ref:"popover",attrs:{target:"reindex-daemon",triggers:"click",show:e.popoverShow,placement:"auto",container:"my-container"},on:{"update:show":function(t){e.popoverShow=t}},scopedSlots:e._u([{key:"title",fn:function(){return[t("div",{staticClass:"d-flex justify-content-between align-items-center"},[t("span",[e._v("Are You Sure?")]),t("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"close",attrs:{variant:"transparent","aria-label":"Close"},on:{click:e.onClose}},[t("span",{staticClass:"d-inline-block text-white",attrs:{"aria-hidden":"true"}},[e._v("×")])])],1)]},proxy:!0}])},[t("div",[t("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"mr-1",attrs:{size:"sm",variant:"danger"},on:{click:e.onClose}},[e._v(" Cancel ")]),t("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],attrs:{size:"sm",variant:"primary"},on:{click:e.onOk}},[e._v(" Reindex Blockchain ")])],1)]),t("b-modal",{attrs:{id:"modal-center",centered:"",title:"Blockchain Reindexing","ok-only":"","ok-title":"OK"},model:{value:e.modalShow,callback:function(t){e.modalShow=t},expression:"modalShow"}},[t("b-card-text",[e._v(" The daemon will now start reindexing the blockchain. This will take several hours. ")])],1)],1)])},r=[],o=a(86855),i=a(15193),s=a(53862),l=a(31220),d=a(64206),c=a(34547),u=a(20266),m=a(27616);const g={components:{BCard:o._,BButton:i.T,BPopover:s.x,BModal:l.N,BCardText:d.j,ToastificationContent:c.Z},directives:{Ripple:u.Z},data(){return{popoverShow:!1,modalShow:!1}},methods:{onClose(){this.popoverShow=!1},onOk(){this.popoverShow=!1,this.modalShow=!0;const e=localStorage.getItem("zelidauth");m.Z.reindexDaemon(e).then((e=>{this.$toast({component:c.Z,props:{title:e.data.data.message||e.data.data,icon:"InfoIcon",variant:"success"}})})).catch((()=>{this.$toast({component:c.Z,props:{title:"Error while trying to reindex Daemon",icon:"InfoIcon",variant:"danger"}})}))}}},p=g;var h=a(1001),v=(0,h.Z)(p,n,r,!1,null,null,null);const f=v.exports},27616:(e,t,a)=>{a.d(t,{Z:()=>r});var n=a(80914);const r={help(){return(0,n.Z)().get("/daemon/help")},helpSpecific(e){return(0,n.Z)().get(`/daemon/help/${e}`)},getInfo(){return(0,n.Z)().get("/daemon/getinfo")},getFluxNodeStatus(){return(0,n.Z)().get("/daemon/getzelnodestatus")},getRawTransaction(e,t){return(0,n.Z)().get(`/daemon/getrawtransaction/${e}/${t}`)},listFluxNodes(){return(0,n.Z)().get("/daemon/listzelnodes")},viewDeterministicFluxNodeList(){return(0,n.Z)().get("/daemon/viewdeterministiczelnodelist")},getFluxNodeCount(){return(0,n.Z)().get("/daemon/getzelnodecount")},getStartList(){return(0,n.Z)().get("/daemon/getstartlist")},getDOSList(){return(0,n.Z)().get("/daemon/getdoslist")},fluxCurrentWinner(){return(0,n.Z)().get("/daemon/fluxcurrentwinner")},getBenchmarks(){return(0,n.Z)().get("/daemon/getbenchmarks")},getBenchStatus(){return(0,n.Z)().get("/daemon/getbenchstatus")},startBenchmark(e){return(0,n.Z)().get("/daemon/startbenchmark",{headers:{zelidauth:e}})},stopBenchmark(e){return(0,n.Z)().get("/daemon/stopbenchmark",{headers:{zelidauth:e}})},getBlockCount(){return(0,n.Z)().get("/daemon/getBlockCount")},getBlockchainInfo(){return(0,n.Z)().get("/daemon/getblockchaininfo")},getMiningInfo(){return(0,n.Z)().get("/daemon/getmininginfo")},getNetworkInfo(){return(0,n.Z)().get("/daemon/getnetworkinfo")},validateAddress(e,t){return(0,n.Z)().get(`/daemon/validateaddress/${t}`,{headers:{zelidauth:e}})},getWalletInfo(e){return(0,n.Z)().get("/daemon/getwalletinfo",{headers:{zelidauth:e}})},listFluxNodeConf(e){return(0,n.Z)().get("/daemon/listzelnodeconf",{headers:{zelidauth:e}})},start(e){return(0,n.Z)().get("/daemon/start",{headers:{zelidauth:e}})},restart(e){return(0,n.Z)().get("/daemon/restart",{headers:{zelidauth:e}})},stopDaemon(e){return(0,n.Z)().get("/daemon/stop",{headers:{zelidauth:e}})},rescanDaemon(e,t){return(0,n.Z)().get(`/daemon/rescanblockchain/${t}`,{headers:{zelidauth:e}})},getBlock(e,t){return(0,n.Z)().get(`/daemon/getblock/${e}/${t}`)},tailDaemonDebug(e){return(0,n.Z)().get("/flux/taildaemondebug",{headers:{zelidauth:e}})},justAPI(){return(0,n.Z)()},cancelToken(){return n.S}}}}]); \ No newline at end of file +"use strict";(self["webpackChunkflux"]=self["webpackChunkflux"]||[]).push([[6223],{34547:(e,t,a)=>{a.d(t,{Z:()=>c});var n=function(){var e=this,t=e._self._c;return t("div",{staticClass:"toastification"},[t("div",{staticClass:"d-flex align-items-start"},[t("b-avatar",{staticClass:"mr-75 flex-shrink-0",attrs:{variant:e.variant,size:"1.8rem"}},[t("feather-icon",{attrs:{icon:e.icon,size:"15"}})],1),t("div",{staticClass:"d-flex flex-grow-1"},[t("div",[e.title?t("h5",{staticClass:"mb-0 font-weight-bolder toastification-title",class:`text-${e.variant}`,domProps:{textContent:e._s(e.title)}}):e._e(),e.text?t("small",{staticClass:"d-inline-block text-body",domProps:{textContent:e._s(e.text)}}):e._e()]),t("span",{staticClass:"cursor-pointer toastification-close-icon ml-auto",on:{click:function(t){return e.$emit("close-toast")}}},[e.hideClose?e._e():t("feather-icon",{staticClass:"text-body",attrs:{icon:"XIcon"}})],1)])],1)])},r=[],o=a(47389);const i={components:{BAvatar:o.SH},props:{variant:{type:String,default:"primary"},icon:{type:String,default:null},title:{type:String,default:null},text:{type:String,default:null},hideClose:{type:Boolean,default:!1}}},s=i;var l=a(1001),d=(0,l.Z)(s,n,r,!1,null,"22d964ca",null);const c=d.exports},16223:(e,t,a)=>{a.r(t),a.d(t,{default:()=>f});var n=function(){var e=this,t=e._self._c;return t("b-card",[t("div",[t("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"ml-1",attrs:{id:"reindex-daemon",variant:"outline-primary",size:"md"}},[e._v(" Reindex Daemon ")]),t("b-popover",{ref:"popover",attrs:{target:"reindex-daemon",triggers:"click",show:e.popoverShow,placement:"auto",container:"my-container"},on:{"update:show":function(t){e.popoverShow=t}},scopedSlots:e._u([{key:"title",fn:function(){return[t("div",{staticClass:"d-flex justify-content-between align-items-center"},[t("span",[e._v("Are You Sure?")]),t("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"close",attrs:{variant:"transparent","aria-label":"Close"},on:{click:e.onClose}},[t("span",{staticClass:"d-inline-block text-white",attrs:{"aria-hidden":"true"}},[e._v("×")])])],1)]},proxy:!0}])},[t("div",[t("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"mr-1",attrs:{size:"sm",variant:"danger"},on:{click:e.onClose}},[e._v(" Cancel ")]),t("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],attrs:{size:"sm",variant:"primary"},on:{click:e.onOk}},[e._v(" Reindex Blockchain ")])],1)]),t("b-modal",{attrs:{id:"modal-center",centered:"",title:"Blockchain Reindexing","ok-only":"","ok-title":"OK"},model:{value:e.modalShow,callback:function(t){e.modalShow=t},expression:"modalShow"}},[t("b-card-text",[e._v(" The daemon will now start reindexing the blockchain. This will take several hours. ")])],1)],1)])},r=[],o=a(86855),i=a(15193),s=a(53862),l=a(31220),d=a(64206),c=a(34547),u=a(20266),m=a(27616);const g={components:{BCard:o._,BButton:i.T,BPopover:s.x,BModal:l.N,BCardText:d.j,ToastificationContent:c.Z},directives:{Ripple:u.Z},data(){return{popoverShow:!1,modalShow:!1}},methods:{onClose(){this.popoverShow=!1},onOk(){this.popoverShow=!1,this.modalShow=!0;const e=localStorage.getItem("zelidauth");m.Z.reindexDaemon(e).then((e=>{this.$toast({component:c.Z,props:{title:e.data.data.message||e.data.data,icon:"InfoIcon",variant:"success"}})})).catch((()=>{this.$toast({component:c.Z,props:{title:"Error while trying to reindex Daemon",icon:"InfoIcon",variant:"danger"}})}))}}},p=g;var h=a(1001),v=(0,h.Z)(p,n,r,!1,null,null,null);const f=v.exports},27616:(e,t,a)=>{a.d(t,{Z:()=>r});var n=a(80914);const r={help(){return(0,n.Z)().get("/daemon/help")},helpSpecific(e){return(0,n.Z)().get(`/daemon/help/${e}`)},getInfo(){return(0,n.Z)().get("/daemon/getinfo")},getFluxNodeStatus(){return(0,n.Z)().get("/daemon/getzelnodestatus")},getRawTransaction(e,t){return(0,n.Z)().get(`/daemon/getrawtransaction/${e}/${t}`)},listFluxNodes(){return(0,n.Z)().get("/daemon/listzelnodes")},viewDeterministicFluxNodeList(){return(0,n.Z)().get("/daemon/viewdeterministiczelnodelist")},getFluxNodeCount(){return(0,n.Z)().get("/daemon/getzelnodecount")},getStartList(){return(0,n.Z)().get("/daemon/getstartlist")},getDOSList(){return(0,n.Z)().get("/daemon/getdoslist")},fluxCurrentWinner(){return(0,n.Z)().get("/daemon/fluxcurrentwinner")},getBenchmarks(){return(0,n.Z)().get("/daemon/getbenchmarks")},getBenchStatus(){return(0,n.Z)().get("/daemon/getbenchstatus")},startBenchmark(e){return(0,n.Z)().get("/daemon/startbenchmark",{headers:{zelidauth:e}})},stopBenchmark(e){return(0,n.Z)().get("/daemon/stopbenchmark",{headers:{zelidauth:e}})},getBlockCount(){return(0,n.Z)().get("/daemon/getBlockCount")},getBlockchainInfo(){return(0,n.Z)().get("/daemon/getblockchaininfo")},getMiningInfo(){return(0,n.Z)().get("/daemon/getmininginfo")},getNetworkInfo(){return(0,n.Z)().get("/daemon/getnetworkinfo")},validateAddress(e,t){return(0,n.Z)().get(`/daemon/validateaddress/${t}`,{headers:{zelidauth:e}})},getWalletInfo(e){return(0,n.Z)().get("/daemon/getwalletinfo",{headers:{zelidauth:e}})},listFluxNodeConf(e){return(0,n.Z)().get("/daemon/listzelnodeconf",{headers:{zelidauth:e}})},start(e){return(0,n.Z)().get("/daemon/start",{headers:{zelidauth:e}})},restart(e){return(0,n.Z)().get("/daemon/restart",{headers:{zelidauth:e}})},stopDaemon(e){return(0,n.Z)().get("/daemon/stop",{headers:{zelidauth:e}})},rescanDaemon(e,t){return(0,n.Z)().get(`/daemon/rescanblockchain/${t}`,{headers:{zelidauth:e}})},getBlock(e,t){return(0,n.Z)().get(`/daemon/getblock/${e}/${t}`)},tailDaemonDebug(e){return(0,n.Z)().get("/flux/taildaemondebug",{headers:{zelidauth:e}})},justAPI(){return(0,n.Z)()},cancelToken(){return n.S}}}}]); \ No newline at end of file diff --git a/HomeUI/dist/js/6262.js b/HomeUI/dist/js/6262.js index 99c727d08..6079626dc 100644 --- a/HomeUI/dist/js/6262.js +++ b/HomeUI/dist/js/6262.js @@ -1 +1 @@ -"use strict";(globalThis["webpackChunkflux"]=globalThis["webpackChunkflux"]||[]).push([[6262],{34547:(t,e,a)=>{a.d(e,{Z:()=>d});var r=function(){var t=this,e=t._self._c;return e("div",{staticClass:"toastification"},[e("div",{staticClass:"d-flex align-items-start"},[e("b-avatar",{staticClass:"mr-75 flex-shrink-0",attrs:{variant:t.variant,size:"1.8rem"}},[e("feather-icon",{attrs:{icon:t.icon,size:"15"}})],1),e("div",{staticClass:"d-flex flex-grow-1"},[e("div",[t.title?e("h5",{staticClass:"mb-0 font-weight-bolder toastification-title",class:`text-${t.variant}`,domProps:{textContent:t._s(t.title)}}):t._e(),t.text?e("small",{staticClass:"d-inline-block text-body",domProps:{textContent:t._s(t.text)}}):t._e()]),e("span",{staticClass:"cursor-pointer toastification-close-icon ml-auto",on:{click:function(e){return t.$emit("close-toast")}}},[t.hideClose?t._e():e("feather-icon",{staticClass:"text-body",attrs:{icon:"XIcon"}})],1)])],1)])},n=[],s=a(47389);const i={components:{BAvatar:s.SH},props:{variant:{type:String,default:"primary"},icon:{type:String,default:null},title:{type:String,default:null},text:{type:String,default:null},hideClose:{type:Boolean,default:!1}}},o=i;var l=a(1001),c=(0,l.Z)(o,r,n,!1,null,"22d964ca",null);const d=c.exports},16262:(t,e,a)=>{a.r(e),a.d(e,{default:()=>f});var r=function(){var t=this,e=t._self._c;return""!==t.getInfoResponse.data?e("b-card",{attrs:{title:"Get Info"}},[e("list-entry",{attrs:{title:"Benchmark Version",data:t.getInfoResponse.data.version}}),e("list-entry",{attrs:{title:"RPC Port",number:t.getInfoResponse.data.rpcport}}),t.getInfoResponse.data.errors?e("list-entry",{attrs:{title:"Error",data:t.getInfoResponse.data.errors,variant:"danger"}}):t._e()],1):t._e()},n=[],s=a(86855),i=a(34547),o=a(51748),l=a(39569);const c=a(63005),d={components:{ListEntry:o.Z,BCard:s._,ToastificationContent:i.Z},data(){return{timeoptions:c,getInfoResponse:{status:"",data:""}}},mounted(){this.benchmarkGetInfo()},methods:{async benchmarkGetInfo(){const t=await l.Z.getInfo();"error"===t.data.status?this.$toast({component:i.Z,props:{title:t.data.data.message||t.data.data,icon:"InfoIcon",variant:"danger"}}):(this.getInfoResponse.status=t.data.status,this.getInfoResponse.data=t.data.data)}}},u=d;var h=a(1001),m=(0,h.Z)(u,r,n,!1,null,null,null);const f=m.exports},51748:(t,e,a)=>{a.d(e,{Z:()=>d});var r=function(){var t=this,e=t._self._c;return e("dl",{staticClass:"row",class:t.classes},[e("dt",{staticClass:"col-sm-3"},[t._v(" "+t._s(t.title)+" ")]),t.href.length>0?e("dd",{staticClass:"col-sm-9 mb-0",class:`text-${t.variant}`},[t.href.length>0?e("b-link",{attrs:{href:t.href,target:"_blank",rel:"noopener noreferrer"}},[t._v(" "+t._s(t.data.length>0?t.data:t.number!==Number.MAX_VALUE?t.number:"")+" ")]):t._e()],1):t.click?e("dd",{staticClass:"col-sm-9 mb-0",class:`text-${t.variant}`,on:{click:function(e){return t.$emit("click")}}},[e("b-link",[t._v(" "+t._s(t.data.length>0?t.data:t.number!==Number.MAX_VALUE?t.number:"")+" ")])],1):e("dd",{staticClass:"col-sm-9 mb-0",class:`text-${t.variant}`},[t._v(" "+t._s(t.data.length>0?t.data:t.number!==Number.MAX_VALUE?t.number:"")+" ")])])},n=[],s=a(67347);const i={components:{BLink:s.we},props:{title:{type:String,required:!0},classes:{type:String,required:!1,default:"mb-1"},data:{type:String,required:!1,default:""},number:{type:Number,required:!1,default:Number.MAX_VALUE},variant:{type:String,required:!1,default:"secondary"},href:{type:String,required:!1,default:""},click:{type:Boolean,required:!1,default:!1}}},o=i;var l=a(1001),c=(0,l.Z)(o,r,n,!1,null,null,null);const d=c.exports},63005:(t,e,a)=>{a.r(e),a.d(e,{default:()=>s});const r={year:"numeric",month:"short",day:"numeric",hour:"2-digit",minute:"2-digit"},n={year:"numeric",month:"short",day:"numeric"},s={shortDate:r,date:n}},39569:(t,e,a)=>{a.d(e,{Z:()=>n});var r=a(80914);const n={start(t){return(0,r.Z)().get("/benchmark/start",{headers:{zelidauth:t}})},restart(t){return(0,r.Z)().get("/benchmark/restart",{headers:{zelidauth:t}})},getStatus(){return(0,r.Z)().get("/benchmark/getstatus")},restartNodeBenchmarks(t){return(0,r.Z)().get("/benchmark/restartnodebenchmarks",{headers:{zelidauth:t}})},signFluxTransaction(t,e){return(0,r.Z)().get(`/benchmark/signzelnodetransaction/${e}`,{headers:{zelidauth:t}})},helpSpecific(t){return(0,r.Z)().get(`/benchmark/help/${t}`)},help(){return(0,r.Z)().get("/benchmark/help")},stop(t){return(0,r.Z)().get("/benchmark/stop",{headers:{zelidauth:t}})},getBenchmarks(){return(0,r.Z)().get("/benchmark/getbenchmarks")},getInfo(){return(0,r.Z)().get("/benchmark/getinfo")},tailBenchmarkDebug(t){return(0,r.Z)().get("/flux/tailbenchmarkdebug",{headers:{zelidauth:t}})},justAPI(){return(0,r.Z)()},cancelToken(){return r.S}}}}]); \ No newline at end of file +"use strict";(self["webpackChunkflux"]=self["webpackChunkflux"]||[]).push([[6262],{34547:(t,e,a)=>{a.d(e,{Z:()=>d});var r=function(){var t=this,e=t._self._c;return e("div",{staticClass:"toastification"},[e("div",{staticClass:"d-flex align-items-start"},[e("b-avatar",{staticClass:"mr-75 flex-shrink-0",attrs:{variant:t.variant,size:"1.8rem"}},[e("feather-icon",{attrs:{icon:t.icon,size:"15"}})],1),e("div",{staticClass:"d-flex flex-grow-1"},[e("div",[t.title?e("h5",{staticClass:"mb-0 font-weight-bolder toastification-title",class:`text-${t.variant}`,domProps:{textContent:t._s(t.title)}}):t._e(),t.text?e("small",{staticClass:"d-inline-block text-body",domProps:{textContent:t._s(t.text)}}):t._e()]),e("span",{staticClass:"cursor-pointer toastification-close-icon ml-auto",on:{click:function(e){return t.$emit("close-toast")}}},[t.hideClose?t._e():e("feather-icon",{staticClass:"text-body",attrs:{icon:"XIcon"}})],1)])],1)])},n=[],s=a(47389);const i={components:{BAvatar:s.SH},props:{variant:{type:String,default:"primary"},icon:{type:String,default:null},title:{type:String,default:null},text:{type:String,default:null},hideClose:{type:Boolean,default:!1}}},o=i;var l=a(1001),c=(0,l.Z)(o,r,n,!1,null,"22d964ca",null);const d=c.exports},16262:(t,e,a)=>{a.r(e),a.d(e,{default:()=>f});var r=function(){var t=this,e=t._self._c;return""!==t.getInfoResponse.data?e("b-card",{attrs:{title:"Get Info"}},[e("list-entry",{attrs:{title:"Benchmark Version",data:t.getInfoResponse.data.version}}),e("list-entry",{attrs:{title:"RPC Port",number:t.getInfoResponse.data.rpcport}}),t.getInfoResponse.data.errors?e("list-entry",{attrs:{title:"Error",data:t.getInfoResponse.data.errors,variant:"danger"}}):t._e()],1):t._e()},n=[],s=a(86855),i=a(34547),o=a(51748),l=a(39569);const c=a(63005),d={components:{ListEntry:o.Z,BCard:s._,ToastificationContent:i.Z},data(){return{timeoptions:c,getInfoResponse:{status:"",data:""}}},mounted(){this.benchmarkGetInfo()},methods:{async benchmarkGetInfo(){const t=await l.Z.getInfo();"error"===t.data.status?this.$toast({component:i.Z,props:{title:t.data.data.message||t.data.data,icon:"InfoIcon",variant:"danger"}}):(this.getInfoResponse.status=t.data.status,this.getInfoResponse.data=t.data.data)}}},u=d;var h=a(1001),m=(0,h.Z)(u,r,n,!1,null,null,null);const f=m.exports},51748:(t,e,a)=>{a.d(e,{Z:()=>d});var r=function(){var t=this,e=t._self._c;return e("dl",{staticClass:"row",class:t.classes},[e("dt",{staticClass:"col-sm-3"},[t._v(" "+t._s(t.title)+" ")]),t.href.length>0?e("dd",{staticClass:"col-sm-9 mb-0",class:`text-${t.variant}`},[t.href.length>0?e("b-link",{attrs:{href:t.href,target:"_blank",rel:"noopener noreferrer"}},[t._v(" "+t._s(t.data.length>0?t.data:t.number!==Number.MAX_VALUE?t.number:"")+" ")]):t._e()],1):t.click?e("dd",{staticClass:"col-sm-9 mb-0",class:`text-${t.variant}`,on:{click:function(e){return t.$emit("click")}}},[e("b-link",[t._v(" "+t._s(t.data.length>0?t.data:t.number!==Number.MAX_VALUE?t.number:"")+" ")])],1):e("dd",{staticClass:"col-sm-9 mb-0",class:`text-${t.variant}`},[t._v(" "+t._s(t.data.length>0?t.data:t.number!==Number.MAX_VALUE?t.number:"")+" ")])])},n=[],s=a(67347);const i={components:{BLink:s.we},props:{title:{type:String,required:!0},classes:{type:String,required:!1,default:"mb-1"},data:{type:String,required:!1,default:""},number:{type:Number,required:!1,default:Number.MAX_VALUE},variant:{type:String,required:!1,default:"secondary"},href:{type:String,required:!1,default:""},click:{type:Boolean,required:!1,default:!1}}},o=i;var l=a(1001),c=(0,l.Z)(o,r,n,!1,null,null,null);const d=c.exports},63005:(t,e,a)=>{a.r(e),a.d(e,{default:()=>s});const r={year:"numeric",month:"short",day:"numeric",hour:"2-digit",minute:"2-digit"},n={year:"numeric",month:"short",day:"numeric"},s={shortDate:r,date:n}},39569:(t,e,a)=>{a.d(e,{Z:()=>n});var r=a(80914);const n={start(t){return(0,r.Z)().get("/benchmark/start",{headers:{zelidauth:t}})},restart(t){return(0,r.Z)().get("/benchmark/restart",{headers:{zelidauth:t}})},getStatus(){return(0,r.Z)().get("/benchmark/getstatus")},restartNodeBenchmarks(t){return(0,r.Z)().get("/benchmark/restartnodebenchmarks",{headers:{zelidauth:t}})},signFluxTransaction(t,e){return(0,r.Z)().get(`/benchmark/signzelnodetransaction/${e}`,{headers:{zelidauth:t}})},helpSpecific(t){return(0,r.Z)().get(`/benchmark/help/${t}`)},help(){return(0,r.Z)().get("/benchmark/help")},stop(t){return(0,r.Z)().get("/benchmark/stop",{headers:{zelidauth:t}})},getBenchmarks(){return(0,r.Z)().get("/benchmark/getbenchmarks")},getInfo(){return(0,r.Z)().get("/benchmark/getinfo")},tailBenchmarkDebug(t){return(0,r.Z)().get("/flux/tailbenchmarkdebug",{headers:{zelidauth:t}})},justAPI(){return(0,r.Z)()},cancelToken(){return r.S}}}}]); \ No newline at end of file diff --git a/HomeUI/dist/js/6301.js b/HomeUI/dist/js/6301.js deleted file mode 100644 index 048e01d58..000000000 --- a/HomeUI/dist/js/6301.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(globalThis["webpackChunkflux"]=globalThis["webpackChunkflux"]||[]).push([[6301],{10509:(t,r,e)=>{var n=e(69985),o=e(23691),i=TypeError;t.exports=function(t){if(n(t))return t;throw new i(o(t)+" is not a function")}},85027:(t,r,e)=>{var n=e(48999),o=String,i=TypeError;t.exports=function(t){if(n(t))return t;throw new i(o(t)+" is not an object")}},6648:(t,r,e)=>{var n=e(68844),o=n({}.toString),i=n("".slice);t.exports=function(t){return i(o(t),8,-1)}},75773:(t,r,e)=>{var n=e(67697),o=e(72560),i=e(75684);t.exports=n?function(t,r,e){return o.f(t,r,i(1,e))}:function(t,r,e){return t[r]=e,t}},75684:t=>{t.exports=function(t,r){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:r}}},11880:(t,r,e)=>{var n=e(69985),o=e(72560),i=e(98702),u=e(95014);t.exports=function(t,r,e,a){a||(a={});var c=a.enumerable,s=void 0!==a.name?a.name:r;if(n(e)&&i(e,s,a),a.global)c?t[r]=e:u(r,e);else{try{a.unsafe?t[r]&&(c=!0):delete t[r]}catch(p){}c?t[r]=e:o.f(t,r,{value:e,enumerable:!1,configurable:!a.nonConfigurable,writable:!a.nonWritable})}return t}},95014:(t,r,e)=>{var n=e(19037),o=Object.defineProperty;t.exports=function(t,r){try{o(n,t,{value:r,configurable:!0,writable:!0})}catch(e){n[t]=r}return r}},67697:(t,r,e)=>{var n=e(3689);t.exports=!n((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}))},36420:(t,r,e)=>{var n=e(19037),o=e(48999),i=n.document,u=o(i)&&o(i.createElement);t.exports=function(t){return u?i.createElement(t):{}}},30071:t=>{t.exports="undefined"!=typeof navigator&&String(navigator.userAgent)||""},3615:(t,r,e)=>{var n,o,i=e(19037),u=e(30071),a=i.process,c=i.Deno,s=a&&a.versions||c&&c.version,p=s&&s.v8;p&&(n=p.split("."),o=n[0]>0&&n[0]<4?1:+(n[0]+n[1])),!o&&u&&(n=u.match(/Edge\/(\d+)/),(!n||n[1]>=74)&&(n=u.match(/Chrome\/(\d+)/),n&&(o=+n[1]))),t.exports=o},3689:t=>{t.exports=function(t){try{return!!t()}catch(r){return!0}}},97215:(t,r,e)=>{var n=e(3689);t.exports=!n((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")}))},22615:(t,r,e)=>{var n=e(97215),o=Function.prototype.call;t.exports=n?o.bind(o):function(){return o.apply(o,arguments)}},41236:(t,r,e)=>{var n=e(67697),o=e(36812),i=Function.prototype,u=n&&Object.getOwnPropertyDescriptor,a=o(i,"name"),c=a&&"something"===function(){}.name,s=a&&(!n||n&&u(i,"name").configurable);t.exports={EXISTS:a,PROPER:c,CONFIGURABLE:s}},68844:(t,r,e)=>{var n=e(97215),o=Function.prototype,i=o.call,u=n&&o.bind.bind(i,i);t.exports=n?u:function(t){return function(){return i.apply(t,arguments)}}},76058:(t,r,e)=>{var n=e(19037),o=e(69985),i=function(t){return o(t)?t:void 0};t.exports=function(t,r){return arguments.length<2?i(n[t]):n[t]&&n[t][r]}},54849:(t,r,e)=>{var n=e(10509),o=e(981);t.exports=function(t,r){var e=t[r];return o(e)?void 0:n(e)}},19037:function(t,r,e){var n=function(t){return t&&t.Math===Math&&t};t.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof e.g&&e.g)||n("object"==typeof this&&this)||function(){return this}()||Function("return this")()},36812:(t,r,e)=>{var n=e(68844),o=e(90690),i=n({}.hasOwnProperty);t.exports=Object.hasOwn||function(t,r){return i(o(t),r)}},57248:t=>{t.exports={}},68506:(t,r,e)=>{var n=e(67697),o=e(3689),i=e(36420);t.exports=!n&&!o((function(){return 7!==Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},6738:(t,r,e)=>{var n=e(68844),o=e(69985),i=e(84091),u=n(Function.toString);o(i.inspectSource)||(i.inspectSource=function(t){return u(t)}),t.exports=i.inspectSource},618:(t,r,e)=>{var n,o,i,u=e(59834),a=e(19037),c=e(48999),s=e(75773),p=e(36812),f=e(84091),l=e(2713),v=e(57248),b="Object already initialized",y=a.TypeError,g=a.WeakMap,h=function(t){return i(t)?o(t):n(t,{})},m=function(t){return function(r){var e;if(!c(r)||(e=o(r)).type!==t)throw new y("Incompatible receiver, "+t+" required");return e}};if(u||f.state){var x=f.state||(f.state=new g);x.get=x.get,x.has=x.has,x.set=x.set,n=function(t,r){if(x.has(t))throw new y(b);return r.facade=t,x.set(t,r),r},o=function(t){return x.get(t)||{}},i=function(t){return x.has(t)}}else{var d=l("state");v[d]=!0,n=function(t,r){if(p(t,d))throw new y(b);return r.facade=t,s(t,d,r),r},o=function(t){return p(t,d)?t[d]:{}},i=function(t){return p(t,d)}}t.exports={set:n,get:o,has:i,enforce:h,getterFor:m}},69985:t=>{var r="object"==typeof document&&document.all;t.exports="undefined"==typeof r&&void 0!==r?function(t){return"function"==typeof t||t===r}:function(t){return"function"==typeof t}},981:t=>{t.exports=function(t){return null===t||void 0===t}},48999:(t,r,e)=>{var n=e(69985);t.exports=function(t){return"object"==typeof t?null!==t:n(t)}},53931:t=>{t.exports=!1},30734:(t,r,e)=>{var n=e(76058),o=e(69985),i=e(23622),u=e(39525),a=Object;t.exports=u?function(t){return"symbol"==typeof t}:function(t){var r=n("Symbol");return o(r)&&i(r.prototype,a(t))}},98702:(t,r,e)=>{var n=e(68844),o=e(3689),i=e(69985),u=e(36812),a=e(67697),c=e(41236).CONFIGURABLE,s=e(6738),p=e(618),f=p.enforce,l=p.get,v=String,b=Object.defineProperty,y=n("".slice),g=n("".replace),h=n([].join),m=a&&!o((function(){return 8!==b((function(){}),"length",{value:8}).length})),x=String(String).split("String"),d=t.exports=function(t,r,e){"Symbol("===y(v(r),0,7)&&(r="["+g(v(r),/^Symbol\(([^)]*)\)/,"$1")+"]"),e&&e.getter&&(r="get "+r),e&&e.setter&&(r="set "+r),(!u(t,"name")||c&&t.name!==r)&&(a?b(t,"name",{value:r,configurable:!0}):t.name=r),m&&e&&u(e,"arity")&&t.length!==e.arity&&b(t,"length",{value:e.arity});try{e&&u(e,"constructor")&&e.constructor?a&&b(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(o){}var n=f(t);return u(n,"source")||(n.source=h(x,"string"==typeof r?r:"")),t};Function.prototype.toString=d((function(){return i(this)&&l(this).source||s(this)}),"toString")},72560:(t,r,e)=>{var n=e(67697),o=e(68506),i=e(15648),u=e(85027),a=e(18360),c=TypeError,s=Object.defineProperty,p=Object.getOwnPropertyDescriptor,f="enumerable",l="configurable",v="writable";r.f=n?i?function(t,r,e){if(u(t),r=a(r),u(e),"function"===typeof t&&"prototype"===r&&"value"in e&&v in e&&!e[v]){var n=p(t,r);n&&n[v]&&(t[r]=e.value,e={configurable:l in e?e[l]:n[l],enumerable:f in e?e[f]:n[f],writable:!1})}return s(t,r,e)}:s:function(t,r,e){if(u(t),r=a(r),u(e),o)try{return s(t,r,e)}catch(n){}if("get"in e||"set"in e)throw new c("Accessors not supported");return"value"in e&&(t[r]=e.value),t}},23622:(t,r,e)=>{var n=e(68844);t.exports=n({}.isPrototypeOf)},35899:(t,r,e)=>{var n=e(22615),o=e(69985),i=e(48999),u=TypeError;t.exports=function(t,r){var e,a;if("string"===r&&o(e=t.toString)&&!i(a=n(e,t)))return a;if(o(e=t.valueOf)&&!i(a=n(e,t)))return a;if("string"!==r&&o(e=t.toString)&&!i(a=n(e,t)))return a;throw new u("Can't convert object to primitive value")}},74684:(t,r,e)=>{var n=e(981),o=TypeError;t.exports=function(t){if(n(t))throw new o("Can't call method on "+t);return t}},2713:(t,r,e)=>{var n=e(83430),o=e(14630),i=n("keys");t.exports=function(t){return i[t]||(i[t]=o(t))}},84091:(t,r,e)=>{var n=e(19037),o=e(95014),i="__core-js_shared__",u=n[i]||o(i,{});t.exports=u},83430:(t,r,e)=>{var n=e(53931),o=e(84091);(t.exports=function(t,r){return o[t]||(o[t]=void 0!==r?r:{})})("versions",[]).push({version:"3.35.0",mode:n?"pure":"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.35.0/LICENSE",source:"https://github.com/zloirock/core-js"})},50146:(t,r,e)=>{var n=e(3615),o=e(3689),i=e(19037),u=i.String;t.exports=!!Object.getOwnPropertySymbols&&!o((function(){var t=Symbol("symbol detection");return!u(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&n&&n<41}))},90690:(t,r,e)=>{var n=e(74684),o=Object;t.exports=function(t){return o(n(t))}},88732:(t,r,e)=>{var n=e(22615),o=e(48999),i=e(30734),u=e(54849),a=e(35899),c=e(44201),s=TypeError,p=c("toPrimitive");t.exports=function(t,r){if(!o(t)||i(t))return t;var e,c=u(t,p);if(c){if(void 0===r&&(r="default"),e=n(c,t,r),!o(e)||i(e))return e;throw new s("Can't convert object to primitive value")}return void 0===r&&(r="number"),a(t,r)}},18360:(t,r,e)=>{var n=e(88732),o=e(30734);t.exports=function(t){var r=n(t,"string");return o(r)?r:r+""}},23691:t=>{var r=String;t.exports=function(t){try{return r(t)}catch(e){return"Object"}}},14630:(t,r,e)=>{var n=e(68844),o=0,i=Math.random(),u=n(1..toString);t.exports=function(t){return"Symbol("+(void 0===t?"":t)+")_"+u(++o+i,36)}},39525:(t,r,e)=>{var n=e(50146);t.exports=n&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},15648:(t,r,e)=>{var n=e(67697),o=e(3689);t.exports=n&&o((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},59834:(t,r,e)=>{var n=e(19037),o=e(69985),i=n.WeakMap;t.exports=o(i)&&/native code/.test(String(i))},44201:(t,r,e)=>{var n=e(19037),o=e(83430),i=e(36812),u=e(14630),a=e(50146),c=e(39525),s=n.Symbol,p=o("wks"),f=c?s["for"]||s:s&&s.withoutSetter||u;t.exports=function(t){return i(p,t)||(p[t]=a&&i(s,t)?s[t]:f("Symbol."+t)),p[t]}}}]); \ No newline at end of file diff --git a/HomeUI/dist/js/6414.js b/HomeUI/dist/js/6414.js index 5b7beb83e..9a7455eec 100644 --- a/HomeUI/dist/js/6414.js +++ b/HomeUI/dist/js/6414.js @@ -1 +1 @@ -"use strict";(globalThis["webpackChunkflux"]=globalThis["webpackChunkflux"]||[]).push([[6414],{34547:(t,e,s)=>{s.d(e,{Z:()=>u});var o=function(){var t=this,e=t._self._c;return e("div",{staticClass:"toastification"},[e("div",{staticClass:"d-flex align-items-start"},[e("b-avatar",{staticClass:"mr-75 flex-shrink-0",attrs:{variant:t.variant,size:"1.8rem"}},[e("feather-icon",{attrs:{icon:t.icon,size:"15"}})],1),e("div",{staticClass:"d-flex flex-grow-1"},[e("div",[t.title?e("h5",{staticClass:"mb-0 font-weight-bolder toastification-title",class:`text-${t.variant}`,domProps:{textContent:t._s(t.title)}}):t._e(),t.text?e("small",{staticClass:"d-inline-block text-body",domProps:{textContent:t._s(t.text)}}):t._e()]),e("span",{staticClass:"cursor-pointer toastification-close-icon ml-auto",on:{click:function(e){return t.$emit("close-toast")}}},[t.hideClose?t._e():e("feather-icon",{staticClass:"text-body",attrs:{icon:"XIcon"}})],1)])],1)])},a=[],r=s(47389);const i={components:{BAvatar:r.SH},props:{variant:{type:String,default:"primary"},icon:{type:String,default:null},title:{type:String,default:null},text:{type:String,default:null},hideClose:{type:Boolean,default:!1}}},n=i;var l=s(1001),c=(0,l.Z)(n,o,a,!1,null,"22d964ca",null);const u=c.exports},87156:(t,e,s)=>{s.d(e,{Z:()=>g});var o=function(){var t=this,e=t._self._c;return e("b-popover",{ref:"popover",attrs:{target:`${t.target}`,triggers:"click blur",show:t.show,placement:"auto",container:"my-container","custom-class":`confirm-dialog-${t.width}`},on:{"update:show":function(e){t.show=e}},scopedSlots:t._u([{key:"title",fn:function(){return[e("div",{staticClass:"d-flex justify-content-between align-items-center"},[e("span",[t._v(t._s(t.title))]),e("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"close",attrs:{variant:"transparent","aria-label":"Close"},on:{click:function(e){t.show=!1}}},[e("span",{staticClass:"d-inline-block text-white",attrs:{"aria-hidden":"true"}},[t._v("×")])])],1)]},proxy:!0}])},[e("div",{staticClass:"text-center"},[e("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"mr-1",attrs:{size:"sm",variant:"danger"},on:{click:function(e){t.show=!1}}},[t._v(" "+t._s(t.cancelButton)+" ")]),e("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],attrs:{size:"sm",variant:"primary"},on:{click:function(e){return t.confirm()}}},[t._v(" "+t._s(t.confirmButton)+" ")])],1)])},a=[],r=s(15193),i=s(53862),n=s(20266);const l={components:{BButton:r.T,BPopover:i.x},directives:{Ripple:n.Z},props:{target:{type:String,required:!0},title:{type:String,required:!1,default:"Are You Sure?"},cancelButton:{type:String,required:!1,default:"Cancel"},confirmButton:{type:String,required:!0},width:{type:Number,required:!1,default:300}},data(){return{show:!1}},methods:{confirm(){this.show=!1,this.$emit("confirm")}}},c=l;var u=s(1001),d=(0,u.Z)(c,o,a,!1,null,null,null);const g=d.exports},26414:(t,e,s)=>{s.r(e),s.d(e,{default:()=>k});var o=function(){var t=this,e=t._self._c;return e("b-overlay",{attrs:{show:t.sessionsLoading,variant:"transparent",blur:"5px"}},[e("b-card",[e("b-row",[e("b-col",{staticClass:"my-1",attrs:{md:"4",sm:"4"}},[e("b-form-group",{staticClass:"mb-0"},[e("label",{staticClass:"d-inline-block text-left mr-50"},[t._v("Per page")]),e("b-form-select",{staticClass:"w-50",attrs:{id:"perPageSelect",size:"sm",options:t.pageOptions},model:{value:t.perPage,callback:function(e){t.perPage=e},expression:"perPage"}})],1)],1),e("b-col",{staticClass:"my-1",attrs:{md:"8"}},[e("b-form-group",{staticClass:"mb-0",attrs:{label:"Filter","label-cols-sm":"1","label-align-sm":"right","label-for":"filterInput"}},[e("b-input-group",{attrs:{size:"sm"}},[e("b-form-input",{attrs:{id:"filterInput",type:"search",placeholder:"Type to Search"},model:{value:t.filter,callback:function(e){t.filter=e},expression:"filter"}}),e("b-input-group-append",[e("b-button",{attrs:{disabled:!t.filter},on:{click:function(e){t.filter=""}}},[t._v(" Clear ")])],1)],1)],1)],1),e("b-col",{attrs:{cols:"12"}},[e("b-table",{attrs:{striped:"",hover:"",responsive:"",small:"","per-page":t.perPage,"current-page":t.currentPage,items:t.items,fields:t.fields,"sort-by":t.sortBy,"sort-desc":t.sortDesc,"sort-direction":t.sortDirection,filter:t.filter,"filter-included-fields":t.filterOn,"show-empty":"","empty-text":"No Sessions"},on:{"update:sortBy":function(e){t.sortBy=e},"update:sort-by":function(e){t.sortBy=e},"update:sortDesc":function(e){t.sortDesc=e},"update:sort-desc":function(e){t.sortDesc=e},filtered:t.onFiltered},scopedSlots:t._u([{key:"cell(logout)",fn:function(s){return[e("v-icon",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.top",value:"Currently logged and used session by you",expression:"'Currently logged and used session by you'",modifiers:{hover:!0,top:!0}}],staticClass:"mr-1",class:s.item.loginPhrase===t.currentLoginPhrase?"":"hidden",attrs:{name:"info-circle"}}),e("b-button",{staticClass:"mr-0",attrs:{id:`${s.item.loginPhrase}`,size:"sm",variant:"danger"}},[t._v(" Log Out ")]),e("confirm-dialog",{attrs:{target:`${s.item.loginPhrase}`,"confirm-button":"Log Out!"},on:{confirm:function(e){return t.onLogoutOK(s.item)}}})]}}])})],1),e("b-col",{attrs:{cols:"12"}},[e("b-pagination",{staticClass:"my-0",attrs:{"total-rows":t.totalRows,"per-page":t.perPage,align:"center",size:"sm"},model:{value:t.currentPage,callback:function(e){t.currentPage=e},expression:"currentPage"}}),e("span",{staticClass:"table-total"},[t._v("Total: "+t._s(t.totalRows))])],1)],1),e("div",{staticClass:"text-center"},[e("b-button",{staticClass:"mt-2",attrs:{id:"logout-all",size:"sm",variant:"danger"},on:{click:function(e){t.logoutAllPopoverShow=!0}}},[t._v(" Logout all sessions ")]),e("confirm-dialog",{attrs:{target:"logout-all","confirm-button":"Log Out All!"},on:{confirm:function(e){return t.onLogoutAllOK()}}})],1)],1)],1)},a=[],r=s(86855),i=s(16521),n=s(26253),l=s(50725),c=s(10962),u=s(46709),d=s(8051),g=s(4060),p=s(22183),m=s(22418),h=s(15193),f=s(66126),b=s(5870),v=s(34547),y=s(20266),w=s(87156),x=s(34369);const C=s(80129),P={components:{BCard:r._,BTable:i.h,BRow:n.T,BCol:l.l,BPagination:c.c,BFormGroup:u.x,BFormSelect:d.K,BInputGroup:g.w,BFormInput:p.e,BInputGroupAppend:m.B,BButton:h.T,BOverlay:f.X,ConfirmDialog:w.Z,ToastificationContent:v.Z},directives:{"b-tooltip":b.o,Ripple:y.Z},data(){return{perPage:10,pageOptions:[10,25,50,100],sortBy:"",sortDesc:!1,sortDirection:"asc",items:[],filter:"",filterOn:[],fields:[{key:"zelid",label:"Flux ID",sortable:!0},{key:"loginPhrase",label:"Login Phrase",sortable:!0},{key:"logout",label:""}],totalRows:1,currentPage:1,sessionsLoading:!0}},computed:{sortOptions(){return this.fields.filter((t=>t.sortable)).map((t=>({text:t.label,value:t.key})))},currentLoginPhrase(){const t=localStorage.getItem("zelidauth"),e=C.parse(t);return console.log(e),e.loginPhrase}},mounted(){this.loggedSessions()},methods:{async loggedSessions(){this.sessionsLoading=!0;const t=localStorage.getItem("zelidauth"),e=C.parse(t);console.log(e),x.Z.loggedSessions(t).then((async t=>{console.log(t),"error"===t.data.status?this.showToast("danger",t.data.data.message||t.data.data):(this.items=t.data.data,this.totalRows=this.items.length,this.currentPage=1),this.sessionsLoading=!1})).catch((t=>{console.log(t),this.showToast("danger",t.toString()),this.sessionsLoading=!1}))},onFiltered(t){this.totalRows=t.length,this.currentPage=1},async onLogoutOK(t){const e=localStorage.getItem("zelidauth"),s=C.parse(e);x.Z.logoutSpecificSession(e,t.loginPhrase).then((e=>{console.log(e),"error"===e.data.status?this.showToast("danger",e.data.data.message||e.data.data):(this.showToast("success",e.data.data.message||e.data.data),t.loginPhrase===s.loginPhrase?(localStorage.removeItem("zelidauth"),this.$store.commit("flux/setPrivilege","none"),this.$store.commit("flux/setZelid",""),this.$router.replace("/")):this.loggedSessions())})).catch((t=>{console.log(t),this.showToast("danger",t.toString())}))},async onLogoutAllOK(){const t=localStorage.getItem("zelidauth");x.Z.logoutAllSessions(t).then((t=>{console.log(t),"error"===t.data.status?this.showToast("danger",t.data.data.message||t.data.data):(localStorage.removeItem("zelidauth"),this.$store.commit("flux/setPrivilege","none"),this.$store.commit("flux/setZelid",""),this.$router.replace("/"),this.showToast("success",t.data.data.message||t.data.data))})).catch((t=>{console.log(t),this.showToast("danger",t.toString())}))},showToast(t,e,s="InfoIcon"){this.$toast({component:v.Z,props:{title:e,icon:s,variant:t}})}}},S=P;var B=s(1001),_=(0,B.Z)(S,o,a,!1,null,null,null);const k=_.exports}}]); \ No newline at end of file +"use strict";(self["webpackChunkflux"]=self["webpackChunkflux"]||[]).push([[6414],{34547:(t,e,s)=>{s.d(e,{Z:()=>u});var o=function(){var t=this,e=t._self._c;return e("div",{staticClass:"toastification"},[e("div",{staticClass:"d-flex align-items-start"},[e("b-avatar",{staticClass:"mr-75 flex-shrink-0",attrs:{variant:t.variant,size:"1.8rem"}},[e("feather-icon",{attrs:{icon:t.icon,size:"15"}})],1),e("div",{staticClass:"d-flex flex-grow-1"},[e("div",[t.title?e("h5",{staticClass:"mb-0 font-weight-bolder toastification-title",class:`text-${t.variant}`,domProps:{textContent:t._s(t.title)}}):t._e(),t.text?e("small",{staticClass:"d-inline-block text-body",domProps:{textContent:t._s(t.text)}}):t._e()]),e("span",{staticClass:"cursor-pointer toastification-close-icon ml-auto",on:{click:function(e){return t.$emit("close-toast")}}},[t.hideClose?t._e():e("feather-icon",{staticClass:"text-body",attrs:{icon:"XIcon"}})],1)])],1)])},a=[],r=s(47389);const i={components:{BAvatar:r.SH},props:{variant:{type:String,default:"primary"},icon:{type:String,default:null},title:{type:String,default:null},text:{type:String,default:null},hideClose:{type:Boolean,default:!1}}},n=i;var l=s(1001),c=(0,l.Z)(n,o,a,!1,null,"22d964ca",null);const u=c.exports},87156:(t,e,s)=>{s.d(e,{Z:()=>g});var o=function(){var t=this,e=t._self._c;return e("b-popover",{ref:"popover",attrs:{target:`${t.target}`,triggers:"click blur",show:t.show,placement:"auto",container:"my-container","custom-class":`confirm-dialog-${t.width}`},on:{"update:show":function(e){t.show=e}},scopedSlots:t._u([{key:"title",fn:function(){return[e("div",{staticClass:"d-flex justify-content-between align-items-center"},[e("span",[t._v(t._s(t.title))]),e("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"close",attrs:{variant:"transparent","aria-label":"Close"},on:{click:function(e){t.show=!1}}},[e("span",{staticClass:"d-inline-block text-white",attrs:{"aria-hidden":"true"}},[t._v("×")])])],1)]},proxy:!0}])},[e("div",{staticClass:"text-center"},[e("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"mr-1",attrs:{size:"sm",variant:"danger"},on:{click:function(e){t.show=!1}}},[t._v(" "+t._s(t.cancelButton)+" ")]),e("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],attrs:{size:"sm",variant:"primary"},on:{click:function(e){return t.confirm()}}},[t._v(" "+t._s(t.confirmButton)+" ")])],1)])},a=[],r=s(15193),i=s(53862),n=s(20266);const l={components:{BButton:r.T,BPopover:i.x},directives:{Ripple:n.Z},props:{target:{type:String,required:!0},title:{type:String,required:!1,default:"Are You Sure?"},cancelButton:{type:String,required:!1,default:"Cancel"},confirmButton:{type:String,required:!0},width:{type:Number,required:!1,default:300}},data(){return{show:!1}},methods:{confirm(){this.show=!1,this.$emit("confirm")}}},c=l;var u=s(1001),d=(0,u.Z)(c,o,a,!1,null,null,null);const g=d.exports},26414:(t,e,s)=>{s.r(e),s.d(e,{default:()=>k});var o=function(){var t=this,e=t._self._c;return e("b-overlay",{attrs:{show:t.sessionsLoading,variant:"transparent",blur:"5px"}},[e("b-card",[e("b-row",[e("b-col",{staticClass:"my-1",attrs:{md:"4",sm:"4"}},[e("b-form-group",{staticClass:"mb-0"},[e("label",{staticClass:"d-inline-block text-left mr-50"},[t._v("Per page")]),e("b-form-select",{staticClass:"w-50",attrs:{id:"perPageSelect",size:"sm",options:t.pageOptions},model:{value:t.perPage,callback:function(e){t.perPage=e},expression:"perPage"}})],1)],1),e("b-col",{staticClass:"my-1",attrs:{md:"8"}},[e("b-form-group",{staticClass:"mb-0",attrs:{label:"Filter","label-cols-sm":"1","label-align-sm":"right","label-for":"filterInput"}},[e("b-input-group",{attrs:{size:"sm"}},[e("b-form-input",{attrs:{id:"filterInput",type:"search",placeholder:"Type to Search"},model:{value:t.filter,callback:function(e){t.filter=e},expression:"filter"}}),e("b-input-group-append",[e("b-button",{attrs:{disabled:!t.filter},on:{click:function(e){t.filter=""}}},[t._v(" Clear ")])],1)],1)],1)],1),e("b-col",{attrs:{cols:"12"}},[e("b-table",{attrs:{striped:"",hover:"",responsive:"",small:"","per-page":t.perPage,"current-page":t.currentPage,items:t.items,fields:t.fields,"sort-by":t.sortBy,"sort-desc":t.sortDesc,"sort-direction":t.sortDirection,filter:t.filter,"filter-included-fields":t.filterOn,"show-empty":"","empty-text":"No Sessions"},on:{"update:sortBy":function(e){t.sortBy=e},"update:sort-by":function(e){t.sortBy=e},"update:sortDesc":function(e){t.sortDesc=e},"update:sort-desc":function(e){t.sortDesc=e},filtered:t.onFiltered},scopedSlots:t._u([{key:"cell(logout)",fn:function(s){return[e("v-icon",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.top",value:"Currently logged and used session by you",expression:"'Currently logged and used session by you'",modifiers:{hover:!0,top:!0}}],staticClass:"mr-1",class:s.item.loginPhrase===t.currentLoginPhrase?"":"hidden",attrs:{name:"info-circle"}}),e("b-button",{staticClass:"mr-0",attrs:{id:`${s.item.loginPhrase}`,size:"sm",variant:"danger"}},[t._v(" Log Out ")]),e("confirm-dialog",{attrs:{target:`${s.item.loginPhrase}`,"confirm-button":"Log Out!"},on:{confirm:function(e){return t.onLogoutOK(s.item)}}})]}}])})],1),e("b-col",{attrs:{cols:"12"}},[e("b-pagination",{staticClass:"my-0",attrs:{"total-rows":t.totalRows,"per-page":t.perPage,align:"center",size:"sm"},model:{value:t.currentPage,callback:function(e){t.currentPage=e},expression:"currentPage"}}),e("span",{staticClass:"table-total"},[t._v("Total: "+t._s(t.totalRows))])],1)],1),e("div",{staticClass:"text-center"},[e("b-button",{staticClass:"mt-2",attrs:{id:"logout-all",size:"sm",variant:"danger"},on:{click:function(e){t.logoutAllPopoverShow=!0}}},[t._v(" Logout all sessions ")]),e("confirm-dialog",{attrs:{target:"logout-all","confirm-button":"Log Out All!"},on:{confirm:function(e){return t.onLogoutAllOK()}}})],1)],1)],1)},a=[],r=s(86855),i=s(16521),n=s(26253),l=s(50725),c=s(10962),u=s(46709),d=s(8051),g=s(4060),p=s(22183),m=s(22418),f=s(15193),h=s(66126),b=s(5870),v=s(34547),y=s(20266),w=s(87156),x=s(34369);const C=s(80129),P={components:{BCard:r._,BTable:i.h,BRow:n.T,BCol:l.l,BPagination:c.c,BFormGroup:u.x,BFormSelect:d.K,BInputGroup:g.w,BFormInput:p.e,BInputGroupAppend:m.B,BButton:f.T,BOverlay:h.X,ConfirmDialog:w.Z,ToastificationContent:v.Z},directives:{"b-tooltip":b.o,Ripple:y.Z},data(){return{perPage:10,pageOptions:[10,25,50,100],sortBy:"",sortDesc:!1,sortDirection:"asc",items:[],filter:"",filterOn:[],fields:[{key:"zelid",label:"Flux ID",sortable:!0},{key:"loginPhrase",label:"Login Phrase",sortable:!0},{key:"logout",label:""}],totalRows:1,currentPage:1,sessionsLoading:!0}},computed:{sortOptions(){return this.fields.filter((t=>t.sortable)).map((t=>({text:t.label,value:t.key})))},currentLoginPhrase(){const t=localStorage.getItem("zelidauth"),e=C.parse(t);return console.log(e),e.loginPhrase}},mounted(){this.loggedSessions()},methods:{async loggedSessions(){this.sessionsLoading=!0;const t=localStorage.getItem("zelidauth"),e=C.parse(t);console.log(e),x.Z.loggedSessions(t).then((async t=>{console.log(t),"error"===t.data.status?this.showToast("danger",t.data.data.message||t.data.data):(this.items=t.data.data,this.totalRows=this.items.length,this.currentPage=1),this.sessionsLoading=!1})).catch((t=>{console.log(t),this.showToast("danger",t.toString()),this.sessionsLoading=!1}))},onFiltered(t){this.totalRows=t.length,this.currentPage=1},async onLogoutOK(t){const e=localStorage.getItem("zelidauth"),s=C.parse(e);x.Z.logoutSpecificSession(e,t.loginPhrase).then((e=>{console.log(e),"error"===e.data.status?this.showToast("danger",e.data.data.message||e.data.data):(this.showToast("success",e.data.data.message||e.data.data),t.loginPhrase===s.loginPhrase?(localStorage.removeItem("zelidauth"),this.$store.commit("flux/setPrivilege","none"),this.$store.commit("flux/setZelid",""),this.$router.replace("/")):this.loggedSessions())})).catch((t=>{console.log(t),this.showToast("danger",t.toString())}))},async onLogoutAllOK(){const t=localStorage.getItem("zelidauth");x.Z.logoutAllSessions(t).then((t=>{console.log(t),"error"===t.data.status?this.showToast("danger",t.data.data.message||t.data.data):(localStorage.removeItem("zelidauth"),this.$store.commit("flux/setPrivilege","none"),this.$store.commit("flux/setZelid",""),this.$router.replace("/"),this.showToast("success",t.data.data.message||t.data.data))})).catch((t=>{console.log(t),this.showToast("danger",t.toString())}))},showToast(t,e,s="InfoIcon"){this.$toast({component:v.Z,props:{title:e,icon:s,variant:t}})}}},S=P;var B=s(1001),_=(0,B.Z)(S,o,a,!1,null,null,null);const k=_.exports}}]); \ No newline at end of file diff --git a/HomeUI/dist/js/6481.js b/HomeUI/dist/js/6481.js index 39aeb15cc..5c115a539 100644 --- a/HomeUI/dist/js/6481.js +++ b/HomeUI/dist/js/6481.js @@ -1 +1 @@ -"use strict";(globalThis["webpackChunkflux"]=globalThis["webpackChunkflux"]||[]).push([[6481],{34547:(t,e,a)=>{a.d(e,{Z:()=>c});var n=function(){var t=this,e=t._self._c;return e("div",{staticClass:"toastification"},[e("div",{staticClass:"d-flex align-items-start"},[e("b-avatar",{staticClass:"mr-75 flex-shrink-0",attrs:{variant:t.variant,size:"1.8rem"}},[e("feather-icon",{attrs:{icon:t.icon,size:"15"}})],1),e("div",{staticClass:"d-flex flex-grow-1"},[e("div",[t.title?e("h5",{staticClass:"mb-0 font-weight-bolder toastification-title",class:`text-${t.variant}`,domProps:{textContent:t._s(t.title)}}):t._e(),t.text?e("small",{staticClass:"d-inline-block text-body",domProps:{textContent:t._s(t.text)}}):t._e()]),e("span",{staticClass:"cursor-pointer toastification-close-icon ml-auto",on:{click:function(e){return t.$emit("close-toast")}}},[t.hideClose?t._e():e("feather-icon",{staticClass:"text-body",attrs:{icon:"XIcon"}})],1)])],1)])},r=[],s=a(47389);const o={components:{BAvatar:s.SH},props:{variant:{type:String,default:"primary"},icon:{type:String,default:null},title:{type:String,default:null},text:{type:String,default:null},hideClose:{type:Boolean,default:!1}}},i=o;var l=a(1001),d=(0,l.Z)(i,n,r,!1,null,"22d964ca",null);const c=d.exports},87156:(t,e,a)=>{a.d(e,{Z:()=>m});var n=function(){var t=this,e=t._self._c;return e("b-popover",{ref:"popover",attrs:{target:`${t.target}`,triggers:"click blur",show:t.show,placement:"auto",container:"my-container","custom-class":`confirm-dialog-${t.width}`},on:{"update:show":function(e){t.show=e}},scopedSlots:t._u([{key:"title",fn:function(){return[e("div",{staticClass:"d-flex justify-content-between align-items-center"},[e("span",[t._v(t._s(t.title))]),e("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"close",attrs:{variant:"transparent","aria-label":"Close"},on:{click:function(e){t.show=!1}}},[e("span",{staticClass:"d-inline-block text-white",attrs:{"aria-hidden":"true"}},[t._v("×")])])],1)]},proxy:!0}])},[e("div",{staticClass:"text-center"},[e("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"mr-1",attrs:{size:"sm",variant:"danger"},on:{click:function(e){t.show=!1}}},[t._v(" "+t._s(t.cancelButton)+" ")]),e("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],attrs:{size:"sm",variant:"primary"},on:{click:function(e){return t.confirm()}}},[t._v(" "+t._s(t.confirmButton)+" ")])],1)])},r=[],s=a(15193),o=a(53862),i=a(20266);const l={components:{BButton:s.T,BPopover:o.x},directives:{Ripple:i.Z},props:{target:{type:String,required:!0},title:{type:String,required:!1,default:"Are You Sure?"},cancelButton:{type:String,required:!1,default:"Cancel"},confirmButton:{type:String,required:!0},width:{type:Number,required:!1,default:300}},data(){return{show:!1}},methods:{confirm(){this.show=!1,this.$emit("confirm")}}},d=l;var c=a(1001),u=(0,c.Z)(d,n,r,!1,null,null,null);const m=u.exports},90410:(t,e,a)=>{a.d(e,{Z:()=>f});var n=function(){var t=this,e=t._self._c;return e("b-input-group",[e("b-input-group-prepend",[e("b-button",{staticClass:"py-0",attrs:{variant:"outline-dark",size:"sm"},on:{click:function(e){return t.valueChange(t.value-1)}}},[e("b-icon",{attrs:{icon:"dash","font-scale":"1.6"}})],1)],1),e("b-form-input",{staticClass:"border-secondary text-center",attrs:{id:t.id,size:t.size,value:t.value,type:"number",min:"0",number:""},on:{update:t.valueChange}}),e("b-input-group-append",[e("b-button",{staticClass:"py-0",attrs:{variant:"outline-dark",size:"sm"},on:{click:function(e){return t.valueChange(t.value+1)}}},[e("b-icon",{attrs:{icon:"plus","font-scale":"1.6"}})],1)],1)],1)},r=[],s=a(43022),o=a(15193),i=a(22183),l=a(72466),d=a(4060),c=a(27754),u=a(22418);const m={name:"InputSpinButton",components:{BIcon:s.H,BButton:o.T,BFormInput:i.e,BIconDash:l.Loc,BIconPlus:l.s3j,BInputGroup:d.w,BInputGroupPrepend:c.P,BInputGroupAppend:u.B},props:{id:{type:String,required:!0},size:{type:String,required:!1,default:"md",validator(t){return["sm","md","lg"].includes(t)}},value:{type:Number,required:!0}},methods:{valueChange(t){t<=0?this.$emit("input",0):this.$emit("input",t)}}},g=m;var h=a(1001),p=(0,h.Z)(g,n,r,!1,null,"2f5aba03",null);const f=p.exports},56481:(t,e,a)=>{a.r(e),a.d(e,{default:()=>D});var n=function(){var t=this,e=t._self._c;return e("div",[e("b-row",{staticClass:"match-height"},[e("b-col",{attrs:{sm:"12",lg:"6"}},[e("b-card",{attrs:{title:"Daemon"}},[e("b-card-text",{staticClass:"mb-3"},[t._v(" An easy way to update your Flux daemon to the latest version. Flux will be automatically started once update is done. ")]),e("div",{staticClass:"text-center"},[e("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],attrs:{id:"update-daemon",variant:"success","aria-label":"Update Daemon"}},[t._v(" Update Daemon ")]),e("confirm-dialog",{attrs:{target:"update-daemon","confirm-button":"Update Daemon"},on:{confirm:function(e){return t.updateDaemon()}}})],1)],1)],1),e("b-col",{attrs:{sm:"12",lg:"6"}},[e("b-card",{attrs:{title:"Manage Process"}},[e("b-card-text",{staticClass:"mb-3"},[t._v(" Here you can manage your Flux daemon process. ")]),e("div",{staticClass:"text-center"},[e("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"mx-1 mb-1",attrs:{id:"start-daemon",variant:"success","aria-label":"Start Daemon"}},[t._v(" Start Daemon ")]),e("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"mx-1 mb-1",attrs:{id:"stop-daemon",variant:"success","aria-label":"Stop Daemon"}},[t._v(" Stop Daemon ")]),e("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"mx-1 mb-1",attrs:{id:"restart-daemon",variant:"success","aria-label":"Restart Daemon"}},[t._v(" Restart Daemon ")]),e("confirm-dialog",{attrs:{target:"start-daemon","confirm-button":"Start Daemon"},on:{confirm:function(e){return t.startDaemon()}}}),e("confirm-dialog",{attrs:{target:"stop-daemon","confirm-button":"Stop Daemon"},on:{confirm:function(e){return t.stopDaemon()}}}),e("confirm-dialog",{attrs:{target:"restart-daemon","confirm-button":"Restart Daemon"},on:{confirm:function(e){return t.restartDaemon()}}})],1)],1)],1)],1),e("b-row",{staticClass:"match-height"},[e("b-col",{attrs:{sm:"12",lg:"8"}},[e("b-card",{attrs:{title:"Rescan"}},[e("b-card-text",{staticClass:"mb-2"},[t._v(" Choose a blockheight to rescan Daemon from and click on Rescan Daemon to begin rescanning. ")]),e("div",{staticClass:"mb-1",staticStyle:{display:"flex","justify-content":"center","align-items":"center"}},[e("b-card-text",{staticClass:"mr-1 mb-0"},[t._v(" Block Height ")]),e("input-spin-button",{staticStyle:{width:"250px"},attrs:{id:"sb-vertical"},model:{value:t.rescanDaemonHeight,callback:function(e){t.rescanDaemonHeight=e},expression:"rescanDaemonHeight"}}),e("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"mx-1",staticStyle:{width:"250px"},attrs:{id:"rescan-daemon",variant:"success","aria-label":"Rescan Daemon"}},[t._v(" Rescan Daemon ")]),e("confirm-dialog",{attrs:{target:"rescan-daemon","confirm-button":"Rescan Daemon"},on:{confirm:function(e){return t.rescanDaemon()}}})],1)],1)],1),e("b-col",{attrs:{sm:"12",lg:"4"}},[e("b-card",{attrs:{title:"Reindex"}},[e("b-card-text",{staticClass:"mb-2"},[t._v(" This option reindexes Flux blockchain data. It will take several hours to finish the operation. ")]),e("div",{staticClass:"text-center"},[e("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],attrs:{id:"reindex-daemon",variant:"success","aria-label":"Reindex Daemon"}},[t._v(" Reindex Daemon ")]),e("confirm-dialog",{attrs:{target:"reindex-daemon","confirm-button":"Reindex Daemon"},on:{confirm:function(e){return t.reindexDaemon()}}})],1)],1)],1)],1)],1)},r=[],s=a(86855),o=a(26253),i=a(50725),l=a(64206),d=a(15193),c=a(34547),u=a(20266),m=a(87066),g=a(87156),h=a(90410),p=a(27616),f=a(39055);const b=a(80129),x={components:{BCard:s._,BRow:o.T,BCol:i.l,BCardText:l.j,BButton:d.T,InputSpinButton:h.Z,ConfirmDialog:g.Z,ToastificationContent:c.Z},directives:{Ripple:u.Z},data(){return{rescanDaemonHeight:0}},mounted(){this.checkDaemonVersion()},methods:{checkDaemonVersion(){p.Z.getInfo().then((t=>{console.log(t);const e=t.data.data.version;m["default"].get("https://raw.githubusercontent.com/runonflux/flux/master/helpers/daemoninfo.json").then((t=>{console.log(t),t.data.version!==e?this.showToast("warning","Daemon requires an update!"):this.showToast("success","Daemon is up to date.")})).catch((t=>{console.log(t),this.showToast("danger","Error verifying recent version")}))})).catch((t=>{console.log(t),this.showToast("danger","Error connecting to Daemon")}))},updateDaemon(){p.Z.getInfo().then((t=>{console.log(t);const e=t.data.data.version;m["default"].get("https://raw.githubusercontent.com/runonflux/flux/master/helpers/daemoninfo.json").then((t=>{if(console.log(t),t.data.version!==e){const t=localStorage.getItem("zelidauth"),e=b.parse(t);console.log(e),this.showToast("warning","Daemon is now updating in the background"),f.Z.updateDaemon(t).then((t=>{console.log(t),"error"===t.data.status&&this.showToast("danger",t.data.data.message||t.data.data)})).catch((t=>{console.log(t),console.log(t.code),this.showToast("danger",t.toString())}))}else this.showToast("success","Daemon is already up to date")})).catch((t=>{console.log(t),this.showToast("danger","Error verifying recent version")}))})).catch((t=>{console.log(t),this.showToast("danger","Error connecting to Daemon")}))},startDaemon(){this.showToast("warning","Daemon will start");const t=localStorage.getItem("zelidauth");p.Z.start(t).then((t=>{"error"===t.data.status?this.showToast("danger",t.data.data.message||t.data.data):this.showToast("success",t.data.data.message||t.data.data)})).catch((t=>{console.log(t),this.showToast("danger","Error while trying to start Daemon")}))},stopDaemon(){this.showToast("warning","Daemon will be stopped");const t=localStorage.getItem("zelidauth");p.Z.stopDaemon(t).then((t=>{"error"===t.data.status?this.showToast("danger",t.data.data.message||t.data.data):this.showToast("success",t.data.data.message||t.data.data)})).catch((t=>{console.log(t),this.showToast("danger","Error while trying to stop Daemon")}))},restartDaemon(){this.showToast("warning","Daemon will now restart");const t=localStorage.getItem("zelidauth");p.Z.restart(t).then((t=>{"error"===t.data.status?this.showToast("danger",t.data.data.message||t.data.data):this.showToast("success",t.data.data.message||t.data.data)})).catch((t=>{console.log(t),this.showToast("danger","Error while trying to restart Daemon")}))},rescanDaemon(){this.showToast("warning","Daemon will now rescan. This will take up to an hour.");const t=localStorage.getItem("zelidauth"),e=this.rescanDaemonHeight>0?this.rescanDaemonHeight:0;p.Z.rescanDaemon(t,e).then((t=>{"error"===t.data.status?this.showToast("danger",t.data.data.message||t.data.data):this.showToast("success",t.data.data.message||t.data.data)})).catch((t=>{console.log(t),this.showToast("danger","Error while trying to rescan Daemon")}))},reindexDaemon(){this.showToast("warning","Daemon will now reindex. This will take several hours.");const t=localStorage.getItem("zelidauth");f.Z.reindexDaemon(t).then((t=>{"error"===t.data.status?this.showToast("danger",t.data.data.message||t.data.data):this.showToast("success",t.data.data.message||t.data.data)})).catch((t=>{console.log(t),this.showToast("danger","Error while trying to reindex Daemon")}))},showToast(t,e,a="InfoIcon"){this.$toast({component:c.Z,props:{title:e,icon:a,variant:t}})}}},v=x;var w=a(1001),Z=(0,w.Z)(v,n,r,!1,null,null,null);const D=Z.exports},27616:(t,e,a)=>{a.d(e,{Z:()=>r});var n=a(80914);const r={help(){return(0,n.Z)().get("/daemon/help")},helpSpecific(t){return(0,n.Z)().get(`/daemon/help/${t}`)},getInfo(){return(0,n.Z)().get("/daemon/getinfo")},getFluxNodeStatus(){return(0,n.Z)().get("/daemon/getzelnodestatus")},getRawTransaction(t,e){return(0,n.Z)().get(`/daemon/getrawtransaction/${t}/${e}`)},listFluxNodes(){return(0,n.Z)().get("/daemon/listzelnodes")},viewDeterministicFluxNodeList(){return(0,n.Z)().get("/daemon/viewdeterministiczelnodelist")},getFluxNodeCount(){return(0,n.Z)().get("/daemon/getzelnodecount")},getStartList(){return(0,n.Z)().get("/daemon/getstartlist")},getDOSList(){return(0,n.Z)().get("/daemon/getdoslist")},fluxCurrentWinner(){return(0,n.Z)().get("/daemon/fluxcurrentwinner")},getBenchmarks(){return(0,n.Z)().get("/daemon/getbenchmarks")},getBenchStatus(){return(0,n.Z)().get("/daemon/getbenchstatus")},startBenchmark(t){return(0,n.Z)().get("/daemon/startbenchmark",{headers:{zelidauth:t}})},stopBenchmark(t){return(0,n.Z)().get("/daemon/stopbenchmark",{headers:{zelidauth:t}})},getBlockCount(){return(0,n.Z)().get("/daemon/getBlockCount")},getBlockchainInfo(){return(0,n.Z)().get("/daemon/getblockchaininfo")},getMiningInfo(){return(0,n.Z)().get("/daemon/getmininginfo")},getNetworkInfo(){return(0,n.Z)().get("/daemon/getnetworkinfo")},validateAddress(t,e){return(0,n.Z)().get(`/daemon/validateaddress/${e}`,{headers:{zelidauth:t}})},getWalletInfo(t){return(0,n.Z)().get("/daemon/getwalletinfo",{headers:{zelidauth:t}})},listFluxNodeConf(t){return(0,n.Z)().get("/daemon/listzelnodeconf",{headers:{zelidauth:t}})},start(t){return(0,n.Z)().get("/daemon/start",{headers:{zelidauth:t}})},restart(t){return(0,n.Z)().get("/daemon/restart",{headers:{zelidauth:t}})},stopDaemon(t){return(0,n.Z)().get("/daemon/stop",{headers:{zelidauth:t}})},rescanDaemon(t,e){return(0,n.Z)().get(`/daemon/rescanblockchain/${e}`,{headers:{zelidauth:t}})},getBlock(t,e){return(0,n.Z)().get(`/daemon/getblock/${t}/${e}`)},tailDaemonDebug(t){return(0,n.Z)().get("/flux/taildaemondebug",{headers:{zelidauth:t}})},justAPI(){return(0,n.Z)()},cancelToken(){return n.S}}},39055:(t,e,a)=>{a.d(e,{Z:()=>r});var n=a(80914);const r={softUpdateFlux(t){return(0,n.Z)().get("/flux/softupdateflux",{headers:{zelidauth:t}})},softUpdateInstallFlux(t){return(0,n.Z)().get("/flux/softupdatefluxinstall",{headers:{zelidauth:t}})},updateFlux(t){return(0,n.Z)().get("/flux/updateflux",{headers:{zelidauth:t}})},hardUpdateFlux(t){return(0,n.Z)().get("/flux/hardupdateflux",{headers:{zelidauth:t}})},rebuildHome(t){return(0,n.Z)().get("/flux/rebuildhome",{headers:{zelidauth:t}})},updateDaemon(t){return(0,n.Z)().get("/flux/updatedaemon",{headers:{zelidauth:t}})},reindexDaemon(t){return(0,n.Z)().get("/flux/reindexdaemon",{headers:{zelidauth:t}})},updateBenchmark(t){return(0,n.Z)().get("/flux/updatebenchmark",{headers:{zelidauth:t}})},getFluxVersion(){return(0,n.Z)().get("/flux/version")},broadcastMessage(t,e){const a=e,r={headers:{zelidauth:t}};return(0,n.Z)().post("/flux/broadcastmessage",JSON.stringify(a),r)},connectedPeers(){return(0,n.Z)().get(`/flux/connectedpeers?timestamp=${Date.now()}`)},connectedPeersInfo(){return(0,n.Z)().get(`/flux/connectedpeersinfo?timestamp=${Date.now()}`)},incomingConnections(){return(0,n.Z)().get(`/flux/incomingconnections?timestamp=${Date.now()}`)},incomingConnectionsInfo(){return(0,n.Z)().get(`/flux/incomingconnectionsinfo?timestamp=${Date.now()}`)},addPeer(t,e){return(0,n.Z)().get(`/flux/addpeer/${e}`,{headers:{zelidauth:t}})},removePeer(t,e){return(0,n.Z)().get(`/flux/removepeer/${e}`,{headers:{zelidauth:t}})},removeIncomingPeer(t,e){return(0,n.Z)().get(`/flux/removeincomingpeer/${e}`,{headers:{zelidauth:t}})},adjustKadena(t,e,a){return(0,n.Z)().get(`/flux/adjustkadena/${e}/${a}`,{headers:{zelidauth:t}})},adjustRouterIP(t,e){return(0,n.Z)().get(`/flux/adjustrouterip/${e}`,{headers:{zelidauth:t}})},adjustBlockedPorts(t,e){const a={blockedPorts:e},r={headers:{zelidauth:t}};return(0,n.Z)().post("/flux/adjustblockedports",a,r)},adjustAPIPort(t,e){return(0,n.Z)().get(`/flux/adjustapiport/${e}`,{headers:{zelidauth:t}})},adjustBlockedRepositories(t,e){const a={blockedRepositories:e},r={headers:{zelidauth:t}};return(0,n.Z)().post("/flux/adjustblockedrepositories",a,r)},getKadenaAccount(){const t={headers:{"x-apicache-bypass":!0}};return(0,n.Z)().get("/flux/kadena",t)},getRouterIP(){const t={headers:{"x-apicache-bypass":!0}};return(0,n.Z)().get("/flux/routerip",t)},getBlockedPorts(){const t={headers:{"x-apicache-bypass":!0}};return(0,n.Z)().get("/flux/blockedports",t)},getAPIPort(){const t={headers:{"x-apicache-bypass":!0}};return(0,n.Z)().get("/flux/apiport",t)},getBlockedRepositories(){const t={headers:{"x-apicache-bypass":!0}};return(0,n.Z)().get("/flux/blockedrepositories",t)},getMarketPlaceURL(){return(0,n.Z)().get("/flux/marketplaceurl")},getZelid(){const t={headers:{"x-apicache-bypass":!0}};return(0,n.Z)().get("/flux/zelid",t)},getStaticIpInfo(){return(0,n.Z)().get("/flux/staticip")},restartFluxOS(t){const e={headers:{zelidauth:t,"x-apicache-bypass":!0}};return(0,n.Z)().get("/flux/restart",e)},tailFluxLog(t,e){return(0,n.Z)().get(`/flux/tail${t}log`,{headers:{zelidauth:e}})},justAPI(){return(0,n.Z)()},cancelToken(){return n.S}}}}]); \ No newline at end of file +"use strict";(self["webpackChunkflux"]=self["webpackChunkflux"]||[]).push([[6481],{34547:(t,e,a)=>{a.d(e,{Z:()=>c});var n=function(){var t=this,e=t._self._c;return e("div",{staticClass:"toastification"},[e("div",{staticClass:"d-flex align-items-start"},[e("b-avatar",{staticClass:"mr-75 flex-shrink-0",attrs:{variant:t.variant,size:"1.8rem"}},[e("feather-icon",{attrs:{icon:t.icon,size:"15"}})],1),e("div",{staticClass:"d-flex flex-grow-1"},[e("div",[t.title?e("h5",{staticClass:"mb-0 font-weight-bolder toastification-title",class:`text-${t.variant}`,domProps:{textContent:t._s(t.title)}}):t._e(),t.text?e("small",{staticClass:"d-inline-block text-body",domProps:{textContent:t._s(t.text)}}):t._e()]),e("span",{staticClass:"cursor-pointer toastification-close-icon ml-auto",on:{click:function(e){return t.$emit("close-toast")}}},[t.hideClose?t._e():e("feather-icon",{staticClass:"text-body",attrs:{icon:"XIcon"}})],1)])],1)])},r=[],s=a(47389);const o={components:{BAvatar:s.SH},props:{variant:{type:String,default:"primary"},icon:{type:String,default:null},title:{type:String,default:null},text:{type:String,default:null},hideClose:{type:Boolean,default:!1}}},i=o;var l=a(1001),d=(0,l.Z)(i,n,r,!1,null,"22d964ca",null);const c=d.exports},87156:(t,e,a)=>{a.d(e,{Z:()=>m});var n=function(){var t=this,e=t._self._c;return e("b-popover",{ref:"popover",attrs:{target:`${t.target}`,triggers:"click blur",show:t.show,placement:"auto",container:"my-container","custom-class":`confirm-dialog-${t.width}`},on:{"update:show":function(e){t.show=e}},scopedSlots:t._u([{key:"title",fn:function(){return[e("div",{staticClass:"d-flex justify-content-between align-items-center"},[e("span",[t._v(t._s(t.title))]),e("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"close",attrs:{variant:"transparent","aria-label":"Close"},on:{click:function(e){t.show=!1}}},[e("span",{staticClass:"d-inline-block text-white",attrs:{"aria-hidden":"true"}},[t._v("×")])])],1)]},proxy:!0}])},[e("div",{staticClass:"text-center"},[e("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"mr-1",attrs:{size:"sm",variant:"danger"},on:{click:function(e){t.show=!1}}},[t._v(" "+t._s(t.cancelButton)+" ")]),e("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],attrs:{size:"sm",variant:"primary"},on:{click:function(e){return t.confirm()}}},[t._v(" "+t._s(t.confirmButton)+" ")])],1)])},r=[],s=a(15193),o=a(53862),i=a(20266);const l={components:{BButton:s.T,BPopover:o.x},directives:{Ripple:i.Z},props:{target:{type:String,required:!0},title:{type:String,required:!1,default:"Are You Sure?"},cancelButton:{type:String,required:!1,default:"Cancel"},confirmButton:{type:String,required:!0},width:{type:Number,required:!1,default:300}},data(){return{show:!1}},methods:{confirm(){this.show=!1,this.$emit("confirm")}}},d=l;var c=a(1001),u=(0,c.Z)(d,n,r,!1,null,null,null);const m=u.exports},90410:(t,e,a)=>{a.d(e,{Z:()=>f});var n=function(){var t=this,e=t._self._c;return e("b-input-group",[e("b-input-group-prepend",[e("b-button",{staticClass:"py-0",attrs:{variant:"outline-dark",size:"sm"},on:{click:function(e){return t.valueChange(t.value-1)}}},[e("b-icon",{attrs:{icon:"dash","font-scale":"1.6"}})],1)],1),e("b-form-input",{staticClass:"border-secondary text-center",attrs:{id:t.id,size:t.size,value:t.value,type:"number",min:"0",number:""},on:{update:t.valueChange}}),e("b-input-group-append",[e("b-button",{staticClass:"py-0",attrs:{variant:"outline-dark",size:"sm"},on:{click:function(e){return t.valueChange(t.value+1)}}},[e("b-icon",{attrs:{icon:"plus","font-scale":"1.6"}})],1)],1)],1)},r=[],s=a(43022),o=a(15193),i=a(22183),l=a(72466),d=a(4060),c=a(27754),u=a(22418);const m={name:"InputSpinButton",components:{BIcon:s.H,BButton:o.T,BFormInput:i.e,BIconDash:l.Loc,BIconPlus:l.s3j,BInputGroup:d.w,BInputGroupPrepend:c.P,BInputGroupAppend:u.B},props:{id:{type:String,required:!0},size:{type:String,required:!1,default:"md",validator(t){return["sm","md","lg"].includes(t)}},value:{type:Number,required:!0}},methods:{valueChange(t){t<=0?this.$emit("input",0):this.$emit("input",t)}}},g=m;var h=a(1001),p=(0,h.Z)(g,n,r,!1,null,"2f5aba03",null);const f=p.exports},56481:(t,e,a)=>{a.r(e),a.d(e,{default:()=>D});var n=function(){var t=this,e=t._self._c;return e("div",[e("b-row",{staticClass:"match-height"},[e("b-col",{attrs:{sm:"12",lg:"6"}},[e("b-card",{attrs:{title:"Daemon"}},[e("b-card-text",{staticClass:"mb-3"},[t._v(" An easy way to update your Flux daemon to the latest version. Flux will be automatically started once update is done. ")]),e("div",{staticClass:"text-center"},[e("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],attrs:{id:"update-daemon",variant:"success","aria-label":"Update Daemon"}},[t._v(" Update Daemon ")]),e("confirm-dialog",{attrs:{target:"update-daemon","confirm-button":"Update Daemon"},on:{confirm:function(e){return t.updateDaemon()}}})],1)],1)],1),e("b-col",{attrs:{sm:"12",lg:"6"}},[e("b-card",{attrs:{title:"Manage Process"}},[e("b-card-text",{staticClass:"mb-3"},[t._v(" Here you can manage your Flux daemon process. ")]),e("div",{staticClass:"text-center"},[e("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"mx-1 mb-1",attrs:{id:"start-daemon",variant:"success","aria-label":"Start Daemon"}},[t._v(" Start Daemon ")]),e("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"mx-1 mb-1",attrs:{id:"stop-daemon",variant:"success","aria-label":"Stop Daemon"}},[t._v(" Stop Daemon ")]),e("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"mx-1 mb-1",attrs:{id:"restart-daemon",variant:"success","aria-label":"Restart Daemon"}},[t._v(" Restart Daemon ")]),e("confirm-dialog",{attrs:{target:"start-daemon","confirm-button":"Start Daemon"},on:{confirm:function(e){return t.startDaemon()}}}),e("confirm-dialog",{attrs:{target:"stop-daemon","confirm-button":"Stop Daemon"},on:{confirm:function(e){return t.stopDaemon()}}}),e("confirm-dialog",{attrs:{target:"restart-daemon","confirm-button":"Restart Daemon"},on:{confirm:function(e){return t.restartDaemon()}}})],1)],1)],1)],1),e("b-row",{staticClass:"match-height"},[e("b-col",{attrs:{sm:"12",lg:"8"}},[e("b-card",{attrs:{title:"Rescan"}},[e("b-card-text",{staticClass:"mb-2"},[t._v(" Choose a blockheight to rescan Daemon from and click on Rescan Daemon to begin rescanning. ")]),e("div",{staticClass:"mb-1",staticStyle:{display:"flex","justify-content":"center","align-items":"center"}},[e("b-card-text",{staticClass:"mr-1 mb-0"},[t._v(" Block Height ")]),e("input-spin-button",{staticStyle:{width:"250px"},attrs:{id:"sb-vertical"},model:{value:t.rescanDaemonHeight,callback:function(e){t.rescanDaemonHeight=e},expression:"rescanDaemonHeight"}}),e("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"mx-1",staticStyle:{width:"250px"},attrs:{id:"rescan-daemon",variant:"success","aria-label":"Rescan Daemon"}},[t._v(" Rescan Daemon ")]),e("confirm-dialog",{attrs:{target:"rescan-daemon","confirm-button":"Rescan Daemon"},on:{confirm:function(e){return t.rescanDaemon()}}})],1)],1)],1),e("b-col",{attrs:{sm:"12",lg:"4"}},[e("b-card",{attrs:{title:"Reindex"}},[e("b-card-text",{staticClass:"mb-2"},[t._v(" This option reindexes Flux blockchain data. It will take several hours to finish the operation. ")]),e("div",{staticClass:"text-center"},[e("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],attrs:{id:"reindex-daemon",variant:"success","aria-label":"Reindex Daemon"}},[t._v(" Reindex Daemon ")]),e("confirm-dialog",{attrs:{target:"reindex-daemon","confirm-button":"Reindex Daemon"},on:{confirm:function(e){return t.reindexDaemon()}}})],1)],1)],1)],1)],1)},r=[],s=a(86855),o=a(26253),i=a(50725),l=a(64206),d=a(15193),c=a(34547),u=a(20266),m=a(87066),g=a(87156),h=a(90410),p=a(27616),f=a(39055);const b=a(80129),x={components:{BCard:s._,BRow:o.T,BCol:i.l,BCardText:l.j,BButton:d.T,InputSpinButton:h.Z,ConfirmDialog:g.Z,ToastificationContent:c.Z},directives:{Ripple:u.Z},data(){return{rescanDaemonHeight:0}},mounted(){this.checkDaemonVersion()},methods:{checkDaemonVersion(){p.Z.getInfo().then((t=>{console.log(t);const e=t.data.data.version;m["default"].get("https://raw.githubusercontent.com/runonflux/flux/master/helpers/daemoninfo.json").then((t=>{console.log(t),t.data.version!==e?this.showToast("warning","Daemon requires an update!"):this.showToast("success","Daemon is up to date.")})).catch((t=>{console.log(t),this.showToast("danger","Error verifying recent version")}))})).catch((t=>{console.log(t),this.showToast("danger","Error connecting to Daemon")}))},updateDaemon(){p.Z.getInfo().then((t=>{console.log(t);const e=t.data.data.version;m["default"].get("https://raw.githubusercontent.com/runonflux/flux/master/helpers/daemoninfo.json").then((t=>{if(console.log(t),t.data.version!==e){const t=localStorage.getItem("zelidauth"),e=b.parse(t);console.log(e),this.showToast("warning","Daemon is now updating in the background"),f.Z.updateDaemon(t).then((t=>{console.log(t),"error"===t.data.status&&this.showToast("danger",t.data.data.message||t.data.data)})).catch((t=>{console.log(t),console.log(t.code),this.showToast("danger",t.toString())}))}else this.showToast("success","Daemon is already up to date")})).catch((t=>{console.log(t),this.showToast("danger","Error verifying recent version")}))})).catch((t=>{console.log(t),this.showToast("danger","Error connecting to Daemon")}))},startDaemon(){this.showToast("warning","Daemon will start");const t=localStorage.getItem("zelidauth");p.Z.start(t).then((t=>{"error"===t.data.status?this.showToast("danger",t.data.data.message||t.data.data):this.showToast("success",t.data.data.message||t.data.data)})).catch((t=>{console.log(t),this.showToast("danger","Error while trying to start Daemon")}))},stopDaemon(){this.showToast("warning","Daemon will be stopped");const t=localStorage.getItem("zelidauth");p.Z.stopDaemon(t).then((t=>{"error"===t.data.status?this.showToast("danger",t.data.data.message||t.data.data):this.showToast("success",t.data.data.message||t.data.data)})).catch((t=>{console.log(t),this.showToast("danger","Error while trying to stop Daemon")}))},restartDaemon(){this.showToast("warning","Daemon will now restart");const t=localStorage.getItem("zelidauth");p.Z.restart(t).then((t=>{"error"===t.data.status?this.showToast("danger",t.data.data.message||t.data.data):this.showToast("success",t.data.data.message||t.data.data)})).catch((t=>{console.log(t),this.showToast("danger","Error while trying to restart Daemon")}))},rescanDaemon(){this.showToast("warning","Daemon will now rescan. This will take up to an hour.");const t=localStorage.getItem("zelidauth"),e=this.rescanDaemonHeight>0?this.rescanDaemonHeight:0;p.Z.rescanDaemon(t,e).then((t=>{"error"===t.data.status?this.showToast("danger",t.data.data.message||t.data.data):this.showToast("success",t.data.data.message||t.data.data)})).catch((t=>{console.log(t),this.showToast("danger","Error while trying to rescan Daemon")}))},reindexDaemon(){this.showToast("warning","Daemon will now reindex. This will take several hours.");const t=localStorage.getItem("zelidauth");f.Z.reindexDaemon(t).then((t=>{"error"===t.data.status?this.showToast("danger",t.data.data.message||t.data.data):this.showToast("success",t.data.data.message||t.data.data)})).catch((t=>{console.log(t),this.showToast("danger","Error while trying to reindex Daemon")}))},showToast(t,e,a="InfoIcon"){this.$toast({component:c.Z,props:{title:e,icon:a,variant:t}})}}},v=x;var w=a(1001),Z=(0,w.Z)(v,n,r,!1,null,null,null);const D=Z.exports},27616:(t,e,a)=>{a.d(e,{Z:()=>r});var n=a(80914);const r={help(){return(0,n.Z)().get("/daemon/help")},helpSpecific(t){return(0,n.Z)().get(`/daemon/help/${t}`)},getInfo(){return(0,n.Z)().get("/daemon/getinfo")},getFluxNodeStatus(){return(0,n.Z)().get("/daemon/getzelnodestatus")},getRawTransaction(t,e){return(0,n.Z)().get(`/daemon/getrawtransaction/${t}/${e}`)},listFluxNodes(){return(0,n.Z)().get("/daemon/listzelnodes")},viewDeterministicFluxNodeList(){return(0,n.Z)().get("/daemon/viewdeterministiczelnodelist")},getFluxNodeCount(){return(0,n.Z)().get("/daemon/getzelnodecount")},getStartList(){return(0,n.Z)().get("/daemon/getstartlist")},getDOSList(){return(0,n.Z)().get("/daemon/getdoslist")},fluxCurrentWinner(){return(0,n.Z)().get("/daemon/fluxcurrentwinner")},getBenchmarks(){return(0,n.Z)().get("/daemon/getbenchmarks")},getBenchStatus(){return(0,n.Z)().get("/daemon/getbenchstatus")},startBenchmark(t){return(0,n.Z)().get("/daemon/startbenchmark",{headers:{zelidauth:t}})},stopBenchmark(t){return(0,n.Z)().get("/daemon/stopbenchmark",{headers:{zelidauth:t}})},getBlockCount(){return(0,n.Z)().get("/daemon/getBlockCount")},getBlockchainInfo(){return(0,n.Z)().get("/daemon/getblockchaininfo")},getMiningInfo(){return(0,n.Z)().get("/daemon/getmininginfo")},getNetworkInfo(){return(0,n.Z)().get("/daemon/getnetworkinfo")},validateAddress(t,e){return(0,n.Z)().get(`/daemon/validateaddress/${e}`,{headers:{zelidauth:t}})},getWalletInfo(t){return(0,n.Z)().get("/daemon/getwalletinfo",{headers:{zelidauth:t}})},listFluxNodeConf(t){return(0,n.Z)().get("/daemon/listzelnodeconf",{headers:{zelidauth:t}})},start(t){return(0,n.Z)().get("/daemon/start",{headers:{zelidauth:t}})},restart(t){return(0,n.Z)().get("/daemon/restart",{headers:{zelidauth:t}})},stopDaemon(t){return(0,n.Z)().get("/daemon/stop",{headers:{zelidauth:t}})},rescanDaemon(t,e){return(0,n.Z)().get(`/daemon/rescanblockchain/${e}`,{headers:{zelidauth:t}})},getBlock(t,e){return(0,n.Z)().get(`/daemon/getblock/${t}/${e}`)},tailDaemonDebug(t){return(0,n.Z)().get("/flux/taildaemondebug",{headers:{zelidauth:t}})},justAPI(){return(0,n.Z)()},cancelToken(){return n.S}}},39055:(t,e,a)=>{a.d(e,{Z:()=>r});var n=a(80914);const r={softUpdateFlux(t){return(0,n.Z)().get("/flux/softupdateflux",{headers:{zelidauth:t}})},softUpdateInstallFlux(t){return(0,n.Z)().get("/flux/softupdatefluxinstall",{headers:{zelidauth:t}})},updateFlux(t){return(0,n.Z)().get("/flux/updateflux",{headers:{zelidauth:t}})},hardUpdateFlux(t){return(0,n.Z)().get("/flux/hardupdateflux",{headers:{zelidauth:t}})},rebuildHome(t){return(0,n.Z)().get("/flux/rebuildhome",{headers:{zelidauth:t}})},updateDaemon(t){return(0,n.Z)().get("/flux/updatedaemon",{headers:{zelidauth:t}})},reindexDaemon(t){return(0,n.Z)().get("/flux/reindexdaemon",{headers:{zelidauth:t}})},updateBenchmark(t){return(0,n.Z)().get("/flux/updatebenchmark",{headers:{zelidauth:t}})},getFluxVersion(){return(0,n.Z)().get("/flux/version")},broadcastMessage(t,e){const a=e,r={headers:{zelidauth:t}};return(0,n.Z)().post("/flux/broadcastmessage",JSON.stringify(a),r)},connectedPeers(){return(0,n.Z)().get(`/flux/connectedpeers?timestamp=${Date.now()}`)},connectedPeersInfo(){return(0,n.Z)().get(`/flux/connectedpeersinfo?timestamp=${Date.now()}`)},incomingConnections(){return(0,n.Z)().get(`/flux/incomingconnections?timestamp=${Date.now()}`)},incomingConnectionsInfo(){return(0,n.Z)().get(`/flux/incomingconnectionsinfo?timestamp=${Date.now()}`)},addPeer(t,e){return(0,n.Z)().get(`/flux/addpeer/${e}`,{headers:{zelidauth:t}})},removePeer(t,e){return(0,n.Z)().get(`/flux/removepeer/${e}`,{headers:{zelidauth:t}})},removeIncomingPeer(t,e){return(0,n.Z)().get(`/flux/removeincomingpeer/${e}`,{headers:{zelidauth:t}})},adjustKadena(t,e,a){return(0,n.Z)().get(`/flux/adjustkadena/${e}/${a}`,{headers:{zelidauth:t}})},adjustRouterIP(t,e){return(0,n.Z)().get(`/flux/adjustrouterip/${e}`,{headers:{zelidauth:t}})},adjustBlockedPorts(t,e){const a={blockedPorts:e},r={headers:{zelidauth:t}};return(0,n.Z)().post("/flux/adjustblockedports",a,r)},adjustAPIPort(t,e){return(0,n.Z)().get(`/flux/adjustapiport/${e}`,{headers:{zelidauth:t}})},adjustBlockedRepositories(t,e){const a={blockedRepositories:e},r={headers:{zelidauth:t}};return(0,n.Z)().post("/flux/adjustblockedrepositories",a,r)},getKadenaAccount(){const t={headers:{"x-apicache-bypass":!0}};return(0,n.Z)().get("/flux/kadena",t)},getRouterIP(){const t={headers:{"x-apicache-bypass":!0}};return(0,n.Z)().get("/flux/routerip",t)},getBlockedPorts(){const t={headers:{"x-apicache-bypass":!0}};return(0,n.Z)().get("/flux/blockedports",t)},getAPIPort(){const t={headers:{"x-apicache-bypass":!0}};return(0,n.Z)().get("/flux/apiport",t)},getBlockedRepositories(){const t={headers:{"x-apicache-bypass":!0}};return(0,n.Z)().get("/flux/blockedrepositories",t)},getMarketPlaceURL(){return(0,n.Z)().get("/flux/marketplaceurl")},getZelid(){const t={headers:{"x-apicache-bypass":!0}};return(0,n.Z)().get("/flux/zelid",t)},getStaticIpInfo(){return(0,n.Z)().get("/flux/staticip")},restartFluxOS(t){const e={headers:{zelidauth:t,"x-apicache-bypass":!0}};return(0,n.Z)().get("/flux/restart",e)},tailFluxLog(t,e){return(0,n.Z)().get(`/flux/tail${t}log`,{headers:{zelidauth:e}})},justAPI(){return(0,n.Z)()},cancelToken(){return n.S}}}}]); \ No newline at end of file diff --git a/HomeUI/dist/js/6518.js b/HomeUI/dist/js/6518.js index 8b028b3aa..9832336e0 100644 --- a/HomeUI/dist/js/6518.js +++ b/HomeUI/dist/js/6518.js @@ -1 +1 @@ -"use strict";(globalThis["webpackChunkflux"]=globalThis["webpackChunkflux"]||[]).push([[6518],{34547:(t,e,a)=>{a.d(e,{Z:()=>p});var r=function(){var t=this,e=t._self._c;return e("div",{staticClass:"toastification"},[e("div",{staticClass:"d-flex align-items-start"},[e("b-avatar",{staticClass:"mr-75 flex-shrink-0",attrs:{variant:t.variant,size:"1.8rem"}},[e("feather-icon",{attrs:{icon:t.icon,size:"15"}})],1),e("div",{staticClass:"d-flex flex-grow-1"},[e("div",[t.title?e("h5",{staticClass:"mb-0 font-weight-bolder toastification-title",class:`text-${t.variant}`,domProps:{textContent:t._s(t.title)}}):t._e(),t.text?e("small",{staticClass:"d-inline-block text-body",domProps:{textContent:t._s(t.text)}}):t._e()]),e("span",{staticClass:"cursor-pointer toastification-close-icon ml-auto",on:{click:function(e){return t.$emit("close-toast")}}},[t.hideClose?t._e():e("feather-icon",{staticClass:"text-body",attrs:{icon:"XIcon"}})],1)])],1)])},n=[],o=a(47389);const s={components:{BAvatar:o.SH},props:{variant:{type:String,default:"primary"},icon:{type:String,default:null},title:{type:String,default:null},text:{type:String,default:null},hideClose:{type:Boolean,default:!1}}},i=s;var l=a(1001),c=(0,l.Z)(i,r,n,!1,null,"22d964ca",null);const p=c.exports},36518:(t,e,a)=>{a.r(e),a.d(e,{default:()=>g});var r=function(){var t=this,e=t._self._c;return e("b-card",[e("div",[e("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"ml-1",attrs:{id:"stop-benchmark",variant:"outline-primary",size:"md"}},[t._v(" Stop Benchmark ")]),e("b-popover",{ref:"popover",attrs:{target:"stop-benchmark",triggers:"click",show:t.popoverShow,placement:"auto",container:"my-container"},on:{"update:show":function(e){t.popoverShow=e}},scopedSlots:t._u([{key:"title",fn:function(){return[e("div",{staticClass:"d-flex justify-content-between align-items-center"},[e("span",[t._v("Are You Sure?")]),e("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"close",attrs:{variant:"transparent","aria-label":"Close"},on:{click:t.onClose}},[e("span",{staticClass:"d-inline-block text-white",attrs:{"aria-hidden":"true"}},[t._v("×")])])],1)]},proxy:!0}])},[e("div",[e("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"mr-1",attrs:{size:"sm",variant:"danger"},on:{click:t.onClose}},[t._v(" Cancel ")]),e("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],attrs:{size:"sm",variant:"primary"},on:{click:t.onOk}},[t._v(" Stop Benchmark ")])],1)]),e("b-modal",{attrs:{id:"modal-center",centered:"",title:"Benchmark Stop","ok-only":"","ok-title":"OK"},model:{value:t.modalShow,callback:function(e){t.modalShow=e},expression:"modalShow"}},[e("b-card-text",[t._v(" The benchmark will now stop. ")])],1)],1)])},n=[],o=a(86855),s=a(15193),i=a(53862),l=a(31220),c=a(64206),p=a(34547),d=a(20266),u=a(39569);const h={components:{BCard:o._,BButton:s.T,BPopover:i.x,BModal:l.N,BCardText:c.j,ToastificationContent:p.Z},directives:{Ripple:d.Z},data(){return{popoverShow:!1,modalShow:!1}},methods:{onClose(){this.popoverShow=!1},onOk(){this.popoverShow=!1,this.modalShow=!0;const t=localStorage.getItem("zelidauth");u.Z.stop(t).then((t=>{this.$toast({component:p.Z,props:{title:t.data.data.message||t.data.data,icon:"InfoIcon",variant:"success"}})})).catch((()=>{this.$toast({component:p.Z,props:{title:"Error while trying to stop Benchmark",icon:"InfoIcon",variant:"danger"}})}))}}},m=h;var v=a(1001),b=(0,v.Z)(m,r,n,!1,null,null,null);const g=b.exports},39569:(t,e,a)=>{a.d(e,{Z:()=>n});var r=a(80914);const n={start(t){return(0,r.Z)().get("/benchmark/start",{headers:{zelidauth:t}})},restart(t){return(0,r.Z)().get("/benchmark/restart",{headers:{zelidauth:t}})},getStatus(){return(0,r.Z)().get("/benchmark/getstatus")},restartNodeBenchmarks(t){return(0,r.Z)().get("/benchmark/restartnodebenchmarks",{headers:{zelidauth:t}})},signFluxTransaction(t,e){return(0,r.Z)().get(`/benchmark/signzelnodetransaction/${e}`,{headers:{zelidauth:t}})},helpSpecific(t){return(0,r.Z)().get(`/benchmark/help/${t}`)},help(){return(0,r.Z)().get("/benchmark/help")},stop(t){return(0,r.Z)().get("/benchmark/stop",{headers:{zelidauth:t}})},getBenchmarks(){return(0,r.Z)().get("/benchmark/getbenchmarks")},getInfo(){return(0,r.Z)().get("/benchmark/getinfo")},tailBenchmarkDebug(t){return(0,r.Z)().get("/flux/tailbenchmarkdebug",{headers:{zelidauth:t}})},justAPI(){return(0,r.Z)()},cancelToken(){return r.S}}}}]); \ No newline at end of file +"use strict";(self["webpackChunkflux"]=self["webpackChunkflux"]||[]).push([[6518],{34547:(t,e,a)=>{a.d(e,{Z:()=>p});var r=function(){var t=this,e=t._self._c;return e("div",{staticClass:"toastification"},[e("div",{staticClass:"d-flex align-items-start"},[e("b-avatar",{staticClass:"mr-75 flex-shrink-0",attrs:{variant:t.variant,size:"1.8rem"}},[e("feather-icon",{attrs:{icon:t.icon,size:"15"}})],1),e("div",{staticClass:"d-flex flex-grow-1"},[e("div",[t.title?e("h5",{staticClass:"mb-0 font-weight-bolder toastification-title",class:`text-${t.variant}`,domProps:{textContent:t._s(t.title)}}):t._e(),t.text?e("small",{staticClass:"d-inline-block text-body",domProps:{textContent:t._s(t.text)}}):t._e()]),e("span",{staticClass:"cursor-pointer toastification-close-icon ml-auto",on:{click:function(e){return t.$emit("close-toast")}}},[t.hideClose?t._e():e("feather-icon",{staticClass:"text-body",attrs:{icon:"XIcon"}})],1)])],1)])},n=[],s=a(47389);const o={components:{BAvatar:s.SH},props:{variant:{type:String,default:"primary"},icon:{type:String,default:null},title:{type:String,default:null},text:{type:String,default:null},hideClose:{type:Boolean,default:!1}}},i=o;var l=a(1001),c=(0,l.Z)(i,r,n,!1,null,"22d964ca",null);const p=c.exports},36518:(t,e,a)=>{a.r(e),a.d(e,{default:()=>g});var r=function(){var t=this,e=t._self._c;return e("b-card",[e("div",[e("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"ml-1",attrs:{id:"stop-benchmark",variant:"outline-primary",size:"md"}},[t._v(" Stop Benchmark ")]),e("b-popover",{ref:"popover",attrs:{target:"stop-benchmark",triggers:"click",show:t.popoverShow,placement:"auto",container:"my-container"},on:{"update:show":function(e){t.popoverShow=e}},scopedSlots:t._u([{key:"title",fn:function(){return[e("div",{staticClass:"d-flex justify-content-between align-items-center"},[e("span",[t._v("Are You Sure?")]),e("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"close",attrs:{variant:"transparent","aria-label":"Close"},on:{click:t.onClose}},[e("span",{staticClass:"d-inline-block text-white",attrs:{"aria-hidden":"true"}},[t._v("×")])])],1)]},proxy:!0}])},[e("div",[e("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"mr-1",attrs:{size:"sm",variant:"danger"},on:{click:t.onClose}},[t._v(" Cancel ")]),e("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],attrs:{size:"sm",variant:"primary"},on:{click:t.onOk}},[t._v(" Stop Benchmark ")])],1)]),e("b-modal",{attrs:{id:"modal-center",centered:"",title:"Benchmark Stop","ok-only":"","ok-title":"OK"},model:{value:t.modalShow,callback:function(e){t.modalShow=e},expression:"modalShow"}},[e("b-card-text",[t._v(" The benchmark will now stop. ")])],1)],1)])},n=[],s=a(86855),o=a(15193),i=a(53862),l=a(31220),c=a(64206),p=a(34547),d=a(20266),u=a(39569);const h={components:{BCard:s._,BButton:o.T,BPopover:i.x,BModal:l.N,BCardText:c.j,ToastificationContent:p.Z},directives:{Ripple:d.Z},data(){return{popoverShow:!1,modalShow:!1}},methods:{onClose(){this.popoverShow=!1},onOk(){this.popoverShow=!1,this.modalShow=!0;const t=localStorage.getItem("zelidauth");u.Z.stop(t).then((t=>{this.$toast({component:p.Z,props:{title:t.data.data.message||t.data.data,icon:"InfoIcon",variant:"success"}})})).catch((()=>{this.$toast({component:p.Z,props:{title:"Error while trying to stop Benchmark",icon:"InfoIcon",variant:"danger"}})}))}}},m=h;var v=a(1001),b=(0,v.Z)(m,r,n,!1,null,null,null);const g=b.exports},39569:(t,e,a)=>{a.d(e,{Z:()=>n});var r=a(80914);const n={start(t){return(0,r.Z)().get("/benchmark/start",{headers:{zelidauth:t}})},restart(t){return(0,r.Z)().get("/benchmark/restart",{headers:{zelidauth:t}})},getStatus(){return(0,r.Z)().get("/benchmark/getstatus")},restartNodeBenchmarks(t){return(0,r.Z)().get("/benchmark/restartnodebenchmarks",{headers:{zelidauth:t}})},signFluxTransaction(t,e){return(0,r.Z)().get(`/benchmark/signzelnodetransaction/${e}`,{headers:{zelidauth:t}})},helpSpecific(t){return(0,r.Z)().get(`/benchmark/help/${t}`)},help(){return(0,r.Z)().get("/benchmark/help")},stop(t){return(0,r.Z)().get("/benchmark/stop",{headers:{zelidauth:t}})},getBenchmarks(){return(0,r.Z)().get("/benchmark/getbenchmarks")},getInfo(){return(0,r.Z)().get("/benchmark/getinfo")},tailBenchmarkDebug(t){return(0,r.Z)().get("/flux/tailbenchmarkdebug",{headers:{zelidauth:t}})},justAPI(){return(0,r.Z)()},cancelToken(){return r.S}}}}]); \ No newline at end of file diff --git a/HomeUI/dist/js/6626.js b/HomeUI/dist/js/6626.js index 3545dbb78..b5acaf507 100644 --- a/HomeUI/dist/js/6626.js +++ b/HomeUI/dist/js/6626.js @@ -1 +1 @@ -"use strict";(globalThis["webpackChunkflux"]=globalThis["webpackChunkflux"]||[]).push([[6626],{34547:(t,e,n)=>{n.d(e,{Z:()=>u});var a=function(){var t=this,e=t._self._c;return e("div",{staticClass:"toastification"},[e("div",{staticClass:"d-flex align-items-start"},[e("b-avatar",{staticClass:"mr-75 flex-shrink-0",attrs:{variant:t.variant,size:"1.8rem"}},[e("feather-icon",{attrs:{icon:t.icon,size:"15"}})],1),e("div",{staticClass:"d-flex flex-grow-1"},[e("div",[t.title?e("h5",{staticClass:"mb-0 font-weight-bolder toastification-title",class:`text-${t.variant}`,domProps:{textContent:t._s(t.title)}}):t._e(),t.text?e("small",{staticClass:"d-inline-block text-body",domProps:{textContent:t._s(t.text)}}):t._e()]),e("span",{staticClass:"cursor-pointer toastification-close-icon ml-auto",on:{click:function(e){return t.$emit("close-toast")}}},[t.hideClose?t._e():e("feather-icon",{staticClass:"text-body",attrs:{icon:"XIcon"}})],1)])],1)])},r=[],o=n(47389);const i={components:{BAvatar:o.SH},props:{variant:{type:String,default:"primary"},icon:{type:String,default:null},title:{type:String,default:null},text:{type:String,default:null},hideClose:{type:Boolean,default:!1}}},s=i;var l=n(1001),c=(0,l.Z)(s,a,r,!1,null,"22d964ca",null);const u=c.exports},90410:(t,e,n)=>{n.d(e,{Z:()=>v});var a=function(){var t=this,e=t._self._c;return e("b-input-group",[e("b-input-group-prepend",[e("b-button",{staticClass:"py-0",attrs:{variant:"outline-dark",size:"sm"},on:{click:function(e){return t.valueChange(t.value-1)}}},[e("b-icon",{attrs:{icon:"dash","font-scale":"1.6"}})],1)],1),e("b-form-input",{staticClass:"border-secondary text-center",attrs:{id:t.id,size:t.size,value:t.value,type:"number",min:"0",number:""},on:{update:t.valueChange}}),e("b-input-group-append",[e("b-button",{staticClass:"py-0",attrs:{variant:"outline-dark",size:"sm"},on:{click:function(e){return t.valueChange(t.value+1)}}},[e("b-icon",{attrs:{icon:"plus","font-scale":"1.6"}})],1)],1)],1)},r=[],o=n(43022),i=n(15193),s=n(22183),l=n(72466),c=n(4060),u=n(27754),d=n(22418);const p={name:"InputSpinButton",components:{BIcon:o.H,BButton:i.T,BFormInput:s.e,BIconDash:l.Loc,BIconPlus:l.s3j,BInputGroup:c.w,BInputGroupPrepend:u.P,BInputGroupAppend:d.B},props:{id:{type:String,required:!0},size:{type:String,required:!1,default:"md",validator(t){return["sm","md","lg"].includes(t)}},value:{type:Number,required:!0}},methods:{valueChange(t){t<=0?this.$emit("input",0):this.$emit("input",t)}}},m=p;var g=n(1001),h=(0,g.Z)(m,a,r,!1,null,"2f5aba03",null);const v=h.exports},86626:(t,e,n)=>{n.r(e),n.d(e,{default:()=>f});var a=function(){var t=this,e=t._self._c;return e("b-card",[e("div",[e("label",{staticClass:"mr-1",attrs:{for:"sb-inline"}},[t._v("Block Height")]),e("input-spin-button",{attrs:{id:"sb-inline","repeat-step-multiplier":"100",inline:""},model:{value:t.rescanDaemonHeight,callback:function(e){t.rescanDaemonHeight=e},expression:"rescanDaemonHeight"}}),e("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"ml-1 mt-1",attrs:{id:"rescan-daemon",disabled:0===t.blockHeight,variant:"outline-primary",size:"md"}},[t._v(" Rescan Daemon ")]),e("b-popover",{ref:"popover",attrs:{target:"rescan-daemon",triggers:"click",show:t.popoverShow,placement:"auto",container:"my-container"},on:{"update:show":function(e){t.popoverShow=e}},scopedSlots:t._u([{key:"title",fn:function(){return[e("div",{staticClass:"d-flex justify-content-between align-items-center"},[e("span",[t._v("Are You Sure?")]),e("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"close",attrs:{variant:"transparent","aria-label":"Close"},on:{click:t.onClose}},[e("span",{staticClass:"d-inline-block text-white",attrs:{"aria-hidden":"true"}},[t._v("×")])])],1)]},proxy:!0}])},[e("div",[e("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"mr-1",attrs:{size:"sm",variant:"danger"},on:{click:t.onClose}},[t._v(" Cancel ")]),e("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],attrs:{size:"sm",variant:"primary"},on:{click:t.onOk}},[t._v(" Rescan Blockchain ")])],1)]),e("b-modal",{attrs:{id:"modal-center",centered:"",title:"Blockchain Rescanning","ok-only":"","ok-title":"OK"},model:{value:t.modalShow,callback:function(e){t.modalShow=e},expression:"modalShow"}},[e("b-card-text",[t._v(" The daemon will now start rescanning the blockchain. This will take up to an hour. ")])],1)],1)])},r=[],o=n(86855),i=n(15193),s=n(53862),l=n(31220),c=n(64206),u=n(34547),d=n(20266),p=n(27616),m=n(90410);const g={components:{BCard:o._,BButton:i.T,BPopover:s.x,BModal:l.N,BCardText:c.j,InputSpinButton:m.Z,ToastificationContent:u.Z},directives:{Ripple:d.Z},data(){return{blockHeight:0,rescanDaemonHeight:0,popoverShow:!1,modalShow:!1}},mounted(){this.daemonGetInfo()},methods:{async daemonGetInfo(){const t=await p.Z.getInfo();"error"===t.data.status?this.$toast({component:u.Z,props:{title:t.data.data.message||t.data.data,icon:"InfoIcon",variant:"danger"}}):this.blockHeight=t.data.data.blocks},onClose(){this.popoverShow=!1},onOk(){this.popoverShow=!1,this.modalShow=!0;const t=localStorage.getItem("zelidauth"),e=this.rescanDaemonHeight>0?this.rescanDaemonHeight:0;p.Z.rescanDaemon(t,e).then((t=>{this.$toast({component:u.Z,props:{title:t.data.data.message||t.data.data,icon:"InfoIcon",variant:"success"}})})).catch((()=>{this.$toast({component:u.Z,props:{title:"Error while trying to rescan Daemon",icon:"InfoIcon",variant:"danger"}})}))}}},h=g;var v=n(1001),b=(0,v.Z)(h,a,r,!1,null,null,null);const f=b.exports},27616:(t,e,n)=>{n.d(e,{Z:()=>r});var a=n(80914);const r={help(){return(0,a.Z)().get("/daemon/help")},helpSpecific(t){return(0,a.Z)().get(`/daemon/help/${t}`)},getInfo(){return(0,a.Z)().get("/daemon/getinfo")},getFluxNodeStatus(){return(0,a.Z)().get("/daemon/getzelnodestatus")},getRawTransaction(t,e){return(0,a.Z)().get(`/daemon/getrawtransaction/${t}/${e}`)},listFluxNodes(){return(0,a.Z)().get("/daemon/listzelnodes")},viewDeterministicFluxNodeList(){return(0,a.Z)().get("/daemon/viewdeterministiczelnodelist")},getFluxNodeCount(){return(0,a.Z)().get("/daemon/getzelnodecount")},getStartList(){return(0,a.Z)().get("/daemon/getstartlist")},getDOSList(){return(0,a.Z)().get("/daemon/getdoslist")},fluxCurrentWinner(){return(0,a.Z)().get("/daemon/fluxcurrentwinner")},getBenchmarks(){return(0,a.Z)().get("/daemon/getbenchmarks")},getBenchStatus(){return(0,a.Z)().get("/daemon/getbenchstatus")},startBenchmark(t){return(0,a.Z)().get("/daemon/startbenchmark",{headers:{zelidauth:t}})},stopBenchmark(t){return(0,a.Z)().get("/daemon/stopbenchmark",{headers:{zelidauth:t}})},getBlockCount(){return(0,a.Z)().get("/daemon/getBlockCount")},getBlockchainInfo(){return(0,a.Z)().get("/daemon/getblockchaininfo")},getMiningInfo(){return(0,a.Z)().get("/daemon/getmininginfo")},getNetworkInfo(){return(0,a.Z)().get("/daemon/getnetworkinfo")},validateAddress(t,e){return(0,a.Z)().get(`/daemon/validateaddress/${e}`,{headers:{zelidauth:t}})},getWalletInfo(t){return(0,a.Z)().get("/daemon/getwalletinfo",{headers:{zelidauth:t}})},listFluxNodeConf(t){return(0,a.Z)().get("/daemon/listzelnodeconf",{headers:{zelidauth:t}})},start(t){return(0,a.Z)().get("/daemon/start",{headers:{zelidauth:t}})},restart(t){return(0,a.Z)().get("/daemon/restart",{headers:{zelidauth:t}})},stopDaemon(t){return(0,a.Z)().get("/daemon/stop",{headers:{zelidauth:t}})},rescanDaemon(t,e){return(0,a.Z)().get(`/daemon/rescanblockchain/${e}`,{headers:{zelidauth:t}})},getBlock(t,e){return(0,a.Z)().get(`/daemon/getblock/${t}/${e}`)},tailDaemonDebug(t){return(0,a.Z)().get("/flux/taildaemondebug",{headers:{zelidauth:t}})},justAPI(){return(0,a.Z)()},cancelToken(){return a.S}}}}]); \ No newline at end of file +"use strict";(self["webpackChunkflux"]=self["webpackChunkflux"]||[]).push([[6626],{34547:(e,t,n)=>{n.d(t,{Z:()=>u});var a=function(){var e=this,t=e._self._c;return t("div",{staticClass:"toastification"},[t("div",{staticClass:"d-flex align-items-start"},[t("b-avatar",{staticClass:"mr-75 flex-shrink-0",attrs:{variant:e.variant,size:"1.8rem"}},[t("feather-icon",{attrs:{icon:e.icon,size:"15"}})],1),t("div",{staticClass:"d-flex flex-grow-1"},[t("div",[e.title?t("h5",{staticClass:"mb-0 font-weight-bolder toastification-title",class:`text-${e.variant}`,domProps:{textContent:e._s(e.title)}}):e._e(),e.text?t("small",{staticClass:"d-inline-block text-body",domProps:{textContent:e._s(e.text)}}):e._e()]),t("span",{staticClass:"cursor-pointer toastification-close-icon ml-auto",on:{click:function(t){return e.$emit("close-toast")}}},[e.hideClose?e._e():t("feather-icon",{staticClass:"text-body",attrs:{icon:"XIcon"}})],1)])],1)])},r=[],o=n(47389);const i={components:{BAvatar:o.SH},props:{variant:{type:String,default:"primary"},icon:{type:String,default:null},title:{type:String,default:null},text:{type:String,default:null},hideClose:{type:Boolean,default:!1}}},s=i;var l=n(1001),c=(0,l.Z)(s,a,r,!1,null,"22d964ca",null);const u=c.exports},90410:(e,t,n)=>{n.d(t,{Z:()=>v});var a=function(){var e=this,t=e._self._c;return t("b-input-group",[t("b-input-group-prepend",[t("b-button",{staticClass:"py-0",attrs:{variant:"outline-dark",size:"sm"},on:{click:function(t){return e.valueChange(e.value-1)}}},[t("b-icon",{attrs:{icon:"dash","font-scale":"1.6"}})],1)],1),t("b-form-input",{staticClass:"border-secondary text-center",attrs:{id:e.id,size:e.size,value:e.value,type:"number",min:"0",number:""},on:{update:e.valueChange}}),t("b-input-group-append",[t("b-button",{staticClass:"py-0",attrs:{variant:"outline-dark",size:"sm"},on:{click:function(t){return e.valueChange(e.value+1)}}},[t("b-icon",{attrs:{icon:"plus","font-scale":"1.6"}})],1)],1)],1)},r=[],o=n(43022),i=n(15193),s=n(22183),l=n(72466),c=n(4060),u=n(27754),d=n(22418);const p={name:"InputSpinButton",components:{BIcon:o.H,BButton:i.T,BFormInput:s.e,BIconDash:l.Loc,BIconPlus:l.s3j,BInputGroup:c.w,BInputGroupPrepend:u.P,BInputGroupAppend:d.B},props:{id:{type:String,required:!0},size:{type:String,required:!1,default:"md",validator(e){return["sm","md","lg"].includes(e)}},value:{type:Number,required:!0}},methods:{valueChange(e){e<=0?this.$emit("input",0):this.$emit("input",e)}}},m=p;var g=n(1001),h=(0,g.Z)(m,a,r,!1,null,"2f5aba03",null);const v=h.exports},86626:(e,t,n)=>{n.r(t),n.d(t,{default:()=>b});var a=function(){var e=this,t=e._self._c;return t("b-card",[t("div",[t("label",{staticClass:"mr-1",attrs:{for:"sb-inline"}},[e._v("Block Height")]),t("input-spin-button",{attrs:{id:"sb-inline","repeat-step-multiplier":"100",inline:""},model:{value:e.rescanDaemonHeight,callback:function(t){e.rescanDaemonHeight=t},expression:"rescanDaemonHeight"}}),t("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"ml-1 mt-1",attrs:{id:"rescan-daemon",disabled:0===e.blockHeight,variant:"outline-primary",size:"md"}},[e._v(" Rescan Daemon ")]),t("b-popover",{ref:"popover",attrs:{target:"rescan-daemon",triggers:"click",show:e.popoverShow,placement:"auto",container:"my-container"},on:{"update:show":function(t){e.popoverShow=t}},scopedSlots:e._u([{key:"title",fn:function(){return[t("div",{staticClass:"d-flex justify-content-between align-items-center"},[t("span",[e._v("Are You Sure?")]),t("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"close",attrs:{variant:"transparent","aria-label":"Close"},on:{click:e.onClose}},[t("span",{staticClass:"d-inline-block text-white",attrs:{"aria-hidden":"true"}},[e._v("×")])])],1)]},proxy:!0}])},[t("div",[t("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"mr-1",attrs:{size:"sm",variant:"danger"},on:{click:e.onClose}},[e._v(" Cancel ")]),t("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],attrs:{size:"sm",variant:"primary"},on:{click:e.onOk}},[e._v(" Rescan Blockchain ")])],1)]),t("b-modal",{attrs:{id:"modal-center",centered:"",title:"Blockchain Rescanning","ok-only":"","ok-title":"OK"},model:{value:e.modalShow,callback:function(t){e.modalShow=t},expression:"modalShow"}},[t("b-card-text",[e._v(" The daemon will now start rescanning the blockchain. This will take up to an hour. ")])],1)],1)])},r=[],o=n(86855),i=n(15193),s=n(53862),l=n(31220),c=n(64206),u=n(34547),d=n(20266),p=n(27616),m=n(90410);const g={components:{BCard:o._,BButton:i.T,BPopover:s.x,BModal:l.N,BCardText:c.j,InputSpinButton:m.Z,ToastificationContent:u.Z},directives:{Ripple:d.Z},data(){return{blockHeight:0,rescanDaemonHeight:0,popoverShow:!1,modalShow:!1}},mounted(){this.daemonGetInfo()},methods:{async daemonGetInfo(){const e=await p.Z.getInfo();"error"===e.data.status?this.$toast({component:u.Z,props:{title:e.data.data.message||e.data.data,icon:"InfoIcon",variant:"danger"}}):this.blockHeight=e.data.data.blocks},onClose(){this.popoverShow=!1},onOk(){this.popoverShow=!1,this.modalShow=!0;const e=localStorage.getItem("zelidauth"),t=this.rescanDaemonHeight>0?this.rescanDaemonHeight:0;p.Z.rescanDaemon(e,t).then((e=>{this.$toast({component:u.Z,props:{title:e.data.data.message||e.data.data,icon:"InfoIcon",variant:"success"}})})).catch((()=>{this.$toast({component:u.Z,props:{title:"Error while trying to rescan Daemon",icon:"InfoIcon",variant:"danger"}})}))}}},h=g;var v=n(1001),f=(0,v.Z)(h,a,r,!1,null,null,null);const b=f.exports},27616:(e,t,n)=>{n.d(t,{Z:()=>r});var a=n(80914);const r={help(){return(0,a.Z)().get("/daemon/help")},helpSpecific(e){return(0,a.Z)().get(`/daemon/help/${e}`)},getInfo(){return(0,a.Z)().get("/daemon/getinfo")},getFluxNodeStatus(){return(0,a.Z)().get("/daemon/getzelnodestatus")},getRawTransaction(e,t){return(0,a.Z)().get(`/daemon/getrawtransaction/${e}/${t}`)},listFluxNodes(){return(0,a.Z)().get("/daemon/listzelnodes")},viewDeterministicFluxNodeList(){return(0,a.Z)().get("/daemon/viewdeterministiczelnodelist")},getFluxNodeCount(){return(0,a.Z)().get("/daemon/getzelnodecount")},getStartList(){return(0,a.Z)().get("/daemon/getstartlist")},getDOSList(){return(0,a.Z)().get("/daemon/getdoslist")},fluxCurrentWinner(){return(0,a.Z)().get("/daemon/fluxcurrentwinner")},getBenchmarks(){return(0,a.Z)().get("/daemon/getbenchmarks")},getBenchStatus(){return(0,a.Z)().get("/daemon/getbenchstatus")},startBenchmark(e){return(0,a.Z)().get("/daemon/startbenchmark",{headers:{zelidauth:e}})},stopBenchmark(e){return(0,a.Z)().get("/daemon/stopbenchmark",{headers:{zelidauth:e}})},getBlockCount(){return(0,a.Z)().get("/daemon/getBlockCount")},getBlockchainInfo(){return(0,a.Z)().get("/daemon/getblockchaininfo")},getMiningInfo(){return(0,a.Z)().get("/daemon/getmininginfo")},getNetworkInfo(){return(0,a.Z)().get("/daemon/getnetworkinfo")},validateAddress(e,t){return(0,a.Z)().get(`/daemon/validateaddress/${t}`,{headers:{zelidauth:e}})},getWalletInfo(e){return(0,a.Z)().get("/daemon/getwalletinfo",{headers:{zelidauth:e}})},listFluxNodeConf(e){return(0,a.Z)().get("/daemon/listzelnodeconf",{headers:{zelidauth:e}})},start(e){return(0,a.Z)().get("/daemon/start",{headers:{zelidauth:e}})},restart(e){return(0,a.Z)().get("/daemon/restart",{headers:{zelidauth:e}})},stopDaemon(e){return(0,a.Z)().get("/daemon/stop",{headers:{zelidauth:e}})},rescanDaemon(e,t){return(0,a.Z)().get(`/daemon/rescanblockchain/${t}`,{headers:{zelidauth:e}})},getBlock(e,t){return(0,a.Z)().get(`/daemon/getblock/${e}/${t}`)},tailDaemonDebug(e){return(0,a.Z)().get("/flux/taildaemondebug",{headers:{zelidauth:e}})},justAPI(){return(0,a.Z)()},cancelToken(){return a.S}}}}]); \ No newline at end of file diff --git a/HomeUI/dist/js/6666.js b/HomeUI/dist/js/6666.js index 861a0a8b0..8b424d909 100644 --- a/HomeUI/dist/js/6666.js +++ b/HomeUI/dist/js/6666.js @@ -1 +1 @@ -"use strict";(globalThis["webpackChunkflux"]=globalThis["webpackChunkflux"]||[]).push([[6666],{46666:(t,e,r)=>{r.r(e),r.d(e,{default:()=>v});var s=function(){var t=this,e=t._self._c;return e("b-overlay",{attrs:{show:t.fluxListLoading,variant:"transparent",blur:"5px"}},[e("b-card",[e("b-row",[e("b-col",{staticClass:"my-1",attrs:{md:"2"}},[e("b-form-group",{staticClass:"mb-0"},[e("label",{staticClass:"d-inline-block text-left mr-50"},[t._v("Per page")]),e("b-form-select",{attrs:{id:"perPageSelect",size:"sm",options:t.pageOptions},model:{value:t.perPage,callback:function(e){t.perPage=e},expression:"perPage"}})],1)],1),e("b-col",{staticClass:"my-1"},[e("b-form-group",{staticClass:"mb-0",attrs:{"label-for":"filterInput"}},[e("label",{staticClass:"d-inline-block text-left mr-50"},[t._v("Filter")]),e("b-input-group",{attrs:{size:"sm"}},[e("b-form-input",{attrs:{id:"filterInput",type:"search",placeholder:"Type to Search",debounce:"1500"},model:{value:t.filter,callback:function(e){t.filter=e},expression:"filter"}}),e("b-input-group-append",[e("b-button",{attrs:{disabled:!t.filter},on:{click:function(e){t.filter=""}}},[t._v(" Clear ")])],1)],1)],1)],1),e("b-col",{attrs:{cols:"12"}},[e("b-table",{attrs:{striped:"",hover:"",responsive:"","per-page":t.perPage,"current-page":t.currentPage,items:t.items,fields:t.fields,"sort-by":t.sortBy,"sort-desc":t.sortDesc,"sort-direction":t.sortDirection,filter:t.filter,"filter-included-fields":t.filterOn},on:{"update:sortBy":function(e){t.sortBy=e},"update:sort-by":function(e){t.sortBy=e},"update:sortDesc":function(e){t.sortDesc=e},"update:sort-desc":function(e){t.sortDesc=e},filtered:t.onFiltered},scopedSlots:t._u([{key:"cell(lastpaid)",fn:function(e){return[t._v(" "+t._s(new Date(1e3*Number(e.item.lastpaid)).toLocaleString("en-GB",t.timeoptions))+" ")]}}])})],1),e("b-col",{attrs:{cols:"12"}},[e("b-pagination",{staticClass:"my-0",attrs:{"total-rows":t.totalRows,"per-page":t.perPage,align:"center",size:"sm"},model:{value:t.currentPage,callback:function(e){t.currentPage=e},expression:"currentPage"}})],1)],1)],1)],1)},o=[],a=r(86855),l=r(16521),i=r(26253),n=r(50725),c=r(10962),u=r(46709),d=r(8051),p=r(4060),b=r(22183),f=r(22418),m=r(15193),g=r(66126),h=r(51136);const y=r(97218),x={components:{BCard:a._,BTable:l.h,BRow:i.T,BCol:n.l,BPagination:c.c,BFormGroup:u.x,BFormSelect:d.K,BInputGroup:p.w,BFormInput:b.e,BInputGroupAppend:f.B,BButton:m.T,BOverlay:g.X},data(){return{timeoptions:{year:"numeric",month:"short",day:"numeric",hour:"2-digit",minute:"2-digit"},fluxListLoading:!0,perPage:10,pageOptions:[10,25,50,100,1e3],sortBy:"",sortDesc:!1,sortDirection:"asc",items:[],filter:"",filterOn:[],fields:[{key:"ip",label:"IP Address",sortable:!0},{key:"payment_address",label:"Address",sortable:!0},{key:"location.country",label:"Country",sortable:!0,formatter:this.formatTableEntry},{key:"location.org",label:"Provider",sortable:!0,formatter:this.formatTableEntry},{key:"lastpaid",label:"Last Paid",sortable:!0},{key:"tier",label:"Tier",sortable:!0}],totalRows:1,currentPage:1}},computed:{sortOptions(){return this.fields.filter((t=>t.sortable)).map((t=>({text:t.label,value:t.key})))}},mounted(){this.getFluxList()},methods:{formatTableEntry(t){return t||"Unknown"},async getFluxList(){try{this.fluxListLoading=!0;const[t,e]=await Promise.all([y.get("https://stats.runonflux.io/fluxlocations"),h.Z.listFluxNodes()]),r=t.data.data,s=e.data.data,o=r.reduce(((t,e)=>({...t,[e.ip]:e})),{}),a=s.map((t=>({...t,location:o[t.ip.split(":")[0]]}))).filter((t=>t.ip));this.items=a,this.totalRows=this.items.length,this.currentPage=1,this.fluxListLoading=!1,console.log(this.items)}catch(t){console.log(t)}},onFiltered(t){this.totalRows=t.length,this.currentPage=1}}},k=x;var B=r(1001),P=(0,B.Z)(k,s,o,!1,null,null,null);const v=P.exports},51136:(t,e,r)=>{r.d(e,{Z:()=>o});var s=r(80914);const o={listFluxNodes(){return(0,s.Z)().get("/daemon/listzelnodes")},fluxnodeCount(){return(0,s.Z)().get("/daemon/getzelnodecount")},blockReward(){return(0,s.Z)().get("/daemon/getblocksubsidy")}}}}]); \ No newline at end of file +"use strict";(self["webpackChunkflux"]=self["webpackChunkflux"]||[]).push([[6666],{46666:(t,e,r)=>{r.r(e),r.d(e,{default:()=>v});var s=function(){var t=this,e=t._self._c;return e("b-overlay",{attrs:{show:t.fluxListLoading,variant:"transparent",blur:"5px"}},[e("b-card",[e("b-row",[e("b-col",{staticClass:"my-1",attrs:{md:"2"}},[e("b-form-group",{staticClass:"mb-0"},[e("label",{staticClass:"d-inline-block text-left mr-50"},[t._v("Per page")]),e("b-form-select",{attrs:{id:"perPageSelect",size:"sm",options:t.pageOptions},model:{value:t.perPage,callback:function(e){t.perPage=e},expression:"perPage"}})],1)],1),e("b-col",{staticClass:"my-1"},[e("b-form-group",{staticClass:"mb-0",attrs:{"label-for":"filterInput"}},[e("label",{staticClass:"d-inline-block text-left mr-50"},[t._v("Filter")]),e("b-input-group",{attrs:{size:"sm"}},[e("b-form-input",{attrs:{id:"filterInput",type:"search",placeholder:"Type to Search",debounce:"1500"},model:{value:t.filter,callback:function(e){t.filter=e},expression:"filter"}}),e("b-input-group-append",[e("b-button",{attrs:{disabled:!t.filter},on:{click:function(e){t.filter=""}}},[t._v(" Clear ")])],1)],1)],1)],1),e("b-col",{attrs:{cols:"12"}},[e("b-table",{attrs:{striped:"",hover:"",responsive:"","per-page":t.perPage,"current-page":t.currentPage,items:t.items,fields:t.fields,"sort-by":t.sortBy,"sort-desc":t.sortDesc,"sort-direction":t.sortDirection,filter:t.filter,"filter-included-fields":t.filterOn},on:{"update:sortBy":function(e){t.sortBy=e},"update:sort-by":function(e){t.sortBy=e},"update:sortDesc":function(e){t.sortDesc=e},"update:sort-desc":function(e){t.sortDesc=e},filtered:t.onFiltered},scopedSlots:t._u([{key:"cell(lastpaid)",fn:function(e){return[t._v(" "+t._s(new Date(1e3*Number(e.item.lastpaid)).toLocaleString("en-GB",t.timeoptions))+" ")]}}])})],1),e("b-col",{attrs:{cols:"12"}},[e("b-pagination",{staticClass:"my-0",attrs:{"total-rows":t.totalRows,"per-page":t.perPage,align:"center",size:"sm"},model:{value:t.currentPage,callback:function(e){t.currentPage=e},expression:"currentPage"}})],1)],1)],1)],1)},o=[],a=r(86855),l=r(16521),i=r(26253),n=r(50725),c=r(10962),u=r(46709),d=r(8051),p=r(4060),b=r(22183),f=r(22418),m=r(15193),g=r(66126),y=r(51136);const h=r(97218),x={components:{BCard:a._,BTable:l.h,BRow:i.T,BCol:n.l,BPagination:c.c,BFormGroup:u.x,BFormSelect:d.K,BInputGroup:p.w,BFormInput:b.e,BInputGroupAppend:f.B,BButton:m.T,BOverlay:g.X},data(){return{timeoptions:{year:"numeric",month:"short",day:"numeric",hour:"2-digit",minute:"2-digit"},fluxListLoading:!0,perPage:10,pageOptions:[10,25,50,100,1e3],sortBy:"",sortDesc:!1,sortDirection:"asc",items:[],filter:"",filterOn:[],fields:[{key:"ip",label:"IP Address",sortable:!0},{key:"payment_address",label:"Address",sortable:!0},{key:"location.country",label:"Country",sortable:!0,formatter:this.formatTableEntry},{key:"location.org",label:"Provider",sortable:!0,formatter:this.formatTableEntry},{key:"lastpaid",label:"Last Paid",sortable:!0},{key:"tier",label:"Tier",sortable:!0}],totalRows:1,currentPage:1}},computed:{sortOptions(){return this.fields.filter((t=>t.sortable)).map((t=>({text:t.label,value:t.key})))}},mounted(){this.getFluxList()},methods:{formatTableEntry(t){return t||"Unknown"},async getFluxList(){try{this.fluxListLoading=!0;const[t,e]=await Promise.all([h.get("https://stats.runonflux.io/fluxlocations"),y.Z.listFluxNodes()]),r=t.data.data,s=e.data.data,o=r.reduce(((t,e)=>({...t,[e.ip]:e})),{}),a=s.map((t=>({...t,location:o[t.ip.split(":")[0]]}))).filter((t=>t.ip));this.items=a,this.totalRows=this.items.length,this.currentPage=1,this.fluxListLoading=!1,console.log(this.items)}catch(t){console.log(t)}},onFiltered(t){this.totalRows=t.length,this.currentPage=1}}},k=x;var B=r(1001),P=(0,B.Z)(k,s,o,!1,null,null,null);const v=P.exports},51136:(t,e,r)=>{r.d(e,{Z:()=>o});var s=r(80914);const o={listFluxNodes(){return(0,s.Z)().get("/daemon/listzelnodes")},fluxnodeCount(){return(0,s.Z)().get("/daemon/getzelnodecount")},blockReward(){return(0,s.Z)().get("/daemon/getblocksubsidy")}}}}]); \ No newline at end of file diff --git a/HomeUI/dist/js/6777.js b/HomeUI/dist/js/6777.js index 9cc1b71e4..45b063899 100644 --- a/HomeUI/dist/js/6777.js +++ b/HomeUI/dist/js/6777.js @@ -1 +1 @@ -"use strict";(globalThis["webpackChunkflux"]=globalThis["webpackChunkflux"]||[]).push([[6777],{34547:(t,e,a)=>{a.d(e,{Z:()=>d});var s=function(){var t=this,e=t._self._c;return e("div",{staticClass:"toastification"},[e("div",{staticClass:"d-flex align-items-start"},[e("b-avatar",{staticClass:"mr-75 flex-shrink-0",attrs:{variant:t.variant,size:"1.8rem"}},[e("feather-icon",{attrs:{icon:t.icon,size:"15"}})],1),e("div",{staticClass:"d-flex flex-grow-1"},[e("div",[t.title?e("h5",{staticClass:"mb-0 font-weight-bolder toastification-title",class:`text-${t.variant}`,domProps:{textContent:t._s(t.title)}}):t._e(),t.text?e("small",{staticClass:"d-inline-block text-body",domProps:{textContent:t._s(t.text)}}):t._e()]),e("span",{staticClass:"cursor-pointer toastification-close-icon ml-auto",on:{click:function(e){return t.$emit("close-toast")}}},[t.hideClose?t._e():e("feather-icon",{staticClass:"text-body",attrs:{icon:"XIcon"}})],1)])],1)])},r=[],o=a(47389);const i={components:{BAvatar:o.SH},props:{variant:{type:String,default:"primary"},icon:{type:String,default:null},title:{type:String,default:null},text:{type:String,default:null},hideClose:{type:Boolean,default:!1}}},n=i;var l=a(1001),c=(0,l.Z)(n,s,r,!1,null,"22d964ca",null);const d=c.exports},87156:(t,e,a)=>{a.d(e,{Z:()=>u});var s=function(){var t=this,e=t._self._c;return e("b-popover",{ref:"popover",attrs:{target:`${t.target}`,triggers:"click blur",show:t.show,placement:"auto",container:"my-container","custom-class":`confirm-dialog-${t.width}`},on:{"update:show":function(e){t.show=e}},scopedSlots:t._u([{key:"title",fn:function(){return[e("div",{staticClass:"d-flex justify-content-between align-items-center"},[e("span",[t._v(t._s(t.title))]),e("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"close",attrs:{variant:"transparent","aria-label":"Close"},on:{click:function(e){t.show=!1}}},[e("span",{staticClass:"d-inline-block text-white",attrs:{"aria-hidden":"true"}},[t._v("×")])])],1)]},proxy:!0}])},[e("div",{staticClass:"text-center"},[e("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"mr-1",attrs:{size:"sm",variant:"danger"},on:{click:function(e){t.show=!1}}},[t._v(" "+t._s(t.cancelButton)+" ")]),e("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],attrs:{size:"sm",variant:"primary"},on:{click:function(e){return t.confirm()}}},[t._v(" "+t._s(t.confirmButton)+" ")])],1)])},r=[],o=a(15193),i=a(53862),n=a(20266);const l={components:{BButton:o.T,BPopover:i.x},directives:{Ripple:n.Z},props:{target:{type:String,required:!0},title:{type:String,required:!1,default:"Are You Sure?"},cancelButton:{type:String,required:!1,default:"Cancel"},confirmButton:{type:String,required:!0},width:{type:Number,required:!1,default:300}},data(){return{show:!1}},methods:{confirm(){this.show=!1,this.$emit("confirm")}}},c=l;var d=a(1001),p=(0,d.Z)(c,s,r,!1,null,null,null);const u=p.exports},90410:(t,e,a)=>{a.d(e,{Z:()=>b});var s=function(){var t=this,e=t._self._c;return e("b-input-group",[e("b-input-group-prepend",[e("b-button",{staticClass:"py-0",attrs:{variant:"outline-dark",size:"sm"},on:{click:function(e){return t.valueChange(t.value-1)}}},[e("b-icon",{attrs:{icon:"dash","font-scale":"1.6"}})],1)],1),e("b-form-input",{staticClass:"border-secondary text-center",attrs:{id:t.id,size:t.size,value:t.value,type:"number",min:"0",number:""},on:{update:t.valueChange}}),e("b-input-group-append",[e("b-button",{staticClass:"py-0",attrs:{variant:"outline-dark",size:"sm"},on:{click:function(e){return t.valueChange(t.value+1)}}},[e("b-icon",{attrs:{icon:"plus","font-scale":"1.6"}})],1)],1)],1)},r=[],o=a(43022),i=a(15193),n=a(22183),l=a(72466),c=a(4060),d=a(27754),p=a(22418);const u={name:"InputSpinButton",components:{BIcon:o.H,BButton:i.T,BFormInput:n.e,BIconDash:l.Loc,BIconPlus:l.s3j,BInputGroup:c.w,BInputGroupPrepend:d.P,BInputGroupAppend:p.B},props:{id:{type:String,required:!0},size:{type:String,required:!1,default:"md",validator(t){return["sm","md","lg"].includes(t)}},value:{type:Number,required:!0}},methods:{valueChange(t){t<=0?this.$emit("input",0):this.$emit("input",t)}}},g=u;var h=a(1001),m=(0,h.Z)(g,s,r,!1,null,"2f5aba03",null);const b=m.exports},96777:(t,e,a)=>{a.r(e),a.d(e,{default:()=>T});var s=function(){var t=this,e=t._self._c;return e("div",[e("b-row",{staticClass:"match-height"},[e("b-col",{staticClass:"d-lg-flex d-none"},[e("b-row",[e("b-col",{attrs:{lg:"12"}},[e("b-card",{attrs:{title:"Flux"}},[e("b-card-text",[t._v(" Update your Flux to the latest version. Every Flux has to run the newest version to stay on par with the network. ")]),e("div",{staticClass:"text-center"},[e("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],attrs:{id:"update-flux-a",variant:"success","aria-label":"Update Flux"}},[t._v(" Update Flux ")]),e("confirm-dialog",{attrs:{target:"update-flux-a","confirm-button":"Update Flux"},on:{confirm:function(e){return t.updateFlux()}}}),e("b-modal",{attrs:{"hide-footer":"",centered:"","hide-header-close":"","no-close-on-backdrop":"","no-close-on-esc":"",size:"lg",title:"Flux Update Progress","title-tag":"h4"},model:{value:t.updateDialogVisible,callback:function(e){t.updateDialogVisible=e},expression:"updateDialogVisible"}},[e("div",{staticClass:"d-block text-center mx-2 my-2"},[e("b-progress",{staticClass:"progress-bar-primary",attrs:{value:t.updateProgress,variant:"primary",animated:""}})],1)])],1)],1)],1),e("b-col",{attrs:{lg:"12"}},[e("b-card",{attrs:{title:"Flux UI"}},[e("b-card-text",[t._v(" Forcefully update Flux. Only use this option when something is not working correctly! ")]),e("div",{staticClass:"text-center"},[e("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],attrs:{id:"update-hardway-a",variant:"success","aria-label":"Forcefully Update"}},[t._v(" Forcefully Update ")]),e("confirm-dialog",{attrs:{target:"update-hardway-a","confirm-button":"Update Flux Forcefully"},on:{confirm:function(e){return t.rebuildHome()}}})],1)],1)],1)],1)],1),e("b-col",{attrs:{sm:"12",lg:"8"}},[e("b-card",{attrs:{title:"Kadena"}},[e("b-card-text",{staticClass:"mb-3"},[t._v(" Running a Kadena node makes you eligible for Kadena Rewards. Adjust your Kadena Account and Chain ID to ensure the reward distribution. ")]),e("div",{staticClass:"text-center"},[e("b-form-input",{staticClass:"mb-2",attrs:{placeholder:"Kadena Account"},model:{value:t.kadenaAccountInput,callback:function(e){t.kadenaAccountInput=e},expression:"kadenaAccountInput"}}),e("div",{staticClass:"mb-2",staticStyle:{display:"flex","justify-content":"center","align-items":"center"}},[e("b-card-text",{staticClass:"mr-1 mb-0"},[t._v(" Chain ID ")]),e("b-form-spinbutton",{staticStyle:{width:"150px"},attrs:{id:"sb-vertical",min:"0",max:"19"},model:{value:t.kadenaChainIDInput,callback:function(e){t.kadenaChainIDInput=e},expression:"kadenaChainIDInput"}})],1),e("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],attrs:{id:"update-kadena",variant:"success","aria-label":"Update Kadena Account"}},[t._v(" Update Kadena Account ")]),e("confirm-dialog",{attrs:{target:"update-kadena","confirm-button":"Update Kadena"},on:{confirm:function(e){return t.adjustKadena()}}})],1)],1)],1)],1),e("b-row",{staticClass:"d-lg-none match-height"},[e("b-col",{attrs:{sm:"6",xs:"12"}},[e("b-card",{attrs:{title:"Flux"}},[e("b-card-text",[t._v(" Update your Flux to the latest version. Every Flux has to run the newest version to stay on par with the network. ")]),e("div",{staticClass:"text-center"},[e("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],attrs:{id:"update-flux-b",variant:"success","aria-label":"Update Flux"}},[t._v(" Update Flux ")]),e("confirm-dialog",{attrs:{target:"update-flux-b","confirm-button":"Update Flux"},on:{confirm:function(e){return t.updateFlux()}}}),e("b-modal",{attrs:{"hide-footer":"",centered:"","hide-header-close":"","no-close-on-backdrop":"","no-close-on-esc":"",size:"lg",title:"Flux Update Progress","title-tag":"h4"},model:{value:t.updateDialogVisible,callback:function(e){t.updateDialogVisible=e},expression:"updateDialogVisible"}},[e("div",{staticClass:"d-block text-center mx-2 my-2"},[e("b-progress",{staticClass:"progress-bar-primary",attrs:{value:t.updateProgress,variant:"primary",animated:""}})],1)])],1)],1)],1),e("b-col",{attrs:{sm:"6",xs:"12"}},[e("b-card",{attrs:{title:"Flux UI"}},[e("b-card-text",[t._v(" Forcefully update Flux. Only use this option when something is not working correctly! ")]),e("div",{staticClass:"text-center"},[e("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],attrs:{id:"update-hardway-b",variant:"success","aria-label":"Forcefully Update"}},[t._v(" Forcefully Update ")]),e("confirm-dialog",{attrs:{target:"update-hardway-b","confirm-button":"Forcefully Update"},on:{confirm:function(e){return t.updateHardWay()}}})],1)],1)],1)],1),e("b-row",{staticClass:"match-height"},[e("b-col",{attrs:{lg:"4",md:"6",sm:"12"}},[e("b-card",{attrs:{title:"Router Ip"}},[e("b-card-text",[t._v(" Update your router IP from your local network. This should only be set in case of node reaching out internet behind a router using UPNP settings, otherwise should be left blank. ")]),e("div",{staticClass:"text-center"},[e("b-form-input",{staticClass:"mb-2",attrs:{placeholder:"Router IP"},model:{value:t.routerIPInput,callback:function(e){t.routerIPInput=e},expression:"routerIPInput"}}),e("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],attrs:{id:"update-routerIP",variant:"success","aria-label":"Update Router IP"}},[t._v(" Update Router IP ")]),e("confirm-dialog",{attrs:{target:"update-routerIP","confirm-button":"Update Router IP"},on:{confirm:function(e){return t.adjustRouterIP()}}})],1)],1)],1),e("b-col",{attrs:{lg:"8",md:"6",sm:"12"}},[e("b-card",{attrs:{title:"User Blocked Ports"}},[e("b-card-text",{staticClass:"mb-2"},[t._v(" Update the ports that are not available to be used by FluxOs on your network, you can add up to 100 ports. Ports should be defined one by one separated by comma, ports range will not be considered. ")]),e("div",{staticClass:"text-center"},[e("b-form-input",{staticClass:"mb-2",attrs:{placeholder:"Blocked Ports array"},model:{value:t.blockedPortsInput,callback:function(e){t.blockedPortsInput=e},expression:"blockedPortsInput"}}),e("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],attrs:{id:"update-blockedPorts",variant:"success","aria-label":"Update Blocked Ports"}},[t._v(" Update Blocked Ports ")]),e("confirm-dialog",{attrs:{target:"update-blockedPorts","confirm-button":"Update Blocked Ports"},on:{confirm:function(e){return t.adjustBlockedPorts()}}})],1)],1)],1)],1),e("b-row",{staticClass:"match-height"},[e("b-col",{attrs:{lg:"4",md:"6",sm:"12"}},[e("b-card",{attrs:{title:"API Port"}},[e("b-card-text",[t._v(" Update your API Port. Default one is 16127. You can use 16137, 16147, 16157, 16167, 16177, 16187, 16197 if your node is running under UPNP. ")]),e("div",{staticClass:"text-center"},[e("b-form-input",{staticClass:"mb-2",attrs:{placeholder:"API Port"},model:{value:t.apiPortInput,callback:function(e){t.apiPortInput=e},expression:"apiPortInput"}}),e("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],attrs:{id:"update-apiPort",variant:"success","aria-label":"Update API Port"}},[t._v(" Update API Port ")]),e("confirm-dialog",{attrs:{target:"update-apiPort","confirm-button":"Update API Port"},on:{confirm:function(e){return t.adjustAPIPort()}}})],1)],1)],1),e("b-col",{attrs:{lg:"8",md:"6",sm:"12"}},[e("b-card",{attrs:{title:"User Blocked Repositories"}},[e("b-card-text",{staticClass:"mb-2"},[t._v(" Update the blocked repositories that you don't want to run on your Fluxnode. Marketplace Apps will not be take in consideration. Repositories should be defined as string array one by one separated by comma. ")]),e("div",{staticClass:"text-center"},[e("b-form-input",{staticClass:"mb-2",attrs:{placeholder:"Blocked Repositories array"},model:{value:t.blockedRepositoriesInput,callback:function(e){t.blockedRepositoriesInput=e},expression:"blockedRepositoriesInput"}}),e("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],attrs:{id:"update-blockedRepositories",variant:"success","aria-label":"Update Blocked Repositories"}},[t._v(" Update Blocked Repositories ")]),e("confirm-dialog",{attrs:{target:"update-blockedRepositories","confirm-button":"Update Repositories"},on:{confirm:function(e){return t.adjustBlockedRepositories()}}})],1)],1)],1)],1),e("b-row",{staticClass:"match-height"},[e("b-col",{attrs:{lg:"4",md:"6",sm:"12"}},[e("b-card",{attrs:{title:"Reindexing"}},[e("b-card-text",{staticClass:"mb-1"},[t._v(" Options to reindex Flux databases and so rebuild them from scratch. Reindexing may take several hours and should only be used when an unrecoverable error is present in databases. ")]),e("div",{staticClass:"text-center"},[e("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"mx-1 mt-1",staticStyle:{width:"250px"},attrs:{id:"reindex-flux-databases",variant:"success","aria-label":"Reindex Flux Databases"}},[t._v(" Reindex Flux Databases ")]),e("confirm-dialog",{attrs:{target:"reindex-flux-databases","confirm-button":"Reindex Flux DB"},on:{confirm:function(e){return t.reindexFlux()}}}),e("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"mx-1 mt-1",staticStyle:{width:"250px"},attrs:{id:"reindex-explorer-databases",variant:"success","aria-label":"Reindex Explorer Databases"}},[t._v(" Reindex Explorer Databases ")]),e("confirm-dialog",{attrs:{target:"reindex-explorer-databases","confirm-button":"Reindex Explorer"},on:{confirm:function(e){return t.reindexExplorer()}}})],1)],1)],1),e("b-col",{attrs:{lg:"8",md:"6",sm:"12"}},[e("b-card",{attrs:{title:"Rescanning"}},[e("b-card-text",{staticClass:"mb-2"},[t._v(" Options to rescan Flux databases from a given blockheight and rebuild them since. Rescanning may take several hours and shall be used only when an unrecoverable error is present in databases with a known blockheight. Rescanning Flux databases is a deeper option than just explorer databases and so while rescanning entire Flux databases, explorer parts will be rescanned as well. ")]),e("div",{staticClass:"mb-1",staticStyle:{display:"flex","justify-content":"center","align-items":"center"}},[e("b-card-text",{staticClass:"mr-1 mb-0"},[t._v(" Block Height ")]),e("input-spin-button",{staticStyle:{width:"250px"},attrs:{id:"sb-vertical"},model:{value:t.rescanFluxHeight,callback:function(e){t.rescanFluxHeight=e},expression:"rescanFluxHeight"}}),e("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"mx-1",staticStyle:{width:"250px"},attrs:{id:"rescan-flux-db",variant:"success","aria-label":"Rescan Flux Databases"}},[t._v(" Rescan Flux Databases ")]),e("confirm-dialog",{attrs:{target:"rescan-flux-db","confirm-button":"Rescan Flux DB"},on:{confirm:function(e){return t.rescanFlux()}}})],1),e("div",{staticStyle:{display:"flex","justify-content":"center","align-items":"center"}},[e("b-card-text",{staticClass:"mr-1 mb-0"},[t._v(" Block Height ")]),e("input-spin-button",{staticStyle:{width:"250px"},attrs:{id:"sb-vertical"},model:{value:t.rescanExplorerHeight,callback:function(e){t.rescanExplorerHeight=e},expression:"rescanExplorerHeight"}}),e("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"mx-1",staticStyle:{width:"250px"},attrs:{id:"rescan-explorer-db",variant:"success","aria-label":"Rescan Explorer Databases"}},[t._v(" Rescan Explorer Databases ")]),e("confirm-dialog",{attrs:{target:"rescan-explorer-db","confirm-button":"Rescan Explorer"},on:{confirm:function(e){return t.rescanExplorer()}}})],1)],1)],1)],1),e("b-row",{staticClass:"match-height"},[e("b-col",{attrs:{xs:"12"}},[e("b-card",{attrs:{title:"Rescanning Global Apps"}},[e("b-card-text",{staticClass:"mb-1"},[t._v(" Options to rescan Flux Global Application Database from a given blockheight and rebuild them since. Rescanning may take several hours and shall be used only when an unrecoverable error is present in databases with a known blockheight. If remove Last Information is wished. The current specifics will be dropped instead making it more deep option. ")]),e("div",{staticStyle:{display:"flex","justify-content":"center","align-items":"center"}},[e("b-card-text",{staticClass:"mr-1 mb-0"},[t._v(" Block Height ")]),e("input-spin-button",{staticStyle:{width:"250px"},attrs:{id:"sb-vertical"},model:{value:t.rescanGlobalAppsHeight,callback:function(e){t.rescanGlobalAppsHeight=e},expression:"rescanGlobalAppsHeight"}}),e("b-form-checkbox",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover:bottom",value:t.removeLastInformation?"Remove last app information":"Do NOT remove last app information",expression:"removeLastInformation ? 'Remove last app information' : 'Do NOT remove last app information'",modifiers:{"hover:bottom":!0}}],staticClass:"custom-control-success ml-1",attrs:{name:"check-button",switch:""},model:{value:t.removeLastInformation,callback:function(e){t.removeLastInformation=e},expression:"removeLastInformation"}}),e("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"mx-1",attrs:{id:"rescan-global-apps",variant:"success","aria-label":"Rescan Global Apps Information"}},[t._v(" Rescan Global Apps Information ")]),e("confirm-dialog",{attrs:{target:"rescan-global-apps","confirm-button":"Rescan Apps"},on:{confirm:function(e){return t.rescanGlobalApps()}}})],1)],1)],1)],1),e("b-row",{staticClass:"match-height"},[e("b-col",{attrs:{xs:"12",md:"6",lg:"4"}},[e("b-card",{attrs:{title:"Global App Information"}},[e("b-card-text",[t._v(" Reindexes Flux Global Application Database and rebuilds them entirely from stored permanent messages. Reindexing may take a few hours and shall be used only when an unrecoverable error is present. ")]),e("div",{staticClass:"text-center"},[e("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"mt-2",attrs:{id:"reindex-global-apps",variant:"success","aria-label":"Reindex Global Apps Information"}},[t._v(" Reindex Global Apps Information ")]),e("confirm-dialog",{attrs:{target:"reindex-global-apps","confirm-button":"Reindex Apps"},on:{confirm:function(e){return t.reindexGlobalApps()}}})],1)],1)],1),e("b-col",{attrs:{xs:"12",md:"6",lg:"4"}},[e("b-card",{attrs:{title:"Global App Locations"}},[e("b-card-text",[t._v(" Reindexes Flux Global Application Locations and rebuilds them from newly incoming messages. Shall be used only when index has inconsistencies. ")]),e("div",{staticClass:"text-center"},[e("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"mt-2",attrs:{id:"reindex-global-apps-locations",variant:"success","aria-label":"Reindex Global Apps Locations"}},[t._v(" Reindex Global Apps Locations ")]),e("confirm-dialog",{attrs:{target:"reindex-global-apps-locations","confirm-button":"Reindex Locations"},on:{confirm:function(e){return t.reindexLocations()}}})],1)],1)],1),e("b-col",{attrs:{xs:"12",lg:"4"}},[e("b-card",{attrs:{title:"Block Processing"}},[e("b-card-text",[t._v(" These options manage Flux block processing which is a crucial process for Explorer and Apps functionality. Useful when Block Processing encounters an error and is stuck. Use with caution! ")]),e("div",{staticClass:"text-center"},[e("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"mx-1 my-1",staticStyle:{width:"250px"},attrs:{id:"restart-block-processing",variant:"success","aria-label":"Restart Block Processing"}},[t._v(" Restart Block Processing ")]),e("confirm-dialog",{attrs:{target:"restart-block-processing","confirm-button":"Restart Processing"},on:{confirm:function(e){return t.restartBlockProcessing()}}}),e("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"mx-1 my-1",staticStyle:{width:"250px"},attrs:{id:"stop-block-processing",variant:"success","aria-label":"Stop Block Processing"}},[t._v(" Stop Block Processing ")]),e("confirm-dialog",{attrs:{target:"stop-block-processing","confirm-button":"Stop Processing"},on:{confirm:function(e){return t.stopBlockProcessing()}}})],1)],1)],1),e("b-col",{attrs:{xs:"12",lg:"4"}},[e("b-card",{attrs:{title:"Application Monitoring"}},[e("b-card-text",[t._v(" Application on Flux are monitoring it's usage statistics to provide application owner data about application performance. ")]),e("div",{staticClass:"text-center"},[e("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"mx-1 my-1",staticStyle:{width:"250px"},attrs:{id:"start-app-monitoring",variant:"success","aria-label":"Start Applications Monitoring"}},[t._v(" Start Applications Monitoring ")]),e("confirm-dialog",{attrs:{target:"rstart-app-monitoring","confirm-button":"Start Applications Monitoring"},on:{confirm:function(e){return t.startApplicationsMonitoring()}}}),e("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"mx-1 my-1",staticStyle:{width:"250px"},attrs:{id:"stop-app-monitoring",variant:"success","aria-label":"Stop Applications Monitoring"}},[t._v(" Stop Applications Monitoring ")]),e("confirm-dialog",{attrs:{target:"stop-app-monitoring","confirm-button":"Stop Applications Monitoring"},on:{confirm:function(e){return t.stopApplicationsMonitoring(!1)}}}),e("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"mx-1 my-1",staticStyle:{width:"250px"},attrs:{id:"stop-app-monitoring-delete",variant:"success","aria-label":"Stop Applications Monitoring and Delete Monitored Data"}},[t._v(" Stop Applications Monitoring and Delete Monitored Data ")]),e("confirm-dialog",{attrs:{target:"stop-app-monitoring-delete","confirm-button":"Stop Applications Monitoring and Delete Monitored Data"},on:{confirm:function(e){return t.stopApplicationsMonitoring(!0)}}})],1)],1)],1),e("b-col",{attrs:{xs:"12",lg:"4"}},[e("b-card",{attrs:{title:"FluxOS"}},[e("b-card-text",[t._v(" The restart button in FluxOS allows you to restart the application. Clicking it will close and immediately restart the application, but please note that this action requires refreshing the page and logging out and logging in again. ")]),e("div",{staticClass:"text-center"},[e("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"mt-2",attrs:{id:"restart-fluxos",variant:"success","aria-label":"Restart FluxOS"}},[t._v(" Restart FluxOS ")]),e("confirm-dialog",{attrs:{target:"restart-fluxos","confirm-button":"Restart"},on:{confirm:function(e){return t.restartFluxOS()}}})],1)],1)],1)],1)],1)},r=[],o=a(20629),i=a(86855),n=a(26253),l=a(50725),c=a(64206),d=a(15193),p=a(19692),u=a(22183),g=a(44390),h=a(31220),m=a(45752),b=a(5870),x=a(34547),f=a(20266),v=a(87066),w=a(87156),y=a(90410),k=a(39055),I=a(20702),Z=a(43672);const P=a(80129),A={components:{BCard:i._,BRow:n.T,BCol:l.l,BCardText:c.j,BButton:d.T,BFormCheckbox:p.l,BFormInput:u.e,BFormSpinbutton:g.G,BModal:h.N,BProgress:m.D,ConfirmDialog:w.Z,ToastificationContent:x.Z,InputSpinButton:y.Z},directives:{"b-tooltip":b.o,Ripple:f.Z},data(){return{rescanFluxHeight:0,rescanExplorerHeight:0,rescanGlobalAppsHeight:0,kadenaAccountInput:"",kadenaChainIDInput:0,routerIPInput:"",blockedPortsInput:"[]",apiPortInput:16127,blockedRepositoriesInput:"[]",removeLastInformation:!1,updateDialogVisible:!1,updateProgress:0}},computed:{...(0,o.rn)("flux",["fluxVersion"]),currentLoginPhrase(){const t=localStorage.getItem("zelidauth"),e=P.parse(t);return e.loginPhrase}},mounted(){this.getKadenaAccount(),this.getRouterIP(),this.getBlockedPorts(),this.getLatestFluxVersion(),this.getAPIPort(),this.getBlockedRepositories()},methods:{async restartFluxOS(){const t=localStorage.getItem("zelidauth");try{const e=await k.Z.restartFluxOS(t);"error"===e.data.status?this.showToast("danger",e.data.data.message||e.data.data):this.showToast("success",e.data.data.message||e.data.data)}catch(e){this.showToast("danger",e.message||e)}},async getKadenaAccount(){const t=await k.Z.getKadenaAccount();if("success"===t.data.status&&t.data.data){const e=t.data.data.split("?chainid="),a=e.pop(),s=e.join("?chainid=").slice(7);this.kadenaAccountInput=s,this.kadenaChainIDInput=Number(a)}},async getRouterIP(){const t=await k.Z.getRouterIP();"success"===t.data.status&&t.data.data&&(this.routerIPInput=t.data.data)},async getBlockedPorts(){const t=await k.Z.getBlockedPorts();"success"===t.data.status&&t.data.data&&(this.blockedPortsInput=JSON.stringify(t.data.data))},async getAPIPort(){const t=await k.Z.getAPIPort();"success"===t.data.status&&t.data.data&&(this.apiPortInput=t.data.data)},async getBlockedRepositories(){const t=await k.Z.getBlockedRepositories();"success"===t.data.status&&t.data.data&&(this.blockedRepositoriesInput=JSON.stringify(t.data.data))},getLatestFluxVersion(){const t=this;v["default"].get("https://raw.githubusercontent.com/runonflux/flux/master/package.json").then((e=>{console.log(e),e.data.version!==t.fluxVersion?this.showToast("warning","Flux requires an update!"):this.showToast("success","Flux is up to date")})).catch((t=>{console.log(t),this.showToast("danger","Error verifying recent version")}))},async adjustKadena(){const t=this.kadenaAccountInput,e=this.kadenaChainIDInput,a=localStorage.getItem("zelidauth");try{const s=await k.Z.adjustKadena(a,t,e);"error"===s.data.status?this.showToast("danger",s.data.data.message||s.data.data):this.showToast("success",s.data.data.message||s.data.data)}catch(s){this.showToast("danger",s.message||s)}},async adjustRouterIP(){const t=this.routerIPInput,e=localStorage.getItem("zelidauth");try{const a=await k.Z.adjustRouterIP(e,t);"error"===a.data.status?this.showToast("danger",a.data.data.message||a.data.data):this.showToast("success",a.data.data.message||a.data.data)}catch(a){this.showToast("danger",a.message||a)}},async adjustBlockedPorts(){const t=localStorage.getItem("zelidauth");try{const e=JSON.parse(this.blockedPortsInput),a=await k.Z.adjustBlockedPorts(t,e);"error"===a.data.status?this.showToast("danger",a.data.data.message||a.data.data):this.showToast("success",a.data.data.message||a.data.data)}catch(e){this.showToast("danger",e.message||e)}},async adjustAPIPort(){const t=this.apiPortInput,e=localStorage.getItem("zelidauth"),a=[16127,16137,16147,16157,16167,16177,16187,16197];a.includes(t)||this.showToast("danger","API Port not valid");try{const a=await k.Z.adjustAPIPort(e,t);"error"===a.data.status?this.showToast("danger",a.data.data.message||a.data.data):this.showToast("success",a.data.data.message||a.data.data)}catch(s){this.showToast("danger",s.message||s)}},async adjustBlockedRepositories(){const t=localStorage.getItem("zelidauth");try{const e=JSON.parse(this.blockedRepositoriesInput),a=await k.Z.adjustBlockedRepositories(t,e);"error"===a.data.status?this.showToast("danger",a.data.data.message||a.data.data):this.showToast("success",a.data.data.message||a.data.data)}catch(e){this.showToast("danger",e.message||e)}},updateHardWay(){const t=localStorage.getItem("zelidauth"),e=P.parse(t);console.log(e),this.showToast("warning","Flux is now being forcefully updated in the background"),k.Z.hardUpdateFlux(t).then((t=>{console.log(t),"error"===t.data.status&&this.showToast("danger",t.data.data.message||t.data.data)})).catch((t=>{console.log(t),console.log(t.code),this.showToast("danger",t.toString())}))},rescanExplorer(){this.showToast("warning","Explorer will now rescan");const t=localStorage.getItem("zelidauth"),e=this.rescanExplorerHeight>0?this.rescanExplorerHeight:0;I.Z.rescanExplorer(t,e).then((t=>{"error"===t.data.status?this.showToast("danger",t.data.data.message||t.data.data):this.showToast("success",t.data.data.message||t.data.data)})).catch((t=>{console.log(t),this.showToast("danger","Error while trying to rescan Explorer")}))},rescanFlux(){this.showToast("warning","Flux will now rescan");const t=localStorage.getItem("zelidauth"),e=this.rescanFluxHeight>0?this.rescanFluxHeight:0;I.Z.rescanFlux(t,e).then((t=>{"error"===t.data.status?this.showToast("danger",t.data.data.message||t.data.data):this.showToast("success",t.data.data.message||t.data.data)})).catch((t=>{console.log(t),this.showToast("danger","Error while trying to rescan Flux")}))},reindexExplorer(){const t=localStorage.getItem("zelidauth"),e=P.parse(t);console.log(e),this.showToast("warning","Explorer databases will begin to reindex soon"),I.Z.reindexExplorer(t).then((t=>{console.log(t),"error"===t.data.status&&this.showToast("danger",t.data.data.message||t.data.data),"success"===t.data.status&&this.showToast("success",t.data.data.message||t.data.data)})).catch((t=>{console.log(t),console.log(t.code),this.showToast("danger",t.toString())}))},reindexFlux(){const t=localStorage.getItem("zelidauth"),e=P.parse(t);console.log(e),this.showToast("warning","Flux databases will begin to reindex soon"),I.Z.reindexFlux(t).then((t=>{console.log(t),"error"===t.data.status&&this.showToast("danger",t.data.data.message||t.data.data),"success"===t.data.status&&this.showToast("success",t.data.data.message||t.data.data)})).catch((t=>{console.log(t),console.log(t.code),this.showToast("danger",t.toString())}))},reindexGlobalApps(){const t=localStorage.getItem("zelidauth"),e=P.parse(t);console.log(e),this.showToast("warning","Global Applications information will reindex soon"),Z.Z.reindexGlobalApps(t).then((t=>{console.log(t),"error"===t.data.status&&this.showToast("danger",t.data.data.message||t.data.data),"success"===t.data.status&&this.showToast("succeess",t.data.data.message||t.data.data)})).catch((t=>{console.log(t),console.log(t.code),this.showToast("danger",t.toString())}))},reindexLocations(){const t=localStorage.getItem("zelidauth");this.showToast("warning","Global Applications location will reindex soon"),Z.Z.reindexLocations(t).then((t=>{console.log(t),"error"===t.data.status&&this.showToast("danger",t.data.data.message||t.data.data),"success"===t.data.status&&this.showToast("success",t.data.data.message||t.data.data)})).catch((t=>{this.showToast("danger",t.toString())}))},rescanGlobalApps(){const t=localStorage.getItem("zelidauth"),e=P.parse(t);console.log(e),this.showToast("warning","Global Applications information will be rescanned soon");const a=this.rescanExplorerHeight>0?this.rescanExplorerHeight:0;Z.Z.rescanGlobalApps(t,a,this.removeLastInformation).then((t=>{console.log(t),"error"===t.data.status&&this.showToast("danger",t.data.data.message||t.data.data),"success"===t.data.status&&this.showToast("success",t.data.data.message||t.data.data)})).catch((t=>{console.log(t),console.log(t.code),this.showToast("danger",t.toString())}))},restartBlockProcessing(){const t=localStorage.getItem("zelidauth");this.showToast("warning","Restarting block processing"),I.Z.restartBlockProcessing(t).then((t=>{console.log(t),"error"===t.data.status&&this.showToast("danger",t.data.data.message||t.data.data),"success"===t.data.status&&this.showToast("success",t.data.data.message||t.data.data)})).catch((t=>{this.showToast("danger",t.toString())}))},stopBlockProcessing(){const t=localStorage.getItem("zelidauth");this.showToast("warning","Stopping block processing"),I.Z.stopBlockProcessing(t).then((t=>{console.log(t),"error"===t.data.status&&this.showToast("danger",t.data.data.message||t.data.data),"success"===t.data.status&&this.showToast("success",t.data.data.message||t.data.data)})).catch((t=>{this.showToast("danger",t.toString())}))},updateFlux(){const t=localStorage.getItem("zelidauth"),e=P.parse(t);console.log(e);const a=this;v["default"].get("https://raw.githubusercontent.com/runonflux/flux/master/package.json").then((e=>{if(console.log(e),e.data.version!==a.fluxVersion){this.showToast("warning","Flux is now updating in the background"),a.updateDialogVisible=!0,a.updateProgress=5;const e=setInterval((()=>{99===a.updateProgress?a.updateProgress+=1:a.updateProgress+=2,a.updateProgress>=100&&(clearInterval(e),this.showToast("success","Update completed. Flux will now reload"),setTimeout((()=>{a.updateDialogVisible&&window.location.reload(!0)}),5e3)),a.updateDialogVisible||(clearInterval(e),a.updateProgress=0)}),1e3);k.Z.softUpdateInstallFlux(t).then((t=>{console.log(t),"error"===t.data.status&&this.showToast("danger",t.data.data.message||t.data.data),401===t.data.data.code&&(a.updateDialogVisible=!1,a.updateProgress=0)})).catch((t=>{console.log(t),console.log(t.code),"Error: Network Error"===t.toString()?a.updateProgress=50:(a.updateDialogVisible=!1,a.updateProgress=0,this.showToast("danger",t.toString()))}))}else this.showToast("success","Flux is already up to date.")})).catch((t=>{console.log(t),this.showToast("danger","Error verifying recent version")}))},async stopMonitoring(t=!1){this.output="",this.showToast("warning","Stopping Applications Monitoring");const e=localStorage.getItem("zelidauth"),a=await Z.Z.stopAppMonitoring(e,null,t);"success"===a.data.status?this.showToast("success",a.data.data.message||a.data.data):this.showToast("danger",a.data.data.message||a.data.data),console.log(a)},async startMonitoring(){this.output="",this.showToast("warning","Starting Applications Monitoring");const t=localStorage.getItem("zelidauth"),e=await Z.Z.startAppMonitoring(t);"success"===e.data.status?this.showToast("success",e.data.data.message||e.data.data):this.showToast("danger",e.data.data.message||e.data.data),console.log(e)},showToast(t,e,a="InfoIcon"){this.$toast({component:x.Z,props:{title:e,icon:a,variant:t}})}}},S=A;var C=a(1001),F=(0,C.Z)(S,s,r,!1,null,null,null);const T=F.exports},43672:(t,e,a)=>{a.d(e,{Z:()=>r});var s=a(80914);const r={listRunningApps(){const t={headers:{"x-apicache-bypass":!0}};return(0,s.Z)().get("/apps/listrunningapps",t)},listAllApps(){const t={headers:{"x-apicache-bypass":!0}};return(0,s.Z)().get("/apps/listallapps",t)},installedApps(){const t={headers:{"x-apicache-bypass":!0}};return(0,s.Z)().get("/apps/installedapps",t)},availableApps(){return(0,s.Z)().get("/apps/availableapps")},getEnterpriseNodes(){return(0,s.Z)().get("/apps/enterprisenodes")},stopApp(t,e){const a={headers:{zelidauth:t,"x-apicache-bypass":!0}};return(0,s.Z)().get(`/apps/appstop/${e}`,a)},startApp(t,e){const a={headers:{zelidauth:t}};return(0,s.Z)().get(`/apps/appstart/${e}`,a)},pauseApp(t,e){const a={headers:{zelidauth:t}};return(0,s.Z)().get(`/apps/apppause/${e}`,a)},unpauseApp(t,e){const a={headers:{zelidauth:t}};return(0,s.Z)().get(`/apps/appunpause/${e}`,a)},restartApp(t,e){const a={headers:{zelidauth:t}};return(0,s.Z)().get(`/apps/apprestart/${e}`,a)},removeApp(t,e){const a={headers:{zelidauth:t},onDownloadProgress(t){console.log(t)}};return(0,s.Z)().get(`/apps/appremove/${e}`,a)},registerApp(t,e){const a={headers:{zelidauth:t}};return(0,s.Z)().post("/apps/appregister",JSON.stringify(e),a)},updateApp(t,e){const a={headers:{zelidauth:t}};return(0,s.Z)().post("/apps/appupdate",JSON.stringify(e),a)},checkCommunication(){return(0,s.Z)().get("/flux/checkcommunication")},checkDockerExistance(t,e){const a={headers:{zelidauth:t}};return(0,s.Z)().post("/apps/checkdockerexistance",JSON.stringify(e),a)},appsRegInformation(){return(0,s.Z)().get("/apps/registrationinformation")},appsDeploymentInformation(){return(0,s.Z)().get("/apps/deploymentinformation")},getAppLocation(t){return(0,s.Z)().get(`/apps/location/${t}`)},globalAppSpecifications(){return(0,s.Z)().get("/apps/globalappsspecifications")},permanentMessagesOwner(t){return(0,s.Z)().get(`/apps/permanentmessages?owner=${t}`)},getInstalledAppSpecifics(t){return(0,s.Z)().get(`/apps/installedapps/${t}`)},getAppSpecifics(t){return(0,s.Z)().get(`/apps/appspecifications/${t}`)},getAppOwner(t){return(0,s.Z)().get(`/apps/appowner/${t}`)},getAppLogsTail(t,e){const a={headers:{zelidauth:t}};return(0,s.Z)().get(`/apps/applog/${e}/100`,a)},getAppTop(t,e){const a={headers:{zelidauth:t}};return(0,s.Z)().get(`/apps/apptop/${e}`,a)},getAppInspect(t,e){const a={headers:{zelidauth:t}};return(0,s.Z)().get(`/apps/appinspect/${e}`,a)},getAppStats(t,e){const a={headers:{zelidauth:t}};return(0,s.Z)().get(`/apps/appstats/${e}`,a)},getAppChanges(t,e){const a={headers:{zelidauth:t}};return(0,s.Z)().get(`/apps/appchanges/${e}`,a)},getAppExec(t,e,a,r){const o={headers:{zelidauth:t}},i={appname:e,cmd:a,env:JSON.parse(r)};return(0,s.Z)().post("/apps/appexec",JSON.stringify(i),o)},reindexGlobalApps(t){return(0,s.Z)().get("/apps/reindexglobalappsinformation",{headers:{zelidauth:t}})},reindexLocations(t){return(0,s.Z)().get("/apps/reindexglobalappslocation",{headers:{zelidauth:t}})},rescanGlobalApps(t,e,a){return(0,s.Z)().get(`/apps/rescanglobalappsinformation/${e}/${a}`,{headers:{zelidauth:t}})},getFolder(t,e){return(0,s.Z)().get(`/apps/fluxshare/getfolder/${e}`,{headers:{zelidauth:t}})},createFolder(t,e){return(0,s.Z)().get(`/apps/fluxshare/createfolder/${e}`,{headers:{zelidauth:t}})},getFile(t,e){return(0,s.Z)().get(`/apps/fluxshare/getfile/${e}`,{headers:{zelidauth:t}})},removeFile(t,e){return(0,s.Z)().get(`/apps/fluxshare/removefile/${e}`,{headers:{zelidauth:t}})},shareFile(t,e){return(0,s.Z)().get(`/apps/fluxshare/sharefile/${e}`,{headers:{zelidauth:t}})},unshareFile(t,e){return(0,s.Z)().get(`/apps/fluxshare/unsharefile/${e}`,{headers:{zelidauth:t}})},removeFolder(t,e){return(0,s.Z)().get(`/apps/fluxshare/removefolder/${e}`,{headers:{zelidauth:t}})},fileExists(t,e){return(0,s.Z)().get(`/apps/fluxshare/fileexists/${e}`,{headers:{zelidauth:t}})},storageStats(t){return(0,s.Z)().get("/apps/fluxshare/stats",{headers:{zelidauth:t}})},renameFileFolder(t,e,a){return(0,s.Z)().get(`/apps/fluxshare/rename/${e}/${a}`,{headers:{zelidauth:t}})},appPrice(t){return(0,s.Z)().post("/apps/calculateprice",JSON.stringify(t))},appPriceUSDandFlux(t){return(0,s.Z)().post("/apps/calculatefiatandfluxprice",JSON.stringify(t))},appRegistrationVerificaiton(t){return(0,s.Z)().post("/apps/verifyappregistrationspecifications",JSON.stringify(t))},appUpdateVerification(t){return(0,s.Z)().post("/apps/verifyappupdatespecifications",JSON.stringify(t))},getAppMonitoring(t,e){const a={headers:{zelidauth:t}};return(0,s.Z)().get(`/apps/appmonitor/${e}`,a)},startAppMonitoring(t,e){const a={headers:{zelidauth:t}};return e?(0,s.Z)().get(`/apps/startmonitoring/${e}`,a):(0,s.Z)().get("/apps/startmonitoring",a)},stopAppMonitoring(t,e,a){const r={headers:{zelidauth:t}};return e&&a?(0,s.Z)().get(`/apps/stopmonitoring/${e}/${a}`,r):e?(0,s.Z)().get(`/apps/stopmonitoring/${e}`,r):a?(0,s.Z)().get(`/apps/stopmonitoring?deletedata=${a}`,r):(0,s.Z)().get("/apps/stopmonitoring",r)},justAPI(){return(0,s.Z)()}}},20702:(t,e,a)=>{a.d(e,{Z:()=>r});var s=a(80914);const r={getAddressBalance(t){return(0,s.Z)().get(`/explorer/balance/${t}`)},getAddressTransactions(t){return(0,s.Z)().get(`/explorer/transactions/${t}`)},getScannedHeight(){return(0,s.Z)().get("/explorer/scannedheight")},reindexExplorer(t){return(0,s.Z)().get("/explorer/reindex/false",{headers:{zelidauth:t}})},reindexFlux(t){return(0,s.Z)().get("/explorer/reindex/true",{headers:{zelidauth:t}})},rescanExplorer(t,e){return(0,s.Z)().get(`/explorer/rescan/${e}/false`,{headers:{zelidauth:t}})},rescanFlux(t,e){return(0,s.Z)().get(`/explorer/rescan/${e}/true`,{headers:{zelidauth:t}})},restartBlockProcessing(t){return(0,s.Z)().get("/explorer/restart",{headers:{zelidauth:t}})},stopBlockProcessing(t){return(0,s.Z)().get("/explorer/stop",{headers:{zelidauth:t}})}}},39055:(t,e,a)=>{a.d(e,{Z:()=>r});var s=a(80914);const r={softUpdateFlux(t){return(0,s.Z)().get("/flux/softupdateflux",{headers:{zelidauth:t}})},softUpdateInstallFlux(t){return(0,s.Z)().get("/flux/softupdatefluxinstall",{headers:{zelidauth:t}})},updateFlux(t){return(0,s.Z)().get("/flux/updateflux",{headers:{zelidauth:t}})},hardUpdateFlux(t){return(0,s.Z)().get("/flux/hardupdateflux",{headers:{zelidauth:t}})},rebuildHome(t){return(0,s.Z)().get("/flux/rebuildhome",{headers:{zelidauth:t}})},updateDaemon(t){return(0,s.Z)().get("/flux/updatedaemon",{headers:{zelidauth:t}})},reindexDaemon(t){return(0,s.Z)().get("/flux/reindexdaemon",{headers:{zelidauth:t}})},updateBenchmark(t){return(0,s.Z)().get("/flux/updatebenchmark",{headers:{zelidauth:t}})},getFluxVersion(){return(0,s.Z)().get("/flux/version")},broadcastMessage(t,e){const a=e,r={headers:{zelidauth:t}};return(0,s.Z)().post("/flux/broadcastmessage",JSON.stringify(a),r)},connectedPeers(){return(0,s.Z)().get(`/flux/connectedpeers?timestamp=${Date.now()}`)},connectedPeersInfo(){return(0,s.Z)().get(`/flux/connectedpeersinfo?timestamp=${Date.now()}`)},incomingConnections(){return(0,s.Z)().get(`/flux/incomingconnections?timestamp=${Date.now()}`)},incomingConnectionsInfo(){return(0,s.Z)().get(`/flux/incomingconnectionsinfo?timestamp=${Date.now()}`)},addPeer(t,e){return(0,s.Z)().get(`/flux/addpeer/${e}`,{headers:{zelidauth:t}})},removePeer(t,e){return(0,s.Z)().get(`/flux/removepeer/${e}`,{headers:{zelidauth:t}})},removeIncomingPeer(t,e){return(0,s.Z)().get(`/flux/removeincomingpeer/${e}`,{headers:{zelidauth:t}})},adjustKadena(t,e,a){return(0,s.Z)().get(`/flux/adjustkadena/${e}/${a}`,{headers:{zelidauth:t}})},adjustRouterIP(t,e){return(0,s.Z)().get(`/flux/adjustrouterip/${e}`,{headers:{zelidauth:t}})},adjustBlockedPorts(t,e){const a={blockedPorts:e},r={headers:{zelidauth:t}};return(0,s.Z)().post("/flux/adjustblockedports",a,r)},adjustAPIPort(t,e){return(0,s.Z)().get(`/flux/adjustapiport/${e}`,{headers:{zelidauth:t}})},adjustBlockedRepositories(t,e){const a={blockedRepositories:e},r={headers:{zelidauth:t}};return(0,s.Z)().post("/flux/adjustblockedrepositories",a,r)},getKadenaAccount(){const t={headers:{"x-apicache-bypass":!0}};return(0,s.Z)().get("/flux/kadena",t)},getRouterIP(){const t={headers:{"x-apicache-bypass":!0}};return(0,s.Z)().get("/flux/routerip",t)},getBlockedPorts(){const t={headers:{"x-apicache-bypass":!0}};return(0,s.Z)().get("/flux/blockedports",t)},getAPIPort(){const t={headers:{"x-apicache-bypass":!0}};return(0,s.Z)().get("/flux/apiport",t)},getBlockedRepositories(){const t={headers:{"x-apicache-bypass":!0}};return(0,s.Z)().get("/flux/blockedrepositories",t)},getMarketPlaceURL(){return(0,s.Z)().get("/flux/marketplaceurl")},getZelid(){const t={headers:{"x-apicache-bypass":!0}};return(0,s.Z)().get("/flux/zelid",t)},getStaticIpInfo(){return(0,s.Z)().get("/flux/staticip")},restartFluxOS(t){const e={headers:{zelidauth:t,"x-apicache-bypass":!0}};return(0,s.Z)().get("/flux/restart",e)},tailFluxLog(t,e){return(0,s.Z)().get(`/flux/tail${t}log`,{headers:{zelidauth:e}})},justAPI(){return(0,s.Z)()},cancelToken(){return s.S}}}}]); \ No newline at end of file +"use strict";(self["webpackChunkflux"]=self["webpackChunkflux"]||[]).push([[6777],{34547:(t,e,a)=>{a.d(e,{Z:()=>d});var s=function(){var t=this,e=t._self._c;return e("div",{staticClass:"toastification"},[e("div",{staticClass:"d-flex align-items-start"},[e("b-avatar",{staticClass:"mr-75 flex-shrink-0",attrs:{variant:t.variant,size:"1.8rem"}},[e("feather-icon",{attrs:{icon:t.icon,size:"15"}})],1),e("div",{staticClass:"d-flex flex-grow-1"},[e("div",[t.title?e("h5",{staticClass:"mb-0 font-weight-bolder toastification-title",class:`text-${t.variant}`,domProps:{textContent:t._s(t.title)}}):t._e(),t.text?e("small",{staticClass:"d-inline-block text-body",domProps:{textContent:t._s(t.text)}}):t._e()]),e("span",{staticClass:"cursor-pointer toastification-close-icon ml-auto",on:{click:function(e){return t.$emit("close-toast")}}},[t.hideClose?t._e():e("feather-icon",{staticClass:"text-body",attrs:{icon:"XIcon"}})],1)])],1)])},r=[],o=a(47389);const i={components:{BAvatar:o.SH},props:{variant:{type:String,default:"primary"},icon:{type:String,default:null},title:{type:String,default:null},text:{type:String,default:null},hideClose:{type:Boolean,default:!1}}},n=i;var l=a(1001),c=(0,l.Z)(n,s,r,!1,null,"22d964ca",null);const d=c.exports},87156:(t,e,a)=>{a.d(e,{Z:()=>u});var s=function(){var t=this,e=t._self._c;return e("b-popover",{ref:"popover",attrs:{target:`${t.target}`,triggers:"click blur",show:t.show,placement:"auto",container:"my-container","custom-class":`confirm-dialog-${t.width}`},on:{"update:show":function(e){t.show=e}},scopedSlots:t._u([{key:"title",fn:function(){return[e("div",{staticClass:"d-flex justify-content-between align-items-center"},[e("span",[t._v(t._s(t.title))]),e("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"close",attrs:{variant:"transparent","aria-label":"Close"},on:{click:function(e){t.show=!1}}},[e("span",{staticClass:"d-inline-block text-white",attrs:{"aria-hidden":"true"}},[t._v("×")])])],1)]},proxy:!0}])},[e("div",{staticClass:"text-center"},[e("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"mr-1",attrs:{size:"sm",variant:"danger"},on:{click:function(e){t.show=!1}}},[t._v(" "+t._s(t.cancelButton)+" ")]),e("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],attrs:{size:"sm",variant:"primary"},on:{click:function(e){return t.confirm()}}},[t._v(" "+t._s(t.confirmButton)+" ")])],1)])},r=[],o=a(15193),i=a(53862),n=a(20266);const l={components:{BButton:o.T,BPopover:i.x},directives:{Ripple:n.Z},props:{target:{type:String,required:!0},title:{type:String,required:!1,default:"Are You Sure?"},cancelButton:{type:String,required:!1,default:"Cancel"},confirmButton:{type:String,required:!0},width:{type:Number,required:!1,default:300}},data(){return{show:!1}},methods:{confirm(){this.show=!1,this.$emit("confirm")}}},c=l;var d=a(1001),p=(0,d.Z)(c,s,r,!1,null,null,null);const u=p.exports},90410:(t,e,a)=>{a.d(e,{Z:()=>b});var s=function(){var t=this,e=t._self._c;return e("b-input-group",[e("b-input-group-prepend",[e("b-button",{staticClass:"py-0",attrs:{variant:"outline-dark",size:"sm"},on:{click:function(e){return t.valueChange(t.value-1)}}},[e("b-icon",{attrs:{icon:"dash","font-scale":"1.6"}})],1)],1),e("b-form-input",{staticClass:"border-secondary text-center",attrs:{id:t.id,size:t.size,value:t.value,type:"number",min:"0",number:""},on:{update:t.valueChange}}),e("b-input-group-append",[e("b-button",{staticClass:"py-0",attrs:{variant:"outline-dark",size:"sm"},on:{click:function(e){return t.valueChange(t.value+1)}}},[e("b-icon",{attrs:{icon:"plus","font-scale":"1.6"}})],1)],1)],1)},r=[],o=a(43022),i=a(15193),n=a(22183),l=a(72466),c=a(4060),d=a(27754),p=a(22418);const u={name:"InputSpinButton",components:{BIcon:o.H,BButton:i.T,BFormInput:n.e,BIconDash:l.Loc,BIconPlus:l.s3j,BInputGroup:c.w,BInputGroupPrepend:d.P,BInputGroupAppend:p.B},props:{id:{type:String,required:!0},size:{type:String,required:!1,default:"md",validator(t){return["sm","md","lg"].includes(t)}},value:{type:Number,required:!0}},methods:{valueChange(t){t<=0?this.$emit("input",0):this.$emit("input",t)}}},g=u;var h=a(1001),m=(0,h.Z)(g,s,r,!1,null,"2f5aba03",null);const b=m.exports},96777:(t,e,a)=>{a.r(e),a.d(e,{default:()=>T});var s=function(){var t=this,e=t._self._c;return e("div",[e("b-row",{staticClass:"match-height"},[e("b-col",{staticClass:"d-lg-flex d-none"},[e("b-row",[e("b-col",{attrs:{lg:"12"}},[e("b-card",{attrs:{title:"Flux"}},[e("b-card-text",[t._v(" Update your Flux to the latest version. Every Flux has to run the newest version to stay on par with the network. ")]),e("div",{staticClass:"text-center"},[e("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],attrs:{id:"update-flux-a",variant:"success","aria-label":"Update Flux"}},[t._v(" Update Flux ")]),e("confirm-dialog",{attrs:{target:"update-flux-a","confirm-button":"Update Flux"},on:{confirm:function(e){return t.updateFlux()}}}),e("b-modal",{attrs:{"hide-footer":"",centered:"","hide-header-close":"","no-close-on-backdrop":"","no-close-on-esc":"",size:"lg",title:"Flux Update Progress","title-tag":"h4"},model:{value:t.updateDialogVisible,callback:function(e){t.updateDialogVisible=e},expression:"updateDialogVisible"}},[e("div",{staticClass:"d-block text-center mx-2 my-2"},[e("b-progress",{staticClass:"progress-bar-primary",attrs:{value:t.updateProgress,variant:"primary",animated:""}})],1)])],1)],1)],1),e("b-col",{attrs:{lg:"12"}},[e("b-card",{attrs:{title:"Flux UI"}},[e("b-card-text",[t._v(" Forcefully update Flux. Only use this option when something is not working correctly! ")]),e("div",{staticClass:"text-center"},[e("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],attrs:{id:"update-hardway-a",variant:"success","aria-label":"Forcefully Update"}},[t._v(" Forcefully Update ")]),e("confirm-dialog",{attrs:{target:"update-hardway-a","confirm-button":"Update Flux Forcefully"},on:{confirm:function(e){return t.rebuildHome()}}})],1)],1)],1)],1)],1),e("b-col",{attrs:{sm:"12",lg:"8"}},[e("b-card",{attrs:{title:"Kadena"}},[e("b-card-text",{staticClass:"mb-3"},[t._v(" Running a Kadena node makes you eligible for Kadena Rewards. Adjust your Kadena Account and Chain ID to ensure the reward distribution. ")]),e("div",{staticClass:"text-center"},[e("b-form-input",{staticClass:"mb-2",attrs:{placeholder:"Kadena Account"},model:{value:t.kadenaAccountInput,callback:function(e){t.kadenaAccountInput=e},expression:"kadenaAccountInput"}}),e("div",{staticClass:"mb-2",staticStyle:{display:"flex","justify-content":"center","align-items":"center"}},[e("b-card-text",{staticClass:"mr-1 mb-0"},[t._v(" Chain ID ")]),e("b-form-spinbutton",{staticStyle:{width:"150px"},attrs:{id:"sb-vertical",min:"0",max:"19"},model:{value:t.kadenaChainIDInput,callback:function(e){t.kadenaChainIDInput=e},expression:"kadenaChainIDInput"}})],1),e("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],attrs:{id:"update-kadena",variant:"success","aria-label":"Update Kadena Account"}},[t._v(" Update Kadena Account ")]),e("confirm-dialog",{attrs:{target:"update-kadena","confirm-button":"Update Kadena"},on:{confirm:function(e){return t.adjustKadena()}}})],1)],1)],1)],1),e("b-row",{staticClass:"d-lg-none match-height"},[e("b-col",{attrs:{sm:"6",xs:"12"}},[e("b-card",{attrs:{title:"Flux"}},[e("b-card-text",[t._v(" Update your Flux to the latest version. Every Flux has to run the newest version to stay on par with the network. ")]),e("div",{staticClass:"text-center"},[e("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],attrs:{id:"update-flux-b",variant:"success","aria-label":"Update Flux"}},[t._v(" Update Flux ")]),e("confirm-dialog",{attrs:{target:"update-flux-b","confirm-button":"Update Flux"},on:{confirm:function(e){return t.updateFlux()}}}),e("b-modal",{attrs:{"hide-footer":"",centered:"","hide-header-close":"","no-close-on-backdrop":"","no-close-on-esc":"",size:"lg",title:"Flux Update Progress","title-tag":"h4"},model:{value:t.updateDialogVisible,callback:function(e){t.updateDialogVisible=e},expression:"updateDialogVisible"}},[e("div",{staticClass:"d-block text-center mx-2 my-2"},[e("b-progress",{staticClass:"progress-bar-primary",attrs:{value:t.updateProgress,variant:"primary",animated:""}})],1)])],1)],1)],1),e("b-col",{attrs:{sm:"6",xs:"12"}},[e("b-card",{attrs:{title:"Flux UI"}},[e("b-card-text",[t._v(" Forcefully update Flux. Only use this option when something is not working correctly! ")]),e("div",{staticClass:"text-center"},[e("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],attrs:{id:"update-hardway-b",variant:"success","aria-label":"Forcefully Update"}},[t._v(" Forcefully Update ")]),e("confirm-dialog",{attrs:{target:"update-hardway-b","confirm-button":"Forcefully Update"},on:{confirm:function(e){return t.updateHardWay()}}})],1)],1)],1)],1),e("b-row",{staticClass:"match-height"},[e("b-col",{attrs:{lg:"4",md:"6",sm:"12"}},[e("b-card",{attrs:{title:"Router Ip"}},[e("b-card-text",[t._v(" Update your router IP from your local network. This should only be set in case of node reaching out internet behind a router using UPNP settings, otherwise should be left blank. ")]),e("div",{staticClass:"text-center"},[e("b-form-input",{staticClass:"mb-2",attrs:{placeholder:"Router IP"},model:{value:t.routerIPInput,callback:function(e){t.routerIPInput=e},expression:"routerIPInput"}}),e("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],attrs:{id:"update-routerIP",variant:"success","aria-label":"Update Router IP"}},[t._v(" Update Router IP ")]),e("confirm-dialog",{attrs:{target:"update-routerIP","confirm-button":"Update Router IP"},on:{confirm:function(e){return t.adjustRouterIP()}}})],1)],1)],1),e("b-col",{attrs:{lg:"8",md:"6",sm:"12"}},[e("b-card",{attrs:{title:"User Blocked Ports"}},[e("b-card-text",{staticClass:"mb-2"},[t._v(" Update the ports that are not available to be used by FluxOs on your network, you can add up to 100 ports. Ports should be defined one by one separated by comma, ports range will not be considered. ")]),e("div",{staticClass:"text-center"},[e("b-form-input",{staticClass:"mb-2",attrs:{placeholder:"Blocked Ports array"},model:{value:t.blockedPortsInput,callback:function(e){t.blockedPortsInput=e},expression:"blockedPortsInput"}}),e("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],attrs:{id:"update-blockedPorts",variant:"success","aria-label":"Update Blocked Ports"}},[t._v(" Update Blocked Ports ")]),e("confirm-dialog",{attrs:{target:"update-blockedPorts","confirm-button":"Update Blocked Ports"},on:{confirm:function(e){return t.adjustBlockedPorts()}}})],1)],1)],1)],1),e("b-row",{staticClass:"match-height"},[e("b-col",{attrs:{lg:"4",md:"6",sm:"12"}},[e("b-card",{attrs:{title:"API Port"}},[e("b-card-text",[t._v(" Update your API Port. Default one is 16127. You can use 16137, 16147, 16157, 16167, 16177, 16187, 16197 if your node is running under UPNP. ")]),e("div",{staticClass:"text-center"},[e("b-form-input",{staticClass:"mb-2",attrs:{placeholder:"API Port"},model:{value:t.apiPortInput,callback:function(e){t.apiPortInput=e},expression:"apiPortInput"}}),e("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],attrs:{id:"update-apiPort",variant:"success","aria-label":"Update API Port"}},[t._v(" Update API Port ")]),e("confirm-dialog",{attrs:{target:"update-apiPort","confirm-button":"Update API Port"},on:{confirm:function(e){return t.adjustAPIPort()}}})],1)],1)],1),e("b-col",{attrs:{lg:"8",md:"6",sm:"12"}},[e("b-card",{attrs:{title:"User Blocked Repositories"}},[e("b-card-text",{staticClass:"mb-2"},[t._v(" Update the blocked repositories that you don't want to run on your Fluxnode. Marketplace Apps will not be take in consideration. Repositories should be defined as string array one by one separated by comma. ")]),e("div",{staticClass:"text-center"},[e("b-form-input",{staticClass:"mb-2",attrs:{placeholder:"Blocked Repositories array"},model:{value:t.blockedRepositoriesInput,callback:function(e){t.blockedRepositoriesInput=e},expression:"blockedRepositoriesInput"}}),e("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],attrs:{id:"update-blockedRepositories",variant:"success","aria-label":"Update Blocked Repositories"}},[t._v(" Update Blocked Repositories ")]),e("confirm-dialog",{attrs:{target:"update-blockedRepositories","confirm-button":"Update Repositories"},on:{confirm:function(e){return t.adjustBlockedRepositories()}}})],1)],1)],1)],1),e("b-row",{staticClass:"match-height"},[e("b-col",{attrs:{lg:"4",md:"6",sm:"12"}},[e("b-card",{attrs:{title:"Reindexing"}},[e("b-card-text",{staticClass:"mb-1"},[t._v(" Options to reindex Flux databases and so rebuild them from scratch. Reindexing may take several hours and should only be used when an unrecoverable error is present in databases. ")]),e("div",{staticClass:"text-center"},[e("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"mx-1 mt-1",staticStyle:{width:"250px"},attrs:{id:"reindex-flux-databases",variant:"success","aria-label":"Reindex Flux Databases"}},[t._v(" Reindex Flux Databases ")]),e("confirm-dialog",{attrs:{target:"reindex-flux-databases","confirm-button":"Reindex Flux DB"},on:{confirm:function(e){return t.reindexFlux()}}}),e("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"mx-1 mt-1",staticStyle:{width:"250px"},attrs:{id:"reindex-explorer-databases",variant:"success","aria-label":"Reindex Explorer Databases"}},[t._v(" Reindex Explorer Databases ")]),e("confirm-dialog",{attrs:{target:"reindex-explorer-databases","confirm-button":"Reindex Explorer"},on:{confirm:function(e){return t.reindexExplorer()}}})],1)],1)],1),e("b-col",{attrs:{lg:"8",md:"6",sm:"12"}},[e("b-card",{attrs:{title:"Rescanning"}},[e("b-card-text",{staticClass:"mb-2"},[t._v(" Options to rescan Flux databases from a given blockheight and rebuild them since. Rescanning may take several hours and shall be used only when an unrecoverable error is present in databases with a known blockheight. Rescanning Flux databases is a deeper option than just explorer databases and so while rescanning entire Flux databases, explorer parts will be rescanned as well. ")]),e("div",{staticClass:"mb-1",staticStyle:{display:"flex","justify-content":"center","align-items":"center"}},[e("b-card-text",{staticClass:"mr-1 mb-0"},[t._v(" Block Height ")]),e("input-spin-button",{staticStyle:{width:"250px"},attrs:{id:"sb-vertical"},model:{value:t.rescanFluxHeight,callback:function(e){t.rescanFluxHeight=e},expression:"rescanFluxHeight"}}),e("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"mx-1",staticStyle:{width:"250px"},attrs:{id:"rescan-flux-db",variant:"success","aria-label":"Rescan Flux Databases"}},[t._v(" Rescan Flux Databases ")]),e("confirm-dialog",{attrs:{target:"rescan-flux-db","confirm-button":"Rescan Flux DB"},on:{confirm:function(e){return t.rescanFlux()}}})],1),e("div",{staticStyle:{display:"flex","justify-content":"center","align-items":"center"}},[e("b-card-text",{staticClass:"mr-1 mb-0"},[t._v(" Block Height ")]),e("input-spin-button",{staticStyle:{width:"250px"},attrs:{id:"sb-vertical"},model:{value:t.rescanExplorerHeight,callback:function(e){t.rescanExplorerHeight=e},expression:"rescanExplorerHeight"}}),e("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"mx-1",staticStyle:{width:"250px"},attrs:{id:"rescan-explorer-db",variant:"success","aria-label":"Rescan Explorer Databases"}},[t._v(" Rescan Explorer Databases ")]),e("confirm-dialog",{attrs:{target:"rescan-explorer-db","confirm-button":"Rescan Explorer"},on:{confirm:function(e){return t.rescanExplorer()}}})],1)],1)],1)],1),e("b-row",{staticClass:"match-height"},[e("b-col",{attrs:{xs:"12"}},[e("b-card",{attrs:{title:"Rescanning Global Apps"}},[e("b-card-text",{staticClass:"mb-1"},[t._v(" Options to rescan Flux Global Application Database from a given blockheight and rebuild them since. Rescanning may take several hours and shall be used only when an unrecoverable error is present in databases with a known blockheight. If remove Last Information is wished. The current specifics will be dropped instead making it more deep option. ")]),e("div",{staticStyle:{display:"flex","justify-content":"center","align-items":"center"}},[e("b-card-text",{staticClass:"mr-1 mb-0"},[t._v(" Block Height ")]),e("input-spin-button",{staticStyle:{width:"250px"},attrs:{id:"sb-vertical"},model:{value:t.rescanGlobalAppsHeight,callback:function(e){t.rescanGlobalAppsHeight=e},expression:"rescanGlobalAppsHeight"}}),e("b-form-checkbox",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover:bottom",value:t.removeLastInformation?"Remove last app information":"Do NOT remove last app information",expression:"removeLastInformation ? 'Remove last app information' : 'Do NOT remove last app information'",modifiers:{"hover:bottom":!0}}],staticClass:"custom-control-success ml-1",attrs:{name:"check-button",switch:""},model:{value:t.removeLastInformation,callback:function(e){t.removeLastInformation=e},expression:"removeLastInformation"}}),e("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"mx-1",attrs:{id:"rescan-global-apps",variant:"success","aria-label":"Rescan Global Apps Information"}},[t._v(" Rescan Global Apps Information ")]),e("confirm-dialog",{attrs:{target:"rescan-global-apps","confirm-button":"Rescan Apps"},on:{confirm:function(e){return t.rescanGlobalApps()}}})],1)],1)],1)],1),e("b-row",{staticClass:"match-height"},[e("b-col",{attrs:{xs:"12",md:"6",lg:"4"}},[e("b-card",{attrs:{title:"Global App Information"}},[e("b-card-text",[t._v(" Reindexes Flux Global Application Database and rebuilds them entirely from stored permanent messages. Reindexing may take a few hours and shall be used only when an unrecoverable error is present. ")]),e("div",{staticClass:"text-center"},[e("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"mt-2",attrs:{id:"reindex-global-apps",variant:"success","aria-label":"Reindex Global Apps Information"}},[t._v(" Reindex Global Apps Information ")]),e("confirm-dialog",{attrs:{target:"reindex-global-apps","confirm-button":"Reindex Apps"},on:{confirm:function(e){return t.reindexGlobalApps()}}})],1)],1)],1),e("b-col",{attrs:{xs:"12",md:"6",lg:"4"}},[e("b-card",{attrs:{title:"Global App Locations"}},[e("b-card-text",[t._v(" Reindexes Flux Global Application Locations and rebuilds them from newly incoming messages. Shall be used only when index has inconsistencies. ")]),e("div",{staticClass:"text-center"},[e("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"mt-2",attrs:{id:"reindex-global-apps-locations",variant:"success","aria-label":"Reindex Global Apps Locations"}},[t._v(" Reindex Global Apps Locations ")]),e("confirm-dialog",{attrs:{target:"reindex-global-apps-locations","confirm-button":"Reindex Locations"},on:{confirm:function(e){return t.reindexLocations()}}})],1)],1)],1),e("b-col",{attrs:{xs:"12",lg:"4"}},[e("b-card",{attrs:{title:"Block Processing"}},[e("b-card-text",[t._v(" These options manage Flux block processing which is a crucial process for Explorer and Apps functionality. Useful when Block Processing encounters an error and is stuck. Use with caution! ")]),e("div",{staticClass:"text-center"},[e("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"mx-1 my-1",staticStyle:{width:"250px"},attrs:{id:"restart-block-processing",variant:"success","aria-label":"Restart Block Processing"}},[t._v(" Restart Block Processing ")]),e("confirm-dialog",{attrs:{target:"restart-block-processing","confirm-button":"Restart Processing"},on:{confirm:function(e){return t.restartBlockProcessing()}}}),e("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"mx-1 my-1",staticStyle:{width:"250px"},attrs:{id:"stop-block-processing",variant:"success","aria-label":"Stop Block Processing"}},[t._v(" Stop Block Processing ")]),e("confirm-dialog",{attrs:{target:"stop-block-processing","confirm-button":"Stop Processing"},on:{confirm:function(e){return t.stopBlockProcessing()}}})],1)],1)],1),e("b-col",{attrs:{xs:"12",lg:"4"}},[e("b-card",{attrs:{title:"Application Monitoring"}},[e("b-card-text",[t._v(" Application on Flux are monitoring it's usage statistics to provide application owner data about application performance. ")]),e("div",{staticClass:"text-center"},[e("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"mx-1 my-1",staticStyle:{width:"250px"},attrs:{id:"start-app-monitoring",variant:"success","aria-label":"Start Applications Monitoring"}},[t._v(" Start Applications Monitoring ")]),e("confirm-dialog",{attrs:{target:"rstart-app-monitoring","confirm-button":"Start Applications Monitoring"},on:{confirm:function(e){return t.startApplicationsMonitoring()}}}),e("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"mx-1 my-1",staticStyle:{width:"250px"},attrs:{id:"stop-app-monitoring",variant:"success","aria-label":"Stop Applications Monitoring"}},[t._v(" Stop Applications Monitoring ")]),e("confirm-dialog",{attrs:{target:"stop-app-monitoring","confirm-button":"Stop Applications Monitoring"},on:{confirm:function(e){return t.stopApplicationsMonitoring(!1)}}}),e("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"mx-1 my-1",staticStyle:{width:"250px"},attrs:{id:"stop-app-monitoring-delete",variant:"success","aria-label":"Stop Applications Monitoring and Delete Monitored Data"}},[t._v(" Stop Applications Monitoring and Delete Monitored Data ")]),e("confirm-dialog",{attrs:{target:"stop-app-monitoring-delete","confirm-button":"Stop Applications Monitoring and Delete Monitored Data"},on:{confirm:function(e){return t.stopApplicationsMonitoring(!0)}}})],1)],1)],1),e("b-col",{attrs:{xs:"12",lg:"4"}},[e("b-card",{attrs:{title:"FluxOS"}},[e("b-card-text",[t._v(" The restart button in FluxOS allows you to restart the application. Clicking it will close and immediately restart the application, but please note that this action requires refreshing the page and logging out and logging in again. ")]),e("div",{staticClass:"text-center"},[e("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"mt-2",attrs:{id:"restart-fluxos",variant:"success","aria-label":"Restart FluxOS"}},[t._v(" Restart FluxOS ")]),e("confirm-dialog",{attrs:{target:"restart-fluxos","confirm-button":"Restart"},on:{confirm:function(e){return t.restartFluxOS()}}})],1)],1)],1)],1)],1)},r=[],o=a(20629),i=a(86855),n=a(26253),l=a(50725),c=a(64206),d=a(15193),p=a(19692),u=a(22183),g=a(44390),h=a(31220),m=a(45752),b=a(5870),x=a(34547),f=a(20266),v=a(87066),w=a(87156),y=a(90410),k=a(39055),I=a(20702),Z=a(43672);const P=a(80129),A={components:{BCard:i._,BRow:n.T,BCol:l.l,BCardText:c.j,BButton:d.T,BFormCheckbox:p.l,BFormInput:u.e,BFormSpinbutton:g.G,BModal:h.N,BProgress:m.D,ConfirmDialog:w.Z,ToastificationContent:x.Z,InputSpinButton:y.Z},directives:{"b-tooltip":b.o,Ripple:f.Z},data(){return{rescanFluxHeight:0,rescanExplorerHeight:0,rescanGlobalAppsHeight:0,kadenaAccountInput:"",kadenaChainIDInput:0,routerIPInput:"",blockedPortsInput:"[]",apiPortInput:16127,blockedRepositoriesInput:"[]",removeLastInformation:!1,updateDialogVisible:!1,updateProgress:0}},computed:{...(0,o.rn)("flux",["fluxVersion"]),currentLoginPhrase(){const t=localStorage.getItem("zelidauth"),e=P.parse(t);return e.loginPhrase}},mounted(){this.getKadenaAccount(),this.getRouterIP(),this.getBlockedPorts(),this.getLatestFluxVersion(),this.getAPIPort(),this.getBlockedRepositories()},methods:{async restartFluxOS(){const t=localStorage.getItem("zelidauth");try{const e=await k.Z.restartFluxOS(t);"error"===e.data.status?this.showToast("danger",e.data.data.message||e.data.data):this.showToast("success",e.data.data.message||e.data.data)}catch(e){this.showToast("danger",e.message||e)}},async getKadenaAccount(){const t=await k.Z.getKadenaAccount();if("success"===t.data.status&&t.data.data){const e=t.data.data.split("?chainid="),a=e.pop(),s=e.join("?chainid=").slice(7);this.kadenaAccountInput=s,this.kadenaChainIDInput=Number(a)}},async getRouterIP(){const t=await k.Z.getRouterIP();"success"===t.data.status&&t.data.data&&(this.routerIPInput=t.data.data)},async getBlockedPorts(){const t=await k.Z.getBlockedPorts();"success"===t.data.status&&t.data.data&&(this.blockedPortsInput=JSON.stringify(t.data.data))},async getAPIPort(){const t=await k.Z.getAPIPort();"success"===t.data.status&&t.data.data&&(this.apiPortInput=t.data.data)},async getBlockedRepositories(){const t=await k.Z.getBlockedRepositories();"success"===t.data.status&&t.data.data&&(this.blockedRepositoriesInput=JSON.stringify(t.data.data))},getLatestFluxVersion(){const t=this;v["default"].get("https://raw.githubusercontent.com/runonflux/flux/master/package.json").then((e=>{console.log(e),e.data.version!==t.fluxVersion?this.showToast("warning","Flux requires an update!"):this.showToast("success","Flux is up to date")})).catch((t=>{console.log(t),this.showToast("danger","Error verifying recent version")}))},async adjustKadena(){const t=this.kadenaAccountInput,e=this.kadenaChainIDInput,a=localStorage.getItem("zelidauth");try{const s=await k.Z.adjustKadena(a,t,e);"error"===s.data.status?this.showToast("danger",s.data.data.message||s.data.data):this.showToast("success",s.data.data.message||s.data.data)}catch(s){this.showToast("danger",s.message||s)}},async adjustRouterIP(){const t=this.routerIPInput,e=localStorage.getItem("zelidauth");try{const a=await k.Z.adjustRouterIP(e,t);"error"===a.data.status?this.showToast("danger",a.data.data.message||a.data.data):this.showToast("success",a.data.data.message||a.data.data)}catch(a){this.showToast("danger",a.message||a)}},async adjustBlockedPorts(){const t=localStorage.getItem("zelidauth");try{const e=JSON.parse(this.blockedPortsInput),a=await k.Z.adjustBlockedPorts(t,e);"error"===a.data.status?this.showToast("danger",a.data.data.message||a.data.data):this.showToast("success",a.data.data.message||a.data.data)}catch(e){this.showToast("danger",e.message||e)}},async adjustAPIPort(){const t=this.apiPortInput,e=localStorage.getItem("zelidauth"),a=[16127,16137,16147,16157,16167,16177,16187,16197];a.includes(t)||this.showToast("danger","API Port not valid");try{const a=await k.Z.adjustAPIPort(e,t);"error"===a.data.status?this.showToast("danger",a.data.data.message||a.data.data):this.showToast("success",a.data.data.message||a.data.data)}catch(s){this.showToast("danger",s.message||s)}},async adjustBlockedRepositories(){const t=localStorage.getItem("zelidauth");try{const e=JSON.parse(this.blockedRepositoriesInput),a=await k.Z.adjustBlockedRepositories(t,e);"error"===a.data.status?this.showToast("danger",a.data.data.message||a.data.data):this.showToast("success",a.data.data.message||a.data.data)}catch(e){this.showToast("danger",e.message||e)}},updateHardWay(){const t=localStorage.getItem("zelidauth"),e=P.parse(t);console.log(e),this.showToast("warning","Flux is now being forcefully updated in the background"),k.Z.hardUpdateFlux(t).then((t=>{console.log(t),"error"===t.data.status&&this.showToast("danger",t.data.data.message||t.data.data)})).catch((t=>{console.log(t),console.log(t.code),this.showToast("danger",t.toString())}))},rescanExplorer(){this.showToast("warning","Explorer will now rescan");const t=localStorage.getItem("zelidauth"),e=this.rescanExplorerHeight>0?this.rescanExplorerHeight:0;I.Z.rescanExplorer(t,e).then((t=>{"error"===t.data.status?this.showToast("danger",t.data.data.message||t.data.data):this.showToast("success",t.data.data.message||t.data.data)})).catch((t=>{console.log(t),this.showToast("danger","Error while trying to rescan Explorer")}))},rescanFlux(){this.showToast("warning","Flux will now rescan");const t=localStorage.getItem("zelidauth"),e=this.rescanFluxHeight>0?this.rescanFluxHeight:0;I.Z.rescanFlux(t,e).then((t=>{"error"===t.data.status?this.showToast("danger",t.data.data.message||t.data.data):this.showToast("success",t.data.data.message||t.data.data)})).catch((t=>{console.log(t),this.showToast("danger","Error while trying to rescan Flux")}))},reindexExplorer(){const t=localStorage.getItem("zelidauth"),e=P.parse(t);console.log(e),this.showToast("warning","Explorer databases will begin to reindex soon"),I.Z.reindexExplorer(t).then((t=>{console.log(t),"error"===t.data.status&&this.showToast("danger",t.data.data.message||t.data.data),"success"===t.data.status&&this.showToast("success",t.data.data.message||t.data.data)})).catch((t=>{console.log(t),console.log(t.code),this.showToast("danger",t.toString())}))},reindexFlux(){const t=localStorage.getItem("zelidauth"),e=P.parse(t);console.log(e),this.showToast("warning","Flux databases will begin to reindex soon"),I.Z.reindexFlux(t).then((t=>{console.log(t),"error"===t.data.status&&this.showToast("danger",t.data.data.message||t.data.data),"success"===t.data.status&&this.showToast("success",t.data.data.message||t.data.data)})).catch((t=>{console.log(t),console.log(t.code),this.showToast("danger",t.toString())}))},reindexGlobalApps(){const t=localStorage.getItem("zelidauth"),e=P.parse(t);console.log(e),this.showToast("warning","Global Applications information will reindex soon"),Z.Z.reindexGlobalApps(t).then((t=>{console.log(t),"error"===t.data.status&&this.showToast("danger",t.data.data.message||t.data.data),"success"===t.data.status&&this.showToast("succeess",t.data.data.message||t.data.data)})).catch((t=>{console.log(t),console.log(t.code),this.showToast("danger",t.toString())}))},reindexLocations(){const t=localStorage.getItem("zelidauth");this.showToast("warning","Global Applications location will reindex soon"),Z.Z.reindexLocations(t).then((t=>{console.log(t),"error"===t.data.status&&this.showToast("danger",t.data.data.message||t.data.data),"success"===t.data.status&&this.showToast("success",t.data.data.message||t.data.data)})).catch((t=>{this.showToast("danger",t.toString())}))},rescanGlobalApps(){const t=localStorage.getItem("zelidauth"),e=P.parse(t);console.log(e),this.showToast("warning","Global Applications information will be rescanned soon");const a=this.rescanExplorerHeight>0?this.rescanExplorerHeight:0;Z.Z.rescanGlobalApps(t,a,this.removeLastInformation).then((t=>{console.log(t),"error"===t.data.status&&this.showToast("danger",t.data.data.message||t.data.data),"success"===t.data.status&&this.showToast("success",t.data.data.message||t.data.data)})).catch((t=>{console.log(t),console.log(t.code),this.showToast("danger",t.toString())}))},restartBlockProcessing(){const t=localStorage.getItem("zelidauth");this.showToast("warning","Restarting block processing"),I.Z.restartBlockProcessing(t).then((t=>{console.log(t),"error"===t.data.status&&this.showToast("danger",t.data.data.message||t.data.data),"success"===t.data.status&&this.showToast("success",t.data.data.message||t.data.data)})).catch((t=>{this.showToast("danger",t.toString())}))},stopBlockProcessing(){const t=localStorage.getItem("zelidauth");this.showToast("warning","Stopping block processing"),I.Z.stopBlockProcessing(t).then((t=>{console.log(t),"error"===t.data.status&&this.showToast("danger",t.data.data.message||t.data.data),"success"===t.data.status&&this.showToast("success",t.data.data.message||t.data.data)})).catch((t=>{this.showToast("danger",t.toString())}))},updateFlux(){const t=localStorage.getItem("zelidauth"),e=P.parse(t);console.log(e);const a=this;v["default"].get("https://raw.githubusercontent.com/runonflux/flux/master/package.json").then((e=>{if(console.log(e),e.data.version!==a.fluxVersion){this.showToast("warning","Flux is now updating in the background"),a.updateDialogVisible=!0,a.updateProgress=5;const e=setInterval((()=>{99===a.updateProgress?a.updateProgress+=1:a.updateProgress+=2,a.updateProgress>=100&&(clearInterval(e),this.showToast("success","Update completed. Flux will now reload"),setTimeout((()=>{a.updateDialogVisible&&window.location.reload(!0)}),5e3)),a.updateDialogVisible||(clearInterval(e),a.updateProgress=0)}),1e3);k.Z.softUpdateInstallFlux(t).then((t=>{console.log(t),"error"===t.data.status&&this.showToast("danger",t.data.data.message||t.data.data),401===t.data.data.code&&(a.updateDialogVisible=!1,a.updateProgress=0)})).catch((t=>{console.log(t),console.log(t.code),"Error: Network Error"===t.toString()?a.updateProgress=50:(a.updateDialogVisible=!1,a.updateProgress=0,this.showToast("danger",t.toString()))}))}else this.showToast("success","Flux is already up to date.")})).catch((t=>{console.log(t),this.showToast("danger","Error verifying recent version")}))},async stopMonitoring(t=!1){this.output="",this.showToast("warning","Stopping Applications Monitoring");const e=localStorage.getItem("zelidauth"),a=await Z.Z.stopAppMonitoring(e,null,t);"success"===a.data.status?this.showToast("success",a.data.data.message||a.data.data):this.showToast("danger",a.data.data.message||a.data.data),console.log(a)},async startMonitoring(){this.output="",this.showToast("warning","Starting Applications Monitoring");const t=localStorage.getItem("zelidauth"),e=await Z.Z.startAppMonitoring(t);"success"===e.data.status?this.showToast("success",e.data.data.message||e.data.data):this.showToast("danger",e.data.data.message||e.data.data),console.log(e)},showToast(t,e,a="InfoIcon"){this.$toast({component:x.Z,props:{title:e,icon:a,variant:t}})}}},S=A;var C=a(1001),F=(0,C.Z)(S,s,r,!1,null,null,null);const T=F.exports},43672:(t,e,a)=>{a.d(e,{Z:()=>r});var s=a(80914);const r={listRunningApps(){const t={headers:{"x-apicache-bypass":!0}};return(0,s.Z)().get("/apps/listrunningapps",t)},listAllApps(){const t={headers:{"x-apicache-bypass":!0}};return(0,s.Z)().get("/apps/listallapps",t)},installedApps(){const t={headers:{"x-apicache-bypass":!0}};return(0,s.Z)().get("/apps/installedapps",t)},availableApps(){return(0,s.Z)().get("/apps/availableapps")},getEnterpriseNodes(){return(0,s.Z)().get("/apps/enterprisenodes")},stopApp(t,e){const a={headers:{zelidauth:t,"x-apicache-bypass":!0}};return(0,s.Z)().get(`/apps/appstop/${e}`,a)},startApp(t,e){const a={headers:{zelidauth:t}};return(0,s.Z)().get(`/apps/appstart/${e}`,a)},pauseApp(t,e){const a={headers:{zelidauth:t}};return(0,s.Z)().get(`/apps/apppause/${e}`,a)},unpauseApp(t,e){const a={headers:{zelidauth:t}};return(0,s.Z)().get(`/apps/appunpause/${e}`,a)},restartApp(t,e){const a={headers:{zelidauth:t}};return(0,s.Z)().get(`/apps/apprestart/${e}`,a)},removeApp(t,e){const a={headers:{zelidauth:t},onDownloadProgress(t){console.log(t)}};return(0,s.Z)().get(`/apps/appremove/${e}`,a)},registerApp(t,e){const a={headers:{zelidauth:t}};return(0,s.Z)().post("/apps/appregister",JSON.stringify(e),a)},updateApp(t,e){const a={headers:{zelidauth:t}};return(0,s.Z)().post("/apps/appupdate",JSON.stringify(e),a)},checkCommunication(){return(0,s.Z)().get("/flux/checkcommunication")},checkDockerExistance(t,e){const a={headers:{zelidauth:t}};return(0,s.Z)().post("/apps/checkdockerexistance",JSON.stringify(e),a)},appsRegInformation(){return(0,s.Z)().get("/apps/registrationinformation")},appsDeploymentInformation(){return(0,s.Z)().get("/apps/deploymentinformation")},getAppLocation(t){return(0,s.Z)().get(`/apps/location/${t}`)},globalAppSpecifications(){return(0,s.Z)().get("/apps/globalappsspecifications")},permanentMessagesOwner(t){return(0,s.Z)().get(`/apps/permanentmessages?owner=${t}`)},getInstalledAppSpecifics(t){return(0,s.Z)().get(`/apps/installedapps/${t}`)},getAppSpecifics(t){return(0,s.Z)().get(`/apps/appspecifications/${t}`)},getAppOwner(t){return(0,s.Z)().get(`/apps/appowner/${t}`)},getAppLogsTail(t,e){const a={headers:{zelidauth:t}};return(0,s.Z)().get(`/apps/applog/${e}/100`,a)},getAppTop(t,e){const a={headers:{zelidauth:t}};return(0,s.Z)().get(`/apps/apptop/${e}`,a)},getAppInspect(t,e){const a={headers:{zelidauth:t}};return(0,s.Z)().get(`/apps/appinspect/${e}`,a)},getAppStats(t,e){const a={headers:{zelidauth:t}};return(0,s.Z)().get(`/apps/appstats/${e}`,a)},getAppChanges(t,e){const a={headers:{zelidauth:t}};return(0,s.Z)().get(`/apps/appchanges/${e}`,a)},getAppExec(t,e,a,r){const o={headers:{zelidauth:t}},i={appname:e,cmd:a,env:JSON.parse(r)};return(0,s.Z)().post("/apps/appexec",JSON.stringify(i),o)},reindexGlobalApps(t){return(0,s.Z)().get("/apps/reindexglobalappsinformation",{headers:{zelidauth:t}})},reindexLocations(t){return(0,s.Z)().get("/apps/reindexglobalappslocation",{headers:{zelidauth:t}})},rescanGlobalApps(t,e,a){return(0,s.Z)().get(`/apps/rescanglobalappsinformation/${e}/${a}`,{headers:{zelidauth:t}})},getFolder(t,e){return(0,s.Z)().get(`/apps/fluxshare/getfolder/${e}`,{headers:{zelidauth:t}})},createFolder(t,e){return(0,s.Z)().get(`/apps/fluxshare/createfolder/${e}`,{headers:{zelidauth:t}})},getFile(t,e){return(0,s.Z)().get(`/apps/fluxshare/getfile/${e}`,{headers:{zelidauth:t}})},removeFile(t,e){return(0,s.Z)().get(`/apps/fluxshare/removefile/${e}`,{headers:{zelidauth:t}})},shareFile(t,e){return(0,s.Z)().get(`/apps/fluxshare/sharefile/${e}`,{headers:{zelidauth:t}})},unshareFile(t,e){return(0,s.Z)().get(`/apps/fluxshare/unsharefile/${e}`,{headers:{zelidauth:t}})},removeFolder(t,e){return(0,s.Z)().get(`/apps/fluxshare/removefolder/${e}`,{headers:{zelidauth:t}})},fileExists(t,e){return(0,s.Z)().get(`/apps/fluxshare/fileexists/${e}`,{headers:{zelidauth:t}})},storageStats(t){return(0,s.Z)().get("/apps/fluxshare/stats",{headers:{zelidauth:t}})},renameFileFolder(t,e,a){return(0,s.Z)().get(`/apps/fluxshare/rename/${e}/${a}`,{headers:{zelidauth:t}})},appPrice(t){return(0,s.Z)().post("/apps/calculateprice",JSON.stringify(t))},appPriceUSDandFlux(t){return(0,s.Z)().post("/apps/calculatefiatandfluxprice",JSON.stringify(t))},appRegistrationVerificaiton(t){return(0,s.Z)().post("/apps/verifyappregistrationspecifications",JSON.stringify(t))},appUpdateVerification(t){return(0,s.Z)().post("/apps/verifyappupdatespecifications",JSON.stringify(t))},getAppMonitoring(t,e){const a={headers:{zelidauth:t}};return(0,s.Z)().get(`/apps/appmonitor/${e}`,a)},startAppMonitoring(t,e){const a={headers:{zelidauth:t}};return e?(0,s.Z)().get(`/apps/startmonitoring/${e}`,a):(0,s.Z)().get("/apps/startmonitoring",a)},stopAppMonitoring(t,e,a){const r={headers:{zelidauth:t}};return e&&a?(0,s.Z)().get(`/apps/stopmonitoring/${e}/${a}`,r):e?(0,s.Z)().get(`/apps/stopmonitoring/${e}`,r):a?(0,s.Z)().get(`/apps/stopmonitoring?deletedata=${a}`,r):(0,s.Z)().get("/apps/stopmonitoring",r)},justAPI(){return(0,s.Z)()}}},20702:(t,e,a)=>{a.d(e,{Z:()=>r});var s=a(80914);const r={getAddressBalance(t){return(0,s.Z)().get(`/explorer/balance/${t}`)},getAddressTransactions(t){return(0,s.Z)().get(`/explorer/transactions/${t}`)},getScannedHeight(){return(0,s.Z)().get("/explorer/scannedheight")},reindexExplorer(t){return(0,s.Z)().get("/explorer/reindex/false",{headers:{zelidauth:t}})},reindexFlux(t){return(0,s.Z)().get("/explorer/reindex/true",{headers:{zelidauth:t}})},rescanExplorer(t,e){return(0,s.Z)().get(`/explorer/rescan/${e}/false`,{headers:{zelidauth:t}})},rescanFlux(t,e){return(0,s.Z)().get(`/explorer/rescan/${e}/true`,{headers:{zelidauth:t}})},restartBlockProcessing(t){return(0,s.Z)().get("/explorer/restart",{headers:{zelidauth:t}})},stopBlockProcessing(t){return(0,s.Z)().get("/explorer/stop",{headers:{zelidauth:t}})}}},39055:(t,e,a)=>{a.d(e,{Z:()=>r});var s=a(80914);const r={softUpdateFlux(t){return(0,s.Z)().get("/flux/softupdateflux",{headers:{zelidauth:t}})},softUpdateInstallFlux(t){return(0,s.Z)().get("/flux/softupdatefluxinstall",{headers:{zelidauth:t}})},updateFlux(t){return(0,s.Z)().get("/flux/updateflux",{headers:{zelidauth:t}})},hardUpdateFlux(t){return(0,s.Z)().get("/flux/hardupdateflux",{headers:{zelidauth:t}})},rebuildHome(t){return(0,s.Z)().get("/flux/rebuildhome",{headers:{zelidauth:t}})},updateDaemon(t){return(0,s.Z)().get("/flux/updatedaemon",{headers:{zelidauth:t}})},reindexDaemon(t){return(0,s.Z)().get("/flux/reindexdaemon",{headers:{zelidauth:t}})},updateBenchmark(t){return(0,s.Z)().get("/flux/updatebenchmark",{headers:{zelidauth:t}})},getFluxVersion(){return(0,s.Z)().get("/flux/version")},broadcastMessage(t,e){const a=e,r={headers:{zelidauth:t}};return(0,s.Z)().post("/flux/broadcastmessage",JSON.stringify(a),r)},connectedPeers(){return(0,s.Z)().get(`/flux/connectedpeers?timestamp=${Date.now()}`)},connectedPeersInfo(){return(0,s.Z)().get(`/flux/connectedpeersinfo?timestamp=${Date.now()}`)},incomingConnections(){return(0,s.Z)().get(`/flux/incomingconnections?timestamp=${Date.now()}`)},incomingConnectionsInfo(){return(0,s.Z)().get(`/flux/incomingconnectionsinfo?timestamp=${Date.now()}`)},addPeer(t,e){return(0,s.Z)().get(`/flux/addpeer/${e}`,{headers:{zelidauth:t}})},removePeer(t,e){return(0,s.Z)().get(`/flux/removepeer/${e}`,{headers:{zelidauth:t}})},removeIncomingPeer(t,e){return(0,s.Z)().get(`/flux/removeincomingpeer/${e}`,{headers:{zelidauth:t}})},adjustKadena(t,e,a){return(0,s.Z)().get(`/flux/adjustkadena/${e}/${a}`,{headers:{zelidauth:t}})},adjustRouterIP(t,e){return(0,s.Z)().get(`/flux/adjustrouterip/${e}`,{headers:{zelidauth:t}})},adjustBlockedPorts(t,e){const a={blockedPorts:e},r={headers:{zelidauth:t}};return(0,s.Z)().post("/flux/adjustblockedports",a,r)},adjustAPIPort(t,e){return(0,s.Z)().get(`/flux/adjustapiport/${e}`,{headers:{zelidauth:t}})},adjustBlockedRepositories(t,e){const a={blockedRepositories:e},r={headers:{zelidauth:t}};return(0,s.Z)().post("/flux/adjustblockedrepositories",a,r)},getKadenaAccount(){const t={headers:{"x-apicache-bypass":!0}};return(0,s.Z)().get("/flux/kadena",t)},getRouterIP(){const t={headers:{"x-apicache-bypass":!0}};return(0,s.Z)().get("/flux/routerip",t)},getBlockedPorts(){const t={headers:{"x-apicache-bypass":!0}};return(0,s.Z)().get("/flux/blockedports",t)},getAPIPort(){const t={headers:{"x-apicache-bypass":!0}};return(0,s.Z)().get("/flux/apiport",t)},getBlockedRepositories(){const t={headers:{"x-apicache-bypass":!0}};return(0,s.Z)().get("/flux/blockedrepositories",t)},getMarketPlaceURL(){return(0,s.Z)().get("/flux/marketplaceurl")},getZelid(){const t={headers:{"x-apicache-bypass":!0}};return(0,s.Z)().get("/flux/zelid",t)},getStaticIpInfo(){return(0,s.Z)().get("/flux/staticip")},restartFluxOS(t){const e={headers:{zelidauth:t,"x-apicache-bypass":!0}};return(0,s.Z)().get("/flux/restart",e)},tailFluxLog(t,e){return(0,s.Z)().get(`/flux/tail${t}log`,{headers:{zelidauth:e}})},justAPI(){return(0,s.Z)()},cancelToken(){return s.S}}}}]); \ No newline at end of file diff --git a/HomeUI/dist/js/7031.js b/HomeUI/dist/js/7031.js index 33823c375..d94b3cf48 100644 --- a/HomeUI/dist/js/7031.js +++ b/HomeUI/dist/js/7031.js @@ -1 +1 @@ -"use strict";(globalThis["webpackChunkflux"]=globalThis["webpackChunkflux"]||[]).push([[7031],{34547:(t,e,r)=>{r.d(e,{Z:()=>u});var a=function(){var t=this,e=t._self._c;return e("div",{staticClass:"toastification"},[e("div",{staticClass:"d-flex align-items-start"},[e("b-avatar",{staticClass:"mr-75 flex-shrink-0",attrs:{variant:t.variant,size:"1.8rem"}},[e("feather-icon",{attrs:{icon:t.icon,size:"15"}})],1),e("div",{staticClass:"d-flex flex-grow-1"},[e("div",[t.title?e("h5",{staticClass:"mb-0 font-weight-bolder toastification-title",class:`text-${t.variant}`,domProps:{textContent:t._s(t.title)}}):t._e(),t.text?e("small",{staticClass:"d-inline-block text-body",domProps:{textContent:t._s(t.text)}}):t._e()]),e("span",{staticClass:"cursor-pointer toastification-close-icon ml-auto",on:{click:function(e){return t.$emit("close-toast")}}},[t.hideClose?t._e():e("feather-icon",{staticClass:"text-body",attrs:{icon:"XIcon"}})],1)])],1)])},n=[],s=r(47389);const i={components:{BAvatar:s.SH},props:{variant:{type:String,default:"primary"},icon:{type:String,default:null},title:{type:String,default:null},text:{type:String,default:null},hideClose:{type:Boolean,default:!1}}},o=i;var l=r(1001),c=(0,l.Z)(o,a,n,!1,null,"22d964ca",null);const u=c.exports},7031:(t,e,r)=>{r.r(e),r.d(e,{default:()=>b});var a=function(){var t=this,e=t._self._c;return e("b-card",[e("div",[e("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"ml-1",attrs:{id:"restart-benchmark",variant:"outline-primary",size:"md"}},[t._v(" Restart Benchmark ")]),e("confirm-dialog",{attrs:{target:"restart-benchmark","confirm-button":"Restart Benchmark"},on:{confirm:t.onOk}}),e("b-modal",{attrs:{id:"modal-center",centered:"",title:"Benchmark Restart","ok-only":"","ok-title":"OK"},model:{value:t.modalShow,callback:function(e){t.modalShow=e},expression:"modalShow"}},[e("b-card-text",[t._v(" The benchmark will now be restarted. ")])],1)],1)])},n=[],s=r(86855),i=r(15193),o=r(31220),l=r(64206),c=r(34547),u=r(20266),d=r(87156),h=r(39569);const m={components:{BCard:s._,BButton:i.T,BModal:o.N,BCardText:l.j,ConfirmDialog:d.Z,ToastificationContent:c.Z},directives:{Ripple:u.Z},data(){return{modalShow:!1}},methods:{onOk(){this.modalShow=!0;const t=localStorage.getItem("zelidauth");h.Z.restart(t).then((t=>{this.showToast("success",t.data.data.message||t.data.data)})).catch((()=>{this.showToast("danger","Error while trying to restart Benchmark")}))},showToast(t,e,r="InfoIcon"){this.$toast({component:c.Z,props:{title:e,icon:r,variant:t}})}}},p=m;var f=r(1001),g=(0,f.Z)(p,a,n,!1,null,null,null);const b=g.exports},87156:(t,e,r)=>{r.d(e,{Z:()=>h});var a=function(){var t=this,e=t._self._c;return e("b-popover",{ref:"popover",attrs:{target:`${t.target}`,triggers:"click blur",show:t.show,placement:"auto",container:"my-container","custom-class":`confirm-dialog-${t.width}`},on:{"update:show":function(e){t.show=e}},scopedSlots:t._u([{key:"title",fn:function(){return[e("div",{staticClass:"d-flex justify-content-between align-items-center"},[e("span",[t._v(t._s(t.title))]),e("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"close",attrs:{variant:"transparent","aria-label":"Close"},on:{click:function(e){t.show=!1}}},[e("span",{staticClass:"d-inline-block text-white",attrs:{"aria-hidden":"true"}},[t._v("×")])])],1)]},proxy:!0}])},[e("div",{staticClass:"text-center"},[e("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"mr-1",attrs:{size:"sm",variant:"danger"},on:{click:function(e){t.show=!1}}},[t._v(" "+t._s(t.cancelButton)+" ")]),e("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],attrs:{size:"sm",variant:"primary"},on:{click:function(e){return t.confirm()}}},[t._v(" "+t._s(t.confirmButton)+" ")])],1)])},n=[],s=r(15193),i=r(53862),o=r(20266);const l={components:{BButton:s.T,BPopover:i.x},directives:{Ripple:o.Z},props:{target:{type:String,required:!0},title:{type:String,required:!1,default:"Are You Sure?"},cancelButton:{type:String,required:!1,default:"Cancel"},confirmButton:{type:String,required:!0},width:{type:Number,required:!1,default:300}},data(){return{show:!1}},methods:{confirm(){this.show=!1,this.$emit("confirm")}}},c=l;var u=r(1001),d=(0,u.Z)(c,a,n,!1,null,null,null);const h=d.exports},39569:(t,e,r)=>{r.d(e,{Z:()=>n});var a=r(80914);const n={start(t){return(0,a.Z)().get("/benchmark/start",{headers:{zelidauth:t}})},restart(t){return(0,a.Z)().get("/benchmark/restart",{headers:{zelidauth:t}})},getStatus(){return(0,a.Z)().get("/benchmark/getstatus")},restartNodeBenchmarks(t){return(0,a.Z)().get("/benchmark/restartnodebenchmarks",{headers:{zelidauth:t}})},signFluxTransaction(t,e){return(0,a.Z)().get(`/benchmark/signzelnodetransaction/${e}`,{headers:{zelidauth:t}})},helpSpecific(t){return(0,a.Z)().get(`/benchmark/help/${t}`)},help(){return(0,a.Z)().get("/benchmark/help")},stop(t){return(0,a.Z)().get("/benchmark/stop",{headers:{zelidauth:t}})},getBenchmarks(){return(0,a.Z)().get("/benchmark/getbenchmarks")},getInfo(){return(0,a.Z)().get("/benchmark/getinfo")},tailBenchmarkDebug(t){return(0,a.Z)().get("/flux/tailbenchmarkdebug",{headers:{zelidauth:t}})},justAPI(){return(0,a.Z)()},cancelToken(){return a.S}}}}]); \ No newline at end of file +"use strict";(self["webpackChunkflux"]=self["webpackChunkflux"]||[]).push([[7031],{34547:(t,e,r)=>{r.d(e,{Z:()=>u});var a=function(){var t=this,e=t._self._c;return e("div",{staticClass:"toastification"},[e("div",{staticClass:"d-flex align-items-start"},[e("b-avatar",{staticClass:"mr-75 flex-shrink-0",attrs:{variant:t.variant,size:"1.8rem"}},[e("feather-icon",{attrs:{icon:t.icon,size:"15"}})],1),e("div",{staticClass:"d-flex flex-grow-1"},[e("div",[t.title?e("h5",{staticClass:"mb-0 font-weight-bolder toastification-title",class:`text-${t.variant}`,domProps:{textContent:t._s(t.title)}}):t._e(),t.text?e("small",{staticClass:"d-inline-block text-body",domProps:{textContent:t._s(t.text)}}):t._e()]),e("span",{staticClass:"cursor-pointer toastification-close-icon ml-auto",on:{click:function(e){return t.$emit("close-toast")}}},[t.hideClose?t._e():e("feather-icon",{staticClass:"text-body",attrs:{icon:"XIcon"}})],1)])],1)])},n=[],s=r(47389);const i={components:{BAvatar:s.SH},props:{variant:{type:String,default:"primary"},icon:{type:String,default:null},title:{type:String,default:null},text:{type:String,default:null},hideClose:{type:Boolean,default:!1}}},o=i;var l=r(1001),c=(0,l.Z)(o,a,n,!1,null,"22d964ca",null);const u=c.exports},7031:(t,e,r)=>{r.r(e),r.d(e,{default:()=>b});var a=function(){var t=this,e=t._self._c;return e("b-card",[e("div",[e("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"ml-1",attrs:{id:"restart-benchmark",variant:"outline-primary",size:"md"}},[t._v(" Restart Benchmark ")]),e("confirm-dialog",{attrs:{target:"restart-benchmark","confirm-button":"Restart Benchmark"},on:{confirm:t.onOk}}),e("b-modal",{attrs:{id:"modal-center",centered:"",title:"Benchmark Restart","ok-only":"","ok-title":"OK"},model:{value:t.modalShow,callback:function(e){t.modalShow=e},expression:"modalShow"}},[e("b-card-text",[t._v(" The benchmark will now be restarted. ")])],1)],1)])},n=[],s=r(86855),i=r(15193),o=r(31220),l=r(64206),c=r(34547),u=r(20266),d=r(87156),h=r(39569);const m={components:{BCard:s._,BButton:i.T,BModal:o.N,BCardText:l.j,ConfirmDialog:d.Z,ToastificationContent:c.Z},directives:{Ripple:u.Z},data(){return{modalShow:!1}},methods:{onOk(){this.modalShow=!0;const t=localStorage.getItem("zelidauth");h.Z.restart(t).then((t=>{this.showToast("success",t.data.data.message||t.data.data)})).catch((()=>{this.showToast("danger","Error while trying to restart Benchmark")}))},showToast(t,e,r="InfoIcon"){this.$toast({component:c.Z,props:{title:e,icon:r,variant:t}})}}},p=m;var f=r(1001),g=(0,f.Z)(p,a,n,!1,null,null,null);const b=g.exports},87156:(t,e,r)=>{r.d(e,{Z:()=>h});var a=function(){var t=this,e=t._self._c;return e("b-popover",{ref:"popover",attrs:{target:`${t.target}`,triggers:"click blur",show:t.show,placement:"auto",container:"my-container","custom-class":`confirm-dialog-${t.width}`},on:{"update:show":function(e){t.show=e}},scopedSlots:t._u([{key:"title",fn:function(){return[e("div",{staticClass:"d-flex justify-content-between align-items-center"},[e("span",[t._v(t._s(t.title))]),e("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"close",attrs:{variant:"transparent","aria-label":"Close"},on:{click:function(e){t.show=!1}}},[e("span",{staticClass:"d-inline-block text-white",attrs:{"aria-hidden":"true"}},[t._v("×")])])],1)]},proxy:!0}])},[e("div",{staticClass:"text-center"},[e("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"mr-1",attrs:{size:"sm",variant:"danger"},on:{click:function(e){t.show=!1}}},[t._v(" "+t._s(t.cancelButton)+" ")]),e("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],attrs:{size:"sm",variant:"primary"},on:{click:function(e){return t.confirm()}}},[t._v(" "+t._s(t.confirmButton)+" ")])],1)])},n=[],s=r(15193),i=r(53862),o=r(20266);const l={components:{BButton:s.T,BPopover:i.x},directives:{Ripple:o.Z},props:{target:{type:String,required:!0},title:{type:String,required:!1,default:"Are You Sure?"},cancelButton:{type:String,required:!1,default:"Cancel"},confirmButton:{type:String,required:!0},width:{type:Number,required:!1,default:300}},data(){return{show:!1}},methods:{confirm(){this.show=!1,this.$emit("confirm")}}},c=l;var u=r(1001),d=(0,u.Z)(c,a,n,!1,null,null,null);const h=d.exports},39569:(t,e,r)=>{r.d(e,{Z:()=>n});var a=r(80914);const n={start(t){return(0,a.Z)().get("/benchmark/start",{headers:{zelidauth:t}})},restart(t){return(0,a.Z)().get("/benchmark/restart",{headers:{zelidauth:t}})},getStatus(){return(0,a.Z)().get("/benchmark/getstatus")},restartNodeBenchmarks(t){return(0,a.Z)().get("/benchmark/restartnodebenchmarks",{headers:{zelidauth:t}})},signFluxTransaction(t,e){return(0,a.Z)().get(`/benchmark/signzelnodetransaction/${e}`,{headers:{zelidauth:t}})},helpSpecific(t){return(0,a.Z)().get(`/benchmark/help/${t}`)},help(){return(0,a.Z)().get("/benchmark/help")},stop(t){return(0,a.Z)().get("/benchmark/stop",{headers:{zelidauth:t}})},getBenchmarks(){return(0,a.Z)().get("/benchmark/getbenchmarks")},getInfo(){return(0,a.Z)().get("/benchmark/getinfo")},tailBenchmarkDebug(t){return(0,a.Z)().get("/flux/tailbenchmarkdebug",{headers:{zelidauth:t}})},justAPI(){return(0,a.Z)()},cancelToken(){return a.S}}}}]); \ No newline at end of file diff --git a/HomeUI/dist/js/7071.js b/HomeUI/dist/js/7071.js deleted file mode 100644 index 2dbea8c8c..000000000 --- a/HomeUI/dist/js/7071.js +++ /dev/null @@ -1 +0,0 @@ -(globalThis["webpackChunkflux"]=globalThis["webpackChunkflux"]||[]).push([[7071],{57071:(t,e,i)=>{"use strict";i.d(e,{Z:()=>C});var n=function(){var t=this,e=t._self._c;return e("b-card",[e("v-map",{attrs:{zoom:t.map.zoom,center:t.map.center}},[e("v-tile-layer",{attrs:{url:t.map.url}}),t.nodesLoaded?e("v-marker-cluster",{attrs:{options:t.map.clusterOptions},on:{clusterclick:t.click,ready:t.ready}},[e("v-geo-json",{attrs:{geojson:t.geoJson,options:t.geoJsonOptions}})],1):t._e(),t.nodesLoadedError?e("v-marker",{attrs:{"lat-lng":[20,-20],icon:t.warning.icon,"z-index-offset":t.warning.zIndexOffest}}):t._e()],1)],1)},o=[],s=(i(70560),i(87066)),r=i(45243),a=i.n(r),u=i(75352),l=i(32727),p=i(48380),c=i(92011),h=i(96467),d=i.n(h),f=i(37093),m=i(6431),y=i(68858);const v=(0,r.icon)({...r.Icon.Default.prototype.options,iconUrl:f,iconRetinaUrl:m,shadowUrl:y});a().Marker.prototype.options.icon=v;const b={components:{"v-map":u.Z,"v-tile-layer":l.Z,"v-marker":p.Z,"v-geo-json":c.Z,"v-marker-cluster":d()},props:{showAll:{type:Boolean,default:!0},filterNodes:{type:Array,default(){return[]}},nodes:{type:Array,default(){return[]}}},data(){return{warning:{icon:a().divIcon({className:"text-labels",html:"Unable to fetch Node data. Try again later."}),zIndexOffset:1e3},nodesLoadedError:!1,nodesLoaded:!1,map:{url:"https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png",zoom:2,center:(0,r.latLng)(20,0),clusterOptions:{chunkedLoading:!0}},geoJsonOptions:{onEachFeature:(t,e)=>{e.bindPopup(`\n IP: ${t.properties.ip}
\n Tier: ${t.properties.tier}
\n ISP: ${t.properties.org}`,{className:"custom-popup",keepInView:!0})}},geoJson:[{type:"FeatureCollection",crs:{type:"name",properties:{name:"urn:ogc:def:crs:OGC:1.3:CRS84"}},features:[]}]}},created(){this.getNodes()},methods:{noop(){},click(t){this.noop(t)},ready(t){this.noop(t)},nodeHttpsUrlFromEndpoint(t,e={}){const i="https://",n="node.api.runonflux.io",o={api:0,home:-1},s=e.urlType||"api",[r,a]=t.includes(":")?t.split(":"):[t,"16127"],u=r.replace(/\./g,"-"),l=+a+o[s],p=`${i}${u}-${l}.${n}`;return p},buildGeoJson(t){const{features:e}=this.geoJson[0];t.forEach((t=>{const i={type:"Feature",properties:{ip:t.ip,tier:t.tier,org:t.geolocation.org},geometry:{type:"Point",coordinates:[t.geolocation.lon,t.geolocation.lat]}};e.push(i)}))},async getNodesViaApi(){const t="https://stats.runonflux.io/fluxinfo?projection=geolocation,ip,tier",e=await s["default"].get(t).catch((()=>({status:503}))),{status:i,data:{status:n,data:o}={}}=e;return 200!==i||"success"!==n?[]:(this.$emit("nodes-updated",o),o)},async getNodes(){const t=this.nodes.length?this.nodes:await this.getNodesViaApi();if(!t.length)return void(this.nodesLoadedError=!0);const e=[],i=this.showAll?t:this.filterNodes.map((i=>{const n=t.find((t=>t.ip===i));if(!n){const t=this.nodeHttpsUrlFromEndpoint(i);e.push(`${t}/flux/info`)}return n})).filter((t=>t)),n=e.map((t=>s["default"].get(t,{timeout:3e3}))),o=await Promise.allSettled(n);o.forEach((t=>{const{status:e,value:n}=t;if("fulfilled"!==e)return;const{data:o,status:s}=n.data;if("success"===s){const{node:t,geolocation:e}=o,n={ip:t.status.ip,tier:t.status.tier,geolocation:e};i.push(n)}})),this.buildGeoJson(i),this.nodesLoaded=!0}}},_=b;var g=i(1001),O=(0,g.Z)(_,n,o,!1,null,null,null);const C=O.exports},95732:function(t,e){(function(t,i){i(e)})(0,(function(t){"use strict";var e=L.MarkerClusterGroup=L.FeatureGroup.extend({options:{maxClusterRadius:80,iconCreateFunction:null,clusterPane:L.Marker.prototype.options.pane,spiderfyOnEveryZoom:!1,spiderfyOnMaxZoom:!0,showCoverageOnHover:!0,zoomToBoundsOnClick:!0,singleMarkerMode:!1,disableClusteringAtZoom:null,removeOutsideVisibleBounds:!0,animate:!0,animateAddingMarkers:!1,spiderfyShapePositions:null,spiderfyDistanceMultiplier:1,spiderLegPolylineOptions:{weight:1.5,color:"#222",opacity:.5},chunkedLoading:!1,chunkInterval:200,chunkDelay:50,chunkProgress:null,polygonOptions:{}},initialize:function(t){L.Util.setOptions(this,t),this.options.iconCreateFunction||(this.options.iconCreateFunction=this._defaultIconCreateFunction),this._featureGroup=L.featureGroup(),this._featureGroup.addEventParent(this),this._nonPointGroup=L.featureGroup(),this._nonPointGroup.addEventParent(this),this._inZoomAnimation=0,this._needsClustering=[],this._needsRemoving=[],this._currentShownBounds=null,this._queue=[],this._childMarkerEventHandlers={dragstart:this._childMarkerDragStart,move:this._childMarkerMoved,dragend:this._childMarkerDragEnd};var e=L.DomUtil.TRANSITION&&this.options.animate;L.extend(this,e?this._withAnimation:this._noAnimation),this._markerCluster=e?L.MarkerCluster:L.MarkerClusterNonAnimated},addLayer:function(t){if(t instanceof L.LayerGroup)return this.addLayers([t]);if(!t.getLatLng)return this._nonPointGroup.addLayer(t),this.fire("layeradd",{layer:t}),this;if(!this._map)return this._needsClustering.push(t),this.fire("layeradd",{layer:t}),this;if(this.hasLayer(t))return this;this._unspiderfy&&this._unspiderfy(),this._addLayer(t,this._maxZoom),this.fire("layeradd",{layer:t}),this._topClusterLevel._recalculateBounds(),this._refreshClustersIcons();var e=t,i=this._zoom;if(t.__parent)while(e.__parent._zoom>=i)e=e.__parent;return this._currentShownBounds.contains(e.getLatLng())&&(this.options.animateAddingMarkers?this._animationAddLayer(t,e):this._animationAddLayerNonAnimated(t,e)),this},removeLayer:function(t){return t instanceof L.LayerGroup?this.removeLayers([t]):t.getLatLng?this._map?t.__parent?(this._unspiderfy&&(this._unspiderfy(),this._unspiderfyLayer(t)),this._removeLayer(t,!0),this.fire("layerremove",{layer:t}),this._topClusterLevel._recalculateBounds(),this._refreshClustersIcons(),t.off(this._childMarkerEventHandlers,this),this._featureGroup.hasLayer(t)&&(this._featureGroup.removeLayer(t),t.clusterShow&&t.clusterShow()),this):this:(!this._arraySplice(this._needsClustering,t)&&this.hasLayer(t)&&this._needsRemoving.push({layer:t,latlng:t._latlng}),this.fire("layerremove",{layer:t}),this):(this._nonPointGroup.removeLayer(t),this.fire("layerremove",{layer:t}),this)},addLayers:function(t,e){if(!L.Util.isArray(t))return this.addLayer(t);var i,n=this._featureGroup,o=this._nonPointGroup,s=this.options.chunkedLoading,r=this.options.chunkInterval,a=this.options.chunkProgress,u=t.length,l=0,p=!0;if(this._map){var c=(new Date).getTime(),h=L.bind((function(){var d=(new Date).getTime();for(this._map&&this._unspiderfy&&this._unspiderfy();lr)break}if(i=t[l],i instanceof L.LayerGroup)p&&(t=t.slice(),p=!1),this._extractNonGroupLayers(i,t),u=t.length;else if(i.getLatLng){if(!this.hasLayer(i)&&(this._addLayer(i,this._maxZoom),e||this.fire("layeradd",{layer:i}),i.__parent&&2===i.__parent.getChildCount())){var m=i.__parent.getAllChildMarkers(),y=m[0]===i?m[1]:m[0];n.removeLayer(y)}}else o.addLayer(i),e||this.fire("layeradd",{layer:i})}a&&a(l,u,(new Date).getTime()-c),l===u?(this._topClusterLevel._recalculateBounds(),this._refreshClustersIcons(),this._topClusterLevel._recursivelyAddChildrenToMap(null,this._zoom,this._currentShownBounds)):setTimeout(h,this.options.chunkDelay)}),this);h()}else for(var d=this._needsClustering;l=0;e--)t.extend(this._needsClustering[e].getLatLng());return t.extend(this._nonPointGroup.getBounds()),t},eachLayer:function(t,e){var i,n,o,s=this._needsClustering.slice(),r=this._needsRemoving;for(this._topClusterLevel&&this._topClusterLevel.getAllChildMarkers(s),n=s.length-1;n>=0;n--){for(i=!0,o=r.length-1;o>=0;o--)if(r[o].layer===s[n]){i=!1;break}i&&t.call(e,s[n])}this._nonPointGroup.eachLayer(t,e)},getLayers:function(){var t=[];return this.eachLayer((function(e){t.push(e)})),t},getLayer:function(t){var e=null;return t=parseInt(t,10),this.eachLayer((function(i){L.stamp(i)===t&&(e=i)})),e},hasLayer:function(t){if(!t)return!1;var e,i=this._needsClustering;for(e=i.length-1;e>=0;e--)if(i[e]===t)return!0;for(i=this._needsRemoving,e=i.length-1;e>=0;e--)if(i[e].layer===t)return!1;return!(!t.__parent||t.__parent._group!==this)||this._nonPointGroup.hasLayer(t)},zoomToShowLayer:function(t,e){var i=this._map;"function"!==typeof e&&(e=function(){});var n=function(){!i.hasLayer(t)&&!i.hasLayer(t.__parent)||this._inZoomAnimation||(this._map.off("moveend",n,this),this.off("animationend",n,this),i.hasLayer(t)?e():t.__parent._icon&&(this.once("spiderfied",e,this),t.__parent.spiderfy()))};t._icon&&this._map.getBounds().contains(t.getLatLng())?e():t.__parent._zoom=0;i--)if(t[i]===e)return t.splice(i,1),!0},_removeFromGridUnclustered:function(t,e){for(var i=this._map,n=this._gridUnclustered,o=Math.floor(this._map.getMinZoom());e>=o;e--)if(!n[e].removeObject(t,i.project(t.getLatLng(),e)))break},_childMarkerDragStart:function(t){t.target.__dragStart=t.target._latlng},_childMarkerMoved:function(t){if(!this._ignoreMove&&!t.target.__dragStart){var e=t.target._popup&&t.target._popup.isOpen();this._moveChild(t.target,t.oldLatLng,t.latlng),e&&t.target.openPopup()}},_moveChild:function(t,e,i){t._latlng=e,this.removeLayer(t),t._latlng=i,this.addLayer(t)},_childMarkerDragEnd:function(t){var e=t.target.__dragStart;delete t.target.__dragStart,e&&this._moveChild(t.target,e,t.target._latlng)},_removeLayer:function(t,e,i){var n=this._gridClusters,o=this._gridUnclustered,s=this._featureGroup,r=this._map,a=Math.floor(this._map.getMinZoom());e&&this._removeFromGridUnclustered(t,this._maxZoom);var u,l=t.__parent,p=l._markers;this._arraySplice(p,t);while(l){if(l._childCount--,l._boundsNeedUpdate=!0,l._zoom"+e+"",className:"marker-cluster"+i,iconSize:new L.Point(40,40)})},_bindEvents:function(){var t=this._map,e=this.options.spiderfyOnMaxZoom,i=this.options.showCoverageOnHover,n=this.options.zoomToBoundsOnClick,o=this.options.spiderfyOnEveryZoom;(e||n||o)&&this.on("clusterclick clusterkeypress",this._zoomOrSpiderfy,this),i&&(this.on("clustermouseover",this._showCoverage,this),this.on("clustermouseout",this._hideCoverage,this),t.on("zoomend",this._hideCoverage,this))},_zoomOrSpiderfy:function(t){var e=t.layer,i=e;if("clusterkeypress"!==t.type||!t.originalEvent||13===t.originalEvent.keyCode){while(1===i._childClusters.length)i=i._childClusters[0];i._zoom===this._maxZoom&&i._childCount===e._childCount&&this.options.spiderfyOnMaxZoom?e.spiderfy():this.options.zoomToBoundsOnClick&&e.zoomToBounds(),this.options.spiderfyOnEveryZoom&&e.spiderfy(),t.originalEvent&&13===t.originalEvent.keyCode&&this._map._container.focus()}},_showCoverage:function(t){var e=this._map;this._inZoomAnimation||(this._shownPolygon&&e.removeLayer(this._shownPolygon),t.layer.getChildCount()>2&&t.layer!==this._spiderfied&&(this._shownPolygon=new L.Polygon(t.layer.getConvexHull(),this.options.polygonOptions),e.addLayer(this._shownPolygon)))},_hideCoverage:function(){this._shownPolygon&&(this._map.removeLayer(this._shownPolygon),this._shownPolygon=null)},_unbindEvents:function(){var t=this.options.spiderfyOnMaxZoom,e=this.options.showCoverageOnHover,i=this.options.zoomToBoundsOnClick,n=this.options.spiderfyOnEveryZoom,o=this._map;(t||i||n)&&this.off("clusterclick clusterkeypress",this._zoomOrSpiderfy,this),e&&(this.off("clustermouseover",this._showCoverage,this),this.off("clustermouseout",this._hideCoverage,this),o.off("zoomend",this._hideCoverage,this))},_zoomEnd:function(){this._map&&(this._mergeSplitClusters(),this._zoom=Math.round(this._map._zoom),this._currentShownBounds=this._getExpandedVisibleBounds())},_moveEnd:function(){if(!this._inZoomAnimation){var t=this._getExpandedVisibleBounds();this._topClusterLevel._recursivelyRemoveChildrenFromMap(this._currentShownBounds,Math.floor(this._map.getMinZoom()),this._zoom,t),this._topClusterLevel._recursivelyAddChildrenToMap(null,Math.round(this._map._zoom),t),this._currentShownBounds=t}},_generateInitialClusters:function(){var t=Math.ceil(this._map.getMaxZoom()),e=Math.floor(this._map.getMinZoom()),i=this.options.maxClusterRadius,n=i;"function"!==typeof i&&(n=function(){return i}),null!==this.options.disableClusteringAtZoom&&(t=this.options.disableClusteringAtZoom-1),this._maxZoom=t,this._gridClusters={},this._gridUnclustered={};for(var o=t;o>=e;o--)this._gridClusters[o]=new L.DistanceGrid(n(o)),this._gridUnclustered[o]=new L.DistanceGrid(n(o));this._topClusterLevel=new this._markerCluster(this,e-1)},_addLayer:function(t,e){var i,n,o=this._gridClusters,s=this._gridUnclustered,r=Math.floor(this._map.getMinZoom());for(this.options.singleMarkerMode&&this._overrideMarkerIcon(t),t.on(this._childMarkerEventHandlers,this);e>=r;e--){i=this._map.project(t.getLatLng(),e);var a=o[e].getNearObject(i);if(a)return a._addChild(t),void(t.__parent=a);if(a=s[e].getNearObject(i),a){var u=a.__parent;u&&this._removeLayer(a,!1);var l=new this._markerCluster(this,e,a,t);o[e].addObject(l,this._map.project(l._cLatLng,e)),a.__parent=l,t.__parent=l;var p=l;for(n=e-1;n>u._zoom;n--)p=new this._markerCluster(this,n,p),o[n].addObject(p,this._map.project(a.getLatLng(),n));return u._addChild(p),void this._removeFromGridUnclustered(a,e)}s[e].addObject(t,i)}this._topClusterLevel._addChild(t),t.__parent=this._topClusterLevel},_refreshClustersIcons:function(){this._featureGroup.eachLayer((function(t){t instanceof L.MarkerCluster&&t._iconNeedsUpdate&&t._updateIcon()}))},_enqueue:function(t){this._queue.push(t),this._queueTimeout||(this._queueTimeout=setTimeout(L.bind(this._processQueue,this),300))},_processQueue:function(){for(var t=0;tt?(this._animationStart(),this._animationZoomOut(this._zoom,t)):this._moveEnd()},_getExpandedVisibleBounds:function(){return this.options.removeOutsideVisibleBounds?L.Browser.mobile?this._checkBoundsMaxLat(this._map.getBounds()):this._checkBoundsMaxLat(this._map.getBounds().pad(1)):this._mapBoundsInfinite},_checkBoundsMaxLat:function(t){var e=this._maxLat;return void 0!==e&&(t.getNorth()>=e&&(t._northEast.lat=1/0),t.getSouth()<=-e&&(t._southWest.lat=-1/0)),t},_animationAddLayerNonAnimated:function(t,e){if(e===t)this._featureGroup.addLayer(t);else if(2===e._childCount){e._addToMap();var i=e.getAllChildMarkers();this._featureGroup.removeLayer(i[0]),this._featureGroup.removeLayer(i[1])}else e._updateIcon()},_extractNonGroupLayers:function(t,e){var i,n=t.getLayers(),o=0;for(e=e||[];o=0;i--)r=u[i],n.contains(r._latlng)||o.removeLayer(r)})),this._forceLayout(),this._topClusterLevel._recursivelyBecomeVisible(n,e),o.eachLayer((function(t){t instanceof L.MarkerCluster||!t._icon||t.clusterShow()})),this._topClusterLevel._recursively(n,t,e,(function(t){t._recursivelyRestoreChildPositions(e)})),this._ignoreMove=!1,this._enqueue((function(){this._topClusterLevel._recursively(n,t,s,(function(t){o.removeLayer(t),t.clusterShow()})),this._animationEnd()}))},_animationZoomOut:function(t,e){this._animationZoomOutSingle(this._topClusterLevel,t-1,e),this._topClusterLevel._recursivelyAddChildrenToMap(null,e,this._getExpandedVisibleBounds()),this._topClusterLevel._recursivelyRemoveChildrenFromMap(this._currentShownBounds,Math.floor(this._map.getMinZoom()),t,this._getExpandedVisibleBounds())},_animationAddLayer:function(t,e){var i=this,n=this._featureGroup;n.addLayer(t),e!==t&&(e._childCount>2?(e._updateIcon(),this._forceLayout(),this._animationStart(),t._setPos(this._map.latLngToLayerPoint(e.getLatLng())),t.clusterHide(),this._enqueue((function(){n.removeLayer(t),t.clusterShow(),i._animationEnd()}))):(this._forceLayout(),i._animationStart(),i._animationZoomOutSingle(e,this._map.getMaxZoom(),this._zoom)))}},_animationZoomOutSingle:function(t,e,i){var n=this._getExpandedVisibleBounds(),o=Math.floor(this._map.getMinZoom());t._recursivelyAnimateChildrenInAndAddSelfToMap(n,o,e+1,i);var s=this;this._forceLayout(),t._recursivelyBecomeVisible(n,i),this._enqueue((function(){if(1===t._childCount){var r=t._markers[0];this._ignoreMove=!0,r.setLatLng(r.getLatLng()),this._ignoreMove=!1,r.clusterShow&&r.clusterShow()}else t._recursively(n,i,o,(function(t){t._recursivelyRemoveChildrenFromMap(n,o,e+1)}));s._animationEnd()}))},_animationEnd:function(){this._map&&(this._map._mapPane.className=this._map._mapPane.className.replace(" leaflet-cluster-anim","")),this._inZoomAnimation--,this.fire("animationend")},_forceLayout:function(){L.Util.falseFn(document.body.offsetWidth)}}),L.markerClusterGroup=function(t){return new L.MarkerClusterGroup(t)};var i=L.MarkerCluster=L.Marker.extend({options:L.Icon.prototype.options,initialize:function(t,e,i,n){L.Marker.prototype.initialize.call(this,i?i._cLatLng||i.getLatLng():new L.LatLng(0,0),{icon:this,pane:t.options.clusterPane}),this._group=t,this._zoom=e,this._markers=[],this._childClusters=[],this._childCount=0,this._iconNeedsUpdate=!0,this._boundsNeedUpdate=!0,this._bounds=new L.LatLngBounds,i&&this._addChild(i),n&&this._addChild(n)},getAllChildMarkers:function(t,e){t=t||[];for(var i=this._childClusters.length-1;i>=0;i--)this._childClusters[i].getAllChildMarkers(t,e);for(var n=this._markers.length-1;n>=0;n--)e&&this._markers[n].__dragStart||t.push(this._markers[n]);return t},getChildCount:function(){return this._childCount},zoomToBounds:function(t){var e,i=this._childClusters.slice(),n=this._group._map,o=n.getBoundsZoom(this._bounds),s=this._zoom+1,r=n.getZoom();while(i.length>0&&o>s){s++;var a=[];for(e=0;es?this._group._map.setView(this._latlng,s):o<=r?this._group._map.setView(this._latlng,r+1):this._group._map.fitBounds(this._bounds,t)},getBounds:function(){var t=new L.LatLngBounds;return t.extend(this._bounds),t},_updateIcon:function(){this._iconNeedsUpdate=!0,this._icon&&this.setIcon(this)},createIcon:function(){return this._iconNeedsUpdate&&(this._iconObj=this._group.options.iconCreateFunction(this),this._iconNeedsUpdate=!1),this._iconObj.createIcon()},createShadow:function(){return this._iconObj.createShadow()},_addChild:function(t,e){this._iconNeedsUpdate=!0,this._boundsNeedUpdate=!0,this._setClusterCenter(t),t instanceof L.MarkerCluster?(e||(this._childClusters.push(t),t.__parent=this),this._childCount+=t._childCount):(e||this._markers.push(t),this._childCount++),this.__parent&&this.__parent._addChild(t,!0)},_setClusterCenter:function(t){this._cLatLng||(this._cLatLng=t._cLatLng||t._latlng)},_resetBounds:function(){var t=this._bounds;t._southWest&&(t._southWest.lat=1/0,t._southWest.lng=1/0),t._northEast&&(t._northEast.lat=-1/0,t._northEast.lng=-1/0)},_recalculateBounds:function(){var t,e,i,n,o=this._markers,s=this._childClusters,r=0,a=0,u=this._childCount;if(0!==u){for(this._resetBounds(),t=0;t=0;i--)n=o[i],n._icon&&(n._setPos(e),n.clusterHide())}),(function(t){var i,n,o=t._childClusters;for(i=o.length-1;i>=0;i--)n=o[i],n._icon&&(n._setPos(e),n.clusterHide())}))},_recursivelyAnimateChildrenInAndAddSelfToMap:function(t,e,i,n){this._recursively(t,n,e,(function(o){o._recursivelyAnimateChildrenIn(t,o._group._map.latLngToLayerPoint(o.getLatLng()).round(),i),o._isSingleParent()&&i-1===n?(o.clusterShow(),o._recursivelyRemoveChildrenFromMap(t,e,i)):o.clusterHide(),o._addToMap()}))},_recursivelyBecomeVisible:function(t,e){this._recursively(t,this._group._map.getMinZoom(),e,null,(function(t){t.clusterShow()}))},_recursivelyAddChildrenToMap:function(t,e,i){this._recursively(i,this._group._map.getMinZoom()-1,e,(function(n){if(e!==n._zoom)for(var o=n._markers.length-1;o>=0;o--){var s=n._markers[o];i.contains(s._latlng)&&(t&&(s._backupLatlng=s.getLatLng(),s.setLatLng(t),s.clusterHide&&s.clusterHide()),n._group._featureGroup.addLayer(s))}}),(function(e){e._addToMap(t)}))},_recursivelyRestoreChildPositions:function(t){for(var e=this._markers.length-1;e>=0;e--){var i=this._markers[e];i._backupLatlng&&(i.setLatLng(i._backupLatlng),delete i._backupLatlng)}if(t-1===this._zoom)for(var n=this._childClusters.length-1;n>=0;n--)this._childClusters[n]._restorePosition();else for(var o=this._childClusters.length-1;o>=0;o--)this._childClusters[o]._recursivelyRestoreChildPositions(t)},_restorePosition:function(){this._backupLatlng&&(this.setLatLng(this._backupLatlng),delete this._backupLatlng)},_recursivelyRemoveChildrenFromMap:function(t,e,i,n){var o,s;this._recursively(t,e-1,i-1,(function(t){for(s=t._markers.length-1;s>=0;s--)o=t._markers[s],n&&n.contains(o._latlng)||(t._group._featureGroup.removeLayer(o),o.clusterShow&&o.clusterShow())}),(function(t){for(s=t._childClusters.length-1;s>=0;s--)o=t._childClusters[s],n&&n.contains(o._latlng)||(t._group._featureGroup.removeLayer(o),o.clusterShow&&o.clusterShow())}))},_recursively:function(t,e,i,n,o){var s,r,a=this._childClusters,u=this._zoom;if(e<=u&&(n&&n(this),o&&u===i&&o(this)),u=0;s--)r=a[s],r._boundsNeedUpdate&&r._recalculateBounds(),t.intersects(r._bounds)&&r._recursively(t,e,i,n,o)},_isSingleParent:function(){return this._childClusters.length>0&&this._childClusters[0]._childCount===this._childCount}});L.Marker.include({clusterHide:function(){var t=this.options.opacity;return this.setOpacity(0),this.options.opacity=t,this},clusterShow:function(){return this.setOpacity(this.options.opacity)}}),L.DistanceGrid=function(t){this._cellSize=t,this._sqCellSize=t*t,this._grid={},this._objectPoint={}},L.DistanceGrid.prototype={addObject:function(t,e){var i=this._getCoord(e.x),n=this._getCoord(e.y),o=this._grid,s=o[n]=o[n]||{},r=s[i]=s[i]||[],a=L.Util.stamp(t);this._objectPoint[a]=e,r.push(t)},updateObject:function(t,e){this.removeObject(t),this.addObject(t,e)},removeObject:function(t,e){var i,n,o=this._getCoord(e.x),s=this._getCoord(e.y),r=this._grid,a=r[s]=r[s]||{},u=a[o]=a[o]||[];for(delete this._objectPoint[L.Util.stamp(t)],i=0,n=u.length;i=0;i--)n=e[i],o=this.getDistant(n,t),o>0&&(a.push(n),o>s&&(s=o,r=n));return{maxPoint:r,newPoints:a}},buildConvexHull:function(t,e){var i=[],n=this.findMostDistantPointFromBaseLine(t,e);return n.maxPoint?(i=i.concat(this.buildConvexHull([t[0],n.maxPoint],n.newPoints)),i=i.concat(this.buildConvexHull([n.maxPoint,t[1]],n.newPoints)),i):[t[0]]},getConvexHull:function(t){var e,i=!1,n=!1,o=!1,s=!1,r=null,a=null,u=null,l=null,p=null,c=null;for(e=t.length-1;e>=0;e--){var h=t[e];(!1===i||h.lat>i)&&(r=h,i=h.lat),(!1===n||h.lato)&&(u=h,o=h.lng),(!1===s||h.lng=0;e--)t=i[e].getLatLng(),n.push(t);return L.QuickHull.getConvexHull(n)}}),L.MarkerCluster.include({_2PI:2*Math.PI,_circleFootSeparation:25,_circleStartAngle:0,_spiralFootSeparation:28,_spiralLengthStart:11,_spiralLengthFactor:5,_circleSpiralSwitchover:9,spiderfy:function(){if(this._group._spiderfied!==this&&!this._group._inZoomAnimation){var t,e=this.getAllChildMarkers(null,!0),i=this._group,n=i._map,o=n.latLngToLayerPoint(this._latlng);this._group._unspiderfy(),this._group._spiderfied=this,this._group.options.spiderfyShapePositions?t=this._group.options.spiderfyShapePositions(e.length,o):e.length>=this._circleSpiralSwitchover?t=this._generatePointsSpiral(e.length,o):(o.y+=10,t=this._generatePointsCircle(e.length,o)),this._animationSpiderfy(e,t)}},unspiderfy:function(t){this._group._inZoomAnimation||(this._animationUnspiderfy(t),this._group._spiderfied=null)},_generatePointsCircle:function(t,e){var i,n,o=this._group.options.spiderfyDistanceMultiplier*this._circleFootSeparation*(2+t),s=o/this._2PI,r=this._2PI/t,a=[];for(s=Math.max(s,35),a.length=t,i=0;i=0;i--)i=0;e--)t=s[e],o.removeLayer(t),t._preSpiderfyLatlng&&(t.setLatLng(t._preSpiderfyLatlng),delete t._preSpiderfyLatlng),t.setZIndexOffset&&t.setZIndexOffset(0),t._spiderLeg&&(n.removeLayer(t._spiderLeg),delete t._spiderLeg);i.fire("unspiderfied",{cluster:this,markers:s}),i._ignoreMove=!1,i._spiderfied=null}}),L.MarkerClusterNonAnimated=L.MarkerCluster.extend({_animationSpiderfy:function(t,e){var i,n,o,s,r=this._group,a=r._map,u=r._featureGroup,l=this._group.options.spiderLegPolylineOptions;for(r._ignoreMove=!0,i=0;i=0;i--)a=p.layerPointToLatLng(e[i]),n=t[i],n._preSpiderfyLatlng=n._latlng,n.setLatLng(a),n.clusterShow&&n.clusterShow(),f&&(o=n._spiderLeg,s=o._path,s.style.strokeDashoffset=0,o.setStyle({opacity:y}));this.setOpacity(.3),l._ignoreMove=!1,setTimeout((function(){l._animationEnd(),l.fire("spiderfied",{cluster:u,markers:t})}),200)},_animationUnspiderfy:function(t){var e,i,n,o,s,r,a=this,u=this._group,l=u._map,p=u._featureGroup,c=t?l._latLngToNewLayerPoint(this._latlng,t.zoom,t.center):l.latLngToLayerPoint(this._latlng),h=this.getAllChildMarkers(null,!0),d=L.Path.SVG;for(u._ignoreMove=!0,u._animationStart(),this.setOpacity(1),i=h.length-1;i>=0;i--)e=h[i],e._preSpiderfyLatlng&&(e.closePopup(),e.setLatLng(e._preSpiderfyLatlng),delete e._preSpiderfyLatlng,r=!0,e._setPos&&(e._setPos(c),r=!1),e.clusterHide&&(e.clusterHide(),r=!1),r&&p.removeLayer(e),d&&(n=e._spiderLeg,o=n._path,s=o.getTotalLength()+.1,o.style.strokeDashoffset=s,n.setStyle({opacity:0})));u._ignoreMove=!1,setTimeout((function(){var t=0;for(i=h.length-1;i>=0;i--)e=h[i],e._spiderLeg&&t++;for(i=h.length-1;i>=0;i--)e=h[i],e._spiderLeg&&(e.clusterShow&&e.clusterShow(),e.setZIndexOffset&&e.setZIndexOffset(0),t>1&&p.removeLayer(e),l.removeLayer(e._spiderLeg),delete e._spiderLeg);u._animationEnd(),u.fire("unspiderfied",{cluster:a,markers:h})}),200)}}),L.MarkerClusterGroup.include({_spiderfied:null,unspiderfy:function(){this._unspiderfy.apply(this,arguments)},_spiderfierOnAdd:function(){this._map.on("click",this._unspiderfyWrapper,this),this._map.options.zoomAnimation&&this._map.on("zoomstart",this._unspiderfyZoomStart,this),this._map.on("zoomend",this._noanimationUnspiderfy,this),L.Browser.touch||this._map.getRenderer(this)},_spiderfierOnRemove:function(){this._map.off("click",this._unspiderfyWrapper,this),this._map.off("zoomstart",this._unspiderfyZoomStart,this),this._map.off("zoomanim",this._unspiderfyZoomAnim,this),this._map.off("zoomend",this._noanimationUnspiderfy,this),this._noanimationUnspiderfy()},_unspiderfyZoomStart:function(){this._map&&this._map.on("zoomanim",this._unspiderfyZoomAnim,this)},_unspiderfyZoomAnim:function(t){L.DomUtil.hasClass(this._map._mapPane,"leaflet-touching")||(this._map.off("zoomanim",this._unspiderfyZoomAnim,this),this._unspiderfy(t))},_unspiderfyWrapper:function(){this._unspiderfy()},_unspiderfy:function(t){this._spiderfied&&this._spiderfied.unspiderfy(t)},_noanimationUnspiderfy:function(){this._spiderfied&&this._spiderfied._noanimationUnspiderfy()},_unspiderfyLayer:function(t){t._spiderLeg&&(this._featureGroup.removeLayer(t),t.clusterShow&&t.clusterShow(),t.setZIndexOffset&&t.setZIndexOffset(0),this._map.removeLayer(t._spiderLeg),delete t._spiderLeg)}}),L.MarkerClusterGroup.include({refreshClusters:function(t){return t?t instanceof L.MarkerClusterGroup?t=t._topClusterLevel.getAllChildMarkers():t instanceof L.LayerGroup?t=t._layers:t instanceof L.MarkerCluster?t=t.getAllChildMarkers():t instanceof L.Marker&&(t=[t]):t=this._topClusterLevel.getAllChildMarkers(),this._flagParentsIconsNeedUpdate(t),this._refreshClustersIcons(),this.options.singleMarkerMode&&this._refreshSingleMarkerModeMarkers(t),this},_flagParentsIconsNeedUpdate:function(t){var e,i;for(e in t){i=t[e].__parent;while(i)i._iconNeedsUpdate=!0,i=i.__parent}},_refreshSingleMarkerModeMarkers:function(t){var e,i;for(e in t)i=t[e],this.hasLayer(i)&&i.setIcon(this._overrideMarkerIcon(i))}}),L.Marker.include({refreshIconOptions:function(t,e){var i=this.options.icon;return L.setOptions(i,t),this.setIcon(i),e&&this.__parent&&this.__parent._group.refreshClusters(this),this}}),t.MarkerClusterGroup=e,t.MarkerCluster=i,Object.defineProperty(t,"__esModule",{value:!0})}))},96467:function(t,e,i){(function(e,n){t.exports=n(i(45243),i(95732),i(28511))})(0,(function(t,e,n){return function(t){function e(n){if(i[n])return i[n].exports;var o=i[n]={i:n,l:!1,exports:{}};return t[n].call(o.exports,o,o.exports,e),o.l=!0,o.exports}var i={};return e.m=t,e.c=i,e.i=function(t){return t},e.d=function(t,i,n){e.o(t,i)||Object.defineProperty(t,i,{configurable:!1,enumerable:!0,get:n})},e.n=function(t){var i=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(i,"a",i),i},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="/",e(e.s=7)}([function(t,e,i){var n=i(2)(i(1),i(3),null,null);t.exports=n.exports},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i(5),o=i(6),s=i(4),r={options:{type:Object,default:function(){return{}}}};e.default={props:r,data:function(){return{ready:!1}},mounted:function(){var t=this;this.mapObject=new n.MarkerClusterGroup(this.options),s.DomEvent.on(this.mapObject,this.$listeners),(0,o.propsBinder)(this,this.mapObject,r),this.ready=!0,this.parentContainer=(0,o.findRealParent)(this.$parent),this.parentContainer.addLayer(this),this.$nextTick((function(){t.$emit("ready",t.mapObject)}))},beforeDestroy:function(){this.parentContainer.removeLayer(this)},methods:{addLayer:function(t,e){e||this.mapObject.addLayer(t.mapObject)},removeLayer:function(t,e){e||this.mapObject.removeLayer(t.mapObject)}}}},function(t,e){t.exports=function(t,e,i,n){var o,s=t=t||{},r=typeof t.default;"object"!==r&&"function"!==r||(o=t,s=t.default);var a="function"==typeof s?s.options:s;if(e&&(a.render=e.render,a.staticRenderFns=e.staticRenderFns),i&&(a._scopeId=i),n){var u=a.computed||(a.computed={});Object.keys(n).forEach((function(t){var e=n[t];u[t]=function(){return e}}))}return{esModule:o,exports:s,options:a}}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement;return(t._self._c||e)("div",{staticStyle:{display:"none"}},[t.ready?t._t("default"):t._e()],2)},staticRenderFns:[]}},function(t,e){t.exports=i(45243)},function(t,e){t.exports=i(95732)},function(t,e){t.exports=i(28511)},function(t,e,i){t.exports=i(0)}])}))},92011:(t,e,i)=>{"use strict";i.d(e,{Z:()=>g});var n=i(45243),o=function(t){return t&&"function"===typeof t.charAt?t.charAt(0).toUpperCase()+t.slice(1):t},s=function(t,e,i,s){var r=function(s){var r="set"+o(s),a=i[s].type===Object||i[s].type===Array||Array.isArray(i[s].type);i[s].custom&&t[r]?t.$watch(s,(function(e,i){t[r](e,i)}),{deep:a}):"setOptions"===r?t.$watch(s,(function(t,i){(0,n.setOptions)(e,t)}),{deep:a}):e[r]&&t.$watch(s,(function(t,i){e[r](t)}),{deep:a})};for(var a in i)r(a)},r=function(t){var e={};for(var i in t){var n=t[i];null!==n&&void 0!==n&&(e[i]=n)}return e},a=function(t,e){var i=e.options&&e.options.constructor===Object?e.options:{};t=t&&t.constructor===Object?t:{};var n=r(i);t=r(t);var o=e.$options.props;for(var s in t){var a=o[s]?o[s].default&&"function"===typeof o[s].default?o[s].default.call():o[s].default:Symbol("unique"),u=!1;u=Array.isArray(a)?JSON.stringify(a)===JSON.stringify(t[s]):a===t[s],n[s]&&!u?(console.warn(s+" props is overriding the value passed in the options props"),n[s]=t[s]):n[s]||(n[s]=t[s])}return n},u=function(t){var e=!1;while(t&&!e)void 0===t.mapObject?t=t.$parent:e=!0;return t},l={props:{pane:{type:String,default:"overlayPane"},attribution:{type:String,default:null,custom:!0},name:{type:String,custom:!0,default:void 0},layerType:{type:String,custom:!0,default:void 0},visible:{type:Boolean,custom:!0,default:!0}},mounted:function(){this.layerOptions={attribution:this.attribution,pane:this.pane}},beforeDestroy:function(){this.unbindPopup(),this.unbindTooltip(),this.parentContainer.removeLayer(this)},methods:{setAttribution:function(t,e){var i=this.$parent.mapObject.attributionControl;i.removeAttribution(e).addAttribution(t)},setName:function(){this.parentContainer.removeLayer(this),this.visible&&this.parentContainer.addLayer(this)},setLayerType:function(){this.parentContainer.removeLayer(this),this.visible&&this.parentContainer.addLayer(this)},setVisible:function(t){this.mapObject&&(t?this.parentContainer.addLayer(this):this.parentContainer.hideLayer?this.parentContainer.hideLayer(this):this.parentContainer.removeLayer(this))},unbindTooltip:function(){var t=this.mapObject?this.mapObject.getTooltip():null;t&&t.unbindTooltip()},unbindPopup:function(){var t=this.mapObject?this.mapObject.getPopup():null;t&&t.unbindPopup()},updateVisibleProp:function(t){this.$emit("update:visible",t)}}},p={mixins:[l],mounted:function(){this.layerGroupOptions=this.layerOptions},methods:{addLayer:function(t,e){e||this.mapObject.addLayer(t.mapObject),this.parentContainer.addLayer(t,!0)},removeLayer:function(t,e){e||this.mapObject.removeLayer(t.mapObject),this.parentContainer.removeLayer(t,!0)}}},c={props:{options:{type:Object,default:function(){return{}}}}},h={name:"LGeoJson",mixins:[p,c],props:{geojson:{type:[Object,Array],custom:!0,default:function(){return{}}},options:{type:Object,custom:!0,default:function(){return{}}},optionsStyle:{type:[Object,Function],custom:!0,default:null}},computed:{mergedOptions:function(){return a(Object.assign({},this.layerGroupOptions,{style:this.optionsStyle}),this)}},mounted:function(){var t=this;this.mapObject=(0,n.geoJSON)(this.geojson,this.mergedOptions),n.DomEvent.on(this.mapObject,this.$listeners),s(this,this.mapObject,this.$options.props),this.parentContainer=u(this.$parent),this.parentContainer.addLayer(this,!this.visible),this.$nextTick((function(){t.$emit("ready",t.mapObject)}))},beforeDestroy:function(){this.parentContainer.mapObject.removeLayer(this.mapObject)},methods:{setGeojson:function(t){this.mapObject.clearLayers(),this.mapObject.addData(t)},getGeoJSONData:function(){return this.mapObject.toGeoJSON()},getBounds:function(){return this.mapObject.getBounds()},setOptions:function(t,e){this.mapObject.clearLayers(),(0,n.setOptions)(this.mapObject,this.mergedOptions),this.mapObject.addData(this.geojson)},setOptionsStyle:function(t,e){this.mapObject.setStyle(t)}},render:function(){return null}};function d(t,e,i,n,o,s,r,a,u,l){"boolean"!==typeof r&&(u=a,a=r,r=!1);var p,c="function"===typeof i?i.options:i;if(t&&t.render&&(c.render=t.render,c.staticRenderFns=t.staticRenderFns,c._compiled=!0,o&&(c.functional=!0)),n&&(c._scopeId=n),s?(p=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"===typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),e&&e.call(this,u(t)),t&&t._registeredComponents&&t._registeredComponents.add(s)},c._ssrRegister=p):e&&(p=r?function(t){e.call(this,l(t,this.$root.$options.shadowRoot))}:function(t){e.call(this,a(t))}),p)if(c.functional){var h=c.render;c.render=function(t,e){return p.call(e),h(t,e)}}else{var d=c.beforeCreate;c.beforeCreate=d?[].concat(d,p):[p]}return i}var f=h,m=void 0,y=void 0,v=void 0,b=void 0,_=d({},m,f,y,b,v,!1,void 0,void 0,void 0);const g=_},75352:(t,e,i)=>{"use strict";i.d(e,{Z:()=>j});var n=i(45243),o=function(t,e){var i,n=function(){var n=[],o=arguments.length;while(o--)n[o]=arguments[o];var s=this;i&&clearTimeout(i),i=setTimeout((function(){t.apply(s,n),i=null}),e)};return n.cancel=function(){i&&clearTimeout(i)},n},s=function(t){return t&&"function"===typeof t.charAt?t.charAt(0).toUpperCase()+t.slice(1):t},r=function(t,e,i,o){var r=function(o){var r="set"+s(o),a=i[o].type===Object||i[o].type===Array||Array.isArray(i[o].type);i[o].custom&&t[r]?t.$watch(o,(function(e,i){t[r](e,i)}),{deep:a}):"setOptions"===r?t.$watch(o,(function(t,i){(0,n.setOptions)(e,t)}),{deep:a}):e[r]&&t.$watch(o,(function(t,i){e[r](t)}),{deep:a})};for(var a in i)r(a)},a=function(t){var e={};for(var i in t){var n=t[i];null!==n&&void 0!==n&&(e[i]=n)}return e},u=function(t,e){var i=e.options&&e.options.constructor===Object?e.options:{};t=t&&t.constructor===Object?t:{};var n=a(i);t=a(t);var o=e.$options.props;for(var s in t){var r=o[s]?o[s].default&&"function"===typeof o[s].default?o[s].default.call():o[s].default:Symbol("unique"),u=!1;u=Array.isArray(r)?JSON.stringify(r)===JSON.stringify(t[s]):r===t[s],n[s]&&!u?(console.warn(s+" props is overriding the value passed in the options props"),n[s]=t[s]):n[s]||(n[s]=t[s])}return n},l={props:{options:{type:Object,default:function(){return{}}}}},p={name:"LMap",mixins:[l],props:{center:{type:[Object,Array],custom:!0,default:function(){return[0,0]}},bounds:{type:[Array,Object],custom:!0,default:null},maxBounds:{type:[Array,Object],default:null},zoom:{type:Number,custom:!0,default:0},minZoom:{type:Number,default:null},maxZoom:{type:Number,default:null},paddingBottomRight:{type:Array,custom:!0,default:null},paddingTopLeft:{type:Array,custom:!0,default:null},padding:{type:Array,custom:!0,default:null},worldCopyJump:{type:Boolean,default:!1},crs:{type:Object,custom:!0,default:function(){return n.CRS.EPSG3857}},maxBoundsViscosity:{type:Number,default:null},inertia:{type:Boolean,default:null},inertiaDeceleration:{type:Number,default:null},inertiaMaxSpeed:{type:Number,default:null},easeLinearity:{type:Number,default:null},zoomAnimation:{type:Boolean,default:null},zoomAnimationThreshold:{type:Number,default:null},fadeAnimation:{type:Boolean,default:null},markerZoomAnimation:{type:Boolean,default:null},noBlockingAnimations:{type:Boolean,default:!1}},data:function(){return{ready:!1,lastSetCenter:this.center?(0,n.latLng)(this.center):null,lastSetBounds:this.bounds?(0,n.latLngBounds)(this.bounds):null,layerControl:void 0,layersToAdd:[],layersInControl:[]}},computed:{fitBoundsOptions:function(){var t={animate:!this.noBlockingAnimations&&null};return this.padding?t.padding=this.padding:(this.paddingBottomRight&&(t.paddingBottomRight=this.paddingBottomRight),this.paddingTopLeft&&(t.paddingTopLeft=this.paddingTopLeft)),t}},beforeDestroy:function(){this.debouncedMoveEndHandler&&this.debouncedMoveEndHandler.cancel(),this.mapObject&&this.mapObject.remove()},mounted:function(){var t=this,e=u({minZoom:this.minZoom,maxZoom:this.maxZoom,maxBounds:this.maxBounds,maxBoundsViscosity:this.maxBoundsViscosity,worldCopyJump:this.worldCopyJump,crs:this.crs,center:this.center,zoom:this.zoom,inertia:this.inertia,inertiaDeceleration:this.inertiaDeceleration,inertiaMaxSpeed:this.inertiaMaxSpeed,easeLinearity:this.easeLinearity,zoomAnimation:this.zoomAnimation,zoomAnimationThreshold:this.zoomAnimationThreshold,fadeAnimation:this.fadeAnimation,markerZoomAnimation:this.markerZoomAnimation},this);this.mapObject=(0,n.map)(this.$el,e),this.bounds&&this.fitBounds(this.bounds),this.debouncedMoveEndHandler=o(this.moveEndHandler,100),this.mapObject.on("moveend",this.debouncedMoveEndHandler),this.mapObject.on("overlayadd",this.overlayAddHandler),this.mapObject.on("overlayremove",this.overlayRemoveHandler),n.DomEvent.on(this.mapObject,this.$listeners),r(this,this.mapObject,this.$options.props),this.ready=!0,this.$emit("leaflet:load"),this.$nextTick((function(){t.$emit("ready",t.mapObject)}))},methods:{registerLayerControl:function(t){var e=this;this.layerControl=t,this.mapObject.addControl(t.mapObject),this.layersToAdd.forEach((function(t){e.layerControl.addLayer(t)})),this.layersToAdd=[]},addLayer:function(t,e){if(void 0!==t.layerType)if(void 0===this.layerControl)this.layersToAdd.push(t);else{var i=this.layersInControl.find((function(e){return e.mapObject._leaflet_id===t.mapObject._leaflet_id}));i||(this.layerControl.addLayer(t),this.layersInControl.push(t))}e||!1===t.visible||this.mapObject.addLayer(t.mapObject)},hideLayer:function(t){this.mapObject.removeLayer(t.mapObject)},removeLayer:function(t,e){void 0!==t.layerType&&(void 0===this.layerControl?this.layersToAdd=this.layersToAdd.filter((function(e){return e.name!==t.name})):(this.layerControl.removeLayer(t),this.layersInControl=this.layersInControl.filter((function(e){return e.mapObject._leaflet_id!==t.mapObject._leaflet_id})))),e||this.mapObject.removeLayer(t.mapObject)},setZoom:function(t,e){void 0!==t&&null!==t&&(this.mapObject.setZoom(t,{animate:!this.noBlockingAnimations&&null}),this.cacheMapView())},setCenter:function(t,e){if(null!=t){var i=(0,n.latLng)(t),o=this.lastSetCenter||this.mapObject.getCenter();o.lat===i.lat&&o.lng===i.lng||(this.lastSetCenter=i,this.mapObject.panTo(i,{animate:!this.noBlockingAnimations&&null}),this.cacheMapView(void 0,i))}},setBounds:function(t,e){if(t){var i=(0,n.latLngBounds)(t);if(i.isValid()){var o=this.lastSetBounds||this.mapObject.getBounds(),s=!o.equals(i,0);s&&(this.fitBounds(i),this.cacheMapView(i))}}},setPaddingBottomRight:function(t,e){this.paddingBottomRight=t},setPaddingTopLeft:function(t,e){this.paddingTopLeft=t},setPadding:function(t,e){this.padding=t},setCrs:function(t,e){var i=this.mapObject,n=i.getBounds();i.options.crs=t,this.fitBounds(n,{animate:!1})},fitBounds:function(t,e){this.mapObject.fitBounds(t,Object.assign({},this.fitBoundsOptions,e))},moveEndHandler:function(){this.$emit("update:zoom",this.mapObject.getZoom());var t=this.mapObject.getCenter();this.$emit("update:center",t);var e=this.mapObject.getBounds();this.$emit("update:bounds",e)},overlayAddHandler:function(t){var e=this.layersInControl.find((function(e){return e.name===t.name}));e&&e.updateVisibleProp(!0)},overlayRemoveHandler:function(t){var e=this.layersInControl.find((function(e){return e.name===t.name}));e&&e.updateVisibleProp(!1)},cacheMapView:function(t,e){this.lastSetBounds=t||this.mapObject.getBounds(),this.lastSetCenter=e||this.lastSetBounds.getCenter()}}};function c(t,e,i,n,o,s,r,a,u,l){"boolean"!==typeof r&&(u=a,a=r,r=!1);var p,c="function"===typeof i?i.options:i;if(t&&t.render&&(c.render=t.render,c.staticRenderFns=t.staticRenderFns,c._compiled=!0,o&&(c.functional=!0)),n&&(c._scopeId=n),s?(p=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"===typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),e&&e.call(this,u(t)),t&&t._registeredComponents&&t._registeredComponents.add(s)},c._ssrRegister=p):e&&(p=r?function(t){e.call(this,l(t,this.$root.$options.shadowRoot))}:function(t){e.call(this,a(t))}),p)if(c.functional){var h=c.render;c.render=function(t,e){return p.call(e),h(t,e)}}else{var d=c.beforeCreate;c.beforeCreate=d?[].concat(d,p):[p]}return i}var h,d="undefined"!==typeof navigator&&/msie [6-9]\\b/.test(navigator.userAgent.toLowerCase());function f(t){return function(t,e){return y(t,e)}}var m={};function y(t,e){var i=d?e.media||"default":t,n=m[i]||(m[i]={ids:new Set,styles:[]});if(!n.ids.has(t)){n.ids.add(t);var o=e.source;if(e.map&&(o+="\n/*# sourceURL="+e.map.sources[0]+" */",o+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(e.map))))+" */"),n.element||(n.element=document.createElement("style"),n.element.type="text/css",e.media&&n.element.setAttribute("media",e.media),void 0===h&&(h=document.head||document.getElementsByTagName("head")[0]),h.appendChild(n.element)),"styleSheet"in n.element)n.styles.push(o),n.element.styleSheet.cssText=n.styles.filter(Boolean).join("\n");else{var s=n.ids.size-1,r=document.createTextNode(o),a=n.element.childNodes;a[s]&&n.element.removeChild(a[s]),a.length?n.element.insertBefore(r,a[s]):n.element.appendChild(r)}}}var v=p,b=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"vue2leaflet-map"},[t.ready?t._t("default"):t._e()],2)},_=[],g=function(t){t&&t("data-v-09f270aa_0",{source:".vue2leaflet-map{height:100%;width:100%}",map:void 0,media:void 0})},O=void 0,C=void 0,L=!1,S=c({render:b,staticRenderFns:_},g,v,O,L,C,!1,f,void 0,void 0);const j=S},48380:(t,e,i)=>{"use strict";i.d(e,{Z:()=>g});var n=i(45243),o=function(t,e){var i,n=function(){var n=[],o=arguments.length;while(o--)n[o]=arguments[o];var s=this;i&&clearTimeout(i),i=setTimeout((function(){t.apply(s,n),i=null}),e)};return n.cancel=function(){i&&clearTimeout(i)},n},s=function(t){return t&&"function"===typeof t.charAt?t.charAt(0).toUpperCase()+t.slice(1):t},r=function(t,e,i,o){var r=function(o){var r="set"+s(o),a=i[o].type===Object||i[o].type===Array||Array.isArray(i[o].type);i[o].custom&&t[r]?t.$watch(o,(function(e,i){t[r](e,i)}),{deep:a}):"setOptions"===r?t.$watch(o,(function(t,i){(0,n.setOptions)(e,t)}),{deep:a}):e[r]&&t.$watch(o,(function(t,i){e[r](t)}),{deep:a})};for(var a in i)r(a)},a=function(t){var e={};for(var i in t){var n=t[i];null!==n&&void 0!==n&&(e[i]=n)}return e},u=function(t,e){var i=e.options&&e.options.constructor===Object?e.options:{};t=t&&t.constructor===Object?t:{};var n=a(i);t=a(t);var o=e.$options.props;for(var s in t){var r=o[s]?o[s].default&&"function"===typeof o[s].default?o[s].default.call():o[s].default:Symbol("unique"),u=!1;u=Array.isArray(r)?JSON.stringify(r)===JSON.stringify(t[s]):r===t[s],n[s]&&!u?(console.warn(s+" props is overriding the value passed in the options props"),n[s]=t[s]):n[s]||(n[s]=t[s])}return n},l=function(t){var e=!1;while(t&&!e)void 0===t.mapObject?t=t.$parent:e=!0;return t},p={props:{pane:{type:String,default:"overlayPane"},attribution:{type:String,default:null,custom:!0},name:{type:String,custom:!0,default:void 0},layerType:{type:String,custom:!0,default:void 0},visible:{type:Boolean,custom:!0,default:!0}},mounted:function(){this.layerOptions={attribution:this.attribution,pane:this.pane}},beforeDestroy:function(){this.unbindPopup(),this.unbindTooltip(),this.parentContainer.removeLayer(this)},methods:{setAttribution:function(t,e){var i=this.$parent.mapObject.attributionControl;i.removeAttribution(e).addAttribution(t)},setName:function(){this.parentContainer.removeLayer(this),this.visible&&this.parentContainer.addLayer(this)},setLayerType:function(){this.parentContainer.removeLayer(this),this.visible&&this.parentContainer.addLayer(this)},setVisible:function(t){this.mapObject&&(t?this.parentContainer.addLayer(this):this.parentContainer.hideLayer?this.parentContainer.hideLayer(this):this.parentContainer.removeLayer(this))},unbindTooltip:function(){var t=this.mapObject?this.mapObject.getTooltip():null;t&&t.unbindTooltip()},unbindPopup:function(){var t=this.mapObject?this.mapObject.getPopup():null;t&&t.unbindPopup()},updateVisibleProp:function(t){this.$emit("update:visible",t)}}},c={props:{options:{type:Object,default:function(){return{}}}}},h={name:"LMarker",mixins:[p,c],props:{pane:{type:String,default:"markerPane"},draggable:{type:Boolean,custom:!0,default:!1},latLng:{type:[Object,Array],custom:!0,default:null},icon:{type:[Object],custom:!1,default:function(){return new n.Icon.Default}},opacity:{type:Number,custom:!1,default:1},zIndexOffset:{type:Number,custom:!1,default:null}},data:function(){return{ready:!1}},beforeDestroy:function(){this.debouncedLatLngSync&&this.debouncedLatLngSync.cancel()},mounted:function(){var t=this,e=u(Object.assign({},this.layerOptions,{icon:this.icon,zIndexOffset:this.zIndexOffset,draggable:this.draggable,opacity:this.opacity}),this);this.mapObject=(0,n.marker)(this.latLng,e),n.DomEvent.on(this.mapObject,this.$listeners),this.debouncedLatLngSync=o(this.latLngSync,100),this.mapObject.on("move",this.debouncedLatLngSync),r(this,this.mapObject,this.$options.props),this.parentContainer=l(this.$parent),this.parentContainer.addLayer(this,!this.visible),this.ready=!0,this.$nextTick((function(){t.$emit("ready",t.mapObject)}))},methods:{setDraggable:function(t,e){this.mapObject.dragging&&(t?this.mapObject.dragging.enable():this.mapObject.dragging.disable())},setLatLng:function(t){if(null!=t&&this.mapObject){var e=this.mapObject.getLatLng(),i=(0,n.latLng)(t);i.lat===e.lat&&i.lng===e.lng||this.mapObject.setLatLng(i)}},latLngSync:function(t){this.$emit("update:latLng",t.latlng),this.$emit("update:lat-lng",t.latlng)}},render:function(t){return this.ready&&this.$slots.default?t("div",{style:{display:"none"}},this.$slots.default):null}};function d(t,e,i,n,o,s,r,a,u,l){"boolean"!==typeof r&&(u=a,a=r,r=!1);var p,c="function"===typeof i?i.options:i;if(t&&t.render&&(c.render=t.render,c.staticRenderFns=t.staticRenderFns,c._compiled=!0,o&&(c.functional=!0)),n&&(c._scopeId=n),s?(p=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"===typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),e&&e.call(this,u(t)),t&&t._registeredComponents&&t._registeredComponents.add(s)},c._ssrRegister=p):e&&(p=r?function(t){e.call(this,l(t,this.$root.$options.shadowRoot))}:function(t){e.call(this,a(t))}),p)if(c.functional){var h=c.render;c.render=function(t,e){return p.call(e),h(t,e)}}else{var d=c.beforeCreate;c.beforeCreate=d?[].concat(d,p):[p]}return i}var f=h,m=void 0,y=void 0,v=void 0,b=void 0,_=d({},m,f,y,b,v,!1,void 0,void 0,void 0);const g=_},32727:(t,e,i)=>{"use strict";i.d(e,{Z:()=>L});var n=i(45243),o=function(t){return t&&"function"===typeof t.charAt?t.charAt(0).toUpperCase()+t.slice(1):t},s=function(t,e,i,s){var r=function(s){var r="set"+o(s),a=i[s].type===Object||i[s].type===Array||Array.isArray(i[s].type);i[s].custom&&t[r]?t.$watch(s,(function(e,i){t[r](e,i)}),{deep:a}):"setOptions"===r?t.$watch(s,(function(t,i){(0,n.setOptions)(e,t)}),{deep:a}):e[r]&&t.$watch(s,(function(t,i){e[r](t)}),{deep:a})};for(var a in i)r(a)},r=function(t){var e={};for(var i in t){var n=t[i];null!==n&&void 0!==n&&(e[i]=n)}return e},a=function(t,e){var i=e.options&&e.options.constructor===Object?e.options:{};t=t&&t.constructor===Object?t:{};var n=r(i);t=r(t);var o=e.$options.props;for(var s in t){var a=o[s]?o[s].default&&"function"===typeof o[s].default?o[s].default.call():o[s].default:Symbol("unique"),u=!1;u=Array.isArray(a)?JSON.stringify(a)===JSON.stringify(t[s]):a===t[s],n[s]&&!u?(console.warn(s+" props is overriding the value passed in the options props"),n[s]=t[s]):n[s]||(n[s]=t[s])}return n},u=function(t){var e=!1;while(t&&!e)void 0===t.mapObject?t=t.$parent:e=!0;return t},l={props:{pane:{type:String,default:"overlayPane"},attribution:{type:String,default:null,custom:!0},name:{type:String,custom:!0,default:void 0},layerType:{type:String,custom:!0,default:void 0},visible:{type:Boolean,custom:!0,default:!0}},mounted:function(){this.layerOptions={attribution:this.attribution,pane:this.pane}},beforeDestroy:function(){this.unbindPopup(),this.unbindTooltip(),this.parentContainer.removeLayer(this)},methods:{setAttribution:function(t,e){var i=this.$parent.mapObject.attributionControl;i.removeAttribution(e).addAttribution(t)},setName:function(){this.parentContainer.removeLayer(this),this.visible&&this.parentContainer.addLayer(this)},setLayerType:function(){this.parentContainer.removeLayer(this),this.visible&&this.parentContainer.addLayer(this)},setVisible:function(t){this.mapObject&&(t?this.parentContainer.addLayer(this):this.parentContainer.hideLayer?this.parentContainer.hideLayer(this):this.parentContainer.removeLayer(this))},unbindTooltip:function(){var t=this.mapObject?this.mapObject.getTooltip():null;t&&t.unbindTooltip()},unbindPopup:function(){var t=this.mapObject?this.mapObject.getPopup():null;t&&t.unbindPopup()},updateVisibleProp:function(t){this.$emit("update:visible",t)}}},p={mixins:[l],props:{pane:{type:String,default:"tilePane"},opacity:{type:Number,custom:!1,default:1},zIndex:{type:Number,default:1},tileSize:{type:Number,default:256},noWrap:{type:Boolean,default:!1}},mounted:function(){this.gridLayerOptions=Object.assign({},this.layerOptions,{pane:this.pane,opacity:this.opacity,zIndex:this.zIndex,tileSize:this.tileSize,noWrap:this.noWrap})}},c={mixins:[p],props:{tms:{type:Boolean,default:!1},subdomains:{type:[String,Array],default:"abc",validator:function(t){return"string"===typeof t||!!Array.isArray(t)&&t.every((function(t){return"string"===typeof t}))}},detectRetina:{type:Boolean,default:!1}},mounted:function(){this.tileLayerOptions=Object.assign({},this.gridLayerOptions,{tms:this.tms,subdomains:this.subdomains,detectRetina:this.detectRetina})},render:function(){return null}},h={props:{options:{type:Object,default:function(){return{}}}}},d={name:"LTileLayer",mixins:[c,h],props:{url:{type:String,default:null},tileLayerClass:{type:Function,default:n.tileLayer}},mounted:function(){var t=this,e=a(this.tileLayerOptions,this);this.mapObject=this.tileLayerClass(this.url,e),n.DomEvent.on(this.mapObject,this.$listeners),s(this,this.mapObject,this.$options.props),this.parentContainer=u(this.$parent),this.parentContainer.addLayer(this,!this.visible),this.$nextTick((function(){t.$emit("ready",t.mapObject)}))}};function f(t,e,i,n,o,s,r,a,u,l){"boolean"!==typeof r&&(u=a,a=r,r=!1);var p,c="function"===typeof i?i.options:i;if(t&&t.render&&(c.render=t.render,c.staticRenderFns=t.staticRenderFns,c._compiled=!0,o&&(c.functional=!0)),n&&(c._scopeId=n),s?(p=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"===typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),e&&e.call(this,u(t)),t&&t._registeredComponents&&t._registeredComponents.add(s)},c._ssrRegister=p):e&&(p=r?function(t){e.call(this,l(t,this.$root.$options.shadowRoot))}:function(t){e.call(this,a(t))}),p)if(c.functional){var h=c.render;c.render=function(t,e){return p.call(e),h(t,e)}}else{var d=c.beforeCreate;c.beforeCreate=d?[].concat(d,p):[p]}return i}var m=d,y=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div")},v=[],b=void 0,_=void 0,g=void 0,O=!1,C=f({render:y,staticRenderFns:v},b,m,_,O,g,!1,void 0,void 0,void 0);const L=C},28511:(t,e,i)=>{"use strict";i.r(e),i.d(e,{CircleMixin:()=>f,ControlMixin:()=>y,GridLayerMixin:()=>_,ImageOverlayMixin:()=>L,InteractiveLayerMixin:()=>j,LCircle:()=>jt,LCircleMarker:()=>Zt,LControl:()=>pe,LControlAttribution:()=>je,LControlLayers:()=>Ue,LControlScale:()=>ei,LControlZoom:()=>yi,LFeatureGroup:()=>Ri,LGeoJson:()=>Mi.Z,LGridLayer:()=>tn,LIcon:()=>vn,LIconDefault:()=>Tn,LImageOverlay:()=>Zn,LLayerGroup:()=>lo,LMap:()=>po.Z,LMarker:()=>co.Z,LPolygon:()=>Mo,LPolyline:()=>es,LPopup:()=>vs,LRectangle:()=>Fs,LTileLayer:()=>Us.Z,LTooltip:()=>ir,LWMSTileLayer:()=>Or,LayerGroupMixin:()=>x,LayerMixin:()=>A,OptionsMixin:()=>P,PathMixin:()=>B,PolygonMixin:()=>D,PolylineMixin:()=>H,PopperMixin:()=>X,TileLayerMixin:()=>Y,TileLayerWMSMixin:()=>ot,capitalizeFirstLetter:()=>s,collectionCleaner:()=>a,debounce:()=>o,findRealParent:()=>l,optionsMerger:()=>u,propsBinder:()=>r});var n=i(45243),o=function(t,e){var i,n=function(){var n=[],o=arguments.length;while(o--)n[o]=arguments[o];var s=this;i&&clearTimeout(i),i=setTimeout((function(){t.apply(s,n),i=null}),e)};return n.cancel=function(){i&&clearTimeout(i)},n},s=function(t){return t&&"function"===typeof t.charAt?t.charAt(0).toUpperCase()+t.slice(1):t},r=function(t,e,i,o){var r=function(o){var r="set"+s(o),a=i[o].type===Object||i[o].type===Array||Array.isArray(i[o].type);i[o].custom&&t[r]?t.$watch(o,(function(e,i){t[r](e,i)}),{deep:a}):"setOptions"===r?t.$watch(o,(function(t,i){(0,n.setOptions)(e,t)}),{deep:a}):e[r]&&t.$watch(o,(function(t,i){e[r](t)}),{deep:a})};for(var a in i)r(a)},a=function(t){var e={};for(var i in t){var n=t[i];null!==n&&void 0!==n&&(e[i]=n)}return e},u=function(t,e){var i=e.options&&e.options.constructor===Object?e.options:{};t=t&&t.constructor===Object?t:{};var n=a(i);t=a(t);var o=e.$options.props;for(var s in t){var r=o[s]?o[s].default&&"function"===typeof o[s].default?o[s].default.call():o[s].default:Symbol("unique"),u=!1;u=Array.isArray(r)?JSON.stringify(r)===JSON.stringify(t[s]):r===t[s],n[s]&&!u?(console.warn(s+" props is overriding the value passed in the options props"),n[s]=t[s]):n[s]||(n[s]=t[s])}return n},l=function(t){var e=!1;while(t&&!e)void 0===t.mapObject?t=t.$parent:e=!0;return t},p={props:{pane:{type:String,default:"overlayPane"},attribution:{type:String,default:null,custom:!0},name:{type:String,custom:!0,default:void 0},layerType:{type:String,custom:!0,default:void 0},visible:{type:Boolean,custom:!0,default:!0}},mounted:function(){this.layerOptions={attribution:this.attribution,pane:this.pane}},beforeDestroy:function(){this.unbindPopup(),this.unbindTooltip(),this.parentContainer.removeLayer(this)},methods:{setAttribution:function(t,e){var i=this.$parent.mapObject.attributionControl;i.removeAttribution(e).addAttribution(t)},setName:function(){this.parentContainer.removeLayer(this),this.visible&&this.parentContainer.addLayer(this)},setLayerType:function(){this.parentContainer.removeLayer(this),this.visible&&this.parentContainer.addLayer(this)},setVisible:function(t){this.mapObject&&(t?this.parentContainer.addLayer(this):this.parentContainer.hideLayer?this.parentContainer.hideLayer(this):this.parentContainer.removeLayer(this))},unbindTooltip:function(){var t=this.mapObject?this.mapObject.getTooltip():null;t&&t.unbindTooltip()},unbindPopup:function(){var t=this.mapObject?this.mapObject.getPopup():null;t&&t.unbindPopup()},updateVisibleProp:function(t){this.$emit("update:visible",t)}}},c={props:{interactive:{type:Boolean,default:!0},bubblingMouseEvents:{type:Boolean,default:!0}},mounted:function(){this.interactiveLayerOptions={interactive:this.interactive,bubblingMouseEvents:this.bubblingMouseEvents}}},h={mixins:[p,c],props:{lStyle:{type:Object,custom:!0,default:null},stroke:{type:Boolean,custom:!0,default:!0},color:{type:String,custom:!0,default:"#3388ff"},weight:{type:Number,custom:!0,default:3},opacity:{type:Number,custom:!0,default:1},lineCap:{type:String,custom:!0,default:"round"},lineJoin:{type:String,custom:!0,default:"round"},dashArray:{type:String,custom:!0,default:null},dashOffset:{type:String,custom:!0,default:null},fill:{type:Boolean,custom:!0,default:!1},fillColor:{type:String,custom:!0,default:"#3388ff"},fillOpacity:{type:Number,custom:!0,default:.2},fillRule:{type:String,custom:!0,default:"evenodd"},className:{type:String,custom:!0,default:null}},mounted:function(){if(this.pathOptions=Object.assign({},this.layerOptions,this.interactiveLayerOptions,{stroke:this.stroke,color:this.color,weight:this.weight,opacity:this.opacity,lineCap:this.lineCap,lineJoin:this.lineJoin,dashArray:this.dashArray,dashOffset:this.dashOffset,fill:this.fill,fillColor:this.fillColor,fillOpacity:this.fillOpacity,fillRule:this.fillRule,className:this.className}),this.lStyle)for(var t in console.warn("lStyle is deprecated and is going to be removed in the next major version"),this.lStyle)this.pathOptions[t]=this.lStyle[t]},beforeDestroy:function(){this.parentContainer?this.parentContainer.removeLayer(this):console.error("Missing parent container")},methods:{setLStyle:function(t){this.mapObject.setStyle(t)},setStroke:function(t){this.mapObject.setStyle({stroke:t})},setColor:function(t){this.mapObject.setStyle({color:t})},setWeight:function(t){this.mapObject.setStyle({weight:t})},setOpacity:function(t){this.mapObject.setStyle({opacity:t})},setLineCap:function(t){this.mapObject.setStyle({lineCap:t})},setLineJoin:function(t){this.mapObject.setStyle({lineJoin:t})},setDashArray:function(t){this.mapObject.setStyle({dashArray:t})},setDashOffset:function(t){this.mapObject.setStyle({dashOffset:t})},setFill:function(t){this.mapObject.setStyle({fill:t})},setFillColor:function(t){this.mapObject.setStyle({fillColor:t})},setFillOpacity:function(t){this.mapObject.setStyle({fillOpacity:t})},setFillRule:function(t){this.mapObject.setStyle({fillRule:t})},setClassName:function(t){this.mapObject.setStyle({className:t})}}},d={mixins:[h],props:{fill:{type:Boolean,custom:!0,default:!0},radius:{type:Number,default:null}},mounted:function(){this.circleOptions=Object.assign({},this.pathOptions,{radius:this.radius})}};const f=d;var m={props:{position:{type:String,default:"topright"}},mounted:function(){this.controlOptions={position:this.position}},beforeDestroy:function(){this.mapObject&&this.mapObject.remove()}};const y=m;var v={props:{pane:{type:String,default:"overlayPane"},attribution:{type:String,default:null,custom:!0},name:{type:String,custom:!0,default:void 0},layerType:{type:String,custom:!0,default:void 0},visible:{type:Boolean,custom:!0,default:!0}},mounted:function(){this.layerOptions={attribution:this.attribution,pane:this.pane}},beforeDestroy:function(){this.unbindPopup(),this.unbindTooltip(),this.parentContainer.removeLayer(this)},methods:{setAttribution:function(t,e){var i=this.$parent.mapObject.attributionControl;i.removeAttribution(e).addAttribution(t)},setName:function(){this.parentContainer.removeLayer(this),this.visible&&this.parentContainer.addLayer(this)},setLayerType:function(){this.parentContainer.removeLayer(this),this.visible&&this.parentContainer.addLayer(this)},setVisible:function(t){this.mapObject&&(t?this.parentContainer.addLayer(this):this.parentContainer.hideLayer?this.parentContainer.hideLayer(this):this.parentContainer.removeLayer(this))},unbindTooltip:function(){var t=this.mapObject?this.mapObject.getTooltip():null;t&&t.unbindTooltip()},unbindPopup:function(){var t=this.mapObject?this.mapObject.getPopup():null;t&&t.unbindPopup()},updateVisibleProp:function(t){this.$emit("update:visible",t)}}},b={mixins:[v],props:{pane:{type:String,default:"tilePane"},opacity:{type:Number,custom:!1,default:1},zIndex:{type:Number,default:1},tileSize:{type:Number,default:256},noWrap:{type:Boolean,default:!1}},mounted:function(){this.gridLayerOptions=Object.assign({},this.layerOptions,{pane:this.pane,opacity:this.opacity,zIndex:this.zIndex,tileSize:this.tileSize,noWrap:this.noWrap})}};const _=b;var g={props:{pane:{type:String,default:"overlayPane"},attribution:{type:String,default:null,custom:!0},name:{type:String,custom:!0,default:void 0},layerType:{type:String,custom:!0,default:void 0},visible:{type:Boolean,custom:!0,default:!0}},mounted:function(){this.layerOptions={attribution:this.attribution,pane:this.pane}},beforeDestroy:function(){this.unbindPopup(),this.unbindTooltip(),this.parentContainer.removeLayer(this)},methods:{setAttribution:function(t,e){var i=this.$parent.mapObject.attributionControl;i.removeAttribution(e).addAttribution(t)},setName:function(){this.parentContainer.removeLayer(this),this.visible&&this.parentContainer.addLayer(this)},setLayerType:function(){this.parentContainer.removeLayer(this),this.visible&&this.parentContainer.addLayer(this)},setVisible:function(t){this.mapObject&&(t?this.parentContainer.addLayer(this):this.parentContainer.hideLayer?this.parentContainer.hideLayer(this):this.parentContainer.removeLayer(this))},unbindTooltip:function(){var t=this.mapObject?this.mapObject.getTooltip():null;t&&t.unbindTooltip()},unbindPopup:function(){var t=this.mapObject?this.mapObject.getPopup():null;t&&t.unbindPopup()},updateVisibleProp:function(t){this.$emit("update:visible",t)}}},O={props:{interactive:{type:Boolean,default:!0},bubblingMouseEvents:{type:Boolean,default:!0}},mounted:function(){this.interactiveLayerOptions={interactive:this.interactive,bubblingMouseEvents:this.bubblingMouseEvents}}},C={mixins:[g,O],props:{url:{type:String,custom:!0},bounds:{custom:!0},opacity:{type:Number,custom:!0,default:1},alt:{type:String,default:""},interactive:{type:Boolean,default:!1},crossOrigin:{type:Boolean,default:!1},errorOverlayUrl:{type:String,custom:!0,default:""},zIndex:{type:Number,custom:!0,default:1},className:{type:String,default:""}},mounted:function(){this.imageOverlayOptions=Object.assign({},this.layerOptions,this.interactiveLayerOptions,{opacity:this.opacity,alt:this.alt,interactive:this.interactive,crossOrigin:this.crossOrigin,errorOverlayUrl:this.errorOverlayUrl,zIndex:this.zIndex,className:this.className})},methods:{setOpacity:function(t){return this.mapObject.setOpacity(t)},setUrl:function(t){return this.mapObject.setUrl(t)},setBounds:function(t){return this.mapObject.setBounds(t)},getBounds:function(){return this.mapObject.getBounds()},getElement:function(){return this.mapObject.getElement()},bringToFront:function(){return this.mapObject.bringToFront()},bringToBack:function(){return this.mapObject.bringToBack()}},render:function(){return null}};const L=C;var S={props:{interactive:{type:Boolean,default:!0},bubblingMouseEvents:{type:Boolean,default:!0}},mounted:function(){this.interactiveLayerOptions={interactive:this.interactive,bubblingMouseEvents:this.bubblingMouseEvents}}};const j=S;var $={props:{pane:{type:String,default:"overlayPane"},attribution:{type:String,default:null,custom:!0},name:{type:String,custom:!0,default:void 0},layerType:{type:String,custom:!0,default:void 0},visible:{type:Boolean,custom:!0,default:!0}},mounted:function(){this.layerOptions={attribution:this.attribution,pane:this.pane}},beforeDestroy:function(){this.unbindPopup(),this.unbindTooltip(),this.parentContainer.removeLayer(this)},methods:{setAttribution:function(t,e){var i=this.$parent.mapObject.attributionControl;i.removeAttribution(e).addAttribution(t)},setName:function(){this.parentContainer.removeLayer(this),this.visible&&this.parentContainer.addLayer(this)},setLayerType:function(){this.parentContainer.removeLayer(this),this.visible&&this.parentContainer.addLayer(this)},setVisible:function(t){this.mapObject&&(t?this.parentContainer.addLayer(this):this.parentContainer.hideLayer?this.parentContainer.hideLayer(this):this.parentContainer.removeLayer(this))},unbindTooltip:function(){var t=this.mapObject?this.mapObject.getTooltip():null;t&&t.unbindTooltip()},unbindPopup:function(){var t=this.mapObject?this.mapObject.getPopup():null;t&&t.unbindPopup()},updateVisibleProp:function(t){this.$emit("update:visible",t)}}};const A=$;var T={props:{pane:{type:String,default:"overlayPane"},attribution:{type:String,default:null,custom:!0},name:{type:String,custom:!0,default:void 0},layerType:{type:String,custom:!0,default:void 0},visible:{type:Boolean,custom:!0,default:!0}},mounted:function(){this.layerOptions={attribution:this.attribution,pane:this.pane}},beforeDestroy:function(){this.unbindPopup(),this.unbindTooltip(),this.parentContainer.removeLayer(this)},methods:{setAttribution:function(t,e){var i=this.$parent.mapObject.attributionControl;i.removeAttribution(e).addAttribution(t)},setName:function(){this.parentContainer.removeLayer(this),this.visible&&this.parentContainer.addLayer(this)},setLayerType:function(){this.parentContainer.removeLayer(this),this.visible&&this.parentContainer.addLayer(this)},setVisible:function(t){this.mapObject&&(t?this.parentContainer.addLayer(this):this.parentContainer.hideLayer?this.parentContainer.hideLayer(this):this.parentContainer.removeLayer(this))},unbindTooltip:function(){var t=this.mapObject?this.mapObject.getTooltip():null;t&&t.unbindTooltip()},unbindPopup:function(){var t=this.mapObject?this.mapObject.getPopup():null;t&&t.unbindPopup()},updateVisibleProp:function(t){this.$emit("update:visible",t)}}},w={mixins:[T],mounted:function(){this.layerGroupOptions=this.layerOptions},methods:{addLayer:function(t,e){e||this.mapObject.addLayer(t.mapObject),this.parentContainer.addLayer(t,!0)},removeLayer:function(t,e){e||this.mapObject.removeLayer(t.mapObject),this.parentContainer.removeLayer(t,!0)}}};const x=w;var N={props:{options:{type:Object,default:function(){return{}}}}};const P=N;var R={props:{pane:{type:String,default:"overlayPane"},attribution:{type:String,default:null,custom:!0},name:{type:String,custom:!0,default:void 0},layerType:{type:String,custom:!0,default:void 0},visible:{type:Boolean,custom:!0,default:!0}},mounted:function(){this.layerOptions={attribution:this.attribution,pane:this.pane}},beforeDestroy:function(){this.unbindPopup(),this.unbindTooltip(),this.parentContainer.removeLayer(this)},methods:{setAttribution:function(t,e){var i=this.$parent.mapObject.attributionControl;i.removeAttribution(e).addAttribution(t)},setName:function(){this.parentContainer.removeLayer(this),this.visible&&this.parentContainer.addLayer(this)},setLayerType:function(){this.parentContainer.removeLayer(this),this.visible&&this.parentContainer.addLayer(this)},setVisible:function(t){this.mapObject&&(t?this.parentContainer.addLayer(this):this.parentContainer.hideLayer?this.parentContainer.hideLayer(this):this.parentContainer.removeLayer(this))},unbindTooltip:function(){var t=this.mapObject?this.mapObject.getTooltip():null;t&&t.unbindTooltip()},unbindPopup:function(){var t=this.mapObject?this.mapObject.getPopup():null;t&&t.unbindPopup()},updateVisibleProp:function(t){this.$emit("update:visible",t)}}},M={props:{interactive:{type:Boolean,default:!0},bubblingMouseEvents:{type:Boolean,default:!0}},mounted:function(){this.interactiveLayerOptions={interactive:this.interactive,bubblingMouseEvents:this.bubblingMouseEvents}}},k={mixins:[R,M],props:{lStyle:{type:Object,custom:!0,default:null},stroke:{type:Boolean,custom:!0,default:!0},color:{type:String,custom:!0,default:"#3388ff"},weight:{type:Number,custom:!0,default:3},opacity:{type:Number,custom:!0,default:1},lineCap:{type:String,custom:!0,default:"round"},lineJoin:{type:String,custom:!0,default:"round"},dashArray:{type:String,custom:!0,default:null},dashOffset:{type:String,custom:!0,default:null},fill:{type:Boolean,custom:!0,default:!1},fillColor:{type:String,custom:!0,default:"#3388ff"},fillOpacity:{type:Number,custom:!0,default:.2},fillRule:{type:String,custom:!0,default:"evenodd"},className:{type:String,custom:!0,default:null}},mounted:function(){if(this.pathOptions=Object.assign({},this.layerOptions,this.interactiveLayerOptions,{stroke:this.stroke,color:this.color,weight:this.weight,opacity:this.opacity,lineCap:this.lineCap,lineJoin:this.lineJoin,dashArray:this.dashArray,dashOffset:this.dashOffset,fill:this.fill,fillColor:this.fillColor,fillOpacity:this.fillOpacity,fillRule:this.fillRule,className:this.className}),this.lStyle)for(var t in console.warn("lStyle is deprecated and is going to be removed in the next major version"),this.lStyle)this.pathOptions[t]=this.lStyle[t]},beforeDestroy:function(){this.parentContainer?this.parentContainer.removeLayer(this):console.error("Missing parent container")},methods:{setLStyle:function(t){this.mapObject.setStyle(t)},setStroke:function(t){this.mapObject.setStyle({stroke:t})},setColor:function(t){this.mapObject.setStyle({color:t})},setWeight:function(t){this.mapObject.setStyle({weight:t})},setOpacity:function(t){this.mapObject.setStyle({opacity:t})},setLineCap:function(t){this.mapObject.setStyle({lineCap:t})},setLineJoin:function(t){this.mapObject.setStyle({lineJoin:t})},setDashArray:function(t){this.mapObject.setStyle({dashArray:t})},setDashOffset:function(t){this.mapObject.setStyle({dashOffset:t})},setFill:function(t){this.mapObject.setStyle({fill:t})},setFillColor:function(t){this.mapObject.setStyle({fillColor:t})},setFillOpacity:function(t){this.mapObject.setStyle({fillOpacity:t})},setFillRule:function(t){this.mapObject.setStyle({fillRule:t})},setClassName:function(t){this.mapObject.setStyle({className:t})}}};const B=k;var E={props:{pane:{type:String,default:"overlayPane"},attribution:{type:String,default:null,custom:!0},name:{type:String,custom:!0,default:void 0},layerType:{type:String,custom:!0,default:void 0},visible:{type:Boolean,custom:!0,default:!0}},mounted:function(){this.layerOptions={attribution:this.attribution,pane:this.pane}},beforeDestroy:function(){this.unbindPopup(),this.unbindTooltip(),this.parentContainer.removeLayer(this)},methods:{setAttribution:function(t,e){var i=this.$parent.mapObject.attributionControl;i.removeAttribution(e).addAttribution(t)},setName:function(){this.parentContainer.removeLayer(this),this.visible&&this.parentContainer.addLayer(this)},setLayerType:function(){this.parentContainer.removeLayer(this),this.visible&&this.parentContainer.addLayer(this)},setVisible:function(t){this.mapObject&&(t?this.parentContainer.addLayer(this):this.parentContainer.hideLayer?this.parentContainer.hideLayer(this):this.parentContainer.removeLayer(this))},unbindTooltip:function(){var t=this.mapObject?this.mapObject.getTooltip():null;t&&t.unbindTooltip()},unbindPopup:function(){var t=this.mapObject?this.mapObject.getPopup():null;t&&t.unbindPopup()},updateVisibleProp:function(t){this.$emit("update:visible",t)}}},I={props:{interactive:{type:Boolean,default:!0},bubblingMouseEvents:{type:Boolean,default:!0}},mounted:function(){this.interactiveLayerOptions={interactive:this.interactive,bubblingMouseEvents:this.bubblingMouseEvents}}},F={mixins:[E,I],props:{lStyle:{type:Object,custom:!0,default:null},stroke:{type:Boolean,custom:!0,default:!0},color:{type:String,custom:!0,default:"#3388ff"},weight:{type:Number,custom:!0,default:3},opacity:{type:Number,custom:!0,default:1},lineCap:{type:String,custom:!0,default:"round"},lineJoin:{type:String,custom:!0,default:"round"},dashArray:{type:String,custom:!0,default:null},dashOffset:{type:String,custom:!0,default:null},fill:{type:Boolean,custom:!0,default:!1},fillColor:{type:String,custom:!0,default:"#3388ff"},fillOpacity:{type:Number,custom:!0,default:.2},fillRule:{type:String,custom:!0,default:"evenodd"},className:{type:String,custom:!0,default:null}},mounted:function(){if(this.pathOptions=Object.assign({},this.layerOptions,this.interactiveLayerOptions,{stroke:this.stroke,color:this.color,weight:this.weight,opacity:this.opacity,lineCap:this.lineCap,lineJoin:this.lineJoin,dashArray:this.dashArray,dashOffset:this.dashOffset,fill:this.fill,fillColor:this.fillColor,fillOpacity:this.fillOpacity,fillRule:this.fillRule,className:this.className}),this.lStyle)for(var t in console.warn("lStyle is deprecated and is going to be removed in the next major version"),this.lStyle)this.pathOptions[t]=this.lStyle[t]},beforeDestroy:function(){this.parentContainer?this.parentContainer.removeLayer(this):console.error("Missing parent container")},methods:{setLStyle:function(t){this.mapObject.setStyle(t)},setStroke:function(t){this.mapObject.setStyle({stroke:t})},setColor:function(t){this.mapObject.setStyle({color:t})},setWeight:function(t){this.mapObject.setStyle({weight:t})},setOpacity:function(t){this.mapObject.setStyle({opacity:t})},setLineCap:function(t){this.mapObject.setStyle({lineCap:t})},setLineJoin:function(t){this.mapObject.setStyle({lineJoin:t})},setDashArray:function(t){this.mapObject.setStyle({dashArray:t})},setDashOffset:function(t){this.mapObject.setStyle({dashOffset:t})},setFill:function(t){this.mapObject.setStyle({fill:t})},setFillColor:function(t){this.mapObject.setStyle({fillColor:t})},setFillOpacity:function(t){this.mapObject.setStyle({fillOpacity:t})},setFillRule:function(t){this.mapObject.setStyle({fillRule:t})},setClassName:function(t){this.mapObject.setStyle({className:t})}}},U={mixins:[F],props:{smoothFactor:{type:Number,custom:!0,default:1},noClip:{type:Boolean,custom:!0,default:!1}},data:function(){return{ready:!1}},mounted:function(){this.polyLineOptions=Object.assign({},this.pathOptions,{smoothFactor:this.smoothFactor,noClip:this.noClip})},methods:{setSmoothFactor:function(t){this.mapObject.setStyle({smoothFactor:t})},setNoClip:function(t){this.mapObject.setStyle({noClip:t})},addLatLng:function(t){this.mapObject.addLatLng(t)}}},z={mixins:[U],props:{fill:{type:Boolean,custom:!0,default:!0}},mounted:function(){this.polygonOptions=this.polyLineOptions},methods:{getGeoJSONData:function(){return this.mapObject.toGeoJSON()}}};const D=z;var V={props:{pane:{type:String,default:"overlayPane"},attribution:{type:String,default:null,custom:!0},name:{type:String,custom:!0,default:void 0},layerType:{type:String,custom:!0,default:void 0},visible:{type:Boolean,custom:!0,default:!0}},mounted:function(){this.layerOptions={attribution:this.attribution,pane:this.pane}},beforeDestroy:function(){this.unbindPopup(),this.unbindTooltip(),this.parentContainer.removeLayer(this)},methods:{setAttribution:function(t,e){var i=this.$parent.mapObject.attributionControl;i.removeAttribution(e).addAttribution(t)},setName:function(){this.parentContainer.removeLayer(this),this.visible&&this.parentContainer.addLayer(this)},setLayerType:function(){this.parentContainer.removeLayer(this),this.visible&&this.parentContainer.addLayer(this)},setVisible:function(t){this.mapObject&&(t?this.parentContainer.addLayer(this):this.parentContainer.hideLayer?this.parentContainer.hideLayer(this):this.parentContainer.removeLayer(this))},unbindTooltip:function(){var t=this.mapObject?this.mapObject.getTooltip():null;t&&t.unbindTooltip()},unbindPopup:function(){var t=this.mapObject?this.mapObject.getPopup():null;t&&t.unbindPopup()},updateVisibleProp:function(t){this.$emit("update:visible",t)}}},G={props:{interactive:{type:Boolean,default:!0},bubblingMouseEvents:{type:Boolean,default:!0}},mounted:function(){this.interactiveLayerOptions={interactive:this.interactive,bubblingMouseEvents:this.bubblingMouseEvents}}},J={mixins:[V,G],props:{lStyle:{type:Object,custom:!0,default:null},stroke:{type:Boolean,custom:!0,default:!0},color:{type:String,custom:!0,default:"#3388ff"},weight:{type:Number,custom:!0,default:3},opacity:{type:Number,custom:!0,default:1},lineCap:{type:String,custom:!0,default:"round"},lineJoin:{type:String,custom:!0,default:"round"},dashArray:{type:String,custom:!0,default:null},dashOffset:{type:String,custom:!0,default:null},fill:{type:Boolean,custom:!0,default:!1},fillColor:{type:String,custom:!0,default:"#3388ff"},fillOpacity:{type:Number,custom:!0,default:.2},fillRule:{type:String,custom:!0,default:"evenodd"},className:{type:String,custom:!0,default:null}},mounted:function(){if(this.pathOptions=Object.assign({},this.layerOptions,this.interactiveLayerOptions,{stroke:this.stroke,color:this.color,weight:this.weight,opacity:this.opacity,lineCap:this.lineCap,lineJoin:this.lineJoin,dashArray:this.dashArray,dashOffset:this.dashOffset,fill:this.fill,fillColor:this.fillColor,fillOpacity:this.fillOpacity,fillRule:this.fillRule,className:this.className}),this.lStyle)for(var t in console.warn("lStyle is deprecated and is going to be removed in the next major version"),this.lStyle)this.pathOptions[t]=this.lStyle[t]},beforeDestroy:function(){this.parentContainer?this.parentContainer.removeLayer(this):console.error("Missing parent container")},methods:{setLStyle:function(t){this.mapObject.setStyle(t)},setStroke:function(t){this.mapObject.setStyle({stroke:t})},setColor:function(t){this.mapObject.setStyle({color:t})},setWeight:function(t){this.mapObject.setStyle({weight:t})},setOpacity:function(t){this.mapObject.setStyle({opacity:t})},setLineCap:function(t){this.mapObject.setStyle({lineCap:t})},setLineJoin:function(t){this.mapObject.setStyle({lineJoin:t})},setDashArray:function(t){this.mapObject.setStyle({dashArray:t})},setDashOffset:function(t){this.mapObject.setStyle({dashOffset:t})},setFill:function(t){this.mapObject.setStyle({fill:t})},setFillColor:function(t){this.mapObject.setStyle({fillColor:t})},setFillOpacity:function(t){this.mapObject.setStyle({fillOpacity:t})},setFillRule:function(t){this.mapObject.setStyle({fillRule:t})},setClassName:function(t){this.mapObject.setStyle({className:t})}}},Z={mixins:[J],props:{smoothFactor:{type:Number,custom:!0,default:1},noClip:{type:Boolean,custom:!0,default:!1}},data:function(){return{ready:!1}},mounted:function(){this.polyLineOptions=Object.assign({},this.pathOptions,{smoothFactor:this.smoothFactor,noClip:this.noClip})},methods:{setSmoothFactor:function(t){this.mapObject.setStyle({smoothFactor:t})},setNoClip:function(t){this.mapObject.setStyle({noClip:t})},addLatLng:function(t){this.mapObject.addLatLng(t)}}};const H=Z;var W={props:{content:{type:String,default:null,custom:!0}},mounted:function(){this.popperOptions={}},methods:{setContent:function(t){this.mapObject&&null!==t&&void 0!==t&&this.mapObject.setContent(t)}},render:function(t){return this.$slots.default?t("div",this.$slots.default):null}};const X=W;var q={props:{pane:{type:String,default:"overlayPane"},attribution:{type:String,default:null,custom:!0},name:{type:String,custom:!0,default:void 0},layerType:{type:String,custom:!0,default:void 0},visible:{type:Boolean,custom:!0,default:!0}},mounted:function(){this.layerOptions={attribution:this.attribution,pane:this.pane}},beforeDestroy:function(){this.unbindPopup(),this.unbindTooltip(),this.parentContainer.removeLayer(this)},methods:{setAttribution:function(t,e){var i=this.$parent.mapObject.attributionControl;i.removeAttribution(e).addAttribution(t)},setName:function(){this.parentContainer.removeLayer(this),this.visible&&this.parentContainer.addLayer(this)},setLayerType:function(){this.parentContainer.removeLayer(this),this.visible&&this.parentContainer.addLayer(this)},setVisible:function(t){this.mapObject&&(t?this.parentContainer.addLayer(this):this.parentContainer.hideLayer?this.parentContainer.hideLayer(this):this.parentContainer.removeLayer(this))},unbindTooltip:function(){var t=this.mapObject?this.mapObject.getTooltip():null;t&&t.unbindTooltip()},unbindPopup:function(){var t=this.mapObject?this.mapObject.getPopup():null;t&&t.unbindPopup()},updateVisibleProp:function(t){this.$emit("update:visible",t)}}},Q={mixins:[q],props:{pane:{type:String,default:"tilePane"},opacity:{type:Number,custom:!1,default:1},zIndex:{type:Number,default:1},tileSize:{type:Number,default:256},noWrap:{type:Boolean,default:!1}},mounted:function(){this.gridLayerOptions=Object.assign({},this.layerOptions,{pane:this.pane,opacity:this.opacity,zIndex:this.zIndex,tileSize:this.tileSize,noWrap:this.noWrap})}},K={mixins:[Q],props:{tms:{type:Boolean,default:!1},subdomains:{type:[String,Array],default:"abc",validator:function(t){return"string"===typeof t||!!Array.isArray(t)&&t.every((function(t){return"string"===typeof t}))}},detectRetina:{type:Boolean,default:!1}},mounted:function(){this.tileLayerOptions=Object.assign({},this.gridLayerOptions,{tms:this.tms,subdomains:this.subdomains,detectRetina:this.detectRetina})},render:function(){return null}};const Y=K;var tt={props:{pane:{type:String,default:"overlayPane"},attribution:{type:String,default:null,custom:!0},name:{type:String,custom:!0,default:void 0},layerType:{type:String,custom:!0,default:void 0},visible:{type:Boolean,custom:!0,default:!0}},mounted:function(){this.layerOptions={attribution:this.attribution,pane:this.pane}},beforeDestroy:function(){this.unbindPopup(),this.unbindTooltip(),this.parentContainer.removeLayer(this)},methods:{setAttribution:function(t,e){var i=this.$parent.mapObject.attributionControl;i.removeAttribution(e).addAttribution(t)},setName:function(){this.parentContainer.removeLayer(this),this.visible&&this.parentContainer.addLayer(this)},setLayerType:function(){this.parentContainer.removeLayer(this),this.visible&&this.parentContainer.addLayer(this)},setVisible:function(t){this.mapObject&&(t?this.parentContainer.addLayer(this):this.parentContainer.hideLayer?this.parentContainer.hideLayer(this):this.parentContainer.removeLayer(this))},unbindTooltip:function(){var t=this.mapObject?this.mapObject.getTooltip():null;t&&t.unbindTooltip()},unbindPopup:function(){var t=this.mapObject?this.mapObject.getPopup():null;t&&t.unbindPopup()},updateVisibleProp:function(t){this.$emit("update:visible",t)}}},et={mixins:[tt],props:{pane:{type:String,default:"tilePane"},opacity:{type:Number,custom:!1,default:1},zIndex:{type:Number,default:1},tileSize:{type:Number,default:256},noWrap:{type:Boolean,default:!1}},mounted:function(){this.gridLayerOptions=Object.assign({},this.layerOptions,{pane:this.pane,opacity:this.opacity,zIndex:this.zIndex,tileSize:this.tileSize,noWrap:this.noWrap})}},it={mixins:[et],props:{tms:{type:Boolean,default:!1},subdomains:{type:[String,Array],default:"abc",validator:function(t){return"string"===typeof t||!!Array.isArray(t)&&t.every((function(t){return"string"===typeof t}))}},detectRetina:{type:Boolean,default:!1}},mounted:function(){this.tileLayerOptions=Object.assign({},this.gridLayerOptions,{tms:this.tms,subdomains:this.subdomains,detectRetina:this.detectRetina})},render:function(){return null}},nt={mixins:[it],props:{layers:{type:String,default:""},styles:{type:String,default:""},format:{type:String,default:"image/jpeg"},transparent:{type:Boolean,custom:!1},version:{type:String,default:"1.1.1"},crs:{default:null},upperCase:{type:Boolean,default:!1}},mounted:function(){this.tileLayerWMSOptions=Object.assign({},this.tileLayerOptions,{layers:this.layers,styles:this.styles,format:this.format,transparent:this.transparent,version:this.version,crs:this.crs,upperCase:this.upperCase})}};const ot=nt;var st=function(t){return t&&"function"===typeof t.charAt?t.charAt(0).toUpperCase()+t.slice(1):t},rt=function(t,e,i,o){var s=function(o){var s="set"+st(o),r=i[o].type===Object||i[o].type===Array||Array.isArray(i[o].type);i[o].custom&&t[s]?t.$watch(o,(function(e,i){t[s](e,i)}),{deep:r}):"setOptions"===s?t.$watch(o,(function(t,i){(0,n.setOptions)(e,t)}),{deep:r}):e[s]&&t.$watch(o,(function(t,i){e[s](t)}),{deep:r})};for(var r in i)s(r)},at=function(t){var e={};for(var i in t){var n=t[i];null!==n&&void 0!==n&&(e[i]=n)}return e},ut=function(t,e){var i=e.options&&e.options.constructor===Object?e.options:{};t=t&&t.constructor===Object?t:{};var n=at(i);t=at(t);var o=e.$options.props;for(var s in t){var r=o[s]?o[s].default&&"function"===typeof o[s].default?o[s].default.call():o[s].default:Symbol("unique"),a=!1;a=Array.isArray(r)?JSON.stringify(r)===JSON.stringify(t[s]):r===t[s],n[s]&&!a?(console.warn(s+" props is overriding the value passed in the options props"),n[s]=t[s]):n[s]||(n[s]=t[s])}return n},lt=function(t){var e=!1;while(t&&!e)void 0===t.mapObject?t=t.$parent:e=!0;return t},pt={props:{pane:{type:String,default:"overlayPane"},attribution:{type:String,default:null,custom:!0},name:{type:String,custom:!0,default:void 0},layerType:{type:String,custom:!0,default:void 0},visible:{type:Boolean,custom:!0,default:!0}},mounted:function(){this.layerOptions={attribution:this.attribution,pane:this.pane}},beforeDestroy:function(){this.unbindPopup(),this.unbindTooltip(),this.parentContainer.removeLayer(this)},methods:{setAttribution:function(t,e){var i=this.$parent.mapObject.attributionControl;i.removeAttribution(e).addAttribution(t)},setName:function(){this.parentContainer.removeLayer(this),this.visible&&this.parentContainer.addLayer(this)},setLayerType:function(){this.parentContainer.removeLayer(this),this.visible&&this.parentContainer.addLayer(this)},setVisible:function(t){this.mapObject&&(t?this.parentContainer.addLayer(this):this.parentContainer.hideLayer?this.parentContainer.hideLayer(this):this.parentContainer.removeLayer(this))},unbindTooltip:function(){var t=this.mapObject?this.mapObject.getTooltip():null;t&&t.unbindTooltip()},unbindPopup:function(){var t=this.mapObject?this.mapObject.getPopup():null;t&&t.unbindPopup()},updateVisibleProp:function(t){this.$emit("update:visible",t)}}},ct={props:{interactive:{type:Boolean,default:!0},bubblingMouseEvents:{type:Boolean,default:!0}},mounted:function(){this.interactiveLayerOptions={interactive:this.interactive,bubblingMouseEvents:this.bubblingMouseEvents}}},ht={mixins:[pt,ct],props:{lStyle:{type:Object,custom:!0,default:null},stroke:{type:Boolean,custom:!0,default:!0},color:{type:String,custom:!0,default:"#3388ff"},weight:{type:Number,custom:!0,default:3},opacity:{type:Number,custom:!0,default:1},lineCap:{type:String,custom:!0,default:"round"},lineJoin:{type:String,custom:!0,default:"round"},dashArray:{type:String,custom:!0,default:null},dashOffset:{type:String,custom:!0,default:null},fill:{type:Boolean,custom:!0,default:!1},fillColor:{type:String,custom:!0,default:"#3388ff"},fillOpacity:{type:Number,custom:!0,default:.2},fillRule:{type:String,custom:!0,default:"evenodd"},className:{type:String,custom:!0,default:null}},mounted:function(){if(this.pathOptions=Object.assign({},this.layerOptions,this.interactiveLayerOptions,{stroke:this.stroke,color:this.color,weight:this.weight,opacity:this.opacity,lineCap:this.lineCap,lineJoin:this.lineJoin,dashArray:this.dashArray,dashOffset:this.dashOffset,fill:this.fill,fillColor:this.fillColor,fillOpacity:this.fillOpacity,fillRule:this.fillRule,className:this.className}),this.lStyle)for(var t in console.warn("lStyle is deprecated and is going to be removed in the next major version"),this.lStyle)this.pathOptions[t]=this.lStyle[t]},beforeDestroy:function(){this.parentContainer?this.parentContainer.removeLayer(this):console.error("Missing parent container")},methods:{setLStyle:function(t){this.mapObject.setStyle(t)},setStroke:function(t){this.mapObject.setStyle({stroke:t})},setColor:function(t){this.mapObject.setStyle({color:t})},setWeight:function(t){this.mapObject.setStyle({weight:t})},setOpacity:function(t){this.mapObject.setStyle({opacity:t})},setLineCap:function(t){this.mapObject.setStyle({lineCap:t})},setLineJoin:function(t){this.mapObject.setStyle({lineJoin:t})},setDashArray:function(t){this.mapObject.setStyle({dashArray:t})},setDashOffset:function(t){this.mapObject.setStyle({dashOffset:t})},setFill:function(t){this.mapObject.setStyle({fill:t})},setFillColor:function(t){this.mapObject.setStyle({fillColor:t})},setFillOpacity:function(t){this.mapObject.setStyle({fillOpacity:t})},setFillRule:function(t){this.mapObject.setStyle({fillRule:t})},setClassName:function(t){this.mapObject.setStyle({className:t})}}},dt={mixins:[ht],props:{fill:{type:Boolean,custom:!0,default:!0},radius:{type:Number,default:null}},mounted:function(){this.circleOptions=Object.assign({},this.pathOptions,{radius:this.radius})}},ft={props:{options:{type:Object,default:function(){return{}}}}},mt={name:"LCircle",mixins:[dt,ft],props:{latLng:{type:[Object,Array],default:function(){return[0,0]}}},data:function(){return{ready:!1}},mounted:function(){var t=this,e=ut(this.circleOptions,this);this.mapObject=(0,n.circle)(this.latLng,e),n.DomEvent.on(this.mapObject,this.$listeners),rt(this,this.mapObject,this.$options.props),this.ready=!0,this.parentContainer=lt(this.$parent),this.parentContainer.addLayer(this,!this.visible),this.$nextTick((function(){t.$emit("ready",t.mapObject)}))},methods:{}};function yt(t,e,i,n,o,s,r,a,u,l){"boolean"!==typeof r&&(u=a,a=r,r=!1);var p,c="function"===typeof i?i.options:i;if(t&&t.render&&(c.render=t.render,c.staticRenderFns=t.staticRenderFns,c._compiled=!0,o&&(c.functional=!0)),n&&(c._scopeId=n),s?(p=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"===typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),e&&e.call(this,u(t)),t&&t._registeredComponents&&t._registeredComponents.add(s)},c._ssrRegister=p):e&&(p=r?function(t){e.call(this,l(t,this.$root.$options.shadowRoot))}:function(t){e.call(this,a(t))}),p)if(c.functional){var h=c.render;c.render=function(t,e){return p.call(e),h(t,e)}}else{var d=c.beforeCreate;c.beforeCreate=d?[].concat(d,p):[p]}return i}var vt=mt,bt=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticStyle:{display:"none"}},[t.ready?t._t("default"):t._e()],2)},_t=[],gt=void 0,Ot=void 0,Ct=void 0,Lt=!1,St=yt({render:bt,staticRenderFns:_t},gt,vt,Ot,Lt,Ct,!1,void 0,void 0,void 0);const jt=St;var $t=function(t){return t&&"function"===typeof t.charAt?t.charAt(0).toUpperCase()+t.slice(1):t},At=function(t,e,i,o){var s=function(o){var s="set"+$t(o),r=i[o].type===Object||i[o].type===Array||Array.isArray(i[o].type);i[o].custom&&t[s]?t.$watch(o,(function(e,i){t[s](e,i)}),{deep:r}):"setOptions"===s?t.$watch(o,(function(t,i){(0,n.setOptions)(e,t)}),{deep:r}):e[s]&&t.$watch(o,(function(t,i){e[s](t)}),{deep:r})};for(var r in i)s(r)},Tt=function(t){var e={};for(var i in t){var n=t[i];null!==n&&void 0!==n&&(e[i]=n)}return e},wt=function(t,e){var i=e.options&&e.options.constructor===Object?e.options:{};t=t&&t.constructor===Object?t:{};var n=Tt(i);t=Tt(t);var o=e.$options.props;for(var s in t){var r=o[s]?o[s].default&&"function"===typeof o[s].default?o[s].default.call():o[s].default:Symbol("unique"),a=!1;a=Array.isArray(r)?JSON.stringify(r)===JSON.stringify(t[s]):r===t[s],n[s]&&!a?(console.warn(s+" props is overriding the value passed in the options props"),n[s]=t[s]):n[s]||(n[s]=t[s])}return n},xt=function(t){var e=!1;while(t&&!e)void 0===t.mapObject?t=t.$parent:e=!0;return t},Nt={props:{pane:{type:String,default:"overlayPane"},attribution:{type:String,default:null,custom:!0},name:{type:String,custom:!0,default:void 0},layerType:{type:String,custom:!0,default:void 0},visible:{type:Boolean,custom:!0,default:!0}},mounted:function(){this.layerOptions={attribution:this.attribution,pane:this.pane}},beforeDestroy:function(){this.unbindPopup(),this.unbindTooltip(),this.parentContainer.removeLayer(this)},methods:{setAttribution:function(t,e){var i=this.$parent.mapObject.attributionControl;i.removeAttribution(e).addAttribution(t)},setName:function(){this.parentContainer.removeLayer(this),this.visible&&this.parentContainer.addLayer(this)},setLayerType:function(){this.parentContainer.removeLayer(this),this.visible&&this.parentContainer.addLayer(this)},setVisible:function(t){this.mapObject&&(t?this.parentContainer.addLayer(this):this.parentContainer.hideLayer?this.parentContainer.hideLayer(this):this.parentContainer.removeLayer(this))},unbindTooltip:function(){var t=this.mapObject?this.mapObject.getTooltip():null;t&&t.unbindTooltip()},unbindPopup:function(){var t=this.mapObject?this.mapObject.getPopup():null;t&&t.unbindPopup()},updateVisibleProp:function(t){this.$emit("update:visible",t)}}},Pt={props:{interactive:{type:Boolean,default:!0},bubblingMouseEvents:{type:Boolean,default:!0}},mounted:function(){this.interactiveLayerOptions={interactive:this.interactive,bubblingMouseEvents:this.bubblingMouseEvents}}},Rt={mixins:[Nt,Pt],props:{lStyle:{type:Object,custom:!0,default:null},stroke:{type:Boolean,custom:!0,default:!0},color:{type:String,custom:!0,default:"#3388ff"},weight:{type:Number,custom:!0,default:3},opacity:{type:Number,custom:!0,default:1},lineCap:{type:String,custom:!0,default:"round"},lineJoin:{type:String,custom:!0,default:"round"},dashArray:{type:String,custom:!0,default:null},dashOffset:{type:String,custom:!0,default:null},fill:{type:Boolean,custom:!0,default:!1},fillColor:{type:String,custom:!0,default:"#3388ff"},fillOpacity:{type:Number,custom:!0,default:.2},fillRule:{type:String,custom:!0,default:"evenodd"},className:{type:String,custom:!0,default:null}},mounted:function(){if(this.pathOptions=Object.assign({},this.layerOptions,this.interactiveLayerOptions,{stroke:this.stroke,color:this.color,weight:this.weight,opacity:this.opacity,lineCap:this.lineCap,lineJoin:this.lineJoin,dashArray:this.dashArray,dashOffset:this.dashOffset,fill:this.fill,fillColor:this.fillColor,fillOpacity:this.fillOpacity,fillRule:this.fillRule,className:this.className}),this.lStyle)for(var t in console.warn("lStyle is deprecated and is going to be removed in the next major version"),this.lStyle)this.pathOptions[t]=this.lStyle[t]},beforeDestroy:function(){this.parentContainer?this.parentContainer.removeLayer(this):console.error("Missing parent container")},methods:{setLStyle:function(t){this.mapObject.setStyle(t)},setStroke:function(t){this.mapObject.setStyle({stroke:t})},setColor:function(t){this.mapObject.setStyle({color:t})},setWeight:function(t){this.mapObject.setStyle({weight:t})},setOpacity:function(t){this.mapObject.setStyle({opacity:t})},setLineCap:function(t){this.mapObject.setStyle({lineCap:t})},setLineJoin:function(t){this.mapObject.setStyle({lineJoin:t})},setDashArray:function(t){this.mapObject.setStyle({dashArray:t})},setDashOffset:function(t){this.mapObject.setStyle({dashOffset:t})},setFill:function(t){this.mapObject.setStyle({fill:t})},setFillColor:function(t){this.mapObject.setStyle({fillColor:t})},setFillOpacity:function(t){this.mapObject.setStyle({fillOpacity:t})},setFillRule:function(t){this.mapObject.setStyle({fillRule:t})},setClassName:function(t){this.mapObject.setStyle({className:t})}}},Mt={mixins:[Rt],props:{fill:{type:Boolean,custom:!0,default:!0},radius:{type:Number,default:null}},mounted:function(){this.circleOptions=Object.assign({},this.pathOptions,{radius:this.radius})}},kt={props:{options:{type:Object,default:function(){return{}}}}},Bt={name:"LCircleMarker",mixins:[Mt,kt],props:{latLng:{type:[Object,Array],default:function(){return[0,0]}},pane:{type:String,default:"markerPane"}},data:function(){return{ready:!1}},mounted:function(){var t=this,e=wt(this.circleOptions,this);this.mapObject=(0,n.circleMarker)(this.latLng,e),n.DomEvent.on(this.mapObject,this.$listeners),At(this,this.mapObject,this.$options.props),this.ready=!0,this.parentContainer=xt(this.$parent),this.parentContainer.addLayer(this,!this.visible),this.$nextTick((function(){t.$emit("ready",t.mapObject)}))}};function Et(t,e,i,n,o,s,r,a,u,l){"boolean"!==typeof r&&(u=a,a=r,r=!1);var p,c="function"===typeof i?i.options:i;if(t&&t.render&&(c.render=t.render,c.staticRenderFns=t.staticRenderFns,c._compiled=!0,o&&(c.functional=!0)),n&&(c._scopeId=n),s?(p=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"===typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),e&&e.call(this,u(t)),t&&t._registeredComponents&&t._registeredComponents.add(s)},c._ssrRegister=p):e&&(p=r?function(t){e.call(this,l(t,this.$root.$options.shadowRoot))}:function(t){e.call(this,a(t))}),p)if(c.functional){var h=c.render;c.render=function(t,e){return p.call(e),h(t,e)}}else{var d=c.beforeCreate;c.beforeCreate=d?[].concat(d,p):[p]}return i}var It=Bt,Ft=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticStyle:{display:"none"}},[t.ready?t._t("default"):t._e()],2)},Ut=[],zt=void 0,Dt=void 0,Vt=void 0,Gt=!1,Jt=Et({render:Ft,staticRenderFns:Ut},zt,It,Dt,Gt,Vt,!1,void 0,void 0,void 0);const Zt=Jt;var Ht=function(t){return t&&"function"===typeof t.charAt?t.charAt(0).toUpperCase()+t.slice(1):t},Wt=function(t,e,i,o){var s=function(o){var s="set"+Ht(o),r=i[o].type===Object||i[o].type===Array||Array.isArray(i[o].type);i[o].custom&&t[s]?t.$watch(o,(function(e,i){t[s](e,i)}),{deep:r}):"setOptions"===s?t.$watch(o,(function(t,i){(0,n.setOptions)(e,t)}),{deep:r}):e[s]&&t.$watch(o,(function(t,i){e[s](t)}),{deep:r})};for(var r in i)s(r)},Xt=function(t){var e={};for(var i in t){var n=t[i];null!==n&&void 0!==n&&(e[i]=n)}return e},qt=function(t,e){var i=e.options&&e.options.constructor===Object?e.options:{};t=t&&t.constructor===Object?t:{};var n=Xt(i);t=Xt(t);var o=e.$options.props;for(var s in t){var r=o[s]?o[s].default&&"function"===typeof o[s].default?o[s].default.call():o[s].default:Symbol("unique"),a=!1;a=Array.isArray(r)?JSON.stringify(r)===JSON.stringify(t[s]):r===t[s],n[s]&&!a?(console.warn(s+" props is overriding the value passed in the options props"),n[s]=t[s]):n[s]||(n[s]=t[s])}return n},Qt=function(t){var e=!1;while(t&&!e)void 0===t.mapObject?t=t.$parent:e=!0;return t},Kt={props:{position:{type:String,default:"topright"}},mounted:function(){this.controlOptions={position:this.position}},beforeDestroy:function(){this.mapObject&&this.mapObject.remove()}},Yt={props:{options:{type:Object,default:function(){return{}}}}},te={name:"LControl",mixins:[Kt,Yt],props:{disableClickPropagation:{type:Boolean,custom:!0,default:!0},disableScrollPropagation:{type:Boolean,custom:!0,default:!1}},mounted:function(){var t=this,e=n.Control.extend({element:void 0,onAdd:function(){return this.element},setElement:function(t){this.element=t}}),i=qt(this.controlOptions,this);this.mapObject=new e(i),Wt(this,this.mapObject,this.$options.props),this.parentContainer=Qt(this.$parent),this.mapObject.setElement(this.$el),this.disableClickPropagation&&n.DomEvent.disableClickPropagation(this.$el),this.disableScrollPropagation&&n.DomEvent.disableScrollPropagation(this.$el),this.mapObject.addTo(this.parentContainer.mapObject),this.$nextTick((function(){t.$emit("ready",t.mapObject)}))}};function ee(t,e,i,n,o,s,r,a,u,l){"boolean"!==typeof r&&(u=a,a=r,r=!1);var p,c="function"===typeof i?i.options:i;if(t&&t.render&&(c.render=t.render,c.staticRenderFns=t.staticRenderFns,c._compiled=!0,o&&(c.functional=!0)),n&&(c._scopeId=n),s?(p=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"===typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),e&&e.call(this,u(t)),t&&t._registeredComponents&&t._registeredComponents.add(s)},c._ssrRegister=p):e&&(p=r?function(t){e.call(this,l(t,this.$root.$options.shadowRoot))}:function(t){e.call(this,a(t))}),p)if(c.functional){var h=c.render;c.render=function(t,e){return p.call(e),h(t,e)}}else{var d=c.beforeCreate;c.beforeCreate=d?[].concat(d,p):[p]}return i}var ie=te,ne=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",[t._t("default")],2)},oe=[],se=void 0,re=void 0,ae=void 0,ue=!1,le=ee({render:ne,staticRenderFns:oe},se,ie,re,ue,ae,!1,void 0,void 0,void 0);const pe=le;var ce=function(t){return t&&"function"===typeof t.charAt?t.charAt(0).toUpperCase()+t.slice(1):t},he=function(t,e,i,o){var s=function(o){var s="set"+ce(o),r=i[o].type===Object||i[o].type===Array||Array.isArray(i[o].type);i[o].custom&&t[s]?t.$watch(o,(function(e,i){t[s](e,i)}),{deep:r}):"setOptions"===s?t.$watch(o,(function(t,i){(0,n.setOptions)(e,t)}),{deep:r}):e[s]&&t.$watch(o,(function(t,i){e[s](t)}),{deep:r})};for(var r in i)s(r)},de=function(t){var e={};for(var i in t){var n=t[i];null!==n&&void 0!==n&&(e[i]=n)}return e},fe=function(t,e){var i=e.options&&e.options.constructor===Object?e.options:{};t=t&&t.constructor===Object?t:{};var n=de(i);t=de(t);var o=e.$options.props;for(var s in t){var r=o[s]?o[s].default&&"function"===typeof o[s].default?o[s].default.call():o[s].default:Symbol("unique"),a=!1;a=Array.isArray(r)?JSON.stringify(r)===JSON.stringify(t[s]):r===t[s],n[s]&&!a?(console.warn(s+" props is overriding the value passed in the options props"),n[s]=t[s]):n[s]||(n[s]=t[s])}return n},me={props:{position:{type:String,default:"topright"}},mounted:function(){this.controlOptions={position:this.position}},beforeDestroy:function(){this.mapObject&&this.mapObject.remove()}},ye={props:{options:{type:Object,default:function(){return{}}}}},ve={name:"LControlAttribution",mixins:[me,ye],props:{prefix:{type:[String,Boolean],default:null}},mounted:function(){var t=this,e=fe(Object.assign({},this.controlOptions,{prefix:this.prefix}),this);this.mapObject=n.control.attribution(e),he(this,this.mapObject,this.$options.props),this.mapObject.addTo(this.$parent.mapObject),this.$nextTick((function(){t.$emit("ready",t.mapObject)}))},render:function(){return null}};function be(t,e,i,n,o,s,r,a,u,l){"boolean"!==typeof r&&(u=a,a=r,r=!1);var p,c="function"===typeof i?i.options:i;if(t&&t.render&&(c.render=t.render,c.staticRenderFns=t.staticRenderFns,c._compiled=!0,o&&(c.functional=!0)),n&&(c._scopeId=n),s?(p=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"===typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),e&&e.call(this,u(t)),t&&t._registeredComponents&&t._registeredComponents.add(s)},c._ssrRegister=p):e&&(p=r?function(t){e.call(this,l(t,this.$root.$options.shadowRoot))}:function(t){e.call(this,a(t))}),p)if(c.functional){var h=c.render;c.render=function(t,e){return p.call(e),h(t,e)}}else{var d=c.beforeCreate;c.beforeCreate=d?[].concat(d,p):[p]}return i}var _e=ve,ge=void 0,Oe=void 0,Ce=void 0,Le=void 0,Se=be({},ge,_e,Oe,Le,Ce,!1,void 0,void 0,void 0);const je=Se;var $e=function(t){return t&&"function"===typeof t.charAt?t.charAt(0).toUpperCase()+t.slice(1):t},Ae=function(t,e,i,o){var s=function(o){var s="set"+$e(o),r=i[o].type===Object||i[o].type===Array||Array.isArray(i[o].type);i[o].custom&&t[s]?t.$watch(o,(function(e,i){t[s](e,i)}),{deep:r}):"setOptions"===s?t.$watch(o,(function(t,i){(0,n.setOptions)(e,t)}),{deep:r}):e[s]&&t.$watch(o,(function(t,i){e[s](t)}),{deep:r})};for(var r in i)s(r)},Te=function(t){var e={};for(var i in t){var n=t[i];null!==n&&void 0!==n&&(e[i]=n)}return e},we=function(t,e){var i=e.options&&e.options.constructor===Object?e.options:{};t=t&&t.constructor===Object?t:{};var n=Te(i);t=Te(t);var o=e.$options.props;for(var s in t){var r=o[s]?o[s].default&&"function"===typeof o[s].default?o[s].default.call():o[s].default:Symbol("unique"),a=!1;a=Array.isArray(r)?JSON.stringify(r)===JSON.stringify(t[s]):r===t[s],n[s]&&!a?(console.warn(s+" props is overriding the value passed in the options props"),n[s]=t[s]):n[s]||(n[s]=t[s])}return n},xe={props:{position:{type:String,default:"topright"}},mounted:function(){this.controlOptions={position:this.position}},beforeDestroy:function(){this.mapObject&&this.mapObject.remove()}},Ne={props:{options:{type:Object,default:function(){return{}}}}},Pe={name:"LControlLayers",mixins:[xe,Ne],props:{collapsed:{type:Boolean,default:!0},autoZIndex:{type:Boolean,default:!0},hideSingleBase:{type:Boolean,default:!1},sortLayers:{type:Boolean,default:!1},sortFunction:{type:Function,default:void 0}},mounted:function(){var t=this,e=we(Object.assign({},this.controlOptions,{collapsed:this.collapsed,autoZIndex:this.autoZIndex,hideSingleBase:this.hideSingleBase,sortLayers:this.sortLayers,sortFunction:this.sortFunction}),this);this.mapObject=n.control.layers(null,null,e),Ae(this,this.mapObject,this.$options.props),this.$parent.registerLayerControl(this),this.$nextTick((function(){t.$emit("ready",t.mapObject)}))},methods:{addLayer:function(t){"base"===t.layerType?this.mapObject.addBaseLayer(t.mapObject,t.name):"overlay"===t.layerType&&this.mapObject.addOverlay(t.mapObject,t.name)},removeLayer:function(t){this.mapObject.removeLayer(t.mapObject)}},render:function(){return null}};function Re(t,e,i,n,o,s,r,a,u,l){"boolean"!==typeof r&&(u=a,a=r,r=!1);var p,c="function"===typeof i?i.options:i;if(t&&t.render&&(c.render=t.render,c.staticRenderFns=t.staticRenderFns,c._compiled=!0,o&&(c.functional=!0)),n&&(c._scopeId=n),s?(p=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"===typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),e&&e.call(this,u(t)),t&&t._registeredComponents&&t._registeredComponents.add(s)},c._ssrRegister=p):e&&(p=r?function(t){e.call(this,l(t,this.$root.$options.shadowRoot))}:function(t){e.call(this,a(t))}),p)if(c.functional){var h=c.render;c.render=function(t,e){return p.call(e),h(t,e)}}else{var d=c.beforeCreate;c.beforeCreate=d?[].concat(d,p):[p]}return i}var Me=Pe,ke=void 0,Be=void 0,Ee=void 0,Ie=void 0,Fe=Re({},ke,Me,Be,Ie,Ee,!1,void 0,void 0,void 0);const Ue=Fe;var ze=function(t){return t&&"function"===typeof t.charAt?t.charAt(0).toUpperCase()+t.slice(1):t},De=function(t,e,i,o){var s=function(o){var s="set"+ze(o),r=i[o].type===Object||i[o].type===Array||Array.isArray(i[o].type);i[o].custom&&t[s]?t.$watch(o,(function(e,i){t[s](e,i)}),{deep:r}):"setOptions"===s?t.$watch(o,(function(t,i){(0,n.setOptions)(e,t)}),{deep:r}):e[s]&&t.$watch(o,(function(t,i){e[s](t)}),{deep:r})};for(var r in i)s(r)},Ve=function(t){var e={};for(var i in t){var n=t[i];null!==n&&void 0!==n&&(e[i]=n)}return e},Ge=function(t,e){var i=e.options&&e.options.constructor===Object?e.options:{};t=t&&t.constructor===Object?t:{};var n=Ve(i);t=Ve(t);var o=e.$options.props;for(var s in t){var r=o[s]?o[s].default&&"function"===typeof o[s].default?o[s].default.call():o[s].default:Symbol("unique"),a=!1;a=Array.isArray(r)?JSON.stringify(r)===JSON.stringify(t[s]):r===t[s],n[s]&&!a?(console.warn(s+" props is overriding the value passed in the options props"),n[s]=t[s]):n[s]||(n[s]=t[s])}return n},Je={props:{position:{type:String,default:"topright"}},mounted:function(){this.controlOptions={position:this.position}},beforeDestroy:function(){this.mapObject&&this.mapObject.remove()}},Ze={props:{options:{type:Object,default:function(){return{}}}}},He={name:"LControlScale",mixins:[Je,Ze],props:{maxWidth:{type:Number,default:100},metric:{type:Boolean,default:!0},imperial:{type:Boolean,default:!0},updateWhenIdle:{type:Boolean,default:!1}},mounted:function(){var t=this,e=Ge(Object.assign({},this.controlOptions,{maxWidth:this.maxWidth,metric:this.metric,imperial:this.imperial,updateWhenIdle:this.updateWhenIdle}),this);this.mapObject=n.control.scale(e),De(this,this.mapObject,this.$options.props),this.mapObject.addTo(this.$parent.mapObject),this.$nextTick((function(){t.$emit("ready",t.mapObject)}))},render:function(){return null}};function We(t,e,i,n,o,s,r,a,u,l){"boolean"!==typeof r&&(u=a,a=r,r=!1);var p,c="function"===typeof i?i.options:i;if(t&&t.render&&(c.render=t.render,c.staticRenderFns=t.staticRenderFns,c._compiled=!0,o&&(c.functional=!0)),n&&(c._scopeId=n),s?(p=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"===typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),e&&e.call(this,u(t)),t&&t._registeredComponents&&t._registeredComponents.add(s)},c._ssrRegister=p):e&&(p=r?function(t){e.call(this,l(t,this.$root.$options.shadowRoot))}:function(t){e.call(this,a(t))}),p)if(c.functional){var h=c.render;c.render=function(t,e){return p.call(e),h(t,e)}}else{var d=c.beforeCreate;c.beforeCreate=d?[].concat(d,p):[p]}return i}var Xe=He,qe=void 0,Qe=void 0,Ke=void 0,Ye=void 0,ti=We({},qe,Xe,Qe,Ye,Ke,!1,void 0,void 0,void 0);const ei=ti;var ii=function(t){return t&&"function"===typeof t.charAt?t.charAt(0).toUpperCase()+t.slice(1):t},ni=function(t,e,i,o){var s=function(o){var s="set"+ii(o),r=i[o].type===Object||i[o].type===Array||Array.isArray(i[o].type);i[o].custom&&t[s]?t.$watch(o,(function(e,i){t[s](e,i)}),{deep:r}):"setOptions"===s?t.$watch(o,(function(t,i){(0,n.setOptions)(e,t)}),{deep:r}):e[s]&&t.$watch(o,(function(t,i){e[s](t)}),{deep:r})};for(var r in i)s(r)},oi=function(t){var e={};for(var i in t){var n=t[i];null!==n&&void 0!==n&&(e[i]=n)}return e},si=function(t,e){var i=e.options&&e.options.constructor===Object?e.options:{};t=t&&t.constructor===Object?t:{};var n=oi(i);t=oi(t);var o=e.$options.props;for(var s in t){var r=o[s]?o[s].default&&"function"===typeof o[s].default?o[s].default.call():o[s].default:Symbol("unique"),a=!1;a=Array.isArray(r)?JSON.stringify(r)===JSON.stringify(t[s]):r===t[s],n[s]&&!a?(console.warn(s+" props is overriding the value passed in the options props"),n[s]=t[s]):n[s]||(n[s]=t[s])}return n},ri={props:{position:{type:String,default:"topright"}},mounted:function(){this.controlOptions={position:this.position}},beforeDestroy:function(){this.mapObject&&this.mapObject.remove()}},ai={props:{options:{type:Object,default:function(){return{}}}}},ui={name:"LControlZoom",mixins:[ri,ai],props:{zoomInText:{type:String,default:"+"},zoomInTitle:{type:String,default:"Zoom in"},zoomOutText:{type:String,default:"-"},zoomOutTitle:{type:String,default:"Zoom out"}},mounted:function(){var t=this,e=si(Object.assign({},this.controlOptions,{zoomInText:this.zoomInText,zoomInTitle:this.zoomInTitle,zoomOutText:this.zoomOutText,zoomOutTitle:this.zoomOutTitle}),this);this.mapObject=n.control.zoom(e),ni(this,this.mapObject,this.$options.props),this.mapObject.addTo(this.$parent.mapObject),this.$nextTick((function(){t.$emit("ready",t.mapObject)}))},render:function(){return null}};function li(t,e,i,n,o,s,r,a,u,l){"boolean"!==typeof r&&(u=a,a=r,r=!1);var p,c="function"===typeof i?i.options:i;if(t&&t.render&&(c.render=t.render,c.staticRenderFns=t.staticRenderFns,c._compiled=!0,o&&(c.functional=!0)),n&&(c._scopeId=n),s?(p=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"===typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),e&&e.call(this,u(t)),t&&t._registeredComponents&&t._registeredComponents.add(s)},c._ssrRegister=p):e&&(p=r?function(t){e.call(this,l(t,this.$root.$options.shadowRoot))}:function(t){e.call(this,a(t))}),p)if(c.functional){var h=c.render;c.render=function(t,e){return p.call(e),h(t,e)}}else{var d=c.beforeCreate;c.beforeCreate=d?[].concat(d,p):[p]}return i}var pi=ui,ci=void 0,hi=void 0,di=void 0,fi=void 0,mi=li({},ci,pi,hi,fi,di,!1,void 0,void 0,void 0);const yi=mi;var vi=function(t){return t&&"function"===typeof t.charAt?t.charAt(0).toUpperCase()+t.slice(1):t},bi=function(t,e,i,o){var s=function(o){var s="set"+vi(o),r=i[o].type===Object||i[o].type===Array||Array.isArray(i[o].type);i[o].custom&&t[s]?t.$watch(o,(function(e,i){t[s](e,i)}),{deep:r}):"setOptions"===s?t.$watch(o,(function(t,i){(0,n.setOptions)(e,t)}),{deep:r}):e[s]&&t.$watch(o,(function(t,i){e[s](t)}),{deep:r})};for(var r in i)s(r)},_i=function(t){var e=!1;while(t&&!e)void 0===t.mapObject?t=t.$parent:e=!0;return t},gi={props:{pane:{type:String,default:"overlayPane"},attribution:{type:String,default:null,custom:!0},name:{type:String,custom:!0,default:void 0},layerType:{type:String,custom:!0,default:void 0},visible:{type:Boolean,custom:!0,default:!0}},mounted:function(){this.layerOptions={attribution:this.attribution,pane:this.pane}},beforeDestroy:function(){this.unbindPopup(),this.unbindTooltip(),this.parentContainer.removeLayer(this)},methods:{setAttribution:function(t,e){var i=this.$parent.mapObject.attributionControl;i.removeAttribution(e).addAttribution(t)},setName:function(){this.parentContainer.removeLayer(this),this.visible&&this.parentContainer.addLayer(this)},setLayerType:function(){this.parentContainer.removeLayer(this),this.visible&&this.parentContainer.addLayer(this)},setVisible:function(t){this.mapObject&&(t?this.parentContainer.addLayer(this):this.parentContainer.hideLayer?this.parentContainer.hideLayer(this):this.parentContainer.removeLayer(this))},unbindTooltip:function(){var t=this.mapObject?this.mapObject.getTooltip():null;t&&t.unbindTooltip()},unbindPopup:function(){var t=this.mapObject?this.mapObject.getPopup():null;t&&t.unbindPopup()},updateVisibleProp:function(t){this.$emit("update:visible",t)}}},Oi={mixins:[gi],mounted:function(){this.layerGroupOptions=this.layerOptions},methods:{addLayer:function(t,e){e||this.mapObject.addLayer(t.mapObject),this.parentContainer.addLayer(t,!0)},removeLayer:function(t,e){e||this.mapObject.removeLayer(t.mapObject),this.parentContainer.removeLayer(t,!0)}}},Ci={props:{options:{type:Object,default:function(){return{}}}}},Li={name:"LFeatureGroup",mixins:[Oi,Ci],data:function(){return{ready:!1}},mounted:function(){var t=this;this.mapObject=(0,n.featureGroup)(),bi(this,this.mapObject,this.$options.props),n.DomEvent.on(this.mapObject,this.$listeners),this.ready=!0,this.parentContainer=_i(this.$parent),this.visible&&this.parentContainer.addLayer(this),this.$nextTick((function(){t.$emit("ready",t.mapObject)}))}};function Si(t,e,i,n,o,s,r,a,u,l){"boolean"!==typeof r&&(u=a,a=r,r=!1);var p,c="function"===typeof i?i.options:i;if(t&&t.render&&(c.render=t.render,c.staticRenderFns=t.staticRenderFns,c._compiled=!0,o&&(c.functional=!0)),n&&(c._scopeId=n),s?(p=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"===typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),e&&e.call(this,u(t)),t&&t._registeredComponents&&t._registeredComponents.add(s)},c._ssrRegister=p):e&&(p=r?function(t){e.call(this,l(t,this.$root.$options.shadowRoot))}:function(t){e.call(this,a(t))}),p)if(c.functional){var h=c.render;c.render=function(t,e){return p.call(e),h(t,e)}}else{var d=c.beforeCreate;c.beforeCreate=d?[].concat(d,p):[p]}return i}var ji=Li,$i=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticStyle:{display:"none"}},[t.ready?t._t("default"):t._e()],2)},Ai=[],Ti=void 0,wi=void 0,xi=void 0,Ni=!1,Pi=Si({render:$i,staticRenderFns:Ai},Ti,ji,wi,Ni,xi,!1,void 0,void 0,void 0);const Ri=Pi;var Mi=i(92011),ki=i(20144),Bi=function(t){return t&&"function"===typeof t.charAt?t.charAt(0).toUpperCase()+t.slice(1):t},Ei=function(t,e,i,o){var s=function(o){var s="set"+Bi(o),r=i[o].type===Object||i[o].type===Array||Array.isArray(i[o].type);i[o].custom&&t[s]?t.$watch(o,(function(e,i){t[s](e,i)}),{deep:r}):"setOptions"===s?t.$watch(o,(function(t,i){(0,n.setOptions)(e,t)}),{deep:r}):e[s]&&t.$watch(o,(function(t,i){e[s](t)}),{deep:r})};for(var r in i)s(r)},Ii=function(t){var e={};for(var i in t){var n=t[i];null!==n&&void 0!==n&&(e[i]=n)}return e},Fi=function(t,e){var i=e.options&&e.options.constructor===Object?e.options:{};t=t&&t.constructor===Object?t:{};var n=Ii(i);t=Ii(t);var o=e.$options.props;for(var s in t){var r=o[s]?o[s].default&&"function"===typeof o[s].default?o[s].default.call():o[s].default:Symbol("unique"),a=!1;a=Array.isArray(r)?JSON.stringify(r)===JSON.stringify(t[s]):r===t[s],n[s]&&!a?(console.warn(s+" props is overriding the value passed in the options props"),n[s]=t[s]):n[s]||(n[s]=t[s])}return n},Ui=function(t){var e=!1;while(t&&!e)void 0===t.mapObject?t=t.$parent:e=!0;return t},zi={props:{pane:{type:String,default:"overlayPane"},attribution:{type:String,default:null,custom:!0},name:{type:String,custom:!0,default:void 0},layerType:{type:String,custom:!0,default:void 0},visible:{type:Boolean,custom:!0,default:!0}},mounted:function(){this.layerOptions={attribution:this.attribution,pane:this.pane}},beforeDestroy:function(){this.unbindPopup(),this.unbindTooltip(),this.parentContainer.removeLayer(this)},methods:{setAttribution:function(t,e){var i=this.$parent.mapObject.attributionControl;i.removeAttribution(e).addAttribution(t)},setName:function(){this.parentContainer.removeLayer(this),this.visible&&this.parentContainer.addLayer(this)},setLayerType:function(){this.parentContainer.removeLayer(this),this.visible&&this.parentContainer.addLayer(this)},setVisible:function(t){this.mapObject&&(t?this.parentContainer.addLayer(this):this.parentContainer.hideLayer?this.parentContainer.hideLayer(this):this.parentContainer.removeLayer(this))},unbindTooltip:function(){var t=this.mapObject?this.mapObject.getTooltip():null;t&&t.unbindTooltip()},unbindPopup:function(){var t=this.mapObject?this.mapObject.getPopup():null;t&&t.unbindPopup()},updateVisibleProp:function(t){this.$emit("update:visible",t)}}},Di={mixins:[zi],props:{pane:{type:String,default:"tilePane"},opacity:{type:Number,custom:!1,default:1},zIndex:{type:Number,default:1},tileSize:{type:Number,default:256},noWrap:{type:Boolean,default:!1}},mounted:function(){this.gridLayerOptions=Object.assign({},this.layerOptions,{pane:this.pane,opacity:this.opacity,zIndex:this.zIndex,tileSize:this.tileSize,noWrap:this.noWrap})}},Vi={props:{options:{type:Object,default:function(){return{}}}}},Gi={name:"LGridLayer",mixins:[Di,Vi],props:{tileComponent:{type:Object,custom:!0,required:!0}},data:function(){return{tileComponents:{}}},computed:{TileConstructor:function(){return ki["default"].extend(this.tileComponent)}},mounted:function(){var t=this,e=n.GridLayer.extend({}),i=Fi(this.gridLayerOptions,this);this.mapObject=new e(i),n.DomEvent.on(this.mapObject,this.$listeners),this.mapObject.on("tileunload",this.onUnload,this),Ei(this,this.mapObject,this.$options.props),this.mapObject.createTile=this.createTile,this.parentContainer=Ui(this.$parent),this.parentContainer.addLayer(this,!this.visible),this.$nextTick((function(){t.$emit("ready",t.mapObject)}))},beforeDestroy:function(){this.parentContainer.removeLayer(this.mapObject),this.mapObject.off("tileunload",this.onUnload),this.mapObject=null},methods:{createTile:function(t){var e=n.DomUtil.create("div"),i=n.DomUtil.create("div");e.appendChild(i);var o=new this.TileConstructor({el:i,parent:this,propsData:{coords:t}}),s=this.mapObject._tileCoordsToKey(t);return this.tileComponents[s]=o,e},onUnload:function(t){var e=this.mapObject._tileCoordsToKey(t.coords);"undefined"!==typeof this.tileComponents[e]&&(this.tileComponents[e].$destroy(),this.tileComponents[e].$el.remove(),delete this.tileComponents[e])},setTileComponent:function(t){this.mapObject.redraw()}}};function Ji(t,e,i,n,o,s,r,a,u,l){"boolean"!==typeof r&&(u=a,a=r,r=!1);var p,c="function"===typeof i?i.options:i;if(t&&t.render&&(c.render=t.render,c.staticRenderFns=t.staticRenderFns,c._compiled=!0,o&&(c.functional=!0)),n&&(c._scopeId=n),s?(p=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"===typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),e&&e.call(this,u(t)),t&&t._registeredComponents&&t._registeredComponents.add(s)},c._ssrRegister=p):e&&(p=r?function(t){e.call(this,l(t,this.$root.$options.shadowRoot))}:function(t){e.call(this,a(t))}),p)if(c.functional){var h=c.render;c.render=function(t,e){return p.call(e),h(t,e)}}else{var d=c.beforeCreate;c.beforeCreate=d?[].concat(d,p):[p]}return i}var Zi=Gi,Hi=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div")},Wi=[],Xi=void 0,qi=void 0,Qi=void 0,Ki=!1,Yi=Ji({render:Hi,staticRenderFns:Wi},Xi,Zi,qi,Ki,Qi,!1,void 0,void 0,void 0);const tn=Yi;var en=function(t){return t&&"function"===typeof t.charAt?t.charAt(0).toUpperCase()+t.slice(1):t},nn=function(t,e,i,o){var s=function(o){var s="set"+en(o),r=i[o].type===Object||i[o].type===Array||Array.isArray(i[o].type);i[o].custom&&t[s]?t.$watch(o,(function(e,i){t[s](e,i)}),{deep:r}):"setOptions"===s?t.$watch(o,(function(t,i){(0,n.setOptions)(e,t)}),{deep:r}):e[s]&&t.$watch(o,(function(t,i){e[s](t)}),{deep:r})};for(var r in i)s(r)},on=function(t){var e={};for(var i in t){var n=t[i];null!==n&&void 0!==n&&(e[i]=n)}return e},sn=function(t,e){var i=e.options&&e.options.constructor===Object?e.options:{};t=t&&t.constructor===Object?t:{};var n=on(i);t=on(t);var o=e.$options.props;for(var s in t){var r=o[s]?o[s].default&&"function"===typeof o[s].default?o[s].default.call():o[s].default:Symbol("unique"),a=!1;a=Array.isArray(r)?JSON.stringify(r)===JSON.stringify(t[s]):r===t[s],n[s]&&!a?(console.warn(s+" props is overriding the value passed in the options props"),n[s]=t[s]):n[s]||(n[s]=t[s])}return n},rn=function(t){var e=!1;while(t&&!e)void 0===t.mapObject?t=t.$parent:e=!0;return t},an={name:"LIcon",props:{iconUrl:{type:String,custom:!0,default:null},iconRetinaUrl:{type:String,custom:!0,default:null},iconSize:{type:[Object,Array],custom:!0,default:null},iconAnchor:{type:[Object,Array],custom:!0,default:null},popupAnchor:{type:[Object,Array],custom:!0,default:function(){return[0,0]}},tooltipAnchor:{type:[Object,Array],custom:!0,default:function(){return[0,0]}},shadowUrl:{type:String,custom:!0,default:null},shadowRetinaUrl:{type:String,custom:!0,default:null},shadowSize:{type:[Object,Array],custom:!0,default:null},shadowAnchor:{type:[Object,Array],custom:!0,default:null},bgPos:{type:[Object,Array],custom:!0,default:function(){return[0,0]}},className:{type:String,custom:!0,default:""},options:{type:Object,custom:!0,default:function(){return{}}}},data:function(){return{parentContainer:null,observer:null,recreationNeeded:!1,swapHtmlNeeded:!1}},mounted:function(){var t=this;if(this.parentContainer=rn(this.$parent),!this.parentContainer)throw new Error("No parent container with mapObject found for LIcon");nn(this,this.parentContainer.mapObject,this.$options.props),this.observer=new MutationObserver((function(){t.scheduleHtmlSwap()})),this.observer.observe(this.$el,{attributes:!0,childList:!0,characterData:!0,subtree:!0}),this.scheduleCreateIcon()},beforeDestroy:function(){this.parentContainer.mapObject&&this.parentContainer.mapObject.setIcon(this.parentContainer.$props.icon),this.observer.disconnect()},methods:{scheduleCreateIcon:function(){this.recreationNeeded=!0,this.$nextTick(this.createIcon)},scheduleHtmlSwap:function(){this.htmlSwapNeeded=!0,this.$nextTick(this.createIcon)},createIcon:function(){if(this.htmlSwapNeeded&&!this.recreationNeeded&&this.iconObject&&this.parentContainer.mapObject.getElement())return this.parentContainer.mapObject.getElement().innerHTML=this.$el.innerHTML,void(this.htmlSwapNeeded=!1);if(this.recreationNeeded){this.iconObject&&n.DomEvent.off(this.iconObject,this.$listeners);var t=sn({iconUrl:this.iconUrl,iconRetinaUrl:this.iconRetinaUrl,iconSize:this.iconSize,iconAnchor:this.iconAnchor,popupAnchor:this.popupAnchor,tooltipAnchor:this.tooltipAnchor,shadowUrl:this.shadowUrl,shadowRetinaUrl:this.shadowRetinaUrl,shadowSize:this.shadowSize,shadowAnchor:this.shadowAnchor,bgPos:this.bgPos,className:this.className,html:this.$el.innerHTML||this.html},this);t.html?this.iconObject=(0,n.divIcon)(t):this.iconObject=(0,n.icon)(t),n.DomEvent.on(this.iconObject,this.$listeners),this.parentContainer.mapObject.setIcon(this.iconObject),this.recreationNeeded=!1,this.htmlSwapNeeded=!1}},setIconUrl:function(){this.scheduleCreateIcon()},setIconRetinaUrl:function(){this.scheduleCreateIcon()},setIconSize:function(){this.scheduleCreateIcon()},setIconAnchor:function(){this.scheduleCreateIcon()},setPopupAnchor:function(){this.scheduleCreateIcon()},setTooltipAnchor:function(){this.scheduleCreateIcon()},setShadowUrl:function(){this.scheduleCreateIcon()},setShadowRetinaUrl:function(){this.scheduleCreateIcon()},setShadowAnchor:function(){this.scheduleCreateIcon()},setBgPos:function(){this.scheduleCreateIcon()},setClassName:function(){this.scheduleCreateIcon()},setHtml:function(){this.scheduleCreateIcon()}},render:function(){return null}};function un(t,e,i,n,o,s,r,a,u,l){"boolean"!==typeof r&&(u=a,a=r,r=!1);var p,c="function"===typeof i?i.options:i;if(t&&t.render&&(c.render=t.render,c.staticRenderFns=t.staticRenderFns,c._compiled=!0,o&&(c.functional=!0)),n&&(c._scopeId=n),s?(p=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"===typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),e&&e.call(this,u(t)),t&&t._registeredComponents&&t._registeredComponents.add(s)},c._ssrRegister=p):e&&(p=r?function(t){e.call(this,l(t,this.$root.$options.shadowRoot))}:function(t){e.call(this,a(t))}),p)if(c.functional){var h=c.render;c.render=function(t,e){return p.call(e),h(t,e)}}else{var d=c.beforeCreate;c.beforeCreate=d?[].concat(d,p):[p]}return i}var ln=an,pn=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",[t._t("default")],2)},cn=[],hn=void 0,dn=void 0,fn=void 0,mn=!1,yn=un({render:pn,staticRenderFns:cn},hn,ln,dn,mn,fn,!1,void 0,void 0,void 0);const vn=yn;var bn=function(t){return t&&"function"===typeof t.charAt?t.charAt(0).toUpperCase()+t.slice(1):t},_n=function(t,e,i,o){var s=function(o){var s="set"+bn(o),r=i[o].type===Object||i[o].type===Array||Array.isArray(i[o].type);i[o].custom&&t[s]?t.$watch(o,(function(e,i){t[s](e,i)}),{deep:r}):"setOptions"===s?t.$watch(o,(function(t,i){(0,n.setOptions)(e,t)}),{deep:r}):e[s]&&t.$watch(o,(function(t,i){e[s](t)}),{deep:r})};for(var r in i)s(r)},gn={name:"LIconDefault",props:{imagePath:{type:String,custom:!0,default:""}},mounted:function(){n.Icon.Default.imagePath=this.imagePath,_n(this,{},this.$options.props)},methods:{setImagePath:function(t){n.Icon.Default.imagePath=t}},render:function(){return null}};function On(t,e,i,n,o,s,r,a,u,l){"boolean"!==typeof r&&(u=a,a=r,r=!1);var p,c="function"===typeof i?i.options:i;if(t&&t.render&&(c.render=t.render,c.staticRenderFns=t.staticRenderFns,c._compiled=!0,o&&(c.functional=!0)),n&&(c._scopeId=n),s?(p=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"===typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),e&&e.call(this,u(t)),t&&t._registeredComponents&&t._registeredComponents.add(s)},c._ssrRegister=p):e&&(p=r?function(t){e.call(this,l(t,this.$root.$options.shadowRoot))}:function(t){e.call(this,a(t))}),p)if(c.functional){var h=c.render;c.render=function(t,e){return p.call(e),h(t,e)}}else{var d=c.beforeCreate;c.beforeCreate=d?[].concat(d,p):[p]}return i}var Cn=gn,Ln=void 0,Sn=void 0,jn=void 0,$n=void 0,An=On({},Ln,Cn,Sn,$n,jn,!1,void 0,void 0,void 0);const Tn=An;var wn=function(t){return t&&"function"===typeof t.charAt?t.charAt(0).toUpperCase()+t.slice(1):t},xn=function(t,e,i,o){var s=function(o){var s="set"+wn(o),r=i[o].type===Object||i[o].type===Array||Array.isArray(i[o].type);i[o].custom&&t[s]?t.$watch(o,(function(e,i){t[s](e,i)}),{deep:r}):"setOptions"===s?t.$watch(o,(function(t,i){(0,n.setOptions)(e,t)}),{deep:r}):e[s]&&t.$watch(o,(function(t,i){e[s](t)}),{deep:r})};for(var r in i)s(r)},Nn=function(t){var e={};for(var i in t){var n=t[i];null!==n&&void 0!==n&&(e[i]=n)}return e},Pn=function(t,e){var i=e.options&&e.options.constructor===Object?e.options:{};t=t&&t.constructor===Object?t:{};var n=Nn(i);t=Nn(t);var o=e.$options.props;for(var s in t){var r=o[s]?o[s].default&&"function"===typeof o[s].default?o[s].default.call():o[s].default:Symbol("unique"),a=!1;a=Array.isArray(r)?JSON.stringify(r)===JSON.stringify(t[s]):r===t[s],n[s]&&!a?(console.warn(s+" props is overriding the value passed in the options props"),n[s]=t[s]):n[s]||(n[s]=t[s])}return n},Rn=function(t){var e=!1;while(t&&!e)void 0===t.mapObject?t=t.$parent:e=!0;return t},Mn={props:{pane:{type:String,default:"overlayPane"},attribution:{type:String,default:null,custom:!0},name:{type:String,custom:!0,default:void 0},layerType:{type:String,custom:!0,default:void 0},visible:{type:Boolean,custom:!0,default:!0}},mounted:function(){this.layerOptions={attribution:this.attribution,pane:this.pane}},beforeDestroy:function(){this.unbindPopup(),this.unbindTooltip(),this.parentContainer.removeLayer(this)},methods:{setAttribution:function(t,e){var i=this.$parent.mapObject.attributionControl;i.removeAttribution(e).addAttribution(t)},setName:function(){this.parentContainer.removeLayer(this),this.visible&&this.parentContainer.addLayer(this)},setLayerType:function(){this.parentContainer.removeLayer(this),this.visible&&this.parentContainer.addLayer(this)},setVisible:function(t){this.mapObject&&(t?this.parentContainer.addLayer(this):this.parentContainer.hideLayer?this.parentContainer.hideLayer(this):this.parentContainer.removeLayer(this))},unbindTooltip:function(){var t=this.mapObject?this.mapObject.getTooltip():null;t&&t.unbindTooltip()},unbindPopup:function(){var t=this.mapObject?this.mapObject.getPopup():null;t&&t.unbindPopup()},updateVisibleProp:function(t){this.$emit("update:visible",t)}}},kn={props:{interactive:{type:Boolean,default:!0},bubblingMouseEvents:{type:Boolean,default:!0}},mounted:function(){this.interactiveLayerOptions={interactive:this.interactive,bubblingMouseEvents:this.bubblingMouseEvents}}},Bn={mixins:[Mn,kn],props:{url:{type:String,custom:!0},bounds:{custom:!0},opacity:{type:Number,custom:!0,default:1},alt:{type:String,default:""},interactive:{type:Boolean,default:!1},crossOrigin:{type:Boolean,default:!1},errorOverlayUrl:{type:String,custom:!0,default:""},zIndex:{type:Number,custom:!0,default:1},className:{type:String,default:""}},mounted:function(){this.imageOverlayOptions=Object.assign({},this.layerOptions,this.interactiveLayerOptions,{opacity:this.opacity,alt:this.alt,interactive:this.interactive,crossOrigin:this.crossOrigin,errorOverlayUrl:this.errorOverlayUrl,zIndex:this.zIndex,className:this.className})},methods:{setOpacity:function(t){return this.mapObject.setOpacity(t)},setUrl:function(t){return this.mapObject.setUrl(t)},setBounds:function(t){return this.mapObject.setBounds(t)},getBounds:function(){return this.mapObject.getBounds()},getElement:function(){return this.mapObject.getElement()},bringToFront:function(){return this.mapObject.bringToFront()},bringToBack:function(){return this.mapObject.bringToBack()}},render:function(){return null}},En={props:{options:{type:Object,default:function(){return{}}}}},In={name:"LImageOverlay",mixins:[Bn,En],mounted:function(){var t=this,e=Pn(this.imageOverlayOptions,this);this.mapObject=(0,n.imageOverlay)(this.url,this.bounds,e),n.DomEvent.on(this.mapObject,this.$listeners),xn(this,this.mapObject,this.$options.props),this.parentContainer=Rn(this.$parent),this.parentContainer.addLayer(this,!this.visible),this.$nextTick((function(){t.$emit("ready",t.mapObject)}))},render:function(){return null}};function Fn(t,e,i,n,o,s,r,a,u,l){"boolean"!==typeof r&&(u=a,a=r,r=!1);var p,c="function"===typeof i?i.options:i;if(t&&t.render&&(c.render=t.render,c.staticRenderFns=t.staticRenderFns,c._compiled=!0,o&&(c.functional=!0)),n&&(c._scopeId=n),s?(p=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"===typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),e&&e.call(this,u(t)),t&&t._registeredComponents&&t._registeredComponents.add(s)},c._ssrRegister=p):e&&(p=r?function(t){e.call(this,l(t,this.$root.$options.shadowRoot))}:function(t){e.call(this,a(t))}),p)if(c.functional){var h=c.render;c.render=function(t,e){return p.call(e),h(t,e)}}else{var d=c.beforeCreate;c.beforeCreate=d?[].concat(d,p):[p]}return i}var Un=In,zn=void 0,Dn=void 0,Vn=void 0,Gn=void 0,Jn=Fn({},zn,Un,Dn,Gn,Vn,!1,void 0,void 0,void 0);const Zn=Jn;var Hn=function(t){return t&&"function"===typeof t.charAt?t.charAt(0).toUpperCase()+t.slice(1):t},Wn=function(t,e,i,o){var s=function(o){var s="set"+Hn(o),r=i[o].type===Object||i[o].type===Array||Array.isArray(i[o].type);i[o].custom&&t[s]?t.$watch(o,(function(e,i){t[s](e,i)}),{deep:r}):"setOptions"===s?t.$watch(o,(function(t,i){(0,n.setOptions)(e,t)}),{deep:r}):e[s]&&t.$watch(o,(function(t,i){e[s](t)}),{deep:r})};for(var r in i)s(r)},Xn=function(t){var e=!1;while(t&&!e)void 0===t.mapObject?t=t.$parent:e=!0;return t},qn={props:{pane:{type:String,default:"overlayPane"},attribution:{type:String,default:null,custom:!0},name:{type:String,custom:!0,default:void 0},layerType:{type:String,custom:!0,default:void 0},visible:{type:Boolean,custom:!0,default:!0}},mounted:function(){this.layerOptions={attribution:this.attribution,pane:this.pane}},beforeDestroy:function(){this.unbindPopup(),this.unbindTooltip(),this.parentContainer.removeLayer(this)},methods:{setAttribution:function(t,e){var i=this.$parent.mapObject.attributionControl;i.removeAttribution(e).addAttribution(t)},setName:function(){this.parentContainer.removeLayer(this),this.visible&&this.parentContainer.addLayer(this)},setLayerType:function(){this.parentContainer.removeLayer(this),this.visible&&this.parentContainer.addLayer(this)},setVisible:function(t){this.mapObject&&(t?this.parentContainer.addLayer(this):this.parentContainer.hideLayer?this.parentContainer.hideLayer(this):this.parentContainer.removeLayer(this))},unbindTooltip:function(){var t=this.mapObject?this.mapObject.getTooltip():null;t&&t.unbindTooltip()},unbindPopup:function(){var t=this.mapObject?this.mapObject.getPopup():null;t&&t.unbindPopup()},updateVisibleProp:function(t){this.$emit("update:visible",t)}}},Qn={mixins:[qn],mounted:function(){this.layerGroupOptions=this.layerOptions},methods:{addLayer:function(t,e){e||this.mapObject.addLayer(t.mapObject),this.parentContainer.addLayer(t,!0)},removeLayer:function(t,e){e||this.mapObject.removeLayer(t.mapObject),this.parentContainer.removeLayer(t,!0)}}},Kn={props:{options:{type:Object,default:function(){return{}}}}},Yn={name:"LLayerGroup",mixins:[Qn,Kn],data:function(){return{ready:!1}},mounted:function(){var t=this;this.mapObject=(0,n.layerGroup)(),Wn(this,this.mapObject,this.$options.props),n.DomEvent.on(this.mapObject,this.$listeners),this.ready=!0,this.parentContainer=Xn(this.$parent),this.parentContainer.addLayer(this,!this.visible),this.$nextTick((function(){t.$emit("ready",t.mapObject)}))}};function to(t,e,i,n,o,s,r,a,u,l){"boolean"!==typeof r&&(u=a,a=r,r=!1);var p,c="function"===typeof i?i.options:i;if(t&&t.render&&(c.render=t.render,c.staticRenderFns=t.staticRenderFns,c._compiled=!0,o&&(c.functional=!0)),n&&(c._scopeId=n),s?(p=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"===typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),e&&e.call(this,u(t)),t&&t._registeredComponents&&t._registeredComponents.add(s)},c._ssrRegister=p):e&&(p=r?function(t){e.call(this,l(t,this.$root.$options.shadowRoot))}:function(t){e.call(this,a(t))}),p)if(c.functional){var h=c.render;c.render=function(t,e){return p.call(e),h(t,e)}}else{var d=c.beforeCreate;c.beforeCreate=d?[].concat(d,p):[p]}return i}var eo=Yn,io=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticStyle:{display:"none"}},[t.ready?t._t("default"):t._e()],2)},no=[],oo=void 0,so=void 0,ro=void 0,ao=!1,uo=to({render:io,staticRenderFns:no},oo,eo,so,ao,ro,!1,void 0,void 0,void 0);const lo=uo;var po=i(75352),co=i(48380),ho=function(t){return t&&"function"===typeof t.charAt?t.charAt(0).toUpperCase()+t.slice(1):t},fo=function(t,e,i,o){var s=function(o){var s="set"+ho(o),r=i[o].type===Object||i[o].type===Array||Array.isArray(i[o].type);i[o].custom&&t[s]?t.$watch(o,(function(e,i){t[s](e,i)}),{deep:r}):"setOptions"===s?t.$watch(o,(function(t,i){(0,n.setOptions)(e,t)}),{deep:r}):e[s]&&t.$watch(o,(function(t,i){e[s](t)}),{deep:r})};for(var r in i)s(r)},mo=function(t){var e={};for(var i in t){var n=t[i];null!==n&&void 0!==n&&(e[i]=n)}return e},yo=function(t,e){var i=e.options&&e.options.constructor===Object?e.options:{};t=t&&t.constructor===Object?t:{};var n=mo(i);t=mo(t);var o=e.$options.props;for(var s in t){var r=o[s]?o[s].default&&"function"===typeof o[s].default?o[s].default.call():o[s].default:Symbol("unique"),a=!1;a=Array.isArray(r)?JSON.stringify(r)===JSON.stringify(t[s]):r===t[s],n[s]&&!a?(console.warn(s+" props is overriding the value passed in the options props"),n[s]=t[s]):n[s]||(n[s]=t[s])}return n},vo=function(t){var e=!1;while(t&&!e)void 0===t.mapObject?t=t.$parent:e=!0;return t},bo={props:{pane:{type:String,default:"overlayPane"},attribution:{type:String,default:null,custom:!0},name:{type:String,custom:!0,default:void 0},layerType:{type:String,custom:!0,default:void 0},visible:{type:Boolean,custom:!0,default:!0}},mounted:function(){this.layerOptions={attribution:this.attribution,pane:this.pane}},beforeDestroy:function(){this.unbindPopup(),this.unbindTooltip(),this.parentContainer.removeLayer(this)},methods:{setAttribution:function(t,e){var i=this.$parent.mapObject.attributionControl;i.removeAttribution(e).addAttribution(t)},setName:function(){this.parentContainer.removeLayer(this),this.visible&&this.parentContainer.addLayer(this)},setLayerType:function(){this.parentContainer.removeLayer(this),this.visible&&this.parentContainer.addLayer(this)},setVisible:function(t){this.mapObject&&(t?this.parentContainer.addLayer(this):this.parentContainer.hideLayer?this.parentContainer.hideLayer(this):this.parentContainer.removeLayer(this))},unbindTooltip:function(){var t=this.mapObject?this.mapObject.getTooltip():null;t&&t.unbindTooltip()},unbindPopup:function(){var t=this.mapObject?this.mapObject.getPopup():null;t&&t.unbindPopup()},updateVisibleProp:function(t){this.$emit("update:visible",t)}}},_o={props:{interactive:{type:Boolean,default:!0},bubblingMouseEvents:{type:Boolean,default:!0}},mounted:function(){this.interactiveLayerOptions={interactive:this.interactive,bubblingMouseEvents:this.bubblingMouseEvents}}},go={mixins:[bo,_o],props:{lStyle:{type:Object,custom:!0,default:null},stroke:{type:Boolean,custom:!0,default:!0},color:{type:String,custom:!0,default:"#3388ff"},weight:{type:Number,custom:!0,default:3},opacity:{type:Number,custom:!0,default:1},lineCap:{type:String,custom:!0,default:"round"},lineJoin:{type:String,custom:!0,default:"round"},dashArray:{type:String,custom:!0,default:null},dashOffset:{type:String,custom:!0,default:null},fill:{type:Boolean,custom:!0,default:!1},fillColor:{type:String,custom:!0,default:"#3388ff"},fillOpacity:{type:Number,custom:!0,default:.2},fillRule:{type:String,custom:!0,default:"evenodd"},className:{type:String,custom:!0,default:null}},mounted:function(){if(this.pathOptions=Object.assign({},this.layerOptions,this.interactiveLayerOptions,{stroke:this.stroke,color:this.color,weight:this.weight,opacity:this.opacity,lineCap:this.lineCap,lineJoin:this.lineJoin,dashArray:this.dashArray,dashOffset:this.dashOffset,fill:this.fill,fillColor:this.fillColor,fillOpacity:this.fillOpacity,fillRule:this.fillRule,className:this.className}),this.lStyle)for(var t in console.warn("lStyle is deprecated and is going to be removed in the next major version"),this.lStyle)this.pathOptions[t]=this.lStyle[t]},beforeDestroy:function(){this.parentContainer?this.parentContainer.removeLayer(this):console.error("Missing parent container")},methods:{setLStyle:function(t){this.mapObject.setStyle(t)},setStroke:function(t){this.mapObject.setStyle({stroke:t})},setColor:function(t){this.mapObject.setStyle({color:t})},setWeight:function(t){this.mapObject.setStyle({weight:t})},setOpacity:function(t){this.mapObject.setStyle({opacity:t})},setLineCap:function(t){this.mapObject.setStyle({lineCap:t})},setLineJoin:function(t){this.mapObject.setStyle({lineJoin:t})},setDashArray:function(t){this.mapObject.setStyle({dashArray:t})},setDashOffset:function(t){this.mapObject.setStyle({dashOffset:t})},setFill:function(t){this.mapObject.setStyle({fill:t})},setFillColor:function(t){this.mapObject.setStyle({fillColor:t})},setFillOpacity:function(t){this.mapObject.setStyle({fillOpacity:t})},setFillRule:function(t){this.mapObject.setStyle({fillRule:t})},setClassName:function(t){this.mapObject.setStyle({className:t})}}},Oo={mixins:[go],props:{smoothFactor:{type:Number,custom:!0,default:1},noClip:{type:Boolean,custom:!0,default:!1}},data:function(){return{ready:!1}},mounted:function(){this.polyLineOptions=Object.assign({},this.pathOptions,{smoothFactor:this.smoothFactor,noClip:this.noClip})},methods:{setSmoothFactor:function(t){this.mapObject.setStyle({smoothFactor:t})},setNoClip:function(t){this.mapObject.setStyle({noClip:t})},addLatLng:function(t){this.mapObject.addLatLng(t)}}},Co={mixins:[Oo],props:{fill:{type:Boolean,custom:!0,default:!0}},mounted:function(){this.polygonOptions=this.polyLineOptions},methods:{getGeoJSONData:function(){return this.mapObject.toGeoJSON()}}},Lo={props:{options:{type:Object,default:function(){return{}}}}},So={name:"LPolygon",mixins:[Co,Lo],props:{latLngs:{type:Array,default:function(){return[]}}},data:function(){return{ready:!1}},mounted:function(){var t=this,e=yo(this.polygonOptions,this);this.mapObject=(0,n.polygon)(this.latLngs,e),n.DomEvent.on(this.mapObject,this.$listeners),fo(this,this.mapObject,this.$options.props),this.ready=!0,this.parentContainer=vo(this.$parent),this.parentContainer.addLayer(this,!this.visible),this.$nextTick((function(){t.$emit("ready",t.mapObject)}))}};function jo(t,e,i,n,o,s,r,a,u,l){"boolean"!==typeof r&&(u=a,a=r,r=!1);var p,c="function"===typeof i?i.options:i;if(t&&t.render&&(c.render=t.render,c.staticRenderFns=t.staticRenderFns,c._compiled=!0,o&&(c.functional=!0)),n&&(c._scopeId=n),s?(p=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"===typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),e&&e.call(this,u(t)),t&&t._registeredComponents&&t._registeredComponents.add(s)},c._ssrRegister=p):e&&(p=r?function(t){e.call(this,l(t,this.$root.$options.shadowRoot))}:function(t){e.call(this,a(t))}),p)if(c.functional){var h=c.render;c.render=function(t,e){return p.call(e),h(t,e)}}else{var d=c.beforeCreate;c.beforeCreate=d?[].concat(d,p):[p]}return i}var $o=So,Ao=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticStyle:{display:"none"}},[t.ready?t._t("default"):t._e()],2)},To=[],wo=void 0,xo=void 0,No=void 0,Po=!1,Ro=jo({render:Ao,staticRenderFns:To},wo,$o,xo,Po,No,!1,void 0,void 0,void 0);const Mo=Ro;var ko=function(t){return t&&"function"===typeof t.charAt?t.charAt(0).toUpperCase()+t.slice(1):t},Bo=function(t,e,i,o){var s=function(o){var s="set"+ko(o),r=i[o].type===Object||i[o].type===Array||Array.isArray(i[o].type);i[o].custom&&t[s]?t.$watch(o,(function(e,i){t[s](e,i)}),{deep:r}):"setOptions"===s?t.$watch(o,(function(t,i){(0,n.setOptions)(e,t)}),{deep:r}):e[s]&&t.$watch(o,(function(t,i){e[s](t)}),{deep:r})};for(var r in i)s(r)},Eo=function(t){var e={};for(var i in t){var n=t[i];null!==n&&void 0!==n&&(e[i]=n)}return e},Io=function(t,e){var i=e.options&&e.options.constructor===Object?e.options:{};t=t&&t.constructor===Object?t:{};var n=Eo(i);t=Eo(t);var o=e.$options.props;for(var s in t){var r=o[s]?o[s].default&&"function"===typeof o[s].default?o[s].default.call():o[s].default:Symbol("unique"),a=!1;a=Array.isArray(r)?JSON.stringify(r)===JSON.stringify(t[s]):r===t[s],n[s]&&!a?(console.warn(s+" props is overriding the value passed in the options props"),n[s]=t[s]):n[s]||(n[s]=t[s])}return n},Fo=function(t){var e=!1;while(t&&!e)void 0===t.mapObject?t=t.$parent:e=!0;return t},Uo={props:{pane:{type:String,default:"overlayPane"},attribution:{type:String,default:null,custom:!0},name:{type:String,custom:!0,default:void 0},layerType:{type:String,custom:!0,default:void 0},visible:{type:Boolean,custom:!0,default:!0}},mounted:function(){this.layerOptions={attribution:this.attribution,pane:this.pane}},beforeDestroy:function(){this.unbindPopup(),this.unbindTooltip(),this.parentContainer.removeLayer(this)},methods:{setAttribution:function(t,e){var i=this.$parent.mapObject.attributionControl;i.removeAttribution(e).addAttribution(t)},setName:function(){this.parentContainer.removeLayer(this),this.visible&&this.parentContainer.addLayer(this)},setLayerType:function(){this.parentContainer.removeLayer(this),this.visible&&this.parentContainer.addLayer(this)},setVisible:function(t){this.mapObject&&(t?this.parentContainer.addLayer(this):this.parentContainer.hideLayer?this.parentContainer.hideLayer(this):this.parentContainer.removeLayer(this))},unbindTooltip:function(){var t=this.mapObject?this.mapObject.getTooltip():null;t&&t.unbindTooltip()},unbindPopup:function(){var t=this.mapObject?this.mapObject.getPopup():null;t&&t.unbindPopup()},updateVisibleProp:function(t){this.$emit("update:visible",t)}}},zo={props:{interactive:{type:Boolean,default:!0},bubblingMouseEvents:{type:Boolean,default:!0}},mounted:function(){this.interactiveLayerOptions={interactive:this.interactive,bubblingMouseEvents:this.bubblingMouseEvents}}},Do={mixins:[Uo,zo],props:{lStyle:{type:Object,custom:!0,default:null},stroke:{type:Boolean,custom:!0,default:!0},color:{type:String,custom:!0,default:"#3388ff"},weight:{type:Number,custom:!0,default:3},opacity:{type:Number,custom:!0,default:1},lineCap:{type:String,custom:!0,default:"round"},lineJoin:{type:String,custom:!0,default:"round"},dashArray:{type:String,custom:!0,default:null},dashOffset:{type:String,custom:!0,default:null},fill:{type:Boolean,custom:!0,default:!1},fillColor:{type:String,custom:!0,default:"#3388ff"},fillOpacity:{type:Number,custom:!0,default:.2},fillRule:{type:String,custom:!0,default:"evenodd"},className:{type:String,custom:!0,default:null}},mounted:function(){if(this.pathOptions=Object.assign({},this.layerOptions,this.interactiveLayerOptions,{stroke:this.stroke,color:this.color,weight:this.weight,opacity:this.opacity,lineCap:this.lineCap,lineJoin:this.lineJoin,dashArray:this.dashArray,dashOffset:this.dashOffset,fill:this.fill,fillColor:this.fillColor,fillOpacity:this.fillOpacity,fillRule:this.fillRule,className:this.className}),this.lStyle)for(var t in console.warn("lStyle is deprecated and is going to be removed in the next major version"),this.lStyle)this.pathOptions[t]=this.lStyle[t]},beforeDestroy:function(){this.parentContainer?this.parentContainer.removeLayer(this):console.error("Missing parent container")},methods:{setLStyle:function(t){this.mapObject.setStyle(t)},setStroke:function(t){this.mapObject.setStyle({stroke:t})},setColor:function(t){this.mapObject.setStyle({color:t})},setWeight:function(t){this.mapObject.setStyle({weight:t})},setOpacity:function(t){this.mapObject.setStyle({opacity:t})},setLineCap:function(t){this.mapObject.setStyle({lineCap:t})},setLineJoin:function(t){this.mapObject.setStyle({lineJoin:t})},setDashArray:function(t){this.mapObject.setStyle({dashArray:t})},setDashOffset:function(t){this.mapObject.setStyle({dashOffset:t})},setFill:function(t){this.mapObject.setStyle({fill:t})},setFillColor:function(t){this.mapObject.setStyle({fillColor:t})},setFillOpacity:function(t){this.mapObject.setStyle({fillOpacity:t})},setFillRule:function(t){this.mapObject.setStyle({fillRule:t})},setClassName:function(t){this.mapObject.setStyle({className:t})}}},Vo={mixins:[Do],props:{smoothFactor:{type:Number,custom:!0,default:1},noClip:{type:Boolean,custom:!0,default:!1}},data:function(){return{ready:!1}},mounted:function(){this.polyLineOptions=Object.assign({},this.pathOptions,{smoothFactor:this.smoothFactor,noClip:this.noClip})},methods:{setSmoothFactor:function(t){this.mapObject.setStyle({smoothFactor:t})},setNoClip:function(t){this.mapObject.setStyle({noClip:t})},addLatLng:function(t){this.mapObject.addLatLng(t)}}},Go={props:{options:{type:Object,default:function(){return{}}}}},Jo={name:"LPolyline",mixins:[Vo,Go],props:{latLngs:{type:Array,default:function(){return[]}}},data:function(){return{ready:!1}},mounted:function(){var t=this,e=Io(this.polyLineOptions,this);this.mapObject=(0,n.polyline)(this.latLngs,e),n.DomEvent.on(this.mapObject,this.$listeners),Bo(this,this.mapObject,this.$options.props),this.ready=!0,this.parentContainer=Fo(this.$parent),this.parentContainer.addLayer(this,!this.visible),this.$nextTick((function(){t.$emit("ready",t.mapObject)}))}};function Zo(t,e,i,n,o,s,r,a,u,l){"boolean"!==typeof r&&(u=a,a=r,r=!1);var p,c="function"===typeof i?i.options:i;if(t&&t.render&&(c.render=t.render,c.staticRenderFns=t.staticRenderFns,c._compiled=!0,o&&(c.functional=!0)),n&&(c._scopeId=n),s?(p=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"===typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),e&&e.call(this,u(t)),t&&t._registeredComponents&&t._registeredComponents.add(s)},c._ssrRegister=p):e&&(p=r?function(t){e.call(this,l(t,this.$root.$options.shadowRoot))}:function(t){e.call(this,a(t))}),p)if(c.functional){var h=c.render;c.render=function(t,e){return p.call(e),h(t,e)}}else{var d=c.beforeCreate;c.beforeCreate=d?[].concat(d,p):[p]}return i}var Ho=Jo,Wo=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticStyle:{display:"none"}},[t.ready?t._t("default"):t._e()],2)},Xo=[],qo=void 0,Qo=void 0,Ko=void 0,Yo=!1,ts=Zo({render:Wo,staticRenderFns:Xo},qo,Ho,Qo,Yo,Ko,!1,void 0,void 0,void 0);const es=ts;var is=function(t){return t&&"function"===typeof t.charAt?t.charAt(0).toUpperCase()+t.slice(1):t},ns=function(t,e,i,o){var s=function(o){var s="set"+is(o),r=i[o].type===Object||i[o].type===Array||Array.isArray(i[o].type);i[o].custom&&t[s]?t.$watch(o,(function(e,i){t[s](e,i)}),{deep:r}):"setOptions"===s?t.$watch(o,(function(t,i){(0,n.setOptions)(e,t)}),{deep:r}):e[s]&&t.$watch(o,(function(t,i){e[s](t)}),{deep:r})};for(var r in i)s(r)},os=function(t){var e={};for(var i in t){var n=t[i];null!==n&&void 0!==n&&(e[i]=n)}return e},ss=function(t,e){var i=e.options&&e.options.constructor===Object?e.options:{};t=t&&t.constructor===Object?t:{};var n=os(i);t=os(t);var o=e.$options.props;for(var s in t){var r=o[s]?o[s].default&&"function"===typeof o[s].default?o[s].default.call():o[s].default:Symbol("unique"),a=!1;a=Array.isArray(r)?JSON.stringify(r)===JSON.stringify(t[s]):r===t[s],n[s]&&!a?(console.warn(s+" props is overriding the value passed in the options props"),n[s]=t[s]):n[s]||(n[s]=t[s])}return n},rs=function(t){var e=!1;while(t&&!e)void 0===t.mapObject?t=t.$parent:e=!0;return t},as={props:{content:{type:String,default:null,custom:!0}},mounted:function(){this.popperOptions={}},methods:{setContent:function(t){this.mapObject&&null!==t&&void 0!==t&&this.mapObject.setContent(t)}},render:function(t){return this.$slots.default?t("div",this.$slots.default):null}},us={props:{options:{type:Object,default:function(){return{}}}}},ls={name:"LPopup",mixins:[as,us],props:{latLng:{type:[Object,Array],default:function(){return[]}}},mounted:function(){var t=this,e=ss(this.popperOptions,this);this.mapObject=(0,n.popup)(e),void 0!==this.latLng&&this.mapObject.setLatLng(this.latLng),n.DomEvent.on(this.mapObject,this.$listeners),ns(this,this.mapObject,this.$options.props),this.mapObject.setContent(this.content||this.$el),this.parentContainer=rs(this.$parent),this.parentContainer.mapObject.bindPopup(this.mapObject),this.$nextTick((function(){t.$emit("ready",t.mapObject)}))},beforeDestroy:function(){this.parentContainer&&(this.parentContainer.unbindPopup?this.parentContainer.unbindPopup():this.parentContainer.mapObject&&this.parentContainer.mapObject.unbindPopup&&this.parentContainer.mapObject.unbindPopup())}};function ps(t,e,i,n,o,s,r,a,u,l){"boolean"!==typeof r&&(u=a,a=r,r=!1);var p,c="function"===typeof i?i.options:i;if(t&&t.render&&(c.render=t.render,c.staticRenderFns=t.staticRenderFns,c._compiled=!0,o&&(c.functional=!0)),n&&(c._scopeId=n),s?(p=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"===typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),e&&e.call(this,u(t)),t&&t._registeredComponents&&t._registeredComponents.add(s)},c._ssrRegister=p):e&&(p=r?function(t){e.call(this,l(t,this.$root.$options.shadowRoot))}:function(t){e.call(this,a(t))}),p)if(c.functional){var h=c.render;c.render=function(t,e){return p.call(e),h(t,e)}}else{var d=c.beforeCreate;c.beforeCreate=d?[].concat(d,p):[p]}return i}var cs=ls,hs=void 0,ds=void 0,fs=void 0,ms=void 0,ys=ps({},hs,cs,ds,ms,fs,!1,void 0,void 0,void 0);const vs=ys;var bs=function(t){return t&&"function"===typeof t.charAt?t.charAt(0).toUpperCase()+t.slice(1):t},_s=function(t,e,i,o){var s=function(o){var s="set"+bs(o),r=i[o].type===Object||i[o].type===Array||Array.isArray(i[o].type);i[o].custom&&t[s]?t.$watch(o,(function(e,i){t[s](e,i)}),{deep:r}):"setOptions"===s?t.$watch(o,(function(t,i){(0,n.setOptions)(e,t)}),{deep:r}):e[s]&&t.$watch(o,(function(t,i){e[s](t)}),{deep:r})};for(var r in i)s(r)},gs=function(t){var e={};for(var i in t){var n=t[i];null!==n&&void 0!==n&&(e[i]=n)}return e},Os=function(t,e){var i=e.options&&e.options.constructor===Object?e.options:{};t=t&&t.constructor===Object?t:{};var n=gs(i);t=gs(t);var o=e.$options.props;for(var s in t){var r=o[s]?o[s].default&&"function"===typeof o[s].default?o[s].default.call():o[s].default:Symbol("unique"),a=!1;a=Array.isArray(r)?JSON.stringify(r)===JSON.stringify(t[s]):r===t[s],n[s]&&!a?(console.warn(s+" props is overriding the value passed in the options props"),n[s]=t[s]):n[s]||(n[s]=t[s])}return n},Cs=function(t){var e=!1;while(t&&!e)void 0===t.mapObject?t=t.$parent:e=!0;return t},Ls={props:{pane:{type:String,default:"overlayPane"},attribution:{type:String,default:null,custom:!0},name:{type:String,custom:!0,default:void 0},layerType:{type:String,custom:!0,default:void 0},visible:{type:Boolean,custom:!0,default:!0}},mounted:function(){this.layerOptions={attribution:this.attribution,pane:this.pane}},beforeDestroy:function(){this.unbindPopup(),this.unbindTooltip(),this.parentContainer.removeLayer(this)},methods:{setAttribution:function(t,e){var i=this.$parent.mapObject.attributionControl;i.removeAttribution(e).addAttribution(t)},setName:function(){this.parentContainer.removeLayer(this),this.visible&&this.parentContainer.addLayer(this)},setLayerType:function(){this.parentContainer.removeLayer(this),this.visible&&this.parentContainer.addLayer(this)},setVisible:function(t){this.mapObject&&(t?this.parentContainer.addLayer(this):this.parentContainer.hideLayer?this.parentContainer.hideLayer(this):this.parentContainer.removeLayer(this))},unbindTooltip:function(){var t=this.mapObject?this.mapObject.getTooltip():null;t&&t.unbindTooltip()},unbindPopup:function(){var t=this.mapObject?this.mapObject.getPopup():null;t&&t.unbindPopup()},updateVisibleProp:function(t){this.$emit("update:visible",t)}}},Ss={props:{interactive:{type:Boolean,default:!0},bubblingMouseEvents:{type:Boolean,default:!0}},mounted:function(){this.interactiveLayerOptions={interactive:this.interactive,bubblingMouseEvents:this.bubblingMouseEvents}}},js={mixins:[Ls,Ss],props:{lStyle:{type:Object,custom:!0,default:null},stroke:{type:Boolean,custom:!0,default:!0},color:{type:String,custom:!0,default:"#3388ff"},weight:{type:Number,custom:!0,default:3},opacity:{type:Number,custom:!0,default:1},lineCap:{type:String,custom:!0,default:"round"},lineJoin:{type:String,custom:!0,default:"round"},dashArray:{type:String,custom:!0,default:null},dashOffset:{type:String,custom:!0,default:null},fill:{type:Boolean,custom:!0,default:!1},fillColor:{type:String,custom:!0,default:"#3388ff"},fillOpacity:{type:Number,custom:!0,default:.2},fillRule:{type:String,custom:!0,default:"evenodd"},className:{type:String,custom:!0,default:null}},mounted:function(){if(this.pathOptions=Object.assign({},this.layerOptions,this.interactiveLayerOptions,{stroke:this.stroke,color:this.color,weight:this.weight,opacity:this.opacity,lineCap:this.lineCap,lineJoin:this.lineJoin,dashArray:this.dashArray,dashOffset:this.dashOffset,fill:this.fill,fillColor:this.fillColor,fillOpacity:this.fillOpacity,fillRule:this.fillRule,className:this.className}),this.lStyle)for(var t in console.warn("lStyle is deprecated and is going to be removed in the next major version"),this.lStyle)this.pathOptions[t]=this.lStyle[t]},beforeDestroy:function(){this.parentContainer?this.parentContainer.removeLayer(this):console.error("Missing parent container")},methods:{setLStyle:function(t){this.mapObject.setStyle(t)},setStroke:function(t){this.mapObject.setStyle({stroke:t})},setColor:function(t){this.mapObject.setStyle({color:t})},setWeight:function(t){this.mapObject.setStyle({weight:t})},setOpacity:function(t){this.mapObject.setStyle({opacity:t})},setLineCap:function(t){this.mapObject.setStyle({lineCap:t})},setLineJoin:function(t){this.mapObject.setStyle({lineJoin:t})},setDashArray:function(t){this.mapObject.setStyle({dashArray:t})},setDashOffset:function(t){this.mapObject.setStyle({dashOffset:t})},setFill:function(t){this.mapObject.setStyle({fill:t})},setFillColor:function(t){this.mapObject.setStyle({fillColor:t})},setFillOpacity:function(t){this.mapObject.setStyle({fillOpacity:t})},setFillRule:function(t){this.mapObject.setStyle({fillRule:t})},setClassName:function(t){this.mapObject.setStyle({className:t})}}},$s={mixins:[js],props:{smoothFactor:{type:Number,custom:!0,default:1},noClip:{type:Boolean,custom:!0,default:!1}},data:function(){return{ready:!1}},mounted:function(){this.polyLineOptions=Object.assign({},this.pathOptions,{smoothFactor:this.smoothFactor,noClip:this.noClip})},methods:{setSmoothFactor:function(t){this.mapObject.setStyle({smoothFactor:t})},setNoClip:function(t){this.mapObject.setStyle({noClip:t})},addLatLng:function(t){this.mapObject.addLatLng(t)}}},As={mixins:[$s],props:{fill:{type:Boolean,custom:!0,default:!0}},mounted:function(){this.polygonOptions=this.polyLineOptions},methods:{getGeoJSONData:function(){return this.mapObject.toGeoJSON()}}},Ts={props:{options:{type:Object,default:function(){return{}}}}},ws={name:"LRectangle",mixins:[As,Ts],props:{bounds:{default:function(){return[[0,0],[0,0]]},validator:function(t){return t&&(0,n.latLngBounds)(t).isValid()}}},data:function(){return{ready:!1}},mounted:function(){var t=this,e=Os(this.polygonOptions,this);this.mapObject=(0,n.rectangle)(this.bounds,e),n.DomEvent.on(this.mapObject,this.$listeners),_s(this,this.mapObject,this.$options.props),this.ready=!0,this.parentContainer=Cs(this.$parent),this.parentContainer.addLayer(this,!this.visible),this.$nextTick((function(){t.$emit("ready",t.mapObject)}))}};function xs(t,e,i,n,o,s,r,a,u,l){"boolean"!==typeof r&&(u=a,a=r,r=!1);var p,c="function"===typeof i?i.options:i;if(t&&t.render&&(c.render=t.render,c.staticRenderFns=t.staticRenderFns,c._compiled=!0,o&&(c.functional=!0)),n&&(c._scopeId=n),s?(p=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"===typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),e&&e.call(this,u(t)),t&&t._registeredComponents&&t._registeredComponents.add(s)},c._ssrRegister=p):e&&(p=r?function(t){e.call(this,l(t,this.$root.$options.shadowRoot))}:function(t){e.call(this,a(t))}),p)if(c.functional){var h=c.render;c.render=function(t,e){return p.call(e),h(t,e)}}else{var d=c.beforeCreate;c.beforeCreate=d?[].concat(d,p):[p]}return i}var Ns=ws,Ps=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticStyle:{display:"none"}},[t.ready?t._t("default"):t._e()],2)},Rs=[],Ms=void 0,ks=void 0,Bs=void 0,Es=!1,Is=xs({render:Ps,staticRenderFns:Rs},Ms,Ns,ks,Es,Bs,!1,void 0,void 0,void 0);const Fs=Is;var Us=i(32727),zs=function(t){return t&&"function"===typeof t.charAt?t.charAt(0).toUpperCase()+t.slice(1):t},Ds=function(t,e,i,o){var s=function(o){var s="set"+zs(o),r=i[o].type===Object||i[o].type===Array||Array.isArray(i[o].type);i[o].custom&&t[s]?t.$watch(o,(function(e,i){t[s](e,i)}),{deep:r}):"setOptions"===s?t.$watch(o,(function(t,i){(0,n.setOptions)(e,t)}),{deep:r}):e[s]&&t.$watch(o,(function(t,i){e[s](t)}),{deep:r})};for(var r in i)s(r)},Vs=function(t){var e={};for(var i in t){var n=t[i];null!==n&&void 0!==n&&(e[i]=n)}return e},Gs=function(t,e){var i=e.options&&e.options.constructor===Object?e.options:{};t=t&&t.constructor===Object?t:{};var n=Vs(i);t=Vs(t);var o=e.$options.props;for(var s in t){var r=o[s]?o[s].default&&"function"===typeof o[s].default?o[s].default.call():o[s].default:Symbol("unique"),a=!1;a=Array.isArray(r)?JSON.stringify(r)===JSON.stringify(t[s]):r===t[s],n[s]&&!a?(console.warn(s+" props is overriding the value passed in the options props"),n[s]=t[s]):n[s]||(n[s]=t[s])}return n},Js=function(t){var e=!1;while(t&&!e)void 0===t.mapObject?t=t.$parent:e=!0;return t},Zs={props:{content:{type:String,default:null,custom:!0}},mounted:function(){this.popperOptions={}},methods:{setContent:function(t){this.mapObject&&null!==t&&void 0!==t&&this.mapObject.setContent(t)}},render:function(t){return this.$slots.default?t("div",this.$slots.default):null}},Hs={props:{options:{type:Object,default:function(){return{}}}}},Ws={name:"LTooltip",mixins:[Zs,Hs],mounted:function(){var t=this,e=Gs(this.popperOptions,this);this.mapObject=(0,n.tooltip)(e),n.DomEvent.on(this.mapObject,this.$listeners),Ds(this,this.mapObject,this.$options.props),this.mapObject.setContent(this.content||this.$el),this.parentContainer=Js(this.$parent),this.parentContainer.mapObject.bindTooltip(this.mapObject),this.$nextTick((function(){t.$emit("ready",t.mapObject)}))},beforeDestroy:function(){this.parentContainer&&(this.parentContainer.unbindTooltip?this.parentContainer.unbindTooltip():this.parentContainer.mapObject&&this.parentContainer.mapObject.unbindTooltip&&this.parentContainer.mapObject.unbindTooltip())}};function Xs(t,e,i,n,o,s,r,a,u,l){"boolean"!==typeof r&&(u=a,a=r,r=!1);var p,c="function"===typeof i?i.options:i;if(t&&t.render&&(c.render=t.render,c.staticRenderFns=t.staticRenderFns,c._compiled=!0,o&&(c.functional=!0)),n&&(c._scopeId=n),s?(p=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"===typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),e&&e.call(this,u(t)),t&&t._registeredComponents&&t._registeredComponents.add(s)},c._ssrRegister=p):e&&(p=r?function(t){e.call(this,l(t,this.$root.$options.shadowRoot))}:function(t){e.call(this,a(t))}),p)if(c.functional){var h=c.render;c.render=function(t,e){return p.call(e),h(t,e)}}else{var d=c.beforeCreate;c.beforeCreate=d?[].concat(d,p):[p]}return i}var qs=Ws,Qs=void 0,Ks=void 0,Ys=void 0,tr=void 0,er=Xs({},Qs,qs,Ks,tr,Ys,!1,void 0,void 0,void 0);const ir=er;var nr=function(t){return t&&"function"===typeof t.charAt?t.charAt(0).toUpperCase()+t.slice(1):t},or=function(t,e,i,o){var s=function(o){var s="set"+nr(o),r=i[o].type===Object||i[o].type===Array||Array.isArray(i[o].type);i[o].custom&&t[s]?t.$watch(o,(function(e,i){t[s](e,i)}),{deep:r}):"setOptions"===s?t.$watch(o,(function(t,i){(0,n.setOptions)(e,t)}),{deep:r}):e[s]&&t.$watch(o,(function(t,i){e[s](t)}),{deep:r})};for(var r in i)s(r)},sr=function(t){var e={};for(var i in t){var n=t[i];null!==n&&void 0!==n&&(e[i]=n)}return e},rr=function(t,e){var i=e.options&&e.options.constructor===Object?e.options:{};t=t&&t.constructor===Object?t:{};var n=sr(i);t=sr(t);var o=e.$options.props;for(var s in t){var r=o[s]?o[s].default&&"function"===typeof o[s].default?o[s].default.call():o[s].default:Symbol("unique"),a=!1;a=Array.isArray(r)?JSON.stringify(r)===JSON.stringify(t[s]):r===t[s],n[s]&&!a?(console.warn(s+" props is overriding the value passed in the options props"),n[s]=t[s]):n[s]||(n[s]=t[s])}return n},ar=function(t){var e=!1;while(t&&!e)void 0===t.mapObject?t=t.$parent:e=!0;return t},ur={props:{pane:{type:String,default:"overlayPane"},attribution:{type:String,default:null,custom:!0},name:{type:String,custom:!0,default:void 0},layerType:{type:String,custom:!0,default:void 0},visible:{type:Boolean,custom:!0,default:!0}},mounted:function(){this.layerOptions={attribution:this.attribution,pane:this.pane}},beforeDestroy:function(){this.unbindPopup(),this.unbindTooltip(),this.parentContainer.removeLayer(this)},methods:{setAttribution:function(t,e){var i=this.$parent.mapObject.attributionControl;i.removeAttribution(e).addAttribution(t)},setName:function(){this.parentContainer.removeLayer(this),this.visible&&this.parentContainer.addLayer(this)},setLayerType:function(){this.parentContainer.removeLayer(this),this.visible&&this.parentContainer.addLayer(this)},setVisible:function(t){this.mapObject&&(t?this.parentContainer.addLayer(this):this.parentContainer.hideLayer?this.parentContainer.hideLayer(this):this.parentContainer.removeLayer(this))},unbindTooltip:function(){var t=this.mapObject?this.mapObject.getTooltip():null;t&&t.unbindTooltip()},unbindPopup:function(){var t=this.mapObject?this.mapObject.getPopup():null;t&&t.unbindPopup()},updateVisibleProp:function(t){this.$emit("update:visible",t)}}},lr={mixins:[ur],props:{pane:{type:String,default:"tilePane"},opacity:{type:Number,custom:!1,default:1},zIndex:{type:Number,default:1},tileSize:{type:Number,default:256},noWrap:{type:Boolean,default:!1}},mounted:function(){this.gridLayerOptions=Object.assign({},this.layerOptions,{pane:this.pane,opacity:this.opacity,zIndex:this.zIndex,tileSize:this.tileSize,noWrap:this.noWrap})}},pr={mixins:[lr],props:{tms:{type:Boolean,default:!1},subdomains:{type:[String,Array],default:"abc",validator:function(t){return"string"===typeof t||!!Array.isArray(t)&&t.every((function(t){return"string"===typeof t}))}},detectRetina:{type:Boolean,default:!1}},mounted:function(){this.tileLayerOptions=Object.assign({},this.gridLayerOptions,{tms:this.tms,subdomains:this.subdomains,detectRetina:this.detectRetina})},render:function(){return null}},cr={mixins:[pr],props:{layers:{type:String,default:""},styles:{type:String,default:""},format:{type:String,default:"image/jpeg"},transparent:{type:Boolean,custom:!1},version:{type:String,default:"1.1.1"},crs:{default:null},upperCase:{type:Boolean,default:!1}},mounted:function(){this.tileLayerWMSOptions=Object.assign({},this.tileLayerOptions,{layers:this.layers,styles:this.styles,format:this.format,transparent:this.transparent,version:this.version,crs:this.crs,upperCase:this.upperCase})}},hr={props:{options:{type:Object,default:function(){return{}}}}},dr={name:"LWMSTileLayer",mixins:[cr,hr],props:{baseUrl:{type:String,default:null}},mounted:function(){var t=this,e=rr(this.tileLayerWMSOptions,this);this.mapObject=n.tileLayer.wms(this.baseUrl,e),n.DomEvent.on(this.mapObject,this.$listeners),or(this,this.mapObject,this.$options.props),this.parentContainer=ar(this.$parent),this.parentContainer.addLayer(this,!this.visible),this.$nextTick((function(){t.$emit("ready",t.mapObject)}))}};function fr(t,e,i,n,o,s,r,a,u,l){"boolean"!==typeof r&&(u=a,a=r,r=!1);var p,c="function"===typeof i?i.options:i;if(t&&t.render&&(c.render=t.render,c.staticRenderFns=t.staticRenderFns,c._compiled=!0,o&&(c.functional=!0)),n&&(c._scopeId=n),s?(p=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"===typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),e&&e.call(this,u(t)),t&&t._registeredComponents&&t._registeredComponents.add(s)},c._ssrRegister=p):e&&(p=r?function(t){e.call(this,l(t,this.$root.$options.shadowRoot))}:function(t){e.call(this,a(t))}),p)if(c.functional){var h=c.render;c.render=function(t,e){return p.call(e),h(t,e)}}else{var d=c.beforeCreate;c.beforeCreate=d?[].concat(d,p):[p]}return i}var mr=dr,yr=void 0,vr=void 0,br=void 0,_r=void 0,gr=fr({},yr,mr,vr,_r,br,!1,void 0,void 0,void 0);const Or=gr}}]); \ No newline at end of file diff --git a/HomeUI/dist/js/7218.js b/HomeUI/dist/js/7218.js index fb50dbaf9..f172d6eda 100644 --- a/HomeUI/dist/js/7218.js +++ b/HomeUI/dist/js/7218.js @@ -1 +1 @@ -"use strict";(globalThis["webpackChunkflux"]=globalThis["webpackChunkflux"]||[]).push([[7218],{97218:(e,t,n)=>{var r=n(48764)["lW"];function o(e,t){return function(){return e.apply(t,arguments)}}const{toString:s}=Object.prototype,{getPrototypeOf:i}=Object,a=(e=>t=>{const n=s.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),c=e=>(e=e.toLowerCase(),t=>a(t)===e),u=e=>t=>typeof t===e,{isArray:l}=Array,f=u("undefined");function d(e){return null!==e&&!f(e)&&null!==e.constructor&&!f(e.constructor)&&y(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const h=c("ArrayBuffer");function p(e){let t;return t="undefined"!==typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&h(e.buffer),t}const m=u("string"),y=u("function"),b=u("number"),g=e=>null!==e&&"object"===typeof e,w=e=>!0===e||!1===e,E=e=>{if("object"!==a(e))return!1;const t=i(e);return(null===t||t===Object.prototype||null===Object.getPrototypeOf(t))&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},O=c("Date"),R=c("File"),S=c("Blob"),T=c("FileList"),A=e=>g(e)&&y(e.pipe),v=e=>{let t;return e&&("function"===typeof FormData&&e instanceof FormData||y(e.append)&&("formdata"===(t=a(e))||"object"===t&&y(e.toString)&&"[object FormData]"===e.toString()))},x=c("URLSearchParams"),[C,j,N,P]=["ReadableStream","Request","Response","Headers"].map(c),_=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function L(e,t,{allOwnKeys:n=!1}={}){if(null===e||"undefined"===typeof e)return;let r,o;if("object"!==typeof e&&(e=[e]),l(e))for(r=0,o=e.length;r0)if(r=n[o],t===r.toLowerCase())return r;return null}const F=(()=>"undefined"!==typeof globalThis?globalThis:"undefined"!==typeof self?self:"undefined"!==typeof window?window:n.g)(),B=e=>!f(e)&&e!==F;function D(){const{caseless:e}=B(this)&&this||{},t={},n=(n,r)=>{const o=e&&U(t,r)||r;E(t[o])&&E(n)?t[o]=D(t[o],n):E(n)?t[o]=D({},n):l(n)?t[o]=n.slice():t[o]=n};for(let r=0,o=arguments.length;r(L(t,((t,r)=>{n&&y(t)?e[r]=o(t,n):e[r]=t}),{allOwnKeys:r}),e),q=e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),I=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},z=(e,t,n,r)=>{let o,s,a;const c={};if(t=t||{},null==e)return t;do{o=Object.getOwnPropertyNames(e),s=o.length;while(s-- >0)a=o[s],r&&!r(a,e,t)||c[a]||(t[a]=e[a],c[a]=!0);e=!1!==n&&i(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},M=(e,t,n)=>{e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return-1!==r&&r===n},H=e=>{if(!e)return null;if(l(e))return e;let t=e.length;if(!b(t))return null;const n=new Array(t);while(t-- >0)n[t]=e[t];return n},J=(e=>t=>e&&t instanceof e)("undefined"!==typeof Uint8Array&&i(Uint8Array)),W=(e,t)=>{const n=e&&e[Symbol.iterator],r=n.call(e);let o;while((o=r.next())&&!o.done){const n=o.value;t.call(e,n[0],n[1])}},K=(e,t)=>{let n;const r=[];while(null!==(n=e.exec(t)))r.push(n);return r},V=c("HTMLFormElement"),$=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function(e,t,n){return t.toUpperCase()+n})),G=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),X=c("RegExp"),Q=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};L(n,((n,o)=>{let s;!1!==(s=t(n,o,e))&&(r[o]=s||n)})),Object.defineProperties(e,r)},Z=e=>{Q(e,((t,n)=>{if(y(e)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;const r=e[n];y(r)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")}))}))},Y=(e,t)=>{const n={},r=e=>{e.forEach((e=>{n[e]=!0}))};return l(e)?r(e):r(String(e).split(t)),n},ee=()=>{},te=(e,t)=>null!=e&&Number.isFinite(e=+e)?e:t,ne="abcdefghijklmnopqrstuvwxyz",re="0123456789",oe={DIGIT:re,ALPHA:ne,ALPHA_DIGIT:ne+ne.toUpperCase()+re},se=(e=16,t=oe.ALPHA_DIGIT)=>{let n="";const{length:r}=t;while(e--)n+=t[Math.random()*r|0];return n};function ie(e){return!!(e&&y(e.append)&&"FormData"===e[Symbol.toStringTag]&&e[Symbol.iterator])}const ae=e=>{const t=new Array(10),n=(e,r)=>{if(g(e)){if(t.indexOf(e)>=0)return;if(!("toJSON"in e)){t[r]=e;const o=l(e)?[]:{};return L(e,((e,t)=>{const s=n(e,r+1);!f(s)&&(o[t]=s)})),t[r]=void 0,o}}return e};return n(e,0)},ce=c("AsyncFunction"),ue=e=>e&&(g(e)||y(e))&&y(e.then)&&y(e.catch);var le={isArray:l,isArrayBuffer:h,isBuffer:d,isFormData:v,isArrayBufferView:p,isString:m,isNumber:b,isBoolean:w,isObject:g,isPlainObject:E,isReadableStream:C,isRequest:j,isResponse:N,isHeaders:P,isUndefined:f,isDate:O,isFile:R,isBlob:S,isRegExp:X,isFunction:y,isStream:A,isURLSearchParams:x,isTypedArray:J,isFileList:T,forEach:L,merge:D,extend:k,trim:_,stripBOM:q,inherits:I,toFlatObject:z,kindOf:a,kindOfTest:c,endsWith:M,toArray:H,forEachEntry:W,matchAll:K,isHTMLForm:V,hasOwnProperty:G,hasOwnProp:G,reduceDescriptors:Q,freezeMethods:Z,toObjectSet:Y,toCamelCase:$,noop:ee,toFiniteNumber:te,findKey:U,global:F,isContextDefined:B,ALPHABET:oe,generateString:se,isSpecCompliantForm:ie,toJSONObject:ae,isAsyncFn:ce,isThenable:ue};function fe(e,t,n,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o)}le.inherits(fe,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:le.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const de=fe.prototype,he={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach((e=>{he[e]={value:e}})),Object.defineProperties(fe,he),Object.defineProperty(de,"isAxiosError",{value:!0}),fe.from=(e,t,n,r,o,s)=>{const i=Object.create(de);return le.toFlatObject(e,i,(function(e){return e!==Error.prototype}),(e=>"isAxiosError"!==e)),fe.call(i,e.message,t,n,r,o),i.cause=e,i.name=e.name,s&&Object.assign(i,s),i};var pe=null;function me(e){return le.isPlainObject(e)||le.isArray(e)}function ye(e){return le.endsWith(e,"[]")?e.slice(0,-2):e}function be(e,t,n){return e?e.concat(t).map((function(e,t){return e=ye(e),!n&&t?"["+e+"]":e})).join(n?".":""):t}function ge(e){return le.isArray(e)&&!e.some(me)}const we=le.toFlatObject(le,{},null,(function(e){return/^is[A-Z]/.test(e)}));function Ee(e,t,n){if(!le.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=le.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,t){return!le.isUndefined(t[e])}));const o=n.metaTokens,s=n.visitor||f,i=n.dots,a=n.indexes,c=n.Blob||"undefined"!==typeof Blob&&Blob,u=c&&le.isSpecCompliantForm(t);if(!le.isFunction(s))throw new TypeError("visitor must be a function");function l(e){if(null===e)return"";if(le.isDate(e))return e.toISOString();if(!u&&le.isBlob(e))throw new fe("Blob is not supported. Use a Buffer instead.");return le.isArrayBuffer(e)||le.isTypedArray(e)?u&&"function"===typeof Blob?new Blob([e]):r.from(e):e}function f(e,n,r){let s=e;if(e&&!r&&"object"===typeof e)if(le.endsWith(n,"{}"))n=o?n:n.slice(0,-2),e=JSON.stringify(e);else if(le.isArray(e)&&ge(e)||(le.isFileList(e)||le.endsWith(n,"[]"))&&(s=le.toArray(e)))return n=ye(n),s.forEach((function(e,r){!le.isUndefined(e)&&null!==e&&t.append(!0===a?be([n],r,i):null===a?n:n+"[]",l(e))})),!1;return!!me(e)||(t.append(be(r,n,i),l(e)),!1)}const d=[],h=Object.assign(we,{defaultVisitor:f,convertValue:l,isVisitable:me});function p(e,n){if(!le.isUndefined(e)){if(-1!==d.indexOf(e))throw Error("Circular reference detected in "+n.join("."));d.push(e),le.forEach(e,(function(e,r){const o=!(le.isUndefined(e)||null===e)&&s.call(t,e,le.isString(r)?r.trim():r,n,h);!0===o&&p(e,n?n.concat(r):[r])})),d.pop()}}if(!le.isObject(e))throw new TypeError("data must be an object");return p(e),t}function Oe(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function(e){return t[e]}))}function Re(e,t){this._pairs=[],e&&Ee(e,this,t)}const Se=Re.prototype;function Te(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Ae(e,t,n){if(!t)return e;const r=n&&n.encode||Te,o=n&&n.serialize;let s;if(s=o?o(t,n):le.isURLSearchParams(t)?t.toString():new Re(t,n).toString(r),s){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+s}return e}Se.append=function(e,t){this._pairs.push([e,t])},Se.toString=function(e){const t=e?function(t){return e.call(this,t,Oe)}:Oe;return this._pairs.map((function(e){return t(e[0])+"="+t(e[1])}),"").join("&")};class ve{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){le.forEach(this.handlers,(function(t){null!==t&&e(t)}))}}var xe=ve,Ce={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},je="undefined"!==typeof URLSearchParams?URLSearchParams:Re,Ne="undefined"!==typeof FormData?FormData:null,Pe="undefined"!==typeof Blob?Blob:null,_e={isBrowser:!0,classes:{URLSearchParams:je,FormData:Ne,Blob:Pe},protocols:["http","https","file","blob","url","data"]};const Le="undefined"!==typeof window&&"undefined"!==typeof document,Ue=(e=>Le&&["ReactNative","NativeScript","NS"].indexOf(e)<0)("undefined"!==typeof navigator&&navigator.product),Fe=(()=>"undefined"!==typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"===typeof self.importScripts)(),Be=Le&&window.location.href||"http://localhost";var De=Object.freeze({__proto__:null,hasBrowserEnv:Le,hasStandardBrowserWebWorkerEnv:Fe,hasStandardBrowserEnv:Ue,origin:Be}),ke={...De,..._e};function qe(e,t){return Ee(e,new ke.classes.URLSearchParams,Object.assign({visitor:function(e,t,n,r){return ke.isNode&&le.isBuffer(e)?(this.append(t,e.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)}},t))}function Ie(e){return le.matchAll(/\w+|\[(\w*)]/g,e).map((e=>"[]"===e[0]?"":e[1]||e[0]))}function ze(e){const t={},n=Object.keys(e);let r;const o=n.length;let s;for(r=0;r=e.length;if(s=!s&&le.isArray(r)?r.length:s,a)return le.hasOwnProp(r,s)?r[s]=[r[s],n]:r[s]=n,!i;r[s]&&le.isObject(r[s])||(r[s]=[]);const c=t(e,n,r[s],o);return c&&le.isArray(r[s])&&(r[s]=ze(r[s])),!i}if(le.isFormData(e)&&le.isFunction(e.entries)){const n={};return le.forEachEntry(e,((e,r)=>{t(Ie(e),r,n,0)})),n}return null}function He(e,t,n){if(le.isString(e))try{return(t||JSON.parse)(e),le.trim(e)}catch(r){if("SyntaxError"!==r.name)throw r}return(n||JSON.stringify)(e)}const Je={transitional:Ce,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const n=t.getContentType()||"",r=n.indexOf("application/json")>-1,o=le.isObject(e);o&&le.isHTMLForm(e)&&(e=new FormData(e));const s=le.isFormData(e);if(s)return r?JSON.stringify(Me(e)):e;if(le.isArrayBuffer(e)||le.isBuffer(e)||le.isStream(e)||le.isFile(e)||le.isBlob(e)||le.isReadableStream(e))return e;if(le.isArrayBufferView(e))return e.buffer;if(le.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let i;if(o){if(n.indexOf("application/x-www-form-urlencoded")>-1)return qe(e,this.formSerializer).toString();if((i=le.isFileList(e))||n.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return Ee(i?{"files[]":e}:e,t&&new t,this.formSerializer)}}return o||r?(t.setContentType("application/json",!1),He(e)):e}],transformResponse:[function(e){const t=this.transitional||Je.transitional,n=t&&t.forcedJSONParsing,r="json"===this.responseType;if(le.isResponse(e)||le.isReadableStream(e))return e;if(e&&le.isString(e)&&(n&&!this.responseType||r)){const n=t&&t.silentJSONParsing,s=!n&&r;try{return JSON.parse(e)}catch(o){if(s){if("SyntaxError"===o.name)throw fe.from(o,fe.ERR_BAD_RESPONSE,this,null,this.response);throw o}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:ke.classes.FormData,Blob:ke.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};le.forEach(["delete","get","head","post","put","patch"],(e=>{Je.headers[e]={}}));var We=Je;const Ke=le.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]);var Ve=e=>{const t={};let n,r,o;return e&&e.split("\n").forEach((function(e){o=e.indexOf(":"),n=e.substring(0,o).trim().toLowerCase(),r=e.substring(o+1).trim(),!n||t[n]&&Ke[n]||("set-cookie"===n?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)})),t};const $e=Symbol("internals");function Ge(e){return e&&String(e).trim().toLowerCase()}function Xe(e){return!1===e||null==e?e:le.isArray(e)?e.map(Xe):String(e)}function Qe(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;while(r=n.exec(e))t[r[1]]=r[2];return t}const Ze=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Ye(e,t,n,r,o){return le.isFunction(r)?r.call(this,t,n):(o&&(t=n),le.isString(t)?le.isString(r)?-1!==t.indexOf(r):le.isRegExp(r)?r.test(t):void 0:void 0)}function et(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((e,t,n)=>t.toUpperCase()+n))}function tt(e,t){const n=le.toCamelCase(" "+t);["get","set","has"].forEach((r=>{Object.defineProperty(e,r+n,{value:function(e,n,o){return this[r].call(this,t,e,n,o)},configurable:!0})}))}class nt{constructor(e){e&&this.set(e)}set(e,t,n){const r=this;function o(e,t,n){const o=Ge(t);if(!o)throw new Error("header name must be a non-empty string");const s=le.findKey(r,o);(!s||void 0===r[s]||!0===n||void 0===n&&!1!==r[s])&&(r[s||t]=Xe(e))}const s=(e,t)=>le.forEach(e,((e,n)=>o(e,n,t)));if(le.isPlainObject(e)||e instanceof this.constructor)s(e,t);else if(le.isString(e)&&(e=e.trim())&&!Ze(e))s(Ve(e),t);else if(le.isHeaders(e))for(const[i,a]of e.entries())o(a,i,n);else null!=e&&o(t,e,n);return this}get(e,t){if(e=Ge(e),e){const n=le.findKey(this,e);if(n){const e=this[n];if(!t)return e;if(!0===t)return Qe(e);if(le.isFunction(t))return t.call(this,e,n);if(le.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=Ge(e),e){const n=le.findKey(this,e);return!(!n||void 0===this[n]||t&&!Ye(this,this[n],n,t))}return!1}delete(e,t){const n=this;let r=!1;function o(e){if(e=Ge(e),e){const o=le.findKey(n,e);!o||t&&!Ye(n,n[o],o,t)||(delete n[o],r=!0)}}return le.isArray(e)?e.forEach(o):o(e),r}clear(e){const t=Object.keys(this);let n=t.length,r=!1;while(n--){const o=t[n];e&&!Ye(this,this[o],o,e,!0)||(delete this[o],r=!0)}return r}normalize(e){const t=this,n={};return le.forEach(this,((r,o)=>{const s=le.findKey(n,o);if(s)return t[s]=Xe(r),void delete t[o];const i=e?et(o):String(o).trim();i!==o&&delete t[o],t[i]=Xe(r),n[i]=!0})),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return le.forEach(this,((n,r)=>{null!=n&&!1!==n&&(t[r]=e&&le.isArray(n)?n.join(", "):n)})),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map((([e,t])=>e+": "+t)).join("\n")}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const n=new this(e);return t.forEach((e=>n.set(e))),n}static accessor(e){const t=this[$e]=this[$e]={accessors:{}},n=t.accessors,r=this.prototype;function o(e){const t=Ge(e);n[t]||(tt(r,e),n[t]=!0)}return le.isArray(e)?e.forEach(o):o(e),this}}nt.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),le.reduceDescriptors(nt.prototype,(({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}})),le.freezeMethods(nt);var rt=nt;function ot(e,t){const n=this||We,r=t||n,o=rt.from(r.headers);let s=r.data;return le.forEach(e,(function(e){s=e.call(n,s,o.normalize(),t?t.status:void 0)})),o.normalize(),s}function st(e){return!(!e||!e.__CANCEL__)}function it(e,t,n){fe.call(this,null==e?"canceled":e,fe.ERR_CANCELED,t,n),this.name="CanceledError"}function at(e,t,n){const r=n.config.validateStatus;n.status&&r&&!r(n.status)?t(new fe("Request failed with status code "+n.status,[fe.ERR_BAD_REQUEST,fe.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}function ct(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function ut(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o,s=0,i=0;return t=void 0!==t?t:1e3,function(a){const c=Date.now(),u=r[i];o||(o=c),n[s]=a,r[s]=c;let l=i,f=0;while(l!==s)f+=n[l++],l%=e;if(s=(s+1)%e,s===i&&(i=(i+1)%e),c-or)return o&&(clearTimeout(o),o=null),n=s,e.apply(null,arguments);o||(o=setTimeout((()=>(o=null,n=Date.now(),e.apply(null,arguments))),r-(s-n)))}}le.inherits(it,fe,{__CANCEL__:!0});var ft=(e,t,n=3)=>{let r=0;const o=ut(50,250);return lt((n=>{const s=n.loaded,i=n.lengthComputable?n.total:void 0,a=s-r,c=o(a),u=s<=i;r=s;const l={loaded:s,total:i,progress:i?s/i:void 0,bytes:a,rate:c||void 0,estimated:c&&i&&u?(i-s)/c:void 0,event:n,lengthComputable:null!=i};l[t?"download":"upload"]=!0,e(l)}),n)},dt=ke.hasStandardBrowserEnv?function(){const e=/(msie|trident)/i.test(navigator.userAgent),t=document.createElement("a");let n;function r(n){let r=n;return e&&(t.setAttribute("href",r),r=t.href),t.setAttribute("href",r),{href:t.href,protocol:t.protocol?t.protocol.replace(/:$/,""):"",host:t.host,search:t.search?t.search.replace(/^\?/,""):"",hash:t.hash?t.hash.replace(/^#/,""):"",hostname:t.hostname,port:t.port,pathname:"/"===t.pathname.charAt(0)?t.pathname:"/"+t.pathname}}return n=r(window.location.href),function(e){const t=le.isString(e)?r(e):e;return t.protocol===n.protocol&&t.host===n.host}}():function(){return function(){return!0}}(),ht=ke.hasStandardBrowserEnv?{write(e,t,n,r,o,s){const i=[e+"="+encodeURIComponent(t)];le.isNumber(n)&&i.push("expires="+new Date(n).toGMTString()),le.isString(r)&&i.push("path="+r),le.isString(o)&&i.push("domain="+o),!0===s&&i.push("secure"),document.cookie=i.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function pt(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function mt(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function yt(e,t){return e&&!pt(t)?mt(e,t):t}const bt=e=>e instanceof rt?{...e}:e;function gt(e,t){t=t||{};const n={};function r(e,t,n){return le.isPlainObject(e)&&le.isPlainObject(t)?le.merge.call({caseless:n},e,t):le.isPlainObject(t)?le.merge({},t):le.isArray(t)?t.slice():t}function o(e,t,n){return le.isUndefined(t)?le.isUndefined(e)?void 0:r(void 0,e,n):r(e,t,n)}function s(e,t){if(!le.isUndefined(t))return r(void 0,t)}function i(e,t){return le.isUndefined(t)?le.isUndefined(e)?void 0:r(void 0,e):r(void 0,t)}function a(n,o,s){return s in t?r(n,o):s in e?r(void 0,n):void 0}const c={url:s,method:s,data:s,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,withXSRFToken:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncoding:i,validateStatus:a,headers:(e,t)=>o(bt(e),bt(t),!0)};return le.forEach(Object.keys(Object.assign({},e,t)),(function(r){const s=c[r]||o,i=s(e[r],t[r],r);le.isUndefined(i)&&s!==a||(n[r]=i)})),n}var wt=e=>{const t=gt({},e);let n,{data:r,withXSRFToken:o,xsrfHeaderName:s,xsrfCookieName:i,headers:a,auth:c}=t;if(t.headers=a=rt.from(a),t.url=Ae(yt(t.baseURL,t.url),e.params,e.paramsSerializer),c&&a.set("Authorization","Basic "+btoa((c.username||"")+":"+(c.password?unescape(encodeURIComponent(c.password)):""))),le.isFormData(r))if(ke.hasStandardBrowserEnv||ke.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else if(!1!==(n=a.getContentType())){const[e,...t]=n?n.split(";").map((e=>e.trim())).filter(Boolean):[];a.setContentType([e||"multipart/form-data",...t].join("; "))}if(ke.hasStandardBrowserEnv&&(o&&le.isFunction(o)&&(o=o(t)),o||!1!==o&&dt(t.url))){const e=s&&i&&ht.read(i);e&&a.set(s,e)}return t};const Et="undefined"!==typeof XMLHttpRequest;var Ot=Et&&function(e){return new Promise((function(t,n){const r=wt(e);let o=r.data;const s=rt.from(r.headers).normalize();let i,{responseType:a}=r;function c(){r.cancelToken&&r.cancelToken.unsubscribe(i),r.signal&&r.signal.removeEventListener("abort",i)}let u=new XMLHttpRequest;function l(){if(!u)return;const r=rt.from("getAllResponseHeaders"in u&&u.getAllResponseHeaders()),o=a&&"text"!==a&&"json"!==a?u.response:u.responseText,s={data:o,status:u.status,statusText:u.statusText,headers:r,config:e,request:u};at((function(e){t(e),c()}),(function(e){n(e),c()}),s),u=null}u.open(r.method.toUpperCase(),r.url,!0),u.timeout=r.timeout,"onloadend"in u?u.onloadend=l:u.onreadystatechange=function(){u&&4===u.readyState&&(0!==u.status||u.responseURL&&0===u.responseURL.indexOf("file:"))&&setTimeout(l)},u.onabort=function(){u&&(n(new fe("Request aborted",fe.ECONNABORTED,r,u)),u=null)},u.onerror=function(){n(new fe("Network Error",fe.ERR_NETWORK,r,u)),u=null},u.ontimeout=function(){let e=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const t=r.transitional||Ce;r.timeoutErrorMessage&&(e=r.timeoutErrorMessage),n(new fe(e,t.clarifyTimeoutError?fe.ETIMEDOUT:fe.ECONNABORTED,r,u)),u=null},void 0===o&&s.setContentType(null),"setRequestHeader"in u&&le.forEach(s.toJSON(),(function(e,t){u.setRequestHeader(t,e)})),le.isUndefined(r.withCredentials)||(u.withCredentials=!!r.withCredentials),a&&"json"!==a&&(u.responseType=r.responseType),"function"===typeof r.onDownloadProgress&&u.addEventListener("progress",ft(r.onDownloadProgress,!0)),"function"===typeof r.onUploadProgress&&u.upload&&u.upload.addEventListener("progress",ft(r.onUploadProgress)),(r.cancelToken||r.signal)&&(i=t=>{u&&(n(!t||t.type?new it(null,e,u):t),u.abort(),u=null)},r.cancelToken&&r.cancelToken.subscribe(i),r.signal&&(r.signal.aborted?i():r.signal.addEventListener("abort",i)));const f=ct(r.url);f&&-1===ke.protocols.indexOf(f)?n(new fe("Unsupported protocol "+f+":",fe.ERR_BAD_REQUEST,e)):u.send(o||null)}))};const Rt=(e,t)=>{let n,r=new AbortController;const o=function(e){if(!n){n=!0,i();const t=e instanceof Error?e:this.reason;r.abort(t instanceof fe?t:new it(t instanceof Error?t.message:t))}};let s=t&&setTimeout((()=>{o(new fe(`timeout ${t} of ms exceeded`,fe.ETIMEDOUT))}),t);const i=()=>{e&&(s&&clearTimeout(s),s=null,e.forEach((e=>{e&&(e.removeEventListener?e.removeEventListener("abort",o):e.unsubscribe(o))})),e=null)};e.forEach((e=>e&&e.addEventListener&&e.addEventListener("abort",o)));const{signal:a}=r;return a.unsubscribe=i,[a,()=>{s&&clearTimeout(s),s=null}]};var St=Rt;const Tt=function*(e,t){let n=e.byteLength;if(!t||n{const s=At(e,t,o);let i=0;return new ReadableStream({type:"bytes",async pull(e){const{done:t,value:o}=await s.next();if(t)return e.close(),void r();let a=o.byteLength;n&&n(i+=a),e.enqueue(new Uint8Array(o))},cancel(e){return r(e),s.return()}},{highWaterMark:2})},xt=(e,t)=>{const n=null!=e;return r=>setTimeout((()=>t({lengthComputable:n,total:e,loaded:r})))},Ct="function"===typeof fetch&&"function"===typeof Request&&"function"===typeof Response,jt=Ct&&"function"===typeof ReadableStream,Nt=Ct&&("function"===typeof TextEncoder?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),Pt=jt&&(()=>{let e=!1;const t=new Request(ke.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t})(),_t=65536,Lt=jt&&!!(()=>{try{return le.isReadableStream(new Response("").body)}catch(e){}})(),Ut={stream:Lt&&(e=>e.body)};Ct&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach((t=>{!Ut[t]&&(Ut[t]=le.isFunction(e[t])?e=>e[t]():(e,n)=>{throw new fe(`Response type '${t}' is not supported`,fe.ERR_NOT_SUPPORT,n)})}))})(new Response);const Ft=async e=>null==e?0:le.isBlob(e)?e.size:le.isSpecCompliantForm(e)?(await new Request(e).arrayBuffer()).byteLength:le.isArrayBufferView(e)?e.byteLength:(le.isURLSearchParams(e)&&(e+=""),le.isString(e)?(await Nt(e)).byteLength:void 0),Bt=async(e,t)=>{const n=le.toFiniteNumber(e.getContentLength());return null==n?Ft(t):n};var Dt=Ct&&(async e=>{let{url:t,method:n,data:r,signal:o,cancelToken:s,timeout:i,onDownloadProgress:a,onUploadProgress:c,responseType:u,headers:l,withCredentials:f="same-origin",fetchOptions:d}=wt(e);u=u?(u+"").toLowerCase():"text";let h,p,[m,y]=o||s||i?St([o,s],i):[];const b=()=>{!h&&setTimeout((()=>{m&&m.unsubscribe()})),h=!0};let g;try{if(c&&Pt&&"get"!==n&&"head"!==n&&0!==(g=await Bt(l,r))){let e,n=new Request(t,{method:"POST",body:r,duplex:"half"});le.isFormData(r)&&(e=n.headers.get("content-type"))&&l.setContentType(e),n.body&&(r=vt(n.body,_t,xt(g,ft(c)),null,Nt))}le.isString(f)||(f=f?"cors":"omit"),p=new Request(t,{...d,signal:m,method:n.toUpperCase(),headers:l.normalize().toJSON(),body:r,duplex:"half",withCredentials:f});let o=await fetch(p);const s=Lt&&("stream"===u||"response"===u);if(Lt&&(a||s)){const e={};["status","statusText","headers"].forEach((t=>{e[t]=o[t]}));const t=le.toFiniteNumber(o.headers.get("content-length"));o=new Response(vt(o.body,_t,a&&xt(t,ft(a,!0)),s&&b,Nt),e)}u=u||"text";let i=await Ut[le.findKey(Ut,u)||"text"](o,e);return!s&&b(),y&&y(),await new Promise(((t,n)=>{at(t,n,{data:i,headers:rt.from(o.headers),status:o.status,statusText:o.statusText,config:e,request:p})}))}catch(w){if(b(),w&&"TypeError"===w.name&&/fetch/i.test(w.message))throw Object.assign(new fe("Network Error",fe.ERR_NETWORK,e,p),{cause:w.cause||w});throw fe.from(w,w&&w.code,e,p)}});const kt={http:pe,xhr:Ot,fetch:Dt};le.forEach(kt,((e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(n){}Object.defineProperty(e,"adapterName",{value:t})}}));const qt=e=>`- ${e}`,It=e=>le.isFunction(e)||null===e||!1===e;var zt={getAdapter:e=>{e=le.isArray(e)?e:[e];const{length:t}=e;let n,r;const o={};for(let s=0;s`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build")));let n=t?e.length>1?"since :\n"+e.map(qt).join("\n"):" "+qt(e[0]):"as no adapter specified";throw new fe("There is no suitable adapter to dispatch the request "+n,"ERR_NOT_SUPPORT")}return r},adapters:kt};function Mt(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new it(null,e)}function Ht(e){Mt(e),e.headers=rt.from(e.headers),e.data=ot.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1);const t=zt.getAdapter(e.adapter||We.adapter);return t(e).then((function(t){return Mt(e),t.data=ot.call(e,e.transformResponse,t),t.headers=rt.from(t.headers),t}),(function(t){return st(t)||(Mt(e),t&&t.response&&(t.response.data=ot.call(e,e.transformResponse,t.response),t.response.headers=rt.from(t.response.headers))),Promise.reject(t)}))}const Jt="1.7.2",Wt={};["object","boolean","number","function","string","symbol"].forEach(((e,t)=>{Wt[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));const Kt={};function Vt(e,t,n){if("object"!==typeof e)throw new fe("options must be an object",fe.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;while(o-- >0){const s=r[o],i=t[s];if(i){const t=e[s],n=void 0===t||i(t,s,e);if(!0!==n)throw new fe("option "+s+" must be "+n,fe.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new fe("Unknown option "+s,fe.ERR_BAD_OPTION)}}Wt.transitional=function(e,t,n){function r(e,t){return"[Axios v"+Jt+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,o,s)=>{if(!1===e)throw new fe(r(o," has been removed"+(t?" in "+t:"")),fe.ERR_DEPRECATED);return t&&!Kt[o]&&(Kt[o]=!0,console.warn(r(o," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,o,s)}};var $t={assertOptions:Vt,validators:Wt};const Gt=$t.validators;class Xt{constructor(e){this.defaults=e,this.interceptors={request:new xe,response:new xe}}async request(e,t){try{return await this._request(e,t)}catch(n){if(n instanceof Error){let e;Error.captureStackTrace?Error.captureStackTrace(e={}):e=new Error;const t=e.stack?e.stack.replace(/^.+\n/,""):"";try{n.stack?t&&!String(n.stack).endsWith(t.replace(/^.+\n.+\n/,""))&&(n.stack+="\n"+t):n.stack=t}catch(r){}}throw n}}_request(e,t){"string"===typeof e?(t=t||{},t.url=e):t=e||{},t=gt(this.defaults,t);const{transitional:n,paramsSerializer:r,headers:o}=t;void 0!==n&&$t.assertOptions(n,{silentJSONParsing:Gt.transitional(Gt.boolean),forcedJSONParsing:Gt.transitional(Gt.boolean),clarifyTimeoutError:Gt.transitional(Gt.boolean)},!1),null!=r&&(le.isFunction(r)?t.paramsSerializer={serialize:r}:$t.assertOptions(r,{encode:Gt.function,serialize:Gt.function},!0)),t.method=(t.method||this.defaults.method||"get").toLowerCase();let s=o&&le.merge(o.common,o[t.method]);o&&le.forEach(["delete","get","head","post","put","patch","common"],(e=>{delete o[e]})),t.headers=rt.concat(s,o);const i=[];let a=!0;this.interceptors.request.forEach((function(e){"function"===typeof e.runWhen&&!1===e.runWhen(t)||(a=a&&e.synchronous,i.unshift(e.fulfilled,e.rejected))}));const c=[];let u;this.interceptors.response.forEach((function(e){c.push(e.fulfilled,e.rejected)}));let l,f=0;if(!a){const e=[Ht.bind(this),void 0];e.unshift.apply(e,i),e.push.apply(e,c),l=e.length,u=Promise.resolve(t);while(f{if(!n._listeners)return;let t=n._listeners.length;while(t-- >0)n._listeners[t](e);n._listeners=null})),this.promise.then=e=>{let t;const r=new Promise((e=>{n.subscribe(e),t=e})).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e((function(e,r,o){n.reason||(n.reason=new it(e,r,o),t(n.reason))}))}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}static source(){let e;const t=new Zt((function(t){e=t}));return{token:t,cancel:e}}}var Yt=Zt;function en(e){return function(t){return e.apply(null,t)}}function tn(e){return le.isObject(e)&&!0===e.isAxiosError}const nn={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(nn).forEach((([e,t])=>{nn[t]=e}));var rn=nn;function on(e){const t=new Qt(e),n=o(Qt.prototype.request,t);return le.extend(n,Qt.prototype,t,{allOwnKeys:!0}),le.extend(n,t,null,{allOwnKeys:!0}),n.create=function(t){return on(gt(e,t))},n}const sn=on(We);sn.Axios=Qt,sn.CanceledError=it,sn.CancelToken=Yt,sn.isCancel=st,sn.VERSION=Jt,sn.toFormData=Ee,sn.AxiosError=fe,sn.Cancel=sn.CanceledError,sn.all=function(e){return Promise.all(e)},sn.spread=en,sn.isAxiosError=tn,sn.mergeConfig=gt,sn.AxiosHeaders=rt,sn.formToJSON=e=>Me(le.isHTMLForm(e)?new FormData(e):e),sn.getAdapter=zt.getAdapter,sn.HttpStatusCode=rn,sn.default=sn,e.exports=sn}}]); \ No newline at end of file +"use strict";(self["webpackChunkflux"]=self["webpackChunkflux"]||[]).push([[7218],{97218:(e,t,n)=>{var r=n(48764)["lW"];function o(e,t){return function(){return e.apply(t,arguments)}}const{toString:s}=Object.prototype,{getPrototypeOf:i}=Object,a=(e=>t=>{const n=s.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),c=e=>(e=e.toLowerCase(),t=>a(t)===e),u=e=>t=>typeof t===e,{isArray:l}=Array,f=u("undefined");function d(e){return null!==e&&!f(e)&&null!==e.constructor&&!f(e.constructor)&&y(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const h=c("ArrayBuffer");function p(e){let t;return t="undefined"!==typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&h(e.buffer),t}const m=u("string"),y=u("function"),b=u("number"),g=e=>null!==e&&"object"===typeof e,w=e=>!0===e||!1===e,E=e=>{if("object"!==a(e))return!1;const t=i(e);return(null===t||t===Object.prototype||null===Object.getPrototypeOf(t))&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},O=c("Date"),R=c("File"),S=c("Blob"),T=c("FileList"),A=e=>g(e)&&y(e.pipe),v=e=>{let t;return e&&("function"===typeof FormData&&e instanceof FormData||y(e.append)&&("formdata"===(t=a(e))||"object"===t&&y(e.toString)&&"[object FormData]"===e.toString()))},x=c("URLSearchParams"),[C,j,N,P]=["ReadableStream","Request","Response","Headers"].map(c),_=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function L(e,t,{allOwnKeys:n=!1}={}){if(null===e||"undefined"===typeof e)return;let r,o;if("object"!==typeof e&&(e=[e]),l(e))for(r=0,o=e.length;r0)if(r=n[o],t===r.toLowerCase())return r;return null}const U=(()=>"undefined"!==typeof globalThis?globalThis:"undefined"!==typeof self?self:"undefined"!==typeof window?window:n.g)(),B=e=>!f(e)&&e!==U;function k(){const{caseless:e}=B(this)&&this||{},t={},n=(n,r)=>{const o=e&&F(t,r)||r;E(t[o])&&E(n)?t[o]=k(t[o],n):E(n)?t[o]=k({},n):l(n)?t[o]=n.slice():t[o]=n};for(let r=0,o=arguments.length;r(L(t,((t,r)=>{n&&y(t)?e[r]=o(t,n):e[r]=t}),{allOwnKeys:r}),e),q=e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),I=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},M=(e,t,n,r)=>{let o,s,a;const c={};if(t=t||{},null==e)return t;do{o=Object.getOwnPropertyNames(e),s=o.length;while(s-- >0)a=o[s],r&&!r(a,e,t)||c[a]||(t[a]=e[a],c[a]=!0);e=!1!==n&&i(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},z=(e,t,n)=>{e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return-1!==r&&r===n},H=e=>{if(!e)return null;if(l(e))return e;let t=e.length;if(!b(t))return null;const n=new Array(t);while(t-- >0)n[t]=e[t];return n},J=(e=>t=>e&&t instanceof e)("undefined"!==typeof Uint8Array&&i(Uint8Array)),W=(e,t)=>{const n=e&&e[Symbol.iterator],r=n.call(e);let o;while((o=r.next())&&!o.done){const n=o.value;t.call(e,n[0],n[1])}},K=(e,t)=>{let n;const r=[];while(null!==(n=e.exec(t)))r.push(n);return r},V=c("HTMLFormElement"),$=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function(e,t,n){return t.toUpperCase()+n})),G=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),X=c("RegExp"),Q=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};L(n,((n,o)=>{let s;!1!==(s=t(n,o,e))&&(r[o]=s||n)})),Object.defineProperties(e,r)},Z=e=>{Q(e,((t,n)=>{if(y(e)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;const r=e[n];y(r)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")}))}))},Y=(e,t)=>{const n={},r=e=>{e.forEach((e=>{n[e]=!0}))};return l(e)?r(e):r(String(e).split(t)),n},ee=()=>{},te=(e,t)=>null!=e&&Number.isFinite(e=+e)?e:t,ne="abcdefghijklmnopqrstuvwxyz",re="0123456789",oe={DIGIT:re,ALPHA:ne,ALPHA_DIGIT:ne+ne.toUpperCase()+re},se=(e=16,t=oe.ALPHA_DIGIT)=>{let n="";const{length:r}=t;while(e--)n+=t[Math.random()*r|0];return n};function ie(e){return!!(e&&y(e.append)&&"FormData"===e[Symbol.toStringTag]&&e[Symbol.iterator])}const ae=e=>{const t=new Array(10),n=(e,r)=>{if(g(e)){if(t.indexOf(e)>=0)return;if(!("toJSON"in e)){t[r]=e;const o=l(e)?[]:{};return L(e,((e,t)=>{const s=n(e,r+1);!f(s)&&(o[t]=s)})),t[r]=void 0,o}}return e};return n(e,0)},ce=c("AsyncFunction"),ue=e=>e&&(g(e)||y(e))&&y(e.then)&&y(e.catch),le=((e,t)=>e?setImmediate:t?((e,t)=>(U.addEventListener("message",(({source:n,data:r})=>{n===U&&r===e&&t.length&&t.shift()()}),!1),n=>{t.push(n),U.postMessage(e,"*")}))(`axios@${Math.random()}`,[]):e=>setTimeout(e))("function"===typeof setImmediate,y(U.postMessage)),fe="undefined"!==typeof queueMicrotask?queueMicrotask.bind(U):"undefined"!==typeof process&&process.nextTick||le;var de={isArray:l,isArrayBuffer:h,isBuffer:d,isFormData:v,isArrayBufferView:p,isString:m,isNumber:b,isBoolean:w,isObject:g,isPlainObject:E,isReadableStream:C,isRequest:j,isResponse:N,isHeaders:P,isUndefined:f,isDate:O,isFile:R,isBlob:S,isRegExp:X,isFunction:y,isStream:A,isURLSearchParams:x,isTypedArray:J,isFileList:T,forEach:L,merge:k,extend:D,trim:_,stripBOM:q,inherits:I,toFlatObject:M,kindOf:a,kindOfTest:c,endsWith:z,toArray:H,forEachEntry:W,matchAll:K,isHTMLForm:V,hasOwnProperty:G,hasOwnProp:G,reduceDescriptors:Q,freezeMethods:Z,toObjectSet:Y,toCamelCase:$,noop:ee,toFiniteNumber:te,findKey:F,global:U,isContextDefined:B,ALPHABET:oe,generateString:se,isSpecCompliantForm:ie,toJSONObject:ae,isAsyncFn:ce,isThenable:ue,setImmediate:le,asap:fe};function he(e,t,n,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o,this.status=o.status?o.status:null)}de.inherits(he,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:de.toJSONObject(this.config),code:this.code,status:this.status}}});const pe=he.prototype,me={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach((e=>{me[e]={value:e}})),Object.defineProperties(he,me),Object.defineProperty(pe,"isAxiosError",{value:!0}),he.from=(e,t,n,r,o,s)=>{const i=Object.create(pe);return de.toFlatObject(e,i,(function(e){return e!==Error.prototype}),(e=>"isAxiosError"!==e)),he.call(i,e.message,t,n,r,o),i.cause=e,i.name=e.name,s&&Object.assign(i,s),i};var ye=null;function be(e){return de.isPlainObject(e)||de.isArray(e)}function ge(e){return de.endsWith(e,"[]")?e.slice(0,-2):e}function we(e,t,n){return e?e.concat(t).map((function(e,t){return e=ge(e),!n&&t?"["+e+"]":e})).join(n?".":""):t}function Ee(e){return de.isArray(e)&&!e.some(be)}const Oe=de.toFlatObject(de,{},null,(function(e){return/^is[A-Z]/.test(e)}));function Re(e,t,n){if(!de.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=de.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,t){return!de.isUndefined(t[e])}));const o=n.metaTokens,s=n.visitor||f,i=n.dots,a=n.indexes,c=n.Blob||"undefined"!==typeof Blob&&Blob,u=c&&de.isSpecCompliantForm(t);if(!de.isFunction(s))throw new TypeError("visitor must be a function");function l(e){if(null===e)return"";if(de.isDate(e))return e.toISOString();if(!u&&de.isBlob(e))throw new he("Blob is not supported. Use a Buffer instead.");return de.isArrayBuffer(e)||de.isTypedArray(e)?u&&"function"===typeof Blob?new Blob([e]):r.from(e):e}function f(e,n,r){let s=e;if(e&&!r&&"object"===typeof e)if(de.endsWith(n,"{}"))n=o?n:n.slice(0,-2),e=JSON.stringify(e);else if(de.isArray(e)&&Ee(e)||(de.isFileList(e)||de.endsWith(n,"[]"))&&(s=de.toArray(e)))return n=ge(n),s.forEach((function(e,r){!de.isUndefined(e)&&null!==e&&t.append(!0===a?we([n],r,i):null===a?n:n+"[]",l(e))})),!1;return!!be(e)||(t.append(we(r,n,i),l(e)),!1)}const d=[],h=Object.assign(Oe,{defaultVisitor:f,convertValue:l,isVisitable:be});function p(e,n){if(!de.isUndefined(e)){if(-1!==d.indexOf(e))throw Error("Circular reference detected in "+n.join("."));d.push(e),de.forEach(e,(function(e,r){const o=!(de.isUndefined(e)||null===e)&&s.call(t,e,de.isString(r)?r.trim():r,n,h);!0===o&&p(e,n?n.concat(r):[r])})),d.pop()}}if(!de.isObject(e))throw new TypeError("data must be an object");return p(e),t}function Se(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function(e){return t[e]}))}function Te(e,t){this._pairs=[],e&&Re(e,this,t)}const Ae=Te.prototype;function ve(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function xe(e,t,n){if(!t)return e;const r=n&&n.encode||ve,o=n&&n.serialize;let s;if(s=o?o(t,n):de.isURLSearchParams(t)?t.toString():new Te(t,n).toString(r),s){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+s}return e}Ae.append=function(e,t){this._pairs.push([e,t])},Ae.toString=function(e){const t=e?function(t){return e.call(this,t,Se)}:Se;return this._pairs.map((function(e){return t(e[0])+"="+t(e[1])}),"").join("&")};class Ce{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){de.forEach(this.handlers,(function(t){null!==t&&e(t)}))}}var je=Ce,Ne={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Pe="undefined"!==typeof URLSearchParams?URLSearchParams:Te,_e="undefined"!==typeof FormData?FormData:null,Le="undefined"!==typeof Blob?Blob:null,Fe={isBrowser:!0,classes:{URLSearchParams:Pe,FormData:_e,Blob:Le},protocols:["http","https","file","blob","url","data"]};const Ue="undefined"!==typeof window&&"undefined"!==typeof document,Be="object"===typeof navigator&&navigator||void 0,ke=Ue&&(!Be||["ReactNative","NativeScript","NS"].indexOf(Be.product)<0),De=(()=>"undefined"!==typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"===typeof self.importScripts)(),qe=Ue&&window.location.href||"http://localhost";var Ie=Object.freeze({__proto__:null,hasBrowserEnv:Ue,hasStandardBrowserWebWorkerEnv:De,hasStandardBrowserEnv:ke,navigator:Be,origin:qe}),Me={...Ie,...Fe};function ze(e,t){return Re(e,new Me.classes.URLSearchParams,Object.assign({visitor:function(e,t,n,r){return Me.isNode&&de.isBuffer(e)?(this.append(t,e.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)}},t))}function He(e){return de.matchAll(/\w+|\[(\w*)]/g,e).map((e=>"[]"===e[0]?"":e[1]||e[0]))}function Je(e){const t={},n=Object.keys(e);let r;const o=n.length;let s;for(r=0;r=e.length;if(s=!s&&de.isArray(r)?r.length:s,a)return de.hasOwnProp(r,s)?r[s]=[r[s],n]:r[s]=n,!i;r[s]&&de.isObject(r[s])||(r[s]=[]);const c=t(e,n,r[s],o);return c&&de.isArray(r[s])&&(r[s]=Je(r[s])),!i}if(de.isFormData(e)&&de.isFunction(e.entries)){const n={};return de.forEachEntry(e,((e,r)=>{t(He(e),r,n,0)})),n}return null}function Ke(e,t,n){if(de.isString(e))try{return(t||JSON.parse)(e),de.trim(e)}catch(r){if("SyntaxError"!==r.name)throw r}return(n||JSON.stringify)(e)}const Ve={transitional:Ne,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const n=t.getContentType()||"",r=n.indexOf("application/json")>-1,o=de.isObject(e);o&&de.isHTMLForm(e)&&(e=new FormData(e));const s=de.isFormData(e);if(s)return r?JSON.stringify(We(e)):e;if(de.isArrayBuffer(e)||de.isBuffer(e)||de.isStream(e)||de.isFile(e)||de.isBlob(e)||de.isReadableStream(e))return e;if(de.isArrayBufferView(e))return e.buffer;if(de.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let i;if(o){if(n.indexOf("application/x-www-form-urlencoded")>-1)return ze(e,this.formSerializer).toString();if((i=de.isFileList(e))||n.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return Re(i?{"files[]":e}:e,t&&new t,this.formSerializer)}}return o||r?(t.setContentType("application/json",!1),Ke(e)):e}],transformResponse:[function(e){const t=this.transitional||Ve.transitional,n=t&&t.forcedJSONParsing,r="json"===this.responseType;if(de.isResponse(e)||de.isReadableStream(e))return e;if(e&&de.isString(e)&&(n&&!this.responseType||r)){const n=t&&t.silentJSONParsing,s=!n&&r;try{return JSON.parse(e)}catch(o){if(s){if("SyntaxError"===o.name)throw he.from(o,he.ERR_BAD_RESPONSE,this,null,this.response);throw o}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Me.classes.FormData,Blob:Me.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};de.forEach(["delete","get","head","post","put","patch"],(e=>{Ve.headers[e]={}}));var $e=Ve;const Ge=de.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]);var Xe=e=>{const t={};let n,r,o;return e&&e.split("\n").forEach((function(e){o=e.indexOf(":"),n=e.substring(0,o).trim().toLowerCase(),r=e.substring(o+1).trim(),!n||t[n]&&Ge[n]||("set-cookie"===n?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)})),t};const Qe=Symbol("internals");function Ze(e){return e&&String(e).trim().toLowerCase()}function Ye(e){return!1===e||null==e?e:de.isArray(e)?e.map(Ye):String(e)}function et(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;while(r=n.exec(e))t[r[1]]=r[2];return t}const tt=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function nt(e,t,n,r,o){return de.isFunction(r)?r.call(this,t,n):(o&&(t=n),de.isString(t)?de.isString(r)?-1!==t.indexOf(r):de.isRegExp(r)?r.test(t):void 0:void 0)}function rt(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((e,t,n)=>t.toUpperCase()+n))}function ot(e,t){const n=de.toCamelCase(" "+t);["get","set","has"].forEach((r=>{Object.defineProperty(e,r+n,{value:function(e,n,o){return this[r].call(this,t,e,n,o)},configurable:!0})}))}class st{constructor(e){e&&this.set(e)}set(e,t,n){const r=this;function o(e,t,n){const o=Ze(t);if(!o)throw new Error("header name must be a non-empty string");const s=de.findKey(r,o);(!s||void 0===r[s]||!0===n||void 0===n&&!1!==r[s])&&(r[s||t]=Ye(e))}const s=(e,t)=>de.forEach(e,((e,n)=>o(e,n,t)));if(de.isPlainObject(e)||e instanceof this.constructor)s(e,t);else if(de.isString(e)&&(e=e.trim())&&!tt(e))s(Xe(e),t);else if(de.isHeaders(e))for(const[i,a]of e.entries())o(a,i,n);else null!=e&&o(t,e,n);return this}get(e,t){if(e=Ze(e),e){const n=de.findKey(this,e);if(n){const e=this[n];if(!t)return e;if(!0===t)return et(e);if(de.isFunction(t))return t.call(this,e,n);if(de.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=Ze(e),e){const n=de.findKey(this,e);return!(!n||void 0===this[n]||t&&!nt(this,this[n],n,t))}return!1}delete(e,t){const n=this;let r=!1;function o(e){if(e=Ze(e),e){const o=de.findKey(n,e);!o||t&&!nt(n,n[o],o,t)||(delete n[o],r=!0)}}return de.isArray(e)?e.forEach(o):o(e),r}clear(e){const t=Object.keys(this);let n=t.length,r=!1;while(n--){const o=t[n];e&&!nt(this,this[o],o,e,!0)||(delete this[o],r=!0)}return r}normalize(e){const t=this,n={};return de.forEach(this,((r,o)=>{const s=de.findKey(n,o);if(s)return t[s]=Ye(r),void delete t[o];const i=e?rt(o):String(o).trim();i!==o&&delete t[o],t[i]=Ye(r),n[i]=!0})),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return de.forEach(this,((n,r)=>{null!=n&&!1!==n&&(t[r]=e&&de.isArray(n)?n.join(", "):n)})),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map((([e,t])=>e+": "+t)).join("\n")}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const n=new this(e);return t.forEach((e=>n.set(e))),n}static accessor(e){const t=this[Qe]=this[Qe]={accessors:{}},n=t.accessors,r=this.prototype;function o(e){const t=Ze(e);n[t]||(ot(r,e),n[t]=!0)}return de.isArray(e)?e.forEach(o):o(e),this}}st.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),de.reduceDescriptors(st.prototype,(({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}})),de.freezeMethods(st);var it=st;function at(e,t){const n=this||$e,r=t||n,o=it.from(r.headers);let s=r.data;return de.forEach(e,(function(e){s=e.call(n,s,o.normalize(),t?t.status:void 0)})),o.normalize(),s}function ct(e){return!(!e||!e.__CANCEL__)}function ut(e,t,n){he.call(this,null==e?"canceled":e,he.ERR_CANCELED,t,n),this.name="CanceledError"}function lt(e,t,n){const r=n.config.validateStatus;n.status&&r&&!r(n.status)?t(new he("Request failed with status code "+n.status,[he.ERR_BAD_REQUEST,he.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}function ft(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function dt(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o,s=0,i=0;return t=void 0!==t?t:1e3,function(a){const c=Date.now(),u=r[i];o||(o=c),n[s]=a,r[s]=c;let l=i,f=0;while(l!==s)f+=n[l++],l%=e;if(s=(s+1)%e,s===i&&(i=(i+1)%e),c-o{o=s,n=null,r&&(clearTimeout(r),r=null),e.apply(null,t)},a=(...e)=>{const t=Date.now(),a=t-o;a>=s?i(e,t):(n=e,r||(r=setTimeout((()=>{r=null,i(n)}),s-a)))},c=()=>n&&i(n);return[a,c]}de.inherits(ut,he,{__CANCEL__:!0});const pt=(e,t,n=3)=>{let r=0;const o=dt(50,250);return ht((n=>{const s=n.loaded,i=n.lengthComputable?n.total:void 0,a=s-r,c=o(a),u=s<=i;r=s;const l={loaded:s,total:i,progress:i?s/i:void 0,bytes:a,rate:c||void 0,estimated:c&&i&&u?(i-s)/c:void 0,event:n,lengthComputable:null!=i,[t?"download":"upload"]:!0};e(l)}),n)},mt=(e,t)=>{const n=null!=e;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},yt=e=>(...t)=>de.asap((()=>e(...t)));var bt=Me.hasStandardBrowserEnv?function(){const e=Me.navigator&&/(msie|trident)/i.test(Me.navigator.userAgent),t=document.createElement("a");let n;function r(n){let r=n;return e&&(t.setAttribute("href",r),r=t.href),t.setAttribute("href",r),{href:t.href,protocol:t.protocol?t.protocol.replace(/:$/,""):"",host:t.host,search:t.search?t.search.replace(/^\?/,""):"",hash:t.hash?t.hash.replace(/^#/,""):"",hostname:t.hostname,port:t.port,pathname:"/"===t.pathname.charAt(0)?t.pathname:"/"+t.pathname}}return n=r(window.location.href),function(e){const t=de.isString(e)?r(e):e;return t.protocol===n.protocol&&t.host===n.host}}():function(){return function(){return!0}}(),gt=Me.hasStandardBrowserEnv?{write(e,t,n,r,o,s){const i=[e+"="+encodeURIComponent(t)];de.isNumber(n)&&i.push("expires="+new Date(n).toGMTString()),de.isString(r)&&i.push("path="+r),de.isString(o)&&i.push("domain="+o),!0===s&&i.push("secure"),document.cookie=i.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function wt(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Et(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function Ot(e,t){return e&&!wt(t)?Et(e,t):t}const Rt=e=>e instanceof it?{...e}:e;function St(e,t){t=t||{};const n={};function r(e,t,n){return de.isPlainObject(e)&&de.isPlainObject(t)?de.merge.call({caseless:n},e,t):de.isPlainObject(t)?de.merge({},t):de.isArray(t)?t.slice():t}function o(e,t,n){return de.isUndefined(t)?de.isUndefined(e)?void 0:r(void 0,e,n):r(e,t,n)}function s(e,t){if(!de.isUndefined(t))return r(void 0,t)}function i(e,t){return de.isUndefined(t)?de.isUndefined(e)?void 0:r(void 0,e):r(void 0,t)}function a(n,o,s){return s in t?r(n,o):s in e?r(void 0,n):void 0}const c={url:s,method:s,data:s,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,withXSRFToken:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncoding:i,validateStatus:a,headers:(e,t)=>o(Rt(e),Rt(t),!0)};return de.forEach(Object.keys(Object.assign({},e,t)),(function(r){const s=c[r]||o,i=s(e[r],t[r],r);de.isUndefined(i)&&s!==a||(n[r]=i)})),n}var Tt=e=>{const t=St({},e);let n,{data:r,withXSRFToken:o,xsrfHeaderName:s,xsrfCookieName:i,headers:a,auth:c}=t;if(t.headers=a=it.from(a),t.url=xe(Ot(t.baseURL,t.url),e.params,e.paramsSerializer),c&&a.set("Authorization","Basic "+btoa((c.username||"")+":"+(c.password?unescape(encodeURIComponent(c.password)):""))),de.isFormData(r))if(Me.hasStandardBrowserEnv||Me.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else if(!1!==(n=a.getContentType())){const[e,...t]=n?n.split(";").map((e=>e.trim())).filter(Boolean):[];a.setContentType([e||"multipart/form-data",...t].join("; "))}if(Me.hasStandardBrowserEnv&&(o&&de.isFunction(o)&&(o=o(t)),o||!1!==o&&bt(t.url))){const e=s&&i&>.read(i);e&&a.set(s,e)}return t};const At="undefined"!==typeof XMLHttpRequest;var vt=At&&function(e){return new Promise((function(t,n){const r=Tt(e);let o=r.data;const s=it.from(r.headers).normalize();let i,a,c,u,l,{responseType:f,onUploadProgress:d,onDownloadProgress:h}=r;function p(){u&&u(),l&&l(),r.cancelToken&&r.cancelToken.unsubscribe(i),r.signal&&r.signal.removeEventListener("abort",i)}let m=new XMLHttpRequest;function y(){if(!m)return;const r=it.from("getAllResponseHeaders"in m&&m.getAllResponseHeaders()),o=f&&"text"!==f&&"json"!==f?m.response:m.responseText,s={data:o,status:m.status,statusText:m.statusText,headers:r,config:e,request:m};lt((function(e){t(e),p()}),(function(e){n(e),p()}),s),m=null}m.open(r.method.toUpperCase(),r.url,!0),m.timeout=r.timeout,"onloadend"in m?m.onloadend=y:m.onreadystatechange=function(){m&&4===m.readyState&&(0!==m.status||m.responseURL&&0===m.responseURL.indexOf("file:"))&&setTimeout(y)},m.onabort=function(){m&&(n(new he("Request aborted",he.ECONNABORTED,e,m)),m=null)},m.onerror=function(){n(new he("Network Error",he.ERR_NETWORK,e,m)),m=null},m.ontimeout=function(){let t=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const o=r.transitional||Ne;r.timeoutErrorMessage&&(t=r.timeoutErrorMessage),n(new he(t,o.clarifyTimeoutError?he.ETIMEDOUT:he.ECONNABORTED,e,m)),m=null},void 0===o&&s.setContentType(null),"setRequestHeader"in m&&de.forEach(s.toJSON(),(function(e,t){m.setRequestHeader(t,e)})),de.isUndefined(r.withCredentials)||(m.withCredentials=!!r.withCredentials),f&&"json"!==f&&(m.responseType=r.responseType),h&&([c,l]=pt(h,!0),m.addEventListener("progress",c)),d&&m.upload&&([a,u]=pt(d),m.upload.addEventListener("progress",a),m.upload.addEventListener("loadend",u)),(r.cancelToken||r.signal)&&(i=t=>{m&&(n(!t||t.type?new ut(null,e,m):t),m.abort(),m=null)},r.cancelToken&&r.cancelToken.subscribe(i),r.signal&&(r.signal.aborted?i():r.signal.addEventListener("abort",i)));const b=ft(r.url);b&&-1===Me.protocols.indexOf(b)?n(new he("Unsupported protocol "+b+":",he.ERR_BAD_REQUEST,e)):m.send(o||null)}))};const xt=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let n,r=new AbortController;const o=function(e){if(!n){n=!0,i();const t=e instanceof Error?e:this.reason;r.abort(t instanceof he?t:new ut(t instanceof Error?t.message:t))}};let s=t&&setTimeout((()=>{s=null,o(new he(`timeout ${t} of ms exceeded`,he.ETIMEDOUT))}),t);const i=()=>{e&&(s&&clearTimeout(s),s=null,e.forEach((e=>{e.unsubscribe?e.unsubscribe(o):e.removeEventListener("abort",o)})),e=null)};e.forEach((e=>e.addEventListener("abort",o)));const{signal:a}=r;return a.unsubscribe=()=>de.asap(i),a}};var Ct=xt;const jt=function*(e,t){let n=e.byteLength;if(!t||n{const o=Nt(e,t);let s,i=0,a=e=>{s||(s=!0,r&&r(e))};return new ReadableStream({async pull(e){try{const{done:t,value:r}=await o.next();if(t)return a(),void e.close();let s=r.byteLength;if(n){let e=i+=s;n(e)}e.enqueue(new Uint8Array(r))}catch(t){throw a(t),t}},cancel(e){return a(e),o.return()}},{highWaterMark:2})},Lt="function"===typeof fetch&&"function"===typeof Request&&"function"===typeof Response,Ft=Lt&&"function"===typeof ReadableStream,Ut=Lt&&("function"===typeof TextEncoder?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),Bt=(e,...t)=>{try{return!!e(...t)}catch(n){return!1}},kt=Ft&&Bt((()=>{let e=!1;const t=new Request(Me.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t})),Dt=65536,qt=Ft&&Bt((()=>de.isReadableStream(new Response("").body))),It={stream:qt&&(e=>e.body)};Lt&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach((t=>{!It[t]&&(It[t]=de.isFunction(e[t])?e=>e[t]():(e,n)=>{throw new he(`Response type '${t}' is not supported`,he.ERR_NOT_SUPPORT,n)})}))})(new Response);const Mt=async e=>{if(null==e)return 0;if(de.isBlob(e))return e.size;if(de.isSpecCompliantForm(e)){const t=new Request(Me.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return de.isArrayBufferView(e)||de.isArrayBuffer(e)?e.byteLength:(de.isURLSearchParams(e)&&(e+=""),de.isString(e)?(await Ut(e)).byteLength:void 0)},zt=async(e,t)=>{const n=de.toFiniteNumber(e.getContentLength());return null==n?Mt(t):n};var Ht=Lt&&(async e=>{let{url:t,method:n,data:r,signal:o,cancelToken:s,timeout:i,onDownloadProgress:a,onUploadProgress:c,responseType:u,headers:l,withCredentials:f="same-origin",fetchOptions:d}=Tt(e);u=u?(u+"").toLowerCase():"text";let h,p=Ct([o,s&&s.toAbortSignal()],i);const m=p&&p.unsubscribe&&(()=>{p.unsubscribe()});let y;try{if(c&&kt&&"get"!==n&&"head"!==n&&0!==(y=await zt(l,r))){let e,n=new Request(t,{method:"POST",body:r,duplex:"half"});if(de.isFormData(r)&&(e=n.headers.get("content-type"))&&l.setContentType(e),n.body){const[e,t]=mt(y,pt(yt(c)));r=_t(n.body,Dt,e,t)}}de.isString(f)||(f=f?"include":"omit");const o="credentials"in Request.prototype;h=new Request(t,{...d,signal:p,method:n.toUpperCase(),headers:l.normalize().toJSON(),body:r,duplex:"half",credentials:o?f:void 0});let s=await fetch(h);const i=qt&&("stream"===u||"response"===u);if(qt&&(a||i&&m)){const e={};["status","statusText","headers"].forEach((t=>{e[t]=s[t]}));const t=de.toFiniteNumber(s.headers.get("content-length")),[n,r]=a&&mt(t,pt(yt(a),!0))||[];s=new Response(_t(s.body,Dt,n,(()=>{r&&r(),m&&m()})),e)}u=u||"text";let b=await It[de.findKey(It,u)||"text"](s,e);return!i&&m&&m(),await new Promise(((t,n)=>{lt(t,n,{data:b,headers:it.from(s.headers),status:s.status,statusText:s.statusText,config:e,request:h})}))}catch(b){if(m&&m(),b&&"TypeError"===b.name&&/fetch/i.test(b.message))throw Object.assign(new he("Network Error",he.ERR_NETWORK,e,h),{cause:b.cause||b});throw he.from(b,b&&b.code,e,h)}});const Jt={http:ye,xhr:vt,fetch:Ht};de.forEach(Jt,((e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(n){}Object.defineProperty(e,"adapterName",{value:t})}}));const Wt=e=>`- ${e}`,Kt=e=>de.isFunction(e)||null===e||!1===e;var Vt={getAdapter:e=>{e=de.isArray(e)?e:[e];const{length:t}=e;let n,r;const o={};for(let s=0;s`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build")));let n=t?e.length>1?"since :\n"+e.map(Wt).join("\n"):" "+Wt(e[0]):"as no adapter specified";throw new he("There is no suitable adapter to dispatch the request "+n,"ERR_NOT_SUPPORT")}return r},adapters:Jt};function $t(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new ut(null,e)}function Gt(e){$t(e),e.headers=it.from(e.headers),e.data=at.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1);const t=Vt.getAdapter(e.adapter||$e.adapter);return t(e).then((function(t){return $t(e),t.data=at.call(e,e.transformResponse,t),t.headers=it.from(t.headers),t}),(function(t){return ct(t)||($t(e),t&&t.response&&(t.response.data=at.call(e,e.transformResponse,t.response),t.response.headers=it.from(t.response.headers))),Promise.reject(t)}))}const Xt="1.7.7",Qt={};["object","boolean","number","function","string","symbol"].forEach(((e,t)=>{Qt[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));const Zt={};function Yt(e,t,n){if("object"!==typeof e)throw new he("options must be an object",he.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;while(o-- >0){const s=r[o],i=t[s];if(i){const t=e[s],n=void 0===t||i(t,s,e);if(!0!==n)throw new he("option "+s+" must be "+n,he.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new he("Unknown option "+s,he.ERR_BAD_OPTION)}}Qt.transitional=function(e,t,n){function r(e,t){return"[Axios v"+Xt+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,o,s)=>{if(!1===e)throw new he(r(o," has been removed"+(t?" in "+t:"")),he.ERR_DEPRECATED);return t&&!Zt[o]&&(Zt[o]=!0,console.warn(r(o," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,o,s)}};var en={assertOptions:Yt,validators:Qt};const tn=en.validators;class nn{constructor(e){this.defaults=e,this.interceptors={request:new je,response:new je}}async request(e,t){try{return await this._request(e,t)}catch(n){if(n instanceof Error){let e;Error.captureStackTrace?Error.captureStackTrace(e={}):e=new Error;const t=e.stack?e.stack.replace(/^.+\n/,""):"";try{n.stack?t&&!String(n.stack).endsWith(t.replace(/^.+\n.+\n/,""))&&(n.stack+="\n"+t):n.stack=t}catch(r){}}throw n}}_request(e,t){"string"===typeof e?(t=t||{},t.url=e):t=e||{},t=St(this.defaults,t);const{transitional:n,paramsSerializer:r,headers:o}=t;void 0!==n&&en.assertOptions(n,{silentJSONParsing:tn.transitional(tn.boolean),forcedJSONParsing:tn.transitional(tn.boolean),clarifyTimeoutError:tn.transitional(tn.boolean)},!1),null!=r&&(de.isFunction(r)?t.paramsSerializer={serialize:r}:en.assertOptions(r,{encode:tn.function,serialize:tn.function},!0)),t.method=(t.method||this.defaults.method||"get").toLowerCase();let s=o&&de.merge(o.common,o[t.method]);o&&de.forEach(["delete","get","head","post","put","patch","common"],(e=>{delete o[e]})),t.headers=it.concat(s,o);const i=[];let a=!0;this.interceptors.request.forEach((function(e){"function"===typeof e.runWhen&&!1===e.runWhen(t)||(a=a&&e.synchronous,i.unshift(e.fulfilled,e.rejected))}));const c=[];let u;this.interceptors.response.forEach((function(e){c.push(e.fulfilled,e.rejected)}));let l,f=0;if(!a){const e=[Gt.bind(this),void 0];e.unshift.apply(e,i),e.push.apply(e,c),l=e.length,u=Promise.resolve(t);while(f{if(!n._listeners)return;let t=n._listeners.length;while(t-- >0)n._listeners[t](e);n._listeners=null})),this.promise.then=e=>{let t;const r=new Promise((e=>{n.subscribe(e),t=e})).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e((function(e,r,o){n.reason||(n.reason=new ut(e,r,o),t(n.reason))}))}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}toAbortSignal(){const e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let e;const t=new on((function(t){e=t}));return{token:t,cancel:e}}}var sn=on;function an(e){return function(t){return e.apply(null,t)}}function cn(e){return de.isObject(e)&&!0===e.isAxiosError}const un={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(un).forEach((([e,t])=>{un[t]=e}));var ln=un;function fn(e){const t=new rn(e),n=o(rn.prototype.request,t);return de.extend(n,rn.prototype,t,{allOwnKeys:!0}),de.extend(n,t,null,{allOwnKeys:!0}),n.create=function(t){return fn(St(e,t))},n}const dn=fn($e);dn.Axios=rn,dn.CanceledError=ut,dn.CancelToken=sn,dn.isCancel=ct,dn.VERSION=Xt,dn.toFormData=Re,dn.AxiosError=he,dn.Cancel=dn.CanceledError,dn.all=function(e){return Promise.all(e)},dn.spread=an,dn.isAxiosError=cn,dn.mergeConfig=St,dn.AxiosHeaders=it,dn.formToJSON=e=>We(de.isHTMLForm(e)?new FormData(e):e),dn.getAdapter=Vt.getAdapter,dn.HttpStatusCode=ln,dn.default=dn,e.exports=dn}}]); \ No newline at end of file diff --git a/HomeUI/dist/js/7249.js b/HomeUI/dist/js/7249.js index 0980000e3..ebf54504c 100644 --- a/HomeUI/dist/js/7249.js +++ b/HomeUI/dist/js/7249.js @@ -1 +1 @@ -"use strict";(globalThis["webpackChunkflux"]=globalThis["webpackChunkflux"]||[]).push([[7249],{34547:(t,e,r)=>{r.d(e,{Z:()=>u});var a=function(){var t=this,e=t._self._c;return e("div",{staticClass:"toastification"},[e("div",{staticClass:"d-flex align-items-start"},[e("b-avatar",{staticClass:"mr-75 flex-shrink-0",attrs:{variant:t.variant,size:"1.8rem"}},[e("feather-icon",{attrs:{icon:t.icon,size:"15"}})],1),e("div",{staticClass:"d-flex flex-grow-1"},[e("div",[t.title?e("h5",{staticClass:"mb-0 font-weight-bolder toastification-title",class:`text-${t.variant}`,domProps:{textContent:t._s(t.title)}}):t._e(),t.text?e("small",{staticClass:"d-inline-block text-body",domProps:{textContent:t._s(t.text)}}):t._e()]),e("span",{staticClass:"cursor-pointer toastification-close-icon ml-auto",on:{click:function(e){return t.$emit("close-toast")}}},[t.hideClose?t._e():e("feather-icon",{staticClass:"text-body",attrs:{icon:"XIcon"}})],1)])],1)])},n=[],i=r(47389);const o={components:{BAvatar:i.SH},props:{variant:{type:String,default:"primary"},icon:{type:String,default:null},title:{type:String,default:null},text:{type:String,default:null},hideClose:{type:Boolean,default:!1}}},s=o;var l=r(1001),c=(0,l.Z)(s,a,n,!1,null,"22d964ca",null);const u=c.exports},51748:(t,e,r)=>{r.d(e,{Z:()=>u});var a=function(){var t=this,e=t._self._c;return e("dl",{staticClass:"row",class:t.classes},[e("dt",{staticClass:"col-sm-3"},[t._v(" "+t._s(t.title)+" ")]),t.href.length>0?e("dd",{staticClass:"col-sm-9 mb-0",class:`text-${t.variant}`},[t.href.length>0?e("b-link",{attrs:{href:t.href,target:"_blank",rel:"noopener noreferrer"}},[t._v(" "+t._s(t.data.length>0?t.data:t.number!==Number.MAX_VALUE?t.number:"")+" ")]):t._e()],1):t.click?e("dd",{staticClass:"col-sm-9 mb-0",class:`text-${t.variant}`,on:{click:function(e){return t.$emit("click")}}},[e("b-link",[t._v(" "+t._s(t.data.length>0?t.data:t.number!==Number.MAX_VALUE?t.number:"")+" ")])],1):e("dd",{staticClass:"col-sm-9 mb-0",class:`text-${t.variant}`},[t._v(" "+t._s(t.data.length>0?t.data:t.number!==Number.MAX_VALUE?t.number:"")+" ")])])},n=[],i=r(67347);const o={components:{BLink:i.we},props:{title:{type:String,required:!0},classes:{type:String,required:!1,default:"mb-1"},data:{type:String,required:!1,default:""},number:{type:Number,required:!1,default:Number.MAX_VALUE},variant:{type:String,required:!1,default:"secondary"},href:{type:String,required:!1,default:""},click:{type:Boolean,required:!1,default:!1}}},s=o;var l=r(1001),c=(0,l.Z)(s,a,n,!1,null,null,null);const u=c.exports},77249:(t,e,r)=>{r.r(e),r.d(e,{default:()=>Z});var a=function(){var t=this,e=t._self._c;return e("b-overlay",{attrs:{show:t.fluxListLoading,variant:"transparent",blur:"5px"}},[e("b-card",[e("b-row",[e("b-col",{staticClass:"my-1",attrs:{md:"4",sm:"4"}},[e("b-form-group",{staticClass:"mb-0"},[e("label",{staticClass:"d-inline-block text-left mr-50"},[t._v("Per page")]),e("b-form-select",{staticClass:"w-50",attrs:{id:"perPageSelect",size:"sm",options:t.pageOptions},model:{value:t.perPage,callback:function(e){t.perPage=e},expression:"perPage"}})],1)],1),e("b-col",{staticClass:"my-1",attrs:{md:"8"}},[e("b-form-group",{staticClass:"mb-0",attrs:{label:"Filter","label-cols-sm":"1","label-align-sm":"right","label-for":"filterInput"}},[e("b-input-group",{attrs:{size:"sm"}},[e("b-form-input",{attrs:{id:"filterInput",type:"search",placeholder:"Type to Search"},model:{value:t.filter,callback:function(e){t.filter=e},expression:"filter"}}),e("b-input-group-append",[e("b-button",{attrs:{disabled:!t.filter},on:{click:function(e){t.filter=""}}},[t._v(" Clear ")])],1)],1)],1)],1),e("b-col",{attrs:{cols:"12"}},[e("b-table",{staticClass:"fluxnode-table",attrs:{striped:"",hover:"",responsive:"","per-page":t.perPage,"current-page":t.currentPage,items:t.items,fields:t.fields,"sort-by":t.sortBy,"sort-desc":t.sortDesc,"sort-direction":t.sortDirection,filter:t.filter,"filter-included-fields":t.filterOn},on:{"update:sortBy":function(e){t.sortBy=e},"update:sort-by":function(e){t.sortBy=e},"update:sortDesc":function(e){t.sortDesc=e},"update:sort-desc":function(e){t.sortDesc=e},filtered:t.onFiltered},scopedSlots:t._u([{key:"cell(show_details)",fn:function(r){return[e("a",{on:{click:r.toggleDetails}},[r.detailsShowing?t._e():e("v-icon",{attrs:{name:"chevron-down"}}),r.detailsShowing?e("v-icon",{attrs:{name:"chevron-up"}}):t._e()],1)]}},{key:"row-details",fn:function(r){return[e("b-card",{staticClass:"mx-2"},[r.item.collateral?e("list-entry",{attrs:{title:"Collateral",data:r.item.collateral}}):t._e(),r.item.txhash?e("list-entry",{attrs:{title:"TX Hash",data:r.item.txhash}}):t._e(),r.item.outidx?e("list-entry",{attrs:{title:"Output ID",data:r.item.outidx}}):t._e(),r.item.pubkey?e("list-entry",{attrs:{title:"Public Key",data:r.item.pubkey}}):t._e(),r.item.network?e("list-entry",{attrs:{title:"Network",data:r.item.network}}):t._e(),r.item.lastpaid?e("list-entry",{attrs:{title:"Last Paid",data:new Date(1e3*r.item.lastpaid).toLocaleString("en-GB",t.timeoptions.shortDate)}}):t._e(),r.item.activesince?e("list-entry",{attrs:{title:"Active Since",data:new Date(1e3*r.item.activesince).toLocaleString("en-GB",t.timeoptions.shortDate)}}):t._e(),r.item.last_paid_height?e("list-entry",{attrs:{title:"Last Paid Height",data:r.item.last_paid_height.toFixed(0)}}):t._e(),r.item.confirmed_height?e("list-entry",{attrs:{title:"Confirmed Height",data:r.item.confirmed_height.toFixed(0)}}):t._e(),r.item.last_confirmed_height?e("list-entry",{attrs:{title:"Last Confirmed Height",data:r.item.last_confirmed_height.toFixed(0)}}):t._e(),r.item.rank>=0?e("list-entry",{attrs:{title:"Rank",data:r.item.rank.toFixed(0)}}):t._e()],1)]}}])})],1),e("b-col",{attrs:{cols:"12"}},[e("b-pagination",{staticClass:"my-0",attrs:{"total-rows":t.totalRows,"per-page":t.perPage,align:"center",size:"sm"},model:{value:t.currentPage,callback:function(e){t.currentPage=e},expression:"currentPage"}}),e("span",{staticClass:"table-total"},[t._v("Total: "+t._s(t.totalRows))])],1)],1)],1)],1)},n=[],i=(r(70560),r(86855)),o=r(16521),s=r(26253),l=r(50725),c=r(10962),u=r(46709),d=r(8051),f=r(4060),m=r(22183),p=r(22418),g=r(15193),h=r(66126),b=r(34547),y=r(51748),v=r(27616);const x=r(63005),_={components:{BCard:i._,BTable:o.h,BRow:s.T,BCol:l.l,BPagination:c.c,BFormGroup:u.x,BFormSelect:d.K,BInputGroup:f.w,BFormInput:m.e,BInputGroupAppend:p.B,BButton:g.T,BOverlay:h.X,ListEntry:y.Z,ToastificationContent:b.Z},data(){return{timeoptions:x,callResponse:{status:"",data:""},perPage:10,pageOptions:[10,25,50,100],sortBy:"",sortDesc:!1,sortDirection:"asc",items:[],filter:"",filterOn:[],fields:[{key:"show_details",label:""},{key:"payment_address",label:"Address",sortable:!0},{key:"ip",label:"IP",sortable:!0},{key:"tier",label:"Tier",sortable:!0},{key:"added_height",label:"Added Height",sortable:!0}],totalRows:1,currentPage:1,fluxListLoading:!0}},computed:{sortOptions(){return this.fields.filter((t=>t.sortable)).map((t=>({text:t.label,value:t.key})))}},mounted(){this.daemonViewDeterministicFluxNodeList()},methods:{async daemonViewDeterministicFluxNodeList(){const t=await v.Z.viewDeterministicFluxNodeList();if("error"===t.data.status)this.$toast({component:b.Z,props:{title:t.data.data.message||t.data.data,icon:"InfoIcon",variant:"danger"}});else{const e=this;t.data.data.forEach((t=>{e.items.push(t)})),this.totalRows=this.items.length,this.currentPage=1}this.fluxListLoading=!1},onFiltered(t){this.totalRows=t.length,this.currentPage=1}}},w=_;var k=r(1001),C=(0,k.Z)(w,a,n,!1,null,null,null);const Z=C.exports},63005:(t,e,r)=>{r.r(e),r.d(e,{default:()=>i});const a={year:"numeric",month:"short",day:"numeric",hour:"2-digit",minute:"2-digit"},n={year:"numeric",month:"short",day:"numeric"},i={shortDate:a,date:n}},27616:(t,e,r)=>{r.d(e,{Z:()=>n});var a=r(80914);const n={help(){return(0,a.Z)().get("/daemon/help")},helpSpecific(t){return(0,a.Z)().get(`/daemon/help/${t}`)},getInfo(){return(0,a.Z)().get("/daemon/getinfo")},getFluxNodeStatus(){return(0,a.Z)().get("/daemon/getzelnodestatus")},getRawTransaction(t,e){return(0,a.Z)().get(`/daemon/getrawtransaction/${t}/${e}`)},listFluxNodes(){return(0,a.Z)().get("/daemon/listzelnodes")},viewDeterministicFluxNodeList(){return(0,a.Z)().get("/daemon/viewdeterministiczelnodelist")},getFluxNodeCount(){return(0,a.Z)().get("/daemon/getzelnodecount")},getStartList(){return(0,a.Z)().get("/daemon/getstartlist")},getDOSList(){return(0,a.Z)().get("/daemon/getdoslist")},fluxCurrentWinner(){return(0,a.Z)().get("/daemon/fluxcurrentwinner")},getBenchmarks(){return(0,a.Z)().get("/daemon/getbenchmarks")},getBenchStatus(){return(0,a.Z)().get("/daemon/getbenchstatus")},startBenchmark(t){return(0,a.Z)().get("/daemon/startbenchmark",{headers:{zelidauth:t}})},stopBenchmark(t){return(0,a.Z)().get("/daemon/stopbenchmark",{headers:{zelidauth:t}})},getBlockCount(){return(0,a.Z)().get("/daemon/getBlockCount")},getBlockchainInfo(){return(0,a.Z)().get("/daemon/getblockchaininfo")},getMiningInfo(){return(0,a.Z)().get("/daemon/getmininginfo")},getNetworkInfo(){return(0,a.Z)().get("/daemon/getnetworkinfo")},validateAddress(t,e){return(0,a.Z)().get(`/daemon/validateaddress/${e}`,{headers:{zelidauth:t}})},getWalletInfo(t){return(0,a.Z)().get("/daemon/getwalletinfo",{headers:{zelidauth:t}})},listFluxNodeConf(t){return(0,a.Z)().get("/daemon/listzelnodeconf",{headers:{zelidauth:t}})},start(t){return(0,a.Z)().get("/daemon/start",{headers:{zelidauth:t}})},restart(t){return(0,a.Z)().get("/daemon/restart",{headers:{zelidauth:t}})},stopDaemon(t){return(0,a.Z)().get("/daemon/stop",{headers:{zelidauth:t}})},rescanDaemon(t,e){return(0,a.Z)().get(`/daemon/rescanblockchain/${e}`,{headers:{zelidauth:t}})},getBlock(t,e){return(0,a.Z)().get(`/daemon/getblock/${t}/${e}`)},tailDaemonDebug(t){return(0,a.Z)().get("/flux/taildaemondebug",{headers:{zelidauth:t}})},justAPI(){return(0,a.Z)()},cancelToken(){return a.S}}},84328:(t,e,r)=>{var a=r(65290),n=r(27578),i=r(6310),o=function(t){return function(e,r,o){var s,l=a(e),c=i(l),u=n(o,c);if(t&&r!==r){while(c>u)if(s=l[u++],s!==s)return!0}else for(;c>u;u++)if((t||u in l)&&l[u]===r)return t||u||0;return!t&&-1}};t.exports={includes:o(!0),indexOf:o(!1)}},5649:(t,e,r)=>{var a=r(67697),n=r(92297),i=TypeError,o=Object.getOwnPropertyDescriptor,s=a&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(t){return t instanceof TypeError}}();t.exports=s?function(t,e){if(n(t)&&!o(t,"length").writable)throw new i("Cannot set read only .length");return t.length=e}:function(t,e){return t.length=e}},8758:(t,e,r)=>{var a=r(36812),n=r(19152),i=r(82474),o=r(72560);t.exports=function(t,e,r){for(var s=n(e),l=o.f,c=i.f,u=0;u{var e=TypeError,r=9007199254740991;t.exports=function(t){if(t>r)throw e("Maximum allowed index exceeded");return t}},72739:t=>{t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},79989:(t,e,r)=>{var a=r(19037),n=r(82474).f,i=r(75773),o=r(11880),s=r(95014),l=r(8758),c=r(35266);t.exports=function(t,e){var r,u,d,f,m,p,g=t.target,h=t.global,b=t.stat;if(u=h?a:b?a[g]||s(g,{}):(a[g]||{}).prototype,u)for(d in e){if(m=e[d],t.dontCallGetSet?(p=n(u,d),f=p&&p.value):f=u[d],r=c(h?d:g+(b?".":"#")+d,t.forced),!r&&void 0!==f){if(typeof m==typeof f)continue;l(m,f)}(t.sham||f&&f.sham)&&i(m,"sham",!0),o(u,d,m,t)}}},94413:(t,e,r)=>{var a=r(68844),n=r(3689),i=r(6648),o=Object,s=a("".split);t.exports=n((function(){return!o("z").propertyIsEnumerable(0)}))?function(t){return"String"===i(t)?s(t,""):o(t)}:o},92297:(t,e,r)=>{var a=r(6648);t.exports=Array.isArray||function(t){return"Array"===a(t)}},35266:(t,e,r)=>{var a=r(3689),n=r(69985),i=/#|\.prototype\./,o=function(t,e){var r=l[s(t)];return r===u||r!==c&&(n(e)?a(e):!!e)},s=o.normalize=function(t){return String(t).replace(i,".").toLowerCase()},l=o.data={},c=o.NATIVE="N",u=o.POLYFILL="P";t.exports=o},6310:(t,e,r)=>{var a=r(43126);t.exports=function(t){return a(t.length)}},58828:t=>{var e=Math.ceil,r=Math.floor;t.exports=Math.trunc||function(t){var a=+t;return(a>0?r:e)(a)}},82474:(t,e,r)=>{var a=r(67697),n=r(22615),i=r(49556),o=r(75684),s=r(65290),l=r(18360),c=r(36812),u=r(68506),d=Object.getOwnPropertyDescriptor;e.f=a?d:function(t,e){if(t=s(t),e=l(e),u)try{return d(t,e)}catch(r){}if(c(t,e))return o(!n(i.f,t,e),t[e])}},72741:(t,e,r)=>{var a=r(54948),n=r(72739),i=n.concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return a(t,i)}},7518:(t,e)=>{e.f=Object.getOwnPropertySymbols},54948:(t,e,r)=>{var a=r(68844),n=r(36812),i=r(65290),o=r(84328).indexOf,s=r(57248),l=a([].push);t.exports=function(t,e){var r,a=i(t),c=0,u=[];for(r in a)!n(s,r)&&n(a,r)&&l(u,r);while(e.length>c)n(a,r=e[c++])&&(~o(u,r)||l(u,r));return u}},49556:(t,e)=>{var r={}.propertyIsEnumerable,a=Object.getOwnPropertyDescriptor,n=a&&!r.call({1:2},1);e.f=n?function(t){var e=a(this,t);return!!e&&e.enumerable}:r},19152:(t,e,r)=>{var a=r(76058),n=r(68844),i=r(72741),o=r(7518),s=r(85027),l=n([].concat);t.exports=a("Reflect","ownKeys")||function(t){var e=i.f(s(t)),r=o.f;return r?l(e,r(t)):e}},27578:(t,e,r)=>{var a=r(68700),n=Math.max,i=Math.min;t.exports=function(t,e){var r=a(t);return r<0?n(r+e,0):i(r,e)}},65290:(t,e,r)=>{var a=r(94413),n=r(74684);t.exports=function(t){return a(n(t))}},68700:(t,e,r)=>{var a=r(58828);t.exports=function(t){var e=+t;return e!==e||0===e?0:a(e)}},43126:(t,e,r)=>{var a=r(68700),n=Math.min;t.exports=function(t){return t>0?n(a(t),9007199254740991):0}},70560:(t,e,r)=>{var a=r(79989),n=r(90690),i=r(6310),o=r(5649),s=r(55565),l=r(3689),c=l((function(){return 4294967297!==[].push.call({length:4294967296},1)})),u=function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(t){return t instanceof TypeError}},d=c||!u();a({target:"Array",proto:!0,arity:1,forced:d},{push:function(t){var e=n(this),r=i(e),a=arguments.length;s(r+a);for(var l=0;l{a.d(e,{Z:()=>c});var r=function(){var t=this,e=t._self._c;return e("div",{staticClass:"toastification"},[e("div",{staticClass:"d-flex align-items-start"},[e("b-avatar",{staticClass:"mr-75 flex-shrink-0",attrs:{variant:t.variant,size:"1.8rem"}},[e("feather-icon",{attrs:{icon:t.icon,size:"15"}})],1),e("div",{staticClass:"d-flex flex-grow-1"},[e("div",[t.title?e("h5",{staticClass:"mb-0 font-weight-bolder toastification-title",class:`text-${t.variant}`,domProps:{textContent:t._s(t.title)}}):t._e(),t.text?e("small",{staticClass:"d-inline-block text-body",domProps:{textContent:t._s(t.text)}}):t._e()]),e("span",{staticClass:"cursor-pointer toastification-close-icon ml-auto",on:{click:function(e){return t.$emit("close-toast")}}},[t.hideClose?t._e():e("feather-icon",{staticClass:"text-body",attrs:{icon:"XIcon"}})],1)])],1)])},s=[],i=a(47389);const n={components:{BAvatar:i.SH},props:{variant:{type:String,default:"primary"},icon:{type:String,default:null},title:{type:String,default:null},text:{type:String,default:null},hideClose:{type:Boolean,default:!1}}},l=n;var o=a(1001),d=(0,o.Z)(l,r,s,!1,null,"22d964ca",null);const c=d.exports},51748:(t,e,a)=>{a.d(e,{Z:()=>c});var r=function(){var t=this,e=t._self._c;return e("dl",{staticClass:"row",class:t.classes},[e("dt",{staticClass:"col-sm-3"},[t._v(" "+t._s(t.title)+" ")]),t.href.length>0?e("dd",{staticClass:"col-sm-9 mb-0",class:`text-${t.variant}`},[t.href.length>0?e("b-link",{attrs:{href:t.href,target:"_blank",rel:"noopener noreferrer"}},[t._v(" "+t._s(t.data.length>0?t.data:t.number!==Number.MAX_VALUE?t.number:"")+" ")]):t._e()],1):t.click?e("dd",{staticClass:"col-sm-9 mb-0",class:`text-${t.variant}`,on:{click:function(e){return t.$emit("click")}}},[e("b-link",[t._v(" "+t._s(t.data.length>0?t.data:t.number!==Number.MAX_VALUE?t.number:"")+" ")])],1):e("dd",{staticClass:"col-sm-9 mb-0",class:`text-${t.variant}`},[t._v(" "+t._s(t.data.length>0?t.data:t.number!==Number.MAX_VALUE?t.number:"")+" ")])])},s=[],i=a(67347);const n={components:{BLink:i.we},props:{title:{type:String,required:!0},classes:{type:String,required:!1,default:"mb-1"},data:{type:String,required:!1,default:""},number:{type:Number,required:!1,default:Number.MAX_VALUE},variant:{type:String,required:!1,default:"secondary"},href:{type:String,required:!1,default:""},click:{type:Boolean,required:!1,default:!1}}},l=n;var o=a(1001),d=(0,o.Z)(l,r,s,!1,null,null,null);const c=d.exports},77249:(t,e,a)=>{a.r(e),a.d(e,{default:()=>Z});var r=function(){var t=this,e=t._self._c;return e("b-overlay",{attrs:{show:t.fluxListLoading,variant:"transparent",blur:"5px"}},[e("b-card",[e("b-row",[e("b-col",{staticClass:"my-1",attrs:{md:"4",sm:"4"}},[e("b-form-group",{staticClass:"mb-0"},[e("label",{staticClass:"d-inline-block text-left mr-50"},[t._v("Per page")]),e("b-form-select",{staticClass:"w-50",attrs:{id:"perPageSelect",size:"sm",options:t.pageOptions},model:{value:t.perPage,callback:function(e){t.perPage=e},expression:"perPage"}})],1)],1),e("b-col",{staticClass:"my-1",attrs:{md:"8"}},[e("b-form-group",{staticClass:"mb-0",attrs:{label:"Filter","label-cols-sm":"1","label-align-sm":"right","label-for":"filterInput"}},[e("b-input-group",{attrs:{size:"sm"}},[e("b-form-input",{attrs:{id:"filterInput",type:"search",placeholder:"Type to Search"},model:{value:t.filter,callback:function(e){t.filter=e},expression:"filter"}}),e("b-input-group-append",[e("b-button",{attrs:{disabled:!t.filter},on:{click:function(e){t.filter=""}}},[t._v(" Clear ")])],1)],1)],1)],1),e("b-col",{attrs:{cols:"12"}},[e("b-table",{staticClass:"fluxnode-table",attrs:{striped:"",hover:"",responsive:"","per-page":t.perPage,"current-page":t.currentPage,items:t.items,fields:t.fields,"sort-by":t.sortBy,"sort-desc":t.sortDesc,"sort-direction":t.sortDirection,filter:t.filter,"filter-included-fields":t.filterOn},on:{"update:sortBy":function(e){t.sortBy=e},"update:sort-by":function(e){t.sortBy=e},"update:sortDesc":function(e){t.sortDesc=e},"update:sort-desc":function(e){t.sortDesc=e},filtered:t.onFiltered},scopedSlots:t._u([{key:"cell(show_details)",fn:function(a){return[e("a",{on:{click:a.toggleDetails}},[a.detailsShowing?t._e():e("v-icon",{attrs:{name:"chevron-down"}}),a.detailsShowing?e("v-icon",{attrs:{name:"chevron-up"}}):t._e()],1)]}},{key:"row-details",fn:function(a){return[e("b-card",{staticClass:"mx-2"},[a.item.collateral?e("list-entry",{attrs:{title:"Collateral",data:a.item.collateral}}):t._e(),a.item.txhash?e("list-entry",{attrs:{title:"TX Hash",data:a.item.txhash}}):t._e(),a.item.outidx?e("list-entry",{attrs:{title:"Output ID",data:a.item.outidx}}):t._e(),a.item.pubkey?e("list-entry",{attrs:{title:"Public Key",data:a.item.pubkey}}):t._e(),a.item.network?e("list-entry",{attrs:{title:"Network",data:a.item.network}}):t._e(),a.item.lastpaid?e("list-entry",{attrs:{title:"Last Paid",data:new Date(1e3*a.item.lastpaid).toLocaleString("en-GB",t.timeoptions.shortDate)}}):t._e(),a.item.activesince?e("list-entry",{attrs:{title:"Active Since",data:new Date(1e3*a.item.activesince).toLocaleString("en-GB",t.timeoptions.shortDate)}}):t._e(),a.item.last_paid_height?e("list-entry",{attrs:{title:"Last Paid Height",data:a.item.last_paid_height.toFixed(0)}}):t._e(),a.item.confirmed_height?e("list-entry",{attrs:{title:"Confirmed Height",data:a.item.confirmed_height.toFixed(0)}}):t._e(),a.item.last_confirmed_height?e("list-entry",{attrs:{title:"Last Confirmed Height",data:a.item.last_confirmed_height.toFixed(0)}}):t._e(),a.item.rank>=0?e("list-entry",{attrs:{title:"Rank",data:a.item.rank.toFixed(0)}}):t._e()],1)]}}])})],1),e("b-col",{attrs:{cols:"12"}},[e("b-pagination",{staticClass:"my-0",attrs:{"total-rows":t.totalRows,"per-page":t.perPage,align:"center",size:"sm"},model:{value:t.currentPage,callback:function(e){t.currentPage=e},expression:"currentPage"}}),e("span",{staticClass:"table-total"},[t._v("Total: "+t._s(t.totalRows))])],1)],1)],1)],1)},s=[],i=(a(70560),a(86855)),n=a(16521),l=a(26253),o=a(50725),d=a(10962),c=a(46709),u=a(8051),m=a(4060),g=a(22183),h=a(22418),p=a(15193),f=a(66126),b=a(34547),y=a(51748),_=a(27616);const k=a(63005),v={components:{BCard:i._,BTable:n.h,BRow:l.T,BCol:o.l,BPagination:d.c,BFormGroup:c.x,BFormSelect:u.K,BInputGroup:m.w,BFormInput:g.e,BInputGroupAppend:h.B,BButton:p.T,BOverlay:f.X,ListEntry:y.Z,ToastificationContent:b.Z},data(){return{timeoptions:k,callResponse:{status:"",data:""},perPage:10,pageOptions:[10,25,50,100],sortBy:"",sortDesc:!1,sortDirection:"asc",items:[],filter:"",filterOn:[],fields:[{key:"show_details",label:""},{key:"payment_address",label:"Address",sortable:!0},{key:"ip",label:"IP",sortable:!0},{key:"tier",label:"Tier",sortable:!0},{key:"added_height",label:"Added Height",sortable:!0}],totalRows:1,currentPage:1,fluxListLoading:!0}},computed:{sortOptions(){return this.fields.filter((t=>t.sortable)).map((t=>({text:t.label,value:t.key})))}},mounted(){this.daemonViewDeterministicFluxNodeList()},methods:{async daemonViewDeterministicFluxNodeList(){const t=await _.Z.viewDeterministicFluxNodeList();if("error"===t.data.status)this.$toast({component:b.Z,props:{title:t.data.data.message||t.data.data,icon:"InfoIcon",variant:"danger"}});else{const e=this;t.data.data.forEach((t=>{e.items.push(t)})),this.totalRows=this.items.length,this.currentPage=1}this.fluxListLoading=!1},onFiltered(t){this.totalRows=t.length,this.currentPage=1}}},x=v;var C=a(1001),w=(0,C.Z)(x,r,s,!1,null,null,null);const Z=w.exports},63005:(t,e,a)=>{a.r(e),a.d(e,{default:()=>i});const r={year:"numeric",month:"short",day:"numeric",hour:"2-digit",minute:"2-digit"},s={year:"numeric",month:"short",day:"numeric"},i={shortDate:r,date:s}},27616:(t,e,a)=>{a.d(e,{Z:()=>s});var r=a(80914);const s={help(){return(0,r.Z)().get("/daemon/help")},helpSpecific(t){return(0,r.Z)().get(`/daemon/help/${t}`)},getInfo(){return(0,r.Z)().get("/daemon/getinfo")},getFluxNodeStatus(){return(0,r.Z)().get("/daemon/getzelnodestatus")},getRawTransaction(t,e){return(0,r.Z)().get(`/daemon/getrawtransaction/${t}/${e}`)},listFluxNodes(){return(0,r.Z)().get("/daemon/listzelnodes")},viewDeterministicFluxNodeList(){return(0,r.Z)().get("/daemon/viewdeterministiczelnodelist")},getFluxNodeCount(){return(0,r.Z)().get("/daemon/getzelnodecount")},getStartList(){return(0,r.Z)().get("/daemon/getstartlist")},getDOSList(){return(0,r.Z)().get("/daemon/getdoslist")},fluxCurrentWinner(){return(0,r.Z)().get("/daemon/fluxcurrentwinner")},getBenchmarks(){return(0,r.Z)().get("/daemon/getbenchmarks")},getBenchStatus(){return(0,r.Z)().get("/daemon/getbenchstatus")},startBenchmark(t){return(0,r.Z)().get("/daemon/startbenchmark",{headers:{zelidauth:t}})},stopBenchmark(t){return(0,r.Z)().get("/daemon/stopbenchmark",{headers:{zelidauth:t}})},getBlockCount(){return(0,r.Z)().get("/daemon/getBlockCount")},getBlockchainInfo(){return(0,r.Z)().get("/daemon/getblockchaininfo")},getMiningInfo(){return(0,r.Z)().get("/daemon/getmininginfo")},getNetworkInfo(){return(0,r.Z)().get("/daemon/getnetworkinfo")},validateAddress(t,e){return(0,r.Z)().get(`/daemon/validateaddress/${e}`,{headers:{zelidauth:t}})},getWalletInfo(t){return(0,r.Z)().get("/daemon/getwalletinfo",{headers:{zelidauth:t}})},listFluxNodeConf(t){return(0,r.Z)().get("/daemon/listzelnodeconf",{headers:{zelidauth:t}})},start(t){return(0,r.Z)().get("/daemon/start",{headers:{zelidauth:t}})},restart(t){return(0,r.Z)().get("/daemon/restart",{headers:{zelidauth:t}})},stopDaemon(t){return(0,r.Z)().get("/daemon/stop",{headers:{zelidauth:t}})},rescanDaemon(t,e){return(0,r.Z)().get(`/daemon/rescanblockchain/${e}`,{headers:{zelidauth:t}})},getBlock(t,e){return(0,r.Z)().get(`/daemon/getblock/${t}/${e}`)},tailDaemonDebug(t){return(0,r.Z)().get("/flux/taildaemondebug",{headers:{zelidauth:t}})},justAPI(){return(0,r.Z)()},cancelToken(){return r.S}}}}]); \ No newline at end of file diff --git a/HomeUI/dist/js/7353.js b/HomeUI/dist/js/7353.js new file mode 100644 index 000000000..10dab21e6 --- /dev/null +++ b/HomeUI/dist/js/7353.js @@ -0,0 +1 @@ +(self["webpackChunkflux"]=self["webpackChunkflux"]||[]).push([[7353],{87156:(e,n,a)=>{"use strict";a.d(n,{Z:()=>p});var o=function(){var e=this,n=e._self._c;return n("b-popover",{ref:"popover",attrs:{target:`${e.target}`,triggers:"click blur",show:e.show,placement:"auto",container:"my-container","custom-class":`confirm-dialog-${e.width}`},on:{"update:show":function(n){e.show=n}},scopedSlots:e._u([{key:"title",fn:function(){return[n("div",{staticClass:"d-flex justify-content-between align-items-center"},[n("span",[e._v(e._s(e.title))]),n("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"close",attrs:{variant:"transparent","aria-label":"Close"},on:{click:function(n){e.show=!1}}},[n("span",{staticClass:"d-inline-block text-white",attrs:{"aria-hidden":"true"}},[e._v("×")])])],1)]},proxy:!0}])},[n("div",{staticClass:"text-center"},[n("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"mr-1",attrs:{size:"sm",variant:"danger"},on:{click:function(n){e.show=!1}}},[e._v(" "+e._s(e.cancelButton)+" ")]),n("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],attrs:{size:"sm",variant:"primary"},on:{click:function(n){return e.confirm()}}},[e._v(" "+e._s(e.confirmButton)+" ")])],1)])},t=[],i=a(15193),d=a(53862),c=a(20266);const l={components:{BButton:i.T,BPopover:d.x},directives:{Ripple:c.Z},props:{target:{type:String,required:!0},title:{type:String,required:!1,default:"Are You Sure?"},cancelButton:{type:String,required:!1,default:"Cancel"},confirmButton:{type:String,required:!0},width:{type:Number,required:!1,default:300}},data(){return{show:!1}},methods:{confirm(){this.show=!1,this.$emit("confirm")}}},r=l;var s=a(1001),m=(0,s.Z)(r,o,t,!1,null,null,null);const p=m.exports},65864:(e,n,a)=>{"use strict";a.d(n,{M:()=>t,Z:()=>i});var o=a(87066);const t="https://fiatpaymentsbridge.runonflux.io";async function i(){try{const e=await o["default"].get(`${t}/api/v1/gateway/status`);return"success"===e.data.status?e.data.data:null}catch(e){return null}}},57306:e=>{const n=[{name:"Afghanistan",dial_code:"+93",code:"AF",continent:"AS"},{name:"Aland Islands",dial_code:"+358",code:"AX"},{name:"Albania",dial_code:"+355",code:"AL",continent:"EU"},{name:"Algeria",dial_code:"+213",code:"DZ",continent:"AF"},{name:"American Samoa",dial_code:"+1684",code:"AS",continent:"OC"},{name:"Andorra",dial_code:"+376",code:"AD",continent:"EU"},{name:"Angola",dial_code:"+244",code:"AO",continent:"AF"},{name:"Anguilla",dial_code:"+1264",code:"AI",continent:"NA"},{name:"Antarctica",dial_code:"+672",code:"AQ",continent:"AN"},{name:"Antigua and Barbuda",dial_code:"+1268",code:"AG",continent:"NA"},{name:"Argentina",dial_code:"+54",code:"AR",continent:"SA"},{name:"Armenia",dial_code:"+374",code:"AM",continent:"AS"},{name:"Aruba",dial_code:"+297",code:"AW",continent:"NA"},{name:"Australia",dial_code:"+61",code:"AU",continent:"OC"},{name:"Austria",dial_code:"+43",code:"AT",continent:"EU"},{name:"Azerbaijan",dial_code:"+994",code:"AZ",continent:"AS"},{name:"Bahamas",dial_code:"+1242",code:"BS",continent:"NA"},{name:"Bahrain",dial_code:"+973",code:"BH",continent:"AS"},{name:"Bangladesh",dial_code:"+880",code:"BD",continent:"AS"},{name:"Barbados",dial_code:"+1246",code:"BB",continent:"NA"},{name:"Belarus",dial_code:"+375",code:"BY",continent:"EU"},{name:"Belgium",dial_code:"+32",code:"BE",continent:"EU"},{name:"Belize",dial_code:"+501",code:"BZ",continent:"NA"},{name:"Benin",dial_code:"+229",code:"BJ",continent:"AF"},{name:"Bermuda",dial_code:"+1441",code:"BM",continent:"NA"},{name:"Bhutan",dial_code:"+975",code:"BT",continent:"AS"},{name:"Bolivia, Plurinational State of",dial_code:"+591",code:"BO"},{name:"Bosnia and Herzegovina",dial_code:"+387",code:"BA",continent:"EU"},{name:"Botswana",dial_code:"+267",code:"BW",continent:"AF"},{name:"Brazil",dial_code:"+55",code:"BR",continent:"SA"},{name:"British Indian Ocean Territory",dial_code:"+246",code:"IO",continent:"AF"},{name:"Brunei Darussalam",dial_code:"+673",code:"BN"},{name:"Bulgaria",dial_code:"+359",code:"BG",continent:"EU"},{name:"Burkina Faso",dial_code:"+226",code:"BF",continent:"AF"},{name:"Burundi",dial_code:"+257",code:"BI",continent:"AF"},{name:"Cambodia",dial_code:"+855",code:"KH",continent:"AS"},{name:"Cameroon",dial_code:"+237",code:"CM",continent:"AF"},{name:"Canada",dial_code:"+1",code:"CA",available:!0,continent:"NA"},{name:"Cape Verde",dial_code:"+238",code:"CV",continent:"AF"},{name:"Cayman Islands",dial_code:"+ 345",code:"KY",continent:"NA"},{name:"Central African Republic",dial_code:"+236",code:"CF",continent:"AF"},{name:"Chad",dial_code:"+235",code:"TD",continent:"AF"},{name:"Chile",dial_code:"+56",code:"CL",continent:"SA"},{name:"China",dial_code:"+86",code:"CN",available:!0,continent:"AS"},{name:"Christmas Island",dial_code:"+61",code:"CX",continent:"OC"},{name:"Cocos (Keeling) Islands",dial_code:"+61",code:"CC",continent:"OC"},{name:"Colombia",dial_code:"+57",code:"CO",continent:"SA"},{name:"Comoros",dial_code:"+269",code:"KM",continent:"AF"},{name:"Congo",dial_code:"+242",code:"CG",continent:"AF"},{name:"Congo, The Democratic Republic of the Congo",dial_code:"+243",code:"CD"},{name:"Cook Islands",dial_code:"+682",code:"CK",continent:"OC"},{name:"Costa Rica",dial_code:"+506",code:"CR",continent:"NA"},{name:"Cote d'Ivoire",dial_code:"+225",code:"CI"},{name:"Croatia",dial_code:"+385",code:"HR",continent:"EU"},{name:"Cuba",dial_code:"+53",code:"CU",continent:"NA"},{name:"Cyprus",dial_code:"+357",code:"CY",continent:"AS"},{name:"Czech Republic",dial_code:"+420",code:"CZ",continent:"EU"},{name:"Denmark",dial_code:"+45",code:"DK",continent:"EU"},{name:"Djibouti",dial_code:"+253",code:"DJ",continent:"AF"},{name:"Dominica",dial_code:"+1767",code:"DM",continent:"NA"},{name:"Dominican Republic",dial_code:"+1849",code:"DO",continent:"NA"},{name:"Ecuador",dial_code:"+593",code:"EC",continent:"SA"},{name:"Egypt",dial_code:"+20",code:"EG",continent:"AF"},{name:"El Salvador",dial_code:"+503",code:"SV",continent:"NA"},{name:"Equatorial Guinea",dial_code:"+240",code:"GQ",continent:"AF"},{name:"Eritrea",dial_code:"+291",code:"ER",continent:"AF"},{name:"Estonia",dial_code:"+372",code:"EE",continent:"EU"},{name:"Ethiopia",dial_code:"+251",code:"ET",continent:"AF"},{name:"Falkland Islands (Malvinas)",dial_code:"+500",code:"FK"},{name:"Faroe Islands",dial_code:"+298",code:"FO",continent:"EU"},{name:"Fiji Islands",dial_code:"+679",code:"FJ",continent:"OC"},{name:"Finland",dial_code:"+358",code:"FI",available:!0,continent:"EU"},{name:"France",dial_code:"+33",code:"FR",available:!0,continent:"EU"},{name:"French Guiana",dial_code:"+594",code:"GF",continent:"SA"},{name:"French Polynesia",dial_code:"+689",code:"PF",continent:"OC"},{name:"Gabon",dial_code:"+241",code:"GA",continent:"AF"},{name:"Gambia",dial_code:"+220",code:"GM",continent:"AF"},{name:"Georgia",dial_code:"+995",code:"GE",continent:"AS"},{name:"Germany",dial_code:"+49",code:"DE",available:!0,continent:"EU"},{name:"Ghana",dial_code:"+233",code:"GH",continent:"AF"},{name:"Gibraltar",dial_code:"+350",code:"GI",continent:"EU"},{name:"Greece",dial_code:"+30",code:"GR",continent:"EU"},{name:"Greenland",dial_code:"+299",code:"GL",continent:"NA"},{name:"Grenada",dial_code:"+1473",code:"GD",continent:"NA"},{name:"Guadeloupe",dial_code:"+590",code:"GP",continent:"NA"},{name:"Guam",dial_code:"+1671",code:"GU",continent:"OC"},{name:"Guatemala",dial_code:"+502",code:"GT",continent:"NA"},{name:"Guernsey",dial_code:"+44",code:"GG"},{name:"Guinea",dial_code:"+224",code:"GN",continent:"AF"},{name:"Guinea-Bissau",dial_code:"+245",code:"GW",continent:"AF"},{name:"Guyana",dial_code:"+595",code:"GY",continent:"SA"},{name:"Haiti",dial_code:"+509",code:"HT",continent:"NA"},{name:"Holy See (Vatican City State)",dial_code:"+379",code:"VA",continent:"EU"},{name:"Honduras",dial_code:"+504",code:"HN",continent:"NA"},{name:"Hong Kong",dial_code:"+852",code:"HK",continent:"AS"},{name:"Hungary",dial_code:"+36",code:"HU",continent:"EU"},{name:"Iceland",dial_code:"+354",code:"IS",continent:"EU"},{name:"India",dial_code:"+91",code:"IN",continent:"AS"},{name:"Indonesia",dial_code:"+62",code:"ID",continent:"AS"},{name:"Iran",dial_code:"+98",code:"IR",continent:"AS"},{name:"Iraq",dial_code:"+964",code:"IQ",continent:"AS"},{name:"Ireland",dial_code:"+353",code:"IE",continent:"EU"},{name:"Isle of Man",dial_code:"+44",code:"IM"},{name:"Israel",dial_code:"+972",code:"IL",continent:"AS"},{name:"Italy",dial_code:"+39",code:"IT",continent:"EU"},{name:"Jamaica",dial_code:"+1876",code:"JM",continent:"NA"},{name:"Japan",dial_code:"+81",code:"JP",continent:"AS"},{name:"Jersey",dial_code:"+44",code:"JE"},{name:"Jordan",dial_code:"+962",code:"JO",continent:"AS"},{name:"Kazakhstan",dial_code:"+77",code:"KZ",continent:"AS"},{name:"Kenya",dial_code:"+254",code:"KE",continent:"AF"},{name:"Kiribati",dial_code:"+686",code:"KI",continent:"OC"},{name:"North Korea",dial_code:"+850",code:"KP",continent:"AS"},{name:"South Korea",dial_code:"+82",code:"KR",continent:"AS"},{name:"Kuwait",dial_code:"+965",code:"KW",continent:"AS"},{name:"Kyrgyzstan",dial_code:"+996",code:"KG",continent:"AS"},{name:"Laos",dial_code:"+856",code:"LA",continent:"AS"},{name:"Latvia",dial_code:"+371",code:"LV",continent:"EU"},{name:"Lebanon",dial_code:"+961",code:"LB",continent:"AS"},{name:"Lesotho",dial_code:"+266",code:"LS",continent:"AF"},{name:"Liberia",dial_code:"+231",code:"LR",continent:"AF"},{name:"Libyan Arab Jamahiriya",dial_code:"+218",code:"LY",continent:"AF"},{name:"Liechtenstein",dial_code:"+423",code:"LI",continent:"EU"},{name:"Lithuania",dial_code:"+370",code:"LT",available:!0,continent:"EU"},{name:"Luxembourg",dial_code:"+352",code:"LU",continent:"EU"},{name:"Macao",dial_code:"+853",code:"MO",continent:"AS"},{name:"Macedonia",dial_code:"+389",code:"MK",continent:"EU"},{name:"Madagascar",dial_code:"+261",code:"MG",continent:"AF"},{name:"Malawi",dial_code:"+265",code:"MW",continent:"AF"},{name:"Malaysia",dial_code:"+60",code:"MY",continent:"AS"},{name:"Maldives",dial_code:"+960",code:"MV",continent:"AS"},{name:"Mali",dial_code:"+223",code:"ML",continent:"AF"},{name:"Malta",dial_code:"+356",code:"MT",continent:"EU"},{name:"Marshall Islands",dial_code:"+692",code:"MH",continent:"OC"},{name:"Martinique",dial_code:"+596",code:"MQ",continent:"NA"},{name:"Mauritania",dial_code:"+222",code:"MR",continent:"AF"},{name:"Mauritius",dial_code:"+230",code:"MU",continent:"AF"},{name:"Mayotte",dial_code:"+262",code:"YT",continent:"AF"},{name:"Mexico",dial_code:"+52",code:"MX",continent:"NA"},{name:"Micronesia, Federated States of Micronesia",dial_code:"+691",code:"FM",continent:"OC"},{name:"Moldova",dial_code:"+373",code:"MD",continent:"EU"},{name:"Monaco",dial_code:"+377",code:"MC",continent:"EU"},{name:"Mongolia",dial_code:"+976",code:"MN",continent:"AS"},{name:"Montenegro",dial_code:"+382",code:"ME",continent:"EU"},{name:"Montserrat",dial_code:"+1664",code:"MS",continent:"NA"},{name:"Morocco",dial_code:"+212",code:"MA",continent:"AF"},{name:"Mozambique",dial_code:"+258",code:"MZ",continent:"AF"},{name:"Myanmar",dial_code:"+95",code:"MM",continent:"AS"},{name:"Namibia",dial_code:"+264",code:"NA",continent:"AF"},{name:"Nauru",dial_code:"+674",code:"NR",continent:"OC"},{name:"Nepal",dial_code:"+977",code:"NP",continent:"AS"},{name:"Netherlands",dial_code:"+31",code:"NL",available:!0,continent:"EU"},{name:"Netherlands Antilles",dial_code:"+599",code:"AN",continent:"NA"},{name:"New Caledonia",dial_code:"+687",code:"NC",continent:"OC"},{name:"New Zealand",dial_code:"+64",code:"NZ",continent:"OC"},{name:"Nicaragua",dial_code:"+505",code:"NI",continent:"NA"},{name:"Niger",dial_code:"+227",code:"NE",continent:"AF"},{name:"Nigeria",dial_code:"+234",code:"NG",continent:"AF"},{name:"Niue",dial_code:"+683",code:"NU",continent:"OC"},{name:"Norfolk Island",dial_code:"+672",code:"NF",continent:"OC"},{name:"Northern Mariana Islands",dial_code:"+1670",code:"MP",continent:"OC"},{name:"Norway",dial_code:"+47",code:"NO",continent:"EU"},{name:"Oman",dial_code:"+968",code:"OM",continent:"AS"},{name:"Pakistan",dial_code:"+92",code:"PK",continent:"AS"},{name:"Palau",dial_code:"+680",code:"PW",continent:"OC"},{name:"Palestinian Territory, Occupied",dial_code:"+970",code:"PS"},{name:"Panama",dial_code:"+507",code:"PA",continent:"NA"},{name:"Papua New Guinea",dial_code:"+675",code:"PG",continent:"OC"},{name:"Paraguay",dial_code:"+595",code:"PY",continent:"SA"},{name:"Peru",dial_code:"+51",code:"PE",continent:"SA"},{name:"Philippines",dial_code:"+63",code:"PH",continent:"AS"},{name:"Pitcairn",dial_code:"+872",code:"PN",continent:"OC"},{name:"Poland",dial_code:"+48",code:"PL",available:!0,continent:"EU"},{name:"Portugal",dial_code:"+351",code:"PT",available:!0,continent:"EU"},{name:"Puerto Rico",dial_code:"+1939",code:"PR",continent:"NA"},{name:"Qatar",dial_code:"+974",code:"QA",continent:"AS"},{name:"Romania",dial_code:"+40",code:"RO",continent:"EU"},{name:"Russia",dial_code:"+7",code:"RU",available:!0,continent:"EU"},{name:"Rwanda",dial_code:"+250",code:"RW",continent:"AF"},{name:"Reunion",dial_code:"+262",code:"RE",continent:"AF"},{name:"Saint Barthelemy",dial_code:"+590",code:"BL"},{name:"Saint Helena",dial_code:"+290",code:"SH",continent:"AF"},{name:"Saint Kitts and Nevis",dial_code:"+1869",code:"KN",continent:"NA"},{name:"Saint Lucia",dial_code:"+1758",code:"LC",continent:"NA"},{name:"Saint Martin",dial_code:"+590",code:"MF"},{name:"Saint Pierre and Miquelon",dial_code:"+508",code:"PM",continent:"NA"},{name:"Saint Vincent and the Grenadines",dial_code:"+1784",code:"VC",continent:"NA"},{name:"Samoa",dial_code:"+685",code:"WS",continent:"OC"},{name:"San Marino",dial_code:"+378",code:"SM",continent:"EU"},{name:"Sao Tome and Principe",dial_code:"+239",code:"ST",continent:"AF"},{name:"Saudi Arabia",dial_code:"+966",code:"SA",continent:"AS"},{name:"Senegal",dial_code:"+221",code:"SN",continent:"AF"},{name:"Serbia",dial_code:"+381",code:"RS",continent:"EU"},{name:"Seychelles",dial_code:"+248",code:"SC",continent:"AF"},{name:"Sierra Leone",dial_code:"+232",code:"SL",continent:"AF"},{name:"Singapore",dial_code:"+65",code:"SG",continent:"AS"},{name:"Slovakia",dial_code:"+421",code:"SK",continent:"EU"},{name:"Slovenia",dial_code:"+386",code:"SI",available:!0,continent:"EU"},{name:"Solomon Islands",dial_code:"+677",code:"SB",continent:"OC"},{name:"Somalia",dial_code:"+252",code:"SO",continent:"AF"},{name:"South Africa",dial_code:"+27",code:"ZA",continent:"AF"},{name:"South Sudan",dial_code:"+211",code:"SS",continent:"AF"},{name:"South Georgia and the South Sandwich Islands",dial_code:"+500",code:"GS",continent:"AN"},{name:"Spain",dial_code:"+34",code:"ES",available:!0,continent:"EU"},{name:"Sri Lanka",dial_code:"+94",code:"LK",continent:"AS"},{name:"Sudan",dial_code:"+249",code:"SD",continent:"AF"},{name:"Suriname",dial_code:"+597",code:"SR",continent:"SA"},{name:"Svalbard and Jan Mayen",dial_code:"+47",code:"SJ",continent:"EU"},{name:"Swaziland",dial_code:"+268",code:"SZ",continent:"AF"},{name:"Sweden",dial_code:"+46",code:"SE",continent:"EU"},{name:"Switzerland",dial_code:"+41",code:"CH",continent:"EU"},{name:"Syrian Arab Republic",dial_code:"+963",code:"SY"},{name:"Taiwan",dial_code:"+886",code:"TW"},{name:"Tajikistan",dial_code:"+992",code:"TJ",continent:"AS"},{name:"Tanzania, United Republic of Tanzania",dial_code:"+255",code:"TZ"},{name:"Thailand",dial_code:"+66",code:"TH",continent:"AS"},{name:"Timor-Leste",dial_code:"+670",code:"TL"},{name:"Togo",dial_code:"+228",code:"TG",continent:"AF"},{name:"Tokelau",dial_code:"+690",code:"TK",continent:"OC"},{name:"Tonga",dial_code:"+676",code:"TO",continent:"OC"},{name:"Trinidad and Tobago",dial_code:"+1868",code:"TT",continent:"NA"},{name:"Tunisia",dial_code:"+216",code:"TN",continent:"AF"},{name:"Turkey",dial_code:"+90",code:"TR",continent:"AS"},{name:"Turkmenistan",dial_code:"+993",code:"TM",continent:"AS"},{name:"Turks and Caicos Islands",dial_code:"+1649",code:"TC",continent:"NA"},{name:"Tuvalu",dial_code:"+688",code:"TV",continent:"OC"},{name:"Uganda",dial_code:"+256",code:"UG",continent:"AF"},{name:"Ukraine",dial_code:"+380",code:"UA",continent:"EU"},{name:"United Arab Emirates",dial_code:"+971",code:"AE",continent:"AS"},{name:"United Kingdom",dial_code:"+44",code:"GB",available:!0,continent:"EU"},{name:"United States",dial_code:"+1",code:"US",available:!0,continent:"NA"},{name:"Uruguay",dial_code:"+598",code:"UY",continent:"SA"},{name:"Uzbekistan",dial_code:"+998",code:"UZ",continent:"AS"},{name:"Vanuatu",dial_code:"+678",code:"VU",continent:"OC"},{name:"Venezuela, Bolivarian Republic of Venezuela",dial_code:"+58",code:"VE"},{name:"Vietnam",dial_code:"+84",code:"VN",continent:"AS"},{name:"Virgin Islands, British",dial_code:"+1284",code:"VG",continent:"NA"},{name:"Virgin Islands, U.S.",dial_code:"+1340",code:"VI",continent:"NA"},{name:"Wallis and Futuna",dial_code:"+681",code:"WF",continent:"OC"},{name:"Yemen",dial_code:"+967",code:"YE",continent:"AS"},{name:"Zambia",dial_code:"+260",code:"ZM",continent:"AF"},{name:"Zimbabwe",dial_code:"+263",code:"ZW",continent:"AF"}],a=[{name:"Africa",code:"AF"},{name:"North America",code:"NA",available:!0},{name:"Oceania",code:"OC",available:!0},{name:"Asia",code:"AS",available:!0},{name:"Europe",code:"EU",available:!0},{name:"South America",code:"SA"},{name:"Antarctica",code:"AN"}];e.exports={countries:n,continents:a}},43672:(e,n,a)=>{"use strict";a.d(n,{Z:()=>t});var o=a(80914);const t={listRunningApps(){const e={headers:{"x-apicache-bypass":!0}};return(0,o.Z)().get("/apps/listrunningapps",e)},listAllApps(){const e={headers:{"x-apicache-bypass":!0}};return(0,o.Z)().get("/apps/listallapps",e)},installedApps(){const e={headers:{"x-apicache-bypass":!0}};return(0,o.Z)().get("/apps/installedapps",e)},availableApps(){return(0,o.Z)().get("/apps/availableapps")},getEnterpriseNodes(){return(0,o.Z)().get("/apps/enterprisenodes")},stopApp(e,n){const a={headers:{zelidauth:e,"x-apicache-bypass":!0}};return(0,o.Z)().get(`/apps/appstop/${n}`,a)},startApp(e,n){const a={headers:{zelidauth:e}};return(0,o.Z)().get(`/apps/appstart/${n}`,a)},pauseApp(e,n){const a={headers:{zelidauth:e}};return(0,o.Z)().get(`/apps/apppause/${n}`,a)},unpauseApp(e,n){const a={headers:{zelidauth:e}};return(0,o.Z)().get(`/apps/appunpause/${n}`,a)},restartApp(e,n){const a={headers:{zelidauth:e}};return(0,o.Z)().get(`/apps/apprestart/${n}`,a)},removeApp(e,n){const a={headers:{zelidauth:e},onDownloadProgress(e){console.log(e)}};return(0,o.Z)().get(`/apps/appremove/${n}`,a)},registerApp(e,n){const a={headers:{zelidauth:e}};return(0,o.Z)().post("/apps/appregister",JSON.stringify(n),a)},updateApp(e,n){const a={headers:{zelidauth:e}};return(0,o.Z)().post("/apps/appupdate",JSON.stringify(n),a)},checkCommunication(){return(0,o.Z)().get("/flux/checkcommunication")},checkDockerExistance(e,n){const a={headers:{zelidauth:e}};return(0,o.Z)().post("/apps/checkdockerexistance",JSON.stringify(n),a)},appsRegInformation(){return(0,o.Z)().get("/apps/registrationinformation")},appsDeploymentInformation(){return(0,o.Z)().get("/apps/deploymentinformation")},getAppLocation(e){return(0,o.Z)().get(`/apps/location/${e}`)},globalAppSpecifications(){return(0,o.Z)().get("/apps/globalappsspecifications")},permanentMessagesOwner(e){return(0,o.Z)().get(`/apps/permanentmessages?owner=${e}`)},getInstalledAppSpecifics(e){return(0,o.Z)().get(`/apps/installedapps/${e}`)},getAppSpecifics(e){return(0,o.Z)().get(`/apps/appspecifications/${e}`)},getAppOwner(e){return(0,o.Z)().get(`/apps/appowner/${e}`)},getAppLogsTail(e,n){const a={headers:{zelidauth:e}};return(0,o.Z)().get(`/apps/applog/${n}/100`,a)},getAppTop(e,n){const a={headers:{zelidauth:e}};return(0,o.Z)().get(`/apps/apptop/${n}`,a)},getAppInspect(e,n){const a={headers:{zelidauth:e}};return(0,o.Z)().get(`/apps/appinspect/${n}`,a)},getAppStats(e,n){const a={headers:{zelidauth:e}};return(0,o.Z)().get(`/apps/appstats/${n}`,a)},getAppChanges(e,n){const a={headers:{zelidauth:e}};return(0,o.Z)().get(`/apps/appchanges/${n}`,a)},getAppExec(e,n,a,t){const i={headers:{zelidauth:e}},d={appname:n,cmd:a,env:JSON.parse(t)};return(0,o.Z)().post("/apps/appexec",JSON.stringify(d),i)},reindexGlobalApps(e){return(0,o.Z)().get("/apps/reindexglobalappsinformation",{headers:{zelidauth:e}})},reindexLocations(e){return(0,o.Z)().get("/apps/reindexglobalappslocation",{headers:{zelidauth:e}})},rescanGlobalApps(e,n,a){return(0,o.Z)().get(`/apps/rescanglobalappsinformation/${n}/${a}`,{headers:{zelidauth:e}})},getFolder(e,n){return(0,o.Z)().get(`/apps/fluxshare/getfolder/${n}`,{headers:{zelidauth:e}})},createFolder(e,n){return(0,o.Z)().get(`/apps/fluxshare/createfolder/${n}`,{headers:{zelidauth:e}})},getFile(e,n){return(0,o.Z)().get(`/apps/fluxshare/getfile/${n}`,{headers:{zelidauth:e}})},removeFile(e,n){return(0,o.Z)().get(`/apps/fluxshare/removefile/${n}`,{headers:{zelidauth:e}})},shareFile(e,n){return(0,o.Z)().get(`/apps/fluxshare/sharefile/${n}`,{headers:{zelidauth:e}})},unshareFile(e,n){return(0,o.Z)().get(`/apps/fluxshare/unsharefile/${n}`,{headers:{zelidauth:e}})},removeFolder(e,n){return(0,o.Z)().get(`/apps/fluxshare/removefolder/${n}`,{headers:{zelidauth:e}})},fileExists(e,n){return(0,o.Z)().get(`/apps/fluxshare/fileexists/${n}`,{headers:{zelidauth:e}})},storageStats(e){return(0,o.Z)().get("/apps/fluxshare/stats",{headers:{zelidauth:e}})},renameFileFolder(e,n,a){return(0,o.Z)().get(`/apps/fluxshare/rename/${n}/${a}`,{headers:{zelidauth:e}})},appPrice(e){return(0,o.Z)().post("/apps/calculateprice",JSON.stringify(e))},appPriceUSDandFlux(e){return(0,o.Z)().post("/apps/calculatefiatandfluxprice",JSON.stringify(e))},appRegistrationVerificaiton(e){return(0,o.Z)().post("/apps/verifyappregistrationspecifications",JSON.stringify(e))},appUpdateVerification(e){return(0,o.Z)().post("/apps/verifyappupdatespecifications",JSON.stringify(e))},getAppMonitoring(e,n){const a={headers:{zelidauth:e}};return(0,o.Z)().get(`/apps/appmonitor/${n}`,a)},startAppMonitoring(e,n){const a={headers:{zelidauth:e}};return n?(0,o.Z)().get(`/apps/startmonitoring/${n}`,a):(0,o.Z)().get("/apps/startmonitoring",a)},stopAppMonitoring(e,n,a){const t={headers:{zelidauth:e}};return n&&a?(0,o.Z)().get(`/apps/stopmonitoring/${n}/${a}`,t):n?(0,o.Z)().get(`/apps/stopmonitoring/${n}`,t):a?(0,o.Z)().get(`/apps/stopmonitoring?deletedata=${a}`,t):(0,o.Z)().get("/apps/stopmonitoring",t)},justAPI(){return(0,o.Z)()}}},20134:(e,n,a)=>{"use strict";e.exports=a.p+"img/Stripe.svg"},36547:(e,n,a)=>{"use strict";e.exports=a.p+"img/PayPal.png"}}]); \ No newline at end of file diff --git a/HomeUI/dist/js/7355.js b/HomeUI/dist/js/7355.js new file mode 100644 index 000000000..d227b0d1a --- /dev/null +++ b/HomeUI/dist/js/7355.js @@ -0,0 +1 @@ +(self["webpackChunkflux"]=self["webpackChunkflux"]||[]).push([[7355],{34547:(t,s,a)=>{"use strict";a.d(s,{Z:()=>c});var e=function(){var t=this,s=t._self._c;return s("div",{staticClass:"toastification"},[s("div",{staticClass:"d-flex align-items-start"},[s("b-avatar",{staticClass:"mr-75 flex-shrink-0",attrs:{variant:t.variant,size:"1.8rem"}},[s("feather-icon",{attrs:{icon:t.icon,size:"15"}})],1),s("div",{staticClass:"d-flex flex-grow-1"},[s("div",[t.title?s("h5",{staticClass:"mb-0 font-weight-bolder toastification-title",class:`text-${t.variant}`,domProps:{textContent:t._s(t.title)}}):t._e(),t.text?s("small",{staticClass:"d-inline-block text-body",domProps:{textContent:t._s(t.text)}}):t._e()]),s("span",{staticClass:"cursor-pointer toastification-close-icon ml-auto",on:{click:function(s){return t.$emit("close-toast")}}},[t.hideClose?t._e():s("feather-icon",{staticClass:"text-body",attrs:{icon:"XIcon"}})],1)])],1)])},r=[],i=a(47389);const o={components:{BAvatar:i.SH},props:{variant:{type:String,default:"primary"},icon:{type:String,default:null},title:{type:String,default:null},text:{type:String,default:null},hideClose:{type:Boolean,default:!1}}},n=o;var u=a(1001),l=(0,u.Z)(n,e,r,!1,null,"22d964ca",null);const c=l.exports},25216:(t,s,a)=>{"use strict";a.r(s),a.d(s,{default:()=>x});var e=function(){var t=this,s=t._self._c;return s("div",[s("b-row",[s("b-col",{attrs:{md:"6",sm:"12",lg:"3"}},[s("b-overlay",{attrs:{show:t.fluxListLoading,variant:"transparent",blur:"5px"}},[s("b-card",{attrs:{"no-body":""}},[s("b-card-body",{staticClass:"mr-2"},[s("b-avatar",{attrs:{size:"48",variant:"light-success"}},[s("feather-icon",{attrs:{size:"24",icon:"CpuIcon"}})],1),s("h2",{staticClass:"mt-1"},[t._v(" Total Cores: "+t._s(t.beautifyValue(t.totalCores,0))+" ")]),s("vue-apex-charts",{attrs:{type:"bar",height:"400",options:t.cpuData.chartOptions,series:t.cpuData.series}})],1)],1)],1)],1),s("b-col",{attrs:{md:"6",sm:"12",lg:"3"}},[s("b-overlay",{attrs:{show:t.fluxListLoading,variant:"transparent",blur:"5px"}},[s("b-card",{attrs:{"no-body":""}},[s("b-card-body",{staticClass:"mr-2"},[s("b-avatar",{attrs:{size:"48",variant:"light-success"}},[s("feather-icon",{attrs:{size:"24",icon:"DatabaseIcon"}})],1),s("h2",{staticClass:"mt-1"},[t._v(" Total RAM: "+t._s(t.beautifyValue(t.totalRAM/1024,2))+" TB ")]),s("vue-apex-charts",{attrs:{type:"bar",height:"400",options:t.ramData.chartOptions,series:t.ramData.series}})],1)],1)],1)],1),s("b-col",{attrs:{md:"6",sm:"12",lg:"3"}},[s("b-overlay",{attrs:{show:t.fluxListLoading,variant:"transparent",blur:"5px"}},[s("b-card",{attrs:{"no-body":""}},[s("b-card-body",{staticClass:"mr-2"},[s("b-avatar",{attrs:{size:"48",variant:"light-success"}},[s("feather-icon",{attrs:{size:"24",icon:"HardDriveIcon"}})],1),s("h2",{staticClass:"mt-1"},[t._v(" Total SSD: "+t._s(t.beautifyValue(t.totalSSD/1e6,2))+" PB ")]),s("vue-apex-charts",{attrs:{type:"bar",height:"400",options:t.ssdData.chartOptions,series:t.ssdData.series}})],1)],1)],1)],1),s("b-col",{attrs:{md:"6",sm:"12",lg:"3"}},[s("b-overlay",{attrs:{show:t.fluxListLoading,variant:"transparent",blur:"5px"}},[s("b-card",{attrs:{"no-body":""}},[s("b-card-body",{staticClass:"mr-2"},[s("b-avatar",{attrs:{size:"48",variant:"light-success"}},[s("feather-icon",{attrs:{size:"24",icon:"HardDriveIcon"}})],1),s("h2",{staticClass:"mt-1"},[t._v(" Total HDD: "+t._s(t.beautifyValue(t.totalHDD/1e3,2))+" TB ")]),s("vue-apex-charts",{attrs:{type:"bar",height:"400",options:t.hddData.chartOptions,series:t.hddData.series}})],1)],1)],1)],1)],1),s("b-row",[s("b-col",{attrs:{md:"12",sm:"12",lg:"4"}},[s("b-overlay",{attrs:{show:t.historyStatsLoading,variant:"transparent",blur:"5px"}},[s("b-card",{attrs:{"no-body":""}},[s("b-card-body",{staticClass:"mr-2"},[s("b-avatar",{attrs:{size:"48",variant:"light-success"}},[s("feather-icon",{attrs:{size:"24",icon:"CpuIcon"}})],1),s("h2",{staticClass:"mt-1"},[t._v(" CPU History ")])],1),s("vue-apex-charts",{attrs:{type:"area",height:"200",width:"100%",options:t.cpuHistoryData.chartOptions,series:t.cpuHistoryData.series}})],1)],1)],1),s("b-col",{attrs:{md:"6",sm:"12",lg:"4"}},[s("b-overlay",{attrs:{show:t.historyStatsLoading,variant:"transparent",blur:"5px"}},[s("b-card",{attrs:{"no-body":""}},[s("b-card-body",{staticClass:"mr-2"},[s("b-avatar",{attrs:{size:"48",variant:"light-success"}},[s("feather-icon",{attrs:{size:"24",icon:"DatabaseIcon"}})],1),s("h2",{staticClass:"mt-1"},[t._v(" RAM History ")])],1),s("vue-apex-charts",{attrs:{type:"area",height:"200",width:"100%",options:t.ramHistoryData.chartOptions,series:t.ramHistoryData.series}})],1)],1)],1),s("b-col",{attrs:{md:"6",sm:"12",lg:"4"}},[s("b-overlay",{attrs:{show:t.historyStatsLoading,variant:"transparent",blur:"5px"}},[s("b-card",{attrs:{"no-body":""}},[s("b-card-body",{staticClass:"mr-2"},[s("b-avatar",{attrs:{size:"48",variant:"light-success"}},[s("feather-icon",{attrs:{size:"24",icon:"HardDriveIcon"}})],1),s("h2",{staticClass:"mt-1"},[t._v(" Storage History ")])],1),s("vue-apex-charts",{attrs:{type:"area",height:"200",width:"100%",options:t.ssdHistoryData.chartOptions,series:t.ssdHistoryData.series}})],1)],1)],1)],1)],1)},r=[],i=(a(70560),a(86855)),o=a(19279),n=a(26253),u=a(50725),l=a(66126),c=a(47389),h=a(67166),d=a.n(h),b=a(34547),m=a(72918);const p=a(97218),f={components:{BCard:i._,BCardBody:o.O,BRow:n.T,BCol:u.l,BOverlay:l.X,BAvatar:c.SH,VueApexCharts:d(),ToastificationContent:b.Z},data(){return{timeoptions:{year:"numeric",month:"short",day:"numeric",hour:"2-digit",minute:"2-digit"},fluxListLoading:!0,fluxList:[],totalCores:0,totalRAM:0,totalSSD:0,totalHDD:0,cumulusCpuValue:0,nimbusCpuValue:0,stratusCpuValue:0,cumulusRamValue:0,nimbusRamValue:0,stratusRamValue:0,cumulusSSDStorageValue:0,cumulusHDDStorageValue:0,nimbusSSDStorageValue:0,nimbusHDDStorageValue:0,stratusSSDStorageValue:0,stratusHDDStorageValue:0,cpuData:{series:[],chartOptions:{colors:[m.Z.cumulus,m.Z.nimbus,m.Z.stratus],plotOptions:{bar:{columnWidth:"85%",distributed:!0}},dataLabels:{enabled:!1},legend:{show:!1},xaxis:{labels:{categories:["Cumulus","Nimbus","Stratus"],style:{colors:[m.Z.cumulus,m.Z.nimbus,m.Z.stratus],fontSize:"14px",fontFamily:"Montserrat"}}},yaxis:{labels:{style:{colors:"#888",fontSize:"14px",fontFamily:"Montserrat"},formatter:t=>this.beautifyValue(t,0)}},stroke:{lineCap:"round"},labels:["Cumulus","Nimbus","Stratus"]}},cpuHistoryData:{series:[],chartOptions:{colors:[m.Z.cumulus,m.Z.nimbus,m.Z.stratus],grid:{show:!1,padding:{left:0,right:0}},chart:{toolbar:{show:!1},sparkline:{enabled:!0}},dataLabels:{enabled:!1},stroke:{curve:"smooth",width:2.5},fill:{type:"gradient",gradient:{shadeIntensity:.9,opacityFrom:.5,opacityTo:0,stops:[0,80,100]}},xaxis:{type:"numeric",lines:{show:!1},axisBorder:{show:!1},labels:{show:!1}},yaxis:[{y:0,offsetX:0,offsetY:0,padding:{left:0,right:0}}],tooltip:{x:{formatter:t=>new Date(t).toLocaleString("en-GB",this.timeoptions)},y:{formatter:t=>this.beautifyValue(t,0)}}}},ramData:{series:[],chartOptions:{colors:[m.Z.cumulus,m.Z.nimbus,m.Z.stratus],plotOptions:{bar:{columnWidth:"85%",distributed:!0}},dataLabels:{enabled:!1},legend:{show:!1},xaxis:{labels:{categories:["Cumulus","Nimbus","Stratus"],style:{colors:[m.Z.cumulus,m.Z.nimbus,m.Z.stratus],fontSize:"14px",fontFamily:"Montserrat"}}},yaxis:{labels:{style:{colors:"#888",fontSize:"14px",fontFamily:"Montserrat"},formatter:t=>`${this.beautifyValue(t/1024,0)}`}},tooltip:{y:{formatter:t=>`${this.beautifyValue(t/1024,2)} TB`}},stroke:{lineCap:"round"},labels:["Cumulus","Nimbus","Stratus"]}},ramHistoryData:{series:[],chartOptions:{colors:[m.Z.cumulus,m.Z.nimbus,m.Z.stratus],grid:{show:!1,padding:{left:0,right:0}},chart:{toolbar:{show:!1},sparkline:{enabled:!0}},dataLabels:{enabled:!1},stroke:{curve:"smooth",width:2.5},fill:{type:"gradient",gradient:{shadeIntensity:.9,opacityFrom:.5,opacityTo:0,stops:[0,80,100]}},xaxis:{type:"numeric",lines:{show:!1},axisBorder:{show:!1},labels:{show:!1}},yaxis:[{y:0,offsetX:0,offsetY:0,padding:{left:0,right:0}}],tooltip:{x:{formatter:t=>new Date(t).toLocaleString("en-GB",this.timeoptions)},y:{formatter:t=>`${this.beautifyValue(t/1024,2)} TB`}}}},ssdData:{series:[],chartOptions:{colors:[m.Z.cumulus,m.Z.nimbus,m.Z.stratus],plotOptions:{bar:{columnWidth:"85%",distributed:!0}},dataLabels:{enabled:!1},legend:{show:!1},xaxis:{labels:{categories:["Cumulus","Nimbus","Stratus"],style:{colors:[m.Z.cumulus,m.Z.nimbus,m.Z.stratus],fontSize:"14px",fontFamily:"Montserrat"}}},yaxis:{labels:{style:{colors:"#888",fontSize:"14px",fontFamily:"Montserrat"},formatter:t=>`${this.beautifyValue(t/1e3,0)}`}},tooltip:{y:{formatter:t=>`${this.beautifyValue(t/1e3,2)} TB`}},stroke:{lineCap:"round"},labels:["Cumulus","Nimbus","Stratus"]}},ssdHistoryData:{series:[],chartOptions:{colors:[m.Z.cumulus,m.Z.nimbus,m.Z.stratus],grid:{show:!1,padding:{left:0,right:0}},chart:{toolbar:{show:!1},sparkline:{enabled:!0}},dataLabels:{enabled:!1},stroke:{curve:"smooth",width:2.5},fill:{type:"gradient",gradient:{shadeIntensity:.9,opacityFrom:.5,opacityTo:0,stops:[0,80,100]}},xaxis:{type:"numeric",lines:{show:!1},axisBorder:{show:!1},labels:{show:!1}},yaxis:[{y:0,offsetX:0,offsetY:0,padding:{left:0,right:0}}],tooltip:{x:{formatter:t=>new Date(t).toLocaleString("en-GB",this.timeoptions)},y:{formatter:t=>`${this.beautifyValue(t/1e3,2)} TB`}}}},hddData:{series:[],chartOptions:{colors:[m.Z.cumulus,m.Z.nimbus,m.Z.stratus],plotOptions:{bar:{columnWidth:"85%",distributed:!0}},dataLabels:{enabled:!1},legend:{show:!1},xaxis:{labels:{categories:["Cumulus","Nimbus","Stratus"],style:{colors:[m.Z.cumulus,m.Z.nimbus,m.Z.stratus],fontSize:"14px",fontFamily:"Montserrat"}}},yaxis:{labels:{style:{colors:"#888",fontSize:"14px",fontFamily:"Montserrat"},formatter:t=>`${this.beautifyValue(t/1e3,0)}`}},tooltip:{y:{formatter:t=>`${this.beautifyValue(t/1e3,2)} TB`}},stroke:{lineCap:"round"},labels:["Cumulus","Nimbus","Stratus"]}},historyStatsLoading:!0,fluxHistoryStats:[]}},mounted(){this.generateResources(),this.getHistoryStats()},methods:{async generateResources(){const t=await p.get("https://stats.runonflux.io/fluxinfo?projection=tier,benchmark"),s=t.data.data;s.forEach((t=>{"CUMULUS"===t.tier&&t.benchmark&&t.benchmark.bench?(this.cumulusCpuValue+=0===t.benchmark.bench.cores?4:t.benchmark.bench.cores,this.cumulusRamValue+=t.benchmark.bench.ram<8?8:Math.round(t.benchmark.bench.ram),this.cumulusSSDStorageValue+=t.benchmark.bench.ssd,this.cumulusHDDStorageValue+=t.benchmark.bench.hdd):"CUMULUS"===t.tier?(this.cumulusCpuValue+=4,this.cumulusRamValue+=8,this.cumulusHDDStorageValue+=220):"NIMBUS"===t.tier&&t.benchmark&&t.benchmark.bench?(this.nimbusCpuValue+=0===t.benchmark.bench.cores?8:t.benchmark.bench.cores,this.nimbusRamValue+=t.benchmark.bench.ram<32?32:Math.round(t.benchmark.bench.ram),this.nimbusSSDStorageValue+=t.benchmark.bench.ssd,this.nimbusHDDStorageValue+=t.benchmark.bench.hdd):"NIMBUS"===t.tier?(this.nimbusCpuValue+=8,this.nimbusRamValue+=32,this.nimbusSSDStorageValue+=440):"STRATUS"===t.tier&&t.benchmark&&t.benchmark.bench?(this.stratusCpuValue+=0===t.benchmark.bench.cores?16:t.benchmark.bench.cores,this.stratusRamValue+=t.benchmark.bench.ram<64?64:Math.round(t.benchmark.bench.ram),this.stratusSSDStorageValue+=t.benchmark.bench.ssd,this.stratusHDDStorageValue+=t.benchmark.bench.hdd):"STRATUS"===t.tier&&(this.stratusCpuValue+=16,this.stratusRamValue+=64,this.stratusSSDStorageValue+=880)})),this.totalCores=this.cumulusCpuValue+this.nimbusCpuValue+this.stratusCpuValue,this.cpuData.series=[{name:"CPU Cores",data:[this.cumulusCpuValue,this.nimbusCpuValue,this.stratusCpuValue]}],this.totalRAM=this.cumulusRamValue+this.nimbusRamValue+this.stratusRamValue,this.ramData.series=[{name:"RAM",data:[this.cumulusRamValue,this.nimbusRamValue,this.stratusRamValue]}],this.totalSSD=this.cumulusSSDStorageValue+this.nimbusSSDStorageValue+this.stratusSSDStorageValue,this.ssdData.series=[{name:"SSD",data:[this.cumulusSSDStorageValue,this.nimbusSSDStorageValue,this.stratusSSDStorageValue]}],this.totalHDD=this.cumulusHDDStorageValue+this.nimbusHDDStorageValue+this.stratusHDDStorageValue,this.hddData.series=[{name:"HDD",data:[this.cumulusHDDStorageValue,this.nimbusHDDStorageValue,this.stratusHDDStorageValue]}],this.fluxListLoading=!1},async getHistoryStats(){try{this.historyStatsLoading=!0;const t=await p.get("https://stats.runonflux.io/fluxhistorystats");t.data.data?(this.fluxHistoryStats=t.data.data,this.generateCPUHistory(),this.generateRAMHistory(),this.generateSSDHistory(),this.historyStatsLoading=!1):this.$toast({component:b.Z,props:{title:"Unable to fetch history stats",icon:"InfoIcon",variant:"danger"}})}catch(t){console.log(t)}},generateCPUHistory(){this.cpuHistoryData.series=this.generateHistory(2,4,4,8,8,16)},generateRAMHistory(){this.ramHistoryData.series=this.generateHistory(4,8,8,32,32,64)},generateSSDHistory(){this.ssdHistoryData.series=this.generateHistory(40,220,150,440,600,880)},generateHistory(t,s,a,e,r,i){const o=[],n=[],u=[],l=Object.keys(this.fluxHistoryStats);return l.forEach((l=>{l<1647197215e3?o.push([Number(l),this.fluxHistoryStats[l].cumulus*t]):o.push([Number(l),this.fluxHistoryStats[l].cumulus*s]),l<1647831196e3?n.push([Number(l),this.fluxHistoryStats[l].nimbus*a]):n.push([Number(l),this.fluxHistoryStats[l].nimbus*e]),l<2e12?u.push([Number(l),this.fluxHistoryStats[l].stratus*r]):u.push([Number(l),this.fluxHistoryStats[l].stratus*i])})),[{name:"Cumulus",data:o},{name:"Nimbus",data:n},{name:"Stratus",data:u}]},beautifyValue(t,s=2){const a=t.toFixed(s);return a.replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1,")}}},y=f;var S=a(1001),g=(0,S.Z)(y,e,r,!1,null,null,null);const x=g.exports},72918:(t,s,a)=>{"use strict";a.d(s,{Z:()=>r});const e={cumulus:"#2B61D1",nimbus:"#ff9f43",stratus:"#ea5455"},r=e},67166:function(t,s,a){(function(s,e){t.exports=e(a(47514))})(0,(function(t){"use strict";function s(t){return s="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},s(t)}function a(t,s,a){return s in t?Object.defineProperty(t,s,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[s]=a,t}t=t&&t.hasOwnProperty("default")?t["default"]:t;var e={props:{options:{type:Object},type:{type:String},series:{type:Array,required:!0,default:function(){return[]}},width:{default:"100%"},height:{default:"auto"}},data:function(){return{chart:null}},beforeMount:function(){window.ApexCharts=t},mounted:function(){this.init()},created:function(){var t=this;this.$watch("options",(function(s){!t.chart&&s?t.init():t.chart.updateOptions(t.options)})),this.$watch("series",(function(s){!t.chart&&s?t.init():t.chart.updateSeries(t.series)}));var s=["type","width","height"];s.forEach((function(s){t.$watch(s,(function(){t.refresh()}))}))},beforeDestroy:function(){this.chart&&this.destroy()},render:function(t){return t("div")},methods:{init:function(){var s=this,a={chart:{type:this.type||this.options.chart.type||"line",height:this.height,width:this.width,events:{}},series:this.series};Object.keys(this.$listeners).forEach((function(t){a.chart.events[t]=s.$listeners[t]}));var e=this.extend(this.options,a);return this.chart=new t(this.$el,e),this.chart.render()},isObject:function(t){return t&&"object"===s(t)&&!Array.isArray(t)&&null!=t},extend:function(t,s){var e=this;"function"!==typeof Object.assign&&function(){Object.assign=function(t){if(void 0===t||null===t)throw new TypeError("Cannot convert undefined or null to object");for(var s=Object(t),a=1;a{r.d(e,{Z:()=>u});var a=function(){var t=this,e=t._self._c;return e("div",{staticClass:"toastification"},[e("div",{staticClass:"d-flex align-items-start"},[e("b-avatar",{staticClass:"mr-75 flex-shrink-0",attrs:{variant:t.variant,size:"1.8rem"}},[e("feather-icon",{attrs:{icon:t.icon,size:"15"}})],1),e("div",{staticClass:"d-flex flex-grow-1"},[e("div",[t.title?e("h5",{staticClass:"mb-0 font-weight-bolder toastification-title",class:`text-${t.variant}`,domProps:{textContent:t._s(t.title)}}):t._e(),t.text?e("small",{staticClass:"d-inline-block text-body",domProps:{textContent:t._s(t.text)}}):t._e()]),e("span",{staticClass:"cursor-pointer toastification-close-icon ml-auto",on:{click:function(e){return t.$emit("close-toast")}}},[t.hideClose?t._e():e("feather-icon",{staticClass:"text-body",attrs:{icon:"XIcon"}})],1)])],1)])},n=[],o=r(47389);const i={components:{BAvatar:o.SH},props:{variant:{type:String,default:"primary"},icon:{type:String,default:null},title:{type:String,default:null},text:{type:String,default:null},hideClose:{type:Boolean,default:!1}}},s=i;var l=r(1001),c=(0,l.Z)(s,a,n,!1,null,"22d964ca",null);const u=c.exports},51748:(t,e,r)=>{r.d(e,{Z:()=>u});var a=function(){var t=this,e=t._self._c;return e("dl",{staticClass:"row",class:t.classes},[e("dt",{staticClass:"col-sm-3"},[t._v(" "+t._s(t.title)+" ")]),t.href.length>0?e("dd",{staticClass:"col-sm-9 mb-0",class:`text-${t.variant}`},[t.href.length>0?e("b-link",{attrs:{href:t.href,target:"_blank",rel:"noopener noreferrer"}},[t._v(" "+t._s(t.data.length>0?t.data:t.number!==Number.MAX_VALUE?t.number:"")+" ")]):t._e()],1):t.click?e("dd",{staticClass:"col-sm-9 mb-0",class:`text-${t.variant}`,on:{click:function(e){return t.$emit("click")}}},[e("b-link",[t._v(" "+t._s(t.data.length>0?t.data:t.number!==Number.MAX_VALUE?t.number:"")+" ")])],1):e("dd",{staticClass:"col-sm-9 mb-0",class:`text-${t.variant}`},[t._v(" "+t._s(t.data.length>0?t.data:t.number!==Number.MAX_VALUE?t.number:"")+" ")])])},n=[],o=r(67347);const i={components:{BLink:o.we},props:{title:{type:String,required:!0},classes:{type:String,required:!1,default:"mb-1"},data:{type:String,required:!1,default:""},number:{type:Number,required:!1,default:Number.MAX_VALUE},variant:{type:String,required:!1,default:"secondary"},href:{type:String,required:!1,default:""},click:{type:Boolean,required:!1,default:!1}}},s=i;var l=r(1001),c=(0,l.Z)(s,a,n,!1,null,null,null);const u=c.exports},67365:(t,e,r)=>{r.r(e),r.d(e,{default:()=>Z});var a=function(){var t=this,e=t._self._c;return e("b-overlay",{attrs:{show:t.fluxListLoading,variant:"transparent",blur:"5px"}},[e("b-card",[e("b-row",[e("b-col",{staticClass:"my-1",attrs:{md:"4",sm:"4"}},[e("b-form-group",{staticClass:"mb-0"},[e("label",{staticClass:"d-inline-block text-left mr-50"},[t._v("Per page")]),e("b-form-select",{staticClass:"w-50",attrs:{id:"perPageSelect",size:"sm",options:t.pageOptions},model:{value:t.perPage,callback:function(e){t.perPage=e},expression:"perPage"}})],1)],1),e("b-col",{staticClass:"my-1",attrs:{md:"8"}},[e("b-form-group",{staticClass:"mb-0",attrs:{label:"Filter","label-cols-sm":"1","label-align-sm":"right","label-for":"filterInput"}},[e("b-input-group",{attrs:{size:"sm"}},[e("b-form-input",{attrs:{id:"filterInput",type:"search",placeholder:"Type to Search"},model:{value:t.filter,callback:function(e){t.filter=e},expression:"filter"}}),e("b-input-group-append",[e("b-button",{attrs:{disabled:!t.filter},on:{click:function(e){t.filter=""}}},[t._v(" Clear ")])],1)],1)],1)],1),e("b-col",{attrs:{cols:"12"}},[e("b-table",{staticClass:"fluxnode-table",attrs:{striped:"",hover:"",responsive:"","per-page":t.perPage,"current-page":t.currentPage,items:t.items,fields:t.fields,"sort-by":t.sortBy,"sort-desc":t.sortDesc,"sort-direction":t.sortDirection,filter:t.filter,"filter-included-fields":t.filterOn},on:{"update:sortBy":function(e){t.sortBy=e},"update:sort-by":function(e){t.sortBy=e},"update:sortDesc":function(e){t.sortDesc=e},"update:sort-desc":function(e){t.sortDesc=e},filtered:t.onFiltered},scopedSlots:t._u([{key:"cell(show_details)",fn:function(r){return[e("a",{on:{click:r.toggleDetails}},[r.detailsShowing?t._e():e("v-icon",{attrs:{name:"chevron-down"}}),r.detailsShowing?e("v-icon",{attrs:{name:"chevron-up"}}):t._e()],1)]}},{key:"cell(payment_address)",fn:function(e){return[t._v(" "+t._s(e.item.payment_address||"Node Expired")+" ")]}},{key:"row-details",fn:function(r){return[e("b-card",{staticClass:"mx-2"},[r.item.collateral?e("list-entry",{attrs:{title:"Collateral",data:r.item.collateral}}):t._e(),r.item.lastpaid?e("list-entry",{attrs:{title:"Last Paid",data:new Date(1e3*r.item.lastpaid).toLocaleString("en-GB",t.timeoptions.shortDate)}}):t._e(),r.item.activesince?e("list-entry",{attrs:{title:"Active Since",data:new Date(1e3*r.item.activesince).toLocaleString("en-GB",t.timeoptions.shortDate)}}):t._e(),r.item.last_paid_height?e("list-entry",{attrs:{title:"Last Paid Height",data:r.item.last_paid_height.toFixed(0)}}):t._e(),r.item.confirmed_height?e("list-entry",{attrs:{title:"Confirmed Height",data:r.item.confirmed_height.toFixed(0)}}):t._e(),r.item.last_confirmed_height?e("list-entry",{attrs:{title:"Last Confirmed Height",data:r.item.last_confirmed_height.toFixed(0)}}):t._e(),r.item.rank>=0?e("list-entry",{attrs:{title:"Rank",data:r.item.rank.toFixed(0)}}):t._e()],1)]}}])})],1),e("b-col",{attrs:{cols:"12"}},[e("b-pagination",{staticClass:"my-0",attrs:{"total-rows":t.totalRows,"per-page":t.perPage,align:"center",size:"sm"},model:{value:t.currentPage,callback:function(e){t.currentPage=e},expression:"currentPage"}}),e("span",{staticClass:"table-total"},[t._v("Total: "+t._s(t.totalRows))])],1)],1)],1)],1)},n=[],o=(r(70560),r(86855)),i=r(16521),s=r(26253),l=r(50725),c=r(10962),u=r(46709),d=r(8051),f=r(4060),p=r(22183),m=r(22418),g=r(15193),h=r(66126),b=r(34547),v=r(51748),y=r(27616);const x=r(63005),_={components:{BCard:o._,BTable:i.h,BRow:s.T,BCol:l.l,BPagination:c.c,BFormGroup:u.x,BFormSelect:d.K,BInputGroup:f.w,BFormInput:p.e,BInputGroupAppend:m.B,BButton:g.T,BOverlay:h.X,ListEntry:v.Z,ToastificationContent:b.Z},data(){return{timeoptions:x,callResponse:{status:"",data:""},perPage:10,pageOptions:[10,25,50,100],sortBy:"",sortDesc:!1,sortDirection:"asc",items:[],filter:"",filterOn:[],fields:[{key:"show_details",label:""},{key:"payment_address",label:"Address",sortable:!0},{key:"ip",label:"IP",sortable:!0},{key:"tier",label:"Tier",sortable:!0},{key:"added_height",label:"Added Height",sortable:!0}],totalRows:1,currentPage:1,fluxListLoading:!0}},computed:{sortOptions(){return this.fields.filter((t=>t.sortable)).map((t=>({text:t.label,value:t.key})))}},mounted(){this.daemonListFluxNodes()},methods:{async daemonListFluxNodes(){const t=await y.Z.listFluxNodes();if("error"===t.data.status)this.$toast({component:b.Z,props:{title:t.data.data.message||t.data.data,icon:"InfoIcon",variant:"danger"}});else{const e=this;t.data.data.forEach((t=>{e.items.push(t)})),this.totalRows=this.items.length,this.currentPage=1}this.fluxListLoading=!1},onFiltered(t){this.totalRows=t.length,this.currentPage=1}}},w=_;var k=r(1001),C=(0,k.Z)(w,a,n,!1,null,null,null);const Z=C.exports},63005:(t,e,r)=>{r.r(e),r.d(e,{default:()=>o});const a={year:"numeric",month:"short",day:"numeric",hour:"2-digit",minute:"2-digit"},n={year:"numeric",month:"short",day:"numeric"},o={shortDate:a,date:n}},27616:(t,e,r)=>{r.d(e,{Z:()=>n});var a=r(80914);const n={help(){return(0,a.Z)().get("/daemon/help")},helpSpecific(t){return(0,a.Z)().get(`/daemon/help/${t}`)},getInfo(){return(0,a.Z)().get("/daemon/getinfo")},getFluxNodeStatus(){return(0,a.Z)().get("/daemon/getzelnodestatus")},getRawTransaction(t,e){return(0,a.Z)().get(`/daemon/getrawtransaction/${t}/${e}`)},listFluxNodes(){return(0,a.Z)().get("/daemon/listzelnodes")},viewDeterministicFluxNodeList(){return(0,a.Z)().get("/daemon/viewdeterministiczelnodelist")},getFluxNodeCount(){return(0,a.Z)().get("/daemon/getzelnodecount")},getStartList(){return(0,a.Z)().get("/daemon/getstartlist")},getDOSList(){return(0,a.Z)().get("/daemon/getdoslist")},fluxCurrentWinner(){return(0,a.Z)().get("/daemon/fluxcurrentwinner")},getBenchmarks(){return(0,a.Z)().get("/daemon/getbenchmarks")},getBenchStatus(){return(0,a.Z)().get("/daemon/getbenchstatus")},startBenchmark(t){return(0,a.Z)().get("/daemon/startbenchmark",{headers:{zelidauth:t}})},stopBenchmark(t){return(0,a.Z)().get("/daemon/stopbenchmark",{headers:{zelidauth:t}})},getBlockCount(){return(0,a.Z)().get("/daemon/getBlockCount")},getBlockchainInfo(){return(0,a.Z)().get("/daemon/getblockchaininfo")},getMiningInfo(){return(0,a.Z)().get("/daemon/getmininginfo")},getNetworkInfo(){return(0,a.Z)().get("/daemon/getnetworkinfo")},validateAddress(t,e){return(0,a.Z)().get(`/daemon/validateaddress/${e}`,{headers:{zelidauth:t}})},getWalletInfo(t){return(0,a.Z)().get("/daemon/getwalletinfo",{headers:{zelidauth:t}})},listFluxNodeConf(t){return(0,a.Z)().get("/daemon/listzelnodeconf",{headers:{zelidauth:t}})},start(t){return(0,a.Z)().get("/daemon/start",{headers:{zelidauth:t}})},restart(t){return(0,a.Z)().get("/daemon/restart",{headers:{zelidauth:t}})},stopDaemon(t){return(0,a.Z)().get("/daemon/stop",{headers:{zelidauth:t}})},rescanDaemon(t,e){return(0,a.Z)().get(`/daemon/rescanblockchain/${e}`,{headers:{zelidauth:t}})},getBlock(t,e){return(0,a.Z)().get(`/daemon/getblock/${t}/${e}`)},tailDaemonDebug(t){return(0,a.Z)().get("/flux/taildaemondebug",{headers:{zelidauth:t}})},justAPI(){return(0,a.Z)()},cancelToken(){return a.S}}},84328:(t,e,r)=>{var a=r(65290),n=r(27578),o=r(6310),i=function(t){return function(e,r,i){var s,l=a(e),c=o(l),u=n(i,c);if(t&&r!==r){while(c>u)if(s=l[u++],s!==s)return!0}else for(;c>u;u++)if((t||u in l)&&l[u]===r)return t||u||0;return!t&&-1}};t.exports={includes:i(!0),indexOf:i(!1)}},5649:(t,e,r)=>{var a=r(67697),n=r(92297),o=TypeError,i=Object.getOwnPropertyDescriptor,s=a&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(t){return t instanceof TypeError}}();t.exports=s?function(t,e){if(n(t)&&!i(t,"length").writable)throw new o("Cannot set read only .length");return t.length=e}:function(t,e){return t.length=e}},8758:(t,e,r)=>{var a=r(36812),n=r(19152),o=r(82474),i=r(72560);t.exports=function(t,e,r){for(var s=n(e),l=i.f,c=o.f,u=0;u{var e=TypeError,r=9007199254740991;t.exports=function(t){if(t>r)throw e("Maximum allowed index exceeded");return t}},72739:t=>{t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},79989:(t,e,r)=>{var a=r(19037),n=r(82474).f,o=r(75773),i=r(11880),s=r(95014),l=r(8758),c=r(35266);t.exports=function(t,e){var r,u,d,f,p,m,g=t.target,h=t.global,b=t.stat;if(u=h?a:b?a[g]||s(g,{}):(a[g]||{}).prototype,u)for(d in e){if(p=e[d],t.dontCallGetSet?(m=n(u,d),f=m&&m.value):f=u[d],r=c(h?d:g+(b?".":"#")+d,t.forced),!r&&void 0!==f){if(typeof p==typeof f)continue;l(p,f)}(t.sham||f&&f.sham)&&o(p,"sham",!0),i(u,d,p,t)}}},94413:(t,e,r)=>{var a=r(68844),n=r(3689),o=r(6648),i=Object,s=a("".split);t.exports=n((function(){return!i("z").propertyIsEnumerable(0)}))?function(t){return"String"===o(t)?s(t,""):i(t)}:i},92297:(t,e,r)=>{var a=r(6648);t.exports=Array.isArray||function(t){return"Array"===a(t)}},35266:(t,e,r)=>{var a=r(3689),n=r(69985),o=/#|\.prototype\./,i=function(t,e){var r=l[s(t)];return r===u||r!==c&&(n(e)?a(e):!!e)},s=i.normalize=function(t){return String(t).replace(o,".").toLowerCase()},l=i.data={},c=i.NATIVE="N",u=i.POLYFILL="P";t.exports=i},6310:(t,e,r)=>{var a=r(43126);t.exports=function(t){return a(t.length)}},58828:t=>{var e=Math.ceil,r=Math.floor;t.exports=Math.trunc||function(t){var a=+t;return(a>0?r:e)(a)}},82474:(t,e,r)=>{var a=r(67697),n=r(22615),o=r(49556),i=r(75684),s=r(65290),l=r(18360),c=r(36812),u=r(68506),d=Object.getOwnPropertyDescriptor;e.f=a?d:function(t,e){if(t=s(t),e=l(e),u)try{return d(t,e)}catch(r){}if(c(t,e))return i(!n(o.f,t,e),t[e])}},72741:(t,e,r)=>{var a=r(54948),n=r(72739),o=n.concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return a(t,o)}},7518:(t,e)=>{e.f=Object.getOwnPropertySymbols},54948:(t,e,r)=>{var a=r(68844),n=r(36812),o=r(65290),i=r(84328).indexOf,s=r(57248),l=a([].push);t.exports=function(t,e){var r,a=o(t),c=0,u=[];for(r in a)!n(s,r)&&n(a,r)&&l(u,r);while(e.length>c)n(a,r=e[c++])&&(~i(u,r)||l(u,r));return u}},49556:(t,e)=>{var r={}.propertyIsEnumerable,a=Object.getOwnPropertyDescriptor,n=a&&!r.call({1:2},1);e.f=n?function(t){var e=a(this,t);return!!e&&e.enumerable}:r},19152:(t,e,r)=>{var a=r(76058),n=r(68844),o=r(72741),i=r(7518),s=r(85027),l=n([].concat);t.exports=a("Reflect","ownKeys")||function(t){var e=o.f(s(t)),r=i.f;return r?l(e,r(t)):e}},27578:(t,e,r)=>{var a=r(68700),n=Math.max,o=Math.min;t.exports=function(t,e){var r=a(t);return r<0?n(r+e,0):o(r,e)}},65290:(t,e,r)=>{var a=r(94413),n=r(74684);t.exports=function(t){return a(n(t))}},68700:(t,e,r)=>{var a=r(58828);t.exports=function(t){var e=+t;return e!==e||0===e?0:a(e)}},43126:(t,e,r)=>{var a=r(68700),n=Math.min;t.exports=function(t){return t>0?n(a(t),9007199254740991):0}},70560:(t,e,r)=>{var a=r(79989),n=r(90690),o=r(6310),i=r(5649),s=r(55565),l=r(3689),c=l((function(){return 4294967297!==[].push.call({length:4294967296},1)})),u=function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(t){return t instanceof TypeError}},d=c||!u();a({target:"Array",proto:!0,arity:1,forced:d},{push:function(t){var e=n(this),r=o(e),a=arguments.length;s(r+a);for(var l=0;l{a.d(e,{Z:()=>c});var r=function(){var t=this,e=t._self._c;return e("div",{staticClass:"toastification"},[e("div",{staticClass:"d-flex align-items-start"},[e("b-avatar",{staticClass:"mr-75 flex-shrink-0",attrs:{variant:t.variant,size:"1.8rem"}},[e("feather-icon",{attrs:{icon:t.icon,size:"15"}})],1),e("div",{staticClass:"d-flex flex-grow-1"},[e("div",[t.title?e("h5",{staticClass:"mb-0 font-weight-bolder toastification-title",class:`text-${t.variant}`,domProps:{textContent:t._s(t.title)}}):t._e(),t.text?e("small",{staticClass:"d-inline-block text-body",domProps:{textContent:t._s(t.text)}}):t._e()]),e("span",{staticClass:"cursor-pointer toastification-close-icon ml-auto",on:{click:function(e){return t.$emit("close-toast")}}},[t.hideClose?t._e():e("feather-icon",{staticClass:"text-body",attrs:{icon:"XIcon"}})],1)])],1)])},s=[],n=a(47389);const i={components:{BAvatar:n.SH},props:{variant:{type:String,default:"primary"},icon:{type:String,default:null},title:{type:String,default:null},text:{type:String,default:null},hideClose:{type:Boolean,default:!1}}},l=i;var o=a(1001),d=(0,o.Z)(l,r,s,!1,null,"22d964ca",null);const c=d.exports},51748:(t,e,a)=>{a.d(e,{Z:()=>c});var r=function(){var t=this,e=t._self._c;return e("dl",{staticClass:"row",class:t.classes},[e("dt",{staticClass:"col-sm-3"},[t._v(" "+t._s(t.title)+" ")]),t.href.length>0?e("dd",{staticClass:"col-sm-9 mb-0",class:`text-${t.variant}`},[t.href.length>0?e("b-link",{attrs:{href:t.href,target:"_blank",rel:"noopener noreferrer"}},[t._v(" "+t._s(t.data.length>0?t.data:t.number!==Number.MAX_VALUE?t.number:"")+" ")]):t._e()],1):t.click?e("dd",{staticClass:"col-sm-9 mb-0",class:`text-${t.variant}`,on:{click:function(e){return t.$emit("click")}}},[e("b-link",[t._v(" "+t._s(t.data.length>0?t.data:t.number!==Number.MAX_VALUE?t.number:"")+" ")])],1):e("dd",{staticClass:"col-sm-9 mb-0",class:`text-${t.variant}`},[t._v(" "+t._s(t.data.length>0?t.data:t.number!==Number.MAX_VALUE?t.number:"")+" ")])])},s=[],n=a(67347);const i={components:{BLink:n.we},props:{title:{type:String,required:!0},classes:{type:String,required:!1,default:"mb-1"},data:{type:String,required:!1,default:""},number:{type:Number,required:!1,default:Number.MAX_VALUE},variant:{type:String,required:!1,default:"secondary"},href:{type:String,required:!1,default:""},click:{type:Boolean,required:!1,default:!1}}},l=i;var o=a(1001),d=(0,o.Z)(l,r,s,!1,null,null,null);const c=d.exports},67365:(t,e,a)=>{a.r(e),a.d(e,{default:()=>w});var r=function(){var t=this,e=t._self._c;return e("b-overlay",{attrs:{show:t.fluxListLoading,variant:"transparent",blur:"5px"}},[e("b-card",[e("b-row",[e("b-col",{staticClass:"my-1",attrs:{md:"4",sm:"4"}},[e("b-form-group",{staticClass:"mb-0"},[e("label",{staticClass:"d-inline-block text-left mr-50"},[t._v("Per page")]),e("b-form-select",{staticClass:"w-50",attrs:{id:"perPageSelect",size:"sm",options:t.pageOptions},model:{value:t.perPage,callback:function(e){t.perPage=e},expression:"perPage"}})],1)],1),e("b-col",{staticClass:"my-1",attrs:{md:"8"}},[e("b-form-group",{staticClass:"mb-0",attrs:{label:"Filter","label-cols-sm":"1","label-align-sm":"right","label-for":"filterInput"}},[e("b-input-group",{attrs:{size:"sm"}},[e("b-form-input",{attrs:{id:"filterInput",type:"search",placeholder:"Type to Search"},model:{value:t.filter,callback:function(e){t.filter=e},expression:"filter"}}),e("b-input-group-append",[e("b-button",{attrs:{disabled:!t.filter},on:{click:function(e){t.filter=""}}},[t._v(" Clear ")])],1)],1)],1)],1),e("b-col",{attrs:{cols:"12"}},[e("b-table",{staticClass:"fluxnode-table",attrs:{striped:"",hover:"",responsive:"","per-page":t.perPage,"current-page":t.currentPage,items:t.items,fields:t.fields,"sort-by":t.sortBy,"sort-desc":t.sortDesc,"sort-direction":t.sortDirection,filter:t.filter,"filter-included-fields":t.filterOn},on:{"update:sortBy":function(e){t.sortBy=e},"update:sort-by":function(e){t.sortBy=e},"update:sortDesc":function(e){t.sortDesc=e},"update:sort-desc":function(e){t.sortDesc=e},filtered:t.onFiltered},scopedSlots:t._u([{key:"cell(show_details)",fn:function(a){return[e("a",{on:{click:a.toggleDetails}},[a.detailsShowing?t._e():e("v-icon",{attrs:{name:"chevron-down"}}),a.detailsShowing?e("v-icon",{attrs:{name:"chevron-up"}}):t._e()],1)]}},{key:"cell(payment_address)",fn:function(e){return[t._v(" "+t._s(e.item.payment_address||"Node Expired")+" ")]}},{key:"row-details",fn:function(a){return[e("b-card",{staticClass:"mx-2"},[a.item.collateral?e("list-entry",{attrs:{title:"Collateral",data:a.item.collateral}}):t._e(),a.item.lastpaid?e("list-entry",{attrs:{title:"Last Paid",data:new Date(1e3*a.item.lastpaid).toLocaleString("en-GB",t.timeoptions.shortDate)}}):t._e(),a.item.activesince?e("list-entry",{attrs:{title:"Active Since",data:new Date(1e3*a.item.activesince).toLocaleString("en-GB",t.timeoptions.shortDate)}}):t._e(),a.item.last_paid_height?e("list-entry",{attrs:{title:"Last Paid Height",data:a.item.last_paid_height.toFixed(0)}}):t._e(),a.item.confirmed_height?e("list-entry",{attrs:{title:"Confirmed Height",data:a.item.confirmed_height.toFixed(0)}}):t._e(),a.item.last_confirmed_height?e("list-entry",{attrs:{title:"Last Confirmed Height",data:a.item.last_confirmed_height.toFixed(0)}}):t._e(),a.item.rank>=0?e("list-entry",{attrs:{title:"Rank",data:a.item.rank.toFixed(0)}}):t._e()],1)]}}])})],1),e("b-col",{attrs:{cols:"12"}},[e("b-pagination",{staticClass:"my-0",attrs:{"total-rows":t.totalRows,"per-page":t.perPage,align:"center",size:"sm"},model:{value:t.currentPage,callback:function(e){t.currentPage=e},expression:"currentPage"}}),e("span",{staticClass:"table-total"},[t._v("Total: "+t._s(t.totalRows))])],1)],1)],1)],1)},s=[],n=(a(70560),a(86855)),i=a(16521),l=a(26253),o=a(50725),d=a(10962),c=a(46709),u=a(8051),m=a(4060),g=a(22183),p=a(22418),h=a(15193),f=a(66126),b=a(34547),_=a(51748),y=a(27616);const v=a(63005),k={components:{BCard:n._,BTable:i.h,BRow:l.T,BCol:o.l,BPagination:d.c,BFormGroup:c.x,BFormSelect:u.K,BInputGroup:m.w,BFormInput:g.e,BInputGroupAppend:p.B,BButton:h.T,BOverlay:f.X,ListEntry:_.Z,ToastificationContent:b.Z},data(){return{timeoptions:v,callResponse:{status:"",data:""},perPage:10,pageOptions:[10,25,50,100],sortBy:"",sortDesc:!1,sortDirection:"asc",items:[],filter:"",filterOn:[],fields:[{key:"show_details",label:""},{key:"payment_address",label:"Address",sortable:!0},{key:"ip",label:"IP",sortable:!0},{key:"tier",label:"Tier",sortable:!0},{key:"added_height",label:"Added Height",sortable:!0}],totalRows:1,currentPage:1,fluxListLoading:!0}},computed:{sortOptions(){return this.fields.filter((t=>t.sortable)).map((t=>({text:t.label,value:t.key})))}},mounted(){this.daemonListFluxNodes()},methods:{async daemonListFluxNodes(){const t=await y.Z.listFluxNodes();if("error"===t.data.status)this.$toast({component:b.Z,props:{title:t.data.data.message||t.data.data,icon:"InfoIcon",variant:"danger"}});else{const e=this;t.data.data.forEach((t=>{e.items.push(t)})),this.totalRows=this.items.length,this.currentPage=1}this.fluxListLoading=!1},onFiltered(t){this.totalRows=t.length,this.currentPage=1}}},x=k;var C=a(1001),Z=(0,C.Z)(x,r,s,!1,null,null,null);const w=Z.exports},63005:(t,e,a)=>{a.r(e),a.d(e,{default:()=>n});const r={year:"numeric",month:"short",day:"numeric",hour:"2-digit",minute:"2-digit"},s={year:"numeric",month:"short",day:"numeric"},n={shortDate:r,date:s}},27616:(t,e,a)=>{a.d(e,{Z:()=>s});var r=a(80914);const s={help(){return(0,r.Z)().get("/daemon/help")},helpSpecific(t){return(0,r.Z)().get(`/daemon/help/${t}`)},getInfo(){return(0,r.Z)().get("/daemon/getinfo")},getFluxNodeStatus(){return(0,r.Z)().get("/daemon/getzelnodestatus")},getRawTransaction(t,e){return(0,r.Z)().get(`/daemon/getrawtransaction/${t}/${e}`)},listFluxNodes(){return(0,r.Z)().get("/daemon/listzelnodes")},viewDeterministicFluxNodeList(){return(0,r.Z)().get("/daemon/viewdeterministiczelnodelist")},getFluxNodeCount(){return(0,r.Z)().get("/daemon/getzelnodecount")},getStartList(){return(0,r.Z)().get("/daemon/getstartlist")},getDOSList(){return(0,r.Z)().get("/daemon/getdoslist")},fluxCurrentWinner(){return(0,r.Z)().get("/daemon/fluxcurrentwinner")},getBenchmarks(){return(0,r.Z)().get("/daemon/getbenchmarks")},getBenchStatus(){return(0,r.Z)().get("/daemon/getbenchstatus")},startBenchmark(t){return(0,r.Z)().get("/daemon/startbenchmark",{headers:{zelidauth:t}})},stopBenchmark(t){return(0,r.Z)().get("/daemon/stopbenchmark",{headers:{zelidauth:t}})},getBlockCount(){return(0,r.Z)().get("/daemon/getBlockCount")},getBlockchainInfo(){return(0,r.Z)().get("/daemon/getblockchaininfo")},getMiningInfo(){return(0,r.Z)().get("/daemon/getmininginfo")},getNetworkInfo(){return(0,r.Z)().get("/daemon/getnetworkinfo")},validateAddress(t,e){return(0,r.Z)().get(`/daemon/validateaddress/${e}`,{headers:{zelidauth:t}})},getWalletInfo(t){return(0,r.Z)().get("/daemon/getwalletinfo",{headers:{zelidauth:t}})},listFluxNodeConf(t){return(0,r.Z)().get("/daemon/listzelnodeconf",{headers:{zelidauth:t}})},start(t){return(0,r.Z)().get("/daemon/start",{headers:{zelidauth:t}})},restart(t){return(0,r.Z)().get("/daemon/restart",{headers:{zelidauth:t}})},stopDaemon(t){return(0,r.Z)().get("/daemon/stop",{headers:{zelidauth:t}})},rescanDaemon(t,e){return(0,r.Z)().get(`/daemon/rescanblockchain/${e}`,{headers:{zelidauth:t}})},getBlock(t,e){return(0,r.Z)().get(`/daemon/getblock/${t}/${e}`)},tailDaemonDebug(t){return(0,r.Z)().get("/flux/taildaemondebug",{headers:{zelidauth:t}})},justAPI(){return(0,r.Z)()},cancelToken(){return r.S}}}}]); \ No newline at end of file diff --git a/HomeUI/dist/js/7415.js b/HomeUI/dist/js/7415.js index 4abb7425d..e4d25b7a3 100644 --- a/HomeUI/dist/js/7415.js +++ b/HomeUI/dist/js/7415.js @@ -1 +1 @@ -"use strict";(globalThis["webpackChunkflux"]=globalThis["webpackChunkflux"]||[]).push([[7415],{10044:(e,t,a)=>{a.r(t),a.d(t,{default:()=>ua});var n={};a.r(n),a.d(n,{_:()=>Ee,t:()=>He});var r=function(){var e=this,t=e._self._c;return t("layout-vertical",{scopedSlots:e._u([{key:"navbar",fn:function({toggleVerticalMenuActive:e}){return[t("navbar",{attrs:{"toggle-vertical-menu-active":e}})]}}])},[t("router-view")],1)},o=[],i=function(){var e=this,t=e._self._c;return t("div",{staticClass:"vertical-layout h-100",class:[e.layoutClasses],attrs:{"data-col":e.isNavMenuHidden?"1-column":null}},[t("b-navbar",{staticClass:"header-navbar navbar navbar-shadow align-items-center",class:[e.navbarTypeClass],attrs:{toggleable:!1,variant:e.navbarBackgroundColor}},[e._t("navbar",(function(){return[t("app-navbar-vertical-layout",{attrs:{"toggle-vertical-menu-active":e.toggleVerticalMenuActive}})]}),{toggleVerticalMenuActive:e.toggleVerticalMenuActive,navbarBackgroundColor:e.navbarBackgroundColor,navbarTypeClass:[...e.navbarTypeClass,"header-navbar navbar navbar-shadow align-items-center"]})],2),e.isNavMenuHidden?e._e():t("vertical-nav-menu",{attrs:{"is-vertical-menu-active":e.isVerticalMenuActive,"toggle-vertical-menu-active":e.toggleVerticalMenuActive},scopedSlots:e._u([{key:"header",fn:function(t){return[e._t("vertical-menu-header",null,null,t)]}}],null,!0)}),t("div",{staticClass:"sidenav-overlay",class:e.overlayClasses,on:{click:function(t){e.isVerticalMenuActive=!1}}}),t("transition",{attrs:{name:e.routerTransition,mode:"out-in"}},[t(e.layoutContentRenderer,{key:"layout-content-renderer-left"===e.layoutContentRenderer?e.$route.meta.navActiveLink||e.$route.name:null,tag:"component",scopedSlots:e._u([e._l(e.$scopedSlots,(function(t,a){return{key:a,fn:function(t){return[e._t(a,null,null,t)]}}}))],null,!0)})],1),t("footer",{staticClass:"footer footer-light",class:[e.footerTypeClass]},[e._t("footer",(function(){return[t("app-footer")]}))],2),e._t("customizer")],2)},l=[],s=a(20144),c=function(){var e=this,t=e._self._c;return t("p",{staticClass:"clearfix mb-0"},[t("span",{staticClass:"float-md-left d-block d-md-inline-block mt-25"},[t("b-link",{staticClass:"ml-25",attrs:{href:"https://github.com/runonflux/flux",target:"_blank",rel:"noopener noreferrer"}},[e._v("Flux, Your Gateway to a Decentralized World")])],1),t("span",{staticClass:"float-md-right d-none d-md-block"},[e._v("FluxOS "+e._s(`v${e.fluxVersion}`)+" ")])])},u=[],d=a(20629),p=a(67347),m=a(87066),v=a(34547),g=a(39055);const h={components:{BLink:p.we,ToastificationContent:v.Z},computed:{...(0,d.rn)("flux",["fluxVersion"])},mounted(){const e=this;g.Z.getFluxVersion().then((t=>{const a=t.data.data;this.$store.commit("flux/setFluxVersion",a),e.getLatestFluxVersion()})).catch((e=>{console.log(e),console.log(e.code),this.showToast("danger",e.toString())}))},methods:{getLatestFluxVersion(){const e=this;m["default"].get("https://raw.githubusercontent.com/runonflux/flux/master/package.json").then((t=>{t.data.version!==e.fluxVersion?this.showToast("danger","Flux needs to be updated!"):this.showToast("success","Flux is up to date")})).catch((e=>{console.log(e),this.showToast("danger","Error verifying recent version")}))},showToast(e,t){this.$toast({component:v.Z,props:{title:t,icon:"BellIcon",variant:e}})}}},f=h;var b=a(1001),x=(0,b.Z)(f,c,u,!1,null,null,null);const k=x.exports;var C=a(37307),w=a(71603),y=function(){var e=this,t=e._self._c;return t("div",{staticClass:"app-content content",class:[{"show-overlay":e.$store.state.app.shallShowOverlay},e.$route.meta.contentClass]},[t("div",{staticClass:"content-overlay"}),t("div",{staticClass:"header-navbar-shadow"}),t("div",{staticClass:"content-wrapper",class:"boxed"===e.contentWidth?"container p-0":null},[e._t("breadcrumb",(function(){return[t("app-breadcrumb")]})),t("div",{staticClass:"content-body"},[t("transition",{attrs:{name:e.routerTransition,mode:"out-in"}},[e._t("default")],2)],1)],2)])},M=[],_=function(){var e=this,t=e._self._c;return e.$route.meta.breadcrumb||e.$route.meta.pageTitle?t("b-row",{staticClass:"content-header"},[t("b-col",{staticClass:"content-header-left mb-2",attrs:{cols:"12",md:"9"}},[t("b-row",{staticClass:"breadcrumbs-top"},[t("b-col",{attrs:{cols:"12"}},[t("h2",{staticClass:"content-header-title float-left pr-1 mb-0"},[e._v(" "+e._s(e.$route.meta.pageTitle)+" ")]),t("div",{staticClass:"breadcrumb-wrapper"},[t("b-breadcrumb",[t("b-breadcrumb-item",{attrs:{to:"/"}},[t("feather-icon",{staticClass:"align-text-top",attrs:{icon:"HomeIcon",size:"16"}})],1),e._l(e.$route.meta.breadcrumb,(function(a){return t("b-breadcrumb-item",{key:a.text,attrs:{active:a.active,to:a.to}},[e._v(" "+e._s(a.text)+" ")])}))],2)],1)])],1)],1)],1):e._e()},I=[],Z=a(74825),B=a(90854),A=a(26253),T=a(50725),L=a(20266);const V={directives:{Ripple:L.Z},components:{BBreadcrumb:Z.P,BBreadcrumbItem:B.g,BRow:A.T,BCol:T.l}},S=V;var O=(0,b.Z)(S,_,I,!1,null,null,null);const N=O.exports,P={components:{AppBreadcrumb:N},setup(){const{routerTransition:e,contentWidth:t}=(0,C.Z)();return{routerTransition:e,contentWidth:t}}},$=P;var z=(0,b.Z)($,y,M,!1,null,null,null);const D=z.exports;var R=function(){var e=this,t=e._self._c;return t("div",{staticClass:"app-content content",class:[{"show-overlay":e.$store.state.app.shallShowOverlay},e.$route.meta.contentClass]},[t("div",{staticClass:"content-overlay"}),t("div",{staticClass:"header-navbar-shadow"}),t("transition",{attrs:{name:e.routerTransition,mode:"out-in"}},[t("div",{staticClass:"content-area-wrapper",class:"boxed"===e.contentWidth?"container p-0":null},[e._t("breadcrumb",(function(){return[t("app-breadcrumb")]})),t("portal-target",{attrs:{name:"content-renderer-sidebar-left",slim:""}}),t("div",{staticClass:"content-right"},[t("div",{staticClass:"content-wrapper"},[t("div",{staticClass:"content-body"},[e._t("default")],2)])])],2)])],1)},F=[];const j={components:{AppBreadcrumb:N},setup(){const{routerTransition:e,contentWidth:t}=(0,C.Z)();return{routerTransition:e,contentWidth:t}}},G=j;var H=(0,b.Z)(G,R,F,!1,null,null,null);const E=H.exports;var U=function(){var e=this,t=e._self._c;return t("div",{staticClass:"app-content content",class:[{"show-overlay":e.$store.state.app.shallShowOverlay},e.$route.meta.contentClass]},[t("div",{staticClass:"content-overlay"}),t("div",{staticClass:"header-navbar-shadow"}),t("transition",{attrs:{name:e.routerTransition,mode:"out-in"}},[t("div",{staticClass:"content-wrapper clearfix",class:"boxed"===e.contentWidth?"container p-0":null},[e._t("breadcrumb",(function(){return[t("app-breadcrumb")]})),t("div",{staticClass:"content-detached content-right"},[t("div",{staticClass:"content-wrapper"},[t("div",{staticClass:"content-body"},[e._t("default")],2)])]),t("portal-target",{attrs:{name:"content-renderer-sidebar-detached-left",slim:""}})],2)])],1)},W=[];const q={components:{AppBreadcrumb:N},setup(){const{routerTransition:e,contentWidth:t}=(0,C.Z)();return{routerTransition:e,contentWidth:t}}},X=q;var K=(0,b.Z)(X,U,W,!1,null,null,null);const Y=K.exports;var J=function(){var e=this,t=e._self._c;return t("div",{staticClass:"main-menu menu-fixed menu-accordion menu-shadow",class:[{expanded:!e.isVerticalMenuCollapsed||e.isVerticalMenuCollapsed&&e.isMouseHovered},"semi-dark"===e.skin?"menu-dark":"menu-light"],on:{mouseenter:function(t){return e.updateMouseHovered(!0)},mouseleave:function(t){return e.updateMouseHovered(!1)},focus:function(t){return e.updateMouseHovered(!0)},blur:function(t){return e.updateMouseHovered(!1)}}},[t("div",{staticClass:"navbar-header expanded"},[e._t("header",(function(){return[t("ul",{staticClass:"nav navbar-nav flex-row"},[t("li",{staticClass:"nav-item mr-auto"},[t("b-link",{staticClass:"navbar-brand",attrs:{to:"/"}},[t("span",{staticClass:"brand-logo"},[t("b-img",{class:e.isVerticalMenuCollapsed?"collapsed-logo":"",attrs:{src:"dark"===e.skin?e.appLogoImageDark:e.appLogoImage,alt:"logo"}})],1)])],1),t("li",{staticClass:"nav-item nav-toggle"},[t("b-link",{staticClass:"nav-link modern-nav-toggle"},[t("feather-icon",{staticClass:"d-block d-xl-none",attrs:{icon:"XIcon",size:"20"},on:{click:e.toggleVerticalMenuActive}}),t("feather-icon",{staticClass:"d-none d-xl-block collapse-toggle-icon",attrs:{icon:e.collapseTogglerIconFeather,size:"20"},on:{click:e.toggleCollapsed}})],1)],1)])]}),{toggleVerticalMenuActive:e.toggleVerticalMenuActive,toggleCollapsed:e.toggleCollapsed,collapseTogglerIcon:e.collapseTogglerIcon})],2),t("div",{staticClass:"shadow-bottom",class:{"d-block":e.shallShadowBottom}}),t("vue-perfect-scrollbar",{staticClass:"main-menu-content scroll-area",attrs:{settings:e.perfectScrollbarSettings,tagname:"ul"},on:{"ps-scroll-y":t=>{e.shallShadowBottom=t.srcElement.scrollTop>0}}},[t("vertical-nav-menu-items",{key:e.isNavMenuCollapsed,staticClass:"navigation navigation-main",attrs:{items:e.isNavMenuCollapsed?e.navMenuItemsCollapsed:e.navMenuItems}})],1)],1)},Q=[],ee=a(91040),te=a.n(ee),ae=a(98156),ne=a(68934);const re=[{header:"Dashboard"},{title:"Overview",icon:"chart-pie",route:"dashboard-overview"},{title:"Resources",icon:"server",route:"dashboard-resources"},{title:"Map",icon:"map-marker-alt",route:"dashboard-map"},{title:"Rewards",icon:"coins",route:"dashboard-rewards"},{title:"List",icon:"list-ul",route:"dashboard-list"}],oe=[{header:"Applications"},{title:"Management",icon:"cogs",route:"apps-myapps"},{title:"Global Apps",icon:"globe",route:"apps-globalapps"},{title:"Register New App",icon:"regular/plus-square",route:"apps-registerapp"},{title:"Marketplace",icon:"shopping-basket",route:"apps-marketplace"}],ie=[{title:"Control",icon:"tools",id:"benchmark-control",children:[{title:"Help",icon:"question",route:"benchmark-control-help"},{title:"Start",icon:"play",route:"benchmark-control-start",privilege:["admin","fluxteam"]},{title:"Stop",icon:"power-off",route:"benchmark-control-stop",privilege:["admin"]},{title:"Restart",icon:"redo",route:"benchmark-control-restart",privilege:["admin","fluxteam"]}]}],le=[{title:"FluxNode",icon:"dice-d20",id:"benchmark-fluxnode",children:[{title:"Get Benchmarks",icon:"calculator",route:"benchmark-fluxnode-getbenchmarks"},{title:"Get Info",icon:"info",route:"benchmark-fluxnode-getinfo"}]}],se=[{title:"Benchmarks",icon:"microchip",children:[{title:"Get Status",icon:"tachometer-alt",route:"benchmark-benchmarks-getstatus"},{title:"Restart Benchmarks",icon:"redo",route:"benchmark-benchmarks-restartbenchmarks",privilege:["admin","fluxteam"]},{title:"Sign Transaction",icon:"bolt",route:"benchmark-benchmarks-signtransaction",privilege:["admin"]}]}],ce=[{header:"Benchmark"},...ie,...le,...se,{title:"Debug",icon:"bug",route:"benchmark-debug",id:"benchmark-debug",privilege:["admin","fluxteam"]}],ue=[{title:"Control",icon:"tools",children:[{title:"Get Info",icon:"info",route:"daemon-control-getinfo"},{title:"Help",icon:"question",route:"daemon-control-help"},{title:"Rescan Blockchain",icon:"search-plus",route:"daemon-control-rescanblockchain",privilege:["admin"]},{title:"Reindex Blockchain",icon:"address-book",route:"daemon-control-reindexblockchain",privilege:["admin"]},{title:"Start",icon:"play",route:"daemon-control-start",privilege:["admin","fluxteam"]},{title:"Stop",icon:"power-off",route:"daemon-control-stop",privilege:["admin"]},{title:"Restart",icon:"redo",route:"daemon-control-restart",privilege:["admin","fluxteam"]}]}],de=[{title:"FluxNode",icon:"dice-d20",children:[{title:"Get FluxNode Status",icon:"info",route:"daemon-fluxnode-getstatus"},{title:"List FluxNodes",icon:"list-ul",route:"daemon-fluxnode-listfluxnodes"},{title:"View FluxNode List",icon:"regular/list-alt",route:"daemon-fluxnode-viewfluxnodelist"},{title:"Get FluxNode Count",icon:"layer-group",route:"daemon-fluxnode-getfluxnodecount"},{title:"Get Start List",icon:"play",route:"daemon-fluxnode-getstartlist"},{title:"Get DOS List",icon:"hammer",route:"daemon-fluxnode-getdoslist"},{title:"Current Winner",icon:"trophy",route:"daemon-fluxnode-currentwinner"}]}],pe=[{title:"Benchmarks",icon:"microchip",id:"daemon-benchmarks",children:[{title:"Get Benchmarks",icon:"calculator",route:"daemon-benchmarks-getbenchmarks"},{title:"Get Bench Status",icon:"tachometer-alt",route:"daemon-benchmarks-getstatus"},{title:"Start Benchmark",icon:"play",route:"daemon-benchmarks-start",privilege:["admin","fluxteam"]},{title:"Stop Benchmark",icon:"power-off",route:"daemon-benchmarks-stop",privilege:["admin","fluxteam"]}]}],me=[{title:"Get Blockchain Info",icon:"link",route:"daemon-blockchain-getchaininfo"}],ve=[{title:"Get Mining Info",icon:"gem",route:"daemon-mining-getmininginfo"}],ge=[{title:"Get Network Info",icon:"network-wired",route:"daemon-network-getnetworkinfo"}],he=[{title:"Get Raw Transaction",icon:"code",route:"daemon-transaction-getrawtransaction"}],fe=[{title:"Validate Address",icon:"check-double",route:"daemon-util-validateaddress"}],be=[{title:"Get Wallet Info",icon:"wallet",route:"daemon-wallet-getwalletinfo",privilege:["user","admin","fluxteam"]}],xe=[{header:"Daemon"},...ue,...de,...pe,...me,...ve,...ge,...he,...fe,...be,{title:"Debug",icon:"bug",route:"daemon-debug",id:"daemon-debug",privilege:["admin","fluxteam"]}],ke=[{header:"Flux"},{title:"Node Status",icon:"heartbeat",route:"flux-nodestatus"},{title:"Flux Network",icon:"network-wired",route:"flux-fluxnetwork"},{title:"Debug",icon:"bug",route:"flux-debug",privilege:["admin","fluxteam"]}],Ce=[{header:"Administration"},{title:"Explorer",route:"explorer",icon:"search"},...xe,...ce,...ke,{title:"Local Apps",icon:"upload",route:"apps-localapps"},{title:"Logged Sessions",icon:"regular/id-badge",route:"fluxadmin-loggedsessions",privilege:["admin","fluxteam"]},{title:"Manage Flux",icon:"dice-d20",route:"fluxadmin-manageflux",privilege:["admin","fluxteam"]},{title:"Manage Daemon",icon:"cog",route:"fluxadmin-managedaemon",privilege:["admin","fluxteam"]},{title:"Manage Benchmark",icon:"microchip",route:"fluxadmin-managebenchmark",privilege:["admin","fluxteam"]},{title:"Manage Users",icon:"fingerprint",route:"fluxadmin-manageusers",privilege:["admin","fluxteam"]},{title:"My FluxShare",icon:"regular/hdd",route:"apps-fluxsharestorage",privilege:["admin"]}],{xdaoOpenProposals:we}=(0,C.Z)(),ye=[{header:"XDAO"},{title:"XDAO ",icon:"clipboard-list",tag:we,route:"xdao-app"}],Me=[{title:"Home",route:"home",icon:"home"},...re,...oe,...ye,...Ce],_e=[{title:"Dashboard",icon:"desktop",spacing:!0,children:[{title:"Overview",icon:"chart-pie",route:"dashboard-overview"},{title:"Resources",icon:"server",route:"dashboard-resources"},{title:"Map",icon:"map-marker-alt",route:"dashboard-map"},{title:"Rewards",icon:"coins",route:"dashboard-rewards"},{title:"List",icon:"list-ul",route:"dashboard-list"}]}],Ie=[{title:"Applications",icon:"laptop-code",spacing:!0,children:[{title:"Management",icon:"cogs",route:"apps-myapps"},{title:"Global Apps",icon:"globe",route:"apps-globalapps"},{title:"Register New App",icon:"regular/plus-square",route:"apps-registerapp"},{title:"Marketplace",icon:"shopping-basket",route:"apps-marketplace"}]}],Ze=[{title:"Benchmark",icon:"wrench",spacing:!0,children:[...ie,...le,...se,{title:"Debug",icon:"bug",route:"benchmark-debug",id:"benchmark-debug",privilege:["admin","fluxteam"]}]}],Be=[{title:"Daemon",icon:"bolt",spacing:!0,children:[...ue,...de,...pe,...me,...ve,...ge,...he,...fe,...be,{title:"Debug",icon:"bug",route:"daemon-debug",id:"daemon-debug",privilege:["admin","fluxteam"]}]}],Ae=a(25448),Te=[{title:"Flux",image:Ae,spacing:!0,children:[{title:"Node Status",icon:"heartbeat",route:"flux-nodestatus"},{title:"Flux Network",icon:"network-wired",route:"flux-fluxnetwork"},{title:"Debug",icon:"bug",route:"flux-debug",privilege:["admin","fluxteam"]}]}],Le=[{title:"Administration",icon:"clipboard-list",spacing:!0,children:[{title:"Explorer",route:"explorer",icon:"search"},...Be,...Ze,...Te,{title:"Local Apps",icon:"upload",route:"apps-localapps"},{title:"Logged Sessions",icon:"regular/id-badge",route:"fluxadmin-loggedsessions",privilege:["admin","fluxteam"]},{title:"Manage Flux",icon:"dice-d20",route:"fluxadmin-manageflux",privilege:["admin","fluxteam"]},{title:"Manage Daemon",icon:"cog",route:"fluxadmin-managedaemon",privilege:["admin","fluxteam"]},{title:"Manage Benchmark",icon:"microchip",route:"fluxadmin-managebenchmark",privilege:["admin","fluxteam"]},{title:"Manage Users",icon:"fingerprint",route:"fluxadmin-manageusers",privilege:["admin","fluxteam"]},{title:"My FluxShare",icon:"regular/hdd",route:"apps-fluxsharestorage",privilege:["admin"]}]}],{xdaoOpenProposals:Ve}=(0,C.Z)(),Se=[{title:"XDAO",icon:"id-card",tag:Ve,spacing:!0,children:[{title:"XDAO ",icon:"clipboard-list",route:"xdao-app"}]}],Oe=[{title:"Home",route:"home",icon:"home"},..._e,...Ie,...Se,...Le];var Ne=function(){var e=this,t=e._self._c;return t("ul",e._l(e.items,(function(a){return t(e.resolveNavItemComponent(a),{key:a.id||a.header||a.title,tag:"component",attrs:{item:a}})})),1)},Pe=[],$e=a(23646),ze=a(24019);const De=e=>e.header?"vertical-nav-menu-header":e.children?"vertical-nav-menu-group":"vertical-nav-menu-link",Re=e=>{if((0,$e.Kn)(e.route)){const{route:t}=ze.Z.resolve(e.route);return t.name}return e.route},Fe=e=>{const t=ze.Z.currentRoute.matched,a=Re(e);return!!a&&t.some((e=>e.name===a||e.meta.navActiveLink===a))},je=e=>{const t=ze.Z.currentRoute.matched;return e.some((e=>e.children?je(e.children):Fe(e,t)))},Ge=e=>(0,s.computed)((()=>{const t={};return e.route?t.to="string"===typeof e.route?{name:e.route}:e.route:(t.href=e.href,t.target="_blank",t.rel="nofollow"),t.target||(t.target=e.target||null),t})),He=e=>{const t=(0,s.getCurrentInstance)().proxy;return t.$t?t.$t(e):e},Ee=null,Ue=()=>({...n}),{t:We}=Ue(),qe={props:{item:{type:Object,required:!0}},computed:{...(0,d.rn)("flux",["privilege"])},methods:{hasPrivilegeLevel(e){return!e.privilege||e.privilege.some((e=>e===this.privilege))}},render(e){if(this.hasPrivilegeLevel(this.item)){const t=e("span",{},We(this.item.header));return e("li",{class:"navigation-header text-truncate"},[t])}return e()}};var Xe=function(){var e=this,t=e._self._c;return e.hasPrivilegeLevel(e.item)?t("li",{staticClass:"nav-item",class:{active:e.isActive,disabled:e.item.disabled}},[t("b-link",e._b({staticClass:"d-flex align-items-center"},"b-link",e.linkProps,!1),[t("v-icon",{attrs:{name:e.item.icon||"regular/circle"}}),t("span",{staticClass:"menu-title text-truncate"},[e._v(e._s(e.t(e.item.title)))]),e.item.tag&&e.item.tag.value>0?t("b-badge",{staticClass:"mr-1 ml-auto",attrs:{pill:"",variant:e.item.tagVariant||"primary"}},[e._v(" "+e._s(e.item.tag.value)+" ")]):e._e()],1)],1):e._e()},Ke=[],Ye=a(26034);function Je(e){const t=(0,s.ref)(!1),a=Ge(e),n=()=>{t.value=Fe(e)};return{isActive:t,linkProps:a,updateIsActive:n}}const Qe={watch:{$route:{immediate:!0,handler(){this.updateIsActive()}}}},et={components:{BLink:p.we,BBadge:Ye.k},mixins:[Qe],props:{item:{type:Object,required:!0}},setup(e){const{isActive:t,linkProps:a,updateIsActive:n}=Je(e.item),{t:r}=Ue();return{isActive:t,linkProps:a,updateIsActive:n,t:r}},computed:{...(0,d.rn)("flux",["privilege"])},methods:{hasPrivilegeLevel(e){return!e.privilege||e.privilege.some((e=>e===this.privilege))}}},tt=et;var at=(0,b.Z)(tt,Xe,Ke,!1,null,null,null);const nt=at.exports;var rt=function(){var e=this,t=e._self._c;return e.hasPrivilegeLevel(e.item)?t("li",{staticClass:"nav-item has-sub",class:{open:e.isOpen,disabled:e.item.disabled,"sidebar-group-active":e.isActive,"sidebar-group-spacing":e.item.spacing}},[t("b-link",{staticClass:"d-flex align-items-center",on:{click:()=>e.updateGroupOpen(!e.isOpen)}},[e.item.icon?t("v-icon",{attrs:{name:e.item.icon||"regular/circle"}}):e._e(),e.item.image?t("b-img",{staticClass:"sidebar-menu-image",attrs:{src:e.item.image}}):e._e(),t("span",{staticClass:"menu-title text-truncate"},[e._v(e._s(e.t(e.item.title)))]),e.item.tag&&e.item.tag.value>0?t("b-badge",{staticClass:"mr-1 ml-auto",attrs:{pill:"",variant:e.item.tagVariant||"primary"}},[e._v(" "+e._s(e.item.tag.value)+" ")]):e._e()],1),t("b-collapse",{staticClass:"menu-content",attrs:{tag:"ul"},model:{value:e.isOpen,callback:function(t){e.isOpen=t},expression:"isOpen"}},e._l(e.item.children,(function(a){return t(e.resolveNavItemComponent(a),{key:a.header||a.title,ref:"groupChild",refInFor:!0,tag:"component",attrs:{item:a}})})),1)],1):e._e()},ot=[],it=a(11688),lt=(a(70560),a(73507));function st(e){const t=(0,s.computed)((()=>lt.Z.state.verticalMenu.isVerticalMenuCollapsed));(0,s.watch)(t,(e=>{a.value||(e?r.value=!1:!e&&i.value&&(r.value=!0))}));const a=(0,s.inject)("isMouseHovered");(0,s.watch)(a,(e=>{t.value&&(r.value=e&&i.value)}));const n=(0,s.inject)("openGroups");(0,s.watch)(n,(t=>{const a=t[t.length-1];a===e.title||i.value||c(a)||(r.value=!1)}));const r=(0,s.ref)(!1);(0,s.watch)(r,(t=>{t&&n.value.push(e.title)}));const o=e=>{r.value=e},i=(0,s.ref)(!1);(0,s.watch)(i,(e=>{e&&t.value||(r.value=e)}));const l=()=>{i.value=je(e.children)},c=t=>e.children.some((e=>e.title===t));return{isOpen:r,isActive:i,updateGroupOpen:o,openGroups:n,isMouseHovered:a,updateIsActive:l}}const ct={watch:{$route:{immediate:!0,handler(){this.updateIsActive()}}}},ut={name:"VerticalNavMenuGroup",components:{VerticalNavMenuHeader:qe,VerticalNavMenuLink:nt,BLink:p.we,BBadge:Ye.k,BCollapse:it.k,BImg:ae.s},mixins:[ct],props:{item:{type:Object,required:!0}},setup(e){const{isOpen:t,isActive:a,updateGroupOpen:n,updateIsActive:r}=st(e.item),{t:o}=Ue();return{resolveNavItemComponent:De,isOpen:t,isActive:a,updateGroupOpen:n,updateIsActive:r,t:o}},computed:{...(0,d.rn)("flux",["privilege"])},methods:{hasPrivilegeLevel(e){return!e.privilege||e.privilege.some((e=>e===this.privilege))}}},dt=ut;var pt=(0,b.Z)(dt,rt,ot,!1,null,null,null);const mt=pt.exports,vt={components:{VerticalNavMenuHeader:qe,VerticalNavMenuLink:nt,VerticalNavMenuGroup:mt},props:{items:{type:Array,required:!0}},setup(){return(0,s.provide)("openGroups",(0,s.ref)([])),{resolveNavItemComponent:De}}},gt=vt;var ht=(0,b.Z)(gt,Ne,Pe,!1,null,null,null);const ft=ht.exports;function bt(e){const t=(0,s.computed)({get:()=>lt.Z.state.verticalMenu.isVerticalMenuCollapsed,set:e=>{lt.Z.commit("verticalMenu/UPDATE_VERTICAL_MENU_COLLAPSED",e)}}),a=(0,s.computed)((()=>e.isVerticalMenuActive?t.value?"unpinned":"pinned":"close")),n=(0,s.ref)(!1),r=e=>{n.value=e},o=()=>{t.value=!t.value};return{isMouseHovered:n,isVerticalMenuCollapsed:t,collapseTogglerIcon:a,toggleCollapsed:o,updateMouseHovered:r}}const xt=a(80129),kt=a(97218),Ct={components:{VuePerfectScrollbar:te(),VerticalNavMenuItems:ft,BLink:p.we,BImg:ae.s},props:{isVerticalMenuActive:{type:Boolean,required:!0},toggleVerticalMenuActive:{type:Function,required:!0}},setup(e){const{isMouseHovered:t,isVerticalMenuCollapsed:a,collapseTogglerIcon:n,toggleCollapsed:r,updateMouseHovered:o}=bt(e),i=(0,s.ref)(null);(0,s.onBeforeMount)((()=>{const e=localStorage.getItem("zelidauth"),t=xt.parse(e);i.value=t.zelid}));const{isNavMenuCollapsed:l,xdaoOpenProposals:c,skin:u}=(0,C.Z)(),d=async e=>{const t=await kt.get(`https://stats.runonflux.io/proposals/voteInformation?hash=${e.hash}&zelid=${i.value}`);return t.data},p=async()=>{let e=0;const t=await kt.get("https://stats.runonflux.io/proposals/listProposals").catch((()=>({data:{status:"fail"}})));if("success"===t.data.status){const a=t.data.data.filter((e=>"Open"===e.status));a.forEach((async t=>{const a=await d(t);"success"!==a.status||null!=a.data&&0!==a.data.length||(e+=1,c.value=e)}))}};setInterval((()=>{p()}),6e5),p();const m=(0,s.ref)(!1);(0,s.provide)("isMouseHovered",t);const v={maxScrollbarLength:60,wheelPropagation:!1},g=(0,s.computed)((()=>"unpinned"===n.value?"CircleIcon":"DiscIcon")),{appName:h,appLogoImageDark:f,appLogoImage:b}=ne.$themeConfig.app;return{navMenuItems:Me,navMenuItemsCollapsed:Oe,perfectScrollbarSettings:v,isVerticalMenuCollapsed:a,collapseTogglerIcon:n,toggleCollapsed:r,isMouseHovered:t,updateMouseHovered:o,collapseTogglerIconFeather:g,shallShadowBottom:m,skin:u,isNavMenuCollapsed:l,appName:h,appLogoImage:b,appLogoImageDark:f}}},wt=Ct;var yt=(0,b.Z)(wt,J,Q,!1,null,null,null);const Mt=yt.exports;function _t(e,t){const a=(0,s.ref)(!0),n=()=>{a.value=!a.value},r=(0,s.ref)("xl"),o=(0,s.computed)((()=>lt.Z.state.verticalMenu.isVerticalMenuCollapsed)),i=(0,s.computed)((()=>{const n=[];return"xl"===r.value||"xxl"===r.value?(n.push("vertical-menu-modern"),n.push(o.value?"menu-collapsed":"menu-expanded")):(n.push("vertical-overlay-menu"),n.push(a.value?"menu-open":"menu-hide")),n.push(`navbar-${e.value}`),"sticky"===t.value&&n.push("footer-fixed"),"static"===t.value&&n.push("footer-static"),"hidden"===t.value&&n.push("footer-hidden"),n}));(0,s.watch)(r,(e=>{a.value="xxl"===e||"xl"===e}));const l=()=>{window.innerWidth>=1600?r.value="xxl":window.innerWidth>=1200?r.value="xl":window.innerWidth>=992?r.value="lg":window.innerWidth>=768?r.value="md":window.innerWidth>=576?r.value="sm":r.value="xs"},c=(0,s.computed)((()=>"xxl"!==r.value&&"xl"!==r.value&&a.value?"show":null)),u=(0,s.computed)((()=>"sticky"===e.value?"fixed-top":"static"===e.value?"navbar-static-top":"hidden"===e.value?"d-none":"floating-nav")),d=(0,s.computed)((()=>"static"===t.value?"footer-static":"hidden"===t.value?"d-none":""));return{isVerticalMenuActive:a,toggleVerticalMenuActive:n,isVerticalMenuCollapsed:o,layoutClasses:i,overlayClasses:c,navbarTypeClass:u,footerTypeClass:d,resizeHandler:l}}const It={watch:{$route(){this.$store.state.app.windowWidth{window.removeEventListener("resize",d)})),{isVerticalMenuActive:o,toggleVerticalMenuActive:i,isVerticalMenuCollapsed:l,overlayClasses:u,layoutClasses:c,navbarTypeClass:p,footerTypeClass:m,routerTransition:e,navbarBackgroundColor:t,isNavMenuHidden:r}},computed:{layoutContentRenderer(){const e=this.$route.meta.contentRenderer;return"sidebar-left"===e?"layout-content-renderer-left":"sidebar-left-detached"===e?"layout-content-renderer-left-detached":"layout-content-renderer-default"}}},Bt=Zt;var At=(0,b.Z)(Bt,i,l,!1,null,null,null);const Tt=At.exports;var Lt=function(){var e=this,t=e._self._c;return t("div",{staticClass:"navbar-container d-flex content align-items-center"},[t("ul",{staticClass:"nav navbar-nav d-xl-none"},[t("li",{staticClass:"nav-item"},[t("b-link",{staticClass:"nav-link",on:{click:e.toggleVerticalMenuActive}},[t("feather-icon",{attrs:{icon:"MenuIcon",size:"21"}})],1)],1)]),t("div",{staticClass:"bookmark-wrapper align-items-center flex-grow-1 d-none d-md-flex"},[t("b-dropdown",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(113, 102, 240, 0.15)",expression:"'rgba(113, 102, 240, 0.15)'",modifiers:{400:!0}}],attrs:{text:e.backendURL,variant:"outline-primary",size:"sm"}},[t("b-dropdown-item-button",{on:{click:function(t){return e.changeBackendURL(`http://${e.userconfig.externalip}:${e.config.apiPort}`)}}},[e._v(" http://"+e._s(e.userconfig.externalip)+":"+e._s(e.config.apiPort)+" ")]),t("b-dropdown-divider"),t("b-dropdown-item-button",{on:{click:function(t){return e.changeBackendURL("https://api.runonflux.io")}}},[e._v(" https://api.runonflux.io ")]),t("b-dropdown-divider"),t("b-form-input",{attrs:{id:"dropdown-form-custom",type:"text",size:"sm",placeholder:"Custom Backend"},on:{input:function(t){return e.changeBackendURL(e.customBackend)}},model:{value:e.customBackend,callback:function(t){e.customBackend=t},expression:"customBackend"}})],1)],1),t("b-navbar-nav",{staticClass:"nav align-items-center ml-auto"},[e._v(" "+e._s(e.zelid)+" "),t("dark-Toggler",{staticClass:"d-block"}),t("menu-Collapse-Toggler",{staticClass:"d-block"}),"none"!==e.privilege?t("b-button",{attrs:{variant:"outline-primary",size:"sm"},on:{click:e.logout}},[e._v(" Logout ")]):e._e()],1)],1)},Vt=[],St=a(29852),Ot=a(31642),Nt=a(2332),Pt=a(41294),$t=a(15193),zt=a(22183),Dt=function(){var e=this,t=e._self._c;return t("b-nav-item",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover",modifiers:{hover:!0}}],attrs:{title:"Toggle Dark Mode"},on:{click:function(t){e.skin=e.isDark?"light":"dark"}}},[t("feather-icon",{attrs:{size:"21",icon:(e.isDark?"Sun":"Moon")+"Icon"}})],1)},Rt=[],Ft=a(32450),jt=a(5870);const Gt={components:{BNavItem:Ft.r},directives:{"b-tooltip":jt.o},setup(){const{skin:e}=(0,C.Z)(),t=(0,s.computed)((()=>"dark"===e.value));return{skin:e,isDark:t}}},Ht=Gt;var Et=(0,b.Z)(Ht,Dt,Rt,!1,null,null,null);const Ut=Et.exports;var Wt=function(){var e=this,t=e._self._c;return t("b-nav-item",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover",modifiers:{hover:!0}}],staticClass:"menu-toggler",attrs:{title:"Toggle Menu Style"},on:{click:function(t){e.isNavMenuCollapsed=!e.isCollapsed}}},[t("v-icon",{attrs:{size:"21",name:""+(e.isCollapsed?"bars":"align-left")}})],1)},qt=[];const Xt={components:{BNavItem:Ft.r},directives:{"b-tooltip":jt.o},setup(){const{isNavMenuCollapsed:e}=(0,C.Z)(),t=(0,s.computed)((()=>!0===e.value));return{isNavMenuCollapsed:e,isCollapsed:t}}},Kt=Xt;var Yt=(0,b.Z)(Kt,Wt,qt,!1,null,"2ed358b2",null);const Jt=Yt.exports;var Qt=a(5449),ea=a(34369);const ta=a(80129),aa=a(58971),na={components:{BLink:p.we,BNavbarNav:St.o,BDropdown:Ot.R,BDropdownItemButton:Nt.t,BDropdownDivider:Pt.a,BButton:$t.T,BFormInput:zt.e,DarkToggler:Ut,MenuCollapseToggler:Jt,ToastificationContent:v.Z},directives:{Ripple:L.Z},props:{toggleVerticalMenuActive:{type:Function,default:()=>{}}},data(){return{backendURL:"",customBackend:""}},computed:{...(0,d.rn)("flux",["userconfig","config","privilege","zelid"])},mounted(){const{protocol:e,hostname:t,port:a}=window.location;let n="";n+=e,n+="//";const r=/[A-Za-z]/g;if(t.split("-")[4]){const e=t.split("-"),a=e[4].split("."),r=+a[0]+1;a[0]=r.toString(),a[2]="api",e[4]="",n+=e.join("-"),n+=a.join(".")}else if(t.match(r)){const e=t.split(".");e[0]="api",n+=e.join(".")}else{if("string"===typeof t&&this.$store.commit("flux/setUserIp",t),+a>16100){const e=+a+1;this.$store.commit("flux/setFluxPort",e)}n+=t,n+=":",n+=this.config.apiPort}this.backendURL=aa.get("backendURL")||n},methods:{changeBackendURL(e){console.log(e),aa.set("backendURL",e),this.backendURL=e},showToast(e,t){this.$toast({component:v.Z,props:{title:t,icon:"BellIcon",variant:e}})},async logout(){const e=localStorage.getItem("zelidauth"),t=ta.parse(e);localStorage.removeItem("zelidauth"),this.$store.commit("flux/setPrivilege","none"),this.$store.commit("flux/setZelid",""),console.log(t),ea.Z.logoutCurrentSession(e).then((e=>{console.log(e),"error"===e.data.status?console.log(e.data.data.message):(this.showToast("success",e.data.data.message),"/"===this.$route.path?window.location.reload():this.$router.push({name:"home"}))})).catch((e=>{console.log(e),this.showToast("danger",e.toString())}));try{await Qt.ZP.auth().signOut()}catch(a){console.log(a)}}}},ra=na;var oa=(0,b.Z)(ra,Lt,Vt,!1,null,null,null);const ia=oa.exports,la={components:{LayoutVertical:Tt,Navbar:ia},data(){return{}}},sa=la;var ca=(0,b.Z)(sa,r,o,!1,null,null,null);const ua=ca.exports},39055:(e,t,a)=>{a.d(t,{Z:()=>r});var n=a(80914);const r={softUpdateFlux(e){return(0,n.Z)().get("/flux/softupdateflux",{headers:{zelidauth:e}})},softUpdateInstallFlux(e){return(0,n.Z)().get("/flux/softupdatefluxinstall",{headers:{zelidauth:e}})},updateFlux(e){return(0,n.Z)().get("/flux/updateflux",{headers:{zelidauth:e}})},hardUpdateFlux(e){return(0,n.Z)().get("/flux/hardupdateflux",{headers:{zelidauth:e}})},rebuildHome(e){return(0,n.Z)().get("/flux/rebuildhome",{headers:{zelidauth:e}})},updateDaemon(e){return(0,n.Z)().get("/flux/updatedaemon",{headers:{zelidauth:e}})},reindexDaemon(e){return(0,n.Z)().get("/flux/reindexdaemon",{headers:{zelidauth:e}})},updateBenchmark(e){return(0,n.Z)().get("/flux/updatebenchmark",{headers:{zelidauth:e}})},getFluxVersion(){return(0,n.Z)().get("/flux/version")},broadcastMessage(e,t){const a=t,r={headers:{zelidauth:e}};return(0,n.Z)().post("/flux/broadcastmessage",JSON.stringify(a),r)},connectedPeers(){return(0,n.Z)().get(`/flux/connectedpeers?timestamp=${Date.now()}`)},connectedPeersInfo(){return(0,n.Z)().get(`/flux/connectedpeersinfo?timestamp=${Date.now()}`)},incomingConnections(){return(0,n.Z)().get(`/flux/incomingconnections?timestamp=${Date.now()}`)},incomingConnectionsInfo(){return(0,n.Z)().get(`/flux/incomingconnectionsinfo?timestamp=${Date.now()}`)},addPeer(e,t){return(0,n.Z)().get(`/flux/addpeer/${t}`,{headers:{zelidauth:e}})},removePeer(e,t){return(0,n.Z)().get(`/flux/removepeer/${t}`,{headers:{zelidauth:e}})},removeIncomingPeer(e,t){return(0,n.Z)().get(`/flux/removeincomingpeer/${t}`,{headers:{zelidauth:e}})},adjustKadena(e,t,a){return(0,n.Z)().get(`/flux/adjustkadena/${t}/${a}`,{headers:{zelidauth:e}})},adjustRouterIP(e,t){return(0,n.Z)().get(`/flux/adjustrouterip/${t}`,{headers:{zelidauth:e}})},adjustBlockedPorts(e,t){const a={blockedPorts:t},r={headers:{zelidauth:e}};return(0,n.Z)().post("/flux/adjustblockedports",a,r)},adjustAPIPort(e,t){return(0,n.Z)().get(`/flux/adjustapiport/${t}`,{headers:{zelidauth:e}})},adjustBlockedRepositories(e,t){const a={blockedRepositories:t},r={headers:{zelidauth:e}};return(0,n.Z)().post("/flux/adjustblockedrepositories",a,r)},getKadenaAccount(){const e={headers:{"x-apicache-bypass":!0}};return(0,n.Z)().get("/flux/kadena",e)},getRouterIP(){const e={headers:{"x-apicache-bypass":!0}};return(0,n.Z)().get("/flux/routerip",e)},getBlockedPorts(){const e={headers:{"x-apicache-bypass":!0}};return(0,n.Z)().get("/flux/blockedports",e)},getAPIPort(){const e={headers:{"x-apicache-bypass":!0}};return(0,n.Z)().get("/flux/apiport",e)},getBlockedRepositories(){const e={headers:{"x-apicache-bypass":!0}};return(0,n.Z)().get("/flux/blockedrepositories",e)},getMarketPlaceURL(){return(0,n.Z)().get("/flux/marketplaceurl")},getZelid(){const e={headers:{"x-apicache-bypass":!0}};return(0,n.Z)().get("/flux/zelid",e)},getStaticIpInfo(){return(0,n.Z)().get("/flux/staticip")},restartFluxOS(e){const t={headers:{zelidauth:e,"x-apicache-bypass":!0}};return(0,n.Z)().get("/flux/restart",t)},tailFluxLog(e,t){return(0,n.Z)().get(`/flux/tail${e}log`,{headers:{zelidauth:t}})},justAPI(){return(0,n.Z)()},cancelToken(){return n.S}}},25448:(e,t,a)=>{e.exports=a.p+"img/logo.png"},84328:(e,t,a)=>{var n=a(65290),r=a(27578),o=a(6310),i=function(e){return function(t,a,i){var l,s=n(t),c=o(s),u=r(i,c);if(e&&a!==a){while(c>u)if(l=s[u++],l!==l)return!0}else for(;c>u;u++)if((e||u in s)&&s[u]===a)return e||u||0;return!e&&-1}};e.exports={includes:i(!0),indexOf:i(!1)}},5649:(e,t,a)=>{var n=a(67697),r=a(92297),o=TypeError,i=Object.getOwnPropertyDescriptor,l=n&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(e){return e instanceof TypeError}}();e.exports=l?function(e,t){if(r(e)&&!i(e,"length").writable)throw new o("Cannot set read only .length");return e.length=t}:function(e,t){return e.length=t}},8758:(e,t,a)=>{var n=a(36812),r=a(19152),o=a(82474),i=a(72560);e.exports=function(e,t,a){for(var l=r(t),s=i.f,c=o.f,u=0;u{var t=TypeError,a=9007199254740991;e.exports=function(e){if(e>a)throw t("Maximum allowed index exceeded");return e}},72739:e=>{e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},79989:(e,t,a)=>{var n=a(19037),r=a(82474).f,o=a(75773),i=a(11880),l=a(95014),s=a(8758),c=a(35266);e.exports=function(e,t){var a,u,d,p,m,v,g=e.target,h=e.global,f=e.stat;if(u=h?n:f?n[g]||l(g,{}):(n[g]||{}).prototype,u)for(d in t){if(m=t[d],e.dontCallGetSet?(v=r(u,d),p=v&&v.value):p=u[d],a=c(h?d:g+(f?".":"#")+d,e.forced),!a&&void 0!==p){if(typeof m==typeof p)continue;s(m,p)}(e.sham||p&&p.sham)&&o(m,"sham",!0),i(u,d,m,e)}}},94413:(e,t,a)=>{var n=a(68844),r=a(3689),o=a(6648),i=Object,l=n("".split);e.exports=r((function(){return!i("z").propertyIsEnumerable(0)}))?function(e){return"String"===o(e)?l(e,""):i(e)}:i},92297:(e,t,a)=>{var n=a(6648);e.exports=Array.isArray||function(e){return"Array"===n(e)}},35266:(e,t,a)=>{var n=a(3689),r=a(69985),o=/#|\.prototype\./,i=function(e,t){var a=s[l(e)];return a===u||a!==c&&(r(t)?n(t):!!t)},l=i.normalize=function(e){return String(e).replace(o,".").toLowerCase()},s=i.data={},c=i.NATIVE="N",u=i.POLYFILL="P";e.exports=i},6310:(e,t,a)=>{var n=a(43126);e.exports=function(e){return n(e.length)}},58828:e=>{var t=Math.ceil,a=Math.floor;e.exports=Math.trunc||function(e){var n=+e;return(n>0?a:t)(n)}},82474:(e,t,a)=>{var n=a(67697),r=a(22615),o=a(49556),i=a(75684),l=a(65290),s=a(18360),c=a(36812),u=a(68506),d=Object.getOwnPropertyDescriptor;t.f=n?d:function(e,t){if(e=l(e),t=s(t),u)try{return d(e,t)}catch(a){}if(c(e,t))return i(!r(o.f,e,t),e[t])}},72741:(e,t,a)=>{var n=a(54948),r=a(72739),o=r.concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return n(e,o)}},7518:(e,t)=>{t.f=Object.getOwnPropertySymbols},54948:(e,t,a)=>{var n=a(68844),r=a(36812),o=a(65290),i=a(84328).indexOf,l=a(57248),s=n([].push);e.exports=function(e,t){var a,n=o(e),c=0,u=[];for(a in n)!r(l,a)&&r(n,a)&&s(u,a);while(t.length>c)r(n,a=t[c++])&&(~i(u,a)||s(u,a));return u}},49556:(e,t)=>{var a={}.propertyIsEnumerable,n=Object.getOwnPropertyDescriptor,r=n&&!a.call({1:2},1);t.f=r?function(e){var t=n(this,e);return!!t&&t.enumerable}:a},19152:(e,t,a)=>{var n=a(76058),r=a(68844),o=a(72741),i=a(7518),l=a(85027),s=r([].concat);e.exports=n("Reflect","ownKeys")||function(e){var t=o.f(l(e)),a=i.f;return a?s(t,a(e)):t}},27578:(e,t,a)=>{var n=a(68700),r=Math.max,o=Math.min;e.exports=function(e,t){var a=n(e);return a<0?r(a+t,0):o(a,t)}},65290:(e,t,a)=>{var n=a(94413),r=a(74684);e.exports=function(e){return n(r(e))}},68700:(e,t,a)=>{var n=a(58828);e.exports=function(e){var t=+e;return t!==t||0===t?0:n(t)}},43126:(e,t,a)=>{var n=a(68700),r=Math.min;e.exports=function(e){return e>0?r(n(e),9007199254740991):0}},70560:(e,t,a)=>{var n=a(79989),r=a(90690),o=a(6310),i=a(5649),l=a(55565),s=a(3689),c=s((function(){return 4294967297!==[].push.call({length:4294967296},1)})),u=function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(e){return e instanceof TypeError}},d=c||!u();n({target:"Array",proto:!0,arity:1,forced:d},{push:function(e){var t=r(this),a=o(t),n=arguments.length;l(a+n);for(var s=0;s{a.r(t),a.d(t,{default:()=>ua});var n={};a.r(n),a.d(n,{_:()=>Ue,t:()=>je});var o=function(){var e=this,t=e._self._c;return t("layout-vertical",{scopedSlots:e._u([{key:"navbar",fn:function({toggleVerticalMenuActive:e}){return[t("navbar",{attrs:{"toggle-vertical-menu-active":e}})]}}])},[t("router-view")],1)},r=[],i=function(){var e=this,t=e._self._c;return t("div",{staticClass:"vertical-layout h-100",class:[e.layoutClasses],attrs:{"data-col":e.isNavMenuHidden?"1-column":null}},[t("b-navbar",{staticClass:"header-navbar navbar navbar-shadow align-items-center",class:[e.navbarTypeClass],attrs:{toggleable:!1,variant:e.navbarBackgroundColor}},[e._t("navbar",(function(){return[t("app-navbar-vertical-layout",{attrs:{"toggle-vertical-menu-active":e.toggleVerticalMenuActive}})]}),{toggleVerticalMenuActive:e.toggleVerticalMenuActive,navbarBackgroundColor:e.navbarBackgroundColor,navbarTypeClass:[...e.navbarTypeClass,"header-navbar navbar navbar-shadow align-items-center"]})],2),e.isNavMenuHidden?e._e():t("vertical-nav-menu",{attrs:{"is-vertical-menu-active":e.isVerticalMenuActive,"toggle-vertical-menu-active":e.toggleVerticalMenuActive},scopedSlots:e._u([{key:"header",fn:function(t){return[e._t("vertical-menu-header",null,null,t)]}}],null,!0)}),t("div",{staticClass:"sidenav-overlay",class:e.overlayClasses,on:{click:function(t){e.isVerticalMenuActive=!1}}}),t("transition",{attrs:{name:e.routerTransition,mode:"out-in"}},[t(e.layoutContentRenderer,{key:"layout-content-renderer-left"===e.layoutContentRenderer?e.$route.meta.navActiveLink||e.$route.name:null,tag:"component",scopedSlots:e._u([e._l(e.$scopedSlots,(function(t,a){return{key:a,fn:function(t){return[e._t(a,null,null,t)]}}}))],null,!0)})],1),t("footer",{staticClass:"footer footer-light",class:[e.footerTypeClass]},[e._t("footer",(function(){return[t("app-footer")]}))],2),e._t("customizer")],2)},l=[],s=a(20144),c=function(){var e=this,t=e._self._c;return t("p",{staticClass:"clearfix mb-0"},[t("span",{staticClass:"float-md-left d-block d-md-inline-block mt-25"},[t("b-link",{staticClass:"ml-25",attrs:{href:"https://github.com/runonflux/flux",target:"_blank",rel:"noopener noreferrer"}},[e._v("Flux, Your Gateway to a Decentralized World")])],1),t("span",{staticClass:"float-md-right d-none d-md-block"},[e._v("FluxOS "+e._s(`v${e.fluxVersion}`)+" ")])])},u=[],d=a(20629),p=a(67347),m=a(87066),v=a(34547),g=a(39055);const h={components:{BLink:p.we,ToastificationContent:v.Z},computed:{...(0,d.rn)("flux",["fluxVersion"])},mounted(){const e=this;g.Z.getFluxVersion().then((t=>{const a=t.data.data;this.$store.commit("flux/setFluxVersion",a),e.getLatestFluxVersion()})).catch((e=>{console.log(e),console.log(e.code),this.showToast("danger",e.toString())}))},methods:{getLatestFluxVersion(){const e=this;m["default"].get("https://raw.githubusercontent.com/runonflux/flux/master/package.json").then((t=>{t.data.version!==e.fluxVersion?this.showToast("danger","Flux needs to be updated!"):this.showToast("success","Flux is up to date")})).catch((e=>{console.log(e),this.showToast("danger","Error verifying recent version")}))},showToast(e,t){this.$toast({component:v.Z,props:{title:t,icon:"BellIcon",variant:e}})}}},f=h;var b=a(1001),x=(0,b.Z)(f,c,u,!1,null,null,null);const k=x.exports;var C=a(37307),w=a(71603),y=function(){var e=this,t=e._self._c;return t("div",{staticClass:"app-content content",class:[{"show-overlay":e.$store.state.app.shallShowOverlay},e.$route.meta.contentClass]},[t("div",{staticClass:"content-overlay"}),t("div",{staticClass:"header-navbar-shadow"}),t("div",{staticClass:"content-wrapper",class:"boxed"===e.contentWidth?"container p-0":null},[e._t("breadcrumb",(function(){return[t("app-breadcrumb")]})),t("div",{staticClass:"content-body"},[t("transition",{attrs:{name:e.routerTransition,mode:"out-in"}},[e._t("default")],2)],1)],2)])},M=[],_=function(){var e=this,t=e._self._c;return e.$route.meta.breadcrumb||e.$route.meta.pageTitle?t("b-row",{staticClass:"content-header"},[t("b-col",{staticClass:"content-header-left mb-2",attrs:{cols:"12",md:"9"}},[t("b-row",{staticClass:"breadcrumbs-top"},[t("b-col",{attrs:{cols:"12"}},[t("h2",{staticClass:"content-header-title float-left pr-1 mb-0"},[e._v(" "+e._s(e.$route.meta.pageTitle)+" ")]),t("div",{staticClass:"breadcrumb-wrapper"},[t("b-breadcrumb",[t("b-breadcrumb-item",{attrs:{to:"/"}},[t("feather-icon",{staticClass:"align-text-top",attrs:{icon:"HomeIcon",size:"16"}})],1),e._l(e.$route.meta.breadcrumb,(function(a){return t("b-breadcrumb-item",{key:a.text,attrs:{active:a.active,to:a.to}},[e._v(" "+e._s(a.text)+" ")])}))],2)],1)])],1)],1)],1):e._e()},Z=[],B=a(74825),I=a(90854),A=a(26253),L=a(50725),T=a(20266);const V={directives:{Ripple:T.Z},components:{BBreadcrumb:B.P,BBreadcrumbItem:I.g,BRow:A.T,BCol:L.l}},N=V;var S=(0,b.Z)(N,_,Z,!1,null,null,null);const $=S.exports,z={components:{AppBreadcrumb:$},setup(){const{routerTransition:e,contentWidth:t}=(0,C.Z)();return{routerTransition:e,contentWidth:t}}},R=z;var D=(0,b.Z)(R,y,M,!1,null,null,null);const P=D.exports;var F=function(){var e=this,t=e._self._c;return t("div",{staticClass:"app-content content",class:[{"show-overlay":e.$store.state.app.shallShowOverlay},e.$route.meta.contentClass]},[t("div",{staticClass:"content-overlay"}),t("div",{staticClass:"header-navbar-shadow"}),t("transition",{attrs:{name:e.routerTransition,mode:"out-in"}},[t("div",{staticClass:"content-area-wrapper",class:"boxed"===e.contentWidth?"container p-0":null},[e._t("breadcrumb",(function(){return[t("app-breadcrumb")]})),t("portal-target",{attrs:{name:"content-renderer-sidebar-left",slim:""}}),t("div",{staticClass:"content-right"},[t("div",{staticClass:"content-wrapper"},[t("div",{staticClass:"content-body"},[e._t("default")],2)])])],2)])],1)},O=[];const H={components:{AppBreadcrumb:$},setup(){const{routerTransition:e,contentWidth:t}=(0,C.Z)();return{routerTransition:e,contentWidth:t}}},G=H;var j=(0,b.Z)(G,F,O,!1,null,null,null);const U=j.exports;var W=function(){var e=this,t=e._self._c;return t("div",{staticClass:"app-content content",class:[{"show-overlay":e.$store.state.app.shallShowOverlay},e.$route.meta.contentClass]},[t("div",{staticClass:"content-overlay"}),t("div",{staticClass:"header-navbar-shadow"}),t("transition",{attrs:{name:e.routerTransition,mode:"out-in"}},[t("div",{staticClass:"content-wrapper clearfix",class:"boxed"===e.contentWidth?"container p-0":null},[e._t("breadcrumb",(function(){return[t("app-breadcrumb")]})),t("div",{staticClass:"content-detached content-right"},[t("div",{staticClass:"content-wrapper"},[t("div",{staticClass:"content-body"},[e._t("default")],2)])]),t("portal-target",{attrs:{name:"content-renderer-sidebar-detached-left",slim:""}})],2)])],1)},E=[];const q={components:{AppBreadcrumb:$},setup(){const{routerTransition:e,contentWidth:t}=(0,C.Z)();return{routerTransition:e,contentWidth:t}}},X=q;var K=(0,b.Z)(X,W,E,!1,null,null,null);const J=K.exports;var Y=function(){var e=this,t=e._self._c;return t("div",{staticClass:"main-menu menu-fixed menu-accordion menu-shadow",class:[{expanded:!e.isVerticalMenuCollapsed||e.isVerticalMenuCollapsed&&e.isMouseHovered},"semi-dark"===e.skin?"menu-dark":"menu-light"],on:{mouseenter:function(t){return e.updateMouseHovered(!0)},mouseleave:function(t){return e.updateMouseHovered(!1)},focus:function(t){return e.updateMouseHovered(!0)},blur:function(t){return e.updateMouseHovered(!1)}}},[t("div",{staticClass:"navbar-header expanded"},[e._t("header",(function(){return[t("ul",{staticClass:"nav navbar-nav flex-row"},[t("li",{staticClass:"nav-item mr-auto"},[t("b-link",{staticClass:"navbar-brand",attrs:{to:"/"}},[t("span",{staticClass:"brand-logo"},[t("b-img",{class:e.isVerticalMenuCollapsed?"collapsed-logo":"",attrs:{src:"dark"===e.skin?e.appLogoImageDark:e.appLogoImage,alt:"logo"}})],1)])],1),t("li",{staticClass:"nav-item nav-toggle"},[t("b-link",{staticClass:"nav-link modern-nav-toggle"},[t("feather-icon",{staticClass:"d-block d-xl-none",attrs:{icon:"XIcon",size:"20"},on:{click:e.toggleVerticalMenuActive}}),t("feather-icon",{staticClass:"d-none d-xl-block collapse-toggle-icon",attrs:{icon:e.collapseTogglerIconFeather,size:"20"},on:{click:e.toggleCollapsed}})],1)],1)])]}),{toggleVerticalMenuActive:e.toggleVerticalMenuActive,toggleCollapsed:e.toggleCollapsed,collapseTogglerIcon:e.collapseTogglerIcon})],2),t("div",{staticClass:"shadow-bottom",class:{"d-block":e.shallShadowBottom}}),t("vue-perfect-scrollbar",{staticClass:"main-menu-content scroll-area",attrs:{settings:e.perfectScrollbarSettings,tagname:"ul"},on:{"ps-scroll-y":t=>{e.shallShadowBottom=t.srcElement.scrollTop>0}}},[t("vertical-nav-menu-items",{key:e.isNavMenuCollapsed,staticClass:"navigation navigation-main",attrs:{items:e.isNavMenuCollapsed?e.navMenuItemsCollapsed:e.navMenuItems}})],1)],1)},Q=[],ee=a(91040),te=a.n(ee),ae=a(98156),ne=a(68934);const oe=[{header:"Dashboard"},{title:"Overview",icon:"chart-pie",route:"dashboard-overview"},{title:"Resources",icon:"server",route:"dashboard-resources"},{title:"Map",icon:"map-marker-alt",route:"dashboard-map"},{title:"Rewards",icon:"coins",route:"dashboard-rewards"},{title:"List",icon:"list-ul",route:"dashboard-list"}],re=[{header:"Applications"},{title:"Management",icon:"cogs",route:"apps-myapps"},{title:"Global Apps",icon:"globe",route:"apps-globalapps"},{title:"Register New App",icon:"regular/plus-square",route:"apps-registerapp"},{title:"Marketplace",icon:"shopping-basket",route:"apps-marketplace"}],ie=[{title:"Control",icon:"tools",id:"benchmark-control",children:[{title:"Help",icon:"question",route:"benchmark-control-help"},{title:"Start",icon:"play",route:"benchmark-control-start",privilege:["admin","fluxteam"]},{title:"Stop",icon:"power-off",route:"benchmark-control-stop",privilege:["admin"]},{title:"Restart",icon:"redo",route:"benchmark-control-restart",privilege:["admin","fluxteam"]}]}],le=[{title:"FluxNode",icon:"dice-d20",id:"benchmark-fluxnode",children:[{title:"Get Benchmarks",icon:"calculator",route:"benchmark-fluxnode-getbenchmarks"},{title:"Get Info",icon:"info",route:"benchmark-fluxnode-getinfo"}]}],se=[{title:"Benchmarks",icon:"microchip",children:[{title:"Get Status",icon:"tachometer-alt",route:"benchmark-benchmarks-getstatus"},{title:"Restart Benchmarks",icon:"redo",route:"benchmark-benchmarks-restartbenchmarks",privilege:["admin","fluxteam"]},{title:"Sign Transaction",icon:"bolt",route:"benchmark-benchmarks-signtransaction",privilege:["admin"]}]}],ce=[{header:"Benchmark"},...ie,...le,...se,{title:"Debug",icon:"bug",route:"benchmark-debug",id:"benchmark-debug",privilege:["admin","fluxteam"]}],ue=[{title:"Control",icon:"tools",children:[{title:"Get Info",icon:"info",route:"daemon-control-getinfo"},{title:"Help",icon:"question",route:"daemon-control-help"},{title:"Rescan Blockchain",icon:"search-plus",route:"daemon-control-rescanblockchain",privilege:["admin"]},{title:"Reindex Blockchain",icon:"address-book",route:"daemon-control-reindexblockchain",privilege:["admin"]},{title:"Start",icon:"play",route:"daemon-control-start",privilege:["admin","fluxteam"]},{title:"Stop",icon:"power-off",route:"daemon-control-stop",privilege:["admin"]},{title:"Restart",icon:"redo",route:"daemon-control-restart",privilege:["admin","fluxteam"]}]}],de=[{title:"FluxNode",icon:"dice-d20",children:[{title:"Get FluxNode Status",icon:"info",route:"daemon-fluxnode-getstatus"},{title:"List FluxNodes",icon:"list-ul",route:"daemon-fluxnode-listfluxnodes"},{title:"View FluxNode List",icon:"regular/list-alt",route:"daemon-fluxnode-viewfluxnodelist"},{title:"Get FluxNode Count",icon:"layer-group",route:"daemon-fluxnode-getfluxnodecount"},{title:"Get Start List",icon:"play",route:"daemon-fluxnode-getstartlist"},{title:"Get DOS List",icon:"hammer",route:"daemon-fluxnode-getdoslist"},{title:"Current Winner",icon:"trophy",route:"daemon-fluxnode-currentwinner"}]}],pe=[{title:"Benchmarks",icon:"microchip",id:"daemon-benchmarks",children:[{title:"Get Benchmarks",icon:"calculator",route:"daemon-benchmarks-getbenchmarks"},{title:"Get Bench Status",icon:"tachometer-alt",route:"daemon-benchmarks-getstatus"},{title:"Start Benchmark",icon:"play",route:"daemon-benchmarks-start",privilege:["admin","fluxteam"]},{title:"Stop Benchmark",icon:"power-off",route:"daemon-benchmarks-stop",privilege:["admin","fluxteam"]}]}],me=[{title:"Get Blockchain Info",icon:"link",route:"daemon-blockchain-getchaininfo"}],ve=[{title:"Get Mining Info",icon:"gem",route:"daemon-mining-getmininginfo"}],ge=[{title:"Get Network Info",icon:"network-wired",route:"daemon-network-getnetworkinfo"}],he=[{title:"Get Raw Transaction",icon:"code",route:"daemon-transaction-getrawtransaction"}],fe=[{title:"Validate Address",icon:"check-double",route:"daemon-util-validateaddress"}],be=[{title:"Get Wallet Info",icon:"wallet",route:"daemon-wallet-getwalletinfo",privilege:["user","admin","fluxteam"]}],xe=[{header:"Daemon"},...ue,...de,...pe,...me,...ve,...ge,...he,...fe,...be,{title:"Debug",icon:"bug",route:"daemon-debug",id:"daemon-debug",privilege:["admin","fluxteam"]}],ke=[{header:"Flux"},{title:"Node Status",icon:"heartbeat",route:"flux-nodestatus"},{title:"Flux Network",icon:"network-wired",route:"flux-fluxnetwork"},{title:"Debug",icon:"bug",route:"flux-debug",privilege:["admin","fluxteam"]}],Ce=[{header:"Administration"},{title:"Explorer",route:"explorer",icon:"search"},...xe,...ce,...ke,{title:"Local Apps",icon:"upload",route:"apps-localapps"},{title:"Logged Sessions",icon:"regular/id-badge",route:"fluxadmin-loggedsessions",privilege:["admin","fluxteam"]},{title:"Manage Flux",icon:"dice-d20",route:"fluxadmin-manageflux",privilege:["admin","fluxteam"]},{title:"Manage Daemon",icon:"cog",route:"fluxadmin-managedaemon",privilege:["admin","fluxteam"]},{title:"Manage Benchmark",icon:"microchip",route:"fluxadmin-managebenchmark",privilege:["admin","fluxteam"]},{title:"Manage Users",icon:"fingerprint",route:"fluxadmin-manageusers",privilege:["admin","fluxteam"]},{title:"My FluxShare",icon:"regular/hdd",route:"apps-fluxsharestorage",privilege:["admin"]}],{xdaoOpenProposals:we}=(0,C.Z)(),ye=[{header:"XDAO"},{title:"XDAO ",icon:"clipboard-list",tag:we,route:"xdao-app"}],Me=[{title:"Home",route:"home",icon:"home"},...oe,...re,...ye,...Ce],_e=[{title:"Dashboard",icon:"desktop",spacing:!0,children:[{title:"Overview",icon:"chart-pie",route:"dashboard-overview"},{title:"Resources",icon:"server",route:"dashboard-resources"},{title:"Map",icon:"map-marker-alt",route:"dashboard-map"},{title:"Rewards",icon:"coins",route:"dashboard-rewards"},{title:"List",icon:"list-ul",route:"dashboard-list"}]}],Ze=[{title:"Applications",icon:"laptop-code",spacing:!0,children:[{title:"Management",icon:"cogs",route:"apps-myapps"},{title:"Global Apps",icon:"globe",route:"apps-globalapps"},{title:"Register New App",icon:"regular/plus-square",route:"apps-registerapp"},{title:"Marketplace",icon:"shopping-basket",route:"apps-marketplace"}]}],Be=[{title:"Benchmark",icon:"wrench",spacing:!0,children:[...ie,...le,...se,{title:"Debug",icon:"bug",route:"benchmark-debug",id:"benchmark-debug",privilege:["admin","fluxteam"]}]}],Ie=[{title:"Daemon",icon:"bolt",spacing:!0,children:[...ue,...de,...pe,...me,...ve,...ge,...he,...fe,...be,{title:"Debug",icon:"bug",route:"daemon-debug",id:"daemon-debug",privilege:["admin","fluxteam"]}]}],Ae=a(25448),Le=[{title:"Flux",image:Ae,spacing:!0,children:[{title:"Node Status",icon:"heartbeat",route:"flux-nodestatus"},{title:"Flux Network",icon:"network-wired",route:"flux-fluxnetwork"},{title:"Debug",icon:"bug",route:"flux-debug",privilege:["admin","fluxteam"]}]}],Te=[{title:"Administration",icon:"clipboard-list",spacing:!0,children:[{title:"Explorer",route:"explorer",icon:"search"},...Ie,...Be,...Le,{title:"Local Apps",icon:"upload",route:"apps-localapps"},{title:"Logged Sessions",icon:"regular/id-badge",route:"fluxadmin-loggedsessions",privilege:["admin","fluxteam"]},{title:"Manage Flux",icon:"dice-d20",route:"fluxadmin-manageflux",privilege:["admin","fluxteam"]},{title:"Manage Daemon",icon:"cog",route:"fluxadmin-managedaemon",privilege:["admin","fluxteam"]},{title:"Manage Benchmark",icon:"microchip",route:"fluxadmin-managebenchmark",privilege:["admin","fluxteam"]},{title:"Manage Users",icon:"fingerprint",route:"fluxadmin-manageusers",privilege:["admin","fluxteam"]},{title:"My FluxShare",icon:"regular/hdd",route:"apps-fluxsharestorage",privilege:["admin"]}]}],{xdaoOpenProposals:Ve}=(0,C.Z)(),Ne=[{title:"XDAO",icon:"id-card",tag:Ve,spacing:!0,children:[{title:"XDAO ",icon:"clipboard-list",route:"xdao-app"}]}],Se=[{title:"Home",route:"home",icon:"home"},..._e,...Ze,...Ne,...Te];var $e=function(){var e=this,t=e._self._c;return t("ul",e._l(e.items,(function(a){return t(e.resolveNavItemComponent(a),{key:a.id||a.header||a.title,tag:"component",attrs:{item:a}})})),1)},ze=[],Re=a(23646),De=a(24019);const Pe=e=>e.header?"vertical-nav-menu-header":e.children?"vertical-nav-menu-group":"vertical-nav-menu-link",Fe=e=>{if((0,Re.Kn)(e.route)){const{route:t}=De.Z.resolve(e.route);return t.name}return e.route},Oe=e=>{const t=De.Z.currentRoute.matched,a=Fe(e);return!!a&&t.some((e=>e.name===a||e.meta.navActiveLink===a))},He=e=>{const t=De.Z.currentRoute.matched;return e.some((e=>e.children?He(e.children):Oe(e,t)))},Ge=e=>(0,s.computed)((()=>{const t={};return e.route?t.to="string"===typeof e.route?{name:e.route}:e.route:(t.href=e.href,t.target="_blank",t.rel="nofollow"),t.target||(t.target=e.target||null),t})),je=e=>{const t=(0,s.getCurrentInstance)().proxy;return t.$t?t.$t(e):e},Ue=null,We=()=>({...n}),{t:Ee}=We(),qe={props:{item:{type:Object,required:!0}},computed:{...(0,d.rn)("flux",["privilege"])},methods:{hasPrivilegeLevel(e){return!e.privilege||e.privilege.some((e=>e===this.privilege))}},render(e){if(this.hasPrivilegeLevel(this.item)){const t=e("span",{},Ee(this.item.header));return e("li",{class:"navigation-header text-truncate"},[t])}return e()}};var Xe=function(){var e=this,t=e._self._c;return e.hasPrivilegeLevel(e.item)?t("li",{staticClass:"nav-item",class:{active:e.isActive,disabled:e.item.disabled}},[t("b-link",e._b({staticClass:"d-flex align-items-center"},"b-link",e.linkProps,!1),[t("v-icon",{attrs:{name:e.item.icon||"regular/circle"}}),t("span",{staticClass:"menu-title text-truncate"},[e._v(e._s(e.t(e.item.title)))]),e.item.tag&&e.item.tag.value>0?t("b-badge",{staticClass:"mr-1 ml-auto",attrs:{pill:"",variant:e.item.tagVariant||"primary"}},[e._v(" "+e._s(e.item.tag.value)+" ")]):e._e()],1)],1):e._e()},Ke=[],Je=a(26034);function Ye(e){const t=(0,s.ref)(!1),a=Ge(e),n=()=>{t.value=Oe(e)};return{isActive:t,linkProps:a,updateIsActive:n}}const Qe={watch:{$route:{immediate:!0,handler(){this.updateIsActive()}}}},et={components:{BLink:p.we,BBadge:Je.k},mixins:[Qe],props:{item:{type:Object,required:!0}},setup(e){const{isActive:t,linkProps:a,updateIsActive:n}=Ye(e.item),{t:o}=We();return{isActive:t,linkProps:a,updateIsActive:n,t:o}},computed:{...(0,d.rn)("flux",["privilege"])},methods:{hasPrivilegeLevel(e){return!e.privilege||e.privilege.some((e=>e===this.privilege))}}},tt=et;var at=(0,b.Z)(tt,Xe,Ke,!1,null,null,null);const nt=at.exports;var ot=function(){var e=this,t=e._self._c;return e.hasPrivilegeLevel(e.item)?t("li",{staticClass:"nav-item has-sub",class:{open:e.isOpen,disabled:e.item.disabled,"sidebar-group-active":e.isActive,"sidebar-group-spacing":e.item.spacing}},[t("b-link",{staticClass:"d-flex align-items-center",on:{click:()=>e.updateGroupOpen(!e.isOpen)}},[e.item.icon?t("v-icon",{attrs:{name:e.item.icon||"regular/circle"}}):e._e(),e.item.image?t("b-img",{staticClass:"sidebar-menu-image",attrs:{src:e.item.image}}):e._e(),t("span",{staticClass:"menu-title text-truncate"},[e._v(e._s(e.t(e.item.title)))]),e.item.tag&&e.item.tag.value>0?t("b-badge",{staticClass:"mr-1 ml-auto",attrs:{pill:"",variant:e.item.tagVariant||"primary"}},[e._v(" "+e._s(e.item.tag.value)+" ")]):e._e()],1),t("b-collapse",{staticClass:"menu-content",attrs:{tag:"ul"},model:{value:e.isOpen,callback:function(t){e.isOpen=t},expression:"isOpen"}},e._l(e.item.children,(function(a){return t(e.resolveNavItemComponent(a),{key:a.header||a.title,ref:"groupChild",refInFor:!0,tag:"component",attrs:{item:a}})})),1)],1):e._e()},rt=[],it=a(11688),lt=(a(70560),a(73507));function st(e){const t=(0,s.computed)((()=>lt.Z.state.verticalMenu.isVerticalMenuCollapsed));(0,s.watch)(t,(e=>{a.value||(e?o.value=!1:!e&&i.value&&(o.value=!0))}));const a=(0,s.inject)("isMouseHovered");(0,s.watch)(a,(e=>{t.value&&(o.value=e&&i.value)}));const n=(0,s.inject)("openGroups");(0,s.watch)(n,(t=>{const a=t[t.length-1];a===e.title||i.value||c(a)||(o.value=!1)}));const o=(0,s.ref)(!1);(0,s.watch)(o,(t=>{t&&n.value.push(e.title)}));const r=e=>{o.value=e},i=(0,s.ref)(!1);(0,s.watch)(i,(e=>{e&&t.value||(o.value=e)}));const l=()=>{i.value=He(e.children)},c=t=>e.children.some((e=>e.title===t));return{isOpen:o,isActive:i,updateGroupOpen:r,openGroups:n,isMouseHovered:a,updateIsActive:l}}const ct={watch:{$route:{immediate:!0,handler(){this.updateIsActive()}}}},ut={name:"VerticalNavMenuGroup",components:{VerticalNavMenuHeader:qe,VerticalNavMenuLink:nt,BLink:p.we,BBadge:Je.k,BCollapse:it.k,BImg:ae.s},mixins:[ct],props:{item:{type:Object,required:!0}},setup(e){const{isOpen:t,isActive:a,updateGroupOpen:n,updateIsActive:o}=st(e.item),{t:r}=We();return{resolveNavItemComponent:Pe,isOpen:t,isActive:a,updateGroupOpen:n,updateIsActive:o,t:r}},computed:{...(0,d.rn)("flux",["privilege"])},methods:{hasPrivilegeLevel(e){return!e.privilege||e.privilege.some((e=>e===this.privilege))}}},dt=ut;var pt=(0,b.Z)(dt,ot,rt,!1,null,null,null);const mt=pt.exports,vt={components:{VerticalNavMenuHeader:qe,VerticalNavMenuLink:nt,VerticalNavMenuGroup:mt},props:{items:{type:Array,required:!0}},setup(){return(0,s.provide)("openGroups",(0,s.ref)([])),{resolveNavItemComponent:Pe}}},gt=vt;var ht=(0,b.Z)(gt,$e,ze,!1,null,null,null);const ft=ht.exports;function bt(e){const t=(0,s.computed)({get:()=>lt.Z.state.verticalMenu.isVerticalMenuCollapsed,set:e=>{lt.Z.commit("verticalMenu/UPDATE_VERTICAL_MENU_COLLAPSED",e)}}),a=(0,s.computed)((()=>e.isVerticalMenuActive?t.value?"unpinned":"pinned":"close")),n=(0,s.ref)(!1),o=e=>{n.value=e},r=()=>{t.value=!t.value};return{isMouseHovered:n,isVerticalMenuCollapsed:t,collapseTogglerIcon:a,toggleCollapsed:r,updateMouseHovered:o}}const xt=a(80129),kt=a(97218),Ct={components:{VuePerfectScrollbar:te(),VerticalNavMenuItems:ft,BLink:p.we,BImg:ae.s},props:{isVerticalMenuActive:{type:Boolean,required:!0},toggleVerticalMenuActive:{type:Function,required:!0}},setup(e){const{isMouseHovered:t,isVerticalMenuCollapsed:a,collapseTogglerIcon:n,toggleCollapsed:o,updateMouseHovered:r}=bt(e),i=(0,s.ref)(null);(0,s.onBeforeMount)((()=>{const e=localStorage.getItem("zelidauth"),t=xt.parse(e);i.value=t.zelid}));const{isNavMenuCollapsed:l,xdaoOpenProposals:c,skin:u}=(0,C.Z)(),d=async e=>{const t=await kt.get(`https://stats.runonflux.io/proposals/voteInformation?hash=${e.hash}&zelid=${i.value}`);return t.data},p=async()=>{let e=0;const t=await kt.get("https://stats.runonflux.io/proposals/listProposals").catch((()=>({data:{status:"fail"}})));if("success"===t.data.status){const a=t.data.data.filter((e=>"Open"===e.status));a.forEach((async t=>{const a=await d(t);"success"!==a.status||null!=a.data&&0!==a.data.length||(e+=1,c.value=e)}))}};setInterval((()=>{p()}),6e5),p();const m=(0,s.ref)(!1);(0,s.provide)("isMouseHovered",t);const v={maxScrollbarLength:60,wheelPropagation:!1},g=(0,s.computed)((()=>"unpinned"===n.value?"CircleIcon":"DiscIcon")),{appName:h,appLogoImageDark:f,appLogoImage:b}=ne.$themeConfig.app;return{navMenuItems:Me,navMenuItemsCollapsed:Se,perfectScrollbarSettings:v,isVerticalMenuCollapsed:a,collapseTogglerIcon:n,toggleCollapsed:o,isMouseHovered:t,updateMouseHovered:r,collapseTogglerIconFeather:g,shallShadowBottom:m,skin:u,isNavMenuCollapsed:l,appName:h,appLogoImage:b,appLogoImageDark:f}}},wt=Ct;var yt=(0,b.Z)(wt,Y,Q,!1,null,null,null);const Mt=yt.exports;function _t(e,t){const a=(0,s.ref)(!0),n=()=>{a.value=!a.value},o=(0,s.ref)("xl"),r=(0,s.computed)((()=>lt.Z.state.verticalMenu.isVerticalMenuCollapsed)),i=(0,s.computed)((()=>{const n=[];return"xl"===o.value||"xxl"===o.value?(n.push("vertical-menu-modern"),n.push(r.value?"menu-collapsed":"menu-expanded")):(n.push("vertical-overlay-menu"),n.push(a.value?"menu-open":"menu-hide")),n.push(`navbar-${e.value}`),"sticky"===t.value&&n.push("footer-fixed"),"static"===t.value&&n.push("footer-static"),"hidden"===t.value&&n.push("footer-hidden"),n}));(0,s.watch)(o,(e=>{a.value="xxl"===e||"xl"===e}));const l=()=>{window.innerWidth>=1600?o.value="xxl":window.innerWidth>=1200?o.value="xl":window.innerWidth>=992?o.value="lg":window.innerWidth>=768?o.value="md":window.innerWidth>=576?o.value="sm":o.value="xs"},c=(0,s.computed)((()=>"xxl"!==o.value&&"xl"!==o.value&&a.value?"show":null)),u=(0,s.computed)((()=>"sticky"===e.value?"fixed-top":"static"===e.value?"navbar-static-top":"hidden"===e.value?"d-none":"floating-nav")),d=(0,s.computed)((()=>"static"===t.value?"footer-static":"hidden"===t.value?"d-none":""));return{isVerticalMenuActive:a,toggleVerticalMenuActive:n,isVerticalMenuCollapsed:r,layoutClasses:i,overlayClasses:c,navbarTypeClass:u,footerTypeClass:d,resizeHandler:l}}const Zt={watch:{$route(){this.$store.state.app.windowWidth{window.removeEventListener("resize",d)})),{isVerticalMenuActive:r,toggleVerticalMenuActive:i,isVerticalMenuCollapsed:l,overlayClasses:u,layoutClasses:c,navbarTypeClass:p,footerTypeClass:m,routerTransition:e,navbarBackgroundColor:t,isNavMenuHidden:o}},computed:{layoutContentRenderer(){const e=this.$route.meta.contentRenderer;return"sidebar-left"===e?"layout-content-renderer-left":"sidebar-left-detached"===e?"layout-content-renderer-left-detached":"layout-content-renderer-default"}}},It=Bt;var At=(0,b.Z)(It,i,l,!1,null,null,null);const Lt=At.exports;var Tt=function(){var e=this,t=e._self._c;return t("div",{staticClass:"navbar-container d-flex content align-items-center"},[t("ul",{staticClass:"nav navbar-nav d-xl-none"},[t("li",{staticClass:"nav-item"},[t("b-link",{staticClass:"nav-link",on:{click:e.toggleVerticalMenuActive}},[t("feather-icon",{attrs:{icon:"MenuIcon",size:"21"}})],1)],1)]),t("div",{staticClass:"bookmark-wrapper align-items-center flex-grow-1 d-none d-md-flex"},[t("b-dropdown",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(113, 102, 240, 0.15)",expression:"'rgba(113, 102, 240, 0.15)'",modifiers:{400:!0}}],attrs:{text:e.backendURL,variant:"outline-primary",size:"sm"}},[t("b-dropdown-item-button",{on:{click:function(t){return e.changeBackendURL(`http://${e.userconfig.externalip}:${e.config.apiPort}`)}}},[e._v(" http://"+e._s(e.userconfig.externalip)+":"+e._s(e.config.apiPort)+" ")]),t("b-dropdown-divider"),t("b-dropdown-item-button",{on:{click:function(t){return e.changeBackendURL("https://api.runonflux.io")}}},[e._v(" https://api.runonflux.io ")]),t("b-dropdown-divider"),t("b-form-input",{attrs:{id:"dropdown-form-custom",type:"text",size:"sm",placeholder:"Custom Backend"},on:{input:function(t){return e.changeBackendURL(e.customBackend)}},model:{value:e.customBackend,callback:function(t){e.customBackend=t},expression:"customBackend"}})],1)],1),t("b-navbar-nav",{staticClass:"nav align-items-center ml-auto"},[e._v(" "+e._s(e.zelid)+" "),t("dark-Toggler",{staticClass:"d-block"}),t("menu-Collapse-Toggler",{staticClass:"d-block"}),"none"!==e.privilege?t("b-button",{attrs:{variant:"outline-primary",size:"sm"},on:{click:e.logout}},[e._v(" Logout ")]):e._e()],1)],1)},Vt=[],Nt=a(29852),St=a(31642),$t=a(2332),zt=a(41294),Rt=a(15193),Dt=a(22183),Pt=function(){var e=this,t=e._self._c;return t("b-nav-item",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover",modifiers:{hover:!0}}],attrs:{title:"Toggle Dark Mode"},on:{click:function(t){e.skin=e.isDark?"light":"dark"}}},[t("feather-icon",{attrs:{size:"21",icon:(e.isDark?"Sun":"Moon")+"Icon"}})],1)},Ft=[],Ot=a(32450),Ht=a(5870);const Gt={components:{BNavItem:Ot.r},directives:{"b-tooltip":Ht.o},setup(){const{skin:e}=(0,C.Z)(),t=(0,s.computed)((()=>"dark"===e.value));return{skin:e,isDark:t}}},jt=Gt;var Ut=(0,b.Z)(jt,Pt,Ft,!1,null,null,null);const Wt=Ut.exports;var Et=function(){var e=this,t=e._self._c;return t("b-nav-item",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover",modifiers:{hover:!0}}],staticClass:"menu-toggler",attrs:{title:"Toggle Menu Style"},on:{click:function(t){e.isNavMenuCollapsed=!e.isCollapsed}}},[t("v-icon",{attrs:{size:"21",name:""+(e.isCollapsed?"bars":"align-left")}})],1)},qt=[];const Xt={components:{BNavItem:Ot.r},directives:{"b-tooltip":Ht.o},setup(){const{isNavMenuCollapsed:e}=(0,C.Z)(),t=(0,s.computed)((()=>!0===e.value));return{isNavMenuCollapsed:e,isCollapsed:t}}},Kt=Xt;var Jt=(0,b.Z)(Kt,Et,qt,!1,null,"2ed358b2",null);const Yt=Jt.exports;var Qt=a(5449),ea=a(34369);const ta=a(80129),aa=a(58971),na={components:{BLink:p.we,BNavbarNav:Nt.o,BDropdown:St.R,BDropdownItemButton:$t.t,BDropdownDivider:zt.a,BButton:Rt.T,BFormInput:Dt.e,DarkToggler:Wt,MenuCollapseToggler:Yt,ToastificationContent:v.Z},directives:{Ripple:T.Z},props:{toggleVerticalMenuActive:{type:Function,default:()=>{}}},data(){return{backendURL:"",customBackend:""}},computed:{...(0,d.rn)("flux",["userconfig","config","privilege","zelid"])},mounted(){const{protocol:e,hostname:t,port:a}=window.location;let n="";n+=e,n+="//";const o=/[A-Za-z]/g;if(t.split("-")[4]){const e=t.split("-"),a=e[4].split("."),o=+a[0]+1;a[0]=o.toString(),a[2]="api",e[4]="",n+=e.join("-"),n+=a.join(".")}else if(t.match(o)){const e=t.split(".");e[0]="api",n+=e.join(".")}else{if("string"===typeof t&&this.$store.commit("flux/setUserIp",t),+a>16100){const e=+a+1;this.$store.commit("flux/setFluxPort",e)}n+=t,n+=":",n+=this.config.apiPort}this.backendURL=aa.get("backendURL")||n},methods:{changeBackendURL(e){console.log(e),aa.set("backendURL",e),this.backendURL=e},showToast(e,t){this.$toast({component:v.Z,props:{title:t,icon:"BellIcon",variant:e}})},async logout(){const e=localStorage.getItem("zelidauth"),t=ta.parse(e);localStorage.removeItem("zelidauth"),this.$store.commit("flux/setPrivilege","none"),this.$store.commit("flux/setZelid",""),console.log(t),ea.Z.logoutCurrentSession(e).then((e=>{console.log(e),"error"===e.data.status?console.log(e.data.data.message):(this.showToast("success",e.data.data.message),"/"===this.$route.path?window.location.reload():this.$router.push({name:"home"}))})).catch((e=>{console.log(e),this.showToast("danger",e.toString())}));try{await Qt.ZP.auth().signOut()}catch(a){console.log(a)}}}},oa=na;var ra=(0,b.Z)(oa,Tt,Vt,!1,null,null,null);const ia=ra.exports,la={components:{LayoutVertical:Lt,Navbar:ia},data(){return{}}},sa=la;var ca=(0,b.Z)(sa,o,r,!1,null,null,null);const ua=ca.exports},39055:(e,t,a)=>{a.d(t,{Z:()=>o});var n=a(80914);const o={softUpdateFlux(e){return(0,n.Z)().get("/flux/softupdateflux",{headers:{zelidauth:e}})},softUpdateInstallFlux(e){return(0,n.Z)().get("/flux/softupdatefluxinstall",{headers:{zelidauth:e}})},updateFlux(e){return(0,n.Z)().get("/flux/updateflux",{headers:{zelidauth:e}})},hardUpdateFlux(e){return(0,n.Z)().get("/flux/hardupdateflux",{headers:{zelidauth:e}})},rebuildHome(e){return(0,n.Z)().get("/flux/rebuildhome",{headers:{zelidauth:e}})},updateDaemon(e){return(0,n.Z)().get("/flux/updatedaemon",{headers:{zelidauth:e}})},reindexDaemon(e){return(0,n.Z)().get("/flux/reindexdaemon",{headers:{zelidauth:e}})},updateBenchmark(e){return(0,n.Z)().get("/flux/updatebenchmark",{headers:{zelidauth:e}})},getFluxVersion(){return(0,n.Z)().get("/flux/version")},broadcastMessage(e,t){const a=t,o={headers:{zelidauth:e}};return(0,n.Z)().post("/flux/broadcastmessage",JSON.stringify(a),o)},connectedPeers(){return(0,n.Z)().get(`/flux/connectedpeers?timestamp=${Date.now()}`)},connectedPeersInfo(){return(0,n.Z)().get(`/flux/connectedpeersinfo?timestamp=${Date.now()}`)},incomingConnections(){return(0,n.Z)().get(`/flux/incomingconnections?timestamp=${Date.now()}`)},incomingConnectionsInfo(){return(0,n.Z)().get(`/flux/incomingconnectionsinfo?timestamp=${Date.now()}`)},addPeer(e,t){return(0,n.Z)().get(`/flux/addpeer/${t}`,{headers:{zelidauth:e}})},removePeer(e,t){return(0,n.Z)().get(`/flux/removepeer/${t}`,{headers:{zelidauth:e}})},removeIncomingPeer(e,t){return(0,n.Z)().get(`/flux/removeincomingpeer/${t}`,{headers:{zelidauth:e}})},adjustKadena(e,t,a){return(0,n.Z)().get(`/flux/adjustkadena/${t}/${a}`,{headers:{zelidauth:e}})},adjustRouterIP(e,t){return(0,n.Z)().get(`/flux/adjustrouterip/${t}`,{headers:{zelidauth:e}})},adjustBlockedPorts(e,t){const a={blockedPorts:t},o={headers:{zelidauth:e}};return(0,n.Z)().post("/flux/adjustblockedports",a,o)},adjustAPIPort(e,t){return(0,n.Z)().get(`/flux/adjustapiport/${t}`,{headers:{zelidauth:e}})},adjustBlockedRepositories(e,t){const a={blockedRepositories:t},o={headers:{zelidauth:e}};return(0,n.Z)().post("/flux/adjustblockedrepositories",a,o)},getKadenaAccount(){const e={headers:{"x-apicache-bypass":!0}};return(0,n.Z)().get("/flux/kadena",e)},getRouterIP(){const e={headers:{"x-apicache-bypass":!0}};return(0,n.Z)().get("/flux/routerip",e)},getBlockedPorts(){const e={headers:{"x-apicache-bypass":!0}};return(0,n.Z)().get("/flux/blockedports",e)},getAPIPort(){const e={headers:{"x-apicache-bypass":!0}};return(0,n.Z)().get("/flux/apiport",e)},getBlockedRepositories(){const e={headers:{"x-apicache-bypass":!0}};return(0,n.Z)().get("/flux/blockedrepositories",e)},getMarketPlaceURL(){return(0,n.Z)().get("/flux/marketplaceurl")},getZelid(){const e={headers:{"x-apicache-bypass":!0}};return(0,n.Z)().get("/flux/zelid",e)},getStaticIpInfo(){return(0,n.Z)().get("/flux/staticip")},restartFluxOS(e){const t={headers:{zelidauth:e,"x-apicache-bypass":!0}};return(0,n.Z)().get("/flux/restart",t)},tailFluxLog(e,t){return(0,n.Z)().get(`/flux/tail${e}log`,{headers:{zelidauth:t}})},justAPI(){return(0,n.Z)()},cancelToken(){return n.S}}},25448:(e,t,a)=>{e.exports=a.p+"img/logo.png"}}]); \ No newline at end of file diff --git a/HomeUI/dist/js/7463.js b/HomeUI/dist/js/7463.js index 4cf0f0005..4441b8dbe 100644 --- a/HomeUI/dist/js/7463.js +++ b/HomeUI/dist/js/7463.js @@ -1 +1 @@ -"use strict";(globalThis["webpackChunkflux"]=globalThis["webpackChunkflux"]||[]).push([[7463],{34547:(t,e,a)=>{a.d(e,{Z:()=>c});var s=function(){var t=this,e=t._self._c;return e("div",{staticClass:"toastification"},[e("div",{staticClass:"d-flex align-items-start"},[e("b-avatar",{staticClass:"mr-75 flex-shrink-0",attrs:{variant:t.variant,size:"1.8rem"}},[e("feather-icon",{attrs:{icon:t.icon,size:"15"}})],1),e("div",{staticClass:"d-flex flex-grow-1"},[e("div",[t.title?e("h5",{staticClass:"mb-0 font-weight-bolder toastification-title",class:`text-${t.variant}`,domProps:{textContent:t._s(t.title)}}):t._e(),t.text?e("small",{staticClass:"d-inline-block text-body",domProps:{textContent:t._s(t.text)}}):t._e()]),e("span",{staticClass:"cursor-pointer toastification-close-icon ml-auto",on:{click:function(e){return t.$emit("close-toast")}}},[t.hideClose?t._e():e("feather-icon",{staticClass:"text-body",attrs:{icon:"XIcon"}})],1)])],1)])},n=[],r=a(47389);const l={components:{BAvatar:r.SH},props:{variant:{type:String,default:"primary"},icon:{type:String,default:null},title:{type:String,default:null},text:{type:String,default:null},hideClose:{type:Boolean,default:!1}}},o=l;var i=a(1001),d=(0,i.Z)(o,s,n,!1,null,"22d964ca",null);const c=d.exports},51748:(t,e,a)=>{a.d(e,{Z:()=>c});var s=function(){var t=this,e=t._self._c;return e("dl",{staticClass:"row",class:t.classes},[e("dt",{staticClass:"col-sm-3"},[t._v(" "+t._s(t.title)+" ")]),t.href.length>0?e("dd",{staticClass:"col-sm-9 mb-0",class:`text-${t.variant}`},[t.href.length>0?e("b-link",{attrs:{href:t.href,target:"_blank",rel:"noopener noreferrer"}},[t._v(" "+t._s(t.data.length>0?t.data:t.number!==Number.MAX_VALUE?t.number:"")+" ")]):t._e()],1):t.click?e("dd",{staticClass:"col-sm-9 mb-0",class:`text-${t.variant}`,on:{click:function(e){return t.$emit("click")}}},[e("b-link",[t._v(" "+t._s(t.data.length>0?t.data:t.number!==Number.MAX_VALUE?t.number:"")+" ")])],1):e("dd",{staticClass:"col-sm-9 mb-0",class:`text-${t.variant}`},[t._v(" "+t._s(t.data.length>0?t.data:t.number!==Number.MAX_VALUE?t.number:"")+" ")])])},n=[],r=a(67347);const l={components:{BLink:r.we},props:{title:{type:String,required:!0},classes:{type:String,required:!1,default:"mb-1"},data:{type:String,required:!1,default:""},number:{type:Number,required:!1,default:Number.MAX_VALUE},variant:{type:String,required:!1,default:"secondary"},href:{type:String,required:!1,default:""},click:{type:Boolean,required:!1,default:!1}}},o=l;var i=a(1001),d=(0,i.Z)(o,s,n,!1,null,null,null);const c=d.exports},7463:(t,e,a)=>{a.r(e),a.d(e,{default:()=>p});var s=function(){var t=this,e=t._self._c;return""!==t.callResponse.data?e("b-card",{attrs:{title:"Get Benchmarks"}},[t.callResponse.data.status?e("list-entry",{attrs:{title:"Status",data:t.callResponse.data.status}}):t._e(),t.callResponse.data.time?e("list-entry",{attrs:{title:"Time",data:new Date(1e3*t.callResponse.data.time).toLocaleString("en-GB",t.timeoptions.short)}}):t._e(),t.callResponse.data.ipaddress?e("list-entry",{attrs:{title:"IP Address",data:t.callResponse.data.ipaddress}}):t._e(),t.callResponse.data.cores?e("list-entry",{attrs:{title:"CPU Cores",number:t.callResponse.data.cores}}):t._e(),t.callResponse.data.ram?e("list-entry",{attrs:{title:"RAM",data:`${t.callResponse.data.ram} GB`}}):t._e(),t.callResponse.data.disksinfo&&t.callResponse.data.disksinfo.length>0?e("list-entry",{attrs:{title:"Disk(s) Info (Name/Size(GB)/Write Speed(MB/s))",data:`${JSON.stringify(t.callResponse.data.disksinfo)}`}}):t._e(),t.callResponse.data.eps?e("list-entry",{attrs:{title:"CPU Speed",data:`${t.callResponse.data.eps} eps`}}):t._e(),t.callResponse.data.download_speed?e("list-entry",{attrs:{title:"Download Speed",data:`${t.callResponse.data.download_speed.toFixed(2)} Mb/s`}}):t._e(),t.callResponse.data.upload_speed?e("list-entry",{attrs:{title:"Upload Speed",data:`${t.callResponse.data.upload_speed.toFixed(2)} Mb/s`}}):t._e(),t.callResponse.data.ping?e("list-entry",{attrs:{title:"Ping",data:`${t.callResponse.data.ping.toFixed(2)} ms`}}):t._e(),t.callResponse.data.errors?e("list-entry",{attrs:{title:"Error",data:t.callResponse.data.errors,variant:"danger"}}):t._e()],1):t._e()},n=[],r=a(86855),l=a(34547),o=a(51748),i=a(27616);const d=a(63005),c={components:{ListEntry:o.Z,BCard:r._,ToastificationContent:l.Z},data(){return{timeoptions:d,callResponse:{status:"",data:""}}},mounted(){this.daemonGetBenchmarks()},methods:{async daemonGetBenchmarks(){const t=await i.Z.getBenchmarks();"error"===t.data.status?this.$toast({component:l.Z,props:{title:t.data.data.message||t.data.data,icon:"InfoIcon",variant:"danger"}}):(this.callResponse.status=t.data.status,this.callResponse.data=JSON.parse(t.data.data))}}},u=c;var m=a(1001),g=(0,m.Z)(u,s,n,!1,null,null,null);const p=g.exports},63005:(t,e,a)=>{a.r(e),a.d(e,{default:()=>r});const s={year:"numeric",month:"short",day:"numeric",hour:"2-digit",minute:"2-digit"},n={year:"numeric",month:"short",day:"numeric"},r={shortDate:s,date:n}},27616:(t,e,a)=>{a.d(e,{Z:()=>n});var s=a(80914);const n={help(){return(0,s.Z)().get("/daemon/help")},helpSpecific(t){return(0,s.Z)().get(`/daemon/help/${t}`)},getInfo(){return(0,s.Z)().get("/daemon/getinfo")},getFluxNodeStatus(){return(0,s.Z)().get("/daemon/getzelnodestatus")},getRawTransaction(t,e){return(0,s.Z)().get(`/daemon/getrawtransaction/${t}/${e}`)},listFluxNodes(){return(0,s.Z)().get("/daemon/listzelnodes")},viewDeterministicFluxNodeList(){return(0,s.Z)().get("/daemon/viewdeterministiczelnodelist")},getFluxNodeCount(){return(0,s.Z)().get("/daemon/getzelnodecount")},getStartList(){return(0,s.Z)().get("/daemon/getstartlist")},getDOSList(){return(0,s.Z)().get("/daemon/getdoslist")},fluxCurrentWinner(){return(0,s.Z)().get("/daemon/fluxcurrentwinner")},getBenchmarks(){return(0,s.Z)().get("/daemon/getbenchmarks")},getBenchStatus(){return(0,s.Z)().get("/daemon/getbenchstatus")},startBenchmark(t){return(0,s.Z)().get("/daemon/startbenchmark",{headers:{zelidauth:t}})},stopBenchmark(t){return(0,s.Z)().get("/daemon/stopbenchmark",{headers:{zelidauth:t}})},getBlockCount(){return(0,s.Z)().get("/daemon/getBlockCount")},getBlockchainInfo(){return(0,s.Z)().get("/daemon/getblockchaininfo")},getMiningInfo(){return(0,s.Z)().get("/daemon/getmininginfo")},getNetworkInfo(){return(0,s.Z)().get("/daemon/getnetworkinfo")},validateAddress(t,e){return(0,s.Z)().get(`/daemon/validateaddress/${e}`,{headers:{zelidauth:t}})},getWalletInfo(t){return(0,s.Z)().get("/daemon/getwalletinfo",{headers:{zelidauth:t}})},listFluxNodeConf(t){return(0,s.Z)().get("/daemon/listzelnodeconf",{headers:{zelidauth:t}})},start(t){return(0,s.Z)().get("/daemon/start",{headers:{zelidauth:t}})},restart(t){return(0,s.Z)().get("/daemon/restart",{headers:{zelidauth:t}})},stopDaemon(t){return(0,s.Z)().get("/daemon/stop",{headers:{zelidauth:t}})},rescanDaemon(t,e){return(0,s.Z)().get(`/daemon/rescanblockchain/${e}`,{headers:{zelidauth:t}})},getBlock(t,e){return(0,s.Z)().get(`/daemon/getblock/${t}/${e}`)},tailDaemonDebug(t){return(0,s.Z)().get("/flux/taildaemondebug",{headers:{zelidauth:t}})},justAPI(){return(0,s.Z)()},cancelToken(){return s.S}}}}]); \ No newline at end of file +"use strict";(self["webpackChunkflux"]=self["webpackChunkflux"]||[]).push([[7463],{34547:(t,e,a)=>{a.d(e,{Z:()=>c});var s=function(){var t=this,e=t._self._c;return e("div",{staticClass:"toastification"},[e("div",{staticClass:"d-flex align-items-start"},[e("b-avatar",{staticClass:"mr-75 flex-shrink-0",attrs:{variant:t.variant,size:"1.8rem"}},[e("feather-icon",{attrs:{icon:t.icon,size:"15"}})],1),e("div",{staticClass:"d-flex flex-grow-1"},[e("div",[t.title?e("h5",{staticClass:"mb-0 font-weight-bolder toastification-title",class:`text-${t.variant}`,domProps:{textContent:t._s(t.title)}}):t._e(),t.text?e("small",{staticClass:"d-inline-block text-body",domProps:{textContent:t._s(t.text)}}):t._e()]),e("span",{staticClass:"cursor-pointer toastification-close-icon ml-auto",on:{click:function(e){return t.$emit("close-toast")}}},[t.hideClose?t._e():e("feather-icon",{staticClass:"text-body",attrs:{icon:"XIcon"}})],1)])],1)])},n=[],r=a(47389);const l={components:{BAvatar:r.SH},props:{variant:{type:String,default:"primary"},icon:{type:String,default:null},title:{type:String,default:null},text:{type:String,default:null},hideClose:{type:Boolean,default:!1}}},o=l;var i=a(1001),d=(0,i.Z)(o,s,n,!1,null,"22d964ca",null);const c=d.exports},51748:(t,e,a)=>{a.d(e,{Z:()=>c});var s=function(){var t=this,e=t._self._c;return e("dl",{staticClass:"row",class:t.classes},[e("dt",{staticClass:"col-sm-3"},[t._v(" "+t._s(t.title)+" ")]),t.href.length>0?e("dd",{staticClass:"col-sm-9 mb-0",class:`text-${t.variant}`},[t.href.length>0?e("b-link",{attrs:{href:t.href,target:"_blank",rel:"noopener noreferrer"}},[t._v(" "+t._s(t.data.length>0?t.data:t.number!==Number.MAX_VALUE?t.number:"")+" ")]):t._e()],1):t.click?e("dd",{staticClass:"col-sm-9 mb-0",class:`text-${t.variant}`,on:{click:function(e){return t.$emit("click")}}},[e("b-link",[t._v(" "+t._s(t.data.length>0?t.data:t.number!==Number.MAX_VALUE?t.number:"")+" ")])],1):e("dd",{staticClass:"col-sm-9 mb-0",class:`text-${t.variant}`},[t._v(" "+t._s(t.data.length>0?t.data:t.number!==Number.MAX_VALUE?t.number:"")+" ")])])},n=[],r=a(67347);const l={components:{BLink:r.we},props:{title:{type:String,required:!0},classes:{type:String,required:!1,default:"mb-1"},data:{type:String,required:!1,default:""},number:{type:Number,required:!1,default:Number.MAX_VALUE},variant:{type:String,required:!1,default:"secondary"},href:{type:String,required:!1,default:""},click:{type:Boolean,required:!1,default:!1}}},o=l;var i=a(1001),d=(0,i.Z)(o,s,n,!1,null,null,null);const c=d.exports},7463:(t,e,a)=>{a.r(e),a.d(e,{default:()=>g});var s=function(){var t=this,e=t._self._c;return""!==t.callResponse.data?e("b-card",{attrs:{title:"Get Benchmarks"}},[t.callResponse.data.status?e("list-entry",{attrs:{title:"Status",data:t.callResponse.data.status}}):t._e(),t.callResponse.data.time?e("list-entry",{attrs:{title:"Time",data:new Date(1e3*t.callResponse.data.time).toLocaleString("en-GB",t.timeoptions.short)}}):t._e(),t.callResponse.data.ipaddress?e("list-entry",{attrs:{title:"IP Address",data:t.callResponse.data.ipaddress}}):t._e(),t.callResponse.data.cores?e("list-entry",{attrs:{title:"CPU Cores",number:t.callResponse.data.cores}}):t._e(),t.callResponse.data.ram?e("list-entry",{attrs:{title:"RAM",data:`${t.callResponse.data.ram} GB`}}):t._e(),t.callResponse.data.disksinfo&&t.callResponse.data.disksinfo.length>0?e("list-entry",{attrs:{title:"Disk(s) Info (Name/Size(GB)/Write Speed(MB/s))",data:`${JSON.stringify(t.callResponse.data.disksinfo)}`}}):t._e(),t.callResponse.data.eps?e("list-entry",{attrs:{title:"CPU Speed",data:`${t.callResponse.data.eps} eps`}}):t._e(),t.callResponse.data.download_speed?e("list-entry",{attrs:{title:"Download Speed",data:`${t.callResponse.data.download_speed.toFixed(2)} Mb/s`}}):t._e(),t.callResponse.data.upload_speed?e("list-entry",{attrs:{title:"Upload Speed",data:`${t.callResponse.data.upload_speed.toFixed(2)} Mb/s`}}):t._e(),t.callResponse.data.ping?e("list-entry",{attrs:{title:"Ping",data:`${t.callResponse.data.ping.toFixed(2)} ms`}}):t._e(),t.callResponse.data.errors?e("list-entry",{attrs:{title:"Error",data:t.callResponse.data.errors,variant:"danger"}}):t._e()],1):t._e()},n=[],r=a(86855),l=a(34547),o=a(51748),i=a(27616);const d=a(63005),c={components:{ListEntry:o.Z,BCard:r._,ToastificationContent:l.Z},data(){return{timeoptions:d,callResponse:{status:"",data:""}}},mounted(){this.daemonGetBenchmarks()},methods:{async daemonGetBenchmarks(){const t=await i.Z.getBenchmarks();"error"===t.data.status?this.$toast({component:l.Z,props:{title:t.data.data.message||t.data.data,icon:"InfoIcon",variant:"danger"}}):(this.callResponse.status=t.data.status,this.callResponse.data=JSON.parse(t.data.data))}}},u=c;var m=a(1001),p=(0,m.Z)(u,s,n,!1,null,null,null);const g=p.exports},63005:(t,e,a)=>{a.r(e),a.d(e,{default:()=>r});const s={year:"numeric",month:"short",day:"numeric",hour:"2-digit",minute:"2-digit"},n={year:"numeric",month:"short",day:"numeric"},r={shortDate:s,date:n}},27616:(t,e,a)=>{a.d(e,{Z:()=>n});var s=a(80914);const n={help(){return(0,s.Z)().get("/daemon/help")},helpSpecific(t){return(0,s.Z)().get(`/daemon/help/${t}`)},getInfo(){return(0,s.Z)().get("/daemon/getinfo")},getFluxNodeStatus(){return(0,s.Z)().get("/daemon/getzelnodestatus")},getRawTransaction(t,e){return(0,s.Z)().get(`/daemon/getrawtransaction/${t}/${e}`)},listFluxNodes(){return(0,s.Z)().get("/daemon/listzelnodes")},viewDeterministicFluxNodeList(){return(0,s.Z)().get("/daemon/viewdeterministiczelnodelist")},getFluxNodeCount(){return(0,s.Z)().get("/daemon/getzelnodecount")},getStartList(){return(0,s.Z)().get("/daemon/getstartlist")},getDOSList(){return(0,s.Z)().get("/daemon/getdoslist")},fluxCurrentWinner(){return(0,s.Z)().get("/daemon/fluxcurrentwinner")},getBenchmarks(){return(0,s.Z)().get("/daemon/getbenchmarks")},getBenchStatus(){return(0,s.Z)().get("/daemon/getbenchstatus")},startBenchmark(t){return(0,s.Z)().get("/daemon/startbenchmark",{headers:{zelidauth:t}})},stopBenchmark(t){return(0,s.Z)().get("/daemon/stopbenchmark",{headers:{zelidauth:t}})},getBlockCount(){return(0,s.Z)().get("/daemon/getBlockCount")},getBlockchainInfo(){return(0,s.Z)().get("/daemon/getblockchaininfo")},getMiningInfo(){return(0,s.Z)().get("/daemon/getmininginfo")},getNetworkInfo(){return(0,s.Z)().get("/daemon/getnetworkinfo")},validateAddress(t,e){return(0,s.Z)().get(`/daemon/validateaddress/${e}`,{headers:{zelidauth:t}})},getWalletInfo(t){return(0,s.Z)().get("/daemon/getwalletinfo",{headers:{zelidauth:t}})},listFluxNodeConf(t){return(0,s.Z)().get("/daemon/listzelnodeconf",{headers:{zelidauth:t}})},start(t){return(0,s.Z)().get("/daemon/start",{headers:{zelidauth:t}})},restart(t){return(0,s.Z)().get("/daemon/restart",{headers:{zelidauth:t}})},stopDaemon(t){return(0,s.Z)().get("/daemon/stop",{headers:{zelidauth:t}})},rescanDaemon(t,e){return(0,s.Z)().get(`/daemon/rescanblockchain/${e}`,{headers:{zelidauth:t}})},getBlock(t,e){return(0,s.Z)().get(`/daemon/getblock/${t}/${e}`)},tailDaemonDebug(t){return(0,s.Z)().get("/flux/taildaemondebug",{headers:{zelidauth:t}})},justAPI(){return(0,s.Z)()},cancelToken(){return s.S}}}}]); \ No newline at end of file diff --git a/HomeUI/dist/js/7550.js b/HomeUI/dist/js/7550.js index 2dd6b3a14..09af93360 100644 --- a/HomeUI/dist/js/7550.js +++ b/HomeUI/dist/js/7550.js @@ -1 +1 @@ -"use strict";(globalThis["webpackChunkflux"]=globalThis["webpackChunkflux"]||[]).push([[7550],{34547:(e,t,a)=>{a.d(t,{Z:()=>d});var r=function(){var e=this,t=e._self._c;return t("div",{staticClass:"toastification"},[t("div",{staticClass:"d-flex align-items-start"},[t("b-avatar",{staticClass:"mr-75 flex-shrink-0",attrs:{variant:e.variant,size:"1.8rem"}},[t("feather-icon",{attrs:{icon:e.icon,size:"15"}})],1),t("div",{staticClass:"d-flex flex-grow-1"},[t("div",[e.title?t("h5",{staticClass:"mb-0 font-weight-bolder toastification-title",class:`text-${e.variant}`,domProps:{textContent:e._s(e.title)}}):e._e(),e.text?t("small",{staticClass:"d-inline-block text-body",domProps:{textContent:e._s(e.text)}}):e._e()]),t("span",{staticClass:"cursor-pointer toastification-close-icon ml-auto",on:{click:function(t){return e.$emit("close-toast")}}},[e.hideClose?e._e():t("feather-icon",{staticClass:"text-body",attrs:{icon:"XIcon"}})],1)])],1)])},o=[],n=a(47389);const i={components:{BAvatar:n.SH},props:{variant:{type:String,default:"primary"},icon:{type:String,default:null},title:{type:String,default:null},text:{type:String,default:null},hideClose:{type:Boolean,default:!1}}},s=i;var l=a(1001),c=(0,l.Z)(s,r,o,!1,null,"22d964ca",null);const d=c.exports},37550:(e,t,a)=>{a.r(t),a.d(t,{default:()=>g});var r=function(){var e=this,t=e._self._c;return t("div",[t("b-card",[t("h6",{staticClass:"mb-1"},[e._v(" Click the 'Download Debug File' button to download the Benchmark log. This may take a few minutes depending on file size. ")]),t("div",[t("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],attrs:{id:"start-download",variant:"outline-primary",size:"md"}},[e._v(" Download Debug File ")]),e.total&&e.downloaded?t("div",{staticClass:"d-flex",staticStyle:{width:"300px"}},[t("b-card-text",{staticClass:"mt-1 mb-0 mr-auto"},[e._v(" "+e._s(`${(e.downloaded/1e6).toFixed(2)} / ${(e.total/1e6).toFixed(2)}`)+" MB - "+e._s(`${(e.downloaded/e.total*100).toFixed(2)}%`)+" ")]),t("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"btn-icon cancel-button",attrs:{variant:"danger",size:"sm"},on:{click:e.cancelDownload}},[e._v(" x ")])],1):e._e(),t("b-popover",{ref:"popover",attrs:{target:"start-download",triggers:"click",show:e.downloadPopoverShow,placement:"auto",container:"my-container"},on:{"update:show":function(t){e.downloadPopoverShow=t}},scopedSlots:e._u([{key:"title",fn:function(){return[t("div",{staticClass:"d-flex justify-content-between align-items-center"},[t("span",[e._v("Are You Sure?")]),t("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"close",attrs:{variant:"transparent","aria-label":"Close"},on:{click:e.onDownloadClose}},[t("span",{staticClass:"d-inline-block text-white",attrs:{"aria-hidden":"true"}},[e._v("×")])])],1)]},proxy:!0}])},[t("div",[t("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"mr-1",attrs:{size:"sm",variant:"danger"},on:{click:e.onDownloadClose}},[e._v(" Cancel ")]),t("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],attrs:{size:"sm",variant:"primary"},on:{click:e.onDownloadOk}},[e._v(" Download Debug ")])],1)])],1)]),t("b-card",[t("h6",{staticClass:"mb-1"},[e._v(" Click the 'Show Debug File' button to view the last 100 lines of the Benchmark debug file. ")]),t("div",[t("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],attrs:{id:"start-tail",variant:"outline-primary",size:"md"}},[e._v(" Show Debug File ")]),e.callResponse.data.message?t("b-form-textarea",{staticClass:"mt-1",attrs:{plaintext:"","no-resize":"",rows:"30",value:e.callResponse.data.message}}):e._e(),t("b-popover",{ref:"popover",attrs:{target:"start-tail",triggers:"click",show:e.tailPopoverShow,placement:"auto",container:"my-container"},on:{"update:show":function(t){e.tailPopoverShow=t}},scopedSlots:e._u([{key:"title",fn:function(){return[t("div",{staticClass:"d-flex justify-content-between align-items-center"},[t("span",[e._v("Are You Sure?")]),t("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"close",attrs:{variant:"transparent","aria-label":"Close"},on:{click:e.onTailClose}},[t("span",{staticClass:"d-inline-block text-white",attrs:{"aria-hidden":"true"}},[e._v("×")])])],1)]},proxy:!0}])},[t("div",[t("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"mr-1",attrs:{size:"sm",variant:"danger"},on:{click:e.onTailClose}},[e._v(" Cancel ")]),t("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],attrs:{size:"sm",variant:"primary"},on:{click:e.onTailOk}},[e._v(" Show Debug ")])],1)])],1)])],1)},o=[],n=(a(98858),a(61318),a(33228),a(86855)),i=a(15193),s=a(53862),l=a(333),c=a(64206),d=a(34547),u=a(20266),p=a(39569);const h={components:{BCard:n._,BButton:i.T,BPopover:s.x,BFormTextarea:l.y,BCardText:c.j,ToastificationContent:d.Z},directives:{Ripple:u.Z},data(){return{downloadPopoverShow:!1,tailPopoverShow:!1,abortToken:{},downloaded:0,total:0,callResponse:{status:"",data:{}}}},methods:{cancelDownload(){this.abortToken.cancel("User download cancelled"),this.downloaded="",this.total=""},onDownloadClose(){this.downloadPopoverShow=!1},async onDownloadOk(){const e=this;this.downloadPopoverShow=!1,this.abortToken=p.Z.cancelToken();const t=localStorage.getItem("zelidauth"),a={headers:{zelidauth:t},responseType:"blob",onDownloadProgress(t){e.downloaded=t.loaded,e.total=t.total},cancelToken:e.abortToken.token},r=await p.Z.justAPI().get("/flux/benchmarkdebug",a),o=window.URL.createObjectURL(new Blob([r.data])),n=document.createElement("a");n.href=o,n.setAttribute("download","debug.log"),document.body.appendChild(n),n.click()},onTailClose(){this.tailPopoverShow=!1},async onTailOk(){this.tailPopoverShow=!1;const e=localStorage.getItem("zelidauth");p.Z.tailBenchmarkDebug(e).then((e=>{"error"===e.data.status?this.$toast({component:d.Z,props:{title:e.data.data.message||e.data.data,icon:"InfoIcon",variant:"danger"}}):(this.callResponse.status=e.data.status,this.callResponse.data=e.data.data)})).catch((e=>{this.$toast({component:d.Z,props:{title:"Error while trying to get latest debug of Benchmark",icon:"InfoIcon",variant:"danger"}}),console.log(e)}))}}},v=h;var b=a(1001),m=(0,b.Z)(v,r,o,!1,null,null,null);const g=m.exports},39569:(e,t,a)=>{a.d(t,{Z:()=>o});var r=a(80914);const o={start(e){return(0,r.Z)().get("/benchmark/start",{headers:{zelidauth:e}})},restart(e){return(0,r.Z)().get("/benchmark/restart",{headers:{zelidauth:e}})},getStatus(){return(0,r.Z)().get("/benchmark/getstatus")},restartNodeBenchmarks(e){return(0,r.Z)().get("/benchmark/restartnodebenchmarks",{headers:{zelidauth:e}})},signFluxTransaction(e,t){return(0,r.Z)().get(`/benchmark/signzelnodetransaction/${t}`,{headers:{zelidauth:e}})},helpSpecific(e){return(0,r.Z)().get(`/benchmark/help/${e}`)},help(){return(0,r.Z)().get("/benchmark/help")},stop(e){return(0,r.Z)().get("/benchmark/stop",{headers:{zelidauth:e}})},getBenchmarks(){return(0,r.Z)().get("/benchmark/getbenchmarks")},getInfo(){return(0,r.Z)().get("/benchmark/getinfo")},tailBenchmarkDebug(e){return(0,r.Z)().get("/flux/tailbenchmarkdebug",{headers:{zelidauth:e}})},justAPI(){return(0,r.Z)()},cancelToken(){return r.S}}},50926:(e,t,a)=>{var r=a(23043),o=a(69985),n=a(6648),i=a(44201),s=i("toStringTag"),l=Object,c="Arguments"===n(function(){return arguments}()),d=function(e,t){try{return e[t]}catch(a){}};e.exports=r?n:function(e){var t,a,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(a=d(t=l(e),s))?a:c?n(t):"Object"===(r=n(t))&&o(t.callee)?"Arguments":r}},62148:(e,t,a)=>{var r=a(98702),o=a(72560);e.exports=function(e,t,a){return a.get&&r(a.get,t,{getter:!0}),a.set&&r(a.set,t,{setter:!0}),o.f(e,t,a)}},23043:(e,t,a)=>{var r=a(44201),o=r("toStringTag"),n={};n[o]="z",e.exports="[object z]"===String(n)},34327:(e,t,a)=>{var r=a(50926),o=String;e.exports=function(e){if("Symbol"===r(e))throw new TypeError("Cannot convert a Symbol value to a string");return o(e)}},21500:e=>{var t=TypeError;e.exports=function(e,a){if(e{var r=a(11880),o=a(68844),n=a(34327),i=a(21500),s=URLSearchParams,l=s.prototype,c=o(l.append),d=o(l["delete"]),u=o(l.forEach),p=o([].push),h=new s("a=1&a=2&b=3");h["delete"]("a",1),h["delete"]("b",void 0),h+""!=="a=2"&&r(l,"delete",(function(e){var t=arguments.length,a=t<2?void 0:arguments[1];if(t&&void 0===a)return d(this,e);var r=[];u(this,(function(e,t){p(r,{key:t,value:e})})),i(t,1);var o,s=n(e),l=n(a),h=0,v=0,b=!1,m=r.length;while(h{var r=a(11880),o=a(68844),n=a(34327),i=a(21500),s=URLSearchParams,l=s.prototype,c=o(l.getAll),d=o(l.has),u=new s("a=1");!u.has("a",2)&&u.has("a",void 0)||r(l,"has",(function(e){var t=arguments.length,a=t<2?void 0:arguments[1];if(t&&void 0===a)return d(this,e);var r=c(this,e);i(t,1);var o=n(a),s=0;while(s{var r=a(67697),o=a(68844),n=a(62148),i=URLSearchParams.prototype,s=o(i.forEach);r&&!("size"in i)&&n(i,"size",{get:function(){var e=0;return s(this,(function(){e++})),e},configurable:!0,enumerable:!0})}}]); \ No newline at end of file +"use strict";(self["webpackChunkflux"]=self["webpackChunkflux"]||[]).push([[7550],{34547:(e,t,a)=>{a.d(t,{Z:()=>d});var o=function(){var e=this,t=e._self._c;return t("div",{staticClass:"toastification"},[t("div",{staticClass:"d-flex align-items-start"},[t("b-avatar",{staticClass:"mr-75 flex-shrink-0",attrs:{variant:e.variant,size:"1.8rem"}},[t("feather-icon",{attrs:{icon:e.icon,size:"15"}})],1),t("div",{staticClass:"d-flex flex-grow-1"},[t("div",[e.title?t("h5",{staticClass:"mb-0 font-weight-bolder toastification-title",class:`text-${e.variant}`,domProps:{textContent:e._s(e.title)}}):e._e(),e.text?t("small",{staticClass:"d-inline-block text-body",domProps:{textContent:e._s(e.text)}}):e._e()]),t("span",{staticClass:"cursor-pointer toastification-close-icon ml-auto",on:{click:function(t){return e.$emit("close-toast")}}},[e.hideClose?e._e():t("feather-icon",{staticClass:"text-body",attrs:{icon:"XIcon"}})],1)])],1)])},r=[],n=a(47389);const s={components:{BAvatar:n.SH},props:{variant:{type:String,default:"primary"},icon:{type:String,default:null},title:{type:String,default:null},text:{type:String,default:null},hideClose:{type:Boolean,default:!1}}},i=s;var l=a(1001),c=(0,l.Z)(i,o,r,!1,null,"22d964ca",null);const d=c.exports},37550:(e,t,a)=>{a.r(t),a.d(t,{default:()=>g});var o=function(){var e=this,t=e._self._c;return t("div",[t("b-card",[t("h6",{staticClass:"mb-1"},[e._v(" Click the 'Download Debug File' button to download the Benchmark log. This may take a few minutes depending on file size. ")]),t("div",[t("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],attrs:{id:"start-download",variant:"outline-primary",size:"md"}},[e._v(" Download Debug File ")]),e.total&&e.downloaded?t("div",{staticClass:"d-flex",staticStyle:{width:"300px"}},[t("b-card-text",{staticClass:"mt-1 mb-0 mr-auto"},[e._v(" "+e._s(`${(e.downloaded/1e6).toFixed(2)} / ${(e.total/1e6).toFixed(2)}`)+" MB - "+e._s(`${(e.downloaded/e.total*100).toFixed(2)}%`)+" ")]),t("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"btn-icon cancel-button",attrs:{variant:"danger",size:"sm"},on:{click:e.cancelDownload}},[e._v(" x ")])],1):e._e(),t("b-popover",{ref:"popover",attrs:{target:"start-download",triggers:"click",show:e.downloadPopoverShow,placement:"auto",container:"my-container"},on:{"update:show":function(t){e.downloadPopoverShow=t}},scopedSlots:e._u([{key:"title",fn:function(){return[t("div",{staticClass:"d-flex justify-content-between align-items-center"},[t("span",[e._v("Are You Sure?")]),t("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"close",attrs:{variant:"transparent","aria-label":"Close"},on:{click:e.onDownloadClose}},[t("span",{staticClass:"d-inline-block text-white",attrs:{"aria-hidden":"true"}},[e._v("×")])])],1)]},proxy:!0}])},[t("div",[t("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"mr-1",attrs:{size:"sm",variant:"danger"},on:{click:e.onDownloadClose}},[e._v(" Cancel ")]),t("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],attrs:{size:"sm",variant:"primary"},on:{click:e.onDownloadOk}},[e._v(" Download Debug ")])],1)])],1)]),t("b-card",[t("h6",{staticClass:"mb-1"},[e._v(" Click the 'Show Debug File' button to view the last 100 lines of the Benchmark debug file. ")]),t("div",[t("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],attrs:{id:"start-tail",variant:"outline-primary",size:"md"}},[e._v(" Show Debug File ")]),e.callResponse.data.message?t("b-form-textarea",{staticClass:"mt-1",attrs:{plaintext:"","no-resize":"",rows:"30",value:e.callResponse.data.message}}):e._e(),t("b-popover",{ref:"popover",attrs:{target:"start-tail",triggers:"click",show:e.tailPopoverShow,placement:"auto",container:"my-container"},on:{"update:show":function(t){e.tailPopoverShow=t}},scopedSlots:e._u([{key:"title",fn:function(){return[t("div",{staticClass:"d-flex justify-content-between align-items-center"},[t("span",[e._v("Are You Sure?")]),t("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"close",attrs:{variant:"transparent","aria-label":"Close"},on:{click:e.onTailClose}},[t("span",{staticClass:"d-inline-block text-white",attrs:{"aria-hidden":"true"}},[e._v("×")])])],1)]},proxy:!0}])},[t("div",[t("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"mr-1",attrs:{size:"sm",variant:"danger"},on:{click:e.onTailClose}},[e._v(" Cancel ")]),t("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],attrs:{size:"sm",variant:"primary"},on:{click:e.onTailOk}},[e._v(" Show Debug ")])],1)])],1)])],1)},r=[],n=a(86855),s=a(15193),i=a(53862),l=a(333),c=a(64206),d=a(34547),p=a(20266),u=a(39569);const h={components:{BCard:n._,BButton:s.T,BPopover:i.x,BFormTextarea:l.y,BCardText:c.j,ToastificationContent:d.Z},directives:{Ripple:p.Z},data(){return{downloadPopoverShow:!1,tailPopoverShow:!1,abortToken:{},downloaded:0,total:0,callResponse:{status:"",data:{}}}},methods:{cancelDownload(){this.abortToken.cancel("User download cancelled"),this.downloaded="",this.total=""},onDownloadClose(){this.downloadPopoverShow=!1},async onDownloadOk(){const e=this;this.downloadPopoverShow=!1,this.abortToken=u.Z.cancelToken();const t=localStorage.getItem("zelidauth"),a={headers:{zelidauth:t},responseType:"blob",onDownloadProgress(t){e.downloaded=t.loaded,e.total=t.total},cancelToken:e.abortToken.token},o=await u.Z.justAPI().get("/flux/benchmarkdebug",a),r=window.URL.createObjectURL(new Blob([o.data])),n=document.createElement("a");n.href=r,n.setAttribute("download","debug.log"),document.body.appendChild(n),n.click()},onTailClose(){this.tailPopoverShow=!1},async onTailOk(){this.tailPopoverShow=!1;const e=localStorage.getItem("zelidauth");u.Z.tailBenchmarkDebug(e).then((e=>{"error"===e.data.status?this.$toast({component:d.Z,props:{title:e.data.data.message||e.data.data,icon:"InfoIcon",variant:"danger"}}):(this.callResponse.status=e.data.status,this.callResponse.data=e.data.data)})).catch((e=>{this.$toast({component:d.Z,props:{title:"Error while trying to get latest debug of Benchmark",icon:"InfoIcon",variant:"danger"}}),console.log(e)}))}}},b=h;var m=a(1001),v=(0,m.Z)(b,o,r,!1,null,null,null);const g=v.exports},39569:(e,t,a)=>{a.d(t,{Z:()=>r});var o=a(80914);const r={start(e){return(0,o.Z)().get("/benchmark/start",{headers:{zelidauth:e}})},restart(e){return(0,o.Z)().get("/benchmark/restart",{headers:{zelidauth:e}})},getStatus(){return(0,o.Z)().get("/benchmark/getstatus")},restartNodeBenchmarks(e){return(0,o.Z)().get("/benchmark/restartnodebenchmarks",{headers:{zelidauth:e}})},signFluxTransaction(e,t){return(0,o.Z)().get(`/benchmark/signzelnodetransaction/${t}`,{headers:{zelidauth:e}})},helpSpecific(e){return(0,o.Z)().get(`/benchmark/help/${e}`)},help(){return(0,o.Z)().get("/benchmark/help")},stop(e){return(0,o.Z)().get("/benchmark/stop",{headers:{zelidauth:e}})},getBenchmarks(){return(0,o.Z)().get("/benchmark/getbenchmarks")},getInfo(){return(0,o.Z)().get("/benchmark/getinfo")},tailBenchmarkDebug(e){return(0,o.Z)().get("/flux/tailbenchmarkdebug",{headers:{zelidauth:e}})},justAPI(){return(0,o.Z)()},cancelToken(){return o.S}}}}]); \ No newline at end of file diff --git a/HomeUI/dist/js/7583.js b/HomeUI/dist/js/7583.js index 1cc25dc0a..8ddba6d4a 100644 --- a/HomeUI/dist/js/7583.js +++ b/HomeUI/dist/js/7583.js @@ -1 +1 @@ -"use strict";(globalThis["webpackChunkflux"]=globalThis["webpackChunkflux"]||[]).push([[7583],{34547:(e,t,a)=>{a.d(t,{Z:()=>u});var s=function(){var e=this,t=e._self._c;return t("div",{staticClass:"toastification"},[t("div",{staticClass:"d-flex align-items-start"},[t("b-avatar",{staticClass:"mr-75 flex-shrink-0",attrs:{variant:e.variant,size:"1.8rem"}},[t("feather-icon",{attrs:{icon:e.icon,size:"15"}})],1),t("div",{staticClass:"d-flex flex-grow-1"},[t("div",[e.title?t("h5",{staticClass:"mb-0 font-weight-bolder toastification-title",class:`text-${e.variant}`,domProps:{textContent:e._s(e.title)}}):e._e(),e.text?t("small",{staticClass:"d-inline-block text-body",domProps:{textContent:e._s(e.text)}}):e._e()]),t("span",{staticClass:"cursor-pointer toastification-close-icon ml-auto",on:{click:function(t){return e.$emit("close-toast")}}},[e.hideClose?e._e():t("feather-icon",{staticClass:"text-body",attrs:{icon:"XIcon"}})],1)])],1)])},n=[],r=a(47389);const o={components:{BAvatar:r.SH},props:{variant:{type:String,default:"primary"},icon:{type:String,default:null},title:{type:String,default:null},text:{type:String,default:null},hideClose:{type:Boolean,default:!1}}},i=o;var d=a(1001),l=(0,d.Z)(i,s,n,!1,null,"22d964ca",null);const u=l.exports},51748:(e,t,a)=>{a.d(t,{Z:()=>u});var s=function(){var e=this,t=e._self._c;return t("dl",{staticClass:"row",class:e.classes},[t("dt",{staticClass:"col-sm-3"},[e._v(" "+e._s(e.title)+" ")]),e.href.length>0?t("dd",{staticClass:"col-sm-9 mb-0",class:`text-${e.variant}`},[e.href.length>0?t("b-link",{attrs:{href:e.href,target:"_blank",rel:"noopener noreferrer"}},[e._v(" "+e._s(e.data.length>0?e.data:e.number!==Number.MAX_VALUE?e.number:"")+" ")]):e._e()],1):e.click?t("dd",{staticClass:"col-sm-9 mb-0",class:`text-${e.variant}`,on:{click:function(t){return e.$emit("click")}}},[t("b-link",[e._v(" "+e._s(e.data.length>0?e.data:e.number!==Number.MAX_VALUE?e.number:"")+" ")])],1):t("dd",{staticClass:"col-sm-9 mb-0",class:`text-${e.variant}`},[e._v(" "+e._s(e.data.length>0?e.data:e.number!==Number.MAX_VALUE?e.number:"")+" ")])])},n=[],r=a(67347);const o={components:{BLink:r.we},props:{title:{type:String,required:!0},classes:{type:String,required:!1,default:"mb-1"},data:{type:String,required:!1,default:""},number:{type:Number,required:!1,default:Number.MAX_VALUE},variant:{type:String,required:!1,default:"secondary"},href:{type:String,required:!1,default:""},click:{type:Boolean,required:!1,default:!1}}},i=o;var d=a(1001),l=(0,d.Z)(i,s,n,!1,null,null,null);const u=l.exports},87583:(e,t,a)=>{a.r(t),a.d(t,{default:()=>m});var s=function(){var e=this,t=e._self._c;return""!==e.getInfoResponse.data?t("b-card",[t("list-entry",{attrs:{title:"Flux owner Flux ID",data:e.userconfig.zelid}}),t("list-entry",{attrs:{title:"Status",data:e.getNodeStatusResponse.nodeStatus,variant:e.getNodeStatusResponse.class}}),t("list-entry",{attrs:{title:"Flux Payment Address",data:e.getNodeStatusResponse.data.payment_address}}),e.getInfoResponse.data.balance?t("list-entry",{attrs:{title:"Tier",data:e.getNodeStatusResponse.data.tier}}):e._e(),t("list-entry",{attrs:{title:"Flux IP Address",data:e.getNodeStatusResponse.data.ip}}),t("list-entry",{attrs:{title:"Flux IP Network",data:e.getNodeStatusResponse.data.network}}),t("list-entry",{attrs:{title:"Flux Public Key",data:e.getNodeStatusResponse.data.pubkey}}),e.getNodeStatusResponse.data.collateral?t("div",[t("list-entry",{attrs:{title:"Added Height",number:e.getNodeStatusResponse.data.added_height,href:`https://explorer.runonflux.io/block-index/${e.getNodeStatusResponse.data.added_height}`}}),t("list-entry",{attrs:{title:"Confirmed Height",number:e.getNodeStatusResponse.data.confirmed_height,href:`https://explorer.runonflux.io/block-index/${e.getNodeStatusResponse.data.confirmed_height}`}}),t("list-entry",{attrs:{title:"Last Confirmed Height",number:e.getNodeStatusResponse.data.last_confirmed_height,href:`https://explorer.runonflux.io/block-index/${e.getNodeStatusResponse.data.last_confirmed_height}`}}),t("list-entry",{attrs:{title:"Last Paid Height",number:e.getNodeStatusResponse.data.last_paid_height,href:`https://explorer.runonflux.io/block-index/${e.getNodeStatusResponse.data.last_paid_height}`}}),t("list-entry",{attrs:{title:"Locked Transaction",data:"Click to view",href:`https://explorer.runonflux.io/tx/${e.getNodeStatusResponse.data.txhash}`}})],1):e._e(),t("list-entry",{attrs:{title:"Flux Daemon version",number:e.getInfoResponse.data.version}}),t("list-entry",{attrs:{title:"Protocol version",number:e.getInfoResponse.data.protocolversion}}),t("list-entry",{attrs:{title:"Current Blockchain Height",number:e.getInfoResponse.data.blocks}}),""!==e.getInfoResponse.data.errors?t("list-entry",{attrs:{title:"Error",data:e.getInfoResponse.data.errors,variant:"danger"}}):e._e()],1):e._e()},n=[],r=a(86855),o=a(20629),i=a(34547),d=a(51748),l=a(27616),u=a(39055);const c=a(63005),g={components:{ListEntry:d.Z,BCard:r._,ToastificationContent:i.Z},data(){return{timeoptions:c,callResponse:{status:"",data:""},getNodeStatusResponse:{status:"",data:""},getInfoResponse:{status:"",data:""},connectedPeers:[],incomingConnections:[],filterConnectedPeer:""}},computed:{...(0,o.rn)("flux",["config","userconfig","nodeSection"]),fluxLogTail(){return this.callResponse.data.message?this.callResponse.data.message.split("\n").reverse().filter((e=>""!==e)).join("\n"):this.callResponse.data},connectedPeersFilter(){return this.connectedPeers.filter((e=>!this.filterConnectedPeer||e.ip.toLowerCase().includes(this.filterConnectedPeer.toLowerCase())))},incomingConnectionsFilter(){return this.incomingConnections.filter((e=>!this.filterConnectedPeer||e.ip.toLowerCase().includes(this.filterConnectedPeer.toLowerCase())))}},mounted(){this.daemonGetInfo(),this.daemonGetNodeStatus(),this.getownerFluxid()},methods:{async getownerFluxid(){const e=await u.Z.getZelid(),t=e.data.data;"success"===e.data.status&&"string"===typeof t&&this.$store.commit("flux/setUserZelid",t)},async daemonGetInfo(){const e=await l.Z.getInfo();"error"===e.data.status?this.$toast({component:i.Z,props:{title:e.data.data.message||e.data.data,icon:"InfoIcon",variant:"danger"}}):(this.getInfoResponse.status=e.data.status,this.getInfoResponse.data=e.data.data)},async daemonGetNodeStatus(){const e=await l.Z.getFluxNodeStatus();"error"===e.data.status?this.$toast({component:i.Z,props:{title:e.data.data.message||e.data.data,icon:"InfoIcon",variant:"danger"}}):(this.getNodeStatusResponse.status=e.data.status,this.getNodeStatusResponse.data=e.data.data,"CONFIRMED"===this.getNodeStatusResponse.data.status||"CONFIRMED"===this.getNodeStatusResponse.data.location?(this.getNodeStatusResponse.nodeStatus="Flux is working correctly",this.getNodeStatusResponse.class="success"):"STARTED"===this.getNodeStatusResponse.data.status||"STARTED"===this.getNodeStatusResponse.data.location?(this.getNodeStatusResponse.nodeStatus="Flux has just been started. Flux is running with limited capabilities.",this.getNodeStatusResponse.class="warning"):(this.getNodeStatusResponse.nodeStatus="Flux is not confirmed. Flux is running with limited capabilities.",this.getNodeStatusResponse.class="danger"))}}},h=g;var p=a(1001),f=(0,p.Z)(h,s,n,!1,null,null,null);const m=f.exports},63005:(e,t,a)=>{a.r(t),a.d(t,{default:()=>r});const s={year:"numeric",month:"short",day:"numeric",hour:"2-digit",minute:"2-digit"},n={year:"numeric",month:"short",day:"numeric"},r={shortDate:s,date:n}},27616:(e,t,a)=>{a.d(t,{Z:()=>n});var s=a(80914);const n={help(){return(0,s.Z)().get("/daemon/help")},helpSpecific(e){return(0,s.Z)().get(`/daemon/help/${e}`)},getInfo(){return(0,s.Z)().get("/daemon/getinfo")},getFluxNodeStatus(){return(0,s.Z)().get("/daemon/getzelnodestatus")},getRawTransaction(e,t){return(0,s.Z)().get(`/daemon/getrawtransaction/${e}/${t}`)},listFluxNodes(){return(0,s.Z)().get("/daemon/listzelnodes")},viewDeterministicFluxNodeList(){return(0,s.Z)().get("/daemon/viewdeterministiczelnodelist")},getFluxNodeCount(){return(0,s.Z)().get("/daemon/getzelnodecount")},getStartList(){return(0,s.Z)().get("/daemon/getstartlist")},getDOSList(){return(0,s.Z)().get("/daemon/getdoslist")},fluxCurrentWinner(){return(0,s.Z)().get("/daemon/fluxcurrentwinner")},getBenchmarks(){return(0,s.Z)().get("/daemon/getbenchmarks")},getBenchStatus(){return(0,s.Z)().get("/daemon/getbenchstatus")},startBenchmark(e){return(0,s.Z)().get("/daemon/startbenchmark",{headers:{zelidauth:e}})},stopBenchmark(e){return(0,s.Z)().get("/daemon/stopbenchmark",{headers:{zelidauth:e}})},getBlockCount(){return(0,s.Z)().get("/daemon/getBlockCount")},getBlockchainInfo(){return(0,s.Z)().get("/daemon/getblockchaininfo")},getMiningInfo(){return(0,s.Z)().get("/daemon/getmininginfo")},getNetworkInfo(){return(0,s.Z)().get("/daemon/getnetworkinfo")},validateAddress(e,t){return(0,s.Z)().get(`/daemon/validateaddress/${t}`,{headers:{zelidauth:e}})},getWalletInfo(e){return(0,s.Z)().get("/daemon/getwalletinfo",{headers:{zelidauth:e}})},listFluxNodeConf(e){return(0,s.Z)().get("/daemon/listzelnodeconf",{headers:{zelidauth:e}})},start(e){return(0,s.Z)().get("/daemon/start",{headers:{zelidauth:e}})},restart(e){return(0,s.Z)().get("/daemon/restart",{headers:{zelidauth:e}})},stopDaemon(e){return(0,s.Z)().get("/daemon/stop",{headers:{zelidauth:e}})},rescanDaemon(e,t){return(0,s.Z)().get(`/daemon/rescanblockchain/${t}`,{headers:{zelidauth:e}})},getBlock(e,t){return(0,s.Z)().get(`/daemon/getblock/${e}/${t}`)},tailDaemonDebug(e){return(0,s.Z)().get("/flux/taildaemondebug",{headers:{zelidauth:e}})},justAPI(){return(0,s.Z)()},cancelToken(){return s.S}}},39055:(e,t,a)=>{a.d(t,{Z:()=>n});var s=a(80914);const n={softUpdateFlux(e){return(0,s.Z)().get("/flux/softupdateflux",{headers:{zelidauth:e}})},softUpdateInstallFlux(e){return(0,s.Z)().get("/flux/softupdatefluxinstall",{headers:{zelidauth:e}})},updateFlux(e){return(0,s.Z)().get("/flux/updateflux",{headers:{zelidauth:e}})},hardUpdateFlux(e){return(0,s.Z)().get("/flux/hardupdateflux",{headers:{zelidauth:e}})},rebuildHome(e){return(0,s.Z)().get("/flux/rebuildhome",{headers:{zelidauth:e}})},updateDaemon(e){return(0,s.Z)().get("/flux/updatedaemon",{headers:{zelidauth:e}})},reindexDaemon(e){return(0,s.Z)().get("/flux/reindexdaemon",{headers:{zelidauth:e}})},updateBenchmark(e){return(0,s.Z)().get("/flux/updatebenchmark",{headers:{zelidauth:e}})},getFluxVersion(){return(0,s.Z)().get("/flux/version")},broadcastMessage(e,t){const a=t,n={headers:{zelidauth:e}};return(0,s.Z)().post("/flux/broadcastmessage",JSON.stringify(a),n)},connectedPeers(){return(0,s.Z)().get(`/flux/connectedpeers?timestamp=${Date.now()}`)},connectedPeersInfo(){return(0,s.Z)().get(`/flux/connectedpeersinfo?timestamp=${Date.now()}`)},incomingConnections(){return(0,s.Z)().get(`/flux/incomingconnections?timestamp=${Date.now()}`)},incomingConnectionsInfo(){return(0,s.Z)().get(`/flux/incomingconnectionsinfo?timestamp=${Date.now()}`)},addPeer(e,t){return(0,s.Z)().get(`/flux/addpeer/${t}`,{headers:{zelidauth:e}})},removePeer(e,t){return(0,s.Z)().get(`/flux/removepeer/${t}`,{headers:{zelidauth:e}})},removeIncomingPeer(e,t){return(0,s.Z)().get(`/flux/removeincomingpeer/${t}`,{headers:{zelidauth:e}})},adjustKadena(e,t,a){return(0,s.Z)().get(`/flux/adjustkadena/${t}/${a}`,{headers:{zelidauth:e}})},adjustRouterIP(e,t){return(0,s.Z)().get(`/flux/adjustrouterip/${t}`,{headers:{zelidauth:e}})},adjustBlockedPorts(e,t){const a={blockedPorts:t},n={headers:{zelidauth:e}};return(0,s.Z)().post("/flux/adjustblockedports",a,n)},adjustAPIPort(e,t){return(0,s.Z)().get(`/flux/adjustapiport/${t}`,{headers:{zelidauth:e}})},adjustBlockedRepositories(e,t){const a={blockedRepositories:t},n={headers:{zelidauth:e}};return(0,s.Z)().post("/flux/adjustblockedrepositories",a,n)},getKadenaAccount(){const e={headers:{"x-apicache-bypass":!0}};return(0,s.Z)().get("/flux/kadena",e)},getRouterIP(){const e={headers:{"x-apicache-bypass":!0}};return(0,s.Z)().get("/flux/routerip",e)},getBlockedPorts(){const e={headers:{"x-apicache-bypass":!0}};return(0,s.Z)().get("/flux/blockedports",e)},getAPIPort(){const e={headers:{"x-apicache-bypass":!0}};return(0,s.Z)().get("/flux/apiport",e)},getBlockedRepositories(){const e={headers:{"x-apicache-bypass":!0}};return(0,s.Z)().get("/flux/blockedrepositories",e)},getMarketPlaceURL(){return(0,s.Z)().get("/flux/marketplaceurl")},getZelid(){const e={headers:{"x-apicache-bypass":!0}};return(0,s.Z)().get("/flux/zelid",e)},getStaticIpInfo(){return(0,s.Z)().get("/flux/staticip")},restartFluxOS(e){const t={headers:{zelidauth:e,"x-apicache-bypass":!0}};return(0,s.Z)().get("/flux/restart",t)},tailFluxLog(e,t){return(0,s.Z)().get(`/flux/tail${e}log`,{headers:{zelidauth:t}})},justAPI(){return(0,s.Z)()},cancelToken(){return s.S}}}}]); \ No newline at end of file +"use strict";(self["webpackChunkflux"]=self["webpackChunkflux"]||[]).push([[7583],{34547:(e,t,a)=>{a.d(t,{Z:()=>u});var s=function(){var e=this,t=e._self._c;return t("div",{staticClass:"toastification"},[t("div",{staticClass:"d-flex align-items-start"},[t("b-avatar",{staticClass:"mr-75 flex-shrink-0",attrs:{variant:e.variant,size:"1.8rem"}},[t("feather-icon",{attrs:{icon:e.icon,size:"15"}})],1),t("div",{staticClass:"d-flex flex-grow-1"},[t("div",[e.title?t("h5",{staticClass:"mb-0 font-weight-bolder toastification-title",class:`text-${e.variant}`,domProps:{textContent:e._s(e.title)}}):e._e(),e.text?t("small",{staticClass:"d-inline-block text-body",domProps:{textContent:e._s(e.text)}}):e._e()]),t("span",{staticClass:"cursor-pointer toastification-close-icon ml-auto",on:{click:function(t){return e.$emit("close-toast")}}},[e.hideClose?e._e():t("feather-icon",{staticClass:"text-body",attrs:{icon:"XIcon"}})],1)])],1)])},n=[],r=a(47389);const o={components:{BAvatar:r.SH},props:{variant:{type:String,default:"primary"},icon:{type:String,default:null},title:{type:String,default:null},text:{type:String,default:null},hideClose:{type:Boolean,default:!1}}},i=o;var d=a(1001),l=(0,d.Z)(i,s,n,!1,null,"22d964ca",null);const u=l.exports},51748:(e,t,a)=>{a.d(t,{Z:()=>u});var s=function(){var e=this,t=e._self._c;return t("dl",{staticClass:"row",class:e.classes},[t("dt",{staticClass:"col-sm-3"},[e._v(" "+e._s(e.title)+" ")]),e.href.length>0?t("dd",{staticClass:"col-sm-9 mb-0",class:`text-${e.variant}`},[e.href.length>0?t("b-link",{attrs:{href:e.href,target:"_blank",rel:"noopener noreferrer"}},[e._v(" "+e._s(e.data.length>0?e.data:e.number!==Number.MAX_VALUE?e.number:"")+" ")]):e._e()],1):e.click?t("dd",{staticClass:"col-sm-9 mb-0",class:`text-${e.variant}`,on:{click:function(t){return e.$emit("click")}}},[t("b-link",[e._v(" "+e._s(e.data.length>0?e.data:e.number!==Number.MAX_VALUE?e.number:"")+" ")])],1):t("dd",{staticClass:"col-sm-9 mb-0",class:`text-${e.variant}`},[e._v(" "+e._s(e.data.length>0?e.data:e.number!==Number.MAX_VALUE?e.number:"")+" ")])])},n=[],r=a(67347);const o={components:{BLink:r.we},props:{title:{type:String,required:!0},classes:{type:String,required:!1,default:"mb-1"},data:{type:String,required:!1,default:""},number:{type:Number,required:!1,default:Number.MAX_VALUE},variant:{type:String,required:!1,default:"secondary"},href:{type:String,required:!1,default:""},click:{type:Boolean,required:!1,default:!1}}},i=o;var d=a(1001),l=(0,d.Z)(i,s,n,!1,null,null,null);const u=l.exports},87583:(e,t,a)=>{a.r(t),a.d(t,{default:()=>m});var s=function(){var e=this,t=e._self._c;return""!==e.getInfoResponse.data?t("b-card",[t("list-entry",{attrs:{title:"Flux owner Flux ID",data:e.userconfig.zelid}}),t("list-entry",{attrs:{title:"Status",data:e.getNodeStatusResponse.nodeStatus,variant:e.getNodeStatusResponse.class}}),t("list-entry",{attrs:{title:"Flux Payment Address",data:e.getNodeStatusResponse.data.payment_address}}),e.getInfoResponse.data.balance?t("list-entry",{attrs:{title:"Tier",data:e.getNodeStatusResponse.data.tier}}):e._e(),t("list-entry",{attrs:{title:"Flux IP Address",data:e.getNodeStatusResponse.data.ip}}),t("list-entry",{attrs:{title:"Flux IP Network",data:e.getNodeStatusResponse.data.network}}),t("list-entry",{attrs:{title:"Flux Public Key",data:e.getNodeStatusResponse.data.pubkey}}),e.getNodeStatusResponse.data.collateral?t("div",[t("list-entry",{attrs:{title:"Added Height",number:e.getNodeStatusResponse.data.added_height,href:`https://explorer.runonflux.io/block-index/${e.getNodeStatusResponse.data.added_height}`}}),t("list-entry",{attrs:{title:"Confirmed Height",number:e.getNodeStatusResponse.data.confirmed_height,href:`https://explorer.runonflux.io/block-index/${e.getNodeStatusResponse.data.confirmed_height}`}}),t("list-entry",{attrs:{title:"Last Confirmed Height",number:e.getNodeStatusResponse.data.last_confirmed_height,href:`https://explorer.runonflux.io/block-index/${e.getNodeStatusResponse.data.last_confirmed_height}`}}),t("list-entry",{attrs:{title:"Last Paid Height",number:e.getNodeStatusResponse.data.last_paid_height,href:`https://explorer.runonflux.io/block-index/${e.getNodeStatusResponse.data.last_paid_height}`}}),t("list-entry",{attrs:{title:"Locked Transaction",data:"Click to view",href:`https://explorer.runonflux.io/tx/${e.getNodeStatusResponse.data.txhash}`}})],1):e._e(),t("list-entry",{attrs:{title:"Flux Daemon version",number:e.getInfoResponse.data.version}}),t("list-entry",{attrs:{title:"Protocol version",number:e.getInfoResponse.data.protocolversion}}),t("list-entry",{attrs:{title:"Current Blockchain Height",number:e.getInfoResponse.data.blocks}}),""!==e.getInfoResponse.data.errors?t("list-entry",{attrs:{title:"Error",data:e.getInfoResponse.data.errors,variant:"danger"}}):e._e()],1):e._e()},n=[],r=a(86855),o=a(20629),i=a(34547),d=a(51748),l=a(27616),u=a(39055);const c=a(63005),g={components:{ListEntry:d.Z,BCard:r._,ToastificationContent:i.Z},data(){return{timeoptions:c,callResponse:{status:"",data:""},getNodeStatusResponse:{status:"",data:""},getInfoResponse:{status:"",data:""},connectedPeers:[],incomingConnections:[],filterConnectedPeer:""}},computed:{...(0,o.rn)("flux",["config","userconfig","nodeSection"]),fluxLogTail(){return this.callResponse.data.message?this.callResponse.data.message.split("\n").reverse().filter((e=>""!==e)).join("\n"):this.callResponse.data},connectedPeersFilter(){return this.connectedPeers.filter((e=>!this.filterConnectedPeer||e.ip.toLowerCase().includes(this.filterConnectedPeer.toLowerCase())))},incomingConnectionsFilter(){return this.incomingConnections.filter((e=>!this.filterConnectedPeer||e.ip.toLowerCase().includes(this.filterConnectedPeer.toLowerCase())))}},mounted(){this.daemonGetInfo(),this.daemonGetNodeStatus(),this.getownerFluxid()},methods:{async getownerFluxid(){const e=await u.Z.getZelid(),t=e.data.data;"success"===e.data.status&&"string"===typeof t&&this.$store.commit("flux/setUserZelid",t)},async daemonGetInfo(){const e=await l.Z.getInfo();"error"===e.data.status?this.$toast({component:i.Z,props:{title:e.data.data.message||e.data.data,icon:"InfoIcon",variant:"danger"}}):(this.getInfoResponse.status=e.data.status,this.getInfoResponse.data=e.data.data)},async daemonGetNodeStatus(){const e=await l.Z.getFluxNodeStatus();"error"===e.data.status?this.$toast({component:i.Z,props:{title:e.data.data.message||e.data.data,icon:"InfoIcon",variant:"danger"}}):(this.getNodeStatusResponse.status=e.data.status,this.getNodeStatusResponse.data=e.data.data,"CONFIRMED"===this.getNodeStatusResponse.data.status||"CONFIRMED"===this.getNodeStatusResponse.data.location?(this.getNodeStatusResponse.nodeStatus="Flux is working correctly",this.getNodeStatusResponse.class="success"):"STARTED"===this.getNodeStatusResponse.data.status||"STARTED"===this.getNodeStatusResponse.data.location?(this.getNodeStatusResponse.nodeStatus="Flux has just been started. Flux is running with limited capabilities.",this.getNodeStatusResponse.class="warning"):(this.getNodeStatusResponse.nodeStatus="Flux is not confirmed. Flux is running with limited capabilities.",this.getNodeStatusResponse.class="danger"))}}},h=g;var p=a(1001),f=(0,p.Z)(h,s,n,!1,null,null,null);const m=f.exports},63005:(e,t,a)=>{a.r(t),a.d(t,{default:()=>r});const s={year:"numeric",month:"short",day:"numeric",hour:"2-digit",minute:"2-digit"},n={year:"numeric",month:"short",day:"numeric"},r={shortDate:s,date:n}},27616:(e,t,a)=>{a.d(t,{Z:()=>n});var s=a(80914);const n={help(){return(0,s.Z)().get("/daemon/help")},helpSpecific(e){return(0,s.Z)().get(`/daemon/help/${e}`)},getInfo(){return(0,s.Z)().get("/daemon/getinfo")},getFluxNodeStatus(){return(0,s.Z)().get("/daemon/getzelnodestatus")},getRawTransaction(e,t){return(0,s.Z)().get(`/daemon/getrawtransaction/${e}/${t}`)},listFluxNodes(){return(0,s.Z)().get("/daemon/listzelnodes")},viewDeterministicFluxNodeList(){return(0,s.Z)().get("/daemon/viewdeterministiczelnodelist")},getFluxNodeCount(){return(0,s.Z)().get("/daemon/getzelnodecount")},getStartList(){return(0,s.Z)().get("/daemon/getstartlist")},getDOSList(){return(0,s.Z)().get("/daemon/getdoslist")},fluxCurrentWinner(){return(0,s.Z)().get("/daemon/fluxcurrentwinner")},getBenchmarks(){return(0,s.Z)().get("/daemon/getbenchmarks")},getBenchStatus(){return(0,s.Z)().get("/daemon/getbenchstatus")},startBenchmark(e){return(0,s.Z)().get("/daemon/startbenchmark",{headers:{zelidauth:e}})},stopBenchmark(e){return(0,s.Z)().get("/daemon/stopbenchmark",{headers:{zelidauth:e}})},getBlockCount(){return(0,s.Z)().get("/daemon/getBlockCount")},getBlockchainInfo(){return(0,s.Z)().get("/daemon/getblockchaininfo")},getMiningInfo(){return(0,s.Z)().get("/daemon/getmininginfo")},getNetworkInfo(){return(0,s.Z)().get("/daemon/getnetworkinfo")},validateAddress(e,t){return(0,s.Z)().get(`/daemon/validateaddress/${t}`,{headers:{zelidauth:e}})},getWalletInfo(e){return(0,s.Z)().get("/daemon/getwalletinfo",{headers:{zelidauth:e}})},listFluxNodeConf(e){return(0,s.Z)().get("/daemon/listzelnodeconf",{headers:{zelidauth:e}})},start(e){return(0,s.Z)().get("/daemon/start",{headers:{zelidauth:e}})},restart(e){return(0,s.Z)().get("/daemon/restart",{headers:{zelidauth:e}})},stopDaemon(e){return(0,s.Z)().get("/daemon/stop",{headers:{zelidauth:e}})},rescanDaemon(e,t){return(0,s.Z)().get(`/daemon/rescanblockchain/${t}`,{headers:{zelidauth:e}})},getBlock(e,t){return(0,s.Z)().get(`/daemon/getblock/${e}/${t}`)},tailDaemonDebug(e){return(0,s.Z)().get("/flux/taildaemondebug",{headers:{zelidauth:e}})},justAPI(){return(0,s.Z)()},cancelToken(){return s.S}}},39055:(e,t,a)=>{a.d(t,{Z:()=>n});var s=a(80914);const n={softUpdateFlux(e){return(0,s.Z)().get("/flux/softupdateflux",{headers:{zelidauth:e}})},softUpdateInstallFlux(e){return(0,s.Z)().get("/flux/softupdatefluxinstall",{headers:{zelidauth:e}})},updateFlux(e){return(0,s.Z)().get("/flux/updateflux",{headers:{zelidauth:e}})},hardUpdateFlux(e){return(0,s.Z)().get("/flux/hardupdateflux",{headers:{zelidauth:e}})},rebuildHome(e){return(0,s.Z)().get("/flux/rebuildhome",{headers:{zelidauth:e}})},updateDaemon(e){return(0,s.Z)().get("/flux/updatedaemon",{headers:{zelidauth:e}})},reindexDaemon(e){return(0,s.Z)().get("/flux/reindexdaemon",{headers:{zelidauth:e}})},updateBenchmark(e){return(0,s.Z)().get("/flux/updatebenchmark",{headers:{zelidauth:e}})},getFluxVersion(){return(0,s.Z)().get("/flux/version")},broadcastMessage(e,t){const a=t,n={headers:{zelidauth:e}};return(0,s.Z)().post("/flux/broadcastmessage",JSON.stringify(a),n)},connectedPeers(){return(0,s.Z)().get(`/flux/connectedpeers?timestamp=${Date.now()}`)},connectedPeersInfo(){return(0,s.Z)().get(`/flux/connectedpeersinfo?timestamp=${Date.now()}`)},incomingConnections(){return(0,s.Z)().get(`/flux/incomingconnections?timestamp=${Date.now()}`)},incomingConnectionsInfo(){return(0,s.Z)().get(`/flux/incomingconnectionsinfo?timestamp=${Date.now()}`)},addPeer(e,t){return(0,s.Z)().get(`/flux/addpeer/${t}`,{headers:{zelidauth:e}})},removePeer(e,t){return(0,s.Z)().get(`/flux/removepeer/${t}`,{headers:{zelidauth:e}})},removeIncomingPeer(e,t){return(0,s.Z)().get(`/flux/removeincomingpeer/${t}`,{headers:{zelidauth:e}})},adjustKadena(e,t,a){return(0,s.Z)().get(`/flux/adjustkadena/${t}/${a}`,{headers:{zelidauth:e}})},adjustRouterIP(e,t){return(0,s.Z)().get(`/flux/adjustrouterip/${t}`,{headers:{zelidauth:e}})},adjustBlockedPorts(e,t){const a={blockedPorts:t},n={headers:{zelidauth:e}};return(0,s.Z)().post("/flux/adjustblockedports",a,n)},adjustAPIPort(e,t){return(0,s.Z)().get(`/flux/adjustapiport/${t}`,{headers:{zelidauth:e}})},adjustBlockedRepositories(e,t){const a={blockedRepositories:t},n={headers:{zelidauth:e}};return(0,s.Z)().post("/flux/adjustblockedrepositories",a,n)},getKadenaAccount(){const e={headers:{"x-apicache-bypass":!0}};return(0,s.Z)().get("/flux/kadena",e)},getRouterIP(){const e={headers:{"x-apicache-bypass":!0}};return(0,s.Z)().get("/flux/routerip",e)},getBlockedPorts(){const e={headers:{"x-apicache-bypass":!0}};return(0,s.Z)().get("/flux/blockedports",e)},getAPIPort(){const e={headers:{"x-apicache-bypass":!0}};return(0,s.Z)().get("/flux/apiport",e)},getBlockedRepositories(){const e={headers:{"x-apicache-bypass":!0}};return(0,s.Z)().get("/flux/blockedrepositories",e)},getMarketPlaceURL(){return(0,s.Z)().get("/flux/marketplaceurl")},getZelid(){const e={headers:{"x-apicache-bypass":!0}};return(0,s.Z)().get("/flux/zelid",e)},getStaticIpInfo(){return(0,s.Z)().get("/flux/staticip")},restartFluxOS(e){const t={headers:{zelidauth:e,"x-apicache-bypass":!0}};return(0,s.Z)().get("/flux/restart",t)},tailFluxLog(e,t){return(0,s.Z)().get(`/flux/tail${e}log`,{headers:{zelidauth:t}})},justAPI(){return(0,s.Z)()},cancelToken(){return s.S}}}}]); \ No newline at end of file diff --git a/HomeUI/dist/js/7647.js b/HomeUI/dist/js/7647.js new file mode 100644 index 000000000..b912c01b6 --- /dev/null +++ b/HomeUI/dist/js/7647.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunkflux"]=self["webpackChunkflux"]||[]).push([[7647],{57796:(e,t,a)=>{a.d(t,{Z:()=>d});var s=function(){var e=this,t=e._self._c;return t("div",{staticClass:"collapse-icon",class:e.collapseClasses,attrs:{role:"tablist"}},[e._t("default")],2)},n=[],o=(a(70560),a(57632));const l={props:{accordion:{type:Boolean,default:!1},hover:{type:Boolean,default:!1},type:{type:String,default:"default"}},data(){return{collapseID:""}},computed:{collapseClasses(){const e=[],t={default:"collapse-default",border:"collapse-border",shadow:"collapse-shadow",margin:"collapse-margin"};return e.push(t[this.type]),e}},created(){this.collapseID=(0,o.Z)()}},r=l;var i=a(1001),c=(0,i.Z)(r,s,n,!1,null,null,null);const d=c.exports},22049:(e,t,a)=>{a.d(t,{Z:()=>h});var s=function(){var e=this,t=e._self._c;return t("b-card",{class:{open:e.visible},attrs:{"no-body":""},on:{mouseenter:e.collapseOpen,mouseleave:e.collapseClose,focus:e.collapseOpen,blur:e.collapseClose}},[t("b-card-header",{class:{collapsed:!e.visible},attrs:{"aria-expanded":e.visible?"true":"false","aria-controls":e.collapseItemID,role:"tab","data-toggle":"collapse"},on:{click:function(t){return e.updateVisible(!e.visible)}}},[e._t("header",(function(){return[t("span",{staticClass:"lead collapse-title"},[e._v(e._s(e.title))])]}))],2),t("b-collapse",{attrs:{id:e.collapseItemID,accordion:e.accordion,role:"tabpanel"},model:{value:e.visible,callback:function(t){e.visible=t},expression:"visible"}},[t("b-card-body",[e._t("default")],2)],1)],1)},n=[],o=a(86855),l=a(87047),r=a(19279),i=a(11688),c=a(57632);const d={components:{BCard:o._,BCardHeader:l.p,BCardBody:r.O,BCollapse:i.k},props:{isVisible:{type:Boolean,default:!1},title:{type:String,required:!0}},data(){return{visible:!1,collapseItemID:"",openOnHover:this.$parent.hover}},computed:{accordion(){return this.$parent.accordion?`accordion-${this.$parent.collapseID}`:null}},created(){this.collapseItemID=(0,c.Z)(),this.visible=this.isVisible},methods:{updateVisible(e=!0){this.visible=e,this.$emit("visible",e)},collapseOpen(){this.openOnHover&&this.updateVisible(!0)},collapseClose(){this.openOnHover&&this.updateVisible(!1)}}},u=d;var p=a(1001),m=(0,p.Z)(u,s,n,!1,null,null,null);const h=m.exports},34547:(e,t,a)=>{a.d(t,{Z:()=>d});var s=function(){var e=this,t=e._self._c;return t("div",{staticClass:"toastification"},[t("div",{staticClass:"d-flex align-items-start"},[t("b-avatar",{staticClass:"mr-75 flex-shrink-0",attrs:{variant:e.variant,size:"1.8rem"}},[t("feather-icon",{attrs:{icon:e.icon,size:"15"}})],1),t("div",{staticClass:"d-flex flex-grow-1"},[t("div",[e.title?t("h5",{staticClass:"mb-0 font-weight-bolder toastification-title",class:`text-${e.variant}`,domProps:{textContent:e._s(e.title)}}):e._e(),e.text?t("small",{staticClass:"d-inline-block text-body",domProps:{textContent:e._s(e.text)}}):e._e()]),t("span",{staticClass:"cursor-pointer toastification-close-icon ml-auto",on:{click:function(t){return e.$emit("close-toast")}}},[e.hideClose?e._e():t("feather-icon",{staticClass:"text-body",attrs:{icon:"XIcon"}})],1)])],1)])},n=[],o=a(47389);const l={components:{BAvatar:o.SH},props:{variant:{type:String,default:"primary"},icon:{type:String,default:null},title:{type:String,default:null},text:{type:String,default:null},hideClose:{type:Boolean,default:!1}}},r=l;var i=a(1001),c=(0,i.Z)(r,s,n,!1,null,"22d964ca",null);const d=c.exports},67647:(e,t,a)=>{a.r(t),a.d(t,{default:()=>h});var s=function(){var e=this,t=e._self._c;return t("div",[e.callResponse.data?t("b-card",[t("app-collapse",{attrs:{accordion:""},model:{value:e.activeHelpNames,callback:function(t){e.activeHelpNames=t},expression:"activeHelpNames"}},e._l(e.helpResponse,(function(a){return t("div",{key:a},[a.startsWith("=")?t("div",[t("br"),t("h2",[e._v(" "+e._s(a.split(" ")[1])+" ")])]):e._e(),a.startsWith("=")?e._e():t("app-collapse-item",{attrs:{title:a},on:{visible:function(t){return e.updateActiveHelpNames(t,a)}}},[t("p",{staticClass:"helpSpecific"},[e._v(" "+e._s(e.currentHelpResponse||"Loading help message...")+" ")]),t("hr")])],1)})),0)],1):e._e()],1)},n=[],o=a(86855),l=a(34547),r=a(57796),i=a(22049),c=a(27616);const d={components:{BCard:o._,AppCollapse:r.Z,AppCollapseItem:i.Z,ToastificationContent:l.Z},data(){return{callResponse:{status:"",data:""},activeHelpNames:"",currentHelpResponse:""}},computed:{helpResponse(){return this.callResponse.data?this.callResponse.data.split("\n").filter((e=>""!==e)).map((e=>e.startsWith("=")?e:e.split(" ")[0])):[]}},mounted(){this.daemonHelp()},methods:{async daemonHelp(){const e=await c.Z.help();"error"===e.data.status?this.$toast({component:l.Z,props:{title:e.data.data.message||e.data.data,icon:"InfoIcon",variant:"danger"}}):(this.callResponse.status=e.data.status,this.callResponse.data=e.data.data)},updateActiveHelpNames(e,t){this.activeHelpNames=t,this.daemonHelpSpecific()},async daemonHelpSpecific(){this.currentHelpResponse="",console.log(this.activeHelpNames);const e=await c.Z.helpSpecific(this.activeHelpNames);if(console.log(e),"error"===e.data.status)this.$toast({component:l.Z,props:{title:e.data.data.message||e.data.data,icon:"InfoIcon",variant:"danger"}});else{const t=e.data.data.split("\n"),a=t.length;let s=0;for(let e=0;e{a.d(t,{Z:()=>n});var s=a(80914);const n={help(){return(0,s.Z)().get("/daemon/help")},helpSpecific(e){return(0,s.Z)().get(`/daemon/help/${e}`)},getInfo(){return(0,s.Z)().get("/daemon/getinfo")},getFluxNodeStatus(){return(0,s.Z)().get("/daemon/getzelnodestatus")},getRawTransaction(e,t){return(0,s.Z)().get(`/daemon/getrawtransaction/${e}/${t}`)},listFluxNodes(){return(0,s.Z)().get("/daemon/listzelnodes")},viewDeterministicFluxNodeList(){return(0,s.Z)().get("/daemon/viewdeterministiczelnodelist")},getFluxNodeCount(){return(0,s.Z)().get("/daemon/getzelnodecount")},getStartList(){return(0,s.Z)().get("/daemon/getstartlist")},getDOSList(){return(0,s.Z)().get("/daemon/getdoslist")},fluxCurrentWinner(){return(0,s.Z)().get("/daemon/fluxcurrentwinner")},getBenchmarks(){return(0,s.Z)().get("/daemon/getbenchmarks")},getBenchStatus(){return(0,s.Z)().get("/daemon/getbenchstatus")},startBenchmark(e){return(0,s.Z)().get("/daemon/startbenchmark",{headers:{zelidauth:e}})},stopBenchmark(e){return(0,s.Z)().get("/daemon/stopbenchmark",{headers:{zelidauth:e}})},getBlockCount(){return(0,s.Z)().get("/daemon/getBlockCount")},getBlockchainInfo(){return(0,s.Z)().get("/daemon/getblockchaininfo")},getMiningInfo(){return(0,s.Z)().get("/daemon/getmininginfo")},getNetworkInfo(){return(0,s.Z)().get("/daemon/getnetworkinfo")},validateAddress(e,t){return(0,s.Z)().get(`/daemon/validateaddress/${t}`,{headers:{zelidauth:e}})},getWalletInfo(e){return(0,s.Z)().get("/daemon/getwalletinfo",{headers:{zelidauth:e}})},listFluxNodeConf(e){return(0,s.Z)().get("/daemon/listzelnodeconf",{headers:{zelidauth:e}})},start(e){return(0,s.Z)().get("/daemon/start",{headers:{zelidauth:e}})},restart(e){return(0,s.Z)().get("/daemon/restart",{headers:{zelidauth:e}})},stopDaemon(e){return(0,s.Z)().get("/daemon/stop",{headers:{zelidauth:e}})},rescanDaemon(e,t){return(0,s.Z)().get(`/daemon/rescanblockchain/${t}`,{headers:{zelidauth:e}})},getBlock(e,t){return(0,s.Z)().get(`/daemon/getblock/${e}/${t}`)},tailDaemonDebug(e){return(0,s.Z)().get("/flux/taildaemondebug",{headers:{zelidauth:e}})},justAPI(){return(0,s.Z)()},cancelToken(){return s.S}}},57632:(e,t,a)=>{a.d(t,{Z:()=>u});const s="undefined"!==typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),n={randomUUID:s};let o;const l=new Uint8Array(16);function r(){if(!o&&(o="undefined"!==typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!o))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return o(l)}const i=[];for(let p=0;p<256;++p)i.push((p+256).toString(16).slice(1));function c(e,t=0){return i[e[t+0]]+i[e[t+1]]+i[e[t+2]]+i[e[t+3]]+"-"+i[e[t+4]]+i[e[t+5]]+"-"+i[e[t+6]]+i[e[t+7]]+"-"+i[e[t+8]]+i[e[t+9]]+"-"+i[e[t+10]]+i[e[t+11]]+i[e[t+12]]+i[e[t+13]]+i[e[t+14]]+i[e[t+15]]}function d(e,t,a){if(n.randomUUID&&!t&&!e)return n.randomUUID();e=e||{};const s=e.random||(e.rng||r)();if(s[6]=15&s[6]|64,s[8]=63&s[8]|128,t){a=a||0;for(let e=0;e<16;++e)t[a+e]=s[e];return t}return c(s)}const u=d}}]); \ No newline at end of file diff --git a/HomeUI/dist/js/7917.js b/HomeUI/dist/js/7917.js index 41b937d37..0f18ec673 100644 --- a/HomeUI/dist/js/7917.js +++ b/HomeUI/dist/js/7917.js @@ -1 +1 @@ -"use strict";(globalThis["webpackChunkflux"]=globalThis["webpackChunkflux"]||[]).push([[7917],{34547:(t,e,a)=>{a.d(e,{Z:()=>p});var s=function(){var t=this,e=t._self._c;return e("div",{staticClass:"toastification"},[e("div",{staticClass:"d-flex align-items-start"},[e("b-avatar",{staticClass:"mr-75 flex-shrink-0",attrs:{variant:t.variant,size:"1.8rem"}},[e("feather-icon",{attrs:{icon:t.icon,size:"15"}})],1),e("div",{staticClass:"d-flex flex-grow-1"},[e("div",[t.title?e("h5",{staticClass:"mb-0 font-weight-bolder toastification-title",class:`text-${t.variant}`,domProps:{textContent:t._s(t.title)}}):t._e(),t.text?e("small",{staticClass:"d-inline-block text-body",domProps:{textContent:t._s(t.text)}}):t._e()]),e("span",{staticClass:"cursor-pointer toastification-close-icon ml-auto",on:{click:function(e){return t.$emit("close-toast")}}},[t.hideClose?t._e():e("feather-icon",{staticClass:"text-body",attrs:{icon:"XIcon"}})],1)])],1)])},o=[],r=a(47389);const i={components:{BAvatar:r.SH},props:{variant:{type:String,default:"primary"},icon:{type:String,default:null},title:{type:String,default:null},text:{type:String,default:null},hideClose:{type:Boolean,default:!1}}},l=i;var n=a(1001),c=(0,n.Z)(l,s,o,!1,null,"22d964ca",null);const p=c.exports},37917:(t,e,a)=>{a.r(e),a.d(e,{default:()=>ht});var s=function(){var t=this,e=t._self._c;return e("div",{staticStyle:{height:"inherit"}},[e("div",{staticClass:"body-content-overlay",class:{show:t.showDetailSidebar},on:{click:function(e){t.showDetailSidebar=!1}}}),e("div",{staticClass:"xdao-proposal-list"},[e("div",{staticClass:"app-fixed-search d-flex align-items-center"},[e("div",{staticClass:"sidebar-toggle d-block d-lg-none ml-1"},[e("feather-icon",{staticClass:"cursor-pointer",attrs:{icon:"MenuIcon",size:"21"},on:{click:function(e){t.showDetailSidebar=!0}}})],1),e("div",{staticClass:"d-flex align-content-center justify-content-between w-100"},[e("b-input-group",{staticClass:"input-group-merge"},[e("b-input-group-prepend",{attrs:{"is-text":""}},[e("feather-icon",{staticClass:"text-muted",attrs:{icon:"SearchIcon"}})],1),e("b-form-input",{attrs:{value:t.searchQuery,placeholder:"Search proposals"},on:{input:t.updateRouteQuery}})],1)],1),e("div",{staticClass:"dropdown"},[e("b-dropdown",{attrs:{variant:"link","no-caret":"","toggle-class":"p-0 mr-1",right:""},scopedSlots:t._u([{key:"button-content",fn:function(){return[e("feather-icon",{staticClass:"align-middle text-body",attrs:{icon:"MoreVerticalIcon",size:"16"}})]},proxy:!0}])},[e("b-dropdown-item",{on:{click:t.resetSortAndNavigate}},[t._v(" Reset Sort ")]),e("b-dropdown-item",{attrs:{to:{name:t.$route.name,query:{...t.$route.query,sort:"title-asc"}}}},[t._v(" Sort A-Z ")]),e("b-dropdown-item",{attrs:{to:{name:t.$route.name,query:{...t.$route.query,sort:"title-desc"}}}},[t._v(" Sort Z-A ")]),e("b-dropdown-item",{attrs:{to:{name:t.$route.name,query:{...t.$route.query,sort:"end-date"}}}},[t._v(" Sort End Date ")])],1)],1)]),e("vue-perfect-scrollbar",{ref:"proposalListRef",staticClass:"xdao-proposal-list scroll-area",attrs:{settings:t.perfectScrollbarSettings}},[e("ul",{staticClass:"xdao-media-list"},t._l(t.filteredProposals,(function(a){return e("b-media",{key:a.hash,staticClass:"proposal-item",attrs:{tag:"li","no-body":""},on:{click:function(e){return t.handleProposalClick(a)}}},[e("b-media-body",[e("div",{staticClass:"proposal-title-wrapper"},[e("div",{staticClass:"proposal-title-area"},[e("div",{staticClass:"title-wrapper"},[e("span",{staticClass:"proposal-title"},[e("h4",[t._v(t._s(a.topic))])])])]),e("div",{staticClass:"proposal-item-action"},[e("div",{staticClass:"badge-wrapper mr-1"},[e("b-badge",{staticClass:"text-capitalize",attrs:{pill:"",variant:`light-${t.resolveTagVariant(a.status)}`}},[t._v(" "+t._s(a.status)+" ")])],1),a.nickName?e("b-avatar",{attrs:{size:"32",variant:`light-${t.resolveAvatarVariant(a.status)}`,text:t.avatarText(a.nickName)}}):e("b-avatar",{attrs:{size:"32",variant:"light-secondary"}},[e("feather-icon",{attrs:{icon:"UserIcon",size:"16"}})],1)],1)]),e("div",{staticClass:"proposal-title-area"},[e("div",{staticClass:"title-wrapper"},[e("h6",{staticClass:"text-nowrap text-muted mr-1"},[t._v(" Submitted: "+t._s(new Date(a.submitDate).toLocaleString("en-GB",t.timeoptions.shortDate))+" ")]),e("h6",{staticClass:"text-nowrap text-muted mr-1"},[t._v(" End Date: "+t._s(new Date(a.voteEndDate).toLocaleString("en-GB",t.timeoptions.shortDate))+" ")])])]),e("div",{staticClass:"proposal-progress-area"},[e("h6",{staticClass:"text-nowrap text-muted mr-1"},[t._v(" Required Votes: "+t._s(Number(a.votesRequired).toLocaleString())+" ")]),e("b-progress",{staticClass:"proposal-progress",attrs:{max:a.votesRequired,striped:"",animated:""}},[e("b-progress-bar",{attrs:{id:`progressbar-no-${a.hash}`,variant:"danger",value:a.votesNo,"show-progress":""}},[t._v(" No: "+t._s(Number(a.votesNo).toLocaleString())+" ")]),e("b-tooltip",{ref:"tooltip",refInFor:!0,attrs:{target:`progressbar-no-${a.hash}`,disabled:a.votesNo/a.votesRequired>.25}},[e("span",[t._v("No: "+t._s(Number(a.votesNo).toLocaleString()))])]),e("b-progress-bar",{attrs:{id:`progressbar-yes-${a.hash}`,variant:"success",value:a.votesYes,"show-progress":""}},[t._v(" Yes: "+t._s(Number(a.votesYes).toLocaleString())+" ")]),e("b-tooltip",{ref:"tooltip",refInFor:!0,attrs:{target:`progressbar-yes-${a.hash}`,disabled:a.votesYes/a.votesRequired>.25}},[e("span",[t._v("Yes: "+t._s(Number(a.votesYes).toLocaleString()))])])],1)],1)])],1)})),1),e("div",{staticClass:"no-results",class:{show:0===t.filteredProposals.length}},[e("h5",[t._v("No Proposals Found")])])])],1),e("add-proposal-view",{class:{show:t.isAddProposalViewActive},attrs:{zelid:t.zelid},on:{"close-add-proposal-view":function(e){t.isAddProposalViewActive=!1}}}),e("proposal-view",{class:{show:t.isProposalViewActive},attrs:{"proposal-view-data":t.proposal,zelid:t.zelid,"has-next-proposal":!0,"has-previous-proposal":!0},on:{"close-proposal-view":function(e){t.isProposalViewActive=!1}}}),e("portal",{attrs:{to:"content-renderer-sidebar-left"}},[e("proposal-sidebar",{class:{show:t.showDetailSidebar},on:{"close-left-sidebar":function(e){t.showDetailSidebar=!1},"close-proposal-view":function(e){t.isProposalViewActive=!1,t.isAddProposalViewActive=!1},"open-add-proposal-view":function(e){t.isAddProposalViewActive=!0}}})],1)],1)},o=[],r=a(22183),i=a(4060),l=a(27754),n=a(31642),c=a(87379),p=a(72775),d=a(68361),u=a(26034),v=a(47389),m=a(45752),b=a(22981),g=a(18365),f=a(20144),h=a(1923),w=a(23646),x=a(6044),C=a(20266),y=a(41905),_=a(34547),S=a(91040),k=a.n(S),V=function(){var t=this,e=t._self._c;return e("div",{staticClass:"proposal-details"},[e("div",{staticClass:"proposal-detail-header"},[e("div",{staticClass:"proposal-header-left d-flex align-items-center"},[e("span",{staticClass:"go-back mr-1"},[e("feather-icon",{staticClass:"align-bottom",attrs:{icon:t.$store.state.appConfig.isRTL?"ChevronRightIcon":"ChevronLeftIcon",size:"20"},on:{click:function(e){return t.$emit("close-add-proposal-view")}}})],1),e("h4",{staticClass:"proposal-topic mb-0"},[t._v(" Add Proposal ")])])]),e("vue-perfect-scrollbar",{staticClass:"proposal-scroll-area scroll-area mt-2",attrs:{settings:t.perfectScrollbarSettings}},[e("b-row",{staticClass:"match-height"},[e("b-col",{attrs:{xl:"6",md:"12"}},[e("b-card",{attrs:{title:"Topic"}},[e("b-form-input",{staticClass:"mt-4",attrs:{placeholder:"Proposal Topic"},model:{value:t.proposalTopic,callback:function(e){t.proposalTopic=e},expression:"proposalTopic"}})],1)],1),e("b-col",{attrs:{xl:"6",md:"12"}},[e("b-card",{attrs:{title:"Grant"}},[e("b-form-group",{attrs:{"label-cols":"4",label:"Grant Amount","label-for":"grantAmount"}},[e("b-form-input",{attrs:{id:"grantAmount",placeholder:""},model:{value:t.proposalGrantValue,callback:function(e){t.proposalGrantValue=e},expression:"proposalGrantValue"}})],1),e("b-form-group",{attrs:{"label-cols":"4",label:"Grant Pay to Address","label-for":"grantAddress"}},[e("b-form-input",{attrs:{id:"grantAddress",placeholder:"Flux Address to Receive Grant"},model:{value:t.proposalGrantAddress,callback:function(e){t.proposalGrantAddress=e},expression:"proposalGrantAddress"}})],1)],1)],1)],1),e("b-row",{staticClass:"match-height"},[e("b-col",{attrs:{cols:"12"}},[e("b-card",{attrs:{title:"Description"}},[e("b-form-textarea",{attrs:{placeholder:"Proposal Description",rows:"8"},model:{value:t.proposalDescription,callback:function(e){t.proposalDescription=e},expression:"proposalDescription"}})],1)],1)],1),e("b-row",{staticClass:"match-height"},[e("b-col",{attrs:{xl:"6",md:"12"}},[e("b-card",{attrs:{title:"Name/Nickname"}},[e("b-form-input",{staticClass:"mt-2",attrs:{placeholder:"Name/Nickname of Proposal Owner"},model:{value:t.proposalNickName,callback:function(e){t.proposalNickName=e},expression:"proposalNickName"}})],1)],1),e("b-col",{attrs:{xl:"6",md:"12"}},[e("b-card",{attrs:{title:"Validate"}},[e("div",{staticClass:"text-center"},[e("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],attrs:{variant:"primary",pill:"",size:"lg",disabled:t.proposalValid},on:{click:t.validateProposal}},[t._v(" Validate Proposal ")])],1)])],1)],1),t.proposalValid?e("b-row",[e("b-col",{attrs:{cols:"12"}},[e("b-card",{attrs:{title:"Register Proposal"}},[e("div",{staticClass:"text-center"},[e("h4",[t._v("Proposal Price: "+t._s(t.proposalPrice)+" FLUX")]),e("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],attrs:{variant:"primary",pill:"",size:"lg"},on:{click:t.register}},[t._v(" Register Flux XDAO Proposal ")])],1)])],1)],1):t._e(),t.proposalValid&&t.registrationHash?e("b-row",[e("b-col",{attrs:{cols:"12"}},[e("b-card",{attrs:{title:"Complete Transaction"}},[e("b-row",[e("b-col",{attrs:{xl:"6",md:"12"}},[e("div",{staticClass:"text-center"},[t._v(" To finish registration, please make a transaction of "+t._s(t.proposalPrice)+" Flux to address "),e("b-link",{attrs:{href:`https://explorer.runonflux.io/address/${t.foundationAddress}`,target:"_blank","active-class":"primary",rel:"noopener noreferrer"}},[t._v(" "+t._s(t.foundationAddress)+" ")]),t._v(" with the following message: "),e("br"),e("br"),t._v(" "+t._s(t.registrationHash)+" "),e("br"),e("br"),t._v(" The transaction must be sent by "+t._s(new Date(t.validTill).toLocaleString("en-GB",t.timeoptions))+" ")],1)]),e("b-col",{attrs:{xl:"6",md:"12"}},[e("div",{staticClass:"text-center"},[e("p",[t._v(" Pay with Zelcore ")]),e("div",[e("a",{attrs:{href:`zel:?action=pay&coin=zelcash&address=${t.foundationAddress}&amount=${t.proposalPrice}&message=${t.registrationHash}&icon=https%3A%2F%2Fraw.githubusercontent.com%2Frunonflux%2Fflux%2Fmaster%2Fflux_banner.png`}},[e("img",{staticClass:"zelidLogin",attrs:{src:a(96358),alt:"Flux ID",height:"100%",width:"100%"}})])])])])],1)],1)],1)],1):t._e()],1)],1)},D=[],P=a(15193),B=a(86855),A=a(50725),N=a(46709),T=a(333),R=a(67347),$=a(26253);const F=a(97218),I=a(63005),z={components:{BButton:P.T,BCard:B._,BCol:A.l,BFormGroup:N.x,BFormInput:r.e,BFormTextarea:T.y,BLink:R.we,BRow:$.T,ToastificationContent:_.Z,VuePerfectScrollbar:k()},directives:{Ripple:C.Z},props:{zelid:{type:String,required:!1,default:""}},setup(){const t=(0,y.useToast)(),e=(0,f.ref)(""),a=(0,f.ref)(""),s=(0,f.ref)(0),o=(0,f.ref)(""),r=(0,f.ref)(""),i=(0,f.ref)(!1),l=(0,f.ref)(500),n=(0,f.ref)(null),c=(0,f.ref)(""),p=(0,f.ref)(0),d={maxScrollbarLength:150},u=(e,a,s="InfoIcon")=>{t({component:_.Z,props:{title:a,icon:s,variant:e}})},v=async()=>{const t=await F.get("https://stats.runonflux.io/proposals/price");console.log(t),"success"===t.data.status?l.value=t.data.data:u("danger",t.data.data.message||t.data.data)},m=()=>{if(""!==e.value)if(""!==a.value)if(a.value.length<50)u("danger","Proposal Description is too short");else if(e.value.length<3)u("danger","Proposal Topic is too short");else{if(s.value){const t=/^\d+$/.test(s.value);if(!0!==t)return void u("danger","Proposal Grant Amount needs to be an Integer Number");if(s.value>0&&!o.value)return void u("danger","Proposal Grant Pay to Address missing")}o.value&&/\s/.test(o.value)?u("danger","Proposal Grant Pay to Address Invalid, white space detected"):(v(),i.value=!0)}else u("danger","Proposal Description is Mandatory");else u("danger","Proposal Topic is Mandatory")},b=async()=>{const t={topic:e.value,description:a.value,grantValue:s.value,grantAddress:o.value,nickName:r.value},i=await F.post("https://stats.runonflux.io/proposals/submitproposal",JSON.stringify(t));console.log(i),"success"===i.data.status?(c.value=i.data.data.address,n.value=i.data.data.hash,l.value=i.data.data.amount,p.value=i.data.data.paidTillDate):u("danger",i.data.data.message||i.data.data)};return{perfectScrollbarSettings:d,timeoptions:I,validateProposal:m,proposalTopic:e,proposalDescription:a,proposalGrantValue:s,proposalGrantAddress:o,proposalNickName:r,proposalValid:i,proposalPrice:l,registrationHash:n,validTill:p,foundationAddress:c,register:b}}},L=z;var O=a(1001),q=(0,O.Z)(L,V,D,!1,null,"77773e1d",null);const j=q.exports;var G=function(){var t=this,e=t._self._c;return e("div",{staticClass:"proposal-details"},[e("div",{staticClass:"proposal-detail-header"},[e("div",{staticClass:"proposal-header-left d-flex align-items-center"},[e("span",{staticClass:"go-back mr-1"},[e("feather-icon",{staticClass:"align-bottom",attrs:{icon:t.$store.state.appConfig.isRTL?"ChevronRightIcon":"ChevronLeftIcon",size:"20"},on:{click:function(e){return t.$emit("close-proposal-view")}}})],1),e("h4",{staticClass:"proposal-topic mb-0"},[t._v(" "+t._s(t.proposalViewData.topic)+" ")])])]),e("vue-perfect-scrollbar",{staticClass:"proposal-scroll-area scroll-area",attrs:{settings:t.perfectScrollbarSettings}},[e("b-card",{attrs:{title:`Proposed By ${t.proposalViewData.nickName}`}},[e("b-form-textarea",{staticClass:"description-text",attrs:{id:"textarea-rows",rows:"10",readonly:"",value:t.proposalViewData.description}})],1),e("b-row",{staticClass:"mt-1 match-height"},[e("b-col",{attrs:{xxl:"4",lg:"12"}},[e("b-card",{attrs:{title:"Status"}},[e("div",{staticClass:"text-center badge-wrapper mr-1"},[e("b-badge",{staticClass:"text-uppercase",attrs:{pill:"",variant:`light-${t.resolveTagVariant(t.proposalViewData.status)}`}},[t._v(" "+t._s(t.proposalViewData.status)+" ")])],1)])],1),e("b-col",{attrs:{xxl:"4",md:"6",sm:"12"}},[e("b-card",{attrs:{title:"Start Date"}},[e("p",{staticClass:"text-center date"},[t._v(" "+t._s(new Date(Number(t.proposalViewData.submitDate)).toLocaleString("en-GB",t.timeoptions.shortDate))+" ")])])],1),e("b-col",{attrs:{xxl:"4",md:"6",sm:"12"}},[e("b-card",{attrs:{title:"End Date"}},[e("p",{staticClass:"text-center date"},[t._v(" "+t._s(new Date(Number(t.proposalViewData.voteEndDate)).toLocaleString("en-GB",t.timeoptions.shortDate))+" ")])])],1)],1),e("b-row",{staticClass:"match-height"},[e("b-col",{attrs:{lg:"6"}},[e("b-card",{attrs:{"no-body":""}},[e("b-card-header",[e("h4",{staticClass:"mb-0"},[t._v(" Vote Overview ")])]),e("vue-apex-charts",{attrs:{type:"radialBar",height:"200",options:t.voteOverviewRadialBar,series:t.voteOverview.series}}),e("b-row",{staticClass:"text-center mx-0"},[e("b-col",{staticClass:"border-top border-right d-flex align-items-between flex-column py-1",attrs:{cols:"6"}},[e("b-card-text",{staticClass:"text-muted mb-0"},[t._v(" Required ")]),e("h3",{staticClass:"font-weight-bolder mb-0"},[t._v(" "+t._s(Number(t.proposalViewData.votesRequired).toLocaleString())+" ")])],1),e("b-col",{staticClass:"border-top d-flex align-items-between flex-column py-1",attrs:{cols:"6"}},[e("b-card-text",{staticClass:"text-muted mb-0"},[t._v(" Received ")]),e("h3",{staticClass:"font-weight-bolder mb-0"},[t._v(" "+t._s(Number(t.proposalViewData.votesTotal).toLocaleString())+" ")])],1)],1)],1)],1),e("b-col",{attrs:{lg:"6"}},[e("b-card",{attrs:{"no-body":""}},[e("b-card-header",[e("h4",{staticClass:"mb-0"},[t._v(" Vote Breakdown ")])]),e("vue-apex-charts",{attrs:{type:"radialBar",height:"200",options:t.voteBreakdownRadialBar,series:t.voteBreakdown.series}}),e("b-row",{staticClass:"text-center mx-0"},[e("b-col",{staticClass:"border-top border-right d-flex align-items-between flex-column py-1",attrs:{cols:"6"}},[e("b-card-text",{staticClass:"text-muted mb-0"},[t._v(" Yes ")]),e("h3",{staticClass:"font-weight-bolder mb-0 text-success"},[t._v(" "+t._s(Number(t.proposalViewData.votesYes).toLocaleString())+" ")])],1),e("b-col",{staticClass:"border-top d-flex align-items-between flex-column py-1",attrs:{cols:"6"}},[e("b-card-text",{staticClass:"text-muted mb-0"},[t._v(" No ")]),e("h3",{staticClass:"font-weight-bolder mb-0 text-danger"},[t._v(" "+t._s(Number(t.proposalViewData.votesNo).toLocaleString())+" ")])],1)],1)],1)],1)],1),e("b-row",{staticClass:"match-height"},[e("b-col",{attrs:{lg:"6"}},[e("b-card",{attrs:{title:"Grant Amount"}},[e("div",{staticClass:"text-center badge-wrapper mr-1"},[e("b-badge",{staticClass:"text-uppercase",attrs:{pill:"",variant:"light-primary"}},[t._v(" "+t._s(Number(t.proposalViewData.grantValue).toLocaleString())+" FLUX ")])],1)])],1),e("b-col",{attrs:{lg:"6"}},[e("b-card",{attrs:{title:"Grant Address"}},[e("div",{staticClass:"text-center badge-wrapper mr-1"},[e("h4",[e("b-link",{attrs:{href:`https://explorer.runonflux.io/address/${t.proposalViewData.grantAddress}`,target:"_blank","active-class":"primary",rel:"noopener noreferrer"}},[t._v(" "+t._s(t.proposalViewData.grantAddress)+" ")])],1)])])],1)],1),"Open"===t.proposalViewData.status?e("div",[t.haveVoted?e("b-row",[e("b-col",{attrs:{cols:"12"}},[e("b-card",{attrs:{title:"Your Vote"}},[e("div",{staticClass:"text-center badge-wrapper mr-1"},[e("b-badge",{staticClass:"vote-badge",attrs:{pill:"",variant:"light-"+("No"===t.myVote?"danger":"success")}},[t._v(" "+t._s(t.myVote.toUpperCase())+" x"+t._s(t.myNumberOfVotes)+" ")])],1)])],1)],1):e("b-row",{staticClass:"match-height"},[e("b-col",{attrs:{xl:"3",md:"5"}},[e("b-card",{attrs:{title:"Vote Now!"}},[e("p",[t._v("You haven't voted yet! You have a total of "+t._s(t.myNumberOfVotes)+" available.")]),e("div",[e("p",[t._v(" To vote you need to first sign a message with Zelcore with your Flux ID corresponding to your Flux Nodes. ")]),e("div",[e("a",{on:{click:t.initiateSignWS}},[e("img",{staticClass:"zelidLogin",attrs:{src:a(96358),alt:"Flux ID",height:"100%",width:"100%"}})])])])])],1),e("b-col",{attrs:{xl:"5",md:"7"}},[e("b-card",[e("b-row",{staticClass:"mt-2"},[e("b-col",{staticClass:"mb-1",attrs:{cols:"12"}},[e("b-form-group",{attrs:{label:"Message","label-for":"h-message","label-cols-md":"3"}},[e("b-form-input",{attrs:{id:"h-message",readonly:"",placeholder:"Message to Sign"},model:{value:t.dataToSign,callback:function(e){t.dataToSign=e},expression:"dataToSign"}})],1)],1),e("b-col",{staticClass:"mb-1",attrs:{cols:"12"}},[e("b-form-group",{attrs:{label:"Address","label-for":"h-address","label-cols-md":"3"}},[e("b-form-input",{attrs:{id:"h-address",placeholder:"Insert Flux ID"},model:{value:t.userZelid,callback:function(e){t.userZelid=e},expression:"userZelid"}})],1)],1),e("b-col",{staticClass:"mb-1",attrs:{cols:"12"}},[e("b-form-group",{attrs:{label:"Signature","label-for":"h-signature","label-cols-md":"3"}},[e("b-form-input",{attrs:{id:"h-signature",placeholder:"Insert Signature"},model:{value:t.signature,callback:function(e){t.signature=e},expression:"signature"}})],1)],1)],1)],1)],1),e("b-col",{attrs:{xl:"4",md:"12"}},[e("b-card",{staticClass:"text-center"},[e("p",[t._v("Remember, you can't change your vote! After voting it could take around 5 minutes to see the number of votes updated with your vote.")]),e("div",{attrs:{id:"vote-yes-button"}},[e("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"vote-button d-block mt-2",attrs:{variant:"success",size:"lg",pill:"",disabled:!t.signature},on:{click:function(e){return t.vote(!0)}}},[t._v(" YES ")])],1),e("b-tooltip",{ref:"tooltip",attrs:{disabled:!!t.signature,target:"vote-yes-button"}},[e("span",[t._v("Please enter a Signature")])]),e("div",{attrs:{id:"vote-no-button"}},[e("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"vote-button d-block mt-2",attrs:{variant:"danger",size:"lg",pill:"",disabled:!t.signature},on:{click:function(e){return t.vote(!1)}}},[t._v(" NO ")])],1),e("b-tooltip",{ref:"tooltip",attrs:{disabled:!!t.signature,target:"vote-no-button"}},[e("span",[t._v("Please enter a Signature")])])],1)],1)],1)],1):t._e()],1)],1)},Z=[],Y=a(87047),U=a(64206),M=a(37307),E=a(67166),W=a.n(E),H=a(68934);const J=a(97218),Q=a(80129),X=a(58971),K=a(63005),tt={components:{BBadge:u.k,BButton:P.T,BCard:B._,BCardHeader:Y.p,BCardText:U.j,BCol:A.l,BFormGroup:N.x,BFormInput:r.e,BFormTextarea:T.y,BLink:R.we,BRow:$.T,BTooltip:g.T,ToastificationContent:_.Z,VuePerfectScrollbar:k(),VueApexCharts:W()},directives:{Ripple:C.Z},props:{proposalViewData:{type:Object,required:!0},zelid:{type:String,required:!1,default:""},hasNextProposal:{type:Boolean,required:!0},hasPreviousProposal:{type:Boolean,required:!0}},setup(t){const e=(0,f.getCurrentInstance)().proxy,a=(0,f.computed)((()=>e.$store.state.flux.config)),s=(0,y.useToast)(),o=t=>"Open"===t?"warning":"Passed"===t?"success":"Unpaid"===t?"info":t&&t.startsWith("Rejected")?"danger":"primary",r=async()=>{const t=await J.get("https://stats.runonflux.io/general/messagephrase");return"success"===t.data.status&&t.data.data},{xdaoOpenProposals:i}=(0,M.Z)(),l=(0,f.ref)(0),n=(0,f.ref)(""),c=(0,f.ref)("No"),p=(0,f.ref)(!1),d=(0,f.ref)(null),u=(0,f.ref)("");u.value=t.zelid;const v=(0,f.computed)((()=>null!==d.value)),m=async()=>{let e=`https://stats.runonflux.io/proposals/votepower?zelid=${u.value}`;t.proposalViewData.hash&&(e=`https://stats.runonflux.io/proposals/votepower?zelid=${u.value}&hash=${t.proposalViewData.hash}`);const a=await J.get(e);console.log(a),"success"===a.data.status?l.value=a.data.data.power:l.value=0},b=async()=>{const e=await J.get(`https://stats.runonflux.io/proposals/voteInformation?hash=${t.proposalViewData.hash}&zelid=${u.value}`);return e.data},g=async()=>{if(u.value){l.value=0;const e=await b();if("success"===e.status){const a=e.data;"Open"===t.proposalViewData.status&&(null==a||0===a.length?(await m(),p.value=!1):(a.forEach((t=>{l.value+=t.numberOfVotes})),c.value="No",a[0].vote&&(c.value="Yes"),p.value=!0))}}},h=()=>{const{protocol:t,hostname:s,port:o}=window.location;let r="";r+=t,r+="//";const i=/[A-Za-z]/g;if(s.split("-")[4]){const t=s.split("-"),e=t[4].split("."),a=+e[0]+1;e[0]=a.toString(),e[2]="api",t[4]="",r+=t.join("-"),r+=e.join(".")}else if(s.match(i)){const t=s.split(".");t[0]="api",r+=t.join(".")}else{if("string"===typeof s&&e.$store.commit("flux/setUserIp",s),+o>16100){const t=+o+1;e.$store.commit("flux/setFluxPort",t)}r+=s,r+=":",r+=a.value.apiPort}const l=X.get("backendURL")||r,n=`${l}/id/providesign`;return encodeURI(n)},w=t=>{console.log(t)},x=t=>{console.log(t)},C=t=>{const e=Q.parse(t.data);"success"===e.status&&e.data&&(d.value=e.data.signature),console.log(e),console.log(t)},S=t=>{console.log(t)},k=async()=>{if(n.value.length>1800){const t=n.value,e={publicid:Math.floor(999999999999999*Math.random()).toString(),public:t};await J.post("https://storage.runonflux.io/v1/public",e);const a=`zel:?action=sign&message=FLUX_URL=https://storage.runonflux.io/v1/public/${e.publicid}&icon=https%3A%2F%2Fraw.githubusercontent.com%2Frunonflux%2Fflux%2Fmaster%2FzelID.svg&callback=${h()}`;window.location.href=a}else window.location.href=`zel:?action=sign&message=${n.value}&icon=https%3A%2F%2Fraw.githubusercontent.com%2Frunonflux%2Fflux%2Fmaster%2FzelID.svg&callback=${h()}`;const{protocol:t,hostname:s,port:o}=window.location;let r="";r+=t,r+="//";const i=/[A-Za-z]/g;if(s.split("-")[4]){const t=s.split("-"),e=t[4].split("."),a=+e[0]+1;e[0]=a.toString(),e[2]="api",t[4]="",r+=t.join("-"),r+=e.join(".")}else if(s.match(i)){const t=s.split(".");t[0]="api",r+=t.join(".")}else{if("string"===typeof s&&e.$store.commit("flux/setUserIp",s),+o>16100){const t=+o+1;e.$store.commit("flux/setFluxPort",t)}r+=s,r+=":",r+=a.value.apiPort}let l=X.get("backendURL")||r;l=l.replace("https://","wss://"),l=l.replace("http://","ws://");const c=u.value+n.value.slice(-13),p=`${l}/ws/sign/${c}`,d=new WebSocket(p);d.onopen=t=>{x(t)},d.onclose=t=>{S(t)},d.onmessage=t=>{C(t)},d.onerror=t=>{w(t)}},V=async()=>{n.value=await r(),g()},D={maxScrollbarLength:150},P=(0,f.ref)({series:[]}),B=(0,f.ref)({series:[]});(0,f.watch)((()=>t.proposalViewData),(()=>{console.log(t.proposalViewData),P.value={series:[(t.proposalViewData.votesTotal/t.proposalViewData.votesRequired*100).toFixed(1)]},0!==t.proposalViewData.votesTotal?B.value={series:[(t.proposalViewData.votesYes/t.proposalViewData.votesTotal*100).toFixed(0)]}:B.value={series:[0]},V()}));const A=(t,e,a="InfoIcon")=>{s({component:_.Z,props:{title:e,icon:a,variant:t}})},N=async e=>{const a={hash:t.proposalViewData.hash,zelid:u.value,message:n.value,signature:d.value,vote:e};console.log(a);const s=await J.post("https://stats.runonflux.io/proposals/voteproposal",JSON.stringify(a));console.log(s),"success"===s.data.status?(A("success","Vote registered successfully"),c.value=e?"Yes":"No",p.value=!0,i.value-=1):A("danger",s.data.data.message||s.data.data)},T={chart:{height:200,type:"radialBar",sparkline:{enabled:!0},dropShadow:{enabled:!0,blur:3,left:1,top:1,opacity:.1}},colors:[H.j.primary],plotOptions:{radialBar:{offsetY:-10,startAngle:-150,endAngle:150,hollow:{size:"77%"},track:{background:H.j.dark,strokeWidth:"70%"},dataLabels:{name:{show:!1},value:{color:H.j.light,fontSize:"2.3rem",fontWeight:"600"}}}},fill:{type:"gradient",gradient:{shade:"dark",type:"horizontal",shadeIntensity:.5,gradientToColors:[H.j.success],inverseColors:!0,opacityFrom:1,opacityTo:1,stops:[0,100]}},stroke:{lineCap:"round"},grid:{padding:{bottom:30}}},R={chart:{height:200,type:"radialBar",sparkline:{enabled:!0},dropShadow:{enabled:!0,blur:3,left:1,top:1,opacity:.1}},colors:[H.j.primary],labels:["Yes"],plotOptions:{radialBar:{offsetY:-10,startAngle:-150,endAngle:150,hollow:{size:"77%"},track:{background:H.j.dark,strokeWidth:"50%"},dataLabels:{name:{offsetY:-15,color:H.j.light,fontSize:"1.5rem"},value:{offsetY:10,color:H.j.light,fontSize:"2.86rem",fontWeight:"600"}}}},fill:{type:"gradient",gradient:{shade:"dark",type:"horizontal",shadeIntensity:.5,gradientToColors:[H.j.success],inverseColors:!0,opacityFrom:1,opacityTo:1,stops:[0,100]}},stroke:{lineCap:"round"},grid:{padding:{bottom:30}}};return{perfectScrollbarSettings:D,voteOverviewRadialBar:T,voteBreakdownRadialBar:R,resolveTagVariant:o,timeoptions:K,voteOverview:P,voteBreakdown:B,vote:N,initiateSignWS:k,callbackValueSign:h,myVote:c,haveVoted:p,myNumberOfVotes:l,dataToSign:n,signature:d,hasSignature:v,onError:w,onOpen:x,onClose:S,onMessage:C,userZelid:u}}},et=tt;var at=(0,O.Z)(et,G,Z,!1,null,"8f00e802",null);const st=at.exports;var ot=function(){var t=this,e=t._self._c;return e("div",{staticClass:"sidebar-left"},[e("div",{staticClass:"sidebar"},[e("div",{staticClass:"sidebar-content xdao-sidebar"},[e("div",{staticClass:"xdao-app-menu"},[e("div",{staticClass:"add-task"},[e("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],attrs:{variant:"primary",block:""},on:{click:function(e){t.$emit("close-proposal-view"),t.$emit("close-left-sidebar"),t.$emit("open-add-proposal-view")}}},[t._v(" Add Proposal ")])],1),e("vue-perfect-scrollbar",{staticClass:"sidebar-menu-list scroll-area",attrs:{settings:t.perfectScrollbarSettings}},[e("b-list-group",{staticClass:"list-group-filters"},t._l(t.taskFilters,(function(a){return e("b-list-group-item",{key:a.title+t.$route.path,attrs:{to:a.route,active:t.isDynamicRouteActive(a.route)},on:{click:function(e){t.$emit("close-proposal-view"),t.$emit("close-left-sidebar")}}},[e("feather-icon",{staticClass:"mr-75",attrs:{icon:a.icon,size:"18"}}),e("span",{staticClass:"align-text-bottom line-height-1"},[t._v(t._s(a.title))])],1)})),1)],1)],1)])])])},rt=[],it=a(70322),lt=a(88367);const nt={directives:{Ripple:C.Z},components:{BButton:P.T,BListGroup:it.N,BListGroupItem:lt.f,VuePerfectScrollbar:k()},props:{},setup(){const t={maxScrollbarLength:60},e=[{title:"All Proposals",icon:"MailIcon",route:{name:"xdao-app"}},{title:"Open",icon:"StarIcon",route:{name:"xdao-app-filter",params:{filter:"open"}}},{title:"Passed",icon:"CheckIcon",route:{name:"xdao-app-filter",params:{filter:"passed"}}},{title:"Unpaid",icon:"StarIcon",route:{name:"xdao-app-filter",params:{filter:"unpaid"}}},{title:"Rejected",icon:"TrashIcon",route:{name:"xdao-app-filter",params:{filter:"rejected"}}}];return{perfectScrollbarSettings:t,taskFilters:e,isDynamicRouteActive:w._d}}},ct=nt;var pt=(0,O.Z)(ct,ot,rt,!1,null,null,null);const dt=pt.exports,ut=a(80129),vt=a(97218),mt=a(63005),bt={components:{BFormInput:r.e,BInputGroup:i.w,BInputGroupPrepend:l.P,BDropdown:n.R,BDropdownItem:c.E,BMedia:p.P,BMediaBody:d.D,BBadge:u.k,BAvatar:v.SH,BProgress:m.D,BProgressBar:b.Q,BTooltip:g.T,AddProposalView:j,ProposalView:st,ProposalSidebar:dt,VuePerfectScrollbar:k(),ToastificationContent:_.Z},directives:{Ripple:C.Z},setup(){const t=(0,f.ref)(null),e=(0,f.ref)(null),a=(0,y.useToast)();(0,f.onBeforeMount)((()=>{const t=localStorage.getItem("zelidauth"),a=ut.parse(t);e.value=a.zelid}));const{showDetailSidebar:s}=(0,x.w)(),{route:o,router:r}=(0,w.tv)(),i=(0,f.computed)((()=>o.value.query.sort)),l=(0,f.computed)((()=>o.value.query.q)),n=(0,f.computed)((()=>o.value.params));(0,f.watch)(n,(()=>{k()}));const c=(0,f.ref)([]),p=["latest","title-asc","title-desc","end-date"],d=(0,f.ref)(i.value);(0,f.watch)(i,(t=>{p.includes(t),d.value=t}));const u=()=>{const t=JSON.parse(JSON.stringify(o.value.query));delete t.sort,r.replace({name:o.name,query:t}).catch((()=>{}))},v=(0,f.ref)({}),m=(t,e,s="InfoIcon")=>{a({component:_.Z,props:{title:e,icon:s,variant:t}})},b=t=>"Open"===t?"warning":"Passed"===t?"success":"Unpaid"===t?"info":t.startsWith("Rejected")?"danger":"primary",g=t=>"Open"===t?"warning":"Passed"===t?"success":"Unpaid"===t?"info":t.startsWith("Rejected")?"danger":"primary",C=(0,f.ref)(l.value);(0,f.watch)(l,(t=>{C.value=t})),(0,f.watch)([C,d],(()=>k()));const S=t=>{const e=JSON.parse(JSON.stringify(o.value.query));t?e.q=t:delete e.q,r.replace({name:o.name,query:e})},k=async()=>{const t=await vt.get("https://stats.runonflux.io/proposals/listProposals");"success"===t.data.status?(c.value=t.data.data,r.currentRoute.params.filter&&("open"===r.currentRoute.params.filter&&(c.value=c.value.filter((t=>"Open"===t.status))),"passed"===r.currentRoute.params.filter&&(c.value=c.value.filter((t=>"Passed"===t.status))),"unpaid"===r.currentRoute.params.filter&&(c.value=c.value.filter((t=>"Unpaid"===t.status))),"rejected"===r.currentRoute.params.filter&&(c.value=c.value.filter((t=>"Rejected"===t.status||"Rejected Unpaid"===t.status||"Rejected Not Enough Votes"===t.status)))),C.value&&(c.value=c.value.filter((t=>!!t.topic.toLowerCase().includes(C.value)||(!!t.description.toLowerCase().includes(C.value)||!!t.nickName.toLowerCase().includes(C.value))))),d.value&&c.value.sort(((t,e)=>"title-asc"===d.value?t.topic.localeCompare(e.topic):"title-desc"===d.value?e.topic.localeCompare(t.topic):"end-date"===d.value?t.voteEndDate-e.voteEndDate:0))):m("danger",t.data.data.message||t.data.data)};k();const V=(0,f.ref)(!1),D=(0,f.ref)(!1),P=t=>{v.value=t,V.value=!0},B={maxScrollbarLength:150};return{zelid:e,proposalListRef:t,timeoptions:mt,proposal:v,handleProposalClick:P,updateRouteQuery:S,searchQuery:C,filteredProposals:c,sortOptions:p,resetSortAndNavigate:u,perfectScrollbarSettings:B,resolveTagVariant:b,resolveAvatarVariant:g,avatarText:h.k3,isProposalViewActive:V,isAddProposalViewActive:D,showDetailSidebar:s}}},gt=bt;var ft=(0,O.Z)(gt,s,o,!1,null,null,null);const ht=ft.exports},6044:(t,e,a)=>{a.d(e,{w:()=>r});var s=a(20144),o=a(73507);const r=()=>{const t=(0,s.ref)(!1),e=(0,s.computed)((()=>o.Z.getters["app/currentBreakPoint"]));return(0,s.watch)(e,((e,a)=>{"md"===a&&"lg"===e&&(t.value=!1)})),{mqShallShowLeftSidebar:t}}},1923:(t,e,a)=>{a.d(e,{k3:()=>s});a(70560),a(23646);const s=t=>{if(!t)return"";const e=t.split(" ");return e.map((t=>t.charAt(0).toUpperCase())).join("")}},63005:(t,e,a)=>{a.r(e),a.d(e,{default:()=>r});const s={year:"numeric",month:"short",day:"numeric",hour:"2-digit",minute:"2-digit"},o={year:"numeric",month:"short",day:"numeric"},r={shortDate:s,date:o}},96358:(t,e,a)=>{t.exports=a.p+"img/FluxID.svg"}}]); \ No newline at end of file +(self["webpackChunkflux"]=self["webpackChunkflux"]||[]).push([[7917],{34547:(t,e,a)=>{"use strict";a.d(e,{Z:()=>p});var s=function(){var t=this,e=t._self._c;return e("div",{staticClass:"toastification"},[e("div",{staticClass:"d-flex align-items-start"},[e("b-avatar",{staticClass:"mr-75 flex-shrink-0",attrs:{variant:t.variant,size:"1.8rem"}},[e("feather-icon",{attrs:{icon:t.icon,size:"15"}})],1),e("div",{staticClass:"d-flex flex-grow-1"},[e("div",[t.title?e("h5",{staticClass:"mb-0 font-weight-bolder toastification-title",class:`text-${t.variant}`,domProps:{textContent:t._s(t.title)}}):t._e(),t.text?e("small",{staticClass:"d-inline-block text-body",domProps:{textContent:t._s(t.text)}}):t._e()]),e("span",{staticClass:"cursor-pointer toastification-close-icon ml-auto",on:{click:function(e){return t.$emit("close-toast")}}},[t.hideClose?t._e():e("feather-icon",{staticClass:"text-body",attrs:{icon:"XIcon"}})],1)])],1)])},o=[],r=a(47389);const i={components:{BAvatar:r.SH},props:{variant:{type:String,default:"primary"},icon:{type:String,default:null},title:{type:String,default:null},text:{type:String,default:null},hideClose:{type:Boolean,default:!1}}},l=i;var n=a(1001),c=(0,n.Z)(l,s,o,!1,null,"22d964ca",null);const p=c.exports},37917:(t,e,a)=>{"use strict";a.r(e),a.d(e,{default:()=>gt});var s=function(){var t=this,e=t._self._c;return e("div",{staticStyle:{height:"inherit"}},[e("div",{staticClass:"body-content-overlay",class:{show:t.showDetailSidebar},on:{click:function(e){t.showDetailSidebar=!1}}}),e("div",{staticClass:"xdao-proposal-list"},[e("div",{staticClass:"app-fixed-search d-flex align-items-center"},[e("div",{staticClass:"sidebar-toggle d-block d-lg-none ml-1"},[e("feather-icon",{staticClass:"cursor-pointer",attrs:{icon:"MenuIcon",size:"21"},on:{click:function(e){t.showDetailSidebar=!0}}})],1),e("div",{staticClass:"d-flex align-content-center justify-content-between w-100"},[e("b-input-group",{staticClass:"input-group-merge"},[e("b-input-group-prepend",{attrs:{"is-text":""}},[e("feather-icon",{staticClass:"text-muted",attrs:{icon:"SearchIcon"}})],1),e("b-form-input",{attrs:{value:t.searchQuery,placeholder:"Search proposals"},on:{input:t.updateRouteQuery}})],1)],1),e("div",{staticClass:"dropdown"},[e("b-dropdown",{attrs:{variant:"link","no-caret":"","toggle-class":"p-0 mr-1",right:""},scopedSlots:t._u([{key:"button-content",fn:function(){return[e("feather-icon",{staticClass:"align-middle text-body",attrs:{icon:"MoreVerticalIcon",size:"16"}})]},proxy:!0}])},[e("b-dropdown-item",{on:{click:t.resetSortAndNavigate}},[t._v(" Reset Sort ")]),e("b-dropdown-item",{attrs:{to:{name:t.$route.name,query:{...t.$route.query,sort:"title-asc"}}}},[t._v(" Sort A-Z ")]),e("b-dropdown-item",{attrs:{to:{name:t.$route.name,query:{...t.$route.query,sort:"title-desc"}}}},[t._v(" Sort Z-A ")]),e("b-dropdown-item",{attrs:{to:{name:t.$route.name,query:{...t.$route.query,sort:"end-date"}}}},[t._v(" Sort End Date ")])],1)],1)]),e("vue-perfect-scrollbar",{ref:"proposalListRef",staticClass:"xdao-proposal-list scroll-area",attrs:{settings:t.perfectScrollbarSettings}},[e("ul",{staticClass:"xdao-media-list"},t._l(t.filteredProposals,(function(a){return e("b-media",{key:a.hash,staticClass:"proposal-item",attrs:{tag:"li","no-body":""},on:{click:function(e){return t.handleProposalClick(a)}}},[e("b-media-body",[e("div",{staticClass:"proposal-title-wrapper"},[e("div",{staticClass:"proposal-title-area"},[e("div",{staticClass:"title-wrapper"},[e("span",{staticClass:"proposal-title"},[e("h4",[t._v(t._s(a.topic))])])])]),e("div",{staticClass:"proposal-item-action"},[e("div",{staticClass:"badge-wrapper mr-1"},[e("b-badge",{staticClass:"text-capitalize",attrs:{pill:"",variant:`light-${t.resolveTagVariant(a.status)}`}},[t._v(" "+t._s(a.status)+" ")])],1),a.nickName?e("b-avatar",{attrs:{size:"32",variant:`light-${t.resolveAvatarVariant(a.status)}`,text:t.avatarText(a.nickName)}}):e("b-avatar",{attrs:{size:"32",variant:"light-secondary"}},[e("feather-icon",{attrs:{icon:"UserIcon",size:"16"}})],1)],1)]),e("div",{staticClass:"proposal-title-area"},[e("div",{staticClass:"title-wrapper"},[e("h6",{staticClass:"text-nowrap text-muted mr-1"},[t._v(" Submitted: "+t._s(new Date(a.submitDate).toLocaleString("en-GB",t.timeoptions.shortDate))+" ")]),e("h6",{staticClass:"text-nowrap text-muted mr-1"},[t._v(" End Date: "+t._s(new Date(a.voteEndDate).toLocaleString("en-GB",t.timeoptions.shortDate))+" ")])])]),e("div",{staticClass:"proposal-progress-area"},[e("h6",{staticClass:"text-nowrap text-muted mr-1"},[t._v(" Required Votes: "+t._s(Number(a.votesRequired).toLocaleString())+" ")]),e("b-progress",{staticClass:"proposal-progress",attrs:{max:a.votesRequired,striped:"",animated:""}},[e("b-progress-bar",{attrs:{id:`progressbar-no-${a.hash}`,variant:"danger",value:a.votesNo,"show-progress":""}},[t._v(" No: "+t._s(Number(a.votesNo).toLocaleString())+" ")]),e("b-tooltip",{ref:"tooltip",refInFor:!0,attrs:{target:`progressbar-no-${a.hash}`,disabled:a.votesNo/a.votesRequired>.25}},[e("span",[t._v("No: "+t._s(Number(a.votesNo).toLocaleString()))])]),e("b-progress-bar",{attrs:{id:`progressbar-yes-${a.hash}`,variant:"success",value:a.votesYes,"show-progress":""}},[t._v(" Yes: "+t._s(Number(a.votesYes).toLocaleString())+" ")]),e("b-tooltip",{ref:"tooltip",refInFor:!0,attrs:{target:`progressbar-yes-${a.hash}`,disabled:a.votesYes/a.votesRequired>.25}},[e("span",[t._v("Yes: "+t._s(Number(a.votesYes).toLocaleString()))])])],1)],1)])],1)})),1),e("div",{staticClass:"no-results",class:{show:0===t.filteredProposals.length}},[e("h5",[t._v("No Proposals Found")])])])],1),e("add-proposal-view",{class:{show:t.isAddProposalViewActive},attrs:{zelid:t.zelid},on:{"close-add-proposal-view":function(e){t.isAddProposalViewActive=!1}}}),e("proposal-view",{class:{show:t.isProposalViewActive},attrs:{"proposal-view-data":t.proposal,zelid:t.zelid,"has-next-proposal":!0,"has-previous-proposal":!0},on:{"close-proposal-view":function(e){t.isProposalViewActive=!1}}}),e("portal",{attrs:{to:"content-renderer-sidebar-left"}},[e("proposal-sidebar",{class:{show:t.showDetailSidebar},on:{"close-left-sidebar":function(e){t.showDetailSidebar=!1},"close-proposal-view":function(e){t.isProposalViewActive=!1,t.isAddProposalViewActive=!1},"open-add-proposal-view":function(e){t.isAddProposalViewActive=!0}}})],1)],1)},o=[],r=a(22183),i=a(4060),l=a(27754),n=a(31642),c=a(87379),p=a(72775),d=a(68361),u=a(26034),v=a(47389),h=a(45752),f=a(22981),b=a(18365),m=a(20144),g=a(1923),w=a(23646),x=a(6044),y=a(20266),C=a(41905),S=a(34547),_=a(91040),k=a.n(_),D=function(){var t=this,e=t._self._c;return e("div",{staticClass:"proposal-details"},[e("div",{staticClass:"proposal-detail-header"},[e("div",{staticClass:"proposal-header-left d-flex align-items-center"},[e("span",{staticClass:"go-back mr-1"},[e("feather-icon",{staticClass:"align-bottom",attrs:{icon:t.$store.state.appConfig.isRTL?"ChevronRightIcon":"ChevronLeftIcon",size:"20"},on:{click:function(e){return t.$emit("close-add-proposal-view")}}})],1),e("h4",{staticClass:"proposal-topic mb-0"},[t._v(" Add Proposal ")])])]),e("vue-perfect-scrollbar",{staticClass:"proposal-scroll-area scroll-area mt-2",attrs:{settings:t.perfectScrollbarSettings}},[e("b-row",{staticClass:"match-height"},[e("b-col",{attrs:{xl:"6",md:"12"}},[e("b-card",{attrs:{title:"Topic"}},[e("b-form-input",{staticClass:"mt-4",attrs:{placeholder:"Proposal Topic"},model:{value:t.proposalTopic,callback:function(e){t.proposalTopic=e},expression:"proposalTopic"}})],1)],1),e("b-col",{attrs:{xl:"6",md:"12"}},[e("b-card",{attrs:{title:"Grant"}},[e("b-form-group",{attrs:{"label-cols":"4",label:"Grant Amount","label-for":"grantAmount"}},[e("b-form-input",{attrs:{id:"grantAmount",placeholder:""},model:{value:t.proposalGrantValue,callback:function(e){t.proposalGrantValue=e},expression:"proposalGrantValue"}})],1),e("b-form-group",{attrs:{"label-cols":"4",label:"Grant Pay to Address","label-for":"grantAddress"}},[e("b-form-input",{attrs:{id:"grantAddress",placeholder:"Flux Address to Receive Grant"},model:{value:t.proposalGrantAddress,callback:function(e){t.proposalGrantAddress=e},expression:"proposalGrantAddress"}})],1)],1)],1)],1),e("b-row",{staticClass:"match-height"},[e("b-col",{attrs:{cols:"12"}},[e("b-card",{attrs:{title:"Description"}},[e("b-form-textarea",{attrs:{placeholder:"Proposal Description",rows:"8"},model:{value:t.proposalDescription,callback:function(e){t.proposalDescription=e},expression:"proposalDescription"}})],1)],1)],1),e("b-row",{staticClass:"match-height"},[e("b-col",{attrs:{xl:"6",md:"12"}},[e("b-card",{attrs:{title:"Name/Nickname"}},[e("b-form-input",{staticClass:"mt-2",attrs:{placeholder:"Name/Nickname of Proposal Owner"},model:{value:t.proposalNickName,callback:function(e){t.proposalNickName=e},expression:"proposalNickName"}})],1)],1),e("b-col",{attrs:{xl:"6",md:"12"}},[e("b-card",{attrs:{title:"Validate"}},[e("div",{staticClass:"text-center"},[e("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],attrs:{variant:"primary",pill:"",size:"lg",disabled:t.proposalValid},on:{click:t.validateProposal}},[t._v(" Validate Proposal ")])],1)])],1)],1),t.proposalValid?e("b-row",[e("b-col",{attrs:{cols:"12"}},[e("b-card",{attrs:{title:"Register Proposal"}},[e("div",{staticClass:"text-center"},[e("h4",[t._v("Proposal Price: "+t._s(t.proposalPrice)+" FLUX")]),e("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],attrs:{variant:"primary",pill:"",size:"lg"},on:{click:t.register}},[t._v(" Register Flux XDAO Proposal ")])],1)])],1)],1):t._e(),t.proposalValid&&t.registrationHash?e("b-row",[e("b-col",{attrs:{cols:"12"}},[e("b-card",{attrs:{title:"Complete Transaction"}},[e("b-row",[e("b-col",{attrs:{xl:"6",md:"12"}},[e("div",{staticClass:"text-center"},[t._v(" To finish registration, please make a transaction of "+t._s(t.proposalPrice)+" Flux to address "),e("b-link",{attrs:{href:`https://explorer.runonflux.io/address/${t.foundationAddress}`,target:"_blank","active-class":"primary",rel:"noopener noreferrer"}},[t._v(" "+t._s(t.foundationAddress)+" ")]),t._v(" with the following message: "),e("br"),e("br"),t._v(" "+t._s(t.registrationHash)+" "),e("br"),e("br"),t._v(" The transaction must be sent by "+t._s(new Date(t.validTill).toLocaleString("en-GB",t.timeoptions))+" ")],1)]),e("b-col",{attrs:{xl:"6",md:"12"}},[e("div",{staticClass:"text-center"},[e("p",[t._v(" Pay with Zelcore ")]),e("div",[e("a",{attrs:{href:`zel:?action=pay&coin=zelcash&address=${t.foundationAddress}&amount=${t.proposalPrice}&message=${t.registrationHash}&icon=https%3A%2F%2Fraw.githubusercontent.com%2Frunonflux%2Fflux%2Fmaster%2Fflux_banner.png`}},[e("img",{staticClass:"zelidLogin",attrs:{src:a(96358),alt:"Flux ID",height:"100%",width:"100%"}})])])])])],1)],1)],1)],1):t._e()],1)],1)},P=[],A=a(15193),V=a(86855),B=a(50725),N=a(46709),T=a(333),$=a(67347),R=a(26253);const I=a(97218),O=a(63005),z={components:{BButton:A.T,BCard:V._,BCol:B.l,BFormGroup:N.x,BFormInput:r.e,BFormTextarea:T.y,BLink:$.we,BRow:R.T,ToastificationContent:S.Z,VuePerfectScrollbar:k()},directives:{Ripple:y.Z},props:{zelid:{type:String,required:!1,default:""}},setup(){const t=(0,C.useToast)(),e=(0,m.ref)(""),a=(0,m.ref)(""),s=(0,m.ref)(0),o=(0,m.ref)(""),r=(0,m.ref)(""),i=(0,m.ref)(!1),l=(0,m.ref)(500),n=(0,m.ref)(null),c=(0,m.ref)(""),p=(0,m.ref)(0),d={maxScrollbarLength:150},u=(e,a,s="InfoIcon")=>{t({component:S.Z,props:{title:a,icon:s,variant:e}})},v=async()=>{const t=await I.get("https://stats.runonflux.io/proposals/price");console.log(t),"success"===t.data.status?l.value=t.data.data:u("danger",t.data.data.message||t.data.data)},h=()=>{if(""!==e.value)if(""!==a.value)if(a.value.length<50)u("danger","Proposal Description is too short");else if(e.value.length<3)u("danger","Proposal Topic is too short");else{if(s.value){const t=/^\d+$/.test(s.value);if(!0!==t)return void u("danger","Proposal Grant Amount needs to be an Integer Number");if(s.value>0&&!o.value)return void u("danger","Proposal Grant Pay to Address missing")}o.value&&/\s/.test(o.value)?u("danger","Proposal Grant Pay to Address Invalid, white space detected"):(v(),i.value=!0)}else u("danger","Proposal Description is Mandatory");else u("danger","Proposal Topic is Mandatory")},f=async()=>{const t={topic:e.value,description:a.value,grantValue:s.value,grantAddress:o.value,nickName:r.value},i=await I.post("https://stats.runonflux.io/proposals/submitproposal",JSON.stringify(t));console.log(i),"success"===i.data.status?(c.value=i.data.data.address,n.value=i.data.data.hash,l.value=i.data.data.amount,p.value=i.data.data.paidTillDate):u("danger",i.data.data.message||i.data.data)};return{perfectScrollbarSettings:d,timeoptions:O,validateProposal:h,proposalTopic:e,proposalDescription:a,proposalGrantValue:s,proposalGrantAddress:o,proposalNickName:r,proposalValid:i,proposalPrice:l,registrationHash:n,validTill:p,foundationAddress:c,register:f}}},F=z;var L=a(1001),j=(0,L.Z)(F,D,P,!1,null,"77773e1d",null);const q=j.exports;var G=function(){var t=this,e=t._self._c;return e("div",{staticClass:"proposal-details"},[e("div",{staticClass:"proposal-detail-header"},[e("div",{staticClass:"proposal-header-left d-flex align-items-center"},[e("span",{staticClass:"go-back mr-1"},[e("feather-icon",{staticClass:"align-bottom",attrs:{icon:t.$store.state.appConfig.isRTL?"ChevronRightIcon":"ChevronLeftIcon",size:"20"},on:{click:function(e){return t.$emit("close-proposal-view")}}})],1),e("h4",{staticClass:"proposal-topic mb-0"},[t._v(" "+t._s(t.proposalViewData.topic)+" ")])])]),e("vue-perfect-scrollbar",{staticClass:"proposal-scroll-area scroll-area",attrs:{settings:t.perfectScrollbarSettings}},[e("b-card",{attrs:{title:`Proposed By ${t.proposalViewData.nickName}`}},[e("b-form-textarea",{staticClass:"description-text",attrs:{id:"textarea-rows",rows:"10",readonly:"",value:t.proposalViewData.description}})],1),e("b-row",{staticClass:"mt-1 match-height"},[e("b-col",{attrs:{xxl:"4",lg:"12"}},[e("b-card",{attrs:{title:"Status"}},[e("div",{staticClass:"text-center badge-wrapper mr-1"},[e("b-badge",{staticClass:"text-uppercase",attrs:{pill:"",variant:`light-${t.resolveTagVariant(t.proposalViewData.status)}`}},[t._v(" "+t._s(t.proposalViewData.status)+" ")])],1)])],1),e("b-col",{attrs:{xxl:"4",md:"6",sm:"12"}},[e("b-card",{attrs:{title:"Start Date"}},[e("p",{staticClass:"text-center date"},[t._v(" "+t._s(new Date(Number(t.proposalViewData.submitDate)).toLocaleString("en-GB",t.timeoptions.shortDate))+" ")])])],1),e("b-col",{attrs:{xxl:"4",md:"6",sm:"12"}},[e("b-card",{attrs:{title:"End Date"}},[e("p",{staticClass:"text-center date"},[t._v(" "+t._s(new Date(Number(t.proposalViewData.voteEndDate)).toLocaleString("en-GB",t.timeoptions.shortDate))+" ")])])],1)],1),e("b-row",{staticClass:"match-height"},[e("b-col",{attrs:{lg:"6"}},[e("b-card",{attrs:{"no-body":""}},[e("b-card-header",[e("h4",{staticClass:"mb-0"},[t._v(" Vote Overview ")])]),e("vue-apex-charts",{attrs:{type:"radialBar",height:"200",options:t.voteOverviewRadialBar,series:t.voteOverview.series}}),e("b-row",{staticClass:"text-center mx-0"},[e("b-col",{staticClass:"border-top border-right d-flex align-items-between flex-column py-1",attrs:{cols:"6"}},[e("b-card-text",{staticClass:"text-muted mb-0"},[t._v(" Required ")]),e("h3",{staticClass:"font-weight-bolder mb-0"},[t._v(" "+t._s(Number(t.proposalViewData.votesRequired).toLocaleString())+" ")])],1),e("b-col",{staticClass:"border-top d-flex align-items-between flex-column py-1",attrs:{cols:"6"}},[e("b-card-text",{staticClass:"text-muted mb-0"},[t._v(" Received ")]),e("h3",{staticClass:"font-weight-bolder mb-0"},[t._v(" "+t._s(Number(t.proposalViewData.votesTotal).toLocaleString())+" ")])],1)],1)],1)],1),e("b-col",{attrs:{lg:"6"}},[e("b-card",{attrs:{"no-body":""}},[e("b-card-header",[e("h4",{staticClass:"mb-0"},[t._v(" Vote Breakdown ")])]),e("vue-apex-charts",{attrs:{type:"radialBar",height:"200",options:t.voteBreakdownRadialBar,series:t.voteBreakdown.series}}),e("b-row",{staticClass:"text-center mx-0"},[e("b-col",{staticClass:"border-top border-right d-flex align-items-between flex-column py-1",attrs:{cols:"6"}},[e("b-card-text",{staticClass:"text-muted mb-0"},[t._v(" Yes ")]),e("h3",{staticClass:"font-weight-bolder mb-0 text-success"},[t._v(" "+t._s(Number(t.proposalViewData.votesYes).toLocaleString())+" ")])],1),e("b-col",{staticClass:"border-top d-flex align-items-between flex-column py-1",attrs:{cols:"6"}},[e("b-card-text",{staticClass:"text-muted mb-0"},[t._v(" No ")]),e("h3",{staticClass:"font-weight-bolder mb-0 text-danger"},[t._v(" "+t._s(Number(t.proposalViewData.votesNo).toLocaleString())+" ")])],1)],1)],1)],1)],1),e("b-row",{staticClass:"match-height"},[e("b-col",{attrs:{lg:"6"}},[e("b-card",{attrs:{title:"Grant Amount"}},[e("div",{staticClass:"text-center badge-wrapper mr-1"},[e("b-badge",{staticClass:"text-uppercase",attrs:{pill:"",variant:"light-primary"}},[t._v(" "+t._s(Number(t.proposalViewData.grantValue).toLocaleString())+" FLUX ")])],1)])],1),e("b-col",{attrs:{lg:"6"}},[e("b-card",{attrs:{title:"Grant Address"}},[e("div",{staticClass:"text-center badge-wrapper mr-1"},[e("h4",[e("b-link",{attrs:{href:`https://explorer.runonflux.io/address/${t.proposalViewData.grantAddress}`,target:"_blank","active-class":"primary",rel:"noopener noreferrer"}},[t._v(" "+t._s(t.proposalViewData.grantAddress)+" ")])],1)])])],1)],1),"Open"===t.proposalViewData.status?e("div",[t.haveVoted?e("b-row",[e("b-col",{attrs:{cols:"12"}},[e("b-card",{attrs:{title:"Your Vote"}},[e("div",{staticClass:"text-center badge-wrapper mr-1"},[e("b-badge",{staticClass:"vote-badge",attrs:{pill:"",variant:"light-"+("No"===t.myVote?"danger":"success")}},[t._v(" "+t._s(t.myVote.toUpperCase())+" x"+t._s(t.myNumberOfVotes)+" ")])],1)])],1)],1):e("b-row",{staticClass:"match-height"},[e("b-col",{attrs:{xl:"3",md:"5"}},[e("b-card",{attrs:{title:"Vote Now!"}},[e("p",[t._v("You haven't voted yet! You have a total of "+t._s(t.myNumberOfVotes)+" available.")]),e("div",[e("p",[t._v(" To vote you need to first sign a message with Zelcore with your Flux ID corresponding to your Flux Nodes. ")]),e("div",[e("a",{on:{click:t.initiateSignWS}},[e("img",{staticClass:"zelidLogin",attrs:{src:a(96358),alt:"Flux ID",height:"100%",width:"100%"}})])])])])],1),e("b-col",{attrs:{xl:"5",md:"7"}},[e("b-card",[e("b-row",{staticClass:"mt-2"},[e("b-col",{staticClass:"mb-1",attrs:{cols:"12"}},[e("b-form-group",{attrs:{label:"Message","label-for":"h-message","label-cols-md":"3"}},[e("b-form-input",{attrs:{id:"h-message",readonly:"",placeholder:"Message to Sign"},model:{value:t.dataToSign,callback:function(e){t.dataToSign=e},expression:"dataToSign"}})],1)],1),e("b-col",{staticClass:"mb-1",attrs:{cols:"12"}},[e("b-form-group",{attrs:{label:"Address","label-for":"h-address","label-cols-md":"3"}},[e("b-form-input",{attrs:{id:"h-address",placeholder:"Insert Flux ID"},model:{value:t.userZelid,callback:function(e){t.userZelid=e},expression:"userZelid"}})],1)],1),e("b-col",{staticClass:"mb-1",attrs:{cols:"12"}},[e("b-form-group",{attrs:{label:"Signature","label-for":"h-signature","label-cols-md":"3"}},[e("b-form-input",{attrs:{id:"h-signature",placeholder:"Insert Signature"},model:{value:t.signature,callback:function(e){t.signature=e},expression:"signature"}})],1)],1)],1)],1)],1),e("b-col",{attrs:{xl:"4",md:"12"}},[e("b-card",{staticClass:"text-center"},[e("p",[t._v("Remember, you can't change your vote! After voting it could take around 5 minutes to see the number of votes updated with your vote.")]),e("div",{attrs:{id:"vote-yes-button"}},[e("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"vote-button d-block mt-2",attrs:{variant:"success",size:"lg",pill:"",disabled:!t.signature},on:{click:function(e){return t.vote(!0)}}},[t._v(" YES ")])],1),e("b-tooltip",{ref:"tooltip",attrs:{disabled:!!t.signature,target:"vote-yes-button"}},[e("span",[t._v("Please enter a Signature")])]),e("div",{attrs:{id:"vote-no-button"}},[e("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"vote-button d-block mt-2",attrs:{variant:"danger",size:"lg",pill:"",disabled:!t.signature},on:{click:function(e){return t.vote(!1)}}},[t._v(" NO ")])],1),e("b-tooltip",{ref:"tooltip",attrs:{disabled:!!t.signature,target:"vote-no-button"}},[e("span",[t._v("Please enter a Signature")])])],1)],1)],1)],1):t._e()],1)],1)},Z=[],Y=a(87047),U=a(64206),E=a(37307),M=a(67166),W=a.n(M),X=a(68934);const H=a(97218),J=a(80129),Q=a(58971),K=a(63005),tt={components:{BBadge:u.k,BButton:A.T,BCard:V._,BCardHeader:Y.p,BCardText:U.j,BCol:B.l,BFormGroup:N.x,BFormInput:r.e,BFormTextarea:T.y,BLink:$.we,BRow:R.T,BTooltip:b.T,ToastificationContent:S.Z,VuePerfectScrollbar:k(),VueApexCharts:W()},directives:{Ripple:y.Z},props:{proposalViewData:{type:Object,required:!0},zelid:{type:String,required:!1,default:""},hasNextProposal:{type:Boolean,required:!0},hasPreviousProposal:{type:Boolean,required:!0}},setup(t){const e=(0,m.getCurrentInstance)().proxy,a=(0,m.computed)((()=>e.$store.state.flux.config)),s=(0,C.useToast)(),o=t=>"Open"===t?"warning":"Passed"===t?"success":"Unpaid"===t?"info":t&&t.startsWith("Rejected")?"danger":"primary",r=async()=>{const t=await H.get("https://stats.runonflux.io/general/messagephrase");return"success"===t.data.status&&t.data.data},{xdaoOpenProposals:i}=(0,E.Z)(),l=(0,m.ref)(0),n=(0,m.ref)(""),c=(0,m.ref)("No"),p=(0,m.ref)(!1),d=(0,m.ref)(null),u=(0,m.ref)("");u.value=t.zelid;const v=(0,m.computed)((()=>null!==d.value)),h=async()=>{let e=`https://stats.runonflux.io/proposals/votepower?zelid=${u.value}`;t.proposalViewData.hash&&(e=`https://stats.runonflux.io/proposals/votepower?zelid=${u.value}&hash=${t.proposalViewData.hash}`);const a=await H.get(e);console.log(a),"success"===a.data.status?l.value=a.data.data.power:l.value=0},f=async()=>{const e=await H.get(`https://stats.runonflux.io/proposals/voteInformation?hash=${t.proposalViewData.hash}&zelid=${u.value}`);return e.data},b=async()=>{if(u.value){l.value=0;const e=await f();if("success"===e.status){const a=e.data;"Open"===t.proposalViewData.status&&(null==a||0===a.length?(await h(),p.value=!1):(a.forEach((t=>{l.value+=t.numberOfVotes})),c.value="No",a[0].vote&&(c.value="Yes"),p.value=!0))}}},g=()=>{const{protocol:t,hostname:s,port:o}=window.location;let r="";r+=t,r+="//";const i=/[A-Za-z]/g;if(s.split("-")[4]){const t=s.split("-"),e=t[4].split("."),a=+e[0]+1;e[0]=a.toString(),e[2]="api",t[4]="",r+=t.join("-"),r+=e.join(".")}else if(s.match(i)){const t=s.split(".");t[0]="api",r+=t.join(".")}else{if("string"===typeof s&&e.$store.commit("flux/setUserIp",s),+o>16100){const t=+o+1;e.$store.commit("flux/setFluxPort",t)}r+=s,r+=":",r+=a.value.apiPort}const l=Q.get("backendURL")||r,n=`${l}/id/providesign`;return encodeURI(n)},w=t=>{console.log(t)},x=t=>{console.log(t)},y=t=>{const e=J.parse(t.data);"success"===e.status&&e.data&&(d.value=e.data.signature),console.log(e),console.log(t)},_=t=>{console.log(t)},k=async()=>{if(n.value.length>1800){const t=n.value,e={publicid:Math.floor(999999999999999*Math.random()).toString(),public:t};await H.post("https://storage.runonflux.io/v1/public",e);const a=`zel:?action=sign&message=FLUX_URL=https://storage.runonflux.io/v1/public/${e.publicid}&icon=https%3A%2F%2Fraw.githubusercontent.com%2Frunonflux%2Fflux%2Fmaster%2FzelID.svg&callback=${g()}`;window.location.href=a}else window.location.href=`zel:?action=sign&message=${n.value}&icon=https%3A%2F%2Fraw.githubusercontent.com%2Frunonflux%2Fflux%2Fmaster%2FzelID.svg&callback=${g()}`;const{protocol:t,hostname:s,port:o}=window.location;let r="";r+=t,r+="//";const i=/[A-Za-z]/g;if(s.split("-")[4]){const t=s.split("-"),e=t[4].split("."),a=+e[0]+1;e[0]=a.toString(),e[2]="api",t[4]="",r+=t.join("-"),r+=e.join(".")}else if(s.match(i)){const t=s.split(".");t[0]="api",r+=t.join(".")}else{if("string"===typeof s&&e.$store.commit("flux/setUserIp",s),+o>16100){const t=+o+1;e.$store.commit("flux/setFluxPort",t)}r+=s,r+=":",r+=a.value.apiPort}let l=Q.get("backendURL")||r;l=l.replace("https://","wss://"),l=l.replace("http://","ws://");const c=u.value+n.value.slice(-13),p=`${l}/ws/sign/${c}`,d=new WebSocket(p);d.onopen=t=>{x(t)},d.onclose=t=>{_(t)},d.onmessage=t=>{y(t)},d.onerror=t=>{w(t)}},D=async()=>{n.value=await r(),b()},P={maxScrollbarLength:150},A=(0,m.ref)({series:[]}),V=(0,m.ref)({series:[]});(0,m.watch)((()=>t.proposalViewData),(()=>{console.log(t.proposalViewData),A.value={series:[(t.proposalViewData.votesTotal/t.proposalViewData.votesRequired*100).toFixed(1)]},0!==t.proposalViewData.votesTotal?V.value={series:[(t.proposalViewData.votesYes/t.proposalViewData.votesTotal*100).toFixed(0)]}:V.value={series:[0]},D()}));const B=(t,e,a="InfoIcon")=>{s({component:S.Z,props:{title:e,icon:a,variant:t}})},N=async e=>{const a={hash:t.proposalViewData.hash,zelid:u.value,message:n.value,signature:d.value,vote:e};console.log(a);const s=await H.post("https://stats.runonflux.io/proposals/voteproposal",JSON.stringify(a));console.log(s),"success"===s.data.status?(B("success","Vote registered successfully"),c.value=e?"Yes":"No",p.value=!0,i.value-=1):B("danger",s.data.data.message||s.data.data)},T={chart:{height:200,type:"radialBar",sparkline:{enabled:!0},dropShadow:{enabled:!0,blur:3,left:1,top:1,opacity:.1}},colors:[X.j.primary],plotOptions:{radialBar:{offsetY:-10,startAngle:-150,endAngle:150,hollow:{size:"77%"},track:{background:X.j.dark,strokeWidth:"70%"},dataLabels:{name:{show:!1},value:{color:X.j.light,fontSize:"2.3rem",fontWeight:"600"}}}},fill:{type:"gradient",gradient:{shade:"dark",type:"horizontal",shadeIntensity:.5,gradientToColors:[X.j.success],inverseColors:!0,opacityFrom:1,opacityTo:1,stops:[0,100]}},stroke:{lineCap:"round"},grid:{padding:{bottom:30}}},$={chart:{height:200,type:"radialBar",sparkline:{enabled:!0},dropShadow:{enabled:!0,blur:3,left:1,top:1,opacity:.1}},colors:[X.j.primary],labels:["Yes"],plotOptions:{radialBar:{offsetY:-10,startAngle:-150,endAngle:150,hollow:{size:"77%"},track:{background:X.j.dark,strokeWidth:"50%"},dataLabels:{name:{offsetY:-15,color:X.j.light,fontSize:"1.5rem"},value:{offsetY:10,color:X.j.light,fontSize:"2.86rem",fontWeight:"600"}}}},fill:{type:"gradient",gradient:{shade:"dark",type:"horizontal",shadeIntensity:.5,gradientToColors:[X.j.success],inverseColors:!0,opacityFrom:1,opacityTo:1,stops:[0,100]}},stroke:{lineCap:"round"},grid:{padding:{bottom:30}}};return{perfectScrollbarSettings:P,voteOverviewRadialBar:T,voteBreakdownRadialBar:$,resolveTagVariant:o,timeoptions:K,voteOverview:A,voteBreakdown:V,vote:N,initiateSignWS:k,callbackValueSign:g,myVote:c,haveVoted:p,myNumberOfVotes:l,dataToSign:n,signature:d,hasSignature:v,onError:w,onOpen:x,onClose:_,onMessage:y,userZelid:u}}},et=tt;var at=(0,L.Z)(et,G,Z,!1,null,"8f00e802",null);const st=at.exports;var ot=function(){var t=this,e=t._self._c;return e("div",{staticClass:"sidebar-left"},[e("div",{staticClass:"sidebar"},[e("div",{staticClass:"sidebar-content xdao-sidebar"},[e("div",{staticClass:"xdao-app-menu"},[e("div",{staticClass:"add-task"},[e("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],attrs:{variant:"primary",block:""},on:{click:function(e){t.$emit("close-proposal-view"),t.$emit("close-left-sidebar"),t.$emit("open-add-proposal-view")}}},[t._v(" Add Proposal ")])],1),e("vue-perfect-scrollbar",{staticClass:"sidebar-menu-list scroll-area",attrs:{settings:t.perfectScrollbarSettings}},[e("b-list-group",{staticClass:"list-group-filters"},t._l(t.taskFilters,(function(a){return e("b-list-group-item",{key:a.title+t.$route.path,attrs:{to:a.route,active:t.isDynamicRouteActive(a.route)},on:{click:function(e){t.$emit("close-proposal-view"),t.$emit("close-left-sidebar")}}},[e("feather-icon",{staticClass:"mr-75",attrs:{icon:a.icon,size:"18"}}),e("span",{staticClass:"align-text-bottom line-height-1"},[t._v(t._s(a.title))])],1)})),1)],1)],1)])])])},rt=[],it=a(70322),lt=a(88367);const nt={directives:{Ripple:y.Z},components:{BButton:A.T,BListGroup:it.N,BListGroupItem:lt.f,VuePerfectScrollbar:k()},props:{},setup(){const t={maxScrollbarLength:60},e=[{title:"All Proposals",icon:"MailIcon",route:{name:"xdao-app"}},{title:"Open",icon:"StarIcon",route:{name:"xdao-app-filter",params:{filter:"open"}}},{title:"Passed",icon:"CheckIcon",route:{name:"xdao-app-filter",params:{filter:"passed"}}},{title:"Unpaid",icon:"StarIcon",route:{name:"xdao-app-filter",params:{filter:"unpaid"}}},{title:"Rejected",icon:"TrashIcon",route:{name:"xdao-app-filter",params:{filter:"rejected"}}}];return{perfectScrollbarSettings:t,taskFilters:e,isDynamicRouteActive:w._d}}},ct=nt;var pt=(0,L.Z)(ct,ot,rt,!1,null,null,null);const dt=pt.exports,ut=a(80129),vt=a(97218),ht=a(63005),ft={components:{BFormInput:r.e,BInputGroup:i.w,BInputGroupPrepend:l.P,BDropdown:n.R,BDropdownItem:c.E,BMedia:p.P,BMediaBody:d.D,BBadge:u.k,BAvatar:v.SH,BProgress:h.D,BProgressBar:f.Q,BTooltip:b.T,AddProposalView:q,ProposalView:st,ProposalSidebar:dt,VuePerfectScrollbar:k(),ToastificationContent:S.Z},directives:{Ripple:y.Z},setup(){const t=(0,m.ref)(null),e=(0,m.ref)(null),a=(0,C.useToast)();(0,m.onBeforeMount)((()=>{const t=localStorage.getItem("zelidauth"),a=ut.parse(t);e.value=a.zelid}));const{showDetailSidebar:s}=(0,x.w)(),{route:o,router:r}=(0,w.tv)(),i=(0,m.computed)((()=>o.value.query.sort)),l=(0,m.computed)((()=>o.value.query.q)),n=(0,m.computed)((()=>o.value.params));(0,m.watch)(n,(()=>{k()}));const c=(0,m.ref)([]),p=["latest","title-asc","title-desc","end-date"],d=(0,m.ref)(i.value);(0,m.watch)(i,(t=>{p.includes(t),d.value=t}));const u=()=>{const t=JSON.parse(JSON.stringify(o.value.query));delete t.sort,r.replace({name:o.name,query:t}).catch((()=>{}))},v=(0,m.ref)({}),h=(t,e,s="InfoIcon")=>{a({component:S.Z,props:{title:e,icon:s,variant:t}})},f=t=>"Open"===t?"warning":"Passed"===t?"success":"Unpaid"===t?"info":t.startsWith("Rejected")?"danger":"primary",b=t=>"Open"===t?"warning":"Passed"===t?"success":"Unpaid"===t?"info":t.startsWith("Rejected")?"danger":"primary",y=(0,m.ref)(l.value);(0,m.watch)(l,(t=>{y.value=t})),(0,m.watch)([y,d],(()=>k()));const _=t=>{const e=JSON.parse(JSON.stringify(o.value.query));t?e.q=t:delete e.q,r.replace({name:o.name,query:e})},k=async()=>{const t=await vt.get("https://stats.runonflux.io/proposals/listProposals");"success"===t.data.status?(c.value=t.data.data,r.currentRoute.params.filter&&("open"===r.currentRoute.params.filter&&(c.value=c.value.filter((t=>"Open"===t.status))),"passed"===r.currentRoute.params.filter&&(c.value=c.value.filter((t=>"Passed"===t.status))),"unpaid"===r.currentRoute.params.filter&&(c.value=c.value.filter((t=>"Unpaid"===t.status))),"rejected"===r.currentRoute.params.filter&&(c.value=c.value.filter((t=>"Rejected"===t.status||"Rejected Unpaid"===t.status||"Rejected Not Enough Votes"===t.status)))),y.value&&(c.value=c.value.filter((t=>!!t.topic.toLowerCase().includes(y.value)||(!!t.description.toLowerCase().includes(y.value)||!!t.nickName.toLowerCase().includes(y.value))))),d.value&&c.value.sort(((t,e)=>"title-asc"===d.value?t.topic.localeCompare(e.topic):"title-desc"===d.value?e.topic.localeCompare(t.topic):"end-date"===d.value?t.voteEndDate-e.voteEndDate:0))):h("danger",t.data.data.message||t.data.data)};k();const D=(0,m.ref)(!1),P=(0,m.ref)(!1),A=t=>{v.value=t,D.value=!0},V={maxScrollbarLength:150};return{zelid:e,proposalListRef:t,timeoptions:ht,proposal:v,handleProposalClick:A,updateRouteQuery:_,searchQuery:y,filteredProposals:c,sortOptions:p,resetSortAndNavigate:u,perfectScrollbarSettings:V,resolveTagVariant:f,resolveAvatarVariant:b,avatarText:g.k3,isProposalViewActive:D,isAddProposalViewActive:P,showDetailSidebar:s}}},bt=ft;var mt=(0,L.Z)(bt,s,o,!1,null,null,null);const gt=mt.exports},6044:(t,e,a)=>{"use strict";a.d(e,{w:()=>r});var s=a(20144),o=a(73507);const r=()=>{const t=(0,s.ref)(!1),e=(0,s.computed)((()=>o.Z.getters["app/currentBreakPoint"]));return(0,s.watch)(e,((e,a)=>{"md"===a&&"lg"===e&&(t.value=!1)})),{mqShallShowLeftSidebar:t}}},1923:(t,e,a)=>{"use strict";a.d(e,{k3:()=>s});a(70560),a(23646);const s=t=>{if(!t)return"";const e=t.split(" ");return e.map((t=>t.charAt(0).toUpperCase())).join("")}},63005:(t,e,a)=>{"use strict";a.r(e),a.d(e,{default:()=>r});const s={year:"numeric",month:"short",day:"numeric",hour:"2-digit",minute:"2-digit"},o={year:"numeric",month:"short",day:"numeric"},r={shortDate:s,date:o}},67166:function(t,e,a){(function(e,s){t.exports=s(a(47514))})(0,(function(t){"use strict";function e(t){return e="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},e(t)}function a(t,e,a){return e in t?Object.defineProperty(t,e,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[e]=a,t}t=t&&t.hasOwnProperty("default")?t["default"]:t;var s={props:{options:{type:Object},type:{type:String},series:{type:Array,required:!0,default:function(){return[]}},width:{default:"100%"},height:{default:"auto"}},data:function(){return{chart:null}},beforeMount:function(){window.ApexCharts=t},mounted:function(){this.init()},created:function(){var t=this;this.$watch("options",(function(e){!t.chart&&e?t.init():t.chart.updateOptions(t.options)})),this.$watch("series",(function(e){!t.chart&&e?t.init():t.chart.updateSeries(t.series)}));var e=["type","width","height"];e.forEach((function(e){t.$watch(e,(function(){t.refresh()}))}))},beforeDestroy:function(){this.chart&&this.destroy()},render:function(t){return t("div")},methods:{init:function(){var e=this,a={chart:{type:this.type||this.options.chart.type||"line",height:this.height,width:this.width,events:{}},series:this.series};Object.keys(this.$listeners).forEach((function(t){a.chart.events[t]=e.$listeners[t]}));var s=this.extend(this.options,a);return this.chart=new t(this.$el,s),this.chart.render()},isObject:function(t){return t&&"object"===e(t)&&!Array.isArray(t)&&null!=t},extend:function(t,e){var s=this;"function"!==typeof Object.assign&&function(){Object.assign=function(t){if(void 0===t||null===t)throw new TypeError("Cannot convert undefined or null to object");for(var e=Object(t),a=1;a{"use strict";t.exports=a.p+"img/FluxID.svg"}}]); \ No newline at end of file diff --git a/HomeUI/dist/js/7966.js b/HomeUI/dist/js/7966.js deleted file mode 100644 index 69480075d..000000000 --- a/HomeUI/dist/js/7966.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(globalThis["webpackChunkflux"]=globalThis["webpackChunkflux"]||[]).push([[7966],{34917:(e,t,a)=>{a.r(t),a.d(t,{default:()=>m});var s=function(){var e=this,t=e._self._c;return t("div",[e.callResponse.data?t("b-card",[t("app-collapse",{attrs:{accordion:""},model:{value:e.activeHelpNames,callback:function(t){e.activeHelpNames=t},expression:"activeHelpNames"}},e._l(e.helpResponse,(function(a){return t("div",{key:a},[a.startsWith("=")?t("div",[t("br"),t("h2",[e._v(" "+e._s(a.split(" ")[1])+" ")])]):e._e(),a.startsWith("=")?e._e():t("app-collapse-item",{attrs:{title:a},on:{visible:function(t){return e.updateActiveHelpNames(t,a)}}},[t("p",{staticClass:"helpSpecific"},[e._v(" "+e._s(e.currentHelpResponse||"Loading help message...")+" ")]),t("hr")])],1)})),0)],1):e._e()],1)},n=[],r=a(86855),l=a(34547),i=a(57796),c=a(22049),o=a(39569);const p={components:{BCard:r._,AppCollapse:i.Z,AppCollapseItem:c.Z,ToastificationContent:l.Z},data(){return{callResponse:{status:"",data:""},activeHelpNames:"",currentHelpResponse:""}},computed:{helpResponse(){return this.callResponse.data?this.callResponse.data.split("\n").filter((e=>""!==e)).map((e=>e.startsWith("=")?e:e.split(" ")[0])):[]}},mounted(){this.daemonHelp()},methods:{async daemonHelp(){const e=await o.Z.help();"error"===e.data.status?this.$toast({component:l.Z,props:{title:e.data.data.message||e.data.data,icon:"InfoIcon",variant:"danger"}}):(this.callResponse.status=e.data.status,this.callResponse.data=e.data.data)},updateActiveHelpNames(e,t){this.activeHelpNames=t,this.benchmarkHelpSpecific()},async benchmarkHelpSpecific(){this.currentHelpResponse="",console.log(this.activeHelpNames);const e=await o.Z.helpSpecific(this.activeHelpNames);if(console.log(e),"error"===e.data.status)this.$toast({component:l.Z,props:{title:e.data.data.message||e.data.data,icon:"InfoIcon",variant:"danger"}});else{const t=e.data.data.split("\n"),a=t.length;let s=0;for(let e=0;e{a.d(t,{Z:()=>n});var s=a(80914);const n={start(e){return(0,s.Z)().get("/benchmark/start",{headers:{zelidauth:e}})},restart(e){return(0,s.Z)().get("/benchmark/restart",{headers:{zelidauth:e}})},getStatus(){return(0,s.Z)().get("/benchmark/getstatus")},restartNodeBenchmarks(e){return(0,s.Z)().get("/benchmark/restartnodebenchmarks",{headers:{zelidauth:e}})},signFluxTransaction(e,t){return(0,s.Z)().get(`/benchmark/signzelnodetransaction/${t}`,{headers:{zelidauth:e}})},helpSpecific(e){return(0,s.Z)().get(`/benchmark/help/${e}`)},help(){return(0,s.Z)().get("/benchmark/help")},stop(e){return(0,s.Z)().get("/benchmark/stop",{headers:{zelidauth:e}})},getBenchmarks(){return(0,s.Z)().get("/benchmark/getbenchmarks")},getInfo(){return(0,s.Z)().get("/benchmark/getinfo")},tailBenchmarkDebug(e){return(0,s.Z)().get("/flux/tailbenchmarkdebug",{headers:{zelidauth:e}})},justAPI(){return(0,s.Z)()},cancelToken(){return s.S}}}}]); \ No newline at end of file diff --git a/HomeUI/dist/js/8390.js b/HomeUI/dist/js/8390.js deleted file mode 100644 index 02101d4cd..000000000 --- a/HomeUI/dist/js/8390.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(globalThis["webpackChunkflux"]=globalThis["webpackChunkflux"]||[]).push([[8390],{51748:(e,t,a)=>{a.d(t,{Z:()=>u});var n=function(){var e=this,t=e._self._c;return t("dl",{staticClass:"row",class:e.classes},[t("dt",{staticClass:"col-sm-3"},[e._v(" "+e._s(e.title)+" ")]),e.href.length>0?t("dd",{staticClass:"col-sm-9 mb-0",class:`text-${e.variant}`},[e.href.length>0?t("b-link",{attrs:{href:e.href,target:"_blank",rel:"noopener noreferrer"}},[e._v(" "+e._s(e.data.length>0?e.data:e.number!==Number.MAX_VALUE?e.number:"")+" ")]):e._e()],1):e.click?t("dd",{staticClass:"col-sm-9 mb-0",class:`text-${e.variant}`,on:{click:function(t){return e.$emit("click")}}},[t("b-link",[e._v(" "+e._s(e.data.length>0?e.data:e.number!==Number.MAX_VALUE?e.number:"")+" ")])],1):t("dd",{staticClass:"col-sm-9 mb-0",class:`text-${e.variant}`},[e._v(" "+e._s(e.data.length>0?e.data:e.number!==Number.MAX_VALUE?e.number:"")+" ")])])},r=[],s=a(67347);const l={components:{BLink:s.we},props:{title:{type:String,required:!0},classes:{type:String,required:!1,default:"mb-1"},data:{type:String,required:!1,default:""},number:{type:Number,required:!1,default:Number.MAX_VALUE},variant:{type:String,required:!1,default:"secondary"},href:{type:String,required:!1,default:""},click:{type:Boolean,required:!1,default:!1}}},o=l;var d=a(1001),i=(0,d.Z)(o,n,r,!1,null,null,null);const u=i.exports},81403:(e,t,a)=>{a.r(t),a.d(t,{default:()=>p});var n=function(){var e=this,t=e._self._c;return t("b-card",{attrs:{title:"Current FluxNode winners that will be paid in the next Flux block"}},[t("app-collapse",e._l(e.callResponse.data,(function(a,n){return t("app-collapse-item",{key:n,attrs:{title:e.toPascalCase(n)}},[t("list-entry",{attrs:{title:"Address",data:e.callResponse.data[n].payment_address}}),t("list-entry",{attrs:{title:"IP Address",data:e.callResponse.data[n].ip}}),t("list-entry",{attrs:{title:"Added Height",number:e.callResponse.data[n].added_height}}),t("list-entry",{attrs:{title:"Collateral",data:e.callResponse.data[n].collateral}}),t("list-entry",{attrs:{title:"Last Paid Height",number:e.callResponse.data[n].last_paid_height}}),t("list-entry",{attrs:{title:"Confirmed Height",number:e.callResponse.data[n].confirmed_height}}),t("list-entry",{attrs:{title:"Last Confirmed Height",number:e.callResponse.data[n].last_confirmed_height}})],1)})),1)],1)},r=[],s=a(86855),l=a(34547),o=a(57796),d=a(22049),i=a(51748),u=a(27616);const c={components:{BCard:s._,ListEntry:i.Z,AppCollapse:o.Z,AppCollapseItem:d.Z,ToastificationContent:l.Z},data(){return{callResponse:{status:"",data:""}}},mounted(){this.daemonFluxCurrentWinner()},methods:{async daemonFluxCurrentWinner(){const e=await u.Z.fluxCurrentWinner();"error"===e.data.status?this.$toast({component:l.Z,props:{title:e.data.data.message||e.data.data,icon:"InfoIcon",variant:"danger"}}):(this.callResponse.status=e.data.status,this.callResponse.data=e.data.data,console.log(e))},toPascalCase(e){const t=e.split(/\s|_/);let a,n;for(a=0,n=t.length;a1?t[a].slice(1).toLowerCase():"");return t.join(" ")}}},g=c;var m=a(1001),h=(0,m.Z)(g,n,r,!1,null,null,null);const p=h.exports},27616:(e,t,a)=>{a.d(t,{Z:()=>r});var n=a(80914);const r={help(){return(0,n.Z)().get("/daemon/help")},helpSpecific(e){return(0,n.Z)().get(`/daemon/help/${e}`)},getInfo(){return(0,n.Z)().get("/daemon/getinfo")},getFluxNodeStatus(){return(0,n.Z)().get("/daemon/getzelnodestatus")},getRawTransaction(e,t){return(0,n.Z)().get(`/daemon/getrawtransaction/${e}/${t}`)},listFluxNodes(){return(0,n.Z)().get("/daemon/listzelnodes")},viewDeterministicFluxNodeList(){return(0,n.Z)().get("/daemon/viewdeterministiczelnodelist")},getFluxNodeCount(){return(0,n.Z)().get("/daemon/getzelnodecount")},getStartList(){return(0,n.Z)().get("/daemon/getstartlist")},getDOSList(){return(0,n.Z)().get("/daemon/getdoslist")},fluxCurrentWinner(){return(0,n.Z)().get("/daemon/fluxcurrentwinner")},getBenchmarks(){return(0,n.Z)().get("/daemon/getbenchmarks")},getBenchStatus(){return(0,n.Z)().get("/daemon/getbenchstatus")},startBenchmark(e){return(0,n.Z)().get("/daemon/startbenchmark",{headers:{zelidauth:e}})},stopBenchmark(e){return(0,n.Z)().get("/daemon/stopbenchmark",{headers:{zelidauth:e}})},getBlockCount(){return(0,n.Z)().get("/daemon/getBlockCount")},getBlockchainInfo(){return(0,n.Z)().get("/daemon/getblockchaininfo")},getMiningInfo(){return(0,n.Z)().get("/daemon/getmininginfo")},getNetworkInfo(){return(0,n.Z)().get("/daemon/getnetworkinfo")},validateAddress(e,t){return(0,n.Z)().get(`/daemon/validateaddress/${t}`,{headers:{zelidauth:e}})},getWalletInfo(e){return(0,n.Z)().get("/daemon/getwalletinfo",{headers:{zelidauth:e}})},listFluxNodeConf(e){return(0,n.Z)().get("/daemon/listzelnodeconf",{headers:{zelidauth:e}})},start(e){return(0,n.Z)().get("/daemon/start",{headers:{zelidauth:e}})},restart(e){return(0,n.Z)().get("/daemon/restart",{headers:{zelidauth:e}})},stopDaemon(e){return(0,n.Z)().get("/daemon/stop",{headers:{zelidauth:e}})},rescanDaemon(e,t){return(0,n.Z)().get(`/daemon/rescanblockchain/${t}`,{headers:{zelidauth:e}})},getBlock(e,t){return(0,n.Z)().get(`/daemon/getblock/${e}/${t}`)},tailDaemonDebug(e){return(0,n.Z)().get("/flux/taildaemondebug",{headers:{zelidauth:e}})},justAPI(){return(0,n.Z)()},cancelToken(){return n.S}}}}]); \ No newline at end of file diff --git a/HomeUI/dist/js/8578.js b/HomeUI/dist/js/8578.js index 50689743a..30b92c120 100644 --- a/HomeUI/dist/js/8578.js +++ b/HomeUI/dist/js/8578.js @@ -1 +1 @@ -"use strict";(globalThis["webpackChunkflux"]=globalThis["webpackChunkflux"]||[]).push([[8578],{34547:(e,t,a)=>{a.d(t,{Z:()=>p});var r=function(){var e=this,t=e._self._c;return t("div",{staticClass:"toastification"},[t("div",{staticClass:"d-flex align-items-start"},[t("b-avatar",{staticClass:"mr-75 flex-shrink-0",attrs:{variant:e.variant,size:"1.8rem"}},[t("feather-icon",{attrs:{icon:e.icon,size:"15"}})],1),t("div",{staticClass:"d-flex flex-grow-1"},[t("div",[e.title?t("h5",{staticClass:"mb-0 font-weight-bolder toastification-title",class:`text-${e.variant}`,domProps:{textContent:e._s(e.title)}}):e._e(),e.text?t("small",{staticClass:"d-inline-block text-body",domProps:{textContent:e._s(e.text)}}):e._e()]),t("span",{staticClass:"cursor-pointer toastification-close-icon ml-auto",on:{click:function(t){return e.$emit("close-toast")}}},[e.hideClose?e._e():t("feather-icon",{staticClass:"text-body",attrs:{icon:"XIcon"}})],1)])],1)])},o=[],s=a(47389);const i={components:{BAvatar:s.SH},props:{variant:{type:String,default:"primary"},icon:{type:String,default:null},title:{type:String,default:null},text:{type:String,default:null},hideClose:{type:Boolean,default:!1}}},n=i;var l=a(1001),d=(0,l.Z)(n,r,o,!1,null,"22d964ca",null);const p=d.exports},78578:(e,t,a)=>{a.r(t),a.d(t,{default:()=>S});var r=function(){var e=this,t=e._self._c;return t("div",[t("div",{staticClass:"mb-2"},[t("h6",{staticClass:"progress-label"},[e._v(" "+e._s(`${e.storage.used.toFixed(2)} / ${e.storage.total.toFixed(2)}`)+" GB ")]),t("b-progress",{attrs:{value:e.percentage,max:"100",striped:"",height:"2rem"}})],1),t("b-button-toolbar",{attrs:{justify:""}},[t("b-button-group",{attrs:{size:"sm"}}),t("b-button-group",{attrs:{size:"sm"}},[t("b-button",{attrs:{variant:"outline-primary"},on:{click:function(t){e.uploadFilesDialog=!0}}},[t("v-icon",{attrs:{name:"cloud-upload-alt"}})],1),t("b-button",{attrs:{variant:"outline-primary"},on:{click:function(t){e.createDirectoryDialogVisible=!0}}},[t("v-icon",{attrs:{name:"folder-plus"}})],1),t("b-modal",{attrs:{title:"Create Folder",size:"lg",centered:"","ok-only":"","ok-title":"Create Folder","header-bg-variant":"primary"},on:{ok:function(t){return e.createFolder(e.newDirName)}},model:{value:e.createDirectoryDialogVisible,callback:function(t){e.createDirectoryDialogVisible=t},expression:"createDirectoryDialogVisible"}},[t("b-form-group",{attrs:{label:"Folder Name","label-for":"folderNameInput"}},[t("b-form-input",{attrs:{id:"folderNameInput",size:"lg",placeholder:"New Folder Name"},model:{value:e.newDirName,callback:function(t){e.newDirName=t},expression:"newDirName"}})],1)],1),t("b-modal",{attrs:{title:"Upload Files",size:"lg",centered:"","hide-footer":"","header-bg-variant":"primary"},on:{close:function(t){return e.refreshFolder()}},model:{value:e.uploadFilesDialog,callback:function(t){e.uploadFilesDialog=t},expression:"uploadFilesDialog"}},[t("file-upload",{attrs:{"upload-folder":e.getUploadFolder,headers:e.zelidHeader},on:{complete:e.refreshFolder}})],1)],1)],1),t("b-table",{staticClass:"fluxshare-table",attrs:{hover:"",responsive:"",items:e.folderContentFilter,fields:e.fields,busy:e.loadingFolder,"sort-compare":e.sort,"sort-by":"name"},scopedSlots:e._u([{key:"table-busy",fn:function(){return[t("div",{staticClass:"text-center text-danger my-2"},[t("b-spinner",{staticClass:"align-middle mx-2"}),t("strong",[e._v("Loading...")])],1)]},proxy:!0},{key:"head(name)",fn:function(a){return[e.currentFolder?t("b-button",{staticClass:"btn up-button",attrs:{"aria-label":"Up",variant:"flat-secondary"},on:{click:function(t){return e.upFolder()}}},[t("span",{staticClass:"d-inline-block",attrs:{"aria-hidden":"true"}},[t("v-icon",{attrs:{name:"arrow-alt-circle-up"}})],1)]):e._e(),e._v(" "+e._s(a.label.toUpperCase())+" ")]}},{key:"cell(name)",fn:function(a){return[a.item.isDirectory?t("div",[t("b-link",{on:{click:function(t){return e.changeFolder(a.item.name)}}},[e._v(" "+e._s(a.item.name)+" ")])],1):t("div",[e._v(" "+e._s(a.item.name)+" ")])]}},{key:"cell(modifiedAt)",fn:function(t){return[e._v(" "+e._s(new Date(t.item.modifiedAt).toLocaleString("en-GB",e.timeoptions))+" ")]}},{key:"cell(type)",fn:function(a){return[a.item.isDirectory?t("div",[e._v(" Folder ")]):a.item.isFile||a.item.isSymbolicLink?t("div",[e._v(" File ")]):t("div",[e._v(" Other ")])]}},{key:"cell(size)",fn:function(a){return[a.item.size>0?t("div",[e._v(" "+e._s(e.beautifyValue((a.item.size/1e3).toFixed(0)))+" KB ")]):e._e()]}},{key:"cell(delete)",fn:function(a){return[t("b-button",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.left",value:"Delete",expression:"'Delete'",modifiers:{hover:!0,left:!0}},{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"btn-icon action-icon",attrs:{id:`delete-${a.item.name}`,variant:"gradient-danger"}},[t("v-icon",{attrs:{name:"trash-alt"}})],1),t("confirm-dialog",{attrs:{target:`delete-${a.item.name}`,"confirm-button":a.item.isFile?"Delete File":"Delete Folder"},on:{confirm:function(t){a.item.isFile?e.deleteFile(a.item.name):e.deleteFolder(a.item.name)}}})]}},{key:"cell(actions)",fn:function(a){return[t("b-button-group",{attrs:{size:"sm"}},[t("b-button",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.bottom",value:a.item.isFile?"Download":"Download zip of folder",expression:"data.item.isFile ? 'Download' : 'Download zip of folder'",modifiers:{hover:!0,bottom:!0}},{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],attrs:{id:`download-${a.item.name}`,variant:"outline-secondary"}},[t("v-icon",{attrs:{name:a.item.isFile?"file-download":"file-archive"}})],1),t("b-button",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.bottom",value:"Rename",expression:"'Rename'",modifiers:{hover:!0,bottom:!0}},{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],attrs:{id:`rename-${a.item.name}`,variant:"outline-secondary"},on:{click:function(t){return e.rename(a.item.name)}}},[t("v-icon",{attrs:{name:"edit"}})],1),t("b-button",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.bottom",value:a.item.shareToken?"Unshare file":"Share file",expression:"data.item.shareToken ? 'Unshare file' : 'Share file'",modifiers:{hover:!0,bottom:!0}},{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],attrs:{id:`share-${a.item.name}`,variant:a.item.shareToken?"gradient-primary":"outline-secondary"},on:{click:function(t){a.item.shareToken?e.unshareFile(a.item.name):e.shareFile(a.item.name)}}},[t("v-icon",{attrs:{name:"share-alt"}})],1),a.item.shareToken?t("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],attrs:{id:`sharelink-${a.item.name}`,variant:"outline-secondary"}},[t("v-icon",{attrs:{name:"envelope"}})],1):e._e()],1),t("confirm-dialog",{attrs:{target:`download-${a.item.name}`,"confirm-button":a.item.isFile?"Download File":"Download Folder"},on:{confirm:function(t){a.item.isFile?e.download(a.item.name):e.download(a.item.name,!0,a.item.size)}}}),a.item.shareToken?t("b-popover",{attrs:{target:`sharelink-${a.item.name}`,placement:"bottom",triggers:"hover focus"},scopedSlots:e._u([{key:"title",fn:function(){return[t("b-button",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.top",value:"Copy to Clipboard",expression:"'Copy to Clipboard'",modifiers:{hover:!0,top:!0}}],staticClass:"btn copy-button",attrs:{"aria-label":"Copy to Clipboard",variant:"flat-warning"},on:{click:function(t){e.copyLinkToClipboard(e.createfluxshareLink(a.item.shareFile,a.item.shareToken))}}},[t("span",{staticClass:"d-inline-block",attrs:{"aria-hidden":"true"}},[t("v-icon",{attrs:{name:"clipboard"}})],1)]),e._v(" Share Link ")]},proxy:!0}],null,!0)},[t("div",[t("b-link",{attrs:{href:e.createfluxshareLink(a.item.shareFile,a.item.shareToken)}},[e._v(" "+e._s(e.createfluxshareLink(a.item.shareFile,a.item.shareToken))+" ")])],1)]):e._e(),t("b-modal",{attrs:{title:"Rename",size:"lg",centered:"","ok-only":"","ok-title":"Rename"},on:{ok:function(t){return e.confirmRename()}},model:{value:e.renameDialogVisible,callback:function(t){e.renameDialogVisible=t},expression:"renameDialogVisible"}},[t("b-form-group",{attrs:{label:"Name","label-for":"nameInput"}},[t("b-form-input",{attrs:{id:"nameInput",size:"lg",placeholder:"Name"},model:{value:e.newName,callback:function(t){e.newName=t},expression:"newName"}})],1)],1)]}}])})],1)},o=[],s=(a(98858),a(61318),a(33228),a(45752)),i=a(16521),n=a(1759),l=a(15193),d=a(31220),p=a(46709),c=a(22183),u=a(53862),h=a(67347),m=a(41984),f=a(45969),g=a(5870),v=a(20629),b=a(20266),y=a(87066),w=a(34547),F=a(87156),x=a(2272),$=a(43672);const k=a(58971),z={components:{BProgress:s.D,BTable:i.h,BSpinner:n.X,BButton:l.T,BModal:d.N,BFormGroup:p.x,BFormInput:c.e,BPopover:u.x,BLink:h.we,BButtonToolbar:m.r,BButtonGroup:f.a,ConfirmDialog:F.Z,FileUpload:x.Z,ToastificationContent:w.Z},directives:{"b-tooltip":g.o,Ripple:b.Z},data(){return{fields:[{key:"name",label:"Name",sortable:!0},{key:"modifiedAt",label:"Modified",sortable:!0},{key:"type",label:"Type",sortable:!0},{key:"size",label:"Size",sortable:!0},{key:"actions",label:""},{key:"delete",label:""}],timeoptions:{year:"numeric",month:"short",day:"numeric",hour:"2-digit",minute:"2-digit"},loadingFolder:!1,folderView:[],currentFolder:"",uploadFilesDialog:!1,filterFolder:"",createDirectoryDialogVisible:!1,renameDialogVisible:!1,newName:"",fileRenaming:"",newDirName:"",abortToken:{},downloaded:{},total:{},timeStamp:{},working:!1,storage:{used:0,total:2,available:2},customColors:[{color:"#6f7ad3",percentage:20},{color:"#1989fa",percentage:40},{color:"#5cb87a",percentage:60},{color:"#e6a23c",percentage:80},{color:"#f56c6c",percentage:100}],uploadTotal:"",uploadUploaded:"",uploadTimeStart:"",currentUploadTime:"",uploadFiles:[]}},computed:{...(0,v.rn)("flux",["userconfig","config"]),percentage(){const e=this.storage.used/this.storage.total*100;return Number(e.toFixed(2))},zelidHeader(){const e=localStorage.getItem("zelidauth"),t={zelidauth:e};return t},ipAddress(){const e=k.get("backendURL");if(e)return`${k.get("backendURL").split(":")[0]}:${k.get("backendURL").split(":")[1]}`;const{hostname:t}=window.location;return`http://${t}`},folderContentFilter(){const e=this.folderView.filter((e=>JSON.stringify(e.name).toLowerCase().includes(this.filterFolder.toLowerCase())));return e.filter((e=>".gitkeep"!==e.name))},getUploadFolder(){const e=this.config.apiPort;if(this.currentFolder){const t=encodeURIComponent(this.currentFolder);return`${this.ipAddress}:${e}/apps/fluxshare/uploadfile/${t}`}return`${this.ipAddress}:${e}/apps/fluxshare/uploadfile`}},mounted(){this.loadingFolder=!0,this.loadFolder(this.currentFolder),this.storageStats()},methods:{sortNameFolder(e,t){return(e.isDirectory?`..${e.name}`:e.name).localeCompare(t.isDirectory?`..${t.name}`:t.name)},sortTypeFolder(e,t){return e.isDirectory&&t.isFile?-1:e.isFile&&t.isDirectory?1:0},sort(e,t,a,r){return"name"===a?this.sortNameFolder(e,t,r):"type"===a?this.sortTypeFolder(e,t,r):"modifiedAt"===a?e.modifiedAt>t.modifiedAt?-1:e.modifiedAtt.size?-1:e.size=4&&(t[0]=t[0].replace(/(\d)(?=(\d{3})+$)/g,"$1,")),t.join(".")},refreshFolder(){this.loadFolder(this.currentFolder,!0),this.storageStats()},async deleteFile(e){try{const t=this.currentFolder,a=t?`${t}/${e}`:e,r=await $.Z.removeFile(this.zelidHeader.zelidauth,encodeURIComponent(a));"error"===r.data.status?this.showToast("danger",r.data.data.message||r.data.data):(this.refreshFolder(),this.showToast("success",`${e} deleted`))}catch(t){this.showToast("danger",t.message||t)}},async shareFile(e){try{const t=this.currentFolder,a=t?`${t}/${e}`:e,r=await $.Z.shareFile(this.zelidHeader.zelidauth,encodeURIComponent(a));"error"===r.data.status?this.showToast("danger",r.data.data.message||r.data.data):(this.loadFolder(this.currentFolder,!0),this.showToast("success",`${e} shared`))}catch(t){this.showToast("danger",t.message||t)}},async unshareFile(e){try{const t=this.currentFolder,a=t?`${t}/${e}`:e,r=await $.Z.unshareFile(this.zelidHeader.zelidauth,encodeURIComponent(a));"error"===r.data.status?this.showToast("danger",r.data.data.message||r.data.data):(this.loadFolder(this.currentFolder,!0),this.showToast("success",`${e} unshared`))}catch(t){this.showToast("danger",t.message||t)}},async deleteFolder(e){try{let t=e;""!==this.currentFolder&&(t=`${this.currentFolder}/${e}`);const a=await $.Z.removeFolder(this.zelidHeader.zelidauth,encodeURIComponent(t));console.log(a.data),"error"===a.data.status?"ENOTEMPTY"===a.data.data.code?this.showToast("danger",`Directory ${e} is not empty!`):this.showToast("danger",a.data.data.message||a.data.data):(this.loadFolder(this.currentFolder,!0),this.showToast("success",`${e} deleted`))}catch(t){this.showToast("danger",t.message||t)}},beforeUpload(e){if(this.storage.available<=0)return this.showToast("danger","Storage space is full"),!1;const t=this.folderView.find((t=>t.name===e.name));return!t||(this.showToast("info",`File ${e.name} already exists`),!1)},createfluxshareLink(e,t){const a=this.config.apiPort;return`${this.ipAddress}:${a}/apps/fluxshare/getfile/${e}?token=${t}`},copyLinkToClipboard(e){const t=document.createElement("textarea");t.value=e,t.setAttribute("readonly",""),t.style.position="absolute",t.style.left="-9999px",document.body.appendChild(t),t.select(),document.execCommand("copy"),document.body.removeChild(t),this.showToast("success","Link copied to Clipboard")},rename(e){this.renameDialogVisible=!0;let t=e;""!==this.currentFolder&&(t=`${this.currentFolder}/${e}`),this.fileRenaming=t,this.newName=e},async confirmRename(){this.renameDialogVisible=!1;try{const e=this.fileRenaming,t=this.newName,a=await $.Z.renameFileFolder(this.zelidHeader.zelidauth,encodeURIComponent(e),t);console.log(a),"error"===a.data.status?this.showToast("danger",a.data.data.message||a.data.data):(e.includes("/")?this.showToast("success",`${e.split("/").pop()} renamed to ${t}`):this.showToast("success",`${e} renamed to ${t}`),this.loadFolder(this.currentFolder,!0))}catch(e){this.showToast("danger",e.message||e)}},upFolder(){this.changeFolder("..")},showToast(e,t,a="InfoIcon"){this.$toast({component:w.Z,props:{title:t,icon:a,variant:e}})}}},C=z;var T=a(1001),Z=(0,T.Z)(C,r,o,!1,null,null,null);const S=Z.exports},87156:(e,t,a)=>{a.d(t,{Z:()=>u});var r=function(){var e=this,t=e._self._c;return t("b-popover",{ref:"popover",attrs:{target:`${e.target}`,triggers:"click blur",show:e.show,placement:"auto",container:"my-container","custom-class":`confirm-dialog-${e.width}`},on:{"update:show":function(t){e.show=t}},scopedSlots:e._u([{key:"title",fn:function(){return[t("div",{staticClass:"d-flex justify-content-between align-items-center"},[t("span",[e._v(e._s(e.title))]),t("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"close",attrs:{variant:"transparent","aria-label":"Close"},on:{click:function(t){e.show=!1}}},[t("span",{staticClass:"d-inline-block text-white",attrs:{"aria-hidden":"true"}},[e._v("×")])])],1)]},proxy:!0}])},[t("div",{staticClass:"text-center"},[t("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"mr-1",attrs:{size:"sm",variant:"danger"},on:{click:function(t){e.show=!1}}},[e._v(" "+e._s(e.cancelButton)+" ")]),t("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],attrs:{size:"sm",variant:"primary"},on:{click:function(t){return e.confirm()}}},[e._v(" "+e._s(e.confirmButton)+" ")])],1)])},o=[],s=a(15193),i=a(53862),n=a(20266);const l={components:{BButton:s.T,BPopover:i.x},directives:{Ripple:n.Z},props:{target:{type:String,required:!0},title:{type:String,required:!1,default:"Are You Sure?"},cancelButton:{type:String,required:!1,default:"Cancel"},confirmButton:{type:String,required:!0},width:{type:Number,required:!1,default:300}},data(){return{show:!1}},methods:{confirm(){this.show=!1,this.$emit("confirm")}}},d=l;var p=a(1001),c=(0,p.Z)(d,r,o,!1,null,null,null);const u=c.exports},2272:(e,t,a)=>{a.d(t,{Z:()=>f});var r=function(){var e=this,t=e._self._c;return t("div",{staticClass:"flux-share-upload",style:e.cssProps},[t("b-row",[t("div",{staticClass:"flux-share-upload-drop text-center",attrs:{id:"dropTarget"},on:{drop:function(t){return t.preventDefault(),e.addFile.apply(null,arguments)},dragover:function(e){e.preventDefault()},click:e.selectFiles}},[t("v-icon",{attrs:{name:"cloud-upload-alt"}}),t("p",[e._v("Drop files here or "),t("em",[e._v("click to upload")])]),t("p",{staticClass:"upload-footer"},[e._v(" (File size is limited to 5GB) ")])],1),t("input",{ref:"fileselector",staticClass:"flux-share-upload-input",attrs:{id:"file-selector",type:"file",multiple:""},on:{change:e.handleFiles}}),t("b-col",{staticClass:"upload-column"},e._l(e.files,(function(a){return t("div",{key:a.file.name,staticClass:"upload-item",staticStyle:{"margin-bottom":"3px"}},[e._v(" "+e._s(a.file.name)+" ("+e._s(e.addAndConvertFileSizes(a.file.size))+") "),t("span",{staticClass:"delete text-white",attrs:{"aria-hidden":"true"}},[a.uploading?e._e():t("v-icon",{style:{color:e.determineColor(a.file.name)},attrs:{name:"trash-alt",disabled:a.uploading},on:{mouseenter:function(t){return e.handleHover(a.file.name,!0)},mouseleave:function(t){return e.handleHover(a.file.name,!1)},focusin:function(t){return e.handleHover(a.file.name,!0)},focusout:function(t){return e.handleHover(a.file.name,!1)},click:function(t){return e.removeFile(a)}}})],1),t("b-progress",{class:a.uploading||a.uploaded?"":"hidden",attrs:{value:a.progress,max:"100",striped:"",height:"5px"}})],1)})),0)],1),t("b-row",[t("b-col",{staticClass:"text-center",attrs:{xs:"12"}},[t("b-button",{staticClass:"delete mt-1",attrs:{variant:"primary",disabled:!e.filesToUpload,size:"sm","aria-label":"Close"},on:{click:function(t){return e.startUpload()}}},[e._v(" Upload Files ")])],1)],1)],1)},o=[],s=(a(70560),a(26253)),i=a(50725),n=a(45752),l=a(15193),d=a(68934),p=a(34547);const c={components:{BRow:s.T,BCol:i.l,BProgress:n.D,BButton:l.T,ToastificationContent:p.Z},props:{uploadFolder:{type:String,required:!0},headers:{type:Object,required:!0}},data(){return{isHovered:!1,hoverStates:{},files:[],primaryColor:d.j.primary,secondaryColor:d.j.secondary}},computed:{cssProps(){return{"--primary-color":this.primaryColor,"--secondary-color":this.secondaryColor}},filesToUpload(){return this.files.length>0&&this.files.some((e=>!e.uploading&&!e.uploaded&&0===e.progress))}},methods:{addAndConvertFileSizes(e,t="auto",a=2){const r={B:1,KB:1024,MB:1048576,GB:1073741824},o=(e,t)=>e/r[t.toUpperCase()],s=(e,t)=>{const r="B"===t?e.toFixed(0):e.toFixed(a);return`${r} ${t}`};let i;if(Array.isArray(e)&&e.length>0)i=+e.reduce(((e,t)=>e+(t.file_size||0)),0);else{if("number"!==typeof+e)return console.error("Invalid sizes parameter"),"N/A";i=+e}if(isNaN(i))return console.error("Total size is not a valid number"),"N/A";if("auto"===t){let e,t=i;return Object.keys(r).forEach((a=>{const r=o(i,a);r>=1&&(void 0===t||r{const t=this.files.some((t=>t.file.name===e.name));console.log(t),t?this.showToast("warning",`'${e.name}' is already in the upload queue`):this.files.push({file:e,uploading:!1,uploaded:!1,progress:0})}))},removeFile(e){this.files=this.files.filter((t=>t.file.name!==e.file.name))},startUpload(){console.log(this.uploadFolder),console.log(this.files),this.files.forEach((e=>{console.log(e),e.uploaded||e.uploading||this.upload(e)}))},upload(e){const t=this;if("undefined"===typeof XMLHttpRequest)return;const a=new XMLHttpRequest,r=this.uploadFolder;a.upload&&(a.upload.onprogress=function(t){console.log(t),t.total>0&&(t.percent=t.loaded/t.total*100),e.progress=t.percent});const o=new FormData;o.append(e.file.name,e.file),e.uploading=!0,a.onerror=function(a){console.log(a),t.showToast("danger",`An error occurred while uploading '${e.file.name}' - ${a}`),t.removeFile(e)},a.onload=function(){if(a.status<200||a.status>=300)return console.log("error"),console.log(a.status),t.showToast("danger",`An error occurred while uploading '${e.file.name}' - Status code: ${a.status}`),void t.removeFile(e);e.uploaded=!0,e.uploading=!1,t.$emit("complete"),t.removeFile(e),t.showToast("success",`'${e.file.name}' has been uploaded`)},a.open("post",r,!0);const s=this.headers||{},i=Object.keys(s);for(let n=0;n{a.d(t,{Z:()=>o});var r=a(80914);const o={listRunningApps(){const e={headers:{"x-apicache-bypass":!0}};return(0,r.Z)().get("/apps/listrunningapps",e)},listAllApps(){const e={headers:{"x-apicache-bypass":!0}};return(0,r.Z)().get("/apps/listallapps",e)},installedApps(){const e={headers:{"x-apicache-bypass":!0}};return(0,r.Z)().get("/apps/installedapps",e)},availableApps(){return(0,r.Z)().get("/apps/availableapps")},getEnterpriseNodes(){return(0,r.Z)().get("/apps/enterprisenodes")},stopApp(e,t){const a={headers:{zelidauth:e,"x-apicache-bypass":!0}};return(0,r.Z)().get(`/apps/appstop/${t}`,a)},startApp(e,t){const a={headers:{zelidauth:e}};return(0,r.Z)().get(`/apps/appstart/${t}`,a)},pauseApp(e,t){const a={headers:{zelidauth:e}};return(0,r.Z)().get(`/apps/apppause/${t}`,a)},unpauseApp(e,t){const a={headers:{zelidauth:e}};return(0,r.Z)().get(`/apps/appunpause/${t}`,a)},restartApp(e,t){const a={headers:{zelidauth:e}};return(0,r.Z)().get(`/apps/apprestart/${t}`,a)},removeApp(e,t){const a={headers:{zelidauth:e},onDownloadProgress(e){console.log(e)}};return(0,r.Z)().get(`/apps/appremove/${t}`,a)},registerApp(e,t){const a={headers:{zelidauth:e}};return(0,r.Z)().post("/apps/appregister",JSON.stringify(t),a)},updateApp(e,t){const a={headers:{zelidauth:e}};return(0,r.Z)().post("/apps/appupdate",JSON.stringify(t),a)},checkCommunication(){return(0,r.Z)().get("/flux/checkcommunication")},checkDockerExistance(e,t){const a={headers:{zelidauth:e}};return(0,r.Z)().post("/apps/checkdockerexistance",JSON.stringify(t),a)},appsRegInformation(){return(0,r.Z)().get("/apps/registrationinformation")},appsDeploymentInformation(){return(0,r.Z)().get("/apps/deploymentinformation")},getAppLocation(e){return(0,r.Z)().get(`/apps/location/${e}`)},globalAppSpecifications(){return(0,r.Z)().get("/apps/globalappsspecifications")},permanentMessagesOwner(e){return(0,r.Z)().get(`/apps/permanentmessages?owner=${e}`)},getInstalledAppSpecifics(e){return(0,r.Z)().get(`/apps/installedapps/${e}`)},getAppSpecifics(e){return(0,r.Z)().get(`/apps/appspecifications/${e}`)},getAppOwner(e){return(0,r.Z)().get(`/apps/appowner/${e}`)},getAppLogsTail(e,t){const a={headers:{zelidauth:e}};return(0,r.Z)().get(`/apps/applog/${t}/100`,a)},getAppTop(e,t){const a={headers:{zelidauth:e}};return(0,r.Z)().get(`/apps/apptop/${t}`,a)},getAppInspect(e,t){const a={headers:{zelidauth:e}};return(0,r.Z)().get(`/apps/appinspect/${t}`,a)},getAppStats(e,t){const a={headers:{zelidauth:e}};return(0,r.Z)().get(`/apps/appstats/${t}`,a)},getAppChanges(e,t){const a={headers:{zelidauth:e}};return(0,r.Z)().get(`/apps/appchanges/${t}`,a)},getAppExec(e,t,a,o){const s={headers:{zelidauth:e}},i={appname:t,cmd:a,env:JSON.parse(o)};return(0,r.Z)().post("/apps/appexec",JSON.stringify(i),s)},reindexGlobalApps(e){return(0,r.Z)().get("/apps/reindexglobalappsinformation",{headers:{zelidauth:e}})},reindexLocations(e){return(0,r.Z)().get("/apps/reindexglobalappslocation",{headers:{zelidauth:e}})},rescanGlobalApps(e,t,a){return(0,r.Z)().get(`/apps/rescanglobalappsinformation/${t}/${a}`,{headers:{zelidauth:e}})},getFolder(e,t){return(0,r.Z)().get(`/apps/fluxshare/getfolder/${t}`,{headers:{zelidauth:e}})},createFolder(e,t){return(0,r.Z)().get(`/apps/fluxshare/createfolder/${t}`,{headers:{zelidauth:e}})},getFile(e,t){return(0,r.Z)().get(`/apps/fluxshare/getfile/${t}`,{headers:{zelidauth:e}})},removeFile(e,t){return(0,r.Z)().get(`/apps/fluxshare/removefile/${t}`,{headers:{zelidauth:e}})},shareFile(e,t){return(0,r.Z)().get(`/apps/fluxshare/sharefile/${t}`,{headers:{zelidauth:e}})},unshareFile(e,t){return(0,r.Z)().get(`/apps/fluxshare/unsharefile/${t}`,{headers:{zelidauth:e}})},removeFolder(e,t){return(0,r.Z)().get(`/apps/fluxshare/removefolder/${t}`,{headers:{zelidauth:e}})},fileExists(e,t){return(0,r.Z)().get(`/apps/fluxshare/fileexists/${t}`,{headers:{zelidauth:e}})},storageStats(e){return(0,r.Z)().get("/apps/fluxshare/stats",{headers:{zelidauth:e}})},renameFileFolder(e,t,a){return(0,r.Z)().get(`/apps/fluxshare/rename/${t}/${a}`,{headers:{zelidauth:e}})},appPrice(e){return(0,r.Z)().post("/apps/calculateprice",JSON.stringify(e))},appPriceUSDandFlux(e){return(0,r.Z)().post("/apps/calculatefiatandfluxprice",JSON.stringify(e))},appRegistrationVerificaiton(e){return(0,r.Z)().post("/apps/verifyappregistrationspecifications",JSON.stringify(e))},appUpdateVerification(e){return(0,r.Z)().post("/apps/verifyappupdatespecifications",JSON.stringify(e))},getAppMonitoring(e,t){const a={headers:{zelidauth:e}};return(0,r.Z)().get(`/apps/appmonitor/${t}`,a)},startAppMonitoring(e,t){const a={headers:{zelidauth:e}};return t?(0,r.Z)().get(`/apps/startmonitoring/${t}`,a):(0,r.Z)().get("/apps/startmonitoring",a)},stopAppMonitoring(e,t,a){const o={headers:{zelidauth:e}};return t&&a?(0,r.Z)().get(`/apps/stopmonitoring/${t}/${a}`,o):t?(0,r.Z)().get(`/apps/stopmonitoring/${t}`,o):a?(0,r.Z)().get(`/apps/stopmonitoring?deletedata=${a}`,o):(0,r.Z)().get("/apps/stopmonitoring",o)},justAPI(){return(0,r.Z)()}}},84328:(e,t,a)=>{var r=a(65290),o=a(27578),s=a(6310),i=function(e){return function(t,a,i){var n,l=r(t),d=s(l),p=o(i,d);if(e&&a!==a){while(d>p)if(n=l[p++],n!==n)return!0}else for(;d>p;p++)if((e||p in l)&&l[p]===a)return e||p||0;return!e&&-1}};e.exports={includes:i(!0),indexOf:i(!1)}},5649:(e,t,a)=>{var r=a(67697),o=a(92297),s=TypeError,i=Object.getOwnPropertyDescriptor,n=r&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(e){return e instanceof TypeError}}();e.exports=n?function(e,t){if(o(e)&&!i(e,"length").writable)throw new s("Cannot set read only .length");return e.length=t}:function(e,t){return e.length=t}},50926:(e,t,a)=>{var r=a(23043),o=a(69985),s=a(6648),i=a(44201),n=i("toStringTag"),l=Object,d="Arguments"===s(function(){return arguments}()),p=function(e,t){try{return e[t]}catch(a){}};e.exports=r?s:function(e){var t,a,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(a=p(t=l(e),n))?a:d?s(t):"Object"===(r=s(t))&&o(t.callee)?"Arguments":r}},8758:(e,t,a)=>{var r=a(36812),o=a(19152),s=a(82474),i=a(72560);e.exports=function(e,t,a){for(var n=o(t),l=i.f,d=s.f,p=0;p{var r=a(98702),o=a(72560);e.exports=function(e,t,a){return a.get&&r(a.get,t,{getter:!0}),a.set&&r(a.set,t,{setter:!0}),o.f(e,t,a)}},55565:e=>{var t=TypeError,a=9007199254740991;e.exports=function(e){if(e>a)throw t("Maximum allowed index exceeded");return e}},72739:e=>{e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},79989:(e,t,a)=>{var r=a(19037),o=a(82474).f,s=a(75773),i=a(11880),n=a(95014),l=a(8758),d=a(35266);e.exports=function(e,t){var a,p,c,u,h,m,f=e.target,g=e.global,v=e.stat;if(p=g?r:v?r[f]||n(f,{}):(r[f]||{}).prototype,p)for(c in t){if(h=t[c],e.dontCallGetSet?(m=o(p,c),u=m&&m.value):u=p[c],a=d(g?c:f+(v?".":"#")+c,e.forced),!a&&void 0!==u){if(typeof h==typeof u)continue;l(h,u)}(e.sham||u&&u.sham)&&s(h,"sham",!0),i(p,c,h,e)}}},94413:(e,t,a)=>{var r=a(68844),o=a(3689),s=a(6648),i=Object,n=r("".split);e.exports=o((function(){return!i("z").propertyIsEnumerable(0)}))?function(e){return"String"===s(e)?n(e,""):i(e)}:i},92297:(e,t,a)=>{var r=a(6648);e.exports=Array.isArray||function(e){return"Array"===r(e)}},35266:(e,t,a)=>{var r=a(3689),o=a(69985),s=/#|\.prototype\./,i=function(e,t){var a=l[n(e)];return a===p||a!==d&&(o(t)?r(t):!!t)},n=i.normalize=function(e){return String(e).replace(s,".").toLowerCase()},l=i.data={},d=i.NATIVE="N",p=i.POLYFILL="P";e.exports=i},6310:(e,t,a)=>{var r=a(43126);e.exports=function(e){return r(e.length)}},58828:e=>{var t=Math.ceil,a=Math.floor;e.exports=Math.trunc||function(e){var r=+e;return(r>0?a:t)(r)}},82474:(e,t,a)=>{var r=a(67697),o=a(22615),s=a(49556),i=a(75684),n=a(65290),l=a(18360),d=a(36812),p=a(68506),c=Object.getOwnPropertyDescriptor;t.f=r?c:function(e,t){if(e=n(e),t=l(t),p)try{return c(e,t)}catch(a){}if(d(e,t))return i(!o(s.f,e,t),e[t])}},72741:(e,t,a)=>{var r=a(54948),o=a(72739),s=o.concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,s)}},7518:(e,t)=>{t.f=Object.getOwnPropertySymbols},54948:(e,t,a)=>{var r=a(68844),o=a(36812),s=a(65290),i=a(84328).indexOf,n=a(57248),l=r([].push);e.exports=function(e,t){var a,r=s(e),d=0,p=[];for(a in r)!o(n,a)&&o(r,a)&&l(p,a);while(t.length>d)o(r,a=t[d++])&&(~i(p,a)||l(p,a));return p}},49556:(e,t)=>{var a={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,o=r&&!a.call({1:2},1);t.f=o?function(e){var t=r(this,e);return!!t&&t.enumerable}:a},19152:(e,t,a)=>{var r=a(76058),o=a(68844),s=a(72741),i=a(7518),n=a(85027),l=o([].concat);e.exports=r("Reflect","ownKeys")||function(e){var t=s.f(n(e)),a=i.f;return a?l(t,a(e)):t}},27578:(e,t,a)=>{var r=a(68700),o=Math.max,s=Math.min;e.exports=function(e,t){var a=r(e);return a<0?o(a+t,0):s(a,t)}},65290:(e,t,a)=>{var r=a(94413),o=a(74684);e.exports=function(e){return r(o(e))}},68700:(e,t,a)=>{var r=a(58828);e.exports=function(e){var t=+e;return t!==t||0===t?0:r(t)}},43126:(e,t,a)=>{var r=a(68700),o=Math.min;e.exports=function(e){return e>0?o(r(e),9007199254740991):0}},23043:(e,t,a)=>{var r=a(44201),o=r("toStringTag"),s={};s[o]="z",e.exports="[object z]"===String(s)},34327:(e,t,a)=>{var r=a(50926),o=String;e.exports=function(e){if("Symbol"===r(e))throw new TypeError("Cannot convert a Symbol value to a string");return o(e)}},21500:e=>{var t=TypeError;e.exports=function(e,a){if(e{var r=a(79989),o=a(90690),s=a(6310),i=a(5649),n=a(55565),l=a(3689),d=l((function(){return 4294967297!==[].push.call({length:4294967296},1)})),p=function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(e){return e instanceof TypeError}},c=d||!p();r({target:"Array",proto:!0,arity:1,forced:c},{push:function(e){var t=o(this),a=s(t),r=arguments.length;n(a+r);for(var l=0;l{var r=a(11880),o=a(68844),s=a(34327),i=a(21500),n=URLSearchParams,l=n.prototype,d=o(l.append),p=o(l["delete"]),c=o(l.forEach),u=o([].push),h=new n("a=1&a=2&b=3");h["delete"]("a",1),h["delete"]("b",void 0),h+""!=="a=2"&&r(l,"delete",(function(e){var t=arguments.length,a=t<2?void 0:arguments[1];if(t&&void 0===a)return p(this,e);var r=[];c(this,(function(e,t){u(r,{key:t,value:e})})),i(t,1);var o,n=s(e),l=s(a),h=0,m=0,f=!1,g=r.length;while(h{var r=a(11880),o=a(68844),s=a(34327),i=a(21500),n=URLSearchParams,l=n.prototype,d=o(l.getAll),p=o(l.has),c=new n("a=1");!c.has("a",2)&&c.has("a",void 0)||r(l,"has",(function(e){var t=arguments.length,a=t<2?void 0:arguments[1];if(t&&void 0===a)return p(this,e);var r=d(this,e);i(t,1);var o=s(a),n=0;while(n{var r=a(67697),o=a(68844),s=a(62148),i=URLSearchParams.prototype,n=o(i.forEach);r&&!("size"in i)&&s(i,"size",{get:function(){var e=0;return n(this,(function(){e++})),e},configurable:!0,enumerable:!0})}}]); \ No newline at end of file +"use strict";(self["webpackChunkflux"]=self["webpackChunkflux"]||[]).push([[8578],{34547:(e,t,a)=>{a.d(t,{Z:()=>p});var r=function(){var e=this,t=e._self._c;return t("div",{staticClass:"toastification"},[t("div",{staticClass:"d-flex align-items-start"},[t("b-avatar",{staticClass:"mr-75 flex-shrink-0",attrs:{variant:e.variant,size:"1.8rem"}},[t("feather-icon",{attrs:{icon:e.icon,size:"15"}})],1),t("div",{staticClass:"d-flex flex-grow-1"},[t("div",[e.title?t("h5",{staticClass:"mb-0 font-weight-bolder toastification-title",class:`text-${e.variant}`,domProps:{textContent:e._s(e.title)}}):e._e(),e.text?t("small",{staticClass:"d-inline-block text-body",domProps:{textContent:e._s(e.text)}}):e._e()]),t("span",{staticClass:"cursor-pointer toastification-close-icon ml-auto",on:{click:function(t){return e.$emit("close-toast")}}},[e.hideClose?e._e():t("feather-icon",{staticClass:"text-body",attrs:{icon:"XIcon"}})],1)])],1)])},s=[],o=a(47389);const i={components:{BAvatar:o.SH},props:{variant:{type:String,default:"primary"},icon:{type:String,default:null},title:{type:String,default:null},text:{type:String,default:null},hideClose:{type:Boolean,default:!1}}},n=i;var l=a(1001),d=(0,l.Z)(n,r,s,!1,null,"22d964ca",null);const p=d.exports},78578:(e,t,a)=>{a.r(t),a.d(t,{default:()=>D});var r=function(){var e=this,t=e._self._c;return t("div",[t("div",{staticClass:"mb-2"},[t("h6",{staticClass:"progress-label"},[e._v(" "+e._s(`${e.storage.used.toFixed(2)} / ${e.storage.total.toFixed(2)}`)+" GB ")]),t("b-progress",{attrs:{value:e.percentage,max:"100",striped:"",height:"2rem"}})],1),t("b-button-toolbar",{attrs:{justify:""}},[t("b-button-group",{attrs:{size:"sm"}}),t("b-button-group",{attrs:{size:"sm"}},[t("b-button",{attrs:{variant:"outline-primary"},on:{click:function(t){e.uploadFilesDialog=!0}}},[t("v-icon",{attrs:{name:"cloud-upload-alt"}})],1),t("b-button",{attrs:{variant:"outline-primary"},on:{click:function(t){e.createDirectoryDialogVisible=!0}}},[t("v-icon",{attrs:{name:"folder-plus"}})],1),t("b-modal",{attrs:{title:"Create Folder",size:"lg",centered:"","ok-only":"","ok-title":"Create Folder","header-bg-variant":"primary"},on:{ok:function(t){return e.createFolder(e.newDirName)}},model:{value:e.createDirectoryDialogVisible,callback:function(t){e.createDirectoryDialogVisible=t},expression:"createDirectoryDialogVisible"}},[t("b-form-group",{attrs:{label:"Folder Name","label-for":"folderNameInput"}},[t("b-form-input",{attrs:{id:"folderNameInput",size:"lg",placeholder:"New Folder Name"},model:{value:e.newDirName,callback:function(t){e.newDirName=t},expression:"newDirName"}})],1)],1),t("b-modal",{attrs:{title:"Upload Files",size:"lg",centered:"","hide-footer":"","header-bg-variant":"primary"},on:{close:function(t){return e.refreshFolder()}},model:{value:e.uploadFilesDialog,callback:function(t){e.uploadFilesDialog=t},expression:"uploadFilesDialog"}},[t("file-upload",{attrs:{"upload-folder":e.getUploadFolder,headers:e.zelidHeader},on:{complete:e.refreshFolder}})],1)],1)],1),t("b-table",{staticClass:"fluxshare-table",attrs:{hover:"",responsive:"",items:e.folderContentFilter,fields:e.fields,busy:e.loadingFolder,"sort-compare":e.sort,"sort-by":"name"},scopedSlots:e._u([{key:"table-busy",fn:function(){return[t("div",{staticClass:"text-center text-danger my-2"},[t("b-spinner",{staticClass:"align-middle mx-2"}),t("strong",[e._v("Loading...")])],1)]},proxy:!0},{key:"head(name)",fn:function(a){return[e.currentFolder?t("b-button",{staticClass:"btn up-button",attrs:{"aria-label":"Up",variant:"flat-secondary"},on:{click:function(t){return e.upFolder()}}},[t("span",{staticClass:"d-inline-block",attrs:{"aria-hidden":"true"}},[t("v-icon",{attrs:{name:"arrow-alt-circle-up"}})],1)]):e._e(),e._v(" "+e._s(a.label.toUpperCase())+" ")]}},{key:"cell(name)",fn:function(a){return[a.item.isDirectory?t("div",[t("b-link",{on:{click:function(t){return e.changeFolder(a.item.name)}}},[e._v(" "+e._s(a.item.name)+" ")])],1):t("div",[e._v(" "+e._s(a.item.name)+" ")])]}},{key:"cell(modifiedAt)",fn:function(t){return[e._v(" "+e._s(new Date(t.item.modifiedAt).toLocaleString("en-GB",e.timeoptions))+" ")]}},{key:"cell(type)",fn:function(a){return[a.item.isDirectory?t("div",[e._v(" Folder ")]):a.item.isFile||a.item.isSymbolicLink?t("div",[e._v(" File ")]):t("div",[e._v(" Other ")])]}},{key:"cell(size)",fn:function(a){return[a.item.size>0?t("div",[e._v(" "+e._s(e.beautifyValue((a.item.size/1e3).toFixed(0)))+" KB ")]):e._e()]}},{key:"cell(delete)",fn:function(a){return[t("b-button",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.left",value:"Delete",expression:"'Delete'",modifiers:{hover:!0,left:!0}},{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"btn-icon action-icon",attrs:{id:`delete-${a.item.name}`,variant:"gradient-danger"}},[t("v-icon",{attrs:{name:"trash-alt"}})],1),t("confirm-dialog",{attrs:{target:`delete-${a.item.name}`,"confirm-button":a.item.isFile?"Delete File":"Delete Folder"},on:{confirm:function(t){a.item.isFile?e.deleteFile(a.item.name):e.deleteFolder(a.item.name)}}})]}},{key:"cell(actions)",fn:function(a){return[t("b-button-group",{attrs:{size:"sm"}},[t("b-button",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.bottom",value:a.item.isFile?"Download":"Download zip of folder",expression:"data.item.isFile ? 'Download' : 'Download zip of folder'",modifiers:{hover:!0,bottom:!0}},{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],attrs:{id:`download-${a.item.name}`,variant:"outline-secondary"}},[t("v-icon",{attrs:{name:a.item.isFile?"file-download":"file-archive"}})],1),t("b-button",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.bottom",value:"Rename",expression:"'Rename'",modifiers:{hover:!0,bottom:!0}},{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],attrs:{id:`rename-${a.item.name}`,variant:"outline-secondary"},on:{click:function(t){return e.rename(a.item.name)}}},[t("v-icon",{attrs:{name:"edit"}})],1),t("b-button",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.bottom",value:a.item.shareToken?"Unshare file":"Share file",expression:"data.item.shareToken ? 'Unshare file' : 'Share file'",modifiers:{hover:!0,bottom:!0}},{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],attrs:{id:`share-${a.item.name}`,variant:a.item.shareToken?"gradient-primary":"outline-secondary"},on:{click:function(t){a.item.shareToken?e.unshareFile(a.item.name):e.shareFile(a.item.name)}}},[t("v-icon",{attrs:{name:"share-alt"}})],1),a.item.shareToken?t("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],attrs:{id:`sharelink-${a.item.name}`,variant:"outline-secondary"}},[t("v-icon",{attrs:{name:"envelope"}})],1):e._e()],1),t("confirm-dialog",{attrs:{target:`download-${a.item.name}`,"confirm-button":a.item.isFile?"Download File":"Download Folder"},on:{confirm:function(t){a.item.isFile?e.download(a.item.name):e.download(a.item.name,!0,a.item.size)}}}),a.item.shareToken?t("b-popover",{attrs:{target:`sharelink-${a.item.name}`,placement:"bottom",triggers:"hover focus"},scopedSlots:e._u([{key:"title",fn:function(){return[t("b-button",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.top",value:"Copy to Clipboard",expression:"'Copy to Clipboard'",modifiers:{hover:!0,top:!0}}],staticClass:"btn copy-button",attrs:{"aria-label":"Copy to Clipboard",variant:"flat-warning"},on:{click:function(t){e.copyLinkToClipboard(e.createfluxshareLink(a.item.shareFile,a.item.shareToken))}}},[t("span",{staticClass:"d-inline-block",attrs:{"aria-hidden":"true"}},[t("v-icon",{attrs:{name:"clipboard"}})],1)]),e._v(" Share Link ")]},proxy:!0}],null,!0)},[t("div",[t("b-link",{attrs:{href:e.createfluxshareLink(a.item.shareFile,a.item.shareToken)}},[e._v(" "+e._s(e.createfluxshareLink(a.item.shareFile,a.item.shareToken))+" ")])],1)]):e._e(),t("b-modal",{attrs:{title:"Rename",size:"lg",centered:"","ok-only":"","ok-title":"Rename"},on:{ok:function(t){return e.confirmRename()}},model:{value:e.renameDialogVisible,callback:function(t){e.renameDialogVisible=t},expression:"renameDialogVisible"}},[t("b-form-group",{attrs:{label:"Name","label-for":"nameInput"}},[t("b-form-input",{attrs:{id:"nameInput",size:"lg",placeholder:"Name"},model:{value:e.newName,callback:function(t){e.newName=t},expression:"newName"}})],1)],1)]}}])})],1)},s=[],o=a(45752),i=a(16521),n=a(1759),l=a(15193),d=a(31220),p=a(46709),c=a(22183),u=a(53862),h=a(67347),m=a(41984),g=a(45969),f=a(5870),b=a(20629),v=a(20266),F=a(87066),y=a(34547),w=a(87156),$=a(2272),x=a(43672);const k=a(58971),C={components:{BProgress:o.D,BTable:i.h,BSpinner:n.X,BButton:l.T,BModal:d.N,BFormGroup:p.x,BFormInput:c.e,BPopover:u.x,BLink:h.we,BButtonToolbar:m.r,BButtonGroup:g.a,ConfirmDialog:w.Z,FileUpload:$.Z,ToastificationContent:y.Z},directives:{"b-tooltip":f.o,Ripple:v.Z},data(){return{fields:[{key:"name",label:"Name",sortable:!0},{key:"modifiedAt",label:"Modified",sortable:!0},{key:"type",label:"Type",sortable:!0},{key:"size",label:"Size",sortable:!0},{key:"actions",label:""},{key:"delete",label:""}],timeoptions:{year:"numeric",month:"short",day:"numeric",hour:"2-digit",minute:"2-digit"},loadingFolder:!1,folderView:[],currentFolder:"",uploadFilesDialog:!1,filterFolder:"",createDirectoryDialogVisible:!1,renameDialogVisible:!1,newName:"",fileRenaming:"",newDirName:"",abortToken:{},downloaded:{},total:{},timeStamp:{},working:!1,storage:{used:0,total:2,available:2},customColors:[{color:"#6f7ad3",percentage:20},{color:"#1989fa",percentage:40},{color:"#5cb87a",percentage:60},{color:"#e6a23c",percentage:80},{color:"#f56c6c",percentage:100}],uploadTotal:"",uploadUploaded:"",uploadTimeStart:"",currentUploadTime:"",uploadFiles:[]}},computed:{...(0,b.rn)("flux",["userconfig","config"]),percentage(){const e=this.storage.used/this.storage.total*100;return Number(e.toFixed(2))},zelidHeader(){const e=localStorage.getItem("zelidauth"),t={zelidauth:e};return t},ipAddress(){const e=k.get("backendURL");if(e)return`${k.get("backendURL").split(":")[0]}:${k.get("backendURL").split(":")[1]}`;const{hostname:t}=window.location;return`http://${t}`},folderContentFilter(){const e=this.folderView.filter((e=>JSON.stringify(e.name).toLowerCase().includes(this.filterFolder.toLowerCase())));return e.filter((e=>".gitkeep"!==e.name))},getUploadFolder(){const e=this.config.apiPort;if(this.currentFolder){const t=encodeURIComponent(this.currentFolder);return`${this.ipAddress}:${e}/apps/fluxshare/uploadfile/${t}`}return`${this.ipAddress}:${e}/apps/fluxshare/uploadfile`}},mounted(){this.loadingFolder=!0,this.loadFolder(this.currentFolder),this.storageStats()},methods:{sortNameFolder(e,t){return(e.isDirectory?`..${e.name}`:e.name).localeCompare(t.isDirectory?`..${t.name}`:t.name)},sortTypeFolder(e,t){return e.isDirectory&&t.isFile?-1:e.isFile&&t.isDirectory?1:0},sort(e,t,a,r){return"name"===a?this.sortNameFolder(e,t,r):"type"===a?this.sortTypeFolder(e,t,r):"modifiedAt"===a?e.modifiedAt>t.modifiedAt?-1:e.modifiedAtt.size?-1:e.size=4&&(t[0]=t[0].replace(/(\d)(?=(\d{3})+$)/g,"$1,")),t.join(".")},refreshFolder(){this.loadFolder(this.currentFolder,!0),this.storageStats()},async deleteFile(e){try{const t=this.currentFolder,a=t?`${t}/${e}`:e,r=await x.Z.removeFile(this.zelidHeader.zelidauth,encodeURIComponent(a));"error"===r.data.status?this.showToast("danger",r.data.data.message||r.data.data):(this.refreshFolder(),this.showToast("success",`${e} deleted`))}catch(t){this.showToast("danger",t.message||t)}},async shareFile(e){try{const t=this.currentFolder,a=t?`${t}/${e}`:e,r=await x.Z.shareFile(this.zelidHeader.zelidauth,encodeURIComponent(a));"error"===r.data.status?this.showToast("danger",r.data.data.message||r.data.data):(this.loadFolder(this.currentFolder,!0),this.showToast("success",`${e} shared`))}catch(t){this.showToast("danger",t.message||t)}},async unshareFile(e){try{const t=this.currentFolder,a=t?`${t}/${e}`:e,r=await x.Z.unshareFile(this.zelidHeader.zelidauth,encodeURIComponent(a));"error"===r.data.status?this.showToast("danger",r.data.data.message||r.data.data):(this.loadFolder(this.currentFolder,!0),this.showToast("success",`${e} unshared`))}catch(t){this.showToast("danger",t.message||t)}},async deleteFolder(e){try{let t=e;""!==this.currentFolder&&(t=`${this.currentFolder}/${e}`);const a=await x.Z.removeFolder(this.zelidHeader.zelidauth,encodeURIComponent(t));console.log(a.data),"error"===a.data.status?"ENOTEMPTY"===a.data.data.code?this.showToast("danger",`Directory ${e} is not empty!`):this.showToast("danger",a.data.data.message||a.data.data):(this.loadFolder(this.currentFolder,!0),this.showToast("success",`${e} deleted`))}catch(t){this.showToast("danger",t.message||t)}},beforeUpload(e){if(this.storage.available<=0)return this.showToast("danger","Storage space is full"),!1;const t=this.folderView.find((t=>t.name===e.name));return!t||(this.showToast("info",`File ${e.name} already exists`),!1)},createfluxshareLink(e,t){const a=this.config.apiPort;return`${this.ipAddress}:${a}/apps/fluxshare/getfile/${e}?token=${t}`},copyLinkToClipboard(e){const t=document.createElement("textarea");t.value=e,t.setAttribute("readonly",""),t.style.position="absolute",t.style.left="-9999px",document.body.appendChild(t),t.select(),document.execCommand("copy"),document.body.removeChild(t),this.showToast("success","Link copied to Clipboard")},rename(e){this.renameDialogVisible=!0;let t=e;""!==this.currentFolder&&(t=`${this.currentFolder}/${e}`),this.fileRenaming=t,this.newName=e},async confirmRename(){this.renameDialogVisible=!1;try{const e=this.fileRenaming,t=this.newName,a=await x.Z.renameFileFolder(this.zelidHeader.zelidauth,encodeURIComponent(e),t);console.log(a),"error"===a.data.status?this.showToast("danger",a.data.data.message||a.data.data):(e.includes("/")?this.showToast("success",`${e.split("/").pop()} renamed to ${t}`):this.showToast("success",`${e} renamed to ${t}`),this.loadFolder(this.currentFolder,!0))}catch(e){this.showToast("danger",e.message||e)}},upFolder(){this.changeFolder("..")},showToast(e,t,a="InfoIcon"){this.$toast({component:y.Z,props:{title:t,icon:a,variant:e}})}}},z=C;var T=a(1001),Z=(0,T.Z)(z,r,s,!1,null,null,null);const D=Z.exports},87156:(e,t,a)=>{a.d(t,{Z:()=>u});var r=function(){var e=this,t=e._self._c;return t("b-popover",{ref:"popover",attrs:{target:`${e.target}`,triggers:"click blur",show:e.show,placement:"auto",container:"my-container","custom-class":`confirm-dialog-${e.width}`},on:{"update:show":function(t){e.show=t}},scopedSlots:e._u([{key:"title",fn:function(){return[t("div",{staticClass:"d-flex justify-content-between align-items-center"},[t("span",[e._v(e._s(e.title))]),t("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"close",attrs:{variant:"transparent","aria-label":"Close"},on:{click:function(t){e.show=!1}}},[t("span",{staticClass:"d-inline-block text-white",attrs:{"aria-hidden":"true"}},[e._v("×")])])],1)]},proxy:!0}])},[t("div",{staticClass:"text-center"},[t("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"mr-1",attrs:{size:"sm",variant:"danger"},on:{click:function(t){e.show=!1}}},[e._v(" "+e._s(e.cancelButton)+" ")]),t("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],attrs:{size:"sm",variant:"primary"},on:{click:function(t){return e.confirm()}}},[e._v(" "+e._s(e.confirmButton)+" ")])],1)])},s=[],o=a(15193),i=a(53862),n=a(20266);const l={components:{BButton:o.T,BPopover:i.x},directives:{Ripple:n.Z},props:{target:{type:String,required:!0},title:{type:String,required:!1,default:"Are You Sure?"},cancelButton:{type:String,required:!1,default:"Cancel"},confirmButton:{type:String,required:!0},width:{type:Number,required:!1,default:300}},data(){return{show:!1}},methods:{confirm(){this.show=!1,this.$emit("confirm")}}},d=l;var p=a(1001),c=(0,p.Z)(d,r,s,!1,null,null,null);const u=c.exports},2272:(e,t,a)=>{a.d(t,{Z:()=>g});var r=function(){var e=this,t=e._self._c;return t("div",{staticClass:"flux-share-upload",style:e.cssProps},[t("b-row",[t("div",{staticClass:"flux-share-upload-drop text-center",attrs:{id:"dropTarget"},on:{drop:function(t){return t.preventDefault(),e.addFile.apply(null,arguments)},dragover:function(e){e.preventDefault()},click:e.selectFiles}},[t("v-icon",{attrs:{name:"cloud-upload-alt"}}),t("p",[e._v("Drop files here or "),t("em",[e._v("click to upload")])]),t("p",{staticClass:"upload-footer"},[e._v(" (File size is limited to 5GB) ")])],1),t("input",{ref:"fileselector",staticClass:"flux-share-upload-input",attrs:{id:"file-selector",type:"file",multiple:""},on:{change:e.handleFiles}}),t("b-col",{staticClass:"upload-column"},e._l(e.files,(function(a){return t("div",{key:a.file.name,staticClass:"upload-item",staticStyle:{"margin-bottom":"3px"}},[e._v(" "+e._s(a.file.name)+" ("+e._s(e.addAndConvertFileSizes(a.file.size))+") "),t("span",{staticClass:"delete text-white",attrs:{"aria-hidden":"true"}},[a.uploading?e._e():t("v-icon",{style:{color:e.determineColor(a.file.name)},attrs:{name:"trash-alt",disabled:a.uploading},on:{mouseenter:function(t){return e.handleHover(a.file.name,!0)},mouseleave:function(t){return e.handleHover(a.file.name,!1)},focusin:function(t){return e.handleHover(a.file.name,!0)},focusout:function(t){return e.handleHover(a.file.name,!1)},click:function(t){return e.removeFile(a)}}})],1),t("b-progress",{class:a.uploading||a.uploaded?"":"hidden",attrs:{value:a.progress,max:"100",striped:"",height:"5px"}})],1)})),0)],1),t("b-row",[t("b-col",{staticClass:"text-center",attrs:{xs:"12"}},[t("b-button",{staticClass:"delete mt-1",attrs:{variant:"primary",disabled:!e.filesToUpload,size:"sm","aria-label":"Close"},on:{click:function(t){return e.startUpload()}}},[e._v(" Upload Files ")])],1)],1)],1)},s=[],o=(a(70560),a(26253)),i=a(50725),n=a(45752),l=a(15193),d=a(68934),p=a(34547);const c={components:{BRow:o.T,BCol:i.l,BProgress:n.D,BButton:l.T,ToastificationContent:p.Z},props:{uploadFolder:{type:String,required:!0},headers:{type:Object,required:!0}},data(){return{isHovered:!1,hoverStates:{},files:[],primaryColor:d.j.primary,secondaryColor:d.j.secondary}},computed:{cssProps(){return{"--primary-color":this.primaryColor,"--secondary-color":this.secondaryColor}},filesToUpload(){return this.files.length>0&&this.files.some((e=>!e.uploading&&!e.uploaded&&0===e.progress))}},methods:{addAndConvertFileSizes(e,t="auto",a=2){const r={B:1,KB:1024,MB:1048576,GB:1073741824},s=(e,t)=>e/r[t.toUpperCase()],o=(e,t)=>{const r="B"===t?e.toFixed(0):e.toFixed(a);return`${r} ${t}`};let i;if(Array.isArray(e)&&e.length>0)i=+e.reduce(((e,t)=>e+(t.file_size||0)),0);else{if("number"!==typeof+e)return console.error("Invalid sizes parameter"),"N/A";i=+e}if(isNaN(i))return console.error("Total size is not a valid number"),"N/A";if("auto"===t){let e,t=i;return Object.keys(r).forEach((a=>{const r=s(i,a);r>=1&&(void 0===t||r{const t=this.files.some((t=>t.file.name===e.name));console.log(t),t?this.showToast("warning",`'${e.name}' is already in the upload queue`):this.files.push({file:e,uploading:!1,uploaded:!1,progress:0})}))},removeFile(e){this.files=this.files.filter((t=>t.file.name!==e.file.name))},startUpload(){console.log(this.uploadFolder),console.log(this.files),this.files.forEach((e=>{console.log(e),e.uploaded||e.uploading||this.upload(e)}))},upload(e){const t=this;if("undefined"===typeof XMLHttpRequest)return;const a=new XMLHttpRequest,r=this.uploadFolder;a.upload&&(a.upload.onprogress=function(t){console.log(t),t.total>0&&(t.percent=t.loaded/t.total*100),e.progress=t.percent});const s=new FormData;s.append(e.file.name,e.file),e.uploading=!0,a.onerror=function(a){console.log(a),t.showToast("danger",`An error occurred while uploading '${e.file.name}' - ${a}`),t.removeFile(e)},a.onload=function(){if(a.status<200||a.status>=300)return console.log("error"),console.log(a.status),t.showToast("danger",`An error occurred while uploading '${e.file.name}' - Status code: ${a.status}`),void t.removeFile(e);e.uploaded=!0,e.uploading=!1,t.$emit("complete"),t.removeFile(e),t.showToast("success",`'${e.file.name}' has been uploaded`)},a.open("post",r,!0);const o=this.headers||{},i=Object.keys(o);for(let n=0;n{a.d(t,{Z:()=>s});var r=a(80914);const s={listRunningApps(){const e={headers:{"x-apicache-bypass":!0}};return(0,r.Z)().get("/apps/listrunningapps",e)},listAllApps(){const e={headers:{"x-apicache-bypass":!0}};return(0,r.Z)().get("/apps/listallapps",e)},installedApps(){const e={headers:{"x-apicache-bypass":!0}};return(0,r.Z)().get("/apps/installedapps",e)},availableApps(){return(0,r.Z)().get("/apps/availableapps")},getEnterpriseNodes(){return(0,r.Z)().get("/apps/enterprisenodes")},stopApp(e,t){const a={headers:{zelidauth:e,"x-apicache-bypass":!0}};return(0,r.Z)().get(`/apps/appstop/${t}`,a)},startApp(e,t){const a={headers:{zelidauth:e}};return(0,r.Z)().get(`/apps/appstart/${t}`,a)},pauseApp(e,t){const a={headers:{zelidauth:e}};return(0,r.Z)().get(`/apps/apppause/${t}`,a)},unpauseApp(e,t){const a={headers:{zelidauth:e}};return(0,r.Z)().get(`/apps/appunpause/${t}`,a)},restartApp(e,t){const a={headers:{zelidauth:e}};return(0,r.Z)().get(`/apps/apprestart/${t}`,a)},removeApp(e,t){const a={headers:{zelidauth:e},onDownloadProgress(e){console.log(e)}};return(0,r.Z)().get(`/apps/appremove/${t}`,a)},registerApp(e,t){const a={headers:{zelidauth:e}};return(0,r.Z)().post("/apps/appregister",JSON.stringify(t),a)},updateApp(e,t){const a={headers:{zelidauth:e}};return(0,r.Z)().post("/apps/appupdate",JSON.stringify(t),a)},checkCommunication(){return(0,r.Z)().get("/flux/checkcommunication")},checkDockerExistance(e,t){const a={headers:{zelidauth:e}};return(0,r.Z)().post("/apps/checkdockerexistance",JSON.stringify(t),a)},appsRegInformation(){return(0,r.Z)().get("/apps/registrationinformation")},appsDeploymentInformation(){return(0,r.Z)().get("/apps/deploymentinformation")},getAppLocation(e){return(0,r.Z)().get(`/apps/location/${e}`)},globalAppSpecifications(){return(0,r.Z)().get("/apps/globalappsspecifications")},permanentMessagesOwner(e){return(0,r.Z)().get(`/apps/permanentmessages?owner=${e}`)},getInstalledAppSpecifics(e){return(0,r.Z)().get(`/apps/installedapps/${e}`)},getAppSpecifics(e){return(0,r.Z)().get(`/apps/appspecifications/${e}`)},getAppOwner(e){return(0,r.Z)().get(`/apps/appowner/${e}`)},getAppLogsTail(e,t){const a={headers:{zelidauth:e}};return(0,r.Z)().get(`/apps/applog/${t}/100`,a)},getAppTop(e,t){const a={headers:{zelidauth:e}};return(0,r.Z)().get(`/apps/apptop/${t}`,a)},getAppInspect(e,t){const a={headers:{zelidauth:e}};return(0,r.Z)().get(`/apps/appinspect/${t}`,a)},getAppStats(e,t){const a={headers:{zelidauth:e}};return(0,r.Z)().get(`/apps/appstats/${t}`,a)},getAppChanges(e,t){const a={headers:{zelidauth:e}};return(0,r.Z)().get(`/apps/appchanges/${t}`,a)},getAppExec(e,t,a,s){const o={headers:{zelidauth:e}},i={appname:t,cmd:a,env:JSON.parse(s)};return(0,r.Z)().post("/apps/appexec",JSON.stringify(i),o)},reindexGlobalApps(e){return(0,r.Z)().get("/apps/reindexglobalappsinformation",{headers:{zelidauth:e}})},reindexLocations(e){return(0,r.Z)().get("/apps/reindexglobalappslocation",{headers:{zelidauth:e}})},rescanGlobalApps(e,t,a){return(0,r.Z)().get(`/apps/rescanglobalappsinformation/${t}/${a}`,{headers:{zelidauth:e}})},getFolder(e,t){return(0,r.Z)().get(`/apps/fluxshare/getfolder/${t}`,{headers:{zelidauth:e}})},createFolder(e,t){return(0,r.Z)().get(`/apps/fluxshare/createfolder/${t}`,{headers:{zelidauth:e}})},getFile(e,t){return(0,r.Z)().get(`/apps/fluxshare/getfile/${t}`,{headers:{zelidauth:e}})},removeFile(e,t){return(0,r.Z)().get(`/apps/fluxshare/removefile/${t}`,{headers:{zelidauth:e}})},shareFile(e,t){return(0,r.Z)().get(`/apps/fluxshare/sharefile/${t}`,{headers:{zelidauth:e}})},unshareFile(e,t){return(0,r.Z)().get(`/apps/fluxshare/unsharefile/${t}`,{headers:{zelidauth:e}})},removeFolder(e,t){return(0,r.Z)().get(`/apps/fluxshare/removefolder/${t}`,{headers:{zelidauth:e}})},fileExists(e,t){return(0,r.Z)().get(`/apps/fluxshare/fileexists/${t}`,{headers:{zelidauth:e}})},storageStats(e){return(0,r.Z)().get("/apps/fluxshare/stats",{headers:{zelidauth:e}})},renameFileFolder(e,t,a){return(0,r.Z)().get(`/apps/fluxshare/rename/${t}/${a}`,{headers:{zelidauth:e}})},appPrice(e){return(0,r.Z)().post("/apps/calculateprice",JSON.stringify(e))},appPriceUSDandFlux(e){return(0,r.Z)().post("/apps/calculatefiatandfluxprice",JSON.stringify(e))},appRegistrationVerificaiton(e){return(0,r.Z)().post("/apps/verifyappregistrationspecifications",JSON.stringify(e))},appUpdateVerification(e){return(0,r.Z)().post("/apps/verifyappupdatespecifications",JSON.stringify(e))},getAppMonitoring(e,t){const a={headers:{zelidauth:e}};return(0,r.Z)().get(`/apps/appmonitor/${t}`,a)},startAppMonitoring(e,t){const a={headers:{zelidauth:e}};return t?(0,r.Z)().get(`/apps/startmonitoring/${t}`,a):(0,r.Z)().get("/apps/startmonitoring",a)},stopAppMonitoring(e,t,a){const s={headers:{zelidauth:e}};return t&&a?(0,r.Z)().get(`/apps/stopmonitoring/${t}/${a}`,s):t?(0,r.Z)().get(`/apps/stopmonitoring/${t}`,s):a?(0,r.Z)().get(`/apps/stopmonitoring?deletedata=${a}`,s):(0,r.Z)().get("/apps/stopmonitoring",s)},justAPI(){return(0,r.Z)()}}}}]); \ No newline at end of file diff --git a/HomeUI/dist/js/8701.js b/HomeUI/dist/js/8701.js index 2a7360288..47e9ef3ed 100644 --- a/HomeUI/dist/js/8701.js +++ b/HomeUI/dist/js/8701.js @@ -1 +1 @@ -(globalThis["webpackChunkflux"]=globalThis["webpackChunkflux"]||[]).push([[8701],{64813:(t,e,a)=>{"use strict";a.r(e),a.d(e,{default:()=>Kt});var s=function(){var t=this,e=t._self._c;return e("div",{staticStyle:{height:"inherit"}},[e("div",{staticClass:"body-content-overlay",class:{show:t.showDetailSidebar},on:{click:function(e){t.showDetailSidebar=!1}}}),e("div",{staticClass:"marketplace-app-list"},[e("div",{staticClass:"app-fixed-search d-flex align-items-center"},[e("div",{staticClass:"sidebar-toggle d-block d-lg-none ml-1"},[e("feather-icon",{staticClass:"cursor-pointer",attrs:{icon:"MenuIcon",size:"21"},on:{click:function(e){t.showDetailSidebar=!0}}})],1),e("div",{staticClass:"d-flex align-content-center justify-content-between w-100"},[e("b-input-group",{staticClass:"input-group-merge"},[e("b-input-group-prepend",{attrs:{"is-text":""}},[e("feather-icon",{staticClass:"text-muted",attrs:{icon:"SearchIcon"}})],1),e("b-form-input",{attrs:{value:t.searchQuery,placeholder:"Search Marketplace Apps"},on:{input:t.updateRouteQuery}})],1)],1),e("div",{staticClass:"dropdown"},[e("b-dropdown",{attrs:{variant:"link","no-caret":"","toggle-class":"p-0 mr-1",right:""},scopedSlots:t._u([{key:"button-content",fn:function(){return[e("feather-icon",{staticClass:"align-middle text-body",attrs:{icon:"MoreVerticalIcon",size:"16"}})]},proxy:!0}])},[e("b-dropdown-item",{on:{click:t.resetSortAndNavigate}},[t._v(" Reset Sort ")]),e("b-dropdown-item",{attrs:{to:{name:t.$route.name,query:{...t.$route.query,sort:"title-asc"}}}},[t._v(" Sort A-Z ")]),e("b-dropdown-item",{attrs:{to:{name:t.$route.name,query:{...t.$route.query,sort:"title-desc"}}}},[t._v(" Sort Z-A ")]),e("b-dropdown-item",{attrs:{to:{name:t.$route.name,query:{...t.$route.query,sort:"cpu"}}}},[t._v(" Sort by CPU ")]),e("b-dropdown-item",{attrs:{to:{name:t.$route.name,query:{...t.$route.query,sort:"ram"}}}},[t._v(" Sort by RAM ")]),e("b-dropdown-item",{attrs:{to:{name:t.$route.name,query:{...t.$route.query,sort:"hdd"}}}},[t._v(" Sort by HDD ")]),e("b-dropdown-item",{attrs:{to:{name:t.$route.name,query:{...t.$route.query,sort:"price"}}}},[t._v(" Sort by price ")])],1)],1)]),e("vue-perfect-scrollbar",{ref:"appListRef",staticClass:"marketplace-app-list scroll-area",attrs:{settings:t.perfectScrollbarSettings}},[e("ul",{staticClass:"marketplace-media-list"},t._l(t.filteredApps,(function(a){return e("b-media",{key:a.hash,attrs:{tag:"li","no-body":""},on:{click:function(e){return t.handleAppClick(a)}}},[e("b-media-body",{staticClass:"app-media-body"},[e("div",{staticClass:"app-title-wrapper"},[e("div",{staticClass:"app-title-area"},[e("div",{staticClass:"title-wrapper"},[e("span",{staticClass:"app-title"},[e("kbd",{staticClass:"alert-info no-wrap",staticStyle:{"border-radius":"15px","font-size":"16px","font-weight":"700 !important"}},[e("b-icon",{attrs:{scale:"1.2",icon:"app-indicator"}}),t._v("  "+t._s(a.name)+"  ")],1)])])]),e("div",{staticClass:"app-item-action"},[e("div",{staticClass:"badge-wrapper mr-1"},[a.extraDetail.name?e("b-badge",{staticClass:"text-capitalize",attrs:{pill:"",variant:`light-${t.resolveTagVariant(a.extraDetail)}`}},[t._v(" "+t._s(a.extraDetail.name)+" ")]):t._e()],1),e("div",[a.extraDetail?e("b-avatar",{attrs:{size:"48",variant:`light-${t.resolveAvatarVariant(a.extraDetail)}`}},[e("v-icon",{attrs:{scale:"1.75",name:`${t.resolveAvatarIcon(a.extraDetail)}`}})],1):t._e()],1)])]),e("div",{staticClass:"app-title-area"},[e("div",{staticClass:"title-wrapper"},[e("h6",{staticClass:"text-nowrap text-muted mr-1 mb-1 app-description",staticStyle:{width:"900px"}},[t._v(" "+t._s(a.description)+" ")])])]),e("div",{staticClass:"app-title-area"},[e("div",{staticClass:"title-wrapper"},[e("h6",{staticClass:"text-nowrap text-muted mr-1 app-description"},[t._v("  "),e("b-icon",{attrs:{scale:"1.4",icon:"speedometer2"}}),t._v("  "),e("kbd",{staticClass:"alert-success",staticStyle:{"border-radius":"15px"}},[t._v(" "),e("b",[t._v(t._s(t.resolveCpu(a))+" ")]),t._v(" ")]),t._v("   "),e("b-icon",{attrs:{scale:"1.4",icon:"cpu"}}),t._v("  "),e("kbd",{staticClass:"alert-success",staticStyle:{"border-radius":"15px"}},[t._v(" "),e("b",[t._v(t._s(t.resolveRam(a)))]),t._v(" ")]),t._v("   "),e("b-icon",{attrs:{scale:"1.4",icon:"hdd"}}),t._v("  "),e("kbd",{staticClass:"alert-success",staticStyle:{"border-radius":"15px"}},[t._v(" "),e("b",[t._v(t._s(t.resolveHdd(a))+" GB")]),t._v(" ")]),t._v("  ")],1)])]),a.priceUSD?e("div",{staticClass:"app-title-area"},[e("div",{staticClass:"title-wrapper"},[e("h5",{staticClass:"text-nowrap mr-1 app-description"},[t._v("  "),e("b-icon",{staticClass:"mr-1",attrs:{scale:"1.3",icon:"cash"}}),t._v(t._s(a.priceUSD)+" USD,  "),e("b-icon",{staticClass:"mr-1",attrs:{scale:"1.1",icon:"clock"}}),t._v(t._s(t.adjustPeriod(a))+" ")],1)])]):e("div",{staticClass:"app-title-area"},[e("div",{staticClass:"title-wrapper"},[e("h5",{staticClass:"text-nowrap mr-1 app-description"},[t._v(" Price: "+t._s(a.price)+" Flux / "+t._s(t.adjustPeriod(a))+" ")])])])])],1)})),1),e("div",{staticClass:"no-results",class:{show:0===t.filteredApps.length}},[e("h5",[t._v("No Marketplace Apps Found")])])])],1),e("app-view",{class:{show:t.isAppViewActive},attrs:{"app-data":t.app,zelid:t.zelid,tier:t.tier},on:{"close-app-view":function(e){t.isAppViewActive=!1}}}),e("shared-nodes-view",{class:{show:t.isSharedNodesViewActive},attrs:{"app-data":t.app,zelid:t.zelid,tier:t.tier},on:{"close-sharednode-view":function(e){t.isSharedNodesViewActive=!1}}}),e("portal",{attrs:{to:"content-renderer-sidebar-left"}},[e("category-sidebar",{class:{show:t.showDetailSidebar},attrs:{zelid:t.zelid},on:{"close-left-sidebar":function(e){t.showDetailSidebar=!1},"close-app-view":function(e){t.isAppViewActive=!1,t.isSharedNodesViewActive=!1}}})],1)],1)},i=[],r=a(22183),o=a(4060),n=a(27754),l=a(31642),c=a(87379),d=a(72775),u=a(68361),p=a(26034),m=a(47389),g=a(20144),v=a(1923),h=a(23646),f=a(6044),b=a(20266),x=a(41905),S=a(34547),C=a(91040),w=a.n(C),y=a(27616),k=a(39055),_=function(){var t=this,e=t._self._c;return e("div",{staticClass:"app-details"},[e("div",{staticClass:"app-detail-header"},[e("div",{staticClass:"app-header-left d-flex align-items-center"},[e("span",{staticClass:"go-back mr-1"},[e("feather-icon",{staticClass:"align-bottom",attrs:{icon:t.$store.state.appConfig.isRTL?"ChevronRightIcon":"ChevronLeftIcon",size:"20"},on:{click:function(e){return t.$emit("close-app-view")}}})],1),e("h4",{staticClass:"app-name mb-0"},[t._v(" "+t._s(t.appData.name)+" ")])])]),e("vue-perfect-scrollbar",{staticClass:"app-scroll-area scroll-area",attrs:{settings:t.perfectScrollbarSettings}},[e("b-row",{staticClass:"match-height"},[e("b-col",{attrs:{xxl:"9",xl:"8",lg:"8",md:"12"}},[e("br"),e("b-card",{attrs:{title:"Details"}},[e("b-form-textarea",{staticClass:"description-text",attrs:{id:"textarea-rows",rows:"2",readonly:"",value:t.appData.description}}),t.appData.contacts?e("div",{staticClass:"form-row form-group mt-2",staticStyle:{padding:"0"}},[e("label",{staticClass:"col-3 col-form-label"},[t._v(" Contact "),e("v-icon",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.top",value:"Add your email contact to get notifications ex. app about to expire, app spawns. Your contact will be uploaded to Flux Storage to not be public visible",expression:"'Add your email contact to get notifications ex. app about to expire, app spawns. Your contact will be uploaded to Flux Storage to not be public visible'",modifiers:{hover:!0,top:!0}}],attrs:{name:"info-circle"}})],1),e("div",{staticClass:"col"},[e("b-form-input",{attrs:{id:"contact"},model:{value:t.contact,callback:function(e){t.contact=e},expression:"contact"}})],1)]):t._e(),t.appData.geolocationOptions?e("div",[e("b-form-group",{attrs:{"label-cols":"3","label-cols-lg":"20",label:"Deployment Location","label-for":"geolocation"}},[e("b-form-select",{attrs:{id:"geolocation",options:t.appData.geolocationOptions},scopedSlots:t._u([{key:"first",fn:function(){return[e("b-form-select-option",{attrs:{value:null,disabled:""}},[t._v(" Worldwide ")])]},proxy:!0}],null,!1,2073871109),model:{value:t.selectedGeolocation,callback:function(e){t.selectedGeolocation=e},expression:"selectedGeolocation"}})],1)],1):t._e(),e("b-card",{staticStyle:{padding:"0"}},[e("b-tabs",{on:{"activate-tab":t.componentSelected}},t._l(t.appData.compose,(function(a,s){return e("b-tab",{key:s,attrs:{title:a.name}},[e("div",{staticClass:"my-2 ml-2"},[e("div",{staticClass:"list-entry"},[e("p",[e("b",{staticStyle:{display:"inline-block",width:"120px"}},[t._v("Description:")]),t._v(" "+t._s(a.description))]),e("p",[e("b",{staticStyle:{display:"inline-block",width:"120px"}},[t._v("Repository:")]),t._v(" "+t._s(a.repotag))])])]),a.userEnvironmentParameters?.length>0?e("b-card",{attrs:{title:"Parameters","border-variant":"dark"}},[a.userEnvironmentParameters?e("b-tabs",t._l(a.userEnvironmentParameters,(function(a,s){return e("b-tab",{key:s,attrs:{title:a.name}},[e("div",{staticClass:"form-row form-group"},[e("label",{staticClass:"col-2 col-form-label ml-2"},[t._v(" Value "),e("v-icon",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.top",value:a.description,expression:"parameter.description",modifiers:{hover:!0,top:!0}}],staticClass:"mr-1",attrs:{name:"info-circle"}})],1),e("div",{staticClass:"col"},[e("b-form-input",{attrs:{id:"enviromentParameters",placeholder:a.placeholder},model:{value:a.value,callback:function(e){t.$set(a,"value",e)},expression:"parameter.value"}})],1)])])})),1):t._e()],1):t._e(),a.userSecrets?e("b-card",{attrs:{title:"Secrets","border-variant":"primary"}},[a.userSecrets?e("b-tabs",t._l(a.userSecrets,(function(a,s){return e("b-tab",{key:s,attrs:{title:a.name}},[e("div",{staticClass:"form-row form-group"},[e("label",{staticClass:"col-2 col-form-label"},[t._v(" Value "),e("v-icon",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.top",value:a.description,expression:"parameter.description",modifiers:{hover:!0,top:!0}}],staticClass:"mr-1",attrs:{name:"info-circle"}})],1),e("div",{staticClass:"col"},[e("b-form-input",{attrs:{id:"secrets",placeholder:a.placeholder},model:{value:a.value,callback:function(e){t.$set(a,"value",e)},expression:"parameter.value"}})],1)])])})),1):t._e()],1):t._e(),t.userZelid?e("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"mb-2",attrs:{variant:"outline-warning","aria-label":"View Additional Details"},on:{click:function(e){t.componentParamsModalShowing=!0}}},[t._v(" View Additional Details ")]):t._e()],1)})),1)],1),t.appData.enabled?e("div",{staticClass:"text-center mt-auto"},[t.userZelid?e("b-button",{staticClass:"mt-2 text-center",staticStyle:{position:"absolute",bottom:"20px",left:"0",right:"0","margin-left":"3.0rem","margin-right":"3.0rem"},attrs:{variant:"outline-success","aria-label":"Launch Marketplace App"},on:{click:t.checkFluxSpecificationsAndFormatMessage}},[t._v(" Start Launching Marketplace Application ")]):e("h4",[t._v(" Please login using your Flux ID to deploy Marketplace Apps ")])],1):e("div",{staticClass:"text-center"},[e("h4",[t._v(" This Application is temporarily disabled ")])])],1)],1),e("b-col",{staticClass:"d-lg-flex d-none",attrs:{xxl:"3",xl:"4",lg:"4"}},[e("br"),e("b-card",{attrs:{"no-body":""}},[e("b-card-header",{staticClass:"app-requirements-header"},[e("h4",{staticClass:"mb-0"},[t._v(" CPU ")])]),e("vue-apex-charts",{staticClass:"mt-1",attrs:{type:"radialBar",height:"200",options:t.cpuRadialBar,series:t.cpu.series}})],1),e("b-card",{attrs:{"no-body":""}},[e("b-card-header",{staticClass:"app-requirements-header"},[e("h4",{staticClass:"mb-0"},[t._v(" RAM ")])]),e("vue-apex-charts",{staticClass:"mt-1",attrs:{type:"radialBar",height:"200",options:t.ramRadialBar,series:t.ram.series}})],1),e("b-card",{attrs:{"no-body":""}},[e("b-card-header",{staticClass:"app-requirements-header"},[e("h4",{staticClass:"mb-0"},[t._v(" HDD ")])]),e("vue-apex-charts",{staticClass:"mt-1",attrs:{type:"radialBar",height:"200",options:t.hddRadialBar,series:t.hdd.series}})],1)],1),e("b-row",{staticClass:"d-lg-none d-sm-none d-md-flex d-none"},[e("b-col",{attrs:{md:"4"}},[e("b-card",{attrs:{"no-body":""}},[e("b-card-header",{staticClass:"app-requirements-header"},[e("h5",{staticClass:"mb-0"},[t._v(" CPU ")])]),e("vue-apex-charts",{staticClass:"mt-1",attrs:{type:"radialBar",height:"200",options:t.cpuRadialBar,series:t.cpu.series}})],1)],1),e("b-col",{attrs:{md:"4"}},[e("b-card",{attrs:{"no-body":""}},[e("b-card-header",{staticClass:"app-requirements-header"},[e("h5",{staticClass:"mb-0"},[t._v(" RAM ")])]),e("vue-apex-charts",{staticClass:"mt-1",attrs:{type:"radialBar",height:"200",options:t.ramRadialBar,series:t.ram.series}})],1)],1),e("b-col",{attrs:{md:"4"}},[e("b-card",{attrs:{"no-body":""}},[e("b-card-header",{staticClass:"app-requirements-header"},[e("h5",{staticClass:"mb-0"},[t._v(" HDD ")])]),e("vue-apex-charts",{staticClass:"mt-1",attrs:{type:"radialBar",height:"200",options:t.hddRadialBar,series:t.hdd.series}})],1)],1)],1),e("b-row",{staticClass:"d-md-none"},[e("b-col",{attrs:{cols:"4"}},[e("b-card",{attrs:{"no-body":""}},[e("b-card-header",{staticClass:"app-requirements-header"},[e("h6",{staticClass:"mb-0"},[t._v(" CPU ")])]),e("vue-apex-charts",{staticClass:"mt-3",attrs:{type:"radialBar",height:"130",options:t.cpuRadialBarSmall,series:t.cpu.series}})],1)],1),e("b-col",{attrs:{cols:"4"}},[e("b-card",{attrs:{"no-body":""}},[e("b-card-header",{staticClass:"app-requirements-header"},[e("h6",{staticClass:"mb-0"},[t._v(" RAM ")])]),e("vue-apex-charts",{staticClass:"mt-3",attrs:{type:"radialBar",height:"130",options:t.ramRadialBarSmall,series:t.ram.series}})],1)],1),e("b-col",{attrs:{cols:"4"}},[e("b-card",{attrs:{"no-body":""}},[e("b-card-header",{staticClass:"app-requirements-header"},[e("h6",{staticClass:"mb-0"},[t._v(" HDD ")])]),e("vue-apex-charts",{staticClass:"mt-3",attrs:{type:"radialBar",height:"130",options:t.hddRadialBarSmall,series:t.hdd.series}})],1)],1)],1)],1)],1),e("b-modal",{attrs:{title:"Extra Component Parameters",size:"lg",centered:"","button-size":"sm","ok-only":"","ok-title":"Close"},model:{value:t.componentParamsModalShowing,callback:function(e){t.componentParamsModalShowing=e},expression:"componentParamsModalShowing"}},[t.currentComponent?e("div",[e("list-entry",{attrs:{title:"Static Parameters",data:t.currentComponent.environmentParameters.join(", ")}}),e("list-entry",{attrs:{title:"Custom Domains",data:t.currentComponent.domains.join(", ")||"none"}}),e("list-entry",{attrs:{title:"Automatic Domains",data:t.constructAutomaticDomains(t.appData.name).join(", ")}}),e("list-entry",{attrs:{title:"Ports",data:t.currentComponent.ports.join(", ")}}),e("list-entry",{attrs:{title:"Container Ports",data:t.currentComponent.containerPorts.join(", ")}}),e("list-entry",{attrs:{title:"Container Data",data:t.currentComponent.containerData}}),e("list-entry",{attrs:{title:"Commands",data:t.currentComponent.commands.length>0?t.currentComponent.commands.join(", "):"none"}})],1):t._e()]),e("b-modal",{attrs:{title:"Finish Launching App?",size:"sm",centered:"","button-size":"sm","ok-title":"Yes","cancel-title":"No"},on:{ok:function(e){t.confirmLaunchDialogCloseShowing=!1,t.launchModalShowing=!1}},model:{value:t.confirmLaunchDialogCloseShowing,callback:function(e){t.confirmLaunchDialogCloseShowing=e},expression:"confirmLaunchDialogCloseShowing"}},[e("h5",{staticClass:"text-center"},[t._v(" Please ensure that you have paid for your app, or saved the payment details for later. ")]),e("br"),e("h5",{staticClass:"text-center"},[t._v(" Close the Launch App dialog? ")])]),e("b-modal",{attrs:{title:"Launching Marketplace App",size:"xlg",centered:"","no-close-on-backdrop":"","no-close-on-esc":"","hide-footer":""},on:{ok:t.confirmLaunchDialogCancel},model:{value:t.launchModalShowing,callback:function(e){t.launchModalShowing=e},expression:"launchModalShowing"}},[e("form-wizard",{ref:"formWizard",staticClass:"wizard-vertical mb-3",attrs:{color:t.tierColors.cumulus,title:null,subtitle:null,layout:"vertical","back-button-text":"Previous"},on:{"on-complete":function(e){return t.confirmLaunchDialogFinish()}},scopedSlots:t._u([{key:"footer",fn:function(a){return[e("div",[a.activeTabIndex>0?e("b-button",{staticClass:"wizard-footer-left",attrs:{type:"button",variant:"outline-dark"},on:{click:function(e){return t.$refs.formWizard.prevTab()}}},[t._v(" Previous ")]):t._e(),e("b-button",{staticClass:"wizard-footer-right",attrs:{type:"button",variant:"outline-dark"},on:{click:function(e){return t.$refs.formWizard.nextTab()}}},[t._v(" "+t._s(a.isLastStep?"Done":"Next")+" ")])],1)]}}])},[e("tab-content",{attrs:{title:"Check Registration"}},[e("b-card",{staticClass:"text-center wizard-card",attrs:{title:"Registration Message"}},[e("div",{staticClass:"text-wrap"},[e("b-form-textarea",{attrs:{id:"registrationmessage",rows:"6",readonly:""},model:{value:t.dataToSign,callback:function(e){t.dataToSign=e},expression:"dataToSign"}}),e("b-icon",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip",value:t.tooltipText,expression:"tooltipText"}],ref:"copyButtonRef",staticClass:"clipboard icon",attrs:{scale:"1.5",icon:"clipboard"},on:{click:t.copyMessageToSign}})],1)])],1),e("tab-content",{attrs:{title:"Sign App Message","before-change":()=>null!==t.signature}},[e("div",{staticClass:"mx-auto",staticStyle:{width:"600px"}},[e("h4",{staticClass:"text-center"},[t._v(" Sign Message with same method you have used for login ")]),e("div",{staticClass:"loginRow mx-auto",staticStyle:{width:"400px"}},[e("a",{on:{click:t.initiateSignWS}},[e("img",{staticClass:"walletIcon",attrs:{src:a(96358),alt:"Flux ID",height:"100%",width:"100%"}})]),e("a",{on:{click:t.initSSP}},[e("img",{staticClass:"walletIcon",attrs:{src:t.isDark?a(56070):a(58962),alt:"SSP",height:"100%",width:"100%"}})])]),e("div",{staticClass:"loginRow mx-auto",staticStyle:{width:"400px"}},[e("a",{on:{click:t.initWalletConnect}},[e("img",{staticClass:"walletIcon",attrs:{src:a(47622),alt:"WalletConnect",height:"100%",width:"100%"}})]),e("a",{on:{click:t.initMetamask}},[e("img",{staticClass:"walletIcon",attrs:{src:a(28125),alt:"Metamask",height:"100%",width:"100%"}})])]),e("div",{staticClass:"loginRow"},[e("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"my-1",staticStyle:{width:"250px"},attrs:{variant:"primary","aria-label":"Flux Single Sign On"},on:{click:t.initSignFluxSSO}},[t._v(" Flux Single Sign On (SSO) ")])],1)]),e("b-form-input",{staticClass:"mb-2",attrs:{id:"signature"},model:{value:t.signature,callback:function(e){t.signature=e},expression:"signature"}})],1),e("tab-content",{attrs:{title:"Register Application","before-change":()=>null!==t.registrationHash}},[e("b-card",{staticClass:"text-center wizard-card",attrs:{title:"Register Application"}},[e("b-card-text",[e("b-icon",{staticClass:"mr-1",attrs:{scale:"1.4",icon:"cash-coin"}}),t._v("Price:  "),e("b",[t._v(t._s(t.appPricePerDeploymentUSD)+" USD + VAT")])],1),e("div",[e("b-button",{staticClass:"my-1",staticStyle:{width:"250px"},attrs:{variant:t.loading||t.completed?"outline-success":"success","aria-label":"Register",disabled:t.loading||t.completed},on:{click:t.register}},[t.loading?[e("b-spinner",{attrs:{small:""}}),t._v(" Processing... ")]:t.completed?[t._v(" Done! ")]:[t._v(" Register ")]],2)],1),t.registrationHash?e("b-card-text",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip"}],staticClass:"mt-1",attrs:{title:t.registrationHash}},[t._v(" Registration Hash Received ")]):t._e()],1)],1),e("tab-content",{attrs:{title:"Send Payment"}},[e("b-row",{staticClass:"match-height"},[e("b-col",{attrs:{xs:"6",lg:"8"}},[e("b-card",{staticClass:"text-center wizard-card",attrs:{title:"Send Payment"}},[e("div",{staticClass:"d-flex justify-content-center align-items-center mb-1"},[e("b-icon",{staticClass:"mr-1",attrs:{scale:"1.4",icon:"cash-coin"}}),t._v("Price:  "),e("b",[t._v(t._s(t.appPricePerDeploymentUSD)+" USD + VAT")])],1),e("b-card-text",[e("b",[t._v("Everything is ready, your payment option links, both for fiat and flux, are valid for the next 30 minutes.")])]),e("br"),t._v(" The application will be subscribed until "),e("b",[t._v(t._s(new Date(t.subscribedTill).toLocaleString("en-GB",t.timeoptions.shortDate)))]),e("br"),t._v(" To finish the application registration, pay your application with your prefered payment method or check below how to pay with Flux crypto currency. ")],1)],1),e("b-col",{attrs:{xs:"6",lg:"4"}},[e("b-card",{staticClass:"text-center wizard-card",attrs:{title:"Pay with Stripe/PayPal"}},[e("div",{staticClass:"loginRow"},[t.stripeEnabled?e("a",{on:{click:t.initStripePay}},[e("img",{staticClass:"stripePay",attrs:{src:a(20134),alt:"Stripe",height:"100%",width:"100%"}})]):t._e(),t.paypalEnabled?e("a",{on:{click:t.initPaypalPay}},[e("img",{staticClass:"paypalPay",attrs:{src:a(36547),alt:"PayPal",height:"100%",width:"100%"}})]):t._e(),t.paypalEnabled||t.stripeEnabled?t._e():e("span",[t._v("Fiat Gateways Unavailable.")])]),t.checkoutLoading?e("div",{attrs:{className:"loginRow"}},[e("b-spinner",{attrs:{variant:"primary"}}),e("div",{staticClass:"text-center"},[t._v(" Checkout Loading ... ")])],1):t._e(),t.fiatCheckoutURL?e("div",{attrs:{className:"loginRow"}},[e("a",{attrs:{href:t.fiatCheckoutURL,target:"_blank",rel:"noopener noreferrer"}},[t._v(" Click here for checkout if not redirected ")])]):t._e()])],1)],1),t.applicationPriceFluxError?t._e():e("b-row",{staticClass:"match-height"},[e("b-col",{attrs:{xs:"6",lg:"8"}},[e("b-card",{staticClass:"text-center wizard-card"},[e("b-card-text",[t._v(" To pay in FLUX, please make a transaction of "),e("b",[t._v(t._s(t.appPricePerDeployment)+" FLUX")]),t._v(" to address"),e("br"),e("b",[t._v("'"+t._s(t.deploymentAddress)+"'")]),e("br"),t._v(" with the following message"),e("br"),e("b",[t._v("'"+t._s(t.registrationHash)+"'")])])],1)],1),e("b-col",{attrs:{xs:"6",lg:"4"}},[e("b-card",[t.applicationPriceFluxDiscount>0?e("h4",[e("kbd",{staticClass:"d-flex justify-content-center bg-primary mb-1"},[t._v("Discount - "+t._s(t.applicationPriceFluxDiscount)+"%")])]):t._e(),e("h4",{staticClass:"text-center mb-2"},[t._v(" Pay with Zelcore/SSP ")]),e("div",{staticClass:"loginRow"},[e("a",{attrs:{href:`zel:?action=pay&coin=zelcash&address=${t.deploymentAddress}&amount=${t.appPricePerDeployment}&message=${t.registrationHash}&icon=https%3A%2F%2Fraw.githubusercontent.com%2Frunonflux%2Fflux%2Fmaster%2Fflux_banner.png`}},[e("img",{staticClass:"walletIcon",attrs:{src:a(96358),alt:"Flux ID",height:"100%",width:"100%"}})]),e("a",{on:{click:t.initSSPpay}},[e("img",{staticClass:"walletIcon",attrs:{src:t.isDark?a(56070):a(58962),alt:"SSP",height:"100%",width:"100%"}})])])])],1)],1)],1)],1)],1)],1)},F=[],R=(a(70560),a(15193)),T=a(86855),z=a(87047),D=a(64206),A=a(50725),P=a(333),$=a(31220),I=a(26253),M=a(58887),L=a(51015),Z=a(8051),B=a(78959),N=a(46709),E=a(82653),O=a(43028),j=a(5870),q=a(85498),V=a(67166),U=a.n(V),W=a(68934),Y=a(51748),J=a(43672),H=a(72918),G=a(38511),K=a(94145),X=a(37307),Q=a(52829),tt=a(5449),et=a(65864),at=a(48764)["lW"];const st="df787edc6839c7de49d527bba9199eaa",it={projectId:st,metadata:{name:"Flux Cloud",description:"Flux, Your Gateway to a Decentralized World",url:"https://home.runonflux.io",icons:["https://home.runonflux.io/img/logo.png"]}},rt={enableDebug:!0},ot=new K.MetaMaskSDK(rt);let nt;const lt=a(80129),ct=a(97218),dt=a(58971),ut=a(79650),pt=a(63005),mt={components:{BButton:R.T,BCard:T._,BCardHeader:z.p,BCardText:D.j,BCol:A.l,BFormInput:r.e,BFormTextarea:P.y,BModal:$.N,BRow:I.T,BTabs:M.M,BTab:L.L,BFormSelect:Z.K,BFormSelectOption:B.c,BFormGroup:N.x,FormWizard:q.FormWizard,TabContent:q.TabContent,ToastificationContent:S.Z,ListEntry:Y.Z,VuePerfectScrollbar:w(),VueApexCharts:U()},directives:{Ripple:b.Z,"b-modal":E.T,"b-toggle":O.M,"b-tooltip":j.o},props:{appData:{type:Object,required:!0},zelid:{type:String,required:!1,default:""},tier:{type:String,required:!0,default:""}},setup(t){const e=(0,g.getCurrentInstance)().proxy,a=(0,x.useToast)(),{skin:s}=(0,X.Z)(),i=(0,g.computed)((()=>"dark"===s.value)),r=t=>"Open"===t?"warning":"Passed"===t?"success":"Unpaid"===t?"info":t&&t.startsWith("Rejected")?"danger":"primary",o=(t,e,s="InfoIcon")=>{a({component:S.Z,props:{title:e,icon:s,variant:t}})},n=(0,g.ref)("");n.value=t.tier;const l=(0,g.ref)("");l.value=t.zelid;const c=(0,g.ref)(!1),d=(0,g.ref)(!1),u=(0,g.ref)(!1),p=(0,g.ref)(!1),m=(0,g.ref)(!1),v=(0,g.ref)(null),h=(0,g.ref)(1),f=(0,g.ref)("fluxappregister"),b=(0,g.ref)(null),C=(0,g.ref)(null),w=(0,g.ref)(null),y=(0,g.ref)(null),k=(0,g.ref)(null),_=(0,g.ref)(0),F=(0,g.ref)(0),R=(0,g.ref)(null),T=(0,g.ref)(!1),z=(0,g.ref)(!1),D=(0,g.ref)(""),A=(0,g.ref)(null),P=(0,g.ref)(!0),$=(0,g.ref)(!0),I=(0,g.ref)(null),M=(0,g.ref)([]),L=(0,g.ref)([]),Z=(0,g.ref)(null),B=(0,g.ref)(null),N=(0,g.ref)(null),E=(0,g.ref)("Copy to clipboard"),O=(0,g.ref)(null),j=(0,g.computed)((()=>e.$store.state.flux.config)),q=(0,g.computed)((()=>k.value+36e5)),V=(0,g.computed)((()=>k.value+2592e6+36e5)),U=()=>{const{protocol:t,hostname:a,port:s}=window.location;let i="";i+=t,i+="//";const r=/[A-Za-z]/g;if(a.split("-")[4]){const t=a.split("-"),e=t[4].split("."),s=+e[0]+1;e[0]=s.toString(),e[2]="api",t[4]="",i+=t.join("-"),i+=e.join(".")}else if(a.match(r)){const t=a.split(".");t[0]="api",i+=t.join(".")}else{if("string"===typeof a&&e.$store.commit("flux/setUserIp",a),+s>16100){const t=+s+1;e.$store.commit("flux/setFluxPort",t)}i+=a,i+=":",i+=j.value.apiPort}const o=dt.get("backendURL")||i,n=`${o}/id/providesign`;return encodeURI(n)},Y=t=>{console.log(t)},K=t=>{const e=lt.parse(t.data);"success"===e.status&&e.data&&(C.value=e.data.signature),console.log(e),console.log(t)},st=t=>{console.log(t)},rt=t=>{console.log(t)},mt=async()=>{try{const t=b.value,e=(0,tt.PR)();if(!e)return void o("warning","Not logged in as SSO. Login with SSO or use different signing method.");const a=e.auth.currentUser.accessToken,s={"Content-Type":"application/json",Authorization:`Bearer ${a}`},i=await ct.post("https://service.fluxcore.ai/api/signMessage",{message:t},{headers:s});if("success"!==i.data?.status&&i.data?.signature)return void o("warning","Failed to sign message, please try again.");C.value=i.data.signature}catch(t){o("warning","Failed to sign message, please try again.")}},gt=async()=>{if(b.value.length>1800){const t=b.value,e={publicid:Math.floor(999999999999999*Math.random()).toString(),public:t};await ct.post("https://storage.runonflux.io/v1/public",e);const a=`zel:?action=sign&message=FLUX_URL=https://storage.runonflux.io/v1/public/${e.publicid}&icon=https%3A%2F%2Fraw.githubusercontent.com%2Frunonflux%2Fflux%2Fmaster%2FzelID.svg&callback=${U()}`;window.location.href=a}else window.location.href=`zel:?action=sign&message=${b.value}&icon=https%3A%2F%2Fraw.githubusercontent.com%2Frunonflux%2Fflux%2Fmaster%2FzelID.svg&callback=${U()}`;const{protocol:t,hostname:a,port:s}=window.location;let i="";i+=t,i+="//";const r=/[A-Za-z]/g;if(a.split("-")[4]){const t=a.split("-"),e=t[4].split("."),s=+e[0]+1;e[0]=s.toString(),e[2]="api",t[4]="",i+=t.join("-"),i+=e.join(".")}else if(a.match(r)){const t=a.split(".");t[0]="api",i+=t.join(".")}else{if("string"===typeof a&&e.$store.commit("flux/setUserIp",a),+s>16100){const t=+s+1;e.$store.commit("flux/setFluxPort",t)}i+=a,i+=":",i+=j.value.apiPort}let o=dt.get("backendURL")||i;o=o.replace("https://","wss://"),o=o.replace("http://","ws://");const n=l.value+k.value;console.log(`signatureMessage: ${n}`);const c=`${o}/ws/sign/${n}`,d=new WebSocket(c);I.value=d,d.onopen=t=>{rt(t)},d.onclose=t=>{st(t)},d.onmessage=t=>{K(t)},d.onerror=t=>{Y(t)}},vt=async()=>{try{await ot.init(),nt=ot.getProvider()}catch(t){console.log(t)}};vt();const ht=async(t,e)=>{try{const a=`0x${at.from(t,"utf8").toString("hex")}`,s=await nt.request({method:"personal_sign",params:[a,e]});console.log(s),C.value=s}catch(a){console.error(a),o("danger",a.message)}},ft=async()=>{try{if(!nt)return void o("danger","Metamask not detected");let t;if(nt&&!nt.selectedAddress){const e=await nt.request({method:"eth_requestAccounts",params:[]});console.log(e),t=e[0]}else t=nt.selectedAddress;ht(b.value,t)}catch(t){o("danger",t.message)}},bt=async()=>{try{if(!window.ssp)return void o("danger","SSP Wallet not installed");const t=await window.ssp.request("sspwid_sign_message",{message:b.value});if("ERROR"===t.status)throw new Error(t.data||t.result);C.value=t.signature}catch(t){o("danger",t.message)}},xt=async()=>{try{if(!window.ssp)return void o("danger","SSP Wallet not installed");const t={message:this.registrationHash,amount:(+this.appPricePerDeployment||0).toString(),address:this.deploymentAddress,chain:"flux"},e=await window.ssp.request("pay",t);if("ERROR"===e.status)throw new Error(e.data||e.result);o("success",`${e.data}: ${e.txid}`)}catch(t){o("danger",t.message)}},St=t=>{const e=window.open(t,"_blank");e.focus()},Ct=async()=>{try{R.value=null,T.value=!0;const e=A.value,{name:a}=N.value,s=F.value,{description:i}=N.value,r=localStorage.getItem("zelidauth"),n=lt.parse(r),l={zelid:n.zelid,signature:n.signature,loginPhrase:n.loginPhrase,details:{name:a,description:i,hash:e,price:s,productName:a,success_url:"https://home.runonflux.io/successcheckout",cancel_url:"https://home.runonflux.io",kpi:{origin:"FluxOS",marketplace:!0,registration:!0}}},c=await ct.post(`${et.M}/api/v1/stripe/checkout/create`,l);if("error"===c.data.status)return o("error","Failed to create stripe checkout"),void(T.value=!1);R.value=c.data.data,T.value=!1;try{St(c.data.data)}catch(t){console.log(t),o("error","Failed to open Stripe checkout, pop-up blocked?")}}catch(t){console.log(t),o("error","Failed to create stripe checkout"),T.value=!1}},wt=async()=>{try{R.value=null,T.value=!0;const e=A.value,{name:a}=N.value,s=F.value,{description:i}=N.value;let r=null,n=await ct.get("https://api.ipify.org?format=json").catch((()=>{console.log("Error geting clientIp from api.ipify.org from")}));n&&n.data&&n.data.ip?r=n.data.ip:(n=await ct.get("https://ipinfo.io").catch((()=>{console.log("Error geting clientIp from ipinfo.io from")})),n&&n.data&&n.data.ip?r=n.data.ip:(n=await ct.get("https://api.ip2location.io").catch((()=>{console.log("Error geting clientIp from api.ip2location.io from")})),n&&n.data&&n.data.ip&&(r=n.data.ip)));const l=localStorage.getItem("zelidauth"),c=lt.parse(l),d={zelid:c.zelid,signature:c.signature,loginPhrase:c.loginPhrase,details:{clientIP:r,name:a,description:i,hash:e,price:s,productName:a,return_url:"home.runonflux.io/successcheckout",cancel_url:"home.runonflux.io",kpi:{origin:"FluxOS",marketplace:!0,registration:!0}}},u=await ct.post(`${et.M}/api/v1/paypal/checkout/create`,d);if("error"===u.data.status)return o("error","Failed to create PayPal checkout"),void(T.value=!1);R.value=u.data.data,T.value=!1;try{St(u.data.data)}catch(t){console.log(t),o("error","Failed to open PayPal checkout, pop-up blocked?")}}catch(t){console.log(t),o("error","Failed to create PayPal checkout"),T.value=!1}},yt=async t=>{console.log(t);const e=await w.value.request({topic:t.topic,chainId:"eip155:1",request:{method:"personal_sign",params:[b.value,t.namespaces.eip155.accounts[0].split(":")[2]]}});console.log(e),C.value=e},kt=async()=>{try{const t=await G.ZP.init(it);w.value=t;const e=t.session.getAll().length-1,a=t.session.getAll()[e];if(!a)throw new Error("WalletConnect session expired. Please log into FluxOS again");yt(a)}catch(t){console.error(t),o("danger",t.message)}},_t={maxScrollbarLength:150},Ft=t=>t.compose.reduce(((t,e)=>t+e.cpu),0),Rt=t=>t.compose.reduce(((t,e)=>t+e.ram),0),Tt=t=>t.compose.reduce(((t,e)=>t+e.hdd),0),zt=(0,g.ref)({series:[]}),Dt=(0,g.ref)({series:[]}),At=(0,g.ref)({series:[]}),Pt=async t=>{try{const e=t.split(":")[0],a=Number(t.split(":")[1]||16127),{hostname:s}=window.location,i=/[A-Za-z]/g;let r=!0;s.match(i)&&(r=!1);let n=`https://${e.replace(/\./g,"-")}-${a}.node.api.runonflux.io/flux/pgp`;r&&(n=`http://${e}:${a}/flux/pgp`);const l=await ct.get(n);if("error"!==l.data.status){const t=l.data.data;return t}return o("danger",l.data.data.message||l.data.data),null}catch(e){return console.log(e),null}},$t=async()=>{const t=sessionStorage.getItem("flux_enterprise_nodes");if(t)return JSON.parse(t);try{const t=await J.Z.getEnterpriseNodes();if("error"!==t.data.status)return sessionStorage.setItem("flux_enterprise_nodes",JSON.stringify(t.data.data)),t.data.data;o("danger",t.data.data.message||t.data.data)}catch(e){console.log(e)}return[]},It=async(t,e)=>{try{const a=e.map((t=>t.nodekey)),s=await Promise.all(a.map((t=>ut.readKey({armoredKey:t})))),i=await ut.createMessage({text:t.replace("\\“",'\\"')}),r=await ut.encrypt({message:i,encryptionKeys:s});return r}catch(a){return o("danger","Data encryption failed"),null}},Mt=async()=>{const{instances:e}=t.appData,a=+e+3,s=+e+Math.ceil(Math.max(7,.15*+e)),i=await $t(),r=[],o=[],n=i.filter((t=>t.enterprisePoints>0&&t.score>1e3));for(let t=0;te.pubkey===n[t].pubkey)).length,i=r.filter((e=>e.pubkey===n[t].pubkey)).length;if(e+i=s)break}if(r.length{const e=o.find((e=>e.ip===t.ip));if(!e){o.push(t);const e=L.value.find((e=>e.nodeip===t.ip));if(!e){const e=await Pt(t.ip);if(e){const a={nodeip:t.ip,nodekey:e},s=L.value.find((e=>e.nodeip===t.ip));s||L.value.push(a)}}}})),console.log(o),console.log(L.value),o.map((t=>t.ip))};(0,g.watch)((()=>t.appData),(()=>{null!==I.value&&(I.value.close(),I.value=null),zt.value={series:[Ft(t.appData)/15*100]},Dt.value={series:[Rt(t.appData)/59e3*100]},At.value={series:[Tt(t.appData)/820*100]},t.appData.compose.forEach((t=>{const e=t.userEnvironmentParameters||[];e.forEach((e=>{Object.prototype.hasOwnProperty.call(e,"port")&&(e.value=t.ports[e.port])}))})),v.value=t.appData.compose[0],t.appData.isAutoEnterprise&&Mt().then((t=>{M.value=t,console.log("auto selected nodes",t)})).catch(console.log)}));const Lt=t=>`${t}${Date.now()}`,Zt=t=>{if(!l.value)return["No Flux ID"];const e=Lt(t),a=e.toLowerCase(),s=[`${a}.app.runonflux.io`];return s},Bt=(0,g.ref)(null),Nt=async()=>{const t=await J.Z.appsDeploymentInformation(),{data:e}=t.data;"success"===t.data.status?Bt.value=e.address:o("danger",t.data.data.message||t.data.data)};Nt();const Et=async()=>{try{c.value=!1,d.value=!1;const e=Lt(t.appData.name),a={version:t.appData.version,name:e,description:t.appData.description,owner:l.value,instances:t.appData.instances,compose:[]};if(t.appData.version>=5&&(a.contacts=[],a.geolocation=[],Z.value&&a.geolocation.push(Z.value),B.value)){const t=[B.value],e=Math.floor(999999999999999*Math.random()).toString(),s={contactsid:e,contacts:t},i=await ct.post("https://storage.runonflux.io/v1/contacts",s);if("error"===i.data.status)throw new Error(i.data.message||i.data);o("success","Successful upload of Contact Parameter to Flux Storage"),a.contacts=[`F_S_CONTACTS=https://storage.runonflux.io/v1/contacts/${e}`]}if(t.appData.version>=6&&(a.expire=t.appData.expire||22e3),t.appData.version>=7)if(a.staticip=t.appData.staticip,t.appData.isAutoEnterprise){if(0===M.value.length){const t=await Mt();M.value=t}a.nodes=M.value}else a.nodes=t.appData.nodes||[];for(let l=0;l{s.push(`${t.name}=${t.value}`)})),e.envFluxStorage){const t=Math.floor(999999999999999*Math.random()).toString(),e={envid:t,env:s},a=await ct.post("https://storage.runonflux.io/v1/env",e);if("error"===a.data.status)throw new Error(a.data.message||a.data);o("success","Successful upload of Environment Parameters to Flux Storage"),s=[`F_S_ENV=https://storage.runonflux.io/v1/env/${t}`]}let{ports:r}=e;if(e.portSpecs){r=[];for(let t=0;t=7){n.secrets=t.appData.secrets||"",n.repoauth=t.appData.repoauth||"";const a=[],s=e.userSecrets||[];if(s.forEach((t=>{a.push(`${t.name}=${t.value}`)})),a.length>0){const t=await It(JSON.stringify(a),L.value);if(!t)throw new Error("Secrets failed to encrypt");n.secrets=t}}a.compose.push(n)}N.value=a;const s=await J.Z.appRegistrationVerificaiton(a);if(console.log(s),"error"===s.data.status)throw new Error(s.data.data.message||s.data.data);const i=s.data.data;_.value=0,F.value=0,z.value=!1,D.value="";const r=JSON.parse(JSON.stringify(i));r.priceUSD=t.appData.priceUSD;const n=await J.Z.appPriceUSDandFlux(r);if("error"===n.data.status)throw new Error(n.data.data.message||n.data.data);F.value=+n.data.data.usd,Number.isNaN(+n.data.data.fluxDiscount)?(z.value=!0,o("danger","Not possible to complete payment with Flux crypto currency")):(_.value=+n.data.data.flux,D.value=+n.data.data.fluxDiscount),null!==I.value&&(I.value.close(),I.value=null),k.value=Date.now(),y.value=i,b.value=`${f.value}${h.value}${JSON.stringify(i)}${Date.now()}`,A.value=null,C.value=null,u.value=!0}catch(e){console.log(e),o("danger",e.message||e)}},Ot={height:100,type:"radialBar",sparkline:{enabled:!0},dropShadow:{enabled:!0,blur:3,left:1,top:1,opacity:.1}},jt={height:200,type:"radialBar",sparkline:{enabled:!0},dropShadow:{enabled:!0,blur:3,left:1,top:1,opacity:.1}},qt={chart:jt,colors:[W.j.primary],labels:["Cores"],plotOptions:{radialBar:{offsetY:-10,startAngle:-150,endAngle:150,hollow:{size:"77%"},track:{background:W.j.dark,strokeWidth:"50%"},dataLabels:{name:{offsetY:-15,color:W.j.secondary,fontSize:"1.5rem"},value:{formatter:t=>(15*parseFloat(t)/100).toFixed(1),offsetY:10,color:W.j.success,fontSize:"2.86rem",fontWeight:"300"}}}},fill:{type:"gradient",gradient:{shade:"dark",type:"horizontal",shadeIntensity:.5,gradientToColors:[W.j.success],inverseColors:!0,opacityFrom:1,opacityTo:1,stops:[0,100]}},stroke:{lineCap:"round"},grid:{padding:{bottom:30}}},Vt={chart:Ot,colors:[W.j.success],labels:["Cores"],plotOptions:{radialBar:{offsetY:-10,startAngle:-150,endAngle:150,hollow:{size:"70%"},track:{background:W.j.success,strokeWidth:"50%"},dataLabels:{name:{offsetY:-15,color:W.j.secondary,fontSize:"1.2rem"},value:{formatter:t=>(15*parseFloat(t)/100).toFixed(1),offsetY:10,color:W.j.success,fontSize:"2rem",fontWeight:"300"}}}},fill:{type:"gradient",gradient:{shade:"dark",type:"horizontal",shadeIntensity:.5,gradientToColors:[W.j.success],inverseColors:!0,opacityFrom:1,opacityTo:1,stops:[0,100]}},stroke:{lineCap:"round"},grid:{padding:{bottom:10}}},Ut={chart:jt,colors:[W.j.primary],labels:["MB"],plotOptions:{radialBar:{offsetY:-10,startAngle:-150,endAngle:150,hollow:{size:"77%"},track:{background:W.j.dark,strokeWidth:"50%"},dataLabels:{name:{offsetY:-15,color:W.j.secondary,fontSize:"1.5rem"},value:{formatter:t=>(59e3*parseFloat(t)/100).toFixed(0),offsetY:10,color:W.j.success,fontSize:"2.86rem",fontWeight:"300"}}}},fill:{type:"gradient",gradient:{shade:"dark",type:"horizontal",shadeIntensity:.5,gradientToColors:[W.j.success],inverseColors:!0,opacityFrom:1,opacityTo:1,stops:[0,100]}},stroke:{lineCap:"round"},grid:{padding:{bottom:30}}},Wt={chart:Ot,colors:[W.j.primary],labels:["MB"],plotOptions:{radialBar:{offsetY:-10,startAngle:-150,endAngle:150,hollow:{size:"70%"},track:{background:W.j.dark,strokeWidth:"50%"},dataLabels:{name:{offsetY:-15,color:W.j.secondary,fontSize:"1.2rem"},value:{formatter:t=>(59e3*parseFloat(t)/100).toFixed(0),offsetY:10,color:W.j.success,fontSize:"2rem",fontWeight:"300"}}}},fill:{type:"gradient",gradient:{shade:"dark",type:"horizontal",shadeIntensity:.5,gradientToColors:[W.j.success],inverseColors:!0,opacityFrom:1,opacityTo:1,stops:[0,100]}},stroke:{lineCap:"round"},grid:{padding:{bottom:10}}},Yt={chart:jt,colors:[W.j.primary],labels:["GB"],plotOptions:{radialBar:{offsetY:-10,startAngle:-150,endAngle:150,hollow:{size:"77%"},track:{background:W.j.dark,strokeWidth:"50%"},dataLabels:{name:{offsetY:-15,color:W.j.secondary,fontSize:"1.5rem"},value:{formatter:t=>(820*parseFloat(t)/100).toFixed(0),offsetY:10,color:W.j.success,fontSize:"2.86rem",fontWeight:"300"}}}},fill:{type:"gradient",gradient:{shade:"dark",type:"horizontal",shadeIntensity:.5,gradientToColors:[W.j.success],inverseColors:!0,opacityFrom:1,opacityTo:1,stops:[0,100]}},stroke:{lineCap:"round"},grid:{padding:{bottom:30}}},Jt={chart:Ot,colors:[W.j.primary],labels:["GB"],plotOptions:{radialBar:{offsetY:-10,startAngle:-150,endAngle:150,hollow:{size:"70%"},track:{background:W.j.dark,strokeWidth:"50%"},dataLabels:{name:{offsetY:-15,color:W.j.secondary,fontSize:"1.2rem"},value:{formatter:t=>(820*parseFloat(t)/100).toFixed(0),offsetY:10,color:W.j.success,fontSize:"2rem",fontWeight:"300"}}}},fill:{type:"gradient",gradient:{shade:"dark",type:"horizontal",shadeIntensity:.5,gradientToColors:[W.j.success],inverseColors:!0,opacityFrom:1,opacityTo:1,stops:[0,100]}},stroke:{lineCap:"round"},grid:{padding:{bottom:10}}},Ht=async()=>{const{copy:t}=(0,Q.VPI)({source:b.value,legacy:!0});t(),E.value="Copied!",setTimeout((async()=>{await(0,g.nextTick)();const t=O.value;t&&(t.blur(),E.value="")}),1e3),setTimeout((()=>{E.value="Copy to clipboard"}),1500)},Gt=async()=>{const t=localStorage.getItem("zelidauth"),e={type:f.value,version:h.value,appSpecification:y.value,timestamp:k.value,signature:C.value};o("info","Propagating message accross Flux network..."),c.value=!0;const a=await J.Z.registerApp(t,e).catch((t=>{c.value=!1,o("danger",t.message||t)}));c.value=!1,console.log(a),"success"===a.data.status?(d.value=!0,A.value=a.data.data,o("success",a.data.data.message||a.data.data)):o("danger",a.data.data.message||a.data.data);const s=await(0,et.Z)();s&&(P.value=s.stripe,$.value=s.paypal)},Kt=e=>{v.value=t.appData.compose[e]},Xt=()=>{m.value=!0},Qt=t=>{null!==A.value&&(t.preventDefault(),m.value=!0)};return{loading:c,completed:d,perfectScrollbarSettings:_t,resolveTagVariant:r,resolveCpu:Ft,resolveRam:Rt,resolveHdd:Tt,constructAutomaticDomains:Zt,checkFluxSpecificationsAndFormatMessage:Et,timeoptions:pt,cpuRadialBar:qt,cpuRadialBarSmall:Vt,cpu:zt,ramRadialBar:Ut,ramRadialBarSmall:Wt,ram:Dt,hddRadialBar:Yt,hddRadialBarSmall:Jt,hdd:At,userZelid:l,dataToSign:b,selectedGeolocation:Z,contact:B,signClient:w,signature:C,appPricePerDeployment:_,appPricePerDeploymentUSD:F,applicationPriceFluxDiscount:D,applicationPriceFluxError:z,fiatCheckoutURL:R,checkoutLoading:T,registrationHash:A,deploymentAddress:Bt,stripeEnabled:P,paypalEnabled:$,validTill:q,subscribedTill:V,register:Gt,callbackValue:U,initiateSignWS:gt,initMetamask:ft,initSSP:bt,initSSPpay:xt,initPaypalPay:wt,initStripePay:Ct,openSite:St,initSignFluxSSO:mt,initWalletConnect:kt,onSessionConnect:yt,siwe:ht,copyMessageToSign:Ht,launchModalShowing:u,componentParamsModalShowing:p,confirmLaunchDialogCloseShowing:m,confirmLaunchDialogFinish:Xt,confirmLaunchDialogCancel:Qt,currentComponent:v,componentSelected:Kt,tierColors:H.Z,skin:s,isDark:i,tooltipText:E,copyButtonRef:O}}},gt=mt;var vt=a(1001),ht=(0,vt.Z)(gt,_,F,!1,null,"cde97464",null);const ft=ht.exports;var bt=function(){var t=this,e=t._self._c;return e("div",{staticClass:"app-details"},[e("div",{staticClass:"app-detail-header"},[e("div",{staticClass:"app-header-left d-flex align-items-center flex-grow-1"},[e("span",{staticClass:"go-back mr-1"},[e("feather-icon",{staticClass:"align-bottom",attrs:{icon:t.$store.state.appConfig.isRTL?"ChevronRightIcon":"ChevronLeftIcon",size:"20"},on:{click:function(e){return t.$emit("close-sharednode-view")}}})],1),e("h4",{staticClass:"app-name mb-0 flex-grow-1"},[t._v(" Titan Shared Nodes (Beta) ")]),e("a",{attrs:{href:"https://fluxofficial.medium.com/flux-titan-nodes-guide-useful-staking-e527278b1a2a",target:"_blank",rel:"noopener noreferrer"}},[t._v(" Titan Guide ")])])]),e("vue-perfect-scrollbar",{staticClass:"marketplace-app-list scroll-area",attrs:{settings:t.perfectScrollbarSettings}},[e("b-overlay",{attrs:{variant:"transparent",opacity:"0.95",blur:"5px","no-center":"",show:t.showOverlay()},scopedSlots:t._u([{key:"overlay",fn:function(){return[e("div",{staticClass:"mt-5"},[e("div",{staticClass:"text-center"},[t.titanConfig&&t.titanConfig.maintenanceMessage?e("b-card",{staticClass:"mx-auto",staticStyle:{"max-width":"50rem"},attrs:{"border-variant":"primary",title:"Titan Maintenance"}},[e("h1",[t._v(" "+t._s(t.titanConfig.maintenanceMessage)+" ")])]):e("b-spinner",{staticStyle:{width:"10rem",height:"10rem"},attrs:{type:"border",variant:"danger"}})],1)])]},proxy:!0}])},[e("b-card",{attrs:{"bg-variant":"transparent"}},[e("b-row",{staticClass:"match-height d-xxl-flex d-none"},[e("b-col",{attrs:{xl:"4"}},[e("b-card",{attrs:{"border-variant":"primary","no-body":""}},[e("b-card-title",{staticClass:"text-white text-uppercase shared-node-info-title"},[t._v(" Active Nodes ")]),e("b-card-body",{staticClass:"shared-node-info-body"},[e("h1",{staticClass:"active-node-value"},[t._v(" "+t._s(t.nodes.length)+" ")]),e("div",{staticClass:"d-flex"},[e("h4",{staticClass:"flex-grow-1"},[t._v(" Total: "+t._s(t.totalCollateral.toLocaleString())+" Flux ")]),e("b-avatar",{attrs:{size:"24",variant:"primary",button:""},on:{click:function(e){return t.showNodeInfoDialog()}}},[e("v-icon",{attrs:{scale:"0.9",name:"info"}})],1)],1)])],1)],1),e("b-col",{attrs:{xl:"4"}},[e("b-card",{attrs:{"border-variant":"primary","no-body":""}},[e("b-card-title",{staticClass:"text-white text-uppercase shared-node-info-title"},[t._v(" Titan Stats ")]),e("b-card-body",{staticClass:"shared-node-info-body"},[e("div",{staticClass:"d-flex flex-column"},[e("div",{staticClass:"d-flex flex-row"},[e("h5",{staticClass:"flex-grow-1"},[t._v(" My Flux Total ")]),e("h4",[t._v(" "+t._s(t.myStakes?t.toFixedLocaleString(t.myStakes.reduce(((t,e)=>t+e.collateral),0),0):0)+" ")])]),e("div",{staticClass:"d-flex flex-row"},[e("h5",{staticClass:"flex-grow-1"},[t._v(" Titan Flux Total ")]),e("h4",[t._v(" "+t._s(t.titanStats?t.toFixedLocaleString(t.titanStats.total):"...")+" ")])]),e("div",{staticClass:"d-flex flex-row"},[e("h5",{staticClass:"flex-grow-1"},[t._v(" Current Supply ")]),e("h4",[t._v(" "+t._s(t.titanStats?t.toFixedLocaleString(t.titanStats.currentsupply):"...")+" ")])]),e("div",{staticClass:"d-flex flex-row"},[e("h5",{staticClass:"flex-grow-1"},[t._v(" Max Supply ")]),e("h4",[t._v(" "+t._s(t.titanStats?t.toFixedLocaleString(t.titanStats.maxsupply):"...")+" ")])]),e("div",[e("hr")]),e("div",{staticClass:"d-flex flex-row"},[e("div",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.bottom",value:t.tooMuchStaked?t.titanConfig?t.titanConfig.stakeDisabledMessage:t.defaultStakeDisabledMessage:"",expression:"tooMuchStaked ? (titanConfig ? titanConfig.stakeDisabledMessage : defaultStakeDisabledMessage) : ''",modifiers:{hover:!0,bottom:!0}}],staticClass:"d-flex flex-row flex-grow-1"},[t.userZelid?e("b-button",{staticClass:"flex-grow-1 .btn-relief-primary",attrs:{variant:"gradient-primary",disabled:t.tooMuchStaked},on:{click:function(e){return t.showStakeDialog(!1)}}},[t._v(" Activate Titan ")]):t._e()],1)])])])],1)],1),e("b-col",{attrs:{xl:"4"}},[e("b-card",{attrs:{"border-variant":"primary","no-body":""}},[e("b-card-title",{staticClass:"text-white text-uppercase shared-node-info-title"},[t._v(" Estimated % Lockup in Flux ")]),t.titanConfig?e("b-card-body",{staticClass:"shared-node-info-body"},[t._l(t.titanConfig.lockups,(function(a){return e("div",{key:a.time,staticClass:"lockup"},[e("div",{staticClass:"d-flex flex-row"},[e("h2",{staticClass:"flex-grow-1"},[t._v(" "+t._s(a.name)+" ")]),e("h1",[t._v(" ~"+t._s((100*a.apr).toFixed(2))+"% ")])])])})),e("div",{staticClass:"float-right"},[e("b-avatar",{attrs:{size:"24",variant:"primary",button:""},on:{click:function(e){return t.showAPRInfoDialog()}}},[e("v-icon",{attrs:{scale:"0.9",name:"info"}})],1)],1)],2):t._e()],1)],1)],1),e("b-row",{staticClass:"match-height d-xxl-none d-xl-flex d-lg-flex d-md-flex d-sm-flex"},[e("b-col",{attrs:{sm:"12"}},[e("b-card",{attrs:{"border-variant":"primary","no-body":""}},[e("b-card-title",{staticClass:"text-white text-uppercase",staticStyle:{"padding-left":"1.5rem","padding-top":"1rem","margin-bottom":"0"}},[t._v(" Active Nodes ")]),e("b-row",{staticClass:"match-height"},[e("b-col",{attrs:{cols:"6"}},[e("h1",{staticClass:"active-node-value-xl"},[t._v(" "+t._s(t.nodes.length)+" ")])]),e("b-col",{attrs:{cols:"6"}},[e("h4",{staticClass:"text-center",staticStyle:{"padding-top":"2rem"}},[t._v(" Total: "+t._s(t.totalCollateral.toLocaleString())+" Flux ")]),e("h4",{staticClass:"text-center"},[e("b-avatar",{attrs:{size:"24",variant:"primary",button:""},on:{click:function(e){return t.showNodeInfoDialog()}}},[e("v-icon",{attrs:{scale:"0.9",name:"info"}})],1)],1)])],1)],1)],1),e("b-col",{attrs:{sm:"12"}},[e("b-row",{staticClass:"match-height"},[e("b-col",{attrs:{sm:"6"}},[e("b-card",{attrs:{"border-variant":"primary","no-body":""}},[e("b-card-title",{staticClass:"text-white text-uppercase shared-node-info-title-xl"},[t._v(" Titan Stats ")]),e("b-card-body",{staticClass:"shared-node-info-body-xl"},[e("div",{staticClass:"d-flex flex-column"},[e("div",{staticClass:"d-flex flex-row"},[e("h5",{staticClass:"flex-grow-1"},[t._v(" My Flux Total ")]),e("h4",[t._v(" "+t._s(t.myStakes?t.toFixedLocaleString(t.myStakes.reduce(((t,e)=>t+e.collateral),0),0):0)+" ")])]),e("div",{staticClass:"d-flex flex-row"},[e("h5",{staticClass:"flex-grow-1"},[t._v(" Titan Flux Total ")]),e("h4",[t._v(" "+t._s(t.titanStats?t.toFixedLocaleString(t.titanStats.total):"...")+" ")])]),e("div",{staticClass:"d-flex flex-row"},[e("h5",{staticClass:"flex-grow-1"},[t._v(" Current Supply ")]),e("h4",[t._v(" "+t._s(t.titanStats?t.toFixedLocaleString(t.titanStats.currentsupply):"...")+" ")])]),e("div",{staticClass:"d-flex flex-row"},[e("h5",{staticClass:"flex-grow-1"},[t._v(" Max Supply ")]),e("h4",[t._v(" "+t._s(t.titanStats?t.toFixedLocaleString(t.titanStats.maxsupply):"...")+" ")])]),e("div",[e("hr")]),e("div",{staticClass:"d-flex flex-row"},[e("div",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.bottom",value:t.tooMuchStaked?t.titanConfig?t.titanConfig.stakeDisabledMessage:t.defaultStakeDisabledMessage:"",expression:"tooMuchStaked ? (titanConfig ? titanConfig.stakeDisabledMessage : defaultStakeDisabledMessage) : ''",modifiers:{hover:!0,bottom:!0}}],staticClass:"d-flex flex-row flex-grow-1"},[t.userZelid?e("b-button",{staticClass:"flex-grow-1 .btn-relief-primary",attrs:{variant:"gradient-primary",disabled:t.tooMuchStaked},on:{click:function(e){return t.showStakeDialog(!1)}}},[t._v(" Activate Titan ")]):t._e()],1)])])])],1)],1),e("b-col",{attrs:{sm:"6"}},[e("b-card",{attrs:{"border-variant":"primary","no-body":""}},[e("b-card-title",{staticClass:"text-white text-uppercase shared-node-info-title-xl"},[t._v(" Lockup Period APR ")]),t.titanConfig?e("b-card-body",{staticClass:"shared-node-info-body-xl"},[t._l(t.titanConfig.lockups,(function(a){return e("div",{key:a.time,staticClass:"lockup"},[e("div",{staticClass:"d-flex flex-row"},[e("h4",{staticClass:"flex-grow-1"},[t._v(" "+t._s(a.name)+" ")]),e("h4",[t._v(" ~"+t._s((100*a.apr).toFixed(2))+"% ")])])])})),e("div",{staticClass:"float-right"},[e("b-avatar",{attrs:{size:"24",variant:"primary",button:""},on:{click:function(e){return t.showAPRInfoDialog()}}},[e("v-icon",{attrs:{scale:"0.9",name:"info"}})],1)],1)],2):t._e()],1)],1)],1)],1)],1)],1),t.userZelid?e("b-row",{},[e("b-col",{staticClass:"d-xxl-none d-xl-flex d-lg-flex d-md-flex d-sm-flex"},[e("b-card",{staticClass:"flex-grow-1",attrs:{"no-body":""}},[e("b-card-title",{staticClass:"stakes-title"},[t._v(" Redeem Flux ")]),e("b-card-body",[e("div",{staticClass:"d-flex flex-row"},[e("h5",{staticClass:"flex-grow-1"},[t._v(" Paid: ")]),e("h4",[t._v(" "+t._s(t.calculatePaidRewards())+" Flux ")])]),e("div",{staticClass:"d-flex flex-row"},[e("h5",{staticClass:"flex-grow-1"},[t._v(" Available: ")]),e("h4",[t._v(" "+t._s(t.toFixedLocaleString(t.totalReward,2))+" Flux ")])]),e("div",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.bottom",value:t.totalReward<=(t.titanConfig?t.titanConfig.redeemFee:0)?"Available balance is less than the redeem fee":"",expression:"totalReward <= (titanConfig ? titanConfig.redeemFee : 0) ? 'Available balance is less than the redeem fee' : ''",modifiers:{hover:!0,bottom:!0}}],staticClass:"float-right",staticStyle:{display:"inline-block"}},[t.totalReward>t.minStakeAmount?e("b-button",{staticClass:"mt-2 mr-1",attrs:{disabled:t.totalReward>=t.totalCollateral-t.titanStats.total,variant:"danger",size:"sm",pill:""},on:{click:function(e){return t.showStakeDialog(!0)}}},[t._v(" Re-invest Funds ")]):t._e(),e("b-button",{staticClass:"float-right mt-2",attrs:{id:"redeemButton",variant:"danger",size:"sm",pill:"",disabled:t.totalReward<=(t.titanConfig?t.titanConfig.redeemFee:0)},on:{click:function(e){return t.showRedeemDialog()}}},[t._v(" Redeem ")])],1)])],1)],1),e("b-col",{attrs:{xxl:"9"}},[e("b-card",{staticClass:"sharednodes-container",attrs:{"no-body":""}},[e("b-card-body",[e("b-tabs",[e("b-tab",{attrs:{active:"",title:"Active"}},[e("ul",{staticClass:"marketplace-media-list"},t._l(t.myStakes,(function(a){return e("b-media",{key:a.uuid,attrs:{tag:"li","no-body":""},on:{click:function(e){return t.showActiveStakeInfoDialog(a)}}},[e("b-media-body",{staticClass:"app-media-body",staticStyle:{overflow:"inherit"}},[e("div",{staticClass:"d-flex flex-row row"},[-1===a.confirmations?e("b-avatar",{staticClass:"node-status mt-auto mb-auto",attrs:{size:"48",variant:"danger",button:""},on:{click:[function(e){return t.showPaymentDetailsDialog(a)},function(t){t.stopPropagation()}]}},[e("v-icon",{attrs:{scale:"1.75",name:"hourglass-half"}})],1):t.titanConfig&&a.confirmations>=t.titanConfig.confirms?e("b-avatar",{staticClass:"node-status mt-auto mb-auto",attrs:{size:"48",variant:"light-success"}},[e("v-icon",{attrs:{scale:"1.75",name:"check"}})],1):e("b-avatar",{staticClass:"node-status mt-auto mb-auto",attrs:{size:"48",variant:"light-warning"}},[t._v(" "+t._s(a.confirmations)+"/"+t._s(t.titanConfig?t.titanConfig.confirms:0)+" ")]),e("div",{staticClass:"d-flex flex-column seat-column col",staticStyle:{"flex-grow":"0.8"}},[e("h3",{staticClass:"mr-auto ml-auto mt-auto mb-auto"},[t._v(" "+t._s(a.collateral.toLocaleString())+" Flux ")])]),e("div",{staticClass:"d-flex flex-column seat-column col"},[e("h4",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.top",value:new Date(1e3*a.timestamp).toLocaleString(t.timeoptions),expression:"new Date(stake.timestamp * 1000).toLocaleString(timeoptions)",modifiers:{hover:!0,top:!0}}],staticClass:"mr-auto ml-auto text-center"},[t._v(" Start Date: "+t._s(new Date(1e3*a.timestamp).toLocaleDateString())+" ")]),e("h5",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.top",value:new Date(1e3*a.expiry).toLocaleString(t.timeoptions),expression:"new Date(stake.expiry * 1000).toLocaleString(timeoptions)",modifiers:{hover:!0,top:!0}}],staticClass:"mr-auto ml-auto text-center"},[t._v(" End Date: "+t._s(new Date(1e3*a.expiry).toLocaleDateString())+" ")])]),e("div",{staticClass:"d-flex flex-column seat-column col"},[e("h4",{staticClass:"mr-auto ml-auto"},[t._v(" Paid: "+t._s(t.toFixedLocaleString(a.paid,2))+" Flux ")]),e("h5",{staticClass:"mr-auto ml-auto"},[t._v(" Pending: "+t._s(t.toFixedLocaleString(a.reward,2))+" Flux ")])]),e("div",{staticClass:"d-flex flex-column seat-column col"},[e("h4",{staticClass:"mr-auto ml-auto text-center"},[t._v(" Monthly Flux ")]),t.titanConfig?e("h5",{staticClass:"mr-auto ml-auto"},[t._v(" ~"+t._s(t.toFixedLocaleString(t.calcMonthlyReward(a),2))+" Flux "),a.autoreinvest?e("v-icon",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.top",value:"Stake will auto-reinvest",expression:"'Stake will auto-reinvest'",modifiers:{hover:!0,top:!0}}],attrs:{name:"sync"}}):t._e()],1):e("h5",{staticClass:"mr-auto ml-auto"},[t._v(" ... Flux ")])])],1),a.message?e("div",[e("div",{domProps:{innerHTML:t._s(a.message)}})]):t._e()])],1)})),1)]),t.myExpiredStakes.length>0?e("b-tab",{attrs:{title:"Expired"}},[e("ul",{staticClass:"marketplace-media-list"},t._l(t.myExpiredStakes,(function(a){return e("b-media",{key:a.uuid,attrs:{tag:"li","no-body":""}},[e("b-media-body",{staticClass:"app-media-body",staticStyle:{overflow:"inherit"}},[e("div",{staticClass:"d-flex flex-row row"},[e("b-avatar",{staticClass:"node-status mt-auto mb-auto",attrs:{size:"48",variant:"light-warning"}},[e("v-icon",{attrs:{scale:"1.75",name:"calendar-times"}})],1),e("div",{staticClass:"d-flex flex-column seat-column col",staticStyle:{"flex-grow":"0.8"}},[e("h3",{staticClass:"mr-auto ml-auto mt-auto mb-auto"},[t._v(" "+t._s(a.collateral.toLocaleString())+" Flux ")])]),e("div",{staticClass:"d-flex flex-column seat-column col"},[e("h4",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.top",value:new Date(1e3*a.timestamp).toLocaleString(t.timeoptions),expression:"new Date(stake.timestamp * 1000).toLocaleString(timeoptions)",modifiers:{hover:!0,top:!0}}],staticClass:"mr-auto ml-auto"},[t._v(" Start Date: "+t._s(new Date(1e3*a.timestamp).toLocaleDateString())+" ")]),e("h5",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.top",value:new Date(1e3*a.expiry).toLocaleString(t.timeoptions),expression:"new Date(stake.expiry * 1000).toLocaleString(timeoptions)",modifiers:{hover:!0,top:!0}}],staticClass:"mr-auto ml-auto"},[t._v(" End Date: "+t._s(new Date(1e3*a.expiry).toLocaleDateString())+" ")])]),e("div",{staticClass:"d-flex flex-column seat-column col"},[e("h4",{staticClass:"mr-auto ml-auto"},[t._v(" Paid: "+t._s(5===a.state?t.toFixedLocaleString(a.paid-a.collateral,2):t.toFixedLocaleString(a.paid,2))+" Flux ")]),e("h5",{staticClass:"mr-auto ml-auto"},[t._v(" Pending: "+t._s(t.toFixedLocaleString(a.reward,2))+" Flux ")])]),e("div",{staticClass:"d-flex"},[e("b-button",{staticClass:"float-right mt-1 mb-1",staticStyle:{width:"100px"},attrs:{variant:a.state>=5?"outline-secondary":"danger",size:"sm",disabled:a.state>=5||t.totalReward>=t.totalCollateral-t.titanStats.total,pill:""},on:{click:function(e){return t.showReinvestDialog(a)}}},[t._v(" "+t._s(a.state>=5?"Complete":"Reinvest")+" ")])],1)],1)])],1)})),1)]):t._e(),e("b-tab",{attrs:{title:"Payments"}},[e("ul",{staticClass:"marketplace-media-list"},[e("b-table",{staticClass:"payments-table",attrs:{striped:"",hover:"",responsive:"",items:t.myPayments,fields:t.paymentFields,"show-empty":"","empty-text":"No Payments"},scopedSlots:t._u([{key:"cell(timestamp)",fn:function(e){return[t._v(" "+t._s(new Date(e.item.timestamp).toLocaleString(t.timeoptions))+" ")]}},{key:"cell(total)",fn:function(a){return[e("p",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.right",value:`Amount = ${t.toFixedLocaleString(a.item.total,2)} Flux - ${a.item.fee} Flux redeem fee`,expression:"`Amount = ${toFixedLocaleString(data.item.total, 2)} Flux - ${data.item.fee} Flux redeem fee`",modifiers:{hover:!0,right:!0}}],staticStyle:{"margin-bottom":"0"}},[t._v(" "+t._s(t.toFixedLocaleString(a.item.total-a.item.fee,2))+" Flux ")])]}},{key:"cell(address)",fn:function(a){return[e("a",{attrs:{href:`https://explorer.runonflux.io/address/${a.item.address}`,target:"_blank",rel:"noopener noreferrer"}},[t._v(" "+t._s(a.item.address)+" ")])]}},{key:"cell(txid)",fn:function(a){return[a.item.txid?e("a",{attrs:{href:`https://explorer.runonflux.io/tx/${a.item.txid}`,target:"_blank",rel:"noopener noreferrer"}},[t._v(" View on Explorer ")]):e("h5",[t._v(" "+t._s(a.item.state||"Processing")+" ")])]}}])})],1)])],1)],1)],1)],1),e("b-col",{staticClass:"d-xxl-flex d-xl-none d-lg-none d-md-none d-sm-none",attrs:{xxl:"3"}},[e("b-card",{staticClass:"flex-grow-1",attrs:{"no-body":""}},[e("b-card-title",{staticClass:"stakes-title"},[t._v(" Redeem Flux ")]),e("b-card-body",[e("div",{staticClass:"d-flex flex-row"},[e("h5",{staticClass:"flex-grow-1"},[t._v(" Paid: ")]),e("h4",[t._v(" "+t._s(t.calculatePaidRewards())+" Flux ")])]),e("div",{staticClass:"d-flex flex-row"},[e("h5",{staticClass:"flex-grow-1"},[t._v(" Available: ")]),e("h4",[t._v(" "+t._s(t.toFixedLocaleString(t.totalReward,2))+" Flux ")])]),e("div",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.bottom",value:t.totalReward<=(t.titanConfig?t.titanConfig.minimumRedeem:50)?`Available balance is less than the minimum redeem amount (${t.titanConfig?t.titanConfig.minimumRedeem:50} Flux)`:"",expression:"totalReward <= (titanConfig ? titanConfig.minimumRedeem : 50) ? `Available balance is less than the minimum redeem amount (${(titanConfig ? titanConfig.minimumRedeem : 50)} Flux)` : ''",modifiers:{hover:!0,bottom:!0}}],staticClass:"float-right",staticStyle:{display:"inline-block"}},[t.totalReward>t.minStakeAmount?e("b-button",{staticClass:"mt-2 mr-1",attrs:{disabled:t.totalReward>=t.totalCollateral-t.titanStats.total,variant:"danger",size:"sm",pill:""},on:{click:function(e){return t.showStakeDialog(!0)}}},[t._v(" Re-invest Funds ")]):t._e(),e("b-button",{staticClass:"float-right mt-2",attrs:{id:"redeemButton",variant:"danger",size:"sm",pill:"",disabled:t.totalReward<=(t.titanConfig?t.titanConfig.redeemFee:0)||t.totalReward<=(t.titanConfig?t.titanConfig.minimumRedeem:50)},on:{click:function(e){return t.showRedeemDialog()}}},[t._v(" Redeem ")])],1)])],1)],1)],1):e("b-card",{attrs:{title:"My Active Flux"}},[e("h5",[t._v(" Please login using your Flux ID to view your active Flux ")])])],1)],1),e("b-modal",{attrs:{title:"Titan Nodes",size:"lg",centered:"","button-size":"sm","ok-only":""},on:{ok:()=>t.nodeModalShowing=!1},model:{value:t.nodeModalShowing,callback:function(e){t.nodeModalShowing=e},expression:"nodeModalShowing"}},t._l(t.nodes,(function(a){return e("b-card",{key:a.uuid,attrs:{title:a.name}},[e("b-row",[e("b-col",[e("h5",[t._v(" Location: "+t._s(a.location)+" ")])]),e("b-col",[e("h5",[t._v(" Collateral: "+t._s(t.toFixedLocaleString(a.collateral,0))+" ")])])],1),e("b-row",[e("b-col",[e("h5",[t._v(" Created: "+t._s(new Date(a.created).toLocaleDateString())+" ")])]),e("b-col",[e("b-button",{attrs:{pill:"",size:"sm",variant:"primary"},on:{click:function(e){return t.visitNode(a)}}},[t._v(" Visit ")])],1)],1)],1)})),1),e("b-modal",{attrs:{title:"Lockup APR",size:"md",centered:"","button-size":"sm","ok-only":""},on:{ok:()=>t.aprModalShowing=!1},model:{value:t.aprModalShowing,callback:function(e){t.aprModalShowing=e},expression:"aprModalShowing"}},[e("b-card",{attrs:{title:"APR Calculations"}},[e("p",{staticClass:"text-center"},[t._v(" The APR for a Titan Shared Nodes lockup is dependent on the number of active Stratus nodes on the Flux network and the current block reward. ")]),e("p",{staticClass:"text-center"},[t._v(" APR is calculated using this basic formula: ")]),e("p",{staticClass:"text-center"},[t._v(" Per block reward (11.25) x Blocks per day (720) x 365 /"),e("br"),t._v("  (Number of Stratus nodes * 40,000) ")]),e("p",{staticClass:"text-center"},[e("br"),e("b-avatar",{attrs:{size:"24",variant:"warning",button:""}},[e("v-icon",{attrs:{scale:"0.9",name:"info"}})],1),t._v(" APR does not mean the actual or predicted returns in fiat currency or Flux. ")],1)])],1),e("b-modal",{attrs:{title:"Redeem Rewards",size:"lg",centered:"","button-size":"sm","ok-only":"","no-close-on-backdrop":"","no-close-on-esc":"","ok-title":"Cancel"},on:{ok:function(e){t.redeemModalShowing=!1,t.getMyPayments(!0)}},model:{value:t.redeemModalShowing,callback:function(e){t.redeemModalShowing=e},expression:"redeemModalShowing"}},[e("form-wizard",{staticClass:"wizard-vertical mb-3",attrs:{color:t.tierColors.cumulus,title:null,subtitle:null,layout:"vertical","back-button-text":"Previous"},on:{"on-complete":function(e){return t.confirmRedeemDialogFinish()}}},[e("tab-content",{attrs:{title:"Redeem Amount"}},[e("b-card",{staticClass:"text-center wizard-card",attrs:{title:"Redeem Amount"}},[e("h4",[t._v(" Available: "+t._s(t.toFixedLocaleString(t.totalReward,2))+" Flux ")]),e("h4",{staticStyle:{"margin-top":"10px"}},[t._v(" You will receive ")]),e("h3",[t._v(" "+t._s(t.toFixedLocaleString(t.totalReward-t.calculateRedeemFee(),2))+" Flux ")]),e("h6",[t._v(" ("),e("span",{staticClass:"text-warning"},[t._v("Redeem Fee:")]),t.titanConfig&&t.titanConfig.maxRedeemFee?e("span",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.bottom",value:`Fee of ${t.titanConfig.redeemFee}% of your rewards, capped at ${t.titanConfig.maxRedeemFee} Flux`,expression:"`Fee of ${titanConfig.redeemFee}% of your rewards, capped at ${titanConfig.maxRedeemFee} Flux`",modifiers:{hover:!0,bottom:!0}}],staticClass:"text-danger"},[t._v(" "+t._s(t.toFixedLocaleString(t.calculateRedeemFee(),8))+" Flux ")]):e("span",{staticClass:"text-danger"},[t._v(" "+t._s(t.titanConfig?t.titanConfig.redeemFee:"...")+" Flux ")]),t._v(") ")])])],1),e("tab-content",{attrs:{title:"Redeem Address","before-change":()=>t.checkRedeemAddress()}},[e("b-card",{staticClass:"text-center wizard-card",attrs:{title:"Choose Redeem Address"}},[e("b-form-select",{attrs:{options:t.redeemAddresses,disabled:t.sendingRequest||t.requestSent||t.requestFailed},scopedSlots:t._u([{key:"first",fn:function(){return[e("b-form-select-option",{attrs:{value:null,disabled:""}},[t._v(" -- Please select an address -- ")])]},proxy:!0}]),model:{value:t.redeemAddress,callback:function(e){t.redeemAddress=e},expression:"redeemAddress"}})],1)],1),e("tab-content",{attrs:{title:"Sign Request","before-change":()=>null!==t.signature}},[e("b-card",{staticClass:"text-center wizard-card",attrs:{title:"Sign Redeem Request with Zelcore"}},[e("a",{attrs:{href:t.sendingRequest||t.requestSent||t.requestFailed?"#":`zel:?action=sign&message=${t.dataToSign}&icon=https%3A%2F%2Fraw.githubusercontent.com%2Frunonflux%2Fflux%2Fmaster%2FzelID.svg&callback=${t.callbackValue()}`},on:{click:t.initiateSignWS}},[e("img",{staticClass:"zelidLogin mb-2",attrs:{src:a(96358),alt:"Flux ID",height:"100%",width:"100%"}})]),e("b-form-input",{staticClass:"mb-1",attrs:{id:"data",disabled:!0},model:{value:t.dataToSign,callback:function(e){t.dataToSign=e},expression:"dataToSign"}}),e("b-form-input",{attrs:{id:"signature",disabled:t.sendingRequest||t.requestSent||t.requestFailed},model:{value:t.signature,callback:function(e){t.signature=e},expression:"signature"}})],1)],1),e("tab-content",{attrs:{title:"Request Redeem","before-change":()=>!0===t.requestSent}},[e("b-card",{staticClass:"text-center wizard-card",attrs:{title:"Submit Redeem Request"}},[e("div",{staticClass:"mt-3 mb-auto"},[e("b-button",{attrs:{size:"lg",disabled:t.sendingRequest||t.requestSent,variant:"warning"},on:{click:t.requestRedeem}},[t._v(" Submit Request ")]),t.requestSent?e("h4",{staticClass:"mt-3 text-success"},[t._v(" Redeem request has been received and will be processed within 24 hours ")]):t._e(),t.requestFailed?e("h4",{staticClass:"mt-3 text-danger"},[t._v(" Redeem request failed ")]):t._e()],1)])],1)],1)],1),e("b-modal",{attrs:{title:"Pending Payment",size:"md",centered:"","button-size":"sm","ok-only":"","ok-title":"OK"},on:{ok:function(e){t.paymentDetailsDialogShowing=!1}},model:{value:t.paymentDetailsDialogShowing,callback:function(e){t.paymentDetailsDialogShowing=e},expression:"paymentDetailsDialogShowing"}},[t.selectedStake?e("b-card",{staticClass:"text-center payment-details-card",attrs:{title:"Send Funds"}},[e("b-card-text",[t._v(" To complete activation, send "),e("span",{staticClass:"text-success"},[t._v(t._s(t.toFixedLocaleString(t.selectedStake.collateral)))]),t._v(" FLUX to address"),e("br"),e("h5",{staticClass:"text-wrap ml-auto mr-auto text-warning mt-1",staticStyle:{width:"25rem"}},[t._v(" "+t._s(t.titanConfig.fundingAddress)+" ")]),t._v(" with the following message"),e("br"),e("h5",{staticClass:"text-wrap ml-auto mr-auto text-warning mt-1",staticStyle:{width:"25rem"}},[t._v(" "+t._s(t.selectedStake.signatureHash)+" ")]),e("div",{staticClass:"d-flex flex-row mt-2"},[e("h3",{staticClass:"col text-center mt-2"},[t._v(" Pay with"),e("br"),t._v("Zelcore ")]),e("a",{staticClass:"col",attrs:{href:`zel:?action=pay&coin=zelcash&address=${t.titanConfig.fundingAddress}&amount=${t.selectedStake.collateral}&message=${t.selectedStake.signatureHash}&icon=https%3A%2F%2Fraw.githubusercontent.com%2Frunonflux%2Fflux%2Fmaster%2Fflux_banner.png`}},[e("img",{staticClass:"zelidLogin",attrs:{src:a(96358),alt:"Flux ID",height:"100%",width:"100%"}})])]),e("h5",{staticClass:"mt-1"},[t._v(" This activation will expire if the transaction is not on the blockchain before "),e("span",{staticClass:"text-danger"},[t._v(t._s(new Date(1e3*t.selectedStake.expiry).toLocaleString()))])])])],1):t._e()],1),e("b-modal",{attrs:{title:"Cancel Activation?",size:"sm",centered:"","button-size":"sm","ok-title":"Yes","cancel-title":"No"},on:{ok:function(e){t.confirmStakeDialogCloseShowing=!1,t.stakeModalShowing=!1}},model:{value:t.confirmStakeDialogCloseShowing,callback:function(e){t.confirmStakeDialogCloseShowing=e},expression:"confirmStakeDialogCloseShowing"}},[e("h3",{staticClass:"text-center"},[t._v(" Are you sure you want to cancel activating with Titan? ")])]),e("b-modal",{attrs:{title:"Finish Activation?",size:"sm",centered:"","button-size":"sm","ok-title":"Yes","cancel-title":"No"},on:{ok:function(e){t.confirmStakeDialogFinishShowing=!1,t.stakeModalShowing=!1}},model:{value:t.confirmStakeDialogFinishShowing,callback:function(e){t.confirmStakeDialogFinishShowing=e},expression:"confirmStakeDialogFinishShowing"}},[e("h3",{staticClass:"text-center"},[t._v(" Please ensure that you have sent payment for your activation, or saved the payment details for later. ")]),e("br"),e("h4",{staticClass:"text-center"},[t._v(" Close the dialog? ")])]),e("b-modal",{attrs:{title:"Re-invest Expired",size:"lg",centered:"","no-close-on-backdrop":"","no-close-on-esc":"","button-size":"sm","ok-only":"","ok-title":"Cancel"},on:{ok:function(e){t.reinvestModalShowing=!1}},model:{value:t.reinvestModalShowing,callback:function(e){t.reinvestModalShowing=e},expression:"reinvestModalShowing"}},[e("form-wizard",{staticClass:"wizard-vertical mb-3",attrs:{color:t.tierColors.cumulus,title:null,subtitle:null,layout:"vertical","back-button-text":"Previous"},on:{"on-complete":function(e){return t.reinvestDialogFinish()}}},[e("tab-content",{attrs:{title:"Update"}},[e("b-card",{staticClass:"text-center wizard-card",attrs:{title:"Update"}},[t.selectedStake?e("div",{staticClass:"d-flex flex-column"},[e("b-form-checkbox",{staticClass:"ml-auto mr-auto",staticStyle:{float:"left"},attrs:{disabled:t.stakeRegistered||t.registeringStake||t.stakeRegisterFailed},model:{value:t.selectedStake.autoreinvest,callback:function(e){t.$set(t.selectedStake,"autoreinvest",e)},expression:"selectedStake.autoreinvest"}},[t._v(" Auto-reinvest this Flux after expiry ")]),t.titanConfig&&t.titanConfig.reinvestFee>0&&t.titanConfig.maxReinvestFee?e("div",{staticClass:"mt-2"},[e("h6",[e("span",{staticClass:"text-warning"},[t._v("Re-invest Fee:")]),e("span",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.bottom",value:`Fee of ${t.titanConfig.reinvestFee}% of your rewards, capped at ${t.titanConfig.maxReinvestFee} Flux`,expression:"`Fee of ${titanConfig.reinvestFee}% of your rewards, capped at ${titanConfig.maxReinvestFee} Flux`",modifiers:{hover:!0,bottom:!0}}],staticClass:"text-danger"},[t._v(" "+t._s(t.toFixedLocaleString(t.calculateReinvestFee(),8))+" Flux ")])])]):t._e()],1):t._e()])],1),e("tab-content",{attrs:{title:"Choose Duration","before-change":()=>t.checkReinvestDuration()}},[t.titanConfig?e("b-card",{staticClass:"text-center wizard-card",attrs:{title:"Select Lockup Period"}},t._l(t.titanConfig.lockups,(function(a,s){return e("div",{key:a.time,staticClass:"mb-1"},[e("div",{staticClass:"ml-auto mr-auto"},[e("b-button",{class:s===t.selectedLockupIndex?"selectedLockupButton":"unselectedLockupButton",style:`background-color: ${t.indexedTierColors[s]} !important;`,attrs:{disabled:t.stakeRegistered||t.registeringStake||t.stakeRegisterFailed},on:{click:function(e){return t.selectLockup(s)}}},[t._v(" "+t._s(a.name)+" - ~"+t._s((100*a.apr).toFixed(2))+"% ")])],1)])})),0):t._e()],1),e("tab-content",{attrs:{title:"Signing","before-change":()=>null!==t.signature}},[e("b-card",{staticClass:"text-center wizard-card",attrs:{title:"Sign with Zelcore"}},[e("a",{attrs:{href:t.stakeRegistered||t.registeringStake||t.stakeRegisterFailed?"#":`zel:?action=sign&message=${t.dataToSign}&icon=https%3A%2F%2Fraw.githubusercontent.com%2Frunonflux%2Fflux%2Fmaster%2FzelID.svg&callback=${t.callbackValue()}`},on:{click:t.initiateSignWS}},[e("img",{staticClass:"zelidLogin mb-2",attrs:{src:a(96358),alt:"Flux ID",height:"100%",width:"100%"}})]),e("b-form-input",{staticClass:"mb-1",attrs:{id:"data",disabled:!0},model:{value:t.dataToSign,callback:function(e){t.dataToSign=e},expression:"dataToSign"}}),e("b-form-input",{attrs:{id:"signature",disabled:t.stakeRegistered||t.registeringStake||t.stakeRegisterFailed},model:{value:t.signature,callback:function(e){t.signature=e},expression:"signature"}})],1)],1),e("tab-content",{attrs:{title:"Re-invest Flux","before-change":()=>!0===t.stakeRegistered}},[e("b-card",{staticClass:"text-center wizard-card",attrs:{title:"Re-invest Stake with Titan"}},[e("div",{staticClass:"mt-3 mb-auto"},[e("b-button",{attrs:{size:"lg",disabled:t.registeringStake||t.stakeRegistered,variant:"success"},on:{click:t.reinvestStake}},[t._v(" Re-invest Flux ")]),t.stakeRegistered?e("h4",{staticClass:"mt-3 text-success"},[t._v(" Registration received ")]):t._e(),t.stakeRegisterFailed?e("h4",{staticClass:"mt-3 text-danger"},[t._v(" Registration failed ")]):t._e()],1)])],1)],1)],1),e("b-modal",{attrs:{title:"Active Flux Details",size:"sm",centered:"","button-size":"sm","cancel-title":"Close","ok-title":"Edit"},on:{ok:t.editActiveStake},model:{value:t.activeStakeInfoModalShowing,callback:function(e){t.activeStakeInfoModalShowing=e},expression:"activeStakeInfoModalShowing"}},[t.selectedStake?e("b-card",[e("div",{staticClass:"d-flex"},[e("b-form-checkbox",{staticClass:"ml-auto mr-auto",staticStyle:{float:"left"},attrs:{disabled:""},model:{value:t.selectedStake.autoreinvest,callback:function(e){t.$set(t.selectedStake,"autoreinvest",e)},expression:"selectedStake.autoreinvest"}},[t._v(" Auto-reinvest this Flux after expiry ")])],1)]):t._e()],1),e("b-modal",{attrs:{title:"Edit Active Flux",size:"lg",centered:"","no-close-on-backdrop":"","no-close-on-esc":"","button-size":"sm","ok-only":"","ok-title":"Cancel"},on:{ok:function(e){t.editStakeModalShowing=!1}},model:{value:t.editStakeModalShowing,callback:function(e){t.editStakeModalShowing=e},expression:"editStakeModalShowing"}},[e("form-wizard",{staticClass:"wizard-vertical mb-3",attrs:{color:t.tierColors.cumulus,title:null,subtitle:null,layout:"vertical","back-button-text":"Previous"},on:{"on-complete":function(e){t.editStakeModalShowing=!1,t.getMyStakes(!0)}}},[e("tab-content",{attrs:{title:"Update"}},[e("b-card",{staticClass:"text-center wizard-card",attrs:{title:"Update"}},[t.selectedStake?e("div",{staticClass:"d-flex"},[e("b-form-checkbox",{staticClass:"ml-auto mr-auto",staticStyle:{float:"left"},attrs:{disabled:t.stakeRegistered||t.registeringStake||t.stakeRegisterFailed},model:{value:t.selectedStake.autoreinvest,callback:function(e){t.$set(t.selectedStake,"autoreinvest",e)},expression:"selectedStake.autoreinvest"}},[t._v(" Auto-reinvest this Flux after expiry ")])],1):t._e()])],1),e("tab-content",{attrs:{title:"Signing","before-change":()=>null!==t.signature}},[e("b-card",{staticClass:"text-center wizard-card",attrs:{title:"Sign with Zelcore"}},[e("a",{attrs:{href:t.stakeRegistered||t.registeringStake||t.stakeRegisterFailed?"#":`zel:?action=sign&message=${t.dataToSign}&icon=https%3A%2F%2Fraw.githubusercontent.com%2Frunonflux%2Fflux%2Fmaster%2FzelID.svg&callback=${t.callbackValue()}`},on:{click:t.initiateSignWS}},[e("img",{staticClass:"zelidLogin mb-2",attrs:{src:a(96358),alt:"Flux ID",height:"100%",width:"100%"}})]),e("b-form-input",{staticClass:"mb-1",attrs:{id:"data",disabled:!0},model:{value:t.dataToSign,callback:function(e){t.dataToSign=e},expression:"dataToSign"}}),e("b-form-input",{attrs:{id:"signature",disabled:t.stakeRegistered||t.registeringStake||t.stakeRegisterFailed},model:{value:t.signature,callback:function(e){t.signature=e},expression:"signature"}})],1)],1),e("tab-content",{attrs:{title:"Send to Titan","before-change":()=>!0===t.stakeRegistered}},[e("b-card",{staticClass:"text-center wizard-card",attrs:{title:"Send to Titan"}},[e("div",{staticClass:"mt-3 mb-auto"},[e("b-button",{attrs:{size:"lg",disabled:t.registeringStake||t.stakeRegistered,variant:"success"},on:{click:t.sendModifiedStake}},[t._v(" Send ")]),t.stakeRegistered?e("h4",{staticClass:"mt-3 text-success"},[t._v(" Edits received by Titan ")]):t._e(),t.stakeRegisterFailed?e("h4",{staticClass:"mt-3 text-danger"},[t._v(" Editing failed ")]):t._e()],1)])],1)],1)],1),e("b-modal",{attrs:{title:"Activate Titan",size:"lg",centered:"","no-close-on-backdrop":"","no-close-on-esc":"","button-size":"sm","ok-only":"","ok-title":"Cancel"},on:{ok:t.confirmStakeDialogCancel},model:{value:t.stakeModalShowing,callback:function(e){t.stakeModalShowing=e},expression:"stakeModalShowing"}},[e("form-wizard",{staticClass:"wizard-vertical mb-3",attrs:{color:t.tierColors.cumulus,title:null,subtitle:null,layout:"vertical","back-button-text":"Previous"},on:{"on-complete":function(e){return t.confirmStakeDialogFinish()}}},[e("tab-content",{attrs:{title:"Flux Amount"}},[t.reinvestingNewStake?e("b-card",{staticClass:"text-center wizard-card",attrs:{title:"Re-investing Funds"}},[e("div",[e("h5",{staticClass:"mt-3"},[t._v(" A new Titan slot will be created using your available rewards: ")]),e("h2",{staticClass:"mt-3"},[t._v(" "+t._s(t.toFixedLocaleString(t.totalReward,2))+" Flux ")]),t.titanConfig&&t.titanConfig.reinvestFee>0&&t.titanConfig.maxReinvestFee?e("div",{staticClass:"mt-2"},[e("h6",[e("span",{staticClass:"text-warning"},[t._v("Re-invest Fee:")]),e("span",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.bottom",value:`Fee of ${t.titanConfig.reinvestFee}% of your rewards, capped at ${t.titanConfig.maxReinvestFee} Flux`,expression:"`Fee of ${titanConfig.reinvestFee}% of your rewards, capped at ${titanConfig.maxReinvestFee} Flux`",modifiers:{hover:!0,bottom:!0}}],staticClass:"text-danger"},[t._v(" "+t._s(t.toFixedLocaleString(t.calculateNewStakeReinvestFee(),8))+" Flux ")])])]):t._e()])]):e("b-card",{staticClass:"text-center wizard-card",attrs:{title:"Choose Flux Amount"}},[e("div",[e("h3",{staticClass:"float-left"},[t._v(" "+t._s(t.toFixedLocaleString(t.minStakeAmount))+" ")]),e("h3",{staticClass:"float-right"},[t._v(" "+t._s(t.toFixedLocaleString(t.maxStakeAmount))+" ")])]),e("b-form-input",{attrs:{id:"stakeamount",type:"range",min:t.minStakeAmount,max:t.maxStakeAmount,step:"5",number:"",disabled:t.stakeRegistered||t.registeringStake||t.stakeRegisterFailed},model:{value:t.stakeAmount,callback:function(e){t.stakeAmount=e},expression:"stakeAmount"}}),e("b-form-spinbutton",{staticClass:"stakeAmountSpinner",attrs:{id:"stakeamount-spnner",min:t.minStakeAmount,max:t.maxStakeAmount,size:"lg","formatter-fn":t.toFixedLocaleString,disabled:t.stakeRegistered||t.registeringStake||t.stakeRegisterFailed},model:{value:t.stakeAmount,callback:function(e){t.stakeAmount=e},expression:"stakeAmount"}})],1)],1),e("tab-content",{attrs:{title:"Choose Duration","before-change":()=>t.checkDuration()}},[t.titanConfig?e("b-card",{staticClass:"text-center wizard-card",attrs:{title:"Select Lockup Period"}},[t._l(t.titanConfig.lockups,(function(a,s){return e("div",{key:a.time,staticClass:"mb-1"},[e("div",{staticClass:"ml-auto mr-auto"},[e("b-button",{class:(s===t.selectedLockupIndex?"selectedLockupButton":"unselectedLockupButton")+(t.reinvestingNewStake?"Small":""),style:`background-color: ${t.indexedTierColors[s]} !important;`,attrs:{disabled:t.stakeRegistered||t.registeringStake||t.stakeRegisterFailed},on:{click:function(e){return t.selectLockup(s)}}},[t._v(" "+t._s(a.name)+" - ~"+t._s((100*a.apr).toFixed(2))+"% ")])],1)])})),e("div",{staticClass:"d-flex"},[e("b-form-checkbox",{staticClass:"ml-auto mr-auto",staticStyle:{float:"left"},attrs:{disabled:t.stakeRegistered||t.registeringStake||t.stakeRegisterFailed},model:{value:t.autoReinvestStake,callback:function(e){t.autoReinvestStake=e},expression:"autoReinvestStake"}},[t._v(" Auto-reinvest this Flux after expiry ")])],1)],2):t._e()],1),e("tab-content",{attrs:{title:"Signing","before-change":()=>null!==t.signature}},[e("b-card",{staticClass:"text-center wizard-card",attrs:{title:"Sign with Zelcore"}},[e("a",{attrs:{href:t.stakeRegistered||t.registeringStake||t.stakeRegisterFailed?"#":`zel:?action=sign&message=${t.dataToSign}&icon=https%3A%2F%2Fraw.githubusercontent.com%2Frunonflux%2Fflux%2Fmaster%2FzelID.svg&callback=${t.callbackValue()}`},on:{click:t.initiateSignWS}},[e("img",{staticClass:"zelidLogin mb-2",attrs:{src:a(96358),alt:"Flux ID",height:"100%",width:"100%"}})]),e("b-form-input",{staticClass:"mb-1",attrs:{id:"data",disabled:!0},model:{value:t.dataToSign,callback:function(e){t.dataToSign=e},expression:"dataToSign"}}),e("b-form-input",{attrs:{id:"signature",disabled:t.stakeRegistered||t.registeringStake||t.stakeRegisterFailed},model:{value:t.signature,callback:function(e){t.signature=e},expression:"signature"}})],1)],1),e("tab-content",{attrs:{title:"Register with Titan","before-change":()=>!0===t.stakeRegistered}},[e("b-card",{staticClass:"text-center wizard-card",attrs:{title:"Register with Titan"}},[e("div",{staticClass:"mt-3 mb-auto"},[e("h5",[e("span",{staticClass:"text-danger"},[t._v("IMPORTANT:")]),t._v(" Your funds will be locked until ")]),e("h5",[e("span",{staticClass:"text-warning"},[t._v(t._s(new Date(Date.now()+1e3*t.getLockupDuration()).toLocaleString()))])]),e("h5",{staticClass:"mb-2"},[t._v(" You will not be able to withdraw your Flux until the time has passed. ")]),e("b-button",{attrs:{size:"lg",disabled:t.registeringStake||t.stakeRegistered,variant:"success"},on:{click:t.registerStake}},[t._v(" Register with Titan ")]),t.stakeRegistered?e("h4",{staticClass:"mt-3 text-success"},[t._v(" Registration received ")]):t._e(),t.stakeRegisterFailed?e("h4",{staticClass:"mt-3 text-danger"},[t._v(" Registration failed ")]):t._e()],1)])],1),t.reinvestingNewStake?t._e():e("tab-content",{attrs:{title:"Send Funds"}},[t.titanConfig&&t.signatureHash?e("div",[e("b-card",{staticClass:"text-center wizard-card",attrs:{title:"Send Funds"}},[e("b-card-text",[t._v(" To finish activation, make a transaction of "),e("span",{staticClass:"text-success"},[t._v(t._s(t.toFixedLocaleString(t.stakeAmount)))]),t._v(" FLUX to address"),e("br"),e("h5",{staticClass:"text-wrap ml-auto mr-auto text-warning",staticStyle:{width:"25rem"}},[t._v(" "+t._s(t.titanConfig.fundingAddress)+" ")]),t._v(" with the following message"),e("br")]),e("h5",{staticClass:"text-wrap ml-auto mr-auto text-warning",staticStyle:{width:"25rem"}},[t._v(" "+t._s(t.signatureHash)+" ")]),e("div",{staticClass:"d-flex flex-row mt-2"},[e("h3",{staticClass:"col text-center mt-2"},[t._v(" Pay with"),e("br"),t._v("Zelcore ")]),e("a",{staticClass:"col",attrs:{href:`zel:?action=pay&coin=zelcash&address=${t.titanConfig.fundingAddress}&amount=${t.stakeAmount}&message=${t.signatureHash}&icon=https%3A%2F%2Fraw.githubusercontent.com%2Frunonflux%2Fflux%2Fmaster%2Fflux_banner.png`}},[e("img",{staticClass:"zelidLogin",attrs:{src:a(96358),alt:"Flux ID",height:"100%",width:"100%"}})])])],1)],1):t._e()])],1)],1)],1)},xt=[],St=a(19279),Ct=a(49379),wt=a(19692),yt=a(44390),kt=a(66126),_t=a(1759),Ft=a(16521),Rt=a(87066),Tt=a(51136);const zt=a(80129),Dt=a(58971),At=a(63005),Pt={components:{BAvatar:m.SH,BButton:R.T,BCard:T._,BCardBody:St.O,BCardText:D.j,BCardTitle:Ct._,BCol:A.l,BFormCheckbox:wt.l,BFormInput:r.e,BFormSelect:Z.K,BFormSelectOption:B.c,BFormSpinbutton:yt.G,BMedia:d.P,BMediaBody:u.D,BModal:$.N,BOverlay:kt.X,BRow:I.T,BSpinner:_t.X,BTabs:M.M,BTab:L.L,BTable:Ft.h,FormWizard:q.FormWizard,TabContent:q.TabContent,ToastificationContent:S.Z,VuePerfectScrollbar:w()},directives:{Ripple:b.Z,"b-modal":E.T,"b-toggle":O.M,"b-tooltip":j.o},props:{zelid:{type:String,required:!1,default:""}},setup(t){const e=(0,g.getCurrentInstance)().proxy,a=(0,x.useToast)(),s=(t,e,s="InfoIcon")=>{a({component:S.Z,props:{title:e,icon:s,variant:t},position:"bottom-right"})},i=(0,g.ref)("");i.value=t.tier;const r=(0,g.ref)("");r.value=t.zelid;const o="https://api.titan.runonflux.io",n=(0,g.ref)(0),l=(0,g.ref)(0),c=(0,g.ref)(50),d=(0,g.ref)(50),u=(0,g.ref)(1e3),p=(0,g.ref)(0),m=(0,g.ref)(null),v=(0,g.ref)(null),h=(0,g.ref)(null),f=(0,g.ref)(null),b=(0,g.ref)(null),C=(0,g.ref)(!1),w=(0,g.ref)(!1),y=(0,g.ref)(!1),k=(0,g.computed)((()=>e.$store.state.flux.config)),_=(0,g.ref)(null),F=(0,g.ref)(!0),R=(0,g.ref)(!1),T=(0,g.ref)(!0),z=(0,g.ref)("Too much Flux has registered with Titan, please wait for more Nodes to be made available"),D=(0,g.ref)(0),A=(0,g.ref)(null),P=(0,g.ref)(null),$=(0,g.ref)(!1),I=(0,g.ref)(!1),M=(0,g.ref)(!1),L=(0,g.ref)([H.Z.cumulus,H.Z.nimbus,H.Z.stratus]),Z=()=>{const{protocol:t,hostname:a}=window.location;let s="";s+=t,s+="//";const i=/[A-Za-z]/g;if(a.split("-")[4]){const t=a.split("-"),e=t[4].split("."),i=+e[0]+1;e[0]=i.toString(),e[2]="api",t[4]="",s+=t.join("-"),s+=e.join(".")}else if(a.match(i)){const t=a.split(".");t[0]="api",s+=t.join(".")}else"string"===typeof a&&e.$store.commit("flux/setUserIp",a),s+=a,s+=":",s+=k.value.apiPort;const r=Dt.get("backendURL")||s;return r},B=()=>{const t=Z(),e=`${t}/id/providesign`;return encodeURI(e)},N=t=>{console.log(t)},E=t=>{const e=zt.parse(t.data);"success"===e.status&&e.data&&(v.value=e.data.signature),console.log(e),console.log(t)},O=t=>{console.log(t)},j=t=>{console.log(t)},q=()=>{if(C.value||y.value||w.value)return;const{protocol:t,hostname:a}=window.location;let s="";s+=t,s+="//";const i=/[A-Za-z]/g;if(a.split("-")[4]){const t=a.split("-"),e=t[4].split("."),i=+e[0]+1;e[0]=i.toString(),e[2]="api",t[4]="",s+=t.join("-"),s+=e.join(".")}else if(a.match(i)){const t=a.split(".");t[0]="api",s+=t.join(".")}else"string"===typeof a&&e.$store.commit("flux/setUserIp",a),s+=a,s+=":",s+=k.value.apiPort;let o=Dt.get("backendURL")||s;o=o.replace("https://","wss://"),o=o.replace("http://","ws://");const n=r.value+f.value;console.log(`signatureMessage: ${n}`);const l=`${o}/ws/sign/${n}`;console.log(l);const c=new WebSocket(l);b.value=c,c.onopen=t=>{j(t)},c.onclose=t=>{O(t)},c.onmessage=t=>{E(t)},c.onerror=t=>{N(t)}},V=(0,g.ref)(!1),U=(0,g.ref)(!1),W=(0,g.ref)(!1),Y=(0,g.ref)(!1),J=(0,g.ref)(!1),G=(0,g.ref)(!1),K=(0,g.ref)(!1),X=(0,g.ref)(!1),Q=(0,g.ref)(!1),tt=(0,g.ref)(!1),et={maxScrollbarLength:150},at=(0,g.ref)([]),st=(0,g.ref)(0),it=(0,g.ref)([]),rt=(0,g.ref)([]),ot=(0,g.ref)([]),nt=(0,g.ref)([{key:"timestamp",label:"Date"},{key:"total",label:"Amount"},{key:"address",label:"Address"},{key:"txid",label:"Transaction"}]),lt=(0,g.ref)(),ct=(0,g.ref)(),dt=(0,g.ref)(0),ut=(0,g.ref)(0),pt=async()=>{const t=await Rt["default"].get(`${o}/registermessage`);m.value=t.data,f.value=t.data.substring(t.data.length-13)},mt=async()=>{const t=await Rt["default"].get(`${o}/redeemmessage`);m.value=t.data,f.value=t.data.substring(t.data.length-13)},gt=async()=>{const t=await Rt["default"].get(`${o}/modifymessage`);m.value=t.data,f.value=t.data.substring(t.data.length-13)},vt=async()=>!!A.value&&(await mt(),!0),ht=async()=>{const t=await Rt["default"].get(`${o}/stats`);ct.value=t.data,T.value=st.value<=ct.value.total+lt.value.minStake},ft=(t,e,a,s)=>{const i=e*(100-t.fee)/100,r=720,o=r/s,n=30*o*i,l=n/a,c=12*l,d=(1+c/12)**12-1;return d},bt=t=>{if(0===at.value.length)return 0;const e=ft(t,11.25,4e4,dt.value),a=ft(t,4.6875,12500,ut.value),s=at.value.reduce(((t,e)=>t+(4e4===e.collateral?1:0)),0),i=at.value.reduce(((t,e)=>t+(12500===e.collateral?1:0)),0);return(e*s+a*i)/(s+i)},xt=async()=>{const t=await Rt["default"].get(`${o}/nodes`),e=[];st.value=0,t.data.forEach((t=>{const a=t;e.push(a),st.value+=a.collateral})),at.value=e.sort(((t,e)=>t.name.toLowerCase()>e.name.toLowerCase()?1:-1)),lt.value.lockups.forEach((t=>{t.apr=bt(t)}))},St=async(t=!1)=>{try{if(r.value.length>0){const e=await Rt["default"].get(`${o}/stakes/${r.value}${t?`?timestamp=${Date.now()}`:""}`);if(e.data&&"error"===e.data.status)return;const a=[],s=[],i=Date.now()/1e3;n.value=0,l.value=0,console.log(e.data),e.data.forEach((t=>{t.expiry=4&&(s.push(t),4===t.state&&(l.value+=t.reward-t.collateral)):(a.push(t),l.value+=t.reward),n.value+=t.reward})),it.value=a,rt.value=s}}catch(e){s("danger",e.message||e),console.log(e)}},Ct=async(t=!1)=>{if(r.value.length>0){const e=await Rt["default"].get(`${o}/payments/${r.value}${t?`?timestamp=${Date.now()}`:""}`);ot.value=e.data}},wt=async()=>{const t=await Tt.Z.fluxnodeCount();if("error"===t.data.status)return s({component:S.Z,props:{title:t.data.data.message||t.data.data,icon:"InfoIcon",variant:"danger"}}),0;const e=t.data.data;return e},yt=()=>!(!lt.value||!lt.value.maintenanceMode),kt=async()=>{try{const t=await wt();dt.value=t["stratus-enabled"],ut.value=t["nimbus-enabled"];const e=await Rt["default"].get(`${o}/config`);lt.value=e.data,lt.value.lockups.sort(((t,e)=>t.blocks-e.blocks)),lt.value.lockups.forEach((t=>{t.apr=bt(t)})),e.data.minStake>0&&(d.value=e.data.minStake),e.data.maxStake>0&&(u.value=e.data.maxStake),await xt(),await ht(),St(),Ct(),st.value-ct.value.total{kt()}),12e4);const _t=(t=!1)=>{lt.value&<.value.maintenanceMode||(R.value=t,V.value=!0,C.value=!1,w.value=!1,y.value=!1,c.value=d.value,p.value=0,v.value=null,h.value=null)},Ft=()=>{R.value?V.value=!1:W.value=!0,St(!0)},Pt=t=>{t.preventDefault(),U.value=!0},$t=t=>{lt.value&<.value.maintenanceMode||(_.value=JSON.parse(JSON.stringify(t)),Q.value=!0)},It=async()=>{lt.value&<.value.maintenanceMode||(Q.value=!1,await gt(),C.value=!1,w.value=!1,y.value=!1,v.value=null,h.value=null,tt.value=!0)},Mt=async()=>{y.value=!0;const t=localStorage.getItem("zelidauth"),e={stake:_.value.uuid,timestamp:f.value,signature:v.value,data:m.value,autoreinvest:_.value.autoreinvest,reinvest:!1};s("info","Sending modifications to Titan...");const a={headers:{zelidauth:t,backend:Z()}},i=await Rt["default"].post(`${o}/modifystake`,e,a).catch((t=>{console.log(t),w.value=!0,s("danger",t.message||t)}));console.log(i.data),i&&i.data&&"success"===i.data.status?(C.value=!0,s("success",i.data.message||i.data)):(w.value=!0,s("danger",(i.data.data?i.data.data.message:i.data.message)||i.data))},Lt=t=>{lt.value&<.value.maintenanceMode||(C.value=!1,w.value=!1,y.value=!1,p.value=0,v.value=null,h.value=null,_.value=JSON.parse(JSON.stringify(t)),gt(),X.value=!0)},Zt=()=>{St(!0),X.value=!1},Bt=()=>{const t=_.value.reward-_.value.collateral;let e=t*(lt.value.reinvestFee/100);return e>lt.value.maxReinvestFee&&(e=lt.value.maxReinvestFee),e},Nt=()=>{const t=l.value;let e=t*(lt.value.reinvestFee/100);return e>lt.value.maxReinvestFee&&(e=lt.value.maxReinvestFee),e},Et=()=>{if(!lt.value)return 0;if(!lt.value.maxRedeemFee)return lt.value.redeemFee;const t=l.value;let e=t*(lt.value.redeemFee/100);return e>lt.value.maxRedeemFee&&(e=lt.value.maxRedeemFee),e},Ot=t=>{p.value=t},jt=()=>{lt.value&<.value.maintenanceMode||(J.value=!0)},qt=()=>{lt.value&<.value.maintenanceMode||(G.value=!0)},Vt=()=>{if(lt.value&<.value.maintenanceMode)return;const t=[];it.value.forEach((e=>{e.address&&!t.some((t=>t.text===e.address))&&t.push({value:e.uuid,text:e.address})})),rt.value.forEach((e=>{e.address&&!t.some((t=>t.text===e.address))&&t.push({value:e.uuid,text:e.address})})),D.value=lt.value.redeemFee,A.value=null,P.value=t,m.value=null,v.value=null,M.value=!1,$.value=!1,I.value=!1,K.value=!0},Ut=()=>{lt.value&<.value.maintenanceMode||(K.value=!1,St(!0),Ct(!0))},Wt=t=>{lt.value&<.value.maintenanceMode||(_.value=JSON.parse(JSON.stringify(t)),Y.value=!0)},Yt=async()=>{y.value=!0;const t=localStorage.getItem("zelidauth"),e={stake:_.value.uuid,timestamp:f.value,signature:v.value,data:m.value,autoreinvest:_.value.autoreinvest,reinvest:!0,lockup:lt.value.lockups[p.value]};s("info","Re-investing with Titan...");const a={headers:{zelidauth:t,backend:Z()}},i=await Rt["default"].post(`${o}/modifystake`,e,a).catch((t=>{console.log(t),w.value=!0,s("danger",t.message||t)}));console.log(i.data),i&&i.data&&"success"===i.data.status?(C.value=!0,s("success",i.data.message||i.data)):(w.value=!0,s("danger",(i.data.data?i.data.data.message:i.data.message)||i.data))},Jt=async()=>{y.value=!0;const t=localStorage.getItem("zelidauth"),e={amount:R.value?0:c.value,lockup:lt.value.lockups[p.value],timestamp:f.value,signature:v.value,data:m.value,autoreinvest:F.value,stakefromrewards:R.value};s("info","Registering with Titan...");const a={headers:{zelidauth:t,backend:Z()}},i=await Rt["default"].post(`${o}/register`,e,a).catch((t=>{console.log(t),w.value=!0,s("danger",t.message||t)}));console.log(i.data),i&&i.data&&"success"===i.data.status?(C.value=!0,h.value=i.data.hash,s("success",i.data.message||i.data)):(w.value=!0,s("danger",(i.data.data?i.data.data.message:i.data.message)||i.data))},Ht=(t,e=0)=>{const a=Math.floor(t*10**e)/10**e;return e<4?a.toLocaleString():`${a}`},Gt=async()=>{M.value=!0;const t=localStorage.getItem("zelidauth"),e={amount:n.value,stake:A.value,timestamp:f.value,signature:v.value,data:m.value};console.log(e),s("info","Sending redeem request to Titan...");const a={headers:{zelidauth:t,backend:Z()}},i=await Rt["default"].post(`${o}/redeem`,e,a).catch((t=>{console.log(t),I.value=!0,s("danger",t.message||t)}));console.log(i.data),i&&i.data&&"success"===i.data.status?($.value=!0,s("success",i.data.message||i.data),kt()):(I.value=!0,s("danger",(i.data.data?i.data.data.message:i.data.message)||i.data))},Kt=t=>{const e=lt.value.lockups.find((e=>e.fee===t.fee));return e?t.collateral*e.apr/12:0},Xt=()=>{let t=it.value?it.value.reduce(((t,e)=>t+e.paid-(e.feePaid??0)),0):0;return t+=rt.value?rt.value.reduce(((t,e)=>t+e.paid-(e.feePaid??0)-(5===e.state?e.collateral:0)),0):0,Ht(t,2)},Qt=t=>{window.open(`http://${t.address}`,"_blank")},te=async()=>(await pt(),p.value>=0&&p.valuelt.value?lt.value.lockups[p.value].time:0,ae=async()=>p.value>=0&&p.value{console.log(D.value);const t=parseFloat(D.value);return console.log(t),console.log(n.value),t>lt.value.redeemFee&&t<=parseFloat(Ht(n.value,2))},ie=t=>`Send a payment of ${t.collateral} Flux to
${lt.value.nodeAddress}
with a message
${t.signatureHash}`;return{perfectScrollbarSettings:et,timeoptions:At,nodes:at,totalCollateral:st,myStakes:it,myExpiredStakes:rt,myPayments:ot,paymentFields:nt,totalReward:n,titanConfig:lt,titanStats:ct,tooMuchStaked:T,defaultStakeDisabledMessage:z,userZelid:r,signature:v,signatureHash:h,dataToSign:m,callbackValue:B,initiateSignWS:q,timestamp:f,getMyStakes:St,getMyPayments:Ct,calcAPR:bt,calcMonthlyReward:Kt,calculatePaidRewards:Xt,toFixedLocaleString:Ht,formatPaymentTooltip:ie,showNodeInfoDialog:jt,nodeModalShowing:J,visitNode:Qt,showAPRInfoDialog:qt,aprModalShowing:G,stakeModalShowing:V,showStakeDialog:_t,reinvestingNewStake:R,stakeAmount:c,minStakeAmount:d,maxStakeAmount:u,stakeRegistered:C,stakeRegisterFailed:w,selectedLockupIndex:p,selectLockup:Ot,autoReinvestStake:F,registeringStake:y,registerStake:Jt,checkDuration:te,getLockupDuration:ee,getRegistrationMessage:pt,confirmStakeDialogCancel:Pt,confirmStakeDialogCloseShowing:U,confirmStakeDialogFinish:Ft,confirmStakeDialogFinishShowing:W,showActiveStakeInfoDialog:$t,activeStakeInfoModalShowing:Q,editActiveStake:It,editStakeModalShowing:tt,sendModifiedStake:Mt,showReinvestDialog:Lt,getModifyMessage:gt,reinvestModalShowing:X,reinvestStake:Yt,checkReinvestDuration:ae,reinvestDialogFinish:Zt,calculateReinvestFee:Bt,calculateNewStakeReinvestFee:Nt,showPaymentDetailsDialog:Wt,paymentDetailsDialogShowing:Y,selectedStake:_,showOverlay:yt,showRedeemDialog:Vt,redeemModalShowing:K,redeemAmount:D,redeemAddress:A,redeemAddresses:P,redeemAmountState:se,getRedeemMessage:mt,checkRedeemAddress:vt,sendingRequest:M,requestSent:$,requestFailed:I,requestRedeem:Gt,confirmRedeemDialogFinish:Ut,calculateRedeemFee:Et,tierColors:H.Z,indexedTierColors:L}}},$t=Pt;var It=(0,vt.Z)($t,bt,xt,!1,null,"7a37a067",null);const Mt=It.exports;var Lt=function(){var t=this,e=t._self._c;return e("div",{staticClass:"sidebar-left"},[e("div",{staticClass:"sidebar"},[e("div",{staticClass:"sidebar-content marketplace-sidebar"},[e("div",{staticClass:"marketplace-app-menu"},[e("div",{staticClass:"add-task"}),e("vue-perfect-scrollbar",{staticClass:"sidebar-menu-list scroll-area",attrs:{settings:t.perfectScrollbarSettings}},[e("b-list-group",{staticClass:"list-group-filters"},t._l(t.taskFilters,(function(a){return e("b-list-group-item",{key:a.title+t.$route.path,attrs:{to:a.route,active:t.isDynamicRouteActive(a.route)},on:{click:function(e){t.$emit("close-app-view"),t.$emit("close-left-sidebar")}}},[e("v-icon",{staticClass:"mr-75 icon-spacing",attrs:{name:a.icon,scale:"1.55"}}),e("span",{staticClass:"line-height-2"},[t._v(t._s(a.title))])],1)})),1),e("hr"),e("b-list-group",{staticClass:"list-group-filters"},t._l(t.nodeActions,(function(a){return e("b-list-group-item",{key:a.title+t.$route.path,attrs:{to:a.route,active:t.isDynamicRouteActive(a.route),target:"_blank",rel:"noopener noreferrer"},on:{click:function(e){t.$emit("close-app-view"),t.$emit("close-left-sidebar"),t.$emit(a.event)}}},[e("v-icon",{staticClass:"mr-75 icon-spacing",attrs:{name:a.icon,scale:"1.55"}}),e("span",{staticClass:"line-height-2"},[t._v(t._s(a.title))])],1)})),1)],1)],1)])])])},Zt=[],Bt=a(70322),Nt=a(88367),Et=a(82162);const Ot={directives:{Ripple:b.Z},components:{BListGroup:Bt.N,BListGroupItem:Nt.f,VuePerfectScrollbar:w()},props:{zelid:{type:String,required:!1,default:""}},setup(t){const e={maxScrollbarLength:60},a=(0,g.ref)("");a.value=t.zelid;const s=[{title:"All Categories",icon:"inbox",route:{name:"apps-marketplace"}}];Et.categories.forEach((t=>{s.push({title:t.name,icon:t.icon,route:{name:"apps-marketplace-filter",params:{filter:t.name.toLowerCase()}}})}));const i=[{title:"Shared Nodes",icon:"inbox",event:"open-shared-nodes",route:{name:"apps-marketplace-sharednodes"}}];return{perfectScrollbarSettings:e,taskFilters:s,nodeActions:i,isDynamicRouteActive:h._d}}},jt=Ot;var qt=(0,vt.Z)(jt,Lt,Zt,!1,null,null,null);const Vt=qt.exports,Ut=a(80129),Wt=a(97218),Yt=a(63005),Jt={components:{BFormInput:r.e,BInputGroup:o.w,BInputGroupPrepend:n.P,BDropdown:l.R,BDropdownItem:c.E,BMedia:d.P,BMediaBody:u.D,BBadge:p.k,BAvatar:m.SH,AppView:ft,SharedNodesView:Mt,CategorySidebar:Vt,VuePerfectScrollbar:w(),ToastificationContent:S.Z},directives:{Ripple:b.Z},setup(){const t=(0,g.ref)(null),e=(0,g.ref)(null),a=(0,g.ref)(""),{route:s,router:i}=(0,h.tv)(),r=(0,g.ref)(!1),o=(0,g.ref)(!1),n=(0,x.useToast)();(0,g.onBeforeMount)((()=>{const t=localStorage.getItem("zelidauth"),a=Ut.parse(t);e.value=a.zelid,o.value="/apps/shared-nodes"===s.value.path}));const l=t=>t.compose.reduce(((t,e)=>t+e.cpu),0),c=t=>t.compose.reduce(((t,e)=>t+e.ram),0),d=t=>t.compose.reduce(((t,e)=>t+e.hdd),0),u=t=>264e3===t.expire?"1 year":66e3===t.expire?"3 months":132e3===t.expire?"6 months":"1 month",{showDetailSidebar:p}=(0,f.w)(),m=(0,g.computed)((()=>s.value.query.sort)),b=(0,g.computed)((()=>s.value.query.q)),C=(0,g.computed)((()=>s.value.params)),w=(0,g.ref)([]),_=["latest","title-asc","title-desc","end-date","cpu","ram","hdd"],F=(0,g.ref)(m.value);(0,g.watch)(m,(t=>{_.includes(t),F.value=t}));const R=()=>{const t=JSON.parse(JSON.stringify(s.value.query));delete t.sort,i.replace({name:s.name,query:t}).catch((()=>{}))},T=(0,g.ref)({}),z=(t,e,a="InfoIcon")=>{n({component:S.Z,props:{title:e,icon:a,variant:t}})},D=t=>{const e=Et.categories.filter((e=>e.name===t.name));return 0===e.length?Et.defaultCategory.variant:e[0].variant},A=t=>{const e=Et.categories.filter((e=>e.name===t.name));return 0===e.length?Et.defaultCategory.variant:e[0].variant},P=t=>{const e=Et.categories.filter((e=>e.name===t.name));return 0===e.length?Et.defaultCategory.icon:e[0].icon},$=(0,g.ref)(b.value);(0,g.watch)(b,(t=>{$.value=t}));const I=t=>{const e=JSON.parse(JSON.stringify(s.value.query));t?e.q=t:delete e.q,i.replace({name:s.name,query:e})},M=t=>{const e=Et.categories.find((e=>e.name===t));return e||Et.defaultCategory},L=async()=>{const t=await k.Z.getMarketPlaceURL();if("success"===t.data.status&&t.data.data){const e=await Wt.get(t.data.data);if(console.log(e),"success"===e.data.status){if(w.value=e.data.data.filter((t=>t.visible)),w.value.forEach((t=>{t.extraDetail=M(t.category)})),i.currentRoute.params.filter&&(w.value=w.value.filter((t=>t.extraDetail.name.toLowerCase()===i.currentRoute.params.filter.toLowerCase()))),$.value){const t=$.value.toLowerCase();w.value=w.value.filter((e=>!!e.name.toLowerCase().includes(t)||!!e.description.toLowerCase().includes(t)))}F.value&&w.value.sort(((t,e)=>"title-asc"===F.value?t.name.localeCompare(e.name):"title-desc"===F.value?e.name.localeCompare(t.name):"cpu"===F.value?l(t)-l(e):"ram"===F.value?c(t)-c(e):"hdd"===F.value?d(t)-d(e):"price"===F.value?t.price-e.price:0))}else z("danger",e.data.data.message||e.data.data)}else z("danger",t.data.data.message||t.data.data)};(0,g.watch)([$,F],(()=>L())),(0,g.watch)(C,(()=>{L()}));const Z=async()=>{const t=await y.Z.getFluxNodeStatus();"success"===t.data.status&&(a.value=t.data.data.tier),L()};Z();const B=t=>{T.value=t,r.value=!0},N={maxScrollbarLength:150};return{zelid:e,tier:a,appListRef:t,timeoptions:Yt,app:T,handleAppClick:B,updateRouteQuery:I,searchQuery:$,filteredApps:w,sortOptions:_,resetSortAndNavigate:R,perfectScrollbarSettings:N,resolveTagVariant:D,resolveAvatarVariant:A,resolveAvatarIcon:P,avatarText:v.k3,isAppViewActive:r,isSharedNodesViewActive:o,showDetailSidebar:p,resolveHdd:d,resolveCpu:l,resolveRam:c,adjustPeriod:u}}},Ht=Jt;var Gt=(0,vt.Z)(Ht,s,i,!1,null,null,null);const Kt=Gt.exports},6044:(t,e,a)=>{"use strict";a.d(e,{w:()=>r});var s=a(20144),i=a(73507);const r=()=>{const t=(0,s.ref)(!1),e=(0,s.computed)((()=>i.Z.getters["app/currentBreakPoint"]));return(0,s.watch)(e,((e,a)=>{"md"===a&&"lg"===e&&(t.value=!1)})),{mqShallShowLeftSidebar:t}}},1923:(t,e,a)=>{"use strict";a.d(e,{k3:()=>s});a(70560),a(23646);const s=t=>{if(!t)return"";const e=t.split(" ");return e.map((t=>t.charAt(0).toUpperCase())).join("")}},72918:(t,e,a)=>{"use strict";a.d(e,{Z:()=>i});const s={cumulus:"#2B61D1",nimbus:"#ff9f43",stratus:"#ea5455"},i=s},63005:(t,e,a)=>{"use strict";a.r(e),a.d(e,{default:()=>r});const s={year:"numeric",month:"short",day:"numeric",hour:"2-digit",minute:"2-digit"},i={year:"numeric",month:"short",day:"numeric"},r={shortDate:s,date:i}},65864:(t,e,a)=>{"use strict";a.d(e,{M:()=>i,Z:()=>r});var s=a(87066);const i="https://fiatpaymentsbridge.runonflux.io";async function r(){try{const t=await s["default"].get(`${i}/api/v1/gateway/status`);return"success"===t.data.status?t.data.data:null}catch(t){return null}}},43672:(t,e,a)=>{"use strict";a.d(e,{Z:()=>i});var s=a(80914);const i={listRunningApps(){const t={headers:{"x-apicache-bypass":!0}};return(0,s.Z)().get("/apps/listrunningapps",t)},listAllApps(){const t={headers:{"x-apicache-bypass":!0}};return(0,s.Z)().get("/apps/listallapps",t)},installedApps(){const t={headers:{"x-apicache-bypass":!0}};return(0,s.Z)().get("/apps/installedapps",t)},availableApps(){return(0,s.Z)().get("/apps/availableapps")},getEnterpriseNodes(){return(0,s.Z)().get("/apps/enterprisenodes")},stopApp(t,e){const a={headers:{zelidauth:t,"x-apicache-bypass":!0}};return(0,s.Z)().get(`/apps/appstop/${e}`,a)},startApp(t,e){const a={headers:{zelidauth:t}};return(0,s.Z)().get(`/apps/appstart/${e}`,a)},pauseApp(t,e){const a={headers:{zelidauth:t}};return(0,s.Z)().get(`/apps/apppause/${e}`,a)},unpauseApp(t,e){const a={headers:{zelidauth:t}};return(0,s.Z)().get(`/apps/appunpause/${e}`,a)},restartApp(t,e){const a={headers:{zelidauth:t}};return(0,s.Z)().get(`/apps/apprestart/${e}`,a)},removeApp(t,e){const a={headers:{zelidauth:t},onDownloadProgress(t){console.log(t)}};return(0,s.Z)().get(`/apps/appremove/${e}`,a)},registerApp(t,e){const a={headers:{zelidauth:t}};return(0,s.Z)().post("/apps/appregister",JSON.stringify(e),a)},updateApp(t,e){const a={headers:{zelidauth:t}};return(0,s.Z)().post("/apps/appupdate",JSON.stringify(e),a)},checkCommunication(){return(0,s.Z)().get("/flux/checkcommunication")},checkDockerExistance(t,e){const a={headers:{zelidauth:t}};return(0,s.Z)().post("/apps/checkdockerexistance",JSON.stringify(e),a)},appsRegInformation(){return(0,s.Z)().get("/apps/registrationinformation")},appsDeploymentInformation(){return(0,s.Z)().get("/apps/deploymentinformation")},getAppLocation(t){return(0,s.Z)().get(`/apps/location/${t}`)},globalAppSpecifications(){return(0,s.Z)().get("/apps/globalappsspecifications")},permanentMessagesOwner(t){return(0,s.Z)().get(`/apps/permanentmessages?owner=${t}`)},getInstalledAppSpecifics(t){return(0,s.Z)().get(`/apps/installedapps/${t}`)},getAppSpecifics(t){return(0,s.Z)().get(`/apps/appspecifications/${t}`)},getAppOwner(t){return(0,s.Z)().get(`/apps/appowner/${t}`)},getAppLogsTail(t,e){const a={headers:{zelidauth:t}};return(0,s.Z)().get(`/apps/applog/${e}/100`,a)},getAppTop(t,e){const a={headers:{zelidauth:t}};return(0,s.Z)().get(`/apps/apptop/${e}`,a)},getAppInspect(t,e){const a={headers:{zelidauth:t}};return(0,s.Z)().get(`/apps/appinspect/${e}`,a)},getAppStats(t,e){const a={headers:{zelidauth:t}};return(0,s.Z)().get(`/apps/appstats/${e}`,a)},getAppChanges(t,e){const a={headers:{zelidauth:t}};return(0,s.Z)().get(`/apps/appchanges/${e}`,a)},getAppExec(t,e,a,i){const r={headers:{zelidauth:t}},o={appname:e,cmd:a,env:JSON.parse(i)};return(0,s.Z)().post("/apps/appexec",JSON.stringify(o),r)},reindexGlobalApps(t){return(0,s.Z)().get("/apps/reindexglobalappsinformation",{headers:{zelidauth:t}})},reindexLocations(t){return(0,s.Z)().get("/apps/reindexglobalappslocation",{headers:{zelidauth:t}})},rescanGlobalApps(t,e,a){return(0,s.Z)().get(`/apps/rescanglobalappsinformation/${e}/${a}`,{headers:{zelidauth:t}})},getFolder(t,e){return(0,s.Z)().get(`/apps/fluxshare/getfolder/${e}`,{headers:{zelidauth:t}})},createFolder(t,e){return(0,s.Z)().get(`/apps/fluxshare/createfolder/${e}`,{headers:{zelidauth:t}})},getFile(t,e){return(0,s.Z)().get(`/apps/fluxshare/getfile/${e}`,{headers:{zelidauth:t}})},removeFile(t,e){return(0,s.Z)().get(`/apps/fluxshare/removefile/${e}`,{headers:{zelidauth:t}})},shareFile(t,e){return(0,s.Z)().get(`/apps/fluxshare/sharefile/${e}`,{headers:{zelidauth:t}})},unshareFile(t,e){return(0,s.Z)().get(`/apps/fluxshare/unsharefile/${e}`,{headers:{zelidauth:t}})},removeFolder(t,e){return(0,s.Z)().get(`/apps/fluxshare/removefolder/${e}`,{headers:{zelidauth:t}})},fileExists(t,e){return(0,s.Z)().get(`/apps/fluxshare/fileexists/${e}`,{headers:{zelidauth:t}})},storageStats(t){return(0,s.Z)().get("/apps/fluxshare/stats",{headers:{zelidauth:t}})},renameFileFolder(t,e,a){return(0,s.Z)().get(`/apps/fluxshare/rename/${e}/${a}`,{headers:{zelidauth:t}})},appPrice(t){return(0,s.Z)().post("/apps/calculateprice",JSON.stringify(t))},appPriceUSDandFlux(t){return(0,s.Z)().post("/apps/calculatefiatandfluxprice",JSON.stringify(t))},appRegistrationVerificaiton(t){return(0,s.Z)().post("/apps/verifyappregistrationspecifications",JSON.stringify(t))},appUpdateVerification(t){return(0,s.Z)().post("/apps/verifyappupdatespecifications",JSON.stringify(t))},getAppMonitoring(t,e){const a={headers:{zelidauth:t}};return(0,s.Z)().get(`/apps/appmonitor/${e}`,a)},startAppMonitoring(t,e){const a={headers:{zelidauth:t}};return e?(0,s.Z)().get(`/apps/startmonitoring/${e}`,a):(0,s.Z)().get("/apps/startmonitoring",a)},stopAppMonitoring(t,e,a){const i={headers:{zelidauth:t}};return e&&a?(0,s.Z)().get(`/apps/stopmonitoring/${e}/${a}`,i):e?(0,s.Z)().get(`/apps/stopmonitoring/${e}`,i):a?(0,s.Z)().get(`/apps/stopmonitoring?deletedata=${a}`,i):(0,s.Z)().get("/apps/stopmonitoring",i)},justAPI(){return(0,s.Z)()}}},51136:(t,e,a)=>{"use strict";a.d(e,{Z:()=>i});var s=a(80914);const i={listFluxNodes(){return(0,s.Z)().get("/daemon/listzelnodes")},fluxnodeCount(){return(0,s.Z)().get("/daemon/getzelnodecount")},blockReward(){return(0,s.Z)().get("/daemon/getblocksubsidy")}}},39055:(t,e,a)=>{"use strict";a.d(e,{Z:()=>i});var s=a(80914);const i={softUpdateFlux(t){return(0,s.Z)().get("/flux/softupdateflux",{headers:{zelidauth:t}})},softUpdateInstallFlux(t){return(0,s.Z)().get("/flux/softupdatefluxinstall",{headers:{zelidauth:t}})},updateFlux(t){return(0,s.Z)().get("/flux/updateflux",{headers:{zelidauth:t}})},hardUpdateFlux(t){return(0,s.Z)().get("/flux/hardupdateflux",{headers:{zelidauth:t}})},rebuildHome(t){return(0,s.Z)().get("/flux/rebuildhome",{headers:{zelidauth:t}})},updateDaemon(t){return(0,s.Z)().get("/flux/updatedaemon",{headers:{zelidauth:t}})},reindexDaemon(t){return(0,s.Z)().get("/flux/reindexdaemon",{headers:{zelidauth:t}})},updateBenchmark(t){return(0,s.Z)().get("/flux/updatebenchmark",{headers:{zelidauth:t}})},getFluxVersion(){return(0,s.Z)().get("/flux/version")},broadcastMessage(t,e){const a=e,i={headers:{zelidauth:t}};return(0,s.Z)().post("/flux/broadcastmessage",JSON.stringify(a),i)},connectedPeers(){return(0,s.Z)().get(`/flux/connectedpeers?timestamp=${Date.now()}`)},connectedPeersInfo(){return(0,s.Z)().get(`/flux/connectedpeersinfo?timestamp=${Date.now()}`)},incomingConnections(){return(0,s.Z)().get(`/flux/incomingconnections?timestamp=${Date.now()}`)},incomingConnectionsInfo(){return(0,s.Z)().get(`/flux/incomingconnectionsinfo?timestamp=${Date.now()}`)},addPeer(t,e){return(0,s.Z)().get(`/flux/addpeer/${e}`,{headers:{zelidauth:t}})},removePeer(t,e){return(0,s.Z)().get(`/flux/removepeer/${e}`,{headers:{zelidauth:t}})},removeIncomingPeer(t,e){return(0,s.Z)().get(`/flux/removeincomingpeer/${e}`,{headers:{zelidauth:t}})},adjustKadena(t,e,a){return(0,s.Z)().get(`/flux/adjustkadena/${e}/${a}`,{headers:{zelidauth:t}})},adjustRouterIP(t,e){return(0,s.Z)().get(`/flux/adjustrouterip/${e}`,{headers:{zelidauth:t}})},adjustBlockedPorts(t,e){const a={blockedPorts:e},i={headers:{zelidauth:t}};return(0,s.Z)().post("/flux/adjustblockedports",a,i)},adjustAPIPort(t,e){return(0,s.Z)().get(`/flux/adjustapiport/${e}`,{headers:{zelidauth:t}})},adjustBlockedRepositories(t,e){const a={blockedRepositories:e},i={headers:{zelidauth:t}};return(0,s.Z)().post("/flux/adjustblockedrepositories",a,i)},getKadenaAccount(){const t={headers:{"x-apicache-bypass":!0}};return(0,s.Z)().get("/flux/kadena",t)},getRouterIP(){const t={headers:{"x-apicache-bypass":!0}};return(0,s.Z)().get("/flux/routerip",t)},getBlockedPorts(){const t={headers:{"x-apicache-bypass":!0}};return(0,s.Z)().get("/flux/blockedports",t)},getAPIPort(){const t={headers:{"x-apicache-bypass":!0}};return(0,s.Z)().get("/flux/apiport",t)},getBlockedRepositories(){const t={headers:{"x-apicache-bypass":!0}};return(0,s.Z)().get("/flux/blockedrepositories",t)},getMarketPlaceURL(){return(0,s.Z)().get("/flux/marketplaceurl")},getZelid(){const t={headers:{"x-apicache-bypass":!0}};return(0,s.Z)().get("/flux/zelid",t)},getStaticIpInfo(){return(0,s.Z)().get("/flux/staticip")},restartFluxOS(t){const e={headers:{zelidauth:t,"x-apicache-bypass":!0}};return(0,s.Z)().get("/flux/restart",e)},tailFluxLog(t,e){return(0,s.Z)().get(`/flux/tail${t}log`,{headers:{zelidauth:e}})},justAPI(){return(0,s.Z)()},cancelToken(){return s.S}}},85498:function(t){!function(e,a){t.exports=a()}("undefined"!=typeof self&&self,(function(){return function(t){function e(s){if(a[s])return a[s].exports;var i=a[s]={i:s,l:!1,exports:{}};return t[s].call(i.exports,i,i.exports,e),i.l=!0,i.exports}var a={};return e.m=t,e.c=a,e.d=function(t,a,s){e.o(t,a)||Object.defineProperty(t,a,{configurable:!1,enumerable:!0,get:s})},e.n=function(t){var a=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(a,"a",a),a},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=7)}([function(t,e){t.exports=function(t,e,a,s,i,r){var o,n=t=t||{},l=typeof t.default;"object"!==l&&"function"!==l||(o=t,n=t.default);var c,d="function"==typeof n?n.options:n;if(e&&(d.render=e.render,d.staticRenderFns=e.staticRenderFns,d._compiled=!0),a&&(d.functional=!0),i&&(d._scopeId=i),r?(c=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),s&&s.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(r)},d._ssrRegister=c):s&&(c=s),c){var u=d.functional,p=u?d.render:d.beforeCreate;u?(d._injectStyles=c,d.render=function(t,e){return c.call(e),p(t,e)}):d.beforeCreate=p?[].concat(p,c):[c]}return{esModule:o,exports:n,options:d}}},function(t,e,a){"use strict";var s=a(2),i=a(4),r=a(14);e.a={name:"form-wizard",components:{WizardButton:s.a,WizardStep:i.a},props:{title:{type:String,default:"Awesome Wizard"},subtitle:{type:String,default:"Split a complicated flow in multiple steps"},nextButtonText:{type:String,default:"Next"},backButtonText:{type:String,default:"Back"},finishButtonText:{type:String,default:"Finish"},hideButtons:{type:Boolean,default:!1},validateOnBack:Boolean,color:{type:String,default:"#e74c3c"},errorColor:{type:String,default:"#8b0000"},shape:{type:String,default:"circle"},layout:{type:String,default:"horizontal"},stepsClasses:{type:[String,Array],default:""},stepSize:{type:String,default:"md",validator:function(t){return-1!==["xs","sm","md","lg"].indexOf(t)}},transition:{type:String,default:""},startIndex:{type:Number,default:0,validator:function(t){return t>=0}}},provide:function(){return{addTab:this.addTab,removeTab:this.removeTab}},data:function(){return{activeTabIndex:0,currentPercentage:0,maxStep:0,loading:!1,tabs:[]}},computed:{slotProps:function(){return{nextTab:this.nextTab,prevTab:this.prevTab,activeTabIndex:this.activeTabIndex,isLastStep:this.isLastStep,fillButtonStyle:this.fillButtonStyle}},tabCount:function(){return this.tabs.length},isLastStep:function(){return this.activeTabIndex===this.tabCount-1},isVertical:function(){return"vertical"===this.layout},displayPrevButton:function(){return 0!==this.activeTabIndex},stepPercentage:function(){return 1/(2*this.tabCount)*100},progressBarStyle:function(){return{backgroundColor:this.color,width:this.progress+"%",color:this.color}},fillButtonStyle:function(){return{backgroundColor:this.color,borderColor:this.color,color:"white"}},progress:function(){return this.activeTabIndex>0?this.stepPercentage*(2*this.activeTabIndex+1):this.stepPercentage}},methods:{emitTabChange:function(t,e){this.$emit("on-change",t,e),this.$emit("update:startIndex",e)},addTab:function(t){var e=this.$slots.default.indexOf(t.$vnode);t.tabId=""+t.title.replace(/ /g,"")+e,this.tabs.splice(e,0,t),e-1&&(a===this.activeTabIndex&&(this.maxStep=this.activeTabIndex-1,this.changeTab(this.activeTabIndex,this.activeTabIndex-1)),athis.activeTabIndex;if(t<=this.maxStep){var s=function s(){a&&t-e.activeTabIndex>1?(e.changeTab(e.activeTabIndex,e.activeTabIndex+1),e.beforeTabChange(e.activeTabIndex,s)):(e.changeTab(e.activeTabIndex,t),e.afterTabChange(e.activeTabIndex))};a?this.beforeTabChange(this.activeTabIndex,s):(this.setValidationError(null),s())}return t<=this.maxStep},nextTab:function(){var t=this,e=function(){t.activeTabIndex0&&(t.setValidationError(null),t.changeTab(t.activeTabIndex,t.activeTabIndex-1))};this.validateOnBack?this.beforeTabChange(this.activeTabIndex,e):e()},focusNextTab:function(){var t=Object(r.b)(this.tabs);if(-1!==t&&t0){var e=this.tabs[t-1].tabId;Object(r.a)(e)}},setLoading:function(t){this.loading=t,this.$emit("on-loading",t)},setValidationError:function(t){this.tabs[this.activeTabIndex].validationError=t,this.$emit("on-error",t)},validateBeforeChange:function(t,e){var a=this;if(this.setValidationError(null),Object(r.c)(t))this.setLoading(!0),t.then((function(t){a.setLoading(!1);var s=!0===t;a.executeBeforeChange(s,e)})).catch((function(t){a.setLoading(!1),a.setValidationError(t)}));else{var s=!0===t;this.executeBeforeChange(s,e)}},executeBeforeChange:function(t,e){this.$emit("on-validate",t,this.activeTabIndex),t?e():this.tabs[this.activeTabIndex].validationError="error"},beforeTabChange:function(t,e){if(!this.loading){var a=this.tabs[t];if(a&&void 0!==a.beforeChange){var s=a.beforeChange();this.validateBeforeChange(s,e)}else e()}},afterTabChange:function(t){if(!this.loading){var e=this.tabs[t];e&&void 0!==e.afterChange&&e.afterChange()}},changeTab:function(t,e){var a=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],s=this.tabs[t],i=this.tabs[e];return s&&(s.active=!1),i&&(i.active=!0),a&&this.activeTabIndex!==e&&this.emitTabChange(t,e),this.activeTabIndex=e,this.activateTabAndCheckStep(this.activeTabIndex),!0},tryChangeRoute:function(t){this.$router&&t.route&&this.$router.push(t.route)},checkRouteChange:function(t){var e=-1,a=this.tabs.find((function(a,s){var i=a.route===t;return i&&(e=s),i}));if(a&&!a.active){var s=e>this.activeTabIndex;this.navigateToTab(e,s)}},deactivateTabs:function(){this.tabs.forEach((function(t){t.active=!1}))},activateTab:function(t){this.deactivateTabs();var e=this.tabs[t];e&&(e.active=!0,e.checked=!0,this.tryChangeRoute(e))},activateTabAndCheckStep:function(t){this.activateTab(t),t>this.maxStep&&(this.maxStep=t),this.activeTabIndex=t},initializeTabs:function(){this.tabs.length>0&&0===this.startIndex&&this.activateTab(this.activeTabIndex),this.startIndex0&&void 0!==arguments[0]?arguments[0]:[],e=s();return t.findIndex((function(t){return t.tabId===e}))}function r(t){document.getElementById(t).focus()}function o(t){return t.then&&"function"==typeof t.then}e.b=i,e.a=r,e.c=o},function(t,e,a){"use strict";var s=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"vue-form-wizard",class:[t.stepSize,{vertical:t.isVertical}],on:{keyup:[function(e){return"button"in e||!t._k(e.keyCode,"right",39,e.key)?"button"in e&&2!==e.button?null:void t.focusNextTab(e):null},function(e){return"button"in e||!t._k(e.keyCode,"left",37,e.key)?"button"in e&&0!==e.button?null:void t.focusPrevTab(e):null}]}},[a("div",{staticClass:"wizard-header"},[t._t("title",[a("h4",{staticClass:"wizard-title"},[t._v(t._s(t.title))]),t._v(" "),a("p",{staticClass:"category"},[t._v(t._s(t.subtitle))])])],2),t._v(" "),a("div",{staticClass:"wizard-navigation"},[t.isVertical?t._e():a("div",{staticClass:"wizard-progress-with-circle"},[a("div",{staticClass:"wizard-progress-bar",style:t.progressBarStyle})]),t._v(" "),a("ul",{staticClass:"wizard-nav wizard-nav-pills",class:t.stepsClasses,attrs:{role:"tablist"}},[t._l(t.tabs,(function(e,s){return t._t("step",[a("wizard-step",{attrs:{tab:e,"step-size":t.stepSize,transition:t.transition,index:s},nativeOn:{click:function(e){t.navigateToTab(s)},keyup:function(e){if(!("button"in e)&&t._k(e.keyCode,"enter",13,e.key))return null;t.navigateToTab(s)}}})],{tab:e,index:s,navigateToTab:t.navigateToTab,stepSize:t.stepSize,transition:t.transition})}))],2),t._v(" "),a("div",{staticClass:"wizard-tab-content"},[t._t("default",null,null,t.slotProps)],2)]),t._v(" "),t.hideButtons?t._e():a("div",{staticClass:"wizard-card-footer clearfix"},[t._t("footer",[a("div",{staticClass:"wizard-footer-left"},[t.displayPrevButton?a("span",{attrs:{role:"button",tabindex:"0"},on:{click:t.prevTab,keyup:function(e){if(!("button"in e)&&t._k(e.keyCode,"enter",13,e.key))return null;t.prevTab(e)}}},[t._t("prev",[a("wizard-button",{style:t.fillButtonStyle,attrs:{disabled:t.loading}},[t._v("\n "+t._s(t.backButtonText)+"\n ")])],null,t.slotProps)],2):t._e(),t._v(" "),t._t("custom-buttons-left",null,null,t.slotProps)],2),t._v(" "),a("div",{staticClass:"wizard-footer-right"},[t._t("custom-buttons-right",null,null,t.slotProps),t._v(" "),t.isLastStep?a("span",{attrs:{role:"button",tabindex:"0"},on:{click:t.nextTab,keyup:function(e){if(!("button"in e)&&t._k(e.keyCode,"enter",13,e.key))return null;t.nextTab(e)}}},[t._t("finish",[a("wizard-button",{style:t.fillButtonStyle},[t._v("\n "+t._s(t.finishButtonText)+"\n ")])],null,t.slotProps)],2):a("span",{attrs:{role:"button",tabindex:"0"},on:{click:t.nextTab,keyup:function(e){if(!("button"in e)&&t._k(e.keyCode,"enter",13,e.key))return null;t.nextTab(e)}}},[t._t("next",[a("wizard-button",{style:t.fillButtonStyle,attrs:{disabled:t.loading}},[t._v("\n "+t._s(t.nextButtonText)+"\n ")])],null,t.slotProps)],2)],2)],null,t.slotProps)],2)])},i=[],r={render:s,staticRenderFns:i};e.a=r},function(t,e,a){"use strict";var s=a(6),i=a(17),r=a(0),o=r(s.a,i.a,!1,null,null,null);e.a=o.exports},function(t,e,a){"use strict";var s=function(){var t=this,e=t.$createElement;return(t._self._c||e)("div",{directives:[{name:"show",rawName:"v-show",value:t.active,expression:"active"}],staticClass:"wizard-tab-container",attrs:{role:"tabpanel",id:t.tabId,"aria-hidden":!t.active,"aria-labelledby":"step-"+t.tabId}},[t._t("default",null,{active:t.active})],2)},i=[],r={render:s,staticRenderFns:i};e.a=r}])}))},20134:(t,e,a)=>{"use strict";t.exports=a.p+"img/Stripe.svg"},36547:(t,e,a)=>{"use strict";t.exports=a.p+"img/PayPal.png"}}]); \ No newline at end of file +(self["webpackChunkflux"]=self["webpackChunkflux"]||[]).push([[8701],{64813:(t,e,a)=>{"use strict";a.r(e),a.d(e,{default:()=>Kt});var s=function(){var t=this,e=t._self._c;return e("div",{staticStyle:{height:"inherit"}},[e("div",{staticClass:"body-content-overlay",class:{show:t.showDetailSidebar},on:{click:function(e){t.showDetailSidebar=!1}}}),e("div",{staticClass:"marketplace-app-list"},[e("div",{staticClass:"app-fixed-search d-flex align-items-center"},[e("div",{staticClass:"sidebar-toggle d-block d-lg-none ml-1"},[e("feather-icon",{staticClass:"cursor-pointer",attrs:{icon:"MenuIcon",size:"21"},on:{click:function(e){t.showDetailSidebar=!0}}})],1),e("div",{staticClass:"d-flex align-content-center justify-content-between w-100"},[e("b-input-group",{staticClass:"input-group-merge"},[e("b-input-group-prepend",{attrs:{"is-text":""}},[e("feather-icon",{staticClass:"text-muted",attrs:{icon:"SearchIcon"}})],1),e("b-form-input",{attrs:{value:t.searchQuery,placeholder:"Search Marketplace Apps"},on:{input:t.updateRouteQuery}})],1)],1),e("div",{staticClass:"dropdown"},[e("b-dropdown",{attrs:{variant:"link","no-caret":"","toggle-class":"p-0 mr-1",right:""},scopedSlots:t._u([{key:"button-content",fn:function(){return[e("feather-icon",{staticClass:"align-middle text-body",attrs:{icon:"MoreVerticalIcon",size:"16"}})]},proxy:!0}])},[e("b-dropdown-item",{on:{click:t.resetSortAndNavigate}},[t._v(" Reset Sort ")]),e("b-dropdown-item",{attrs:{to:{name:t.$route.name,query:{...t.$route.query,sort:"title-asc"}}}},[t._v(" Sort A-Z ")]),e("b-dropdown-item",{attrs:{to:{name:t.$route.name,query:{...t.$route.query,sort:"title-desc"}}}},[t._v(" Sort Z-A ")]),e("b-dropdown-item",{attrs:{to:{name:t.$route.name,query:{...t.$route.query,sort:"cpu"}}}},[t._v(" Sort by CPU ")]),e("b-dropdown-item",{attrs:{to:{name:t.$route.name,query:{...t.$route.query,sort:"ram"}}}},[t._v(" Sort by RAM ")]),e("b-dropdown-item",{attrs:{to:{name:t.$route.name,query:{...t.$route.query,sort:"hdd"}}}},[t._v(" Sort by HDD ")]),e("b-dropdown-item",{attrs:{to:{name:t.$route.name,query:{...t.$route.query,sort:"price"}}}},[t._v(" Sort by price ")])],1)],1)]),e("vue-perfect-scrollbar",{ref:"appListRef",staticClass:"marketplace-app-list scroll-area",attrs:{settings:t.perfectScrollbarSettings}},[e("ul",{staticClass:"marketplace-media-list"},t._l(t.filteredApps,(function(a){return e("b-media",{key:a.hash,attrs:{tag:"li","no-body":""},on:{click:function(e){return t.handleAppClick(a)}}},[e("b-media-body",{staticClass:"app-media-body"},[e("div",{staticClass:"app-title-wrapper"},[e("div",{staticClass:"app-title-area"},[e("div",{staticClass:"title-wrapper"},[e("span",{staticClass:"app-title"},[e("kbd",{staticClass:"alert-info no-wrap",staticStyle:{"border-radius":"15px","font-size":"16px","font-weight":"700 !important"}},[e("b-icon",{attrs:{scale:"1.2",icon:"app-indicator"}}),t._v("  "+t._s(a.name)+"  ")],1)])])]),e("div",{staticClass:"app-item-action"},[e("div",{staticClass:"badge-wrapper mr-1"},[a.extraDetail.name?e("b-badge",{staticClass:"text-capitalize",attrs:{pill:"",variant:`light-${t.resolveTagVariant(a.extraDetail)}`}},[t._v(" "+t._s(a.extraDetail.name)+" ")]):t._e()],1),e("div",[a.extraDetail?e("b-avatar",{attrs:{size:"48",variant:`light-${t.resolveAvatarVariant(a.extraDetail)}`}},[e("v-icon",{attrs:{scale:"1.75",name:`${t.resolveAvatarIcon(a.extraDetail)}`}})],1):t._e()],1)])]),e("div",{staticClass:"app-title-area"},[e("div",{staticClass:"title-wrapper"},[e("h6",{staticClass:"text-nowrap text-muted mr-1 mb-1 app-description",staticStyle:{width:"900px"}},[t._v(" "+t._s(a.description)+" ")])])]),e("div",{staticClass:"app-title-area"},[e("div",{staticClass:"title-wrapper"},[e("h6",{staticClass:"text-nowrap text-muted mr-1 app-description"},[t._v("  "),e("b-icon",{attrs:{scale:"1.4",icon:"speedometer2"}}),t._v("  "),e("kbd",{staticClass:"alert-success",staticStyle:{"border-radius":"15px"}},[t._v(" "),e("b",[t._v(t._s(t.resolveCpu(a))+" ")]),t._v(" ")]),t._v("   "),e("b-icon",{attrs:{scale:"1.4",icon:"cpu"}}),t._v("  "),e("kbd",{staticClass:"alert-success",staticStyle:{"border-radius":"15px"}},[t._v(" "),e("b",[t._v(t._s(t.resolveRam(a)))]),t._v(" ")]),t._v("   "),e("b-icon",{attrs:{scale:"1.4",icon:"hdd"}}),t._v("  "),e("kbd",{staticClass:"alert-success",staticStyle:{"border-radius":"15px"}},[t._v(" "),e("b",[t._v(t._s(t.resolveHdd(a))+" GB")]),t._v(" ")]),t._v("  ")],1)])]),a.priceUSD?e("div",{staticClass:"app-title-area"},[e("div",{staticClass:"title-wrapper"},[e("h5",{staticClass:"text-nowrap mr-1 app-description"},[t._v("  "),e("b-icon",{staticClass:"mr-1",attrs:{scale:"1.3",icon:"cash"}}),t._v(t._s(a.priceUSD)+" USD,  "),e("b-icon",{staticClass:"mr-1",attrs:{scale:"1.1",icon:"clock"}}),t._v(t._s(t.adjustPeriod(a))+" ")],1)])]):e("div",{staticClass:"app-title-area"},[e("div",{staticClass:"title-wrapper"},[e("h5",{staticClass:"text-nowrap mr-1 app-description"},[t._v(" Price: "+t._s(a.price)+" Flux / "+t._s(t.adjustPeriod(a))+" ")])])])])],1)})),1),e("div",{staticClass:"no-results",class:{show:0===t.filteredApps.length}},[e("h5",[t._v("No Marketplace Apps Found")])])])],1),e("app-view",{class:{show:t.isAppViewActive},attrs:{"app-data":t.app,zelid:t.zelid,tier:t.tier},on:{"close-app-view":function(e){t.isAppViewActive=!1}}}),e("shared-nodes-view",{class:{show:t.isSharedNodesViewActive},attrs:{"app-data":t.app,zelid:t.zelid,tier:t.tier},on:{"close-sharednode-view":function(e){t.isSharedNodesViewActive=!1}}}),e("portal",{attrs:{to:"content-renderer-sidebar-left"}},[e("category-sidebar",{class:{show:t.showDetailSidebar},attrs:{zelid:t.zelid},on:{"close-left-sidebar":function(e){t.showDetailSidebar=!1},"close-app-view":function(e){t.isAppViewActive=!1,t.isSharedNodesViewActive=!1}}})],1)],1)},i=[],r=a(22183),o=a(4060),n=a(27754),l=a(31642),c=a(87379),d=a(72775),u=a(68361),p=a(26034),m=a(47389),g=a(20144),h=a(1923),v=a(23646),f=a(6044),b=a(20266),x=a(41905),S=a(34547),w=a(91040),y=a.n(w),C=a(27616),k=a(39055),_=function(){var t=this,e=t._self._c;return e("div",{staticClass:"app-details"},[e("div",{staticClass:"app-detail-header"},[e("div",{staticClass:"app-header-left d-flex align-items-center"},[e("span",{staticClass:"go-back mr-1"},[e("feather-icon",{staticClass:"align-bottom",attrs:{icon:t.$store.state.appConfig.isRTL?"ChevronRightIcon":"ChevronLeftIcon",size:"20"},on:{click:function(e){return t.$emit("close-app-view")}}})],1),e("h4",{staticClass:"app-name mb-0"},[t._v(" "+t._s(t.appData.name)+" ")])])]),e("vue-perfect-scrollbar",{staticClass:"app-scroll-area scroll-area",attrs:{settings:t.perfectScrollbarSettings}},[e("b-row",{staticClass:"match-height"},[e("b-col",{attrs:{xxl:"9",xl:"8",lg:"8",md:"12"}},[e("br"),e("b-card",{attrs:{title:"Details"}},[e("b-form-textarea",{staticClass:"description-text",attrs:{id:"textarea-rows",rows:"2",readonly:"",value:t.appData.description}}),t.appData.contacts?e("div",{staticClass:"form-row form-group mt-2",staticStyle:{padding:"0"}},[e("label",{staticClass:"col-3 col-form-label"},[t._v(" Contact "),e("v-icon",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.top",value:"Add your email contact to get notifications ex. app about to expire, app spawns. Your contact will be uploaded to Flux Storage to not be public visible",expression:"'Add your email contact to get notifications ex. app about to expire, app spawns. Your contact will be uploaded to Flux Storage to not be public visible'",modifiers:{hover:!0,top:!0}}],attrs:{name:"info-circle"}})],1),e("div",{staticClass:"col"},[e("b-form-input",{attrs:{id:"contact"},model:{value:t.contact,callback:function(e){t.contact=e},expression:"contact"}})],1)]):t._e(),t.appData.geolocationOptions?e("div",[e("b-form-group",{attrs:{"label-cols":"3","label-cols-lg":"20",label:"Deployment Location","label-for":"geolocation"}},[e("b-form-select",{attrs:{id:"geolocation",options:t.appData.geolocationOptions},scopedSlots:t._u([{key:"first",fn:function(){return[e("b-form-select-option",{attrs:{value:null,disabled:""}},[t._v(" Worldwide ")])]},proxy:!0}],null,!1,2073871109),model:{value:t.selectedGeolocation,callback:function(e){t.selectedGeolocation=e},expression:"selectedGeolocation"}})],1)],1):t._e(),e("b-card",{staticStyle:{padding:"0"}},[e("b-tabs",{on:{"activate-tab":t.componentSelected}},t._l(t.appData.compose,(function(a,s){return e("b-tab",{key:s,attrs:{title:a.name}},[e("div",{staticClass:"my-2 ml-2"},[e("div",{staticClass:"list-entry"},[e("p",[e("b",{staticStyle:{display:"inline-block",width:"120px"}},[t._v("Description:")]),t._v(" "+t._s(a.description))]),e("p",[e("b",{staticStyle:{display:"inline-block",width:"120px"}},[t._v("Repository:")]),t._v(" "+t._s(a.repotag))])])]),a.userEnvironmentParameters?.length>0?e("b-card",{attrs:{title:"Parameters","border-variant":"dark"}},[a.userEnvironmentParameters?e("b-tabs",t._l(a.userEnvironmentParameters,(function(a,s){return e("b-tab",{key:s,attrs:{title:a.name}},[e("div",{staticClass:"form-row form-group"},[e("label",{staticClass:"col-2 col-form-label ml-2"},[t._v(" Value "),e("v-icon",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.top",value:a.description,expression:"parameter.description",modifiers:{hover:!0,top:!0}}],staticClass:"mr-1",attrs:{name:"info-circle"}})],1),e("div",{staticClass:"col"},[e("b-form-input",{attrs:{id:"enviromentParameters",placeholder:a.placeholder},model:{value:a.value,callback:function(e){t.$set(a,"value",e)},expression:"parameter.value"}})],1)])])})),1):t._e()],1):t._e(),a.userSecrets?e("b-card",{attrs:{title:"Secrets","border-variant":"primary"}},[a.userSecrets?e("b-tabs",t._l(a.userSecrets,(function(a,s){return e("b-tab",{key:s,attrs:{title:a.name}},[e("div",{staticClass:"form-row form-group"},[e("label",{staticClass:"col-2 col-form-label"},[t._v(" Value "),e("v-icon",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.top",value:a.description,expression:"parameter.description",modifiers:{hover:!0,top:!0}}],staticClass:"mr-1",attrs:{name:"info-circle"}})],1),e("div",{staticClass:"col"},[e("b-form-input",{attrs:{id:"secrets",placeholder:a.placeholder},model:{value:a.value,callback:function(e){t.$set(a,"value",e)},expression:"parameter.value"}})],1)])])})),1):t._e()],1):t._e(),t.userZelid?e("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"mb-2",attrs:{variant:"outline-warning","aria-label":"View Additional Details"},on:{click:function(e){t.componentParamsModalShowing=!0}}},[t._v(" View Additional Details ")]):t._e()],1)})),1)],1),t.appData.enabled?e("div",{staticClass:"text-center mt-auto"},[t.userZelid?e("b-button",{staticClass:"mt-2 text-center",staticStyle:{position:"absolute",bottom:"20px",left:"0",right:"0","margin-left":"3.0rem","margin-right":"3.0rem"},attrs:{variant:"outline-success","aria-label":"Launch Marketplace App"},on:{click:t.checkFluxSpecificationsAndFormatMessage}},[t._v(" Start Launching Marketplace Application ")]):e("h4",[t._v(" Please login using your Flux ID to deploy Marketplace Apps ")])],1):e("div",{staticClass:"text-center"},[e("h4",[t._v(" This Application is temporarily disabled ")])])],1)],1),e("b-col",{staticClass:"d-lg-flex d-none",attrs:{xxl:"3",xl:"4",lg:"4"}},[e("br"),e("b-card",{attrs:{"no-body":""}},[e("b-card-header",{staticClass:"app-requirements-header"},[e("h4",{staticClass:"mb-0"},[t._v(" CPU ")])]),e("vue-apex-charts",{staticClass:"mt-1",attrs:{type:"radialBar",height:"200",options:t.cpuRadialBar,series:t.cpu.series}})],1),e("b-card",{attrs:{"no-body":""}},[e("b-card-header",{staticClass:"app-requirements-header"},[e("h4",{staticClass:"mb-0"},[t._v(" RAM ")])]),e("vue-apex-charts",{staticClass:"mt-1",attrs:{type:"radialBar",height:"200",options:t.ramRadialBar,series:t.ram.series}})],1),e("b-card",{attrs:{"no-body":""}},[e("b-card-header",{staticClass:"app-requirements-header"},[e("h4",{staticClass:"mb-0"},[t._v(" HDD ")])]),e("vue-apex-charts",{staticClass:"mt-1",attrs:{type:"radialBar",height:"200",options:t.hddRadialBar,series:t.hdd.series}})],1)],1),e("b-row",{staticClass:"d-lg-none d-sm-none d-md-flex d-none"},[e("b-col",{attrs:{md:"4"}},[e("b-card",{attrs:{"no-body":""}},[e("b-card-header",{staticClass:"app-requirements-header"},[e("h5",{staticClass:"mb-0"},[t._v(" CPU ")])]),e("vue-apex-charts",{staticClass:"mt-1",attrs:{type:"radialBar",height:"200",options:t.cpuRadialBar,series:t.cpu.series}})],1)],1),e("b-col",{attrs:{md:"4"}},[e("b-card",{attrs:{"no-body":""}},[e("b-card-header",{staticClass:"app-requirements-header"},[e("h5",{staticClass:"mb-0"},[t._v(" RAM ")])]),e("vue-apex-charts",{staticClass:"mt-1",attrs:{type:"radialBar",height:"200",options:t.ramRadialBar,series:t.ram.series}})],1)],1),e("b-col",{attrs:{md:"4"}},[e("b-card",{attrs:{"no-body":""}},[e("b-card-header",{staticClass:"app-requirements-header"},[e("h5",{staticClass:"mb-0"},[t._v(" HDD ")])]),e("vue-apex-charts",{staticClass:"mt-1",attrs:{type:"radialBar",height:"200",options:t.hddRadialBar,series:t.hdd.series}})],1)],1)],1),e("b-row",{staticClass:"d-md-none"},[e("b-col",{attrs:{cols:"4"}},[e("b-card",{attrs:{"no-body":""}},[e("b-card-header",{staticClass:"app-requirements-header"},[e("h6",{staticClass:"mb-0"},[t._v(" CPU ")])]),e("vue-apex-charts",{staticClass:"mt-3",attrs:{type:"radialBar",height:"130",options:t.cpuRadialBarSmall,series:t.cpu.series}})],1)],1),e("b-col",{attrs:{cols:"4"}},[e("b-card",{attrs:{"no-body":""}},[e("b-card-header",{staticClass:"app-requirements-header"},[e("h6",{staticClass:"mb-0"},[t._v(" RAM ")])]),e("vue-apex-charts",{staticClass:"mt-3",attrs:{type:"radialBar",height:"130",options:t.ramRadialBarSmall,series:t.ram.series}})],1)],1),e("b-col",{attrs:{cols:"4"}},[e("b-card",{attrs:{"no-body":""}},[e("b-card-header",{staticClass:"app-requirements-header"},[e("h6",{staticClass:"mb-0"},[t._v(" HDD ")])]),e("vue-apex-charts",{staticClass:"mt-3",attrs:{type:"radialBar",height:"130",options:t.hddRadialBarSmall,series:t.hdd.series}})],1)],1)],1)],1)],1),e("b-modal",{attrs:{title:"Extra Component Parameters",size:"lg",centered:"","button-size":"sm","ok-only":"","ok-title":"Close"},model:{value:t.componentParamsModalShowing,callback:function(e){t.componentParamsModalShowing=e},expression:"componentParamsModalShowing"}},[t.currentComponent?e("div",[e("list-entry",{attrs:{title:"Static Parameters",data:t.currentComponent.environmentParameters.join(", ")}}),e("list-entry",{attrs:{title:"Custom Domains",data:t.currentComponent.domains.join(", ")||"none"}}),e("list-entry",{attrs:{title:"Automatic Domains",data:t.constructAutomaticDomains(t.appData.name).join(", ")}}),e("list-entry",{attrs:{title:"Ports",data:t.currentComponent.ports.join(", ")}}),e("list-entry",{attrs:{title:"Container Ports",data:t.currentComponent.containerPorts.join(", ")}}),e("list-entry",{attrs:{title:"Container Data",data:t.currentComponent.containerData}}),e("list-entry",{attrs:{title:"Commands",data:t.currentComponent.commands.length>0?t.currentComponent.commands.join(", "):"none"}})],1):t._e()]),e("b-modal",{attrs:{title:"Finish Launching App?",size:"sm",centered:"","button-size":"sm","ok-title":"Yes","cancel-title":"No"},on:{ok:function(e){t.confirmLaunchDialogCloseShowing=!1,t.launchModalShowing=!1}},model:{value:t.confirmLaunchDialogCloseShowing,callback:function(e){t.confirmLaunchDialogCloseShowing=e},expression:"confirmLaunchDialogCloseShowing"}},[e("h5",{staticClass:"text-center"},[t._v(" Please ensure that you have paid for your app, or saved the payment details for later. ")]),e("br"),e("h5",{staticClass:"text-center"},[t._v(" Close the Launch App dialog? ")])]),e("b-modal",{attrs:{title:"Launching Marketplace App",size:"xlg",centered:"","no-close-on-backdrop":"","no-close-on-esc":"","hide-footer":""},on:{ok:t.confirmLaunchDialogCancel},model:{value:t.launchModalShowing,callback:function(e){t.launchModalShowing=e},expression:"launchModalShowing"}},[e("form-wizard",{ref:"formWizard",staticClass:"wizard-vertical mb-3",attrs:{color:t.tierColors.cumulus,title:null,subtitle:null,layout:"vertical","back-button-text":"Previous"},on:{"on-complete":function(e){return t.confirmLaunchDialogFinish()}},scopedSlots:t._u([{key:"footer",fn:function(a){return[e("div",[a.activeTabIndex>0?e("b-button",{staticClass:"wizard-footer-left",attrs:{type:"button",variant:"outline-dark"},on:{click:function(e){return t.$refs.formWizard.prevTab()}}},[t._v(" Previous ")]):t._e(),e("b-button",{staticClass:"wizard-footer-right",attrs:{type:"button",variant:"outline-dark"},on:{click:function(e){return t.$refs.formWizard.nextTab()}}},[t._v(" "+t._s(a.isLastStep?"Done":"Next")+" ")])],1)]}}])},[e("tab-content",{attrs:{title:"Check Registration"}},[e("b-card",{staticClass:"text-center wizard-card",attrs:{title:"Registration Message"}},[e("div",{staticClass:"text-wrap"},[e("b-form-textarea",{attrs:{id:"registrationmessage",rows:"6",readonly:""},model:{value:t.dataToSign,callback:function(e){t.dataToSign=e},expression:"dataToSign"}}),e("b-icon",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip",value:t.tooltipText,expression:"tooltipText"}],ref:"copyButtonRef",staticClass:"clipboard icon",attrs:{scale:"1.5",icon:"clipboard"},on:{click:t.copyMessageToSign}})],1)])],1),e("tab-content",{attrs:{title:"Sign App Message","before-change":()=>null!==t.signature}},[e("div",{staticClass:"mx-auto",staticStyle:{width:"600px"}},[e("h4",{staticClass:"text-center"},[t._v(" Sign Message with same method you have used for login ")]),e("div",{staticClass:"loginRow mx-auto",staticStyle:{width:"400px"}},[e("a",{on:{click:t.initiateSignWS}},[e("img",{staticClass:"walletIcon",attrs:{src:a(96358),alt:"Flux ID",height:"100%",width:"100%"}})]),e("a",{on:{click:t.initSSP}},[e("img",{staticClass:"walletIcon",attrs:{src:t.isDark?a(56070):a(58962),alt:"SSP",height:"100%",width:"100%"}})])]),e("div",{staticClass:"loginRow mx-auto",staticStyle:{width:"400px"}},[e("a",{on:{click:t.initWalletConnect}},[e("img",{staticClass:"walletIcon",attrs:{src:a(47622),alt:"WalletConnect",height:"100%",width:"100%"}})]),e("a",{on:{click:t.initMetamask}},[e("img",{staticClass:"walletIcon",attrs:{src:a(28125),alt:"Metamask",height:"100%",width:"100%"}})])]),e("div",{staticClass:"loginRow"},[e("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"my-1",staticStyle:{width:"250px"},attrs:{variant:"primary","aria-label":"Flux Single Sign On"},on:{click:t.initSignFluxSSO}},[t._v(" Flux Single Sign On (SSO) ")])],1)]),e("b-form-input",{staticClass:"mb-2",attrs:{id:"signature"},model:{value:t.signature,callback:function(e){t.signature=e},expression:"signature"}})],1),e("tab-content",{attrs:{title:"Register Application","before-change":()=>null!==t.registrationHash}},[e("b-card",{staticClass:"text-center wizard-card",attrs:{title:"Register Application"}},[e("b-card-text",[e("b-icon",{staticClass:"mr-1",attrs:{scale:"1.4",icon:"cash-coin"}}),t._v("Price:  "),e("b",[t._v(t._s(t.appPricePerDeploymentUSD)+" USD + VAT")])],1),e("div",[e("b-button",{staticClass:"my-1",staticStyle:{width:"250px"},attrs:{variant:t.loading||t.completed?"outline-success":"success","aria-label":"Register",disabled:t.loading||t.completed},on:{click:t.register}},[t.loading?[e("b-spinner",{attrs:{small:""}}),t._v(" Processing... ")]:t.completed?[t._v(" Done! ")]:[t._v(" Register ")]],2)],1),t.registrationHash?e("b-card-text",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip"}],staticClass:"mt-1",attrs:{title:t.registrationHash}},[t._v(" Registration Hash Received ")]):t._e()],1)],1),e("tab-content",{attrs:{title:"Send Payment"}},[e("b-row",{staticClass:"match-height"},[e("b-col",{attrs:{xs:"6",lg:"8"}},[e("b-card",{staticClass:"text-center wizard-card",attrs:{title:"Send Payment"}},[e("div",{staticClass:"d-flex justify-content-center align-items-center mb-1"},[e("b-icon",{staticClass:"mr-1",attrs:{scale:"1.4",icon:"cash-coin"}}),t._v("Price:  "),e("b",[t._v(t._s(t.appPricePerDeploymentUSD)+" USD + VAT")])],1),e("b-card-text",[e("b",[t._v("Everything is ready, your payment option links, both for fiat and flux, are valid for the next 30 minutes.")])]),e("br"),t._v(" The application will be subscribed until "),e("b",[t._v(t._s(new Date(t.subscribedTill).toLocaleString("en-GB",t.timeoptions.shortDate)))]),e("br"),t._v(" To finish the application registration, pay your application with your prefered payment method or check below how to pay with Flux crypto currency. ")],1)],1),e("b-col",{attrs:{xs:"6",lg:"4"}},[e("b-card",{staticClass:"text-center wizard-card",attrs:{title:"Pay with Stripe/PayPal"}},[e("div",{staticClass:"loginRow"},[t.stripeEnabled?e("a",{on:{click:t.initStripePay}},[e("img",{staticClass:"stripePay",attrs:{src:a(20134),alt:"Stripe",height:"100%",width:"100%"}})]):t._e(),t.paypalEnabled?e("a",{on:{click:t.initPaypalPay}},[e("img",{staticClass:"paypalPay",attrs:{src:a(36547),alt:"PayPal",height:"100%",width:"100%"}})]):t._e(),t.paypalEnabled||t.stripeEnabled?t._e():e("span",[t._v("Fiat Gateways Unavailable.")])]),t.checkoutLoading?e("div",{attrs:{className:"loginRow"}},[e("b-spinner",{attrs:{variant:"primary"}}),e("div",{staticClass:"text-center"},[t._v(" Checkout Loading ... ")])],1):t._e(),t.fiatCheckoutURL?e("div",{attrs:{className:"loginRow"}},[e("a",{attrs:{href:t.fiatCheckoutURL,target:"_blank",rel:"noopener noreferrer"}},[t._v(" Click here for checkout if not redirected ")])]):t._e()])],1)],1),t.applicationPriceFluxError?t._e():e("b-row",{staticClass:"match-height"},[e("b-col",{attrs:{xs:"6",lg:"8"}},[e("b-card",{staticClass:"text-center wizard-card"},[e("b-card-text",[t._v(" To pay in FLUX, please make a transaction of "),e("b",[t._v(t._s(t.appPricePerDeployment)+" FLUX")]),t._v(" to address"),e("br"),e("b",[t._v("'"+t._s(t.deploymentAddress)+"'")]),e("br"),t._v(" with the following message"),e("br"),e("b",[t._v("'"+t._s(t.registrationHash)+"'")])])],1)],1),e("b-col",{attrs:{xs:"6",lg:"4"}},[e("b-card",[t.applicationPriceFluxDiscount>0?e("h4",[e("kbd",{staticClass:"d-flex justify-content-center bg-primary mb-1"},[t._v("Discount - "+t._s(t.applicationPriceFluxDiscount)+"%")])]):t._e(),e("h4",{staticClass:"text-center mb-2"},[t._v(" Pay with Zelcore/SSP ")]),e("div",{staticClass:"loginRow"},[e("a",{attrs:{href:`zel:?action=pay&coin=zelcash&address=${t.deploymentAddress}&amount=${t.appPricePerDeployment}&message=${t.registrationHash}&icon=https%3A%2F%2Fraw.githubusercontent.com%2Frunonflux%2Fflux%2Fmaster%2Fflux_banner.png`}},[e("img",{staticClass:"walletIcon",attrs:{src:a(96358),alt:"Flux ID",height:"100%",width:"100%"}})]),e("a",{on:{click:t.initSSPpay}},[e("img",{staticClass:"walletIcon",attrs:{src:t.isDark?a(56070):a(58962),alt:"SSP",height:"100%",width:"100%"}})])])])],1)],1)],1)],1)],1)],1)},F=[],R=(a(70560),a(15193)),T=a(86855),z=a(87047),D=a(64206),A=a(50725),P=a(333),$=a(31220),I=a(26253),L=a(58887),M=a(51015),Z=a(8051),B=a(78959),N=a(46709),O=a(82653),E=a(43028),j=a(5870),q=a(85498),U=a(67166),V=a.n(U),W=a(68934),Y=a(51748),J=a(43672),H=a(72918),G=a(93767),K=a(94145),X=a(37307),Q=a(52829),tt=a(5449),et=a(65864),at=a(48764)["lW"];const st="df787edc6839c7de49d527bba9199eaa",it={projectId:st,metadata:{name:"Flux Cloud",description:"Flux, Your Gateway to a Decentralized World",url:"https://home.runonflux.io",icons:["https://home.runonflux.io/img/logo.png"]}},rt={enableDebug:!0},ot=new K.MetaMaskSDK(rt);let nt;const lt=a(80129),ct=a(97218),dt=a(58971),ut=a(79650),pt=a(63005),mt={components:{BButton:R.T,BCard:T._,BCardHeader:z.p,BCardText:D.j,BCol:A.l,BFormInput:r.e,BFormTextarea:P.y,BModal:$.N,BRow:I.T,BTabs:L.M,BTab:M.L,BFormSelect:Z.K,BFormSelectOption:B.c,BFormGroup:N.x,FormWizard:q.FormWizard,TabContent:q.TabContent,ToastificationContent:S.Z,ListEntry:Y.Z,VuePerfectScrollbar:y(),VueApexCharts:V()},directives:{Ripple:b.Z,"b-modal":O.T,"b-toggle":E.M,"b-tooltip":j.o},props:{appData:{type:Object,required:!0},zelid:{type:String,required:!1,default:""},tier:{type:String,required:!0,default:""}},setup(t){const e=(0,g.getCurrentInstance)().proxy,a=(0,x.useToast)(),{skin:s}=(0,X.Z)(),i=(0,g.computed)((()=>"dark"===s.value)),r=t=>"Open"===t?"warning":"Passed"===t?"success":"Unpaid"===t?"info":t&&t.startsWith("Rejected")?"danger":"primary",o=(t,e,s="InfoIcon")=>{a({component:S.Z,props:{title:e,icon:s,variant:t}})},n=(0,g.ref)("");n.value=t.tier;const l=(0,g.ref)("");l.value=t.zelid;const c=(0,g.ref)(!1),d=(0,g.ref)(!1),u=(0,g.ref)(!1),p=(0,g.ref)(!1),m=(0,g.ref)(!1),h=(0,g.ref)(null),v=(0,g.ref)(1),f=(0,g.ref)("fluxappregister"),b=(0,g.ref)(null),w=(0,g.ref)(null),y=(0,g.ref)(null),C=(0,g.ref)(null),k=(0,g.ref)(null),_=(0,g.ref)(0),F=(0,g.ref)(0),R=(0,g.ref)(null),T=(0,g.ref)(!1),z=(0,g.ref)(!1),D=(0,g.ref)(""),A=(0,g.ref)(null),P=(0,g.ref)(!0),$=(0,g.ref)(!0),I=(0,g.ref)(null),L=(0,g.ref)([]),M=(0,g.ref)([]),Z=(0,g.ref)(null),B=(0,g.ref)(null),N=(0,g.ref)(null),O=(0,g.ref)("Copy to clipboard"),E=(0,g.ref)(null),j=(0,g.computed)((()=>e.$store.state.flux.config)),q=(0,g.computed)((()=>k.value+36e5)),U=(0,g.computed)((()=>k.value+2592e6+36e5)),V=()=>{const{protocol:t,hostname:a,port:s}=window.location;let i="";i+=t,i+="//";const r=/[A-Za-z]/g;if(a.split("-")[4]){const t=a.split("-"),e=t[4].split("."),s=+e[0]+1;e[0]=s.toString(),e[2]="api",t[4]="",i+=t.join("-"),i+=e.join(".")}else if(a.match(r)){const t=a.split(".");t[0]="api",i+=t.join(".")}else{if("string"===typeof a&&e.$store.commit("flux/setUserIp",a),+s>16100){const t=+s+1;e.$store.commit("flux/setFluxPort",t)}i+=a,i+=":",i+=j.value.apiPort}const o=dt.get("backendURL")||i,n=`${o}/id/providesign`;return encodeURI(n)},Y=t=>{console.log(t)},K=t=>{const e=lt.parse(t.data);"success"===e.status&&e.data&&(w.value=e.data.signature),console.log(e),console.log(t)},st=t=>{console.log(t)},rt=t=>{console.log(t)},mt=async()=>{try{const t=b.value,e=(0,tt.PR)();if(!e)return void o("warning","Not logged in as SSO. Login with SSO or use different signing method.");const a=e.auth.currentUser.accessToken,s={"Content-Type":"application/json",Authorization:`Bearer ${a}`},i=await ct.post("https://service.fluxcore.ai/api/signMessage",{message:t},{headers:s});if("success"!==i.data?.status&&i.data?.signature)return void o("warning","Failed to sign message, please try again.");w.value=i.data.signature}catch(t){o("warning","Failed to sign message, please try again.")}},gt=async()=>{if(b.value.length>1800){const t=b.value,e={publicid:Math.floor(999999999999999*Math.random()).toString(),public:t};await ct.post("https://storage.runonflux.io/v1/public",e);const a=`zel:?action=sign&message=FLUX_URL=https://storage.runonflux.io/v1/public/${e.publicid}&icon=https%3A%2F%2Fraw.githubusercontent.com%2Frunonflux%2Fflux%2Fmaster%2FzelID.svg&callback=${V()}`;window.location.href=a}else window.location.href=`zel:?action=sign&message=${b.value}&icon=https%3A%2F%2Fraw.githubusercontent.com%2Frunonflux%2Fflux%2Fmaster%2FzelID.svg&callback=${V()}`;const{protocol:t,hostname:a,port:s}=window.location;let i="";i+=t,i+="//";const r=/[A-Za-z]/g;if(a.split("-")[4]){const t=a.split("-"),e=t[4].split("."),s=+e[0]+1;e[0]=s.toString(),e[2]="api",t[4]="",i+=t.join("-"),i+=e.join(".")}else if(a.match(r)){const t=a.split(".");t[0]="api",i+=t.join(".")}else{if("string"===typeof a&&e.$store.commit("flux/setUserIp",a),+s>16100){const t=+s+1;e.$store.commit("flux/setFluxPort",t)}i+=a,i+=":",i+=j.value.apiPort}let o=dt.get("backendURL")||i;o=o.replace("https://","wss://"),o=o.replace("http://","ws://");const n=l.value+k.value;console.log(`signatureMessage: ${n}`);const c=`${o}/ws/sign/${n}`,d=new WebSocket(c);I.value=d,d.onopen=t=>{rt(t)},d.onclose=t=>{st(t)},d.onmessage=t=>{K(t)},d.onerror=t=>{Y(t)}},ht=async()=>{try{await ot.init(),nt=ot.getProvider()}catch(t){console.log(t)}};ht();const vt=async(t,e)=>{try{const a=`0x${at.from(t,"utf8").toString("hex")}`,s=await nt.request({method:"personal_sign",params:[a,e]});console.log(s),w.value=s}catch(a){console.error(a),o("danger",a.message)}},ft=async()=>{try{if(!nt)return void o("danger","Metamask not detected");let t;if(nt&&!nt.selectedAddress){const e=await nt.request({method:"eth_requestAccounts",params:[]});console.log(e),t=e[0]}else t=nt.selectedAddress;vt(b.value,t)}catch(t){o("danger",t.message)}},bt=async()=>{try{if(!window.ssp)return void o("danger","SSP Wallet not installed");const t=await window.ssp.request("sspwid_sign_message",{message:b.value});if("ERROR"===t.status)throw new Error(t.data||t.result);w.value=t.signature}catch(t){o("danger",t.message)}},xt=async()=>{try{if(!window.ssp)return void o("danger","SSP Wallet not installed");const t={message:this.registrationHash,amount:(+this.appPricePerDeployment||0).toString(),address:this.deploymentAddress,chain:"flux"},e=await window.ssp.request("pay",t);if("ERROR"===e.status)throw new Error(e.data||e.result);o("success",`${e.data}: ${e.txid}`)}catch(t){o("danger",t.message)}},St=t=>{const e=window.open(t,"_blank");e.focus()},wt=async()=>{try{R.value=null,T.value=!0;const e=A.value,{name:a}=N.value,s=F.value,{description:i}=N.value,r=localStorage.getItem("zelidauth"),n=lt.parse(r),l={zelid:n.zelid,signature:n.signature,loginPhrase:n.loginPhrase,details:{name:a,description:i,hash:e,price:s,productName:a,success_url:"https://home.runonflux.io/successcheckout",cancel_url:"https://home.runonflux.io",kpi:{origin:"FluxOS",marketplace:!0,registration:!0}}},c=await ct.post(`${et.M}/api/v1/stripe/checkout/create`,l);if("error"===c.data.status)return o("error","Failed to create stripe checkout"),void(T.value=!1);R.value=c.data.data,T.value=!1;try{St(c.data.data)}catch(t){console.log(t),o("error","Failed to open Stripe checkout, pop-up blocked?")}}catch(t){console.log(t),o("error","Failed to create stripe checkout"),T.value=!1}},yt=async()=>{try{R.value=null,T.value=!0;const e=A.value,{name:a}=N.value,s=F.value,{description:i}=N.value;let r=null,n=await ct.get("https://api.ipify.org?format=json").catch((()=>{console.log("Error geting clientIp from api.ipify.org from")}));n&&n.data&&n.data.ip?r=n.data.ip:(n=await ct.get("https://ipinfo.io").catch((()=>{console.log("Error geting clientIp from ipinfo.io from")})),n&&n.data&&n.data.ip?r=n.data.ip:(n=await ct.get("https://api.ip2location.io").catch((()=>{console.log("Error geting clientIp from api.ip2location.io from")})),n&&n.data&&n.data.ip&&(r=n.data.ip)));const l=localStorage.getItem("zelidauth"),c=lt.parse(l),d={zelid:c.zelid,signature:c.signature,loginPhrase:c.loginPhrase,details:{clientIP:r,name:a,description:i,hash:e,price:s,productName:a,return_url:"home.runonflux.io/successcheckout",cancel_url:"home.runonflux.io",kpi:{origin:"FluxOS",marketplace:!0,registration:!0}}},u=await ct.post(`${et.M}/api/v1/paypal/checkout/create`,d);if("error"===u.data.status)return o("error","Failed to create PayPal checkout"),void(T.value=!1);R.value=u.data.data,T.value=!1;try{St(u.data.data)}catch(t){console.log(t),o("error","Failed to open PayPal checkout, pop-up blocked?")}}catch(t){console.log(t),o("error","Failed to create PayPal checkout"),T.value=!1}},Ct=async t=>{console.log(t);const e=await y.value.request({topic:t.topic,chainId:"eip155:1",request:{method:"personal_sign",params:[b.value,t.namespaces.eip155.accounts[0].split(":")[2]]}});console.log(e),w.value=e},kt=async()=>{try{const t=await G.ZP.init(it);y.value=t;const e=t.session.getAll().length-1,a=t.session.getAll()[e];if(!a)throw new Error("WalletConnect session expired. Please log into FluxOS again");Ct(a)}catch(t){console.error(t),o("danger",t.message)}},_t={maxScrollbarLength:150},Ft=t=>t.compose.reduce(((t,e)=>t+e.cpu),0),Rt=t=>t.compose.reduce(((t,e)=>t+e.ram),0),Tt=t=>t.compose.reduce(((t,e)=>t+e.hdd),0),zt=(0,g.ref)({series:[]}),Dt=(0,g.ref)({series:[]}),At=(0,g.ref)({series:[]}),Pt=async t=>{try{const e=t.split(":")[0],a=Number(t.split(":")[1]||16127),{hostname:s}=window.location,i=/[A-Za-z]/g;let r=!0;s.match(i)&&(r=!1);let n=`https://${e.replace(/\./g,"-")}-${a}.node.api.runonflux.io/flux/pgp`;r&&(n=`http://${e}:${a}/flux/pgp`);const l=await ct.get(n);if("error"!==l.data.status){const t=l.data.data;return t}return o("danger",l.data.data.message||l.data.data),null}catch(e){return console.log(e),null}},$t=async()=>{const t=sessionStorage.getItem("flux_enterprise_nodes");if(t)return JSON.parse(t);try{const t=await J.Z.getEnterpriseNodes();if("error"!==t.data.status)return sessionStorage.setItem("flux_enterprise_nodes",JSON.stringify(t.data.data)),t.data.data;o("danger",t.data.data.message||t.data.data)}catch(e){console.log(e)}return[]},It=async(t,e)=>{try{const a=e.map((t=>t.nodekey)),s=await Promise.all(a.map((t=>ut.readKey({armoredKey:t})))),i=await ut.createMessage({text:t.replace("\\“",'\\"')}),r=await ut.encrypt({message:i,encryptionKeys:s});return r}catch(a){return o("danger","Data encryption failed"),null}},Lt=async()=>{const{instances:e}=t.appData,a=+e+3,s=+e+Math.ceil(Math.max(7,.15*+e)),i=await $t(),r=[],o=[],n=i.filter((t=>t.enterprisePoints>0&&t.score>1e3));for(let t=0;te.pubkey===n[t].pubkey)).length,i=r.filter((e=>e.pubkey===n[t].pubkey)).length;if(e+i=s)break}if(r.length{const e=o.find((e=>e.ip===t.ip));if(!e){o.push(t);const e=M.value.find((e=>e.nodeip===t.ip));if(!e){const e=await Pt(t.ip);if(e){const a={nodeip:t.ip,nodekey:e},s=M.value.find((e=>e.nodeip===t.ip));s||M.value.push(a)}}}})),console.log(o),console.log(M.value),o.map((t=>t.ip))};(0,g.watch)((()=>t.appData),(()=>{null!==I.value&&(I.value.close(),I.value=null),zt.value={series:[Ft(t.appData)/15*100]},Dt.value={series:[Rt(t.appData)/59e3*100]},At.value={series:[Tt(t.appData)/820*100]},t.appData.compose.forEach((t=>{const e=t.userEnvironmentParameters||[];e.forEach((e=>{Object.prototype.hasOwnProperty.call(e,"port")&&(e.value=t.ports[e.port])}))})),h.value=t.appData.compose[0],t.appData.isAutoEnterprise&&Lt().then((t=>{L.value=t,console.log("auto selected nodes",t)})).catch(console.log)}));const Mt=t=>`${t}${Date.now()}`,Zt=t=>{if(!l.value)return["No Flux ID"];const e=Mt(t),a=e.toLowerCase(),s=[`${a}.app.runonflux.io`];return s},Bt=(0,g.ref)(null),Nt=async()=>{const t=await J.Z.appsDeploymentInformation(),{data:e}=t.data;"success"===t.data.status?Bt.value=e.address:o("danger",t.data.data.message||t.data.data)};Nt();const Ot=async()=>{try{c.value=!1,d.value=!1;const e=Mt(t.appData.name),a={version:t.appData.version,name:e,description:t.appData.description,owner:l.value,instances:t.appData.instances,compose:[]};if(t.appData.version>=5&&(a.contacts=[],a.geolocation=[],Z.value&&a.geolocation.push(Z.value),B.value)){const t=[B.value],e=Math.floor(999999999999999*Math.random()).toString(),s={contactsid:e,contacts:t},i=await ct.post("https://storage.runonflux.io/v1/contacts",s);if("error"===i.data.status)throw new Error(i.data.message||i.data);o("success","Successful upload of Contact Parameter to Flux Storage"),a.contacts=[`F_S_CONTACTS=https://storage.runonflux.io/v1/contacts/${e}`]}if(t.appData.version>=6&&(a.expire=t.appData.expire||22e3),t.appData.version>=7)if(a.staticip=t.appData.staticip,t.appData.isAutoEnterprise){if(0===L.value.length){const t=await Lt();L.value=t}a.nodes=L.value}else a.nodes=t.appData.nodes||[];for(let l=0;l{s.push(`${t.name}=${t.value}`)})),e.envFluxStorage){const t=Math.floor(999999999999999*Math.random()).toString(),e={envid:t,env:s},a=await ct.post("https://storage.runonflux.io/v1/env",e);if("error"===a.data.status)throw new Error(a.data.message||a.data);o("success","Successful upload of Environment Parameters to Flux Storage"),s=[`F_S_ENV=https://storage.runonflux.io/v1/env/${t}`]}let{ports:r}=e;if(e.portSpecs){r=[];for(let t=0;t=7){n.secrets=t.appData.secrets||"",n.repoauth=t.appData.repoauth||"";const a=[],s=e.userSecrets||[];if(s.forEach((t=>{a.push(`${t.name}=${t.value}`)})),a.length>0){const t=await It(JSON.stringify(a),M.value);if(!t)throw new Error("Secrets failed to encrypt");n.secrets=t}}a.compose.push(n)}N.value=a;const s=await J.Z.appRegistrationVerificaiton(a);if(console.log(s),"error"===s.data.status)throw new Error(s.data.data.message||s.data.data);const i=s.data.data;_.value=0,F.value=0,z.value=!1,D.value="";const r=JSON.parse(JSON.stringify(i));r.priceUSD=t.appData.priceUSD;const n=await J.Z.appPriceUSDandFlux(r);if("error"===n.data.status)throw new Error(n.data.data.message||n.data.data);F.value=+n.data.data.usd,Number.isNaN(+n.data.data.fluxDiscount)?(z.value=!0,o("danger","Not possible to complete payment with Flux crypto currency")):(_.value=+n.data.data.flux,D.value=+n.data.data.fluxDiscount),null!==I.value&&(I.value.close(),I.value=null),k.value=Date.now(),C.value=i,b.value=`${f.value}${v.value}${JSON.stringify(i)}${Date.now()}`,A.value=null,w.value=null,u.value=!0}catch(e){console.log(e),o("danger",e.message||e)}},Et={height:100,type:"radialBar",sparkline:{enabled:!0},dropShadow:{enabled:!0,blur:3,left:1,top:1,opacity:.1}},jt={height:200,type:"radialBar",sparkline:{enabled:!0},dropShadow:{enabled:!0,blur:3,left:1,top:1,opacity:.1}},qt={chart:jt,colors:[W.j.primary],labels:["Cores"],plotOptions:{radialBar:{offsetY:-10,startAngle:-150,endAngle:150,hollow:{size:"77%"},track:{background:W.j.dark,strokeWidth:"50%"},dataLabels:{name:{offsetY:-15,color:W.j.secondary,fontSize:"1.5rem"},value:{formatter:t=>(15*parseFloat(t)/100).toFixed(1),offsetY:10,color:W.j.success,fontSize:"2.86rem",fontWeight:"300"}}}},fill:{type:"gradient",gradient:{shade:"dark",type:"horizontal",shadeIntensity:.5,gradientToColors:[W.j.success],inverseColors:!0,opacityFrom:1,opacityTo:1,stops:[0,100]}},stroke:{lineCap:"round"},grid:{padding:{bottom:30}}},Ut={chart:Et,colors:[W.j.success],labels:["Cores"],plotOptions:{radialBar:{offsetY:-10,startAngle:-150,endAngle:150,hollow:{size:"70%"},track:{background:W.j.success,strokeWidth:"50%"},dataLabels:{name:{offsetY:-15,color:W.j.secondary,fontSize:"1.2rem"},value:{formatter:t=>(15*parseFloat(t)/100).toFixed(1),offsetY:10,color:W.j.success,fontSize:"2rem",fontWeight:"300"}}}},fill:{type:"gradient",gradient:{shade:"dark",type:"horizontal",shadeIntensity:.5,gradientToColors:[W.j.success],inverseColors:!0,opacityFrom:1,opacityTo:1,stops:[0,100]}},stroke:{lineCap:"round"},grid:{padding:{bottom:10}}},Vt={chart:jt,colors:[W.j.primary],labels:["MB"],plotOptions:{radialBar:{offsetY:-10,startAngle:-150,endAngle:150,hollow:{size:"77%"},track:{background:W.j.dark,strokeWidth:"50%"},dataLabels:{name:{offsetY:-15,color:W.j.secondary,fontSize:"1.5rem"},value:{formatter:t=>(59e3*parseFloat(t)/100).toFixed(0),offsetY:10,color:W.j.success,fontSize:"2.86rem",fontWeight:"300"}}}},fill:{type:"gradient",gradient:{shade:"dark",type:"horizontal",shadeIntensity:.5,gradientToColors:[W.j.success],inverseColors:!0,opacityFrom:1,opacityTo:1,stops:[0,100]}},stroke:{lineCap:"round"},grid:{padding:{bottom:30}}},Wt={chart:Et,colors:[W.j.primary],labels:["MB"],plotOptions:{radialBar:{offsetY:-10,startAngle:-150,endAngle:150,hollow:{size:"70%"},track:{background:W.j.dark,strokeWidth:"50%"},dataLabels:{name:{offsetY:-15,color:W.j.secondary,fontSize:"1.2rem"},value:{formatter:t=>(59e3*parseFloat(t)/100).toFixed(0),offsetY:10,color:W.j.success,fontSize:"2rem",fontWeight:"300"}}}},fill:{type:"gradient",gradient:{shade:"dark",type:"horizontal",shadeIntensity:.5,gradientToColors:[W.j.success],inverseColors:!0,opacityFrom:1,opacityTo:1,stops:[0,100]}},stroke:{lineCap:"round"},grid:{padding:{bottom:10}}},Yt={chart:jt,colors:[W.j.primary],labels:["GB"],plotOptions:{radialBar:{offsetY:-10,startAngle:-150,endAngle:150,hollow:{size:"77%"},track:{background:W.j.dark,strokeWidth:"50%"},dataLabels:{name:{offsetY:-15,color:W.j.secondary,fontSize:"1.5rem"},value:{formatter:t=>(820*parseFloat(t)/100).toFixed(0),offsetY:10,color:W.j.success,fontSize:"2.86rem",fontWeight:"300"}}}},fill:{type:"gradient",gradient:{shade:"dark",type:"horizontal",shadeIntensity:.5,gradientToColors:[W.j.success],inverseColors:!0,opacityFrom:1,opacityTo:1,stops:[0,100]}},stroke:{lineCap:"round"},grid:{padding:{bottom:30}}},Jt={chart:Et,colors:[W.j.primary],labels:["GB"],plotOptions:{radialBar:{offsetY:-10,startAngle:-150,endAngle:150,hollow:{size:"70%"},track:{background:W.j.dark,strokeWidth:"50%"},dataLabels:{name:{offsetY:-15,color:W.j.secondary,fontSize:"1.2rem"},value:{formatter:t=>(820*parseFloat(t)/100).toFixed(0),offsetY:10,color:W.j.success,fontSize:"2rem",fontWeight:"300"}}}},fill:{type:"gradient",gradient:{shade:"dark",type:"horizontal",shadeIntensity:.5,gradientToColors:[W.j.success],inverseColors:!0,opacityFrom:1,opacityTo:1,stops:[0,100]}},stroke:{lineCap:"round"},grid:{padding:{bottom:10}}},Ht=async()=>{const{copy:t}=(0,Q.VPI)({source:b.value,legacy:!0});t(),O.value="Copied!",setTimeout((async()=>{await(0,g.nextTick)();const t=E.value;t&&(t.blur(),O.value="")}),1e3),setTimeout((()=>{O.value="Copy to clipboard"}),1500)},Gt=async()=>{const t=localStorage.getItem("zelidauth"),e={type:f.value,version:v.value,appSpecification:C.value,timestamp:k.value,signature:w.value};o("info","Propagating message accross Flux network..."),c.value=!0;const a=await J.Z.registerApp(t,e).catch((t=>{c.value=!1,o("danger",t.message||t)}));c.value=!1,console.log(a),"success"===a.data.status?(d.value=!0,A.value=a.data.data,o("success",a.data.data.message||a.data.data)):o("danger",a.data.data.message||a.data.data);const s=await(0,et.Z)();s&&(P.value=s.stripe,$.value=s.paypal)},Kt=e=>{h.value=t.appData.compose[e]},Xt=()=>{m.value=!0},Qt=t=>{null!==A.value&&(t.preventDefault(),m.value=!0)};return{loading:c,completed:d,perfectScrollbarSettings:_t,resolveTagVariant:r,resolveCpu:Ft,resolveRam:Rt,resolveHdd:Tt,constructAutomaticDomains:Zt,checkFluxSpecificationsAndFormatMessage:Ot,timeoptions:pt,cpuRadialBar:qt,cpuRadialBarSmall:Ut,cpu:zt,ramRadialBar:Vt,ramRadialBarSmall:Wt,ram:Dt,hddRadialBar:Yt,hddRadialBarSmall:Jt,hdd:At,userZelid:l,dataToSign:b,selectedGeolocation:Z,contact:B,signClient:y,signature:w,appPricePerDeployment:_,appPricePerDeploymentUSD:F,applicationPriceFluxDiscount:D,applicationPriceFluxError:z,fiatCheckoutURL:R,checkoutLoading:T,registrationHash:A,deploymentAddress:Bt,stripeEnabled:P,paypalEnabled:$,validTill:q,subscribedTill:U,register:Gt,callbackValue:V,initiateSignWS:gt,initMetamask:ft,initSSP:bt,initSSPpay:xt,initPaypalPay:yt,initStripePay:wt,openSite:St,initSignFluxSSO:mt,initWalletConnect:kt,onSessionConnect:Ct,siwe:vt,copyMessageToSign:Ht,launchModalShowing:u,componentParamsModalShowing:p,confirmLaunchDialogCloseShowing:m,confirmLaunchDialogFinish:Xt,confirmLaunchDialogCancel:Qt,currentComponent:h,componentSelected:Kt,tierColors:H.Z,skin:s,isDark:i,tooltipText:O,copyButtonRef:E}}},gt=mt;var ht=a(1001),vt=(0,ht.Z)(gt,_,F,!1,null,"cde97464",null);const ft=vt.exports;var bt=function(){var t=this,e=t._self._c;return e("div",{staticClass:"app-details"},[e("div",{staticClass:"app-detail-header"},[e("div",{staticClass:"app-header-left d-flex align-items-center flex-grow-1"},[e("span",{staticClass:"go-back mr-1"},[e("feather-icon",{staticClass:"align-bottom",attrs:{icon:t.$store.state.appConfig.isRTL?"ChevronRightIcon":"ChevronLeftIcon",size:"20"},on:{click:function(e){return t.$emit("close-sharednode-view")}}})],1),e("h4",{staticClass:"app-name mb-0 flex-grow-1"},[t._v(" Titan Shared Nodes (Beta) ")]),e("a",{attrs:{href:"https://fluxofficial.medium.com/flux-titan-nodes-guide-useful-staking-e527278b1a2a",target:"_blank",rel:"noopener noreferrer"}},[t._v(" Titan Guide ")])])]),e("vue-perfect-scrollbar",{staticClass:"marketplace-app-list scroll-area",attrs:{settings:t.perfectScrollbarSettings}},[e("b-overlay",{attrs:{variant:"transparent",opacity:"0.95",blur:"5px","no-center":"",show:t.showOverlay()},scopedSlots:t._u([{key:"overlay",fn:function(){return[e("div",{staticClass:"mt-5"},[e("div",{staticClass:"text-center"},[t.titanConfig&&t.titanConfig.maintenanceMessage?e("b-card",{staticClass:"mx-auto",staticStyle:{"max-width":"50rem"},attrs:{"border-variant":"primary",title:"Titan Maintenance"}},[e("h1",[t._v(" "+t._s(t.titanConfig.maintenanceMessage)+" ")])]):e("b-spinner",{staticStyle:{width:"10rem",height:"10rem"},attrs:{type:"border",variant:"danger"}})],1)])]},proxy:!0}])},[e("b-card",{attrs:{"bg-variant":"transparent"}},[e("b-row",{staticClass:"match-height d-xxl-flex d-none"},[e("b-col",{attrs:{xl:"4"}},[e("b-card",{attrs:{"border-variant":"primary","no-body":""}},[e("b-card-title",{staticClass:"text-white text-uppercase shared-node-info-title"},[t._v(" Active Nodes ")]),e("b-card-body",{staticClass:"shared-node-info-body"},[e("h1",{staticClass:"active-node-value"},[t._v(" "+t._s(t.nodes.length)+" ")]),e("div",{staticClass:"d-flex"},[e("h4",{staticClass:"flex-grow-1"},[t._v(" Total: "+t._s(t.totalCollateral.toLocaleString())+" Flux ")]),e("b-avatar",{attrs:{size:"24",variant:"primary",button:""},on:{click:function(e){return t.showNodeInfoDialog()}}},[e("v-icon",{attrs:{scale:"0.9",name:"info"}})],1)],1)])],1)],1),e("b-col",{attrs:{xl:"4"}},[e("b-card",{attrs:{"border-variant":"primary","no-body":""}},[e("b-card-title",{staticClass:"text-white text-uppercase shared-node-info-title"},[t._v(" Titan Stats ")]),e("b-card-body",{staticClass:"shared-node-info-body"},[e("div",{staticClass:"d-flex flex-column"},[e("div",{staticClass:"d-flex flex-row"},[e("h5",{staticClass:"flex-grow-1"},[t._v(" My Flux Total ")]),e("h4",[t._v(" "+t._s(t.myStakes?t.toFixedLocaleString(t.myStakes.reduce(((t,e)=>t+e.collateral),0),0):0)+" ")])]),e("div",{staticClass:"d-flex flex-row"},[e("h5",{staticClass:"flex-grow-1"},[t._v(" Titan Flux Total ")]),e("h4",[t._v(" "+t._s(t.titanStats?t.toFixedLocaleString(t.titanStats.total):"...")+" ")])]),e("div",{staticClass:"d-flex flex-row"},[e("h5",{staticClass:"flex-grow-1"},[t._v(" Current Supply ")]),e("h4",[t._v(" "+t._s(t.titanStats?t.toFixedLocaleString(t.titanStats.currentsupply):"...")+" ")])]),e("div",{staticClass:"d-flex flex-row"},[e("h5",{staticClass:"flex-grow-1"},[t._v(" Max Supply ")]),e("h4",[t._v(" "+t._s(t.titanStats?t.toFixedLocaleString(t.titanStats.maxsupply):"...")+" ")])]),e("div",[e("hr")]),e("div",{staticClass:"d-flex flex-row"},[e("div",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.bottom",value:t.tooMuchStaked?t.titanConfig?t.titanConfig.stakeDisabledMessage:t.defaultStakeDisabledMessage:"",expression:"tooMuchStaked ? (titanConfig ? titanConfig.stakeDisabledMessage : defaultStakeDisabledMessage) : ''",modifiers:{hover:!0,bottom:!0}}],staticClass:"d-flex flex-row flex-grow-1"},[t.userZelid?e("b-button",{staticClass:"flex-grow-1 .btn-relief-primary",attrs:{variant:"gradient-primary",disabled:t.tooMuchStaked},on:{click:function(e){return t.showStakeDialog(!1)}}},[t._v(" Activate Titan ")]):t._e()],1)])])])],1)],1),e("b-col",{attrs:{xl:"4"}},[e("b-card",{attrs:{"border-variant":"primary","no-body":""}},[e("b-card-title",{staticClass:"text-white text-uppercase shared-node-info-title"},[t._v(" Estimated % Lockup in Flux ")]),t.titanConfig?e("b-card-body",{staticClass:"shared-node-info-body"},[t._l(t.titanConfig.lockups,(function(a){return e("div",{key:a.time,staticClass:"lockup"},[e("div",{staticClass:"d-flex flex-row"},[e("h2",{staticClass:"flex-grow-1"},[t._v(" "+t._s(a.name)+" ")]),e("h1",[t._v(" ~"+t._s((100*a.apr).toFixed(2))+"% ")])])])})),e("div",{staticClass:"float-right"},[e("b-avatar",{attrs:{size:"24",variant:"primary",button:""},on:{click:function(e){return t.showAPRInfoDialog()}}},[e("v-icon",{attrs:{scale:"0.9",name:"info"}})],1)],1)],2):t._e()],1)],1)],1),e("b-row",{staticClass:"match-height d-xxl-none d-xl-flex d-lg-flex d-md-flex d-sm-flex"},[e("b-col",{attrs:{sm:"12"}},[e("b-card",{attrs:{"border-variant":"primary","no-body":""}},[e("b-card-title",{staticClass:"text-white text-uppercase",staticStyle:{"padding-left":"1.5rem","padding-top":"1rem","margin-bottom":"0"}},[t._v(" Active Nodes ")]),e("b-row",{staticClass:"match-height"},[e("b-col",{attrs:{cols:"6"}},[e("h1",{staticClass:"active-node-value-xl"},[t._v(" "+t._s(t.nodes.length)+" ")])]),e("b-col",{attrs:{cols:"6"}},[e("h4",{staticClass:"text-center",staticStyle:{"padding-top":"2rem"}},[t._v(" Total: "+t._s(t.totalCollateral.toLocaleString())+" Flux ")]),e("h4",{staticClass:"text-center"},[e("b-avatar",{attrs:{size:"24",variant:"primary",button:""},on:{click:function(e){return t.showNodeInfoDialog()}}},[e("v-icon",{attrs:{scale:"0.9",name:"info"}})],1)],1)])],1)],1)],1),e("b-col",{attrs:{sm:"12"}},[e("b-row",{staticClass:"match-height"},[e("b-col",{attrs:{sm:"6"}},[e("b-card",{attrs:{"border-variant":"primary","no-body":""}},[e("b-card-title",{staticClass:"text-white text-uppercase shared-node-info-title-xl"},[t._v(" Titan Stats ")]),e("b-card-body",{staticClass:"shared-node-info-body-xl"},[e("div",{staticClass:"d-flex flex-column"},[e("div",{staticClass:"d-flex flex-row"},[e("h5",{staticClass:"flex-grow-1"},[t._v(" My Flux Total ")]),e("h4",[t._v(" "+t._s(t.myStakes?t.toFixedLocaleString(t.myStakes.reduce(((t,e)=>t+e.collateral),0),0):0)+" ")])]),e("div",{staticClass:"d-flex flex-row"},[e("h5",{staticClass:"flex-grow-1"},[t._v(" Titan Flux Total ")]),e("h4",[t._v(" "+t._s(t.titanStats?t.toFixedLocaleString(t.titanStats.total):"...")+" ")])]),e("div",{staticClass:"d-flex flex-row"},[e("h5",{staticClass:"flex-grow-1"},[t._v(" Current Supply ")]),e("h4",[t._v(" "+t._s(t.titanStats?t.toFixedLocaleString(t.titanStats.currentsupply):"...")+" ")])]),e("div",{staticClass:"d-flex flex-row"},[e("h5",{staticClass:"flex-grow-1"},[t._v(" Max Supply ")]),e("h4",[t._v(" "+t._s(t.titanStats?t.toFixedLocaleString(t.titanStats.maxsupply):"...")+" ")])]),e("div",[e("hr")]),e("div",{staticClass:"d-flex flex-row"},[e("div",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.bottom",value:t.tooMuchStaked?t.titanConfig?t.titanConfig.stakeDisabledMessage:t.defaultStakeDisabledMessage:"",expression:"tooMuchStaked ? (titanConfig ? titanConfig.stakeDisabledMessage : defaultStakeDisabledMessage) : ''",modifiers:{hover:!0,bottom:!0}}],staticClass:"d-flex flex-row flex-grow-1"},[t.userZelid?e("b-button",{staticClass:"flex-grow-1 .btn-relief-primary",attrs:{variant:"gradient-primary",disabled:t.tooMuchStaked},on:{click:function(e){return t.showStakeDialog(!1)}}},[t._v(" Activate Titan ")]):t._e()],1)])])])],1)],1),e("b-col",{attrs:{sm:"6"}},[e("b-card",{attrs:{"border-variant":"primary","no-body":""}},[e("b-card-title",{staticClass:"text-white text-uppercase shared-node-info-title-xl"},[t._v(" Lockup Period APR ")]),t.titanConfig?e("b-card-body",{staticClass:"shared-node-info-body-xl"},[t._l(t.titanConfig.lockups,(function(a){return e("div",{key:a.time,staticClass:"lockup"},[e("div",{staticClass:"d-flex flex-row"},[e("h4",{staticClass:"flex-grow-1"},[t._v(" "+t._s(a.name)+" ")]),e("h4",[t._v(" ~"+t._s((100*a.apr).toFixed(2))+"% ")])])])})),e("div",{staticClass:"float-right"},[e("b-avatar",{attrs:{size:"24",variant:"primary",button:""},on:{click:function(e){return t.showAPRInfoDialog()}}},[e("v-icon",{attrs:{scale:"0.9",name:"info"}})],1)],1)],2):t._e()],1)],1)],1)],1)],1)],1),t.userZelid?e("b-row",{},[e("b-col",{staticClass:"d-xxl-none d-xl-flex d-lg-flex d-md-flex d-sm-flex"},[e("b-card",{staticClass:"flex-grow-1",attrs:{"no-body":""}},[e("b-card-title",{staticClass:"stakes-title"},[t._v(" Redeem Flux ")]),e("b-card-body",[e("div",{staticClass:"d-flex flex-row"},[e("h5",{staticClass:"flex-grow-1"},[t._v(" Paid: ")]),e("h4",[t._v(" "+t._s(t.calculatePaidRewards())+" Flux ")])]),e("div",{staticClass:"d-flex flex-row"},[e("h5",{staticClass:"flex-grow-1"},[t._v(" Available: ")]),e("h4",[t._v(" "+t._s(t.toFixedLocaleString(t.totalReward,2))+" Flux ")])]),e("div",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.bottom",value:t.totalReward<=(t.titanConfig?t.titanConfig.redeemFee:0)?"Available balance is less than the redeem fee":"",expression:"totalReward <= (titanConfig ? titanConfig.redeemFee : 0) ? 'Available balance is less than the redeem fee' : ''",modifiers:{hover:!0,bottom:!0}}],staticClass:"float-right",staticStyle:{display:"inline-block"}},[t.totalReward>t.minStakeAmount?e("b-button",{staticClass:"mt-2 mr-1",attrs:{disabled:t.totalReward>=t.totalCollateral-t.titanStats.total,variant:"danger",size:"sm",pill:""},on:{click:function(e){return t.showStakeDialog(!0)}}},[t._v(" Re-invest Funds ")]):t._e(),e("b-button",{staticClass:"float-right mt-2",attrs:{id:"redeemButton",variant:"danger",size:"sm",pill:"",disabled:t.totalReward<=(t.titanConfig?t.titanConfig.redeemFee:0)},on:{click:function(e){return t.showRedeemDialog()}}},[t._v(" Redeem ")])],1)])],1)],1),e("b-col",{attrs:{xxl:"9"}},[e("b-card",{staticClass:"sharednodes-container",attrs:{"no-body":""}},[e("b-card-body",[e("b-tabs",[e("b-tab",{attrs:{active:"",title:"Active"}},[e("ul",{staticClass:"marketplace-media-list"},t._l(t.myStakes,(function(a){return e("b-media",{key:a.uuid,attrs:{tag:"li","no-body":""},on:{click:function(e){return t.showActiveStakeInfoDialog(a)}}},[e("b-media-body",{staticClass:"app-media-body",staticStyle:{overflow:"inherit"}},[e("div",{staticClass:"d-flex flex-row row"},[-1===a.confirmations?e("b-avatar",{staticClass:"node-status mt-auto mb-auto",attrs:{size:"48",variant:"danger",button:""},on:{click:[function(e){return t.showPaymentDetailsDialog(a)},function(t){t.stopPropagation()}]}},[e("v-icon",{attrs:{scale:"1.75",name:"hourglass-half"}})],1):t.titanConfig&&a.confirmations>=t.titanConfig.confirms?e("b-avatar",{staticClass:"node-status mt-auto mb-auto",attrs:{size:"48",variant:"light-success"}},[e("v-icon",{attrs:{scale:"1.75",name:"check"}})],1):e("b-avatar",{staticClass:"node-status mt-auto mb-auto",attrs:{size:"48",variant:"light-warning"}},[t._v(" "+t._s(a.confirmations)+"/"+t._s(t.titanConfig?t.titanConfig.confirms:0)+" ")]),e("div",{staticClass:"d-flex flex-column seat-column col",staticStyle:{"flex-grow":"0.8"}},[e("h3",{staticClass:"mr-auto ml-auto mt-auto mb-auto"},[t._v(" "+t._s(a.collateral.toLocaleString())+" Flux ")])]),e("div",{staticClass:"d-flex flex-column seat-column col"},[e("h4",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.top",value:new Date(1e3*a.timestamp).toLocaleString(t.timeoptions),expression:"new Date(stake.timestamp * 1000).toLocaleString(timeoptions)",modifiers:{hover:!0,top:!0}}],staticClass:"mr-auto ml-auto text-center"},[t._v(" Start Date: "+t._s(new Date(1e3*a.timestamp).toLocaleDateString())+" ")]),e("h5",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.top",value:new Date(1e3*a.expiry).toLocaleString(t.timeoptions),expression:"new Date(stake.expiry * 1000).toLocaleString(timeoptions)",modifiers:{hover:!0,top:!0}}],staticClass:"mr-auto ml-auto text-center"},[t._v(" End Date: "+t._s(new Date(1e3*a.expiry).toLocaleDateString())+" ")])]),e("div",{staticClass:"d-flex flex-column seat-column col"},[e("h4",{staticClass:"mr-auto ml-auto"},[t._v(" Paid: "+t._s(t.toFixedLocaleString(a.paid,2))+" Flux ")]),e("h5",{staticClass:"mr-auto ml-auto"},[t._v(" Pending: "+t._s(t.toFixedLocaleString(a.reward,2))+" Flux ")])]),e("div",{staticClass:"d-flex flex-column seat-column col"},[e("h4",{staticClass:"mr-auto ml-auto text-center"},[t._v(" Monthly Flux ")]),t.titanConfig?e("h5",{staticClass:"mr-auto ml-auto"},[t._v(" ~"+t._s(t.toFixedLocaleString(t.calcMonthlyReward(a),2))+" Flux "),a.autoreinvest?e("v-icon",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.top",value:"Stake will auto-reinvest",expression:"'Stake will auto-reinvest'",modifiers:{hover:!0,top:!0}}],attrs:{name:"sync"}}):t._e()],1):e("h5",{staticClass:"mr-auto ml-auto"},[t._v(" ... Flux ")])])],1),a.message?e("div",[e("div",{domProps:{innerHTML:t._s(a.message)}})]):t._e()])],1)})),1)]),t.myExpiredStakes.length>0?e("b-tab",{attrs:{title:"Expired"}},[e("ul",{staticClass:"marketplace-media-list"},t._l(t.myExpiredStakes,(function(a){return e("b-media",{key:a.uuid,attrs:{tag:"li","no-body":""}},[e("b-media-body",{staticClass:"app-media-body",staticStyle:{overflow:"inherit"}},[e("div",{staticClass:"d-flex flex-row row"},[e("b-avatar",{staticClass:"node-status mt-auto mb-auto",attrs:{size:"48",variant:"light-warning"}},[e("v-icon",{attrs:{scale:"1.75",name:"calendar-times"}})],1),e("div",{staticClass:"d-flex flex-column seat-column col",staticStyle:{"flex-grow":"0.8"}},[e("h3",{staticClass:"mr-auto ml-auto mt-auto mb-auto"},[t._v(" "+t._s(a.collateral.toLocaleString())+" Flux ")])]),e("div",{staticClass:"d-flex flex-column seat-column col"},[e("h4",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.top",value:new Date(1e3*a.timestamp).toLocaleString(t.timeoptions),expression:"new Date(stake.timestamp * 1000).toLocaleString(timeoptions)",modifiers:{hover:!0,top:!0}}],staticClass:"mr-auto ml-auto"},[t._v(" Start Date: "+t._s(new Date(1e3*a.timestamp).toLocaleDateString())+" ")]),e("h5",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.top",value:new Date(1e3*a.expiry).toLocaleString(t.timeoptions),expression:"new Date(stake.expiry * 1000).toLocaleString(timeoptions)",modifiers:{hover:!0,top:!0}}],staticClass:"mr-auto ml-auto"},[t._v(" End Date: "+t._s(new Date(1e3*a.expiry).toLocaleDateString())+" ")])]),e("div",{staticClass:"d-flex flex-column seat-column col"},[e("h4",{staticClass:"mr-auto ml-auto"},[t._v(" Paid: "+t._s(5===a.state?t.toFixedLocaleString(a.paid-a.collateral,2):t.toFixedLocaleString(a.paid,2))+" Flux ")]),e("h5",{staticClass:"mr-auto ml-auto"},[t._v(" Pending: "+t._s(t.toFixedLocaleString(a.reward,2))+" Flux ")])]),e("div",{staticClass:"d-flex"},[e("b-button",{staticClass:"float-right mt-1 mb-1",staticStyle:{width:"100px"},attrs:{variant:a.state>=5?"outline-secondary":"danger",size:"sm",disabled:a.state>=5||t.totalReward>=t.totalCollateral-t.titanStats.total,pill:""},on:{click:function(e){return t.showReinvestDialog(a)}}},[t._v(" "+t._s(a.state>=5?"Complete":"Reinvest")+" ")])],1)],1)])],1)})),1)]):t._e(),e("b-tab",{attrs:{title:"Payments"}},[e("ul",{staticClass:"marketplace-media-list"},[e("b-table",{staticClass:"payments-table",attrs:{striped:"",hover:"",responsive:"",items:t.myPayments,fields:t.paymentFields,"show-empty":"","empty-text":"No Payments"},scopedSlots:t._u([{key:"cell(timestamp)",fn:function(e){return[t._v(" "+t._s(new Date(e.item.timestamp).toLocaleString(t.timeoptions))+" ")]}},{key:"cell(total)",fn:function(a){return[e("p",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.right",value:`Amount = ${t.toFixedLocaleString(a.item.total,2)} Flux - ${a.item.fee} Flux redeem fee`,expression:"`Amount = ${toFixedLocaleString(data.item.total, 2)} Flux - ${data.item.fee} Flux redeem fee`",modifiers:{hover:!0,right:!0}}],staticStyle:{"margin-bottom":"0"}},[t._v(" "+t._s(t.toFixedLocaleString(a.item.total-a.item.fee,2))+" Flux ")])]}},{key:"cell(address)",fn:function(a){return[e("a",{attrs:{href:`https://explorer.runonflux.io/address/${a.item.address}`,target:"_blank",rel:"noopener noreferrer"}},[t._v(" "+t._s(a.item.address)+" ")])]}},{key:"cell(txid)",fn:function(a){return[a.item.txid?e("a",{attrs:{href:`https://explorer.runonflux.io/tx/${a.item.txid}`,target:"_blank",rel:"noopener noreferrer"}},[t._v(" View on Explorer ")]):e("h5",[t._v(" "+t._s(a.item.state||"Processing")+" ")])]}}])})],1)])],1)],1)],1)],1),e("b-col",{staticClass:"d-xxl-flex d-xl-none d-lg-none d-md-none d-sm-none",attrs:{xxl:"3"}},[e("b-card",{staticClass:"flex-grow-1",attrs:{"no-body":""}},[e("b-card-title",{staticClass:"stakes-title"},[t._v(" Redeem Flux ")]),e("b-card-body",[e("div",{staticClass:"d-flex flex-row"},[e("h5",{staticClass:"flex-grow-1"},[t._v(" Paid: ")]),e("h4",[t._v(" "+t._s(t.calculatePaidRewards())+" Flux ")])]),e("div",{staticClass:"d-flex flex-row"},[e("h5",{staticClass:"flex-grow-1"},[t._v(" Available: ")]),e("h4",[t._v(" "+t._s(t.toFixedLocaleString(t.totalReward,2))+" Flux ")])]),e("div",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.bottom",value:t.totalReward<=(t.titanConfig?t.titanConfig.minimumRedeem:50)?`Available balance is less than the minimum redeem amount (${t.titanConfig?t.titanConfig.minimumRedeem:50} Flux)`:"",expression:"totalReward <= (titanConfig ? titanConfig.minimumRedeem : 50) ? `Available balance is less than the minimum redeem amount (${(titanConfig ? titanConfig.minimumRedeem : 50)} Flux)` : ''",modifiers:{hover:!0,bottom:!0}}],staticClass:"float-right",staticStyle:{display:"inline-block"}},[t.totalReward>t.minStakeAmount?e("b-button",{staticClass:"mt-2 mr-1",attrs:{disabled:t.totalReward>=t.totalCollateral-t.titanStats.total,variant:"danger",size:"sm",pill:""},on:{click:function(e){return t.showStakeDialog(!0)}}},[t._v(" Re-invest Funds ")]):t._e(),e("b-button",{staticClass:"float-right mt-2",attrs:{id:"redeemButton",variant:"danger",size:"sm",pill:"",disabled:t.totalReward<=(t.titanConfig?t.titanConfig.redeemFee:0)||t.totalReward<=(t.titanConfig?t.titanConfig.minimumRedeem:50)},on:{click:function(e){return t.showRedeemDialog()}}},[t._v(" Redeem ")])],1)])],1)],1)],1):e("b-card",{attrs:{title:"My Active Flux"}},[e("h5",[t._v(" Please login using your Flux ID to view your active Flux ")])])],1)],1),e("b-modal",{attrs:{title:"Titan Nodes",size:"lg",centered:"","button-size":"sm","ok-only":""},on:{ok:()=>t.nodeModalShowing=!1},model:{value:t.nodeModalShowing,callback:function(e){t.nodeModalShowing=e},expression:"nodeModalShowing"}},t._l(t.nodes,(function(a){return e("b-card",{key:a.uuid,attrs:{title:a.name}},[e("b-row",[e("b-col",[e("h5",[t._v(" Location: "+t._s(a.location)+" ")])]),e("b-col",[e("h5",[t._v(" Collateral: "+t._s(t.toFixedLocaleString(a.collateral,0))+" ")])])],1),e("b-row",[e("b-col",[e("h5",[t._v(" Created: "+t._s(new Date(a.created).toLocaleDateString())+" ")])]),e("b-col",[e("b-button",{attrs:{pill:"",size:"sm",variant:"primary"},on:{click:function(e){return t.visitNode(a)}}},[t._v(" Visit ")])],1)],1)],1)})),1),e("b-modal",{attrs:{title:"Lockup APR",size:"md",centered:"","button-size":"sm","ok-only":""},on:{ok:()=>t.aprModalShowing=!1},model:{value:t.aprModalShowing,callback:function(e){t.aprModalShowing=e},expression:"aprModalShowing"}},[e("b-card",{attrs:{title:"APR Calculations"}},[e("p",{staticClass:"text-center"},[t._v(" The APR for a Titan Shared Nodes lockup is dependent on the number of active Stratus nodes on the Flux network and the current block reward. ")]),e("p",{staticClass:"text-center"},[t._v(" APR is calculated using this basic formula: ")]),e("p",{staticClass:"text-center"},[t._v(" Per block reward (11.25) x Blocks per day (720) x 365 /"),e("br"),t._v("  (Number of Stratus nodes * 40,000) ")]),e("p",{staticClass:"text-center"},[e("br"),e("b-avatar",{attrs:{size:"24",variant:"warning",button:""}},[e("v-icon",{attrs:{scale:"0.9",name:"info"}})],1),t._v(" APR does not mean the actual or predicted returns in fiat currency or Flux. ")],1)])],1),e("b-modal",{attrs:{title:"Redeem Rewards",size:"lg",centered:"","button-size":"sm","ok-only":"","no-close-on-backdrop":"","no-close-on-esc":"","ok-title":"Cancel"},on:{ok:function(e){t.redeemModalShowing=!1,t.getMyPayments(!0)}},model:{value:t.redeemModalShowing,callback:function(e){t.redeemModalShowing=e},expression:"redeemModalShowing"}},[e("form-wizard",{staticClass:"wizard-vertical mb-3",attrs:{color:t.tierColors.cumulus,title:null,subtitle:null,layout:"vertical","back-button-text":"Previous"},on:{"on-complete":function(e){return t.confirmRedeemDialogFinish()}}},[e("tab-content",{attrs:{title:"Redeem Amount"}},[e("b-card",{staticClass:"text-center wizard-card",attrs:{title:"Redeem Amount"}},[e("h4",[t._v(" Available: "+t._s(t.toFixedLocaleString(t.totalReward,2))+" Flux ")]),e("h4",{staticStyle:{"margin-top":"10px"}},[t._v(" You will receive ")]),e("h3",[t._v(" "+t._s(t.toFixedLocaleString(t.totalReward-t.calculateRedeemFee(),2))+" Flux ")]),e("h6",[t._v(" ("),e("span",{staticClass:"text-warning"},[t._v("Redeem Fee:")]),t.titanConfig&&t.titanConfig.maxRedeemFee?e("span",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.bottom",value:`Fee of ${t.titanConfig.redeemFee}% of your rewards, capped at ${t.titanConfig.maxRedeemFee} Flux`,expression:"`Fee of ${titanConfig.redeemFee}% of your rewards, capped at ${titanConfig.maxRedeemFee} Flux`",modifiers:{hover:!0,bottom:!0}}],staticClass:"text-danger"},[t._v(" "+t._s(t.toFixedLocaleString(t.calculateRedeemFee(),8))+" Flux ")]):e("span",{staticClass:"text-danger"},[t._v(" "+t._s(t.titanConfig?t.titanConfig.redeemFee:"...")+" Flux ")]),t._v(") ")])])],1),e("tab-content",{attrs:{title:"Redeem Address","before-change":()=>t.checkRedeemAddress()}},[e("b-card",{staticClass:"text-center wizard-card",attrs:{title:"Choose Redeem Address"}},[e("b-form-select",{attrs:{options:t.redeemAddresses,disabled:t.sendingRequest||t.requestSent||t.requestFailed},scopedSlots:t._u([{key:"first",fn:function(){return[e("b-form-select-option",{attrs:{value:null,disabled:""}},[t._v(" -- Please select an address -- ")])]},proxy:!0}]),model:{value:t.redeemAddress,callback:function(e){t.redeemAddress=e},expression:"redeemAddress"}})],1)],1),e("tab-content",{attrs:{title:"Sign Request","before-change":()=>null!==t.signature}},[e("b-card",{staticClass:"text-center wizard-card",attrs:{title:"Sign Redeem Request with Zelcore"}},[e("a",{attrs:{href:t.sendingRequest||t.requestSent||t.requestFailed?"#":`zel:?action=sign&message=${t.dataToSign}&icon=https%3A%2F%2Fraw.githubusercontent.com%2Frunonflux%2Fflux%2Fmaster%2FzelID.svg&callback=${t.callbackValue()}`},on:{click:t.initiateSignWS}},[e("img",{staticClass:"zelidLogin mb-2",attrs:{src:a(96358),alt:"Flux ID",height:"100%",width:"100%"}})]),e("b-form-input",{staticClass:"mb-1",attrs:{id:"data",disabled:!0},model:{value:t.dataToSign,callback:function(e){t.dataToSign=e},expression:"dataToSign"}}),e("b-form-input",{attrs:{id:"signature",disabled:t.sendingRequest||t.requestSent||t.requestFailed},model:{value:t.signature,callback:function(e){t.signature=e},expression:"signature"}})],1)],1),e("tab-content",{attrs:{title:"Request Redeem","before-change":()=>!0===t.requestSent}},[e("b-card",{staticClass:"text-center wizard-card",attrs:{title:"Submit Redeem Request"}},[e("div",{staticClass:"mt-3 mb-auto"},[e("b-button",{attrs:{size:"lg",disabled:t.sendingRequest||t.requestSent,variant:"warning"},on:{click:t.requestRedeem}},[t._v(" Submit Request ")]),t.requestSent?e("h4",{staticClass:"mt-3 text-success"},[t._v(" Redeem request has been received and will be processed within 24 hours ")]):t._e(),t.requestFailed?e("h4",{staticClass:"mt-3 text-danger"},[t._v(" Redeem request failed ")]):t._e()],1)])],1)],1)],1),e("b-modal",{attrs:{title:"Pending Payment",size:"md",centered:"","button-size":"sm","ok-only":"","ok-title":"OK"},on:{ok:function(e){t.paymentDetailsDialogShowing=!1}},model:{value:t.paymentDetailsDialogShowing,callback:function(e){t.paymentDetailsDialogShowing=e},expression:"paymentDetailsDialogShowing"}},[t.selectedStake?e("b-card",{staticClass:"text-center payment-details-card",attrs:{title:"Send Funds"}},[e("b-card-text",[t._v(" To complete activation, send "),e("span",{staticClass:"text-success"},[t._v(t._s(t.toFixedLocaleString(t.selectedStake.collateral)))]),t._v(" FLUX to address"),e("br"),e("h5",{staticClass:"text-wrap ml-auto mr-auto text-warning mt-1",staticStyle:{width:"25rem"}},[t._v(" "+t._s(t.titanConfig.fundingAddress)+" ")]),t._v(" with the following message"),e("br"),e("h5",{staticClass:"text-wrap ml-auto mr-auto text-warning mt-1",staticStyle:{width:"25rem"}},[t._v(" "+t._s(t.selectedStake.signatureHash)+" ")]),e("div",{staticClass:"d-flex flex-row mt-2"},[e("h3",{staticClass:"col text-center mt-2"},[t._v(" Pay with"),e("br"),t._v("Zelcore ")]),e("a",{staticClass:"col",attrs:{href:`zel:?action=pay&coin=zelcash&address=${t.titanConfig.fundingAddress}&amount=${t.selectedStake.collateral}&message=${t.selectedStake.signatureHash}&icon=https%3A%2F%2Fraw.githubusercontent.com%2Frunonflux%2Fflux%2Fmaster%2Fflux_banner.png`}},[e("img",{staticClass:"zelidLogin",attrs:{src:a(96358),alt:"Flux ID",height:"100%",width:"100%"}})])]),e("h5",{staticClass:"mt-1"},[t._v(" This activation will expire if the transaction is not on the blockchain before "),e("span",{staticClass:"text-danger"},[t._v(t._s(new Date(1e3*t.selectedStake.expiry).toLocaleString()))])])])],1):t._e()],1),e("b-modal",{attrs:{title:"Cancel Activation?",size:"sm",centered:"","button-size":"sm","ok-title":"Yes","cancel-title":"No"},on:{ok:function(e){t.confirmStakeDialogCloseShowing=!1,t.stakeModalShowing=!1}},model:{value:t.confirmStakeDialogCloseShowing,callback:function(e){t.confirmStakeDialogCloseShowing=e},expression:"confirmStakeDialogCloseShowing"}},[e("h3",{staticClass:"text-center"},[t._v(" Are you sure you want to cancel activating with Titan? ")])]),e("b-modal",{attrs:{title:"Finish Activation?",size:"sm",centered:"","button-size":"sm","ok-title":"Yes","cancel-title":"No"},on:{ok:function(e){t.confirmStakeDialogFinishShowing=!1,t.stakeModalShowing=!1}},model:{value:t.confirmStakeDialogFinishShowing,callback:function(e){t.confirmStakeDialogFinishShowing=e},expression:"confirmStakeDialogFinishShowing"}},[e("h3",{staticClass:"text-center"},[t._v(" Please ensure that you have sent payment for your activation, or saved the payment details for later. ")]),e("br"),e("h4",{staticClass:"text-center"},[t._v(" Close the dialog? ")])]),e("b-modal",{attrs:{title:"Re-invest Expired",size:"lg",centered:"","no-close-on-backdrop":"","no-close-on-esc":"","button-size":"sm","ok-only":"","ok-title":"Cancel"},on:{ok:function(e){t.reinvestModalShowing=!1}},model:{value:t.reinvestModalShowing,callback:function(e){t.reinvestModalShowing=e},expression:"reinvestModalShowing"}},[e("form-wizard",{staticClass:"wizard-vertical mb-3",attrs:{color:t.tierColors.cumulus,title:null,subtitle:null,layout:"vertical","back-button-text":"Previous"},on:{"on-complete":function(e){return t.reinvestDialogFinish()}}},[e("tab-content",{attrs:{title:"Update"}},[e("b-card",{staticClass:"text-center wizard-card",attrs:{title:"Update"}},[t.selectedStake?e("div",{staticClass:"d-flex flex-column"},[e("b-form-checkbox",{staticClass:"ml-auto mr-auto",staticStyle:{float:"left"},attrs:{disabled:t.stakeRegistered||t.registeringStake||t.stakeRegisterFailed},model:{value:t.selectedStake.autoreinvest,callback:function(e){t.$set(t.selectedStake,"autoreinvest",e)},expression:"selectedStake.autoreinvest"}},[t._v(" Auto-reinvest this Flux after expiry ")]),t.titanConfig&&t.titanConfig.reinvestFee>0&&t.titanConfig.maxReinvestFee?e("div",{staticClass:"mt-2"},[e("h6",[e("span",{staticClass:"text-warning"},[t._v("Re-invest Fee:")]),e("span",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.bottom",value:`Fee of ${t.titanConfig.reinvestFee}% of your rewards, capped at ${t.titanConfig.maxReinvestFee} Flux`,expression:"`Fee of ${titanConfig.reinvestFee}% of your rewards, capped at ${titanConfig.maxReinvestFee} Flux`",modifiers:{hover:!0,bottom:!0}}],staticClass:"text-danger"},[t._v(" "+t._s(t.toFixedLocaleString(t.calculateReinvestFee(),8))+" Flux ")])])]):t._e()],1):t._e()])],1),e("tab-content",{attrs:{title:"Choose Duration","before-change":()=>t.checkReinvestDuration()}},[t.titanConfig?e("b-card",{staticClass:"text-center wizard-card",attrs:{title:"Select Lockup Period"}},t._l(t.titanConfig.lockups,(function(a,s){return e("div",{key:a.time,staticClass:"mb-1"},[e("div",{staticClass:"ml-auto mr-auto"},[e("b-button",{class:s===t.selectedLockupIndex?"selectedLockupButton":"unselectedLockupButton",style:`background-color: ${t.indexedTierColors[s]} !important;`,attrs:{disabled:t.stakeRegistered||t.registeringStake||t.stakeRegisterFailed},on:{click:function(e){return t.selectLockup(s)}}},[t._v(" "+t._s(a.name)+" - ~"+t._s((100*a.apr).toFixed(2))+"% ")])],1)])})),0):t._e()],1),e("tab-content",{attrs:{title:"Signing","before-change":()=>null!==t.signature}},[e("b-card",{staticClass:"text-center wizard-card",attrs:{title:"Sign with Zelcore"}},[e("a",{attrs:{href:t.stakeRegistered||t.registeringStake||t.stakeRegisterFailed?"#":`zel:?action=sign&message=${t.dataToSign}&icon=https%3A%2F%2Fraw.githubusercontent.com%2Frunonflux%2Fflux%2Fmaster%2FzelID.svg&callback=${t.callbackValue()}`},on:{click:t.initiateSignWS}},[e("img",{staticClass:"zelidLogin mb-2",attrs:{src:a(96358),alt:"Flux ID",height:"100%",width:"100%"}})]),e("b-form-input",{staticClass:"mb-1",attrs:{id:"data",disabled:!0},model:{value:t.dataToSign,callback:function(e){t.dataToSign=e},expression:"dataToSign"}}),e("b-form-input",{attrs:{id:"signature",disabled:t.stakeRegistered||t.registeringStake||t.stakeRegisterFailed},model:{value:t.signature,callback:function(e){t.signature=e},expression:"signature"}})],1)],1),e("tab-content",{attrs:{title:"Re-invest Flux","before-change":()=>!0===t.stakeRegistered}},[e("b-card",{staticClass:"text-center wizard-card",attrs:{title:"Re-invest Stake with Titan"}},[e("div",{staticClass:"mt-3 mb-auto"},[e("b-button",{attrs:{size:"lg",disabled:t.registeringStake||t.stakeRegistered,variant:"success"},on:{click:t.reinvestStake}},[t._v(" Re-invest Flux ")]),t.stakeRegistered?e("h4",{staticClass:"mt-3 text-success"},[t._v(" Registration received ")]):t._e(),t.stakeRegisterFailed?e("h4",{staticClass:"mt-3 text-danger"},[t._v(" Registration failed ")]):t._e()],1)])],1)],1)],1),e("b-modal",{attrs:{title:"Active Flux Details",size:"sm",centered:"","button-size":"sm","cancel-title":"Close","ok-title":"Edit"},on:{ok:t.editActiveStake},model:{value:t.activeStakeInfoModalShowing,callback:function(e){t.activeStakeInfoModalShowing=e},expression:"activeStakeInfoModalShowing"}},[t.selectedStake?e("b-card",[e("div",{staticClass:"d-flex"},[e("b-form-checkbox",{staticClass:"ml-auto mr-auto",staticStyle:{float:"left"},attrs:{disabled:""},model:{value:t.selectedStake.autoreinvest,callback:function(e){t.$set(t.selectedStake,"autoreinvest",e)},expression:"selectedStake.autoreinvest"}},[t._v(" Auto-reinvest this Flux after expiry ")])],1)]):t._e()],1),e("b-modal",{attrs:{title:"Edit Active Flux",size:"lg",centered:"","no-close-on-backdrop":"","no-close-on-esc":"","button-size":"sm","ok-only":"","ok-title":"Cancel"},on:{ok:function(e){t.editStakeModalShowing=!1}},model:{value:t.editStakeModalShowing,callback:function(e){t.editStakeModalShowing=e},expression:"editStakeModalShowing"}},[e("form-wizard",{staticClass:"wizard-vertical mb-3",attrs:{color:t.tierColors.cumulus,title:null,subtitle:null,layout:"vertical","back-button-text":"Previous"},on:{"on-complete":function(e){t.editStakeModalShowing=!1,t.getMyStakes(!0)}}},[e("tab-content",{attrs:{title:"Update"}},[e("b-card",{staticClass:"text-center wizard-card",attrs:{title:"Update"}},[t.selectedStake?e("div",{staticClass:"d-flex"},[e("b-form-checkbox",{staticClass:"ml-auto mr-auto",staticStyle:{float:"left"},attrs:{disabled:t.stakeRegistered||t.registeringStake||t.stakeRegisterFailed},model:{value:t.selectedStake.autoreinvest,callback:function(e){t.$set(t.selectedStake,"autoreinvest",e)},expression:"selectedStake.autoreinvest"}},[t._v(" Auto-reinvest this Flux after expiry ")])],1):t._e()])],1),e("tab-content",{attrs:{title:"Signing","before-change":()=>null!==t.signature}},[e("b-card",{staticClass:"text-center wizard-card",attrs:{title:"Sign with Zelcore"}},[e("a",{attrs:{href:t.stakeRegistered||t.registeringStake||t.stakeRegisterFailed?"#":`zel:?action=sign&message=${t.dataToSign}&icon=https%3A%2F%2Fraw.githubusercontent.com%2Frunonflux%2Fflux%2Fmaster%2FzelID.svg&callback=${t.callbackValue()}`},on:{click:t.initiateSignWS}},[e("img",{staticClass:"zelidLogin mb-2",attrs:{src:a(96358),alt:"Flux ID",height:"100%",width:"100%"}})]),e("b-form-input",{staticClass:"mb-1",attrs:{id:"data",disabled:!0},model:{value:t.dataToSign,callback:function(e){t.dataToSign=e},expression:"dataToSign"}}),e("b-form-input",{attrs:{id:"signature",disabled:t.stakeRegistered||t.registeringStake||t.stakeRegisterFailed},model:{value:t.signature,callback:function(e){t.signature=e},expression:"signature"}})],1)],1),e("tab-content",{attrs:{title:"Send to Titan","before-change":()=>!0===t.stakeRegistered}},[e("b-card",{staticClass:"text-center wizard-card",attrs:{title:"Send to Titan"}},[e("div",{staticClass:"mt-3 mb-auto"},[e("b-button",{attrs:{size:"lg",disabled:t.registeringStake||t.stakeRegistered,variant:"success"},on:{click:t.sendModifiedStake}},[t._v(" Send ")]),t.stakeRegistered?e("h4",{staticClass:"mt-3 text-success"},[t._v(" Edits received by Titan ")]):t._e(),t.stakeRegisterFailed?e("h4",{staticClass:"mt-3 text-danger"},[t._v(" Editing failed ")]):t._e()],1)])],1)],1)],1),e("b-modal",{attrs:{title:"Activate Titan",size:"lg",centered:"","no-close-on-backdrop":"","no-close-on-esc":"","button-size":"sm","ok-only":"","ok-title":"Cancel"},on:{ok:t.confirmStakeDialogCancel},model:{value:t.stakeModalShowing,callback:function(e){t.stakeModalShowing=e},expression:"stakeModalShowing"}},[e("form-wizard",{staticClass:"wizard-vertical mb-3",attrs:{color:t.tierColors.cumulus,title:null,subtitle:null,layout:"vertical","back-button-text":"Previous"},on:{"on-complete":function(e){return t.confirmStakeDialogFinish()}}},[e("tab-content",{attrs:{title:"Flux Amount"}},[t.reinvestingNewStake?e("b-card",{staticClass:"text-center wizard-card",attrs:{title:"Re-investing Funds"}},[e("div",[e("h5",{staticClass:"mt-3"},[t._v(" A new Titan slot will be created using your available rewards: ")]),e("h2",{staticClass:"mt-3"},[t._v(" "+t._s(t.toFixedLocaleString(t.totalReward,2))+" Flux ")]),t.titanConfig&&t.titanConfig.reinvestFee>0&&t.titanConfig.maxReinvestFee?e("div",{staticClass:"mt-2"},[e("h6",[e("span",{staticClass:"text-warning"},[t._v("Re-invest Fee:")]),e("span",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.bottom",value:`Fee of ${t.titanConfig.reinvestFee}% of your rewards, capped at ${t.titanConfig.maxReinvestFee} Flux`,expression:"`Fee of ${titanConfig.reinvestFee}% of your rewards, capped at ${titanConfig.maxReinvestFee} Flux`",modifiers:{hover:!0,bottom:!0}}],staticClass:"text-danger"},[t._v(" "+t._s(t.toFixedLocaleString(t.calculateNewStakeReinvestFee(),8))+" Flux ")])])]):t._e()])]):e("b-card",{staticClass:"text-center wizard-card",attrs:{title:"Choose Flux Amount"}},[e("div",[e("h3",{staticClass:"float-left"},[t._v(" "+t._s(t.toFixedLocaleString(t.minStakeAmount))+" ")]),e("h3",{staticClass:"float-right"},[t._v(" "+t._s(t.toFixedLocaleString(t.maxStakeAmount))+" ")])]),e("b-form-input",{attrs:{id:"stakeamount",type:"range",min:t.minStakeAmount,max:t.maxStakeAmount,step:"5",number:"",disabled:t.stakeRegistered||t.registeringStake||t.stakeRegisterFailed},model:{value:t.stakeAmount,callback:function(e){t.stakeAmount=e},expression:"stakeAmount"}}),e("b-form-spinbutton",{staticClass:"stakeAmountSpinner",attrs:{id:"stakeamount-spnner",min:t.minStakeAmount,max:t.maxStakeAmount,size:"lg","formatter-fn":t.toFixedLocaleString,disabled:t.stakeRegistered||t.registeringStake||t.stakeRegisterFailed},model:{value:t.stakeAmount,callback:function(e){t.stakeAmount=e},expression:"stakeAmount"}})],1)],1),e("tab-content",{attrs:{title:"Choose Duration","before-change":()=>t.checkDuration()}},[t.titanConfig?e("b-card",{staticClass:"text-center wizard-card",attrs:{title:"Select Lockup Period"}},[t._l(t.titanConfig.lockups,(function(a,s){return e("div",{key:a.time,staticClass:"mb-1"},[e("div",{staticClass:"ml-auto mr-auto"},[e("b-button",{class:(s===t.selectedLockupIndex?"selectedLockupButton":"unselectedLockupButton")+(t.reinvestingNewStake?"Small":""),style:`background-color: ${t.indexedTierColors[s]} !important;`,attrs:{disabled:t.stakeRegistered||t.registeringStake||t.stakeRegisterFailed},on:{click:function(e){return t.selectLockup(s)}}},[t._v(" "+t._s(a.name)+" - ~"+t._s((100*a.apr).toFixed(2))+"% ")])],1)])})),e("div",{staticClass:"d-flex"},[e("b-form-checkbox",{staticClass:"ml-auto mr-auto",staticStyle:{float:"left"},attrs:{disabled:t.stakeRegistered||t.registeringStake||t.stakeRegisterFailed},model:{value:t.autoReinvestStake,callback:function(e){t.autoReinvestStake=e},expression:"autoReinvestStake"}},[t._v(" Auto-reinvest this Flux after expiry ")])],1)],2):t._e()],1),e("tab-content",{attrs:{title:"Signing","before-change":()=>null!==t.signature}},[e("b-card",{staticClass:"text-center wizard-card",attrs:{title:"Sign with Zelcore"}},[e("a",{attrs:{href:t.stakeRegistered||t.registeringStake||t.stakeRegisterFailed?"#":`zel:?action=sign&message=${t.dataToSign}&icon=https%3A%2F%2Fraw.githubusercontent.com%2Frunonflux%2Fflux%2Fmaster%2FzelID.svg&callback=${t.callbackValue()}`},on:{click:t.initiateSignWS}},[e("img",{staticClass:"zelidLogin mb-2",attrs:{src:a(96358),alt:"Flux ID",height:"100%",width:"100%"}})]),e("b-form-input",{staticClass:"mb-1",attrs:{id:"data",disabled:!0},model:{value:t.dataToSign,callback:function(e){t.dataToSign=e},expression:"dataToSign"}}),e("b-form-input",{attrs:{id:"signature",disabled:t.stakeRegistered||t.registeringStake||t.stakeRegisterFailed},model:{value:t.signature,callback:function(e){t.signature=e},expression:"signature"}})],1)],1),e("tab-content",{attrs:{title:"Register with Titan","before-change":()=>!0===t.stakeRegistered}},[e("b-card",{staticClass:"text-center wizard-card",attrs:{title:"Register with Titan"}},[e("div",{staticClass:"mt-3 mb-auto"},[e("h5",[e("span",{staticClass:"text-danger"},[t._v("IMPORTANT:")]),t._v(" Your funds will be locked until ")]),e("h5",[e("span",{staticClass:"text-warning"},[t._v(t._s(new Date(Date.now()+1e3*t.getLockupDuration()).toLocaleString()))])]),e("h5",{staticClass:"mb-2"},[t._v(" You will not be able to withdraw your Flux until the time has passed. ")]),e("b-button",{attrs:{size:"lg",disabled:t.registeringStake||t.stakeRegistered,variant:"success"},on:{click:t.registerStake}},[t._v(" Register with Titan ")]),t.stakeRegistered?e("h4",{staticClass:"mt-3 text-success"},[t._v(" Registration received ")]):t._e(),t.stakeRegisterFailed?e("h4",{staticClass:"mt-3 text-danger"},[t._v(" Registration failed ")]):t._e()],1)])],1),t.reinvestingNewStake?t._e():e("tab-content",{attrs:{title:"Send Funds"}},[t.titanConfig&&t.signatureHash?e("div",[e("b-card",{staticClass:"text-center wizard-card",attrs:{title:"Send Funds"}},[e("b-card-text",[t._v(" To finish activation, make a transaction of "),e("span",{staticClass:"text-success"},[t._v(t._s(t.toFixedLocaleString(t.stakeAmount)))]),t._v(" FLUX to address"),e("br"),e("h5",{staticClass:"text-wrap ml-auto mr-auto text-warning",staticStyle:{width:"25rem"}},[t._v(" "+t._s(t.titanConfig.fundingAddress)+" ")]),t._v(" with the following message"),e("br")]),e("h5",{staticClass:"text-wrap ml-auto mr-auto text-warning",staticStyle:{width:"25rem"}},[t._v(" "+t._s(t.signatureHash)+" ")]),e("div",{staticClass:"d-flex flex-row mt-2"},[e("h3",{staticClass:"col text-center mt-2"},[t._v(" Pay with"),e("br"),t._v("Zelcore ")]),e("a",{staticClass:"col",attrs:{href:`zel:?action=pay&coin=zelcash&address=${t.titanConfig.fundingAddress}&amount=${t.stakeAmount}&message=${t.signatureHash}&icon=https%3A%2F%2Fraw.githubusercontent.com%2Frunonflux%2Fflux%2Fmaster%2Fflux_banner.png`}},[e("img",{staticClass:"zelidLogin",attrs:{src:a(96358),alt:"Flux ID",height:"100%",width:"100%"}})])])],1)],1):t._e()])],1)],1)],1)},xt=[],St=a(19279),wt=a(49379),yt=a(19692),Ct=a(44390),kt=a(66126),_t=a(1759),Ft=a(16521),Rt=a(87066),Tt=a(51136);const zt=a(80129),Dt=a(58971),At=a(63005),Pt={components:{BAvatar:m.SH,BButton:R.T,BCard:T._,BCardBody:St.O,BCardText:D.j,BCardTitle:wt._,BCol:A.l,BFormCheckbox:yt.l,BFormInput:r.e,BFormSelect:Z.K,BFormSelectOption:B.c,BFormSpinbutton:Ct.G,BMedia:d.P,BMediaBody:u.D,BModal:$.N,BOverlay:kt.X,BRow:I.T,BSpinner:_t.X,BTabs:L.M,BTab:M.L,BTable:Ft.h,FormWizard:q.FormWizard,TabContent:q.TabContent,ToastificationContent:S.Z,VuePerfectScrollbar:y()},directives:{Ripple:b.Z,"b-modal":O.T,"b-toggle":E.M,"b-tooltip":j.o},props:{zelid:{type:String,required:!1,default:""}},setup(t){const e=(0,g.getCurrentInstance)().proxy,a=(0,x.useToast)(),s=(t,e,s="InfoIcon")=>{a({component:S.Z,props:{title:e,icon:s,variant:t},position:"bottom-right"})},i=(0,g.ref)("");i.value=t.tier;const r=(0,g.ref)("");r.value=t.zelid;const o="https://api.titan.runonflux.io",n=(0,g.ref)(0),l=(0,g.ref)(0),c=(0,g.ref)(50),d=(0,g.ref)(50),u=(0,g.ref)(1e3),p=(0,g.ref)(0),m=(0,g.ref)(null),h=(0,g.ref)(null),v=(0,g.ref)(null),f=(0,g.ref)(null),b=(0,g.ref)(null),w=(0,g.ref)(!1),y=(0,g.ref)(!1),C=(0,g.ref)(!1),k=(0,g.computed)((()=>e.$store.state.flux.config)),_=(0,g.ref)(null),F=(0,g.ref)(!0),R=(0,g.ref)(!1),T=(0,g.ref)(!0),z=(0,g.ref)("Too much Flux has registered with Titan, please wait for more Nodes to be made available"),D=(0,g.ref)(0),A=(0,g.ref)(null),P=(0,g.ref)(null),$=(0,g.ref)(!1),I=(0,g.ref)(!1),L=(0,g.ref)(!1),M=(0,g.ref)([H.Z.cumulus,H.Z.nimbus,H.Z.stratus]),Z=()=>{const{protocol:t,hostname:a}=window.location;let s="";s+=t,s+="//";const i=/[A-Za-z]/g;if(a.split("-")[4]){const t=a.split("-"),e=t[4].split("."),i=+e[0]+1;e[0]=i.toString(),e[2]="api",t[4]="",s+=t.join("-"),s+=e.join(".")}else if(a.match(i)){const t=a.split(".");t[0]="api",s+=t.join(".")}else"string"===typeof a&&e.$store.commit("flux/setUserIp",a),s+=a,s+=":",s+=k.value.apiPort;const r=Dt.get("backendURL")||s;return r},B=()=>{const t=Z(),e=`${t}/id/providesign`;return encodeURI(e)},N=t=>{console.log(t)},O=t=>{const e=zt.parse(t.data);"success"===e.status&&e.data&&(h.value=e.data.signature),console.log(e),console.log(t)},E=t=>{console.log(t)},j=t=>{console.log(t)},q=()=>{if(w.value||C.value||y.value)return;const{protocol:t,hostname:a}=window.location;let s="";s+=t,s+="//";const i=/[A-Za-z]/g;if(a.split("-")[4]){const t=a.split("-"),e=t[4].split("."),i=+e[0]+1;e[0]=i.toString(),e[2]="api",t[4]="",s+=t.join("-"),s+=e.join(".")}else if(a.match(i)){const t=a.split(".");t[0]="api",s+=t.join(".")}else"string"===typeof a&&e.$store.commit("flux/setUserIp",a),s+=a,s+=":",s+=k.value.apiPort;let o=Dt.get("backendURL")||s;o=o.replace("https://","wss://"),o=o.replace("http://","ws://");const n=r.value+f.value;console.log(`signatureMessage: ${n}`);const l=`${o}/ws/sign/${n}`;console.log(l);const c=new WebSocket(l);b.value=c,c.onopen=t=>{j(t)},c.onclose=t=>{E(t)},c.onmessage=t=>{O(t)},c.onerror=t=>{N(t)}},U=(0,g.ref)(!1),V=(0,g.ref)(!1),W=(0,g.ref)(!1),Y=(0,g.ref)(!1),J=(0,g.ref)(!1),G=(0,g.ref)(!1),K=(0,g.ref)(!1),X=(0,g.ref)(!1),Q=(0,g.ref)(!1),tt=(0,g.ref)(!1),et={maxScrollbarLength:150},at=(0,g.ref)([]),st=(0,g.ref)(0),it=(0,g.ref)([]),rt=(0,g.ref)([]),ot=(0,g.ref)([]),nt=(0,g.ref)([{key:"timestamp",label:"Date"},{key:"total",label:"Amount"},{key:"address",label:"Address"},{key:"txid",label:"Transaction"}]),lt=(0,g.ref)(),ct=(0,g.ref)(),dt=(0,g.ref)(0),ut=(0,g.ref)(0),pt=async()=>{const t=await Rt["default"].get(`${o}/registermessage`);m.value=t.data,f.value=t.data.substring(t.data.length-13)},mt=async()=>{const t=await Rt["default"].get(`${o}/redeemmessage`);m.value=t.data,f.value=t.data.substring(t.data.length-13)},gt=async()=>{const t=await Rt["default"].get(`${o}/modifymessage`);m.value=t.data,f.value=t.data.substring(t.data.length-13)},ht=async()=>!!A.value&&(await mt(),!0),vt=async()=>{const t=await Rt["default"].get(`${o}/stats`);ct.value=t.data,T.value=st.value<=ct.value.total+lt.value.minStake},ft=(t,e,a,s)=>{const i=e*(100-t.fee)/100,r=720,o=r/s,n=30*o*i,l=n/a,c=12*l,d=(1+c/12)**12-1;return d},bt=t=>{if(0===at.value.length)return 0;const e=ft(t,11.25,4e4,dt.value),a=ft(t,4.6875,12500,ut.value),s=at.value.reduce(((t,e)=>t+(4e4===e.collateral?1:0)),0),i=at.value.reduce(((t,e)=>t+(12500===e.collateral?1:0)),0);return(e*s+a*i)/(s+i)},xt=async()=>{const t=await Rt["default"].get(`${o}/nodes`),e=[];st.value=0,t.data.forEach((t=>{const a=t;e.push(a),st.value+=a.collateral})),at.value=e.sort(((t,e)=>t.name.toLowerCase()>e.name.toLowerCase()?1:-1)),lt.value.lockups.forEach((t=>{t.apr=bt(t)}))},St=async(t=!1)=>{try{if(r.value.length>0){const e=await Rt["default"].get(`${o}/stakes/${r.value}${t?`?timestamp=${Date.now()}`:""}`);if(e.data&&"error"===e.data.status)return;const a=[],s=[],i=Date.now()/1e3;n.value=0,l.value=0,console.log(e.data),e.data.forEach((t=>{t.expiry=4&&(s.push(t),4===t.state&&(l.value+=t.reward-t.collateral)):(a.push(t),l.value+=t.reward),n.value+=t.reward})),it.value=a,rt.value=s}}catch(e){s("danger",e.message||e),console.log(e)}},wt=async(t=!1)=>{if(r.value.length>0){const e=await Rt["default"].get(`${o}/payments/${r.value}${t?`?timestamp=${Date.now()}`:""}`);ot.value=e.data}},yt=async()=>{const t=await Tt.Z.fluxnodeCount();if("error"===t.data.status)return s({component:S.Z,props:{title:t.data.data.message||t.data.data,icon:"InfoIcon",variant:"danger"}}),0;const e=t.data.data;return e},Ct=()=>!(!lt.value||!lt.value.maintenanceMode),kt=async()=>{try{const t=await yt();dt.value=t["stratus-enabled"],ut.value=t["nimbus-enabled"];const e=await Rt["default"].get(`${o}/config`);lt.value=e.data,lt.value.lockups.sort(((t,e)=>t.blocks-e.blocks)),lt.value.lockups.forEach((t=>{t.apr=bt(t)})),e.data.minStake>0&&(d.value=e.data.minStake),e.data.maxStake>0&&(u.value=e.data.maxStake),await xt(),await vt(),St(),wt(),st.value-ct.value.total{kt()}),12e4);const _t=(t=!1)=>{lt.value&<.value.maintenanceMode||(R.value=t,U.value=!0,w.value=!1,y.value=!1,C.value=!1,c.value=d.value,p.value=0,h.value=null,v.value=null)},Ft=()=>{R.value?U.value=!1:W.value=!0,St(!0)},Pt=t=>{t.preventDefault(),V.value=!0},$t=t=>{lt.value&<.value.maintenanceMode||(_.value=JSON.parse(JSON.stringify(t)),Q.value=!0)},It=async()=>{lt.value&<.value.maintenanceMode||(Q.value=!1,await gt(),w.value=!1,y.value=!1,C.value=!1,h.value=null,v.value=null,tt.value=!0)},Lt=async()=>{C.value=!0;const t=localStorage.getItem("zelidauth"),e={stake:_.value.uuid,timestamp:f.value,signature:h.value,data:m.value,autoreinvest:_.value.autoreinvest,reinvest:!1};s("info","Sending modifications to Titan...");const a={headers:{zelidauth:t,backend:Z()}},i=await Rt["default"].post(`${o}/modifystake`,e,a).catch((t=>{console.log(t),y.value=!0,s("danger",t.message||t)}));console.log(i.data),i&&i.data&&"success"===i.data.status?(w.value=!0,s("success",i.data.message||i.data)):(y.value=!0,s("danger",(i.data.data?i.data.data.message:i.data.message)||i.data))},Mt=t=>{lt.value&<.value.maintenanceMode||(w.value=!1,y.value=!1,C.value=!1,p.value=0,h.value=null,v.value=null,_.value=JSON.parse(JSON.stringify(t)),gt(),X.value=!0)},Zt=()=>{St(!0),X.value=!1},Bt=()=>{const t=_.value.reward-_.value.collateral;let e=t*(lt.value.reinvestFee/100);return e>lt.value.maxReinvestFee&&(e=lt.value.maxReinvestFee),e},Nt=()=>{const t=l.value;let e=t*(lt.value.reinvestFee/100);return e>lt.value.maxReinvestFee&&(e=lt.value.maxReinvestFee),e},Ot=()=>{if(!lt.value)return 0;if(!lt.value.maxRedeemFee)return lt.value.redeemFee;const t=l.value;let e=t*(lt.value.redeemFee/100);return e>lt.value.maxRedeemFee&&(e=lt.value.maxRedeemFee),e},Et=t=>{p.value=t},jt=()=>{lt.value&<.value.maintenanceMode||(J.value=!0)},qt=()=>{lt.value&<.value.maintenanceMode||(G.value=!0)},Ut=()=>{if(lt.value&<.value.maintenanceMode)return;const t=[];it.value.forEach((e=>{e.address&&!t.some((t=>t.text===e.address))&&t.push({value:e.uuid,text:e.address})})),rt.value.forEach((e=>{e.address&&!t.some((t=>t.text===e.address))&&t.push({value:e.uuid,text:e.address})})),D.value=lt.value.redeemFee,A.value=null,P.value=t,m.value=null,h.value=null,L.value=!1,$.value=!1,I.value=!1,K.value=!0},Vt=()=>{lt.value&<.value.maintenanceMode||(K.value=!1,St(!0),wt(!0))},Wt=t=>{lt.value&<.value.maintenanceMode||(_.value=JSON.parse(JSON.stringify(t)),Y.value=!0)},Yt=async()=>{C.value=!0;const t=localStorage.getItem("zelidauth"),e={stake:_.value.uuid,timestamp:f.value,signature:h.value,data:m.value,autoreinvest:_.value.autoreinvest,reinvest:!0,lockup:lt.value.lockups[p.value]};s("info","Re-investing with Titan...");const a={headers:{zelidauth:t,backend:Z()}},i=await Rt["default"].post(`${o}/modifystake`,e,a).catch((t=>{console.log(t),y.value=!0,s("danger",t.message||t)}));console.log(i.data),i&&i.data&&"success"===i.data.status?(w.value=!0,s("success",i.data.message||i.data)):(y.value=!0,s("danger",(i.data.data?i.data.data.message:i.data.message)||i.data))},Jt=async()=>{C.value=!0;const t=localStorage.getItem("zelidauth"),e={amount:R.value?0:c.value,lockup:lt.value.lockups[p.value],timestamp:f.value,signature:h.value,data:m.value,autoreinvest:F.value,stakefromrewards:R.value};s("info","Registering with Titan...");const a={headers:{zelidauth:t,backend:Z()}},i=await Rt["default"].post(`${o}/register`,e,a).catch((t=>{console.log(t),y.value=!0,s("danger",t.message||t)}));console.log(i.data),i&&i.data&&"success"===i.data.status?(w.value=!0,v.value=i.data.hash,s("success",i.data.message||i.data)):(y.value=!0,s("danger",(i.data.data?i.data.data.message:i.data.message)||i.data))},Ht=(t,e=0)=>{const a=Math.floor(t*10**e)/10**e;return e<4?a.toLocaleString():`${a}`},Gt=async()=>{L.value=!0;const t=localStorage.getItem("zelidauth"),e={amount:n.value,stake:A.value,timestamp:f.value,signature:h.value,data:m.value};console.log(e),s("info","Sending redeem request to Titan...");const a={headers:{zelidauth:t,backend:Z()}},i=await Rt["default"].post(`${o}/redeem`,e,a).catch((t=>{console.log(t),I.value=!0,s("danger",t.message||t)}));console.log(i.data),i&&i.data&&"success"===i.data.status?($.value=!0,s("success",i.data.message||i.data),kt()):(I.value=!0,s("danger",(i.data.data?i.data.data.message:i.data.message)||i.data))},Kt=t=>{const e=lt.value.lockups.find((e=>e.fee===t.fee));return e?t.collateral*e.apr/12:0},Xt=()=>{let t=it.value?it.value.reduce(((t,e)=>t+e.paid-(e.feePaid??0)),0):0;return t+=rt.value?rt.value.reduce(((t,e)=>t+e.paid-(e.feePaid??0)-(5===e.state?e.collateral:0)),0):0,Ht(t,2)},Qt=t=>{window.open(`http://${t.address}`,"_blank")},te=async()=>(await pt(),p.value>=0&&p.valuelt.value?lt.value.lockups[p.value].time:0,ae=async()=>p.value>=0&&p.value{console.log(D.value);const t=parseFloat(D.value);return console.log(t),console.log(n.value),t>lt.value.redeemFee&&t<=parseFloat(Ht(n.value,2))},ie=t=>`Send a payment of ${t.collateral} Flux to
${lt.value.nodeAddress}
with a message
${t.signatureHash}`;return{perfectScrollbarSettings:et,timeoptions:At,nodes:at,totalCollateral:st,myStakes:it,myExpiredStakes:rt,myPayments:ot,paymentFields:nt,totalReward:n,titanConfig:lt,titanStats:ct,tooMuchStaked:T,defaultStakeDisabledMessage:z,userZelid:r,signature:h,signatureHash:v,dataToSign:m,callbackValue:B,initiateSignWS:q,timestamp:f,getMyStakes:St,getMyPayments:wt,calcAPR:bt,calcMonthlyReward:Kt,calculatePaidRewards:Xt,toFixedLocaleString:Ht,formatPaymentTooltip:ie,showNodeInfoDialog:jt,nodeModalShowing:J,visitNode:Qt,showAPRInfoDialog:qt,aprModalShowing:G,stakeModalShowing:U,showStakeDialog:_t,reinvestingNewStake:R,stakeAmount:c,minStakeAmount:d,maxStakeAmount:u,stakeRegistered:w,stakeRegisterFailed:y,selectedLockupIndex:p,selectLockup:Et,autoReinvestStake:F,registeringStake:C,registerStake:Jt,checkDuration:te,getLockupDuration:ee,getRegistrationMessage:pt,confirmStakeDialogCancel:Pt,confirmStakeDialogCloseShowing:V,confirmStakeDialogFinish:Ft,confirmStakeDialogFinishShowing:W,showActiveStakeInfoDialog:$t,activeStakeInfoModalShowing:Q,editActiveStake:It,editStakeModalShowing:tt,sendModifiedStake:Lt,showReinvestDialog:Mt,getModifyMessage:gt,reinvestModalShowing:X,reinvestStake:Yt,checkReinvestDuration:ae,reinvestDialogFinish:Zt,calculateReinvestFee:Bt,calculateNewStakeReinvestFee:Nt,showPaymentDetailsDialog:Wt,paymentDetailsDialogShowing:Y,selectedStake:_,showOverlay:Ct,showRedeemDialog:Ut,redeemModalShowing:K,redeemAmount:D,redeemAddress:A,redeemAddresses:P,redeemAmountState:se,getRedeemMessage:mt,checkRedeemAddress:ht,sendingRequest:L,requestSent:$,requestFailed:I,requestRedeem:Gt,confirmRedeemDialogFinish:Vt,calculateRedeemFee:Ot,tierColors:H.Z,indexedTierColors:M}}},$t=Pt;var It=(0,ht.Z)($t,bt,xt,!1,null,"7a37a067",null);const Lt=It.exports;var Mt=function(){var t=this,e=t._self._c;return e("div",{staticClass:"sidebar-left"},[e("div",{staticClass:"sidebar"},[e("div",{staticClass:"sidebar-content marketplace-sidebar"},[e("div",{staticClass:"marketplace-app-menu"},[e("div",{staticClass:"add-task"}),e("vue-perfect-scrollbar",{staticClass:"sidebar-menu-list scroll-area",attrs:{settings:t.perfectScrollbarSettings}},[e("b-list-group",{staticClass:"list-group-filters"},t._l(t.taskFilters,(function(a){return e("b-list-group-item",{key:a.title+t.$route.path,attrs:{to:a.route,active:t.isDynamicRouteActive(a.route)},on:{click:function(e){t.$emit("close-app-view"),t.$emit("close-left-sidebar")}}},[e("v-icon",{staticClass:"mr-75 icon-spacing",attrs:{name:a.icon,scale:"1.55"}}),e("span",{staticClass:"line-height-2"},[t._v(t._s(a.title))])],1)})),1),e("hr"),e("b-list-group",{staticClass:"list-group-filters"},t._l(t.nodeActions,(function(a){return e("b-list-group-item",{key:a.title+t.$route.path,attrs:{to:a.route,active:t.isDynamicRouteActive(a.route),target:"_blank",rel:"noopener noreferrer"},on:{click:function(e){t.$emit("close-app-view"),t.$emit("close-left-sidebar"),t.$emit(a.event)}}},[e("v-icon",{staticClass:"mr-75 icon-spacing",attrs:{name:a.icon,scale:"1.55"}}),e("span",{staticClass:"line-height-2"},[t._v(t._s(a.title))])],1)})),1)],1)],1)])])])},Zt=[],Bt=a(70322),Nt=a(88367),Ot=a(82162);const Et={directives:{Ripple:b.Z},components:{BListGroup:Bt.N,BListGroupItem:Nt.f,VuePerfectScrollbar:y()},props:{zelid:{type:String,required:!1,default:""}},setup(t){const e={maxScrollbarLength:60},a=(0,g.ref)("");a.value=t.zelid;const s=[{title:"All Categories",icon:"inbox",route:{name:"apps-marketplace"}}];Ot.categories.forEach((t=>{s.push({title:t.name,icon:t.icon,route:{name:"apps-marketplace-filter",params:{filter:t.name.toLowerCase()}}})}));const i=[{title:"Shared Nodes",icon:"inbox",event:"open-shared-nodes",route:{name:"apps-marketplace-sharednodes"}}];return{perfectScrollbarSettings:e,taskFilters:s,nodeActions:i,isDynamicRouteActive:v._d}}},jt=Et;var qt=(0,ht.Z)(jt,Mt,Zt,!1,null,null,null);const Ut=qt.exports,Vt=a(80129),Wt=a(97218),Yt=a(63005),Jt={components:{BFormInput:r.e,BInputGroup:o.w,BInputGroupPrepend:n.P,BDropdown:l.R,BDropdownItem:c.E,BMedia:d.P,BMediaBody:u.D,BBadge:p.k,BAvatar:m.SH,AppView:ft,SharedNodesView:Lt,CategorySidebar:Ut,VuePerfectScrollbar:y(),ToastificationContent:S.Z},directives:{Ripple:b.Z},setup(){const t=(0,g.ref)(null),e=(0,g.ref)(null),a=(0,g.ref)(""),{route:s,router:i}=(0,v.tv)(),r=(0,g.ref)(!1),o=(0,g.ref)(!1),n=(0,x.useToast)();(0,g.onBeforeMount)((()=>{const t=localStorage.getItem("zelidauth"),a=Vt.parse(t);e.value=a.zelid,o.value="/apps/shared-nodes"===s.value.path}));const l=t=>t.compose.reduce(((t,e)=>t+e.cpu),0),c=t=>t.compose.reduce(((t,e)=>t+e.ram),0),d=t=>t.compose.reduce(((t,e)=>t+e.hdd),0),u=t=>264e3===t.expire?"1 year":66e3===t.expire?"3 months":132e3===t.expire?"6 months":"1 month",{showDetailSidebar:p}=(0,f.w)(),m=(0,g.computed)((()=>s.value.query.sort)),b=(0,g.computed)((()=>s.value.query.q)),w=(0,g.computed)((()=>s.value.params)),y=(0,g.ref)([]),_=["latest","title-asc","title-desc","end-date","cpu","ram","hdd"],F=(0,g.ref)(m.value);(0,g.watch)(m,(t=>{_.includes(t),F.value=t}));const R=()=>{const t=JSON.parse(JSON.stringify(s.value.query));delete t.sort,i.replace({name:s.name,query:t}).catch((()=>{}))},T=(0,g.ref)({}),z=(t,e,a="InfoIcon")=>{n({component:S.Z,props:{title:e,icon:a,variant:t}})},D=t=>{const e=Ot.categories.filter((e=>e.name===t.name));return 0===e.length?Ot.defaultCategory.variant:e[0].variant},A=t=>{const e=Ot.categories.filter((e=>e.name===t.name));return 0===e.length?Ot.defaultCategory.variant:e[0].variant},P=t=>{const e=Ot.categories.filter((e=>e.name===t.name));return 0===e.length?Ot.defaultCategory.icon:e[0].icon},$=(0,g.ref)(b.value);(0,g.watch)(b,(t=>{$.value=t}));const I=t=>{const e=JSON.parse(JSON.stringify(s.value.query));t?e.q=t:delete e.q,i.replace({name:s.name,query:e})},L=t=>{const e=Ot.categories.find((e=>e.name===t));return e||Ot.defaultCategory},M=async()=>{const t=await k.Z.getMarketPlaceURL();if("success"===t.data.status&&t.data.data){const e=await Wt.get(t.data.data);if(console.log(e),"success"===e.data.status){if(y.value=e.data.data.filter((t=>t.visible)),y.value.forEach((t=>{t.extraDetail=L(t.category)})),i.currentRoute.params.filter&&(y.value=y.value.filter((t=>t.extraDetail.name.toLowerCase()===i.currentRoute.params.filter.toLowerCase()))),$.value){const t=$.value.toLowerCase();y.value=y.value.filter((e=>!!e.name.toLowerCase().includes(t)||!!e.description.toLowerCase().includes(t)))}F.value&&y.value.sort(((t,e)=>"title-asc"===F.value?t.name.localeCompare(e.name):"title-desc"===F.value?e.name.localeCompare(t.name):"cpu"===F.value?l(t)-l(e):"ram"===F.value?c(t)-c(e):"hdd"===F.value?d(t)-d(e):"price"===F.value?t.price-e.price:0))}else z("danger",e.data.data.message||e.data.data)}else z("danger",t.data.data.message||t.data.data)};(0,g.watch)([$,F],(()=>M())),(0,g.watch)(w,(()=>{M()}));const Z=async()=>{const t=await C.Z.getFluxNodeStatus();"success"===t.data.status&&(a.value=t.data.data.tier),M()};Z();const B=t=>{T.value=t,r.value=!0},N={maxScrollbarLength:150};return{zelid:e,tier:a,appListRef:t,timeoptions:Yt,app:T,handleAppClick:B,updateRouteQuery:I,searchQuery:$,filteredApps:y,sortOptions:_,resetSortAndNavigate:R,perfectScrollbarSettings:N,resolveTagVariant:D,resolveAvatarVariant:A,resolveAvatarIcon:P,avatarText:h.k3,isAppViewActive:r,isSharedNodesViewActive:o,showDetailSidebar:p,resolveHdd:d,resolveCpu:l,resolveRam:c,adjustPeriod:u}}},Ht=Jt;var Gt=(0,ht.Z)(Ht,s,i,!1,null,null,null);const Kt=Gt.exports},6044:(t,e,a)=>{"use strict";a.d(e,{w:()=>r});var s=a(20144),i=a(73507);const r=()=>{const t=(0,s.ref)(!1),e=(0,s.computed)((()=>i.Z.getters["app/currentBreakPoint"]));return(0,s.watch)(e,((e,a)=>{"md"===a&&"lg"===e&&(t.value=!1)})),{mqShallShowLeftSidebar:t}}},1923:(t,e,a)=>{"use strict";a.d(e,{k3:()=>s});a(70560),a(23646);const s=t=>{if(!t)return"";const e=t.split(" ");return e.map((t=>t.charAt(0).toUpperCase())).join("")}},72918:(t,e,a)=>{"use strict";a.d(e,{Z:()=>i});const s={cumulus:"#2B61D1",nimbus:"#ff9f43",stratus:"#ea5455"},i=s},63005:(t,e,a)=>{"use strict";a.r(e),a.d(e,{default:()=>r});const s={year:"numeric",month:"short",day:"numeric",hour:"2-digit",minute:"2-digit"},i={year:"numeric",month:"short",day:"numeric"},r={shortDate:s,date:i}},65864:(t,e,a)=>{"use strict";a.d(e,{M:()=>i,Z:()=>r});var s=a(87066);const i="https://fiatpaymentsbridge.runonflux.io";async function r(){try{const t=await s["default"].get(`${i}/api/v1/gateway/status`);return"success"===t.data.status?t.data.data:null}catch(t){return null}}},43672:(t,e,a)=>{"use strict";a.d(e,{Z:()=>i});var s=a(80914);const i={listRunningApps(){const t={headers:{"x-apicache-bypass":!0}};return(0,s.Z)().get("/apps/listrunningapps",t)},listAllApps(){const t={headers:{"x-apicache-bypass":!0}};return(0,s.Z)().get("/apps/listallapps",t)},installedApps(){const t={headers:{"x-apicache-bypass":!0}};return(0,s.Z)().get("/apps/installedapps",t)},availableApps(){return(0,s.Z)().get("/apps/availableapps")},getEnterpriseNodes(){return(0,s.Z)().get("/apps/enterprisenodes")},stopApp(t,e){const a={headers:{zelidauth:t,"x-apicache-bypass":!0}};return(0,s.Z)().get(`/apps/appstop/${e}`,a)},startApp(t,e){const a={headers:{zelidauth:t}};return(0,s.Z)().get(`/apps/appstart/${e}`,a)},pauseApp(t,e){const a={headers:{zelidauth:t}};return(0,s.Z)().get(`/apps/apppause/${e}`,a)},unpauseApp(t,e){const a={headers:{zelidauth:t}};return(0,s.Z)().get(`/apps/appunpause/${e}`,a)},restartApp(t,e){const a={headers:{zelidauth:t}};return(0,s.Z)().get(`/apps/apprestart/${e}`,a)},removeApp(t,e){const a={headers:{zelidauth:t},onDownloadProgress(t){console.log(t)}};return(0,s.Z)().get(`/apps/appremove/${e}`,a)},registerApp(t,e){const a={headers:{zelidauth:t}};return(0,s.Z)().post("/apps/appregister",JSON.stringify(e),a)},updateApp(t,e){const a={headers:{zelidauth:t}};return(0,s.Z)().post("/apps/appupdate",JSON.stringify(e),a)},checkCommunication(){return(0,s.Z)().get("/flux/checkcommunication")},checkDockerExistance(t,e){const a={headers:{zelidauth:t}};return(0,s.Z)().post("/apps/checkdockerexistance",JSON.stringify(e),a)},appsRegInformation(){return(0,s.Z)().get("/apps/registrationinformation")},appsDeploymentInformation(){return(0,s.Z)().get("/apps/deploymentinformation")},getAppLocation(t){return(0,s.Z)().get(`/apps/location/${t}`)},globalAppSpecifications(){return(0,s.Z)().get("/apps/globalappsspecifications")},permanentMessagesOwner(t){return(0,s.Z)().get(`/apps/permanentmessages?owner=${t}`)},getInstalledAppSpecifics(t){return(0,s.Z)().get(`/apps/installedapps/${t}`)},getAppSpecifics(t){return(0,s.Z)().get(`/apps/appspecifications/${t}`)},getAppOwner(t){return(0,s.Z)().get(`/apps/appowner/${t}`)},getAppLogsTail(t,e){const a={headers:{zelidauth:t}};return(0,s.Z)().get(`/apps/applog/${e}/100`,a)},getAppTop(t,e){const a={headers:{zelidauth:t}};return(0,s.Z)().get(`/apps/apptop/${e}`,a)},getAppInspect(t,e){const a={headers:{zelidauth:t}};return(0,s.Z)().get(`/apps/appinspect/${e}`,a)},getAppStats(t,e){const a={headers:{zelidauth:t}};return(0,s.Z)().get(`/apps/appstats/${e}`,a)},getAppChanges(t,e){const a={headers:{zelidauth:t}};return(0,s.Z)().get(`/apps/appchanges/${e}`,a)},getAppExec(t,e,a,i){const r={headers:{zelidauth:t}},o={appname:e,cmd:a,env:JSON.parse(i)};return(0,s.Z)().post("/apps/appexec",JSON.stringify(o),r)},reindexGlobalApps(t){return(0,s.Z)().get("/apps/reindexglobalappsinformation",{headers:{zelidauth:t}})},reindexLocations(t){return(0,s.Z)().get("/apps/reindexglobalappslocation",{headers:{zelidauth:t}})},rescanGlobalApps(t,e,a){return(0,s.Z)().get(`/apps/rescanglobalappsinformation/${e}/${a}`,{headers:{zelidauth:t}})},getFolder(t,e){return(0,s.Z)().get(`/apps/fluxshare/getfolder/${e}`,{headers:{zelidauth:t}})},createFolder(t,e){return(0,s.Z)().get(`/apps/fluxshare/createfolder/${e}`,{headers:{zelidauth:t}})},getFile(t,e){return(0,s.Z)().get(`/apps/fluxshare/getfile/${e}`,{headers:{zelidauth:t}})},removeFile(t,e){return(0,s.Z)().get(`/apps/fluxshare/removefile/${e}`,{headers:{zelidauth:t}})},shareFile(t,e){return(0,s.Z)().get(`/apps/fluxshare/sharefile/${e}`,{headers:{zelidauth:t}})},unshareFile(t,e){return(0,s.Z)().get(`/apps/fluxshare/unsharefile/${e}`,{headers:{zelidauth:t}})},removeFolder(t,e){return(0,s.Z)().get(`/apps/fluxshare/removefolder/${e}`,{headers:{zelidauth:t}})},fileExists(t,e){return(0,s.Z)().get(`/apps/fluxshare/fileexists/${e}`,{headers:{zelidauth:t}})},storageStats(t){return(0,s.Z)().get("/apps/fluxshare/stats",{headers:{zelidauth:t}})},renameFileFolder(t,e,a){return(0,s.Z)().get(`/apps/fluxshare/rename/${e}/${a}`,{headers:{zelidauth:t}})},appPrice(t){return(0,s.Z)().post("/apps/calculateprice",JSON.stringify(t))},appPriceUSDandFlux(t){return(0,s.Z)().post("/apps/calculatefiatandfluxprice",JSON.stringify(t))},appRegistrationVerificaiton(t){return(0,s.Z)().post("/apps/verifyappregistrationspecifications",JSON.stringify(t))},appUpdateVerification(t){return(0,s.Z)().post("/apps/verifyappupdatespecifications",JSON.stringify(t))},getAppMonitoring(t,e){const a={headers:{zelidauth:t}};return(0,s.Z)().get(`/apps/appmonitor/${e}`,a)},startAppMonitoring(t,e){const a={headers:{zelidauth:t}};return e?(0,s.Z)().get(`/apps/startmonitoring/${e}`,a):(0,s.Z)().get("/apps/startmonitoring",a)},stopAppMonitoring(t,e,a){const i={headers:{zelidauth:t}};return e&&a?(0,s.Z)().get(`/apps/stopmonitoring/${e}/${a}`,i):e?(0,s.Z)().get(`/apps/stopmonitoring/${e}`,i):a?(0,s.Z)().get(`/apps/stopmonitoring?deletedata=${a}`,i):(0,s.Z)().get("/apps/stopmonitoring",i)},justAPI(){return(0,s.Z)()}}},51136:(t,e,a)=>{"use strict";a.d(e,{Z:()=>i});var s=a(80914);const i={listFluxNodes(){return(0,s.Z)().get("/daemon/listzelnodes")},fluxnodeCount(){return(0,s.Z)().get("/daemon/getzelnodecount")},blockReward(){return(0,s.Z)().get("/daemon/getblocksubsidy")}}},39055:(t,e,a)=>{"use strict";a.d(e,{Z:()=>i});var s=a(80914);const i={softUpdateFlux(t){return(0,s.Z)().get("/flux/softupdateflux",{headers:{zelidauth:t}})},softUpdateInstallFlux(t){return(0,s.Z)().get("/flux/softupdatefluxinstall",{headers:{zelidauth:t}})},updateFlux(t){return(0,s.Z)().get("/flux/updateflux",{headers:{zelidauth:t}})},hardUpdateFlux(t){return(0,s.Z)().get("/flux/hardupdateflux",{headers:{zelidauth:t}})},rebuildHome(t){return(0,s.Z)().get("/flux/rebuildhome",{headers:{zelidauth:t}})},updateDaemon(t){return(0,s.Z)().get("/flux/updatedaemon",{headers:{zelidauth:t}})},reindexDaemon(t){return(0,s.Z)().get("/flux/reindexdaemon",{headers:{zelidauth:t}})},updateBenchmark(t){return(0,s.Z)().get("/flux/updatebenchmark",{headers:{zelidauth:t}})},getFluxVersion(){return(0,s.Z)().get("/flux/version")},broadcastMessage(t,e){const a=e,i={headers:{zelidauth:t}};return(0,s.Z)().post("/flux/broadcastmessage",JSON.stringify(a),i)},connectedPeers(){return(0,s.Z)().get(`/flux/connectedpeers?timestamp=${Date.now()}`)},connectedPeersInfo(){return(0,s.Z)().get(`/flux/connectedpeersinfo?timestamp=${Date.now()}`)},incomingConnections(){return(0,s.Z)().get(`/flux/incomingconnections?timestamp=${Date.now()}`)},incomingConnectionsInfo(){return(0,s.Z)().get(`/flux/incomingconnectionsinfo?timestamp=${Date.now()}`)},addPeer(t,e){return(0,s.Z)().get(`/flux/addpeer/${e}`,{headers:{zelidauth:t}})},removePeer(t,e){return(0,s.Z)().get(`/flux/removepeer/${e}`,{headers:{zelidauth:t}})},removeIncomingPeer(t,e){return(0,s.Z)().get(`/flux/removeincomingpeer/${e}`,{headers:{zelidauth:t}})},adjustKadena(t,e,a){return(0,s.Z)().get(`/flux/adjustkadena/${e}/${a}`,{headers:{zelidauth:t}})},adjustRouterIP(t,e){return(0,s.Z)().get(`/flux/adjustrouterip/${e}`,{headers:{zelidauth:t}})},adjustBlockedPorts(t,e){const a={blockedPorts:e},i={headers:{zelidauth:t}};return(0,s.Z)().post("/flux/adjustblockedports",a,i)},adjustAPIPort(t,e){return(0,s.Z)().get(`/flux/adjustapiport/${e}`,{headers:{zelidauth:t}})},adjustBlockedRepositories(t,e){const a={blockedRepositories:e},i={headers:{zelidauth:t}};return(0,s.Z)().post("/flux/adjustblockedrepositories",a,i)},getKadenaAccount(){const t={headers:{"x-apicache-bypass":!0}};return(0,s.Z)().get("/flux/kadena",t)},getRouterIP(){const t={headers:{"x-apicache-bypass":!0}};return(0,s.Z)().get("/flux/routerip",t)},getBlockedPorts(){const t={headers:{"x-apicache-bypass":!0}};return(0,s.Z)().get("/flux/blockedports",t)},getAPIPort(){const t={headers:{"x-apicache-bypass":!0}};return(0,s.Z)().get("/flux/apiport",t)},getBlockedRepositories(){const t={headers:{"x-apicache-bypass":!0}};return(0,s.Z)().get("/flux/blockedrepositories",t)},getMarketPlaceURL(){return(0,s.Z)().get("/flux/marketplaceurl")},getZelid(){const t={headers:{"x-apicache-bypass":!0}};return(0,s.Z)().get("/flux/zelid",t)},getStaticIpInfo(){return(0,s.Z)().get("/flux/staticip")},restartFluxOS(t){const e={headers:{zelidauth:t,"x-apicache-bypass":!0}};return(0,s.Z)().get("/flux/restart",e)},tailFluxLog(t,e){return(0,s.Z)().get(`/flux/tail${t}log`,{headers:{zelidauth:e}})},justAPI(){return(0,s.Z)()},cancelToken(){return s.S}}},67166:function(t,e,a){(function(e,s){t.exports=s(a(47514))})(0,(function(t){"use strict";function e(t){return e="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},e(t)}function a(t,e,a){return e in t?Object.defineProperty(t,e,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[e]=a,t}t=t&&t.hasOwnProperty("default")?t["default"]:t;var s={props:{options:{type:Object},type:{type:String},series:{type:Array,required:!0,default:function(){return[]}},width:{default:"100%"},height:{default:"auto"}},data:function(){return{chart:null}},beforeMount:function(){window.ApexCharts=t},mounted:function(){this.init()},created:function(){var t=this;this.$watch("options",(function(e){!t.chart&&e?t.init():t.chart.updateOptions(t.options)})),this.$watch("series",(function(e){!t.chart&&e?t.init():t.chart.updateSeries(t.series)}));var e=["type","width","height"];e.forEach((function(e){t.$watch(e,(function(){t.refresh()}))}))},beforeDestroy:function(){this.chart&&this.destroy()},render:function(t){return t("div")},methods:{init:function(){var e=this,a={chart:{type:this.type||this.options.chart.type||"line",height:this.height,width:this.width,events:{}},series:this.series};Object.keys(this.$listeners).forEach((function(t){a.chart.events[t]=e.$listeners[t]}));var s=this.extend(this.options,a);return this.chart=new t(this.$el,s),this.chart.render()},isObject:function(t){return t&&"object"===e(t)&&!Array.isArray(t)&&null!=t},extend:function(t,e){var s=this;"function"!==typeof Object.assign&&function(){Object.assign=function(t){if(void 0===t||null===t)throw new TypeError("Cannot convert undefined or null to object");for(var e=Object(t),a=1;a=0}}},provide:function(){return{addTab:this.addTab,removeTab:this.removeTab}},data:function(){return{activeTabIndex:0,currentPercentage:0,maxStep:0,loading:!1,tabs:[]}},computed:{slotProps:function(){return{nextTab:this.nextTab,prevTab:this.prevTab,activeTabIndex:this.activeTabIndex,isLastStep:this.isLastStep,fillButtonStyle:this.fillButtonStyle}},tabCount:function(){return this.tabs.length},isLastStep:function(){return this.activeTabIndex===this.tabCount-1},isVertical:function(){return"vertical"===this.layout},displayPrevButton:function(){return 0!==this.activeTabIndex},stepPercentage:function(){return 1/(2*this.tabCount)*100},progressBarStyle:function(){return{backgroundColor:this.color,width:this.progress+"%",color:this.color}},fillButtonStyle:function(){return{backgroundColor:this.color,borderColor:this.color,color:"white"}},progress:function(){return this.activeTabIndex>0?this.stepPercentage*(2*this.activeTabIndex+1):this.stepPercentage}},methods:{emitTabChange:function(t,e){this.$emit("on-change",t,e),this.$emit("update:startIndex",e)},addTab:function(t){var e=this.$slots.default.indexOf(t.$vnode);t.tabId=""+t.title.replace(/ /g,"")+e,this.tabs.splice(e,0,t),e-1&&(a===this.activeTabIndex&&(this.maxStep=this.activeTabIndex-1,this.changeTab(this.activeTabIndex,this.activeTabIndex-1)),athis.activeTabIndex;if(t<=this.maxStep){var s=function s(){a&&t-e.activeTabIndex>1?(e.changeTab(e.activeTabIndex,e.activeTabIndex+1),e.beforeTabChange(e.activeTabIndex,s)):(e.changeTab(e.activeTabIndex,t),e.afterTabChange(e.activeTabIndex))};a?this.beforeTabChange(this.activeTabIndex,s):(this.setValidationError(null),s())}return t<=this.maxStep},nextTab:function(){var t=this,e=function(){t.activeTabIndex0&&(t.setValidationError(null),t.changeTab(t.activeTabIndex,t.activeTabIndex-1))};this.validateOnBack?this.beforeTabChange(this.activeTabIndex,e):e()},focusNextTab:function(){var t=Object(r.b)(this.tabs);if(-1!==t&&t0){var e=this.tabs[t-1].tabId;Object(r.a)(e)}},setLoading:function(t){this.loading=t,this.$emit("on-loading",t)},setValidationError:function(t){this.tabs[this.activeTabIndex].validationError=t,this.$emit("on-error",t)},validateBeforeChange:function(t,e){var a=this;if(this.setValidationError(null),Object(r.c)(t))this.setLoading(!0),t.then((function(t){a.setLoading(!1);var s=!0===t;a.executeBeforeChange(s,e)})).catch((function(t){a.setLoading(!1),a.setValidationError(t)}));else{var s=!0===t;this.executeBeforeChange(s,e)}},executeBeforeChange:function(t,e){this.$emit("on-validate",t,this.activeTabIndex),t?e():this.tabs[this.activeTabIndex].validationError="error"},beforeTabChange:function(t,e){if(!this.loading){var a=this.tabs[t];if(a&&void 0!==a.beforeChange){var s=a.beforeChange();this.validateBeforeChange(s,e)}else e()}},afterTabChange:function(t){if(!this.loading){var e=this.tabs[t];e&&void 0!==e.afterChange&&e.afterChange()}},changeTab:function(t,e){var a=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],s=this.tabs[t],i=this.tabs[e];return s&&(s.active=!1),i&&(i.active=!0),a&&this.activeTabIndex!==e&&this.emitTabChange(t,e),this.activeTabIndex=e,this.activateTabAndCheckStep(this.activeTabIndex),!0},tryChangeRoute:function(t){this.$router&&t.route&&this.$router.push(t.route)},checkRouteChange:function(t){var e=-1,a=this.tabs.find((function(a,s){var i=a.route===t;return i&&(e=s),i}));if(a&&!a.active){var s=e>this.activeTabIndex;this.navigateToTab(e,s)}},deactivateTabs:function(){this.tabs.forEach((function(t){t.active=!1}))},activateTab:function(t){this.deactivateTabs();var e=this.tabs[t];e&&(e.active=!0,e.checked=!0,this.tryChangeRoute(e))},activateTabAndCheckStep:function(t){this.activateTab(t),t>this.maxStep&&(this.maxStep=t),this.activeTabIndex=t},initializeTabs:function(){this.tabs.length>0&&0===this.startIndex&&this.activateTab(this.activeTabIndex),this.startIndex0&&void 0!==arguments[0]?arguments[0]:[],e=s();return t.findIndex((function(t){return t.tabId===e}))}function r(t){document.getElementById(t).focus()}function o(t){return t.then&&"function"==typeof t.then}e.b=i,e.a=r,e.c=o},function(t,e,a){"use strict";var s=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"vue-form-wizard",class:[t.stepSize,{vertical:t.isVertical}],on:{keyup:[function(e){return"button"in e||!t._k(e.keyCode,"right",39,e.key)?"button"in e&&2!==e.button?null:void t.focusNextTab(e):null},function(e){return"button"in e||!t._k(e.keyCode,"left",37,e.key)?"button"in e&&0!==e.button?null:void t.focusPrevTab(e):null}]}},[a("div",{staticClass:"wizard-header"},[t._t("title",[a("h4",{staticClass:"wizard-title"},[t._v(t._s(t.title))]),t._v(" "),a("p",{staticClass:"category"},[t._v(t._s(t.subtitle))])])],2),t._v(" "),a("div",{staticClass:"wizard-navigation"},[t.isVertical?t._e():a("div",{staticClass:"wizard-progress-with-circle"},[a("div",{staticClass:"wizard-progress-bar",style:t.progressBarStyle})]),t._v(" "),a("ul",{staticClass:"wizard-nav wizard-nav-pills",class:t.stepsClasses,attrs:{role:"tablist"}},[t._l(t.tabs,(function(e,s){return t._t("step",[a("wizard-step",{attrs:{tab:e,"step-size":t.stepSize,transition:t.transition,index:s},nativeOn:{click:function(e){t.navigateToTab(s)},keyup:function(e){if(!("button"in e)&&t._k(e.keyCode,"enter",13,e.key))return null;t.navigateToTab(s)}}})],{tab:e,index:s,navigateToTab:t.navigateToTab,stepSize:t.stepSize,transition:t.transition})}))],2),t._v(" "),a("div",{staticClass:"wizard-tab-content"},[t._t("default",null,null,t.slotProps)],2)]),t._v(" "),t.hideButtons?t._e():a("div",{staticClass:"wizard-card-footer clearfix"},[t._t("footer",[a("div",{staticClass:"wizard-footer-left"},[t.displayPrevButton?a("span",{attrs:{role:"button",tabindex:"0"},on:{click:t.prevTab,keyup:function(e){if(!("button"in e)&&t._k(e.keyCode,"enter",13,e.key))return null;t.prevTab(e)}}},[t._t("prev",[a("wizard-button",{style:t.fillButtonStyle,attrs:{disabled:t.loading}},[t._v("\n "+t._s(t.backButtonText)+"\n ")])],null,t.slotProps)],2):t._e(),t._v(" "),t._t("custom-buttons-left",null,null,t.slotProps)],2),t._v(" "),a("div",{staticClass:"wizard-footer-right"},[t._t("custom-buttons-right",null,null,t.slotProps),t._v(" "),t.isLastStep?a("span",{attrs:{role:"button",tabindex:"0"},on:{click:t.nextTab,keyup:function(e){if(!("button"in e)&&t._k(e.keyCode,"enter",13,e.key))return null;t.nextTab(e)}}},[t._t("finish",[a("wizard-button",{style:t.fillButtonStyle},[t._v("\n "+t._s(t.finishButtonText)+"\n ")])],null,t.slotProps)],2):a("span",{attrs:{role:"button",tabindex:"0"},on:{click:t.nextTab,keyup:function(e){if(!("button"in e)&&t._k(e.keyCode,"enter",13,e.key))return null;t.nextTab(e)}}},[t._t("next",[a("wizard-button",{style:t.fillButtonStyle,attrs:{disabled:t.loading}},[t._v("\n "+t._s(t.nextButtonText)+"\n ")])],null,t.slotProps)],2)],2)],null,t.slotProps)],2)])},i=[],r={render:s,staticRenderFns:i};e.a=r},function(t,e,a){"use strict";var s=a(6),i=a(17),r=a(0),o=r(s.a,i.a,!1,null,null,null);e.a=o.exports},function(t,e,a){"use strict";var s=function(){var t=this,e=t.$createElement;return(t._self._c||e)("div",{directives:[{name:"show",rawName:"v-show",value:t.active,expression:"active"}],staticClass:"wizard-tab-container",attrs:{role:"tabpanel",id:t.tabId,"aria-hidden":!t.active,"aria-labelledby":"step-"+t.tabId}},[t._t("default",null,{active:t.active})],2)},i=[],r={render:s,staticRenderFns:i};e.a=r}])}))},20134:(t,e,a)=>{"use strict";t.exports=a.p+"img/Stripe.svg"},36547:(t,e,a)=>{"use strict";t.exports=a.p+"img/PayPal.png"}}]); \ No newline at end of file diff --git a/HomeUI/dist/js/8755.js b/HomeUI/dist/js/8755.js index 852159ec7..8029fd3b2 100644 --- a/HomeUI/dist/js/8755.js +++ b/HomeUI/dist/js/8755.js @@ -1 +1 @@ -"use strict";(globalThis["webpackChunkflux"]=globalThis["webpackChunkflux"]||[]).push([[8755],{34547:(t,e,s)=>{s.d(e,{Z:()=>u});var a=function(){var t=this,e=t._self._c;return e("div",{staticClass:"toastification"},[e("div",{staticClass:"d-flex align-items-start"},[e("b-avatar",{staticClass:"mr-75 flex-shrink-0",attrs:{variant:t.variant,size:"1.8rem"}},[e("feather-icon",{attrs:{icon:t.icon,size:"15"}})],1),e("div",{staticClass:"d-flex flex-grow-1"},[e("div",[t.title?e("h5",{staticClass:"mb-0 font-weight-bolder toastification-title",class:`text-${t.variant}`,domProps:{textContent:t._s(t.title)}}):t._e(),t.text?e("small",{staticClass:"d-inline-block text-body",domProps:{textContent:t._s(t.text)}}):t._e()]),e("span",{staticClass:"cursor-pointer toastification-close-icon ml-auto",on:{click:function(e){return t.$emit("close-toast")}}},[t.hideClose?t._e():e("feather-icon",{staticClass:"text-body",attrs:{icon:"XIcon"}})],1)])],1)])},r=[],i=s(47389);const n={components:{BAvatar:i.SH},props:{variant:{type:String,default:"primary"},icon:{type:String,default:null},title:{type:String,default:null},text:{type:String,default:null},hideClose:{type:Boolean,default:!1}}},l=n;var o=s(1001),c=(0,o.Z)(l,a,r,!1,null,"22d964ca",null);const u=c.exports},68755:(t,e,s)=>{s.r(e),s.d(e,{default:()=>Z});var a=function(){var t=this,e=t._self._c;return e("div",[e("b-row",{staticClass:"text-center"},[e("b-col",{attrs:{sm:"12",md:"6",lg:"4"}},[e("b-card",{attrs:{title:"Cumulus Rewards"}},[e("b-card-text",[t._v(t._s(t.cumulusCollateral.toLocaleString())+" FLUX Collateral")]),e("app-timeline",{staticClass:"mt-2"},[e("app-timeline-item",[e("div",{staticClass:"d-flex flex-sm-row flex-column flex-wrap justify-content-between mb-1 mb-sm-0"},[e("div",[e("h6",{staticClass:"mb-0"},[t._v(" "+t._s(t.beautifyValue(t.cumulusWeek/7))+" FLUX ")]),e("small",{staticClass:"mt-0"},[t._v("+")]),e("h6",{staticClass:"mb-0"},[t._v(" "+t._s(t.beautifyValue(.1*t.cumulusWeek*t.activeParallelAssets/7))+" FLUX Tokens ")])]),e("small",{staticClass:"text-muted"},[t._v("Per Day")])])]),e("app-timeline-item",[e("div",{staticClass:"d-flex flex-sm-row flex-column flex-wrap justify-content-between mb-1 mb-sm-0"},[e("div",[e("h6",{staticClass:"mb-0"},[t._v(" "+t._s(t.beautifyValue(t.cumulusWeek))+" FLUX ")]),e("small",{staticClass:"mt-0"},[t._v("+")]),e("h6",{staticClass:"mb-0"},[t._v(" "+t._s(t.beautifyValue(.1*t.cumulusWeek*t.activeParallelAssets))+" FLUX Tokens ")])]),e("small",{staticClass:"text-muted"},[t._v("Per Week")])])]),e("app-timeline-item",[e("div",{staticClass:"d-flex flex-sm-row flex-column flex-wrap justify-content-between mb-1 mb-sm-0"},[e("div",[e("h6",{staticClass:"mb-0"},[t._v(" "+t._s(t.beautifyValue(t.cumulusWeek*t.weeksInAMonth))+" FLUX ")]),e("small",{staticClass:"mt-0"},[t._v("+")]),e("h6",{staticClass:"mb-0"},[t._v(" "+t._s(t.beautifyValue(t.cumulusWeek*t.weeksInAMonth*.1*t.activeParallelAssets))+" FLUX Tokens ")])]),e("small",{staticClass:"text-muted"},[t._v("Per Month")])])])],1)],1)],1),e("b-col",{attrs:{sm:"12",md:"6",lg:"4"}},[e("b-card",{attrs:{title:"Nimbus Rewards"}},[e("b-card-text",[t._v(t._s(t.nimbusCollateral.toLocaleString())+" FLUX Collateral")]),e("app-timeline",{staticClass:"mt-2"},[e("app-timeline-item",{attrs:{variant:"warning"}},[e("div",{staticClass:"d-flex flex-sm-row flex-column flex-wrap justify-content-between mb-1 mb-sm-0"},[e("div",[e("h6",{staticClass:"mb-0"},[t._v(" "+t._s(t.beautifyValue(t.nimbusWeek/7))+" FLUX ")]),e("small",{staticClass:"mt-0"},[t._v("+")]),e("h6",{staticClass:"mb-0"},[t._v(" "+t._s(t.beautifyValue(.1*t.nimbusWeek*t.activeParallelAssets/7))+" FLUX Tokens ")])]),e("small",{staticClass:"text-muted"},[t._v("Per Day")])])]),e("app-timeline-item",{attrs:{variant:"warning"}},[e("div",{staticClass:"d-flex flex-sm-row flex-column flex-wrap justify-content-between mb-1 mb-sm-0"},[e("div",[e("h6",{staticClass:"mb-0"},[t._v(" "+t._s(t.beautifyValue(t.nimbusWeek))+" FLUX ")]),e("small",{staticClass:"mt-0"},[t._v("+")]),e("h6",{staticClass:"mb-0"},[t._v(" "+t._s(t.beautifyValue(.1*t.nimbusWeek*t.activeParallelAssets))+" FLUX Tokens ")])]),e("small",{staticClass:"text-muted"},[t._v("Per Week")])])]),e("app-timeline-item",{attrs:{variant:"warning"}},[e("div",{staticClass:"d-flex flex-sm-row flex-column flex-wrap justify-content-between mb-1 mb-sm-0"},[e("div",[e("h6",{staticClass:"mb-0"},[t._v(" "+t._s(t.beautifyValue(t.nimbusWeek*t.weeksInAMonth))+" FLUX ")]),e("small",{staticClass:"mt-0"},[t._v("+")]),e("h6",{staticClass:"mb-0"},[t._v(" "+t._s(t.beautifyValue(t.nimbusWeek*t.weeksInAMonth*.1*t.activeParallelAssets))+" FLUX Tokens ")])]),e("small",{staticClass:"text-muted"},[t._v("Per Month")])])])],1)],1)],1),e("b-col",{attrs:{sm:"12",md:"12",lg:"4"}},[e("b-card",{attrs:{title:"Stratus Rewards"}},[e("b-card-text",[t._v(t._s(t.stratusCollateral.toLocaleString())+" FLUX Collateral")]),e("app-timeline",{staticClass:"mt-2"},[e("app-timeline-item",{attrs:{variant:"danger"}},[e("div",{staticClass:"d-flex flex-sm-row flex-column flex-wrap justify-content-between mb-1 mb-sm-0"},[e("div",[e("h6",{staticClass:"mb-0"},[t._v(" "+t._s(t.beautifyValue(t.stratusWeek/7))+" FLUX ")]),e("small",{staticClass:"mt-0"},[t._v("+")]),e("h6",{staticClass:"mb-0"},[t._v(" "+t._s(t.beautifyValue(.1*t.stratusWeek*t.activeParallelAssets/7))+" FLUX Tokens ")])]),e("small",{staticClass:"text-muted"},[t._v("Per Day")])])]),e("app-timeline-item",{attrs:{variant:"danger"}},[e("div",{staticClass:"d-flex flex-sm-row flex-column flex-wrap justify-content-between mb-1 mb-sm-0"},[e("div",[e("h6",{staticClass:"mb-0"},[t._v(" "+t._s(t.beautifyValue(t.stratusWeek))+" FLUX ")]),e("small",{staticClass:"mt-0"},[t._v("+")]),e("h6",{staticClass:"mb-0"},[t._v(" "+t._s(t.beautifyValue(.1*t.stratusWeek*t.activeParallelAssets))+" FLUX Tokens ")])]),e("small",{staticClass:"text-muted"},[t._v("Per Week")])])]),e("app-timeline-item",{attrs:{variant:"danger"}},[e("div",{staticClass:"d-flex flex-sm-row flex-column flex-wrap justify-content-between mb-1 mb-sm-0"},[e("div",[e("h6",{staticClass:"mb-0"},[t._v(" "+t._s(t.beautifyValue(t.stratusWeek*t.weeksInAMonth))+" FLUX ")]),e("small",{staticClass:"mt-0"},[t._v("+")]),e("h6",{staticClass:"mb-0"},[t._v(" "+t._s(t.beautifyValue(t.stratusWeek*t.weeksInAMonth*.1*t.activeParallelAssets))+" FLUX Tokens ")])]),e("small",{staticClass:"text-muted"},[t._v("Per Month")])])])],1)],1)],1)],1),e("b-overlay",{attrs:{show:t.loadingPrice,variant:"transparent",blur:"5px"}},[e("b-card",{attrs:{"no-body":""}},[e("b-card-body",[e("h4",[t._v(" Historical Price Chart ")])]),e("vue-apex-charts",{attrs:{type:"area",height:"250",width:"100%",options:t.lineChart.chartOptions,series:t.lineChart.series}})],1)],1)],1)},r=[],i=(s(70560),s(86855)),n=s(64206),l=s(19279),o=s(26253),c=s(50725),u=s(66126),m=function(){var t=this,e=t._self._c;return e("ul",t._g(t._b({staticClass:"app-timeline"},"ul",t.$attrs,!1),t.$listeners),[t._t("default")],2)},d=[];const f={},p=f;var b=s(1001),h=(0,b.Z)(p,m,d,!1,null,"1fc4912e",null);const y=h.exports;var x=function(){var t=this,e=t._self._c;return e("li",t._g(t._b({staticClass:"timeline-item",class:[`timeline-variant-${t.variant}`,t.fillBorder?`timeline-item-fill-border-${t.variant}`:null]},"li",t.$attrs,!1),t.$listeners),[t.icon?e("div",{staticClass:"timeline-item-icon d-flex align-items-center justify-content-center rounded-circle"},[e("feather-icon",{attrs:{icon:t.icon}})],1):e("div",{staticClass:"timeline-item-point"}),t._t("default",(function(){return[e("div",{staticClass:"d-flex flex-sm-row flex-column flex-wrap justify-content-between mb-1 mb-sm-0"},[e("h6",{domProps:{textContent:t._s(t.title)}}),e("small",{staticClass:"timeline-item-time text-nowrap text-muted",domProps:{textContent:t._s(t.time)}})]),e("p",{staticClass:"mb-0",domProps:{textContent:t._s(t.subtitle)}})]}))],2)},v=[];const g={props:{variant:{type:String,default:"primary"},title:{type:String,default:null},subtitle:{type:String,default:null},time:{type:String,default:null},icon:{type:String,default:null},fillBorder:{type:Boolean,default:!1}}},C=g;var _=(0,b.Z)(C,x,v,!1,null,"384df2b1",null);const k=_.exports;var w=s(34547),R=s(20266),A=s(67166),P=s.n(A),F=s(68934),T=s(51136),U=s(20702);const W=s(4808),D=s(97218),S={components:{BCard:i._,BCardText:n.j,BCardBody:l.O,BRow:o.T,BCol:c.l,BOverlay:u.X,AppTimeline:y,AppTimelineItem:k,VueApexCharts:P(),ToastificationContent:w.Z},directives:{Ripple:R.Z},data(){return{interceptorID:0,cumulusHostingCost:11,nimbusHostingCost:25,stratusHostingCost:52,weeksInAMonth:4.34812141,loadingPrice:!0,historicalPrices:[],cumulusWeek:0,nimbusWeek:0,stratusWeek:0,cumulusUSDRewardWeek:0,nimbusUSDRewardWeek:0,stratusUSDRewardWeek:0,cumulusCollateral:0,nimbusCollateral:0,stratusCollateral:0,latestPrice:0,lineChart:{series:[],chartOptions:{colors:[F.j.primary],labels:["Price"],grid:{show:!1,padding:{left:0,right:0}},chart:{toolbar:{show:!1},sparkline:{enabled:!0},stacked:!0},dataLabels:{enabled:!1},stroke:{curve:"smooth",width:2.5},fill:{type:"gradient",gradient:{shadeIntensity:.9,opacityFrom:.7,opacityTo:0}},xaxis:{type:"numeric",lines:{show:!1},axisBorder:{show:!1},labels:{show:!1}},yaxis:[{y:0,offsetX:0,offsetY:0,padding:{left:0,right:0}}],tooltip:{x:{formatter:t=>new Date(t).toLocaleString("en-GB",this.timeoptions)},y:{formatter:t=>`$${this.beautifyValue(t,2)} USD`}}}},retryOptions:{raxConfig:{onRetryAttempt:t=>{const e=W.getConfig(t);console.log(`Retry attempt #${e.currentRetryAttempt}`)}}},activeParallelAssets:7}},mounted(){this.interceptorID=W.attach(),this.getData(),setInterval((()=>{this.getData()}),6e5)},unmounted(){W.detach(this.interceptorID)},methods:{async getData(){U.Z.getScannedHeight().then((t=>{if("success"===t.data.status){const e=t.data.data.generalScannedHeight;this.cumulusCollateral=e<1076532?1e4:1e3,this.nimbusCollateral=e<1081572?25e3:12500,this.stratusCollateral=e<1087332?1e5:4e4}this.getRates()})),this.getPriceData(),this.getActiveParallelAssets()},async getActiveParallelAssets(){D.get("https://fusion.runonflux.io/fees",this.retryOptions).then((t=>{const{data:e}=t;if("success"===e.status){delete e.data.snapshot.percentage;const t=Object.keys(e.data.snapshot).length;this.activeParallelAssets=t}}))},async getRates(){D.get("https://vipdrates.zelcore.io/rates",this.retryOptions).then((t=>{this.rates=t.data,this.getFluxNodeCount()}))},async getPriceData(){const t=this;this.loadingPrice=!0,D.get("https://api.coingecko.com/api/v3/coins/zelcash/market_chart?vs_currency=USD&days=30",this.retryOptions).then((e=>{t.historicalPrices=e.data.prices.filter((t=>t[0]>14832324e5));const s=[];for(let a=0;ae["nimbus-enabled"]?(s["nimbus-enabled"]=e["nimbus-enabled"],s["super-enabled"]=e["nimbus-enabled"],s["cumulus-enabled"]=e["cumulus-enabled"],s["basic-enabled"]=e["cumulus-enabled"]):(s["nimbus-enabled"]=e["cumulus-enabled"],s["super-enabled"]=e["cumulus-enabled"],s["cumulus-enabled"]=e["nimbus-enabled"],s["basic-enabled"]=e["nimbus-enabled"]),this.generateEconomics(s)}},async generateEconomics(t){let e=2.8125,s=4.6875,a=11.25;const r=await T.Z.blockReward();"error"===r.data.status?this.$toast({component:w.Z,props:{title:r.data.data.message||r.data.data,icon:"InfoIcon",variant:"danger"}}):(e=(.075*r.data.data.miner).toFixed(4),s=(.125*r.data.data.miner).toFixed(4),a=(.3*r.data.data.miner).toFixed(4));const i=t["stratus-enabled"],n=t["nimbus-enabled"],l=t["cumulus-enabled"],o=720*e*7/l,c=720*s*7/n,u=720*a*7/i,m=this.getFiatRate("FLUX")*e,d=this.getFiatRate("FLUX")*s,f=this.getFiatRate("FLUX")*a,p=5040*m/l,b=5040*d/n,h=5040*f/i;this.cumulusWeek=o,this.nimbusWeek=c,this.stratusWeek=u,this.cumulusUSDRewardWeek=p,this.nimbusUSDRewardWeek=b,this.stratusUSDRewardWeek=h},getFiatRate(t){const e="USD";let s=this.rates[0].find((t=>t.code===e));void 0===s&&(s={rate:0});let a=this.rates[1][t];void 0===a&&(a=0);const r=s.rate*a;return r},beautifyValue(t){const e=t.toFixed(2);return e.replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1,")}}},L=S;var X=(0,b.Z)(L,a,r,!1,null,null,null);const Z=X.exports},51136:(t,e,s)=>{s.d(e,{Z:()=>r});var a=s(80914);const r={listFluxNodes(){return(0,a.Z)().get("/daemon/listzelnodes")},fluxnodeCount(){return(0,a.Z)().get("/daemon/getzelnodecount")},blockReward(){return(0,a.Z)().get("/daemon/getblocksubsidy")}}},20702:(t,e,s)=>{s.d(e,{Z:()=>r});var a=s(80914);const r={getAddressBalance(t){return(0,a.Z)().get(`/explorer/balance/${t}`)},getAddressTransactions(t){return(0,a.Z)().get(`/explorer/transactions/${t}`)},getScannedHeight(){return(0,a.Z)().get("/explorer/scannedheight")},reindexExplorer(t){return(0,a.Z)().get("/explorer/reindex/false",{headers:{zelidauth:t}})},reindexFlux(t){return(0,a.Z)().get("/explorer/reindex/true",{headers:{zelidauth:t}})},rescanExplorer(t,e){return(0,a.Z)().get(`/explorer/rescan/${e}/false`,{headers:{zelidauth:t}})},rescanFlux(t,e){return(0,a.Z)().get(`/explorer/rescan/${e}/true`,{headers:{zelidauth:t}})},restartBlockProcessing(t){return(0,a.Z)().get("/explorer/restart",{headers:{zelidauth:t}})},stopBlockProcessing(t){return(0,a.Z)().get("/explorer/stop",{headers:{zelidauth:t}})}}},4808:(t,e,s)=>{s.r(e),s.d(e,{attach:()=>g,detach:()=>C,getConfig:()=>P,shouldRetryRequest:()=>A});var a=s(87066);const{Axios:r,AxiosError:i,CanceledError:n,isCancel:l,CancelToken:o,VERSION:c,all:u,Cancel:m,isAxiosError:d,spread:f,toFormData:p,AxiosHeaders:b,HttpStatusCode:h,formToJSON:y,getAdapter:x,mergeConfig:v}=a["default"];function g(t){return t=t||a["default"],t.interceptors.response.use(_,(async e=>R(t,e)))}function C(t,e){e=e||a["default"],e.interceptors.response.eject(t)}function _(t){return t}function k(t){const e=[];if(t){if(Array.isArray(t))return t;if("object"===typeof t)for(const s of Object.keys(t)){const a=Number.parseInt(s,10);Number.isNaN(a)||(e[a]=t[s])}return e}}function w(t){const e=Number(t);if(!Number.isNaN(e))return 1e3*e;const s=Date.parse(t);return Number.isNaN(s)?void 0:s-Date.now()}async function R(t,e){if(l(e))throw e;const s=P(e)||{};s.currentRetryAttempt=s.currentRetryAttempt||0,s.retry="number"===typeof s.retry?s.retry:3,s.retryDelay="number"===typeof s.retryDelay?s.retryDelay:100,s.instance=s.instance||t,s.backoffType=s.backoffType||"exponential",s.httpMethodsToRetry=k(s.httpMethodsToRetry)||["GET","HEAD","PUT","OPTIONS","DELETE"],s.noResponseRetries="number"===typeof s.noResponseRetries?s.noResponseRetries:2,s.checkRetryAfter="boolean"!==typeof s.checkRetryAfter||s.checkRetryAfter,s.maxRetryAfter="number"===typeof s.maxRetryAfter?s.maxRetryAfter:3e5;const a=[[100,199],[429,429],[500,599]];s.statusCodesToRetry=k(s.statusCodesToRetry)||a;const r=e;r.config=r.config||{},r.config.raxConfig={...s};const i=s.shouldRetry||A;if(!i(r))throw r;const n=new Promise(((t,e)=>{let a=0;if(s.checkRetryAfter&&r.response?.headers["retry-after"]){const t=w(r.response.headers["retry-after"]);if(!(t&&t>0&&t<=s.maxRetryAfter))return void e(r);a=t}r.config.raxConfig.currentRetryAttempt+=1;const i=r.config.raxConfig.currentRetryAttempt;0===a&&(a="linear"===s.backoffType?1e3*i:"static"===s.backoffType?s.retryDelay:(2**i-1)/2*1e3,"number"===typeof s.maxRetryDelay&&(a=Math.min(a,s.maxRetryDelay))),setTimeout(t,a)}));s.onRetryAttempt&&s.onRetryAttempt(r);const o=Promise.resolve();return Promise.resolve().then((async()=>n)).then((async()=>o)).then((async()=>s.instance.request(r.config)))}function A(t){const e=t.config.raxConfig;if(!e||0===e.retry)return!1;if(!t.response&&(e.currentRetryAttempt||0)>=e.noResponseRetries)return!1;if(!t.config?.method||!e.httpMethodsToRetry.includes(t.config.method.toUpperCase()))return!1;if(t.response?.status){let s=!1;for(const[a,r]of e.statusCodesToRetry){const{status:e}=t.response;if(e>=a&&e<=r){s=!0;break}}if(!s)return!1}return e.currentRetryAttempt=e.currentRetryAttempt||0,!(e.currentRetryAttempt>=e.retry)}function P(t){if(t?.config)return t.config.raxConfig}}}]); \ No newline at end of file +(self["webpackChunkflux"]=self["webpackChunkflux"]||[]).push([[8755],{34547:(t,e,s)=>{"use strict";s.d(e,{Z:()=>u});var a=function(){var t=this,e=t._self._c;return e("div",{staticClass:"toastification"},[e("div",{staticClass:"d-flex align-items-start"},[e("b-avatar",{staticClass:"mr-75 flex-shrink-0",attrs:{variant:t.variant,size:"1.8rem"}},[e("feather-icon",{attrs:{icon:t.icon,size:"15"}})],1),e("div",{staticClass:"d-flex flex-grow-1"},[e("div",[t.title?e("h5",{staticClass:"mb-0 font-weight-bolder toastification-title",class:`text-${t.variant}`,domProps:{textContent:t._s(t.title)}}):t._e(),t.text?e("small",{staticClass:"d-inline-block text-body",domProps:{textContent:t._s(t.text)}}):t._e()]),e("span",{staticClass:"cursor-pointer toastification-close-icon ml-auto",on:{click:function(e){return t.$emit("close-toast")}}},[t.hideClose?t._e():e("feather-icon",{staticClass:"text-body",attrs:{icon:"XIcon"}})],1)])],1)])},n=[],r=s(47389);const i={components:{BAvatar:r.SH},props:{variant:{type:String,default:"primary"},icon:{type:String,default:null},title:{type:String,default:null},text:{type:String,default:null},hideClose:{type:Boolean,default:!1}}},o=i;var l=s(1001),c=(0,l.Z)(o,a,n,!1,null,"22d964ca",null);const u=c.exports},68755:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>L});var a=function(){var t=this,e=t._self._c;return e("div",[e("b-row",{staticClass:"text-center"},[e("b-col",{attrs:{sm:"12",md:"6",lg:"4"}},[e("b-card",{attrs:{title:"Cumulus Rewards"}},[e("b-card-text",[t._v(t._s(t.cumulusCollateral.toLocaleString())+" FLUX Collateral")]),e("app-timeline",{staticClass:"mt-2"},[e("app-timeline-item",[e("div",{staticClass:"d-flex flex-sm-row flex-column flex-wrap justify-content-between mb-1 mb-sm-0"},[e("div",[e("h6",{staticClass:"mb-0"},[t._v(" "+t._s(t.beautifyValue(t.cumulusWeek/7))+" FLUX ")]),e("small",{staticClass:"mt-0"},[t._v("+")]),e("h6",{staticClass:"mb-0"},[t._v(" "+t._s(t.beautifyValue(.1*t.cumulusWeek*t.activeParallelAssets/7))+" FLUX Tokens ")])]),e("small",{staticClass:"text-muted"},[t._v("Per Day")])])]),e("app-timeline-item",[e("div",{staticClass:"d-flex flex-sm-row flex-column flex-wrap justify-content-between mb-1 mb-sm-0"},[e("div",[e("h6",{staticClass:"mb-0"},[t._v(" "+t._s(t.beautifyValue(t.cumulusWeek))+" FLUX ")]),e("small",{staticClass:"mt-0"},[t._v("+")]),e("h6",{staticClass:"mb-0"},[t._v(" "+t._s(t.beautifyValue(.1*t.cumulusWeek*t.activeParallelAssets))+" FLUX Tokens ")])]),e("small",{staticClass:"text-muted"},[t._v("Per Week")])])]),e("app-timeline-item",[e("div",{staticClass:"d-flex flex-sm-row flex-column flex-wrap justify-content-between mb-1 mb-sm-0"},[e("div",[e("h6",{staticClass:"mb-0"},[t._v(" "+t._s(t.beautifyValue(t.cumulusWeek*t.weeksInAMonth))+" FLUX ")]),e("small",{staticClass:"mt-0"},[t._v("+")]),e("h6",{staticClass:"mb-0"},[t._v(" "+t._s(t.beautifyValue(t.cumulusWeek*t.weeksInAMonth*.1*t.activeParallelAssets))+" FLUX Tokens ")])]),e("small",{staticClass:"text-muted"},[t._v("Per Month")])])])],1)],1)],1),e("b-col",{attrs:{sm:"12",md:"6",lg:"4"}},[e("b-card",{attrs:{title:"Nimbus Rewards"}},[e("b-card-text",[t._v(t._s(t.nimbusCollateral.toLocaleString())+" FLUX Collateral")]),e("app-timeline",{staticClass:"mt-2"},[e("app-timeline-item",{attrs:{variant:"warning"}},[e("div",{staticClass:"d-flex flex-sm-row flex-column flex-wrap justify-content-between mb-1 mb-sm-0"},[e("div",[e("h6",{staticClass:"mb-0"},[t._v(" "+t._s(t.beautifyValue(t.nimbusWeek/7))+" FLUX ")]),e("small",{staticClass:"mt-0"},[t._v("+")]),e("h6",{staticClass:"mb-0"},[t._v(" "+t._s(t.beautifyValue(.1*t.nimbusWeek*t.activeParallelAssets/7))+" FLUX Tokens ")])]),e("small",{staticClass:"text-muted"},[t._v("Per Day")])])]),e("app-timeline-item",{attrs:{variant:"warning"}},[e("div",{staticClass:"d-flex flex-sm-row flex-column flex-wrap justify-content-between mb-1 mb-sm-0"},[e("div",[e("h6",{staticClass:"mb-0"},[t._v(" "+t._s(t.beautifyValue(t.nimbusWeek))+" FLUX ")]),e("small",{staticClass:"mt-0"},[t._v("+")]),e("h6",{staticClass:"mb-0"},[t._v(" "+t._s(t.beautifyValue(.1*t.nimbusWeek*t.activeParallelAssets))+" FLUX Tokens ")])]),e("small",{staticClass:"text-muted"},[t._v("Per Week")])])]),e("app-timeline-item",{attrs:{variant:"warning"}},[e("div",{staticClass:"d-flex flex-sm-row flex-column flex-wrap justify-content-between mb-1 mb-sm-0"},[e("div",[e("h6",{staticClass:"mb-0"},[t._v(" "+t._s(t.beautifyValue(t.nimbusWeek*t.weeksInAMonth))+" FLUX ")]),e("small",{staticClass:"mt-0"},[t._v("+")]),e("h6",{staticClass:"mb-0"},[t._v(" "+t._s(t.beautifyValue(t.nimbusWeek*t.weeksInAMonth*.1*t.activeParallelAssets))+" FLUX Tokens ")])]),e("small",{staticClass:"text-muted"},[t._v("Per Month")])])])],1)],1)],1),e("b-col",{attrs:{sm:"12",md:"12",lg:"4"}},[e("b-card",{attrs:{title:"Stratus Rewards"}},[e("b-card-text",[t._v(t._s(t.stratusCollateral.toLocaleString())+" FLUX Collateral")]),e("app-timeline",{staticClass:"mt-2"},[e("app-timeline-item",{attrs:{variant:"danger"}},[e("div",{staticClass:"d-flex flex-sm-row flex-column flex-wrap justify-content-between mb-1 mb-sm-0"},[e("div",[e("h6",{staticClass:"mb-0"},[t._v(" "+t._s(t.beautifyValue(t.stratusWeek/7))+" FLUX ")]),e("small",{staticClass:"mt-0"},[t._v("+")]),e("h6",{staticClass:"mb-0"},[t._v(" "+t._s(t.beautifyValue(.1*t.stratusWeek*t.activeParallelAssets/7))+" FLUX Tokens ")])]),e("small",{staticClass:"text-muted"},[t._v("Per Day")])])]),e("app-timeline-item",{attrs:{variant:"danger"}},[e("div",{staticClass:"d-flex flex-sm-row flex-column flex-wrap justify-content-between mb-1 mb-sm-0"},[e("div",[e("h6",{staticClass:"mb-0"},[t._v(" "+t._s(t.beautifyValue(t.stratusWeek))+" FLUX ")]),e("small",{staticClass:"mt-0"},[t._v("+")]),e("h6",{staticClass:"mb-0"},[t._v(" "+t._s(t.beautifyValue(.1*t.stratusWeek*t.activeParallelAssets))+" FLUX Tokens ")])]),e("small",{staticClass:"text-muted"},[t._v("Per Week")])])]),e("app-timeline-item",{attrs:{variant:"danger"}},[e("div",{staticClass:"d-flex flex-sm-row flex-column flex-wrap justify-content-between mb-1 mb-sm-0"},[e("div",[e("h6",{staticClass:"mb-0"},[t._v(" "+t._s(t.beautifyValue(t.stratusWeek*t.weeksInAMonth))+" FLUX ")]),e("small",{staticClass:"mt-0"},[t._v("+")]),e("h6",{staticClass:"mb-0"},[t._v(" "+t._s(t.beautifyValue(t.stratusWeek*t.weeksInAMonth*.1*t.activeParallelAssets))+" FLUX Tokens ")])]),e("small",{staticClass:"text-muted"},[t._v("Per Month")])])])],1)],1)],1)],1),e("b-overlay",{attrs:{show:t.loadingPrice,variant:"transparent",blur:"5px"}},[e("b-card",{attrs:{"no-body":""}},[e("b-card-body",[e("h4",[t._v(" Historical Price Chart ")])]),e("vue-apex-charts",{attrs:{type:"area",height:"250",width:"100%",options:t.lineChart.chartOptions,series:t.lineChart.series}})],1)],1)],1)},n=[],r=(s(70560),s(86855)),i=s(64206),o=s(19279),l=s(26253),c=s(50725),u=s(66126),d=function(){var t=this,e=t._self._c;return e("ul",t._g(t._b({staticClass:"app-timeline"},"ul",t.$attrs,!1),t.$listeners),[t._t("default")],2)},m=[];const f={},h=f;var p=s(1001),b=(0,p.Z)(h,d,m,!1,null,"1fc4912e",null);const y=b.exports;var v=function(){var t=this,e=t._self._c;return e("li",t._g(t._b({staticClass:"timeline-item",class:[`timeline-variant-${t.variant}`,t.fillBorder?`timeline-item-fill-border-${t.variant}`:null]},"li",t.$attrs,!1),t.$listeners),[t.icon?e("div",{staticClass:"timeline-item-icon d-flex align-items-center justify-content-center rounded-circle"},[e("feather-icon",{attrs:{icon:t.icon}})],1):e("div",{staticClass:"timeline-item-point"}),t._t("default",(function(){return[e("div",{staticClass:"d-flex flex-sm-row flex-column flex-wrap justify-content-between mb-1 mb-sm-0"},[e("h6",{domProps:{textContent:t._s(t.title)}}),e("small",{staticClass:"timeline-item-time text-nowrap text-muted",domProps:{textContent:t._s(t.time)}})]),e("p",{staticClass:"mb-0",domProps:{textContent:t._s(t.subtitle)}})]}))],2)},x=[];const g={props:{variant:{type:String,default:"primary"},title:{type:String,default:null},subtitle:{type:String,default:null},time:{type:String,default:null},icon:{type:String,default:null},fillBorder:{type:Boolean,default:!1}}},C=g;var w=(0,p.Z)(C,v,x,!1,null,"384df2b1",null);const _=w.exports;var k=s(34547),A=s(20266),R=s(67166),P=s.n(R),S=s(68934),F=s(51136),D=s(20702);const U=s(4808),T=s(97218),j={components:{BCard:r._,BCardText:i.j,BCardBody:o.O,BRow:l.T,BCol:c.l,BOverlay:u.X,AppTimeline:y,AppTimelineItem:_,VueApexCharts:P(),ToastificationContent:k.Z},directives:{Ripple:A.Z},data(){return{interceptorID:0,cumulusHostingCost:11,nimbusHostingCost:25,stratusHostingCost:52,weeksInAMonth:4.34812141,loadingPrice:!0,historicalPrices:[],cumulusWeek:0,nimbusWeek:0,stratusWeek:0,cumulusUSDRewardWeek:0,nimbusUSDRewardWeek:0,stratusUSDRewardWeek:0,cumulusCollateral:0,nimbusCollateral:0,stratusCollateral:0,latestPrice:0,lineChart:{series:[],chartOptions:{colors:[S.j.primary],labels:["Price"],grid:{show:!1,padding:{left:0,right:0}},chart:{toolbar:{show:!1},sparkline:{enabled:!0},stacked:!0},dataLabels:{enabled:!1},stroke:{curve:"smooth",width:2.5},fill:{type:"gradient",gradient:{shadeIntensity:.9,opacityFrom:.7,opacityTo:0}},xaxis:{type:"numeric",lines:{show:!1},axisBorder:{show:!1},labels:{show:!1}},yaxis:[{y:0,offsetX:0,offsetY:0,padding:{left:0,right:0}}],tooltip:{x:{formatter:t=>new Date(t).toLocaleString("en-GB",this.timeoptions)},y:{formatter:t=>`$${this.beautifyValue(t,2)} USD`}}}},retryOptions:{raxConfig:{onRetryAttempt:t=>{const e=U.getConfig(t);console.log(`Retry attempt #${e.currentRetryAttempt}`)}}},activeParallelAssets:7}},mounted(){this.interceptorID=U.attach(),this.getData(),setInterval((()=>{this.getData()}),6e5)},unmounted(){U.detach(this.interceptorID)},methods:{async getData(){D.Z.getScannedHeight().then((t=>{if("success"===t.data.status){const e=t.data.data.generalScannedHeight;this.cumulusCollateral=e<1076532?1e4:1e3,this.nimbusCollateral=e<1081572?25e3:12500,this.stratusCollateral=e<1087332?1e5:4e4}this.getRates()})),this.getPriceData(),this.getActiveParallelAssets()},async getActiveParallelAssets(){T.get("https://fusion.runonflux.io/fees",this.retryOptions).then((t=>{const{data:e}=t;if("success"===e.status){delete e.data.snapshot.percentage;const t=Object.keys(e.data.snapshot).length;this.activeParallelAssets=t}}))},async getRates(){T.get("https://vipdrates.zelcore.io/rates",this.retryOptions).then((t=>{this.rates=t.data,this.getFluxNodeCount()}))},async getPriceData(){const t=this;this.loadingPrice=!0,T.get("https://api.coingecko.com/api/v3/coins/zelcash/market_chart?vs_currency=USD&days=30",this.retryOptions).then((e=>{t.historicalPrices=e.data.prices.filter((t=>t[0]>14832324e5));const s=[];for(let a=0;ae["nimbus-enabled"]?(s["nimbus-enabled"]=e["nimbus-enabled"],s["super-enabled"]=e["nimbus-enabled"],s["cumulus-enabled"]=e["cumulus-enabled"],s["basic-enabled"]=e["cumulus-enabled"]):(s["nimbus-enabled"]=e["cumulus-enabled"],s["super-enabled"]=e["cumulus-enabled"],s["cumulus-enabled"]=e["nimbus-enabled"],s["basic-enabled"]=e["nimbus-enabled"]),this.generateEconomics(s)}},async generateEconomics(t){let e=2.8125,s=4.6875,a=11.25;const n=await F.Z.blockReward();"error"===n.data.status?this.$toast({component:k.Z,props:{title:n.data.data.message||n.data.data,icon:"InfoIcon",variant:"danger"}}):(e=(.075*n.data.data.miner).toFixed(4),s=(.125*n.data.data.miner).toFixed(4),a=(.3*n.data.data.miner).toFixed(4));const r=t["stratus-enabled"],i=t["nimbus-enabled"],o=t["cumulus-enabled"],l=720*e*7/o,c=720*s*7/i,u=720*a*7/r,d=this.getFiatRate("FLUX")*e,m=this.getFiatRate("FLUX")*s,f=this.getFiatRate("FLUX")*a,h=5040*d/o,p=5040*m/i,b=5040*f/r;this.cumulusWeek=l,this.nimbusWeek=c,this.stratusWeek=u,this.cumulusUSDRewardWeek=h,this.nimbusUSDRewardWeek=p,this.stratusUSDRewardWeek=b},getFiatRate(t){const e="USD";let s=this.rates[0].find((t=>t.code===e));void 0===s&&(s={rate:0});let a=this.rates[1][t];void 0===a&&(a=0);const n=s.rate*a;return n},beautifyValue(t){const e=t.toFixed(2);return e.replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1,")}}},O=j;var W=(0,p.Z)(O,a,n,!1,null,null,null);const L=W.exports},51136:(t,e,s)=>{"use strict";s.d(e,{Z:()=>n});var a=s(80914);const n={listFluxNodes(){return(0,a.Z)().get("/daemon/listzelnodes")},fluxnodeCount(){return(0,a.Z)().get("/daemon/getzelnodecount")},blockReward(){return(0,a.Z)().get("/daemon/getblocksubsidy")}}},20702:(t,e,s)=>{"use strict";s.d(e,{Z:()=>n});var a=s(80914);const n={getAddressBalance(t){return(0,a.Z)().get(`/explorer/balance/${t}`)},getAddressTransactions(t){return(0,a.Z)().get(`/explorer/transactions/${t}`)},getScannedHeight(){return(0,a.Z)().get("/explorer/scannedheight")},reindexExplorer(t){return(0,a.Z)().get("/explorer/reindex/false",{headers:{zelidauth:t}})},reindexFlux(t){return(0,a.Z)().get("/explorer/reindex/true",{headers:{zelidauth:t}})},rescanExplorer(t,e){return(0,a.Z)().get(`/explorer/rescan/${e}/false`,{headers:{zelidauth:t}})},rescanFlux(t,e){return(0,a.Z)().get(`/explorer/rescan/${e}/true`,{headers:{zelidauth:t}})},restartBlockProcessing(t){return(0,a.Z)().get("/explorer/restart",{headers:{zelidauth:t}})},stopBlockProcessing(t){return(0,a.Z)().get("/explorer/stop",{headers:{zelidauth:t}})}}},67166:function(t,e,s){(function(e,a){t.exports=a(s(47514))})(0,(function(t){"use strict";function e(t){return e="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},e(t)}function s(t,e,s){return e in t?Object.defineProperty(t,e,{value:s,enumerable:!0,configurable:!0,writable:!0}):t[e]=s,t}t=t&&t.hasOwnProperty("default")?t["default"]:t;var a={props:{options:{type:Object},type:{type:String},series:{type:Array,required:!0,default:function(){return[]}},width:{default:"100%"},height:{default:"auto"}},data:function(){return{chart:null}},beforeMount:function(){window.ApexCharts=t},mounted:function(){this.init()},created:function(){var t=this;this.$watch("options",(function(e){!t.chart&&e?t.init():t.chart.updateOptions(t.options)})),this.$watch("series",(function(e){!t.chart&&e?t.init():t.chart.updateSeries(t.series)}));var e=["type","width","height"];e.forEach((function(e){t.$watch(e,(function(){t.refresh()}))}))},beforeDestroy:function(){this.chart&&this.destroy()},render:function(t){return t("div")},methods:{init:function(){var e=this,s={chart:{type:this.type||this.options.chart.type||"line",height:this.height,width:this.width,events:{}},series:this.series};Object.keys(this.$listeners).forEach((function(t){s.chart.events[t]=e.$listeners[t]}));var a=this.extend(this.options,s);return this.chart=new t(this.$el,a),this.chart.render()},isObject:function(t){return t&&"object"===e(t)&&!Array.isArray(t)&&null!=t},extend:function(t,e){var a=this;"function"!==typeof Object.assign&&function(){Object.assign=function(t){if(void 0===t||null===t)throw new TypeError("Cannot convert undefined or null to object");for(var e=Object(t),s=1;s{"use strict";s.r(e),s.d(e,{attach:()=>g,detach:()=>C,getConfig:()=>P,shouldRetryRequest:()=>R});var a=s(87066);const{Axios:n,AxiosError:r,CanceledError:i,isCancel:o,CancelToken:l,VERSION:c,all:u,Cancel:d,isAxiosError:m,spread:f,toFormData:h,AxiosHeaders:p,HttpStatusCode:b,formToJSON:y,getAdapter:v,mergeConfig:x}=a["default"];function g(t){return t=t||a["default"],t.interceptors.response.use(w,(async e=>A(t,e)))}function C(t,e){e=e||a["default"],e.interceptors.response.eject(t)}function w(t){return t}function _(t){const e=[];if(t){if(Array.isArray(t))return t;if("object"===typeof t)for(const s of Object.keys(t)){const a=Number.parseInt(s,10);Number.isNaN(a)||(e[a]=t[s])}return e}}function k(t){const e=Number(t);if(!Number.isNaN(e))return 1e3*e;const s=Date.parse(t);return Number.isNaN(s)?void 0:s-Date.now()}async function A(t,e){if(o(e))throw e;const s=P(e)||{};s.currentRetryAttempt=s.currentRetryAttempt||0,s.retry="number"===typeof s.retry?s.retry:3,s.retryDelay="number"===typeof s.retryDelay?s.retryDelay:100,s.instance=s.instance||t,s.backoffType=s.backoffType||"exponential",s.httpMethodsToRetry=_(s.httpMethodsToRetry)||["GET","HEAD","PUT","OPTIONS","DELETE"],s.noResponseRetries="number"===typeof s.noResponseRetries?s.noResponseRetries:2,s.checkRetryAfter="boolean"!==typeof s.checkRetryAfter||s.checkRetryAfter,s.maxRetryAfter="number"===typeof s.maxRetryAfter?s.maxRetryAfter:3e5;const a=[[100,199],[429,429],[500,599]];s.statusCodesToRetry=_(s.statusCodesToRetry)||a;const n=e;n.config=n.config||{},n.config.raxConfig={...s};const r=s.shouldRetry||R;if(!r(n))throw n;const i=new Promise(((t,e)=>{let a=0;if(s.checkRetryAfter&&n.response?.headers["retry-after"]){const t=k(n.response.headers["retry-after"]);if(!(t&&t>0&&t<=s.maxRetryAfter))return void e(n);a=t}n.config.raxConfig.currentRetryAttempt+=1;const r=n.config.raxConfig.currentRetryAttempt;0===a&&(a="linear"===s.backoffType?1e3*r:"static"===s.backoffType?s.retryDelay:(2**r-1)/2*1e3,"number"===typeof s.maxRetryDelay&&(a=Math.min(a,s.maxRetryDelay))),setTimeout(t,a)}));s.onRetryAttempt&&s.onRetryAttempt(n);const l=Promise.resolve();return Promise.resolve().then((async()=>i)).then((async()=>l)).then((async()=>s.instance.request(n.config)))}function R(t){const e=t.config.raxConfig;if(!e||0===e.retry)return!1;if(!t.response&&(e.currentRetryAttempt||0)>=e.noResponseRetries)return!1;if(!t.config?.method||!e.httpMethodsToRetry.includes(t.config.method.toUpperCase()))return!1;if(t.response?.status){let s=!1;for(const[a,n]of e.statusCodesToRetry){const{status:e}=t.response;if(e>=a&&e<=n){s=!0;break}}if(!s)return!1}return e.currentRetryAttempt=e.currentRetryAttempt||0,!(e.currentRetryAttempt>=e.retry)}function P(t){if(t?.config)return t.config.raxConfig}}}]); \ No newline at end of file diff --git a/HomeUI/dist/js/8873.js b/HomeUI/dist/js/8873.js deleted file mode 100644 index 3861089a5..000000000 --- a/HomeUI/dist/js/8873.js +++ /dev/null @@ -1 +0,0 @@ -(globalThis["webpackChunkflux"]=globalThis["webpackChunkflux"]||[]).push([[8873],{87156:(e,n,a)=>{"use strict";a.d(n,{Z:()=>p});var o=function(){var e=this,n=e._self._c;return n("b-popover",{ref:"popover",attrs:{target:`${e.target}`,triggers:"click blur",show:e.show,placement:"auto",container:"my-container","custom-class":`confirm-dialog-${e.width}`},on:{"update:show":function(n){e.show=n}},scopedSlots:e._u([{key:"title",fn:function(){return[n("div",{staticClass:"d-flex justify-content-between align-items-center"},[n("span",[e._v(e._s(e.title))]),n("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"close",attrs:{variant:"transparent","aria-label":"Close"},on:{click:function(n){e.show=!1}}},[n("span",{staticClass:"d-inline-block text-white",attrs:{"aria-hidden":"true"}},[e._v("×")])])],1)]},proxy:!0}])},[n("div",{staticClass:"text-center"},[n("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"mr-1",attrs:{size:"sm",variant:"danger"},on:{click:function(n){e.show=!1}}},[e._v(" "+e._s(e.cancelButton)+" ")]),n("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],attrs:{size:"sm",variant:"primary"},on:{click:function(n){return e.confirm()}}},[e._v(" "+e._s(e.confirmButton)+" ")])],1)])},t=[],i=a(15193),d=a(53862),c=a(20266);const l={components:{BButton:i.T,BPopover:d.x},directives:{Ripple:c.Z},props:{target:{type:String,required:!0},title:{type:String,required:!1,default:"Are You Sure?"},cancelButton:{type:String,required:!1,default:"Cancel"},confirmButton:{type:String,required:!0},width:{type:Number,required:!1,default:300}},data(){return{show:!1}},methods:{confirm(){this.show=!1,this.$emit("confirm")}}},r=l;var s=a(1001),m=(0,s.Z)(r,o,t,!1,null,null,null);const p=m.exports},63005:(e,n,a)=>{"use strict";a.r(n),a.d(n,{default:()=>i});const o={year:"numeric",month:"short",day:"numeric",hour:"2-digit",minute:"2-digit"},t={year:"numeric",month:"short",day:"numeric"},i={shortDate:o,date:t}},65864:(e,n,a)=>{"use strict";a.d(n,{M:()=>t,Z:()=>i});var o=a(87066);const t="https://fiatpaymentsbridge.runonflux.io";async function i(){try{const e=await o["default"].get(`${t}/api/v1/gateway/status`);return"success"===e.data.status?e.data.data:null}catch(e){return null}}},57306:e=>{const n=[{name:"Afghanistan",dial_code:"+93",code:"AF",continent:"AS"},{name:"Aland Islands",dial_code:"+358",code:"AX"},{name:"Albania",dial_code:"+355",code:"AL",continent:"EU"},{name:"Algeria",dial_code:"+213",code:"DZ",continent:"AF"},{name:"American Samoa",dial_code:"+1684",code:"AS",continent:"OC"},{name:"Andorra",dial_code:"+376",code:"AD",continent:"EU"},{name:"Angola",dial_code:"+244",code:"AO",continent:"AF"},{name:"Anguilla",dial_code:"+1264",code:"AI",continent:"NA"},{name:"Antarctica",dial_code:"+672",code:"AQ",continent:"AN"},{name:"Antigua and Barbuda",dial_code:"+1268",code:"AG",continent:"NA"},{name:"Argentina",dial_code:"+54",code:"AR",continent:"SA"},{name:"Armenia",dial_code:"+374",code:"AM",continent:"AS"},{name:"Aruba",dial_code:"+297",code:"AW",continent:"NA"},{name:"Australia",dial_code:"+61",code:"AU",continent:"OC"},{name:"Austria",dial_code:"+43",code:"AT",continent:"EU"},{name:"Azerbaijan",dial_code:"+994",code:"AZ",continent:"AS"},{name:"Bahamas",dial_code:"+1242",code:"BS",continent:"NA"},{name:"Bahrain",dial_code:"+973",code:"BH",continent:"AS"},{name:"Bangladesh",dial_code:"+880",code:"BD",continent:"AS"},{name:"Barbados",dial_code:"+1246",code:"BB",continent:"NA"},{name:"Belarus",dial_code:"+375",code:"BY",continent:"EU"},{name:"Belgium",dial_code:"+32",code:"BE",continent:"EU"},{name:"Belize",dial_code:"+501",code:"BZ",continent:"NA"},{name:"Benin",dial_code:"+229",code:"BJ",continent:"AF"},{name:"Bermuda",dial_code:"+1441",code:"BM",continent:"NA"},{name:"Bhutan",dial_code:"+975",code:"BT",continent:"AS"},{name:"Bolivia, Plurinational State of",dial_code:"+591",code:"BO"},{name:"Bosnia and Herzegovina",dial_code:"+387",code:"BA",continent:"EU"},{name:"Botswana",dial_code:"+267",code:"BW",continent:"AF"},{name:"Brazil",dial_code:"+55",code:"BR",continent:"SA"},{name:"British Indian Ocean Territory",dial_code:"+246",code:"IO",continent:"AF"},{name:"Brunei Darussalam",dial_code:"+673",code:"BN"},{name:"Bulgaria",dial_code:"+359",code:"BG",continent:"EU"},{name:"Burkina Faso",dial_code:"+226",code:"BF",continent:"AF"},{name:"Burundi",dial_code:"+257",code:"BI",continent:"AF"},{name:"Cambodia",dial_code:"+855",code:"KH",continent:"AS"},{name:"Cameroon",dial_code:"+237",code:"CM",continent:"AF"},{name:"Canada",dial_code:"+1",code:"CA",available:!0,continent:"NA"},{name:"Cape Verde",dial_code:"+238",code:"CV",continent:"AF"},{name:"Cayman Islands",dial_code:"+ 345",code:"KY",continent:"NA"},{name:"Central African Republic",dial_code:"+236",code:"CF",continent:"AF"},{name:"Chad",dial_code:"+235",code:"TD",continent:"AF"},{name:"Chile",dial_code:"+56",code:"CL",continent:"SA"},{name:"China",dial_code:"+86",code:"CN",available:!0,continent:"AS"},{name:"Christmas Island",dial_code:"+61",code:"CX",continent:"OC"},{name:"Cocos (Keeling) Islands",dial_code:"+61",code:"CC",continent:"OC"},{name:"Colombia",dial_code:"+57",code:"CO",continent:"SA"},{name:"Comoros",dial_code:"+269",code:"KM",continent:"AF"},{name:"Congo",dial_code:"+242",code:"CG",continent:"AF"},{name:"Congo, The Democratic Republic of the Congo",dial_code:"+243",code:"CD"},{name:"Cook Islands",dial_code:"+682",code:"CK",continent:"OC"},{name:"Costa Rica",dial_code:"+506",code:"CR",continent:"NA"},{name:"Cote d'Ivoire",dial_code:"+225",code:"CI"},{name:"Croatia",dial_code:"+385",code:"HR",continent:"EU"},{name:"Cuba",dial_code:"+53",code:"CU",continent:"NA"},{name:"Cyprus",dial_code:"+357",code:"CY",continent:"AS"},{name:"Czech Republic",dial_code:"+420",code:"CZ",continent:"EU"},{name:"Denmark",dial_code:"+45",code:"DK",continent:"EU"},{name:"Djibouti",dial_code:"+253",code:"DJ",continent:"AF"},{name:"Dominica",dial_code:"+1767",code:"DM",continent:"NA"},{name:"Dominican Republic",dial_code:"+1849",code:"DO",continent:"NA"},{name:"Ecuador",dial_code:"+593",code:"EC",continent:"SA"},{name:"Egypt",dial_code:"+20",code:"EG",continent:"AF"},{name:"El Salvador",dial_code:"+503",code:"SV",continent:"NA"},{name:"Equatorial Guinea",dial_code:"+240",code:"GQ",continent:"AF"},{name:"Eritrea",dial_code:"+291",code:"ER",continent:"AF"},{name:"Estonia",dial_code:"+372",code:"EE",continent:"EU"},{name:"Ethiopia",dial_code:"+251",code:"ET",continent:"AF"},{name:"Falkland Islands (Malvinas)",dial_code:"+500",code:"FK"},{name:"Faroe Islands",dial_code:"+298",code:"FO",continent:"EU"},{name:"Fiji Islands",dial_code:"+679",code:"FJ",continent:"OC"},{name:"Finland",dial_code:"+358",code:"FI",available:!0,continent:"EU"},{name:"France",dial_code:"+33",code:"FR",available:!0,continent:"EU"},{name:"French Guiana",dial_code:"+594",code:"GF",continent:"SA"},{name:"French Polynesia",dial_code:"+689",code:"PF",continent:"OC"},{name:"Gabon",dial_code:"+241",code:"GA",continent:"AF"},{name:"Gambia",dial_code:"+220",code:"GM",continent:"AF"},{name:"Georgia",dial_code:"+995",code:"GE",continent:"AS"},{name:"Germany",dial_code:"+49",code:"DE",available:!0,continent:"EU"},{name:"Ghana",dial_code:"+233",code:"GH",continent:"AF"},{name:"Gibraltar",dial_code:"+350",code:"GI",continent:"EU"},{name:"Greece",dial_code:"+30",code:"GR",continent:"EU"},{name:"Greenland",dial_code:"+299",code:"GL",continent:"NA"},{name:"Grenada",dial_code:"+1473",code:"GD",continent:"NA"},{name:"Guadeloupe",dial_code:"+590",code:"GP",continent:"NA"},{name:"Guam",dial_code:"+1671",code:"GU",continent:"OC"},{name:"Guatemala",dial_code:"+502",code:"GT",continent:"NA"},{name:"Guernsey",dial_code:"+44",code:"GG"},{name:"Guinea",dial_code:"+224",code:"GN",continent:"AF"},{name:"Guinea-Bissau",dial_code:"+245",code:"GW",continent:"AF"},{name:"Guyana",dial_code:"+595",code:"GY",continent:"SA"},{name:"Haiti",dial_code:"+509",code:"HT",continent:"NA"},{name:"Holy See (Vatican City State)",dial_code:"+379",code:"VA",continent:"EU"},{name:"Honduras",dial_code:"+504",code:"HN",continent:"NA"},{name:"Hong Kong",dial_code:"+852",code:"HK",continent:"AS"},{name:"Hungary",dial_code:"+36",code:"HU",continent:"EU"},{name:"Iceland",dial_code:"+354",code:"IS",continent:"EU"},{name:"India",dial_code:"+91",code:"IN",continent:"AS"},{name:"Indonesia",dial_code:"+62",code:"ID",continent:"AS"},{name:"Iran",dial_code:"+98",code:"IR",continent:"AS"},{name:"Iraq",dial_code:"+964",code:"IQ",continent:"AS"},{name:"Ireland",dial_code:"+353",code:"IE",continent:"EU"},{name:"Isle of Man",dial_code:"+44",code:"IM"},{name:"Israel",dial_code:"+972",code:"IL",continent:"AS"},{name:"Italy",dial_code:"+39",code:"IT",continent:"EU"},{name:"Jamaica",dial_code:"+1876",code:"JM",continent:"NA"},{name:"Japan",dial_code:"+81",code:"JP",continent:"AS"},{name:"Jersey",dial_code:"+44",code:"JE"},{name:"Jordan",dial_code:"+962",code:"JO",continent:"AS"},{name:"Kazakhstan",dial_code:"+77",code:"KZ",continent:"AS"},{name:"Kenya",dial_code:"+254",code:"KE",continent:"AF"},{name:"Kiribati",dial_code:"+686",code:"KI",continent:"OC"},{name:"North Korea",dial_code:"+850",code:"KP",continent:"AS"},{name:"South Korea",dial_code:"+82",code:"KR",continent:"AS"},{name:"Kuwait",dial_code:"+965",code:"KW",continent:"AS"},{name:"Kyrgyzstan",dial_code:"+996",code:"KG",continent:"AS"},{name:"Laos",dial_code:"+856",code:"LA",continent:"AS"},{name:"Latvia",dial_code:"+371",code:"LV",continent:"EU"},{name:"Lebanon",dial_code:"+961",code:"LB",continent:"AS"},{name:"Lesotho",dial_code:"+266",code:"LS",continent:"AF"},{name:"Liberia",dial_code:"+231",code:"LR",continent:"AF"},{name:"Libyan Arab Jamahiriya",dial_code:"+218",code:"LY",continent:"AF"},{name:"Liechtenstein",dial_code:"+423",code:"LI",continent:"EU"},{name:"Lithuania",dial_code:"+370",code:"LT",available:!0,continent:"EU"},{name:"Luxembourg",dial_code:"+352",code:"LU",continent:"EU"},{name:"Macao",dial_code:"+853",code:"MO",continent:"AS"},{name:"Macedonia",dial_code:"+389",code:"MK",continent:"EU"},{name:"Madagascar",dial_code:"+261",code:"MG",continent:"AF"},{name:"Malawi",dial_code:"+265",code:"MW",continent:"AF"},{name:"Malaysia",dial_code:"+60",code:"MY",continent:"AS"},{name:"Maldives",dial_code:"+960",code:"MV",continent:"AS"},{name:"Mali",dial_code:"+223",code:"ML",continent:"AF"},{name:"Malta",dial_code:"+356",code:"MT",continent:"EU"},{name:"Marshall Islands",dial_code:"+692",code:"MH",continent:"OC"},{name:"Martinique",dial_code:"+596",code:"MQ",continent:"NA"},{name:"Mauritania",dial_code:"+222",code:"MR",continent:"AF"},{name:"Mauritius",dial_code:"+230",code:"MU",continent:"AF"},{name:"Mayotte",dial_code:"+262",code:"YT",continent:"AF"},{name:"Mexico",dial_code:"+52",code:"MX",continent:"NA"},{name:"Micronesia, Federated States of Micronesia",dial_code:"+691",code:"FM",continent:"OC"},{name:"Moldova",dial_code:"+373",code:"MD",continent:"EU"},{name:"Monaco",dial_code:"+377",code:"MC",continent:"EU"},{name:"Mongolia",dial_code:"+976",code:"MN",continent:"AS"},{name:"Montenegro",dial_code:"+382",code:"ME",continent:"EU"},{name:"Montserrat",dial_code:"+1664",code:"MS",continent:"NA"},{name:"Morocco",dial_code:"+212",code:"MA",continent:"AF"},{name:"Mozambique",dial_code:"+258",code:"MZ",continent:"AF"},{name:"Myanmar",dial_code:"+95",code:"MM",continent:"AS"},{name:"Namibia",dial_code:"+264",code:"NA",continent:"AF"},{name:"Nauru",dial_code:"+674",code:"NR",continent:"OC"},{name:"Nepal",dial_code:"+977",code:"NP",continent:"AS"},{name:"Netherlands",dial_code:"+31",code:"NL",available:!0,continent:"EU"},{name:"Netherlands Antilles",dial_code:"+599",code:"AN",continent:"NA"},{name:"New Caledonia",dial_code:"+687",code:"NC",continent:"OC"},{name:"New Zealand",dial_code:"+64",code:"NZ",continent:"OC"},{name:"Nicaragua",dial_code:"+505",code:"NI",continent:"NA"},{name:"Niger",dial_code:"+227",code:"NE",continent:"AF"},{name:"Nigeria",dial_code:"+234",code:"NG",continent:"AF"},{name:"Niue",dial_code:"+683",code:"NU",continent:"OC"},{name:"Norfolk Island",dial_code:"+672",code:"NF",continent:"OC"},{name:"Northern Mariana Islands",dial_code:"+1670",code:"MP",continent:"OC"},{name:"Norway",dial_code:"+47",code:"NO",continent:"EU"},{name:"Oman",dial_code:"+968",code:"OM",continent:"AS"},{name:"Pakistan",dial_code:"+92",code:"PK",continent:"AS"},{name:"Palau",dial_code:"+680",code:"PW",continent:"OC"},{name:"Palestinian Territory, Occupied",dial_code:"+970",code:"PS"},{name:"Panama",dial_code:"+507",code:"PA",continent:"NA"},{name:"Papua New Guinea",dial_code:"+675",code:"PG",continent:"OC"},{name:"Paraguay",dial_code:"+595",code:"PY",continent:"SA"},{name:"Peru",dial_code:"+51",code:"PE",continent:"SA"},{name:"Philippines",dial_code:"+63",code:"PH",continent:"AS"},{name:"Pitcairn",dial_code:"+872",code:"PN",continent:"OC"},{name:"Poland",dial_code:"+48",code:"PL",available:!0,continent:"EU"},{name:"Portugal",dial_code:"+351",code:"PT",available:!0,continent:"EU"},{name:"Puerto Rico",dial_code:"+1939",code:"PR",continent:"NA"},{name:"Qatar",dial_code:"+974",code:"QA",continent:"AS"},{name:"Romania",dial_code:"+40",code:"RO",continent:"EU"},{name:"Russia",dial_code:"+7",code:"RU",available:!0,continent:"EU"},{name:"Rwanda",dial_code:"+250",code:"RW",continent:"AF"},{name:"Reunion",dial_code:"+262",code:"RE",continent:"AF"},{name:"Saint Barthelemy",dial_code:"+590",code:"BL"},{name:"Saint Helena",dial_code:"+290",code:"SH",continent:"AF"},{name:"Saint Kitts and Nevis",dial_code:"+1869",code:"KN",continent:"NA"},{name:"Saint Lucia",dial_code:"+1758",code:"LC",continent:"NA"},{name:"Saint Martin",dial_code:"+590",code:"MF"},{name:"Saint Pierre and Miquelon",dial_code:"+508",code:"PM",continent:"NA"},{name:"Saint Vincent and the Grenadines",dial_code:"+1784",code:"VC",continent:"NA"},{name:"Samoa",dial_code:"+685",code:"WS",continent:"OC"},{name:"San Marino",dial_code:"+378",code:"SM",continent:"EU"},{name:"Sao Tome and Principe",dial_code:"+239",code:"ST",continent:"AF"},{name:"Saudi Arabia",dial_code:"+966",code:"SA",continent:"AS"},{name:"Senegal",dial_code:"+221",code:"SN",continent:"AF"},{name:"Serbia",dial_code:"+381",code:"RS",continent:"EU"},{name:"Seychelles",dial_code:"+248",code:"SC",continent:"AF"},{name:"Sierra Leone",dial_code:"+232",code:"SL",continent:"AF"},{name:"Singapore",dial_code:"+65",code:"SG",continent:"AS"},{name:"Slovakia",dial_code:"+421",code:"SK",continent:"EU"},{name:"Slovenia",dial_code:"+386",code:"SI",available:!0,continent:"EU"},{name:"Solomon Islands",dial_code:"+677",code:"SB",continent:"OC"},{name:"Somalia",dial_code:"+252",code:"SO",continent:"AF"},{name:"South Africa",dial_code:"+27",code:"ZA",continent:"AF"},{name:"South Sudan",dial_code:"+211",code:"SS",continent:"AF"},{name:"South Georgia and the South Sandwich Islands",dial_code:"+500",code:"GS",continent:"AN"},{name:"Spain",dial_code:"+34",code:"ES",available:!0,continent:"EU"},{name:"Sri Lanka",dial_code:"+94",code:"LK",continent:"AS"},{name:"Sudan",dial_code:"+249",code:"SD",continent:"AF"},{name:"Suriname",dial_code:"+597",code:"SR",continent:"SA"},{name:"Svalbard and Jan Mayen",dial_code:"+47",code:"SJ",continent:"EU"},{name:"Swaziland",dial_code:"+268",code:"SZ",continent:"AF"},{name:"Sweden",dial_code:"+46",code:"SE",continent:"EU"},{name:"Switzerland",dial_code:"+41",code:"CH",continent:"EU"},{name:"Syrian Arab Republic",dial_code:"+963",code:"SY"},{name:"Taiwan",dial_code:"+886",code:"TW"},{name:"Tajikistan",dial_code:"+992",code:"TJ",continent:"AS"},{name:"Tanzania, United Republic of Tanzania",dial_code:"+255",code:"TZ"},{name:"Thailand",dial_code:"+66",code:"TH",continent:"AS"},{name:"Timor-Leste",dial_code:"+670",code:"TL"},{name:"Togo",dial_code:"+228",code:"TG",continent:"AF"},{name:"Tokelau",dial_code:"+690",code:"TK",continent:"OC"},{name:"Tonga",dial_code:"+676",code:"TO",continent:"OC"},{name:"Trinidad and Tobago",dial_code:"+1868",code:"TT",continent:"NA"},{name:"Tunisia",dial_code:"+216",code:"TN",continent:"AF"},{name:"Turkey",dial_code:"+90",code:"TR",continent:"AS"},{name:"Turkmenistan",dial_code:"+993",code:"TM",continent:"AS"},{name:"Turks and Caicos Islands",dial_code:"+1649",code:"TC",continent:"NA"},{name:"Tuvalu",dial_code:"+688",code:"TV",continent:"OC"},{name:"Uganda",dial_code:"+256",code:"UG",continent:"AF"},{name:"Ukraine",dial_code:"+380",code:"UA",continent:"EU"},{name:"United Arab Emirates",dial_code:"+971",code:"AE",continent:"AS"},{name:"United Kingdom",dial_code:"+44",code:"GB",available:!0,continent:"EU"},{name:"United States",dial_code:"+1",code:"US",available:!0,continent:"NA"},{name:"Uruguay",dial_code:"+598",code:"UY",continent:"SA"},{name:"Uzbekistan",dial_code:"+998",code:"UZ",continent:"AS"},{name:"Vanuatu",dial_code:"+678",code:"VU",continent:"OC"},{name:"Venezuela, Bolivarian Republic of Venezuela",dial_code:"+58",code:"VE"},{name:"Vietnam",dial_code:"+84",code:"VN",continent:"AS"},{name:"Virgin Islands, British",dial_code:"+1284",code:"VG",continent:"NA"},{name:"Virgin Islands, U.S.",dial_code:"+1340",code:"VI",continent:"NA"},{name:"Wallis and Futuna",dial_code:"+681",code:"WF",continent:"OC"},{name:"Yemen",dial_code:"+967",code:"YE",continent:"AS"},{name:"Zambia",dial_code:"+260",code:"ZM",continent:"AF"},{name:"Zimbabwe",dial_code:"+263",code:"ZW",continent:"AF"}],a=[{name:"Africa",code:"AF"},{name:"North America",code:"NA",available:!0},{name:"Oceania",code:"OC",available:!0},{name:"Asia",code:"AS",available:!0},{name:"Europe",code:"EU",available:!0},{name:"South America",code:"SA"},{name:"Antarctica",code:"AN"}];e.exports={countries:n,continents:a}},43672:(e,n,a)=>{"use strict";a.d(n,{Z:()=>t});var o=a(80914);const t={listRunningApps(){const e={headers:{"x-apicache-bypass":!0}};return(0,o.Z)().get("/apps/listrunningapps",e)},listAllApps(){const e={headers:{"x-apicache-bypass":!0}};return(0,o.Z)().get("/apps/listallapps",e)},installedApps(){const e={headers:{"x-apicache-bypass":!0}};return(0,o.Z)().get("/apps/installedapps",e)},availableApps(){return(0,o.Z)().get("/apps/availableapps")},getEnterpriseNodes(){return(0,o.Z)().get("/apps/enterprisenodes")},stopApp(e,n){const a={headers:{zelidauth:e,"x-apicache-bypass":!0}};return(0,o.Z)().get(`/apps/appstop/${n}`,a)},startApp(e,n){const a={headers:{zelidauth:e}};return(0,o.Z)().get(`/apps/appstart/${n}`,a)},pauseApp(e,n){const a={headers:{zelidauth:e}};return(0,o.Z)().get(`/apps/apppause/${n}`,a)},unpauseApp(e,n){const a={headers:{zelidauth:e}};return(0,o.Z)().get(`/apps/appunpause/${n}`,a)},restartApp(e,n){const a={headers:{zelidauth:e}};return(0,o.Z)().get(`/apps/apprestart/${n}`,a)},removeApp(e,n){const a={headers:{zelidauth:e},onDownloadProgress(e){console.log(e)}};return(0,o.Z)().get(`/apps/appremove/${n}`,a)},registerApp(e,n){const a={headers:{zelidauth:e}};return(0,o.Z)().post("/apps/appregister",JSON.stringify(n),a)},updateApp(e,n){const a={headers:{zelidauth:e}};return(0,o.Z)().post("/apps/appupdate",JSON.stringify(n),a)},checkCommunication(){return(0,o.Z)().get("/flux/checkcommunication")},checkDockerExistance(e,n){const a={headers:{zelidauth:e}};return(0,o.Z)().post("/apps/checkdockerexistance",JSON.stringify(n),a)},appsRegInformation(){return(0,o.Z)().get("/apps/registrationinformation")},appsDeploymentInformation(){return(0,o.Z)().get("/apps/deploymentinformation")},getAppLocation(e){return(0,o.Z)().get(`/apps/location/${e}`)},globalAppSpecifications(){return(0,o.Z)().get("/apps/globalappsspecifications")},permanentMessagesOwner(e){return(0,o.Z)().get(`/apps/permanentmessages?owner=${e}`)},getInstalledAppSpecifics(e){return(0,o.Z)().get(`/apps/installedapps/${e}`)},getAppSpecifics(e){return(0,o.Z)().get(`/apps/appspecifications/${e}`)},getAppOwner(e){return(0,o.Z)().get(`/apps/appowner/${e}`)},getAppLogsTail(e,n){const a={headers:{zelidauth:e}};return(0,o.Z)().get(`/apps/applog/${n}/100`,a)},getAppTop(e,n){const a={headers:{zelidauth:e}};return(0,o.Z)().get(`/apps/apptop/${n}`,a)},getAppInspect(e,n){const a={headers:{zelidauth:e}};return(0,o.Z)().get(`/apps/appinspect/${n}`,a)},getAppStats(e,n){const a={headers:{zelidauth:e}};return(0,o.Z)().get(`/apps/appstats/${n}`,a)},getAppChanges(e,n){const a={headers:{zelidauth:e}};return(0,o.Z)().get(`/apps/appchanges/${n}`,a)},getAppExec(e,n,a,t){const i={headers:{zelidauth:e}},d={appname:n,cmd:a,env:JSON.parse(t)};return(0,o.Z)().post("/apps/appexec",JSON.stringify(d),i)},reindexGlobalApps(e){return(0,o.Z)().get("/apps/reindexglobalappsinformation",{headers:{zelidauth:e}})},reindexLocations(e){return(0,o.Z)().get("/apps/reindexglobalappslocation",{headers:{zelidauth:e}})},rescanGlobalApps(e,n,a){return(0,o.Z)().get(`/apps/rescanglobalappsinformation/${n}/${a}`,{headers:{zelidauth:e}})},getFolder(e,n){return(0,o.Z)().get(`/apps/fluxshare/getfolder/${n}`,{headers:{zelidauth:e}})},createFolder(e,n){return(0,o.Z)().get(`/apps/fluxshare/createfolder/${n}`,{headers:{zelidauth:e}})},getFile(e,n){return(0,o.Z)().get(`/apps/fluxshare/getfile/${n}`,{headers:{zelidauth:e}})},removeFile(e,n){return(0,o.Z)().get(`/apps/fluxshare/removefile/${n}`,{headers:{zelidauth:e}})},shareFile(e,n){return(0,o.Z)().get(`/apps/fluxshare/sharefile/${n}`,{headers:{zelidauth:e}})},unshareFile(e,n){return(0,o.Z)().get(`/apps/fluxshare/unsharefile/${n}`,{headers:{zelidauth:e}})},removeFolder(e,n){return(0,o.Z)().get(`/apps/fluxshare/removefolder/${n}`,{headers:{zelidauth:e}})},fileExists(e,n){return(0,o.Z)().get(`/apps/fluxshare/fileexists/${n}`,{headers:{zelidauth:e}})},storageStats(e){return(0,o.Z)().get("/apps/fluxshare/stats",{headers:{zelidauth:e}})},renameFileFolder(e,n,a){return(0,o.Z)().get(`/apps/fluxshare/rename/${n}/${a}`,{headers:{zelidauth:e}})},appPrice(e){return(0,o.Z)().post("/apps/calculateprice",JSON.stringify(e))},appPriceUSDandFlux(e){return(0,o.Z)().post("/apps/calculatefiatandfluxprice",JSON.stringify(e))},appRegistrationVerificaiton(e){return(0,o.Z)().post("/apps/verifyappregistrationspecifications",JSON.stringify(e))},appUpdateVerification(e){return(0,o.Z)().post("/apps/verifyappupdatespecifications",JSON.stringify(e))},getAppMonitoring(e,n){const a={headers:{zelidauth:e}};return(0,o.Z)().get(`/apps/appmonitor/${n}`,a)},startAppMonitoring(e,n){const a={headers:{zelidauth:e}};return n?(0,o.Z)().get(`/apps/startmonitoring/${n}`,a):(0,o.Z)().get("/apps/startmonitoring",a)},stopAppMonitoring(e,n,a){const t={headers:{zelidauth:e}};return n&&a?(0,o.Z)().get(`/apps/stopmonitoring/${n}/${a}`,t):n?(0,o.Z)().get(`/apps/stopmonitoring/${n}`,t):a?(0,o.Z)().get(`/apps/stopmonitoring?deletedata=${a}`,t):(0,o.Z)().get("/apps/stopmonitoring",t)},justAPI(){return(0,o.Z)()}}},20134:(e,n,a)=>{"use strict";e.exports=a.p+"img/Stripe.svg"},36547:(e,n,a)=>{"use strict";e.exports=a.p+"img/PayPal.png"}}]); \ No newline at end of file diff --git a/HomeUI/dist/js/8910.js b/HomeUI/dist/js/8910.js index 72c3b5110..b67948483 100644 --- a/HomeUI/dist/js/8910.js +++ b/HomeUI/dist/js/8910.js @@ -1 +1 @@ -"use strict";(globalThis["webpackChunkflux"]=globalThis["webpackChunkflux"]||[]).push([[8910],{34547:(t,e,a)=>{a.d(e,{Z:()=>u});var n=function(){var t=this,e=t._self._c;return e("div",{staticClass:"toastification"},[e("div",{staticClass:"d-flex align-items-start"},[e("b-avatar",{staticClass:"mr-75 flex-shrink-0",attrs:{variant:t.variant,size:"1.8rem"}},[e("feather-icon",{attrs:{icon:t.icon,size:"15"}})],1),e("div",{staticClass:"d-flex flex-grow-1"},[e("div",[t.title?e("h5",{staticClass:"mb-0 font-weight-bolder toastification-title",class:`text-${t.variant}`,domProps:{textContent:t._s(t.title)}}):t._e(),t.text?e("small",{staticClass:"d-inline-block text-body",domProps:{textContent:t._s(t.text)}}):t._e()]),e("span",{staticClass:"cursor-pointer toastification-close-icon ml-auto",on:{click:function(e){return t.$emit("close-toast")}}},[t.hideClose?t._e():e("feather-icon",{staticClass:"text-body",attrs:{icon:"XIcon"}})],1)])],1)])},r=[],s=a(47389);const o={components:{BAvatar:s.SH},props:{variant:{type:String,default:"primary"},icon:{type:String,default:null},title:{type:String,default:null},text:{type:String,default:null},hideClose:{type:Boolean,default:!1}}},i=o;var l=a(1001),d=(0,l.Z)(i,n,r,!1,null,"22d964ca",null);const u=d.exports},28910:(t,e,a)=>{a.r(e),a.d(e,{default:()=>Z});var n=function(){var t=this,e=t._self._c;return e("b-card",[e("b-card-text",[t._v(" Please paste a Transaction ID below to get the raw transaction data ")]),e("b-form-input",{attrs:{placeholder:"Transaction ID"},model:{value:t.txid,callback:function(e){t.txid=e},expression:"txid"}}),e("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"my-1",attrs:{variant:"outline-primary",size:"md"},on:{click:t.daemonGetRawTransaction}},[t._v(" Get Transaction ")]),t.callResponse.data?e("b-form-textarea",{attrs:{plaintext:"","no-resize":"",rows:"30",value:t.callResponse.data}}):t._e()],1)},r=[],s=a(86855),o=a(64206),i=a(15193),l=a(22183),d=a(333),u=a(34547),c=a(20266),g=a(27616);const m={components:{BCard:s._,BCardText:o.j,BButton:i.T,BFormInput:l.e,BFormTextarea:d.y,ToastificationContent:u.Z},directives:{Ripple:c.Z},data(){return{txid:"",callResponse:{status:"",data:""}}},methods:{async daemonGetRawTransaction(){const t=await g.Z.getRawTransaction(this.txid,1);"error"===t.data.status?this.$toast({component:u.Z,props:{title:t.data.data.message||t.data.data,icon:"InfoIcon",variant:"danger"}}):(this.callResponse.status=t.data.status,this.callResponse.data=JSON.stringify(t.data.data,null,4))}}},h=m;var p=a(1001),f=(0,p.Z)(h,n,r,!1,null,null,null);const Z=f.exports},27616:(t,e,a)=>{a.d(e,{Z:()=>r});var n=a(80914);const r={help(){return(0,n.Z)().get("/daemon/help")},helpSpecific(t){return(0,n.Z)().get(`/daemon/help/${t}`)},getInfo(){return(0,n.Z)().get("/daemon/getinfo")},getFluxNodeStatus(){return(0,n.Z)().get("/daemon/getzelnodestatus")},getRawTransaction(t,e){return(0,n.Z)().get(`/daemon/getrawtransaction/${t}/${e}`)},listFluxNodes(){return(0,n.Z)().get("/daemon/listzelnodes")},viewDeterministicFluxNodeList(){return(0,n.Z)().get("/daemon/viewdeterministiczelnodelist")},getFluxNodeCount(){return(0,n.Z)().get("/daemon/getzelnodecount")},getStartList(){return(0,n.Z)().get("/daemon/getstartlist")},getDOSList(){return(0,n.Z)().get("/daemon/getdoslist")},fluxCurrentWinner(){return(0,n.Z)().get("/daemon/fluxcurrentwinner")},getBenchmarks(){return(0,n.Z)().get("/daemon/getbenchmarks")},getBenchStatus(){return(0,n.Z)().get("/daemon/getbenchstatus")},startBenchmark(t){return(0,n.Z)().get("/daemon/startbenchmark",{headers:{zelidauth:t}})},stopBenchmark(t){return(0,n.Z)().get("/daemon/stopbenchmark",{headers:{zelidauth:t}})},getBlockCount(){return(0,n.Z)().get("/daemon/getBlockCount")},getBlockchainInfo(){return(0,n.Z)().get("/daemon/getblockchaininfo")},getMiningInfo(){return(0,n.Z)().get("/daemon/getmininginfo")},getNetworkInfo(){return(0,n.Z)().get("/daemon/getnetworkinfo")},validateAddress(t,e){return(0,n.Z)().get(`/daemon/validateaddress/${e}`,{headers:{zelidauth:t}})},getWalletInfo(t){return(0,n.Z)().get("/daemon/getwalletinfo",{headers:{zelidauth:t}})},listFluxNodeConf(t){return(0,n.Z)().get("/daemon/listzelnodeconf",{headers:{zelidauth:t}})},start(t){return(0,n.Z)().get("/daemon/start",{headers:{zelidauth:t}})},restart(t){return(0,n.Z)().get("/daemon/restart",{headers:{zelidauth:t}})},stopDaemon(t){return(0,n.Z)().get("/daemon/stop",{headers:{zelidauth:t}})},rescanDaemon(t,e){return(0,n.Z)().get(`/daemon/rescanblockchain/${e}`,{headers:{zelidauth:t}})},getBlock(t,e){return(0,n.Z)().get(`/daemon/getblock/${t}/${e}`)},tailDaemonDebug(t){return(0,n.Z)().get("/flux/taildaemondebug",{headers:{zelidauth:t}})},justAPI(){return(0,n.Z)()},cancelToken(){return n.S}}}}]); \ No newline at end of file +"use strict";(self["webpackChunkflux"]=self["webpackChunkflux"]||[]).push([[8910],{34547:(t,e,a)=>{a.d(e,{Z:()=>u});var n=function(){var t=this,e=t._self._c;return e("div",{staticClass:"toastification"},[e("div",{staticClass:"d-flex align-items-start"},[e("b-avatar",{staticClass:"mr-75 flex-shrink-0",attrs:{variant:t.variant,size:"1.8rem"}},[e("feather-icon",{attrs:{icon:t.icon,size:"15"}})],1),e("div",{staticClass:"d-flex flex-grow-1"},[e("div",[t.title?e("h5",{staticClass:"mb-0 font-weight-bolder toastification-title",class:`text-${t.variant}`,domProps:{textContent:t._s(t.title)}}):t._e(),t.text?e("small",{staticClass:"d-inline-block text-body",domProps:{textContent:t._s(t.text)}}):t._e()]),e("span",{staticClass:"cursor-pointer toastification-close-icon ml-auto",on:{click:function(e){return t.$emit("close-toast")}}},[t.hideClose?t._e():e("feather-icon",{staticClass:"text-body",attrs:{icon:"XIcon"}})],1)])],1)])},r=[],s=a(47389);const o={components:{BAvatar:s.SH},props:{variant:{type:String,default:"primary"},icon:{type:String,default:null},title:{type:String,default:null},text:{type:String,default:null},hideClose:{type:Boolean,default:!1}}},i=o;var l=a(1001),d=(0,l.Z)(i,n,r,!1,null,"22d964ca",null);const u=d.exports},28910:(t,e,a)=>{a.r(e),a.d(e,{default:()=>Z});var n=function(){var t=this,e=t._self._c;return e("b-card",[e("b-card-text",[t._v(" Please paste a Transaction ID below to get the raw transaction data ")]),e("b-form-input",{attrs:{placeholder:"Transaction ID"},model:{value:t.txid,callback:function(e){t.txid=e},expression:"txid"}}),e("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"my-1",attrs:{variant:"outline-primary",size:"md"},on:{click:t.daemonGetRawTransaction}},[t._v(" Get Transaction ")]),t.callResponse.data?e("b-form-textarea",{attrs:{plaintext:"","no-resize":"",rows:"30",value:t.callResponse.data}}):t._e()],1)},r=[],s=a(86855),o=a(64206),i=a(15193),l=a(22183),d=a(333),u=a(34547),c=a(20266),g=a(27616);const m={components:{BCard:s._,BCardText:o.j,BButton:i.T,BFormInput:l.e,BFormTextarea:d.y,ToastificationContent:u.Z},directives:{Ripple:c.Z},data(){return{txid:"",callResponse:{status:"",data:""}}},methods:{async daemonGetRawTransaction(){const t=await g.Z.getRawTransaction(this.txid,1);"error"===t.data.status?this.$toast({component:u.Z,props:{title:t.data.data.message||t.data.data,icon:"InfoIcon",variant:"danger"}}):(this.callResponse.status=t.data.status,this.callResponse.data=JSON.stringify(t.data.data,null,4))}}},h=m;var p=a(1001),f=(0,p.Z)(h,n,r,!1,null,null,null);const Z=f.exports},27616:(t,e,a)=>{a.d(e,{Z:()=>r});var n=a(80914);const r={help(){return(0,n.Z)().get("/daemon/help")},helpSpecific(t){return(0,n.Z)().get(`/daemon/help/${t}`)},getInfo(){return(0,n.Z)().get("/daemon/getinfo")},getFluxNodeStatus(){return(0,n.Z)().get("/daemon/getzelnodestatus")},getRawTransaction(t,e){return(0,n.Z)().get(`/daemon/getrawtransaction/${t}/${e}`)},listFluxNodes(){return(0,n.Z)().get("/daemon/listzelnodes")},viewDeterministicFluxNodeList(){return(0,n.Z)().get("/daemon/viewdeterministiczelnodelist")},getFluxNodeCount(){return(0,n.Z)().get("/daemon/getzelnodecount")},getStartList(){return(0,n.Z)().get("/daemon/getstartlist")},getDOSList(){return(0,n.Z)().get("/daemon/getdoslist")},fluxCurrentWinner(){return(0,n.Z)().get("/daemon/fluxcurrentwinner")},getBenchmarks(){return(0,n.Z)().get("/daemon/getbenchmarks")},getBenchStatus(){return(0,n.Z)().get("/daemon/getbenchstatus")},startBenchmark(t){return(0,n.Z)().get("/daemon/startbenchmark",{headers:{zelidauth:t}})},stopBenchmark(t){return(0,n.Z)().get("/daemon/stopbenchmark",{headers:{zelidauth:t}})},getBlockCount(){return(0,n.Z)().get("/daemon/getBlockCount")},getBlockchainInfo(){return(0,n.Z)().get("/daemon/getblockchaininfo")},getMiningInfo(){return(0,n.Z)().get("/daemon/getmininginfo")},getNetworkInfo(){return(0,n.Z)().get("/daemon/getnetworkinfo")},validateAddress(t,e){return(0,n.Z)().get(`/daemon/validateaddress/${e}`,{headers:{zelidauth:t}})},getWalletInfo(t){return(0,n.Z)().get("/daemon/getwalletinfo",{headers:{zelidauth:t}})},listFluxNodeConf(t){return(0,n.Z)().get("/daemon/listzelnodeconf",{headers:{zelidauth:t}})},start(t){return(0,n.Z)().get("/daemon/start",{headers:{zelidauth:t}})},restart(t){return(0,n.Z)().get("/daemon/restart",{headers:{zelidauth:t}})},stopDaemon(t){return(0,n.Z)().get("/daemon/stop",{headers:{zelidauth:t}})},rescanDaemon(t,e){return(0,n.Z)().get(`/daemon/rescanblockchain/${e}`,{headers:{zelidauth:t}})},getBlock(t,e){return(0,n.Z)().get(`/daemon/getblock/${t}/${e}`)},tailDaemonDebug(t){return(0,n.Z)().get("/flux/taildaemondebug",{headers:{zelidauth:t}})},justAPI(){return(0,n.Z)()},cancelToken(){return n.S}}}}]); \ No newline at end of file diff --git a/HomeUI/dist/js/9083.js b/HomeUI/dist/js/9083.js index 653843d56..33301462e 100644 --- a/HomeUI/dist/js/9083.js +++ b/HomeUI/dist/js/9083.js @@ -1,4 +1,4 @@ -(globalThis["webpackChunkflux"]=globalThis["webpackChunkflux"]||[]).push([[9083],{65987:t=>{"use strict";var e={single_source_shortest_paths:function(t,n,i){var r={},s={};s[n]=0;var o,a,l,u,c,h,d,f,p,g=e.PriorityQueue.make();g.push(n,0);while(!g.empty())for(l in o=g.pop(),a=o.value,u=o.cost,c=t[a]||{},c)c.hasOwnProperty(l)&&(h=c[l],d=u+h,f=s[l],p="undefined"===typeof s[l],(p||f>d)&&(s[l]=d,g.push(l,d),r[l]=a));if("undefined"!==typeof i&&"undefined"===typeof s[i]){var m=["Could not find a path from ",n," to ",i,"."].join("");throw new Error(m)}return r},extract_shortest_path_from_predecessor_list:function(t,e){var n=[],i=e;while(i)n.push(i),t[i],i=t[i];return n.reverse(),n},find_path:function(t,n,i){var r=e.single_source_shortest_paths(t,n,i);return e.extract_shortest_path_from_predecessor_list(r,i)},PriorityQueue:{make:function(t){var n,i=e.PriorityQueue,r={};for(n in t=t||{},i)i.hasOwnProperty(n)&&(r[n]=i[n]);return r.queue=[],r.sorter=t.sorter||i.default_sorter,r},default_sorter:function(t,e){return t.cost-e.cost},push:function(t,e){var n={value:t,cost:e};this.queue.push(n),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return 0===this.queue.length}}};t.exports=e},62378:t=>{"use strict";t.exports=function(t){for(var e=[],n=t.length,i=0;i=55296&&r<=56319&&n>i+1){var s=t.charCodeAt(i+1);s>=56320&&s<=57343&&(r=1024*(r-55296)+s-56320+65536,i+=1)}r<128?e.push(r):r<2048?(e.push(r>>6|192),e.push(63&r|128)):r<55296||r>=57344&&r<65536?(e.push(r>>12|224),e.push(r>>6&63|128),e.push(63&r|128)):r>=65536&&r<=1114111?(e.push(r>>18|240),e.push(r>>12&63|128),e.push(r>>6&63|128),e.push(63&r|128)):e.push(239,191,189)}return new Uint8Array(e).buffer}},55817:(t,e,n)=>{"use strict";n.d(e,{j:()=>Tt});const i={duration:.3,delay:0,endDelay:0,repeat:0,easing:"ease"},r={ms:t=>1e3*t,s:t=>t/1e3},s=()=>{},o=t=>t;function a(t,e=!0){if(t&&"finished"!==t.playState)try{t.stop?t.stop():(e&&t.commitStyles(),t.cancel())}catch(n){}}const l=t=>t(),u=(t,e,n=i.duration)=>new Proxy({animations:t.map(l).filter(Boolean),duration:n,options:e},h),c=t=>t.animations[0],h={get:(t,e)=>{const n=c(t);switch(e){case"duration":return t.duration;case"currentTime":return r.s((null===n||void 0===n?void 0:n[e])||0);case"playbackRate":case"playState":return null===n||void 0===n?void 0:n[e];case"finished":return t.finished||(t.finished=Promise.all(t.animations.map(d)).catch(s)),t.finished;case"stop":return()=>{t.animations.forEach((t=>a(t)))};case"forEachNative":return e=>{t.animations.forEach((n=>e(n,t)))};default:return"undefined"===typeof(null===n||void 0===n?void 0:n[e])?void 0:()=>t.animations.forEach((t=>t[e]()))}},set:(t,e,n)=>{switch(e){case"currentTime":n=r.ms(n);case"playbackRate":for(let i=0;it.finished,f=t=>"object"===typeof t&&Boolean(t.createAnimation),p=t=>"number"===typeof t,g=t=>Array.isArray(t)&&!p(t[0]),m=(t,e,n)=>-n*t+n*e+t,y=(t,e,n)=>e-t===0?1:(n-t)/(e-t);function v(t,e){const n=t[t.length-1];for(let i=1;i<=e;i++){const r=y(0,e,i);t.push(m(n,1,r))}}function A(t){const e=[0];return v(e,t-1),e}const w=(t,e,n)=>{const i=e-t;return((n-t)%i+i)%i+t};function E(t,e){return g(t)?t[w(0,t.length,e)]:t}const $=(t,e,n)=>Math.min(Math.max(n,t),e);function _(t,e=A(t.length),n=o){const i=t.length,r=i-e.length;return r>0&&v(e,r),r=>{let s=0;for(;s(((1-3*n+3*e)*t+(3*n-6*e))*t+3*e)*t,C=1e-7,S=12;function T(t,e,n,i,r){let s,o,a=0;do{o=e+(n-e)/2,s=b(o,i,r)-t,s>0?n=o:e=o}while(Math.abs(s)>C&&++aT(e,0,1,t,n);return t=>0===t||1===t?t:b(r(t),e,i)}const M=(t,e="end")=>n=>{n="end"===e?Math.min(n,.999):Math.max(n,.001);const i=n*t,r="end"===e?Math.floor(i):Math.ceil(i);return $(0,1,r/t)},N=t=>"function"===typeof t,x=t=>Array.isArray(t)&&p(t[0]),R={ease:P(.25,.1,.25,1),"ease-in":P(.42,0,1,1),"ease-in-out":P(.42,0,.58,1),"ease-out":P(0,0,.58,1)},B=/\((.*?)\)/;function I(t){if(N(t))return t;if(x(t))return P(...t);if(R[t])return R[t];if(t.startsWith("steps")){const e=B.exec(t);if(e){const t=e[1].split(",");return M(parseFloat(t[0]),t[1].trim())}}return o}class U{constructor(t,e=[0,1],{easing:n,duration:r=i.duration,delay:s=i.delay,endDelay:a=i.endDelay,repeat:l=i.repeat,offset:u,direction:c="normal"}={}){if(this.startTime=null,this.rate=1,this.t=0,this.cancelTimestamp=null,this.easing=o,this.duration=0,this.totalDuration=0,this.repeat=0,this.playState="idle",this.finished=new Promise(((t,e)=>{this.resolve=t,this.reject=e})),n=n||i.easing,f(n)){const t=n.createAnimation(e);n=t.easing,e=t.keyframes||e,r=t.duration||r}this.repeat=l,this.easing=g(n)?o:I(n),this.updateDuration(r);const h=_(e,u,g(n)?n.map(I):o);this.tick=e=>{var n;let i=0;i=void 0!==this.pauseTime?this.pauseTime:(e-this.startTime)*this.rate,this.t=i,i/=1e3,i=Math.max(i-s,0),"finished"===this.playState&&void 0===this.pauseTime&&(i=this.totalDuration);const r=i/this.duration;let o=Math.floor(r),l=r%1;!l&&r>=1&&(l=1),1===l&&o--;const u=o%2;("reverse"===c||"alternate"===c&&u||"alternate-reverse"===c&&!u)&&(l=1-l);const d=i>=this.totalDuration?1:Math.min(l,1),f=h(this.easing(d));t(f);const p=void 0===this.pauseTime&&("finished"===this.playState||i>=this.totalDuration+a);p?(this.playState="finished",null===(n=this.resolve)||void 0===n||n.call(this,f)):"idle"!==this.playState&&(this.frameRequestId=requestAnimationFrame(this.tick))},this.play()}play(){const t=performance.now();this.playState="running",void 0!==this.pauseTime?this.startTime=t-this.pauseTime:this.startTime||(this.startTime=t),this.cancelTimestamp=this.startTime,this.pauseTime=void 0,this.frameRequestId=requestAnimationFrame(this.tick)}pause(){this.playState="paused",this.pauseTime=this.t}finish(){this.playState="finished",this.tick(0)}stop(){var t;this.playState="idle",void 0!==this.frameRequestId&&cancelAnimationFrame(this.frameRequestId),null===(t=this.reject)||void 0===t||t.call(this,!1)}cancel(){this.stop(),this.tick(this.cancelTimestamp)}reverse(){this.rate*=-1}commitStyles(){}updateDuration(t){this.duration=t,this.totalDuration=t*(this.repeat+1)}get currentTime(){return this.t}set currentTime(t){void 0!==this.pauseTime||0===this.rate?this.pauseTime=t:this.startTime=performance.now()-t/this.rate}get playbackRate(){return this.rate}set playbackRate(t){this.rate=t}}var k=function(){};class L{setAnimation(t){this.animation=t,null===t||void 0===t||t.finished.then((()=>this.clearAnimation())).catch((()=>{}))}clearAnimation(){this.animation=this.generator=void 0}}const O=new WeakMap;function H(t){return O.has(t)||O.set(t,{transforms:[],values:new Map}),O.get(t)}function D(t,e){return t.has(e)||t.set(e,new L),t.get(e)}function z(t,e){-1===t.indexOf(e)&&t.push(e)}const j=["","X","Y","Z"],V=["translate","scale","rotate","skew"],F={x:"translateX",y:"translateY",z:"translateZ"},Y={syntax:"",initialValue:"0deg",toDefaultUnit:t=>t+"deg"},J={translate:{syntax:"",initialValue:"0px",toDefaultUnit:t=>t+"px"},rotate:Y,scale:{syntax:"",initialValue:1,toDefaultUnit:o},skew:Y},K=new Map,q=t=>`--motion-${t}`,W=["x","y","z"];V.forEach((t=>{j.forEach((e=>{W.push(t+e),K.set(q(t+e),J[t])}))}));const Q=(t,e)=>W.indexOf(t)-W.indexOf(e),Z=new Set(W),X=t=>Z.has(t),G=(t,e)=>{F[e]&&(e=F[e]);const{transforms:n}=H(t);z(n,e),t.style.transform=tt(n)},tt=t=>t.sort(Q).reduce(et,"").trim(),et=(t,e)=>`${t} ${e}(var(${q(e)}))`,nt=t=>t.startsWith("--"),it=new Set;function rt(t){if(!it.has(t)){it.add(t);try{const{syntax:e,initialValue:n}=K.has(t)?K.get(t):{};CSS.registerProperty({name:t,inherits:!1,syntax:e,initialValue:n})}catch(e){}}}const st=(t,e)=>document.createElement("div").animate(t,e),ot={cssRegisterProperty:()=>"undefined"!==typeof CSS&&Object.hasOwnProperty.call(CSS,"registerProperty"),waapi:()=>Object.hasOwnProperty.call(Element.prototype,"animate"),partialKeyframes:()=>{try{st({opacity:[1]})}catch(t){return!1}return!0},finished:()=>Boolean(st({opacity:[0,1]},{duration:.001}).finished),linearEasing:()=>{try{st({opacity:0},{easing:"linear(0, 1)"})}catch(t){return!1}return!0}},at={},lt={};for(const Pt in ot)lt[Pt]=()=>(void 0===at[Pt]&&(at[Pt]=ot[Pt]()),at[Pt]);const ut=.015,ct=(t,e)=>{let n="";const i=Math.round(e/ut);for(let r=0;rN(t)?lt.linearEasing()?`linear(${ct(t,e)})`:i.easing:x(t)?dt(t):t,dt=([t,e,n,i])=>`cubic-bezier(${t}, ${e}, ${n}, ${i})`;function ft(t,e){for(let n=0;nArray.isArray(t)?t:[t];function gt(t){return F[t]&&(t=F[t]),X(t)?q(t):t}const mt={get:(t,e)=>{e=gt(e);let n=nt(e)?t.style.getPropertyValue(e):getComputedStyle(t)[e];if(!n&&0!==n){const t=K.get(e);t&&(n=t.initialValue)}return n},set:(t,e,n)=>{e=gt(e),nt(e)?t.style.setProperty(e,n):t.style[e]=n}},yt=t=>"string"===typeof t;function vt(t,e){var n;let i=(null===e||void 0===e?void 0:e.toDefaultUnit)||o;const r=t[t.length-1];if(yt(r)){const t=(null===(n=r.match(/(-?[\d.]+)([a-z%]*)/))||void 0===n?void 0:n[2])||"";t&&(i=e=>e+t)}return i}function At(){return window.__MOTION_DEV_TOOLS_RECORD}function wt(t,e,n,o={},l){const u=At(),c=!1!==o.record&&u;let h,{duration:d=i.duration,delay:m=i.delay,endDelay:y=i.endDelay,repeat:v=i.repeat,easing:A=i.easing,persist:w=!1,direction:E,offset:$,allowWebkitAcceleration:_=!1}=o;const b=H(t),C=X(e);let S=lt.waapi();C&&G(t,e);const T=gt(e),P=D(b.values,T),M=K.get(T);return a(P.animation,!(f(A)&&P.generator)&&!1!==o.record),()=>{const i=()=>{var e,n;return null!==(n=null!==(e=mt.get(t,T))&&void 0!==e?e:null===M||void 0===M?void 0:M.initialValue)&&void 0!==n?n:0};let a=ft(pt(n),i);const b=vt(a,M);if(f(A)){const t=A.createAnimation(a,"opacity"!==e,i,T,P);A=t.easing,a=t.keyframes||a,d=t.duration||d}if(nt(T)&&(lt.cssRegisterProperty()?rt(T):S=!1),C&&!lt.linearEasing()&&(N(A)||g(A)&&A.some(N))&&(S=!1),S){M&&(a=a.map((t=>p(t)?M.toDefaultUnit(t):t))),1!==a.length||lt.partialKeyframes()&&!c||a.unshift(i());const e={delay:r.ms(m),duration:r.ms(d),endDelay:r.ms(y),easing:g(A)?void 0:ht(A,d),direction:E,iterations:v+1,fill:"both"};h=t.animate({[T]:a,offset:$,easing:g(A)?A.map((t=>ht(t,d))):void 0},e),h.finished||(h.finished=new Promise(((t,e)=>{h.onfinish=t,h.oncancel=e})));const n=a[a.length-1];h.finished.then((()=>{w||(mt.set(t,T,n),h.cancel())})).catch(s),_||(h.playbackRate=1.000001)}else if(l&&C)a=a.map((t=>"string"===typeof t?parseFloat(t):t)),1===a.length&&a.unshift(parseFloat(i())),h=new l((e=>{mt.set(t,T,b?b(e):e)}),a,Object.assign(Object.assign({},o),{duration:d,easing:A}));else{const e=a[a.length-1];mt.set(t,T,M&&p(e)?M.toDefaultUnit(e):e)}return c&&u(t,e,a,{duration:d,delay:m,easing:A,repeat:v,offset:$},"motion-one"),P.setAnimation(h),h}}const Et=(t,e)=>t[e]?Object.assign(Object.assign({},t),t[e]):Object.assign({},t);function $t(t,e){var n;return"string"===typeof t?e?(null!==(n=e[t])&&void 0!==n||(e[t]=document.querySelectorAll(t)),t=e[t]):t=document.querySelectorAll(t):t instanceof Element&&(t=[t]),Array.from(t||[])}function _t(t,e,n){return N(t)?t(e,n):t}function bt(t){return function(e,n,i={}){e=$t(e);const r=e.length;k(Boolean(r),"No valid element provided."),k(Boolean(n),"No keyframes defined.");const s=[];for(let o=0;o{const n=new U(t,[0,1],e);return n.finished.catch((()=>{})),n}],e,e.duration)}function Tt(t,e,n){const i=N(t)?St:Ct;return i(t,e,n)}},92592:(t,e,n)=>{const i=n(47138),r=n(95115),s=n(6907),o=n(93776);function a(t,e,n,s,o){const a=[].slice.call(arguments,1),l=a.length,u="function"===typeof a[l-1];if(!u&&!i())throw new Error("Callback required as last argument");if(!u){if(l<1)throw new Error("Too few arguments provided");return 1===l?(n=e,e=s=void 0):2!==l||e.getContext||(s=n,n=e,e=void 0),new Promise((function(i,o){try{const o=r.create(n,s);i(t(o,e,s))}catch(a){o(a)}}))}if(l<2)throw new Error("Too few arguments provided");2===l?(o=n,n=e,e=s=void 0):3===l&&(e.getContext&&"undefined"===typeof o?(o=s,s=void 0):(o=s,s=n,n=e,e=void 0));try{const i=r.create(n,s);o(null,t(i,e,s))}catch(c){o(c)}}e.create=r.create,e.toCanvas=a.bind(null,s.render),e.toDataURL=a.bind(null,s.renderToDataURL),e.toString=a.bind(null,(function(t,e,n){return o.render(t,n)}))},47138:t=>{t.exports=function(){return"function"===typeof Promise&&Promise.prototype&&Promise.prototype.then}},21845:(t,e,n)=>{const i=n(10242).getSymbolSize;e.getRowColCoords=function(t){if(1===t)return[];const e=Math.floor(t/7)+2,n=i(t),r=145===n?26:2*Math.ceil((n-13)/(2*e-2)),s=[n-7];for(let i=1;i{const i=n(76910),r=["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 s(t){this.mode=i.ALPHANUMERIC,this.data=t}s.getBitsLength=function(t){return 11*Math.floor(t/2)+t%2*6},s.prototype.getLength=function(){return this.data.length},s.prototype.getBitsLength=function(){return s.getBitsLength(this.data.length)},s.prototype.write=function(t){let e;for(e=0;e+2<=this.data.length;e+=2){let n=45*r.indexOf(this.data[e]);n+=r.indexOf(this.data[e+1]),t.put(n,11)}this.data.length%2&&t.put(r.indexOf(this.data[e]),6)},t.exports=s},97245:t=>{function e(){this.buffer=[],this.length=0}e.prototype={get:function(t){const e=Math.floor(t/8);return 1===(this.buffer[e]>>>7-t%8&1)},put:function(t,e){for(let n=0;n>>e-n-1&1))},getLengthInBits:function(){return this.length},putBit:function(t){const e=Math.floor(this.length/8);this.buffer.length<=e&&this.buffer.push(0),t&&(this.buffer[e]|=128>>>this.length%8),this.length++}},t.exports=e},73280:t=>{function e(t){if(!t||t<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=t,this.data=new Uint8Array(t*t),this.reservedBit=new Uint8Array(t*t)}e.prototype.set=function(t,e,n,i){const r=t*this.size+e;this.data[r]=n,i&&(this.reservedBit[r]=!0)},e.prototype.get=function(t,e){return this.data[t*this.size+e]},e.prototype.xor=function(t,e,n){this.data[t*this.size+e]^=n},e.prototype.isReserved=function(t,e){return this.reservedBit[t*this.size+e]},t.exports=e},43424:(t,e,n)=>{const i=n(62378),r=n(76910);function s(t){this.mode=r.BYTE,"string"===typeof t&&(t=i(t)),this.data=new Uint8Array(t)}s.getBitsLength=function(t){return 8*t},s.prototype.getLength=function(){return this.data.length},s.prototype.getBitsLength=function(){return s.getBitsLength(this.data.length)},s.prototype.write=function(t){for(let e=0,n=this.data.length;e{const i=n(64908),r=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],s=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];e.getBlocksCount=function(t,e){switch(e){case i.L:return r[4*(t-1)+0];case i.M:return r[4*(t-1)+1];case i.Q:return r[4*(t-1)+2];case i.H:return r[4*(t-1)+3];default:return}},e.getTotalCodewordsCount=function(t,e){switch(e){case i.L:return s[4*(t-1)+0];case i.M:return s[4*(t-1)+1];case i.Q:return s[4*(t-1)+2];case i.H:return s[4*(t-1)+3];default:return}}},64908:(t,e)=>{function n(t){if("string"!==typeof t)throw new Error("Param is not a string");const n=t.toLowerCase();switch(n){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: "+t)}}e.L={bit:1},e.M={bit:0},e.Q={bit:3},e.H={bit:2},e.isValid=function(t){return t&&"undefined"!==typeof t.bit&&t.bit>=0&&t.bit<4},e.from=function(t,i){if(e.isValid(t))return t;try{return n(t)}catch(r){return i}}},76526:(t,e,n)=>{const i=n(10242).getSymbolSize,r=7;e.getPositions=function(t){const e=i(t);return[[0,0],[e-r,0],[0,e-r]]}},61642:(t,e,n)=>{const i=n(10242),r=1335,s=21522,o=i.getBCHDigit(r);e.getEncodedBits=function(t,e){const n=t.bit<<3|e;let a=n<<10;while(i.getBCHDigit(a)-o>=0)a^=r<{const n=new Uint8Array(512),i=new Uint8Array(256);(function(){let t=1;for(let e=0;e<255;e++)n[e]=t,i[t]=e,t<<=1,256&t&&(t^=285);for(let e=255;e<512;e++)n[e]=n[e-255]})(),e.log=function(t){if(t<1)throw new Error("log("+t+")");return i[t]},e.exp=function(t){return n[t]},e.mul=function(t,e){return 0===t||0===e?0:n[i[t]+i[e]]}},35442:(t,e,n)=>{const i=n(76910),r=n(10242);function s(t){this.mode=i.KANJI,this.data=t}s.getBitsLength=function(t){return 13*t},s.prototype.getLength=function(){return this.data.length},s.prototype.getBitsLength=function(){return s.getBitsLength(this.data.length)},s.prototype.write=function(t){let e;for(e=0;e=33088&&n<=40956)n-=33088;else{if(!(n>=57408&&n<=60351))throw new Error("Invalid SJIS character: "+this.data[e]+"\nMake sure your charset is UTF-8");n-=49472}n=192*(n>>>8&255)+(255&n),t.put(n,13)}},t.exports=s},27126:(t,e)=>{e.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};const n={N1:3,N2:3,N3:40,N4:10};function i(t,n,i){switch(t){case e.Patterns.PATTERN000:return(n+i)%2===0;case e.Patterns.PATTERN001:return n%2===0;case e.Patterns.PATTERN010:return i%3===0;case e.Patterns.PATTERN011:return(n+i)%3===0;case e.Patterns.PATTERN100:return(Math.floor(n/2)+Math.floor(i/3))%2===0;case e.Patterns.PATTERN101:return n*i%2+n*i%3===0;case e.Patterns.PATTERN110:return(n*i%2+n*i%3)%2===0;case e.Patterns.PATTERN111:return(n*i%3+(n+i)%2)%2===0;default:throw new Error("bad maskPattern:"+t)}}e.isValid=function(t){return null!=t&&""!==t&&!isNaN(t)&&t>=0&&t<=7},e.from=function(t){return e.isValid(t)?parseInt(t,10):void 0},e.getPenaltyN1=function(t){const e=t.size;let i=0,r=0,s=0,o=null,a=null;for(let l=0;l=5&&(i+=n.N1+(r-5)),o=e,r=1),e=t.get(u,l),e===a?s++:(s>=5&&(i+=n.N1+(s-5)),a=e,s=1)}r>=5&&(i+=n.N1+(r-5)),s>=5&&(i+=n.N1+(s-5))}return i},e.getPenaltyN2=function(t){const e=t.size;let i=0;for(let n=0;n=10&&(1488===r||93===r)&&i++,s=s<<1&2047|t.get(o,n),o>=10&&(1488===s||93===s)&&i++}return i*n.N3},e.getPenaltyN4=function(t){let e=0;const i=t.data.length;for(let n=0;n{const i=n(43114),r=n(7007);function s(t){if("string"!==typeof t)throw new Error("Param is not a string");const n=t.toLowerCase();switch(n){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: "+t)}}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(t,e){if(!t.ccBits)throw new Error("Invalid mode: "+t);if(!i.isValid(e))throw new Error("Invalid version: "+e);return e>=1&&e<10?t.ccBits[0]:e<27?t.ccBits[1]:t.ccBits[2]},e.getBestModeForData=function(t){return r.testNumeric(t)?e.NUMERIC:r.testAlphanumeric(t)?e.ALPHANUMERIC:r.testKanji(t)?e.KANJI:e.BYTE},e.toString=function(t){if(t&&t.id)return t.id;throw new Error("Invalid mode")},e.isValid=function(t){return t&&t.bit&&t.ccBits},e.from=function(t,n){if(e.isValid(t))return t;try{return s(t)}catch(i){return n}}},41085:(t,e,n)=>{const i=n(76910);function r(t){this.mode=i.NUMERIC,this.data=t.toString()}r.getBitsLength=function(t){return 10*Math.floor(t/3)+(t%3?t%3*3+1:0)},r.prototype.getLength=function(){return this.data.length},r.prototype.getBitsLength=function(){return r.getBitsLength(this.data.length)},r.prototype.write=function(t){let e,n,i;for(e=0;e+3<=this.data.length;e+=3)n=this.data.substr(e,3),i=parseInt(n,10),t.put(i,10);const r=this.data.length-e;r>0&&(n=this.data.substr(e),i=parseInt(n,10),t.put(i,3*r+1))},t.exports=r},26143:(t,e,n)=>{const i=n(69729);e.mul=function(t,e){const n=new Uint8Array(t.length+e.length-1);for(let r=0;r=0){const t=n[0];for(let s=0;s{const i=n(10242),r=n(64908),s=n(97245),o=n(73280),a=n(21845),l=n(76526),u=n(27126),c=n(35393),h=n(52882),d=n(23103),f=n(61642),p=n(76910),g=n(16130);function m(t,e){const n=t.size,i=l.getPositions(e);for(let r=0;r=0&&i<=6&&(0===r||6===r)||r>=0&&r<=6&&(0===i||6===i)||i>=2&&i<=4&&r>=2&&r<=4?t.set(e+i,s+r,!0,!0):t.set(e+i,s+r,!1,!0))}}function y(t){const e=t.size;for(let n=8;n>a&1),t.set(r,s,o,!0),t.set(s,r,o,!0)}function w(t,e,n){const i=t.size,r=f.getEncodedBits(e,n);let s,o;for(s=0;s<15;s++)o=1===(r>>s&1),s<6?t.set(s,8,o,!0):s<8?t.set(s+1,8,o,!0):t.set(i-15+s,8,o,!0),s<8?t.set(8,i-s-1,o,!0):s<9?t.set(8,15-s-1+1,o,!0):t.set(8,15-s-1,o,!0);t.set(i-8,8,1,!0)}function E(t,e){const n=t.size;let i=-1,r=n-1,s=7,o=0;for(let a=n-1;a>0;a-=2){6===a&&a--;while(1){for(let n=0;n<2;n++)if(!t.isReserved(r,a-n)){let i=!1;o>>s&1)),t.set(r,a-n,i),s--,-1===s&&(o++,s=7)}if(r+=i,r<0||n<=r){r-=i,i=-i;break}}}}function $(t,e,n){const r=new s;n.forEach((function(e){r.put(e.mode.bit,4),r.put(e.getLength(),p.getCharCountIndicator(e.mode,t)),e.write(r)}));const o=i.getSymbolTotalCodewords(t),a=c.getTotalCodewordsCount(t,e),l=8*(o-a);r.getLengthInBits()+4<=l&&r.put(0,4);while(r.getLengthInBits()%8!==0)r.putBit(0);const u=(l-r.getLengthInBits())/8;for(let i=0;i=7&&A(h,e),E(h,l),isNaN(r)&&(r=u.getBestMask(h,w.bind(null,h,n))),u.applyMask(r,h),w(h,n,r),{modules:h,version:e,errorCorrectionLevel:n,maskPattern:r,segments:s}}e.create=function(t,e){if("undefined"===typeof t||""===t)throw new Error("No input text");let n,s,o=r.M;return"undefined"!==typeof e&&(o=r.from(e.errorCorrectionLevel,r.M),n=d.from(e.version),s=u.from(e.maskPattern),e.toSJISFunc&&i.setToSJISFunction(e.toSJISFunc)),b(t,n,o,s)}},52882:(t,e,n)=>{const i=n(26143);function r(t){this.genPoly=void 0,this.degree=t,this.degree&&this.initialize(this.degree)}r.prototype.initialize=function(t){this.degree=t,this.genPoly=i.generateECPolynomial(this.degree)},r.prototype.encode=function(t){if(!this.genPoly)throw new Error("Encoder not initialized");const e=new Uint8Array(t.length+this.degree);e.set(t);const n=i.mod(e,this.genPoly),r=this.degree-n.length;if(r>0){const t=new Uint8Array(this.degree);return t.set(n,r),t}return n},t.exports=r},7007:(t,e)=>{const n="[0-9]+",i="[A-Z $%*+\\-./:]+";let r="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";r=r.replace(/u/g,"\\u");const s="(?:(?![A-Z0-9 $%*+\\-./:]|"+r+")(?:.|[\r\n]))+";e.KANJI=new RegExp(r,"g"),e.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g"),e.BYTE=new RegExp(s,"g"),e.NUMERIC=new RegExp(n,"g"),e.ALPHANUMERIC=new RegExp(i,"g");const o=new RegExp("^"+r+"$"),a=new RegExp("^"+n+"$"),l=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");e.testKanji=function(t){return o.test(t)},e.testNumeric=function(t){return a.test(t)},e.testAlphanumeric=function(t){return l.test(t)}},16130:(t,e,n)=>{const i=n(76910),r=n(41085),s=n(8260),o=n(43424),a=n(35442),l=n(7007),u=n(10242),c=n(65987);function h(t){return unescape(encodeURIComponent(t)).length}function d(t,e,n){const i=[];let r;while(null!==(r=t.exec(n)))i.push({data:r[0],index:r.index,mode:e,length:r[0].length});return i}function f(t){const e=d(l.NUMERIC,i.NUMERIC,t),n=d(l.ALPHANUMERIC,i.ALPHANUMERIC,t);let r,s;u.isKanjiModeEnabled()?(r=d(l.BYTE,i.BYTE,t),s=d(l.KANJI,i.KANJI,t)):(r=d(l.BYTE_KANJI,i.BYTE,t),s=[]);const o=e.concat(n,r,s);return o.sort((function(t,e){return t.index-e.index})).map((function(t){return{data:t.data,mode:t.mode,length:t.length}}))}function p(t,e){switch(e){case i.NUMERIC:return r.getBitsLength(t);case i.ALPHANUMERIC:return s.getBitsLength(t);case i.KANJI:return a.getBitsLength(t);case i.BYTE:return o.getBitsLength(t)}}function g(t){return t.reduce((function(t,e){const n=t.length-1>=0?t[t.length-1]:null;return n&&n.mode===e.mode?(t[t.length-1].data+=e.data,t):(t.push(e),t)}),[])}function m(t){const e=[];for(let n=0;n{let n;const i=[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];e.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 4*t+17},e.getSymbolTotalCodewords=function(t){return i[t]},e.getBCHDigit=function(t){let e=0;while(0!==t)e++,t>>>=1;return e},e.setToSJISFunction=function(t){if("function"!==typeof t)throw new Error('"toSJISFunc" is not a valid function.');n=t},e.isKanjiModeEnabled=function(){return"undefined"!==typeof n},e.toSJIS=function(t){return n(t)}},43114:(t,e)=>{e.isValid=function(t){return!isNaN(t)&&t>=1&&t<=40}},23103:(t,e,n)=>{const i=n(10242),r=n(35393),s=n(64908),o=n(76910),a=n(43114),l=7973,u=i.getBCHDigit(l);function c(t,n,i){for(let r=1;r<=40;r++)if(n<=e.getCapacity(r,i,t))return r}function h(t,e){return o.getCharCountIndicator(t,e)+4}function d(t,e){let n=0;return t.forEach((function(t){const i=h(t.mode,e);n+=i+t.getBitsLength()})),n}function f(t,n){for(let i=1;i<=40;i++){const r=d(t,i);if(r<=e.getCapacity(i,n,o.MIXED))return i}}e.from=function(t,e){return a.isValid(t)?parseInt(t,10):e},e.getCapacity=function(t,e,n){if(!a.isValid(t))throw new Error("Invalid QR Code version");"undefined"===typeof n&&(n=o.BYTE);const s=i.getSymbolTotalCodewords(t),l=r.getTotalCodewordsCount(t,e),u=8*(s-l);if(n===o.MIXED)return u;const c=u-h(n,t);switch(n){case o.NUMERIC:return Math.floor(c/10*3);case o.ALPHANUMERIC:return Math.floor(c/11*2);case o.KANJI:return Math.floor(c/13);case o.BYTE:default:return Math.floor(c/8)}},e.getBestVersionForData=function(t,e){let n;const i=s.from(e,s.M);if(Array.isArray(t)){if(t.length>1)return f(t,i);if(0===t.length)return 1;n=t[0]}else n=t;return c(n.mode,n.getLength(),i)},e.getEncodedBits=function(t){if(!a.isValid(t)||t<7)throw new Error("Invalid QR Code version");let e=t<<12;while(i.getBCHDigit(e)-u>=0)e^=l<{const i=n(89653);function r(t,e,n){t.clearRect(0,0,e.width,e.height),e.style||(e.style={}),e.height=n,e.width=n,e.style.height=n+"px",e.style.width=n+"px"}function s(){try{return document.createElement("canvas")}catch(t){throw new Error("You need to specify a canvas element")}}e.render=function(t,e,n){let o=n,a=e;"undefined"!==typeof o||e&&e.getContext||(o=e,e=void 0),e||(a=s()),o=i.getOptions(o);const l=i.getImageWidth(t.modules.size,o),u=a.getContext("2d"),c=u.createImageData(l,l);return i.qrToImageData(c.data,t,o),r(u,a,l),u.putImageData(c,0,0),a},e.renderToDataURL=function(t,n,i){let r=i;"undefined"!==typeof r||n&&n.getContext||(r=n,n=void 0),r||(r={});const s=e.render(t,n,r),o=r.type||"image/png",a=r.rendererOpts||{};return s.toDataURL(o,a.quality)}},93776:(t,e,n)=>{const i=n(89653);function r(t,e){const n=t.a/255,i=e+'="'+t.hex+'"';return n<1?i+" "+e+'-opacity="'+n.toFixed(2).slice(1)+'"':i}function s(t,e,n){let i=t+e;return"undefined"!==typeof n&&(i+=" "+n),i}function o(t,e,n){let i="",r=0,o=!1,a=0;for(let l=0;l0&&u>0&&t[l-1]||(i+=o?s("M",u+n,.5+c+n):s("m",r,0),r=0,o=!1),u+1':"",h="',d='viewBox="0 0 '+u+" "+u+'"',f=s.width?'width="'+s.width+'" height="'+s.width+'" ':"",p=''+c+h+"\n";return"function"===typeof n&&n(null,p),p}},89653:(t,e)=>{function n(t){if("number"===typeof t&&(t=t.toString()),"string"!==typeof t)throw new Error("Color should be defined as hex string");let e=t.slice().replace("#","").split("");if(e.length<3||5===e.length||e.length>8)throw new Error("Invalid hex color: "+t);3!==e.length&&4!==e.length||(e=Array.prototype.concat.apply([],e.map((function(t){return[t,t]})))),6===e.length&&e.push("F","F");const n=parseInt(e.join(""),16);return{r:n>>24&255,g:n>>16&255,b:n>>8&255,a:255&n,hex:"#"+e.slice(0,6).join("")}}e.getOptions=function(t){t||(t={}),t.color||(t.color={});const e="undefined"===typeof t.margin||null===t.margin||t.margin<0?4:t.margin,i=t.width&&t.width>=21?t.width:void 0,r=t.scale||4;return{width:i,scale:i?4:r,margin:e,color:{dark:n(t.color.dark||"#000000ff"),light:n(t.color.light||"#ffffffff")},type:t.type,rendererOpts:t.rendererOpts||{}}},e.getScale=function(t,e){return e.width&&e.width>=t+2*e.margin?e.width/(t+2*e.margin):e.scale},e.getImageWidth=function(t,n){const i=e.getScale(t,n);return Math.floor((t+2*n.margin)*i)},e.qrToImageData=function(t,n,i){const r=n.modules.size,s=n.modules.data,o=e.getScale(r,i),a=Math.floor((r+2*i.margin)*o),l=i.margin*o,u=[i.color.light,i.color.dark];for(let e=0;e=l&&n>=l&&e{"use strict"; +(self["webpackChunkflux"]=self["webpackChunkflux"]||[]).push([[9083],{65987:t=>{"use strict";var e={single_source_shortest_paths:function(t,n,i){var r={},s={};s[n]=0;var o,a,l,u,c,h,d,f,p,g=e.PriorityQueue.make();g.push(n,0);while(!g.empty())for(l in o=g.pop(),a=o.value,u=o.cost,c=t[a]||{},c)c.hasOwnProperty(l)&&(h=c[l],d=u+h,f=s[l],p="undefined"===typeof s[l],(p||f>d)&&(s[l]=d,g.push(l,d),r[l]=a));if("undefined"!==typeof i&&"undefined"===typeof s[i]){var m=["Could not find a path from ",n," to ",i,"."].join("");throw new Error(m)}return r},extract_shortest_path_from_predecessor_list:function(t,e){var n=[],i=e;while(i)n.push(i),t[i],i=t[i];return n.reverse(),n},find_path:function(t,n,i){var r=e.single_source_shortest_paths(t,n,i);return e.extract_shortest_path_from_predecessor_list(r,i)},PriorityQueue:{make:function(t){var n,i=e.PriorityQueue,r={};for(n in t=t||{},i)i.hasOwnProperty(n)&&(r[n]=i[n]);return r.queue=[],r.sorter=t.sorter||i.default_sorter,r},default_sorter:function(t,e){return t.cost-e.cost},push:function(t,e){var n={value:t,cost:e};this.queue.push(n),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return 0===this.queue.length}}};t.exports=e},62378:t=>{"use strict";t.exports=function(t){for(var e=[],n=t.length,i=0;i=55296&&r<=56319&&n>i+1){var s=t.charCodeAt(i+1);s>=56320&&s<=57343&&(r=1024*(r-55296)+s-56320+65536,i+=1)}r<128?e.push(r):r<2048?(e.push(r>>6|192),e.push(63&r|128)):r<55296||r>=57344&&r<65536?(e.push(r>>12|224),e.push(r>>6&63|128),e.push(63&r|128)):r>=65536&&r<=1114111?(e.push(r>>18|240),e.push(r>>12&63|128),e.push(r>>6&63|128),e.push(63&r|128)):e.push(239,191,189)}return new Uint8Array(e).buffer}},55817:(t,e,n)=>{"use strict";n.d(e,{j:()=>Tt});const i={duration:.3,delay:0,endDelay:0,repeat:0,easing:"ease"},r={ms:t=>1e3*t,s:t=>t/1e3},s=()=>{},o=t=>t;function a(t,e=!0){if(t&&"finished"!==t.playState)try{t.stop?t.stop():(e&&t.commitStyles(),t.cancel())}catch(n){}}const l=t=>t(),u=(t,e,n=i.duration)=>new Proxy({animations:t.map(l).filter(Boolean),duration:n,options:e},h),c=t=>t.animations[0],h={get:(t,e)=>{const n=c(t);switch(e){case"duration":return t.duration;case"currentTime":return r.s((null===n||void 0===n?void 0:n[e])||0);case"playbackRate":case"playState":return null===n||void 0===n?void 0:n[e];case"finished":return t.finished||(t.finished=Promise.all(t.animations.map(d)).catch(s)),t.finished;case"stop":return()=>{t.animations.forEach((t=>a(t)))};case"forEachNative":return e=>{t.animations.forEach((n=>e(n,t)))};default:return"undefined"===typeof(null===n||void 0===n?void 0:n[e])?void 0:()=>t.animations.forEach((t=>t[e]()))}},set:(t,e,n)=>{switch(e){case"currentTime":n=r.ms(n);case"playbackRate":for(let i=0;it.finished,f=t=>"object"===typeof t&&Boolean(t.createAnimation),p=t=>"number"===typeof t,g=t=>Array.isArray(t)&&!p(t[0]),m=(t,e,n)=>-n*t+n*e+t,y=(t,e,n)=>e-t===0?1:(n-t)/(e-t);function v(t,e){const n=t[t.length-1];for(let i=1;i<=e;i++){const r=y(0,e,i);t.push(m(n,1,r))}}function A(t){const e=[0];return v(e,t-1),e}const w=(t,e,n)=>{const i=e-t;return((n-t)%i+i)%i+t};function E(t,e){return g(t)?t[w(0,t.length,e)]:t}const $=(t,e,n)=>Math.min(Math.max(n,t),e);function _(t,e=A(t.length),n=o){const i=t.length,r=i-e.length;return r>0&&v(e,r),r=>{let s=0;for(;s(((1-3*n+3*e)*t+(3*n-6*e))*t+3*e)*t,C=1e-7,S=12;function T(t,e,n,i,r){let s,o,a=0;do{o=e+(n-e)/2,s=b(o,i,r)-t,s>0?n=o:e=o}while(Math.abs(s)>C&&++aT(e,0,1,t,n);return t=>0===t||1===t?t:b(r(t),e,i)}const M=(t,e="end")=>n=>{n="end"===e?Math.min(n,.999):Math.max(n,.001);const i=n*t,r="end"===e?Math.floor(i):Math.ceil(i);return $(0,1,r/t)},N=t=>"function"===typeof t,x=t=>Array.isArray(t)&&p(t[0]),R={ease:P(.25,.1,.25,1),"ease-in":P(.42,0,1,1),"ease-in-out":P(.42,0,.58,1),"ease-out":P(0,0,.58,1)},B=/\((.*?)\)/;function I(t){if(N(t))return t;if(x(t))return P(...t);const e=R[t];if(e)return e;if(t.startsWith("steps")){const e=B.exec(t);if(e){const t=e[1].split(",");return M(parseFloat(t[0]),t[1].trim())}}return o}class U{constructor(t,e=[0,1],{easing:n,duration:r=i.duration,delay:s=i.delay,endDelay:a=i.endDelay,repeat:l=i.repeat,offset:u,direction:c="normal",autoplay:h=!0}={}){if(this.startTime=null,this.rate=1,this.t=0,this.cancelTimestamp=null,this.easing=o,this.duration=0,this.totalDuration=0,this.repeat=0,this.playState="idle",this.finished=new Promise(((t,e)=>{this.resolve=t,this.reject=e})),n=n||i.easing,f(n)){const t=n.createAnimation(e);n=t.easing,e=t.keyframes||e,r=t.duration||r}this.repeat=l,this.easing=g(n)?o:I(n),this.updateDuration(r);const d=_(e,u,g(n)?n.map(I):o);this.tick=e=>{var n;let i=0;i=void 0!==this.pauseTime?this.pauseTime:(e-this.startTime)*this.rate,this.t=i,i/=1e3,i=Math.max(i-s,0),"finished"===this.playState&&void 0===this.pauseTime&&(i=this.totalDuration);const r=i/this.duration;let o=Math.floor(r),l=r%1;!l&&r>=1&&(l=1),1===l&&o--;const u=o%2;("reverse"===c||"alternate"===c&&u||"alternate-reverse"===c&&!u)&&(l=1-l);const h=i>=this.totalDuration?1:Math.min(l,1),f=d(this.easing(h));t(f);const p=void 0===this.pauseTime&&("finished"===this.playState||i>=this.totalDuration+a);p?(this.playState="finished",null===(n=this.resolve)||void 0===n||n.call(this,f)):"idle"!==this.playState&&(this.frameRequestId=requestAnimationFrame(this.tick))},h&&this.play()}play(){const t=performance.now();this.playState="running",void 0!==this.pauseTime?this.startTime=t-this.pauseTime:this.startTime||(this.startTime=t),this.cancelTimestamp=this.startTime,this.pauseTime=void 0,this.frameRequestId=requestAnimationFrame(this.tick)}pause(){this.playState="paused",this.pauseTime=this.t}finish(){this.playState="finished",this.tick(0)}stop(){var t;this.playState="idle",void 0!==this.frameRequestId&&cancelAnimationFrame(this.frameRequestId),null===(t=this.reject)||void 0===t||t.call(this,!1)}cancel(){this.stop(),this.tick(this.cancelTimestamp)}reverse(){this.rate*=-1}commitStyles(){}updateDuration(t){this.duration=t,this.totalDuration=t*(this.repeat+1)}get currentTime(){return this.t}set currentTime(t){void 0!==this.pauseTime||0===this.rate?this.pauseTime=t:this.startTime=performance.now()-t/this.rate}get playbackRate(){return this.rate}set playbackRate(t){this.rate=t}}var k=function(){};class L{setAnimation(t){this.animation=t,null===t||void 0===t||t.finished.then((()=>this.clearAnimation())).catch((()=>{}))}clearAnimation(){this.animation=this.generator=void 0}}const O=new WeakMap;function H(t){return O.has(t)||O.set(t,{transforms:[],values:new Map}),O.get(t)}function D(t,e){return t.has(e)||t.set(e,new L),t.get(e)}function z(t,e){-1===t.indexOf(e)&&t.push(e)}const j=["","X","Y","Z"],V=["translate","scale","rotate","skew"],F={x:"translateX",y:"translateY",z:"translateZ"},Y={syntax:"",initialValue:"0deg",toDefaultUnit:t=>t+"deg"},J={translate:{syntax:"",initialValue:"0px",toDefaultUnit:t=>t+"px"},rotate:Y,scale:{syntax:"",initialValue:1,toDefaultUnit:o},skew:Y},K=new Map,q=t=>`--motion-${t}`,W=["x","y","z"];V.forEach((t=>{j.forEach((e=>{W.push(t+e),K.set(q(t+e),J[t])}))}));const Q=(t,e)=>W.indexOf(t)-W.indexOf(e),Z=new Set(W),X=t=>Z.has(t),G=(t,e)=>{F[e]&&(e=F[e]);const{transforms:n}=H(t);z(n,e),t.style.transform=tt(n)},tt=t=>t.sort(Q).reduce(et,"").trim(),et=(t,e)=>`${t} ${e}(var(${q(e)}))`,nt=t=>t.startsWith("--"),it=new Set;function rt(t){if(!it.has(t)){it.add(t);try{const{syntax:e,initialValue:n}=K.has(t)?K.get(t):{};CSS.registerProperty({name:t,inherits:!1,syntax:e,initialValue:n})}catch(e){}}}const st=(t,e)=>document.createElement("div").animate(t,e),ot={cssRegisterProperty:()=>"undefined"!==typeof CSS&&Object.hasOwnProperty.call(CSS,"registerProperty"),waapi:()=>Object.hasOwnProperty.call(Element.prototype,"animate"),partialKeyframes:()=>{try{st({opacity:[1]})}catch(t){return!1}return!0},finished:()=>Boolean(st({opacity:[0,1]},{duration:.001}).finished),linearEasing:()=>{try{st({opacity:0},{easing:"linear(0, 1)"})}catch(t){return!1}return!0}},at={},lt={};for(const Pt in ot)lt[Pt]=()=>(void 0===at[Pt]&&(at[Pt]=ot[Pt]()),at[Pt]);const ut=.015,ct=(t,e)=>{let n="";const i=Math.round(e/ut);for(let r=0;rN(t)?lt.linearEasing()?`linear(${ct(t,e)})`:i.easing:x(t)?dt(t):t,dt=([t,e,n,i])=>`cubic-bezier(${t}, ${e}, ${n}, ${i})`;function ft(t,e){for(let n=0;nArray.isArray(t)?t:[t];function gt(t){return F[t]&&(t=F[t]),X(t)?q(t):t}const mt={get:(t,e)=>{e=gt(e);let n=nt(e)?t.style.getPropertyValue(e):getComputedStyle(t)[e];if(!n&&0!==n){const t=K.get(e);t&&(n=t.initialValue)}return n},set:(t,e,n)=>{e=gt(e),nt(e)?t.style.setProperty(e,n):t.style[e]=n}},yt=t=>"string"===typeof t;function vt(t,e){var n;let i=(null===e||void 0===e?void 0:e.toDefaultUnit)||o;const r=t[t.length-1];if(yt(r)){const t=(null===(n=r.match(/(-?[\d.]+)([a-z%]*)/))||void 0===n?void 0:n[2])||"";t&&(i=e=>e+t)}return i}function At(){return window.__MOTION_DEV_TOOLS_RECORD}function wt(t,e,n,o={},l){const u=At(),c=!1!==o.record&&u;let h,{duration:d=i.duration,delay:m=i.delay,endDelay:y=i.endDelay,repeat:v=i.repeat,easing:A=i.easing,persist:w=!1,direction:E,offset:$,allowWebkitAcceleration:_=!1,autoplay:b=!0}=o;const C=H(t),S=X(e);let T=lt.waapi();S&&G(t,e);const P=gt(e),M=D(C.values,P),x=K.get(P);return a(M.animation,!(f(A)&&M.generator)&&!1!==o.record),()=>{const i=()=>{var e,n;return null!==(n=null!==(e=mt.get(t,P))&&void 0!==e?e:null===x||void 0===x?void 0:x.initialValue)&&void 0!==n?n:0};let a=ft(pt(n),i);const C=vt(a,x);if(f(A)){const t=A.createAnimation(a,"opacity"!==e,i,P,M);A=t.easing,a=t.keyframes||a,d=t.duration||d}if(nt(P)&&(lt.cssRegisterProperty()?rt(P):T=!1),S&&!lt.linearEasing()&&(N(A)||g(A)&&A.some(N))&&(T=!1),T){x&&(a=a.map((t=>p(t)?x.toDefaultUnit(t):t))),1!==a.length||lt.partialKeyframes()&&!c||a.unshift(i());const e={delay:r.ms(m),duration:r.ms(d),endDelay:r.ms(y),easing:g(A)?void 0:ht(A,d),direction:E,iterations:v+1,fill:"both"};h=t.animate({[P]:a,offset:$,easing:g(A)?A.map((t=>ht(t,d))):void 0},e),h.finished||(h.finished=new Promise(((t,e)=>{h.onfinish=t,h.oncancel=e})));const n=a[a.length-1];h.finished.then((()=>{w||(mt.set(t,P,n),h.cancel())})).catch(s),_||(h.playbackRate=1.000001)}else if(l&&S)a=a.map((t=>"string"===typeof t?parseFloat(t):t)),1===a.length&&a.unshift(parseFloat(i())),h=new l((e=>{mt.set(t,P,C?C(e):e)}),a,Object.assign(Object.assign({},o),{duration:d,easing:A}));else{const e=a[a.length-1];mt.set(t,P,x&&p(e)?x.toDefaultUnit(e):e)}return c&&u(t,e,a,{duration:d,delay:m,easing:A,repeat:v,offset:$},"motion-one"),M.setAnimation(h),h&&!b&&h.pause(),h}}const Et=(t,e)=>t[e]?Object.assign(Object.assign({},t),t[e]):Object.assign({},t);function $t(t,e){var n;return"string"===typeof t?e?(null!==(n=e[t])&&void 0!==n||(e[t]=document.querySelectorAll(t)),t=e[t]):t=document.querySelectorAll(t):t instanceof Element&&(t=[t]),Array.from(t||[])}function _t(t,e,n){return N(t)?t(e,n):t}function bt(t){return function(e,n,i={}){e=$t(e);const r=e.length;k(Boolean(r),"No valid element provided."),k(Boolean(n),"No keyframes defined.");const s=[];for(let o=0;o{const n=new U(t,[0,1],e);return n.finished.catch((()=>{})),n}],e,e.duration)}function Tt(t,e,n){const i=N(t)?St:Ct;return i(t,e,n)}},92592:(t,e,n)=>{const i=n(47138),r=n(95115),s=n(6907),o=n(93776);function a(t,e,n,s,o){const a=[].slice.call(arguments,1),l=a.length,u="function"===typeof a[l-1];if(!u&&!i())throw new Error("Callback required as last argument");if(!u){if(l<1)throw new Error("Too few arguments provided");return 1===l?(n=e,e=s=void 0):2!==l||e.getContext||(s=n,n=e,e=void 0),new Promise((function(i,o){try{const o=r.create(n,s);i(t(o,e,s))}catch(a){o(a)}}))}if(l<2)throw new Error("Too few arguments provided");2===l?(o=n,n=e,e=s=void 0):3===l&&(e.getContext&&"undefined"===typeof o?(o=s,s=void 0):(o=s,s=n,n=e,e=void 0));try{const i=r.create(n,s);o(null,t(i,e,s))}catch(c){o(c)}}e.create=r.create,e.toCanvas=a.bind(null,s.render),e.toDataURL=a.bind(null,s.renderToDataURL),e.toString=a.bind(null,(function(t,e,n){return o.render(t,n)}))},47138:t=>{t.exports=function(){return"function"===typeof Promise&&Promise.prototype&&Promise.prototype.then}},21845:(t,e,n)=>{const i=n(10242).getSymbolSize;e.getRowColCoords=function(t){if(1===t)return[];const e=Math.floor(t/7)+2,n=i(t),r=145===n?26:2*Math.ceil((n-13)/(2*e-2)),s=[n-7];for(let i=1;i{const i=n(76910),r=["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 s(t){this.mode=i.ALPHANUMERIC,this.data=t}s.getBitsLength=function(t){return 11*Math.floor(t/2)+t%2*6},s.prototype.getLength=function(){return this.data.length},s.prototype.getBitsLength=function(){return s.getBitsLength(this.data.length)},s.prototype.write=function(t){let e;for(e=0;e+2<=this.data.length;e+=2){let n=45*r.indexOf(this.data[e]);n+=r.indexOf(this.data[e+1]),t.put(n,11)}this.data.length%2&&t.put(r.indexOf(this.data[e]),6)},t.exports=s},97245:t=>{function e(){this.buffer=[],this.length=0}e.prototype={get:function(t){const e=Math.floor(t/8);return 1===(this.buffer[e]>>>7-t%8&1)},put:function(t,e){for(let n=0;n>>e-n-1&1))},getLengthInBits:function(){return this.length},putBit:function(t){const e=Math.floor(this.length/8);this.buffer.length<=e&&this.buffer.push(0),t&&(this.buffer[e]|=128>>>this.length%8),this.length++}},t.exports=e},73280:t=>{function e(t){if(!t||t<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=t,this.data=new Uint8Array(t*t),this.reservedBit=new Uint8Array(t*t)}e.prototype.set=function(t,e,n,i){const r=t*this.size+e;this.data[r]=n,i&&(this.reservedBit[r]=!0)},e.prototype.get=function(t,e){return this.data[t*this.size+e]},e.prototype.xor=function(t,e,n){this.data[t*this.size+e]^=n},e.prototype.isReserved=function(t,e){return this.reservedBit[t*this.size+e]},t.exports=e},43424:(t,e,n)=>{const i=n(62378),r=n(76910);function s(t){this.mode=r.BYTE,"string"===typeof t&&(t=i(t)),this.data=new Uint8Array(t)}s.getBitsLength=function(t){return 8*t},s.prototype.getLength=function(){return this.data.length},s.prototype.getBitsLength=function(){return s.getBitsLength(this.data.length)},s.prototype.write=function(t){for(let e=0,n=this.data.length;e{const i=n(64908),r=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],s=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];e.getBlocksCount=function(t,e){switch(e){case i.L:return r[4*(t-1)+0];case i.M:return r[4*(t-1)+1];case i.Q:return r[4*(t-1)+2];case i.H:return r[4*(t-1)+3];default:return}},e.getTotalCodewordsCount=function(t,e){switch(e){case i.L:return s[4*(t-1)+0];case i.M:return s[4*(t-1)+1];case i.Q:return s[4*(t-1)+2];case i.H:return s[4*(t-1)+3];default:return}}},64908:(t,e)=>{function n(t){if("string"!==typeof t)throw new Error("Param is not a string");const n=t.toLowerCase();switch(n){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: "+t)}}e.L={bit:1},e.M={bit:0},e.Q={bit:3},e.H={bit:2},e.isValid=function(t){return t&&"undefined"!==typeof t.bit&&t.bit>=0&&t.bit<4},e.from=function(t,i){if(e.isValid(t))return t;try{return n(t)}catch(r){return i}}},76526:(t,e,n)=>{const i=n(10242).getSymbolSize,r=7;e.getPositions=function(t){const e=i(t);return[[0,0],[e-r,0],[0,e-r]]}},61642:(t,e,n)=>{const i=n(10242),r=1335,s=21522,o=i.getBCHDigit(r);e.getEncodedBits=function(t,e){const n=t.bit<<3|e;let a=n<<10;while(i.getBCHDigit(a)-o>=0)a^=r<{const n=new Uint8Array(512),i=new Uint8Array(256);(function(){let t=1;for(let e=0;e<255;e++)n[e]=t,i[t]=e,t<<=1,256&t&&(t^=285);for(let e=255;e<512;e++)n[e]=n[e-255]})(),e.log=function(t){if(t<1)throw new Error("log("+t+")");return i[t]},e.exp=function(t){return n[t]},e.mul=function(t,e){return 0===t||0===e?0:n[i[t]+i[e]]}},35442:(t,e,n)=>{const i=n(76910),r=n(10242);function s(t){this.mode=i.KANJI,this.data=t}s.getBitsLength=function(t){return 13*t},s.prototype.getLength=function(){return this.data.length},s.prototype.getBitsLength=function(){return s.getBitsLength(this.data.length)},s.prototype.write=function(t){let e;for(e=0;e=33088&&n<=40956)n-=33088;else{if(!(n>=57408&&n<=60351))throw new Error("Invalid SJIS character: "+this.data[e]+"\nMake sure your charset is UTF-8");n-=49472}n=192*(n>>>8&255)+(255&n),t.put(n,13)}},t.exports=s},27126:(t,e)=>{e.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};const n={N1:3,N2:3,N3:40,N4:10};function i(t,n,i){switch(t){case e.Patterns.PATTERN000:return(n+i)%2===0;case e.Patterns.PATTERN001:return n%2===0;case e.Patterns.PATTERN010:return i%3===0;case e.Patterns.PATTERN011:return(n+i)%3===0;case e.Patterns.PATTERN100:return(Math.floor(n/2)+Math.floor(i/3))%2===0;case e.Patterns.PATTERN101:return n*i%2+n*i%3===0;case e.Patterns.PATTERN110:return(n*i%2+n*i%3)%2===0;case e.Patterns.PATTERN111:return(n*i%3+(n+i)%2)%2===0;default:throw new Error("bad maskPattern:"+t)}}e.isValid=function(t){return null!=t&&""!==t&&!isNaN(t)&&t>=0&&t<=7},e.from=function(t){return e.isValid(t)?parseInt(t,10):void 0},e.getPenaltyN1=function(t){const e=t.size;let i=0,r=0,s=0,o=null,a=null;for(let l=0;l=5&&(i+=n.N1+(r-5)),o=e,r=1),e=t.get(u,l),e===a?s++:(s>=5&&(i+=n.N1+(s-5)),a=e,s=1)}r>=5&&(i+=n.N1+(r-5)),s>=5&&(i+=n.N1+(s-5))}return i},e.getPenaltyN2=function(t){const e=t.size;let i=0;for(let n=0;n=10&&(1488===r||93===r)&&i++,s=s<<1&2047|t.get(o,n),o>=10&&(1488===s||93===s)&&i++}return i*n.N3},e.getPenaltyN4=function(t){let e=0;const i=t.data.length;for(let n=0;n{const i=n(43114),r=n(7007);function s(t){if("string"!==typeof t)throw new Error("Param is not a string");const n=t.toLowerCase();switch(n){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: "+t)}}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(t,e){if(!t.ccBits)throw new Error("Invalid mode: "+t);if(!i.isValid(e))throw new Error("Invalid version: "+e);return e>=1&&e<10?t.ccBits[0]:e<27?t.ccBits[1]:t.ccBits[2]},e.getBestModeForData=function(t){return r.testNumeric(t)?e.NUMERIC:r.testAlphanumeric(t)?e.ALPHANUMERIC:r.testKanji(t)?e.KANJI:e.BYTE},e.toString=function(t){if(t&&t.id)return t.id;throw new Error("Invalid mode")},e.isValid=function(t){return t&&t.bit&&t.ccBits},e.from=function(t,n){if(e.isValid(t))return t;try{return s(t)}catch(i){return n}}},41085:(t,e,n)=>{const i=n(76910);function r(t){this.mode=i.NUMERIC,this.data=t.toString()}r.getBitsLength=function(t){return 10*Math.floor(t/3)+(t%3?t%3*3+1:0)},r.prototype.getLength=function(){return this.data.length},r.prototype.getBitsLength=function(){return r.getBitsLength(this.data.length)},r.prototype.write=function(t){let e,n,i;for(e=0;e+3<=this.data.length;e+=3)n=this.data.substr(e,3),i=parseInt(n,10),t.put(i,10);const r=this.data.length-e;r>0&&(n=this.data.substr(e),i=parseInt(n,10),t.put(i,3*r+1))},t.exports=r},26143:(t,e,n)=>{const i=n(69729);e.mul=function(t,e){const n=new Uint8Array(t.length+e.length-1);for(let r=0;r=0){const t=n[0];for(let s=0;s{const i=n(10242),r=n(64908),s=n(97245),o=n(73280),a=n(21845),l=n(76526),u=n(27126),c=n(35393),h=n(52882),d=n(23103),f=n(61642),p=n(76910),g=n(16130);function m(t,e){const n=t.size,i=l.getPositions(e);for(let r=0;r=0&&i<=6&&(0===r||6===r)||r>=0&&r<=6&&(0===i||6===i)||i>=2&&i<=4&&r>=2&&r<=4?t.set(e+i,s+r,!0,!0):t.set(e+i,s+r,!1,!0))}}function y(t){const e=t.size;for(let n=8;n>a&1),t.set(r,s,o,!0),t.set(s,r,o,!0)}function w(t,e,n){const i=t.size,r=f.getEncodedBits(e,n);let s,o;for(s=0;s<15;s++)o=1===(r>>s&1),s<6?t.set(s,8,o,!0):s<8?t.set(s+1,8,o,!0):t.set(i-15+s,8,o,!0),s<8?t.set(8,i-s-1,o,!0):s<9?t.set(8,15-s-1+1,o,!0):t.set(8,15-s-1,o,!0);t.set(i-8,8,1,!0)}function E(t,e){const n=t.size;let i=-1,r=n-1,s=7,o=0;for(let a=n-1;a>0;a-=2){6===a&&a--;while(1){for(let n=0;n<2;n++)if(!t.isReserved(r,a-n)){let i=!1;o>>s&1)),t.set(r,a-n,i),s--,-1===s&&(o++,s=7)}if(r+=i,r<0||n<=r){r-=i,i=-i;break}}}}function $(t,e,n){const r=new s;n.forEach((function(e){r.put(e.mode.bit,4),r.put(e.getLength(),p.getCharCountIndicator(e.mode,t)),e.write(r)}));const o=i.getSymbolTotalCodewords(t),a=c.getTotalCodewordsCount(t,e),l=8*(o-a);r.getLengthInBits()+4<=l&&r.put(0,4);while(r.getLengthInBits()%8!==0)r.putBit(0);const u=(l-r.getLengthInBits())/8;for(let i=0;i=7&&A(h,e),E(h,l),isNaN(r)&&(r=u.getBestMask(h,w.bind(null,h,n))),u.applyMask(r,h),w(h,n,r),{modules:h,version:e,errorCorrectionLevel:n,maskPattern:r,segments:s}}e.create=function(t,e){if("undefined"===typeof t||""===t)throw new Error("No input text");let n,s,o=r.M;return"undefined"!==typeof e&&(o=r.from(e.errorCorrectionLevel,r.M),n=d.from(e.version),s=u.from(e.maskPattern),e.toSJISFunc&&i.setToSJISFunction(e.toSJISFunc)),b(t,n,o,s)}},52882:(t,e,n)=>{const i=n(26143);function r(t){this.genPoly=void 0,this.degree=t,this.degree&&this.initialize(this.degree)}r.prototype.initialize=function(t){this.degree=t,this.genPoly=i.generateECPolynomial(this.degree)},r.prototype.encode=function(t){if(!this.genPoly)throw new Error("Encoder not initialized");const e=new Uint8Array(t.length+this.degree);e.set(t);const n=i.mod(e,this.genPoly),r=this.degree-n.length;if(r>0){const t=new Uint8Array(this.degree);return t.set(n,r),t}return n},t.exports=r},7007:(t,e)=>{const n="[0-9]+",i="[A-Z $%*+\\-./:]+";let r="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";r=r.replace(/u/g,"\\u");const s="(?:(?![A-Z0-9 $%*+\\-./:]|"+r+")(?:.|[\r\n]))+";e.KANJI=new RegExp(r,"g"),e.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g"),e.BYTE=new RegExp(s,"g"),e.NUMERIC=new RegExp(n,"g"),e.ALPHANUMERIC=new RegExp(i,"g");const o=new RegExp("^"+r+"$"),a=new RegExp("^"+n+"$"),l=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");e.testKanji=function(t){return o.test(t)},e.testNumeric=function(t){return a.test(t)},e.testAlphanumeric=function(t){return l.test(t)}},16130:(t,e,n)=>{const i=n(76910),r=n(41085),s=n(8260),o=n(43424),a=n(35442),l=n(7007),u=n(10242),c=n(65987);function h(t){return unescape(encodeURIComponent(t)).length}function d(t,e,n){const i=[];let r;while(null!==(r=t.exec(n)))i.push({data:r[0],index:r.index,mode:e,length:r[0].length});return i}function f(t){const e=d(l.NUMERIC,i.NUMERIC,t),n=d(l.ALPHANUMERIC,i.ALPHANUMERIC,t);let r,s;u.isKanjiModeEnabled()?(r=d(l.BYTE,i.BYTE,t),s=d(l.KANJI,i.KANJI,t)):(r=d(l.BYTE_KANJI,i.BYTE,t),s=[]);const o=e.concat(n,r,s);return o.sort((function(t,e){return t.index-e.index})).map((function(t){return{data:t.data,mode:t.mode,length:t.length}}))}function p(t,e){switch(e){case i.NUMERIC:return r.getBitsLength(t);case i.ALPHANUMERIC:return s.getBitsLength(t);case i.KANJI:return a.getBitsLength(t);case i.BYTE:return o.getBitsLength(t)}}function g(t){return t.reduce((function(t,e){const n=t.length-1>=0?t[t.length-1]:null;return n&&n.mode===e.mode?(t[t.length-1].data+=e.data,t):(t.push(e),t)}),[])}function m(t){const e=[];for(let n=0;n{let n;const i=[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];e.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 4*t+17},e.getSymbolTotalCodewords=function(t){return i[t]},e.getBCHDigit=function(t){let e=0;while(0!==t)e++,t>>>=1;return e},e.setToSJISFunction=function(t){if("function"!==typeof t)throw new Error('"toSJISFunc" is not a valid function.');n=t},e.isKanjiModeEnabled=function(){return"undefined"!==typeof n},e.toSJIS=function(t){return n(t)}},43114:(t,e)=>{e.isValid=function(t){return!isNaN(t)&&t>=1&&t<=40}},23103:(t,e,n)=>{const i=n(10242),r=n(35393),s=n(64908),o=n(76910),a=n(43114),l=7973,u=i.getBCHDigit(l);function c(t,n,i){for(let r=1;r<=40;r++)if(n<=e.getCapacity(r,i,t))return r}function h(t,e){return o.getCharCountIndicator(t,e)+4}function d(t,e){let n=0;return t.forEach((function(t){const i=h(t.mode,e);n+=i+t.getBitsLength()})),n}function f(t,n){for(let i=1;i<=40;i++){const r=d(t,i);if(r<=e.getCapacity(i,n,o.MIXED))return i}}e.from=function(t,e){return a.isValid(t)?parseInt(t,10):e},e.getCapacity=function(t,e,n){if(!a.isValid(t))throw new Error("Invalid QR Code version");"undefined"===typeof n&&(n=o.BYTE);const s=i.getSymbolTotalCodewords(t),l=r.getTotalCodewordsCount(t,e),u=8*(s-l);if(n===o.MIXED)return u;const c=u-h(n,t);switch(n){case o.NUMERIC:return Math.floor(c/10*3);case o.ALPHANUMERIC:return Math.floor(c/11*2);case o.KANJI:return Math.floor(c/13);case o.BYTE:default:return Math.floor(c/8)}},e.getBestVersionForData=function(t,e){let n;const i=s.from(e,s.M);if(Array.isArray(t)){if(t.length>1)return f(t,i);if(0===t.length)return 1;n=t[0]}else n=t;return c(n.mode,n.getLength(),i)},e.getEncodedBits=function(t){if(!a.isValid(t)||t<7)throw new Error("Invalid QR Code version");let e=t<<12;while(i.getBCHDigit(e)-u>=0)e^=l<{const i=n(89653);function r(t,e,n){t.clearRect(0,0,e.width,e.height),e.style||(e.style={}),e.height=n,e.width=n,e.style.height=n+"px",e.style.width=n+"px"}function s(){try{return document.createElement("canvas")}catch(t){throw new Error("You need to specify a canvas element")}}e.render=function(t,e,n){let o=n,a=e;"undefined"!==typeof o||e&&e.getContext||(o=e,e=void 0),e||(a=s()),o=i.getOptions(o);const l=i.getImageWidth(t.modules.size,o),u=a.getContext("2d"),c=u.createImageData(l,l);return i.qrToImageData(c.data,t,o),r(u,a,l),u.putImageData(c,0,0),a},e.renderToDataURL=function(t,n,i){let r=i;"undefined"!==typeof r||n&&n.getContext||(r=n,n=void 0),r||(r={});const s=e.render(t,n,r),o=r.type||"image/png",a=r.rendererOpts||{};return s.toDataURL(o,a.quality)}},93776:(t,e,n)=>{const i=n(89653);function r(t,e){const n=t.a/255,i=e+'="'+t.hex+'"';return n<1?i+" "+e+'-opacity="'+n.toFixed(2).slice(1)+'"':i}function s(t,e,n){let i=t+e;return"undefined"!==typeof n&&(i+=" "+n),i}function o(t,e,n){let i="",r=0,o=!1,a=0;for(let l=0;l0&&u>0&&t[l-1]||(i+=o?s("M",u+n,.5+c+n):s("m",r,0),r=0,o=!1),u+1':"",h="',d='viewBox="0 0 '+u+" "+u+'"',f=s.width?'width="'+s.width+'" height="'+s.width+'" ':"",p=''+c+h+"\n";return"function"===typeof n&&n(null,p),p}},89653:(t,e)=>{function n(t){if("number"===typeof t&&(t=t.toString()),"string"!==typeof t)throw new Error("Color should be defined as hex string");let e=t.slice().replace("#","").split("");if(e.length<3||5===e.length||e.length>8)throw new Error("Invalid hex color: "+t);3!==e.length&&4!==e.length||(e=Array.prototype.concat.apply([],e.map((function(t){return[t,t]})))),6===e.length&&e.push("F","F");const n=parseInt(e.join(""),16);return{r:n>>24&255,g:n>>16&255,b:n>>8&255,a:255&n,hex:"#"+e.slice(0,6).join("")}}e.getOptions=function(t){t||(t={}),t.color||(t.color={});const e="undefined"===typeof t.margin||null===t.margin||t.margin<0?4:t.margin,i=t.width&&t.width>=21?t.width:void 0,r=t.scale||4;return{width:i,scale:i?4:r,margin:e,color:{dark:n(t.color.dark||"#000000ff"),light:n(t.color.light||"#ffffffff")},type:t.type,rendererOpts:t.rendererOpts||{}}},e.getScale=function(t,e){return e.width&&e.width>=t+2*e.margin?e.width/(t+2*e.margin):e.scale},e.getImageWidth=function(t,n){const i=e.getScale(t,n);return Math.floor((t+2*n.margin)*i)},e.qrToImageData=function(t,n,i){const r=n.modules.size,s=n.modules.data,o=e.getScale(r,i),a=Math.floor((r+2*i.margin)*o),l=i.margin*o,u=[i.color.light,i.color.dark];for(let e=0;e=l&&n>=l&&e{"use strict"; /** * @license * Copyright 2017 Google LLC diff --git a/HomeUI/dist/js/9353.js b/HomeUI/dist/js/9353.js index ca05eaa68..7c0814b12 100644 --- a/HomeUI/dist/js/9353.js +++ b/HomeUI/dist/js/9353.js @@ -1 +1 @@ -"use strict";(globalThis["webpackChunkflux"]=globalThis["webpackChunkflux"]||[]).push([[9353],{34547:(e,t,a)=>{a.d(t,{Z:()=>c});var n=function(){var e=this,t=e._self._c;return t("div",{staticClass:"toastification"},[t("div",{staticClass:"d-flex align-items-start"},[t("b-avatar",{staticClass:"mr-75 flex-shrink-0",attrs:{variant:e.variant,size:"1.8rem"}},[t("feather-icon",{attrs:{icon:e.icon,size:"15"}})],1),t("div",{staticClass:"d-flex flex-grow-1"},[t("div",[e.title?t("h5",{staticClass:"mb-0 font-weight-bolder toastification-title",class:`text-${e.variant}`,domProps:{textContent:e._s(e.title)}}):e._e(),e.text?t("small",{staticClass:"d-inline-block text-body",domProps:{textContent:e._s(e.text)}}):e._e()]),t("span",{staticClass:"cursor-pointer toastification-close-icon ml-auto",on:{click:function(t){return e.$emit("close-toast")}}},[e.hideClose?e._e():t("feather-icon",{staticClass:"text-body",attrs:{icon:"XIcon"}})],1)])],1)])},r=[],o=a(47389);const i={components:{BAvatar:o.SH},props:{variant:{type:String,default:"primary"},icon:{type:String,default:null},title:{type:String,default:null},text:{type:String,default:null},hideClose:{type:Boolean,default:!1}}},s=i;var l=a(1001),d=(0,l.Z)(s,n,r,!1,null,"22d964ca",null);const c=d.exports},39353:(e,t,a)=>{a.r(t),a.d(t,{default:()=>f});var n=function(){var e=this,t=e._self._c;return t("b-card",[t("div",[t("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"ml-1",attrs:{id:"start-daemon",variant:"outline-primary",size:"md"}},[e._v(" Stop Benchmark Daemon ")]),t("b-popover",{ref:"popover",attrs:{target:"start-daemon",triggers:"click",show:e.popoverShow,placement:"auto",container:"my-container"},on:{"update:show":function(t){e.popoverShow=t}},scopedSlots:e._u([{key:"title",fn:function(){return[t("div",{staticClass:"d-flex justify-content-between align-items-center"},[t("span",[e._v("Are You Sure?")]),t("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"close",attrs:{variant:"transparent","aria-label":"Close"},on:{click:e.onClose}},[t("span",{staticClass:"d-inline-block text-white",attrs:{"aria-hidden":"true"}},[e._v("×")])])],1)]},proxy:!0}])},[t("div",[t("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"mr-1",attrs:{size:"sm",variant:"danger"},on:{click:e.onClose}},[e._v(" Cancel ")]),t("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],attrs:{size:"sm",variant:"primary"},on:{click:e.onOk}},[e._v(" Stop Benchmark ")])],1)]),t("b-modal",{attrs:{id:"modal-center",centered:"",title:"Benchmark Daemon Stop","ok-only":"","ok-title":"OK"},model:{value:e.modalShow,callback:function(t){e.modalShow=t},expression:"modalShow"}},[t("b-card-text",[e._v(" The benchmark daemon will now stop. ")])],1)],1)])},r=[],o=a(86855),i=a(15193),s=a(53862),l=a(31220),d=a(64206),c=a(34547),u=a(20266),m=a(27616);const g={components:{BCard:o._,BButton:i.T,BPopover:s.x,BModal:l.N,BCardText:d.j,ToastificationContent:c.Z},directives:{Ripple:u.Z},data(){return{popoverShow:!1,modalShow:!1}},methods:{onClose(){this.popoverShow=!1},onOk(){this.popoverShow=!1,this.modalShow=!0;const e=localStorage.getItem("zelidauth");m.Z.stopBenchmark(e).then((e=>{this.$toast({component:c.Z,props:{title:e.data.data.message||e.data.data,icon:"InfoIcon",variant:"success"}})})).catch((()=>{this.$toast({component:c.Z,props:{title:"Error while trying to stop Benchmark",icon:"InfoIcon",variant:"danger"}})}))}}},p=g;var h=a(1001),v=(0,h.Z)(p,n,r,!1,null,null,null);const f=v.exports},27616:(e,t,a)=>{a.d(t,{Z:()=>r});var n=a(80914);const r={help(){return(0,n.Z)().get("/daemon/help")},helpSpecific(e){return(0,n.Z)().get(`/daemon/help/${e}`)},getInfo(){return(0,n.Z)().get("/daemon/getinfo")},getFluxNodeStatus(){return(0,n.Z)().get("/daemon/getzelnodestatus")},getRawTransaction(e,t){return(0,n.Z)().get(`/daemon/getrawtransaction/${e}/${t}`)},listFluxNodes(){return(0,n.Z)().get("/daemon/listzelnodes")},viewDeterministicFluxNodeList(){return(0,n.Z)().get("/daemon/viewdeterministiczelnodelist")},getFluxNodeCount(){return(0,n.Z)().get("/daemon/getzelnodecount")},getStartList(){return(0,n.Z)().get("/daemon/getstartlist")},getDOSList(){return(0,n.Z)().get("/daemon/getdoslist")},fluxCurrentWinner(){return(0,n.Z)().get("/daemon/fluxcurrentwinner")},getBenchmarks(){return(0,n.Z)().get("/daemon/getbenchmarks")},getBenchStatus(){return(0,n.Z)().get("/daemon/getbenchstatus")},startBenchmark(e){return(0,n.Z)().get("/daemon/startbenchmark",{headers:{zelidauth:e}})},stopBenchmark(e){return(0,n.Z)().get("/daemon/stopbenchmark",{headers:{zelidauth:e}})},getBlockCount(){return(0,n.Z)().get("/daemon/getBlockCount")},getBlockchainInfo(){return(0,n.Z)().get("/daemon/getblockchaininfo")},getMiningInfo(){return(0,n.Z)().get("/daemon/getmininginfo")},getNetworkInfo(){return(0,n.Z)().get("/daemon/getnetworkinfo")},validateAddress(e,t){return(0,n.Z)().get(`/daemon/validateaddress/${t}`,{headers:{zelidauth:e}})},getWalletInfo(e){return(0,n.Z)().get("/daemon/getwalletinfo",{headers:{zelidauth:e}})},listFluxNodeConf(e){return(0,n.Z)().get("/daemon/listzelnodeconf",{headers:{zelidauth:e}})},start(e){return(0,n.Z)().get("/daemon/start",{headers:{zelidauth:e}})},restart(e){return(0,n.Z)().get("/daemon/restart",{headers:{zelidauth:e}})},stopDaemon(e){return(0,n.Z)().get("/daemon/stop",{headers:{zelidauth:e}})},rescanDaemon(e,t){return(0,n.Z)().get(`/daemon/rescanblockchain/${t}`,{headers:{zelidauth:e}})},getBlock(e,t){return(0,n.Z)().get(`/daemon/getblock/${e}/${t}`)},tailDaemonDebug(e){return(0,n.Z)().get("/flux/taildaemondebug",{headers:{zelidauth:e}})},justAPI(){return(0,n.Z)()},cancelToken(){return n.S}}}}]); \ No newline at end of file +"use strict";(self["webpackChunkflux"]=self["webpackChunkflux"]||[]).push([[9353],{34547:(e,t,a)=>{a.d(t,{Z:()=>c});var n=function(){var e=this,t=e._self._c;return t("div",{staticClass:"toastification"},[t("div",{staticClass:"d-flex align-items-start"},[t("b-avatar",{staticClass:"mr-75 flex-shrink-0",attrs:{variant:e.variant,size:"1.8rem"}},[t("feather-icon",{attrs:{icon:e.icon,size:"15"}})],1),t("div",{staticClass:"d-flex flex-grow-1"},[t("div",[e.title?t("h5",{staticClass:"mb-0 font-weight-bolder toastification-title",class:`text-${e.variant}`,domProps:{textContent:e._s(e.title)}}):e._e(),e.text?t("small",{staticClass:"d-inline-block text-body",domProps:{textContent:e._s(e.text)}}):e._e()]),t("span",{staticClass:"cursor-pointer toastification-close-icon ml-auto",on:{click:function(t){return e.$emit("close-toast")}}},[e.hideClose?e._e():t("feather-icon",{staticClass:"text-body",attrs:{icon:"XIcon"}})],1)])],1)])},r=[],o=a(47389);const s={components:{BAvatar:o.SH},props:{variant:{type:String,default:"primary"},icon:{type:String,default:null},title:{type:String,default:null},text:{type:String,default:null},hideClose:{type:Boolean,default:!1}}},i=s;var l=a(1001),d=(0,l.Z)(i,n,r,!1,null,"22d964ca",null);const c=d.exports},39353:(e,t,a)=>{a.r(t),a.d(t,{default:()=>f});var n=function(){var e=this,t=e._self._c;return t("b-card",[t("div",[t("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"ml-1",attrs:{id:"start-daemon",variant:"outline-primary",size:"md"}},[e._v(" Stop Benchmark Daemon ")]),t("b-popover",{ref:"popover",attrs:{target:"start-daemon",triggers:"click",show:e.popoverShow,placement:"auto",container:"my-container"},on:{"update:show":function(t){e.popoverShow=t}},scopedSlots:e._u([{key:"title",fn:function(){return[t("div",{staticClass:"d-flex justify-content-between align-items-center"},[t("span",[e._v("Are You Sure?")]),t("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"close",attrs:{variant:"transparent","aria-label":"Close"},on:{click:e.onClose}},[t("span",{staticClass:"d-inline-block text-white",attrs:{"aria-hidden":"true"}},[e._v("×")])])],1)]},proxy:!0}])},[t("div",[t("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"mr-1",attrs:{size:"sm",variant:"danger"},on:{click:e.onClose}},[e._v(" Cancel ")]),t("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],attrs:{size:"sm",variant:"primary"},on:{click:e.onOk}},[e._v(" Stop Benchmark ")])],1)]),t("b-modal",{attrs:{id:"modal-center",centered:"",title:"Benchmark Daemon Stop","ok-only":"","ok-title":"OK"},model:{value:e.modalShow,callback:function(t){e.modalShow=t},expression:"modalShow"}},[t("b-card-text",[e._v(" The benchmark daemon will now stop. ")])],1)],1)])},r=[],o=a(86855),s=a(15193),i=a(53862),l=a(31220),d=a(64206),c=a(34547),u=a(20266),m=a(27616);const p={components:{BCard:o._,BButton:s.T,BPopover:i.x,BModal:l.N,BCardText:d.j,ToastificationContent:c.Z},directives:{Ripple:u.Z},data(){return{popoverShow:!1,modalShow:!1}},methods:{onClose(){this.popoverShow=!1},onOk(){this.popoverShow=!1,this.modalShow=!0;const e=localStorage.getItem("zelidauth");m.Z.stopBenchmark(e).then((e=>{this.$toast({component:c.Z,props:{title:e.data.data.message||e.data.data,icon:"InfoIcon",variant:"success"}})})).catch((()=>{this.$toast({component:c.Z,props:{title:"Error while trying to stop Benchmark",icon:"InfoIcon",variant:"danger"}})}))}}},g=p;var h=a(1001),v=(0,h.Z)(g,n,r,!1,null,null,null);const f=v.exports},27616:(e,t,a)=>{a.d(t,{Z:()=>r});var n=a(80914);const r={help(){return(0,n.Z)().get("/daemon/help")},helpSpecific(e){return(0,n.Z)().get(`/daemon/help/${e}`)},getInfo(){return(0,n.Z)().get("/daemon/getinfo")},getFluxNodeStatus(){return(0,n.Z)().get("/daemon/getzelnodestatus")},getRawTransaction(e,t){return(0,n.Z)().get(`/daemon/getrawtransaction/${e}/${t}`)},listFluxNodes(){return(0,n.Z)().get("/daemon/listzelnodes")},viewDeterministicFluxNodeList(){return(0,n.Z)().get("/daemon/viewdeterministiczelnodelist")},getFluxNodeCount(){return(0,n.Z)().get("/daemon/getzelnodecount")},getStartList(){return(0,n.Z)().get("/daemon/getstartlist")},getDOSList(){return(0,n.Z)().get("/daemon/getdoslist")},fluxCurrentWinner(){return(0,n.Z)().get("/daemon/fluxcurrentwinner")},getBenchmarks(){return(0,n.Z)().get("/daemon/getbenchmarks")},getBenchStatus(){return(0,n.Z)().get("/daemon/getbenchstatus")},startBenchmark(e){return(0,n.Z)().get("/daemon/startbenchmark",{headers:{zelidauth:e}})},stopBenchmark(e){return(0,n.Z)().get("/daemon/stopbenchmark",{headers:{zelidauth:e}})},getBlockCount(){return(0,n.Z)().get("/daemon/getBlockCount")},getBlockchainInfo(){return(0,n.Z)().get("/daemon/getblockchaininfo")},getMiningInfo(){return(0,n.Z)().get("/daemon/getmininginfo")},getNetworkInfo(){return(0,n.Z)().get("/daemon/getnetworkinfo")},validateAddress(e,t){return(0,n.Z)().get(`/daemon/validateaddress/${t}`,{headers:{zelidauth:e}})},getWalletInfo(e){return(0,n.Z)().get("/daemon/getwalletinfo",{headers:{zelidauth:e}})},listFluxNodeConf(e){return(0,n.Z)().get("/daemon/listzelnodeconf",{headers:{zelidauth:e}})},start(e){return(0,n.Z)().get("/daemon/start",{headers:{zelidauth:e}})},restart(e){return(0,n.Z)().get("/daemon/restart",{headers:{zelidauth:e}})},stopDaemon(e){return(0,n.Z)().get("/daemon/stop",{headers:{zelidauth:e}})},rescanDaemon(e,t){return(0,n.Z)().get(`/daemon/rescanblockchain/${t}`,{headers:{zelidauth:e}})},getBlock(e,t){return(0,n.Z)().get(`/daemon/getblock/${e}/${t}`)},tailDaemonDebug(e){return(0,n.Z)().get("/flux/taildaemondebug",{headers:{zelidauth:e}})},justAPI(){return(0,n.Z)()},cancelToken(){return n.S}}}}]); \ No newline at end of file diff --git a/HomeUI/dist/js/9371.js b/HomeUI/dist/js/9371.js deleted file mode 100644 index e5f4c86fb..000000000 --- a/HomeUI/dist/js/9371.js +++ /dev/null @@ -1 +0,0 @@ -(globalThis["webpackChunkflux"]=globalThis["webpackChunkflux"]||[]).push([[9371],{49371:(e,t,a)=>{"use strict";a.d(t,{Z:()=>Te});var s=function(){var e=this,t=e._self._c;return t("div",[t("b-modal",{attrs:{"hide-footer":"",centered:"","hide-header-close":"","no-close-on-backdrop":"","no-close-on-esc":"",size:"lg","header-bg-variant":"primary",title:e.operationTitle,"title-tag":"h5"},model:{value:e.progressVisable,callback:function(t){e.progressVisable=t},expression:"progressVisable"}},[t("div",{staticClass:"d-flex flex-column justify-content-center align-items-center",staticStyle:{height:"100%"}},[t("div",{staticClass:"d-flex align-items-center mb-2"},[t("b-spinner",{attrs:{label:"Loading..."}}),t("div",{staticClass:"ml-1"},[e._v(" Waiting for the operation to be completed... ")])],1)])]),t("div",[t("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"mr-2",attrs:{variant:"outline-primary",pill:""},on:{click:e.goBackToApps}},[t("v-icon",{attrs:{name:"chevron-left"}}),e._v(" Back ")],1),e._v(" "+e._s(e.applicationManagementAndStatus)+" ")],1),t("b-tabs",{ref:"managementTabs",staticClass:"mt-2",staticStyle:{"flex-wrap":"nowrap"},attrs:{pills:"",vertical:e.windowWidth>860,lazy:""},on:{input:t=>e.updateManagementTab(t)}},[e.windowWidth>860?t("b-tab",{attrs:{title:"Local App Management",disabled:""}}):e._e(),t("b-tab",{attrs:{active:"",title:"Specifications"}},[t("div",[t("b-card",[t("h3",[t("b-icon",{attrs:{icon:"hdd-network-fill"}}),e._v("  Backend Selection")],1),t("b-input-group",{staticClass:"my-1",staticStyle:{width:"350px"}},[t("b-input-group-prepend",[t("b-input-group-text",[t("b-icon",{attrs:{icon:"laptop"}})],1)],1),t("b-form-select",{attrs:{options:null},on:{change:e.selectedIpChanged},model:{value:e.selectedIp,callback:function(t){e.selectedIp=t},expression:"selectedIp"}},e._l(e.instances.data,(function(a){return t("b-form-select-option",{key:a.ip,attrs:{value:a.ip}},[e._v(" "+e._s(a.ip)+" ")])})),1),t("b-button",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.top",value:"Refresh",expression:"'Refresh'",modifiers:{hover:!0,top:!0}},{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.12)",expression:"'rgba(255, 255, 255, 0.12)'",modifiers:{400:!0}}],ref:"BackendRefresh",staticClass:"ml-1 bb",staticStyle:{outline:"none !important","box-shadow":"none !important"},attrs:{variant:"outline-success",size:"sm"},on:{click:e.refreshInfo}},[t("b-icon",{attrs:{scale:"1.2",icon:"arrow-clockwise"}})],1)],1)],1)],1),t("div",[t("b-card",[e.callBResponse.data&&e.callResponse.data?t("div",[e.callBResponse.data.hash!==e.callResponse.data.hash?t("div",[t("h1",[e._v("Locally running application does not match global specifications! Update needed")]),t("br"),t("br")]):t("div",[e._v(" Application is synced with Global network "),t("br"),t("br")])]):e._e(),t("h2",[e._v("Installed Specifications")]),e.callResponse.data?t("div",{staticStyle:{"text-align":"left"}},[t("b-card",{},[t("list-entry",{attrs:{title:"Name",data:e.callResponse.data.name}}),t("list-entry",{attrs:{title:"Description",data:e.callResponse.data.description}}),t("list-entry",{attrs:{title:"Owner",data:e.callResponse.data.owner}}),t("list-entry",{attrs:{title:"Hash",data:e.callResponse.data.hash}}),e.callResponse.data.version>=5?t("div",[e.callResponse.data.geolocation.length?t("div",e._l(e.callResponse.data.geolocation,(function(a){return t("div",{key:a},[t("list-entry",{attrs:{title:"Geolocation",data:e.getGeolocation(a)}})],1)})),0):t("div",[t("list-entry",{attrs:{title:"Continent",data:"All"}}),t("list-entry",{attrs:{title:"Country",data:"All"}}),t("list-entry",{attrs:{title:"Region",data:"All"}})],1)]):e._e(),e.callResponse.data.instances?t("list-entry",{attrs:{title:"Instances",data:e.callResponse.data.instances.toString()}}):e._e(),t("list-entry",{attrs:{title:"Specifications version",number:e.callResponse.data.version}}),t("list-entry",{attrs:{title:"Registered on Blockheight",number:e.callResponse.data.height}}),e.callResponse.data.hash&&64===e.callResponse.data.hash.length?t("list-entry",{attrs:{title:"Expires on Blockheight",number:e.callResponse.data.height+(e.callResponse.data.expire||22e3)}}):e._e(),t("list-entry",{attrs:{title:"Expires in",data:e.getNewExpireLabel}}),t("list-entry",{attrs:{title:"Enterprise Nodes",data:e.callResponse.data.nodes?e.callResponse.data.nodes.toString():"Not scoped"}}),t("list-entry",{attrs:{title:"Static IP",data:e.callResponse.data.staticip?"Yes, Running only on Static IP nodes":"No, Running on all nodes"}}),t("h4",[e._v("Composition")]),e.callResponse.data.version<=3?t("div",[t("b-card",[t("list-entry",{attrs:{title:"Repository",data:e.callResponse.data.repotag}}),t("list-entry",{attrs:{title:"Custom Domains",data:e.callResponse.data.domains.toString()||"none"}}),t("list-entry",{attrs:{title:"Automatic Domains",data:e.constructAutomaticDomains(e.callResponse.data.ports,e.callResponse.data.name).toString()||"none"}}),t("list-entry",{attrs:{title:"Ports",data:e.callResponse.data.ports.toString()||"none"}}),t("list-entry",{attrs:{title:"Container Ports",data:e.callResponse.data.containerPorts.toString()||"none"}}),t("list-entry",{attrs:{title:"Container Data",data:e.callResponse.data.containerData.toString()||"none"}}),t("list-entry",{attrs:{title:"Environment Parameters",data:e.callResponse.data.enviromentParameters.length>0?e.callResponse.data.enviromentParameters.toString():"none"}}),t("list-entry",{attrs:{title:"Commands",data:e.callResponse.data.commands.length>0?e.callResponse.data.commands.toString():"none"}}),e.callResponse.data.tiered?t("div",[t("list-entry",{attrs:{title:"CPU Cumulus",data:`${e.callResponse.data.cpubasic} vCore`}}),t("list-entry",{attrs:{title:"CPU Nimbus",data:`${e.callResponse.data.cpusuper} vCore`}}),t("list-entry",{attrs:{title:"CPU Stratus",data:`${e.callResponse.data.cpubamf} vCore`}}),t("list-entry",{attrs:{title:"RAM Cumulus",data:`${e.callResponse.data.rambasic} MB`}}),t("list-entry",{attrs:{title:"RAM Nimbus",data:`${e.callResponse.data.ramsuper} MB`}}),t("list-entry",{attrs:{title:"RAM Stratus",data:`${e.callResponse.data.rambamf} MB`}}),t("list-entry",{attrs:{title:"SSD Cumulus",data:`${e.callResponse.data.hddbasic} GB`}}),t("list-entry",{attrs:{title:"SSD Nimbus",data:`${e.callResponse.data.hddsuper} GB`}}),t("list-entry",{attrs:{title:"SSD Stratus",data:`${e.callResponse.data.hddbamf} GB`}})],1):t("div",[t("list-entry",{attrs:{title:"CPU",data:`${e.callResponse.data.cpu} vCore`}}),t("list-entry",{attrs:{title:"RAM",data:`${e.callResponse.data.ram} MB`}}),t("list-entry",{attrs:{title:"SSD",data:`${e.callResponse.data.hdd} GB`}})],1)],1)],1):t("div",e._l(e.callResponse.data.compose,(function(a,s){return t("b-card",{key:s},[t("b-card-title",[e._v(" Component "+e._s(a.name)+" ")]),t("list-entry",{attrs:{title:"Name",data:a.name}}),t("list-entry",{attrs:{title:"Description",data:a.description}}),t("list-entry",{attrs:{title:"Repository",data:a.repotag}}),t("list-entry",{attrs:{title:"Repository Authentication",data:a.repoauth?"Content Encrypted":"Public"}}),t("list-entry",{attrs:{title:"Custom Domains",data:a.domains.toString()||"none"}}),t("list-entry",{attrs:{title:"Automatic Domains",data:e.constructAutomaticDomains(a.ports,e.callResponse.data.name,s).toString()||"none"}}),t("list-entry",{attrs:{title:"Ports",data:a.ports.toString()||"none"}}),t("list-entry",{attrs:{title:"Container Ports",data:a.containerPorts.toString()||"none"}}),t("list-entry",{attrs:{title:"Container Data",data:a.containerData}}),t("list-entry",{attrs:{title:"Environment Parameters",data:a.environmentParameters.length>0?a.environmentParameters.toString():"none"}}),t("list-entry",{attrs:{title:"Commands",data:a.commands.length>0?a.commands.toString():"none"}}),t("list-entry",{attrs:{title:"Secret Environment Parameters",data:a.secrets?"Content Encrypted":"none"}}),a.tiered?t("div",[t("list-entry",{attrs:{title:"CPU Cumulus",data:`${a.cpubasic} vCore`}}),t("list-entry",{attrs:{title:"CPU Nimbus",data:`${a.cpusuper} vCore`}}),t("list-entry",{attrs:{title:"CPU Stratus",data:`${a.cpubamf} vCore`}}),t("list-entry",{attrs:{title:"RAM Cumulus",data:`${a.rambasic} MB`}}),t("list-entry",{attrs:{title:"RAM Nimbus",data:`${a.ramsuper} MB`}}),t("list-entry",{attrs:{title:"RAM Stratus",data:`${a.rambamf} MB`}}),t("list-entry",{attrs:{title:"SSD Cumulus",data:`${a.hddbasic} GB`}}),t("list-entry",{attrs:{title:"SSD Nimbus",data:`${a.hddsuper} GB`}}),t("list-entry",{attrs:{title:"SSD Stratus",data:`${a.hddbamf} GB`}})],1):t("div",[t("list-entry",{attrs:{title:"CPU",data:`${a.cpu} vCore`}}),t("list-entry",{attrs:{title:"RAM",data:`${a.ram} MB`}}),t("list-entry",{attrs:{title:"SSD",data:`${a.hdd} GB`}})],1)],1)})),1)],1)],1):t("div",[e._v(" Local Specifications loading... ")]),t("h2",{staticClass:"mt-2"},[e._v(" Global Specifications ")]),e.callBResponse.data?t("div",{staticStyle:{"text-align":"left"}},[t("b-card",{},[t("list-entry",{attrs:{title:"Name",data:e.callBResponse.data.name}}),t("list-entry",{attrs:{title:"Description",data:e.callBResponse.data.description}}),t("list-entry",{attrs:{title:"Owner",data:e.callBResponse.data.owner}}),t("list-entry",{attrs:{title:"Hash",data:e.callBResponse.data.hash}}),e.callBResponse.data.version>=5?t("div",[e.callBResponse.data.geolocation.length?t("div",e._l(e.callBResponse.data.geolocation,(function(a){return t("div",{key:a},[t("list-entry",{attrs:{title:"Geolocation",data:e.getGeolocation(a)}})],1)})),0):t("div",[t("list-entry",{attrs:{title:"Continent",data:"All"}}),t("list-entry",{attrs:{title:"Country",data:"All"}}),t("list-entry",{attrs:{title:"Region",data:"All"}})],1)]):e._e(),e.callBResponse.data.instances?t("list-entry",{attrs:{title:"Instances",data:e.callBResponse.data.instances.toString()}}):e._e(),t("list-entry",{attrs:{title:"Specifications version",number:e.callBResponse.data.version}}),t("list-entry",{attrs:{title:"Registered on Blockheight",number:e.callBResponse.data.height}}),e.callBResponse.data.hash&&64===e.callBResponse.data.hash.length?t("list-entry",{attrs:{title:"Expires on Blockheight",number:e.callBResponse.data.height+(e.callBResponse.data.expire||22e3)}}):e._e(),t("list-entry",{attrs:{title:"Expires in",data:e.getNewExpireLabel}}),t("list-entry",{attrs:{title:"Enterprise Nodes",data:e.callBResponse.data.nodes?e.callBResponse.data.nodes.toString():"Not scoped"}}),t("list-entry",{attrs:{title:"Static IP",data:e.callBResponse.data.staticip?"Yes, Running only on Static IP nodes":"No, Running on all nodes"}}),t("h4",[e._v("Composition")]),e.callBResponse.data.version<=3?t("div",[t("b-card",[t("list-entry",{attrs:{title:"Repository",data:e.callBResponse.data.repotag}}),t("list-entry",{attrs:{title:"Custom Domains",data:e.callBResponse.data.domains.toString()||"none"}}),t("list-entry",{attrs:{title:"Automatic Domains",data:e.constructAutomaticDomainsGlobal.toString()||"none"}}),t("list-entry",{attrs:{title:"Ports",data:e.callBResponse.data.ports.toString()||"none"}}),t("list-entry",{attrs:{title:"Container Ports",data:e.callBResponse.data.containerPorts.toString()||"none"}}),t("list-entry",{attrs:{title:"Container Data",data:e.callBResponse.data.containerData}}),t("list-entry",{attrs:{title:"Environment Parameters",data:e.callBResponse.data.enviromentParameters.length>0?e.callBResponse.data.enviromentParameters.toString():"none"}}),t("list-entry",{attrs:{title:"Commands",data:e.callBResponse.data.commands.length>0?e.callBResponse.data.commands.toString():"none"}}),e.callBResponse.data.tiered?t("div",[t("list-entry",{attrs:{title:"CPU Cumulus",data:`${e.callBResponse.data.cpubasic} vCore`}}),t("list-entry",{attrs:{title:"CPU Nimbus",data:`${e.callBResponse.data.cpusuper} vCore`}}),t("list-entry",{attrs:{title:"CPU Stratus",data:`${e.callBResponse.data.cpubamf} vCore`}}),t("list-entry",{attrs:{title:"RAM Cumulus",data:`${e.callBResponse.data.rambasic} MB`}}),t("list-entry",{attrs:{title:"RAM Nimbus",data:`${e.callBResponse.data.ramsuper} MB`}}),t("list-entry",{attrs:{title:"RAM Stratus",data:`${e.callBResponse.data.rambamf} MB`}}),t("list-entry",{attrs:{title:"SSD Cumulus",data:`${e.callBResponse.data.hddbasic} GB`}}),t("list-entry",{attrs:{title:"SSD Nimbus",data:`${e.callBResponse.data.hddsuper} GB`}}),t("list-entry",{attrs:{title:"SSD Stratus",data:`${e.callBResponse.data.hddbamf} GB`}})],1):t("div",[t("list-entry",{attrs:{title:"CPU",data:`${e.callBResponse.data.cpu} vCore`}}),t("list-entry",{attrs:{title:"RAM",data:`${e.callBResponse.data.ram} MB`}}),t("list-entry",{attrs:{title:"SSD",data:`${e.callBResponse.data.hdd} GB`}})],1)],1)],1):t("div",e._l(e.callBResponse.data.compose,(function(a,s){return t("b-card",{key:s},[t("b-card-title",[e._v(" Component "+e._s(a.name)+" ")]),t("list-entry",{attrs:{title:"Name",data:a.name}}),t("list-entry",{attrs:{title:"Description",data:a.description}}),t("list-entry",{attrs:{title:"Repository",data:a.repotag}}),t("list-entry",{attrs:{title:"Repository Authentication",data:a.repoauth?"Content Encrypted":"Public"}}),t("list-entry",{attrs:{title:"Custom Domains",data:a.domains.toString()||"none"}}),t("list-entry",{attrs:{title:"Automatic Domains",data:e.constructAutomaticDomains(a.ports,e.callBResponse.data.name,s).toString()||"none"}}),t("list-entry",{attrs:{title:"Ports",data:a.ports.toString()||"none"}}),t("list-entry",{attrs:{title:"Container Ports",data:a.containerPorts.toString()||"none"}}),t("list-entry",{attrs:{title:"Container Data",data:a.containerData}}),t("list-entry",{attrs:{title:"Environment Parameters",data:a.environmentParameters.length>0?a.environmentParameters.toString():"none"}}),t("list-entry",{attrs:{title:"Commands",data:a.commands.length>0?a.commands.toString():"none"}}),t("list-entry",{attrs:{title:"Secret Environment Parameters",data:a.secrets?"Content Encrypted":"none"}}),a.tiered?t("div",[t("list-entry",{attrs:{title:"CPU Cumulus",data:`${a.cpubasic} vCore`}}),t("list-entry",{attrs:{title:"CPU Nimbus",data:`${a.cpusuper} vCore`}}),t("list-entry",{attrs:{title:"CPU Stratus",data:`${a.cpubamf} vCore`}}),t("list-entry",{attrs:{title:"RAM Cumulus",data:`${a.rambasic} MB`}}),t("list-entry",{attrs:{title:"RAM Nimbus",data:`${a.ramsuper} MB`}}),t("list-entry",{attrs:{title:"RAM Stratus",data:`${a.rambamf} MB`}}),t("list-entry",{attrs:{title:"SSD Cumulus",data:`${a.hddbasic} GB`}}),t("list-entry",{attrs:{title:"SSD Nimbus",data:`${a.hddsuper} GB`}}),t("list-entry",{attrs:{title:"SSD Stratus",data:`${a.hddbamf} GB`}})],1):t("div",[t("list-entry",{attrs:{title:"CPU",data:`${a.cpu} vCore`}}),t("list-entry",{attrs:{title:"RAM",data:`${a.ram} MB`}}),t("list-entry",{attrs:{title:"SSD",data:`${a.hdd} GB`}})],1)],1)})),1)],1)],1):"error"===e.callBResponse.status?t("div",[e._v(" Global specifications not found! ")]):t("div",[e._v(" Global Specifications loading... ")])])],1)]),t("b-tab",{attrs:{title:"Information"}},[t("h3",[t("b-icon",{attrs:{icon:"app-indicator"}}),e._v(" "+e._s(e.appSpecification.name))],1),e.commandExecutingInspect?t("div",[t("div",{staticStyle:{display:"flex","align-items":"center"}},[t("v-icon",{staticClass:"spin-icon",staticStyle:{"margin-right":"5px"},attrs:{name:"spinner"}}),t("h5",{staticStyle:{margin:"0"}},[e._v(" Loading... ")])],1)]):e._e(),e.appSpecification.version>=4?t("div",e._l(e.callResponseInspect.data,(function(a,s){return t("div",{key:s},[t("h4",[e._v("Component: "+e._s(a.name))]),a.callData?t("div",[t("json-viewer",{attrs:{value:a.callData,"expand-depth":5,copyable:"",boxed:"",theme:"jv-dark"}})],1):e._e()])})),0):t("div",[e.callResponseInspect.data&&e.callResponseInspect.data[0]?t("div",[t("json-viewer",{attrs:{value:e.callResponseInspect.data[0].callData,"expand-depth":5,copyable:"",boxed:"",theme:"jv-dark"}})],1):e._e()])]),t("b-tab",{attrs:{title:"Resources"}},[t("h3",[t("b-icon",{attrs:{icon:"app-indicator"}}),e._v(" "+e._s(e.appSpecification.name))],1),e.commandExecutingStats?t("div",[t("div",{staticStyle:{display:"flex","align-items":"center"}},[t("v-icon",{staticClass:"spin-icon",staticStyle:{"margin-right":"5px"},attrs:{name:"spinner"}}),t("h5",{staticStyle:{margin:"0"}},[e._v(" Loading... ")])],1)]):e._e(),e.appSpecification.version>=4?t("div",e._l(e.callResponseStats.data,(function(a,s){return t("div",{key:s},[t("h4",[e._v("Component: "+e._s(a.name))]),a.callData?t("div",[t("json-viewer",{attrs:{value:a.callData,"expand-depth":5,copyable:"",boxed:"",theme:"jv-dark"}})],1):e._e()])})),0):t("div",[e.callResponseStats.data&&e.callResponseStats.data[0]?t("div",[t("json-viewer",{attrs:{value:e.callResponseStats.data[0].callData,"expand-depth":5,copyable:"",boxed:"",theme:"jv-dark"}})],1):e._e()])]),t("b-tab",{attrs:{title:"Monitoring"}},[t("h3",[e._v("History Statistics 1 hour")]),e.appSpecification.version>=4?t("div",e._l(e.callResponseMonitoring.data,(function(a,s){return t("div",{key:s},[t("h4",[e._v("Component: "+e._s(a.name))]),t("b-table",{staticClass:"stats-table",attrs:{items:e.generateStatsTableItems(a.callData.lastHour,a.nanoCpus,e.appSpecification.compose.find((e=>e.name===a.name))),fields:e.statsFields,"show-empty":"",bordered:"",small:"","empty-text":"No records available."}})],1)})),0):t("div",[e.callResponseMonitoring.data&&e.callResponseMonitoring.data[0]?t("b-table",{staticClass:"stats-table",attrs:{items:e.generateStatsTableItems(e.callResponseMonitoring.data[0].callData.lastHour,e.callResponseMonitoring.data[0].nanoCpus,e.appSpecification),fields:e.statsFields,"show-empty":"",bordered:"",small:"","empty-text":"No records available."}}):t("div",[e._v(" Loading... ")])],1),t("br"),t("br"),t("h3",[e._v("History Statistics 24 hours")]),e.appSpecification.version>=4?t("div",e._l(e.callResponseMonitoring.data,(function(a,s){return t("div",{key:s},[t("h4",[e._v("Component: "+e._s(a.name))]),t("b-table",{staticClass:"stats-table",attrs:{items:e.generateStatsTableItems(a.callData.lastDay,a.nanoCpus,e.appSpecification.compose.find((e=>e.name===a.name))),fields:e.statsFields,"show-empty":"",bordered:"",small:"","empty-text":"No records available."}})],1)})),0):t("div",[e.callResponseMonitoring.data&&e.callResponseMonitoring.data[0]?t("b-table",{staticClass:"stats-table",attrs:{items:e.generateStatsTableItems(e.callResponseMonitoring.data[0].callData.lastDay,e.callResponseMonitoring.data[0].nanoCpus,e.appSpecification),fields:e.statsFields,"show-empty":"",bordered:"",small:"","empty-text":"No records available."}}):t("div",[e._v(" Loading... ")])],1)]),t("b-tab",{attrs:{title:"File Changes"}},[t("h3",[t("b-icon",{attrs:{icon:"app-indicator"}}),e._v(" "+e._s(e.appSpecification.name))],1),e.commandExecutingChanges?t("div",[t("div",{staticStyle:{display:"flex","align-items":"center"}},[t("v-icon",{staticClass:"spin-icon",staticStyle:{"margin-right":"5px"},attrs:{name:"spinner"}}),t("h5",{staticStyle:{margin:"0"}},[e._v(" Loading... ")])],1)]):e._e(),e.appSpecification.version>=4?t("div",e._l(e.callResponseChanges.data,(function(a,s){return t("div",{key:s},[t("h4",[e._v("Component: "+e._s(a.name))]),a.callData?t("div",[t("kbd",{staticClass:"bg-primary mr-1"},[e._v("Kind: 0 = Modified")]),t("kbd",{staticClass:"bg-success mr-1"},[e._v("Kind: 1 = Added ")]),t("kbd",{staticClass:"bg-danger"},[e._v("Kind: 2 = Deleted")]),t("json-viewer",{staticClass:"mt-1",attrs:{value:a.callData,"expand-depth":5,copyable:"",boxed:"",theme:"jv-dark"}})],1):e._e()])})),0):t("div",[e.callResponseChanges.data&&e.callResponseChanges.data[0]?t("div",[t("kbd",{staticClass:"bg-primary mr-1"},[e._v("Kind: 0 = Modified")]),t("kbd",{staticClass:"bg-success mr-1"},[e._v("Kind: 1 = Added ")]),t("kbd",{staticClass:"bg-danger"},[e._v("Kind: 2 = Deleted")]),t("json-viewer",{staticClass:"mt-1",attrs:{value:e.callResponseChanges.data[0].callData,"expand-depth":5,copyable:"",boxed:"",theme:"jv-dark"}})],1):e._e()])]),t("b-tab",{attrs:{title:"Processes"}},[t("h3",[t("b-icon",{attrs:{icon:"app-indicator"}}),e._v(" "+e._s(e.appSpecification.name))],1),e.commandExecutingProcesses?t("div",[t("div",{staticStyle:{display:"flex","align-items":"center"}},[t("v-icon",{staticClass:"spin-icon",staticStyle:{"margin-right":"5px"},attrs:{name:"spinner"}}),t("h5",{staticStyle:{margin:"0"}},[e._v(" Loading... ")])],1)]):e._e(),e.appSpecification.version>=4?t("div",e._l(e.callResponseProcesses.data,(function(a,s){return t("div",{key:s},[t("h4",[e._v("Component: "+e._s(a.name))]),a.callData?t("div",[t("json-viewer",{attrs:{value:a.callData,"expand-depth":5,copyable:"",boxed:"",theme:"jv-dark"}})],1):e._e()])})),0):t("div",[e.callResponseProcesses.data&&e.callResponseProcesses.data[0]?t("div",[t("json-viewer",{attrs:{value:e.callResponseProcesses.data[0].callData,"expand-depth":5,copyable:"",boxed:"",theme:"jv-dark"}})],1):e._e()])]),t("b-tab",{attrs:{title:"Logs"}},[t("div",[t("div",{staticClass:"mb-2",staticStyle:{border:"1px solid #ccc","border-radius":"8px",height:"45px",padding:"12px","text-align":"left","line-height":"0px"}},[t("h5",[t("b-icon",{staticClass:"mr-1",attrs:{scale:"1.2",icon:"search"}}),e._v(" Logs Management ")],1)]),t("b-form",{staticClass:"ml-2 mr-2"},[t("div",{staticClass:"flex-container"},[t("b-form-group",[e.appSpecification?.compose?e._e():t("b-form-group",{attrs:{label:"Component"}},[t("div",{staticClass:"d-flex align-items-center"},[t("b-form-input",{staticClass:"input_s",attrs:{size:"sm",placeholder:e.appSpecification.name,disabled:""}}),t("b-icon",{class:["ml-1","r",{disabled:e.isDisabled}],attrs:{icon:"arrow-clockwise"},on:{click:e.manualFetchLogs}})],1)]),e.appSpecification?.compose?t("b-form-group",{attrs:{label:"Component"}},[t("div",{staticClass:"d-flex align-items-center"},[t("b-form-select",{staticClass:"input_s",attrs:{options:null,disabled:e.isComposeSingle,size:"sm"},on:{change:e.handleContainerChange},model:{value:e.selectedApp,callback:function(t){e.selectedApp=t},expression:"selectedApp"}},[t("b-form-select-option",{attrs:{value:"null",disabled:""}},[e._v(" -- Please select component -- ")]),e._l(e.appSpecification?.compose,(function(a){return t("b-form-select-option",{key:a.name,attrs:{value:a.name}},[e._v(" "+e._s(a.name)+" ")])}))],2),t("b-icon",{class:["ml-1","r",{disabled:e.isDisabled}],attrs:{icon:"arrow-clockwise"},on:{click:e.manualFetchLogs}})],1)]):e._e(),t("b-form-group",{attrs:{label:"Line Count"}},[t("b-form-input",{staticClass:"input",attrs:{type:"number",size:"sm",disabled:e.fetchAllLogs,step:"10",min:"0"},model:{value:e.lineCount,callback:function(t){e.lineCount=t},expression:"lineCount"}})],1),t("b-form-group",{attrs:{label:"Logs Since"}},[t("div",{staticClass:"d-flex align-items-center"},[t("b-form-input",{staticClass:"input",attrs:{size:"sm",type:"datetime-local",placeholder:"Logs Since"},model:{value:e.sinceTimestamp,callback:function(t){e.sinceTimestamp=t},expression:"sinceTimestamp"}}),e.sinceTimestamp?t("b-icon",{staticClass:"ml-1 x",attrs:{icon:"x-square"},on:{click:e.clearDateFilter}}):e._e()],1)])],1),t("b-form-group",{attrs:{label:"Filter"}},[t("b-input-group",{staticClass:"search_input",attrs:{size:"sm"}},[t("b-input-group-prepend",{attrs:{"is-text":""}},[t("b-icon",{attrs:{icon:"funnel-fill"}})],1),t("b-form-input",{attrs:{type:"search",placeholder:"Enter keywords.."},model:{value:e.filterKeyword,callback:function(t){e.filterKeyword=t},expression:"filterKeyword"}})],1),t("b-form-checkbox",{staticClass:"mt-2",attrs:{switch:""},on:{change:e.togglePolling},model:{value:e.pollingEnabled,callback:function(t){e.pollingEnabled=t},expression:"pollingEnabled"}},[e._v(" Auto-refresh "),t("b-icon",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.title",value:"Enable or disable automatic refreshing of logs every few seconds.",expression:"'Enable or disable automatic refreshing of logs every few seconds.'",modifiers:{hover:!0,title:!0}}],staticClass:"icon-tooltip",attrs:{icon:"info-circle"}})],1),t("b-form-checkbox",{attrs:{switch:""},model:{value:e.fetchAllLogs,callback:function(t){e.fetchAllLogs=t},expression:"fetchAllLogs"}},[e._v(" Fetch All Logs ")]),t("b-form-checkbox",{attrs:{switch:""},model:{value:e.displayTimestamps,callback:function(t){e.displayTimestamps=t},expression:"displayTimestamps"}},[e._v(" Display Timestamps ")]),t("b-form-checkbox",{attrs:{switch:""},model:{value:e.isLineByLineMode,callback:function(t){e.isLineByLineMode=t},expression:"isLineByLineMode"}},[e._v(" Line Selection "),t("b-icon",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.title",value:"Switch between normal text selection or selecting individual log lines for copying.",expression:"'Switch between normal text selection or selecting individual log lines for copying.'",modifiers:{hover:!0,title:!0}}],staticClass:"icon-tooltip",attrs:{icon:"info-circle"}})],1),t("b-form-checkbox",{staticClass:"mb-1",attrs:{switch:""},model:{value:e.autoScroll,callback:function(t){e.autoScroll=t},expression:"autoScroll"}},[e._v(" Auto-scroll "),t("b-icon",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.title",value:"Enable or disable automatic scrolling to the latest logs.",expression:"'Enable or disable automatic scrolling to the latest logs.'",modifiers:{hover:!0,title:!0}}],staticClass:"icon-tooltip",attrs:{icon:"info-circle"}})],1)],1)],1)]),t("div",{ref:"logsContainer",staticClass:"code-container",class:{"line-by-line-mode":e.isLineByLineMode}},[e.filteredLogs.length>0?t("button",{ref:"copyButton",staticClass:"log-copy-button ml-2",attrs:{type:"button",disabled:e.copied},on:{click:e.copyCode}},[t("b-icon",{attrs:{icon:e.copied?"check":"back"}}),e._v(" "+e._s(e.copied?"Copied!":"Copy")+" ")],1):e._e(),e.selectedLog.length>0&&e.filteredLogs.length>0?t("button",{staticClass:"log-copy-button ml-2",attrs:{type:"button"},on:{click:e.unselectText}},[t("b-icon",{attrs:{icon:"exclude"}}),e._v(" Unselect ")],1):e._e(),e.filteredLogs.length>0?t("button",{staticClass:"download-button",attrs:{disabled:e.downloadingLog,type:"button"},on:{click:function(t){return e.downloadApplicationLog(e.selectedApp?`${e.selectedApp}_${e.appSpecification.name}`:e.appSpecification.name)}}},[t("b-icon",{class:{"spin-icon-l":e.downloadingLog},attrs:{icon:e.downloadingLog?"arrow-repeat":"download"}}),e._v(" Download ")],1):e._e(),e.filteredLogs.length>0?t("div",e._l(e.filteredLogs,(function(a){return t("div",{directives:[{name:"sane-html",rawName:"v-sane-html",value:e.formatLog(a),expression:"formatLog(log)"}],key:e.extractTimestamp(a),staticClass:"log-entry",class:{selected:e.selectedLog.includes(e.extractTimestamp(a))},on:{click:function(t){e.isLineByLineMode&&e.toggleLogSelection(a)}}})})),0):""!==e.filterKeyword.trim()?t("div",{staticClass:"no-matches"},[e._v(" No log line matching the '"+e._s(e.filterKeyword)+"' filter. ")]):e.noLogs?t("div",{staticClass:"no-matches"},[e._v(" No log records found. ")]):e._e()])],1)]),t("b-tab",{attrs:{title:"Control"}},[t("b-row",{staticClass:"match-height"},[t("b-col",{attrs:{xs:"6"}},[t("b-card",{attrs:{title:"Control"}},[t("b-card-text",{staticClass:"mb-2"},[e._v(" General options to control running status of App. ")]),t("div",{staticClass:"text-center"},[t("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"mx-1 my-1",attrs:{id:"start-app",variant:"success","aria-label":"Start App"}},[e._v(" Start App ")]),t("confirm-dialog",{attrs:{target:"start-app","confirm-button":"Start App"},on:{confirm:function(t){return e.startApp(e.appName)}}}),t("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"mx-1 my-1",attrs:{id:"stop-app",variant:"success","aria-label":"Stop App"}},[e._v(" Stop App ")]),t("confirm-dialog",{attrs:{target:"stop-app","confirm-button":"Stop App"},on:{confirm:function(t){return e.stopApp(e.appName)}}}),t("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"mx-1 my-1",attrs:{id:"restart-app",variant:"success","aria-label":"Restart App"}},[e._v(" Restart App ")]),t("confirm-dialog",{attrs:{target:"restart-app","confirm-button":"Restart App"},on:{confirm:function(t){return e.restartApp(e.appName)}}})],1)],1)],1),t("b-col",{attrs:{xs:"6"}},[t("b-card",{attrs:{title:"Pause"}},[t("b-card-text",{staticClass:"mb-2"},[e._v(" The Pause command suspends all processes in the specified App. ")]),t("div",{staticClass:"text-center"},[t("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"mx-1 my-1",attrs:{id:"pause-app",variant:"success","aria-label":"Pause App"}},[e._v(" Pause App ")]),t("confirm-dialog",{attrs:{target:"pause-app","confirm-button":"Pause App"},on:{confirm:function(t){return e.pauseApp(e.appName)}}}),t("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"mx-1 my-1",attrs:{id:"unpause-app",variant:"success","aria-label":"Unpause App"}},[e._v(" Unpause App ")]),t("confirm-dialog",{attrs:{target:"unpause-app","confirm-button":"Unpause App"},on:{confirm:function(t){return e.unpauseApp(e.appName)}}})],1)],1)],1),t("b-col",{attrs:{xs:"6"}},[t("b-card",{attrs:{title:"Monitoring"}},[t("b-card-text",{staticClass:"mb-2"},[e._v(" Controls Application Monitoring ")]),t("div",{staticClass:"text-center"},[t("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"mx-1 my-1",attrs:{id:"start-monitoring",variant:"success","aria-label":"Start Monitoring"}},[e._v(" Start Monitoring ")]),t("confirm-dialog",{attrs:{target:"start-monitoring","confirm-button":"Start Monitoring"},on:{confirm:function(t){return e.startMonitoring(e.appName)}}}),t("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"mx-1 my-1",attrs:{id:"stop-monitoring",variant:"success","aria-label":"Stop Monitoring"}},[e._v(" Stop Monitoring ")]),t("confirm-dialog",{attrs:{target:"stop-monitoring","confirm-button":"Stop Monitoring"},on:{confirm:function(t){return e.stopMonitoring(e.appName,!1)}}}),t("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"mx-1 my-1",attrs:{id:"stop-monitoring-delete",variant:"success","aria-label":"Stop Monitoring and Delete Monitored Data"}},[e._v(" Stop Monitoring and Delete Monitored Data ")]),t("confirm-dialog",{attrs:{target:"stop-monitoring-delete","confirm-button":"Stop Monitoring"},on:{confirm:function(t){return e.stopMonitoring(e.appName,!0)}}})],1)],1)],1)],1),t("b-row",{staticClass:"match-height"},[t("b-col",{attrs:{xs:"6"}},[t("b-card",{attrs:{title:"Redeploy"}},[t("b-card-text",{staticClass:"mb-2"},[e._v(" Redeployes your application. Hard redeploy removes persistant data storage. ")]),t("div",{staticClass:"text-center"},[t("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"mx-1 my-1",attrs:{id:"redeploy-app-soft",variant:"success","aria-label":"Soft Redeploy App"}},[e._v(" Soft Redeploy App ")]),t("confirm-dialog",{attrs:{target:"redeploy-app-soft","confirm-button":"Redeploy"},on:{confirm:function(t){return e.redeployAppSoft(e.appName)}}}),t("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"mx-1 my-1",attrs:{id:"redeploy-app-hard",variant:"success","aria-label":"Hard Redeploy App"}},[e._v(" Hard Redeploy App ")]),t("confirm-dialog",{attrs:{target:"redeploy-app-hard","confirm-button":"Redeploy"},on:{confirm:function(t){return e.redeployAppHard(e.appName)}}})],1)],1)],1),t("b-col",{attrs:{xs:"6"}},[t("b-card",{attrs:{title:"Remove"}},[t("b-card-text",{staticClass:"mb-2"},[e._v(" Stops, uninstalls and removes all App data from this Flux node. ")]),t("div",{staticClass:"text-center"},[t("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"mx-1 my-1",attrs:{id:"remove-app",variant:"success","aria-label":"Remove App"}},[e._v(" Remove App ")]),t("confirm-dialog",{attrs:{target:"remove-app","confirm-button":"Remove App"},on:{confirm:function(t){return e.removeApp(e.appName)}}})],1)],1)],1)],1)],1),e.windowWidth>860?t("b-tab",{attrs:{title:"Component Control",disabled:!e.isApplicationInstalledLocally||e.appSpecification.version<=3}},e._l(e.appSpecification.compose,(function(a,s){return t("b-card",{key:s},[t("h4",[e._v(e._s(a.name)+" Component")]),t("b-row",{staticClass:"match-height"},[t("b-col",{attrs:{xs:"6"}},[t("b-card",{attrs:{title:"Control"}},[t("b-card-text",{staticClass:"mb-2"},[e._v(" General options to control running status of Component. ")]),t("div",{staticClass:"text-center"},[t("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"mx-1 my-1",attrs:{id:`start-app-${a.name}_${e.appSpecification.name}`,variant:"success","aria-label":"Start Component"}},[e._v(" Start Component ")]),t("confirm-dialog",{attrs:{target:`start-app-${a.name}_${e.appSpecification.name}`,"confirm-button":"Start Component"},on:{confirm:function(t){return e.startApp(`${a.name}_${e.appSpecification.name}`)}}}),t("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"mx-1 my-1",attrs:{id:`stop-app-${a.name}_${e.appSpecification.name}`,variant:"success","aria-label":"Stop Component"}},[e._v(" Stop Component ")]),t("confirm-dialog",{attrs:{target:`stop-app-${a.name}_${e.appSpecification.name}`,"confirm-button":"Stop App"},on:{confirm:function(t){return e.stopApp(`${a.name}_${e.appSpecification.name}`)}}}),t("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"mx-1 my-1",attrs:{id:`restart-app-${a.name}_${e.appSpecification.name}`,variant:"success","aria-label":"Restart Component"}},[e._v(" Restart Component ")]),t("confirm-dialog",{attrs:{target:`restart-app-${a.name}_${e.appSpecification.name}`,"confirm-button":"Restart Component"},on:{confirm:function(t){return e.restartApp(`${a.name}_${e.appSpecification.name}`)}}})],1)],1)],1),t("b-col",{attrs:{xs:"6"}},[t("b-card",{attrs:{title:"Pause"}},[t("b-card-text",{staticClass:"mb-2"},[e._v(" The Pause command suspends all processes in the specified Component. ")]),t("div",{staticClass:"text-center"},[t("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"mx-1 my-1",attrs:{id:`pause-app-${a.name}_${e.appSpecification.name}`,variant:"success","aria-label":"Pause Component"}},[e._v(" Pause Component ")]),t("confirm-dialog",{attrs:{target:`pause-app-${a.name}_${e.appSpecification.name}`,"confirm-button":"Pause Component"},on:{confirm:function(t){return e.pauseApp(`${a.name}_${e.appSpecification.name}`)}}}),t("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"mx-1 my-1",attrs:{id:`unpause-app-${a.name}_${e.appSpecification.name}`,variant:"success","aria-label":"Unpause Component"}},[e._v(" Unpause Component ")]),t("confirm-dialog",{attrs:{target:`unpause-app-${a.name}_${e.appSpecification.name}`,"confirm-button":"Unpause Component"},on:{confirm:function(t){return e.unpauseApp(`${a.name}_${e.appSpecification.name}`)}}})],1)],1)],1),t("b-col",{attrs:{xs:"6"}},[t("b-card",{attrs:{title:"Monitoring"}},[t("b-card-text",{staticClass:"mb-2"},[e._v(" Controls Component Monitoring ")]),t("div",{staticClass:"text-center"},[t("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"mx-1 my-1",attrs:{id:`start-monitoring-${a.name}_${e.appSpecification.name}`,variant:"success","aria-label":"Start Monitoring"}},[e._v(" Start Monitoring ")]),t("confirm-dialog",{attrs:{target:`start-monitoring-${a.name}_${e.appSpecification.name}`,"confirm-button":"Start Monitoring"},on:{confirm:function(t){return e.startMonitoring(`${a.name}_${e.appSpecification.name}`)}}}),t("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"mx-1 my-1",attrs:{id:`stop-monitoring-${a.name}_${e.appSpecification.name}`,variant:"success","aria-label":"Stop Monitoring"}},[e._v(" Stop Monitoring ")]),t("confirm-dialog",{attrs:{target:`stop-monitoring-${a.name}_${e.appSpecification.name}`,"confirm-button":"Stop Monitoring"},on:{confirm:function(t){return e.stopMonitoring(`${a.name}_${e.appSpecification.name}`,!1)}}}),t("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"mx-1 my-1",attrs:{id:`stop-monitoring-delete-${a.name}_${e.appSpecification.name}`,variant:"success","aria-label":"Stop Monitoring and Delete Monitored Data"}},[e._v(" Stop Monitoring and Delete Monitored Data ")]),t("confirm-dialog",{attrs:{target:`stop-monitoring-delete-${a.name}_${e.appSpecification.name}`,"confirm-button":"Stop Monitoring"},on:{confirm:function(t){return e.stopMonitoring(`${a.name}_${e.appSpecification.name}`,!0)}}})],1)],1)],1)],1)],1)})),1):e._e(),t("b-tab",{attrs:{title:"Backup/Restore",disabled:!e.appSpecification?.compose}},[t("div",[t("b-card",{attrs:{"no-body":""}},[t("b-tabs",{attrs:{pills:"",card:""}},[t("b-tab",{staticStyle:{margin:"0","padding-top":"0px"},attrs:{title:"Backup"}},[t("div",{staticClass:"mb-2",staticStyle:{border:"1px solid #ccc","border-radius":"8px",height:"45px",padding:"12px","line-height":"0px"}},[t("h5",[t("b-icon",{staticClass:"mr-1",attrs:{icon:"back"}}),e._v(" Manual Backup Container Data ")],1)]),t("div",{staticClass:"mb-2"},[t("b-form-group",[t("b-form-tags",{attrs:{id:"tags-component-select",size:"lg","add-on-change":"","no-outer-focus":""},scopedSlots:e._u([{key:"default",fn:function({tags:a,inputAttrs:s,inputHandlers:i,disabled:o,removeTag:r}){return[a.length>0?t("ul",{staticClass:"list-inline d-inline-block mb-2"},e._l(a,(function(a){return t("li",{key:a,staticClass:"list-inline-item"},[t("b-form-tag",{attrs:{title:a,disabled:o,variant:"primary"},on:{remove:function(e){return r(a)}}},[e._v(" "+e._s(a)+" ")])],1)})),0):e._e(),t("b-form-select",e._g(e._b({attrs:{disabled:o||0===e.componentAvailableOptions?.length||1===e.components?.length,options:e.componentAvailableOptions},scopedSlots:e._u([{key:"first",fn:function(){return[t("option",{attrs:{disabled:"",value:""}},[e._v(" Select the application component(s) you would like to backup ")])]},proxy:!0}],null,!0)},"b-form-select",s,!1),i))]}}]),model:{value:e.selectedBackupComponents,callback:function(t){e.selectedBackupComponents=t},expression:"selectedBackupComponents"}})],1)],1),e.components?.length>1?t("b-button",{staticClass:"mr-1",attrs:{variant:"outline-primary"},on:{click:e.addAllTags}},[t("b-icon",{staticClass:"mr-1",attrs:{scale:"0.9",icon:"check2-square"}}),e._v(" Select all ")],1):e._e(),t("b-button",{staticStyle:{"white-space":"nowrap"},attrs:{disabled:0===e.selectedBackupComponents.length||!0===e.backupProgress,variant:"outline-primary"},on:{click:function(t){return e.createBackup(e.appName,e.selectedBackupComponents)}}},[t("b-icon",{staticClass:"mr-1",attrs:{scale:"0.9",icon:"back"}}),e._v(" Create backup ")],1),t("br"),t("div",{staticClass:"mt-1"},[!0===e.backupProgress?t("div",{staticClass:"mb-2 mt-2 w-100",staticStyle:{margin:"0 auto",padding:"12px",border:"1px solid #eaeaea","border-radius":"8px","box-shadow":"0 4px 8px rgba(0, 0, 0, 0.1)","text-align":"center"}},[t("h5",{staticStyle:{"font-size":"16px","margin-bottom":"5px"}},[!0===e.backupProgress?t("span",[t("b-spinner",{attrs:{small:""}}),e._v(" "+e._s(e.tarProgress)+" ")],1):e._e()]),e._l(e.computedFileProgress,(function(a,s){return a.progress>0?t("b-progress",{key:s,staticClass:"mt-1",staticStyle:{height:"16px"},attrs:{max:100}},[t("b-progress-bar",{staticStyle:{"font-size":"14px"},attrs:{value:a.progress,label:`${a.fileName} - ${a.progress.toFixed(2)}%`}})],1):e._e()}))],2):e._e()]),e.backupList?.length>0&&!1===e.backupProgress?t("div",[t("div",{staticClass:"mb-1 text-right"},[t("b-dropdown",{staticClass:"mr-1",staticStyle:{"max-height":"38px","min-width":"100px","white-space":"nowrap"},attrs:{text:"Select",variant:"outline-primary"},scopedSlots:e._u([{key:"button-content",fn:function(){return[t("b-icon",{staticClass:"mr-1",attrs:{scale:"0.9",icon:"check2-square"}}),e._v(" Select ")]},proxy:!0}],null,!1,1960591975)},[t("b-dropdown-item",{attrs:{disabled:e.backupToUpload?.length===e.backupList?.length},on:{click:e.selectAllRows}},[t("b-icon",{staticClass:"mr-1",attrs:{scale:"0.9",icon:"check2-circle"}}),e._v(" Select all ")],1),t("b-dropdown-item",{attrs:{disabled:0===e.backupToUpload?.length},on:{click:e.clearSelected}},[t("b-icon",{staticClass:"mr-1",attrs:{scale:"0.7",icon:"square"}}),e._v(" Select none ")],1)],1),t("b-dropdown",{staticClass:"mr-1",staticStyle:{"max-height":"38px","min-width":"100px","white-space":"nowrap"},attrs:{text:"Download",variant:"outline-primary"},scopedSlots:e._u([{key:"button-content",fn:function(){return[t("b-icon",{staticClass:"mr-1",attrs:{scale:"0.9",icon:"download"}}),e._v(" Download ")]},proxy:!0}],null,!1,2545655511)},[t("b-dropdown-item",{attrs:{disabled:0===e.backupToUpload?.length},on:{click:function(t){return e.downloadAllBackupFiles(e.backupToUpload)}}},[t("b-icon",{staticClass:"mr-1",attrs:{scale:"0.7",icon:"download"}}),e._v(" Download selected ")],1),t("b-dropdown-item",{on:{click:function(t){return e.downloadAllBackupFiles(e.backupList)}}},[t("b-icon",{staticClass:"mr-1",attrs:{scale:"0.7",icon:"download"}}),e._v(" Download all ")],1)],1),t("b-button",{staticStyle:{"max-height":"38px","min-width":"100px","white-space":"nowrap"},attrs:{variant:"outline-danger"},on:{click:function(t){return e.deleteLocalBackup(null,e.backupList)}}},[t("b-icon",{staticClass:"mr-1",attrs:{scale:"0.9",icon:"trash"}}),e._v(" Remove all ")],1)],1),e.backupList?.length>0?t("b-table",{ref:"selectableTable",staticClass:"mb-0",attrs:{items:e.backupList,fields:[...e.localBackupTableFields,{key:"actions",label:"Actions",thStyle:{width:"5%"},class:"text-center"}],stacked:"md","show-empty":"",bordered:"","select-mode":"multi",selectable:"","selected-variant":"outline-dark",hover:"",small:""},on:{"row-selected":e.onRowSelected},scopedSlots:e._u([{key:"thead-top",fn:function(){return[t("b-tr",[t("b-td",{staticClass:"text-center",attrs:{colspan:"6"}},[t("b",[e._v(" List of available backups on the local machine (backups are automatically deleted 24 hours after creation) ")])])],1)]},proxy:!0},{key:"cell(create)",fn:function(t){return[e._v(" "+e._s(e.formatDateTime(t.item.create))+" ")]}},{key:"cell(expire)",fn:function(t){return[e._v(" "+e._s(e.formatDateTime(t.item.create,!0))+" ")]}},{key:"cell(isActive)",fn:function({rowSelected:a}){return[a?[t("span",{staticStyle:{color:"green"},attrs:{"aria-hidden":"true"}},[t("b-icon",{attrs:{icon:"check-square-fill",scale:"1",variant:"success"}})],1),t("span",{staticClass:"sr-only"},[e._v("Selected")])]:[t("span",{staticStyle:{color:"white"},attrs:{"aria-hidden":"true"}},[t("b-icon",{attrs:{icon:"square",scale:"1",variant:"secondary"}})],1),t("span",{staticClass:"sr-only"},[e._v("Not selected")])]]}},{key:"cell(file_size)",fn:function(t){return[e._v(" "+e._s(e.addAndConvertFileSizes(t.item.file_size))+" ")]}},{key:"cell(actions)",fn:function(a){return[t("div",{staticClass:"d-flex justify-content-center align-items-center"},[t("b-button",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.top",value:"Remove file",expression:"'Remove file'",modifiers:{hover:!0,top:!0}}],staticClass:"d-flex justify-content-center align-items-center mr-1 custom-button",attrs:{id:`delete-local-backup-${a.item.component}_${e.backupList[a.index].create}`,variant:"outline-danger"}},[t("b-icon",{staticClass:"d-flex justify-content-center align-items-center",attrs:{scale:"0.9",icon:"trash"}})],1),t("confirm-dialog",{attrs:{target:`delete-local-backup-${a.item.component}_${e.backupList[a.index].create}`,"confirm-button":"Remove File"},on:{confirm:function(t){return e.deleteLocalBackup(a.item.component,e.backupList,e.backupList[a.index].file)}}}),t("b-button",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.top",value:"Download file",expression:"'Download file'",modifiers:{hover:!0,top:!0}}],staticClass:"d-flex justify-content-center align-items-center custom-button",attrs:{variant:"outline-primary"},on:{click:function(t){return e.downloadAllBackupFiles([{component:a.item.component,file:e.backupList[a.index].file}])}}},[t("b-icon",{staticClass:"d-flex justify-content-center align-items-center",attrs:{scale:"1",icon:"cloud-arrow-down"}})],1)],1)]}}],null,!1,1174065662)}):e._e(),t("span",{staticStyle:{"font-size":"0.9rem"}},[e._v("Select application component(s) you would like to upload")]),e.showProgressBar?t("b-card-text",[t("div",{staticClass:"mt-1"},[e.fileProgress.length>0?t("div",{staticClass:"mb-2 mt-2 w-100",staticStyle:{margin:"0 auto",padding:"12px",border:"1px solid #eaeaea","border-radius":"8px","box-shadow":"0 4px 8px rgba(0, 0, 0, 0.1)","text-align":"center"}},[t("h5",{staticStyle:{"font-size":"16px","margin-bottom":"5px"}},[e.allDownloadsCompleted()?t("span",[e._v(" Download Completed ")]):t("span",[t("b-spinner",{attrs:{small:""}}),e._v(" Downloading... ")],1)]),e._l(e.computedFileProgress,(function(a,s){return a.progress>0?t("b-progress",{key:s,staticClass:"mt-1",staticStyle:{height:"16px"},attrs:{max:100}},[t("b-progress-bar",{staticStyle:{"font-size":"14px"},attrs:{value:a.progress,label:`${a.fileName} - ${a.progress.toFixed(2)}%`}})],1):e._e()}))],2):e._e()])]):e._e(),e.backupList?.length>0?t("div",{staticClass:"mt-2"},[t("div",{staticClass:"mb-2 mt-3",staticStyle:{border:"1px solid #ccc","border-radius":"8px",height:"45px",padding:"12px","line-height":"0px"}},[t("h5",[t("b-icon",{attrs:{icon:"gear-fill"}}),e._v(" Choose your storage method")],1)]),t("b-form-radio-group",{attrs:{id:"btn-radios-2",options:e.storageMethod,"button-variant":"outline-primary",name:"radio-btn-outline",disable:e.storageMethod,buttons:""},model:{value:e.selectedStorageMethod,callback:function(t){e.selectedStorageMethod=t},expression:"selectedStorageMethod"}}),"flux"===e.selectedStorageMethod?t("div",[!0===e.sigInPrivilage?t("div",{staticClass:"mb-2"},[t("ul",{staticClass:"mt-2",staticStyle:{"font-size":"0.9rem"}},[t("li",[e._v("Free FluxDrive backups! Up to 10GB total to use per user")]),t("li",[e._v("FluxDrive backups can be downloaded on Restore page")])]),t("b-button",{staticClass:"mt-2",attrs:{disabled:!0===e.uploadProgress||0===e.backupToUpload.length,block:"",variant:"outline-primary"},on:{click:function(t){return e.uploadToFluxDrive()}}},[t("b-icon",{staticClass:"mr-1",attrs:{scale:"1.2",icon:"cloud-arrow-up"}}),e._v(" Upload Selected Components To FluxDrive ")],1)],1):e._e(),!1===e.sigInPrivilage?t("b-button",{staticClass:"mt-1 w-100",attrs:{variant:"outline-primary"},on:{click:e.removeAllBackup}},[t("b-icon",{staticClass:"mr-1",attrs:{scale:"1.5",icon:"cloud-arrow-up"}}),e._v(" Export ")],1):e._e()],1):e._e(),"google"===e.selectedStorageMethod?t("div",[t("b-button",{staticClass:"mt-1 w-100",attrs:{variant:"outline-primary"},on:{click:e.removeAllBackup}},[t("b-icon",{staticClass:"mr-1",attrs:{scale:"1.5",icon:"cloud-arrow-up"}}),e._v(" Export ")],1)],1):e._e(),e.showUploadProgressBar?t("b-card-text",[t("div",{staticClass:"mt-1"},[e.fileProgress.length>0?t("div",{staticClass:"mb-2 mt-2 w-100",staticStyle:{margin:"0 auto",padding:"12px",border:"1px solid #eaeaea","border-radius":"8px","box-shadow":"0 4px 8px rgba(0, 0, 0, 0.1)","text-align":"center"}},[t("h5",{staticStyle:{"font-size":"16px","margin-bottom":"5px"}},[t("span",[t("b-spinner",{attrs:{small:""}}),e._v(" "+e._s(e.uploadStatus)+" ")],1)]),e._l(e.computedFileProgress,(function(a,s){return a.progress>0?t("b-progress",{key:s,staticClass:"mt-1",staticStyle:{height:"16px"},attrs:{max:100}},[t("b-progress-bar",{staticStyle:{"font-size":"14px"},attrs:{value:a.progress,label:`${a.fileName} - ${a.progress.toFixed(2)}%`}})],1):e._e()}))],2):e._e()])]):e._e(),e.showFluxDriveProgressBar?t("b-card-text",[t("div",{staticClass:"mt-1"},[e.fileProgressFD.length>0?t("div",{staticClass:"mb-2 mt-2 w-100",staticStyle:{margin:"0 auto",padding:"12px",border:"1px solid #eaeaea","border-radius":"8px","box-shadow":"0 4px 8px rgba(0, 0, 0, 0.1)","text-align":"center"}},[t("h5",{staticStyle:{"font-size":"16px","margin-bottom":"5px"}},[t("span",[t("b-spinner",{attrs:{small:""}}),e._v(" "+e._s(e.fluxDriveUploadStatus)+" ")],1)]),e._l(e.computedFileProgressFD,(function(a,s){return a.progress>0?t("b-progress",{key:s,staticClass:"mt-1",staticStyle:{height:"16px"},attrs:{max:100}},[t("b-progress-bar",{staticStyle:{"font-size":"14px"},attrs:{value:a.progress,label:`${a.fileName} - ${a.progress.toFixed(2)}%`}})],1):e._e()}))],2):e._e()])]):e._e()],1):e._e()],1):e._e()],1),t("b-tab",{staticStyle:{margin:"0","padding-top":"0px"},attrs:{title:"Restore"},on:{click:e.handleRadioClick}},[t("div",{staticClass:"mb-2",staticStyle:{border:"1px solid #ccc","border-radius":"8px",height:"45px",padding:"12px","line-height":"0px"}},[t("h5",[t("b-icon",{staticClass:"mr-1",attrs:{scale:"1.4",icon:"cloud-download"}}),e._v(" Select restore method ")],1)]),t("b-form-group",{staticClass:"mb-2"},[t("b-row",[t("b-col",{staticClass:"d-flex align-items-center",staticStyle:{height:"38px"}},[t("b-form-radio-group",{staticStyle:{"max-height":"38px","min-width":"100px","white-space":"nowrap"},attrs:{id:"btn-radios-2",options:e.restoreOptions,disable:e.restoreOptions,"button-variant":"outline-primary",name:"radio-btn-outline",buttons:""},on:{change:e.handleRadioClick},model:{value:e.selectedRestoreOption,callback:function(t){e.selectedRestoreOption=t},expression:"selectedRestoreOption"}})],1),t("b-col",{staticClass:"text-right",staticStyle:{height:"38px"}},["FluxDrive"===e.selectedRestoreOption?t("b-button",{staticStyle:{"max-height":"38px","min-width":"100px","white-space":"nowrap"},attrs:{variant:"outline-success"},on:{click:e.getFluxDriveBackupList}},[t("b-icon",{staticClass:"mr-1",attrs:{scale:"1.2",icon:"arrow-repeat"}}),e._v("Refresh ")],1):e._e()],1)],1)],1),"FluxDrive"===e.selectedRestoreOption?t("div",[!0===e.sigInPrivilage?t("div",[t("div",[t("b-input-group",{staticClass:"mb-2"},[t("b-input-group-prepend",{attrs:{"is-text":""}},[t("b-icon",{attrs:{icon:"funnel-fill"}})],1),t("b-form-select",{attrs:{options:e.restoreComponents},model:{value:e.nestedTableFilter,callback:function(t){e.nestedTableFilter=t},expression:"nestedTableFilter"}})],1)],1),t("b-table",{key:e.tableBackup,attrs:{items:e.checkpoints,fields:e.backupTableFields,stacked:"md","show-empty":"",bordered:"",small:"","empty-text":"No records available. Please export your backup to FluxDrive.","sort-by":e.sortbackupTableKey,"sort-desc":e.sortbackupTableDesc,"tbody-tr-class":e.rowClassFluxDriveBackups},on:{"update:sortBy":function(t){e.sortbackupTableKey=t},"update:sort-by":function(t){e.sortbackupTableKey=t},"update:sortDesc":function(t){e.sortbackupTableDesc=t},"update:sort-desc":function(t){e.sortbackupTableDesc=t},filtered:e.onFilteredBackup},scopedSlots:e._u([{key:"thead-top",fn:function(){return[t("b-tr",[t("b-td",{staticClass:"text-center",attrs:{colspan:"6",variant:"dark"}},[t("b-icon",{staticClass:"mr-2",attrs:{scale:"1.2",icon:"back"}}),t("b",[e._v("Backups Inventory")])],1)],1)]},proxy:!0},{key:"cell(actions)",fn:function(a){return[t("div",{staticClass:"d-flex justify-content-center align-items-center"},[t("b-button",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.top",value:"Remove Backup(s)",expression:"'Remove Backup(s)'",modifiers:{hover:!0,top:!0}}],staticClass:"d-flex justify-content-center align-items-center mr-1",staticStyle:{width:"15px",height:"25px"},attrs:{id:`remove-checkpoint-${a.item.timestamp}`,variant:"outline-danger"}},[t("b-icon",{staticClass:"d-flex justify-content-center align-items-center",attrs:{scale:"0.9",icon:"trash"}})],1),t("confirm-dialog",{attrs:{target:`remove-checkpoint-${a.item.timestamp}`,"confirm-button":"Remove Backup(s)"},on:{confirm:function(t){return e.deleteRestoreBackup(a.item.component,e.checkpoints,a.item.timestamp)}}}),t("b-button",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.top",value:"Add all to Restore List",expression:"'Add all to Restore List'",modifiers:{hover:!0,top:!0}}],staticClass:"d-flex justify-content-center align-items-center",staticStyle:{width:"15px",height:"25px"},attrs:{variant:"outline-primary"},on:{click:function(t){return e.addAllBackupComponents(a.item.timestamp)}}},[t("b-icon",{staticClass:"d-flex justify-content-center align-items-center",attrs:{scale:"0.9",icon:"save"}})],1)],1)]}},{key:"cell(timestamp)",fn:function(a){return[t("kbd",{staticClass:"alert-info no-wrap"},[t("b-icon",{attrs:{scale:"1.2",icon:"hdd"}}),e._v("  backup_"+e._s(a.item.timestamp))],1)]}},{key:"cell(time)",fn:function(t){return[e._v(" "+e._s(e.formatDateTime(t.item.timestamp))+" ")]}},{key:"row-details",fn:function(a){return[t("b-table",{key:e.tableBackup,staticClass:"backups-table",attrs:{stacked:"md","show-empty":"",bordered:"",hover:"",small:"",items:a.item.components.filter((t=>Object.values(t).some((t=>String(t).toLowerCase().includes(e.nestedTableFilter.toLowerCase()))))),fields:e.componentsTable1},scopedSlots:e._u([{key:"cell(file_url)",fn:function(a){return[t("div",{staticClass:"ellipsis-wrapper"},[t("b-link",{attrs:{href:a.item.file_url,target:"_blank",rel:"noopener noreferrer"}},[e._v(" "+e._s(a.item.file_url)+" ")])],1)]}},{key:"cell(file_size)",fn:function(t){return[e._v(" "+e._s(e.addAndConvertFileSizes(t.item.file_size))+" ")]}},{key:"cell(actions)",fn:function(s){return[t("b-button",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.top",value:"Add to Restore List",expression:"'Add to Restore List'",modifiers:{hover:!0,top:!0}}],staticClass:"d-flex justify-content-center align-items-center",staticStyle:{margin:"auto",width:"95px",height:"25px",display:"flex"},attrs:{variant:"outline-primary"},on:{click:function(t){return e.addComponent(s.item,a.item.timestamp)}}},[t("b-icon",{staticClass:"d-flex justify-content-center align-items-center",attrs:{scale:"0.7",icon:"plus-lg"}})],1)]}}],null,!0)})]}}],null,!1,1747254148)}),e.newComponents.length>0?t("b-table",{staticClass:"mt-1 backups-table",attrs:{items:e.newComponents,fields:[...e.newComponentsTableFields,{key:"actions",label:"Actions",thStyle:{width:"20%"},class:"text-center"}],stacked:"md","show-empty":"",bordered:"",small:""},scopedSlots:e._u([{key:"thead-top",fn:function(){return[t("b-tr",[t("b-td",{staticClass:"text-center",attrs:{colspan:"6",variant:"dark"}},[t("b-icon",{staticClass:"mr-1",attrs:{scale:"1.2",icon:"life-preserver"}}),t("b",[e._v("Restore Overview")])],1)],1)]},proxy:!0},{key:"cell(timestamp)",fn:function(t){return[e._v(" "+e._s(e.formatDateTime(t.item.timestamp))+" ")]}},{key:"cell(file_url)",fn:function(a){return[t("div",{staticClass:"ellipsis-wrapper"},[t("b-link",{attrs:{href:a.item.file_url,target:"_blank",rel:"noopener noreferrer"}},[e._v(" "+e._s(a.item.file_url)+" ")])],1)]}},{key:"cell(file_size)",fn:function(t){return[e._v(" "+e._s(e.addAndConvertFileSizes(t.item.file_size))+" ")]}},{key:"cell(actions)",fn:function(a){return[t("div",{staticClass:"d-flex justify-content-center align-items-center"},[t("b-button",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.top",value:"Remove restore job",expression:"'Remove restore job'",modifiers:{hover:!0,top:!0}}],staticClass:"d-flex justify-content-center align-items-center",staticStyle:{width:"95px",height:"25px"},attrs:{variant:"outline-danger"},on:{click:function(t){return e.deleteItem(a.index,e.newComponents)}}},[t("b-icon",{staticClass:"d-flex justify-content-center align-items-center",attrs:{scale:"0.9",icon:"trash"}})],1)],1)]}},{key:"custom-foot",fn:function(){return[t("b-tr",[t("b-td",{staticClass:"text-right",attrs:{colspan:"3",variant:"dark"}}),t("b-td",{staticStyle:{"text-align":"center","vertical-align":"middle"},attrs:{colspan:"2",variant:"dark"}},[t("b-icon",{staticClass:"mr-2",attrs:{icon:"hdd",scale:"1.4"}}),e._v(" "+e._s(e.addAndConvertFileSizes(e.totalArchiveFileSize(e.newComponents)))+" ")],1)],1)]},proxy:!0}],null,!1,3243908673)}):e._e(),t("b-alert",{staticClass:"mt-1 rounded-0 d-flex align-items-center justify-content-center",staticStyle:{"z-index":"1000"},attrs:{variant:e.alertVariant,solid:"true",dismissible:""},model:{value:e.showTopFluxDrive,callback:function(t){e.showTopFluxDrive=t},expression:"showTopFluxDrive"}},[t("h5",{staticClass:"mt-1 mb-1"},[e._v(" "+e._s(e.alertMessage)+" ")])]),e.newComponents?.length>0&&!e.restoringFromFluxDrive?t("b-button",{staticClass:"mt-2",attrs:{block:"",variant:"outline-primary"},on:{click:function(t){return e.restoreFromFluxDrive(e.newComponents)}}},[t("b-icon",{staticClass:"mr-1",attrs:{icon:"arrow-clockwise",scale:"1.2"}}),e._v("Restore ")],1):e._e(),!0===e.restoringFromFluxDrive?t("div",{staticClass:"mb-2 mt-2 w-100",staticStyle:{margin:"0 auto",padding:"12px",border:"1px solid #eaeaea","border-radius":"8px","box-shadow":"0 4px 8px rgba(0, 0, 0, 0.1)","text-align":"center"}},[t("h5",{staticStyle:{"font-size":"16px","margin-bottom":"5px"}},[!0===e.restoringFromFluxDrive?t("span",[t("b-spinner",{attrs:{small:""}}),e._v(" "+e._s(e.restoreFromFluxDriveStatus)+" ")],1):e._e()])]):e._e()],1):e._e()]):e._e(),"Upload File"===e.selectedRestoreOption?t("div",[t("div",[t("b-input-group",{staticClass:"mb-0"},[t("b-input-group-prepend",{attrs:{"is-text":""}},[t("b-icon",{attrs:{icon:"folder-plus"}})],1),t("b-form-select",{staticStyle:{"border-radius":"0"},attrs:{options:e.components,disabled:e.remoteFileComponents},scopedSlots:e._u([{key:"first",fn:function(){return[t("b-form-select-option",{attrs:{value:null,disabled:""}},[e._v(" - Select component - ")])]},proxy:!0}],null,!1,2230972607),model:{value:e.restoreRemoteFile,callback:function(t){e.restoreRemoteFile=t},expression:"restoreRemoteFile"}}),t("b-input-group-append",[t("b-button",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.top",value:"Choose file to upload",expression:"'Choose file to upload'",modifiers:{hover:!0,top:!0}}],attrs:{disabled:null===e.restoreRemoteFile,text:"Button",size:"sm",variant:"outline-primary"},on:{click:e.addRemoteFile}},[t("b-icon",{attrs:{icon:"cloud-arrow-up",scale:"1.5"}})],1)],1)],1)],1),t("div",[t("input",{ref:"fileselector",staticClass:"flux-share-upload-input",staticStyle:{display:"none"},attrs:{id:"file-selector",type:"file"},on:{input:e.handleFiles}})]),t("b-alert",{staticClass:"mt-1 rounded-0 d-flex align-items-center justify-content-center",staticStyle:{"z-index":"1000"},attrs:{variant:e.alertVariant,solid:"true",dismissible:""},model:{value:e.showTopUpload,callback:function(t){e.showTopUpload=t},expression:"showTopUpload"}},[t("h5",{staticClass:"mt-1 mb-1"},[e._v(" "+e._s(e.alertMessage)+" ")])]),e.files?.length>0?t("div",{staticClass:"d-flex justify-content-between mt-2"},[t("b-table",{staticClass:"b-table",attrs:{small:"",bordered:"",size:"sm",items:e.files,fields:e.computedRestoreUploadFileFields},scopedSlots:e._u([{key:"thead-top",fn:function(){return[t("b-tr",[t("b-td",{staticClass:"text-center",attrs:{colspan:"6",variant:"dark"}},[t("b-icon",{staticClass:"mr-1",attrs:{scale:"1.2",icon:"life-preserver"}}),t("b",[e._v("Restore Overview")])],1)],1)]},proxy:!0},{key:"cell(file)",fn:function(a){return[t("div",{staticClass:"table-cell"},[e._v(" "+e._s(a.value)+" ")])]}},{key:"cell(file_size)",fn:function(a){return[t("div",{staticClass:"table-cell no-wrap"},[e._v(" "+e._s(e.addAndConvertFileSizes(a.value))+" ")])]}},{key:"cell(actions)",fn:function(a){return[t("div",{staticClass:"d-flex justify-content-center align-items-center"},[t("b-button",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.top",value:"Remove restore job",expression:"'Remove restore job'",modifiers:{hover:!0,top:!0}}],staticClass:"d-flex justify-content-center align-items-center",staticStyle:{width:"15px",height:"25px"},attrs:{variant:"outline-danger"},on:{click:function(t){return e.deleteItem(a.index,e.files,a.item.file,"upload")}}},[t("b-icon",{staticClass:"d-flex justify-content-center align-items-center",attrs:{scale:"0.9",icon:"trash"}})],1)],1)]}},{key:"custom-foot",fn:function(){return[t("b-tr",[t("b-td",{staticClass:"text-right",attrs:{colspan:"2",variant:"dark"}}),t("b-td",{staticStyle:{"text-align":"center","vertical-align":"middle"},attrs:{colspan:"2",variant:"dark"}},[t("b-icon",{staticClass:"mr-1",attrs:{icon:"hdd",scale:"1.4"}}),e._v(e._s(e.addAndConvertFileSizes(e.files))+" ")],1)],1)]},proxy:!0}],null,!1,1264712967)})],1):e._e(),t("div",{staticClass:"mt-2"},[e.restoreFromUpload?t("div",{staticClass:"mb-2 mt-2 w-100",staticStyle:{margin:"0 auto",padding:"12px",border:"1px solid #eaeaea","border-radius":"8px","box-shadow":"0 4px 8px rgba(0, 0, 0, 0.1)"}},[t("h5",{staticStyle:{"font-size":"16px","margin-bottom":"5px","text-align":"center"}},[e.restoreFromUpload?t("span",[t("b-spinner",{attrs:{small:""}}),e._v(" "+e._s(e.restoreFromUploadStatus)+" ")],1):e._e()]),e._l(e.files,(function(a){return a.uploading?t("div",{key:a.file_name,staticClass:"upload-item mb-1"},[t("div",{class:a.uploading?"":"hidden"},[e._v(" "+e._s(a.file_name)+" ")]),t("b-progress",{attrs:{max:"100",height:"15px"}},[t("b-progress-bar",{class:a.uploading?"":"hidden",attrs:{value:a.progress,label:`${a.progress.toFixed(2)}%`}})],1)],1):e._e()}))],2):e._e()]),e.files?.length>0&&""===e.restoreFromUploadStatus?t("b-button",{staticClass:"mt-2",attrs:{block:"",variant:"outline-primary"},on:{click:function(t){return e.startUpload()}}},[t("b-icon",{staticClass:"mr-1",attrs:{icon:"arrow-clockwise",scale:"1.1"}}),e._v("Restore ")],1):e._e()],1):e._e(),"Remote URL"===e.selectedRestoreOption?t("div",[t("div",[t("b-input-group",{staticClass:"mb-0"},[t("b-input-group-prepend",{attrs:{"is-text":""}},[t("b-icon",{attrs:{icon:"globe"}})],1),t("b-form-input",{attrs:{state:e.urlValidationState,type:"url",placeholder:"Enter the URL for your remote backup archive",required:""},model:{value:e.restoreRemoteUrl,callback:function(t){e.restoreRemoteUrl=t},expression:"restoreRemoteUrl"}}),t("b-input-group-append",[t("b-form-select",{staticStyle:{"border-radius":"0"},attrs:{options:e.components,disabled:e.remoteUrlComponents},scopedSlots:e._u([{key:"first",fn:function(){return[t("b-form-select-option",{attrs:{value:null,disabled:""}},[e._v(" - Select component - ")])]},proxy:!0}],null,!1,2230972607),model:{value:e.restoreRemoteUrlComponent,callback:function(t){e.restoreRemoteUrlComponent=t},expression:"restoreRemoteUrlComponent"}})],1),t("b-input-group-append",[t("b-button",{attrs:{disabled:null===e.restoreRemoteUrlComponent,size:"sm",variant:"outline-primary"},on:{click:function(t){return e.addRemoteUrlItem(e.appName,e.restoreRemoteUrlComponent)}}},[t("b-icon",{attrs:{scale:"0.8",icon:"plus-lg"}})],1)],1)],1),t("b-form-invalid-feedback",{staticClass:"mb-2",attrs:{state:e.urlValidationState}},[e._v(" "+e._s(e.urlValidationMessage)+" ")])],1),t("b-alert",{staticClass:"mt-1 rounded-0 d-flex align-items-center justify-content-center",staticStyle:{"z-index":"1000"},attrs:{variant:e.alertVariant,solid:"true",dismissible:""},model:{value:e.showTopRemote,callback:function(t){e.showTopRemote=t},expression:"showTopRemote"}},[t("h5",{staticClass:"mt-1 mb-1"},[e._v(" "+e._s(e.alertMessage)+" ")])]),e.restoreRemoteUrlItems?.length>0?t("div",{staticClass:"d-flex justify-content-between mt-2"},[t("b-table",{staticClass:"b-table",attrs:{small:"",bordered:"",size:"sm",items:e.restoreRemoteUrlItems,fields:e.computedRestoreRemoteURLFields},scopedSlots:e._u([{key:"thead-top",fn:function(){return[t("b-tr",[t("b-td",{staticClass:"text-center",attrs:{colspan:"6",variant:"dark"}},[t("b-icon",{staticClass:"mr-1",attrs:{scale:"1.2",icon:"life-preserver"}}),t("b",[e._v("Restore Overview")])],1)],1)]},proxy:!0},{key:"cell(url)",fn:function(a){return[t("div",{staticClass:"table-cell no"},[e._v(" "+e._s(a.value)+" ")])]}},{key:"cell(component)",fn:function(a){return[t("div",{staticClass:"table-cell"},[e._v(" "+e._s(a.value)+" ")])]}},{key:"cell(file_size)",fn:function(a){return[t("div",{staticClass:"table-cell no-wrap"},[e._v(" "+e._s(e.addAndConvertFileSizes(a.value))+" ")])]}},{key:"cell(actions)",fn:function(a){return[t("div",{staticClass:"d-flex justify-content-center align-items-center"},[t("b-button",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.top",value:"Remove restore job",expression:"'Remove restore job'",modifiers:{hover:!0,top:!0}}],staticClass:"d-flex justify-content-center align-items-center",staticStyle:{width:"15px",height:"25px"},attrs:{variant:"outline-danger"},on:{click:function(t){return e.deleteItem(a.index,e.restoreRemoteUrlItems)}}},[t("b-icon",{staticClass:"d-flex justify-content-center align-items-center",attrs:{scale:"0.9",icon:"trash"}})],1)],1)]}},{key:"custom-foot",fn:function(){return[t("b-tr",[t("b-td",{staticClass:"text-right",attrs:{colspan:"2",variant:"dark"}}),t("b-td",{staticStyle:{"text-align":"center","vertical-align":"middle"},attrs:{colspan:"2",variant:"dark"}},[t("b-icon",{staticClass:"mr-1",attrs:{icon:"hdd",scale:"1.4"}}),e._v(e._s(e.addAndConvertFileSizes(e.restoreRemoteUrlItems))+" ")],1)],1)]},proxy:!0}],null,!1,2584524300)})],1):e._e(),t("div",{staticClass:"mt-2"},[!0===e.downloadingFromUrl?t("div",{staticClass:"mb-2 mt-2 w-100",staticStyle:{margin:"0 auto",padding:"12px",border:"1px solid #eaeaea","border-radius":"8px","box-shadow":"0 4px 8px rgba(0, 0, 0, 0.1)","text-align":"center"}},[t("h5",{staticStyle:{"font-size":"16px","margin-bottom":"5px"}},[!0===e.downloadingFromUrl?t("span",[t("b-spinner",{attrs:{small:""}}),e._v(" "+e._s(e.restoreFromRemoteURLStatus)+" ")],1):e._e()])]):e._e()]),e.restoreRemoteUrlItems?.length>0&&""===e.restoreFromRemoteURLStatus?t("b-button",{staticClass:"mt-2",attrs:{block:"",variant:"outline-primary"},on:{click:function(t){return e.restoreFromRemoteFile(e.appName)}}},[t("b-icon",{staticClass:"mr-1",attrs:{icon:"arrow-clockwise",scale:"1.1"}}),e._v("Restore ")],1):e._e()],1):e._e()],1)],1)],1)],1)]),t("b-tab",{attrs:{title:"Interactive Terminal"}},[t("div",{staticClass:"text-center"},[t("div",[t("b-card-group",{attrs:{deck:""}},[t("b-card",{attrs:{"header-tag":"header"}},[t("div",{staticClass:"mb-2",staticStyle:{border:"1px solid #ccc","border-radius":"8px",height:"45px",padding:"12px","text-align":"left","line-height":"0px"}},[t("h5",[t("b-icon",{staticClass:"mr-1",attrs:{scale:"1.2",icon:"terminal"}}),e._v(" Browser-based Interactive Terminal ")],1)]),t("div",{staticClass:"d-flex align-items-center"},[t("div",{directives:[{name:"show",rawName:"v-show",value:e.appSpecification?.compose,expression:"appSpecification?.compose"}],staticClass:"mr-4"},[t("b-form-select",{attrs:{options:null,disabled:!!e.isVisible||e.isComposeSingle},model:{value:e.selectedApp,callback:function(t){e.selectedApp=t},expression:"selectedApp"}},[t("b-form-select-option",{attrs:{value:"null",disabled:""}},[e._v(" -- Please select component -- ")]),e._l(e.appSpecification?.compose,(function(a){return t("b-form-select-option",{key:a.name,attrs:{value:a.name}},[e._v(" "+e._s(a.name)+" ")])}))],2)],1),t("div",{staticClass:"mr-4"},[t("b-form-select",{attrs:{options:e.options,disabled:!!e.isVisible},on:{input:e.onSelectChangeCmd},scopedSlots:e._u([{key:"first",fn:function(){return[t("b-form-select-option",{attrs:{option:null,value:null,disabled:""}},[e._v(" -- Please select command -- ")])]},proxy:!0}]),model:{value:e.selectedCmd,callback:function(t){e.selectedCmd=t},expression:"selectedCmd"}})],1),e.isVisible||e.isConnecting?e._e():t("b-button",{staticClass:"col-2 no-wrap-limit",attrs:{href:"#",variant:"outline-primary"},on:{click:function(t){return e.connectTerminal(e.selectedApp?`${e.selectedApp}_${e.appSpecification.name}`:e.appSpecification.name)}}},[e._v(" Connect ")]),e.isVisible?t("b-button",{staticClass:"col-2 no-wrap-limit",attrs:{variant:"outline-danger"},on:{click:e.disconnectTerminal}},[e._v(" Disconnect ")]):e._e(),e.isConnecting?t("b-button",{staticClass:"col-2 align-items-center justify-content-center",attrs:{variant:"outline-primary",disabled:""}},[t("div",{staticClass:"d-flex align-items-center justify-content-center"},[t("b-spinner",{staticClass:"mr-1",attrs:{small:""}}),e._v(" Connecting... ")],1)]):e._e(),t("div",{staticClass:"ml-auto mt-1"},[t("div",{staticClass:"ml-auto d-flex"},[t("b-form-checkbox",{staticClass:"ml-4 mr-1 d-flex align-items-center justify-content-center",attrs:{switch:"",disabled:!!e.isVisible},on:{input:e.onSelectChangeUser},model:{value:e.enableUser,callback:function(t){e.enableUser=t},expression:"enableUser"}},[t("div",{staticClass:"d-flex",staticStyle:{"font-size":"14px"}},[e._v(" User ")])]),t("b-form-checkbox",{staticClass:"ml-2 d-flex align-items-center justify-content-center",attrs:{switch:"",disabled:!!e.isVisible},on:{input:e.onSelectChangeEnv},model:{value:e.enableEnvironment,callback:function(t){e.enableEnvironment=t},expression:"enableEnvironment"}},[t("div",{staticClass:"d-flex",staticStyle:{"font-size":"14px"}},[e._v(" Environment ")])])],1)])],1),"Custom"!==e.selectedCmd||e.isVisible?e._e():t("div",{staticClass:"d-flex mt-1"},[t("b-form-input",{style:{width:"100%"},attrs:{placeholder:"Enter custom command (string)"},model:{value:e.customValue,callback:function(t){e.customValue=t},expression:"customValue"}})],1),e.enableUser&&!e.isVisible?t("div",{staticClass:"d-flex mt-1"},[t("b-form-input",{style:{width:"100%"},attrs:{placeholder:"Enter user. Format is one of: user, user:group, uid, or uid:gid."},model:{value:e.userInputValue,callback:function(t){e.userInputValue=t},expression:"userInputValue"}})],1):e._e(),e.enableEnvironment&&!e.isVisible?t("div",{staticClass:"d-flex mt-1"},[t("b-form-input",{style:{width:"100%"},attrs:{placeholder:"Enter environment parameters (string)"},model:{value:e.envInputValue,callback:function(t){e.envInputValue=t},expression:"envInputValue"}})],1):e._e(),t("div",{staticClass:"d-flex align-items-center mb-1"},[e.isVisible?t("div",{staticClass:"mt-2"},["Custom"!==e.selectedCmd?[t("span",{staticStyle:{"font-weight":"bold"}},[e._v("Exec into container")]),t("span",{style:e.selectedOptionTextStyle},[e._v(e._s(e.selectedApp||e.appSpecification.name))]),t("span",{staticStyle:{"font-weight":"bold"}},[e._v("using command")]),t("span",{style:e.selectedOptionTextStyle},[e._v(e._s(e.selectedOptionText))]),t("span",{staticStyle:{"font-weight":"bold"}},[e._v("as")]),t("span",{style:e.selectedOptionTextStyle},[e._v(e._s(e.userInputValue?e.userInputValue:"default user"))])]:[t("span",{staticStyle:{"font-weight":"bold"}},[e._v("Exec into container")]),t("span",{style:e.selectedOptionTextStyle},[e._v(e._s(e.selectedApp||e.appSpecification.name))]),t("span",{staticStyle:{"font-weight":"bold"}},[e._v("using custom command")]),t("span",{style:e.selectedOptionTextStyle},[e._v(e._s(e.customValue))]),t("span",{staticStyle:{"font-weight":"bold"}},[e._v("as")]),t("span",{style:e.selectedOptionTextStyle},[e._v(e._s(e.userInputValue?e.userInputValue:"default user"))])]],2):e._e()])])],1),t("div",{directives:[{name:"show",rawName:"v-show",value:e.isVisible,expression:"isVisible"}],ref:"terminalElement",staticStyle:{"text-align":"left","border-radius":"6px",border:"1px solid #e1e4e8",overflow:"hidden"}})],1)]),t("div",[t("b-card",{staticClass:"mt-1"},[t("div",{staticClass:"mb-2",staticStyle:{display:"flex","justify-content":"space-between",border:"1px solid #ccc","border-radius":"8px",height:"45px",padding:"12px","text-align":"left","line-height":"0px"}},[t("h5",[t("b-icon",{staticClass:"mr-1",attrs:{scale:"1.2",icon:"server"}}),e._v(" Volume browser ")],1),e.selectedAppVolume||!e.appSpecification?.compose?t("h6",{staticClass:"progress-label"},[t("b-icon",{staticClass:"mr-1",style:e.getIconColorStyle(e.storage.used,e.storage.total),attrs:{icon:e.getIconName(e.storage.used,e.storage.total),scale:"1.4"}}),e._v(" "+e._s(`${e.storage.used.toFixed(2)} / ${e.storage.total.toFixed(2)}`)+" GB ")],1):e._e()]),t("div",{staticClass:"mr-4 d-flex",class:{"mb-2":e.appSpecification&&e.appSpecification.compose},staticStyle:{"max-width":"250px"}},[t("b-form-select",{directives:[{name:"show",rawName:"v-show",value:e.appSpecification?.compose,expression:"appSpecification?.compose"}],attrs:{options:null,disabled:e.isComposeSingle},on:{change:e.refreshFolderSwitch},model:{value:e.selectedAppVolume,callback:function(t){e.selectedAppVolume=t},expression:"selectedAppVolume"}},[t("b-form-select-option",{attrs:{value:"null",disabled:""}},[e._v(" -- Please select component -- ")]),e._l(e.appSpecification.compose,(function(a){return t("b-form-select-option",{key:a.name,attrs:{value:a.name}},[e._v(" "+e._s(a.name)+" ")])}))],2)],1),e.fileProgressVolume.length>0?t("div",{staticClass:"mb-2 mt-2 w-100",staticStyle:{margin:"0 auto",padding:"12px",border:"1px solid #eaeaea","border-radius":"8px","box-shadow":"0 4px 8px rgba(0, 0, 0, 0.1)","text-align":"center"}},[t("h5",{staticStyle:{"font-size":"16px","margin-bottom":"5px"}},[e.allDownloadsCompletedVolume()?t("span",[e._v(" Download Completed ")]):t("span",[t("b-spinner",{attrs:{small:""}}),e._v(" Downloading... ")],1)]),e._l(e.computedFileProgressVolume,(function(a,s){return a.progress>0?t("b-progress",{key:s,staticClass:"mt-1",staticStyle:{height:"16px"},attrs:{max:100}},[t("b-progress-bar",{staticStyle:{"font-size":"14px"},attrs:{value:a.progress,label:`${a.fileName} - ${a.progress.toFixed(2)}%`}})],1):e._e()}))],2):e._e(),t("div",[e.selectedAppVolume||!e.appSpecification?.compose?t("b-button-toolbar",{staticClass:"mb-1 w-100",attrs:{justify:""}},[t("div",{staticClass:"d-flex flex-row w-100"},[t("b-input-group",{staticClass:"w-100 mr-2"},[t("b-input-group-prepend",[t("b-input-group-text",[t("b-icon",{attrs:{icon:"house-fill"}})],1)],1),t("b-form-input",{staticClass:"text-secondary",staticStyle:{"font-weight":"bold","font-size":"1.0em"},model:{value:e.inputPathValue,callback:function(t){e.inputPathValue=t},expression:"inputPathValue"}})],1),t("b-button-group",{attrs:{size:"sm"}}),t("b-button-group",{staticClass:"ml-auto",attrs:{size:"sm"}},[t("b-button",{attrs:{variant:"outline-primary"},on:{click:function(t){return e.refreshFolder()}}},[t("v-icon",{attrs:{name:"redo-alt"}})],1),t("b-button",{attrs:{variant:"outline-primary"},on:{click:function(t){e.uploadFilesDialog=!0}}},[t("v-icon",{attrs:{name:"cloud-upload-alt"}})],1),t("b-button",{attrs:{variant:"outline-primary"},on:{click:function(t){e.createDirectoryDialogVisible=!0}}},[t("v-icon",{attrs:{name:"folder-plus"}})],1),t("b-modal",{attrs:{title:"Create Folder",size:"lg",centered:"","ok-only":"","ok-title":"Create Folder","header-bg-variant":"primary"},on:{ok:function(t){return e.createFolder(e.newDirName)}},model:{value:e.createDirectoryDialogVisible,callback:function(t){e.createDirectoryDialogVisible=t},expression:"createDirectoryDialogVisible"}},[t("b-form-group",{attrs:{label:"Folder Name","label-for":"folderNameInput"}},[t("b-form-input",{attrs:{id:"folderNameInput",size:"lg",placeholder:"New Folder Name"},model:{value:e.newDirName,callback:function(t){e.newDirName=t},expression:"newDirName"}})],1)],1),t("b-modal",{attrs:{title:"Upload Files",size:"lg","header-bg-variant":"primary",centered:"","hide-footer":""},on:{close:function(t){return e.refreshFolder()}},model:{value:e.uploadFilesDialog,callback:function(t){e.uploadFilesDialog=t},expression:"uploadFilesDialog"}},[t("file-upload",{attrs:{"upload-folder":e.getUploadFolder(),headers:e.zelidHeader},on:{complete:e.refreshFolder}})],1)],1)],1)]):e._e(),e.selectedAppVolume||!e.appSpecification?.compose?t("b-table",{staticClass:"fluxshare-table",attrs:{hover:"",responsive:"",small:"",outlined:"",size:"sm",items:e.folderContentFilter,fields:e.fields,busy:e.loadingFolder,"sort-compare":e.sort,"sort-by":"name","show-empty":"","empty-text":"Directory is empty."},scopedSlots:e._u([{key:"table-busy",fn:function(){return[t("div",{staticClass:"text-center text-danger my-2"},[t("b-spinner",{staticClass:"align-middle mx-2"}),t("strong",[e._v("Loading...")])],1)]},proxy:!0},{key:"head(name)",fn:function(t){return[e._v(" "+e._s(t.label.toUpperCase())+" ")]}},{key:"cell(name)",fn:function(a){return[a.item.symLink?t("div",[t("b-link",{on:{click:function(t){return e.changeFolder(a.item.name)}}},[t("b-icon",{staticClass:"mr-1",attrs:{scale:"1.4",icon:"folder-symlink"}}),e._v(" "+e._s(a.item.name)+" ")],1)],1):e._e(),a.item.isDirectory?t("div",[t("b-link",{on:{click:function(t){return e.changeFolder(a.item.name)}}},[t("b-icon",{staticClass:"mr-1",attrs:{scale:"1.4",icon:"folder"}}),e._v(" "+e._s(a.item.name)+" ")],1)],1):t("div",[a.item.symLink?e._e():t("div",[t("b-icon",{staticClass:"mr-1",attrs:{scale:"1.4",icon:"file-earmark"}}),e._v(" "+e._s(a.item.name)+" ")],1)])]}},{key:"cell(modifiedAt)",fn:function(a){return[a.item.isUpButton?e._e():t("div",{staticClass:"no-wrap"},[e._v(" "+e._s(new Date(a.item.modifiedAt).toLocaleString("en-GB",e.timeoptions))+" ")])]}},{key:"cell(type)",fn:function(a){return[a.item.isUpButton?e._e():t("div",[a.item.isDirectory?t("div",[e._v(" Folder ")]):a.item.isFile||a.item.isSymbolicLink?t("div",[e._v(" File ")]):t("div",[e._v(" Other ")])])]}},{key:"cell(size)",fn:function(a){return[a.item.size>0&&!a.item.isUpButton?t("div",{staticClass:"no-wrap"},[e._v(" "+e._s(e.addAndConvertFileSizes(a.item.size))+" ")]):e._e()]}},{key:"cell(actions)",fn:function(a){return[a.item.isUpButton?e._e():t("b-button-group",{attrs:{size:"sm"}},[t("b-button",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.bottom",value:a.item.isFile?"Download":"Download zip of folder",expression:"data.item.isFile ? 'Download' : 'Download zip of folder'",modifiers:{hover:!0,bottom:!0}},{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],attrs:{id:`download-${a.item.name}`,variant:"outline-secondary"}},[t("v-icon",{attrs:{name:a.item.isFile?"file-download":"file-archive"}})],1),t("b-button",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.bottom",value:"Rename",expression:"'Rename'",modifiers:{hover:!0,bottom:!0}},{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],attrs:{id:`rename-${a.item.name}`,variant:"outline-secondary"},on:{click:function(t){return e.rename(a.item.name)}}},[t("v-icon",{attrs:{name:"edit"}})],1),t("b-button",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.bottom",value:"Delete",expression:"'Delete'",modifiers:{hover:!0,bottom:!0}},{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],attrs:{id:`delete-${a.item.name}`,variant:"outline-secondary"}},[t("v-icon",{attrs:{name:"trash-alt"}})],1),t("confirm-dialog",{attrs:{target:`delete-${a.item.name}`,"confirm-button":a.item.isFile?"Delete File":"Delete Folder"},on:{confirm:function(t){return e.deleteFile(a.item.name)}}})],1),t("confirm-dialog",{attrs:{target:`download-${a.item.name}`,"confirm-button":a.item.isFile?"Download File":"Download Folder"},on:{confirm:function(t){a.item.isFile?e.download(a.item.name):e.download(a.item.name,!0,a.item.size)}}}),t("b-modal",{attrs:{title:"Rename",size:"lg",centered:"","ok-only":"","ok-title":"Rename"},on:{ok:function(t){return e.confirmRename()}},model:{value:e.renameDialogVisible,callback:function(t){e.renameDialogVisible=t},expression:"renameDialogVisible"}},[t("b-form-group",{attrs:{label:"Name","label-for":"nameInput"}},[t("b-form-input",{attrs:{id:"nameInput",size:"lg",placeholder:"Name"},model:{value:e.newName,callback:function(t){e.newName=t},expression:"newName"}})],1)],1)]}}],null,!1,3040013154)}):e._e()],1)])],1)]),e.windowWidth>860?t("b-tab",{attrs:{title:"Global App Management",disabled:""}}):e._e(),t("b-tab",{attrs:{title:"Global Control"}},[e.globalZelidAuthorized?t("div",[t("b-row",{staticClass:"match-height"},[t("b-col",{attrs:{xs:"6"}},[t("b-card",{attrs:{title:"Control"}},[t("b-card-text",{staticClass:"mb-2"},[e._v(" "+e._s(e.isAppOwner?"General options to control all instances of your application":"General options to control instances of selected application running on all nodes that you own")+" ")]),t("div",{staticClass:"text-center"},[t("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"mx-1 my-1",attrs:{id:"start-app-global",variant:"success","aria-label":"Start App"}},[e._v(" Start App ")]),t("confirm-dialog",{attrs:{target:"start-app-global","confirm-button":"Start App"},on:{confirm:function(t){return e.startAppGlobally(e.appName)}}}),t("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"mx-1 my-1",attrs:{id:"stop-app-global",variant:"success","aria-label":"Stop App"}},[e._v(" Stop App ")]),t("confirm-dialog",{attrs:{target:"stop-app-global","confirm-button":"Stop App"},on:{confirm:function(t){return e.stopAppGlobally(e.appName)}}}),t("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"mx-1 my-1",attrs:{id:"restart-app-global",variant:"success","aria-label":"Restart App"}},[e._v(" Restart App ")]),t("confirm-dialog",{attrs:{target:"restart-app-global","confirm-button":"Restart App"},on:{confirm:function(t){return e.restartAppGlobally(e.appName)}}})],1)],1)],1),t("b-col",{attrs:{xs:"6"}},[t("b-card",{attrs:{title:"Pause"}},[t("b-card-text",{staticClass:"mb-2"},[e._v(" "+e._s(e.isAppOwner?"The Pause command suspends all processes of all instances of your app":"The Pause command suspends all processes of selected application on all of nodes that you own")+" ")]),t("div",{staticClass:"text-center"},[t("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"mx-1 my-1",attrs:{id:"pause-app-global",variant:"success","aria-label":"Pause App"}},[e._v(" Pause App ")]),t("confirm-dialog",{attrs:{target:"pause-app-global","confirm-button":"Pause App"},on:{confirm:function(t){return e.pauseAppGlobally(e.appName)}}}),t("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"mx-1 my-1",attrs:{id:"unpause-app-global",variant:"success","aria-label":"Unpause App"}},[e._v(" Unpause App ")]),t("confirm-dialog",{attrs:{target:"unpause-app-global","confirm-button":"Unpause App"},on:{confirm:function(t){return e.unpauseAppGlobally(e.appName)}}})],1)],1)],1)],1),t("b-row",{staticClass:"match-height"},[t("b-col",{attrs:{xs:"6"}},[t("b-card",{attrs:{title:"Redeploy"}},[t("b-card-text",{staticClass:"mb-2"},[e._v(" "+e._s(e.isAppOwner?"Redeployes all instances of your application.Hard redeploy removes persistant data storage. If app uses syncthing it can takes up to 30 to be up and running.":"Redeployes instances of selected application running on all of your nodes. Hard redeploy removes persistant data storage.")+" ")]),t("div",{staticClass:"text-center"},[t("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"mx-1 my-1",attrs:{id:"redeploy-app-soft-global",variant:"success","aria-label":"Soft Redeploy App"}},[e._v(" Soft Redeploy App ")]),t("confirm-dialog",{attrs:{target:"redeploy-app-soft-global","confirm-button":"Redeploy"},on:{confirm:function(t){return e.redeployAppSoftGlobally(e.appName)}}}),t("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"mx-1 my-1",attrs:{id:"redeploy-app-hard-global",variant:"success","aria-label":"Hard Redeploy App"}},[e._v(" Hard Redeploy App ")]),t("confirm-dialog",{attrs:{target:"redeploy-app-hard-global","confirm-button":"Redeploy"},on:{confirm:function(t){return e.redeployAppHardGlobally(e.appName)}}})],1)],1)],1),t("b-col",{attrs:{xs:"6"}},[t("b-card",{attrs:{title:"Reinstall"}},[t("b-card-text",{staticClass:"mb-2"},[e._v(" "+e._s(e.isAppOwner?"Removes all instances of your App forcing an installation on different nodes.":"Removes all instances of selected App on all of your nodes forcing installation on different nodes.")+" ")]),t("div",{staticClass:"text-center"},[t("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"mx-1 my-1",attrs:{id:"remove-app-global",variant:"success","aria-label":"Reinstall App"}},[e._v(" Reinstall App ")]),t("confirm-dialog",{attrs:{target:"remove-app-global","confirm-button":"Reinstall App"},on:{confirm:function(t){return e.removeAppGlobally(e.appName)}}})],1)],1)],1)],1)],1):t("div",[e._v(" Global management session expired. Please log out and back into FluxOS. ")])]),t("b-tab",{attrs:{title:"Running Instances"}},[e.masterSlaveApp?t("div",[t("b-card",{attrs:{title:"Primary/Standby App Information"}},[t("list-entry",{attrs:{title:"Current IP selected as Primary running your application",data:e.masterIP}})],1)],1):e._e(),t("b-row",[t("b-col",[t("flux-map",{staticClass:"mb-0",attrs:{"show-all":!1,"filter-nodes":e.mapLocations}})],1)],1),t("b-row",[t("b-col",{staticClass:"my-1",attrs:{md:"4",sm:"4"}},[t("b-form-group",{staticClass:"mb-0"},[t("label",{staticClass:"d-inline-block text-left mr-50"},[e._v("Per page")]),t("b-form-select",{staticClass:"w-50",attrs:{id:"perPageSelect",size:"sm",options:e.instances.pageOptions},model:{value:e.instances.perPage,callback:function(t){e.$set(e.instances,"perPage",t)},expression:"instances.perPage"}})],1)],1),t("b-col",{staticClass:"my-1",attrs:{md:"8"}},[t("b-form-group",{staticClass:"mb-0",attrs:{label:"Filter","label-cols-sm":"1","label-align-sm":"right","label-for":"filterInput"}},[t("b-input-group",{attrs:{size:"sm"}},[t("b-form-input",{attrs:{id:"filterInput",type:"search",placeholder:"Type to Search"},model:{value:e.instances.filter,callback:function(t){e.$set(e.instances,"filter",t)},expression:"instances.filter"}}),t("b-input-group-append",[t("b-button",{attrs:{disabled:!e.instances.filter},on:{click:function(t){e.instances.filter=""}}},[e._v(" Clear ")])],1)],1)],1)],1),t("b-col",{attrs:{cols:"12"}},[t("b-table",{key:e.tableKey,staticClass:"app-instances-table",attrs:{striped:"",hover:"",outlined:"",responsive:"",busy:e.isBusy,"per-page":e.instances.perPage,"current-page":e.instances.currentPage,items:e.instances.data,fields:e.instances.fields,"sort-by":e.instances.sortBy,"sort-desc":e.instances.sortDesc,"sort-direction":e.instances.sortDirection,filter:e.instances.filter,"show-empty":"","empty-text":`No instances of ${e.appName}`},on:{"update:sortBy":function(t){return e.$set(e.instances,"sortBy",t)},"update:sort-by":function(t){return e.$set(e.instances,"sortBy",t)},"update:sortDesc":function(t){return e.$set(e.instances,"sortDesc",t)},"update:sort-desc":function(t){return e.$set(e.instances,"sortDesc",t)}},scopedSlots:e._u([{key:"table-busy",fn:function(){return[t("div",{staticClass:"text-center text-danger my-2"},[t("b-spinner",{staticClass:"align-middle mr-1"}),t("strong",[e._v("Loading geolocation...")])],1)]},proxy:!0},{key:"cell(show_details)",fn:function(a){return[t("a",{on:{click:a.toggleDetails}},[a.detailsShowing?e._e():t("v-icon",{staticClass:"ml-2",attrs:{name:"chevron-down"}}),a.detailsShowing?t("v-icon",{staticClass:"ml-2",attrs:{name:"chevron-up"}}):e._e()],1)]}},{key:"row-details",fn:function(a){return[t("b-card",{},[a.item.broadcastedAt?t("list-entry",{attrs:{title:"Broadcast",data:new Date(a.item.broadcastedAt).toLocaleString("en-GB",e.timeoptions.shortDate)}}):e._e(),a.item.expireAt?t("list-entry",{attrs:{title:"Expires",data:new Date(a.item.expireAt).toLocaleString("en-GB",e.timeoptions.shortDate)}}):e._e()],1)]}},{key:"cell(visit)",fn:function(a){return[t("div",{staticClass:"button-cell"},[t("b-button",{staticClass:"mr-1",attrs:{size:"sm",variant:"outline-secondary"},on:{click:function(t){e.openApp(a.item.name,a.item.ip.split(":")[0],e.getProperPort())}}},[e._v(" App ")]),t("b-button",{staticClass:"mr-0",attrs:{size:"sm",variant:"outline-primary"},on:{click:function(t){e.openNodeFluxOS(a.item.ip.split(":")[0],a.item.ip.split(":")[1]?+a.item.ip.split(":")[1]-1:16126)}}},[e._v(" FluxNode ")])],1)]}}])})],1),t("b-col",{attrs:{cols:"12"}},[t("b-pagination",{staticClass:"my-0",attrs:{"total-rows":e.instances.totalRows,"per-page":e.instances.perPage,align:"center",size:"sm"},model:{value:e.instances.currentPage,callback:function(t){e.$set(e.instances,"currentPage",t)},expression:"instances.currentPage"}})],1)],1)],1),t("b-tab",{attrs:{title:"Update/Renew",disabled:!e.isAppOwner}},[e.fluxCommunication?e._e():t("div",{staticClass:"text-danger"},[e._v(" Warning: Connected Flux is not communicating properly with Flux network ")]),t("div",{staticStyle:{border:"1px solid #ccc","border-radius":"8px",height:"45px",padding:"12px","line-height":"0px"}},[t("h5",[t("b-icon",{staticClass:"mr-1",attrs:{icon:"ui-checks-grid"}}),e._v(" Update Application Specifications / Extend subscription ")],1)]),t("div",{staticClass:"form-row form-group"},[t("b-input-group",{staticClass:"mt-2"},[t("b-input-group-prepend",[t("b-input-group-text",[t("b-icon",{staticClass:"mr-1",attrs:{icon:"plus-square"}}),e._v(" Update Specifications "),t("v-icon",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.top",value:"Select if you want to change your application specifications",expression:"'Select if you want to change your application specifications'",modifiers:{hover:!0,top:!0}}],staticClass:"ml-1",attrs:{name:"info-circle"}})],1)],1),t("b-input-group-append",{attrs:{"is-text":""}},[t("b-form-checkbox",{staticClass:"custom-control-primary",attrs:{id:"updateSpecifications",switch:""},model:{value:e.updateSpecifications,callback:function(t){e.updateSpecifications=t},expression:"updateSpecifications"}})],1)],1)],1),e.updateSpecifications?t("div",[e.appUpdateSpecification.version>=4?t("div",[t("b-row",{staticClass:"match-height"},[t("b-col",{attrs:{xs:"6"}},[t("b-card",{attrs:{title:"Details"}},[t("b-form-group",{attrs:{"label-cols":"2","label-cols-lg":"1",label:"Version","label-for":"version"}},[t("b-form-input",{attrs:{id:"version",placeholder:e.appUpdateSpecification.version.toString(),readonly:""},model:{value:e.appUpdateSpecification.version,callback:function(t){e.$set(e.appUpdateSpecification,"version",t)},expression:"appUpdateSpecification.version"}})],1),t("b-form-group",{attrs:{"label-cols":"2","label-cols-lg":"1",label:"Name","label-for":"name"}},[t("b-form-input",{attrs:{id:"name",placeholder:"Application Name",readonly:""},model:{value:e.appUpdateSpecification.name,callback:function(t){e.$set(e.appUpdateSpecification,"name",t)},expression:"appUpdateSpecification.name"}})],1),t("b-form-group",{attrs:{"label-cols":"2","label-cols-lg":"1",label:"Desc.","label-for":"desc"}},[t("b-form-textarea",{attrs:{id:"desc",placeholder:"Description",rows:"3"},model:{value:e.appUpdateSpecification.description,callback:function(t){e.$set(e.appUpdateSpecification,"description",t)},expression:"appUpdateSpecification.description"}})],1),t("b-form-group",{attrs:{"label-cols":"2","label-cols-lg":"1",label:"Owner","label-for":"owner"}},[t("b-form-input",{attrs:{id:"owner",placeholder:"Flux ID of Application Owner"},model:{value:e.appUpdateSpecification.owner,callback:function(t){e.$set(e.appUpdateSpecification,"owner",t)},expression:"appUpdateSpecification.owner"}})],1),e.appUpdateSpecification.version>=5&&!e.isPrivateApp?t("div",[t("div",{staticClass:"form-row form-group"},[t("label",{staticClass:"col-1 col-form-label"},[e._v(" Contacts "),t("v-icon",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.top",value:"Array of strings of emails Contacts to get notifications ex. app about to expire, app spawns. Contacts are also PUBLIC information.",expression:"'Array of strings of emails Contacts to get notifications ex. app about to expire, app spawns. Contacts are also PUBLIC information.'",modifiers:{hover:!0,top:!0}}],staticClass:"mr-1",attrs:{name:"info-circle"}})],1),t("div",{staticClass:"col"},[t("b-form-input",{attrs:{id:"contacs"},model:{value:e.appUpdateSpecification.contacts,callback:function(t){e.$set(e.appUpdateSpecification,"contacts",t)},expression:"appUpdateSpecification.contacts"}})],1),t("div",{staticClass:"col-0"},[t("b-button",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.top",value:"Uploads Contacts to Flux Storage. Contacts will be replaced with a link to Flux Storage instead. This increases maximum allowed contacts while adding enhanced privacy - nobody except FluxOS Team maintaining notifications system has access to contacts.",expression:"\n 'Uploads Contacts to Flux Storage. Contacts will be replaced with a link to Flux Storage instead. This increases maximum allowed contacts while adding enhanced privacy - nobody except FluxOS Team maintaining notifications system has access to contacts.'\n ",modifiers:{hover:!0,top:!0}}],attrs:{id:"upload-contacts",variant:"outline-primary"}},[t("v-icon",{attrs:{name:"cloud-upload-alt"}})],1),t("confirm-dialog",{attrs:{target:"upload-contacts","confirm-button":"Upload Contacts",width:600},on:{confirm:function(t){return e.uploadContactsToFluxStorage()}}})],1)])]):e._e(),e.appUpdateSpecification.version>=5&&!e.isPrivateApp?t("div",[t("h4",[e._v("Allowed Geolocation")]),e._l(e.numberOfGeolocations,(function(a){return t("div",{key:`${a}pos`},[t("b-form-group",{attrs:{"label-cols":"3","label-cols-lg":"1",label:`Continent - ${a}`,"label-for":"Continent"}},[t("b-form-select",{attrs:{id:"Continent",options:e.continentsOptions(!1)},on:{change:function(t){return e.adjustMaxInstancesPossible()}},scopedSlots:e._u([{key:"first",fn:function(){return[t("b-form-select-option",{attrs:{value:void 0,disabled:""}},[e._v(" -- Select to restrict Continent -- ")])]},proxy:!0}],null,!0),model:{value:e.allowedGeolocations[`selectedContinent${a}`],callback:function(t){e.$set(e.allowedGeolocations,`selectedContinent${a}`,t)},expression:"allowedGeolocations[`selectedContinent${n}`]"}})],1),e.allowedGeolocations[`selectedContinent${a}`]&&"ALL"!==e.allowedGeolocations[`selectedContinent${a}`]?t("b-form-group",{attrs:{"label-cols":"3","label-cols-lg":"1",label:`Country - ${a}`,"label-for":"Country"}},[t("b-form-select",{attrs:{id:"country",options:e.countriesOptions(e.allowedGeolocations[`selectedContinent${a}`],!1)},on:{change:function(t){return e.adjustMaxInstancesPossible()}},scopedSlots:e._u([{key:"first",fn:function(){return[t("b-form-select-option",{attrs:{value:void 0,disabled:""}},[e._v(" -- Select to restrict Country -- ")])]},proxy:!0}],null,!0),model:{value:e.allowedGeolocations[`selectedCountry${a}`],callback:function(t){e.$set(e.allowedGeolocations,`selectedCountry${a}`,t)},expression:"allowedGeolocations[`selectedCountry${n}`]"}})],1):e._e(),e.allowedGeolocations[`selectedContinent${a}`]&&"ALL"!==e.allowedGeolocations[`selectedContinent${a}`]&&e.allowedGeolocations[`selectedCountry${a}`]&&"ALL"!==e.allowedGeolocations[`selectedCountry${a}`]?t("b-form-group",{attrs:{"label-cols":"3","label-cols-lg":"1",label:`Region - ${a}`,"label-for":"Region"}},[t("b-form-select",{attrs:{id:"Region",options:e.regionsOptions(e.allowedGeolocations[`selectedContinent${a}`],e.allowedGeolocations[`selectedCountry${a}`],!1)},on:{change:function(t){return e.adjustMaxInstancesPossible()}},scopedSlots:e._u([{key:"first",fn:function(){return[t("b-form-select-option",{attrs:{value:void 0,disabled:""}},[e._v(" -- Select to restrict Region -- ")])]},proxy:!0}],null,!0),model:{value:e.allowedGeolocations[`selectedRegion${a}`],callback:function(t){e.$set(e.allowedGeolocations,`selectedRegion${a}`,t)},expression:"allowedGeolocations[`selectedRegion${n}`]"}})],1):e._e()],1)})),t("div",{staticClass:"text-center"},[e.numberOfGeolocations>1?t("b-button",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.bottom",value:"Remove Allowed Geolocation Restriction",expression:"'Remove Allowed Geolocation Restriction'",modifiers:{hover:!0,bottom:!0}},{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"m-1",attrs:{variant:"outline-secondary",size:"sm"},on:{click:function(t){e.numberOfGeolocations=e.numberOfGeolocations-1,e.adjustMaxInstancesPossible()}}},[t("v-icon",{attrs:{name:"minus"}})],1):e._e(),e.numberOfGeolocations<5?t("b-button",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.bottom",value:"Add Allowed Geolocation Restriction",expression:"'Add Allowed Geolocation Restriction'",modifiers:{hover:!0,bottom:!0}},{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"m-1",attrs:{variant:"outline-secondary",size:"sm"},on:{click:function(t){e.numberOfGeolocations=e.numberOfGeolocations+1,e.adjustMaxInstancesPossible()}}},[t("v-icon",{attrs:{name:"plus"}})],1):e._e()],1)],2):e._e(),t("br"),t("br"),e.appUpdateSpecification.version>=5?t("div",[t("h4",[e._v("Forbidden Geolocation")]),e._l(e.numberOfNegativeGeolocations,(function(a){return t("div",{key:`${a}posB`},[t("b-form-group",{attrs:{"label-cols":"3","label-cols-lg":"1",label:`Continent - ${a}`,"label-for":"Continent"}},[t("b-form-select",{attrs:{id:"Continent",options:e.continentsOptions(!0)},scopedSlots:e._u([{key:"first",fn:function(){return[t("b-form-select-option",{attrs:{value:void 0,disabled:""}},[e._v(" -- Select to ban Continent -- ")])]},proxy:!0}],null,!0),model:{value:e.forbiddenGeolocations[`selectedContinent${a}`],callback:function(t){e.$set(e.forbiddenGeolocations,`selectedContinent${a}`,t)},expression:"forbiddenGeolocations[`selectedContinent${n}`]"}})],1),e.forbiddenGeolocations[`selectedContinent${a}`]&&"NONE"!==e.forbiddenGeolocations[`selectedContinent${a}`]?t("b-form-group",{attrs:{"label-cols":"3","label-cols-lg":"1",label:`Country - ${a}`,"label-for":"Country"}},[t("b-form-select",{attrs:{id:"country",options:e.countriesOptions(e.forbiddenGeolocations[`selectedContinent${a}`],!0)},scopedSlots:e._u([{key:"first",fn:function(){return[t("b-form-select-option",{attrs:{value:void 0,disabled:""}},[e._v(" -- Select to ban Country -- ")])]},proxy:!0}],null,!0),model:{value:e.forbiddenGeolocations[`selectedCountry${a}`],callback:function(t){e.$set(e.forbiddenGeolocations,`selectedCountry${a}`,t)},expression:"forbiddenGeolocations[`selectedCountry${n}`]"}})],1):e._e(),e.forbiddenGeolocations[`selectedContinent${a}`]&&"NONE"!==e.forbiddenGeolocations[`selectedContinent${a}`]&&e.forbiddenGeolocations[`selectedCountry${a}`]&&"ALL"!==e.forbiddenGeolocations[`selectedCountry${a}`]?t("b-form-group",{attrs:{"label-cols":"3","label-cols-lg":"1",label:`Region - ${a}`,"label-for":"Region"}},[t("b-form-select",{attrs:{id:"Region",options:e.regionsOptions(e.forbiddenGeolocations[`selectedContinent${a}`],e.forbiddenGeolocations[`selectedCountry${a}`],!0)},scopedSlots:e._u([{key:"first",fn:function(){return[t("b-form-select-option",{attrs:{value:void 0,disabled:""}},[e._v(" -- Select to ban Region -- ")])]},proxy:!0}],null,!0),model:{value:e.forbiddenGeolocations[`selectedRegion${a}`],callback:function(t){e.$set(e.forbiddenGeolocations,`selectedRegion${a}`,t)},expression:"forbiddenGeolocations[`selectedRegion${n}`]"}})],1):e._e()],1)})),t("div",{staticClass:"text-center"},[e.numberOfNegativeGeolocations>1?t("b-button",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.bottom",value:"Remove Forbidden Geolocation Restriction",expression:"'Remove Forbidden Geolocation Restriction'",modifiers:{hover:!0,bottom:!0}},{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"m-1",attrs:{variant:"outline-secondary",size:"sm"},on:{click:function(t){e.numberOfNegativeGeolocations=e.numberOfNegativeGeolocations-1}}},[t("v-icon",{attrs:{name:"minus"}})],1):e._e(),e.numberOfNegativeGeolocations<5?t("b-button",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.bottom",value:"Add Forbidden Geolocation Restriction",expression:"'Add Forbidden Geolocation Restriction'",modifiers:{hover:!0,bottom:!0}},{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"m-1",attrs:{variant:"outline-secondary",size:"sm"},on:{click:function(t){e.numberOfNegativeGeolocations=e.numberOfNegativeGeolocations+1}}},[t("v-icon",{attrs:{name:"plus"}})],1):e._e()],1)],2):e._e(),t("br"),e.appUpdateSpecification.version>=3?t("b-form-group",{attrs:{"label-cols":"2","label-cols-lg":"1",label:"Instances","label-for":"instances"}},[t("div",{staticClass:"mx-1"},[e._v(" "+e._s(e.appUpdateSpecification.instances)+" ")]),t("b-form-input",{attrs:{id:"instances",placeholder:"Minimum number of application instances to be spawned",type:"range",min:"3",max:e.maxInstances,step:"1"},model:{value:e.appUpdateSpecification.instances,callback:function(t){e.$set(e.appUpdateSpecification,"instances",t)},expression:"appUpdateSpecification.instances"}})],1):e._e(),e.appUpdateSpecification.version>=7?t("div",{staticClass:"form-row form-group"},[t("label",{staticClass:"col-form-label"},[e._v(" Static IP "),t("v-icon",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.top",value:"Select if your application strictly requires static IP address",expression:"'Select if your application strictly requires static IP address'",modifiers:{hover:!0,top:!0}}],staticClass:"mr-1",attrs:{name:"info-circle"}})],1),t("div",{staticClass:"col"},[t("b-form-checkbox",{staticClass:"custom-control-primary inline",attrs:{id:"staticip",switch:""},model:{value:e.appUpdateSpecification.staticip,callback:function(t){e.$set(e.appUpdateSpecification,"staticip",t)},expression:"appUpdateSpecification.staticip"}})],1)]):e._e(),t("br"),e.appUpdateSpecification.version>=7?t("div",{staticClass:"form-row form-group"},[t("label",{staticClass:"col-form-label"},[e._v(" Enterprise Application "),t("v-icon",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.top",value:"Select if your application requires private image, secrets or if you want to target specific nodes on which application can run. Geolocation targetting is not possible in this case.",expression:"'Select if your application requires private image, secrets or if you want to target specific nodes on which application can run. Geolocation targetting is not possible in this case.'",modifiers:{hover:!0,top:!0}}],staticClass:"mr-1",attrs:{name:"info-circle"}})],1),t("div",{staticClass:"col"},[t("b-form-checkbox",{staticClass:"custom-control-primary inline",attrs:{id:"enterpriseapp",switch:""},model:{value:e.isPrivateApp,callback:function(t){e.isPrivateApp=t},expression:"isPrivateApp"}})],1)]):e._e()],1)],1)],1),e._l(e.appUpdateSpecification.compose,(function(a,s){return t("b-card",{key:s},[t("b-card-title",[e._v(" Component "+e._s(a.name)+" ")]),t("b-row",{staticClass:"match-height"},[t("b-col",{attrs:{xs:"12",xl:"6"}},[t("b-card",[t("b-card-title",[e._v(" General ")]),t("div",{staticClass:"form-row form-group"},[t("label",{staticClass:"col-3 col-form-label"},[e._v(" Name "),t("v-icon",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.top",value:"Name of Application Component",expression:"'Name of Application Component'",modifiers:{hover:!0,top:!0}}],staticClass:"mr-1",attrs:{name:"info-circle"}})],1),t("div",{staticClass:"col"},[t("b-form-input",{attrs:{id:`repo-${a.name}_${e.appUpdateSpecification.name}`,placeholder:"Component name",readonly:""},model:{value:a.name,callback:function(t){e.$set(a,"name",t)},expression:"component.name"}})],1)]),t("div",{staticClass:"form-row form-group"},[t("label",{staticClass:"col-3 col-form-label"},[e._v(" Description "),t("v-icon",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.top",value:"Description of Application Component",expression:"'Description of Application Component'",modifiers:{hover:!0,top:!0}}],staticClass:"mr-1",attrs:{name:"info-circle"}})],1),t("div",{staticClass:"col"},[t("b-form-input",{attrs:{id:`repo-${a.name}_${e.appUpdateSpecification.name}`,placeholder:"Component description"},model:{value:a.description,callback:function(t){e.$set(a,"description",t)},expression:"component.description"}})],1)]),t("div",{staticClass:"form-row form-group"},[t("label",{staticClass:"col-3 col-form-label"},[e._v(" Repository "),t("v-icon",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.top",value:"Docker image namespace/repository:tag for component",expression:"'Docker image namespace/repository:tag for component'",modifiers:{hover:!0,top:!0}}],staticClass:"mr-1",attrs:{name:"info-circle"}})],1),t("div",{staticClass:"col"},[t("b-form-input",{attrs:{id:`repo-${a.name}_${e.appUpdateSpecification.name}`,placeholder:"Docker image namespace/repository:tag"},model:{value:a.repotag,callback:function(t){e.$set(a,"repotag",t)},expression:"component.repotag"}})],1)]),e.appUpdateSpecification.version>=7&&e.isPrivateApp?t("div",{staticClass:"form-row form-group"},[t("label",{staticClass:"col-3 col-form-label"},[e._v(" Repository Authentication "),t("v-icon",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.top",value:"Docker image authentication for private images in the format of username:apikey. This field will be encrypted and accessible to selected enterprise nodes only.",expression:"'Docker image authentication for private images in the format of username:apikey. This field will be encrypted and accessible to selected enterprise nodes only.'",modifiers:{hover:!0,top:!0}}],staticClass:"mr-1",attrs:{name:"info-circle"}})],1),t("div",{staticClass:"col"},[t("b-form-input",{attrs:{id:`repoauth-${a.name}_${e.appUpdateSpecification.name}`,placeholder:"Docker authentication username:apikey"},model:{value:a.repoauth,callback:function(t){e.$set(a,"repoauth",t)},expression:"component.repoauth"}})],1)]):e._e(),t("br"),t("b-card-title",[e._v(" Connectivity ")]),t("div",{staticClass:"form-row form-group"},[t("label",{staticClass:"col-3 col-form-label"},[e._v(" Ports "),t("v-icon",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.top",value:"Array of Ports on which application will be available",expression:"'Array of Ports on which application will be available'",modifiers:{hover:!0,top:!0}}],staticClass:"mr-1",attrs:{name:"info-circle"}})],1),t("div",{staticClass:"col"},[t("b-form-input",{attrs:{id:`ports-${a.name}_${e.appUpdateSpecification.name}`},model:{value:a.ports,callback:function(t){e.$set(a,"ports",t)},expression:"component.ports"}})],1)]),t("div",{staticClass:"form-row form-group"},[t("label",{staticClass:"col-3 col-form-label"},[e._v(" Domains "),t("v-icon",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.top",value:"Array of strings of Domains managed by Flux Domain Manager (FDM). Length must correspond to available ports. Use empty strings for no domains",expression:"'Array of strings of Domains managed by Flux Domain Manager (FDM). Length must correspond to available ports. Use empty strings for no domains'",modifiers:{hover:!0,top:!0}}],staticClass:"mr-1",attrs:{name:"info-circle"}})],1),t("div",{staticClass:"col"},[t("b-form-input",{attrs:{id:`domains-${a.name}_${e.appUpdateSpecification.name}`},model:{value:a.domains,callback:function(t){e.$set(a,"domains",t)},expression:"component.domains"}})],1)]),t("div",{staticClass:"form-row form-group"},[t("label",{staticClass:"col-3 col-form-label"},[e._v(" Cont. Ports "),t("v-icon",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.top",value:"Container Ports - Array of ports which your container has",expression:"'Container Ports - Array of ports which your container has'",modifiers:{hover:!0,top:!0}}],staticClass:"mr-1",attrs:{name:"info-circle"}})],1),t("div",{staticClass:"col"},[t("b-form-input",{attrs:{id:`containerPorts-${a.name}_${e.appUpdateSpecification.name}`},model:{value:a.containerPorts,callback:function(t){e.$set(a,"containerPorts",t)},expression:"component.containerPorts"}})],1)])],1)],1),t("b-col",{attrs:{xs:"12",xl:"6"}},[t("b-card",[t("b-card-title",[e._v(" Environment ")]),t("div",{staticClass:"form-row form-group"},[t("label",{staticClass:"col-3 col-form-label"},[e._v(" Environment "),t("v-icon",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.top",value:"Array of strings of Environmental Parameters",expression:"'Array of strings of Environmental Parameters'",modifiers:{hover:!0,top:!0}}],staticClass:"mr-1",attrs:{name:"info-circle"}})],1),t("div",{staticClass:"col"},[t("b-form-input",{attrs:{id:`environmentParameters-${a.name}_${e.appUpdateSpecification.name}`},model:{value:a.environmentParameters,callback:function(t){e.$set(a,"environmentParameters",t)},expression:"component.environmentParameters"}})],1),t("div",{staticClass:"col-0"},[t("b-button",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.top",value:"Uploads Enviornment to Flux Storage. Environment parameters will be replaced with a link to Flux Storage instead. This increases maximum allowed size of Env. parameters while adding basic privacy - instead of parameters, link to Flux Storage will be visible.",expression:"\n 'Uploads Enviornment to Flux Storage. Environment parameters will be replaced with a link to Flux Storage instead. This increases maximum allowed size of Env. parameters while adding basic privacy - instead of parameters, link to Flux Storage will be visible.'\n ",modifiers:{hover:!0,top:!0}}],attrs:{id:"upload-env",variant:"outline-primary"}},[t("v-icon",{attrs:{name:"cloud-upload-alt"}})],1),t("confirm-dialog",{attrs:{target:"upload-env","confirm-button":"Upload Environment Parameters",width:600},on:{confirm:function(t){return e.uploadEnvToFluxStorage(s)}}})],1)]),t("div",{staticClass:"form-row form-group"},[t("label",{staticClass:"col-3 col-form-label"},[e._v(" Commands "),t("v-icon",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.top",value:"Array of strings of Commands",expression:"'Array of strings of Commands'",modifiers:{hover:!0,top:!0}}],staticClass:"mr-1",attrs:{name:"info-circle"}})],1),t("div",{staticClass:"col"},[t("b-form-input",{attrs:{id:`commands-${a.name}_${e.appUpdateSpecification.name}`},model:{value:a.commands,callback:function(t){e.$set(a,"commands",t)},expression:"component.commands"}})],1),t("div",{staticClass:"col-0"},[t("b-button",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.top",value:"Uploads Commands to Flux Storage. Commands will be replaced with a link to Flux Storage instead. This increases maximum allowed size of Commands while adding basic privacy - instead of commands, link to Flux Storage will be visible.",expression:"'Uploads Commands to Flux Storage. Commands will be replaced with a link to Flux Storage instead. This increases maximum allowed size of Commands while adding basic privacy - instead of commands, link to Flux Storage will be visible.'",modifiers:{hover:!0,top:!0}}],attrs:{id:"upload-cmd",variant:"outline-primary"}},[t("v-icon",{attrs:{name:"cloud-upload-alt"}})],1),t("confirm-dialog",{attrs:{target:"upload-cmd","confirm-button":"Upload Commands",width:600},on:{confirm:function(t){return e.uploadCmdToFluxStorage(s)}}})],1)]),t("div",{staticClass:"form-row form-group"},[t("label",{staticClass:"col-3 col-form-label"},[e._v(" Cont. Data "),t("v-icon",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.top",value:"Data folder that is shared by application to App volume. Prepend with r: for synced data between instances. Ex. r:/data. Prepend with g: for synced data and primary/standby solution. Ex. g:/data",expression:"'Data folder that is shared by application to App volume. Prepend with r: for synced data between instances. Ex. r:/data. Prepend with g: for synced data and primary/standby solution. Ex. g:/data'",modifiers:{hover:!0,top:!0}}],staticClass:"mr-1",attrs:{name:"info-circle"}})],1),t("div",{staticClass:"col"},[t("b-form-input",{attrs:{id:`containerData-${a.name}_${e.appUpdateSpecification.name}`},model:{value:a.containerData,callback:function(t){e.$set(a,"containerData",t)},expression:"component.containerData"}})],1)]),e.appUpdateSpecification.version>=7&&e.isPrivateApp?t("div",{staticClass:"form-row form-group"},[t("label",{staticClass:"col-3 col-form-label"},[e._v(" Secrets "),t("v-icon",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.top",value:"Array of strings of Secret Environmental Parameters. This will be encrypted and accessible to selected Enterprise Nodes only",expression:"'Array of strings of Secret Environmental Parameters. This will be encrypted and accessible to selected Enterprise Nodes only'",modifiers:{hover:!0,top:!0}}],staticClass:"mr-1",attrs:{name:"info-circle"}})],1),t("div",{staticClass:"col"},[t("b-form-input",{attrs:{id:`secrets-${a.name}_${e.appUpdateSpecification.name}`,placeholder:"[]"},model:{value:a.secrets,callback:function(t){e.$set(a,"secrets",t)},expression:"component.secrets"}})],1)]):e._e(),t("br"),t("b-card-title",[e._v(" Resources    "),t("h6",{staticClass:"inline text-small"},[e._v(" Tiered: "),t("b-form-checkbox",{staticClass:"custom-control-primary inline",attrs:{id:"tiered",switch:""},model:{value:a.tiered,callback:function(t){e.$set(a,"tiered",t)},expression:"component.tiered"}})],1)]),a.tiered?e._e():t("b-form-group",{attrs:{"label-cols":"3","label-cols-lg":"2",label:"CPU","label-for":"cpu"}},[t("div",{staticClass:"mx-1"},[e._v(" "+e._s(a.cpu)+" ")]),t("b-form-input",{attrs:{id:`cpu-${a.name}_${e.appUpdateSpecification.name}`,placeholder:"CPU cores to use by default",type:"range",min:"0.1",max:"15",step:"0.1"},model:{value:a.cpu,callback:function(t){e.$set(a,"cpu",t)},expression:"component.cpu"}})],1),a.tiered?e._e():t("b-form-group",{attrs:{"label-cols":"3","label-cols-lg":"2",label:"RAM","label-for":"ram"}},[t("div",{staticClass:"mx-1"},[e._v(" "+e._s(a.ram)+" ")]),t("b-form-input",{attrs:{id:`ram-${a.name}_${e.appUpdateSpecification.name}`,placeholder:"RAM in MB value to use by default",type:"range",min:"100",max:"59000",step:"100"},model:{value:a.ram,callback:function(t){e.$set(a,"ram",t)},expression:"component.ram"}})],1),a.tiered?e._e():t("b-form-group",{attrs:{"label-cols":"3","label-cols-lg":"2",label:"SSD","label-for":"ssd"}},[t("div",{staticClass:"mx-1"},[e._v(" "+e._s(a.hdd)+" ")]),t("b-form-input",{attrs:{id:`ssd-${a.name}_${e.appUpdateSpecification.name}`,placeholder:"SSD in GB value to use by default",type:"range",min:"1",max:"820",step:"1"},model:{value:a.hdd,callback:function(t){e.$set(a,"hdd",t)},expression:"component.hdd"}})],1)],1)],1)],1),a.tiered?t("b-row",[t("b-col",{attrs:{xs:"12",md:"6",lg:"4"}},[t("b-card",{attrs:{title:"Cumulus"}},[t("div",[e._v(" CPU: "+e._s(a.cpubasic)+" ")]),t("b-form-input",{attrs:{type:"range",min:"0.1",max:"3",step:"0.1"},model:{value:a.cpubasic,callback:function(t){e.$set(a,"cpubasic",t)},expression:"component.cpubasic"}}),t("div",[e._v(" RAM: "+e._s(a.rambasic)+" ")]),t("b-form-input",{attrs:{type:"range",min:"100",max:"5000",step:"100"},model:{value:a.rambasic,callback:function(t){e.$set(a,"rambasic",t)},expression:"component.rambasic"}}),t("div",[e._v(" SSD: "+e._s(a.hddbasic)+" ")]),t("b-form-input",{attrs:{type:"range",min:"1",max:"180",step:"1"},model:{value:a.hddbasic,callback:function(t){e.$set(a,"hddbasic",t)},expression:"component.hddbasic"}})],1)],1),t("b-col",{attrs:{xs:"12",md:"6",lg:"4"}},[t("b-card",{attrs:{title:"Nimbus"}},[t("div",[e._v(" CPU: "+e._s(a.cpusuper)+" ")]),t("b-form-input",{attrs:{type:"range",min:"0.1",max:"7",step:"0.1"},model:{value:a.cpusuper,callback:function(t){e.$set(a,"cpusuper",t)},expression:"component.cpusuper"}}),t("div",[e._v(" RAM: "+e._s(a.ramsuper)+" ")]),t("b-form-input",{attrs:{type:"range",min:"100",max:"28000",step:"100"},model:{value:a.ramsuper,callback:function(t){e.$set(a,"ramsuper",t)},expression:"component.ramsuper"}}),t("div",[e._v(" SSD: "+e._s(a.hddsuper)+" ")]),t("b-form-input",{attrs:{type:"range",min:"1",max:"400",step:"1"},model:{value:a.hddsuper,callback:function(t){e.$set(a,"hddsuper",t)},expression:"component.hddsuper"}})],1)],1),t("b-col",{attrs:{xs:"12",lg:"4"}},[t("b-card",{attrs:{title:"Stratus"}},[t("div",[e._v(" CPU: "+e._s(a.cpubamf)+" ")]),t("b-form-input",{attrs:{type:"range",min:"0.1",max:"15",step:"0.1"},model:{value:a.cpubamf,callback:function(t){e.$set(a,"cpubamf",t)},expression:"component.cpubamf"}}),t("div",[e._v(" RAM: "+e._s(a.rambamf)+" ")]),t("b-form-input",{attrs:{type:"range",min:"100",max:"59000",step:"100"},model:{value:a.rambamf,callback:function(t){e.$set(a,"rambamf",t)},expression:"component.rambamf"}}),t("div",[e._v(" SSD: "+e._s(a.hddbamf)+" ")]),t("b-form-input",{attrs:{type:"range",min:"1",max:"820",step:"1"},model:{value:a.hddbamf,callback:function(t){e.$set(a,"hddbamf",t)},expression:"component.hddbamf"}})],1)],1)],1):e._e()],1)})),e.appUpdateSpecification.version>=7&&e.isPrivateApp?t("b-card",{attrs:{title:"Enterprise Nodes"}},[e._v(" Only these selected enterprise nodes will be able to run your application and are used for encryption. Only these nodes are able to access your private image and secrets."),t("br"),e._v(" Changing the node list after the message is computed and encrypted will result in a failure to run. Secrets and Repository Authentication would need to be adjusted again."),t("br"),e._v(" The score determines how reputable a node and node operator are. The higher the score, the higher the reputation on the network."),t("br"),e._v(" Secrets and Repository Authentication need to be set again if this node list changes."),t("br"),e._v(" The more nodes can run your application, the more stable it is. On the other hand, more nodes will have access to your private data!"),t("br"),t("b-row",[t("b-col",{staticClass:"my-1",attrs:{md:"4",sm:"4"}},[t("b-form-group",{staticClass:"mb-0"},[t("label",{staticClass:"d-inline-block text-left mr-50"},[e._v("Per page")]),t("b-form-select",{staticClass:"w-50",attrs:{id:"perPageSelect",size:"sm",options:e.entNodesTable.pageOptions},model:{value:e.entNodesTable.perPage,callback:function(t){e.$set(e.entNodesTable,"perPage",t)},expression:"entNodesTable.perPage"}})],1)],1),t("b-col",{staticClass:"my-1",attrs:{md:"8"}},[t("b-form-group",{staticClass:"mb-0",attrs:{label:"Filter","label-cols-sm":"1","label-align-sm":"right","label-for":"filterInput"}},[t("b-input-group",{attrs:{size:"sm"}},[t("b-form-input",{attrs:{id:"filterInput",type:"search",placeholder:"Type to Search"},model:{value:e.entNodesTable.filter,callback:function(t){e.$set(e.entNodesTable,"filter",t)},expression:"entNodesTable.filter"}}),t("b-input-group-append",[t("b-button",{attrs:{disabled:!e.entNodesTable.filter},on:{click:function(t){e.entNodesTable.filter=""}}},[e._v(" Clear ")])],1)],1)],1)],1),t("b-col",{attrs:{cols:"12"}},[t("b-table",{staticClass:"app-enterprise-nodes-table",attrs:{striped:"",hover:"",responsive:"","per-page":e.entNodesTable.perPage,"current-page":e.entNodesTable.currentPage,items:e.selectedEnterpriseNodes,fields:e.entNodesTable.fields,"sort-by":e.entNodesTable.sortBy,"sort-desc":e.entNodesTable.sortDesc,"sort-direction":e.entNodesTable.sortDirection,filter:e.entNodesTable.filter,"filter-included-fields":e.entNodesTable.filterOn,"show-empty":"","empty-text":"No Enterprise Nodes selected"},on:{"update:sortBy":function(t){return e.$set(e.entNodesTable,"sortBy",t)},"update:sort-by":function(t){return e.$set(e.entNodesTable,"sortBy",t)},"update:sortDesc":function(t){return e.$set(e.entNodesTable,"sortDesc",t)},"update:sort-desc":function(t){return e.$set(e.entNodesTable,"sortDesc",t)}},scopedSlots:e._u([{key:"cell(show_details)",fn:function(a){return[t("a",{on:{click:a.toggleDetails}},[a.detailsShowing?e._e():t("v-icon",{attrs:{name:"chevron-down"}}),a.detailsShowing?t("v-icon",{attrs:{name:"chevron-up"}}):e._e()],1)]}},{key:"row-details",fn:function(a){return[t("b-card",{},[a.item.ip?t("list-entry",{attrs:{title:"IP Address",data:a.item.ip}}):e._e(),t("list-entry",{attrs:{title:"Public Key",data:a.item.pubkey}}),t("list-entry",{attrs:{title:"Node Address",data:a.item.payment_address}}),t("list-entry",{attrs:{title:"Collateral",data:`${a.item.txhash}:${a.item.outidx}`}}),t("list-entry",{attrs:{title:"Tier",data:a.item.tier}}),t("list-entry",{attrs:{title:"Overall Score",data:a.item.score.toString()}}),t("list-entry",{attrs:{title:"Collateral Score",data:a.item.collateralPoints.toString()}}),t("list-entry",{attrs:{title:"Maturity Score",data:a.item.maturityPoints.toString()}}),t("list-entry",{attrs:{title:"Public Key Score",data:a.item.pubKeyPoints.toString()}}),t("list-entry",{attrs:{title:"Enterprise Apps Assigned",data:a.item.enterpriseApps.toString()}}),t("div",[t("b-button",{staticClass:"mr-0",attrs:{size:"sm",variant:"primary"},on:{click:function(t){e.openNodeFluxOS(a.item.ip.split(":")[0],a.item.ip.split(":")[1]?+a.item.ip.split(":")[1]-1:16126)}}},[e._v(" Visit FluxNode ")])],1)],1)]}},{key:"cell(ip)",fn:function(t){return[e._v(" "+e._s(t.item.ip)+" ")]}},{key:"cell(payment_address)",fn:function(t){return[e._v(" "+e._s(t.item.payment_address.slice(0,8))+"..."+e._s(t.item.payment_address.slice(t.item.payment_address.length-8,t.item.payment_address.length))+" ")]}},{key:"cell(tier)",fn:function(t){return[e._v(" "+e._s(t.item.tier)+" ")]}},{key:"cell(score)",fn:function(t){return[e._v(" "+e._s(t.item.score)+" ")]}},{key:"cell(actions)",fn:function(a){return[t("b-button",{staticClass:"mr-1 mb-1",attrs:{id:`remove-${a.item.ip}`,size:"sm",variant:"danger"}},[e._v(" Remove ")]),t("confirm-dialog",{attrs:{target:`remove-${a.item.ip}`,"confirm-button":"Remove FluxNode"},on:{confirm:function(t){return e.removeFluxNode(a.item.ip)}}}),t("b-button",{staticClass:"mr-1 mb-1",attrs:{size:"sm",variant:"primary"},on:{click:function(t){e.openNodeFluxOS(a.item.ip.split(":")[0],a.item.ip.split(":")[1]?+a.item.ip.split(":")[1]-1:16126)}}},[e._v(" Visit ")])]}}],null,!1,2861207668)})],1),t("b-col",{attrs:{cols:"12"}},[t("b-pagination",{staticClass:"my-0",attrs:{"total-rows":e.selectedEnterpriseNodes.length,"per-page":e.entNodesTable.perPage,align:"center",size:"sm"},model:{value:e.entNodesTable.currentPage,callback:function(t){e.$set(e.entNodesTable,"currentPage",t)},expression:"entNodesTable.currentPage"}}),t("span",{staticClass:"table-total"},[e._v("Total: "+e._s(e.selectedEnterpriseNodes.length))])],1)],1),t("br"),t("br"),t("div",{staticClass:"text-center"},[t("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"mb-2 mr-2",attrs:{variant:"primary","aria-label":"Auto Select Enterprise Nodes"},on:{click:e.autoSelectNodes}},[e._v(" Auto Select Enterprise Nodes ")]),t("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"mb-2 mr-2",attrs:{variant:"primary","aria-label":"Choose Enterprise Nodes"},on:{click:function(t){e.chooseEnterpriseDialog=!0}}},[e._v(" Choose Enterprise Nodes ")])],1)],1):e._e()],2):t("div",[t("b-row",{staticClass:"match-height"},[t("b-col",{attrs:{xs:"12",xl:"6"}},[t("b-card",{attrs:{title:"Details"}},[t("b-form-group",{attrs:{"label-cols":"2",label:"Version","label-for":"version"}},[t("b-form-input",{attrs:{id:"version",placeholder:e.appUpdateSpecification.version.toString(),readonly:""},model:{value:e.appUpdateSpecification.version,callback:function(t){e.$set(e.appUpdateSpecification,"version",t)},expression:"appUpdateSpecification.version"}})],1),t("b-form-group",{attrs:{"label-cols":"2",label:"Name","label-for":"name"}},[t("b-form-input",{attrs:{id:"name",placeholder:"App Name",readonly:""},model:{value:e.appUpdateSpecification.name,callback:function(t){e.$set(e.appUpdateSpecification,"name",t)},expression:"appUpdateSpecification.name"}})],1),t("b-form-group",{attrs:{"label-cols":"2",label:"Desc.","label-for":"desc"}},[t("b-form-textarea",{attrs:{id:"desc",placeholder:"Description",rows:"3"},model:{value:e.appUpdateSpecification.description,callback:function(t){e.$set(e.appUpdateSpecification,"description",t)},expression:"appUpdateSpecification.description"}})],1),t("b-form-group",{attrs:{"label-cols":"2",label:"Repo","label-for":"repo"}},[t("b-form-input",{attrs:{id:"repo",placeholder:"Docker image namespace/repository:tag",readonly:""},model:{value:e.appUpdateSpecification.repotag,callback:function(t){e.$set(e.appUpdateSpecification,"repotag",t)},expression:"appUpdateSpecification.repotag"}})],1),t("b-form-group",{attrs:{"label-cols":"2",label:"Owner","label-for":"owner"}},[t("b-form-input",{attrs:{id:"owner",placeholder:"Flux ID of Application Owner"},model:{value:e.appUpdateSpecification.owner,callback:function(t){e.$set(e.appUpdateSpecification,"owner",t)},expression:"appUpdateSpecification.owner"}})],1),t("br"),e.appUpdateSpecification.version>=3?t("b-form-group",{attrs:{"label-cols":"2","label-cols-lg":"1",label:"Instances","label-for":"instances"}},[t("div",{staticClass:"mx-1"},[e._v(" "+e._s(e.appUpdateSpecification.instances)+" ")]),t("b-form-input",{attrs:{id:"instances",placeholder:"Minimum number of application instances to be spawned",type:"range",min:"3",max:e.maxInstances,step:"1"},model:{value:e.appUpdateSpecification.instances,callback:function(t){e.$set(e.appUpdateSpecification,"instances",t)},expression:"appUpdateSpecification.instances"}})],1):e._e(),t("br"),e.appUpdateSpecification.version>=6?t("b-form-group",{attrs:{"label-cols":"2","label-cols-lg":"1",label:"Period","label-for":"period"}},[t("div",{staticClass:"mx-1"},[e._v(" "+e._s(e.getExpireLabel||(e.appUpdateSpecification.expire?`${e.appUpdateSpecification.expire} blocks`:"1 month"))+" ")]),t("b-form-input",{attrs:{id:"period",placeholder:"How long an application will live on Flux network",type:"range",min:0,max:5,step:1},model:{value:e.expirePosition,callback:function(t){e.expirePosition=t},expression:"expirePosition"}})],1):e._e()],1)],1),t("b-col",{attrs:{xs:"12",xl:"6"}},[t("b-card",{attrs:{title:"Environment"}},[t("div",{staticClass:"form-row form-group"},[t("label",{staticClass:"col-3 col-form-label"},[e._v(" Ports "),t("v-icon",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.top",value:"Array of Ports on which application will be available",expression:"'Array of Ports on which application will be available'",modifiers:{hover:!0,top:!0}}],staticClass:"mr-1",attrs:{name:"info-circle"}})],1),t("div",{staticClass:"col"},[t("b-form-input",{attrs:{id:"ports"},model:{value:e.appUpdateSpecification.ports,callback:function(t){e.$set(e.appUpdateSpecification,"ports",t)},expression:"appUpdateSpecification.ports"}})],1)]),t("div",{staticClass:"form-row form-group"},[t("label",{staticClass:"col-3 col-form-label"},[e._v(" Domains "),t("v-icon",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.top",value:"Array of strings of Domains managed by Flux Domain Manager (FDM). Length must correspond to available ports. Use empty strings for no domains",expression:"'Array of strings of Domains managed by Flux Domain Manager (FDM). Length must correspond to available ports. Use empty strings for no domains'",modifiers:{hover:!0,top:!0}}],staticClass:"mr-1",attrs:{name:"info-circle"}})],1),t("div",{staticClass:"col"},[t("b-form-input",{attrs:{id:"domains"},model:{value:e.appUpdateSpecification.domains,callback:function(t){e.$set(e.appUpdateSpecification,"domains",t)},expression:"appUpdateSpecification.domains"}})],1)]),t("div",{staticClass:"form-row form-group"},[t("label",{staticClass:"col-3 col-form-label"},[e._v(" Environment "),t("v-icon",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.top",value:"Array of strings of Environmental Parameters",expression:"'Array of strings of Environmental Parameters'",modifiers:{hover:!0,top:!0}}],staticClass:"mr-1",attrs:{name:"info-circle"}})],1),t("div",{staticClass:"col"},[t("b-form-input",{attrs:{id:"environmentParameters"},model:{value:e.appUpdateSpecification.enviromentParameters,callback:function(t){e.$set(e.appUpdateSpecification,"enviromentParameters",t)},expression:"appUpdateSpecification.enviromentParameters"}})],1)]),t("div",{staticClass:"form-row form-group"},[t("label",{staticClass:"col-3 col-form-label"},[e._v(" Commands "),t("v-icon",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.top",value:"Array of strings of Commands",expression:"'Array of strings of Commands'",modifiers:{hover:!0,top:!0}}],staticClass:"mr-1",attrs:{name:"info-circle"}})],1),t("div",{staticClass:"col"},[t("b-form-input",{attrs:{id:"commands"},model:{value:e.appUpdateSpecification.commands,callback:function(t){e.$set(e.appUpdateSpecification,"commands",t)},expression:"appUpdateSpecification.commands"}})],1)]),t("div",{staticClass:"form-row form-group"},[t("label",{staticClass:"col-3 col-form-label"},[e._v(" Cont. Ports "),t("v-icon",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.top",value:"Container Ports - Array of ports which your container has",expression:"'Container Ports - Array of ports which your container has'",modifiers:{hover:!0,top:!0}}],staticClass:"mr-1",attrs:{name:"info-circle"}})],1),t("div",{staticClass:"col"},[t("b-form-input",{attrs:{id:"containerPorts"},model:{value:e.appUpdateSpecification.containerPorts,callback:function(t){e.$set(e.appUpdateSpecification,"containerPorts",t)},expression:"appUpdateSpecification.containerPorts"}})],1)]),t("div",{staticClass:"form-row form-group"},[t("label",{staticClass:"col-3 col-form-label"},[e._v(" Cont. Data "),t("v-icon",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.top",value:"Data folder that is shared by application to App volume. Prepend with r: for synced data between instances. Ex. r:/data. Prepend with g: for synced data and primary/standby solution. Ex. g:/data",expression:"'Data folder that is shared by application to App volume. Prepend with r: for synced data between instances. Ex. r:/data. Prepend with g: for synced data and primary/standby solution. Ex. g:/data'",modifiers:{hover:!0,top:!0}}],staticClass:"mr-1",attrs:{name:"info-circle"}})],1),t("div",{staticClass:"col"},[t("b-form-input",{attrs:{id:"containerData"},model:{value:e.appUpdateSpecification.containerData,callback:function(t){e.$set(e.appUpdateSpecification,"containerData",t)},expression:"appUpdateSpecification.containerData"}})],1)])])],1)],1),t("b-row",{staticClass:"match-height"},[t("b-col",{attrs:{xs:"12"}},[t("b-card",[t("b-card-title",[e._v(" Resources    "),t("h6",{staticClass:"inline etext-small"},[e._v(" Tiered: "),t("b-form-checkbox",{staticClass:"custom-control-primary inline",attrs:{id:"tiered",switch:""},model:{value:e.appUpdateSpecification.tiered,callback:function(t){e.$set(e.appUpdateSpecification,"tiered",t)},expression:"appUpdateSpecification.tiered"}})],1)]),e.appUpdateSpecification.tiered?e._e():t("b-form-group",{attrs:{"label-cols":"2","label-cols-lg":"1",label:"CPU","label-for":"cpu"}},[t("div",{staticClass:"mx-1"},[e._v(" "+e._s(e.appUpdateSpecification.cpu)+" ")]),t("b-form-input",{attrs:{id:"cpu",placeholder:"CPU cores to use by default",type:"range",min:"0.1",max:"15",step:"0.1"},model:{value:e.appUpdateSpecification.cpu,callback:function(t){e.$set(e.appUpdateSpecification,"cpu",t)},expression:"appUpdateSpecification.cpu"}})],1),e.appUpdateSpecification.tiered?e._e():t("b-form-group",{attrs:{"label-cols":"2","label-cols-lg":"1",label:"RAM","label-for":"ram"}},[t("div",{staticClass:"mx-1"},[e._v(" "+e._s(e.appUpdateSpecification.ram)+" ")]),t("b-form-input",{attrs:{id:"ram",placeholder:"RAM in MB value to use by default",type:"range",min:"100",max:"59000",step:"100"},model:{value:e.appUpdateSpecification.ram,callback:function(t){e.$set(e.appUpdateSpecification,"ram",t)},expression:"appUpdateSpecification.ram"}})],1),e.appUpdateSpecification.tiered?e._e():t("b-form-group",{attrs:{"label-cols":"2","label-cols-lg":"1",label:"SSD","label-for":"ssd"}},[t("div",{staticClass:"mx-1"},[e._v(" "+e._s(e.appUpdateSpecification.hdd)+" ")]),t("b-form-input",{attrs:{id:"ssd",placeholder:"SSD in GB value to use by default",type:"range",min:"1",max:"820",step:"1"},model:{value:e.appUpdateSpecification.hdd,callback:function(t){e.$set(e.appUpdateSpecification,"hdd",t)},expression:"appUpdateSpecification.hdd"}})],1)],1)],1)],1),e.appUpdateSpecification.tiered?t("b-row",[t("b-col",{attrs:{xs:"12",md:"6",lg:"4"}},[t("b-card",{attrs:{title:"Cumulus"}},[t("div",[e._v(" CPU: "+e._s(e.appUpdateSpecification.cpubasic)+" ")]),t("b-form-input",{attrs:{type:"range",min:"0.1",max:"3",step:"0.1"},model:{value:e.appUpdateSpecification.cpubasic,callback:function(t){e.$set(e.appUpdateSpecification,"cpubasic",t)},expression:"appUpdateSpecification.cpubasic"}}),t("div",[e._v(" RAM: "+e._s(e.appUpdateSpecification.rambasic)+" ")]),t("b-form-input",{attrs:{type:"range",min:"100",max:"5000",step:"100"},model:{value:e.appUpdateSpecification.rambasic,callback:function(t){e.$set(e.appUpdateSpecification,"rambasic",t)},expression:"appUpdateSpecification.rambasic"}}),t("div",[e._v(" SSD: "+e._s(e.appUpdateSpecification.hddbasic)+" ")]),t("b-form-input",{attrs:{type:"range",min:"1",max:"180",step:"1"},model:{value:e.appUpdateSpecification.hddbasic,callback:function(t){e.$set(e.appUpdateSpecification,"hddbasic",t)},expression:"appUpdateSpecification.hddbasic"}})],1)],1),t("b-col",{attrs:{xs:"12",md:"6",lg:"4"}},[t("b-card",{attrs:{title:"Nimbus"}},[t("div",[e._v(" CPU: "+e._s(e.appUpdateSpecification.cpusuper)+" ")]),t("b-form-input",{attrs:{type:"range",min:"0.1",max:"7",step:"0.1"},model:{value:e.appUpdateSpecification.cpusuper,callback:function(t){e.$set(e.appUpdateSpecification,"cpusuper",t)},expression:"appUpdateSpecification.cpusuper"}}),t("div",[e._v(" RAM: "+e._s(e.appUpdateSpecification.ramsuper)+" ")]),t("b-form-input",{attrs:{type:"range",min:"100",max:"28000",step:"100"},model:{value:e.appUpdateSpecification.ramsuper,callback:function(t){e.$set(e.appUpdateSpecification,"ramsuper",t)},expression:"appUpdateSpecification.ramsuper"}}),t("div",[e._v(" SSD: "+e._s(e.appUpdateSpecification.hddsuper)+" ")]),t("b-form-input",{attrs:{type:"range",min:"1",max:"400",step:"1"},model:{value:e.appUpdateSpecification.hddsuper,callback:function(t){e.$set(e.appUpdateSpecification,"hddsuper",t)},expression:"appUpdateSpecification.hddsuper"}})],1)],1),t("b-col",{attrs:{xs:"12",lg:"4"}},[t("b-card",{attrs:{title:"Stratus"}},[t("div",[e._v(" CPU: "+e._s(e.appUpdateSpecification.cpubamf)+" ")]),t("b-form-input",{attrs:{type:"range",min:"0.1",max:"15",step:"0.1"},model:{value:e.appUpdateSpecification.cpubamf,callback:function(t){e.$set(e.appUpdateSpecification,"cpubamf",t)},expression:"appUpdateSpecification.cpubamf"}}),t("div",[e._v(" RAM: "+e._s(e.appUpdateSpecification.rambamf)+" ")]),t("b-form-input",{attrs:{type:"range",min:"100",max:"59000",step:"100"},model:{value:e.appUpdateSpecification.rambamf,callback:function(t){e.$set(e.appUpdateSpecification,"rambamf",t)},expression:"appUpdateSpecification.rambamf"}}),t("div",[e._v(" SSD: "+e._s(e.appUpdateSpecification.hddbamf)+" ")]),t("b-form-input",{attrs:{type:"range",min:"1",max:"820",step:"1"},model:{value:e.appUpdateSpecification.hddbamf,callback:function(t){e.$set(e.appUpdateSpecification,"hddbamf",t)},expression:"appUpdateSpecification.hddbamf"}})],1)],1)],1):e._e()],1)]):e._e(),e.appUpdateSpecification.version>=6?t("div",{staticClass:"form-row form-group d-flex align-items-center"},[t("b-input-group",[t("b-input-group-prepend",[t("b-input-group-text",[t("b-icon",{staticClass:"mr-1",attrs:{icon:"clock-history"}}),e._v(" Extend Subscription "),t("v-icon",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.top",value:"Select if you want to extend or change your subscription period",expression:"'Select if you want to extend or change your subscription period'",modifiers:{hover:!0,top:!0}}],staticClass:"ml-1",attrs:{name:"info-circle"}}),e._v("    ")],1)],1),t("b-input-group-append",{attrs:{"is-text":""}},[t("b-form-checkbox",{staticClass:"custom-control-primary",attrs:{id:"extendSubscription",switch:""},model:{value:e.extendSubscription,callback:function(t){e.extendSubscription=t},expression:"extendSubscription"}})],1)],1)],1):e._e(),e.extendSubscription&&e.appUpdateSpecification.version>=6?t("div",{staticClass:"form-row form-group"},[t("label",{staticClass:"col-form-label"},[e._v(" Period "),t("v-icon",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.top",value:"Time your application subscription will be extended",expression:"'Time your application subscription will be extended'",modifiers:{hover:!0,top:!0}}],staticClass:"mr-2",attrs:{name:"info-circle"}}),t("kbd",{staticClass:"bg-primary mr-1"},[t("b",[e._v(e._s(e.getExpireLabel||(e.appUpdateSpecification.expire?`${e.appUpdateSpecification.expire} blocks`:"1 month")))])])],1),t("div",{staticClass:"w-100",staticStyle:{flex:"1",padding:"10px"}},[t("input",{directives:[{name:"model",rawName:"v-model",value:e.expirePosition,expression:"expirePosition"}],staticClass:"form-control-range",staticStyle:{width:"100%",outline:"none"},attrs:{id:"period",type:"range",min:0,max:5,step:1},domProps:{value:e.expirePosition},on:{__r:function(t){e.expirePosition=t.target.value}}})])]):e._e(),t("div",[e._v(" Currently your application is subscribed until "),t("b",[e._v(e._s(new Date(e.appRunningTill.current).toLocaleString("en-GB",e.timeoptions.shortDate)))]),e._v(". "),e.extendSubscription?t("span",[t("br"),e._v(" Your new adjusted subscription end on "),t("b",[e._v(e._s(new Date(e.appRunningTill.new).toLocaleString("en-GB",e.timeoptions.shortDate)))]),e._v(". ")]):e._e(),e.appRunningTill.new0?t("h4",[t("kbd",{staticClass:"d-flex justify-content-center bg-primary mb-2"},[e._v("Discount - "+e._s(e.applicationPriceFluxDiscount)+"%")])]):e._e(),t("h4",{staticClass:"text-center mb-2"},[e._v(" Pay with Zelcore/SSP ")]),t("div",{staticClass:"loginRow"},[t("a",{attrs:{href:`zel:?action=pay&coin=zelcash&address=${e.deploymentAddress}&amount=${e.appPricePerSpecs}&message=${e.updateHash}&icon=https%3A%2F%2Fraw.githubusercontent.com%2Frunonflux%2Fflux%2Fmaster%2Fflux_banner.png`}},[t("img",{staticClass:"walletIcon",attrs:{src:a(96358),alt:"Flux ID",height:"100%",width:"100%"}})]),t("a",{on:{click:e.initSSPpay}},[t("img",{staticClass:"walletIcon",attrs:{src:"dark"===e.skin?a(56070):a(58962),alt:"SSP",height:"100%",width:"100%"}})])])])],1)],1),e.updateHash&&e.freeUpdate?t("b-row",{staticClass:"match-height"},[t("b-card",[t("b-card-text",[e._v(" Everything is ready, your application update should be effective automatically in less than 30 minutes. ")])],1)],1):e._e()],1):e._e()]),t("b-tab",{attrs:{title:"Cancel Subscription",disabled:!e.isAppOwner||e.appUpdateSpecification.version<6}},[e.fluxCommunication?e._e():t("div",{staticClass:"text-danger"},[e._v(" Warning: Connected Flux is not communicating properly with Flux network ")]),t("div",{staticStyle:{border:"1px solid #ccc","border-radius":"8px",height:"45px",padding:"12px","line-height":"0px"}},[t("h5",[t("b-icon",{staticClass:"mr-1",attrs:{icon:"ui-checks-grid"}}),e._v(" Cancel Application subscription ")],1)]),t("br"),t("div",[e._v(" Currently your application is subscribed until "),t("b",[e._v(e._s(new Date(e.appRunningTill.current).toLocaleString("en-GB",e.timeoptions.shortDate)))]),e._v(". "),t("br"),t("b",[e._v("WARNING: By cancelling your application subscription, your application will be removed from the network and all data will be lost.")])]),t("br"),t("div",[t("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"mb-2 w-100",attrs:{variant:"outline-success","aria-label":"Compute Cancel Message"},on:{click:e.checkFluxCancelSubscriptionAndFormatMessage}},[e._v(" Compute Cancel Message ")])],1),e.dataToSign?t("div",[t("b-form-group",{attrs:{"label-cols":"3","label-cols-lg":"2",label:"Update Message","label-for":"updatemessage"}},[t("div",{staticClass:"text-wrap"},[t("b-form-textarea",{attrs:{id:"updatemessage",rows:"6",readonly:""},model:{value:e.dataToSign,callback:function(t){e.dataToSign=t},expression:"dataToSign"}}),t("b-icon",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip",value:e.tooltipText,expression:"tooltipText"}],ref:"copyButtonRef",staticClass:"clipboard icon",attrs:{scale:"1.5",icon:"clipboard"},on:{click:e.copyMessageToSign}})],1)]),t("b-form-group",{attrs:{"label-cols":"3","label-cols-lg":"2",label:"Signature","label-for":"updatesignature"}},[t("b-form-input",{attrs:{id:"updatesignature"},model:{value:e.signature,callback:function(t){e.signature=t},expression:"signature"}})],1),t("b-row",{staticClass:"match-height"},[t("b-col",{attrs:{xs:"6",lg:"8"}},[t("b-card",[t("br"),t("div",{staticClass:"text-center"},[t("h4",[t("b-icon",{staticClass:"mr-1",attrs:{scale:"1.4",icon:"chat-right"}}),e._v(" Data has to be signed by the last application owner ")],1)]),t("br"),t("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"w-100",attrs:{variant:"outline-success","aria-label":"Update Flux App"},on:{click:e.update}},[e._v(" Cancel Application ")])],1)],1),t("b-col",{attrs:{xs:"6",lg:"4"}},[t("b-card",{staticClass:"text-center",attrs:{title:"Sign with"}},[t("div",{staticClass:"loginRow"},[t("a",{attrs:{href:`zel:?action=sign&message=${e.dataToSign}&icon=https%3A%2F%2Fraw.githubusercontent.com%2Frunonflux%2Fflux%2Fmaster%2FzelID.svg&callback=${e.callbackValue}`},on:{click:e.initiateSignWSUpdate}},[t("img",{staticClass:"walletIcon",attrs:{src:a(96358),alt:"Flux ID",height:"100%",width:"100%"}})]),t("a",{on:{click:e.initSSP}},[t("img",{staticClass:"walletIcon",attrs:{src:"dark"===e.skin?a(56070):a(58962),alt:"SSP",height:"100%",width:"100%"}})])]),t("div",{staticClass:"loginRow"},[t("a",{on:{click:e.initWalletConnect}},[t("img",{staticClass:"walletIcon",attrs:{src:a(47622),alt:"WalletConnect",height:"100%",width:"100%"}})]),t("a",{on:{click:e.initMetamask}},[t("img",{staticClass:"walletIcon",attrs:{src:a(28125),alt:"Metamask",height:"100%",width:"100%"}})])]),t("div",{staticClass:"loginRow"},[t("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"my-1",staticStyle:{width:"250px"},attrs:{variant:"primary","aria-label":"Flux Single Sign On"},on:{click:e.initSignFluxSSO}},[e._v(" Flux Single Sign On (SSO) ")])],1)])],1)],1),e.updateHash?t("b-row",{staticClass:"match-height"},[t("b-card",[t("b-card-text",[e._v(" Everything is ready, your application cancelattion should be effective automatically in less than 30 minutes and removed from the network in the next ~3hours. ")])],1)],1):e._e()],1):e._e()])],1),e.output.length>0?t("div",{staticClass:"actionCenter"},[t("br"),t("b-row",[t("b-col",{attrs:{cols:"9"}},[t("b-form-textarea",{staticClass:"mt-1",attrs:{plaintext:"","no-resize":"",rows:e.output.length+1,value:e.stringOutput()}})],1),e.downloadOutputReturned?t("b-col",{attrs:{cols:"3"}},[t("h3",[e._v("Downloads")]),e._l(e.downloadOutput,(function(a){return t("div",{key:a.id},[t("h4",[e._v(" "+e._s(a.id))]),t("b-progress",{attrs:{value:a.detail.current/a.detail.total*100,max:"100",striped:"",height:"1rem",variant:a.variant}}),t("br")],1)}))],2):e._e()],1)],1):e._e(),e._m(0),t("b-modal",{attrs:{title:"Select Enterprise Nodes",size:"xl",centered:"","button-size":"sm","ok-only":"","ok-title":"Done"},model:{value:e.chooseEnterpriseDialog,callback:function(t){e.chooseEnterpriseDialog=t},expression:"chooseEnterpriseDialog"}},[t("b-row",[t("b-col",{staticClass:"my-1",attrs:{md:"4",sm:"4"}},[t("b-form-group",{staticClass:"mb-0"},[t("label",{staticClass:"d-inline-block text-left mr-50"},[e._v("Per page")]),t("b-form-select",{staticClass:"w-50",attrs:{id:"perPageSelect",size:"sm",options:e.entNodesSelectTable.pageOptions},model:{value:e.entNodesSelectTable.perPage,callback:function(t){e.$set(e.entNodesSelectTable,"perPage",t)},expression:"entNodesSelectTable.perPage"}})],1)],1),t("b-col",{staticClass:"my-1",attrs:{md:"8"}},[t("b-form-group",{staticClass:"mb-0",attrs:{label:"Filter","label-cols-sm":"1","label-align-sm":"right","label-for":"filterInput"}},[t("b-input-group",{attrs:{size:"sm"}},[t("b-form-input",{attrs:{id:"filterInput",type:"search",placeholder:"Type to Search"},model:{value:e.entNodesSelectTable.filter,callback:function(t){e.$set(e.entNodesSelectTable,"filter",t)},expression:"entNodesSelectTable.filter"}}),t("b-input-group-append",[t("b-button",{attrs:{disabled:!e.entNodesSelectTable.filter},on:{click:function(t){e.entNodesSelectTable.filter=""}}},[e._v(" Clear ")])],1)],1)],1)],1),t("b-col",{attrs:{cols:"12"}},[t("b-table",{staticClass:"app-enterprise-nodes-table",attrs:{striped:"",hover:"",responsive:"","per-page":e.entNodesSelectTable.perPage,"current-page":e.entNodesSelectTable.currentPage,items:e.enterpriseNodes,fields:e.entNodesSelectTable.fields,"sort-by":e.entNodesSelectTable.sortBy,"sort-desc":e.entNodesSelectTable.sortDesc,"sort-direction":e.entNodesSelectTable.sortDirection,filter:e.entNodesSelectTable.filter,"filter-included-fields":e.entNodesSelectTable.filterOn,"show-empty":"","empty-text":"No Enterprise Nodes For Addition Found"},on:{"update:sortBy":function(t){return e.$set(e.entNodesSelectTable,"sortBy",t)},"update:sort-by":function(t){return e.$set(e.entNodesSelectTable,"sortBy",t)},"update:sortDesc":function(t){return e.$set(e.entNodesSelectTable,"sortDesc",t)},"update:sort-desc":function(t){return e.$set(e.entNodesSelectTable,"sortDesc",t)}},scopedSlots:e._u([{key:"cell(show_details)",fn:function(a){return[t("a",{on:{click:a.toggleDetails}},[a.detailsShowing?e._e():t("v-icon",{attrs:{name:"chevron-down"}}),a.detailsShowing?t("v-icon",{attrs:{name:"chevron-up"}}):e._e()],1)]}},{key:"row-details",fn:function(a){return[t("b-card",{},[t("list-entry",{attrs:{title:"IP Address",data:a.item.ip}}),t("list-entry",{attrs:{title:"Public Key",data:a.item.pubkey}}),t("list-entry",{attrs:{title:"Node Address",data:a.item.payment_address}}),t("list-entry",{attrs:{title:"Collateral",data:`${a.item.txhash}:${a.item.outidx}`}}),t("list-entry",{attrs:{title:"Tier",data:a.item.tier}}),t("list-entry",{attrs:{title:"Overall Score",data:a.item.score.toString()}}),t("list-entry",{attrs:{title:"Collateral Score",data:a.item.collateralPoints.toString()}}),t("list-entry",{attrs:{title:"Maturity Score",data:a.item.maturityPoints.toString()}}),t("list-entry",{attrs:{title:"Public Key Score",data:a.item.pubKeyPoints.toString()}}),t("list-entry",{attrs:{title:"Enterprise Apps Assigned",data:a.item.enterpriseApps.toString()}}),t("div",[t("b-button",{staticClass:"mr-0",attrs:{size:"sm",variant:"primary"},on:{click:function(t){e.openNodeFluxOS(e.locationRow.item.ip.split(":")[0],e.locationRow.item.ip.split(":")[1]?+e.locationRow.item.ip.split(":")[1]-1:16126)}}},[e._v(" Visit FluxNode ")])],1)],1)]}},{key:"cell(ip)",fn:function(t){return[e._v(" "+e._s(t.item.ip)+" ")]}},{key:"cell(payment_address)",fn:function(t){return[e._v(" "+e._s(t.item.payment_address.slice(0,8))+"..."+e._s(t.item.payment_address.slice(t.item.payment_address.length-8,t.item.payment_address.length))+" ")]}},{key:"cell(tier)",fn:function(t){return[e._v(" "+e._s(t.item.tier)+" ")]}},{key:"cell(score)",fn:function(t){return[e._v(" "+e._s(t.item.score)+" ")]}},{key:"cell(actions)",fn:function(a){return[t("b-button",{staticClass:"mr-1 mb-1",attrs:{size:"sm",variant:"primary"},on:{click:function(t){e.openNodeFluxOS(a.item.ip.split(":")[0],a.item.ip.split(":")[1]?+a.item.ip.split(":")[1]-1:16126)}}},[e._v(" Visit ")]),e.selectedEnterpriseNodes.find((e=>e.ip===a.item.ip))?e._e():t("b-button",{staticClass:"mr-1 mb-1",attrs:{id:`add-${a.item.ip}`,size:"sm",variant:"success"},on:{click:function(t){return e.addFluxNode(a.item.ip)}}},[e._v(" Add ")]),e.selectedEnterpriseNodes.find((e=>e.ip===a.item.ip))?t("b-button",{staticClass:"mr-1 mb-1",attrs:{id:`add-${a.item.ip}`,size:"sm",variant:"danger"},on:{click:function(t){return e.removeFluxNode(a.item.ip)}}},[e._v(" Remove ")]):e._e()]}}])})],1),t("b-col",{attrs:{cols:"12"}},[t("b-pagination",{staticClass:"my-0",attrs:{"total-rows":e.entNodesSelectTable.totalRows,"per-page":e.entNodesSelectTable.perPage,align:"center",size:"sm"},model:{value:e.entNodesSelectTable.currentPage,callback:function(t){e.$set(e.entNodesSelectTable,"currentPage",t)},expression:"entNodesSelectTable.currentPage"}}),t("span",{staticClass:"table-total"},[e._v("Total: "+e._s(e.entNodesSelectTable.totalRows))])],1)],1)],1)],1)},i=[function(){var e=this,t=e._self._c;return t("div",[t("br"),e._v(" By managing an application I agree with "),t("a",{attrs:{href:"https://cdn.runonflux.io/Flux_Terms_of_Service.pdf",target:"_blank",rel:"noopener noreferrer"}},[e._v(" Terms of Service ")])])}],o=(a(70560),a(98858),a(61318),a(33228),a(73106)),r=a(58887),n=a(51015),l=a(16521),c=a(66456),p=a(92095),d=a(31642),u=a(87379),m=a(51909),h=a(71605),f=a(43022),g=a(4060),b=a(27754),v=a(22418),y=a(50725),w=a(86855),x=a(64206),S=a(49379),C=a(97794),_=a(26253),k=a(15193),A=a(1759),R=a(87167),T=a(333),$=a(46709),F=a(22183),P=a(19692),U=a(8051),L=a(78959),D=a(10962),N=a(45752),I=a(22981),E=a(5870),B=a(67166),O=a.n(B),M=a(20266),z=a(20629),q=a(34547),G=a(87156),V=a(51748),j=a(57071),H=a(90699),W=a.n(H),K=a(2272),Z=a(52829),J=a(5449),X=a(65864),Y=a(43672),Q=a(27616),ee=a(38511),te=a(94145),ae=a(12320),se=a(12617),ie=a(67511),oe=a(32993),re=a(12286),ne=a(53920),le=a(37307),ce=a(7174),pe=a.n(ce),de=a(48764)["lW"];const ue="df787edc6839c7de49d527bba9199eaa",me={projectId:ue,metadata:{name:"Flux Cloud",description:"Flux, Your Gateway to a Decentralized World",url:"https://home.runonflux.io",icons:["https://home.runonflux.io/img/logo.png"]}},he={},fe=new te.MetaMaskSDK(he);let ge;const be=a(97218),ve=a(80129),ye=a(58971),we=a(79650),xe=a(63005),Se=a(56761),Ce=a(57306),_e={components:{FileUpload:K.Z,JsonViewer:W(),BAlert:o.F,BTabs:r.M,BTab:n.L,BTable:l.h,BTd:c.S,BTr:p.G,BDropdown:d.R,BDropdownItem:u.E,BFormTag:m.d,BFormTags:h.D,BIcon:f.H,BInputGroup:g.w,BInputGroupPrepend:b.P,BInputGroupAppend:v.B,BCol:y.l,BCard:w._,BCardText:x.j,BCardTitle:S._,BCardGroup:C.o,BRow:_.T,BButton:k.T,BSpinner:A.X,BFormRadioGroup:R.Q,BFormTextarea:T.y,BFormGroup:$.x,BFormInput:F.e,BFormCheckbox:P.l,BFormSelect:U.K,BFormSelectOption:L.c,BPagination:D.c,BProgress:N.D,BProgressBar:I.Q,ConfirmDialog:G.Z,FluxMap:j.Z,ListEntry:V.Z,ToastificationContent:q.Z,VueApexCharts:O()},directives:{"b-tooltip":E.o,Ripple:M.Z},props:{appName:{type:String,required:!0},global:{type:Boolean,required:!0},installedApps:{type:Array,required:!0}},data(){return{logs:[],noLogs:!1,manualInProgress:!1,isLineByLineMode:!1,selectedLog:[],downloadingLog:!1,containers:[],selectedContainer:"",filterKeyword:"",refreshRate:4e3,lineCount:100,sinceTimestamp:"",displayTimestamps:!1,pollingInterval:null,pollingEnabled:!1,autoScroll:!0,fetchAllLogs:!1,requestInProgress:!1,copied:!1,debounceTimeout:null,progressVisable:!1,operationTitle:"",appInfoObject:[],tooltipText:"Copy to clipboard",tableBackup:0,tableKey:0,isBusy:!1,inputPathValue:"",fields:[{key:"name",label:"Name",sortable:!0},{key:"size",label:"Size",sortable:!0,thStyle:{width:"10%"}},{key:"modifiedAt",label:"Last modification",sortable:!0,thStyle:{width:"15%"}},{key:"actions",label:"Actions",sortable:!1,thStyle:{width:"10%"}}],timeoptions:{year:"numeric",month:"short",day:"numeric",hour:"2-digit",minute:"2-digit"},loadingFolder:!1,folderView:[],currentFolder:"",uploadFilesDialog:!1,filterFolder:"",createDirectoryDialogVisible:!1,renameDialogVisible:!1,newName:"",fileRenaming:"",newDirName:"",abortToken:{},downloaded:"",total:"",timeStamp:{},working:!1,storage:{used:0,total:2,available:2},customColors:[{color:"#6f7ad3",percentage:20},{color:"#1989fa",percentage:40},{color:"#5cb87a",percentage:60},{color:"#e6a23c",percentage:80},{color:"#f56c6c",percentage:100}],uploadTotal:"",uploadUploaded:"",uploadTimeStart:"",currentUploadTime:"",uploadFiles:[],fileProgressVolume:[],windowWidth:window.innerWidth,showTopUpload:!1,showTopRemote:!1,showTopFluxDrive:!1,alertMessage:"",alertVariant:"",restoreFromUpload:!1,restoreFromUploadStatus:"",restoreFromRemoteURLStatus:"",restoreFromFluxDriveStatus:"",downloadingFromUrl:!1,restoringFromFluxDrive:!1,files:[],backupProgress:!1,uploadProgress:!1,tarProgress:"",fileProgress:[],fileProgressFD:[],fluxDriveUploadStatus:"",showFluxDriveProgressBar:!1,showProgressBar:!1,showUploadProgressBar:!1,uploadStatus:"",restoreOptions:[{value:"FluxDrive",text:"FluxDrive",disabled:!1},{value:"Remote URL",text:"Remote URL",disabled:!1},{value:"Upload File",text:"Upload File",disabled:!1}],storageMethod:[{value:"flux",disabled:!1,text:"FluxDrive"},{value:"google",disabled:!0,text:"GoogleDrive"},{value:"as3",disabled:!0,text:"AS3Storage"}],components:[],selectedRestoreOption:null,selectedStorageMethod:null,selectedBackupComponents:[],items:[],items1:[],checkpoints:[],sigInPrivilage:!0,backupList:[],backupToUpload:[],restoreRemoteUrl:"",restoreRemoteFile:null,restoreRemoteUrlComponent:null,restoreRemoteUrlItems:[],newComponents:[],itemKey:[],expandedDetails:[],itemValue:[],sortbackupTableKey:"timestamp",sortbackupTableDesc:!0,nestedTableFilter:"",backupTableFields:[{key:"timestamp",label:"Name",thStyle:{width:"65%"}},{key:"time",label:"Time"},{key:"actions",label:"Actions",thStyle:{width:"118px"},class:"text-center"}],restoreComponents:[{value:"",text:"all"},{value:"lime",text:"lime"},{value:"orange",text:"orange"}],localBackupTableFields:[{key:"isActive",label:"",thStyle:{width:"5%"},class:"text-center"},{key:"component",label:"Component Name",thStyle:{width:"40%"}},{key:"create",label:"CreateAt",thStyle:{width:"17%"}},{key:"expire",label:"ExpireAt",thStyle:{width:"17%"}},{key:"file_size",label:"Size",thStyle:{width:"8%"}}],newComponentsTableFields:[{key:"component",label:"Component Name",thStyle:{width:"200px"}},{key:"file_url",label:"URL"},{key:"timestamp",label:"Timestamp",thStyle:{width:"200px"}},{key:"file_size",label:"Size",thStyle:{width:"100px"}},{key:"actions",label:"Actions",thStyle:{width:"117px"},class:"text-center"}],componentsTable(){return[{key:"component",label:"Component Name",thStyle:{width:"20%"}},{key:"file_url",label:"URL",thStyle:{width:"55%"}},{key:"file_size",label:"Size",thStyle:{width:"20%"}},{key:"actions",label:"Actions",thStyle:{width:"5%"},class:"text-center"}]},socket:null,terminal:null,selectedCmd:null,selectedApp:null,selectedAppVolume:null,enableUser:!1,userInputValue:"",customValue:"",envInputValue:"",enableEnvironment:!1,isVisible:!1,isConnecting:!1,options:[{label:"Linux",options:["/bin/bash","/bin/ash","/bin/sh"]},{label:"Other",options:["Custom"]}],output:[],downloadOutput:{},downloadOutputReturned:!1,fluxCommunication:!1,commandExecuting:!1,commandExecutingMonitoring:!1,commandExecutingStats:!1,commandExecutingProcesses:!1,commandExecutingChanges:!1,commandExecutingInspect:!1,getAllAppsResponse:{status:"",data:[]},updatetype:"fluxappupdate",version:1,dataForAppUpdate:{},dataToSign:"",timestamp:"",signature:"",updateHash:"",testError:!1,websocket:null,selectedAppOwner:"",appSpecification:{},callResponseMonitoring:{status:"",data:""},callResponseStats:{status:"",data:""},callResponseProcesses:{status:"",data:""},callResponseChanges:{status:"",data:""},callResponseInspect:{status:"",data:""},callResponse:{status:"",data:""},callBResponse:{status:"",data:[]},appExec:{cmd:"",env:""},appUpdateSpecification:{version:3,name:"",description:"",repotag:"",owner:"",ports:"",domains:"",enviromentParameters:"",commands:"",containerPorts:"",containerData:"",instances:3,cpu:null,ram:null,hdd:null,tiered:!1,cpubasic:null,rambasic:null,hddbasic:null,cpusuper:null,ramsuper:null,hddsuper:null,cpubamf:null,rambamf:null,hddbamf:null},instances:{data:[],fields:[{key:"show_details",label:""},{key:"ip",label:"IP Address",sortable:!0},{key:"continent",label:"Continent",sortable:!0},{key:"country",label:"Country",sortable:!0},{key:"region",label:"Region",sortable:!0,thStyle:{width:"20%"}},{key:"visit",label:"Visit",thStyle:{width:"10%"}}],perPage:10,pageOptions:[10,25,50,100],sortBy:"",sortDesc:!1,sortDirection:"asc",filter:"",filterOn:[],totalRows:1,currentPage:1},downloadedSize:"",deploymentAddress:"",appPricePerSpecs:0,appPricePerSpecsUSD:0,applicationPriceFluxDiscount:"",applicationPriceFluxError:!1,maxInstances:100,minInstances:3,globalZelidAuthorized:!1,monitoringStream:{},statsFields:[{key:"timestamp",label:"Date"},{key:"cpu",label:"CPU"},{key:"memory",label:"RAM"},{key:"disk",label:"DISK"},{key:"net",label:"NET I/O"},{key:"block",label:"BLOCK I/O"},{key:"pids",label:"PIDS"}],possibleLocations:[],allowedGeolocations:{},forbiddenGeolocations:{},numberOfGeolocations:1,numberOfNegativeGeolocations:1,minExpire:5e3,maxExpire:264e3,extendSubscription:!0,updateSpecifications:!1,daemonBlockCount:-1,expirePosition:2,minutesRemaining:0,expireOptions:[{value:5e3,label:"1 week",time:6048e5},{value:11e3,label:"2 weeks",time:12096e5},{value:22e3,label:"1 month",time:2592e6},{value:66e3,label:"3 months",time:7776e6},{value:132e3,label:"6 months",time:15552e6},{value:264e3,label:"1 year",time:31536e6}],tosAgreed:!1,marketPlaceApps:[],generalMultiplier:1,enterpriseNodes:[],selectedEnterpriseNodes:[],enterprisePublicKeys:[],maximumEnterpriseNodes:120,entNodesTable:{fields:[{key:"show_details",label:""},{key:"ip",label:"IP Address",sortable:!0},{key:"payment_address",label:"Node Address",sortable:!0},{key:"tier",label:"Tier",sortable:!0},{key:"score",label:"Score",sortable:!0},{key:"actions",label:"Actions"}],perPage:10,pageOptions:[5,10,25,50,100],sortBy:"",sortDesc:!1,sortDirection:"asc",filter:"",filterOn:[],currentPage:1},entNodesSelectTable:{fields:[{key:"show_details",label:""},{key:"ip",label:"IP Address",sortable:!0},{key:"payment_address",label:"Node Address",sortable:!0},{key:"tier",label:"Tier",sortable:!0},{key:"score",label:"Enterprise Score",sortable:!0},{key:"actions",label:"Actions"}],perPage:25,pageOptions:[5,10,25,50,100],sortBy:"",sortDesc:!1,sortDirection:"asc",filter:"",filterOn:[],currentPage:1,totalRows:1},chooseEnterpriseDialog:!1,isPrivateApp:!1,signClient:null,masterIP:"",selectedIp:null,masterSlaveApp:!1,applicationManagementAndStatus:"",fiatCheckoutURL:"",stripeEnabled:!0,paypalEnabled:!0,checkoutLoading:!1,isMarketplaceApp:!1,ipAccess:!1,freeUpdate:!1}},computed:{isDisabled(){return!!this.pollingEnabled||this.manualInProgress},filteredLogs(){const e=this.filterKeyword.toLowerCase();return this.logs.filter((t=>t.toLowerCase().includes(e)))},formattedLogs(){return this.filteredLogs.map((e=>this.formatLog(e)))},mapLocations(){return this.instances.data.map((e=>e.ip))},appRunningTill(){const e=12e4,t=this.callBResponse.data.expire||22e3,a=this.callBResponse.data.height+t-this.daemonBlockCount;let s=a;this.extendSubscription&&(s=this.expireOptions[this.expirePosition].value);const i=this.timestamp||Date.now(),o=a*e+i,r=s*e+i,n={current:o,new:r};return n},skin(){return(0,le.Z)().skin.value},zelidHeader(){const e=localStorage.getItem("zelidauth"),t={zelidauth:e};return t},ipAddress(){const e=ye.get("backendURL");if(e)return`${ye.get("backendURL").split(":")[0]}:${ye.get("backendURL").split(":")[1]}`;const{hostname:t}=window.location;return`${t}`},filesToUpload(){return this.files.length>0&&this.files.some((e=>!e.uploading&&!e.uploaded&&0===e.progress))},computedFileProgress(){return this.fileProgress},computedFileProgressFD(){return this.fileProgressFD},computedFileProgressVolume(){return this.fileProgressVolume},folderContentFilter(){const e=this.folderView.filter((e=>JSON.stringify(e.name).toLowerCase().includes(this.filterFolder.toLowerCase()))),t=this.currentFolder?{name:"..",symLink:!0,isUpButton:!0}:null,a=[t,...e.filter((e=>".gitkeep"!==e.name))].filter(Boolean);return a},downloadLabel(){this.totalMB=this.backupList.reduce(((e,t)=>e+parseFloat(t.file_size)),2);const e=(this.downloadedSize/1048576).toFixed(2);return e===this.totalMB&&setTimeout((()=>{this.showProgressBar=!1}),5e3),`${e} / ${this.totalMB} MB`},isValidUrl(){const e=/^(http|https):\/\/[^\s]+$/,t=this.restoreRemoteUrl.split("?"),a=t[0];return""===this.restoreRemoteUrl||a.endsWith(".tar.gz")&&e.test(a)},urlValidationState(){return!!this.isValidUrl&&null},urlValidationMessage(){return this.isValidUrl?null:"Please enter a valid URL ending with .tar.gz"},computedRestoreRemoteURLFields(){return this.RestoreTableBuilder("URL")},computedRestoreUploadFileFields(){return this.RestoreTableBuilder("File_name")},checkpointsTable(){return[{key:"name",label:"Name",thStyle:{width:"70%"}},{key:"date",label:"Date",thStyle:{width:"20%"}},{key:"action",label:"Action",thStyle:{width:"5%"}}]},componentsTable1(){return[{key:"component",label:"Component Name",thStyle:{width:"200px"}},{key:"file_url",label:"URL"},{key:"file_size",label:"Size",thStyle:{width:"100px"}},{key:"actions",label:"Actions",thStyle:{width:"117px"},class:"text-center"}]},componentAvailableOptions(){return 1===this.components.length&&(this.selectedBackupComponents=this.components),this.components.filter((e=>-1===this.selectedBackupComponents.indexOf(e)))},remoteFileComponents(){return 1===this.components.length&&(this.restoreRemoteFile=this.components[0],!0)},remoteUrlComponents(){return 1===this.components.length&&(this.restoreRemoteUrlComponent=this.components[0],!0)},isComposeSingle(){return this.appSpecification.version<=3||1===this.appSpecification.compose?.length},selectedOptionText(){const e=this.options.flatMap((e=>e.options)).find((e=>e===this.selectedCmd));return e||""},selectedOptionTextStyle(){return{color:"red",backgroundColor:"rgba(128, 128, 128, 0.1)",fontWeight:"bold",padding:"4px 8px",borderRadius:"4px",marginRight:"10px",marginLeft:"10px"}},...(0,z.rn)("flux",["config","privilege"]),instancesLocked(){try{if(this.appUpdateSpecification.name&&this.marketPlaceApps.length){const e=this.marketPlaceApps.find((e=>this.appUpdateSpecification.name.toLowerCase().startsWith(e.name.toLowerCase())));if(e&&e.lockedValues&&e.lockedValues.includes("instances"))return!0}return!1}catch(e){return console.log(e),!1}},priceMultiplier(){try{if(this.appUpdateSpecification.name&&this.marketPlaceApps.length){const e=this.marketPlaceApps.find((e=>this.appUpdateSpecification.name.toLowerCase().startsWith(e.name.toLowerCase())));if(e&&e.multiplier>1)return e.multiplier*this.generalMultiplier}return this.generalMultiplier}catch(e){return console.log(e),this.generalMultiplier}},callbackValue(){const{protocol:e,hostname:t,port:a}=window.location;let s="";s+=e,s+="//";const i=/[A-Za-z]/g;if(t.split("-")[4]){const e=t.split("-"),a=e[4].split("."),i=+a[0]+1;a[0]=i.toString(),a[2]="api",e[4]="",s+=e.join("-"),s+=a.join(".")}else if(t.match(i)){const e=t.split(".");e[0]="api",s+=e.join(".")}else{if("string"===typeof t&&this.$store.commit("flux/setUserIp",t),+a>16100){const e=+a+1;this.$store.commit("flux/setFluxPort",e)}s+=t,s+=":",s+=this.config.apiPort}const o=ye.get("backendURL")||s,r=`${o}/id/providesign`;return encodeURI(r)},isAppOwner(){const e=localStorage.getItem("zelidauth"),t=ve.parse(e);return!!(e&&t&&t.zelid&&this.selectedAppOwner===t.zelid)},validTill(){const e=this.timestamp+36e5;return e},subscribedTill(){if(this.appUpdateSpecification.expire){const e=this.expireOptions.find((e=>e.value===this.appUpdateSpecification.expire));if(e){const t=1e6*Math.floor((this.timestamp+e.time)/1e6);return t}const t=this.appUpdateSpecification.expire,a=12e4,s=t*a,i=1e6*Math.floor((this.timestamp+s)/1e6);return i}const e=1e6*Math.floor((this.timestamp+2592e6)/1e6);return e},isApplicationInstalledLocally(){if(this.installedApps){const e=this.installedApps.find((e=>e.name===this.appName));return!!e}return!1},constructAutomaticDomainsGlobal(){if(!this.callBResponse.data)return"loading...";if(console.log(this.callBResponse.data),!this.callBResponse.data.name)return"loading...";const e=this.callBResponse.data.name,t=e.toLowerCase();if(!this.callBResponse.data.compose){const e=JSON.parse(JSON.stringify(this.callBResponse.data.ports)),a=[`${t}.app.runonflux.io`];for(let s=0;s{for(let s=0;s=2&&a.push(` ${i} ${s}s`),e%=t[s]}return a},getNewExpireLabel(){if(-1===this.daemonBlockCount)return"Not possible to calculate expiration";const e=this.callBResponse.data.expire||22e3,t=this.callBResponse.data.height+e-this.daemonBlockCount;if(t<1)return"Application Expired";this.minutesRemaining=2*t;const a=this.minutesToString;return a.length>2?`${a[0]}, ${a[1]}, ${a[2]}`:a.length>1?`${a[0]}, ${a[1]}`:`${a[0]}`}},watch:{filterKeyword(){this.logs?.length>0&&this.$nextTick((()=>{this.scrollToBottom()}))},isLineByLineMode(){this.isLineByLineMode||(this.selectedLog=[]),this.logs?.length>0&&this.$nextTick((()=>{this.scrollToBottom()}))},fetchAllLogs(){this.restartPolling()},lineCount(){this.debounce((()=>this.restartPolling()),1e3)()},sinceTimestamp(){this.restartPolling()},selectedApp(e,t){t&&t!==e&&(this.filterKeyword="",this.sinceTimestamp="",this.stopPolling(),this.clearLogs()),e&&(this.handleContainerChange(),this.pollingEnabled&&this.startPolling())},isComposeSingle(e){e&&this.appSpecification.version>=4&&(this.selectedApp=this.appSpecification.compose[0].name,this.selectedAppVolume=this.appSpecification.compose[0].name)},appUpdateSpecification:{handler(){this.dataToSign="",this.signature="",this.timestamp=null,this.dataForAppUpdate={},this.updateHash="",this.testError=!1,this.output=[],null!==this.websocket&&(this.websocket.close(),this.websocket=null)},deep:!0},expirePosition:{handler(){this.dataToSign="",this.signature="",this.timestamp=null,this.dataForAppUpdate={},this.updateHash="",this.testError=!1,this.output=[],null!==this.websocket&&(this.websocket.close(),this.websocket=null)}},isPrivateApp(e){this.appUpdateSpecification.version>=7&&!1===e&&(this.appUpdateSpecification.nodes=[],this.appUpdateSpecification.compose.forEach((e=>{e.secrets="",e.repoauth=""})),this.selectedEnterpriseNodes=[]),this.allowedGeolocations={},this.forbiddenGeolocations={},this.dataToSign="",this.signature="",this.timestamp=null,this.dataForAppUpdate={},this.updateHash="",this.testError=!1,this.output=[],null!==this.websocket&&(this.websocket.close(),this.websocket=null)}},created(){this.fluxDriveUploadTask=[],this.fluxDriveEndPoint="https://mws.fluxdrive.runonflux.io"},mounted(){const{hostname:e}=window.location,t=/[A-Za-z]/g;e.match(t)?this.ipAccess=!1:this.ipAccess=!0;const a=this;this.$nextTick((()=>{window.addEventListener("resize",a.onResize)})),this.initMMSDK(),this.callBResponse.data="",this.callBResponse.status="",this.appSpecification={},this.callResponse.data="",this.callResponse.status="",this.monitoringStream={},this.appExec.cmd="",this.appExec.env="",this.checkFluxCommunication(),this.getAppOwner(),this.getGlobalApplicationSpecifics(),this.appsDeploymentInformation(),this.getGeolocationData(),this.getMarketPlace(),this.getMultiplier(),this.getEnterpriseNodes(),this.getDaemonBlockCount()},beforeDestroy(){this.stopPolling(),window.removeEventListener("resize",this.onResize)},methods:{extractTimestamp(e){return e.split(" ")[0]},toggleLogSelection(e){const t=this.extractTimestamp(e);this.selectedLog.includes(t)?this.selectedLog=this.selectedLog.filter((e=>e!==t)):this.selectedLog.push(t)},unselectText(){this.selectedLog=[]},async copyCode(){try{let e="";e=this.isLineByLineMode&&this.selectedLog.length>0?this.filteredLogs.filter((e=>this.selectedLog.includes(this.extractTimestamp(e)))).map((e=>e)).join("\n"):this.logs.join("\n");const t=/\u001b\[[0-9;]*[a-zA-Z]/g;if(e=e.replace(t,""),!this.displayTimestamps){const t=/^[^\s]+\s*/;e=e.split(/\r?\n/).map((e=>e.replace(t,""))).join("\n")}if(navigator.clipboard)await navigator.clipboard.writeText(e);else{const t=document.createElement("textarea");t.value=e,document.body.appendChild(t),t.select(),document.execCommand("copy"),document.body.removeChild(t)}this.copied=!0,setTimeout((()=>{this.copied=!1}),2e3)}catch(e){console.error("Failed to copy code:",e)}},debounce(e,t){return(...a)=>{this.debounceTimeout&&clearTimeout(this.debounceTimeout),this.debounceTimeout=setTimeout((()=>e(...a)),t)}},async manualFetchLogs(){this.manualInProgress=!0,await this.fetchLogsForSelectedContainer(),this.manualInProgress=!1},async fetchLogsForSelectedContainer(){if(7!==this.$refs.managementTabs.currentTab)return;if(console.log("fetchLogsForSelectedContainer in progress..."),this.appSpecification.version>=4&&!this.selectedApp)return void console.error("No container selected");if(this.requestInProgress)return void console.log("Request in progress, skipping this call.");const e=this.selectedApp?`${this.selectedApp}_${this.appSpecification.name}`:this.appSpecification.name;this.requestInProgress=!0,this.noLogs=!1;try{const t=this.selectedApp,a=this.fetchAllLogs?"all":this.lineCount||100,s=await this.executeLocalCommand(`/apps/applogpolling/${e}/${a}/${this.sinceTimestamp}`);this.selectedApp===t?(this.logs=s.data?.logs,"success"===s.data?.status&&0===this.logs?.length&&(this.noLogs=!0),this.logs.length>0&&this.$nextTick((()=>{this.autoScroll&&this.scrollToBottom()}))):console.error("Selected container has changed. Logs discarded.")}catch(t){console.error("Error fetching logs:",t.message),this.clearLogs(),!0===this.pollingEnabled&&(this.pollingEnabled=!1,this.stopPolling())}finally{console.log("fetchLogsForSelectedContainer completed..."),this.requestInProgress=!1}},startPolling(){this.pollingInterval&&clearInterval(this.pollingInterval),this.pollingInterval=setInterval((async()=>{await this.fetchLogsForSelectedContainer()}),this.refreshRate)},stopPolling(){this.pollingInterval&&(clearInterval(this.pollingInterval),this.pollingInterval=null)},restartPolling(){this.stopPolling(),this.fetchLogsForSelectedContainer(),this.pollingEnabled&&this.startPolling()},togglePolling(){this.pollingEnabled?this.startPolling():this.stopPolling()},formatLog(e){const t=new(pe());if(this.displayTimestamps){const[a,...s]=e.split(" "),i=s.join(" ");return`${a} - ${t.toHtml(i)}`}{const a=/^[^\s]+\s*/;return t.toHtml(e.replace(a,""))}},scrollToBottom(){const e=this.$refs.logsContainer;e&&(e.scrollTop=e.scrollHeight)},clearLogs(){this.logs=[]},clearDateFilter(){this.sinceTimestamp=""},handleContainerChange(){const e=this.debounce(this.fetchLogsForSelectedContainer,300);e()},async refreshInfo(){this.$refs.BackendRefresh.blur(),await this.getInstancesForDropDown(),this.selectedIpChanged(),this.getApplicationLocations().catch((()=>{this.isBusy=!1,this.showToast("danger","Error loading application locations")}))},copyMessageToSign(){const{copy:e}=(0,Z.VPI)({source:this.dataToSign,legacy:!0});e(),this.tooltipText="Copied!",setTimeout((()=>{this.$refs.copyButtonRef&&(this.$refs.copyButtonRef.blur(),this.tooltipText="")}),1e3),setTimeout((()=>{this.tooltipText="Copy to clipboard"}),1500)},getIconName(e,t){const a=e/t*100;let s;return s=a<=60?"battery-full":a>60&&a<=80?"battery-half":"battery",s},getIconColorStyle(e,t){const a=e/t*100;let s;return s=a<=60?"green":a>60&&a<=80?"yellow":"red",{color:s}},sortNameFolder(e,t){return(e.isDirectory?`..${e.name}`:e.name).localeCompare(t.isDirectory?`..${t.name}`:t.name)},sortTypeFolder(e,t){return e.isDirectory&&t.isFile?-1:e.isFile&&t.isDirectory?1:0},sort(e,t,a,s){return"name"===a?this.sortNameFolder(e,t,s):"type"===a?this.sortTypeFolder(e,t,s):"modifiedAt"===a?e.modifiedAt>t.modifiedAt?-1:e.modifiedAtt.size?-1:e.size""!==e)),a=t.map((e=>` ${e} `)).join("/");this.inputPathValue=`/${a}`,this.loadFolder(this.currentFolder)},async loadFolder(e,t=!1){try{this.filterFolder="",t||(this.folderView=[]),this.loadingFolder=!0;const a=await this.executeLocalCommand(`/apps/getfolderinfo/${this.appName}/${this.selectedAppVolume}/${encodeURIComponent(e)}`);this.loadingFolder=!1,"success"===a.data.status?(this.folderView=a.data.data,console.log(this.folderView)):this.showToast("danger",a.data.data.message||a.data.data)}catch(a){this.loadingFolder=!1,console.log(a.message),this.showToast("danger",a.message||a)}},async createFolder(e){try{let t=e;""!==this.currentFolder&&(t=`${this.currentFolder}/${e}`);const a=await this.executeLocalCommand(`/apps/createfolder/${this.appName}/${this.selectedAppVolume}/${encodeURIComponent(t)}`);"error"===a.data.status?"EEXIST"===a.data.data.code?this.showToast("danger",`Folder ${e} already exists`):this.showToast("danger",a.data.data.message||a.data.data):(this.loadFolder(this.currentFolder,!0),this.createDirectoryDialogVisible=!1)}catch(t){this.loadingFolder=!1,console.log(t.message),this.showToast("danger",t.message||t)}this.newDirName=""},cancelDownload(e){this.abortToken[e].cancel(`Download of ${e} cancelled`),this.downloaded[e]="",this.total[e]=""},async download(e,t=!1){try{const a=this,s=this.currentFolder,i=s?`${s}/${e}`:e,o={headers:this.zelidHeader,responseType:"blob",onDownloadProgress(s){const{loaded:i,total:o,lengthComputable:r}=s;if(r){const s=i/o*100;t?a.updateFileProgressVolume(`${e}.zip`,s):a.updateFileProgressVolume(e,s)}else console.log("Total file size is unknown. Cannot compute progress percentage."),t?a.updateFileProgressVolume(`${e}.zip`,"Downloading..."):a.updateFileProgressVolume(e,"Downloading...")}};let r;if(t?(this.showToast("info","Directory download initiated. Please wait..."),r=await this.executeLocalCommand(`/apps/downloadfolder/${this.appName}/${this.selectedAppVolume}/${encodeURIComponent(i)}`,null,o)):r=await this.executeLocalCommand(`/apps/downloadfile/${this.appName}/${this.selectedAppVolume}/${encodeURIComponent(i)}`,null,o),console.log(r),!t&&r.data&&200===r.status&&a.updateFileProgressVolume(e,100),"error"===r.data.status)this.showToast("danger",r.data.data.message||r.data.data);else{const a=window.URL.createObjectURL(new Blob([r.data])),s=document.createElement("a");s.href=a,t?s.setAttribute("download",`${e}.zip`):s.setAttribute("download",e),document.body.appendChild(s),s.click()}}catch(a){console.log(a.message),a.message?a.message.startsWith("Download")||this.showToast("danger",a.message):this.showToast("danger",a)}},beautifyValue(e){const t=e.split(".");return t[0].length>=4&&(t[0]=t[0].replace(/(\d)(?=(\d{3})+$)/g,"$1,")),t.join(".")},refreshFolder(){const e=this.currentFolder.split("/").filter((e=>""!==e)),t=e.map((e=>` ${e} `)).join("/");this.inputPathValue=`/${t}`,this.loadFolder(this.currentFolder,!0),this.storageStats()},refreshFolderSwitch(){this.currentFolder="";const e=this.currentFolder.split("/").filter((e=>""!==e)),t=e.map((e=>` ${e} `)).join("/");this.inputPathValue=`/${t}`,this.loadFolder(this.currentFolder,!0),this.storageStats()},async deleteFile(e){try{const t=this.currentFolder,a=t?`${t}/${e}`:e,s=await this.executeLocalCommand(`/apps/removeobject/${this.appName}/${this.selectedAppVolume}/${encodeURIComponent(a)}`);"error"===s.data.status?this.showToast("danger",s.data.data.message||s.data.data):(this.refreshFolder(),this.showToast("success",`${e} deleted`))}catch(t){this.showToast("danger",t.message||t)}},rename(e){this.renameDialogVisible=!0;let t=e;""!==this.currentFolder&&(t=`${this.currentFolder}/${e}`),this.fileRenaming=t,this.newName=e},async confirmRename(){this.renameDialogVisible=!1;try{const e=this.fileRenaming,t=this.newName,a=await this.executeLocalCommand(`/apps/renameobject/${this.appName}/${this.selectedAppVolume}/${encodeURIComponent(e)}/${t}`);console.log(a),"error"===a.data.status?this.showToast("danger",a.data.data.message||a.data.data):(e.includes("/")?this.showToast("success",`${e.split("/").pop()} renamed to ${t}`):this.showToast("success",`${e} renamed to ${t}`),this.loadFolder(this.currentFolder,!0))}catch(e){this.showToast("danger",e.message||e)}},upFolder(){this.changeFolder("..")},onResize(){this.windowWidth=window.innerWidth},handleRadioClick(){"Upload File"===this.selectedRestoreOption&&this.loadBackupList(this.appName,"upload","files"),"FluxDrive"===this.selectedRestoreOption&&this.getFluxDriveBackupList(),console.log("Radio button clicked. Selected option:",this.selectedOption)},getUploadFolder(){if(this.selectedIp){const e=this.selectedIp.split(":")[0],t=this.selectedIp.split(":")[1]||16127;if(this.currentFolder){const a=encodeURIComponent(this.currentFolder);return this.ipAccess?`http://${e}:${t}/ioutils/fileupload/volume/${this.appName}/${this.selectedAppVolume}/${a}`:`https://${e.replace(/\./g,"-")}-${t}.node.api.runonflux.io/ioutils/fileupload/volume/${this.appName}/${this.selectedAppVolume}/${a}`}return this.ipAccess?`http://${e}:${t}/ioutils/fileupload/volume/${this.appName}/${this.selectedAppVolume}`:`https://${e.replace(/\./g,"-")}-${t}.node.api.runonflux.io/ioutils/fileupload/volume/${this.appName}/${this.selectedAppVolume}`}},getUploadFolderBackup(e){const t=this.selectedIp.split(":")[0],a=this.selectedIp.split(":")[1]||16127,s=encodeURIComponent(e);return this.ipAccess?`http://${t}:${a}/ioutils/fileupload/backup/${this.appName}/${this.restoreRemoteFile}/null/${s}`:`https://${t.replace(/\./g,"-")}-${a}.node.api.runonflux.io/ioutils/fileupload/backup/${this.appName}/${this.restoreRemoteFile}/null/${s}`},addAndConvertFileSizes(e,t="auto",a=2){const s={B:1,KB:1024,MB:1048576,GB:1073741824},i=(e,t)=>e/s[t.toUpperCase()],o=(e,t)=>{const s="B"===t?e.toFixed(0):e.toFixed(a);return`${s} ${t}`};let r;if(Array.isArray(e)&&e.length>0)r=+e.reduce(((e,t)=>e+(t.file_size||0)),0);else{if("number"!==typeof+e)return console.error("Invalid sizes parameter"),"N/A";r=+e}if(isNaN(r))return console.error("Total size is not a valid number"),"N/A";if("auto"===t){let e,t=r;return Object.keys(s).forEach((a=>{const s=i(r,a);s>=1&&(void 0===t||st.file_name===e[0].name&&t.component!==this.restoreRemoteFile));if(-1!==a)return this.showToast("warning",`'${t.name}' is already in the upload queue for other component.`),!1;const s=this.files.findIndex((e=>e.component===this.restoreRemoteFile));-1!==s?this.$set(this.files,s,{selected_file:t,uploading:!1,uploaded:!1,progress:0,path:`${this.volumePath}/backup/upload`,component:this.restoreRemoteFile,file_name:`backup_${this.restoreRemoteFile.toLowerCase()}.tar.gz`,file_size:t.size}):this.files.push({selected_file:t,uploading:!1,uploaded:!1,progress:0,path:`${this.volumePath}/backup/upload`,component:this.restoreRemoteFile,file_name:`backup_${this.restoreRemoteFile.toLowerCase()}.tar.gz`,file_size:t.size})}return!0},removeFile(e){this.files=this.files.filter((t=>t.selected_file.name!==e.selected_file.name))},async processChunks(e,t){const a={restore_upload:"restoreFromUploadStatus",restore_remote:"restoreFromRemoteURLStatus",backup:"tarProgress",restore_fluxdrive:"restoreFromFluxDriveStatus"};for(const s of e)if(""!==s){const e=a[t];e&&(this[e]=s,"restore_upload"===t&&s.includes("Error:")?(console.log(s),this.changeAlert("danger",s,"showTopUpload",!0)):"restore_upload"===t&&s.includes("Finalizing")?setTimeout((()=>{this.changeAlert("success","Restore completed successfully","showTopUpload",!0)}),5e3):"restore_remote"===t&&s.includes("Error:")?this.changeAlert("danger",s,"showTopRemote",!0):"restore_remote"===t&&s.includes("Finalizing")?setTimeout((()=>{this.changeAlert("success","Restore completed successfully","showTopRemote",!0),this.restoreRemoteUrlItems=[]}),5e3):"restore_fluxdrive"===t&&s.includes("Error:")?this.changeAlert("danger",s,"showTopFluxDrive",!0):"restore_fluxdrive"===t&&s.includes("Finalizing")&&setTimeout((()=>{this.changeAlert("success","Restore completed successfully","showTopFluxDrive",!0),this.restoreRemoteUrlItems=[]}),5e3))}},changeAlert(e,t,a,s){this.alertVariant=e,this.alertMessage=t,this[a]=s},startUpload(){this.showTopUpload=!1;const e=this;return new Promise((async(t,a)=>{try{this.restoreFromUpload=!0,this.restoreFromUploadStatus="Uploading...";const a=this.files.map((e=>new Promise((async(t,a)=>{if(e.uploaded||e.uploading||!e.selected_file)t();else try{await this.upload(e),t()}catch(s){a(s)}}))));await Promise.all(a),this.files.forEach((e=>{e.uploading=!1,e.uploaded=!1,e.progress=0})),this.restoreFromUploadStatus="Initializing restore jobs...";const s=this.buildPostBody(this.appSpecification,"restore","upload");let i;for(const e of this.files)i=this.updateJobStatus(s,e.component,"restore");const o=localStorage.getItem("zelidauth"),r={zelidauth:o,"Content-Type":"application/json","Access-Control-Allow-Origin":"*",Connection:"keep-alive"},n=this.selectedIp.split(":")[0],l=this.selectedIp.split(":")[1]||16127;let c=`https://${n.replace(/\./g,"-")}-${l}.node.api.runonflux.io/apps/appendrestoretask`;this.ipAccess&&(c=`http://${n}:${l}/apps/appendrestoretask`);const p=await fetch(c,{method:"POST",body:JSON.stringify(i),headers:r}),d=p.body.getReader();await new Promise(((t,a)=>{function s(){d.read().then((async({done:a,value:i})=>{if(a)return void t();const o=new TextDecoder("utf-8").decode(i),r=o.split("\n");await e.processChunks(r,"restore_upload"),s()}))}s()})),this.restoreFromUpload=!1,this.restoreFromUploadStatus="",this.loadBackupList(this.appName,"upload","files"),t()}catch(s){a(s)}}))},async upload(e){return new Promise(((t,a)=>{const s=this;if("undefined"===typeof XMLHttpRequest)return void a("XMLHttpRequest is not supported.");const i=new XMLHttpRequest,o=this.getUploadFolderBackup(e.file_name);i.upload&&(i.upload.onprogress=function(t){t.total>0&&(t.percent=t.loaded/t.total*100),e.progress=t.percent});const r=new FormData;r.append(e.selected_file.name,e.selected_file),e.uploading=!0,i.onerror=function(t){s.restoreFromUpload=!1,s.restoreFromUploadStatus="",s.files.forEach((e=>{e.uploading=!1,e.uploaded=!1,e.progress=0})),s.showToast("danger",`An error occurred while uploading ${e.selected_file.name}, try to relogin`),a(t)},i.onload=function(){if(i.status<200||i.status>=300)return console.error(i.status),s.restoreFromUpload=!1,s.restoreFromUploadStatus="",s.files.forEach((e=>{e.uploading=!1,e.uploaded=!1,e.progress=0})),s.showToast("danger",`An error occurred while uploading '${e.selected_file.name}' - Status code: ${i.status}`),void a(i.status);e.uploaded=!0,e.uploading=!1,s.$emit("complete"),t()},i.open("post",o,!0);const n=this.zelidHeader||{},l=Object.keys(n);for(let e=0;ee+parseFloat(t.file_size)),0)},RestoreTableBuilder(e){const t=e.toString(),a=t.split("_")[0];return[{key:"component",label:"Component Name",thStyle:{width:"25%"}},{key:e.toString().toLowerCase(),label:a,thStyle:{width:"70%"}},{key:"file_size",label:"Size",thStyle:{width:"10%"}},{key:"actions",label:"Action",thStyle:{width:"5%"}}]},addAllTags(){this.selectedBackupComponents=[...this.selectedBackupComponents,...this.components]},clearSelected(){this.$refs.selectableTable.clearSelected()},selectAllRows(){this.$refs.selectableTable.selectAllRows()},selectStorageOption(e){this.selectedStorageMethod=e},buildPostBody(e,t,a=""){const s={appname:e.name,..."restore"===t?{type:a}:{},[t]:e.compose.map((e=>({component:e.name,[t]:!1,..."restore"===t&&"remote"===a?{url:""}:{}})))};return s},updateJobStatus(e,t,a,s=[]){const i=e[a].find((e=>e.component===t));if(i){if(i[a]=!0,"restore"===a&&"remote"===e?.type){const e=s.find((e=>e.component===t));e?(i.url=e.url||"",console.log(`${e.url}`)):console.log(`URL info not found for component ${t}.`)}console.log(`Status for ${t} set to true for ${a}.`)}else console.log(`Component ${t} not found in the ${a} array.`);return e},async createBackup(e,t){if(0===this.selectedBackupComponents?.length)return;this.backupProgress=!0,this.tarProgress="Initializing backup jobs...";const a=localStorage.getItem("zelidauth"),s={zelidauth:a,"Content-Type":"application/json","Access-Control-Allow-Origin":"*",Connection:"keep-alive"},i=this.buildPostBody(this.appSpecification,"backup");let o;for(const u of t)o=this.updateJobStatus(i,u,"backup");const r=this.selectedIp.split(":")[0],n=this.selectedIp.split(":")[1]||16127;let l=`https://${r.replace(/\./g,"-")}-${n}.node.api.runonflux.io/apps/appendbackuptask`;this.ipAccess&&(l=`http://${r}:${n}/apps/appendbackuptask`);const c=await fetch(l,{method:"POST",body:JSON.stringify(o),headers:s}),p=this,d=c.body.getReader();await new Promise(((e,t)=>{function a(){d.read().then((async({done:t,value:s})=>{if(t)return void e();const i=new TextDecoder("utf-8").decode(s),o=i.split("\n");await p.processChunks(o,"backup"),a()}))}a()})),setTimeout((()=>{this.backupProgress=!1}),5e3),this.loadBackupList()},onRowSelected(e){this.backupToUpload=e.map((e=>{const t=e.component,a=this.backupList.find((e=>e.component===t));return{component:t,file:a?a.file:null,file_size:a?a.file_size:null,file_name:a?a.file_name:null,create:a?a.create:null}})).filter((e=>null!==e.file))},applyFilter(){this.$nextTick((()=>{this.checkpoints.forEach((e=>{e._showDetails=!0}))})),console.log(this.appSpecification.compose),this.components=this.appSpecification.compose.map((e=>e.name))},onFilteredBackup(e){this.totalRows=e.length,this.currentPage=1},addAllBackupComponents(e){const t=this.checkpoints.find((t=>t.timestamp===e)),a=t.components.map((e=>({component:e.component,file_url:e.file_url,timestamp:t.timestamp,file_size:e.file_size})));this.newComponents=a},addComponent(e,t){const a=this.newComponents.findIndex((t=>t.component===e.component));-1!==a?this.$set(this.newComponents,a,{timestamp:t,component:e.component,file_url:e.file_url,file_size:e.file_size}):this.newComponents.push({component:e.component,timestamp:t,file_url:e.file_url,file_size:e.file_size})},formatName(e){return`backup_${e.timestamp}`},formatDateTime(e,t=!1){const a=e>1e12,s=a?new Date(e):new Date(1e3*e);return t&&s.setHours(s.getHours()+24),s.toLocaleString()},addRemoteFile(){this.selectFiles()},async restoreFromRemoteFile(){const e=localStorage.getItem("zelidauth");this.showTopRemote=!1,this.downloadingFromUrl=!0,this.restoreFromRemoteURLStatus="Initializing restore jobs...";const t={zelidauth:e,"Content-Type":"application/json","Access-Control-Allow-Origin":"*",Connection:"keep-alive"},a=this.buildPostBody(this.appSpecification,"restore","remote");let s;for(const p of this.restoreRemoteUrlItems)s=this.updateJobStatus(a,p.component,"restore",this.restoreRemoteUrlItems);const i=this.selectedIp.split(":")[0],o=this.selectedIp.split(":")[1]||16127;let r=`https://${i.replace(/\./g,"-")}-${o}.node.api.runonflux.io/apps/appendrestoretask`;this.ipAccess&&(r=`http://${i}:${o}/apps/appendrestoretask`);const n=await fetch(r,{method:"POST",body:JSON.stringify(s),headers:t}),l=this,c=n.body.getReader();await new Promise(((e,t)=>{function a(){c.read().then((async({done:t,value:s})=>{if(t)return void e();const i=new TextDecoder("utf-8").decode(s),o=i.split("\n");await l.processChunks(o,"restore_remote"),a()}))}a()})),this.downloadingFromUrl=!1,this.restoreFromRemoteURLStatus=""},async addRemoteUrlItem(e,t,a=!1){if((a||this.isValidUrl)&&""!==this.restoreRemoteUrl.trim()&&null!==this.restoreRemoteUrlComponent){if(this.remoteFileSizeResponse=await this.executeLocalCommand(`/backup/getremotefilesize/${encodeURIComponent(this.restoreRemoteUrl.trim())}/B/0/true/${this.appName}`),"success"!==this.remoteFileSizeResponse.data?.status)return void this.showToast("danger",this.remoteFileSizeResponse.data?.data.message||this.remoteFileSizeResponse.data?.massage);if(this.volumeInfoResponse=await this.executeLocalCommand(`/backup/getvolumedataofcomponent/${e}/${t}/B/0/size,available,mount`),"success"!==this.volumeInfoResponse.data?.status)return void this.showToast("danger",this.volumeInfoResponse.data?.data.message||this.volumeInfoResponse.data?.data);if(this.remoteFileSizeResponse.data.data>this.volumeInfoResponse.data.data.available)return void this.showToast("danger",`File is too large (${this.addAndConvertFileSizes(this.remoteFileSizeResponse.data.data)})...`);const a=this.restoreRemoteUrlItems.findIndex((e=>e.url===this.restoreRemoteUrl));if(-1!==a)return void this.showToast("warning",`'${this.restoreRemoteUrl}' is already in the download queue for other component.`);const s=this.restoreRemoteUrlItems.findIndex((e=>e.component===this.restoreRemoteUrlComponent));if(0===this.remoteFileSizeResponse.data.data||null===this.remoteFileSizeResponse.data.data)return;-1!==s?(this.restoreRemoteUrlItems[s].url=this.restoreRemoteUrl,this.restoreRemoteUrlItems[s].file_size=this.remoteFileSizeResponse.data.data):this.restoreRemoteUrlItems.push({url:this.restoreRemoteUrl,component:this.restoreRemoteUrlComponent,file_size:this.remoteFileSizeResponse.data.data})}},async deleteItem(e,t,a="",s=""){const i=t.findIndex((e=>e.file===a));-1!==i&&(t[i]?.selected_file||"upload"!==s||(console.log(t[i].file),await this.executeLocalCommand(`/backup/removebackupfile/${encodeURIComponent(t[i].file)}/${this.appName}`))),t.splice(e,1)},async loadBackupList(e=this.appName,t="local",a="backupList"){const s=[];for(const i of this.components)this.volumeInfo=await this.executeLocalCommand(`/backup/getvolumedataofcomponent/${e}/${i}/B/0/mount`),this.volumePath=this.volumeInfo.data?.data,this.backupFile=await this.executeLocalCommand(`/backup/getlocalbackuplist/${encodeURIComponent(`${this.volumePath.mount}/backup/${t}`)}/B/0/true/${e}`),this.backupItem=this.backupFile.data?.data,Array.isArray(this.backupItem)&&(this.BackupItem={isActive:!1,component:i,create:+this.backupItem[0].create,file_size:this.backupItem[0].size,file:`${this.volumePath.mount}/backup/${t}/${this.backupItem[0].name}`,file_name:`${this.backupItem[0].name}`},s.push(this.BackupItem));console.log(JSON.stringify(a)),this[a]=s},allDownloadsCompleted(){return this.computedFileProgress.every((e=>100===e.progress))},allDownloadsCompletedVolume(){return this.computedFileProgressVolume.every((e=>100===e.progress))&&setTimeout((()=>{this.fileProgressVolume=this.fileProgressVolume.filter((e=>100!==e.progress))}),5e3),this.computedFileProgressVolume.every((e=>100===e.progress))},updateFileProgress(e,t,a,s,i){this.$nextTick((()=>{const e=this.fileProgress.findIndex((e=>e.fileName===i));-1!==e?this.$set(this.fileProgress,e,{fileName:i,progress:t}):this.fileProgress.push({fileName:i,progress:t})}))},updateFileProgressFD(e,t,a,s,i){this.$nextTick((()=>{const e=this.fileProgressFD.findIndex((e=>e.fileName===i));-1!==e?this.$set(this.fileProgressFD,e,{fileName:i,progress:t}):this.fileProgressFD.push({fileName:i,progress:t})}))},updateFileProgressVolume(e,t){this.$nextTick((()=>{const a=this.fileProgressVolume.findIndex((t=>t.fileName===e));-1!==a?this.$set(this.fileProgressVolume,a,{fileName:e,progress:t}):this.fileProgressVolume.push({fileName:e,progress:t})}))},rowClassFluxDriveBackups(e,t){return e&&"row"===t?"":"table-no-padding"},async deleteRestoreBackup(e,t,a=0){if(0!==a){this.newComponents=this.newComponents.filter((e=>e.timestamp!==a));try{const e=localStorage.getItem("zelidauth"),s={headers:{zelidauth:e}},i={appname:this.appName,timestamp:a},o=await be.post(`${this.fluxDriveEndPoint}/removeCheckpoint`,i,s);if(console.error(o.data),o&&o.data&&"success"===o.data.status){const e=t.findIndex((e=>e.timestamp===a));return t.splice(e,1),this.showToast("success","Checkpoint backup removed successfully."),!0}return this.showToast("danger",o.data.data.message),!1}catch(s){console.error("Error removing checkpoint",s),this.showToast("Error removing checkpoint")}}return!1},async deleteLocalBackup(e,t,a=0){if(0===a){for(const e of t){const t=e.file;await this.executeLocalCommand(`/backup/removebackupfile/${encodeURIComponent(t)}/${this.appName}`)}this.backupList=[],this.backupToUpload=[]}else{this.status=await this.executeLocalCommand(`/backup/removebackupfile/${encodeURIComponent(a)}/${this.appName}`);const s=t.findIndex((t=>t.component===e));t.splice(s,1)}},async downloadAllBackupFiles(e){try{this.showProgressBar=!0;const t=localStorage.getItem("zelidauth"),a=this,s={headers:{zelidauth:t},responseType:"blob",onDownloadProgress(e){const{loaded:t,total:s,target:i}=e,o=decodeURIComponent(i.responseURL),r=o.lastIndexOf("/"),n=-1!==r?o.slice(0,r):o,l=n.split("/").pop(),c=t/s*100,p=a.backupList.find((e=>e.file.endsWith(l)));a.updateFileProgress(l,c,t,s,p.component)}},i=e.map((async e=>{try{const{file:t}=e,i=t.split("/"),o=i[i.length-1],r=await this.executeLocalCommand(`/backup/downloadlocalfile/${encodeURIComponent(t)}/${a.appName}`,null,s),n=new Blob([r.data]),l=window.URL.createObjectURL(n),c=document.createElement("a");return c.href=l,c.setAttribute("download",o),document.body.appendChild(c),c.click(),document.body.removeChild(c),window.URL.revokeObjectURL(l),!0}catch(t){return console.error("Error downloading file:",t),!1}})),o=await Promise.all(i);o.every((e=>e))?console.log("All downloads completed successfully"):console.error("Some downloads failed. Check the console for details.")}catch(t){console.error("Error downloading files:",t)}finally{setTimeout((()=>{this.showProgressBar=!1,this.fileProgress=[]}),5e3)}},async checkFluxDriveUploadProgress(){const e=localStorage.getItem("zelidauth"),t={headers:{zelidauth:e}},a=[];let s=!1;for(const o of this.fluxDriveUploadTask)try{const e=await be.get(`${this.fluxDriveEndPoint}/gettaskstatus?taskId=${o.taskId}`,t);e&&e.data&&"success"===e.data.status?(o.status=e.data.data.status.state,"downloading"===o.status?o.progress=e.data.data.status.progress/2:"uploading"===o.status?o.progress=50+e.data.data.status.progress/2:o.progress=e.data.data.status.progress,o.message=e.data.data.status.message,this.updateFileProgressFD(o.filename,o.progress,0,0,o.component),this.fluxDriveUploadStatus=e.data.data.status.message,"finished"===o.status?this.showToast("success",`${o.component} backup uploaded to FluxDrive successfully.`):"failed"===o.status?this.showToast("danger",`failed to upload ${o.component} backup to FluxDrive.${this.fluxDriveUploadStatus}`):a.push(o)):s=!0}catch(i){s=!0,console.log("error fetching upload status")}s||(this.fluxDriveUploadTask=a),this.fluxDriveUploadTask.length>0?setTimeout((()=>{this.checkFluxDriveUploadProgress()}),2e3):(this.uploadProgress=!1,this.showFluxDriveProgressBar=!1,this.fluxDriveUploadStatus="",this.fileProgressFD=[])},async uploadToFluxDrive(){try{this.uploadProgress=!0;const e=localStorage.getItem("zelidauth"),t=this,a={headers:{zelidauth:e}};let s=0;const i=this.backupToUpload.map((async e=>{try{const{file:i}=e,{component:o}=e,{file_size:r}=e,{file_name:n}=e,{create:l}=e;let c=l;Math.abs(c-s)>36e5?s=c:c=s;const p=this.selectedIp.split(":")[0],d=this.selectedIp.split(":")[1]||16127,u=`https://${p.replace(/\./g,"-")}-${d}.node.api.runonflux.io/backup/downloadlocalfile/${encodeURIComponent(i)}/${t.appName}`,m={appname:t.appName,component:o,filename:n,timestamp:c,host:u,filesize:r},h=await be.post(`${this.fluxDriveEndPoint}/registerbackupfile`,m,a);return h&&h.data&&"success"===h.data.status?(this.fluxDriveUploadTask.push({taskId:h.data.data.taskId,filename:n,component:o,status:"in queue",progress:0}),!0):(console.error(h.data),this.showToast("danger",h.data.data.message),!1)}catch(i){return console.error("Error registering file:",i),this.showToast("danger","Error registering file(s) for upload."),!1}})),o=await Promise.all(i);o.every((e=>e))?(console.log("All uploads registered successfully"),this.showFluxDriveProgressBar=!0):console.error("Some uploads failed. Check the console for details.")}catch(e){console.error("Error registering files:",e),this.showToast("danger","Error registering file(s) for upload.")}finally{setTimeout((()=>{this.checkFluxDriveUploadProgress()}),2e3)}},async restoreFromFluxDrive(e){const t=[];for(const u of e)t.push({component:u.component,file_size:u.file_size,url:u.file_url});const a=localStorage.getItem("zelidauth");this.showTopFluxDrive=!1,this.restoringFromFluxDrive=!0,this.restoreFromFluxDriveStatus="Initializing restore jobs...";const s={zelidauth:a,"Content-Type":"application/json","Access-Control-Allow-Origin":"*",Connection:"keep-alive"},i=this.buildPostBody(this.appSpecification,"restore","remote");let o;for(const u of t)o=this.updateJobStatus(i,u.component,"restore",t);const r=this.selectedIp.split(":")[0],n=this.selectedIp.split(":")[1]||16127;let l=`https://${r.replace(/\./g,"-")}-${n}.node.api.runonflux.io/apps/appendrestoretask`;this.ipAccess&&(l=`http://${r}:${n}/apps/appendrestoretask`);const c=await fetch(l,{method:"POST",body:JSON.stringify(o),headers:s}),p=this,d=c.body.getReader();await new Promise(((e,t)=>{function a(){d.read().then((async({done:t,value:s})=>{if(t)return void e();const i=new TextDecoder("utf-8").decode(s),o=i.split("\n");await p.processChunks(o,"restore_fluxdrive"),a()}))}a()})),this.restoringFromFluxDrive=!1,this.restoreFromFluxDriveStatus=""},async getFluxDriveBackupList(){try{const e=localStorage.getItem("zelidauth"),t={headers:{zelidauth:e}},a=await be.get(`${this.fluxDriveEndPoint}/getbackuplist?appname=${this.appName}`,t);if(a.data&&"success"===a.data.status){console.log(JSON.stringify(a.data.checkpoints)),this.tableBackup+=1;const e=a.data.checkpoints.reduce(((e,{components:t})=>(t.forEach((t=>e.add(t.component))),e)),new Set),t=[{value:"",text:"all"}];for(const a of e)t.push({value:a,text:a});this.restoreComponents=t,this.applyFilter(),this.checkpoints=a.data.checkpoints}else a.data&&"error"===a.data.status&&this.showToast("danger",a.data.data.message)}catch(e){console.error("Error receiving FluxDrive backup list",e),this.showToast("danger","Error receiving FluxDrive backup list")}},async initMMSDK(){try{await fe.init(),ge=fe.getProvider()}catch(e){console.log(e)}},connectTerminal(e){if(this.appSpecification.version>=4){const e=Object.values(this.appSpecification.compose),t=e.some((e=>e.name===this.selectedApp));if(!t)return void this.showToast("danger","Please select an container app before connecting.")}let t=0;if(!(this.selectedApp||this.appSpecification.version<=3))return void this.showToast("danger","Please select an container app before connecting.");if(null===this.selectedCmd)return void this.showToast("danger","No command selected.");if("Custom"===this.selectedCmd){if(!this.customValue)return void this.showToast("danger","Please enter a custom command.");console.log(`Custom command: ${this.customValue}`),console.log(`App name: ${e}`)}else console.log(`Selected command: ${this.selectedCmd}`),console.log(`App name: ${e}`);this.isConnecting=!0,this.terminal=new ae.Terminal({allowProposedApi:!0,cursorBlink:!0,theme:{foreground:"white",background:"black"}});const a=this.selectedIp.split(":")[0],s=this.selectedIp.split(":")[1]||16127,i=localStorage.getItem("zelidauth");let o=`https://${a.replace(/\./g,"-")}-${s}.node.api.runonflux.io/terminal`;this.ipAccess&&(o=`http://${a}:${s}/terminal`),this.socket=ne.ZP.connect(o);let r="";this.enableUser&&(r=this.userInputValue),this.customValue?this.socket.emit("exec",i,e,this.customValue,this.envInputValue,r):this.socket.emit("exec",i,e,this.selectedCmd,this.envInputValue,r),this.terminal.open(this.$refs.terminalElement);const n=new se.FitAddon;this.terminal.loadAddon(n);const l=new ie.WebLinksAddon;this.terminal.loadAddon(l);const c=new oe.Unicode11Addon;this.terminal.loadAddon(c);const p=new re.SerializeAddon;this.terminal.loadAddon(p),this.terminal._initialized=!0,this.terminal.onResize((e=>{const{cols:t,rows:a}=e;console.log("Resizing to",{cols:t,rows:a}),this.socket.emit("resize",{cols:t,rows:a})})),this.terminal.onTitleChange((e=>{console.log(e)})),window.onresize=()=>{n.fit()},this.terminal.onData((e=>{this.socket.emit("cmd",e)})),this.socket.on("error",(e=>{this.showToast("danger",e),this.disconnectTerminal()})),this.socket.on("show",(e=>{0===t&&(t=1,this.customValue||(this.socket.emit("cmd","export TERM=xterm\n"),"/bin/bash"===this.selectedCmd&&this.socket.emit("cmd",'PS1="\\[\\033[01;31m\\]\\u\\[\\033[01;33m\\]@\\[\\033[01;36m\\]\\h \\[\\033[01;33m\\]\\w \\[\\033[01;35m\\]\\$ \\[\\033[00m\\]"\n'),this.socket.emit("cmd","alias ls='ls --color'\n"),this.socket.emit("cmd","alias ll='ls -alF'\n"),this.socket.emit("cmd","clear\n")),setTimeout((()=>{this.isConnecting=!1,this.isVisible=!0,this.$nextTick((()=>{setTimeout((()=>{this.terminal.focus(),n.fit()}),500)}))}),1400)),this.terminal.write(e)})),this.socket.on("end",(()=>{this.disconnectTerminal()}))},disconnectTerminal(){this.socket&&this.socket.disconnect(),this.terminal&&this.terminal.dispose(),this.isVisible=!1,this.isConnecting=!1},onSelectChangeCmd(){"Custom"!==this.selectedCmd&&(this.customValue="")},onSelectChangeEnv(){this.enableEnvironment||(this.envInputValue="")},onSelectChangeUser(){this.enableUser||(this.userInputValue="")},onFilteredSelection(e){this.entNodesSelectTable.totalRows=e.length,this.entNodesSelectTable.currentPage=1},async getMarketPlace(){try{const e=await be.get("https://stats.runonflux.io/marketplace/listapps");"success"===e.data.status&&(this.marketPlaceApps=e.data.data)}catch(e){console.log(e)}},async getMultiplier(){try{const e=await be.get("https://stats.runonflux.io/apps/multiplier");"success"===e.data.status&&"number"===typeof e.data.data&&e.data.data>=1&&(this.generalMultiplier=e.data.data)}catch(e){this.generalMultiplier=10,console.log(e)}},async appsDeploymentInformation(){const e=await Y.Z.appsDeploymentInformation(),{data:t}=e.data;"success"===e.data.status?this.deploymentAddress=t.address:this.showToast("danger",e.data.data.message||e.data.data)},async updateManagementTab(e){switch(this.callResponse.data="",this.callResponse.status="",this.appExec.cmd="",this.appExec.env="",this.output=[],this.downloadOutput={},this.downloadOutputReturned=!1,this.backupToUpload=[],11!==e&&this.disconnectTerminal(),7!==e&&(this.stopPolling(),this.pollingEnabled=!1),this.selectedIp||(await this.getInstancesForDropDown(),await this.getInstalledApplicationSpecifics(),this.getApplicationLocations().catch((()=>{this.isBusy=!1,this.showToast("danger","Error loading application locations")}))),this.getApplicationManagementAndStatus(),e){case 1:this.getInstalledApplicationSpecifics(),this.getGlobalApplicationSpecifics();break;case 2:this.callResponseInspect.data="",this.getApplicationInspect();break;case 3:this.callResponseStats.data="",this.getApplicationStats();break;case 4:this.getApplicationMonitoring();break;case 5:this.callResponseChanges.data="",this.getApplicationChanges();break;case 6:this.callResponseProcesses.data="",this.getApplicationProcesses();break;case 7:this.logs=[],this.selectedLog=[],this.fetchLogsForSelectedContainer();break;case 10:this.applyFilter(),this.loadBackupList();break;case 11:this.appSpecification?.compose&&1!==this.appSpecification?.compose?.length||this.refreshFolder();break;case 15:this.getZelidAuthority(),this.cleanData();break;case 16:this.getZelidAuthority(),this.cleanData();break;default:break}},async appsGetListAllApps(){const e=await this.executeLocalCommand("/apps/listallapps");console.log(e),this.getAllAppsResponse.status=e.data.status,this.getAllAppsResponse.data=e.data.data},goBackToApps(){this.$emit("back")},async initSignFluxSSO(){try{const e=this.dataToSign,t=(0,J.PR)();if(!t)return void this.showToast("warning","Not logged in as SSO. Login with SSO or use different signing method.");const a=t.auth.currentUser.accessToken,s={"Content-Type":"application/json",Authorization:`Bearer ${a}`},i=await be.post("https://service.fluxcore.ai/api/signMessage",{message:e},{headers:s});if("success"!==i.data?.status&&i.data?.signature)return void this.showToast("warning","Failed to sign message, please try again.");this.signature=i.data.signature}catch(e){this.showToast("warning","Failed to sign message, please try again.")}},async initiateSignWSUpdate(){if(this.dataToSign.length>1800){const e=this.dataToSign,t={publicid:Math.floor(999999999999999*Math.random()).toString(),public:e};await be.post("https://storage.runonflux.io/v1/public",t);const a=`zel:?action=sign&message=FLUX_URL=https://storage.runonflux.io/v1/public/${t.publicid}&icon=https%3A%2F%2Fraw.githubusercontent.com%2Frunonflux%2Fflux%2Fmaster%2FzelID.svg&callback=${this.callbackValue}`;window.location.href=a}else window.location.href=`zel:?action=sign&message=${this.dataToSign}&icon=https%3A%2F%2Fraw.githubusercontent.com%2Frunonflux%2Fflux%2Fmaster%2FzelID.svg&callback=${this.callbackValue}`;const e=this,{protocol:t,hostname:a,port:s}=window.location;let i="";i+=t,i+="//";const o=/[A-Za-z]/g;if(a.split("-")[4]){const e=a.split("-"),t=e[4].split("."),s=+t[0]+1;t[0]=s.toString(),t[2]="api",e[4]="",i+=e.join("-"),i+=t.join(".")}else if(a.match(o)){const e=a.split(".");e[0]="api",i+=e.join(".")}else{if("string"===typeof a&&this.$store.commit("flux/setUserIp",a),+s>16100){const e=+s+1;this.$store.commit("flux/setFluxPort",e)}i+=a,i+=":",i+=this.config.apiPort}let r=ye.get("backendURL")||i;r=r.replace("https://","wss://"),r=r.replace("http://","ws://");const n=this.appUpdateSpecification.owner+this.timestamp,l=`${r}/ws/sign/${n}`,c=new WebSocket(l);this.websocket=c,c.onopen=t=>{e.onOpen(t)},c.onclose=t=>{e.onClose(t)},c.onmessage=t=>{e.onMessage(t)},c.onerror=t=>{e.onError(t)}},onError(e){console.log(e)},onMessage(e){const t=ve.parse(e.data);"success"===t.status&&t.data&&(this.signature=t.data.signature),console.log(t),console.log(e)},onClose(e){console.log(e)},onOpen(e){console.log(e)},async getInstalledApplicationSpecifics(){const e=await this.executeLocalCommand(`/apps/installedapps/${this.appName}`);console.log(e),e&&("error"!==e.data.status&&e.data.data[0]?(this.callResponse.status=e.data.status,this.callResponse.data=e.data.data[0],this.appSpecification=e.data.data[0]):this.showToast("danger",e.data.data.message||e.data.data))},getExpireOptions(){this.expireOptions=[];const e=this.callBResponse.data.expire||22e3,t=this.callBResponse.data.height+e-this.daemonBlockCount;t+5e3<264e3&&this.expireOptions.push({value:5e3+t,label:"1 week",time:6048e5}),this.expirePosition=0,t+11e3<264e3&&(this.expireOptions.push({value:11e3+t,label:"2 weeks",time:12096e5}),this.expirePosition=1),t+22e3<264e3&&(this.expireOptions.push({value:22e3+t,label:"1 month",time:2592e6}),this.expirePosition=2),t+66e3<264e3&&this.expireOptions.push({value:66e3+t,label:"3 months",time:7776e6}),t+132e3<264e3&&this.expireOptions.push({value:132e3+t,label:"6 months",time:15552e6}),this.expireOptions.push({value:264e3,label:"Up to one year",time:31536e6})},async getGlobalApplicationSpecifics(){const e=await Y.Z.getAppSpecifics(this.appName);if(console.log(e),"error"===e.data.status)this.showToast("danger",e.data.data.message||e.data.data),this.callBResponse.status=e.data.status;else{this.callBResponse.status=e.data.status,this.callBResponse.data=e.data.data;const a=e.data.data;if(console.log(a),this.appUpdateSpecification=JSON.parse(JSON.stringify(a)),this.appUpdateSpecification.instances=a.instances||3,this.instancesLocked&&(this.maxInstances=this.appUpdateSpecification.instances),this.appUpdateSpecification.version<=3)this.appUpdateSpecification.version=3,this.appUpdateSpecification.ports=a.port||this.ensureString(a.ports),this.appUpdateSpecification.domains=this.ensureString(a.domains),this.appUpdateSpecification.enviromentParameters=this.ensureString(a.enviromentParameters),this.appUpdateSpecification.commands=this.ensureString(a.commands),this.appUpdateSpecification.containerPorts=a.containerPort||this.ensureString(a.containerPorts);else{if(this.appUpdateSpecification.version>3&&this.appUpdateSpecification.compose.find((e=>e.containerData.includes("g:")))&&(this.masterSlaveApp=!0),this.appUpdateSpecification.version<=7&&(this.appUpdateSpecification.version=7),this.appUpdateSpecification.contacts=this.ensureString([]),this.appUpdateSpecification.geolocation=this.ensureString([]),this.appUpdateSpecification.version>=5){this.appUpdateSpecification.contacts=this.ensureString(a.contacts||[]),this.appUpdateSpecification.geolocation=this.ensureString(a.geolocation||[]);try{this.decodeGeolocation(a.geolocation||[])}catch(t){console.log(t),this.appUpdateSpecification.geolocation=this.ensureString([])}}this.appUpdateSpecification.compose.forEach((e=>{e.ports=this.ensureString(e.ports),e.domains=this.ensureString(e.domains),e.environmentParameters=this.ensureString(e.environmentParameters),e.commands=this.ensureString(e.commands),e.containerPorts=this.ensureString(e.containerPorts),e.secrets=this.ensureString(e.secrets||""),e.repoauth=this.ensureString(e.repoauth||"")})),this.appUpdateSpecification.version>=6&&(this.getExpireOptions(),this.appUpdateSpecification.expire=this.ensureNumber(this.expireOptions[this.expirePosition].value)),this.appUpdateSpecification.version>=7&&(this.appUpdateSpecification.staticip=this.appUpdateSpecification.staticip??!1,this.appUpdateSpecification.nodes=this.appUpdateSpecification.nodes||[],this.appUpdateSpecification.nodes&&this.appUpdateSpecification.nodes.length&&(this.isPrivateApp=!0),this.appUpdateSpecification.nodes.forEach((async e=>{const t=this.enterprisePublicKeys.find((t=>t.nodeip===e));if(!t){const t=await this.fetchEnterpriseKey(e);if(t){const a={nodeip:e.ip,nodekey:t},s=this.enterprisePublicKeys.find((t=>t.nodeip===e));s||this.enterprisePublicKeys.push(a)}}})),this.enterpriseNodes||await this.getEnterpriseNodes(),this.selectedEnterpriseNodes=[],this.appUpdateSpecification.nodes.forEach((e=>{if(this.enterpriseNodes){const t=this.enterpriseNodes.find((t=>t.ip===e||e===`${t.txhash}:${t.outidx}`));t&&this.selectedEnterpriseNodes.push(t)}else this.showToast("danger","Failed to load Enterprise Node List")})))}}},async testAppInstall(e){if(this.downloading)return void this.showToast("danger","Test install/launch was already initiated");const t=this;this.output=[],this.downloadOutput={},this.downloadOutputReturned=!1,this.downloading=!0,this.testError=!1,this.showToast("warning",`Testing ${e} installation, please wait`);const a=localStorage.getItem("zelidauth"),s={headers:{zelidauth:a},onDownloadProgress(e){console.log(e.event.target.response),t.output=JSON.parse(`[${e.event.target.response.replace(/}{/g,"},{")}]`)}};let i;try{if(this.appUpdateSpecification.nodes.length>0){const t=this.appUpdateSpecification.nodes[Math.floor(Math.random()*this.appUpdateSpecification.nodes.length)],a=t.split(":")[0],o=Number(t.split(":")[1]||16127),r=`https://${a.replace(/\./g,"-")}-${o}.node.api.runonflux.io/apps/testappinstall/${e}`;i=await be.get(r,s)}else i=await Y.Z.justAPI().get(`/apps/testappinstall/${e}`,s);if("error"===i.data.status)this.testError=!0,this.showToast("danger",i.data.data.message||i.data.data);else{console.log(i),this.output=JSON.parse(`[${i.data.replace(/}{/g,"},{")}]`),console.log(this.output);for(let e=0;e{this.showToast("danger",e.message||e)}));console.log(a),"success"===a.data.status?(this.updateHash=a.data.data,console.log(this.updateHash),this.showToast("success",a.data.data.message||a.data.data)):this.showToast("danger",a.data.data.message||a.data.data);const s=await(0,X.Z)();s&&(this.stripeEnabled=s.stripe,this.paypalEnabled=s.paypal),this.progressVisable=!1},async checkFluxCommunication(){const e=await Y.Z.checkCommunication();"success"===e.data.status?this.fluxCommunication=!0:this.showToast("danger",e.data.data.message||e.data.data)},convertExpire(){if(!this.extendSubscription){const e=this.callBResponse.data.expire||22e3,t=this.callBResponse.data.height+e-this.daemonBlockCount;if(t<5e3)throw new Error("Your application will expire in less than one week, you need to extend subscription to be able to update specifications");return t}return this.expireOptions[this.expirePosition]?this.expireOptions[this.expirePosition].value:22e3},async checkFluxUpdateSpecificationsAndFormatMessage(){try{if(this.appRunningTill.new=7&&(this.constructNodes(),this.appUpdateSpecification.compose.forEach((e=>{if((e.repoauth||e.secrets)&&(t=!0,!this.appUpdateSpecification.nodes.length))throw new Error("Private repositories and secrets can only run on Enterprise Nodes")}))),t){this.showToast("info","Encrypting specifications, this will take a while...");const e=[];for(const t of this.appUpdateSpecification.nodes){const a=this.enterprisePublicKeys.find((e=>e.nodeip===t));if(a)e.push(a.nodekey);else{const a=await this.fetchEnterpriseKey(t);if(a){const s={nodeip:t.ip,nodekey:a},i=this.enterprisePublicKeys.find((e=>e.nodeip===t.ip));i||this.enterprisePublicKeys.push(s),e.push(a)}}}for(const t of this.appUpdateSpecification.compose){if(t.environmentParameters=t.environmentParameters.replace("\\“",'\\"'),t.commands=t.commands.replace("\\“",'\\"'),t.domains=t.domains.replace("\\“",'\\"'),t.secrets&&!t.secrets.startsWith("-----BEGIN PGP MESSAGE")){t.secrets=t.secrets.replace("\\“",'\\"');const a=await this.encryptMessage(t.secrets,e);if(!a)return;t.secrets=a}if(t.repoauth&&!t.repoauth.startsWith("-----BEGIN PGP MESSAGE")){const a=await this.encryptMessage(t.repoauth,e);if(!a)return;t.repoauth=a}}}t&&this.appUpdateSpecification.compose.forEach((e=>{if(e.secrets&&!e.secrets.startsWith("-----BEGIN PGP MESSAGE"))throw new Error("Encryption failed");if(e.repoauth&&!e.repoauth.startsWith("-----BEGIN PGP MESSAGE"))throw new Error("Encryption failed")})),e.version>=5&&(e.geolocation=this.generateGeolocations()),e.version>=6&&(await this.getDaemonBlockCount(),e.expire=this.convertExpire());const a=await Y.Z.appUpdateVerification(e);if("error"===a.data.status)throw new Error(a.data.data.message||a.data.data);const s=a.data.data;this.appPricePerSpecs=0,this.appPricePerSpecsUSD=0,this.applicationPriceFluxDiscount="",this.applicationPriceFluxError=!1,this.freeUpdate=!1;const i=await Y.Z.appPriceUSDandFlux(s);if("error"===i.data.status)throw new Error(i.data.data.message||i.data.data);this.appPricePerSpecsUSD=+i.data.data.usd,console.log(i.data.data),0===this.appPricePerSpecsUSD?this.freeUpdate=!0:Number.isNaN(+i.data.data.fluxDiscount)?(this.applicationPriceFluxError=!0,this.showToast("danger","Not possible to complete payment with Flux crypto currency")):(this.appPricePerSpecs=+i.data.data.flux,this.applicationPriceFluxDiscount=+i.data.data.fluxDiscount);const o=this.marketPlaceApps.find((e=>this.appUpdateSpecification.name.toLowerCase().startsWith(e.name.toLowerCase())));o&&(this.isMarketplaceApp=!0),this.timestamp=Date.now(),this.dataForAppUpdate=s,this.dataToSign=this.updatetype+this.version+JSON.stringify(s)+this.timestamp,this.progressVisable=!1}catch(e){this.progressVisable=!1,console.log(e.message),console.error(e),this.showToast("danger",e.message||e)}},async checkFluxCancelSubscriptionAndFormatMessage(){try{this.progressVisable=!0,this.operationTitle="Cancelling subscription...";const e=this.appUpdateSpecification;e.geolocation=this.generateGeolocations(),e.expire=100;const t=await Y.Z.appUpdateVerification(e);if(this.progressVisable=!1,"error"===t.data.status)throw new Error(t.data.data.message||t.data.data);const a=t.data.data;this.timestamp=Date.now(),this.dataForAppUpdate=a,this.dataToSign=this.updatetype+this.version+JSON.stringify(a)+this.timestamp}catch(e){this.progressVisable=!1,console.log(e.message),console.error(e),this.showToast("danger",e.message||e)}},async appExecute(e=this.appSpecification.name){try{if(!this.appExec.cmd)return void this.showToast("danger","No commands specified");const t=this.appExec.env?this.appExec.env:"[]",{cmd:a}=this.appExec;this.commandExecuting=!0,console.log("here");const s={appname:e,cmd:Se(a),env:JSON.parse(t)},i=await this.executeLocalCommand("/apps/appexec/",s);console.log(i),"error"===i.data.status?this.showToast("danger",i.data.data.message||i.data.data):(this.commandExecuting=!1,this.callResponse.status=i.status,e.includes("_")?(this.callResponse.data&&Array.isArray(this.callResponse.data)||(this.callResponse.data=[]),this.callResponse.data.unshift({name:e,data:i.data})):this.callResponse.data=i.data)}catch(t){this.commandExecuting=!1,console.log(t),this.showToast("danger",t.message||t)}},async downloadApplicationLog(e){const t=this;this.downloaded="",this.total="";const a=localStorage.getItem("zelidauth"),s={headers:{zelidauth:a},responseType:"blob",onDownloadProgress(e){t.downloaded=e.loaded,t.total=e.total,t.downloaded===t.total&&setTimeout((()=>{t.downloaded="",t.total=""}),5e3)}};try{this.downloadingLog=!0;const t=await this.executeLocalCommand(`/apps/applogpolling/${e}/all`,null,s),a=await t.data.text(),i=JSON.parse(a);let o=i.logs;if(!Array.isArray(o))throw new Error("Log data is missing or is not in the expected format.");if(0===o.length)throw new Error("No logs available to download.");const r=/\u001b\[[0-9;]*[a-zA-Z]/g;if(o=o.map((e=>e.replace(r,""))),!this.displayTimestamps){const e=/^[^\s]+\s*/;o=o.map((t=>t.replace(e,"")))}const n=o.join("\n"),l=new Blob([n],{type:"text/plain"}),c=window.URL.createObjectURL(l),p=document.createElement("a");p.href=c,p.setAttribute("download","app.log"),document.body.appendChild(p),p.click(),this.downloadingLog=!1,window.URL.revokeObjectURL(c)}catch(i){this.downloadingLog=!1,console.error("Error occurred while handling logs:",i),this.showToast("danger",i)}},getAppIdentifier(e=this.appName){return e&&e.startsWith("zel")||e&&e.startsWith("flux")?e:"KadenaChainWebNode"===e||"FoldingAtHomeB"===e?`zel${e}`:`flux${e}`},getAppDockerNameIdentifier(e){const t=this.getAppIdentifier(e);return t&&t.startsWith("/")?t:`/${t}`},async getApplicationInspect(){const e=[];if(this.commandExecutingInspect=!0,this.appSpecification.version>=4)for(const t of this.appSpecification.compose){const a=await this.executeLocalCommand(`/apps/appinspect/${t.name}_${this.appSpecification.name}`);if("error"===a.data.status)this.showToast("danger",a.data.data.message||a.data.data);else{const s={name:t.name,callData:a.data.data};e.push(s)}}else{const t=await this.executeLocalCommand(`/apps/appinspect/${this.appName}`);if("error"===t.data.status)this.showToast("danger",t.data.data.message||t.data.data);else{const a={name:this.appSpecification.name,callData:t.data.data};e.push(a)}console.log(t)}this.commandExecutingInspect=!1,this.callResponseInspect.status="success",this.callResponseInspect.data=e},async getApplicationStats(){const e=[];if(this.commandExecutingStats=!0,this.appSpecification.version>=4)for(const t of this.appSpecification.compose){const a=await this.executeLocalCommand(`/apps/appstats/${t.name}_${this.appSpecification.name}`);if("error"===a.data.status)this.showToast("danger",a.data.data.message||a.data.data);else{const s={name:t.name,callData:a.data.data};e.push(s)}}else{const t=await this.executeLocalCommand(`/apps/appstats/${this.appName}`);if("error"===t.data.status)this.showToast("danger",t.data.data.message||t.data.data);else{const a={name:this.appSpecification.name,callData:t.data.data};e.push(a)}console.log(t)}this.commandExecutingStats=!1,this.callResponseStats.status="success",this.callResponseStats.data=e},async getApplicationMonitoring(){const e=[];if(this.appSpecification.version>=4)for(const t of this.appSpecification.compose){const a=await this.executeLocalCommand(`/apps/appmonitor/${t.name}_${this.appSpecification.name}`),s=await this.executeLocalCommand(`/apps/appinspect/${t.name}_${this.appSpecification.name}`);if("error"===a.data.status)this.showToast("danger",a.data.data.message||a.data.data);else if("error"===s.data.status)this.showToast("danger",s.data.data.message||s.data.data);else{const i={name:t.name,callData:a.data.data,nanoCpus:s.data.data.HostConfig.NanoCpus};e.push(i)}}else{const t=await this.executeLocalCommand(`/apps/appmonitor/${this.appName}`),a=await this.executeLocalCommand(`/apps/appinspect/${this.appName}`);if("error"===t.data.status)this.showToast("danger",t.data.data.message||t.data.data);else if("error"===a.data.status)this.showToast("danger",a.data.data.message||a.data.data);else{const s={name:this.appSpecification.name,callData:t.data.data,nanoCpus:a.data.data.HostConfig.NanoCpus};e.push(s)}console.log(t)}this.callResponseMonitoring.status="success",this.callResponseMonitoring.data=e},async getApplicationMonitoringStream(){const e=this,t=localStorage.getItem("zelidauth");if(this.appSpecification.version>=4)for(const a of this.appSpecification.compose){const s={headers:{zelidauth:t},onDownloadProgress(t){e.monitoringStream[`${a.name}_${e.appSpecification.name}`]=JSON.parse(`[${t.event.target.response.replace(/}{"read/g,'},{"read')}]`)}},i=await Y.Z.justAPI().get(`/apps/appmonitorstream/${a.name}_${this.appSpecification.name}`,s);"error"===i.data.status&&this.showToast("danger",i.data.data.message||i.data.data)}else{const a={headers:{zelidauth:t},onDownloadProgress(t){console.log(t.event.target.response),e.monitoringStream[e.appName]=JSON.parse(`[${t.event.target.response.replace(/}{/g,"},{")}]`)}},s=await Y.Z.justAPI().get(`/apps/appmonitorstream/${this.appName}`,a);"error"===s.data.status&&this.showToast("danger",s.data.data.message||s.data.data)}},async stopMonitoring(e,t=!1){let a;this.output=[],this.showToast("warning",`Stopping Monitoring of ${e}`),a=t?await this.executeLocalCommand(`/apps/stopmonitoring/${e}/true`):await this.executeLocalCommand(`/apps/stopmonitoring/${e}`),"success"===a.data.status?this.showToast("success",a.data.data.message||a.data.data):this.showToast("danger",a.data.data.message||a.data.data),console.log(a)},async startMonitoring(e){this.output=[],this.showToast("warning",`Starting Monitoring of ${e}`);const t=await this.executeLocalCommand(`/apps/startmonitoring/${e}`);"success"===t.data.status?this.showToast("success",t.data.data.message||t.data.data):this.showToast("danger",t.data.data.message||t.data.data),console.log(t)},async getApplicationChanges(){const e=[];if(this.commandExecutingChanges=!0,this.appSpecification.version>=4)for(const t of this.appSpecification.compose){const a=await this.executeLocalCommand(`/apps/appchanges/${t.name}_${this.appSpecification.name}`);if("error"===a.data.status)this.showToast("danger",a.data.data.message||a.data.data);else{const s={name:t.name,callData:a.data.data};e.push(s)}}else{const t=await this.executeLocalCommand(`/apps/appchanges/${this.appName}`);if("error"===t.data.status)this.showToast("danger",t.data.data.message||t.data.data);else{const a={name:this.appSpecification.name,callData:t.data.data};e.push(a)}console.log(t)}this.commandExecutingChanges=!1,this.callResponseChanges.status="success",this.callResponseChanges.data=e},async getApplicationProcesses(){const e=[];if(this.commandExecutingProcesses=!0,this.appSpecification.version>=4)for(const t of this.appSpecification.compose){const a=await this.executeLocalCommand(`/apps/apptop/${t.name}_${this.appSpecification.name}`);if("error"===a.data.status)this.showToast("danger",a.data.data.message||a.data.data);else{const s={name:t.name,callData:a.data.data};e.push(s)}}else{const t=await this.executeLocalCommand(`/apps/apptop/${this.appName}`);if("error"===t.data.status)this.showToast("danger",t.data.data.message||t.data.data);else{const a={name:this.appSpecification.name,callData:t.data.data};e.push(a)}console.log(t)}this.commandExecutingProcesses=!1,this.callResponseProcesses.status="success",this.callResponseProcesses.data=e},async getInstancesForDropDown(){const e=await Y.Z.getAppLocation(this.appName);if(this.selectedIp=null,console.log(e),"error"===e.data.status)this.showToast("danger",e.data.data.message||e.data.data);else{if(this.masterIP=null,this.instances.data=[],this.instances.data=e.data.data,this.masterSlaveApp){const e=`https://${this.appName}.app.runonflux.io/fluxstatistics?scope=${this.appName}apprunonfluxio;json;norefresh`;let t=!1,a=await be.get(e).catch((e=>{t=!0,console.log(`UImasterSlave: Failed to reach FDM with error: ${e}`),this.masterIP="Failed to Check"}));if(!t){if(a=a.data,a&&a.length>0){console.log("FDM_Data_Received");for(const e of a){const t=e.find((e=>1===e.id&&"Server"===e.objType&&"pxname"===e.field.name&&e.value.value.toLowerCase().startsWith(`${this.appName.toLowerCase()}apprunonfluxio`)));if(t){console.log("FDM_Data_Service_Found");const t=e.find((e=>1===e.id&&"Server"===e.objType&&"svname"===e.field.name));if(t)return console.log("FDM_Data_IP_Found"),this.masterIP=t.value.value.split(":")[0],console.log(this.masterIP),void(this.selectedIp||("16127"===t.value.value.split(":")[1]?this.selectedIp=t.value.value.split(":")[0]:this.selectedIp=t.value.value));break}}}this.masterIP||(this.masterIP="Defining New Primary In Progress"),this.selectedIp||(this.selectedIp=this.instances.data[0].ip)}}else this.selectedIp||(this.selectedIp=this.instances.data[0].ip);if(console.log(this.ipAccess),this.ipAccess){const e=this.ipAddress.replace("http://",""),t=16127===this.config.apiPort?e:`${e}:${this.config.apiPort}`,a=this.instances.data.filter((e=>e.ip===t));a.length>0&&(this.selectedIp=t)}else{const e=/https:\/\/(\d+-\d+-\d+-\d+)-(\d+)/,t=this.ipAddress.match(e);if(t){const e=t[1].replace(/-/g,"."),a=16127===this.config.apiPort?e:`${e}:${this.config.apiPort}`,s=this.instances.data.filter((e=>e.ip===a));s.length>0&&(this.selectedIp=a)}}this.instances.totalRows=this.instances.data.length}},async getApplicationLocations(){this.isBusy=!0;const e=await Y.Z.getAppLocation(this.appName);if(console.log(e),"error"===e.data.status)this.showToast("danger",e.data.data.message||e.data.data);else{if(this.masterSlaveApp){const e=`https://${this.appName}.app.runonflux.io/fluxstatistics?scope=${this.appName};json;norefresh`;let t=!1;this.masterIP=null;let a=await be.get(e).catch((e=>{t=!0,console.log(`UImasterSlave: Failed to reach FDM with error: ${e}`),this.masterIP="Failed to Check"}));if(!t){if(a=a.data,a&&a.length>0){console.log("FDM_Data_Received");for(const e of a){const t=e.find((e=>1===e.id&&"Server"===e.objType&&"pxname"===e.field.name&&e.value.value.toLowerCase().startsWith(`${this.appName.toLowerCase()}apprunonfluxio`)));if(t){console.log("FDM_Data_Service_Found");const t=e.find((e=>1===e.id&&"Server"===e.objType&&"svname"===e.field.name));t?(console.log("FDM_Data_IP_Found"),this.masterIP=t.value.value.split(":")[0],console.log(this.masterIP)):this.masterIP="Defining New Primary In Progress";break}}}this.masterIP||(this.masterIP="Defining New Primary In Progress")}}this.instances.data=[],this.instances.data=e.data.data;const t=this.instances.data;setTimeout((async()=>{for(const e of t){const t=e.ip.split(":")[0],a=e.ip.split(":")[1]||16127;let s=`https://${t.replace(/\./g,"-")}-${a}.node.api.runonflux.io/flux/geolocation`;this.ipAccess&&(s=`http://${t}:${a}/flux/geolocation`);let i=!1;const o=await be.get(s).catch((s=>{i=!0,console.log(`Error geting geolocation from ${t}:${a} : ${s}`),e.continent="N/A",e.country="N/A",e.region="N/A"}));!i&&"success"===o.data?.status&&o.data.data?.continent?(e.continent=o.data.data.continent,e.country=o.data.data.country,e.region=o.data.data.regionName):(e.continent="N/A",e.country="N/A",e.region="N/A")}}),5),this.instances.totalRows=this.instances.data.length,this.tableKey+=1,this.isBusy=!1}},async getAppOwner(){const e=await Y.Z.getAppOwner(this.appName);console.log(e),"error"===e.data.status&&this.showToast("danger",e.data.data.message||e.data.data),this.selectedAppOwner=e.data.data},async stopApp(e){this.output=[],this.progressVisable=!0,this.operationTitle=`Stopping ${e}...`;const t=await this.executeLocalCommand(`/apps/appstop/${e}`);"success"===t.data.status?this.showToast("success",t.data.data.message||t.data.data):this.showToast("danger",t.data.data.message||t.data.data),this.appsGetListAllApps(),console.log(t),this.progressVisable=!1},async startApp(e){this.output=[],this.progressVisable=!0,this.operationTitle=`Starting ${e}...`,setTimeout((async()=>{const t=await this.executeLocalCommand(`/apps/appstart/${e}`);"success"===t.data.status?this.showToast("success",t.data.data.message||t.data.data):this.showToast("danger",t.data.data.message||t.data.data),this.appsGetListAllApps(),console.log(t),this.progressVisable=!1}),3e3)},async restartApp(e){this.output=[],this.progressVisable=!0,this.operationTitle=`Restarting ${e}...`;const t=await this.executeLocalCommand(`/apps/apprestart/${e}`);"success"===t.data.status?this.showToast("success",t.data.data.message||t.data.data):this.showToast("danger",t.data.data.message||t.data.data),this.appsGetListAllApps(),console.log(t),this.progressVisable=!1},async pauseApp(e){this.output=[],this.progressVisable=!0,this.operationTitle=`Pausing ${e}...`,setTimeout((async()=>{const t=await this.executeLocalCommand(`/apps/apppause/${e}`);"success"===t.data.status?this.showToast("success",t.data.data.message||t.data.data):this.showToast("danger",t.data.data.message||t.data.data),this.appsGetListAllApps(),console.log(t),this.progressVisable=!1}),2e3)},async unpauseApp(e){this.output=[],this.progressVisable=!0,this.operationTitle=`Unpausing ${e}...`,setTimeout((async()=>{const t=await this.executeLocalCommand(`/apps/appunpause/${e}`);"success"===t.data.status?this.showToast("success",t.data.data.message||t.data.data):this.showToast("danger",t.data.data.message||t.data.data),this.appsGetListAllApps(),console.log(t),this.progressVisable=!1}),2e3)},redeployAppSoft(e){this.redeployApp(e,!1)},redeployAppHard(e){this.redeployApp(e,!0)},async redeployApp(e,t){const a=this;this.output=[],this.downloadOutput={},this.downloadOutputReturned=!1,this.progressVisable=!0,this.operationTitle=`Redeploying ${e}...`;const s=localStorage.getItem("zelidauth"),i={headers:{zelidauth:s},onDownloadProgress(e){console.log(e.event.target.response),a.output=JSON.parse(`[${e.event.target.response.replace(/}{/g,"},{")}]`)}},o=await this.executeLocalCommand(`/apps/redeploy/${e}/${t}`,null,i);this.progressVisable=!1,"error"===o.data.status?this.showToast("danger",o.data.data.message||o.data.data):(this.output=JSON.parse(`[${o.data.replace(/}{/g,"},{")}]`),"error"===this.output[this.output.length-1].status?this.showToast("danger",this.output[this.output.length-1].data.message||this.output[this.output.length-1].data):"warning"===this.output[this.output.length-1].status?this.showToast("warning",this.output[this.output.length-1].data.message||this.output[this.output.length-1].data):this.showToast("success",this.output[this.output.length-1].data.message||this.output[this.output.length-1].data))},async removeApp(e){const t=this;this.output=[],this.progressVisable=!0,this.operationTitle=`Removing ${e}...`;const a=localStorage.getItem("zelidauth"),s={headers:{zelidauth:a},onDownloadProgress(e){console.log(e.event.target.response),t.output=JSON.parse(`[${e.event.target.response.replace(/}{/g,"},{")}]`)}},i=await this.executeLocalCommand(`/apps/appremove/${e}`,null,s);this.progressVisable=!1,"error"===i.data.status?this.showToast("danger",i.data.data.message||i.data.data):(this.output=JSON.parse(`[${i.data.replace(/}{/g,"},{")}]`),"error"===this.output[this.output.length-1].status?this.showToast("danger",this.output[this.output.length-1].data.message||this.output[this.output.length-1].data):"warning"===this.output[this.output.length-1].status?this.showToast("warning",this.output[this.output.length-1].data.message||this.output[this.output.length-1].data):this.showToast("success",this.output[this.output.length-1].data.message||this.output[this.output.length-1].data),setTimeout((()=>{t.managedApplication=""}),5e3))},getZelidAuthority(){const e=localStorage.getItem("zelidauth");this.globalZelidAuthorized=!1;const t=ve.parse(e),a=Date.now(),s=54e5,i=t.loginPhrase.substring(0,13);this.globalZelidAuthorized=!(+i{setTimeout(t,e)}))},async executeLocalCommand(e,t,a){try{const s=localStorage.getItem("zelidauth");let i=a;if(i||(i={headers:{zelidauth:s}}),this.getZelidAuthority(),!this.globalZelidAuthorized)throw new Error("Session expired. Please log into FluxOS again");const o=this.selectedIp.split(":")[0],r=this.selectedIp.split(":")[1]||16127;let n=null,l=`https://${o.replace(/\./g,"-")}-${r}.node.api.runonflux.io${e}`;return this.ipAccess&&(l=`http://${o}:${r}${e}`),n=t?await be.post(l,t,i):await be.get(l,i),n}catch(s){return this.showToast("danger",s.message||s),null}},async executeCommand(e,t,a,s){try{const i=localStorage.getItem("zelidauth"),o={headers:{zelidauth:i}};if(this.getZelidAuthority(),!this.globalZelidAuthorized)throw new Error("Session expired. Please log into FluxOS again");this.showToast("warning",a);let r=`/apps/${t}/${e}`;s&&(r+=`/${s}`),r+="/true";const n=await Y.Z.justAPI().get(r,o);await this.delay(500),"success"===n.data.status?this.showToast("success",n.data.data.message||n.data.data):this.showToast("danger",n.data.data.message||n.data.data)}catch(i){this.showToast("danger",i.message||i)}},async stopAppGlobally(e){this.executeCommand(e,"appstop",`Stopping ${e} globally. This will take a while...`)},async startAppGlobally(e){this.executeCommand(e,"appstart",`Starting ${e} globally. This will take a while...`)},async restartAppGlobally(e){this.executeCommand(e,"apprestart",`Restarting ${e} globally. This will take a while...`)},async pauseAppGlobally(e){this.executeCommand(e,"apppause",`Pausing ${e} globally. This will take a while...`)},async unpauseAppGlobally(e){this.executeCommand(e,"appunpause",`Unpausing ${e} globally. This will take a while...`)},async redeployAppSoftGlobally(e){this.executeCommand(e,"redeploy",`Soft redeploying ${e} globally. This will take a while...`,"false")},async redeployAppHardGlobally(e){this.executeCommand(e,"redeploy",`Hard redeploying ${e} globally. This will take a while...`,"true")},async removeAppGlobally(e){this.executeCommand(e,"appremove",`Reinstalling ${e} globally. This will take a while...`,"true")},openApp(e,t,a){if(console.log(e,t,a),a&&t){const e=t,s=a,i=`http://${e}:${s}`;this.openSite(i)}else this.showToast("danger","Unable to open App :(, App does not have a port.")},getProperPort(e=this.appUpdateSpecification){if(e.port)return e.port;if(e.ports){const t="string"===typeof e.ports?JSON.parse(e.ports):e.ports;return t[0]}for(let t=0;t{console.log(t),"success"===t.status?e+=`${t.data.message||t.data}\r\n`:"Downloading"===t.status?(this.downloadOutputReturned=!0,this.downloadOutput[t.id]={id:t.id,detail:t.progressDetail,variant:"danger"}):"Verifying Checksum"===t.status?(this.downloadOutputReturned=!0,this.downloadOutput[t.id]={id:t.id,detail:{current:1,total:1},variant:"warning"}):"Download complete"===t.status?(this.downloadOutputReturned=!0,this.downloadOutput[t.id]={id:t.id,detail:{current:1,total:1},variant:"info"}):"Extracting"===t.status?(this.downloadOutputReturned=!0,this.downloadOutput[t.id]={id:t.id,detail:t.progressDetail,variant:"primary"}):"Pull complete"===t.status?this.downloadOutput[t.id]={id:t.id,detail:{current:1,total:1},variant:"success"}:"error"===t.status?e+=`Error: ${JSON.stringify(t.data)}\r\n`:e+=`${t.status}\r\n`})),e},showToast(e,t,a="InfoIcon"){this.$toast({component:q.Z,props:{title:t,icon:a,variant:e}})},decodeAsciiResponse(e){return"string"===typeof e?e.replace(/[^\x20-\x7E\t\r\n\v\f]/g,""):""},getContinent(e){const t=this.ensureObject(e),a=t.find((e=>e.startsWith("a")));if(a){const e=this.continentsOptions.find((e=>e.value===a.slice(1)));return e?e.text:"All"}return"All"},getCountry(e){const t=this.ensureObject(e),a=t.find((e=>e.startsWith("b")));if(a){const e=this.countriesOptions.find((e=>e.value===a.slice(1)));return e?e.text:"All"}return"All"},continentChanged(){if(this.selectedCountry=null,this.selectedContinent){const e=this.continentsOptions.find((e=>e.value===this.selectedContinent));this.maxInstances=e.maxInstances,this.appUpdateSpecification.instances>this.maxInstances&&(this.appUpdateSpecification.instances=this.maxInstances),this.showToast("warning",`The node type may fluctuate based upon system requirements for your application. For better results in ${e.text}, please consider specifications more suited to ${e.nodeTier} hardware.`)}else this.maxInstances=this.appUpdateSpecificationv5template.maxInstances,this.showToast("info","No geolocation set you can define up to maximum of 100 instances and up to the maximum hardware specs available on Flux network to your app.");this.instancesLocked&&(this.maxInstances=this.appUpdateSpecification.instances)},countryChanged(){if(this.selectedCountry){const e=this.countriesOptions.find((e=>e.value===this.selectedCountry));this.maxInstances=e.maxInstances,this.appUpdateSpecification.instances>this.maxInstances&&(this.appUpdateSpecification.instances=this.maxInstances),this.showToast("warning",`The node type may fluctuate based upon system requirements for your application. For better results in ${e.text}, please consider specifications more suited to ${e.nodeTier} hardware.`)}else{const e=this.continentsOptions.find((e=>e.value===this.selectedContinent));this.maxInstances=e.maxInstances,this.appUpdateSpecification.instances>this.maxInstances&&(this.appUpdateSpecification.instances=this.maxInstances),this.showToast("warning",`The node type may fluctuate based upon system requirements for your application. For better results in ${e.text}, please consider specifications more suited to ${e.nodeTier} hardware.`)}this.instancesLocked&&(this.maxInstances=this.appUpdateSpecification.instances)},generateStatsTableItems(e,t,a){if(console.log(e),console.log(t),!e||!Array.isArray(e))return[];const s=[];return e.forEach(((e,i)=>{console.log(`Processing entry ${i}:`,e);const o=e.data.cpu_stats.cpu_usage.total_usage-e.data.precpu_stats.cpu_usage.total_usage,r=e.data.cpu_stats.system_cpu_usage-e.data.precpu_stats.system_cpu_usage,n=`${(o/r*e.data.cpu_stats.online_cpus*100/(t/a.cpu/1e9)||0).toFixed(2)}%`,l=e.data.memory_stats.usage,c=`${(l/1e9).toFixed(2)} / ${(a.ram/1e3).toFixed(2)} GB, ${(l/(1e6*a.ram)*100||0).toFixed(2)}%`,p=e.data&&e.data.networks,d=p&&p.eth0;let u="0 / 0 GB";if(!d)return void console.error(`Network data for entry ${i} is missing or undefined.`);{const e=d.rx_bytes/1e9,t=d.tx_bytes/1e9;u=`${e.toFixed(2)} / ${t.toFixed(2)} GB`}const m=e.data&&e.data.blkio_stats;let h="0.00 / 0.00 GB";if(m&&Array.isArray(m.io_service_bytes_recursive)){const e=m.io_service_bytes_recursive.find((e=>"read"===e.op.toLowerCase())),t=m.io_service_bytes_recursive.find((e=>"write"===e.op.toLowerCase())),a=(e?e.value:0)/1e9,s=(t?t.value:0)/1e9;h=`${a.toFixed(2)} / ${s.toFixed(2)} GB`}const f=e.data&&e.data.disk_stats;let g="0 / 0 GB";if(f){const e=f.used;g=`${(e/1e9).toFixed(2)} / ${a.hdd.toFixed(2)} GB, ${(e/(1e9*a.hdd)*100||0).toFixed(2)}%`}const b=e.data&&e.data.pids_stats?e.data.pids_stats.current:0,v={timestamp:new Date(e.timestamp).toLocaleString("en-GB",xe.shortDate),cpu:n,memory:c,net:u,block:h,disk:g,pids:b};s.push(v)})),s},getCpuPercentage(e){console.log(e);const t=[];return e.forEach((e=>{const a=`${(e.data.cpu_stats.cpu_usage.total_usage/e.data.cpu_stats.cpu_usage.system_cpu_usage*100).toFixed(2)}%`;t.push(a)})),t},getTimestamps(e){const t=[];return e.forEach((e=>{t.push(e.timestamp)})),t},chartOptions(e){const t={chart:{height:350,type:"area"},dataLabels:{enabled:!1},stroke:{curve:"smooth"},xaxis:{type:"timestamp",categories:e},tooltip:{x:{format:"dd/MM/yy HH:mm"}}};return t},decodeGeolocation(e){let t=!1;e.forEach((e=>{e.startsWith("b")&&(t=!0),e.startsWith("a")&&e.startsWith("ac")&&e.startsWith("a!c")&&(t=!0)}));let a=e;if(t){const t=e.find((e=>e.startsWith("a")&&e.startsWith("ac")&&e.startsWith("a!c"))),s=e.find((e=>e.startsWith("b")));let i=`ac${t.slice(1)}`;s&&(i+=`_${s.slice(1)}`),a=[i]}const s=a.filter((e=>e.startsWith("ac"))),i=a.filter((e=>e.startsWith("a!c")));for(let o=1;o{e.push({value:t.code,instances:t.available?100:0})})),Ce.countries.forEach((t=>{e.push({value:`${t.continent}_${t.code}`,instances:t.available?100:0})}));const t=await be.get("https://stats.runonflux.io/fluxinfo?projection=geo");if("success"===t.data.status){const a=t.data.data;a.length>5e3&&(e=[],a.forEach((t=>{if(t.geolocation&&t.geolocation.continentCode&&t.geolocation.regionName&&t.geolocation.countryCode){const a=t.geolocation.continentCode,s=`${a}_${t.geolocation.countryCode}`,i=`${s}_${t.geolocation.regionName}`,o=e.find((e=>e.value===a));o?o.instances+=1:e.push({value:a,instances:1});const r=e.find((e=>e.value===s));r?r.instances+=1:e.push({value:s,instances:1});const n=e.find((e=>e.value===i));n?n.instances+=1:e.push({value:i,instances:1})}})))}else this.showToast("info","Failed to get geolocation data from FluxStats, Using stored locations")}catch(t){console.log(t),this.showToast("info","Failed to get geolocation data from FluxStats, Using stored locations")}this.possibleLocations=e},continentsOptions(e){const t=[{value:e?"NONE":"ALL",text:e?"NONE":"ALL"}];return this.possibleLocations.filter((t=>t.instances>(e?-1:3))).forEach((e=>{if(!e.value.includes("_")){const a=Ce.continents.find((t=>t.code===e.value));t.push({value:e.value,text:a?a.name:e.value})}})),t},countriesOptions(e,t){const a=[{value:"ALL",text:"ALL"}];return this.possibleLocations.filter((e=>e.instances>(t?-1:3))).forEach((t=>{if(!t.value.split("_")[2]&&t.value.startsWith(`${e}_`)){const e=Ce.countries.find((e=>e.code===t.value.split("_")[1]));a.push({value:t.value.split("_")[1],text:e?e.name:t.value.split("_")[1]})}})),a},regionsOptions(e,t,a){const s=[{value:"ALL",text:"ALL"}];return this.possibleLocations.filter((e=>e.instances>(a?-1:3))).forEach((a=>{a.value.startsWith(`${e}_${t}_`)&&s.push({value:a.value.split("_")[2],text:a.value.split("_")[2]})})),s},generateGeolocations(){const e=[];for(let t=1;te.code===t))||{name:"ALL"};return`Continent: ${a.name||"Unkown"}`}if(e.startsWith("b")){const t=e.slice(1),a=Ce.countries.find((e=>e.code===t))||{name:"ALL"};return`Country: ${a.name||"Unkown"}`}if(e.startsWith("ac")){const t=e.slice(2),a=t.split("_"),s=a[0],i=a[1],o=a[2],r=Ce.continents.find((e=>e.code===s))||{name:"ALL"},n=Ce.countries.find((e=>e.code===i))||{name:"ALL"};let l=`Allowed location: Continent: ${r.name}`;return i&&(l+=`, Country: ${n.name}`),o&&(l+=`, Region: ${o}`),l}if(e.startsWith("a!c")){const t=e.slice(3),a=t.split("_"),s=a[0],i=a[1],o=a[2],r=Ce.continents.find((e=>e.code===s))||{name:"ALL"},n=Ce.countries.find((e=>e.code===i))||{name:"ALL"};let l=`Forbidden location: Continent: ${r.name}`;return i&&(l+=`, Country: ${n.name}`),o&&(l+=`, Region: ${o}`),l}return"All locations allowed"},adjustMaxInstancesPossible(){const e=this.generateGeolocations(),t=e.filter((e=>e.startsWith("ac")));console.log(e);let a=0;t.forEach((e=>{const t=this.possibleLocations.find((t=>t.value===e.slice(2)));t&&(a+=t.instances),"ALL"===e&&(a+=100)})),t.length||(a+=100),console.log(a),a=a>3?a:3;const s=a>100?100:a;this.maxInstances=s,this.instancesLocked&&(this.maxInstances=this.appUpdateSpecification.instances)},constructAutomaticDomains(e,t,a=0){const s=JSON.parse(JSON.stringify(e)),i=t.toLowerCase();if(0===a){const e=[`${i}.app.runonflux.io`];for(let t=0;tt.ip===e));t>-1&&this.selectedEnterpriseNodes.splice(t,1)},async addFluxNode(e){try{const t=this.selectedEnterpriseNodes.find((t=>t.ip===e));if(console.log(e),!t){const t=this.enterpriseNodes.find((t=>t.ip===e));this.selectedEnterpriseNodes.push(t),console.log(this.selectedEnterpriseNodes);const a=this.enterprisePublicKeys.find((t=>t.nodeip===e));if(!a){const t=await this.fetchEnterpriseKey(e);if(t){const a={nodeip:e,nodekey:t},s=this.enterprisePublicKeys.find((t=>t.nodeip===e));s||this.enterprisePublicKeys.push(a)}}}}catch(t){console.log(t)}},async autoSelectNodes(){const{instances:e}=this.appUpdateSpecification,t=+e+3,a=+e+Math.ceil(Math.max(7,.15*+e)),s=this.enterpriseNodes.filter((e=>!this.selectedEnterpriseNodes.includes(e))),i=[],o=s.filter((e=>e.enterprisePoints>0&&e.score>1e3));for(let r=0;re.pubkey===o[r].pubkey)).length,s=i.filter((e=>e.pubkey===o[r].pubkey)).length;if(e+s=a)break}if(i.length{const t=this.selectedEnterpriseNodes.find((t=>t.ip===e.ip));if(!t){this.selectedEnterpriseNodes.push(e);const t=this.enterprisePublicKeys.find((t=>t.nodeip===e.ip));if(!t){const t=await this.fetchEnterpriseKey(e.ip);if(t){const a={nodeip:e.ip,nodekey:t},s=this.enterprisePublicKeys.find((t=>t.nodeip===e.ip));s||this.enterprisePublicKeys.push(a)}}}}))},constructNodes(){if(this.appUpdateSpecification.nodes=[],this.selectedEnterpriseNodes.forEach((e=>{this.appUpdateSpecification.nodes.push(e.ip)})),this.appUpdateSpecification.nodes.length>this.maximumEnterpriseNodes)throw new Error("Maximum of 120 Enterprise Nodes allowed")},async getEnterpriseNodes(){const e=sessionStorage.getItem("flux_enterprise_nodes");e&&(this.enterpriseNodes=JSON.parse(e),this.entNodesSelectTable.totalRows=this.enterpriseNodes.length);try{const e=await Y.Z.getEnterpriseNodes();"error"===e.data.status?this.showToast("danger",e.data.data.message||e.data.data):(this.enterpriseNodes=e.data.data,this.entNodesSelectTable.totalRows=this.enterpriseNodes.length,sessionStorage.setItem("flux_enterprise_nodes",JSON.stringify(this.enterpriseNodes)))}catch(t){console.log(t)}},async getDaemonBlockCount(){const e=await Q.Z.getBlockCount();"success"===e.data.status&&(this.daemonBlockCount=e.data.data)},async fetchEnterpriseKey(e){try{const t=e.split(":")[0],a=Number(e.split(":")[1]||16127);let s=`https://${t.replace(/\./g,"-")}-${a}.node.api.runonflux.io/flux/pgp`;this.ipAccess&&(s=`http://${t}:${a}/flux/pgp`);const i=await be.get(s);if("error"!==i.data.status){const e=i.data.data;return e}return this.showToast("danger",i.data.data.message||i.data.data),null}catch(t){return console.log(t),null}},async encryptMessage(e,t){try{const a=await Promise.all(t.map((e=>we.readKey({armoredKey:e}))));console.log(t),console.log(e);const s=await we.createMessage({text:e}),i=await we.encrypt({message:s,encryptionKeys:a});return i}catch(a){return this.showToast("danger","Data encryption failed"),null}},async onSessionConnect(e){console.log(e);const t=await this.signClient.request({topic:e.topic,chainId:"eip155:1",request:{method:"personal_sign",params:[this.dataToSign,e.namespaces.eip155.accounts[0].split(":")[2]]}});console.log(t),this.signature=t},async initWalletConnect(){try{const e=await ee.ZP.init(me);this.signClient=e;const t=e.session.getAll().length-1,a=e.session.getAll()[t];if(!a)throw new Error("WalletConnect session expired. Please log into FluxOS again");this.onSessionConnect(a)}catch(e){console.error(e),this.showToast("danger",e.message)}},async siwe(e,t){try{const a=`0x${de.from(e,"utf8").toString("hex")}`,s=await ge.request({method:"personal_sign",params:[a,t]});console.log(s),this.signature=s}catch(a){console.error(a),this.showToast("danger",a.message)}},async initMetamask(){try{if(!ge)return void this.showToast("danger","Metamask not detected");let e;if(ge&&!ge.selectedAddress){const t=await ge.request({method:"eth_requestAccounts",params:[]});console.log(t),e=t[0]}else e=ge.selectedAddress;this.siwe(this.dataToSign,e)}catch(e){this.showToast("danger",e.message)}},async initSSP(){try{if(!window.ssp)return void this.showToast("danger","SSP Wallet not installed");const e=await window.ssp.request("sspwid_sign_message",{message:this.dataToSign});if("ERROR"===e.status)throw new Error(e.data||e.result);this.signature=e.signature}catch(e){this.showToast("danger",e.message)}},async initSSPpay(){try{if(!window.ssp)return void this.showToast("danger","SSP Wallet not installed");const e={message:this.updateHash,amount:(+this.appPricePerSpecs||0).toString(),address:this.deploymentAddress,chain:"flux"},t=await window.ssp.request("pay",e);if("ERROR"===t.status)throw new Error(t.data||t.result);this.showToast("success",`${t.data}: ${t.txid}`)}catch(e){this.showToast("danger",e.message)}},async initStripePay(e,t,a,s){try{this.fiatCheckoutURL="",this.checkoutLoading=!0;const o=localStorage.getItem("zelidauth"),r=ve.parse(o),n={zelid:r.zelid,signature:r.signature,loginPhrase:r.loginPhrase,details:{name:t,description:s,hash:e,price:a,productName:t,success_url:"https://home.runonflux.io/successcheckout",cancel_url:"https://home.runonflux.io",kpi:{origin:"FluxOS",marketplace:this.isMarketplaceApp,registration:!1}}},l=await be.post(`${X.M}/api/v1/stripe/checkout/create`,n);if("error"===l.data.status)return this.showToast("error","Failed to create stripe checkout"),void(this.checkoutLoading=!1);this.fiatCheckoutURL=l.data.data,this.checkoutLoading=!1;try{this.openSite(l.data.data)}catch(i){console.log(i),this.showToast("error","Failed to open Stripe checkout, pop-up blocked?")}}catch(i){console.log(i),this.showToast("error","Failed to create stripe checkout"),this.checkoutLoading=!1}},async initPaypalPay(e,t,a,s){try{this.fiatCheckoutURL="",this.checkoutLoading=!0;let o=null,r=await be.get("https://api.ipify.org?format=json").catch((()=>{console.log("Error geting clientIp from api.ipify.org from")}));r&&r.data&&r.data.ip?o=r.data.ip:(r=await be.get("https://ipinfo.io").catch((()=>{console.log("Error geting clientIp from ipinfo.io from")})),r&&r.data&&r.data.ip?o=r.data.ip:(r=await be.get("https://api.ip2location.io").catch((()=>{console.log("Error geting clientIp from api.ip2location.io from")})),r&&r.data&&r.data.ip&&(o=r.data.ip)));const n=localStorage.getItem("zelidauth"),l=ve.parse(n),c={zelid:l.zelid,signature:l.signature,loginPhrase:l.loginPhrase,details:{clientIP:o,name:t,description:s,hash:e,price:a,productName:t,return_url:"home.runonflux.io/successcheckout",cancel_url:"home.runonflux.io",kpi:{origin:"FluxOS",marketplace:this.isMarketplaceApp,registration:!1}}},p=await be.post(`${X.M}/api/v1/paypal/checkout/create`,c);if("error"===p.data.status)return this.showToast("error","Failed to create PayPal checkout"),void(this.checkoutLoading=!1);this.fiatCheckoutURL=p.data.data,this.checkoutLoading=!1;try{this.openSite(p.data.data)}catch(i){console.log(i),this.showToast("error","Failed to open Paypal checkout, pop-up blocked?")}}catch(i){console.log(i),this.showToast("error","Failed to create PayPal checkout"),this.checkoutLoading=!1}},async getApplicationManagementAndStatus(){if(this.selectedIp){await this.appsGetListAllApps(),console.log(this.getAllAppsResponse);const e=this.getAllAppsResponse.data.find((e=>e.Names[0]===this.getAppDockerNameIdentifier()))||{},t={name:this.appName,state:e.State||"Unknown state",status:e.Status||"Unknown status"};this.appInfoObject.push(t),t.state=t.state.charAt(0).toUpperCase()+t.state.slice(1),t.status=t.status.charAt(0).toUpperCase()+t.status.slice(1);let a=`${t.name} - ${t.state} - ${t.status}`;if(this.appSpecification&&this.appSpecification.version>=4){a=`${this.appSpecification.name}:`;for(const e of this.appSpecification.compose){const t=this.getAllAppsResponse.data.find((t=>t.Names[0]===this.getAppDockerNameIdentifier(`${e.name}_${this.appSpecification.name}`)))||{},s={name:e.name,state:t.State||"Unknown state",status:t.Status||"Unknown status"};this.appInfoObject.push(s),s.state=s.state.charAt(0).toUpperCase()+s.state.slice(1),s.status=s.status.charAt(0).toUpperCase()+s.status.slice(1);const i=` ${s.name} - ${s.state} - ${s.status},`;a+=i}a=a.substring(0,a.length-1),a+=` - ${this.selectedIp}`}this.applicationManagementAndStatus=a}},selectedIpChanged(){this.getApplicationManagementAndStatus(),this.getInstalledApplicationSpecifics()},cleanData(){this.dataToSign="",this.timestamp="",this.signature="",this.updateHash="",this.output=[]}}},ke=_e;var Ae=a(1001),Re=(0,Ae.Z)(ke,s,i,!1,null,null,null);const Te=Re.exports},2272:(e,t,a)=>{"use strict";a.d(t,{Z:()=>f});var s=function(){var e=this,t=e._self._c;return t("div",{staticClass:"flux-share-upload",style:e.cssProps},[t("b-row",[t("div",{staticClass:"flux-share-upload-drop text-center",attrs:{id:"dropTarget"},on:{drop:function(t){return t.preventDefault(),e.addFile.apply(null,arguments)},dragover:function(e){e.preventDefault()},click:e.selectFiles}},[t("v-icon",{attrs:{name:"cloud-upload-alt"}}),t("p",[e._v("Drop files here or "),t("em",[e._v("click to upload")])]),t("p",{staticClass:"upload-footer"},[e._v(" (File size is limited to 5GB) ")])],1),t("input",{ref:"fileselector",staticClass:"flux-share-upload-input",attrs:{id:"file-selector",type:"file",multiple:""},on:{change:e.handleFiles}}),t("b-col",{staticClass:"upload-column"},e._l(e.files,(function(a){return t("div",{key:a.file.name,staticClass:"upload-item",staticStyle:{"margin-bottom":"3px"}},[e._v(" "+e._s(a.file.name)+" ("+e._s(e.addAndConvertFileSizes(a.file.size))+") "),t("span",{staticClass:"delete text-white",attrs:{"aria-hidden":"true"}},[a.uploading?e._e():t("v-icon",{style:{color:e.determineColor(a.file.name)},attrs:{name:"trash-alt",disabled:a.uploading},on:{mouseenter:function(t){return e.handleHover(a.file.name,!0)},mouseleave:function(t){return e.handleHover(a.file.name,!1)},focusin:function(t){return e.handleHover(a.file.name,!0)},focusout:function(t){return e.handleHover(a.file.name,!1)},click:function(t){return e.removeFile(a)}}})],1),t("b-progress",{class:a.uploading||a.uploaded?"":"hidden",attrs:{value:a.progress,max:"100",striped:"",height:"5px"}})],1)})),0)],1),t("b-row",[t("b-col",{staticClass:"text-center",attrs:{xs:"12"}},[t("b-button",{staticClass:"delete mt-1",attrs:{variant:"primary",disabled:!e.filesToUpload,size:"sm","aria-label":"Close"},on:{click:function(t){return e.startUpload()}}},[e._v(" Upload Files ")])],1)],1)],1)},i=[],o=(a(70560),a(26253)),r=a(50725),n=a(45752),l=a(15193),c=a(68934),p=a(34547);const d={components:{BRow:o.T,BCol:r.l,BProgress:n.D,BButton:l.T,ToastificationContent:p.Z},props:{uploadFolder:{type:String,required:!0},headers:{type:Object,required:!0}},data(){return{isHovered:!1,hoverStates:{},files:[],primaryColor:c.j.primary,secondaryColor:c.j.secondary}},computed:{cssProps(){return{"--primary-color":this.primaryColor,"--secondary-color":this.secondaryColor}},filesToUpload(){return this.files.length>0&&this.files.some((e=>!e.uploading&&!e.uploaded&&0===e.progress))}},methods:{addAndConvertFileSizes(e,t="auto",a=2){const s={B:1,KB:1024,MB:1048576,GB:1073741824},i=(e,t)=>e/s[t.toUpperCase()],o=(e,t)=>{const s="B"===t?e.toFixed(0):e.toFixed(a);return`${s} ${t}`};let r;if(Array.isArray(e)&&e.length>0)r=+e.reduce(((e,t)=>e+(t.file_size||0)),0);else{if("number"!==typeof+e)return console.error("Invalid sizes parameter"),"N/A";r=+e}if(isNaN(r))return console.error("Total size is not a valid number"),"N/A";if("auto"===t){let e,t=r;return Object.keys(s).forEach((a=>{const s=i(r,a);s>=1&&(void 0===t||s{const t=this.files.some((t=>t.file.name===e.name));console.log(t),t?this.showToast("warning",`'${e.name}' is already in the upload queue`):this.files.push({file:e,uploading:!1,uploaded:!1,progress:0})}))},removeFile(e){this.files=this.files.filter((t=>t.file.name!==e.file.name))},startUpload(){console.log(this.uploadFolder),console.log(this.files),this.files.forEach((e=>{console.log(e),e.uploaded||e.uploading||this.upload(e)}))},upload(e){const t=this;if("undefined"===typeof XMLHttpRequest)return;const a=new XMLHttpRequest,s=this.uploadFolder;a.upload&&(a.upload.onprogress=function(t){console.log(t),t.total>0&&(t.percent=t.loaded/t.total*100),e.progress=t.percent});const i=new FormData;i.append(e.file.name,e.file),e.uploading=!0,a.onerror=function(a){console.log(a),t.showToast("danger",`An error occurred while uploading '${e.file.name}' - ${a}`),t.removeFile(e)},a.onload=function(){if(a.status<200||a.status>=300)return console.log("error"),console.log(a.status),t.showToast("danger",`An error occurred while uploading '${e.file.name}' - Status code: ${a.status}`),void t.removeFile(e);e.uploaded=!0,e.uploading=!1,t.$emit("complete"),t.removeFile(e),t.showToast("success",`'${e.file.name}' has been uploaded`)},a.open("post",s,!0);const o=this.headers||{},r=Object.keys(o);for(let n=0;n{"use strict";function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){for(var a=0;a=e.length?{done:!0}:{done:!1,value:e[s++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,r=!0,l=!1;return{s:function(){a=a.call(e)},n:function(){var e=a.next();return r=e.done,e},e:function(e){l=!0,o=e},f:function(){try{r||null==a["return"]||a["return"]()}finally{if(l)throw o}}}}function n(e,t){if(e){if("string"===typeof e)return l(e,t);var a=Object.prototype.toString.call(e).slice(8,-1);return"Object"===a&&e.constructor&&(a=e.constructor.name),"Map"===a||"Set"===a?Array.from(e):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?l(e,t):void 0}}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var a=0,s=new Array(t);a0?40*e+55:0,r=t>0?40*t+55:0,n=a>0?40*a+55:0;s[i]=h([o,r,n])}function m(e){var t=e.toString(16);while(t.length<2)t="0"+t;return t}function h(e){var t,a=[],s=r(e);try{for(s.s();!(t=s.n()).done;){var i=t.value;a.push(m(i))}}catch(o){s.e(o)}finally{s.f()}return"#"+a.join("")}function f(e,t,a,s){var i;return"text"===t?i=S(a,s):"display"===t?i=b(e,a,s):"xterm256Foreground"===t?i=k(e,s.colors[a]):"xterm256Background"===t?i=A(e,s.colors[a]):"rgb"===t&&(i=g(e,a)),i}function g(e,t){t=t.substring(2).slice(0,-1);var a=+t.substr(0,2),s=t.substring(5).split(";"),i=s.map((function(e){return("0"+Number(e).toString(16)).substr(-2)})).join("");return _(e,(38===a?"color:#":"background-color:#")+i)}function b(e,t,a){t=parseInt(t,10);var s,i={"-1":function(){return"
"},0:function(){return e.length&&v(e)},1:function(){return C(e,"b")},3:function(){return C(e,"i")},4:function(){return C(e,"u")},8:function(){return _(e,"display:none")},9:function(){return C(e,"strike")},22:function(){return _(e,"font-weight:normal;text-decoration:none;font-style:normal")},23:function(){return R(e,"i")},24:function(){return R(e,"u")},39:function(){return k(e,a.fg)},49:function(){return A(e,a.bg)},53:function(){return _(e,"text-decoration:overline")}};return i[t]?s=i[t]():4"})).join("")}function y(e,t){for(var a=[],s=e;s<=t;s++)a.push(s);return a}function w(e){return function(t){return(null===e||t.category!==e)&&"all"!==e}}function x(e){e=parseInt(e,10);var t=null;return 0===e?t="all":1===e?t="bold":2")}function _(e,t){return C(e,"span",t)}function k(e,t){return C(e,"span","color:"+t)}function A(e,t){return C(e,"span","background-color:"+t)}function R(e,t){var a;if(e.slice(-1)[0]===t&&(a=e.pop()),a)return""}function T(e,t,a){var s=!1,i=3;function o(){return""}function n(e,t){return a("xterm256Foreground",t),""}function l(e,t){return a("xterm256Background",t),""}function c(e){return t.newline?a("display",-1):a("text",e),""}function p(e,t){s=!0,0===t.trim().length&&(t="0"),t=t.trimRight(";").split(";");var i,o=r(t);try{for(o.s();!(i=o.n()).done;){var n=i.value;a("display",n)}}catch(l){o.e(l)}finally{o.f()}return""}function d(e){return a("text",e),""}function u(e){return a("rgb",e),""}var m=[{pattern:/^\x08+/,sub:o},{pattern:/^\x1b\[[012]?K/,sub:o},{pattern:/^\x1b\[\(B/,sub:o},{pattern:/^\x1b\[[34]8;2;\d+;\d+;\d+m/,sub:u},{pattern:/^\x1b\[38;5;(\d+)m/,sub:n},{pattern:/^\x1b\[48;5;(\d+)m/,sub:l},{pattern:/^\n/,sub:c},{pattern:/^\r+\n/,sub:c},{pattern:/^\r/,sub:c},{pattern:/^\x1b\[((?:\d{1,3};?)+|)m/,sub:p},{pattern:/^\x1b\[\d?J/,sub:o},{pattern:/^\x1b\[\d{0,3};\d{0,3}f/,sub:o},{pattern:/^\x1b\[?[\d;]{0,3}/,sub:o},{pattern:/^(([^\x1b\x08\r\n])+)/,sub:d}];function h(t,a){a>i&&s||(s=!1,e=e.replace(t.pattern,t.sub))}var f=[],g=e,b=g.length;e:while(b>0){for(var v=0,y=0,w=m.length;y65535&&(e-=65536,t+=String.fromCharCode(e>>>10&1023|55296),e=56320|1023&e),t+=String.fromCharCode(e),t};function r(e){return e>=55296&&e<=57343||e>1114111?"�":(e in i.default&&(e=i.default[e]),o(e))}t["default"]=r},65746:function(e,t,a){"use strict";var s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.escapeUTF8=t.escape=t.encodeNonAsciiHTML=t.encodeHTML=t.encodeXML=void 0;var i=s(a(70663)),o=p(i.default),r=d(o);t.encodeXML=y(o);var n=s(a(60291)),l=p(n.default),c=d(l);function p(e){return Object.keys(e).sort().reduce((function(t,a){return t[e[a]]="&"+a+";",t}),{})}function d(e){for(var t=[],a=[],s=0,i=Object.keys(e);s1?m(e):e.charCodeAt(0)).toString(16).toUpperCase()+";"}function f(e,t){return function(a){return a.replace(t,(function(t){return e[t]})).replace(u,h)}}var g=new RegExp(r.source+"|"+u.source,"g");function b(e){return e.replace(g,h)}function v(e){return e.replace(r,h)}function y(e){return function(t){return t.replace(g,(function(t){return e[t]||h(t)}))}}t.escape=b,t.escapeUTF8=v},68320:(e,t,a)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.decodeXMLStrict=t.decodeHTML5Strict=t.decodeHTML4Strict=t.decodeHTML5=t.decodeHTML4=t.decodeHTMLStrict=t.decodeHTML=t.decodeXML=t.encodeHTML5=t.encodeHTML4=t.escapeUTF8=t.escape=t.encodeNonAsciiHTML=t.encodeHTML=t.encodeXML=t.encode=t.decodeStrict=t.decode=void 0;var s=a(89995),i=a(65746);function o(e,t){return(!t||t<=0?s.decodeXML:s.decodeHTML)(e)}function r(e,t){return(!t||t<=0?s.decodeXML:s.decodeHTMLStrict)(e)}function n(e,t){return(!t||t<=0?i.encodeXML:i.encodeHTML)(e)}t.decode=o,t.decodeStrict=r,t.encode=n;var l=a(65746);Object.defineProperty(t,"encodeXML",{enumerable:!0,get:function(){return l.encodeXML}}),Object.defineProperty(t,"encodeHTML",{enumerable:!0,get:function(){return l.encodeHTML}}),Object.defineProperty(t,"encodeNonAsciiHTML",{enumerable:!0,get:function(){return l.encodeNonAsciiHTML}}),Object.defineProperty(t,"escape",{enumerable:!0,get:function(){return l.escape}}),Object.defineProperty(t,"escapeUTF8",{enumerable:!0,get:function(){return l.escapeUTF8}}),Object.defineProperty(t,"encodeHTML4",{enumerable:!0,get:function(){return l.encodeHTML}}),Object.defineProperty(t,"encodeHTML5",{enumerable:!0,get:function(){return l.encodeHTML}});var c=a(89995);Object.defineProperty(t,"decodeXML",{enumerable:!0,get:function(){return c.decodeXML}}),Object.defineProperty(t,"decodeHTML",{enumerable:!0,get:function(){return c.decodeHTML}}),Object.defineProperty(t,"decodeHTMLStrict",{enumerable:!0,get:function(){return c.decodeHTMLStrict}}),Object.defineProperty(t,"decodeHTML4",{enumerable:!0,get:function(){return c.decodeHTML}}),Object.defineProperty(t,"decodeHTML5",{enumerable:!0,get:function(){return c.decodeHTML}}),Object.defineProperty(t,"decodeHTML4Strict",{enumerable:!0,get:function(){return c.decodeHTMLStrict}}),Object.defineProperty(t,"decodeHTML5Strict",{enumerable:!0,get:function(){return c.decodeHTMLStrict}}),Object.defineProperty(t,"decodeXMLStrict",{enumerable:!0,get:function(){return c.decodeXML}})},56761:e=>{(function(){"use strict";e.exports=function(e,t,a){for(var s=t||/\s/g,i=!1,o=!1,r=[],n=[],l=e.split(""),c=0;c0?(n.push(r.join("")),r=[]):t&&n.push(p):(!0===a&&r.push(p),o=!o):(!0===a&&r.push(p),i=!i)}return r.length>0?n.push(r.join("")):t&&n.push(""),n}})()},12617:e=>{!function(t,a){e.exports=a()}(self,(()=>(()=>{"use strict";var e={};return(()=>{var t=e;Object.defineProperty(t,"__esModule",{value:!0}),t.FitAddon=void 0,t.FitAddon=class{activate(e){this._terminal=e}dispose(){}fit(){const e=this.proposeDimensions();if(!e||!this._terminal||isNaN(e.cols)||isNaN(e.rows))return;const t=this._terminal._core;this._terminal.rows===e.rows&&this._terminal.cols===e.cols||(t._renderService.clear(),this._terminal.resize(e.cols,e.rows))}proposeDimensions(){if(!this._terminal)return;if(!this._terminal.element||!this._terminal.element.parentElement)return;const e=this._terminal._core,t=e._renderService.dimensions;if(0===t.css.cell.width||0===t.css.cell.height)return;const a=0===this._terminal.options.scrollback?0:e.viewport.scrollBarWidth,s=window.getComputedStyle(this._terminal.element.parentElement),i=parseInt(s.getPropertyValue("height")),o=Math.max(0,parseInt(s.getPropertyValue("width"))),r=window.getComputedStyle(this._terminal.element),n=i-(parseInt(r.getPropertyValue("padding-top"))+parseInt(r.getPropertyValue("padding-bottom"))),l=o-(parseInt(r.getPropertyValue("padding-right"))+parseInt(r.getPropertyValue("padding-left")))-a;return{cols:Math.max(2,Math.floor(l/t.css.cell.width)),rows:Math.max(1,Math.floor(n/t.css.cell.height))}}}})(),e})()))},12286:function(e){!function(t,a){e.exports=a()}(0,(()=>(()=>{"use strict";var e={930:(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ColorContrastCache=void 0;const s=a(485);t.ColorContrastCache=class{constructor(){this._color=new s.TwoKeyMap,this._css=new s.TwoKeyMap}setCss(e,t,a){this._css.set(e,t,a)}getCss(e,t){return this._css.get(e,t)}setColor(e,t,a){this._color.set(e,t,a)}getColor(e,t){return this._color.get(e,t)}clear(){this._color.clear(),this._css.clear()}}},997:function(e,t,a){var s=this&&this.__decorate||function(e,t,a,s){var i,o=arguments.length,r=o<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,a):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,a,s);else for(var n=e.length-1;n>=0;n--)(i=e[n])&&(r=(o<3?i(r):o>3?i(t,a,r):i(t,a))||r);return o>3&&r&&Object.defineProperty(t,a,r),r},i=this&&this.__param||function(e,t){return function(a,s){t(a,s,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.ThemeService=t.DEFAULT_ANSI_COLORS=void 0;const o=a(930),r=a(160),n=a(345),l=a(859),c=a(97),p=r.css.toColor("#ffffff"),d=r.css.toColor("#000000"),u=r.css.toColor("#ffffff"),m=r.css.toColor("#000000"),h={css:"rgba(255, 255, 255, 0.3)",rgba:4294967117};t.DEFAULT_ANSI_COLORS=Object.freeze((()=>{const e=[r.css.toColor("#2e3436"),r.css.toColor("#cc0000"),r.css.toColor("#4e9a06"),r.css.toColor("#c4a000"),r.css.toColor("#3465a4"),r.css.toColor("#75507b"),r.css.toColor("#06989a"),r.css.toColor("#d3d7cf"),r.css.toColor("#555753"),r.css.toColor("#ef2929"),r.css.toColor("#8ae234"),r.css.toColor("#fce94f"),r.css.toColor("#729fcf"),r.css.toColor("#ad7fa8"),r.css.toColor("#34e2e2"),r.css.toColor("#eeeeec")],t=[0,95,135,175,215,255];for(let a=0;a<216;a++){const s=t[a/36%6|0],i=t[a/6%6|0],o=t[a%6];e.push({css:r.channels.toCss(s,i,o),rgba:r.channels.toRgba(s,i,o)})}for(let a=0;a<24;a++){const t=8+10*a;e.push({css:r.channels.toCss(t,t,t),rgba:r.channels.toRgba(t,t,t)})}return e})());let f=t.ThemeService=class extends l.Disposable{get colors(){return this._colors}constructor(e){super(),this._optionsService=e,this._contrastCache=new o.ColorContrastCache,this._halfContrastCache=new o.ColorContrastCache,this._onChangeColors=this.register(new n.EventEmitter),this.onChangeColors=this._onChangeColors.event,this._colors={foreground:p,background:d,cursor:u,cursorAccent:m,selectionForeground:void 0,selectionBackgroundTransparent:h,selectionBackgroundOpaque:r.color.blend(d,h),selectionInactiveBackgroundTransparent:h,selectionInactiveBackgroundOpaque:r.color.blend(d,h),ansi:t.DEFAULT_ANSI_COLORS.slice(),contrastCache:this._contrastCache,halfContrastCache:this._halfContrastCache},this._updateRestoreColors(),this._setTheme(this._optionsService.rawOptions.theme),this.register(this._optionsService.onSpecificOptionChange("minimumContrastRatio",(()=>this._contrastCache.clear()))),this.register(this._optionsService.onSpecificOptionChange("theme",(()=>this._setTheme(this._optionsService.rawOptions.theme))))}_setTheme(e={}){const a=this._colors;if(a.foreground=g(e.foreground,p),a.background=g(e.background,d),a.cursor=g(e.cursor,u),a.cursorAccent=g(e.cursorAccent,m),a.selectionBackgroundTransparent=g(e.selectionBackground,h),a.selectionBackgroundOpaque=r.color.blend(a.background,a.selectionBackgroundTransparent),a.selectionInactiveBackgroundTransparent=g(e.selectionInactiveBackground,a.selectionBackgroundTransparent),a.selectionInactiveBackgroundOpaque=r.color.blend(a.background,a.selectionInactiveBackgroundTransparent),a.selectionForeground=e.selectionForeground?g(e.selectionForeground,r.NULL_COLOR):void 0,a.selectionForeground===r.NULL_COLOR&&(a.selectionForeground=void 0),r.color.isOpaque(a.selectionBackgroundTransparent)){const e=.3;a.selectionBackgroundTransparent=r.color.opacity(a.selectionBackgroundTransparent,e)}if(r.color.isOpaque(a.selectionInactiveBackgroundTransparent)){const e=.3;a.selectionInactiveBackgroundTransparent=r.color.opacity(a.selectionInactiveBackgroundTransparent,e)}if(a.ansi=t.DEFAULT_ANSI_COLORS.slice(),a.ansi[0]=g(e.black,t.DEFAULT_ANSI_COLORS[0]),a.ansi[1]=g(e.red,t.DEFAULT_ANSI_COLORS[1]),a.ansi[2]=g(e.green,t.DEFAULT_ANSI_COLORS[2]),a.ansi[3]=g(e.yellow,t.DEFAULT_ANSI_COLORS[3]),a.ansi[4]=g(e.blue,t.DEFAULT_ANSI_COLORS[4]),a.ansi[5]=g(e.magenta,t.DEFAULT_ANSI_COLORS[5]),a.ansi[6]=g(e.cyan,t.DEFAULT_ANSI_COLORS[6]),a.ansi[7]=g(e.white,t.DEFAULT_ANSI_COLORS[7]),a.ansi[8]=g(e.brightBlack,t.DEFAULT_ANSI_COLORS[8]),a.ansi[9]=g(e.brightRed,t.DEFAULT_ANSI_COLORS[9]),a.ansi[10]=g(e.brightGreen,t.DEFAULT_ANSI_COLORS[10]),a.ansi[11]=g(e.brightYellow,t.DEFAULT_ANSI_COLORS[11]),a.ansi[12]=g(e.brightBlue,t.DEFAULT_ANSI_COLORS[12]),a.ansi[13]=g(e.brightMagenta,t.DEFAULT_ANSI_COLORS[13]),a.ansi[14]=g(e.brightCyan,t.DEFAULT_ANSI_COLORS[14]),a.ansi[15]=g(e.brightWhite,t.DEFAULT_ANSI_COLORS[15]),e.extendedAnsi){const s=Math.min(a.ansi.length-16,e.extendedAnsi.length);for(let i=0;i{Object.defineProperty(t,"__esModule",{value:!0}),t.contrastRatio=t.toPaddedHex=t.rgba=t.rgb=t.css=t.color=t.channels=t.NULL_COLOR=void 0;const s=a(399);let i=0,o=0,r=0,n=0;var l,c,p,d,u;function m(e){const t=e.toString(16);return t.length<2?"0"+t:t}function h(e,t){return e>>0}}(l||(t.channels=l={})),function(e){function t(e,t){return n=Math.round(255*t),[i,o,r]=u.toChannels(e.rgba),{css:l.toCss(i,o,r,n),rgba:l.toRgba(i,o,r,n)}}e.blend=function(e,t){if(n=(255&t.rgba)/255,1===n)return{css:t.css,rgba:t.rgba};const a=t.rgba>>24&255,s=t.rgba>>16&255,c=t.rgba>>8&255,p=e.rgba>>24&255,d=e.rgba>>16&255,u=e.rgba>>8&255;return i=p+Math.round((a-p)*n),o=d+Math.round((s-d)*n),r=u+Math.round((c-u)*n),{css:l.toCss(i,o,r),rgba:l.toRgba(i,o,r)}},e.isOpaque=function(e){return 255==(255&e.rgba)},e.ensureContrastRatio=function(e,t,a){const s=u.ensureContrastRatio(e.rgba,t.rgba,a);if(s)return u.toColor(s>>24&255,s>>16&255,s>>8&255)},e.opaque=function(e){const t=(255|e.rgba)>>>0;return[i,o,r]=u.toChannels(t),{css:l.toCss(i,o,r),rgba:t}},e.opacity=t,e.multiplyOpacity=function(e,a){return n=255&e.rgba,t(e,n*a/255)},e.toColorRGB=function(e){return[e.rgba>>24&255,e.rgba>>16&255,e.rgba>>8&255]}}(c||(t.color=c={})),function(e){let t,a;if(!s.isNode){const e=document.createElement("canvas");e.width=1,e.height=1;const s=e.getContext("2d",{willReadFrequently:!0});s&&(t=s,t.globalCompositeOperation="copy",a=t.createLinearGradient(0,0,1,1))}e.toColor=function(e){if(e.match(/#[\da-f]{3,8}/i))switch(e.length){case 4:return i=parseInt(e.slice(1,2).repeat(2),16),o=parseInt(e.slice(2,3).repeat(2),16),r=parseInt(e.slice(3,4).repeat(2),16),u.toColor(i,o,r);case 5:return i=parseInt(e.slice(1,2).repeat(2),16),o=parseInt(e.slice(2,3).repeat(2),16),r=parseInt(e.slice(3,4).repeat(2),16),n=parseInt(e.slice(4,5).repeat(2),16),u.toColor(i,o,r,n);case 7:return{css:e,rgba:(parseInt(e.slice(1),16)<<8|255)>>>0};case 9:return{css:e,rgba:parseInt(e.slice(1),16)>>>0}}const s=e.match(/rgba?\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*(,\s*(0|1|\d?\.(\d+))\s*)?\)/);if(s)return i=parseInt(s[1]),o=parseInt(s[2]),r=parseInt(s[3]),n=Math.round(255*(void 0===s[5]?1:parseFloat(s[5]))),u.toColor(i,o,r,n);if(!t||!a)throw new Error("css.toColor: Unsupported css format");if(t.fillStyle=a,t.fillStyle=e,"string"!=typeof t.fillStyle)throw new Error("css.toColor: Unsupported css format");if(t.fillRect(0,0,1,1),[i,o,r,n]=t.getImageData(0,0,1,1).data,255!==n)throw new Error("css.toColor: Unsupported css format");return{rgba:l.toRgba(i,o,r,n),css:e}}}(p||(t.css=p={})),function(e){function t(e,t,a){const s=e/255,i=t/255,o=a/255;return.2126*(s<=.03928?s/12.92:Math.pow((s+.055)/1.055,2.4))+.7152*(i<=.03928?i/12.92:Math.pow((i+.055)/1.055,2.4))+.0722*(o<=.03928?o/12.92:Math.pow((o+.055)/1.055,2.4))}e.relativeLuminance=function(e){return t(e>>16&255,e>>8&255,255&e)},e.relativeLuminance2=t}(d||(t.rgb=d={})),function(e){function t(e,t,a){const s=e>>24&255,i=e>>16&255,o=e>>8&255;let r=t>>24&255,n=t>>16&255,l=t>>8&255,c=h(d.relativeLuminance2(r,n,l),d.relativeLuminance2(s,i,o));for(;c0||n>0||l>0);)r-=Math.max(0,Math.ceil(.1*r)),n-=Math.max(0,Math.ceil(.1*n)),l-=Math.max(0,Math.ceil(.1*l)),c=h(d.relativeLuminance2(r,n,l),d.relativeLuminance2(s,i,o));return(r<<24|n<<16|l<<8|255)>>>0}function a(e,t,a){const s=e>>24&255,i=e>>16&255,o=e>>8&255;let r=t>>24&255,n=t>>16&255,l=t>>8&255,c=h(d.relativeLuminance2(r,n,l),d.relativeLuminance2(s,i,o));for(;c>>0}e.ensureContrastRatio=function(e,s,i){const o=d.relativeLuminance(e>>8),r=d.relativeLuminance(s>>8);if(h(o,r)>8));if(nh(o,d.relativeLuminance(t>>8))?r:t}return r}const n=a(e,s,i),l=h(o,d.relativeLuminance(n>>8));if(lh(o,d.relativeLuminance(a>>8))?n:a}return n}},e.reduceLuminance=t,e.increaseLuminance=a,e.toChannels=function(e){return[e>>24&255,e>>16&255,e>>8&255,255&e]},e.toColor=function(e,t,a,s){return{css:l.toCss(e,t,a,s),rgba:l.toRgba(e,t,a,s)}}}(u||(t.rgba=u={})),t.toPaddedHex=m,t.contrastRatio=h},345:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.forwardEvent=t.EventEmitter=void 0,t.EventEmitter=class{constructor(){this._listeners=[],this._disposed=!1}get event(){return this._event||(this._event=e=>(this._listeners.push(e),{dispose:()=>{if(!this._disposed)for(let t=0;tt.fire(e)))}},859:(e,t)=>{function a(e){for(const t of e)t.dispose();e.length=0}Object.defineProperty(t,"__esModule",{value:!0}),t.getDisposeArrayDisposable=t.disposeArray=t.toDisposable=t.MutableDisposable=t.Disposable=void 0,t.Disposable=class{constructor(){this._disposables=[],this._isDisposed=!1}dispose(){this._isDisposed=!0;for(const e of this._disposables)e.dispose();this._disposables.length=0}register(e){return this._disposables.push(e),e}unregister(e){const t=this._disposables.indexOf(e);-1!==t&&this._disposables.splice(t,1)}},t.MutableDisposable=class{constructor(){this._isDisposed=!1}get value(){return this._isDisposed?void 0:this._value}set value(e){var t;this._isDisposed||e===this._value||(null===(t=this._value)||void 0===t||t.dispose(),this._value=e)}clear(){this.value=void 0}dispose(){var e;this._isDisposed=!0,null===(e=this._value)||void 0===e||e.dispose(),this._value=void 0}},t.toDisposable=function(e){return{dispose:e}},t.disposeArray=a,t.getDisposeArrayDisposable=function(e){return{dispose:()=>a(e)}}},485:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.FourKeyMap=t.TwoKeyMap=void 0;class a{constructor(){this._data={}}set(e,t,a){this._data[e]||(this._data[e]={}),this._data[e][t]=a}get(e,t){return this._data[e]?this._data[e][t]:void 0}clear(){this._data={}}}t.TwoKeyMap=a,t.FourKeyMap=class{constructor(){this._data=new a}set(e,t,s,i,o){this._data.get(e,t)||this._data.set(e,t,new a),this._data.get(e,t).set(s,i,o)}get(e,t,a,s){var i;return null===(i=this._data.get(e,t))||void 0===i?void 0:i.get(a,s)}clear(){this._data.clear()}}},399:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.isChromeOS=t.isLinux=t.isWindows=t.isIphone=t.isIpad=t.isMac=t.getSafariVersion=t.isSafari=t.isLegacyEdge=t.isFirefox=t.isNode=void 0,t.isNode="undefined"==typeof navigator;const a=t.isNode?"node":navigator.userAgent,s=t.isNode?"node":navigator.platform;t.isFirefox=a.includes("Firefox"),t.isLegacyEdge=a.includes("Edge"),t.isSafari=/^((?!chrome|android).)*safari/i.test(a),t.getSafariVersion=function(){if(!t.isSafari)return 0;const e=a.match(/Version\/(\d+)/);return null===e||e.length<2?0:parseInt(e[1])},t.isMac=["Macintosh","MacIntel","MacPPC","Mac68K"].includes(s),t.isIpad="iPad"===s,t.isIphone="iPhone"===s,t.isWindows=["Windows","Win16","Win32","WinCE"].includes(s),t.isLinux=s.indexOf("Linux")>=0,t.isChromeOS=/\bCrOS\b/.test(a)},726:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.createDecorator=t.getServiceDependencies=t.serviceRegistry=void 0;const a="di$target",s="di$dependencies";t.serviceRegistry=new Map,t.getServiceDependencies=function(e){return e[s]||[]},t.createDecorator=function(e){if(t.serviceRegistry.has(e))return t.serviceRegistry.get(e);const i=function(e,t,o){if(3!==arguments.length)throw new Error("@IServiceName-decorator can only be used to decorate a parameter");!function(e,t,i){t[a]===t?t[s].push({id:e,index:i}):(t[s]=[{id:e,index:i}],t[a]=t)}(i,e,o)};return i.toString=()=>e,t.serviceRegistry.set(e,i),i}},97:(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.IDecorationService=t.IUnicodeService=t.IOscLinkService=t.IOptionsService=t.ILogService=t.LogLevelEnum=t.IInstantiationService=t.ICharsetService=t.ICoreService=t.ICoreMouseService=t.IBufferService=void 0;const s=a(726);var i;t.IBufferService=(0,s.createDecorator)("BufferService"),t.ICoreMouseService=(0,s.createDecorator)("CoreMouseService"),t.ICoreService=(0,s.createDecorator)("CoreService"),t.ICharsetService=(0,s.createDecorator)("CharsetService"),t.IInstantiationService=(0,s.createDecorator)("InstantiationService"),function(e){e[e.TRACE=0]="TRACE",e[e.DEBUG=1]="DEBUG",e[e.INFO=2]="INFO",e[e.WARN=3]="WARN",e[e.ERROR=4]="ERROR",e[e.OFF=5]="OFF"}(i||(t.LogLevelEnum=i={})),t.ILogService=(0,s.createDecorator)("LogService"),t.IOptionsService=(0,s.createDecorator)("OptionsService"),t.IOscLinkService=(0,s.createDecorator)("OscLinkService"),t.IUnicodeService=(0,s.createDecorator)("UnicodeService"),t.IDecorationService=(0,s.createDecorator)("DecorationService")}},t={};function a(s){var i=t[s];if(void 0!==i)return i.exports;var o=t[s]={exports:{}};return e[s].call(o.exports,o,o.exports,a),o.exports}var s={};return(()=>{var e=s;Object.defineProperty(e,"__esModule",{value:!0}),e.HTMLSerializeHandler=e.SerializeAddon=void 0;const t=a(997);function i(e,t,a){return Math.max(t,Math.min(e,a))}class o{constructor(e){this._buffer=e}serialize(e){const t=this._buffer.getNullCell(),a=this._buffer.getNullCell();let s=t;const i=e.start.x,o=e.end.x,r=e.start.y,n=e.end.y;this._beforeSerialize(o-i,i,o);for(let l=i;l<=o;l++){const i=this._buffer.getLine(l);if(i){const o=l!==e.start.x?0:r,c=l!==e.end.x?i.length:n;for(let e=o;e0&&!n(this._cursorStyle,this._backgroundCell)&&(this._currentRow+=`[${this._nullCellCount}X`);let s="";if(!t){e-this._firstRow>=this._terminal.rows&&(null===(a=this._buffer.getLine(this._cursorStyleRow))||void 0===a||a.getCell(this._cursorStyleCol,this._backgroundCell));const t=this._buffer.getLine(e),i=this._buffer.getLine(e+1);if(i.isWrapped){s="";const a=t.getCell(t.length-1,this._thisRowLastChar),o=t.getCell(t.length-2,this._thisRowLastSecondChar),r=i.getCell(0,this._nextRowFirstChar),l=r.getWidth()>1;let c=!1;(r.getChars()&&l?this._nullCellCount<=1:this._nullCellCount<=0)&&((a.getChars()||0===a.getWidth())&&n(a,r)&&(c=!0),l&&(o.getChars()||0===o.getWidth())&&n(a,r)&&n(o,r)&&(c=!0)),c||(s="-".repeat(this._nullCellCount+1),s+="",this._nullCellCount>0&&(s+="",s+=`[${t.length-this._nullCellCount}C`,s+=`[${this._nullCellCount}X`,s+=`[${t.length-this._nullCellCount}D`,s+=""),this._lastContentCursorRow=e+1,this._lastContentCursorCol=0,this._lastCursorRow=e+1,this._lastCursorCol=0)}else s="\r\n",this._lastCursorRow=e+1,this._lastCursorCol=0}this._allRows[this._rowIndex]=this._currentRow,this._allRowSeparators[this._rowIndex++]=s,this._currentRow="",this._nullCellCount=0}_diffStyle(e,t){const a=[],s=!r(e,t),i=!n(e,t),o=!l(e,t);if(s||i||o)if(e.isAttributeDefault())t.isAttributeDefault()||a.push(0);else{if(s){const t=e.getFgColor();e.isFgRGB()?a.push(38,2,t>>>16&255,t>>>8&255,255&t):e.isFgPalette()?t>=16?a.push(38,5,t):a.push(8&t?90+(7&t):30+(7&t)):a.push(39)}if(i){const t=e.getBgColor();e.isBgRGB()?a.push(48,2,t>>>16&255,t>>>8&255,255&t):e.isBgPalette()?t>=16?a.push(48,5,t):a.push(8&t?100+(7&t):40+(7&t)):a.push(49)}o&&(e.isInverse()!==t.isInverse()&&a.push(e.isInverse()?7:27),e.isBold()!==t.isBold()&&a.push(e.isBold()?1:22),e.isUnderline()!==t.isUnderline()&&a.push(e.isUnderline()?4:24),e.isOverline()!==t.isOverline()&&a.push(e.isOverline()?53:55),e.isBlink()!==t.isBlink()&&a.push(e.isBlink()?5:25),e.isInvisible()!==t.isInvisible()&&a.push(e.isInvisible()?8:28),e.isItalic()!==t.isItalic()&&a.push(e.isItalic()?3:23),e.isDim()!==t.isDim()&&a.push(e.isDim()?2:22),e.isStrikethrough()!==t.isStrikethrough()&&a.push(e.isStrikethrough()?9:29))}return a}_nextCell(e,t,a,s){if(0===e.getWidth())return;const i=""===e.getChars(),o=this._diffStyle(e,this._cursorStyle);if(i?!n(this._cursorStyle,e):o.length>0){this._nullCellCount>0&&(n(this._cursorStyle,this._backgroundCell)||(this._currentRow+=`[${this._nullCellCount}X`),this._currentRow+=`[${this._nullCellCount}C`,this._nullCellCount=0),this._lastContentCursorRow=this._lastCursorRow=a,this._lastContentCursorCol=this._lastCursorCol=s,this._currentRow+=`[${o.join(";")}m`;const e=this._buffer.getLine(a);void 0!==e&&(e.getCell(s,this._cursorStyle),this._cursorStyleRow=a,this._cursorStyleCol=s)}i?this._nullCellCount+=e.getWidth():(this._nullCellCount>0&&(n(this._cursorStyle,this._backgroundCell)||(this._currentRow+=`[${this._nullCellCount}X`),this._currentRow+=`[${this._nullCellCount}C`,this._nullCellCount=0),this._currentRow+=e.getChars(),this._lastContentCursorRow=this._lastCursorRow=a,this._lastContentCursorCol=this._lastCursorCol=s+e.getWidth())}_serializeString(){let e=this._allRows.length;this._buffer.length-this._firstRow<=this._terminal.rows&&(e=this._lastContentCursorRow+1-this._firstRow,this._lastCursorCol=this._lastContentCursorCol,this._lastCursorRow=this._lastContentCursorRow);let t="";for(let n=0;n0?t+=`[${i}B`:i<0&&(t+=`[${-i}A`),(e=>{e>0?t+=`[${e}C`:e<0&&(t+=`[${-e}D`)})(s-this._lastCursorCol));const o=this._terminal._core._inputHandler._curAttrData,r=this._diffStyle(o,this._cursorStyle);return r.length>0&&(t+=`[${r.join(";")}m`),t}}e.SerializeAddon=class{activate(e){this._terminal=e}_serializeBuffer(e,t,a){const s=t.length,o=new c(t,e),r=void 0===a?s:i(a+e.rows,0,s);return o.serialize({start:{x:s-r,y:0},end:{x:s-1,y:e.cols}})}_serializeBufferAsHTML(e,t){var a,s;const o=e.buffer.active,r=new p(o,e,t);if(null===(a=t.onlySelection)||void 0===a||!a){const a=o.length,s=t.scrollback,n=void 0===s?a:i(s+e.rows,0,a);return r.serialize({start:{x:a-n,y:0},end:{x:a-1,y:e.cols}})}const n=null===(s=this._terminal)||void 0===s?void 0:s.getSelectionPosition();return void 0!==n?r.serialize({start:{x:n.start.y,y:n.start.x},end:{x:n.end.y,y:n.end.x}}):""}_serializeModes(e){let t="";const a=e.modes;if(a.applicationCursorKeysMode&&(t+="[?1h"),a.applicationKeypadMode&&(t+="[?66h"),a.bracketedPasteMode&&(t+="[?2004h"),a.insertMode&&(t+=""),a.originMode&&(t+="[?6h"),a.reverseWraparoundMode&&(t+="[?45h"),a.sendFocusMode&&(t+="[?1004h"),!1===a.wraparoundMode&&(t+="[?7l"),"none"!==a.mouseTrackingMode)switch(a.mouseTrackingMode){case"x10":t+="[?9h";break;case"vt200":t+="[?1000h";break;case"drag":t+="[?1002h";break;case"any":t+="[?1003h"}return t}serialize(e){if(!this._terminal)throw new Error("Cannot use addon until it has been loaded");let t=this._serializeBuffer(this._terminal,this._terminal.buffer.normal,null==e?void 0:e.scrollback);return(null==e?void 0:e.excludeAltBuffer)||"alternate"!==this._terminal.buffer.active.type||(t+=`[?1049h${this._serializeBuffer(this._terminal,this._terminal.buffer.alternate,void 0)}`),(null==e?void 0:e.excludeModes)||(t+=this._serializeModes(this._terminal)),t}serializeAsHTML(e){if(!this._terminal)throw new Error("Cannot use addon until it has been loaded");return this._serializeBufferAsHTML(this._terminal,e||{})}dispose(){}};class p extends o{constructor(e,a,s){super(e),this._terminal=a,this._options=s,this._currentRow="",this._htmlContent="",a._core._themeService?this._ansiColors=a._core._themeService.colors.ansi:this._ansiColors=t.DEFAULT_ANSI_COLORS}_padStart(e,t,a){return t>>=0,a=null!=a?a:" ",e.length>t?e:((t-=e.length)>a.length&&(a+=a.repeat(t/a.length)),a.slice(0,t)+e)}_beforeSerialize(e,t,a){var s,i,o,r,n;this._htmlContent+="\x3c!--StartFragment--\x3e
";let l="#000000",c="#ffffff";null!==(s=this._options.includeGlobalBackground)&&void 0!==s&&s&&(l=null!==(o=null===(i=this._terminal.options.theme)||void 0===i?void 0:i.foreground)&&void 0!==o?o:"#ffffff",c=null!==(n=null===(r=this._terminal.options.theme)||void 0===r?void 0:r.background)&&void 0!==n?n:"#000000");const p=[];p.push("color: "+l+";"),p.push("background-color: "+c+";"),p.push("font-family: "+this._terminal.options.fontFamily+";"),p.push("font-size: "+this._terminal.options.fontSize+"px;"),this._htmlContent+="
"}_afterSerialize(){this._htmlContent+="
",this._htmlContent+="
\x3c!--EndFragment--\x3e"}_rowEnd(e,t){this._htmlContent+="
"+this._currentRow+"
",this._currentRow=""}_getHexColor(e,t){const a=t?e.getFgColor():e.getBgColor();return(t?e.isFgRGB():e.isBgRGB())?[a>>16&255,a>>8&255,255&a].map((e=>this._padStart(e.toString(16),2,"0"))).join(""):(t?e.isFgPalette():e.isBgPalette())?this._ansiColors[a].css:void 0}_diffStyle(e,t){const a=[],s=!r(e,t),i=!n(e,t),o=!l(e,t);if(s||i||o){const t=this._getHexColor(e,!0);t&&a.push("color: "+t+";");const s=this._getHexColor(e,!1);return s&&a.push("background-color: "+s+";"),e.isInverse()&&a.push("color: #000000; background-color: #BFBFBF;"),e.isBold()&&a.push("font-weight: bold;"),e.isUnderline()&&e.isOverline()?a.push("text-decoration: overline underline;"):e.isUnderline()?a.push("text-decoration: underline;"):e.isOverline()&&a.push("text-decoration: overline;"),e.isBlink()&&a.push("text-decoration: blink;"),e.isInvisible()&&a.push("visibility: hidden;"),e.isItalic()&&a.push("font-style: italic;"),e.isDim()&&a.push("opacity: 0.5;"),e.isStrikethrough()&&a.push("text-decoration: line-through;"),a}}_nextCell(e,t,a,s){if(0===e.getWidth())return;const i=""===e.getChars(),o=this._diffStyle(e,t);o&&(this._currentRow+=0===o.length?"":""),this._currentRow+=i?" ":e.getChars()}_serializeString(){return this._htmlContent}}e.HTMLSerializeHandler=p})(),s})()))},32993:function(e){!function(t,a){e.exports=a()}(0,(()=>(()=>{"use strict";var e={433:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.UnicodeV11=void 0;const a=[[768,879],[1155,1161],[1425,1469],[1471,1471],[1473,1474],[1476,1477],[1479,1479],[1536,1541],[1552,1562],[1564,1564],[1611,1631],[1648,1648],[1750,1757],[1759,1764],[1767,1768],[1770,1773],[1807,1807],[1809,1809],[1840,1866],[1958,1968],[2027,2035],[2045,2045],[2070,2073],[2075,2083],[2085,2087],[2089,2093],[2137,2139],[2259,2306],[2362,2362],[2364,2364],[2369,2376],[2381,2381],[2385,2391],[2402,2403],[2433,2433],[2492,2492],[2497,2500],[2509,2509],[2530,2531],[2558,2558],[2561,2562],[2620,2620],[2625,2626],[2631,2632],[2635,2637],[2641,2641],[2672,2673],[2677,2677],[2689,2690],[2748,2748],[2753,2757],[2759,2760],[2765,2765],[2786,2787],[2810,2815],[2817,2817],[2876,2876],[2879,2879],[2881,2884],[2893,2893],[2902,2902],[2914,2915],[2946,2946],[3008,3008],[3021,3021],[3072,3072],[3076,3076],[3134,3136],[3142,3144],[3146,3149],[3157,3158],[3170,3171],[3201,3201],[3260,3260],[3263,3263],[3270,3270],[3276,3277],[3298,3299],[3328,3329],[3387,3388],[3393,3396],[3405,3405],[3426,3427],[3530,3530],[3538,3540],[3542,3542],[3633,3633],[3636,3642],[3655,3662],[3761,3761],[3764,3772],[3784,3789],[3864,3865],[3893,3893],[3895,3895],[3897,3897],[3953,3966],[3968,3972],[3974,3975],[3981,3991],[3993,4028],[4038,4038],[4141,4144],[4146,4151],[4153,4154],[4157,4158],[4184,4185],[4190,4192],[4209,4212],[4226,4226],[4229,4230],[4237,4237],[4253,4253],[4448,4607],[4957,4959],[5906,5908],[5938,5940],[5970,5971],[6002,6003],[6068,6069],[6071,6077],[6086,6086],[6089,6099],[6109,6109],[6155,6158],[6277,6278],[6313,6313],[6432,6434],[6439,6440],[6450,6450],[6457,6459],[6679,6680],[6683,6683],[6742,6742],[6744,6750],[6752,6752],[6754,6754],[6757,6764],[6771,6780],[6783,6783],[6832,6846],[6912,6915],[6964,6964],[6966,6970],[6972,6972],[6978,6978],[7019,7027],[7040,7041],[7074,7077],[7080,7081],[7083,7085],[7142,7142],[7144,7145],[7149,7149],[7151,7153],[7212,7219],[7222,7223],[7376,7378],[7380,7392],[7394,7400],[7405,7405],[7412,7412],[7416,7417],[7616,7673],[7675,7679],[8203,8207],[8234,8238],[8288,8292],[8294,8303],[8400,8432],[11503,11505],[11647,11647],[11744,11775],[12330,12333],[12441,12442],[42607,42610],[42612,42621],[42654,42655],[42736,42737],[43010,43010],[43014,43014],[43019,43019],[43045,43046],[43204,43205],[43232,43249],[43263,43263],[43302,43309],[43335,43345],[43392,43394],[43443,43443],[43446,43449],[43452,43453],[43493,43493],[43561,43566],[43569,43570],[43573,43574],[43587,43587],[43596,43596],[43644,43644],[43696,43696],[43698,43700],[43703,43704],[43710,43711],[43713,43713],[43756,43757],[43766,43766],[44005,44005],[44008,44008],[44013,44013],[64286,64286],[65024,65039],[65056,65071],[65279,65279],[65529,65531]],s=[[66045,66045],[66272,66272],[66422,66426],[68097,68099],[68101,68102],[68108,68111],[68152,68154],[68159,68159],[68325,68326],[68900,68903],[69446,69456],[69633,69633],[69688,69702],[69759,69761],[69811,69814],[69817,69818],[69821,69821],[69837,69837],[69888,69890],[69927,69931],[69933,69940],[70003,70003],[70016,70017],[70070,70078],[70089,70092],[70191,70193],[70196,70196],[70198,70199],[70206,70206],[70367,70367],[70371,70378],[70400,70401],[70459,70460],[70464,70464],[70502,70508],[70512,70516],[70712,70719],[70722,70724],[70726,70726],[70750,70750],[70835,70840],[70842,70842],[70847,70848],[70850,70851],[71090,71093],[71100,71101],[71103,71104],[71132,71133],[71219,71226],[71229,71229],[71231,71232],[71339,71339],[71341,71341],[71344,71349],[71351,71351],[71453,71455],[71458,71461],[71463,71467],[71727,71735],[71737,71738],[72148,72151],[72154,72155],[72160,72160],[72193,72202],[72243,72248],[72251,72254],[72263,72263],[72273,72278],[72281,72283],[72330,72342],[72344,72345],[72752,72758],[72760,72765],[72767,72767],[72850,72871],[72874,72880],[72882,72883],[72885,72886],[73009,73014],[73018,73018],[73020,73021],[73023,73029],[73031,73031],[73104,73105],[73109,73109],[73111,73111],[73459,73460],[78896,78904],[92912,92916],[92976,92982],[94031,94031],[94095,94098],[113821,113822],[113824,113827],[119143,119145],[119155,119170],[119173,119179],[119210,119213],[119362,119364],[121344,121398],[121403,121452],[121461,121461],[121476,121476],[121499,121503],[121505,121519],[122880,122886],[122888,122904],[122907,122913],[122915,122916],[122918,122922],[123184,123190],[123628,123631],[125136,125142],[125252,125258],[917505,917505],[917536,917631],[917760,917999]],i=[[4352,4447],[8986,8987],[9001,9002],[9193,9196],[9200,9200],[9203,9203],[9725,9726],[9748,9749],[9800,9811],[9855,9855],[9875,9875],[9889,9889],[9898,9899],[9917,9918],[9924,9925],[9934,9934],[9940,9940],[9962,9962],[9970,9971],[9973,9973],[9978,9978],[9981,9981],[9989,9989],[9994,9995],[10024,10024],[10060,10060],[10062,10062],[10067,10069],[10071,10071],[10133,10135],[10160,10160],[10175,10175],[11035,11036],[11088,11088],[11093,11093],[11904,11929],[11931,12019],[12032,12245],[12272,12283],[12288,12329],[12334,12350],[12353,12438],[12443,12543],[12549,12591],[12593,12686],[12688,12730],[12736,12771],[12784,12830],[12832,12871],[12880,19903],[19968,42124],[42128,42182],[43360,43388],[44032,55203],[63744,64255],[65040,65049],[65072,65106],[65108,65126],[65128,65131],[65281,65376],[65504,65510]],o=[[94176,94179],[94208,100343],[100352,101106],[110592,110878],[110928,110930],[110948,110951],[110960,111355],[126980,126980],[127183,127183],[127374,127374],[127377,127386],[127488,127490],[127504,127547],[127552,127560],[127568,127569],[127584,127589],[127744,127776],[127789,127797],[127799,127868],[127870,127891],[127904,127946],[127951,127955],[127968,127984],[127988,127988],[127992,128062],[128064,128064],[128066,128252],[128255,128317],[128331,128334],[128336,128359],[128378,128378],[128405,128406],[128420,128420],[128507,128591],[128640,128709],[128716,128716],[128720,128722],[128725,128725],[128747,128748],[128756,128762],[128992,129003],[129293,129393],[129395,129398],[129402,129442],[129445,129450],[129454,129482],[129485,129535],[129648,129651],[129656,129658],[129664,129666],[129680,129685],[131072,196605],[196608,262141]];let r;function n(e,t){let a,s=0,i=t.length-1;if(et[i][1])return!1;for(;i>=s;)if(a=s+i>>1,e>t[a][1])s=a+1;else{if(!(e{var e=s;Object.defineProperty(e,"__esModule",{value:!0}),e.Unicode11Addon=void 0;const t=a(433);e.Unicode11Addon=class{activate(e){e.unicode.register(new t.UnicodeV11)}dispose(){}}})(),s})()))},67511:e=>{!function(t,a){e.exports=a()}(self,(()=>(()=>{"use strict";var e={6:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.LinkComputer=t.WebLinkProvider=void 0,t.WebLinkProvider=class{constructor(e,t,a,s={}){this._terminal=e,this._regex=t,this._handler=a,this._options=s}provideLinks(e,t){const s=a.computeLink(e,this._regex,this._terminal,this._handler);t(this._addCallbacks(s))}_addCallbacks(e){return e.map((e=>(e.leave=this._options.leave,e.hover=(t,a)=>{if(this._options.hover){const{range:s}=e;this._options.hover(t,a,s)}},e)))}};class a{static computeLink(e,t,s,i){const o=new RegExp(t.source,(t.flags||"")+"g"),[r,n]=a._getWindowedLineStrings(e-1,s),l=r.join("");let c;const p=[];for(;c=o.exec(l);){const t=c[0];try{const e=new URL(t),a=decodeURI(e.toString());if(t!==a&&t+"/"!==a)continue}catch(e){continue}const[o,r]=a._mapStrIdx(s,n,0,c.index),[l,d]=a._mapStrIdx(s,o,r,t.length);if(-1===o||-1===r||-1===l||-1===d)continue;const u={start:{x:r+1,y:o+1},end:{x:d,y:l+1}};p.push({range:u,text:t,activate:i})}return p}static _getWindowedLineStrings(e,t){let a,s=e,i=e,o=0,r="";const n=[];if(a=t.buffer.active.getLine(e)){const e=a.translateToString(!0);if(a.isWrapped&&" "!==e[0]){for(o=0;(a=t.buffer.active.getLine(--s))&&o<2048&&(r=a.translateToString(!0),o+=r.length,n.push(r),a.isWrapped&&-1===r.indexOf(" ")););n.reverse()}for(n.push(e),o=0;(a=t.buffer.active.getLine(++i))&&a.isWrapped&&o<2048&&(r=a.translateToString(!0),o+=r.length,n.push(r),-1===r.indexOf(" ")););}return[n,s]}static _mapStrIdx(e,t,a,s){const i=e.buffer.active,o=i.getNullCell();let r=a;for(;s;){const e=i.getLine(t);if(!e)return[-1,-1];for(let a=r;a{var e=s;Object.defineProperty(e,"__esModule",{value:!0}),e.WebLinksAddon=void 0;const t=a(6),i=/https?:[/]{2}[^\s"'!*(){}|\\\^<>`]*[^\s"':,.!?{}|\\\^~\[\]`()<>]/;function o(e,t){const a=window.open();if(a){try{a.opener=null}catch(e){}a.location.href=t}else console.warn("Opening link blocked as opener could not be cleared")}e.WebLinksAddon=class{constructor(e=o,t={}){this._handler=e,this._options=t}activate(e){this._terminal=e;const a=this._options,s=a.urlRegex||i;this._linkProvider=this._terminal.registerLinkProvider(new t.WebLinkProvider(this._terminal,s,this._handler,a))}dispose(){var e;null===(e=this._linkProvider)||void 0===e||e.dispose()}}})(),s})()))},94961:e=>{"use strict";e.exports=JSON.parse('{"0":65533,"128":8364,"130":8218,"131":402,"132":8222,"133":8230,"134":8224,"135":8225,"136":710,"137":8240,"138":352,"139":8249,"140":338,"142":381,"145":8216,"146":8217,"147":8220,"148":8221,"149":8226,"150":8211,"151":8212,"152":732,"153":8482,"154":353,"155":8250,"156":339,"158":382,"159":376}')},60291:e=>{"use strict";e.exports=JSON.parse('{"Aacute":"Á","aacute":"á","Abreve":"Ă","abreve":"ă","ac":"∾","acd":"∿","acE":"∾̳","Acirc":"Â","acirc":"â","acute":"´","Acy":"А","acy":"а","AElig":"Æ","aelig":"æ","af":"⁡","Afr":"𝔄","afr":"𝔞","Agrave":"À","agrave":"à","alefsym":"ℵ","aleph":"ℵ","Alpha":"Α","alpha":"α","Amacr":"Ā","amacr":"ā","amalg":"⨿","amp":"&","AMP":"&","andand":"⩕","And":"⩓","and":"∧","andd":"⩜","andslope":"⩘","andv":"⩚","ang":"∠","ange":"⦤","angle":"∠","angmsdaa":"⦨","angmsdab":"⦩","angmsdac":"⦪","angmsdad":"⦫","angmsdae":"⦬","angmsdaf":"⦭","angmsdag":"⦮","angmsdah":"⦯","angmsd":"∡","angrt":"∟","angrtvb":"⊾","angrtvbd":"⦝","angsph":"∢","angst":"Å","angzarr":"⍼","Aogon":"Ą","aogon":"ą","Aopf":"𝔸","aopf":"𝕒","apacir":"⩯","ap":"≈","apE":"⩰","ape":"≊","apid":"≋","apos":"\'","ApplyFunction":"⁡","approx":"≈","approxeq":"≊","Aring":"Å","aring":"å","Ascr":"𝒜","ascr":"𝒶","Assign":"≔","ast":"*","asymp":"≈","asympeq":"≍","Atilde":"Ã","atilde":"ã","Auml":"Ä","auml":"ä","awconint":"∳","awint":"⨑","backcong":"≌","backepsilon":"϶","backprime":"‵","backsim":"∽","backsimeq":"⋍","Backslash":"∖","Barv":"⫧","barvee":"⊽","barwed":"⌅","Barwed":"⌆","barwedge":"⌅","bbrk":"⎵","bbrktbrk":"⎶","bcong":"≌","Bcy":"Б","bcy":"б","bdquo":"„","becaus":"∵","because":"∵","Because":"∵","bemptyv":"⦰","bepsi":"϶","bernou":"ℬ","Bernoullis":"ℬ","Beta":"Β","beta":"β","beth":"ℶ","between":"≬","Bfr":"𝔅","bfr":"𝔟","bigcap":"⋂","bigcirc":"◯","bigcup":"⋃","bigodot":"⨀","bigoplus":"⨁","bigotimes":"⨂","bigsqcup":"⨆","bigstar":"★","bigtriangledown":"▽","bigtriangleup":"△","biguplus":"⨄","bigvee":"⋁","bigwedge":"⋀","bkarow":"⤍","blacklozenge":"⧫","blacksquare":"▪","blacktriangle":"▴","blacktriangledown":"▾","blacktriangleleft":"◂","blacktriangleright":"▸","blank":"␣","blk12":"▒","blk14":"░","blk34":"▓","block":"█","bne":"=⃥","bnequiv":"≡⃥","bNot":"⫭","bnot":"⌐","Bopf":"𝔹","bopf":"𝕓","bot":"⊥","bottom":"⊥","bowtie":"⋈","boxbox":"⧉","boxdl":"┐","boxdL":"╕","boxDl":"╖","boxDL":"╗","boxdr":"┌","boxdR":"╒","boxDr":"╓","boxDR":"╔","boxh":"─","boxH":"═","boxhd":"┬","boxHd":"╤","boxhD":"╥","boxHD":"╦","boxhu":"┴","boxHu":"╧","boxhU":"╨","boxHU":"╩","boxminus":"⊟","boxplus":"⊞","boxtimes":"⊠","boxul":"┘","boxuL":"╛","boxUl":"╜","boxUL":"╝","boxur":"└","boxuR":"╘","boxUr":"╙","boxUR":"╚","boxv":"│","boxV":"║","boxvh":"┼","boxvH":"╪","boxVh":"╫","boxVH":"╬","boxvl":"┤","boxvL":"╡","boxVl":"╢","boxVL":"╣","boxvr":"├","boxvR":"╞","boxVr":"╟","boxVR":"╠","bprime":"‵","breve":"˘","Breve":"˘","brvbar":"¦","bscr":"𝒷","Bscr":"ℬ","bsemi":"⁏","bsim":"∽","bsime":"⋍","bsolb":"⧅","bsol":"\\\\","bsolhsub":"⟈","bull":"•","bullet":"•","bump":"≎","bumpE":"⪮","bumpe":"≏","Bumpeq":"≎","bumpeq":"≏","Cacute":"Ć","cacute":"ć","capand":"⩄","capbrcup":"⩉","capcap":"⩋","cap":"∩","Cap":"⋒","capcup":"⩇","capdot":"⩀","CapitalDifferentialD":"ⅅ","caps":"∩︀","caret":"⁁","caron":"ˇ","Cayleys":"ℭ","ccaps":"⩍","Ccaron":"Č","ccaron":"č","Ccedil":"Ç","ccedil":"ç","Ccirc":"Ĉ","ccirc":"ĉ","Cconint":"∰","ccups":"⩌","ccupssm":"⩐","Cdot":"Ċ","cdot":"ċ","cedil":"¸","Cedilla":"¸","cemptyv":"⦲","cent":"¢","centerdot":"·","CenterDot":"·","cfr":"𝔠","Cfr":"ℭ","CHcy":"Ч","chcy":"ч","check":"✓","checkmark":"✓","Chi":"Χ","chi":"χ","circ":"ˆ","circeq":"≗","circlearrowleft":"↺","circlearrowright":"↻","circledast":"⊛","circledcirc":"⊚","circleddash":"⊝","CircleDot":"⊙","circledR":"®","circledS":"Ⓢ","CircleMinus":"⊖","CirclePlus":"⊕","CircleTimes":"⊗","cir":"○","cirE":"⧃","cire":"≗","cirfnint":"⨐","cirmid":"⫯","cirscir":"⧂","ClockwiseContourIntegral":"∲","CloseCurlyDoubleQuote":"”","CloseCurlyQuote":"’","clubs":"♣","clubsuit":"♣","colon":":","Colon":"∷","Colone":"⩴","colone":"≔","coloneq":"≔","comma":",","commat":"@","comp":"∁","compfn":"∘","complement":"∁","complexes":"ℂ","cong":"≅","congdot":"⩭","Congruent":"≡","conint":"∮","Conint":"∯","ContourIntegral":"∮","copf":"𝕔","Copf":"ℂ","coprod":"∐","Coproduct":"∐","copy":"©","COPY":"©","copysr":"℗","CounterClockwiseContourIntegral":"∳","crarr":"↵","cross":"✗","Cross":"⨯","Cscr":"𝒞","cscr":"𝒸","csub":"⫏","csube":"⫑","csup":"⫐","csupe":"⫒","ctdot":"⋯","cudarrl":"⤸","cudarrr":"⤵","cuepr":"⋞","cuesc":"⋟","cularr":"↶","cularrp":"⤽","cupbrcap":"⩈","cupcap":"⩆","CupCap":"≍","cup":"∪","Cup":"⋓","cupcup":"⩊","cupdot":"⊍","cupor":"⩅","cups":"∪︀","curarr":"↷","curarrm":"⤼","curlyeqprec":"⋞","curlyeqsucc":"⋟","curlyvee":"⋎","curlywedge":"⋏","curren":"¤","curvearrowleft":"↶","curvearrowright":"↷","cuvee":"⋎","cuwed":"⋏","cwconint":"∲","cwint":"∱","cylcty":"⌭","dagger":"†","Dagger":"‡","daleth":"ℸ","darr":"↓","Darr":"↡","dArr":"⇓","dash":"‐","Dashv":"⫤","dashv":"⊣","dbkarow":"⤏","dblac":"˝","Dcaron":"Ď","dcaron":"ď","Dcy":"Д","dcy":"д","ddagger":"‡","ddarr":"⇊","DD":"ⅅ","dd":"ⅆ","DDotrahd":"⤑","ddotseq":"⩷","deg":"°","Del":"∇","Delta":"Δ","delta":"δ","demptyv":"⦱","dfisht":"⥿","Dfr":"𝔇","dfr":"𝔡","dHar":"⥥","dharl":"⇃","dharr":"⇂","DiacriticalAcute":"´","DiacriticalDot":"˙","DiacriticalDoubleAcute":"˝","DiacriticalGrave":"`","DiacriticalTilde":"˜","diam":"⋄","diamond":"⋄","Diamond":"⋄","diamondsuit":"♦","diams":"♦","die":"¨","DifferentialD":"ⅆ","digamma":"ϝ","disin":"⋲","div":"÷","divide":"÷","divideontimes":"⋇","divonx":"⋇","DJcy":"Ђ","djcy":"ђ","dlcorn":"⌞","dlcrop":"⌍","dollar":"$","Dopf":"𝔻","dopf":"𝕕","Dot":"¨","dot":"˙","DotDot":"⃜","doteq":"≐","doteqdot":"≑","DotEqual":"≐","dotminus":"∸","dotplus":"∔","dotsquare":"⊡","doublebarwedge":"⌆","DoubleContourIntegral":"∯","DoubleDot":"¨","DoubleDownArrow":"⇓","DoubleLeftArrow":"⇐","DoubleLeftRightArrow":"⇔","DoubleLeftTee":"⫤","DoubleLongLeftArrow":"⟸","DoubleLongLeftRightArrow":"⟺","DoubleLongRightArrow":"⟹","DoubleRightArrow":"⇒","DoubleRightTee":"⊨","DoubleUpArrow":"⇑","DoubleUpDownArrow":"⇕","DoubleVerticalBar":"∥","DownArrowBar":"⤓","downarrow":"↓","DownArrow":"↓","Downarrow":"⇓","DownArrowUpArrow":"⇵","DownBreve":"̑","downdownarrows":"⇊","downharpoonleft":"⇃","downharpoonright":"⇂","DownLeftRightVector":"⥐","DownLeftTeeVector":"⥞","DownLeftVectorBar":"⥖","DownLeftVector":"↽","DownRightTeeVector":"⥟","DownRightVectorBar":"⥗","DownRightVector":"⇁","DownTeeArrow":"↧","DownTee":"⊤","drbkarow":"⤐","drcorn":"⌟","drcrop":"⌌","Dscr":"𝒟","dscr":"𝒹","DScy":"Ѕ","dscy":"ѕ","dsol":"⧶","Dstrok":"Đ","dstrok":"đ","dtdot":"⋱","dtri":"▿","dtrif":"▾","duarr":"⇵","duhar":"⥯","dwangle":"⦦","DZcy":"Џ","dzcy":"џ","dzigrarr":"⟿","Eacute":"É","eacute":"é","easter":"⩮","Ecaron":"Ě","ecaron":"ě","Ecirc":"Ê","ecirc":"ê","ecir":"≖","ecolon":"≕","Ecy":"Э","ecy":"э","eDDot":"⩷","Edot":"Ė","edot":"ė","eDot":"≑","ee":"ⅇ","efDot":"≒","Efr":"𝔈","efr":"𝔢","eg":"⪚","Egrave":"È","egrave":"è","egs":"⪖","egsdot":"⪘","el":"⪙","Element":"∈","elinters":"⏧","ell":"ℓ","els":"⪕","elsdot":"⪗","Emacr":"Ē","emacr":"ē","empty":"∅","emptyset":"∅","EmptySmallSquare":"◻","emptyv":"∅","EmptyVerySmallSquare":"▫","emsp13":" ","emsp14":" ","emsp":" ","ENG":"Ŋ","eng":"ŋ","ensp":" ","Eogon":"Ę","eogon":"ę","Eopf":"𝔼","eopf":"𝕖","epar":"⋕","eparsl":"⧣","eplus":"⩱","epsi":"ε","Epsilon":"Ε","epsilon":"ε","epsiv":"ϵ","eqcirc":"≖","eqcolon":"≕","eqsim":"≂","eqslantgtr":"⪖","eqslantless":"⪕","Equal":"⩵","equals":"=","EqualTilde":"≂","equest":"≟","Equilibrium":"⇌","equiv":"≡","equivDD":"⩸","eqvparsl":"⧥","erarr":"⥱","erDot":"≓","escr":"ℯ","Escr":"ℰ","esdot":"≐","Esim":"⩳","esim":"≂","Eta":"Η","eta":"η","ETH":"Ð","eth":"ð","Euml":"Ë","euml":"ë","euro":"€","excl":"!","exist":"∃","Exists":"∃","expectation":"ℰ","exponentiale":"ⅇ","ExponentialE":"ⅇ","fallingdotseq":"≒","Fcy":"Ф","fcy":"ф","female":"♀","ffilig":"ffi","fflig":"ff","ffllig":"ffl","Ffr":"𝔉","ffr":"𝔣","filig":"fi","FilledSmallSquare":"◼","FilledVerySmallSquare":"▪","fjlig":"fj","flat":"♭","fllig":"fl","fltns":"▱","fnof":"ƒ","Fopf":"𝔽","fopf":"𝕗","forall":"∀","ForAll":"∀","fork":"⋔","forkv":"⫙","Fouriertrf":"ℱ","fpartint":"⨍","frac12":"½","frac13":"⅓","frac14":"¼","frac15":"⅕","frac16":"⅙","frac18":"⅛","frac23":"⅔","frac25":"⅖","frac34":"¾","frac35":"⅗","frac38":"⅜","frac45":"⅘","frac56":"⅚","frac58":"⅝","frac78":"⅞","frasl":"⁄","frown":"⌢","fscr":"𝒻","Fscr":"ℱ","gacute":"ǵ","Gamma":"Γ","gamma":"γ","Gammad":"Ϝ","gammad":"ϝ","gap":"⪆","Gbreve":"Ğ","gbreve":"ğ","Gcedil":"Ģ","Gcirc":"Ĝ","gcirc":"ĝ","Gcy":"Г","gcy":"г","Gdot":"Ġ","gdot":"ġ","ge":"≥","gE":"≧","gEl":"⪌","gel":"⋛","geq":"≥","geqq":"≧","geqslant":"⩾","gescc":"⪩","ges":"⩾","gesdot":"⪀","gesdoto":"⪂","gesdotol":"⪄","gesl":"⋛︀","gesles":"⪔","Gfr":"𝔊","gfr":"𝔤","gg":"≫","Gg":"⋙","ggg":"⋙","gimel":"ℷ","GJcy":"Ѓ","gjcy":"ѓ","gla":"⪥","gl":"≷","glE":"⪒","glj":"⪤","gnap":"⪊","gnapprox":"⪊","gne":"⪈","gnE":"≩","gneq":"⪈","gneqq":"≩","gnsim":"⋧","Gopf":"𝔾","gopf":"𝕘","grave":"`","GreaterEqual":"≥","GreaterEqualLess":"⋛","GreaterFullEqual":"≧","GreaterGreater":"⪢","GreaterLess":"≷","GreaterSlantEqual":"⩾","GreaterTilde":"≳","Gscr":"𝒢","gscr":"ℊ","gsim":"≳","gsime":"⪎","gsiml":"⪐","gtcc":"⪧","gtcir":"⩺","gt":">","GT":">","Gt":"≫","gtdot":"⋗","gtlPar":"⦕","gtquest":"⩼","gtrapprox":"⪆","gtrarr":"⥸","gtrdot":"⋗","gtreqless":"⋛","gtreqqless":"⪌","gtrless":"≷","gtrsim":"≳","gvertneqq":"≩︀","gvnE":"≩︀","Hacek":"ˇ","hairsp":" ","half":"½","hamilt":"ℋ","HARDcy":"Ъ","hardcy":"ъ","harrcir":"⥈","harr":"↔","hArr":"⇔","harrw":"↭","Hat":"^","hbar":"ℏ","Hcirc":"Ĥ","hcirc":"ĥ","hearts":"♥","heartsuit":"♥","hellip":"…","hercon":"⊹","hfr":"𝔥","Hfr":"ℌ","HilbertSpace":"ℋ","hksearow":"⤥","hkswarow":"⤦","hoarr":"⇿","homtht":"∻","hookleftarrow":"↩","hookrightarrow":"↪","hopf":"𝕙","Hopf":"ℍ","horbar":"―","HorizontalLine":"─","hscr":"𝒽","Hscr":"ℋ","hslash":"ℏ","Hstrok":"Ħ","hstrok":"ħ","HumpDownHump":"≎","HumpEqual":"≏","hybull":"⁃","hyphen":"‐","Iacute":"Í","iacute":"í","ic":"⁣","Icirc":"Î","icirc":"î","Icy":"И","icy":"и","Idot":"İ","IEcy":"Е","iecy":"е","iexcl":"¡","iff":"⇔","ifr":"𝔦","Ifr":"ℑ","Igrave":"Ì","igrave":"ì","ii":"ⅈ","iiiint":"⨌","iiint":"∭","iinfin":"⧜","iiota":"℩","IJlig":"IJ","ijlig":"ij","Imacr":"Ī","imacr":"ī","image":"ℑ","ImaginaryI":"ⅈ","imagline":"ℐ","imagpart":"ℑ","imath":"ı","Im":"ℑ","imof":"⊷","imped":"Ƶ","Implies":"⇒","incare":"℅","in":"∈","infin":"∞","infintie":"⧝","inodot":"ı","intcal":"⊺","int":"∫","Int":"∬","integers":"ℤ","Integral":"∫","intercal":"⊺","Intersection":"⋂","intlarhk":"⨗","intprod":"⨼","InvisibleComma":"⁣","InvisibleTimes":"⁢","IOcy":"Ё","iocy":"ё","Iogon":"Į","iogon":"į","Iopf":"𝕀","iopf":"𝕚","Iota":"Ι","iota":"ι","iprod":"⨼","iquest":"¿","iscr":"𝒾","Iscr":"ℐ","isin":"∈","isindot":"⋵","isinE":"⋹","isins":"⋴","isinsv":"⋳","isinv":"∈","it":"⁢","Itilde":"Ĩ","itilde":"ĩ","Iukcy":"І","iukcy":"і","Iuml":"Ï","iuml":"ï","Jcirc":"Ĵ","jcirc":"ĵ","Jcy":"Й","jcy":"й","Jfr":"𝔍","jfr":"𝔧","jmath":"ȷ","Jopf":"𝕁","jopf":"𝕛","Jscr":"𝒥","jscr":"𝒿","Jsercy":"Ј","jsercy":"ј","Jukcy":"Є","jukcy":"є","Kappa":"Κ","kappa":"κ","kappav":"ϰ","Kcedil":"Ķ","kcedil":"ķ","Kcy":"К","kcy":"к","Kfr":"𝔎","kfr":"𝔨","kgreen":"ĸ","KHcy":"Х","khcy":"х","KJcy":"Ќ","kjcy":"ќ","Kopf":"𝕂","kopf":"𝕜","Kscr":"𝒦","kscr":"𝓀","lAarr":"⇚","Lacute":"Ĺ","lacute":"ĺ","laemptyv":"⦴","lagran":"ℒ","Lambda":"Λ","lambda":"λ","lang":"⟨","Lang":"⟪","langd":"⦑","langle":"⟨","lap":"⪅","Laplacetrf":"ℒ","laquo":"«","larrb":"⇤","larrbfs":"⤟","larr":"←","Larr":"↞","lArr":"⇐","larrfs":"⤝","larrhk":"↩","larrlp":"↫","larrpl":"⤹","larrsim":"⥳","larrtl":"↢","latail":"⤙","lAtail":"⤛","lat":"⪫","late":"⪭","lates":"⪭︀","lbarr":"⤌","lBarr":"⤎","lbbrk":"❲","lbrace":"{","lbrack":"[","lbrke":"⦋","lbrksld":"⦏","lbrkslu":"⦍","Lcaron":"Ľ","lcaron":"ľ","Lcedil":"Ļ","lcedil":"ļ","lceil":"⌈","lcub":"{","Lcy":"Л","lcy":"л","ldca":"⤶","ldquo":"“","ldquor":"„","ldrdhar":"⥧","ldrushar":"⥋","ldsh":"↲","le":"≤","lE":"≦","LeftAngleBracket":"⟨","LeftArrowBar":"⇤","leftarrow":"←","LeftArrow":"←","Leftarrow":"⇐","LeftArrowRightArrow":"⇆","leftarrowtail":"↢","LeftCeiling":"⌈","LeftDoubleBracket":"⟦","LeftDownTeeVector":"⥡","LeftDownVectorBar":"⥙","LeftDownVector":"⇃","LeftFloor":"⌊","leftharpoondown":"↽","leftharpoonup":"↼","leftleftarrows":"⇇","leftrightarrow":"↔","LeftRightArrow":"↔","Leftrightarrow":"⇔","leftrightarrows":"⇆","leftrightharpoons":"⇋","leftrightsquigarrow":"↭","LeftRightVector":"⥎","LeftTeeArrow":"↤","LeftTee":"⊣","LeftTeeVector":"⥚","leftthreetimes":"⋋","LeftTriangleBar":"⧏","LeftTriangle":"⊲","LeftTriangleEqual":"⊴","LeftUpDownVector":"⥑","LeftUpTeeVector":"⥠","LeftUpVectorBar":"⥘","LeftUpVector":"↿","LeftVectorBar":"⥒","LeftVector":"↼","lEg":"⪋","leg":"⋚","leq":"≤","leqq":"≦","leqslant":"⩽","lescc":"⪨","les":"⩽","lesdot":"⩿","lesdoto":"⪁","lesdotor":"⪃","lesg":"⋚︀","lesges":"⪓","lessapprox":"⪅","lessdot":"⋖","lesseqgtr":"⋚","lesseqqgtr":"⪋","LessEqualGreater":"⋚","LessFullEqual":"≦","LessGreater":"≶","lessgtr":"≶","LessLess":"⪡","lesssim":"≲","LessSlantEqual":"⩽","LessTilde":"≲","lfisht":"⥼","lfloor":"⌊","Lfr":"𝔏","lfr":"𝔩","lg":"≶","lgE":"⪑","lHar":"⥢","lhard":"↽","lharu":"↼","lharul":"⥪","lhblk":"▄","LJcy":"Љ","ljcy":"љ","llarr":"⇇","ll":"≪","Ll":"⋘","llcorner":"⌞","Lleftarrow":"⇚","llhard":"⥫","lltri":"◺","Lmidot":"Ŀ","lmidot":"ŀ","lmoustache":"⎰","lmoust":"⎰","lnap":"⪉","lnapprox":"⪉","lne":"⪇","lnE":"≨","lneq":"⪇","lneqq":"≨","lnsim":"⋦","loang":"⟬","loarr":"⇽","lobrk":"⟦","longleftarrow":"⟵","LongLeftArrow":"⟵","Longleftarrow":"⟸","longleftrightarrow":"⟷","LongLeftRightArrow":"⟷","Longleftrightarrow":"⟺","longmapsto":"⟼","longrightarrow":"⟶","LongRightArrow":"⟶","Longrightarrow":"⟹","looparrowleft":"↫","looparrowright":"↬","lopar":"⦅","Lopf":"𝕃","lopf":"𝕝","loplus":"⨭","lotimes":"⨴","lowast":"∗","lowbar":"_","LowerLeftArrow":"↙","LowerRightArrow":"↘","loz":"◊","lozenge":"◊","lozf":"⧫","lpar":"(","lparlt":"⦓","lrarr":"⇆","lrcorner":"⌟","lrhar":"⇋","lrhard":"⥭","lrm":"‎","lrtri":"⊿","lsaquo":"‹","lscr":"𝓁","Lscr":"ℒ","lsh":"↰","Lsh":"↰","lsim":"≲","lsime":"⪍","lsimg":"⪏","lsqb":"[","lsquo":"‘","lsquor":"‚","Lstrok":"Ł","lstrok":"ł","ltcc":"⪦","ltcir":"⩹","lt":"<","LT":"<","Lt":"≪","ltdot":"⋖","lthree":"⋋","ltimes":"⋉","ltlarr":"⥶","ltquest":"⩻","ltri":"◃","ltrie":"⊴","ltrif":"◂","ltrPar":"⦖","lurdshar":"⥊","luruhar":"⥦","lvertneqq":"≨︀","lvnE":"≨︀","macr":"¯","male":"♂","malt":"✠","maltese":"✠","Map":"⤅","map":"↦","mapsto":"↦","mapstodown":"↧","mapstoleft":"↤","mapstoup":"↥","marker":"▮","mcomma":"⨩","Mcy":"М","mcy":"м","mdash":"—","mDDot":"∺","measuredangle":"∡","MediumSpace":" ","Mellintrf":"ℳ","Mfr":"𝔐","mfr":"𝔪","mho":"℧","micro":"µ","midast":"*","midcir":"⫰","mid":"∣","middot":"·","minusb":"⊟","minus":"−","minusd":"∸","minusdu":"⨪","MinusPlus":"∓","mlcp":"⫛","mldr":"…","mnplus":"∓","models":"⊧","Mopf":"𝕄","mopf":"𝕞","mp":"∓","mscr":"𝓂","Mscr":"ℳ","mstpos":"∾","Mu":"Μ","mu":"μ","multimap":"⊸","mumap":"⊸","nabla":"∇","Nacute":"Ń","nacute":"ń","nang":"∠⃒","nap":"≉","napE":"⩰̸","napid":"≋̸","napos":"ʼn","napprox":"≉","natural":"♮","naturals":"ℕ","natur":"♮","nbsp":" ","nbump":"≎̸","nbumpe":"≏̸","ncap":"⩃","Ncaron":"Ň","ncaron":"ň","Ncedil":"Ņ","ncedil":"ņ","ncong":"≇","ncongdot":"⩭̸","ncup":"⩂","Ncy":"Н","ncy":"н","ndash":"–","nearhk":"⤤","nearr":"↗","neArr":"⇗","nearrow":"↗","ne":"≠","nedot":"≐̸","NegativeMediumSpace":"​","NegativeThickSpace":"​","NegativeThinSpace":"​","NegativeVeryThinSpace":"​","nequiv":"≢","nesear":"⤨","nesim":"≂̸","NestedGreaterGreater":"≫","NestedLessLess":"≪","NewLine":"\\n","nexist":"∄","nexists":"∄","Nfr":"𝔑","nfr":"𝔫","ngE":"≧̸","nge":"≱","ngeq":"≱","ngeqq":"≧̸","ngeqslant":"⩾̸","nges":"⩾̸","nGg":"⋙̸","ngsim":"≵","nGt":"≫⃒","ngt":"≯","ngtr":"≯","nGtv":"≫̸","nharr":"↮","nhArr":"⇎","nhpar":"⫲","ni":"∋","nis":"⋼","nisd":"⋺","niv":"∋","NJcy":"Њ","njcy":"њ","nlarr":"↚","nlArr":"⇍","nldr":"‥","nlE":"≦̸","nle":"≰","nleftarrow":"↚","nLeftarrow":"⇍","nleftrightarrow":"↮","nLeftrightarrow":"⇎","nleq":"≰","nleqq":"≦̸","nleqslant":"⩽̸","nles":"⩽̸","nless":"≮","nLl":"⋘̸","nlsim":"≴","nLt":"≪⃒","nlt":"≮","nltri":"⋪","nltrie":"⋬","nLtv":"≪̸","nmid":"∤","NoBreak":"⁠","NonBreakingSpace":" ","nopf":"𝕟","Nopf":"ℕ","Not":"⫬","not":"¬","NotCongruent":"≢","NotCupCap":"≭","NotDoubleVerticalBar":"∦","NotElement":"∉","NotEqual":"≠","NotEqualTilde":"≂̸","NotExists":"∄","NotGreater":"≯","NotGreaterEqual":"≱","NotGreaterFullEqual":"≧̸","NotGreaterGreater":"≫̸","NotGreaterLess":"≹","NotGreaterSlantEqual":"⩾̸","NotGreaterTilde":"≵","NotHumpDownHump":"≎̸","NotHumpEqual":"≏̸","notin":"∉","notindot":"⋵̸","notinE":"⋹̸","notinva":"∉","notinvb":"⋷","notinvc":"⋶","NotLeftTriangleBar":"⧏̸","NotLeftTriangle":"⋪","NotLeftTriangleEqual":"⋬","NotLess":"≮","NotLessEqual":"≰","NotLessGreater":"≸","NotLessLess":"≪̸","NotLessSlantEqual":"⩽̸","NotLessTilde":"≴","NotNestedGreaterGreater":"⪢̸","NotNestedLessLess":"⪡̸","notni":"∌","notniva":"∌","notnivb":"⋾","notnivc":"⋽","NotPrecedes":"⊀","NotPrecedesEqual":"⪯̸","NotPrecedesSlantEqual":"⋠","NotReverseElement":"∌","NotRightTriangleBar":"⧐̸","NotRightTriangle":"⋫","NotRightTriangleEqual":"⋭","NotSquareSubset":"⊏̸","NotSquareSubsetEqual":"⋢","NotSquareSuperset":"⊐̸","NotSquareSupersetEqual":"⋣","NotSubset":"⊂⃒","NotSubsetEqual":"⊈","NotSucceeds":"⊁","NotSucceedsEqual":"⪰̸","NotSucceedsSlantEqual":"⋡","NotSucceedsTilde":"≿̸","NotSuperset":"⊃⃒","NotSupersetEqual":"⊉","NotTilde":"≁","NotTildeEqual":"≄","NotTildeFullEqual":"≇","NotTildeTilde":"≉","NotVerticalBar":"∤","nparallel":"∦","npar":"∦","nparsl":"⫽⃥","npart":"∂̸","npolint":"⨔","npr":"⊀","nprcue":"⋠","nprec":"⊀","npreceq":"⪯̸","npre":"⪯̸","nrarrc":"⤳̸","nrarr":"↛","nrArr":"⇏","nrarrw":"↝̸","nrightarrow":"↛","nRightarrow":"⇏","nrtri":"⋫","nrtrie":"⋭","nsc":"⊁","nsccue":"⋡","nsce":"⪰̸","Nscr":"𝒩","nscr":"𝓃","nshortmid":"∤","nshortparallel":"∦","nsim":"≁","nsime":"≄","nsimeq":"≄","nsmid":"∤","nspar":"∦","nsqsube":"⋢","nsqsupe":"⋣","nsub":"⊄","nsubE":"⫅̸","nsube":"⊈","nsubset":"⊂⃒","nsubseteq":"⊈","nsubseteqq":"⫅̸","nsucc":"⊁","nsucceq":"⪰̸","nsup":"⊅","nsupE":"⫆̸","nsupe":"⊉","nsupset":"⊃⃒","nsupseteq":"⊉","nsupseteqq":"⫆̸","ntgl":"≹","Ntilde":"Ñ","ntilde":"ñ","ntlg":"≸","ntriangleleft":"⋪","ntrianglelefteq":"⋬","ntriangleright":"⋫","ntrianglerighteq":"⋭","Nu":"Ν","nu":"ν","num":"#","numero":"№","numsp":" ","nvap":"≍⃒","nvdash":"⊬","nvDash":"⊭","nVdash":"⊮","nVDash":"⊯","nvge":"≥⃒","nvgt":">⃒","nvHarr":"⤄","nvinfin":"⧞","nvlArr":"⤂","nvle":"≤⃒","nvlt":"<⃒","nvltrie":"⊴⃒","nvrArr":"⤃","nvrtrie":"⊵⃒","nvsim":"∼⃒","nwarhk":"⤣","nwarr":"↖","nwArr":"⇖","nwarrow":"↖","nwnear":"⤧","Oacute":"Ó","oacute":"ó","oast":"⊛","Ocirc":"Ô","ocirc":"ô","ocir":"⊚","Ocy":"О","ocy":"о","odash":"⊝","Odblac":"Ő","odblac":"ő","odiv":"⨸","odot":"⊙","odsold":"⦼","OElig":"Œ","oelig":"œ","ofcir":"⦿","Ofr":"𝔒","ofr":"𝔬","ogon":"˛","Ograve":"Ò","ograve":"ò","ogt":"⧁","ohbar":"⦵","ohm":"Ω","oint":"∮","olarr":"↺","olcir":"⦾","olcross":"⦻","oline":"‾","olt":"⧀","Omacr":"Ō","omacr":"ō","Omega":"Ω","omega":"ω","Omicron":"Ο","omicron":"ο","omid":"⦶","ominus":"⊖","Oopf":"𝕆","oopf":"𝕠","opar":"⦷","OpenCurlyDoubleQuote":"“","OpenCurlyQuote":"‘","operp":"⦹","oplus":"⊕","orarr":"↻","Or":"⩔","or":"∨","ord":"⩝","order":"ℴ","orderof":"ℴ","ordf":"ª","ordm":"º","origof":"⊶","oror":"⩖","orslope":"⩗","orv":"⩛","oS":"Ⓢ","Oscr":"𝒪","oscr":"ℴ","Oslash":"Ø","oslash":"ø","osol":"⊘","Otilde":"Õ","otilde":"õ","otimesas":"⨶","Otimes":"⨷","otimes":"⊗","Ouml":"Ö","ouml":"ö","ovbar":"⌽","OverBar":"‾","OverBrace":"⏞","OverBracket":"⎴","OverParenthesis":"⏜","para":"¶","parallel":"∥","par":"∥","parsim":"⫳","parsl":"⫽","part":"∂","PartialD":"∂","Pcy":"П","pcy":"п","percnt":"%","period":".","permil":"‰","perp":"⊥","pertenk":"‱","Pfr":"𝔓","pfr":"𝔭","Phi":"Φ","phi":"φ","phiv":"ϕ","phmmat":"ℳ","phone":"☎","Pi":"Π","pi":"π","pitchfork":"⋔","piv":"ϖ","planck":"ℏ","planckh":"ℎ","plankv":"ℏ","plusacir":"⨣","plusb":"⊞","pluscir":"⨢","plus":"+","plusdo":"∔","plusdu":"⨥","pluse":"⩲","PlusMinus":"±","plusmn":"±","plussim":"⨦","plustwo":"⨧","pm":"±","Poincareplane":"ℌ","pointint":"⨕","popf":"𝕡","Popf":"ℙ","pound":"£","prap":"⪷","Pr":"⪻","pr":"≺","prcue":"≼","precapprox":"⪷","prec":"≺","preccurlyeq":"≼","Precedes":"≺","PrecedesEqual":"⪯","PrecedesSlantEqual":"≼","PrecedesTilde":"≾","preceq":"⪯","precnapprox":"⪹","precneqq":"⪵","precnsim":"⋨","pre":"⪯","prE":"⪳","precsim":"≾","prime":"′","Prime":"″","primes":"ℙ","prnap":"⪹","prnE":"⪵","prnsim":"⋨","prod":"∏","Product":"∏","profalar":"⌮","profline":"⌒","profsurf":"⌓","prop":"∝","Proportional":"∝","Proportion":"∷","propto":"∝","prsim":"≾","prurel":"⊰","Pscr":"𝒫","pscr":"𝓅","Psi":"Ψ","psi":"ψ","puncsp":" ","Qfr":"𝔔","qfr":"𝔮","qint":"⨌","qopf":"𝕢","Qopf":"ℚ","qprime":"⁗","Qscr":"𝒬","qscr":"𝓆","quaternions":"ℍ","quatint":"⨖","quest":"?","questeq":"≟","quot":"\\"","QUOT":"\\"","rAarr":"⇛","race":"∽̱","Racute":"Ŕ","racute":"ŕ","radic":"√","raemptyv":"⦳","rang":"⟩","Rang":"⟫","rangd":"⦒","range":"⦥","rangle":"⟩","raquo":"»","rarrap":"⥵","rarrb":"⇥","rarrbfs":"⤠","rarrc":"⤳","rarr":"→","Rarr":"↠","rArr":"⇒","rarrfs":"⤞","rarrhk":"↪","rarrlp":"↬","rarrpl":"⥅","rarrsim":"⥴","Rarrtl":"⤖","rarrtl":"↣","rarrw":"↝","ratail":"⤚","rAtail":"⤜","ratio":"∶","rationals":"ℚ","rbarr":"⤍","rBarr":"⤏","RBarr":"⤐","rbbrk":"❳","rbrace":"}","rbrack":"]","rbrke":"⦌","rbrksld":"⦎","rbrkslu":"⦐","Rcaron":"Ř","rcaron":"ř","Rcedil":"Ŗ","rcedil":"ŗ","rceil":"⌉","rcub":"}","Rcy":"Р","rcy":"р","rdca":"⤷","rdldhar":"⥩","rdquo":"”","rdquor":"”","rdsh":"↳","real":"ℜ","realine":"ℛ","realpart":"ℜ","reals":"ℝ","Re":"ℜ","rect":"▭","reg":"®","REG":"®","ReverseElement":"∋","ReverseEquilibrium":"⇋","ReverseUpEquilibrium":"⥯","rfisht":"⥽","rfloor":"⌋","rfr":"𝔯","Rfr":"ℜ","rHar":"⥤","rhard":"⇁","rharu":"⇀","rharul":"⥬","Rho":"Ρ","rho":"ρ","rhov":"ϱ","RightAngleBracket":"⟩","RightArrowBar":"⇥","rightarrow":"→","RightArrow":"→","Rightarrow":"⇒","RightArrowLeftArrow":"⇄","rightarrowtail":"↣","RightCeiling":"⌉","RightDoubleBracket":"⟧","RightDownTeeVector":"⥝","RightDownVectorBar":"⥕","RightDownVector":"⇂","RightFloor":"⌋","rightharpoondown":"⇁","rightharpoonup":"⇀","rightleftarrows":"⇄","rightleftharpoons":"⇌","rightrightarrows":"⇉","rightsquigarrow":"↝","RightTeeArrow":"↦","RightTee":"⊢","RightTeeVector":"⥛","rightthreetimes":"⋌","RightTriangleBar":"⧐","RightTriangle":"⊳","RightTriangleEqual":"⊵","RightUpDownVector":"⥏","RightUpTeeVector":"⥜","RightUpVectorBar":"⥔","RightUpVector":"↾","RightVectorBar":"⥓","RightVector":"⇀","ring":"˚","risingdotseq":"≓","rlarr":"⇄","rlhar":"⇌","rlm":"‏","rmoustache":"⎱","rmoust":"⎱","rnmid":"⫮","roang":"⟭","roarr":"⇾","robrk":"⟧","ropar":"⦆","ropf":"𝕣","Ropf":"ℝ","roplus":"⨮","rotimes":"⨵","RoundImplies":"⥰","rpar":")","rpargt":"⦔","rppolint":"⨒","rrarr":"⇉","Rrightarrow":"⇛","rsaquo":"›","rscr":"𝓇","Rscr":"ℛ","rsh":"↱","Rsh":"↱","rsqb":"]","rsquo":"’","rsquor":"’","rthree":"⋌","rtimes":"⋊","rtri":"▹","rtrie":"⊵","rtrif":"▸","rtriltri":"⧎","RuleDelayed":"⧴","ruluhar":"⥨","rx":"℞","Sacute":"Ś","sacute":"ś","sbquo":"‚","scap":"⪸","Scaron":"Š","scaron":"š","Sc":"⪼","sc":"≻","sccue":"≽","sce":"⪰","scE":"⪴","Scedil":"Ş","scedil":"ş","Scirc":"Ŝ","scirc":"ŝ","scnap":"⪺","scnE":"⪶","scnsim":"⋩","scpolint":"⨓","scsim":"≿","Scy":"С","scy":"с","sdotb":"⊡","sdot":"⋅","sdote":"⩦","searhk":"⤥","searr":"↘","seArr":"⇘","searrow":"↘","sect":"§","semi":";","seswar":"⤩","setminus":"∖","setmn":"∖","sext":"✶","Sfr":"𝔖","sfr":"𝔰","sfrown":"⌢","sharp":"♯","SHCHcy":"Щ","shchcy":"щ","SHcy":"Ш","shcy":"ш","ShortDownArrow":"↓","ShortLeftArrow":"←","shortmid":"∣","shortparallel":"∥","ShortRightArrow":"→","ShortUpArrow":"↑","shy":"­","Sigma":"Σ","sigma":"σ","sigmaf":"ς","sigmav":"ς","sim":"∼","simdot":"⩪","sime":"≃","simeq":"≃","simg":"⪞","simgE":"⪠","siml":"⪝","simlE":"⪟","simne":"≆","simplus":"⨤","simrarr":"⥲","slarr":"←","SmallCircle":"∘","smallsetminus":"∖","smashp":"⨳","smeparsl":"⧤","smid":"∣","smile":"⌣","smt":"⪪","smte":"⪬","smtes":"⪬︀","SOFTcy":"Ь","softcy":"ь","solbar":"⌿","solb":"⧄","sol":"/","Sopf":"𝕊","sopf":"𝕤","spades":"♠","spadesuit":"♠","spar":"∥","sqcap":"⊓","sqcaps":"⊓︀","sqcup":"⊔","sqcups":"⊔︀","Sqrt":"√","sqsub":"⊏","sqsube":"⊑","sqsubset":"⊏","sqsubseteq":"⊑","sqsup":"⊐","sqsupe":"⊒","sqsupset":"⊐","sqsupseteq":"⊒","square":"□","Square":"□","SquareIntersection":"⊓","SquareSubset":"⊏","SquareSubsetEqual":"⊑","SquareSuperset":"⊐","SquareSupersetEqual":"⊒","SquareUnion":"⊔","squarf":"▪","squ":"□","squf":"▪","srarr":"→","Sscr":"𝒮","sscr":"𝓈","ssetmn":"∖","ssmile":"⌣","sstarf":"⋆","Star":"⋆","star":"☆","starf":"★","straightepsilon":"ϵ","straightphi":"ϕ","strns":"¯","sub":"⊂","Sub":"⋐","subdot":"⪽","subE":"⫅","sube":"⊆","subedot":"⫃","submult":"⫁","subnE":"⫋","subne":"⊊","subplus":"⪿","subrarr":"⥹","subset":"⊂","Subset":"⋐","subseteq":"⊆","subseteqq":"⫅","SubsetEqual":"⊆","subsetneq":"⊊","subsetneqq":"⫋","subsim":"⫇","subsub":"⫕","subsup":"⫓","succapprox":"⪸","succ":"≻","succcurlyeq":"≽","Succeeds":"≻","SucceedsEqual":"⪰","SucceedsSlantEqual":"≽","SucceedsTilde":"≿","succeq":"⪰","succnapprox":"⪺","succneqq":"⪶","succnsim":"⋩","succsim":"≿","SuchThat":"∋","sum":"∑","Sum":"∑","sung":"♪","sup1":"¹","sup2":"²","sup3":"³","sup":"⊃","Sup":"⋑","supdot":"⪾","supdsub":"⫘","supE":"⫆","supe":"⊇","supedot":"⫄","Superset":"⊃","SupersetEqual":"⊇","suphsol":"⟉","suphsub":"⫗","suplarr":"⥻","supmult":"⫂","supnE":"⫌","supne":"⊋","supplus":"⫀","supset":"⊃","Supset":"⋑","supseteq":"⊇","supseteqq":"⫆","supsetneq":"⊋","supsetneqq":"⫌","supsim":"⫈","supsub":"⫔","supsup":"⫖","swarhk":"⤦","swarr":"↙","swArr":"⇙","swarrow":"↙","swnwar":"⤪","szlig":"ß","Tab":"\\t","target":"⌖","Tau":"Τ","tau":"τ","tbrk":"⎴","Tcaron":"Ť","tcaron":"ť","Tcedil":"Ţ","tcedil":"ţ","Tcy":"Т","tcy":"т","tdot":"⃛","telrec":"⌕","Tfr":"𝔗","tfr":"𝔱","there4":"∴","therefore":"∴","Therefore":"∴","Theta":"Θ","theta":"θ","thetasym":"ϑ","thetav":"ϑ","thickapprox":"≈","thicksim":"∼","ThickSpace":"  ","ThinSpace":" ","thinsp":" ","thkap":"≈","thksim":"∼","THORN":"Þ","thorn":"þ","tilde":"˜","Tilde":"∼","TildeEqual":"≃","TildeFullEqual":"≅","TildeTilde":"≈","timesbar":"⨱","timesb":"⊠","times":"×","timesd":"⨰","tint":"∭","toea":"⤨","topbot":"⌶","topcir":"⫱","top":"⊤","Topf":"𝕋","topf":"𝕥","topfork":"⫚","tosa":"⤩","tprime":"‴","trade":"™","TRADE":"™","triangle":"▵","triangledown":"▿","triangleleft":"◃","trianglelefteq":"⊴","triangleq":"≜","triangleright":"▹","trianglerighteq":"⊵","tridot":"◬","trie":"≜","triminus":"⨺","TripleDot":"⃛","triplus":"⨹","trisb":"⧍","tritime":"⨻","trpezium":"⏢","Tscr":"𝒯","tscr":"𝓉","TScy":"Ц","tscy":"ц","TSHcy":"Ћ","tshcy":"ћ","Tstrok":"Ŧ","tstrok":"ŧ","twixt":"≬","twoheadleftarrow":"↞","twoheadrightarrow":"↠","Uacute":"Ú","uacute":"ú","uarr":"↑","Uarr":"↟","uArr":"⇑","Uarrocir":"⥉","Ubrcy":"Ў","ubrcy":"ў","Ubreve":"Ŭ","ubreve":"ŭ","Ucirc":"Û","ucirc":"û","Ucy":"У","ucy":"у","udarr":"⇅","Udblac":"Ű","udblac":"ű","udhar":"⥮","ufisht":"⥾","Ufr":"𝔘","ufr":"𝔲","Ugrave":"Ù","ugrave":"ù","uHar":"⥣","uharl":"↿","uharr":"↾","uhblk":"▀","ulcorn":"⌜","ulcorner":"⌜","ulcrop":"⌏","ultri":"◸","Umacr":"Ū","umacr":"ū","uml":"¨","UnderBar":"_","UnderBrace":"⏟","UnderBracket":"⎵","UnderParenthesis":"⏝","Union":"⋃","UnionPlus":"⊎","Uogon":"Ų","uogon":"ų","Uopf":"𝕌","uopf":"𝕦","UpArrowBar":"⤒","uparrow":"↑","UpArrow":"↑","Uparrow":"⇑","UpArrowDownArrow":"⇅","updownarrow":"↕","UpDownArrow":"↕","Updownarrow":"⇕","UpEquilibrium":"⥮","upharpoonleft":"↿","upharpoonright":"↾","uplus":"⊎","UpperLeftArrow":"↖","UpperRightArrow":"↗","upsi":"υ","Upsi":"ϒ","upsih":"ϒ","Upsilon":"Υ","upsilon":"υ","UpTeeArrow":"↥","UpTee":"⊥","upuparrows":"⇈","urcorn":"⌝","urcorner":"⌝","urcrop":"⌎","Uring":"Ů","uring":"ů","urtri":"◹","Uscr":"𝒰","uscr":"𝓊","utdot":"⋰","Utilde":"Ũ","utilde":"ũ","utri":"▵","utrif":"▴","uuarr":"⇈","Uuml":"Ü","uuml":"ü","uwangle":"⦧","vangrt":"⦜","varepsilon":"ϵ","varkappa":"ϰ","varnothing":"∅","varphi":"ϕ","varpi":"ϖ","varpropto":"∝","varr":"↕","vArr":"⇕","varrho":"ϱ","varsigma":"ς","varsubsetneq":"⊊︀","varsubsetneqq":"⫋︀","varsupsetneq":"⊋︀","varsupsetneqq":"⫌︀","vartheta":"ϑ","vartriangleleft":"⊲","vartriangleright":"⊳","vBar":"⫨","Vbar":"⫫","vBarv":"⫩","Vcy":"В","vcy":"в","vdash":"⊢","vDash":"⊨","Vdash":"⊩","VDash":"⊫","Vdashl":"⫦","veebar":"⊻","vee":"∨","Vee":"⋁","veeeq":"≚","vellip":"⋮","verbar":"|","Verbar":"‖","vert":"|","Vert":"‖","VerticalBar":"∣","VerticalLine":"|","VerticalSeparator":"❘","VerticalTilde":"≀","VeryThinSpace":" ","Vfr":"𝔙","vfr":"𝔳","vltri":"⊲","vnsub":"⊂⃒","vnsup":"⊃⃒","Vopf":"𝕍","vopf":"𝕧","vprop":"∝","vrtri":"⊳","Vscr":"𝒱","vscr":"𝓋","vsubnE":"⫋︀","vsubne":"⊊︀","vsupnE":"⫌︀","vsupne":"⊋︀","Vvdash":"⊪","vzigzag":"⦚","Wcirc":"Ŵ","wcirc":"ŵ","wedbar":"⩟","wedge":"∧","Wedge":"⋀","wedgeq":"≙","weierp":"℘","Wfr":"𝔚","wfr":"𝔴","Wopf":"𝕎","wopf":"𝕨","wp":"℘","wr":"≀","wreath":"≀","Wscr":"𝒲","wscr":"𝓌","xcap":"⋂","xcirc":"◯","xcup":"⋃","xdtri":"▽","Xfr":"𝔛","xfr":"𝔵","xharr":"⟷","xhArr":"⟺","Xi":"Ξ","xi":"ξ","xlarr":"⟵","xlArr":"⟸","xmap":"⟼","xnis":"⋻","xodot":"⨀","Xopf":"𝕏","xopf":"𝕩","xoplus":"⨁","xotime":"⨂","xrarr":"⟶","xrArr":"⟹","Xscr":"𝒳","xscr":"𝓍","xsqcup":"⨆","xuplus":"⨄","xutri":"△","xvee":"⋁","xwedge":"⋀","Yacute":"Ý","yacute":"ý","YAcy":"Я","yacy":"я","Ycirc":"Ŷ","ycirc":"ŷ","Ycy":"Ы","ycy":"ы","yen":"¥","Yfr":"𝔜","yfr":"𝔶","YIcy":"Ї","yicy":"ї","Yopf":"𝕐","yopf":"𝕪","Yscr":"𝒴","yscr":"𝓎","YUcy":"Ю","yucy":"ю","yuml":"ÿ","Yuml":"Ÿ","Zacute":"Ź","zacute":"ź","Zcaron":"Ž","zcaron":"ž","Zcy":"З","zcy":"з","Zdot":"Ż","zdot":"ż","zeetrf":"ℨ","ZeroWidthSpace":"​","Zeta":"Ζ","zeta":"ζ","zfr":"𝔷","Zfr":"ℨ","ZHcy":"Ж","zhcy":"ж","zigrarr":"⇝","zopf":"𝕫","Zopf":"ℤ","Zscr":"𝒵","zscr":"𝓏","zwj":"‍","zwnj":"‌"}')},48491:e=>{"use strict";e.exports=JSON.parse('{"Aacute":"Á","aacute":"á","Acirc":"Â","acirc":"â","acute":"´","AElig":"Æ","aelig":"æ","Agrave":"À","agrave":"à","amp":"&","AMP":"&","Aring":"Å","aring":"å","Atilde":"Ã","atilde":"ã","Auml":"Ä","auml":"ä","brvbar":"¦","Ccedil":"Ç","ccedil":"ç","cedil":"¸","cent":"¢","copy":"©","COPY":"©","curren":"¤","deg":"°","divide":"÷","Eacute":"É","eacute":"é","Ecirc":"Ê","ecirc":"ê","Egrave":"È","egrave":"è","ETH":"Ð","eth":"ð","Euml":"Ë","euml":"ë","frac12":"½","frac14":"¼","frac34":"¾","gt":">","GT":">","Iacute":"Í","iacute":"í","Icirc":"Î","icirc":"î","iexcl":"¡","Igrave":"Ì","igrave":"ì","iquest":"¿","Iuml":"Ï","iuml":"ï","laquo":"«","lt":"<","LT":"<","macr":"¯","micro":"µ","middot":"·","nbsp":" ","not":"¬","Ntilde":"Ñ","ntilde":"ñ","Oacute":"Ó","oacute":"ó","Ocirc":"Ô","ocirc":"ô","Ograve":"Ò","ograve":"ò","ordf":"ª","ordm":"º","Oslash":"Ø","oslash":"ø","Otilde":"Õ","otilde":"õ","Ouml":"Ö","ouml":"ö","para":"¶","plusmn":"±","pound":"£","quot":"\\"","QUOT":"\\"","raquo":"»","reg":"®","REG":"®","sect":"§","shy":"­","sup1":"¹","sup2":"²","sup3":"³","szlig":"ß","THORN":"Þ","thorn":"þ","times":"×","Uacute":"Ú","uacute":"ú","Ucirc":"Û","ucirc":"û","Ugrave":"Ù","ugrave":"ù","uml":"¨","Uuml":"Ü","uuml":"ü","Yacute":"Ý","yacute":"ý","yen":"¥","yuml":"ÿ"}')},70663:e=>{"use strict";e.exports=JSON.parse('{"amp":"&","apos":"\'","gt":">","lt":"<","quot":"\\""}')}}]); \ No newline at end of file diff --git a/HomeUI/dist/js/9389.js b/HomeUI/dist/js/9389.js index 666cee8fb..57805e746 100644 --- a/HomeUI/dist/js/9389.js +++ b/HomeUI/dist/js/9389.js @@ -1 +1 @@ -"use strict";(globalThis["webpackChunkflux"]=globalThis["webpackChunkflux"]||[]).push([[9389],{34547:(e,t,a)=>{a.d(t,{Z:()=>c});var n=function(){var e=this,t=e._self._c;return t("div",{staticClass:"toastification"},[t("div",{staticClass:"d-flex align-items-start"},[t("b-avatar",{staticClass:"mr-75 flex-shrink-0",attrs:{variant:e.variant,size:"1.8rem"}},[t("feather-icon",{attrs:{icon:e.icon,size:"15"}})],1),t("div",{staticClass:"d-flex flex-grow-1"},[t("div",[e.title?t("h5",{staticClass:"mb-0 font-weight-bolder toastification-title",class:`text-${e.variant}`,domProps:{textContent:e._s(e.title)}}):e._e(),e.text?t("small",{staticClass:"d-inline-block text-body",domProps:{textContent:e._s(e.text)}}):e._e()]),t("span",{staticClass:"cursor-pointer toastification-close-icon ml-auto",on:{click:function(t){return e.$emit("close-toast")}}},[e.hideClose?e._e():t("feather-icon",{staticClass:"text-body",attrs:{icon:"XIcon"}})],1)])],1)])},r=[],o=a(47389);const s={components:{BAvatar:o.SH},props:{variant:{type:String,default:"primary"},icon:{type:String,default:null},title:{type:String,default:null},text:{type:String,default:null},hideClose:{type:Boolean,default:!1}}},i=s;var l=a(1001),d=(0,l.Z)(i,n,r,!1,null,"22d964ca",null);const c=d.exports},39389:(e,t,a)=>{a.r(t),a.d(t,{default:()=>f});var n=function(){var e=this,t=e._self._c;return t("b-card",[t("div",[t("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"ml-1",attrs:{id:"restart-daemon",variant:"outline-primary",size:"md"}},[e._v(" Restart Daemon ")]),t("b-popover",{ref:"popover",attrs:{target:"restart-daemon",triggers:"click",show:e.popoverShow,placement:"auto",container:"my-container"},on:{"update:show":function(t){e.popoverShow=t}},scopedSlots:e._u([{key:"title",fn:function(){return[t("div",{staticClass:"d-flex justify-content-between align-items-center"},[t("span",[e._v("Are You Sure?")]),t("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"close",attrs:{variant:"transparent","aria-label":"Close"},on:{click:e.onClose}},[t("span",{staticClass:"d-inline-block text-white",attrs:{"aria-hidden":"true"}},[e._v("×")])])],1)]},proxy:!0}])},[t("div",[t("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"mr-1",attrs:{size:"sm",variant:"danger"},on:{click:e.onClose}},[e._v(" Cancel ")]),t("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],attrs:{size:"sm",variant:"primary"},on:{click:e.onOk}},[e._v(" Restart Daemon ")])],1)]),t("b-modal",{attrs:{id:"modal-center",centered:"",title:"Daemon Restart","ok-only":"","ok-title":"OK"},model:{value:e.modalShow,callback:function(t){e.modalShow=t},expression:"modalShow"}},[t("b-card-text",[e._v(" The daemon will now be restarted. ")])],1)],1)])},r=[],o=a(86855),s=a(15193),i=a(53862),l=a(31220),d=a(64206),c=a(34547),u=a(20266),m=a(27616);const g={components:{BCard:o._,BButton:s.T,BPopover:i.x,BModal:l.N,BCardText:d.j,ToastificationContent:c.Z},directives:{Ripple:u.Z},data(){return{popoverShow:!1,modalShow:!1}},methods:{onClose(){this.popoverShow=!1},onOk(){this.popoverShow=!1,this.modalShow=!0;const e=localStorage.getItem("zelidauth");m.Z.restart(e).then((e=>{this.$toast({component:c.Z,props:{title:e.data.data.message||e.data.data,icon:"InfoIcon",variant:"success"}})})).catch((()=>{this.$toast({component:c.Z,props:{title:"Error while trying to restart Daemon",icon:"InfoIcon",variant:"danger"}})}))}}},p=g;var h=a(1001),v=(0,h.Z)(p,n,r,!1,null,null,null);const f=v.exports},27616:(e,t,a)=>{a.d(t,{Z:()=>r});var n=a(80914);const r={help(){return(0,n.Z)().get("/daemon/help")},helpSpecific(e){return(0,n.Z)().get(`/daemon/help/${e}`)},getInfo(){return(0,n.Z)().get("/daemon/getinfo")},getFluxNodeStatus(){return(0,n.Z)().get("/daemon/getzelnodestatus")},getRawTransaction(e,t){return(0,n.Z)().get(`/daemon/getrawtransaction/${e}/${t}`)},listFluxNodes(){return(0,n.Z)().get("/daemon/listzelnodes")},viewDeterministicFluxNodeList(){return(0,n.Z)().get("/daemon/viewdeterministiczelnodelist")},getFluxNodeCount(){return(0,n.Z)().get("/daemon/getzelnodecount")},getStartList(){return(0,n.Z)().get("/daemon/getstartlist")},getDOSList(){return(0,n.Z)().get("/daemon/getdoslist")},fluxCurrentWinner(){return(0,n.Z)().get("/daemon/fluxcurrentwinner")},getBenchmarks(){return(0,n.Z)().get("/daemon/getbenchmarks")},getBenchStatus(){return(0,n.Z)().get("/daemon/getbenchstatus")},startBenchmark(e){return(0,n.Z)().get("/daemon/startbenchmark",{headers:{zelidauth:e}})},stopBenchmark(e){return(0,n.Z)().get("/daemon/stopbenchmark",{headers:{zelidauth:e}})},getBlockCount(){return(0,n.Z)().get("/daemon/getBlockCount")},getBlockchainInfo(){return(0,n.Z)().get("/daemon/getblockchaininfo")},getMiningInfo(){return(0,n.Z)().get("/daemon/getmininginfo")},getNetworkInfo(){return(0,n.Z)().get("/daemon/getnetworkinfo")},validateAddress(e,t){return(0,n.Z)().get(`/daemon/validateaddress/${t}`,{headers:{zelidauth:e}})},getWalletInfo(e){return(0,n.Z)().get("/daemon/getwalletinfo",{headers:{zelidauth:e}})},listFluxNodeConf(e){return(0,n.Z)().get("/daemon/listzelnodeconf",{headers:{zelidauth:e}})},start(e){return(0,n.Z)().get("/daemon/start",{headers:{zelidauth:e}})},restart(e){return(0,n.Z)().get("/daemon/restart",{headers:{zelidauth:e}})},stopDaemon(e){return(0,n.Z)().get("/daemon/stop",{headers:{zelidauth:e}})},rescanDaemon(e,t){return(0,n.Z)().get(`/daemon/rescanblockchain/${t}`,{headers:{zelidauth:e}})},getBlock(e,t){return(0,n.Z)().get(`/daemon/getblock/${e}/${t}`)},tailDaemonDebug(e){return(0,n.Z)().get("/flux/taildaemondebug",{headers:{zelidauth:e}})},justAPI(){return(0,n.Z)()},cancelToken(){return n.S}}}}]); \ No newline at end of file +"use strict";(self["webpackChunkflux"]=self["webpackChunkflux"]||[]).push([[9389],{34547:(e,t,a)=>{a.d(t,{Z:()=>c});var n=function(){var e=this,t=e._self._c;return t("div",{staticClass:"toastification"},[t("div",{staticClass:"d-flex align-items-start"},[t("b-avatar",{staticClass:"mr-75 flex-shrink-0",attrs:{variant:e.variant,size:"1.8rem"}},[t("feather-icon",{attrs:{icon:e.icon,size:"15"}})],1),t("div",{staticClass:"d-flex flex-grow-1"},[t("div",[e.title?t("h5",{staticClass:"mb-0 font-weight-bolder toastification-title",class:`text-${e.variant}`,domProps:{textContent:e._s(e.title)}}):e._e(),e.text?t("small",{staticClass:"d-inline-block text-body",domProps:{textContent:e._s(e.text)}}):e._e()]),t("span",{staticClass:"cursor-pointer toastification-close-icon ml-auto",on:{click:function(t){return e.$emit("close-toast")}}},[e.hideClose?e._e():t("feather-icon",{staticClass:"text-body",attrs:{icon:"XIcon"}})],1)])],1)])},r=[],o=a(47389);const s={components:{BAvatar:o.SH},props:{variant:{type:String,default:"primary"},icon:{type:String,default:null},title:{type:String,default:null},text:{type:String,default:null},hideClose:{type:Boolean,default:!1}}},i=s;var l=a(1001),d=(0,l.Z)(i,n,r,!1,null,"22d964ca",null);const c=d.exports},39389:(e,t,a)=>{a.r(t),a.d(t,{default:()=>f});var n=function(){var e=this,t=e._self._c;return t("b-card",[t("div",[t("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"ml-1",attrs:{id:"restart-daemon",variant:"outline-primary",size:"md"}},[e._v(" Restart Daemon ")]),t("b-popover",{ref:"popover",attrs:{target:"restart-daemon",triggers:"click",show:e.popoverShow,placement:"auto",container:"my-container"},on:{"update:show":function(t){e.popoverShow=t}},scopedSlots:e._u([{key:"title",fn:function(){return[t("div",{staticClass:"d-flex justify-content-between align-items-center"},[t("span",[e._v("Are You Sure?")]),t("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"close",attrs:{variant:"transparent","aria-label":"Close"},on:{click:e.onClose}},[t("span",{staticClass:"d-inline-block text-white",attrs:{"aria-hidden":"true"}},[e._v("×")])])],1)]},proxy:!0}])},[t("div",[t("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"mr-1",attrs:{size:"sm",variant:"danger"},on:{click:e.onClose}},[e._v(" Cancel ")]),t("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],attrs:{size:"sm",variant:"primary"},on:{click:e.onOk}},[e._v(" Restart Daemon ")])],1)]),t("b-modal",{attrs:{id:"modal-center",centered:"",title:"Daemon Restart","ok-only":"","ok-title":"OK"},model:{value:e.modalShow,callback:function(t){e.modalShow=t},expression:"modalShow"}},[t("b-card-text",[e._v(" The daemon will now be restarted. ")])],1)],1)])},r=[],o=a(86855),s=a(15193),i=a(53862),l=a(31220),d=a(64206),c=a(34547),u=a(20266),m=a(27616);const g={components:{BCard:o._,BButton:s.T,BPopover:i.x,BModal:l.N,BCardText:d.j,ToastificationContent:c.Z},directives:{Ripple:u.Z},data(){return{popoverShow:!1,modalShow:!1}},methods:{onClose(){this.popoverShow=!1},onOk(){this.popoverShow=!1,this.modalShow=!0;const e=localStorage.getItem("zelidauth");m.Z.restart(e).then((e=>{this.$toast({component:c.Z,props:{title:e.data.data.message||e.data.data,icon:"InfoIcon",variant:"success"}})})).catch((()=>{this.$toast({component:c.Z,props:{title:"Error while trying to restart Daemon",icon:"InfoIcon",variant:"danger"}})}))}}},p=g;var h=a(1001),v=(0,h.Z)(p,n,r,!1,null,null,null);const f=v.exports},27616:(e,t,a)=>{a.d(t,{Z:()=>r});var n=a(80914);const r={help(){return(0,n.Z)().get("/daemon/help")},helpSpecific(e){return(0,n.Z)().get(`/daemon/help/${e}`)},getInfo(){return(0,n.Z)().get("/daemon/getinfo")},getFluxNodeStatus(){return(0,n.Z)().get("/daemon/getzelnodestatus")},getRawTransaction(e,t){return(0,n.Z)().get(`/daemon/getrawtransaction/${e}/${t}`)},listFluxNodes(){return(0,n.Z)().get("/daemon/listzelnodes")},viewDeterministicFluxNodeList(){return(0,n.Z)().get("/daemon/viewdeterministiczelnodelist")},getFluxNodeCount(){return(0,n.Z)().get("/daemon/getzelnodecount")},getStartList(){return(0,n.Z)().get("/daemon/getstartlist")},getDOSList(){return(0,n.Z)().get("/daemon/getdoslist")},fluxCurrentWinner(){return(0,n.Z)().get("/daemon/fluxcurrentwinner")},getBenchmarks(){return(0,n.Z)().get("/daemon/getbenchmarks")},getBenchStatus(){return(0,n.Z)().get("/daemon/getbenchstatus")},startBenchmark(e){return(0,n.Z)().get("/daemon/startbenchmark",{headers:{zelidauth:e}})},stopBenchmark(e){return(0,n.Z)().get("/daemon/stopbenchmark",{headers:{zelidauth:e}})},getBlockCount(){return(0,n.Z)().get("/daemon/getBlockCount")},getBlockchainInfo(){return(0,n.Z)().get("/daemon/getblockchaininfo")},getMiningInfo(){return(0,n.Z)().get("/daemon/getmininginfo")},getNetworkInfo(){return(0,n.Z)().get("/daemon/getnetworkinfo")},validateAddress(e,t){return(0,n.Z)().get(`/daemon/validateaddress/${t}`,{headers:{zelidauth:e}})},getWalletInfo(e){return(0,n.Z)().get("/daemon/getwalletinfo",{headers:{zelidauth:e}})},listFluxNodeConf(e){return(0,n.Z)().get("/daemon/listzelnodeconf",{headers:{zelidauth:e}})},start(e){return(0,n.Z)().get("/daemon/start",{headers:{zelidauth:e}})},restart(e){return(0,n.Z)().get("/daemon/restart",{headers:{zelidauth:e}})},stopDaemon(e){return(0,n.Z)().get("/daemon/stop",{headers:{zelidauth:e}})},rescanDaemon(e,t){return(0,n.Z)().get(`/daemon/rescanblockchain/${t}`,{headers:{zelidauth:e}})},getBlock(e,t){return(0,n.Z)().get(`/daemon/getblock/${e}/${t}`)},tailDaemonDebug(e){return(0,n.Z)().get("/flux/taildaemondebug",{headers:{zelidauth:e}})},justAPI(){return(0,n.Z)()},cancelToken(){return n.S}}}}]); \ No newline at end of file diff --git a/HomeUI/dist/js/9442.js b/HomeUI/dist/js/9442.js deleted file mode 100644 index e925dc59f..000000000 --- a/HomeUI/dist/js/9442.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(globalThis["webpackChunkflux"]=globalThis["webpackChunkflux"]||[]).push([[9442],{65530:(t,a,e)=>{e.r(a),e.d(a,{default:()=>z});var s=function(){var t=this,a=t._self._c;return a("div",[a("div",{class:t.managedApplication?"d-none":""},[a("b-tabs",{attrs:{pills:""},on:{"activate-tab":function(a){return t.tabChanged()}}},[a("b-tab",{attrs:{title:"Installed"}},[a("b-overlay",{attrs:{show:t.tableconfig.installed.loading,variant:"transparent",blur:"5px"}},[a("b-card",[a("b-row",[a("b-col",{attrs:{cols:"12"}},[a("b-table",{staticClass:"apps-installed-table",attrs:{striped:"",outlined:"",responsive:"",items:t.tableconfig.installed.apps,fields:t.isLoggedIn()?t.tableconfig.installed.loggedInFields:t.tableconfig.installed.fields,"show-empty":"","empty-text":"No Flux Apps installed","sort-icon-left":""},scopedSlots:t._u([{key:"cell(name)",fn:function(e){return[a("div",{staticClass:"text-left"},[a("kbd",{staticClass:"alert-info no-wrap",staticStyle:{"border-radius":"15px","font-weight":"700 !important"}},[a("b-icon",{attrs:{scale:"1.2",icon:"app-indicator"}}),t._v("  "+t._s(e.item.name)+"  ")],1),a("br"),a("small",{staticStyle:{"font-size":"11px"}},[a("div",{staticClass:"d-flex align-items-center",staticStyle:{"margin-top":"3px"}},[t._v("   "),a("b-icon",{attrs:{scale:"1.4",icon:"speedometer2"}}),t._v("  "),a("kbd",{staticClass:"alert-success",staticStyle:{"border-radius":"15px"}},[t._v(" "),a("b",[t._v(t._s(t.getServiceUsageValue(1,e.item.name,e.item)))]),t._v(" ")]),t._v("   "),a("b-icon",{attrs:{scale:"1.4",icon:"cpu"}}),t._v("  "),a("kbd",{staticClass:"alert-success",staticStyle:{"border-radius":"15px"}},[t._v(" "),a("b",[t._v(t._s(t.getServiceUsageValue(0,e.item.name,e.item)))]),t._v(" ")]),t._v("   "),a("b-icon",{attrs:{scale:"1.4",icon:"hdd"}}),t._v("  "),a("kbd",{staticClass:"alert-success",staticStyle:{"border-radius":"15px"}},[t._v(" "),a("b",[t._v(t._s(t.getServiceUsageValue(2,e.item.name,e.item)))]),t._v(" ")]),t._v("  "),a("b-icon",{attrs:{scale:"1.2",icon:"geo-alt"}}),t._v(" "),a("kbd",{staticClass:"alert-warning",staticStyle:{"border-radius":"15px"}},[t._v(" "),a("b",[t._v(t._s(e.item.instances))]),t._v(" ")])],1),a("span",{staticClass:"no-wrap",class:{"red-text":t.isLessThanTwoDays(t.labelForExpire(e.item.expire,e.item.height))}},[t._v("   "),a("b-icon",{attrs:{scale:"1.2",icon:"hourglass-split"}}),t._v(" "+t._s(t.labelForExpire(e.item.expire,e.item.height))+"   ")],1)])])]}},{key:"cell(visit)",fn:function(e){return[a("b-button",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.top",value:"Visit App",expression:"'Visit App'",modifiers:{hover:!0,top:!0}}],staticClass:"mr-0 no-wrap hover-underline",attrs:{size:"sm",variant:"link"},on:{click:function(a){return t.openApp(e.item.name)}}},[a("b-icon",{attrs:{scale:"1",icon:"front"}}),t._v(" Visit ")],1)]}},{key:"cell(description)",fn:function(e){return[a("kbd",{staticClass:"text-secondary textarea",staticStyle:{float:"left","text-align":"left"}},[t._v(t._s(e.item.description))])]}},{key:"cell(state)",fn:function(e){return[a("kbd",{class:t.getBadgeClass(e.item.name),staticStyle:{"border-radius":"15px"}},[t._v(" "),a("b",[t._v(t._s(t.getStateByName(e.item.name)))]),t._v(" ")])]}},{key:"cell(show_details)",fn:function(e){return[a("a",{on:{click:function(a){return t.showLocations(e,t.tableconfig.installed.apps)}}},[e.detailsShowing?t._e():a("v-icon",{staticClass:"ml-1",attrs:{name:"chevron-down"}}),e.detailsShowing?a("v-icon",{staticClass:"ml-1",attrs:{name:"chevron-up"}}):t._e()],1)]}},{key:"row-details",fn:function(e){return[a("b-card",{staticClass:"mx-2"},[a("h3",{staticClass:"no-wrap"},[a("kbd",{staticClass:"alert-info d-flex",staticStyle:{"border-radius":"15px","font-family":"monospace","padding-right":"100%"}},[a("b-icon",{staticClass:"ml-1",attrs:{scale:"1",icon:"info-square"}}),t._v("  Application Information ")],1)]),a("div",{staticClass:"ml-1"},[e.item.owner?a("list-entry",{attrs:{title:"Owner",data:e.item.owner}}):t._e(),e.item.hash?a("list-entry",{attrs:{title:"Hash",data:e.item.hash}}):t._e(),e.item.version>=5?a("div",[e.item.contacts.length>0?a("list-entry",{attrs:{title:"Contacts",data:JSON.stringify(e.item.contacts)}}):t._e(),e.item.geolocation.length?a("div",t._l(e.item.geolocation,(function(e){return a("div",{key:e},[a("list-entry",{attrs:{title:"Geolocation",data:t.getGeolocation(e)}})],1)})),0):a("div",[a("list-entry",{attrs:{title:"Continent",data:"All"}}),a("list-entry",{attrs:{title:"Country",data:"All"}}),a("list-entry",{attrs:{title:"Region",data:"All"}})],1)],1):t._e(),e.item.instances?a("list-entry",{attrs:{title:"Instances",data:e.item.instances.toString()}}):t._e(),a("list-entry",{attrs:{title:"Expires in",data:t.labelForExpire(e.item.expire,e.item.height)}}),e.item?.nodes?.length>0?a("list-entry",{attrs:{title:"Enterprise Nodes",data:e.item.nodes?e.item.nodes.toString():"Not scoped"}}):t._e(),a("list-entry",{attrs:{title:"Static IP",data:e.item.staticip?"Yes, Running only on Static IP nodes":"No, Running on all nodes"}})],1),e.item.version<=3?a("div",[a("b-card",[a("list-entry",{attrs:{title:"Repository",data:e.item.repotag}}),a("list-entry",{attrs:{title:"Custom Domains",data:e.item.domains.toString()||"none"}}),a("list-entry",{attrs:{title:"Automatic Domains",data:t.constructAutomaticDomains(e.item.ports,void 0,e.item.name).toString()}}),a("list-entry",{attrs:{title:"Ports",data:e.item.ports.toString()}}),a("list-entry",{attrs:{title:"Container Ports",data:e.item.containerPorts.toString()}}),a("list-entry",{attrs:{title:"Container Data",data:e.item.containerData}}),a("list-entry",{attrs:{title:"Enviroment Parameters",data:e.item.enviromentParameters.length>0?e.item.enviromentParameters.toString():"none"}}),a("list-entry",{attrs:{title:"Commands",data:e.item.commands.length>0?e.item.commands.toString():"none"}}),e.item.tiered?a("div",[a("list-entry",{attrs:{title:"CPU Cumulus",data:`${e.item.cpubasic} vCore`}}),a("list-entry",{attrs:{title:"CPU Nimbus",data:`${e.item.cpusuper} vCore`}}),a("list-entry",{attrs:{title:"CPU Stratus",data:`${e.item.cpubamf} vCore`}}),a("list-entry",{attrs:{title:"RAM Cumulus",data:`${e.item.rambasic} MB`}}),a("list-entry",{attrs:{title:"RAM Nimbus",data:`${e.item.ramsuper} MB`}}),a("list-entry",{attrs:{title:"RAM Stratus",data:`${e.item.rambamf} MB`}}),a("list-entry",{attrs:{title:"SSD Cumulus",data:`${e.item.hddbasic} GB`}}),a("list-entry",{attrs:{title:"SSD Nimbus",data:`${e.item.hddsuper} GB`}}),a("list-entry",{attrs:{title:"SSD Stratus",data:`${e.item.hddbamf} GB`}})],1):a("div",[a("list-entry",{attrs:{title:"CPU",data:`${e.item.cpu} vCore`}}),a("list-entry",{attrs:{title:"RAM",data:`${e.item.ram} MB`}}),a("list-entry",{attrs:{title:"SSD",data:`${e.item.hdd} GB`}})],1)],1)],1):a("div",[a("h3",{staticClass:"no-wrap"},[a("kbd",{staticClass:"alert-info d-flex",staticStyle:{"border-radius":"15px","font-family":"monospace","padding-right":"100%"}},[a("b-icon",{staticClass:"ml-1",attrs:{scale:"1",icon:"box"}}),t._v("  Composition ")],1)]),t._l(e.item.compose,(function(s,i){return a("b-card",{key:i,staticClass:"mb-0"},[a("h3",{staticClass:"no-wrap"},[a("kbd",{staticClass:"alert-success d-flex",staticStyle:{"border-radius":"15px","font-family":"monospace","max-width":"500px"}},[a("b-icon",{staticClass:"ml-1",attrs:{scale:"1",icon:"menu-app-fill"}}),t._v("  "+t._s(s.name)+" ")],1)]),a("div",{staticClass:"ml-1"},[a("list-entry",{attrs:{title:"Name",data:s.name}}),a("list-entry",{attrs:{title:"Description",data:s.description}}),a("list-entry",{attrs:{title:"Repository",data:s.repotag}}),a("list-entry",{attrs:{title:"Repository Authentication",data:s.repoauth?"Content Encrypted":"Public"}}),a("list-entry",{attrs:{title:"Custom Domains",data:s.domains.toString()||"none"}}),a("list-entry",{attrs:{title:"Automatic Domains",data:t.constructAutomaticDomains(s.ports,s.name,e.item.name,i).toString()}}),a("list-entry",{attrs:{title:"Ports",data:s.ports.toString()}}),a("list-entry",{attrs:{title:"Container Ports",data:s.containerPorts.toString()}}),a("list-entry",{attrs:{title:"Container Data",data:s.containerData}}),a("list-entry",{attrs:{title:"Environment Parameters",data:s.environmentParameters.length>0?s.environmentParameters.toString():"none"}}),a("list-entry",{attrs:{title:"Commands",data:s.commands.length>0?s.commands.toString():"none"}}),a("list-entry",{attrs:{title:"Secret Environment Parameters",data:s.secrets?"Content Encrypted":"none"}}),s.tiered?a("div",[a("list-entry",{attrs:{title:"CPU Cumulus",data:`${s.cpubasic} vCore`}}),a("list-entry",{attrs:{title:"CPU Nimbus",data:`${s.cpusuper} vCore`}}),a("list-entry",{attrs:{title:"CPU Stratus",data:`${s.cpubamf} vCore`}}),a("list-entry",{attrs:{title:"RAM Cumulus",data:`${s.rambasic} MB`}}),a("list-entry",{attrs:{title:"RAM Nimbus",data:`${s.ramsuper} MB`}}),a("list-entry",{attrs:{title:"RAM Stratus",data:`${s.rambamf} MB`}}),a("list-entry",{attrs:{title:"SSD Cumulus",data:`${s.hddbasic} GB`}}),a("list-entry",{attrs:{title:"SSD Nimbus",data:`${s.hddsuper} GB`}}),a("list-entry",{attrs:{title:"SSD Stratus",data:`${s.hddbamf} GB`}})],1):a("div",[a("list-entry",{attrs:{title:"CPU",data:`${s.cpu} vCore`}}),a("list-entry",{attrs:{title:"RAM",data:`${s.ram} MB`}}),a("list-entry",{attrs:{title:"SSD",data:`${s.hdd} GB`}})],1)],1)])}))],2),a("h3",[a("kbd",{staticClass:"alert-info d-flex",staticStyle:{"border-radius":"15px","font-family":"monospace","padding-right":"100%"}},[a("b-icon",{staticClass:"ml-1",attrs:{scale:"1",icon:"globe"}}),t._v("  Locations ")],1)]),a("b-row",[a("b-col",{staticClass:"my-1",attrs:{md:"4",sm:"4"}},[a("b-form-group",{staticClass:"mb-0"},[a("label",{staticClass:"d-inline-block text-left mr-50"},[t._v("Per page")]),a("b-form-select",{staticClass:"w-50",attrs:{id:"perPageSelect",size:"sm",options:t.appLocationOptions.pageOptions},model:{value:t.appLocationOptions.perPage,callback:function(a){t.$set(t.appLocationOptions,"perPage",a)},expression:"appLocationOptions.perPage"}})],1)],1),a("b-col",{staticClass:"my-1",attrs:{md:"8"}},[a("b-form-group",{staticClass:"mb-0",attrs:{label:"Filter","label-cols-sm":"1","label-align-sm":"right","label-for":"filterInput"}},[a("b-input-group",{attrs:{size:"sm"}},[a("b-form-input",{attrs:{id:"filterInput",type:"search",placeholder:"Type to Search"},model:{value:t.appLocationOptions.filterOne,callback:function(a){t.$set(t.appLocationOptions,"filterOne",a)},expression:"appLocationOptions.filterOne"}}),a("b-input-group-append",[a("b-button",{attrs:{disabled:!t.appLocationOptions.filterOne},on:{click:function(a){t.appLocationOptions.filterOne=""}}},[t._v(" Clear ")])],1)],1)],1)],1),a("b-col",{attrs:{cols:"12"}},[a("b-table",{staticClass:"locations-table",attrs:{borderless:"","per-page":t.appLocationOptions.perPage,"current-page":t.appLocationOptions.currentPage,items:t.appLocations,fields:t.appLocationFields,"thead-class":"d-none",filter:t.appLocationOptions.filterOne,"show-empty":"","sort-icon-left":"","empty-text":"No instances found.."},scopedSlots:t._u([{key:"cell(ip)",fn:function(e){return[a("div",{staticClass:"no-wrap"},[a("kbd",{staticClass:"alert-info",staticStyle:{"border-radius":"15px"}},[a("b-icon",{attrs:{scale:"1.1",icon:"hdd-network-fill"}})],1),t._v("  "),a("kbd",{staticClass:"alert-success no-wrap",staticStyle:{"border-radius":"15px"}},[a("b",[t._v("  "+t._s(e.item.ip)+"  ")])])])]}},{key:"cell(visit)",fn:function(s){return[a("div",{staticClass:"d-flex justify-content-end"},[a("b-button",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.top",value:"Visit App",expression:"'Visit App'",modifiers:{hover:!0,top:!0}}],staticClass:"mr-1",attrs:{size:"sm",pill:"",variant:"dark"},on:{click:function(a){t.openApp(e.item.name,s.item.ip.split(":")[0],t.getProperPort(e.item))}}},[a("b-icon",{attrs:{scale:"1",icon:"door-open"}}),t._v(" App ")],1),a("b-button",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.top",value:"Visit FluxNode",expression:"'Visit FluxNode'",modifiers:{hover:!0,top:!0}}],staticClass:"mr-0",attrs:{size:"sm",pill:"",variant:"outline-dark"},on:{click:function(a){t.openNodeFluxOS(s.item.ip.split(":")[0],s.item.ip.split(":")[1]?+s.item.ip.split(":")[1]-1:16126)}}},[a("b-icon",{attrs:{scale:"1",icon:"house-door-fill"}}),t._v(" FluxNode ")],1),t._v("   ")],1)]}}],null,!0)})],1),a("b-col",{attrs:{cols:"12"}},[a("b-pagination",{staticClass:"my-0 mt-1",attrs:{"total-rows":t.appLocationOptions.totalRows,"per-page":t.appLocationOptions.perPage,align:"center",size:"sm"},model:{value:t.appLocationOptions.currentPage,callback:function(a){t.$set(t.appLocationOptions,"currentPage",a)},expression:"appLocationOptions.currentPage"}})],1)],1)],1)]}},{key:"cell(Name)",fn:function(a){return[t._v(" "+t._s(t.getAppName(a.item.name))+" ")]}},{key:"cell(Description)",fn:function(a){return[t._v(" "+t._s(a.item.description)+" ")]}},{key:"cell(actions)",fn:function(e){return[a("b-button-toolbar",[a("b-button-group",{attrs:{size:"sm"}},[a("b-button",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.top",value:"Start App",expression:"'Start App'",modifiers:{hover:!0,top:!0}}],staticClass:"no-wrap",attrs:{id:`start-installed-app-${e.item.name}`,disabled:t.isAppInList(e.item.name,t.tableconfig.running.apps),size:"sm",variant:"outline-dark"}},[a("b-icon",{staticClass:"icon-style-start",class:{"disable-hover":t.isAppInList(e.item.name,t.tableconfig.running.apps)},attrs:{scale:"1.2",icon:"play-fill"}})],1),a("confirm-dialog",{attrs:{target:`start-installed-app-${e.item.name}`,"confirm-button":"Start App"},on:{confirm:function(a){return t.startApp(e.item.name)}}}),a("b-button",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.top",value:"Stop App",expression:"'Stop App'",modifiers:{hover:!0,top:!0}}],staticClass:"mr-0",attrs:{id:`stop-installed-app-${e.item.name}`,size:"sm",variant:"outline-dark",disabled:!t.isAppInList(e.item.name,t.tableconfig.running.apps)}},[a("b-icon",{staticClass:"icon-style-stop",class:{"disable-hover":!t.isAppInList(e.item.name,t.tableconfig.running.apps)},attrs:{scale:"1.2",icon:"stop-circle"}})],1),a("confirm-dialog",{attrs:{target:`stop-installed-app-${e.item.name}`,"confirm-button":"Stop App"},on:{confirm:function(a){return t.stopApp(e.item.name)}}}),a("b-button",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.top",value:"Restart App",expression:"'Restart App'",modifiers:{hover:!0,top:!0}}],staticClass:"no-wrap",attrs:{id:`restart-installed-app-${e.item.name}`,size:"sm",variant:"outline-dark"}},[a("b-icon",{staticClass:"icon-style-restart",attrs:{scale:"1",icon:"bootstrap-reboot"}})],1),a("confirm-dialog",{attrs:{target:`restart-installed-app-${e.item.name}`,"confirm-button":"Restart App"},on:{confirm:function(a){return t.restartApp(e.item.name)}}}),a("b-button",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.top",value:"Remove App",expression:"'Remove App'",modifiers:{hover:!0,top:!0}}],staticClass:"no-wrap",attrs:{id:`remove-installed-app-${e.item.name}`,size:"sm",variant:"outline-dark"}},[a("b-icon",{staticClass:"icon-style-trash",attrs:{scale:"1",icon:"trash"}})],1),a("confirm-dialog",{attrs:{target:`remove-installed-app-${e.item.name}`,"confirm-button":"Remove App"},on:{confirm:function(a){return t.removeApp(e.item.name)}}})],1)],1)]}}])})],1)],1),a("b-icon",{staticClass:"ml-1",attrs:{scale:"1.4",icon:"layers"}}),t._v("  "),a("b",[t._v(" "),a("kbd",{staticClass:"alert-success",staticStyle:{"border-radius":"15px"}},[t._v(" "+t._s(t.tableconfig.installed?.apps?.length||0)+" ")])])],1)],1)],1),a("b-tab",{attrs:{title:"Available"}},[a("b-overlay",{attrs:{show:t.tableconfig.available.loading,variant:"transparent",blur:"5px"}},[a("b-card",[a("h3",{staticClass:"mb-1"},[a("kbd",{staticClass:"alert-info d-flex no-wrap",staticStyle:{"border-radius":"15px","font-family":"monospace","padding-right":"100%"}},[t._v("  "),a("b-icon",{staticClass:"mr-1",attrs:{scale:"1",icon:"building"}}),t._v(" Prebuilt Applications ")],1)]),a("b-row",[a("b-col",{attrs:{cols:"12"}},[a("b-table",{staticClass:"apps-available-table",attrs:{striped:"",outlined:"",responsive:"",items:t.tableconfig.available.apps,fields:t.isLoggedIn()?t.tableconfig.available.loggedInFields:t.tableconfig.available.fields,"show-empty":"","sort-icon-left":"","empty-text":"No Flux Apps available"},scopedSlots:t._u([{key:"cell(name)",fn:function(e){return[a("div",{staticClass:"text-left"},[a("kbd",{staticClass:"alert-info no-wrap",staticStyle:{"border-radius":"15px","font-weight":"700 !important"}},[a("b-icon",{attrs:{scale:"1.2",icon:"app-indicator"}}),t._v("  "+t._s(e.item.name)+"  ")],1),a("br"),a("small",{staticStyle:{"font-size":"11px"}},[a("div",{staticClass:"d-flex align-items-center",staticStyle:{"margin-top":"3px"}},[t._v("   "),a("b-icon",{attrs:{scale:"1.4",icon:"speedometer2"}}),t._v("  "),a("kbd",{staticClass:"alert-success",staticStyle:{"border-radius":"15px"}},[t._v(" "),a("b",[t._v(t._s(t.getServiceUsageValue(1,e.item.name,e.item)))]),t._v(" ")]),t._v("   "),a("b-icon",{attrs:{scale:"1.4",icon:"cpu"}}),t._v("  "),a("kbd",{staticClass:"alert-success",staticStyle:{"border-radius":"15px"}},[t._v(" "),a("b",[t._v(t._s(t.getServiceUsageValue(0,e.item.name,e.item)))]),t._v(" ")]),t._v("   "),a("b-icon",{attrs:{scale:"1.4",icon:"hdd"}}),t._v("  "),a("kbd",{staticClass:"alert-success",staticStyle:{"border-radius":"15px"}},[t._v(" "),a("b",[t._v(t._s(t.getServiceUsageValue(2,e.item.name,e.item)))]),t._v(" ")]),t._v("  ")],1)])])]}},{key:"cell(visit)",fn:function(e){return[a("b-button",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.top",value:"Visit App",expression:"'Visit App'",modifiers:{hover:!0,top:!0}}],staticClass:"mr-0 no-wrap hover-underline",attrs:{size:"sm",variant:"link"},on:{click:function(a){return t.openApp(e.item.name)}}},[a("b-icon",{attrs:{scale:"1",icon:"front"}}),t._v(" Visit ")],1)]}},{key:"cell(description)",fn:function(e){return[a("kbd",{staticClass:"text-secondary textarea",staticStyle:{float:"left","text-align":"left"}},[t._v(t._s(e.item.description))])]}},{key:"cell(state)",fn:function(e){return[a("kbd",{class:t.getBadgeClass(e.item.name),staticStyle:{"border-radius":"15px"}},[t._v(" "),a("b",[t._v(t._s(t.getStateByName(e.item.name)))]),t._v(" ")])]}},{key:"cell(show_details)",fn:function(e){return[a("a",{on:{click:function(a){return t.showLocations(e,t.tableconfig.available.apps)}}},[e.detailsShowing?t._e():a("v-icon",{staticClass:"ml-1",attrs:{name:"chevron-down"}}),e.detailsShowing?a("v-icon",{staticClass:"ml-1",attrs:{name:"chevron-up"}}):t._e()],1)]}},{key:"row-details",fn:function(e){return[a("b-card",{staticClass:"mx-2"},[a("h3",{staticClass:"no-wrap"},[a("kbd",{staticClass:"alert-info d-flex",staticStyle:{"border-radius":"15px","font-family":"monospace","padding-right":"100%"}},[a("b-icon",{staticClass:"ml-1",attrs:{scale:"1",icon:"info-square"}}),t._v("  Application Information ")],1)]),a("div",{staticClass:"ml-1"},[e.item.owner?a("list-entry",{attrs:{title:"Owner",data:e.item.owner}}):t._e(),e.item.hash?a("list-entry",{attrs:{title:"Hash",data:e.item.hash}}):t._e(),e.item.version>=5?a("div",[e.item.contacts.length>0?a("list-entry",{attrs:{title:"Contacts",data:JSON.stringify(e.item.contacts)}}):t._e(),e.item.geolocation.length?a("div",t._l(e.item.geolocation,(function(e){return a("div",{key:e},[a("list-entry",{attrs:{title:"Geolocation",data:t.getGeolocation(e)}})],1)})),0):a("div",[a("list-entry",{attrs:{title:"Continent",data:"All"}}),a("list-entry",{attrs:{title:"Country",data:"All"}}),a("list-entry",{attrs:{title:"Region",data:"All"}})],1)],1):t._e(),e.item.instances?a("list-entry",{attrs:{title:"Instances",data:e.item.instances.toString()}}):t._e(),a("list-entry",{attrs:{title:"Expires in",data:t.labelForExpire(e.item.expire,e.item.height)}}),e.item?.nodes?.length>0?a("list-entry",{attrs:{title:"Enterprise Nodes",data:e.item.nodes?e.item.nodes.toString():"Not scoped"}}):t._e(),a("list-entry",{attrs:{title:"Static IP",data:e.item.staticip?"Yes, Running only on Static IP nodes":"No, Running on all nodes"}})],1),e.item.version<=3?a("div",[a("b-card",[a("list-entry",{attrs:{title:"Repository",data:e.item.repotag}}),a("list-entry",{attrs:{title:"Custom Domains",data:e.item.domains.toString()||"none"}}),a("list-entry",{attrs:{title:"Automatic Domains",data:t.constructAutomaticDomains(e.item.ports,void 0,e.item.name).toString()}}),a("list-entry",{attrs:{title:"Ports",data:e.item.ports.toString()}}),a("list-entry",{attrs:{title:"Container Ports",data:e.item.containerPorts.toString()}}),a("list-entry",{attrs:{title:"Container Data",data:e.item.containerData}}),a("list-entry",{attrs:{title:"Enviroment Parameters",data:e.item.enviromentParameters.length>0?e.item.enviromentParameters.toString():"none"}}),a("list-entry",{attrs:{title:"Commands",data:e.item.commands.length>0?e.item.commands.toString():"none"}}),e.item.tiered?a("div",[a("list-entry",{attrs:{title:"CPU Cumulus",data:`${e.item.cpubasic} vCore`}}),a("list-entry",{attrs:{title:"CPU Nimbus",data:`${e.item.cpusuper} vCore`}}),a("list-entry",{attrs:{title:"CPU Stratus",data:`${e.item.cpubamf} vCore`}}),a("list-entry",{attrs:{title:"RAM Cumulus",data:`${e.item.rambasic} MB`}}),a("list-entry",{attrs:{title:"RAM Nimbus",data:`${e.item.ramsuper} MB`}}),a("list-entry",{attrs:{title:"RAM Stratus",data:`${e.item.rambamf} MB`}}),a("list-entry",{attrs:{title:"SSD Cumulus",data:`${e.item.hddbasic} GB`}}),a("list-entry",{attrs:{title:"SSD Nimbus",data:`${e.item.hddsuper} GB`}}),a("list-entry",{attrs:{title:"SSD Stratus",data:`${e.item.hddbamf} GB`}})],1):a("div",[a("list-entry",{attrs:{title:"CPU",data:`${e.item.cpu} vCore`}}),a("list-entry",{attrs:{title:"RAM",data:`${e.item.ram} MB`}}),a("list-entry",{attrs:{title:"SSD",data:`${e.item.hdd} GB`}})],1)],1)],1):a("div",[a("h3",{staticClass:"no-wrap"},[a("kbd",{staticClass:"alert-info d-flex",staticStyle:{"border-radius":"15px","font-family":"monospace","padding-right":"100%"}},[a("b-icon",{staticClass:"ml-1",attrs:{scale:"1",icon:"box"}}),t._v("  Composition ")],1)]),t._l(e.item.compose,(function(s,i){return a("b-card",{key:i,staticClass:"mb-0"},[a("h3",{staticClass:"no-wrap"},[a("kbd",{staticClass:"alert-success d-flex",staticStyle:{"border-radius":"15px","font-family":"monospace","max-width":"500px"}},[a("b-icon",{staticClass:"ml-1",attrs:{scale:"1",icon:"menu-app-fill"}}),t._v("  "+t._s(s.name)+" ")],1)]),a("div",{staticClass:"ml-1"},[a("list-entry",{attrs:{title:"Name",data:s.name}}),a("list-entry",{attrs:{title:"Description",data:s.description}}),a("list-entry",{attrs:{title:"Repository",data:s.repotag}}),a("list-entry",{attrs:{title:"Repository Authentication",data:s.repoauth?"Content Encrypted":"Public"}}),a("list-entry",{attrs:{title:"Custom Domains",data:s.domains.toString()||"none"}}),a("list-entry",{attrs:{title:"Automatic Domains",data:t.constructAutomaticDomains(s.ports,s.name,e.item.name,i).toString()}}),a("list-entry",{attrs:{title:"Ports",data:s.ports.toString()}}),a("list-entry",{attrs:{title:"Container Ports",data:s.containerPorts.toString()}}),a("list-entry",{attrs:{title:"Container Data",data:s.containerData}}),a("list-entry",{attrs:{title:"Environment Parameters",data:s.environmentParameters.length>0?s.environmentParameters.toString():"none"}}),a("list-entry",{attrs:{title:"Commands",data:s.commands.length>0?s.commands.toString():"none"}}),a("list-entry",{attrs:{title:"Secret Environment Parameters",data:s.secrets?"Content Encrypted":"none"}}),s.tiered?a("div",[a("list-entry",{attrs:{title:"CPU Cumulus",data:`${s.cpubasic} vCore`}}),a("list-entry",{attrs:{title:"CPU Nimbus",data:`${s.cpusuper} vCore`}}),a("list-entry",{attrs:{title:"CPU Stratus",data:`${s.cpubamf} vCore`}}),a("list-entry",{attrs:{title:"RAM Cumulus",data:`${s.rambasic} MB`}}),a("list-entry",{attrs:{title:"RAM Nimbus",data:`${s.ramsuper} MB`}}),a("list-entry",{attrs:{title:"RAM Stratus",data:`${s.rambamf} MB`}}),a("list-entry",{attrs:{title:"SSD Cumulus",data:`${s.hddbasic} GB`}}),a("list-entry",{attrs:{title:"SSD Nimbus",data:`${s.hddsuper} GB`}}),a("list-entry",{attrs:{title:"SSD Stratus",data:`${s.hddbamf} GB`}})],1):a("div",[a("list-entry",{attrs:{title:"CPU",data:`${s.cpu} vCore`}}),a("list-entry",{attrs:{title:"RAM",data:`${s.ram} MB`}}),a("list-entry",{attrs:{title:"SSD",data:`${s.hdd} GB`}})],1)],1)])}))],2),a("h3",[a("kbd",{staticClass:"alert-info d-flex",staticStyle:{"border-radius":"15px","font-family":"monospace","padding-right":"100%"}},[a("b-icon",{staticClass:"ml-1",attrs:{scale:"1",icon:"globe"}}),t._v("  Locations ")],1)]),a("b-row",[a("b-col",{staticClass:"my-1",attrs:{md:"4",sm:"4"}},[a("b-form-group",{staticClass:"mb-0"},[a("label",{staticClass:"d-inline-block text-left mr-50"},[t._v("Per page")]),a("b-form-select",{staticClass:"w-50",attrs:{id:"perPageSelect",size:"sm",options:t.appLocationOptions.pageOptions},model:{value:t.appLocationOptions.perPage,callback:function(a){t.$set(t.appLocationOptions,"perPage",a)},expression:"appLocationOptions.perPage"}})],1)],1),a("b-col",{staticClass:"my-1",attrs:{md:"8"}},[a("b-form-group",{staticClass:"mb-0",attrs:{label:"Filter","label-cols-sm":"1","label-align-sm":"right","label-for":"filterInput"}},[a("b-input-group",{attrs:{size:"sm"}},[a("b-form-input",{attrs:{id:"filterInput",type:"search",placeholder:"Type to Search"},model:{value:t.appLocationOptions.filterTwo,callback:function(a){t.$set(t.appLocationOptions,"filterTwo",a)},expression:"appLocationOptions.filterTwo"}}),a("b-input-group-append",[a("b-button",{attrs:{disabled:!t.appLocationOptions.filterTwo},on:{click:function(a){t.appLocationOptions.filterTwo=""}}},[t._v(" Clear ")])],1)],1)],1)],1),a("b-col",{attrs:{cols:"12"}},[a("b-table",{staticClass:"locations-table",attrs:{borderless:"","per-page":t.appLocationOptions.perPage,"current-page":t.appLocationOptions.currentPage,items:t.appLocations,fields:t.appLocationFields,"thead-class":"d-none",filter:t.appLocationOptions.filterTwo,"show-empty":"","sort-icon-left":"","empty-text":"No instances found.."},scopedSlots:t._u([{key:"cell(ip)",fn:function(e){return[a("div",{staticClass:"no-wrap"},[a("kbd",{staticClass:"alert-info",staticStyle:{"border-radius":"15px"}},[a("b-icon",{attrs:{scale:"1.1",icon:"hdd-network-fill"}})],1),t._v("  "),a("kbd",{staticClass:"alert-success no-wrap",staticStyle:{"border-radius":"15px"}},[a("b",[t._v("  "+t._s(e.item.ip)+"  ")])])])]}},{key:"cell(visit)",fn:function(s){return[a("div",{staticClass:"d-flex justify-content-end"},[a("b-button",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.top",value:"Visit App",expression:"'Visit App'",modifiers:{hover:!0,top:!0}}],staticClass:"mr-1",attrs:{size:"sm",pill:"",variant:"dark"},on:{click:function(a){t.openApp(e.item.name,s.item.ip.split(":")[0],t.getProperPort(e.item))}}},[a("b-icon",{attrs:{scale:"1",icon:"door-open"}}),t._v(" App ")],1),a("b-button",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.top",value:"Visit FluxNode",expression:"'Visit FluxNode'",modifiers:{hover:!0,top:!0}}],staticClass:"mr-0",attrs:{size:"sm",pill:"",variant:"outline-dark"},on:{click:function(a){t.openNodeFluxOS(s.item.ip.split(":")[0],s.item.ip.split(":")[1]?+s.item.ip.split(":")[1]-1:16126)}}},[a("b-icon",{attrs:{scale:"1",icon:"house-door-fill"}}),t._v(" FluxNode ")],1),t._v("   ")],1)]}}],null,!0)})],1),a("b-col",{attrs:{cols:"12"}},[a("b-pagination",{staticClass:"my-0 mt-1",attrs:{"total-rows":t.appLocationOptions.totalRows,"per-page":t.appLocationOptions.perPage,align:"center",size:"sm"},model:{value:t.appLocationOptions.currentPage,callback:function(a){t.$set(t.appLocationOptions,"currentPage",a)},expression:"appLocationOptions.currentPage"}})],1)],1)],1)]}},{key:"cell(Name)",fn:function(a){return[t._v(" "+t._s(t.getAppName(a.item.name))+" ")]}},{key:"cell(Description)",fn:function(a){return[t._v(" "+t._s(a.item.description)+" ")]}},{key:"cell(install)",fn:function(e){return[a("b-button",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.top",value:"Install App",expression:"'Install App'",modifiers:{hover:!0,top:!0}}],staticClass:"mr-0 no-wrap",attrs:{id:`install-app-${e.item.name}`,size:"sm",variant:"primary",pill:""}},[a("b-icon",{attrs:{scale:"0.9",icon:"layer-forward"}}),t._v(" Install ")],1),a("confirm-dialog",{attrs:{target:`install-app-${e.item.name}`,"confirm-button":"Install App"},on:{confirm:function(a){return t.installAppLocally(e.item.name)}}})]}}])})],1)],1)],1),a("b-card",[a("div",{staticClass:"mb-0"},[a("h3",[a("kbd",{staticClass:"alert-info d-flex no-wrap",staticStyle:{"border-radius":"15px","font-family":"monospace","padding-right":"100%"}},[t._v("  "),a("b-icon",{staticClass:"mr-1",attrs:{scale:"1",icon:"globe"}}),t._v(" Global Applications ")],1)])]),a("b-row",[a("b-col",{staticClass:"my-1",attrs:{md:"4",sm:"4"}},[a("b-form-group",{staticClass:"mb-0"},[a("label",{staticClass:"d-inline-block text-left mr-50"},[t._v("Per page")]),a("b-form-select",{staticClass:"w-50",attrs:{id:"perPageSelect",size:"sm",options:t.appLocationOptions.pageOptions},model:{value:t.tableconfig.globalAvailable.perPage,callback:function(a){t.$set(t.tableconfig.globalAvailable,"perPage",a)},expression:"tableconfig.globalAvailable.perPage"}})],1)],1),a("b-col",{staticClass:"my-1",attrs:{md:"8"}},[a("b-form-group",{staticClass:"mb-0 mt-0",attrs:{label:"Filter","label-cols-sm":"1","label-align-sm":"right","label-for":"filterInput"}},[a("b-input-group",{attrs:{size:"sm"}},[a("b-form-input",{attrs:{id:"filterInput",type:"search",placeholder:"Type to Search"},model:{value:t.tableconfig.globalAvailable.filter,callback:function(a){t.$set(t.tableconfig.globalAvailable,"filter",a)},expression:"tableconfig.globalAvailable.filter"}}),a("b-input-group-append",[a("b-button",{attrs:{disabled:!t.tableconfig.globalAvailable.filter},on:{click:function(a){t.tableconfig.globalAvailable.filter=""}}},[t._v(" Clear ")])],1)],1)],1)],1),a("b-col",{attrs:{cols:"12 mt-0"}},[a("b-table",{staticClass:"apps-globalAvailable-table",attrs:{striped:"",outlined:"",responsive:"","per-page":t.tableconfig.globalAvailable.perPage,"current-page":t.tableconfig.globalAvailable.currentPage,items:t.tableconfig.globalAvailable.apps,fields:t.isLoggedIn()?t.tableconfig.globalAvailable.loggedInFields:t.tableconfig.globalAvailable.fields,filter:t.tableconfig.globalAvailable.filter,"show-empty":"","sort-icon-left":"","empty-text":"No Flux Apps Globally Available"},scopedSlots:t._u([{key:"cell(name)",fn:function(e){return[a("div",{staticClass:"text-left"},[a("kbd",{staticClass:"alert-info no-wrap",staticStyle:{"border-radius":"15px","font-weight":"700 !important"}},[a("b-icon",{attrs:{scale:"1.2",icon:"app-indicator"}}),t._v("  "+t._s(e.item.name)+"  ")],1),a("br"),a("small",{staticStyle:{"font-size":"11px"}},[a("div",{staticClass:"d-flex align-items-center",staticStyle:{"margin-top":"3px"}},[t._v("   "),a("b-icon",{attrs:{scale:"1.4",icon:"speedometer2"}}),t._v("  "),a("kbd",{staticClass:"alert-success",staticStyle:{"border-radius":"15px"}},[t._v(" "),a("b",[t._v(t._s(t.getServiceUsageValue(1,e.item.name,e.item)))]),t._v(" ")]),t._v("   "),a("b-icon",{attrs:{scale:"1.4",icon:"cpu"}}),t._v("  "),a("kbd",{staticClass:"alert-success",staticStyle:{"border-radius":"15px"}},[t._v(" "),a("b",[t._v(t._s(t.getServiceUsageValue(0,e.item.name,e.item)))]),t._v(" ")]),t._v("   "),a("b-icon",{attrs:{scale:"1.4",icon:"hdd"}}),t._v("  "),a("kbd",{staticClass:"alert-success",staticStyle:{"border-radius":"15px"}},[t._v(" "),a("b",[t._v(t._s(t.getServiceUsageValue(2,e.item.name,e.item)))]),t._v(" ")]),t._v("  "),a("b-icon",{attrs:{scale:"1.2",icon:"geo-alt"}}),t._v(" "),a("kbd",{staticClass:"alert-warning",staticStyle:{"border-radius":"15px"}},[t._v(" "),a("b",[t._v(t._s(e.item.instances))]),t._v(" ")])],1),a("span",{staticClass:"no-wrap",class:{"red-text":t.isLessThanTwoDays(t.labelForExpire(e.item.expire,e.item.height))}},[t._v("   "),a("b-icon",{attrs:{scale:"1.2",icon:"hourglass-split"}}),t._v(" "+t._s(t.labelForExpire(e.item.expire,e.item.height))+"   ")],1)])])]}},{key:"cell(description)",fn:function(e){return[a("kbd",{staticClass:"text-secondary textarea",staticStyle:{float:"left","text-align":"left"}},[t._v(t._s(e.item.description))])]}},{key:"cell(show_details)",fn:function(e){return[a("a",{on:{click:function(a){return t.showLocations(e,t.tableconfig.globalAvailable.apps)}}},[e.detailsShowing?t._e():a("v-icon",{staticClass:"ml-1",attrs:{name:"chevron-down"}}),e.detailsShowing?a("v-icon",{staticClass:"ml-1",attrs:{name:"chevron-up"}}):t._e()],1)]}},{key:"row-details",fn:function(e){return[a("b-card",{staticClass:"mx-2"},[a("h3",{staticClass:"no-wrap"},[a("kbd",{staticClass:"alert-info d-flex",staticStyle:{"border-radius":"15px","font-family":"monospace","padding-right":"100%"}},[a("b-icon",{staticClass:"ml-1",attrs:{scale:"1",icon:"info-square"}}),t._v("  Application Information ")],1)]),a("div",{staticClass:"ml-1"},[e.item.owner?a("list-entry",{attrs:{title:"Owner",data:e.item.owner}}):t._e(),e.item.hash?a("list-entry",{attrs:{title:"Hash",data:e.item.hash}}):t._e(),e.item.version>=5?a("div",[e.item.contacts.length>0?a("list-entry",{attrs:{title:"Contacts",data:JSON.stringify(e.item.contacts)}}):t._e(),e.item.geolocation.length?a("div",t._l(e.item.geolocation,(function(e){return a("div",{key:e},[a("list-entry",{attrs:{title:"Geolocation",data:t.getGeolocation(e)}})],1)})),0):a("div",[a("list-entry",{attrs:{title:"Continent",data:"All"}}),a("list-entry",{attrs:{title:"Country",data:"All"}}),a("list-entry",{attrs:{title:"Region",data:"All"}})],1)],1):t._e(),e.item.instances?a("list-entry",{attrs:{title:"Instances",data:e.item.instances.toString()}}):t._e(),a("list-entry",{attrs:{title:"Expires in",data:t.labelForExpire(e.item.expire,e.item.height)}}),e.item?.nodes?.length>0?a("list-entry",{attrs:{title:"Enterprise Nodes",data:e.item.nodes?e.item.nodes.toString():"Not scoped"}}):t._e(),a("list-entry",{attrs:{title:"Static IP",data:e.item.staticip?"Yes, Running only on Static IP nodes":"No, Running on all nodes"}})],1),e.item.version<=3?a("div",[a("b-card",[a("list-entry",{attrs:{title:"Repository",data:e.item.repotag}}),a("list-entry",{attrs:{title:"Custom Domains",data:e.item.domains.toString()||"none"}}),a("list-entry",{attrs:{title:"Automatic Domains",data:t.constructAutomaticDomains(e.item.ports,void 0,e.item.name).toString()}}),a("list-entry",{attrs:{title:"Ports",data:e.item.ports.toString()}}),a("list-entry",{attrs:{title:"Container Ports",data:e.item.containerPorts.toString()}}),a("list-entry",{attrs:{title:"Container Data",data:e.item.containerData}}),a("list-entry",{attrs:{title:"Enviroment Parameters",data:e.item.enviromentParameters.length>0?e.item.enviromentParameters.toString():"none"}}),a("list-entry",{attrs:{title:"Commands",data:e.item.commands.length>0?e.item.commands.toString():"none"}}),e.item.tiered?a("div",[a("list-entry",{attrs:{title:"CPU Cumulus",data:`${e.item.cpubasic} vCore`}}),a("list-entry",{attrs:{title:"CPU Nimbus",data:`${e.item.cpusuper} vCore`}}),a("list-entry",{attrs:{title:"CPU Stratus",data:`${e.item.cpubamf} vCore`}}),a("list-entry",{attrs:{title:"RAM Cumulus",data:`${e.item.rambasic} MB`}}),a("list-entry",{attrs:{title:"RAM Nimbus",data:`${e.item.ramsuper} MB`}}),a("list-entry",{attrs:{title:"RAM Stratus",data:`${e.item.rambamf} MB`}}),a("list-entry",{attrs:{title:"SSD Cumulus",data:`${e.item.hddbasic} GB`}}),a("list-entry",{attrs:{title:"SSD Nimbus",data:`${e.item.hddsuper} GB`}}),a("list-entry",{attrs:{title:"SSD Stratus",data:`${e.item.hddbamf} GB`}})],1):a("div",[a("list-entry",{attrs:{title:"CPU",data:`${e.item.cpu} vCore`}}),a("list-entry",{attrs:{title:"RAM",data:`${e.item.ram} MB`}}),a("list-entry",{attrs:{title:"SSD",data:`${e.item.hdd} GB`}})],1)],1)],1):a("div",[a("h3",{staticClass:"no-wrap"},[a("kbd",{staticClass:"alert-info d-flex",staticStyle:{"border-radius":"15px","font-family":"monospace","padding-right":"100%"}},[a("b-icon",{staticClass:"ml-1",attrs:{scale:"1",icon:"box"}}),t._v("  Composition ")],1)]),t._l(e.item.compose,(function(s,i){return a("b-card",{key:i,staticClass:"mb-0"},[a("h3",{staticClass:"no-wrap"},[a("kbd",{staticClass:"alert-success d-flex",staticStyle:{"border-radius":"15px","font-family":"monospace","max-width":"500px"}},[a("b-icon",{staticClass:"ml-1",attrs:{scale:"1",icon:"menu-app-fill"}}),t._v("  "+t._s(s.name)+" ")],1)]),a("div",{staticClass:"ml-1"},[a("list-entry",{attrs:{title:"Name",data:s.name}}),a("list-entry",{attrs:{title:"Description",data:s.description}}),a("list-entry",{attrs:{title:"Repository",data:s.repotag}}),a("list-entry",{attrs:{title:"Repository Authentication",data:s.repoauth?"Content Encrypted":"Public"}}),a("list-entry",{attrs:{title:"Custom Domains",data:s.domains.toString()||"none"}}),a("list-entry",{attrs:{title:"Automatic Domains",data:t.constructAutomaticDomains(s.ports,s.name,e.item.name,i).toString()}}),a("list-entry",{attrs:{title:"Ports",data:s.ports.toString()}}),a("list-entry",{attrs:{title:"Container Ports",data:s.containerPorts.toString()}}),a("list-entry",{attrs:{title:"Container Data",data:s.containerData}}),a("list-entry",{attrs:{title:"Environment Parameters",data:s.environmentParameters.length>0?s.environmentParameters.toString():"none"}}),a("list-entry",{attrs:{title:"Commands",data:s.commands.length>0?s.commands.toString():"none"}}),a("list-entry",{attrs:{title:"Secret Environment Parameters",data:s.secrets?"Content Encrypted":"none"}}),s.tiered?a("div",[a("list-entry",{attrs:{title:"CPU Cumulus",data:`${s.cpubasic} vCore`}}),a("list-entry",{attrs:{title:"CPU Nimbus",data:`${s.cpusuper} vCore`}}),a("list-entry",{attrs:{title:"CPU Stratus",data:`${s.cpubamf} vCore`}}),a("list-entry",{attrs:{title:"RAM Cumulus",data:`${s.rambasic} MB`}}),a("list-entry",{attrs:{title:"RAM Nimbus",data:`${s.ramsuper} MB`}}),a("list-entry",{attrs:{title:"RAM Stratus",data:`${s.rambamf} MB`}}),a("list-entry",{attrs:{title:"SSD Cumulus",data:`${s.hddbasic} GB`}}),a("list-entry",{attrs:{title:"SSD Nimbus",data:`${s.hddsuper} GB`}}),a("list-entry",{attrs:{title:"SSD Stratus",data:`${s.hddbamf} GB`}})],1):a("div",[a("list-entry",{attrs:{title:"CPU",data:`${s.cpu} vCore`}}),a("list-entry",{attrs:{title:"RAM",data:`${s.ram} MB`}}),a("list-entry",{attrs:{title:"SSD",data:`${s.hdd} GB`}})],1)],1)])}))],2),a("h3",[a("kbd",{staticClass:"alert-info d-flex",staticStyle:{"border-radius":"15px","font-family":"monospace","padding-right":"100%"}},[a("b-icon",{staticClass:"ml-1",attrs:{scale:"1",icon:"globe"}}),t._v("  Locations ")],1)]),a("b-row",[a("b-col",{staticClass:"my-1",attrs:{md:"4",sm:"4"}},[a("b-form-group",{staticClass:"mb-0"},[a("label",{staticClass:"d-inline-block text-left mr-50"},[t._v("Per page")]),a("b-form-select",{staticClass:"w-50",attrs:{id:"perPageSelect",size:"sm",options:t.appLocationOptions.pageOptions},model:{value:t.appLocationOptions.perPage,callback:function(a){t.$set(t.appLocationOptions,"perPage",a)},expression:"appLocationOptions.perPage"}})],1)],1),a("b-col",{staticClass:"my-1",attrs:{md:"8"}},[a("b-form-group",{staticClass:"mb-0",attrs:{label:"Filter","label-cols-sm":"1","label-align-sm":"right","label-for":"filterInput"}},[a("b-input-group",{attrs:{size:"sm"}},[a("b-form-input",{attrs:{id:"filterInput",type:"search",placeholder:"Type to Search"},model:{value:t.appLocationOptions.filterTree,callback:function(a){t.$set(t.appLocationOptions,"filterTree",a)},expression:"appLocationOptions.filterTree"}}),a("b-input-group-append",[a("b-button",{attrs:{disabled:!t.appLocationOptions.filterTree},on:{click:function(a){t.appLocationOptions.filterTree=""}}},[t._v(" Clear ")])],1)],1)],1)],1),a("b-col",{attrs:{cols:"12"}},[a("b-table",{staticClass:"locations-table",attrs:{borderless:"","per-page":t.appLocationOptions.perPage,"current-page":t.appLocationOptions.currentPage,items:t.appLocations,fields:t.appLocationFields,"thead-class":"d-none",filter:t.appLocationOptions.filterTree,"show-empty":"","sort-icon-left":"","empty-text":"No instances found.."},scopedSlots:t._u([{key:"cell(ip)",fn:function(e){return[a("div",{staticClass:"no-wrap"},[a("kbd",{staticClass:"alert-info",staticStyle:{"border-radius":"15px"}},[a("b-icon",{attrs:{scale:"1.1",icon:"hdd-network-fill"}})],1),t._v("  "),a("kbd",{staticClass:"alert-success no-wrap",staticStyle:{"border-radius":"15px"}},[a("b",[t._v("  "+t._s(e.item.ip)+"  ")])])])]}},{key:"cell(visit)",fn:function(s){return[a("div",{staticClass:"d-flex justify-content-end"},[a("b-button",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.top",value:"Visit App",expression:"'Visit App'",modifiers:{hover:!0,top:!0}}],staticClass:"mr-1",attrs:{size:"sm",pill:"",variant:"dark"},on:{click:function(a){t.openApp(e.item.name,s.item.ip.split(":")[0],t.getProperPort(e.item))}}},[a("b-icon",{attrs:{scale:"1",icon:"door-open"}}),t._v(" App ")],1),a("b-button",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.top",value:"Visit FluxNode",expression:"'Visit FluxNode'",modifiers:{hover:!0,top:!0}}],staticClass:"mr-0",attrs:{size:"sm",pill:"",variant:"outline-dark"},on:{click:function(a){t.openNodeFluxOS(s.item.ip.split(":")[0],s.item.ip.split(":")[1]?+s.item.ip.split(":")[1]-1:16126)}}},[a("b-icon",{attrs:{scale:"1",icon:"house-door-fill"}}),t._v(" FluxNode ")],1),t._v("   ")],1)]}}],null,!0)})],1),a("b-col",{attrs:{cols:"12"}},[a("b-pagination",{staticClass:"my-0 mt-1",attrs:{"total-rows":t.appLocationOptions.totalRows,"per-page":t.appLocationOptions.perPage,align:"center",size:"sm"},model:{value:t.appLocationOptions.currentPage,callback:function(a){t.$set(t.appLocationOptions,"currentPage",a)},expression:"appLocationOptions.currentPage"}})],1)],1)],1)]}},{key:"cell(install)",fn:function(e){return[a("b-button",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.top",value:"Install App",expression:"'Install App'",modifiers:{hover:!0,top:!0}}],staticClass:"mr-0 no-wrap",attrs:{id:`install-app-${e.item.name}`,size:"sm",pill:"",variant:"primary"}},[a("b-icon",{attrs:{scale:"0.9",icon:"layer-forward"}}),t._v(" Install ")],1),a("confirm-dialog",{attrs:{target:`install-app-${e.item.name}`,"confirm-button":"Install App"},on:{confirm:function(a){return t.installAppLocally(e.item.name)}}})]}}])})],1),a("b-col",{attrs:{cols:"12"}},[a("b-pagination",{staticClass:"my-0",attrs:{"total-rows":t.tableconfig.globalAvailable.apps.length,"per-page":t.tableconfig.globalAvailable.perPage,align:"center",size:"sm"},model:{value:t.tableconfig.globalAvailable.currentPage,callback:function(a){t.$set(t.tableconfig.globalAvailable,"currentPage",a)},expression:"tableconfig.globalAvailable.currentPage"}})],1)],1)],1)],1)],1),a("b-tab",{attrs:{title:"My Local Apps"}},[a("b-overlay",{attrs:{show:t.tableconfig.installed.loading,variant:"transparent",blur:"5px"}},[a("b-card",[a("b-row",[a("b-col",{staticClass:"my-1",attrs:{md:"4",sm:"4"}},[a("b-form-group",{staticClass:"mb-0"},[a("label",{staticClass:"d-inline-block text-left mr-50"},[t._v("Per page")]),a("b-form-select",{staticClass:"w-50",attrs:{id:"perPageSelect",size:"sm",options:t.tableconfig.local.pageOptions},model:{value:t.tableconfig.local.perPage,callback:function(a){t.$set(t.tableconfig.local,"perPage",a)},expression:"tableconfig.local.perPage"}})],1)],1),a("b-col",{staticClass:"my-1",attrs:{md:"8"}},[a("b-form-group",{staticClass:"mb-0",attrs:{label:"Filter","label-cols-sm":"1","label-align-sm":"right","label-for":"filterInput"}},[a("b-input-group",{attrs:{size:"sm"}},[a("b-form-input",{attrs:{id:"filterInput",type:"search",placeholder:"Type to Search"},model:{value:t.tableconfig.local.filter,callback:function(a){t.$set(t.tableconfig.local,"filter",a)},expression:"tableconfig.local.filter"}}),a("b-input-group-append",[a("b-button",{attrs:{disabled:!t.tableconfig.local.filter},on:{click:function(a){t.tableconfig.local.filter=""}}},[t._v(" Clear ")])],1)],1)],1)],1),a("b-col",{attrs:{cols:"12"}},[a("b-table",{staticClass:"apps-local-table",attrs:{striped:"",outlined:"",responsive:"","per-page":t.tableconfig.local.perPage,"current-page":t.tableconfig.local.currentPage,items:t.tableconfig.local.apps,fields:t.tableconfig.local.fields,"sort-by":t.tableconfig.local.sortBy,"sort-desc":t.tableconfig.local.sortDesc,"sort-direction":t.tableconfig.local.sortDirection,filter:t.tableconfig.local.filter,"show-empty":"","sort-icon-left":"","empty-text":"No Local Apps owned."},on:{"update:sortBy":function(a){return t.$set(t.tableconfig.local,"sortBy",a)},"update:sort-by":function(a){return t.$set(t.tableconfig.local,"sortBy",a)},"update:sortDesc":function(a){return t.$set(t.tableconfig.local,"sortDesc",a)},"update:sort-desc":function(a){return t.$set(t.tableconfig.local,"sortDesc",a)},filtered:t.onFilteredLocal},scopedSlots:t._u([{key:"cell(name)",fn:function(e){return[a("div",{staticClass:"text-left"},[a("kbd",{staticClass:"alert-info no-wrap",staticStyle:{"border-radius":"15px","font-weight":"700 !important"}},[a("b-icon",{attrs:{scale:"1.2",icon:"app-indicator"}}),t._v("  "+t._s(e.item.name)+"  ")],1),a("br"),a("small",{staticStyle:{"font-size":"11px"}},[a("div",{staticClass:"d-flex align-items-center",staticStyle:{"margin-top":"3px"}},[t._v("   "),a("b-icon",{attrs:{scale:"1.4",icon:"speedometer2"}}),t._v("  "),a("kbd",{staticClass:"alert-success",staticStyle:{"border-radius":"15px"}},[t._v(" "),a("b",[t._v(t._s(t.getServiceUsageValue(1,e.item.name,e.item)))]),t._v(" ")]),t._v("   "),a("b-icon",{attrs:{scale:"1.4",icon:"cpu"}}),t._v("  "),a("kbd",{staticClass:"alert-success",staticStyle:{"border-radius":"15px"}},[t._v(" "),a("b",[t._v(t._s(t.getServiceUsageValue(0,e.item.name,e.item)))]),t._v(" ")]),t._v("   "),a("b-icon",{attrs:{scale:"1.4",icon:"hdd"}}),t._v("  "),a("kbd",{staticClass:"alert-success",staticStyle:{"border-radius":"15px"}},[t._v(" "),a("b",[t._v(t._s(t.getServiceUsageValue(2,e.item.name,e.item)))]),t._v(" ")]),t._v("  "),a("b-icon",{attrs:{scale:"1.2",icon:"geo-alt"}}),t._v(" "),a("kbd",{staticClass:"alert-warning",staticStyle:{"border-radius":"15px"}},[t._v(" "),a("b",[t._v(t._s(e.item.instances))]),t._v(" ")])],1),a("span",{staticClass:"no-wrap",class:{"red-text":t.isLessThanTwoDays(t.labelForExpire(e.item.expire,e.item.height))}},[t._v("   "),a("b-icon",{attrs:{scale:"1.2",icon:"hourglass-split"}}),t._v(" "+t._s(t.labelForExpire(e.item.expire,e.item.height))+"   ")],1)])])]}},{key:"cell(visit)",fn:function(e){return[a("b-button",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.top",value:"Visit App",expression:"'Visit App'",modifiers:{hover:!0,top:!0}}],staticClass:"mr-0 no-wrap hover-underline",attrs:{size:"sm",variant:"link"},on:{click:function(a){return t.openApp(e.item.name)}}},[a("b-icon",{attrs:{scale:"1",icon:"front"}}),t._v(" Visit ")],1)]}},{key:"cell(description)",fn:function(e){return[a("kbd",{staticClass:"text-secondary textarea",staticStyle:{float:"left","text-align":"left"}},[t._v(t._s(e.item.description))])]}},{key:"cell(state)",fn:function(e){return[a("kbd",{class:t.getBadgeClass(e.item.name),staticStyle:{"border-radius":"15px"}},[t._v(" "),a("b",[t._v(t._s(t.getStateByName(e.item.name)))]),t._v(" ")])]}},{key:"cell(show_details)",fn:function(e){return[a("a",{on:{click:function(a){return t.showLocations(e,t.tableconfig.local.apps)}}},[e.detailsShowing?t._e():a("v-icon",{staticClass:"ml-1",attrs:{name:"chevron-down"}}),e.detailsShowing?a("v-icon",{staticClass:"ml-1",attrs:{name:"chevron-up"}}):t._e()],1)]}},{key:"row-details",fn:function(e){return[a("b-card",{staticClass:"mx-2"},[a("h3",{staticClass:"no-wrap"},[a("kbd",{staticClass:"alert-info d-flex",staticStyle:{"border-radius":"15px","font-family":"monospace","padding-right":"100%"}},[a("b-icon",{staticClass:"ml-1",attrs:{scale:"1",icon:"info-square"}}),t._v("  Application Information ")],1)]),a("div",{staticClass:"ml-1"},[e.item.owner?a("list-entry",{attrs:{title:"Owner",data:e.item.owner}}):t._e(),e.item.hash?a("list-entry",{attrs:{title:"Hash",data:e.item.hash}}):t._e(),e.item.version>=5?a("div",[e.item.contacts.length>0?a("list-entry",{attrs:{title:"Contacts",data:JSON.stringify(e.item.contacts)}}):t._e(),e.item.geolocation.length?a("div",t._l(e.item.geolocation,(function(e){return a("div",{key:e},[a("list-entry",{attrs:{title:"Geolocation",data:t.getGeolocation(e)}})],1)})),0):a("div",[a("list-entry",{attrs:{title:"Continent",data:"All"}}),a("list-entry",{attrs:{title:"Country",data:"All"}}),a("list-entry",{attrs:{title:"Region",data:"All"}})],1)],1):t._e(),e.item.instances?a("list-entry",{attrs:{title:"Instances",data:e.item.instances.toString()}}):t._e(),a("list-entry",{attrs:{title:"Expires in",data:t.labelForExpire(e.item.expire,e.item.height)}}),e.item?.nodes?.length>0?a("list-entry",{attrs:{title:"Enterprise Nodes",data:e.item.nodes?e.item.nodes.toString():"Not scoped"}}):t._e(),a("list-entry",{attrs:{title:"Static IP",data:e.item.staticip?"Yes, Running only on Static IP nodes":"No, Running on all nodes"}})],1),e.item.version<=3?a("div",[a("b-card",[a("list-entry",{attrs:{title:"Repository",data:e.item.repotag}}),a("list-entry",{attrs:{title:"Custom Domains",data:e.item.domains.toString()||"none"}}),a("list-entry",{attrs:{title:"Automatic Domains",data:t.constructAutomaticDomains(e.item.ports,void 0,e.item.name).toString()}}),a("list-entry",{attrs:{title:"Ports",data:e.item.ports.toString()}}),a("list-entry",{attrs:{title:"Container Ports",data:e.item.containerPorts.toString()}}),a("list-entry",{attrs:{title:"Container Data",data:e.item.containerData}}),a("list-entry",{attrs:{title:"Enviroment Parameters",data:e.item.enviromentParameters.length>0?e.item.enviromentParameters.toString():"none"}}),a("list-entry",{attrs:{title:"Commands",data:e.item.commands.length>0?e.item.commands.toString():"none"}}),e.item.tiered?a("div",[a("list-entry",{attrs:{title:"CPU Cumulus",data:`${e.item.cpubasic} vCore`}}),a("list-entry",{attrs:{title:"CPU Nimbus",data:`${e.item.cpusuper} vCore`}}),a("list-entry",{attrs:{title:"CPU Stratus",data:`${e.item.cpubamf} vCore`}}),a("list-entry",{attrs:{title:"RAM Cumulus",data:`${e.item.rambasic} MB`}}),a("list-entry",{attrs:{title:"RAM Nimbus",data:`${e.item.ramsuper} MB`}}),a("list-entry",{attrs:{title:"RAM Stratus",data:`${e.item.rambamf} MB`}}),a("list-entry",{attrs:{title:"SSD Cumulus",data:`${e.item.hddbasic} GB`}}),a("list-entry",{attrs:{title:"SSD Nimbus",data:`${e.item.hddsuper} GB`}}),a("list-entry",{attrs:{title:"SSD Stratus",data:`${e.item.hddbamf} GB`}})],1):a("div",[a("list-entry",{attrs:{title:"CPU",data:`${e.item.cpu} vCore`}}),a("list-entry",{attrs:{title:"RAM",data:`${e.item.ram} MB`}}),a("list-entry",{attrs:{title:"SSD",data:`${e.item.hdd} GB`}})],1)],1)],1):a("div",[a("h3",{staticClass:"no-wrap"},[a("kbd",{staticClass:"alert-info d-flex",staticStyle:{"border-radius":"15px","font-family":"monospace","padding-right":"100%"}},[a("b-icon",{staticClass:"ml-1",attrs:{scale:"1",icon:"box"}}),t._v("  Composition ")],1)]),t._l(e.item.compose,(function(s,i){return a("b-card",{key:i,staticClass:"mb-0"},[a("h3",{staticClass:"no-wrap"},[a("kbd",{staticClass:"alert-success d-flex",staticStyle:{"border-radius":"15px","font-family":"monospace","max-width":"500px"}},[a("b-icon",{staticClass:"ml-1",attrs:{scale:"1",icon:"menu-app-fill"}}),t._v("  "+t._s(s.name)+" ")],1)]),a("div",{staticClass:"ml-1"},[a("list-entry",{attrs:{title:"Name",data:s.name}}),a("list-entry",{attrs:{title:"Description",data:s.description}}),a("list-entry",{attrs:{title:"Repository",data:s.repotag}}),a("list-entry",{attrs:{title:"Repository Authentication",data:s.repoauth?"Content Encrypted":"Public"}}),a("list-entry",{attrs:{title:"Custom Domains",data:s.domains.toString()||"none"}}),a("list-entry",{attrs:{title:"Automatic Domains",data:t.constructAutomaticDomains(s.ports,s.name,e.item.name,i).toString()}}),a("list-entry",{attrs:{title:"Ports",data:s.ports.toString()}}),a("list-entry",{attrs:{title:"Container Ports",data:s.containerPorts.toString()}}),a("list-entry",{attrs:{title:"Container Data",data:s.containerData}}),a("list-entry",{attrs:{title:"Environment Parameters",data:s.environmentParameters.length>0?s.environmentParameters.toString():"none"}}),a("list-entry",{attrs:{title:"Commands",data:s.commands.length>0?s.commands.toString():"none"}}),a("list-entry",{attrs:{title:"Secret Environment Parameters",data:s.secrets?"Content Encrypted":"none"}}),s.tiered?a("div",[a("list-entry",{attrs:{title:"CPU Cumulus",data:`${s.cpubasic} vCore`}}),a("list-entry",{attrs:{title:"CPU Nimbus",data:`${s.cpusuper} vCore`}}),a("list-entry",{attrs:{title:"CPU Stratus",data:`${s.cpubamf} vCore`}}),a("list-entry",{attrs:{title:"RAM Cumulus",data:`${s.rambasic} MB`}}),a("list-entry",{attrs:{title:"RAM Nimbus",data:`${s.ramsuper} MB`}}),a("list-entry",{attrs:{title:"RAM Stratus",data:`${s.rambamf} MB`}}),a("list-entry",{attrs:{title:"SSD Cumulus",data:`${s.hddbasic} GB`}}),a("list-entry",{attrs:{title:"SSD Nimbus",data:`${s.hddsuper} GB`}}),a("list-entry",{attrs:{title:"SSD Stratus",data:`${s.hddbamf} GB`}})],1):a("div",[a("list-entry",{attrs:{title:"CPU",data:`${s.cpu} vCore`}}),a("list-entry",{attrs:{title:"RAM",data:`${s.ram} MB`}}),a("list-entry",{attrs:{title:"SSD",data:`${s.hdd} GB`}})],1)],1)])}))],2),a("h3",[a("kbd",{staticClass:"alert-info d-flex",staticStyle:{"border-radius":"15px","font-family":"monospace","padding-right":"100%"}},[a("b-icon",{staticClass:"ml-1",attrs:{scale:"1",icon:"globe"}}),t._v("  Locations ")],1)]),a("b-row",[a("b-col",{staticClass:"my-1",attrs:{md:"4",sm:"4"}},[a("b-form-group",{staticClass:"mb-0"},[a("label",{staticClass:"d-inline-block text-left mr-50"},[t._v("Per page")]),a("b-form-select",{staticClass:"w-50",attrs:{id:"perPageSelect",size:"sm",options:t.appLocationOptions.pageOptions},model:{value:t.appLocationOptions.perPage,callback:function(a){t.$set(t.appLocationOptions,"perPage",a)},expression:"appLocationOptions.perPage"}})],1)],1),a("b-col",{staticClass:"my-1",attrs:{md:"8"}},[a("b-form-group",{staticClass:"mb-0",attrs:{label:"Filter","label-cols-sm":"1","label-align-sm":"right","label-for":"filterInput"}},[a("b-input-group",{attrs:{size:"sm"}},[a("b-form-input",{attrs:{id:"filterInput",type:"search",placeholder:"Type to Search"},model:{value:t.appLocationOptions.filterTree,callback:function(a){t.$set(t.appLocationOptions,"filterTree",a)},expression:"appLocationOptions.filterTree"}}),a("b-input-group-append",[a("b-button",{attrs:{disabled:!t.appLocationOptions.filterTree},on:{click:function(a){t.appLocationOptions.filterTree=""}}},[t._v(" Clear ")])],1)],1)],1)],1),a("b-col",{attrs:{cols:"12"}},[a("b-table",{staticClass:"locations-table",attrs:{borderless:"","per-page":t.appLocationOptions.perPage,"current-page":t.appLocationOptions.currentPage,items:t.appLocations,fields:t.appLocationFields,"thead-class":"d-none",filter:t.appLocationOptions.filterTree,"show-empty":"","sort-icon-left":"","empty-text":"No instances found.."},scopedSlots:t._u([{key:"cell(ip)",fn:function(e){return[a("div",{staticClass:"no-wrap"},[a("kbd",{staticClass:"alert-info",staticStyle:{"border-radius":"15px"}},[a("b-icon",{attrs:{scale:"1.1",icon:"hdd-network-fill"}})],1),t._v("  "),a("kbd",{staticClass:"alert-success no-wrap",staticStyle:{"border-radius":"15px"}},[a("b",[t._v("  "+t._s(e.item.ip)+"  ")])])])]}},{key:"cell(visit)",fn:function(s){return[a("div",{staticClass:"d-flex justify-content-end"},[a("b-button",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.top",value:"Visit App",expression:"'Visit App'",modifiers:{hover:!0,top:!0}}],staticClass:"mr-1",attrs:{size:"sm",pill:"",variant:"dark"},on:{click:function(a){t.openApp(e.item.name,s.item.ip.split(":")[0],t.getProperPort(e.item))}}},[a("b-icon",{attrs:{scale:"1",icon:"door-open"}}),t._v(" App ")],1),a("b-button",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.top",value:"Visit FluxNode",expression:"'Visit FluxNode'",modifiers:{hover:!0,top:!0}}],staticClass:"mr-0",attrs:{size:"sm",pill:"",variant:"outline-dark"},on:{click:function(a){t.openNodeFluxOS(s.item.ip.split(":")[0],s.item.ip.split(":")[1]?+s.item.ip.split(":")[1]-1:16126)}}},[a("b-icon",{attrs:{scale:"1",icon:"house-door-fill"}}),t._v(" FluxNode ")],1),t._v("   ")],1)]}}],null,!0)})],1),a("b-col",{attrs:{cols:"12"}},[a("b-pagination",{staticClass:"my-0 mt-1",attrs:{"total-rows":t.appLocationOptions.totalRows,"per-page":t.appLocationOptions.perPage,align:"center",size:"sm"},model:{value:t.appLocationOptions.currentPage,callback:function(a){t.$set(t.appLocationOptions,"currentPage",a)},expression:"appLocationOptions.currentPage"}})],1)],1)],1)]}},{key:"cell(Name)",fn:function(a){return[t._v(" "+t._s(t.getAppName(a.item.name))+" ")]}},{key:"cell(Description)",fn:function(a){return[t._v(" "+t._s(a.item.description)+" ")]}},{key:"cell(actions)",fn:function(e){return[a("b-button-toolbar",[a("b-button-group",{attrs:{size:"sm"}},[a("b-button",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.top",value:"Start App",expression:"'Start App'",modifiers:{hover:!0,top:!0}}],staticClass:"no-wrap",attrs:{id:`start-local-app-${e.item.name}`,disabled:t.isAppInList(e.item.name,t.tableconfig.running.apps),size:"sm",variant:"outline-dark"}},[a("b-icon",{staticClass:"icon-style-start",class:{"disable-hover":t.isAppInList(e.item.name,t.tableconfig.running.apps)},attrs:{scale:"1.2",icon:"play-fill"}})],1),a("confirm-dialog",{attrs:{target:`start-local-app-${e.item.name}`,"confirm-button":"Start App"},on:{confirm:function(a){return t.startApp(e.item.name)}}}),a("b-button",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.top",value:"Stop App",expression:"'Stop App'",modifiers:{hover:!0,top:!0}}],staticClass:"mr-0",attrs:{id:`stop-local-app-${e.item.name}`,size:"sm",variant:"outline-dark",disabled:!t.isAppInList(e.item.name,t.tableconfig.running.apps)}},[a("b-icon",{staticClass:"icon-style-stop",class:{"disable-hover":!t.isAppInList(e.item.name,t.tableconfig.running.apps)},attrs:{scale:"1.2",icon:"stop-circle"}})],1),a("confirm-dialog",{attrs:{target:`stop-local-app-${e.item.name}`,"confirm-button":"Stop App"},on:{confirm:function(a){return t.stopApp(e.item.name)}}}),a("b-button",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.top",value:"Restart App",expression:"'Restart App'",modifiers:{hover:!0,top:!0}}],staticClass:"no-wrap",attrs:{id:`restart-local-app-${e.item.name}`,size:"sm",variant:"outline-dark"}},[a("b-icon",{staticClass:"icon-style-restart",attrs:{scale:"1",icon:"bootstrap-reboot"}})],1),a("confirm-dialog",{attrs:{target:`restart-local-app-${e.item.name}`,"confirm-button":"Restart App"},on:{confirm:function(a){return t.restartApp(e.item.name)}}}),a("b-button",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.top",value:"Remove App",expression:"'Remove App'",modifiers:{hover:!0,top:!0}}],staticClass:"no-wrap",attrs:{id:`remove-local-app-${e.item.name}`,size:"sm",variant:"outline-dark"}},[a("b-icon",{staticClass:"icon-style-trash",attrs:{scale:"1",icon:"trash"}})],1),a("confirm-dialog",{attrs:{target:`remove-local-app-${e.item.name}`,"confirm-button":"Remove App"},on:{confirm:function(a){return t.removeApp(e.item.name)}}}),a("b-button",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.top",value:"Manage App",expression:"'Manage App'",modifiers:{hover:!0,top:!0}}],staticClass:"no-wrap",attrs:{id:`manage-local-app-${e.item.name}`,size:"sm",variant:"outline-dark"}},[a("b-icon",{staticClass:"icon-style-gear",attrs:{scale:"1",icon:"gear"}})],1),a("confirm-dialog",{attrs:{target:`manage-local-app-${e.item.name}`,"confirm-button":"Manage App"},on:{confirm:function(a){return t.openAppManagement(e.item.name)}}})],1)],1)]}}])})],1),a("b-col",{attrs:{cols:"12"}},[a("div",{staticClass:"d-flex justify-content-between align-items-center"},[a("div",[t.isLoggedIn()?a("div",{staticClass:"d-inline ml-2"},[a("b-icon",{attrs:{scale:"1.4",icon:"layers"}}),a("b",[t._v("  "),a("kbd",{staticClass:"alert-success",staticStyle:{"border-radius":"15px"}},[t._v(" "+t._s(t.tableconfig.local.totalRows)+" ")])])],1):t._e()]),a("div",{staticClass:"text-center flex-grow-1"},[a("b-pagination",{staticClass:"my-0",attrs:{"total-rows":t.tableconfig.local.totalRows,"per-page":t.tableconfig.local.perPage,align:"center",size:"sm"},model:{value:t.tableconfig.local.currentPage,callback:function(a){t.$set(t.tableconfig.local,"currentPage",a)},expression:"tableconfig.local.currentPage"}})],1)])])],1)],1)],1)],1)],1),t.output.length>0?a("div",{staticClass:"actionCenter"},[a("br"),a("b-row",[a("b-col",{attrs:{cols:"9"}},[a("b-form-textarea",{ref:"outputTextarea",staticClass:"mt-1",attrs:{plaintext:"","no-resize":"",rows:t.output.length+1,value:t.stringOutput()}})],1),t.downloadOutputReturned?a("b-col",{attrs:{cols:"3"}},[a("h3",[t._v("Downloads")]),t._l(t.downloadOutput,(function(e){return a("div",{key:e.id},[a("h4",[t._v(" "+t._s(e.id))]),a("b-progress",{attrs:{value:e.detail.current/e.detail.total*100,max:"100",striped:"",height:"1rem",variant:e.variant}}),a("br")],1)}))],2):t._e()],1)],1):t._e()],1),t.managedApplication?a("div",[a("management",{attrs:{"app-name":t.managedApplication,global:!1,"installed-apps":t.tableconfig.installed.apps},on:{back:function(a){return t.clearManagedApplication()}}})],1):t._e()])},i=[],o=(e(70560),e(58887)),n=e(51015),l=e(16521),r=e(50725),c=e(86855),p=e(26253),d=e(15193),m=e(41984),u=e(45969),b=e(46709),g=e(22183),h=e(8051),f=e(4060),v=e(22418),y=e(333),C=e(66126),S=e(10962),w=e(45752),_=e(20266),A=e(20629),x=e(34547),k=e(87156),$=e(51748),P=e(49371),L=e(43672),N=e(27616);const O=e(58971),D=e(80129),B=e(63005),R=e(57306),I={components:{BTabs:o.M,BTab:n.L,BTable:l.h,BCol:r.l,BCard:c._,BRow:p.T,BButton:d.T,BButtonToolbar:m.r,BButtonGroup:u.a,BFormGroup:b.x,BFormInput:g.e,BFormSelect:h.K,BInputGroup:f.w,BInputGroupAppend:v.B,BFormTextarea:y.y,BOverlay:C.X,BPagination:S.c,BProgress:w.D,ConfirmDialog:k.Z,ListEntry:$.Z,Management:P.Z,ToastificationContent:x.Z},directives:{Ripple:_.Z},data(){return{stateAppsNames:[],tableKey:0,timeoptions:B,output:[],downloading:!1,downloadOutputReturned:!1,downloadOutput:{},managedApplication:"",daemonBlockCount:-1,tableconfig:{running:{apps:[],status:"",loggedInFields:[{key:"show_details",label:""},{key:"name",label:"Name",sortable:!0},{key:"description",label:"Description"},{key:"visit",label:"Visit",thStyle:{width:"3%"}},{key:"actions",label:"Actions",thStyle:{width:"15%"}}],fields:[{key:"show_details",label:""},{key:"name",label:"Name",sortable:!0},{key:"description",label:"Description"},{key:"visit",label:"Visit",thStyle:{width:"3%"}}],loading:!0},installed:{apps:[],status:"",loggedInFields:[{key:"show_details",label:""},{key:"name",label:"Name",sortable:!0},{key:"state",label:"State",class:"text-center",thStyle:{width:"2%"}},{key:"description",label:"Description",class:"text-left"},{key:"actions",label:"",thStyle:{width:"12%"}},{key:"visit",label:"",class:"text-center",thStyle:{width:"2%"}}],fields:[{key:"show_details",label:""},{key:"name",label:"Name",sortable:!0},{key:"description",label:"Description"},{key:"visit",label:"",class:"text-center",thStyle:{width:"3%"}}],loading:!0},available:{apps:[],status:"",loggedInFields:[{key:"show_details",label:""},{key:"name",label:"Name",sortable:!0,thStyle:{width:"18%"}},{key:"description",label:"Description",thStyle:{width:"75%"}},{key:"install",label:"",thStyle:{width:"5%"}}],fields:[{key:"show_details",label:""},{key:"name",label:"Name",sortable:!0},{key:"description",label:"Description",thStyle:{width:"80%"}}],loading:!0},globalAvailable:{apps:[],status:"",loggedInFields:[{key:"show_details",label:""},{key:"name",label:"Name",sortable:!0,thStyle:{width:"18%"}},{key:"description",label:"Description",thStyle:{width:"75%"}},{key:"install",label:"",thStyle:{width:"5%"}}],fields:[{key:"show_details",label:""},{key:"name",label:"Name",sortable:!0},{key:"description",label:"Description",thStyle:{width:"80%"}}],loading:!0,perPage:50,pageOptions:[5,10,25,50,100],filter:"",filterOn:[],currentPage:1,totalRows:1},local:{apps:[],status:"",fields:[{key:"show_details",label:""},{key:"name",label:"Name",sortable:!0},{key:"description",label:"Description"},{key:"actions",label:"",thStyle:{width:"15%"}},{key:"visit",label:"",class:"text-center",thStyle:{width:"3%"}}],perPage:5,pageOptions:[5,10,25,50,100],sortBy:"",sortDesc:!1,sortDirection:"asc",connectedPeers:[],filter:"",filterOn:[],currentPage:1,totalRows:1}},tier:"",appLocations:[],appLocationFields:[{key:"ip",label:"IP Address",sortable:!0},{key:"visit",label:""}],appLocationOptions:{perPage:5,pageOptions:[5,10,25,50,100],currentPage:1,totalRows:1,filterOne:"",filterTwo:"",filterTree:""},callResponse:{status:"",data:""}}},computed:{...(0,A.rn)("flux",["config","userconfig","privilege"]),isApplicationInstalledLocally(){if(this.tableconfig.installed.apps){const t=this.tableconfig.installed.apps.find((t=>t.name===this.managedApplication));return!!t}return!1}},mounted(){this.getFluxNodeStatus(),this.appsGetAvailableApps(),this.appsGetListRunningApps(),this.appsGetInstalledApps(),this.appsGetListGlobalApps();const{hostname:t,port:a}=window.location,e=/[A-Za-z]/g;if(!t.match(e)&&("string"===typeof t&&this.$store.commit("flux/setUserIp",t),+a>16100)){const t=+a+1;this.$store.commit("flux/setFluxPort",t)}this.getDaemonBlockCount()},methods:{openNodeFluxOS(t,a){if(console.log(t,a),a&&t){const e=t,s=a,i=`http://${e}:${s}`;this.openSite(i)}else this.showToast("danger","Unable to open FluxOS :(")},tabChanged(){this.tableconfig.installed.apps.forEach((t=>{this.$set(t,"_showDetails",!1)})),this.tableconfig.available.apps.forEach((t=>{this.$set(t,"_showDetails",!1)})),this.tableconfig.globalAvailable.apps.forEach((t=>{this.$set(t,"_showDetails",!1)})),this.appLocations=[],!1===this.downloading&&(this.output=[])},isLessThanTwoDays(t){const a=t?.split(",").map((t=>t.trim()));let e=0,s=0,i=0;for(const n of a)n.includes("days")?e=parseInt(n,10):n.includes("hours")?s=parseInt(n,10):n.includes("minutes")&&(i=parseInt(n,10));const o=24*e*60+60*s+i;return o<2880},getServiceUsageValue(t,a,e){if("undefined"===typeof e?.compose)return this.usage=[+e.ram,+e.cpu,+e.hdd],this.usage[t];const s=this.getServiceUsage(a,e.compose);return s[t]},getServiceUsage(t,a){const[e,s,i]=a.reduce(((t,a)=>{const e=+a.ram||0,s=+a.cpu||0,i=+a.hdd||0;return t[0]+=e,t[1]+=s,t[2]+=i,t}),[0,0,0]);return[e,s,i]},getBadgeClass(t){const a=this.getStateByName(t);return{"alert-success":"running"===a,"alert-danger":"stopped"===a}},getStateByName(t){const a=this.stateAppsNames.filter((a=>a.name===t));return a?.length>0?a[0].state:"stopped"},isAppInList(t,a){return 0!==a?.length&&a.some((a=>a.name===t))},minutesToString(t){let a=60*t;const e={day:86400,hour:3600,minute:60,second:1},s=[];for(const i in e){const t=Math.floor(a/e[i]);1===t&&s.push(` ${t} ${i}`),t>=2&&s.push(` ${t} ${i}s`),a%=e[i]}return s},labelForExpire(t,a){if(-1===this.daemonBlockCount)return"Not possible to calculate expiration";const e=t||22e3,s=a+e-this.daemonBlockCount;if(s<1)return"Application Expired";const i=2*s,o=this.minutesToString(i);return o.length>2?`${o[0]}, ${o[1]}, ${o[2]}`:o.length>1?`${o[0]}, ${o[1]}`:`${o[0]}`},async appsGetListGlobalApps(){this.tableconfig.globalAvailable.loading=!0,console.log("CALL1");const t=await L.Z.globalAppSpecifications();console.log(t),console.log("CALL2");const a=t.data.data.sort(((t,a)=>t.name.toLowerCase()>a.name.toLowerCase()?1:-1));console.log("CALL3"),this.tableconfig.globalAvailable.apps=a,this.tableconfig.globalAvailable.loading=!1,this.tableconfig.globalAvailable.status=t.data.status},async getDaemonBlockCount(){const t=await N.Z.getBlockCount();"success"===t.data.status&&(this.daemonBlockCount=t.data.data)},async getFluxNodeStatus(){const t=await N.Z.getFluxNodeStatus();"success"===t.data.status&&(this.tier=t.data.data.tier)},async appsGetInstalledApps(){this.tableconfig.installed.loading=!0;const t=await L.Z.installedApps();this.tableconfig.installed.status=t.data.status,this.tableconfig.installed.apps=t.data.data,this.tableconfig.installed.loading=!1;const a=localStorage.getItem("zelidauth"),e=D.parse(a);this.tableconfig.local.apps=this.tableconfig.installed.apps.filter((t=>t.owner===e.zelid)),this.tableconfig.local.totalRows=this.tableconfig.local.apps.length},async appsGetListRunningApps(t=0){this.tableconfig.running.loading=!0;const a=this;setTimeout((async()=>{const t=await L.Z.listRunningApps(),e=t.data.data,s=[],i=[];a.stateAppsNames=[],e.forEach((t=>{const e=t.Names[0].startsWith("/flux")?t.Names[0].slice(5):t.Names[0].slice(4);if(e.includes("_")){if(s.push(e.split("_")[1]),!e.includes("watchtower")){const s={name:e.split("_")[1],state:t.State};a.stateAppsNames.push(s)}}else if(s.push(e),!e.includes("watchtower")){const s={name:e,state:t.State};a.stateAppsNames.push(s)}}));const o=[...new Set(s)];for(const a of o){const t=await L.Z.getAppSpecifics(a);"success"===t.data.status&&i.push(t.data.data)}a.tableconfig.running.status=t.data.status,a.tableconfig.running.apps=i,a.tableconfig.running.loading=!1,a.tableconfig.running.status=t.data.data}),t)},async appsGetAvailableApps(){this.tableconfig.available.loading=!0;const t=await L.Z.availableApps();this.tableconfig.available.status=t.data.status,this.tableconfig.available.apps=t.data.data,this.tableconfig.available.loading=!1},openApp(t,a,e){if(e&&a){const t=`http://${a}:${e}`;this.openSite(t)}else{const a=this.installedApp(t),e=O.get("backendURL")||`http://${this.userconfig.externalip}:${this.config.apiPort}`,s=e.split(":")[1].split("//")[1],i=a.port||a.ports?a?.ports[0]:a?.compose[0].ports[0];if(""===i)return void this.showToast("danger","Unable to open App :(, App does not have a port.");const o=`http://${s}:${i}`;this.openSite(o)}},getProperPort(t){if(t.port)return t.port;if(t.ports)return t.ports[0];for(let a=0;aa.name===t))},openSite(t){const a=window.open(t,"_blank");a.focus()},async stopApp(t){this.output=[],this.showToast("warning",`Stopping ${this.getAppName(t)}`);const a=localStorage.getItem("zelidauth"),e=await L.Z.stopApp(a,t);"success"===e.data.status?this.showToast("success",e.data.data.message||e.data.data):this.showToast("danger",e.data.data.message||e.data.data),this.appsGetListRunningApps(5e3)},async startApp(t){this.output=[],this.showToast("warning",`Starting ${this.getAppName(t)}`);const a=localStorage.getItem("zelidauth"),e=await L.Z.startApp(a,t);"success"===e.data.status?this.showToast("success",e.data.data.message||e.data.data):this.showToast("danger",e.data.data.message||e.data.data),this.appsGetListRunningApps(5e3)},async restartApp(t){this.output=[],this.showToast("warning",`Restarting ${this.getAppName(t)}`);const a=localStorage.getItem("zelidauth"),e=await L.Z.restartApp(a,t);"success"===e.data.status?this.showToast("success",e.data.data.message||e.data.data):this.showToast("danger",e.data.data.message||e.data.data),this.appsGetListRunningApps(5e3)},async pauseApp(t){this.output=[],this.showToast("warning",`Pausing ${this.getAppName(t)}`);const a=localStorage.getItem("zelidauth"),e=await L.Z.pauseApp(a,t);"success"===e.data.status?this.showToast("success",e.data.data.message||e.data.data):this.showToast("danger",e.data.data.message||e.data.data)},async unpauseApp(t){this.output=[],this.showToast("warning",`Unpausing ${this.getAppName(t)}`);const a=localStorage.getItem("zelidauth"),e=await L.Z.unpauseApp(a,t);"success"===e.data.status?this.showToast("success",e.data.data.message||e.data.data):this.showToast("danger",e.data.data.message||e.data.data)},redeployAppSoft(t){this.redeployApp(t,!1)},redeployAppHard(t){this.redeployApp(t,!0)},async redeployApp(t,a){const e=this;this.output=[],this.downloadOutput={},this.downloadOutputReturned=!1,this.showToast("warning",`Redeploying ${this.getAppName(t)}`);const s=localStorage.getItem("zelidauth"),i={headers:{zelidauth:s},onDownloadProgress(t){console.log(t.event.target.response),e.output=JSON.parse(`[${t.event.target.response.replace(/}{/g,"},{")}]`)}},o=await L.Z.justAPI().get(`/apps/redeploy/${t}/${a}`,i);"error"===o.data.status?this.showToast("danger",o.data.data.message||o.data.data):(this.output=JSON.parse(`[${o.data.replace(/}{/g,"},{")}]`),"error"===this.output[this.output.length-1].status?this.showToast("danger",this.output[this.output.length-1].data.message||this.output[this.output.length-1].data):"warning"===this.output[this.output.length-1].status?this.showToast("warning",this.output[this.output.length-1].data.message||this.output[this.output.length-1].data):this.showToast("success",this.output[this.output.length-1].data.message||this.output[this.output.length-1].data))},async removeApp(t){const a=this.getAppName(t),e=this;this.output=[],this.showToast("warning",`Removing ${a}`);const s=localStorage.getItem("zelidauth"),i={headers:{zelidauth:s},onDownloadProgress(t){console.log(t.event.target.response),e.output=JSON.parse(`[${t.event.target.response.replace(/}{/g,"},{")}]`)}},o=await L.Z.justAPI().get(`/apps/appremove/${t}`,i);"error"===o.data.status?this.showToast("danger",o.data.data.message||o.data.data):(this.output=JSON.parse(`[${o.data.replace(/}{/g,"},{")}]`),"error"===this.output[this.output.length-1].status?this.showToast("danger",this.output[this.output.length-1].data.message||this.output[this.output.length-1].data):"warning"===this.output[this.output.length-1].status?this.showToast("warning",this.output[this.output.length-1].data.message||this.output[this.output.length-1].data):this.showToast("success",this.output[this.output.length-1].data.message||this.output[this.output.length-1].data),setTimeout((()=>{this.appsGetInstalledApps(),this.appsGetListRunningApps(),e.managedApplication=""}),5e3))},async installAppLocally(t){const a=this.getAppName(t),e=this;this.output=[],this.downloadOutput={},this.downloadOutputReturned=!1,this.downloading=!0,this.showToast("warning",`Installing ${a}`);const s=localStorage.getItem("zelidauth"),i={headers:{zelidauth:s},onDownloadProgress(t){console.log(t.event.target.response),e.output=JSON.parse(`[${t.event.target.response.replace(/}{/g,"},{")}]`)}},o=await L.Z.justAPI().get(`/apps/installapplocally/${t}`,i);if("error"===o.data.status)this.showToast("danger",o.data.data.message||o.data.data);else{console.log(o),this.output=JSON.parse(`[${o.data.replace(/}{/g,"},{")}]`),console.log(this.output);for(let t=0;t{this.$set(t,"_showDetails",!1)})),this.$nextTick((()=>{t.toggleDetails(),this.loadLocations(t)})))},async loadLocations(t){console.log(t),this.appLocations=[];const a=await L.Z.getAppLocation(t.item.name).catch((t=>{this.showToast("danger",t.message||t)}));if(console.log(a),"success"===a.data.status){const t=a.data.data;this.appLocations=t,this.appLocationOptions.totalRows=this.appLocations.length}},openAppManagement(t){const a=this.getAppName(t);this.managedApplication=a},clearManagedApplication(){this.managedApplication="",this.appsGetInstalledApps(),this.appsGetListRunningApps()},onFilteredLocal(t){this.tableconfig.local.totalRows=t.length,this.tableconfig.local.currentPage=1},stringOutput(){let t="";return this.output.forEach((a=>{"success"===a.status?t+=`${a.data.message||a.data}\r\n`:"Downloading"===a.status?(this.downloadOutputReturned=!0,this.downloadOutput[a.id]={id:a.id,detail:a.progressDetail,variant:"danger"}):"Verifying Checksum"===a.status?(this.downloadOutputReturned=!0,this.downloadOutput[a.id]={id:a.id,detail:{current:1,total:1},variant:"warning"}):"Download complete"===a.status?(this.downloadOutputReturned=!0,this.downloadOutput[a.id]={id:a.id,detail:{current:1,total:1},variant:"info"}):"Extracting"===a.status?(this.downloadOutputReturned=!0,this.downloadOutput[a.id]={id:a.id,detail:a.progressDetail,variant:"primary"}):"Pull complete"===a.status?(this.downloadOutputReturned=!0,this.downloadOutput[a.id]={id:a.id,detail:{current:1,total:1},variant:"success"}):"error"===a.status?t+=`Error: ${JSON.stringify(a.data)}\r\n`:t+=`${a.status}\r\n`})),t},showToast(t,a,e="InfoIcon"){this.$toast({component:x.Z,props:{title:a,icon:e,variant:t}})},constructAutomaticDomains(t,a="",e,s=0){const i=e.toLowerCase(),o=a.toLowerCase();if(!o){const a=[];0===s&&a.push(`${i}.app.runonflux.io`);for(let e=0;et.code===a))||{name:"ALL"};return`Continent: ${e.name||"Unkown"}`}if(t.startsWith("b")){const a=t.slice(1),e=R.countries.find((t=>t.code===a))||{name:"ALL"};return`Country: ${e.name||"Unkown"}`}if(t.startsWith("ac")){const a=t.slice(2),e=a.split("_"),s=e[0],i=e[1],o=e[2],n=R.continents.find((t=>t.code===s))||{name:"ALL"},l=R.countries.find((t=>t.code===i))||{name:"ALL"};let r=`Allowed location: Continent: ${n.name}`;return i&&(r+=`, Country: ${l.name}`),o&&(r+=`, Region: ${o}`),r}if(t.startsWith("a!c")){const a=t.slice(3),e=a.split("_"),s=e[0],i=e[1],o=e[2],n=R.continents.find((t=>t.code===s))||{name:"ALL"},l=R.countries.find((t=>t.code===i))||{name:"ALL"};let r=`Forbidden location: Continent: ${n.name}`;return i&&(r+=`, Country: ${l.name}`),o&&(r+=`, Region: ${o}`),r}return"All locations allowed"}}},T=I;var M=e(1001),G=(0,M.Z)(T,s,i,!1,null,null,null);const z=G.exports}}]); \ No newline at end of file diff --git a/HomeUI/dist/js/9568.js b/HomeUI/dist/js/9568.js deleted file mode 100644 index a7fe20f5a..000000000 --- a/HomeUI/dist/js/9568.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(globalThis["webpackChunkflux"]=globalThis["webpackChunkflux"]||[]).push([[9568],{22039:(t,e,a)=>{a.r(e),a.d(e,{default:()=>X});var s=function(){var t=this,e=t._self._c;return e("div",[t.managedApplication?t._e():e("b-tabs",{attrs:{pills:""},on:{"activate-tab":t.tabChanged}},[e("my-apps-tab",{ref:"activeApps",attrs:{apps:t.activeApps,loading:t.loading.active,"logged-in":t.loggedIn,"current-block-height":t.daemonBlockCount},on:{"open-app-management":t.openAppManagement}}),e("my-apps-tab",{ref:"expiredApps",attrs:{apps:t.expiredApps,loading:t.loading.expired,"logged-in":t.loggedIn,"current-block-height":t.daemonBlockCount,"active-apps-tab":!1}})],1),t.managedApplication?e("management",{attrs:{"app-name":t.managedApplication,global:!0,"installed-apps":[]},on:{back:t.clearManagedApplication}}):t._e()],1)},i=[],n=(a(70560),a(49371)),o=function(){var t=this,e=t._self._c;return e("b-tab",{attrs:{active:t.activeAppsTab,title:t.activeAppsTab?"My Active Apps":"My Expired Apps"}},[e("b-overlay",{attrs:{show:t.loading,variant:"transparent",blur:"5px"}},[e("b-card",[e("b-row",[e("b-col",{staticClass:"my-1",attrs:{md:"4",sm:"4"}},[e("b-form-group",{staticClass:"mb-0",attrs:{label:"Per Page","label-cols-sm":"auto","label-align-sm":"left"}},[e("b-form-select",{staticClass:"w-50",attrs:{size:"sm",options:t.tableOptions.pageOptions},model:{value:t.tableOptions.perPage,callback:function(e){t.$set(t.tableOptions,"perPage",e)},expression:"tableOptions.perPage"}})],1)],1),e("b-col",{staticClass:"my-1",attrs:{md:"8"}},[e("b-form-group",{staticClass:"mb-0 mt-0",attrs:{label:"Filter","label-cols-sm":"1","label-align-sm":"right"}},[e("b-input-group",{attrs:{size:"sm"}},[e("b-form-input",{attrs:{type:"search",placeholder:"Type to Search"},model:{value:t.tableOptions.filter,callback:function(e){t.$set(t.tableOptions,"filter",e)},expression:"tableOptions.filter"}}),e("b-input-group-append",[e("b-button",{attrs:{disabled:!t.tableOptions.filter},on:{click:function(e){t.tableOptions.filter=""}}},[t._v(" Clear ")])],1)],1)],1)],1)],1),e("b-row",[e("b-col",{attrs:{cols:"12"}},[e("b-table",{staticClass:"myapps-table",attrs:{striped:"",outlined:"",responsive:"",items:t.apps,fields:t.mergedFields,"sort-by":t.tableOptions.sortBy,"sort-desc":t.tableOptions.sortDesc,"sort-direction":t.tableOptions.sortDirection,filter:t.tableOptions.filter,"per-page":t.tableOptions.perPage,"current-page":t.tableOptions.currentPage,"show-empty":"","sort-icon-left":"","empty-text":t.emptyText},on:{"update:sortBy":function(e){return t.$set(t.tableOptions,"sortBy",e)},"update:sort-by":function(e){return t.$set(t.tableOptions,"sortBy",e)},"update:sortDesc":function(e){return t.$set(t.tableOptions,"sortDesc",e)},"update:sort-desc":function(e){return t.$set(t.tableOptions,"sortDesc",e)}},scopedSlots:t._u([{key:"cell(description)",fn:function(a){return[e("kbd",{staticClass:"text-secondary textarea text",staticStyle:{float:"left","text-align":"left"}},[t._v(t._s(a.item.description))])]}},{key:"cell(name)",fn:function(a){return[e("div",{staticClass:"text-left"},[e("kbd",{staticClass:"alert-info no-wrap",staticStyle:{"border-radius":"15px","font-weight":"700 !important"}},[e("b-icon",{attrs:{scale:"1.2",icon:"app-indicator"}}),t._v("  "+t._s(a.item.name)+"  ")],1),e("br"),e("small",{staticStyle:{"font-size":"11px"}},[e("div",{staticClass:"d-flex align-items-center",staticStyle:{"margin-top":"3px"}},[t._v("   "),e("b-icon",{attrs:{scale:"1.4",icon:"speedometer2"}}),t._v("  "),e("kbd",{staticClass:"alert-success",staticStyle:{"border-radius":"15px"}},[t._v(" "),e("b",[t._v(t._s(t.getServiceUsageValue(1,a.item.name,a.item)))]),t._v(" ")]),t._v("   "),e("b-icon",{attrs:{scale:"1.4",icon:"cpu"}}),t._v("  "),e("kbd",{staticClass:"alert-success",staticStyle:{"border-radius":"15px"}},[t._v(" "),e("b",[t._v(t._s(t.getServiceUsageValue(0,a.item.name,a.item)))]),t._v(" ")]),t._v("   "),e("b-icon",{attrs:{scale:"1.4",icon:"hdd"}}),t._v("  "),e("kbd",{staticClass:"alert-success",staticStyle:{"border-radius":"15px"}},[t._v(" "),e("b",[t._v(t._s(t.getServiceUsageValue(2,a.item.name,a.item)))]),t._v(" ")]),t._v("  "),e("b-icon",{attrs:{scale:"1.2",icon:"geo-alt"}}),t._v(" "),e("kbd",{staticClass:"alert-warning",staticStyle:{"border-radius":"15px"}},[t._v(" "),e("b",[t._v(t._s(a.item.instances))]),t._v(" ")])],1),t.activeAppsTab?e("expiry-label",{attrs:{"expire-time":t.labelForExpire(a.item.expire,a.item.height)}}):t._e()],1)])]}},{key:"cell(show_details)",fn:function(a){return[e("a",{on:{click:function(e){return t.showLocations(a,t.apps)}}},[e("v-icon",{staticClass:"ml-1",attrs:{name:a.detailsShowing?"chevron-up":"chevron-down"}})],1)]}},{key:"row-details",fn:function(a){return[e("b-card",{staticClass:"mx-2"},[e("h3",{staticClass:"no-wrap"},[e("kbd",{staticClass:"alert-info d-flex",staticStyle:{"border-radius":"15px","font-family":"monospace","padding-right":"100%"}},[e("b-icon",{staticClass:"ml-1",attrs:{scale:"1",icon:"info-square"}}),t._v("  Application Information ")],1)]),e("div",{staticClass:"ml-1"},[a.item.owner?e("list-entry",{attrs:{title:"Owner",data:a.item.owner}}):t._e(),a.item.hash?e("list-entry",{attrs:{title:"Hash",data:a.item.hash}}):t._e(),a.item.version>=5?e("div",[a.item.contacts.length>0?e("list-entry",{attrs:{title:"Contacts",data:JSON.stringify(a.item.contacts)}}):t._e(),a.item.geolocation.length?e("div",t._l(a.item.geolocation,(function(a){return e("div",{key:a},[e("list-entry",{attrs:{title:"Geolocation",data:t.getGeolocation(a)}})],1)})),0):e("div",[e("list-entry",{attrs:{title:"Continent",data:"All"}}),e("list-entry",{attrs:{title:"Country",data:"All"}}),e("list-entry",{attrs:{title:"Region",data:"All"}})],1)],1):t._e(),a.item.instances?e("list-entry",{attrs:{title:"Instances",data:a.item.instances.toString()}}):t._e(),e("list-entry",{attrs:{title:"Expires in",data:t.labelForExpire(a.item.expire,a.item.height)}}),a.item?.nodes?.length>0?e("list-entry",{attrs:{title:"Enterprise Nodes",data:a.item.nodes?a.item.nodes.toString():"Not scoped"}}):t._e(),e("list-entry",{attrs:{title:"Static IP",data:a.item.staticip?"Yes, Running only on Static IP nodes":"No, Running on all nodes"}})],1),a.item.version<=3?e("div",[e("b-card",[e("list-entry",{attrs:{title:"Repository",data:a.item.repotag}}),e("list-entry",{attrs:{title:"Custom Domains",data:a.item.domains.toString()||"none"}}),e("list-entry",{attrs:{title:"Automatic Domains",data:t.constructAutomaticDomains(a.item.ports,a.item.name).toString()}}),e("list-entry",{attrs:{title:"Ports",data:a.item.ports.toString()}}),e("list-entry",{attrs:{title:"Container Ports",data:a.item.containerPorts.toString()}}),e("list-entry",{attrs:{title:"Container Data",data:a.item.containerData}}),e("list-entry",{attrs:{title:"Enviroment Parameters",data:a.item.enviromentParameters.length>0?a.item.enviromentParameters.toString():"none"}}),e("list-entry",{attrs:{title:"Commands",data:a.item.commands.length>0?a.item.commands.toString():"none"}}),a.item.tiered?e("div",[e("list-entry",{attrs:{title:"CPU Cumulus",data:`${a.item.cpubasic} vCore`}}),e("list-entry",{attrs:{title:"CPU Nimbus",data:`${a.item.cpusuper} vCore`}}),e("list-entry",{attrs:{title:"CPU Stratus",data:`${a.item.cpubamf} vCore`}}),e("list-entry",{attrs:{title:"RAM Cumulus",data:`${a.item.rambasic} MB`}}),e("list-entry",{attrs:{title:"RAM Nimbus",data:`${a.item.ramsuper} MB`}}),e("list-entry",{attrs:{title:"RAM Stratus",data:`${a.item.rambamf} MB`}}),e("list-entry",{attrs:{title:"SSD Cumulus",data:`${a.item.hddbasic} GB`}}),e("list-entry",{attrs:{title:"SSD Nimbus",data:`${a.item.hddsuper} GB`}}),e("list-entry",{attrs:{title:"SSD Stratus",data:`${a.item.hddbamf} GB`}})],1):e("div",[e("list-entry",{attrs:{title:"CPU",data:`${a.item.cpu} vCore`}}),e("list-entry",{attrs:{title:"RAM",data:`${a.item.ram} MB`}}),e("list-entry",{attrs:{title:"SSD",data:`${a.item.hdd} GB`}})],1)],1)],1):e("div",[e("h3",{staticClass:"no-wrap"},[e("kbd",{staticClass:"alert-info d-flex",staticStyle:{"border-radius":"15px","font-family":"monospace","padding-right":"100%"}},[e("b-icon",{staticClass:"ml-1",attrs:{scale:"1",icon:"box"}}),t._v("  Composition ")],1)]),t._l(a.item.compose,(function(s,i){return e("b-card",{key:i,staticClass:"mb-0"},[e("h3",{staticClass:"no-wrap"},[e("kbd",{staticClass:"alert-success d-flex",staticStyle:{"border-radius":"15px","font-family":"monospace","max-width":"500px"}},[e("b-icon",{staticClass:"ml-1",attrs:{scale:"1",icon:"menu-app-fill"}}),t._v("  "+t._s(s.name)+" ")],1)]),e("div",{staticClass:"ml-1"},[e("list-entry",{attrs:{title:"Name",data:s.name}}),e("list-entry",{attrs:{title:"Description",data:s.description}}),e("list-entry",{attrs:{title:"Repository",data:s.repotag}}),e("list-entry",{attrs:{title:"Repository Authentication",data:s.repoauth?"Content Encrypted":"Public"}}),e("list-entry",{attrs:{title:"Custom Domains",data:s.domains.toString()||"none"}}),e("list-entry",{attrs:{title:"Automatic Domains",data:t.constructAutomaticDomains(s.ports,a.item.name,{componentName:s.name,index:i}).toString()}}),e("list-entry",{attrs:{title:"Ports",data:s.ports.toString()}}),e("list-entry",{attrs:{title:"Container Ports",data:s.containerPorts.toString()}}),e("list-entry",{attrs:{title:"Container Data",data:s.containerData}}),e("list-entry",{attrs:{title:"Environment Parameters",data:s.environmentParameters.length>0?s.environmentParameters.toString():"none"}}),e("list-entry",{attrs:{title:"Commands",data:s.commands.length>0?s.commands.toString():"none"}}),e("list-entry",{attrs:{title:"Secret Environment Parameters",data:s.secrets?"Content Encrypted":"none"}}),s.tiered?e("div",[e("list-entry",{attrs:{title:"CPU Cumulus",data:`${s.cpubasic} vCore`}}),e("list-entry",{attrs:{title:"CPU Nimbus",data:`${s.cpusuper} vCore`}}),e("list-entry",{attrs:{title:"CPU Stratus",data:`${s.cpubamf} vCore`}}),e("list-entry",{attrs:{title:"RAM Cumulus",data:`${s.rambasic} MB`}}),e("list-entry",{attrs:{title:"RAM Nimbus",data:`${s.ramsuper} MB`}}),e("list-entry",{attrs:{title:"RAM Stratus",data:`${s.rambamf} MB`}}),e("list-entry",{attrs:{title:"SSD Cumulus",data:`${s.hddbasic} GB`}}),e("list-entry",{attrs:{title:"SSD Nimbus",data:`${s.hddsuper} GB`}}),e("list-entry",{attrs:{title:"SSD Stratus",data:`${s.hddbamf} GB`}})],1):e("div",[e("list-entry",{attrs:{title:"CPU",data:`${s.cpu} vCore`}}),e("list-entry",{attrs:{title:"RAM",data:`${s.ram} MB`}}),e("list-entry",{attrs:{title:"SSD",data:`${s.hdd} GB`}})],1)],1)])}))],2),t.activeAppsTab?e("locations",{attrs:{"app-locations":t.appLocations}}):t._e()],1)]}},{key:"cell(actions)",fn:function(a){return[t.activeAppsTab?e("manage",{attrs:{row:a},on:{"open-app-management":t.openAppManagement}}):e("redeploy",{attrs:{row:a}})]}}])})],1)],1),e("b-col",{attrs:{cols:"12"}},[e("b-pagination",{staticClass:"my-0",attrs:{"total-rows":t.apps.length,"per-page":t.tableOptions.perPage,align:"center",size:"sm"},model:{value:t.tableOptions.currentPage,callback:function(e){t.$set(t.tableOptions,"currentPage",e)},expression:"tableOptions.currentPage"}})],1),e("b-icon",{staticClass:"ml-1",attrs:{scale:"1.4",icon:"layers"}}),t._v("  "),e("b",[t._v(" "),e("kbd",{staticClass:"alert-success",staticStyle:{"border-radius":"15px"}},[t._v(" "+t._s(t.apps.length||0)+" ")])])],1)],1)],1)},r=[],l=a(43672),p=a(34547),c=a(51748),d=function(){var t=this,e=t._self._c;return e("div",[e("h3",[e("kbd",{staticClass:"alert-info d-flex",staticStyle:{"border-radius":"15px","font-family":"monospace","padding-right":"100%"}},[e("b-icon",{attrs:{scale:"1",icon:"globe"}}),t._v("  Locations ")],1)]),e("b-row",[e("b-col",{staticClass:"p-0 m-0"},[e("flux-map",{staticClass:"mb-0",attrs:{"show-all":!1,nodes:t.allNodesLocations,"filter-nodes":t.mapLocations},on:{"nodes-updated":t.nodesUpdated}})],1)],1),e("b-row",[e("b-col",{staticClass:"my-1",attrs:{md:"4",sm:"4"}},[e("b-form-group",{staticClass:"mb-0"},[e("label",{staticClass:"d-inline-block text-left mr-50"},[t._v("Per page")]),e("b-form-select",{staticClass:"w-50",attrs:{id:"perPageSelect",size:"sm",options:t.appLocationOptions.pageOptions},model:{value:t.appLocationOptions.perPage,callback:function(e){t.$set(t.appLocationOptions,"perPage",e)},expression:"appLocationOptions.perPage"}})],1)],1),e("b-col",{staticClass:"my-1",attrs:{md:"8"}},[e("b-form-group",{staticClass:"mb-0",attrs:{label:"Filter","label-cols-sm":"1","label-align-sm":"right","label-for":"filterInput"}},[e("b-input-group",{attrs:{size:"sm"}},[e("b-form-input",{attrs:{id:"filterInput",type:"search",placeholder:"Type to Search"},model:{value:t.appLocationOptions.filter,callback:function(e){t.$set(t.appLocationOptions,"filter",e)},expression:"appLocationOptions.filter"}}),e("b-input-group-append",[e("b-button",{attrs:{disabled:!t.appLocationOptions.filter},on:{click:function(e){t.appLocationOptions.filter=""}}},[t._v(" Clear ")])],1)],1)],1)],1),e("b-col",{attrs:{cols:"12"}},[e("b-table",{staticClass:"locations-table",attrs:{borderless:"","per-page":t.appLocationOptions.perPage,"current-page":t.appLocationOptions.currentPage,items:t.appLocations,fields:t.appLocationFields,filter:t.appLocationOptions.filter,"thead-class":"d-none","show-empty":"","sort-icon-left":"","empty-text":"No instances found..."},scopedSlots:t._u([{key:"cell(ip)",fn:function(a){return[e("div",{staticClass:"no-wrap"},[e("kbd",{staticClass:"alert-info",staticStyle:{"border-radius":"15px"}},[e("b-icon",{attrs:{scale:"1.1",icon:"hdd-network-fill"}})],1),t._v("  "),e("kbd",{staticClass:"alert-success no-wrap",staticStyle:{"border-radius":"15px"}},[e("b",[t._v("  "+t._s(a.item.ip)+"  ")])])])]}},{key:"cell(visit)",fn:function(a){return[e("div",{staticClass:"d-flex justify-content-end"},[e("b-button",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.top",value:"Visit App",expression:"'Visit App'",modifiers:{hover:!0,top:!0}}],staticClass:"mr-1",attrs:{size:"sm",pill:"",variant:"dark"},on:{click:function(e){t.openApp(t.row.item.name,a.item.ip.split(":")[0],t.getProperPort(t.row.item))}}},[e("b-icon",{attrs:{scale:"1",icon:"door-open"}}),t._v(" App ")],1),e("b-button",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.top",value:"Visit FluxNode",expression:"'Visit FluxNode'",modifiers:{hover:!0,top:!0}}],staticClass:"mr-0",attrs:{size:"sm",pill:"",variant:"outline-dark"},on:{click:function(e){t.openNodeFluxOS(a.item.ip.split(":")[0],a.item.ip.split(":")[1]?+a.item.ip.split(":")[1]-1:16126)}}},[e("b-icon",{attrs:{scale:"1",icon:"house-door-fill"}}),t._v(" FluxNode ")],1),t._v("   ")],1)]}}])})],1),e("b-col",{attrs:{cols:"12"}},[e("b-pagination",{staticClass:"my-0 mt-1",attrs:{"total-rows":t.appLocationOptions.totalRows,"per-page":t.appLocationOptions.perPage,align:"center",size:"sm"},model:{value:t.appLocationOptions.currentPage,callback:function(e){t.$set(t.appLocationOptions,"currentPage",e)},expression:"appLocationOptions.currentPage"}})],1)],1)],1)},m=[],u=a(57071);const g={components:{FluxMap:u.Z},props:{appLocations:{type:Array,default(){return[]}}},data(){return{allNodesLocations:[],appLocationFields:[{key:"ip",label:"IP Address"},{key:"visit",label:""}],appLocationOptions:{perPage:25,pageOptions:[5,10,25,50,100],currentPage:1,totalRows:1,filterOn:[],filter:""}}},computed:{mapLocations(){return this.appLocations.map((t=>t.ip))}},methods:{nodesUpdated(t){this.$set(this.allNodesLocations,t)},getProperPort(t){if(t.port)return t.port;if(t.ports)return t.ports[0];for(let e=0;e{this.showToast("danger",t.message||t)}));if(console.log(e),"success"===e.data.status){const a=e.data.data,s=a[0];if(s){const e=`https://${t}.app.runonflux.io`;this.openSite(e)}else this.showToast("danger","Application is awaiting launching...")}else this.showToast("danger",e.data.data.message||e.data.data)},openSite(t){const e=window.open(t,"_blank");e.focus()}}},P=O;var D=(0,h.Z)(P,k,L,!1,null,null,null);const T=D.exports;var M=function(){var t=this,e=t._self._c;return e("span",{class:t.spanClasses},[t._v("   "),e("b-icon",{attrs:{scale:"1.2",icon:"hourglass-split"}}),t._v(" "+t._s(t.expireTime)+"   ")],1)},B=[];const N={components:{},props:{expireTime:{type:String,required:!0}},data(){return{}},computed:{spanClasses(){return{"red-text":this.isLessThanTwoDays(this.expireTime),"no-wrap":!0}}},methods:{isLessThanTwoDays(t){if(!t)return!0;const e=t.split(",").map((t=>t.trim()));let a=0,s=0,i=0;e.forEach((t=>{t.includes("days")?a=parseInt(t,10):t.includes("hours")?s=parseInt(t,10):t.includes("minutes")&&(i=parseInt(t,10))}));const n=24*a*60+60*s+i;return n<2880}}},E=N;var I=(0,h.Z)(E,M,B,!1,null,null,null);const R=I.exports,z=a(57306),U={expose:["hideTabs"],components:{Locations:y,Redeploy:$,Manage:T,ExpiryLabel:R,ListEntry:c.Z},props:{apps:{type:Array,required:!0},currentBlockHeight:{type:Number,required:!0},activeAppsTab:{type:Boolean,default:!0},loading:{type:Boolean,default:!1},fields:{type:Array,default(){return[]}},loggedIn:{type:Boolean,default:!1}},data(){return{appLocations:[],defaultFields:[{key:"show_details",label:""},{key:"name",label:"Name",sortable:!0,thStyle:{width:"5%"}},{key:"description",label:"Description",thStyle:{width:"75%"}},{key:"actions",label:"",class:"text-center",thStyle:{width:"8%"}}],tableOptions:{perPage:25,pageOptions:[5,10,25,50,100],currentPage:1,totalRows:1,sortBy:"",sortDesc:!1,sortDirection:"asc",filter:""}}},computed:{emptyText(){return this.loggedIn?this.activeAppsTab?"No Global Apps are owned.":"No owned Apps are expired.":"You must log in to see your applications."},mergedFields(){const t=this.fields.map((t=>({...t})));return this.defaultFields.forEach((e=>{t.find((t=>t.key===e.key))||t.push(e)})),t}},methods:{hideTabs(){this.apps.forEach((t=>{this.$set(t,"_showDetails",!1)}))},openAppManagement(t){this.$emit("open-app-management",t)},getGeolocation(t){if(t.startsWith("a")&&!t.startsWith("ac")&&!t.startsWith("a!c")){const e=t.slice(1),a=z.continents.find((t=>t.code===e))||{name:"ALL"};return`Continent: ${a.name||"Unkown"}`}if(t.startsWith("b")){const e=t.slice(1),a=z.countries.find((t=>t.code===e))||{name:"ALL"};return`Country: ${a.name||"Unkown"}`}if(t.startsWith("ac")){const e=t.slice(2),a=e.split("_"),s=a[0],i=a[1],n=a[2],o=z.continents.find((t=>t.code===s))||{name:"ALL"},r=z.countries.find((t=>t.code===i))||{name:"ALL"};let l=`Allowed location: Continent: ${o.name}`;return i&&(l+=`, Country: ${r.name}`),n&&(l+=`, Region: ${n}`),l}if(t.startsWith("a!c")){const e=t.slice(3),a=e.split("_"),s=a[0],i=a[1],n=a[2],o=z.continents.find((t=>t.code===s))||{name:"ALL"},r=z.countries.find((t=>t.code===i))||{name:"ALL"};let l=`Forbidden location: Continent: ${o.name}`;return i&&(l+=`, Country: ${r.name}`),n&&(l+=`, Region: ${n}`),l}return"All locations allowed"},constructAutomaticDomains(t,e,a={}){const{componentName:s="",index:i=0}=a,n=e.toLowerCase(),o=s.toLowerCase();if(!o){const e=[];0===i&&e.push(`${n}.app.runonflux.io`);for(let a=0;a{const i=Math.floor(e/a[t]);1===i&&s.push(` ${i} ${t}`),i>=2&&s.push(` ${i} ${t}s`),e%=a[t]})),s},labelForExpire(t,e){if(!e)return"Application Expired";if(-1===this.currentBlockHeight)return"Not possible to calculate expiration";const a=t||22e3,s=e+a-this.currentBlockHeight;if(s<1)return"Application Expired";const i=2*s,n=this.minutesToString(i);return n.length>2?`${n[0]}, ${n[1]}, ${n[2]}`:n.length>1?`${n[0]}, ${n[1]}`:`${n[0]}`},getServiceUsageValue(t,e,a){if("undefined"===typeof a?.compose)return this.usage=[+a.ram,+a.cpu,+a.hdd],this.usage[t];const s=this.getServiceUsage(e,a.compose);return s[t]},getServiceUsage(t,e){let a=0,s=0,i=0;return e.forEach((t=>{a+=t.ram,s+=t.cpu,i+=t.hdd})),[a,s,i]},showToast(t,e,a="InfoIcon"){this.$toast({component:p.Z,props:{title:e,icon:a,variant:t}})},showLocations(t,e){t.detailsShowing?t.toggleDetails():(e.forEach((t=>{this.$set(t,"_showDetails",!1)})),this.$nextTick((()=>{t.toggleDetails(),this.activeAppsTab&&this.loadLocations(t)})))},async loadLocations(t){const e=await l.Z.getAppLocation(t.item.name).catch((t=>(this.showToast("danger",t.message||t),{data:{status:"fail"}})));if("success"===e.data.status){const{data:{data:t}}=e;this.appLocations=t}}}},F=U;var Z=(0,h.Z)(F,o,r,!1,null,null,null);const G=Z.exports;var V=a(27616);const q=a(80129),W={components:{Management:n.Z,MyAppsTab:G},data(){return{allApps:[],activeApps:[],expiredApps:[],managedApplication:"",daemonBlockCount:-1,loading:{active:!0,expired:!0},loggedIn:!1}},created(){this.setLoginStatus(),this.getApps(),this.getDaemonBlockCount()},methods:{async getDaemonBlockCount(){const t=await V.Z.getBlockCount().catch((()=>({data:{status:"fail"}})));"success"===t.data.status&&(this.daemonBlockCount=t.data.data)},openAppManagement(t){this.managedApplication=t},clearManagedApplication(){this.managedApplication="",this.$nextTick((()=>{this.tabChanged()}))},async getActiveApps(){this.loading.active=!0;const t=await l.Z.globalAppSpecifications().catch((()=>({data:{data:[]}})));this.allApps=t.data.data;const e=localStorage.getItem("zelidauth"),a=q.parse(e);a?(this.activeApps=this.allApps.filter((t=>t.owner===a.zelid)),this.loading.active=!1):this.$set(this.activeApps,[])},async getExpiredApps(){try{const t=localStorage.getItem("zelidauth"),e=q.parse(t);if(!e.zelid)return void this.$set(this.expiredApps,[]);const a=await l.Z.permanentMessagesOwner(e.zelid).catch((()=>({data:{data:[]}}))),s=[],{data:{data:i}}=a;i.forEach((t=>{const e=s.find((e=>e.appSpecifications.name===t.appSpecifications.name));if(e){if(t.height>e.height){const e=s.findIndex((e=>e.appSpecifications.name===t.appSpecifications.name));e>-1&&(s.splice(e,1),s.push(t))}}else s.push(t)}));const n=[];s.forEach((t=>{const e=this.allApps.find((e=>e.name.toLowerCase()===t.appSpecifications.name.toLowerCase()));if(!e){const e=t.appSpecifications;n.push(e)}})),this.expiredApps=n}catch(t){console.log(t)}finally{this.loading.expired=!1}},async getApps(){await this.getActiveApps(),await this.getExpiredApps()},tabChanged(){this.$refs.activeApps.hideTabs(),this.$refs.expiredApps.hideTabs(),this.setLoginStatus()},setLoginStatus(){const t=localStorage.getItem("zelidauth"),e=q.parse(t);this.loggedIn=Boolean(e.zelid)}}},j=W;var H=(0,h.Z)(j,s,i,!1,null,null,null);const X=H.exports}}]); \ No newline at end of file diff --git a/HomeUI/dist/js/9784.js b/HomeUI/dist/js/9784.js new file mode 100644 index 000000000..69bb353e8 --- /dev/null +++ b/HomeUI/dist/js/9784.js @@ -0,0 +1 @@ +(self["webpackChunkflux"]=self["webpackChunkflux"]||[]).push([[9784],{57071:(t,e,i)=>{"use strict";i.d(e,{Z:()=>C});var n=function(){var t=this,e=t._self._c;return e("b-card",[e("v-map",{attrs:{zoom:t.map.zoom,center:t.map.center}},[e("v-tile-layer",{attrs:{url:t.map.url}}),t.nodesLoaded?e("v-marker-cluster",{attrs:{options:t.map.clusterOptions},on:{clusterclick:t.click,ready:t.ready}},[e("v-geo-json",{attrs:{geojson:t.geoJson,options:t.geoJsonOptions}})],1):t._e(),t.nodesLoadedError?e("v-marker",{attrs:{"lat-lng":[20,-20],icon:t.warning.icon,"z-index-offset":t.warning.zIndexOffest}}):t._e()],1)],1)},o=[],r=(i(70560),i(87066)),s=i(45243),a=i.n(s),u=i(75352),l=i(32727),p=i(48380),c=i(92011),h=i(96467),d=i.n(h),f=i(37093),m=i(6431),y=i(68858);const v=(0,s.icon)({...s.Icon.Default.prototype.options,iconUrl:f,iconRetinaUrl:m,shadowUrl:y});a().Marker.prototype.options.icon=v;const b={components:{"v-map":u.Z,"v-tile-layer":l.Z,"v-marker":p.Z,"v-geo-json":c.Z,"v-marker-cluster":d()},props:{showAll:{type:Boolean,default:!0},filterNodes:{type:Array,default(){return[]}},nodes:{type:Array,default(){return[]}}},data(){return{warning:{icon:a().divIcon({className:"text-labels",html:"Unable to fetch Node data. Try again later."}),zIndexOffset:1e3},nodesLoadedError:!1,nodesLoaded:!1,map:{url:"https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png",zoom:2,center:(0,s.latLng)(20,0),clusterOptions:{chunkedLoading:!0}},geoJsonOptions:{onEachFeature:(t,e)=>{e.bindPopup(`\n IP: ${t.properties.ip}
\n Tier: ${t.properties.tier}
\n ISP: ${t.properties.org}`,{className:"custom-popup",keepInView:!0})}},geoJson:[{type:"FeatureCollection",crs:{type:"name",properties:{name:"urn:ogc:def:crs:OGC:1.3:CRS84"}},features:[]}]}},created(){this.getNodes()},methods:{noop(){},click(t){this.noop(t)},ready(t){this.noop(t)},nodeHttpsUrlFromEndpoint(t,e={}){const i="https://",n="node.api.runonflux.io",o={api:0,home:-1},r=e.urlType||"api",[s,a]=t.includes(":")?t.split(":"):[t,"16127"],u=s.replace(/\./g,"-"),l=+a+o[r],p=`${i}${u}-${l}.${n}`;return p},buildGeoJson(t){const{features:e}=this.geoJson[0];t.forEach((t=>{const i={type:"Feature",properties:{ip:t.ip,tier:t.tier,org:t.geolocation.org},geometry:{type:"Point",coordinates:[t.geolocation.lon,t.geolocation.lat]}};e.push(i)}))},async getNodesViaApi(){const t="https://stats.runonflux.io/fluxinfo?projection=geolocation,ip,tier",e=await r["default"].get(t).catch((()=>({status:503}))),{status:i,data:{status:n,data:o}={}}=e;return 200!==i||"success"!==n?[]:(this.$emit("nodes-updated",o),o)},async getNodes(){const t=this.nodes.length?this.nodes:await this.getNodesViaApi();if(!t.length)return void(this.nodesLoadedError=!0);const e=[],i=this.showAll?t:this.filterNodes.map((i=>{const n=t.find((t=>t.ip===i));if(!n){const t=this.nodeHttpsUrlFromEndpoint(i);e.push(`${t}/flux/info`)}return n})).filter((t=>t)),n=e.map((t=>r["default"].get(t,{timeout:3e3}))),o=await Promise.allSettled(n);o.forEach((t=>{const{status:e,value:n}=t;if("fulfilled"!==e)return;const{data:o,status:r}=n.data;if("success"===r){const{node:t,geolocation:e}=o,n={ip:t.status.ip,tier:t.status.tier,geolocation:e};i.push(n)}})),this.buildGeoJson(i),this.nodesLoaded=!0}}},_=b;var g=i(1001),O=(0,g.Z)(_,n,o,!1,null,null,null);const C=O.exports},95732:function(t,e){(function(t,i){i(e)})(0,(function(t){"use strict";var e=L.MarkerClusterGroup=L.FeatureGroup.extend({options:{maxClusterRadius:80,iconCreateFunction:null,clusterPane:L.Marker.prototype.options.pane,spiderfyOnEveryZoom:!1,spiderfyOnMaxZoom:!0,showCoverageOnHover:!0,zoomToBoundsOnClick:!0,singleMarkerMode:!1,disableClusteringAtZoom:null,removeOutsideVisibleBounds:!0,animate:!0,animateAddingMarkers:!1,spiderfyShapePositions:null,spiderfyDistanceMultiplier:1,spiderLegPolylineOptions:{weight:1.5,color:"#222",opacity:.5},chunkedLoading:!1,chunkInterval:200,chunkDelay:50,chunkProgress:null,polygonOptions:{}},initialize:function(t){L.Util.setOptions(this,t),this.options.iconCreateFunction||(this.options.iconCreateFunction=this._defaultIconCreateFunction),this._featureGroup=L.featureGroup(),this._featureGroup.addEventParent(this),this._nonPointGroup=L.featureGroup(),this._nonPointGroup.addEventParent(this),this._inZoomAnimation=0,this._needsClustering=[],this._needsRemoving=[],this._currentShownBounds=null,this._queue=[],this._childMarkerEventHandlers={dragstart:this._childMarkerDragStart,move:this._childMarkerMoved,dragend:this._childMarkerDragEnd};var e=L.DomUtil.TRANSITION&&this.options.animate;L.extend(this,e?this._withAnimation:this._noAnimation),this._markerCluster=e?L.MarkerCluster:L.MarkerClusterNonAnimated},addLayer:function(t){if(t instanceof L.LayerGroup)return this.addLayers([t]);if(!t.getLatLng)return this._nonPointGroup.addLayer(t),this.fire("layeradd",{layer:t}),this;if(!this._map)return this._needsClustering.push(t),this.fire("layeradd",{layer:t}),this;if(this.hasLayer(t))return this;this._unspiderfy&&this._unspiderfy(),this._addLayer(t,this._maxZoom),this.fire("layeradd",{layer:t}),this._topClusterLevel._recalculateBounds(),this._refreshClustersIcons();var e=t,i=this._zoom;if(t.__parent)while(e.__parent._zoom>=i)e=e.__parent;return this._currentShownBounds.contains(e.getLatLng())&&(this.options.animateAddingMarkers?this._animationAddLayer(t,e):this._animationAddLayerNonAnimated(t,e)),this},removeLayer:function(t){return t instanceof L.LayerGroup?this.removeLayers([t]):t.getLatLng?this._map?t.__parent?(this._unspiderfy&&(this._unspiderfy(),this._unspiderfyLayer(t)),this._removeLayer(t,!0),this.fire("layerremove",{layer:t}),this._topClusterLevel._recalculateBounds(),this._refreshClustersIcons(),t.off(this._childMarkerEventHandlers,this),this._featureGroup.hasLayer(t)&&(this._featureGroup.removeLayer(t),t.clusterShow&&t.clusterShow()),this):this:(!this._arraySplice(this._needsClustering,t)&&this.hasLayer(t)&&this._needsRemoving.push({layer:t,latlng:t._latlng}),this.fire("layerremove",{layer:t}),this):(this._nonPointGroup.removeLayer(t),this.fire("layerremove",{layer:t}),this)},addLayers:function(t,e){if(!L.Util.isArray(t))return this.addLayer(t);var i,n=this._featureGroup,o=this._nonPointGroup,r=this.options.chunkedLoading,s=this.options.chunkInterval,a=this.options.chunkProgress,u=t.length,l=0,p=!0;if(this._map){var c=(new Date).getTime(),h=L.bind((function(){var d=(new Date).getTime();for(this._map&&this._unspiderfy&&this._unspiderfy();ls)break}if(i=t[l],i instanceof L.LayerGroup)p&&(t=t.slice(),p=!1),this._extractNonGroupLayers(i,t),u=t.length;else if(i.getLatLng){if(!this.hasLayer(i)&&(this._addLayer(i,this._maxZoom),e||this.fire("layeradd",{layer:i}),i.__parent&&2===i.__parent.getChildCount())){var m=i.__parent.getAllChildMarkers(),y=m[0]===i?m[1]:m[0];n.removeLayer(y)}}else o.addLayer(i),e||this.fire("layeradd",{layer:i})}a&&a(l,u,(new Date).getTime()-c),l===u?(this._topClusterLevel._recalculateBounds(),this._refreshClustersIcons(),this._topClusterLevel._recursivelyAddChildrenToMap(null,this._zoom,this._currentShownBounds)):setTimeout(h,this.options.chunkDelay)}),this);h()}else for(var d=this._needsClustering;l=0;e--)t.extend(this._needsClustering[e].getLatLng());return t.extend(this._nonPointGroup.getBounds()),t},eachLayer:function(t,e){var i,n,o,r=this._needsClustering.slice(),s=this._needsRemoving;for(this._topClusterLevel&&this._topClusterLevel.getAllChildMarkers(r),n=r.length-1;n>=0;n--){for(i=!0,o=s.length-1;o>=0;o--)if(s[o].layer===r[n]){i=!1;break}i&&t.call(e,r[n])}this._nonPointGroup.eachLayer(t,e)},getLayers:function(){var t=[];return this.eachLayer((function(e){t.push(e)})),t},getLayer:function(t){var e=null;return t=parseInt(t,10),this.eachLayer((function(i){L.stamp(i)===t&&(e=i)})),e},hasLayer:function(t){if(!t)return!1;var e,i=this._needsClustering;for(e=i.length-1;e>=0;e--)if(i[e]===t)return!0;for(i=this._needsRemoving,e=i.length-1;e>=0;e--)if(i[e].layer===t)return!1;return!(!t.__parent||t.__parent._group!==this)||this._nonPointGroup.hasLayer(t)},zoomToShowLayer:function(t,e){var i=this._map;"function"!==typeof e&&(e=function(){});var n=function(){!i.hasLayer(t)&&!i.hasLayer(t.__parent)||this._inZoomAnimation||(this._map.off("moveend",n,this),this.off("animationend",n,this),i.hasLayer(t)?e():t.__parent._icon&&(this.once("spiderfied",e,this),t.__parent.spiderfy()))};t._icon&&this._map.getBounds().contains(t.getLatLng())?e():t.__parent._zoom=0;i--)if(t[i]===e)return t.splice(i,1),!0},_removeFromGridUnclustered:function(t,e){for(var i=this._map,n=this._gridUnclustered,o=Math.floor(this._map.getMinZoom());e>=o;e--)if(!n[e].removeObject(t,i.project(t.getLatLng(),e)))break},_childMarkerDragStart:function(t){t.target.__dragStart=t.target._latlng},_childMarkerMoved:function(t){if(!this._ignoreMove&&!t.target.__dragStart){var e=t.target._popup&&t.target._popup.isOpen();this._moveChild(t.target,t.oldLatLng,t.latlng),e&&t.target.openPopup()}},_moveChild:function(t,e,i){t._latlng=e,this.removeLayer(t),t._latlng=i,this.addLayer(t)},_childMarkerDragEnd:function(t){var e=t.target.__dragStart;delete t.target.__dragStart,e&&this._moveChild(t.target,e,t.target._latlng)},_removeLayer:function(t,e,i){var n=this._gridClusters,o=this._gridUnclustered,r=this._featureGroup,s=this._map,a=Math.floor(this._map.getMinZoom());e&&this._removeFromGridUnclustered(t,this._maxZoom);var u,l=t.__parent,p=l._markers;this._arraySplice(p,t);while(l){if(l._childCount--,l._boundsNeedUpdate=!0,l._zoom"+e+"",className:"marker-cluster"+i,iconSize:new L.Point(40,40)})},_bindEvents:function(){var t=this._map,e=this.options.spiderfyOnMaxZoom,i=this.options.showCoverageOnHover,n=this.options.zoomToBoundsOnClick,o=this.options.spiderfyOnEveryZoom;(e||n||o)&&this.on("clusterclick clusterkeypress",this._zoomOrSpiderfy,this),i&&(this.on("clustermouseover",this._showCoverage,this),this.on("clustermouseout",this._hideCoverage,this),t.on("zoomend",this._hideCoverage,this))},_zoomOrSpiderfy:function(t){var e=t.layer,i=e;if("clusterkeypress"!==t.type||!t.originalEvent||13===t.originalEvent.keyCode){while(1===i._childClusters.length)i=i._childClusters[0];i._zoom===this._maxZoom&&i._childCount===e._childCount&&this.options.spiderfyOnMaxZoom?e.spiderfy():this.options.zoomToBoundsOnClick&&e.zoomToBounds(),this.options.spiderfyOnEveryZoom&&e.spiderfy(),t.originalEvent&&13===t.originalEvent.keyCode&&this._map._container.focus()}},_showCoverage:function(t){var e=this._map;this._inZoomAnimation||(this._shownPolygon&&e.removeLayer(this._shownPolygon),t.layer.getChildCount()>2&&t.layer!==this._spiderfied&&(this._shownPolygon=new L.Polygon(t.layer.getConvexHull(),this.options.polygonOptions),e.addLayer(this._shownPolygon)))},_hideCoverage:function(){this._shownPolygon&&(this._map.removeLayer(this._shownPolygon),this._shownPolygon=null)},_unbindEvents:function(){var t=this.options.spiderfyOnMaxZoom,e=this.options.showCoverageOnHover,i=this.options.zoomToBoundsOnClick,n=this.options.spiderfyOnEveryZoom,o=this._map;(t||i||n)&&this.off("clusterclick clusterkeypress",this._zoomOrSpiderfy,this),e&&(this.off("clustermouseover",this._showCoverage,this),this.off("clustermouseout",this._hideCoverage,this),o.off("zoomend",this._hideCoverage,this))},_zoomEnd:function(){this._map&&(this._mergeSplitClusters(),this._zoom=Math.round(this._map._zoom),this._currentShownBounds=this._getExpandedVisibleBounds())},_moveEnd:function(){if(!this._inZoomAnimation){var t=this._getExpandedVisibleBounds();this._topClusterLevel._recursivelyRemoveChildrenFromMap(this._currentShownBounds,Math.floor(this._map.getMinZoom()),this._zoom,t),this._topClusterLevel._recursivelyAddChildrenToMap(null,Math.round(this._map._zoom),t),this._currentShownBounds=t}},_generateInitialClusters:function(){var t=Math.ceil(this._map.getMaxZoom()),e=Math.floor(this._map.getMinZoom()),i=this.options.maxClusterRadius,n=i;"function"!==typeof i&&(n=function(){return i}),null!==this.options.disableClusteringAtZoom&&(t=this.options.disableClusteringAtZoom-1),this._maxZoom=t,this._gridClusters={},this._gridUnclustered={};for(var o=t;o>=e;o--)this._gridClusters[o]=new L.DistanceGrid(n(o)),this._gridUnclustered[o]=new L.DistanceGrid(n(o));this._topClusterLevel=new this._markerCluster(this,e-1)},_addLayer:function(t,e){var i,n,o=this._gridClusters,r=this._gridUnclustered,s=Math.floor(this._map.getMinZoom());for(this.options.singleMarkerMode&&this._overrideMarkerIcon(t),t.on(this._childMarkerEventHandlers,this);e>=s;e--){i=this._map.project(t.getLatLng(),e);var a=o[e].getNearObject(i);if(a)return a._addChild(t),void(t.__parent=a);if(a=r[e].getNearObject(i),a){var u=a.__parent;u&&this._removeLayer(a,!1);var l=new this._markerCluster(this,e,a,t);o[e].addObject(l,this._map.project(l._cLatLng,e)),a.__parent=l,t.__parent=l;var p=l;for(n=e-1;n>u._zoom;n--)p=new this._markerCluster(this,n,p),o[n].addObject(p,this._map.project(a.getLatLng(),n));return u._addChild(p),void this._removeFromGridUnclustered(a,e)}r[e].addObject(t,i)}this._topClusterLevel._addChild(t),t.__parent=this._topClusterLevel},_refreshClustersIcons:function(){this._featureGroup.eachLayer((function(t){t instanceof L.MarkerCluster&&t._iconNeedsUpdate&&t._updateIcon()}))},_enqueue:function(t){this._queue.push(t),this._queueTimeout||(this._queueTimeout=setTimeout(L.bind(this._processQueue,this),300))},_processQueue:function(){for(var t=0;tt?(this._animationStart(),this._animationZoomOut(this._zoom,t)):this._moveEnd()},_getExpandedVisibleBounds:function(){return this.options.removeOutsideVisibleBounds?L.Browser.mobile?this._checkBoundsMaxLat(this._map.getBounds()):this._checkBoundsMaxLat(this._map.getBounds().pad(1)):this._mapBoundsInfinite},_checkBoundsMaxLat:function(t){var e=this._maxLat;return void 0!==e&&(t.getNorth()>=e&&(t._northEast.lat=1/0),t.getSouth()<=-e&&(t._southWest.lat=-1/0)),t},_animationAddLayerNonAnimated:function(t,e){if(e===t)this._featureGroup.addLayer(t);else if(2===e._childCount){e._addToMap();var i=e.getAllChildMarkers();this._featureGroup.removeLayer(i[0]),this._featureGroup.removeLayer(i[1])}else e._updateIcon()},_extractNonGroupLayers:function(t,e){var i,n=t.getLayers(),o=0;for(e=e||[];o=0;i--)s=u[i],n.contains(s._latlng)||o.removeLayer(s)})),this._forceLayout(),this._topClusterLevel._recursivelyBecomeVisible(n,e),o.eachLayer((function(t){t instanceof L.MarkerCluster||!t._icon||t.clusterShow()})),this._topClusterLevel._recursively(n,t,e,(function(t){t._recursivelyRestoreChildPositions(e)})),this._ignoreMove=!1,this._enqueue((function(){this._topClusterLevel._recursively(n,t,r,(function(t){o.removeLayer(t),t.clusterShow()})),this._animationEnd()}))},_animationZoomOut:function(t,e){this._animationZoomOutSingle(this._topClusterLevel,t-1,e),this._topClusterLevel._recursivelyAddChildrenToMap(null,e,this._getExpandedVisibleBounds()),this._topClusterLevel._recursivelyRemoveChildrenFromMap(this._currentShownBounds,Math.floor(this._map.getMinZoom()),t,this._getExpandedVisibleBounds())},_animationAddLayer:function(t,e){var i=this,n=this._featureGroup;n.addLayer(t),e!==t&&(e._childCount>2?(e._updateIcon(),this._forceLayout(),this._animationStart(),t._setPos(this._map.latLngToLayerPoint(e.getLatLng())),t.clusterHide(),this._enqueue((function(){n.removeLayer(t),t.clusterShow(),i._animationEnd()}))):(this._forceLayout(),i._animationStart(),i._animationZoomOutSingle(e,this._map.getMaxZoom(),this._zoom)))}},_animationZoomOutSingle:function(t,e,i){var n=this._getExpandedVisibleBounds(),o=Math.floor(this._map.getMinZoom());t._recursivelyAnimateChildrenInAndAddSelfToMap(n,o,e+1,i);var r=this;this._forceLayout(),t._recursivelyBecomeVisible(n,i),this._enqueue((function(){if(1===t._childCount){var s=t._markers[0];this._ignoreMove=!0,s.setLatLng(s.getLatLng()),this._ignoreMove=!1,s.clusterShow&&s.clusterShow()}else t._recursively(n,i,o,(function(t){t._recursivelyRemoveChildrenFromMap(n,o,e+1)}));r._animationEnd()}))},_animationEnd:function(){this._map&&(this._map._mapPane.className=this._map._mapPane.className.replace(" leaflet-cluster-anim","")),this._inZoomAnimation--,this.fire("animationend")},_forceLayout:function(){L.Util.falseFn(document.body.offsetWidth)}}),L.markerClusterGroup=function(t){return new L.MarkerClusterGroup(t)};var i=L.MarkerCluster=L.Marker.extend({options:L.Icon.prototype.options,initialize:function(t,e,i,n){L.Marker.prototype.initialize.call(this,i?i._cLatLng||i.getLatLng():new L.LatLng(0,0),{icon:this,pane:t.options.clusterPane}),this._group=t,this._zoom=e,this._markers=[],this._childClusters=[],this._childCount=0,this._iconNeedsUpdate=!0,this._boundsNeedUpdate=!0,this._bounds=new L.LatLngBounds,i&&this._addChild(i),n&&this._addChild(n)},getAllChildMarkers:function(t,e){t=t||[];for(var i=this._childClusters.length-1;i>=0;i--)this._childClusters[i].getAllChildMarkers(t,e);for(var n=this._markers.length-1;n>=0;n--)e&&this._markers[n].__dragStart||t.push(this._markers[n]);return t},getChildCount:function(){return this._childCount},zoomToBounds:function(t){var e,i=this._childClusters.slice(),n=this._group._map,o=n.getBoundsZoom(this._bounds),r=this._zoom+1,s=n.getZoom();while(i.length>0&&o>r){r++;var a=[];for(e=0;er?this._group._map.setView(this._latlng,r):o<=s?this._group._map.setView(this._latlng,s+1):this._group._map.fitBounds(this._bounds,t)},getBounds:function(){var t=new L.LatLngBounds;return t.extend(this._bounds),t},_updateIcon:function(){this._iconNeedsUpdate=!0,this._icon&&this.setIcon(this)},createIcon:function(){return this._iconNeedsUpdate&&(this._iconObj=this._group.options.iconCreateFunction(this),this._iconNeedsUpdate=!1),this._iconObj.createIcon()},createShadow:function(){return this._iconObj.createShadow()},_addChild:function(t,e){this._iconNeedsUpdate=!0,this._boundsNeedUpdate=!0,this._setClusterCenter(t),t instanceof L.MarkerCluster?(e||(this._childClusters.push(t),t.__parent=this),this._childCount+=t._childCount):(e||this._markers.push(t),this._childCount++),this.__parent&&this.__parent._addChild(t,!0)},_setClusterCenter:function(t){this._cLatLng||(this._cLatLng=t._cLatLng||t._latlng)},_resetBounds:function(){var t=this._bounds;t._southWest&&(t._southWest.lat=1/0,t._southWest.lng=1/0),t._northEast&&(t._northEast.lat=-1/0,t._northEast.lng=-1/0)},_recalculateBounds:function(){var t,e,i,n,o=this._markers,r=this._childClusters,s=0,a=0,u=this._childCount;if(0!==u){for(this._resetBounds(),t=0;t=0;i--)n=o[i],n._icon&&(n._setPos(e),n.clusterHide())}),(function(t){var i,n,o=t._childClusters;for(i=o.length-1;i>=0;i--)n=o[i],n._icon&&(n._setPos(e),n.clusterHide())}))},_recursivelyAnimateChildrenInAndAddSelfToMap:function(t,e,i,n){this._recursively(t,n,e,(function(o){o._recursivelyAnimateChildrenIn(t,o._group._map.latLngToLayerPoint(o.getLatLng()).round(),i),o._isSingleParent()&&i-1===n?(o.clusterShow(),o._recursivelyRemoveChildrenFromMap(t,e,i)):o.clusterHide(),o._addToMap()}))},_recursivelyBecomeVisible:function(t,e){this._recursively(t,this._group._map.getMinZoom(),e,null,(function(t){t.clusterShow()}))},_recursivelyAddChildrenToMap:function(t,e,i){this._recursively(i,this._group._map.getMinZoom()-1,e,(function(n){if(e!==n._zoom)for(var o=n._markers.length-1;o>=0;o--){var r=n._markers[o];i.contains(r._latlng)&&(t&&(r._backupLatlng=r.getLatLng(),r.setLatLng(t),r.clusterHide&&r.clusterHide()),n._group._featureGroup.addLayer(r))}}),(function(e){e._addToMap(t)}))},_recursivelyRestoreChildPositions:function(t){for(var e=this._markers.length-1;e>=0;e--){var i=this._markers[e];i._backupLatlng&&(i.setLatLng(i._backupLatlng),delete i._backupLatlng)}if(t-1===this._zoom)for(var n=this._childClusters.length-1;n>=0;n--)this._childClusters[n]._restorePosition();else for(var o=this._childClusters.length-1;o>=0;o--)this._childClusters[o]._recursivelyRestoreChildPositions(t)},_restorePosition:function(){this._backupLatlng&&(this.setLatLng(this._backupLatlng),delete this._backupLatlng)},_recursivelyRemoveChildrenFromMap:function(t,e,i,n){var o,r;this._recursively(t,e-1,i-1,(function(t){for(r=t._markers.length-1;r>=0;r--)o=t._markers[r],n&&n.contains(o._latlng)||(t._group._featureGroup.removeLayer(o),o.clusterShow&&o.clusterShow())}),(function(t){for(r=t._childClusters.length-1;r>=0;r--)o=t._childClusters[r],n&&n.contains(o._latlng)||(t._group._featureGroup.removeLayer(o),o.clusterShow&&o.clusterShow())}))},_recursively:function(t,e,i,n,o){var r,s,a=this._childClusters,u=this._zoom;if(e<=u&&(n&&n(this),o&&u===i&&o(this)),u=0;r--)s=a[r],s._boundsNeedUpdate&&s._recalculateBounds(),t.intersects(s._bounds)&&s._recursively(t,e,i,n,o)},_isSingleParent:function(){return this._childClusters.length>0&&this._childClusters[0]._childCount===this._childCount}});L.Marker.include({clusterHide:function(){var t=this.options.opacity;return this.setOpacity(0),this.options.opacity=t,this},clusterShow:function(){return this.setOpacity(this.options.opacity)}}),L.DistanceGrid=function(t){this._cellSize=t,this._sqCellSize=t*t,this._grid={},this._objectPoint={}},L.DistanceGrid.prototype={addObject:function(t,e){var i=this._getCoord(e.x),n=this._getCoord(e.y),o=this._grid,r=o[n]=o[n]||{},s=r[i]=r[i]||[],a=L.Util.stamp(t);this._objectPoint[a]=e,s.push(t)},updateObject:function(t,e){this.removeObject(t),this.addObject(t,e)},removeObject:function(t,e){var i,n,o=this._getCoord(e.x),r=this._getCoord(e.y),s=this._grid,a=s[r]=s[r]||{},u=a[o]=a[o]||[];for(delete this._objectPoint[L.Util.stamp(t)],i=0,n=u.length;i=0;i--)n=e[i],o=this.getDistant(n,t),o>0&&(a.push(n),o>r&&(r=o,s=n));return{maxPoint:s,newPoints:a}},buildConvexHull:function(t,e){var i=[],n=this.findMostDistantPointFromBaseLine(t,e);return n.maxPoint?(i=i.concat(this.buildConvexHull([t[0],n.maxPoint],n.newPoints)),i=i.concat(this.buildConvexHull([n.maxPoint,t[1]],n.newPoints)),i):[t[0]]},getConvexHull:function(t){var e,i=!1,n=!1,o=!1,r=!1,s=null,a=null,u=null,l=null,p=null,c=null;for(e=t.length-1;e>=0;e--){var h=t[e];(!1===i||h.lat>i)&&(s=h,i=h.lat),(!1===n||h.lato)&&(u=h,o=h.lng),(!1===r||h.lng=0;e--)t=i[e].getLatLng(),n.push(t);return L.QuickHull.getConvexHull(n)}}),L.MarkerCluster.include({_2PI:2*Math.PI,_circleFootSeparation:25,_circleStartAngle:0,_spiralFootSeparation:28,_spiralLengthStart:11,_spiralLengthFactor:5,_circleSpiralSwitchover:9,spiderfy:function(){if(this._group._spiderfied!==this&&!this._group._inZoomAnimation){var t,e=this.getAllChildMarkers(null,!0),i=this._group,n=i._map,o=n.latLngToLayerPoint(this._latlng);this._group._unspiderfy(),this._group._spiderfied=this,this._group.options.spiderfyShapePositions?t=this._group.options.spiderfyShapePositions(e.length,o):e.length>=this._circleSpiralSwitchover?t=this._generatePointsSpiral(e.length,o):(o.y+=10,t=this._generatePointsCircle(e.length,o)),this._animationSpiderfy(e,t)}},unspiderfy:function(t){this._group._inZoomAnimation||(this._animationUnspiderfy(t),this._group._spiderfied=null)},_generatePointsCircle:function(t,e){var i,n,o=this._group.options.spiderfyDistanceMultiplier*this._circleFootSeparation*(2+t),r=o/this._2PI,s=this._2PI/t,a=[];for(r=Math.max(r,35),a.length=t,i=0;i=0;i--)i=0;e--)t=r[e],o.removeLayer(t),t._preSpiderfyLatlng&&(t.setLatLng(t._preSpiderfyLatlng),delete t._preSpiderfyLatlng),t.setZIndexOffset&&t.setZIndexOffset(0),t._spiderLeg&&(n.removeLayer(t._spiderLeg),delete t._spiderLeg);i.fire("unspiderfied",{cluster:this,markers:r}),i._ignoreMove=!1,i._spiderfied=null}}),L.MarkerClusterNonAnimated=L.MarkerCluster.extend({_animationSpiderfy:function(t,e){var i,n,o,r,s=this._group,a=s._map,u=s._featureGroup,l=this._group.options.spiderLegPolylineOptions;for(s._ignoreMove=!0,i=0;i=0;i--)a=p.layerPointToLatLng(e[i]),n=t[i],n._preSpiderfyLatlng=n._latlng,n.setLatLng(a),n.clusterShow&&n.clusterShow(),f&&(o=n._spiderLeg,r=o._path,r.style.strokeDashoffset=0,o.setStyle({opacity:y}));this.setOpacity(.3),l._ignoreMove=!1,setTimeout((function(){l._animationEnd(),l.fire("spiderfied",{cluster:u,markers:t})}),200)},_animationUnspiderfy:function(t){var e,i,n,o,r,s,a=this,u=this._group,l=u._map,p=u._featureGroup,c=t?l._latLngToNewLayerPoint(this._latlng,t.zoom,t.center):l.latLngToLayerPoint(this._latlng),h=this.getAllChildMarkers(null,!0),d=L.Path.SVG;for(u._ignoreMove=!0,u._animationStart(),this.setOpacity(1),i=h.length-1;i>=0;i--)e=h[i],e._preSpiderfyLatlng&&(e.closePopup(),e.setLatLng(e._preSpiderfyLatlng),delete e._preSpiderfyLatlng,s=!0,e._setPos&&(e._setPos(c),s=!1),e.clusterHide&&(e.clusterHide(),s=!1),s&&p.removeLayer(e),d&&(n=e._spiderLeg,o=n._path,r=o.getTotalLength()+.1,o.style.strokeDashoffset=r,n.setStyle({opacity:0})));u._ignoreMove=!1,setTimeout((function(){var t=0;for(i=h.length-1;i>=0;i--)e=h[i],e._spiderLeg&&t++;for(i=h.length-1;i>=0;i--)e=h[i],e._spiderLeg&&(e.clusterShow&&e.clusterShow(),e.setZIndexOffset&&e.setZIndexOffset(0),t>1&&p.removeLayer(e),l.removeLayer(e._spiderLeg),delete e._spiderLeg);u._animationEnd(),u.fire("unspiderfied",{cluster:a,markers:h})}),200)}}),L.MarkerClusterGroup.include({_spiderfied:null,unspiderfy:function(){this._unspiderfy.apply(this,arguments)},_spiderfierOnAdd:function(){this._map.on("click",this._unspiderfyWrapper,this),this._map.options.zoomAnimation&&this._map.on("zoomstart",this._unspiderfyZoomStart,this),this._map.on("zoomend",this._noanimationUnspiderfy,this),L.Browser.touch||this._map.getRenderer(this)},_spiderfierOnRemove:function(){this._map.off("click",this._unspiderfyWrapper,this),this._map.off("zoomstart",this._unspiderfyZoomStart,this),this._map.off("zoomanim",this._unspiderfyZoomAnim,this),this._map.off("zoomend",this._noanimationUnspiderfy,this),this._noanimationUnspiderfy()},_unspiderfyZoomStart:function(){this._map&&this._map.on("zoomanim",this._unspiderfyZoomAnim,this)},_unspiderfyZoomAnim:function(t){L.DomUtil.hasClass(this._map._mapPane,"leaflet-touching")||(this._map.off("zoomanim",this._unspiderfyZoomAnim,this),this._unspiderfy(t))},_unspiderfyWrapper:function(){this._unspiderfy()},_unspiderfy:function(t){this._spiderfied&&this._spiderfied.unspiderfy(t)},_noanimationUnspiderfy:function(){this._spiderfied&&this._spiderfied._noanimationUnspiderfy()},_unspiderfyLayer:function(t){t._spiderLeg&&(this._featureGroup.removeLayer(t),t.clusterShow&&t.clusterShow(),t.setZIndexOffset&&t.setZIndexOffset(0),this._map.removeLayer(t._spiderLeg),delete t._spiderLeg)}}),L.MarkerClusterGroup.include({refreshClusters:function(t){return t?t instanceof L.MarkerClusterGroup?t=t._topClusterLevel.getAllChildMarkers():t instanceof L.LayerGroup?t=t._layers:t instanceof L.MarkerCluster?t=t.getAllChildMarkers():t instanceof L.Marker&&(t=[t]):t=this._topClusterLevel.getAllChildMarkers(),this._flagParentsIconsNeedUpdate(t),this._refreshClustersIcons(),this.options.singleMarkerMode&&this._refreshSingleMarkerModeMarkers(t),this},_flagParentsIconsNeedUpdate:function(t){var e,i;for(e in t){i=t[e].__parent;while(i)i._iconNeedsUpdate=!0,i=i.__parent}},_refreshSingleMarkerModeMarkers:function(t){var e,i;for(e in t)i=t[e],this.hasLayer(i)&&i.setIcon(this._overrideMarkerIcon(i))}}),L.Marker.include({refreshIconOptions:function(t,e){var i=this.options.icon;return L.setOptions(i,t),this.setIcon(i),e&&this.__parent&&this.__parent._group.refreshClusters(this),this}}),t.MarkerClusterGroup=e,t.MarkerCluster=i,Object.defineProperty(t,"__esModule",{value:!0})}))},67166:function(t,e,i){(function(e,n){t.exports=n(i(47514))})(0,(function(t){"use strict";function e(t){return e="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},e(t)}function i(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}t=t&&t.hasOwnProperty("default")?t["default"]:t;var n={props:{options:{type:Object},type:{type:String},series:{type:Array,required:!0,default:function(){return[]}},width:{default:"100%"},height:{default:"auto"}},data:function(){return{chart:null}},beforeMount:function(){window.ApexCharts=t},mounted:function(){this.init()},created:function(){var t=this;this.$watch("options",(function(e){!t.chart&&e?t.init():t.chart.updateOptions(t.options)})),this.$watch("series",(function(e){!t.chart&&e?t.init():t.chart.updateSeries(t.series)}));var e=["type","width","height"];e.forEach((function(e){t.$watch(e,(function(){t.refresh()}))}))},beforeDestroy:function(){this.chart&&this.destroy()},render:function(t){return t("div")},methods:{init:function(){var e=this,i={chart:{type:this.type||this.options.chart.type||"line",height:this.height,width:this.width,events:{}},series:this.series};Object.keys(this.$listeners).forEach((function(t){i.chart.events[t]=e.$listeners[t]}));var n=this.extend(this.options,i);return this.chart=new t(this.$el,n),this.chart.render()},isObject:function(t){return t&&"object"===e(t)&&!Array.isArray(t)&&null!=t},extend:function(t,e){var n=this;"function"!==typeof Object.assign&&function(){Object.assign=function(t){if(void 0===t||null===t)throw new TypeError("Cannot convert undefined or null to object");for(var e=Object(t),i=1;i{"use strict";i.d(e,{Z:()=>g});var n=i(45243),o=function(t){return t&&"function"===typeof t.charAt?t.charAt(0).toUpperCase()+t.slice(1):t},r=function(t,e,i,r){var s=function(r){var s="set"+o(r),a=i[r].type===Object||i[r].type===Array||Array.isArray(i[r].type);i[r].custom&&t[s]?t.$watch(r,(function(e,i){t[s](e,i)}),{deep:a}):"setOptions"===s?t.$watch(r,(function(t,i){(0,n.setOptions)(e,t)}),{deep:a}):e[s]&&t.$watch(r,(function(t,i){e[s](t)}),{deep:a})};for(var a in i)s(a)},s=function(t){var e={};for(var i in t){var n=t[i];null!==n&&void 0!==n&&(e[i]=n)}return e},a=function(t,e){var i=e.options&&e.options.constructor===Object?e.options:{};t=t&&t.constructor===Object?t:{};var n=s(i);t=s(t);var o=e.$options.props;for(var r in t){var a=o[r]?o[r].default&&"function"===typeof o[r].default?o[r].default.call():o[r].default:Symbol("unique"),u=!1;u=Array.isArray(a)?JSON.stringify(a)===JSON.stringify(t[r]):a===t[r],n[r]&&!u?(console.warn(r+" props is overriding the value passed in the options props"),n[r]=t[r]):n[r]||(n[r]=t[r])}return n},u=function(t){var e=!1;while(t&&!e)void 0===t.mapObject?t=t.$parent:e=!0;return t},l={props:{pane:{type:String,default:"overlayPane"},attribution:{type:String,default:null,custom:!0},name:{type:String,custom:!0,default:void 0},layerType:{type:String,custom:!0,default:void 0},visible:{type:Boolean,custom:!0,default:!0}},mounted:function(){this.layerOptions={attribution:this.attribution,pane:this.pane}},beforeDestroy:function(){this.unbindPopup(),this.unbindTooltip(),this.parentContainer.removeLayer(this)},methods:{setAttribution:function(t,e){var i=this.$parent.mapObject.attributionControl;i.removeAttribution(e).addAttribution(t)},setName:function(){this.parentContainer.removeLayer(this),this.visible&&this.parentContainer.addLayer(this)},setLayerType:function(){this.parentContainer.removeLayer(this),this.visible&&this.parentContainer.addLayer(this)},setVisible:function(t){this.mapObject&&(t?this.parentContainer.addLayer(this):this.parentContainer.hideLayer?this.parentContainer.hideLayer(this):this.parentContainer.removeLayer(this))},unbindTooltip:function(){var t=this.mapObject?this.mapObject.getTooltip():null;t&&t.unbindTooltip()},unbindPopup:function(){var t=this.mapObject?this.mapObject.getPopup():null;t&&t.unbindPopup()},updateVisibleProp:function(t){this.$emit("update:visible",t)}}},p={mixins:[l],mounted:function(){this.layerGroupOptions=this.layerOptions},methods:{addLayer:function(t,e){e||this.mapObject.addLayer(t.mapObject),this.parentContainer.addLayer(t,!0)},removeLayer:function(t,e){e||this.mapObject.removeLayer(t.mapObject),this.parentContainer.removeLayer(t,!0)}}},c={props:{options:{type:Object,default:function(){return{}}}}},h={name:"LGeoJson",mixins:[p,c],props:{geojson:{type:[Object,Array],custom:!0,default:function(){return{}}},options:{type:Object,custom:!0,default:function(){return{}}},optionsStyle:{type:[Object,Function],custom:!0,default:null}},computed:{mergedOptions:function(){return a(Object.assign({},this.layerGroupOptions,{style:this.optionsStyle}),this)}},mounted:function(){var t=this;this.mapObject=(0,n.geoJSON)(this.geojson,this.mergedOptions),n.DomEvent.on(this.mapObject,this.$listeners),r(this,this.mapObject,this.$options.props),this.parentContainer=u(this.$parent),this.parentContainer.addLayer(this,!this.visible),this.$nextTick((function(){t.$emit("ready",t.mapObject)}))},beforeDestroy:function(){this.parentContainer.mapObject.removeLayer(this.mapObject)},methods:{setGeojson:function(t){this.mapObject.clearLayers(),this.mapObject.addData(t)},getGeoJSONData:function(){return this.mapObject.toGeoJSON()},getBounds:function(){return this.mapObject.getBounds()},setOptions:function(t,e){this.mapObject.clearLayers(),(0,n.setOptions)(this.mapObject,this.mergedOptions),this.mapObject.addData(this.geojson)},setOptionsStyle:function(t,e){this.mapObject.setStyle(t)}},render:function(){return null}};function d(t,e,i,n,o,r,s,a,u,l){"boolean"!==typeof s&&(u=a,a=s,s=!1);var p,c="function"===typeof i?i.options:i;if(t&&t.render&&(c.render=t.render,c.staticRenderFns=t.staticRenderFns,c._compiled=!0,o&&(c.functional=!0)),n&&(c._scopeId=n),r?(p=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"===typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),e&&e.call(this,u(t)),t&&t._registeredComponents&&t._registeredComponents.add(r)},c._ssrRegister=p):e&&(p=s?function(t){e.call(this,l(t,this.$root.$options.shadowRoot))}:function(t){e.call(this,a(t))}),p)if(c.functional){var h=c.render;c.render=function(t,e){return p.call(e),h(t,e)}}else{var d=c.beforeCreate;c.beforeCreate=d?[].concat(d,p):[p]}return i}var f=h,m=void 0,y=void 0,v=void 0,b=void 0,_=d({},m,f,y,b,v,!1,void 0,void 0,void 0);const g=_},75352:(t,e,i)=>{"use strict";i.d(e,{Z:()=>j});var n=i(45243),o=function(t,e){var i,n=function(){var n=[],o=arguments.length;while(o--)n[o]=arguments[o];var r=this;i&&clearTimeout(i),i=setTimeout((function(){t.apply(r,n),i=null}),e)};return n.cancel=function(){i&&clearTimeout(i)},n},r=function(t){return t&&"function"===typeof t.charAt?t.charAt(0).toUpperCase()+t.slice(1):t},s=function(t,e,i,o){var s=function(o){var s="set"+r(o),a=i[o].type===Object||i[o].type===Array||Array.isArray(i[o].type);i[o].custom&&t[s]?t.$watch(o,(function(e,i){t[s](e,i)}),{deep:a}):"setOptions"===s?t.$watch(o,(function(t,i){(0,n.setOptions)(e,t)}),{deep:a}):e[s]&&t.$watch(o,(function(t,i){e[s](t)}),{deep:a})};for(var a in i)s(a)},a=function(t){var e={};for(var i in t){var n=t[i];null!==n&&void 0!==n&&(e[i]=n)}return e},u=function(t,e){var i=e.options&&e.options.constructor===Object?e.options:{};t=t&&t.constructor===Object?t:{};var n=a(i);t=a(t);var o=e.$options.props;for(var r in t){var s=o[r]?o[r].default&&"function"===typeof o[r].default?o[r].default.call():o[r].default:Symbol("unique"),u=!1;u=Array.isArray(s)?JSON.stringify(s)===JSON.stringify(t[r]):s===t[r],n[r]&&!u?(console.warn(r+" props is overriding the value passed in the options props"),n[r]=t[r]):n[r]||(n[r]=t[r])}return n},l={props:{options:{type:Object,default:function(){return{}}}}},p={name:"LMap",mixins:[l],props:{center:{type:[Object,Array],custom:!0,default:function(){return[0,0]}},bounds:{type:[Array,Object],custom:!0,default:null},maxBounds:{type:[Array,Object],default:null},zoom:{type:Number,custom:!0,default:0},minZoom:{type:Number,default:null},maxZoom:{type:Number,default:null},paddingBottomRight:{type:Array,custom:!0,default:null},paddingTopLeft:{type:Array,custom:!0,default:null},padding:{type:Array,custom:!0,default:null},worldCopyJump:{type:Boolean,default:!1},crs:{type:Object,custom:!0,default:function(){return n.CRS.EPSG3857}},maxBoundsViscosity:{type:Number,default:null},inertia:{type:Boolean,default:null},inertiaDeceleration:{type:Number,default:null},inertiaMaxSpeed:{type:Number,default:null},easeLinearity:{type:Number,default:null},zoomAnimation:{type:Boolean,default:null},zoomAnimationThreshold:{type:Number,default:null},fadeAnimation:{type:Boolean,default:null},markerZoomAnimation:{type:Boolean,default:null},noBlockingAnimations:{type:Boolean,default:!1}},data:function(){return{ready:!1,lastSetCenter:this.center?(0,n.latLng)(this.center):null,lastSetBounds:this.bounds?(0,n.latLngBounds)(this.bounds):null,layerControl:void 0,layersToAdd:[],layersInControl:[]}},computed:{fitBoundsOptions:function(){var t={animate:!this.noBlockingAnimations&&null};return this.padding?t.padding=this.padding:(this.paddingBottomRight&&(t.paddingBottomRight=this.paddingBottomRight),this.paddingTopLeft&&(t.paddingTopLeft=this.paddingTopLeft)),t}},beforeDestroy:function(){this.debouncedMoveEndHandler&&this.debouncedMoveEndHandler.cancel(),this.mapObject&&this.mapObject.remove()},mounted:function(){var t=this,e=u({minZoom:this.minZoom,maxZoom:this.maxZoom,maxBounds:this.maxBounds,maxBoundsViscosity:this.maxBoundsViscosity,worldCopyJump:this.worldCopyJump,crs:this.crs,center:this.center,zoom:this.zoom,inertia:this.inertia,inertiaDeceleration:this.inertiaDeceleration,inertiaMaxSpeed:this.inertiaMaxSpeed,easeLinearity:this.easeLinearity,zoomAnimation:this.zoomAnimation,zoomAnimationThreshold:this.zoomAnimationThreshold,fadeAnimation:this.fadeAnimation,markerZoomAnimation:this.markerZoomAnimation},this);this.mapObject=(0,n.map)(this.$el,e),this.bounds&&this.fitBounds(this.bounds),this.debouncedMoveEndHandler=o(this.moveEndHandler,100),this.mapObject.on("moveend",this.debouncedMoveEndHandler),this.mapObject.on("overlayadd",this.overlayAddHandler),this.mapObject.on("overlayremove",this.overlayRemoveHandler),n.DomEvent.on(this.mapObject,this.$listeners),s(this,this.mapObject,this.$options.props),this.ready=!0,this.$emit("leaflet:load"),this.$nextTick((function(){t.$emit("ready",t.mapObject)}))},methods:{registerLayerControl:function(t){var e=this;this.layerControl=t,this.mapObject.addControl(t.mapObject),this.layersToAdd.forEach((function(t){e.layerControl.addLayer(t)})),this.layersToAdd=[]},addLayer:function(t,e){if(void 0!==t.layerType)if(void 0===this.layerControl)this.layersToAdd.push(t);else{var i=this.layersInControl.find((function(e){return e.mapObject._leaflet_id===t.mapObject._leaflet_id}));i||(this.layerControl.addLayer(t),this.layersInControl.push(t))}e||!1===t.visible||this.mapObject.addLayer(t.mapObject)},hideLayer:function(t){this.mapObject.removeLayer(t.mapObject)},removeLayer:function(t,e){void 0!==t.layerType&&(void 0===this.layerControl?this.layersToAdd=this.layersToAdd.filter((function(e){return e.name!==t.name})):(this.layerControl.removeLayer(t),this.layersInControl=this.layersInControl.filter((function(e){return e.mapObject._leaflet_id!==t.mapObject._leaflet_id})))),e||this.mapObject.removeLayer(t.mapObject)},setZoom:function(t,e){void 0!==t&&null!==t&&(this.mapObject.setZoom(t,{animate:!this.noBlockingAnimations&&null}),this.cacheMapView())},setCenter:function(t,e){if(null!=t){var i=(0,n.latLng)(t),o=this.lastSetCenter||this.mapObject.getCenter();o.lat===i.lat&&o.lng===i.lng||(this.lastSetCenter=i,this.mapObject.panTo(i,{animate:!this.noBlockingAnimations&&null}),this.cacheMapView(void 0,i))}},setBounds:function(t,e){if(t){var i=(0,n.latLngBounds)(t);if(i.isValid()){var o=this.lastSetBounds||this.mapObject.getBounds(),r=!o.equals(i,0);r&&(this.fitBounds(i),this.cacheMapView(i))}}},setPaddingBottomRight:function(t,e){this.paddingBottomRight=t},setPaddingTopLeft:function(t,e){this.paddingTopLeft=t},setPadding:function(t,e){this.padding=t},setCrs:function(t,e){var i=this.mapObject,n=i.getBounds();i.options.crs=t,this.fitBounds(n,{animate:!1})},fitBounds:function(t,e){this.mapObject.fitBounds(t,Object.assign({},this.fitBoundsOptions,e))},moveEndHandler:function(){this.$emit("update:zoom",this.mapObject.getZoom());var t=this.mapObject.getCenter();this.$emit("update:center",t);var e=this.mapObject.getBounds();this.$emit("update:bounds",e)},overlayAddHandler:function(t){var e=this.layersInControl.find((function(e){return e.name===t.name}));e&&e.updateVisibleProp(!0)},overlayRemoveHandler:function(t){var e=this.layersInControl.find((function(e){return e.name===t.name}));e&&e.updateVisibleProp(!1)},cacheMapView:function(t,e){this.lastSetBounds=t||this.mapObject.getBounds(),this.lastSetCenter=e||this.lastSetBounds.getCenter()}}};function c(t,e,i,n,o,r,s,a,u,l){"boolean"!==typeof s&&(u=a,a=s,s=!1);var p,c="function"===typeof i?i.options:i;if(t&&t.render&&(c.render=t.render,c.staticRenderFns=t.staticRenderFns,c._compiled=!0,o&&(c.functional=!0)),n&&(c._scopeId=n),r?(p=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"===typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),e&&e.call(this,u(t)),t&&t._registeredComponents&&t._registeredComponents.add(r)},c._ssrRegister=p):e&&(p=s?function(t){e.call(this,l(t,this.$root.$options.shadowRoot))}:function(t){e.call(this,a(t))}),p)if(c.functional){var h=c.render;c.render=function(t,e){return p.call(e),h(t,e)}}else{var d=c.beforeCreate;c.beforeCreate=d?[].concat(d,p):[p]}return i}var h,d="undefined"!==typeof navigator&&/msie [6-9]\\b/.test(navigator.userAgent.toLowerCase());function f(t){return function(t,e){return y(t,e)}}var m={};function y(t,e){var i=d?e.media||"default":t,n=m[i]||(m[i]={ids:new Set,styles:[]});if(!n.ids.has(t)){n.ids.add(t);var o=e.source;if(e.map&&(o+="\n/*# sourceURL="+e.map.sources[0]+" */",o+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(e.map))))+" */"),n.element||(n.element=document.createElement("style"),n.element.type="text/css",e.media&&n.element.setAttribute("media",e.media),void 0===h&&(h=document.head||document.getElementsByTagName("head")[0]),h.appendChild(n.element)),"styleSheet"in n.element)n.styles.push(o),n.element.styleSheet.cssText=n.styles.filter(Boolean).join("\n");else{var r=n.ids.size-1,s=document.createTextNode(o),a=n.element.childNodes;a[r]&&n.element.removeChild(a[r]),a.length?n.element.insertBefore(s,a[r]):n.element.appendChild(s)}}}var v=p,b=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"vue2leaflet-map"},[t.ready?t._t("default"):t._e()],2)},_=[],g=function(t){t&&t("data-v-09f270aa_0",{source:".vue2leaflet-map{height:100%;width:100%}",map:void 0,media:void 0})},O=void 0,C=void 0,L=!1,S=c({render:b,staticRenderFns:_},g,v,O,L,C,!1,f,void 0,void 0);const j=S},48380:(t,e,i)=>{"use strict";i.d(e,{Z:()=>g});var n=i(45243),o=function(t,e){var i,n=function(){var n=[],o=arguments.length;while(o--)n[o]=arguments[o];var r=this;i&&clearTimeout(i),i=setTimeout((function(){t.apply(r,n),i=null}),e)};return n.cancel=function(){i&&clearTimeout(i)},n},r=function(t){return t&&"function"===typeof t.charAt?t.charAt(0).toUpperCase()+t.slice(1):t},s=function(t,e,i,o){var s=function(o){var s="set"+r(o),a=i[o].type===Object||i[o].type===Array||Array.isArray(i[o].type);i[o].custom&&t[s]?t.$watch(o,(function(e,i){t[s](e,i)}),{deep:a}):"setOptions"===s?t.$watch(o,(function(t,i){(0,n.setOptions)(e,t)}),{deep:a}):e[s]&&t.$watch(o,(function(t,i){e[s](t)}),{deep:a})};for(var a in i)s(a)},a=function(t){var e={};for(var i in t){var n=t[i];null!==n&&void 0!==n&&(e[i]=n)}return e},u=function(t,e){var i=e.options&&e.options.constructor===Object?e.options:{};t=t&&t.constructor===Object?t:{};var n=a(i);t=a(t);var o=e.$options.props;for(var r in t){var s=o[r]?o[r].default&&"function"===typeof o[r].default?o[r].default.call():o[r].default:Symbol("unique"),u=!1;u=Array.isArray(s)?JSON.stringify(s)===JSON.stringify(t[r]):s===t[r],n[r]&&!u?(console.warn(r+" props is overriding the value passed in the options props"),n[r]=t[r]):n[r]||(n[r]=t[r])}return n},l=function(t){var e=!1;while(t&&!e)void 0===t.mapObject?t=t.$parent:e=!0;return t},p={props:{pane:{type:String,default:"overlayPane"},attribution:{type:String,default:null,custom:!0},name:{type:String,custom:!0,default:void 0},layerType:{type:String,custom:!0,default:void 0},visible:{type:Boolean,custom:!0,default:!0}},mounted:function(){this.layerOptions={attribution:this.attribution,pane:this.pane}},beforeDestroy:function(){this.unbindPopup(),this.unbindTooltip(),this.parentContainer.removeLayer(this)},methods:{setAttribution:function(t,e){var i=this.$parent.mapObject.attributionControl;i.removeAttribution(e).addAttribution(t)},setName:function(){this.parentContainer.removeLayer(this),this.visible&&this.parentContainer.addLayer(this)},setLayerType:function(){this.parentContainer.removeLayer(this),this.visible&&this.parentContainer.addLayer(this)},setVisible:function(t){this.mapObject&&(t?this.parentContainer.addLayer(this):this.parentContainer.hideLayer?this.parentContainer.hideLayer(this):this.parentContainer.removeLayer(this))},unbindTooltip:function(){var t=this.mapObject?this.mapObject.getTooltip():null;t&&t.unbindTooltip()},unbindPopup:function(){var t=this.mapObject?this.mapObject.getPopup():null;t&&t.unbindPopup()},updateVisibleProp:function(t){this.$emit("update:visible",t)}}},c={props:{options:{type:Object,default:function(){return{}}}}},h={name:"LMarker",mixins:[p,c],props:{pane:{type:String,default:"markerPane"},draggable:{type:Boolean,custom:!0,default:!1},latLng:{type:[Object,Array],custom:!0,default:null},icon:{type:[Object],custom:!1,default:function(){return new n.Icon.Default}},opacity:{type:Number,custom:!1,default:1},zIndexOffset:{type:Number,custom:!1,default:null}},data:function(){return{ready:!1}},beforeDestroy:function(){this.debouncedLatLngSync&&this.debouncedLatLngSync.cancel()},mounted:function(){var t=this,e=u(Object.assign({},this.layerOptions,{icon:this.icon,zIndexOffset:this.zIndexOffset,draggable:this.draggable,opacity:this.opacity}),this);this.mapObject=(0,n.marker)(this.latLng,e),n.DomEvent.on(this.mapObject,this.$listeners),this.debouncedLatLngSync=o(this.latLngSync,100),this.mapObject.on("move",this.debouncedLatLngSync),s(this,this.mapObject,this.$options.props),this.parentContainer=l(this.$parent),this.parentContainer.addLayer(this,!this.visible),this.ready=!0,this.$nextTick((function(){t.$emit("ready",t.mapObject)}))},methods:{setDraggable:function(t,e){this.mapObject.dragging&&(t?this.mapObject.dragging.enable():this.mapObject.dragging.disable())},setLatLng:function(t){if(null!=t&&this.mapObject){var e=this.mapObject.getLatLng(),i=(0,n.latLng)(t);i.lat===e.lat&&i.lng===e.lng||this.mapObject.setLatLng(i)}},latLngSync:function(t){this.$emit("update:latLng",t.latlng),this.$emit("update:lat-lng",t.latlng)}},render:function(t){return this.ready&&this.$slots.default?t("div",{style:{display:"none"}},this.$slots.default):null}};function d(t,e,i,n,o,r,s,a,u,l){"boolean"!==typeof s&&(u=a,a=s,s=!1);var p,c="function"===typeof i?i.options:i;if(t&&t.render&&(c.render=t.render,c.staticRenderFns=t.staticRenderFns,c._compiled=!0,o&&(c.functional=!0)),n&&(c._scopeId=n),r?(p=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"===typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),e&&e.call(this,u(t)),t&&t._registeredComponents&&t._registeredComponents.add(r)},c._ssrRegister=p):e&&(p=s?function(t){e.call(this,l(t,this.$root.$options.shadowRoot))}:function(t){e.call(this,a(t))}),p)if(c.functional){var h=c.render;c.render=function(t,e){return p.call(e),h(t,e)}}else{var d=c.beforeCreate;c.beforeCreate=d?[].concat(d,p):[p]}return i}var f=h,m=void 0,y=void 0,v=void 0,b=void 0,_=d({},m,f,y,b,v,!1,void 0,void 0,void 0);const g=_},32727:(t,e,i)=>{"use strict";i.d(e,{Z:()=>L});var n=i(45243),o=function(t){return t&&"function"===typeof t.charAt?t.charAt(0).toUpperCase()+t.slice(1):t},r=function(t,e,i,r){var s=function(r){var s="set"+o(r),a=i[r].type===Object||i[r].type===Array||Array.isArray(i[r].type);i[r].custom&&t[s]?t.$watch(r,(function(e,i){t[s](e,i)}),{deep:a}):"setOptions"===s?t.$watch(r,(function(t,i){(0,n.setOptions)(e,t)}),{deep:a}):e[s]&&t.$watch(r,(function(t,i){e[s](t)}),{deep:a})};for(var a in i)s(a)},s=function(t){var e={};for(var i in t){var n=t[i];null!==n&&void 0!==n&&(e[i]=n)}return e},a=function(t,e){var i=e.options&&e.options.constructor===Object?e.options:{};t=t&&t.constructor===Object?t:{};var n=s(i);t=s(t);var o=e.$options.props;for(var r in t){var a=o[r]?o[r].default&&"function"===typeof o[r].default?o[r].default.call():o[r].default:Symbol("unique"),u=!1;u=Array.isArray(a)?JSON.stringify(a)===JSON.stringify(t[r]):a===t[r],n[r]&&!u?(console.warn(r+" props is overriding the value passed in the options props"),n[r]=t[r]):n[r]||(n[r]=t[r])}return n},u=function(t){var e=!1;while(t&&!e)void 0===t.mapObject?t=t.$parent:e=!0;return t},l={props:{pane:{type:String,default:"overlayPane"},attribution:{type:String,default:null,custom:!0},name:{type:String,custom:!0,default:void 0},layerType:{type:String,custom:!0,default:void 0},visible:{type:Boolean,custom:!0,default:!0}},mounted:function(){this.layerOptions={attribution:this.attribution,pane:this.pane}},beforeDestroy:function(){this.unbindPopup(),this.unbindTooltip(),this.parentContainer.removeLayer(this)},methods:{setAttribution:function(t,e){var i=this.$parent.mapObject.attributionControl;i.removeAttribution(e).addAttribution(t)},setName:function(){this.parentContainer.removeLayer(this),this.visible&&this.parentContainer.addLayer(this)},setLayerType:function(){this.parentContainer.removeLayer(this),this.visible&&this.parentContainer.addLayer(this)},setVisible:function(t){this.mapObject&&(t?this.parentContainer.addLayer(this):this.parentContainer.hideLayer?this.parentContainer.hideLayer(this):this.parentContainer.removeLayer(this))},unbindTooltip:function(){var t=this.mapObject?this.mapObject.getTooltip():null;t&&t.unbindTooltip()},unbindPopup:function(){var t=this.mapObject?this.mapObject.getPopup():null;t&&t.unbindPopup()},updateVisibleProp:function(t){this.$emit("update:visible",t)}}},p={mixins:[l],props:{pane:{type:String,default:"tilePane"},opacity:{type:Number,custom:!1,default:1},zIndex:{type:Number,default:1},tileSize:{type:Number,default:256},noWrap:{type:Boolean,default:!1}},mounted:function(){this.gridLayerOptions=Object.assign({},this.layerOptions,{pane:this.pane,opacity:this.opacity,zIndex:this.zIndex,tileSize:this.tileSize,noWrap:this.noWrap})}},c={mixins:[p],props:{tms:{type:Boolean,default:!1},subdomains:{type:[String,Array],default:"abc",validator:function(t){return"string"===typeof t||!!Array.isArray(t)&&t.every((function(t){return"string"===typeof t}))}},detectRetina:{type:Boolean,default:!1}},mounted:function(){this.tileLayerOptions=Object.assign({},this.gridLayerOptions,{tms:this.tms,subdomains:this.subdomains,detectRetina:this.detectRetina})},render:function(){return null}},h={props:{options:{type:Object,default:function(){return{}}}}},d={name:"LTileLayer",mixins:[c,h],props:{url:{type:String,default:null},tileLayerClass:{type:Function,default:n.tileLayer}},mounted:function(){var t=this,e=a(this.tileLayerOptions,this);this.mapObject=this.tileLayerClass(this.url,e),n.DomEvent.on(this.mapObject,this.$listeners),r(this,this.mapObject,this.$options.props),this.parentContainer=u(this.$parent),this.parentContainer.addLayer(this,!this.visible),this.$nextTick((function(){t.$emit("ready",t.mapObject)}))}};function f(t,e,i,n,o,r,s,a,u,l){"boolean"!==typeof s&&(u=a,a=s,s=!1);var p,c="function"===typeof i?i.options:i;if(t&&t.render&&(c.render=t.render,c.staticRenderFns=t.staticRenderFns,c._compiled=!0,o&&(c.functional=!0)),n&&(c._scopeId=n),r?(p=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"===typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),e&&e.call(this,u(t)),t&&t._registeredComponents&&t._registeredComponents.add(r)},c._ssrRegister=p):e&&(p=s?function(t){e.call(this,l(t,this.$root.$options.shadowRoot))}:function(t){e.call(this,a(t))}),p)if(c.functional){var h=c.render;c.render=function(t,e){return p.call(e),h(t,e)}}else{var d=c.beforeCreate;c.beforeCreate=d?[].concat(d,p):[p]}return i}var m=d,y=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div")},v=[],b=void 0,_=void 0,g=void 0,O=!1,C=f({render:y,staticRenderFns:v},b,m,_,O,g,!1,void 0,void 0,void 0);const L=C},28511:(t,e,i)=>{"use strict";i.r(e),i.d(e,{CircleMixin:()=>f,ControlMixin:()=>y,GridLayerMixin:()=>_,ImageOverlayMixin:()=>L,InteractiveLayerMixin:()=>j,LCircle:()=>jt,LCircleMarker:()=>Zt,LControl:()=>pe,LControlAttribution:()=>je,LControlLayers:()=>Ue,LControlScale:()=>ei,LControlZoom:()=>yi,LFeatureGroup:()=>Ri,LGeoJson:()=>Mi.Z,LGridLayer:()=>tn,LIcon:()=>vn,LIconDefault:()=>Tn,LImageOverlay:()=>Zn,LLayerGroup:()=>lo,LMap:()=>po.Z,LMarker:()=>co.Z,LPolygon:()=>Mo,LPolyline:()=>er,LPopup:()=>vr,LRectangle:()=>Fr,LTileLayer:()=>Ur.Z,LTooltip:()=>is,LWMSTileLayer:()=>Os,LayerGroupMixin:()=>x,LayerMixin:()=>A,OptionsMixin:()=>P,PathMixin:()=>E,PolygonMixin:()=>D,PolylineMixin:()=>X,PopperMixin:()=>W,TileLayerMixin:()=>Y,TileLayerWMSMixin:()=>ot,capitalizeFirstLetter:()=>r,collectionCleaner:()=>a,debounce:()=>o,findRealParent:()=>l,optionsMerger:()=>u,propsBinder:()=>s});var n=i(45243),o=function(t,e){var i,n=function(){var n=[],o=arguments.length;while(o--)n[o]=arguments[o];var r=this;i&&clearTimeout(i),i=setTimeout((function(){t.apply(r,n),i=null}),e)};return n.cancel=function(){i&&clearTimeout(i)},n},r=function(t){return t&&"function"===typeof t.charAt?t.charAt(0).toUpperCase()+t.slice(1):t},s=function(t,e,i,o){var s=function(o){var s="set"+r(o),a=i[o].type===Object||i[o].type===Array||Array.isArray(i[o].type);i[o].custom&&t[s]?t.$watch(o,(function(e,i){t[s](e,i)}),{deep:a}):"setOptions"===s?t.$watch(o,(function(t,i){(0,n.setOptions)(e,t)}),{deep:a}):e[s]&&t.$watch(o,(function(t,i){e[s](t)}),{deep:a})};for(var a in i)s(a)},a=function(t){var e={};for(var i in t){var n=t[i];null!==n&&void 0!==n&&(e[i]=n)}return e},u=function(t,e){var i=e.options&&e.options.constructor===Object?e.options:{};t=t&&t.constructor===Object?t:{};var n=a(i);t=a(t);var o=e.$options.props;for(var r in t){var s=o[r]?o[r].default&&"function"===typeof o[r].default?o[r].default.call():o[r].default:Symbol("unique"),u=!1;u=Array.isArray(s)?JSON.stringify(s)===JSON.stringify(t[r]):s===t[r],n[r]&&!u?(console.warn(r+" props is overriding the value passed in the options props"),n[r]=t[r]):n[r]||(n[r]=t[r])}return n},l=function(t){var e=!1;while(t&&!e)void 0===t.mapObject?t=t.$parent:e=!0;return t},p={props:{pane:{type:String,default:"overlayPane"},attribution:{type:String,default:null,custom:!0},name:{type:String,custom:!0,default:void 0},layerType:{type:String,custom:!0,default:void 0},visible:{type:Boolean,custom:!0,default:!0}},mounted:function(){this.layerOptions={attribution:this.attribution,pane:this.pane}},beforeDestroy:function(){this.unbindPopup(),this.unbindTooltip(),this.parentContainer.removeLayer(this)},methods:{setAttribution:function(t,e){var i=this.$parent.mapObject.attributionControl;i.removeAttribution(e).addAttribution(t)},setName:function(){this.parentContainer.removeLayer(this),this.visible&&this.parentContainer.addLayer(this)},setLayerType:function(){this.parentContainer.removeLayer(this),this.visible&&this.parentContainer.addLayer(this)},setVisible:function(t){this.mapObject&&(t?this.parentContainer.addLayer(this):this.parentContainer.hideLayer?this.parentContainer.hideLayer(this):this.parentContainer.removeLayer(this))},unbindTooltip:function(){var t=this.mapObject?this.mapObject.getTooltip():null;t&&t.unbindTooltip()},unbindPopup:function(){var t=this.mapObject?this.mapObject.getPopup():null;t&&t.unbindPopup()},updateVisibleProp:function(t){this.$emit("update:visible",t)}}},c={props:{interactive:{type:Boolean,default:!0},bubblingMouseEvents:{type:Boolean,default:!0}},mounted:function(){this.interactiveLayerOptions={interactive:this.interactive,bubblingMouseEvents:this.bubblingMouseEvents}}},h={mixins:[p,c],props:{lStyle:{type:Object,custom:!0,default:null},stroke:{type:Boolean,custom:!0,default:!0},color:{type:String,custom:!0,default:"#3388ff"},weight:{type:Number,custom:!0,default:3},opacity:{type:Number,custom:!0,default:1},lineCap:{type:String,custom:!0,default:"round"},lineJoin:{type:String,custom:!0,default:"round"},dashArray:{type:String,custom:!0,default:null},dashOffset:{type:String,custom:!0,default:null},fill:{type:Boolean,custom:!0,default:!1},fillColor:{type:String,custom:!0,default:"#3388ff"},fillOpacity:{type:Number,custom:!0,default:.2},fillRule:{type:String,custom:!0,default:"evenodd"},className:{type:String,custom:!0,default:null}},mounted:function(){if(this.pathOptions=Object.assign({},this.layerOptions,this.interactiveLayerOptions,{stroke:this.stroke,color:this.color,weight:this.weight,opacity:this.opacity,lineCap:this.lineCap,lineJoin:this.lineJoin,dashArray:this.dashArray,dashOffset:this.dashOffset,fill:this.fill,fillColor:this.fillColor,fillOpacity:this.fillOpacity,fillRule:this.fillRule,className:this.className}),this.lStyle)for(var t in console.warn("lStyle is deprecated and is going to be removed in the next major version"),this.lStyle)this.pathOptions[t]=this.lStyle[t]},beforeDestroy:function(){this.parentContainer?this.parentContainer.removeLayer(this):console.error("Missing parent container")},methods:{setLStyle:function(t){this.mapObject.setStyle(t)},setStroke:function(t){this.mapObject.setStyle({stroke:t})},setColor:function(t){this.mapObject.setStyle({color:t})},setWeight:function(t){this.mapObject.setStyle({weight:t})},setOpacity:function(t){this.mapObject.setStyle({opacity:t})},setLineCap:function(t){this.mapObject.setStyle({lineCap:t})},setLineJoin:function(t){this.mapObject.setStyle({lineJoin:t})},setDashArray:function(t){this.mapObject.setStyle({dashArray:t})},setDashOffset:function(t){this.mapObject.setStyle({dashOffset:t})},setFill:function(t){this.mapObject.setStyle({fill:t})},setFillColor:function(t){this.mapObject.setStyle({fillColor:t})},setFillOpacity:function(t){this.mapObject.setStyle({fillOpacity:t})},setFillRule:function(t){this.mapObject.setStyle({fillRule:t})},setClassName:function(t){this.mapObject.setStyle({className:t})}}},d={mixins:[h],props:{fill:{type:Boolean,custom:!0,default:!0},radius:{type:Number,default:null}},mounted:function(){this.circleOptions=Object.assign({},this.pathOptions,{radius:this.radius})}};const f=d;var m={props:{position:{type:String,default:"topright"}},mounted:function(){this.controlOptions={position:this.position}},beforeDestroy:function(){this.mapObject&&this.mapObject.remove()}};const y=m;var v={props:{pane:{type:String,default:"overlayPane"},attribution:{type:String,default:null,custom:!0},name:{type:String,custom:!0,default:void 0},layerType:{type:String,custom:!0,default:void 0},visible:{type:Boolean,custom:!0,default:!0}},mounted:function(){this.layerOptions={attribution:this.attribution,pane:this.pane}},beforeDestroy:function(){this.unbindPopup(),this.unbindTooltip(),this.parentContainer.removeLayer(this)},methods:{setAttribution:function(t,e){var i=this.$parent.mapObject.attributionControl;i.removeAttribution(e).addAttribution(t)},setName:function(){this.parentContainer.removeLayer(this),this.visible&&this.parentContainer.addLayer(this)},setLayerType:function(){this.parentContainer.removeLayer(this),this.visible&&this.parentContainer.addLayer(this)},setVisible:function(t){this.mapObject&&(t?this.parentContainer.addLayer(this):this.parentContainer.hideLayer?this.parentContainer.hideLayer(this):this.parentContainer.removeLayer(this))},unbindTooltip:function(){var t=this.mapObject?this.mapObject.getTooltip():null;t&&t.unbindTooltip()},unbindPopup:function(){var t=this.mapObject?this.mapObject.getPopup():null;t&&t.unbindPopup()},updateVisibleProp:function(t){this.$emit("update:visible",t)}}},b={mixins:[v],props:{pane:{type:String,default:"tilePane"},opacity:{type:Number,custom:!1,default:1},zIndex:{type:Number,default:1},tileSize:{type:Number,default:256},noWrap:{type:Boolean,default:!1}},mounted:function(){this.gridLayerOptions=Object.assign({},this.layerOptions,{pane:this.pane,opacity:this.opacity,zIndex:this.zIndex,tileSize:this.tileSize,noWrap:this.noWrap})}};const _=b;var g={props:{pane:{type:String,default:"overlayPane"},attribution:{type:String,default:null,custom:!0},name:{type:String,custom:!0,default:void 0},layerType:{type:String,custom:!0,default:void 0},visible:{type:Boolean,custom:!0,default:!0}},mounted:function(){this.layerOptions={attribution:this.attribution,pane:this.pane}},beforeDestroy:function(){this.unbindPopup(),this.unbindTooltip(),this.parentContainer.removeLayer(this)},methods:{setAttribution:function(t,e){var i=this.$parent.mapObject.attributionControl;i.removeAttribution(e).addAttribution(t)},setName:function(){this.parentContainer.removeLayer(this),this.visible&&this.parentContainer.addLayer(this)},setLayerType:function(){this.parentContainer.removeLayer(this),this.visible&&this.parentContainer.addLayer(this)},setVisible:function(t){this.mapObject&&(t?this.parentContainer.addLayer(this):this.parentContainer.hideLayer?this.parentContainer.hideLayer(this):this.parentContainer.removeLayer(this))},unbindTooltip:function(){var t=this.mapObject?this.mapObject.getTooltip():null;t&&t.unbindTooltip()},unbindPopup:function(){var t=this.mapObject?this.mapObject.getPopup():null;t&&t.unbindPopup()},updateVisibleProp:function(t){this.$emit("update:visible",t)}}},O={props:{interactive:{type:Boolean,default:!0},bubblingMouseEvents:{type:Boolean,default:!0}},mounted:function(){this.interactiveLayerOptions={interactive:this.interactive,bubblingMouseEvents:this.bubblingMouseEvents}}},C={mixins:[g,O],props:{url:{type:String,custom:!0},bounds:{custom:!0},opacity:{type:Number,custom:!0,default:1},alt:{type:String,default:""},interactive:{type:Boolean,default:!1},crossOrigin:{type:Boolean,default:!1},errorOverlayUrl:{type:String,custom:!0,default:""},zIndex:{type:Number,custom:!0,default:1},className:{type:String,default:""}},mounted:function(){this.imageOverlayOptions=Object.assign({},this.layerOptions,this.interactiveLayerOptions,{opacity:this.opacity,alt:this.alt,interactive:this.interactive,crossOrigin:this.crossOrigin,errorOverlayUrl:this.errorOverlayUrl,zIndex:this.zIndex,className:this.className})},methods:{setOpacity:function(t){return this.mapObject.setOpacity(t)},setUrl:function(t){return this.mapObject.setUrl(t)},setBounds:function(t){return this.mapObject.setBounds(t)},getBounds:function(){return this.mapObject.getBounds()},getElement:function(){return this.mapObject.getElement()},bringToFront:function(){return this.mapObject.bringToFront()},bringToBack:function(){return this.mapObject.bringToBack()}},render:function(){return null}};const L=C;var S={props:{interactive:{type:Boolean,default:!0},bubblingMouseEvents:{type:Boolean,default:!0}},mounted:function(){this.interactiveLayerOptions={interactive:this.interactive,bubblingMouseEvents:this.bubblingMouseEvents}}};const j=S;var $={props:{pane:{type:String,default:"overlayPane"},attribution:{type:String,default:null,custom:!0},name:{type:String,custom:!0,default:void 0},layerType:{type:String,custom:!0,default:void 0},visible:{type:Boolean,custom:!0,default:!0}},mounted:function(){this.layerOptions={attribution:this.attribution,pane:this.pane}},beforeDestroy:function(){this.unbindPopup(),this.unbindTooltip(),this.parentContainer.removeLayer(this)},methods:{setAttribution:function(t,e){var i=this.$parent.mapObject.attributionControl;i.removeAttribution(e).addAttribution(t)},setName:function(){this.parentContainer.removeLayer(this),this.visible&&this.parentContainer.addLayer(this)},setLayerType:function(){this.parentContainer.removeLayer(this),this.visible&&this.parentContainer.addLayer(this)},setVisible:function(t){this.mapObject&&(t?this.parentContainer.addLayer(this):this.parentContainer.hideLayer?this.parentContainer.hideLayer(this):this.parentContainer.removeLayer(this))},unbindTooltip:function(){var t=this.mapObject?this.mapObject.getTooltip():null;t&&t.unbindTooltip()},unbindPopup:function(){var t=this.mapObject?this.mapObject.getPopup():null;t&&t.unbindPopup()},updateVisibleProp:function(t){this.$emit("update:visible",t)}}};const A=$;var T={props:{pane:{type:String,default:"overlayPane"},attribution:{type:String,default:null,custom:!0},name:{type:String,custom:!0,default:void 0},layerType:{type:String,custom:!0,default:void 0},visible:{type:Boolean,custom:!0,default:!0}},mounted:function(){this.layerOptions={attribution:this.attribution,pane:this.pane}},beforeDestroy:function(){this.unbindPopup(),this.unbindTooltip(),this.parentContainer.removeLayer(this)},methods:{setAttribution:function(t,e){var i=this.$parent.mapObject.attributionControl;i.removeAttribution(e).addAttribution(t)},setName:function(){this.parentContainer.removeLayer(this),this.visible&&this.parentContainer.addLayer(this)},setLayerType:function(){this.parentContainer.removeLayer(this),this.visible&&this.parentContainer.addLayer(this)},setVisible:function(t){this.mapObject&&(t?this.parentContainer.addLayer(this):this.parentContainer.hideLayer?this.parentContainer.hideLayer(this):this.parentContainer.removeLayer(this))},unbindTooltip:function(){var t=this.mapObject?this.mapObject.getTooltip():null;t&&t.unbindTooltip()},unbindPopup:function(){var t=this.mapObject?this.mapObject.getPopup():null;t&&t.unbindPopup()},updateVisibleProp:function(t){this.$emit("update:visible",t)}}},w={mixins:[T],mounted:function(){this.layerGroupOptions=this.layerOptions},methods:{addLayer:function(t,e){e||this.mapObject.addLayer(t.mapObject),this.parentContainer.addLayer(t,!0)},removeLayer:function(t,e){e||this.mapObject.removeLayer(t.mapObject),this.parentContainer.removeLayer(t,!0)}}};const x=w;var N={props:{options:{type:Object,default:function(){return{}}}}};const P=N;var R={props:{pane:{type:String,default:"overlayPane"},attribution:{type:String,default:null,custom:!0},name:{type:String,custom:!0,default:void 0},layerType:{type:String,custom:!0,default:void 0},visible:{type:Boolean,custom:!0,default:!0}},mounted:function(){this.layerOptions={attribution:this.attribution,pane:this.pane}},beforeDestroy:function(){this.unbindPopup(),this.unbindTooltip(),this.parentContainer.removeLayer(this)},methods:{setAttribution:function(t,e){var i=this.$parent.mapObject.attributionControl;i.removeAttribution(e).addAttribution(t)},setName:function(){this.parentContainer.removeLayer(this),this.visible&&this.parentContainer.addLayer(this)},setLayerType:function(){this.parentContainer.removeLayer(this),this.visible&&this.parentContainer.addLayer(this)},setVisible:function(t){this.mapObject&&(t?this.parentContainer.addLayer(this):this.parentContainer.hideLayer?this.parentContainer.hideLayer(this):this.parentContainer.removeLayer(this))},unbindTooltip:function(){var t=this.mapObject?this.mapObject.getTooltip():null;t&&t.unbindTooltip()},unbindPopup:function(){var t=this.mapObject?this.mapObject.getPopup():null;t&&t.unbindPopup()},updateVisibleProp:function(t){this.$emit("update:visible",t)}}},M={props:{interactive:{type:Boolean,default:!0},bubblingMouseEvents:{type:Boolean,default:!0}},mounted:function(){this.interactiveLayerOptions={interactive:this.interactive,bubblingMouseEvents:this.bubblingMouseEvents}}},k={mixins:[R,M],props:{lStyle:{type:Object,custom:!0,default:null},stroke:{type:Boolean,custom:!0,default:!0},color:{type:String,custom:!0,default:"#3388ff"},weight:{type:Number,custom:!0,default:3},opacity:{type:Number,custom:!0,default:1},lineCap:{type:String,custom:!0,default:"round"},lineJoin:{type:String,custom:!0,default:"round"},dashArray:{type:String,custom:!0,default:null},dashOffset:{type:String,custom:!0,default:null},fill:{type:Boolean,custom:!0,default:!1},fillColor:{type:String,custom:!0,default:"#3388ff"},fillOpacity:{type:Number,custom:!0,default:.2},fillRule:{type:String,custom:!0,default:"evenodd"},className:{type:String,custom:!0,default:null}},mounted:function(){if(this.pathOptions=Object.assign({},this.layerOptions,this.interactiveLayerOptions,{stroke:this.stroke,color:this.color,weight:this.weight,opacity:this.opacity,lineCap:this.lineCap,lineJoin:this.lineJoin,dashArray:this.dashArray,dashOffset:this.dashOffset,fill:this.fill,fillColor:this.fillColor,fillOpacity:this.fillOpacity,fillRule:this.fillRule,className:this.className}),this.lStyle)for(var t in console.warn("lStyle is deprecated and is going to be removed in the next major version"),this.lStyle)this.pathOptions[t]=this.lStyle[t]},beforeDestroy:function(){this.parentContainer?this.parentContainer.removeLayer(this):console.error("Missing parent container")},methods:{setLStyle:function(t){this.mapObject.setStyle(t)},setStroke:function(t){this.mapObject.setStyle({stroke:t})},setColor:function(t){this.mapObject.setStyle({color:t})},setWeight:function(t){this.mapObject.setStyle({weight:t})},setOpacity:function(t){this.mapObject.setStyle({opacity:t})},setLineCap:function(t){this.mapObject.setStyle({lineCap:t})},setLineJoin:function(t){this.mapObject.setStyle({lineJoin:t})},setDashArray:function(t){this.mapObject.setStyle({dashArray:t})},setDashOffset:function(t){this.mapObject.setStyle({dashOffset:t})},setFill:function(t){this.mapObject.setStyle({fill:t})},setFillColor:function(t){this.mapObject.setStyle({fillColor:t})},setFillOpacity:function(t){this.mapObject.setStyle({fillOpacity:t})},setFillRule:function(t){this.mapObject.setStyle({fillRule:t})},setClassName:function(t){this.mapObject.setStyle({className:t})}}};const E=k;var B={props:{pane:{type:String,default:"overlayPane"},attribution:{type:String,default:null,custom:!0},name:{type:String,custom:!0,default:void 0},layerType:{type:String,custom:!0,default:void 0},visible:{type:Boolean,custom:!0,default:!0}},mounted:function(){this.layerOptions={attribution:this.attribution,pane:this.pane}},beforeDestroy:function(){this.unbindPopup(),this.unbindTooltip(),this.parentContainer.removeLayer(this)},methods:{setAttribution:function(t,e){var i=this.$parent.mapObject.attributionControl;i.removeAttribution(e).addAttribution(t)},setName:function(){this.parentContainer.removeLayer(this),this.visible&&this.parentContainer.addLayer(this)},setLayerType:function(){this.parentContainer.removeLayer(this),this.visible&&this.parentContainer.addLayer(this)},setVisible:function(t){this.mapObject&&(t?this.parentContainer.addLayer(this):this.parentContainer.hideLayer?this.parentContainer.hideLayer(this):this.parentContainer.removeLayer(this))},unbindTooltip:function(){var t=this.mapObject?this.mapObject.getTooltip():null;t&&t.unbindTooltip()},unbindPopup:function(){var t=this.mapObject?this.mapObject.getPopup():null;t&&t.unbindPopup()},updateVisibleProp:function(t){this.$emit("update:visible",t)}}},I={props:{interactive:{type:Boolean,default:!0},bubblingMouseEvents:{type:Boolean,default:!0}},mounted:function(){this.interactiveLayerOptions={interactive:this.interactive,bubblingMouseEvents:this.bubblingMouseEvents}}},F={mixins:[B,I],props:{lStyle:{type:Object,custom:!0,default:null},stroke:{type:Boolean,custom:!0,default:!0},color:{type:String,custom:!0,default:"#3388ff"},weight:{type:Number,custom:!0,default:3},opacity:{type:Number,custom:!0,default:1},lineCap:{type:String,custom:!0,default:"round"},lineJoin:{type:String,custom:!0,default:"round"},dashArray:{type:String,custom:!0,default:null},dashOffset:{type:String,custom:!0,default:null},fill:{type:Boolean,custom:!0,default:!1},fillColor:{type:String,custom:!0,default:"#3388ff"},fillOpacity:{type:Number,custom:!0,default:.2},fillRule:{type:String,custom:!0,default:"evenodd"},className:{type:String,custom:!0,default:null}},mounted:function(){if(this.pathOptions=Object.assign({},this.layerOptions,this.interactiveLayerOptions,{stroke:this.stroke,color:this.color,weight:this.weight,opacity:this.opacity,lineCap:this.lineCap,lineJoin:this.lineJoin,dashArray:this.dashArray,dashOffset:this.dashOffset,fill:this.fill,fillColor:this.fillColor,fillOpacity:this.fillOpacity,fillRule:this.fillRule,className:this.className}),this.lStyle)for(var t in console.warn("lStyle is deprecated and is going to be removed in the next major version"),this.lStyle)this.pathOptions[t]=this.lStyle[t]},beforeDestroy:function(){this.parentContainer?this.parentContainer.removeLayer(this):console.error("Missing parent container")},methods:{setLStyle:function(t){this.mapObject.setStyle(t)},setStroke:function(t){this.mapObject.setStyle({stroke:t})},setColor:function(t){this.mapObject.setStyle({color:t})},setWeight:function(t){this.mapObject.setStyle({weight:t})},setOpacity:function(t){this.mapObject.setStyle({opacity:t})},setLineCap:function(t){this.mapObject.setStyle({lineCap:t})},setLineJoin:function(t){this.mapObject.setStyle({lineJoin:t})},setDashArray:function(t){this.mapObject.setStyle({dashArray:t})},setDashOffset:function(t){this.mapObject.setStyle({dashOffset:t})},setFill:function(t){this.mapObject.setStyle({fill:t})},setFillColor:function(t){this.mapObject.setStyle({fillColor:t})},setFillOpacity:function(t){this.mapObject.setStyle({fillOpacity:t})},setFillRule:function(t){this.mapObject.setStyle({fillRule:t})},setClassName:function(t){this.mapObject.setStyle({className:t})}}},U={mixins:[F],props:{smoothFactor:{type:Number,custom:!0,default:1},noClip:{type:Boolean,custom:!0,default:!1}},data:function(){return{ready:!1}},mounted:function(){this.polyLineOptions=Object.assign({},this.pathOptions,{smoothFactor:this.smoothFactor,noClip:this.noClip})},methods:{setSmoothFactor:function(t){this.mapObject.setStyle({smoothFactor:t})},setNoClip:function(t){this.mapObject.setStyle({noClip:t})},addLatLng:function(t){this.mapObject.addLatLng(t)}}},z={mixins:[U],props:{fill:{type:Boolean,custom:!0,default:!0}},mounted:function(){this.polygonOptions=this.polyLineOptions},methods:{getGeoJSONData:function(){return this.mapObject.toGeoJSON()}}};const D=z;var V={props:{pane:{type:String,default:"overlayPane"},attribution:{type:String,default:null,custom:!0},name:{type:String,custom:!0,default:void 0},layerType:{type:String,custom:!0,default:void 0},visible:{type:Boolean,custom:!0,default:!0}},mounted:function(){this.layerOptions={attribution:this.attribution,pane:this.pane}},beforeDestroy:function(){this.unbindPopup(),this.unbindTooltip(),this.parentContainer.removeLayer(this)},methods:{setAttribution:function(t,e){var i=this.$parent.mapObject.attributionControl;i.removeAttribution(e).addAttribution(t)},setName:function(){this.parentContainer.removeLayer(this),this.visible&&this.parentContainer.addLayer(this)},setLayerType:function(){this.parentContainer.removeLayer(this),this.visible&&this.parentContainer.addLayer(this)},setVisible:function(t){this.mapObject&&(t?this.parentContainer.addLayer(this):this.parentContainer.hideLayer?this.parentContainer.hideLayer(this):this.parentContainer.removeLayer(this))},unbindTooltip:function(){var t=this.mapObject?this.mapObject.getTooltip():null;t&&t.unbindTooltip()},unbindPopup:function(){var t=this.mapObject?this.mapObject.getPopup():null;t&&t.unbindPopup()},updateVisibleProp:function(t){this.$emit("update:visible",t)}}},G={props:{interactive:{type:Boolean,default:!0},bubblingMouseEvents:{type:Boolean,default:!0}},mounted:function(){this.interactiveLayerOptions={interactive:this.interactive,bubblingMouseEvents:this.bubblingMouseEvents}}},J={mixins:[V,G],props:{lStyle:{type:Object,custom:!0,default:null},stroke:{type:Boolean,custom:!0,default:!0},color:{type:String,custom:!0,default:"#3388ff"},weight:{type:Number,custom:!0,default:3},opacity:{type:Number,custom:!0,default:1},lineCap:{type:String,custom:!0,default:"round"},lineJoin:{type:String,custom:!0,default:"round"},dashArray:{type:String,custom:!0,default:null},dashOffset:{type:String,custom:!0,default:null},fill:{type:Boolean,custom:!0,default:!1},fillColor:{type:String,custom:!0,default:"#3388ff"},fillOpacity:{type:Number,custom:!0,default:.2},fillRule:{type:String,custom:!0,default:"evenodd"},className:{type:String,custom:!0,default:null}},mounted:function(){if(this.pathOptions=Object.assign({},this.layerOptions,this.interactiveLayerOptions,{stroke:this.stroke,color:this.color,weight:this.weight,opacity:this.opacity,lineCap:this.lineCap,lineJoin:this.lineJoin,dashArray:this.dashArray,dashOffset:this.dashOffset,fill:this.fill,fillColor:this.fillColor,fillOpacity:this.fillOpacity,fillRule:this.fillRule,className:this.className}),this.lStyle)for(var t in console.warn("lStyle is deprecated and is going to be removed in the next major version"),this.lStyle)this.pathOptions[t]=this.lStyle[t]},beforeDestroy:function(){this.parentContainer?this.parentContainer.removeLayer(this):console.error("Missing parent container")},methods:{setLStyle:function(t){this.mapObject.setStyle(t)},setStroke:function(t){this.mapObject.setStyle({stroke:t})},setColor:function(t){this.mapObject.setStyle({color:t})},setWeight:function(t){this.mapObject.setStyle({weight:t})},setOpacity:function(t){this.mapObject.setStyle({opacity:t})},setLineCap:function(t){this.mapObject.setStyle({lineCap:t})},setLineJoin:function(t){this.mapObject.setStyle({lineJoin:t})},setDashArray:function(t){this.mapObject.setStyle({dashArray:t})},setDashOffset:function(t){this.mapObject.setStyle({dashOffset:t})},setFill:function(t){this.mapObject.setStyle({fill:t})},setFillColor:function(t){this.mapObject.setStyle({fillColor:t})},setFillOpacity:function(t){this.mapObject.setStyle({fillOpacity:t})},setFillRule:function(t){this.mapObject.setStyle({fillRule:t})},setClassName:function(t){this.mapObject.setStyle({className:t})}}},Z={mixins:[J],props:{smoothFactor:{type:Number,custom:!0,default:1},noClip:{type:Boolean,custom:!0,default:!1}},data:function(){return{ready:!1}},mounted:function(){this.polyLineOptions=Object.assign({},this.pathOptions,{smoothFactor:this.smoothFactor,noClip:this.noClip})},methods:{setSmoothFactor:function(t){this.mapObject.setStyle({smoothFactor:t})},setNoClip:function(t){this.mapObject.setStyle({noClip:t})},addLatLng:function(t){this.mapObject.addLatLng(t)}}};const X=Z;var H={props:{content:{type:String,default:null,custom:!0}},mounted:function(){this.popperOptions={}},methods:{setContent:function(t){this.mapObject&&null!==t&&void 0!==t&&this.mapObject.setContent(t)}},render:function(t){return this.$slots.default?t("div",this.$slots.default):null}};const W=H;var q={props:{pane:{type:String,default:"overlayPane"},attribution:{type:String,default:null,custom:!0},name:{type:String,custom:!0,default:void 0},layerType:{type:String,custom:!0,default:void 0},visible:{type:Boolean,custom:!0,default:!0}},mounted:function(){this.layerOptions={attribution:this.attribution,pane:this.pane}},beforeDestroy:function(){this.unbindPopup(),this.unbindTooltip(),this.parentContainer.removeLayer(this)},methods:{setAttribution:function(t,e){var i=this.$parent.mapObject.attributionControl;i.removeAttribution(e).addAttribution(t)},setName:function(){this.parentContainer.removeLayer(this),this.visible&&this.parentContainer.addLayer(this)},setLayerType:function(){this.parentContainer.removeLayer(this),this.visible&&this.parentContainer.addLayer(this)},setVisible:function(t){this.mapObject&&(t?this.parentContainer.addLayer(this):this.parentContainer.hideLayer?this.parentContainer.hideLayer(this):this.parentContainer.removeLayer(this))},unbindTooltip:function(){var t=this.mapObject?this.mapObject.getTooltip():null;t&&t.unbindTooltip()},unbindPopup:function(){var t=this.mapObject?this.mapObject.getPopup():null;t&&t.unbindPopup()},updateVisibleProp:function(t){this.$emit("update:visible",t)}}},Q={mixins:[q],props:{pane:{type:String,default:"tilePane"},opacity:{type:Number,custom:!1,default:1},zIndex:{type:Number,default:1},tileSize:{type:Number,default:256},noWrap:{type:Boolean,default:!1}},mounted:function(){this.gridLayerOptions=Object.assign({},this.layerOptions,{pane:this.pane,opacity:this.opacity,zIndex:this.zIndex,tileSize:this.tileSize,noWrap:this.noWrap})}},K={mixins:[Q],props:{tms:{type:Boolean,default:!1},subdomains:{type:[String,Array],default:"abc",validator:function(t){return"string"===typeof t||!!Array.isArray(t)&&t.every((function(t){return"string"===typeof t}))}},detectRetina:{type:Boolean,default:!1}},mounted:function(){this.tileLayerOptions=Object.assign({},this.gridLayerOptions,{tms:this.tms,subdomains:this.subdomains,detectRetina:this.detectRetina})},render:function(){return null}};const Y=K;var tt={props:{pane:{type:String,default:"overlayPane"},attribution:{type:String,default:null,custom:!0},name:{type:String,custom:!0,default:void 0},layerType:{type:String,custom:!0,default:void 0},visible:{type:Boolean,custom:!0,default:!0}},mounted:function(){this.layerOptions={attribution:this.attribution,pane:this.pane}},beforeDestroy:function(){this.unbindPopup(),this.unbindTooltip(),this.parentContainer.removeLayer(this)},methods:{setAttribution:function(t,e){var i=this.$parent.mapObject.attributionControl;i.removeAttribution(e).addAttribution(t)},setName:function(){this.parentContainer.removeLayer(this),this.visible&&this.parentContainer.addLayer(this)},setLayerType:function(){this.parentContainer.removeLayer(this),this.visible&&this.parentContainer.addLayer(this)},setVisible:function(t){this.mapObject&&(t?this.parentContainer.addLayer(this):this.parentContainer.hideLayer?this.parentContainer.hideLayer(this):this.parentContainer.removeLayer(this))},unbindTooltip:function(){var t=this.mapObject?this.mapObject.getTooltip():null;t&&t.unbindTooltip()},unbindPopup:function(){var t=this.mapObject?this.mapObject.getPopup():null;t&&t.unbindPopup()},updateVisibleProp:function(t){this.$emit("update:visible",t)}}},et={mixins:[tt],props:{pane:{type:String,default:"tilePane"},opacity:{type:Number,custom:!1,default:1},zIndex:{type:Number,default:1},tileSize:{type:Number,default:256},noWrap:{type:Boolean,default:!1}},mounted:function(){this.gridLayerOptions=Object.assign({},this.layerOptions,{pane:this.pane,opacity:this.opacity,zIndex:this.zIndex,tileSize:this.tileSize,noWrap:this.noWrap})}},it={mixins:[et],props:{tms:{type:Boolean,default:!1},subdomains:{type:[String,Array],default:"abc",validator:function(t){return"string"===typeof t||!!Array.isArray(t)&&t.every((function(t){return"string"===typeof t}))}},detectRetina:{type:Boolean,default:!1}},mounted:function(){this.tileLayerOptions=Object.assign({},this.gridLayerOptions,{tms:this.tms,subdomains:this.subdomains,detectRetina:this.detectRetina})},render:function(){return null}},nt={mixins:[it],props:{layers:{type:String,default:""},styles:{type:String,default:""},format:{type:String,default:"image/jpeg"},transparent:{type:Boolean,custom:!1},version:{type:String,default:"1.1.1"},crs:{default:null},upperCase:{type:Boolean,default:!1}},mounted:function(){this.tileLayerWMSOptions=Object.assign({},this.tileLayerOptions,{layers:this.layers,styles:this.styles,format:this.format,transparent:this.transparent,version:this.version,crs:this.crs,upperCase:this.upperCase})}};const ot=nt;var rt=function(t){return t&&"function"===typeof t.charAt?t.charAt(0).toUpperCase()+t.slice(1):t},st=function(t,e,i,o){var r=function(o){var r="set"+rt(o),s=i[o].type===Object||i[o].type===Array||Array.isArray(i[o].type);i[o].custom&&t[r]?t.$watch(o,(function(e,i){t[r](e,i)}),{deep:s}):"setOptions"===r?t.$watch(o,(function(t,i){(0,n.setOptions)(e,t)}),{deep:s}):e[r]&&t.$watch(o,(function(t,i){e[r](t)}),{deep:s})};for(var s in i)r(s)},at=function(t){var e={};for(var i in t){var n=t[i];null!==n&&void 0!==n&&(e[i]=n)}return e},ut=function(t,e){var i=e.options&&e.options.constructor===Object?e.options:{};t=t&&t.constructor===Object?t:{};var n=at(i);t=at(t);var o=e.$options.props;for(var r in t){var s=o[r]?o[r].default&&"function"===typeof o[r].default?o[r].default.call():o[r].default:Symbol("unique"),a=!1;a=Array.isArray(s)?JSON.stringify(s)===JSON.stringify(t[r]):s===t[r],n[r]&&!a?(console.warn(r+" props is overriding the value passed in the options props"),n[r]=t[r]):n[r]||(n[r]=t[r])}return n},lt=function(t){var e=!1;while(t&&!e)void 0===t.mapObject?t=t.$parent:e=!0;return t},pt={props:{pane:{type:String,default:"overlayPane"},attribution:{type:String,default:null,custom:!0},name:{type:String,custom:!0,default:void 0},layerType:{type:String,custom:!0,default:void 0},visible:{type:Boolean,custom:!0,default:!0}},mounted:function(){this.layerOptions={attribution:this.attribution,pane:this.pane}},beforeDestroy:function(){this.unbindPopup(),this.unbindTooltip(),this.parentContainer.removeLayer(this)},methods:{setAttribution:function(t,e){var i=this.$parent.mapObject.attributionControl;i.removeAttribution(e).addAttribution(t)},setName:function(){this.parentContainer.removeLayer(this),this.visible&&this.parentContainer.addLayer(this)},setLayerType:function(){this.parentContainer.removeLayer(this),this.visible&&this.parentContainer.addLayer(this)},setVisible:function(t){this.mapObject&&(t?this.parentContainer.addLayer(this):this.parentContainer.hideLayer?this.parentContainer.hideLayer(this):this.parentContainer.removeLayer(this))},unbindTooltip:function(){var t=this.mapObject?this.mapObject.getTooltip():null;t&&t.unbindTooltip()},unbindPopup:function(){var t=this.mapObject?this.mapObject.getPopup():null;t&&t.unbindPopup()},updateVisibleProp:function(t){this.$emit("update:visible",t)}}},ct={props:{interactive:{type:Boolean,default:!0},bubblingMouseEvents:{type:Boolean,default:!0}},mounted:function(){this.interactiveLayerOptions={interactive:this.interactive,bubblingMouseEvents:this.bubblingMouseEvents}}},ht={mixins:[pt,ct],props:{lStyle:{type:Object,custom:!0,default:null},stroke:{type:Boolean,custom:!0,default:!0},color:{type:String,custom:!0,default:"#3388ff"},weight:{type:Number,custom:!0,default:3},opacity:{type:Number,custom:!0,default:1},lineCap:{type:String,custom:!0,default:"round"},lineJoin:{type:String,custom:!0,default:"round"},dashArray:{type:String,custom:!0,default:null},dashOffset:{type:String,custom:!0,default:null},fill:{type:Boolean,custom:!0,default:!1},fillColor:{type:String,custom:!0,default:"#3388ff"},fillOpacity:{type:Number,custom:!0,default:.2},fillRule:{type:String,custom:!0,default:"evenodd"},className:{type:String,custom:!0,default:null}},mounted:function(){if(this.pathOptions=Object.assign({},this.layerOptions,this.interactiveLayerOptions,{stroke:this.stroke,color:this.color,weight:this.weight,opacity:this.opacity,lineCap:this.lineCap,lineJoin:this.lineJoin,dashArray:this.dashArray,dashOffset:this.dashOffset,fill:this.fill,fillColor:this.fillColor,fillOpacity:this.fillOpacity,fillRule:this.fillRule,className:this.className}),this.lStyle)for(var t in console.warn("lStyle is deprecated and is going to be removed in the next major version"),this.lStyle)this.pathOptions[t]=this.lStyle[t]},beforeDestroy:function(){this.parentContainer?this.parentContainer.removeLayer(this):console.error("Missing parent container")},methods:{setLStyle:function(t){this.mapObject.setStyle(t)},setStroke:function(t){this.mapObject.setStyle({stroke:t})},setColor:function(t){this.mapObject.setStyle({color:t})},setWeight:function(t){this.mapObject.setStyle({weight:t})},setOpacity:function(t){this.mapObject.setStyle({opacity:t})},setLineCap:function(t){this.mapObject.setStyle({lineCap:t})},setLineJoin:function(t){this.mapObject.setStyle({lineJoin:t})},setDashArray:function(t){this.mapObject.setStyle({dashArray:t})},setDashOffset:function(t){this.mapObject.setStyle({dashOffset:t})},setFill:function(t){this.mapObject.setStyle({fill:t})},setFillColor:function(t){this.mapObject.setStyle({fillColor:t})},setFillOpacity:function(t){this.mapObject.setStyle({fillOpacity:t})},setFillRule:function(t){this.mapObject.setStyle({fillRule:t})},setClassName:function(t){this.mapObject.setStyle({className:t})}}},dt={mixins:[ht],props:{fill:{type:Boolean,custom:!0,default:!0},radius:{type:Number,default:null}},mounted:function(){this.circleOptions=Object.assign({},this.pathOptions,{radius:this.radius})}},ft={props:{options:{type:Object,default:function(){return{}}}}},mt={name:"LCircle",mixins:[dt,ft],props:{latLng:{type:[Object,Array],default:function(){return[0,0]}}},data:function(){return{ready:!1}},mounted:function(){var t=this,e=ut(this.circleOptions,this);this.mapObject=(0,n.circle)(this.latLng,e),n.DomEvent.on(this.mapObject,this.$listeners),st(this,this.mapObject,this.$options.props),this.ready=!0,this.parentContainer=lt(this.$parent),this.parentContainer.addLayer(this,!this.visible),this.$nextTick((function(){t.$emit("ready",t.mapObject)}))},methods:{}};function yt(t,e,i,n,o,r,s,a,u,l){"boolean"!==typeof s&&(u=a,a=s,s=!1);var p,c="function"===typeof i?i.options:i;if(t&&t.render&&(c.render=t.render,c.staticRenderFns=t.staticRenderFns,c._compiled=!0,o&&(c.functional=!0)),n&&(c._scopeId=n),r?(p=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"===typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),e&&e.call(this,u(t)),t&&t._registeredComponents&&t._registeredComponents.add(r)},c._ssrRegister=p):e&&(p=s?function(t){e.call(this,l(t,this.$root.$options.shadowRoot))}:function(t){e.call(this,a(t))}),p)if(c.functional){var h=c.render;c.render=function(t,e){return p.call(e),h(t,e)}}else{var d=c.beforeCreate;c.beforeCreate=d?[].concat(d,p):[p]}return i}var vt=mt,bt=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticStyle:{display:"none"}},[t.ready?t._t("default"):t._e()],2)},_t=[],gt=void 0,Ot=void 0,Ct=void 0,Lt=!1,St=yt({render:bt,staticRenderFns:_t},gt,vt,Ot,Lt,Ct,!1,void 0,void 0,void 0);const jt=St;var $t=function(t){return t&&"function"===typeof t.charAt?t.charAt(0).toUpperCase()+t.slice(1):t},At=function(t,e,i,o){var r=function(o){var r="set"+$t(o),s=i[o].type===Object||i[o].type===Array||Array.isArray(i[o].type);i[o].custom&&t[r]?t.$watch(o,(function(e,i){t[r](e,i)}),{deep:s}):"setOptions"===r?t.$watch(o,(function(t,i){(0,n.setOptions)(e,t)}),{deep:s}):e[r]&&t.$watch(o,(function(t,i){e[r](t)}),{deep:s})};for(var s in i)r(s)},Tt=function(t){var e={};for(var i in t){var n=t[i];null!==n&&void 0!==n&&(e[i]=n)}return e},wt=function(t,e){var i=e.options&&e.options.constructor===Object?e.options:{};t=t&&t.constructor===Object?t:{};var n=Tt(i);t=Tt(t);var o=e.$options.props;for(var r in t){var s=o[r]?o[r].default&&"function"===typeof o[r].default?o[r].default.call():o[r].default:Symbol("unique"),a=!1;a=Array.isArray(s)?JSON.stringify(s)===JSON.stringify(t[r]):s===t[r],n[r]&&!a?(console.warn(r+" props is overriding the value passed in the options props"),n[r]=t[r]):n[r]||(n[r]=t[r])}return n},xt=function(t){var e=!1;while(t&&!e)void 0===t.mapObject?t=t.$parent:e=!0;return t},Nt={props:{pane:{type:String,default:"overlayPane"},attribution:{type:String,default:null,custom:!0},name:{type:String,custom:!0,default:void 0},layerType:{type:String,custom:!0,default:void 0},visible:{type:Boolean,custom:!0,default:!0}},mounted:function(){this.layerOptions={attribution:this.attribution,pane:this.pane}},beforeDestroy:function(){this.unbindPopup(),this.unbindTooltip(),this.parentContainer.removeLayer(this)},methods:{setAttribution:function(t,e){var i=this.$parent.mapObject.attributionControl;i.removeAttribution(e).addAttribution(t)},setName:function(){this.parentContainer.removeLayer(this),this.visible&&this.parentContainer.addLayer(this)},setLayerType:function(){this.parentContainer.removeLayer(this),this.visible&&this.parentContainer.addLayer(this)},setVisible:function(t){this.mapObject&&(t?this.parentContainer.addLayer(this):this.parentContainer.hideLayer?this.parentContainer.hideLayer(this):this.parentContainer.removeLayer(this))},unbindTooltip:function(){var t=this.mapObject?this.mapObject.getTooltip():null;t&&t.unbindTooltip()},unbindPopup:function(){var t=this.mapObject?this.mapObject.getPopup():null;t&&t.unbindPopup()},updateVisibleProp:function(t){this.$emit("update:visible",t)}}},Pt={props:{interactive:{type:Boolean,default:!0},bubblingMouseEvents:{type:Boolean,default:!0}},mounted:function(){this.interactiveLayerOptions={interactive:this.interactive,bubblingMouseEvents:this.bubblingMouseEvents}}},Rt={mixins:[Nt,Pt],props:{lStyle:{type:Object,custom:!0,default:null},stroke:{type:Boolean,custom:!0,default:!0},color:{type:String,custom:!0,default:"#3388ff"},weight:{type:Number,custom:!0,default:3},opacity:{type:Number,custom:!0,default:1},lineCap:{type:String,custom:!0,default:"round"},lineJoin:{type:String,custom:!0,default:"round"},dashArray:{type:String,custom:!0,default:null},dashOffset:{type:String,custom:!0,default:null},fill:{type:Boolean,custom:!0,default:!1},fillColor:{type:String,custom:!0,default:"#3388ff"},fillOpacity:{type:Number,custom:!0,default:.2},fillRule:{type:String,custom:!0,default:"evenodd"},className:{type:String,custom:!0,default:null}},mounted:function(){if(this.pathOptions=Object.assign({},this.layerOptions,this.interactiveLayerOptions,{stroke:this.stroke,color:this.color,weight:this.weight,opacity:this.opacity,lineCap:this.lineCap,lineJoin:this.lineJoin,dashArray:this.dashArray,dashOffset:this.dashOffset,fill:this.fill,fillColor:this.fillColor,fillOpacity:this.fillOpacity,fillRule:this.fillRule,className:this.className}),this.lStyle)for(var t in console.warn("lStyle is deprecated and is going to be removed in the next major version"),this.lStyle)this.pathOptions[t]=this.lStyle[t]},beforeDestroy:function(){this.parentContainer?this.parentContainer.removeLayer(this):console.error("Missing parent container")},methods:{setLStyle:function(t){this.mapObject.setStyle(t)},setStroke:function(t){this.mapObject.setStyle({stroke:t})},setColor:function(t){this.mapObject.setStyle({color:t})},setWeight:function(t){this.mapObject.setStyle({weight:t})},setOpacity:function(t){this.mapObject.setStyle({opacity:t})},setLineCap:function(t){this.mapObject.setStyle({lineCap:t})},setLineJoin:function(t){this.mapObject.setStyle({lineJoin:t})},setDashArray:function(t){this.mapObject.setStyle({dashArray:t})},setDashOffset:function(t){this.mapObject.setStyle({dashOffset:t})},setFill:function(t){this.mapObject.setStyle({fill:t})},setFillColor:function(t){this.mapObject.setStyle({fillColor:t})},setFillOpacity:function(t){this.mapObject.setStyle({fillOpacity:t})},setFillRule:function(t){this.mapObject.setStyle({fillRule:t})},setClassName:function(t){this.mapObject.setStyle({className:t})}}},Mt={mixins:[Rt],props:{fill:{type:Boolean,custom:!0,default:!0},radius:{type:Number,default:null}},mounted:function(){this.circleOptions=Object.assign({},this.pathOptions,{radius:this.radius})}},kt={props:{options:{type:Object,default:function(){return{}}}}},Et={name:"LCircleMarker",mixins:[Mt,kt],props:{latLng:{type:[Object,Array],default:function(){return[0,0]}},pane:{type:String,default:"markerPane"}},data:function(){return{ready:!1}},mounted:function(){var t=this,e=wt(this.circleOptions,this);this.mapObject=(0,n.circleMarker)(this.latLng,e),n.DomEvent.on(this.mapObject,this.$listeners),At(this,this.mapObject,this.$options.props),this.ready=!0,this.parentContainer=xt(this.$parent),this.parentContainer.addLayer(this,!this.visible),this.$nextTick((function(){t.$emit("ready",t.mapObject)}))}};function Bt(t,e,i,n,o,r,s,a,u,l){"boolean"!==typeof s&&(u=a,a=s,s=!1);var p,c="function"===typeof i?i.options:i;if(t&&t.render&&(c.render=t.render,c.staticRenderFns=t.staticRenderFns,c._compiled=!0,o&&(c.functional=!0)),n&&(c._scopeId=n),r?(p=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"===typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),e&&e.call(this,u(t)),t&&t._registeredComponents&&t._registeredComponents.add(r)},c._ssrRegister=p):e&&(p=s?function(t){e.call(this,l(t,this.$root.$options.shadowRoot))}:function(t){e.call(this,a(t))}),p)if(c.functional){var h=c.render;c.render=function(t,e){return p.call(e),h(t,e)}}else{var d=c.beforeCreate;c.beforeCreate=d?[].concat(d,p):[p]}return i}var It=Et,Ft=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticStyle:{display:"none"}},[t.ready?t._t("default"):t._e()],2)},Ut=[],zt=void 0,Dt=void 0,Vt=void 0,Gt=!1,Jt=Bt({render:Ft,staticRenderFns:Ut},zt,It,Dt,Gt,Vt,!1,void 0,void 0,void 0);const Zt=Jt;var Xt=function(t){return t&&"function"===typeof t.charAt?t.charAt(0).toUpperCase()+t.slice(1):t},Ht=function(t,e,i,o){var r=function(o){var r="set"+Xt(o),s=i[o].type===Object||i[o].type===Array||Array.isArray(i[o].type);i[o].custom&&t[r]?t.$watch(o,(function(e,i){t[r](e,i)}),{deep:s}):"setOptions"===r?t.$watch(o,(function(t,i){(0,n.setOptions)(e,t)}),{deep:s}):e[r]&&t.$watch(o,(function(t,i){e[r](t)}),{deep:s})};for(var s in i)r(s)},Wt=function(t){var e={};for(var i in t){var n=t[i];null!==n&&void 0!==n&&(e[i]=n)}return e},qt=function(t,e){var i=e.options&&e.options.constructor===Object?e.options:{};t=t&&t.constructor===Object?t:{};var n=Wt(i);t=Wt(t);var o=e.$options.props;for(var r in t){var s=o[r]?o[r].default&&"function"===typeof o[r].default?o[r].default.call():o[r].default:Symbol("unique"),a=!1;a=Array.isArray(s)?JSON.stringify(s)===JSON.stringify(t[r]):s===t[r],n[r]&&!a?(console.warn(r+" props is overriding the value passed in the options props"),n[r]=t[r]):n[r]||(n[r]=t[r])}return n},Qt=function(t){var e=!1;while(t&&!e)void 0===t.mapObject?t=t.$parent:e=!0;return t},Kt={props:{position:{type:String,default:"topright"}},mounted:function(){this.controlOptions={position:this.position}},beforeDestroy:function(){this.mapObject&&this.mapObject.remove()}},Yt={props:{options:{type:Object,default:function(){return{}}}}},te={name:"LControl",mixins:[Kt,Yt],props:{disableClickPropagation:{type:Boolean,custom:!0,default:!0},disableScrollPropagation:{type:Boolean,custom:!0,default:!1}},mounted:function(){var t=this,e=n.Control.extend({element:void 0,onAdd:function(){return this.element},setElement:function(t){this.element=t}}),i=qt(this.controlOptions,this);this.mapObject=new e(i),Ht(this,this.mapObject,this.$options.props),this.parentContainer=Qt(this.$parent),this.mapObject.setElement(this.$el),this.disableClickPropagation&&n.DomEvent.disableClickPropagation(this.$el),this.disableScrollPropagation&&n.DomEvent.disableScrollPropagation(this.$el),this.mapObject.addTo(this.parentContainer.mapObject),this.$nextTick((function(){t.$emit("ready",t.mapObject)}))}};function ee(t,e,i,n,o,r,s,a,u,l){"boolean"!==typeof s&&(u=a,a=s,s=!1);var p,c="function"===typeof i?i.options:i;if(t&&t.render&&(c.render=t.render,c.staticRenderFns=t.staticRenderFns,c._compiled=!0,o&&(c.functional=!0)),n&&(c._scopeId=n),r?(p=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"===typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),e&&e.call(this,u(t)),t&&t._registeredComponents&&t._registeredComponents.add(r)},c._ssrRegister=p):e&&(p=s?function(t){e.call(this,l(t,this.$root.$options.shadowRoot))}:function(t){e.call(this,a(t))}),p)if(c.functional){var h=c.render;c.render=function(t,e){return p.call(e),h(t,e)}}else{var d=c.beforeCreate;c.beforeCreate=d?[].concat(d,p):[p]}return i}var ie=te,ne=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",[t._t("default")],2)},oe=[],re=void 0,se=void 0,ae=void 0,ue=!1,le=ee({render:ne,staticRenderFns:oe},re,ie,se,ue,ae,!1,void 0,void 0,void 0);const pe=le;var ce=function(t){return t&&"function"===typeof t.charAt?t.charAt(0).toUpperCase()+t.slice(1):t},he=function(t,e,i,o){var r=function(o){var r="set"+ce(o),s=i[o].type===Object||i[o].type===Array||Array.isArray(i[o].type);i[o].custom&&t[r]?t.$watch(o,(function(e,i){t[r](e,i)}),{deep:s}):"setOptions"===r?t.$watch(o,(function(t,i){(0,n.setOptions)(e,t)}),{deep:s}):e[r]&&t.$watch(o,(function(t,i){e[r](t)}),{deep:s})};for(var s in i)r(s)},de=function(t){var e={};for(var i in t){var n=t[i];null!==n&&void 0!==n&&(e[i]=n)}return e},fe=function(t,e){var i=e.options&&e.options.constructor===Object?e.options:{};t=t&&t.constructor===Object?t:{};var n=de(i);t=de(t);var o=e.$options.props;for(var r in t){var s=o[r]?o[r].default&&"function"===typeof o[r].default?o[r].default.call():o[r].default:Symbol("unique"),a=!1;a=Array.isArray(s)?JSON.stringify(s)===JSON.stringify(t[r]):s===t[r],n[r]&&!a?(console.warn(r+" props is overriding the value passed in the options props"),n[r]=t[r]):n[r]||(n[r]=t[r])}return n},me={props:{position:{type:String,default:"topright"}},mounted:function(){this.controlOptions={position:this.position}},beforeDestroy:function(){this.mapObject&&this.mapObject.remove()}},ye={props:{options:{type:Object,default:function(){return{}}}}},ve={name:"LControlAttribution",mixins:[me,ye],props:{prefix:{type:[String,Boolean],default:null}},mounted:function(){var t=this,e=fe(Object.assign({},this.controlOptions,{prefix:this.prefix}),this);this.mapObject=n.control.attribution(e),he(this,this.mapObject,this.$options.props),this.mapObject.addTo(this.$parent.mapObject),this.$nextTick((function(){t.$emit("ready",t.mapObject)}))},render:function(){return null}};function be(t,e,i,n,o,r,s,a,u,l){"boolean"!==typeof s&&(u=a,a=s,s=!1);var p,c="function"===typeof i?i.options:i;if(t&&t.render&&(c.render=t.render,c.staticRenderFns=t.staticRenderFns,c._compiled=!0,o&&(c.functional=!0)),n&&(c._scopeId=n),r?(p=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"===typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),e&&e.call(this,u(t)),t&&t._registeredComponents&&t._registeredComponents.add(r)},c._ssrRegister=p):e&&(p=s?function(t){e.call(this,l(t,this.$root.$options.shadowRoot))}:function(t){e.call(this,a(t))}),p)if(c.functional){var h=c.render;c.render=function(t,e){return p.call(e),h(t,e)}}else{var d=c.beforeCreate;c.beforeCreate=d?[].concat(d,p):[p]}return i}var _e=ve,ge=void 0,Oe=void 0,Ce=void 0,Le=void 0,Se=be({},ge,_e,Oe,Le,Ce,!1,void 0,void 0,void 0);const je=Se;var $e=function(t){return t&&"function"===typeof t.charAt?t.charAt(0).toUpperCase()+t.slice(1):t},Ae=function(t,e,i,o){var r=function(o){var r="set"+$e(o),s=i[o].type===Object||i[o].type===Array||Array.isArray(i[o].type);i[o].custom&&t[r]?t.$watch(o,(function(e,i){t[r](e,i)}),{deep:s}):"setOptions"===r?t.$watch(o,(function(t,i){(0,n.setOptions)(e,t)}),{deep:s}):e[r]&&t.$watch(o,(function(t,i){e[r](t)}),{deep:s})};for(var s in i)r(s)},Te=function(t){var e={};for(var i in t){var n=t[i];null!==n&&void 0!==n&&(e[i]=n)}return e},we=function(t,e){var i=e.options&&e.options.constructor===Object?e.options:{};t=t&&t.constructor===Object?t:{};var n=Te(i);t=Te(t);var o=e.$options.props;for(var r in t){var s=o[r]?o[r].default&&"function"===typeof o[r].default?o[r].default.call():o[r].default:Symbol("unique"),a=!1;a=Array.isArray(s)?JSON.stringify(s)===JSON.stringify(t[r]):s===t[r],n[r]&&!a?(console.warn(r+" props is overriding the value passed in the options props"),n[r]=t[r]):n[r]||(n[r]=t[r])}return n},xe={props:{position:{type:String,default:"topright"}},mounted:function(){this.controlOptions={position:this.position}},beforeDestroy:function(){this.mapObject&&this.mapObject.remove()}},Ne={props:{options:{type:Object,default:function(){return{}}}}},Pe={name:"LControlLayers",mixins:[xe,Ne],props:{collapsed:{type:Boolean,default:!0},autoZIndex:{type:Boolean,default:!0},hideSingleBase:{type:Boolean,default:!1},sortLayers:{type:Boolean,default:!1},sortFunction:{type:Function,default:void 0}},mounted:function(){var t=this,e=we(Object.assign({},this.controlOptions,{collapsed:this.collapsed,autoZIndex:this.autoZIndex,hideSingleBase:this.hideSingleBase,sortLayers:this.sortLayers,sortFunction:this.sortFunction}),this);this.mapObject=n.control.layers(null,null,e),Ae(this,this.mapObject,this.$options.props),this.$parent.registerLayerControl(this),this.$nextTick((function(){t.$emit("ready",t.mapObject)}))},methods:{addLayer:function(t){"base"===t.layerType?this.mapObject.addBaseLayer(t.mapObject,t.name):"overlay"===t.layerType&&this.mapObject.addOverlay(t.mapObject,t.name)},removeLayer:function(t){this.mapObject.removeLayer(t.mapObject)}},render:function(){return null}};function Re(t,e,i,n,o,r,s,a,u,l){"boolean"!==typeof s&&(u=a,a=s,s=!1);var p,c="function"===typeof i?i.options:i;if(t&&t.render&&(c.render=t.render,c.staticRenderFns=t.staticRenderFns,c._compiled=!0,o&&(c.functional=!0)),n&&(c._scopeId=n),r?(p=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"===typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),e&&e.call(this,u(t)),t&&t._registeredComponents&&t._registeredComponents.add(r)},c._ssrRegister=p):e&&(p=s?function(t){e.call(this,l(t,this.$root.$options.shadowRoot))}:function(t){e.call(this,a(t))}),p)if(c.functional){var h=c.render;c.render=function(t,e){return p.call(e),h(t,e)}}else{var d=c.beforeCreate;c.beforeCreate=d?[].concat(d,p):[p]}return i}var Me=Pe,ke=void 0,Ee=void 0,Be=void 0,Ie=void 0,Fe=Re({},ke,Me,Ee,Ie,Be,!1,void 0,void 0,void 0);const Ue=Fe;var ze=function(t){return t&&"function"===typeof t.charAt?t.charAt(0).toUpperCase()+t.slice(1):t},De=function(t,e,i,o){var r=function(o){var r="set"+ze(o),s=i[o].type===Object||i[o].type===Array||Array.isArray(i[o].type);i[o].custom&&t[r]?t.$watch(o,(function(e,i){t[r](e,i)}),{deep:s}):"setOptions"===r?t.$watch(o,(function(t,i){(0,n.setOptions)(e,t)}),{deep:s}):e[r]&&t.$watch(o,(function(t,i){e[r](t)}),{deep:s})};for(var s in i)r(s)},Ve=function(t){var e={};for(var i in t){var n=t[i];null!==n&&void 0!==n&&(e[i]=n)}return e},Ge=function(t,e){var i=e.options&&e.options.constructor===Object?e.options:{};t=t&&t.constructor===Object?t:{};var n=Ve(i);t=Ve(t);var o=e.$options.props;for(var r in t){var s=o[r]?o[r].default&&"function"===typeof o[r].default?o[r].default.call():o[r].default:Symbol("unique"),a=!1;a=Array.isArray(s)?JSON.stringify(s)===JSON.stringify(t[r]):s===t[r],n[r]&&!a?(console.warn(r+" props is overriding the value passed in the options props"),n[r]=t[r]):n[r]||(n[r]=t[r])}return n},Je={props:{position:{type:String,default:"topright"}},mounted:function(){this.controlOptions={position:this.position}},beforeDestroy:function(){this.mapObject&&this.mapObject.remove()}},Ze={props:{options:{type:Object,default:function(){return{}}}}},Xe={name:"LControlScale",mixins:[Je,Ze],props:{maxWidth:{type:Number,default:100},metric:{type:Boolean,default:!0},imperial:{type:Boolean,default:!0},updateWhenIdle:{type:Boolean,default:!1}},mounted:function(){var t=this,e=Ge(Object.assign({},this.controlOptions,{maxWidth:this.maxWidth,metric:this.metric,imperial:this.imperial,updateWhenIdle:this.updateWhenIdle}),this);this.mapObject=n.control.scale(e),De(this,this.mapObject,this.$options.props),this.mapObject.addTo(this.$parent.mapObject),this.$nextTick((function(){t.$emit("ready",t.mapObject)}))},render:function(){return null}};function He(t,e,i,n,o,r,s,a,u,l){"boolean"!==typeof s&&(u=a,a=s,s=!1);var p,c="function"===typeof i?i.options:i;if(t&&t.render&&(c.render=t.render,c.staticRenderFns=t.staticRenderFns,c._compiled=!0,o&&(c.functional=!0)),n&&(c._scopeId=n),r?(p=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"===typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),e&&e.call(this,u(t)),t&&t._registeredComponents&&t._registeredComponents.add(r)},c._ssrRegister=p):e&&(p=s?function(t){e.call(this,l(t,this.$root.$options.shadowRoot))}:function(t){e.call(this,a(t))}),p)if(c.functional){var h=c.render;c.render=function(t,e){return p.call(e),h(t,e)}}else{var d=c.beforeCreate;c.beforeCreate=d?[].concat(d,p):[p]}return i}var We=Xe,qe=void 0,Qe=void 0,Ke=void 0,Ye=void 0,ti=He({},qe,We,Qe,Ye,Ke,!1,void 0,void 0,void 0);const ei=ti;var ii=function(t){return t&&"function"===typeof t.charAt?t.charAt(0).toUpperCase()+t.slice(1):t},ni=function(t,e,i,o){var r=function(o){var r="set"+ii(o),s=i[o].type===Object||i[o].type===Array||Array.isArray(i[o].type);i[o].custom&&t[r]?t.$watch(o,(function(e,i){t[r](e,i)}),{deep:s}):"setOptions"===r?t.$watch(o,(function(t,i){(0,n.setOptions)(e,t)}),{deep:s}):e[r]&&t.$watch(o,(function(t,i){e[r](t)}),{deep:s})};for(var s in i)r(s)},oi=function(t){var e={};for(var i in t){var n=t[i];null!==n&&void 0!==n&&(e[i]=n)}return e},ri=function(t,e){var i=e.options&&e.options.constructor===Object?e.options:{};t=t&&t.constructor===Object?t:{};var n=oi(i);t=oi(t);var o=e.$options.props;for(var r in t){var s=o[r]?o[r].default&&"function"===typeof o[r].default?o[r].default.call():o[r].default:Symbol("unique"),a=!1;a=Array.isArray(s)?JSON.stringify(s)===JSON.stringify(t[r]):s===t[r],n[r]&&!a?(console.warn(r+" props is overriding the value passed in the options props"),n[r]=t[r]):n[r]||(n[r]=t[r])}return n},si={props:{position:{type:String,default:"topright"}},mounted:function(){this.controlOptions={position:this.position}},beforeDestroy:function(){this.mapObject&&this.mapObject.remove()}},ai={props:{options:{type:Object,default:function(){return{}}}}},ui={name:"LControlZoom",mixins:[si,ai],props:{zoomInText:{type:String,default:"+"},zoomInTitle:{type:String,default:"Zoom in"},zoomOutText:{type:String,default:"-"},zoomOutTitle:{type:String,default:"Zoom out"}},mounted:function(){var t=this,e=ri(Object.assign({},this.controlOptions,{zoomInText:this.zoomInText,zoomInTitle:this.zoomInTitle,zoomOutText:this.zoomOutText,zoomOutTitle:this.zoomOutTitle}),this);this.mapObject=n.control.zoom(e),ni(this,this.mapObject,this.$options.props),this.mapObject.addTo(this.$parent.mapObject),this.$nextTick((function(){t.$emit("ready",t.mapObject)}))},render:function(){return null}};function li(t,e,i,n,o,r,s,a,u,l){"boolean"!==typeof s&&(u=a,a=s,s=!1);var p,c="function"===typeof i?i.options:i;if(t&&t.render&&(c.render=t.render,c.staticRenderFns=t.staticRenderFns,c._compiled=!0,o&&(c.functional=!0)),n&&(c._scopeId=n),r?(p=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"===typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),e&&e.call(this,u(t)),t&&t._registeredComponents&&t._registeredComponents.add(r)},c._ssrRegister=p):e&&(p=s?function(t){e.call(this,l(t,this.$root.$options.shadowRoot))}:function(t){e.call(this,a(t))}),p)if(c.functional){var h=c.render;c.render=function(t,e){return p.call(e),h(t,e)}}else{var d=c.beforeCreate;c.beforeCreate=d?[].concat(d,p):[p]}return i}var pi=ui,ci=void 0,hi=void 0,di=void 0,fi=void 0,mi=li({},ci,pi,hi,fi,di,!1,void 0,void 0,void 0);const yi=mi;var vi=function(t){return t&&"function"===typeof t.charAt?t.charAt(0).toUpperCase()+t.slice(1):t},bi=function(t,e,i,o){var r=function(o){var r="set"+vi(o),s=i[o].type===Object||i[o].type===Array||Array.isArray(i[o].type);i[o].custom&&t[r]?t.$watch(o,(function(e,i){t[r](e,i)}),{deep:s}):"setOptions"===r?t.$watch(o,(function(t,i){(0,n.setOptions)(e,t)}),{deep:s}):e[r]&&t.$watch(o,(function(t,i){e[r](t)}),{deep:s})};for(var s in i)r(s)},_i=function(t){var e=!1;while(t&&!e)void 0===t.mapObject?t=t.$parent:e=!0;return t},gi={props:{pane:{type:String,default:"overlayPane"},attribution:{type:String,default:null,custom:!0},name:{type:String,custom:!0,default:void 0},layerType:{type:String,custom:!0,default:void 0},visible:{type:Boolean,custom:!0,default:!0}},mounted:function(){this.layerOptions={attribution:this.attribution,pane:this.pane}},beforeDestroy:function(){this.unbindPopup(),this.unbindTooltip(),this.parentContainer.removeLayer(this)},methods:{setAttribution:function(t,e){var i=this.$parent.mapObject.attributionControl;i.removeAttribution(e).addAttribution(t)},setName:function(){this.parentContainer.removeLayer(this),this.visible&&this.parentContainer.addLayer(this)},setLayerType:function(){this.parentContainer.removeLayer(this),this.visible&&this.parentContainer.addLayer(this)},setVisible:function(t){this.mapObject&&(t?this.parentContainer.addLayer(this):this.parentContainer.hideLayer?this.parentContainer.hideLayer(this):this.parentContainer.removeLayer(this))},unbindTooltip:function(){var t=this.mapObject?this.mapObject.getTooltip():null;t&&t.unbindTooltip()},unbindPopup:function(){var t=this.mapObject?this.mapObject.getPopup():null;t&&t.unbindPopup()},updateVisibleProp:function(t){this.$emit("update:visible",t)}}},Oi={mixins:[gi],mounted:function(){this.layerGroupOptions=this.layerOptions},methods:{addLayer:function(t,e){e||this.mapObject.addLayer(t.mapObject),this.parentContainer.addLayer(t,!0)},removeLayer:function(t,e){e||this.mapObject.removeLayer(t.mapObject),this.parentContainer.removeLayer(t,!0)}}},Ci={props:{options:{type:Object,default:function(){return{}}}}},Li={name:"LFeatureGroup",mixins:[Oi,Ci],data:function(){return{ready:!1}},mounted:function(){var t=this;this.mapObject=(0,n.featureGroup)(),bi(this,this.mapObject,this.$options.props),n.DomEvent.on(this.mapObject,this.$listeners),this.ready=!0,this.parentContainer=_i(this.$parent),this.visible&&this.parentContainer.addLayer(this),this.$nextTick((function(){t.$emit("ready",t.mapObject)}))}};function Si(t,e,i,n,o,r,s,a,u,l){"boolean"!==typeof s&&(u=a,a=s,s=!1);var p,c="function"===typeof i?i.options:i;if(t&&t.render&&(c.render=t.render,c.staticRenderFns=t.staticRenderFns,c._compiled=!0,o&&(c.functional=!0)),n&&(c._scopeId=n),r?(p=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"===typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),e&&e.call(this,u(t)),t&&t._registeredComponents&&t._registeredComponents.add(r)},c._ssrRegister=p):e&&(p=s?function(t){e.call(this,l(t,this.$root.$options.shadowRoot))}:function(t){e.call(this,a(t))}),p)if(c.functional){var h=c.render;c.render=function(t,e){return p.call(e),h(t,e)}}else{var d=c.beforeCreate;c.beforeCreate=d?[].concat(d,p):[p]}return i}var ji=Li,$i=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticStyle:{display:"none"}},[t.ready?t._t("default"):t._e()],2)},Ai=[],Ti=void 0,wi=void 0,xi=void 0,Ni=!1,Pi=Si({render:$i,staticRenderFns:Ai},Ti,ji,wi,Ni,xi,!1,void 0,void 0,void 0);const Ri=Pi;var Mi=i(92011),ki=i(20144),Ei=function(t){return t&&"function"===typeof t.charAt?t.charAt(0).toUpperCase()+t.slice(1):t},Bi=function(t,e,i,o){var r=function(o){var r="set"+Ei(o),s=i[o].type===Object||i[o].type===Array||Array.isArray(i[o].type);i[o].custom&&t[r]?t.$watch(o,(function(e,i){t[r](e,i)}),{deep:s}):"setOptions"===r?t.$watch(o,(function(t,i){(0,n.setOptions)(e,t)}),{deep:s}):e[r]&&t.$watch(o,(function(t,i){e[r](t)}),{deep:s})};for(var s in i)r(s)},Ii=function(t){var e={};for(var i in t){var n=t[i];null!==n&&void 0!==n&&(e[i]=n)}return e},Fi=function(t,e){var i=e.options&&e.options.constructor===Object?e.options:{};t=t&&t.constructor===Object?t:{};var n=Ii(i);t=Ii(t);var o=e.$options.props;for(var r in t){var s=o[r]?o[r].default&&"function"===typeof o[r].default?o[r].default.call():o[r].default:Symbol("unique"),a=!1;a=Array.isArray(s)?JSON.stringify(s)===JSON.stringify(t[r]):s===t[r],n[r]&&!a?(console.warn(r+" props is overriding the value passed in the options props"),n[r]=t[r]):n[r]||(n[r]=t[r])}return n},Ui=function(t){var e=!1;while(t&&!e)void 0===t.mapObject?t=t.$parent:e=!0;return t},zi={props:{pane:{type:String,default:"overlayPane"},attribution:{type:String,default:null,custom:!0},name:{type:String,custom:!0,default:void 0},layerType:{type:String,custom:!0,default:void 0},visible:{type:Boolean,custom:!0,default:!0}},mounted:function(){this.layerOptions={attribution:this.attribution,pane:this.pane}},beforeDestroy:function(){this.unbindPopup(),this.unbindTooltip(),this.parentContainer.removeLayer(this)},methods:{setAttribution:function(t,e){var i=this.$parent.mapObject.attributionControl;i.removeAttribution(e).addAttribution(t)},setName:function(){this.parentContainer.removeLayer(this),this.visible&&this.parentContainer.addLayer(this)},setLayerType:function(){this.parentContainer.removeLayer(this),this.visible&&this.parentContainer.addLayer(this)},setVisible:function(t){this.mapObject&&(t?this.parentContainer.addLayer(this):this.parentContainer.hideLayer?this.parentContainer.hideLayer(this):this.parentContainer.removeLayer(this))},unbindTooltip:function(){var t=this.mapObject?this.mapObject.getTooltip():null;t&&t.unbindTooltip()},unbindPopup:function(){var t=this.mapObject?this.mapObject.getPopup():null;t&&t.unbindPopup()},updateVisibleProp:function(t){this.$emit("update:visible",t)}}},Di={mixins:[zi],props:{pane:{type:String,default:"tilePane"},opacity:{type:Number,custom:!1,default:1},zIndex:{type:Number,default:1},tileSize:{type:Number,default:256},noWrap:{type:Boolean,default:!1}},mounted:function(){this.gridLayerOptions=Object.assign({},this.layerOptions,{pane:this.pane,opacity:this.opacity,zIndex:this.zIndex,tileSize:this.tileSize,noWrap:this.noWrap})}},Vi={props:{options:{type:Object,default:function(){return{}}}}},Gi={name:"LGridLayer",mixins:[Di,Vi],props:{tileComponent:{type:Object,custom:!0,required:!0}},data:function(){return{tileComponents:{}}},computed:{TileConstructor:function(){return ki["default"].extend(this.tileComponent)}},mounted:function(){var t=this,e=n.GridLayer.extend({}),i=Fi(this.gridLayerOptions,this);this.mapObject=new e(i),n.DomEvent.on(this.mapObject,this.$listeners),this.mapObject.on("tileunload",this.onUnload,this),Bi(this,this.mapObject,this.$options.props),this.mapObject.createTile=this.createTile,this.parentContainer=Ui(this.$parent),this.parentContainer.addLayer(this,!this.visible),this.$nextTick((function(){t.$emit("ready",t.mapObject)}))},beforeDestroy:function(){this.parentContainer.removeLayer(this.mapObject),this.mapObject.off("tileunload",this.onUnload),this.mapObject=null},methods:{createTile:function(t){var e=n.DomUtil.create("div"),i=n.DomUtil.create("div");e.appendChild(i);var o=new this.TileConstructor({el:i,parent:this,propsData:{coords:t}}),r=this.mapObject._tileCoordsToKey(t);return this.tileComponents[r]=o,e},onUnload:function(t){var e=this.mapObject._tileCoordsToKey(t.coords);"undefined"!==typeof this.tileComponents[e]&&(this.tileComponents[e].$destroy(),this.tileComponents[e].$el.remove(),delete this.tileComponents[e])},setTileComponent:function(t){this.mapObject.redraw()}}};function Ji(t,e,i,n,o,r,s,a,u,l){"boolean"!==typeof s&&(u=a,a=s,s=!1);var p,c="function"===typeof i?i.options:i;if(t&&t.render&&(c.render=t.render,c.staticRenderFns=t.staticRenderFns,c._compiled=!0,o&&(c.functional=!0)),n&&(c._scopeId=n),r?(p=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"===typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),e&&e.call(this,u(t)),t&&t._registeredComponents&&t._registeredComponents.add(r)},c._ssrRegister=p):e&&(p=s?function(t){e.call(this,l(t,this.$root.$options.shadowRoot))}:function(t){e.call(this,a(t))}),p)if(c.functional){var h=c.render;c.render=function(t,e){return p.call(e),h(t,e)}}else{var d=c.beforeCreate;c.beforeCreate=d?[].concat(d,p):[p]}return i}var Zi=Gi,Xi=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div")},Hi=[],Wi=void 0,qi=void 0,Qi=void 0,Ki=!1,Yi=Ji({render:Xi,staticRenderFns:Hi},Wi,Zi,qi,Ki,Qi,!1,void 0,void 0,void 0);const tn=Yi;var en=function(t){return t&&"function"===typeof t.charAt?t.charAt(0).toUpperCase()+t.slice(1):t},nn=function(t,e,i,o){var r=function(o){var r="set"+en(o),s=i[o].type===Object||i[o].type===Array||Array.isArray(i[o].type);i[o].custom&&t[r]?t.$watch(o,(function(e,i){t[r](e,i)}),{deep:s}):"setOptions"===r?t.$watch(o,(function(t,i){(0,n.setOptions)(e,t)}),{deep:s}):e[r]&&t.$watch(o,(function(t,i){e[r](t)}),{deep:s})};for(var s in i)r(s)},on=function(t){var e={};for(var i in t){var n=t[i];null!==n&&void 0!==n&&(e[i]=n)}return e},rn=function(t,e){var i=e.options&&e.options.constructor===Object?e.options:{};t=t&&t.constructor===Object?t:{};var n=on(i);t=on(t);var o=e.$options.props;for(var r in t){var s=o[r]?o[r].default&&"function"===typeof o[r].default?o[r].default.call():o[r].default:Symbol("unique"),a=!1;a=Array.isArray(s)?JSON.stringify(s)===JSON.stringify(t[r]):s===t[r],n[r]&&!a?(console.warn(r+" props is overriding the value passed in the options props"),n[r]=t[r]):n[r]||(n[r]=t[r])}return n},sn=function(t){var e=!1;while(t&&!e)void 0===t.mapObject?t=t.$parent:e=!0;return t},an={name:"LIcon",props:{iconUrl:{type:String,custom:!0,default:null},iconRetinaUrl:{type:String,custom:!0,default:null},iconSize:{type:[Object,Array],custom:!0,default:null},iconAnchor:{type:[Object,Array],custom:!0,default:null},popupAnchor:{type:[Object,Array],custom:!0,default:function(){return[0,0]}},tooltipAnchor:{type:[Object,Array],custom:!0,default:function(){return[0,0]}},shadowUrl:{type:String,custom:!0,default:null},shadowRetinaUrl:{type:String,custom:!0,default:null},shadowSize:{type:[Object,Array],custom:!0,default:null},shadowAnchor:{type:[Object,Array],custom:!0,default:null},bgPos:{type:[Object,Array],custom:!0,default:function(){return[0,0]}},className:{type:String,custom:!0,default:""},options:{type:Object,custom:!0,default:function(){return{}}}},data:function(){return{parentContainer:null,observer:null,recreationNeeded:!1,swapHtmlNeeded:!1}},mounted:function(){var t=this;if(this.parentContainer=sn(this.$parent),!this.parentContainer)throw new Error("No parent container with mapObject found for LIcon");nn(this,this.parentContainer.mapObject,this.$options.props),this.observer=new MutationObserver((function(){t.scheduleHtmlSwap()})),this.observer.observe(this.$el,{attributes:!0,childList:!0,characterData:!0,subtree:!0}),this.scheduleCreateIcon()},beforeDestroy:function(){this.parentContainer.mapObject&&this.parentContainer.mapObject.setIcon(this.parentContainer.$props.icon),this.observer.disconnect()},methods:{scheduleCreateIcon:function(){this.recreationNeeded=!0,this.$nextTick(this.createIcon)},scheduleHtmlSwap:function(){this.htmlSwapNeeded=!0,this.$nextTick(this.createIcon)},createIcon:function(){if(this.htmlSwapNeeded&&!this.recreationNeeded&&this.iconObject&&this.parentContainer.mapObject.getElement())return this.parentContainer.mapObject.getElement().innerHTML=this.$el.innerHTML,void(this.htmlSwapNeeded=!1);if(this.recreationNeeded){this.iconObject&&n.DomEvent.off(this.iconObject,this.$listeners);var t=rn({iconUrl:this.iconUrl,iconRetinaUrl:this.iconRetinaUrl,iconSize:this.iconSize,iconAnchor:this.iconAnchor,popupAnchor:this.popupAnchor,tooltipAnchor:this.tooltipAnchor,shadowUrl:this.shadowUrl,shadowRetinaUrl:this.shadowRetinaUrl,shadowSize:this.shadowSize,shadowAnchor:this.shadowAnchor,bgPos:this.bgPos,className:this.className,html:this.$el.innerHTML||this.html},this);t.html?this.iconObject=(0,n.divIcon)(t):this.iconObject=(0,n.icon)(t),n.DomEvent.on(this.iconObject,this.$listeners),this.parentContainer.mapObject.setIcon(this.iconObject),this.recreationNeeded=!1,this.htmlSwapNeeded=!1}},setIconUrl:function(){this.scheduleCreateIcon()},setIconRetinaUrl:function(){this.scheduleCreateIcon()},setIconSize:function(){this.scheduleCreateIcon()},setIconAnchor:function(){this.scheduleCreateIcon()},setPopupAnchor:function(){this.scheduleCreateIcon()},setTooltipAnchor:function(){this.scheduleCreateIcon()},setShadowUrl:function(){this.scheduleCreateIcon()},setShadowRetinaUrl:function(){this.scheduleCreateIcon()},setShadowAnchor:function(){this.scheduleCreateIcon()},setBgPos:function(){this.scheduleCreateIcon()},setClassName:function(){this.scheduleCreateIcon()},setHtml:function(){this.scheduleCreateIcon()}},render:function(){return null}};function un(t,e,i,n,o,r,s,a,u,l){"boolean"!==typeof s&&(u=a,a=s,s=!1);var p,c="function"===typeof i?i.options:i;if(t&&t.render&&(c.render=t.render,c.staticRenderFns=t.staticRenderFns,c._compiled=!0,o&&(c.functional=!0)),n&&(c._scopeId=n),r?(p=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"===typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),e&&e.call(this,u(t)),t&&t._registeredComponents&&t._registeredComponents.add(r)},c._ssrRegister=p):e&&(p=s?function(t){e.call(this,l(t,this.$root.$options.shadowRoot))}:function(t){e.call(this,a(t))}),p)if(c.functional){var h=c.render;c.render=function(t,e){return p.call(e),h(t,e)}}else{var d=c.beforeCreate;c.beforeCreate=d?[].concat(d,p):[p]}return i}var ln=an,pn=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",[t._t("default")],2)},cn=[],hn=void 0,dn=void 0,fn=void 0,mn=!1,yn=un({render:pn,staticRenderFns:cn},hn,ln,dn,mn,fn,!1,void 0,void 0,void 0);const vn=yn;var bn=function(t){return t&&"function"===typeof t.charAt?t.charAt(0).toUpperCase()+t.slice(1):t},_n=function(t,e,i,o){var r=function(o){var r="set"+bn(o),s=i[o].type===Object||i[o].type===Array||Array.isArray(i[o].type);i[o].custom&&t[r]?t.$watch(o,(function(e,i){t[r](e,i)}),{deep:s}):"setOptions"===r?t.$watch(o,(function(t,i){(0,n.setOptions)(e,t)}),{deep:s}):e[r]&&t.$watch(o,(function(t,i){e[r](t)}),{deep:s})};for(var s in i)r(s)},gn={name:"LIconDefault",props:{imagePath:{type:String,custom:!0,default:""}},mounted:function(){n.Icon.Default.imagePath=this.imagePath,_n(this,{},this.$options.props)},methods:{setImagePath:function(t){n.Icon.Default.imagePath=t}},render:function(){return null}};function On(t,e,i,n,o,r,s,a,u,l){"boolean"!==typeof s&&(u=a,a=s,s=!1);var p,c="function"===typeof i?i.options:i;if(t&&t.render&&(c.render=t.render,c.staticRenderFns=t.staticRenderFns,c._compiled=!0,o&&(c.functional=!0)),n&&(c._scopeId=n),r?(p=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"===typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),e&&e.call(this,u(t)),t&&t._registeredComponents&&t._registeredComponents.add(r)},c._ssrRegister=p):e&&(p=s?function(t){e.call(this,l(t,this.$root.$options.shadowRoot))}:function(t){e.call(this,a(t))}),p)if(c.functional){var h=c.render;c.render=function(t,e){return p.call(e),h(t,e)}}else{var d=c.beforeCreate;c.beforeCreate=d?[].concat(d,p):[p]}return i}var Cn=gn,Ln=void 0,Sn=void 0,jn=void 0,$n=void 0,An=On({},Ln,Cn,Sn,$n,jn,!1,void 0,void 0,void 0);const Tn=An;var wn=function(t){return t&&"function"===typeof t.charAt?t.charAt(0).toUpperCase()+t.slice(1):t},xn=function(t,e,i,o){var r=function(o){var r="set"+wn(o),s=i[o].type===Object||i[o].type===Array||Array.isArray(i[o].type);i[o].custom&&t[r]?t.$watch(o,(function(e,i){t[r](e,i)}),{deep:s}):"setOptions"===r?t.$watch(o,(function(t,i){(0,n.setOptions)(e,t)}),{deep:s}):e[r]&&t.$watch(o,(function(t,i){e[r](t)}),{deep:s})};for(var s in i)r(s)},Nn=function(t){var e={};for(var i in t){var n=t[i];null!==n&&void 0!==n&&(e[i]=n)}return e},Pn=function(t,e){var i=e.options&&e.options.constructor===Object?e.options:{};t=t&&t.constructor===Object?t:{};var n=Nn(i);t=Nn(t);var o=e.$options.props;for(var r in t){var s=o[r]?o[r].default&&"function"===typeof o[r].default?o[r].default.call():o[r].default:Symbol("unique"),a=!1;a=Array.isArray(s)?JSON.stringify(s)===JSON.stringify(t[r]):s===t[r],n[r]&&!a?(console.warn(r+" props is overriding the value passed in the options props"),n[r]=t[r]):n[r]||(n[r]=t[r])}return n},Rn=function(t){var e=!1;while(t&&!e)void 0===t.mapObject?t=t.$parent:e=!0;return t},Mn={props:{pane:{type:String,default:"overlayPane"},attribution:{type:String,default:null,custom:!0},name:{type:String,custom:!0,default:void 0},layerType:{type:String,custom:!0,default:void 0},visible:{type:Boolean,custom:!0,default:!0}},mounted:function(){this.layerOptions={attribution:this.attribution,pane:this.pane}},beforeDestroy:function(){this.unbindPopup(),this.unbindTooltip(),this.parentContainer.removeLayer(this)},methods:{setAttribution:function(t,e){var i=this.$parent.mapObject.attributionControl;i.removeAttribution(e).addAttribution(t)},setName:function(){this.parentContainer.removeLayer(this),this.visible&&this.parentContainer.addLayer(this)},setLayerType:function(){this.parentContainer.removeLayer(this),this.visible&&this.parentContainer.addLayer(this)},setVisible:function(t){this.mapObject&&(t?this.parentContainer.addLayer(this):this.parentContainer.hideLayer?this.parentContainer.hideLayer(this):this.parentContainer.removeLayer(this))},unbindTooltip:function(){var t=this.mapObject?this.mapObject.getTooltip():null;t&&t.unbindTooltip()},unbindPopup:function(){var t=this.mapObject?this.mapObject.getPopup():null;t&&t.unbindPopup()},updateVisibleProp:function(t){this.$emit("update:visible",t)}}},kn={props:{interactive:{type:Boolean,default:!0},bubblingMouseEvents:{type:Boolean,default:!0}},mounted:function(){this.interactiveLayerOptions={interactive:this.interactive,bubblingMouseEvents:this.bubblingMouseEvents}}},En={mixins:[Mn,kn],props:{url:{type:String,custom:!0},bounds:{custom:!0},opacity:{type:Number,custom:!0,default:1},alt:{type:String,default:""},interactive:{type:Boolean,default:!1},crossOrigin:{type:Boolean,default:!1},errorOverlayUrl:{type:String,custom:!0,default:""},zIndex:{type:Number,custom:!0,default:1},className:{type:String,default:""}},mounted:function(){this.imageOverlayOptions=Object.assign({},this.layerOptions,this.interactiveLayerOptions,{opacity:this.opacity,alt:this.alt,interactive:this.interactive,crossOrigin:this.crossOrigin,errorOverlayUrl:this.errorOverlayUrl,zIndex:this.zIndex,className:this.className})},methods:{setOpacity:function(t){return this.mapObject.setOpacity(t)},setUrl:function(t){return this.mapObject.setUrl(t)},setBounds:function(t){return this.mapObject.setBounds(t)},getBounds:function(){return this.mapObject.getBounds()},getElement:function(){return this.mapObject.getElement()},bringToFront:function(){return this.mapObject.bringToFront()},bringToBack:function(){return this.mapObject.bringToBack()}},render:function(){return null}},Bn={props:{options:{type:Object,default:function(){return{}}}}},In={name:"LImageOverlay",mixins:[En,Bn],mounted:function(){var t=this,e=Pn(this.imageOverlayOptions,this);this.mapObject=(0,n.imageOverlay)(this.url,this.bounds,e),n.DomEvent.on(this.mapObject,this.$listeners),xn(this,this.mapObject,this.$options.props),this.parentContainer=Rn(this.$parent),this.parentContainer.addLayer(this,!this.visible),this.$nextTick((function(){t.$emit("ready",t.mapObject)}))},render:function(){return null}};function Fn(t,e,i,n,o,r,s,a,u,l){"boolean"!==typeof s&&(u=a,a=s,s=!1);var p,c="function"===typeof i?i.options:i;if(t&&t.render&&(c.render=t.render,c.staticRenderFns=t.staticRenderFns,c._compiled=!0,o&&(c.functional=!0)),n&&(c._scopeId=n),r?(p=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"===typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),e&&e.call(this,u(t)),t&&t._registeredComponents&&t._registeredComponents.add(r)},c._ssrRegister=p):e&&(p=s?function(t){e.call(this,l(t,this.$root.$options.shadowRoot))}:function(t){e.call(this,a(t))}),p)if(c.functional){var h=c.render;c.render=function(t,e){return p.call(e),h(t,e)}}else{var d=c.beforeCreate;c.beforeCreate=d?[].concat(d,p):[p]}return i}var Un=In,zn=void 0,Dn=void 0,Vn=void 0,Gn=void 0,Jn=Fn({},zn,Un,Dn,Gn,Vn,!1,void 0,void 0,void 0);const Zn=Jn;var Xn=function(t){return t&&"function"===typeof t.charAt?t.charAt(0).toUpperCase()+t.slice(1):t},Hn=function(t,e,i,o){var r=function(o){var r="set"+Xn(o),s=i[o].type===Object||i[o].type===Array||Array.isArray(i[o].type);i[o].custom&&t[r]?t.$watch(o,(function(e,i){t[r](e,i)}),{deep:s}):"setOptions"===r?t.$watch(o,(function(t,i){(0,n.setOptions)(e,t)}),{deep:s}):e[r]&&t.$watch(o,(function(t,i){e[r](t)}),{deep:s})};for(var s in i)r(s)},Wn=function(t){var e=!1;while(t&&!e)void 0===t.mapObject?t=t.$parent:e=!0;return t},qn={props:{pane:{type:String,default:"overlayPane"},attribution:{type:String,default:null,custom:!0},name:{type:String,custom:!0,default:void 0},layerType:{type:String,custom:!0,default:void 0},visible:{type:Boolean,custom:!0,default:!0}},mounted:function(){this.layerOptions={attribution:this.attribution,pane:this.pane}},beforeDestroy:function(){this.unbindPopup(),this.unbindTooltip(),this.parentContainer.removeLayer(this)},methods:{setAttribution:function(t,e){var i=this.$parent.mapObject.attributionControl;i.removeAttribution(e).addAttribution(t)},setName:function(){this.parentContainer.removeLayer(this),this.visible&&this.parentContainer.addLayer(this)},setLayerType:function(){this.parentContainer.removeLayer(this),this.visible&&this.parentContainer.addLayer(this)},setVisible:function(t){this.mapObject&&(t?this.parentContainer.addLayer(this):this.parentContainer.hideLayer?this.parentContainer.hideLayer(this):this.parentContainer.removeLayer(this))},unbindTooltip:function(){var t=this.mapObject?this.mapObject.getTooltip():null;t&&t.unbindTooltip()},unbindPopup:function(){var t=this.mapObject?this.mapObject.getPopup():null;t&&t.unbindPopup()},updateVisibleProp:function(t){this.$emit("update:visible",t)}}},Qn={mixins:[qn],mounted:function(){this.layerGroupOptions=this.layerOptions},methods:{addLayer:function(t,e){e||this.mapObject.addLayer(t.mapObject),this.parentContainer.addLayer(t,!0)},removeLayer:function(t,e){e||this.mapObject.removeLayer(t.mapObject),this.parentContainer.removeLayer(t,!0)}}},Kn={props:{options:{type:Object,default:function(){return{}}}}},Yn={name:"LLayerGroup",mixins:[Qn,Kn],data:function(){return{ready:!1}},mounted:function(){var t=this;this.mapObject=(0,n.layerGroup)(),Hn(this,this.mapObject,this.$options.props),n.DomEvent.on(this.mapObject,this.$listeners),this.ready=!0,this.parentContainer=Wn(this.$parent),this.parentContainer.addLayer(this,!this.visible),this.$nextTick((function(){t.$emit("ready",t.mapObject)}))}};function to(t,e,i,n,o,r,s,a,u,l){"boolean"!==typeof s&&(u=a,a=s,s=!1);var p,c="function"===typeof i?i.options:i;if(t&&t.render&&(c.render=t.render,c.staticRenderFns=t.staticRenderFns,c._compiled=!0,o&&(c.functional=!0)),n&&(c._scopeId=n),r?(p=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"===typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),e&&e.call(this,u(t)),t&&t._registeredComponents&&t._registeredComponents.add(r)},c._ssrRegister=p):e&&(p=s?function(t){e.call(this,l(t,this.$root.$options.shadowRoot))}:function(t){e.call(this,a(t))}),p)if(c.functional){var h=c.render;c.render=function(t,e){return p.call(e),h(t,e)}}else{var d=c.beforeCreate;c.beforeCreate=d?[].concat(d,p):[p]}return i}var eo=Yn,io=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticStyle:{display:"none"}},[t.ready?t._t("default"):t._e()],2)},no=[],oo=void 0,ro=void 0,so=void 0,ao=!1,uo=to({render:io,staticRenderFns:no},oo,eo,ro,ao,so,!1,void 0,void 0,void 0);const lo=uo;var po=i(75352),co=i(48380),ho=function(t){return t&&"function"===typeof t.charAt?t.charAt(0).toUpperCase()+t.slice(1):t},fo=function(t,e,i,o){var r=function(o){var r="set"+ho(o),s=i[o].type===Object||i[o].type===Array||Array.isArray(i[o].type);i[o].custom&&t[r]?t.$watch(o,(function(e,i){t[r](e,i)}),{deep:s}):"setOptions"===r?t.$watch(o,(function(t,i){(0,n.setOptions)(e,t)}),{deep:s}):e[r]&&t.$watch(o,(function(t,i){e[r](t)}),{deep:s})};for(var s in i)r(s)},mo=function(t){var e={};for(var i in t){var n=t[i];null!==n&&void 0!==n&&(e[i]=n)}return e},yo=function(t,e){var i=e.options&&e.options.constructor===Object?e.options:{};t=t&&t.constructor===Object?t:{};var n=mo(i);t=mo(t);var o=e.$options.props;for(var r in t){var s=o[r]?o[r].default&&"function"===typeof o[r].default?o[r].default.call():o[r].default:Symbol("unique"),a=!1;a=Array.isArray(s)?JSON.stringify(s)===JSON.stringify(t[r]):s===t[r],n[r]&&!a?(console.warn(r+" props is overriding the value passed in the options props"),n[r]=t[r]):n[r]||(n[r]=t[r])}return n},vo=function(t){var e=!1;while(t&&!e)void 0===t.mapObject?t=t.$parent:e=!0;return t},bo={props:{pane:{type:String,default:"overlayPane"},attribution:{type:String,default:null,custom:!0},name:{type:String,custom:!0,default:void 0},layerType:{type:String,custom:!0,default:void 0},visible:{type:Boolean,custom:!0,default:!0}},mounted:function(){this.layerOptions={attribution:this.attribution,pane:this.pane}},beforeDestroy:function(){this.unbindPopup(),this.unbindTooltip(),this.parentContainer.removeLayer(this)},methods:{setAttribution:function(t,e){var i=this.$parent.mapObject.attributionControl;i.removeAttribution(e).addAttribution(t)},setName:function(){this.parentContainer.removeLayer(this),this.visible&&this.parentContainer.addLayer(this)},setLayerType:function(){this.parentContainer.removeLayer(this),this.visible&&this.parentContainer.addLayer(this)},setVisible:function(t){this.mapObject&&(t?this.parentContainer.addLayer(this):this.parentContainer.hideLayer?this.parentContainer.hideLayer(this):this.parentContainer.removeLayer(this))},unbindTooltip:function(){var t=this.mapObject?this.mapObject.getTooltip():null;t&&t.unbindTooltip()},unbindPopup:function(){var t=this.mapObject?this.mapObject.getPopup():null;t&&t.unbindPopup()},updateVisibleProp:function(t){this.$emit("update:visible",t)}}},_o={props:{interactive:{type:Boolean,default:!0},bubblingMouseEvents:{type:Boolean,default:!0}},mounted:function(){this.interactiveLayerOptions={interactive:this.interactive,bubblingMouseEvents:this.bubblingMouseEvents}}},go={mixins:[bo,_o],props:{lStyle:{type:Object,custom:!0,default:null},stroke:{type:Boolean,custom:!0,default:!0},color:{type:String,custom:!0,default:"#3388ff"},weight:{type:Number,custom:!0,default:3},opacity:{type:Number,custom:!0,default:1},lineCap:{type:String,custom:!0,default:"round"},lineJoin:{type:String,custom:!0,default:"round"},dashArray:{type:String,custom:!0,default:null},dashOffset:{type:String,custom:!0,default:null},fill:{type:Boolean,custom:!0,default:!1},fillColor:{type:String,custom:!0,default:"#3388ff"},fillOpacity:{type:Number,custom:!0,default:.2},fillRule:{type:String,custom:!0,default:"evenodd"},className:{type:String,custom:!0,default:null}},mounted:function(){if(this.pathOptions=Object.assign({},this.layerOptions,this.interactiveLayerOptions,{stroke:this.stroke,color:this.color,weight:this.weight,opacity:this.opacity,lineCap:this.lineCap,lineJoin:this.lineJoin,dashArray:this.dashArray,dashOffset:this.dashOffset,fill:this.fill,fillColor:this.fillColor,fillOpacity:this.fillOpacity,fillRule:this.fillRule,className:this.className}),this.lStyle)for(var t in console.warn("lStyle is deprecated and is going to be removed in the next major version"),this.lStyle)this.pathOptions[t]=this.lStyle[t]},beforeDestroy:function(){this.parentContainer?this.parentContainer.removeLayer(this):console.error("Missing parent container")},methods:{setLStyle:function(t){this.mapObject.setStyle(t)},setStroke:function(t){this.mapObject.setStyle({stroke:t})},setColor:function(t){this.mapObject.setStyle({color:t})},setWeight:function(t){this.mapObject.setStyle({weight:t})},setOpacity:function(t){this.mapObject.setStyle({opacity:t})},setLineCap:function(t){this.mapObject.setStyle({lineCap:t})},setLineJoin:function(t){this.mapObject.setStyle({lineJoin:t})},setDashArray:function(t){this.mapObject.setStyle({dashArray:t})},setDashOffset:function(t){this.mapObject.setStyle({dashOffset:t})},setFill:function(t){this.mapObject.setStyle({fill:t})},setFillColor:function(t){this.mapObject.setStyle({fillColor:t})},setFillOpacity:function(t){this.mapObject.setStyle({fillOpacity:t})},setFillRule:function(t){this.mapObject.setStyle({fillRule:t})},setClassName:function(t){this.mapObject.setStyle({className:t})}}},Oo={mixins:[go],props:{smoothFactor:{type:Number,custom:!0,default:1},noClip:{type:Boolean,custom:!0,default:!1}},data:function(){return{ready:!1}},mounted:function(){this.polyLineOptions=Object.assign({},this.pathOptions,{smoothFactor:this.smoothFactor,noClip:this.noClip})},methods:{setSmoothFactor:function(t){this.mapObject.setStyle({smoothFactor:t})},setNoClip:function(t){this.mapObject.setStyle({noClip:t})},addLatLng:function(t){this.mapObject.addLatLng(t)}}},Co={mixins:[Oo],props:{fill:{type:Boolean,custom:!0,default:!0}},mounted:function(){this.polygonOptions=this.polyLineOptions},methods:{getGeoJSONData:function(){return this.mapObject.toGeoJSON()}}},Lo={props:{options:{type:Object,default:function(){return{}}}}},So={name:"LPolygon",mixins:[Co,Lo],props:{latLngs:{type:Array,default:function(){return[]}}},data:function(){return{ready:!1}},mounted:function(){var t=this,e=yo(this.polygonOptions,this);this.mapObject=(0,n.polygon)(this.latLngs,e),n.DomEvent.on(this.mapObject,this.$listeners),fo(this,this.mapObject,this.$options.props),this.ready=!0,this.parentContainer=vo(this.$parent),this.parentContainer.addLayer(this,!this.visible),this.$nextTick((function(){t.$emit("ready",t.mapObject)}))}};function jo(t,e,i,n,o,r,s,a,u,l){"boolean"!==typeof s&&(u=a,a=s,s=!1);var p,c="function"===typeof i?i.options:i;if(t&&t.render&&(c.render=t.render,c.staticRenderFns=t.staticRenderFns,c._compiled=!0,o&&(c.functional=!0)),n&&(c._scopeId=n),r?(p=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"===typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),e&&e.call(this,u(t)),t&&t._registeredComponents&&t._registeredComponents.add(r)},c._ssrRegister=p):e&&(p=s?function(t){e.call(this,l(t,this.$root.$options.shadowRoot))}:function(t){e.call(this,a(t))}),p)if(c.functional){var h=c.render;c.render=function(t,e){return p.call(e),h(t,e)}}else{var d=c.beforeCreate;c.beforeCreate=d?[].concat(d,p):[p]}return i}var $o=So,Ao=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticStyle:{display:"none"}},[t.ready?t._t("default"):t._e()],2)},To=[],wo=void 0,xo=void 0,No=void 0,Po=!1,Ro=jo({render:Ao,staticRenderFns:To},wo,$o,xo,Po,No,!1,void 0,void 0,void 0);const Mo=Ro;var ko=function(t){return t&&"function"===typeof t.charAt?t.charAt(0).toUpperCase()+t.slice(1):t},Eo=function(t,e,i,o){var r=function(o){var r="set"+ko(o),s=i[o].type===Object||i[o].type===Array||Array.isArray(i[o].type);i[o].custom&&t[r]?t.$watch(o,(function(e,i){t[r](e,i)}),{deep:s}):"setOptions"===r?t.$watch(o,(function(t,i){(0,n.setOptions)(e,t)}),{deep:s}):e[r]&&t.$watch(o,(function(t,i){e[r](t)}),{deep:s})};for(var s in i)r(s)},Bo=function(t){var e={};for(var i in t){var n=t[i];null!==n&&void 0!==n&&(e[i]=n)}return e},Io=function(t,e){var i=e.options&&e.options.constructor===Object?e.options:{};t=t&&t.constructor===Object?t:{};var n=Bo(i);t=Bo(t);var o=e.$options.props;for(var r in t){var s=o[r]?o[r].default&&"function"===typeof o[r].default?o[r].default.call():o[r].default:Symbol("unique"),a=!1;a=Array.isArray(s)?JSON.stringify(s)===JSON.stringify(t[r]):s===t[r],n[r]&&!a?(console.warn(r+" props is overriding the value passed in the options props"),n[r]=t[r]):n[r]||(n[r]=t[r])}return n},Fo=function(t){var e=!1;while(t&&!e)void 0===t.mapObject?t=t.$parent:e=!0;return t},Uo={props:{pane:{type:String,default:"overlayPane"},attribution:{type:String,default:null,custom:!0},name:{type:String,custom:!0,default:void 0},layerType:{type:String,custom:!0,default:void 0},visible:{type:Boolean,custom:!0,default:!0}},mounted:function(){this.layerOptions={attribution:this.attribution,pane:this.pane}},beforeDestroy:function(){this.unbindPopup(),this.unbindTooltip(),this.parentContainer.removeLayer(this)},methods:{setAttribution:function(t,e){var i=this.$parent.mapObject.attributionControl;i.removeAttribution(e).addAttribution(t)},setName:function(){this.parentContainer.removeLayer(this),this.visible&&this.parentContainer.addLayer(this)},setLayerType:function(){this.parentContainer.removeLayer(this),this.visible&&this.parentContainer.addLayer(this)},setVisible:function(t){this.mapObject&&(t?this.parentContainer.addLayer(this):this.parentContainer.hideLayer?this.parentContainer.hideLayer(this):this.parentContainer.removeLayer(this))},unbindTooltip:function(){var t=this.mapObject?this.mapObject.getTooltip():null;t&&t.unbindTooltip()},unbindPopup:function(){var t=this.mapObject?this.mapObject.getPopup():null;t&&t.unbindPopup()},updateVisibleProp:function(t){this.$emit("update:visible",t)}}},zo={props:{interactive:{type:Boolean,default:!0},bubblingMouseEvents:{type:Boolean,default:!0}},mounted:function(){this.interactiveLayerOptions={interactive:this.interactive,bubblingMouseEvents:this.bubblingMouseEvents}}},Do={mixins:[Uo,zo],props:{lStyle:{type:Object,custom:!0,default:null},stroke:{type:Boolean,custom:!0,default:!0},color:{type:String,custom:!0,default:"#3388ff"},weight:{type:Number,custom:!0,default:3},opacity:{type:Number,custom:!0,default:1},lineCap:{type:String,custom:!0,default:"round"},lineJoin:{type:String,custom:!0,default:"round"},dashArray:{type:String,custom:!0,default:null},dashOffset:{type:String,custom:!0,default:null},fill:{type:Boolean,custom:!0,default:!1},fillColor:{type:String,custom:!0,default:"#3388ff"},fillOpacity:{type:Number,custom:!0,default:.2},fillRule:{type:String,custom:!0,default:"evenodd"},className:{type:String,custom:!0,default:null}},mounted:function(){if(this.pathOptions=Object.assign({},this.layerOptions,this.interactiveLayerOptions,{stroke:this.stroke,color:this.color,weight:this.weight,opacity:this.opacity,lineCap:this.lineCap,lineJoin:this.lineJoin,dashArray:this.dashArray,dashOffset:this.dashOffset,fill:this.fill,fillColor:this.fillColor,fillOpacity:this.fillOpacity,fillRule:this.fillRule,className:this.className}),this.lStyle)for(var t in console.warn("lStyle is deprecated and is going to be removed in the next major version"),this.lStyle)this.pathOptions[t]=this.lStyle[t]},beforeDestroy:function(){this.parentContainer?this.parentContainer.removeLayer(this):console.error("Missing parent container")},methods:{setLStyle:function(t){this.mapObject.setStyle(t)},setStroke:function(t){this.mapObject.setStyle({stroke:t})},setColor:function(t){this.mapObject.setStyle({color:t})},setWeight:function(t){this.mapObject.setStyle({weight:t})},setOpacity:function(t){this.mapObject.setStyle({opacity:t})},setLineCap:function(t){this.mapObject.setStyle({lineCap:t})},setLineJoin:function(t){this.mapObject.setStyle({lineJoin:t})},setDashArray:function(t){this.mapObject.setStyle({dashArray:t})},setDashOffset:function(t){this.mapObject.setStyle({dashOffset:t})},setFill:function(t){this.mapObject.setStyle({fill:t})},setFillColor:function(t){this.mapObject.setStyle({fillColor:t})},setFillOpacity:function(t){this.mapObject.setStyle({fillOpacity:t})},setFillRule:function(t){this.mapObject.setStyle({fillRule:t})},setClassName:function(t){this.mapObject.setStyle({className:t})}}},Vo={mixins:[Do],props:{smoothFactor:{type:Number,custom:!0,default:1},noClip:{type:Boolean,custom:!0,default:!1}},data:function(){return{ready:!1}},mounted:function(){this.polyLineOptions=Object.assign({},this.pathOptions,{smoothFactor:this.smoothFactor,noClip:this.noClip})},methods:{setSmoothFactor:function(t){this.mapObject.setStyle({smoothFactor:t})},setNoClip:function(t){this.mapObject.setStyle({noClip:t})},addLatLng:function(t){this.mapObject.addLatLng(t)}}},Go={props:{options:{type:Object,default:function(){return{}}}}},Jo={name:"LPolyline",mixins:[Vo,Go],props:{latLngs:{type:Array,default:function(){return[]}}},data:function(){return{ready:!1}},mounted:function(){var t=this,e=Io(this.polyLineOptions,this);this.mapObject=(0,n.polyline)(this.latLngs,e),n.DomEvent.on(this.mapObject,this.$listeners),Eo(this,this.mapObject,this.$options.props),this.ready=!0,this.parentContainer=Fo(this.$parent),this.parentContainer.addLayer(this,!this.visible),this.$nextTick((function(){t.$emit("ready",t.mapObject)}))}};function Zo(t,e,i,n,o,r,s,a,u,l){"boolean"!==typeof s&&(u=a,a=s,s=!1);var p,c="function"===typeof i?i.options:i;if(t&&t.render&&(c.render=t.render,c.staticRenderFns=t.staticRenderFns,c._compiled=!0,o&&(c.functional=!0)),n&&(c._scopeId=n),r?(p=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"===typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),e&&e.call(this,u(t)),t&&t._registeredComponents&&t._registeredComponents.add(r)},c._ssrRegister=p):e&&(p=s?function(t){e.call(this,l(t,this.$root.$options.shadowRoot))}:function(t){e.call(this,a(t))}),p)if(c.functional){var h=c.render;c.render=function(t,e){return p.call(e),h(t,e)}}else{var d=c.beforeCreate;c.beforeCreate=d?[].concat(d,p):[p]}return i}var Xo=Jo,Ho=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticStyle:{display:"none"}},[t.ready?t._t("default"):t._e()],2)},Wo=[],qo=void 0,Qo=void 0,Ko=void 0,Yo=!1,tr=Zo({render:Ho,staticRenderFns:Wo},qo,Xo,Qo,Yo,Ko,!1,void 0,void 0,void 0);const er=tr;var ir=function(t){return t&&"function"===typeof t.charAt?t.charAt(0).toUpperCase()+t.slice(1):t},nr=function(t,e,i,o){var r=function(o){var r="set"+ir(o),s=i[o].type===Object||i[o].type===Array||Array.isArray(i[o].type);i[o].custom&&t[r]?t.$watch(o,(function(e,i){t[r](e,i)}),{deep:s}):"setOptions"===r?t.$watch(o,(function(t,i){(0,n.setOptions)(e,t)}),{deep:s}):e[r]&&t.$watch(o,(function(t,i){e[r](t)}),{deep:s})};for(var s in i)r(s)},or=function(t){var e={};for(var i in t){var n=t[i];null!==n&&void 0!==n&&(e[i]=n)}return e},rr=function(t,e){var i=e.options&&e.options.constructor===Object?e.options:{};t=t&&t.constructor===Object?t:{};var n=or(i);t=or(t);var o=e.$options.props;for(var r in t){var s=o[r]?o[r].default&&"function"===typeof o[r].default?o[r].default.call():o[r].default:Symbol("unique"),a=!1;a=Array.isArray(s)?JSON.stringify(s)===JSON.stringify(t[r]):s===t[r],n[r]&&!a?(console.warn(r+" props is overriding the value passed in the options props"),n[r]=t[r]):n[r]||(n[r]=t[r])}return n},sr=function(t){var e=!1;while(t&&!e)void 0===t.mapObject?t=t.$parent:e=!0;return t},ar={props:{content:{type:String,default:null,custom:!0}},mounted:function(){this.popperOptions={}},methods:{setContent:function(t){this.mapObject&&null!==t&&void 0!==t&&this.mapObject.setContent(t)}},render:function(t){return this.$slots.default?t("div",this.$slots.default):null}},ur={props:{options:{type:Object,default:function(){return{}}}}},lr={name:"LPopup",mixins:[ar,ur],props:{latLng:{type:[Object,Array],default:function(){return[]}}},mounted:function(){var t=this,e=rr(this.popperOptions,this);this.mapObject=(0,n.popup)(e),void 0!==this.latLng&&this.mapObject.setLatLng(this.latLng),n.DomEvent.on(this.mapObject,this.$listeners),nr(this,this.mapObject,this.$options.props),this.mapObject.setContent(this.content||this.$el),this.parentContainer=sr(this.$parent),this.parentContainer.mapObject.bindPopup(this.mapObject),this.$nextTick((function(){t.$emit("ready",t.mapObject)}))},beforeDestroy:function(){this.parentContainer&&(this.parentContainer.unbindPopup?this.parentContainer.unbindPopup():this.parentContainer.mapObject&&this.parentContainer.mapObject.unbindPopup&&this.parentContainer.mapObject.unbindPopup())}};function pr(t,e,i,n,o,r,s,a,u,l){"boolean"!==typeof s&&(u=a,a=s,s=!1);var p,c="function"===typeof i?i.options:i;if(t&&t.render&&(c.render=t.render,c.staticRenderFns=t.staticRenderFns,c._compiled=!0,o&&(c.functional=!0)),n&&(c._scopeId=n),r?(p=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"===typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),e&&e.call(this,u(t)),t&&t._registeredComponents&&t._registeredComponents.add(r)},c._ssrRegister=p):e&&(p=s?function(t){e.call(this,l(t,this.$root.$options.shadowRoot))}:function(t){e.call(this,a(t))}),p)if(c.functional){var h=c.render;c.render=function(t,e){return p.call(e),h(t,e)}}else{var d=c.beforeCreate;c.beforeCreate=d?[].concat(d,p):[p]}return i}var cr=lr,hr=void 0,dr=void 0,fr=void 0,mr=void 0,yr=pr({},hr,cr,dr,mr,fr,!1,void 0,void 0,void 0);const vr=yr;var br=function(t){return t&&"function"===typeof t.charAt?t.charAt(0).toUpperCase()+t.slice(1):t},_r=function(t,e,i,o){var r=function(o){var r="set"+br(o),s=i[o].type===Object||i[o].type===Array||Array.isArray(i[o].type);i[o].custom&&t[r]?t.$watch(o,(function(e,i){t[r](e,i)}),{deep:s}):"setOptions"===r?t.$watch(o,(function(t,i){(0,n.setOptions)(e,t)}),{deep:s}):e[r]&&t.$watch(o,(function(t,i){e[r](t)}),{deep:s})};for(var s in i)r(s)},gr=function(t){var e={};for(var i in t){var n=t[i];null!==n&&void 0!==n&&(e[i]=n)}return e},Or=function(t,e){var i=e.options&&e.options.constructor===Object?e.options:{};t=t&&t.constructor===Object?t:{};var n=gr(i);t=gr(t);var o=e.$options.props;for(var r in t){var s=o[r]?o[r].default&&"function"===typeof o[r].default?o[r].default.call():o[r].default:Symbol("unique"),a=!1;a=Array.isArray(s)?JSON.stringify(s)===JSON.stringify(t[r]):s===t[r],n[r]&&!a?(console.warn(r+" props is overriding the value passed in the options props"),n[r]=t[r]):n[r]||(n[r]=t[r])}return n},Cr=function(t){var e=!1;while(t&&!e)void 0===t.mapObject?t=t.$parent:e=!0;return t},Lr={props:{pane:{type:String,default:"overlayPane"},attribution:{type:String,default:null,custom:!0},name:{type:String,custom:!0,default:void 0},layerType:{type:String,custom:!0,default:void 0},visible:{type:Boolean,custom:!0,default:!0}},mounted:function(){this.layerOptions={attribution:this.attribution,pane:this.pane}},beforeDestroy:function(){this.unbindPopup(),this.unbindTooltip(),this.parentContainer.removeLayer(this)},methods:{setAttribution:function(t,e){var i=this.$parent.mapObject.attributionControl;i.removeAttribution(e).addAttribution(t)},setName:function(){this.parentContainer.removeLayer(this),this.visible&&this.parentContainer.addLayer(this)},setLayerType:function(){this.parentContainer.removeLayer(this),this.visible&&this.parentContainer.addLayer(this)},setVisible:function(t){this.mapObject&&(t?this.parentContainer.addLayer(this):this.parentContainer.hideLayer?this.parentContainer.hideLayer(this):this.parentContainer.removeLayer(this))},unbindTooltip:function(){var t=this.mapObject?this.mapObject.getTooltip():null;t&&t.unbindTooltip()},unbindPopup:function(){var t=this.mapObject?this.mapObject.getPopup():null;t&&t.unbindPopup()},updateVisibleProp:function(t){this.$emit("update:visible",t)}}},Sr={props:{interactive:{type:Boolean,default:!0},bubblingMouseEvents:{type:Boolean,default:!0}},mounted:function(){this.interactiveLayerOptions={interactive:this.interactive,bubblingMouseEvents:this.bubblingMouseEvents}}},jr={mixins:[Lr,Sr],props:{lStyle:{type:Object,custom:!0,default:null},stroke:{type:Boolean,custom:!0,default:!0},color:{type:String,custom:!0,default:"#3388ff"},weight:{type:Number,custom:!0,default:3},opacity:{type:Number,custom:!0,default:1},lineCap:{type:String,custom:!0,default:"round"},lineJoin:{type:String,custom:!0,default:"round"},dashArray:{type:String,custom:!0,default:null},dashOffset:{type:String,custom:!0,default:null},fill:{type:Boolean,custom:!0,default:!1},fillColor:{type:String,custom:!0,default:"#3388ff"},fillOpacity:{type:Number,custom:!0,default:.2},fillRule:{type:String,custom:!0,default:"evenodd"},className:{type:String,custom:!0,default:null}},mounted:function(){if(this.pathOptions=Object.assign({},this.layerOptions,this.interactiveLayerOptions,{stroke:this.stroke,color:this.color,weight:this.weight,opacity:this.opacity,lineCap:this.lineCap,lineJoin:this.lineJoin,dashArray:this.dashArray,dashOffset:this.dashOffset,fill:this.fill,fillColor:this.fillColor,fillOpacity:this.fillOpacity,fillRule:this.fillRule,className:this.className}),this.lStyle)for(var t in console.warn("lStyle is deprecated and is going to be removed in the next major version"),this.lStyle)this.pathOptions[t]=this.lStyle[t]},beforeDestroy:function(){this.parentContainer?this.parentContainer.removeLayer(this):console.error("Missing parent container")},methods:{setLStyle:function(t){this.mapObject.setStyle(t)},setStroke:function(t){this.mapObject.setStyle({stroke:t})},setColor:function(t){this.mapObject.setStyle({color:t})},setWeight:function(t){this.mapObject.setStyle({weight:t})},setOpacity:function(t){this.mapObject.setStyle({opacity:t})},setLineCap:function(t){this.mapObject.setStyle({lineCap:t})},setLineJoin:function(t){this.mapObject.setStyle({lineJoin:t})},setDashArray:function(t){this.mapObject.setStyle({dashArray:t})},setDashOffset:function(t){this.mapObject.setStyle({dashOffset:t})},setFill:function(t){this.mapObject.setStyle({fill:t})},setFillColor:function(t){this.mapObject.setStyle({fillColor:t})},setFillOpacity:function(t){this.mapObject.setStyle({fillOpacity:t})},setFillRule:function(t){this.mapObject.setStyle({fillRule:t})},setClassName:function(t){this.mapObject.setStyle({className:t})}}},$r={mixins:[jr],props:{smoothFactor:{type:Number,custom:!0,default:1},noClip:{type:Boolean,custom:!0,default:!1}},data:function(){return{ready:!1}},mounted:function(){this.polyLineOptions=Object.assign({},this.pathOptions,{smoothFactor:this.smoothFactor,noClip:this.noClip})},methods:{setSmoothFactor:function(t){this.mapObject.setStyle({smoothFactor:t})},setNoClip:function(t){this.mapObject.setStyle({noClip:t})},addLatLng:function(t){this.mapObject.addLatLng(t)}}},Ar={mixins:[$r],props:{fill:{type:Boolean,custom:!0,default:!0}},mounted:function(){this.polygonOptions=this.polyLineOptions},methods:{getGeoJSONData:function(){return this.mapObject.toGeoJSON()}}},Tr={props:{options:{type:Object,default:function(){return{}}}}},wr={name:"LRectangle",mixins:[Ar,Tr],props:{bounds:{default:function(){return[[0,0],[0,0]]},validator:function(t){return t&&(0,n.latLngBounds)(t).isValid()}}},data:function(){return{ready:!1}},mounted:function(){var t=this,e=Or(this.polygonOptions,this);this.mapObject=(0,n.rectangle)(this.bounds,e),n.DomEvent.on(this.mapObject,this.$listeners),_r(this,this.mapObject,this.$options.props),this.ready=!0,this.parentContainer=Cr(this.$parent),this.parentContainer.addLayer(this,!this.visible),this.$nextTick((function(){t.$emit("ready",t.mapObject)}))}};function xr(t,e,i,n,o,r,s,a,u,l){"boolean"!==typeof s&&(u=a,a=s,s=!1);var p,c="function"===typeof i?i.options:i;if(t&&t.render&&(c.render=t.render,c.staticRenderFns=t.staticRenderFns,c._compiled=!0,o&&(c.functional=!0)),n&&(c._scopeId=n),r?(p=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"===typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),e&&e.call(this,u(t)),t&&t._registeredComponents&&t._registeredComponents.add(r)},c._ssrRegister=p):e&&(p=s?function(t){e.call(this,l(t,this.$root.$options.shadowRoot))}:function(t){e.call(this,a(t))}),p)if(c.functional){var h=c.render;c.render=function(t,e){return p.call(e),h(t,e)}}else{var d=c.beforeCreate;c.beforeCreate=d?[].concat(d,p):[p]}return i}var Nr=wr,Pr=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticStyle:{display:"none"}},[t.ready?t._t("default"):t._e()],2)},Rr=[],Mr=void 0,kr=void 0,Er=void 0,Br=!1,Ir=xr({render:Pr,staticRenderFns:Rr},Mr,Nr,kr,Br,Er,!1,void 0,void 0,void 0);const Fr=Ir;var Ur=i(32727),zr=function(t){return t&&"function"===typeof t.charAt?t.charAt(0).toUpperCase()+t.slice(1):t},Dr=function(t,e,i,o){var r=function(o){var r="set"+zr(o),s=i[o].type===Object||i[o].type===Array||Array.isArray(i[o].type);i[o].custom&&t[r]?t.$watch(o,(function(e,i){t[r](e,i)}),{deep:s}):"setOptions"===r?t.$watch(o,(function(t,i){(0,n.setOptions)(e,t)}),{deep:s}):e[r]&&t.$watch(o,(function(t,i){e[r](t)}),{deep:s})};for(var s in i)r(s)},Vr=function(t){var e={};for(var i in t){var n=t[i];null!==n&&void 0!==n&&(e[i]=n)}return e},Gr=function(t,e){var i=e.options&&e.options.constructor===Object?e.options:{};t=t&&t.constructor===Object?t:{};var n=Vr(i);t=Vr(t);var o=e.$options.props;for(var r in t){var s=o[r]?o[r].default&&"function"===typeof o[r].default?o[r].default.call():o[r].default:Symbol("unique"),a=!1;a=Array.isArray(s)?JSON.stringify(s)===JSON.stringify(t[r]):s===t[r],n[r]&&!a?(console.warn(r+" props is overriding the value passed in the options props"),n[r]=t[r]):n[r]||(n[r]=t[r])}return n},Jr=function(t){var e=!1;while(t&&!e)void 0===t.mapObject?t=t.$parent:e=!0;return t},Zr={props:{content:{type:String,default:null,custom:!0}},mounted:function(){this.popperOptions={}},methods:{setContent:function(t){this.mapObject&&null!==t&&void 0!==t&&this.mapObject.setContent(t)}},render:function(t){return this.$slots.default?t("div",this.$slots.default):null}},Xr={props:{options:{type:Object,default:function(){return{}}}}},Hr={name:"LTooltip",mixins:[Zr,Xr],mounted:function(){var t=this,e=Gr(this.popperOptions,this);this.mapObject=(0,n.tooltip)(e),n.DomEvent.on(this.mapObject,this.$listeners),Dr(this,this.mapObject,this.$options.props),this.mapObject.setContent(this.content||this.$el),this.parentContainer=Jr(this.$parent),this.parentContainer.mapObject.bindTooltip(this.mapObject),this.$nextTick((function(){t.$emit("ready",t.mapObject)}))},beforeDestroy:function(){this.parentContainer&&(this.parentContainer.unbindTooltip?this.parentContainer.unbindTooltip():this.parentContainer.mapObject&&this.parentContainer.mapObject.unbindTooltip&&this.parentContainer.mapObject.unbindTooltip())}};function Wr(t,e,i,n,o,r,s,a,u,l){"boolean"!==typeof s&&(u=a,a=s,s=!1);var p,c="function"===typeof i?i.options:i;if(t&&t.render&&(c.render=t.render,c.staticRenderFns=t.staticRenderFns,c._compiled=!0,o&&(c.functional=!0)),n&&(c._scopeId=n),r?(p=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"===typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),e&&e.call(this,u(t)),t&&t._registeredComponents&&t._registeredComponents.add(r)},c._ssrRegister=p):e&&(p=s?function(t){e.call(this,l(t,this.$root.$options.shadowRoot))}:function(t){e.call(this,a(t))}),p)if(c.functional){var h=c.render;c.render=function(t,e){return p.call(e),h(t,e)}}else{var d=c.beforeCreate;c.beforeCreate=d?[].concat(d,p):[p]}return i}var qr=Hr,Qr=void 0,Kr=void 0,Yr=void 0,ts=void 0,es=Wr({},Qr,qr,Kr,ts,Yr,!1,void 0,void 0,void 0);const is=es;var ns=function(t){return t&&"function"===typeof t.charAt?t.charAt(0).toUpperCase()+t.slice(1):t},os=function(t,e,i,o){var r=function(o){var r="set"+ns(o),s=i[o].type===Object||i[o].type===Array||Array.isArray(i[o].type);i[o].custom&&t[r]?t.$watch(o,(function(e,i){t[r](e,i)}),{deep:s}):"setOptions"===r?t.$watch(o,(function(t,i){(0,n.setOptions)(e,t)}),{deep:s}):e[r]&&t.$watch(o,(function(t,i){e[r](t)}),{deep:s})};for(var s in i)r(s)},rs=function(t){var e={};for(var i in t){var n=t[i];null!==n&&void 0!==n&&(e[i]=n)}return e},ss=function(t,e){var i=e.options&&e.options.constructor===Object?e.options:{};t=t&&t.constructor===Object?t:{};var n=rs(i);t=rs(t);var o=e.$options.props;for(var r in t){var s=o[r]?o[r].default&&"function"===typeof o[r].default?o[r].default.call():o[r].default:Symbol("unique"),a=!1;a=Array.isArray(s)?JSON.stringify(s)===JSON.stringify(t[r]):s===t[r],n[r]&&!a?(console.warn(r+" props is overriding the value passed in the options props"),n[r]=t[r]):n[r]||(n[r]=t[r])}return n},as=function(t){var e=!1;while(t&&!e)void 0===t.mapObject?t=t.$parent:e=!0;return t},us={props:{pane:{type:String,default:"overlayPane"},attribution:{type:String,default:null,custom:!0},name:{type:String,custom:!0,default:void 0},layerType:{type:String,custom:!0,default:void 0},visible:{type:Boolean,custom:!0,default:!0}},mounted:function(){this.layerOptions={attribution:this.attribution,pane:this.pane}},beforeDestroy:function(){this.unbindPopup(),this.unbindTooltip(),this.parentContainer.removeLayer(this)},methods:{setAttribution:function(t,e){var i=this.$parent.mapObject.attributionControl;i.removeAttribution(e).addAttribution(t)},setName:function(){this.parentContainer.removeLayer(this),this.visible&&this.parentContainer.addLayer(this)},setLayerType:function(){this.parentContainer.removeLayer(this),this.visible&&this.parentContainer.addLayer(this)},setVisible:function(t){this.mapObject&&(t?this.parentContainer.addLayer(this):this.parentContainer.hideLayer?this.parentContainer.hideLayer(this):this.parentContainer.removeLayer(this))},unbindTooltip:function(){var t=this.mapObject?this.mapObject.getTooltip():null;t&&t.unbindTooltip()},unbindPopup:function(){var t=this.mapObject?this.mapObject.getPopup():null;t&&t.unbindPopup()},updateVisibleProp:function(t){this.$emit("update:visible",t)}}},ls={mixins:[us],props:{pane:{type:String,default:"tilePane"},opacity:{type:Number,custom:!1,default:1},zIndex:{type:Number,default:1},tileSize:{type:Number,default:256},noWrap:{type:Boolean,default:!1}},mounted:function(){this.gridLayerOptions=Object.assign({},this.layerOptions,{pane:this.pane,opacity:this.opacity,zIndex:this.zIndex,tileSize:this.tileSize,noWrap:this.noWrap})}},ps={mixins:[ls],props:{tms:{type:Boolean,default:!1},subdomains:{type:[String,Array],default:"abc",validator:function(t){return"string"===typeof t||!!Array.isArray(t)&&t.every((function(t){return"string"===typeof t}))}},detectRetina:{type:Boolean,default:!1}},mounted:function(){this.tileLayerOptions=Object.assign({},this.gridLayerOptions,{tms:this.tms,subdomains:this.subdomains,detectRetina:this.detectRetina})},render:function(){return null}},cs={mixins:[ps],props:{layers:{type:String,default:""},styles:{type:String,default:""},format:{type:String,default:"image/jpeg"},transparent:{type:Boolean,custom:!1},version:{type:String,default:"1.1.1"},crs:{default:null},upperCase:{type:Boolean,default:!1}},mounted:function(){this.tileLayerWMSOptions=Object.assign({},this.tileLayerOptions,{layers:this.layers,styles:this.styles,format:this.format,transparent:this.transparent,version:this.version,crs:this.crs,upperCase:this.upperCase})}},hs={props:{options:{type:Object,default:function(){return{}}}}},ds={name:"LWMSTileLayer",mixins:[cs,hs],props:{baseUrl:{type:String,default:null}},mounted:function(){var t=this,e=ss(this.tileLayerWMSOptions,this);this.mapObject=n.tileLayer.wms(this.baseUrl,e),n.DomEvent.on(this.mapObject,this.$listeners),os(this,this.mapObject,this.$options.props),this.parentContainer=as(this.$parent),this.parentContainer.addLayer(this,!this.visible),this.$nextTick((function(){t.$emit("ready",t.mapObject)}))}};function fs(t,e,i,n,o,r,s,a,u,l){"boolean"!==typeof s&&(u=a,a=s,s=!1);var p,c="function"===typeof i?i.options:i;if(t&&t.render&&(c.render=t.render,c.staticRenderFns=t.staticRenderFns,c._compiled=!0,o&&(c.functional=!0)),n&&(c._scopeId=n),r?(p=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"===typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),e&&e.call(this,u(t)),t&&t._registeredComponents&&t._registeredComponents.add(r)},c._ssrRegister=p):e&&(p=s?function(t){e.call(this,l(t,this.$root.$options.shadowRoot))}:function(t){e.call(this,a(t))}),p)if(c.functional){var h=c.render;c.render=function(t,e){return p.call(e),h(t,e)}}else{var d=c.beforeCreate;c.beforeCreate=d?[].concat(d,p):[p]}return i}var ms=ds,ys=void 0,vs=void 0,bs=void 0,_s=void 0,gs=fs({},ys,ms,vs,_s,bs,!1,void 0,void 0,void 0);const Os=gs}}]); \ No newline at end of file diff --git a/HomeUI/dist/js/9816.js b/HomeUI/dist/js/9816.js index 2496a6fea..ae5005e5e 100644 --- a/HomeUI/dist/js/9816.js +++ b/HomeUI/dist/js/9816.js @@ -1 +1 @@ -"use strict";(globalThis["webpackChunkflux"]=globalThis["webpackChunkflux"]||[]).push([[9816],{34547:(t,e,a)=>{a.d(e,{Z:()=>c});var n=function(){var t=this,e=t._self._c;return e("div",{staticClass:"toastification"},[e("div",{staticClass:"d-flex align-items-start"},[e("b-avatar",{staticClass:"mr-75 flex-shrink-0",attrs:{variant:t.variant,size:"1.8rem"}},[e("feather-icon",{attrs:{icon:t.icon,size:"15"}})],1),e("div",{staticClass:"d-flex flex-grow-1"},[e("div",[t.title?e("h5",{staticClass:"mb-0 font-weight-bolder toastification-title",class:`text-${t.variant}`,domProps:{textContent:t._s(t.title)}}):t._e(),t.text?e("small",{staticClass:"d-inline-block text-body",domProps:{textContent:t._s(t.text)}}):t._e()]),e("span",{staticClass:"cursor-pointer toastification-close-icon ml-auto",on:{click:function(e){return t.$emit("close-toast")}}},[t.hideClose?t._e():e("feather-icon",{staticClass:"text-body",attrs:{icon:"XIcon"}})],1)])],1)])},r=[],o=a(47389);const i={components:{BAvatar:o.SH},props:{variant:{type:String,default:"primary"},icon:{type:String,default:null},title:{type:String,default:null},text:{type:String,default:null},hideClose:{type:Boolean,default:!1}}},s=i;var l=a(1001),d=(0,l.Z)(s,n,r,!1,null,"22d964ca",null);const c=d.exports},59816:(t,e,a)=>{a.r(e),a.d(e,{default:()=>f});var n=function(){var t=this,e=t._self._c;return e("b-card",[e("div",[e("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"ml-1",attrs:{id:"start-daemon",variant:"outline-primary",size:"md"}},[t._v(" Start Benchmark Daemon ")]),e("b-popover",{ref:"popover",attrs:{target:"start-daemon",triggers:"click",show:t.popoverShow,placement:"auto",container:"my-container"},on:{"update:show":function(e){t.popoverShow=e}},scopedSlots:t._u([{key:"title",fn:function(){return[e("div",{staticClass:"d-flex justify-content-between align-items-center"},[e("span",[t._v("Are You Sure?")]),e("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"close",attrs:{variant:"transparent","aria-label":"Close"},on:{click:t.onClose}},[e("span",{staticClass:"d-inline-block text-white",attrs:{"aria-hidden":"true"}},[t._v("×")])])],1)]},proxy:!0}])},[e("div",[e("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"mr-1",attrs:{size:"sm",variant:"danger"},on:{click:t.onClose}},[t._v(" Cancel ")]),e("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],attrs:{size:"sm",variant:"primary"},on:{click:t.onOk}},[t._v(" Start Benchmark ")])],1)]),e("b-modal",{attrs:{id:"modal-center",centered:"",title:"Benchmark Daemon Start","ok-only":"","ok-title":"OK"},model:{value:t.modalShow,callback:function(e){t.modalShow=e},expression:"modalShow"}},[e("b-card-text",[t._v(" The benchmark daemon will now start. ")])],1)],1)])},r=[],o=a(86855),i=a(15193),s=a(53862),l=a(31220),d=a(64206),c=a(34547),u=a(20266),m=a(27616);const g={components:{BCard:o._,BButton:i.T,BPopover:s.x,BModal:l.N,BCardText:d.j,ToastificationContent:c.Z},directives:{Ripple:u.Z},data(){return{popoverShow:!1,modalShow:!1}},methods:{onClose(){this.popoverShow=!1},onOk(){this.popoverShow=!1,this.modalShow=!0;const t=localStorage.getItem("zelidauth");m.Z.startBenchmark(t).then((t=>{this.$toast({component:c.Z,props:{title:t.data.data.message||t.data.data,icon:"InfoIcon",variant:"success"}})})).catch((()=>{this.$toast({component:c.Z,props:{title:"Error while trying to start Benchmark",icon:"InfoIcon",variant:"danger"}})}))}}},p=g;var h=a(1001),v=(0,h.Z)(p,n,r,!1,null,null,null);const f=v.exports},27616:(t,e,a)=>{a.d(e,{Z:()=>r});var n=a(80914);const r={help(){return(0,n.Z)().get("/daemon/help")},helpSpecific(t){return(0,n.Z)().get(`/daemon/help/${t}`)},getInfo(){return(0,n.Z)().get("/daemon/getinfo")},getFluxNodeStatus(){return(0,n.Z)().get("/daemon/getzelnodestatus")},getRawTransaction(t,e){return(0,n.Z)().get(`/daemon/getrawtransaction/${t}/${e}`)},listFluxNodes(){return(0,n.Z)().get("/daemon/listzelnodes")},viewDeterministicFluxNodeList(){return(0,n.Z)().get("/daemon/viewdeterministiczelnodelist")},getFluxNodeCount(){return(0,n.Z)().get("/daemon/getzelnodecount")},getStartList(){return(0,n.Z)().get("/daemon/getstartlist")},getDOSList(){return(0,n.Z)().get("/daemon/getdoslist")},fluxCurrentWinner(){return(0,n.Z)().get("/daemon/fluxcurrentwinner")},getBenchmarks(){return(0,n.Z)().get("/daemon/getbenchmarks")},getBenchStatus(){return(0,n.Z)().get("/daemon/getbenchstatus")},startBenchmark(t){return(0,n.Z)().get("/daemon/startbenchmark",{headers:{zelidauth:t}})},stopBenchmark(t){return(0,n.Z)().get("/daemon/stopbenchmark",{headers:{zelidauth:t}})},getBlockCount(){return(0,n.Z)().get("/daemon/getBlockCount")},getBlockchainInfo(){return(0,n.Z)().get("/daemon/getblockchaininfo")},getMiningInfo(){return(0,n.Z)().get("/daemon/getmininginfo")},getNetworkInfo(){return(0,n.Z)().get("/daemon/getnetworkinfo")},validateAddress(t,e){return(0,n.Z)().get(`/daemon/validateaddress/${e}`,{headers:{zelidauth:t}})},getWalletInfo(t){return(0,n.Z)().get("/daemon/getwalletinfo",{headers:{zelidauth:t}})},listFluxNodeConf(t){return(0,n.Z)().get("/daemon/listzelnodeconf",{headers:{zelidauth:t}})},start(t){return(0,n.Z)().get("/daemon/start",{headers:{zelidauth:t}})},restart(t){return(0,n.Z)().get("/daemon/restart",{headers:{zelidauth:t}})},stopDaemon(t){return(0,n.Z)().get("/daemon/stop",{headers:{zelidauth:t}})},rescanDaemon(t,e){return(0,n.Z)().get(`/daemon/rescanblockchain/${e}`,{headers:{zelidauth:t}})},getBlock(t,e){return(0,n.Z)().get(`/daemon/getblock/${t}/${e}`)},tailDaemonDebug(t){return(0,n.Z)().get("/flux/taildaemondebug",{headers:{zelidauth:t}})},justAPI(){return(0,n.Z)()},cancelToken(){return n.S}}}}]); \ No newline at end of file +"use strict";(self["webpackChunkflux"]=self["webpackChunkflux"]||[]).push([[9816],{34547:(e,t,a)=>{a.d(t,{Z:()=>c});var n=function(){var e=this,t=e._self._c;return t("div",{staticClass:"toastification"},[t("div",{staticClass:"d-flex align-items-start"},[t("b-avatar",{staticClass:"mr-75 flex-shrink-0",attrs:{variant:e.variant,size:"1.8rem"}},[t("feather-icon",{attrs:{icon:e.icon,size:"15"}})],1),t("div",{staticClass:"d-flex flex-grow-1"},[t("div",[e.title?t("h5",{staticClass:"mb-0 font-weight-bolder toastification-title",class:`text-${e.variant}`,domProps:{textContent:e._s(e.title)}}):e._e(),e.text?t("small",{staticClass:"d-inline-block text-body",domProps:{textContent:e._s(e.text)}}):e._e()]),t("span",{staticClass:"cursor-pointer toastification-close-icon ml-auto",on:{click:function(t){return e.$emit("close-toast")}}},[e.hideClose?e._e():t("feather-icon",{staticClass:"text-body",attrs:{icon:"XIcon"}})],1)])],1)])},r=[],o=a(47389);const s={components:{BAvatar:o.SH},props:{variant:{type:String,default:"primary"},icon:{type:String,default:null},title:{type:String,default:null},text:{type:String,default:null},hideClose:{type:Boolean,default:!1}}},i=s;var l=a(1001),d=(0,l.Z)(i,n,r,!1,null,"22d964ca",null);const c=d.exports},59816:(e,t,a)=>{a.r(t),a.d(t,{default:()=>f});var n=function(){var e=this,t=e._self._c;return t("b-card",[t("div",[t("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"ml-1",attrs:{id:"start-daemon",variant:"outline-primary",size:"md"}},[e._v(" Start Benchmark Daemon ")]),t("b-popover",{ref:"popover",attrs:{target:"start-daemon",triggers:"click",show:e.popoverShow,placement:"auto",container:"my-container"},on:{"update:show":function(t){e.popoverShow=t}},scopedSlots:e._u([{key:"title",fn:function(){return[t("div",{staticClass:"d-flex justify-content-between align-items-center"},[t("span",[e._v("Are You Sure?")]),t("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"close",attrs:{variant:"transparent","aria-label":"Close"},on:{click:e.onClose}},[t("span",{staticClass:"d-inline-block text-white",attrs:{"aria-hidden":"true"}},[e._v("×")])])],1)]},proxy:!0}])},[t("div",[t("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"mr-1",attrs:{size:"sm",variant:"danger"},on:{click:e.onClose}},[e._v(" Cancel ")]),t("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],attrs:{size:"sm",variant:"primary"},on:{click:e.onOk}},[e._v(" Start Benchmark ")])],1)]),t("b-modal",{attrs:{id:"modal-center",centered:"",title:"Benchmark Daemon Start","ok-only":"","ok-title":"OK"},model:{value:e.modalShow,callback:function(t){e.modalShow=t},expression:"modalShow"}},[t("b-card-text",[e._v(" The benchmark daemon will now start. ")])],1)],1)])},r=[],o=a(86855),s=a(15193),i=a(53862),l=a(31220),d=a(64206),c=a(34547),u=a(20266),m=a(27616);const g={components:{BCard:o._,BButton:s.T,BPopover:i.x,BModal:l.N,BCardText:d.j,ToastificationContent:c.Z},directives:{Ripple:u.Z},data(){return{popoverShow:!1,modalShow:!1}},methods:{onClose(){this.popoverShow=!1},onOk(){this.popoverShow=!1,this.modalShow=!0;const e=localStorage.getItem("zelidauth");m.Z.startBenchmark(e).then((e=>{this.$toast({component:c.Z,props:{title:e.data.data.message||e.data.data,icon:"InfoIcon",variant:"success"}})})).catch((()=>{this.$toast({component:c.Z,props:{title:"Error while trying to start Benchmark",icon:"InfoIcon",variant:"danger"}})}))}}},p=g;var h=a(1001),v=(0,h.Z)(p,n,r,!1,null,null,null);const f=v.exports},27616:(e,t,a)=>{a.d(t,{Z:()=>r});var n=a(80914);const r={help(){return(0,n.Z)().get("/daemon/help")},helpSpecific(e){return(0,n.Z)().get(`/daemon/help/${e}`)},getInfo(){return(0,n.Z)().get("/daemon/getinfo")},getFluxNodeStatus(){return(0,n.Z)().get("/daemon/getzelnodestatus")},getRawTransaction(e,t){return(0,n.Z)().get(`/daemon/getrawtransaction/${e}/${t}`)},listFluxNodes(){return(0,n.Z)().get("/daemon/listzelnodes")},viewDeterministicFluxNodeList(){return(0,n.Z)().get("/daemon/viewdeterministiczelnodelist")},getFluxNodeCount(){return(0,n.Z)().get("/daemon/getzelnodecount")},getStartList(){return(0,n.Z)().get("/daemon/getstartlist")},getDOSList(){return(0,n.Z)().get("/daemon/getdoslist")},fluxCurrentWinner(){return(0,n.Z)().get("/daemon/fluxcurrentwinner")},getBenchmarks(){return(0,n.Z)().get("/daemon/getbenchmarks")},getBenchStatus(){return(0,n.Z)().get("/daemon/getbenchstatus")},startBenchmark(e){return(0,n.Z)().get("/daemon/startbenchmark",{headers:{zelidauth:e}})},stopBenchmark(e){return(0,n.Z)().get("/daemon/stopbenchmark",{headers:{zelidauth:e}})},getBlockCount(){return(0,n.Z)().get("/daemon/getBlockCount")},getBlockchainInfo(){return(0,n.Z)().get("/daemon/getblockchaininfo")},getMiningInfo(){return(0,n.Z)().get("/daemon/getmininginfo")},getNetworkInfo(){return(0,n.Z)().get("/daemon/getnetworkinfo")},validateAddress(e,t){return(0,n.Z)().get(`/daemon/validateaddress/${t}`,{headers:{zelidauth:e}})},getWalletInfo(e){return(0,n.Z)().get("/daemon/getwalletinfo",{headers:{zelidauth:e}})},listFluxNodeConf(e){return(0,n.Z)().get("/daemon/listzelnodeconf",{headers:{zelidauth:e}})},start(e){return(0,n.Z)().get("/daemon/start",{headers:{zelidauth:e}})},restart(e){return(0,n.Z)().get("/daemon/restart",{headers:{zelidauth:e}})},stopDaemon(e){return(0,n.Z)().get("/daemon/stop",{headers:{zelidauth:e}})},rescanDaemon(e,t){return(0,n.Z)().get(`/daemon/rescanblockchain/${t}`,{headers:{zelidauth:e}})},getBlock(e,t){return(0,n.Z)().get(`/daemon/getblock/${e}/${t}`)},tailDaemonDebug(e){return(0,n.Z)().get("/flux/taildaemondebug",{headers:{zelidauth:e}})},justAPI(){return(0,n.Z)()},cancelToken(){return n.S}}}}]); \ No newline at end of file diff --git a/HomeUI/dist/js/9853.js b/HomeUI/dist/js/9853.js index b4feee53d..0094d8caa 100644 --- a/HomeUI/dist/js/9853.js +++ b/HomeUI/dist/js/9853.js @@ -1 +1 @@ -"use strict";(globalThis["webpackChunkflux"]=globalThis["webpackChunkflux"]||[]).push([[9853],{34547:(e,t,a)=>{a.d(t,{Z:()=>c});var n=function(){var e=this,t=e._self._c;return t("div",{staticClass:"toastification"},[t("div",{staticClass:"d-flex align-items-start"},[t("b-avatar",{staticClass:"mr-75 flex-shrink-0",attrs:{variant:e.variant,size:"1.8rem"}},[t("feather-icon",{attrs:{icon:e.icon,size:"15"}})],1),t("div",{staticClass:"d-flex flex-grow-1"},[t("div",[e.title?t("h5",{staticClass:"mb-0 font-weight-bolder toastification-title",class:`text-${e.variant}`,domProps:{textContent:e._s(e.title)}}):e._e(),e.text?t("small",{staticClass:"d-inline-block text-body",domProps:{textContent:e._s(e.text)}}):e._e()]),t("span",{staticClass:"cursor-pointer toastification-close-icon ml-auto",on:{click:function(t){return e.$emit("close-toast")}}},[e.hideClose?e._e():t("feather-icon",{staticClass:"text-body",attrs:{icon:"XIcon"}})],1)])],1)])},o=[],r=a(47389);const i={components:{BAvatar:r.SH},props:{variant:{type:String,default:"primary"},icon:{type:String,default:null},title:{type:String,default:null},text:{type:String,default:null},hideClose:{type:Boolean,default:!1}}},s=i;var l=a(1001),d=(0,l.Z)(s,n,o,!1,null,"22d964ca",null);const c=d.exports},59853:(e,t,a)=>{a.r(t),a.d(t,{default:()=>b});var n=function(){var e=this,t=e._self._c;return t("div",[t("b-card",[t("h6",{staticClass:"mb-1"},[e._v(" Click the 'Download Debug File' button to download the log. This may take a few minutes depending on file size. ")]),t("div",[t("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],attrs:{id:"start-download",variant:"outline-primary",size:"md"}},[e._v(" Download Debug File ")]),e.total&&e.downloaded?t("div",{staticClass:"d-flex",staticStyle:{width:"300px"}},[t("b-card-text",{staticClass:"mt-1 mb-0 mr-auto"},[e._v(" "+e._s(`${(e.downloaded/1e6).toFixed(2)} / ${(e.total/1e6).toFixed(2)}`)+" MB - "+e._s(`${(e.downloaded/e.total*100).toFixed(2)}%`)+" ")]),t("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"btn-icon cancel-button",attrs:{variant:"danger",size:"sm"},on:{click:e.cancelDownload}},[e._v(" x ")])],1):e._e(),t("b-popover",{ref:"popover",attrs:{target:"start-download",triggers:"click",show:e.downloadPopoverShow,placement:"auto",container:"my-container"},on:{"update:show":function(t){e.downloadPopoverShow=t}},scopedSlots:e._u([{key:"title",fn:function(){return[t("div",{staticClass:"d-flex justify-content-between align-items-center"},[t("span",[e._v("Are You Sure?")]),t("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"close",attrs:{variant:"transparent","aria-label":"Close"},on:{click:e.onDownloadClose}},[t("span",{staticClass:"d-inline-block text-white",attrs:{"aria-hidden":"true"}},[e._v("×")])])],1)]},proxy:!0}])},[t("div",[t("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"mr-1",attrs:{size:"sm",variant:"danger"},on:{click:e.onDownloadClose}},[e._v(" Cancel ")]),t("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],attrs:{size:"sm",variant:"primary"},on:{click:e.onDownloadOk}},[e._v(" Download Debug ")])],1)])],1)]),t("b-card",[t("h6",{staticClass:"mb-1"},[e._v(" Click the 'Show Debug File' button to view the last 100 lines of the Daemon debug file. ")]),t("div",[t("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],attrs:{id:"start-tail",variant:"outline-primary",size:"md"}},[e._v(" Show Debug File ")]),e.callResponse.data.message?t("b-form-textarea",{staticClass:"mt-1",attrs:{plaintext:"","no-resize":"",rows:"30",value:e.callResponse.data.message}}):e._e(),t("b-popover",{ref:"popover",attrs:{target:"start-tail",triggers:"click",show:e.tailPopoverShow,placement:"auto",container:"my-container"},on:{"update:show":function(t){e.tailPopoverShow=t}},scopedSlots:e._u([{key:"title",fn:function(){return[t("div",{staticClass:"d-flex justify-content-between align-items-center"},[t("span",[e._v("Are You Sure?")]),t("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"close",attrs:{variant:"transparent","aria-label":"Close"},on:{click:e.onTailClose}},[t("span",{staticClass:"d-inline-block text-white",attrs:{"aria-hidden":"true"}},[e._v("×")])])],1)]},proxy:!0}])},[t("div",[t("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"mr-1",attrs:{size:"sm",variant:"danger"},on:{click:e.onTailClose}},[e._v(" Cancel ")]),t("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],attrs:{size:"sm",variant:"primary"},on:{click:e.onTailOk}},[e._v(" Show Debug ")])],1)])],1)])],1)},o=[],r=(a(98858),a(61318),a(33228),a(86855)),i=a(15193),s=a(53862),l=a(333),d=a(64206),c=a(34547),u=a(20266),g=a(27616);const p={components:{BCard:r._,BButton:i.T,BPopover:s.x,BFormTextarea:l.y,BCardText:d.j,ToastificationContent:c.Z},directives:{Ripple:u.Z},data(){return{downloadPopoverShow:!1,tailPopoverShow:!1,abortToken:{},downloaded:0,total:0,callResponse:{status:"",data:{}}}},methods:{cancelDownload(){this.abortToken.cancel("User download cancelled"),this.downloaded="",this.total=""},onDownloadClose(){this.downloadPopoverShow=!1},async onDownloadOk(){const e=this;this.downloadPopoverShow=!1,this.abortToken=g.Z.cancelToken();const t=localStorage.getItem("zelidauth"),a={headers:{zelidauth:t},responseType:"blob",onDownloadProgress(t){e.downloaded=t.loaded,e.total=t.total},cancelToken:e.abortToken.token},n=await g.Z.justAPI().get("/flux/daemondebug",a),o=window.URL.createObjectURL(new Blob([n.data])),r=document.createElement("a");r.href=o,r.setAttribute("download","debug.log"),document.body.appendChild(r),r.click()},onTailClose(){this.tailPopoverShow=!1},async onTailOk(){this.tailPopoverShow=!1;const e=localStorage.getItem("zelidauth");g.Z.tailDaemonDebug(e).then((e=>{"error"===e.data.status?this.$toast({component:c.Z,props:{title:e.data.data.message||e.data.data,icon:"InfoIcon",variant:"danger"}}):(this.callResponse.status=e.data.status,this.callResponse.data=e.data.data)})).catch((e=>{this.$toast({component:c.Z,props:{title:"Error while trying to get latest debug of Daemon",icon:"InfoIcon",variant:"danger"}}),console.log(e)}))}}},m=p;var h=a(1001),v=(0,h.Z)(m,n,o,!1,null,null,null);const b=v.exports},27616:(e,t,a)=>{a.d(t,{Z:()=>o});var n=a(80914);const o={help(){return(0,n.Z)().get("/daemon/help")},helpSpecific(e){return(0,n.Z)().get(`/daemon/help/${e}`)},getInfo(){return(0,n.Z)().get("/daemon/getinfo")},getFluxNodeStatus(){return(0,n.Z)().get("/daemon/getzelnodestatus")},getRawTransaction(e,t){return(0,n.Z)().get(`/daemon/getrawtransaction/${e}/${t}`)},listFluxNodes(){return(0,n.Z)().get("/daemon/listzelnodes")},viewDeterministicFluxNodeList(){return(0,n.Z)().get("/daemon/viewdeterministiczelnodelist")},getFluxNodeCount(){return(0,n.Z)().get("/daemon/getzelnodecount")},getStartList(){return(0,n.Z)().get("/daemon/getstartlist")},getDOSList(){return(0,n.Z)().get("/daemon/getdoslist")},fluxCurrentWinner(){return(0,n.Z)().get("/daemon/fluxcurrentwinner")},getBenchmarks(){return(0,n.Z)().get("/daemon/getbenchmarks")},getBenchStatus(){return(0,n.Z)().get("/daemon/getbenchstatus")},startBenchmark(e){return(0,n.Z)().get("/daemon/startbenchmark",{headers:{zelidauth:e}})},stopBenchmark(e){return(0,n.Z)().get("/daemon/stopbenchmark",{headers:{zelidauth:e}})},getBlockCount(){return(0,n.Z)().get("/daemon/getBlockCount")},getBlockchainInfo(){return(0,n.Z)().get("/daemon/getblockchaininfo")},getMiningInfo(){return(0,n.Z)().get("/daemon/getmininginfo")},getNetworkInfo(){return(0,n.Z)().get("/daemon/getnetworkinfo")},validateAddress(e,t){return(0,n.Z)().get(`/daemon/validateaddress/${t}`,{headers:{zelidauth:e}})},getWalletInfo(e){return(0,n.Z)().get("/daemon/getwalletinfo",{headers:{zelidauth:e}})},listFluxNodeConf(e){return(0,n.Z)().get("/daemon/listzelnodeconf",{headers:{zelidauth:e}})},start(e){return(0,n.Z)().get("/daemon/start",{headers:{zelidauth:e}})},restart(e){return(0,n.Z)().get("/daemon/restart",{headers:{zelidauth:e}})},stopDaemon(e){return(0,n.Z)().get("/daemon/stop",{headers:{zelidauth:e}})},rescanDaemon(e,t){return(0,n.Z)().get(`/daemon/rescanblockchain/${t}`,{headers:{zelidauth:e}})},getBlock(e,t){return(0,n.Z)().get(`/daemon/getblock/${e}/${t}`)},tailDaemonDebug(e){return(0,n.Z)().get("/flux/taildaemondebug",{headers:{zelidauth:e}})},justAPI(){return(0,n.Z)()},cancelToken(){return n.S}}},50926:(e,t,a)=>{var n=a(23043),o=a(69985),r=a(6648),i=a(44201),s=i("toStringTag"),l=Object,d="Arguments"===r(function(){return arguments}()),c=function(e,t){try{return e[t]}catch(a){}};e.exports=n?r:function(e){var t,a,n;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(a=c(t=l(e),s))?a:d?r(t):"Object"===(n=r(t))&&o(t.callee)?"Arguments":n}},62148:(e,t,a)=>{var n=a(98702),o=a(72560);e.exports=function(e,t,a){return a.get&&n(a.get,t,{getter:!0}),a.set&&n(a.set,t,{setter:!0}),o.f(e,t,a)}},23043:(e,t,a)=>{var n=a(44201),o=n("toStringTag"),r={};r[o]="z",e.exports="[object z]"===String(r)},34327:(e,t,a)=>{var n=a(50926),o=String;e.exports=function(e){if("Symbol"===n(e))throw new TypeError("Cannot convert a Symbol value to a string");return o(e)}},21500:e=>{var t=TypeError;e.exports=function(e,a){if(e{var n=a(11880),o=a(68844),r=a(34327),i=a(21500),s=URLSearchParams,l=s.prototype,d=o(l.append),c=o(l["delete"]),u=o(l.forEach),g=o([].push),p=new s("a=1&a=2&b=3");p["delete"]("a",1),p["delete"]("b",void 0),p+""!=="a=2"&&n(l,"delete",(function(e){var t=arguments.length,a=t<2?void 0:arguments[1];if(t&&void 0===a)return c(this,e);var n=[];u(this,(function(e,t){g(n,{key:t,value:e})})),i(t,1);var o,s=r(e),l=r(a),p=0,m=0,h=!1,v=n.length;while(p{var n=a(11880),o=a(68844),r=a(34327),i=a(21500),s=URLSearchParams,l=s.prototype,d=o(l.getAll),c=o(l.has),u=new s("a=1");!u.has("a",2)&&u.has("a",void 0)||n(l,"has",(function(e){var t=arguments.length,a=t<2?void 0:arguments[1];if(t&&void 0===a)return c(this,e);var n=d(this,e);i(t,1);var o=r(a),s=0;while(s{var n=a(67697),o=a(68844),r=a(62148),i=URLSearchParams.prototype,s=o(i.forEach);n&&!("size"in i)&&r(i,"size",{get:function(){var e=0;return s(this,(function(){e++})),e},configurable:!0,enumerable:!0})}}]); \ No newline at end of file +"use strict";(self["webpackChunkflux"]=self["webpackChunkflux"]||[]).push([[9853],{34547:(e,t,a)=>{a.d(t,{Z:()=>c});var o=function(){var e=this,t=e._self._c;return t("div",{staticClass:"toastification"},[t("div",{staticClass:"d-flex align-items-start"},[t("b-avatar",{staticClass:"mr-75 flex-shrink-0",attrs:{variant:e.variant,size:"1.8rem"}},[t("feather-icon",{attrs:{icon:e.icon,size:"15"}})],1),t("div",{staticClass:"d-flex flex-grow-1"},[t("div",[e.title?t("h5",{staticClass:"mb-0 font-weight-bolder toastification-title",class:`text-${e.variant}`,domProps:{textContent:e._s(e.title)}}):e._e(),e.text?t("small",{staticClass:"d-inline-block text-body",domProps:{textContent:e._s(e.text)}}):e._e()]),t("span",{staticClass:"cursor-pointer toastification-close-icon ml-auto",on:{click:function(t){return e.$emit("close-toast")}}},[e.hideClose?e._e():t("feather-icon",{staticClass:"text-body",attrs:{icon:"XIcon"}})],1)])],1)])},n=[],r=a(47389);const i={components:{BAvatar:r.SH},props:{variant:{type:String,default:"primary"},icon:{type:String,default:null},title:{type:String,default:null},text:{type:String,default:null},hideClose:{type:Boolean,default:!1}}},s=i;var l=a(1001),d=(0,l.Z)(s,o,n,!1,null,"22d964ca",null);const c=d.exports},59853:(e,t,a)=>{a.r(t),a.d(t,{default:()=>b});var o=function(){var e=this,t=e._self._c;return t("div",[t("b-card",[t("h6",{staticClass:"mb-1"},[e._v(" Click the 'Download Debug File' button to download the log. This may take a few minutes depending on file size. ")]),t("div",[t("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],attrs:{id:"start-download",variant:"outline-primary",size:"md"}},[e._v(" Download Debug File ")]),e.total&&e.downloaded?t("div",{staticClass:"d-flex",staticStyle:{width:"300px"}},[t("b-card-text",{staticClass:"mt-1 mb-0 mr-auto"},[e._v(" "+e._s(`${(e.downloaded/1e6).toFixed(2)} / ${(e.total/1e6).toFixed(2)}`)+" MB - "+e._s(`${(e.downloaded/e.total*100).toFixed(2)}%`)+" ")]),t("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"btn-icon cancel-button",attrs:{variant:"danger",size:"sm"},on:{click:e.cancelDownload}},[e._v(" x ")])],1):e._e(),t("b-popover",{ref:"popover",attrs:{target:"start-download",triggers:"click",show:e.downloadPopoverShow,placement:"auto",container:"my-container"},on:{"update:show":function(t){e.downloadPopoverShow=t}},scopedSlots:e._u([{key:"title",fn:function(){return[t("div",{staticClass:"d-flex justify-content-between align-items-center"},[t("span",[e._v("Are You Sure?")]),t("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"close",attrs:{variant:"transparent","aria-label":"Close"},on:{click:e.onDownloadClose}},[t("span",{staticClass:"d-inline-block text-white",attrs:{"aria-hidden":"true"}},[e._v("×")])])],1)]},proxy:!0}])},[t("div",[t("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"mr-1",attrs:{size:"sm",variant:"danger"},on:{click:e.onDownloadClose}},[e._v(" Cancel ")]),t("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],attrs:{size:"sm",variant:"primary"},on:{click:e.onDownloadOk}},[e._v(" Download Debug ")])],1)])],1)]),t("b-card",[t("h6",{staticClass:"mb-1"},[e._v(" Click the 'Show Debug File' button to view the last 100 lines of the Daemon debug file. ")]),t("div",[t("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],attrs:{id:"start-tail",variant:"outline-primary",size:"md"}},[e._v(" Show Debug File ")]),e.callResponse.data.message?t("b-form-textarea",{staticClass:"mt-1",attrs:{plaintext:"","no-resize":"",rows:"30",value:e.callResponse.data.message}}):e._e(),t("b-popover",{ref:"popover",attrs:{target:"start-tail",triggers:"click",show:e.tailPopoverShow,placement:"auto",container:"my-container"},on:{"update:show":function(t){e.tailPopoverShow=t}},scopedSlots:e._u([{key:"title",fn:function(){return[t("div",{staticClass:"d-flex justify-content-between align-items-center"},[t("span",[e._v("Are You Sure?")]),t("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"close",attrs:{variant:"transparent","aria-label":"Close"},on:{click:e.onTailClose}},[t("span",{staticClass:"d-inline-block text-white",attrs:{"aria-hidden":"true"}},[e._v("×")])])],1)]},proxy:!0}])},[t("div",[t("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"mr-1",attrs:{size:"sm",variant:"danger"},on:{click:e.onTailClose}},[e._v(" Cancel ")]),t("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],attrs:{size:"sm",variant:"primary"},on:{click:e.onTailOk}},[e._v(" Show Debug ")])],1)])],1)])],1)},n=[],r=a(86855),i=a(15193),s=a(53862),l=a(333),d=a(64206),c=a(34547),u=a(20266),p=a(27616);const g={components:{BCard:r._,BButton:i.T,BPopover:s.x,BFormTextarea:l.y,BCardText:d.j,ToastificationContent:c.Z},directives:{Ripple:u.Z},data(){return{downloadPopoverShow:!1,tailPopoverShow:!1,abortToken:{},downloaded:0,total:0,callResponse:{status:"",data:{}}}},methods:{cancelDownload(){this.abortToken.cancel("User download cancelled"),this.downloaded="",this.total=""},onDownloadClose(){this.downloadPopoverShow=!1},async onDownloadOk(){const e=this;this.downloadPopoverShow=!1,this.abortToken=p.Z.cancelToken();const t=localStorage.getItem("zelidauth"),a={headers:{zelidauth:t},responseType:"blob",onDownloadProgress(t){e.downloaded=t.loaded,e.total=t.total},cancelToken:e.abortToken.token},o=await p.Z.justAPI().get("/flux/daemondebug",a),n=window.URL.createObjectURL(new Blob([o.data])),r=document.createElement("a");r.href=n,r.setAttribute("download","debug.log"),document.body.appendChild(r),r.click()},onTailClose(){this.tailPopoverShow=!1},async onTailOk(){this.tailPopoverShow=!1;const e=localStorage.getItem("zelidauth");p.Z.tailDaemonDebug(e).then((e=>{"error"===e.data.status?this.$toast({component:c.Z,props:{title:e.data.data.message||e.data.data,icon:"InfoIcon",variant:"danger"}}):(this.callResponse.status=e.data.status,this.callResponse.data=e.data.data)})).catch((e=>{this.$toast({component:c.Z,props:{title:"Error while trying to get latest debug of Daemon",icon:"InfoIcon",variant:"danger"}}),console.log(e)}))}}},m=g;var h=a(1001),v=(0,h.Z)(m,o,n,!1,null,null,null);const b=v.exports},27616:(e,t,a)=>{a.d(t,{Z:()=>n});var o=a(80914);const n={help(){return(0,o.Z)().get("/daemon/help")},helpSpecific(e){return(0,o.Z)().get(`/daemon/help/${e}`)},getInfo(){return(0,o.Z)().get("/daemon/getinfo")},getFluxNodeStatus(){return(0,o.Z)().get("/daemon/getzelnodestatus")},getRawTransaction(e,t){return(0,o.Z)().get(`/daemon/getrawtransaction/${e}/${t}`)},listFluxNodes(){return(0,o.Z)().get("/daemon/listzelnodes")},viewDeterministicFluxNodeList(){return(0,o.Z)().get("/daemon/viewdeterministiczelnodelist")},getFluxNodeCount(){return(0,o.Z)().get("/daemon/getzelnodecount")},getStartList(){return(0,o.Z)().get("/daemon/getstartlist")},getDOSList(){return(0,o.Z)().get("/daemon/getdoslist")},fluxCurrentWinner(){return(0,o.Z)().get("/daemon/fluxcurrentwinner")},getBenchmarks(){return(0,o.Z)().get("/daemon/getbenchmarks")},getBenchStatus(){return(0,o.Z)().get("/daemon/getbenchstatus")},startBenchmark(e){return(0,o.Z)().get("/daemon/startbenchmark",{headers:{zelidauth:e}})},stopBenchmark(e){return(0,o.Z)().get("/daemon/stopbenchmark",{headers:{zelidauth:e}})},getBlockCount(){return(0,o.Z)().get("/daemon/getBlockCount")},getBlockchainInfo(){return(0,o.Z)().get("/daemon/getblockchaininfo")},getMiningInfo(){return(0,o.Z)().get("/daemon/getmininginfo")},getNetworkInfo(){return(0,o.Z)().get("/daemon/getnetworkinfo")},validateAddress(e,t){return(0,o.Z)().get(`/daemon/validateaddress/${t}`,{headers:{zelidauth:e}})},getWalletInfo(e){return(0,o.Z)().get("/daemon/getwalletinfo",{headers:{zelidauth:e}})},listFluxNodeConf(e){return(0,o.Z)().get("/daemon/listzelnodeconf",{headers:{zelidauth:e}})},start(e){return(0,o.Z)().get("/daemon/start",{headers:{zelidauth:e}})},restart(e){return(0,o.Z)().get("/daemon/restart",{headers:{zelidauth:e}})},stopDaemon(e){return(0,o.Z)().get("/daemon/stop",{headers:{zelidauth:e}})},rescanDaemon(e,t){return(0,o.Z)().get(`/daemon/rescanblockchain/${t}`,{headers:{zelidauth:e}})},getBlock(e,t){return(0,o.Z)().get(`/daemon/getblock/${e}/${t}`)},tailDaemonDebug(e){return(0,o.Z)().get("/flux/taildaemondebug",{headers:{zelidauth:e}})},justAPI(){return(0,o.Z)()},cancelToken(){return o.S}}}}]); \ No newline at end of file diff --git a/HomeUI/dist/js/9875.js b/HomeUI/dist/js/9875.js index 0b32a575d..9fb0f6c7d 100644 --- a/HomeUI/dist/js/9875.js +++ b/HomeUI/dist/js/9875.js @@ -1 +1 @@ -"use strict";(globalThis["webpackChunkflux"]=globalThis["webpackChunkflux"]||[]).push([[9875],{34547:(t,e,a)=>{a.d(e,{Z:()=>u});var r=function(){var t=this,e=t._self._c;return e("div",{staticClass:"toastification"},[e("div",{staticClass:"d-flex align-items-start"},[e("b-avatar",{staticClass:"mr-75 flex-shrink-0",attrs:{variant:t.variant,size:"1.8rem"}},[e("feather-icon",{attrs:{icon:t.icon,size:"15"}})],1),e("div",{staticClass:"d-flex flex-grow-1"},[e("div",[t.title?e("h5",{staticClass:"mb-0 font-weight-bolder toastification-title",class:`text-${t.variant}`,domProps:{textContent:t._s(t.title)}}):t._e(),t.text?e("small",{staticClass:"d-inline-block text-body",domProps:{textContent:t._s(t.text)}}):t._e()]),e("span",{staticClass:"cursor-pointer toastification-close-icon ml-auto",on:{click:function(e){return t.$emit("close-toast")}}},[t.hideClose?t._e():e("feather-icon",{staticClass:"text-body",attrs:{icon:"XIcon"}})],1)])],1)])},s=[],n=a(47389);const l={components:{BAvatar:n.SH},props:{variant:{type:String,default:"primary"},icon:{type:String,default:null},title:{type:String,default:null},text:{type:String,default:null},hideClose:{type:Boolean,default:!1}}},i=l;var c=a(1001),o=(0,c.Z)(i,r,s,!1,null,"22d964ca",null);const u=o.exports},59875:(t,e,a)=>{a.r(e),a.d(e,{default:()=>p});var r=function(){var t=this,e=t._self._c;return e("b-card",[e("list-entry",{attrs:{title:"Status",data:t.callResponse.data.status}}),e("list-entry",{attrs:{title:"Benchmarking",data:t.callResponse.data.benchmarking}}),e("list-entry",{attrs:{title:"Flux",data:t.callResponse.data.zelback||t.callResponse.data.flux}}),t.callResponse.data.errors?e("list-entry",{attrs:{title:"Error",data:t.callResponse.data.errors,variant:"danger"}}):t._e()],1)},s=[],n=a(86855),l=a(34547),i=a(51748),c=a(39569);const o=a(63005),u={components:{ListEntry:i.Z,BCard:n._,ToastificationContent:l.Z},data(){return{timeoptions:o,callResponse:{status:"",data:""}}},mounted(){this.benchmarkGetStatus()},methods:{async benchmarkGetStatus(){const t=await c.Z.getStatus();"error"===t.data.status?this.$toast({component:l.Z,props:{title:t.data.data.message||t.data.data,icon:"InfoIcon",variant:"danger"}}):(this.callResponse.status=t.data.status,this.callResponse.data=t.data.data)}}},d=u;var h=a(1001),m=(0,h.Z)(d,r,s,!1,null,null,null);const p=m.exports},51748:(t,e,a)=>{a.d(e,{Z:()=>u});var r=function(){var t=this,e=t._self._c;return e("dl",{staticClass:"row",class:t.classes},[e("dt",{staticClass:"col-sm-3"},[t._v(" "+t._s(t.title)+" ")]),t.href.length>0?e("dd",{staticClass:"col-sm-9 mb-0",class:`text-${t.variant}`},[t.href.length>0?e("b-link",{attrs:{href:t.href,target:"_blank",rel:"noopener noreferrer"}},[t._v(" "+t._s(t.data.length>0?t.data:t.number!==Number.MAX_VALUE?t.number:"")+" ")]):t._e()],1):t.click?e("dd",{staticClass:"col-sm-9 mb-0",class:`text-${t.variant}`,on:{click:function(e){return t.$emit("click")}}},[e("b-link",[t._v(" "+t._s(t.data.length>0?t.data:t.number!==Number.MAX_VALUE?t.number:"")+" ")])],1):e("dd",{staticClass:"col-sm-9 mb-0",class:`text-${t.variant}`},[t._v(" "+t._s(t.data.length>0?t.data:t.number!==Number.MAX_VALUE?t.number:"")+" ")])])},s=[],n=a(67347);const l={components:{BLink:n.we},props:{title:{type:String,required:!0},classes:{type:String,required:!1,default:"mb-1"},data:{type:String,required:!1,default:""},number:{type:Number,required:!1,default:Number.MAX_VALUE},variant:{type:String,required:!1,default:"secondary"},href:{type:String,required:!1,default:""},click:{type:Boolean,required:!1,default:!1}}},i=l;var c=a(1001),o=(0,c.Z)(i,r,s,!1,null,null,null);const u=o.exports},63005:(t,e,a)=>{a.r(e),a.d(e,{default:()=>n});const r={year:"numeric",month:"short",day:"numeric",hour:"2-digit",minute:"2-digit"},s={year:"numeric",month:"short",day:"numeric"},n={shortDate:r,date:s}},39569:(t,e,a)=>{a.d(e,{Z:()=>s});var r=a(80914);const s={start(t){return(0,r.Z)().get("/benchmark/start",{headers:{zelidauth:t}})},restart(t){return(0,r.Z)().get("/benchmark/restart",{headers:{zelidauth:t}})},getStatus(){return(0,r.Z)().get("/benchmark/getstatus")},restartNodeBenchmarks(t){return(0,r.Z)().get("/benchmark/restartnodebenchmarks",{headers:{zelidauth:t}})},signFluxTransaction(t,e){return(0,r.Z)().get(`/benchmark/signzelnodetransaction/${e}`,{headers:{zelidauth:t}})},helpSpecific(t){return(0,r.Z)().get(`/benchmark/help/${t}`)},help(){return(0,r.Z)().get("/benchmark/help")},stop(t){return(0,r.Z)().get("/benchmark/stop",{headers:{zelidauth:t}})},getBenchmarks(){return(0,r.Z)().get("/benchmark/getbenchmarks")},getInfo(){return(0,r.Z)().get("/benchmark/getinfo")},tailBenchmarkDebug(t){return(0,r.Z)().get("/flux/tailbenchmarkdebug",{headers:{zelidauth:t}})},justAPI(){return(0,r.Z)()},cancelToken(){return r.S}}}}]); \ No newline at end of file +"use strict";(self["webpackChunkflux"]=self["webpackChunkflux"]||[]).push([[9875],{34547:(t,e,a)=>{a.d(e,{Z:()=>u});var r=function(){var t=this,e=t._self._c;return e("div",{staticClass:"toastification"},[e("div",{staticClass:"d-flex align-items-start"},[e("b-avatar",{staticClass:"mr-75 flex-shrink-0",attrs:{variant:t.variant,size:"1.8rem"}},[e("feather-icon",{attrs:{icon:t.icon,size:"15"}})],1),e("div",{staticClass:"d-flex flex-grow-1"},[e("div",[t.title?e("h5",{staticClass:"mb-0 font-weight-bolder toastification-title",class:`text-${t.variant}`,domProps:{textContent:t._s(t.title)}}):t._e(),t.text?e("small",{staticClass:"d-inline-block text-body",domProps:{textContent:t._s(t.text)}}):t._e()]),e("span",{staticClass:"cursor-pointer toastification-close-icon ml-auto",on:{click:function(e){return t.$emit("close-toast")}}},[t.hideClose?t._e():e("feather-icon",{staticClass:"text-body",attrs:{icon:"XIcon"}})],1)])],1)])},s=[],n=a(47389);const l={components:{BAvatar:n.SH},props:{variant:{type:String,default:"primary"},icon:{type:String,default:null},title:{type:String,default:null},text:{type:String,default:null},hideClose:{type:Boolean,default:!1}}},i=l;var c=a(1001),o=(0,c.Z)(i,r,s,!1,null,"22d964ca",null);const u=o.exports},59875:(t,e,a)=>{a.r(e),a.d(e,{default:()=>p});var r=function(){var t=this,e=t._self._c;return e("b-card",[e("list-entry",{attrs:{title:"Status",data:t.callResponse.data.status}}),e("list-entry",{attrs:{title:"Benchmarking",data:t.callResponse.data.benchmarking}}),e("list-entry",{attrs:{title:"Flux",data:t.callResponse.data.zelback||t.callResponse.data.flux}}),t.callResponse.data.errors?e("list-entry",{attrs:{title:"Error",data:t.callResponse.data.errors,variant:"danger"}}):t._e()],1)},s=[],n=a(86855),l=a(34547),i=a(51748),c=a(39569);const o=a(63005),u={components:{ListEntry:i.Z,BCard:n._,ToastificationContent:l.Z},data(){return{timeoptions:o,callResponse:{status:"",data:""}}},mounted(){this.benchmarkGetStatus()},methods:{async benchmarkGetStatus(){const t=await c.Z.getStatus();"error"===t.data.status?this.$toast({component:l.Z,props:{title:t.data.data.message||t.data.data,icon:"InfoIcon",variant:"danger"}}):(this.callResponse.status=t.data.status,this.callResponse.data=t.data.data)}}},d=u;var h=a(1001),m=(0,h.Z)(d,r,s,!1,null,null,null);const p=m.exports},51748:(t,e,a)=>{a.d(e,{Z:()=>u});var r=function(){var t=this,e=t._self._c;return e("dl",{staticClass:"row",class:t.classes},[e("dt",{staticClass:"col-sm-3"},[t._v(" "+t._s(t.title)+" ")]),t.href.length>0?e("dd",{staticClass:"col-sm-9 mb-0",class:`text-${t.variant}`},[t.href.length>0?e("b-link",{attrs:{href:t.href,target:"_blank",rel:"noopener noreferrer"}},[t._v(" "+t._s(t.data.length>0?t.data:t.number!==Number.MAX_VALUE?t.number:"")+" ")]):t._e()],1):t.click?e("dd",{staticClass:"col-sm-9 mb-0",class:`text-${t.variant}`,on:{click:function(e){return t.$emit("click")}}},[e("b-link",[t._v(" "+t._s(t.data.length>0?t.data:t.number!==Number.MAX_VALUE?t.number:"")+" ")])],1):e("dd",{staticClass:"col-sm-9 mb-0",class:`text-${t.variant}`},[t._v(" "+t._s(t.data.length>0?t.data:t.number!==Number.MAX_VALUE?t.number:"")+" ")])])},s=[],n=a(67347);const l={components:{BLink:n.we},props:{title:{type:String,required:!0},classes:{type:String,required:!1,default:"mb-1"},data:{type:String,required:!1,default:""},number:{type:Number,required:!1,default:Number.MAX_VALUE},variant:{type:String,required:!1,default:"secondary"},href:{type:String,required:!1,default:""},click:{type:Boolean,required:!1,default:!1}}},i=l;var c=a(1001),o=(0,c.Z)(i,r,s,!1,null,null,null);const u=o.exports},63005:(t,e,a)=>{a.r(e),a.d(e,{default:()=>n});const r={year:"numeric",month:"short",day:"numeric",hour:"2-digit",minute:"2-digit"},s={year:"numeric",month:"short",day:"numeric"},n={shortDate:r,date:s}},39569:(t,e,a)=>{a.d(e,{Z:()=>s});var r=a(80914);const s={start(t){return(0,r.Z)().get("/benchmark/start",{headers:{zelidauth:t}})},restart(t){return(0,r.Z)().get("/benchmark/restart",{headers:{zelidauth:t}})},getStatus(){return(0,r.Z)().get("/benchmark/getstatus")},restartNodeBenchmarks(t){return(0,r.Z)().get("/benchmark/restartnodebenchmarks",{headers:{zelidauth:t}})},signFluxTransaction(t,e){return(0,r.Z)().get(`/benchmark/signzelnodetransaction/${e}`,{headers:{zelidauth:t}})},helpSpecific(t){return(0,r.Z)().get(`/benchmark/help/${t}`)},help(){return(0,r.Z)().get("/benchmark/help")},stop(t){return(0,r.Z)().get("/benchmark/stop",{headers:{zelidauth:t}})},getBenchmarks(){return(0,r.Z)().get("/benchmark/getbenchmarks")},getInfo(){return(0,r.Z)().get("/benchmark/getinfo")},tailBenchmarkDebug(t){return(0,r.Z)().get("/flux/tailbenchmarkdebug",{headers:{zelidauth:t}})},justAPI(){return(0,r.Z)()},cancelToken(){return r.S}}}}]); \ No newline at end of file diff --git a/HomeUI/dist/js/apexcharts.js b/HomeUI/dist/js/apexcharts.js index 8248c5b60..f60e4ffc9 100644 --- a/HomeUI/dist/js/apexcharts.js +++ b/HomeUI/dist/js/apexcharts.js @@ -1,9 +1,9 @@ -(globalThis["webpackChunkflux"]=globalThis["webpackChunkflux"]||[]).push([[5434],{47514:function(t,e,i){var a; +(self["webpackChunkflux"]=self["webpackChunkflux"]||[]).push([[5434],{47514:function(t,e,i){var a; /*! - * ApexCharts v3.45.1 - * (c) 2018-2023 ApexCharts + * ApexCharts v3.45.2 + * (c) 2018-2024 ApexCharts * Released under the MIT License. - */!function(e,i){t.exports=i()}(0,(function(){"use strict";function s(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,a)}return i}function r(t){for(var e=1;et.length)&&(e=t.length);for(var i=0,a=new Array(e);i>16,o=i>>8&255,n=255&i;return"#"+(16777216+65536*(Math.round((a-r)*s)+r)+256*(Math.round((a-o)*s)+o)+(Math.round((a-n)*s)+n)).toString(16).slice(1)}},{key:"shadeColor",value:function(e,i){return t.isColorHex(i)?this.shadeHexColor(e,i):this.shadeRGBColor(e,i)}}],[{key:"bind",value:function(t,e){return function(){return t.apply(e,arguments)}}},{key:"isObject",value:function(t){return t&&"object"===o(t)&&!Array.isArray(t)&&null!=t}},{key:"is",value:function(t,e){return Object.prototype.toString.call(e)==="[object "+t+"]"}},{key:"listToArray",value:function(t){var e,i=[];for(e=0;e1&&void 0!==arguments[1]?arguments[1]:2;return Number.isInteger(t)?t:parseFloat(t.toPrecision(e))}},{key:"randomId",value:function(){return(Math.random()+1).toString(36).substring(4)}},{key:"noExponents",value:function(t){var e=String(t).split(/[eE]/);if(1===e.length)return e[0];var i="",a=t<0?"-":"",s=e[0].replace(".",""),r=Number(e[1])+1;if(r<0){for(i=a+"0.";r++;)i+="0";return i+s.replace(/^-/,"")}for(r-=s.length;r--;)i+="0";return s+i}},{key:"getDimensions",value:function(t){var e=getComputedStyle(t,null),i=t.clientHeight,a=t.clientWidth;return i-=parseFloat(e.paddingTop)+parseFloat(e.paddingBottom),[a-=parseFloat(e.paddingLeft)+parseFloat(e.paddingRight),i]}},{key:"getBoundingClientRect",value:function(t){var e=t.getBoundingClientRect();return{top:e.top,right:e.right,bottom:e.bottom,left:e.left,width:t.clientWidth,height:t.clientHeight,x:e.left,y:e.top}}},{key:"getLargestStringFromArr",value:function(t){return t.reduce((function(t,e){return Array.isArray(e)&&(e=e.reduce((function(t,e){return t.length>e.length?t:e}))),t.length>e.length?t:e}),0)}},{key:"hexToRgba",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"#999999",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.6;"#"!==t.substring(0,1)&&(t="#999999");var i=t.replace("#","");i=i.match(new RegExp("(.{"+i.length/3+"})","g"));for(var a=0;a1&&void 0!==arguments[1]?arguments[1]:"x",i=t.toString().slice();return i.replace(/[` ~!@#$%^&*()|+\=?;:'",.<>{}[\]\\/]/gi,e)}},{key:"negToZero",value:function(t){return t<0?0:t}},{key:"moveIndexInArray",value:function(t,e,i){if(i>=t.length)for(var a=i-t.length+1;a--;)t.push(void 0);return t.splice(i,0,t.splice(e,1)[0]),t}},{key:"extractNumber",value:function(t){return parseFloat(t.replace(/[^\d.]*/g,""))}},{key:"findAncestor",value:function(t,e){for(;(t=t.parentElement)&&!t.classList.contains(e););return t}},{key:"setELstyles",value:function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t.style.key=e[i])}},{key:"isNumber",value:function(t){return!isNaN(t)&&parseFloat(Number(t))===t&&!isNaN(parseInt(t,10))}},{key:"isFloat",value:function(t){return Number(t)===t&&t%1!=0}},{key:"isSafari",value:function(){return/^((?!chrome|android).)*safari/i.test(navigator.userAgent)}},{key:"isFirefox",value:function(){return navigator.userAgent.toLowerCase().indexOf("firefox")>-1}},{key:"isIE11",value:function(){if(-1!==window.navigator.userAgent.indexOf("MSIE")||window.navigator.appVersion.indexOf("Trident/")>-1)return!0}},{key:"isIE",value:function(){var t=window.navigator.userAgent,e=t.indexOf("MSIE ");if(e>0)return parseInt(t.substring(e+5,t.indexOf(".",e)),10);if(t.indexOf("Trident/")>0){var i=t.indexOf("rv:");return parseInt(t.substring(i+3,t.indexOf(".",i)),10)}var a=t.indexOf("Edge/");return a>0&&parseInt(t.substring(a+5,t.indexOf(".",a)),10)}}]),t}(),w=function(){function t(e){n(this,t),this.ctx=e,this.w=e.w,this.setEasingFunctions()}return h(t,[{key:"setEasingFunctions",value:function(){var t;if(!this.w.globals.easing){switch(this.w.config.chart.animations.easing){case"linear":t="-";break;case"easein":t="<";break;case"easeout":t=">";break;case"easeinout":default:t="<>";break;case"swing":t=function(t){var e=1.70158;return(t-=1)*t*((e+1)*t+e)+1};break;case"bounce":t=function(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375};break;case"elastic":t=function(t){return t===!!t?t:Math.pow(2,-10*t)*Math.sin((t-.075)*(2*Math.PI)/.3)+1}}this.w.globals.easing=t}}},{key:"animateLine",value:function(t,e,i,a){t.attr(e).animate(a).attr(i)}},{key:"animateMarker",value:function(t,e,i,a,s,r){e||(e=0),t.attr({r:e,width:e,height:e}).animate(a,s).attr({r:i,width:i.width,height:i.height}).afterAll((function(){r()}))}},{key:"animateCircle",value:function(t,e,i,a,s){t.attr({r:e.r,cx:e.cx,cy:e.cy}).animate(a,s).attr({r:i.r,cx:i.cx,cy:i.cy})}},{key:"animateRect",value:function(t,e,i,a,s){t.attr(e).animate(a).attr(i).afterAll((function(){return s()}))}},{key:"animatePathsGradually",value:function(t){var e=t.el,i=t.realIndex,a=t.j,s=t.fill,r=t.pathFrom,o=t.pathTo,n=t.speed,l=t.delay,h=this.w,c=0;h.config.chart.animations.animateGradually.enabled&&(c=h.config.chart.animations.animateGradually.delay),h.config.chart.animations.dynamicAnimation.enabled&&h.globals.dataChanged&&"bar"!==h.config.chart.type&&(c=0),this.morphSVG(e,i,a,"line"!==h.config.chart.type||h.globals.comboCharts?s:"stroke",r,o,n,l*c)}},{key:"showDelayedElements",value:function(){this.w.globals.delayedElements.forEach((function(t){var e=t.el;e.classList.remove("apexcharts-element-hidden"),e.classList.add("apexcharts-hidden-element-shown")}))}},{key:"animationCompleted",value:function(t){var e=this.w;e.globals.animationEnded||(e.globals.animationEnded=!0,this.showDelayedElements(),"function"==typeof e.config.chart.events.animationEnd&&e.config.chart.events.animationEnd(this.ctx,{el:t,w:e}))}},{key:"morphSVG",value:function(t,e,i,a,s,r,o,n){var l=this,h=this.w;s||(s=t.attr("pathFrom")),r||(r=t.attr("pathTo"));var c=function(t){return"radar"===h.config.chart.type&&(o=1),"M 0 ".concat(h.globals.gridHeight)};(!s||s.indexOf("undefined")>-1||s.indexOf("NaN")>-1)&&(s=c()),(!r||r.indexOf("undefined")>-1||r.indexOf("NaN")>-1)&&(r=c()),h.globals.shouldAnimate||(o=1),t.plot(s).animate(1,h.globals.easing,n).plot(s).animate(o,h.globals.easing,n).plot(r).afterAll((function(){y.isNumber(i)?i===h.globals.series[h.globals.maxValsInArrayIndex].length-2&&h.globals.shouldAnimate&&l.animationCompleted(t):"none"!==a&&h.globals.shouldAnimate&&(!h.globals.comboCharts&&e===h.globals.series.length-1||h.globals.comboCharts)&&l.animationCompleted(t),l.showDelayedElements()}))}}]),t}(),k=function(){function t(e){n(this,t),this.ctx=e,this.w=e.w}return h(t,[{key:"getDefaultFilter",value:function(t,e){var i=this.w;t.unfilter(!0),(new window.SVG.Filter).size("120%","180%","-5%","-40%"),"none"!==i.config.states.normal.filter?this.applyFilter(t,e,i.config.states.normal.filter.type,i.config.states.normal.filter.value):i.config.chart.dropShadow.enabled&&this.dropShadow(t,i.config.chart.dropShadow,e)}},{key:"addNormalFilter",value:function(t,e){var i=this.w;i.config.chart.dropShadow.enabled&&!t.node.classList.contains("apexcharts-marker")&&this.dropShadow(t,i.config.chart.dropShadow,e)}},{key:"addLightenFilter",value:function(t,e,i){var a=this,s=this.w,r=i.intensity;t.unfilter(!0),new window.SVG.Filter,t.filter((function(t){var i=s.config.chart.dropShadow;(i.enabled?a.addShadow(t,e,i):t).componentTransfer({rgb:{type:"linear",slope:1.5,intercept:r}})})),t.filterer.node.setAttribute("filterUnits","userSpaceOnUse"),this._scaleFilterSize(t.filterer.node)}},{key:"addDarkenFilter",value:function(t,e,i){var a=this,s=this.w,r=i.intensity;t.unfilter(!0),new window.SVG.Filter,t.filter((function(t){var i=s.config.chart.dropShadow;(i.enabled?a.addShadow(t,e,i):t).componentTransfer({rgb:{type:"linear",slope:r}})})),t.filterer.node.setAttribute("filterUnits","userSpaceOnUse"),this._scaleFilterSize(t.filterer.node)}},{key:"applyFilter",value:function(t,e,i){var a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:.5;switch(i){case"none":this.addNormalFilter(t,e);break;case"lighten":this.addLightenFilter(t,e,{intensity:a});break;case"darken":this.addDarkenFilter(t,e,{intensity:a})}}},{key:"addShadow",value:function(t,e,i){var a=i.blur,s=i.top,r=i.left,o=i.color,n=i.opacity,l=t.flood(Array.isArray(o)?o[e]:o,n).composite(t.sourceAlpha,"in").offset(r,s).gaussianBlur(a).merge(t.source);return t.blend(t.source,l)}},{key:"dropShadow",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,a=e.top,s=e.left,r=e.blur,o=e.color,n=e.opacity,l=e.noUserSpaceOnUse,h=this.w;return t.unfilter(!0),y.isIE()&&"radialBar"===h.config.chart.type||(o=Array.isArray(o)?o[i]:o,t.filter((function(t){var e=null;e=y.isSafari()||y.isFirefox()||y.isIE()?t.flood(o,n).composite(t.sourceAlpha,"in").offset(s,a).gaussianBlur(r):t.flood(o,n).composite(t.sourceAlpha,"in").offset(s,a).gaussianBlur(r).merge(t.source),t.blend(t.source,e)})),l||t.filterer.node.setAttribute("filterUnits","userSpaceOnUse"),this._scaleFilterSize(t.filterer.node)),t}},{key:"setSelectionFilter",value:function(t,e,i){var a=this.w;if(void 0!==a.globals.selectedDataPoints[e]&&a.globals.selectedDataPoints[e].indexOf(i)>-1){t.node.setAttribute("selected",!0);var s=a.config.states.active.filter;"none"!==s&&this.applyFilter(t,e,s.type,s.value)}}},{key:"_scaleFilterSize",value:function(t){!function(e){for(var i in e)e.hasOwnProperty(i)&&t.setAttribute(i,e[i])}({width:"200%",height:"200%",x:"-50%",y:"-50%"})}}]),t}(),A=function(){function t(e){n(this,t),this.ctx=e,this.w=e.w}return h(t,[{key:"roundPathCorners",value:function(t,e){function i(t,e,i){var s=e.x-t.x,r=e.y-t.y,o=Math.sqrt(s*s+r*r);return a(t,e,Math.min(1,i/o))}function a(t,e,i){return{x:t.x+(e.x-t.x)*i,y:t.y+(e.y-t.y)*i}}function s(t,e){t.length>2&&(t[t.length-2]=e.x,t[t.length-1]=e.y)}function r(t){return{x:parseFloat(t[t.length-2]),y:parseFloat(t[t.length-1])}}t.indexOf("NaN")>-1&&(t="");var o=t.split(/[,\s]/).reduce((function(t,e){var i=e.match("([a-zA-Z])(.+)");return i?(t.push(i[1]),t.push(i[2])):t.push(e),t}),[]).reduce((function(t,e){return parseFloat(e)==e&&t.length?t[t.length-1].push(e):t.push([e]),t}),[]),n=[];if(o.length>1){var l=r(o[0]),h=null;"Z"==o[o.length-1][0]&&o[0].length>2&&(h=["L",l.x,l.y],o[o.length-1]=h),n.push(o[0]);for(var c=1;c2&&"L"==g[0]&&u.length>2&&"L"==u[0]){var p,f,x=r(d),b=r(g),v=r(u);p=i(b,x,e),f=i(b,v,e),s(g,p),g.origPoint=b,n.push(g);var m=a(p,b,.5),y=a(b,f,.5),w=["C",m.x,m.y,y.x,y.y,f.x,f.y];w.origPoint=b,n.push(w)}else n.push(g)}if(h){var k=r(n[n.length-1]);n.push(["Z"]),s(n[0],k)}}else n=o;return n.reduce((function(t,e){return t+e.join(" ")+" "}),"")}},{key:"drawLine",value:function(t,e,i,a){var s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"#a8a8a8",r=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0,o=arguments.length>6&&void 0!==arguments[6]?arguments[6]:null,n=arguments.length>7&&void 0!==arguments[7]?arguments[7]:"butt";return this.w.globals.dom.Paper.line().attr({x1:t,y1:e,x2:i,y2:a,stroke:s,"stroke-dasharray":r,"stroke-width":o,"stroke-linecap":n})}},{key:"drawRect",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,r=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"#fefefe",o=arguments.length>6&&void 0!==arguments[6]?arguments[6]:1,n=arguments.length>7&&void 0!==arguments[7]?arguments[7]:null,l=arguments.length>8&&void 0!==arguments[8]?arguments[8]:null,h=arguments.length>9&&void 0!==arguments[9]?arguments[9]:0,c=this.w.globals.dom.Paper.rect();return c.attr({x:t,y:e,width:i>0?i:0,height:a>0?a:0,rx:s,ry:s,opacity:o,"stroke-width":null!==n?n:0,stroke:null!==l?l:"none","stroke-dasharray":h}),c.node.setAttribute("fill",r),c}},{key:"drawPolygon",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"#e1e1e1",i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"none";return this.w.globals.dom.Paper.polygon(t).attr({fill:a,stroke:e,"stroke-width":i})}},{key:"drawCircle",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;t<0&&(t=0);var i=this.w.globals.dom.Paper.circle(2*t);return null!==e&&i.attr(e),i}},{key:"drawPath",value:function(t){var e=t.d,i=void 0===e?"":e,a=t.stroke,s=void 0===a?"#a8a8a8":a,r=t.strokeWidth,o=void 0===r?1:r,n=t.fill,l=t.fillOpacity,h=void 0===l?1:l,c=t.strokeOpacity,d=void 0===c?1:c,g=t.classes,u=t.strokeLinecap,p=void 0===u?null:u,f=t.strokeDashArray,x=void 0===f?0:f,b=this.w;return null===p&&(p=b.config.stroke.lineCap),(i.indexOf("undefined")>-1||i.indexOf("NaN")>-1)&&(i="M 0 ".concat(b.globals.gridHeight)),b.globals.dom.Paper.path(i).attr({fill:n,"fill-opacity":h,stroke:s,"stroke-opacity":d,"stroke-linecap":p,"stroke-width":o,"stroke-dasharray":x,class:g})}},{key:"group",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,e=this.w.globals.dom.Paper.group();return null!==t&&e.attr(t),e}},{key:"move",value:function(t,e){var i=["M",t,e].join(" ");return i}},{key:"line",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,a=null;return null===i?a=[" L",t,e].join(" "):"H"===i?a=[" H",t].join(" "):"V"===i&&(a=[" V",e].join(" ")),a}},{key:"curve",value:function(t,e,i,a,s,r){var o=["C",t,e,i,a,s,r].join(" ");return o}},{key:"quadraticCurve",value:function(t,e,i,a){return["Q",t,e,i,a].join(" ")}},{key:"arc",value:function(t,e,i,a,s,r,o){var n="A";arguments.length>7&&void 0!==arguments[7]&&arguments[7]&&(n="a");var l=[n,t,e,i,a,s,r,o].join(" ");return l}},{key:"renderPaths",value:function(t){var e,i=t.j,a=t.realIndex,s=t.pathFrom,o=t.pathTo,n=t.stroke,l=t.strokeWidth,h=t.strokeLinecap,c=t.fill,d=t.animationDelay,g=t.initialSpeed,u=t.dataChangeSpeed,p=t.className,f=t.shouldClipToGrid,x=void 0===f||f,b=t.bindEventsOnPaths,v=void 0===b||b,m=t.drawShadow,y=void 0===m||m,A=this.w,S=new k(this.ctx),C=new w(this.ctx),L=this.w.config.chart.animations.enabled,P=L&&this.w.config.chart.animations.dynamicAnimation.enabled,I=!!(L&&!A.globals.resized||P&&A.globals.dataChanged&&A.globals.shouldAnimate);I?e=s:(e=o,A.globals.animationEnded=!0);var T=A.config.stroke.dashArray,M=0;M=Array.isArray(T)?T[a]:A.config.stroke.dashArray;var z=this.drawPath({d:e,stroke:n,strokeWidth:l,fill:c,fillOpacity:1,classes:p,strokeLinecap:h,strokeDashArray:M});if(z.attr("index",a),x&&z.attr({"clip-path":"url(#gridRectMask".concat(A.globals.cuid,")")}),"none"!==A.config.states.normal.filter.type)S.getDefaultFilter(z,a);else if(A.config.chart.dropShadow.enabled&&y&&(!A.config.chart.dropShadow.enabledOnSeries||A.config.chart.dropShadow.enabledOnSeries&&-1!==A.config.chart.dropShadow.enabledOnSeries.indexOf(a))){var X=A.config.chart.dropShadow;S.dropShadow(z,X,a)}v&&(z.node.addEventListener("mouseenter",this.pathMouseEnter.bind(this,z)),z.node.addEventListener("mouseleave",this.pathMouseLeave.bind(this,z)),z.node.addEventListener("mousedown",this.pathMouseDown.bind(this,z))),z.attr({pathTo:o,pathFrom:s});var E={el:z,j:i,realIndex:a,pathFrom:s,pathTo:o,fill:c,strokeWidth:l,delay:d};return!L||A.globals.resized||A.globals.dataChanged?!A.globals.resized&&A.globals.dataChanged||C.showDelayedElements():C.animatePathsGradually(r(r({},E),{},{speed:g})),A.globals.dataChanged&&P&&I&&C.animatePathsGradually(r(r({},E),{},{speed:u})),z}},{key:"drawPattern",value:function(t,e,i){var a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"#a8a8a8",s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0;return this.w.globals.dom.Paper.pattern(e,i,(function(r){"horizontalLines"===t?r.line(0,0,i,0).stroke({color:a,width:s+1}):"verticalLines"===t?r.line(0,0,0,e).stroke({color:a,width:s+1}):"slantedLines"===t?r.line(0,0,e,i).stroke({color:a,width:s}):"squares"===t?r.rect(e,i).fill("none").stroke({color:a,width:s}):"circles"===t&&r.circle(e).fill("none").stroke({color:a,width:s})}))}},{key:"drawGradient",value:function(t,e,i,a,s){var r,o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:null,n=arguments.length>6&&void 0!==arguments[6]?arguments[6]:null,l=arguments.length>7&&void 0!==arguments[7]?arguments[7]:null,h=arguments.length>8&&void 0!==arguments[8]?arguments[8]:0,c=this.w;e.length<9&&0===e.indexOf("#")&&(e=y.hexToRgba(e,a)),i.length<9&&0===i.indexOf("#")&&(i=y.hexToRgba(i,s));var d=0,g=1,u=1,p=null;null!==n&&(d=void 0!==n[0]?n[0]/100:0,g=void 0!==n[1]?n[1]/100:1,u=void 0!==n[2]?n[2]/100:1,p=void 0!==n[3]?n[3]/100:null);var f=!("donut"!==c.config.chart.type&&"pie"!==c.config.chart.type&&"polarArea"!==c.config.chart.type&&"bubble"!==c.config.chart.type);if(r=null===l||0===l.length?c.globals.dom.Paper.gradient(f?"radial":"linear",(function(t){t.at(d,e,a),t.at(g,i,s),t.at(u,i,s),null!==p&&t.at(p,e,a)})):c.globals.dom.Paper.gradient(f?"radial":"linear",(function(t){(Array.isArray(l[h])?l[h]:l).forEach((function(e){t.at(e.offset/100,e.color,e.opacity)}))})),f){var x=c.globals.gridWidth/2,b=c.globals.gridHeight/2;"bubble"!==c.config.chart.type?r.attr({gradientUnits:"userSpaceOnUse",cx:x,cy:b,r:o}):r.attr({cx:.5,cy:.5,r:.8,fx:.2,fy:.2})}else"vertical"===t?r.from(0,0).to(0,1):"diagonal"===t?r.from(0,0).to(1,1):"horizontal"===t?r.from(0,1).to(1,1):"diagonal2"===t&&r.from(1,0).to(0,1);return r}},{key:"getTextBasedOnMaxWidth",value:function(t){var e=t.text,i=t.maxWidth,a=t.fontSize,s=t.fontFamily,r=this.getTextRects(e,a,s),o=r.width/e.length,n=Math.floor(i/o);return i-1){var n=i.globals.selectedDataPoints[s].indexOf(r);i.globals.selectedDataPoints[s].splice(n,1)}}else{if(!i.config.states.active.allowMultipleDataPointsSelection&&i.globals.selectedDataPoints.length>0){i.globals.selectedDataPoints=[];var l=i.globals.dom.Paper.select(".apexcharts-series path").members,h=i.globals.dom.Paper.select(".apexcharts-series circle, .apexcharts-series rect").members,c=function(t){Array.prototype.forEach.call(t,(function(t){t.node.setAttribute("selected","false"),a.getDefaultFilter(t,s)}))};c(l),c(h)}t.node.setAttribute("selected","true"),o="true",void 0===i.globals.selectedDataPoints[s]&&(i.globals.selectedDataPoints[s]=[]),i.globals.selectedDataPoints[s].push(r)}if("true"===o){var d=i.config.states.active.filter;if("none"!==d)a.applyFilter(t,s,d.type,d.value);else if("none"!==i.config.states.hover.filter&&!i.globals.isTouchDevice){var g=i.config.states.hover.filter;a.applyFilter(t,s,g.type,g.value)}}else"none"!==i.config.states.active.filter.type&&("none"===i.config.states.hover.filter.type||i.globals.isTouchDevice?a.getDefaultFilter(t,s):(g=i.config.states.hover.filter,a.applyFilter(t,s,g.type,g.value)));"function"==typeof i.config.chart.events.dataPointSelection&&i.config.chart.events.dataPointSelection(e,this.ctx,{selectedDataPoints:i.globals.selectedDataPoints,seriesIndex:s,dataPointIndex:r,w:i}),e&&this.ctx.events.fireEvent("dataPointSelection",[e,this.ctx,{selectedDataPoints:i.globals.selectedDataPoints,seriesIndex:s,dataPointIndex:r,w:i}])}},{key:"rotateAroundCenter",value:function(t){var e={};return t&&"function"==typeof t.getBBox&&(e=t.getBBox()),{x:e.x+e.width/2,y:e.y+e.height/2}}},{key:"getTextRects",value:function(t,e,i,a){var s=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],r=this.w,o=this.drawText({x:-200,y:-200,text:t,textAnchor:"start",fontSize:e,fontFamily:i,foreColor:"#fff",opacity:0});a&&o.attr("transform",a),r.globals.dom.Paper.add(o);var n=o.bbox();return s||(n=o.node.getBoundingClientRect()),o.remove(),{width:n.width,height:n.height}}},{key:"placeTextWithEllipsis",value:function(t,e,i){if("function"==typeof t.getComputedTextLength&&(t.textContent=e,e.length>0&&t.getComputedTextLength()>=i/1.1)){for(var a=e.length-3;a>0;a-=3)if(t.getSubStringLength(0,a)<=i/1.1)return void(t.textContent=e.substring(0,a)+"...");t.textContent="."}}}],[{key:"setAttrs",value:function(t,e){for(var i in e)e.hasOwnProperty(i)&&t.setAttribute(i,e[i])}}]),t}(),S=function(){function t(e){n(this,t),this.ctx=e,this.w=e.w}return h(t,[{key:"getStackedSeriesTotals",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=this.w,i=[];if(0===e.globals.series.length)return i;for(var a=0;a0&&void 0!==arguments[0]?arguments[0]:null;return null===t?this.w.config.series.reduce((function(t,e){return t+e}),0):this.w.globals.series[t].reduce((function(t,e){return t+e}),0)}},{key:"getStackedSeriesTotalsByGroups",value:function(){var t=this,e=this.w,i=[];return e.globals.seriesGroups.forEach((function(a){var s=[];e.config.series.forEach((function(t,e){a.indexOf(t.name)>-1&&s.push(e)}));var r=e.globals.series.map((function(t,e){return-1===s.indexOf(e)?e:-1})).filter((function(t){return-1!==t}));i.push(t.getStackedSeriesTotals(r))})),i}},{key:"isSeriesNull",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return 0===(null===t?this.w.config.series.filter((function(t){return null!==t})):this.w.config.series[t].data.filter((function(t){return null!==t}))).length}},{key:"seriesHaveSameValues",value:function(t){return this.w.globals.series[t].every((function(t,e,i){return t===i[0]}))}},{key:"getCategoryLabels",value:function(t){var e=this.w,i=t.slice();return e.config.xaxis.convertedCatToNumeric&&(i=t.map((function(t,i){return e.config.xaxis.labels.formatter(t-e.globals.minX+1)}))),i}},{key:"getLargestSeries",value:function(){var t=this.w;t.globals.maxValsInArrayIndex=t.globals.series.map((function(t){return t.length})).indexOf(Math.max.apply(Math,t.globals.series.map((function(t){return t.length}))))}},{key:"getLargestMarkerSize",value:function(){var t=this.w,e=0;return t.globals.markers.size.forEach((function(t){e=Math.max(e,t)})),t.config.markers.discrete&&t.config.markers.discrete.length&&t.config.markers.discrete.forEach((function(t){e=Math.max(e,t.size)})),e>0&&(e+=t.config.markers.hover.sizeOffset+1),t.globals.markers.largestSize=e,e}},{key:"getSeriesTotals",value:function(){var t=this.w;t.globals.seriesTotals=t.globals.series.map((function(t,e){var i=0;if(Array.isArray(t))for(var a=0;at&&i.globals.seriesX[s][o]0&&(e=!0),{comboBarCount:i,comboCharts:e}}},{key:"extendArrayProps",value:function(t,e,i){return e.yaxis&&(e=t.extendYAxis(e,i)),e.annotations&&(e.annotations.yaxis&&(e=t.extendYAxisAnnotations(e)),e.annotations.xaxis&&(e=t.extendXAxisAnnotations(e)),e.annotations.points&&(e=t.extendPointAnnotations(e))),e}}]),t}(),C=function(){function t(e){n(this,t),this.w=e.w,this.annoCtx=e}return h(t,[{key:"setOrientations",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,i=this.w;if("vertical"===t.label.orientation){var a=null!==e?e:0,s=i.globals.dom.baseEl.querySelector(".apexcharts-xaxis-annotations .apexcharts-xaxis-annotation-label[rel='".concat(a,"']"));if(null!==s){var r=s.getBoundingClientRect();s.setAttribute("x",parseFloat(s.getAttribute("x"))-r.height+4),"top"===t.label.position?s.setAttribute("y",parseFloat(s.getAttribute("y"))+r.width):s.setAttribute("y",parseFloat(s.getAttribute("y"))-r.width);var o=this.annoCtx.graphics.rotateAroundCenter(s),n=o.x,l=o.y;s.setAttribute("transform","rotate(-90 ".concat(n," ").concat(l,")"))}}}},{key:"addBackgroundToAnno",value:function(t,e){var i=this.w;if(!t||void 0===e.label.text||void 0!==e.label.text&&!String(e.label.text).trim())return null;var a=i.globals.dom.baseEl.querySelector(".apexcharts-grid").getBoundingClientRect(),s=t.getBoundingClientRect(),r=e.label.style.padding.left,o=e.label.style.padding.right,n=e.label.style.padding.top,l=e.label.style.padding.bottom;"vertical"===e.label.orientation&&(n=e.label.style.padding.left,l=e.label.style.padding.right,r=e.label.style.padding.top,o=e.label.style.padding.bottom);var h=s.left-a.left-r,c=s.top-a.top-n,d=this.annoCtx.graphics.drawRect(h-i.globals.barPadForNumericAxis,c,s.width+r+o,s.height+n+l,e.label.borderRadius,e.label.style.background,1,e.label.borderWidth,e.label.borderColor,0);return e.id&&d.node.classList.add(e.id),d}},{key:"annotationsBackground",value:function(){var t=this,e=this.w,i=function(i,a,s){var r=e.globals.dom.baseEl.querySelector(".apexcharts-".concat(s,"-annotations .apexcharts-").concat(s,"-annotation-label[rel='").concat(a,"']"));if(r){var o=r.parentNode,n=t.addBackgroundToAnno(r,i);n&&(o.insertBefore(n.node,r),i.label.mouseEnter&&n.node.addEventListener("mouseenter",i.label.mouseEnter.bind(t,i)),i.label.mouseLeave&&n.node.addEventListener("mouseleave",i.label.mouseLeave.bind(t,i)),i.label.click&&n.node.addEventListener("click",i.label.click.bind(t,i)))}};e.config.annotations.xaxis.map((function(t,e){i(t,e,"xaxis")})),e.config.annotations.yaxis.map((function(t,e){i(t,e,"yaxis")})),e.config.annotations.points.map((function(t,e){i(t,e,"point")}))}},{key:"getY1Y2",value:function(t,e){var i,a="y1"===t?e.y:e.y2,s=this.w;if(this.annoCtx.invertAxis){var r=s.globals.labels.indexOf(a);s.config.xaxis.convertedCatToNumeric&&(r=s.globals.categoryLabels.indexOf(a));var o=s.globals.dom.baseEl.querySelector(".apexcharts-yaxis-texts-g text:nth-child("+(r+1)+")");o&&(i=parseFloat(o.getAttribute("y"))),void 0!==e.seriesIndex&&s.globals.barHeight&&(i=i-s.globals.barHeight/2*(s.globals.series.length-1)+s.globals.barHeight*e.seriesIndex)}else{var n;n=s.config.yaxis[e.yAxisIndex].logarithmic?(a=new S(this.annoCtx.ctx).getLogVal(a,e.yAxisIndex))/s.globals.yLogRatio[e.yAxisIndex]:(a-s.globals.minYArr[e.yAxisIndex])/(s.globals.yRange[e.yAxisIndex]/s.globals.gridHeight),i=s.globals.gridHeight-n,!e.marker||void 0!==e.y&&null!==e.y||(i=0),s.config.yaxis[e.yAxisIndex]&&s.config.yaxis[e.yAxisIndex].reversed&&(i=n)}return"string"==typeof a&&a.indexOf("px")>-1&&(i=parseFloat(a)),i}},{key:"getX1X2",value:function(t,e){var i=this.w,a=this.annoCtx.invertAxis?i.globals.minY:i.globals.minX,s=this.annoCtx.invertAxis?i.globals.maxY:i.globals.maxX,r=this.annoCtx.invertAxis?i.globals.yRange[0]:i.globals.xRange,o=(e.x-a)/(r/i.globals.gridWidth);this.annoCtx.inversedReversedAxis&&(o=(s-e.x)/(r/i.globals.gridWidth)),"category"!==i.config.xaxis.type&&!i.config.xaxis.convertedCatToNumeric||this.annoCtx.invertAxis||i.globals.dataFormatXNumeric||(o=this.getStringX(e.x));var n=(e.x2-a)/(r/i.globals.gridWidth);return this.annoCtx.inversedReversedAxis&&(n=(s-e.x2)/(r/i.globals.gridWidth)),"category"!==i.config.xaxis.type&&!i.config.xaxis.convertedCatToNumeric||this.annoCtx.invertAxis||i.globals.dataFormatXNumeric||(n=this.getStringX(e.x2)),void 0!==e.x&&null!==e.x||!e.marker||(o=i.globals.gridWidth),"x1"===t&&"string"==typeof e.x&&e.x.indexOf("px")>-1&&(o=parseFloat(e.x)),"x2"===t&&"string"==typeof e.x2&&e.x2.indexOf("px")>-1&&(n=parseFloat(e.x2)),void 0!==e.seriesIndex&&i.globals.barWidth&&!this.annoCtx.invertAxis&&(o=o-i.globals.barWidth/2*(i.globals.series.length-1)+i.globals.barWidth*e.seriesIndex),"x1"===t?o:n}},{key:"getStringX",value:function(t){var e=this.w,i=t;e.config.xaxis.convertedCatToNumeric&&e.globals.categoryLabels.length&&(t=e.globals.categoryLabels.indexOf(t)+1);var a=e.globals.labels.indexOf(t),s=e.globals.dom.baseEl.querySelector(".apexcharts-xaxis-texts-g text:nth-child("+(a+1)+")");return s&&(i=parseFloat(s.getAttribute("x"))),i}}]),t}(),L=function(){function t(e){n(this,t),this.w=e.w,this.annoCtx=e,this.invertAxis=this.annoCtx.invertAxis,this.helpers=new C(this.annoCtx)}return h(t,[{key:"addXaxisAnnotation",value:function(t,e,i){var a,s=this.w,r=this.helpers.getX1X2("x1",t),o=t.label.text,n=t.strokeDashArray;if(y.isNumber(r)){if(null===t.x2||void 0===t.x2){var l=this.annoCtx.graphics.drawLine(r+t.offsetX,0+t.offsetY,r+t.offsetX,s.globals.gridHeight+t.offsetY,t.borderColor,n,t.borderWidth);e.appendChild(l.node),t.id&&l.node.classList.add(t.id)}else{if((a=this.helpers.getX1X2("x2",t))o){var h=o;o=a,a=h}var c=this.annoCtx.graphics.drawRect(0+t.offsetX,a+t.offsetY,this._getYAxisAnnotationWidth(t),o-a,0,t.fillColor,t.opacity,1,t.borderColor,r);c.node.classList.add("apexcharts-annotation-rect"),c.attr("clip-path","url(#gridRectMask".concat(s.globals.cuid,")")),e.appendChild(c.node),t.id&&c.node.classList.add(t.id)}var d="right"===t.label.position?s.globals.gridWidth:"center"===t.label.position?s.globals.gridWidth/2:0,g=this.annoCtx.graphics.drawText({x:d+t.label.offsetX,y:(null!=a?a:o)+t.label.offsetY-3,text:n,textAnchor:t.label.textAnchor,fontSize:t.label.style.fontSize,fontFamily:t.label.style.fontFamily,fontWeight:t.label.style.fontWeight,foreColor:t.label.style.color,cssClass:"apexcharts-yaxis-annotation-label ".concat(t.label.style.cssClass," ").concat(t.id?t.id:"")});g.attr({rel:i}),e.appendChild(g.node)}},{key:"_getYAxisAnnotationWidth",value:function(t){var e=this.w;return e.globals.gridWidth,(t.width.indexOf("%")>-1?e.globals.gridWidth*parseInt(t.width,10)/100:parseInt(t.width,10))+t.offsetX}},{key:"drawYAxisAnnotations",value:function(){var t=this,e=this.w,i=this.annoCtx.graphics.group({class:"apexcharts-yaxis-annotations"});return e.config.annotations.yaxis.map((function(e,a){t.addYaxisAnnotation(e,i.node,a)})),i}}]),t}(),I=function(){function t(e){n(this,t),this.w=e.w,this.annoCtx=e,this.helpers=new C(this.annoCtx)}return h(t,[{key:"addPointAnnotation",value:function(t,e,i){this.w;var a=this.helpers.getX1X2("x1",t),s=this.helpers.getY1Y2("y1",t);if(y.isNumber(a)){var r={pSize:t.marker.size,pointStrokeWidth:t.marker.strokeWidth,pointFillColor:t.marker.fillColor,pointStrokeColor:t.marker.strokeColor,shape:t.marker.shape,pRadius:t.marker.radius,class:"apexcharts-point-annotation-marker ".concat(t.marker.cssClass," ").concat(t.id?t.id:"")},o=this.annoCtx.graphics.drawMarker(a+t.marker.offsetX,s+t.marker.offsetY,r);e.appendChild(o.node);var n=t.label.text?t.label.text:"",l=this.annoCtx.graphics.drawText({x:a+t.label.offsetX,y:s+t.label.offsetY-t.marker.size-parseFloat(t.label.style.fontSize)/1.6,text:n,textAnchor:t.label.textAnchor,fontSize:t.label.style.fontSize,fontFamily:t.label.style.fontFamily,fontWeight:t.label.style.fontWeight,foreColor:t.label.style.color,cssClass:"apexcharts-point-annotation-label ".concat(t.label.style.cssClass," ").concat(t.id?t.id:"")});if(l.attr({rel:i}),e.appendChild(l.node),t.customSVG.SVG){var h=this.annoCtx.graphics.group({class:"apexcharts-point-annotations-custom-svg "+t.customSVG.cssClass});h.attr({transform:"translate(".concat(a+t.customSVG.offsetX,", ").concat(s+t.customSVG.offsetY,")")}),h.node.innerHTML=t.customSVG.SVG,e.appendChild(h.node)}if(t.image.path){var c=t.image.width?t.image.width:20,d=t.image.height?t.image.height:20;o=this.annoCtx.addImage({x:a+t.image.offsetX-c/2,y:s+t.image.offsetY-d/2,width:c,height:d,path:t.image.path,appendTo:".apexcharts-point-annotations"})}t.mouseEnter&&o.node.addEventListener("mouseenter",t.mouseEnter.bind(this,t)),t.mouseLeave&&o.node.addEventListener("mouseleave",t.mouseLeave.bind(this,t)),t.click&&o.node.addEventListener("click",t.click.bind(this,t))}}},{key:"drawPointAnnotations",value:function(){var t=this,e=this.w,i=this.annoCtx.graphics.group({class:"apexcharts-point-annotations"});return e.config.annotations.points.map((function(e,a){t.addPointAnnotation(e,i.node,a)})),i}}]),t}(),T={name:"en",options:{months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],toolbar:{exportToSVG:"Download SVG",exportToPNG:"Download PNG",exportToCSV:"Download CSV",menu:"Menu",selection:"Selection",selectionZoom:"Selection Zoom",zoomIn:"Zoom In",zoomOut:"Zoom Out",pan:"Panning",reset:"Reset Zoom"}}},M=function(){function t(){n(this,t),this.yAxis={show:!0,showAlways:!1,showForNullSeries:!0,seriesName:void 0,opposite:!1,reversed:!1,logarithmic:!1,logBase:10,tickAmount:void 0,stepSize:void 0,forceNiceScale:!1,max:void 0,min:void 0,floating:!1,decimalsInFloat:void 0,labels:{show:!0,minWidth:0,maxWidth:160,offsetX:0,offsetY:0,align:void 0,rotate:0,padding:20,style:{colors:[],fontSize:"11px",fontWeight:400,fontFamily:void 0,cssClass:""},formatter:void 0},axisBorder:{show:!1,color:"#e0e0e0",width:1,offsetX:0,offsetY:0},axisTicks:{show:!1,color:"#e0e0e0",width:6,offsetX:0,offsetY:0},title:{text:void 0,rotate:-90,offsetY:0,offsetX:0,style:{color:void 0,fontSize:"11px",fontWeight:900,fontFamily:void 0,cssClass:""}},tooltip:{enabled:!1,offsetX:0},crosshairs:{show:!0,position:"front",stroke:{color:"#b6b6b6",width:1,dashArray:0}}},this.pointAnnotation={id:void 0,x:0,y:null,yAxisIndex:0,seriesIndex:void 0,mouseEnter:void 0,mouseLeave:void 0,click:void 0,marker:{size:4,fillColor:"#fff",strokeWidth:2,strokeColor:"#333",shape:"circle",offsetX:0,offsetY:0,radius:2,cssClass:""},label:{borderColor:"#c2c2c2",borderWidth:1,borderRadius:2,text:void 0,textAnchor:"middle",offsetX:0,offsetY:0,mouseEnter:void 0,mouseLeave:void 0,click:void 0,style:{background:"#fff",color:void 0,fontSize:"11px",fontFamily:void 0,fontWeight:400,cssClass:"",padding:{left:5,right:5,top:2,bottom:2}}},customSVG:{SVG:void 0,cssClass:void 0,offsetX:0,offsetY:0},image:{path:void 0,width:20,height:20,offsetX:0,offsetY:0}},this.yAxisAnnotation={id:void 0,y:0,y2:null,strokeDashArray:1,fillColor:"#c2c2c2",borderColor:"#c2c2c2",borderWidth:1,opacity:.3,offsetX:0,offsetY:0,width:"100%",yAxisIndex:0,label:{borderColor:"#c2c2c2",borderWidth:1,borderRadius:2,text:void 0,textAnchor:"end",position:"right",offsetX:0,offsetY:-3,mouseEnter:void 0,mouseLeave:void 0,click:void 0,style:{background:"#fff",color:void 0,fontSize:"11px",fontFamily:void 0,fontWeight:400,cssClass:"",padding:{left:5,right:5,top:2,bottom:2}}}},this.xAxisAnnotation={id:void 0,x:0,x2:null,strokeDashArray:1,fillColor:"#c2c2c2",borderColor:"#c2c2c2",borderWidth:1,opacity:.3,offsetX:0,offsetY:0,label:{borderColor:"#c2c2c2",borderWidth:1,borderRadius:2,text:void 0,textAnchor:"middle",orientation:"vertical",position:"top",offsetX:0,offsetY:0,mouseEnter:void 0,mouseLeave:void 0,click:void 0,style:{background:"#fff",color:void 0,fontSize:"11px",fontFamily:void 0,fontWeight:400,cssClass:"",padding:{left:5,right:5,top:2,bottom:2}}}},this.text={x:0,y:0,text:"",textAnchor:"start",foreColor:void 0,fontSize:"13px",fontFamily:void 0,fontWeight:400,appendTo:".apexcharts-annotations",backgroundColor:"transparent",borderColor:"#c2c2c2",borderRadius:0,borderWidth:0,paddingLeft:4,paddingRight:4,paddingTop:2,paddingBottom:2}}return h(t,[{key:"init",value:function(){return{annotations:{yaxis:[this.yAxisAnnotation],xaxis:[this.xAxisAnnotation],points:[this.pointAnnotation],texts:[],images:[],shapes:[]},chart:{animations:{enabled:!0,easing:"easeinout",speed:800,animateGradually:{delay:150,enabled:!0},dynamicAnimation:{enabled:!0,speed:350}},background:"transparent",locales:[T],defaultLocale:"en",dropShadow:{enabled:!1,enabledOnSeries:void 0,top:2,left:2,blur:4,color:"#000",opacity:.35},events:{animationEnd:void 0,beforeMount:void 0,mounted:void 0,updated:void 0,click:void 0,mouseMove:void 0,mouseLeave:void 0,xAxisLabelClick:void 0,legendClick:void 0,markerClick:void 0,selection:void 0,dataPointSelection:void 0,dataPointMouseEnter:void 0,dataPointMouseLeave:void 0,beforeZoom:void 0,beforeResetZoom:void 0,zoomed:void 0,scrolled:void 0,brushScrolled:void 0},foreColor:"#373d3f",fontFamily:"Helvetica, Arial, sans-serif",height:"auto",parentHeightOffset:15,redrawOnParentResize:!0,redrawOnWindowResize:!0,id:void 0,group:void 0,nonce:void 0,offsetX:0,offsetY:0,selection:{enabled:!1,type:"x",fill:{color:"#24292e",opacity:.1},stroke:{width:1,color:"#24292e",opacity:.4,dashArray:3},xaxis:{min:void 0,max:void 0},yaxis:{min:void 0,max:void 0}},sparkline:{enabled:!1},brush:{enabled:!1,autoScaleYaxis:!0,target:void 0,targets:void 0},stacked:!1,stackOnlyBar:!0,stackType:"normal",toolbar:{show:!0,offsetX:0,offsetY:0,tools:{download:!0,selection:!0,zoom:!0,zoomin:!0,zoomout:!0,pan:!0,reset:!0,customIcons:[]},export:{csv:{filename:void 0,columnDelimiter:",",headerCategory:"category",headerValue:"value",dateFormatter:function(t){return new Date(t).toDateString()}},png:{filename:void 0},svg:{filename:void 0}},autoSelected:"zoom"},type:"line",width:"100%",zoom:{enabled:!0,type:"x",autoScaleYaxis:!1,zoomedArea:{fill:{color:"#90CAF9",opacity:.4},stroke:{color:"#0D47A1",opacity:.4,width:1}}}},plotOptions:{area:{fillTo:"origin"},bar:{horizontal:!1,columnWidth:"70%",barHeight:"70%",distributed:!1,borderRadius:0,borderRadiusApplication:"around",borderRadiusWhenStacked:"last",rangeBarOverlap:!0,rangeBarGroupRows:!1,hideZeroBarsWhenGrouped:!1,isDumbbell:!1,dumbbellColors:void 0,isFunnel:!1,isFunnel3d:!0,colors:{ranges:[],backgroundBarColors:[],backgroundBarOpacity:1,backgroundBarRadius:0},dataLabels:{position:"top",maxItems:100,hideOverflowingLabels:!0,orientation:"horizontal",total:{enabled:!1,formatter:void 0,offsetX:0,offsetY:0,style:{color:"#373d3f",fontSize:"12px",fontFamily:void 0,fontWeight:600}}}},bubble:{zScaling:!0,minBubbleRadius:void 0,maxBubbleRadius:void 0},candlestick:{colors:{upward:"#00B746",downward:"#EF403C"},wick:{useFillColor:!0}},boxPlot:{colors:{upper:"#00E396",lower:"#008FFB"}},heatmap:{radius:2,enableShades:!0,shadeIntensity:.5,reverseNegativeShade:!1,distributed:!1,useFillColorAsStroke:!1,colorScale:{inverse:!1,ranges:[],min:void 0,max:void 0}},treemap:{enableShades:!0,shadeIntensity:.5,distributed:!1,reverseNegativeShade:!1,useFillColorAsStroke:!1,dataLabels:{format:"scale"},colorScale:{inverse:!1,ranges:[],min:void 0,max:void 0}},radialBar:{inverseOrder:!1,startAngle:0,endAngle:360,offsetX:0,offsetY:0,hollow:{margin:5,size:"50%",background:"transparent",image:void 0,imageWidth:150,imageHeight:150,imageOffsetX:0,imageOffsetY:0,imageClipped:!0,position:"front",dropShadow:{enabled:!1,top:0,left:0,blur:3,color:"#000",opacity:.5}},track:{show:!0,startAngle:void 0,endAngle:void 0,background:"#f2f2f2",strokeWidth:"97%",opacity:1,margin:5,dropShadow:{enabled:!1,top:0,left:0,blur:3,color:"#000",opacity:.5}},dataLabels:{show:!0,name:{show:!0,fontSize:"16px",fontFamily:void 0,fontWeight:600,color:void 0,offsetY:0,formatter:function(t){return t}},value:{show:!0,fontSize:"14px",fontFamily:void 0,fontWeight:400,color:void 0,offsetY:16,formatter:function(t){return t+"%"}},total:{show:!1,label:"Total",fontSize:"16px",fontWeight:600,fontFamily:void 0,color:void 0,formatter:function(t){return t.globals.seriesTotals.reduce((function(t,e){return t+e}),0)/t.globals.series.length+"%"}}},barLabels:{enabled:!1,margin:5,useSeriesColors:!0,fontFamily:void 0,fontWeight:600,fontSize:"16px",formatter:function(t){return t},onClick:void 0}},pie:{customScale:1,offsetX:0,offsetY:0,startAngle:0,endAngle:360,expandOnClick:!0,dataLabels:{offset:0,minAngleToShowLabel:10},donut:{size:"65%",background:"transparent",labels:{show:!1,name:{show:!0,fontSize:"16px",fontFamily:void 0,fontWeight:600,color:void 0,offsetY:-10,formatter:function(t){return t}},value:{show:!0,fontSize:"20px",fontFamily:void 0,fontWeight:400,color:void 0,offsetY:10,formatter:function(t){return t}},total:{show:!1,showAlways:!1,label:"Total",fontSize:"16px",fontWeight:400,fontFamily:void 0,color:void 0,formatter:function(t){return t.globals.seriesTotals.reduce((function(t,e){return t+e}),0)}}}}},polarArea:{rings:{strokeWidth:1,strokeColor:"#e8e8e8"},spokes:{strokeWidth:1,connectorColors:"#e8e8e8"}},radar:{size:void 0,offsetX:0,offsetY:0,polygons:{strokeWidth:1,strokeColors:"#e8e8e8",connectorColors:"#e8e8e8",fill:{colors:void 0}}}},colors:void 0,dataLabels:{enabled:!0,enabledOnSeries:void 0,formatter:function(t){return null!==t?t:""},textAnchor:"middle",distributed:!1,offsetX:0,offsetY:0,style:{fontSize:"12px",fontFamily:void 0,fontWeight:600,colors:void 0},background:{enabled:!0,foreColor:"#fff",borderRadius:2,padding:4,opacity:.9,borderWidth:1,borderColor:"#fff",dropShadow:{enabled:!1,top:1,left:1,blur:1,color:"#000",opacity:.45}},dropShadow:{enabled:!1,top:1,left:1,blur:1,color:"#000",opacity:.45}},fill:{type:"solid",colors:void 0,opacity:.85,gradient:{shade:"dark",type:"horizontal",shadeIntensity:.5,gradientToColors:void 0,inverseColors:!0,opacityFrom:1,opacityTo:1,stops:[0,50,100],colorStops:[]},image:{src:[],width:void 0,height:void 0},pattern:{style:"squares",width:6,height:6,strokeWidth:2}},forecastDataPoints:{count:0,fillOpacity:.5,strokeWidth:void 0,dashArray:4},grid:{show:!0,borderColor:"#e0e0e0",strokeDashArray:0,position:"back",xaxis:{lines:{show:!1}},yaxis:{lines:{show:!0}},row:{colors:void 0,opacity:.5},column:{colors:void 0,opacity:.5},padding:{top:0,right:10,bottom:0,left:12}},labels:[],legend:{show:!0,showForSingleSeries:!1,showForNullSeries:!0,showForZeroSeries:!0,floating:!1,position:"bottom",horizontalAlign:"center",inverseOrder:!1,fontSize:"12px",fontFamily:void 0,fontWeight:400,width:void 0,height:void 0,formatter:void 0,tooltipHoverFormatter:void 0,offsetX:-20,offsetY:4,customLegendItems:[],labels:{colors:void 0,useSeriesColors:!1},markers:{width:12,height:12,strokeWidth:0,fillColors:void 0,strokeColor:"#fff",radius:12,customHTML:void 0,offsetX:0,offsetY:0,onClick:void 0},itemMargin:{horizontal:5,vertical:2},onItemClick:{toggleDataSeries:!0},onItemHover:{highlightDataSeries:!0}},markers:{discrete:[],size:0,colors:void 0,strokeColors:"#fff",strokeWidth:2,strokeOpacity:.9,strokeDashArray:0,fillOpacity:1,shape:"circle",width:8,height:8,radius:2,offsetX:0,offsetY:0,onClick:void 0,onDblClick:void 0,showNullDataPoints:!0,hover:{size:void 0,sizeOffset:3}},noData:{text:void 0,align:"center",verticalAlign:"middle",offsetX:0,offsetY:0,style:{color:void 0,fontSize:"14px",fontFamily:void 0}},responsive:[],series:void 0,states:{normal:{filter:{type:"none",value:0}},hover:{filter:{type:"lighten",value:.1}},active:{allowMultipleDataPointsSelection:!1,filter:{type:"darken",value:.5}}},title:{text:void 0,align:"left",margin:5,offsetX:0,offsetY:0,floating:!1,style:{fontSize:"14px",fontWeight:900,fontFamily:void 0,color:void 0}},subtitle:{text:void 0,align:"left",margin:5,offsetX:0,offsetY:30,floating:!1,style:{fontSize:"12px",fontWeight:400,fontFamily:void 0,color:void 0}},stroke:{show:!0,curve:"smooth",lineCap:"butt",width:2,colors:void 0,dashArray:0,fill:{type:"solid",colors:void 0,opacity:.85,gradient:{shade:"dark",type:"horizontal",shadeIntensity:.5,gradientToColors:void 0,inverseColors:!0,opacityFrom:1,opacityTo:1,stops:[0,50,100],colorStops:[]}}},tooltip:{enabled:!0,enabledOnSeries:void 0,shared:!0,hideEmptySeries:!0,followCursor:!1,intersect:!1,inverseOrder:!1,custom:void 0,fillSeriesColor:!1,theme:"light",cssClass:"",style:{fontSize:"12px",fontFamily:void 0},onDatasetHover:{highlightDataSeries:!1},x:{show:!0,format:"dd MMM",formatter:void 0},y:{formatter:void 0,title:{formatter:function(t){return t?t+": ":""}}},z:{formatter:void 0,title:"Size: "},marker:{show:!0,fillColors:void 0},items:{display:"flex"},fixed:{enabled:!1,position:"topRight",offsetX:0,offsetY:0}},xaxis:{type:"category",categories:[],convertedCatToNumeric:!1,offsetX:0,offsetY:0,overwriteCategories:void 0,labels:{show:!0,rotate:-45,rotateAlways:!1,hideOverlappingLabels:!0,trim:!1,minHeight:void 0,maxHeight:120,showDuplicates:!0,style:{colors:[],fontSize:"12px",fontWeight:400,fontFamily:void 0,cssClass:""},offsetX:0,offsetY:0,format:void 0,formatter:void 0,datetimeUTC:!0,datetimeFormatter:{year:"yyyy",month:"MMM 'yy",day:"dd MMM",hour:"HH:mm",minute:"HH:mm:ss",second:"HH:mm:ss"}},group:{groups:[],style:{colors:[],fontSize:"12px",fontWeight:400,fontFamily:void 0,cssClass:""}},axisBorder:{show:!0,color:"#e0e0e0",width:"100%",height:1,offsetX:0,offsetY:0},axisTicks:{show:!0,color:"#e0e0e0",height:6,offsetX:0,offsetY:0},stepSize:void 0,tickAmount:void 0,tickPlacement:"on",min:void 0,max:void 0,range:void 0,floating:!1,decimalsInFloat:void 0,position:"bottom",title:{text:void 0,offsetX:0,offsetY:0,style:{color:void 0,fontSize:"12px",fontWeight:900,fontFamily:void 0,cssClass:""}},crosshairs:{show:!0,width:1,position:"back",opacity:.9,stroke:{color:"#b6b6b6",width:1,dashArray:3},fill:{type:"solid",color:"#B1B9C4",gradient:{colorFrom:"#D8E3F0",colorTo:"#BED1E6",stops:[0,100],opacityFrom:.4,opacityTo:.5}},dropShadow:{enabled:!1,left:0,top:0,blur:1,opacity:.4}},tooltip:{enabled:!0,offsetY:0,formatter:void 0,style:{fontSize:"12px",fontFamily:void 0}}},yaxis:this.yAxis,theme:{mode:"light",palette:"palette1",monochrome:{enabled:!1,color:"#008FFB",shadeTo:"light",shadeIntensity:.65}}}}}]),t}(),z=function(){function t(e){n(this,t),this.ctx=e,this.w=e.w,this.graphics=new A(this.ctx),this.w.globals.isBarHorizontal&&(this.invertAxis=!0),this.helpers=new C(this),this.xAxisAnnotations=new L(this),this.yAxisAnnotations=new P(this),this.pointsAnnotations=new I(this),this.w.globals.isBarHorizontal&&this.w.config.yaxis[0].reversed&&(this.inversedReversedAxis=!0),this.xDivision=this.w.globals.gridWidth/this.w.globals.dataPoints}return h(t,[{key:"drawAxesAnnotations",value:function(){var t=this.w;if(t.globals.axisCharts){for(var e=this.yAxisAnnotations.drawYAxisAnnotations(),i=this.xAxisAnnotations.drawXAxisAnnotations(),a=this.pointsAnnotations.drawPointAnnotations(),s=t.config.chart.animations.enabled,r=[e,i,a],o=[i.node,e.node,a.node],n=0;n<3;n++)t.globals.dom.elGraphical.add(r[n]),!s||t.globals.resized||t.globals.dataChanged||"scatter"!==t.config.chart.type&&"bubble"!==t.config.chart.type&&t.globals.dataPoints>1&&o[n].classList.add("apexcharts-element-hidden"),t.globals.delayedElements.push({el:o[n],index:0});this.helpers.annotationsBackground()}}},{key:"drawImageAnnos",value:function(){var t=this;this.w.config.annotations.images.map((function(e,i){t.addImage(e,i)}))}},{key:"drawTextAnnos",value:function(){var t=this;this.w.config.annotations.texts.map((function(e,i){t.addText(e,i)}))}},{key:"addXaxisAnnotation",value:function(t,e,i){this.xAxisAnnotations.addXaxisAnnotation(t,e,i)}},{key:"addYaxisAnnotation",value:function(t,e,i){this.yAxisAnnotations.addYaxisAnnotation(t,e,i)}},{key:"addPointAnnotation",value:function(t,e,i){this.pointsAnnotations.addPointAnnotation(t,e,i)}},{key:"addText",value:function(t,e){var i=t.x,a=t.y,s=t.text,r=t.textAnchor,o=t.foreColor,n=t.fontSize,l=t.fontFamily,h=t.fontWeight,c=t.cssClass,d=t.backgroundColor,g=t.borderWidth,u=t.strokeDashArray,p=t.borderRadius,f=t.borderColor,x=t.appendTo,b=void 0===x?".apexcharts-svg":x,v=t.paddingLeft,m=void 0===v?4:v,y=t.paddingRight,w=void 0===y?4:y,k=t.paddingBottom,A=void 0===k?2:k,S=t.paddingTop,C=void 0===S?2:S,L=this.w,P=this.graphics.drawText({x:i,y:a,text:s,textAnchor:r||"start",fontSize:n||"12px",fontWeight:h||"regular",fontFamily:l||L.config.chart.fontFamily,foreColor:o||L.config.chart.foreColor,cssClass:c}),I=L.globals.dom.baseEl.querySelector(b);I&&I.appendChild(P.node);var T=P.bbox();if(s){var M=this.graphics.drawRect(T.x-m,T.y-C,T.width+m+w,T.height+A+C,p,d||"transparent",1,g,f,u);I.insertBefore(M.node,P.node)}}},{key:"addImage",value:function(t,e){var i=this.w,a=t.path,s=t.x,r=void 0===s?0:s,o=t.y,n=void 0===o?0:o,l=t.width,h=void 0===l?20:l,c=t.height,d=void 0===c?20:c,g=t.appendTo,u=void 0===g?".apexcharts-svg":g,p=i.globals.dom.Paper.image(a);p.size(h,d).move(r,n);var f=i.globals.dom.baseEl.querySelector(u);return f&&f.appendChild(p.node),p}},{key:"addXaxisAnnotationExternal",value:function(t,e,i){return this.addAnnotationExternal({params:t,pushToMemory:e,context:i,type:"xaxis",contextMethod:i.addXaxisAnnotation}),i}},{key:"addYaxisAnnotationExternal",value:function(t,e,i){return this.addAnnotationExternal({params:t,pushToMemory:e,context:i,type:"yaxis",contextMethod:i.addYaxisAnnotation}),i}},{key:"addPointAnnotationExternal",value:function(t,e,i){return void 0===this.invertAxis&&(this.invertAxis=i.w.globals.isBarHorizontal),this.addAnnotationExternal({params:t,pushToMemory:e,context:i,type:"point",contextMethod:i.addPointAnnotation}),i}},{key:"addAnnotationExternal",value:function(t){var e=t.params,i=t.pushToMemory,a=t.context,s=t.type,r=t.contextMethod,o=a,n=o.w,l=n.globals.dom.baseEl.querySelector(".apexcharts-".concat(s,"-annotations")),h=l.childNodes.length+1,c=new M,d=Object.assign({},"xaxis"===s?c.xAxisAnnotation:"yaxis"===s?c.yAxisAnnotation:c.pointAnnotation),g=y.extend(d,e);switch(s){case"xaxis":this.addXaxisAnnotation(g,l,h);break;case"yaxis":this.addYaxisAnnotation(g,l,h);break;case"point":this.addPointAnnotation(g,l,h)}var u=n.globals.dom.baseEl.querySelector(".apexcharts-".concat(s,"-annotations .apexcharts-").concat(s,"-annotation-label[rel='").concat(h,"']")),p=this.helpers.addBackgroundToAnno(u,g);return p&&l.insertBefore(p.node,u),i&&n.globals.memory.methodsToExec.push({context:o,id:g.id?g.id:y.randomId(),method:r,label:"addAnnotation",params:e}),a}},{key:"clearAnnotations",value:function(t){var e=t.w,i=e.globals.dom.baseEl.querySelectorAll(".apexcharts-yaxis-annotations, .apexcharts-xaxis-annotations, .apexcharts-point-annotations");e.globals.memory.methodsToExec.map((function(t,i){"addText"!==t.label&&"addAnnotation"!==t.label||e.globals.memory.methodsToExec.splice(i,1)})),i=y.listToArray(i),Array.prototype.forEach.call(i,(function(t){for(;t.firstChild;)t.removeChild(t.firstChild)}))}},{key:"removeAnnotation",value:function(t,e){var i=t.w,a=i.globals.dom.baseEl.querySelectorAll(".".concat(e));a&&(i.globals.memory.methodsToExec.map((function(t,a){t.id===e&&i.globals.memory.methodsToExec.splice(a,1)})),Array.prototype.forEach.call(a,(function(t){t.parentElement.removeChild(t)})))}}]),t}(),X=function(){function t(e){n(this,t),this.ctx=e,this.w=e.w,this.months31=[1,3,5,7,8,10,12],this.months30=[2,4,6,9,11],this.daysCntOfYear=[0,31,59,90,120,151,181,212,243,273,304,334]}return h(t,[{key:"isValidDate",value:function(t){return"number"!=typeof t&&!isNaN(this.parseDate(t))}},{key:"getTimeStamp",value:function(t){return Date.parse(t)?this.w.config.xaxis.labels.datetimeUTC?new Date(new Date(t).toISOString().substr(0,25)).getTime():new Date(t).getTime():t}},{key:"getDate",value:function(t){return this.w.config.xaxis.labels.datetimeUTC?new Date(new Date(t).toUTCString()):new Date(t)}},{key:"parseDate",value:function(t){var e=Date.parse(t);if(!isNaN(e))return this.getTimeStamp(t);var i=Date.parse(t.replace(/-/g,"/").replace(/[a-z]+/gi," "));return this.getTimeStamp(i)}},{key:"parseDateWithTimezone",value:function(t){return Date.parse(t.replace(/-/g,"/").replace(/[a-z]+/gi," "))}},{key:"formatDate",value:function(t,e){var i=this.w.globals.locale,a=this.w.config.xaxis.labels.datetimeUTC,s=["\0"].concat(b(i.months)),r=[""].concat(b(i.shortMonths)),o=[""].concat(b(i.days)),n=[""].concat(b(i.shortDays));function l(t,e){var i=t+"";for(e=e||2;i.length12?g-12:0===g?12:g;e=(e=(e=(e=e.replace(/(^|[^\\])HH+/g,"$1"+l(g))).replace(/(^|[^\\])H/g,"$1"+g)).replace(/(^|[^\\])hh+/g,"$1"+l(u))).replace(/(^|[^\\])h/g,"$1"+u);var p=a?t.getUTCMinutes():t.getMinutes();e=(e=e.replace(/(^|[^\\])mm+/g,"$1"+l(p))).replace(/(^|[^\\])m/g,"$1"+p);var f=a?t.getUTCSeconds():t.getSeconds();e=(e=e.replace(/(^|[^\\])ss+/g,"$1"+l(f))).replace(/(^|[^\\])s/g,"$1"+f);var x=a?t.getUTCMilliseconds():t.getMilliseconds();e=e.replace(/(^|[^\\])fff+/g,"$1"+l(x,3)),x=Math.round(x/10),e=e.replace(/(^|[^\\])ff/g,"$1"+l(x)),x=Math.round(x/10);var v=g<12?"AM":"PM";e=(e=(e=e.replace(/(^|[^\\])f/g,"$1"+x)).replace(/(^|[^\\])TT+/g,"$1"+v)).replace(/(^|[^\\])T/g,"$1"+v.charAt(0));var m=v.toLowerCase();e=(e=e.replace(/(^|[^\\])tt+/g,"$1"+m)).replace(/(^|[^\\])t/g,"$1"+m.charAt(0));var y=-t.getTimezoneOffset(),w=a||!y?"Z":y>0?"+":"-";if(!a){var k=(y=Math.abs(y))%60;w+=l(Math.floor(y/60))+":"+l(k)}e=e.replace(/(^|[^\\])K/g,"$1"+w);var A=(a?t.getUTCDay():t.getDay())+1;return(e=(e=(e=(e=e.replace(new RegExp(o[0],"g"),o[A])).replace(new RegExp(n[0],"g"),n[A])).replace(new RegExp(s[0],"g"),s[c])).replace(new RegExp(r[0],"g"),r[c])).replace(/\\(.)/g,"$1")}},{key:"getTimeUnitsfromTimestamp",value:function(t,e,i){var a=this.w;void 0!==a.config.xaxis.min&&(t=a.config.xaxis.min),void 0!==a.config.xaxis.max&&(e=a.config.xaxis.max);var s=this.getDate(t),r=this.getDate(e),o=this.formatDate(s,"yyyy MM dd HH mm ss fff").split(" "),n=this.formatDate(r,"yyyy MM dd HH mm ss fff").split(" ");return{minMillisecond:parseInt(o[6],10),maxMillisecond:parseInt(n[6],10),minSecond:parseInt(o[5],10),maxSecond:parseInt(n[5],10),minMinute:parseInt(o[4],10),maxMinute:parseInt(n[4],10),minHour:parseInt(o[3],10),maxHour:parseInt(n[3],10),minDate:parseInt(o[2],10),maxDate:parseInt(n[2],10),minMonth:parseInt(o[1],10)-1,maxMonth:parseInt(n[1],10)-1,minYear:parseInt(o[0],10),maxYear:parseInt(n[0],10)}}},{key:"isLeapYear",value:function(t){return t%4==0&&t%100!=0||t%400==0}},{key:"calculcateLastDaysOfMonth",value:function(t,e,i){return this.determineDaysOfMonths(t,e)-i}},{key:"determineDaysOfYear",value:function(t){var e=365;return this.isLeapYear(t)&&(e=366),e}},{key:"determineRemainingDaysOfYear",value:function(t,e,i){var a=this.daysCntOfYear[e]+i;return e>1&&this.isLeapYear()&&a++,a}},{key:"determineDaysOfMonths",value:function(t,e){var i=30;switch(t=y.monthMod(t),!0){case this.months30.indexOf(t)>-1:2===t&&(i=this.isLeapYear(e)?29:28);break;case this.months31.indexOf(t)>-1:default:i=31}return i}}]),t}(),E=function(){function t(e){n(this,t),this.ctx=e,this.w=e.w,this.tooltipKeyFormat="dd MMM"}return h(t,[{key:"xLabelFormat",value:function(t,e,i,a){var s=this.w;if("datetime"===s.config.xaxis.type&&void 0===s.config.xaxis.labels.formatter&&void 0===s.config.tooltip.x.formatter){var r=new X(this.ctx);return r.formatDate(r.getDate(e),s.config.tooltip.x.format)}return t(e,i,a)}},{key:"defaultGeneralFormatter",value:function(t){return Array.isArray(t)?t.map((function(t){return t})):t}},{key:"defaultYFormatter",value:function(t,e,i){var a=this.w;return y.isNumber(t)&&(t=0!==a.globals.yValueDecimal?t.toFixed(void 0!==e.decimalsInFloat?e.decimalsInFloat:a.globals.yValueDecimal):a.globals.maxYArr[i]-a.globals.minYArr[i]<5?t.toFixed(1):t.toFixed(0)),t}},{key:"setLabelFormatters",value:function(){var t=this,e=this.w;return e.globals.xaxisTooltipFormatter=function(e){return t.defaultGeneralFormatter(e)},e.globals.ttKeyFormatter=function(e){return t.defaultGeneralFormatter(e)},e.globals.ttZFormatter=function(t){return t},e.globals.legendFormatter=function(e){return t.defaultGeneralFormatter(e)},void 0!==e.config.xaxis.labels.formatter?e.globals.xLabelFormatter=e.config.xaxis.labels.formatter:e.globals.xLabelFormatter=function(t){if(y.isNumber(t)){if(!e.config.xaxis.convertedCatToNumeric&&"numeric"===e.config.xaxis.type){if(y.isNumber(e.config.xaxis.decimalsInFloat))return t.toFixed(e.config.xaxis.decimalsInFloat);var i=e.globals.maxX-e.globals.minX;return i>0&&i<100?t.toFixed(1):t.toFixed(0)}return e.globals.isBarHorizontal&&e.globals.maxY-e.globals.minYArr<4?t.toFixed(1):t.toFixed(0)}return t},"function"==typeof e.config.tooltip.x.formatter?e.globals.ttKeyFormatter=e.config.tooltip.x.formatter:e.globals.ttKeyFormatter=e.globals.xLabelFormatter,"function"==typeof e.config.xaxis.tooltip.formatter&&(e.globals.xaxisTooltipFormatter=e.config.xaxis.tooltip.formatter),(Array.isArray(e.config.tooltip.y)||void 0!==e.config.tooltip.y.formatter)&&(e.globals.ttVal=e.config.tooltip.y),void 0!==e.config.tooltip.z.formatter&&(e.globals.ttZFormatter=e.config.tooltip.z.formatter),void 0!==e.config.legend.formatter&&(e.globals.legendFormatter=e.config.legend.formatter),e.config.yaxis.forEach((function(i,a){void 0!==i.labels.formatter?e.globals.yLabelFormatters[a]=i.labels.formatter:e.globals.yLabelFormatters[a]=function(s){return e.globals.xyCharts?Array.isArray(s)?s.map((function(e){return t.defaultYFormatter(e,i,a)})):t.defaultYFormatter(s,i,a):s}})),e.globals}},{key:"heatmapLabelFormatters",value:function(){var t=this.w;if("heatmap"===t.config.chart.type){t.globals.yAxisScale[0].result=t.globals.seriesNames.slice();var e=t.globals.seriesNames.reduce((function(t,e){return t.length>e.length?t:e}),0);t.globals.yAxisScale[0].niceMax=e,t.globals.yAxisScale[0].niceMin=e}}}]),t}(),Y=function(t){var e,i=t.isTimeline,a=t.ctx,s=t.seriesIndex,r=t.dataPointIndex,o=t.y1,n=t.y2,l=t.w,h=l.globals.seriesRangeStart[s][r],c=l.globals.seriesRangeEnd[s][r],d=l.globals.labels[r],g=l.config.series[s].name?l.config.series[s].name:"",u=l.globals.ttKeyFormatter,p=l.config.tooltip.y.title.formatter,f={w:l,seriesIndex:s,dataPointIndex:r,start:h,end:c};"function"==typeof p&&(g=p(g,f)),null!==(e=l.config.series[s].data[r])&&void 0!==e&&e.x&&(d=l.config.series[s].data[r].x),i||"datetime"===l.config.xaxis.type&&(d=new E(a).xLabelFormat(l.globals.ttKeyFormatter,d,d,{i:void 0,dateFormatter:new X(a).formatDate,w:l})),"function"==typeof u&&(d=u(d,f)),Number.isFinite(o)&&Number.isFinite(n)&&(h=o,c=n);var x="",b="",v=l.globals.colors[s];if(void 0===l.config.tooltip.x.formatter)if("datetime"===l.config.xaxis.type){var m=new X(a);x=m.formatDate(m.getDate(h),l.config.tooltip.x.format),b=m.formatDate(m.getDate(c),l.config.tooltip.x.format)}else x=h,b=c;else x=l.config.tooltip.x.formatter(h),b=l.config.tooltip.x.formatter(c);return{start:h,end:c,startVal:x,endVal:b,ylabel:d,color:v,seriesName:g}},F=function(t){var e=t.color,i=t.seriesName,a=t.ylabel,s=t.start,r=t.end,o=t.seriesIndex,n=t.dataPointIndex,l=t.ctx.tooltip.tooltipLabels.getFormatters(o);s=l.yLbFormatter(s),r=l.yLbFormatter(r);var h=l.yLbFormatter(t.w.globals.series[o][n]),c='\n '.concat(s,'\n - \n ').concat(r,"\n ");return'
'+(i||"")+'
'+a+": "+(t.w.globals.comboCharts?"rangeArea"===t.w.config.series[o].type||"rangeBar"===t.w.config.series[o].type?c:"".concat(h,""):c)+"
"},R=function(){function t(e){n(this,t),this.opts=e}return h(t,[{key:"hideYAxis",value:function(){this.opts.yaxis[0].show=!1,this.opts.yaxis[0].title.text="",this.opts.yaxis[0].axisBorder.show=!1,this.opts.yaxis[0].axisTicks.show=!1,this.opts.yaxis[0].floating=!0}},{key:"line",value:function(){return{chart:{animations:{easing:"swing"}},dataLabels:{enabled:!1},stroke:{width:5,curve:"straight"},markers:{size:0,hover:{sizeOffset:6}},xaxis:{crosshairs:{width:1}}}}},{key:"sparkline",value:function(t){return this.hideYAxis(),y.extend(t,{grid:{show:!1,padding:{left:0,right:0,top:0,bottom:0}},legend:{show:!1},xaxis:{labels:{show:!1},tooltip:{enabled:!1},axisBorder:{show:!1},axisTicks:{show:!1}},chart:{toolbar:{show:!1},zoom:{enabled:!1}},dataLabels:{enabled:!1}})}},{key:"bar",value:function(){return{chart:{stacked:!1,animations:{easing:"swing"}},plotOptions:{bar:{dataLabels:{position:"center"}}},dataLabels:{style:{colors:["#fff"]},background:{enabled:!1}},stroke:{width:0,lineCap:"round"},fill:{opacity:.85},legend:{markers:{shape:"square",radius:2,size:8}},tooltip:{shared:!1,intersect:!0},xaxis:{tooltip:{enabled:!1},tickPlacement:"between",crosshairs:{width:"barWidth",position:"back",fill:{type:"gradient"},dropShadow:{enabled:!1},stroke:{width:0}}}}}},{key:"funnel",value:function(){return this.hideYAxis(),r(r({},this.bar()),{},{chart:{animations:{easing:"linear",speed:800,animateGradually:{enabled:!1}}},plotOptions:{bar:{horizontal:!0,borderRadiusApplication:"around",borderRadius:0,dataLabels:{position:"center"}}},grid:{show:!1,padding:{left:0,right:0}},xaxis:{labels:{show:!1},tooltip:{enabled:!1},axisBorder:{show:!1},axisTicks:{show:!1}}})}},{key:"candlestick",value:function(){var t=this;return{stroke:{width:1,colors:["#333"]},fill:{opacity:1},dataLabels:{enabled:!1},tooltip:{shared:!0,custom:function(e){var i=e.seriesIndex,a=e.dataPointIndex,s=e.w;return t._getBoxTooltip(s,i,a,["Open","High","","Low","Close"],"candlestick")}},states:{active:{filter:{type:"none"}}},xaxis:{crosshairs:{width:1}}}}},{key:"boxPlot",value:function(){var t=this;return{chart:{animations:{dynamicAnimation:{enabled:!1}}},stroke:{width:1,colors:["#24292e"]},dataLabels:{enabled:!1},tooltip:{shared:!0,custom:function(e){var i=e.seriesIndex,a=e.dataPointIndex,s=e.w;return t._getBoxTooltip(s,i,a,["Minimum","Q1","Median","Q3","Maximum"],"boxPlot")}},markers:{size:5,strokeWidth:1,strokeColors:"#111"},xaxis:{crosshairs:{width:1}}}}},{key:"rangeBar",value:function(){return{chart:{animations:{animateGradually:!1}},stroke:{width:0,lineCap:"square"},plotOptions:{bar:{borderRadius:0,dataLabels:{position:"center"}}},dataLabels:{enabled:!1,formatter:function(t,e){e.ctx;var i=e.seriesIndex,a=e.dataPointIndex,s=e.w,r=function(){var t=s.globals.seriesRangeStart[i][a];return s.globals.seriesRangeEnd[i][a]-t};return s.globals.comboCharts?"rangeBar"===s.config.series[i].type||"rangeArea"===s.config.series[i].type?r():t:r()},background:{enabled:!1},style:{colors:["#fff"]}},markers:{size:10},tooltip:{shared:!1,followCursor:!0,custom:function(t){return t.w.config.plotOptions&&t.w.config.plotOptions.bar&&t.w.config.plotOptions.bar.horizontal?function(t){var e=Y(r(r({},t),{},{isTimeline:!0})),i=e.color,a=e.seriesName,s=e.ylabel,o=e.startVal,n=e.endVal;return F(r(r({},t),{},{color:i,seriesName:a,ylabel:s,start:o,end:n}))}(t):function(t){var e=Y(t),i=e.color,a=e.seriesName,s=e.ylabel,o=e.start,n=e.end;return F(r(r({},t),{},{color:i,seriesName:a,ylabel:s,start:o,end:n}))}(t)}},xaxis:{tickPlacement:"between",tooltip:{enabled:!1},crosshairs:{stroke:{width:0}}}}}},{key:"dumbbell",value:function(t){var e,i;return null!==(e=t.plotOptions.bar)&&void 0!==e&&e.barHeight||(t.plotOptions.bar.barHeight=2),null!==(i=t.plotOptions.bar)&&void 0!==i&&i.columnWidth||(t.plotOptions.bar.columnWidth=2),t}},{key:"area",value:function(){return{stroke:{width:4,fill:{type:"solid",gradient:{inverseColors:!1,shade:"light",type:"vertical",opacityFrom:.65,opacityTo:.5,stops:[0,100,100]}}},fill:{type:"gradient",gradient:{inverseColors:!1,shade:"light",type:"vertical",opacityFrom:.65,opacityTo:.5,stops:[0,100,100]}},markers:{size:0,hover:{sizeOffset:6}},tooltip:{followCursor:!1}}}},{key:"rangeArea",value:function(){return{stroke:{curve:"straight",width:0},fill:{type:"solid",opacity:.6},markers:{size:0},states:{hover:{filter:{type:"none"}},active:{filter:{type:"none"}}},tooltip:{intersect:!1,shared:!0,followCursor:!0,custom:function(t){return function(t){var e=Y(t),i=e.color,a=e.seriesName,s=e.ylabel,o=e.start,n=e.end;return F(r(r({},t),{},{color:i,seriesName:a,ylabel:s,start:o,end:n}))}(t)}}}}},{key:"brush",value:function(t){return y.extend(t,{chart:{toolbar:{autoSelected:"selection",show:!1},zoom:{enabled:!1}},dataLabels:{enabled:!1},stroke:{width:1},tooltip:{enabled:!1},xaxis:{tooltip:{enabled:!1}}})}},{key:"stacked100",value:function(t){t.dataLabels=t.dataLabels||{},t.dataLabels.formatter=t.dataLabels.formatter||void 0;var e=t.dataLabels.formatter;return t.yaxis.forEach((function(e,i){t.yaxis[i].min=0,t.yaxis[i].max=100})),"bar"===t.chart.type&&(t.dataLabels.formatter=e||function(t){return"number"==typeof t&&t?t.toFixed(0)+"%":t}),t}},{key:"stackedBars",value:function(){var t=this.bar();return r(r({},t),{},{plotOptions:r(r({},t.plotOptions),{},{bar:r(r({},t.plotOptions.bar),{},{borderRadiusApplication:"end",borderRadiusWhenStacked:"last"})})})}},{key:"convertCatToNumeric",value:function(t){return t.xaxis.convertedCatToNumeric=!0,t}},{key:"convertCatToNumericXaxis",value:function(t,e,i){t.xaxis.type="numeric",t.xaxis.labels=t.xaxis.labels||{},t.xaxis.labels.formatter=t.xaxis.labels.formatter||function(t){return y.isNumber(t)?Math.floor(t):t};var a=t.xaxis.labels.formatter,s=t.xaxis.categories&&t.xaxis.categories.length?t.xaxis.categories:t.labels;return i&&i.length&&(s=i.map((function(t){return Array.isArray(t)?t:String(t)}))),s&&s.length&&(t.xaxis.labels.formatter=function(t){return y.isNumber(t)?a(s[Math.floor(t)-1]):a(t)}),t.xaxis.categories=[],t.labels=[],t.xaxis.tickAmount=t.xaxis.tickAmount||"dataPoints",t}},{key:"bubble",value:function(){return{dataLabels:{style:{colors:["#fff"]}},tooltip:{shared:!1,intersect:!0},xaxis:{crosshairs:{width:0}},fill:{type:"solid",gradient:{shade:"light",inverse:!0,shadeIntensity:.55,opacityFrom:.4,opacityTo:.8}}}}},{key:"scatter",value:function(){return{dataLabels:{enabled:!1},tooltip:{shared:!1,intersect:!0},markers:{size:6,strokeWidth:1,hover:{sizeOffset:2}}}}},{key:"heatmap",value:function(){return{chart:{stacked:!1},fill:{opacity:1},dataLabels:{style:{colors:["#fff"]}},stroke:{colors:["#fff"]},tooltip:{followCursor:!0,marker:{show:!1},x:{show:!1}},legend:{position:"top",markers:{shape:"square",size:10,offsetY:2}},grid:{padding:{right:20}}}}},{key:"treemap",value:function(){return{chart:{zoom:{enabled:!1}},dataLabels:{style:{fontSize:14,fontWeight:600,colors:["#fff"]}},stroke:{show:!0,width:2,colors:["#fff"]},legend:{show:!1},fill:{gradient:{stops:[0,100]}},tooltip:{followCursor:!0,x:{show:!1}},grid:{padding:{left:0,right:0}},xaxis:{crosshairs:{show:!1},tooltip:{enabled:!1}}}}},{key:"pie",value:function(){return{chart:{toolbar:{show:!1}},plotOptions:{pie:{donut:{labels:{show:!1}}}},dataLabels:{formatter:function(t){return t.toFixed(1)+"%"},style:{colors:["#fff"]},background:{enabled:!1},dropShadow:{enabled:!0}},stroke:{colors:["#fff"]},fill:{opacity:1,gradient:{shade:"light",stops:[0,100]}},tooltip:{theme:"dark",fillSeriesColor:!0},legend:{position:"right"}}}},{key:"donut",value:function(){return{chart:{toolbar:{show:!1}},dataLabels:{formatter:function(t){return t.toFixed(1)+"%"},style:{colors:["#fff"]},background:{enabled:!1},dropShadow:{enabled:!0}},stroke:{colors:["#fff"]},fill:{opacity:1,gradient:{shade:"light",shadeIntensity:.35,stops:[80,100],opacityFrom:1,opacityTo:1}},tooltip:{theme:"dark",fillSeriesColor:!0},legend:{position:"right"}}}},{key:"polarArea",value:function(){return this.opts.yaxis[0].tickAmount=this.opts.yaxis[0].tickAmount?this.opts.yaxis[0].tickAmount:6,{chart:{toolbar:{show:!1}},dataLabels:{formatter:function(t){return t.toFixed(1)+"%"},enabled:!1},stroke:{show:!0,width:2},fill:{opacity:.7},tooltip:{theme:"dark",fillSeriesColor:!0},legend:{position:"right"}}}},{key:"radar",value:function(){return this.opts.yaxis[0].labels.offsetY=this.opts.yaxis[0].labels.offsetY?this.opts.yaxis[0].labels.offsetY:6,{dataLabels:{enabled:!1,style:{fontSize:"11px"}},stroke:{width:2},markers:{size:3,strokeWidth:1,strokeOpacity:1},fill:{opacity:.2},tooltip:{shared:!1,intersect:!0,followCursor:!0},grid:{show:!1},xaxis:{labels:{formatter:function(t){return t},style:{colors:["#a8a8a8"],fontSize:"11px"}},tooltip:{enabled:!1},crosshairs:{show:!1}}}}},{key:"radialBar",value:function(){return{chart:{animations:{dynamicAnimation:{enabled:!0,speed:800}},toolbar:{show:!1}},fill:{gradient:{shade:"dark",shadeIntensity:.4,inverseColors:!1,type:"diagonal2",opacityFrom:1,opacityTo:1,stops:[70,98,100]}},legend:{show:!1,position:"right"},tooltip:{enabled:!1,fillSeriesColor:!0}}}},{key:"_getBoxTooltip",value:function(t,e,i,a,s){var r=t.globals.seriesCandleO[e][i],o=t.globals.seriesCandleH[e][i],n=t.globals.seriesCandleM[e][i],l=t.globals.seriesCandleL[e][i],h=t.globals.seriesCandleC[e][i];return t.config.series[e].type&&t.config.series[e].type!==s?'
\n '.concat(t.config.series[e].name?t.config.series[e].name:"series-"+(e+1),": ").concat(t.globals.series[e][i],"\n
"):'
')+"
".concat(a[0],': ')+r+"
"+"
".concat(a[1],': ')+o+"
"+(n?"
".concat(a[2],': ')+n+"
":"")+"
".concat(a[3],': ')+l+"
"+"
".concat(a[4],': ')+h+"
"}}]),t}(),H=function(){function t(e){n(this,t),this.opts=e}return h(t,[{key:"init",value:function(t){var e=t.responsiveOverride,i=this.opts,a=new M,s=new R(i);this.chartType=i.chart.type,i=this.extendYAxis(i),i=this.extendAnnotations(i);var r=a.init(),n={};if(i&&"object"===o(i)){var l,h,c,d,g,u,p,f,x,b,v={};v=-1!==["line","area","bar","candlestick","boxPlot","rangeBar","rangeArea","bubble","scatter","heatmap","treemap","pie","polarArea","donut","radar","radialBar"].indexOf(i.chart.type)?s[i.chart.type]():s.line(),null!==(l=i.plotOptions)&&void 0!==l&&null!==(h=l.bar)&&void 0!==h&&h.isFunnel&&(v=s.funnel()),i.chart.stacked&&"bar"===i.chart.type&&(v=s.stackedBars()),null!==(c=i.chart.brush)&&void 0!==c&&c.enabled&&(v=s.brush(v)),i.chart.stacked&&"100%"===i.chart.stackType&&(i=s.stacked100(i)),null!==(d=i.plotOptions)&&void 0!==d&&null!==(g=d.bar)&&void 0!==g&&g.isDumbbell&&(i=s.dumbbell(i)),"monotoneCubic"===(null===(u=i)||void 0===u||null===(p=u.stroke)||void 0===p?void 0:p.curve)&&(i.stroke.curve="smooth"),this.checkForDarkTheme(window.Apex),this.checkForDarkTheme(i),i.xaxis=i.xaxis||window.Apex.xaxis||{},e||(i.xaxis.convertedCatToNumeric=!1),(null!==(f=(i=this.checkForCatToNumericXAxis(this.chartType,v,i)).chart.sparkline)&&void 0!==f&&f.enabled||null!==(x=window.Apex.chart)&&void 0!==x&&null!==(b=x.sparkline)&&void 0!==b&&b.enabled)&&(v=s.sparkline(v)),n=y.extend(r,v)}var m=y.extend(n,window.Apex);return r=y.extend(m,i),this.handleUserInputErrors(r)}},{key:"checkForCatToNumericXAxis",value:function(t,e,i){var a,s,r=new R(i),o=("bar"===t||"boxPlot"===t)&&(null===(a=i.plotOptions)||void 0===a||null===(s=a.bar)||void 0===s?void 0:s.horizontal),n="pie"===t||"polarArea"===t||"donut"===t||"radar"===t||"radialBar"===t||"heatmap"===t,l="datetime"!==i.xaxis.type&&"numeric"!==i.xaxis.type,h=i.xaxis.tickPlacement?i.xaxis.tickPlacement:e.xaxis&&e.xaxis.tickPlacement;return o||n||!l||"between"===h||(i=r.convertCatToNumeric(i)),i}},{key:"extendYAxis",value:function(t,e){var i=new M;(void 0===t.yaxis||!t.yaxis||Array.isArray(t.yaxis)&&0===t.yaxis.length)&&(t.yaxis={}),t.yaxis.constructor!==Array&&window.Apex.yaxis&&window.Apex.yaxis.constructor!==Array&&(t.yaxis=y.extend(t.yaxis,window.Apex.yaxis)),t.yaxis.constructor!==Array?t.yaxis=[y.extend(i.yAxis,t.yaxis)]:t.yaxis=y.extendArray(t.yaxis,i.yAxis);var a=!1;t.yaxis.forEach((function(t){t.logarithmic&&(a=!0)}));var s=t.series;return e&&!s&&(s=e.config.series),a&&s.length!==t.yaxis.length&&s.length&&(t.yaxis=s.map((function(e,a){if(e.name||(s[a].name="series-".concat(a+1)),t.yaxis[a])return t.yaxis[a].seriesName=s[a].name,t.yaxis[a];var r=y.extend(i.yAxis,t.yaxis[0]);return r.show=!1,r}))),a&&s.length>1&&s.length!==t.yaxis.length&&console.warn("A multi-series logarithmic chart should have equal number of series and y-axes"),t}},{key:"extendAnnotations",value:function(t){return void 0===t.annotations&&(t.annotations={},t.annotations.yaxis=[],t.annotations.xaxis=[],t.annotations.points=[]),t=this.extendYAxisAnnotations(t),t=this.extendXAxisAnnotations(t),this.extendPointAnnotations(t)}},{key:"extendYAxisAnnotations",value:function(t){var e=new M;return t.annotations.yaxis=y.extendArray(void 0!==t.annotations.yaxis?t.annotations.yaxis:[],e.yAxisAnnotation),t}},{key:"extendXAxisAnnotations",value:function(t){var e=new M;return t.annotations.xaxis=y.extendArray(void 0!==t.annotations.xaxis?t.annotations.xaxis:[],e.xAxisAnnotation),t}},{key:"extendPointAnnotations",value:function(t){var e=new M;return t.annotations.points=y.extendArray(void 0!==t.annotations.points?t.annotations.points:[],e.pointAnnotation),t}},{key:"checkForDarkTheme",value:function(t){t.theme&&"dark"===t.theme.mode&&(t.tooltip||(t.tooltip={}),"light"!==t.tooltip.theme&&(t.tooltip.theme="dark"),t.chart.foreColor||(t.chart.foreColor="#f6f7f8"),t.chart.background||(t.chart.background="#424242"),t.theme.palette||(t.theme.palette="palette4"))}},{key:"handleUserInputErrors",value:function(t){var e=t;if(e.tooltip.shared&&e.tooltip.intersect)throw new Error("tooltip.shared cannot be enabled when tooltip.intersect is true. Turn off any other option by setting it to false.");if("bar"===e.chart.type&&e.plotOptions.bar.horizontal){if(e.yaxis.length>1)throw new Error("Multiple Y Axis for bars are not supported. Switch to column chart by setting plotOptions.bar.horizontal=false");e.yaxis[0].reversed&&(e.yaxis[0].opposite=!0),e.xaxis.tooltip.enabled=!1,e.yaxis[0].tooltip.enabled=!1,e.chart.zoom.enabled=!1}return"bar"!==e.chart.type&&"rangeBar"!==e.chart.type||e.tooltip.shared&&"barWidth"===e.xaxis.crosshairs.width&&e.series.length>1&&(e.xaxis.crosshairs.width="tickWidth"),"candlestick"!==e.chart.type&&"boxPlot"!==e.chart.type||e.yaxis[0].reversed&&(console.warn("Reversed y-axis in ".concat(e.chart.type," chart is not supported.")),e.yaxis[0].reversed=!1),e}}]),t}(),D=function(){function t(){n(this,t)}return h(t,[{key:"initGlobalVars",value:function(t){t.series=[],t.seriesCandleO=[],t.seriesCandleH=[],t.seriesCandleM=[],t.seriesCandleL=[],t.seriesCandleC=[],t.seriesRangeStart=[],t.seriesRangeEnd=[],t.seriesRange=[],t.seriesPercent=[],t.seriesGoals=[],t.seriesX=[],t.seriesZ=[],t.seriesNames=[],t.seriesTotals=[],t.seriesLog=[],t.seriesColors=[],t.stackedSeriesTotals=[],t.seriesXvalues=[],t.seriesYvalues=[],t.labels=[],t.hasXaxisGroups=!1,t.groups=[],t.hasSeriesGroups=!1,t.seriesGroups=[],t.categoryLabels=[],t.timescaleLabels=[],t.noLabelsProvided=!1,t.resizeTimer=null,t.selectionResizeTimer=null,t.delayedElements=[],t.pointsArray=[],t.dataLabelsRects=[],t.isXNumeric=!1,t.skipLastTimelinelabel=!1,t.skipFirstTimelinelabel=!1,t.isDataXYZ=!1,t.isMultiLineX=!1,t.isMultipleYAxis=!1,t.maxY=-Number.MAX_VALUE,t.minY=Number.MIN_VALUE,t.minYArr=[],t.maxYArr=[],t.maxX=-Number.MAX_VALUE,t.minX=Number.MAX_VALUE,t.initialMaxX=-Number.MAX_VALUE,t.initialMinX=Number.MAX_VALUE,t.maxDate=0,t.minDate=Number.MAX_VALUE,t.minZ=Number.MAX_VALUE,t.maxZ=-Number.MAX_VALUE,t.minXDiff=Number.MAX_VALUE,t.yAxisScale=[],t.xAxisScale=null,t.xAxisTicksPositions=[],t.yLabelsCoords=[],t.yTitleCoords=[],t.barPadForNumericAxis=0,t.padHorizontal=0,t.xRange=0,t.yRange=[],t.zRange=0,t.dataPoints=0,t.xTickAmount=0}},{key:"globalVars",value:function(t){return{chartID:null,cuid:null,events:{beforeMount:[],mounted:[],updated:[],clicked:[],selection:[],dataPointSelection:[],zoomed:[],scrolled:[]},colors:[],clientX:null,clientY:null,fill:{colors:[]},stroke:{colors:[]},dataLabels:{style:{colors:[]}},radarPolygons:{fill:{colors:[]}},markers:{colors:[],size:t.markers.size,largestSize:0},animationEnded:!1,isTouchDevice:"ontouchstart"in window||navigator.msMaxTouchPoints,isDirty:!1,isExecCalled:!1,initialConfig:null,initialSeries:[],lastXAxis:[],lastYAxis:[],columnSeries:null,labels:[],timescaleLabels:[],noLabelsProvided:!1,allSeriesCollapsed:!1,collapsedSeries:[],collapsedSeriesIndices:[],ancillaryCollapsedSeries:[],ancillaryCollapsedSeriesIndices:[],risingSeries:[],dataFormatXNumeric:!1,capturedSeriesIndex:-1,capturedDataPointIndex:-1,selectedDataPoints:[],goldenPadding:35,invalidLogScale:!1,ignoreYAxisIndexes:[],yAxisSameScaleIndices:[],maxValsInArrayIndex:0,radialSize:0,selection:void 0,zoomEnabled:"zoom"===t.chart.toolbar.autoSelected&&t.chart.toolbar.tools.zoom&&t.chart.zoom.enabled,panEnabled:"pan"===t.chart.toolbar.autoSelected&&t.chart.toolbar.tools.pan,selectionEnabled:"selection"===t.chart.toolbar.autoSelected&&t.chart.toolbar.tools.selection,yaxis:null,mousedown:!1,lastClientPosition:{},visibleXRange:void 0,yValueDecimal:0,total:0,SVGNS:"http://www.w3.org/2000/svg",svgWidth:0,svgHeight:0,noData:!1,locale:{},dom:{},memory:{methodsToExec:[]},shouldAnimate:!0,skipLastTimelinelabel:!1,skipFirstTimelinelabel:!1,delayedElements:[],axisCharts:!0,isDataXYZ:!1,resized:!1,resizeTimer:null,comboCharts:!1,dataChanged:!1,previousPaths:[],allSeriesHasEqualX:!0,pointsArray:[],dataLabelsRects:[],lastDrawnDataLabelsIndexes:[],hasNullValues:!1,easing:null,zoomed:!1,gridWidth:0,gridHeight:0,rotateXLabels:!1,defaultLabels:!1,xLabelFormatter:void 0,yLabelFormatters:[],xaxisTooltipFormatter:void 0,ttKeyFormatter:void 0,ttVal:void 0,ttZFormatter:void 0,LINE_HEIGHT_RATIO:1.618,xAxisLabelsHeight:0,xAxisGroupLabelsHeight:0,xAxisLabelsWidth:0,yAxisLabelsWidth:0,scaleX:1,scaleY:1,translateX:0,translateY:0,translateYAxisX:[],yAxisWidths:[],translateXAxisY:0,translateXAxisX:0,tooltip:null}}},{key:"init",value:function(t){var e=this.globalVars(t);return this.initGlobalVars(e),e.initialConfig=y.extend({},t),e.initialSeries=y.clone(t.series),e.lastXAxis=y.clone(e.initialConfig.xaxis),e.lastYAxis=y.clone(e.initialConfig.yaxis),e}}]),t}(),O=function(){function t(e){n(this,t),this.opts=e}return h(t,[{key:"init",value:function(){var t=new H(this.opts).init({responsiveOverride:!1});return{config:t,globals:(new D).init(t)}}}]),t}(),N=function(){function t(e){n(this,t),this.ctx=e,this.w=e.w,this.opts=null,this.seriesIndex=0}return h(t,[{key:"clippedImgArea",value:function(t){var e=this.w,i=e.config,a=parseInt(e.globals.gridWidth,10),s=parseInt(e.globals.gridHeight,10),r=a>s?a:s,o=t.image,n=0,l=0;void 0===t.width&&void 0===t.height?void 0!==i.fill.image.width&&void 0!==i.fill.image.height?(n=i.fill.image.width+1,l=i.fill.image.height):(n=r+1,l=r):(n=t.width,l=t.height);var h=document.createElementNS(e.globals.SVGNS,"pattern");A.setAttrs(h,{id:t.patternID,patternUnits:t.patternUnits?t.patternUnits:"userSpaceOnUse",width:n+"px",height:l+"px"});var c=document.createElementNS(e.globals.SVGNS,"image");h.appendChild(c),c.setAttributeNS(window.SVG.xlink,"href",o),A.setAttrs(c,{x:0,y:0,preserveAspectRatio:"none",width:n+"px",height:l+"px"}),c.style.opacity=t.opacity,e.globals.dom.elDefs.node.appendChild(h)}},{key:"getSeriesIndex",value:function(t){var e=this.w,i=e.config.chart.type;return("bar"===i||"rangeBar"===i)&&e.config.plotOptions.bar.distributed||"heatmap"===i||"treemap"===i?this.seriesIndex=t.seriesNumber:this.seriesIndex=t.seriesNumber%e.globals.series.length,this.seriesIndex}},{key:"fillPath",value:function(t){var e=this.w;this.opts=t;var i,a,s,r=this.w.config;this.seriesIndex=this.getSeriesIndex(t);var o=this.getFillColors()[this.seriesIndex];void 0!==e.globals.seriesColors[this.seriesIndex]&&(o=e.globals.seriesColors[this.seriesIndex]),"function"==typeof o&&(o=o({seriesIndex:this.seriesIndex,dataPointIndex:t.dataPointIndex,value:t.value,w:e}));var n=t.fillType?t.fillType:this.getFillType(this.seriesIndex),l=Array.isArray(r.fill.opacity)?r.fill.opacity[this.seriesIndex]:r.fill.opacity;t.color&&(o=t.color),o||(o="#fff",console.warn("undefined color - ApexCharts"));var h=o;if(-1===o.indexOf("rgb")?o.length<9&&(h=y.hexToRgba(o,l)):o.indexOf("rgba")>-1&&(l=y.getOpacityFromRGBA(o)),t.opacity&&(l=t.opacity),"pattern"===n&&(a=this.handlePatternFill({fillConfig:t.fillConfig,patternFill:a,fillColor:o,fillOpacity:l,defaultColor:h})),"gradient"===n&&(s=this.handleGradientFill({fillConfig:t.fillConfig,fillColor:o,fillOpacity:l,i:this.seriesIndex})),"image"===n){var c=r.fill.image.src,d=t.patternID?t.patternID:"";this.clippedImgArea({opacity:l,image:Array.isArray(c)?t.seriesNumber-1&&(u=y.getOpacityFromRGBA(g));var p=void 0===o.gradient.opacityTo?i:Array.isArray(o.gradient.opacityTo)?o.gradient.opacityTo[s]:o.gradient.opacityTo;if(void 0===o.gradient.gradientToColors||0===o.gradient.gradientToColors.length)n="dark"===o.gradient.shade?c.shadeColor(-1*parseFloat(o.gradient.shadeIntensity),e.indexOf("rgb")>-1?y.rgb2hex(e):e):c.shadeColor(parseFloat(o.gradient.shadeIntensity),e.indexOf("rgb")>-1?y.rgb2hex(e):e);else if(o.gradient.gradientToColors[l.seriesNumber]){var f=o.gradient.gradientToColors[l.seriesNumber];n=f,f.indexOf("rgba")>-1&&(p=y.getOpacityFromRGBA(f))}else n=e;if(o.gradient.gradientFrom&&(g=o.gradient.gradientFrom),o.gradient.gradientTo&&(n=o.gradient.gradientTo),o.gradient.inverseColors){var x=g;g=n,n=x}return g.indexOf("rgb")>-1&&(g=y.rgb2hex(g)),n.indexOf("rgb")>-1&&(n=y.rgb2hex(n)),h.drawGradient(d,g,n,u,p,l.size,o.gradient.stops,o.gradient.colorStops,s)}}]),t}(),W=function(){function t(e,i){n(this,t),this.ctx=e,this.w=e.w}return h(t,[{key:"setGlobalMarkerSize",value:function(){var t=this.w;if(t.globals.markers.size=Array.isArray(t.config.markers.size)?t.config.markers.size:[t.config.markers.size],t.globals.markers.size.length>0){if(t.globals.markers.size.length4&&void 0!==arguments[4]&&arguments[4],o=this.w,n=e,l=t,h=null,c=new A(this.ctx),d=o.config.markers.discrete&&o.config.markers.discrete.length;if((o.globals.markers.size[e]>0||r||d)&&(h=c.group({class:r||d?"":"apexcharts-series-markers"})).attr("clip-path","url(#gridRectMarkerMask".concat(o.globals.cuid,")")),Array.isArray(l.x))for(var g=0;g0:o.config.markers.size>0)||r||d){y.isNumber(l.y[g])?p+=" w".concat(y.randomId()):p="apexcharts-nullpoint";var f=this.getMarkerConfig({cssClass:p,seriesIndex:e,dataPointIndex:u});o.config.series[n].data[u]&&(o.config.series[n].data[u].fillColor&&(f.pointFillColor=o.config.series[n].data[u].fillColor),o.config.series[n].data[u].strokeColor&&(f.pointStrokeColor=o.config.series[n].data[u].strokeColor)),a&&(f.pSize=a),(l.x[g]<0||l.x[g]>o.globals.gridWidth||l.y[g]<-o.globals.markers.largestSize||l.y[g]>o.globals.gridHeight+o.globals.markers.largestSize)&&(f.pSize=0),(s=c.drawMarker(l.x[g],l.y[g],f)).attr("rel",u),s.attr("j",u),s.attr("index",e),s.node.setAttribute("default-marker-size",f.pSize),new k(this.ctx).setSelectionFilter(s,e,u),this.addEvents(s),h&&h.add(s)}else void 0===o.globals.pointsArray[e]&&(o.globals.pointsArray[e]=[]),o.globals.pointsArray[e].push([l.x[g],l.y[g]])}return h}},{key:"getMarkerConfig",value:function(t){var e=t.cssClass,i=t.seriesIndex,a=t.dataPointIndex,s=void 0===a?null:a,r=t.finishRadius,o=void 0===r?null:r,n=this.w,l=this.getMarkerStyle(i),h=n.globals.markers.size[i],c=n.config.markers;return null!==s&&c.discrete.length&&c.discrete.map((function(t){t.seriesIndex===i&&t.dataPointIndex===s&&(l.pointStrokeColor=t.strokeColor,l.pointFillColor=t.fillColor,h=t.size,l.pointShape=t.shape)})),{pSize:null===o?h:o,pRadius:c.radius,width:Array.isArray(c.width)?c.width[i]:c.width,height:Array.isArray(c.height)?c.height[i]:c.height,pointStrokeWidth:Array.isArray(c.strokeWidth)?c.strokeWidth[i]:c.strokeWidth,pointStrokeColor:l.pointStrokeColor,pointFillColor:l.pointFillColor,shape:l.pointShape||(Array.isArray(c.shape)?c.shape[i]:c.shape),class:e,pointStrokeOpacity:Array.isArray(c.strokeOpacity)?c.strokeOpacity[i]:c.strokeOpacity,pointStrokeDashArray:Array.isArray(c.strokeDashArray)?c.strokeDashArray[i]:c.strokeDashArray,pointFillOpacity:Array.isArray(c.fillOpacity)?c.fillOpacity[i]:c.fillOpacity,seriesIndex:i}}},{key:"addEvents",value:function(t){var e=this.w,i=new A(this.ctx);t.node.addEventListener("mouseenter",i.pathMouseEnter.bind(this.ctx,t)),t.node.addEventListener("mouseleave",i.pathMouseLeave.bind(this.ctx,t)),t.node.addEventListener("mousedown",i.pathMouseDown.bind(this.ctx,t)),t.node.addEventListener("click",e.config.markers.onClick),t.node.addEventListener("dblclick",e.config.markers.onDblClick),t.node.addEventListener("touchstart",i.pathMouseDown.bind(this.ctx,t),{passive:!0})}},{key:"getMarkerStyle",value:function(t){var e=this.w,i=e.globals.markers.colors,a=e.config.markers.strokeColor||e.config.markers.strokeColors;return{pointStrokeColor:Array.isArray(a)?a[t]:a,pointFillColor:Array.isArray(i)?i[t]:i}}}]),t}(),B=function(){function t(e){n(this,t),this.ctx=e,this.w=e.w,this.initialAnim=this.w.config.chart.animations.enabled,this.dynamicAnim=this.initialAnim&&this.w.config.chart.animations.dynamicAnimation.enabled}return h(t,[{key:"draw",value:function(t,e,i){var a=this.w,s=new A(this.ctx),r=i.realIndex,o=i.pointsPos,n=i.zRatio,l=i.elParent,h=s.group({class:"apexcharts-series-markers apexcharts-series-".concat(a.config.chart.type)});if(h.attr("clip-path","url(#gridRectMarkerMask".concat(a.globals.cuid,")")),Array.isArray(o.x))for(var c=0;cf.maxBubbleRadius&&(p=f.maxBubbleRadius)}a.config.chart.animations.enabled||(u=p);var x=o.x[c],b=o.y[c];if(u=u||0,null!==b&&void 0!==a.globals.series[r][d]||(g=!1),g){var v=this.drawPoint(x,b,u,p,r,d,e);h.add(v)}l.add(h)}}},{key:"drawPoint",value:function(t,e,i,a,s,r,o){var n=this.w,l=s,h=new w(this.ctx),c=new k(this.ctx),d=new N(this.ctx),g=new W(this.ctx),u=new A(this.ctx),p=g.getMarkerConfig({cssClass:"apexcharts-marker",seriesIndex:l,dataPointIndex:r,finishRadius:"bubble"===n.config.chart.type||n.globals.comboCharts&&n.config.series[s]&&"bubble"===n.config.series[s].type?a:null});a=p.pSize;var f,x=d.fillPath({seriesNumber:s,dataPointIndex:r,color:p.pointFillColor,patternUnits:"objectBoundingBox",value:n.globals.series[s][o]});if("circle"===p.shape?f=u.drawCircle(i):"square"!==p.shape&&"rect"!==p.shape||(f=u.drawRect(0,0,p.width-p.pointStrokeWidth/2,p.height-p.pointStrokeWidth/2,p.pRadius)),n.config.series[l].data[r]&&n.config.series[l].data[r].fillColor&&(x=n.config.series[l].data[r].fillColor),f.attr({x:t-p.width/2-p.pointStrokeWidth/2,y:e-p.height/2-p.pointStrokeWidth/2,cx:t,cy:e,fill:x,"fill-opacity":p.pointFillOpacity,stroke:p.pointStrokeColor,r:a,"stroke-width":p.pointStrokeWidth,"stroke-dasharray":p.pointStrokeDashArray,"stroke-opacity":p.pointStrokeOpacity}),n.config.chart.dropShadow.enabled){var b=n.config.chart.dropShadow;c.dropShadow(f,b,s)}if(!this.initialAnim||n.globals.dataChanged||n.globals.resized)n.globals.animationEnded=!0;else{var v=n.config.chart.animations.speed;h.animateMarker(f,0,"circle"===p.shape?a:{width:p.width,height:p.height},v,n.globals.easing,(function(){window.setTimeout((function(){h.animationCompleted(f)}),100)}))}if(n.globals.dataChanged&&"circle"===p.shape)if(this.dynamicAnim){var m,y,S,C,L=n.config.chart.animations.dynamicAnimation.speed;null!=(C=n.globals.previousPaths[s]&&n.globals.previousPaths[s][o])&&(m=C.x,y=C.y,S=void 0!==C.r?C.r:a);for(var P=0;Pn.globals.gridHeight+d&&(e=n.globals.gridHeight+d/2),void 0===n.globals.dataLabelsRects[a]&&(n.globals.dataLabelsRects[a]=[]),n.globals.dataLabelsRects[a].push({x:t,y:e,width:c,height:d});var g=n.globals.dataLabelsRects[a].length-2,u=void 0!==n.globals.lastDrawnDataLabelsIndexes[a]?n.globals.lastDrawnDataLabelsIndexes[a][n.globals.lastDrawnDataLabelsIndexes[a].length-1]:0;if(void 0!==n.globals.dataLabelsRects[a][g]){var p=n.globals.dataLabelsRects[a][u];(t>p.x+p.width||e>p.y+p.height||e+de.globals.gridWidth+f.textRects.width+30)&&(n="");var x=e.globals.dataLabels.style.colors[r];(("bar"===e.config.chart.type||"rangeBar"===e.config.chart.type)&&e.config.plotOptions.bar.distributed||e.config.dataLabels.distributed)&&(x=e.globals.dataLabels.style.colors[o]),"function"==typeof x&&(x=x({series:e.globals.series,seriesIndex:r,dataPointIndex:o,w:e})),g&&(x=g);var b=d.offsetX,v=d.offsetY;if("bar"!==e.config.chart.type&&"rangeBar"!==e.config.chart.type||(b=0,v=0),f.drawnextLabel){var m=i.drawText({width:100,height:parseInt(d.style.fontSize,10),x:a+b,y:s+v,foreColor:x,textAnchor:l||d.textAnchor,text:n,fontSize:h||d.style.fontSize,fontFamily:d.style.fontFamily,fontWeight:d.style.fontWeight||"normal"});if(m.attr({class:"apexcharts-datalabel",cx:a,cy:s}),d.dropShadow.enabled){var y=d.dropShadow;new k(this.ctx).dropShadow(m,y)}c.add(m),void 0===e.globals.lastDrawnDataLabelsIndexes[r]&&(e.globals.lastDrawnDataLabelsIndexes[r]=[]),e.globals.lastDrawnDataLabelsIndexes[r].push(o)}}}},{key:"addBackgroundToDataLabel",value:function(t,e){var i=this.w,a=i.config.dataLabels.background,s=a.padding,r=a.padding/2,o=e.width,n=e.height,l=new A(this.ctx).drawRect(e.x-s,e.y-r/2,o+2*s,n+r,a.borderRadius,"transparent"===i.config.chart.background?"#fff":i.config.chart.background,a.opacity,a.borderWidth,a.borderColor);return a.dropShadow.enabled&&new k(this.ctx).dropShadow(l,a.dropShadow),l}},{key:"dataLabelsBackground",value:function(){var t=this.w;if("bubble"!==t.config.chart.type)for(var e=t.globals.dom.baseEl.querySelectorAll(".apexcharts-datalabels text"),i=0;i0&&void 0!==arguments[0])||arguments[0],e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],a=this.w,s=y.clone(a.globals.initialSeries);a.globals.previousPaths=[],i?(a.globals.collapsedSeries=[],a.globals.ancillaryCollapsedSeries=[],a.globals.collapsedSeriesIndices=[],a.globals.ancillaryCollapsedSeriesIndices=[]):s=this.emptyCollapsedSeries(s),a.config.series=s,t&&(e&&(a.globals.zoomed=!1,this.ctx.updateHelpers.revertDefaultAxisMinMax()),this.ctx.updateHelpers._updateSeries(s,a.config.chart.animations.dynamicAnimation.enabled))}},{key:"emptyCollapsedSeries",value:function(t){for(var e=this.w,i=0;i-1&&(t[i].data=[]);return t}},{key:"toggleSeriesOnHover",value:function(t,e){var i=this.w;e||(e=t.target);var a=i.globals.dom.baseEl.querySelectorAll(".apexcharts-series, .apexcharts-datalabels");if("mousemove"===t.type){var s=parseInt(e.getAttribute("rel"),10)-1,r=null,o=null;i.globals.axisCharts||"radialBar"===i.config.chart.type?i.globals.axisCharts?(r=i.globals.dom.baseEl.querySelector(".apexcharts-series[data\\:realIndex='".concat(s,"']")),o=i.globals.dom.baseEl.querySelector(".apexcharts-datalabels[data\\:realIndex='".concat(s,"']"))):r=i.globals.dom.baseEl.querySelector(".apexcharts-series[rel='".concat(s+1,"']")):r=i.globals.dom.baseEl.querySelector(".apexcharts-series[rel='".concat(s+1,"'] path"));for(var n=0;n=t.from&&a<=t.to&&s[e].classList.remove(i.legendInactiveClass)}}(a.config.plotOptions.heatmap.colorScale.ranges[o])}else"mouseout"===t.type&&r("remove")}},{key:"getActiveConfigSeriesIndex",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"asc",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],i=this.w,a=0;if(i.config.series.length>1)for(var s=i.config.series.map((function(t,a){return t.data&&t.data.length>0&&-1===i.globals.collapsedSeriesIndices.indexOf(a)&&(!i.globals.comboCharts||0===e.length||e.length&&e.indexOf(i.config.series[a].type)>-1)?a:-1})),r="asc"===t?0:s.length-1;"asc"===t?r=0;"asc"===t?r++:r--)if(-1!==s[r]){a=s[r];break}return a}},{key:"getBarSeriesIndices",value:function(){return this.w.globals.comboCharts?this.w.config.series.map((function(t,e){return"bar"===t.type||"column"===t.type?e:-1})).filter((function(t){return-1!==t})):this.w.config.series.map((function(t,e){return e}))}},{key:"getPreviousPaths",value:function(){var t=this.w;function e(e,i,a){for(var s=e[i].childNodes,r={type:a,paths:[],realIndex:e[i].getAttribute("data:realIndex")},o=0;o0)for(var a=function(e){for(var i=t.globals.dom.baseEl.querySelectorAll(".apexcharts-".concat(t.config.chart.type," .apexcharts-series[data\\:realIndex='").concat(e,"'] rect")),a=[],s=function(t){var e=function(e){return i[t].getAttribute(e)},s={x:parseFloat(e("x")),y:parseFloat(e("y")),width:parseFloat(e("width")),height:parseFloat(e("height"))};a.push({rect:s,color:i[t].getAttribute("color")})},r=0;r0)for(var a=0;a0?t:[]}));return t}}]),t}(),j=function(){function t(e){n(this,t),this.ctx=e,this.w=e.w,this.twoDSeries=[],this.threeDSeries=[],this.twoDSeriesX=[],this.seriesGoals=[],this.coreUtils=new S(this.ctx)}return h(t,[{key:"isMultiFormat",value:function(){return this.isFormatXY()||this.isFormat2DArray()}},{key:"isFormatXY",value:function(){var t=this.w.config.series.slice(),e=new V(this.ctx);if(this.activeSeriesIndex=e.getActiveConfigSeriesIndex(),void 0!==t[this.activeSeriesIndex].data&&t[this.activeSeriesIndex].data.length>0&&null!==t[this.activeSeriesIndex].data[0]&&void 0!==t[this.activeSeriesIndex].data[0].x&&null!==t[this.activeSeriesIndex].data[0])return!0}},{key:"isFormat2DArray",value:function(){var t=this.w.config.series.slice(),e=new V(this.ctx);if(this.activeSeriesIndex=e.getActiveConfigSeriesIndex(),void 0!==t[this.activeSeriesIndex].data&&t[this.activeSeriesIndex].data.length>0&&void 0!==t[this.activeSeriesIndex].data[0]&&null!==t[this.activeSeriesIndex].data[0]&&t[this.activeSeriesIndex].data[0].constructor===Array)return!0}},{key:"handleFormat2DArray",value:function(t,e){for(var i=this.w.config,a=this.w.globals,s="boxPlot"===i.chart.type||"boxPlot"===i.series[e].type,r=0;r=5?this.twoDSeries.push(y.parseNumber(t[e].data[r][4])):this.twoDSeries.push(y.parseNumber(t[e].data[r][1])),a.dataFormatXNumeric=!0),"datetime"===i.xaxis.type){var o=new Date(t[e].data[r][0]);o=new Date(o).getTime(),this.twoDSeriesX.push(o)}else this.twoDSeriesX.push(t[e].data[r][0]);for(var n=0;n-1&&(r=this.activeSeriesIndex);for(var o=0;o1&&void 0!==arguments[1]?arguments[1]:this.ctx,s=this.w.config,r=this.w.globals,o=new X(a),n=s.labels.length>0?s.labels.slice():s.xaxis.categories.slice();if(r.isRangeBar="rangeBar"===s.chart.type&&r.isBarHorizontal,r.hasXaxisGroups="category"===s.xaxis.type&&s.xaxis.group.groups.length>0,r.hasXaxisGroups&&(r.groups=s.xaxis.group.groups),r.hasSeriesGroups=null===(e=t[0])||void 0===e?void 0:e.group,r.hasSeriesGroups){var l=[],h=b(new Set(t.map((function(t){return t.group}))));t.forEach((function(t,e){var i=h.indexOf(t.group);l[i]||(l[i]=[]),l[i].push(t.name)})),r.seriesGroups=l}for(var c=function(){for(var t=0;t0&&(this.twoDSeriesX=n,r.seriesX.push(this.twoDSeriesX))),r.labels.push(this.twoDSeriesX);var g=t[d].data.map((function(t){return y.parseNumber(t)}));r.series.push(g)}r.seriesZ.push(this.threeDSeries),void 0!==t[d].name?r.seriesNames.push(t[d].name):r.seriesNames.push("series-"+parseInt(d+1,10)),void 0!==t[d].color?r.seriesColors.push(t[d].color):r.seriesColors.push(void 0)}return this.w}},{key:"parseDataNonAxisCharts",value:function(t){var e=this.w.globals,i=this.w.config;e.series=t.slice(),e.seriesNames=i.labels.slice();for(var a=0;a0?i.labels=e.xaxis.categories:e.labels.length>0?i.labels=e.labels.slice():this.fallbackToCategory?(i.labels=i.labels[0],i.seriesRange.length&&(i.seriesRange.map((function(t){t.forEach((function(t){i.labels.indexOf(t.x)<0&&t.x&&i.labels.push(t.x)}))})),i.labels=Array.from(new Set(i.labels.map(JSON.stringify)),JSON.parse)),e.xaxis.convertedCatToNumeric&&(new R(e).convertCatToNumericXaxis(e,this.ctx,i.seriesX[0]),this._generateExternalLabels(t))):this._generateExternalLabels(t)}},{key:"_generateExternalLabels",value:function(t){var e=this.w.globals,i=this.w.config,a=[];if(e.axisCharts){if(e.series.length>0)if(this.isFormatXY())for(var s=i.series.map((function(t,e){return t.data.filter((function(t,e,i){return i.findIndex((function(e){return e.x===t.x}))===e}))})),r=s.reduce((function(t,e,i,a){return a[t].length>e.length?t:i}),0),o=0;o4&&void 0!==arguments[4]?arguments[4]:[],n=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"12px",l=!(arguments.length>6&&void 0!==arguments[6])||arguments[6],h=this.w,c=void 0===t[a]?"":t[a],d=c,g=h.globals.xLabelFormatter,u=h.config.xaxis.labels.formatter,p=!1,f=new E(this.ctx),x=c;l&&(d=f.xLabelFormat(g,c,x,{i:a,dateFormatter:new X(this.ctx).formatDate,w:h}),void 0!==u&&(d=u(c,t[a],{i:a,dateFormatter:new X(this.ctx).formatDate,w:h}))),e.length>0?(s=e[a].unit,r=null,e.forEach((function(t){"month"===t.unit?r="year":"day"===t.unit?r="month":"hour"===t.unit?r="day":"minute"===t.unit&&(r="hour")})),p=r===s,i=e[a].position,d=e[a].value):"datetime"===h.config.xaxis.type&&void 0===u&&(d=""),void 0===d&&(d=""),d=Array.isArray(d)?d:d.toString();var b=new A(this.ctx),v={};v=h.globals.rotateXLabels&&l?b.getTextRects(d,parseInt(n,10),null,"rotate(".concat(h.config.xaxis.labels.rotate," 0 0)"),!1):b.getTextRects(d,parseInt(n,10));var m=!h.config.xaxis.labels.showDuplicates&&this.ctx.timeScale;return!Array.isArray(d)&&(0===d.indexOf("NaN")||0===d.toLowerCase().indexOf("invalid")||d.toLowerCase().indexOf("infinity")>=0||o.indexOf(d)>=0&&m)&&(d=""),{x:i,text:d,textRect:v,isBold:p}}},{key:"checkLabelBasedOnTickamount",value:function(t,e,i){var a=this.w,s=a.config.xaxis.tickAmount;return"dataPoints"===s&&(s=Math.round(a.globals.gridWidth/120)),s>i||t%Math.round(i/(s+1))==0||(e.text=""),e}},{key:"checkForOverflowingLabels",value:function(t,e,i,a,s){var r=this.w;if(0===t&&r.globals.skipFirstTimelinelabel&&(e.text=""),t===i-1&&r.globals.skipLastTimelinelabel&&(e.text=""),r.config.xaxis.labels.hideOverlappingLabels&&a.length>0){var o=s[s.length-1];e.x0){!0===n.config.yaxis[s].opposite&&(t+=a.width);for(var c=e;c>=0;c--){var d=h+e/10+n.config.yaxis[s].labels.offsetY-1;n.globals.isBarHorizontal&&(d=r*c),"heatmap"===n.config.chart.type&&(d+=r/2);var g=l.drawLine(t+i.offsetX-a.width+a.offsetX,d+a.offsetY,t+i.offsetX+a.offsetX,d+a.offsetY,a.color);o.add(g),h+=r}}}}]),t}(),U=function(){function t(e){n(this,t),this.ctx=e,this.w=e.w}return h(t,[{key:"scaleSvgNode",value:function(t,e){var i=parseFloat(t.getAttributeNS(null,"width")),a=parseFloat(t.getAttributeNS(null,"height"));t.setAttributeNS(null,"width",i*e),t.setAttributeNS(null,"height",a*e),t.setAttributeNS(null,"viewBox","0 0 "+i+" "+a)}},{key:"fixSvgStringForIe11",value:function(t){if(!y.isIE11())return t.replace(/ /g," ");var e=0,i=t.replace(/xmlns="http:\/\/www.w3.org\/2000\/svg"/g,(function(t){return 2===++e?'xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svgjs="http://svgjs.dev"':t}));return(i=i.replace(/xmlns:NS\d+=""/g,"")).replace(/NS\d+:(\w+:\w+=")/g,"$1")}},{key:"getSvgString",value:function(t){null==t&&(t=1);var e=this.w.globals.dom.Paper.svg();if(1!==t){var i=this.w.globals.dom.Paper.node.cloneNode(!0);this.scaleSvgNode(i,t),e=(new XMLSerializer).serializeToString(i)}return this.fixSvgStringForIe11(e)}},{key:"cleanup",value:function(){var t=this.w,e=t.globals.dom.baseEl.getElementsByClassName("apexcharts-xcrosshairs"),i=t.globals.dom.baseEl.getElementsByClassName("apexcharts-ycrosshairs"),a=t.globals.dom.baseEl.querySelectorAll(".apexcharts-zoom-rect, .apexcharts-selection-rect");Array.prototype.forEach.call(a,(function(t){t.setAttribute("width",0)})),e&&e[0]&&(e[0].setAttribute("x",-500),e[0].setAttribute("x1",-500),e[0].setAttribute("x2",-500)),i&&i[0]&&(i[0].setAttribute("y",-100),i[0].setAttribute("y1",-100),i[0].setAttribute("y2",-100))}},{key:"svgUrl",value:function(){this.cleanup();var t=this.getSvgString(),e=new Blob([t],{type:"image/svg+xml;charset=utf-8"});return URL.createObjectURL(e)}},{key:"dataURI",value:function(t){var e=this;return new Promise((function(i){var a=e.w,s=t?t.scale||t.width/a.globals.svgWidth:1;e.cleanup();var r=document.createElement("canvas");r.width=a.globals.svgWidth*s,r.height=parseInt(a.globals.dom.elWrap.style.height,10)*s;var o="transparent"===a.config.chart.background?"#fff":a.config.chart.background,n=r.getContext("2d");n.fillStyle=o,n.fillRect(0,0,r.width*s,r.height*s);var l=e.getSvgString(s);if(window.canvg&&y.isIE11()){var h=window.canvg.Canvg.fromString(n,l,{ignoreClear:!0,ignoreDimensions:!0});h.start();var c=r.msToBlob();h.stop(),i({blob:c})}else{var d="data:image/svg+xml,"+encodeURIComponent(l),g=new Image;g.crossOrigin="anonymous",g.onload=function(){if(n.drawImage(g,0,0),r.msToBlob){var t=r.msToBlob();i({blob:t})}else{var e=r.toDataURL("image/png");i({imgURI:e})}},g.src=d}}))}},{key:"exportToSVG",value:function(){this.triggerDownload(this.svgUrl(),this.w.config.chart.toolbar.export.svg.filename,".svg")}},{key:"exportToPng",value:function(){var t=this;this.dataURI().then((function(e){var i=e.imgURI,a=e.blob;a?navigator.msSaveOrOpenBlob(a,t.w.globals.chartID+".png"):t.triggerDownload(i,t.w.config.chart.toolbar.export.png.filename,".png")}))}},{key:"exportToCSV",value:function(t){var e=this,i=t.series,a=t.fileName,s=t.columnDelimiter,r=void 0===s?",":s,o=t.lineDelimiter,n=void 0===o?"\n":o,l=this.w;i||(i=l.config.series);var h,c,d=[],g=[],u="",p=l.globals.series.map((function(t,e){return-1===l.globals.collapsedSeriesIndices.indexOf(e)?t:[]})),f=function(t){return"datetime"===l.config.xaxis.type&&String(t).length>=10},x=Math.max.apply(Math,b(i.map((function(t){return t.data?t.data.length:0})))),v=new j(this.ctx),m=new _(this.ctx),w=function(t){var i="";if(l.globals.axisCharts){if("category"===l.config.xaxis.type||l.config.xaxis.convertedCatToNumeric)if(l.globals.isBarHorizontal){var a=l.globals.yLabelFormatters[0],s=new V(e.ctx).getActiveConfigSeriesIndex();i=a(l.globals.labels[t],{seriesIndex:s,dataPointIndex:t,w:l})}else i=m.getLabel(l.globals.labels,l.globals.timescaleLabels,0,t).text;"datetime"===l.config.xaxis.type&&(l.config.xaxis.categories.length?i=l.config.xaxis.categories[t]:l.config.labels.length&&(i=l.config.labels[t]))}else i=l.config.labels[t];return Array.isArray(i)&&(i=i.join(" ")),y.isNumber(i)?i:i.split(r).join("")},k=function(t,e){if(d.length&&0===e&&g.push(d.join(r)),t.data){t.data=t.data.length&&t.data||b(Array(x)).map((function(){return""}));for(var a=0;a0&&!a.globals.isBarHorizontal&&(this.xaxisLabels=a.globals.timescaleLabels.slice()),a.config.xaxis.overwriteCategories&&(this.xaxisLabels=a.config.xaxis.overwriteCategories),this.drawnLabels=[],this.drawnLabelsRects=[],"top"===a.config.xaxis.position?this.offY=0:this.offY=a.globals.gridHeight+1,this.offY=this.offY+a.config.xaxis.axisBorder.offsetY,this.isCategoryBarHorizontal="bar"===a.config.chart.type&&a.config.plotOptions.bar.horizontal,this.xaxisFontSize=a.config.xaxis.labels.style.fontSize,this.xaxisFontFamily=a.config.xaxis.labels.style.fontFamily,this.xaxisForeColors=a.config.xaxis.labels.style.colors,this.xaxisBorderWidth=a.config.xaxis.axisBorder.width,this.isCategoryBarHorizontal&&(this.xaxisBorderWidth=a.config.yaxis[0].axisBorder.width.toString()),this.xaxisBorderWidth.indexOf("%")>-1?this.xaxisBorderWidth=a.globals.gridWidth*parseInt(this.xaxisBorderWidth,10)/100:this.xaxisBorderWidth=parseInt(this.xaxisBorderWidth,10),this.xaxisBorderHeight=a.config.xaxis.axisBorder.height,this.yaxis=a.config.yaxis[0]}return h(t,[{key:"drawXaxis",value:function(){var t=this.w,e=new A(this.ctx),i=e.group({class:"apexcharts-xaxis",transform:"translate(".concat(t.config.xaxis.offsetX,", ").concat(t.config.xaxis.offsetY,")")}),a=e.group({class:"apexcharts-xaxis-texts-g",transform:"translate(".concat(t.globals.translateXAxisX,", ").concat(t.globals.translateXAxisY,")")});i.add(a);for(var s=[],r=0;r6&&void 0!==arguments[6]?arguments[6]:{},h=[],c=[],d=this.w,g=l.xaxisFontSize||this.xaxisFontSize,u=l.xaxisFontFamily||this.xaxisFontFamily,p=l.xaxisForeColors||this.xaxisForeColors,f=l.fontWeight||d.config.xaxis.labels.style.fontWeight,x=l.cssClass||d.config.xaxis.labels.style.cssClass,b=d.globals.padHorizontal,v=a.length,m="category"===d.config.xaxis.type?d.globals.dataPoints:v;if(0===m&&v>m&&(m=v),s){var y=m>1?m-1:m;o=d.globals.gridWidth/Math.min(y,v-1),b=b+r(0,o)/2+d.config.xaxis.labels.offsetX}else o=d.globals.gridWidth/m,b=b+r(0,o)+d.config.xaxis.labels.offsetX;for(var w=function(s){var l=b-r(s,o)/2+d.config.xaxis.labels.offsetX;0===s&&1===v&&o/2===b&&1===m&&(l=d.globals.gridWidth/2);var y=n.axesUtils.getLabel(a,d.globals.timescaleLabels,l,s,h,g,t),w=28;if(d.globals.rotateXLabels&&t&&(w=22),d.config.xaxis.title.text&&"top"===d.config.xaxis.position&&(w+=parseFloat(d.config.xaxis.title.style.fontSize)+2),t||(w=w+parseFloat(g)+(d.globals.xAxisLabelsHeight-d.globals.xAxisGroupLabelsHeight)+(d.globals.rotateXLabels?10:0)),y=void 0!==d.config.xaxis.tickAmount&&"dataPoints"!==d.config.xaxis.tickAmount&&"datetime"!==d.config.xaxis.type?n.axesUtils.checkLabelBasedOnTickamount(s,y,v):n.axesUtils.checkForOverflowingLabels(s,y,v,h,c),d.config.xaxis.labels.show){var k=e.drawText({x:y.x,y:n.offY+d.config.xaxis.labels.offsetY+w-("top"===d.config.xaxis.position?d.globals.xAxisHeight+d.config.xaxis.axisTicks.height-2:0),text:y.text,textAnchor:"middle",fontWeight:y.isBold?600:f,fontSize:g,fontFamily:u,foreColor:Array.isArray(p)?t&&d.config.xaxis.convertedCatToNumeric?p[d.globals.minX+s-1]:p[s]:p,isPlainText:!1,cssClass:(t?"apexcharts-xaxis-label ":"apexcharts-xaxis-group-label ")+x});if(i.add(k),k.on("click",(function(t){if("function"==typeof d.config.chart.events.xAxisLabelClick){var e=Object.assign({},d,{labelIndex:s});d.config.chart.events.xAxisLabelClick(t,n.ctx,e)}})),t){var A=document.createElementNS(d.globals.SVGNS,"title");A.textContent=Array.isArray(y.text)?y.text.join(" "):y.text,k.node.appendChild(A),""!==y.text&&(h.push(y.text),c.push(y))}}sa.globals.gridWidth)){var r=this.offY+a.config.xaxis.axisTicks.offsetY;if(e=e+r+a.config.xaxis.axisTicks.height,"top"===a.config.xaxis.position&&(e=r-a.config.xaxis.axisTicks.height),a.config.xaxis.axisTicks.show){var o=new A(this.ctx).drawLine(t+a.config.xaxis.axisTicks.offsetX,r+a.config.xaxis.offsetY,s+a.config.xaxis.axisTicks.offsetX,e+a.config.xaxis.offsetY,a.config.xaxis.axisTicks.color);i.add(o),o.node.classList.add("apexcharts-xaxis-tick")}}}},{key:"getXAxisTicksPositions",value:function(){var t=this.w,e=[],i=this.xaxisLabels.length,a=t.globals.padHorizontal;if(t.globals.timescaleLabels.length>0)for(var s=0;s0){var h=s[s.length-1].getBBox(),c=s[0].getBBox();h.x<-20&&s[s.length-1].parentNode.removeChild(s[s.length-1]),c.x+c.width>t.globals.gridWidth&&!t.globals.isBarHorizontal&&s[0].parentNode.removeChild(s[0]);for(var d=0;d0&&(this.xaxisLabels=i.globals.timescaleLabels.slice())}return h(t,[{key:"drawGridArea",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,e=this.w,i=new A(this.ctx);null===t&&(t=i.group({class:"apexcharts-grid"}));var a=i.drawLine(e.globals.padHorizontal,1,e.globals.padHorizontal,e.globals.gridHeight,"transparent"),s=i.drawLine(e.globals.padHorizontal,e.globals.gridHeight,e.globals.gridWidth,e.globals.gridHeight,"transparent");return t.add(s),t.add(a),t}},{key:"drawGrid",value:function(){var t=null;return this.w.globals.axisCharts&&(t=this.renderGrid(),this.drawGridArea(t.el)),t}},{key:"createGridMask",value:function(){var t=this.w,e=t.globals,i=new A(this.ctx),a=Array.isArray(t.config.stroke.width)?0:t.config.stroke.width;if(Array.isArray(t.config.stroke.width)){var s=0;t.config.stroke.width.forEach((function(t){s=Math.max(s,t)})),a=s}e.dom.elGridRectMask=document.createElementNS(e.SVGNS,"clipPath"),e.dom.elGridRectMask.setAttribute("id","gridRectMask".concat(e.cuid)),e.dom.elGridRectMarkerMask=document.createElementNS(e.SVGNS,"clipPath"),e.dom.elGridRectMarkerMask.setAttribute("id","gridRectMarkerMask".concat(e.cuid)),e.dom.elForecastMask=document.createElementNS(e.SVGNS,"clipPath"),e.dom.elForecastMask.setAttribute("id","forecastMask".concat(e.cuid)),e.dom.elNonForecastMask=document.createElementNS(e.SVGNS,"clipPath"),e.dom.elNonForecastMask.setAttribute("id","nonForecastMask".concat(e.cuid));var r=t.config.chart.type,o=0,n=0;("bar"===r||"rangeBar"===r||"candlestick"===r||"boxPlot"===r||t.globals.comboBarCount>0)&&t.globals.isXNumeric&&!t.globals.isBarHorizontal&&(o=t.config.grid.padding.left,n=t.config.grid.padding.right,e.barPadForNumericAxis>o&&(o=e.barPadForNumericAxis,n=e.barPadForNumericAxis)),e.dom.elGridRect=i.drawRect(-a-o-2,2*-a-2,e.gridWidth+a+n+o+4,e.gridHeight+4*a+4,0,"#fff");var l=t.globals.markers.largestSize+1;e.dom.elGridRectMarker=i.drawRect(2*-l,2*-l,e.gridWidth+4*l,e.gridHeight+4*l,0,"#fff"),e.dom.elGridRectMask.appendChild(e.dom.elGridRect.node),e.dom.elGridRectMarkerMask.appendChild(e.dom.elGridRectMarker.node);var h=e.dom.baseEl.querySelector("defs");h.appendChild(e.dom.elGridRectMask),h.appendChild(e.dom.elForecastMask),h.appendChild(e.dom.elNonForecastMask),h.appendChild(e.dom.elGridRectMarkerMask)}},{key:"_drawGridLines",value:function(t){var e=t.i,i=t.x1,a=t.y1,s=t.x2,r=t.y2,o=t.xCount,n=t.parent,l=this.w;if(!(0===e&&l.globals.skipFirstTimelinelabel||e===o-1&&l.globals.skipLastTimelinelabel&&!l.config.xaxis.labels.formatter||"radar"===l.config.chart.type)){l.config.grid.xaxis.lines.show&&this._drawGridLine({i:e,x1:i,y1:a,x2:s,y2:r,xCount:o,parent:n});var h=0;if(l.globals.hasXaxisGroups&&"between"===l.config.xaxis.tickPlacement){var c=l.globals.groups;if(c){for(var d=0,g=0;d2));n++);!a.globals.isBarHorizontal||this.isRangeBar?(r=this.xaxisLabels.length,this.isRangeBar&&(r--,o=a.globals.labels.length,a.config.xaxis.tickAmount&&a.config.xaxis.labels.formatter&&(r=a.config.xaxis.tickAmount),(null===(t=a.globals.yAxisScale)||void 0===t||null===(e=t[0])||void 0===e||null===(i=e.result)||void 0===i?void 0:i.length)>0&&"datetime"!==a.config.xaxis.type&&(r=a.globals.yAxisScale[0].result.length-1)),this._drawXYLines({xCount:r,tickAmount:o})):(r=o,o=a.globals.xTickAmount,this._drawInvertedXYLines({xCount:r,tickAmount:o}));return this.drawGridBands(r,o),{el:this.elg,elGridBorders:this.elGridBorders,xAxisTickWidth:a.globals.gridWidth/r}}},{key:"drawGridBands",value:function(t,e){var i=this.w;if(void 0!==i.config.grid.row.colors&&i.config.grid.row.colors.length>0)for(var a=0,s=i.globals.gridHeight/e,r=i.globals.gridWidth,o=0,n=0;o=i.config.grid.row.colors.length&&(n=0),this._drawGridBandRect({c:n,x1:0,y1:a,x2:r,y2:s,type:"row"}),a+=i.globals.gridHeight/e;if(void 0!==i.config.grid.column.colors&&i.config.grid.column.colors.length>0)for(var l=i.globals.isBarHorizontal||"on"!==i.config.xaxis.tickPlacement||"category"!==i.config.xaxis.type&&!i.config.xaxis.convertedCatToNumeric?t:t-1,h=i.globals.padHorizontal,c=i.globals.padHorizontal+i.globals.gridWidth/l,d=i.globals.gridHeight,g=0,u=0;g=i.config.grid.column.colors.length&&(u=0),this._drawGridBandRect({c:u,x1:h,y1:0,x2:c,y2:d,type:"column"}),h+=i.globals.gridWidth/l}}]),t}(),$=function(){function t(e){n(this,t),this.ctx=e,this.w=e.w}return h(t,[{key:"niceScale",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:5,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,s=arguments.length>4?arguments[4]:void 0,r=this.w,o=Math.abs(e-t);if("dataPoints"===(i=this._adjustTicksForSmallRange(i,a,o))&&(i=r.globals.dataPoints-1),t===Number.MIN_VALUE&&0===e||!y.isNumber(t)&&!y.isNumber(e)||t===Number.MIN_VALUE&&e===-Number.MAX_VALUE)return t=0,e=i,this.linearScale(t,e,i,a,r.config.yaxis[a].stepSize);t>e?(console.warn("axis.min cannot be greater than axis.max"),e=t+.1):t===e&&(t=0===t?0:t-.5,e=0===e?2:e+.5);var n=[];o<1&&s&&("candlestick"===r.config.chart.type||"candlestick"===r.config.series[a].type||"boxPlot"===r.config.chart.type||"boxPlot"===r.config.series[a].type||r.globals.isRangeData)&&(e*=1.01);var l=i+1;l<2?l=2:l>2&&(l-=2);var h=o/l,c=Math.floor(y.log10(h)),d=Math.pow(10,c),g=Math.round(h/d);g<1&&(g=1);var u=g*d;r.config.yaxis[a].stepSize&&(u=r.config.yaxis[a].stepSize),r.globals.isBarHorizontal&&r.config.xaxis.stepSize&&"datetime"!==r.config.xaxis.type&&(u=r.config.xaxis.stepSize);var p=u*Math.floor(t/u),f=u*Math.ceil(e/u),x=p;if(s&&o>2){for(;n.push(y.stripNumber(x,7)),!((x+=u)>f););return{result:n,niceMin:n[0],niceMax:n[n.length-1]}}var b=t;(n=[]).push(y.stripNumber(b,7));for(var v=Math.abs(e-t)/i,m=0;m<=i;m++)b+=v,n.push(b);return n[n.length-2]>=e&&n.pop(),{result:n,niceMin:n[0],niceMax:n[n.length-1]}}},{key:"linearScale",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:5,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:void 0,r=Math.abs(e-t);"dataPoints"===(i=this._adjustTicksForSmallRange(i,a,r))&&(i=this.w.globals.dataPoints-1),s||(s=r/i),i===Number.MAX_VALUE&&(i=5,s=1);for(var o=[],n=t;i>=0;)o.push(n),n+=s,i-=1;return{result:o,niceMin:o[0],niceMax:o[o.length-1]}}},{key:"logarithmicScaleNice",value:function(t,e,i){e<=0&&(e=Math.max(t,i)),t<=0&&(t=Math.min(e,i));for(var a=[],s=Math.ceil(Math.log(e)/Math.log(i)+1),r=Math.floor(Math.log(t)/Math.log(i));r5)a.allSeriesCollapsed=!1,a.yAxisScale[t]=this.logarithmicScale(e,i,r.logBase),a.yAxisScale[t]=r.forceNiceScale?this.logarithmicScaleNice(e,i,r.logBase):this.logarithmicScale(e,i,r.logBase);else if(i!==-Number.MAX_VALUE&&y.isNumber(i))if(a.allSeriesCollapsed=!1,void 0===r.min&&void 0===r.max||r.forceNiceScale){var n=void 0===s.yaxis[t].max&&void 0===s.yaxis[t].min||s.yaxis[t].forceNiceScale;a.yAxisScale[t]=this.niceScale(e,i,r.tickAmount?r.tickAmount:o<5&&o>1?o+1:5,t,n)}else a.yAxisScale[t]=this.linearScale(e,i,r.tickAmount,t,s.yaxis[t].stepSize);else a.yAxisScale[t]=this.linearScale(0,5,5,t,s.yaxis[t].stepSize)}},{key:"setXScale",value:function(t,e){var i=this.w,a=i.globals,s=Math.abs(e-t);return e!==-Number.MAX_VALUE&&y.isNumber(e)?a.xAxisScale=this.linearScale(t,e,i.config.xaxis.tickAmount?i.config.xaxis.tickAmount:s<5&&s>1?s+1:5,0,i.config.xaxis.stepSize):a.xAxisScale=this.linearScale(0,5,5),a.xAxisScale}},{key:"setMultipleYScales",value:function(){var t=this,e=this.w.globals,i=this.w.config,a=e.minYArr.concat([]),s=e.maxYArr.concat([]),r=[];i.yaxis.forEach((function(e,o){var n=o;i.series.forEach((function(t,i){t.name===e.seriesName&&(n=i,o!==i?r.push({index:i,similarIndex:o,alreadyExists:!0}):r.push({index:i}))}));var l=a[n],h=s[n];t.setYScaleForIndex(o,l,h)})),this.sameScaleInMultipleAxes(a,s,r)}},{key:"sameScaleInMultipleAxes",value:function(t,e,i){var a=this,s=this.w.config,r=this.w.globals,o=[];i.forEach((function(t){t.alreadyExists&&(void 0===o[t.index]&&(o[t.index]=[]),o[t.index].push(t.index),o[t.index].push(t.similarIndex))})),r.yAxisSameScaleIndices=o,o.forEach((function(t,e){o.forEach((function(i,a){var s,r;e!==a&&(s=t,r=i,s.filter((function(t){return-1!==r.indexOf(t)}))).length>0&&(o[e]=o[e].concat(o[a]))}))}));var n=o.map((function(t){return t.filter((function(e,i){return t.indexOf(e)===i}))})).map((function(t){return t.sort()}));o=o.filter((function(t){return!!t}));var l=n.slice(),h=l.map((function(t){return JSON.stringify(t)}));l=l.filter((function(t,e){return h.indexOf(JSON.stringify(t))===e}));var c=[],d=[];t.forEach((function(t,i){l.forEach((function(a,s){a.indexOf(i)>-1&&(void 0===c[s]&&(c[s]=[],d[s]=[]),c[s].push({key:i,value:t}),d[s].push({key:i,value:e[i]}))}))}));var g=Array.apply(null,Array(l.length)).map(Number.prototype.valueOf,Number.MIN_VALUE),u=Array.apply(null,Array(l.length)).map(Number.prototype.valueOf,-Number.MAX_VALUE);c.forEach((function(t,e){t.forEach((function(t,i){g[e]=Math.min(t.value,g[e])}))})),d.forEach((function(t,e){t.forEach((function(t,i){u[e]=Math.max(t.value,u[e])}))})),t.forEach((function(t,e){d.forEach((function(t,i){var o=g[i],n=u[i];s.chart.stacked&&(n=0,t.forEach((function(t,e){t.value!==-Number.MAX_VALUE&&(n+=t.value),o!==Number.MIN_VALUE&&(o+=c[i][e].value)}))),t.forEach((function(i,l){t[l].key===e&&(void 0!==s.yaxis[e].min&&(o="function"==typeof s.yaxis[e].min?s.yaxis[e].min(r.minY):s.yaxis[e].min),void 0!==s.yaxis[e].max&&(n="function"==typeof s.yaxis[e].max?s.yaxis[e].max(r.maxY):s.yaxis[e].max),a.setYScaleForIndex(e,o,n))}))}))}))}},{key:"autoScaleY",value:function(t,e,i){t||(t=this);var a=t.w;if(a.globals.isMultipleYAxis||a.globals.collapsedSeries.length)return console.warn("autoScaleYaxis not supported in a multi-yaxis chart."),e;var s=a.globals.seriesX[0],r=a.config.chart.stacked;return e.forEach((function(t,o){for(var n=0,l=0;l=i.xaxis.min){n=l;break}var h,c,d=a.globals.minYArr[o],g=a.globals.maxYArr[o],u=a.globals.stackedSeriesTotals;a.globals.series.forEach((function(o,l){var p=o[n];r?(p=u[n],h=c=p,u.forEach((function(t,e){s[e]<=i.xaxis.max&&s[e]>=i.xaxis.min&&(t>c&&null!==t&&(c=t),o[e]=i.xaxis.min){var r=t,o=t;a.globals.series.forEach((function(i,a){null!==t&&(r=Math.min(i[e],r),o=Math.max(i[e],o))})),o>c&&null!==o&&(c=o),rd&&(h=d),e.length>1?(e[l].min=void 0===t.min?h:t.min,e[l].max=void 0===t.max?c:t.max):(e[0].min=void 0===t.min?h:t.min,e[0].max=void 0===t.max?c:t.max)}))})),e}}]),t}(),J=function(){function t(e){n(this,t),this.ctx=e,this.w=e.w,this.scales=new $(e)}return h(t,[{key:"init",value:function(){this.setYRange(),this.setXRange(),this.setZRange()}},{key:"getMinYMaxY",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.MAX_VALUE,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:-Number.MAX_VALUE,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,s=this.w.config,r=this.w.globals,o=-Number.MAX_VALUE,n=Number.MIN_VALUE;null===a&&(a=t+1);var l=r.series,h=l,c=l;"candlestick"===s.chart.type?(h=r.seriesCandleL,c=r.seriesCandleH):"boxPlot"===s.chart.type?(h=r.seriesCandleO,c=r.seriesCandleC):r.isRangeData&&(h=r.seriesRangeStart,c=r.seriesRangeEnd);for(var d=t;dh[d][g]&&h[d][g]<0&&(n=h[d][g])):r.hasNullValues=!0}}return"rangeBar"===s.chart.type&&r.seriesRangeStart.length&&r.isBarHorizontal&&(n=e),"bar"===s.chart.type&&(n<0&&o<0&&(o=0),n===Number.MIN_VALUE&&(n=0)),{minY:n,maxY:o,lowestY:e,highestY:i}}},{key:"setYRange",value:function(){var t=this.w.globals,e=this.w.config;t.maxY=-Number.MAX_VALUE,t.minY=Number.MIN_VALUE;var i=Number.MAX_VALUE;if(t.isMultipleYAxis)for(var a=0;a=0&&i<=10||void 0!==e.yaxis[0].min||void 0!==e.yaxis[0].max)&&(o=0),t.minY=i-5*o/100,i>0&&t.minY<0&&(t.minY=0),t.maxY=t.maxY+5*o/100}return e.yaxis.forEach((function(e,i){void 0!==e.max&&("number"==typeof e.max?t.maxYArr[i]=e.max:"function"==typeof e.max&&(t.maxYArr[i]=e.max(t.isMultipleYAxis?t.maxYArr[i]:t.maxY)),t.maxY=t.maxYArr[i]),void 0!==e.min&&("number"==typeof e.min?t.minYArr[i]=e.min:"function"==typeof e.min&&(t.minYArr[i]=e.min(t.isMultipleYAxis?t.minYArr[i]===Number.MIN_VALUE?0:t.minYArr[i]:t.minY)),t.minY=t.minYArr[i])})),t.isBarHorizontal&&["min","max"].forEach((function(i){void 0!==e.xaxis[i]&&"number"==typeof e.xaxis[i]&&("min"===i?t.minY=e.xaxis[i]:t.maxY=e.xaxis[i])})),t.isMultipleYAxis?(this.scales.setMultipleYScales(),t.minY=i,t.yAxisScale.forEach((function(e,i){t.minYArr[i]=e.niceMin,t.maxYArr[i]=e.niceMax}))):(this.scales.setYScaleForIndex(0,t.minY,t.maxY),t.minY=t.yAxisScale[0].niceMin,t.maxY=t.yAxisScale[0].niceMax,t.minYArr[0]=t.yAxisScale[0].niceMin,t.maxYArr[0]=t.yAxisScale[0].niceMax),{minY:t.minY,maxY:t.maxY,minYArr:t.minYArr,maxYArr:t.maxYArr,yAxisScale:t.yAxisScale}}},{key:"setXRange",value:function(){var t=this.w.globals,e=this.w.config,i="numeric"===e.xaxis.type||"datetime"===e.xaxis.type||"category"===e.xaxis.type&&!t.noLabelsProvided||t.noLabelsProvided||t.isXNumeric;if(t.isXNumeric&&function(){for(var e=0;et.dataPoints&&0!==t.dataPoints&&(a=t.dataPoints-1)):"dataPoints"===e.xaxis.tickAmount?(t.series.length>1&&(a=t.series[t.maxValsInArrayIndex].length-1),t.isXNumeric&&(a=t.maxX-t.minX-1)):a=e.xaxis.tickAmount,t.xTickAmount=a,void 0!==e.xaxis.max&&"number"==typeof e.xaxis.max&&(t.maxX=e.xaxis.max),void 0!==e.xaxis.min&&"number"==typeof e.xaxis.min&&(t.minX=e.xaxis.min),void 0!==e.xaxis.range&&(t.minX=t.maxX-e.xaxis.range),t.minX!==Number.MAX_VALUE&&t.maxX!==-Number.MAX_VALUE)if(e.xaxis.convertedCatToNumeric&&!t.dataFormatXNumeric){for(var s=[],r=t.minX-1;r0&&(t.xAxisScale=this.scales.linearScale(1,t.labels.length,a-1,0,e.xaxis.stepSize),t.seriesX=t.labels.slice());i&&(t.labels=t.xAxisScale.result.slice())}return t.isBarHorizontal&&t.labels.length&&(t.xTickAmount=t.labels.length),this._handleSingleDataPoint(),this._getMinXDiff(),{minX:t.minX,maxX:t.maxX}}},{key:"setZRange",value:function(){var t=this.w.globals;if(t.isDataXYZ)for(var e=0;e0){var s=e-a[i-1];s>0&&(t.minXDiff=Math.min(s,t.minXDiff))}})),1!==t.dataPoints&&t.minXDiff!==Number.MAX_VALUE||(t.minXDiff=.5)}))}},{key:"_setStackedMinMax",value:function(){var t=this,e=this.w.globals;if(e.series.length){var i=e.seriesGroups;i.length||(i=[this.w.config.series.map((function(t){return t.name}))]);var a={},s={};i.forEach((function(i){a[i]=[],s[i]=[],t.w.config.series.map((function(t,e){return i.indexOf(t.name)>-1?e:null})).filter((function(t){return null!==t})).forEach((function(r){for(var o=0;o0?a[i][o]+=parseFloat(e.series[r][o])+1e-4:s[i][o]+=parseFloat(e.series[r][o]))}}))})),Object.entries(a).forEach((function(t){var i=x(t,1)[0];a[i].forEach((function(t,r){e.maxY=Math.max(e.maxY,a[i][r]),e.minY=Math.min(e.minY,s[i][r])}))}))}}}]),t}(),Q=function(){function t(e,i){n(this,t),this.ctx=e,this.elgrid=i,this.w=e.w;var a=this.w;this.xaxisFontSize=a.config.xaxis.labels.style.fontSize,this.axisFontFamily=a.config.xaxis.labels.style.fontFamily,this.xaxisForeColors=a.config.xaxis.labels.style.colors,this.isCategoryBarHorizontal="bar"===a.config.chart.type&&a.config.plotOptions.bar.horizontal,this.xAxisoffX=0,"bottom"===a.config.xaxis.position&&(this.xAxisoffX=a.globals.gridHeight),this.drawnLabels=[],this.axesUtils=new _(e)}return h(t,[{key:"drawYaxis",value:function(t){var e=this,i=this.w,a=new A(this.ctx),s=i.config.yaxis[t].labels.style,r=s.fontSize,o=s.fontFamily,n=s.fontWeight,l=a.group({class:"apexcharts-yaxis",rel:t,transform:"translate("+i.globals.translateYAxisX[t]+", 0)"});if(this.axesUtils.isYAxisHidden(t))return l;var h=a.group({class:"apexcharts-yaxis-texts-g"});l.add(h);var c=i.globals.yAxisScale[t].result.length-1,d=i.globals.gridHeight/c,g=i.globals.translateY,u=i.globals.yLabelFormatters[t],p=i.globals.yAxisScale[t].result.slice();p=this.axesUtils.checkForReversedLabels(t,p);var f="";if(i.config.yaxis[t].labels.show)for(var x=function(l){var x=p[l];x=u(x,l,i);var b=i.config.yaxis[t].labels.padding;i.config.yaxis[t].opposite&&0!==i.config.yaxis.length&&(b*=-1);var v="end";i.config.yaxis[t].opposite&&(v="start"),"left"===i.config.yaxis[t].labels.align?v="start":"center"===i.config.yaxis[t].labels.align?v="middle":"right"===i.config.yaxis[t].labels.align&&(v="end");var m=e.axesUtils.getYAxisForeColor(s.colors,t),y=i.config.yaxis[t].labels.offsetY;"heatmap"===i.config.chart.type&&(y-=(i.globals.gridHeight/i.globals.series.length-1)/2);var w=a.drawText({x:b,y:g+c/10+y+1,text:x,textAnchor:v,fontSize:r,fontFamily:o,fontWeight:n,maxWidth:i.config.yaxis[t].labels.maxWidth,foreColor:Array.isArray(m)?m[l]:m,isPlainText:!1,cssClass:"apexcharts-yaxis-label "+s.cssClass});l===c&&(f=w),h.add(w);var k=document.createElementNS(i.globals.SVGNS,"title");if(k.textContent=Array.isArray(x)?x.join(" "):x,w.node.appendChild(k),0!==i.config.yaxis[t].labels.rotate){var A=a.rotateAroundCenter(f.node),S=a.rotateAroundCenter(w.node);w.node.setAttribute("transform","rotate(".concat(i.config.yaxis[t].labels.rotate," ").concat(A.x," ").concat(S.y,")"))}g+=d},b=c;b>=0;b--)x(b);if(void 0!==i.config.yaxis[t].title.text){var v=a.group({class:"apexcharts-yaxis-title"}),m=0;i.config.yaxis[t].opposite&&(m=i.globals.translateYAxisX[t]);var y=a.drawText({x:m,y:i.globals.gridHeight/2+i.globals.translateY+i.config.yaxis[t].title.offsetY,text:i.config.yaxis[t].title.text,textAnchor:"end",foreColor:i.config.yaxis[t].title.style.color,fontSize:i.config.yaxis[t].title.style.fontSize,fontWeight:i.config.yaxis[t].title.style.fontWeight,fontFamily:i.config.yaxis[t].title.style.fontFamily,cssClass:"apexcharts-yaxis-title-text "+i.config.yaxis[t].title.style.cssClass});v.add(y),l.add(v)}var w=i.config.yaxis[t].axisBorder,k=31+w.offsetX;if(i.config.yaxis[t].opposite&&(k=-31-w.offsetX),w.show){var S=a.drawLine(k,i.globals.translateY+w.offsetY-2,k,i.globals.gridHeight+i.globals.translateY+w.offsetY+2,w.color,0,w.width);l.add(S)}return i.config.yaxis[t].axisTicks.show&&this.axesUtils.drawYAxisTicks(k,c,w,i.config.yaxis[t].axisTicks,t,d,l),l}},{key:"drawYaxisInversed",value:function(t){var e=this.w,i=new A(this.ctx),a=i.group({class:"apexcharts-xaxis apexcharts-yaxis-inversed"}),s=i.group({class:"apexcharts-xaxis-texts-g",transform:"translate(".concat(e.globals.translateXAxisX,", ").concat(e.globals.translateXAxisY,")")});a.add(s);var r=e.globals.yAxisScale[t].result.length-1,o=e.globals.gridWidth/r+.1,n=o+e.config.xaxis.labels.offsetX,l=e.globals.xLabelFormatter,h=e.globals.yAxisScale[t].result.slice(),c=e.globals.timescaleLabels;c.length>0&&(this.xaxisLabels=c.slice(),r=(h=c.slice()).length),h=this.axesUtils.checkForReversedLabels(t,h);var d=c.length;if(e.config.xaxis.labels.show)for(var g=d?0:r;d?g=0;d?g++:g--){var u=h[g];u=l(u,g,e);var p=e.globals.gridWidth+e.globals.padHorizontal-(n-o+e.config.xaxis.labels.offsetX);if(c.length){var f=this.axesUtils.getLabel(h,c,p,g,this.drawnLabels,this.xaxisFontSize);p=f.x,u=f.text,this.drawnLabels.push(f.text),0===g&&e.globals.skipFirstTimelinelabel&&(u=""),g===h.length-1&&e.globals.skipLastTimelinelabel&&(u="")}var x=i.drawText({x:p,y:this.xAxisoffX+e.config.xaxis.labels.offsetY+30-("top"===e.config.xaxis.position?e.globals.xAxisHeight+e.config.xaxis.axisTicks.height-2:0),text:u,textAnchor:"middle",foreColor:Array.isArray(this.xaxisForeColors)?this.xaxisForeColors[t]:this.xaxisForeColors,fontSize:this.xaxisFontSize,fontFamily:this.xaxisFontFamily,fontWeight:e.config.xaxis.labels.style.fontWeight,isPlainText:!1,cssClass:"apexcharts-xaxis-label "+e.config.xaxis.labels.style.cssClass});s.add(x),x.tspan(u);var b=document.createElementNS(e.globals.SVGNS,"title");b.textContent=u,x.node.appendChild(b),n+=o}return this.inversedYAxisTitleText(a),this.inversedYAxisBorder(a),a}},{key:"inversedYAxisBorder",value:function(t){var e=this.w,i=new A(this.ctx),a=e.config.xaxis.axisBorder;if(a.show){var s=0;"bar"===e.config.chart.type&&e.globals.isXNumeric&&(s-=15);var r=i.drawLine(e.globals.padHorizontal+s+a.offsetX,this.xAxisoffX,e.globals.gridWidth,this.xAxisoffX,a.color,0,a.height);this.elgrid&&this.elgrid.elGridBorders&&e.config.grid.show?this.elgrid.elGridBorders.add(r):t.add(r)}}},{key:"inversedYAxisTitleText",value:function(t){var e=this.w,i=new A(this.ctx);if(void 0!==e.config.xaxis.title.text){var a=i.group({class:"apexcharts-xaxis-title apexcharts-yaxis-title-inversed"}),s=i.drawText({x:e.globals.gridWidth/2+e.config.xaxis.title.offsetX,y:this.xAxisoffX+parseFloat(this.xaxisFontSize)+parseFloat(e.config.xaxis.title.style.fontSize)+e.config.xaxis.title.offsetY+20,text:e.config.xaxis.title.text,textAnchor:"middle",fontSize:e.config.xaxis.title.style.fontSize,fontFamily:e.config.xaxis.title.style.fontFamily,fontWeight:e.config.xaxis.title.style.fontWeight,foreColor:e.config.xaxis.title.style.color,cssClass:"apexcharts-xaxis-title-text "+e.config.xaxis.title.style.cssClass});a.add(s),t.add(a)}}},{key:"yAxisTitleRotate",value:function(t,e){var i=this.w,a=new A(this.ctx),s={width:0,height:0},r={width:0,height:0},o=i.globals.dom.baseEl.querySelector(" .apexcharts-yaxis[rel='".concat(t,"'] .apexcharts-yaxis-texts-g"));null!==o&&(s=o.getBoundingClientRect());var n=i.globals.dom.baseEl.querySelector(".apexcharts-yaxis[rel='".concat(t,"'] .apexcharts-yaxis-title text"));if(null!==n&&(r=n.getBoundingClientRect()),null!==n){var l=this.xPaddingForYAxisTitle(t,s,r,e);n.setAttribute("x",l.xPos-(e?10:0))}if(null!==n){var h=a.rotateAroundCenter(n);n.setAttribute("transform","rotate(".concat(e?-1*i.config.yaxis[t].title.rotate:i.config.yaxis[t].title.rotate," ").concat(h.x," ").concat(h.y,")"))}}},{key:"xPaddingForYAxisTitle",value:function(t,e,i,a){var s=this.w,r=0,o=0,n=10;return void 0===s.config.yaxis[t].title.text||t<0?{xPos:o,padd:0}:(a?(o=e.width+s.config.yaxis[t].title.offsetX+i.width/2+n/2,0===(r+=1)&&(o-=n/2)):(o=-1*e.width+s.config.yaxis[t].title.offsetX+n/2+i.width/2,s.globals.isBarHorizontal&&(n=25,o=-1*e.width-s.config.yaxis[t].title.offsetX-n)),{xPos:o,padd:n})}},{key:"setYAxisXPosition",value:function(t,e){var i=this.w,a=0,s=0,r=18,o=1;i.config.yaxis.length>1&&(this.multipleYs=!0),i.config.yaxis.map((function(n,l){var h=i.globals.ignoreYAxisIndexes.indexOf(l)>-1||!n.show||n.floating||0===t[l].width,c=t[l].width+e[l].width;n.opposite?i.globals.isBarHorizontal?(s=i.globals.gridWidth+i.globals.translateX-1,i.globals.translateYAxisX[l]=s-n.labels.offsetX):(s=i.globals.gridWidth+i.globals.translateX+o,h||(o=o+c+20),i.globals.translateYAxisX[l]=s-n.labels.offsetX+20):(a=i.globals.translateX-r,h||(r=r+c+20),i.globals.translateYAxisX[l]=a+n.labels.offsetX)}))}},{key:"setYAxisTextAlignments",value:function(){var t=this.w,e=t.globals.dom.baseEl.getElementsByClassName("apexcharts-yaxis");(e=y.listToArray(e)).forEach((function(e,i){var a=t.config.yaxis[i];if(a&&!a.floating&&void 0!==a.labels.align){var s=t.globals.dom.baseEl.querySelector(".apexcharts-yaxis[rel='".concat(i,"'] .apexcharts-yaxis-texts-g")),r=t.globals.dom.baseEl.querySelectorAll(".apexcharts-yaxis[rel='".concat(i,"'] .apexcharts-yaxis-label"));r=y.listToArray(r);var o=s.getBoundingClientRect();"left"===a.labels.align?(r.forEach((function(t,e){t.setAttribute("text-anchor","start")})),a.opposite||s.setAttribute("transform","translate(-".concat(o.width,", 0)"))):"center"===a.labels.align?(r.forEach((function(t,e){t.setAttribute("text-anchor","middle")})),s.setAttribute("transform","translate(".concat(o.width/2*(a.opposite?1:-1),", 0)"))):"right"===a.labels.align&&(r.forEach((function(t,e){t.setAttribute("text-anchor","end")})),a.opposite&&s.setAttribute("transform","translate(".concat(o.width,", 0)")))}}))}}]),t}(),K=function(){function t(e){n(this,t),this.ctx=e,this.w=e.w,this.documentEvent=y.bind(this.documentEvent,this)}return h(t,[{key:"addEventListener",value:function(t,e){var i=this.w;i.globals.events.hasOwnProperty(t)?i.globals.events[t].push(e):i.globals.events[t]=[e]}},{key:"removeEventListener",value:function(t,e){var i=this.w;if(i.globals.events.hasOwnProperty(t)){var a=i.globals.events[t].indexOf(e);-1!==a&&i.globals.events[t].splice(a,1)}}},{key:"fireEvent",value:function(t,e){var i=this.w;if(i.globals.events.hasOwnProperty(t)){e&&e.length||(e=[]);for(var a=i.globals.events[t],s=a.length,r=0;r0&&(e=this.w.config.chart.locales.concat(window.Apex.chart.locales));var i=e.filter((function(e){return e.name===t}))[0];if(!i)throw new Error("Wrong locale name provided. Please make sure you set the correct locale name in options");var a=y.extend(T,i);this.w.globals.locale=a.options}}]),t}(),et=function(){function t(e){n(this,t),this.ctx=e,this.w=e.w}return h(t,[{key:"drawAxis",value:function(t,e){var i,a,s=this,r=this.w.globals,o=this.w.config,n=new q(this.ctx,e),l=new Q(this.ctx,e);r.axisCharts&&"radar"!==t&&(r.isBarHorizontal?(a=l.drawYaxisInversed(0),i=n.drawXaxisInversed(0),r.dom.elGraphical.add(i),r.dom.elGraphical.add(a)):(i=n.drawXaxis(),r.dom.elGraphical.add(i),o.yaxis.map((function(t,e){if(-1===r.ignoreYAxisIndexes.indexOf(e)&&(a=l.drawYaxis(e),r.dom.Paper.add(a),"back"===s.w.config.grid.position)){var i=r.dom.Paper.children()[1];i.remove(),r.dom.Paper.add(i)}}))))}}]),t}(),it=function(){function t(e){n(this,t),this.ctx=e,this.w=e.w}return h(t,[{key:"drawXCrosshairs",value:function(){var t=this.w,e=new A(this.ctx),i=new k(this.ctx),a=t.config.xaxis.crosshairs.fill.gradient,s=t.config.xaxis.crosshairs.dropShadow,r=t.config.xaxis.crosshairs.fill.type,o=a.colorFrom,n=a.colorTo,l=a.opacityFrom,h=a.opacityTo,c=a.stops,d=s.enabled,g=s.left,u=s.top,p=s.blur,f=s.color,x=s.opacity,b=t.config.xaxis.crosshairs.fill.color;if(t.config.xaxis.crosshairs.show){"gradient"===r&&(b=e.drawGradient("vertical",o,n,l,h,null,c,null));var v=e.drawRect();1===t.config.xaxis.crosshairs.width&&(v=e.drawLine());var m=t.globals.gridHeight;(!y.isNumber(m)||m<0)&&(m=0);var w=t.config.xaxis.crosshairs.width;(!y.isNumber(w)||w<0)&&(w=0),v.attr({class:"apexcharts-xcrosshairs",x:0,y:0,y2:m,width:w,height:m,fill:b,filter:"none","fill-opacity":t.config.xaxis.crosshairs.opacity,stroke:t.config.xaxis.crosshairs.stroke.color,"stroke-width":t.config.xaxis.crosshairs.stroke.width,"stroke-dasharray":t.config.xaxis.crosshairs.stroke.dashArray}),d&&(v=i.dropShadow(v,{left:g,top:u,blur:p,color:f,opacity:x})),t.globals.dom.elGraphical.add(v)}}},{key:"drawYCrosshairs",value:function(){var t=this.w,e=new A(this.ctx),i=t.config.yaxis[0].crosshairs,a=t.globals.barPadForNumericAxis;if(t.config.yaxis[0].crosshairs.show){var s=e.drawLine(-a,0,t.globals.gridWidth+a,0,i.stroke.color,i.stroke.dashArray,i.stroke.width);s.attr({class:"apexcharts-ycrosshairs"}),t.globals.dom.elGraphical.add(s)}var r=e.drawLine(-a,0,t.globals.gridWidth+a,0,i.stroke.color,0,0);r.attr({class:"apexcharts-ycrosshairs-hidden"}),t.globals.dom.elGraphical.add(r)}}]),t}(),at=function(){function t(e){n(this,t),this.ctx=e,this.w=e.w}return h(t,[{key:"checkResponsiveConfig",value:function(t){var e=this,i=this.w,a=i.config;if(0!==a.responsive.length){var s=a.responsive.slice();s.sort((function(t,e){return t.breakpoint>e.breakpoint?1:e.breakpoint>t.breakpoint?-1:0})).reverse();var r=new H({}),o=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},a=s[0].breakpoint,o=window.innerWidth>0?window.innerWidth:screen.width;if(o>a){var n=S.extendArrayProps(r,i.globals.initialConfig,i);t=y.extend(n,t),t=y.extend(i.config,t),e.overrideResponsiveOptions(t)}else for(var l=0;l0&&"function"==typeof i.config.colors[0]&&(i.globals.colors=i.config.series.map((function(t,a){var s=i.config.colors[a];return s||(s=i.config.colors[0]),"function"==typeof s?(e.isColorFn=!0,s({value:i.globals.axisCharts?i.globals.series[a][0]?i.globals.series[a][0]:0:i.globals.series[a],seriesIndex:a,dataPointIndex:a,w:i})):s})))),i.globals.seriesColors.map((function(t,e){t&&(i.globals.colors[e]=t)})),i.config.theme.monochrome.enabled){var s=[],r=i.globals.series.length;(this.isBarDistributed||this.isHeatmapDistributed)&&(r=i.globals.series[0].length*i.globals.series.length);for(var o=i.config.theme.monochrome.color,n=1/(r/i.config.theme.monochrome.shadeIntensity),l=i.config.theme.monochrome.shadeTo,h=0,c=0;c2&&void 0!==arguments[2]?arguments[2]:null,a=this.w,s=e||a.globals.series.length;if(null===i&&(i=this.isBarDistributed||this.isHeatmapDistributed||"heatmap"===a.config.chart.type&&a.config.plotOptions.heatmap.colorScale.inverse),i&&a.globals.series.length&&(s=a.globals.series[a.globals.maxValsInArrayIndex].length*a.globals.series.length),t.lengtht.globals.svgWidth&&(this.dCtx.lgRect.width=t.globals.svgWidth/1.5),this.dCtx.lgRect}},{key:"getLargestStringFromMultiArr",value:function(t,e){var i=t;if(this.w.globals.isMultiLineX){var a=e.map((function(t,e){return Array.isArray(t)?t.length:1})),s=Math.max.apply(Math,b(a));i=e[a.indexOf(s)]}return i}}]),t}(),nt=function(){function t(e){n(this,t),this.w=e.w,this.dCtx=e}return h(t,[{key:"getxAxisLabelsCoords",value:function(){var t,e=this.w,i=e.globals.labels.slice();if(e.config.xaxis.convertedCatToNumeric&&0===i.length&&(i=e.globals.categoryLabels),e.globals.timescaleLabels.length>0){var a=this.getxAxisTimeScaleLabelsCoords();t={width:a.width,height:a.height},e.globals.rotateXLabels=!1}else{this.dCtx.lgWidthForSideLegends="left"!==e.config.legend.position&&"right"!==e.config.legend.position||e.config.legend.floating?0:this.dCtx.lgRect.width;var s=e.globals.xLabelFormatter,r=y.getLargestStringFromArr(i),o=this.dCtx.dimHelpers.getLargestStringFromMultiArr(r,i);e.globals.isBarHorizontal&&(o=r=e.globals.yAxisScale[0].result.reduce((function(t,e){return t.length>e.length?t:e}),0));var n=new E(this.dCtx.ctx),l=r;r=n.xLabelFormat(s,r,l,{i:void 0,dateFormatter:new X(this.dCtx.ctx).formatDate,w:e}),o=n.xLabelFormat(s,o,l,{i:void 0,dateFormatter:new X(this.dCtx.ctx).formatDate,w:e}),(e.config.xaxis.convertedCatToNumeric&&void 0===r||""===String(r).trim())&&(o=r="1");var h=new A(this.dCtx.ctx),c=h.getTextRects(r,e.config.xaxis.labels.style.fontSize),d=c;if(r!==o&&(d=h.getTextRects(o,e.config.xaxis.labels.style.fontSize)),(t={width:c.width>=d.width?c.width:d.width,height:c.height>=d.height?c.height:d.height}).width*i.length>e.globals.svgWidth-this.dCtx.lgWidthForSideLegends-this.dCtx.yAxisWidth-this.dCtx.gridPad.left-this.dCtx.gridPad.right&&0!==e.config.xaxis.labels.rotate||e.config.xaxis.labels.rotateAlways){if(!e.globals.isBarHorizontal){e.globals.rotateXLabels=!0;var g=function(t){return h.getTextRects(t,e.config.xaxis.labels.style.fontSize,e.config.xaxis.labels.style.fontFamily,"rotate(".concat(e.config.xaxis.labels.rotate," 0 0)"),!1)};c=g(r),r!==o&&(d=g(o)),t.height=(c.height>d.height?c.height:d.height)/1.5,t.width=c.width>d.width?c.width:d.width}}else e.globals.rotateXLabels=!1}return e.config.xaxis.labels.show||(t={width:0,height:0}),{width:t.width,height:t.height}}},{key:"getxAxisGroupLabelsCoords",value:function(){var t,e=this.w;if(!e.globals.hasXaxisGroups)return{width:0,height:0};var i,a=(null===(t=e.config.xaxis.group.style)||void 0===t?void 0:t.fontSize)||e.config.xaxis.labels.style.fontSize,s=e.globals.groups.map((function(t){return t.title})),r=y.getLargestStringFromArr(s),o=this.dCtx.dimHelpers.getLargestStringFromMultiArr(r,s),n=new A(this.dCtx.ctx),l=n.getTextRects(r,a),h=l;return r!==o&&(h=n.getTextRects(o,a)),i={width:l.width>=h.width?l.width:h.width,height:l.height>=h.height?l.height:h.height},e.config.xaxis.labels.show||(i={width:0,height:0}),{width:i.width,height:i.height}}},{key:"getxAxisTitleCoords",value:function(){var t=this.w,e=0,i=0;if(void 0!==t.config.xaxis.title.text){var a=new A(this.dCtx.ctx).getTextRects(t.config.xaxis.title.text,t.config.xaxis.title.style.fontSize);e=a.width,i=a.height}return{width:e,height:i}}},{key:"getxAxisTimeScaleLabelsCoords",value:function(){var t,e=this.w;this.dCtx.timescaleLabels=e.globals.timescaleLabels.slice();var i=this.dCtx.timescaleLabels.map((function(t){return t.value})),a=i.reduce((function(t,e){return void 0===t?(console.error("You have possibly supplied invalid Date format. Please supply a valid JavaScript Date"),0):t.length>e.length?t:e}),0);return 1.05*(t=new A(this.dCtx.ctx).getTextRects(a,e.config.xaxis.labels.style.fontSize)).width*i.length>e.globals.gridWidth&&0!==e.config.xaxis.labels.rotate&&(e.globals.overlappingXLabels=!0),t}},{key:"additionalPaddingXLabels",value:function(t){var e=this,i=this.w,a=i.globals,s=i.config,r=s.xaxis.type,o=t.width;a.skipLastTimelinelabel=!1,a.skipFirstTimelinelabel=!1;var n=i.config.yaxis[0].opposite&&i.globals.isBarHorizontal,l=function(t,n){s.yaxis.length>1&&function(t){return-1!==a.collapsedSeriesIndices.indexOf(t)}(n)||function(t){if(e.dCtx.timescaleLabels&&e.dCtx.timescaleLabels.length){var n=e.dCtx.timescaleLabels[0],l=e.dCtx.timescaleLabels[e.dCtx.timescaleLabels.length-1].position+o/1.75-e.dCtx.yAxisWidthRight,h=n.position-o/1.75+e.dCtx.yAxisWidthLeft,c="right"===i.config.legend.position&&e.dCtx.lgRect.width>0?e.dCtx.lgRect.width:0;l>a.svgWidth-a.translateX-c&&(a.skipLastTimelinelabel=!0),h<-(t.show&&!t.floating||"bar"!==s.chart.type&&"candlestick"!==s.chart.type&&"rangeBar"!==s.chart.type&&"boxPlot"!==s.chart.type?10:o/1.75)&&(a.skipFirstTimelinelabel=!0)}else"datetime"===r?e.dCtx.gridPad.right(null===(a=String(c(e,n)))||void 0===a?void 0:a.length)?t:e}),d),u=g=c(g,n);if(void 0!==g&&0!==g.length||(g=l.niceMax),e.globals.isBarHorizontal){a=0;var p=e.globals.labels.slice();g=y.getLargestStringFromArr(p),g=c(g,{seriesIndex:o,dataPointIndex:-1,w:e}),u=t.dCtx.dimHelpers.getLargestStringFromMultiArr(g,p)}var f=new A(t.dCtx.ctx),x="rotate(".concat(r.labels.rotate," 0 0)"),b=f.getTextRects(g,r.labels.style.fontSize,r.labels.style.fontFamily,x,!1),v=b;g!==u&&(v=f.getTextRects(u,r.labels.style.fontSize,r.labels.style.fontFamily,x,!1)),i.push({width:(h>v.width||h>b.width?h:v.width>b.width?v.width:b.width)+a,height:v.height>b.height?v.height:b.height})}else i.push({width:0,height:0})})),i}},{key:"getyAxisTitleCoords",value:function(){var t=this,e=this.w,i=[];return e.config.yaxis.map((function(e,a){if(e.show&&void 0!==e.title.text){var s=new A(t.dCtx.ctx),r="rotate(".concat(e.title.rotate," 0 0)"),o=s.getTextRects(e.title.text,e.title.style.fontSize,e.title.style.fontFamily,r,!1);i.push({width:o.width,height:o.height})}else i.push({width:0,height:0})})),i}},{key:"getTotalYAxisWidth",value:function(){var t=this.w,e=0,i=0,a=0,s=t.globals.yAxisScale.length>1?10:0,r=new _(this.dCtx.ctx),o=function(o,n){var l=t.config.yaxis[n].floating,h=0;o.width>0&&!l?(h=o.width+s,function(e){return t.globals.ignoreYAxisIndexes.indexOf(e)>-1}(n)&&(h=h-o.width-s)):h=l||r.isYAxisHidden(n)?0:5,t.config.yaxis[n].opposite?a+=h:i+=h,e+=h};return t.globals.yLabelsCoords.map((function(t,e){o(t,e)})),t.globals.yTitleCoords.map((function(t,e){o(t,e)})),t.globals.isBarHorizontal&&!t.config.yaxis[0].floating&&(e=t.globals.yLabelsCoords[0].width+t.globals.yTitleCoords[0].width+15),this.dCtx.yAxisWidthLeft=i,this.dCtx.yAxisWidthRight=a,e}}]),t}(),ht=function(){function t(e){n(this,t),this.w=e.w,this.dCtx=e}return h(t,[{key:"gridPadForColumnsInNumericAxis",value:function(t){var e=this.w;if(e.globals.noData||e.globals.allSeriesCollapsed)return 0;var i=function(t){return"bar"===t||"rangeBar"===t||"candlestick"===t||"boxPlot"===t},a=e.config.chart.type,s=0,r=i(a)?e.config.series.length:1;if(e.globals.comboBarCount>0&&(r=e.globals.comboBarCount),e.globals.collapsedSeries.forEach((function(t){i(t.type)&&(r-=1)})),e.config.chart.stacked&&(r=1),(i(a)||e.globals.comboBarCount>0)&&e.globals.isXNumeric&&!e.globals.isBarHorizontal&&r>0){var o,n,l=Math.abs(e.globals.initialMaxX-e.globals.initialMinX);l<=3&&(l=e.globals.dataPoints),o=l/t,e.globals.minXDiff&&e.globals.minXDiff/o>0&&(n=e.globals.minXDiff/o),n>t/2&&(n/=2),(s=n/r*parseInt(e.config.plotOptions.bar.columnWidth,10)/100)<1&&(s=1),s=s/(r>1?1:1.5)+5,e.globals.barPadForNumericAxis=s}return s}},{key:"gridPadFortitleSubtitle",value:function(){var t=this,e=this.w,i=e.globals,a=this.dCtx.isSparkline||!e.globals.axisCharts?0:10;["title","subtitle"].forEach((function(i){void 0!==e.config[i].text?a+=e.config[i].margin:a+=t.dCtx.isSparkline||!e.globals.axisCharts?0:5})),!e.config.legend.show||"bottom"!==e.config.legend.position||e.config.legend.floating||e.globals.axisCharts||(a+=10);var s=this.dCtx.dimHelpers.getTitleSubtitleCoords("title"),r=this.dCtx.dimHelpers.getTitleSubtitleCoords("subtitle");i.gridHeight=i.gridHeight-s.height-r.height-a,i.translateY=i.translateY+s.height+r.height+a}},{key:"setGridXPosForDualYAxis",value:function(t,e){var i=this.w,a=new _(this.dCtx.ctx);i.config.yaxis.map((function(s,r){-1!==i.globals.ignoreYAxisIndexes.indexOf(r)||s.floating||a.isYAxisHidden(r)||(s.opposite&&(i.globals.translateX=i.globals.translateX-(e[r].width+t[r].width)-parseInt(i.config.yaxis[r].labels.style.fontSize,10)/1.2-12),i.globals.translateX<2&&(i.globals.translateX=2))}))}}]),t}(),ct=function(){function t(e){n(this,t),this.ctx=e,this.w=e.w,this.lgRect={},this.yAxisWidth=0,this.yAxisWidthLeft=0,this.yAxisWidthRight=0,this.xAxisHeight=0,this.isSparkline=this.w.config.chart.sparkline.enabled,this.dimHelpers=new ot(this),this.dimYAxis=new lt(this),this.dimXAxis=new nt(this),this.dimGrid=new ht(this),this.lgWidthForSideLegends=0,this.gridPad=this.w.config.grid.padding,this.xPadRight=0,this.xPadLeft=0}return h(t,[{key:"plotCoords",value:function(){var t=this,e=this.w,i=e.globals;this.lgRect=this.dimHelpers.getLegendsRect(),this.isSparkline&&((e.config.markers.discrete.length>0||e.config.markers.size>0)&&Object.entries(this.gridPad).forEach((function(e){var i=x(e,2),a=i[0],s=i[1];t.gridPad[a]=Math.max(s,t.w.globals.markers.largestSize/1.5)})),this.gridPad.top=Math.max(e.config.stroke.width/2,this.gridPad.top),this.gridPad.bottom=Math.max(e.config.stroke.width/2,this.gridPad.bottom)),i.axisCharts?this.setDimensionsForAxisCharts():this.setDimensionsForNonAxisCharts(),this.dimGrid.gridPadFortitleSubtitle(),i.gridHeight=i.gridHeight-this.gridPad.top-this.gridPad.bottom,i.gridWidth=i.gridWidth-this.gridPad.left-this.gridPad.right-this.xPadRight-this.xPadLeft;var a=this.dimGrid.gridPadForColumnsInNumericAxis(i.gridWidth);i.gridWidth=i.gridWidth-2*a,i.translateX=i.translateX+this.gridPad.left+this.xPadLeft+(a>0?a+4:0),i.translateY=i.translateY+this.gridPad.top}},{key:"setDimensionsForAxisCharts",value:function(){var t=this,e=this.w,i=e.globals,a=this.dimYAxis.getyAxisLabelsCoords(),s=this.dimYAxis.getyAxisTitleCoords();e.globals.yLabelsCoords=[],e.globals.yTitleCoords=[],e.config.yaxis.map((function(t,i){e.globals.yLabelsCoords.push({width:a[i].width,index:i}),e.globals.yTitleCoords.push({width:s[i].width,index:i})})),this.yAxisWidth=this.dimYAxis.getTotalYAxisWidth();var r=this.dimXAxis.getxAxisLabelsCoords(),o=this.dimXAxis.getxAxisGroupLabelsCoords(),n=this.dimXAxis.getxAxisTitleCoords();this.conditionalChecksForAxisCoords(r,n,o),i.translateXAxisY=e.globals.rotateXLabels?this.xAxisHeight/8:-4,i.translateXAxisX=e.globals.rotateXLabels&&e.globals.isXNumeric&&e.config.xaxis.labels.rotate<=-45?-this.xAxisWidth/4:0,e.globals.isBarHorizontal&&(i.rotateXLabels=!1,i.translateXAxisY=parseInt(e.config.xaxis.labels.style.fontSize,10)/1.5*-1),i.translateXAxisY=i.translateXAxisY+e.config.xaxis.labels.offsetY,i.translateXAxisX=i.translateXAxisX+e.config.xaxis.labels.offsetX;var l=this.yAxisWidth,h=this.xAxisHeight;i.xAxisLabelsHeight=this.xAxisHeight-n.height,i.xAxisGroupLabelsHeight=i.xAxisLabelsHeight-r.height,i.xAxisLabelsWidth=this.xAxisWidth,i.xAxisHeight=this.xAxisHeight;var c=10;("radar"===e.config.chart.type||this.isSparkline)&&(l=0,h=i.goldenPadding),this.isSparkline&&(this.lgRect={height:0,width:0}),(this.isSparkline||"treemap"===e.config.chart.type)&&(l=0,h=0,c=0),this.isSparkline||this.dimXAxis.additionalPaddingXLabels(r);var d=function(){i.translateX=l,i.gridHeight=i.svgHeight-t.lgRect.height-h-(t.isSparkline||"treemap"===e.config.chart.type?0:e.globals.rotateXLabels?10:15),i.gridWidth=i.svgWidth-l};switch("top"===e.config.xaxis.position&&(c=i.xAxisHeight-e.config.xaxis.axisTicks.height-5),e.config.legend.position){case"bottom":i.translateY=c,d();break;case"top":i.translateY=this.lgRect.height+c,d();break;case"left":i.translateY=c,i.translateX=this.lgRect.width+l,i.gridHeight=i.svgHeight-h-12,i.gridWidth=i.svgWidth-this.lgRect.width-l;break;case"right":i.translateY=c,i.translateX=l,i.gridHeight=i.svgHeight-h-12,i.gridWidth=i.svgWidth-this.lgRect.width-l-5;break;default:throw new Error("Legend position not supported")}this.dimGrid.setGridXPosForDualYAxis(s,a),new Q(this.ctx).setYAxisXPosition(a,s)}},{key:"setDimensionsForNonAxisCharts",value:function(){var t=this.w,e=t.globals,i=t.config,a=0;t.config.legend.show&&!t.config.legend.floating&&(a=20);var s="pie"===i.chart.type||"polarArea"===i.chart.type||"donut"===i.chart.type?"pie":"radialBar",r=i.plotOptions[s].offsetY,o=i.plotOptions[s].offsetX;if(!i.legend.show||i.legend.floating)return e.gridHeight=e.svgHeight-i.grid.padding.left+i.grid.padding.right,e.gridWidth=e.gridHeight,e.translateY=r,void(e.translateX=o+(e.svgWidth-e.gridWidth)/2);switch(i.legend.position){case"bottom":e.gridHeight=e.svgHeight-this.lgRect.height-e.goldenPadding,e.gridWidth=e.svgWidth,e.translateY=r-10,e.translateX=o+(e.svgWidth-e.gridWidth)/2;break;case"top":e.gridHeight=e.svgHeight-this.lgRect.height-e.goldenPadding,e.gridWidth=e.svgWidth,e.translateY=this.lgRect.height+r+10,e.translateX=o+(e.svgWidth-e.gridWidth)/2;break;case"left":e.gridWidth=e.svgWidth-this.lgRect.width-a,e.gridHeight="auto"!==i.chart.height?e.svgHeight:e.gridWidth,e.translateY=r,e.translateX=o+this.lgRect.width+a;break;case"right":e.gridWidth=e.svgWidth-this.lgRect.width-a-5,e.gridHeight="auto"!==i.chart.height?e.svgHeight:e.gridWidth,e.translateY=r,e.translateX=o+10;break;default:throw new Error("Legend position not supported")}}},{key:"conditionalChecksForAxisCoords",value:function(t,e,i){var a=this.w,s=a.globals.hasXaxisGroups?2:1,r=i.height+t.height+e.height,o=a.globals.isMultiLineX?1.2:a.globals.LINE_HEIGHT_RATIO,n=a.globals.rotateXLabels?22:10,l=a.globals.rotateXLabels&&"bottom"===a.config.legend.position?10:0;this.xAxisHeight=r*o+s*n+l,this.xAxisWidth=t.width,this.xAxisHeight-e.height>a.config.xaxis.labels.maxHeight&&(this.xAxisHeight=a.config.xaxis.labels.maxHeight),a.config.xaxis.labels.minHeight&&this.xAxisHeightc&&(this.yAxisWidth=c)}}]),t}(),dt=function(){function t(e){n(this,t),this.w=e.w,this.lgCtx=e}return h(t,[{key:"getLegendStyles",value:function(){var t,e,i,a=document.createElement("style");a.setAttribute("type","text/css");var s=(null===(t=this.lgCtx.ctx)||void 0===t||null===(e=t.opts)||void 0===e||null===(i=e.chart)||void 0===i?void 0:i.nonce)||this.w.config.chart.nonce;s&&a.setAttribute("nonce",s);var r=document.createTextNode("\t\n \t\n .apexcharts-legend {\t\n display: flex;\t\n overflow: auto;\t\n padding: 0 10px;\t\n }\t\n .apexcharts-legend.apx-legend-position-bottom, .apexcharts-legend.apx-legend-position-top {\t\n flex-wrap: wrap\t\n }\t\n .apexcharts-legend.apx-legend-position-right, .apexcharts-legend.apx-legend-position-left {\t\n flex-direction: column;\t\n bottom: 0;\t\n }\t\n .apexcharts-legend.apx-legend-position-bottom.apexcharts-align-left, .apexcharts-legend.apx-legend-position-top.apexcharts-align-left, .apexcharts-legend.apx-legend-position-right, .apexcharts-legend.apx-legend-position-left {\t\n justify-content: flex-start;\t\n }\t\n .apexcharts-legend.apx-legend-position-bottom.apexcharts-align-center, .apexcharts-legend.apx-legend-position-top.apexcharts-align-center {\t\n justify-content: center; \t\n }\t\n .apexcharts-legend.apx-legend-position-bottom.apexcharts-align-right, .apexcharts-legend.apx-legend-position-top.apexcharts-align-right {\t\n justify-content: flex-end;\t\n }\t\n .apexcharts-legend-series {\t\n cursor: pointer;\t\n line-height: normal;\t\n }\t\n .apexcharts-legend.apx-legend-position-bottom .apexcharts-legend-series, .apexcharts-legend.apx-legend-position-top .apexcharts-legend-series{\t\n display: flex;\t\n align-items: center;\t\n }\t\n .apexcharts-legend-text {\t\n position: relative;\t\n font-size: 14px;\t\n }\t\n .apexcharts-legend-text *, .apexcharts-legend-marker * {\t\n pointer-events: none;\t\n }\t\n .apexcharts-legend-marker {\t\n position: relative;\t\n display: inline-block;\t\n cursor: pointer;\t\n margin-right: 3px;\t\n border-style: solid;\n }\t\n \t\n .apexcharts-legend.apexcharts-align-right .apexcharts-legend-series, .apexcharts-legend.apexcharts-align-left .apexcharts-legend-series{\t\n display: inline-block;\t\n }\t\n .apexcharts-legend-series.apexcharts-no-click {\t\n cursor: auto;\t\n }\t\n .apexcharts-legend .apexcharts-hidden-zero-series, .apexcharts-legend .apexcharts-hidden-null-series {\t\n display: none !important;\t\n }\t\n .apexcharts-inactive-legend {\t\n opacity: 0.45;\t\n }");return a.appendChild(r),a}},{key:"getLegendBBox",value:function(){var t=this.w.globals.dom.baseEl.querySelector(".apexcharts-legend").getBoundingClientRect(),e=t.width;return{clwh:t.height,clww:e}}},{key:"appendToForeignObject",value:function(){this.w.globals.dom.elLegendForeign.appendChild(this.getLegendStyles())}},{key:"toggleDataSeries",value:function(t,e){var i=this,a=this.w;if(a.globals.axisCharts||"radialBar"===a.config.chart.type){a.globals.resized=!0;var s=null,r=null;a.globals.risingSeries=[],a.globals.axisCharts?(s=a.globals.dom.baseEl.querySelector(".apexcharts-series[data\\:realIndex='".concat(t,"']")),r=parseInt(s.getAttribute("data:realIndex"),10)):(s=a.globals.dom.baseEl.querySelector(".apexcharts-series[rel='".concat(t+1,"']")),r=parseInt(s.getAttribute("rel"),10)-1),e?[{cs:a.globals.collapsedSeries,csi:a.globals.collapsedSeriesIndices},{cs:a.globals.ancillaryCollapsedSeries,csi:a.globals.ancillaryCollapsedSeriesIndices}].forEach((function(t){i.riseCollapsedSeries(t.cs,t.csi,r)})):this.hideSeries({seriesEl:s,realIndex:r})}else{var o=a.globals.dom.Paper.select(" .apexcharts-series[rel='".concat(t+1,"'] path")),n=a.config.chart.type;if("pie"===n||"polarArea"===n||"donut"===n){var l=a.config.plotOptions.pie.donut.labels;new A(this.lgCtx.ctx).pathMouseDown(o.members[0],null),this.lgCtx.ctx.pie.printDataLabelsInner(o.members[0].node,l)}o.fire("click")}}},{key:"hideSeries",value:function(t){var e=t.seriesEl,i=t.realIndex,a=this.w,s=y.clone(a.config.series);if(a.globals.axisCharts){var r=!1;if(a.config.yaxis[i]&&a.config.yaxis[i].show&&a.config.yaxis[i].showAlways&&(r=!0,a.globals.ancillaryCollapsedSeriesIndices.indexOf(i)<0&&(a.globals.ancillaryCollapsedSeries.push({index:i,data:s[i].data.slice(),type:e.parentNode.className.baseVal.split("-")[1]}),a.globals.ancillaryCollapsedSeriesIndices.push(i))),!r){a.globals.collapsedSeries.push({index:i,data:s[i].data.slice(),type:e.parentNode.className.baseVal.split("-")[1]}),a.globals.collapsedSeriesIndices.push(i);var o=a.globals.risingSeries.indexOf(i);a.globals.risingSeries.splice(o,1)}}else a.globals.collapsedSeries.push({index:i,data:s[i]}),a.globals.collapsedSeriesIndices.push(i);for(var n=e.childNodes,l=0;l0){for(var r=0;r-1&&(t[a].data=[])})):t.forEach((function(i,a){e.globals.collapsedSeriesIndices.indexOf(a)>-1&&(t[a]=0)})),t}}]),t}(),gt=function(){function t(e){n(this,t),this.ctx=e,this.w=e.w,this.onLegendClick=this.onLegendClick.bind(this),this.onLegendHovered=this.onLegendHovered.bind(this),this.isBarsDistributed="bar"===this.w.config.chart.type&&this.w.config.plotOptions.bar.distributed&&1===this.w.config.series.length,this.legendHelpers=new dt(this)}return h(t,[{key:"init",value:function(){var t=this.w,e=t.globals,i=t.config;if((i.legend.showForSingleSeries&&1===e.series.length||this.isBarsDistributed||e.series.length>1||!e.axisCharts)&&i.legend.show){for(;e.dom.elLegendWrap.firstChild;)e.dom.elLegendWrap.removeChild(e.dom.elLegendWrap.firstChild);this.drawLegends(),y.isIE11()?document.getElementsByTagName("head")[0].appendChild(this.legendHelpers.getLegendStyles()):this.legendHelpers.appendToForeignObject(),"bottom"===i.legend.position||"top"===i.legend.position?this.legendAlignHorizontal():"right"!==i.legend.position&&"left"!==i.legend.position||this.legendAlignVertical()}}},{key:"drawLegends",value:function(){var t=this,e=this.w,i=e.config.legend.fontFamily,a=e.globals.seriesNames,s=e.globals.colors.slice();if("heatmap"===e.config.chart.type){var r=e.config.plotOptions.heatmap.colorScale.ranges;a=r.map((function(t){return t.name?t.name:t.from+" - "+t.to})),s=r.map((function(t){return t.color}))}else this.isBarsDistributed&&(a=e.globals.labels.slice());e.config.legend.customLegendItems.length&&(a=e.config.legend.customLegendItems);for(var o=e.globals.legendFormatter,n=e.config.legend.inverseOrder,l=n?a.length-1:0;n?l>=0:l<=a.length-1;n?l--:l++){var h,c=o(a[l],{seriesIndex:l,w:e}),d=!1,g=!1;if(e.globals.collapsedSeries.length>0)for(var u=0;u0)for(var p=0;p0?l-10:0)+(h>0?h-10:0)}a.style.position="absolute",r=r+t+i.config.legend.offsetX,o=o+e+i.config.legend.offsetY,a.style.left=r+"px",a.style.top=o+"px","bottom"===i.config.legend.position?(a.style.top="auto",a.style.bottom=5-i.config.legend.offsetY+"px"):"right"===i.config.legend.position&&(a.style.left="auto",a.style.right=25+i.config.legend.offsetX+"px"),["width","height"].forEach((function(t){a.style[t]&&(a.style[t]=parseInt(i.config.legend[t],10)+"px")}))}},{key:"legendAlignHorizontal",value:function(){var t=this.w;t.globals.dom.elLegendWrap.style.right=0;var e=this.legendHelpers.getLegendBBox(),i=new ct(this.ctx),a=i.dimHelpers.getTitleSubtitleCoords("title"),s=i.dimHelpers.getTitleSubtitleCoords("subtitle"),r=0;"bottom"===t.config.legend.position?r=-e.clwh/1.8:"top"===t.config.legend.position&&(r=a.height+s.height+t.config.title.margin+t.config.subtitle.margin-10),this.setLegendWrapXY(20,r)}},{key:"legendAlignVertical",value:function(){var t=this.w,e=this.legendHelpers.getLegendBBox(),i=0;"left"===t.config.legend.position&&(i=20),"right"===t.config.legend.position&&(i=t.globals.svgWidth-e.clww-10),this.setLegendWrapXY(i,20)}},{key:"onLegendHovered",value:function(t){var e=this.w,i=t.target.classList.contains("apexcharts-legend-series")||t.target.classList.contains("apexcharts-legend-text")||t.target.classList.contains("apexcharts-legend-marker");if("heatmap"===e.config.chart.type||this.isBarsDistributed){if(i){var a=parseInt(t.target.getAttribute("rel"),10)-1;this.ctx.events.fireEvent("legendHover",[this.ctx,a,this.w]),new V(this.ctx).highlightRangeInSeries(t,t.target)}}else!t.target.classList.contains("apexcharts-inactive-legend")&&i&&new V(this.ctx).toggleSeriesOnHover(t,t.target)}},{key:"onLegendClick",value:function(t){var e=this.w;if(!e.config.legend.customLegendItems.length&&(t.target.classList.contains("apexcharts-legend-series")||t.target.classList.contains("apexcharts-legend-text")||t.target.classList.contains("apexcharts-legend-marker"))){var i=parseInt(t.target.getAttribute("rel"),10)-1,a="true"===t.target.getAttribute("data:collapsed"),s=this.w.config.chart.events.legendClick;"function"==typeof s&&s(this.ctx,i,this.w),this.ctx.events.fireEvent("legendClick",[this.ctx,i,this.w]);var r=this.w.config.legend.markers.onClick;"function"==typeof r&&t.target.classList.contains("apexcharts-legend-marker")&&(r(this.ctx,i,this.w),this.ctx.events.fireEvent("legendMarkerClick",[this.ctx,i,this.w])),"treemap"!==e.config.chart.type&&"heatmap"!==e.config.chart.type&&!this.isBarsDistributed&&e.config.legend.onItemClick.toggleDataSeries&&this.legendHelpers.toggleDataSeries(i,a)}}}]),t}(),ut=function(){function t(e){n(this,t),this.ctx=e,this.w=e.w;var i=this.w;this.ev=this.w.config.chart.events,this.selectedClass="apexcharts-selected",this.localeValues=this.w.globals.locale.toolbar,this.minX=i.globals.minX,this.maxX=i.globals.maxX}return h(t,[{key:"createToolbar",value:function(){var t=this,e=this.w,i=function(){return document.createElement("div")},a=i();if(a.setAttribute("class","apexcharts-toolbar"),a.style.top=e.config.chart.toolbar.offsetY+"px",a.style.right=3-e.config.chart.toolbar.offsetX+"px",e.globals.dom.elWrap.appendChild(a),this.elZoom=i(),this.elZoomIn=i(),this.elZoomOut=i(),this.elPan=i(),this.elSelection=i(),this.elZoomReset=i(),this.elMenuIcon=i(),this.elMenu=i(),this.elCustomIcons=[],this.t=e.config.chart.toolbar.tools,Array.isArray(this.t.customIcons))for(var s=0;s\n \n \n\n'),o("zoomOut",this.elZoomOut,'\n \n \n\n');var n=function(i){t.t[i]&&e.config.chart[i].enabled&&r.push({el:"zoom"===i?t.elZoom:t.elSelection,icon:"string"==typeof t.t[i]?t.t[i]:"zoom"===i?'\n \n \n \n':'\n \n \n',title:t.localeValues["zoom"===i?"selectionZoom":"selection"],class:e.globals.isTouchDevice?"apexcharts-element-hidden":"apexcharts-".concat(i,"-icon")})};n("zoom"),n("selection"),this.t.pan&&e.config.chart.zoom.enabled&&r.push({el:this.elPan,icon:"string"==typeof this.t.pan?this.t.pan:'\n \n \n \n \n \n \n \n',title:this.localeValues.pan,class:e.globals.isTouchDevice?"apexcharts-element-hidden":"apexcharts-pan-icon"}),o("reset",this.elZoomReset,'\n \n \n'),this.t.download&&r.push({el:this.elMenuIcon,icon:"string"==typeof this.t.download?this.t.download:'',title:this.localeValues.menu,class:"apexcharts-menu-icon"});for(var l=0;l0&&e.height>0&&this.slDraggableRect.selectize({points:"l, r",pointSize:8,pointType:"rect"}).resize({constraint:{minX:0,minY:0,maxX:t.globals.gridWidth,maxY:t.globals.gridHeight}}).on("resizing",this.selectionDragging.bind(this,"resizing"))}}},{key:"preselectedSelection",value:function(){var t=this.w,e=this.xyRatios;if(!t.globals.zoomEnabled)if(void 0!==t.globals.selection&&null!==t.globals.selection)this.drawSelectionRect(t.globals.selection);else if(void 0!==t.config.chart.selection.xaxis.min&&void 0!==t.config.chart.selection.xaxis.max){var i=(t.config.chart.selection.xaxis.min-t.globals.minX)/e.xRatio,a=t.globals.gridWidth-(t.globals.maxX-t.config.chart.selection.xaxis.max)/e.xRatio-i;t.globals.isRangeBar&&(i=(t.config.chart.selection.xaxis.min-t.globals.yAxisScale[0].niceMin)/e.invertedYRatio,a=(t.config.chart.selection.xaxis.max-t.config.chart.selection.xaxis.min)/e.invertedYRatio);var s={x:i,y:0,width:a,height:t.globals.gridHeight,translateX:0,translateY:0,selectionEnabled:!0};this.drawSelectionRect(s),this.makeSelectionRectDraggable(),"function"==typeof t.config.chart.events.selection&&t.config.chart.events.selection(this.ctx,{xaxis:{min:t.config.chart.selection.xaxis.min,max:t.config.chart.selection.xaxis.max},yaxis:{}})}}},{key:"drawSelectionRect",value:function(t){var e=t.x,i=t.y,a=t.width,s=t.height,r=t.translateX,o=void 0===r?0:r,n=t.translateY,l=void 0===n?0:n,h=this.w,c=this.zoomRect,d=this.selectionRect;if(this.dragged||null!==h.globals.selection){var g={transform:"translate("+o+", "+l+")"};h.globals.zoomEnabled&&this.dragged&&(a<0&&(a=1),c.attr({x:e,y:i,width:a,height:s,fill:h.config.chart.zoom.zoomedArea.fill.color,"fill-opacity":h.config.chart.zoom.zoomedArea.fill.opacity,stroke:h.config.chart.zoom.zoomedArea.stroke.color,"stroke-width":h.config.chart.zoom.zoomedArea.stroke.width,"stroke-opacity":h.config.chart.zoom.zoomedArea.stroke.opacity}),A.setAttrs(c.node,g)),h.globals.selectionEnabled&&(d.attr({x:e,y:i,width:a>0?a:0,height:s>0?s:0,fill:h.config.chart.selection.fill.color,"fill-opacity":h.config.chart.selection.fill.opacity,stroke:h.config.chart.selection.stroke.color,"stroke-width":h.config.chart.selection.stroke.width,"stroke-dasharray":h.config.chart.selection.stroke.dashArray,"stroke-opacity":h.config.chart.selection.stroke.opacity}),A.setAttrs(d.node,g))}}},{key:"hideSelectionRect",value:function(t){t&&t.attr({x:0,y:0,width:0,height:0})}},{key:"selectionDrawing",value:function(t){var e=t.context,i=t.zoomtype,a=this.w,s=e,r=this.gridRect.getBoundingClientRect(),o=s.startX-1,n=s.startY,l=!1,h=!1,c=s.clientX-r.left-o,d=s.clientY-r.top-n,g={};return Math.abs(c+o)>a.globals.gridWidth?c=a.globals.gridWidth-o:s.clientX-r.left<0&&(c=o),o>s.clientX-r.left&&(l=!0,c=Math.abs(c)),n>s.clientY-r.top&&(h=!0,d=Math.abs(d)),g="x"===i?{x:l?o-c:o,y:0,width:c,height:a.globals.gridHeight}:"y"===i?{x:0,y:h?n-d:n,width:a.globals.gridWidth,height:d}:{x:l?o-c:o,y:h?n-d:n,width:c,height:d},s.drawSelectionRect(g),s.selectionDragging("resizing"),g}},{key:"selectionDragging",value:function(t,e){var i=this,a=this.w,s=this.xyRatios,r=this.selectionRect,o=0;"resizing"===t&&(o=30);var n=function(t){return parseFloat(r.node.getAttribute(t))},l={x:n("x"),y:n("y"),width:n("width"),height:n("height")};a.globals.selection=l,"function"==typeof a.config.chart.events.selection&&a.globals.selectionEnabled&&(clearTimeout(this.w.globals.selectionResizeTimer),this.w.globals.selectionResizeTimer=window.setTimeout((function(){var t,e,o,n,l=i.gridRect.getBoundingClientRect(),h=r.node.getBoundingClientRect();a.globals.isRangeBar?(t=a.globals.yAxisScale[0].niceMin+(h.left-l.left)*s.invertedYRatio,e=a.globals.yAxisScale[0].niceMin+(h.right-l.left)*s.invertedYRatio,o=0,n=1):(t=a.globals.xAxisScale.niceMin+(h.left-l.left)*s.xRatio,e=a.globals.xAxisScale.niceMin+(h.right-l.left)*s.xRatio,o=a.globals.yAxisScale[0].niceMin+(l.bottom-h.bottom)*s.yRatio[0],n=a.globals.yAxisScale[0].niceMax-(h.top-l.top)*s.yRatio[0]);var c={xaxis:{min:t,max:e},yaxis:{min:o,max:n}};a.config.chart.events.selection(i.ctx,c),a.config.chart.brush.enabled&&void 0!==a.config.chart.events.brushScrolled&&a.config.chart.events.brushScrolled(i.ctx,c)}),o))}},{key:"selectionDrawn",value:function(t){var e=t.context,i=t.zoomtype,a=this.w,s=e,r=this.xyRatios,o=this.ctx.toolbar;if(s.startX>s.endX){var n=s.startX;s.startX=s.endX,s.endX=n}if(s.startY>s.endY){var l=s.startY;s.startY=s.endY,s.endY=l}var h=void 0,c=void 0;a.globals.isRangeBar?(h=a.globals.yAxisScale[0].niceMin+s.startX*r.invertedYRatio,c=a.globals.yAxisScale[0].niceMin+s.endX*r.invertedYRatio):(h=a.globals.xAxisScale.niceMin+s.startX*r.xRatio,c=a.globals.xAxisScale.niceMin+s.endX*r.xRatio);var d=[],g=[];if(a.config.yaxis.forEach((function(t,e){d.push(a.globals.yAxisScale[e].niceMax-r.yRatio[e]*s.startY),g.push(a.globals.yAxisScale[e].niceMax-r.yRatio[e]*s.endY)})),s.dragged&&(s.dragX>10||s.dragY>10)&&h!==c)if(a.globals.zoomEnabled){var u=y.clone(a.globals.initialConfig.yaxis),p=y.clone(a.globals.initialConfig.xaxis);if(a.globals.zoomed=!0,a.config.xaxis.convertedCatToNumeric&&(h=Math.floor(h),c=Math.floor(c),h<1&&(h=1,c=a.globals.dataPoints),c-h<2&&(c=h+1)),"xy"!==i&&"x"!==i||(p={min:h,max:c}),"xy"!==i&&"y"!==i||u.forEach((function(t,e){u[e].min=g[e],u[e].max=d[e]})),a.config.chart.zoom.autoScaleYaxis){var f=new $(s.ctx);u=f.autoScaleY(s.ctx,u,{xaxis:p})}if(o){var x=o.getBeforeZoomRange(p,u);x&&(p=x.xaxis?x.xaxis:p,u=x.yaxis?x.yaxis:u)}var b={xaxis:p};a.config.chart.group||(b.yaxis=u),s.ctx.updateHelpers._updateOptions(b,!1,s.w.config.chart.animations.dynamicAnimation.enabled),"function"==typeof a.config.chart.events.zoomed&&o.zoomCallback(p,u)}else if(a.globals.selectionEnabled){var v,m=null;v={min:h,max:c},"xy"!==i&&"y"!==i||(m=y.clone(a.config.yaxis)).forEach((function(t,e){m[e].min=g[e],m[e].max=d[e]})),a.globals.selection=s.selection,"function"==typeof a.config.chart.events.selection&&a.config.chart.events.selection(s.ctx,{xaxis:v,yaxis:m})}}},{key:"panDragging",value:function(t){var e=t.context,i=this.w,a=e;if(void 0!==i.globals.lastClientPosition.x){var s=i.globals.lastClientPosition.x-a.clientX,r=i.globals.lastClientPosition.y-a.clientY;Math.abs(s)>Math.abs(r)&&s>0?this.moveDirection="left":Math.abs(s)>Math.abs(r)&&s<0?this.moveDirection="right":Math.abs(r)>Math.abs(s)&&r>0?this.moveDirection="up":Math.abs(r)>Math.abs(s)&&r<0&&(this.moveDirection="down")}i.globals.lastClientPosition={x:a.clientX,y:a.clientY};var o=i.globals.isRangeBar?i.globals.minY:i.globals.minX,n=i.globals.isRangeBar?i.globals.maxY:i.globals.maxX;i.config.xaxis.convertedCatToNumeric||a.panScrolled(o,n)}},{key:"delayedPanScrolled",value:function(){var t=this.w,e=t.globals.minX,i=t.globals.maxX,a=(t.globals.maxX-t.globals.minX)/2;"left"===this.moveDirection?(e=t.globals.minX+a,i=t.globals.maxX+a):"right"===this.moveDirection&&(e=t.globals.minX-a,i=t.globals.maxX-a),e=Math.floor(e),i=Math.floor(i),this.updateScrolledChart({xaxis:{min:e,max:i}},e,i)}},{key:"panScrolled",value:function(t,e){var i=this.w,a=this.xyRatios,s=y.clone(i.globals.initialConfig.yaxis),r=a.xRatio,o=i.globals.minX,n=i.globals.maxX;i.globals.isRangeBar&&(r=a.invertedYRatio,o=i.globals.minY,n=i.globals.maxY),"left"===this.moveDirection?(t=o+i.globals.gridWidth/15*r,e=n+i.globals.gridWidth/15*r):"right"===this.moveDirection&&(t=o-i.globals.gridWidth/15*r,e=n-i.globals.gridWidth/15*r),i.globals.isRangeBar||(ti.globals.initialMaxX)&&(t=o,e=n);var l={min:t,max:e};i.config.chart.zoom.autoScaleYaxis&&(s=new $(this.ctx).autoScaleY(this.ctx,s,{xaxis:l}));var h={xaxis:{min:t,max:e}};i.config.chart.group||(h.yaxis=s),this.updateScrolledChart(h,t,e)}},{key:"updateScrolledChart",value:function(t,e,i){var a=this.w;this.ctx.updateHelpers._updateOptions(t,!1,!1),"function"==typeof a.config.chart.events.scrolled&&a.config.chart.events.scrolled(this.ctx,{xaxis:{min:e,max:i}})}}]),i}(ut),ft=function(){function t(e){n(this,t),this.w=e.w,this.ttCtx=e,this.ctx=e.ctx}return h(t,[{key:"getNearestValues",value:function(t){var e=t.hoverArea,i=t.elGrid,a=t.clientX,s=t.clientY,r=this.w,o=i.getBoundingClientRect(),n=o.width,l=o.height,h=n/(r.globals.dataPoints-1),c=l/r.globals.dataPoints,d=this.hasBars();!r.globals.comboCharts&&!d||r.config.xaxis.convertedCatToNumeric||(h=n/r.globals.dataPoints);var g=a-o.left-r.globals.barPadForNumericAxis,u=s-o.top;g<0||u<0||g>n||u>l?(e.classList.remove("hovering-zoom"),e.classList.remove("hovering-pan")):r.globals.zoomEnabled?(e.classList.remove("hovering-pan"),e.classList.add("hovering-zoom")):r.globals.panEnabled&&(e.classList.remove("hovering-zoom"),e.classList.add("hovering-pan"));var p=Math.round(g/h),f=Math.floor(u/c);d&&!r.config.xaxis.convertedCatToNumeric&&(p=Math.ceil(g/h),p-=1);var x=null,b=null,v=r.globals.seriesXvalues.map((function(t){return t.filter((function(t){return y.isNumber(t)}))})),m=r.globals.seriesYvalues.map((function(t){return t.filter((function(t){return y.isNumber(t)}))}));if(r.globals.isXNumeric){var w=this.ttCtx.getElGrid().getBoundingClientRect(),k=g*(w.width/n),A=u*(w.height/l);x=(b=this.closestInMultiArray(k,A,v,m)).index,p=b.j,null!==x&&(v=r.globals.seriesXvalues[x],p=(b=this.closestInArray(k,v)).index)}return r.globals.capturedSeriesIndex=null===x?-1:x,(!p||p<1)&&(p=0),r.globals.isBarHorizontal?r.globals.capturedDataPointIndex=f:r.globals.capturedDataPointIndex=p,{capturedSeries:x,j:r.globals.isBarHorizontal?f:p,hoverX:g,hoverY:u}}},{key:"closestInMultiArray",value:function(t,e,i,a){var s=this.w,r=0,o=null,n=-1;s.globals.series.length>1?r=this.getFirstActiveXArray(i):o=0;var l=i[r][0],h=Math.abs(t-l);if(i.forEach((function(e){e.forEach((function(e,i){var a=Math.abs(t-e);a<=h&&(h=a,n=i)}))})),-1!==n){var c=a[r][n],d=Math.abs(e-c);o=r,a.forEach((function(t,i){var a=Math.abs(e-t[n]);a<=d&&(d=a,o=i)}))}return{index:o,j:n}}},{key:"getFirstActiveXArray",value:function(t){for(var e=this.w,i=0,a=t.map((function(t,e){return t.length>0?e:-1})),s=0;s0)for(var a=0;a *")):this.w.globals.dom.baseEl.querySelectorAll(".apexcharts-series-markers-wrap > *")}},{key:"getAllMarkers",value:function(){var t=this.w.globals.dom.baseEl.querySelectorAll(".apexcharts-series-markers-wrap");(t=b(t)).sort((function(t,e){var i=Number(t.getAttribute("data:realIndex")),a=Number(e.getAttribute("data:realIndex"));return ai?-1:0}));var e=[];return t.forEach((function(t){e.push(t.querySelector(".apexcharts-marker"))})),e}},{key:"hasMarkers",value:function(t){return this.getElMarkers(t).length>0}},{key:"getElBars",value:function(){return this.w.globals.dom.baseEl.querySelectorAll(".apexcharts-bar-series, .apexcharts-candlestick-series, .apexcharts-boxPlot-series, .apexcharts-rangebar-series")}},{key:"hasBars",value:function(){return this.getElBars().length>0}},{key:"getHoverMarkerSize",value:function(t){var e=this.w,i=e.config.markers.hover.size;return void 0===i&&(i=e.globals.markers.size[t]+e.config.markers.hover.sizeOffset),i}},{key:"toggleAllTooltipSeriesGroups",value:function(t){var e=this.w,i=this.ttCtx;0===i.allTooltipSeriesGroups.length&&(i.allTooltipSeriesGroups=e.globals.dom.baseEl.querySelectorAll(".apexcharts-tooltip-series-group"));for(var a=i.allTooltipSeriesGroups,s=0;s
').concat(i.attrs.name,""),e+="
".concat(i.val,"
")})),v.innerHTML=t+"",m.innerHTML=e+""};o?l.globals.seriesGoals[e][i]&&Array.isArray(l.globals.seriesGoals[e][i])?y():(v.innerHTML="",m.innerHTML=""):y()}else v.innerHTML="",m.innerHTML="";if(null!==p&&(a[e].querySelector(".apexcharts-tooltip-text-z-label").innerHTML=l.config.tooltip.z.title,a[e].querySelector(".apexcharts-tooltip-text-z-value").innerHTML=void 0!==p?p:""),o&&f[0]){if(l.config.tooltip.hideEmptySeries){var w=a[e].querySelector(".apexcharts-tooltip-marker"),k=a[e].querySelector(".apexcharts-tooltip-text");0==parseFloat(c)?(w.style.display="none",k.style.display="none"):(w.style.display="block",k.style.display="block")}null==c||l.globals.ancillaryCollapsedSeriesIndices.indexOf(e)>-1||l.globals.collapsedSeriesIndices.indexOf(e)>-1?f[0].parentNode.style.display="none":f[0].parentNode.style.display=l.config.tooltip.items.display}}},{key:"toggleActiveInactiveSeries",value:function(t){var e=this.w;if(t)this.tooltipUtil.toggleAllTooltipSeriesGroups("enable");else{this.tooltipUtil.toggleAllTooltipSeriesGroups("disable");var i=e.globals.dom.baseEl.querySelector(".apexcharts-tooltip-series-group");i&&(i.classList.add("apexcharts-active"),i.style.display=e.config.tooltip.items.display)}}},{key:"getValuesToPrint",value:function(t){var e=t.i,i=t.j,a=this.w,s=this.ctx.series.filteredSeriesX(),r="",o="",n=null,l=null,h={series:a.globals.series,seriesIndex:e,dataPointIndex:i,w:a},c=a.globals.ttZFormatter;null===i?l=a.globals.series[e]:a.globals.isXNumeric&&"treemap"!==a.config.chart.type?(r=s[e][i],0===s[e].length&&(r=s[this.tooltipUtil.getFirstActiveXArray(s)][i])):r=void 0!==a.globals.labels[i]?a.globals.labels[i]:"";var d=r;return r=a.globals.isXNumeric&&"datetime"===a.config.xaxis.type?new E(this.ctx).xLabelFormat(a.globals.ttKeyFormatter,d,d,{i:void 0,dateFormatter:new X(this.ctx).formatDate,w:this.w}):a.globals.isBarHorizontal?a.globals.yLabelFormatters[0](d,h):a.globals.xLabelFormatter(d,h),void 0!==a.config.tooltip.x.formatter&&(r=a.globals.ttKeyFormatter(d,h)),a.globals.seriesZ.length>0&&a.globals.seriesZ[e].length>0&&(n=c(a.globals.seriesZ[e][i],a)),o="function"==typeof a.config.xaxis.tooltip.formatter?a.globals.xaxisTooltipFormatter(d,h):r,{val:Array.isArray(l)?l.join(" "):l,xVal:Array.isArray(r)?r.join(" "):r,xAxisTTVal:Array.isArray(o)?o.join(" "):o,zVal:n}}},{key:"handleCustomTooltip",value:function(t){var e=t.i,i=t.j,a=t.y1,s=t.y2,r=t.w,o=this.ttCtx.getElTooltip(),n=r.config.tooltip.custom;Array.isArray(n)&&n[e]&&(n=n[e]),o.innerHTML=n({ctx:this.ctx,series:r.globals.series,seriesIndex:e,dataPointIndex:i,y1:a,y2:s,w:r})}}]),t}(),bt=function(){function t(e){n(this,t),this.ttCtx=e,this.ctx=e.ctx,this.w=e.w}return h(t,[{key:"moveXCrosshairs",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,i=this.ttCtx,a=this.w,s=i.getElXCrosshairs(),r=t-i.xcrosshairsWidth/2,o=a.globals.labels.slice().length;if(null!==e&&(r=a.globals.gridWidth/o*e),null===s||a.globals.isBarHorizontal||(s.setAttribute("x",r),s.setAttribute("x1",r),s.setAttribute("x2",r),s.setAttribute("y2",a.globals.gridHeight),s.classList.add("apexcharts-active")),r<0&&(r=0),r>a.globals.gridWidth&&(r=a.globals.gridWidth),i.isXAxisTooltipEnabled){var n=r;"tickWidth"!==a.config.xaxis.crosshairs.width&&"barWidth"!==a.config.xaxis.crosshairs.width||(n=r+i.xcrosshairsWidth/2),this.moveXAxisTooltip(n)}}},{key:"moveYCrosshairs",value:function(t){var e=this.ttCtx;null!==e.ycrosshairs&&A.setAttrs(e.ycrosshairs,{y1:t,y2:t}),null!==e.ycrosshairsHidden&&A.setAttrs(e.ycrosshairsHidden,{y1:t,y2:t})}},{key:"moveXAxisTooltip",value:function(t){var e=this.w,i=this.ttCtx;if(null!==i.xaxisTooltip&&0!==i.xcrosshairsWidth){i.xaxisTooltip.classList.add("apexcharts-active");var a,s=i.xaxisOffY+e.config.xaxis.tooltip.offsetY+e.globals.translateY+1+e.config.xaxis.offsetY;if(t-=i.xaxisTooltip.getBoundingClientRect().width/2,!isNaN(t))t+=e.globals.translateX,a=new A(this.ctx).getTextRects(i.xaxisTooltipText.innerHTML),i.xaxisTooltipText.style.minWidth=a.width+"px",i.xaxisTooltip.style.left=t+"px",i.xaxisTooltip.style.top=s+"px"}}},{key:"moveYAxisTooltip",value:function(t){var e=this.w,i=this.ttCtx;null===i.yaxisTTEls&&(i.yaxisTTEls=e.globals.dom.baseEl.querySelectorAll(".apexcharts-yaxistooltip"));var a=parseInt(i.ycrosshairsHidden.getAttribute("y1"),10),s=e.globals.translateY+a,r=i.yaxisTTEls[t].getBoundingClientRect().height,o=e.globals.translateYAxisX[t]-2;e.config.yaxis[t].opposite&&(o-=26),s-=r/2,-1===e.globals.ignoreYAxisIndexes.indexOf(t)?(i.yaxisTTEls[t].classList.add("apexcharts-active"),i.yaxisTTEls[t].style.top=s+"px",i.yaxisTTEls[t].style.left=o+e.config.yaxis[t].tooltip.offsetX+"px"):i.yaxisTTEls[t].classList.remove("apexcharts-active")}},{key:"moveTooltip",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,a=this.w,s=this.ttCtx,r=s.getElTooltip(),o=s.tooltipRect,n=null!==i?parseFloat(i):1,l=parseFloat(t)+n+5,h=parseFloat(e)+n/2;if(l>a.globals.gridWidth/2&&(l=l-o.ttWidth-n-10),l>a.globals.gridWidth-o.ttWidth-10&&(l=a.globals.gridWidth-o.ttWidth),l<-20&&(l=-20),a.config.tooltip.followCursor){var c=s.getElGrid().getBoundingClientRect();(l=s.e.clientX-c.left)>a.globals.gridWidth/2&&(l-=s.tooltipRect.ttWidth),(h=s.e.clientY+a.globals.translateY-c.top)>a.globals.gridHeight/2&&(h-=s.tooltipRect.ttHeight)}else a.globals.isBarHorizontal||o.ttHeight/2+h>a.globals.gridHeight&&(h=a.globals.gridHeight-o.ttHeight+a.globals.translateY);isNaN(l)||(l+=a.globals.translateX,r.style.left=l+"px",r.style.top=h+"px")}},{key:"moveMarkers",value:function(t,e){var i=this.w,a=this.ttCtx;if(i.globals.markers.size[t]>0)for(var s=i.globals.dom.baseEl.querySelectorAll(" .apexcharts-series[data\\:realIndex='".concat(t,"'] .apexcharts-marker")),r=0;r0&&(h.setAttribute("r",n),h.setAttribute("cx",i),h.setAttribute("cy",a)),this.moveXCrosshairs(i),r.fixedTooltip||this.moveTooltip(i,a,n)}}},{key:"moveDynamicPointsOnHover",value:function(t){var e,i=this.ttCtx,a=i.w,s=0,r=0,o=a.globals.pointsArray;e=new V(this.ctx).getActiveConfigSeriesIndex("asc",["line","area","scatter","bubble"]);var n=i.tooltipUtil.getHoverMarkerSize(e);o[e]&&(s=o[e][t][0],r=o[e][t][1]);var l=i.tooltipUtil.getAllMarkers();if(null!==l)for(var h=0;h0?(l[h]&&l[h].setAttribute("r",n),l[h]&&l[h].setAttribute("cy",d)):l[h]&&l[h].setAttribute("r",0)}}this.moveXCrosshairs(s),i.fixedTooltip||this.moveTooltip(s,r||a.globals.gridHeight,n)}},{key:"moveStickyTooltipOverBars",value:function(t,e){var i=this.w,a=this.ttCtx,s=i.globals.columnSeries?i.globals.columnSeries.length:i.globals.series.length,r=s>=2&&s%2==0?Math.floor(s/2):Math.floor(s/2)+1;i.globals.isBarHorizontal&&(r=new V(this.ctx).getActiveConfigSeriesIndex("desc")+1);var o=i.globals.dom.baseEl.querySelector(".apexcharts-bar-series .apexcharts-series[rel='".concat(r,"'] path[j='").concat(t,"'], .apexcharts-candlestick-series .apexcharts-series[rel='").concat(r,"'] path[j='").concat(t,"'], .apexcharts-boxPlot-series .apexcharts-series[rel='").concat(r,"'] path[j='").concat(t,"'], .apexcharts-rangebar-series .apexcharts-series[rel='").concat(r,"'] path[j='").concat(t,"']"));o||"number"!=typeof e||(o=i.globals.dom.baseEl.querySelector(".apexcharts-bar-series .apexcharts-series[data\\:realIndex='".concat(e,"'] path[j='").concat(t,"'],\n .apexcharts-candlestick-series .apexcharts-series[data\\:realIndex='").concat(e,"'] path[j='").concat(t,"'],\n .apexcharts-boxPlot-series .apexcharts-series[data\\:realIndex='").concat(e,"'] path[j='").concat(t,"'],\n .apexcharts-rangebar-series .apexcharts-series[data\\:realIndex='").concat(e,"'] path[j='").concat(t,"']")));var n=o?parseFloat(o.getAttribute("cx")):0,l=o?parseFloat(o.getAttribute("cy")):0,h=o?parseFloat(o.getAttribute("barWidth")):0,c=a.getElGrid().getBoundingClientRect(),d=o&&(o.classList.contains("apexcharts-candlestick-area")||o.classList.contains("apexcharts-boxPlot-area"));i.globals.isXNumeric?(o&&!d&&(n-=s%2!=0?h/2:0),o&&d&&i.globals.comboCharts&&(n-=h/2)):i.globals.isBarHorizontal||(n=a.xAxisTicksPositions[t-1]+a.dataPointsDividedWidth/2,isNaN(n)&&(n=a.xAxisTicksPositions[t]-a.dataPointsDividedWidth/2)),i.globals.isBarHorizontal?l-=a.tooltipRect.ttHeight:i.config.tooltip.followCursor?l=a.e.clientY-c.top-a.tooltipRect.ttHeight/2:l+a.tooltipRect.ttHeight+15>i.globals.gridHeight&&(l=i.globals.gridHeight),i.globals.isBarHorizontal||this.moveXCrosshairs(n),a.fixedTooltip||this.moveTooltip(n,l||i.globals.gridHeight)}}]),t}(),vt=function(){function t(e){n(this,t),this.w=e.w,this.ttCtx=e,this.ctx=e.ctx,this.tooltipPosition=new bt(e)}return h(t,[{key:"drawDynamicPoints",value:function(){var t=this.w,e=new A(this.ctx),i=new W(this.ctx),a=t.globals.dom.baseEl.querySelectorAll(".apexcharts-series");a=b(a),t.config.chart.stacked&&a.sort((function(t,e){return parseFloat(t.getAttribute("data:realIndex"))-parseFloat(e.getAttribute("data:realIndex"))}));for(var s=0;s2&&void 0!==arguments[2]?arguments[2]:null,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,s=this.w;"bubble"!==s.config.chart.type&&this.newPointSize(t,e);var r=e.getAttribute("cx"),o=e.getAttribute("cy");if(null!==i&&null!==a&&(r=i,o=a),this.tooltipPosition.moveXCrosshairs(r),!this.fixedTooltip){if("radar"===s.config.chart.type){var n=this.ttCtx.getElGrid().getBoundingClientRect();r=this.ttCtx.e.clientX-n.left}this.tooltipPosition.moveTooltip(r,o,s.config.markers.hover.size)}}},{key:"enlargePoints",value:function(t){for(var e=this.w,i=this,a=this.ttCtx,s=t,r=e.globals.dom.baseEl.querySelectorAll(".apexcharts-series:not(.apexcharts-series-collapsed) .apexcharts-marker"),o=e.config.markers.hover.size,n=0;n=0?t[e].setAttribute("r",i):t[e].setAttribute("r",0)}}}]),t}(),mt=function(){function t(e){n(this,t),this.w=e.w;var i=this.w;this.ttCtx=e,this.isVerticalGroupedRangeBar=!i.globals.isBarHorizontal&&"rangeBar"===i.config.chart.type&&i.config.plotOptions.bar.rangeBarGroupRows}return h(t,[{key:"getAttr",value:function(t,e){return parseFloat(t.target.getAttribute(e))}},{key:"handleHeatTreeTooltip",value:function(t){var e=t.e,i=t.opt,a=t.x,s=t.y,r=t.type,o=this.ttCtx,n=this.w;if(e.target.classList.contains("apexcharts-".concat(r,"-rect"))){var l=this.getAttr(e,"i"),h=this.getAttr(e,"j"),c=this.getAttr(e,"cx"),d=this.getAttr(e,"cy"),g=this.getAttr(e,"width"),u=this.getAttr(e,"height");if(o.tooltipLabels.drawSeriesTexts({ttItems:i.ttItems,i:l,j:h,shared:!1,e}),n.globals.capturedSeriesIndex=l,n.globals.capturedDataPointIndex=h,a=c+o.tooltipRect.ttWidth/2+g,s=d+o.tooltipRect.ttHeight/2-u/2,o.tooltipPosition.moveXCrosshairs(c+g/2),a>n.globals.gridWidth/2&&(a=c-o.tooltipRect.ttWidth/2+g),o.w.config.tooltip.followCursor){var p=n.globals.dom.elWrap.getBoundingClientRect();a=n.globals.clientX-p.left-(a>n.globals.gridWidth/2?o.tooltipRect.ttWidth:0),s=n.globals.clientY-p.top-(s>n.globals.gridHeight/2?o.tooltipRect.ttHeight:0)}}return{x:a,y:s}}},{key:"handleMarkerTooltip",value:function(t){var e,i,a=t.e,s=t.opt,r=t.x,o=t.y,n=this.w,l=this.ttCtx;if(a.target.classList.contains("apexcharts-marker")){var h=parseInt(s.paths.getAttribute("cx"),10),c=parseInt(s.paths.getAttribute("cy"),10),d=parseFloat(s.paths.getAttribute("val"));if(i=parseInt(s.paths.getAttribute("rel"),10),e=parseInt(s.paths.parentNode.parentNode.parentNode.getAttribute("rel"),10)-1,l.intersect){var g=y.findAncestor(s.paths,"apexcharts-series");g&&(e=parseInt(g.getAttribute("data:realIndex"),10))}if(l.tooltipLabels.drawSeriesTexts({ttItems:s.ttItems,i:e,j:i,shared:!l.showOnIntersect&&n.config.tooltip.shared,e:a}),"mouseup"===a.type&&l.markerClick(a,e,i),n.globals.capturedSeriesIndex=e,n.globals.capturedDataPointIndex=i,r=h,o=c+n.globals.translateY-1.4*l.tooltipRect.ttHeight,l.w.config.tooltip.followCursor){var u=l.getElGrid().getBoundingClientRect();o=l.e.clientY+n.globals.translateY-u.top}d<0&&(o=c),l.marker.enlargeCurrentPoint(i,s.paths,r,o)}return{x:r,y:o}}},{key:"handleBarTooltip",value:function(t){var e,i,a=t.e,s=t.opt,r=this.w,o=this.ttCtx,n=o.getElTooltip(),l=0,h=0,c=0,d=this.getBarTooltipXY({e:a,opt:s});e=d.i;var g=d.barHeight,u=d.j;r.globals.capturedSeriesIndex=e,r.globals.capturedDataPointIndex=u,r.globals.isBarHorizontal&&o.tooltipUtil.hasBars()||!r.config.tooltip.shared?(h=d.x,c=d.y,i=Array.isArray(r.config.stroke.width)?r.config.stroke.width[e]:r.config.stroke.width,l=h):r.globals.comboCharts||r.config.tooltip.shared||(l/=2),isNaN(c)&&(c=r.globals.svgHeight-o.tooltipRect.ttHeight);var p=parseInt(s.paths.parentNode.getAttribute("data:realIndex"),10),f=r.globals.isMultipleYAxis?r.config.yaxis[p]&&r.config.yaxis[p].reversed:r.config.yaxis[0].reversed;if(h+o.tooltipRect.ttWidth>r.globals.gridWidth&&!f?h-=o.tooltipRect.ttWidth:h<0&&(h=0),o.w.config.tooltip.followCursor){var x=o.getElGrid().getBoundingClientRect();c=o.e.clientY-x.top}null===o.tooltip&&(o.tooltip=r.globals.dom.baseEl.querySelector(".apexcharts-tooltip")),r.config.tooltip.shared||(r.globals.comboBarCount>0?o.tooltipPosition.moveXCrosshairs(l+i/2):o.tooltipPosition.moveXCrosshairs(l)),!o.fixedTooltip&&(!r.config.tooltip.shared||r.globals.isBarHorizontal&&o.tooltipUtil.hasBars())&&(f&&(h-=o.tooltipRect.ttWidth)<0&&(h=0),!f||r.globals.isBarHorizontal&&o.tooltipUtil.hasBars()||(c=c+g-2*(r.globals.series[e][u]<0?g:0)),c=c+r.globals.translateY-o.tooltipRect.ttHeight/2,n.style.left=h+r.globals.translateX+"px",n.style.top=c+"px")}},{key:"getBarTooltipXY",value:function(t){var e=this,i=t.e,a=t.opt,s=this.w,r=null,o=this.ttCtx,n=0,l=0,h=0,c=0,d=0,g=i.target.classList;if(g.contains("apexcharts-bar-area")||g.contains("apexcharts-candlestick-area")||g.contains("apexcharts-boxPlot-area")||g.contains("apexcharts-rangebar-area")){var u=i.target,p=u.getBoundingClientRect(),f=a.elGrid.getBoundingClientRect(),x=p.height;d=p.height;var b=p.width,v=parseInt(u.getAttribute("cx"),10),m=parseInt(u.getAttribute("cy"),10);c=parseFloat(u.getAttribute("barWidth"));var y="touchmove"===i.type?i.touches[0].clientX:i.clientX;r=parseInt(u.getAttribute("j"),10),n=parseInt(u.parentNode.getAttribute("rel"),10)-1;var w=u.getAttribute("data-range-y1"),k=u.getAttribute("data-range-y2");s.globals.comboCharts&&(n=parseInt(u.parentNode.getAttribute("data:realIndex"),10));var A=function(t){return s.globals.isXNumeric?v-b/2:e.isVerticalGroupedRangeBar?v+b/2:v-o.dataPointsDividedWidth+b/2},S=function(){return m-o.dataPointsDividedHeight+x/2-o.tooltipRect.ttHeight/2};o.tooltipLabels.drawSeriesTexts({ttItems:a.ttItems,i:n,j:r,y1:w?parseInt(w,10):null,y2:k?parseInt(k,10):null,shared:!o.showOnIntersect&&s.config.tooltip.shared,e:i}),s.config.tooltip.followCursor?s.globals.isBarHorizontal?(l=y-f.left+15,h=S()):(l=A(),h=i.clientY-f.top-o.tooltipRect.ttHeight/2-15):s.globals.isBarHorizontal?((l=v)0&&i.setAttribute("width",e.xcrosshairsWidth)}},{key:"handleYCrosshair",value:function(){var t=this.w,e=this.ttCtx;e.ycrosshairs=t.globals.dom.baseEl.querySelector(".apexcharts-ycrosshairs"),e.ycrosshairsHidden=t.globals.dom.baseEl.querySelector(".apexcharts-ycrosshairs-hidden")}},{key:"drawYaxisTooltipText",value:function(t,e,i){var a=this.ttCtx,s=this.w,r=s.globals.yLabelFormatters[t];if(a.yaxisTooltips[t]){var o=a.getElGrid().getBoundingClientRect(),n=(e-o.top)*i.yRatio[t],l=s.globals.maxYArr[t]-s.globals.minYArr[t],h=s.globals.minYArr[t]+(l-n);a.tooltipPosition.moveYCrosshairs(e-o.top),a.yaxisTooltipText[t].innerHTML=r(h),a.tooltipPosition.moveYAxisTooltip(t)}}}]),t}(),wt=function(){function t(e){n(this,t),this.ctx=e,this.w=e.w;var i=this.w;this.tConfig=i.config.tooltip,this.tooltipUtil=new ft(this),this.tooltipLabels=new xt(this),this.tooltipPosition=new bt(this),this.marker=new vt(this),this.intersect=new mt(this),this.axesTooltip=new yt(this),this.showOnIntersect=this.tConfig.intersect,this.showTooltipTitle=this.tConfig.x.show,this.fixedTooltip=this.tConfig.fixed.enabled,this.xaxisTooltip=null,this.yaxisTTEls=null,this.isBarShared=!i.globals.isBarHorizontal&&this.tConfig.shared,this.lastHoverTime=Date.now()}return h(t,[{key:"getElTooltip",value:function(t){return t||(t=this),t.w.globals.dom.baseEl?t.w.globals.dom.baseEl.querySelector(".apexcharts-tooltip"):null}},{key:"getElXCrosshairs",value:function(){return this.w.globals.dom.baseEl.querySelector(".apexcharts-xcrosshairs")}},{key:"getElGrid",value:function(){return this.w.globals.dom.baseEl.querySelector(".apexcharts-grid")}},{key:"drawTooltip",value:function(t){var e=this.w;this.xyRatios=t,this.isXAxisTooltipEnabled=e.config.xaxis.tooltip.enabled&&e.globals.axisCharts,this.yaxisTooltips=e.config.yaxis.map((function(t,i){return!!(t.show&&t.tooltip.enabled&&e.globals.axisCharts)})),this.allTooltipSeriesGroups=[],e.globals.axisCharts||(this.showTooltipTitle=!1);var i=document.createElement("div");if(i.classList.add("apexcharts-tooltip"),e.config.tooltip.cssClass&&i.classList.add(e.config.tooltip.cssClass),i.classList.add("apexcharts-theme-".concat(this.tConfig.theme)),e.globals.dom.elWrap.appendChild(i),e.globals.axisCharts){this.axesTooltip.drawXaxisTooltip(),this.axesTooltip.drawYaxisTooltip(),this.axesTooltip.setXCrosshairWidth(),this.axesTooltip.handleYCrosshair();var a=new q(this.ctx);this.xAxisTicksPositions=a.getXAxisTicksPositions()}if(!e.globals.comboCharts&&!this.tConfig.intersect&&"rangeBar"!==e.config.chart.type||this.tConfig.shared||(this.showOnIntersect=!0),0!==e.config.markers.size&&0!==e.globals.markers.largestSize||this.marker.drawDynamicPoints(this),e.globals.collapsedSeries.length!==e.globals.series.length){this.dataPointsDividedHeight=e.globals.gridHeight/e.globals.dataPoints,this.dataPointsDividedWidth=e.globals.gridWidth/e.globals.dataPoints,this.showTooltipTitle&&(this.tooltipTitle=document.createElement("div"),this.tooltipTitle.classList.add("apexcharts-tooltip-title"),this.tooltipTitle.style.fontFamily=this.tConfig.style.fontFamily||e.config.chart.fontFamily,this.tooltipTitle.style.fontSize=this.tConfig.style.fontSize,i.appendChild(this.tooltipTitle));var s=e.globals.series.length;(e.globals.xyCharts||e.globals.comboCharts)&&this.tConfig.shared&&(s=this.showOnIntersect?1:e.globals.series.length),this.legendLabels=e.globals.dom.baseEl.querySelectorAll(".apexcharts-legend-text"),this.ttItems=this.createTTElements(s),this.addSVGEvents()}}},{key:"createTTElements",value:function(t){for(var e=this,i=this.w,a=[],s=this.getElTooltip(),r=function(r){var o=document.createElement("div");o.classList.add("apexcharts-tooltip-series-group"),o.style.order=i.config.tooltip.inverseOrder?t-r:r+1,e.tConfig.shared&&e.tConfig.enabledOnSeries&&Array.isArray(e.tConfig.enabledOnSeries)&&e.tConfig.enabledOnSeries.indexOf(r)<0&&o.classList.add("apexcharts-tooltip-series-group-hidden");var n=document.createElement("span");n.classList.add("apexcharts-tooltip-marker"),n.style.backgroundColor=i.globals.colors[r],o.appendChild(n);var l=document.createElement("div");l.classList.add("apexcharts-tooltip-text"),l.style.fontFamily=e.tConfig.style.fontFamily||i.config.chart.fontFamily,l.style.fontSize=e.tConfig.style.fontSize,["y","goals","z"].forEach((function(t){var e=document.createElement("div");e.classList.add("apexcharts-tooltip-".concat(t,"-group"));var i=document.createElement("span");i.classList.add("apexcharts-tooltip-text-".concat(t,"-label")),e.appendChild(i);var a=document.createElement("span");a.classList.add("apexcharts-tooltip-text-".concat(t,"-value")),e.appendChild(a),l.appendChild(e)})),o.appendChild(l),s.appendChild(o),a.push(o)},o=0;o0&&this.addPathsEventListeners(u,c),this.tooltipUtil.hasBars()&&!this.tConfig.shared&&this.addDatapointEventsListeners(c)}}},{key:"drawFixedTooltipRect",value:function(){var t=this.w,e=this.getElTooltip(),i=e.getBoundingClientRect(),a=i.width+10,s=i.height+10,r=this.tConfig.fixed.offsetX,o=this.tConfig.fixed.offsetY,n=this.tConfig.fixed.position.toLowerCase();return n.indexOf("right")>-1&&(r=r+t.globals.svgWidth-a+10),n.indexOf("bottom")>-1&&(o=o+t.globals.svgHeight-s-10),e.style.left=r+"px",e.style.top=o+"px",{x:r,y:o,ttWidth:a,ttHeight:s}}},{key:"addDatapointEventsListeners",value:function(t){var e=this.w.globals.dom.baseEl.querySelectorAll(".apexcharts-series-markers .apexcharts-marker, .apexcharts-bar-area, .apexcharts-candlestick-area, .apexcharts-boxPlot-area, .apexcharts-rangebar-area");this.addPathsEventListeners(e,t)}},{key:"addPathsEventListeners",value:function(t,e){for(var i=this,a=function(a){var s={paths:t[a],tooltipEl:e.tooltipEl,tooltipY:e.tooltipY,tooltipX:e.tooltipX,elGrid:e.elGrid,hoverArea:e.hoverArea,ttItems:e.ttItems};["mousemove","mouseup","touchmove","mouseout","touchend"].map((function(e){return t[a].addEventListener(e,i.onSeriesHover.bind(i,s),{capture:!1,passive:!0})}))},s=0;s=100?this.seriesHover(t,e):(clearTimeout(this.seriesHoverTimeout),this.seriesHoverTimeout=setTimeout((function(){i.seriesHover(t,e)}),100-a))}},{key:"seriesHover",value:function(t,e){var i=this;this.lastHoverTime=Date.now();var a=[],s=this.w;s.config.chart.group&&(a=this.ctx.getGroupedCharts()),s.globals.axisCharts&&(s.globals.minX===-1/0&&s.globals.maxX===1/0||0===s.globals.dataPoints)||(a.length?a.forEach((function(a){var s=i.getElTooltip(a),r={paths:t.paths,tooltipEl:s,tooltipY:t.tooltipY,tooltipX:t.tooltipX,elGrid:t.elGrid,hoverArea:t.hoverArea,ttItems:a.w.globals.tooltip.ttItems};a.w.globals.minX===i.w.globals.minX&&a.w.globals.maxX===i.w.globals.maxX&&a.w.globals.tooltip.seriesHoverByContext({chartCtx:a,ttCtx:a.w.globals.tooltip,opt:r,e})})):this.seriesHoverByContext({chartCtx:this.ctx,ttCtx:this.w.globals.tooltip,opt:t,e}))}},{key:"seriesHoverByContext",value:function(t){var e=t.chartCtx,i=t.ttCtx,a=t.opt,s=t.e,r=e.w,o=this.getElTooltip();o&&(i.tooltipRect={x:0,y:0,ttWidth:o.getBoundingClientRect().width,ttHeight:o.getBoundingClientRect().height},i.e=s,!i.tooltipUtil.hasBars()||r.globals.comboCharts||i.isBarShared||this.tConfig.onDatasetHover.highlightDataSeries&&new V(e).toggleSeriesOnHover(s,s.target.parentNode),i.fixedTooltip&&i.drawFixedTooltipRect(),r.globals.axisCharts?i.axisChartsTooltips({e:s,opt:a,tooltipRect:i.tooltipRect}):i.nonAxisChartsTooltips({e:s,opt:a,tooltipRect:i.tooltipRect}))}},{key:"axisChartsTooltips",value:function(t){var e,i,a=t.e,s=t.opt,r=this.w,o=s.elGrid.getBoundingClientRect(),n="touchmove"===a.type?a.touches[0].clientX:a.clientX,l="touchmove"===a.type?a.touches[0].clientY:a.clientY;if(this.clientY=l,this.clientX=n,r.globals.capturedSeriesIndex=-1,r.globals.capturedDataPointIndex=-1,lo.top+o.height)this.handleMouseOut(s);else{if(Array.isArray(this.tConfig.enabledOnSeries)&&!r.config.tooltip.shared){var h=parseInt(s.paths.getAttribute("index"),10);if(this.tConfig.enabledOnSeries.indexOf(h)<0)return void this.handleMouseOut(s)}var c=this.getElTooltip(),d=this.getElXCrosshairs(),g=r.globals.xyCharts||"bar"===r.config.chart.type&&!r.globals.isBarHorizontal&&this.tooltipUtil.hasBars()&&this.tConfig.shared||r.globals.comboCharts&&this.tooltipUtil.hasBars();if("mousemove"===a.type||"touchmove"===a.type||"mouseup"===a.type){if(r.globals.collapsedSeries.length+r.globals.ancillaryCollapsedSeries.length===r.globals.series.length)return;null!==d&&d.classList.add("apexcharts-active");var u=this.yaxisTooltips.filter((function(t){return!0===t}));if(null!==this.ycrosshairs&&u.length&&this.ycrosshairs.classList.add("apexcharts-active"),g&&!this.showOnIntersect)this.handleStickyTooltip(a,n,l,s);else if("heatmap"===r.config.chart.type||"treemap"===r.config.chart.type){var p=this.intersect.handleHeatTreeTooltip({e:a,opt:s,x:e,y:i,type:r.config.chart.type});e=p.x,i=p.y,c.style.left=e+"px",c.style.top=i+"px"}else this.tooltipUtil.hasBars()&&this.intersect.handleBarTooltip({e:a,opt:s}),this.tooltipUtil.hasMarkers()&&this.intersect.handleMarkerTooltip({e:a,opt:s,x:e,y:i});if(this.yaxisTooltips.length)for(var f=0;fl.width)this.handleMouseOut(a);else if(null!==n)this.handleStickyCapturedSeries(t,n,a,o);else if(this.tooltipUtil.isXoverlap(o)||s.globals.isBarHorizontal){var h=s.globals.series.findIndex((function(t,e){return!s.globals.collapsedSeriesIndices.includes(e)}));this.create(t,this,h,o,a.ttItems)}}},{key:"handleStickyCapturedSeries",value:function(t,e,i,a){var s=this.w;if(this.tConfig.shared||null!==s.globals.series[e][a]){if(void 0!==s.globals.series[e][a])this.tConfig.shared&&this.tooltipUtil.isXoverlap(a)&&this.tooltipUtil.isInitialSeriesSameLen()?this.create(t,this,e,a,i.ttItems):this.create(t,this,e,a,i.ttItems,!1);else if(this.tooltipUtil.isXoverlap(a)){var r=s.globals.series.findIndex((function(t,e){return!s.globals.collapsedSeriesIndices.includes(e)}));this.create(t,this,r,a,i.ttItems)}}else this.handleMouseOut(i)}},{key:"deactivateHoverFilter",value:function(){for(var t=this.w,e=new A(this.ctx),i=t.globals.dom.Paper.select(".apexcharts-bar-area"),a=0;a5&&void 0!==arguments[5]?arguments[5]:null,S=this.w,C=e;"mouseup"===t.type&&this.markerClick(t,i,a),null===k&&(k=this.tConfig.shared);var L=this.tooltipUtil.hasMarkers(i),P=this.tooltipUtil.getElBars();if(S.config.legend.tooltipHoverFormatter){var I=S.config.legend.tooltipHoverFormatter,T=Array.from(this.legendLabels);T.forEach((function(t){var e=t.getAttribute("data:default-text");t.innerHTML=decodeURIComponent(e)}));for(var M=0;M0?C.marker.enlargePoints(a):C.tooltipPosition.moveDynamicPointsOnHover(a);else if(this.tooltipUtil.hasBars()&&(this.barSeriesHeight=this.tooltipUtil.getBarsHeight(P),this.barSeriesHeight>0)){var R=new A(this.ctx),H=S.globals.dom.Paper.select(".apexcharts-bar-area[j='".concat(a,"']"));this.deactivateHoverFilter(),this.tooltipPosition.moveStickyTooltipOverBars(a,i);for(var D=0;D0&&a.config.plotOptions.bar.hideZeroBarsWhenGrouped&&(u-=c*k)),w&&(u=u+g.height/2-v/2-2);var C=this.barCtx.series[s][r]<0,L=l;switch(this.barCtx.isReversed&&(L=l-d+(C?2*d:0),l-=d),x.position){case"center":p=w?C?L-d/2+y:L+d/2-y:C?L-d/2+g.height/2+y:L+d/2+g.height/2-y;break;case"bottom":p=w?C?L-d+y:L+d-y:C?L-d+g.height+v+y:L+d-g.height/2+v-y;break;case"top":p=w?C?L+y:L-y:C?L-g.height/2-y:L+g.height+y}if(this.barCtx.lastActiveBarSerieIndex===o&&b.enabled){var P=new A(this.barCtx.ctx).getTextRects(this.getStackedTotalDataLabel({realIndex:o,j:r}),f.fontSize);e=C?L-P.height/2-y-b.offsetY+18:L+P.height+y+b.offsetY-18,i=u+b.offsetX}return a.config.chart.stacked||(p<0?p=0+v:p+g.height/3>a.globals.gridHeight&&(p=a.globals.gridHeight-v)),{bcx:h,bcy:l,dataLabelsX:u,dataLabelsY:p,totalDataLabelsX:i,totalDataLabelsY:e,totalDataLabelsAnchor:"middle"}}},{key:"calculateBarsDataLabelsPosition",value:function(t){var e=this.w,i=t.x,a=t.i,s=t.j,r=t.realIndex,o=t.groupIndex,n=t.bcy,l=t.barHeight,h=t.barWidth,c=t.textRects,d=t.dataLabelsX,g=t.strokeWidth,u=t.dataLabelsConfig,p=t.barDataLabelsConfig,f=t.barTotalDataLabelsConfig,x=t.offX,b=t.offY,v=e.globals.gridHeight/e.globals.dataPoints;h=Math.abs(h);var m,y,w=(n+=-1!==o?o*l:0)-(this.barCtx.isRangeBar?0:v)+l/2+c.height/2+b-3,k="start",S=this.barCtx.series[a][s]<0,C=i;switch(this.barCtx.isReversed&&(C=i+h-(S?2*h:0),i=e.globals.gridWidth-h),p.position){case"center":d=S?C+h/2-x:Math.max(c.width/2,C-h/2)+x;break;case"bottom":d=S?C+h-g-Math.round(c.width/2)-x:C-h+g+Math.round(c.width/2)+x;break;case"top":d=S?C-g+Math.round(c.width/2)-x:C-g-Math.round(c.width/2)+x}if(this.barCtx.lastActiveBarSerieIndex===r&&f.enabled){var L=new A(this.barCtx.ctx).getTextRects(this.getStackedTotalDataLabel({realIndex:r,j:s}),u.fontSize);S?(m=C-g+Math.round(L.width/2)-x-f.offsetX-15,k="end"):m=C-g-Math.round(L.width/2)+x+f.offsetX+15,y=w+f.offsetY}return e.config.chart.stacked||(d<0?d=d+c.width+g:d+c.width/2>e.globals.gridWidth&&(d=e.globals.gridWidth-c.width-g)),{bcx:i,bcy:n,dataLabelsX:d,dataLabelsY:w,totalDataLabelsX:m,totalDataLabelsY:y,totalDataLabelsAnchor:k}}},{key:"drawCalculatedDataLabels",value:function(t){var e=t.x,i=t.y,a=t.val,s=t.i,o=t.j,n=t.textRects,l=t.barHeight,h=t.barWidth,c=t.dataLabelsConfig,d=this.w,g="rotate(0)";"vertical"===d.config.plotOptions.bar.dataLabels.orientation&&(g="rotate(-90, ".concat(e,", ").concat(i,")"));var u=new G(this.barCtx.ctx),p=new A(this.barCtx.ctx),f=c.formatter,x=null,b=d.globals.collapsedSeriesIndices.indexOf(s)>-1;if(c.enabled&&!b){x=p.group({class:"apexcharts-data-labels",transform:g});var v="";void 0!==a&&(v=f(a,r(r({},d),{},{seriesIndex:s,dataPointIndex:o,w:d}))),!a&&d.config.plotOptions.bar.hideZeroBarsWhenGrouped&&(v="");var m=d.globals.series[s][o]<0,y=d.config.plotOptions.bar.dataLabels.position;"vertical"===d.config.plotOptions.bar.dataLabels.orientation&&("top"===y&&(c.textAnchor=m?"end":"start"),"center"===y&&(c.textAnchor="middle"),"bottom"===y&&(c.textAnchor=m?"end":"start")),this.barCtx.isRangeBar&&this.barCtx.barOptions.dataLabels.hideOverflowingLabels&&hMath.abs(h)&&(v=""):n.height/1.6>Math.abs(l)&&(v=""));var w=r({},c);this.barCtx.isHorizontal&&a<0&&("start"===c.textAnchor?w.textAnchor="end":"end"===c.textAnchor&&(w.textAnchor="start")),u.plotDataLabelsText({x:e,y:i,text:v,i:s,j:o,parent:x,dataLabelsConfig:w,alwaysDrawDataLabel:!0,offsetCorrection:!0})}return x}},{key:"drawTotalDataLabels",value:function(t){var e,i=t.x,a=t.y,s=t.val,r=t.barWidth,o=t.barHeight,n=t.realIndex,l=t.textAnchor,h=t.barTotalDataLabelsConfig,c=this.w,d=new A(this.barCtx.ctx);return h.enabled&&void 0!==i&&void 0!==a&&this.barCtx.lastActiveBarSerieIndex===n&&(e=d.drawText({x:i-(!c.globals.isBarHorizontal&&c.globals.seriesGroups.length?r/c.globals.seriesGroups.length:0),y:a-(c.globals.isBarHorizontal&&c.globals.seriesGroups.length?o/c.globals.seriesGroups.length:0),foreColor:h.style.color,text:s,textAnchor:l,fontFamily:h.style.fontFamily,fontSize:h.style.fontSize,fontWeight:h.style.fontWeight})),e}}]),t}(),At=function(){function t(e){n(this,t),this.w=e.w,this.barCtx=e}return h(t,[{key:"initVariables",value:function(t){var e=this.w;this.barCtx.series=t,this.barCtx.totalItems=0,this.barCtx.seriesLen=0,this.barCtx.visibleI=-1,this.barCtx.visibleItems=1;for(var i=0;i0&&(this.barCtx.seriesLen=this.barCtx.seriesLen+1,this.barCtx.totalItems+=t[i].length),e.globals.isXNumeric)for(var a=0;ae.globals.minX&&e.globals.seriesX[i][a]0&&(a=l.globals.minXDiff/d),(r=a/c*parseInt(this.barCtx.barOptions.columnWidth,10)/100)<1&&(r=1)}-1===String(this.barCtx.barOptions.columnWidth).indexOf("%")&&(r=parseInt(this.barCtx.barOptions.columnWidth,10)),o=l.globals.gridHeight-this.barCtx.baseLineY[this.barCtx.yaxisIndex]-(this.barCtx.isReversed?l.globals.gridHeight:0)+(this.barCtx.isReversed?2*this.barCtx.baseLineY[this.barCtx.yaxisIndex]:0),t=l.globals.padHorizontal+(a-r*this.barCtx.seriesLen)/2}return l.globals.barHeight=s,l.globals.barWidth=r,{x:t,y:e,yDivision:i,xDivision:a,barHeight:s,barWidth:r,zeroH:o,zeroW:n}}},{key:"initializeStackedPrevVars",value:function(t){var e=t.w;e.globals.hasSeriesGroups?e.globals.seriesGroups.forEach((function(e){t[e]||(t[e]={}),t[e].prevY=[],t[e].prevX=[],t[e].prevYF=[],t[e].prevXF=[],t[e].prevYVal=[],t[e].prevXVal=[]})):(t.prevY=[],t.prevX=[],t.prevYF=[],t.prevXF=[],t.prevYVal=[],t.prevXVal=[])}},{key:"initializeStackedXYVars",value:function(t){var e=t.w;e.globals.hasSeriesGroups?e.globals.seriesGroups.forEach((function(e){t[e]||(t[e]={}),t[e].xArrj=[],t[e].xArrjF=[],t[e].xArrjVal=[],t[e].yArrj=[],t[e].yArrjF=[],t[e].yArrjVal=[]})):(t.xArrj=[],t.xArrjF=[],t.xArrjVal=[],t.yArrj=[],t.yArrjF=[],t.yArrjVal=[])}},{key:"getPathFillColor",value:function(t,e,i,a){var s,r,o,n,l=this.w,h=new N(this.barCtx.ctx),c=null,d=this.barCtx.barOptions.distributed?i:e;return this.barCtx.barOptions.colors.ranges.length>0&&this.barCtx.barOptions.colors.ranges.map((function(a){t[e][i]>=a.from&&t[e][i]<=a.to&&(c=a.color)})),l.config.series[e].data[i]&&l.config.series[e].data[i].fillColor&&(c=l.config.series[e].data[i].fillColor),h.fillPath({seriesNumber:this.barCtx.barOptions.distributed?d:a,dataPointIndex:i,color:c,value:t[e][i],fillConfig:null===(s=l.config.series[e].data[i])||void 0===s?void 0:s.fill,fillType:null!==(r=l.config.series[e].data[i])&&void 0!==r&&null!==(o=r.fill)&&void 0!==o&&o.type?null===(n=l.config.series[e].data[i])||void 0===n?void 0:n.fill.type:Array.isArray(l.config.fill.type)?l.config.fill.type[e]:l.config.fill.type})}},{key:"getStrokeWidth",value:function(t,e,i){var a=0,s=this.w;return this.barCtx.series[t][e]?this.barCtx.isNullValue=!1:this.barCtx.isNullValue=!0,s.config.stroke.show&&(this.barCtx.isNullValue||(a=Array.isArray(this.barCtx.strokeWidth)?this.barCtx.strokeWidth[i]:this.barCtx.strokeWidth)),a}},{key:"shouldApplyRadius",value:function(t){var e=this.w,i=!1;return e.config.plotOptions.bar.borderRadius>0&&(e.config.chart.stacked&&"last"===e.config.plotOptions.bar.borderRadiusWhenStacked?this.barCtx.lastActiveBarSerieIndex===t&&(i=!0):i=!0),i}},{key:"barBackground",value:function(t){var e=t.j,i=t.i,a=t.x1,s=t.x2,r=t.y1,o=t.y2,n=t.elSeries,l=this.w,h=new A(this.barCtx.ctx),c=new V(this.barCtx.ctx).getActiveConfigSeriesIndex();if(this.barCtx.barOptions.colors.backgroundBarColors.length>0&&c===i){e>=this.barCtx.barOptions.colors.backgroundBarColors.length&&(e%=this.barCtx.barOptions.colors.backgroundBarColors.length);var d=this.barCtx.barOptions.colors.backgroundBarColors[e],g=h.drawRect(void 0!==a?a:0,void 0!==r?r:0,void 0!==s?s:l.globals.gridWidth,void 0!==o?o:l.globals.gridHeight,this.barCtx.barOptions.colors.backgroundBarRadius,d,this.barCtx.barOptions.colors.backgroundBarOpacity);n.add(g),g.node.classList.add("apexcharts-backgroundBar")}}},{key:"getColumnPaths",value:function(t){var e,i=t.barWidth,a=t.barXPosition,s=t.y1,r=t.y2,o=t.strokeWidth,n=t.seriesGroup,l=t.realIndex,h=t.i,c=t.j,d=t.w,g=new A(this.barCtx.ctx);(o=Array.isArray(o)?o[l]:o)||(o=0);var u=i,p=a;null!==(e=d.config.series[l].data[c])&&void 0!==e&&e.columnWidthOffset&&(p=a-d.config.series[l].data[c].columnWidthOffset/2,u=i+d.config.series[l].data[c].columnWidthOffset);var f=p,x=p+u;s+=.001,r+=.001;var b=g.move(f,s),v=g.move(f,s),m=g.line(x-o,s);if(d.globals.previousPaths.length>0&&(v=this.barCtx.getPreviousPath(l,c,!1)),b=b+g.line(f,r)+g.line(x-o,r)+g.line(x-o,s)+("around"===d.config.plotOptions.bar.borderRadiusApplication?" Z":" z"),v=v+g.line(f,s)+m+m+m+m+m+g.line(f,s)+("around"===d.config.plotOptions.bar.borderRadiusApplication?" Z":" z"),this.shouldApplyRadius(l)&&(b=g.roundPathCorners(b,d.config.plotOptions.bar.borderRadius)),d.config.chart.stacked){var y=this.barCtx;d.globals.hasSeriesGroups&&n&&(y=this.barCtx[n]),y.yArrj.push(r),y.yArrjF.push(Math.abs(s-r)),y.yArrjVal.push(this.barCtx.series[h][c])}return{pathTo:b,pathFrom:v}}},{key:"getBarpaths",value:function(t){var e,i=t.barYPosition,a=t.barHeight,s=t.x1,r=t.x2,o=t.strokeWidth,n=t.seriesGroup,l=t.realIndex,h=t.i,c=t.j,d=t.w,g=new A(this.barCtx.ctx);(o=Array.isArray(o)?o[l]:o)||(o=0);var u=i,p=a;null!==(e=d.config.series[l].data[c])&&void 0!==e&&e.barHeightOffset&&(u=i-d.config.series[l].data[c].barHeightOffset/2,p=a+d.config.series[l].data[c].barHeightOffset);var f=u,x=u+p;s+=.001,r+=.001;var b=g.move(s,f),v=g.move(s,f);d.globals.previousPaths.length>0&&(v=this.barCtx.getPreviousPath(l,c,!1));var m=g.line(s,x-o);if(b=b+g.line(r,f)+g.line(r,x-o)+m+("around"===d.config.plotOptions.bar.borderRadiusApplication?" Z":" z"),v=v+g.line(s,f)+m+m+m+m+m+g.line(s,f)+("around"===d.config.plotOptions.bar.borderRadiusApplication?" Z":" z"),this.shouldApplyRadius(l)&&(b=g.roundPathCorners(b,d.config.plotOptions.bar.borderRadius)),d.config.chart.stacked){var y=this.barCtx;d.globals.hasSeriesGroups&&n&&(y=this.barCtx[n]),y.xArrj.push(r),y.xArrjF.push(Math.abs(s-r)),y.xArrjVal.push(this.barCtx.series[h][c])}return{pathTo:b,pathFrom:v}}},{key:"checkZeroSeries",value:function(t){for(var e=t.series,i=this.w,a=0;a2&&void 0!==arguments[2]&&!arguments[2]?null:e;return null!=t&&(i=e+t/this.barCtx.invertedYRatio-2*(this.barCtx.isReversed?t/this.barCtx.invertedYRatio:0)),i}},{key:"getYForValue",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]&&!arguments[2]?null:e;return null!=t&&(i=e-t/this.barCtx.yRatio[this.barCtx.yaxisIndex]+2*(this.barCtx.isReversed?t/this.barCtx.yRatio[this.barCtx.yaxisIndex]:0)),i}},{key:"getGoalValues",value:function(t,e,i,a,s){var o=this,n=this.w,l=[],h=function(a,s){var r;l.push((c(r={},t,"x"===t?o.getXForValue(a,e,!1):o.getYForValue(a,i,!1)),c(r,"attrs",s),r))};if(n.globals.seriesGoals[a]&&n.globals.seriesGoals[a][s]&&Array.isArray(n.globals.seriesGoals[a][s])&&n.globals.seriesGoals[a][s].forEach((function(t){h(t.value,t)})),this.barCtx.barOptions.isDumbbell&&n.globals.seriesRange.length){var d=this.barCtx.barOptions.dumbbellColors?this.barCtx.barOptions.dumbbellColors:n.globals.colors,g={strokeHeight:"x"===t?0:n.globals.markers.size[a],strokeWidth:"x"===t?n.globals.markers.size[a]:0,strokeDashArray:0,strokeLineCap:"round",strokeColor:Array.isArray(d[a])?d[a][0]:d[a]};h(n.globals.seriesRangeStart[a][s],g),h(n.globals.seriesRangeEnd[a][s],r(r({},g),{},{strokeColor:Array.isArray(d[a])?d[a][1]:d[a]}))}return l}},{key:"drawGoalLine",value:function(t){var e=t.barXPosition,i=t.barYPosition,a=t.goalX,s=t.goalY,r=t.barWidth,o=t.barHeight,n=new A(this.barCtx.ctx),l=n.group({className:"apexcharts-bar-goals-groups"});l.node.classList.add("apexcharts-element-hidden"),this.barCtx.w.globals.delayedElements.push({el:l.node}),l.attr("clip-path","url(#gridRectMarkerMask".concat(this.barCtx.w.globals.cuid,")"));var h=null;return this.barCtx.isHorizontal?Array.isArray(a)&&a.forEach((function(t){var e=void 0!==t.attrs.strokeHeight?t.attrs.strokeHeight:o/2,a=i+e+o/2;h=n.drawLine(t.x,a-2*e,t.x,a,t.attrs.strokeColor?t.attrs.strokeColor:void 0,t.attrs.strokeDashArray,t.attrs.strokeWidth?t.attrs.strokeWidth:2,t.attrs.strokeLineCap),l.add(h)})):Array.isArray(s)&&s.forEach((function(t){var i=void 0!==t.attrs.strokeWidth?t.attrs.strokeWidth:r/2,a=e+i+r/2;h=n.drawLine(a-2*i,t.y,a,t.y,t.attrs.strokeColor?t.attrs.strokeColor:void 0,t.attrs.strokeDashArray,t.attrs.strokeHeight?t.attrs.strokeHeight:2,t.attrs.strokeLineCap),l.add(h)})),l}},{key:"drawBarShadow",value:function(t){var e=t.prevPaths,i=t.currPaths,a=t.color,s=this.w,r=e.x,o=e.x1,n=e.barYPosition,l=i.x,h=i.x1,c=i.barYPosition,d=n+i.barHeight,g=new A(this.barCtx.ctx),u=new y,p=g.move(o,d)+g.line(r,d)+g.line(l,c)+g.line(h,c)+g.line(o,d)+("around"===s.config.plotOptions.bar.borderRadiusApplication?" Z":" z");return g.drawPath({d:p,fill:u.shadeColor(.5,y.rgb2hex(a)),stroke:"none",strokeWidth:0,fillOpacity:1,classes:"apexcharts-bar-shadows"})}},{key:"getZeroValueEncounters",value:function(t){var e=t.i,i=t.j,a=this.w,s=0,r=0;return a.globals.seriesPercent.forEach((function(t,a){t[i]&&s++,athis.barOptions.dataLabels.maxItems&&console.warn("WARNING: DataLabels are enabled but there are too many to display. This may cause performance issue when rendering - ApexCharts");for(var n=0,l=0;n0&&(this.visibleI=this.visibleI+1);var m=0,w=0;this.yRatio.length>1&&(this.yaxisIndex=b),this.isReversed=i.config.yaxis[this.yaxisIndex]&&i.config.yaxis[this.yaxisIndex].reversed;var k=this.barHelpers.initialPositions();p=k.y,m=k.barHeight,c=k.yDivision,g=k.zeroW,u=k.x,w=k.barWidth,h=k.xDivision,d=k.zeroH,this.horizontal||x.push(u+w/2);var C=a.group({class:"apexcharts-datalabels","data:realIndex":b});i.globals.delayedElements.push({el:C.node}),C.node.classList.add("apexcharts-element-hidden");var L=a.group({class:"apexcharts-bar-goals-markers"}),P=a.group({class:"apexcharts-bar-shadows"});i.globals.delayedElements.push({el:P.node}),P.node.classList.add("apexcharts-element-hidden");for(var I=0;I0){var E=this.barHelpers.drawBarShadow({color:"string"==typeof X&&-1===(null==X?void 0:X.indexOf("url"))?X:y.hexToRgba(i.globals.colors[n]),prevPaths:this.pathArr[this.pathArr.length-1],currPaths:M});E&&P.add(E)}this.pathArr.push(M);var Y=this.barHelpers.drawGoalLine({barXPosition:M.barXPosition,barYPosition:M.barYPosition,goalX:M.goalX,goalY:M.goalY,barHeight:m,barWidth:w});Y&&L.add(Y),p=M.y,u=M.x,I>0&&x.push(u+w/2),f.push(p),this.renderSeries({realIndex:b,pathFill:X,j:I,i:n,pathFrom:M.pathFrom,pathTo:M.pathTo,strokeWidth:T,elSeries:v,x:u,y:p,series:t,barHeight:M.barHeight?M.barHeight:m,barWidth:M.barWidth?M.barWidth:w,elDataLabelsWrap:C,elGoalsMarkers:L,elBarShadows:P,visibleSeries:this.visibleI,type:"bar"})}i.globals.seriesXvalues[b]=x,i.globals.seriesYvalues[b]=f,o.add(v)}return o}},{key:"renderSeries",value:function(t){var e=t.realIndex,i=t.pathFill,a=t.lineFill,s=t.j,r=t.i,o=t.groupIndex,n=t.pathFrom,l=t.pathTo,h=t.strokeWidth,c=t.elSeries,d=t.x,g=t.y,u=t.y1,p=t.y2,f=t.series,x=t.barHeight,b=t.barWidth,v=t.barXPosition,m=t.barYPosition,y=t.elDataLabelsWrap,w=t.elGoalsMarkers,S=t.elBarShadows,C=t.visibleSeries,L=t.type,P=this.w,I=new A(this.ctx);a||(a=this.barOptions.distributed?P.globals.stroke.colors[s]:P.globals.stroke.colors[e]),P.config.series[r].data[s]&&P.config.series[r].data[s].strokeColor&&(a=P.config.series[r].data[s].strokeColor),this.isNullValue&&(i="none");var T=s/P.config.chart.animations.animateGradually.delay*(P.config.chart.animations.speed/P.globals.dataPoints)/2.4,M=I.renderPaths({i:r,j:s,realIndex:e,pathFrom:n,pathTo:l,stroke:a,strokeWidth:h,strokeLineCap:P.config.stroke.lineCap,fill:i,animationDelay:T,initialSpeed:P.config.chart.animations.speed,dataChangeSpeed:P.config.chart.animations.dynamicAnimation.speed,className:"apexcharts-".concat(L,"-area")});M.attr("clip-path","url(#gridRectMask".concat(P.globals.cuid,")"));var z=P.config.forecastDataPoints;z.count>0&&s>=P.globals.dataPoints-z.count&&(M.node.setAttribute("stroke-dasharray",z.dashArray),M.node.setAttribute("stroke-width",z.strokeWidth),M.node.setAttribute("fill-opacity",z.fillOpacity)),void 0!==u&&void 0!==p&&(M.attr("data-range-y1",u),M.attr("data-range-y2",p)),new k(this.ctx).setSelectionFilter(M,e,s),c.add(M);var X=new kt(this).handleBarDataLabels({x:d,y:g,y1:u,y2:p,i:r,j:s,series:f,realIndex:e,groupIndex:o,barHeight:x,barWidth:b,barXPosition:v,barYPosition:m,renderedPath:M,visibleSeries:C});return null!==X.dataLabels&&y.add(X.dataLabels),X.totalDataLabels&&y.add(X.totalDataLabels),c.add(y),w&&c.add(w),S&&c.add(S),c}},{key:"drawBarPaths",value:function(t){var e,i=t.indexes,a=t.barHeight,s=t.strokeWidth,r=t.zeroW,o=t.x,n=t.y,l=t.yDivision,h=t.elSeries,c=this.w,d=i.i,g=i.j;if(c.globals.isXNumeric)e=(n=(c.globals.seriesX[d][g]-c.globals.minX)/this.invertedXRatio-a)+a*this.visibleI;else if(c.config.plotOptions.bar.hideZeroBarsWhenGrouped){var u=0,p=0;c.globals.seriesPercent.forEach((function(t,e){t[g]&&u++,e0&&(a=this.seriesLen*a/u),e=n+a*this.visibleI,e-=a*p}else e=n+a*this.visibleI;this.isFunnel&&(r-=(this.barHelpers.getXForValue(this.series[d][g],r)-r)/2),o=this.barHelpers.getXForValue(this.series[d][g],r);var f=this.barHelpers.getBarpaths({barYPosition:e,barHeight:a,x1:r,x2:o,strokeWidth:s,series:this.series,realIndex:i.realIndex,i:d,j:g,w:c});return c.globals.isXNumeric||(n+=l),this.barHelpers.barBackground({j:g,i:d,y1:e-a*this.visibleI,y2:a*this.seriesLen,elSeries:h}),{pathTo:f.pathTo,pathFrom:f.pathFrom,x1:r,x:o,y:n,goalX:this.barHelpers.getGoalValues("x",r,null,d,g),barYPosition:e,barHeight:a}}},{key:"drawColumnPaths",value:function(t){var e,i=t.indexes,a=t.x,s=t.y,r=t.xDivision,o=t.barWidth,n=t.zeroH,l=t.strokeWidth,h=t.elSeries,c=this.w,d=i.realIndex,g=i.i,u=i.j,p=i.bc;if(c.globals.isXNumeric){var f=this.getBarXForNumericXAxis({x:a,j:u,realIndex:d,barWidth:o});a=f.x,e=f.barXPosition}else if(c.config.plotOptions.bar.hideZeroBarsWhenGrouped){var x=this.barHelpers.getZeroValueEncounters({i:g,j:u}),b=x.nonZeroColumns,v=x.zeroEncounters;b>0&&(o=this.seriesLen*o/b),e=a+o*this.visibleI,e-=o*v}else e=a+o*this.visibleI;s=this.barHelpers.getYForValue(this.series[g][u],n);var m=this.barHelpers.getColumnPaths({barXPosition:e,barWidth:o,y1:n,y2:s,strokeWidth:l,series:this.series,realIndex:i.realIndex,i:g,j:u,w:c});return c.globals.isXNumeric||(a+=r),this.barHelpers.barBackground({bc:p,j:u,i:g,x1:e-l/2-o*this.visibleI,x2:o*this.seriesLen+l/2,elSeries:h}),{pathTo:m.pathTo,pathFrom:m.pathFrom,x:a,y:s,goalY:this.barHelpers.getGoalValues("y",null,n,g,u),barXPosition:e,barWidth:o}}},{key:"getBarXForNumericXAxis",value:function(t){var e=t.x,i=t.barWidth,a=t.realIndex,s=t.j,r=this.w,o=a;return r.globals.seriesX[a].length||(o=r.globals.maxValsInArrayIndex),r.globals.seriesX[o][s]&&(e=(r.globals.seriesX[o][s]-r.globals.minX)/this.xRatio-i*this.seriesLen/2),{barXPosition:e+i*this.visibleI,x:e}}},{key:"getPreviousPath",value:function(t,e){for(var i,a=this.w,s=0;s0&&parseInt(r.realIndex,10)===parseInt(t,10)&&void 0!==a.globals.previousPaths[s].paths[e]&&(i=a.globals.previousPaths[s].paths[e].d)}return i}}]),t}(),Ct=function(t){d(i,t);var e=f(i);function i(){return n(this,i),e.apply(this,arguments)}return h(i,[{key:"draw",value:function(t,e){var i=this,a=this.w;this.graphics=new A(this.ctx),this.bar=new St(this.ctx,this.xyRatios);var s=new S(this.ctx,a);t=s.getLogSeries(t),this.yRatio=s.getLogYRatios(this.yRatio),this.barHelpers.initVariables(t),"100%"===a.config.chart.stackType&&(t=a.globals.seriesPercent.slice()),this.series=t,this.barHelpers.initializeStackedPrevVars(this);for(var o=this.graphics.group({class:"apexcharts-bar-series apexcharts-plot-series"}),n=0,l=0,h=function(s,h){var c=void 0,d=void 0,g=void 0,u=void 0,p=-1;i.groupCtx=i,a.globals.seriesGroups.forEach((function(t,e){t.indexOf(a.config.series[s].name)>-1&&(p=e)})),-1!==p&&(i.groupCtx=i[a.globals.seriesGroups[p]]);var f=[],x=[],b=a.globals.comboCharts?e[s]:s;i.yRatio.length>1&&(i.yaxisIndex=b),i.isReversed=a.config.yaxis[i.yaxisIndex]&&a.config.yaxis[i.yaxisIndex].reversed;var v=i.graphics.group({class:"apexcharts-series",seriesName:y.escapeString(a.globals.seriesNames[b]),rel:s+1,"data:realIndex":b});i.ctx.series.addCollapsedClassToSeries(v,b);var m=i.graphics.group({class:"apexcharts-datalabels","data:realIndex":b}),w=i.graphics.group({class:"apexcharts-bar-goals-markers"}),k=0,A=0,S=i.initialPositions(n,l,c,d,g,u);l=S.y,k=S.barHeight,d=S.yDivision,u=S.zeroW,n=S.x,A=S.barWidth,c=S.xDivision,g=S.zeroH,a.globals.barHeight=k,a.globals.barWidth=A,i.barHelpers.initializeStackedXYVars(i),1===i.groupCtx.prevY.length&&i.groupCtx.prevY[0].every((function(t){return isNaN(t)}))&&(i.groupCtx.prevY[0]=i.groupCtx.prevY[0].map((function(t){return g})),i.groupCtx.prevYF[0]=i.groupCtx.prevYF[0].map((function(t){return 0})));for(var C=0;C1?(i=c.globals.minXDiff/this.xRatio)*parseInt(this.barOptions.columnWidth,10)/100:h*parseInt(c.config.plotOptions.bar.columnWidth,10)/100,-1===String(c.config.plotOptions.bar.columnWidth).indexOf("%")&&(h=parseInt(c.config.plotOptions.bar.columnWidth,10)),s=c.globals.gridHeight-this.baseLineY[this.yaxisIndex]-(this.isReversed?c.globals.gridHeight:0)+(this.isReversed?2*this.baseLineY[this.yaxisIndex]:0),t=c.globals.padHorizontal+(i-h)/2),{x:t,y:e,yDivision:a,xDivision:i,barHeight:null!==(o=c.globals.seriesGroups)&&void 0!==o&&o.length?l/c.globals.seriesGroups.length:l,barWidth:null!==(n=c.globals.seriesGroups)&&void 0!==n&&n.length?h/c.globals.seriesGroups.length:h,zeroH:s,zeroW:r}}},{key:"drawStackedBarPaths",value:function(t){for(var e,i=t.indexes,a=t.barHeight,s=t.strokeWidth,r=t.zeroW,o=t.x,n=t.y,l=t.groupIndex,h=t.seriesGroup,c=t.yDivision,d=t.elSeries,g=this.w,u=n+(-1!==l?l*a:0),p=i.i,f=i.j,x=0,b=0;b0){var m=r;this.groupCtx.prevXVal[v-1][f]<0?m=this.series[p][f]>=0?this.groupCtx.prevX[v-1][f]+x-2*(this.isReversed?x:0):this.groupCtx.prevX[v-1][f]:this.groupCtx.prevXVal[v-1][f]>=0&&(m=this.series[p][f]>=0?this.groupCtx.prevX[v-1][f]:this.groupCtx.prevX[v-1][f]-x+2*(this.isReversed?x:0)),e=m}else e=r;o=null===this.series[p][f]?e:e+this.series[p][f]/this.invertedYRatio-2*(this.isReversed?this.series[p][f]/this.invertedYRatio:0);var y=this.barHelpers.getBarpaths({barYPosition:u,barHeight:a,x1:e,x2:o,strokeWidth:s,series:this.series,realIndex:i.realIndex,seriesGroup:h,i:p,j:f,w:g});return this.barHelpers.barBackground({j:f,i:p,y1:u,y2:a,elSeries:d}),n+=c,{pathTo:y.pathTo,pathFrom:y.pathFrom,goalX:this.barHelpers.getGoalValues("x",r,null,p,f),barYPosition:u,x:o,y:n}}},{key:"drawStackedColumnPaths",value:function(t){var e=t.indexes,i=t.x,a=t.y,s=t.xDivision,r=t.barWidth,o=t.zeroH,n=t.groupIndex,l=t.seriesGroup,h=t.elSeries,c=this.w,d=e.i,g=e.j,u=e.bc;if(c.globals.isXNumeric){var p=c.globals.seriesX[d][g];p||(p=0),i=(p-c.globals.minX)/this.xRatio-r/2,c.globals.seriesGroups.length&&(i=(p-c.globals.minX)/this.xRatio-r/2*c.globals.seriesGroups.length)}for(var f,x=i+(-1!==n?n*r:0),b=0,v=0;v0&&!c.globals.isXNumeric||m>0&&c.globals.isXNumeric&&c.globals.seriesX[d-1][g]===c.globals.seriesX[d][g]){var y,w,k,A=Math.min(this.yRatio.length+1,d+1);if(void 0!==this.groupCtx.prevY[m-1]&&this.groupCtx.prevY[m-1].length)for(var S=1;S=0?k-b+2*(this.isReversed?b:0):k;break}if((null===(I=this.groupCtx.prevYVal[m-L])||void 0===I?void 0:I[g])>=0){w=this.series[d][g]>=0?k:k+b-2*(this.isReversed?b:0);break}}void 0===w&&(w=c.globals.gridHeight),f=null!==(y=this.groupCtx.prevYF[0])&&void 0!==y&&y.every((function(t){return 0===t}))&&this.groupCtx.prevYF.slice(1,m).every((function(t){return t.every((function(t){return isNaN(t)}))}))?o:w}else f=o;a=this.series[d][g]?f-this.series[d][g]/this.yRatio[this.yaxisIndex]+2*(this.isReversed?this.series[d][g]/this.yRatio[this.yaxisIndex]:0):f;var T=this.barHelpers.getColumnPaths({barXPosition:x,barWidth:r,y1:f,y2:a,yRatio:this.yRatio[this.yaxisIndex],strokeWidth:this.strokeWidth,series:this.series,seriesGroup:l,realIndex:e.realIndex,i:d,j:g,w:c});return this.barHelpers.barBackground({bc:u,j:g,i:d,x1:x,x2:r,elSeries:h}),i+=s,{pathTo:T.pathTo,pathFrom:T.pathFrom,goalY:this.barHelpers.getGoalValues("y",null,o,d,g),barXPosition:x,x:c.globals.isXNumeric?i-s:i,y:a}}}]),i}(St),Lt=function(t){d(i,t);var e=f(i);function i(){return n(this,i),e.apply(this,arguments)}return h(i,[{key:"draw",value:function(t,e,i){var a=this,s=this.w,o=new A(this.ctx),n=s.globals.comboCharts?e:s.config.chart.type,l=new N(this.ctx);this.candlestickOptions=this.w.config.plotOptions.candlestick,this.boxOptions=this.w.config.plotOptions.boxPlot,this.isHorizontal=s.config.plotOptions.bar.horizontal;var h=new S(this.ctx,s);t=h.getLogSeries(t),this.series=t,this.yRatio=h.getLogYRatios(this.yRatio),this.barHelpers.initVariables(t);for(var c=o.group({class:"apexcharts-".concat(n,"-series apexcharts-plot-series")}),d=function(e){a.isBoxPlot="boxPlot"===s.config.chart.type||"boxPlot"===s.config.series[e].type;var n,h,d,g,u,p,f=void 0,x=void 0,b=[],v=[],m=s.globals.comboCharts?i[e]:e,w=o.group({class:"apexcharts-series",seriesName:y.escapeString(s.globals.seriesNames[m]),rel:e+1,"data:realIndex":m});a.ctx.series.addCollapsedClassToSeries(w,m),t[e].length>0&&(a.visibleI=a.visibleI+1),a.yRatio.length>1&&(a.yaxisIndex=m);var k=a.barHelpers.initialPositions();x=k.y,u=k.barHeight,h=k.yDivision,g=k.zeroW,f=k.x,p=k.barWidth,n=k.xDivision,d=k.zeroH,v.push(f+p/2);for(var A=o.group({class:"apexcharts-datalabels","data:realIndex":m}),S=function(i){var o=a.barHelpers.getStrokeWidth(e,i,m),c=null,y={indexes:{i:e,j:i,realIndex:m},x:f,y:x,strokeWidth:o,elSeries:w};c=a.isHorizontal?a.drawHorizontalBoxPaths(r(r({},y),{},{yDivision:h,barHeight:u,zeroW:g})):a.drawVerticalBoxPaths(r(r({},y),{},{xDivision:n,barWidth:p,zeroH:d})),x=c.y,f=c.x,i>0&&v.push(f+p/2),b.push(x),c.pathTo.forEach((function(r,n){var h=!a.isBoxPlot&&a.candlestickOptions.wick.useFillColor?c.color[n]:s.globals.stroke.colors[e],d=l.fillPath({seriesNumber:m,dataPointIndex:i,color:c.color[n],value:t[e][i]});a.renderSeries({realIndex:m,pathFill:d,lineFill:h,j:i,i:e,pathFrom:c.pathFrom,pathTo:r,strokeWidth:o,elSeries:w,x:f,y:x,series:t,barHeight:u,barWidth:p,elDataLabelsWrap:A,visibleSeries:a.visibleI,type:s.config.chart.type})}))},C=0;Cb.c&&(d=!1);var y=Math.min(b.o,b.c),w=Math.max(b.o,b.c),k=b.m;n.globals.isXNumeric&&(i=(n.globals.seriesX[x][c]-n.globals.minX)/this.xRatio-s/2);var S=i+s*this.visibleI;void 0===this.series[h][c]||null===this.series[h][c]?(y=r,w=r):(y=r-y/f,w=r-w/f,v=r-b.h/f,m=r-b.l/f,k=r-b.m/f);var C=l.move(S,r),L=l.move(S+s/2,y);return n.globals.previousPaths.length>0&&(L=this.getPreviousPath(x,c,!0)),C=this.isBoxPlot?[l.move(S,y)+l.line(S+s/2,y)+l.line(S+s/2,v)+l.line(S+s/4,v)+l.line(S+s-s/4,v)+l.line(S+s/2,v)+l.line(S+s/2,y)+l.line(S+s,y)+l.line(S+s,k)+l.line(S,k)+l.line(S,y+o/2),l.move(S,k)+l.line(S+s,k)+l.line(S+s,w)+l.line(S+s/2,w)+l.line(S+s/2,m)+l.line(S+s-s/4,m)+l.line(S+s/4,m)+l.line(S+s/2,m)+l.line(S+s/2,w)+l.line(S,w)+l.line(S,k)+"z"]:[l.move(S,w)+l.line(S+s/2,w)+l.line(S+s/2,v)+l.line(S+s/2,w)+l.line(S+s,w)+l.line(S+s,y)+l.line(S+s/2,y)+l.line(S+s/2,m)+l.line(S+s/2,y)+l.line(S,y)+l.line(S,w-o/2)],L+=l.move(S,y),n.globals.isXNumeric||(i+=a),{pathTo:C,pathFrom:L,x:i,y:w,barXPosition:S,color:this.isBoxPlot?p:d?[g]:[u]}}},{key:"drawHorizontalBoxPaths",value:function(t){var e=t.indexes;t.x;var i=t.y,a=t.yDivision,s=t.barHeight,r=t.zeroW,o=t.strokeWidth,n=this.w,l=new A(this.ctx),h=e.i,c=e.j,d=this.boxOptions.colors.lower;this.isBoxPlot&&(d=[this.boxOptions.colors.lower,this.boxOptions.colors.upper]);var g=this.invertedYRatio,u=e.realIndex,p=this.getOHLCValue(u,c),f=r,x=r,b=Math.min(p.o,p.c),v=Math.max(p.o,p.c),m=p.m;n.globals.isXNumeric&&(i=(n.globals.seriesX[u][c]-n.globals.minX)/this.invertedXRatio-s/2);var y=i+s*this.visibleI;void 0===this.series[h][c]||null===this.series[h][c]?(b=r,v=r):(b=r+b/g,v=r+v/g,f=r+p.h/g,x=r+p.l/g,m=r+p.m/g);var w=l.move(r,y),k=l.move(b,y+s/2);return n.globals.previousPaths.length>0&&(k=this.getPreviousPath(u,c,!0)),w=[l.move(b,y)+l.line(b,y+s/2)+l.line(f,y+s/2)+l.line(f,y+s/2-s/4)+l.line(f,y+s/2+s/4)+l.line(f,y+s/2)+l.line(b,y+s/2)+l.line(b,y+s)+l.line(m,y+s)+l.line(m,y)+l.line(b+o/2,y),l.move(m,y)+l.line(m,y+s)+l.line(v,y+s)+l.line(v,y+s/2)+l.line(x,y+s/2)+l.line(x,y+s-s/4)+l.line(x,y+s/4)+l.line(x,y+s/2)+l.line(v,y+s/2)+l.line(v,y)+l.line(m,y)+"z"],k+=l.move(b,y),n.globals.isXNumeric||(i+=a),{pathTo:w,pathFrom:k,x:v,y:i,barYPosition:y,color:d}}},{key:"getOHLCValue",value:function(t,e){var i=this.w;return{o:this.isBoxPlot?i.globals.seriesCandleH[t][e]:i.globals.seriesCandleO[t][e],h:this.isBoxPlot?i.globals.seriesCandleO[t][e]:i.globals.seriesCandleH[t][e],m:i.globals.seriesCandleM[t][e],l:this.isBoxPlot?i.globals.seriesCandleC[t][e]:i.globals.seriesCandleL[t][e],c:this.isBoxPlot?i.globals.seriesCandleL[t][e]:i.globals.seriesCandleC[t][e]}}}]),i}(St),Pt=function(){function t(e){n(this,t),this.ctx=e,this.w=e.w}return h(t,[{key:"checkColorRange",value:function(){var t=this.w,e=!1,i=t.config.plotOptions[t.config.chart.type];return i.colorScale.ranges.length>0&&i.colorScale.ranges.map((function(t,i){t.from<=0&&(e=!0)})),e}},{key:"getShadeColor",value:function(t,e,i,a){var s=this.w,r=1,o=s.config.plotOptions[t].shadeIntensity,n=this.determineColor(t,e,i);s.globals.hasNegs||a?r=s.config.plotOptions[t].reverseNegativeShade?n.percent<0?n.percent/100*(1.25*o):(1-n.percent/100)*(1.25*o):n.percent<=0?1-(1+n.percent/100)*o:(1-n.percent/100)*o:(r=1-n.percent/100,"treemap"===t&&(r=(1-n.percent/100)*(1.25*o)));var l=n.color,h=new y;return s.config.plotOptions[t].enableShades&&(l="dark"===this.w.config.theme.mode?y.hexToRgba(h.shadeColor(-1*r,n.color),s.config.fill.opacity):y.hexToRgba(h.shadeColor(r,n.color),s.config.fill.opacity)),{color:l,colorProps:n}}},{key:"determineColor",value:function(t,e,i){var a=this.w,s=a.globals.series[e][i],r=a.config.plotOptions[t],o=r.colorScale.inverse?i:e;r.distributed&&"treemap"===a.config.chart.type&&(o=i);var n=a.globals.colors[o],l=null,h=Math.min.apply(Math,b(a.globals.series[e])),c=Math.max.apply(Math,b(a.globals.series[e]));r.distributed||"heatmap"!==t||(h=a.globals.minY,c=a.globals.maxY),void 0!==r.colorScale.min&&(h=r.colorScale.mina.globals.maxY?r.colorScale.max:a.globals.maxY);var d=Math.abs(c)+Math.abs(h),g=100*s/(0===d?d-1e-6:d);return r.colorScale.ranges.length>0&&r.colorScale.ranges.map((function(t,e){if(s>=t.from&&s<=t.to){n=t.color,l=t.foreColor?t.foreColor:null,h=t.from,c=t.to;var i=Math.abs(c)+Math.abs(h);g=100*s/(0===i?i-1e-6:i)}})),{color:n,foreColor:l,percent:g}}},{key:"calculateDataLabels",value:function(t){var e=t.text,i=t.x,a=t.y,s=t.i,r=t.j,o=t.colorProps,n=t.fontSize,l=this.w.config.dataLabels,h=new A(this.ctx),c=new G(this.ctx),d=null;if(l.enabled){d=h.group({class:"apexcharts-data-labels"});var g=l.offsetX,u=l.offsetY,p=i+g,f=a+parseFloat(l.style.fontSize)/3+u;c.plotDataLabelsText({x:p,y:f,text:e,i:s,j:r,color:o.foreColor,parent:d,fontSize:n,dataLabelsConfig:l})}return d}},{key:"addListeners",value:function(t){var e=new A(this.ctx);t.node.addEventListener("mouseenter",e.pathMouseEnter.bind(this,t)),t.node.addEventListener("mouseleave",e.pathMouseLeave.bind(this,t)),t.node.addEventListener("mousedown",e.pathMouseDown.bind(this,t))}}]),t}(),It=function(){function t(e,i){n(this,t),this.ctx=e,this.w=e.w,this.xRatio=i.xRatio,this.yRatio=i.yRatio,this.dynamicAnim=this.w.config.chart.animations.dynamicAnimation,this.helpers=new Pt(e),this.rectRadius=this.w.config.plotOptions.heatmap.radius,this.strokeWidth=this.w.config.stroke.show?this.w.config.stroke.width:0}return h(t,[{key:"draw",value:function(t){var e=this.w,i=new A(this.ctx),a=i.group({class:"apexcharts-heatmap"});a.attr("clip-path","url(#gridRectMask".concat(e.globals.cuid,")"));var s=e.globals.gridWidth/e.globals.dataPoints,r=e.globals.gridHeight/e.globals.series.length,o=0,n=!1;this.negRange=this.helpers.checkColorRange();var l=t.slice();e.config.yaxis[0].reversed&&(n=!0,l.reverse());for(var h=n?0:l.length-1;n?h=0;n?h++:h--){var c=i.group({class:"apexcharts-series apexcharts-heatmap-series",seriesName:y.escapeString(e.globals.seriesNames[h]),rel:h+1,"data:realIndex":h});if(this.ctx.series.addCollapsedClassToSeries(c,h),e.config.chart.dropShadow.enabled){var d=e.config.chart.dropShadow;new k(this.ctx).dropShadow(c,d,h)}for(var g=0,u=e.config.plotOptions.heatmap.shadeIntensity,p=0;p-1&&this.pieClicked(d),i.config.dataLabels.enabled){var w=v.x,S=v.y,C=100*u/this.fullAngle+"%";if(0!==u&&i.config.plotOptions.pie.dataLabels.minAngleToShowLabelthis.fullAngle?e.endAngle=e.endAngle-(a+o):a+o=this.fullAngle+this.w.config.plotOptions.pie.startAngle%this.fullAngle&&(h=this.fullAngle+this.w.config.plotOptions.pie.startAngle%this.fullAngle-.01),Math.ceil(h)>this.fullAngle&&(h-=this.fullAngle);var c=Math.PI*(h-90)/180,d=i.centerX+r*Math.cos(l),g=i.centerY+r*Math.sin(l),u=i.centerX+r*Math.cos(c),p=i.centerY+r*Math.sin(c),f=y.polarToCartesian(i.centerX,i.centerY,i.donutSize,h),x=y.polarToCartesian(i.centerX,i.centerY,i.donutSize,n),b=s>180?1:0,v=["M",d,g,"A",r,r,0,b,1,u,p];return e="donut"===i.chartType?[].concat(v,["L",f.x,f.y,"A",i.donutSize,i.donutSize,0,b,0,x.x,x.y,"L",d,g,"z"]).join(" "):"pie"===i.chartType||"polarArea"===i.chartType?[].concat(v,["L",i.centerX,i.centerY,"L",d,g]).join(" "):[].concat(v).join(" "),o.roundPathCorners(e,2*this.strokeWidth)}},{key:"drawPolarElements",value:function(t){var e=this.w,i=new $(this.ctx),a=new A(this.ctx),s=new Tt(this.ctx),r=a.group(),o=a.group(),n=i.niceScale(0,Math.ceil(this.maxY),e.config.yaxis[0].tickAmount,0,!0),l=n.result.reverse(),h=n.result.length;this.maxY=n.niceMax;for(var c=e.globals.radialSize,d=c/(h-1),g=0;g1&&t.total.show&&(s=t.total.color);var o=r.globals.dom.baseEl.querySelector(".apexcharts-datalabel-label"),n=r.globals.dom.baseEl.querySelector(".apexcharts-datalabel-value");i=(0,t.value.formatter)(i,r),a||"function"!=typeof t.total.formatter||(i=t.total.formatter(r));var l=e===t.total.label;e=t.name.formatter(e,l,r),null!==o&&(o.textContent=e),null!==n&&(n.textContent=i),null!==o&&(o.style.fill=s)}},{key:"printDataLabelsInner",value:function(t,e){var i=this.w,a=t.getAttribute("data:value"),s=i.globals.seriesNames[parseInt(t.parentNode.getAttribute("rel"),10)-1];i.globals.series.length>1&&this.printInnerLabels(e,s,a,t);var r=i.globals.dom.baseEl.querySelector(".apexcharts-datalabels-group");null!==r&&(r.style.opacity=1)}},{key:"drawSpokes",value:function(t){var e=this,i=this.w,a=new A(this.ctx),s=i.config.plotOptions.polarArea.spokes;if(0!==s.strokeWidth){for(var r=[],o=360/i.globals.series.length,n=0;n1)o&&!e.total.showAlways?l({makeSliceOut:!1,printLabel:!0}):this.printInnerLabels(e,e.total.label,e.total.formatter(s));else if(l({makeSliceOut:!1,printLabel:!0}),!o)if(s.globals.selectedDataPoints.length&&s.globals.series.length>1)if(s.globals.selectedDataPoints[0].length>0){var h=s.globals.selectedDataPoints[0],c=s.globals.dom.baseEl.querySelector(".apexcharts-".concat(this.chartType.toLowerCase(),"-slice-").concat(h));this.printDataLabelsInner(c,e)}else r&&s.globals.selectedDataPoints.length&&0===s.globals.selectedDataPoints[0].length&&(r.style.opacity=0);else r&&s.globals.series.length>1&&(r.style.opacity=0)}}]),t}(),zt=function(){function t(e){n(this,t),this.ctx=e,this.w=e.w,this.chartType=this.w.config.chart.type,this.initialAnim=this.w.config.chart.animations.enabled,this.dynamicAnim=this.initialAnim&&this.w.config.chart.animations.dynamicAnimation.enabled,this.animDur=0;var i=this.w;this.graphics=new A(this.ctx),this.lineColorArr=void 0!==i.globals.stroke.colors?i.globals.stroke.colors:i.globals.colors,this.defaultSize=i.globals.svgHeight0&&(f=e.getPreviousPath(n));for(var x=0;x=10?t.x>0?(i="start",a+=10):t.x<0&&(i="end",a-=10):i="middle",Math.abs(t.y)>=e-10&&(t.y<0?s-=10:t.y>0&&(s+=10)),{textAnchor:i,newX:a,newY:s}}},{key:"getPreviousPath",value:function(t){for(var e=this.w,i=null,a=0;a0&&parseInt(s.realIndex,10)===parseInt(t,10)&&void 0!==e.globals.previousPaths[a].paths[0]&&(i=e.globals.previousPaths[a].paths[0].d)}return i}},{key:"getDataPointsPos",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.dataPointsLen;t=t||[],e=e||[];for(var a=[],s=0;s=360&&(g=360-Math.abs(this.startAngle)-.1);var u=i.drawPath({d:"",stroke:c,strokeWidth:o*parseInt(h.strokeWidth,10)/100,fill:"none",strokeOpacity:h.opacity,classes:"apexcharts-radialbar-area"});if(h.dropShadow.enabled){var p=h.dropShadow;s.dropShadow(u,p)}l.add(u),u.attr("id","apexcharts-radialbarTrack-"+n),this.animatePaths(u,{centerX:t.centerX,centerY:t.centerY,endAngle:g,startAngle:d,size:t.size,i:n,totalItems:2,animBeginArr:0,dur:0,isTrack:!0,easing:e.globals.easing})}return a}},{key:"drawArcs",value:function(t){var e=this.w,i=new A(this.ctx),a=new N(this.ctx),s=new k(this.ctx),r=i.group(),o=this.getStrokeWidth(t);t.size=t.size-o/2;var n=e.config.plotOptions.radialBar.hollow.background,l=t.size-o*t.series.length-this.margin*t.series.length-o*parseInt(e.config.plotOptions.radialBar.track.strokeWidth,10)/100/2,h=l-e.config.plotOptions.radialBar.hollow.margin;void 0!==e.config.plotOptions.radialBar.hollow.image&&(n=this.drawHollowImage(t,r,l,n));var c=this.drawHollow({size:h,centerX:t.centerX,centerY:t.centerY,fill:n||"transparent"});if(e.config.plotOptions.radialBar.hollow.dropShadow.enabled){var d=e.config.plotOptions.radialBar.hollow.dropShadow;s.dropShadow(c,d)}var g=1;!this.radialDataLabels.total.show&&e.globals.series.length>1&&(g=0);var u=null;this.radialDataLabels.show&&(u=this.renderInnerDataLabels(this.radialDataLabels,{hollowSize:l,centerX:t.centerX,centerY:t.centerY,opacity:g})),"back"===e.config.plotOptions.radialBar.hollow.position&&(r.add(c),u&&r.add(u));var p=!1;e.config.plotOptions.radialBar.inverseOrder&&(p=!0);for(var f=p?t.series.length-1:0;p?f>=0:f100?100:t.series[f])/100,S=Math.round(this.totalAngle*w)+this.startAngle,C=void 0;e.globals.dataChanged&&(m=this.startAngle,C=Math.round(this.totalAngle*y.negToZero(e.globals.previousPaths[f])/100)+m),Math.abs(S)+Math.abs(v)>=360&&(S-=.01),Math.abs(C)+Math.abs(m)>=360&&(C-=.01);var L=S-v,P=Array.isArray(e.config.stroke.dashArray)?e.config.stroke.dashArray[f]:e.config.stroke.dashArray,I=i.drawPath({d:"",stroke:b,strokeWidth:o,fill:"none",fillOpacity:e.config.fill.opacity,classes:"apexcharts-radialbar-area apexcharts-radialbar-slice-"+f,strokeDashArray:P});if(A.setAttrs(I.node,{"data:angle":L,"data:value":t.series[f]}),e.config.chart.dropShadow.enabled){var T=e.config.chart.dropShadow;s.dropShadow(I,T,f)}if(s.setSelectionFilter(I,0,f),this.addListeners(I,this.radialDataLabels),x.add(I),I.attr({index:0,j:f}),this.barLabels.enabled){var M=y.polarToCartesian(t.centerX,t.centerY,t.size,v),z=this.barLabels.formatter(e.globals.seriesNames[f],{seriesIndex:f,w:e}),X=["apexcharts-radialbar-label"];this.barLabels.onClick||X.push("apexcharts-no-click");var E=this.barLabels.useSeriesColors?e.globals.colors[f]:e.config.chart.foreColor;E||(E=e.config.chart.foreColor);var Y=M.x-this.barLabels.margin,F=M.y,R=i.drawText({x:Y,y:F,text:z,textAnchor:"end",dominantBaseline:"middle",fontFamily:this.barLabels.fontFamily,fontWeight:this.barLabels.fontWeight,fontSize:this.barLabels.fontSize,foreColor:E,cssClass:X.join(" ")});R.on("click",this.onBarLabelClick),R.attr({rel:f+1}),0!==v&&R.attr({"transform-origin":"".concat(Y," ").concat(F),transform:"rotate(".concat(v," 0 0)")}),x.add(R)}var H=0;!this.initialAnim||e.globals.resized||e.globals.dataChanged||(H=e.config.chart.animations.speed),e.globals.dataChanged&&(H=e.config.chart.animations.dynamicAnimation.speed),this.animDur=H/(1.2*t.series.length)+this.animDur,this.animBeginArr.push(this.animDur),this.animatePaths(I,{centerX:t.centerX,centerY:t.centerY,endAngle:S,startAngle:v,prevEndAngle:C,prevStartAngle:m,size:t.size,i:f,totalItems:2,animBeginArr:this.animBeginArr,dur:H,shouldSetPrevPaths:!0,easing:e.globals.easing})}return{g:r,elHollow:c,dataLabels:u}}},{key:"drawHollow",value:function(t){var e=new A(this.ctx).drawCircle(2*t.size);return e.attr({class:"apexcharts-radialbar-hollow",cx:t.centerX,cy:t.centerY,r:t.size,fill:t.fill}),e}},{key:"drawHollowImage",value:function(t,e,i,a){var s=this.w,r=new N(this.ctx),o=y.randomId(),n=s.config.plotOptions.radialBar.hollow.image;if(s.config.plotOptions.radialBar.hollow.imageClipped)r.clippedImgArea({width:i,height:i,image:n,patternID:"pattern".concat(s.globals.cuid).concat(o)}),a="url(#pattern".concat(s.globals.cuid).concat(o,")");else{var l=s.config.plotOptions.radialBar.hollow.imageWidth,h=s.config.plotOptions.radialBar.hollow.imageHeight;if(void 0===l&&void 0===h){var c=s.globals.dom.Paper.image(n).loaded((function(e){this.move(t.centerX-e.width/2+s.config.plotOptions.radialBar.hollow.imageOffsetX,t.centerY-e.height/2+s.config.plotOptions.radialBar.hollow.imageOffsetY)}));e.add(c)}else{var d=s.globals.dom.Paper.image(n).loaded((function(e){this.move(t.centerX-l/2+s.config.plotOptions.radialBar.hollow.imageOffsetX,t.centerY-h/2+s.config.plotOptions.radialBar.hollow.imageOffsetY),this.size(l,h)}));e.add(d)}}return a}},{key:"getStrokeWidth",value:function(t){var e=this.w;return t.size*(100-parseInt(e.config.plotOptions.radialBar.hollow.size,10))/100/(t.series.length+1)-this.margin}},{key:"onBarLabelClick",value:function(t){var e=parseInt(t.target.getAttribute("rel"),10)-1,i=this.barLabels.onClick,a=this.w;i&&i(a.globals.seriesNames[e],{w:a,seriesIndex:e})}}]),i}(Mt),Et=function(t){d(i,t);var e=f(i);function i(){return n(this,i),e.apply(this,arguments)}return h(i,[{key:"draw",value:function(t,e){var i=this.w,a=new A(this.ctx);this.rangeBarOptions=this.w.config.plotOptions.rangeBar,this.series=t,this.seriesRangeStart=i.globals.seriesRangeStart,this.seriesRangeEnd=i.globals.seriesRangeEnd,this.barHelpers.initVariables(t);for(var s=a.group({class:"apexcharts-rangebar-series apexcharts-plot-series"}),o=0;o0&&(this.visibleI=this.visibleI+1);var x=0,b=0;this.yRatio.length>1&&(this.yaxisIndex=p);var v=this.barHelpers.initialPositions();u=v.y,d=v.zeroW,g=v.x,b=v.barWidth,x=v.barHeight,n=v.xDivision,l=v.yDivision,h=v.zeroH;for(var m=a.group({class:"apexcharts-datalabels","data:realIndex":p}),w=a.group({class:"apexcharts-rangebar-goals-markers"}),k=0;k0}));return this.isHorizontal?(a=g.config.plotOptions.bar.rangeBarGroupRows?r+h*b:r+n*this.visibleI+h*b,v>-1&&!g.config.plotOptions.bar.rangeBarOverlap&&(u=g.globals.seriesRange[e][v].overlaps).indexOf(p)>-1&&(a=(n=d.barHeight/u.length)*this.visibleI+h*(100-parseInt(this.barOptions.barHeight,10))/100/2+n*(this.visibleI+u.indexOf(p))+h*b)):(b>-1&&(s=g.config.plotOptions.bar.rangeBarGroupRows?o+c*b:o+l*this.visibleI+c*b),v>-1&&!g.config.plotOptions.bar.rangeBarOverlap&&(u=g.globals.seriesRange[e][v].overlaps).indexOf(p)>-1&&(s=(l=d.barWidth/u.length)*this.visibleI+c*(100-parseInt(this.barOptions.barWidth,10))/100/2+l*(this.visibleI+u.indexOf(p))+c*b)),{barYPosition:a,barXPosition:s,barHeight:n,barWidth:l}}},{key:"drawRangeColumnPaths",value:function(t){var e=t.indexes,i=t.x,a=t.xDivision,s=t.barWidth,r=t.barXPosition,o=t.zeroH,n=this.w,l=e.i,h=e.j,c=this.yRatio[this.yaxisIndex],d=e.realIndex,g=this.getRangeValue(d,h),u=Math.min(g.start,g.end),p=Math.max(g.start,g.end);void 0===this.series[l][h]||null===this.series[l][h]?u=o:(u=o-u/c,p=o-p/c);var f=Math.abs(p-u),x=this.barHelpers.getColumnPaths({barXPosition:r,barWidth:s,y1:u,y2:p,strokeWidth:this.strokeWidth,series:this.seriesRangeEnd,realIndex:e.realIndex,i:d,j:h,w:n});if(n.globals.isXNumeric){var b=this.getBarXForNumericXAxis({x:i,j:h,realIndex:d,barWidth:s});i=b.x,r=b.barXPosition}else i+=a;return{pathTo:x.pathTo,pathFrom:x.pathFrom,barHeight:f,x:i,y:p,goalY:this.barHelpers.getGoalValues("y",null,o,l,h),barXPosition:r}}},{key:"drawRangeBarPaths",value:function(t){var e=t.indexes,i=t.y,a=t.y1,s=t.y2,r=t.yDivision,o=t.barHeight,n=t.barYPosition,l=t.zeroW,h=this.w,c=l+a/this.invertedYRatio,d=l+s/this.invertedYRatio,g=Math.abs(d-c),u=this.barHelpers.getBarpaths({barYPosition:n,barHeight:o,x1:c,x2:d,strokeWidth:this.strokeWidth,series:this.seriesRangeEnd,i:e.realIndex,realIndex:e.realIndex,j:e.j,w:h});return h.globals.isXNumeric||(i+=r),{pathTo:u.pathTo,pathFrom:u.pathFrom,barWidth:g,x:d,goalX:this.barHelpers.getGoalValues("x",l,null,e.realIndex,e.j),y:i}}},{key:"getRangeValue",value:function(t,e){var i=this.w;return{start:i.globals.seriesRangeStart[t][e],end:i.globals.seriesRangeEnd[t][e]}}}]),i}(St),Yt=function(){function t(e){n(this,t),this.w=e.w,this.lineCtx=e}return h(t,[{key:"sameValueSeriesFix",value:function(t,e){var i=this.w;if(("gradient"===i.config.fill.type||"gradient"===i.config.fill.type[t])&&new S(this.lineCtx.ctx,i).seriesHaveSameValues(t)){var a=e[t].slice();a[a.length-1]=a[a.length-1]+1e-6,e[t]=a}return e}},{key:"calculatePoints",value:function(t){var e=t.series,i=t.realIndex,a=t.x,s=t.y,r=t.i,o=t.j,n=t.prevY,l=this.w,h=[],c=[];if(0===o){var d=this.lineCtx.categoryAxisCorrection+l.config.markers.offsetX;l.globals.isXNumeric&&(d=(l.globals.seriesX[i][0]-l.globals.minX)/this.lineCtx.xRatio+l.config.markers.offsetX),h.push(d),c.push(y.isNumber(e[r][0])?n+l.config.markers.offsetY:null),h.push(a+l.config.markers.offsetX),c.push(y.isNumber(e[r][o+1])?s+l.config.markers.offsetY:null)}else h.push(a+l.config.markers.offsetX),c.push(y.isNumber(e[r][o+1])?s+l.config.markers.offsetY:null);return{x:h,y:c}}},{key:"checkPreviousPaths",value:function(t){for(var e=t.pathFromLine,i=t.pathFromArea,a=t.realIndex,s=this.w,r=0;r0&&parseInt(o.realIndex,10)===parseInt(a,10)&&("line"===o.type?(this.lineCtx.appendPathFrom=!1,e=s.globals.previousPaths[r].paths[0].d):"area"===o.type&&(this.lineCtx.appendPathFrom=!1,i=s.globals.previousPaths[r].paths[0].d,s.config.stroke.show&&s.globals.previousPaths[r].paths[1]&&(e=s.globals.previousPaths[r].paths[1].d)))}return{pathFromLine:e,pathFromArea:i}}},{key:"determineFirstPrevY",value:function(t){var e,i,a=t.i,s=t.series,r=t.prevY,o=t.lineYPosition,n=this.w,l=n.config.chart.stacked&&!n.globals.comboCharts||n.config.chart.stacked&&n.globals.comboCharts&&(!this.w.config.chart.stackOnlyBar||"bar"===(null===(e=this.w.config.series[a])||void 0===e?void 0:e.type));if(void 0!==(null===(i=s[a])||void 0===i?void 0:i[0]))r=(o=l&&a>0?this.lineCtx.prevSeriesY[a-1][0]:this.lineCtx.zeroY)-s[a][0]/this.lineCtx.yRatio[this.lineCtx.yaxisIndex]+2*(this.lineCtx.isReversed?s[a][0]/this.lineCtx.yRatio[this.lineCtx.yaxisIndex]:0);else if(l&&a>0&&void 0===s[a][0])for(var h=a-1;h>=0;h--)if(null!==s[h][0]&&void 0!==s[h][0]){r=o=this.lineCtx.prevSeriesY[h][0];break}return{prevY:r,lineYPosition:o}}}]),t}(),Ft=function(t){for(var e,i,a,s,r=function(t){for(var e=[],i=t[0],a=t[1],s=e[0]=Dt(i,a),r=1,o=t.length-1;r9&&(s=3*a/Math.sqrt(s),r[l]=s*e,r[l+1]=s*i);for(var h=0;h<=o;h++)s=(t[Math.min(o,h+1)][0]-t[Math.max(0,h-1)][0])/(6*(1+r[h]*r[h])),n.push([s||0,r[h]*s||0]);return n},Rt=function(t,e){for(var i="",a=0;a1&&Math.abs(s[o-2]-r[n-2])4?(i+="C".concat(s[0],", ").concat(s[1]),i+=", ".concat(s[2],", ").concat(s[3]),i+=", ".concat(s[4],", ").concat(s[5])):o>2&&(i+="S".concat(s[0],", ").concat(s[1]),i+=", ".concat(s[2],", ").concat(s[3]))}return i},Ht=function(t){var e=Ft(t),i=t[1],a=t[0],s=[],r=e[1],o=e[0];s.push(a,[a[0]+o[0],a[1]+o[1],i[0]-r[0],i[1]-r[1],i[0],i[1]]);for(var n=2,l=e.length;n0&&(b=(o.globals.seriesX[u][0]-o.globals.minX)/this.xRatio),x.push(b);var v=b,m=this.zeroY,y=this.zeroY;m=this.lineHelpers.determineFirstPrevY({i:g,series:t,prevY:m,lineYPosition:0}).prevY,"smooth"===o.config.stroke.curve&&null===t[g][0]?p.push(null):p.push(m),"rangeArea"===l&&(y=this.lineHelpers.determineFirstPrevY({i:g,series:a,prevY:y,lineYPosition:0}).prevY,f.push(y));var w={type:l,series:t,realIndex:u,i:g,x:b,y:1,pathsFrom:this._calculatePathsFrom({type:l,series:t,i:g,realIndex:u,prevX:v,prevY:m,prevY2:y}),linePaths:[],areaPaths:[],seriesIndex:i,lineYPosition:0,xArrj:x,yArrj:p,y2Arrj:f,seriesRangeEnd:a},k=this._iterateOverDataPoints(r(r({},w),{},{iterations:"rangeArea"===l?t[g].length-1:void 0,isRangeStart:!0}));if("rangeArea"===l){var C=this._calculatePathsFrom({series:a,i:g,realIndex:u,prevX:v,prevY:y}),L=this._iterateOverDataPoints(r(r({},w),{},{series:a,pathsFrom:C,iterations:a[g].length-1,isRangeStart:!1}));k.linePaths[0]=L.linePath+k.linePath,k.pathFromLine=L.pathFromLine+k.pathFromLine}this._handlePaths({type:l,realIndex:u,i:g,paths:k}),this.elSeries.add(this.elPointsMain),this.elSeries.add(this.elDataLabelsWrap),d.push(this.elSeries)}if(void 0!==(null===(s=o.config.series[0])||void 0===s?void 0:s.zIndex)&&d.sort((function(t,e){return Number(t.node.getAttribute("zIndex"))-Number(e.node.getAttribute("zIndex"))})),o.config.chart.stacked)for(var P=d.length;P>0;P--)h.add(d[P-1]);else for(var I=0;I1&&(this.yaxisIndex=i),this.isReversed=a.config.yaxis[this.yaxisIndex]&&a.config.yaxis[this.yaxisIndex].reversed,this.zeroY=a.globals.gridHeight-this.baseLineY[this.yaxisIndex]-(this.isReversed?a.globals.gridHeight:0)+(this.isReversed?2*this.baseLineY[this.yaxisIndex]:0),this.areaBottomY=this.zeroY,(this.zeroY>a.globals.gridHeight||"end"===a.config.plotOptions.area.fillTo)&&(this.areaBottomY=a.globals.gridHeight),this.categoryAxisCorrection=this.xDivision/2,this.elSeries=s.group({class:"apexcharts-series",zIndex:void 0!==a.config.series[i].zIndex?a.config.series[i].zIndex:i,seriesName:y.escapeString(a.globals.seriesNames[i])}),this.elPointsMain=s.group({class:"apexcharts-series-markers-wrap","data:realIndex":i}),this.elDataLabelsWrap=s.group({class:"apexcharts-datalabels","data:realIndex":i});var r=t[e].length===a.globals.dataPoints;this.elSeries.attr({"data:longestSeries":r,rel:e+1,"data:realIndex":i}),this.appendPathFrom=!0}},{key:"_calculatePathsFrom",value:function(t){var e,i,a,s,r=t.type,o=t.series,n=t.i,l=t.realIndex,h=t.prevX,c=t.prevY,d=t.prevY2,g=this.w,u=new A(this.ctx);if(null===o[n][0]){for(var p=0;p0){var f=this.lineHelpers.checkPreviousPaths({pathFromLine:a,pathFromArea:s,realIndex:l});a=f.pathFromLine,s=f.pathFromArea}return{prevX:h,prevY:c,linePath:e,areaPath:i,pathFromLine:a,pathFromArea:s}}},{key:"_handlePaths",value:function(t){var e=t.type,i=t.realIndex,a=t.i,s=t.paths,o=this.w,n=new A(this.ctx),l=new N(this.ctx);this.prevSeriesY.push(s.yArrj),o.globals.seriesXvalues[i]=s.xArrj,o.globals.seriesYvalues[i]=s.yArrj;var h=o.config.forecastDataPoints;if(h.count>0&&"rangeArea"!==e){var c=o.globals.seriesXvalues[i][o.globals.seriesXvalues[i].length-h.count-1],d=n.drawRect(c,0,o.globals.gridWidth,o.globals.gridHeight,0);o.globals.dom.elForecastMask.appendChild(d.node);var g=n.drawRect(0,0,c,o.globals.gridHeight,0);o.globals.dom.elNonForecastMask.appendChild(g.node)}this.pointsChart||o.globals.delayedElements.push({el:this.elPointsMain.node,index:i});var u={i:a,realIndex:i,animationDelay:a,initialSpeed:o.config.chart.animations.speed,dataChangeSpeed:o.config.chart.animations.dynamicAnimation.speed,className:"apexcharts-".concat(e)};if("area"===e)for(var p=l.fillPath({seriesNumber:i}),f=0;f0&&"rangeArea"!==e){var S=n.renderPaths(w);S.node.setAttribute("stroke-dasharray",h.dashArray),h.strokeWidth&&S.node.setAttribute("stroke-width",h.strokeWidth),this.elSeries.add(S),S.attr("clip-path","url(#forecastMask".concat(o.globals.cuid,")")),k.attr("clip-path","url(#nonForecastMask".concat(o.globals.cuid,")"))}}}}},{key:"_iterateOverDataPoints",value:function(t){var e,i=this,a=t.type,s=t.series,r=t.iterations,o=t.realIndex,n=t.i,l=t.x,h=t.y,c=t.pathsFrom,d=t.linePaths,g=t.areaPaths,u=t.seriesIndex,p=t.lineYPosition,f=t.xArrj,x=t.yArrj,b=t.y2Arrj,v=t.isRangeStart,m=t.seriesRangeEnd,w=this.w,k=new A(this.ctx),S=this.yRatio,C=c.prevY,L=c.linePath,P=c.areaPath,I=c.pathFromLine,T=c.pathFromArea,M=y.isNumber(w.globals.minYArr[o])?w.globals.minYArr[o]:w.globals.minY;r||(r=w.globals.dataPoints>1?w.globals.dataPoints-1:w.globals.dataPoints);for(var z=function(t,e){return e-t/S[i.yaxisIndex]+2*(i.isReversed?t/S[i.yaxisIndex]:0)},X=h,E=w.config.chart.stacked&&!w.globals.comboCharts||w.config.chart.stacked&&w.globals.comboCharts&&(!this.w.config.chart.stackOnlyBar||"bar"===(null===(e=this.w.config.series[o])||void 0===e?void 0:e.type)),Y=0;Y0&&w.globals.collapsedSeries.length-1){e--;break}return e>=0?e:0}(n-1)][Y+1]:this.zeroY,F?h=z(M,p):(h=z(s[n][Y+1],p),"rangeArea"===a&&(X=z(m[n][Y+1],p))),f.push(l),F&&"smooth"===w.config.stroke.curve?x.push(null):x.push(h),b.push(X);var H=this.lineHelpers.calculatePoints({series:s,x:l,y:h,realIndex:o,i:n,j:Y,prevY:C}),D=this._createPaths({type:a,series:s,i:n,realIndex:o,j:Y,x:l,y:h,y2:X,xArrj:f,yArrj:x,y2Arrj:b,linePath:L,areaPath:P,linePaths:d,areaPaths:g,seriesIndex:u,isRangeStart:v});g=D.areaPaths,d=D.linePaths,P=D.areaPath,L=D.linePath,!this.appendPathFrom||"smooth"===w.config.stroke.curve&&"rangeArea"===a||(I+=k.line(l,this.zeroY),T+=k.line(l,this.zeroY)),this.handleNullDataPoints(s,H,n,Y,o),this._handleMarkersAndLabels({type:a,pointsPos:H,i:n,j:Y,realIndex:o,isRangeStart:v})}return{yArrj:x,xArrj:f,pathFromArea:T,areaPaths:g,pathFromLine:I,linePaths:d,linePath:L,areaPath:P}}},{key:"_handleMarkersAndLabels",value:function(t){var e=t.type,i=t.pointsPos,a=t.isRangeStart,s=t.i,r=t.j,o=t.realIndex,n=this.w,l=new G(this.ctx);if(this.pointsChart)this.scatter.draw(this.elSeries,r,{realIndex:o,pointsPos:i,zRatio:this.zRatio,elParent:this.elPointsMain});else{n.globals.series[s].length>1&&this.elPointsMain.node.classList.add("apexcharts-element-hidden");var h=this.markers.plotChartMarkers(i,o,r+1);null!==h&&this.elPointsMain.add(h)}var c=l.drawDataLabel({type:e,isRangeStart:a,pos:i,i:o,j:r+1});null!==c&&this.elDataLabelsWrap.add(c)}},{key:"_createPaths",value:function(t){var e=t.type,i=t.series,a=t.i,s=t.realIndex,r=t.j,o=t.x,n=t.y,l=t.xArrj,h=t.yArrj,c=t.y2,d=t.y2Arrj,g=t.linePath,u=t.areaPath,p=t.linePaths,f=t.areaPaths,x=t.seriesIndex,b=t.isRangeStart,v=this.w,m=new A(this.ctx),y=v.config.stroke.curve,w=this.areaBottomY;if(Array.isArray(v.config.stroke.curve)&&(y=Array.isArray(x)?v.config.stroke.curve[x[a]]:v.config.stroke.curve[a]),"rangeArea"===e&&(v.globals.hasNullValues||v.config.forecastDataPoints.count>0)&&"smooth"===y&&(y="straight"),"smooth"===y){var k="rangeArea"===e?l.length===v.globals.dataPoints:r===i[a].length-2,S=l.map((function(t,e){return[l[e],h[e]]})).filter((function(t){return null!==t[1]}));if(k&&S.length>1){var C=Ht(S);if(g+=Rt(C,v.globals.gridWidth),null===i[a][0]?u=g:u+=Rt(C,v.globals.gridWidth),"rangeArea"===e&&b){g+=m.line(l[l.length-1],d[d.length-1]);var L=l.slice().reverse(),P=d.slice().reverse(),I=L.map((function(t,e){return[L[e],P[e]]})),T=Ht(I);u=g+=Rt(T,v.globals.gridWidth)}else u+=m.line(S[S.length-1][0],w)+m.line(S[0][0],w)+m.move(S[0][0],S[0][1])+"z";p.push(g),f.push(u)}}else{if(null===i[a][r+1]){g+=m.move(o,n);var M=v.globals.isXNumeric?(v.globals.seriesX[s][r]-v.globals.minX)/this.xRatio:o-this.xDivision;u=u+m.line(M,w)+m.move(o,n)+"z"}null===i[a][r]&&(g+=m.move(o,n),u+=m.move(o,w)),"stepline"===y?(g=g+m.line(o,null,"H")+m.line(null,n,"V"),u=u+m.line(o,null,"H")+m.line(null,n,"V")):"straight"===y&&(g+=m.line(o,n),u+=m.line(o,n)),r===i[a].length-2&&(u=u+m.line(o,w)+m.move(o,n)+"z","rangeArea"===e&&b?g=g+m.line(o,c)+m.move(o,c)+"z":(p.push(g),f.push(u)))}return{linePaths:p,areaPaths:f,linePath:g,areaPath:u}}},{key:"handleNullDataPoints",value:function(t,e,i,a,s){var r=this.w;if(null===t[i][a]&&r.config.markers.showNullDataPoints||1===t[i].length){var o=this.markers.plotChartMarkers(e,s,a+1,this.strokeWidth-r.config.markers.strokeWidth/2,!0);null!==o&&this.elPointsMain.add(o)}}}]),t}();window.TreemapSquared={},window.TreemapSquared.generate=function(){function t(e,i,a,s){this.xoffset=e,this.yoffset=i,this.height=s,this.width=a,this.shortestEdge=function(){return Math.min(this.height,this.width)},this.getCoordinates=function(t){var e,i=[],a=this.xoffset,s=this.yoffset,o=r(t)/this.height,n=r(t)/this.width;if(this.width>=this.height)for(e=0;e=this.height){var a=e/this.height,s=this.width-a;i=new t(this.xoffset+a,this.yoffset,s,this.height)}else{var r=e/this.width,o=this.height-r;i=new t(this.xoffset,this.yoffset+r,this.width,o)}return i}}function e(e,a,s,o,n){o=void 0===o?0:o,n=void 0===n?0:n;var l=i(function(t,e){var i,a=[],s=e/r(t);for(i=0;i=o}(e,l=t[0],n)?(e.push(l),i(t.slice(1),e,s,o)):(h=s.cutArea(r(e),o),o.push(s.getCoordinates(e)),i(t,[],h,o)),o;o.push(s.getCoordinates(e))}function a(t,e){var i=Math.min.apply(Math,t),a=Math.max.apply(Math,t),s=r(t);return Math.max(Math.pow(e,2)*a/Math.pow(s,2),Math.pow(s,2)/(Math.pow(e,2)*i))}function s(t){return t&&t.constructor===Array}function r(t){var e,i=0;for(e=0;er-a&&l.width<=o-s){var h=n.rotateAroundCenter(t.node);t.node.setAttribute("transform","rotate(-90 ".concat(h.x," ").concat(h.y,") translate(").concat(l.height/3,")"))}}},{key:"truncateLabels",value:function(t,e,i,a,s,r){var o=new A(this.ctx),n=o.getTextRects(t,e).width+this.w.config.stroke.width+5>s-i&&r-a>s-i?r-a:s-i,l=o.getTextBasedOnMaxWidth({text:t,maxWidth:n,fontSize:e});return t.length!==l.length&&n/e<5?"":l}},{key:"animateTreemap",value:function(t,e,i,a){var s=new w(this.ctx);s.animateRect(t,{x:e.x,y:e.y,width:e.width,height:e.height},{x:i.x,y:i.y,width:i.width,height:i.height},a,(function(){s.animationCompleted(t)}))}}]),t}(),Gt=86400,Vt=function(){function t(e){n(this,t),this.ctx=e,this.w=e.w,this.timeScaleArray=[],this.utc=this.w.config.xaxis.labels.datetimeUTC}return h(t,[{key:"calculateTimeScaleTicks",value:function(t,e){var i=this,a=this.w;if(a.globals.allSeriesCollapsed)return a.globals.labels=[],a.globals.timescaleLabels=[],[];var s=new X(this.ctx),o=(e-t)/864e5;this.determineInterval(o),a.globals.disableZoomIn=!1,a.globals.disableZoomOut=!1,o<.00011574074074074075?a.globals.disableZoomIn=!0:o>5e4&&(a.globals.disableZoomOut=!0);var n=s.getTimeUnitsfromTimestamp(t,e,this.utc),l=a.globals.gridWidth/o,h=l/24,c=h/60,d=c/60,g=Math.floor(24*o),u=Math.floor(1440*o),p=Math.floor(o*Gt),f=Math.floor(o),x=Math.floor(o/30),b=Math.floor(o/365),v={minMillisecond:n.minMillisecond,minSecond:n.minSecond,minMinute:n.minMinute,minHour:n.minHour,minDate:n.minDate,minMonth:n.minMonth,minYear:n.minYear},m={firstVal:v,currentMillisecond:v.minMillisecond,currentSecond:v.minSecond,currentMinute:v.minMinute,currentHour:v.minHour,currentMonthDate:v.minDate,currentDate:v.minDate,currentMonth:v.minMonth,currentYear:v.minYear,daysWidthOnXAxis:l,hoursWidthOnXAxis:h,minutesWidthOnXAxis:c,secondsWidthOnXAxis:d,numberOfSeconds:p,numberOfMinutes:u,numberOfHours:g,numberOfDays:f,numberOfMonths:x,numberOfYears:b};switch(this.tickInterval){case"years":this.generateYearScale(m);break;case"months":case"half_year":this.generateMonthScale(m);break;case"months_days":case"months_fortnight":case"days":case"week_days":this.generateDayScale(m);break;case"hours":this.generateHourScale(m);break;case"minutes_fives":case"minutes":this.generateMinuteScale(m);break;case"seconds_tens":case"seconds_fives":case"seconds":this.generateSecondScale(m)}var y=this.timeScaleArray.map((function(t){var e={position:t.position,unit:t.unit,year:t.year,day:t.day?t.day:1,hour:t.hour?t.hour:0,month:t.month+1};return"month"===t.unit?r(r({},e),{},{day:1,value:t.value+1}):"day"===t.unit||"hour"===t.unit?r(r({},e),{},{value:t.value}):"minute"===t.unit?r(r({},e),{},{value:t.value,minute:t.value}):"second"===t.unit?r(r({},e),{},{value:t.value,minute:t.minute,second:t.second}):t}));return y.filter((function(t){var e=1,s=Math.ceil(a.globals.gridWidth/120),r=t.value;void 0!==a.config.xaxis.tickAmount&&(s=a.config.xaxis.tickAmount),y.length>s&&(e=Math.floor(y.length/s));var o=!1,n=!1;switch(i.tickInterval){case"years":"year"===t.unit&&(o=!0);break;case"half_year":e=7,"year"===t.unit&&(o=!0);break;case"months":e=1,"year"===t.unit&&(o=!0);break;case"months_fortnight":e=15,"year"!==t.unit&&"month"!==t.unit||(o=!0),30===r&&(n=!0);break;case"months_days":e=10,"month"===t.unit&&(o=!0),30===r&&(n=!0);break;case"week_days":e=8,"month"===t.unit&&(o=!0);break;case"days":e=1,"month"===t.unit&&(o=!0);break;case"hours":"day"===t.unit&&(o=!0);break;case"minutes_fives":case"seconds_fives":r%5!=0&&(n=!0);break;case"seconds_tens":r%10!=0&&(n=!0)}if("hours"===i.tickInterval||"minutes_fives"===i.tickInterval||"seconds_tens"===i.tickInterval||"seconds_fives"===i.tickInterval){if(!n)return!0}else if((r%e==0||o)&&!n)return!0}))}},{key:"recalcDimensionsBasedOnFormat",value:function(t,e){var i=this.w,a=this.formatDates(t),s=this.removeOverlappingTS(a);i.globals.timescaleLabels=s.slice(),new ct(this.ctx).plotCoords()}},{key:"determineInterval",value:function(t){var e=24*t,i=60*e;switch(!0){case t/365>5:this.tickInterval="years";break;case t>800:this.tickInterval="half_year";break;case t>180:this.tickInterval="months";break;case t>90:this.tickInterval="months_fortnight";break;case t>60:this.tickInterval="months_days";break;case t>30:this.tickInterval="week_days";break;case t>2:this.tickInterval="days";break;case e>2.4:this.tickInterval="hours";break;case i>15:this.tickInterval="minutes_fives";break;case i>5:this.tickInterval="minutes";break;case i>1:this.tickInterval="seconds_tens";break;case 60*i>20:this.tickInterval="seconds_fives";break;default:this.tickInterval="seconds"}}},{key:"generateYearScale",value:function(t){var e=t.firstVal,i=t.currentMonth,a=t.currentYear,s=t.daysWidthOnXAxis,r=t.numberOfYears,o=e.minYear,n=0,l=new X(this.ctx),h="year";if(e.minDate>1||e.minMonth>0){var c=l.determineRemainingDaysOfYear(e.minYear,e.minMonth,e.minDate);n=(l.determineDaysOfYear(e.minYear)-c+1)*s,o=e.minYear+1,this.timeScaleArray.push({position:n,value:o,unit:h,year:o,month:y.monthMod(i+1)})}else 1===e.minDate&&0===e.minMonth&&this.timeScaleArray.push({position:n,value:o,unit:h,year:a,month:y.monthMod(i+1)});for(var d=o,g=n,u=0;u1){l=(h.determineDaysOfMonths(a+1,e.minYear)-i+1)*r,n=y.monthMod(a+1);var g=s+d,u=y.monthMod(n),p=n;0===n&&(c="year",p=g,u=1,g+=d+=1),this.timeScaleArray.push({position:l,value:p,unit:c,year:g,month:u})}else this.timeScaleArray.push({position:l,value:n,unit:c,year:s,month:y.monthMod(a)});for(var f=n+1,x=l,b=0,v=1;bo.determineDaysOfMonths(e+1,i)?(h=1,n="month",g=e+=1,e):e},d=(24-e.minHour)*s,g=l,u=c(h,i,a);0===e.minHour&&1===e.minDate?(d=0,g=y.monthMod(e.minMonth),n="month",h=e.minDate):1!==e.minDate&&0===e.minHour&&0===e.minMinute&&(d=0,l=e.minDate,g=l,u=c(h=l,i,a)),this.timeScaleArray.push({position:d,value:g,unit:n,year:this._getYear(a,u,0),month:y.monthMod(u),day:h});for(var p=d,f=0;fn.determineDaysOfMonths(e+1,s)&&(f=1,e+=1),{month:e,date:f}},c=function(t,e){return t>n.determineDaysOfMonths(e+1,s)?e+=1:e},d=60-(e.minMinute+e.minSecond/60),g=d*r,u=e.minHour+1,p=u;60===d&&(g=0,p=u=e.minHour);var f=i;p>=24&&(p=0,f+=1,l="day");var x=h(f,a).month;x=c(f,x),this.timeScaleArray.push({position:g,value:u,unit:l,day:f,hour:p,year:s,month:y.monthMod(x)}),p++;for(var b=g,v=0;v=24&&(p=0,l="day",x=h(f+=1,x).month,x=c(f,x));var m=this._getYear(s,x,0);b=60*r+b;var w=0===p?f:p;this.timeScaleArray.push({position:b,value:w,unit:l,hour:p,day:f,year:m,month:y.monthMod(x)}),p++}}},{key:"generateMinuteScale",value:function(t){for(var e=t.currentMillisecond,i=t.currentSecond,a=t.currentMinute,s=t.currentHour,r=t.currentDate,o=t.currentMonth,n=t.currentYear,l=t.minutesWidthOnXAxis,h=t.secondsWidthOnXAxis,c=t.numberOfMinutes,d=a+1,g=r,u=o,p=n,f=s,x=(60-i-e/1e3)*h,b=0;b=60&&(d=0,24===(f+=1)&&(f=0)),this.timeScaleArray.push({position:x,value:d,unit:"minute",hour:f,minute:d,day:g,year:this._getYear(p,u,0),month:y.monthMod(u)}),x+=l,d++}},{key:"generateSecondScale",value:function(t){for(var e=t.currentMillisecond,i=t.currentSecond,a=t.currentMinute,s=t.currentHour,r=t.currentDate,o=t.currentMonth,n=t.currentYear,l=t.secondsWidthOnXAxis,h=t.numberOfSeconds,c=i+1,d=a,g=r,u=o,p=n,f=s,x=(1e3-e)/1e3*l,b=0;b=60&&(c=0,++d>=60&&(d=0,24===++f&&(f=0))),this.timeScaleArray.push({position:x,value:c,unit:"second",hour:f,minute:d,second:c,day:g,year:this._getYear(p,u,0),month:y.monthMod(u)}),x+=l,c++}},{key:"createRawDateString",value:function(t,e){var i=t.year;return 0===t.month&&(t.month=1),i+="-"+("0"+t.month.toString()).slice(-2),"day"===t.unit?i+="day"===t.unit?"-"+("0"+e).slice(-2):"-01":i+="-"+("0"+(t.day?t.day:"1")).slice(-2),"hour"===t.unit?i+="hour"===t.unit?"T"+("0"+e).slice(-2):"T00":i+="T"+("0"+(t.hour?t.hour:"0")).slice(-2),"minute"===t.unit?i+=":"+("0"+e).slice(-2):i+=":"+(t.minute?("0"+t.minute).slice(-2):"00"),"second"===t.unit?i+=":"+("0"+e).slice(-2):i+=":00",this.utc&&(i+=".000Z"),i}},{key:"formatDates",value:function(t){var e=this,i=this.w;return t.map((function(t){var a=t.value.toString(),s=new X(e.ctx),r=e.createRawDateString(t,a),o=s.getDate(s.parseDate(r));if(e.utc||(o=s.getDate(s.parseDateWithTimezone(r))),void 0===i.config.xaxis.labels.format){var n="dd MMM",l=i.config.xaxis.labels.datetimeFormatter;"year"===t.unit&&(n=l.year),"month"===t.unit&&(n=l.month),"day"===t.unit&&(n=l.day),"hour"===t.unit&&(n=l.hour),"minute"===t.unit&&(n=l.minute),"second"===t.unit&&(n=l.second),a=s.formatDate(o,n)}else a=s.formatDate(o,i.config.xaxis.labels.format);return{dateString:r,position:t.position,value:a,unit:t.unit,year:t.year,month:t.month}}))}},{key:"removeOverlappingTS",value:function(t){var e,i=this,a=new A(this.ctx),s=!1;t.length>0&&t[0].value&&t.every((function(e){return e.value.length===t[0].value.length}))&&(s=!0,e=a.getTextRects(t[0].value).width);var r=0,o=t.map((function(o,n){if(n>0&&i.w.config.xaxis.labels.hideOverlappingLabels){var l=s?e:a.getTextRects(t[r].value).width,h=t[r].position;return o.position>h+l+10?(r=n,o):null}return o}));return o.filter((function(t){return null!==t}))}},{key:"_getYear",value:function(t,e,i){return t+Math.floor(e/12)+i}}]),t}(),jt=function(){function t(e,i){n(this,t),this.ctx=i,this.w=i.w,this.el=e}return h(t,[{key:"setupElements",value:function(){var t=this.w.globals,e=this.w.config,i=e.chart.type;t.axisCharts=["line","area","bar","rangeBar","rangeArea","candlestick","boxPlot","scatter","bubble","radar","heatmap","treemap"].indexOf(i)>-1,t.xyCharts=["line","area","bar","rangeBar","rangeArea","candlestick","boxPlot","scatter","bubble"].indexOf(i)>-1,t.isBarHorizontal=("bar"===e.chart.type||"rangeBar"===e.chart.type||"boxPlot"===e.chart.type)&&e.plotOptions.bar.horizontal,t.chartClass=".apexcharts"+t.chartID,t.dom.baseEl=this.el,t.dom.elWrap=document.createElement("div"),A.setAttrs(t.dom.elWrap,{id:t.chartClass.substring(1),class:"apexcharts-canvas "+t.chartClass.substring(1)}),this.el.appendChild(t.dom.elWrap),t.dom.Paper=new window.SVG.Doc(t.dom.elWrap),t.dom.Paper.attr({class:"apexcharts-svg","xmlns:data":"ApexChartsNS",transform:"translate(".concat(e.chart.offsetX,", ").concat(e.chart.offsetY,")")}),t.dom.Paper.node.style.background="dark"!==e.theme.mode||e.chart.background?e.chart.background:"rgba(0, 0, 0, 0.8)",this.setSVGDimensions(),t.dom.elLegendForeign=document.createElementNS(t.SVGNS,"foreignObject"),A.setAttrs(t.dom.elLegendForeign,{x:0,y:0,width:t.svgWidth,height:t.svgHeight}),t.dom.elLegendWrap=document.createElement("div"),t.dom.elLegendWrap.classList.add("apexcharts-legend"),t.dom.elLegendWrap.setAttribute("xmlns","http://www.w3.org/1999/xhtml"),t.dom.elLegendForeign.appendChild(t.dom.elLegendWrap),t.dom.Paper.node.appendChild(t.dom.elLegendForeign),t.dom.elGraphical=t.dom.Paper.group().attr({class:"apexcharts-inner apexcharts-graphical"}),t.dom.elDefs=t.dom.Paper.defs(),t.dom.Paper.add(t.dom.elGraphical),t.dom.elGraphical.add(t.dom.elDefs)}},{key:"plotChartType",value:function(t,e){var i=this.w,a=i.config,s=i.globals,r={series:[],i:[]},o={series:[],i:[]},n={series:[],i:[]},l={series:[],i:[]},h={series:[],i:[]},c={series:[],i:[]},d={series:[],i:[]},g={series:[],i:[]},u={series:[],seriesRangeEnd:[],i:[]};s.series.map((function(e,p){var f=0;void 0!==t[p].type?("column"===t[p].type||"bar"===t[p].type?(s.series.length>1&&a.plotOptions.bar.horizontal&&console.warn("Horizontal bars are not supported in a mixed/combo chart. Please turn off `plotOptions.bar.horizontal`"),h.series.push(e),h.i.push(p),f++,i.globals.columnSeries=h.series):"area"===t[p].type?(o.series.push(e),o.i.push(p),f++):"line"===t[p].type?(r.series.push(e),r.i.push(p),f++):"scatter"===t[p].type?(n.series.push(e),n.i.push(p)):"bubble"===t[p].type?(l.series.push(e),l.i.push(p),f++):"candlestick"===t[p].type?(c.series.push(e),c.i.push(p),f++):"boxPlot"===t[p].type?(d.series.push(e),d.i.push(p),f++):"rangeBar"===t[p].type?(g.series.push(e),g.i.push(p),f++):"rangeArea"===t[p].type?(u.series.push(s.seriesRangeStart[p]),u.seriesRangeEnd.push(s.seriesRangeEnd[p]),u.i.push(p),f++):console.warn("You have specified an unrecognized chart type. Available types for this property are line/area/column/bar/scatter/bubble/candlestick/boxPlot/rangeBar/rangeArea"),f>1&&(s.comboCharts=!0)):(r.series.push(e),r.i.push(p))}));var p=new Ot(this.ctx,e),f=new Lt(this.ctx,e);this.ctx.pie=new Mt(this.ctx);var x=new Xt(this.ctx);this.ctx.rangeBar=new Et(this.ctx,e);var b=new zt(this.ctx),v=[];if(s.comboCharts){if(o.series.length>0&&v.push(p.draw(o.series,"area",o.i)),h.series.length>0)if(i.config.chart.stacked){var m=new Ct(this.ctx,e);v.push(m.draw(h.series,h.i))}else this.ctx.bar=new St(this.ctx,e),v.push(this.ctx.bar.draw(h.series,h.i));if(u.series.length>0&&v.push(p.draw(u.series,"rangeArea",u.i,u.seriesRangeEnd)),r.series.length>0&&v.push(p.draw(r.series,"line",r.i)),c.series.length>0&&v.push(f.draw(c.series,"candlestick",c.i)),d.series.length>0&&v.push(f.draw(d.series,"boxPlot",d.i)),g.series.length>0&&v.push(this.ctx.rangeBar.draw(g.series,g.i)),n.series.length>0){var y=new Ot(this.ctx,e,!0);v.push(y.draw(n.series,"scatter",n.i))}if(l.series.length>0){var w=new Ot(this.ctx,e,!0);v.push(w.draw(l.series,"bubble",l.i))}}else switch(a.chart.type){case"line":v=p.draw(s.series,"line");break;case"area":v=p.draw(s.series,"area");break;case"bar":a.chart.stacked?v=new Ct(this.ctx,e).draw(s.series):(this.ctx.bar=new St(this.ctx,e),v=this.ctx.bar.draw(s.series));break;case"candlestick":v=new Lt(this.ctx,e).draw(s.series,"candlestick");break;case"boxPlot":v=new Lt(this.ctx,e).draw(s.series,a.chart.type);break;case"rangeBar":v=this.ctx.rangeBar.draw(s.series);break;case"rangeArea":v=p.draw(s.seriesRangeStart,"rangeArea",void 0,s.seriesRangeEnd);break;case"heatmap":v=new It(this.ctx,e).draw(s.series);break;case"treemap":v=new Bt(this.ctx,e).draw(s.series);break;case"pie":case"donut":case"polarArea":v=this.ctx.pie.draw(s.series);break;case"radialBar":v=x.draw(s.series);break;case"radar":v=b.draw(s.series);break;default:v=p.draw(s.series)}return v}},{key:"setSVGDimensions",value:function(){var t=this.w.globals,e=this.w.config;t.svgWidth=e.chart.width,t.svgHeight=e.chart.height;var i=y.getDimensions(this.el),a=e.chart.width.toString().split(/[0-9]+/g).pop();"%"===a?y.isNumber(i[0])&&(0===i[0].width&&(i=y.getDimensions(this.el.parentNode)),t.svgWidth=i[0]*parseInt(e.chart.width,10)/100):"px"!==a&&""!==a||(t.svgWidth=parseInt(e.chart.width,10));var s=e.chart.height.toString().split(/[0-9]+/g).pop();if("auto"!==t.svgHeight&&""!==t.svgHeight)if("%"===s){var r=y.getDimensions(this.el.parentNode);t.svgHeight=r[1]*parseInt(e.chart.height,10)/100}else t.svgHeight=parseInt(e.chart.height,10);else t.axisCharts?t.svgHeight=t.svgWidth/1.61:t.svgHeight=t.svgWidth/1.2;if(t.svgWidth<0&&(t.svgWidth=0),t.svgHeight<0&&(t.svgHeight=0),A.setAttrs(t.dom.Paper.node,{width:t.svgWidth,height:t.svgHeight}),"%"!==s){var o=e.chart.sparkline.enabled?0:t.axisCharts?e.chart.parentHeightOffset:0;t.dom.Paper.node.parentNode.parentNode.style.minHeight=t.svgHeight+o+"px"}t.dom.elWrap.style.width=t.svgWidth+"px",t.dom.elWrap.style.height=t.svgHeight+"px"}},{key:"shiftGraphPosition",value:function(){var t=this.w.globals,e=t.translateY,i={transform:"translate("+t.translateX+", "+e+")"};A.setAttrs(t.dom.elGraphical.node,i)}},{key:"resizeNonAxisCharts",value:function(){var t=this.w,e=t.globals,i=0,a=t.config.chart.sparkline.enabled?1:15;a+=t.config.grid.padding.bottom,"top"!==t.config.legend.position&&"bottom"!==t.config.legend.position||!t.config.legend.show||t.config.legend.floating||(i=new gt(this.ctx).legendHelpers.getLegendBBox().clwh+10);var s=t.globals.dom.baseEl.querySelector(".apexcharts-radialbar, .apexcharts-pie"),r=2.05*t.globals.radialSize;if(s&&!t.config.chart.sparkline.enabled&&0!==t.config.plotOptions.radialBar.startAngle){var o=y.getBoundingClientRect(s);r=o.bottom;var n=o.bottom-o.top;r=Math.max(2.05*t.globals.radialSize,n)}var l=r+e.translateY+i+a;e.dom.elLegendForeign&&e.dom.elLegendForeign.setAttribute("height",l),t.config.chart.height&&String(t.config.chart.height).indexOf("%")>0||(e.dom.elWrap.style.height=l+"px",A.setAttrs(e.dom.Paper.node,{height:l}),e.dom.Paper.node.parentNode.parentNode.style.minHeight=l+"px")}},{key:"coreCalculations",value:function(){new J(this.ctx).init()}},{key:"resetGlobals",value:function(){var t=this,e=function(){return t.w.config.series.map((function(t){return[]}))},i=new D,a=this.w.globals;i.initGlobalVars(a),a.seriesXvalues=e(),a.seriesYvalues=e()}},{key:"isMultipleY",value:function(){if(this.w.config.yaxis.constructor===Array&&this.w.config.yaxis.length>1)return this.w.globals.isMultipleYAxis=!0,!0}},{key:"xySettings",value:function(){var t=null,e=this.w;if(e.globals.axisCharts){if("back"===e.config.xaxis.crosshairs.position&&new it(this.ctx).drawXCrosshairs(),"back"===e.config.yaxis[0].crosshairs.position&&new it(this.ctx).drawYCrosshairs(),"datetime"===e.config.xaxis.type&&void 0===e.config.xaxis.labels.formatter){this.ctx.timeScale=new Vt(this.ctx);var i=[];isFinite(e.globals.minX)&&isFinite(e.globals.maxX)&&!e.globals.isBarHorizontal?i=this.ctx.timeScale.calculateTimeScaleTicks(e.globals.minX,e.globals.maxX):e.globals.isBarHorizontal&&(i=this.ctx.timeScale.calculateTimeScaleTicks(e.globals.minY,e.globals.maxY)),this.ctx.timeScale.recalcDimensionsBasedOnFormat(i)}t=new S(this.ctx).getCalculatedRatios()}return t}},{key:"updateSourceChart",value:function(t){this.ctx.w.globals.selection=void 0,this.ctx.updateHelpers._updateOptions({chart:{selection:{xaxis:{min:t.w.globals.minX,max:t.w.globals.maxX}}}},!1,!1)}},{key:"setupBrushHandler",value:function(){var t=this,e=this.w;if(e.config.chart.brush.enabled&&"function"!=typeof e.config.chart.events.selection){var i=Array.isArray(e.config.chart.brush.targets)||[e.config.chart.brush.target];i.forEach((function(e){var i=ApexCharts.getChartByID(e);i.w.globals.brushSource=t.ctx,"function"!=typeof i.w.config.chart.events.zoomed&&(i.w.config.chart.events.zoomed=function(){t.updateSourceChart(i)}),"function"!=typeof i.w.config.chart.events.scrolled&&(i.w.config.chart.events.scrolled=function(){t.updateSourceChart(i)})})),e.config.chart.events.selection=function(t,a){i.forEach((function(t){var i=ApexCharts.getChartByID(t),s=y.clone(e.config.yaxis);if(e.config.chart.brush.autoScaleYaxis&&1===i.w.globals.series.length){var o=new $(i);s=o.autoScaleY(i,s,a)}var n=i.w.config.yaxis.reduce((function(t,e,a){return[].concat(b(t),[r(r({},i.w.config.yaxis[a]),{},{min:s[0].min,max:s[0].max})])}),[]);i.ctx.updateHelpers._updateOptions({xaxis:{min:a.xaxis.min,max:a.xaxis.max},yaxis:n},!1,!1,!1,!1)}))}}}}]),t}(),_t=function(){function t(e){n(this,t),this.ctx=e,this.w=e.w}return h(t,[{key:"_updateOptions",value:function(t){var e=this,i=arguments.length>1&&void 0!==arguments[1]&&arguments[1],a=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],s=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];return new Promise((function(n){var l=[e.ctx];s&&(l=e.ctx.getSyncedCharts()),e.ctx.w.globals.isExecCalled&&(l=[e.ctx],e.ctx.w.globals.isExecCalled=!1),l.forEach((function(s,h){var c=s.w;if(c.globals.shouldAnimate=a,i||(c.globals.resized=!0,c.globals.dataChanged=!0,a&&s.series.getPreviousPaths()),t&&"object"===o(t)&&(s.config=new H(t),t=S.extendArrayProps(s.config,t,c),s.w.globals.chartID!==e.ctx.w.globals.chartID&&delete t.series,c.config=y.extend(c.config,t),r&&(c.globals.lastXAxis=t.xaxis?y.clone(t.xaxis):[],c.globals.lastYAxis=t.yaxis?y.clone(t.yaxis):[],c.globals.initialConfig=y.extend({},c.config),c.globals.initialSeries=y.clone(c.config.series),t.series))){for(var d=0;d2&&void 0!==arguments[2]&&arguments[2];return new Promise((function(s){var r,o=i.w;return o.globals.shouldAnimate=e,o.globals.dataChanged=!0,e&&i.ctx.series.getPreviousPaths(),o.globals.axisCharts?(0===(r=t.map((function(t,e){return i._extendSeries(t,e)}))).length&&(r=[{data:[]}]),o.config.series=r):o.config.series=t.slice(),a&&(o.globals.initialConfig.series=y.clone(o.config.series),o.globals.initialSeries=y.clone(o.config.series)),i.ctx.update().then((function(){s(i.ctx)}))}))}},{key:"_extendSeries",value:function(t,e){var i=this.w,a=i.config.series[e];return r(r({},i.config.series[e]),{},{name:t.name?t.name:null==a?void 0:a.name,color:t.color?t.color:null==a?void 0:a.color,type:t.type?t.type:null==a?void 0:a.type,group:t.group?t.group:null==a?void 0:a.group,data:t.data?t.data:null==a?void 0:a.data,zIndex:void 0!==t.zIndex?t.zIndex:e})}},{key:"toggleDataPointSelection",value:function(t,e){var i=this.w,a=null,s=".apexcharts-series[data\\:realIndex='".concat(t,"']");return i.globals.axisCharts?a=i.globals.dom.Paper.select("".concat(s," path[j='").concat(e,"'], ").concat(s," circle[j='").concat(e,"'], ").concat(s," rect[j='").concat(e,"']")).members[0]:void 0===e&&(a=i.globals.dom.Paper.select("".concat(s," path[j='").concat(t,"']")).members[0],"pie"!==i.config.chart.type&&"polarArea"!==i.config.chart.type&&"donut"!==i.config.chart.type||this.ctx.pie.pieClicked(t)),a?(new A(this.ctx).pathMouseDown(a,null),a.node?a.node:null):(console.warn("toggleDataPointSelection: Element not found"),null)}},{key:"forceXAxisUpdate",value:function(t){var e=this.w;if(["min","max"].forEach((function(i){void 0!==t.xaxis[i]&&(e.config.xaxis[i]=t.xaxis[i],e.globals.lastXAxis[i]=t.xaxis[i])})),t.xaxis.categories&&t.xaxis.categories.length&&(e.config.xaxis.categories=t.xaxis.categories),e.config.xaxis.convertedCatToNumeric){var i=new R(t);t=i.convertCatToNumericXaxis(t,this.ctx)}return t}},{key:"forceYAxisUpdate",value:function(t){return t.chart&&t.chart.stacked&&"100%"===t.chart.stackType&&(Array.isArray(t.yaxis)?t.yaxis.forEach((function(e,i){t.yaxis[i].min=0,t.yaxis[i].max=100})):(t.yaxis.min=0,t.yaxis.max=100)),t}},{key:"revertDefaultAxisMinMax",value:function(t){var e=this,i=this.w,a=i.globals.lastXAxis,s=i.globals.lastYAxis;t&&t.xaxis&&(a=t.xaxis),t&&t.yaxis&&(s=t.yaxis),i.config.xaxis.min=a.min,i.config.xaxis.max=a.max;var r=function(t){void 0!==s[t]&&(i.config.yaxis[t].min=s[t].min,i.config.yaxis[t].max=s[t].max)};i.config.yaxis.map((function(t,a){i.globals.zoomed||void 0!==s[a]?r(a):void 0!==e.ctx.opts.yaxis[a]&&(t.min=e.ctx.opts.yaxis[a].min,t.max=e.ctx.opts.yaxis[a].max)}))}}]),t}();Nt="undefined"!=typeof window?window:void 0,Wt=function(t,e){var i=(void 0!==this?this:t).SVG=function(t){if(i.supported)return t=new i.Doc(t),i.parser.draw||i.prepare(),t};if(i.ns="http://www.w3.org/2000/svg",i.xmlns="http://www.w3.org/2000/xmlns/",i.xlink="http://www.w3.org/1999/xlink",i.svgjs="http://svgjs.dev",i.supported=!0,!i.supported)return!1;i.did=1e3,i.eid=function(t){return"Svgjs"+d(t)+i.did++},i.create=function(t){var i=e.createElementNS(this.ns,t);return i.setAttribute("id",this.eid(t)),i},i.extend=function(){var t,e;e=(t=[].slice.call(arguments)).pop();for(var a=t.length-1;a>=0;a--)if(t[a])for(var s in e)t[a].prototype[s]=e[s];i.Set&&i.Set.inherit&&i.Set.inherit()},i.invent=function(t){var e="function"==typeof t.create?t.create:function(){this.constructor.call(this,i.create(t.create))};return t.inherit&&(e.prototype=new t.inherit),t.extend&&i.extend(e,t.extend),t.construct&&i.extend(t.parent||i.Container,t.construct),e},i.adopt=function(e){return e?e.instance?e.instance:((a="svg"==e.nodeName?e.parentNode instanceof t.SVGElement?new i.Nested:new i.Doc:"linearGradient"==e.nodeName?new i.Gradient("linear"):"radialGradient"==e.nodeName?new i.Gradient("radial"):i[d(e.nodeName)]?new(i[d(e.nodeName)]):new i.Element(e)).type=e.nodeName,a.node=e,e.instance=a,a instanceof i.Doc&&a.namespace().defs(),a.setData(JSON.parse(e.getAttribute("svgjs:data"))||{}),a):null;var a},i.prepare=function(){var t=e.getElementsByTagName("body")[0],a=(t?new i.Doc(t):i.adopt(e.documentElement).nested()).size(2,0);i.parser={body:t||e.documentElement,draw:a.style("opacity:0;position:absolute;left:-100%;top:-100%;overflow:hidden").node,poly:a.polyline().node,path:a.path().node,native:i.create("svg")}},i.parser={native:i.create("svg")},e.addEventListener("DOMContentLoaded",(function(){i.parser.draw||i.prepare()}),!1),i.regex={numberAndUnit:/^([+-]?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?)([a-z%]*)$/i,hex:/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i,rgb:/rgb\((\d+),(\d+),(\d+)\)/,reference:/#([a-z0-9\-_]+)/i,transforms:/\)\s*,?\s*/,whitespace:/\s/g,isHex:/^#[a-f0-9]{3,6}$/i,isRgb:/^rgb\(/,isCss:/[^:]+:[^;]+;?/,isBlank:/^(\s+)?$/,isNumber:/^[+-]?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,isPercent:/^-?[\d\.]+%$/,isImage:/\.(jpg|jpeg|png|gif|svg)(\?[^=]+.*)?/i,delimiter:/[\s,]+/,hyphen:/([^e])\-/gi,pathLetters:/[MLHVCSQTAZ]/gi,isPathLetter:/[MLHVCSQTAZ]/i,numbersWithDots:/((\d?\.\d+(?:e[+-]?\d+)?)((?:\.\d+(?:e[+-]?\d+)?)+))+/gi,dots:/\./g},i.utils={map:function(t,e){for(var i=t.length,a=[],s=0;s1?1:t,new i.Color({r:~~(this.r+(this.destination.r-this.r)*t),g:~~(this.g+(this.destination.g-this.g)*t),b:~~(this.b+(this.destination.b-this.b)*t)})):this}}),i.Color.test=function(t){return t+="",i.regex.isHex.test(t)||i.regex.isRgb.test(t)},i.Color.isRgb=function(t){return t&&"number"==typeof t.r&&"number"==typeof t.g&&"number"==typeof t.b},i.Color.isColor=function(t){return i.Color.isRgb(t)||i.Color.test(t)},i.Array=function(t,e){0==(t=(t||[]).valueOf()).length&&e&&(t=e.valueOf()),this.value=this.parse(t)},i.extend(i.Array,{toString:function(){return this.value.join(" ")},valueOf:function(){return this.value},parse:function(t){return t=t.valueOf(),Array.isArray(t)?t:this.split(t)}}),i.PointArray=function(t,e){i.Array.call(this,t,e||[[0,0]])},i.PointArray.prototype=new i.Array,i.PointArray.prototype.constructor=i.PointArray;for(var a={M:function(t,e,i){return e.x=i.x=t[0],e.y=i.y=t[1],["M",e.x,e.y]},L:function(t,e){return e.x=t[0],e.y=t[1],["L",t[0],t[1]]},H:function(t,e){return e.x=t[0],["H",t[0]]},V:function(t,e){return e.y=t[0],["V",t[0]]},C:function(t,e){return e.x=t[4],e.y=t[5],["C",t[0],t[1],t[2],t[3],t[4],t[5]]},Q:function(t,e){return e.x=t[2],e.y=t[3],["Q",t[0],t[1],t[2],t[3]]},S:function(t,e){return e.x=t[2],e.y=t[3],["S",t[0],t[1],t[2],t[3]]},Z:function(t,e,i){return e.x=i.x,e.y=i.y,["Z"]}},s="mlhvqtcsaz".split(""),r=0,n=s.length;rl);return r},bbox:function(){return i.parser.draw||i.prepare(),i.parser.path.setAttribute("d",this.toString()),i.parser.path.getBBox()}}),i.Number=i.invent({create:function(t,e){this.value=0,this.unit=e||"","number"==typeof t?this.value=isNaN(t)?0:isFinite(t)?t:t<0?-34e37:34e37:"string"==typeof t?(e=t.match(i.regex.numberAndUnit))&&(this.value=parseFloat(e[1]),"%"==e[5]?this.value/=100:"s"==e[5]&&(this.value*=1e3),this.unit=e[5]):t instanceof i.Number&&(this.value=t.valueOf(),this.unit=t.unit)},extend:{toString:function(){return("%"==this.unit?~~(1e8*this.value)/1e6:"s"==this.unit?this.value/1e3:this.value)+this.unit},toJSON:function(){return this.toString()},valueOf:function(){return this.value},plus:function(t){return t=new i.Number(t),new i.Number(this+t,this.unit||t.unit)},minus:function(t){return t=new i.Number(t),new i.Number(this-t,this.unit||t.unit)},times:function(t){return t=new i.Number(t),new i.Number(this*t,this.unit||t.unit)},divide:function(t){return t=new i.Number(t),new i.Number(this/t,this.unit||t.unit)},to:function(t){var e=new i.Number(this);return"string"==typeof t&&(e.unit=t),e},morph:function(t){return this.destination=new i.Number(t),t.relative&&(this.destination.value+=this.value),this},at:function(t){return this.destination?new i.Number(this.destination).minus(this).times(t).plus(this):this}}}),i.Element=i.invent({create:function(t){this._stroke=i.defaults.attrs.stroke,this._event=null,this.dom={},(this.node=t)&&(this.type=t.nodeName,this.node.instance=this,this._stroke=t.getAttribute("stroke")||this._stroke)},extend:{x:function(t){return this.attr("x",t)},y:function(t){return this.attr("y",t)},cx:function(t){return null==t?this.x()+this.width()/2:this.x(t-this.width()/2)},cy:function(t){return null==t?this.y()+this.height()/2:this.y(t-this.height()/2)},move:function(t,e){return this.x(t).y(e)},center:function(t,e){return this.cx(t).cy(e)},width:function(t){return this.attr("width",t)},height:function(t){return this.attr("height",t)},size:function(t,e){var a=u(this,t,e);return this.width(new i.Number(a.width)).height(new i.Number(a.height))},clone:function(t){this.writeDataToDom();var e=x(this.node.cloneNode(!0));return t?t.add(e):this.after(e),e},remove:function(){return this.parent()&&this.parent().removeElement(this),this},replace:function(t){return this.after(t).remove(),t},addTo:function(t){return t.put(this)},putIn:function(t){return t.add(this)},id:function(t){return this.attr("id",t)},show:function(){return this.style("display","")},hide:function(){return this.style("display","none")},visible:function(){return"none"!=this.style("display")},toString:function(){return this.attr("id")},classes:function(){var t=this.attr("class");return null==t?[]:t.trim().split(i.regex.delimiter)},hasClass:function(t){return-1!=this.classes().indexOf(t)},addClass:function(t){if(!this.hasClass(t)){var e=this.classes();e.push(t),this.attr("class",e.join(" "))}return this},removeClass:function(t){return this.hasClass(t)&&this.attr("class",this.classes().filter((function(e){return e!=t})).join(" ")),this},toggleClass:function(t){return this.hasClass(t)?this.removeClass(t):this.addClass(t)},reference:function(t){return i.get(this.attr(t))},parent:function(e){var a=this;if(!a.node.parentNode)return null;if(a=i.adopt(a.node.parentNode),!e)return a;for(;a&&a.node instanceof t.SVGElement;){if("string"==typeof e?a.matches(e):a instanceof e)return a;if(!a.node.parentNode||"#document"==a.node.parentNode.nodeName)return null;a=i.adopt(a.node.parentNode)}},doc:function(){return this instanceof i.Doc?this:this.parent(i.Doc)},parents:function(t){var e=[],i=this;do{if(!(i=i.parent(t))||!i.node)break;e.push(i)}while(i.parent);return e},matches:function(t){return function(t,e){return(t.matches||t.matchesSelector||t.msMatchesSelector||t.mozMatchesSelector||t.webkitMatchesSelector||t.oMatchesSelector).call(t,e)}(this.node,t)},native:function(){return this.node},svg:function(t){var a=e.createElement("svg");if(!(t&&this instanceof i.Parent))return a.appendChild(t=e.createElement("svg")),this.writeDataToDom(),t.appendChild(this.node.cloneNode(!0)),a.innerHTML.replace(/^/,"").replace(/<\/svg>$/,"");a.innerHTML=""+t.replace(/\n/,"").replace(/<([\w:-]+)([^<]+?)\/>/g,"<$1$2>")+"";for(var s=0,r=a.firstChild.childNodes.length;s":function(t){return-Math.cos(t*Math.PI)/2+.5},">":function(t){return Math.sin(t*Math.PI/2)},"<":function(t){return 1-Math.cos(t*Math.PI/2)}},i.morph=function(t){return function(e,a){return new i.MorphObj(e,a).at(t)}},i.Situation=i.invent({create:function(t){this.init=!1,this.reversed=!1,this.reversing=!1,this.duration=new i.Number(t.duration).valueOf(),this.delay=new i.Number(t.delay).valueOf(),this.start=+new Date+this.delay,this.finish=this.start+this.duration,this.ease=t.ease,this.loop=0,this.loops=!1,this.animations={},this.attrs={},this.styles={},this.transforms=[],this.once={}}}),i.FX=i.invent({create:function(t){this._target=t,this.situations=[],this.active=!1,this.situation=null,this.paused=!1,this.lastPos=0,this.pos=0,this.absPos=0,this._speed=1},extend:{animate:function(t,e,a){"object"===o(t)&&(e=t.ease,a=t.delay,t=t.duration);var s=new i.Situation({duration:t||1e3,delay:a||0,ease:i.easing[e||"-"]||e});return this.queue(s),this},target:function(t){return t&&t instanceof i.Element?(this._target=t,this):this._target},timeToAbsPos:function(t){return(t-this.situation.start)/(this.situation.duration/this._speed)},absPosToTime:function(t){return this.situation.duration/this._speed*t+this.situation.start},startAnimFrame:function(){this.stopAnimFrame(),this.animationFrame=t.requestAnimationFrame(function(){this.step()}.bind(this))},stopAnimFrame:function(){t.cancelAnimationFrame(this.animationFrame)},start:function(){return!this.active&&this.situation&&(this.active=!0,this.startCurrent()),this},startCurrent:function(){return this.situation.start=+new Date+this.situation.delay/this._speed,this.situation.finish=this.situation.start+this.situation.duration/this._speed,this.initAnimations().step()},queue:function(t){return("function"==typeof t||t instanceof i.Situation)&&this.situations.push(t),this.situation||(this.situation=this.situations.shift()),this},dequeue:function(){return this.stop(),this.situation=this.situations.shift(),this.situation&&(this.situation instanceof i.Situation?this.start():this.situation.call(this)),this},initAnimations:function(){var t,e=this.situation;if(e.init)return this;for(var a in e.animations){t=this.target()[a](),Array.isArray(t)||(t=[t]),Array.isArray(e.animations[a])||(e.animations[a]=[e.animations[a]]);for(var s=t.length;s--;)e.animations[a][s]instanceof i.Number&&(t[s]=new i.Number(t[s])),e.animations[a][s]=t[s].morph(e.animations[a][s])}for(var a in e.attrs)e.attrs[a]=new i.MorphObj(this.target().attr(a),e.attrs[a]);for(var a in e.styles)e.styles[a]=new i.MorphObj(this.target().style(a),e.styles[a]);return e.initialTransformation=this.target().matrixify(),e.init=!0,this},clearQueue:function(){return this.situations=[],this},clearCurrent:function(){return this.situation=null,this},stop:function(t,e){var i=this.active;return this.active=!1,e&&this.clearQueue(),t&&this.situation&&(!i&&this.startCurrent(),this.atEnd()),this.stopAnimFrame(),this.clearCurrent()},after:function(t){var e=this.last();return this.target().on("finished.fx",(function i(a){a.detail.situation==e&&(t.call(this,e),this.off("finished.fx",i))})),this._callStart()},during:function(t){var e=this.last(),a=function(a){a.detail.situation==e&&t.call(this,a.detail.pos,i.morph(a.detail.pos),a.detail.eased,e)};return this.target().off("during.fx",a).on("during.fx",a),this.after((function(){this.off("during.fx",a)})),this._callStart()},afterAll:function(t){var e=function e(i){t.call(this),this.off("allfinished.fx",e)};return this.target().off("allfinished.fx",e).on("allfinished.fx",e),this._callStart()},last:function(){return this.situations.length?this.situations[this.situations.length-1]:this.situation},add:function(t,e,i){return this.last()[i||"animations"][t]=e,this._callStart()},step:function(t){var e,i,a;t||(this.absPos=this.timeToAbsPos(+new Date)),!1!==this.situation.loops?(e=Math.max(this.absPos,0),i=Math.floor(e),!0===this.situation.loops||ithis.lastPos&&r<=s&&(this.situation.once[r].call(this.target(),this.pos,s),delete this.situation.once[r]);return this.active&&this.target().fire("during",{pos:this.pos,eased:s,fx:this,situation:this.situation}),this.situation?(this.eachAt(),1==this.pos&&!this.situation.reversed||this.situation.reversed&&0==this.pos?(this.stopAnimFrame(),this.target().fire("finished",{fx:this,situation:this.situation}),this.situations.length||(this.target().fire("allfinished"),this.situations.length||(this.target().off(".fx"),this.active=!1)),this.active?this.dequeue():this.clearCurrent()):!this.paused&&this.active&&this.startAnimFrame(),this.lastPos=s,this):this},eachAt:function(){var t,e=this,a=this.target(),s=this.situation;for(var r in s.animations)t=[].concat(s.animations[r]).map((function(t){return"string"!=typeof t&&t.at?t.at(s.ease(e.pos),e.pos):t})),a[r].apply(a,t);for(var r in s.attrs)t=[r].concat(s.attrs[r]).map((function(t){return"string"!=typeof t&&t.at?t.at(s.ease(e.pos),e.pos):t})),a.attr.apply(a,t);for(var r in s.styles)t=[r].concat(s.styles[r]).map((function(t){return"string"!=typeof t&&t.at?t.at(s.ease(e.pos),e.pos):t})),a.style.apply(a,t);if(s.transforms.length){t=s.initialTransformation,r=0;for(var o=s.transforms.length;r=0;--a)this[v[a]]=null!=t[v[a]]?t[v[a]]:e[v[a]]},extend:{extract:function(){var t=p(this,0,1);p(this,1,0);var e=180/Math.PI*Math.atan2(t.y,t.x)-90;return{x:this.e,y:this.f,transformedX:(this.e*Math.cos(e*Math.PI/180)+this.f*Math.sin(e*Math.PI/180))/Math.sqrt(this.a*this.a+this.b*this.b),transformedY:(this.f*Math.cos(e*Math.PI/180)+this.e*Math.sin(-e*Math.PI/180))/Math.sqrt(this.c*this.c+this.d*this.d),rotation:e,a:this.a,b:this.b,c:this.c,d:this.d,e:this.e,f:this.f,matrix:new i.Matrix(this)}},clone:function(){return new i.Matrix(this)},morph:function(t){return this.destination=new i.Matrix(t),this},multiply:function(t){return new i.Matrix(this.native().multiply(function(t){return t instanceof i.Matrix||(t=new i.Matrix(t)),t}(t).native()))},inverse:function(){return new i.Matrix(this.native().inverse())},translate:function(t,e){return new i.Matrix(this.native().translate(t||0,e||0))},native:function(){for(var t=i.parser.native.createSVGMatrix(),e=v.length-1;e>=0;e--)t[v[e]]=this[v[e]];return t},toString:function(){return"matrix("+b(this.a)+","+b(this.b)+","+b(this.c)+","+b(this.d)+","+b(this.e)+","+b(this.f)+")"}},parent:i.Element,construct:{ctm:function(){return new i.Matrix(this.node.getCTM())},screenCTM:function(){if(this instanceof i.Nested){var t=this.rect(1,1),e=t.node.getScreenCTM();return t.remove(),new i.Matrix(e)}return new i.Matrix(this.node.getScreenCTM())}}}),i.Point=i.invent({create:function(t,e){var i;i=Array.isArray(t)?{x:t[0],y:t[1]}:"object"===o(t)?{x:t.x,y:t.y}:null!=t?{x:t,y:null!=e?e:t}:{x:0,y:0},this.x=i.x,this.y=i.y},extend:{clone:function(){return new i.Point(this)},morph:function(t,e){return this.destination=new i.Point(t,e),this}}}),i.extend(i.Element,{point:function(t,e){return new i.Point(t,e).transform(this.screenCTM().inverse())}}),i.extend(i.Element,{attr:function(t,e,a){if(null==t){for(t={},a=(e=this.node.attributes).length-1;a>=0;a--)t[e[a].nodeName]=i.regex.isNumber.test(e[a].nodeValue)?parseFloat(e[a].nodeValue):e[a].nodeValue;return t}if("object"===o(t))for(var s in t)this.attr(s,t[s]);else if(null===e)this.node.removeAttribute(t);else{if(null==e)return null==(e=this.node.getAttribute(t))?i.defaults.attrs[t]:i.regex.isNumber.test(e)?parseFloat(e):e;"stroke-width"==t?this.attr("stroke",parseFloat(e)>0?this._stroke:null):"stroke"==t&&(this._stroke=e),"fill"!=t&&"stroke"!=t||(i.regex.isImage.test(e)&&(e=this.doc().defs().image(e,0,0)),e instanceof i.Image&&(e=this.doc().defs().pattern(0,0,(function(){this.add(e)})))),"number"==typeof e?e=new i.Number(e):i.Color.isColor(e)?e=new i.Color(e):Array.isArray(e)&&(e=new i.Array(e)),"leading"==t?this.leading&&this.leading(e):"string"==typeof a?this.node.setAttributeNS(a,t,e.toString()):this.node.setAttribute(t,e.toString()),!this.rebuild||"font-size"!=t&&"x"!=t||this.rebuild(t,e)}return this}}),i.extend(i.Element,{transform:function(t,e){var a;return"object"!==o(t)?(a=new i.Matrix(this).extract(),"string"==typeof t?a[t]:a):(a=new i.Matrix(this),e=!!e||!!t.relative,null!=t.a&&(a=e?a.multiply(new i.Matrix(t)):new i.Matrix(t)),this.attr("transform",a))}}),i.extend(i.Element,{untransform:function(){return this.attr("transform",null)},matrixify:function(){return(this.attr("transform")||"").split(i.regex.transforms).slice(0,-1).map((function(t){var e=t.trim().split("(");return[e[0],e[1].split(i.regex.delimiter).map((function(t){return parseFloat(t)}))]})).reduce((function(t,e){return"matrix"==e[0]?t.multiply(f(e[1])):t[e[0]].apply(t,e[1])}),new i.Matrix)},toParent:function(t){if(this==t)return this;var e=this.screenCTM(),i=t.screenCTM().inverse();return this.addTo(t).untransform().transform(i.multiply(e)),this},toDoc:function(){return this.toParent(this.doc())}}),i.Transformation=i.invent({create:function(t,e){if(arguments.length>1&&"boolean"!=typeof e)return this.constructor.call(this,[].slice.call(arguments));if(Array.isArray(t))for(var i=0,a=this.arguments.length;i=0},index:function(t){return[].slice.call(this.node.childNodes).indexOf(t.node)},get:function(t){return i.adopt(this.node.childNodes[t])},first:function(){return this.get(0)},last:function(){return this.get(this.node.childNodes.length-1)},each:function(t,e){for(var a=this.children(),s=0,r=a.length;s=0;a--)e.childNodes[a]instanceof t.SVGElement&&x(e.childNodes[a]);return i.adopt(e).id(i.eid(e.nodeName))}function b(t){return Math.abs(t)>1e-37?t:0}["fill","stroke"].forEach((function(t){var e={};e[t]=function(e){if(void 0===e)return this;if("string"==typeof e||i.Color.isRgb(e)||e&&"function"==typeof e.fill)this.attr(t,e);else for(var a=l[t].length-1;a>=0;a--)null!=e[l[t][a]]&&this.attr(l.prefix(t,l[t][a]),e[l[t][a]]);return this},i.extend(i.Element,i.FX,e)})),i.extend(i.Element,i.FX,{translate:function(t,e){return this.transform({x:t,y:e})},matrix:function(t){return this.attr("transform",new i.Matrix(6==arguments.length?[].slice.call(arguments):t))},opacity:function(t){return this.attr("opacity",t)},dx:function(t){return this.x(new i.Number(t).plus(this instanceof i.FX?0:this.x()),!0)},dy:function(t){return this.y(new i.Number(t).plus(this instanceof i.FX?0:this.y()),!0)}}),i.extend(i.Path,{length:function(){return this.node.getTotalLength()},pointAt:function(t){return this.node.getPointAtLength(t)}}),i.Set=i.invent({create:function(t){Array.isArray(t)?this.members=t:this.clear()},extend:{add:function(){for(var t=[].slice.call(arguments),e=0,i=t.length;e-1&&this.members.splice(e,1),this},each:function(t){for(var e=0,i=this.members.length;e=0},index:function(t){return this.members.indexOf(t)},get:function(t){return this.members[t]},first:function(){return this.get(0)},last:function(){return this.get(this.members.length-1)},valueOf:function(){return this.members}},construct:{set:function(t){return new i.Set(t)}}}),i.FX.Set=i.invent({create:function(t){this.set=t}}),i.Set.inherit=function(){var t=[];for(var e in i.Shape.prototype)"function"==typeof i.Shape.prototype[e]&&"function"!=typeof i.Set.prototype[e]&&t.push(e);for(var e in t.forEach((function(t){i.Set.prototype[t]=function(){for(var e=0,a=this.members.length;e=0;t--)delete this.memory()[arguments[t]];return this},memory:function(){return this._memory||(this._memory={})}}),i.get=function(t){var a=e.getElementById(function(t){var e=(t||"").toString().match(i.regex.reference);if(e)return e[1]}(t)||t);return i.adopt(a)},i.select=function(t,a){return new i.Set(i.utils.map((a||e).querySelectorAll(t),(function(t){return i.adopt(t)})))},i.extend(i.Parent,{select:function(t){return i.select(t,this.node)}});var v="abcdef".split("");if("function"!=typeof t.CustomEvent){var m=function(t,i){i=i||{bubbles:!1,cancelable:!1,detail:void 0};var a=e.createEvent("CustomEvent");return a.initCustomEvent(t,i.bubbles,i.cancelable,i.detail),a};m.prototype=t.Event.prototype,i.CustomEvent=m}else i.CustomEvent=t.CustomEvent;return i},a=function(){return Wt(Nt,Nt.document)}.call(e,i,e,t),void 0!==a&&(t.exports=a), + */!function(e,i){t.exports=i()}(0,(function(){"use strict";function s(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,a)}return i}function r(t){for(var e=1;et.length)&&(e=t.length);for(var i=0,a=new Array(e);i>16,o=i>>8&255,n=255&i;return"#"+(16777216+65536*(Math.round((a-r)*s)+r)+256*(Math.round((a-o)*s)+o)+(Math.round((a-n)*s)+n)).toString(16).slice(1)}},{key:"shadeColor",value:function(e,i){return t.isColorHex(i)?this.shadeHexColor(e,i):this.shadeRGBColor(e,i)}}],[{key:"bind",value:function(t,e){return function(){return t.apply(e,arguments)}}},{key:"isObject",value:function(t){return t&&"object"===o(t)&&!Array.isArray(t)&&null!=t}},{key:"is",value:function(t,e){return Object.prototype.toString.call(e)==="[object "+t+"]"}},{key:"listToArray",value:function(t){var e,i=[];for(e=0;e1&&void 0!==arguments[1]?arguments[1]:2;return Number.isInteger(t)?t:parseFloat(t.toPrecision(e))}},{key:"randomId",value:function(){return(Math.random()+1).toString(36).substring(4)}},{key:"noExponents",value:function(t){var e=String(t).split(/[eE]/);if(1===e.length)return e[0];var i="",a=t<0?"-":"",s=e[0].replace(".",""),r=Number(e[1])+1;if(r<0){for(i=a+"0.";r++;)i+="0";return i+s.replace(/^-/,"")}for(r-=s.length;r--;)i+="0";return s+i}},{key:"getDimensions",value:function(t){var e=getComputedStyle(t,null),i=t.clientHeight,a=t.clientWidth;return i-=parseFloat(e.paddingTop)+parseFloat(e.paddingBottom),[a-=parseFloat(e.paddingLeft)+parseFloat(e.paddingRight),i]}},{key:"getBoundingClientRect",value:function(t){var e=t.getBoundingClientRect();return{top:e.top,right:e.right,bottom:e.bottom,left:e.left,width:t.clientWidth,height:t.clientHeight,x:e.left,y:e.top}}},{key:"getLargestStringFromArr",value:function(t){return t.reduce((function(t,e){return Array.isArray(e)&&(e=e.reduce((function(t,e){return t.length>e.length?t:e}))),t.length>e.length?t:e}),0)}},{key:"hexToRgba",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"#999999",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.6;"#"!==t.substring(0,1)&&(t="#999999");var i=t.replace("#","");i=i.match(new RegExp("(.{"+i.length/3+"})","g"));for(var a=0;a1&&void 0!==arguments[1]?arguments[1]:"x",i=t.toString().slice();return i.replace(/[` ~!@#$%^&*()|+\=?;:'",.<>{}[\]\\/]/gi,e)}},{key:"negToZero",value:function(t){return t<0?0:t}},{key:"moveIndexInArray",value:function(t,e,i){if(i>=t.length)for(var a=i-t.length+1;a--;)t.push(void 0);return t.splice(i,0,t.splice(e,1)[0]),t}},{key:"extractNumber",value:function(t){return parseFloat(t.replace(/[^\d.]*/g,""))}},{key:"findAncestor",value:function(t,e){for(;(t=t.parentElement)&&!t.classList.contains(e););return t}},{key:"setELstyles",value:function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t.style.key=e[i])}},{key:"isNumber",value:function(t){return!isNaN(t)&&parseFloat(Number(t))===t&&!isNaN(parseInt(t,10))}},{key:"isFloat",value:function(t){return Number(t)===t&&t%1!=0}},{key:"isSafari",value:function(){return/^((?!chrome|android).)*safari/i.test(navigator.userAgent)}},{key:"isFirefox",value:function(){return navigator.userAgent.toLowerCase().indexOf("firefox")>-1}},{key:"isIE11",value:function(){if(-1!==window.navigator.userAgent.indexOf("MSIE")||window.navigator.appVersion.indexOf("Trident/")>-1)return!0}},{key:"isIE",value:function(){var t=window.navigator.userAgent,e=t.indexOf("MSIE ");if(e>0)return parseInt(t.substring(e+5,t.indexOf(".",e)),10);if(t.indexOf("Trident/")>0){var i=t.indexOf("rv:");return parseInt(t.substring(i+3,t.indexOf(".",i)),10)}var a=t.indexOf("Edge/");return a>0&&parseInt(t.substring(a+5,t.indexOf(".",a)),10)}}]),t}(),w=function(){function t(e){n(this,t),this.ctx=e,this.w=e.w,this.setEasingFunctions()}return h(t,[{key:"setEasingFunctions",value:function(){var t;if(!this.w.globals.easing){switch(this.w.config.chart.animations.easing){case"linear":t="-";break;case"easein":t="<";break;case"easeout":t=">";break;case"easeinout":default:t="<>";break;case"swing":t=function(t){var e=1.70158;return(t-=1)*t*((e+1)*t+e)+1};break;case"bounce":t=function(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375};break;case"elastic":t=function(t){return t===!!t?t:Math.pow(2,-10*t)*Math.sin((t-.075)*(2*Math.PI)/.3)+1}}this.w.globals.easing=t}}},{key:"animateLine",value:function(t,e,i,a){t.attr(e).animate(a).attr(i)}},{key:"animateMarker",value:function(t,e,i,a,s,r){e||(e=0),t.attr({r:e,width:e,height:e}).animate(a,s).attr({r:i,width:i.width,height:i.height}).afterAll((function(){r()}))}},{key:"animateCircle",value:function(t,e,i,a,s){t.attr({r:e.r,cx:e.cx,cy:e.cy}).animate(a,s).attr({r:i.r,cx:i.cx,cy:i.cy})}},{key:"animateRect",value:function(t,e,i,a,s){t.attr(e).animate(a).attr(i).afterAll((function(){return s()}))}},{key:"animatePathsGradually",value:function(t){var e=t.el,i=t.realIndex,a=t.j,s=t.fill,r=t.pathFrom,o=t.pathTo,n=t.speed,l=t.delay,h=this.w,c=0;h.config.chart.animations.animateGradually.enabled&&(c=h.config.chart.animations.animateGradually.delay),h.config.chart.animations.dynamicAnimation.enabled&&h.globals.dataChanged&&"bar"!==h.config.chart.type&&(c=0),this.morphSVG(e,i,a,"line"!==h.config.chart.type||h.globals.comboCharts?s:"stroke",r,o,n,l*c)}},{key:"showDelayedElements",value:function(){this.w.globals.delayedElements.forEach((function(t){var e=t.el;e.classList.remove("apexcharts-element-hidden"),e.classList.add("apexcharts-hidden-element-shown")}))}},{key:"animationCompleted",value:function(t){var e=this.w;e.globals.animationEnded||(e.globals.animationEnded=!0,this.showDelayedElements(),"function"==typeof e.config.chart.events.animationEnd&&e.config.chart.events.animationEnd(this.ctx,{el:t,w:e}))}},{key:"morphSVG",value:function(t,e,i,a,s,r,o,n){var l=this,h=this.w;s||(s=t.attr("pathFrom")),r||(r=t.attr("pathTo"));var c=function(t){return"radar"===h.config.chart.type&&(o=1),"M 0 ".concat(h.globals.gridHeight)};(!s||s.indexOf("undefined")>-1||s.indexOf("NaN")>-1)&&(s=c()),(!r||r.indexOf("undefined")>-1||r.indexOf("NaN")>-1)&&(r=c()),h.globals.shouldAnimate||(o=1),t.plot(s).animate(1,h.globals.easing,n).plot(s).animate(o,h.globals.easing,n).plot(r).afterAll((function(){y.isNumber(i)?i===h.globals.series[h.globals.maxValsInArrayIndex].length-2&&h.globals.shouldAnimate&&l.animationCompleted(t):"none"!==a&&h.globals.shouldAnimate&&(!h.globals.comboCharts&&e===h.globals.series.length-1||h.globals.comboCharts)&&l.animationCompleted(t),l.showDelayedElements()}))}}]),t}(),k=function(){function t(e){n(this,t),this.ctx=e,this.w=e.w}return h(t,[{key:"getDefaultFilter",value:function(t,e){var i=this.w;t.unfilter(!0),(new window.SVG.Filter).size("120%","180%","-5%","-40%"),"none"!==i.config.states.normal.filter?this.applyFilter(t,e,i.config.states.normal.filter.type,i.config.states.normal.filter.value):i.config.chart.dropShadow.enabled&&this.dropShadow(t,i.config.chart.dropShadow,e)}},{key:"addNormalFilter",value:function(t,e){var i=this.w;i.config.chart.dropShadow.enabled&&!t.node.classList.contains("apexcharts-marker")&&this.dropShadow(t,i.config.chart.dropShadow,e)}},{key:"addLightenFilter",value:function(t,e,i){var a=this,s=this.w,r=i.intensity;t.unfilter(!0),new window.SVG.Filter,t.filter((function(t){var i=s.config.chart.dropShadow;(i.enabled?a.addShadow(t,e,i):t).componentTransfer({rgb:{type:"linear",slope:1.5,intercept:r}})})),t.filterer.node.setAttribute("filterUnits","userSpaceOnUse"),this._scaleFilterSize(t.filterer.node)}},{key:"addDarkenFilter",value:function(t,e,i){var a=this,s=this.w,r=i.intensity;t.unfilter(!0),new window.SVG.Filter,t.filter((function(t){var i=s.config.chart.dropShadow;(i.enabled?a.addShadow(t,e,i):t).componentTransfer({rgb:{type:"linear",slope:r}})})),t.filterer.node.setAttribute("filterUnits","userSpaceOnUse"),this._scaleFilterSize(t.filterer.node)}},{key:"applyFilter",value:function(t,e,i){var a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:.5;switch(i){case"none":this.addNormalFilter(t,e);break;case"lighten":this.addLightenFilter(t,e,{intensity:a});break;case"darken":this.addDarkenFilter(t,e,{intensity:a})}}},{key:"addShadow",value:function(t,e,i){var a=i.blur,s=i.top,r=i.left,o=i.color,n=i.opacity,l=t.flood(Array.isArray(o)?o[e]:o,n).composite(t.sourceAlpha,"in").offset(r,s).gaussianBlur(a).merge(t.source);return t.blend(t.source,l)}},{key:"dropShadow",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,a=e.top,s=e.left,r=e.blur,o=e.color,n=e.opacity,l=e.noUserSpaceOnUse,h=this.w;return t.unfilter(!0),y.isIE()&&"radialBar"===h.config.chart.type||(o=Array.isArray(o)?o[i]:o,t.filter((function(t){var e=null;e=y.isSafari()||y.isFirefox()||y.isIE()?t.flood(o,n).composite(t.sourceAlpha,"in").offset(s,a).gaussianBlur(r):t.flood(o,n).composite(t.sourceAlpha,"in").offset(s,a).gaussianBlur(r).merge(t.source),t.blend(t.source,e)})),l||t.filterer.node.setAttribute("filterUnits","userSpaceOnUse"),this._scaleFilterSize(t.filterer.node)),t}},{key:"setSelectionFilter",value:function(t,e,i){var a=this.w;if(void 0!==a.globals.selectedDataPoints[e]&&a.globals.selectedDataPoints[e].indexOf(i)>-1){t.node.setAttribute("selected",!0);var s=a.config.states.active.filter;"none"!==s&&this.applyFilter(t,e,s.type,s.value)}}},{key:"_scaleFilterSize",value:function(t){!function(e){for(var i in e)e.hasOwnProperty(i)&&t.setAttribute(i,e[i])}({width:"200%",height:"200%",x:"-50%",y:"-50%"})}}]),t}(),A=function(){function t(e){n(this,t),this.ctx=e,this.w=e.w}return h(t,[{key:"roundPathCorners",value:function(t,e){function i(t,e,i){var s=e.x-t.x,r=e.y-t.y,o=Math.sqrt(s*s+r*r);return a(t,e,Math.min(1,i/o))}function a(t,e,i){return{x:t.x+(e.x-t.x)*i,y:t.y+(e.y-t.y)*i}}function s(t,e){t.length>2&&(t[t.length-2]=e.x,t[t.length-1]=e.y)}function r(t){return{x:parseFloat(t[t.length-2]),y:parseFloat(t[t.length-1])}}t.indexOf("NaN")>-1&&(t="");var o=t.split(/[,\s]/).reduce((function(t,e){var i=e.match("([a-zA-Z])(.+)");return i?(t.push(i[1]),t.push(i[2])):t.push(e),t}),[]).reduce((function(t,e){return parseFloat(e)==e&&t.length?t[t.length-1].push(e):t.push([e]),t}),[]),n=[];if(o.length>1){var l=r(o[0]),h=null;"Z"==o[o.length-1][0]&&o[0].length>2&&(h=["L",l.x,l.y],o[o.length-1]=h),n.push(o[0]);for(var c=1;c2&&"L"==g[0]&&u.length>2&&"L"==u[0]){var p,f,x=r(d),b=r(g),v=r(u);p=i(b,x,e),f=i(b,v,e),s(g,p),g.origPoint=b,n.push(g);var m=a(p,b,.5),y=a(b,f,.5),w=["C",m.x,m.y,y.x,y.y,f.x,f.y];w.origPoint=b,n.push(w)}else n.push(g)}if(h){var k=r(n[n.length-1]);n.push(["Z"]),s(n[0],k)}}else n=o;return n.reduce((function(t,e){return t+e.join(" ")+" "}),"")}},{key:"drawLine",value:function(t,e,i,a){var s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"#a8a8a8",r=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0,o=arguments.length>6&&void 0!==arguments[6]?arguments[6]:null,n=arguments.length>7&&void 0!==arguments[7]?arguments[7]:"butt";return this.w.globals.dom.Paper.line().attr({x1:t,y1:e,x2:i,y2:a,stroke:s,"stroke-dasharray":r,"stroke-width":o,"stroke-linecap":n})}},{key:"drawRect",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,r=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"#fefefe",o=arguments.length>6&&void 0!==arguments[6]?arguments[6]:1,n=arguments.length>7&&void 0!==arguments[7]?arguments[7]:null,l=arguments.length>8&&void 0!==arguments[8]?arguments[8]:null,h=arguments.length>9&&void 0!==arguments[9]?arguments[9]:0,c=this.w.globals.dom.Paper.rect();return c.attr({x:t,y:e,width:i>0?i:0,height:a>0?a:0,rx:s,ry:s,opacity:o,"stroke-width":null!==n?n:0,stroke:null!==l?l:"none","stroke-dasharray":h}),c.node.setAttribute("fill",r),c}},{key:"drawPolygon",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"#e1e1e1",i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"none";return this.w.globals.dom.Paper.polygon(t).attr({fill:a,stroke:e,"stroke-width":i})}},{key:"drawCircle",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;t<0&&(t=0);var i=this.w.globals.dom.Paper.circle(2*t);return null!==e&&i.attr(e),i}},{key:"drawPath",value:function(t){var e=t.d,i=void 0===e?"":e,a=t.stroke,s=void 0===a?"#a8a8a8":a,r=t.strokeWidth,o=void 0===r?1:r,n=t.fill,l=t.fillOpacity,h=void 0===l?1:l,c=t.strokeOpacity,d=void 0===c?1:c,g=t.classes,u=t.strokeLinecap,p=void 0===u?null:u,f=t.strokeDashArray,x=void 0===f?0:f,b=this.w;return null===p&&(p=b.config.stroke.lineCap),(i.indexOf("undefined")>-1||i.indexOf("NaN")>-1)&&(i="M 0 ".concat(b.globals.gridHeight)),b.globals.dom.Paper.path(i).attr({fill:n,"fill-opacity":h,stroke:s,"stroke-opacity":d,"stroke-linecap":p,"stroke-width":o,"stroke-dasharray":x,class:g})}},{key:"group",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,e=this.w.globals.dom.Paper.group();return null!==t&&e.attr(t),e}},{key:"move",value:function(t,e){var i=["M",t,e].join(" ");return i}},{key:"line",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,a=null;return null===i?a=[" L",t,e].join(" "):"H"===i?a=[" H",t].join(" "):"V"===i&&(a=[" V",e].join(" ")),a}},{key:"curve",value:function(t,e,i,a,s,r){var o=["C",t,e,i,a,s,r].join(" ");return o}},{key:"quadraticCurve",value:function(t,e,i,a){return["Q",t,e,i,a].join(" ")}},{key:"arc",value:function(t,e,i,a,s,r,o){var n="A";arguments.length>7&&void 0!==arguments[7]&&arguments[7]&&(n="a");var l=[n,t,e,i,a,s,r,o].join(" ");return l}},{key:"renderPaths",value:function(t){var e,i=t.j,a=t.realIndex,s=t.pathFrom,o=t.pathTo,n=t.stroke,l=t.strokeWidth,h=t.strokeLinecap,c=t.fill,d=t.animationDelay,g=t.initialSpeed,u=t.dataChangeSpeed,p=t.className,f=t.shouldClipToGrid,x=void 0===f||f,b=t.bindEventsOnPaths,v=void 0===b||b,m=t.drawShadow,y=void 0===m||m,A=this.w,S=new k(this.ctx),C=new w(this.ctx),L=this.w.config.chart.animations.enabled,P=L&&this.w.config.chart.animations.dynamicAnimation.enabled,I=!!(L&&!A.globals.resized||P&&A.globals.dataChanged&&A.globals.shouldAnimate);I?e=s:(e=o,A.globals.animationEnded=!0);var T=A.config.stroke.dashArray,M=0;M=Array.isArray(T)?T[a]:A.config.stroke.dashArray;var z=this.drawPath({d:e,stroke:n,strokeWidth:l,fill:c,fillOpacity:1,classes:p,strokeLinecap:h,strokeDashArray:M});if(z.attr("index",a),x&&z.attr({"clip-path":"url(#gridRectMask".concat(A.globals.cuid,")")}),"none"!==A.config.states.normal.filter.type)S.getDefaultFilter(z,a);else if(A.config.chart.dropShadow.enabled&&y&&(!A.config.chart.dropShadow.enabledOnSeries||A.config.chart.dropShadow.enabledOnSeries&&-1!==A.config.chart.dropShadow.enabledOnSeries.indexOf(a))){var X=A.config.chart.dropShadow;S.dropShadow(z,X,a)}v&&(z.node.addEventListener("mouseenter",this.pathMouseEnter.bind(this,z)),z.node.addEventListener("mouseleave",this.pathMouseLeave.bind(this,z)),z.node.addEventListener("mousedown",this.pathMouseDown.bind(this,z))),z.attr({pathTo:o,pathFrom:s});var E={el:z,j:i,realIndex:a,pathFrom:s,pathTo:o,fill:c,strokeWidth:l,delay:d};return!L||A.globals.resized||A.globals.dataChanged?!A.globals.resized&&A.globals.dataChanged||C.showDelayedElements():C.animatePathsGradually(r(r({},E),{},{speed:g})),A.globals.dataChanged&&P&&I&&C.animatePathsGradually(r(r({},E),{},{speed:u})),z}},{key:"drawPattern",value:function(t,e,i){var a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"#a8a8a8",s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0;return this.w.globals.dom.Paper.pattern(e,i,(function(r){"horizontalLines"===t?r.line(0,0,i,0).stroke({color:a,width:s+1}):"verticalLines"===t?r.line(0,0,0,e).stroke({color:a,width:s+1}):"slantedLines"===t?r.line(0,0,e,i).stroke({color:a,width:s}):"squares"===t?r.rect(e,i).fill("none").stroke({color:a,width:s}):"circles"===t&&r.circle(e).fill("none").stroke({color:a,width:s})}))}},{key:"drawGradient",value:function(t,e,i,a,s){var r,o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:null,n=arguments.length>6&&void 0!==arguments[6]?arguments[6]:null,l=arguments.length>7&&void 0!==arguments[7]?arguments[7]:null,h=arguments.length>8&&void 0!==arguments[8]?arguments[8]:0,c=this.w;e.length<9&&0===e.indexOf("#")&&(e=y.hexToRgba(e,a)),i.length<9&&0===i.indexOf("#")&&(i=y.hexToRgba(i,s));var d=0,g=1,u=1,p=null;null!==n&&(d=void 0!==n[0]?n[0]/100:0,g=void 0!==n[1]?n[1]/100:1,u=void 0!==n[2]?n[2]/100:1,p=void 0!==n[3]?n[3]/100:null);var f=!("donut"!==c.config.chart.type&&"pie"!==c.config.chart.type&&"polarArea"!==c.config.chart.type&&"bubble"!==c.config.chart.type);if(r=null===l||0===l.length?c.globals.dom.Paper.gradient(f?"radial":"linear",(function(t){t.at(d,e,a),t.at(g,i,s),t.at(u,i,s),null!==p&&t.at(p,e,a)})):c.globals.dom.Paper.gradient(f?"radial":"linear",(function(t){(Array.isArray(l[h])?l[h]:l).forEach((function(e){t.at(e.offset/100,e.color,e.opacity)}))})),f){var x=c.globals.gridWidth/2,b=c.globals.gridHeight/2;"bubble"!==c.config.chart.type?r.attr({gradientUnits:"userSpaceOnUse",cx:x,cy:b,r:o}):r.attr({cx:.5,cy:.5,r:.8,fx:.2,fy:.2})}else"vertical"===t?r.from(0,0).to(0,1):"diagonal"===t?r.from(0,0).to(1,1):"horizontal"===t?r.from(0,1).to(1,1):"diagonal2"===t&&r.from(1,0).to(0,1);return r}},{key:"getTextBasedOnMaxWidth",value:function(t){var e=t.text,i=t.maxWidth,a=t.fontSize,s=t.fontFamily,r=this.getTextRects(e,a,s),o=r.width/e.length,n=Math.floor(i/o);return i-1){var n=i.globals.selectedDataPoints[s].indexOf(r);i.globals.selectedDataPoints[s].splice(n,1)}}else{if(!i.config.states.active.allowMultipleDataPointsSelection&&i.globals.selectedDataPoints.length>0){i.globals.selectedDataPoints=[];var l=i.globals.dom.Paper.select(".apexcharts-series path").members,h=i.globals.dom.Paper.select(".apexcharts-series circle, .apexcharts-series rect").members,c=function(t){Array.prototype.forEach.call(t,(function(t){t.node.setAttribute("selected","false"),a.getDefaultFilter(t,s)}))};c(l),c(h)}t.node.setAttribute("selected","true"),o="true",void 0===i.globals.selectedDataPoints[s]&&(i.globals.selectedDataPoints[s]=[]),i.globals.selectedDataPoints[s].push(r)}if("true"===o){var d=i.config.states.active.filter;if("none"!==d)a.applyFilter(t,s,d.type,d.value);else if("none"!==i.config.states.hover.filter&&!i.globals.isTouchDevice){var g=i.config.states.hover.filter;a.applyFilter(t,s,g.type,g.value)}}else"none"!==i.config.states.active.filter.type&&("none"===i.config.states.hover.filter.type||i.globals.isTouchDevice?a.getDefaultFilter(t,s):(g=i.config.states.hover.filter,a.applyFilter(t,s,g.type,g.value)));"function"==typeof i.config.chart.events.dataPointSelection&&i.config.chart.events.dataPointSelection(e,this.ctx,{selectedDataPoints:i.globals.selectedDataPoints,seriesIndex:s,dataPointIndex:r,w:i}),e&&this.ctx.events.fireEvent("dataPointSelection",[e,this.ctx,{selectedDataPoints:i.globals.selectedDataPoints,seriesIndex:s,dataPointIndex:r,w:i}])}},{key:"rotateAroundCenter",value:function(t){var e={};return t&&"function"==typeof t.getBBox&&(e=t.getBBox()),{x:e.x+e.width/2,y:e.y+e.height/2}}},{key:"getTextRects",value:function(t,e,i,a){var s=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],r=this.w,o=this.drawText({x:-200,y:-200,text:t,textAnchor:"start",fontSize:e,fontFamily:i,foreColor:"#fff",opacity:0});a&&o.attr("transform",a),r.globals.dom.Paper.add(o);var n=o.bbox();return s||(n=o.node.getBoundingClientRect()),o.remove(),{width:n.width,height:n.height}}},{key:"placeTextWithEllipsis",value:function(t,e,i){if("function"==typeof t.getComputedTextLength&&(t.textContent=e,e.length>0&&t.getComputedTextLength()>=i/1.1)){for(var a=e.length-3;a>0;a-=3)if(t.getSubStringLength(0,a)<=i/1.1)return void(t.textContent=e.substring(0,a)+"...");t.textContent="."}}}],[{key:"setAttrs",value:function(t,e){for(var i in e)e.hasOwnProperty(i)&&t.setAttribute(i,e[i])}}]),t}(),S=function(){function t(e){n(this,t),this.ctx=e,this.w=e.w}return h(t,[{key:"getStackedSeriesTotals",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=this.w,i=[];if(0===e.globals.series.length)return i;for(var a=0;a0&&void 0!==arguments[0]?arguments[0]:null;return null===t?this.w.config.series.reduce((function(t,e){return t+e}),0):this.w.globals.series[t].reduce((function(t,e){return t+e}),0)}},{key:"getStackedSeriesTotalsByGroups",value:function(){var t=this,e=this.w,i=[];return e.globals.seriesGroups.forEach((function(a){var s=[];e.config.series.forEach((function(t,e){a.indexOf(t.name)>-1&&s.push(e)}));var r=e.globals.series.map((function(t,e){return-1===s.indexOf(e)?e:-1})).filter((function(t){return-1!==t}));i.push(t.getStackedSeriesTotals(r))})),i}},{key:"isSeriesNull",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return 0===(null===t?this.w.config.series.filter((function(t){return null!==t})):this.w.config.series[t].data.filter((function(t){return null!==t}))).length}},{key:"seriesHaveSameValues",value:function(t){return this.w.globals.series[t].every((function(t,e,i){return t===i[0]}))}},{key:"getCategoryLabels",value:function(t){var e=this.w,i=t.slice();return e.config.xaxis.convertedCatToNumeric&&(i=t.map((function(t,i){return e.config.xaxis.labels.formatter(t-e.globals.minX+1)}))),i}},{key:"getLargestSeries",value:function(){var t=this.w;t.globals.maxValsInArrayIndex=t.globals.series.map((function(t){return t.length})).indexOf(Math.max.apply(Math,t.globals.series.map((function(t){return t.length}))))}},{key:"getLargestMarkerSize",value:function(){var t=this.w,e=0;return t.globals.markers.size.forEach((function(t){e=Math.max(e,t)})),t.config.markers.discrete&&t.config.markers.discrete.length&&t.config.markers.discrete.forEach((function(t){e=Math.max(e,t.size)})),e>0&&(e+=t.config.markers.hover.sizeOffset+1),t.globals.markers.largestSize=e,e}},{key:"getSeriesTotals",value:function(){var t=this.w;t.globals.seriesTotals=t.globals.series.map((function(t,e){var i=0;if(Array.isArray(t))for(var a=0;at&&i.globals.seriesX[s][o]0&&(e=!0),{comboBarCount:i,comboCharts:e}}},{key:"extendArrayProps",value:function(t,e,i){return e.yaxis&&(e=t.extendYAxis(e,i)),e.annotations&&(e.annotations.yaxis&&(e=t.extendYAxisAnnotations(e)),e.annotations.xaxis&&(e=t.extendXAxisAnnotations(e)),e.annotations.points&&(e=t.extendPointAnnotations(e))),e}}]),t}(),C=function(){function t(e){n(this,t),this.w=e.w,this.annoCtx=e}return h(t,[{key:"setOrientations",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,i=this.w;if("vertical"===t.label.orientation){var a=null!==e?e:0,s=i.globals.dom.baseEl.querySelector(".apexcharts-xaxis-annotations .apexcharts-xaxis-annotation-label[rel='".concat(a,"']"));if(null!==s){var r=s.getBoundingClientRect();s.setAttribute("x",parseFloat(s.getAttribute("x"))-r.height+4),"top"===t.label.position?s.setAttribute("y",parseFloat(s.getAttribute("y"))+r.width):s.setAttribute("y",parseFloat(s.getAttribute("y"))-r.width);var o=this.annoCtx.graphics.rotateAroundCenter(s),n=o.x,l=o.y;s.setAttribute("transform","rotate(-90 ".concat(n," ").concat(l,")"))}}}},{key:"addBackgroundToAnno",value:function(t,e){var i=this.w;if(!t||void 0===e.label.text||void 0!==e.label.text&&!String(e.label.text).trim())return null;var a=i.globals.dom.baseEl.querySelector(".apexcharts-grid").getBoundingClientRect(),s=t.getBoundingClientRect(),r=e.label.style.padding.left,o=e.label.style.padding.right,n=e.label.style.padding.top,l=e.label.style.padding.bottom;"vertical"===e.label.orientation&&(n=e.label.style.padding.left,l=e.label.style.padding.right,r=e.label.style.padding.top,o=e.label.style.padding.bottom);var h=s.left-a.left-r,c=s.top-a.top-n,d=this.annoCtx.graphics.drawRect(h-i.globals.barPadForNumericAxis,c,s.width+r+o,s.height+n+l,e.label.borderRadius,e.label.style.background,1,e.label.borderWidth,e.label.borderColor,0);return e.id&&d.node.classList.add(e.id),d}},{key:"annotationsBackground",value:function(){var t=this,e=this.w,i=function(i,a,s){var r=e.globals.dom.baseEl.querySelector(".apexcharts-".concat(s,"-annotations .apexcharts-").concat(s,"-annotation-label[rel='").concat(a,"']"));if(r){var o=r.parentNode,n=t.addBackgroundToAnno(r,i);n&&(o.insertBefore(n.node,r),i.label.mouseEnter&&n.node.addEventListener("mouseenter",i.label.mouseEnter.bind(t,i)),i.label.mouseLeave&&n.node.addEventListener("mouseleave",i.label.mouseLeave.bind(t,i)),i.label.click&&n.node.addEventListener("click",i.label.click.bind(t,i)))}};e.config.annotations.xaxis.map((function(t,e){i(t,e,"xaxis")})),e.config.annotations.yaxis.map((function(t,e){i(t,e,"yaxis")})),e.config.annotations.points.map((function(t,e){i(t,e,"point")}))}},{key:"getY1Y2",value:function(t,e){var i,a="y1"===t?e.y:e.y2,s=this.w;if(this.annoCtx.invertAxis){var r=s.globals.labels.indexOf(a);s.config.xaxis.convertedCatToNumeric&&(r=s.globals.categoryLabels.indexOf(a));var o=s.globals.dom.baseEl.querySelector(".apexcharts-yaxis-texts-g text:nth-child("+(r+1)+")");o&&(i=parseFloat(o.getAttribute("y"))),void 0!==e.seriesIndex&&s.globals.barHeight&&(i=i-s.globals.barHeight/2*(s.globals.series.length-1)+s.globals.barHeight*e.seriesIndex)}else{var n;n=s.config.yaxis[e.yAxisIndex].logarithmic?(a=new S(this.annoCtx.ctx).getLogVal(a,e.yAxisIndex))/s.globals.yLogRatio[e.yAxisIndex]:(a-s.globals.minYArr[e.yAxisIndex])/(s.globals.yRange[e.yAxisIndex]/s.globals.gridHeight),i=s.globals.gridHeight-n,!e.marker||void 0!==e.y&&null!==e.y||(i=0),s.config.yaxis[e.yAxisIndex]&&s.config.yaxis[e.yAxisIndex].reversed&&(i=n)}return"string"==typeof a&&a.indexOf("px")>-1&&(i=parseFloat(a)),i}},{key:"getX1X2",value:function(t,e){var i=this.w,a=this.annoCtx.invertAxis?i.globals.minY:i.globals.minX,s=this.annoCtx.invertAxis?i.globals.maxY:i.globals.maxX,r=this.annoCtx.invertAxis?i.globals.yRange[0]:i.globals.xRange,o=(e.x-a)/(r/i.globals.gridWidth);this.annoCtx.inversedReversedAxis&&(o=(s-e.x)/(r/i.globals.gridWidth)),"category"!==i.config.xaxis.type&&!i.config.xaxis.convertedCatToNumeric||this.annoCtx.invertAxis||i.globals.dataFormatXNumeric||(o=this.getStringX(e.x));var n=(e.x2-a)/(r/i.globals.gridWidth);return this.annoCtx.inversedReversedAxis&&(n=(s-e.x2)/(r/i.globals.gridWidth)),"category"!==i.config.xaxis.type&&!i.config.xaxis.convertedCatToNumeric||this.annoCtx.invertAxis||i.globals.dataFormatXNumeric||(n=this.getStringX(e.x2)),void 0!==e.x&&null!==e.x||!e.marker||(o=i.globals.gridWidth),"x1"===t&&"string"==typeof e.x&&e.x.indexOf("px")>-1&&(o=parseFloat(e.x)),"x2"===t&&"string"==typeof e.x2&&e.x2.indexOf("px")>-1&&(n=parseFloat(e.x2)),void 0!==e.seriesIndex&&i.globals.barWidth&&!this.annoCtx.invertAxis&&(o=o-i.globals.barWidth/2*(i.globals.series.length-1)+i.globals.barWidth*e.seriesIndex),"x1"===t?o:n}},{key:"getStringX",value:function(t){var e=this.w,i=t;e.config.xaxis.convertedCatToNumeric&&e.globals.categoryLabels.length&&(t=e.globals.categoryLabels.indexOf(t)+1);var a=e.globals.labels.indexOf(t),s=e.globals.dom.baseEl.querySelector(".apexcharts-xaxis-texts-g text:nth-child("+(a+1)+")");return s&&(i=parseFloat(s.getAttribute("x"))),i}}]),t}(),L=function(){function t(e){n(this,t),this.w=e.w,this.annoCtx=e,this.invertAxis=this.annoCtx.invertAxis,this.helpers=new C(this.annoCtx)}return h(t,[{key:"addXaxisAnnotation",value:function(t,e,i){var a,s=this.w,r=this.helpers.getX1X2("x1",t),o=t.label.text,n=t.strokeDashArray;if(y.isNumber(r)){if(null===t.x2||void 0===t.x2){var l=this.annoCtx.graphics.drawLine(r+t.offsetX,0+t.offsetY,r+t.offsetX,s.globals.gridHeight+t.offsetY,t.borderColor,n,t.borderWidth);e.appendChild(l.node),t.id&&l.node.classList.add(t.id)}else{if((a=this.helpers.getX1X2("x2",t))o){var h=o;o=a,a=h}var c=this.annoCtx.graphics.drawRect(0+t.offsetX,a+t.offsetY,this._getYAxisAnnotationWidth(t),o-a,0,t.fillColor,t.opacity,1,t.borderColor,r);c.node.classList.add("apexcharts-annotation-rect"),c.attr("clip-path","url(#gridRectMask".concat(s.globals.cuid,")")),e.appendChild(c.node),t.id&&c.node.classList.add(t.id)}var d="right"===t.label.position?s.globals.gridWidth:"center"===t.label.position?s.globals.gridWidth/2:0,g=this.annoCtx.graphics.drawText({x:d+t.label.offsetX,y:(null!=a?a:o)+t.label.offsetY-3,text:n,textAnchor:t.label.textAnchor,fontSize:t.label.style.fontSize,fontFamily:t.label.style.fontFamily,fontWeight:t.label.style.fontWeight,foreColor:t.label.style.color,cssClass:"apexcharts-yaxis-annotation-label ".concat(t.label.style.cssClass," ").concat(t.id?t.id:"")});g.attr({rel:i}),e.appendChild(g.node)}},{key:"_getYAxisAnnotationWidth",value:function(t){var e=this.w;return e.globals.gridWidth,(t.width.indexOf("%")>-1?e.globals.gridWidth*parseInt(t.width,10)/100:parseInt(t.width,10))+t.offsetX}},{key:"drawYAxisAnnotations",value:function(){var t=this,e=this.w,i=this.annoCtx.graphics.group({class:"apexcharts-yaxis-annotations"});return e.config.annotations.yaxis.map((function(e,a){t.addYaxisAnnotation(e,i.node,a)})),i}}]),t}(),I=function(){function t(e){n(this,t),this.w=e.w,this.annoCtx=e,this.helpers=new C(this.annoCtx)}return h(t,[{key:"addPointAnnotation",value:function(t,e,i){this.w;var a=this.helpers.getX1X2("x1",t),s=this.helpers.getY1Y2("y1",t);if(y.isNumber(a)){var r={pSize:t.marker.size,pointStrokeWidth:t.marker.strokeWidth,pointFillColor:t.marker.fillColor,pointStrokeColor:t.marker.strokeColor,shape:t.marker.shape,pRadius:t.marker.radius,class:"apexcharts-point-annotation-marker ".concat(t.marker.cssClass," ").concat(t.id?t.id:"")},o=this.annoCtx.graphics.drawMarker(a+t.marker.offsetX,s+t.marker.offsetY,r);e.appendChild(o.node);var n=t.label.text?t.label.text:"",l=this.annoCtx.graphics.drawText({x:a+t.label.offsetX,y:s+t.label.offsetY-t.marker.size-parseFloat(t.label.style.fontSize)/1.6,text:n,textAnchor:t.label.textAnchor,fontSize:t.label.style.fontSize,fontFamily:t.label.style.fontFamily,fontWeight:t.label.style.fontWeight,foreColor:t.label.style.color,cssClass:"apexcharts-point-annotation-label ".concat(t.label.style.cssClass," ").concat(t.id?t.id:"")});if(l.attr({rel:i}),e.appendChild(l.node),t.customSVG.SVG){var h=this.annoCtx.graphics.group({class:"apexcharts-point-annotations-custom-svg "+t.customSVG.cssClass});h.attr({transform:"translate(".concat(a+t.customSVG.offsetX,", ").concat(s+t.customSVG.offsetY,")")}),h.node.innerHTML=t.customSVG.SVG,e.appendChild(h.node)}if(t.image.path){var c=t.image.width?t.image.width:20,d=t.image.height?t.image.height:20;o=this.annoCtx.addImage({x:a+t.image.offsetX-c/2,y:s+t.image.offsetY-d/2,width:c,height:d,path:t.image.path,appendTo:".apexcharts-point-annotations"})}t.mouseEnter&&o.node.addEventListener("mouseenter",t.mouseEnter.bind(this,t)),t.mouseLeave&&o.node.addEventListener("mouseleave",t.mouseLeave.bind(this,t)),t.click&&o.node.addEventListener("click",t.click.bind(this,t))}}},{key:"drawPointAnnotations",value:function(){var t=this,e=this.w,i=this.annoCtx.graphics.group({class:"apexcharts-point-annotations"});return e.config.annotations.points.map((function(e,a){t.addPointAnnotation(e,i.node,a)})),i}}]),t}(),T={name:"en",options:{months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],toolbar:{exportToSVG:"Download SVG",exportToPNG:"Download PNG",exportToCSV:"Download CSV",menu:"Menu",selection:"Selection",selectionZoom:"Selection Zoom",zoomIn:"Zoom In",zoomOut:"Zoom Out",pan:"Panning",reset:"Reset Zoom"}}},M=function(){function t(){n(this,t),this.yAxis={show:!0,showAlways:!1,showForNullSeries:!0,seriesName:void 0,opposite:!1,reversed:!1,logarithmic:!1,logBase:10,tickAmount:void 0,stepSize:void 0,forceNiceScale:!1,max:void 0,min:void 0,floating:!1,decimalsInFloat:void 0,labels:{show:!0,minWidth:0,maxWidth:160,offsetX:0,offsetY:0,align:void 0,rotate:0,padding:20,style:{colors:[],fontSize:"11px",fontWeight:400,fontFamily:void 0,cssClass:""},formatter:void 0},axisBorder:{show:!1,color:"#e0e0e0",width:1,offsetX:0,offsetY:0},axisTicks:{show:!1,color:"#e0e0e0",width:6,offsetX:0,offsetY:0},title:{text:void 0,rotate:-90,offsetY:0,offsetX:0,style:{color:void 0,fontSize:"11px",fontWeight:900,fontFamily:void 0,cssClass:""}},tooltip:{enabled:!1,offsetX:0},crosshairs:{show:!0,position:"front",stroke:{color:"#b6b6b6",width:1,dashArray:0}}},this.pointAnnotation={id:void 0,x:0,y:null,yAxisIndex:0,seriesIndex:void 0,mouseEnter:void 0,mouseLeave:void 0,click:void 0,marker:{size:4,fillColor:"#fff",strokeWidth:2,strokeColor:"#333",shape:"circle",offsetX:0,offsetY:0,radius:2,cssClass:""},label:{borderColor:"#c2c2c2",borderWidth:1,borderRadius:2,text:void 0,textAnchor:"middle",offsetX:0,offsetY:0,mouseEnter:void 0,mouseLeave:void 0,click:void 0,style:{background:"#fff",color:void 0,fontSize:"11px",fontFamily:void 0,fontWeight:400,cssClass:"",padding:{left:5,right:5,top:2,bottom:2}}},customSVG:{SVG:void 0,cssClass:void 0,offsetX:0,offsetY:0},image:{path:void 0,width:20,height:20,offsetX:0,offsetY:0}},this.yAxisAnnotation={id:void 0,y:0,y2:null,strokeDashArray:1,fillColor:"#c2c2c2",borderColor:"#c2c2c2",borderWidth:1,opacity:.3,offsetX:0,offsetY:0,width:"100%",yAxisIndex:0,label:{borderColor:"#c2c2c2",borderWidth:1,borderRadius:2,text:void 0,textAnchor:"end",position:"right",offsetX:0,offsetY:-3,mouseEnter:void 0,mouseLeave:void 0,click:void 0,style:{background:"#fff",color:void 0,fontSize:"11px",fontFamily:void 0,fontWeight:400,cssClass:"",padding:{left:5,right:5,top:2,bottom:2}}}},this.xAxisAnnotation={id:void 0,x:0,x2:null,strokeDashArray:1,fillColor:"#c2c2c2",borderColor:"#c2c2c2",borderWidth:1,opacity:.3,offsetX:0,offsetY:0,label:{borderColor:"#c2c2c2",borderWidth:1,borderRadius:2,text:void 0,textAnchor:"middle",orientation:"vertical",position:"top",offsetX:0,offsetY:0,mouseEnter:void 0,mouseLeave:void 0,click:void 0,style:{background:"#fff",color:void 0,fontSize:"11px",fontFamily:void 0,fontWeight:400,cssClass:"",padding:{left:5,right:5,top:2,bottom:2}}}},this.text={x:0,y:0,text:"",textAnchor:"start",foreColor:void 0,fontSize:"13px",fontFamily:void 0,fontWeight:400,appendTo:".apexcharts-annotations",backgroundColor:"transparent",borderColor:"#c2c2c2",borderRadius:0,borderWidth:0,paddingLeft:4,paddingRight:4,paddingTop:2,paddingBottom:2}}return h(t,[{key:"init",value:function(){return{annotations:{yaxis:[this.yAxisAnnotation],xaxis:[this.xAxisAnnotation],points:[this.pointAnnotation],texts:[],images:[],shapes:[]},chart:{animations:{enabled:!0,easing:"easeinout",speed:800,animateGradually:{delay:150,enabled:!0},dynamicAnimation:{enabled:!0,speed:350}},background:"transparent",locales:[T],defaultLocale:"en",dropShadow:{enabled:!1,enabledOnSeries:void 0,top:2,left:2,blur:4,color:"#000",opacity:.35},events:{animationEnd:void 0,beforeMount:void 0,mounted:void 0,updated:void 0,click:void 0,mouseMove:void 0,mouseLeave:void 0,xAxisLabelClick:void 0,legendClick:void 0,markerClick:void 0,selection:void 0,dataPointSelection:void 0,dataPointMouseEnter:void 0,dataPointMouseLeave:void 0,beforeZoom:void 0,beforeResetZoom:void 0,zoomed:void 0,scrolled:void 0,brushScrolled:void 0},foreColor:"#373d3f",fontFamily:"Helvetica, Arial, sans-serif",height:"auto",parentHeightOffset:15,redrawOnParentResize:!0,redrawOnWindowResize:!0,id:void 0,group:void 0,nonce:void 0,offsetX:0,offsetY:0,selection:{enabled:!1,type:"x",fill:{color:"#24292e",opacity:.1},stroke:{width:1,color:"#24292e",opacity:.4,dashArray:3},xaxis:{min:void 0,max:void 0},yaxis:{min:void 0,max:void 0}},sparkline:{enabled:!1},brush:{enabled:!1,autoScaleYaxis:!0,target:void 0,targets:void 0},stacked:!1,stackOnlyBar:!0,stackType:"normal",toolbar:{show:!0,offsetX:0,offsetY:0,tools:{download:!0,selection:!0,zoom:!0,zoomin:!0,zoomout:!0,pan:!0,reset:!0,customIcons:[]},export:{csv:{filename:void 0,columnDelimiter:",",headerCategory:"category",headerValue:"value",dateFormatter:function(t){return new Date(t).toDateString()}},png:{filename:void 0},svg:{filename:void 0}},autoSelected:"zoom"},type:"line",width:"100%",zoom:{enabled:!0,type:"x",autoScaleYaxis:!1,zoomedArea:{fill:{color:"#90CAF9",opacity:.4},stroke:{color:"#0D47A1",opacity:.4,width:1}}}},plotOptions:{area:{fillTo:"origin"},bar:{horizontal:!1,columnWidth:"70%",barHeight:"70%",distributed:!1,borderRadius:0,borderRadiusApplication:"around",borderRadiusWhenStacked:"last",rangeBarOverlap:!0,rangeBarGroupRows:!1,hideZeroBarsWhenGrouped:!1,isDumbbell:!1,dumbbellColors:void 0,isFunnel:!1,isFunnel3d:!0,colors:{ranges:[],backgroundBarColors:[],backgroundBarOpacity:1,backgroundBarRadius:0},dataLabels:{position:"top",maxItems:100,hideOverflowingLabels:!0,orientation:"horizontal",total:{enabled:!1,formatter:void 0,offsetX:0,offsetY:0,style:{color:"#373d3f",fontSize:"12px",fontFamily:void 0,fontWeight:600}}}},bubble:{zScaling:!0,minBubbleRadius:void 0,maxBubbleRadius:void 0},candlestick:{colors:{upward:"#00B746",downward:"#EF403C"},wick:{useFillColor:!0}},boxPlot:{colors:{upper:"#00E396",lower:"#008FFB"}},heatmap:{radius:2,enableShades:!0,shadeIntensity:.5,reverseNegativeShade:!1,distributed:!1,useFillColorAsStroke:!1,colorScale:{inverse:!1,ranges:[],min:void 0,max:void 0}},treemap:{enableShades:!0,shadeIntensity:.5,distributed:!1,reverseNegativeShade:!1,useFillColorAsStroke:!1,borderRadius:4,dataLabels:{format:"scale"},colorScale:{inverse:!1,ranges:[],min:void 0,max:void 0}},radialBar:{inverseOrder:!1,startAngle:0,endAngle:360,offsetX:0,offsetY:0,hollow:{margin:5,size:"50%",background:"transparent",image:void 0,imageWidth:150,imageHeight:150,imageOffsetX:0,imageOffsetY:0,imageClipped:!0,position:"front",dropShadow:{enabled:!1,top:0,left:0,blur:3,color:"#000",opacity:.5}},track:{show:!0,startAngle:void 0,endAngle:void 0,background:"#f2f2f2",strokeWidth:"97%",opacity:1,margin:5,dropShadow:{enabled:!1,top:0,left:0,blur:3,color:"#000",opacity:.5}},dataLabels:{show:!0,name:{show:!0,fontSize:"16px",fontFamily:void 0,fontWeight:600,color:void 0,offsetY:0,formatter:function(t){return t}},value:{show:!0,fontSize:"14px",fontFamily:void 0,fontWeight:400,color:void 0,offsetY:16,formatter:function(t){return t+"%"}},total:{show:!1,label:"Total",fontSize:"16px",fontWeight:600,fontFamily:void 0,color:void 0,formatter:function(t){return t.globals.seriesTotals.reduce((function(t,e){return t+e}),0)/t.globals.series.length+"%"}}},barLabels:{enabled:!1,margin:5,useSeriesColors:!0,fontFamily:void 0,fontWeight:600,fontSize:"16px",formatter:function(t){return t},onClick:void 0}},pie:{customScale:1,offsetX:0,offsetY:0,startAngle:0,endAngle:360,expandOnClick:!0,dataLabels:{offset:0,minAngleToShowLabel:10},donut:{size:"65%",background:"transparent",labels:{show:!1,name:{show:!0,fontSize:"16px",fontFamily:void 0,fontWeight:600,color:void 0,offsetY:-10,formatter:function(t){return t}},value:{show:!0,fontSize:"20px",fontFamily:void 0,fontWeight:400,color:void 0,offsetY:10,formatter:function(t){return t}},total:{show:!1,showAlways:!1,label:"Total",fontSize:"16px",fontWeight:400,fontFamily:void 0,color:void 0,formatter:function(t){return t.globals.seriesTotals.reduce((function(t,e){return t+e}),0)}}}}},polarArea:{rings:{strokeWidth:1,strokeColor:"#e8e8e8"},spokes:{strokeWidth:1,connectorColors:"#e8e8e8"}},radar:{size:void 0,offsetX:0,offsetY:0,polygons:{strokeWidth:1,strokeColors:"#e8e8e8",connectorColors:"#e8e8e8",fill:{colors:void 0}}}},colors:void 0,dataLabels:{enabled:!0,enabledOnSeries:void 0,formatter:function(t){return null!==t?t:""},textAnchor:"middle",distributed:!1,offsetX:0,offsetY:0,style:{fontSize:"12px",fontFamily:void 0,fontWeight:600,colors:void 0},background:{enabled:!0,foreColor:"#fff",borderRadius:2,padding:4,opacity:.9,borderWidth:1,borderColor:"#fff",dropShadow:{enabled:!1,top:1,left:1,blur:1,color:"#000",opacity:.45}},dropShadow:{enabled:!1,top:1,left:1,blur:1,color:"#000",opacity:.45}},fill:{type:"solid",colors:void 0,opacity:.85,gradient:{shade:"dark",type:"horizontal",shadeIntensity:.5,gradientToColors:void 0,inverseColors:!0,opacityFrom:1,opacityTo:1,stops:[0,50,100],colorStops:[]},image:{src:[],width:void 0,height:void 0},pattern:{style:"squares",width:6,height:6,strokeWidth:2}},forecastDataPoints:{count:0,fillOpacity:.5,strokeWidth:void 0,dashArray:4},grid:{show:!0,borderColor:"#e0e0e0",strokeDashArray:0,position:"back",xaxis:{lines:{show:!1}},yaxis:{lines:{show:!0}},row:{colors:void 0,opacity:.5},column:{colors:void 0,opacity:.5},padding:{top:0,right:10,bottom:0,left:12}},labels:[],legend:{show:!0,showForSingleSeries:!1,showForNullSeries:!0,showForZeroSeries:!0,floating:!1,position:"bottom",horizontalAlign:"center",inverseOrder:!1,fontSize:"12px",fontFamily:void 0,fontWeight:400,width:void 0,height:void 0,formatter:void 0,tooltipHoverFormatter:void 0,offsetX:-20,offsetY:4,customLegendItems:[],labels:{colors:void 0,useSeriesColors:!1},markers:{width:12,height:12,strokeWidth:0,fillColors:void 0,strokeColor:"#fff",radius:12,customHTML:void 0,offsetX:0,offsetY:0,onClick:void 0},itemMargin:{horizontal:5,vertical:2},onItemClick:{toggleDataSeries:!0},onItemHover:{highlightDataSeries:!0}},markers:{discrete:[],size:0,colors:void 0,strokeColors:"#fff",strokeWidth:2,strokeOpacity:.9,strokeDashArray:0,fillOpacity:1,shape:"circle",width:8,height:8,radius:2,offsetX:0,offsetY:0,onClick:void 0,onDblClick:void 0,showNullDataPoints:!0,hover:{size:void 0,sizeOffset:3}},noData:{text:void 0,align:"center",verticalAlign:"middle",offsetX:0,offsetY:0,style:{color:void 0,fontSize:"14px",fontFamily:void 0}},responsive:[],series:void 0,states:{normal:{filter:{type:"none",value:0}},hover:{filter:{type:"lighten",value:.1}},active:{allowMultipleDataPointsSelection:!1,filter:{type:"darken",value:.5}}},title:{text:void 0,align:"left",margin:5,offsetX:0,offsetY:0,floating:!1,style:{fontSize:"14px",fontWeight:900,fontFamily:void 0,color:void 0}},subtitle:{text:void 0,align:"left",margin:5,offsetX:0,offsetY:30,floating:!1,style:{fontSize:"12px",fontWeight:400,fontFamily:void 0,color:void 0}},stroke:{show:!0,curve:"smooth",lineCap:"butt",width:2,colors:void 0,dashArray:0,fill:{type:"solid",colors:void 0,opacity:.85,gradient:{shade:"dark",type:"horizontal",shadeIntensity:.5,gradientToColors:void 0,inverseColors:!0,opacityFrom:1,opacityTo:1,stops:[0,50,100],colorStops:[]}}},tooltip:{enabled:!0,enabledOnSeries:void 0,shared:!0,hideEmptySeries:!1,followCursor:!1,intersect:!1,inverseOrder:!1,custom:void 0,fillSeriesColor:!1,theme:"light",cssClass:"",style:{fontSize:"12px",fontFamily:void 0},onDatasetHover:{highlightDataSeries:!1},x:{show:!0,format:"dd MMM",formatter:void 0},y:{formatter:void 0,title:{formatter:function(t){return t?t+": ":""}}},z:{formatter:void 0,title:"Size: "},marker:{show:!0,fillColors:void 0},items:{display:"flex"},fixed:{enabled:!1,position:"topRight",offsetX:0,offsetY:0}},xaxis:{type:"category",categories:[],convertedCatToNumeric:!1,offsetX:0,offsetY:0,overwriteCategories:void 0,labels:{show:!0,rotate:-45,rotateAlways:!1,hideOverlappingLabels:!0,trim:!1,minHeight:void 0,maxHeight:120,showDuplicates:!0,style:{colors:[],fontSize:"12px",fontWeight:400,fontFamily:void 0,cssClass:""},offsetX:0,offsetY:0,format:void 0,formatter:void 0,datetimeUTC:!0,datetimeFormatter:{year:"yyyy",month:"MMM 'yy",day:"dd MMM",hour:"HH:mm",minute:"HH:mm:ss",second:"HH:mm:ss"}},group:{groups:[],style:{colors:[],fontSize:"12px",fontWeight:400,fontFamily:void 0,cssClass:""}},axisBorder:{show:!0,color:"#e0e0e0",width:"100%",height:1,offsetX:0,offsetY:0},axisTicks:{show:!0,color:"#e0e0e0",height:6,offsetX:0,offsetY:0},stepSize:void 0,tickAmount:void 0,tickPlacement:"on",min:void 0,max:void 0,range:void 0,floating:!1,decimalsInFloat:void 0,position:"bottom",title:{text:void 0,offsetX:0,offsetY:0,style:{color:void 0,fontSize:"12px",fontWeight:900,fontFamily:void 0,cssClass:""}},crosshairs:{show:!0,width:1,position:"back",opacity:.9,stroke:{color:"#b6b6b6",width:1,dashArray:3},fill:{type:"solid",color:"#B1B9C4",gradient:{colorFrom:"#D8E3F0",colorTo:"#BED1E6",stops:[0,100],opacityFrom:.4,opacityTo:.5}},dropShadow:{enabled:!1,left:0,top:0,blur:1,opacity:.4}},tooltip:{enabled:!0,offsetY:0,formatter:void 0,style:{fontSize:"12px",fontFamily:void 0}}},yaxis:this.yAxis,theme:{mode:"light",palette:"palette1",monochrome:{enabled:!1,color:"#008FFB",shadeTo:"light",shadeIntensity:.65}}}}}]),t}(),z=function(){function t(e){n(this,t),this.ctx=e,this.w=e.w,this.graphics=new A(this.ctx),this.w.globals.isBarHorizontal&&(this.invertAxis=!0),this.helpers=new C(this),this.xAxisAnnotations=new L(this),this.yAxisAnnotations=new P(this),this.pointsAnnotations=new I(this),this.w.globals.isBarHorizontal&&this.w.config.yaxis[0].reversed&&(this.inversedReversedAxis=!0),this.xDivision=this.w.globals.gridWidth/this.w.globals.dataPoints}return h(t,[{key:"drawAxesAnnotations",value:function(){var t=this.w;if(t.globals.axisCharts){for(var e=this.yAxisAnnotations.drawYAxisAnnotations(),i=this.xAxisAnnotations.drawXAxisAnnotations(),a=this.pointsAnnotations.drawPointAnnotations(),s=t.config.chart.animations.enabled,r=[e,i,a],o=[i.node,e.node,a.node],n=0;n<3;n++)t.globals.dom.elGraphical.add(r[n]),!s||t.globals.resized||t.globals.dataChanged||"scatter"!==t.config.chart.type&&"bubble"!==t.config.chart.type&&t.globals.dataPoints>1&&o[n].classList.add("apexcharts-element-hidden"),t.globals.delayedElements.push({el:o[n],index:0});this.helpers.annotationsBackground()}}},{key:"drawImageAnnos",value:function(){var t=this;this.w.config.annotations.images.map((function(e,i){t.addImage(e,i)}))}},{key:"drawTextAnnos",value:function(){var t=this;this.w.config.annotations.texts.map((function(e,i){t.addText(e,i)}))}},{key:"addXaxisAnnotation",value:function(t,e,i){this.xAxisAnnotations.addXaxisAnnotation(t,e,i)}},{key:"addYaxisAnnotation",value:function(t,e,i){this.yAxisAnnotations.addYaxisAnnotation(t,e,i)}},{key:"addPointAnnotation",value:function(t,e,i){this.pointsAnnotations.addPointAnnotation(t,e,i)}},{key:"addText",value:function(t,e){var i=t.x,a=t.y,s=t.text,r=t.textAnchor,o=t.foreColor,n=t.fontSize,l=t.fontFamily,h=t.fontWeight,c=t.cssClass,d=t.backgroundColor,g=t.borderWidth,u=t.strokeDashArray,p=t.borderRadius,f=t.borderColor,x=t.appendTo,b=void 0===x?".apexcharts-svg":x,v=t.paddingLeft,m=void 0===v?4:v,y=t.paddingRight,w=void 0===y?4:y,k=t.paddingBottom,A=void 0===k?2:k,S=t.paddingTop,C=void 0===S?2:S,L=this.w,P=this.graphics.drawText({x:i,y:a,text:s,textAnchor:r||"start",fontSize:n||"12px",fontWeight:h||"regular",fontFamily:l||L.config.chart.fontFamily,foreColor:o||L.config.chart.foreColor,cssClass:c}),I=L.globals.dom.baseEl.querySelector(b);I&&I.appendChild(P.node);var T=P.bbox();if(s){var M=this.graphics.drawRect(T.x-m,T.y-C,T.width+m+w,T.height+A+C,p,d||"transparent",1,g,f,u);I.insertBefore(M.node,P.node)}}},{key:"addImage",value:function(t,e){var i=this.w,a=t.path,s=t.x,r=void 0===s?0:s,o=t.y,n=void 0===o?0:o,l=t.width,h=void 0===l?20:l,c=t.height,d=void 0===c?20:c,g=t.appendTo,u=void 0===g?".apexcharts-svg":g,p=i.globals.dom.Paper.image(a);p.size(h,d).move(r,n);var f=i.globals.dom.baseEl.querySelector(u);return f&&f.appendChild(p.node),p}},{key:"addXaxisAnnotationExternal",value:function(t,e,i){return this.addAnnotationExternal({params:t,pushToMemory:e,context:i,type:"xaxis",contextMethod:i.addXaxisAnnotation}),i}},{key:"addYaxisAnnotationExternal",value:function(t,e,i){return this.addAnnotationExternal({params:t,pushToMemory:e,context:i,type:"yaxis",contextMethod:i.addYaxisAnnotation}),i}},{key:"addPointAnnotationExternal",value:function(t,e,i){return void 0===this.invertAxis&&(this.invertAxis=i.w.globals.isBarHorizontal),this.addAnnotationExternal({params:t,pushToMemory:e,context:i,type:"point",contextMethod:i.addPointAnnotation}),i}},{key:"addAnnotationExternal",value:function(t){var e=t.params,i=t.pushToMemory,a=t.context,s=t.type,r=t.contextMethod,o=a,n=o.w,l=n.globals.dom.baseEl.querySelector(".apexcharts-".concat(s,"-annotations")),h=l.childNodes.length+1,c=new M,d=Object.assign({},"xaxis"===s?c.xAxisAnnotation:"yaxis"===s?c.yAxisAnnotation:c.pointAnnotation),g=y.extend(d,e);switch(s){case"xaxis":this.addXaxisAnnotation(g,l,h);break;case"yaxis":this.addYaxisAnnotation(g,l,h);break;case"point":this.addPointAnnotation(g,l,h)}var u=n.globals.dom.baseEl.querySelector(".apexcharts-".concat(s,"-annotations .apexcharts-").concat(s,"-annotation-label[rel='").concat(h,"']")),p=this.helpers.addBackgroundToAnno(u,g);return p&&l.insertBefore(p.node,u),i&&n.globals.memory.methodsToExec.push({context:o,id:g.id?g.id:y.randomId(),method:r,label:"addAnnotation",params:e}),a}},{key:"clearAnnotations",value:function(t){var e=t.w,i=e.globals.dom.baseEl.querySelectorAll(".apexcharts-yaxis-annotations, .apexcharts-xaxis-annotations, .apexcharts-point-annotations");e.globals.memory.methodsToExec.map((function(t,i){"addText"!==t.label&&"addAnnotation"!==t.label||e.globals.memory.methodsToExec.splice(i,1)})),i=y.listToArray(i),Array.prototype.forEach.call(i,(function(t){for(;t.firstChild;)t.removeChild(t.firstChild)}))}},{key:"removeAnnotation",value:function(t,e){var i=t.w,a=i.globals.dom.baseEl.querySelectorAll(".".concat(e));a&&(i.globals.memory.methodsToExec.map((function(t,a){t.id===e&&i.globals.memory.methodsToExec.splice(a,1)})),Array.prototype.forEach.call(a,(function(t){t.parentElement.removeChild(t)})))}}]),t}(),X=function(){function t(e){n(this,t),this.ctx=e,this.w=e.w,this.months31=[1,3,5,7,8,10,12],this.months30=[2,4,6,9,11],this.daysCntOfYear=[0,31,59,90,120,151,181,212,243,273,304,334]}return h(t,[{key:"isValidDate",value:function(t){return"number"!=typeof t&&!isNaN(this.parseDate(t))}},{key:"getTimeStamp",value:function(t){return Date.parse(t)?this.w.config.xaxis.labels.datetimeUTC?new Date(new Date(t).toISOString().substr(0,25)).getTime():new Date(t).getTime():t}},{key:"getDate",value:function(t){return this.w.config.xaxis.labels.datetimeUTC?new Date(new Date(t).toUTCString()):new Date(t)}},{key:"parseDate",value:function(t){var e=Date.parse(t);if(!isNaN(e))return this.getTimeStamp(t);var i=Date.parse(t.replace(/-/g,"/").replace(/[a-z]+/gi," "));return this.getTimeStamp(i)}},{key:"parseDateWithTimezone",value:function(t){return Date.parse(t.replace(/-/g,"/").replace(/[a-z]+/gi," "))}},{key:"formatDate",value:function(t,e){var i=this.w.globals.locale,a=this.w.config.xaxis.labels.datetimeUTC,s=["\0"].concat(b(i.months)),r=[""].concat(b(i.shortMonths)),o=[""].concat(b(i.days)),n=[""].concat(b(i.shortDays));function l(t,e){var i=t+"";for(e=e||2;i.length12?g-12:0===g?12:g;e=(e=(e=(e=e.replace(/(^|[^\\])HH+/g,"$1"+l(g))).replace(/(^|[^\\])H/g,"$1"+g)).replace(/(^|[^\\])hh+/g,"$1"+l(u))).replace(/(^|[^\\])h/g,"$1"+u);var p=a?t.getUTCMinutes():t.getMinutes();e=(e=e.replace(/(^|[^\\])mm+/g,"$1"+l(p))).replace(/(^|[^\\])m/g,"$1"+p);var f=a?t.getUTCSeconds():t.getSeconds();e=(e=e.replace(/(^|[^\\])ss+/g,"$1"+l(f))).replace(/(^|[^\\])s/g,"$1"+f);var x=a?t.getUTCMilliseconds():t.getMilliseconds();e=e.replace(/(^|[^\\])fff+/g,"$1"+l(x,3)),x=Math.round(x/10),e=e.replace(/(^|[^\\])ff/g,"$1"+l(x)),x=Math.round(x/10);var v=g<12?"AM":"PM";e=(e=(e=e.replace(/(^|[^\\])f/g,"$1"+x)).replace(/(^|[^\\])TT+/g,"$1"+v)).replace(/(^|[^\\])T/g,"$1"+v.charAt(0));var m=v.toLowerCase();e=(e=e.replace(/(^|[^\\])tt+/g,"$1"+m)).replace(/(^|[^\\])t/g,"$1"+m.charAt(0));var y=-t.getTimezoneOffset(),w=a||!y?"Z":y>0?"+":"-";if(!a){var k=(y=Math.abs(y))%60;w+=l(Math.floor(y/60))+":"+l(k)}e=e.replace(/(^|[^\\])K/g,"$1"+w);var A=(a?t.getUTCDay():t.getDay())+1;return(e=(e=(e=(e=e.replace(new RegExp(o[0],"g"),o[A])).replace(new RegExp(n[0],"g"),n[A])).replace(new RegExp(s[0],"g"),s[c])).replace(new RegExp(r[0],"g"),r[c])).replace(/\\(.)/g,"$1")}},{key:"getTimeUnitsfromTimestamp",value:function(t,e,i){var a=this.w;void 0!==a.config.xaxis.min&&(t=a.config.xaxis.min),void 0!==a.config.xaxis.max&&(e=a.config.xaxis.max);var s=this.getDate(t),r=this.getDate(e),o=this.formatDate(s,"yyyy MM dd HH mm ss fff").split(" "),n=this.formatDate(r,"yyyy MM dd HH mm ss fff").split(" ");return{minMillisecond:parseInt(o[6],10),maxMillisecond:parseInt(n[6],10),minSecond:parseInt(o[5],10),maxSecond:parseInt(n[5],10),minMinute:parseInt(o[4],10),maxMinute:parseInt(n[4],10),minHour:parseInt(o[3],10),maxHour:parseInt(n[3],10),minDate:parseInt(o[2],10),maxDate:parseInt(n[2],10),minMonth:parseInt(o[1],10)-1,maxMonth:parseInt(n[1],10)-1,minYear:parseInt(o[0],10),maxYear:parseInt(n[0],10)}}},{key:"isLeapYear",value:function(t){return t%4==0&&t%100!=0||t%400==0}},{key:"calculcateLastDaysOfMonth",value:function(t,e,i){return this.determineDaysOfMonths(t,e)-i}},{key:"determineDaysOfYear",value:function(t){var e=365;return this.isLeapYear(t)&&(e=366),e}},{key:"determineRemainingDaysOfYear",value:function(t,e,i){var a=this.daysCntOfYear[e]+i;return e>1&&this.isLeapYear()&&a++,a}},{key:"determineDaysOfMonths",value:function(t,e){var i=30;switch(t=y.monthMod(t),!0){case this.months30.indexOf(t)>-1:2===t&&(i=this.isLeapYear(e)?29:28);break;case this.months31.indexOf(t)>-1:default:i=31}return i}}]),t}(),E=function(){function t(e){n(this,t),this.ctx=e,this.w=e.w,this.tooltipKeyFormat="dd MMM"}return h(t,[{key:"xLabelFormat",value:function(t,e,i,a){var s=this.w;if("datetime"===s.config.xaxis.type&&void 0===s.config.xaxis.labels.formatter&&void 0===s.config.tooltip.x.formatter){var r=new X(this.ctx);return r.formatDate(r.getDate(e),s.config.tooltip.x.format)}return t(e,i,a)}},{key:"defaultGeneralFormatter",value:function(t){return Array.isArray(t)?t.map((function(t){return t})):t}},{key:"defaultYFormatter",value:function(t,e,i){var a=this.w;return y.isNumber(t)&&(t=0!==a.globals.yValueDecimal?t.toFixed(void 0!==e.decimalsInFloat?e.decimalsInFloat:a.globals.yValueDecimal):a.globals.maxYArr[i]-a.globals.minYArr[i]<5?t.toFixed(1):t.toFixed(0)),t}},{key:"setLabelFormatters",value:function(){var t=this,e=this.w;return e.globals.xaxisTooltipFormatter=function(e){return t.defaultGeneralFormatter(e)},e.globals.ttKeyFormatter=function(e){return t.defaultGeneralFormatter(e)},e.globals.ttZFormatter=function(t){return t},e.globals.legendFormatter=function(e){return t.defaultGeneralFormatter(e)},void 0!==e.config.xaxis.labels.formatter?e.globals.xLabelFormatter=e.config.xaxis.labels.formatter:e.globals.xLabelFormatter=function(t){if(y.isNumber(t)){if(!e.config.xaxis.convertedCatToNumeric&&"numeric"===e.config.xaxis.type){if(y.isNumber(e.config.xaxis.decimalsInFloat))return t.toFixed(e.config.xaxis.decimalsInFloat);var i=e.globals.maxX-e.globals.minX;return i>0&&i<100?t.toFixed(1):t.toFixed(0)}return e.globals.isBarHorizontal&&e.globals.maxY-e.globals.minYArr<4?t.toFixed(1):t.toFixed(0)}return t},"function"==typeof e.config.tooltip.x.formatter?e.globals.ttKeyFormatter=e.config.tooltip.x.formatter:e.globals.ttKeyFormatter=e.globals.xLabelFormatter,"function"==typeof e.config.xaxis.tooltip.formatter&&(e.globals.xaxisTooltipFormatter=e.config.xaxis.tooltip.formatter),(Array.isArray(e.config.tooltip.y)||void 0!==e.config.tooltip.y.formatter)&&(e.globals.ttVal=e.config.tooltip.y),void 0!==e.config.tooltip.z.formatter&&(e.globals.ttZFormatter=e.config.tooltip.z.formatter),void 0!==e.config.legend.formatter&&(e.globals.legendFormatter=e.config.legend.formatter),e.config.yaxis.forEach((function(i,a){void 0!==i.labels.formatter?e.globals.yLabelFormatters[a]=i.labels.formatter:e.globals.yLabelFormatters[a]=function(s){return e.globals.xyCharts?Array.isArray(s)?s.map((function(e){return t.defaultYFormatter(e,i,a)})):t.defaultYFormatter(s,i,a):s}})),e.globals}},{key:"heatmapLabelFormatters",value:function(){var t=this.w;if("heatmap"===t.config.chart.type){t.globals.yAxisScale[0].result=t.globals.seriesNames.slice();var e=t.globals.seriesNames.reduce((function(t,e){return t.length>e.length?t:e}),0);t.globals.yAxisScale[0].niceMax=e,t.globals.yAxisScale[0].niceMin=e}}}]),t}(),Y=function(t){var e,i=t.isTimeline,a=t.ctx,s=t.seriesIndex,r=t.dataPointIndex,o=t.y1,n=t.y2,l=t.w,h=l.globals.seriesRangeStart[s][r],c=l.globals.seriesRangeEnd[s][r],d=l.globals.labels[r],g=l.config.series[s].name?l.config.series[s].name:"",u=l.globals.ttKeyFormatter,p=l.config.tooltip.y.title.formatter,f={w:l,seriesIndex:s,dataPointIndex:r,start:h,end:c};"function"==typeof p&&(g=p(g,f)),null!==(e=l.config.series[s].data[r])&&void 0!==e&&e.x&&(d=l.config.series[s].data[r].x),i||"datetime"===l.config.xaxis.type&&(d=new E(a).xLabelFormat(l.globals.ttKeyFormatter,d,d,{i:void 0,dateFormatter:new X(a).formatDate,w:l})),"function"==typeof u&&(d=u(d,f)),Number.isFinite(o)&&Number.isFinite(n)&&(h=o,c=n);var x="",b="",v=l.globals.colors[s];if(void 0===l.config.tooltip.x.formatter)if("datetime"===l.config.xaxis.type){var m=new X(a);x=m.formatDate(m.getDate(h),l.config.tooltip.x.format),b=m.formatDate(m.getDate(c),l.config.tooltip.x.format)}else x=h,b=c;else x=l.config.tooltip.x.formatter(h),b=l.config.tooltip.x.formatter(c);return{start:h,end:c,startVal:x,endVal:b,ylabel:d,color:v,seriesName:g}},F=function(t){var e=t.color,i=t.seriesName,a=t.ylabel,s=t.start,r=t.end,o=t.seriesIndex,n=t.dataPointIndex,l=t.ctx.tooltip.tooltipLabels.getFormatters(o);s=l.yLbFormatter(s),r=l.yLbFormatter(r);var h=l.yLbFormatter(t.w.globals.series[o][n]),c='\n '.concat(s,'\n - \n ').concat(r,"\n ");return'
'+(i||"")+'
'+a+": "+(t.w.globals.comboCharts?"rangeArea"===t.w.config.series[o].type||"rangeBar"===t.w.config.series[o].type?c:"".concat(h,""):c)+"
"},R=function(){function t(e){n(this,t),this.opts=e}return h(t,[{key:"hideYAxis",value:function(){this.opts.yaxis[0].show=!1,this.opts.yaxis[0].title.text="",this.opts.yaxis[0].axisBorder.show=!1,this.opts.yaxis[0].axisTicks.show=!1,this.opts.yaxis[0].floating=!0}},{key:"line",value:function(){return{chart:{animations:{easing:"swing"}},dataLabels:{enabled:!1},stroke:{width:5,curve:"straight"},markers:{size:0,hover:{sizeOffset:6}},xaxis:{crosshairs:{width:1}}}}},{key:"sparkline",value:function(t){return this.hideYAxis(),y.extend(t,{grid:{show:!1,padding:{left:0,right:0,top:0,bottom:0}},legend:{show:!1},xaxis:{labels:{show:!1},tooltip:{enabled:!1},axisBorder:{show:!1},axisTicks:{show:!1}},chart:{toolbar:{show:!1},zoom:{enabled:!1}},dataLabels:{enabled:!1}})}},{key:"bar",value:function(){return{chart:{stacked:!1,animations:{easing:"swing"}},plotOptions:{bar:{dataLabels:{position:"center"}}},dataLabels:{style:{colors:["#fff"]},background:{enabled:!1}},stroke:{width:0,lineCap:"round"},fill:{opacity:.85},legend:{markers:{shape:"square",radius:2,size:8}},tooltip:{shared:!1,intersect:!0},xaxis:{tooltip:{enabled:!1},tickPlacement:"between",crosshairs:{width:"barWidth",position:"back",fill:{type:"gradient"},dropShadow:{enabled:!1},stroke:{width:0}}}}}},{key:"funnel",value:function(){return this.hideYAxis(),r(r({},this.bar()),{},{chart:{animations:{easing:"linear",speed:800,animateGradually:{enabled:!1}}},plotOptions:{bar:{horizontal:!0,borderRadiusApplication:"around",borderRadius:0,dataLabels:{position:"center"}}},grid:{show:!1,padding:{left:0,right:0}},xaxis:{labels:{show:!1},tooltip:{enabled:!1},axisBorder:{show:!1},axisTicks:{show:!1}}})}},{key:"candlestick",value:function(){var t=this;return{stroke:{width:1,colors:["#333"]},fill:{opacity:1},dataLabels:{enabled:!1},tooltip:{shared:!0,custom:function(e){var i=e.seriesIndex,a=e.dataPointIndex,s=e.w;return t._getBoxTooltip(s,i,a,["Open","High","","Low","Close"],"candlestick")}},states:{active:{filter:{type:"none"}}},xaxis:{crosshairs:{width:1}}}}},{key:"boxPlot",value:function(){var t=this;return{chart:{animations:{dynamicAnimation:{enabled:!1}}},stroke:{width:1,colors:["#24292e"]},dataLabels:{enabled:!1},tooltip:{shared:!0,custom:function(e){var i=e.seriesIndex,a=e.dataPointIndex,s=e.w;return t._getBoxTooltip(s,i,a,["Minimum","Q1","Median","Q3","Maximum"],"boxPlot")}},markers:{size:5,strokeWidth:1,strokeColors:"#111"},xaxis:{crosshairs:{width:1}}}}},{key:"rangeBar",value:function(){return{chart:{animations:{animateGradually:!1}},stroke:{width:0,lineCap:"square"},plotOptions:{bar:{borderRadius:0,dataLabels:{position:"center"}}},dataLabels:{enabled:!1,formatter:function(t,e){e.ctx;var i=e.seriesIndex,a=e.dataPointIndex,s=e.w,r=function(){var t=s.globals.seriesRangeStart[i][a];return s.globals.seriesRangeEnd[i][a]-t};return s.globals.comboCharts?"rangeBar"===s.config.series[i].type||"rangeArea"===s.config.series[i].type?r():t:r()},background:{enabled:!1},style:{colors:["#fff"]}},markers:{size:10},tooltip:{shared:!1,followCursor:!0,custom:function(t){return t.w.config.plotOptions&&t.w.config.plotOptions.bar&&t.w.config.plotOptions.bar.horizontal?function(t){var e=Y(r(r({},t),{},{isTimeline:!0})),i=e.color,a=e.seriesName,s=e.ylabel,o=e.startVal,n=e.endVal;return F(r(r({},t),{},{color:i,seriesName:a,ylabel:s,start:o,end:n}))}(t):function(t){var e=Y(t),i=e.color,a=e.seriesName,s=e.ylabel,o=e.start,n=e.end;return F(r(r({},t),{},{color:i,seriesName:a,ylabel:s,start:o,end:n}))}(t)}},xaxis:{tickPlacement:"between",tooltip:{enabled:!1},crosshairs:{stroke:{width:0}}}}}},{key:"dumbbell",value:function(t){var e,i;return null!==(e=t.plotOptions.bar)&&void 0!==e&&e.barHeight||(t.plotOptions.bar.barHeight=2),null!==(i=t.plotOptions.bar)&&void 0!==i&&i.columnWidth||(t.plotOptions.bar.columnWidth=2),t}},{key:"area",value:function(){return{stroke:{width:4,fill:{type:"solid",gradient:{inverseColors:!1,shade:"light",type:"vertical",opacityFrom:.65,opacityTo:.5,stops:[0,100,100]}}},fill:{type:"gradient",gradient:{inverseColors:!1,shade:"light",type:"vertical",opacityFrom:.65,opacityTo:.5,stops:[0,100,100]}},markers:{size:0,hover:{sizeOffset:6}},tooltip:{followCursor:!1}}}},{key:"rangeArea",value:function(){return{stroke:{curve:"straight",width:0},fill:{type:"solid",opacity:.6},markers:{size:0},states:{hover:{filter:{type:"none"}},active:{filter:{type:"none"}}},tooltip:{intersect:!1,shared:!0,followCursor:!0,custom:function(t){return function(t){var e=Y(t),i=e.color,a=e.seriesName,s=e.ylabel,o=e.start,n=e.end;return F(r(r({},t),{},{color:i,seriesName:a,ylabel:s,start:o,end:n}))}(t)}}}}},{key:"brush",value:function(t){return y.extend(t,{chart:{toolbar:{autoSelected:"selection",show:!1},zoom:{enabled:!1}},dataLabels:{enabled:!1},stroke:{width:1},tooltip:{enabled:!1},xaxis:{tooltip:{enabled:!1}}})}},{key:"stacked100",value:function(t){t.dataLabels=t.dataLabels||{},t.dataLabels.formatter=t.dataLabels.formatter||void 0;var e=t.dataLabels.formatter;return t.yaxis.forEach((function(e,i){t.yaxis[i].min=0,t.yaxis[i].max=100})),"bar"===t.chart.type&&(t.dataLabels.formatter=e||function(t){return"number"==typeof t&&t?t.toFixed(0)+"%":t}),t}},{key:"stackedBars",value:function(){var t=this.bar();return r(r({},t),{},{plotOptions:r(r({},t.plotOptions),{},{bar:r(r({},t.plotOptions.bar),{},{borderRadiusApplication:"end",borderRadiusWhenStacked:"last"})})})}},{key:"convertCatToNumeric",value:function(t){return t.xaxis.convertedCatToNumeric=!0,t}},{key:"convertCatToNumericXaxis",value:function(t,e,i){t.xaxis.type="numeric",t.xaxis.labels=t.xaxis.labels||{},t.xaxis.labels.formatter=t.xaxis.labels.formatter||function(t){return y.isNumber(t)?Math.floor(t):t};var a=t.xaxis.labels.formatter,s=t.xaxis.categories&&t.xaxis.categories.length?t.xaxis.categories:t.labels;return i&&i.length&&(s=i.map((function(t){return Array.isArray(t)?t:String(t)}))),s&&s.length&&(t.xaxis.labels.formatter=function(t){return y.isNumber(t)?a(s[Math.floor(t)-1]):a(t)}),t.xaxis.categories=[],t.labels=[],t.xaxis.tickAmount=t.xaxis.tickAmount||"dataPoints",t}},{key:"bubble",value:function(){return{dataLabels:{style:{colors:["#fff"]}},tooltip:{shared:!1,intersect:!0},xaxis:{crosshairs:{width:0}},fill:{type:"solid",gradient:{shade:"light",inverse:!0,shadeIntensity:.55,opacityFrom:.4,opacityTo:.8}}}}},{key:"scatter",value:function(){return{dataLabels:{enabled:!1},tooltip:{shared:!1,intersect:!0},markers:{size:6,strokeWidth:1,hover:{sizeOffset:2}}}}},{key:"heatmap",value:function(){return{chart:{stacked:!1},fill:{opacity:1},dataLabels:{style:{colors:["#fff"]}},stroke:{colors:["#fff"]},tooltip:{followCursor:!0,marker:{show:!1},x:{show:!1}},legend:{position:"top",markers:{shape:"square",size:10,offsetY:2}},grid:{padding:{right:20}}}}},{key:"treemap",value:function(){return{chart:{zoom:{enabled:!1}},dataLabels:{style:{fontSize:14,fontWeight:600,colors:["#fff"]}},stroke:{show:!0,width:2,colors:["#fff"]},legend:{show:!1},fill:{gradient:{stops:[0,100]}},tooltip:{followCursor:!0,x:{show:!1}},grid:{padding:{left:0,right:0}},xaxis:{crosshairs:{show:!1},tooltip:{enabled:!1}}}}},{key:"pie",value:function(){return{chart:{toolbar:{show:!1}},plotOptions:{pie:{donut:{labels:{show:!1}}}},dataLabels:{formatter:function(t){return t.toFixed(1)+"%"},style:{colors:["#fff"]},background:{enabled:!1},dropShadow:{enabled:!0}},stroke:{colors:["#fff"]},fill:{opacity:1,gradient:{shade:"light",stops:[0,100]}},tooltip:{theme:"dark",fillSeriesColor:!0},legend:{position:"right"}}}},{key:"donut",value:function(){return{chart:{toolbar:{show:!1}},dataLabels:{formatter:function(t){return t.toFixed(1)+"%"},style:{colors:["#fff"]},background:{enabled:!1},dropShadow:{enabled:!0}},stroke:{colors:["#fff"]},fill:{opacity:1,gradient:{shade:"light",shadeIntensity:.35,stops:[80,100],opacityFrom:1,opacityTo:1}},tooltip:{theme:"dark",fillSeriesColor:!0},legend:{position:"right"}}}},{key:"polarArea",value:function(){return this.opts.yaxis[0].tickAmount=this.opts.yaxis[0].tickAmount?this.opts.yaxis[0].tickAmount:6,{chart:{toolbar:{show:!1}},dataLabels:{formatter:function(t){return t.toFixed(1)+"%"},enabled:!1},stroke:{show:!0,width:2},fill:{opacity:.7},tooltip:{theme:"dark",fillSeriesColor:!0},legend:{position:"right"}}}},{key:"radar",value:function(){return this.opts.yaxis[0].labels.offsetY=this.opts.yaxis[0].labels.offsetY?this.opts.yaxis[0].labels.offsetY:6,{dataLabels:{enabled:!1,style:{fontSize:"11px"}},stroke:{width:2},markers:{size:3,strokeWidth:1,strokeOpacity:1},fill:{opacity:.2},tooltip:{shared:!1,intersect:!0,followCursor:!0},grid:{show:!1},xaxis:{labels:{formatter:function(t){return t},style:{colors:["#a8a8a8"],fontSize:"11px"}},tooltip:{enabled:!1},crosshairs:{show:!1}}}}},{key:"radialBar",value:function(){return{chart:{animations:{dynamicAnimation:{enabled:!0,speed:800}},toolbar:{show:!1}},fill:{gradient:{shade:"dark",shadeIntensity:.4,inverseColors:!1,type:"diagonal2",opacityFrom:1,opacityTo:1,stops:[70,98,100]}},legend:{show:!1,position:"right"},tooltip:{enabled:!1,fillSeriesColor:!0}}}},{key:"_getBoxTooltip",value:function(t,e,i,a,s){var r=t.globals.seriesCandleO[e][i],o=t.globals.seriesCandleH[e][i],n=t.globals.seriesCandleM[e][i],l=t.globals.seriesCandleL[e][i],h=t.globals.seriesCandleC[e][i];return t.config.series[e].type&&t.config.series[e].type!==s?'
\n '.concat(t.config.series[e].name?t.config.series[e].name:"series-"+(e+1),": ").concat(t.globals.series[e][i],"\n
"):'
')+"
".concat(a[0],': ')+r+"
"+"
".concat(a[1],': ')+o+"
"+(n?"
".concat(a[2],': ')+n+"
":"")+"
".concat(a[3],': ')+l+"
"+"
".concat(a[4],': ')+h+"
"}}]),t}(),H=function(){function t(e){n(this,t),this.opts=e}return h(t,[{key:"init",value:function(t){var e=t.responsiveOverride,i=this.opts,a=new M,s=new R(i);this.chartType=i.chart.type,i=this.extendYAxis(i),i=this.extendAnnotations(i);var r=a.init(),n={};if(i&&"object"===o(i)){var l,h,c,d,g,u,p,f,x={};x=-1!==["line","area","bar","candlestick","boxPlot","rangeBar","rangeArea","bubble","scatter","heatmap","treemap","pie","polarArea","donut","radar","radialBar"].indexOf(i.chart.type)?s[i.chart.type]():s.line(),null!==(l=i.plotOptions)&&void 0!==l&&null!==(h=l.bar)&&void 0!==h&&h.isFunnel&&(x=s.funnel()),i.chart.stacked&&"bar"===i.chart.type&&(x=s.stackedBars()),null!==(c=i.chart.brush)&&void 0!==c&&c.enabled&&(x=s.brush(x)),i.chart.stacked&&"100%"===i.chart.stackType&&(i=s.stacked100(i)),null!==(d=i.plotOptions)&&void 0!==d&&null!==(g=d.bar)&&void 0!==g&&g.isDumbbell&&(i=s.dumbbell(i)),this.checkForDarkTheme(window.Apex),this.checkForDarkTheme(i),i.xaxis=i.xaxis||window.Apex.xaxis||{},e||(i.xaxis.convertedCatToNumeric=!1),(null!==(u=(i=this.checkForCatToNumericXAxis(this.chartType,x,i)).chart.sparkline)&&void 0!==u&&u.enabled||null!==(p=window.Apex.chart)&&void 0!==p&&null!==(f=p.sparkline)&&void 0!==f&&f.enabled)&&(x=s.sparkline(x)),n=y.extend(r,x)}var b=y.extend(n,window.Apex);return r=y.extend(b,i),this.handleUserInputErrors(r)}},{key:"checkForCatToNumericXAxis",value:function(t,e,i){var a,s,r=new R(i),o=("bar"===t||"boxPlot"===t)&&(null===(a=i.plotOptions)||void 0===a||null===(s=a.bar)||void 0===s?void 0:s.horizontal),n="pie"===t||"polarArea"===t||"donut"===t||"radar"===t||"radialBar"===t||"heatmap"===t,l="datetime"!==i.xaxis.type&&"numeric"!==i.xaxis.type,h=i.xaxis.tickPlacement?i.xaxis.tickPlacement:e.xaxis&&e.xaxis.tickPlacement;return o||n||!l||"between"===h||(i=r.convertCatToNumeric(i)),i}},{key:"extendYAxis",value:function(t,e){var i=new M;(void 0===t.yaxis||!t.yaxis||Array.isArray(t.yaxis)&&0===t.yaxis.length)&&(t.yaxis={}),t.yaxis.constructor!==Array&&window.Apex.yaxis&&window.Apex.yaxis.constructor!==Array&&(t.yaxis=y.extend(t.yaxis,window.Apex.yaxis)),t.yaxis.constructor!==Array?t.yaxis=[y.extend(i.yAxis,t.yaxis)]:t.yaxis=y.extendArray(t.yaxis,i.yAxis);var a=!1;t.yaxis.forEach((function(t){t.logarithmic&&(a=!0)}));var s=t.series;return e&&!s&&(s=e.config.series),a&&s.length!==t.yaxis.length&&s.length&&(t.yaxis=s.map((function(e,a){if(e.name||(s[a].name="series-".concat(a+1)),t.yaxis[a])return t.yaxis[a].seriesName=s[a].name,t.yaxis[a];var r=y.extend(i.yAxis,t.yaxis[0]);return r.show=!1,r}))),a&&s.length>1&&s.length!==t.yaxis.length&&console.warn("A multi-series logarithmic chart should have equal number of series and y-axes"),t}},{key:"extendAnnotations",value:function(t){return void 0===t.annotations&&(t.annotations={},t.annotations.yaxis=[],t.annotations.xaxis=[],t.annotations.points=[]),t=this.extendYAxisAnnotations(t),t=this.extendXAxisAnnotations(t),this.extendPointAnnotations(t)}},{key:"extendYAxisAnnotations",value:function(t){var e=new M;return t.annotations.yaxis=y.extendArray(void 0!==t.annotations.yaxis?t.annotations.yaxis:[],e.yAxisAnnotation),t}},{key:"extendXAxisAnnotations",value:function(t){var e=new M;return t.annotations.xaxis=y.extendArray(void 0!==t.annotations.xaxis?t.annotations.xaxis:[],e.xAxisAnnotation),t}},{key:"extendPointAnnotations",value:function(t){var e=new M;return t.annotations.points=y.extendArray(void 0!==t.annotations.points?t.annotations.points:[],e.pointAnnotation),t}},{key:"checkForDarkTheme",value:function(t){t.theme&&"dark"===t.theme.mode&&(t.tooltip||(t.tooltip={}),"light"!==t.tooltip.theme&&(t.tooltip.theme="dark"),t.chart.foreColor||(t.chart.foreColor="#f6f7f8"),t.chart.background||(t.chart.background="#424242"),t.theme.palette||(t.theme.palette="palette4"))}},{key:"handleUserInputErrors",value:function(t){var e=t;if(e.tooltip.shared&&e.tooltip.intersect)throw new Error("tooltip.shared cannot be enabled when tooltip.intersect is true. Turn off any other option by setting it to false.");if("bar"===e.chart.type&&e.plotOptions.bar.horizontal){if(e.yaxis.length>1)throw new Error("Multiple Y Axis for bars are not supported. Switch to column chart by setting plotOptions.bar.horizontal=false");e.yaxis[0].reversed&&(e.yaxis[0].opposite=!0),e.xaxis.tooltip.enabled=!1,e.yaxis[0].tooltip.enabled=!1,e.chart.zoom.enabled=!1}return"bar"!==e.chart.type&&"rangeBar"!==e.chart.type||e.tooltip.shared&&"barWidth"===e.xaxis.crosshairs.width&&e.series.length>1&&(e.xaxis.crosshairs.width="tickWidth"),"candlestick"!==e.chart.type&&"boxPlot"!==e.chart.type||e.yaxis[0].reversed&&(console.warn("Reversed y-axis in ".concat(e.chart.type," chart is not supported.")),e.yaxis[0].reversed=!1),e}}]),t}(),D=function(){function t(){n(this,t)}return h(t,[{key:"initGlobalVars",value:function(t){t.series=[],t.seriesCandleO=[],t.seriesCandleH=[],t.seriesCandleM=[],t.seriesCandleL=[],t.seriesCandleC=[],t.seriesRangeStart=[],t.seriesRangeEnd=[],t.seriesRange=[],t.seriesPercent=[],t.seriesGoals=[],t.seriesX=[],t.seriesZ=[],t.seriesNames=[],t.seriesTotals=[],t.seriesLog=[],t.seriesColors=[],t.stackedSeriesTotals=[],t.seriesXvalues=[],t.seriesYvalues=[],t.labels=[],t.hasXaxisGroups=!1,t.groups=[],t.hasSeriesGroups=!1,t.seriesGroups=[],t.categoryLabels=[],t.timescaleLabels=[],t.noLabelsProvided=!1,t.resizeTimer=null,t.selectionResizeTimer=null,t.delayedElements=[],t.pointsArray=[],t.dataLabelsRects=[],t.isXNumeric=!1,t.skipLastTimelinelabel=!1,t.skipFirstTimelinelabel=!1,t.isDataXYZ=!1,t.isMultiLineX=!1,t.isMultipleYAxis=!1,t.maxY=-Number.MAX_VALUE,t.minY=Number.MIN_VALUE,t.minYArr=[],t.maxYArr=[],t.maxX=-Number.MAX_VALUE,t.minX=Number.MAX_VALUE,t.initialMaxX=-Number.MAX_VALUE,t.initialMinX=Number.MAX_VALUE,t.maxDate=0,t.minDate=Number.MAX_VALUE,t.minZ=Number.MAX_VALUE,t.maxZ=-Number.MAX_VALUE,t.minXDiff=Number.MAX_VALUE,t.yAxisScale=[],t.xAxisScale=null,t.xAxisTicksPositions=[],t.yLabelsCoords=[],t.yTitleCoords=[],t.barPadForNumericAxis=0,t.padHorizontal=0,t.xRange=0,t.yRange=[],t.zRange=0,t.dataPoints=0,t.xTickAmount=0}},{key:"globalVars",value:function(t){return{chartID:null,cuid:null,events:{beforeMount:[],mounted:[],updated:[],clicked:[],selection:[],dataPointSelection:[],zoomed:[],scrolled:[]},colors:[],clientX:null,clientY:null,fill:{colors:[]},stroke:{colors:[]},dataLabels:{style:{colors:[]}},radarPolygons:{fill:{colors:[]}},markers:{colors:[],size:t.markers.size,largestSize:0},animationEnded:!1,isTouchDevice:"ontouchstart"in window||navigator.msMaxTouchPoints,isDirty:!1,isExecCalled:!1,initialConfig:null,initialSeries:[],lastXAxis:[],lastYAxis:[],columnSeries:null,labels:[],timescaleLabels:[],noLabelsProvided:!1,allSeriesCollapsed:!1,collapsedSeries:[],collapsedSeriesIndices:[],ancillaryCollapsedSeries:[],ancillaryCollapsedSeriesIndices:[],risingSeries:[],dataFormatXNumeric:!1,capturedSeriesIndex:-1,capturedDataPointIndex:-1,selectedDataPoints:[],goldenPadding:35,invalidLogScale:!1,ignoreYAxisIndexes:[],yAxisSameScaleIndices:[],maxValsInArrayIndex:0,radialSize:0,selection:void 0,zoomEnabled:"zoom"===t.chart.toolbar.autoSelected&&t.chart.toolbar.tools.zoom&&t.chart.zoom.enabled,panEnabled:"pan"===t.chart.toolbar.autoSelected&&t.chart.toolbar.tools.pan,selectionEnabled:"selection"===t.chart.toolbar.autoSelected&&t.chart.toolbar.tools.selection,yaxis:null,mousedown:!1,lastClientPosition:{},visibleXRange:void 0,yValueDecimal:0,total:0,SVGNS:"http://www.w3.org/2000/svg",svgWidth:0,svgHeight:0,noData:!1,locale:{},dom:{},memory:{methodsToExec:[]},shouldAnimate:!0,skipLastTimelinelabel:!1,skipFirstTimelinelabel:!1,delayedElements:[],axisCharts:!0,isDataXYZ:!1,resized:!1,resizeTimer:null,comboCharts:!1,dataChanged:!1,previousPaths:[],allSeriesHasEqualX:!0,pointsArray:[],dataLabelsRects:[],lastDrawnDataLabelsIndexes:[],hasNullValues:!1,easing:null,zoomed:!1,gridWidth:0,gridHeight:0,rotateXLabels:!1,defaultLabels:!1,xLabelFormatter:void 0,yLabelFormatters:[],xaxisTooltipFormatter:void 0,ttKeyFormatter:void 0,ttVal:void 0,ttZFormatter:void 0,LINE_HEIGHT_RATIO:1.618,xAxisLabelsHeight:0,xAxisGroupLabelsHeight:0,xAxisLabelsWidth:0,yAxisLabelsWidth:0,scaleX:1,scaleY:1,translateX:0,translateY:0,translateYAxisX:[],yAxisWidths:[],translateXAxisY:0,translateXAxisX:0,tooltip:null}}},{key:"init",value:function(t){var e=this.globalVars(t);return this.initGlobalVars(e),e.initialConfig=y.extend({},t),e.initialSeries=y.clone(t.series),e.lastXAxis=y.clone(e.initialConfig.xaxis),e.lastYAxis=y.clone(e.initialConfig.yaxis),e}}]),t}(),O=function(){function t(e){n(this,t),this.opts=e}return h(t,[{key:"init",value:function(){var t=new H(this.opts).init({responsiveOverride:!1});return{config:t,globals:(new D).init(t)}}}]),t}(),N=function(){function t(e){n(this,t),this.ctx=e,this.w=e.w,this.opts=null,this.seriesIndex=0}return h(t,[{key:"clippedImgArea",value:function(t){var e=this.w,i=e.config,a=parseInt(e.globals.gridWidth,10),s=parseInt(e.globals.gridHeight,10),r=a>s?a:s,o=t.image,n=0,l=0;void 0===t.width&&void 0===t.height?void 0!==i.fill.image.width&&void 0!==i.fill.image.height?(n=i.fill.image.width+1,l=i.fill.image.height):(n=r+1,l=r):(n=t.width,l=t.height);var h=document.createElementNS(e.globals.SVGNS,"pattern");A.setAttrs(h,{id:t.patternID,patternUnits:t.patternUnits?t.patternUnits:"userSpaceOnUse",width:n+"px",height:l+"px"});var c=document.createElementNS(e.globals.SVGNS,"image");h.appendChild(c),c.setAttributeNS(window.SVG.xlink,"href",o),A.setAttrs(c,{x:0,y:0,preserveAspectRatio:"none",width:n+"px",height:l+"px"}),c.style.opacity=t.opacity,e.globals.dom.elDefs.node.appendChild(h)}},{key:"getSeriesIndex",value:function(t){var e=this.w,i=e.config.chart.type;return("bar"===i||"rangeBar"===i)&&e.config.plotOptions.bar.distributed||"heatmap"===i||"treemap"===i?this.seriesIndex=t.seriesNumber:this.seriesIndex=t.seriesNumber%e.globals.series.length,this.seriesIndex}},{key:"fillPath",value:function(t){var e=this.w;this.opts=t;var i,a,s,r=this.w.config;this.seriesIndex=this.getSeriesIndex(t);var o=this.getFillColors()[this.seriesIndex];void 0!==e.globals.seriesColors[this.seriesIndex]&&(o=e.globals.seriesColors[this.seriesIndex]),"function"==typeof o&&(o=o({seriesIndex:this.seriesIndex,dataPointIndex:t.dataPointIndex,value:t.value,w:e}));var n=t.fillType?t.fillType:this.getFillType(this.seriesIndex),l=Array.isArray(r.fill.opacity)?r.fill.opacity[this.seriesIndex]:r.fill.opacity;t.color&&(o=t.color),o||(o="#fff",console.warn("undefined color - ApexCharts"));var h=o;if(-1===o.indexOf("rgb")?o.length<9&&(h=y.hexToRgba(o,l)):o.indexOf("rgba")>-1&&(l=y.getOpacityFromRGBA(o)),t.opacity&&(l=t.opacity),"pattern"===n&&(a=this.handlePatternFill({fillConfig:t.fillConfig,patternFill:a,fillColor:o,fillOpacity:l,defaultColor:h})),"gradient"===n&&(s=this.handleGradientFill({fillConfig:t.fillConfig,fillColor:o,fillOpacity:l,i:this.seriesIndex})),"image"===n){var c=r.fill.image.src,d=t.patternID?t.patternID:"";this.clippedImgArea({opacity:l,image:Array.isArray(c)?t.seriesNumber-1&&(u=y.getOpacityFromRGBA(g));var p=void 0===o.gradient.opacityTo?i:Array.isArray(o.gradient.opacityTo)?o.gradient.opacityTo[s]:o.gradient.opacityTo;if(void 0===o.gradient.gradientToColors||0===o.gradient.gradientToColors.length)n="dark"===o.gradient.shade?c.shadeColor(-1*parseFloat(o.gradient.shadeIntensity),e.indexOf("rgb")>-1?y.rgb2hex(e):e):c.shadeColor(parseFloat(o.gradient.shadeIntensity),e.indexOf("rgb")>-1?y.rgb2hex(e):e);else if(o.gradient.gradientToColors[l.seriesNumber]){var f=o.gradient.gradientToColors[l.seriesNumber];n=f,f.indexOf("rgba")>-1&&(p=y.getOpacityFromRGBA(f))}else n=e;if(o.gradient.gradientFrom&&(g=o.gradient.gradientFrom),o.gradient.gradientTo&&(n=o.gradient.gradientTo),o.gradient.inverseColors){var x=g;g=n,n=x}return g.indexOf("rgb")>-1&&(g=y.rgb2hex(g)),n.indexOf("rgb")>-1&&(n=y.rgb2hex(n)),h.drawGradient(d,g,n,u,p,l.size,o.gradient.stops,o.gradient.colorStops,s)}}]),t}(),W=function(){function t(e,i){n(this,t),this.ctx=e,this.w=e.w}return h(t,[{key:"setGlobalMarkerSize",value:function(){var t=this.w;if(t.globals.markers.size=Array.isArray(t.config.markers.size)?t.config.markers.size:[t.config.markers.size],t.globals.markers.size.length>0){if(t.globals.markers.size.length4&&void 0!==arguments[4]&&arguments[4],o=this.w,n=e,l=t,h=null,c=new A(this.ctx),d=o.config.markers.discrete&&o.config.markers.discrete.length;if((o.globals.markers.size[e]>0||r||d)&&(h=c.group({class:r||d?"":"apexcharts-series-markers"})).attr("clip-path","url(#gridRectMarkerMask".concat(o.globals.cuid,")")),Array.isArray(l.x))for(var g=0;g0:o.config.markers.size>0)||r||d){y.isNumber(l.y[g])?p+=" w".concat(y.randomId()):p="apexcharts-nullpoint";var f=this.getMarkerConfig({cssClass:p,seriesIndex:e,dataPointIndex:u});o.config.series[n].data[u]&&(o.config.series[n].data[u].fillColor&&(f.pointFillColor=o.config.series[n].data[u].fillColor),o.config.series[n].data[u].strokeColor&&(f.pointStrokeColor=o.config.series[n].data[u].strokeColor)),a&&(f.pSize=a),(l.x[g]<0||l.x[g]>o.globals.gridWidth||l.y[g]<-o.globals.markers.largestSize||l.y[g]>o.globals.gridHeight+o.globals.markers.largestSize)&&(f.pSize=0),(s=c.drawMarker(l.x[g],l.y[g],f)).attr("rel",u),s.attr("j",u),s.attr("index",e),s.node.setAttribute("default-marker-size",f.pSize),new k(this.ctx).setSelectionFilter(s,e,u),this.addEvents(s),h&&h.add(s)}else void 0===o.globals.pointsArray[e]&&(o.globals.pointsArray[e]=[]),o.globals.pointsArray[e].push([l.x[g],l.y[g]])}return h}},{key:"getMarkerConfig",value:function(t){var e=t.cssClass,i=t.seriesIndex,a=t.dataPointIndex,s=void 0===a?null:a,r=t.finishRadius,o=void 0===r?null:r,n=this.w,l=this.getMarkerStyle(i),h=n.globals.markers.size[i],c=n.config.markers;return null!==s&&c.discrete.length&&c.discrete.map((function(t){t.seriesIndex===i&&t.dataPointIndex===s&&(l.pointStrokeColor=t.strokeColor,l.pointFillColor=t.fillColor,h=t.size,l.pointShape=t.shape)})),{pSize:null===o?h:o,pRadius:c.radius,width:Array.isArray(c.width)?c.width[i]:c.width,height:Array.isArray(c.height)?c.height[i]:c.height,pointStrokeWidth:Array.isArray(c.strokeWidth)?c.strokeWidth[i]:c.strokeWidth,pointStrokeColor:l.pointStrokeColor,pointFillColor:l.pointFillColor,shape:l.pointShape||(Array.isArray(c.shape)?c.shape[i]:c.shape),class:e,pointStrokeOpacity:Array.isArray(c.strokeOpacity)?c.strokeOpacity[i]:c.strokeOpacity,pointStrokeDashArray:Array.isArray(c.strokeDashArray)?c.strokeDashArray[i]:c.strokeDashArray,pointFillOpacity:Array.isArray(c.fillOpacity)?c.fillOpacity[i]:c.fillOpacity,seriesIndex:i}}},{key:"addEvents",value:function(t){var e=this.w,i=new A(this.ctx);t.node.addEventListener("mouseenter",i.pathMouseEnter.bind(this.ctx,t)),t.node.addEventListener("mouseleave",i.pathMouseLeave.bind(this.ctx,t)),t.node.addEventListener("mousedown",i.pathMouseDown.bind(this.ctx,t)),t.node.addEventListener("click",e.config.markers.onClick),t.node.addEventListener("dblclick",e.config.markers.onDblClick),t.node.addEventListener("touchstart",i.pathMouseDown.bind(this.ctx,t),{passive:!0})}},{key:"getMarkerStyle",value:function(t){var e=this.w,i=e.globals.markers.colors,a=e.config.markers.strokeColor||e.config.markers.strokeColors;return{pointStrokeColor:Array.isArray(a)?a[t]:a,pointFillColor:Array.isArray(i)?i[t]:i}}}]),t}(),B=function(){function t(e){n(this,t),this.ctx=e,this.w=e.w,this.initialAnim=this.w.config.chart.animations.enabled,this.dynamicAnim=this.initialAnim&&this.w.config.chart.animations.dynamicAnimation.enabled}return h(t,[{key:"draw",value:function(t,e,i){var a=this.w,s=new A(this.ctx),r=i.realIndex,o=i.pointsPos,n=i.zRatio,l=i.elParent,h=s.group({class:"apexcharts-series-markers apexcharts-series-".concat(a.config.chart.type)});if(h.attr("clip-path","url(#gridRectMarkerMask".concat(a.globals.cuid,")")),Array.isArray(o.x))for(var c=0;cf.maxBubbleRadius&&(p=f.maxBubbleRadius)}a.config.chart.animations.enabled||(u=p);var x=o.x[c],b=o.y[c];if(u=u||0,null!==b&&void 0!==a.globals.series[r][d]||(g=!1),g){var v=this.drawPoint(x,b,u,p,r,d,e);h.add(v)}l.add(h)}}},{key:"drawPoint",value:function(t,e,i,a,s,r,o){var n=this.w,l=s,h=new w(this.ctx),c=new k(this.ctx),d=new N(this.ctx),g=new W(this.ctx),u=new A(this.ctx),p=g.getMarkerConfig({cssClass:"apexcharts-marker",seriesIndex:l,dataPointIndex:r,finishRadius:"bubble"===n.config.chart.type||n.globals.comboCharts&&n.config.series[s]&&"bubble"===n.config.series[s].type?a:null});a=p.pSize;var f,x=d.fillPath({seriesNumber:s,dataPointIndex:r,color:p.pointFillColor,patternUnits:"objectBoundingBox",value:n.globals.series[s][o]});if("circle"===p.shape?f=u.drawCircle(i):"square"!==p.shape&&"rect"!==p.shape||(f=u.drawRect(0,0,p.width-p.pointStrokeWidth/2,p.height-p.pointStrokeWidth/2,p.pRadius)),n.config.series[l].data[r]&&n.config.series[l].data[r].fillColor&&(x=n.config.series[l].data[r].fillColor),f.attr({x:t-p.width/2-p.pointStrokeWidth/2,y:e-p.height/2-p.pointStrokeWidth/2,cx:t,cy:e,fill:x,"fill-opacity":p.pointFillOpacity,stroke:p.pointStrokeColor,r:a,"stroke-width":p.pointStrokeWidth,"stroke-dasharray":p.pointStrokeDashArray,"stroke-opacity":p.pointStrokeOpacity}),n.config.chart.dropShadow.enabled){var b=n.config.chart.dropShadow;c.dropShadow(f,b,s)}if(!this.initialAnim||n.globals.dataChanged||n.globals.resized)n.globals.animationEnded=!0;else{var v=n.config.chart.animations.speed;h.animateMarker(f,0,"circle"===p.shape?a:{width:p.width,height:p.height},v,n.globals.easing,(function(){window.setTimeout((function(){h.animationCompleted(f)}),100)}))}if(n.globals.dataChanged&&"circle"===p.shape)if(this.dynamicAnim){var m,y,S,C,L=n.config.chart.animations.dynamicAnimation.speed;null!=(C=n.globals.previousPaths[s]&&n.globals.previousPaths[s][o])&&(m=C.x,y=C.y,S=void 0!==C.r?C.r:a);for(var P=0;Pn.globals.gridHeight+d&&(e=n.globals.gridHeight+d/2),void 0===n.globals.dataLabelsRects[a]&&(n.globals.dataLabelsRects[a]=[]),n.globals.dataLabelsRects[a].push({x:t,y:e,width:c,height:d});var g=n.globals.dataLabelsRects[a].length-2,u=void 0!==n.globals.lastDrawnDataLabelsIndexes[a]?n.globals.lastDrawnDataLabelsIndexes[a][n.globals.lastDrawnDataLabelsIndexes[a].length-1]:0;if(void 0!==n.globals.dataLabelsRects[a][g]){var p=n.globals.dataLabelsRects[a][u];(t>p.x+p.width||e>p.y+p.height||e+de.globals.gridWidth+f.textRects.width+30)&&(n="");var x=e.globals.dataLabels.style.colors[r];(("bar"===e.config.chart.type||"rangeBar"===e.config.chart.type)&&e.config.plotOptions.bar.distributed||e.config.dataLabels.distributed)&&(x=e.globals.dataLabels.style.colors[o]),"function"==typeof x&&(x=x({series:e.globals.series,seriesIndex:r,dataPointIndex:o,w:e})),g&&(x=g);var b=d.offsetX,v=d.offsetY;if("bar"!==e.config.chart.type&&"rangeBar"!==e.config.chart.type||(b=0,v=0),f.drawnextLabel){var m=i.drawText({width:100,height:parseInt(d.style.fontSize,10),x:a+b,y:s+v,foreColor:x,textAnchor:l||d.textAnchor,text:n,fontSize:h||d.style.fontSize,fontFamily:d.style.fontFamily,fontWeight:d.style.fontWeight||"normal"});if(m.attr({class:"apexcharts-datalabel",cx:a,cy:s}),d.dropShadow.enabled){var y=d.dropShadow;new k(this.ctx).dropShadow(m,y)}c.add(m),void 0===e.globals.lastDrawnDataLabelsIndexes[r]&&(e.globals.lastDrawnDataLabelsIndexes[r]=[]),e.globals.lastDrawnDataLabelsIndexes[r].push(o)}}}},{key:"addBackgroundToDataLabel",value:function(t,e){var i=this.w,a=i.config.dataLabels.background,s=a.padding,r=a.padding/2,o=e.width,n=e.height,l=new A(this.ctx).drawRect(e.x-s,e.y-r/2,o+2*s,n+r,a.borderRadius,"transparent"===i.config.chart.background?"#fff":i.config.chart.background,a.opacity,a.borderWidth,a.borderColor);return a.dropShadow.enabled&&new k(this.ctx).dropShadow(l,a.dropShadow),l}},{key:"dataLabelsBackground",value:function(){var t=this.w;if("bubble"!==t.config.chart.type)for(var e=t.globals.dom.baseEl.querySelectorAll(".apexcharts-datalabels text"),i=0;i0&&void 0!==arguments[0])||arguments[0],e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],a=this.w,s=y.clone(a.globals.initialSeries);a.globals.previousPaths=[],i?(a.globals.collapsedSeries=[],a.globals.ancillaryCollapsedSeries=[],a.globals.collapsedSeriesIndices=[],a.globals.ancillaryCollapsedSeriesIndices=[]):s=this.emptyCollapsedSeries(s),a.config.series=s,t&&(e&&(a.globals.zoomed=!1,this.ctx.updateHelpers.revertDefaultAxisMinMax()),this.ctx.updateHelpers._updateSeries(s,a.config.chart.animations.dynamicAnimation.enabled))}},{key:"emptyCollapsedSeries",value:function(t){for(var e=this.w,i=0;i-1&&(t[i].data=[]);return t}},{key:"toggleSeriesOnHover",value:function(t,e){var i=this.w;e||(e=t.target);var a=i.globals.dom.baseEl.querySelectorAll(".apexcharts-series, .apexcharts-datalabels");if("mousemove"===t.type){var s=parseInt(e.getAttribute("rel"),10)-1,r=null,o=null;i.globals.axisCharts||"radialBar"===i.config.chart.type?i.globals.axisCharts?(r=i.globals.dom.baseEl.querySelector(".apexcharts-series[data\\:realIndex='".concat(s,"']")),o=i.globals.dom.baseEl.querySelector(".apexcharts-datalabels[data\\:realIndex='".concat(s,"']"))):r=i.globals.dom.baseEl.querySelector(".apexcharts-series[rel='".concat(s+1,"']")):r=i.globals.dom.baseEl.querySelector(".apexcharts-series[rel='".concat(s+1,"'] path"));for(var n=0;n=t.from&&a<=t.to&&s[e].classList.remove(i.legendInactiveClass)}}(a.config.plotOptions.heatmap.colorScale.ranges[o])}else"mouseout"===t.type&&r("remove")}},{key:"getActiveConfigSeriesIndex",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"asc",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],i=this.w,a=0;if(i.config.series.length>1)for(var s=i.config.series.map((function(t,a){return t.data&&t.data.length>0&&-1===i.globals.collapsedSeriesIndices.indexOf(a)&&(!i.globals.comboCharts||0===e.length||e.length&&e.indexOf(i.config.series[a].type)>-1)?a:-1})),r="asc"===t?0:s.length-1;"asc"===t?r=0;"asc"===t?r++:r--)if(-1!==s[r]){a=s[r];break}return a}},{key:"getBarSeriesIndices",value:function(){return this.w.globals.comboCharts?this.w.config.series.map((function(t,e){return"bar"===t.type||"column"===t.type?e:-1})).filter((function(t){return-1!==t})):this.w.config.series.map((function(t,e){return e}))}},{key:"getPreviousPaths",value:function(){var t=this.w;function e(e,i,a){for(var s=e[i].childNodes,r={type:a,paths:[],realIndex:e[i].getAttribute("data:realIndex")},o=0;o0)for(var a=function(e){for(var i=t.globals.dom.baseEl.querySelectorAll(".apexcharts-".concat(t.config.chart.type," .apexcharts-series[data\\:realIndex='").concat(e,"'] rect")),a=[],s=function(t){var e=function(e){return i[t].getAttribute(e)},s={x:parseFloat(e("x")),y:parseFloat(e("y")),width:parseFloat(e("width")),height:parseFloat(e("height"))};a.push({rect:s,color:i[t].getAttribute("color")})},r=0;r0)for(var a=0;a0?t:[]}));return t}}]),t}(),j=function(){function t(e){n(this,t),this.ctx=e,this.w=e.w,this.twoDSeries=[],this.threeDSeries=[],this.twoDSeriesX=[],this.seriesGoals=[],this.coreUtils=new S(this.ctx)}return h(t,[{key:"isMultiFormat",value:function(){return this.isFormatXY()||this.isFormat2DArray()}},{key:"isFormatXY",value:function(){var t=this.w.config.series.slice(),e=new V(this.ctx);if(this.activeSeriesIndex=e.getActiveConfigSeriesIndex(),void 0!==t[this.activeSeriesIndex].data&&t[this.activeSeriesIndex].data.length>0&&null!==t[this.activeSeriesIndex].data[0]&&void 0!==t[this.activeSeriesIndex].data[0].x&&null!==t[this.activeSeriesIndex].data[0])return!0}},{key:"isFormat2DArray",value:function(){var t=this.w.config.series.slice(),e=new V(this.ctx);if(this.activeSeriesIndex=e.getActiveConfigSeriesIndex(),void 0!==t[this.activeSeriesIndex].data&&t[this.activeSeriesIndex].data.length>0&&void 0!==t[this.activeSeriesIndex].data[0]&&null!==t[this.activeSeriesIndex].data[0]&&t[this.activeSeriesIndex].data[0].constructor===Array)return!0}},{key:"handleFormat2DArray",value:function(t,e){for(var i=this.w.config,a=this.w.globals,s="boxPlot"===i.chart.type||"boxPlot"===i.series[e].type,r=0;r=5?this.twoDSeries.push(y.parseNumber(t[e].data[r][4])):this.twoDSeries.push(y.parseNumber(t[e].data[r][1])),a.dataFormatXNumeric=!0),"datetime"===i.xaxis.type){var o=new Date(t[e].data[r][0]);o=new Date(o).getTime(),this.twoDSeriesX.push(o)}else this.twoDSeriesX.push(t[e].data[r][0]);for(var n=0;n-1&&(r=this.activeSeriesIndex);for(var o=0;o1&&void 0!==arguments[1]?arguments[1]:this.ctx,s=this.w.config,r=this.w.globals,o=new X(a),n=s.labels.length>0?s.labels.slice():s.xaxis.categories.slice();if(r.isRangeBar="rangeBar"===s.chart.type&&r.isBarHorizontal,r.hasXaxisGroups="category"===s.xaxis.type&&s.xaxis.group.groups.length>0,r.hasXaxisGroups&&(r.groups=s.xaxis.group.groups),r.hasSeriesGroups=null===(e=t[0])||void 0===e?void 0:e.group,r.hasSeriesGroups){var l=[],h=b(new Set(t.map((function(t){return t.group}))));t.forEach((function(t,e){var i=h.indexOf(t.group);l[i]||(l[i]=[]),l[i].push(t.name)})),r.seriesGroups=l}for(var c=function(){for(var t=0;t0&&(this.twoDSeriesX=n,r.seriesX.push(this.twoDSeriesX))),r.labels.push(this.twoDSeriesX);var g=t[d].data.map((function(t){return y.parseNumber(t)}));r.series.push(g)}r.seriesZ.push(this.threeDSeries),void 0!==t[d].name?r.seriesNames.push(t[d].name):r.seriesNames.push("series-"+parseInt(d+1,10)),void 0!==t[d].color?r.seriesColors.push(t[d].color):r.seriesColors.push(void 0)}return this.w}},{key:"parseDataNonAxisCharts",value:function(t){var e=this.w.globals,i=this.w.config;e.series=t.slice(),e.seriesNames=i.labels.slice();for(var a=0;a0?i.labels=e.xaxis.categories:e.labels.length>0?i.labels=e.labels.slice():this.fallbackToCategory?(i.labels=i.labels[0],i.seriesRange.length&&(i.seriesRange.map((function(t){t.forEach((function(t){i.labels.indexOf(t.x)<0&&t.x&&i.labels.push(t.x)}))})),i.labels=Array.from(new Set(i.labels.map(JSON.stringify)),JSON.parse)),e.xaxis.convertedCatToNumeric&&(new R(e).convertCatToNumericXaxis(e,this.ctx,i.seriesX[0]),this._generateExternalLabels(t))):this._generateExternalLabels(t)}},{key:"_generateExternalLabels",value:function(t){var e=this.w.globals,i=this.w.config,a=[];if(e.axisCharts){if(e.series.length>0)if(this.isFormatXY())for(var s=i.series.map((function(t,e){return t.data.filter((function(t,e,i){return i.findIndex((function(e){return e.x===t.x}))===e}))})),r=s.reduce((function(t,e,i,a){return a[t].length>e.length?t:i}),0),o=0;o4&&void 0!==arguments[4]?arguments[4]:[],n=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"12px",l=!(arguments.length>6&&void 0!==arguments[6])||arguments[6],h=this.w,c=void 0===t[a]?"":t[a],d=c,g=h.globals.xLabelFormatter,u=h.config.xaxis.labels.formatter,p=!1,f=new E(this.ctx),x=c;l&&(d=f.xLabelFormat(g,c,x,{i:a,dateFormatter:new X(this.ctx).formatDate,w:h}),void 0!==u&&(d=u(c,t[a],{i:a,dateFormatter:new X(this.ctx).formatDate,w:h}))),e.length>0?(s=e[a].unit,r=null,e.forEach((function(t){"month"===t.unit?r="year":"day"===t.unit?r="month":"hour"===t.unit?r="day":"minute"===t.unit&&(r="hour")})),p=r===s,i=e[a].position,d=e[a].value):"datetime"===h.config.xaxis.type&&void 0===u&&(d=""),void 0===d&&(d=""),d=Array.isArray(d)?d:d.toString();var b=new A(this.ctx),v={};v=h.globals.rotateXLabels&&l?b.getTextRects(d,parseInt(n,10),null,"rotate(".concat(h.config.xaxis.labels.rotate," 0 0)"),!1):b.getTextRects(d,parseInt(n,10));var m=!h.config.xaxis.labels.showDuplicates&&this.ctx.timeScale;return!Array.isArray(d)&&(0===d.indexOf("NaN")||0===d.toLowerCase().indexOf("invalid")||d.toLowerCase().indexOf("infinity")>=0||o.indexOf(d)>=0&&m)&&(d=""),{x:i,text:d,textRect:v,isBold:p}}},{key:"checkLabelBasedOnTickamount",value:function(t,e,i){var a=this.w,s=a.config.xaxis.tickAmount;return"dataPoints"===s&&(s=Math.round(a.globals.gridWidth/120)),s>i||t%Math.round(i/(s+1))==0||(e.text=""),e}},{key:"checkForOverflowingLabels",value:function(t,e,i,a,s){var r=this.w;if(0===t&&r.globals.skipFirstTimelinelabel&&(e.text=""),t===i-1&&r.globals.skipLastTimelinelabel&&(e.text=""),r.config.xaxis.labels.hideOverlappingLabels&&a.length>0){var o=s[s.length-1];e.x0){!0===n.config.yaxis[s].opposite&&(t+=a.width);for(var c=e;c>=0;c--){var d=h+e/10+n.config.yaxis[s].labels.offsetY-1;n.globals.isBarHorizontal&&(d=r*c),"heatmap"===n.config.chart.type&&(d+=r/2);var g=l.drawLine(t+i.offsetX-a.width+a.offsetX,d+a.offsetY,t+i.offsetX+a.offsetX,d+a.offsetY,a.color);o.add(g),h+=r}}}}]),t}(),U=function(){function t(e){n(this,t),this.ctx=e,this.w=e.w}return h(t,[{key:"scaleSvgNode",value:function(t,e){var i=parseFloat(t.getAttributeNS(null,"width")),a=parseFloat(t.getAttributeNS(null,"height"));t.setAttributeNS(null,"width",i*e),t.setAttributeNS(null,"height",a*e),t.setAttributeNS(null,"viewBox","0 0 "+i+" "+a)}},{key:"fixSvgStringForIe11",value:function(t){if(!y.isIE11())return t.replace(/ /g," ");var e=0,i=t.replace(/xmlns="http:\/\/www.w3.org\/2000\/svg"/g,(function(t){return 2===++e?'xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svgjs="http://svgjs.dev"':t}));return(i=i.replace(/xmlns:NS\d+=""/g,"")).replace(/NS\d+:(\w+:\w+=")/g,"$1")}},{key:"getSvgString",value:function(t){null==t&&(t=1);var e=this.w.globals.dom.Paper.svg();if(1!==t){var i=this.w.globals.dom.Paper.node.cloneNode(!0);this.scaleSvgNode(i,t),e=(new XMLSerializer).serializeToString(i)}return this.fixSvgStringForIe11(e)}},{key:"cleanup",value:function(){var t=this.w,e=t.globals.dom.baseEl.getElementsByClassName("apexcharts-xcrosshairs"),i=t.globals.dom.baseEl.getElementsByClassName("apexcharts-ycrosshairs"),a=t.globals.dom.baseEl.querySelectorAll(".apexcharts-zoom-rect, .apexcharts-selection-rect");Array.prototype.forEach.call(a,(function(t){t.setAttribute("width",0)})),e&&e[0]&&(e[0].setAttribute("x",-500),e[0].setAttribute("x1",-500),e[0].setAttribute("x2",-500)),i&&i[0]&&(i[0].setAttribute("y",-100),i[0].setAttribute("y1",-100),i[0].setAttribute("y2",-100))}},{key:"svgUrl",value:function(){this.cleanup();var t=this.getSvgString(),e=new Blob([t],{type:"image/svg+xml;charset=utf-8"});return URL.createObjectURL(e)}},{key:"dataURI",value:function(t){var e=this;return new Promise((function(i){var a=e.w,s=t?t.scale||t.width/a.globals.svgWidth:1;e.cleanup();var r=document.createElement("canvas");r.width=a.globals.svgWidth*s,r.height=parseInt(a.globals.dom.elWrap.style.height,10)*s;var o="transparent"===a.config.chart.background?"#fff":a.config.chart.background,n=r.getContext("2d");n.fillStyle=o,n.fillRect(0,0,r.width*s,r.height*s);var l=e.getSvgString(s);if(window.canvg&&y.isIE11()){var h=window.canvg.Canvg.fromString(n,l,{ignoreClear:!0,ignoreDimensions:!0});h.start();var c=r.msToBlob();h.stop(),i({blob:c})}else{var d="data:image/svg+xml,"+encodeURIComponent(l),g=new Image;g.crossOrigin="anonymous",g.onload=function(){if(n.drawImage(g,0,0),r.msToBlob){var t=r.msToBlob();i({blob:t})}else{var e=r.toDataURL("image/png");i({imgURI:e})}},g.src=d}}))}},{key:"exportToSVG",value:function(){this.triggerDownload(this.svgUrl(),this.w.config.chart.toolbar.export.svg.filename,".svg")}},{key:"exportToPng",value:function(){var t=this;this.dataURI().then((function(e){var i=e.imgURI,a=e.blob;a?navigator.msSaveOrOpenBlob(a,t.w.globals.chartID+".png"):t.triggerDownload(i,t.w.config.chart.toolbar.export.png.filename,".png")}))}},{key:"exportToCSV",value:function(t){var e=this,i=t.series,a=t.fileName,s=t.columnDelimiter,r=void 0===s?",":s,o=t.lineDelimiter,n=void 0===o?"\n":o,l=this.w;i||(i=l.config.series);var h,c,d=[],g=[],u="",p=l.globals.series.map((function(t,e){return-1===l.globals.collapsedSeriesIndices.indexOf(e)?t:[]})),f=function(t){return"datetime"===l.config.xaxis.type&&String(t).length>=10},x=Math.max.apply(Math,b(i.map((function(t){return t.data?t.data.length:0})))),v=new j(this.ctx),m=new _(this.ctx),w=function(t){var i="";if(l.globals.axisCharts){if("category"===l.config.xaxis.type||l.config.xaxis.convertedCatToNumeric)if(l.globals.isBarHorizontal){var a=l.globals.yLabelFormatters[0],s=new V(e.ctx).getActiveConfigSeriesIndex();i=a(l.globals.labels[t],{seriesIndex:s,dataPointIndex:t,w:l})}else i=m.getLabel(l.globals.labels,l.globals.timescaleLabels,0,t).text;"datetime"===l.config.xaxis.type&&(l.config.xaxis.categories.length?i=l.config.xaxis.categories[t]:l.config.labels.length&&(i=l.config.labels[t]))}else i=l.config.labels[t];return Array.isArray(i)&&(i=i.join(" ")),y.isNumber(i)?i:i.split(r).join("")},k=function(t,e){if(d.length&&0===e&&g.push(d.join(r)),t.data){t.data=t.data.length&&t.data||b(Array(x)).map((function(){return""}));for(var a=0;a0&&!a.globals.isBarHorizontal&&(this.xaxisLabels=a.globals.timescaleLabels.slice()),a.config.xaxis.overwriteCategories&&(this.xaxisLabels=a.config.xaxis.overwriteCategories),this.drawnLabels=[],this.drawnLabelsRects=[],"top"===a.config.xaxis.position?this.offY=0:this.offY=a.globals.gridHeight+1,this.offY=this.offY+a.config.xaxis.axisBorder.offsetY,this.isCategoryBarHorizontal="bar"===a.config.chart.type&&a.config.plotOptions.bar.horizontal,this.xaxisFontSize=a.config.xaxis.labels.style.fontSize,this.xaxisFontFamily=a.config.xaxis.labels.style.fontFamily,this.xaxisForeColors=a.config.xaxis.labels.style.colors,this.xaxisBorderWidth=a.config.xaxis.axisBorder.width,this.isCategoryBarHorizontal&&(this.xaxisBorderWidth=a.config.yaxis[0].axisBorder.width.toString()),this.xaxisBorderWidth.indexOf("%")>-1?this.xaxisBorderWidth=a.globals.gridWidth*parseInt(this.xaxisBorderWidth,10)/100:this.xaxisBorderWidth=parseInt(this.xaxisBorderWidth,10),this.xaxisBorderHeight=a.config.xaxis.axisBorder.height,this.yaxis=a.config.yaxis[0]}return h(t,[{key:"drawXaxis",value:function(){var t=this.w,e=new A(this.ctx),i=e.group({class:"apexcharts-xaxis",transform:"translate(".concat(t.config.xaxis.offsetX,", ").concat(t.config.xaxis.offsetY,")")}),a=e.group({class:"apexcharts-xaxis-texts-g",transform:"translate(".concat(t.globals.translateXAxisX,", ").concat(t.globals.translateXAxisY,")")});i.add(a);for(var s=[],r=0;r6&&void 0!==arguments[6]?arguments[6]:{},h=[],c=[],d=this.w,g=l.xaxisFontSize||this.xaxisFontSize,u=l.xaxisFontFamily||this.xaxisFontFamily,p=l.xaxisForeColors||this.xaxisForeColors,f=l.fontWeight||d.config.xaxis.labels.style.fontWeight,x=l.cssClass||d.config.xaxis.labels.style.cssClass,b=d.globals.padHorizontal,v=a.length,m="category"===d.config.xaxis.type?d.globals.dataPoints:v;if(0===m&&v>m&&(m=v),s){var y=m>1?m-1:m;o=d.globals.gridWidth/Math.min(y,v-1),b=b+r(0,o)/2+d.config.xaxis.labels.offsetX}else o=d.globals.gridWidth/m,b=b+r(0,o)+d.config.xaxis.labels.offsetX;for(var w=function(s){var l=b-r(s,o)/2+d.config.xaxis.labels.offsetX;0===s&&1===v&&o/2===b&&1===m&&(l=d.globals.gridWidth/2);var y=n.axesUtils.getLabel(a,d.globals.timescaleLabels,l,s,h,g,t),w=28;if(d.globals.rotateXLabels&&t&&(w=22),d.config.xaxis.title.text&&"top"===d.config.xaxis.position&&(w+=parseFloat(d.config.xaxis.title.style.fontSize)+2),t||(w=w+parseFloat(g)+(d.globals.xAxisLabelsHeight-d.globals.xAxisGroupLabelsHeight)+(d.globals.rotateXLabels?10:0)),y=void 0!==d.config.xaxis.tickAmount&&"dataPoints"!==d.config.xaxis.tickAmount&&"datetime"!==d.config.xaxis.type?n.axesUtils.checkLabelBasedOnTickamount(s,y,v):n.axesUtils.checkForOverflowingLabels(s,y,v,h,c),d.config.xaxis.labels.show){var k=e.drawText({x:y.x,y:n.offY+d.config.xaxis.labels.offsetY+w-("top"===d.config.xaxis.position?d.globals.xAxisHeight+d.config.xaxis.axisTicks.height-2:0),text:y.text,textAnchor:"middle",fontWeight:y.isBold?600:f,fontSize:g,fontFamily:u,foreColor:Array.isArray(p)?t&&d.config.xaxis.convertedCatToNumeric?p[d.globals.minX+s-1]:p[s]:p,isPlainText:!1,cssClass:(t?"apexcharts-xaxis-label ":"apexcharts-xaxis-group-label ")+x});if(i.add(k),k.on("click",(function(t){if("function"==typeof d.config.chart.events.xAxisLabelClick){var e=Object.assign({},d,{labelIndex:s});d.config.chart.events.xAxisLabelClick(t,n.ctx,e)}})),t){var A=document.createElementNS(d.globals.SVGNS,"title");A.textContent=Array.isArray(y.text)?y.text.join(" "):y.text,k.node.appendChild(A),""!==y.text&&(h.push(y.text),c.push(y))}}sa.globals.gridWidth)){var r=this.offY+a.config.xaxis.axisTicks.offsetY;if(e=e+r+a.config.xaxis.axisTicks.height,"top"===a.config.xaxis.position&&(e=r-a.config.xaxis.axisTicks.height),a.config.xaxis.axisTicks.show){var o=new A(this.ctx).drawLine(t+a.config.xaxis.axisTicks.offsetX,r+a.config.xaxis.offsetY,s+a.config.xaxis.axisTicks.offsetX,e+a.config.xaxis.offsetY,a.config.xaxis.axisTicks.color);i.add(o),o.node.classList.add("apexcharts-xaxis-tick")}}}},{key:"getXAxisTicksPositions",value:function(){var t=this.w,e=[],i=this.xaxisLabels.length,a=t.globals.padHorizontal;if(t.globals.timescaleLabels.length>0)for(var s=0;s0){var h=s[s.length-1].getBBox(),c=s[0].getBBox();h.x<-20&&s[s.length-1].parentNode.removeChild(s[s.length-1]),c.x+c.width>t.globals.gridWidth&&!t.globals.isBarHorizontal&&s[0].parentNode.removeChild(s[0]);for(var d=0;d0&&(this.xaxisLabels=i.globals.timescaleLabels.slice())}return h(t,[{key:"drawGridArea",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,e=this.w,i=new A(this.ctx);null===t&&(t=i.group({class:"apexcharts-grid"}));var a=i.drawLine(e.globals.padHorizontal,1,e.globals.padHorizontal,e.globals.gridHeight,"transparent"),s=i.drawLine(e.globals.padHorizontal,e.globals.gridHeight,e.globals.gridWidth,e.globals.gridHeight,"transparent");return t.add(s),t.add(a),t}},{key:"drawGrid",value:function(){var t=null;return this.w.globals.axisCharts&&(t=this.renderGrid(),this.drawGridArea(t.el)),t}},{key:"createGridMask",value:function(){var t=this.w,e=t.globals,i=new A(this.ctx),a=Array.isArray(t.config.stroke.width)?0:t.config.stroke.width;if(Array.isArray(t.config.stroke.width)){var s=0;t.config.stroke.width.forEach((function(t){s=Math.max(s,t)})),a=s}e.dom.elGridRectMask=document.createElementNS(e.SVGNS,"clipPath"),e.dom.elGridRectMask.setAttribute("id","gridRectMask".concat(e.cuid)),e.dom.elGridRectMarkerMask=document.createElementNS(e.SVGNS,"clipPath"),e.dom.elGridRectMarkerMask.setAttribute("id","gridRectMarkerMask".concat(e.cuid)),e.dom.elForecastMask=document.createElementNS(e.SVGNS,"clipPath"),e.dom.elForecastMask.setAttribute("id","forecastMask".concat(e.cuid)),e.dom.elNonForecastMask=document.createElementNS(e.SVGNS,"clipPath"),e.dom.elNonForecastMask.setAttribute("id","nonForecastMask".concat(e.cuid));var r=t.config.chart.type,o=0,n=0;("bar"===r||"rangeBar"===r||"candlestick"===r||"boxPlot"===r||t.globals.comboBarCount>0)&&t.globals.isXNumeric&&!t.globals.isBarHorizontal&&(o=t.config.grid.padding.left,n=t.config.grid.padding.right,e.barPadForNumericAxis>o&&(o=e.barPadForNumericAxis,n=e.barPadForNumericAxis)),e.dom.elGridRect=i.drawRect(-a-o-2,2*-a-2,e.gridWidth+a+n+o+4,e.gridHeight+4*a+4,0,"#fff");var l=t.globals.markers.largestSize+1;e.dom.elGridRectMarker=i.drawRect(2*-l,2*-l,e.gridWidth+4*l,e.gridHeight+4*l,0,"#fff"),e.dom.elGridRectMask.appendChild(e.dom.elGridRect.node),e.dom.elGridRectMarkerMask.appendChild(e.dom.elGridRectMarker.node);var h=e.dom.baseEl.querySelector("defs");h.appendChild(e.dom.elGridRectMask),h.appendChild(e.dom.elForecastMask),h.appendChild(e.dom.elNonForecastMask),h.appendChild(e.dom.elGridRectMarkerMask)}},{key:"_drawGridLines",value:function(t){var e=t.i,i=t.x1,a=t.y1,s=t.x2,r=t.y2,o=t.xCount,n=t.parent,l=this.w;if(!(0===e&&l.globals.skipFirstTimelinelabel||e===o-1&&l.globals.skipLastTimelinelabel&&!l.config.xaxis.labels.formatter||"radar"===l.config.chart.type)){l.config.grid.xaxis.lines.show&&this._drawGridLine({i:e,x1:i,y1:a,x2:s,y2:r,xCount:o,parent:n});var h=0;if(l.globals.hasXaxisGroups&&"between"===l.config.xaxis.tickPlacement){var c=l.globals.groups;if(c){for(var d=0,g=0;d2));n++);!a.globals.isBarHorizontal||this.isRangeBar?(r=this.xaxisLabels.length,this.isRangeBar&&(r--,o=a.globals.labels.length,a.config.xaxis.tickAmount&&a.config.xaxis.labels.formatter&&(r=a.config.xaxis.tickAmount),(null===(t=a.globals.yAxisScale)||void 0===t||null===(e=t[0])||void 0===e||null===(i=e.result)||void 0===i?void 0:i.length)>0&&"datetime"!==a.config.xaxis.type&&(r=a.globals.yAxisScale[0].result.length-1)),this._drawXYLines({xCount:r,tickAmount:o})):(r=o,o=a.globals.xTickAmount,this._drawInvertedXYLines({xCount:r,tickAmount:o}));return this.drawGridBands(r,o),{el:this.elg,elGridBorders:this.elGridBorders,xAxisTickWidth:a.globals.gridWidth/r}}},{key:"drawGridBands",value:function(t,e){var i=this.w;if(void 0!==i.config.grid.row.colors&&i.config.grid.row.colors.length>0)for(var a=0,s=i.globals.gridHeight/e,r=i.globals.gridWidth,o=0,n=0;o=i.config.grid.row.colors.length&&(n=0),this._drawGridBandRect({c:n,x1:0,y1:a,x2:r,y2:s,type:"row"}),a+=i.globals.gridHeight/e;if(void 0!==i.config.grid.column.colors&&i.config.grid.column.colors.length>0)for(var l=i.globals.isBarHorizontal||"on"!==i.config.xaxis.tickPlacement||"category"!==i.config.xaxis.type&&!i.config.xaxis.convertedCatToNumeric?t:t-1,h=i.globals.padHorizontal,c=i.globals.padHorizontal+i.globals.gridWidth/l,d=i.globals.gridHeight,g=0,u=0;g=i.config.grid.column.colors.length&&(u=0),this._drawGridBandRect({c:u,x1:h,y1:0,x2:c,y2:d,type:"column"}),h+=i.globals.gridWidth/l}}]),t}(),$=function(){function t(e){n(this,t),this.ctx=e,this.w=e.w}return h(t,[{key:"niceScale",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:5,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,s=arguments.length>4?arguments[4]:void 0,r=this.w,o=Math.abs(e-t);if("dataPoints"===(i=this._adjustTicksForSmallRange(i,a,o))&&(i=r.globals.dataPoints-1),t===Number.MIN_VALUE&&0===e||!y.isNumber(t)&&!y.isNumber(e)||t===Number.MIN_VALUE&&e===-Number.MAX_VALUE)return t=0,e=i,this.linearScale(t,e,i,a,r.config.yaxis[a].stepSize);t>e?(console.warn("axis.min cannot be greater than axis.max"),e=t+.1):t===e&&(t=0===t?0:t-.5,e=0===e?2:e+.5);var n=[];o<1&&s&&("candlestick"===r.config.chart.type||"candlestick"===r.config.series[a].type||"boxPlot"===r.config.chart.type||"boxPlot"===r.config.series[a].type||r.globals.isRangeData)&&(e*=1.01);var l=i+1;l<2?l=2:l>2&&(l-=2);var h=o/l,c=Math.floor(y.log10(h)),d=Math.pow(10,c),g=Math.round(h/d);g<1&&(g=1);var u=g*d;r.config.yaxis[a].stepSize&&(u=r.config.yaxis[a].stepSize),r.globals.isBarHorizontal&&r.config.xaxis.stepSize&&"datetime"!==r.config.xaxis.type&&(u=r.config.xaxis.stepSize);var p=u*Math.floor(t/u),f=u*Math.ceil(e/u),x=p;if(s&&o>2){for(;n.push(y.stripNumber(x,7)),!((x+=u)>f););return{result:n,niceMin:n[0],niceMax:n[n.length-1]}}var b=t;(n=[]).push(y.stripNumber(b,7));for(var v=Math.abs(e-t)/i,m=0;m<=i;m++)b+=v,n.push(b);return n[n.length-2]>=e&&n.pop(),{result:n,niceMin:n[0],niceMax:n[n.length-1]}}},{key:"linearScale",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:5,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:void 0,r=Math.abs(e-t);"dataPoints"===(i=this._adjustTicksForSmallRange(i,a,r))&&(i=this.w.globals.dataPoints-1),s||(s=r/i),i===Number.MAX_VALUE&&(i=5,s=1);for(var o=[],n=t;i>=0;)o.push(n),n+=s,i-=1;return{result:o,niceMin:o[0],niceMax:o[o.length-1]}}},{key:"logarithmicScaleNice",value:function(t,e,i){e<=0&&(e=Math.max(t,i)),t<=0&&(t=Math.min(e,i));for(var a=[],s=Math.ceil(Math.log(e)/Math.log(i)+1),r=Math.floor(Math.log(t)/Math.log(i));r5)a.allSeriesCollapsed=!1,a.yAxisScale[t]=this.logarithmicScale(e,i,r.logBase),a.yAxisScale[t]=r.forceNiceScale?this.logarithmicScaleNice(e,i,r.logBase):this.logarithmicScale(e,i,r.logBase);else if(i!==-Number.MAX_VALUE&&y.isNumber(i))if(a.allSeriesCollapsed=!1,void 0===r.min&&void 0===r.max||r.forceNiceScale){var n=void 0===s.yaxis[t].max&&void 0===s.yaxis[t].min||s.yaxis[t].forceNiceScale;a.yAxisScale[t]=this.niceScale(e,i,r.tickAmount?r.tickAmount:o<5&&o>1?o+1:5,t,n)}else a.yAxisScale[t]=this.linearScale(e,i,r.tickAmount,t,s.yaxis[t].stepSize);else a.yAxisScale[t]=this.linearScale(0,5,5,t,s.yaxis[t].stepSize)}},{key:"setXScale",value:function(t,e){var i=this.w,a=i.globals,s=Math.abs(e-t);return e!==-Number.MAX_VALUE&&y.isNumber(e)?a.xAxisScale=this.linearScale(t,e,i.config.xaxis.tickAmount?i.config.xaxis.tickAmount:s<5&&s>1?s+1:5,0,i.config.xaxis.stepSize):a.xAxisScale=this.linearScale(0,5,5),a.xAxisScale}},{key:"setMultipleYScales",value:function(){var t=this,e=this.w.globals,i=this.w.config,a=e.minYArr.concat([]),s=e.maxYArr.concat([]),r=[];i.yaxis.forEach((function(e,o){var n=o;i.series.forEach((function(t,i){t.name===e.seriesName&&(n=i,o!==i?r.push({index:i,similarIndex:o,alreadyExists:!0}):r.push({index:i}))}));var l=a[n],h=s[n];t.setYScaleForIndex(o,l,h)})),this.sameScaleInMultipleAxes(a,s,r)}},{key:"sameScaleInMultipleAxes",value:function(t,e,i){var a=this,s=this.w.config,r=this.w.globals,o=[];i.forEach((function(t){t.alreadyExists&&(void 0===o[t.index]&&(o[t.index]=[]),o[t.index].push(t.index),o[t.index].push(t.similarIndex))})),r.yAxisSameScaleIndices=o,o.forEach((function(t,e){o.forEach((function(i,a){var s,r;e!==a&&(s=t,r=i,s.filter((function(t){return-1!==r.indexOf(t)}))).length>0&&(o[e]=o[e].concat(o[a]))}))}));var n=o.map((function(t){return t.filter((function(e,i){return t.indexOf(e)===i}))})).map((function(t){return t.sort()}));o=o.filter((function(t){return!!t}));var l=n.slice(),h=l.map((function(t){return JSON.stringify(t)}));l=l.filter((function(t,e){return h.indexOf(JSON.stringify(t))===e}));var c=[],d=[];t.forEach((function(t,i){l.forEach((function(a,s){a.indexOf(i)>-1&&(void 0===c[s]&&(c[s]=[],d[s]=[]),c[s].push({key:i,value:t}),d[s].push({key:i,value:e[i]}))}))}));var g=Array.apply(null,Array(l.length)).map(Number.prototype.valueOf,Number.MIN_VALUE),u=Array.apply(null,Array(l.length)).map(Number.prototype.valueOf,-Number.MAX_VALUE);c.forEach((function(t,e){t.forEach((function(t,i){g[e]=Math.min(t.value,g[e])}))})),d.forEach((function(t,e){t.forEach((function(t,i){u[e]=Math.max(t.value,u[e])}))})),t.forEach((function(t,e){d.forEach((function(t,i){var o=g[i],n=u[i];s.chart.stacked&&(n=0,t.forEach((function(t,e){t.value!==-Number.MAX_VALUE&&(n+=t.value),o!==Number.MIN_VALUE&&(o+=c[i][e].value)}))),t.forEach((function(i,l){t[l].key===e&&(void 0!==s.yaxis[e].min&&(o="function"==typeof s.yaxis[e].min?s.yaxis[e].min(r.minY):s.yaxis[e].min),void 0!==s.yaxis[e].max&&(n="function"==typeof s.yaxis[e].max?s.yaxis[e].max(r.maxY):s.yaxis[e].max),a.setYScaleForIndex(e,o,n))}))}))}))}},{key:"autoScaleY",value:function(t,e,i){t||(t=this);var a=t.w;if(a.globals.isMultipleYAxis||a.globals.collapsedSeries.length)return console.warn("autoScaleYaxis not supported in a multi-yaxis chart."),e;var s=a.globals.seriesX[0],r=a.config.chart.stacked;return e.forEach((function(t,o){for(var n=0,l=0;l=i.xaxis.min){n=l;break}var h,c,d=a.globals.minYArr[o],g=a.globals.maxYArr[o],u=a.globals.stackedSeriesTotals;a.globals.series.forEach((function(o,l){var p=o[n];r?(p=u[n],h=c=p,u.forEach((function(t,e){s[e]<=i.xaxis.max&&s[e]>=i.xaxis.min&&(t>c&&null!==t&&(c=t),o[e]=i.xaxis.min){var r=t,o=t;a.globals.series.forEach((function(i,a){null!==t&&(r=Math.min(i[e],r),o=Math.max(i[e],o))})),o>c&&null!==o&&(c=o),rd&&(h=d),e.length>1?(e[l].min=void 0===t.min?h:t.min,e[l].max=void 0===t.max?c:t.max):(e[0].min=void 0===t.min?h:t.min,e[0].max=void 0===t.max?c:t.max)}))})),e}}]),t}(),J=function(){function t(e){n(this,t),this.ctx=e,this.w=e.w,this.scales=new $(e)}return h(t,[{key:"init",value:function(){this.setYRange(),this.setXRange(),this.setZRange()}},{key:"getMinYMaxY",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.MAX_VALUE,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:-Number.MAX_VALUE,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,s=this.w.config,r=this.w.globals,o=-Number.MAX_VALUE,n=Number.MIN_VALUE;null===a&&(a=t+1);var l=r.series,h=l,c=l;"candlestick"===s.chart.type?(h=r.seriesCandleL,c=r.seriesCandleH):"boxPlot"===s.chart.type?(h=r.seriesCandleO,c=r.seriesCandleC):r.isRangeData&&(h=r.seriesRangeStart,c=r.seriesRangeEnd);for(var d=t;dh[d][g]&&h[d][g]<0&&(n=h[d][g])):r.hasNullValues=!0}}return"rangeBar"===s.chart.type&&r.seriesRangeStart.length&&r.isBarHorizontal&&(n=e),"bar"===s.chart.type&&(n<0&&o<0&&(o=0),n===Number.MIN_VALUE&&(n=0)),{minY:n,maxY:o,lowestY:e,highestY:i}}},{key:"setYRange",value:function(){var t=this.w.globals,e=this.w.config;t.maxY=-Number.MAX_VALUE,t.minY=Number.MIN_VALUE;var i=Number.MAX_VALUE;if(t.isMultipleYAxis)for(var a=0;a=0&&i<=10||void 0!==e.yaxis[0].min||void 0!==e.yaxis[0].max)&&(o=0),t.minY=i-5*o/100,i>0&&t.minY<0&&(t.minY=0),t.maxY=t.maxY+5*o/100}return e.yaxis.forEach((function(e,i){void 0!==e.max&&("number"==typeof e.max?t.maxYArr[i]=e.max:"function"==typeof e.max&&(t.maxYArr[i]=e.max(t.isMultipleYAxis?t.maxYArr[i]:t.maxY)),t.maxY=t.maxYArr[i]),void 0!==e.min&&("number"==typeof e.min?t.minYArr[i]=e.min:"function"==typeof e.min&&(t.minYArr[i]=e.min(t.isMultipleYAxis?t.minYArr[i]===Number.MIN_VALUE?0:t.minYArr[i]:t.minY)),t.minY=t.minYArr[i])})),t.isBarHorizontal&&["min","max"].forEach((function(i){void 0!==e.xaxis[i]&&"number"==typeof e.xaxis[i]&&("min"===i?t.minY=e.xaxis[i]:t.maxY=e.xaxis[i])})),t.isMultipleYAxis?(this.scales.setMultipleYScales(),t.minY=i,t.yAxisScale.forEach((function(e,i){t.minYArr[i]=e.niceMin,t.maxYArr[i]=e.niceMax}))):(this.scales.setYScaleForIndex(0,t.minY,t.maxY),t.minY=t.yAxisScale[0].niceMin,t.maxY=t.yAxisScale[0].niceMax,t.minYArr[0]=t.yAxisScale[0].niceMin,t.maxYArr[0]=t.yAxisScale[0].niceMax),{minY:t.minY,maxY:t.maxY,minYArr:t.minYArr,maxYArr:t.maxYArr,yAxisScale:t.yAxisScale}}},{key:"setXRange",value:function(){var t=this.w.globals,e=this.w.config,i="numeric"===e.xaxis.type||"datetime"===e.xaxis.type||"category"===e.xaxis.type&&!t.noLabelsProvided||t.noLabelsProvided||t.isXNumeric;if(t.isXNumeric&&function(){for(var e=0;et.dataPoints&&0!==t.dataPoints&&(a=t.dataPoints-1)):"dataPoints"===e.xaxis.tickAmount?(t.series.length>1&&(a=t.series[t.maxValsInArrayIndex].length-1),t.isXNumeric&&(a=t.maxX-t.minX-1)):a=e.xaxis.tickAmount,t.xTickAmount=a,void 0!==e.xaxis.max&&"number"==typeof e.xaxis.max&&(t.maxX=e.xaxis.max),void 0!==e.xaxis.min&&"number"==typeof e.xaxis.min&&(t.minX=e.xaxis.min),void 0!==e.xaxis.range&&(t.minX=t.maxX-e.xaxis.range),t.minX!==Number.MAX_VALUE&&t.maxX!==-Number.MAX_VALUE)if(e.xaxis.convertedCatToNumeric&&!t.dataFormatXNumeric){for(var s=[],r=t.minX-1;r0&&(t.xAxisScale=this.scales.linearScale(1,t.labels.length,a-1,0,e.xaxis.stepSize),t.seriesX=t.labels.slice());i&&(t.labels=t.xAxisScale.result.slice())}return t.isBarHorizontal&&t.labels.length&&(t.xTickAmount=t.labels.length),this._handleSingleDataPoint(),this._getMinXDiff(),{minX:t.minX,maxX:t.maxX}}},{key:"setZRange",value:function(){var t=this.w.globals;if(t.isDataXYZ)for(var e=0;e0){var s=e-a[i-1];s>0&&(t.minXDiff=Math.min(s,t.minXDiff))}})),1!==t.dataPoints&&t.minXDiff!==Number.MAX_VALUE||(t.minXDiff=.5)}))}},{key:"_setStackedMinMax",value:function(){var t=this,e=this.w.globals;if(e.series.length){var i=e.seriesGroups;i.length||(i=[this.w.config.series.map((function(t){return t.name}))]);var a={},s={};i.forEach((function(i){a[i]=[],s[i]=[],t.w.config.series.map((function(t,e){return i.indexOf(t.name)>-1?e:null})).filter((function(t){return null!==t})).forEach((function(r){for(var o=0;o0?a[i][o]+=parseFloat(e.series[r][o])+1e-4:s[i][o]+=parseFloat(e.series[r][o]))}}))})),Object.entries(a).forEach((function(t){var i=x(t,1)[0];a[i].forEach((function(t,r){e.maxY=Math.max(e.maxY,a[i][r]),e.minY=Math.min(e.minY,s[i][r])}))}))}}}]),t}(),Q=function(){function t(e,i){n(this,t),this.ctx=e,this.elgrid=i,this.w=e.w;var a=this.w;this.xaxisFontSize=a.config.xaxis.labels.style.fontSize,this.axisFontFamily=a.config.xaxis.labels.style.fontFamily,this.xaxisForeColors=a.config.xaxis.labels.style.colors,this.isCategoryBarHorizontal="bar"===a.config.chart.type&&a.config.plotOptions.bar.horizontal,this.xAxisoffX=0,"bottom"===a.config.xaxis.position&&(this.xAxisoffX=a.globals.gridHeight),this.drawnLabels=[],this.axesUtils=new _(e)}return h(t,[{key:"drawYaxis",value:function(t){var e=this,i=this.w,a=new A(this.ctx),s=i.config.yaxis[t].labels.style,r=s.fontSize,o=s.fontFamily,n=s.fontWeight,l=a.group({class:"apexcharts-yaxis",rel:t,transform:"translate("+i.globals.translateYAxisX[t]+", 0)"});if(this.axesUtils.isYAxisHidden(t))return l;var h=a.group({class:"apexcharts-yaxis-texts-g"});l.add(h);var c=i.globals.yAxisScale[t].result.length-1,d=i.globals.gridHeight/c,g=i.globals.translateY,u=i.globals.yLabelFormatters[t],p=i.globals.yAxisScale[t].result.slice();p=this.axesUtils.checkForReversedLabels(t,p);var f="";if(i.config.yaxis[t].labels.show)for(var x=function(l){var x=p[l];x=u(x,l,i);var b=i.config.yaxis[t].labels.padding;i.config.yaxis[t].opposite&&0!==i.config.yaxis.length&&(b*=-1);var v="end";i.config.yaxis[t].opposite&&(v="start"),"left"===i.config.yaxis[t].labels.align?v="start":"center"===i.config.yaxis[t].labels.align?v="middle":"right"===i.config.yaxis[t].labels.align&&(v="end");var m=e.axesUtils.getYAxisForeColor(s.colors,t),y=i.config.yaxis[t].labels.offsetY;"heatmap"===i.config.chart.type&&(y-=(i.globals.gridHeight/i.globals.series.length-1)/2);var w=a.drawText({x:b,y:g+c/10+y+1,text:x,textAnchor:v,fontSize:r,fontFamily:o,fontWeight:n,maxWidth:i.config.yaxis[t].labels.maxWidth,foreColor:Array.isArray(m)?m[l]:m,isPlainText:!1,cssClass:"apexcharts-yaxis-label "+s.cssClass});l===c&&(f=w),h.add(w);var k=document.createElementNS(i.globals.SVGNS,"title");if(k.textContent=Array.isArray(x)?x.join(" "):x,w.node.appendChild(k),0!==i.config.yaxis[t].labels.rotate){var A=a.rotateAroundCenter(f.node),S=a.rotateAroundCenter(w.node);w.node.setAttribute("transform","rotate(".concat(i.config.yaxis[t].labels.rotate," ").concat(A.x," ").concat(S.y,")"))}g+=d},b=c;b>=0;b--)x(b);if(void 0!==i.config.yaxis[t].title.text){var v=a.group({class:"apexcharts-yaxis-title"}),m=0;i.config.yaxis[t].opposite&&(m=i.globals.translateYAxisX[t]);var y=a.drawText({x:m,y:i.globals.gridHeight/2+i.globals.translateY+i.config.yaxis[t].title.offsetY,text:i.config.yaxis[t].title.text,textAnchor:"end",foreColor:i.config.yaxis[t].title.style.color,fontSize:i.config.yaxis[t].title.style.fontSize,fontWeight:i.config.yaxis[t].title.style.fontWeight,fontFamily:i.config.yaxis[t].title.style.fontFamily,cssClass:"apexcharts-yaxis-title-text "+i.config.yaxis[t].title.style.cssClass});v.add(y),l.add(v)}var w=i.config.yaxis[t].axisBorder,k=31+w.offsetX;if(i.config.yaxis[t].opposite&&(k=-31-w.offsetX),w.show){var S=a.drawLine(k,i.globals.translateY+w.offsetY-2,k,i.globals.gridHeight+i.globals.translateY+w.offsetY+2,w.color,0,w.width);l.add(S)}return i.config.yaxis[t].axisTicks.show&&this.axesUtils.drawYAxisTicks(k,c,w,i.config.yaxis[t].axisTicks,t,d,l),l}},{key:"drawYaxisInversed",value:function(t){var e=this.w,i=new A(this.ctx),a=i.group({class:"apexcharts-xaxis apexcharts-yaxis-inversed"}),s=i.group({class:"apexcharts-xaxis-texts-g",transform:"translate(".concat(e.globals.translateXAxisX,", ").concat(e.globals.translateXAxisY,")")});a.add(s);var r=e.globals.yAxisScale[t].result.length-1,o=e.globals.gridWidth/r+.1,n=o+e.config.xaxis.labels.offsetX,l=e.globals.xLabelFormatter,h=e.globals.yAxisScale[t].result.slice(),c=e.globals.timescaleLabels;c.length>0&&(this.xaxisLabels=c.slice(),r=(h=c.slice()).length),h=this.axesUtils.checkForReversedLabels(t,h);var d=c.length;if(e.config.xaxis.labels.show)for(var g=d?0:r;d?g=0;d?g++:g--){var u=h[g];u=l(u,g,e);var p=e.globals.gridWidth+e.globals.padHorizontal-(n-o+e.config.xaxis.labels.offsetX);if(c.length){var f=this.axesUtils.getLabel(h,c,p,g,this.drawnLabels,this.xaxisFontSize);p=f.x,u=f.text,this.drawnLabels.push(f.text),0===g&&e.globals.skipFirstTimelinelabel&&(u=""),g===h.length-1&&e.globals.skipLastTimelinelabel&&(u="")}var x=i.drawText({x:p,y:this.xAxisoffX+e.config.xaxis.labels.offsetY+30-("top"===e.config.xaxis.position?e.globals.xAxisHeight+e.config.xaxis.axisTicks.height-2:0),text:u,textAnchor:"middle",foreColor:Array.isArray(this.xaxisForeColors)?this.xaxisForeColors[t]:this.xaxisForeColors,fontSize:this.xaxisFontSize,fontFamily:this.xaxisFontFamily,fontWeight:e.config.xaxis.labels.style.fontWeight,isPlainText:!1,cssClass:"apexcharts-xaxis-label "+e.config.xaxis.labels.style.cssClass});s.add(x),x.tspan(u);var b=document.createElementNS(e.globals.SVGNS,"title");b.textContent=u,x.node.appendChild(b),n+=o}return this.inversedYAxisTitleText(a),this.inversedYAxisBorder(a),a}},{key:"inversedYAxisBorder",value:function(t){var e=this.w,i=new A(this.ctx),a=e.config.xaxis.axisBorder;if(a.show){var s=0;"bar"===e.config.chart.type&&e.globals.isXNumeric&&(s-=15);var r=i.drawLine(e.globals.padHorizontal+s+a.offsetX,this.xAxisoffX,e.globals.gridWidth,this.xAxisoffX,a.color,0,a.height);this.elgrid&&this.elgrid.elGridBorders&&e.config.grid.show?this.elgrid.elGridBorders.add(r):t.add(r)}}},{key:"inversedYAxisTitleText",value:function(t){var e=this.w,i=new A(this.ctx);if(void 0!==e.config.xaxis.title.text){var a=i.group({class:"apexcharts-xaxis-title apexcharts-yaxis-title-inversed"}),s=i.drawText({x:e.globals.gridWidth/2+e.config.xaxis.title.offsetX,y:this.xAxisoffX+parseFloat(this.xaxisFontSize)+parseFloat(e.config.xaxis.title.style.fontSize)+e.config.xaxis.title.offsetY+20,text:e.config.xaxis.title.text,textAnchor:"middle",fontSize:e.config.xaxis.title.style.fontSize,fontFamily:e.config.xaxis.title.style.fontFamily,fontWeight:e.config.xaxis.title.style.fontWeight,foreColor:e.config.xaxis.title.style.color,cssClass:"apexcharts-xaxis-title-text "+e.config.xaxis.title.style.cssClass});a.add(s),t.add(a)}}},{key:"yAxisTitleRotate",value:function(t,e){var i=this.w,a=new A(this.ctx),s={width:0,height:0},r={width:0,height:0},o=i.globals.dom.baseEl.querySelector(" .apexcharts-yaxis[rel='".concat(t,"'] .apexcharts-yaxis-texts-g"));null!==o&&(s=o.getBoundingClientRect());var n=i.globals.dom.baseEl.querySelector(".apexcharts-yaxis[rel='".concat(t,"'] .apexcharts-yaxis-title text"));if(null!==n&&(r=n.getBoundingClientRect()),null!==n){var l=this.xPaddingForYAxisTitle(t,s,r,e);n.setAttribute("x",l.xPos-(e?10:0))}if(null!==n){var h=a.rotateAroundCenter(n);n.setAttribute("transform","rotate(".concat(e?-1*i.config.yaxis[t].title.rotate:i.config.yaxis[t].title.rotate," ").concat(h.x," ").concat(h.y,")"))}}},{key:"xPaddingForYAxisTitle",value:function(t,e,i,a){var s=this.w,r=0,o=0,n=10;return void 0===s.config.yaxis[t].title.text||t<0?{xPos:o,padd:0}:(a?(o=e.width+s.config.yaxis[t].title.offsetX+i.width/2+n/2,0===(r+=1)&&(o-=n/2)):(o=-1*e.width+s.config.yaxis[t].title.offsetX+n/2+i.width/2,s.globals.isBarHorizontal&&(n=25,o=-1*e.width-s.config.yaxis[t].title.offsetX-n)),{xPos:o,padd:n})}},{key:"setYAxisXPosition",value:function(t,e){var i=this.w,a=0,s=0,r=18,o=1;i.config.yaxis.length>1&&(this.multipleYs=!0),i.config.yaxis.map((function(n,l){var h=i.globals.ignoreYAxisIndexes.indexOf(l)>-1||!n.show||n.floating||0===t[l].width,c=t[l].width+e[l].width;n.opposite?i.globals.isBarHorizontal?(s=i.globals.gridWidth+i.globals.translateX-1,i.globals.translateYAxisX[l]=s-n.labels.offsetX):(s=i.globals.gridWidth+i.globals.translateX+o,h||(o=o+c+20),i.globals.translateYAxisX[l]=s-n.labels.offsetX+20):(a=i.globals.translateX-r,h||(r=r+c+20),i.globals.translateYAxisX[l]=a+n.labels.offsetX)}))}},{key:"setYAxisTextAlignments",value:function(){var t=this.w,e=t.globals.dom.baseEl.getElementsByClassName("apexcharts-yaxis");(e=y.listToArray(e)).forEach((function(e,i){var a=t.config.yaxis[i];if(a&&!a.floating&&void 0!==a.labels.align){var s=t.globals.dom.baseEl.querySelector(".apexcharts-yaxis[rel='".concat(i,"'] .apexcharts-yaxis-texts-g")),r=t.globals.dom.baseEl.querySelectorAll(".apexcharts-yaxis[rel='".concat(i,"'] .apexcharts-yaxis-label"));r=y.listToArray(r);var o=s.getBoundingClientRect();"left"===a.labels.align?(r.forEach((function(t,e){t.setAttribute("text-anchor","start")})),a.opposite||s.setAttribute("transform","translate(-".concat(o.width,", 0)"))):"center"===a.labels.align?(r.forEach((function(t,e){t.setAttribute("text-anchor","middle")})),s.setAttribute("transform","translate(".concat(o.width/2*(a.opposite?1:-1),", 0)"))):"right"===a.labels.align&&(r.forEach((function(t,e){t.setAttribute("text-anchor","end")})),a.opposite&&s.setAttribute("transform","translate(".concat(o.width,", 0)")))}}))}}]),t}(),K=function(){function t(e){n(this,t),this.ctx=e,this.w=e.w,this.documentEvent=y.bind(this.documentEvent,this)}return h(t,[{key:"addEventListener",value:function(t,e){var i=this.w;i.globals.events.hasOwnProperty(t)?i.globals.events[t].push(e):i.globals.events[t]=[e]}},{key:"removeEventListener",value:function(t,e){var i=this.w;if(i.globals.events.hasOwnProperty(t)){var a=i.globals.events[t].indexOf(e);-1!==a&&i.globals.events[t].splice(a,1)}}},{key:"fireEvent",value:function(t,e){var i=this.w;if(i.globals.events.hasOwnProperty(t)){e&&e.length||(e=[]);for(var a=i.globals.events[t],s=a.length,r=0;r0&&(e=this.w.config.chart.locales.concat(window.Apex.chart.locales));var i=e.filter((function(e){return e.name===t}))[0];if(!i)throw new Error("Wrong locale name provided. Please make sure you set the correct locale name in options");var a=y.extend(T,i);this.w.globals.locale=a.options}}]),t}(),et=function(){function t(e){n(this,t),this.ctx=e,this.w=e.w}return h(t,[{key:"drawAxis",value:function(t,e){var i,a,s=this,r=this.w.globals,o=this.w.config,n=new q(this.ctx,e),l=new Q(this.ctx,e);r.axisCharts&&"radar"!==t&&(r.isBarHorizontal?(a=l.drawYaxisInversed(0),i=n.drawXaxisInversed(0),r.dom.elGraphical.add(i),r.dom.elGraphical.add(a)):(i=n.drawXaxis(),r.dom.elGraphical.add(i),o.yaxis.map((function(t,e){if(-1===r.ignoreYAxisIndexes.indexOf(e)&&(a=l.drawYaxis(e),r.dom.Paper.add(a),"back"===s.w.config.grid.position)){var i=r.dom.Paper.children()[1];i.remove(),r.dom.Paper.add(i)}}))))}}]),t}(),it=function(){function t(e){n(this,t),this.ctx=e,this.w=e.w}return h(t,[{key:"drawXCrosshairs",value:function(){var t=this.w,e=new A(this.ctx),i=new k(this.ctx),a=t.config.xaxis.crosshairs.fill.gradient,s=t.config.xaxis.crosshairs.dropShadow,r=t.config.xaxis.crosshairs.fill.type,o=a.colorFrom,n=a.colorTo,l=a.opacityFrom,h=a.opacityTo,c=a.stops,d=s.enabled,g=s.left,u=s.top,p=s.blur,f=s.color,x=s.opacity,b=t.config.xaxis.crosshairs.fill.color;if(t.config.xaxis.crosshairs.show){"gradient"===r&&(b=e.drawGradient("vertical",o,n,l,h,null,c,null));var v=e.drawRect();1===t.config.xaxis.crosshairs.width&&(v=e.drawLine());var m=t.globals.gridHeight;(!y.isNumber(m)||m<0)&&(m=0);var w=t.config.xaxis.crosshairs.width;(!y.isNumber(w)||w<0)&&(w=0),v.attr({class:"apexcharts-xcrosshairs",x:0,y:0,y2:m,width:w,height:m,fill:b,filter:"none","fill-opacity":t.config.xaxis.crosshairs.opacity,stroke:t.config.xaxis.crosshairs.stroke.color,"stroke-width":t.config.xaxis.crosshairs.stroke.width,"stroke-dasharray":t.config.xaxis.crosshairs.stroke.dashArray}),d&&(v=i.dropShadow(v,{left:g,top:u,blur:p,color:f,opacity:x})),t.globals.dom.elGraphical.add(v)}}},{key:"drawYCrosshairs",value:function(){var t=this.w,e=new A(this.ctx),i=t.config.yaxis[0].crosshairs,a=t.globals.barPadForNumericAxis;if(t.config.yaxis[0].crosshairs.show){var s=e.drawLine(-a,0,t.globals.gridWidth+a,0,i.stroke.color,i.stroke.dashArray,i.stroke.width);s.attr({class:"apexcharts-ycrosshairs"}),t.globals.dom.elGraphical.add(s)}var r=e.drawLine(-a,0,t.globals.gridWidth+a,0,i.stroke.color,0,0);r.attr({class:"apexcharts-ycrosshairs-hidden"}),t.globals.dom.elGraphical.add(r)}}]),t}(),at=function(){function t(e){n(this,t),this.ctx=e,this.w=e.w}return h(t,[{key:"checkResponsiveConfig",value:function(t){var e=this,i=this.w,a=i.config;if(0!==a.responsive.length){var s=a.responsive.slice();s.sort((function(t,e){return t.breakpoint>e.breakpoint?1:e.breakpoint>t.breakpoint?-1:0})).reverse();var r=new H({}),o=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},a=s[0].breakpoint,o=window.innerWidth>0?window.innerWidth:screen.width;if(o>a){var n=S.extendArrayProps(r,i.globals.initialConfig,i);t=y.extend(n,t),t=y.extend(i.config,t),e.overrideResponsiveOptions(t)}else for(var l=0;l0&&"function"==typeof i.config.colors[0]&&(i.globals.colors=i.config.series.map((function(t,a){var s=i.config.colors[a];return s||(s=i.config.colors[0]),"function"==typeof s?(e.isColorFn=!0,s({value:i.globals.axisCharts?i.globals.series[a][0]?i.globals.series[a][0]:0:i.globals.series[a],seriesIndex:a,dataPointIndex:a,w:i})):s})))),i.globals.seriesColors.map((function(t,e){t&&(i.globals.colors[e]=t)})),i.config.theme.monochrome.enabled){var s=[],r=i.globals.series.length;(this.isBarDistributed||this.isHeatmapDistributed)&&(r=i.globals.series[0].length*i.globals.series.length);for(var o=i.config.theme.monochrome.color,n=1/(r/i.config.theme.monochrome.shadeIntensity),l=i.config.theme.monochrome.shadeTo,h=0,c=0;c2&&void 0!==arguments[2]?arguments[2]:null,a=this.w,s=e||a.globals.series.length;if(null===i&&(i=this.isBarDistributed||this.isHeatmapDistributed||"heatmap"===a.config.chart.type&&a.config.plotOptions.heatmap.colorScale.inverse),i&&a.globals.series.length&&(s=a.globals.series[a.globals.maxValsInArrayIndex].length*a.globals.series.length),t.lengtht.globals.svgWidth&&(this.dCtx.lgRect.width=t.globals.svgWidth/1.5),this.dCtx.lgRect}},{key:"getLargestStringFromMultiArr",value:function(t,e){var i=t;if(this.w.globals.isMultiLineX){var a=e.map((function(t,e){return Array.isArray(t)?t.length:1})),s=Math.max.apply(Math,b(a));i=e[a.indexOf(s)]}return i}}]),t}(),nt=function(){function t(e){n(this,t),this.w=e.w,this.dCtx=e}return h(t,[{key:"getxAxisLabelsCoords",value:function(){var t,e=this.w,i=e.globals.labels.slice();if(e.config.xaxis.convertedCatToNumeric&&0===i.length&&(i=e.globals.categoryLabels),e.globals.timescaleLabels.length>0){var a=this.getxAxisTimeScaleLabelsCoords();t={width:a.width,height:a.height},e.globals.rotateXLabels=!1}else{this.dCtx.lgWidthForSideLegends="left"!==e.config.legend.position&&"right"!==e.config.legend.position||e.config.legend.floating?0:this.dCtx.lgRect.width;var s=e.globals.xLabelFormatter,r=y.getLargestStringFromArr(i),o=this.dCtx.dimHelpers.getLargestStringFromMultiArr(r,i);e.globals.isBarHorizontal&&(o=r=e.globals.yAxisScale[0].result.reduce((function(t,e){return t.length>e.length?t:e}),0));var n=new E(this.dCtx.ctx),l=r;r=n.xLabelFormat(s,r,l,{i:void 0,dateFormatter:new X(this.dCtx.ctx).formatDate,w:e}),o=n.xLabelFormat(s,o,l,{i:void 0,dateFormatter:new X(this.dCtx.ctx).formatDate,w:e}),(e.config.xaxis.convertedCatToNumeric&&void 0===r||""===String(r).trim())&&(o=r="1");var h=new A(this.dCtx.ctx),c=h.getTextRects(r,e.config.xaxis.labels.style.fontSize),d=c;if(r!==o&&(d=h.getTextRects(o,e.config.xaxis.labels.style.fontSize)),(t={width:c.width>=d.width?c.width:d.width,height:c.height>=d.height?c.height:d.height}).width*i.length>e.globals.svgWidth-this.dCtx.lgWidthForSideLegends-this.dCtx.yAxisWidth-this.dCtx.gridPad.left-this.dCtx.gridPad.right&&0!==e.config.xaxis.labels.rotate||e.config.xaxis.labels.rotateAlways){if(!e.globals.isBarHorizontal){e.globals.rotateXLabels=!0;var g=function(t){return h.getTextRects(t,e.config.xaxis.labels.style.fontSize,e.config.xaxis.labels.style.fontFamily,"rotate(".concat(e.config.xaxis.labels.rotate," 0 0)"),!1)};c=g(r),r!==o&&(d=g(o)),t.height=(c.height>d.height?c.height:d.height)/1.5,t.width=c.width>d.width?c.width:d.width}}else e.globals.rotateXLabels=!1}return e.config.xaxis.labels.show||(t={width:0,height:0}),{width:t.width,height:t.height}}},{key:"getxAxisGroupLabelsCoords",value:function(){var t,e=this.w;if(!e.globals.hasXaxisGroups)return{width:0,height:0};var i,a=(null===(t=e.config.xaxis.group.style)||void 0===t?void 0:t.fontSize)||e.config.xaxis.labels.style.fontSize,s=e.globals.groups.map((function(t){return t.title})),r=y.getLargestStringFromArr(s),o=this.dCtx.dimHelpers.getLargestStringFromMultiArr(r,s),n=new A(this.dCtx.ctx),l=n.getTextRects(r,a),h=l;return r!==o&&(h=n.getTextRects(o,a)),i={width:l.width>=h.width?l.width:h.width,height:l.height>=h.height?l.height:h.height},e.config.xaxis.labels.show||(i={width:0,height:0}),{width:i.width,height:i.height}}},{key:"getxAxisTitleCoords",value:function(){var t=this.w,e=0,i=0;if(void 0!==t.config.xaxis.title.text){var a=new A(this.dCtx.ctx).getTextRects(t.config.xaxis.title.text,t.config.xaxis.title.style.fontSize);e=a.width,i=a.height}return{width:e,height:i}}},{key:"getxAxisTimeScaleLabelsCoords",value:function(){var t,e=this.w;this.dCtx.timescaleLabels=e.globals.timescaleLabels.slice();var i=this.dCtx.timescaleLabels.map((function(t){return t.value})),a=i.reduce((function(t,e){return void 0===t?(console.error("You have possibly supplied invalid Date format. Please supply a valid JavaScript Date"),0):t.length>e.length?t:e}),0);return 1.05*(t=new A(this.dCtx.ctx).getTextRects(a,e.config.xaxis.labels.style.fontSize)).width*i.length>e.globals.gridWidth&&0!==e.config.xaxis.labels.rotate&&(e.globals.overlappingXLabels=!0),t}},{key:"additionalPaddingXLabels",value:function(t){var e=this,i=this.w,a=i.globals,s=i.config,r=s.xaxis.type,o=t.width;a.skipLastTimelinelabel=!1,a.skipFirstTimelinelabel=!1;var n=i.config.yaxis[0].opposite&&i.globals.isBarHorizontal,l=function(t,n){s.yaxis.length>1&&function(t){return-1!==a.collapsedSeriesIndices.indexOf(t)}(n)||function(t){if(e.dCtx.timescaleLabels&&e.dCtx.timescaleLabels.length){var n=e.dCtx.timescaleLabels[0],l=e.dCtx.timescaleLabels[e.dCtx.timescaleLabels.length-1].position+o/1.75-e.dCtx.yAxisWidthRight,h=n.position-o/1.75+e.dCtx.yAxisWidthLeft,c="right"===i.config.legend.position&&e.dCtx.lgRect.width>0?e.dCtx.lgRect.width:0;l>a.svgWidth-a.translateX-c&&(a.skipLastTimelinelabel=!0),h<-(t.show&&!t.floating||"bar"!==s.chart.type&&"candlestick"!==s.chart.type&&"rangeBar"!==s.chart.type&&"boxPlot"!==s.chart.type?10:o/1.75)&&(a.skipFirstTimelinelabel=!0)}else"datetime"===r?e.dCtx.gridPad.right(null===(a=String(c(e,n)))||void 0===a?void 0:a.length)?t:e}),d),u=g=c(g,n);if(void 0!==g&&0!==g.length||(g=l.niceMax),e.globals.isBarHorizontal){a=0;var p=e.globals.labels.slice();g=y.getLargestStringFromArr(p),g=c(g,{seriesIndex:o,dataPointIndex:-1,w:e}),u=t.dCtx.dimHelpers.getLargestStringFromMultiArr(g,p)}var f=new A(t.dCtx.ctx),x="rotate(".concat(r.labels.rotate," 0 0)"),b=f.getTextRects(g,r.labels.style.fontSize,r.labels.style.fontFamily,x,!1),v=b;g!==u&&(v=f.getTextRects(u,r.labels.style.fontSize,r.labels.style.fontFamily,x,!1)),i.push({width:(h>v.width||h>b.width?h:v.width>b.width?v.width:b.width)+a,height:v.height>b.height?v.height:b.height})}else i.push({width:0,height:0})})),i}},{key:"getyAxisTitleCoords",value:function(){var t=this,e=this.w,i=[];return e.config.yaxis.map((function(e,a){if(e.show&&void 0!==e.title.text){var s=new A(t.dCtx.ctx),r="rotate(".concat(e.title.rotate," 0 0)"),o=s.getTextRects(e.title.text,e.title.style.fontSize,e.title.style.fontFamily,r,!1);i.push({width:o.width,height:o.height})}else i.push({width:0,height:0})})),i}},{key:"getTotalYAxisWidth",value:function(){var t=this.w,e=0,i=0,a=0,s=t.globals.yAxisScale.length>1?10:0,r=new _(this.dCtx.ctx),o=function(o,n){var l=t.config.yaxis[n].floating,h=0;o.width>0&&!l?(h=o.width+s,function(e){return t.globals.ignoreYAxisIndexes.indexOf(e)>-1}(n)&&(h=h-o.width-s)):h=l||r.isYAxisHidden(n)?0:5,t.config.yaxis[n].opposite?a+=h:i+=h,e+=h};return t.globals.yLabelsCoords.map((function(t,e){o(t,e)})),t.globals.yTitleCoords.map((function(t,e){o(t,e)})),t.globals.isBarHorizontal&&!t.config.yaxis[0].floating&&(e=t.globals.yLabelsCoords[0].width+t.globals.yTitleCoords[0].width+15),this.dCtx.yAxisWidthLeft=i,this.dCtx.yAxisWidthRight=a,e}}]),t}(),ht=function(){function t(e){n(this,t),this.w=e.w,this.dCtx=e}return h(t,[{key:"gridPadForColumnsInNumericAxis",value:function(t){var e=this.w;if(e.globals.noData||e.globals.allSeriesCollapsed)return 0;var i=function(t){return"bar"===t||"rangeBar"===t||"candlestick"===t||"boxPlot"===t},a=e.config.chart.type,s=0,r=i(a)?e.config.series.length:1;if(e.globals.comboBarCount>0&&(r=e.globals.comboBarCount),e.globals.collapsedSeries.forEach((function(t){i(t.type)&&(r-=1)})),e.config.chart.stacked&&(r=1),(i(a)||e.globals.comboBarCount>0)&&e.globals.isXNumeric&&!e.globals.isBarHorizontal&&r>0){var o,n,l=Math.abs(e.globals.initialMaxX-e.globals.initialMinX);l<=3&&(l=e.globals.dataPoints),o=l/t,e.globals.minXDiff&&e.globals.minXDiff/o>0&&(n=e.globals.minXDiff/o),n>t/2&&(n/=2),(s=n/r*parseInt(e.config.plotOptions.bar.columnWidth,10)/100)<1&&(s=1),s=s/(r>1?1:1.5)+5,e.globals.barPadForNumericAxis=s}return s}},{key:"gridPadFortitleSubtitle",value:function(){var t=this,e=this.w,i=e.globals,a=this.dCtx.isSparkline||!e.globals.axisCharts?0:10;["title","subtitle"].forEach((function(i){void 0!==e.config[i].text?a+=e.config[i].margin:a+=t.dCtx.isSparkline||!e.globals.axisCharts?0:5})),!e.config.legend.show||"bottom"!==e.config.legend.position||e.config.legend.floating||e.globals.axisCharts||(a+=10);var s=this.dCtx.dimHelpers.getTitleSubtitleCoords("title"),r=this.dCtx.dimHelpers.getTitleSubtitleCoords("subtitle");i.gridHeight=i.gridHeight-s.height-r.height-a,i.translateY=i.translateY+s.height+r.height+a}},{key:"setGridXPosForDualYAxis",value:function(t,e){var i=this.w,a=new _(this.dCtx.ctx);i.config.yaxis.map((function(s,r){-1!==i.globals.ignoreYAxisIndexes.indexOf(r)||s.floating||a.isYAxisHidden(r)||(s.opposite&&(i.globals.translateX=i.globals.translateX-(e[r].width+t[r].width)-parseInt(i.config.yaxis[r].labels.style.fontSize,10)/1.2-12),i.globals.translateX<2&&(i.globals.translateX=2))}))}}]),t}(),ct=function(){function t(e){n(this,t),this.ctx=e,this.w=e.w,this.lgRect={},this.yAxisWidth=0,this.yAxisWidthLeft=0,this.yAxisWidthRight=0,this.xAxisHeight=0,this.isSparkline=this.w.config.chart.sparkline.enabled,this.dimHelpers=new ot(this),this.dimYAxis=new lt(this),this.dimXAxis=new nt(this),this.dimGrid=new ht(this),this.lgWidthForSideLegends=0,this.gridPad=this.w.config.grid.padding,this.xPadRight=0,this.xPadLeft=0}return h(t,[{key:"plotCoords",value:function(){var t=this,e=this.w,i=e.globals;this.lgRect=this.dimHelpers.getLegendsRect(),this.isSparkline&&((e.config.markers.discrete.length>0||e.config.markers.size>0)&&Object.entries(this.gridPad).forEach((function(e){var i=x(e,2),a=i[0],s=i[1];t.gridPad[a]=Math.max(s,t.w.globals.markers.largestSize/1.5)})),this.gridPad.top=Math.max(e.config.stroke.width/2,this.gridPad.top),this.gridPad.bottom=Math.max(e.config.stroke.width/2,this.gridPad.bottom)),i.axisCharts?this.setDimensionsForAxisCharts():this.setDimensionsForNonAxisCharts(),this.dimGrid.gridPadFortitleSubtitle(),i.gridHeight=i.gridHeight-this.gridPad.top-this.gridPad.bottom,i.gridWidth=i.gridWidth-this.gridPad.left-this.gridPad.right-this.xPadRight-this.xPadLeft;var a=this.dimGrid.gridPadForColumnsInNumericAxis(i.gridWidth);i.gridWidth=i.gridWidth-2*a,i.translateX=i.translateX+this.gridPad.left+this.xPadLeft+(a>0?a+4:0),i.translateY=i.translateY+this.gridPad.top}},{key:"setDimensionsForAxisCharts",value:function(){var t=this,e=this.w,i=e.globals,a=this.dimYAxis.getyAxisLabelsCoords(),s=this.dimYAxis.getyAxisTitleCoords();e.globals.yLabelsCoords=[],e.globals.yTitleCoords=[],e.config.yaxis.map((function(t,i){e.globals.yLabelsCoords.push({width:a[i].width,index:i}),e.globals.yTitleCoords.push({width:s[i].width,index:i})})),this.yAxisWidth=this.dimYAxis.getTotalYAxisWidth();var r=this.dimXAxis.getxAxisLabelsCoords(),o=this.dimXAxis.getxAxisGroupLabelsCoords(),n=this.dimXAxis.getxAxisTitleCoords();this.conditionalChecksForAxisCoords(r,n,o),i.translateXAxisY=e.globals.rotateXLabels?this.xAxisHeight/8:-4,i.translateXAxisX=e.globals.rotateXLabels&&e.globals.isXNumeric&&e.config.xaxis.labels.rotate<=-45?-this.xAxisWidth/4:0,e.globals.isBarHorizontal&&(i.rotateXLabels=!1,i.translateXAxisY=parseInt(e.config.xaxis.labels.style.fontSize,10)/1.5*-1),i.translateXAxisY=i.translateXAxisY+e.config.xaxis.labels.offsetY,i.translateXAxisX=i.translateXAxisX+e.config.xaxis.labels.offsetX;var l=this.yAxisWidth,h=this.xAxisHeight;i.xAxisLabelsHeight=this.xAxisHeight-n.height,i.xAxisGroupLabelsHeight=i.xAxisLabelsHeight-r.height,i.xAxisLabelsWidth=this.xAxisWidth,i.xAxisHeight=this.xAxisHeight;var c=10;("radar"===e.config.chart.type||this.isSparkline)&&(l=0,h=i.goldenPadding),this.isSparkline&&(this.lgRect={height:0,width:0}),(this.isSparkline||"treemap"===e.config.chart.type)&&(l=0,h=0,c=0),this.isSparkline||this.dimXAxis.additionalPaddingXLabels(r);var d=function(){i.translateX=l,i.gridHeight=i.svgHeight-t.lgRect.height-h-(t.isSparkline||"treemap"===e.config.chart.type?0:e.globals.rotateXLabels?10:15),i.gridWidth=i.svgWidth-l};switch("top"===e.config.xaxis.position&&(c=i.xAxisHeight-e.config.xaxis.axisTicks.height-5),e.config.legend.position){case"bottom":i.translateY=c,d();break;case"top":i.translateY=this.lgRect.height+c,d();break;case"left":i.translateY=c,i.translateX=this.lgRect.width+l,i.gridHeight=i.svgHeight-h-12,i.gridWidth=i.svgWidth-this.lgRect.width-l;break;case"right":i.translateY=c,i.translateX=l,i.gridHeight=i.svgHeight-h-12,i.gridWidth=i.svgWidth-this.lgRect.width-l-5;break;default:throw new Error("Legend position not supported")}this.dimGrid.setGridXPosForDualYAxis(s,a),new Q(this.ctx).setYAxisXPosition(a,s)}},{key:"setDimensionsForNonAxisCharts",value:function(){var t=this.w,e=t.globals,i=t.config,a=0;t.config.legend.show&&!t.config.legend.floating&&(a=20);var s="pie"===i.chart.type||"polarArea"===i.chart.type||"donut"===i.chart.type?"pie":"radialBar",r=i.plotOptions[s].offsetY,o=i.plotOptions[s].offsetX;if(!i.legend.show||i.legend.floating)return e.gridHeight=e.svgHeight-i.grid.padding.left+i.grid.padding.right,e.gridWidth=e.gridHeight,e.translateY=r,void(e.translateX=o+(e.svgWidth-e.gridWidth)/2);switch(i.legend.position){case"bottom":e.gridHeight=e.svgHeight-this.lgRect.height-e.goldenPadding,e.gridWidth=e.svgWidth,e.translateY=r-10,e.translateX=o+(e.svgWidth-e.gridWidth)/2;break;case"top":e.gridHeight=e.svgHeight-this.lgRect.height-e.goldenPadding,e.gridWidth=e.svgWidth,e.translateY=this.lgRect.height+r+10,e.translateX=o+(e.svgWidth-e.gridWidth)/2;break;case"left":e.gridWidth=e.svgWidth-this.lgRect.width-a,e.gridHeight="auto"!==i.chart.height?e.svgHeight:e.gridWidth,e.translateY=r,e.translateX=o+this.lgRect.width+a;break;case"right":e.gridWidth=e.svgWidth-this.lgRect.width-a-5,e.gridHeight="auto"!==i.chart.height?e.svgHeight:e.gridWidth,e.translateY=r,e.translateX=o+10;break;default:throw new Error("Legend position not supported")}}},{key:"conditionalChecksForAxisCoords",value:function(t,e,i){var a=this.w,s=a.globals.hasXaxisGroups?2:1,r=i.height+t.height+e.height,o=a.globals.isMultiLineX?1.2:a.globals.LINE_HEIGHT_RATIO,n=a.globals.rotateXLabels?22:10,l=a.globals.rotateXLabels&&"bottom"===a.config.legend.position?10:0;this.xAxisHeight=r*o+s*n+l,this.xAxisWidth=t.width,this.xAxisHeight-e.height>a.config.xaxis.labels.maxHeight&&(this.xAxisHeight=a.config.xaxis.labels.maxHeight),a.config.xaxis.labels.minHeight&&this.xAxisHeightc&&(this.yAxisWidth=c)}}]),t}(),dt=function(){function t(e){n(this,t),this.w=e.w,this.lgCtx=e}return h(t,[{key:"getLegendStyles",value:function(){var t,e,i,a=document.createElement("style");a.setAttribute("type","text/css");var s=(null===(t=this.lgCtx.ctx)||void 0===t||null===(e=t.opts)||void 0===e||null===(i=e.chart)||void 0===i?void 0:i.nonce)||this.w.config.chart.nonce;s&&a.setAttribute("nonce",s);var r=document.createTextNode("\n .apexcharts-legend {\n display: flex;\n overflow: auto;\n padding: 0 10px;\n }\n .apexcharts-legend.apx-legend-position-bottom, .apexcharts-legend.apx-legend-position-top {\n flex-wrap: wrap\n }\n .apexcharts-legend.apx-legend-position-right, .apexcharts-legend.apx-legend-position-left {\n flex-direction: column;\n bottom: 0;\n }\n .apexcharts-legend.apx-legend-position-bottom.apexcharts-align-left, .apexcharts-legend.apx-legend-position-top.apexcharts-align-left, .apexcharts-legend.apx-legend-position-right, .apexcharts-legend.apx-legend-position-left {\n justify-content: flex-start;\n }\n .apexcharts-legend.apx-legend-position-bottom.apexcharts-align-center, .apexcharts-legend.apx-legend-position-top.apexcharts-align-center {\n justify-content: center;\n }\n .apexcharts-legend.apx-legend-position-bottom.apexcharts-align-right, .apexcharts-legend.apx-legend-position-top.apexcharts-align-right {\n justify-content: flex-end;\n }\n .apexcharts-legend-series {\n cursor: pointer;\n line-height: normal;\n }\n .apexcharts-legend.apx-legend-position-bottom .apexcharts-legend-series, .apexcharts-legend.apx-legend-position-top .apexcharts-legend-series{\n display: flex;\n align-items: center;\n }\n .apexcharts-legend-text {\n position: relative;\n font-size: 14px;\n }\n .apexcharts-legend-text *, .apexcharts-legend-marker * {\n pointer-events: none;\n }\n .apexcharts-legend-marker {\n position: relative;\n display: inline-block;\n cursor: pointer;\n margin-right: 3px;\n border-style: solid;\n }\n\n .apexcharts-legend.apexcharts-align-right .apexcharts-legend-series, .apexcharts-legend.apexcharts-align-left .apexcharts-legend-series{\n display: inline-block;\n }\n .apexcharts-legend-series.apexcharts-no-click {\n cursor: auto;\n }\n .apexcharts-legend .apexcharts-hidden-zero-series, .apexcharts-legend .apexcharts-hidden-null-series {\n display: none !important;\n }\n .apexcharts-inactive-legend {\n opacity: 0.45;\n }");return a.appendChild(r),a}},{key:"getLegendBBox",value:function(){var t=this.w.globals.dom.baseEl.querySelector(".apexcharts-legend").getBoundingClientRect(),e=t.width;return{clwh:t.height,clww:e}}},{key:"appendToForeignObject",value:function(){this.w.globals.dom.elLegendForeign.appendChild(this.getLegendStyles())}},{key:"toggleDataSeries",value:function(t,e){var i=this,a=this.w;if(a.globals.axisCharts||"radialBar"===a.config.chart.type){a.globals.resized=!0;var s=null,r=null;a.globals.risingSeries=[],a.globals.axisCharts?(s=a.globals.dom.baseEl.querySelector(".apexcharts-series[data\\:realIndex='".concat(t,"']")),r=parseInt(s.getAttribute("data:realIndex"),10)):(s=a.globals.dom.baseEl.querySelector(".apexcharts-series[rel='".concat(t+1,"']")),r=parseInt(s.getAttribute("rel"),10)-1),e?[{cs:a.globals.collapsedSeries,csi:a.globals.collapsedSeriesIndices},{cs:a.globals.ancillaryCollapsedSeries,csi:a.globals.ancillaryCollapsedSeriesIndices}].forEach((function(t){i.riseCollapsedSeries(t.cs,t.csi,r)})):this.hideSeries({seriesEl:s,realIndex:r})}else{var o=a.globals.dom.Paper.select(" .apexcharts-series[rel='".concat(t+1,"'] path")),n=a.config.chart.type;if("pie"===n||"polarArea"===n||"donut"===n){var l=a.config.plotOptions.pie.donut.labels;new A(this.lgCtx.ctx).pathMouseDown(o.members[0],null),this.lgCtx.ctx.pie.printDataLabelsInner(o.members[0].node,l)}o.fire("click")}}},{key:"hideSeries",value:function(t){var e=t.seriesEl,i=t.realIndex,a=this.w,s=y.clone(a.config.series);if(a.globals.axisCharts){var r=!1;if(a.config.yaxis[i]&&a.config.yaxis[i].show&&a.config.yaxis[i].showAlways&&(r=!0,a.globals.ancillaryCollapsedSeriesIndices.indexOf(i)<0&&(a.globals.ancillaryCollapsedSeries.push({index:i,data:s[i].data.slice(),type:e.parentNode.className.baseVal.split("-")[1]}),a.globals.ancillaryCollapsedSeriesIndices.push(i))),!r){a.globals.collapsedSeries.push({index:i,data:s[i].data.slice(),type:e.parentNode.className.baseVal.split("-")[1]}),a.globals.collapsedSeriesIndices.push(i);var o=a.globals.risingSeries.indexOf(i);a.globals.risingSeries.splice(o,1)}}else a.globals.collapsedSeries.push({index:i,data:s[i]}),a.globals.collapsedSeriesIndices.push(i);for(var n=e.childNodes,l=0;l0){for(var r=0;r-1&&(t[a].data=[])})):t.forEach((function(i,a){e.globals.collapsedSeriesIndices.indexOf(a)>-1&&(t[a]=0)})),t}}]),t}(),gt=function(){function t(e){n(this,t),this.ctx=e,this.w=e.w,this.onLegendClick=this.onLegendClick.bind(this),this.onLegendHovered=this.onLegendHovered.bind(this),this.isBarsDistributed="bar"===this.w.config.chart.type&&this.w.config.plotOptions.bar.distributed&&1===this.w.config.series.length,this.legendHelpers=new dt(this)}return h(t,[{key:"init",value:function(){var t=this.w,e=t.globals,i=t.config;if((i.legend.showForSingleSeries&&1===e.series.length||this.isBarsDistributed||e.series.length>1||!e.axisCharts)&&i.legend.show){for(;e.dom.elLegendWrap.firstChild;)e.dom.elLegendWrap.removeChild(e.dom.elLegendWrap.firstChild);this.drawLegends(),y.isIE11()?document.getElementsByTagName("head")[0].appendChild(this.legendHelpers.getLegendStyles()):this.legendHelpers.appendToForeignObject(),"bottom"===i.legend.position||"top"===i.legend.position?this.legendAlignHorizontal():"right"!==i.legend.position&&"left"!==i.legend.position||this.legendAlignVertical()}}},{key:"drawLegends",value:function(){var t=this,e=this.w,i=e.config.legend.fontFamily,a=e.globals.seriesNames,s=e.globals.colors.slice();if("heatmap"===e.config.chart.type){var r=e.config.plotOptions.heatmap.colorScale.ranges;a=r.map((function(t){return t.name?t.name:t.from+" - "+t.to})),s=r.map((function(t){return t.color}))}else this.isBarsDistributed&&(a=e.globals.labels.slice());e.config.legend.customLegendItems.length&&(a=e.config.legend.customLegendItems);for(var o=e.globals.legendFormatter,n=e.config.legend.inverseOrder,l=n?a.length-1:0;n?l>=0:l<=a.length-1;n?l--:l++){var h,c=o(a[l],{seriesIndex:l,w:e}),d=!1,g=!1;if(e.globals.collapsedSeries.length>0)for(var u=0;u0)for(var p=0;p0?l-10:0)+(h>0?h-10:0)}a.style.position="absolute",r=r+t+i.config.legend.offsetX,o=o+e+i.config.legend.offsetY,a.style.left=r+"px",a.style.top=o+"px","bottom"===i.config.legend.position?(a.style.top="auto",a.style.bottom=5-i.config.legend.offsetY+"px"):"right"===i.config.legend.position&&(a.style.left="auto",a.style.right=25+i.config.legend.offsetX+"px"),["width","height"].forEach((function(t){a.style[t]&&(a.style[t]=parseInt(i.config.legend[t],10)+"px")}))}},{key:"legendAlignHorizontal",value:function(){var t=this.w;t.globals.dom.elLegendWrap.style.right=0;var e=this.legendHelpers.getLegendBBox(),i=new ct(this.ctx),a=i.dimHelpers.getTitleSubtitleCoords("title"),s=i.dimHelpers.getTitleSubtitleCoords("subtitle"),r=0;"bottom"===t.config.legend.position?r=-e.clwh/1.8:"top"===t.config.legend.position&&(r=a.height+s.height+t.config.title.margin+t.config.subtitle.margin-10),this.setLegendWrapXY(20,r)}},{key:"legendAlignVertical",value:function(){var t=this.w,e=this.legendHelpers.getLegendBBox(),i=0;"left"===t.config.legend.position&&(i=20),"right"===t.config.legend.position&&(i=t.globals.svgWidth-e.clww-10),this.setLegendWrapXY(i,20)}},{key:"onLegendHovered",value:function(t){var e=this.w,i=t.target.classList.contains("apexcharts-legend-series")||t.target.classList.contains("apexcharts-legend-text")||t.target.classList.contains("apexcharts-legend-marker");if("heatmap"===e.config.chart.type||this.isBarsDistributed){if(i){var a=parseInt(t.target.getAttribute("rel"),10)-1;this.ctx.events.fireEvent("legendHover",[this.ctx,a,this.w]),new V(this.ctx).highlightRangeInSeries(t,t.target)}}else!t.target.classList.contains("apexcharts-inactive-legend")&&i&&new V(this.ctx).toggleSeriesOnHover(t,t.target)}},{key:"onLegendClick",value:function(t){var e=this.w;if(!e.config.legend.customLegendItems.length&&(t.target.classList.contains("apexcharts-legend-series")||t.target.classList.contains("apexcharts-legend-text")||t.target.classList.contains("apexcharts-legend-marker"))){var i=parseInt(t.target.getAttribute("rel"),10)-1,a="true"===t.target.getAttribute("data:collapsed"),s=this.w.config.chart.events.legendClick;"function"==typeof s&&s(this.ctx,i,this.w),this.ctx.events.fireEvent("legendClick",[this.ctx,i,this.w]);var r=this.w.config.legend.markers.onClick;"function"==typeof r&&t.target.classList.contains("apexcharts-legend-marker")&&(r(this.ctx,i,this.w),this.ctx.events.fireEvent("legendMarkerClick",[this.ctx,i,this.w])),"treemap"!==e.config.chart.type&&"heatmap"!==e.config.chart.type&&!this.isBarsDistributed&&e.config.legend.onItemClick.toggleDataSeries&&this.legendHelpers.toggleDataSeries(i,a)}}}]),t}(),ut=function(){function t(e){n(this,t),this.ctx=e,this.w=e.w;var i=this.w;this.ev=this.w.config.chart.events,this.selectedClass="apexcharts-selected",this.localeValues=this.w.globals.locale.toolbar,this.minX=i.globals.minX,this.maxX=i.globals.maxX}return h(t,[{key:"createToolbar",value:function(){var t=this,e=this.w,i=function(){return document.createElement("div")},a=i();if(a.setAttribute("class","apexcharts-toolbar"),a.style.top=e.config.chart.toolbar.offsetY+"px",a.style.right=3-e.config.chart.toolbar.offsetX+"px",e.globals.dom.elWrap.appendChild(a),this.elZoom=i(),this.elZoomIn=i(),this.elZoomOut=i(),this.elPan=i(),this.elSelection=i(),this.elZoomReset=i(),this.elMenuIcon=i(),this.elMenu=i(),this.elCustomIcons=[],this.t=e.config.chart.toolbar.tools,Array.isArray(this.t.customIcons))for(var s=0;s\n \n \n\n'),o("zoomOut",this.elZoomOut,'\n \n \n\n');var n=function(i){t.t[i]&&e.config.chart[i].enabled&&r.push({el:"zoom"===i?t.elZoom:t.elSelection,icon:"string"==typeof t.t[i]?t.t[i]:"zoom"===i?'\n \n \n \n':'\n \n \n',title:t.localeValues["zoom"===i?"selectionZoom":"selection"],class:e.globals.isTouchDevice?"apexcharts-element-hidden":"apexcharts-".concat(i,"-icon")})};n("zoom"),n("selection"),this.t.pan&&e.config.chart.zoom.enabled&&r.push({el:this.elPan,icon:"string"==typeof this.t.pan?this.t.pan:'\n \n \n \n \n \n \n \n',title:this.localeValues.pan,class:e.globals.isTouchDevice?"apexcharts-element-hidden":"apexcharts-pan-icon"}),o("reset",this.elZoomReset,'\n \n \n'),this.t.download&&r.push({el:this.elMenuIcon,icon:"string"==typeof this.t.download?this.t.download:'',title:this.localeValues.menu,class:"apexcharts-menu-icon"});for(var l=0;l0&&e.height>0&&this.slDraggableRect.selectize({points:"l, r",pointSize:8,pointType:"rect"}).resize({constraint:{minX:0,minY:0,maxX:t.globals.gridWidth,maxY:t.globals.gridHeight}}).on("resizing",this.selectionDragging.bind(this,"resizing"))}}},{key:"preselectedSelection",value:function(){var t=this.w,e=this.xyRatios;if(!t.globals.zoomEnabled)if(void 0!==t.globals.selection&&null!==t.globals.selection)this.drawSelectionRect(t.globals.selection);else if(void 0!==t.config.chart.selection.xaxis.min&&void 0!==t.config.chart.selection.xaxis.max){var i=(t.config.chart.selection.xaxis.min-t.globals.minX)/e.xRatio,a=t.globals.gridWidth-(t.globals.maxX-t.config.chart.selection.xaxis.max)/e.xRatio-i;t.globals.isRangeBar&&(i=(t.config.chart.selection.xaxis.min-t.globals.yAxisScale[0].niceMin)/e.invertedYRatio,a=(t.config.chart.selection.xaxis.max-t.config.chart.selection.xaxis.min)/e.invertedYRatio);var s={x:i,y:0,width:a,height:t.globals.gridHeight,translateX:0,translateY:0,selectionEnabled:!0};this.drawSelectionRect(s),this.makeSelectionRectDraggable(),"function"==typeof t.config.chart.events.selection&&t.config.chart.events.selection(this.ctx,{xaxis:{min:t.config.chart.selection.xaxis.min,max:t.config.chart.selection.xaxis.max},yaxis:{}})}}},{key:"drawSelectionRect",value:function(t){var e=t.x,i=t.y,a=t.width,s=t.height,r=t.translateX,o=void 0===r?0:r,n=t.translateY,l=void 0===n?0:n,h=this.w,c=this.zoomRect,d=this.selectionRect;if(this.dragged||null!==h.globals.selection){var g={transform:"translate("+o+", "+l+")"};h.globals.zoomEnabled&&this.dragged&&(a<0&&(a=1),c.attr({x:e,y:i,width:a,height:s,fill:h.config.chart.zoom.zoomedArea.fill.color,"fill-opacity":h.config.chart.zoom.zoomedArea.fill.opacity,stroke:h.config.chart.zoom.zoomedArea.stroke.color,"stroke-width":h.config.chart.zoom.zoomedArea.stroke.width,"stroke-opacity":h.config.chart.zoom.zoomedArea.stroke.opacity}),A.setAttrs(c.node,g)),h.globals.selectionEnabled&&(d.attr({x:e,y:i,width:a>0?a:0,height:s>0?s:0,fill:h.config.chart.selection.fill.color,"fill-opacity":h.config.chart.selection.fill.opacity,stroke:h.config.chart.selection.stroke.color,"stroke-width":h.config.chart.selection.stroke.width,"stroke-dasharray":h.config.chart.selection.stroke.dashArray,"stroke-opacity":h.config.chart.selection.stroke.opacity}),A.setAttrs(d.node,g))}}},{key:"hideSelectionRect",value:function(t){t&&t.attr({x:0,y:0,width:0,height:0})}},{key:"selectionDrawing",value:function(t){var e=t.context,i=t.zoomtype,a=this.w,s=e,r=this.gridRect.getBoundingClientRect(),o=s.startX-1,n=s.startY,l=!1,h=!1,c=s.clientX-r.left-o,d=s.clientY-r.top-n,g={};return Math.abs(c+o)>a.globals.gridWidth?c=a.globals.gridWidth-o:s.clientX-r.left<0&&(c=o),o>s.clientX-r.left&&(l=!0,c=Math.abs(c)),n>s.clientY-r.top&&(h=!0,d=Math.abs(d)),g="x"===i?{x:l?o-c:o,y:0,width:c,height:a.globals.gridHeight}:"y"===i?{x:0,y:h?n-d:n,width:a.globals.gridWidth,height:d}:{x:l?o-c:o,y:h?n-d:n,width:c,height:d},s.drawSelectionRect(g),s.selectionDragging("resizing"),g}},{key:"selectionDragging",value:function(t,e){var i=this,a=this.w,s=this.xyRatios,r=this.selectionRect,o=0;"resizing"===t&&(o=30);var n=function(t){return parseFloat(r.node.getAttribute(t))},l={x:n("x"),y:n("y"),width:n("width"),height:n("height")};a.globals.selection=l,"function"==typeof a.config.chart.events.selection&&a.globals.selectionEnabled&&(clearTimeout(this.w.globals.selectionResizeTimer),this.w.globals.selectionResizeTimer=window.setTimeout((function(){var t,e,o,n,l=i.gridRect.getBoundingClientRect(),h=r.node.getBoundingClientRect();a.globals.isRangeBar?(t=a.globals.yAxisScale[0].niceMin+(h.left-l.left)*s.invertedYRatio,e=a.globals.yAxisScale[0].niceMin+(h.right-l.left)*s.invertedYRatio,o=0,n=1):(t=a.globals.xAxisScale.niceMin+(h.left-l.left)*s.xRatio,e=a.globals.xAxisScale.niceMin+(h.right-l.left)*s.xRatio,o=a.globals.yAxisScale[0].niceMin+(l.bottom-h.bottom)*s.yRatio[0],n=a.globals.yAxisScale[0].niceMax-(h.top-l.top)*s.yRatio[0]);var c={xaxis:{min:t,max:e},yaxis:{min:o,max:n}};a.config.chart.events.selection(i.ctx,c),a.config.chart.brush.enabled&&void 0!==a.config.chart.events.brushScrolled&&a.config.chart.events.brushScrolled(i.ctx,c)}),o))}},{key:"selectionDrawn",value:function(t){var e=t.context,i=t.zoomtype,a=this.w,s=e,r=this.xyRatios,o=this.ctx.toolbar;if(s.startX>s.endX){var n=s.startX;s.startX=s.endX,s.endX=n}if(s.startY>s.endY){var l=s.startY;s.startY=s.endY,s.endY=l}var h=void 0,c=void 0;a.globals.isRangeBar?(h=a.globals.yAxisScale[0].niceMin+s.startX*r.invertedYRatio,c=a.globals.yAxisScale[0].niceMin+s.endX*r.invertedYRatio):(h=a.globals.xAxisScale.niceMin+s.startX*r.xRatio,c=a.globals.xAxisScale.niceMin+s.endX*r.xRatio);var d=[],g=[];if(a.config.yaxis.forEach((function(t,e){d.push(a.globals.yAxisScale[e].niceMax-r.yRatio[e]*s.startY),g.push(a.globals.yAxisScale[e].niceMax-r.yRatio[e]*s.endY)})),s.dragged&&(s.dragX>10||s.dragY>10)&&h!==c)if(a.globals.zoomEnabled){var u=y.clone(a.globals.initialConfig.yaxis),p=y.clone(a.globals.initialConfig.xaxis);if(a.globals.zoomed=!0,a.config.xaxis.convertedCatToNumeric&&(h=Math.floor(h),c=Math.floor(c),h<1&&(h=1,c=a.globals.dataPoints),c-h<2&&(c=h+1)),"xy"!==i&&"x"!==i||(p={min:h,max:c}),"xy"!==i&&"y"!==i||u.forEach((function(t,e){u[e].min=g[e],u[e].max=d[e]})),a.config.chart.zoom.autoScaleYaxis){var f=new $(s.ctx);u=f.autoScaleY(s.ctx,u,{xaxis:p})}if(o){var x=o.getBeforeZoomRange(p,u);x&&(p=x.xaxis?x.xaxis:p,u=x.yaxis?x.yaxis:u)}var b={xaxis:p};a.config.chart.group||(b.yaxis=u),s.ctx.updateHelpers._updateOptions(b,!1,s.w.config.chart.animations.dynamicAnimation.enabled),"function"==typeof a.config.chart.events.zoomed&&o.zoomCallback(p,u)}else if(a.globals.selectionEnabled){var v,m=null;v={min:h,max:c},"xy"!==i&&"y"!==i||(m=y.clone(a.config.yaxis)).forEach((function(t,e){m[e].min=g[e],m[e].max=d[e]})),a.globals.selection=s.selection,"function"==typeof a.config.chart.events.selection&&a.config.chart.events.selection(s.ctx,{xaxis:v,yaxis:m})}}},{key:"panDragging",value:function(t){var e=t.context,i=this.w,a=e;if(void 0!==i.globals.lastClientPosition.x){var s=i.globals.lastClientPosition.x-a.clientX,r=i.globals.lastClientPosition.y-a.clientY;Math.abs(s)>Math.abs(r)&&s>0?this.moveDirection="left":Math.abs(s)>Math.abs(r)&&s<0?this.moveDirection="right":Math.abs(r)>Math.abs(s)&&r>0?this.moveDirection="up":Math.abs(r)>Math.abs(s)&&r<0&&(this.moveDirection="down")}i.globals.lastClientPosition={x:a.clientX,y:a.clientY};var o=i.globals.isRangeBar?i.globals.minY:i.globals.minX,n=i.globals.isRangeBar?i.globals.maxY:i.globals.maxX;i.config.xaxis.convertedCatToNumeric||a.panScrolled(o,n)}},{key:"delayedPanScrolled",value:function(){var t=this.w,e=t.globals.minX,i=t.globals.maxX,a=(t.globals.maxX-t.globals.minX)/2;"left"===this.moveDirection?(e=t.globals.minX+a,i=t.globals.maxX+a):"right"===this.moveDirection&&(e=t.globals.minX-a,i=t.globals.maxX-a),e=Math.floor(e),i=Math.floor(i),this.updateScrolledChart({xaxis:{min:e,max:i}},e,i)}},{key:"panScrolled",value:function(t,e){var i=this.w,a=this.xyRatios,s=y.clone(i.globals.initialConfig.yaxis),r=a.xRatio,o=i.globals.minX,n=i.globals.maxX;i.globals.isRangeBar&&(r=a.invertedYRatio,o=i.globals.minY,n=i.globals.maxY),"left"===this.moveDirection?(t=o+i.globals.gridWidth/15*r,e=n+i.globals.gridWidth/15*r):"right"===this.moveDirection&&(t=o-i.globals.gridWidth/15*r,e=n-i.globals.gridWidth/15*r),i.globals.isRangeBar||(ti.globals.initialMaxX)&&(t=o,e=n);var l={min:t,max:e};i.config.chart.zoom.autoScaleYaxis&&(s=new $(this.ctx).autoScaleY(this.ctx,s,{xaxis:l}));var h={xaxis:{min:t,max:e}};i.config.chart.group||(h.yaxis=s),this.updateScrolledChart(h,t,e)}},{key:"updateScrolledChart",value:function(t,e,i){var a=this.w;this.ctx.updateHelpers._updateOptions(t,!1,!1),"function"==typeof a.config.chart.events.scrolled&&a.config.chart.events.scrolled(this.ctx,{xaxis:{min:e,max:i}})}}]),i}(ut),ft=function(){function t(e){n(this,t),this.w=e.w,this.ttCtx=e,this.ctx=e.ctx}return h(t,[{key:"getNearestValues",value:function(t){var e=t.hoverArea,i=t.elGrid,a=t.clientX,s=t.clientY,r=this.w,o=i.getBoundingClientRect(),n=o.width,l=o.height,h=n/(r.globals.dataPoints-1),c=l/r.globals.dataPoints,d=this.hasBars();!r.globals.comboCharts&&!d||r.config.xaxis.convertedCatToNumeric||(h=n/r.globals.dataPoints);var g=a-o.left-r.globals.barPadForNumericAxis,u=s-o.top;g<0||u<0||g>n||u>l?(e.classList.remove("hovering-zoom"),e.classList.remove("hovering-pan")):r.globals.zoomEnabled?(e.classList.remove("hovering-pan"),e.classList.add("hovering-zoom")):r.globals.panEnabled&&(e.classList.remove("hovering-zoom"),e.classList.add("hovering-pan"));var p=Math.round(g/h),f=Math.floor(u/c);d&&!r.config.xaxis.convertedCatToNumeric&&(p=Math.ceil(g/h),p-=1);var x=null,b=null,v=r.globals.seriesXvalues.map((function(t){return t.filter((function(t){return y.isNumber(t)}))})),m=r.globals.seriesYvalues.map((function(t){return t.filter((function(t){return y.isNumber(t)}))}));if(r.globals.isXNumeric){var w=this.ttCtx.getElGrid().getBoundingClientRect(),k=g*(w.width/n),A=u*(w.height/l);x=(b=this.closestInMultiArray(k,A,v,m)).index,p=b.j,null!==x&&(v=r.globals.seriesXvalues[x],p=(b=this.closestInArray(k,v)).index)}return r.globals.capturedSeriesIndex=null===x?-1:x,(!p||p<1)&&(p=0),r.globals.isBarHorizontal?r.globals.capturedDataPointIndex=f:r.globals.capturedDataPointIndex=p,{capturedSeries:x,j:r.globals.isBarHorizontal?f:p,hoverX:g,hoverY:u}}},{key:"closestInMultiArray",value:function(t,e,i,a){var s=this.w,r=0,o=null,n=-1;s.globals.series.length>1?r=this.getFirstActiveXArray(i):o=0;var l=i[r][0],h=Math.abs(t-l);if(i.forEach((function(e){e.forEach((function(e,i){var a=Math.abs(t-e);a<=h&&(h=a,n=i)}))})),-1!==n){var c=a[r][n],d=Math.abs(e-c);o=r,a.forEach((function(t,i){var a=Math.abs(e-t[n]);a<=d&&(d=a,o=i)}))}return{index:o,j:n}}},{key:"getFirstActiveXArray",value:function(t){for(var e=this.w,i=0,a=t.map((function(t,e){return t.length>0?e:-1})),s=0;s0)for(var a=0;a *")):this.w.globals.dom.baseEl.querySelectorAll(".apexcharts-series-markers-wrap > *")}},{key:"getAllMarkers",value:function(){var t=this.w.globals.dom.baseEl.querySelectorAll(".apexcharts-series-markers-wrap");(t=b(t)).sort((function(t,e){var i=Number(t.getAttribute("data:realIndex")),a=Number(e.getAttribute("data:realIndex"));return ai?-1:0}));var e=[];return t.forEach((function(t){e.push(t.querySelector(".apexcharts-marker"))})),e}},{key:"hasMarkers",value:function(t){return this.getElMarkers(t).length>0}},{key:"getElBars",value:function(){return this.w.globals.dom.baseEl.querySelectorAll(".apexcharts-bar-series, .apexcharts-candlestick-series, .apexcharts-boxPlot-series, .apexcharts-rangebar-series")}},{key:"hasBars",value:function(){return this.getElBars().length>0}},{key:"getHoverMarkerSize",value:function(t){var e=this.w,i=e.config.markers.hover.size;return void 0===i&&(i=e.globals.markers.size[t]+e.config.markers.hover.sizeOffset),i}},{key:"toggleAllTooltipSeriesGroups",value:function(t){var e=this.w,i=this.ttCtx;0===i.allTooltipSeriesGroups.length&&(i.allTooltipSeriesGroups=e.globals.dom.baseEl.querySelectorAll(".apexcharts-tooltip-series-group"));for(var a=i.allTooltipSeriesGroups,s=0;s ').concat(i.attrs.name,""),e+="
".concat(i.val,"
")})),v.innerHTML=t+"",m.innerHTML=e+""};o?l.globals.seriesGoals[e][i]&&Array.isArray(l.globals.seriesGoals[e][i])?y():(v.innerHTML="",m.innerHTML=""):y()}else v.innerHTML="",m.innerHTML="";if(null!==p&&(a[e].querySelector(".apexcharts-tooltip-text-z-label").innerHTML=l.config.tooltip.z.title,a[e].querySelector(".apexcharts-tooltip-text-z-value").innerHTML=void 0!==p?p:""),o&&f[0]){if(l.config.tooltip.hideEmptySeries){var w=a[e].querySelector(".apexcharts-tooltip-marker"),k=a[e].querySelector(".apexcharts-tooltip-text");0==parseFloat(c)?(w.style.display="none",k.style.display="none"):(w.style.display="block",k.style.display="block")}null==c||l.globals.ancillaryCollapsedSeriesIndices.indexOf(e)>-1||l.globals.collapsedSeriesIndices.indexOf(e)>-1?f[0].parentNode.style.display="none":f[0].parentNode.style.display=l.config.tooltip.items.display}}},{key:"toggleActiveInactiveSeries",value:function(t){var e=this.w;if(t)this.tooltipUtil.toggleAllTooltipSeriesGroups("enable");else{this.tooltipUtil.toggleAllTooltipSeriesGroups("disable");var i=e.globals.dom.baseEl.querySelector(".apexcharts-tooltip-series-group");i&&(i.classList.add("apexcharts-active"),i.style.display=e.config.tooltip.items.display)}}},{key:"getValuesToPrint",value:function(t){var e=t.i,i=t.j,a=this.w,s=this.ctx.series.filteredSeriesX(),r="",o="",n=null,l=null,h={series:a.globals.series,seriesIndex:e,dataPointIndex:i,w:a},c=a.globals.ttZFormatter;null===i?l=a.globals.series[e]:a.globals.isXNumeric&&"treemap"!==a.config.chart.type?(r=s[e][i],0===s[e].length&&(r=s[this.tooltipUtil.getFirstActiveXArray(s)][i])):r=void 0!==a.globals.labels[i]?a.globals.labels[i]:"";var d=r;return r=a.globals.isXNumeric&&"datetime"===a.config.xaxis.type?new E(this.ctx).xLabelFormat(a.globals.ttKeyFormatter,d,d,{i:void 0,dateFormatter:new X(this.ctx).formatDate,w:this.w}):a.globals.isBarHorizontal?a.globals.yLabelFormatters[0](d,h):a.globals.xLabelFormatter(d,h),void 0!==a.config.tooltip.x.formatter&&(r=a.globals.ttKeyFormatter(d,h)),a.globals.seriesZ.length>0&&a.globals.seriesZ[e].length>0&&(n=c(a.globals.seriesZ[e][i],a)),o="function"==typeof a.config.xaxis.tooltip.formatter?a.globals.xaxisTooltipFormatter(d,h):r,{val:Array.isArray(l)?l.join(" "):l,xVal:Array.isArray(r)?r.join(" "):r,xAxisTTVal:Array.isArray(o)?o.join(" "):o,zVal:n}}},{key:"handleCustomTooltip",value:function(t){var e=t.i,i=t.j,a=t.y1,s=t.y2,r=t.w,o=this.ttCtx.getElTooltip(),n=r.config.tooltip.custom;Array.isArray(n)&&n[e]&&(n=n[e]),o.innerHTML=n({ctx:this.ctx,series:r.globals.series,seriesIndex:e,dataPointIndex:i,y1:a,y2:s,w:r})}}]),t}(),bt=function(){function t(e){n(this,t),this.ttCtx=e,this.ctx=e.ctx,this.w=e.w}return h(t,[{key:"moveXCrosshairs",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,i=this.ttCtx,a=this.w,s=i.getElXCrosshairs(),r=t-i.xcrosshairsWidth/2,o=a.globals.labels.slice().length;if(null!==e&&(r=a.globals.gridWidth/o*e),null===s||a.globals.isBarHorizontal||(s.setAttribute("x",r),s.setAttribute("x1",r),s.setAttribute("x2",r),s.setAttribute("y2",a.globals.gridHeight),s.classList.add("apexcharts-active")),r<0&&(r=0),r>a.globals.gridWidth&&(r=a.globals.gridWidth),i.isXAxisTooltipEnabled){var n=r;"tickWidth"!==a.config.xaxis.crosshairs.width&&"barWidth"!==a.config.xaxis.crosshairs.width||(n=r+i.xcrosshairsWidth/2),this.moveXAxisTooltip(n)}}},{key:"moveYCrosshairs",value:function(t){var e=this.ttCtx;null!==e.ycrosshairs&&A.setAttrs(e.ycrosshairs,{y1:t,y2:t}),null!==e.ycrosshairsHidden&&A.setAttrs(e.ycrosshairsHidden,{y1:t,y2:t})}},{key:"moveXAxisTooltip",value:function(t){var e=this.w,i=this.ttCtx;if(null!==i.xaxisTooltip&&0!==i.xcrosshairsWidth){i.xaxisTooltip.classList.add("apexcharts-active");var a,s=i.xaxisOffY+e.config.xaxis.tooltip.offsetY+e.globals.translateY+1+e.config.xaxis.offsetY;if(t-=i.xaxisTooltip.getBoundingClientRect().width/2,!isNaN(t))t+=e.globals.translateX,a=new A(this.ctx).getTextRects(i.xaxisTooltipText.innerHTML),i.xaxisTooltipText.style.minWidth=a.width+"px",i.xaxisTooltip.style.left=t+"px",i.xaxisTooltip.style.top=s+"px"}}},{key:"moveYAxisTooltip",value:function(t){var e=this.w,i=this.ttCtx;null===i.yaxisTTEls&&(i.yaxisTTEls=e.globals.dom.baseEl.querySelectorAll(".apexcharts-yaxistooltip"));var a=parseInt(i.ycrosshairsHidden.getAttribute("y1"),10),s=e.globals.translateY+a,r=i.yaxisTTEls[t].getBoundingClientRect().height,o=e.globals.translateYAxisX[t]-2;e.config.yaxis[t].opposite&&(o-=26),s-=r/2,-1===e.globals.ignoreYAxisIndexes.indexOf(t)?(i.yaxisTTEls[t].classList.add("apexcharts-active"),i.yaxisTTEls[t].style.top=s+"px",i.yaxisTTEls[t].style.left=o+e.config.yaxis[t].tooltip.offsetX+"px"):i.yaxisTTEls[t].classList.remove("apexcharts-active")}},{key:"moveTooltip",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,a=this.w,s=this.ttCtx,r=s.getElTooltip(),o=s.tooltipRect,n=null!==i?parseFloat(i):1,l=parseFloat(t)+n+5,h=parseFloat(e)+n/2;if(l>a.globals.gridWidth/2&&(l=l-o.ttWidth-n-10),l>a.globals.gridWidth-o.ttWidth-10&&(l=a.globals.gridWidth-o.ttWidth),l<-20&&(l=-20),a.config.tooltip.followCursor){var c=s.getElGrid().getBoundingClientRect();(l=s.e.clientX-c.left)>a.globals.gridWidth/2&&(l-=s.tooltipRect.ttWidth),(h=s.e.clientY+a.globals.translateY-c.top)>a.globals.gridHeight/2&&(h-=s.tooltipRect.ttHeight)}else a.globals.isBarHorizontal||o.ttHeight/2+h>a.globals.gridHeight&&(h=a.globals.gridHeight-o.ttHeight+a.globals.translateY);isNaN(l)||(l+=a.globals.translateX,r.style.left=l+"px",r.style.top=h+"px")}},{key:"moveMarkers",value:function(t,e){var i=this.w,a=this.ttCtx;if(i.globals.markers.size[t]>0)for(var s=i.globals.dom.baseEl.querySelectorAll(" .apexcharts-series[data\\:realIndex='".concat(t,"'] .apexcharts-marker")),r=0;r0&&(h.setAttribute("r",n),h.setAttribute("cx",i),h.setAttribute("cy",a)),this.moveXCrosshairs(i),r.fixedTooltip||this.moveTooltip(i,a,n)}}},{key:"moveDynamicPointsOnHover",value:function(t){var e,i=this.ttCtx,a=i.w,s=0,r=0,o=a.globals.pointsArray;e=new V(this.ctx).getActiveConfigSeriesIndex("asc",["line","area","scatter","bubble"]);var n=i.tooltipUtil.getHoverMarkerSize(e);o[e]&&(s=o[e][t][0],r=o[e][t][1]);var l=i.tooltipUtil.getAllMarkers();if(null!==l)for(var h=0;h0?(l[h]&&l[h].setAttribute("r",n),l[h]&&l[h].setAttribute("cy",d)):l[h]&&l[h].setAttribute("r",0)}}this.moveXCrosshairs(s),i.fixedTooltip||this.moveTooltip(s,r||a.globals.gridHeight,n)}},{key:"moveStickyTooltipOverBars",value:function(t,e){var i=this.w,a=this.ttCtx,s=i.globals.columnSeries?i.globals.columnSeries.length:i.globals.series.length,r=s>=2&&s%2==0?Math.floor(s/2):Math.floor(s/2)+1;i.globals.isBarHorizontal&&(r=new V(this.ctx).getActiveConfigSeriesIndex("desc")+1);var o=i.globals.dom.baseEl.querySelector(".apexcharts-bar-series .apexcharts-series[rel='".concat(r,"'] path[j='").concat(t,"'], .apexcharts-candlestick-series .apexcharts-series[rel='").concat(r,"'] path[j='").concat(t,"'], .apexcharts-boxPlot-series .apexcharts-series[rel='").concat(r,"'] path[j='").concat(t,"'], .apexcharts-rangebar-series .apexcharts-series[rel='").concat(r,"'] path[j='").concat(t,"']"));o||"number"!=typeof e||(o=i.globals.dom.baseEl.querySelector(".apexcharts-bar-series .apexcharts-series[data\\:realIndex='".concat(e,"'] path[j='").concat(t,"'],\n .apexcharts-candlestick-series .apexcharts-series[data\\:realIndex='").concat(e,"'] path[j='").concat(t,"'],\n .apexcharts-boxPlot-series .apexcharts-series[data\\:realIndex='").concat(e,"'] path[j='").concat(t,"'],\n .apexcharts-rangebar-series .apexcharts-series[data\\:realIndex='").concat(e,"'] path[j='").concat(t,"']")));var n=o?parseFloat(o.getAttribute("cx")):0,l=o?parseFloat(o.getAttribute("cy")):0,h=o?parseFloat(o.getAttribute("barWidth")):0,c=a.getElGrid().getBoundingClientRect(),d=o&&(o.classList.contains("apexcharts-candlestick-area")||o.classList.contains("apexcharts-boxPlot-area"));i.globals.isXNumeric?(o&&!d&&(n-=s%2!=0?h/2:0),o&&d&&i.globals.comboCharts&&(n-=h/2)):i.globals.isBarHorizontal||(n=a.xAxisTicksPositions[t-1]+a.dataPointsDividedWidth/2,isNaN(n)&&(n=a.xAxisTicksPositions[t]-a.dataPointsDividedWidth/2)),i.globals.isBarHorizontal?l-=a.tooltipRect.ttHeight:i.config.tooltip.followCursor?l=a.e.clientY-c.top-a.tooltipRect.ttHeight/2:l+a.tooltipRect.ttHeight+15>i.globals.gridHeight&&(l=i.globals.gridHeight),i.globals.isBarHorizontal||this.moveXCrosshairs(n),a.fixedTooltip||this.moveTooltip(n,l||i.globals.gridHeight)}}]),t}(),vt=function(){function t(e){n(this,t),this.w=e.w,this.ttCtx=e,this.ctx=e.ctx,this.tooltipPosition=new bt(e)}return h(t,[{key:"drawDynamicPoints",value:function(){var t=this.w,e=new A(this.ctx),i=new W(this.ctx),a=t.globals.dom.baseEl.querySelectorAll(".apexcharts-series");a=b(a),t.config.chart.stacked&&a.sort((function(t,e){return parseFloat(t.getAttribute("data:realIndex"))-parseFloat(e.getAttribute("data:realIndex"))}));for(var s=0;s2&&void 0!==arguments[2]?arguments[2]:null,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,s=this.w;"bubble"!==s.config.chart.type&&this.newPointSize(t,e);var r=e.getAttribute("cx"),o=e.getAttribute("cy");if(null!==i&&null!==a&&(r=i,o=a),this.tooltipPosition.moveXCrosshairs(r),!this.fixedTooltip){if("radar"===s.config.chart.type){var n=this.ttCtx.getElGrid().getBoundingClientRect();r=this.ttCtx.e.clientX-n.left}this.tooltipPosition.moveTooltip(r,o,s.config.markers.hover.size)}}},{key:"enlargePoints",value:function(t){for(var e=this.w,i=this,a=this.ttCtx,s=t,r=e.globals.dom.baseEl.querySelectorAll(".apexcharts-series:not(.apexcharts-series-collapsed) .apexcharts-marker"),o=e.config.markers.hover.size,n=0;n=0?t[e].setAttribute("r",i):t[e].setAttribute("r",0)}}}]),t}(),mt=function(){function t(e){n(this,t),this.w=e.w;var i=this.w;this.ttCtx=e,this.isVerticalGroupedRangeBar=!i.globals.isBarHorizontal&&"rangeBar"===i.config.chart.type&&i.config.plotOptions.bar.rangeBarGroupRows}return h(t,[{key:"getAttr",value:function(t,e){return parseFloat(t.target.getAttribute(e))}},{key:"handleHeatTreeTooltip",value:function(t){var e=t.e,i=t.opt,a=t.x,s=t.y,r=t.type,o=this.ttCtx,n=this.w;if(e.target.classList.contains("apexcharts-".concat(r,"-rect"))){var l=this.getAttr(e,"i"),h=this.getAttr(e,"j"),c=this.getAttr(e,"cx"),d=this.getAttr(e,"cy"),g=this.getAttr(e,"width"),u=this.getAttr(e,"height");if(o.tooltipLabels.drawSeriesTexts({ttItems:i.ttItems,i:l,j:h,shared:!1,e}),n.globals.capturedSeriesIndex=l,n.globals.capturedDataPointIndex=h,a=c+o.tooltipRect.ttWidth/2+g,s=d+o.tooltipRect.ttHeight/2-u/2,o.tooltipPosition.moveXCrosshairs(c+g/2),a>n.globals.gridWidth/2&&(a=c-o.tooltipRect.ttWidth/2+g),o.w.config.tooltip.followCursor){var p=n.globals.dom.elWrap.getBoundingClientRect();a=n.globals.clientX-p.left-(a>n.globals.gridWidth/2?o.tooltipRect.ttWidth:0),s=n.globals.clientY-p.top-(s>n.globals.gridHeight/2?o.tooltipRect.ttHeight:0)}}return{x:a,y:s}}},{key:"handleMarkerTooltip",value:function(t){var e,i,a=t.e,s=t.opt,r=t.x,o=t.y,n=this.w,l=this.ttCtx;if(a.target.classList.contains("apexcharts-marker")){var h=parseInt(s.paths.getAttribute("cx"),10),c=parseInt(s.paths.getAttribute("cy"),10),d=parseFloat(s.paths.getAttribute("val"));if(i=parseInt(s.paths.getAttribute("rel"),10),e=parseInt(s.paths.parentNode.parentNode.parentNode.getAttribute("rel"),10)-1,l.intersect){var g=y.findAncestor(s.paths,"apexcharts-series");g&&(e=parseInt(g.getAttribute("data:realIndex"),10))}if(l.tooltipLabels.drawSeriesTexts({ttItems:s.ttItems,i:e,j:i,shared:!l.showOnIntersect&&n.config.tooltip.shared,e:a}),"mouseup"===a.type&&l.markerClick(a,e,i),n.globals.capturedSeriesIndex=e,n.globals.capturedDataPointIndex=i,r=h,o=c+n.globals.translateY-1.4*l.tooltipRect.ttHeight,l.w.config.tooltip.followCursor){var u=l.getElGrid().getBoundingClientRect();o=l.e.clientY+n.globals.translateY-u.top}d<0&&(o=c),l.marker.enlargeCurrentPoint(i,s.paths,r,o)}return{x:r,y:o}}},{key:"handleBarTooltip",value:function(t){var e,i,a=t.e,s=t.opt,r=this.w,o=this.ttCtx,n=o.getElTooltip(),l=0,h=0,c=0,d=this.getBarTooltipXY({e:a,opt:s});e=d.i;var g=d.barHeight,u=d.j;r.globals.capturedSeriesIndex=e,r.globals.capturedDataPointIndex=u,r.globals.isBarHorizontal&&o.tooltipUtil.hasBars()||!r.config.tooltip.shared?(h=d.x,c=d.y,i=Array.isArray(r.config.stroke.width)?r.config.stroke.width[e]:r.config.stroke.width,l=h):r.globals.comboCharts||r.config.tooltip.shared||(l/=2),isNaN(c)&&(c=r.globals.svgHeight-o.tooltipRect.ttHeight);var p=parseInt(s.paths.parentNode.getAttribute("data:realIndex"),10),f=r.globals.isMultipleYAxis?r.config.yaxis[p]&&r.config.yaxis[p].reversed:r.config.yaxis[0].reversed;if(h+o.tooltipRect.ttWidth>r.globals.gridWidth&&!f?h-=o.tooltipRect.ttWidth:h<0&&(h=0),o.w.config.tooltip.followCursor){var x=o.getElGrid().getBoundingClientRect();c=o.e.clientY-x.top}null===o.tooltip&&(o.tooltip=r.globals.dom.baseEl.querySelector(".apexcharts-tooltip")),r.config.tooltip.shared||(r.globals.comboBarCount>0?o.tooltipPosition.moveXCrosshairs(l+i/2):o.tooltipPosition.moveXCrosshairs(l)),!o.fixedTooltip&&(!r.config.tooltip.shared||r.globals.isBarHorizontal&&o.tooltipUtil.hasBars())&&(f&&(h-=o.tooltipRect.ttWidth)<0&&(h=0),!f||r.globals.isBarHorizontal&&o.tooltipUtil.hasBars()||(c=c+g-2*(r.globals.series[e][u]<0?g:0)),c=c+r.globals.translateY-o.tooltipRect.ttHeight/2,n.style.left=h+r.globals.translateX+"px",n.style.top=c+"px")}},{key:"getBarTooltipXY",value:function(t){var e=this,i=t.e,a=t.opt,s=this.w,r=null,o=this.ttCtx,n=0,l=0,h=0,c=0,d=0,g=i.target.classList;if(g.contains("apexcharts-bar-area")||g.contains("apexcharts-candlestick-area")||g.contains("apexcharts-boxPlot-area")||g.contains("apexcharts-rangebar-area")){var u=i.target,p=u.getBoundingClientRect(),f=a.elGrid.getBoundingClientRect(),x=p.height;d=p.height;var b=p.width,v=parseInt(u.getAttribute("cx"),10),m=parseInt(u.getAttribute("cy"),10);c=parseFloat(u.getAttribute("barWidth"));var y="touchmove"===i.type?i.touches[0].clientX:i.clientX;r=parseInt(u.getAttribute("j"),10),n=parseInt(u.parentNode.getAttribute("rel"),10)-1;var w=u.getAttribute("data-range-y1"),k=u.getAttribute("data-range-y2");s.globals.comboCharts&&(n=parseInt(u.parentNode.getAttribute("data:realIndex"),10));var A=function(t){return s.globals.isXNumeric?v-b/2:e.isVerticalGroupedRangeBar?v+b/2:v-o.dataPointsDividedWidth+b/2},S=function(){return m-o.dataPointsDividedHeight+x/2-o.tooltipRect.ttHeight/2};o.tooltipLabels.drawSeriesTexts({ttItems:a.ttItems,i:n,j:r,y1:w?parseInt(w,10):null,y2:k?parseInt(k,10):null,shared:!o.showOnIntersect&&s.config.tooltip.shared,e:i}),s.config.tooltip.followCursor?s.globals.isBarHorizontal?(l=y-f.left+15,h=S()):(l=A(),h=i.clientY-f.top-o.tooltipRect.ttHeight/2-15):s.globals.isBarHorizontal?((l=v)0&&i.setAttribute("width",e.xcrosshairsWidth)}},{key:"handleYCrosshair",value:function(){var t=this.w,e=this.ttCtx;e.ycrosshairs=t.globals.dom.baseEl.querySelector(".apexcharts-ycrosshairs"),e.ycrosshairsHidden=t.globals.dom.baseEl.querySelector(".apexcharts-ycrosshairs-hidden")}},{key:"drawYaxisTooltipText",value:function(t,e,i){var a=this.ttCtx,s=this.w,r=s.globals.yLabelFormatters[t];if(a.yaxisTooltips[t]){var o=a.getElGrid().getBoundingClientRect(),n=(e-o.top)*i.yRatio[t],l=s.globals.maxYArr[t]-s.globals.minYArr[t],h=s.globals.minYArr[t]+(l-n);a.tooltipPosition.moveYCrosshairs(e-o.top),a.yaxisTooltipText[t].innerHTML=r(h),a.tooltipPosition.moveYAxisTooltip(t)}}}]),t}(),wt=function(){function t(e){n(this,t),this.ctx=e,this.w=e.w;var i=this.w;this.tConfig=i.config.tooltip,this.tooltipUtil=new ft(this),this.tooltipLabels=new xt(this),this.tooltipPosition=new bt(this),this.marker=new vt(this),this.intersect=new mt(this),this.axesTooltip=new yt(this),this.showOnIntersect=this.tConfig.intersect,this.showTooltipTitle=this.tConfig.x.show,this.fixedTooltip=this.tConfig.fixed.enabled,this.xaxisTooltip=null,this.yaxisTTEls=null,this.isBarShared=!i.globals.isBarHorizontal&&this.tConfig.shared,this.lastHoverTime=Date.now()}return h(t,[{key:"getElTooltip",value:function(t){return t||(t=this),t.w.globals.dom.baseEl?t.w.globals.dom.baseEl.querySelector(".apexcharts-tooltip"):null}},{key:"getElXCrosshairs",value:function(){return this.w.globals.dom.baseEl.querySelector(".apexcharts-xcrosshairs")}},{key:"getElGrid",value:function(){return this.w.globals.dom.baseEl.querySelector(".apexcharts-grid")}},{key:"drawTooltip",value:function(t){var e=this.w;this.xyRatios=t,this.isXAxisTooltipEnabled=e.config.xaxis.tooltip.enabled&&e.globals.axisCharts,this.yaxisTooltips=e.config.yaxis.map((function(t,i){return!!(t.show&&t.tooltip.enabled&&e.globals.axisCharts)})),this.allTooltipSeriesGroups=[],e.globals.axisCharts||(this.showTooltipTitle=!1);var i=document.createElement("div");if(i.classList.add("apexcharts-tooltip"),e.config.tooltip.cssClass&&i.classList.add(e.config.tooltip.cssClass),i.classList.add("apexcharts-theme-".concat(this.tConfig.theme)),e.globals.dom.elWrap.appendChild(i),e.globals.axisCharts){this.axesTooltip.drawXaxisTooltip(),this.axesTooltip.drawYaxisTooltip(),this.axesTooltip.setXCrosshairWidth(),this.axesTooltip.handleYCrosshair();var a=new q(this.ctx);this.xAxisTicksPositions=a.getXAxisTicksPositions()}if(!e.globals.comboCharts&&!this.tConfig.intersect&&"rangeBar"!==e.config.chart.type||this.tConfig.shared||(this.showOnIntersect=!0),0!==e.config.markers.size&&0!==e.globals.markers.largestSize||this.marker.drawDynamicPoints(this),e.globals.collapsedSeries.length!==e.globals.series.length){this.dataPointsDividedHeight=e.globals.gridHeight/e.globals.dataPoints,this.dataPointsDividedWidth=e.globals.gridWidth/e.globals.dataPoints,this.showTooltipTitle&&(this.tooltipTitle=document.createElement("div"),this.tooltipTitle.classList.add("apexcharts-tooltip-title"),this.tooltipTitle.style.fontFamily=this.tConfig.style.fontFamily||e.config.chart.fontFamily,this.tooltipTitle.style.fontSize=this.tConfig.style.fontSize,i.appendChild(this.tooltipTitle));var s=e.globals.series.length;(e.globals.xyCharts||e.globals.comboCharts)&&this.tConfig.shared&&(s=this.showOnIntersect?1:e.globals.series.length),this.legendLabels=e.globals.dom.baseEl.querySelectorAll(".apexcharts-legend-text"),this.ttItems=this.createTTElements(s),this.addSVGEvents()}}},{key:"createTTElements",value:function(t){for(var e=this,i=this.w,a=[],s=this.getElTooltip(),r=function(r){var o=document.createElement("div");o.classList.add("apexcharts-tooltip-series-group"),o.style.order=i.config.tooltip.inverseOrder?t-r:r+1,e.tConfig.shared&&e.tConfig.enabledOnSeries&&Array.isArray(e.tConfig.enabledOnSeries)&&e.tConfig.enabledOnSeries.indexOf(r)<0&&o.classList.add("apexcharts-tooltip-series-group-hidden");var n=document.createElement("span");n.classList.add("apexcharts-tooltip-marker"),n.style.backgroundColor=i.globals.colors[r],o.appendChild(n);var l=document.createElement("div");l.classList.add("apexcharts-tooltip-text"),l.style.fontFamily=e.tConfig.style.fontFamily||i.config.chart.fontFamily,l.style.fontSize=e.tConfig.style.fontSize,["y","goals","z"].forEach((function(t){var e=document.createElement("div");e.classList.add("apexcharts-tooltip-".concat(t,"-group"));var i=document.createElement("span");i.classList.add("apexcharts-tooltip-text-".concat(t,"-label")),e.appendChild(i);var a=document.createElement("span");a.classList.add("apexcharts-tooltip-text-".concat(t,"-value")),e.appendChild(a),l.appendChild(e)})),o.appendChild(l),s.appendChild(o),a.push(o)},o=0;o0&&this.addPathsEventListeners(u,c),this.tooltipUtil.hasBars()&&!this.tConfig.shared&&this.addDatapointEventsListeners(c)}}},{key:"drawFixedTooltipRect",value:function(){var t=this.w,e=this.getElTooltip(),i=e.getBoundingClientRect(),a=i.width+10,s=i.height+10,r=this.tConfig.fixed.offsetX,o=this.tConfig.fixed.offsetY,n=this.tConfig.fixed.position.toLowerCase();return n.indexOf("right")>-1&&(r=r+t.globals.svgWidth-a+10),n.indexOf("bottom")>-1&&(o=o+t.globals.svgHeight-s-10),e.style.left=r+"px",e.style.top=o+"px",{x:r,y:o,ttWidth:a,ttHeight:s}}},{key:"addDatapointEventsListeners",value:function(t){var e=this.w.globals.dom.baseEl.querySelectorAll(".apexcharts-series-markers .apexcharts-marker, .apexcharts-bar-area, .apexcharts-candlestick-area, .apexcharts-boxPlot-area, .apexcharts-rangebar-area");this.addPathsEventListeners(e,t)}},{key:"addPathsEventListeners",value:function(t,e){for(var i=this,a=function(a){var s={paths:t[a],tooltipEl:e.tooltipEl,tooltipY:e.tooltipY,tooltipX:e.tooltipX,elGrid:e.elGrid,hoverArea:e.hoverArea,ttItems:e.ttItems};["mousemove","mouseup","touchmove","mouseout","touchend"].map((function(e){return t[a].addEventListener(e,i.onSeriesHover.bind(i,s),{capture:!1,passive:!0})}))},s=0;s=100?this.seriesHover(t,e):(clearTimeout(this.seriesHoverTimeout),this.seriesHoverTimeout=setTimeout((function(){i.seriesHover(t,e)}),100-a))}},{key:"seriesHover",value:function(t,e){var i=this;this.lastHoverTime=Date.now();var a=[],s=this.w;s.config.chart.group&&(a=this.ctx.getGroupedCharts()),s.globals.axisCharts&&(s.globals.minX===-1/0&&s.globals.maxX===1/0||0===s.globals.dataPoints)||(a.length?a.forEach((function(a){var s=i.getElTooltip(a),r={paths:t.paths,tooltipEl:s,tooltipY:t.tooltipY,tooltipX:t.tooltipX,elGrid:t.elGrid,hoverArea:t.hoverArea,ttItems:a.w.globals.tooltip.ttItems};a.w.globals.minX===i.w.globals.minX&&a.w.globals.maxX===i.w.globals.maxX&&a.w.globals.tooltip.seriesHoverByContext({chartCtx:a,ttCtx:a.w.globals.tooltip,opt:r,e})})):this.seriesHoverByContext({chartCtx:this.ctx,ttCtx:this.w.globals.tooltip,opt:t,e}))}},{key:"seriesHoverByContext",value:function(t){var e=t.chartCtx,i=t.ttCtx,a=t.opt,s=t.e,r=e.w,o=this.getElTooltip();o&&(i.tooltipRect={x:0,y:0,ttWidth:o.getBoundingClientRect().width,ttHeight:o.getBoundingClientRect().height},i.e=s,!i.tooltipUtil.hasBars()||r.globals.comboCharts||i.isBarShared||this.tConfig.onDatasetHover.highlightDataSeries&&new V(e).toggleSeriesOnHover(s,s.target.parentNode),i.fixedTooltip&&i.drawFixedTooltipRect(),r.globals.axisCharts?i.axisChartsTooltips({e:s,opt:a,tooltipRect:i.tooltipRect}):i.nonAxisChartsTooltips({e:s,opt:a,tooltipRect:i.tooltipRect}))}},{key:"axisChartsTooltips",value:function(t){var e,i,a=t.e,s=t.opt,r=this.w,o=s.elGrid.getBoundingClientRect(),n="touchmove"===a.type?a.touches[0].clientX:a.clientX,l="touchmove"===a.type?a.touches[0].clientY:a.clientY;if(this.clientY=l,this.clientX=n,r.globals.capturedSeriesIndex=-1,r.globals.capturedDataPointIndex=-1,lo.top+o.height)this.handleMouseOut(s);else{if(Array.isArray(this.tConfig.enabledOnSeries)&&!r.config.tooltip.shared){var h=parseInt(s.paths.getAttribute("index"),10);if(this.tConfig.enabledOnSeries.indexOf(h)<0)return void this.handleMouseOut(s)}var c=this.getElTooltip(),d=this.getElXCrosshairs(),g=r.globals.xyCharts||"bar"===r.config.chart.type&&!r.globals.isBarHorizontal&&this.tooltipUtil.hasBars()&&this.tConfig.shared||r.globals.comboCharts&&this.tooltipUtil.hasBars();if("mousemove"===a.type||"touchmove"===a.type||"mouseup"===a.type){if(r.globals.collapsedSeries.length+r.globals.ancillaryCollapsedSeries.length===r.globals.series.length)return;null!==d&&d.classList.add("apexcharts-active");var u=this.yaxisTooltips.filter((function(t){return!0===t}));if(null!==this.ycrosshairs&&u.length&&this.ycrosshairs.classList.add("apexcharts-active"),g&&!this.showOnIntersect)this.handleStickyTooltip(a,n,l,s);else if("heatmap"===r.config.chart.type||"treemap"===r.config.chart.type){var p=this.intersect.handleHeatTreeTooltip({e:a,opt:s,x:e,y:i,type:r.config.chart.type});e=p.x,i=p.y,c.style.left=e+"px",c.style.top=i+"px"}else this.tooltipUtil.hasBars()&&this.intersect.handleBarTooltip({e:a,opt:s}),this.tooltipUtil.hasMarkers()&&this.intersect.handleMarkerTooltip({e:a,opt:s,x:e,y:i});if(this.yaxisTooltips.length)for(var f=0;fl.width)this.handleMouseOut(a);else if(null!==n)this.handleStickyCapturedSeries(t,n,a,o);else if(this.tooltipUtil.isXoverlap(o)||s.globals.isBarHorizontal){var h=s.globals.series.findIndex((function(t,e){return!s.globals.collapsedSeriesIndices.includes(e)}));this.create(t,this,h,o,a.ttItems)}}},{key:"handleStickyCapturedSeries",value:function(t,e,i,a){var s=this.w;if(this.tConfig.shared||null!==s.globals.series[e][a]){if(void 0!==s.globals.series[e][a])this.tConfig.shared&&this.tooltipUtil.isXoverlap(a)&&this.tooltipUtil.isInitialSeriesSameLen()?this.create(t,this,e,a,i.ttItems):this.create(t,this,e,a,i.ttItems,!1);else if(this.tooltipUtil.isXoverlap(a)){var r=s.globals.series.findIndex((function(t,e){return!s.globals.collapsedSeriesIndices.includes(e)}));this.create(t,this,r,a,i.ttItems)}}else this.handleMouseOut(i)}},{key:"deactivateHoverFilter",value:function(){for(var t=this.w,e=new A(this.ctx),i=t.globals.dom.Paper.select(".apexcharts-bar-area"),a=0;a5&&void 0!==arguments[5]?arguments[5]:null,S=this.w,C=e;"mouseup"===t.type&&this.markerClick(t,i,a),null===k&&(k=this.tConfig.shared);var L=this.tooltipUtil.hasMarkers(i),P=this.tooltipUtil.getElBars();if(S.config.legend.tooltipHoverFormatter){var I=S.config.legend.tooltipHoverFormatter,T=Array.from(this.legendLabels);T.forEach((function(t){var e=t.getAttribute("data:default-text");t.innerHTML=decodeURIComponent(e)}));for(var M=0;M0?C.marker.enlargePoints(a):C.tooltipPosition.moveDynamicPointsOnHover(a);else if(this.tooltipUtil.hasBars()&&(this.barSeriesHeight=this.tooltipUtil.getBarsHeight(P),this.barSeriesHeight>0)){var R=new A(this.ctx),H=S.globals.dom.Paper.select(".apexcharts-bar-area[j='".concat(a,"']"));this.deactivateHoverFilter(),this.tooltipPosition.moveStickyTooltipOverBars(a,i);for(var D=0;D0&&a.config.plotOptions.bar.hideZeroBarsWhenGrouped&&(u-=c*k)),w&&(u=u+g.height/2-v/2-2);var C=this.barCtx.series[s][r]<0,L=l;switch(this.barCtx.isReversed&&(L=l-d+(C?2*d:0),l-=d),x.position){case"center":p=w?C?L-d/2+y:L+d/2-y:C?L-d/2+g.height/2+y:L+d/2+g.height/2-y;break;case"bottom":p=w?C?L-d+y:L+d-y:C?L-d+g.height+v+y:L+d-g.height/2+v-y;break;case"top":p=w?C?L+y:L-y:C?L-g.height/2-y:L+g.height+y}if(this.barCtx.lastActiveBarSerieIndex===o&&b.enabled){var P=new A(this.barCtx.ctx).getTextRects(this.getStackedTotalDataLabel({realIndex:o,j:r}),f.fontSize);e=C?L-P.height/2-y-b.offsetY+18:L+P.height+y+b.offsetY-18,i=u+b.offsetX}return a.config.chart.stacked||(p<0?p=0+v:p+g.height/3>a.globals.gridHeight&&(p=a.globals.gridHeight-v)),{bcx:h,bcy:l,dataLabelsX:u,dataLabelsY:p,totalDataLabelsX:i,totalDataLabelsY:e,totalDataLabelsAnchor:"middle"}}},{key:"calculateBarsDataLabelsPosition",value:function(t){var e=this.w,i=t.x,a=t.i,s=t.j,r=t.realIndex,o=t.groupIndex,n=t.bcy,l=t.barHeight,h=t.barWidth,c=t.textRects,d=t.dataLabelsX,g=t.strokeWidth,u=t.dataLabelsConfig,p=t.barDataLabelsConfig,f=t.barTotalDataLabelsConfig,x=t.offX,b=t.offY,v=e.globals.gridHeight/e.globals.dataPoints;h=Math.abs(h);var m,y,w=(n+=-1!==o?o*l:0)-(this.barCtx.isRangeBar?0:v)+l/2+c.height/2+b-3,k="start",S=this.barCtx.series[a][s]<0,C=i;switch(this.barCtx.isReversed&&(C=i+h-(S?2*h:0),i=e.globals.gridWidth-h),p.position){case"center":d=S?C+h/2-x:Math.max(c.width/2,C-h/2)+x;break;case"bottom":d=S?C+h-g-Math.round(c.width/2)-x:C-h+g+Math.round(c.width/2)+x;break;case"top":d=S?C-g+Math.round(c.width/2)-x:C-g-Math.round(c.width/2)+x}if(this.barCtx.lastActiveBarSerieIndex===r&&f.enabled){var L=new A(this.barCtx.ctx).getTextRects(this.getStackedTotalDataLabel({realIndex:r,j:s}),u.fontSize);S?(m=C-g+Math.round(L.width/2)-x-f.offsetX-15,k="end"):m=C-g-Math.round(L.width/2)+x+f.offsetX+15,y=w+f.offsetY}return e.config.chart.stacked||(d<0?d=d+c.width+g:d+c.width/2>e.globals.gridWidth&&(d=e.globals.gridWidth-c.width-g)),{bcx:i,bcy:n,dataLabelsX:d,dataLabelsY:w,totalDataLabelsX:m,totalDataLabelsY:y,totalDataLabelsAnchor:k}}},{key:"drawCalculatedDataLabels",value:function(t){var e=t.x,i=t.y,a=t.val,s=t.i,o=t.j,n=t.textRects,l=t.barHeight,h=t.barWidth,c=t.dataLabelsConfig,d=this.w,g="rotate(0)";"vertical"===d.config.plotOptions.bar.dataLabels.orientation&&(g="rotate(-90, ".concat(e,", ").concat(i,")"));var u=new G(this.barCtx.ctx),p=new A(this.barCtx.ctx),f=c.formatter,x=null,b=d.globals.collapsedSeriesIndices.indexOf(s)>-1;if(c.enabled&&!b){x=p.group({class:"apexcharts-data-labels",transform:g});var v="";void 0!==a&&(v=f(a,r(r({},d),{},{seriesIndex:s,dataPointIndex:o,w:d}))),!a&&d.config.plotOptions.bar.hideZeroBarsWhenGrouped&&(v="");var m=d.globals.series[s][o]<0,y=d.config.plotOptions.bar.dataLabels.position;"vertical"===d.config.plotOptions.bar.dataLabels.orientation&&("top"===y&&(c.textAnchor=m?"end":"start"),"center"===y&&(c.textAnchor="middle"),"bottom"===y&&(c.textAnchor=m?"end":"start")),this.barCtx.isRangeBar&&this.barCtx.barOptions.dataLabels.hideOverflowingLabels&&hMath.abs(h)&&(v=""):n.height/1.6>Math.abs(l)&&(v=""));var w=r({},c);this.barCtx.isHorizontal&&a<0&&("start"===c.textAnchor?w.textAnchor="end":"end"===c.textAnchor&&(w.textAnchor="start")),u.plotDataLabelsText({x:e,y:i,text:v,i:s,j:o,parent:x,dataLabelsConfig:w,alwaysDrawDataLabel:!0,offsetCorrection:!0})}return x}},{key:"drawTotalDataLabels",value:function(t){var e,i=t.x,a=t.y,s=t.val,r=t.barWidth,o=t.barHeight,n=t.realIndex,l=t.textAnchor,h=t.barTotalDataLabelsConfig,c=this.w,d=new A(this.barCtx.ctx);return h.enabled&&void 0!==i&&void 0!==a&&this.barCtx.lastActiveBarSerieIndex===n&&(e=d.drawText({x:i-(!c.globals.isBarHorizontal&&c.globals.seriesGroups.length?r/c.globals.seriesGroups.length:0),y:a-(c.globals.isBarHorizontal&&c.globals.seriesGroups.length?o/c.globals.seriesGroups.length:0),foreColor:h.style.color,text:s,textAnchor:l,fontFamily:h.style.fontFamily,fontSize:h.style.fontSize,fontWeight:h.style.fontWeight})),e}}]),t}(),At=function(){function t(e){n(this,t),this.w=e.w,this.barCtx=e}return h(t,[{key:"initVariables",value:function(t){var e=this.w;this.barCtx.series=t,this.barCtx.totalItems=0,this.barCtx.seriesLen=0,this.barCtx.visibleI=-1,this.barCtx.visibleItems=1;for(var i=0;i0&&(this.barCtx.seriesLen=this.barCtx.seriesLen+1,this.barCtx.totalItems+=t[i].length),e.globals.isXNumeric)for(var a=0;ae.globals.minX&&e.globals.seriesX[i][a]0&&(a=l.globals.minXDiff/d),(r=a/c*parseInt(this.barCtx.barOptions.columnWidth,10)/100)<1&&(r=1)}-1===String(this.barCtx.barOptions.columnWidth).indexOf("%")&&(r=parseInt(this.barCtx.barOptions.columnWidth,10)),o=l.globals.gridHeight-this.barCtx.baseLineY[this.barCtx.yaxisIndex]-(this.barCtx.isReversed?l.globals.gridHeight:0)+(this.barCtx.isReversed?2*this.barCtx.baseLineY[this.barCtx.yaxisIndex]:0),t=l.globals.padHorizontal+(a-r*this.barCtx.seriesLen)/2}return l.globals.barHeight=s,l.globals.barWidth=r,{x:t,y:e,yDivision:i,xDivision:a,barHeight:s,barWidth:r,zeroH:o,zeroW:n}}},{key:"initializeStackedPrevVars",value:function(t){var e=t.w;e.globals.hasSeriesGroups?e.globals.seriesGroups.forEach((function(e){t[e]||(t[e]={}),t[e].prevY=[],t[e].prevX=[],t[e].prevYF=[],t[e].prevXF=[],t[e].prevYVal=[],t[e].prevXVal=[]})):(t.prevY=[],t.prevX=[],t.prevYF=[],t.prevXF=[],t.prevYVal=[],t.prevXVal=[])}},{key:"initializeStackedXYVars",value:function(t){var e=t.w;e.globals.hasSeriesGroups?e.globals.seriesGroups.forEach((function(e){t[e]||(t[e]={}),t[e].xArrj=[],t[e].xArrjF=[],t[e].xArrjVal=[],t[e].yArrj=[],t[e].yArrjF=[],t[e].yArrjVal=[]})):(t.xArrj=[],t.xArrjF=[],t.xArrjVal=[],t.yArrj=[],t.yArrjF=[],t.yArrjVal=[])}},{key:"getPathFillColor",value:function(t,e,i,a){var s,r,o,n,l=this.w,h=new N(this.barCtx.ctx),c=null,d=this.barCtx.barOptions.distributed?i:e;return this.barCtx.barOptions.colors.ranges.length>0&&this.barCtx.barOptions.colors.ranges.map((function(a){t[e][i]>=a.from&&t[e][i]<=a.to&&(c=a.color)})),l.config.series[e].data[i]&&l.config.series[e].data[i].fillColor&&(c=l.config.series[e].data[i].fillColor),h.fillPath({seriesNumber:this.barCtx.barOptions.distributed?d:a,dataPointIndex:i,color:c,value:t[e][i],fillConfig:null===(s=l.config.series[e].data[i])||void 0===s?void 0:s.fill,fillType:null!==(r=l.config.series[e].data[i])&&void 0!==r&&null!==(o=r.fill)&&void 0!==o&&o.type?null===(n=l.config.series[e].data[i])||void 0===n?void 0:n.fill.type:Array.isArray(l.config.fill.type)?l.config.fill.type[e]:l.config.fill.type})}},{key:"getStrokeWidth",value:function(t,e,i){var a=0,s=this.w;return void 0===this.barCtx.series[t][e]||null===this.barCtx.series[t][e]?this.barCtx.isNullValue=!0:this.barCtx.isNullValue=!1,s.config.stroke.show&&(this.barCtx.isNullValue||(a=Array.isArray(this.barCtx.strokeWidth)?this.barCtx.strokeWidth[i]:this.barCtx.strokeWidth)),a}},{key:"shouldApplyRadius",value:function(t){var e=this.w,i=!1;return e.config.plotOptions.bar.borderRadius>0&&(e.config.chart.stacked&&"last"===e.config.plotOptions.bar.borderRadiusWhenStacked?this.barCtx.lastActiveBarSerieIndex===t&&(i=!0):i=!0),i}},{key:"barBackground",value:function(t){var e=t.j,i=t.i,a=t.x1,s=t.x2,r=t.y1,o=t.y2,n=t.elSeries,l=this.w,h=new A(this.barCtx.ctx),c=new V(this.barCtx.ctx).getActiveConfigSeriesIndex();if(this.barCtx.barOptions.colors.backgroundBarColors.length>0&&c===i){e>=this.barCtx.barOptions.colors.backgroundBarColors.length&&(e%=this.barCtx.barOptions.colors.backgroundBarColors.length);var d=this.barCtx.barOptions.colors.backgroundBarColors[e],g=h.drawRect(void 0!==a?a:0,void 0!==r?r:0,void 0!==s?s:l.globals.gridWidth,void 0!==o?o:l.globals.gridHeight,this.barCtx.barOptions.colors.backgroundBarRadius,d,this.barCtx.barOptions.colors.backgroundBarOpacity);n.add(g),g.node.classList.add("apexcharts-backgroundBar")}}},{key:"getColumnPaths",value:function(t){var e,i=t.barWidth,a=t.barXPosition,s=t.y1,r=t.y2,o=t.strokeWidth,n=t.seriesGroup,l=t.realIndex,h=t.i,c=t.j,d=t.w,g=new A(this.barCtx.ctx);(o=Array.isArray(o)?o[l]:o)||(o=0);var u=i,p=a;null!==(e=d.config.series[l].data[c])&&void 0!==e&&e.columnWidthOffset&&(p=a-d.config.series[l].data[c].columnWidthOffset/2,u=i+d.config.series[l].data[c].columnWidthOffset);var f=p,x=p+u;s+=.001,r+=.001;var b=g.move(f,s),v=g.move(f,s),m=g.line(x-o,s);if(d.globals.previousPaths.length>0&&(v=this.barCtx.getPreviousPath(l,c,!1)),b=b+g.line(f,r)+g.line(x-o,r)+g.line(x-o,s)+("around"===d.config.plotOptions.bar.borderRadiusApplication?" Z":" z"),v=v+g.line(f,s)+m+m+m+m+m+g.line(f,s)+("around"===d.config.plotOptions.bar.borderRadiusApplication?" Z":" z"),this.shouldApplyRadius(l)&&(b=g.roundPathCorners(b,d.config.plotOptions.bar.borderRadius)),d.config.chart.stacked){var y=this.barCtx;d.globals.hasSeriesGroups&&n&&(y=this.barCtx[n]),y.yArrj.push(r),y.yArrjF.push(Math.abs(s-r)),y.yArrjVal.push(this.barCtx.series[h][c])}return{pathTo:b,pathFrom:v}}},{key:"getBarpaths",value:function(t){var e,i=t.barYPosition,a=t.barHeight,s=t.x1,r=t.x2,o=t.strokeWidth,n=t.seriesGroup,l=t.realIndex,h=t.i,c=t.j,d=t.w,g=new A(this.barCtx.ctx);(o=Array.isArray(o)?o[l]:o)||(o=0);var u=i,p=a;null!==(e=d.config.series[l].data[c])&&void 0!==e&&e.barHeightOffset&&(u=i-d.config.series[l].data[c].barHeightOffset/2,p=a+d.config.series[l].data[c].barHeightOffset);var f=u,x=u+p;s+=.001,r+=.001;var b=g.move(s,f),v=g.move(s,f);d.globals.previousPaths.length>0&&(v=this.barCtx.getPreviousPath(l,c,!1));var m=g.line(s,x-o);if(b=b+g.line(r,f)+g.line(r,x-o)+m+("around"===d.config.plotOptions.bar.borderRadiusApplication?" Z":" z"),v=v+g.line(s,f)+m+m+m+m+m+g.line(s,f)+("around"===d.config.plotOptions.bar.borderRadiusApplication?" Z":" z"),this.shouldApplyRadius(l)&&(b=g.roundPathCorners(b,d.config.plotOptions.bar.borderRadius)),d.config.chart.stacked){var y=this.barCtx;d.globals.hasSeriesGroups&&n&&(y=this.barCtx[n]),y.xArrj.push(r),y.xArrjF.push(Math.abs(s-r)),y.xArrjVal.push(this.barCtx.series[h][c])}return{pathTo:b,pathFrom:v}}},{key:"checkZeroSeries",value:function(t){for(var e=t.series,i=this.w,a=0;a2&&void 0!==arguments[2]&&!arguments[2]?null:e;return null!=t&&(i=e+t/this.barCtx.invertedYRatio-2*(this.barCtx.isReversed?t/this.barCtx.invertedYRatio:0)),i}},{key:"getYForValue",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]&&!arguments[2]?null:e;return null!=t&&(i=e-t/this.barCtx.yRatio[this.barCtx.yaxisIndex]+2*(this.barCtx.isReversed?t/this.barCtx.yRatio[this.barCtx.yaxisIndex]:0)),i}},{key:"getGoalValues",value:function(t,e,i,a,s){var o=this,n=this.w,l=[],h=function(a,s){var r;l.push((c(r={},t,"x"===t?o.getXForValue(a,e,!1):o.getYForValue(a,i,!1)),c(r,"attrs",s),r))};if(n.globals.seriesGoals[a]&&n.globals.seriesGoals[a][s]&&Array.isArray(n.globals.seriesGoals[a][s])&&n.globals.seriesGoals[a][s].forEach((function(t){h(t.value,t)})),this.barCtx.barOptions.isDumbbell&&n.globals.seriesRange.length){var d=this.barCtx.barOptions.dumbbellColors?this.barCtx.barOptions.dumbbellColors:n.globals.colors,g={strokeHeight:"x"===t?0:n.globals.markers.size[a],strokeWidth:"x"===t?n.globals.markers.size[a]:0,strokeDashArray:0,strokeLineCap:"round",strokeColor:Array.isArray(d[a])?d[a][0]:d[a]};h(n.globals.seriesRangeStart[a][s],g),h(n.globals.seriesRangeEnd[a][s],r(r({},g),{},{strokeColor:Array.isArray(d[a])?d[a][1]:d[a]}))}return l}},{key:"drawGoalLine",value:function(t){var e=t.barXPosition,i=t.barYPosition,a=t.goalX,s=t.goalY,r=t.barWidth,o=t.barHeight,n=new A(this.barCtx.ctx),l=n.group({className:"apexcharts-bar-goals-groups"});l.node.classList.add("apexcharts-element-hidden"),this.barCtx.w.globals.delayedElements.push({el:l.node}),l.attr("clip-path","url(#gridRectMarkerMask".concat(this.barCtx.w.globals.cuid,")"));var h=null;return this.barCtx.isHorizontal?Array.isArray(a)&&a.forEach((function(t){var e=void 0!==t.attrs.strokeHeight?t.attrs.strokeHeight:o/2,a=i+e+o/2;h=n.drawLine(t.x,a-2*e,t.x,a,t.attrs.strokeColor?t.attrs.strokeColor:void 0,t.attrs.strokeDashArray,t.attrs.strokeWidth?t.attrs.strokeWidth:2,t.attrs.strokeLineCap),l.add(h)})):Array.isArray(s)&&s.forEach((function(t){var i=void 0!==t.attrs.strokeWidth?t.attrs.strokeWidth:r/2,a=e+i+r/2;h=n.drawLine(a-2*i,t.y,a,t.y,t.attrs.strokeColor?t.attrs.strokeColor:void 0,t.attrs.strokeDashArray,t.attrs.strokeHeight?t.attrs.strokeHeight:2,t.attrs.strokeLineCap),l.add(h)})),l}},{key:"drawBarShadow",value:function(t){var e=t.prevPaths,i=t.currPaths,a=t.color,s=this.w,r=e.x,o=e.x1,n=e.barYPosition,l=i.x,h=i.x1,c=i.barYPosition,d=n+i.barHeight,g=new A(this.barCtx.ctx),u=new y,p=g.move(o,d)+g.line(r,d)+g.line(l,c)+g.line(h,c)+g.line(o,d)+("around"===s.config.plotOptions.bar.borderRadiusApplication?" Z":" z");return g.drawPath({d:p,fill:u.shadeColor(.5,y.rgb2hex(a)),stroke:"none",strokeWidth:0,fillOpacity:1,classes:"apexcharts-bar-shadows"})}},{key:"getZeroValueEncounters",value:function(t){var e=t.i,i=t.j,a=this.w,s=0,r=0;return a.globals.seriesPercent.forEach((function(t,a){t[i]&&s++,athis.barOptions.dataLabels.maxItems&&console.warn("WARNING: DataLabels are enabled but there are too many to display. This may cause performance issue when rendering - ApexCharts");for(var n=0,l=0;n0&&(this.visibleI=this.visibleI+1);var m=0,w=0;this.yRatio.length>1&&(this.yaxisIndex=b),this.isReversed=i.config.yaxis[this.yaxisIndex]&&i.config.yaxis[this.yaxisIndex].reversed;var k=this.barHelpers.initialPositions();p=k.y,m=k.barHeight,c=k.yDivision,g=k.zeroW,u=k.x,w=k.barWidth,h=k.xDivision,d=k.zeroH,this.horizontal||x.push(u+w/2);var C=a.group({class:"apexcharts-datalabels","data:realIndex":b});i.globals.delayedElements.push({el:C.node}),C.node.classList.add("apexcharts-element-hidden");var L=a.group({class:"apexcharts-bar-goals-markers"}),P=a.group({class:"apexcharts-bar-shadows"});i.globals.delayedElements.push({el:P.node}),P.node.classList.add("apexcharts-element-hidden");for(var I=0;I0){var E=this.barHelpers.drawBarShadow({color:"string"==typeof X&&-1===(null==X?void 0:X.indexOf("url"))?X:y.hexToRgba(i.globals.colors[n]),prevPaths:this.pathArr[this.pathArr.length-1],currPaths:M});E&&P.add(E)}this.pathArr.push(M);var Y=this.barHelpers.drawGoalLine({barXPosition:M.barXPosition,barYPosition:M.barYPosition,goalX:M.goalX,goalY:M.goalY,barHeight:m,barWidth:w});Y&&L.add(Y),p=M.y,u=M.x,I>0&&x.push(u+w/2),f.push(p),this.renderSeries({realIndex:b,pathFill:X,j:I,i:n,pathFrom:M.pathFrom,pathTo:M.pathTo,strokeWidth:T,elSeries:v,x:u,y:p,series:t,barHeight:M.barHeight?M.barHeight:m,barWidth:M.barWidth?M.barWidth:w,elDataLabelsWrap:C,elGoalsMarkers:L,elBarShadows:P,visibleSeries:this.visibleI,type:"bar"})}i.globals.seriesXvalues[b]=x,i.globals.seriesYvalues[b]=f,o.add(v)}return o}},{key:"renderSeries",value:function(t){var e=t.realIndex,i=t.pathFill,a=t.lineFill,s=t.j,r=t.i,o=t.groupIndex,n=t.pathFrom,l=t.pathTo,h=t.strokeWidth,c=t.elSeries,d=t.x,g=t.y,u=t.y1,p=t.y2,f=t.series,x=t.barHeight,b=t.barWidth,v=t.barXPosition,m=t.barYPosition,y=t.elDataLabelsWrap,w=t.elGoalsMarkers,S=t.elBarShadows,C=t.visibleSeries,L=t.type,P=this.w,I=new A(this.ctx);a||(a=this.barOptions.distributed?P.globals.stroke.colors[s]:P.globals.stroke.colors[e]),P.config.series[r].data[s]&&P.config.series[r].data[s].strokeColor&&(a=P.config.series[r].data[s].strokeColor),this.isNullValue&&(i="none");var T=s/P.config.chart.animations.animateGradually.delay*(P.config.chart.animations.speed/P.globals.dataPoints)/2.4,M=I.renderPaths({i:r,j:s,realIndex:e,pathFrom:n,pathTo:l,stroke:a,strokeWidth:h,strokeLineCap:P.config.stroke.lineCap,fill:i,animationDelay:T,initialSpeed:P.config.chart.animations.speed,dataChangeSpeed:P.config.chart.animations.dynamicAnimation.speed,className:"apexcharts-".concat(L,"-area")});M.attr("clip-path","url(#gridRectMask".concat(P.globals.cuid,")"));var z=P.config.forecastDataPoints;z.count>0&&s>=P.globals.dataPoints-z.count&&(M.node.setAttribute("stroke-dasharray",z.dashArray),M.node.setAttribute("stroke-width",z.strokeWidth),M.node.setAttribute("fill-opacity",z.fillOpacity)),void 0!==u&&void 0!==p&&(M.attr("data-range-y1",u),M.attr("data-range-y2",p)),new k(this.ctx).setSelectionFilter(M,e,s),c.add(M);var X=new kt(this).handleBarDataLabels({x:d,y:g,y1:u,y2:p,i:r,j:s,series:f,realIndex:e,groupIndex:o,barHeight:x,barWidth:b,barXPosition:v,barYPosition:m,renderedPath:M,visibleSeries:C});return null!==X.dataLabels&&y.add(X.dataLabels),X.totalDataLabels&&y.add(X.totalDataLabels),c.add(y),w&&c.add(w),S&&c.add(S),c}},{key:"drawBarPaths",value:function(t){var e,i=t.indexes,a=t.barHeight,s=t.strokeWidth,r=t.zeroW,o=t.x,n=t.y,l=t.yDivision,h=t.elSeries,c=this.w,d=i.i,g=i.j;if(c.globals.isXNumeric)e=(n=(c.globals.seriesX[d][g]-c.globals.minX)/this.invertedXRatio-a)+a*this.visibleI;else if(c.config.plotOptions.bar.hideZeroBarsWhenGrouped){var u=0,p=0;c.globals.seriesPercent.forEach((function(t,e){t[g]&&u++,e0&&(a=this.seriesLen*a/u),e=n+a*this.visibleI,e-=a*p}else e=n+a*this.visibleI;this.isFunnel&&(r-=(this.barHelpers.getXForValue(this.series[d][g],r)-r)/2),o=this.barHelpers.getXForValue(this.series[d][g],r);var f=this.barHelpers.getBarpaths({barYPosition:e,barHeight:a,x1:r,x2:o,strokeWidth:s,series:this.series,realIndex:i.realIndex,i:d,j:g,w:c});return c.globals.isXNumeric||(n+=l),this.barHelpers.barBackground({j:g,i:d,y1:e-a*this.visibleI,y2:a*this.seriesLen,elSeries:h}),{pathTo:f.pathTo,pathFrom:f.pathFrom,x1:r,x:o,y:n,goalX:this.barHelpers.getGoalValues("x",r,null,d,g),barYPosition:e,barHeight:a}}},{key:"drawColumnPaths",value:function(t){var e,i=t.indexes,a=t.x,s=t.y,r=t.xDivision,o=t.barWidth,n=t.zeroH,l=t.strokeWidth,h=t.elSeries,c=this.w,d=i.realIndex,g=i.i,u=i.j,p=i.bc;if(c.globals.isXNumeric){var f=this.getBarXForNumericXAxis({x:a,j:u,realIndex:d,barWidth:o});a=f.x,e=f.barXPosition}else if(c.config.plotOptions.bar.hideZeroBarsWhenGrouped){var x=this.barHelpers.getZeroValueEncounters({i:g,j:u}),b=x.nonZeroColumns,v=x.zeroEncounters;b>0&&(o=this.seriesLen*o/b),e=a+o*this.visibleI,e-=o*v}else e=a+o*this.visibleI;s=this.barHelpers.getYForValue(this.series[g][u],n);var m=this.barHelpers.getColumnPaths({barXPosition:e,barWidth:o,y1:n,y2:s,strokeWidth:l,series:this.series,realIndex:i.realIndex,i:g,j:u,w:c});return c.globals.isXNumeric||(a+=r),this.barHelpers.barBackground({bc:p,j:u,i:g,x1:e-l/2-o*this.visibleI,x2:o*this.seriesLen+l/2,elSeries:h}),{pathTo:m.pathTo,pathFrom:m.pathFrom,x:a,y:s,goalY:this.barHelpers.getGoalValues("y",null,n,g,u),barXPosition:e,barWidth:o}}},{key:"getBarXForNumericXAxis",value:function(t){var e=t.x,i=t.barWidth,a=t.realIndex,s=t.j,r=this.w,o=a;return r.globals.seriesX[a].length||(o=r.globals.maxValsInArrayIndex),r.globals.seriesX[o][s]&&(e=(r.globals.seriesX[o][s]-r.globals.minX)/this.xRatio-i*this.seriesLen/2),{barXPosition:e+i*this.visibleI,x:e}}},{key:"getPreviousPath",value:function(t,e){for(var i,a=this.w,s=0;s0&&parseInt(r.realIndex,10)===parseInt(t,10)&&void 0!==a.globals.previousPaths[s].paths[e]&&(i=a.globals.previousPaths[s].paths[e].d)}return i}}]),t}(),Ct=function(t){d(i,t);var e=f(i);function i(){return n(this,i),e.apply(this,arguments)}return h(i,[{key:"draw",value:function(t,e){var i=this,a=this.w;this.graphics=new A(this.ctx),this.bar=new St(this.ctx,this.xyRatios);var s=new S(this.ctx,a);t=s.getLogSeries(t),this.yRatio=s.getLogYRatios(this.yRatio),this.barHelpers.initVariables(t),"100%"===a.config.chart.stackType&&(t=a.globals.seriesPercent.slice()),this.series=t,this.barHelpers.initializeStackedPrevVars(this);for(var o=this.graphics.group({class:"apexcharts-bar-series apexcharts-plot-series"}),n=0,l=0,h=function(s,h){var c=void 0,d=void 0,g=void 0,u=void 0,p=-1;i.groupCtx=i,a.globals.seriesGroups.forEach((function(t,e){t.indexOf(a.config.series[s].name)>-1&&(p=e)})),-1!==p&&(i.groupCtx=i[a.globals.seriesGroups[p]]);var f=[],x=[],b=a.globals.comboCharts?e[s]:s;i.yRatio.length>1&&(i.yaxisIndex=b),i.isReversed=a.config.yaxis[i.yaxisIndex]&&a.config.yaxis[i.yaxisIndex].reversed;var v=i.graphics.group({class:"apexcharts-series",seriesName:y.escapeString(a.globals.seriesNames[b]),rel:s+1,"data:realIndex":b});i.ctx.series.addCollapsedClassToSeries(v,b);var m=i.graphics.group({class:"apexcharts-datalabels","data:realIndex":b}),w=i.graphics.group({class:"apexcharts-bar-goals-markers"}),k=0,A=0,S=i.initialPositions(n,l,c,d,g,u);l=S.y,k=S.barHeight,d=S.yDivision,u=S.zeroW,n=S.x,A=S.barWidth,c=S.xDivision,g=S.zeroH,a.globals.barHeight=k,a.globals.barWidth=A,i.barHelpers.initializeStackedXYVars(i),1===i.groupCtx.prevY.length&&i.groupCtx.prevY[0].every((function(t){return isNaN(t)}))&&(i.groupCtx.prevY[0]=i.groupCtx.prevY[0].map((function(t){return g})),i.groupCtx.prevYF[0]=i.groupCtx.prevYF[0].map((function(t){return 0})));for(var C=0;C1?(i=c.globals.minXDiff/this.xRatio)*parseInt(this.barOptions.columnWidth,10)/100:h*parseInt(c.config.plotOptions.bar.columnWidth,10)/100,-1===String(c.config.plotOptions.bar.columnWidth).indexOf("%")&&(h=parseInt(c.config.plotOptions.bar.columnWidth,10)),s=c.globals.gridHeight-this.baseLineY[this.yaxisIndex]-(this.isReversed?c.globals.gridHeight:0)+(this.isReversed?2*this.baseLineY[this.yaxisIndex]:0),t=c.globals.padHorizontal+(i-h)/2),{x:t,y:e,yDivision:a,xDivision:i,barHeight:null!==(o=c.globals.seriesGroups)&&void 0!==o&&o.length?l/c.globals.seriesGroups.length:l,barWidth:null!==(n=c.globals.seriesGroups)&&void 0!==n&&n.length?h/c.globals.seriesGroups.length:h,zeroH:s,zeroW:r}}},{key:"drawStackedBarPaths",value:function(t){for(var e,i=t.indexes,a=t.barHeight,s=t.strokeWidth,r=t.zeroW,o=t.x,n=t.y,l=t.groupIndex,h=t.seriesGroup,c=t.yDivision,d=t.elSeries,g=this.w,u=n+(-1!==l?l*a:0),p=i.i,f=i.j,x=0,b=0;b0){var m=r;this.groupCtx.prevXVal[v-1][f]<0?m=this.series[p][f]>=0?this.groupCtx.prevX[v-1][f]+x-2*(this.isReversed?x:0):this.groupCtx.prevX[v-1][f]:this.groupCtx.prevXVal[v-1][f]>=0&&(m=this.series[p][f]>=0?this.groupCtx.prevX[v-1][f]:this.groupCtx.prevX[v-1][f]-x+2*(this.isReversed?x:0)),e=m}else e=r;o=null===this.series[p][f]?e:e+this.series[p][f]/this.invertedYRatio-2*(this.isReversed?this.series[p][f]/this.invertedYRatio:0);var y=this.barHelpers.getBarpaths({barYPosition:u,barHeight:a,x1:e,x2:o,strokeWidth:s,series:this.series,realIndex:i.realIndex,seriesGroup:h,i:p,j:f,w:g});return this.barHelpers.barBackground({j:f,i:p,y1:u,y2:a,elSeries:d}),n+=c,{pathTo:y.pathTo,pathFrom:y.pathFrom,goalX:this.barHelpers.getGoalValues("x",r,null,p,f),barYPosition:u,x:o,y:n}}},{key:"drawStackedColumnPaths",value:function(t){var e=t.indexes,i=t.x,a=t.y,s=t.xDivision,r=t.barWidth,o=t.zeroH,n=t.groupIndex,l=t.seriesGroup,h=t.elSeries,c=this.w,d=e.i,g=e.j,u=e.bc;if(c.globals.isXNumeric){var p=c.globals.seriesX[d][g];p||(p=0),i=(p-c.globals.minX)/this.xRatio-r/2,c.globals.seriesGroups.length&&(i=(p-c.globals.minX)/this.xRatio-r/2*c.globals.seriesGroups.length)}for(var f,x=i+(-1!==n?n*r:0),b=0,v=0;v0&&!c.globals.isXNumeric||m>0&&c.globals.isXNumeric&&c.globals.seriesX[d-1][g]===c.globals.seriesX[d][g]){var y,w,k,A=Math.min(this.yRatio.length+1,d+1);if(void 0!==this.groupCtx.prevY[m-1]&&this.groupCtx.prevY[m-1].length)for(var S=1;S=0?k-b+2*(this.isReversed?b:0):k;break}if((null===(I=this.groupCtx.prevYVal[m-L])||void 0===I?void 0:I[g])>=0){w=this.series[d][g]>=0?k:k+b-2*(this.isReversed?b:0);break}}void 0===w&&(w=c.globals.gridHeight),f=null!==(y=this.groupCtx.prevYF[0])&&void 0!==y&&y.every((function(t){return 0===t}))&&this.groupCtx.prevYF.slice(1,m).every((function(t){return t.every((function(t){return isNaN(t)}))}))?o:w}else f=o;a=this.series[d][g]?f-this.series[d][g]/this.yRatio[this.yaxisIndex]+2*(this.isReversed?this.series[d][g]/this.yRatio[this.yaxisIndex]:0):f;var T=this.barHelpers.getColumnPaths({barXPosition:x,barWidth:r,y1:f,y2:a,yRatio:this.yRatio[this.yaxisIndex],strokeWidth:this.strokeWidth,series:this.series,seriesGroup:l,realIndex:e.realIndex,i:d,j:g,w:c});return this.barHelpers.barBackground({bc:u,j:g,i:d,x1:x,x2:r,elSeries:h}),i+=s,{pathTo:T.pathTo,pathFrom:T.pathFrom,goalY:this.barHelpers.getGoalValues("y",null,o,d,g),barXPosition:x,x:c.globals.isXNumeric?i-s:i,y:a}}}]),i}(St),Lt=function(t){d(i,t);var e=f(i);function i(){return n(this,i),e.apply(this,arguments)}return h(i,[{key:"draw",value:function(t,e,i){var a=this,s=this.w,o=new A(this.ctx),n=s.globals.comboCharts?e:s.config.chart.type,l=new N(this.ctx);this.candlestickOptions=this.w.config.plotOptions.candlestick,this.boxOptions=this.w.config.plotOptions.boxPlot,this.isHorizontal=s.config.plotOptions.bar.horizontal;var h=new S(this.ctx,s);t=h.getLogSeries(t),this.series=t,this.yRatio=h.getLogYRatios(this.yRatio),this.barHelpers.initVariables(t);for(var c=o.group({class:"apexcharts-".concat(n,"-series apexcharts-plot-series")}),d=function(e){a.isBoxPlot="boxPlot"===s.config.chart.type||"boxPlot"===s.config.series[e].type;var n,h,d,g,u,p,f=void 0,x=void 0,b=[],v=[],m=s.globals.comboCharts?i[e]:e,w=o.group({class:"apexcharts-series",seriesName:y.escapeString(s.globals.seriesNames[m]),rel:e+1,"data:realIndex":m});a.ctx.series.addCollapsedClassToSeries(w,m),t[e].length>0&&(a.visibleI=a.visibleI+1),a.yRatio.length>1&&(a.yaxisIndex=m);var k=a.barHelpers.initialPositions();x=k.y,u=k.barHeight,h=k.yDivision,g=k.zeroW,f=k.x,p=k.barWidth,n=k.xDivision,d=k.zeroH,v.push(f+p/2);for(var A=o.group({class:"apexcharts-datalabels","data:realIndex":m}),S=function(i){var o=a.barHelpers.getStrokeWidth(e,i,m),c=null,y={indexes:{i:e,j:i,realIndex:m},x:f,y:x,strokeWidth:o,elSeries:w};c=a.isHorizontal?a.drawHorizontalBoxPaths(r(r({},y),{},{yDivision:h,barHeight:u,zeroW:g})):a.drawVerticalBoxPaths(r(r({},y),{},{xDivision:n,barWidth:p,zeroH:d})),x=c.y,f=c.x,i>0&&v.push(f+p/2),b.push(x),c.pathTo.forEach((function(r,n){var h=!a.isBoxPlot&&a.candlestickOptions.wick.useFillColor?c.color[n]:s.globals.stroke.colors[e],d=l.fillPath({seriesNumber:m,dataPointIndex:i,color:c.color[n],value:t[e][i]});a.renderSeries({realIndex:m,pathFill:d,lineFill:h,j:i,i:e,pathFrom:c.pathFrom,pathTo:r,strokeWidth:o,elSeries:w,x:f,y:x,series:t,barHeight:u,barWidth:p,elDataLabelsWrap:A,visibleSeries:a.visibleI,type:s.config.chart.type})}))},C=0;Cb.c&&(d=!1);var y=Math.min(b.o,b.c),w=Math.max(b.o,b.c),k=b.m;n.globals.isXNumeric&&(i=(n.globals.seriesX[x][c]-n.globals.minX)/this.xRatio-s/2);var S=i+s*this.visibleI;void 0===this.series[h][c]||null===this.series[h][c]?(y=r,w=r):(y=r-y/f,w=r-w/f,v=r-b.h/f,m=r-b.l/f,k=r-b.m/f);var C=l.move(S,r),L=l.move(S+s/2,y);return n.globals.previousPaths.length>0&&(L=this.getPreviousPath(x,c,!0)),C=this.isBoxPlot?[l.move(S,y)+l.line(S+s/2,y)+l.line(S+s/2,v)+l.line(S+s/4,v)+l.line(S+s-s/4,v)+l.line(S+s/2,v)+l.line(S+s/2,y)+l.line(S+s,y)+l.line(S+s,k)+l.line(S,k)+l.line(S,y+o/2),l.move(S,k)+l.line(S+s,k)+l.line(S+s,w)+l.line(S+s/2,w)+l.line(S+s/2,m)+l.line(S+s-s/4,m)+l.line(S+s/4,m)+l.line(S+s/2,m)+l.line(S+s/2,w)+l.line(S,w)+l.line(S,k)+"z"]:[l.move(S,w)+l.line(S+s/2,w)+l.line(S+s/2,v)+l.line(S+s/2,w)+l.line(S+s,w)+l.line(S+s,y)+l.line(S+s/2,y)+l.line(S+s/2,m)+l.line(S+s/2,y)+l.line(S,y)+l.line(S,w-o/2)],L+=l.move(S,y),n.globals.isXNumeric||(i+=a),{pathTo:C,pathFrom:L,x:i,y:w,barXPosition:S,color:this.isBoxPlot?p:d?[g]:[u]}}},{key:"drawHorizontalBoxPaths",value:function(t){var e=t.indexes;t.x;var i=t.y,a=t.yDivision,s=t.barHeight,r=t.zeroW,o=t.strokeWidth,n=this.w,l=new A(this.ctx),h=e.i,c=e.j,d=this.boxOptions.colors.lower;this.isBoxPlot&&(d=[this.boxOptions.colors.lower,this.boxOptions.colors.upper]);var g=this.invertedYRatio,u=e.realIndex,p=this.getOHLCValue(u,c),f=r,x=r,b=Math.min(p.o,p.c),v=Math.max(p.o,p.c),m=p.m;n.globals.isXNumeric&&(i=(n.globals.seriesX[u][c]-n.globals.minX)/this.invertedXRatio-s/2);var y=i+s*this.visibleI;void 0===this.series[h][c]||null===this.series[h][c]?(b=r,v=r):(b=r+b/g,v=r+v/g,f=r+p.h/g,x=r+p.l/g,m=r+p.m/g);var w=l.move(r,y),k=l.move(b,y+s/2);return n.globals.previousPaths.length>0&&(k=this.getPreviousPath(u,c,!0)),w=[l.move(b,y)+l.line(b,y+s/2)+l.line(f,y+s/2)+l.line(f,y+s/2-s/4)+l.line(f,y+s/2+s/4)+l.line(f,y+s/2)+l.line(b,y+s/2)+l.line(b,y+s)+l.line(m,y+s)+l.line(m,y)+l.line(b+o/2,y),l.move(m,y)+l.line(m,y+s)+l.line(v,y+s)+l.line(v,y+s/2)+l.line(x,y+s/2)+l.line(x,y+s-s/4)+l.line(x,y+s/4)+l.line(x,y+s/2)+l.line(v,y+s/2)+l.line(v,y)+l.line(m,y)+"z"],k+=l.move(b,y),n.globals.isXNumeric||(i+=a),{pathTo:w,pathFrom:k,x:v,y:i,barYPosition:y,color:d}}},{key:"getOHLCValue",value:function(t,e){var i=this.w;return{o:this.isBoxPlot?i.globals.seriesCandleH[t][e]:i.globals.seriesCandleO[t][e],h:this.isBoxPlot?i.globals.seriesCandleO[t][e]:i.globals.seriesCandleH[t][e],m:i.globals.seriesCandleM[t][e],l:this.isBoxPlot?i.globals.seriesCandleC[t][e]:i.globals.seriesCandleL[t][e],c:this.isBoxPlot?i.globals.seriesCandleL[t][e]:i.globals.seriesCandleC[t][e]}}}]),i}(St),Pt=function(){function t(e){n(this,t),this.ctx=e,this.w=e.w}return h(t,[{key:"checkColorRange",value:function(){var t=this.w,e=!1,i=t.config.plotOptions[t.config.chart.type];return i.colorScale.ranges.length>0&&i.colorScale.ranges.map((function(t,i){t.from<=0&&(e=!0)})),e}},{key:"getShadeColor",value:function(t,e,i,a){var s=this.w,r=1,o=s.config.plotOptions[t].shadeIntensity,n=this.determineColor(t,e,i);s.globals.hasNegs||a?r=s.config.plotOptions[t].reverseNegativeShade?n.percent<0?n.percent/100*(1.25*o):(1-n.percent/100)*(1.25*o):n.percent<=0?1-(1+n.percent/100)*o:(1-n.percent/100)*o:(r=1-n.percent/100,"treemap"===t&&(r=(1-n.percent/100)*(1.25*o)));var l=n.color,h=new y;return s.config.plotOptions[t].enableShades&&(l="dark"===this.w.config.theme.mode?y.hexToRgba(h.shadeColor(-1*r,n.color),s.config.fill.opacity):y.hexToRgba(h.shadeColor(r,n.color),s.config.fill.opacity)),{color:l,colorProps:n}}},{key:"determineColor",value:function(t,e,i){var a=this.w,s=a.globals.series[e][i],r=a.config.plotOptions[t],o=r.colorScale.inverse?i:e;r.distributed&&"treemap"===a.config.chart.type&&(o=i);var n=a.globals.colors[o],l=null,h=Math.min.apply(Math,b(a.globals.series[e])),c=Math.max.apply(Math,b(a.globals.series[e]));r.distributed||"heatmap"!==t||(h=a.globals.minY,c=a.globals.maxY),void 0!==r.colorScale.min&&(h=r.colorScale.mina.globals.maxY?r.colorScale.max:a.globals.maxY);var d=Math.abs(c)+Math.abs(h),g=100*s/(0===d?d-1e-6:d);return r.colorScale.ranges.length>0&&r.colorScale.ranges.map((function(t,e){if(s>=t.from&&s<=t.to){n=t.color,l=t.foreColor?t.foreColor:null,h=t.from,c=t.to;var i=Math.abs(c)+Math.abs(h);g=100*s/(0===i?i-1e-6:i)}})),{color:n,foreColor:l,percent:g}}},{key:"calculateDataLabels",value:function(t){var e=t.text,i=t.x,a=t.y,s=t.i,r=t.j,o=t.colorProps,n=t.fontSize,l=this.w.config.dataLabels,h=new A(this.ctx),c=new G(this.ctx),d=null;if(l.enabled){d=h.group({class:"apexcharts-data-labels"});var g=l.offsetX,u=l.offsetY,p=i+g,f=a+parseFloat(l.style.fontSize)/3+u;c.plotDataLabelsText({x:p,y:f,text:e,i:s,j:r,color:o.foreColor,parent:d,fontSize:n,dataLabelsConfig:l})}return d}},{key:"addListeners",value:function(t){var e=new A(this.ctx);t.node.addEventListener("mouseenter",e.pathMouseEnter.bind(this,t)),t.node.addEventListener("mouseleave",e.pathMouseLeave.bind(this,t)),t.node.addEventListener("mousedown",e.pathMouseDown.bind(this,t))}}]),t}(),It=function(){function t(e,i){n(this,t),this.ctx=e,this.w=e.w,this.xRatio=i.xRatio,this.yRatio=i.yRatio,this.dynamicAnim=this.w.config.chart.animations.dynamicAnimation,this.helpers=new Pt(e),this.rectRadius=this.w.config.plotOptions.heatmap.radius,this.strokeWidth=this.w.config.stroke.show?this.w.config.stroke.width:0}return h(t,[{key:"draw",value:function(t){var e=this.w,i=new A(this.ctx),a=i.group({class:"apexcharts-heatmap"});a.attr("clip-path","url(#gridRectMask".concat(e.globals.cuid,")"));var s=e.globals.gridWidth/e.globals.dataPoints,r=e.globals.gridHeight/e.globals.series.length,o=0,n=!1;this.negRange=this.helpers.checkColorRange();var l=t.slice();e.config.yaxis[0].reversed&&(n=!0,l.reverse());for(var h=n?0:l.length-1;n?h=0;n?h++:h--){var c=i.group({class:"apexcharts-series apexcharts-heatmap-series",seriesName:y.escapeString(e.globals.seriesNames[h]),rel:h+1,"data:realIndex":h});if(this.ctx.series.addCollapsedClassToSeries(c,h),e.config.chart.dropShadow.enabled){var d=e.config.chart.dropShadow;new k(this.ctx).dropShadow(c,d,h)}for(var g=0,u=e.config.plotOptions.heatmap.shadeIntensity,p=0;p-1&&this.pieClicked(d),i.config.dataLabels.enabled){var w=v.x,S=v.y,C=100*u/this.fullAngle+"%";if(0!==u&&i.config.plotOptions.pie.dataLabels.minAngleToShowLabelthis.fullAngle?e.endAngle=e.endAngle-(a+o):a+o=this.fullAngle+this.w.config.plotOptions.pie.startAngle%this.fullAngle&&(h=this.fullAngle+this.w.config.plotOptions.pie.startAngle%this.fullAngle-.01),Math.ceil(h)>this.fullAngle&&(h-=this.fullAngle);var c=Math.PI*(h-90)/180,d=i.centerX+r*Math.cos(l),g=i.centerY+r*Math.sin(l),u=i.centerX+r*Math.cos(c),p=i.centerY+r*Math.sin(c),f=y.polarToCartesian(i.centerX,i.centerY,i.donutSize,h),x=y.polarToCartesian(i.centerX,i.centerY,i.donutSize,n),b=s>180?1:0,v=["M",d,g,"A",r,r,0,b,1,u,p];return e="donut"===i.chartType?[].concat(v,["L",f.x,f.y,"A",i.donutSize,i.donutSize,0,b,0,x.x,x.y,"L",d,g,"z"]).join(" "):"pie"===i.chartType||"polarArea"===i.chartType?[].concat(v,["L",i.centerX,i.centerY,"L",d,g]).join(" "):[].concat(v).join(" "),o.roundPathCorners(e,2*this.strokeWidth)}},{key:"drawPolarElements",value:function(t){var e=this.w,i=new $(this.ctx),a=new A(this.ctx),s=new Tt(this.ctx),r=a.group(),o=a.group(),n=i.niceScale(0,Math.ceil(this.maxY),e.config.yaxis[0].tickAmount,0,!0),l=n.result.reverse(),h=n.result.length;this.maxY=n.niceMax;for(var c=e.globals.radialSize,d=c/(h-1),g=0;g1&&t.total.show&&(s=t.total.color);var o=r.globals.dom.baseEl.querySelector(".apexcharts-datalabel-label"),n=r.globals.dom.baseEl.querySelector(".apexcharts-datalabel-value");i=(0,t.value.formatter)(i,r),a||"function"!=typeof t.total.formatter||(i=t.total.formatter(r));var l=e===t.total.label;e=t.name.formatter(e,l,r),null!==o&&(o.textContent=e),null!==n&&(n.textContent=i),null!==o&&(o.style.fill=s)}},{key:"printDataLabelsInner",value:function(t,e){var i=this.w,a=t.getAttribute("data:value"),s=i.globals.seriesNames[parseInt(t.parentNode.getAttribute("rel"),10)-1];i.globals.series.length>1&&this.printInnerLabels(e,s,a,t);var r=i.globals.dom.baseEl.querySelector(".apexcharts-datalabels-group");null!==r&&(r.style.opacity=1)}},{key:"drawSpokes",value:function(t){var e=this,i=this.w,a=new A(this.ctx),s=i.config.plotOptions.polarArea.spokes;if(0!==s.strokeWidth){for(var r=[],o=360/i.globals.series.length,n=0;n1)o&&!e.total.showAlways?l({makeSliceOut:!1,printLabel:!0}):this.printInnerLabels(e,e.total.label,e.total.formatter(s));else if(l({makeSliceOut:!1,printLabel:!0}),!o)if(s.globals.selectedDataPoints.length&&s.globals.series.length>1)if(s.globals.selectedDataPoints[0].length>0){var h=s.globals.selectedDataPoints[0],c=s.globals.dom.baseEl.querySelector(".apexcharts-".concat(this.chartType.toLowerCase(),"-slice-").concat(h));this.printDataLabelsInner(c,e)}else r&&s.globals.selectedDataPoints.length&&0===s.globals.selectedDataPoints[0].length&&(r.style.opacity=0);else r&&s.globals.series.length>1&&(r.style.opacity=0)}}]),t}(),zt=function(){function t(e){n(this,t),this.ctx=e,this.w=e.w,this.chartType=this.w.config.chart.type,this.initialAnim=this.w.config.chart.animations.enabled,this.dynamicAnim=this.initialAnim&&this.w.config.chart.animations.dynamicAnimation.enabled,this.animDur=0;var i=this.w;this.graphics=new A(this.ctx),this.lineColorArr=void 0!==i.globals.stroke.colors?i.globals.stroke.colors:i.globals.colors,this.defaultSize=i.globals.svgHeight0&&(f=e.getPreviousPath(n));for(var x=0;x=10?t.x>0?(i="start",a+=10):t.x<0&&(i="end",a-=10):i="middle",Math.abs(t.y)>=e-10&&(t.y<0?s-=10:t.y>0&&(s+=10)),{textAnchor:i,newX:a,newY:s}}},{key:"getPreviousPath",value:function(t){for(var e=this.w,i=null,a=0;a0&&parseInt(s.realIndex,10)===parseInt(t,10)&&void 0!==e.globals.previousPaths[a].paths[0]&&(i=e.globals.previousPaths[a].paths[0].d)}return i}},{key:"getDataPointsPos",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.dataPointsLen;t=t||[],e=e||[];for(var a=[],s=0;s=360&&(g=360-Math.abs(this.startAngle)-.1);var u=i.drawPath({d:"",stroke:c,strokeWidth:o*parseInt(h.strokeWidth,10)/100,fill:"none",strokeOpacity:h.opacity,classes:"apexcharts-radialbar-area"});if(h.dropShadow.enabled){var p=h.dropShadow;s.dropShadow(u,p)}l.add(u),u.attr("id","apexcharts-radialbarTrack-"+n),this.animatePaths(u,{centerX:t.centerX,centerY:t.centerY,endAngle:g,startAngle:d,size:t.size,i:n,totalItems:2,animBeginArr:0,dur:0,isTrack:!0,easing:e.globals.easing})}return a}},{key:"drawArcs",value:function(t){var e=this.w,i=new A(this.ctx),a=new N(this.ctx),s=new k(this.ctx),r=i.group(),o=this.getStrokeWidth(t);t.size=t.size-o/2;var n=e.config.plotOptions.radialBar.hollow.background,l=t.size-o*t.series.length-this.margin*t.series.length-o*parseInt(e.config.plotOptions.radialBar.track.strokeWidth,10)/100/2,h=l-e.config.plotOptions.radialBar.hollow.margin;void 0!==e.config.plotOptions.radialBar.hollow.image&&(n=this.drawHollowImage(t,r,l,n));var c=this.drawHollow({size:h,centerX:t.centerX,centerY:t.centerY,fill:n||"transparent"});if(e.config.plotOptions.radialBar.hollow.dropShadow.enabled){var d=e.config.plotOptions.radialBar.hollow.dropShadow;s.dropShadow(c,d)}var g=1;!this.radialDataLabels.total.show&&e.globals.series.length>1&&(g=0);var u=null;this.radialDataLabels.show&&(u=this.renderInnerDataLabels(this.radialDataLabels,{hollowSize:l,centerX:t.centerX,centerY:t.centerY,opacity:g})),"back"===e.config.plotOptions.radialBar.hollow.position&&(r.add(c),u&&r.add(u));var p=!1;e.config.plotOptions.radialBar.inverseOrder&&(p=!0);for(var f=p?t.series.length-1:0;p?f>=0:f100?100:t.series[f])/100,S=Math.round(this.totalAngle*w)+this.startAngle,C=void 0;e.globals.dataChanged&&(m=this.startAngle,C=Math.round(this.totalAngle*y.negToZero(e.globals.previousPaths[f])/100)+m),Math.abs(S)+Math.abs(v)>=360&&(S-=.01),Math.abs(C)+Math.abs(m)>=360&&(C-=.01);var L=S-v,P=Array.isArray(e.config.stroke.dashArray)?e.config.stroke.dashArray[f]:e.config.stroke.dashArray,I=i.drawPath({d:"",stroke:b,strokeWidth:o,fill:"none",fillOpacity:e.config.fill.opacity,classes:"apexcharts-radialbar-area apexcharts-radialbar-slice-"+f,strokeDashArray:P});if(A.setAttrs(I.node,{"data:angle":L,"data:value":t.series[f]}),e.config.chart.dropShadow.enabled){var T=e.config.chart.dropShadow;s.dropShadow(I,T,f)}if(s.setSelectionFilter(I,0,f),this.addListeners(I,this.radialDataLabels),x.add(I),I.attr({index:0,j:f}),this.barLabels.enabled){var M=y.polarToCartesian(t.centerX,t.centerY,t.size,v),z=this.barLabels.formatter(e.globals.seriesNames[f],{seriesIndex:f,w:e}),X=["apexcharts-radialbar-label"];this.barLabels.onClick||X.push("apexcharts-no-click");var E=this.barLabels.useSeriesColors?e.globals.colors[f]:e.config.chart.foreColor;E||(E=e.config.chart.foreColor);var Y=M.x-this.barLabels.margin,F=M.y,R=i.drawText({x:Y,y:F,text:z,textAnchor:"end",dominantBaseline:"middle",fontFamily:this.barLabels.fontFamily,fontWeight:this.barLabels.fontWeight,fontSize:this.barLabels.fontSize,foreColor:E,cssClass:X.join(" ")});R.on("click",this.onBarLabelClick),R.attr({rel:f+1}),0!==v&&R.attr({"transform-origin":"".concat(Y," ").concat(F),transform:"rotate(".concat(v," 0 0)")}),x.add(R)}var H=0;!this.initialAnim||e.globals.resized||e.globals.dataChanged||(H=e.config.chart.animations.speed),e.globals.dataChanged&&(H=e.config.chart.animations.dynamicAnimation.speed),this.animDur=H/(1.2*t.series.length)+this.animDur,this.animBeginArr.push(this.animDur),this.animatePaths(I,{centerX:t.centerX,centerY:t.centerY,endAngle:S,startAngle:v,prevEndAngle:C,prevStartAngle:m,size:t.size,i:f,totalItems:2,animBeginArr:this.animBeginArr,dur:H,shouldSetPrevPaths:!0,easing:e.globals.easing})}return{g:r,elHollow:c,dataLabels:u}}},{key:"drawHollow",value:function(t){var e=new A(this.ctx).drawCircle(2*t.size);return e.attr({class:"apexcharts-radialbar-hollow",cx:t.centerX,cy:t.centerY,r:t.size,fill:t.fill}),e}},{key:"drawHollowImage",value:function(t,e,i,a){var s=this.w,r=new N(this.ctx),o=y.randomId(),n=s.config.plotOptions.radialBar.hollow.image;if(s.config.plotOptions.radialBar.hollow.imageClipped)r.clippedImgArea({width:i,height:i,image:n,patternID:"pattern".concat(s.globals.cuid).concat(o)}),a="url(#pattern".concat(s.globals.cuid).concat(o,")");else{var l=s.config.plotOptions.radialBar.hollow.imageWidth,h=s.config.plotOptions.radialBar.hollow.imageHeight;if(void 0===l&&void 0===h){var c=s.globals.dom.Paper.image(n).loaded((function(e){this.move(t.centerX-e.width/2+s.config.plotOptions.radialBar.hollow.imageOffsetX,t.centerY-e.height/2+s.config.plotOptions.radialBar.hollow.imageOffsetY)}));e.add(c)}else{var d=s.globals.dom.Paper.image(n).loaded((function(e){this.move(t.centerX-l/2+s.config.plotOptions.radialBar.hollow.imageOffsetX,t.centerY-h/2+s.config.plotOptions.radialBar.hollow.imageOffsetY),this.size(l,h)}));e.add(d)}}return a}},{key:"getStrokeWidth",value:function(t){var e=this.w;return t.size*(100-parseInt(e.config.plotOptions.radialBar.hollow.size,10))/100/(t.series.length+1)-this.margin}},{key:"onBarLabelClick",value:function(t){var e=parseInt(t.target.getAttribute("rel"),10)-1,i=this.barLabels.onClick,a=this.w;i&&i(a.globals.seriesNames[e],{w:a,seriesIndex:e})}}]),i}(Mt),Et=function(t){d(i,t);var e=f(i);function i(){return n(this,i),e.apply(this,arguments)}return h(i,[{key:"draw",value:function(t,e){var i=this.w,a=new A(this.ctx);this.rangeBarOptions=this.w.config.plotOptions.rangeBar,this.series=t,this.seriesRangeStart=i.globals.seriesRangeStart,this.seriesRangeEnd=i.globals.seriesRangeEnd,this.barHelpers.initVariables(t);for(var s=a.group({class:"apexcharts-rangebar-series apexcharts-plot-series"}),o=0;o0&&(this.visibleI=this.visibleI+1);var x=0,b=0;this.yRatio.length>1&&(this.yaxisIndex=p);var v=this.barHelpers.initialPositions();u=v.y,d=v.zeroW,g=v.x,b=v.barWidth,x=v.barHeight,n=v.xDivision,l=v.yDivision,h=v.zeroH;for(var m=a.group({class:"apexcharts-datalabels","data:realIndex":p}),w=a.group({class:"apexcharts-rangebar-goals-markers"}),k=0;k0}));return this.isHorizontal?(a=g.config.plotOptions.bar.rangeBarGroupRows?r+h*b:r+n*this.visibleI+h*b,v>-1&&!g.config.plotOptions.bar.rangeBarOverlap&&(u=g.globals.seriesRange[e][v].overlaps).indexOf(p)>-1&&(a=(n=d.barHeight/u.length)*this.visibleI+h*(100-parseInt(this.barOptions.barHeight,10))/100/2+n*(this.visibleI+u.indexOf(p))+h*b)):(b>-1&&(s=g.config.plotOptions.bar.rangeBarGroupRows?o+c*b:o+l*this.visibleI+c*b),v>-1&&!g.config.plotOptions.bar.rangeBarOverlap&&(u=g.globals.seriesRange[e][v].overlaps).indexOf(p)>-1&&(s=(l=d.barWidth/u.length)*this.visibleI+c*(100-parseInt(this.barOptions.barWidth,10))/100/2+l*(this.visibleI+u.indexOf(p))+c*b)),{barYPosition:a,barXPosition:s,barHeight:n,barWidth:l}}},{key:"drawRangeColumnPaths",value:function(t){var e=t.indexes,i=t.x,a=t.xDivision,s=t.barWidth,r=t.barXPosition,o=t.zeroH,n=this.w,l=e.i,h=e.j,c=this.yRatio[this.yaxisIndex],d=e.realIndex,g=this.getRangeValue(d,h),u=Math.min(g.start,g.end),p=Math.max(g.start,g.end);void 0===this.series[l][h]||null===this.series[l][h]?u=o:(u=o-u/c,p=o-p/c);var f=Math.abs(p-u),x=this.barHelpers.getColumnPaths({barXPosition:r,barWidth:s,y1:u,y2:p,strokeWidth:this.strokeWidth,series:this.seriesRangeEnd,realIndex:e.realIndex,i:d,j:h,w:n});if(n.globals.isXNumeric){var b=this.getBarXForNumericXAxis({x:i,j:h,realIndex:d,barWidth:s});i=b.x,r=b.barXPosition}else i+=a;return{pathTo:x.pathTo,pathFrom:x.pathFrom,barHeight:f,x:i,y:p,goalY:this.barHelpers.getGoalValues("y",null,o,l,h),barXPosition:r}}},{key:"drawRangeBarPaths",value:function(t){var e=t.indexes,i=t.y,a=t.y1,s=t.y2,r=t.yDivision,o=t.barHeight,n=t.barYPosition,l=t.zeroW,h=this.w,c=l+a/this.invertedYRatio,d=l+s/this.invertedYRatio,g=Math.abs(d-c),u=this.barHelpers.getBarpaths({barYPosition:n,barHeight:o,x1:c,x2:d,strokeWidth:this.strokeWidth,series:this.seriesRangeEnd,i:e.realIndex,realIndex:e.realIndex,j:e.j,w:h});return h.globals.isXNumeric||(i+=r),{pathTo:u.pathTo,pathFrom:u.pathFrom,barWidth:g,x:d,goalX:this.barHelpers.getGoalValues("x",l,null,e.realIndex,e.j),y:i}}},{key:"getRangeValue",value:function(t,e){var i=this.w;return{start:i.globals.seriesRangeStart[t][e],end:i.globals.seriesRangeEnd[t][e]}}}]),i}(St),Yt=function(){function t(e){n(this,t),this.w=e.w,this.lineCtx=e}return h(t,[{key:"sameValueSeriesFix",value:function(t,e){var i=this.w;if(("gradient"===i.config.fill.type||"gradient"===i.config.fill.type[t])&&new S(this.lineCtx.ctx,i).seriesHaveSameValues(t)){var a=e[t].slice();a[a.length-1]=a[a.length-1]+1e-6,e[t]=a}return e}},{key:"calculatePoints",value:function(t){var e=t.series,i=t.realIndex,a=t.x,s=t.y,r=t.i,o=t.j,n=t.prevY,l=this.w,h=[],c=[];if(0===o){var d=this.lineCtx.categoryAxisCorrection+l.config.markers.offsetX;l.globals.isXNumeric&&(d=(l.globals.seriesX[i][0]-l.globals.minX)/this.lineCtx.xRatio+l.config.markers.offsetX),h.push(d),c.push(y.isNumber(e[r][0])?n+l.config.markers.offsetY:null),h.push(a+l.config.markers.offsetX),c.push(y.isNumber(e[r][o+1])?s+l.config.markers.offsetY:null)}else h.push(a+l.config.markers.offsetX),c.push(y.isNumber(e[r][o+1])?s+l.config.markers.offsetY:null);return{x:h,y:c}}},{key:"checkPreviousPaths",value:function(t){for(var e=t.pathFromLine,i=t.pathFromArea,a=t.realIndex,s=this.w,r=0;r0&&parseInt(o.realIndex,10)===parseInt(a,10)&&("line"===o.type?(this.lineCtx.appendPathFrom=!1,e=s.globals.previousPaths[r].paths[0].d):"area"===o.type&&(this.lineCtx.appendPathFrom=!1,i=s.globals.previousPaths[r].paths[0].d,s.config.stroke.show&&s.globals.previousPaths[r].paths[1]&&(e=s.globals.previousPaths[r].paths[1].d)))}return{pathFromLine:e,pathFromArea:i}}},{key:"determineFirstPrevY",value:function(t){var e,i,a=t.i,s=t.series,r=t.prevY,o=t.lineYPosition,n=this.w,l=n.config.chart.stacked&&!n.globals.comboCharts||n.config.chart.stacked&&n.globals.comboCharts&&(!this.w.config.chart.stackOnlyBar||"bar"===(null===(e=this.w.config.series[a])||void 0===e?void 0:e.type));if(void 0!==(null===(i=s[a])||void 0===i?void 0:i[0]))r=(o=l&&a>0?this.lineCtx.prevSeriesY[a-1][0]:this.lineCtx.zeroY)-s[a][0]/this.lineCtx.yRatio[this.lineCtx.yaxisIndex]+2*(this.lineCtx.isReversed?s[a][0]/this.lineCtx.yRatio[this.lineCtx.yaxisIndex]:0);else if(l&&a>0&&void 0===s[a][0])for(var h=a-1;h>=0;h--)if(null!==s[h][0]&&void 0!==s[h][0]){r=o=this.lineCtx.prevSeriesY[h][0];break}return{prevY:r,lineYPosition:o}}}]),t}(),Ft=function(t){for(var e,i,a,s,r=function(t){for(var e=[],i=t[0],a=t[1],s=e[0]=Dt(i,a),r=1,o=t.length-1;r9&&(s=3*a/Math.sqrt(s),r[l]=s*e,r[l+1]=s*i);for(var h=0;h<=o;h++)s=(t[Math.min(o,h+1)][0]-t[Math.max(0,h-1)][0])/(6*(1+r[h]*r[h])),n.push([s||0,r[h]*s||0]);return n},Rt=function(t){for(var e="",i=0;i4?(e+="C".concat(a[0],", ").concat(a[1]),e+=", ".concat(a[2],", ").concat(a[3]),e+=", ".concat(a[4],", ").concat(a[5])):s>2&&(e+="S".concat(a[0],", ").concat(a[1]),e+=", ".concat(a[2],", ").concat(a[3]))}return e},Ht=function(t){var e=Ft(t),i=t[1],a=t[0],s=[],r=e[1],o=e[0];s.push(a,[a[0]+o[0],a[1]+o[1],i[0]-r[0],i[1]-r[1],i[0],i[1]]);for(var n=2,l=e.length;n0&&(b=(o.globals.seriesX[u][0]-o.globals.minX)/this.xRatio),x.push(b);var v,m=b,y=void 0,w=m,k=this.zeroY,C=this.zeroY;k=this.lineHelpers.determineFirstPrevY({i:g,series:t,prevY:k,lineYPosition:0}).prevY,"monotonCubic"===o.config.stroke.curve&&null===t[g][0]?p.push(null):p.push(k),v=k,"rangeArea"===l&&(y=C=this.lineHelpers.determineFirstPrevY({i:g,series:a,prevY:C,lineYPosition:0}).prevY,f.push(C));var L={type:l,series:t,realIndex:u,i:g,x:b,y:1,pX:m,pY:v,pathsFrom:this._calculatePathsFrom({type:l,series:t,i:g,realIndex:u,prevX:w,prevY:k,prevY2:C}),linePaths:[],areaPaths:[],seriesIndex:i,lineYPosition:0,xArrj:x,yArrj:p,y2Arrj:f,seriesRangeEnd:a},P=this._iterateOverDataPoints(r(r({},L),{},{iterations:"rangeArea"===l?t[g].length-1:void 0,isRangeStart:!0}));if("rangeArea"===l){var I=this._calculatePathsFrom({series:a,i:g,realIndex:u,prevX:w,prevY:C}),T=this._iterateOverDataPoints(r(r({},L),{},{series:a,pY:y,pathsFrom:I,iterations:a[g].length-1,isRangeStart:!1}));P.linePaths[0]=T.linePath+P.linePath,P.pathFromLine=T.pathFromLine+P.pathFromLine}this._handlePaths({type:l,realIndex:u,i:g,paths:P}),this.elSeries.add(this.elPointsMain),this.elSeries.add(this.elDataLabelsWrap),d.push(this.elSeries)}if(void 0!==(null===(s=o.config.series[0])||void 0===s?void 0:s.zIndex)&&d.sort((function(t,e){return Number(t.node.getAttribute("zIndex"))-Number(e.node.getAttribute("zIndex"))})),o.config.chart.stacked)for(var M=d.length;M>0;M--)h.add(d[M-1]);else for(var z=0;z1&&(this.yaxisIndex=i),this.isReversed=a.config.yaxis[this.yaxisIndex]&&a.config.yaxis[this.yaxisIndex].reversed,this.zeroY=a.globals.gridHeight-this.baseLineY[this.yaxisIndex]-(this.isReversed?a.globals.gridHeight:0)+(this.isReversed?2*this.baseLineY[this.yaxisIndex]:0),this.areaBottomY=this.zeroY,(this.zeroY>a.globals.gridHeight||"end"===a.config.plotOptions.area.fillTo)&&(this.areaBottomY=a.globals.gridHeight),this.categoryAxisCorrection=this.xDivision/2,this.elSeries=s.group({class:"apexcharts-series",zIndex:void 0!==a.config.series[i].zIndex?a.config.series[i].zIndex:i,seriesName:y.escapeString(a.globals.seriesNames[i])}),this.elPointsMain=s.group({class:"apexcharts-series-markers-wrap","data:realIndex":i}),this.elDataLabelsWrap=s.group({class:"apexcharts-datalabels","data:realIndex":i});var r=t[e].length===a.globals.dataPoints;this.elSeries.attr({"data:longestSeries":r,rel:e+1,"data:realIndex":i}),this.appendPathFrom=!0}},{key:"_calculatePathsFrom",value:function(t){var e,i,a,s,r=t.type,o=t.series,n=t.i,l=t.realIndex,h=t.prevX,c=t.prevY,d=t.prevY2,g=this.w,u=new A(this.ctx);if(null===o[n][0]){for(var p=0;p0){var f=this.lineHelpers.checkPreviousPaths({pathFromLine:a,pathFromArea:s,realIndex:l});a=f.pathFromLine,s=f.pathFromArea}return{prevX:h,prevY:c,linePath:e,areaPath:i,pathFromLine:a,pathFromArea:s}}},{key:"_handlePaths",value:function(t){var e=t.type,i=t.realIndex,a=t.i,s=t.paths,o=this.w,n=new A(this.ctx),l=new N(this.ctx);this.prevSeriesY.push(s.yArrj),o.globals.seriesXvalues[i]=s.xArrj,o.globals.seriesYvalues[i]=s.yArrj;var h=o.config.forecastDataPoints;if(h.count>0&&"rangeArea"!==e){var c=o.globals.seriesXvalues[i][o.globals.seriesXvalues[i].length-h.count-1],d=n.drawRect(c,0,o.globals.gridWidth,o.globals.gridHeight,0);o.globals.dom.elForecastMask.appendChild(d.node);var g=n.drawRect(0,0,c,o.globals.gridHeight,0);o.globals.dom.elNonForecastMask.appendChild(g.node)}this.pointsChart||o.globals.delayedElements.push({el:this.elPointsMain.node,index:i});var u={i:a,realIndex:i,animationDelay:a,initialSpeed:o.config.chart.animations.speed,dataChangeSpeed:o.config.chart.animations.dynamicAnimation.speed,className:"apexcharts-".concat(e)};if("area"===e)for(var p=l.fillPath({seriesNumber:i}),f=0;f0&&"rangeArea"!==e){var S=n.renderPaths(w);S.node.setAttribute("stroke-dasharray",h.dashArray),h.strokeWidth&&S.node.setAttribute("stroke-width",h.strokeWidth),this.elSeries.add(S),S.attr("clip-path","url(#forecastMask".concat(o.globals.cuid,")")),k.attr("clip-path","url(#nonForecastMask".concat(o.globals.cuid,")"))}}}}},{key:"_iterateOverDataPoints",value:function(t){var e,i=this,a=t.type,s=t.series,r=t.iterations,o=t.realIndex,n=t.i,l=t.x,h=t.y,c=t.pX,d=t.pY,g=t.pathsFrom,u=t.linePaths,p=t.areaPaths,f=t.seriesIndex,x=t.lineYPosition,b=t.xArrj,v=t.yArrj,m=t.y2Arrj,w=t.isRangeStart,k=t.seriesRangeEnd,S=this.w,C=new A(this.ctx),L=this.yRatio,P=g.prevY,I=g.linePath,T=g.areaPath,M=g.pathFromLine,z=g.pathFromArea,X=y.isNumber(S.globals.minYArr[o])?S.globals.minYArr[o]:S.globals.minY;r||(r=S.globals.dataPoints>1?S.globals.dataPoints-1:S.globals.dataPoints);for(var E=function(t,e){return e-t/L[i.yaxisIndex]+2*(i.isReversed?t/L[i.yaxisIndex]:0)},Y=h,F=S.config.chart.stacked&&!S.globals.comboCharts||S.config.chart.stacked&&S.globals.comboCharts&&(!this.w.config.chart.stackOnlyBar||"bar"===(null===(e=this.w.config.series[o])||void 0===e?void 0:e.type)),R=0;R0&&S.globals.collapsedSeries.length-1){e--;break}return e>=0?e:0}(n-1)][R+1]:this.zeroY,H?h=E(X,x):(h=E(s[n][R+1],x),"rangeArea"===a&&(Y=E(k[n][R+1],x))),b.push(l),H&&"smooth"===S.config.stroke.curve?v.push(null):v.push(h),m.push(Y);var O=this.lineHelpers.calculatePoints({series:s,x:l,y:h,realIndex:o,i:n,j:R,prevY:P}),N=this._createPaths({type:a,series:s,i:n,realIndex:o,j:R,x:l,y:h,y2:Y,xArrj:b,yArrj:v,y2Arrj:m,pX:c,pY:d,linePath:I,areaPath:T,linePaths:u,areaPaths:p,seriesIndex:f,isRangeStart:w});p=N.areaPaths,u=N.linePaths,c=N.pX,d=N.pY,T=N.areaPath,I=N.linePath,!this.appendPathFrom||"monotoneCubic"===S.config.stroke.curve&&"rangeArea"===a||(M+=C.line(l,this.zeroY),z+=C.line(l,this.zeroY)),this.handleNullDataPoints(s,O,n,R,o),this._handleMarkersAndLabels({type:a,pointsPos:O,i:n,j:R,realIndex:o,isRangeStart:w})}return{yArrj:v,xArrj:b,pathFromArea:z,areaPaths:p,pathFromLine:M,linePaths:u,linePath:I,areaPath:T}}},{key:"_handleMarkersAndLabels",value:function(t){var e=t.type,i=t.pointsPos,a=t.isRangeStart,s=t.i,r=t.j,o=t.realIndex,n=this.w,l=new G(this.ctx);if(this.pointsChart)this.scatter.draw(this.elSeries,r,{realIndex:o,pointsPos:i,zRatio:this.zRatio,elParent:this.elPointsMain});else{n.globals.series[s].length>1&&this.elPointsMain.node.classList.add("apexcharts-element-hidden");var h=this.markers.plotChartMarkers(i,o,r+1);null!==h&&this.elPointsMain.add(h)}var c=l.drawDataLabel({type:e,isRangeStart:a,pos:i,i:o,j:r+1});null!==c&&this.elDataLabelsWrap.add(c)}},{key:"_createPaths",value:function(t){var e=t.type,i=t.series,a=t.i,s=t.realIndex,r=t.j,o=t.x,n=t.y,l=t.xArrj,h=t.yArrj,c=t.y2,d=t.y2Arrj,g=t.pX,u=t.pY,p=t.linePath,f=t.areaPath,x=t.linePaths,b=t.areaPaths,v=t.seriesIndex,m=t.isRangeStart,y=this.w,w=new A(this.ctx),k=y.config.stroke.curve,S=this.areaBottomY;if(Array.isArray(y.config.stroke.curve)&&(k=Array.isArray(v)?y.config.stroke.curve[v[a]]:y.config.stroke.curve[a]),"rangeArea"===e&&(y.globals.hasNullValues||y.config.forecastDataPoints.count>0)&&"monotoneCubic"===k&&(k="straight"),"monotoneCubic"===k){var C="rangeArea"===e?l.length===y.globals.dataPoints:r===i[a].length-2,L=l.map((function(t,e){return[l[e],h[e]]})).filter((function(t){return null!==t[1]}));if(C&&L.length>1){var P=Ht(L);if(p+=Rt(P),null===i[a][0]?f=p:f+=Rt(P),"rangeArea"===e&&m){p+=w.line(l[l.length-1],d[d.length-1]);var I=l.slice().reverse(),T=d.slice().reverse(),M=I.map((function(t,e){return[I[e],T[e]]})),z=Ht(M);f=p+=Rt(z)}else f+=w.line(L[L.length-1][0],S)+w.line(L[0][0],S)+w.move(L[0][0],L[0][1])+"z";x.push(p),b.push(f)}}else if("smooth"===k){var X=.35*(o-g);y.globals.hasNullValues?(null!==i[a][r]&&(null!==i[a][r+1]?(p=w.move(g,u)+w.curve(g+X,u,o-X,n,o+1,n),f=w.move(g+1,u)+w.curve(g+X,u,o-X,n,o+1,n)+w.line(o,S)+w.line(g,S)+"z"):(p=w.move(g,u),f=w.move(g,u)+"z")),x.push(p),b.push(f)):(p+=w.curve(g+X,u,o-X,n,o,n),f+=w.curve(g+X,u,o-X,n,o,n)),g=o,u=n,r===i[a].length-2&&(f=f+w.curve(g,u,o,n,o,S)+w.move(o,n)+"z","rangeArea"===e&&m?p=p+w.curve(g,u,o,n,o,c)+w.move(o,c)+"z":y.globals.hasNullValues||(x.push(p),b.push(f)))}else{if(null===i[a][r+1]){p+=w.move(o,n);var E=y.globals.isXNumeric?(y.globals.seriesX[s][r]-y.globals.minX)/this.xRatio:o-this.xDivision;f=f+w.line(E,S)+w.move(o,n)+"z"}null===i[a][r]&&(p+=w.move(o,n),f+=w.move(o,S)),"stepline"===k?(p=p+w.line(o,null,"H")+w.line(null,n,"V"),f=f+w.line(o,null,"H")+w.line(null,n,"V")):"straight"===k&&(p+=w.line(o,n),f+=w.line(o,n)),r===i[a].length-2&&(f=f+w.line(o,S)+w.move(o,n)+"z","rangeArea"===e&&m?p=p+w.line(o,c)+w.move(o,c)+"z":(x.push(p),b.push(f)))}return{linePaths:x,areaPaths:b,pX:g,pY:u,linePath:p,areaPath:f}}},{key:"handleNullDataPoints",value:function(t,e,i,a,s){var r=this.w;if(null===t[i][a]&&r.config.markers.showNullDataPoints||1===t[i].length){var o=this.markers.plotChartMarkers(e,s,a+1,this.strokeWidth-r.config.markers.strokeWidth/2,!0);null!==o&&this.elPointsMain.add(o)}}}]),t}();window.TreemapSquared={},window.TreemapSquared.generate=function(){function t(e,i,a,s){this.xoffset=e,this.yoffset=i,this.height=s,this.width=a,this.shortestEdge=function(){return Math.min(this.height,this.width)},this.getCoordinates=function(t){var e,i=[],a=this.xoffset,s=this.yoffset,o=r(t)/this.height,n=r(t)/this.width;if(this.width>=this.height)for(e=0;e=this.height){var a=e/this.height,s=this.width-a;i=new t(this.xoffset+a,this.yoffset,s,this.height)}else{var r=e/this.width,o=this.height-r;i=new t(this.xoffset,this.yoffset+r,this.width,o)}return i}}function e(e,a,s,o,n){o=void 0===o?0:o,n=void 0===n?0:n;var l=i(function(t,e){var i,a=[],s=e/r(t);for(i=0;i=o}(e,l=t[0],n)?(e.push(l),i(t.slice(1),e,s,o)):(h=s.cutArea(r(e),o),o.push(s.getCoordinates(e)),i(t,[],h,o)),o;o.push(s.getCoordinates(e))}function a(t,e){var i=Math.min.apply(Math,t),a=Math.max.apply(Math,t),s=r(t);return Math.max(Math.pow(e,2)*a/Math.pow(s,2),Math.pow(s,2)/(Math.pow(e,2)*i))}function s(t){return t&&t.constructor===Array}function r(t){var e,i=0;for(e=0;er-a&&l.width<=o-s){var h=n.rotateAroundCenter(t.node);t.node.setAttribute("transform","rotate(-90 ".concat(h.x," ").concat(h.y,") translate(").concat(l.height/3,")"))}}},{key:"truncateLabels",value:function(t,e,i,a,s,r){var o=new A(this.ctx),n=o.getTextRects(t,e).width+this.w.config.stroke.width+5>s-i&&r-a>s-i?r-a:s-i,l=o.getTextBasedOnMaxWidth({text:t,maxWidth:n,fontSize:e});return t.length!==l.length&&n/e<5?"":l}},{key:"animateTreemap",value:function(t,e,i,a){var s=new w(this.ctx);s.animateRect(t,{x:e.x,y:e.y,width:e.width,height:e.height},{x:i.x,y:i.y,width:i.width,height:i.height},a,(function(){s.animationCompleted(t)}))}}]),t}(),Gt=86400,Vt=function(){function t(e){n(this,t),this.ctx=e,this.w=e.w,this.timeScaleArray=[],this.utc=this.w.config.xaxis.labels.datetimeUTC}return h(t,[{key:"calculateTimeScaleTicks",value:function(t,e){var i=this,a=this.w;if(a.globals.allSeriesCollapsed)return a.globals.labels=[],a.globals.timescaleLabels=[],[];var s=new X(this.ctx),o=(e-t)/864e5;this.determineInterval(o),a.globals.disableZoomIn=!1,a.globals.disableZoomOut=!1,o<.00011574074074074075?a.globals.disableZoomIn=!0:o>5e4&&(a.globals.disableZoomOut=!0);var n=s.getTimeUnitsfromTimestamp(t,e,this.utc),l=a.globals.gridWidth/o,h=l/24,c=h/60,d=c/60,g=Math.floor(24*o),u=Math.floor(1440*o),p=Math.floor(o*Gt),f=Math.floor(o),x=Math.floor(o/30),b=Math.floor(o/365),v={minMillisecond:n.minMillisecond,minSecond:n.minSecond,minMinute:n.minMinute,minHour:n.minHour,minDate:n.minDate,minMonth:n.minMonth,minYear:n.minYear},m={firstVal:v,currentMillisecond:v.minMillisecond,currentSecond:v.minSecond,currentMinute:v.minMinute,currentHour:v.minHour,currentMonthDate:v.minDate,currentDate:v.minDate,currentMonth:v.minMonth,currentYear:v.minYear,daysWidthOnXAxis:l,hoursWidthOnXAxis:h,minutesWidthOnXAxis:c,secondsWidthOnXAxis:d,numberOfSeconds:p,numberOfMinutes:u,numberOfHours:g,numberOfDays:f,numberOfMonths:x,numberOfYears:b};switch(this.tickInterval){case"years":this.generateYearScale(m);break;case"months":case"half_year":this.generateMonthScale(m);break;case"months_days":case"months_fortnight":case"days":case"week_days":this.generateDayScale(m);break;case"hours":this.generateHourScale(m);break;case"minutes_fives":case"minutes":this.generateMinuteScale(m);break;case"seconds_tens":case"seconds_fives":case"seconds":this.generateSecondScale(m)}var y=this.timeScaleArray.map((function(t){var e={position:t.position,unit:t.unit,year:t.year,day:t.day?t.day:1,hour:t.hour?t.hour:0,month:t.month+1};return"month"===t.unit?r(r({},e),{},{day:1,value:t.value+1}):"day"===t.unit||"hour"===t.unit?r(r({},e),{},{value:t.value}):"minute"===t.unit?r(r({},e),{},{value:t.value,minute:t.value}):"second"===t.unit?r(r({},e),{},{value:t.value,minute:t.minute,second:t.second}):t}));return y.filter((function(t){var e=1,s=Math.ceil(a.globals.gridWidth/120),r=t.value;void 0!==a.config.xaxis.tickAmount&&(s=a.config.xaxis.tickAmount),y.length>s&&(e=Math.floor(y.length/s));var o=!1,n=!1;switch(i.tickInterval){case"years":"year"===t.unit&&(o=!0);break;case"half_year":e=7,"year"===t.unit&&(o=!0);break;case"months":e=1,"year"===t.unit&&(o=!0);break;case"months_fortnight":e=15,"year"!==t.unit&&"month"!==t.unit||(o=!0),30===r&&(n=!0);break;case"months_days":e=10,"month"===t.unit&&(o=!0),30===r&&(n=!0);break;case"week_days":e=8,"month"===t.unit&&(o=!0);break;case"days":e=1,"month"===t.unit&&(o=!0);break;case"hours":"day"===t.unit&&(o=!0);break;case"minutes_fives":case"seconds_fives":r%5!=0&&(n=!0);break;case"seconds_tens":r%10!=0&&(n=!0)}if("hours"===i.tickInterval||"minutes_fives"===i.tickInterval||"seconds_tens"===i.tickInterval||"seconds_fives"===i.tickInterval){if(!n)return!0}else if((r%e==0||o)&&!n)return!0}))}},{key:"recalcDimensionsBasedOnFormat",value:function(t,e){var i=this.w,a=this.formatDates(t),s=this.removeOverlappingTS(a);i.globals.timescaleLabels=s.slice(),new ct(this.ctx).plotCoords()}},{key:"determineInterval",value:function(t){var e=24*t,i=60*e;switch(!0){case t/365>5:this.tickInterval="years";break;case t>800:this.tickInterval="half_year";break;case t>180:this.tickInterval="months";break;case t>90:this.tickInterval="months_fortnight";break;case t>60:this.tickInterval="months_days";break;case t>30:this.tickInterval="week_days";break;case t>2:this.tickInterval="days";break;case e>2.4:this.tickInterval="hours";break;case i>15:this.tickInterval="minutes_fives";break;case i>5:this.tickInterval="minutes";break;case i>1:this.tickInterval="seconds_tens";break;case 60*i>20:this.tickInterval="seconds_fives";break;default:this.tickInterval="seconds"}}},{key:"generateYearScale",value:function(t){var e=t.firstVal,i=t.currentMonth,a=t.currentYear,s=t.daysWidthOnXAxis,r=t.numberOfYears,o=e.minYear,n=0,l=new X(this.ctx),h="year";if(e.minDate>1||e.minMonth>0){var c=l.determineRemainingDaysOfYear(e.minYear,e.minMonth,e.minDate);n=(l.determineDaysOfYear(e.minYear)-c+1)*s,o=e.minYear+1,this.timeScaleArray.push({position:n,value:o,unit:h,year:o,month:y.monthMod(i+1)})}else 1===e.minDate&&0===e.minMonth&&this.timeScaleArray.push({position:n,value:o,unit:h,year:a,month:y.monthMod(i+1)});for(var d=o,g=n,u=0;u1){l=(h.determineDaysOfMonths(a+1,e.minYear)-i+1)*r,n=y.monthMod(a+1);var g=s+d,u=y.monthMod(n),p=n;0===n&&(c="year",p=g,u=1,g+=d+=1),this.timeScaleArray.push({position:l,value:p,unit:c,year:g,month:u})}else this.timeScaleArray.push({position:l,value:n,unit:c,year:s,month:y.monthMod(a)});for(var f=n+1,x=l,b=0,v=1;bo.determineDaysOfMonths(e+1,i)?(h=1,n="month",g=e+=1,e):e},d=(24-e.minHour)*s,g=l,u=c(h,i,a);0===e.minHour&&1===e.minDate?(d=0,g=y.monthMod(e.minMonth),n="month",h=e.minDate):1!==e.minDate&&0===e.minHour&&0===e.minMinute&&(d=0,l=e.minDate,g=l,u=c(h=l,i,a)),this.timeScaleArray.push({position:d,value:g,unit:n,year:this._getYear(a,u,0),month:y.monthMod(u),day:h});for(var p=d,f=0;fn.determineDaysOfMonths(e+1,s)&&(f=1,e+=1),{month:e,date:f}},c=function(t,e){return t>n.determineDaysOfMonths(e+1,s)?e+=1:e},d=60-(e.minMinute+e.minSecond/60),g=d*r,u=e.minHour+1,p=u;60===d&&(g=0,p=u=e.minHour);var f=i;p>=24&&(p=0,f+=1,l="day");var x=h(f,a).month;x=c(f,x),this.timeScaleArray.push({position:g,value:u,unit:l,day:f,hour:p,year:s,month:y.monthMod(x)}),p++;for(var b=g,v=0;v=24&&(p=0,l="day",x=h(f+=1,x).month,x=c(f,x));var m=this._getYear(s,x,0);b=60*r+b;var w=0===p?f:p;this.timeScaleArray.push({position:b,value:w,unit:l,hour:p,day:f,year:m,month:y.monthMod(x)}),p++}}},{key:"generateMinuteScale",value:function(t){for(var e=t.currentMillisecond,i=t.currentSecond,a=t.currentMinute,s=t.currentHour,r=t.currentDate,o=t.currentMonth,n=t.currentYear,l=t.minutesWidthOnXAxis,h=t.secondsWidthOnXAxis,c=t.numberOfMinutes,d=a+1,g=r,u=o,p=n,f=s,x=(60-i-e/1e3)*h,b=0;b=60&&(d=0,24===(f+=1)&&(f=0)),this.timeScaleArray.push({position:x,value:d,unit:"minute",hour:f,minute:d,day:g,year:this._getYear(p,u,0),month:y.monthMod(u)}),x+=l,d++}},{key:"generateSecondScale",value:function(t){for(var e=t.currentMillisecond,i=t.currentSecond,a=t.currentMinute,s=t.currentHour,r=t.currentDate,o=t.currentMonth,n=t.currentYear,l=t.secondsWidthOnXAxis,h=t.numberOfSeconds,c=i+1,d=a,g=r,u=o,p=n,f=s,x=(1e3-e)/1e3*l,b=0;b=60&&(c=0,++d>=60&&(d=0,24===++f&&(f=0))),this.timeScaleArray.push({position:x,value:c,unit:"second",hour:f,minute:d,second:c,day:g,year:this._getYear(p,u,0),month:y.monthMod(u)}),x+=l,c++}},{key:"createRawDateString",value:function(t,e){var i=t.year;return 0===t.month&&(t.month=1),i+="-"+("0"+t.month.toString()).slice(-2),"day"===t.unit?i+="day"===t.unit?"-"+("0"+e).slice(-2):"-01":i+="-"+("0"+(t.day?t.day:"1")).slice(-2),"hour"===t.unit?i+="hour"===t.unit?"T"+("0"+e).slice(-2):"T00":i+="T"+("0"+(t.hour?t.hour:"0")).slice(-2),"minute"===t.unit?i+=":"+("0"+e).slice(-2):i+=":"+(t.minute?("0"+t.minute).slice(-2):"00"),"second"===t.unit?i+=":"+("0"+e).slice(-2):i+=":00",this.utc&&(i+=".000Z"),i}},{key:"formatDates",value:function(t){var e=this,i=this.w;return t.map((function(t){var a=t.value.toString(),s=new X(e.ctx),r=e.createRawDateString(t,a),o=s.getDate(s.parseDate(r));if(e.utc||(o=s.getDate(s.parseDateWithTimezone(r))),void 0===i.config.xaxis.labels.format){var n="dd MMM",l=i.config.xaxis.labels.datetimeFormatter;"year"===t.unit&&(n=l.year),"month"===t.unit&&(n=l.month),"day"===t.unit&&(n=l.day),"hour"===t.unit&&(n=l.hour),"minute"===t.unit&&(n=l.minute),"second"===t.unit&&(n=l.second),a=s.formatDate(o,n)}else a=s.formatDate(o,i.config.xaxis.labels.format);return{dateString:r,position:t.position,value:a,unit:t.unit,year:t.year,month:t.month}}))}},{key:"removeOverlappingTS",value:function(t){var e,i=this,a=new A(this.ctx),s=!1;t.length>0&&t[0].value&&t.every((function(e){return e.value.length===t[0].value.length}))&&(s=!0,e=a.getTextRects(t[0].value).width);var r=0,o=t.map((function(o,n){if(n>0&&i.w.config.xaxis.labels.hideOverlappingLabels){var l=s?e:a.getTextRects(t[r].value).width,h=t[r].position;return o.position>h+l+10?(r=n,o):null}return o}));return o.filter((function(t){return null!==t}))}},{key:"_getYear",value:function(t,e,i){return t+Math.floor(e/12)+i}}]),t}(),jt=function(){function t(e,i){n(this,t),this.ctx=i,this.w=i.w,this.el=e}return h(t,[{key:"setupElements",value:function(){var t=this.w.globals,e=this.w.config,i=e.chart.type;t.axisCharts=["line","area","bar","rangeBar","rangeArea","candlestick","boxPlot","scatter","bubble","radar","heatmap","treemap"].indexOf(i)>-1,t.xyCharts=["line","area","bar","rangeBar","rangeArea","candlestick","boxPlot","scatter","bubble"].indexOf(i)>-1,t.isBarHorizontal=("bar"===e.chart.type||"rangeBar"===e.chart.type||"boxPlot"===e.chart.type)&&e.plotOptions.bar.horizontal,t.chartClass=".apexcharts"+t.chartID,t.dom.baseEl=this.el,t.dom.elWrap=document.createElement("div"),A.setAttrs(t.dom.elWrap,{id:t.chartClass.substring(1),class:"apexcharts-canvas "+t.chartClass.substring(1)}),this.el.appendChild(t.dom.elWrap),t.dom.Paper=new window.SVG.Doc(t.dom.elWrap),t.dom.Paper.attr({class:"apexcharts-svg","xmlns:data":"ApexChartsNS",transform:"translate(".concat(e.chart.offsetX,", ").concat(e.chart.offsetY,")")}),t.dom.Paper.node.style.background="dark"!==e.theme.mode||e.chart.background?e.chart.background:"rgba(0, 0, 0, 0.8)",this.setSVGDimensions(),t.dom.elLegendForeign=document.createElementNS(t.SVGNS,"foreignObject"),A.setAttrs(t.dom.elLegendForeign,{x:0,y:0,width:t.svgWidth,height:t.svgHeight}),t.dom.elLegendWrap=document.createElement("div"),t.dom.elLegendWrap.classList.add("apexcharts-legend"),t.dom.elLegendWrap.setAttribute("xmlns","http://www.w3.org/1999/xhtml"),t.dom.elLegendForeign.appendChild(t.dom.elLegendWrap),t.dom.Paper.node.appendChild(t.dom.elLegendForeign),t.dom.elGraphical=t.dom.Paper.group().attr({class:"apexcharts-inner apexcharts-graphical"}),t.dom.elDefs=t.dom.Paper.defs(),t.dom.Paper.add(t.dom.elGraphical),t.dom.elGraphical.add(t.dom.elDefs)}},{key:"plotChartType",value:function(t,e){var i=this.w,a=i.config,s=i.globals,r={series:[],i:[]},o={series:[],i:[]},n={series:[],i:[]},l={series:[],i:[]},h={series:[],i:[]},c={series:[],i:[]},d={series:[],i:[]},g={series:[],i:[]},u={series:[],seriesRangeEnd:[],i:[]};s.series.map((function(e,p){var f=0;void 0!==t[p].type?("column"===t[p].type||"bar"===t[p].type?(s.series.length>1&&a.plotOptions.bar.horizontal&&console.warn("Horizontal bars are not supported in a mixed/combo chart. Please turn off `plotOptions.bar.horizontal`"),h.series.push(e),h.i.push(p),f++,i.globals.columnSeries=h.series):"area"===t[p].type?(o.series.push(e),o.i.push(p),f++):"line"===t[p].type?(r.series.push(e),r.i.push(p),f++):"scatter"===t[p].type?(n.series.push(e),n.i.push(p)):"bubble"===t[p].type?(l.series.push(e),l.i.push(p),f++):"candlestick"===t[p].type?(c.series.push(e),c.i.push(p),f++):"boxPlot"===t[p].type?(d.series.push(e),d.i.push(p),f++):"rangeBar"===t[p].type?(g.series.push(e),g.i.push(p),f++):"rangeArea"===t[p].type?(u.series.push(s.seriesRangeStart[p]),u.seriesRangeEnd.push(s.seriesRangeEnd[p]),u.i.push(p),f++):console.warn("You have specified an unrecognized chart type. Available types for this property are line/area/column/bar/scatter/bubble/candlestick/boxPlot/rangeBar/rangeArea"),f>1&&(s.comboCharts=!0)):(r.series.push(e),r.i.push(p))}));var p=new Ot(this.ctx,e),f=new Lt(this.ctx,e);this.ctx.pie=new Mt(this.ctx);var x=new Xt(this.ctx);this.ctx.rangeBar=new Et(this.ctx,e);var b=new zt(this.ctx),v=[];if(s.comboCharts){if(o.series.length>0&&v.push(p.draw(o.series,"area",o.i)),h.series.length>0)if(i.config.chart.stacked){var m=new Ct(this.ctx,e);v.push(m.draw(h.series,h.i))}else this.ctx.bar=new St(this.ctx,e),v.push(this.ctx.bar.draw(h.series,h.i));if(u.series.length>0&&v.push(p.draw(u.series,"rangeArea",u.i,u.seriesRangeEnd)),r.series.length>0&&v.push(p.draw(r.series,"line",r.i)),c.series.length>0&&v.push(f.draw(c.series,"candlestick",c.i)),d.series.length>0&&v.push(f.draw(d.series,"boxPlot",d.i)),g.series.length>0&&v.push(this.ctx.rangeBar.draw(g.series,g.i)),n.series.length>0){var y=new Ot(this.ctx,e,!0);v.push(y.draw(n.series,"scatter",n.i))}if(l.series.length>0){var w=new Ot(this.ctx,e,!0);v.push(w.draw(l.series,"bubble",l.i))}}else switch(a.chart.type){case"line":v=p.draw(s.series,"line");break;case"area":v=p.draw(s.series,"area");break;case"bar":a.chart.stacked?v=new Ct(this.ctx,e).draw(s.series):(this.ctx.bar=new St(this.ctx,e),v=this.ctx.bar.draw(s.series));break;case"candlestick":v=new Lt(this.ctx,e).draw(s.series,"candlestick");break;case"boxPlot":v=new Lt(this.ctx,e).draw(s.series,a.chart.type);break;case"rangeBar":v=this.ctx.rangeBar.draw(s.series);break;case"rangeArea":v=p.draw(s.seriesRangeStart,"rangeArea",void 0,s.seriesRangeEnd);break;case"heatmap":v=new It(this.ctx,e).draw(s.series);break;case"treemap":v=new Bt(this.ctx,e).draw(s.series);break;case"pie":case"donut":case"polarArea":v=this.ctx.pie.draw(s.series);break;case"radialBar":v=x.draw(s.series);break;case"radar":v=b.draw(s.series);break;default:v=p.draw(s.series)}return v}},{key:"setSVGDimensions",value:function(){var t=this.w.globals,e=this.w.config;t.svgWidth=e.chart.width,t.svgHeight=e.chart.height;var i=y.getDimensions(this.el),a=e.chart.width.toString().split(/[0-9]+/g).pop();"%"===a?y.isNumber(i[0])&&(0===i[0].width&&(i=y.getDimensions(this.el.parentNode)),t.svgWidth=i[0]*parseInt(e.chart.width,10)/100):"px"!==a&&""!==a||(t.svgWidth=parseInt(e.chart.width,10));var s=e.chart.height.toString().split(/[0-9]+/g).pop();if("auto"!==t.svgHeight&&""!==t.svgHeight)if("%"===s){var r=y.getDimensions(this.el.parentNode);t.svgHeight=r[1]*parseInt(e.chart.height,10)/100}else t.svgHeight=parseInt(e.chart.height,10);else t.axisCharts?t.svgHeight=t.svgWidth/1.61:t.svgHeight=t.svgWidth/1.2;if(t.svgWidth<0&&(t.svgWidth=0),t.svgHeight<0&&(t.svgHeight=0),A.setAttrs(t.dom.Paper.node,{width:t.svgWidth,height:t.svgHeight}),"%"!==s){var o=e.chart.sparkline.enabled?0:t.axisCharts?e.chart.parentHeightOffset:0;t.dom.Paper.node.parentNode.parentNode.style.minHeight=t.svgHeight+o+"px"}t.dom.elWrap.style.width=t.svgWidth+"px",t.dom.elWrap.style.height=t.svgHeight+"px"}},{key:"shiftGraphPosition",value:function(){var t=this.w.globals,e=t.translateY,i={transform:"translate("+t.translateX+", "+e+")"};A.setAttrs(t.dom.elGraphical.node,i)}},{key:"resizeNonAxisCharts",value:function(){var t=this.w,e=t.globals,i=0,a=t.config.chart.sparkline.enabled?1:15;a+=t.config.grid.padding.bottom,"top"!==t.config.legend.position&&"bottom"!==t.config.legend.position||!t.config.legend.show||t.config.legend.floating||(i=new gt(this.ctx).legendHelpers.getLegendBBox().clwh+10);var s=t.globals.dom.baseEl.querySelector(".apexcharts-radialbar, .apexcharts-pie"),r=2.05*t.globals.radialSize;if(s&&!t.config.chart.sparkline.enabled&&0!==t.config.plotOptions.radialBar.startAngle){var o=y.getBoundingClientRect(s);r=o.bottom;var n=o.bottom-o.top;r=Math.max(2.05*t.globals.radialSize,n)}var l=r+e.translateY+i+a;e.dom.elLegendForeign&&e.dom.elLegendForeign.setAttribute("height",l),t.config.chart.height&&String(t.config.chart.height).indexOf("%")>0||(e.dom.elWrap.style.height=l+"px",A.setAttrs(e.dom.Paper.node,{height:l}),e.dom.Paper.node.parentNode.parentNode.style.minHeight=l+"px")}},{key:"coreCalculations",value:function(){new J(this.ctx).init()}},{key:"resetGlobals",value:function(){var t=this,e=function(){return t.w.config.series.map((function(t){return[]}))},i=new D,a=this.w.globals;i.initGlobalVars(a),a.seriesXvalues=e(),a.seriesYvalues=e()}},{key:"isMultipleY",value:function(){if(this.w.config.yaxis.constructor===Array&&this.w.config.yaxis.length>1)return this.w.globals.isMultipleYAxis=!0,!0}},{key:"xySettings",value:function(){var t=null,e=this.w;if(e.globals.axisCharts){if("back"===e.config.xaxis.crosshairs.position&&new it(this.ctx).drawXCrosshairs(),"back"===e.config.yaxis[0].crosshairs.position&&new it(this.ctx).drawYCrosshairs(),"datetime"===e.config.xaxis.type&&void 0===e.config.xaxis.labels.formatter){this.ctx.timeScale=new Vt(this.ctx);var i=[];isFinite(e.globals.minX)&&isFinite(e.globals.maxX)&&!e.globals.isBarHorizontal?i=this.ctx.timeScale.calculateTimeScaleTicks(e.globals.minX,e.globals.maxX):e.globals.isBarHorizontal&&(i=this.ctx.timeScale.calculateTimeScaleTicks(e.globals.minY,e.globals.maxY)),this.ctx.timeScale.recalcDimensionsBasedOnFormat(i)}t=new S(this.ctx).getCalculatedRatios()}return t}},{key:"updateSourceChart",value:function(t){this.ctx.w.globals.selection=void 0,this.ctx.updateHelpers._updateOptions({chart:{selection:{xaxis:{min:t.w.globals.minX,max:t.w.globals.maxX}}}},!1,!1)}},{key:"setupBrushHandler",value:function(){var t=this,e=this.w;if(e.config.chart.brush.enabled&&"function"!=typeof e.config.chart.events.selection){var i=Array.isArray(e.config.chart.brush.targets)?e.config.chart.brush.targets:[e.config.chart.brush.target];i.forEach((function(e){var i=ApexCharts.getChartByID(e);i.w.globals.brushSource=t.ctx,"function"!=typeof i.w.config.chart.events.zoomed&&(i.w.config.chart.events.zoomed=function(){t.updateSourceChart(i)}),"function"!=typeof i.w.config.chart.events.scrolled&&(i.w.config.chart.events.scrolled=function(){t.updateSourceChart(i)})})),e.config.chart.events.selection=function(t,a){i.forEach((function(t){var i=ApexCharts.getChartByID(t),s=y.clone(e.config.yaxis);if(e.config.chart.brush.autoScaleYaxis&&1===i.w.globals.series.length){var o=new $(i);s=o.autoScaleY(i,s,a)}var n=i.w.config.yaxis.reduce((function(t,e,a){return[].concat(b(t),[r(r({},i.w.config.yaxis[a]),{},{min:s[0].min,max:s[0].max})])}),[]);i.ctx.updateHelpers._updateOptions({xaxis:{min:a.xaxis.min,max:a.xaxis.max},yaxis:n},!1,!1,!1,!1)}))}}}}]),t}(),_t=function(){function t(e){n(this,t),this.ctx=e,this.w=e.w}return h(t,[{key:"_updateOptions",value:function(t){var e=this,i=arguments.length>1&&void 0!==arguments[1]&&arguments[1],a=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],s=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];return new Promise((function(n){var l=[e.ctx];s&&(l=e.ctx.getSyncedCharts()),e.ctx.w.globals.isExecCalled&&(l=[e.ctx],e.ctx.w.globals.isExecCalled=!1),l.forEach((function(s,h){var c=s.w;if(c.globals.shouldAnimate=a,i||(c.globals.resized=!0,c.globals.dataChanged=!0,a&&s.series.getPreviousPaths()),t&&"object"===o(t)&&(s.config=new H(t),t=S.extendArrayProps(s.config,t,c),s.w.globals.chartID!==e.ctx.w.globals.chartID&&delete t.series,c.config=y.extend(c.config,t),r&&(c.globals.lastXAxis=t.xaxis?y.clone(t.xaxis):[],c.globals.lastYAxis=t.yaxis?y.clone(t.yaxis):[],c.globals.initialConfig=y.extend({},c.config),c.globals.initialSeries=y.clone(c.config.series),t.series))){for(var d=0;d2&&void 0!==arguments[2]&&arguments[2];return new Promise((function(s){var r,o=i.w;return o.globals.shouldAnimate=e,o.globals.dataChanged=!0,e&&i.ctx.series.getPreviousPaths(),o.globals.axisCharts?(0===(r=t.map((function(t,e){return i._extendSeries(t,e)}))).length&&(r=[{data:[]}]),o.config.series=r):o.config.series=t.slice(),a&&(o.globals.initialConfig.series=y.clone(o.config.series),o.globals.initialSeries=y.clone(o.config.series)),i.ctx.update().then((function(){s(i.ctx)}))}))}},{key:"_extendSeries",value:function(t,e){var i=this.w,a=i.config.series[e];return r(r({},i.config.series[e]),{},{name:t.name?t.name:null==a?void 0:a.name,color:t.color?t.color:null==a?void 0:a.color,type:t.type?t.type:null==a?void 0:a.type,group:t.group?t.group:null==a?void 0:a.group,data:t.data?t.data:null==a?void 0:a.data,zIndex:void 0!==t.zIndex?t.zIndex:e})}},{key:"toggleDataPointSelection",value:function(t,e){var i=this.w,a=null,s=".apexcharts-series[data\\:realIndex='".concat(t,"']");return i.globals.axisCharts?a=i.globals.dom.Paper.select("".concat(s," path[j='").concat(e,"'], ").concat(s," circle[j='").concat(e,"'], ").concat(s," rect[j='").concat(e,"']")).members[0]:void 0===e&&(a=i.globals.dom.Paper.select("".concat(s," path[j='").concat(t,"']")).members[0],"pie"!==i.config.chart.type&&"polarArea"!==i.config.chart.type&&"donut"!==i.config.chart.type||this.ctx.pie.pieClicked(t)),a?(new A(this.ctx).pathMouseDown(a,null),a.node?a.node:null):(console.warn("toggleDataPointSelection: Element not found"),null)}},{key:"forceXAxisUpdate",value:function(t){var e=this.w;if(["min","max"].forEach((function(i){void 0!==t.xaxis[i]&&(e.config.xaxis[i]=t.xaxis[i],e.globals.lastXAxis[i]=t.xaxis[i])})),t.xaxis.categories&&t.xaxis.categories.length&&(e.config.xaxis.categories=t.xaxis.categories),e.config.xaxis.convertedCatToNumeric){var i=new R(t);t=i.convertCatToNumericXaxis(t,this.ctx)}return t}},{key:"forceYAxisUpdate",value:function(t){return t.chart&&t.chart.stacked&&"100%"===t.chart.stackType&&(Array.isArray(t.yaxis)?t.yaxis.forEach((function(e,i){t.yaxis[i].min=0,t.yaxis[i].max=100})):(t.yaxis.min=0,t.yaxis.max=100)),t}},{key:"revertDefaultAxisMinMax",value:function(t){var e=this,i=this.w,a=i.globals.lastXAxis,s=i.globals.lastYAxis;t&&t.xaxis&&(a=t.xaxis),t&&t.yaxis&&(s=t.yaxis),i.config.xaxis.min=a.min,i.config.xaxis.max=a.max;var r=function(t){void 0!==s[t]&&(i.config.yaxis[t].min=s[t].min,i.config.yaxis[t].max=s[t].max)};i.config.yaxis.map((function(t,a){i.globals.zoomed||void 0!==s[a]?r(a):void 0!==e.ctx.opts.yaxis[a]&&(t.min=e.ctx.opts.yaxis[a].min,t.max=e.ctx.opts.yaxis[a].max)}))}}]),t}();Nt="undefined"!=typeof window?window:void 0,Wt=function(t,e){var i=(void 0!==this?this:t).SVG=function(t){if(i.supported)return t=new i.Doc(t),i.parser.draw||i.prepare(),t};if(i.ns="http://www.w3.org/2000/svg",i.xmlns="http://www.w3.org/2000/xmlns/",i.xlink="http://www.w3.org/1999/xlink",i.svgjs="http://svgjs.dev",i.supported=!0,!i.supported)return!1;i.did=1e3,i.eid=function(t){return"Svgjs"+d(t)+i.did++},i.create=function(t){var i=e.createElementNS(this.ns,t);return i.setAttribute("id",this.eid(t)),i},i.extend=function(){var t,e;e=(t=[].slice.call(arguments)).pop();for(var a=t.length-1;a>=0;a--)if(t[a])for(var s in e)t[a].prototype[s]=e[s];i.Set&&i.Set.inherit&&i.Set.inherit()},i.invent=function(t){var e="function"==typeof t.create?t.create:function(){this.constructor.call(this,i.create(t.create))};return t.inherit&&(e.prototype=new t.inherit),t.extend&&i.extend(e,t.extend),t.construct&&i.extend(t.parent||i.Container,t.construct),e},i.adopt=function(e){return e?e.instance?e.instance:((a="svg"==e.nodeName?e.parentNode instanceof t.SVGElement?new i.Nested:new i.Doc:"linearGradient"==e.nodeName?new i.Gradient("linear"):"radialGradient"==e.nodeName?new i.Gradient("radial"):i[d(e.nodeName)]?new(i[d(e.nodeName)]):new i.Element(e)).type=e.nodeName,a.node=e,e.instance=a,a instanceof i.Doc&&a.namespace().defs(),a.setData(JSON.parse(e.getAttribute("svgjs:data"))||{}),a):null;var a},i.prepare=function(){var t=e.getElementsByTagName("body")[0],a=(t?new i.Doc(t):i.adopt(e.documentElement).nested()).size(2,0);i.parser={body:t||e.documentElement,draw:a.style("opacity:0;position:absolute;left:-100%;top:-100%;overflow:hidden").node,poly:a.polyline().node,path:a.path().node,native:i.create("svg")}},i.parser={native:i.create("svg")},e.addEventListener("DOMContentLoaded",(function(){i.parser.draw||i.prepare()}),!1),i.regex={numberAndUnit:/^([+-]?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?)([a-z%]*)$/i,hex:/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i,rgb:/rgb\((\d+),(\d+),(\d+)\)/,reference:/#([a-z0-9\-_]+)/i,transforms:/\)\s*,?\s*/,whitespace:/\s/g,isHex:/^#[a-f0-9]{3,6}$/i,isRgb:/^rgb\(/,isCss:/[^:]+:[^;]+;?/,isBlank:/^(\s+)?$/,isNumber:/^[+-]?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,isPercent:/^-?[\d\.]+%$/,isImage:/\.(jpg|jpeg|png|gif|svg)(\?[^=]+.*)?/i,delimiter:/[\s,]+/,hyphen:/([^e])\-/gi,pathLetters:/[MLHVCSQTAZ]/gi,isPathLetter:/[MLHVCSQTAZ]/i,numbersWithDots:/((\d?\.\d+(?:e[+-]?\d+)?)((?:\.\d+(?:e[+-]?\d+)?)+))+/gi,dots:/\./g},i.utils={map:function(t,e){for(var i=t.length,a=[],s=0;s1?1:t,new i.Color({r:~~(this.r+(this.destination.r-this.r)*t),g:~~(this.g+(this.destination.g-this.g)*t),b:~~(this.b+(this.destination.b-this.b)*t)})):this}}),i.Color.test=function(t){return t+="",i.regex.isHex.test(t)||i.regex.isRgb.test(t)},i.Color.isRgb=function(t){return t&&"number"==typeof t.r&&"number"==typeof t.g&&"number"==typeof t.b},i.Color.isColor=function(t){return i.Color.isRgb(t)||i.Color.test(t)},i.Array=function(t,e){0==(t=(t||[]).valueOf()).length&&e&&(t=e.valueOf()),this.value=this.parse(t)},i.extend(i.Array,{toString:function(){return this.value.join(" ")},valueOf:function(){return this.value},parse:function(t){return t=t.valueOf(),Array.isArray(t)?t:this.split(t)}}),i.PointArray=function(t,e){i.Array.call(this,t,e||[[0,0]])},i.PointArray.prototype=new i.Array,i.PointArray.prototype.constructor=i.PointArray;for(var a={M:function(t,e,i){return e.x=i.x=t[0],e.y=i.y=t[1],["M",e.x,e.y]},L:function(t,e){return e.x=t[0],e.y=t[1],["L",t[0],t[1]]},H:function(t,e){return e.x=t[0],["H",t[0]]},V:function(t,e){return e.y=t[0],["V",t[0]]},C:function(t,e){return e.x=t[4],e.y=t[5],["C",t[0],t[1],t[2],t[3],t[4],t[5]]},Q:function(t,e){return e.x=t[2],e.y=t[3],["Q",t[0],t[1],t[2],t[3]]},S:function(t,e){return e.x=t[2],e.y=t[3],["S",t[0],t[1],t[2],t[3]]},Z:function(t,e,i){return e.x=i.x,e.y=i.y,["Z"]}},s="mlhvqtcsaz".split(""),r=0,n=s.length;rl);return r},bbox:function(){return i.parser.draw||i.prepare(),i.parser.path.setAttribute("d",this.toString()),i.parser.path.getBBox()}}),i.Number=i.invent({create:function(t,e){this.value=0,this.unit=e||"","number"==typeof t?this.value=isNaN(t)?0:isFinite(t)?t:t<0?-34e37:34e37:"string"==typeof t?(e=t.match(i.regex.numberAndUnit))&&(this.value=parseFloat(e[1]),"%"==e[5]?this.value/=100:"s"==e[5]&&(this.value*=1e3),this.unit=e[5]):t instanceof i.Number&&(this.value=t.valueOf(),this.unit=t.unit)},extend:{toString:function(){return("%"==this.unit?~~(1e8*this.value)/1e6:"s"==this.unit?this.value/1e3:this.value)+this.unit},toJSON:function(){return this.toString()},valueOf:function(){return this.value},plus:function(t){return t=new i.Number(t),new i.Number(this+t,this.unit||t.unit)},minus:function(t){return t=new i.Number(t),new i.Number(this-t,this.unit||t.unit)},times:function(t){return t=new i.Number(t),new i.Number(this*t,this.unit||t.unit)},divide:function(t){return t=new i.Number(t),new i.Number(this/t,this.unit||t.unit)},to:function(t){var e=new i.Number(this);return"string"==typeof t&&(e.unit=t),e},morph:function(t){return this.destination=new i.Number(t),t.relative&&(this.destination.value+=this.value),this},at:function(t){return this.destination?new i.Number(this.destination).minus(this).times(t).plus(this):this}}}),i.Element=i.invent({create:function(t){this._stroke=i.defaults.attrs.stroke,this._event=null,this.dom={},(this.node=t)&&(this.type=t.nodeName,this.node.instance=this,this._stroke=t.getAttribute("stroke")||this._stroke)},extend:{x:function(t){return this.attr("x",t)},y:function(t){return this.attr("y",t)},cx:function(t){return null==t?this.x()+this.width()/2:this.x(t-this.width()/2)},cy:function(t){return null==t?this.y()+this.height()/2:this.y(t-this.height()/2)},move:function(t,e){return this.x(t).y(e)},center:function(t,e){return this.cx(t).cy(e)},width:function(t){return this.attr("width",t)},height:function(t){return this.attr("height",t)},size:function(t,e){var a=u(this,t,e);return this.width(new i.Number(a.width)).height(new i.Number(a.height))},clone:function(t){this.writeDataToDom();var e=x(this.node.cloneNode(!0));return t?t.add(e):this.after(e),e},remove:function(){return this.parent()&&this.parent().removeElement(this),this},replace:function(t){return this.after(t).remove(),t},addTo:function(t){return t.put(this)},putIn:function(t){return t.add(this)},id:function(t){return this.attr("id",t)},show:function(){return this.style("display","")},hide:function(){return this.style("display","none")},visible:function(){return"none"!=this.style("display")},toString:function(){return this.attr("id")},classes:function(){var t=this.attr("class");return null==t?[]:t.trim().split(i.regex.delimiter)},hasClass:function(t){return-1!=this.classes().indexOf(t)},addClass:function(t){if(!this.hasClass(t)){var e=this.classes();e.push(t),this.attr("class",e.join(" "))}return this},removeClass:function(t){return this.hasClass(t)&&this.attr("class",this.classes().filter((function(e){return e!=t})).join(" ")),this},toggleClass:function(t){return this.hasClass(t)?this.removeClass(t):this.addClass(t)},reference:function(t){return i.get(this.attr(t))},parent:function(e){var a=this;if(!a.node.parentNode)return null;if(a=i.adopt(a.node.parentNode),!e)return a;for(;a&&a.node instanceof t.SVGElement;){if("string"==typeof e?a.matches(e):a instanceof e)return a;if(!a.node.parentNode||"#document"==a.node.parentNode.nodeName)return null;a=i.adopt(a.node.parentNode)}},doc:function(){return this instanceof i.Doc?this:this.parent(i.Doc)},parents:function(t){var e=[],i=this;do{if(!(i=i.parent(t))||!i.node)break;e.push(i)}while(i.parent);return e},matches:function(t){return function(t,e){return(t.matches||t.matchesSelector||t.msMatchesSelector||t.mozMatchesSelector||t.webkitMatchesSelector||t.oMatchesSelector).call(t,e)}(this.node,t)},native:function(){return this.node},svg:function(t){var a=e.createElement("svg");if(!(t&&this instanceof i.Parent))return a.appendChild(t=e.createElement("svg")),this.writeDataToDom(),t.appendChild(this.node.cloneNode(!0)),a.innerHTML.replace(/^/,"").replace(/<\/svg>$/,"");a.innerHTML=""+t.replace(/\n/,"").replace(/<([\w:-]+)([^<]+?)\/>/g,"<$1$2>")+"";for(var s=0,r=a.firstChild.childNodes.length;s":function(t){return-Math.cos(t*Math.PI)/2+.5},">":function(t){return Math.sin(t*Math.PI/2)},"<":function(t){return 1-Math.cos(t*Math.PI/2)}},i.morph=function(t){return function(e,a){return new i.MorphObj(e,a).at(t)}},i.Situation=i.invent({create:function(t){this.init=!1,this.reversed=!1,this.reversing=!1,this.duration=new i.Number(t.duration).valueOf(),this.delay=new i.Number(t.delay).valueOf(),this.start=+new Date+this.delay,this.finish=this.start+this.duration,this.ease=t.ease,this.loop=0,this.loops=!1,this.animations={},this.attrs={},this.styles={},this.transforms=[],this.once={}}}),i.FX=i.invent({create:function(t){this._target=t,this.situations=[],this.active=!1,this.situation=null,this.paused=!1,this.lastPos=0,this.pos=0,this.absPos=0,this._speed=1},extend:{animate:function(t,e,a){"object"===o(t)&&(e=t.ease,a=t.delay,t=t.duration);var s=new i.Situation({duration:t||1e3,delay:a||0,ease:i.easing[e||"-"]||e});return this.queue(s),this},target:function(t){return t&&t instanceof i.Element?(this._target=t,this):this._target},timeToAbsPos:function(t){return(t-this.situation.start)/(this.situation.duration/this._speed)},absPosToTime:function(t){return this.situation.duration/this._speed*t+this.situation.start},startAnimFrame:function(){this.stopAnimFrame(),this.animationFrame=t.requestAnimationFrame(function(){this.step()}.bind(this))},stopAnimFrame:function(){t.cancelAnimationFrame(this.animationFrame)},start:function(){return!this.active&&this.situation&&(this.active=!0,this.startCurrent()),this},startCurrent:function(){return this.situation.start=+new Date+this.situation.delay/this._speed,this.situation.finish=this.situation.start+this.situation.duration/this._speed,this.initAnimations().step()},queue:function(t){return("function"==typeof t||t instanceof i.Situation)&&this.situations.push(t),this.situation||(this.situation=this.situations.shift()),this},dequeue:function(){return this.stop(),this.situation=this.situations.shift(),this.situation&&(this.situation instanceof i.Situation?this.start():this.situation.call(this)),this},initAnimations:function(){var t,e=this.situation;if(e.init)return this;for(var a in e.animations){t=this.target()[a](),Array.isArray(t)||(t=[t]),Array.isArray(e.animations[a])||(e.animations[a]=[e.animations[a]]);for(var s=t.length;s--;)e.animations[a][s]instanceof i.Number&&(t[s]=new i.Number(t[s])),e.animations[a][s]=t[s].morph(e.animations[a][s])}for(var a in e.attrs)e.attrs[a]=new i.MorphObj(this.target().attr(a),e.attrs[a]);for(var a in e.styles)e.styles[a]=new i.MorphObj(this.target().style(a),e.styles[a]);return e.initialTransformation=this.target().matrixify(),e.init=!0,this},clearQueue:function(){return this.situations=[],this},clearCurrent:function(){return this.situation=null,this},stop:function(t,e){var i=this.active;return this.active=!1,e&&this.clearQueue(),t&&this.situation&&(!i&&this.startCurrent(),this.atEnd()),this.stopAnimFrame(),this.clearCurrent()},after:function(t){var e=this.last();return this.target().on("finished.fx",(function i(a){a.detail.situation==e&&(t.call(this,e),this.off("finished.fx",i))})),this._callStart()},during:function(t){var e=this.last(),a=function(a){a.detail.situation==e&&t.call(this,a.detail.pos,i.morph(a.detail.pos),a.detail.eased,e)};return this.target().off("during.fx",a).on("during.fx",a),this.after((function(){this.off("during.fx",a)})),this._callStart()},afterAll:function(t){var e=function e(i){t.call(this),this.off("allfinished.fx",e)};return this.target().off("allfinished.fx",e).on("allfinished.fx",e),this._callStart()},last:function(){return this.situations.length?this.situations[this.situations.length-1]:this.situation},add:function(t,e,i){return this.last()[i||"animations"][t]=e,this._callStart()},step:function(t){var e,i,a;t||(this.absPos=this.timeToAbsPos(+new Date)),!1!==this.situation.loops?(e=Math.max(this.absPos,0),i=Math.floor(e),!0===this.situation.loops||ithis.lastPos&&r<=s&&(this.situation.once[r].call(this.target(),this.pos,s),delete this.situation.once[r]);return this.active&&this.target().fire("during",{pos:this.pos,eased:s,fx:this,situation:this.situation}),this.situation?(this.eachAt(),1==this.pos&&!this.situation.reversed||this.situation.reversed&&0==this.pos?(this.stopAnimFrame(),this.target().fire("finished",{fx:this,situation:this.situation}),this.situations.length||(this.target().fire("allfinished"),this.situations.length||(this.target().off(".fx"),this.active=!1)),this.active?this.dequeue():this.clearCurrent()):!this.paused&&this.active&&this.startAnimFrame(),this.lastPos=s,this):this},eachAt:function(){var t,e=this,a=this.target(),s=this.situation;for(var r in s.animations)t=[].concat(s.animations[r]).map((function(t){return"string"!=typeof t&&t.at?t.at(s.ease(e.pos),e.pos):t})),a[r].apply(a,t);for(var r in s.attrs)t=[r].concat(s.attrs[r]).map((function(t){return"string"!=typeof t&&t.at?t.at(s.ease(e.pos),e.pos):t})),a.attr.apply(a,t);for(var r in s.styles)t=[r].concat(s.styles[r]).map((function(t){return"string"!=typeof t&&t.at?t.at(s.ease(e.pos),e.pos):t})),a.style.apply(a,t);if(s.transforms.length){t=s.initialTransformation,r=0;for(var o=s.transforms.length;r=0;--a)this[v[a]]=null!=t[v[a]]?t[v[a]]:e[v[a]]},extend:{extract:function(){var t=p(this,0,1);p(this,1,0);var e=180/Math.PI*Math.atan2(t.y,t.x)-90;return{x:this.e,y:this.f,transformedX:(this.e*Math.cos(e*Math.PI/180)+this.f*Math.sin(e*Math.PI/180))/Math.sqrt(this.a*this.a+this.b*this.b),transformedY:(this.f*Math.cos(e*Math.PI/180)+this.e*Math.sin(-e*Math.PI/180))/Math.sqrt(this.c*this.c+this.d*this.d),rotation:e,a:this.a,b:this.b,c:this.c,d:this.d,e:this.e,f:this.f,matrix:new i.Matrix(this)}},clone:function(){return new i.Matrix(this)},morph:function(t){return this.destination=new i.Matrix(t),this},multiply:function(t){return new i.Matrix(this.native().multiply(function(t){return t instanceof i.Matrix||(t=new i.Matrix(t)),t}(t).native()))},inverse:function(){return new i.Matrix(this.native().inverse())},translate:function(t,e){return new i.Matrix(this.native().translate(t||0,e||0))},native:function(){for(var t=i.parser.native.createSVGMatrix(),e=v.length-1;e>=0;e--)t[v[e]]=this[v[e]];return t},toString:function(){return"matrix("+b(this.a)+","+b(this.b)+","+b(this.c)+","+b(this.d)+","+b(this.e)+","+b(this.f)+")"}},parent:i.Element,construct:{ctm:function(){return new i.Matrix(this.node.getCTM())},screenCTM:function(){if(this instanceof i.Nested){var t=this.rect(1,1),e=t.node.getScreenCTM();return t.remove(),new i.Matrix(e)}return new i.Matrix(this.node.getScreenCTM())}}}),i.Point=i.invent({create:function(t,e){var i;i=Array.isArray(t)?{x:t[0],y:t[1]}:"object"===o(t)?{x:t.x,y:t.y}:null!=t?{x:t,y:null!=e?e:t}:{x:0,y:0},this.x=i.x,this.y=i.y},extend:{clone:function(){return new i.Point(this)},morph:function(t,e){return this.destination=new i.Point(t,e),this}}}),i.extend(i.Element,{point:function(t,e){return new i.Point(t,e).transform(this.screenCTM().inverse())}}),i.extend(i.Element,{attr:function(t,e,a){if(null==t){for(t={},a=(e=this.node.attributes).length-1;a>=0;a--)t[e[a].nodeName]=i.regex.isNumber.test(e[a].nodeValue)?parseFloat(e[a].nodeValue):e[a].nodeValue;return t}if("object"===o(t))for(var s in t)this.attr(s,t[s]);else if(null===e)this.node.removeAttribute(t);else{if(null==e)return null==(e=this.node.getAttribute(t))?i.defaults.attrs[t]:i.regex.isNumber.test(e)?parseFloat(e):e;"stroke-width"==t?this.attr("stroke",parseFloat(e)>0?this._stroke:null):"stroke"==t&&(this._stroke=e),"fill"!=t&&"stroke"!=t||(i.regex.isImage.test(e)&&(e=this.doc().defs().image(e,0,0)),e instanceof i.Image&&(e=this.doc().defs().pattern(0,0,(function(){this.add(e)})))),"number"==typeof e?e=new i.Number(e):i.Color.isColor(e)?e=new i.Color(e):Array.isArray(e)&&(e=new i.Array(e)),"leading"==t?this.leading&&this.leading(e):"string"==typeof a?this.node.setAttributeNS(a,t,e.toString()):this.node.setAttribute(t,e.toString()),!this.rebuild||"font-size"!=t&&"x"!=t||this.rebuild(t,e)}return this}}),i.extend(i.Element,{transform:function(t,e){var a;return"object"!==o(t)?(a=new i.Matrix(this).extract(),"string"==typeof t?a[t]:a):(a=new i.Matrix(this),e=!!e||!!t.relative,null!=t.a&&(a=e?a.multiply(new i.Matrix(t)):new i.Matrix(t)),this.attr("transform",a))}}),i.extend(i.Element,{untransform:function(){return this.attr("transform",null)},matrixify:function(){return(this.attr("transform")||"").split(i.regex.transforms).slice(0,-1).map((function(t){var e=t.trim().split("(");return[e[0],e[1].split(i.regex.delimiter).map((function(t){return parseFloat(t)}))]})).reduce((function(t,e){return"matrix"==e[0]?t.multiply(f(e[1])):t[e[0]].apply(t,e[1])}),new i.Matrix)},toParent:function(t){if(this==t)return this;var e=this.screenCTM(),i=t.screenCTM().inverse();return this.addTo(t).untransform().transform(i.multiply(e)),this},toDoc:function(){return this.toParent(this.doc())}}),i.Transformation=i.invent({create:function(t,e){if(arguments.length>1&&"boolean"!=typeof e)return this.constructor.call(this,[].slice.call(arguments));if(Array.isArray(t))for(var i=0,a=this.arguments.length;i=0},index:function(t){return[].slice.call(this.node.childNodes).indexOf(t.node)},get:function(t){return i.adopt(this.node.childNodes[t])},first:function(){return this.get(0)},last:function(){return this.get(this.node.childNodes.length-1)},each:function(t,e){for(var a=this.children(),s=0,r=a.length;s=0;a--)e.childNodes[a]instanceof t.SVGElement&&x(e.childNodes[a]);return i.adopt(e).id(i.eid(e.nodeName))}function b(t){return Math.abs(t)>1e-37?t:0}["fill","stroke"].forEach((function(t){var e={};e[t]=function(e){if(void 0===e)return this;if("string"==typeof e||i.Color.isRgb(e)||e&&"function"==typeof e.fill)this.attr(t,e);else for(var a=l[t].length-1;a>=0;a--)null!=e[l[t][a]]&&this.attr(l.prefix(t,l[t][a]),e[l[t][a]]);return this},i.extend(i.Element,i.FX,e)})),i.extend(i.Element,i.FX,{translate:function(t,e){return this.transform({x:t,y:e})},matrix:function(t){return this.attr("transform",new i.Matrix(6==arguments.length?[].slice.call(arguments):t))},opacity:function(t){return this.attr("opacity",t)},dx:function(t){return this.x(new i.Number(t).plus(this instanceof i.FX?0:this.x()),!0)},dy:function(t){return this.y(new i.Number(t).plus(this instanceof i.FX?0:this.y()),!0)}}),i.extend(i.Path,{length:function(){return this.node.getTotalLength()},pointAt:function(t){return this.node.getPointAtLength(t)}}),i.Set=i.invent({create:function(t){Array.isArray(t)?this.members=t:this.clear()},extend:{add:function(){for(var t=[].slice.call(arguments),e=0,i=t.length;e-1&&this.members.splice(e,1),this},each:function(t){for(var e=0,i=this.members.length;e=0},index:function(t){return this.members.indexOf(t)},get:function(t){return this.members[t]},first:function(){return this.get(0)},last:function(){return this.get(this.members.length-1)},valueOf:function(){return this.members}},construct:{set:function(t){return new i.Set(t)}}}),i.FX.Set=i.invent({create:function(t){this.set=t}}),i.Set.inherit=function(){var t=[];for(var e in i.Shape.prototype)"function"==typeof i.Shape.prototype[e]&&"function"!=typeof i.Set.prototype[e]&&t.push(e);for(var e in t.forEach((function(t){i.Set.prototype[t]=function(){for(var e=0,a=this.members.length;e=0;t--)delete this.memory()[arguments[t]];return this},memory:function(){return this._memory||(this._memory={})}}),i.get=function(t){var a=e.getElementById(function(t){var e=(t||"").toString().match(i.regex.reference);if(e)return e[1]}(t)||t);return i.adopt(a)},i.select=function(t,a){return new i.Set(i.utils.map((a||e).querySelectorAll(t),(function(t){return i.adopt(t)})))},i.extend(i.Parent,{select:function(t){return i.select(t,this.node)}});var v="abcdef".split("");if("function"!=typeof t.CustomEvent){var m=function(t,i){i=i||{bubbles:!1,cancelable:!1,detail:void 0};var a=e.createEvent("CustomEvent");return a.initCustomEvent(t,i.bubbles,i.cancelable,i.detail),a};m.prototype=t.Event.prototype,i.CustomEvent=m}else i.CustomEvent=t.CustomEvent;return i},a=function(){return Wt(Nt,Nt.document)}.call(e,i,e,t),void 0!==a&&(t.exports=a), /*! svg.filter.js - v2.0.2 - 2016-02-24 * https://github.com/wout/svg.filter.js * Copyright (c) 2016 Wout Fierens; Licensed MIT */ diff --git a/HomeUI/dist/js/bootstrapVue.js b/HomeUI/dist/js/bootstrapVue.js index 19c998768..ed8ef72b7 100644 --- a/HomeUI/dist/js/bootstrapVue.js +++ b/HomeUI/dist/js/bootstrapVue.js @@ -1 +1 @@ -"use strict";(globalThis["webpackChunkflux"]=globalThis["webpackChunkflux"]||[]).push([[166],{77354:(a,t,e)=>{e.d(t,{R:()=>i});var n=e(86087),i=(0,n.Hr)()},73106:(a,t,e)=>{e.d(t,{F:()=>I});var n,i=e(94689),r=e(63294),o=e(12299),l=e(90494),c=e(18280),s=e(26410),h=e(33284),u=e(54602),d=e(93954),p=e(67040),v=e(20451),f=e(1915),m=e(91451),z=e(17100);function b(a,t){var e=Object.keys(a);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(a);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(a,t).enumerable}))),e.push.apply(e,n)}return e}function g(a){for(var t=1;t0?a:0)},w=function(a){return""===a||!0===a||!((0,d.Z3)(a,0)<1)&&!!a},C=(0,v.y2)((0,p.GE)(g(g({},H),{},{dismissLabel:(0,v.pi)(o.N0,"Close"),dismissible:(0,v.pi)(o.U5,!1),fade:(0,v.pi)(o.U5,!1),variant:(0,v.pi)(o.N0,"info")})),i.YJ),I=(0,f.l7)({name:i.YJ,mixins:[V,c.Z],props:C,data:function(){return{countDown:0,localShow:w(this[A])}},watch:(n={},M(n,A,(function(a){this.countDown=O(a),this.localShow=w(a)})),M(n,"countDown",(function(a){var t=this;this.clearCountDownInterval();var e=this[A];(0,h.kE)(e)&&(this.$emit(r.Mg,a),e!==a&&this.$emit(B,a),a>0?(this.localShow=!0,this.$_countDownTimeout=setTimeout((function(){t.countDown--}),1e3)):this.$nextTick((function(){(0,s.bz)((function(){t.localShow=!1}))})))})),M(n,"localShow",(function(a){var t=this[A];a||!this.dismissible&&!(0,h.kE)(t)||this.$emit(r.NN),(0,h.kE)(t)||t===a||this.$emit(B,a)})),n),created:function(){this.$_filterTimer=null;var a=this[A];this.countDown=O(a),this.localShow=w(a)},beforeDestroy:function(){this.clearCountDownInterval()},methods:{dismiss:function(){this.clearCountDownInterval(),this.countDown=0,this.localShow=!1},clearCountDownInterval:function(){clearTimeout(this.$_countDownTimeout),this.$_countDownTimeout=null}},render:function(a){var t=a();if(this.localShow){var e=this.dismissible,n=this.variant,i=a();e&&(i=a(m.Z,{attrs:{"aria-label":this.dismissLabel},on:{click:this.dismiss}},[this.normalizeSlot(l.CZ)])),t=a("div",{staticClass:"alert",class:M({"alert-dismissible":e},"alert-".concat(n),n),attrs:{role:"alert","aria-live":"polite","aria-atomic":!0},key:this[f.X$]},[i,this.normalizeSlot()])}return a(z.N,{props:{noFade:!this.fade}},[t])}})},47389:(a,t,e)=>{e.d(t,{SH:()=>C,pe:()=>B});var n=e(1915),i=e(94689),r=e(63294),o=e(12299),l=e(90494),c=e(33284),s=e(93954),h=e(67040),u=e(20451),d=e(30488),p=e(18280),v=e(43022),f=e(72466),m=e(15193),z=e(67347);function b(a,t){var e=Object.keys(a);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(a);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(a,t).enumerable}))),e.push.apply(e,n)}return e}function g(a){for(var t=1;t{e.d(t,{k:()=>m});var n=e(1915),i=e(69558),r=e(94689),o=e(12299),l=e(67040),c=e(20451),s=e(30488),h=e(67347);function u(a,t){var e=Object.keys(a);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(a);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(a,t).enumerable}))),e.push.apply(e,n)}return e}function d(a){for(var t=1;t{e.d(t,{g:()=>s});var n=e(1915),i=e(69558),r=e(94689),o=e(20451),l=e(89595),c=(0,o.y2)(l.N,r.Td),s=(0,n.l7)({name:r.Td,functional:!0,props:c,render:function(a,t){var e=t.props,n=t.data,r=t.children;return a("li",(0,i.b)(n,{staticClass:"breadcrumb-item",class:{active:e.active}}),[a(l.m,{props:e},r)])}})},89595:(a,t,e)=>{e.d(t,{N:()=>v,m:()=>f});var n=e(1915),i=e(69558),r=e(94689),o=e(12299),l=e(18735),c=e(67040),s=e(20451),h=e(67347);function u(a,t){var e=Object.keys(a);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(a);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(a,t).enumerable}))),e.push.apply(e,n)}return e}function d(a){for(var t=1;t{e.d(t,{P:()=>f});var n=e(1915),i=e(69558),r=e(94689),o=e(12299),l=e(33284),c=e(20451),s=e(46595),h=e(90854);function u(a,t){var e=Object.keys(a);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(a);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(a,t).enumerable}))),e.push.apply(e,n)}return e}function d(a){for(var t=1;t{e.d(t,{a:()=>v});var n=e(1915),i=e(69558),r=e(94689),o=e(12299),l=e(67040),c=e(20451),s=e(15193);function h(a,t){var e=Object.keys(a);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(a);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(a,t).enumerable}))),e.push.apply(e,n)}return e}function u(a){for(var t=1;t{e.d(t,{r:()=>p});var n=e(1915),i=e(94689),r=e(12299),o=e(63663),l=e(26410),c=e(28415),s=e(20451),h=e(18280),u=[".btn:not(.disabled):not([disabled]):not(.dropdown-item)",".form-control:not(.disabled):not([disabled])","select:not(.disabled):not([disabled])",'input[type="checkbox"]:not(.disabled)','input[type="radio"]:not(.disabled)'].join(","),d=(0,s.y2)({justify:(0,s.pi)(r.U5,!1),keyNav:(0,s.pi)(r.U5,!1)},i.zg),p=(0,n.l7)({name:i.zg,mixins:[h.Z],props:d,mounted:function(){this.keyNav&&this.getItems()},methods:{getItems:function(){var a=(0,l.a8)(u,this.$el);return a.forEach((function(a){a.tabIndex=-1})),a.filter((function(a){return(0,l.pn)(a)}))},focusFirst:function(){var a=this.getItems();(0,l.KS)(a[0])},focusPrev:function(a){var t=this.getItems(),e=t.indexOf(a.target);e>-1&&(t=t.slice(0,e).reverse(),(0,l.KS)(t[0]))},focusNext:function(a){var t=this.getItems(),e=t.indexOf(a.target);e>-1&&(t=t.slice(e+1),(0,l.KS)(t[0]))},focusLast:function(){var a=this.getItems().reverse();(0,l.KS)(a[0])},onFocusin:function(a){var t=this.$el;a.target!==t||(0,l.r3)(t,a.relatedTarget)||((0,c.p7)(a),this.focusFirst(a))},onKeydown:function(a){var t=a.keyCode,e=a.shiftKey;t===o.XS||t===o.Cq?((0,c.p7)(a),e?this.focusFirst(a):this.focusPrev(a)):t!==o.RV&&t!==o.YO||((0,c.p7)(a),e?this.focusLast(a):this.focusNext(a))}},render:function(a){var t=this.keyNav;return a("div",{staticClass:"btn-toolbar",class:{"justify-content-between":this.justify},attrs:{role:"toolbar",tabindex:t?"0":null},on:t?{focusin:this.onFocusin,keydown:this.onKeydown}:{}},[this.normalizeSlot()])}})},91451:(a,t,e)=>{e.d(t,{Z:()=>v});var n=e(1915),i=e(69558),r=e(94689),o=e(12299),l=e(90494),c=e(28415),s=e(33284),h=e(20451),u=e(72345);function d(a,t,e){return t in a?Object.defineProperty(a,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):a[t]=e,a}var p=(0,h.y2)({ariaLabel:(0,h.pi)(o.N0,"Close"),content:(0,h.pi)(o.N0,"×"),disabled:(0,h.pi)(o.U5,!1),textVariant:(0,h.pi)(o.N0)},r.gi),v=(0,n.l7)({name:r.gi,functional:!0,props:p,render:function(a,t){var e=t.props,n=t.data,r=t.slots,o=t.scopedSlots,h=r(),p=o||{},v={staticClass:"close",class:d({},"text-".concat(e.textVariant),e.textVariant),attrs:{type:"button",disabled:e.disabled,"aria-label":e.ariaLabel?String(e.ariaLabel):null},on:{click:function(a){e.disabled&&(0,s.cO)(a)&&(0,c.p7)(a)}}};return(0,u.Q)(l.Pq,p,h)||(v.domProps={innerHTML:e.content}),a("button",(0,i.b)(n,v),(0,u.O)(l.Pq,{},p,h))}})},15193:(a,t,e)=>{e.d(t,{N:()=>M,T:()=>I});var n=e(1915),i=e(69558),r=e(94689),o=e(63663),l=e(12299),c=e(11572),s=e(26410),h=e(28415),u=e(33284),d=e(67040),p=e(20451),v=e(30488),f=e(67347);function m(a,t){var e=Object.keys(a);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(a);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(a,t).enumerable}))),e.push.apply(e,n)}return e}function z(a){for(var t=1;t{e.d(t,{N:()=>f,O:()=>m});var n=e(1915),i=e(69558),r=e(94689),o=e(12299),l=e(67040),c=e(20451),s=e(38881),h=e(49379),u=e(49034);function d(a,t){var e=Object.keys(a);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(a);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(a,t).enumerable}))),e.push.apply(e,n)}return e}function p(a){for(var t=1;t{e.d(t,{F:()=>f,N:()=>v});var n=e(1915),i=e(69558),r=e(94689),o=e(12299),l=e(18735),c=e(67040),s=e(20451),h=e(38881);function u(a,t){var e=Object.keys(a);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(a);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(a,t).enumerable}))),e.push.apply(e,n)}return e}function d(a){for(var t=1;t{e.d(t,{o:()=>s});var n=e(1915),i=e(69558),r=e(94689),o=e(12299),l=e(20451),c=(0,l.y2)({columns:(0,l.pi)(o.U5,!1),deck:(0,l.pi)(o.U5,!1),tag:(0,l.pi)(o.N0,"div")},r.CB),s=(0,n.l7)({name:r.CB,functional:!0,props:c,render:function(a,t){var e=t.props,n=t.data,r=t.children;return a(e.tag,(0,i.b)(n,{class:e.deck?"card-deck":e.columns?"card-columns":"card-group"}),r)}})},87047:(a,t,e)=>{e.d(t,{N:()=>v,p:()=>f});var n=e(1915),i=e(69558),r=e(94689),o=e(12299),l=e(18735),c=e(67040),s=e(20451),h=e(38881);function u(a,t){var e=Object.keys(a);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(a);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(a,t).enumerable}))),e.push.apply(e,n)}return e}function d(a){for(var t=1;t{e.d(t,{N:()=>p,O:()=>v});var n=e(1915),i=e(69558),r=e(94689),o=e(12299),l=e(67040),c=e(20451),s=e(98156);function h(a,t){var e=Object.keys(a);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(a);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(a,t).enumerable}))),e.push.apply(e,n)}return e}function u(a){for(var t=1;t{e.d(t,{N:()=>s,Z:()=>h});var n=e(1915),i=e(69558),r=e(94689),o=e(12299),l=e(20451),c=e(46595),s=(0,l.y2)({subTitle:(0,l.pi)(o.N0),subTitleTag:(0,l.pi)(o.N0,"h6"),subTitleTextVariant:(0,l.pi)(o.N0,"muted")},r.QS),h=(0,n.l7)({name:r.QS,functional:!0,props:s,render:function(a,t){var e=t.props,n=t.data,r=t.children;return a(e.subTitleTag,(0,i.b)(n,{staticClass:"card-subtitle",class:[e.subTitleTextVariant?"text-".concat(e.subTitleTextVariant):null]}),r||(0,c.BB)(e.subTitle))}})},64206:(a,t,e)=>{e.d(t,{j:()=>s});var n=e(1915),i=e(69558),r=e(94689),o=e(12299),l=e(20451),c=(0,l.y2)({textTag:(0,l.pi)(o.N0,"p")},r.zv),s=(0,n.l7)({name:r.zv,functional:!0,props:c,render:function(a,t){var e=t.props,n=t.data,r=t.children;return a(e.textTag,(0,i.b)(n,{staticClass:"card-text"}),r)}})},49379:(a,t,e)=>{e.d(t,{N:()=>s,_:()=>h});var n=e(1915),i=e(69558),r=e(94689),o=e(12299),l=e(20451),c=e(46595),s=(0,l.y2)({title:(0,l.pi)(o.N0),titleTag:(0,l.pi)(o.N0,"h4")},r.Mr),h=(0,n.l7)({name:r.Mr,functional:!0,props:s,render:function(a,t){var e=t.props,n=t.data,r=t.children;return a(e.titleTag,(0,i.b)(n,{staticClass:"card-title"}),r||(0,c.BB)(e.title))}})},86855:(a,t,e)=>{e.d(t,{_:()=>V});var n=e(1915),i=e(69558),r=e(94689),o=e(12299),l=e(90494),c=e(18735),s=e(72345),h=e(67040),u=e(20451),d=e(38881),p=e(19279),v=e(87047),f=e(37674),m=e(13481);function z(a,t){var e=Object.keys(a);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(a);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(a,t).enumerable}))),e.push.apply(e,n)}return e}function b(a){for(var t=1;t{e.d(t,{k:()=>R});var n,i=e(1915),r=e(94689),o="show",l=e(43935),c=e(63294),s=e(12299),h=e(90494),u=e(26410),d=e(28415),p=e(54602),v=e(67040),f=e(20451),m=e(73727),z=e(98596),b=e(18280),g=e(69558),M=function(a){(0,u.A_)(a,"height",0),(0,u.bz)((function(){(0,u.nq)(a),(0,u.A_)(a,"height","".concat(a.scrollHeight,"px"))}))},y=function(a){(0,u.jo)(a,"height")},V=function(a){(0,u.A_)(a,"height","auto"),(0,u.A_)(a,"display","block"),(0,u.A_)(a,"height","".concat((0,u.Zt)(a).height,"px")),(0,u.nq)(a),(0,u.A_)(a,"height",0)},H=function(a){(0,u.jo)(a,"height")},A={css:!0,enterClass:"",enterActiveClass:"collapsing",enterToClass:"collapse show",leaveClass:"collapse show",leaveActiveClass:"collapsing",leaveToClass:"collapse"},B={enter:M,afterEnter:y,leave:V,afterLeave:H},O={appear:(0,f.pi)(s.U5,!1)},w=(0,i.l7)({name:r.gt,functional:!0,props:O,render:function(a,t){var e=t.props,n=t.data,i=t.children;return a("transition",(0,g.b)(n,{props:A,on:B},{props:e}),i)}});function C(a,t){var e=Object.keys(a);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(a);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(a,t).enumerable}))),e.push.apply(e,n)}return e}function I(a){for(var t=1;t{e.d(t,{a:()=>p});var n=e(1915),i=e(69558),r=e(94689),o=e(12299),l=e(20451),c=e(67040);function s(a,t){var e=Object.keys(a);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(a);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(a,t).enumerable}))),e.push.apply(e,n)}return e}function h(a){for(var t=1;t{e.d(t,{t:()=>v});var n=e(1915),i=e(94689),r=e(63294),o=e(12299),l=e(20451),c=e(28492),s=e(18280);function h(a,t){var e=Object.keys(a);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(a);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(a,t).enumerable}))),e.push.apply(e,n)}return e}function u(a){for(var t=1;t{e.d(t,{E:()=>b});var n=e(1915),i=e(94689),r=e(63294),o=e(12299),l=e(26410),c=e(67040),s=e(20451),h=e(28492),u=e(18280),d=e(67347);function p(a,t){var e=Object.keys(a);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(a);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(a,t).enumerable}))),e.push.apply(e,n)}return e}function v(a){for(var t=1;t{e.d(t,{N:()=>g,R:()=>M});var n=e(1915),i=e(94689),r=e(12299),o=e(90494),l=e(11572),c=e(18735),s=e(20451),h=e(46595),u=e(43711),d=e(73727),p=e(18280),v=e(15193),f=e(67040);function m(a,t){var e=Object.keys(a);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(a);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(a,t).enumerable}))),e.push.apply(e,n)}return e}function z(a){for(var t=1;t{e.d(t,{l:()=>M});var n,i=e(1915),r=e(94689),o=e(63294),l=e(12299),c=e(33284),s=e(3058),h=function(a,t){for(var e=0;e-1:(0,s.W)(t,a)},isRadio:function(){return!1}},watch:m({},z,(function(a,t){(0,s.W)(a,t)||this.setIndeterminate(a)})),mounted:function(){this.setIndeterminate(this[z])},methods:{computedLocalCheckedWatcher:function(a,t){if(!(0,s.W)(a,t)){this.$emit(p.Du,a);var e=this.$refs.input;e&&this.$emit(b,e.indeterminate)}},handleChange:function(a){var t=this,e=a.target,n=e.checked,i=e.indeterminate,r=this.value,l=this.uncheckedValue,s=this.computedLocalChecked;if((0,c.kJ)(s)){var u=h(s,r);n&&u<0?s=s.concat(r):!n&&u>-1&&(s=s.slice(0,u).concat(s.slice(u+1)))}else s=n?r:l;this.computedLocalChecked=s,this.$nextTick((function(){t.$emit(o.z2,s),t.isGroup&&t.bvGroup.$emit(o.z2,s),t.$emit(b,i)}))},setIndeterminate:function(a){(0,c.kJ)(this.computedLocalChecked)&&(a=!1);var t=this.$refs.input;t&&(t.indeterminate=a,this.$emit(b,a))}}})},46709:(a,t,e)=>{e.d(t,{x:()=>P});var n=e(94689),i=e(43935),r=e(12299),o=e(30824),l=e(90494),c=e(11572),s=e(79968),h=e(64679),u=e(26410),d=e(68265),p=e(33284),v=e(93954),f=e(67040),m=e(20451),z=e(95505),b=e(73727),g=e(18280),M=e(50725),y=e(46310),V=e(51666),H=e(52307),A=e(98761);function B(a,t){var e=Object.keys(a);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(a);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(a,t).enumerable}))),e.push.apply(e,n)}return e}function O(a){for(var t=1;t0||(0,f.XP)(this.labelColProps).length>0}},watch:{ariaDescribedby:function(a,t){a!==t&&this.updateAriaDescribedby(a,t)}},mounted:function(){var a=this;this.$nextTick((function(){a.updateAriaDescribedby(a.ariaDescribedby)}))},methods:{getAlignClasses:function(a,t){return(0,s.QC)().reduce((function(e,n){var i=a[(0,m.wv)(n,"".concat(t,"Align"))]||null;return i&&e.push(["text",n,i].filter(d.y).join("-")),e}),[])},getColProps:function(a,t){return(0,s.QC)().reduce((function(e,n){var i=a[(0,m.wv)(n,"".concat(t,"Cols"))];return i=""===i||(i||!1),(0,p.jn)(i)||"auto"===i||(i=(0,v.Z3)(i,0),i=i>0&&i),i&&(e[n||((0,p.jn)(i)?"col":"cols")]=i),e}),{})},updateAriaDescribedby:function(a,t){var e=this.labelFor;if(i.Qg&&e){var n=(0,u.Ys)("#".concat((0,h.Q)(e)),this.$refs.content);if(n){var r="aria-describedby",l=(a||"").split(o.Qf),s=(t||"").split(o.Qf),p=((0,u.UK)(n,r)||"").split(o.Qf).filter((function(a){return!(0,c.kI)(s,a)})).concat(l).filter((function(a,t,e){return e.indexOf(a)===t})).filter(d.y).join(" ").trim();p?(0,u.fi)(n,r,p):(0,u.uV)(n,r)}}},onLegendClick:function(a){if(!this.labelFor){var t=a.target,e=t?t.tagName:"";if(-1===L.indexOf(e)){var n=(0,u.a8)(I,this.$refs.content).filter(u.pn);1===n.length&&(0,u.KS)(n[0])}}}},render:function(a){var t=this.computedState,e=this.feedbackAriaLive,n=this.isHorizontal,i=this.labelFor,r=this.normalizeSlot,o=this.safeId,c=this.tooltip,s=o(),h=!i,u=a(),p=r(l.gN)||this.label,v=p?o("_BV_label_"):null;if(p||n){var f=this.labelSize,m=this.labelColProps,z=h?"legend":"label";this.labelSrOnly?(p&&(u=a(z,{class:"sr-only",attrs:{id:v,for:i||null}},[p])),u=a(n?M.l:"div",{props:n?m:{}},[u])):u=a(n?M.l:z,{on:h?{click:this.onLegendClick}:{},props:n?O(O({},m),{},{tag:z}):{},attrs:{id:v,for:i||null,tabindex:h?"-1":null},class:[h?"bv-no-focus-ring":"",n||h?"col-form-label":"",!n&&h?"pt-0":"",n||h?"":"d-block",f?"col-form-label-".concat(f):"",this.labelAlignClasses,this.labelClass]},[p])}var b=a(),g=r(l.Cn)||this.invalidFeedback,B=g?o("_BV_feedback_invalid_"):null;g&&(b=a(H.h,{props:{ariaLive:e,id:B,state:t,tooltip:c},attrs:{tabindex:g?"-1":null}},[g]));var w=a(),C=r(l.k8)||this.validFeedback,I=C?o("_BV_feedback_valid_"):null;C&&(w=a(A.m,{props:{ariaLive:e,id:I,state:t,tooltip:c},attrs:{tabindex:C?"-1":null}},[C]));var L=a(),S=r(l.iC)||this.description,P=S?o("_BV_description_"):null;S&&(L=a(V.m,{attrs:{id:P,tabindex:"-1"}},[S]));var F=this.ariaDescribedby=[P,!1===t?B:null,!0===t?I:null].filter(d.y).join(" ")||null,k=a(n?M.l:"div",{props:n?this.contentColProps:{},ref:"content"},[r(l.Pq,{ariaDescribedby:F,descriptionId:P,id:s,labelId:v})||a(),b,w,L]);return a(h?"fieldset":n?y.d:"div",{staticClass:"form-group",class:[{"was-validated":this.validated},this.stateClass],attrs:{id:s,disabled:h?this.disabled:null,role:h?null:"group","aria-invalid":this.computedAriaInvalid,"aria-labelledby":h&&n?v:null}},n&&h?[a(y.d,[u,k])]:[u,k])}}},22183:(a,t,e)=>{e.d(t,{e:()=>A});var n=e(1915),i=e(94689),r=e(12299),o=e(11572),l=e(26410),c=e(28415),s=e(67040),h=e(20451),u=e(32023),d=e(80685),p=e(49035),v=e(95505),f=e(70403),m=e(94791),z=e(73727),b=e(76677);function g(a,t){var e=Object.keys(a);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(a);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(a,t).enumerable}))),e.push.apply(e,n)}return e}function M(a){for(var t=1;t{e.d(t,{Q:()=>c});var n=e(1915),i=e(94689),r=e(20451),o=e(72985),l=(0,r.y2)(o.NQ,i.UV),c=(0,n.l7)({name:i.UV,mixins:[o.mD],provide:function(){var a=this;return{getBvRadioGroup:function(){return a}}},props:l,computed:{isRadioGroup:function(){return!0}}})},76398:(a,t,e)=>{e.d(t,{g:()=>c});var n=e(1915),i=e(94689),r=e(20451),o=e(6298),l=(0,r.y2)(o.NQ,i.t_),c=(0,n.l7)({name:i.t_,mixins:[o.UG],inject:{getBvGroup:{from:"getBvRadioGroup",default:function(){return function(){return null}}}},props:l,computed:{bvGroup:function(){return this.getBvGroup()}}})},2938:(a,t,e)=>{e.d(t,{L:()=>z});var n=e(1915),i=e(94689),r=e(12299),o=e(90494),l=e(18735),c=e(67040),s=e(20451),h=e(77330),u=e(18280),d=e(78959);function p(a,t){var e=Object.keys(a);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(a);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(a,t).enumerable}))),e.push.apply(e,n)}return e}function v(a){for(var t=1;t{e.d(t,{c:()=>s});var n=e(1915),i=e(69558),r=e(94689),o=e(12299),l=e(20451),c=(0,l.y2)({disabled:(0,l.pi)(o.U5,!1),value:(0,l.pi)(o.r1,void 0,!0)},r.vg),s=(0,n.l7)({name:r.vg,functional:!0,props:c,render:function(a,t){var e=t.props,n=t.data,r=t.children,o=e.value,l=e.disabled;return a("option",(0,i.b)(n,{attrs:{disabled:l},domProps:{value:o}}),r)}})},8051:(a,t,e)=>{e.d(t,{K:()=>x});var n=e(1915),i=e(94689),r=e(63294),o=e(12299),l=e(90494),c=e(11572),s=e(26410),h=e(18735),u=e(33284),d=e(67040),p=e(20451),v=e(32023),f=e(58137),m=e(49035),z=e(95505),b=e(73727),g=e(54602),M=(0,g.l)("value"),y=M.mixin,V=M.props,H=M.prop,A=M.event,B=e(18280),O=e(37668),w=e(77330);function C(a,t){var e=Object.keys(a);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(a);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(a,t).enumerable}))),e.push.apply(e,n)}return e}function I(a){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:null;if((0,u.PO)(a)){var e=(0,O.U)(a,this.valueField),n=(0,O.U)(a,this.textField),i=(0,O.U)(a,this.optionsField,null);return(0,u.Ft)(i)?{value:(0,u.o8)(e)?t||n:e,text:String((0,u.o8)(n)?t:n),html:(0,O.U)(a,this.htmlField),disabled:Boolean((0,O.U)(a,this.disabledField))}:{label:String((0,O.U)(a,this.labelField)||n),options:this.normalizeOptions(i)}}return{value:t||a,text:String(a),disabled:!1}}}}),F=e(78959),k=e(2938);function j(a,t){var e=Object.keys(a);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(a);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(a,t).enumerable}))),e.push.apply(e,n)}return e}function T(a){for(var t=1;t{e.d(t,{G:()=>q,N:()=>G});var n,i=e(1915),r=e(94689),o=e(63294),l=e(12299),c=e(63663),s=e(90494),h=e(11572),u=e(26410),d=e(28415),p=e(68265),v=e(33284),f=e(9439),m=e(21578),z=e(54602),b=e(93954),g=e(67040),M=e(20451),y=e(46595),V=e(28492),H=e(49035),A=e(95505),B=e(73727),O=e(18280),w=e(32023),C=e(72466);function I(a,t){var e=Object.keys(a);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(a);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(a,t).enumerable}))),e.push.apply(e,n)}return e}function L(a){for(var t=1;t0?a:N},computedInterval:function(){var a=(0,b.Z3)(this.repeatInterval,0);return a>0?a:$},computedThreshold:function(){return(0,m.nP)((0,b.Z3)(this.repeatThreshold,R),1)},computedStepMultiplier:function(){return(0,m.nP)((0,b.Z3)(this.repeatStepMultiplier,_),1)},computedPrecision:function(){var a=this.computedStep;return(0,m.Mk)(a)===a?0:(a.toString().split(".")[1]||"").length},computedMultiplier:function(){return(0,m.Fq)(10,this.computedPrecision||0)},valueAsFixed:function(){var a=this.localValue;return(0,v.Ft)(a)?"":a.toFixed(this.computedPrecision)},computedLocale:function(){var a=(0,h.zo)(this.locale).filter(p.y),t=new Intl.NumberFormat(a);return t.resolvedOptions().locale},computedRTL:function(){return(0,f.e)(this.computedLocale)},defaultFormatter:function(){var a=this.computedPrecision,t=new Intl.NumberFormat(this.computedLocale,{style:"decimal",useGrouping:!1,minimumIntegerDigits:1,minimumFractionDigits:a,maximumFractionDigits:a,notation:"standard"});return t.format},computedFormatter:function(){var a=this.formatterFn;return(0,M.lo)(a)?a:this.defaultFormatter},computedAttrs:function(){return L(L({},this.bvAttrs),{},{role:"group",lang:this.computedLocale,tabindex:this.disabled?null:"-1",title:this.ariaLabel})},computedSpinAttrs:function(){var a=this.spinId,t=this.localValue,e=this.computedRequired,n=this.disabled,i=this.state,r=this.computedFormatter,o=!(0,v.Ft)(t);return L(L({dir:this.computedRTL?"rtl":"ltr"},this.bvAttrs),{},{id:a,role:"spinbutton",tabindex:n?null:"0","aria-live":"off","aria-label":this.ariaLabel||null,"aria-controls":this.ariaControls||null,"aria-invalid":!1===i||!o&&e?"true":null,"aria-required":e?"true":null,"aria-valuemin":(0,y.BB)(this.computedMin),"aria-valuemax":(0,y.BB)(this.computedMax),"aria-valuenow":o?t:null,"aria-valuetext":o?r(t):null})}},watch:(n={},S(n,j,(function(a){this.localValue=(0,b.f_)(a,null)})),S(n,"localValue",(function(a){this.$emit(T,a)})),S(n,"disabled",(function(a){a&&this.clearRepeat()})),S(n,"readonly",(function(a){a&&this.clearRepeat()})),n),created:function(){this.$_autoDelayTimer=null,this.$_autoRepeatTimer=null,this.$_keyIsDown=!1},beforeDestroy:function(){this.clearRepeat()},deactivated:function(){this.clearRepeat()},methods:{focus:function(){this.disabled||(0,u.KS)(this.$refs.spinner)},blur:function(){this.disabled||(0,u.Cx)(this.$refs.spinner)},emitChange:function(){this.$emit(o.z2,this.localValue)},stepValue:function(a){var t=this.localValue;if(!this.disabled&&!(0,v.Ft)(t)){var e=this.computedStep*a,n=this.computedMin,i=this.computedMax,r=this.computedMultiplier,o=this.wrap;t=(0,m.ir)((t-n)/e)*e+n+e,t=(0,m.ir)(t*r)/r,this.localValue=t>i?o?n:i:t0&&void 0!==arguments[0]?arguments[0]:1,t=this.localValue;(0,v.Ft)(t)?this.localValue=this.computedMin:this.stepValue(1*a)},stepDown:function(){var a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=this.localValue;(0,v.Ft)(t)?this.localValue=this.wrap?this.computedMax:this.computedMin:this.stepValue(-1*a)},onKeydown:function(a){var t=a.keyCode,e=a.altKey,n=a.ctrlKey,i=a.metaKey;if(!(this.disabled||this.readonly||e||n||i)&&(0,h.kI)(U,t)){if((0,d.p7)(a,{propagation:!1}),this.$_keyIsDown)return;this.resetTimers(),(0,h.kI)([c.XS,c.RV],t)?(this.$_keyIsDown=!0,t===c.XS?this.handleStepRepeat(a,this.stepUp):t===c.RV&&this.handleStepRepeat(a,this.stepDown)):t===c.r7?this.stepUp(this.computedStepMultiplier):t===c.L_?this.stepDown(this.computedStepMultiplier):t===c.QI?this.localValue=this.computedMin:t===c.bt&&(this.localValue=this.computedMax)}},onKeyup:function(a){var t=a.keyCode,e=a.altKey,n=a.ctrlKey,i=a.metaKey;this.disabled||this.readonly||e||n||i||(0,h.kI)(U,t)&&((0,d.p7)(a,{propagation:!1}),this.resetTimers(),this.$_keyIsDown=!1,this.emitChange())},handleStepRepeat:function(a,t){var e=this,n=a||{},i=n.type,r=n.button;if(!this.disabled&&!this.readonly){if("mousedown"===i&&r)return;this.resetTimers(),t(1);var o=this.computedThreshold,l=this.computedStepMultiplier,c=this.computedDelay,s=this.computedInterval;this.$_autoDelayTimer=setTimeout((function(){var a=0;e.$_autoRepeatTimer=setInterval((function(){t(a{e.d(t,{d:()=>b});var n=e(1915),i=e(94689),r=e(63294),o=e(12299),l=e(63663),c=e(67040),s=e(20451),h=e(73727),u=e(18280),d=e(26034),p=e(91451);function v(a,t){var e=Object.keys(a);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(a);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(a,t).enumerable}))),e.push.apply(e,n)}return e}function f(a){for(var t=1;t{e.d(t,{D:()=>Q});var n,i=e(1915),r=e(94689),o=e(63294),l=e(63663),c=e(12299),s=e(30824),h=e(90494),u=e(11572),d=e(64679),p=e(26410),v=e(28415),f=e(68265),m=e(33284),z=e(3058),b=e(54602),g=e(67040),M=e(20451),y=e(46595),V=e(32023),H=e(49035),A=e(95505),B=e(73727),O=e(76677),w=e(18280),C=e(15193),I=e(52307),L=e(51666),S=e(51909);function P(a){return T(a)||j(a)||k(a)||F()}function F(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function k(a,t){if(a){if("string"===typeof a)return D(a,t);var e=Object.prototype.toString.call(a).slice(8,-1);return"Object"===e&&a.constructor&&(e=a.constructor.name),"Map"===e||"Set"===e?Array.from(a):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?D(a,t):void 0}}function j(a){if("undefined"!==typeof Symbol&&null!=a[Symbol.iterator]||null!=a["@@iterator"])return Array.from(a)}function T(a){if(Array.isArray(a))return D(a)}function D(a,t){(null==t||t>a.length)&&(t=a.length);for(var e=0,n=new Array(t);e0&&e.indexOf(a)===t}))},Z=function(a){return(0,m.HD)(a)?a:(0,m.cO)(a)&&a.target.value||""},X=function(){return{all:[],valid:[],invalid:[],duplicate:[]}},Y=(0,M.y2)((0,g.GE)(x(x(x(x(x(x({},B.N),_),V.N),H.N),A.N),{},{addButtonText:(0,M.pi)(c.N0,"Add"),addButtonVariant:(0,M.pi)(c.N0,"outline-secondary"),addOnChange:(0,M.pi)(c.U5,!1),duplicateTagText:(0,M.pi)(c.N0,"Duplicate tag(s)"),feedbackAriaLive:(0,M.pi)(c.N0,"assertive"),ignoreInputFocusSelector:(0,M.pi)(c.Mu,W),inputAttrs:(0,M.pi)(c.aR,{}),inputClass:(0,M.pi)(c.wA),inputId:(0,M.pi)(c.N0),inputType:(0,M.pi)(c.N0,"text",(function(a){return(0,u.kI)(q,a)})),invalidTagText:(0,M.pi)(c.N0,"Invalid tag(s)"),limit:(0,M.pi)(c.jg),limitTagsText:(0,M.pi)(c.N0,"Tag limit reached"),noAddOnEnter:(0,M.pi)(c.U5,!1),noOuterFocus:(0,M.pi)(c.U5,!1),noTagRemove:(0,M.pi)(c.U5,!1),placeholder:(0,M.pi)(c.N0,"Add tag..."),removeOnDelete:(0,M.pi)(c.U5,!1),separator:(0,M.pi)(c.Mu),tagClass:(0,M.pi)(c.wA),tagPills:(0,M.pi)(c.U5,!1),tagRemoveLabel:(0,M.pi)(c.N0,"Remove tag"),tagRemovedLabel:(0,M.pi)(c.N0,"Tag removed"),tagValidator:(0,M.pi)(c.Sx),tagVariant:(0,M.pi)(c.N0,"secondary")})),r.bu),Q=(0,i.l7)({name:r.bu,mixins:[O.o,B.t,R,V.X,H.j,A.J,w.Z],props:Y,data:function(){return{hasFocus:!1,newTag:"",tags:[],removedTags:[],tagsState:X(),focusState:null}},computed:{computedInputId:function(){return this.inputId||this.safeId("__input__")},computedInputType:function(){return(0,u.kI)(q,this.inputType)?this.inputType:"text"},computedInputAttrs:function(){var a=this.disabled,t=this.form;return x(x({},this.inputAttrs),{},{id:this.computedInputId,value:this.newTag,disabled:a,form:t})},computedInputHandlers:function(){return x(x({},(0,g.CE)(this.bvListeners,[o.kT,o.iV])),{},{blur:this.onInputBlur,change:this.onInputChange,focus:this.onInputFocus,input:this.onInputInput,keydown:this.onInputKeydown,reset:this.reset})},computedSeparator:function(){return(0,u.zo)(this.separator).filter(m.HD).filter(f.y).join("")},computedSeparatorRegExp:function(){var a=this.computedSeparator;return a?new RegExp("[".concat(K(a),"]+")):null},computedJoiner:function(){var a=this.computedSeparator.charAt(0);return" "!==a?"".concat(a," "):a},computeIgnoreInputFocusSelector:function(){return(0,u.zo)(this.ignoreInputFocusSelector).filter(f.y).join(",").trim()},disableAddButton:function(){var a=this,t=(0,y.fy)(this.newTag);return""===t||!this.splitTags(t).some((function(t){return!(0,u.kI)(a.tags,t)&&a.validateTag(t)}))},duplicateTags:function(){return this.tagsState.duplicate},hasDuplicateTags:function(){return this.duplicateTags.length>0},invalidTags:function(){return this.tagsState.invalid},hasInvalidTags:function(){return this.invalidTags.length>0},isLimitReached:function(){var a=this.limit;return(0,m.hj)(a)&&a>=0&&this.tags.length>=a}},watch:(n={},N(n,U,(function(a){this.tags=J(a)})),N(n,"tags",(function(a,t){(0,z.W)(a,this[U])||this.$emit(G,a),(0,z.W)(a,t)||(a=(0,u.zo)(a).filter(f.y),t=(0,u.zo)(t).filter(f.y),this.removedTags=t.filter((function(t){return!(0,u.kI)(a,t)})))})),N(n,"tagsState",(function(a,t){(0,z.W)(a,t)||this.$emit(o.Ol,a.valid,a.invalid,a.duplicate)})),n),created:function(){this.tags=J(this[U])},mounted:function(){var a=(0,p.oq)("form",this.$el);a&&(0,v.XO)(a,"reset",this.reset,o.SH)},beforeDestroy:function(){var a=(0,p.oq)("form",this.$el);a&&(0,v.QY)(a,"reset",this.reset,o.SH)},methods:{addTag:function(a){if(a=(0,m.HD)(a)?a:this.newTag,!this.disabled&&""!==(0,y.fy)(a)&&!this.isLimitReached){var t=this.parseTags(a);if(t.valid.length>0||0===t.all.length)if((0,p.wB)(this.getInput(),"select"))this.newTag="";else{var e=[].concat(P(t.invalid),P(t.duplicate));this.newTag=t.all.filter((function(a){return(0,u.kI)(e,a)})).join(this.computedJoiner).concat(e.length>0?this.computedJoiner.charAt(0):"")}t.valid.length>0&&(this.tags=(0,u.zo)(this.tags,t.valid)),this.tagsState=t,this.focus()}},removeTag:function(a){this.disabled||(this.tags=this.tags.filter((function(t){return t!==a})))},reset:function(){var a=this;this.newTag="",this.tags=[],this.$nextTick((function(){a.removedTags=[],a.tagsState=X()}))},onInputInput:function(a){if(!(this.disabled||(0,m.cO)(a)&&a.target.composing)){var t=Z(a),e=this.computedSeparatorRegExp;this.newTag!==t&&(this.newTag=t),t=(0,y.fi)(t),e&&e.test(t.slice(-1))?this.addTag():this.tagsState=""===t?X():this.parseTags(t)}},onInputChange:function(a){if(!this.disabled&&this.addOnChange){var t=Z(a);this.newTag!==t&&(this.newTag=t),this.addTag()}},onInputKeydown:function(a){if(!this.disabled&&(0,m.cO)(a)){var t=a.keyCode,e=a.target.value||"";this.noAddOnEnter||t!==l.K2?!this.removeOnDelete||t!==l.d1&&t!==l.oD||""!==e||((0,v.p7)(a,{propagation:!1}),this.tags=this.tags.slice(0,-1)):((0,v.p7)(a,{propagation:!1}),this.addTag())}},onClick:function(a){var t=this,e=this.computeIgnoreInputFocusSelector;e&&(0,p.oq)(e,a.target,!0)||this.$nextTick((function(){t.focus()}))},onInputFocus:function(a){var t=this;"out"!==this.focusState&&(this.focusState="in",this.$nextTick((function(){(0,p.bz)((function(){t.hasFocus&&(t.$emit(o.km,a),t.focusState=null)}))})))},onInputBlur:function(a){var t=this;"in"!==this.focusState&&(this.focusState="out",this.$nextTick((function(){(0,p.bz)((function(){t.hasFocus||(t.$emit(o.z,a),t.focusState=null)}))})))},onFocusin:function(a){this.hasFocus=!0,this.$emit(o.kT,a)},onFocusout:function(a){this.hasFocus=!1,this.$emit(o.iV,a)},handleAutofocus:function(){var a=this;this.$nextTick((function(){(0,p.bz)((function(){a.autofocus&&a.focus()}))}))},focus:function(){this.disabled||(0,p.KS)(this.getInput())},blur:function(){this.disabled||(0,p.Cx)(this.getInput())},splitTags:function(a){a=(0,y.BB)(a);var t=this.computedSeparatorRegExp;return(t?a.split(t):[a]).map(y.fy).filter(f.y)},parseTags:function(a){var t=this,e=this.splitTags(a),n={all:e,valid:[],invalid:[],duplicate:[]};return e.forEach((function(a){(0,u.kI)(t.tags,a)||(0,u.kI)(n.valid,a)?(0,u.kI)(n.duplicate,a)||n.duplicate.push(a):t.validateTag(a)?n.valid.push(a):(0,u.kI)(n.invalid,a)||n.invalid.push(a)})),n},validateTag:function(a){var t=this.tagValidator;return!(0,M.lo)(t)||t(a)},getInput:function(){return(0,p.Ys)("#".concat((0,d.Q)(this.computedInputId)),this.$el)},defaultRender:function(a){var t=a.addButtonText,e=a.addButtonVariant,n=a.addTag,i=a.disableAddButton,r=a.disabled,o=a.duplicateTagText,l=a.inputAttrs,c=a.inputClass,s=a.inputHandlers,u=a.inputType,d=a.invalidTagText,p=a.isDuplicate,v=a.isInvalid,m=a.isLimitReached,z=a.limitTagsText,b=a.noTagRemove,g=a.placeholder,M=a.removeTag,V=a.tagClass,H=a.tagPills,A=a.tagRemoveLabel,B=a.tagVariant,O=a.tags,w=this.$createElement,P=O.map((function(a){return a=(0,y.BB)(a),w(S.d,{class:V,props:{disabled:r,noRemove:b,pill:H,removeLabel:A,tag:"li",title:a,variant:B},on:{remove:function(){return M(a)}},key:"tags_".concat(a)},a)})),F=d&&v?this.safeId("__invalid_feedback__"):null,k=o&&p?this.safeId("__duplicate_feedback__"):null,j=z&&m?this.safeId("__limit_feedback__"):null,T=[l["aria-describedby"],F,k,j].filter(f.y).join(" "),D=w("input",{staticClass:"b-form-tags-input w-100 flex-grow-1 p-0 m-0 bg-transparent border-0",class:c,style:{outline:0,minWidth:"5rem"},attrs:x(x({},l),{},{"aria-describedby":T||null,type:u,placeholder:g||null}),domProps:{value:l.value},on:s,directives:[{name:"model",value:l.value}],ref:"input"}),E=w(C.T,{staticClass:"b-form-tags-button py-0",class:{invisible:i},style:{fontSize:"90%"},props:{disabled:i||m,variant:e},on:{click:function(){return n()}},ref:"button"},[this.normalizeSlot(h.iV)||t]),N=this.safeId("__tag_list__"),$=w("li",{staticClass:"b-form-tags-field flex-grow-1",attrs:{role:"none","aria-live":"off","aria-controls":N},key:"tags_field"},[w("div",{staticClass:"d-flex",attrs:{role:"group"}},[D,E])]),R=w("ul",{staticClass:"b-form-tags-list list-unstyled mb-0 d-flex flex-wrap align-items-center",attrs:{id:N},key:"tags_list"},[P,$]),_=w();if(d||o||z){var U=this.feedbackAriaLive,G=this.computedJoiner,q=w();F&&(q=w(I.h,{props:{id:F,ariaLive:U,forceShow:!0},key:"tags_invalid_feedback"},[this.invalidTagText,": ",this.invalidTags.join(G)]));var W=w();k&&(W=w(L.m,{props:{id:k,ariaLive:U},key:"tags_duplicate_feedback"},[this.duplicateTagText,": ",this.duplicateTags.join(G)]));var K=w();j&&(K=w(L.m,{props:{id:j,ariaLive:U},key:"tags_limit_feedback"},[z])),_=w("div",{attrs:{"aria-live":"polite","aria-atomic":"true"},key:"tags_feedback"},[q,W,K])}return[R,_]}},render:function(a){var t=this.name,e=this.disabled,n=this.required,i=this.form,r=this.tags,o=this.computedInputId,l=this.hasFocus,c=this.noOuterFocus,s=x({tags:r.slice(),inputAttrs:this.computedInputAttrs,inputType:this.computedInputType,inputHandlers:this.computedInputHandlers,removeTag:this.removeTag,addTag:this.addTag,reset:this.reset,inputId:o,isInvalid:this.hasInvalidTags,invalidTags:this.invalidTags.slice(),isDuplicate:this.hasDuplicateTags,duplicateTags:this.duplicateTags.slice(),isLimitReached:this.isLimitReached,disableAddButton:this.disableAddButton},(0,g.ei)(this.$props,["addButtonText","addButtonVariant","disabled","duplicateTagText","form","inputClass","invalidTagText","limit","limitTagsText","noTagRemove","placeholder","required","separator","size","state","tagClass","tagPills","tagRemoveLabel","tagVariant"])),u=this.normalizeSlot(h.Pq,s)||this.defaultRender(s),d=a("output",{staticClass:"sr-only",attrs:{id:this.safeId("__selected_tags__"),role:"status",for:o,"aria-live":l?"polite":"off","aria-atomic":"true","aria-relevant":"additions text"}},this.tags.join(", ")),p=a("div",{staticClass:"sr-only",attrs:{id:this.safeId("__removed_tags__"),role:"status","aria-live":l?"assertive":"off","aria-atomic":"true"}},this.removedTags.length>0?"(".concat(this.tagRemovedLabel,") ").concat(this.removedTags.join(", ")):""),v=a();if(t&&!e){var f=r.length>0;v=(f?r:[""]).map((function(e){return a("input",{class:{"sr-only":!f},attrs:{type:f?"hidden":"text",value:e,required:n,name:t,form:i},key:"tag_input_".concat(e)})}))}return a("div",{staticClass:"b-form-tags form-control h-auto",class:[{focus:l&&!c&&!e,disabled:e},this.sizeFormClass,this.stateClass],attrs:{id:this.safeId(),role:"group",tabindex:e||c?null:"-1","aria-describedby":this.safeId("__selected_tags__")},on:{click:this.onClick,focusin:this.onFocusin,focusout:this.onFocusout}},[d,p,u,v])}})},333:(a,t,e)=>{e.d(t,{y:()=>O});var n=e(1915),i=e(94689),r=e(12299),o=e(26410),l=e(33284),c=e(21578),s=e(93954),h=e(67040),u=e(20451),d=e(32023),p=e(80685),v=e(49035),f=e(95505),m=e(70403),z=e(94791),b=e(73727),g=e(98596),M=e(76677),y=e(58290);function V(a,t){var e=Object.keys(a);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(a);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(a,t).enumerable}))),e.push.apply(e,n)}return e}function H(a){for(var t=1;tf?u:"".concat(f,"px")}},render:function(a){return a("textarea",{class:this.computedClass,style:this.computedStyle,directives:[{name:"b-visible",value:this.visibleCallback,modifiers:{640:!0}}],attrs:this.computedAttrs,domProps:{value:this.localValue},on:this.computedListeners,ref:"input"})}})},52307:(a,t,e)=>{e.d(t,{h:()=>s});var n=e(1915),i=e(69558),r=e(94689),o=e(12299),l=e(20451),c=(0,l.y2)({ariaLive:(0,l.pi)(o.N0),forceShow:(0,l.pi)(o.U5,!1),id:(0,l.pi)(o.N0),role:(0,l.pi)(o.N0),state:(0,l.pi)(o.U5,null),tag:(0,l.pi)(o.N0,"div"),tooltip:(0,l.pi)(o.U5,!1)},r.BP),s=(0,n.l7)({name:r.BP,functional:!0,props:c,render:function(a,t){var e=t.props,n=t.data,r=t.children,o=e.tooltip,l=e.ariaLive,c=!0===e.forceShow||!1===e.state;return a(e.tag,(0,i.b)(n,{class:{"d-block":c,"invalid-feedback":!o,"invalid-tooltip":o},attrs:{id:e.id||null,role:e.role||null,"aria-live":l||null,"aria-atomic":l?"true":null}}),r)}})},51666:(a,t,e)=>{e.d(t,{m:()=>h});var n=e(1915),i=e(69558),r=e(94689),o=e(12299),l=e(20451);function c(a,t,e){return t in a?Object.defineProperty(a,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):a[t]=e,a}var s=(0,l.y2)({id:(0,l.pi)(o.N0),inline:(0,l.pi)(o.U5,!1),tag:(0,l.pi)(o.N0,"small"),textVariant:(0,l.pi)(o.N0,"muted")},r.F6),h=(0,n.l7)({name:r.F6,functional:!0,props:s,render:function(a,t){var e=t.props,n=t.data,r=t.children;return a(e.tag,(0,i.b)(n,{class:c({"form-text":!e.inline},"text-".concat(e.textVariant),e.textVariant),attrs:{id:e.id}}),r)}})},98761:(a,t,e)=>{e.d(t,{m:()=>s});var n=e(1915),i=e(69558),r=e(94689),o=e(12299),l=e(20451),c=(0,l.y2)({ariaLive:(0,l.pi)(o.N0),forceShow:(0,l.pi)(o.U5,!1),id:(0,l.pi)(o.N0),role:(0,l.pi)(o.N0),state:(0,l.pi)(o.U5,null),tag:(0,l.pi)(o.N0,"div"),tooltip:(0,l.pi)(o.U5,!1)},r.rc),s=(0,n.l7)({name:r.rc,functional:!0,props:c,render:function(a,t){var e=t.props,n=t.data,r=t.children,o=e.tooltip,l=e.ariaLive,c=!0===e.forceShow||!0===e.state;return a(e.tag,(0,i.b)(n,{class:{"d-block":c,"valid-feedback":!o,"valid-tooltip":o},attrs:{id:e.id||null,role:e.role||null,"aria-live":l||null,"aria-atomic":l?"true":null}}),r)}})},54909:(a,t,e)=>{e.d(t,{N:()=>c,e:()=>s});var n=e(1915),i=e(69558),r=e(94689),o=e(12299),l=e(20451),c=(0,l.y2)({id:(0,l.pi)(o.N0),inline:(0,l.pi)(o.U5,!1),novalidate:(0,l.pi)(o.U5,!1),validated:(0,l.pi)(o.U5,!1)},r.eh),s=(0,n.l7)({name:r.eh,functional:!0,props:c,render:function(a,t){var e=t.props,n=t.data,r=t.children;return a("form",(0,i.b)(n,{class:{"form-inline":e.inline,"was-validated":e.validated},attrs:{id:e.id,novalidate:e.novalidate}}),r)}})},98156:(a,t,e)=>{e.d(t,{N:()=>m,s:()=>z});var n=e(1915),i=e(69558),r=e(94689),o=e(12299),l=e(11572),c=e(68265),s=e(33284),h=e(93954),u=e(20451),d=e(46595);function p(a,t,e){return t in a?Object.defineProperty(a,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):a[t]=e,a}var v='',f=function(a,t,e){var n=encodeURIComponent(v.replace("%{w}",(0,d.BB)(a)).replace("%{h}",(0,d.BB)(t)).replace("%{f}",e));return"data:image/svg+xml;charset=UTF-8,".concat(n)},m=(0,u.y2)({alt:(0,u.pi)(o.N0),blank:(0,u.pi)(o.U5,!1),blankColor:(0,u.pi)(o.N0,"transparent"),block:(0,u.pi)(o.U5,!1),center:(0,u.pi)(o.U5,!1),fluid:(0,u.pi)(o.U5,!1),fluidGrow:(0,u.pi)(o.U5,!1),height:(0,u.pi)(o.fE),left:(0,u.pi)(o.U5,!1),right:(0,u.pi)(o.U5,!1),rounded:(0,u.pi)(o.gL,!1),sizes:(0,u.pi)(o.Mu),src:(0,u.pi)(o.N0),srcset:(0,u.pi)(o.Mu),thumbnail:(0,u.pi)(o.U5,!1),width:(0,u.pi)(o.fE)},r.aJ),z=(0,n.l7)({name:r.aJ,functional:!0,props:m,render:function(a,t){var e,n=t.props,r=t.data,o=n.alt,u=n.src,v=n.block,m=n.fluidGrow,z=n.rounded,b=(0,h.Z3)(n.width)||null,g=(0,h.Z3)(n.height)||null,M=null,y=(0,l.zo)(n.srcset).filter(c.y).join(","),V=(0,l.zo)(n.sizes).filter(c.y).join(",");return n.blank&&(!g&&b?g=b:!b&&g&&(b=g),b||g||(b=1,g=1),u=f(b,g,n.blankColor||"transparent"),y=null,V=null),n.left?M="float-left":n.right?M="float-right":n.center&&(M="mx-auto",v=!0),a("img",(0,i.b)(r,{attrs:{src:u,alt:o,width:b?(0,d.BB)(b):null,height:g?(0,d.BB)(g):null,srcset:y||null,sizes:V||null},class:(e={"img-thumbnail":n.thumbnail,"img-fluid":n.fluid||m,"w-100":m,rounded:""===z||!0===z},p(e,"rounded-".concat(z),(0,s.HD)(z)&&""!==z),p(e,M,M),p(e,"d-block",v),e)}))}})},74199:(a,t,e)=>{e.d(t,{B:()=>h,N:()=>s});var n=e(1915),i=e(69558),r=e(94689),o=e(12299),l=e(20451),c=e(18222),s=(0,l.y2)({append:(0,l.pi)(o.U5,!1),id:(0,l.pi)(o.N0),isText:(0,l.pi)(o.U5,!1),tag:(0,l.pi)(o.N0,"div")},r.gb),h=(0,n.l7)({name:r.gb,functional:!0,props:s,render:function(a,t){var e=t.props,n=t.data,r=t.children,o=e.append;return a(e.tag,(0,i.b)(n,{class:{"input-group-append":o,"input-group-prepend":!o},attrs:{id:e.id}}),e.isText?[a(c.e,r)]:r)}})},22418:(a,t,e)=>{e.d(t,{B:()=>p});var n=e(1915),i=e(69558),r=e(94689),o=e(67040),l=e(20451),c=e(74199);function s(a,t){var e=Object.keys(a);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(a);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(a,t).enumerable}))),e.push.apply(e,n)}return e}function h(a){for(var t=1;t{e.d(t,{P:()=>p});var n=e(1915),i=e(69558),r=e(94689),o=e(67040),l=e(20451),c=e(74199);function s(a,t){var e=Object.keys(a);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(a);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(a,t).enumerable}))),e.push.apply(e,n)}return e}function h(a){for(var t=1;t{e.d(t,{e:()=>s});var n=e(1915),i=e(69558),r=e(94689),o=e(12299),l=e(20451),c=(0,l.y2)({tag:(0,l.pi)(o.N0,"div")},r.HQ),s=(0,n.l7)({name:r.HQ,functional:!0,props:c,render:function(a,t){var e=t.props,n=t.data,r=t.children;return a(e.tag,(0,i.b)(n,{staticClass:"input-group-text"}),r)}})},4060:(a,t,e)=>{e.d(t,{w:()=>m});var n=e(1915),i=e(69558),r=e(94689),o=e(12299),l=e(90494),c=e(18735),s=e(72345),h=e(20451),u=e(22418),d=e(27754),p=e(18222);function v(a,t,e){return t in a?Object.defineProperty(a,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):a[t]=e,a}var f=(0,h.y2)({append:(0,h.pi)(o.N0),appendHtml:(0,h.pi)(o.N0),id:(0,h.pi)(o.N0),prepend:(0,h.pi)(o.N0),prependHtml:(0,h.pi)(o.N0),size:(0,h.pi)(o.N0),tag:(0,h.pi)(o.N0,"div")},r.aZ),m=(0,n.l7)({name:r.aZ,functional:!0,props:f,render:function(a,t){var e=t.props,n=t.data,r=t.slots,o=t.scopedSlots,h=e.prepend,f=e.prependHtml,m=e.append,z=e.appendHtml,b=e.size,g=o||{},M=r(),y={},V=a(),H=(0,s.Q)(l.kg,g,M);(H||h||f)&&(V=a(d.P,[H?(0,s.O)(l.kg,y,g,M):a(p.e,{domProps:(0,c.U)(f,h)})]));var A=a(),B=(0,s.Q)(l.G$,g,M);return(B||m||z)&&(A=a(u.B,[B?(0,s.O)(l.G$,y,g,M):a(p.e,{domProps:(0,c.U)(z,m)})])),a(e.tag,(0,i.b)(n,{staticClass:"input-group",class:v({},"input-group-".concat(b),b),attrs:{id:e.id||null,role:"group"}}),[V,(0,s.O)(l.Pq,y,g,M),A])}})},50725:(a,t,e)=>{e.d(t,{l:()=>H});var n=e(69558),i=e(94689),r=e(12299),o=e(30824),l=e(11572),c=e(79968),s=e(68265),h=e(33284),u=e(91051),d=e(67040),p=e(20451),v=e(46595);function f(a,t){var e=Object.keys(a);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(a);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(a,t).enumerable}))),e.push.apply(e,n)}return e}function m(a){for(var t=1;t{e.d(t,{h:()=>h});var n=e(1915),i=e(69558),r=e(94689),o=e(12299),l=e(20451);function c(a,t,e){return t in a?Object.defineProperty(a,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):a[t]=e,a}var s=(0,l.y2)({fluid:(0,l.pi)(o.gL,!1),tag:(0,l.pi)(o.N0,"div")},r.aU),h=(0,n.l7)({name:r.aU,functional:!0,props:s,render:function(a,t){var e=t.props,n=t.data,r=t.children,o=e.fluid;return a(e.tag,(0,i.b)(n,{class:c({container:!(o||""===o),"container-fluid":!0===o||""===o},"container-".concat(o),o&&!0!==o)}),r)}})},46310:(a,t,e)=>{e.d(t,{d:()=>s});var n=e(1915),i=e(69558),r=e(94689),o=e(12299),l=e(20451),c=(0,l.y2)({tag:(0,l.pi)(o.N0,"div")},r.Bd),s=(0,n.l7)({name:r.Bd,functional:!0,props:c,render:function(a,t){var e=t.props,n=t.data,r=t.children;return a(e.tag,(0,i.b)(n,{staticClass:"form-row"}),r)}})},48648:(a,t,e)=>{e.d(t,{A6:()=>c});var n=e(34147),i=e(26253),r=e(50725),o=e(46310),l=e(86087),c=(0,l.Hr)({components:{BContainer:n.h,BRow:i.T,BCol:r.l,BFormRow:o.d}})},26253:(a,t,e)=>{e.d(t,{T:()=>y});var n=e(69558),i=e(94689),r=e(12299),o=e(11572),l=e(79968),c=e(68265),s=e(91051),h=e(67040),u=e(20451),d=e(46595);function p(a,t){var e=Object.keys(a);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(a);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(a,t).enumerable}))),e.push.apply(e,n)}return e}function v(a){for(var t=1;t{e.d(t,{NQ:()=>L,we:()=>S});var n=e(1915),i=e(94689),r=e(63294),o=e(12299),l=e(11572),c=e(26410),s=e(28415),h=e(33284),u=e(67040),d=e(20451),p=e(30488),v=e(28492),f=e(98596),m=e(76677),z=e(18280);function b(a){return V(a)||y(a)||M(a)||g()}function g(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function M(a,t){if(a){if("string"===typeof a)return H(a,t);var e=Object.prototype.toString.call(a).slice(8,-1);return"Object"===e&&a.constructor&&(e=a.constructor.name),"Map"===e||"Set"===e?Array.from(a):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?H(a,t):void 0}}function y(a){if("undefined"!==typeof Symbol&&null!=a[Symbol.iterator]||null!=a["@@iterator"])return Array.from(a)}function V(a){if(Array.isArray(a))return H(a)}function H(a,t){(null==t||t>a.length)&&(t=a.length);for(var e=0,n=new Array(t);e{e.d(t,{f:()=>g});var n=e(1915),i=e(69558),r=e(94689),o=e(12299),l=e(11572),c=e(26410),s=e(67040),h=e(20451),u=e(30488),d=e(67347);function p(a,t){var e=Object.keys(a);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(a);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(a,t).enumerable}))),e.push.apply(e,n)}return e}function v(a){for(var t=1;t{e.d(t,{N:()=>u});var n=e(1915),i=e(69558),r=e(94689),o=e(12299),l=e(33284),c=e(20451);function s(a,t,e){return t in a?Object.defineProperty(a,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):a[t]=e,a}var h=(0,c.y2)({flush:(0,c.pi)(o.U5,!1),horizontal:(0,c.pi)(o.gL,!1),tag:(0,c.pi)(o.N0,"div")},r.DX),u=(0,n.l7)({name:r.DX,functional:!0,props:h,render:function(a,t){var e=t.props,n=t.data,r=t.children,o=""===e.horizontal||e.horizontal;o=!e.flush&&o;var c={staticClass:"list-group",class:s({"list-group-flush":e.flush,"list-group-horizontal":!0===o},"list-group-horizontal-".concat(o),(0,l.HD)(o))};return a(e.tag,(0,i.b)(n,c),r)}})},87272:(a,t,e)=>{e.d(t,{D:()=>h});var n=e(1915),i=e(69558),r=e(94689),o=e(12299),l=e(20451);function c(a,t,e){return t in a?Object.defineProperty(a,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):a[t]=e,a}var s=(0,l.y2)({right:(0,l.pi)(o.U5,!1),tag:(0,l.pi)(o.N0,"div"),verticalAlign:(0,l.pi)(o.N0,"top")},r.u7),h=(0,n.l7)({name:r.u7,functional:!0,props:s,render:function(a,t){var e=t.props,n=t.data,r=t.children,o=e.verticalAlign,l="top"===o?"start":"bottom"===o?"end":o;return a(e.tag,(0,i.b)(n,{staticClass:"media-aside",class:c({"media-aside-right":e.right},"align-self-".concat(l),l)}),r)}})},68361:(a,t,e)=>{e.d(t,{D:()=>s});var n=e(1915),i=e(69558),r=e(94689),o=e(12299),l=e(20451),c=(0,l.y2)({tag:(0,l.pi)(o.N0,"div")},r.Ub),s=(0,n.l7)({name:r.Ub,functional:!0,props:c,render:function(a,t){var e=t.props,n=t.data,r=t.children;return a(e.tag,(0,i.b)(n,{staticClass:"media-body"}),r)}})},72775:(a,t,e)=>{e.d(t,{P:()=>p});var n=e(1915),i=e(69558),r=e(94689),o=e(12299),l=e(90494),c=e(72345),s=e(20451),h=e(87272),u=e(68361),d=(0,s.y2)({noBody:(0,s.pi)(o.U5,!1),rightAlign:(0,s.pi)(o.U5,!1),tag:(0,s.pi)(o.N0,"div"),verticalAlign:(0,s.pi)(o.N0,"top")},r.vF),p=(0,n.l7)({name:r.vF,functional:!0,props:d,render:function(a,t){var e=t.props,n=t.data,r=t.slots,o=t.scopedSlots,s=t.children,d=e.noBody,p=e.rightAlign,v=e.verticalAlign,f=d?s:[];if(!d){var m={},z=r(),b=o||{};f.push(a(u.D,(0,c.O)(l.Pq,m,b,z)));var g=(0,c.O)(l.Q2,m,b,z);g&&f[p?"push":"unshift"](a(h.D,{props:{right:p,verticalAlign:v}},g))}return a(e.tag,(0,i.b)(n,{staticClass:"media"}),f)}})},54016:(a,t,e)=>{e.d(t,{k:()=>E});var n=e(31220),i=e(82653),r=e(94689),o=e(63294),l=e(93319),c=e(11572),s=e(79968),h=e(26410),u=e(28415),d=e(33284),p=e(67040),v=e(86087),f=e(77147),m=e(55789),z=e(91076);function b(a,t){if(!(a instanceof t))throw new TypeError("Cannot call a class as a function")}function g(a,t){for(var e=0;ea.length)&&(t=a.length);for(var e=0,n=new Array(t);e2&&void 0!==arguments[2]?arguments[2]:F;if(!(0,f.zl)(L)&&!(0,f.gs)(L)){var i=(0,m.H)(a,t,{propsData:V(V(V({},j((0,s.wJ)(r.zB))),{},{hideHeaderClose:!0,hideHeader:!(e.title||e.titleHtml)},(0,p.CE)(e,(0,p.XP)(k))),{},{lazy:!1,busy:!1,visible:!1,noStacking:!1,noEnforceFocus:!1})});return(0,p.XP)(k).forEach((function(a){(0,d.o8)(e[a])||(i.$slots[k[a]]=(0,c.zo)(e[a]))})),new Promise((function(a,t){var e=!1;i.$once(o.DJ,(function(){e||t(new Error("BootstrapVue MsgBox destroyed before resolve"))})),i.$on(o.yM,(function(t){if(!t.defaultPrevented){var i=n(t);t.defaultPrevented||(e=!0,a(i))}}));var r=document.createElement("div");document.body.appendChild(r),i.$mount(r)}))}},i=function(a,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;if(t&&!(0,f.gs)(L)&&!(0,f.zl)(L)&&(0,d.mf)(i))return e(a,V(V({},j(n)),{},{msgBoxContent:t}),i)},v=function(){function a(t){b(this,a),(0,p.f0)(this,{_vm:t,_root:(0,z.C)(t)}),(0,p.hc)(this,{_vm:(0,p.MB)(),_root:(0,p.MB)()})}return M(a,[{key:"show",value:function(a){if(a&&this._root){for(var t,e=arguments.length,n=new Array(e>1?e-1:0),i=1;i1?e-1:0),i=1;i1&&void 0!==arguments[1]?arguments[1]:{},e=V(V({},t),{},{okOnly:!0,okDisabled:!1,hideFooter:!1,msgBoxContent:a});return i(this._vm,a,e,(function(){return!0}))}},{key:"msgBoxConfirm",value:function(a){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},e=V(V({},t),{},{okOnly:!1,okDisabled:!1,cancelDisabled:!1,hideFooter:!1});return i(this._vm,a,e,(function(a){var t=a.trigger;return"ok"===t||"cancel"!==t&&null}))}}]),a}();a.mixin({beforeCreate:function(){this[S]=new v(this)}}),(0,p.nr)(a.prototype,L)||(0,p._x)(a.prototype,L,{get:function(){return this&&this[S]||(0,f.ZK)('"'.concat(L,'" must be accessed from a Vue instance "this" context.'),r.zB),this[S]}})},D=(0,v.Hr)({plugins:{plugin:T}}),E=(0,v.Hr)({components:{BModal:n.N},directives:{VBModal:i.T},plugins:{BVModalPlugin:D}})},31220:(a,t,e)=>{e.d(t,{N:()=>Ia,K:()=>Ca});var n=e(1915),i=e(94689),r=e(43935),o=e(63294),l=e(63663),c=e(12299),s=e(28112),h=e(90494),u=e(11572),d=e(26410),p=e(28415),v=e(18735),f=e(68265),m=e(33284),z=e(54602),b=e(67040),g=e(63078),M=e(20451),y=e(28492),V=e(73727),H="$_documentListeners",A=(0,n.l7)({created:function(){this[H]={}},beforeDestroy:function(){var a=this;(0,b.XP)(this[H]||{}).forEach((function(t){a[H][t].forEach((function(e){a.listenOffDocument(t,e)}))})),this[H]=null},methods:{registerDocumentListener:function(a,t){this[H]&&(this[H][a]=this[H][a]||[],(0,u.kI)(this[H][a],t)||this[H][a].push(t))},unregisterDocumentListener:function(a,t){this[H]&&this[H][a]&&(this[H][a]=this[H][a].filter((function(a){return a!==t})))},listenDocument:function(a,t,e){a?this.listenOnDocument(t,e):this.listenOffDocument(t,e)},listenOnDocument:function(a,t){r.Qg&&((0,p.XO)(document,a,t,o.IJ),this.registerDocumentListener(a,t))},listenOffDocument:function(a,t){r.Qg&&(0,p.QY)(document,a,t,o.IJ),this.unregisterDocumentListener(a,t)}}}),B=e(98596),O="$_windowListeners",w=(0,n.l7)({created:function(){this[O]={}},beforeDestroy:function(){var a=this;(0,b.XP)(this[O]||{}).forEach((function(t){a[O][t].forEach((function(e){a.listenOffWindow(t,e)}))})),this[O]=null},methods:{registerWindowListener:function(a,t){this[O]&&(this[O][a]=this[O][a]||[],(0,u.kI)(this[O][a],t)||this[O][a].push(t))},unregisterWindowListener:function(a,t){this[O]&&this[O][a]&&(this[O][a]=this[O][a].filter((function(a){return a!==t})))},listenWindow:function(a,t,e){a?this.listenOnWindow(t,e):this.listenOffWindow(t,e)},listenOnWindow:function(a,t){r.Qg&&((0,p.XO)(window,a,t,o.IJ),this.registerWindowListener(a,t))},listenOffWindow:function(a,t){r.Qg&&(0,p.QY)(window,a,t,o.IJ),this.unregisterWindowListener(a,t)}}}),C=e(18280),I=e(30051),L=e(15193),S=e(91451),P=e(17100),F=e(20144),k=e(55789),j=(0,n.l7)({abstract:!0,name:i.eO,props:{nodes:(0,M.pi)(c.Vh)},data:function(a){return{updatedNodes:a.nodes}},destroyed:function(){(0,d.ZF)(this.$el)},render:function(a){var t=this.updatedNodes,e=(0,m.mf)(t)?t({}):t;return e=(0,u.zo)(e).filter(f.y),e&&e.length>0&&!e[0].text?e[0]:a()}}),T={container:(0,M.pi)([s.mv,c.N0],"body"),disabled:(0,M.pi)(c.U5,!1),tag:(0,M.pi)(c.N0,"div")},D=(0,n.l7)({name:i.H3,mixins:[C.Z],props:T,watch:{disabled:{immediate:!0,handler:function(a){a?this.unmountTarget():this.$nextTick(this.mountTarget)}}},created:function(){this.$_defaultFn=null,this.$_target=null},beforeMount:function(){this.mountTarget()},updated:function(){this.updateTarget()},beforeDestroy:function(){this.unmountTarget(),this.$_defaultFn=null},methods:{getContainer:function(){if(r.Qg){var a=this.container;return(0,m.HD)(a)?(0,d.Ys)(a):a}return null},mountTarget:function(){if(!this.$_target){var a=this.getContainer();if(a){var t=document.createElement("div");a.appendChild(t),this.$_target=(0,k.H)(this,j,{el:t,propsData:{nodes:(0,u.zo)(this.normalizeSlot())}})}}},updateTarget:function(){if(r.Qg&&this.$_target){var a=this.$scopedSlots.default;this.disabled||(a&&this.$_defaultFn!==a?this.$_target.updatedNodes=a:a||(this.$_target.updatedNodes=this.$slots.default)),this.$_defaultFn=a}},unmountTarget:function(){this.$_target&&this.$_target.$destroy(),this.$_target=null}},render:function(a){if(this.disabled){var t=(0,u.zo)(this.normalizeSlot()).filter(f.y);if(t.length>0&&!t[0].text)return t[0]}return a()}}),E=(0,n.l7)({name:i.H3,mixins:[C.Z],props:T,render:function(a){if(this.disabled){var t=(0,u.zo)(this.normalizeSlot()).filter(f.y);if(t.length>0)return t[0]}return a(F["default"].Teleport,{to:this.container},this.normalizeSlot())}}),x=n.$B?E:D,N=e(37130);function $(a){return $="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(a){return typeof a}:function(a){return a&&"function"==typeof Symbol&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},$(a)}function R(a,t){var e=Object.keys(a);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(a);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(a,t).enumerable}))),e.push.apply(e,n)}return e}function _(a){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{};return G(this,e),n=t.call(this,a,i),(0,b.hc)(aa(n),{trigger:(0,b.MB)()}),n}return W(e,null,[{key:"Defaults",get:function(){return _(_({},K(ea(e),"Defaults",this)),{},{trigger:null})}}]),e}(N.n),ia=e(93954),ra=1040,oa=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",la=".sticky-top",ca=".navbar-toggler",sa=(0,n.l7)({data:function(){return{modals:[],baseZIndex:null,scrollbarWidth:null,isBodyOverflowing:!1}},computed:{modalCount:function(){return this.modals.length},modalsAreOpen:function(){return this.modalCount>0}},watch:{modalCount:function(a,t){r.Qg&&(this.getScrollbarWidth(),a>0&&0===t?(this.checkScrollbar(),this.setScrollbar(),(0,d.cn)(document.body,"modal-open")):0===a&&t>0&&(this.resetScrollbar(),(0,d.IV)(document.body,"modal-open")),(0,d.fi)(document.body,"data-modal-open-count",String(a)))},modals:function(a){var t=this;this.checkScrollbar(),(0,d.bz)((function(){t.updateModals(a||[])}))}},methods:{registerModal:function(a){a&&-1===this.modals.indexOf(a)&&this.modals.push(a)},unregisterModal:function(a){var t=this.modals.indexOf(a);t>-1&&(this.modals.splice(t,1),a._isBeingDestroyed||a._isDestroyed||this.resetModal(a))},getBaseZIndex:function(){if(r.Qg&&(0,m.Ft)(this.baseZIndex)){var a=document.createElement("div");(0,d.cn)(a,"modal-backdrop"),(0,d.cn)(a,"d-none"),(0,d.A_)(a,"display","none"),document.body.appendChild(a),this.baseZIndex=(0,ia.Z3)((0,d.yD)(a).zIndex,ra),document.body.removeChild(a)}return this.baseZIndex||ra},getScrollbarWidth:function(){if(r.Qg&&(0,m.Ft)(this.scrollbarWidth)){var a=document.createElement("div");(0,d.cn)(a,"modal-scrollbar-measure"),document.body.appendChild(a),this.scrollbarWidth=(0,d.Zt)(a).width-a.clientWidth,document.body.removeChild(a)}return this.scrollbarWidth||0},updateModals:function(a){var t=this,e=this.getBaseZIndex(),n=this.getScrollbarWidth();a.forEach((function(a,i){a.zIndex=e+i,a.scrollbarWidth=n,a.isTop=i===t.modals.length-1,a.isBodyOverflowing=t.isBodyOverflowing}))},resetModal:function(a){a&&(a.zIndex=this.getBaseZIndex(),a.isTop=!0,a.isBodyOverflowing=!1)},checkScrollbar:function(){var a=(0,d.Zt)(document.body),t=a.left,e=a.right;this.isBodyOverflowing=t+e0&&void 0!==arguments[0]&&arguments[0];this.$_observer&&this.$_observer.disconnect(),this.$_observer=null,a&&(this.$_observer=(0,g.t)(this.$refs.content,this.checkModalOverflow.bind(this),wa))},updateModel:function(a){a!==this[za]&&this.$emit(ba,a)},buildEvent:function(a){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new na(a,da(da({cancelable:!1,target:this.$refs.modal||this.$el||null,relatedTarget:null,trigger:null},t),{},{vueTarget:this,componentId:this.modalId}))},show:function(){if(!this.isVisible&&!this.isOpening)if(this.isClosing)this.$once(o.v6,this.show);else{this.isOpening=!0,this.$_returnFocus=this.$_returnFocus||this.getActiveElement();var a=this.buildEvent(o.l0,{cancelable:!0});if(this.emitEvent(a),a.defaultPrevented||this.isVisible)return this.isOpening=!1,void this.updateModel(!1);this.doShow()}},hide:function(){var a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";if(this.isVisible&&!this.isClosing){this.isClosing=!0;var t=this.buildEvent(o.yM,{cancelable:a!==ya,trigger:a||null});if(a===Ba?this.$emit(o.Et,t):a===Ha?this.$emit(o.J9,t):a===Aa&&this.$emit(o.Cc,t),this.emitEvent(t),t.defaultPrevented||!this.isVisible)return this.isClosing=!1,void this.updateModel(!0);this.setObserver(!1),this.isVisible=!1,this.updateModel(!1)}},toggle:function(a){a&&(this.$_returnFocus=a),this.isVisible?this.hide(Va):this.show()},getActiveElement:function(){var a=(0,d.vY)(r.Qg?[document.body]:[]);return a&&a.focus?a:null},doShow:function(){var a=this;ha.modalsAreOpen&&this.noStacking?this.listenOnRootOnce((0,p.J3)(i.zB,o.v6),this.doShow):(ha.registerModal(this),this.isHidden=!1,this.$nextTick((function(){a.isVisible=!0,a.isOpening=!1,a.updateModel(!0),a.$nextTick((function(){a.setObserver(!0)}))})))},onBeforeEnter:function(){this.isTransitioning=!0,this.setResizeEvent(!0)},onEnter:function(){var a=this;this.isBlock=!0,(0,d.bz)((function(){(0,d.bz)((function(){a.isShow=!0}))}))},onAfterEnter:function(){var a=this;this.checkModalOverflow(),this.isTransitioning=!1,(0,d.bz)((function(){a.emitEvent(a.buildEvent(o.AS)),a.setEnforceFocus(!0),a.$nextTick((function(){a.focusFirst()}))}))},onBeforeLeave:function(){this.isTransitioning=!0,this.setResizeEvent(!1),this.setEnforceFocus(!1)},onLeave:function(){this.isShow=!1},onAfterLeave:function(){var a=this;this.isBlock=!1,this.isTransitioning=!1,this.isModalOverflowing=!1,this.isHidden=!0,this.$nextTick((function(){a.isClosing=!1,ha.unregisterModal(a),a.returnFocusTo(),a.emitEvent(a.buildEvent(o.v6))}))},emitEvent:function(a){var t=a.type;this.emitOnRoot((0,p.J3)(i.zB,t),a,a.componentId),this.$emit(t,a)},onDialogMousedown:function(){var a=this,t=this.$refs.modal,e=function e(n){(0,p.QY)(t,"mouseup",e,o.IJ),n.target===t&&(a.ignoreBackdropClick=!0)};(0,p.XO)(t,"mouseup",e,o.IJ)},onClickOut:function(a){this.ignoreBackdropClick?this.ignoreBackdropClick=!1:this.isVisible&&!this.noCloseOnBackdrop&&(0,d.r3)(document.body,a.target)&&((0,d.r3)(this.$refs.content,a.target)||this.hide(ga))},onOk:function(){this.hide(Ba)},onCancel:function(){this.hide(Ha)},onClose:function(){this.hide(Aa)},onEsc:function(a){a.keyCode===l.RZ&&this.isVisible&&!this.noCloseOnEsc&&this.hide(Ma)},focusHandler:function(a){var t=this.$refs.content,e=a.target;if(!(this.noEnforceFocus||!this.isTop||!this.isVisible||!t||document===e||(0,d.r3)(t,e)||this.computeIgnoreEnforceFocusSelector&&(0,d.oq)(this.computeIgnoreEnforceFocusSelector,e,!0))){var n=(0,d.td)(this.$refs.content),i=this.$refs["bottom-trap"],r=this.$refs["top-trap"];if(i&&e===i){if((0,d.KS)(n[0]))return}else if(r&&e===r&&(0,d.KS)(n[n.length-1]))return;(0,d.KS)(t,{preventScroll:!0})}},setEnforceFocus:function(a){this.listenDocument(a,"focusin",this.focusHandler)},setResizeEvent:function(a){this.listenWindow(a,"resize",this.checkModalOverflow),this.listenWindow(a,"orientationchange",this.checkModalOverflow)},showHandler:function(a,t){a===this.modalId&&(this.$_returnFocus=t||this.getActiveElement(),this.show())},hideHandler:function(a){a===this.modalId&&this.hide("event")},toggleHandler:function(a,t){a===this.modalId&&this.toggle(t)},modalListener:function(a){this.noStacking&&a.vueTarget!==this&&this.hide()},focusFirst:function(){var a=this;r.Qg&&(0,d.bz)((function(){var t=a.$refs.modal,e=a.$refs.content,n=a.getActiveElement();if(t&&e&&(!n||!(0,d.r3)(e,n))){var i=a.$refs["ok-button"],r=a.$refs["cancel-button"],o=a.$refs["close-button"],l=a.autoFocusButton,c=l===Ba&&i?i.$el||i:l===Ha&&r?r.$el||r:l===Aa&&o?o.$el||o:e;(0,d.KS)(c),c===e&&a.$nextTick((function(){t.scrollTop=0}))}}))},returnFocusTo:function(){var a=this.returnFocus||this.$_returnFocus||null;this.$_returnFocus=null,this.$nextTick((function(){a=(0,m.HD)(a)?(0,d.Ys)(a):a,a&&(a=a.$el||a,(0,d.KS)(a))}))},checkModalOverflow:function(){if(this.isVisible){var a=this.$refs.modal;this.isModalOverflowing=a.scrollHeight>document.documentElement.clientHeight}},makeModal:function(a){var t=a();if(!this.hideHeader){var e=this.normalizeSlot(h.ki,this.slotScope);if(!e){var i=a();this.hideHeaderClose||(i=a(S.Z,{props:{content:this.headerCloseContent,disabled:this.isTransitioning,ariaLabel:this.headerCloseLabel,textVariant:this.headerCloseVariant||this.headerTextVariant},on:{click:this.onClose},ref:"close-button"},[this.normalizeSlot(h.sW)])),e=[a(this.titleTag,{staticClass:"modal-title",class:this.titleClasses,attrs:{id:this.modalTitleId},domProps:this.hasNormalizedSlot(h.Ro)?{}:(0,v.U)(this.titleHtml,this.title)},this.normalizeSlot(h.Ro,this.slotScope)),i]}t=a(this.headerTag,{staticClass:"modal-header",class:this.headerClasses,attrs:{id:this.modalHeaderId},ref:"header"},[e])}var r=a("div",{staticClass:"modal-body",class:this.bodyClasses,attrs:{id:this.modalBodyId},ref:"body"},this.normalizeSlot(h.Pq,this.slotScope)),o=a();if(!this.hideFooter){var l=this.normalizeSlot(h._J,this.slotScope);if(!l){var c=a();this.okOnly||(c=a(L.T,{props:{variant:this.cancelVariant,size:this.buttonSize,disabled:this.cancelDisabled||this.busy||this.isTransitioning},domProps:this.hasNormalizedSlot(h.Xc)?{}:(0,v.U)(this.cancelTitleHtml,this.cancelTitle),on:{click:this.onCancel},ref:"cancel-button"},this.normalizeSlot(h.Xc)));var s=a(L.T,{props:{variant:this.okVariant,size:this.buttonSize,disabled:this.okDisabled||this.busy||this.isTransitioning},domProps:this.hasNormalizedSlot(h.K$)?{}:(0,v.U)(this.okTitleHtml,this.okTitle),on:{click:this.onOk},ref:"ok-button"},this.normalizeSlot(h.K$));l=[c,s]}o=a(this.footerTag,{staticClass:"modal-footer",class:this.footerClasses,attrs:{id:this.modalFooterId},ref:"footer"},[l])}var u=a("div",{staticClass:"modal-content",class:this.contentClass,attrs:{id:this.modalContentId,tabindex:"-1"},ref:"content"},[t,r,o]),d=a(),p=a();this.isVisible&&!this.noEnforceFocus&&(d=a("span",{attrs:{tabindex:"0"},ref:"top-trap"}),p=a("span",{attrs:{tabindex:"0"},ref:"bottom-trap"}));var f=a("div",{staticClass:"modal-dialog",class:this.dialogClasses,on:{mousedown:this.onDialogMousedown},ref:"dialog"},[d,u,p]),m=a("div",{staticClass:"modal",class:this.modalClasses,style:this.modalStyles,attrs:this.computedModalAttrs,on:{keydown:this.onEsc,click:this.onClickOut},directives:[{name:"show",value:this.isVisible}],ref:"modal"},[f]);m=a("transition",{props:{enterClass:"",enterToClass:"",enterActiveClass:"",leaveClass:"",leaveActiveClass:"",leaveToClass:""},on:{beforeEnter:this.onBeforeEnter,enter:this.onEnter,afterEnter:this.onAfterEnter,beforeLeave:this.onBeforeLeave,leave:this.onLeave,afterLeave:this.onAfterLeave}},[m]);var z=a();return!this.hideBackdrop&&this.isVisible&&(z=a("div",{staticClass:"modal-backdrop",attrs:{id:this.modalBackdropId}},this.normalizeSlot(h.Rv))),z=a(P.N,{props:{noFade:this.noFade}},[z]),a("div",{style:this.modalOuterStyle,attrs:this.computedAttrs,key:"modal-outer-".concat(this[n.X$])},[m,z])}},render:function(a){return this.static?this.lazy&&this.isHidden?a():this.makeModal(a):this.isHidden?a():a(x,[this.makeModal(a)])}})},32450:(a,t,e)=>{e.d(t,{r:()=>f});var n=e(1915),i=e(69558),r=e(94689),o=e(12299),l=e(67040),c=e(20451),s=e(67347);function h(a,t){var e=Object.keys(a);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(a);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(a,t).enumerable}))),e.push.apply(e,n)}return e}function u(a){for(var t=1;t{e.d(t,{N:()=>h,O:()=>u});var n=e(1915),i=e(69558),r=e(94689),o=e(12299),l=e(20451);function c(a,t,e){return t in a?Object.defineProperty(a,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):a[t]=e,a}var s=function(a){return a="left"===a?"start":"right"===a?"end":a,"justify-content-".concat(a)},h=(0,l.y2)({align:(0,l.pi)(o.N0),cardHeader:(0,l.pi)(o.U5,!1),fill:(0,l.pi)(o.U5,!1),justified:(0,l.pi)(o.U5,!1),pills:(0,l.pi)(o.U5,!1),small:(0,l.pi)(o.U5,!1),tabs:(0,l.pi)(o.U5,!1),tag:(0,l.pi)(o.N0,"ul"),vertical:(0,l.pi)(o.U5,!1)},r.$P),u=(0,n.l7)({name:r.$P,functional:!0,props:h,render:function(a,t){var e,n=t.props,r=t.data,o=t.children,l=n.tabs,h=n.pills,u=n.vertical,d=n.align,p=n.cardHeader;return a(n.tag,(0,i.b)(r,{staticClass:"nav",class:(e={"nav-tabs":l,"nav-pills":h&&!l,"card-header-tabs":!u&&p&&l,"card-header-pills":!u&&p&&h&&!l,"flex-column":u,"nav-fill":!u&&n.fill,"nav-justified":!u&&n.justified},c(e,s(d),!u&&d),c(e,"small",n.small),e)}),o)}})},29852:(a,t,e)=>{e.d(t,{o:()=>d});var n=e(1915),i=e(69558),r=e(94689),o=e(67040),l=e(20451),c=e(29027);function s(a,t,e){return t in a?Object.defineProperty(a,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):a[t]=e,a}var h=function(a){return a="left"===a?"start":"right"===a?"end":a,"justify-content-".concat(a)},u=(0,l.y2)((0,o.ei)(c.N,["tag","fill","justified","align","small"]),r.LX),d=(0,n.l7)({name:r.LX,functional:!0,props:u,render:function(a,t){var e,n=t.props,r=t.data,o=t.children,l=n.align;return a(n.tag,(0,i.b)(r,{staticClass:"navbar-nav",class:(e={"nav-fill":n.fill,"nav-justified":n.justified},s(e,h(l),l),s(e,"small",n.small),e)}),o)}})},71603:(a,t,e)=>{e.d(t,{E:()=>p});var n=e(1915),i=e(94689),r=e(12299),o=e(79968),l=e(26410),c=e(33284),s=e(20451),h=e(18280);function u(a,t,e){return t in a?Object.defineProperty(a,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):a[t]=e,a}var d=(0,s.y2)({fixed:(0,s.pi)(r.N0),print:(0,s.pi)(r.U5,!1),sticky:(0,s.pi)(r.U5,!1),tag:(0,s.pi)(r.N0,"nav"),toggleable:(0,s.pi)(r.gL,!1),type:(0,s.pi)(r.N0,"light"),variant:(0,s.pi)(r.N0)},i.zD),p=(0,n.l7)({name:i.zD,mixins:[h.Z],provide:function(){var a=this;return{getBvNavbar:function(){return a}}},props:d,computed:{breakpointClass:function(){var a=this.toggleable,t=(0,o.le)()[0],e=null;return a&&(0,c.HD)(a)&&a!==t?e="navbar-expand-".concat(a):!1===a&&(e="navbar-expand"),e}},render:function(a){var t,e=this.tag,n=this.type,i=this.variant,r=this.fixed;return a(e,{staticClass:"navbar",class:[(t={"d-print":this.print,"sticky-top":this.sticky},u(t,"navbar-".concat(n),n),u(t,"bg-".concat(i),i),u(t,"fixed-".concat(r),r),t),this.breakpointClass],attrs:{role:(0,l.YR)(e,"nav")?null:"navigation"}},[this.normalizeSlot()])}})},66126:(a,t,e)=>{e.d(t,{X:()=>b});var n=e(1915),i=e(94689),r=e(63294),o=e(12299),l=e(90494),c=e(93954),s=e(18280),h=e(20451),u=e(1759),d=e(17100);function p(a,t){var e=Object.keys(a);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(a);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(a,t).enumerable}))),e.push.apply(e,n)}return e}function v(a){for(var t=1;t=0&&t<=1})),overlayTag:(0,h.pi)(o.N0,"div"),rounded:(0,h.pi)(o.gL,!1),show:(0,h.pi)(o.U5,!1),spinnerSmall:(0,h.pi)(o.U5,!1),spinnerType:(0,h.pi)(o.N0,"border"),spinnerVariant:(0,h.pi)(o.N0),variant:(0,h.pi)(o.N0,"light"),wrapTag:(0,h.pi)(o.N0,"div"),zIndex:(0,h.pi)(o.fE,10)},i.dk),b=(0,n.l7)({name:i.dk,mixins:[s.Z],props:z,computed:{computedRounded:function(){var a=this.rounded;return!0===a||""===a?"rounded":a?"rounded-".concat(a):""},computedVariant:function(){var a=this.variant;return a&&!this.bgColor?"bg-".concat(a):""},slotScope:function(){return{spinnerType:this.spinnerType||null,spinnerVariant:this.spinnerVariant||null,spinnerSmall:this.spinnerSmall}}},methods:{defaultOverlayFn:function(a){var t=a.spinnerType,e=a.spinnerVariant,n=a.spinnerSmall;return this.$createElement(u.X,{props:{type:t,variant:e,small:n}})}},render:function(a){var t=this,e=this.show,n=this.fixed,i=this.noFade,o=this.noWrap,c=this.slotScope,s=a();if(e){var h=a("div",{staticClass:"position-absolute",class:[this.computedVariant,this.computedRounded],style:v(v({},m),{},{opacity:this.opacity,backgroundColor:this.bgColor||null,backdropFilter:this.blur?"blur(".concat(this.blur,")"):null})}),u=a("div",{staticClass:"position-absolute",style:this.noCenter?v({},m):{top:"50%",left:"50%",transform:"translateX(-50%) translateY(-50%)"}},[this.normalizeSlot(l.ek,c)||this.defaultOverlayFn(c)]);s=a(this.overlayTag,{staticClass:"b-overlay",class:{"position-absolute":!o||o&&!n,"position-fixed":o&&n},style:v(v({},m),{},{zIndex:this.zIndex||10}),on:{click:function(a){return t.$emit(r.PZ,a)}},key:"overlay"},[h,u])}return s=a(d.N,{props:{noFade:i,appear:!0},on:{"after-enter":function(){return t.$emit(r.AS)},"after-leave":function(){return t.$emit(r.v6)}}},[s]),o?s:a(this.wrapTag,{staticClass:"b-overlay-wrap position-relative",attrs:{"aria-busy":e?"true":null}},o?[s]:[this.normalizeSlot(),s])}})},10962:(a,t,e)=>{e.d(t,{c:()=>H});var n=e(1915),i=e(94689),r=e(63294),o=e(12299),l=e(37130),c=e(26410),s=e(33284),h=e(21578),u=e(93954),d=e(67040),p=e(20451),v=e(29878);function f(a,t){var e=Object.keys(a);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(a);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(a,t).enumerable}))),e.push.apply(e,n)}return e}function m(a){for(var t=1;ta.numberOfPages)&&(this.currentPage=1),this.localNumberOfPages=a.numberOfPages}},created:function(){var a=this;this.localNumberOfPages=this.numberOfPages;var t=(0,u.Z3)(this[v.EQ],0);t>0?this.currentPage=t:this.$nextTick((function(){a.currentPage=0}))},methods:{onClick:function(a,t){var e=this;if(t!==this.currentPage){var n=a.target,i=new l.n(r.M$,{cancelable:!0,vueTarget:this,target:n});this.$emit(i.type,i,t),i.defaultPrevented||(this.currentPage=t,this.$emit(r.z2,this.currentPage),this.$nextTick((function(){(0,c.pn)(n)&&e.$el.contains(n)?(0,c.KS)(n):e.focusCurrent()})))}},makePage:function(a){return a},linkProps:function(){return{}}}})},63929:(a,t,e)=>{e.d(t,{c:()=>s});var n=e(1915),i=e(94689),r=e(40960),o=e(33284),l=e(91858),c=(0,n.l7)({name:i.tU,extends:l.y,computed:{templateType:function(){return"popover"}},methods:{renderTemplate:function(a){var t=this.title,e=this.content,n=(0,o.mf)(t)?t({}):t,i=(0,o.mf)(e)?e({}):e,r=this.html&&!(0,o.mf)(t)?{innerHTML:t}:{},l=this.html&&!(0,o.mf)(e)?{innerHTML:e}:{};return a("div",{staticClass:"popover b-popover",class:this.templateClasses,attrs:this.templateAttributes,on:this.templateListeners},[a("div",{staticClass:"arrow",ref:"arrow"}),(0,o.Jp)(n)||""===n?a():a("h3",{staticClass:"popover-header",domProps:r},[n]),(0,o.Jp)(i)||""===i?a():a("div",{staticClass:"popover-body",domProps:l},[i])])}}}),s=(0,n.l7)({name:i.wO,extends:r.j,computed:{templateType:function(){return"popover"}},methods:{getTemplate:function(){return c}}})},53862:(a,t,e)=>{e.d(t,{x:()=>m});var n=e(1915),i=e(94689),r=e(63294),o=e(12299),l=e(90494),c=e(20451),s=e(18365),h=e(63929),u=e(67040);function d(a,t){var e=Object.keys(a);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(a);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(a,t).enumerable}))),e.push.apply(e,n)}return e}function p(a){for(var t=1;t{e.d(t,{N:()=>p,Q:()=>v});var n=e(1915),i=e(94689),r=e(12299),o=e(18735),l=e(33284),c=e(21578),s=e(93954),h=e(20451),u=e(46595),d=e(18280),p=(0,h.y2)({animated:(0,h.pi)(r.U5,null),label:(0,h.pi)(r.N0),labelHtml:(0,h.pi)(r.N0),max:(0,h.pi)(r.fE,null),precision:(0,h.pi)(r.fE,null),showProgress:(0,h.pi)(r.U5,null),showValue:(0,h.pi)(r.U5,null),striped:(0,h.pi)(r.U5,null),value:(0,h.pi)(r.fE,0),variant:(0,h.pi)(r.N0)},i.M3),v=(0,n.l7)({name:i.M3,mixins:[d.Z],inject:{getBvProgress:{default:function(){return function(){return{}}}}},props:p,computed:{bvProgress:function(){return this.getBvProgress()},progressBarClasses:function(){var a=this.computedAnimated,t=this.computedVariant;return[t?"bg-".concat(t):"",this.computedStriped||a?"progress-bar-striped":"",a?"progress-bar-animated":""]},progressBarStyles:function(){return{width:this.computedValue/this.computedMax*100+"%"}},computedValue:function(){return(0,s.f_)(this.value,0)},computedMax:function(){var a=(0,s.f_)(this.max)||(0,s.f_)(this.bvProgress.max,0);return a>0?a:100},computedPrecision:function(){return(0,c.nP)((0,s.Z3)(this.precision,(0,s.Z3)(this.bvProgress.precision,0)),0)},computedProgress:function(){var a=this.computedPrecision,t=(0,c.Fq)(10,a);return(0,s.FH)(100*t*this.computedValue/this.computedMax/t,a)},computedVariant:function(){return this.variant||this.bvProgress.variant},computedStriped:function(){return(0,l.jn)(this.striped)?this.striped:this.bvProgress.striped||!1},computedAnimated:function(){return(0,l.jn)(this.animated)?this.animated:this.bvProgress.animated||!1},computedShowProgress:function(){return(0,l.jn)(this.showProgress)?this.showProgress:this.bvProgress.showProgress||!1},computedShowValue:function(){return(0,l.jn)(this.showValue)?this.showValue:this.bvProgress.showValue||!1}},render:function(a){var t,e=this.label,n=this.labelHtml,i=this.computedValue,r=this.computedPrecision,l={};return this.hasNormalizedSlot()?t=this.normalizeSlot():e||n?l=(0,o.U)(n,e):this.computedShowProgress?t=this.computedProgress:this.computedShowValue&&(t=(0,s.FH)(i,r)),a("div",{staticClass:"progress-bar",class:this.progressBarClasses,style:this.progressBarStyles,attrs:{role:"progressbar","aria-valuemin":"0","aria-valuemax":(0,u.BB)(this.computedMax),"aria-valuenow":(0,s.FH)(i,r)},domProps:l},t)}})},45752:(a,t,e)=>{e.d(t,{D:()=>f});var n=e(1915),i=e(94689),r=e(12299),o=e(67040),l=e(20451),c=e(18280),s=e(22981);function h(a,t){var e=Object.keys(a);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(a);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(a,t).enumerable}))),e.push.apply(e,n)}return e}function u(a){for(var t=1;t{e.d(t,{X:()=>d});var n=e(1915),i=e(69558),r=e(94689),o=e(12299),l=e(90494),c=e(72345),s=e(20451);function h(a,t,e){return t in a?Object.defineProperty(a,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):a[t]=e,a}var u=(0,s.y2)({label:(0,s.pi)(o.N0),role:(0,s.pi)(o.N0,"status"),small:(0,s.pi)(o.U5,!1),tag:(0,s.pi)(o.N0,"span"),type:(0,s.pi)(o.N0,"border"),variant:(0,s.pi)(o.N0)},r.$T),d=(0,n.l7)({name:r.$T,functional:!0,props:u,render:function(a,t){var e,n=t.props,r=t.data,o=t.slots,s=t.scopedSlots,u=o(),d=s||{},p=(0,c.O)(l.gN,{},d,u)||n.label;return p&&(p=a("span",{staticClass:"sr-only"},p)),a(n.tag,(0,i.b)(r,{attrs:{role:p?n.role||"status":null,"aria-hidden":p?null:"true"},class:(e={},h(e,"spinner-".concat(n.type),n.type),h(e,"spinner-".concat(n.type,"-sm"),n.small),h(e,"text-".concat(n.variant),n.variant),e)}),[p||a()])}})},62581:(a,t,e)=>{function n(a,t){var e=Object.keys(a);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(a);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(a,t).enumerable}))),e.push.apply(e,n)}return e}function i(a){for(var t=1;tl,LW:()=>o,ZQ:()=>s,Zf:()=>c,hl:()=>h});var o="_cellVariants",l="_rowVariant",c="_showDetails",s=[o,l,c].reduce((function(a,t){return i(i({},a),{},r({},t,!0))}),{}),h=["a","a *","button","button *","input:not(.disabled):not([disabled])","select:not(.disabled):not([disabled])","textarea:not(.disabled):not([disabled])",'[role="link"]','[role="link"] *','[role="button"]','[role="button"] *',"[tabindex]:not(.disabled):not([disabled])"].join(",")},23746:(a,t,e)=>{e.d(t,{W:()=>o});var n=e(26410),i=e(62581),r=["TD","TH","TR"],o=function(a){if(!a||!a.target)return!1;var t=a.target;if(t.disabled||-1!==r.indexOf(t.tagName))return!1;if((0,n.oq)(".dropdown-menu",t))return!0;var e="LABEL"===t.tagName?t:(0,n.oq)("label",t);if(e){var o=(0,n.UK)(e,"for"),l=o?(0,n.FO)(o):(0,n.Ys)("input, select, textarea",e);if(l&&!l.disabled)return!0}return(0,n.wB)(t,i.hl)}},49682:(a,t,e)=>{e.d(t,{F:()=>s,N:()=>c});var n=e(1915),i=e(12299),r=e(90494),o=e(18735),l=e(20451),c={caption:(0,l.pi)(i.N0),captionHtml:(0,l.pi)(i.N0)},s=(0,n.l7)({props:c,computed:{captionId:function(){return this.isStacked?this.safeId("_caption_"):null}},methods:{renderCaption:function(){var a=this.caption,t=this.captionHtml,e=this.$createElement,n=e(),i=this.hasNormalizedSlot(r.Hm);return(i||a||t)&&(n=e("caption",{attrs:{id:this.captionId},domProps:i?{}:(0,o.U)(t,a),key:"caption",ref:"caption"},this.normalizeSlot(r.Hm))),n}}})},32341:(a,t,e)=>{e.d(t,{N:()=>r,Y:()=>o});var n=e(1915),i=e(90494),r={},o=(0,n.l7)({methods:{renderColgroup:function(){var a=this.computedFields,t=this.$createElement,e=t();return this.hasNormalizedSlot(i.hK)&&(e=t("colgroup",{key:"colgroup"},[this.normalizeSlot(i.hK,{columns:a.length,fields:a})])),e}}})},23249:(a,t,e)=>{e.d(t,{Kw:()=>I,NQ:()=>C});var n=e(1915),i=e(63294),r=e(12299),o=e(93319),l=e(33284),c=e(3058),s=e(21578),h=e(54602),u=e(93954),d=e(67040),p=e(20451),v=e(10992),f=e(68265),m=e(46595),z=e(62581),b=function(a,t){var e=null;return(0,l.HD)(t)?e={key:a,label:t}:(0,l.mf)(t)?e={key:a,formatter:t}:(0,l.Kn)(t)?(e=(0,d.d9)(t),e.key=e.key||a):!1!==t&&(e={key:a}),e},g=function(a,t){var e=[];if((0,l.kJ)(a)&&a.filter(f.y).forEach((function(a){if((0,l.HD)(a))e.push({key:a,label:(0,m.fl)(a)});else if((0,l.Kn)(a)&&a.key&&(0,l.HD)(a.key))e.push((0,d.d9)(a));else if((0,l.Kn)(a)&&1===(0,d.XP)(a).length){var t=(0,d.XP)(a)[0],n=b(t,a[t]);n&&e.push(n)}})),0===e.length&&(0,l.kJ)(t)&&t.length>0){var n=t[0];(0,d.XP)(n).forEach((function(a){z.ZQ[a]||e.push({key:a,label:(0,m.fl)(a)})}))}var i={};return e.filter((function(a){return!i[a.key]&&(i[a.key]=!0,a.label=(0,l.HD)(a.label)?a.label:(0,m.fl)(a.key),!0)}))};function M(a,t){var e=Object.keys(a);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(a);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(a,t).enumerable}))),e.push.apply(e,n)}return e}function y(a){for(var t=1;t{e.d(t,{E:()=>c,N:()=>l});var n=e(1915),i=e(12299),r=e(20451);function o(a,t,e){return t in a?Object.defineProperty(a,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):a[t]=e,a}var l={stacked:(0,r.pi)(i.gL,!1)},c=(0,n.l7)({props:l,computed:{isStacked:function(){var a=this.stacked;return""===a||a},isStackedAlways:function(){return!0===this.isStacked},stackedTableClasses:function(){var a=this.isStackedAlways;return o({"b-table-stacked":a},"b-table-stacked-".concat(this.stacked),!a&&this.isStacked)}}})},57176:(a,t,e)=>{e.d(t,{N:()=>v,Q:()=>f});var n=e(1915),i=e(12299),r=e(68265),o=e(33284),l=e(20451),c=e(10992),s=e(46595),h=e(28492);function u(a,t){var e=Object.keys(a);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(a);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(a,t).enumerable}))),e.push.apply(e,n)}return e}function d(a){for(var t=1;t0&&!o,[r,{"table-striped":this.striped,"table-hover":t,"table-dark":this.dark,"table-bordered":this.bordered,"table-borderless":this.borderless,"table-sm":this.small,border:this.outlined,"b-table-fixed":this.fixed,"b-table-caption-top":this.captionTop,"b-table-no-border-collapse":this.noBorderCollapse},e?"".concat(this.dark?"bg":"table","-").concat(e):"",i,n]},tableAttrs:function(){var a=(0,c.n)(this),t=a.computedItems,e=a.filteredItems,n=a.computedFields,i=a.selectableTableAttrs,r=a.computedBusy,o=this.isTableSimple?{}:{"aria-busy":(0,s.BB)(r),"aria-colcount":(0,s.BB)(n.length),"aria-describedby":this.bvAttrs["aria-describedby"]||this.$refs.caption?this.captionId:null},l=t&&e&&e.length>t.length?(0,s.BB)(e.length):null;return d(d(d({"aria-rowcount":l},this.bvAttrs),{},{id:this.safeId(),role:this.bvAttrs.role||"table"},o),i)}},render:function(a){var t=(0,c.n)(this),e=t.wrapperClasses,n=t.renderCaption,i=t.renderColgroup,o=t.renderThead,l=t.renderTbody,s=t.renderTfoot,h=[];this.isTableSimple?h.push(this.normalizeSlot()):(h.push(n?n():null),h.push(i?i():null),h.push(o?o():null),h.push(l?l():null),h.push(s?s():null));var u=a("table",{staticClass:"table b-table",class:this.tableClasses,attrs:this.tableAttrs,key:"b-table"},h.filter(r.y));return e.length>0?a("div",{class:e,style:this.wrapperStyles,key:"wrap"},[u]):u}})},55739:(a,t,e)=>{e.d(t,{N:()=>N,M:()=>$});var n=e(1915),i=e(63294),r=e(63663),o=e(12299),l=e(11572),c=e(26410),s=e(10992),h=e(28415),u=e(67040),d=e(20451),p=e(80560),v=e(23746),f=e(9596),m=e(90494),z=e(93319),b=e(37668),g=e(33284),M=e(46595),y=e(92095),V=e(66456),H=e(69919),A=e(62581);function B(a,t){var e=Object.keys(a);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(a);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(a,t).enumerable}))),e.push.apply(e,n)}return e}function O(a){for(var t=1;ta.length)&&(t=a.length);for(var e=0,n=new Array(t);e0&&(S=String((h-1)*u+t+1));var P=(0,M.BB)((0,b.U)(a,c))||null,F=P||(0,M.BB)(t),k=P?this.safeId("_row_".concat(P)):null,j=(0,s.n)(this).selectableRowClasses?this.selectableRowClasses(t):{},T=(0,s.n)(this).selectableRowAttrs?this.selectableRowAttrs(t):{},D=(0,g.mf)(d)?d(a,"row"):d,E=(0,g.mf)(p)?p(a,"row"):p;if(C.push(f(y.G,w({class:[D,j,H?"b-table-has-details":""],props:{variant:a[A.EE]||null},attrs:O(O({id:k},E),{},{tabindex:B?"0":null,"data-pk":P||null,"aria-details":I,"aria-owns":I,"aria-rowindex":S},T),on:{mouseenter:this.rowHovered,mouseleave:this.rowUnhovered},key:"__b-table-row-".concat(F,"__"),ref:"item-rows"},n.TF,!0),L)),H){var x={item:a,index:t,fields:o,toggleDetails:this.toggleDetailsFactory(z,a)};(0,s.n)(this).supportsSelectableRows&&(x.rowSelected=this.isRowSelected(t),x.selectRow=function(){return e.selectRow(t)},x.unselectRow=function(){return e.unselectRow(t)});var N=f(V.S,{props:{colspan:o.length},class:this.detailsTdClass},[this.normalizeSlot(m.xI,x)]);l&&C.push(f("tr",{staticClass:"d-none",attrs:{"aria-hidden":"true",role:"presentation"},key:"__b-table-details-stripe__".concat(F)}));var $=(0,g.mf)(this.tbodyTrClass)?this.tbodyTrClass(a,m.xI):this.tbodyTrClass,R=(0,g.mf)(this.tbodyTrAttr)?this.tbodyTrAttr(a,m.xI):this.tbodyTrAttr;C.push(f(y.G,{staticClass:"b-table-details",class:[$],props:{variant:a[A.EE]||null},attrs:O(O({},R),{},{id:I,tabindex:"-1"}),key:"__b-table-details__".concat(F)},[N]))}else z&&(C.push(f()),l&&C.push(f()));return C}}});function T(a,t){var e=Object.keys(a);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(a);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(a,t).enumerable}))),e.push.apply(e,n)}return e}function D(a){for(var t=1;t0&&e&&e.length>0?(0,l.Dp)(t.children).filter((function(a){return(0,l.kI)(e,a)})):[]},getTbodyTrIndex:function(a){if(!(0,c.kK)(a))return-1;var t="TR"===a.tagName?a:(0,c.oq)("tr",a,!0);return t?this.getTbodyTrs().indexOf(t):-1},emitTbodyRowEvent:function(a,t){if(a&&this.hasListener(a)&&t&&t.target){var e=this.getTbodyTrIndex(t.target);if(e>-1){var n=this.computedItems[e];this.$emit(a,n,e,t)}}},tbodyRowEventStopped:function(a){return this.stopIfBusy&&this.stopIfBusy(a)},onTbodyRowKeydown:function(a){var t=a.target,e=a.keyCode;if(!this.tbodyRowEventStopped(a)&&"TR"===t.tagName&&(0,c.H9)(t)&&0===t.tabIndex)if((0,l.kI)([r.K2,r.m5],e))(0,h.p7)(a),this.onTBodyRowClicked(a);else if((0,l.kI)([r.XS,r.RV,r.QI,r.bt],e)){var n=this.getTbodyTrIndex(t);if(n>-1){(0,h.p7)(a);var i=this.getTbodyTrs(),o=a.shiftKey;e===r.QI||o&&e===r.XS?(0,c.KS)(i[0]):e===r.bt||o&&e===r.RV?(0,c.KS)(i[i.length-1]):e===r.XS&&n>0?(0,c.KS)(i[n-1]):e===r.RV&&n{e.d(t,{L:()=>s,N:()=>c});var n=e(1915),i=e(12299),r=e(90494),o=e(20451),l=e(10838),c={footClone:(0,o.pi)(i.U5,!1),footRowVariant:(0,o.pi)(i.N0),footVariant:(0,o.pi)(i.N0),tfootClass:(0,o.pi)(i.wA),tfootTrClass:(0,o.pi)(i.wA)},s=(0,n.l7)({props:c,methods:{renderTFootCustom:function(){var a=this.$createElement;return this.hasNormalizedSlot(r.ak)?a(l.A,{class:this.tfootClass||null,props:{footVariant:this.footVariant||this.headVariant||null},key:"bv-tfoot-custom"},this.normalizeSlot(r.ak,{items:this.computedItems.slice(),fields:this.computedFields.slice(),columns:this.computedFields.length})):a()},renderTfoot:function(){return this.footClone?this.renderThead(!0):this.renderTFootCustom()}}})},64120:(a,t,e)=>{e.d(t,{G:()=>k,N:()=>F});var n=e(1915),i=e(63294),r=e(63663),o=e(12299),l=e(90494),c=e(28415),s=e(18735),h=e(68265),u=e(33284),d=e(84941),p=e(20451),v=e(10992),f=e(46595),m=e(13944),z=e(10838),b=e(92095),g=e(69919),M=e(23746),y=e(9596);function V(a){return O(a)||B(a)||A(a)||H()}function H(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function A(a,t){if(a){if("string"===typeof a)return w(a,t);var e=Object.prototype.toString.call(a).slice(8,-1);return"Object"===e&&a.constructor&&(e=a.constructor.name),"Map"===e||"Set"===e?Array.from(a):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?w(a,t):void 0}}function B(a){if("undefined"!==typeof Symbol&&null!=a[Symbol.iterator]||null!=a["@@iterator"])return Array.from(a)}function O(a){if(Array.isArray(a))return w(a)}function w(a,t){(null==t||t>a.length)&&(t=a.length);for(var e=0,n=new Array(t);e0&&void 0!==arguments[0]&&arguments[0],e=(0,v.n)(this),n=e.computedFields,o=e.isSortable,c=e.isSelectable,p=e.headVariant,M=e.footVariant,y=e.headRowVariant,H=e.footRowVariant,A=this.$createElement;if(this.isStackedAlways||0===n.length)return A();var B=o||this.hasListener(i._Z),O=c?this.selectAllRows:d.Z,w=c?this.clearSelected:d.Z,C=function(e,n){var i=e.label,l=e.labelHtml,c=e.variant,u=e.stickyColumn,d=e.key,p=null;e.label.trim()||e.headerTitle||(p=(0,f.fl)(e.key));var v={};B&&(v.click=function(n){a.headClicked(n,e,t)},v.keydown=function(n){var i=n.keyCode;i!==r.K2&&i!==r.m5||a.headClicked(n,e,t)});var m=o?a.sortTheadThAttrs(d,e,t):{},z=o?a.sortTheadThClasses(d,e,t):null,b=o?a.sortTheadThLabel(d,e,t):null,M={class:[{"position-relative":b},a.fieldClasses(e),z],props:{variant:c,stickyColumn:u},style:e.thStyle||{},attrs:I(I({tabindex:B&&e.sortable?"0":null,abbr:e.headerAbbr||null,title:e.headerTitle||null,"aria-colindex":n+1,"aria-label":p},a.getThValues(null,d,e.thAttr,t?"foot":"head",{})),m),on:v,key:d},y=[S(d),S(d.toLowerCase()),S()];t&&(y=[P(d),P(d.toLowerCase()),P()].concat(V(y)));var H={label:i,column:d,field:e,isFoot:t,selectAllRows:O,clearSelected:w},C=a.normalizeSlot(y,H)||A("div",{domProps:(0,s.U)(l,i)}),L=b?A("span",{staticClass:"sr-only"}," (".concat(b,")")):null;return A(g.e,M,[C,L].filter(h.y))},L=n.map(C).filter(h.y),F=[];if(t)F.push(A(b.G,{class:this.tfootTrClass,props:{variant:(0,u.Jp)(H)?y:H}},L));else{var k={columns:n.length,fields:n,selectAllRows:O,clearSelected:w};F.push(this.normalizeSlot(l.RK,k)||A()),F.push(A(b.G,{class:this.theadTrClass,props:{variant:y}},L))}return A(t?z.A:m.E,{class:(t?this.tfootClass:this.theadClass)||null,props:t?{footVariant:M||p||null}:{headVariant:p||null},key:t?"bv-tfoot":"bv-thead"},F)}}})},9596:(a,t,e)=>{e.d(t,{d:()=>i});var n=e(26410),i=function(){var a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document,t=(0,n.hu)();return!!(t&&""!==t.toString().trim()&&t.containsNode&&(0,n.kK)(a))&&t.containsNode(a,!0)}},16521:(a,t,e)=>{e.d(t,{h:()=>Ra});var n=e(1915),i=e(94689),r=e(67040),o=e(20451),l=e(28492),c=e(45253),s=e(73727),h=e(18280),u=e(90494),d=e(33284),p=e(92095),v={},f=(0,n.l7)({props:v,methods:{renderBottomRow:function(){var a=this.computedFields,t=this.stacked,e=this.tbodyTrClass,n=this.tbodyTrAttr,i=this.$createElement;return this.hasNormalizedSlot(u.x)&&!0!==t&&""!==t?i(p.G,{staticClass:"b-table-bottom-row",class:[(0,d.mf)(e)?e(null,"row-bottom"):e],attrs:(0,d.mf)(n)?n(null,"row-bottom"):n,key:"b-bottom-row"},this.normalizeSlot(u.x,{columns:a.length,fields:a})):i()}}}),m=e(63294),z=e(12299),b=e(28415),g=e(66456);function M(a,t,e){return t in a?Object.defineProperty(a,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):a[t]=e,a}var y="busy",V=m.j7+y,H=M({},y,(0,o.pi)(z.U5,!1)),A=(0,n.l7)({props:H,data:function(){return{localBusy:!1}},computed:{computedBusy:function(){return this[y]||this.localBusy}},watch:{localBusy:function(a,t){a!==t&&this.$emit(V,a)}},methods:{stopIfBusy:function(a){return!!this.computedBusy&&((0,b.p7)(a),!0)},renderBusy:function(){var a=this.tbodyTrClass,t=this.tbodyTrAttr,e=this.$createElement;return this.computedBusy&&this.hasNormalizedSlot(u.W8)?e(p.G,{staticClass:"b-table-busy-slot",class:[(0,d.mf)(a)?a(null,u.W8):a],attrs:(0,d.mf)(t)?t(null,u.W8):t,key:"table-busy-slot"},[e(g.S,{props:{colspan:this.computedFields.length||null}},[this.normalizeSlot(u.W8)])]):null}}}),B=e(49682),O=e(32341),w=e(18735),C=e(10992),I={emptyFilteredHtml:(0,o.pi)(z.N0),emptyFilteredText:(0,o.pi)(z.N0,"There are no records matching your request"),emptyHtml:(0,o.pi)(z.N0),emptyText:(0,o.pi)(z.N0,"There are no records to show"),showEmpty:(0,o.pi)(z.U5,!1)},L=(0,n.l7)({props:I,methods:{renderEmpty:function(){var a=(0,C.n)(this),t=a.computedItems,e=a.computedBusy,n=this.$createElement,i=n();if(this.showEmpty&&(!t||0===t.length)&&(!e||!this.hasNormalizedSlot(u.W8))){var r=this.computedFields,o=this.isFiltered,l=this.emptyText,c=this.emptyHtml,s=this.emptyFilteredText,h=this.emptyFilteredHtml,v=this.tbodyTrClass,f=this.tbodyTrAttr;i=this.normalizeSlot(o?u.kx:u.ZJ,{emptyFilteredHtml:h,emptyFilteredText:s,emptyHtml:c,emptyText:l,fields:r,items:t}),i||(i=n("div",{class:["text-center","my-2"],domProps:o?(0,w.U)(h,s):(0,w.U)(c,l)})),i=n(g.S,{props:{colspan:r.length||null}},[n("div",{attrs:{role:"alert","aria-live":"polite"}},[i])]),i=n(p.G,{staticClass:"b-table-empty-row",class:[(0,d.mf)(v)?v(null,"row-empty"):v],attrs:(0,d.mf)(f)?f(null,"row-empty"):f,key:o?"b-empty-filtered-row":"b-empty-row"},[i])}return i}}}),S=e(30824),P=e(11572),F=e(30158),k=e(68265),j=e(3058),T=e(93954),D=e(46595),E=e(77147),x=function a(t){return(0,d.Jp)(t)?"":(0,d.Kn)(t)&&!(0,d.J_)(t)?(0,r.XP)(t).sort().map((function(e){return a(t[e])})).filter((function(a){return!!a})).join(" "):(0,D.BB)(t)},N=e(62581),$=function(a,t,e){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=(0,r.XP)(n).reduce((function(t,e){var i=n[e],r=i.filterByFormatted,o=(0,d.mf)(r)?r:r?i.formatter:null;return(0,d.mf)(o)&&(t[e]=o(a[e],e,a)),t}),(0,r.d9)(a)),o=(0,r.XP)(i).filter((function(a){return!N.ZQ[a]&&!((0,d.kJ)(t)&&t.length>0&&(0,P.kI)(t,a))&&!((0,d.kJ)(e)&&e.length>0&&!(0,P.kI)(e,a))}));return(0,r.ei)(i,o)},R=function(a,t,e,n){return(0,d.Kn)(a)?x($(a,t,e,n)):""};function _(a){return W(a)||q(a)||G(a)||U()}function U(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function G(a,t){if(a){if("string"===typeof a)return K(a,t);var e=Object.prototype.toString.call(a).slice(8,-1);return"Object"===e&&a.constructor&&(e=a.constructor.name),"Map"===e||"Set"===e?Array.from(a):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?K(a,t):void 0}}function q(a){if("undefined"!==typeof Symbol&&null!=a[Symbol.iterator]||null!=a["@@iterator"])return Array.from(a)}function W(a){if(Array.isArray(a))return K(a)}function K(a,t){(null==t||t>a.length)&&(t=a.length);for(var e=0,n=new Array(t);e0&&(0,E.ZK)(J,i.QM),a},localFiltering:function(){return!this.hasProvider||!!this.noProviderFiltering},filteredCheck:function(){var a=this.filteredItems,t=this.localItems,e=this.localFilter;return{filteredItems:a,localItems:t,localFilter:e}},localFilterFn:function(){var a=this.filterFunction;return(0,o.lo)(a)?a:null},filteredItems:function(){var a=this.localItems,t=this.localFilter,e=this.localFiltering?this.filterFnFactory(this.localFilterFn,t)||this.defaultFilterFnFactory(t):null;return e&&a.length>0?a.filter(e):a}},watch:{computedFilterDebounce:function(a){!a&&this.$_filterTimer&&(this.clearFilterTimer(),this.localFilter=this.filterSanitize(this.filter))},filter:{deep:!0,handler:function(a){var t=this,e=this.computedFilterDebounce;this.clearFilterTimer(),e&&e>0?this.$_filterTimer=setTimeout((function(){t.localFilter=t.filterSanitize(a)}),e):this.localFilter=this.filterSanitize(a)}},filteredCheck:function(a){var t=a.filteredItems,e=a.localFilter,n=!1;e?(0,j.W)(e,[])||(0,j.W)(e,{})?n=!1:e&&(n=!0):n=!1,n&&this.$emit(m.Uf,t,t.length),this.isFiltered=n},isFiltered:function(a,t){if(!1===a&&!0===t){var e=this.localItems;this.$emit(m.Uf,e,e.length)}}},created:function(){var a=this;this.$_filterTimer=null,this.$nextTick((function(){a.isFiltered=Boolean(a.localFilter)}))},beforeDestroy:function(){this.clearFilterTimer()},methods:{clearFilterTimer:function(){clearTimeout(this.$_filterTimer),this.$_filterTimer=null},filterSanitize:function(a){return!this.localFiltering||this.localFilterFn||(0,d.HD)(a)||(0,d.Kj)(a)?(0,F.X)(a):""},filterFnFactory:function(a,t){if(!a||!(0,d.mf)(a)||!t||(0,j.W)(t,[])||(0,j.W)(t,{}))return null;var e=function(e){return a(e,t)};return e},defaultFilterFnFactory:function(a){var t=this;if(!a||!(0,d.HD)(a)&&!(0,d.Kj)(a))return null;var e=a;if((0,d.HD)(e)){var n=(0,D.hr)(a).replace(S.Gt,"\\s+");e=new RegExp(".*".concat(n,".*"),"i")}var i=function(a){return e.lastIndex=0,e.test(R(a,t.computedFilterIgnored,t.computedFilterIncluded,t.computedFieldsObj))};return i}}}),Y=e(23249),Q=e(21578),aa={currentPage:(0,o.pi)(z.fE,1),perPage:(0,o.pi)(z.fE,0)},ta=(0,n.l7)({props:aa,computed:{localPaging:function(){return!this.hasProvider||!!this.noProviderPaging},paginatedItems:function(){var a=(0,C.n)(this),t=a.sortedItems,e=a.filteredItems,n=a.localItems,i=t||e||n||[],r=(0,Q.nP)((0,T.Z3)(this.currentPage,1),1),o=(0,Q.nP)((0,T.Z3)(this.perPage,0),0);return this.localPaging&&o&&(i=i.slice((r-1)*o,r*o)),i}}}),ea=e(98596),na=(0,b.J3)(i.QM,m.H9),ia=(0,b.gA)(i.QM,m.b5),ra={apiUrl:(0,o.pi)(z.N0),items:(0,o.pi)(z.Vh,[]),noProviderFiltering:(0,o.pi)(z.U5,!1),noProviderPaging:(0,o.pi)(z.U5,!1),noProviderSorting:(0,o.pi)(z.U5,!1)},oa=(0,n.l7)({mixins:[ea.E],props:ra,computed:{hasProvider:function(){return(0,d.mf)(this.items)},providerTriggerContext:function(){var a={apiUrl:this.apiUrl,filter:null,sortBy:null,sortDesc:null,perPage:null,currentPage:null};return this.noProviderFiltering||(a.filter=this.localFilter),this.noProviderSorting||(a.sortBy=this.localSortBy,a.sortDesc=this.localSortDesc),this.noProviderPaging||(a.perPage=this.perPage,a.currentPage=this.currentPage),(0,r.d9)(a)}},watch:{items:function(a){(this.hasProvider||(0,d.mf)(a))&&this.$nextTick(this._providerUpdate)},providerTriggerContext:function(a,t){(0,j.W)(a,t)||this.$nextTick(this._providerUpdate)}},mounted:function(){var a=this;!this.hasProvider||this.localItems&&0!==this.localItems.length||this._providerUpdate(),this.listenOnRoot(ia,(function(t){t!==a.id&&t!==a||a.refresh()}))},methods:{refresh:function(){var a=(0,C.n)(this),t=a.items,e=a.refresh,n=a.computedBusy;this.$off(m.H9,e),n?this.localBusy&&this.hasProvider&&this.$on(m.H9,e):(this.clearSelected(),this.hasProvider?this.$nextTick(this._providerUpdate):this.localItems=(0,d.kJ)(t)?t.slice():[])},_providerSetLocal:function(a){this.localItems=(0,d.kJ)(a)?a.slice():[],this.localBusy=!1,this.$emit(m.H9),this.id&&this.emitOnRoot(na,this.id)},_providerUpdate:function(){var a=this;this.hasProvider&&((0,C.n)(this).computedBusy?this.$nextTick(this.refresh):(this.localBusy=!0,this.$nextTick((function(){try{var t=a.items(a.context,a._providerSetLocal);(0,d.tI)(t)?t.then((function(t){a._providerSetLocal(t)})):(0,d.kJ)(t)?a._providerSetLocal(t):2!==a.items.length&&((0,E.ZK)("Provider function didn't request callback and did not return a promise or data.",i.QM),a.localBusy=!1)}catch(e){(0,E.ZK)("Provider function error [".concat(e.name,"] ").concat(e.message,"."),i.QM),a.localBusy=!1,a.$off(m.H9,a.refresh)}}))))}}});function la(a,t,e){return t in a?Object.defineProperty(a,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):a[t]=e,a}var ca,sa,ha=["range","multi","single"],ua="grid",da={noSelectOnClick:(0,o.pi)(z.U5,!1),selectMode:(0,o.pi)(z.N0,"multi",(function(a){return(0,P.kI)(ha,a)})),selectable:(0,o.pi)(z.U5,!1),selectedVariant:(0,o.pi)(z.N0,"active")},pa=(0,n.l7)({props:da,data:function(){return{selectedRows:[],selectedLastRow:-1}},computed:{isSelectable:function(){return this.selectable&&this.selectMode},hasSelectableRowClick:function(){return this.isSelectable&&!this.noSelectOnClick},supportsSelectableRows:function(){return!0},selectableHasSelection:function(){var a=this.selectedRows;return this.isSelectable&&a&&a.length>0&&a.some(k.y)},selectableIsMultiSelect:function(){return this.isSelectable&&(0,P.kI)(["range","multi"],this.selectMode)},selectableTableClasses:function(){var a,t=this.isSelectable;return a={"b-table-selectable":t},la(a,"b-table-select-".concat(this.selectMode),t),la(a,"b-table-selecting",this.selectableHasSelection),la(a,"b-table-selectable-no-click",t&&!this.hasSelectableRowClick),a},selectableTableAttrs:function(){if(!this.isSelectable)return{};var a=this.bvAttrs.role||ua;return{role:a,"aria-multiselectable":a===ua?(0,D.BB)(this.selectableIsMultiSelect):null}}},watch:{computedItems:function(a,t){var e=!1;if(this.isSelectable&&this.selectedRows.length>0){e=(0,d.kJ)(a)&&(0,d.kJ)(t)&&a.length===t.length;for(var n=0;e&&n=0&&a0&&(this.selectedLastClicked=-1,this.selectedRows=this.selectableIsMultiSelect?(0,P.Ri)(a,!0):[!0])},isRowSelected:function(a){return!(!(0,d.hj)(a)||!this.selectedRows[a])},clearSelected:function(){this.selectedLastClicked=-1,this.selectedRows=[]},selectableRowClasses:function(a){if(this.isSelectable&&this.isRowSelected(a)){var t=this.selectedVariant;return la({"b-table-row-selected":!0},"".concat(this.dark?"bg":"table","-").concat(t),t)}return{}},selectableRowAttrs:function(a){return{"aria-selected":this.isSelectable?this.isRowSelected(a)?"true":"false":null}},setSelectionHandlers:function(a){var t=a&&!this.noSelectOnClick?"$on":"$off";this[t](m.TY,this.selectionHandler),this[t](m.Uf,this.clearSelected),this[t](m._H,this.clearSelected)},selectionHandler:function(a,t,e){if(this.isSelectable&&!this.noSelectOnClick){var n=this.selectMode,i=this.selectedLastRow,r=this.selectedRows.slice(),o=!r[t];if("single"===n)r=[];else if("range"===n)if(i>-1&&e.shiftKey){for(var l=(0,Q.bS)(i,t);l<=(0,Q.nP)(i,t);l++)r[l]=!0;o=!0}else e.ctrlKey||e.metaKey||(r=[],o=!0),o&&(this.selectedLastRow=t);r[t]=o,this.selectedRows=r}else this.clearSelected()}}}),va=e(55912),fa=e(37668),ma=function(a){return(0,d.Jp)(a)?"":(0,d.kE)(a)?(0,T.f_)(a,a):a},za=function(a,t){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=e.sortBy,i=void 0===n?null:n,r=e.formatter,o=void 0===r?null:r,l=e.locale,c=void 0===l?void 0:l,s=e.localeOptions,h=void 0===s?{}:s,u=e.nullLast,p=void 0!==u&&u,v=(0,fa.U)(a,i,null),f=(0,fa.U)(t,i,null);return(0,d.mf)(o)&&(v=o(v,i,a),f=o(f,i,t)),v=ma(v),f=ma(f),(0,d.J_)(v)&&(0,d.J_)(f)||(0,d.hj)(v)&&(0,d.hj)(f)?vf?1:0:p&&""===v&&""!==f?1:p&&""!==v&&""===f?-1:x(v).localeCompare(x(f),c,h)};function ba(a,t){var e=Object.keys(a);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(a);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(a,t).enumerable}))),e.push.apply(e,n)}return e}function ga(a){for(var t=1;t{e.d(t,{N:()=>p,p:()=>v});var n=e(1915),i=e(94689),r=e(12299),o=e(20451),l=e(28492),c=e(76677),s=e(18280);function h(a,t){var e=Object.keys(a);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(a);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(a,t).enumerable}))),e.push.apply(e,n)}return e}function u(a){for(var t=1;t{e.d(t,{N:()=>g,S:()=>M});var n=e(1915),i=e(94689),r=e(12299),o=e(26410),l=e(33284),c=e(93954),s=e(20451),h=e(46595),u=e(28492),d=e(76677),p=e(18280);function v(a,t){var e=Object.keys(a);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(a);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(a,t).enumerable}))),e.push.apply(e,n)}return e}function f(a){for(var t=1;t0?a:null},b=function(a){return(0,l.Jp)(a)||z(a)>0},g=(0,s.y2)({colspan:(0,s.pi)(r.fE,null,b),rowspan:(0,s.pi)(r.fE,null,b),stackedHeading:(0,s.pi)(r.N0),stickyColumn:(0,s.pi)(r.U5,!1),variant:(0,s.pi)(r.N0)},i.Mf),M=(0,n.l7)({name:i.Mf,mixins:[u.D,d.o,p.Z],inject:{getBvTableTr:{default:function(){return function(){return{}}}}},inheritAttrs:!1,props:g,computed:{bvTableTr:function(){return this.getBvTableTr()},tag:function(){return"td"},inTbody:function(){return this.bvTableTr.inTbody},inThead:function(){return this.bvTableTr.inThead},inTfoot:function(){return this.bvTableTr.inTfoot},isDark:function(){return this.bvTableTr.isDark},isStacked:function(){return this.bvTableTr.isStacked},isStackedCell:function(){return this.inTbody&&this.isStacked},isResponsive:function(){return this.bvTableTr.isResponsive},isStickyHeader:function(){return this.bvTableTr.isStickyHeader},hasStickyHeader:function(){return this.bvTableTr.hasStickyHeader},isStickyColumn:function(){return!this.isStacked&&(this.isResponsive||this.hasStickyHeader)&&this.stickyColumn},rowVariant:function(){return this.bvTableTr.variant},headVariant:function(){return this.bvTableTr.headVariant},footVariant:function(){return this.bvTableTr.footVariant},tableVariant:function(){return this.bvTableTr.tableVariant},computedColspan:function(){return z(this.colspan)},computedRowspan:function(){return z(this.rowspan)},cellClasses:function(){var a=this.variant,t=this.headVariant,e=this.isStickyColumn;return(!a&&this.isStickyHeader&&!t||!a&&e&&this.inTfoot&&!this.footVariant||!a&&e&&this.inThead&&!t||!a&&e&&this.inTbody)&&(a=this.rowVariant||this.tableVariant||"b-table-default"),[a?"".concat(this.isDark?"bg":"table","-").concat(a):null,e?"b-table-sticky-column":null]},cellAttrs:function(){var a=this.stackedHeading,t=this.inThead||this.inTfoot,e=this.computedColspan,n=this.computedRowspan,i="cell",r=null;return t?(i="columnheader",r=e>0?"colspan":"col"):(0,o.YR)(this.tag,"th")&&(i="rowheader",r=n>0?"rowgroup":"row"),f(f({colspan:e,rowspan:n,role:i,scope:r},this.bvAttrs),{},{"data-label":this.isStackedCell&&!(0,l.Jp)(a)?(0,h.BB)(a):null})}},render:function(a){var t=[this.normalizeSlot()];return a(this.tag,{class:this.cellClasses,attrs:this.cellAttrs,on:this.bvListeners},[this.isStackedCell?a("div",[t]):t])}})},10838:(a,t,e)=>{e.d(t,{A:()=>v});var n=e(1915),i=e(94689),r=e(12299),o=e(20451),l=e(28492),c=e(76677),s=e(18280);function h(a,t){var e=Object.keys(a);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(a);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(a,t).enumerable}))),e.push.apply(e,n)}return e}function u(a){for(var t=1;t{e.d(t,{e:()=>c});var n=e(1915),i=e(94689),r=e(20451),o=e(66456),l=(0,r.y2)(o.N,i.$n),c=(0,n.l7)({name:i.$n,extends:o.S,props:l,computed:{tag:function(){return"th"}}})},13944:(a,t,e)=>{e.d(t,{E:()=>v});var n=e(1915),i=e(94689),r=e(12299),o=e(20451),l=e(28492),c=e(76677),s=e(18280);function h(a,t){var e=Object.keys(a);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(a);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(a,t).enumerable}))),e.push.apply(e,n)}return e}function u(a){for(var t=1;t{e.d(t,{G:()=>m});var n=e(1915),i=e(94689),r=e(12299),o=e(20451),l=e(28492),c=e(76677),s=e(18280);function h(a,t){var e=Object.keys(a);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(a);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(a,t).enumerable}))),e.push.apply(e,n)}return e}function u(a){for(var t=1;t{e.d(t,{L:()=>y});var n,i,r=e(1915),o=e(94689),l=e(63294),c=e(12299),s=e(90494),h=e(67040),u=e(20451),d=e(73727),p=e(18280),v=e(17100);function f(a,t){var e=Object.keys(a);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(a);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(a,t).enumerable}))),e.push.apply(e,n)}return e}function m(a){for(var t=1;t{e.d(t,{M:()=>$});var n,i=e(1915),r=e(94689),o=e(43935),l=e(63294),c=e(63663),s=e(12299),h=e(90494),u=e(11572),d=e(37130),p=e(26410),v=e(28415),f=e(68265),m=e(33284),z=e(3058),b=e(21578),g=e(54602),M=e(93954),y=e(67040),V=e(63078),H=e(20451),A=e(55912),B=e(73727),O=e(18280),w=e(67347),C=e(29027);function I(a,t){var e=Object.keys(a);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(a);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(a,t).enumerable}))),e.push.apply(e,n)}return e}function L(a){for(var t=1;t0&&void 0!==arguments[0])||arguments[0];if(this.$_observer&&this.$_observer.disconnect(),this.$_observer=null,t){var e=function(){a.$nextTick((function(){(0,p.bz)((function(){a.updateTabs()}))}))};this.$_observer=(0,V.t)(this.$refs.content,e,{childList:!0,subtree:!1,attributes:!0,attributeFilter:["id"]})}},getTabs:function(){var a=this.registeredTabs,t=[];if(o.Qg&&a.length>0){var e=a.map((function(a){return"#".concat(a.safeId())})).join(", ");t=(0,p.a8)(e,this.$el).map((function(a){return a.id})).filter(f.y)}return(0,A.X)(a,(function(a,e){return t.indexOf(a.safeId())-t.indexOf(e.safeId())}))},updateTabs:function(){var a=this.getTabs(),t=a.indexOf(a.slice().reverse().find((function(a){return a.localActive&&!a.disabled})));if(t<0){var e=this.currentTab;e>=a.length?t=a.indexOf(a.slice().reverse().find(D)):a[e]&&!a[e].disabled&&(t=e)}t<0&&(t=a.indexOf(a.find(D))),a.forEach((function(a,e){a.localActive=e===t})),this.tabs=a,this.currentTab=t},getButtonForTab:function(a){return(this.$refs.buttons||[]).find((function(t){return t.tab===a}))},updateButton:function(a){var t=this.getButtonForTab(a);t&&t.$forceUpdate&&t.$forceUpdate()},activateTab:function(a){var t=this.currentTab,e=this.tabs,n=!1;if(a){var i=e.indexOf(a);if(i!==t&&i>-1&&!a.disabled){var r=new d.n(l.ix,{cancelable:!0,vueTarget:this,componentId:this.safeId()});this.$emit(r.type,i,t,r),r.defaultPrevented||(this.currentTab=i,n=!0)}}return n||this[j]===t||this.$emit(T,t),n},deactivateTab:function(a){return!!a&&this.activateTab(this.tabs.filter((function(t){return t!==a})).find(D))},focusButton:function(a){var t=this;this.$nextTick((function(){(0,p.KS)(t.getButtonForTab(a))}))},emitTabClick:function(a,t){(0,m.cO)(t)&&a&&a.$emit&&!a.disabled&&a.$emit(l.PZ,t)},clickTab:function(a,t){this.activateTab(a),this.emitTabClick(a,t)},firstTab:function(a){var t=this.tabs.find(D);this.activateTab(t)&&a&&(this.focusButton(t),this.emitTabClick(t,a))},previousTab:function(a){var t=(0,b.nP)(this.currentTab,0),e=this.tabs.slice(0,t).reverse().find(D);this.activateTab(e)&&a&&(this.focusButton(e),this.emitTabClick(e,a))},nextTab:function(a){var t=(0,b.nP)(this.currentTab,-1),e=this.tabs.slice(t+1).find(D);this.activateTab(e)&&a&&(this.focusButton(e),this.emitTabClick(e,a))},lastTab:function(a){var t=this.tabs.slice().reverse().find(D);this.activateTab(t)&&a&&(this.focusButton(t),this.emitTabClick(t,a))}},render:function(a){var t=this,e=this.align,n=this.card,r=this.end,o=this.fill,c=this.firstTab,s=this.justified,u=this.lastTab,d=this.nextTab,p=this.noKeyNav,v=this.noNavStyle,f=this.pills,m=this.previousTab,z=this.small,b=this.tabs,g=this.vertical,M=b.find((function(a){return a.localActive&&!a.disabled})),y=b.find((function(a){return!a.disabled})),V=b.map((function(e,n){var r,o=e.safeId,s=null;return p||(s=-1,(e===M||!M&&e===y)&&(s=null)),a(E,S({props:{controls:o?o():null,id:e.controlledBy||(o?o("_BV_tab_button_"):null),noKeyNav:p,posInSet:n+1,setSize:b.length,tab:e,tabIndex:s},on:(r={},S(r,l.PZ,(function(a){t.clickTab(e,a)})),S(r,l.Q3,c),S(r,l.I$,m),S(r,l.zd,d),S(r,l.vA,u),r),key:e[i.X$]||n,ref:"buttons"},i.TF,!0))})),H=a(C.O,{class:this.localNavClass,attrs:{role:"tablist",id:this.safeId("_BV_tab_controls_")},props:{fill:o,justified:s,align:e,tabs:!v&&!f,pills:!v&&f,vertical:g,small:z,cardHeader:n&&!g},ref:"nav"},[this.normalizeSlot(h.U4)||a(),V,this.normalizeSlot(h.XE)||a()]);H=a("div",{class:[{"card-header":n&&!g&&!r,"card-footer":n&&!g&&r,"col-auto":g},this.navWrapperClass],key:"bv-tabs-nav"},[H]);var A=this.normalizeSlot()||[],B=a();0===A.length&&(B=a("div",{class:["tab-pane","active",{"card-body":n}],key:"bv-empty-tab"},this.normalizeSlot(h.ZJ)));var O=a("div",{staticClass:"tab-content",class:[{col:g},this.contentClass],attrs:{id:this.safeId("_BV_tab_container_")},key:"bv-content",ref:"content"},[A,B]);return a(this.tag,{staticClass:"tabs",class:{row:g,"no-gutters":g&&n},attrs:{id:this.safeId()}},[r?O:a(),H,r?a():O])}})},68793:(a,t,e)=>{e.d(t,{m$:()=>fa});var n,i=e(94689),r=e(63294),o=e(93319),l=e(11572),c=e(79968),s=e(26410),h=e(28415),u=e(33284),d=e(67040),p=e(86087),v=e(77147),f=e(55789),m=e(91076),z=e(72433),b=e(1915),g=e(12299),M=e(90494),y=e(37130),V=e(21578),H=e(54602),A=e(93954),B=e(20451),O=e(30488),w=e(28492),C=e(73727),I=e(98596),L=e(18280),S=e(30051),P=e(91451),F=e(67347),k=e(17100),j=(0,b.l7)({mixins:[L.Z],data:function(){return{name:"b-toaster"}},methods:{onAfterEnter:function(a){var t=this;(0,s.bz)((function(){(0,s.IV)(a,"".concat(t.name,"-enter-to"))}))}},render:function(a){return a("transition-group",{props:{tag:"div",name:this.name},on:{afterEnter:this.onAfterEnter}},this.normalizeSlot())}}),T=(0,B.y2)({ariaAtomic:(0,B.pi)(g.N0),ariaLive:(0,B.pi)(g.N0),name:(0,B.pi)(g.N0,void 0,!0),role:(0,B.pi)(g.N0)},i.Gi),D=(0,b.l7)({name:i.Gi,mixins:[I.E],props:T,data:function(){return{doRender:!1,dead:!1,staticName:this.name}},beforeMount:function(){var a=this.name;this.staticName=a,z.Df.hasTarget(a)?((0,v.ZK)('A "" with name "'.concat(a,'" already exists in the document.'),i.Gi),this.dead=!0):this.doRender=!0},beforeDestroy:function(){this.doRender&&this.emitOnRoot((0,h.J3)(i.Gi,r.Vz),this.name)},destroyed:function(){var a=this.$el;a&&a.parentNode&&a.parentNode.removeChild(a)},render:function(a){var t=a("div",{class:["d-none",{"b-dead-toaster":this.dead}]});if(this.doRender){var e=a(z.YC,{staticClass:"b-toaster-slot",props:{name:this.staticName,multiple:!0,tag:"div",slim:!1,transition:j}});t=a("div",{staticClass:"b-toaster",class:[this.staticName],attrs:{id:this.staticName,role:this.role||null,"aria-live":this.ariaLive,"aria-atomic":this.ariaAtomic}},[e])}return t}});function E(a,t){var e=Object.keys(a);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(a);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(a,t).enumerable}))),e.push.apply(e,n)}return e}function x(a){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{};return new y.n(a,x(x({cancelable:!1,target:this.$el||null,relatedTarget:null},t),{},{vueTarget:this,componentId:this.safeId()}))},emitEvent:function(a){var t=a.type;this.emitOnRoot((0,h.J3)(i.Tf,t),a),this.$emit(t,a)},ensureToaster:function(){if(!this.static){var a=this.computedToaster;if(!z.Df.hasTarget(a)){var t=document.createElement("div");document.body.appendChild(t);var e=(0,f.H)(this.bvEventRoot,D,{propsData:{name:a}});e.$mount(t)}}},startDismissTimer:function(){this.clearDismissTimer(),this.noAutoHide||(this.$_dismissTimer=setTimeout(this.hide,this.resumeDismiss||this.computedDuration),this.dismissStarted=Date.now(),this.resumeDismiss=0)},clearDismissTimer:function(){clearTimeout(this.$_dismissTimer),this.$_dismissTimer=null},setHoverHandler:function(a){var t=this.$refs["b-toast"];(0,h.tU)(a,t,"mouseenter",this.onPause,r.IJ),(0,h.tU)(a,t,"mouseleave",this.onUnPause,r.IJ)},onPause:function(){if(!this.noAutoHide&&!this.noHoverPause&&this.$_dismissTimer&&!this.resumeDismiss){var a=Date.now()-this.dismissStarted;a>0&&(this.clearDismissTimer(),this.resumeDismiss=(0,V.nP)(this.computedDuration-a,q))}},onUnPause:function(){this.noAutoHide||this.noHoverPause||!this.resumeDismiss?this.resumeDismiss=this.dismissStarted=0:this.startDismissTimer()},onLinkClick:function(){var a=this;this.$nextTick((function(){(0,s.bz)((function(){a.hide()}))}))},onBeforeEnter:function(){this.isTransitioning=!0},onAfterEnter:function(){this.isTransitioning=!1;var a=this.buildEvent(r.AS);this.emitEvent(a),this.startDismissTimer(),this.setHoverHandler(!0)},onBeforeLeave:function(){this.isTransitioning=!0},onAfterLeave:function(){this.isTransitioning=!1,this.order=0,this.resumeDismiss=this.dismissStarted=0;var a=this.buildEvent(r.v6);this.emitEvent(a),this.doRender=!1},makeToast:function(a){var t=this,e=this.title,n=this.slotScope,i=(0,O.u$)(this),r=[],o=this.normalizeSlot(M.XF,n);o?r.push(o):e&&r.push(a("strong",{staticClass:"mr-2"},e)),this.noCloseButton||r.push(a(P.Z,{staticClass:"ml-auto mb-1",on:{click:function(){t.hide()}}}));var l=a();r.length>0&&(l=a(this.headerTag,{staticClass:"toast-header",class:this.headerClass},r));var c=a(i?F.we:"div",{staticClass:"toast-body",class:this.bodyClass,props:i?(0,B.uj)(W,this):{},on:i?{click:this.onLinkClick}:{}},this.normalizeSlot(M.Pq,n));return a("div",{staticClass:"toast",class:this.toastClass,attrs:this.computedAttrs,key:"toast-".concat(this[b.X$]),ref:"toast"},[l,c])}},render:function(a){if(!this.doRender||!this.isMounted)return a();var t=this.order,e=this.static,n=this.isHiding,i=this.isStatus,r="b-toast-".concat(this[b.X$]),o=a("div",{staticClass:"b-toast",class:this.toastClasses,attrs:x(x({},e?{}:this.scopedStyleAttrs),{},{id:this.safeId("_toast_outer"),role:n?null:i?"status":"alert","aria-live":n?null:i?"polite":"assertive","aria-atomic":n?null:"true"}),key:r,ref:"b-toast"},[a(k.N,{props:{noFade:this.noFade},on:this.transitionHandlers},[this.localShow?this.makeToast(a):a()])]);return a(z.h_,{props:{name:r,to:this.computedToaster,order:t,slim:!0,disabled:e}},[o])}});function Z(a,t){if(!(a instanceof t))throw new TypeError("Cannot call a class as a function")}function X(a,t){for(var e=0;ea.length)&&(t=a.length);for(var e=0,n=new Array(t);e1&&void 0!==arguments[1]?arguments[1]:{};a&&!(0,v.zl)(ca)&&e(aa(aa({},da(t)),{},{toastContent:a}),this._vm)}},{key:"show",value:function(a){a&&this._root.$emit((0,h.gA)(i.Tf,r.l0),a)}},{key:"hide",value:function(){var a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;this._root.$emit((0,h.gA)(i.Tf,r.yM),a)}}]),a}();a.mixin({beforeCreate:function(){this[sa]=new n(this)}}),(0,d.nr)(a.prototype,ca)||(0,d._x)(a.prototype,ca,{get:function(){return this&&this[sa]||(0,v.ZK)('"'.concat(ca,'" must be accessed from a Vue instance "this" context.'),i.Tf),this[sa]}})},va=(0,p.Hr)({plugins:{plugin:pa}}),fa=(0,p.Hr)({components:{BToast:J,BToaster:D},plugins:{BVToastPlugin:va}})},91858:(a,t,e)=>{e.d(t,{y:()=>A});var n=e(1915),i=e(94689),r=e(63294),o=e(12299),l=e(33284),c=e(20451),s=e(30051),h=e(28981),u=e(28112),d=e(93319),p=e(26410),v=e(93954),f=e(17100),m={AUTO:"auto",TOP:"top",RIGHT:"right",BOTTOM:"bottom",LEFT:"left",TOPLEFT:"top",TOPRIGHT:"top",RIGHTTOP:"right",RIGHTBOTTOM:"right",BOTTOMLEFT:"bottom",BOTTOMRIGHT:"bottom",LEFTTOP:"left",LEFTBOTTOM:"left"},z={AUTO:0,TOPLEFT:-1,TOP:0,TOPRIGHT:1,RIGHTTOP:-1,RIGHT:0,RIGHTBOTTOM:1,BOTTOMLEFT:-1,BOTTOM:0,BOTTOMRIGHT:1,LEFTTOP:-1,LEFT:0,LEFTBOTTOM:1},b={arrowPadding:(0,c.pi)(o.fE,6),boundary:(0,c.pi)([u.mv,o.N0],"scrollParent"),boundaryPadding:(0,c.pi)(o.fE,5),fallbackPlacement:(0,c.pi)(o.Mu,"flip"),offset:(0,c.pi)(o.fE,0),placement:(0,c.pi)(o.N0,"top"),target:(0,c.pi)([u.mv,u.t_])},g=(0,n.l7)({name:i.X$,mixins:[d.S],props:b,data:function(){return{noFade:!1,localShow:!0,attachment:this.getAttachment(this.placement)}},computed:{templateType:function(){return"unknown"},popperConfig:function(){var a=this,t=this.placement;return{placement:this.getAttachment(t),modifiers:{offset:{offset:this.getOffset(t)},flip:{behavior:this.fallbackPlacement},arrow:{element:".arrow"},preventOverflow:{padding:this.boundaryPadding,boundariesElement:this.boundary}},onCreate:function(t){t.originalPlacement!==t.placement&&a.popperPlacementChange(t)},onUpdate:function(t){a.popperPlacementChange(t)}}}},created:function(){var a=this;this.$_popper=null,this.localShow=!0,this.$on(r.l0,(function(t){a.popperCreate(t)}));var t=function(){a.$nextTick((function(){(0,p.bz)((function(){a.$destroy()}))}))};this.bvParent.$once(r.DJ,t),this.$once(r.v6,t)},beforeMount:function(){this.attachment=this.getAttachment(this.placement)},updated:function(){this.updatePopper()},beforeDestroy:function(){this.destroyPopper()},destroyed:function(){var a=this.$el;a&&a.parentNode&&a.parentNode.removeChild(a)},methods:{hide:function(){this.localShow=!1},getAttachment:function(a){return m[String(a).toUpperCase()]||"auto"},getOffset:function(a){if(!this.offset){var t=this.$refs.arrow||(0,p.Ys)(".arrow",this.$el),e=(0,v.f_)((0,p.yD)(t).width,0)+(0,v.f_)(this.arrowPadding,0);switch(z[String(a).toUpperCase()]||0){case 1:return"+50%p - ".concat(e,"px");case-1:return"-50%p + ".concat(e,"px");default:return 0}}return this.offset},popperCreate:function(a){this.destroyPopper(),this.$_popper=new h.Z(this.target,a,this.popperConfig)},destroyPopper:function(){this.$_popper&&this.$_popper.destroy(),this.$_popper=null},updatePopper:function(){this.$_popper&&this.$_popper.scheduleUpdate()},popperPlacementChange:function(a){this.attachment=this.getAttachment(a.placement)},renderTemplate:function(a){return a("div")}},render:function(a){var t=this,e=this.noFade;return a(f.N,{props:{appear:!0,noFade:e},on:{beforeEnter:function(a){return t.$emit(r.l0,a)},afterEnter:function(a){return t.$emit(r.AS,a)},beforeLeave:function(a){return t.$emit(r.yM,a)},afterLeave:function(a){return t.$emit(r.v6,a)}}},[this.localShow?this.renderTemplate(a):a()])}});function M(a,t){var e=Object.keys(a);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(a);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(a,t).enumerable}))),e.push.apply(e,n)}return e}function y(a){for(var t=1;t{e.d(t,{j:()=>j});var n=e(1915),i=e(94689),r=e(63294),o=e(93319),l=e(11572),c=e(99022),s=e(26410),h=e(28415),u=e(13597),d=e(68265),p=e(33284),v=e(3058),f=e(21578),m=e(84941),z=e(93954),b=e(67040),g=e(77147),M=e(37130),y=e(55789),V=e(98596),H=e(91858);function A(a,t){var e=Object.keys(a);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(a);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(a,t).enumerable}))),e.push.apply(e,n)}return e}function B(a){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},e=!1;(0,b.XP)(k).forEach((function(n){(0,p.o8)(t[n])||a[n]===t[n]||(a[n]=t[n],"title"===n&&(e=!0))})),e&&this.localShow&&this.fixTitle()},createTemplateAndShow:function(){var a=this.getContainer(),t=this.getTemplate(),e=this.$_tip=(0,y.H)(this,t,{propsData:{id:this.computedId,html:this.html,placement:this.placement,fallbackPlacement:this.fallbackPlacement,target:this.getPlacementTarget(),boundary:this.getBoundary(),offset:(0,z.Z3)(this.offset,0),arrowPadding:(0,z.Z3)(this.arrowPadding,0),boundaryPadding:(0,z.Z3)(this.boundaryPadding,0)}});this.handleTemplateUpdate(),e.$once(r.l0,this.onTemplateShow),e.$once(r.AS,this.onTemplateShown),e.$once(r.yM,this.onTemplateHide),e.$once(r.v6,this.onTemplateHidden),e.$once(r.DJ,this.destroyTemplate),e.$on(r.kT,this.handleEvent),e.$on(r.iV,this.handleEvent),e.$on(r.MQ,this.handleEvent),e.$on(r.lm,this.handleEvent),e.$mount(a.appendChild(document.createElement("div")))},hideTemplate:function(){this.$_tip&&this.$_tip.hide(),this.clearActiveTriggers(),this.$_hoverState=""},destroyTemplate:function(){this.setWhileOpenListeners(!1),this.clearHoverTimeout(),this.$_hoverState="",this.clearActiveTriggers(),this.localPlacementTarget=null;try{this.$_tip.$destroy()}catch(a){}this.$_tip=null,this.removeAriaDescribedby(),this.restoreTitle(),this.localShow=!1},getTemplateElement:function(){return this.$_tip?this.$_tip.$el:null},handleTemplateUpdate:function(){var a=this,t=this.$_tip;if(t){var e=["title","content","variant","customClass","noFade","interactive"];e.forEach((function(e){t[e]!==a[e]&&(t[e]=a[e])}))}},show:function(){var a=this.getTarget();if(a&&(0,s.r3)(document.body,a)&&(0,s.pn)(a)&&!this.dropdownOpen()&&(!(0,p.Jp)(this.title)&&""!==this.title||!(0,p.Jp)(this.content)&&""!==this.content)&&!this.$_tip&&!this.localShow){this.localShow=!0;var t=this.buildEvent(r.l0,{cancelable:!0});this.emitEvent(t),t.defaultPrevented?this.destroyTemplate():(this.fixTitle(),this.addAriaDescribedby(),this.createTemplateAndShow())}},hide:function(){var a=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this.getTemplateElement();if(t&&this.localShow){var e=this.buildEvent(r.yM,{cancelable:!a});this.emitEvent(e),e.defaultPrevented||this.hideTemplate()}else this.restoreTitle()},forceHide:function(){var a=this.getTemplateElement();a&&this.localShow&&(this.setWhileOpenListeners(!1),this.clearHoverTimeout(),this.$_hoverState="",this.clearActiveTriggers(),this.$_tip&&(this.$_tip.noFade=!0),this.hide(!0))},enable:function(){this.$_enabled=!0,this.emitEvent(this.buildEvent(r.VU))},disable:function(){this.$_enabled=!1,this.emitEvent(this.buildEvent(r.gi))},onTemplateShow:function(){this.setWhileOpenListeners(!0)},onTemplateShown:function(){var a=this.$_hoverState;this.$_hoverState="","out"===a&&this.leave(null),this.emitEvent(this.buildEvent(r.AS))},onTemplateHide:function(){this.setWhileOpenListeners(!1)},onTemplateHidden:function(){this.destroyTemplate(),this.emitEvent(this.buildEvent(r.v6))},getTarget:function(){var a=this.target;return(0,p.HD)(a)?a=(0,s.FO)(a.replace(/^#/,"")):(0,p.mf)(a)?a=a():a&&(a=a.$el||a),(0,s.kK)(a)?a:null},getPlacementTarget:function(){return this.getTarget()},getTargetId:function(){var a=this.getTarget();return a&&a.id?a.id:null},getContainer:function(){var a=!!this.container&&(this.container.$el||this.container),t=document.body,e=this.getTarget();return!1===a?(0,s.oq)(L,e)||t:(0,p.HD)(a)&&(0,s.FO)(a.replace(/^#/,""))||t},getBoundary:function(){return this.boundary?this.boundary.$el||this.boundary:"scrollParent"},isInModal:function(){var a=this.getTarget();return a&&(0,s.oq)(w,a)},isDropdown:function(){var a=this.getTarget();return a&&(0,s.pv)(a,S)},dropdownOpen:function(){var a=this.getTarget();return this.isDropdown()&&a&&(0,s.Ys)(P,a)},clearHoverTimeout:function(){clearTimeout(this.$_hoverTimeout),this.$_hoverTimeout=null},clearVisibilityInterval:function(){clearInterval(this.$_visibleInterval),this.$_visibleInterval=null},clearActiveTriggers:function(){for(var a in this.activeTrigger)this.activeTrigger[a]=!1},addAriaDescribedby:function(){var a=this.getTarget(),t=(0,s.UK)(a,"aria-describedby")||"";t=t.split(/\s+/).concat(this.computedId).join(" ").trim(),(0,s.fi)(a,"aria-describedby",t)},removeAriaDescribedby:function(){var a=this,t=this.getTarget(),e=(0,s.UK)(t,"aria-describedby")||"";e=e.split(/\s+/).filter((function(t){return t!==a.computedId})).join(" ").trim(),e?(0,s.fi)(t,"aria-describedby",e):(0,s.uV)(t,"aria-describedby")},fixTitle:function(){var a=this.getTarget();if((0,s.B$)(a,"title")){var t=(0,s.UK)(a,"title");(0,s.fi)(a,"title",""),t&&(0,s.fi)(a,F,t)}},restoreTitle:function(){var a=this.getTarget();if((0,s.B$)(a,F)){var t=(0,s.UK)(a,F);(0,s.uV)(a,F),t&&(0,s.fi)(a,"title",t)}},buildEvent:function(a){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new M.n(a,B({cancelable:!1,target:this.getTarget(),relatedTarget:this.getTemplateElement()||null,componentId:this.computedId,vueTarget:this},t))},emitEvent:function(a){var t=a.type;this.emitOnRoot((0,h.J3)(this.templateType,t),a),this.$emit(t,a)},listen:function(){var a=this,t=this.getTarget();t&&(this.setRootListener(!0),this.computedTriggers.forEach((function(e){"click"===e?(0,h.XO)(t,"click",a.handleEvent,r.IJ):"focus"===e?((0,h.XO)(t,"focusin",a.handleEvent,r.IJ),(0,h.XO)(t,"focusout",a.handleEvent,r.IJ)):"blur"===e?(0,h.XO)(t,"focusout",a.handleEvent,r.IJ):"hover"===e&&((0,h.XO)(t,"mouseenter",a.handleEvent,r.IJ),(0,h.XO)(t,"mouseleave",a.handleEvent,r.IJ))}),this))},unListen:function(){var a=this,t=["click","focusin","focusout","mouseenter","mouseleave"],e=this.getTarget();this.setRootListener(!1),t.forEach((function(t){e&&(0,h.QY)(e,t,a.handleEvent,r.IJ)}),this)},setRootListener:function(a){var t=a?"listenOnRoot":"listenOffRoot",e=this.templateType;this[t]((0,h.gA)(e,r.yM),this.doHide),this[t]((0,h.gA)(e,r.l0),this.doShow),this[t]((0,h.gA)(e,r.MH),this.doDisable),this[t]((0,h.gA)(e,r.wV),this.doEnable)},setWhileOpenListeners:function(a){this.setModalListener(a),this.setDropdownListener(a),this.visibleCheck(a),this.setOnTouchStartListener(a)},visibleCheck:function(a){var t=this;this.clearVisibilityInterval();var e=this.getTarget();a&&(this.$_visibleInterval=setInterval((function(){var a=t.getTemplateElement();!a||!t.localShow||e.parentNode&&(0,s.pn)(e)||t.forceHide()}),100))},setModalListener:function(a){this.isInModal()&&this[a?"listenOnRoot":"listenOffRoot"](C,this.forceHide)},setOnTouchStartListener:function(a){var t=this;"ontouchstart"in document.documentElement&&(0,l.Dp)(document.body.children).forEach((function(e){(0,h.tU)(a,e,"mouseover",t.$_noop)}))},setDropdownListener:function(a){var t=this.getTarget();if(t&&this.bvEventRoot&&this.isDropdown){var e=(0,c.qE)(t);e&&e[a?"$on":"$off"](r.AS,this.forceHide)}},handleEvent:function(a){var t=this.getTarget();if(t&&!(0,s.pK)(t)&&this.$_enabled&&!this.dropdownOpen()){var e=a.type,n=this.computedTriggers;if("click"===e&&(0,l.kI)(n,"click"))this.click(a);else if("mouseenter"===e&&(0,l.kI)(n,"hover"))this.enter(a);else if("focusin"===e&&(0,l.kI)(n,"focus"))this.enter(a);else if("focusout"===e&&((0,l.kI)(n,"focus")||(0,l.kI)(n,"blur"))||"mouseleave"===e&&(0,l.kI)(n,"hover")){var i=this.getTemplateElement(),r=a.target,o=a.relatedTarget;if(i&&(0,s.r3)(i,r)&&(0,s.r3)(t,o)||i&&(0,s.r3)(t,r)&&(0,s.r3)(i,o)||i&&(0,s.r3)(i,r)&&(0,s.r3)(i,o)||(0,s.r3)(t,r)&&(0,s.r3)(t,o))return;this.leave(a)}}},doHide:function(a){a&&this.getTargetId()!==a&&this.computedId!==a||this.forceHide()},doShow:function(a){a&&this.getTargetId()!==a&&this.computedId!==a||this.show()},doDisable:function(a){a&&this.getTargetId()!==a&&this.computedId!==a||this.disable()},doEnable:function(a){a&&this.getTargetId()!==a&&this.computedId!==a||this.enable()},click:function(a){this.$_enabled&&!this.dropdownOpen()&&((0,s.KS)(a.currentTarget),this.activeTrigger.click=!this.activeTrigger.click,this.isWithActiveTrigger?this.enter(null):this.leave(null))},toggle:function(){this.$_enabled&&!this.dropdownOpen()&&(this.localShow?this.leave(null):this.enter(null))},enter:function(){var a=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;t&&(this.activeTrigger["focusin"===t.type?"focus":"hover"]=!0),this.localShow||"in"===this.$_hoverState?this.$_hoverState="in":(this.clearHoverTimeout(),this.$_hoverState="in",this.computedDelay.show?(this.fixTitle(),this.$_hoverTimeout=setTimeout((function(){"in"===a.$_hoverState?a.show():a.localShow||a.restoreTitle()}),this.computedDelay.show)):this.show())},leave:function(){var a=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;t&&(this.activeTrigger["focusout"===t.type?"focus":"hover"]=!1,"focusout"===t.type&&(0,l.kI)(this.computedTriggers,"blur")&&(this.activeTrigger.click=!1,this.activeTrigger.hover=!1)),this.isWithActiveTrigger||(this.clearHoverTimeout(),this.$_hoverState="out",this.computedDelay.hide?this.$_hoverTimeout=setTimeout((function(){"out"===a.$_hoverState&&a.hide()}),this.computedDelay.hide):this.hide())}}})},18365:(a,t,e)=>{e.d(t,{N:()=>B,T:()=>O});var n,i,r=e(1915),o=e(94689),l=e(63294),c=e(12299),s=e(28112),h=e(93319),u=e(13597),d=e(33284),p=e(67040),v=e(20451),f=e(55789),m=e(18280),z=e(40960);function b(a,t){var e=Object.keys(a);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(a);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(a,t).enumerable}))),e.push.apply(e,n)}return e}function g(a){for(var t=1;t{e.d(t,{N:()=>f});var n=e(1915),i=e(69558),r=e(94689),o=e(12299),l=e(33284),c=e(20451);function s(a,t){var e=Object.keys(a);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(a);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(a,t).enumerable}))),e.push.apply(e,n)}return e}function h(a){for(var t=1;t{e.d(t,{$0:()=>pt,$P:()=>Ca,$S:()=>Q,$T:()=>Za,$h:()=>y,$n:()=>rt,$q:()=>tt,AE:()=>Na,AM:()=>O,Au:()=>wa,BP:()=>K,Bd:()=>Y,Bh:()=>r,CB:()=>g,CG:()=>Pa,DU:()=>sa,DX:()=>ya,F6:()=>ra,GL:()=>bt,Gi:()=>st,Gs:()=>at,H3:()=>Ht,H7:()=>la,HQ:()=>ba,Hb:()=>_,Ht:()=>U,Il:()=>ma,Is:()=>pa,JP:()=>j,Jy:()=>S,KO:()=>Wa,KT:()=>Va,KV:()=>E,LX:()=>Sa,M3:()=>Ra,MZ:()=>u,Mf:()=>Qa,Mr:()=>B,OD:()=>W,Op:()=>yt,Ps:()=>Ea,QM:()=>Ya,QS:()=>H,Qc:()=>V,Qf:()=>ga,Rj:()=>ta,Rv:()=>ua,S6:()=>ja,Td:()=>s,Tf:()=>ct,Ts:()=>vt,Tx:()=>G,UV:()=>Z,Ub:()=>Ba,V$:()=>it,VY:()=>X,V_:()=>D,Vg:()=>x,W9:()=>Xa,Wx:()=>Ua,X$:()=>zt,XM:()=>z,X_:()=>Vt,Xm:()=>Ga,YJ:()=>n,YO:()=>ha,Yy:()=>P,_u:()=>f,_v:()=>m,aD:()=>Ja,aJ:()=>da,aU:()=>L,aZ:()=>va,bu:()=>ia,cp:()=>Fa,d2:()=>h,dJ:()=>l,dV:()=>ka,dh:()=>o,dk:()=>Da,eO:()=>At,eh:()=>N,eo:()=>oa,fn:()=>Ta,gb:()=>fa,gi:()=>d,gr:()=>I,gt:()=>dt,gx:()=>La,gz:()=>w,i:()=>$a,iG:()=>za,iv:()=>M,j0:()=>b,lS:()=>Mt,n5:()=>F,ne:()=>nt,qk:()=>k,qv:()=>ht,rK:()=>p,rc:()=>ca,sY:()=>ea,sb:()=>ot,tT:()=>na,tU:()=>mt,tW:()=>T,t_:()=>J,te:()=>q,tq:()=>lt,tt:()=>_a,u2:()=>$,u7:()=>Aa,uc:()=>xa,ux:()=>C,v0:()=>gt,vF:()=>Ha,vg:()=>aa,wE:()=>Ma,wO:()=>ft,x0:()=>et,xU:()=>R,xl:()=>Ka,y9:()=>qa,yf:()=>c,zB:()=>Oa,zD:()=>Ia,zg:()=>v,zr:()=>i,zv:()=>A,zx:()=>ut});var n="BAlert",i="BAspect",r="BAvatar",o="BAvatarGroup",l="BBadge",c="BBreadcrumb",s="BBreadcrumbItem",h="BBreadcrumbLink",u="BButton",d="BButtonClose",p="BButtonGroup",v="BButtonToolbar",f="BCalendar",m="BCard",z="BCardBody",b="BCardFooter",g="BCardGroup",M="BCardHeader",y="BCardImg",V="BCardImgLazy",H="BCardSubTitle",A="BCardText",B="BCardTitle",O="BCarousel",w="BCarouselSlide",C="BCol",I="BCollapse",L="BContainer",S="BDropdown",P="BDropdownDivider",F="BDropdownForm",k="BDropdownGroup",j="BDropdownHeader",T="BDropdownItem",D="BDropdownItemButton",E="BDropdownText",x="BEmbed",N="BForm",$="BFormCheckbox",R="BFormCheckboxGroup",_="BFormDatalist",U="BFormDatepicker",G="BFormFile",q="BFormGroup",W="BFormInput",K="BFormInvalidFeedback",J="BFormRadio",Z="BFormRadioGroup",X="BFormRating",Y="BFormRow",Q="BFormSelect",aa="BFormSelectOption",ta="BFormSelectOptionGroup",ea="BFormSpinbutton",na="BFormTag",ia="BFormTags",ra="BFormText",oa="BFormTextarea",la="BFormTimepicker",ca="BFormValidFeedback",sa="BIcon",ha="BIconstack",ua="BIconBase",da="BImg",pa="BImgLazy",va="BInputGroup",fa="BInputGroupAddon",ma="BInputGroupAppend",za="BInputGroupPrepend",ba="BInputGroupText",ga="BJumbotron",Ma="BLink",ya="BListGroup",Va="BListGroupItem",Ha="BMedia",Aa="BMediaAside",Ba="BMediaBody",Oa="BModal",wa="BMsgBox",Ca="BNav",Ia="BNavbar",La="BNavbarBrand",Sa="BNavbarNav",Pa="BNavbarToggle",Fa="BNavForm",ka="BNavItem",ja="BNavItemDropdown",Ta="BNavText",Da="BOverlay",Ea="BPagination",xa="BPaginationNav",Na="BPopover",$a="BProgress",Ra="BProgressBar",_a="BRow",Ua="BSidebar",Ga="BSkeleton",qa="BSkeletonIcon",Wa="BSkeletonImg",Ka="BSkeletonTable",Ja="BSkeletonWrapper",Za="BSpinner",Xa="BTab",Ya="BTable",Qa="BTableCell",at="BTableLite",tt="BTableSimple",et="BTabs",nt="BTbody",it="BTfoot",rt="BTh",ot="BThead",lt="BTime",ct="BToast",st="BToaster",ht="BTooltip",ut="BTr",dt="BVCollapse",pt="BVFormBtnLabelControl",vt="BVFormRatingStar",ft="BVPopover",mt="BVPopoverTemplate",zt="BVPopper",bt="BVTabButton",gt="BVToastPop",Mt="BVTooltip",yt="BVTooltipTemplate",Vt="BVTransition",Ht="BVTransporter",At="BVTransporterTarget"},8750:(a,t,e)=>{e.d(t,{A1:()=>n,JJ:()=>r,KB:()=>i});var n="BvConfig",i="$bvConfig",r=["xs","sm","md","lg","xl"]},43935:(a,t,e)=>{e.d(t,{FT:()=>z,GA:()=>v,K0:()=>h,LV:()=>f,Qg:()=>c,Uc:()=>l,cM:()=>m,dV:()=>n,m9:()=>s,sJ:()=>p,zx:()=>o});var n="undefined"!==typeof window,i="undefined"!==typeof document,r="undefined"!==typeof navigator,o="undefined"!==typeof Promise,l="undefined"!==typeof MutationObserver||"undefined"!==typeof WebKitMutationObserver||"undefined"!==typeof MozMutationObserver,c=n&&i&&r,s=n?window:{},h=i?document:{},u=r?navigator:{},d=(u.userAgent||"").toLowerCase(),p=d.indexOf("jsdom")>0,v=(/msie|trident/.test(d),function(){var a=!1;if(c)try{var t={get passive(){a=!0}};s.addEventListener("test",t,t),s.removeEventListener("test",t,t)}catch(e){a=!1}return a}()),f=c&&("ontouchstart"in h.documentElement||u.maxTouchPoints>0),m=c&&Boolean(s.PointerEvent||s.MSPointerEvent),z=c&&"IntersectionObserver"in s&&"IntersectionObserverEntry"in s&&"intersectionRatio"in s.IntersectionObserverEntry.prototype},63294:(a,t,e)=>{e.d(t,{AS:()=>X,Cc:()=>h,DJ:()=>oa,Ep:()=>ea,Et:()=>k,G1:()=>G,H9:()=>N,HH:()=>ca,I$:()=>E,IJ:()=>ua,J9:()=>o,JP:()=>sa,Kr:()=>Y,M$:()=>T,MH:()=>v,MQ:()=>S,Mg:()=>z,NN:()=>m,OS:()=>ia,Ol:()=>ta,Ow:()=>na,PZ:()=>s,Q3:()=>y,SH:()=>ha,So:()=>K,TY:()=>R,Uf:()=>M,VU:()=>g,Vz:()=>p,XD:()=>u,XH:()=>Q,_4:()=>D,_H:()=>d,_Z:()=>B,_o:()=>U,b5:()=>x,eb:()=>q,f_:()=>W,gi:()=>f,gn:()=>I,hY:()=>c,iV:()=>A,ix:()=>i,j7:()=>la,kT:()=>H,km:()=>V,l0:()=>Z,lm:()=>P,lr:()=>_,oJ:()=>j,q0:()=>J,qF:()=>$,rP:()=>C,sM:()=>aa,v6:()=>O,vA:()=>L,vl:()=>ra,wV:()=>b,yM:()=>w,z:()=>r,z2:()=>l,zd:()=>F});var n=e(1915),i="activate-tab",r="blur",o="cancel",l="change",c="changed",s="click",h="close",u="context",d="context-changed",p="destroyed",v="disable",f="disabled",m="dismissed",z="dismiss-count-down",b="enable",g="enabled",M="filtered",y="first",V="focus",H="focusin",A="focusout",B="head-clicked",O="hidden",w="hide",C="img-error",I="input",L="last",S="mouseenter",P="mouseleave",F="next",k="ok",j="open",T="page-click",D="paused",E="prev",x="refresh",N="refreshed",$="remove",R="row-clicked",_="row-contextmenu",U="row-dblclicked",G="row-hovered",q="row-middle-clicked",W="row-selected",K="row-unhovered",J="selected",Z="show",X="shown",Y="sliding-end",Q="sliding-start",aa="sort-changed",ta="tag-state",ea="toggle",na="unpaused",ia="update",ra=n.$B?"vnodeBeforeUnmount":"hook:beforeDestroy",oa=n.$B?"vNodeUnmounted":"hook:destroyed",la="update:",ca="bv",sa="::",ha={passive:!0},ua={passive:!0,capture:!1}},63663:(a,t,e)=>{e.d(t,{Cq:()=>h,K2:()=>l,L_:()=>u,QI:()=>s,RV:()=>r,RZ:()=>c,XS:()=>f,YO:()=>p,bt:()=>o,d1:()=>n,m5:()=>v,oD:()=>i,r7:()=>d});var n=8,i=46,r=40,o=35,l=13,c=27,s=36,h=37,u=34,d=33,p=39,v=32,f=38},12299:(a,t,e)=>{e.d(t,{$k:()=>V,J9:()=>g,LU:()=>M,Mu:()=>f,N0:()=>u,PJ:()=>m,Sx:()=>l,U5:()=>r,Vh:()=>d,XO:()=>p,ZW:()=>A,aJ:()=>i,aR:()=>s,dX:()=>h,fE:()=>y,gL:()=>b,jg:()=>c,jy:()=>z,oO:()=>H,r1:()=>n,wA:()=>v});var n=void 0,i=Array,r=Boolean,o=Date,l=Function,c=Number,s=Object,h=RegExp,u=String,d=[i,l],p=[i,s],v=[i,s,u],f=[i,u],m=[r,c],z=[r,c,u],b=[r,u],g=[o,u],M=[l,u],y=[c,u],V=[c,s,u],H=[s,l],A=[s,u]},30824:(a,t,e)=>{e.d(t,{$2:()=>O,$g:()=>F,AK:()=>A,Es:()=>S,Gt:()=>f,HA:()=>g,Hb:()=>P,Ii:()=>c,Lj:()=>h,MH:()=>u,OX:()=>n,P:()=>L,Qf:()=>m,Qj:()=>y,R2:()=>r,TZ:()=>v,V:()=>M,VL:()=>B,XI:()=>V,Y:()=>b,_4:()=>o,fd:()=>l,jo:()=>i,ny:()=>s,qn:()=>w,qo:()=>C,sU:()=>d,sf:()=>p,t0:()=>I,vY:()=>z,wC:()=>H});var n=/\[(\d+)]/g,i=/^(BV?)/,r=/^\d+$/,o=/^\..+/,l=/^#/,c=/^#[A-Za-z]+[\w\-:.]*$/,s=/(<([^>]+)>)/gi,h=/\B([A-Z])/g,u=/([a-z])([A-Z])/g,d=/^[0-9]*\.?[0-9]+$/,p=/\+/g,v=/[-/\\^$*+?.()|[\]{}]/g,f=/[\s\uFEFF\xA0]+/g,m=/\s+/,z=/\/\*$/,b=/(\s|^)(\w)/g,g=/^\s+/,M=/_/g,y=/-(\w)/g,V=/^\d+-\d\d?-\d\d?(?:\s|T|$)/,H=/-|\s|T/,A=/^([0-1]?[0-9]|2[0-3]):[0-5]?[0-9](:[0-5]?[0-9])?$/,B=/^.*(#[^#]+)$/,O=/%2C/g,w=/[!'()*]/g,C=/^(\?|#|&)/,I=/^\d+(\.\d*)?[/:]\d+(\.\d*)?$/,L=/[/:]/,S=/^col-/,P=/^BIcon/,F=/-u-.+/},28112:(a,t,e)=>{e.d(t,{$B:()=>g,W_:()=>m,mv:()=>z,t_:()=>b});var n=e(43935);function i(a){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(a){return typeof a}:function(a){return a&&"function"==typeof Symbol&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},i(a)}function r(a,t){if(!(a instanceof t))throw new TypeError("Cannot call a class as a function")}function o(a,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");Object.defineProperty(a,"prototype",{value:Object.create(t&&t.prototype,{constructor:{value:a,writable:!0,configurable:!0}}),writable:!1}),t&&v(a,t)}function l(a){var t=d();return function(){var e,n=f(a);if(t){var i=f(this).constructor;e=Reflect.construct(n,arguments,i)}else e=n.apply(this,arguments);return c(this,e)}}function c(a,t){if(t&&("object"===i(t)||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return s(a)}function s(a){if(void 0===a)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return a}function h(a){var t="function"===typeof Map?new Map:void 0;return h=function(a){if(null===a||!p(a))return a;if("function"!==typeof a)throw new TypeError("Super expression must either be null or a function");if("undefined"!==typeof t){if(t.has(a))return t.get(a);t.set(a,e)}function e(){return u(a,arguments,f(this).constructor)}return e.prototype=Object.create(a.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),v(e,a)},h(a)}function u(a,t,e){return u=d()?Reflect.construct:function(a,t,e){var n=[null];n.push.apply(n,t);var i=Function.bind.apply(a,n),r=new i;return e&&v(r,e.prototype),r},u.apply(null,arguments)}function d(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(a){return!1}}function p(a){return-1!==Function.toString.call(a).indexOf("[native code]")}function v(a,t){return v=Object.setPrototypeOf||function(a,t){return a.__proto__=t,a},v(a,t)}function f(a){return f=Object.setPrototypeOf?Object.getPrototypeOf:function(a){return a.__proto__||Object.getPrototypeOf(a)},f(a)}var m=n.dV?n.m9.Element:function(a){o(e,a);var t=l(e);function e(){return r(this,e),t.apply(this,arguments)}return e}(h(Object)),z=n.dV?n.m9.HTMLElement:function(a){o(e,a);var t=l(e);function e(){return r(this,e),t.apply(this,arguments)}return e}(m),b=n.dV?n.m9.SVGElement:function(a){o(e,a);var t=l(e);function e(){return r(this,e),t.apply(this,arguments)}return e}(m),g=n.dV?n.m9.File:function(a){o(e,a);var t=l(e);function e(){return r(this,e),t.apply(this,arguments)}return e}(h(Object))},90494:(a,t,e)=>{e.d(t,{A0:()=>sa,CZ:()=>p,Cn:()=>L,D$:()=>g,G$:()=>i,GL:()=>q,Hm:()=>na,Jz:()=>y,K$:()=>N,Nd:()=>Y,Pm:()=>I,Pq:()=>u,Q2:()=>r,RC:()=>H,RK:()=>ca,Rn:()=>K,Ro:()=>$,Rv:()=>j,T_:()=>o,U4:()=>oa,VP:()=>W,W8:()=>ea,WU:()=>F,XE:()=>ra,XF:()=>ha,Xc:()=>T,Y5:()=>U,Z6:()=>ua,ZJ:()=>m,ZP:()=>M,_0:()=>V,_J:()=>D,_d:()=>f,ak:()=>s,dB:()=>G,ek:()=>Z,f2:()=>P,gN:()=>S,gy:()=>J,h0:()=>v,hK:()=>ia,hU:()=>b,iC:()=>d,iV:()=>n,j1:()=>c,k8:()=>da,kg:()=>Q,ki:()=>E,kx:()=>z,l1:()=>B,mH:()=>h,n:()=>R,pd:()=>k,sW:()=>x,uH:()=>A,uO:()=>la,ud:()=>X,wB:()=>C,x:()=>l,xH:()=>aa,xI:()=>ta,xM:()=>O,xR:()=>w,ze:()=>_});var n="add-button-text",i="append",r="aside",o="badge",l="bottom-row",c="button-content",s="custom-foot",h="decrement",u="default",d="description",p="dismiss",v="drop-placeholder",f="ellipsis-text",m="empty",z="emptyfiltered",b="file-name",g="first",M="first-text",y="footer",V="header",H="header-close",A="icon-clear",B="icon-empty",O="icon-full",w="icon-half",C="img",I="increment",L="invalid-feedback",S="label",P="last-text",F="lead",k="loading",j="modal-backdrop",T="modal-cancel",D="modal-footer",E="modal-header",x="modal-header-close",N="modal-ok",$="modal-title",R="nav-next-decade",_="nav-next-month",U="nav-next-year",G="nav-prev-decade",q="nav-prev-month",W="nav-prev-year",K="nav-this-month",J="next-text",Z="overlay",X="page",Y="placeholder",Q="prepend",aa="prev-text",ta="row-details",ea="table-busy",na="table-caption",ia="table-colgroup",ra="tabs-end",oa="tabs-start",la="text",ca="thead-top",sa="title",ha="toast-title",ua="top-row",da="valid-feedback"},82653:(a,t,e)=>{e.d(t,{T:()=>y});var n=e(94689),i=e(63294),r=e(63663),o=e(26410),l=e(28415),c=e(33284),s=e(67040),h=e(91076),u=e(96056),d=(0,l.gA)(n.zB,i.l0),p="__bv_modal_directive__",v=function(a){var t=a.modifiers,e=void 0===t?{}:t,n=a.arg,i=a.value;return(0,c.HD)(i)?i:(0,c.HD)(n)?n:(0,s.XP)(e).reverse()[0]},f=function(a){return a&&(0,o.wB)(a,".dropdown-menu > li, li.nav-item")&&(0,o.Ys)("a, button",a)||a},m=function(a){a&&"BUTTON"!==a.tagName&&((0,o.B$)(a,"role")||(0,o.fi)(a,"role","button"),"A"===a.tagName||(0,o.B$)(a,"tabindex")||(0,o.fi)(a,"tabindex","0"))},z=function(a,t,e){var n=v(t),c=f(a);if(n&&c){var s=function(a){var i=a.currentTarget;if(!(0,o.pK)(i)){var l=a.type,c=a.keyCode;"click"!==l&&("keydown"!==l||c!==r.K2&&c!==r.m5)||(0,h.C)((0,u.U)(e,t)).$emit(d,n,i)}};a[p]={handler:s,target:n,trigger:c},m(c),(0,l.XO)(c,"click",s,i.SH),"BUTTON"!==c.tagName&&"button"===(0,o.UK)(c,"role")&&(0,l.XO)(c,"keydown",s,i.SH)}},b=function(a){var t=a[p]||{},e=t.trigger,n=t.handler;e&&n&&((0,l.QY)(e,"click",n,i.SH),(0,l.QY)(e,"keydown",n,i.SH),(0,l.QY)(a,"click",n,i.SH),(0,l.QY)(a,"keydown",n,i.SH)),delete a[p]},g=function(a,t,e){var n=a[p]||{},i=v(t),r=f(a);i===n.target&&r===n.trigger||(b(a,t,e),z(a,t,e)),m(r)},M=function(){},y={inserted:g,updated:M,componentUpdated:g,unbind:b}},43028:(a,t,e)=>{e.d(t,{M:()=>U});var n=e(94689),i=e(43935),r=e(63294),o=e(63663),l=e(30824),c=e(11572),s=e(96056),h=e(26410),u=e(28415),d=e(33284),p=e(3058),v=e(67040),f=e(91076),m="collapsed",z="not-collapsed",b="__BV_toggle",g="".concat(b,"_HANDLER__"),M="".concat(b,"_CLICK__"),y="".concat(b,"_STATE__"),V="".concat(b,"_TARGETS__"),H="false",A="true",B="aria-controls",O="aria-expanded",w="role",C="tabindex",I="overflow-anchor",L=(0,u.gA)(n.gr,"toggle"),S=(0,u.J3)(n.gr,"state"),P=(0,u.J3)(n.gr,"sync-state"),F=(0,u.gA)(n.gr,"request-state"),k=[o.K2,o.m5],j=function(a){return!(0,c.kI)(["button","a"],a.tagName.toLowerCase())},T=function(a,t){var e=a.modifiers,n=a.arg,i=a.value,r=(0,v.XP)(e||{});if(i=(0,d.HD)(i)?i.split(l.Qf):i,(0,h.YR)(t.tagName,"a")){var o=(0,h.UK)(t,"href")||"";l.Ii.test(o)&&r.push(o.replace(l.fd,""))}return(0,c.zo)(n,i).forEach((function(a){return(0,d.HD)(a)&&r.push(a)})),r.filter((function(a,t,e){return a&&e.indexOf(a)===t}))},D=function(a){var t=a[M];t&&((0,u.QY)(a,"click",t,r.SH),(0,u.QY)(a,"keydown",t,r.SH)),a[M]=null},E=function(a,t){if(D(a),t){var e=function(e){if(("keydown"!==e.type||(0,c.kI)(k,e.keyCode))&&!(0,h.pK)(a)){var n=a[V]||[];n.forEach((function(a){(0,f.C)(t).$emit(L,a)}))}};a[M]=e,(0,u.XO)(a,"click",e,r.SH),j(a)&&(0,u.XO)(a,"keydown",e,r.SH)}},x=function(a,t){a[g]&&t&&(0,f.C)(t).$off([S,P],a[g]),a[g]=null},N=function(a,t){if(x(a,t),t){var e=function(t,e){(0,c.kI)(a[V]||[],t)&&(a[y]=e,$(a,e))};a[g]=e,(0,f.C)(t).$on([S,P],e)}},$=function(a,t){t?((0,h.IV)(a,m),(0,h.cn)(a,z),(0,h.fi)(a,O,A)):((0,h.IV)(a,z),(0,h.cn)(a,m),(0,h.fi)(a,O,H))},R=function(a,t){a[t]=null,delete a[t]},_=function(a,t,e){if(i.Qg&&(0,s.U)(e,t)){j(a)&&((0,h.B$)(a,w)||(0,h.fi)(a,w,"button"),(0,h.B$)(a,C)||(0,h.fi)(a,C,"0")),$(a,a[y]);var n=T(t,a);n.length>0?((0,h.fi)(a,B,n.join(" ")),(0,h.A_)(a,I,"none")):((0,h.uV)(a,B),(0,h.jo)(a,I)),(0,h.bz)((function(){E(a,(0,s.U)(e,t))})),(0,p.W)(n,a[V])||(a[V]=n,n.forEach((function(a){(0,f.C)((0,s.U)(e,t)).$emit(F,a)})))}},U={bind:function(a,t,e){a[y]=!1,a[V]=[],N(a,(0,s.U)(e,t)),_(a,t,e)},componentUpdated:_,updated:_,unbind:function(a,t,e){D(a),x(a,(0,s.U)(e,t)),R(a,g),R(a,M),R(a,y),R(a,V),(0,h.IV)(a,m),(0,h.IV)(a,z),(0,h.uV)(a,O),(0,h.uV)(a,B),(0,h.uV)(a,w),(0,h.jo)(a,I)}}},5870:(a,t,e)=>{e.d(t,{o:()=>E});var n=e(94689),i=e(43935),r=e(63294),o=e(11572),l=e(1915),c=e(79968),s=e(13597),h=e(68265),u=e(96056),d=e(33284),p=e(3058),v=e(93954),f=e(67040),m=e(55789),z=e(40960);function b(a,t){var e=Object.keys(a);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(a);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(a,t).enumerable}))),e.push.apply(e,n)}return e}function g(a){for(var t=1;t{e.d(t,{z:()=>b});var n=e(30824),i=e(26410),r=e(33284),o=e(3058),l=e(67040),c=e(1915);function s(a,t){if(!(a instanceof t))throw new TypeError("Cannot call a class as a function")}function h(a,t){for(var e=0;e0);e!==this.visible&&(this.visible=e,this.callback(e),this.once&&this.visible&&(this.doneOnce=!0,this.stop()))}},{key:"stop",value:function(){this.observer&&this.observer.disconnect(),this.observer=null}}]),a}(),v=function(a){var t=a[d];t&&t.stop&&t.stop(),delete a[d]},f=function(a,t){var e=t.value,i=t.modifiers,r={margin:"0px",once:!1,callback:e};(0,l.XP)(i).forEach((function(a){n.R2.test(a)?r.margin="".concat(a,"px"):"once"===a.toLowerCase()&&(r.once=!0)})),v(a),a[d]=new p(a,r),a[d]._prevModifiers=(0,l.d9)(i)},m=function(a,t,e){var n=t.value,i=t.oldValue,r=t.modifiers;r=(0,l.d9)(r),!a||n===i&&a[d]&&(0,o.W)(r,a[d]._prevModifiers)||f(a,{value:n,modifiers:r},e)},z=function(a){v(a)},b={bind:f,componentUpdated:m,unbind:z}},39143:(a,t,e)=>{e.d(t,{N:()=>f,q:()=>m});var n=e(1915),i=e(69558),r=e(94689),o=e(12299),l=e(68265),c=e(33284),s=e(21578),h=e(93954),u=e(20451);function d(a,t,e){return t in a?Object.defineProperty(a,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):a[t]=e,a}var p={viewBox:"0 0 16 16",width:"1em",height:"1em",focusable:"false",role:"img","aria-label":"icon"},v={width:null,height:null,focusable:null,role:null,"aria-label":null},f={animation:(0,u.pi)(o.N0),content:(0,u.pi)(o.N0),flipH:(0,u.pi)(o.U5,!1),flipV:(0,u.pi)(o.U5,!1),fontScale:(0,u.pi)(o.fE,1),rotate:(0,u.pi)(o.fE,0),scale:(0,u.pi)(o.fE,1),shiftH:(0,u.pi)(o.fE,0),shiftV:(0,u.pi)(o.fE,0),stacked:(0,u.pi)(o.U5,!1),title:(0,u.pi)(o.N0),variant:(0,u.pi)(o.N0)},m=(0,n.l7)({name:r.Rv,functional:!0,props:f,render:function(a,t){var e,n=t.data,r=t.props,o=t.children,u=r.animation,f=r.content,m=r.flipH,z=r.flipV,b=r.stacked,g=r.title,M=r.variant,y=(0,s.nP)((0,h.f_)(r.fontScale,1),0)||1,V=(0,s.nP)((0,h.f_)(r.scale,1),0)||1,H=(0,h.f_)(r.rotate,0),A=(0,h.f_)(r.shiftH,0),B=(0,h.f_)(r.shiftV,0),O=m||z||1!==V,w=O||H,C=A||B,I=!(0,c.Jp)(f),L=[w?"translate(8 8)":null,O?"scale(".concat((m?-1:1)*V," ").concat((z?-1:1)*V,")"):null,H?"rotate(".concat(H,")"):null,w?"translate(-8 -8)":null].filter(l.y),S=a("g",{attrs:{transform:L.join(" ")||null},domProps:I?{innerHTML:f||""}:{}},o);C&&(S=a("g",{attrs:{transform:"translate(".concat(16*A/16," ").concat(-16*B/16,")")}},[S])),b&&(S=a("g",[S]));var P=g?a("title",g):null,F=[P,S].filter(l.y);return a("svg",(0,i.b)({staticClass:"b-icon bi",class:(e={},d(e,"text-".concat(M),M),d(e,"b-icon-animation-".concat(u),u),e),attrs:p,style:b?{}:{fontSize:1===y?null:"".concat(100*y,"%")}},n,b?{attrs:v}:{},{attrs:{xmlns:b?null:"http://www.w3.org/2000/svg",fill:"currentColor"}}),F)}})},43022:(a,t,e)=>{e.d(t,{H:()=>M});var n=e(20144),i=e(1915),r=e(69558),o=e(94689),l=e(12299),c=e(30824),s=e(67040),h=e(20451),u=e(46595),d=e(72466),p=e(39143);function v(a,t){var e=Object.keys(a);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(a);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(a,t).enumerable}))),e.push.apply(e,n)}return e}function f(a){for(var t=1;t{e.d(t,{OU:()=>v,Yq2:()=>f,fwv:()=>m,vd$:()=>z,kFv:()=>b,$24:()=>g,sB9:()=>M,nGQ:()=>y,FDI:()=>V,x3L:()=>H,z1A:()=>A,lbE:()=>B,dYs:()=>O,TYz:()=>w,YDB:()=>C,UIV:()=>I,sDn:()=>L,Btd:()=>S,Rep:()=>P,k0:()=>F,dVK:()=>k,zI9:()=>j,rw7:()=>T,pfg:()=>D,KbI:()=>E,PRr:()=>x,HED:()=>N,pTq:()=>$,$WM:()=>R,gWH:()=>_,p6n:()=>U,MGc:()=>G,fwl:()=>q,x4n:()=>W,PtJ:()=>K,YcU:()=>J,BGL:()=>Z,cEq:()=>X,kHe:()=>Y,Q48:()=>Q,CJy:()=>aa,HPq:()=>ta,eo9:()=>ea,jwx:()=>na,mhl:()=>ia,Rtk:()=>ra,ljC:()=>oa,Bxx:()=>la,nyK:()=>ca,fdL:()=>sa,cKx:()=>ha,KBg:()=>ua,S7v:()=>da,HzC:()=>pa,LSj:()=>va,lzv:()=>fa,BNN:()=>ma,Y8j:()=>za,H2O:()=>ba,Hkf:()=>ga,APQ:()=>Ma,L66:()=>ya,WMZ:()=>Va,Vvm:()=>Ha,fqz:()=>Aa,xV2:()=>Ba,oW:()=>Oa,k$g:()=>wa,QUc:()=>Ca,zW7:()=>Ia,lVE:()=>La,rBv:()=>Sa,il7:()=>Pa,JS5:()=>Fa,TUK:()=>ka,E8c:()=>ja,Ll1:()=>Ta,ww:()=>Da,kCe:()=>Ea,n7z:()=>xa,R9u:()=>Na,G7:()=>$a,Sw$:()=>Ra,ydl:()=>_a,MdF:()=>Ua,Ta3:()=>Ga,$qu:()=>qa,UaC:()=>Wa,XMl:()=>Ka,Js2:()=>Ja,Wm0:()=>Za,vOi:()=>Xa,bij:()=>Ya,eh6:()=>Qa,qmO:()=>at,Uhd:()=>tt,DxU:()=>et,T$C:()=>nt,GiK:()=>it,wKW:()=>rt,utP:()=>ot,FyV:()=>lt,p4S:()=>ct,R0b:()=>st,Sdl:()=>ht,V3q:()=>ut,fIJ:()=>dt,EF$:()=>pt,Ps:()=>vt,gWf:()=>ft,oS1:()=>mt,_hv:()=>zt,$z6:()=>bt,atP:()=>gt,C5j:()=>Mt,YlP:()=>yt,Fmo:()=>Vt,fCs:()=>Ht,r$S:()=>At,P1:()=>Bt,niv:()=>Ot,n4P:()=>wt,I4Q:()=>Ct,YCP:()=>It,vcS:()=>Lt,yIz:()=>St,p7o:()=>Pt,nvb:()=>Ft,CDA:()=>kt,SV6:()=>jt,nRP:()=>Tt,xld:()=>Dt,MzH:()=>Et,mQP:()=>xt,kmc:()=>Nt,Qp2:()=>$t,k1k:()=>Rt,x0j:()=>_t,G_g:()=>Ut,whn:()=>Gt,yvC:()=>qt,w8K:()=>Wt,fkB:()=>Kt,u0k:()=>Jt,$c7:()=>Zt,lzt:()=>Xt,jUs:()=>Yt,GWp:()=>p,Pjp:()=>Qt,KvI:()=>ae,$ek:()=>te,pee:()=>ee,X$b:()=>ne,Nxz:()=>ie,qcW:()=>re,g7U:()=>oe,BtN:()=>le,vEG:()=>ce,Znx:()=>se,n1w:()=>he,l9f:()=>ue,d6H:()=>de,OZl:()=>pe,uUd:()=>ve,N$k:()=>fe,K$B:()=>me,ov4:()=>ze,rRv:()=>be,Ask:()=>ge,tK7:()=>Me,HIz:()=>ye,FOL:()=>Ve,jSp:()=>He,Kqp:()=>Ae,g8p:()=>Be,BZn:()=>Oe,nwi:()=>we,d2:()=>Ce,nhN:()=>Ie,TXH:()=>Le,eIp:()=>Se,DtT:()=>Pe,$0W:()=>Fe,nFk:()=>ke,knm:()=>je,wmo:()=>Te,WMY:()=>De,rqI:()=>Ee,Rvs:()=>xe,r0N:()=>Ne,EmC:()=>$e,nOL:()=>Re,NLT:()=>_e,dod:()=>Ue,n8l:()=>Ge,N_J:()=>qe,gwK:()=>We,dNf:()=>Ke,Noy:()=>Je,SC_:()=>Ze,S4:()=>Xe,ix3:()=>Ye,OlQ:()=>Qe,eK4:()=>an,Oqr:()=>tn,wLY:()=>en,S3S:()=>nn,JyY:()=>rn,P4Y:()=>on,pHX:()=>ln,jSo:()=>cn,ODP:()=>sn,bnk:()=>hn,Flg:()=>un,KsB:()=>dn,fqi:()=>pn,jRp:()=>vn,n7L:()=>fn,k5I:()=>mn,PvF:()=>zn,gVZ:()=>bn,CNs:()=>gn,EkS:()=>Mn,Nmi:()=>yn,VzZ:()=>Vn,pGS:()=>Hn,CjC:()=>An,i6v:()=>Bn,bJS:()=>On,$kw:()=>wn,DyN:()=>Cn,lh2:()=>In,VBp:()=>Ln,XkH:()=>Sn,a9F:()=>Pn,Y9_:()=>Fn,mGu:()=>kn,eeY:()=>jn,tqN:()=>Tn,ADI:()=>Dn,ONI:()=>En,_3l:()=>xn,yvH:()=>Nn,i7S:()=>$n,u$w:()=>Rn,AJs:()=>_n,z$Y:()=>Un,io:()=>Gn,QIC:()=>qn,ORl:()=>Wn,Rey:()=>Kn,BZb:()=>Jn,$IU:()=>Zn,zBz:()=>Xn,K10:()=>Yn,saK:()=>Qn,yNt:()=>ai,MlV:()=>ti,RBD:()=>ei,w7q:()=>ni,ciW:()=>ii,XMh:()=>ri,cYS:()=>oi,t1E:()=>li,eh7:()=>ci,n1$:()=>si,d0c:()=>hi,a4T:()=>ui,VYY:()=>di,em6:()=>pi,Tcb:()=>vi,sZW:()=>fi,WD$:()=>mi,T:()=>zi,Phz:()=>bi,DKj:()=>gi,P4_:()=>Mi,Vp2:()=>yi,D7Y:()=>Vi,Kcf:()=>Hi,hmc:()=>Ai,G2Q:()=>Bi,pnD:()=>Oi,r0r:()=>wi,IVx:()=>Ci,tYS:()=>Ii,VMj:()=>Li,fmS:()=>Si,t8:()=>Pi,gq6:()=>Fi,YMH:()=>ki,soo:()=>ji,s1P:()=>Ti,Jfo:()=>Di,AkY:()=>Ei,uuD:()=>xi,eiF:()=>Ni,IrC:()=>$i,igp:()=>Ri,H9R:()=>_i,C6Q:()=>Ui,u97:()=>Gi,XZe:()=>qi,cK7:()=>Wi,j8E:()=>Ki,wrx:()=>Ji,NrI:()=>Zi,L4P:()=>Xi,VLC:()=>Yi,ia_:()=>Qi,A8E:()=>ar,xKP:()=>tr,VNi:()=>er,ywm:()=>nr,knd:()=>ir,ro6:()=>rr,mbL:()=>or,K0N:()=>lr,g3h:()=>cr,N1q:()=>sr,NGI:()=>hr,t3Q:()=>ur,C7Z:()=>dr,K5M:()=>pr,UGO:()=>vr,zmv:()=>fr,_Js:()=>mr,N6W:()=>zr,aGA:()=>br,tI8:()=>gr,mYh:()=>Mr,uNr:()=>yr,ah9:()=>Vr,oy$:()=>Hr,xeu:()=>Ar,VB9:()=>Br,GGn:()=>Or,LLr:()=>wr,$ip:()=>Cr,hKq:()=>Ir,_zT:()=>Lr,WNd:()=>Sr,$xg:()=>Pr,a4k:()=>Fr,_R6:()=>kr,RPO:()=>jr,vPt:()=>Tr,z4n:()=>Dr,lKx:()=>Er,YTw:()=>xr,SUD:()=>Nr,KKi:()=>$r,iaK:()=>Rr,OCT:()=>_r,nZb:()=>Ur,Ynn:()=>Gr,H_q:()=>qr,dYN:()=>Wr,Ekn:()=>Kr,vzb:()=>Jr,cFb:()=>Zr,Aoi:()=>Xr,peH:()=>Yr,nT8:()=>Qr,MVm:()=>ao,zAD:()=>to,PaS:()=>eo,_$q:()=>no,Hc_:()=>io,j2Y:()=>ro,Rsn:()=>oo,E4h:()=>lo,tZt:()=>co,uqb:()=>so,COp:()=>ho,oOT:()=>uo,uxq:()=>po,T_W:()=>vo,yit:()=>fo,kzp:()=>mo,ziT:()=>zo,rM:()=>bo,wBH:()=>go,_rN:()=>Mo,EnN:()=>yo,oRA:()=>Vo,jm6:()=>Ho,DDv:()=>Ao,Zo2:()=>Bo,uVK:()=>Oo,WnY:()=>wo,HyP:()=>Co,VIw:()=>Io,Qid:()=>Lo,As$:()=>So,xkg:()=>Po,b4M:()=>Fo,I9H:()=>ko,gMT:()=>jo,SzU:()=>To,KFI:()=>Do,O48:()=>Eo,bEK:()=>xo,eBp:()=>No,$Zw:()=>$o,R1J:()=>Ro,R5z:()=>_o,sQZ:()=>Uo,qTo:()=>Go,SAB:()=>qo,h11:()=>Wo,RuO:()=>Ko,OVN:()=>Jo,oNP:()=>Zo,zP6:()=>Xo,FQW:()=>Yo,QoX:()=>Qo,rvl:()=>al,vT$:()=>tl,hH8:()=>el,rKJ:()=>nl,eET:()=>il,GEc:()=>rl,Dyn:()=>ol,Et$:()=>ll,A$I:()=>cl,kxN:()=>sl,A3_:()=>hl,new:()=>ul,MbQ:()=>dl,tWE:()=>pl,Afn:()=>vl,he_:()=>fl,Bzp:()=>ml,Gvu:()=>zl,vty:()=>bl,I25:()=>gl,HNd:()=>Ml,CSw:()=>yl,Afi:()=>Vl,hiV:()=>Hl,a4V:()=>Al,D_k:()=>Bl,hpC:()=>Ol,LwH:()=>wl,b1B:()=>Cl,vAm:()=>Il,_yf:()=>Ll,KaO:()=>Sl,zzN:()=>Pl,UOs:()=>Fl,iR5:()=>kl,S9h:()=>jl,ofl:()=>Tl,Tw7:()=>Dl,Z2Z:()=>El,nWJ:()=>xl,FV4:()=>Nl,grc:()=>$l,wg0:()=>Rl,f$5:()=>_l,wAE:()=>Ul,VD2:()=>Gl,gFx:()=>ql,WAw:()=>Wl,VH$:()=>Kl,L3n:()=>Jl,QVi:()=>Zl,WCw:()=>Xl,p8y:()=>Yl,a86:()=>Ql,tDn:()=>ac,zLH:()=>tc,K7D:()=>ec,az2:()=>nc,Ieq:()=>ic,v_S:()=>rc,iYi:()=>oc,RZf:()=>lc,Qlb:()=>cc,VzF:()=>sc,KXx:()=>hc,sKK:()=>uc,l0H:()=>dc,u8_:()=>pc,JIv:()=>vc,YUl:()=>fc,kHb:()=>mc,JKz:()=>zc,Swn:()=>bc,fZq:()=>gc,JfO:()=>Mc,RvK:()=>yc,ANj:()=>Vc,ueK:()=>Hc,vuG:()=>Ac,JVE:()=>Bc,Loc:()=>Oc,TG9:()=>wc,IEF:()=>Cc,RsT:()=>Ic,Pjo:()=>Lc,AvY:()=>Sc,pFV:()=>Pc,wnZ:()=>Fc,OSG:()=>kc,neq:()=>jc,l3H:()=>Tc,jWb:()=>Dc,Wq7:()=>Ec,Mwo:()=>xc,Yi7:()=>Nc,p_n:()=>$c,d1A:()=>Rc,bOW:()=>_c,XzL:()=>Uc,aPK:()=>Gc,FGu:()=>qc,fD4:()=>Wc,EJW:()=>Kc,fYI:()=>Jc,XqM:()=>Zc,HUE:()=>Xc,mcB:()=>Yc,DGU:()=>Qc,Tn4:()=>as,hYX:()=>ts,Rfo:()=>es,so9:()=>ns,_wu:()=>is,jVi:()=>rs,JNi:()=>os,iFy:()=>ls,rwn:()=>cs,vG0:()=>ss,_E8:()=>hs,f6I:()=>us,tFd:()=>ds,rno:()=>ps,NEq:()=>vs,c8U:()=>fs,kWx:()=>ms,fXm:()=>zs,Nzi:()=>bs,mkN:()=>gs,lj6:()=>Ms,Khh:()=>ys,iSS:()=>Vs,MXU:()=>Hs,YgA:()=>As,s0u:()=>Bs,ZtM:()=>Os,cB4:()=>ws,A2O:()=>Cs,vjf:()=>Is,HlU:()=>Ls,cRn:()=>Ss,WRr:()=>Ps,iau:()=>Fs,SVP:()=>ks,g74:()=>js,Hb7:()=>Ts,K2j:()=>Ds,mF1:()=>Es,x2x:()=>xs,gWL:()=>Ns,auv:()=>$s,epQ:()=>Rs,yc6:()=>_s,Z8$:()=>Us,AzZ:()=>Gs,H0l:()=>qs,eBo:()=>Ws,tM4:()=>Ks,WTD:()=>Js,hsX:()=>Zs,WNU:()=>Xs,mzf:()=>Ys,oFl:()=>Qs,$kv:()=>ah,NIN:()=>th,NDd:()=>eh,MHs:()=>nh,$UW:()=>ih,CR_:()=>rh,hnb:()=>oh,Sbj:()=>lh,aRd:()=>ch,jZf:()=>sh,unT:()=>hh,xK9:()=>uh,qa2:()=>dh,C0p:()=>ph,hVG:()=>vh,aLz:()=>fh,AFc:()=>mh,Nvz:()=>zh,t_N:()=>bh,TRz:()=>gh,jJr:()=>Mh,nQ9:()=>yh,PSg:()=>Vh,P6d:()=>Hh,VTu:()=>Ah,NHe:()=>Bh,ixf:()=>Oh,avJ:()=>wh,hjF:()=>Ch,s2N:()=>Ih,akx:()=>Lh,qNy:()=>Sh,qDm:()=>Ph,gSt:()=>Fh,DzX:()=>kh,rn6:()=>jh,rCC:()=>Th,_ND:()=>Dh,nmB:()=>Eh,EJz:()=>xh,frj:()=>Nh,ZQy:()=>$h,_t4:()=>Rh,TCy:()=>_h,KrZ:()=>Uh,hgC:()=>Gh,pHt:()=>qh,WGv:()=>Wh,HlX:()=>Kh,Qxd:()=>Jh,Eu1:()=>Zh,RXn:()=>Xh,FON:()=>Yh,F2U:()=>Qh,y0d:()=>au,_EL:()=>tu,k_T:()=>eu,maT:()=>nu,gLV:()=>iu,LLn:()=>ru,c$u:()=>ou,wsb:()=>lu,WL9:()=>cu,F8P:()=>su,yJN:()=>hu,Oa7:()=>uu,y31:()=>du,jV0:()=>pu,W2x:()=>vu,ybu:()=>fu,QKF:()=>mu,_FA:()=>zu,P3I:()=>bu,Zli:()=>gu,W9z:()=>Mu,nNO:()=>yu,RHl:()=>Vu,qGK:()=>Hu,wg8:()=>Au,AhF:()=>Bu,ta9:()=>Ou,sab:()=>wu,sox:()=>Cu,p6A:()=>Iu,m6y:()=>Lu,SGV:()=>Su,GRE:()=>Pu,AtF:()=>Fu,eJF:()=>ku,lfo:()=>ju,cky:()=>Tu,Ncy:()=>Du,FRd:()=>Eu,gob:()=>xu,LcZ:()=>Nu,oOD:()=>$u,Ac7:()=>Ru,azw:()=>_u,vHl:()=>Uu,j6L:()=>Gu,vWU:()=>qu,c1o:()=>Wu,QTz:()=>Ku,O6A:()=>Ju,ZPq:()=>Zu,yG3:()=>Xu,EET:()=>Yu,DK7:()=>Qu,yHW:()=>ad,s00:()=>td,zaM:()=>ed,Zcn:()=>nd,Y46:()=>id,yAy:()=>rd,zy5:()=>od,zyH:()=>ld,Dhx:()=>cd,k7v:()=>sd,M7A:()=>hd,iF5:()=>ud,ZVB:()=>dd,zEG:()=>pd,igA:()=>vd,orA:()=>fd,kQG:()=>md,rux:()=>zd,r1L:()=>bd,IOy:()=>gd,Te7:()=>Md,L5L:()=>yd,lKq:()=>Vd,xxm:()=>Hd,u8C:()=>Ad,WOM:()=>Bd,AZO:()=>Od,Q7M:()=>wd,Vwd:()=>Cd,XaZ:()=>Id,$HC:()=>Ld,tZ5:()=>Sd,OyK:()=>Pd,nq8:()=>Fd,mq7:()=>kd,Bce:()=>jd,eM:()=>Td,WcR:()=>Dd,AJ8:()=>Ed,usy:()=>xd,jL1:()=>Nd,vId:()=>$d,EzO:()=>Rd,agd:()=>_d,VZH:()=>Ud,Uv_:()=>Gd,Cfs:()=>qd,G49:()=>Wd,RgY:()=>Kd,VO9:()=>Jd,sNo:()=>Zd,DYR:()=>Xd,eUA:()=>Yd,Ynb:()=>Qd,jer:()=>ap,q$g:()=>tp,xX9:()=>ep,GUc:()=>np,RLE:()=>ip,y5:()=>rp,YOR:()=>op,yKu:()=>lp,p0d:()=>cp,hM1:()=>sp,oUn:()=>hp,Jyp:()=>up,xLz:()=>dp,UNU:()=>pp,yXq:()=>vp,mAP:()=>fp,ajv:()=>mp,oqW:()=>zp,YYH:()=>bp,csc:()=>gp,TaD:()=>Mp,q6S:()=>yp,PAb:()=>Vp,WJh:()=>Hp,Zru:()=>Ap,rAx:()=>Bp,ps2:()=>Op,ul4:()=>wp,Fj8:()=>Cp,EYW:()=>Ip,KPx:()=>Lp,x9R:()=>Sp,Ja0:()=>Pp,HZj:()=>Fp,a1C:()=>kp,CLd:()=>jp,MyA:()=>Tp,hjn:()=>Dp,XyE:()=>Ep,DuK:()=>xp,GAi:()=>Np,$i3:()=>$p,A46:()=>Rp,HSA:()=>_p,Mg:()=>Up,yXV:()=>Gp,jmp:()=>qp,jfK:()=>Wp,WoP:()=>Kp,ETj:()=>Jp,KwU:()=>Zp,Tlw:()=>Xp,W88:()=>Yp,My5:()=>Qp,E9m:()=>av,rnt:()=>tv,eA6:()=>ev,wIM:()=>nv,QNB:()=>iv,t8m:()=>rv,N4C:()=>ov,y2d:()=>lv,vSe:()=>cv,AQ:()=>sv,vL1:()=>hv,reo:()=>uv,PaN:()=>dv,tW7:()=>pv,f3e:()=>vv,GbQ:()=>fv,VJW:()=>mv,$nq:()=>zv,Ryo:()=>bv,ys_:()=>gv,qYD:()=>Mv,gpu:()=>yv,HMY:()=>Vv,Arq:()=>Hv,WfC:()=>Av,rsw:()=>Bv,zx0:()=>Ov,$CA:()=>wv,$XH:()=>Cv,qVW:()=>Iv,o6z:()=>Lv,Czj:()=>Sv,xY_:()=>Pv,sNP:()=>Fv,P5f:()=>kv,MYu:()=>jv,WeQ:()=>Tv,EOy:()=>Dv,f:()=>Ev,Hi_:()=>xv,hkE:()=>Nv,$7x:()=>$v,E4S:()=>Rv,NuJ:()=>_v,GYj:()=>Uv,gOI:()=>Gv,gjx:()=>qv,iKS:()=>Wv,aBG:()=>Kv,MmV:()=>Jv,yV9:()=>Zv,kDA:()=>Xv,JJX:()=>Yv,pi2:()=>Qv,Fwy:()=>af,nAd:()=>tf,sWz:()=>ef,cuk:()=>nf,eWA:()=>rf,Rhq:()=>of,Wv3:()=>lf,YmD:()=>cf,Gi0:()=>sf,N7z:()=>hf,K2s:()=>uf,Wf7:()=>df,K8Q:()=>pf,kEx:()=>vf,$xx:()=>ff,Ntn:()=>mf,deY:()=>zf,FYw:()=>bf,agP:()=>gf,Vvz:()=>Mf,FHg:()=>yf,yfP:()=>Vf,c0s:()=>Hf,MVe:()=>Af,$dE:()=>Bf,qX_:()=>Of,J2U:()=>wf,cUy:()=>Cf,qhD:()=>If,Ncg:()=>Lf,GKk:()=>Sf,Kjd:()=>Pf,nI_:()=>Ff,q3S:()=>kf,u$A:()=>jf,rSi:()=>Tf,L5v:()=>Df,ZGd:()=>Ef,BUE:()=>xf,CqF:()=>Nf,$4y:()=>$f,UZG:()=>Rf,CA6:()=>_f,rdT:()=>Uf,Qd2:()=>Gf,AXi:()=>qf,OE7:()=>Wf,tiA:()=>Kf,Ub7:()=>Jf,XI2:()=>Zf,HZh:()=>Xf,D2f:()=>Yf,T7F:()=>Qf,CkZ:()=>am,akn:()=>tm,TnF:()=>em,ZV1:()=>nm,_pQ:()=>im,Spe:()=>rm,Gbt:()=>om,W2s:()=>lm,oap:()=>cm,jLX:()=>sm,GrX:()=>hm,WPR:()=>um,ZW:()=>dm,MJF:()=>pm,N0Z:()=>vm,A3g:()=>fm,McT:()=>mm,dnK:()=>zm,W8A:()=>bm,i3I:()=>gm,e7l:()=>Mm,IuR:()=>ym,FlF:()=>Vm,gPx:()=>Hm,htG:()=>Am,OlH:()=>Bm,Ag5:()=>Om,x5$:()=>wm,_nU:()=>Cm,WAF:()=>Im,oj9:()=>Lm,E27:()=>Sm,fSX:()=>Pm,POB:()=>Fm,DGt:()=>km,_0y:()=>jm,RFg:()=>Tm,zSG:()=>Dm,gVW:()=>Em,cZ3:()=>xm,Oo5:()=>Nm,MZ$:()=>$m,nqX:()=>Rm,Ght:()=>_m,KQk:()=>Um,QcY:()=>Gm,LW6:()=>qm,hJ4:()=>Wm,jvv:()=>Km,cEM:()=>Jm,Lxs:()=>Zm,y$B:()=>Xm,WZy:()=>Ym,MQZ:()=>Qm,RfG:()=>az,zKL:()=>tz,qBk:()=>ez,rwy:()=>nz,tAv:()=>iz,FUP:()=>rz,Jof:()=>oz,JSo:()=>lz,ETc:()=>cz,rfr:()=>sz,S3:()=>hz,KsY:()=>uz,JYK:()=>dz,oxP:()=>pz,dZN:()=>vz,HUF:()=>fz,C5U:()=>mz,Nr6:()=>zz,OBP:()=>bz,_e0:()=>gz,O7q:()=>Mz,y8h:()=>yz,WRF:()=>Vz,Akv:()=>Hz,FIt:()=>Az,r_A:()=>Bz,bPd:()=>Oz,un5:()=>wz,w4u:()=>Cz,J5O:()=>Iz,avs:()=>Lz,xxT:()=>Sz,fcN:()=>Pz,B3Y:()=>Fz,CYn:()=>kz,RUg:()=>jz,EdZ:()=>Tz,wcC:()=>Dz,BGW:()=>Ez,DOj:()=>xz,Hu2:()=>Nz,Ybx:()=>$z,Sle:()=>Rz,G_Q:()=>_z,tVr:()=>Uz,vfk:()=>Gz,oCR:()=>qz,Fzw:()=>Wz,l2U:()=>Kz,_iv:()=>Jz,Svn:()=>Zz,Oyw:()=>Xz,FgQ:()=>Yz,VG8:()=>Qz,RXT:()=>ab,pbm:()=>tb,ijN:()=>eb,OO7:()=>nb,kIL:()=>ib,fhH:()=>rb,D62:()=>ob,$o4:()=>lb,No$:()=>cb,pcF:()=>sb,gRs:()=>hb,ZK2:()=>ub,ALr:()=>db,yyI:()=>pb,QO9:()=>vb,PaI:()=>fb,nCR:()=>mb,Dch:()=>zb,rO8:()=>bb,CJN:()=>gb,uTS:()=>Mb,FKb:()=>yb,CzI:()=>Vb,iPV:()=>Hb,pfP:()=>Ab,mOG:()=>Bb,Ttd:()=>Ob,f1L:()=>wb,HQ2:()=>Cb,rv6:()=>Ib,XTo:()=>Lb,j7I:()=>Sb,vNm:()=>Pb,WSs:()=>Fb,iIu:()=>kb,Aq5:()=>jb,o6o:()=>Tb,s3j:()=>Db,HON:()=>Eb,$Ib:()=>xb,BNe:()=>Nb,N$8:()=>$b,sax:()=>Rb,OjH:()=>_b,aX_:()=>Ub,iqX:()=>Gb,g8Q:()=>qb,BDZ:()=>Wb,rsC:()=>Kb,EcO:()=>Jb,aOn:()=>Zb,POT:()=>Xb,lJj:()=>Yb,JXn:()=>Qb,xqZ:()=>ag,b_U:()=>tg,g2l:()=>eg,dqv:()=>ng,d5d:()=>ig,g1R:()=>rg,N0k:()=>og,ust:()=>lg,Gxk:()=>cg,ptJ:()=>sg,YVL:()=>hg,iTn:()=>ug,USQ:()=>dg,cm8:()=>pg,yhH:()=>vg,MDD:()=>fg,sYz:()=>mg,IpB:()=>zg,BDP:()=>bg,_HZ:()=>gg,NWp:()=>Mg,xi8:()=>yg,bAN:()=>Vg,EeP:()=>Hg,Yqx:()=>Ag,CSB:()=>Bg,ifk:()=>Og,lq6:()=>wg,H7l:()=>Cg,Dah:()=>Ig,EFm:()=>Lg,Ej8:()=>Sg,xWj:()=>Pg,XyW:()=>Fg,sm9:()=>kg,QcS:()=>jg,PUJ:()=>Tg,Za9:()=>Dg,b$2:()=>Eg,cJK:()=>xg,olm:()=>Ng,Wjf:()=>$g,Y6U:()=>Rg,Lln:()=>_g,mlx:()=>Ug,T1o:()=>Gg,Rq4:()=>qg,EQi:()=>Wg,PP4:()=>Kg,jVl:()=>Jg,zlL:()=>Zg,aFN:()=>Xg,Hs8:()=>Yg,vKM:()=>Qg,yrP:()=>aM,Djs:()=>tM,aYp:()=>eM,hNJ:()=>nM,rr1:()=>iM,DoS:()=>rM,niF:()=>oM,C8q:()=>lM,aHb:()=>cM,Qxm:()=>sM,wSJ:()=>hM,K4x:()=>uM,t$R:()=>dM,JSR:()=>pM,Swf:()=>vM,JIg:()=>fM,$14:()=>mM,JQd:()=>zM,uui:()=>bM,N5r:()=>gM,qys:()=>MM,CM6:()=>yM,Sxj:()=>VM,OyA:()=>HM,$oK:()=>AM,WdI:()=>BM,ph3:()=>OM,Ijv:()=>wM,qtp:()=>CM,HSt:()=>IM,pIj:()=>LM,Jdj:()=>SM,AFY:()=>PM,_3c:()=>FM,bu:()=>kM,YAG:()=>jM,VEf:()=>TM,DiT:()=>DM,U9A:()=>EM,kLm:()=>xM,Xg8:()=>NM,psN:()=>$M,s0p:()=>RM,jyS:()=>_M,HHI:()=>UM,Ql_:()=>GM,rZ6:()=>qM,klB:()=>WM,nip:()=>KM,GSI:()=>JM,vcL:()=>ZM,Sp1:()=>XM,GAz:()=>YM,DnR:()=>QM,P8C:()=>ay,iGp:()=>ty,b_Y:()=>ey,Nr_:()=>ny,Yoy:()=>iy,HQ4:()=>ry,oJp:()=>oy,WvV:()=>ly,zsJ:()=>cy,LfJ:()=>sy,tpz:()=>hy,Rvz:()=>uy,fFA:()=>dy,bP8:()=>py,UIq:()=>vy,dwG:()=>fy,$3g:()=>my,jyD:()=>zy,T1q:()=>by,Mci:()=>gy,pb8:()=>My,xBS:()=>yy,YBL:()=>Vy,V6_:()=>Hy,e5V:()=>Ay,oYt:()=>By,lr5:()=>Oy,jj_:()=>wy,L0Q:()=>Cy,rWC:()=>Iy,z76:()=>Ly,$T$:()=>Sy,YSP:()=>Py,BXe:()=>Fy,YM1:()=>ky,bBG:()=>jy,PzY:()=>Ty,Ja9:()=>Dy,EDu:()=>Ey,R$w:()=>xy,XqR:()=>Ny,ZNk:()=>$y,ETC:()=>Ry,Szf:()=>_y,Jwj:()=>Uy,iZZ:()=>Gy,EeO:()=>qy,ypn:()=>Wy,vaB:()=>Ky,f6o:()=>Jy,dU_:()=>Zy,xYq:()=>Xy,aXh:()=>Yy,BG2:()=>Qy,FdU:()=>aV,cX_:()=>tV,wiA:()=>eV,jES:()=>nV,tFD:()=>iV,lI6:()=>rV,nn6:()=>oV,HZk:()=>lV,vrL:()=>cV,KHG:()=>sV,Tet:()=>hV,VqN:()=>uV,IYS:()=>dV,iQ7:()=>pV,JEW:()=>vV,VHp:()=>fV,w_D:()=>mV,ayv:()=>zV,ZyB:()=>bV,prG:()=>gV,AUI:()=>MV,aAC:()=>yV,qmT:()=>VV,GEo:()=>HV,hY9:()=>AV,X1s:()=>BV,YD2:()=>OV,EKW:()=>wV,DM6:()=>CV,jDM:()=>IV,_VC:()=>LV,xId:()=>SV,RnR:()=>PV,fBY:()=>FV,hvI:()=>kV,Nf5:()=>jV,Uex:()=>TV,FLd:()=>DV,wKc:()=>EV,Dlh:()=>xV,APx:()=>NV,mYi:()=>$V,s$o:()=>RV,ASE:()=>_V,Oos:()=>UV,nOz:()=>GV,M1T:()=>qV,OPm:()=>WV,ztl:()=>KV,pwR:()=>JV,gK0:()=>ZV,n1l:()=>XV,H7n:()=>YV,sq6:()=>QV,uqy:()=>aH,ILS:()=>tH,A9:()=>eH,oyf:()=>nH,b7m:()=>iH,jhH:()=>rH,Nuo:()=>oH,aLw:()=>lH,saS:()=>cH,DkS:()=>sH,rI9:()=>hH,nox:()=>uH,jsZ:()=>dH,hTi:()=>pH,Iqc:()=>vH,_hV:()=>fH,FlM:()=>mH,K1O:()=>zH,dst:()=>bH,ewq:()=>gH,mo7:()=>MH,X8t:()=>yH,udp:()=>VH,M81:()=>HH,qmC:()=>AH,b4Q:()=>BH,BmI:()=>OH,A82:()=>wH,MCA:()=>CH,ZmE:()=>IH,Kg_:()=>LH,HHY:()=>SH,Kko:()=>PH,j7$:()=>FH,q9f:()=>kH,hDS:()=>jH,Uz9:()=>TH,K1h:()=>DH,bTh:()=>EH,n_g:()=>xH,wJZ:()=>NH,WO2:()=>$H,eSm:()=>RH,pT1:()=>_H,ymc:()=>UH,ehy:()=>GH,x9k:()=>qH,$V2:()=>WH,G0y:()=>KH,uL:()=>JH,uSV:()=>ZH,HA4:()=>XH,PNX:()=>YH,ddZ:()=>QH,vHp:()=>aA,Bc6:()=>tA,dvm:()=>eA,Y1Z:()=>nA,kwf:()=>iA,BR7:()=>rA,Caz:()=>oA,Wdl:()=>lA,NpS:()=>cA,N9Y:()=>sA,Qr2:()=>hA,wYz:()=>uA,yrV:()=>dA,Fw_:()=>pA,lLE:()=>vA,kxn:()=>fA,Ulf:()=>mA,ViN:()=>zA,zO$:()=>bA,K03:()=>gA,KF5:()=>MA,Ivm:()=>yA,Grw:()=>VA,z_2:()=>HA,uR$:()=>AA,MIh:()=>BA,aEb:()=>OA,XnP:()=>wA,R8C:()=>CA,hOD:()=>IA,cu0:()=>LA,xlC:()=>SA,ZGm:()=>PA,e_V:()=>FA,zm3:()=>kA,Wet:()=>jA,xcC:()=>TA});var n=e(1915),i=e(69558),r=e(67040),o=e(46595),l=e(39143);function c(a,t){var e=Object.keys(a);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(a);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(a,t).enumerable}))),e.push.apply(e,n)}return e}function s(a){for(var t=1;t'),f=d("AlarmFill",''),m=d("AlignBottom",''),z=d("AlignCenter",''),b=d("AlignEnd",''),g=d("AlignMiddle",''),M=d("AlignStart",''),y=d("AlignTop",''),V=d("Alt",''),H=d("App",''),A=d("AppIndicator",''),B=d("Archive",''),O=d("ArchiveFill",''),w=d("Arrow90degDown",''),C=d("Arrow90degLeft",''),I=d("Arrow90degRight",''),L=d("Arrow90degUp",''),S=d("ArrowBarDown",''),P=d("ArrowBarLeft",''),F=d("ArrowBarRight",''),k=d("ArrowBarUp",''),j=d("ArrowClockwise",''),T=d("ArrowCounterclockwise",''),D=d("ArrowDown",''),E=d("ArrowDownCircle",''),x=d("ArrowDownCircleFill",''),N=d("ArrowDownLeft",''),$=d("ArrowDownLeftCircle",''),R=d("ArrowDownLeftCircleFill",''),_=d("ArrowDownLeftSquare",''),U=d("ArrowDownLeftSquareFill",''),G=d("ArrowDownRight",''),q=d("ArrowDownRightCircle",''),W=d("ArrowDownRightCircleFill",''),K=d("ArrowDownRightSquare",''),J=d("ArrowDownRightSquareFill",''),Z=d("ArrowDownShort",''),X=d("ArrowDownSquare",''),Y=d("ArrowDownSquareFill",''),Q=d("ArrowDownUp",''),aa=d("ArrowLeft",''),ta=d("ArrowLeftCircle",''),ea=d("ArrowLeftCircleFill",''),na=d("ArrowLeftRight",''),ia=d("ArrowLeftShort",''),ra=d("ArrowLeftSquare",''),oa=d("ArrowLeftSquareFill",''),la=d("ArrowRepeat",''),ca=d("ArrowReturnLeft",''),sa=d("ArrowReturnRight",''),ha=d("ArrowRight",''),ua=d("ArrowRightCircle",''),da=d("ArrowRightCircleFill",''),pa=d("ArrowRightShort",''),va=d("ArrowRightSquare",''),fa=d("ArrowRightSquareFill",''),ma=d("ArrowUp",''),za=d("ArrowUpCircle",''),ba=d("ArrowUpCircleFill",''),ga=d("ArrowUpLeft",''),Ma=d("ArrowUpLeftCircle",''),ya=d("ArrowUpLeftCircleFill",''),Va=d("ArrowUpLeftSquare",''),Ha=d("ArrowUpLeftSquareFill",''),Aa=d("ArrowUpRight",''),Ba=d("ArrowUpRightCircle",''),Oa=d("ArrowUpRightCircleFill",''),wa=d("ArrowUpRightSquare",''),Ca=d("ArrowUpRightSquareFill",''),Ia=d("ArrowUpShort",''),La=d("ArrowUpSquare",''),Sa=d("ArrowUpSquareFill",''),Pa=d("ArrowsAngleContract",''),Fa=d("ArrowsAngleExpand",''),ka=d("ArrowsCollapse",''),ja=d("ArrowsExpand",''),Ta=d("ArrowsFullscreen",''),Da=d("ArrowsMove",''),Ea=d("AspectRatio",''),xa=d("AspectRatioFill",''),Na=d("Asterisk",''),$a=d("At",''),Ra=d("Award",''),_a=d("AwardFill",''),Ua=d("Back",''),Ga=d("Backspace",''),qa=d("BackspaceFill",''),Wa=d("BackspaceReverse",''),Ka=d("BackspaceReverseFill",''),Ja=d("Badge3d",''),Za=d("Badge3dFill",''),Xa=d("Badge4k",''),Ya=d("Badge4kFill",''),Qa=d("Badge8k",''),at=d("Badge8kFill",''),tt=d("BadgeAd",''),et=d("BadgeAdFill",''),nt=d("BadgeAr",''),it=d("BadgeArFill",''),rt=d("BadgeCc",''),ot=d("BadgeCcFill",''),lt=d("BadgeHd",''),ct=d("BadgeHdFill",''),st=d("BadgeTm",''),ht=d("BadgeTmFill",''),ut=d("BadgeVo",''),dt=d("BadgeVoFill",''),pt=d("BadgeVr",''),vt=d("BadgeVrFill",''),ft=d("BadgeWc",''),mt=d("BadgeWcFill",''),zt=d("Bag",''),bt=d("BagCheck",''),gt=d("BagCheckFill",''),Mt=d("BagDash",''),yt=d("BagDashFill",''),Vt=d("BagFill",''),Ht=d("BagPlus",''),At=d("BagPlusFill",''),Bt=d("BagX",''),Ot=d("BagXFill",''),wt=d("Bank",''),Ct=d("Bank2",''),It=d("BarChart",''),Lt=d("BarChartFill",''),St=d("BarChartLine",''),Pt=d("BarChartLineFill",''),Ft=d("BarChartSteps",''),kt=d("Basket",''),jt=d("Basket2",''),Tt=d("Basket2Fill",''),Dt=d("Basket3",''),Et=d("Basket3Fill",''),xt=d("BasketFill",''),Nt=d("Battery",''),$t=d("BatteryCharging",''),Rt=d("BatteryFull",''),_t=d("BatteryHalf",''),Ut=d("Bell",''),Gt=d("BellFill",''),qt=d("BellSlash",''),Wt=d("BellSlashFill",''),Kt=d("Bezier",''),Jt=d("Bezier2",''),Zt=d("Bicycle",''),Xt=d("Binoculars",''),Yt=d("BinocularsFill",''),Qt=d("BlockquoteLeft",''),ae=d("BlockquoteRight",''),te=d("Book",''),ee=d("BookFill",''),ne=d("BookHalf",''),ie=d("Bookmark",''),re=d("BookmarkCheck",''),oe=d("BookmarkCheckFill",''),le=d("BookmarkDash",''),ce=d("BookmarkDashFill",''),se=d("BookmarkFill",''),he=d("BookmarkHeart",''),ue=d("BookmarkHeartFill",''),de=d("BookmarkPlus",''),pe=d("BookmarkPlusFill",''),ve=d("BookmarkStar",''),fe=d("BookmarkStarFill",''),me=d("BookmarkX",''),ze=d("BookmarkXFill",''),be=d("Bookmarks",''),ge=d("BookmarksFill",''),Me=d("Bookshelf",''),ye=d("Bootstrap",''),Ve=d("BootstrapFill",''),He=d("BootstrapReboot",''),Ae=d("Border",''),Be=d("BorderAll",''),Oe=d("BorderBottom",''),we=d("BorderCenter",''),Ce=d("BorderInner",''),Ie=d("BorderLeft",''),Le=d("BorderMiddle",''),Se=d("BorderOuter",''),Pe=d("BorderRight",''),Fe=d("BorderStyle",''),ke=d("BorderTop",''),je=d("BorderWidth",''),Te=d("BoundingBox",''),De=d("BoundingBoxCircles",''),Ee=d("Box",''),xe=d("BoxArrowDown",''),Ne=d("BoxArrowDownLeft",''),$e=d("BoxArrowDownRight",''),Re=d("BoxArrowInDown",''),_e=d("BoxArrowInDownLeft",''),Ue=d("BoxArrowInDownRight",''),Ge=d("BoxArrowInLeft",''),qe=d("BoxArrowInRight",''),We=d("BoxArrowInUp",''),Ke=d("BoxArrowInUpLeft",''),Je=d("BoxArrowInUpRight",''),Ze=d("BoxArrowLeft",''),Xe=d("BoxArrowRight",''),Ye=d("BoxArrowUp",''),Qe=d("BoxArrowUpLeft",''),an=d("BoxArrowUpRight",''),tn=d("BoxSeam",''),en=d("Braces",''),nn=d("Bricks",''),rn=d("Briefcase",''),on=d("BriefcaseFill",''),ln=d("BrightnessAltHigh",''),cn=d("BrightnessAltHighFill",''),sn=d("BrightnessAltLow",''),hn=d("BrightnessAltLowFill",''),un=d("BrightnessHigh",''),dn=d("BrightnessHighFill",''),pn=d("BrightnessLow",''),vn=d("BrightnessLowFill",''),fn=d("Broadcast",''),mn=d("BroadcastPin",''),zn=d("Brush",''),bn=d("BrushFill",''),gn=d("Bucket",''),Mn=d("BucketFill",''),yn=d("Bug",''),Vn=d("BugFill",''),Hn=d("Building",''),An=d("Bullseye",''),Bn=d("Calculator",''),On=d("CalculatorFill",''),wn=d("Calendar",''),Cn=d("Calendar2",''),In=d("Calendar2Check",''),Ln=d("Calendar2CheckFill",''),Sn=d("Calendar2Date",''),Pn=d("Calendar2DateFill",''),Fn=d("Calendar2Day",''),kn=d("Calendar2DayFill",''),jn=d("Calendar2Event",''),Tn=d("Calendar2EventFill",''),Dn=d("Calendar2Fill",''),En=d("Calendar2Minus",''),xn=d("Calendar2MinusFill",''),Nn=d("Calendar2Month",''),$n=d("Calendar2MonthFill",''),Rn=d("Calendar2Plus",''),_n=d("Calendar2PlusFill",''),Un=d("Calendar2Range",''),Gn=d("Calendar2RangeFill",''),qn=d("Calendar2Week",''),Wn=d("Calendar2WeekFill",''),Kn=d("Calendar2X",''),Jn=d("Calendar2XFill",''),Zn=d("Calendar3",''),Xn=d("Calendar3Event",''),Yn=d("Calendar3EventFill",''),Qn=d("Calendar3Fill",''),ai=d("Calendar3Range",''),ti=d("Calendar3RangeFill",''),ei=d("Calendar3Week",''),ni=d("Calendar3WeekFill",''),ii=d("Calendar4",''),ri=d("Calendar4Event",''),oi=d("Calendar4Range",''),li=d("Calendar4Week",''),ci=d("CalendarCheck",''),si=d("CalendarCheckFill",''),hi=d("CalendarDate",''),ui=d("CalendarDateFill",''),di=d("CalendarDay",''),pi=d("CalendarDayFill",''),vi=d("CalendarEvent",''),fi=d("CalendarEventFill",''),mi=d("CalendarFill",''),zi=d("CalendarMinus",''),bi=d("CalendarMinusFill",''),gi=d("CalendarMonth",''),Mi=d("CalendarMonthFill",''),yi=d("CalendarPlus",''),Vi=d("CalendarPlusFill",''),Hi=d("CalendarRange",''),Ai=d("CalendarRangeFill",''),Bi=d("CalendarWeek",''),Oi=d("CalendarWeekFill",''),wi=d("CalendarX",''),Ci=d("CalendarXFill",''),Ii=d("Camera",''),Li=d("Camera2",''),Si=d("CameraFill",''),Pi=d("CameraReels",''),Fi=d("CameraReelsFill",''),ki=d("CameraVideo",''),ji=d("CameraVideoFill",''),Ti=d("CameraVideoOff",''),Di=d("CameraVideoOffFill",''),Ei=d("Capslock",''),xi=d("CapslockFill",''),Ni=d("CardChecklist",''),$i=d("CardHeading",''),Ri=d("CardImage",''),_i=d("CardList",''),Ui=d("CardText",''),Gi=d("CaretDown",''),qi=d("CaretDownFill",''),Wi=d("CaretDownSquare",''),Ki=d("CaretDownSquareFill",''),Ji=d("CaretLeft",''),Zi=d("CaretLeftFill",''),Xi=d("CaretLeftSquare",''),Yi=d("CaretLeftSquareFill",''),Qi=d("CaretRight",''),ar=d("CaretRightFill",''),tr=d("CaretRightSquare",''),er=d("CaretRightSquareFill",''),nr=d("CaretUp",''),ir=d("CaretUpFill",''),rr=d("CaretUpSquare",''),or=d("CaretUpSquareFill",''),lr=d("Cart",''),cr=d("Cart2",''),sr=d("Cart3",''),hr=d("Cart4",''),ur=d("CartCheck",''),dr=d("CartCheckFill",''),pr=d("CartDash",''),vr=d("CartDashFill",''),fr=d("CartFill",''),mr=d("CartPlus",''),zr=d("CartPlusFill",''),br=d("CartX",''),gr=d("CartXFill",''),Mr=d("Cash",''),yr=d("CashCoin",''),Vr=d("CashStack",''),Hr=d("Cast",''),Ar=d("Chat",''),Br=d("ChatDots",''),Or=d("ChatDotsFill",''),wr=d("ChatFill",''),Cr=d("ChatLeft",''),Ir=d("ChatLeftDots",''),Lr=d("ChatLeftDotsFill",''),Sr=d("ChatLeftFill",''),Pr=d("ChatLeftQuote",''),Fr=d("ChatLeftQuoteFill",''),kr=d("ChatLeftText",''),jr=d("ChatLeftTextFill",''),Tr=d("ChatQuote",''),Dr=d("ChatQuoteFill",''),Er=d("ChatRight",''),xr=d("ChatRightDots",''),Nr=d("ChatRightDotsFill",''),$r=d("ChatRightFill",''),Rr=d("ChatRightQuote",''),_r=d("ChatRightQuoteFill",''),Ur=d("ChatRightText",''),Gr=d("ChatRightTextFill",''),qr=d("ChatSquare",''),Wr=d("ChatSquareDots",''),Kr=d("ChatSquareDotsFill",''),Jr=d("ChatSquareFill",''),Zr=d("ChatSquareQuote",''),Xr=d("ChatSquareQuoteFill",''),Yr=d("ChatSquareText",''),Qr=d("ChatSquareTextFill",''),ao=d("ChatText",''),to=d("ChatTextFill",''),eo=d("Check",''),no=d("Check2",''),io=d("Check2All",''),ro=d("Check2Circle",''),oo=d("Check2Square",''),lo=d("CheckAll",''),co=d("CheckCircle",''),so=d("CheckCircleFill",''),ho=d("CheckLg",''),uo=d("CheckSquare",''),po=d("CheckSquareFill",''),vo=d("ChevronBarContract",''),fo=d("ChevronBarDown",''),mo=d("ChevronBarExpand",''),zo=d("ChevronBarLeft",''),bo=d("ChevronBarRight",''),go=d("ChevronBarUp",''),Mo=d("ChevronCompactDown",''),yo=d("ChevronCompactLeft",''),Vo=d("ChevronCompactRight",''),Ho=d("ChevronCompactUp",''),Ao=d("ChevronContract",''),Bo=d("ChevronDoubleDown",''),Oo=d("ChevronDoubleLeft",''),wo=d("ChevronDoubleRight",''),Co=d("ChevronDoubleUp",''),Io=d("ChevronDown",''),Lo=d("ChevronExpand",''),So=d("ChevronLeft",''),Po=d("ChevronRight",''),Fo=d("ChevronUp",''),ko=d("Circle",''),jo=d("CircleFill",''),To=d("CircleHalf",''),Do=d("CircleSquare",''),Eo=d("Clipboard",''),xo=d("ClipboardCheck",''),No=d("ClipboardData",''),$o=d("ClipboardMinus",''),Ro=d("ClipboardPlus",''),_o=d("ClipboardX",''),Uo=d("Clock",''),Go=d("ClockFill",''),qo=d("ClockHistory",''),Wo=d("Cloud",''),Ko=d("CloudArrowDown",''),Jo=d("CloudArrowDownFill",''),Zo=d("CloudArrowUp",''),Xo=d("CloudArrowUpFill",''),Yo=d("CloudCheck",''),Qo=d("CloudCheckFill",''),al=d("CloudDownload",''),tl=d("CloudDownloadFill",''),el=d("CloudDrizzle",''),nl=d("CloudDrizzleFill",''),il=d("CloudFill",''),rl=d("CloudFog",''),ol=d("CloudFog2",''),ll=d("CloudFog2Fill",''),cl=d("CloudFogFill",''),sl=d("CloudHail",''),hl=d("CloudHailFill",''),ul=d("CloudHaze",''),dl=d("CloudHaze1",''),pl=d("CloudHaze2Fill",''),vl=d("CloudHazeFill",''),fl=d("CloudLightning",''),ml=d("CloudLightningFill",''),zl=d("CloudLightningRain",''),bl=d("CloudLightningRainFill",''),gl=d("CloudMinus",''),Ml=d("CloudMinusFill",''),yl=d("CloudMoon",''),Vl=d("CloudMoonFill",''),Hl=d("CloudPlus",''),Al=d("CloudPlusFill",''),Bl=d("CloudRain",''),Ol=d("CloudRainFill",''),wl=d("CloudRainHeavy",''),Cl=d("CloudRainHeavyFill",''),Il=d("CloudSlash",''),Ll=d("CloudSlashFill",''),Sl=d("CloudSleet",''),Pl=d("CloudSleetFill",''),Fl=d("CloudSnow",''),kl=d("CloudSnowFill",''),jl=d("CloudSun",''),Tl=d("CloudSunFill",''),Dl=d("CloudUpload",''),El=d("CloudUploadFill",''),xl=d("Clouds",''),Nl=d("CloudsFill",''),$l=d("Cloudy",''),Rl=d("CloudyFill",''),_l=d("Code",''),Ul=d("CodeSlash",''),Gl=d("CodeSquare",''),ql=d("Coin",''),Wl=d("Collection",''),Kl=d("CollectionFill",''),Jl=d("CollectionPlay",''),Zl=d("CollectionPlayFill",''),Xl=d("Columns",''),Yl=d("ColumnsGap",''),Ql=d("Command",''),ac=d("Compass",''),tc=d("CompassFill",''),ec=d("Cone",''),nc=d("ConeStriped",''),ic=d("Controller",''),rc=d("Cpu",''),oc=d("CpuFill",''),lc=d("CreditCard",''),cc=d("CreditCard2Back",''),sc=d("CreditCard2BackFill",''),hc=d("CreditCard2Front",''),uc=d("CreditCard2FrontFill",''),dc=d("CreditCardFill",''),pc=d("Crop",''),vc=d("Cup",''),fc=d("CupFill",''),mc=d("CupStraw",''),zc=d("CurrencyBitcoin",''),bc=d("CurrencyDollar",''),gc=d("CurrencyEuro",''),Mc=d("CurrencyExchange",''),yc=d("CurrencyPound",''),Vc=d("CurrencyYen",''),Hc=d("Cursor",''),Ac=d("CursorFill",''),Bc=d("CursorText",''),Oc=d("Dash",''),wc=d("DashCircle",''),Cc=d("DashCircleDotted",''),Ic=d("DashCircleFill",''),Lc=d("DashLg",''),Sc=d("DashSquare",''),Pc=d("DashSquareDotted",''),Fc=d("DashSquareFill",''),kc=d("Diagram2",''),jc=d("Diagram2Fill",''),Tc=d("Diagram3",''),Dc=d("Diagram3Fill",''),Ec=d("Diamond",''),xc=d("DiamondFill",''),Nc=d("DiamondHalf",''),$c=d("Dice1",''),Rc=d("Dice1Fill",''),_c=d("Dice2",''),Uc=d("Dice2Fill",''),Gc=d("Dice3",''),qc=d("Dice3Fill",''),Wc=d("Dice4",''),Kc=d("Dice4Fill",''),Jc=d("Dice5",''),Zc=d("Dice5Fill",''),Xc=d("Dice6",''),Yc=d("Dice6Fill",''),Qc=d("Disc",''),as=d("DiscFill",''),ts=d("Discord",''),es=d("Display",''),ns=d("DisplayFill",''),is=d("DistributeHorizontal",''),rs=d("DistributeVertical",''),os=d("DoorClosed",''),ls=d("DoorClosedFill",''),cs=d("DoorOpen",''),ss=d("DoorOpenFill",''),hs=d("Dot",''),us=d("Download",''),ds=d("Droplet",''),ps=d("DropletFill",''),vs=d("DropletHalf",''),fs=d("Earbuds",''),ms=d("Easel",''),zs=d("EaselFill",''),bs=d("Egg",''),gs=d("EggFill",''),Ms=d("EggFried",''),ys=d("Eject",''),Vs=d("EjectFill",''),Hs=d("EmojiAngry",''),As=d("EmojiAngryFill",''),Bs=d("EmojiDizzy",''),Os=d("EmojiDizzyFill",''),ws=d("EmojiExpressionless",''),Cs=d("EmojiExpressionlessFill",''),Is=d("EmojiFrown",''),Ls=d("EmojiFrownFill",''),Ss=d("EmojiHeartEyes",''),Ps=d("EmojiHeartEyesFill",''),Fs=d("EmojiLaughing",''),ks=d("EmojiLaughingFill",''),js=d("EmojiNeutral",''),Ts=d("EmojiNeutralFill",''),Ds=d("EmojiSmile",''),Es=d("EmojiSmileFill",''),xs=d("EmojiSmileUpsideDown",''),Ns=d("EmojiSmileUpsideDownFill",''),$s=d("EmojiSunglasses",''),Rs=d("EmojiSunglassesFill",''),_s=d("EmojiWink",''),Us=d("EmojiWinkFill",''),Gs=d("Envelope",''),qs=d("EnvelopeFill",''),Ws=d("EnvelopeOpen",''),Ks=d("EnvelopeOpenFill",''),Js=d("Eraser",''),Zs=d("EraserFill",''),Xs=d("Exclamation",''),Ys=d("ExclamationCircle",''),Qs=d("ExclamationCircleFill",''),ah=d("ExclamationDiamond",''),th=d("ExclamationDiamondFill",''),eh=d("ExclamationLg",''),nh=d("ExclamationOctagon",''),ih=d("ExclamationOctagonFill",''),rh=d("ExclamationSquare",''),oh=d("ExclamationSquareFill",''),lh=d("ExclamationTriangle",''),ch=d("ExclamationTriangleFill",''),sh=d("Exclude",''),hh=d("Eye",''),uh=d("EyeFill",''),dh=d("EyeSlash",''),ph=d("EyeSlashFill",''),vh=d("Eyedropper",''),fh=d("Eyeglasses",''),mh=d("Facebook",''),zh=d("File",''),bh=d("FileArrowDown",''),gh=d("FileArrowDownFill",''),Mh=d("FileArrowUp",''),yh=d("FileArrowUpFill",''),Vh=d("FileBarGraph",''),Hh=d("FileBarGraphFill",''),Ah=d("FileBinary",''),Bh=d("FileBinaryFill",''),Oh=d("FileBreak",''),wh=d("FileBreakFill",''),Ch=d("FileCheck",''),Ih=d("FileCheckFill",''),Lh=d("FileCode",''),Sh=d("FileCodeFill",''),Ph=d("FileDiff",''),Fh=d("FileDiffFill",''),kh=d("FileEarmark",''),jh=d("FileEarmarkArrowDown",''),Th=d("FileEarmarkArrowDownFill",''),Dh=d("FileEarmarkArrowUp",''),Eh=d("FileEarmarkArrowUpFill",''),xh=d("FileEarmarkBarGraph",''),Nh=d("FileEarmarkBarGraphFill",''),$h=d("FileEarmarkBinary",''),Rh=d("FileEarmarkBinaryFill",''),_h=d("FileEarmarkBreak",''),Uh=d("FileEarmarkBreakFill",''),Gh=d("FileEarmarkCheck",''),qh=d("FileEarmarkCheckFill",''),Wh=d("FileEarmarkCode",''),Kh=d("FileEarmarkCodeFill",''),Jh=d("FileEarmarkDiff",''),Zh=d("FileEarmarkDiffFill",''),Xh=d("FileEarmarkEasel",''),Yh=d("FileEarmarkEaselFill",''),Qh=d("FileEarmarkExcel",''),au=d("FileEarmarkExcelFill",''),tu=d("FileEarmarkFill",''),eu=d("FileEarmarkFont",''),nu=d("FileEarmarkFontFill",''),iu=d("FileEarmarkImage",''),ru=d("FileEarmarkImageFill",''),ou=d("FileEarmarkLock",''),lu=d("FileEarmarkLock2",''),cu=d("FileEarmarkLock2Fill",''),su=d("FileEarmarkLockFill",''),hu=d("FileEarmarkMedical",''),uu=d("FileEarmarkMedicalFill",''),du=d("FileEarmarkMinus",''),pu=d("FileEarmarkMinusFill",''),vu=d("FileEarmarkMusic",''),fu=d("FileEarmarkMusicFill",''),mu=d("FileEarmarkPdf",''),zu=d("FileEarmarkPdfFill",''),bu=d("FileEarmarkPerson",''),gu=d("FileEarmarkPersonFill",''),Mu=d("FileEarmarkPlay",''),yu=d("FileEarmarkPlayFill",''),Vu=d("FileEarmarkPlus",''),Hu=d("FileEarmarkPlusFill",''),Au=d("FileEarmarkPost",''),Bu=d("FileEarmarkPostFill",''),Ou=d("FileEarmarkPpt",''),wu=d("FileEarmarkPptFill",''),Cu=d("FileEarmarkRichtext",''),Iu=d("FileEarmarkRichtextFill",''),Lu=d("FileEarmarkRuled",''),Su=d("FileEarmarkRuledFill",''),Pu=d("FileEarmarkSlides",''),Fu=d("FileEarmarkSlidesFill",''),ku=d("FileEarmarkSpreadsheet",''),ju=d("FileEarmarkSpreadsheetFill",''),Tu=d("FileEarmarkText",''),Du=d("FileEarmarkTextFill",''),Eu=d("FileEarmarkWord",''),xu=d("FileEarmarkWordFill",''),Nu=d("FileEarmarkX",''),$u=d("FileEarmarkXFill",''),Ru=d("FileEarmarkZip",''),_u=d("FileEarmarkZipFill",''),Uu=d("FileEasel",''),Gu=d("FileEaselFill",''),qu=d("FileExcel",''),Wu=d("FileExcelFill",''),Ku=d("FileFill",''),Ju=d("FileFont",''),Zu=d("FileFontFill",''),Xu=d("FileImage",''),Yu=d("FileImageFill",''),Qu=d("FileLock",''),ad=d("FileLock2",''),td=d("FileLock2Fill",''),ed=d("FileLockFill",''),nd=d("FileMedical",''),id=d("FileMedicalFill",''),rd=d("FileMinus",''),od=d("FileMinusFill",''),ld=d("FileMusic",''),cd=d("FileMusicFill",''),sd=d("FilePdf",''),hd=d("FilePdfFill",''),ud=d("FilePerson",''),dd=d("FilePersonFill",''),pd=d("FilePlay",''),vd=d("FilePlayFill",''),fd=d("FilePlus",''),md=d("FilePlusFill",''),zd=d("FilePost",''),bd=d("FilePostFill",''),gd=d("FilePpt",''),Md=d("FilePptFill",''),yd=d("FileRichtext",''),Vd=d("FileRichtextFill",''),Hd=d("FileRuled",''),Ad=d("FileRuledFill",''),Bd=d("FileSlides",''),Od=d("FileSlidesFill",''),wd=d("FileSpreadsheet",''),Cd=d("FileSpreadsheetFill",''),Id=d("FileText",''),Ld=d("FileTextFill",''),Sd=d("FileWord",''),Pd=d("FileWordFill",''),Fd=d("FileX",''),kd=d("FileXFill",''),jd=d("FileZip",''),Td=d("FileZipFill",''),Dd=d("Files",''),Ed=d("FilesAlt",''),xd=d("Film",''),Nd=d("Filter",''),$d=d("FilterCircle",''),Rd=d("FilterCircleFill",''),_d=d("FilterLeft",''),Ud=d("FilterRight",''),Gd=d("FilterSquare",''),qd=d("FilterSquareFill",''),Wd=d("Flag",''),Kd=d("FlagFill",''),Jd=d("Flower1",''),Zd=d("Flower2",''),Xd=d("Flower3",''),Yd=d("Folder",''),Qd=d("Folder2",''),ap=d("Folder2Open",''),tp=d("FolderCheck",''),ep=d("FolderFill",''),np=d("FolderMinus",''),ip=d("FolderPlus",''),rp=d("FolderSymlink",''),op=d("FolderSymlinkFill",''),lp=d("FolderX",''),cp=d("Fonts",''),sp=d("Forward",''),hp=d("ForwardFill",''),up=d("Front",''),dp=d("Fullscreen",''),pp=d("FullscreenExit",''),vp=d("Funnel",''),fp=d("FunnelFill",''),mp=d("Gear",''),zp=d("GearFill",''),bp=d("GearWide",''),gp=d("GearWideConnected",''),Mp=d("Gem",''),yp=d("GenderAmbiguous",''),Vp=d("GenderFemale",''),Hp=d("GenderMale",''),Ap=d("GenderTrans",''),Bp=d("Geo",''),Op=d("GeoAlt",''),wp=d("GeoAltFill",''),Cp=d("GeoFill",''),Ip=d("Gift",''),Lp=d("GiftFill",''),Sp=d("Github",''),Pp=d("Globe",''),Fp=d("Globe2",''),kp=d("Google",''),jp=d("GraphDown",''),Tp=d("GraphUp",''),Dp=d("Grid",''),Ep=d("Grid1x2",''),xp=d("Grid1x2Fill",''),Np=d("Grid3x2",''),$p=d("Grid3x2Gap",''),Rp=d("Grid3x2GapFill",''),_p=d("Grid3x3",''),Up=d("Grid3x3Gap",''),Gp=d("Grid3x3GapFill",''),qp=d("GridFill",''),Wp=d("GripHorizontal",''),Kp=d("GripVertical",''),Jp=d("Hammer",''),Zp=d("HandIndex",''),Xp=d("HandIndexFill",''),Yp=d("HandIndexThumb",''),Qp=d("HandIndexThumbFill",''),av=d("HandThumbsDown",''),tv=d("HandThumbsDownFill",''),ev=d("HandThumbsUp",''),nv=d("HandThumbsUpFill",''),iv=d("Handbag",''),rv=d("HandbagFill",''),ov=d("Hash",''),lv=d("Hdd",''),cv=d("HddFill",''),sv=d("HddNetwork",''),hv=d("HddNetworkFill",''),uv=d("HddRack",''),dv=d("HddRackFill",''),pv=d("HddStack",''),vv=d("HddStackFill",''),fv=d("Headphones",''),mv=d("Headset",''),zv=d("HeadsetVr",''),bv=d("Heart",''),gv=d("HeartFill",''),Mv=d("HeartHalf",''),yv=d("Heptagon",''),Vv=d("HeptagonFill",''),Hv=d("HeptagonHalf",''),Av=d("Hexagon",''),Bv=d("HexagonFill",''),Ov=d("HexagonHalf",''),wv=d("Hourglass",''),Cv=d("HourglassBottom",''),Iv=d("HourglassSplit",''),Lv=d("HourglassTop",''),Sv=d("House",''),Pv=d("HouseDoor",''),Fv=d("HouseDoorFill",''),kv=d("HouseFill",''),jv=d("Hr",''),Tv=d("Hurricane",''),Dv=d("Image",''),Ev=d("ImageAlt",''),xv=d("ImageFill",''),Nv=d("Images",''),$v=d("Inbox",''),Rv=d("InboxFill",''),_v=d("Inboxes",''),Uv=d("InboxesFill",''),Gv=d("Info",''),qv=d("InfoCircle",''),Wv=d("InfoCircleFill",''),Kv=d("InfoLg",''),Jv=d("InfoSquare",''),Zv=d("InfoSquareFill",''),Xv=d("InputCursor",''),Yv=d("InputCursorText",''),Qv=d("Instagram",''),af=d("Intersect",''),tf=d("Journal",''),ef=d("JournalAlbum",''),nf=d("JournalArrowDown",''),rf=d("JournalArrowUp",''),of=d("JournalBookmark",''),lf=d("JournalBookmarkFill",''),cf=d("JournalCheck",''),sf=d("JournalCode",''),hf=d("JournalMedical",''),uf=d("JournalMinus",''),df=d("JournalPlus",''),pf=d("JournalRichtext",''),vf=d("JournalText",''),ff=d("JournalX",''),mf=d("Journals",''),zf=d("Joystick",''),bf=d("Justify",''),gf=d("JustifyLeft",''),Mf=d("JustifyRight",''),yf=d("Kanban",''),Vf=d("KanbanFill",''),Hf=d("Key",''),Af=d("KeyFill",''),Bf=d("Keyboard",''),Of=d("KeyboardFill",''),wf=d("Ladder",''),Cf=d("Lamp",''),If=d("LampFill",''),Lf=d("Laptop",''),Sf=d("LaptopFill",''),Pf=d("LayerBackward",''),Ff=d("LayerForward",''),kf=d("Layers",''),jf=d("LayersFill",''),Tf=d("LayersHalf",''),Df=d("LayoutSidebar",''),Ef=d("LayoutSidebarInset",''),xf=d("LayoutSidebarInsetReverse",''),Nf=d("LayoutSidebarReverse",''),$f=d("LayoutSplit",''),Rf=d("LayoutTextSidebar",''),_f=d("LayoutTextSidebarReverse",''),Uf=d("LayoutTextWindow",''),Gf=d("LayoutTextWindowReverse",''),qf=d("LayoutThreeColumns",''),Wf=d("LayoutWtf",''),Kf=d("LifePreserver",''),Jf=d("Lightbulb",''),Zf=d("LightbulbFill",''),Xf=d("LightbulbOff",''),Yf=d("LightbulbOffFill",''),Qf=d("Lightning",''),am=d("LightningCharge",''),tm=d("LightningChargeFill",''),em=d("LightningFill",''),nm=d("Link",''),im=d("Link45deg",''),rm=d("Linkedin",''),om=d("List",''),lm=d("ListCheck",''),cm=d("ListNested",''),sm=d("ListOl",''),hm=d("ListStars",''),um=d("ListTask",''),dm=d("ListUl",''),pm=d("Lock",''),vm=d("LockFill",''),fm=d("Mailbox",''),mm=d("Mailbox2",''),zm=d("Map",''),bm=d("MapFill",''),gm=d("Markdown",''),Mm=d("MarkdownFill",''),ym=d("Mask",''),Vm=d("Mastodon",''),Hm=d("Megaphone",''),Am=d("MegaphoneFill",''),Bm=d("MenuApp",''),Om=d("MenuAppFill",''),wm=d("MenuButton",''),Cm=d("MenuButtonFill",''),Im=d("MenuButtonWide",''),Lm=d("MenuButtonWideFill",''),Sm=d("MenuDown",''),Pm=d("MenuUp",''),Fm=d("Messenger",''),km=d("Mic",''),jm=d("MicFill",''),Tm=d("MicMute",''),Dm=d("MicMuteFill",''),Em=d("Minecart",''),xm=d("MinecartLoaded",''),Nm=d("Moisture",''),$m=d("Moon",''),Rm=d("MoonFill",''),_m=d("MoonStars",''),Um=d("MoonStarsFill",''),Gm=d("Mouse",''),qm=d("Mouse2",''),Wm=d("Mouse2Fill",''),Km=d("Mouse3",''),Jm=d("Mouse3Fill",''),Zm=d("MouseFill",''),Xm=d("MusicNote",''),Ym=d("MusicNoteBeamed",''),Qm=d("MusicNoteList",''),az=d("MusicPlayer",''),tz=d("MusicPlayerFill",''),ez=d("Newspaper",''),nz=d("NodeMinus",''),iz=d("NodeMinusFill",''),rz=d("NodePlus",''),oz=d("NodePlusFill",''),lz=d("Nut",''),cz=d("NutFill",''),sz=d("Octagon",''),hz=d("OctagonFill",''),uz=d("OctagonHalf",''),dz=d("Option",''),pz=d("Outlet",''),vz=d("PaintBucket",''),fz=d("Palette",''),mz=d("Palette2",''),zz=d("PaletteFill",''),bz=d("Paperclip",''),gz=d("Paragraph",''),Mz=d("PatchCheck",''),yz=d("PatchCheckFill",''),Vz=d("PatchExclamation",''),Hz=d("PatchExclamationFill",''),Az=d("PatchMinus",''),Bz=d("PatchMinusFill",''),Oz=d("PatchPlus",''),wz=d("PatchPlusFill",''),Cz=d("PatchQuestion",''),Iz=d("PatchQuestionFill",''),Lz=d("Pause",''),Sz=d("PauseBtn",''),Pz=d("PauseBtnFill",''),Fz=d("PauseCircle",''),kz=d("PauseCircleFill",''),jz=d("PauseFill",''),Tz=d("Peace",''),Dz=d("PeaceFill",''),Ez=d("Pen",''),xz=d("PenFill",''),Nz=d("Pencil",''),$z=d("PencilFill",''),Rz=d("PencilSquare",''),_z=d("Pentagon",''),Uz=d("PentagonFill",''),Gz=d("PentagonHalf",''),qz=d("People",''),Wz=d("PeopleFill",''),Kz=d("Percent",''),Jz=d("Person",''),Zz=d("PersonBadge",''),Xz=d("PersonBadgeFill",''),Yz=d("PersonBoundingBox",''),Qz=d("PersonCheck",''),ab=d("PersonCheckFill",''),tb=d("PersonCircle",''),eb=d("PersonDash",''),nb=d("PersonDashFill",''),ib=d("PersonFill",''),rb=d("PersonLinesFill",''),ob=d("PersonPlus",''),lb=d("PersonPlusFill",''),cb=d("PersonSquare",''),sb=d("PersonX",''),hb=d("PersonXFill",''),ub=d("Phone",''),db=d("PhoneFill",''),pb=d("PhoneLandscape",''),vb=d("PhoneLandscapeFill",''),fb=d("PhoneVibrate",''),mb=d("PhoneVibrateFill",''),zb=d("PieChart",''),bb=d("PieChartFill",''),gb=d("PiggyBank",''),Mb=d("PiggyBankFill",''),yb=d("Pin",''),Vb=d("PinAngle",''),Hb=d("PinAngleFill",''),Ab=d("PinFill",''),Bb=d("PinMap",''),Ob=d("PinMapFill",''),wb=d("Pip",''),Cb=d("PipFill",''),Ib=d("Play",''),Lb=d("PlayBtn",''),Sb=d("PlayBtnFill",''),Pb=d("PlayCircle",''),Fb=d("PlayCircleFill",''),kb=d("PlayFill",''),jb=d("Plug",''),Tb=d("PlugFill",''),Db=d("Plus",''),Eb=d("PlusCircle",''),xb=d("PlusCircleDotted",''),Nb=d("PlusCircleFill",''),$b=d("PlusLg",''),Rb=d("PlusSquare",''),_b=d("PlusSquareDotted",''),Ub=d("PlusSquareFill",''),Gb=d("Power",''),qb=d("Printer",''),Wb=d("PrinterFill",''),Kb=d("Puzzle",''),Jb=d("PuzzleFill",''),Zb=d("Question",''),Xb=d("QuestionCircle",''),Yb=d("QuestionCircleFill",''),Qb=d("QuestionDiamond",''),ag=d("QuestionDiamondFill",''),tg=d("QuestionLg",''),eg=d("QuestionOctagon",''),ng=d("QuestionOctagonFill",''),ig=d("QuestionSquare",''),rg=d("QuestionSquareFill",''),og=d("Rainbow",''),lg=d("Receipt",''),cg=d("ReceiptCutoff",''),sg=d("Reception0",''),hg=d("Reception1",''),ug=d("Reception2",''),dg=d("Reception3",''),pg=d("Reception4",''),vg=d("Record",''),fg=d("Record2",''),mg=d("Record2Fill",''),zg=d("RecordBtn",''),bg=d("RecordBtnFill",''),gg=d("RecordCircle",''),Mg=d("RecordCircleFill",''),yg=d("RecordFill",''),Vg=d("Recycle",''),Hg=d("Reddit",''),Ag=d("Reply",''),Bg=d("ReplyAll",''),Og=d("ReplyAllFill",''),wg=d("ReplyFill",''),Cg=d("Rss",''),Ig=d("RssFill",''),Lg=d("Rulers",''),Sg=d("Safe",''),Pg=d("Safe2",''),Fg=d("Safe2Fill",''),kg=d("SafeFill",''),jg=d("Save",''),Tg=d("Save2",''),Dg=d("Save2Fill",''),Eg=d("SaveFill",''),xg=d("Scissors",''),Ng=d("Screwdriver",''),$g=d("SdCard",''),Rg=d("SdCardFill",''),_g=d("Search",''),Ug=d("SegmentedNav",''),Gg=d("Server",''),qg=d("Share",''),Wg=d("ShareFill",''),Kg=d("Shield",''),Jg=d("ShieldCheck",''),Zg=d("ShieldExclamation",''),Xg=d("ShieldFill",''),Yg=d("ShieldFillCheck",''),Qg=d("ShieldFillExclamation",''),aM=d("ShieldFillMinus",''),tM=d("ShieldFillPlus",''),eM=d("ShieldFillX",''),nM=d("ShieldLock",''),iM=d("ShieldLockFill",''),rM=d("ShieldMinus",''),oM=d("ShieldPlus",''),lM=d("ShieldShaded",''),cM=d("ShieldSlash",''),sM=d("ShieldSlashFill",''),hM=d("ShieldX",''),uM=d("Shift",''),dM=d("ShiftFill",''),pM=d("Shop",''),vM=d("ShopWindow",''),fM=d("Shuffle",''),mM=d("Signpost",''),zM=d("Signpost2",''),bM=d("Signpost2Fill",''),gM=d("SignpostFill",''),MM=d("SignpostSplit",''),yM=d("SignpostSplitFill",''),VM=d("Sim",''),HM=d("SimFill",''),AM=d("SkipBackward",''),BM=d("SkipBackwardBtn",''),OM=d("SkipBackwardBtnFill",''),wM=d("SkipBackwardCircle",''),CM=d("SkipBackwardCircleFill",''),IM=d("SkipBackwardFill",''),LM=d("SkipEnd",''),SM=d("SkipEndBtn",''),PM=d("SkipEndBtnFill",''),FM=d("SkipEndCircle",''),kM=d("SkipEndCircleFill",''),jM=d("SkipEndFill",''),TM=d("SkipForward",''),DM=d("SkipForwardBtn",''),EM=d("SkipForwardBtnFill",''),xM=d("SkipForwardCircle",''),NM=d("SkipForwardCircleFill",''),$M=d("SkipForwardFill",''),RM=d("SkipStart",''),_M=d("SkipStartBtn",''),UM=d("SkipStartBtnFill",''),GM=d("SkipStartCircle",''),qM=d("SkipStartCircleFill",''),WM=d("SkipStartFill",''),KM=d("Skype",''),JM=d("Slack",''),ZM=d("Slash",''),XM=d("SlashCircle",''),YM=d("SlashCircleFill",''),QM=d("SlashLg",''),ay=d("SlashSquare",''),ty=d("SlashSquareFill",''),ey=d("Sliders",''),ny=d("Smartwatch",''),iy=d("Snow",''),ry=d("Snow2",''),oy=d("Snow3",''),ly=d("SortAlphaDown",''),cy=d("SortAlphaDownAlt",''),sy=d("SortAlphaUp",''),hy=d("SortAlphaUpAlt",''),uy=d("SortDown",''),dy=d("SortDownAlt",''),py=d("SortNumericDown",''),vy=d("SortNumericDownAlt",''),fy=d("SortNumericUp",''),my=d("SortNumericUpAlt",''),zy=d("SortUp",''),by=d("SortUpAlt",''),gy=d("Soundwave",''),My=d("Speaker",''),yy=d("SpeakerFill",''),Vy=d("Speedometer",''),Hy=d("Speedometer2",''),Ay=d("Spellcheck",''),By=d("Square",''),Oy=d("SquareFill",''),wy=d("SquareHalf",''),Cy=d("Stack",''),Iy=d("Star",''),Ly=d("StarFill",''),Sy=d("StarHalf",''),Py=d("Stars",''),Fy=d("Stickies",''),ky=d("StickiesFill",''),jy=d("Sticky",''),Ty=d("StickyFill",''),Dy=d("Stop",''),Ey=d("StopBtn",''),xy=d("StopBtnFill",''),Ny=d("StopCircle",''),$y=d("StopCircleFill",''),Ry=d("StopFill",''),_y=d("Stoplights",''),Uy=d("StoplightsFill",''),Gy=d("Stopwatch",''),qy=d("StopwatchFill",''),Wy=d("Subtract",''),Ky=d("SuitClub",''),Jy=d("SuitClubFill",''),Zy=d("SuitDiamond",''),Xy=d("SuitDiamondFill",''),Yy=d("SuitHeart",''),Qy=d("SuitHeartFill",''),aV=d("SuitSpade",''),tV=d("SuitSpadeFill",''),eV=d("Sun",''),nV=d("SunFill",''),iV=d("Sunglasses",''),rV=d("Sunrise",''),oV=d("SunriseFill",''),lV=d("Sunset",''),cV=d("SunsetFill",''),sV=d("SymmetryHorizontal",''),hV=d("SymmetryVertical",''),uV=d("Table",''),dV=d("Tablet",''),pV=d("TabletFill",''),vV=d("TabletLandscape",''),fV=d("TabletLandscapeFill",''),mV=d("Tag",''),zV=d("TagFill",''),bV=d("Tags",''),gV=d("TagsFill",''),MV=d("Telegram",''),yV=d("Telephone",''),VV=d("TelephoneFill",''),HV=d("TelephoneForward",''),AV=d("TelephoneForwardFill",''),BV=d("TelephoneInbound",''),OV=d("TelephoneInboundFill",''),wV=d("TelephoneMinus",''),CV=d("TelephoneMinusFill",''),IV=d("TelephoneOutbound",''),LV=d("TelephoneOutboundFill",''),SV=d("TelephonePlus",''),PV=d("TelephonePlusFill",''),FV=d("TelephoneX",''),kV=d("TelephoneXFill",''),jV=d("Terminal",''),TV=d("TerminalFill",''),DV=d("TextCenter",''),EV=d("TextIndentLeft",''),xV=d("TextIndentRight",''),NV=d("TextLeft",''),$V=d("TextParagraph",''),RV=d("TextRight",''),_V=d("Textarea",''),UV=d("TextareaResize",''),GV=d("TextareaT",''),qV=d("Thermometer",''),WV=d("ThermometerHalf",''),KV=d("ThermometerHigh",''),JV=d("ThermometerLow",''),ZV=d("ThermometerSnow",''),XV=d("ThermometerSun",''),YV=d("ThreeDots",''),QV=d("ThreeDotsVertical",''),aH=d("Toggle2Off",''),tH=d("Toggle2On",''),eH=d("ToggleOff",''),nH=d("ToggleOn",''),iH=d("Toggles",''),rH=d("Toggles2",''),oH=d("Tools",''),lH=d("Tornado",''),cH=d("Translate",''),sH=d("Trash",''),hH=d("Trash2",''),uH=d("Trash2Fill",''),dH=d("TrashFill",''),pH=d("Tree",''),vH=d("TreeFill",''),fH=d("Triangle",''),mH=d("TriangleFill",''),zH=d("TriangleHalf",''),bH=d("Trophy",''),gH=d("TrophyFill",''),MH=d("TropicalStorm",''),yH=d("Truck",''),VH=d("TruckFlatbed",''),HH=d("Tsunami",''),AH=d("Tv",''),BH=d("TvFill",''),OH=d("Twitch",''),wH=d("Twitter",''),CH=d("Type",''),IH=d("TypeBold",''),LH=d("TypeH1",''),SH=d("TypeH2",''),PH=d("TypeH3",''),FH=d("TypeItalic",''),kH=d("TypeStrikethrough",''),jH=d("TypeUnderline",''),TH=d("UiChecks",''),DH=d("UiChecksGrid",''),EH=d("UiRadios",''),xH=d("UiRadiosGrid",''),NH=d("Umbrella",''),$H=d("UmbrellaFill",''),RH=d("Union",''),_H=d("Unlock",''),UH=d("UnlockFill",''),GH=d("Upc",''),qH=d("UpcScan",''),WH=d("Upload",''),KH=d("VectorPen",''),JH=d("ViewList",''),ZH=d("ViewStacked",''),XH=d("Vinyl",''),YH=d("VinylFill",''),QH=d("Voicemail",''),aA=d("VolumeDown",''),tA=d("VolumeDownFill",''),eA=d("VolumeMute",''),nA=d("VolumeMuteFill",''),iA=d("VolumeOff",''),rA=d("VolumeOffFill",''),oA=d("VolumeUp",''),lA=d("VolumeUpFill",''),cA=d("Vr",''),sA=d("Wallet",''),hA=d("Wallet2",''),uA=d("WalletFill",''),dA=d("Watch",''),pA=d("Water",''),vA=d("Whatsapp",''),fA=d("Wifi",''),mA=d("Wifi1",''),zA=d("Wifi2",''),bA=d("WifiOff",''),gA=d("Wind",''),MA=d("Window",''),yA=d("WindowDock",''),VA=d("WindowSidebar",''),HA=d("Wrench",''),AA=d("X",''),BA=d("XCircle",''),OA=d("XCircleFill",''),wA=d("XDiamond",''),CA=d("XDiamondFill",''),IA=d("XLg",''),LA=d("XOctagon",''),SA=d("XOctagonFill",''),PA=d("XSquare",''),FA=d("XSquareFill",''),kA=d("Youtube",''),jA=d("ZoomIn",''),TA=d("ZoomOut",'')},33017:(a,t,e)=>{e.d(t,{A7:()=>v});var n=e(86087),i=e(43022),r=e(1915),o=e(69558),l=e(94689),c=e(67040),s=e(20451),h=e(39143),u=(0,s.y2)((0,c.CE)(h.N,["content","stacked"]),l.YO),d=(0,r.l7)({name:l.YO,functional:!0,props:u,render:function(a,t){var e=t.data,n=t.props,i=t.children;return a(h.q,(0,o.b)(e,{staticClass:"b-iconstack",props:n}),i)}}),p=e(72466),v=(0,n.hk)({components:{BIcon:i.H,BIconstack:d,BIconBlank:p.GWp,BIconAlarm:p.OU,BIconAlarmFill:p.Yq2,BIconAlignBottom:p.fwv,BIconAlignCenter:p.vd$,BIconAlignEnd:p.kFv,BIconAlignMiddle:p.$24,BIconAlignStart:p.sB9,BIconAlignTop:p.nGQ,BIconAlt:p.FDI,BIconApp:p.x3L,BIconAppIndicator:p.z1A,BIconArchive:p.lbE,BIconArchiveFill:p.dYs,BIconArrow90degDown:p.TYz,BIconArrow90degLeft:p.YDB,BIconArrow90degRight:p.UIV,BIconArrow90degUp:p.sDn,BIconArrowBarDown:p.Btd,BIconArrowBarLeft:p.Rep,BIconArrowBarRight:p.k0,BIconArrowBarUp:p.dVK,BIconArrowClockwise:p.zI9,BIconArrowCounterclockwise:p.rw7,BIconArrowDown:p.pfg,BIconArrowDownCircle:p.KbI,BIconArrowDownCircleFill:p.PRr,BIconArrowDownLeft:p.HED,BIconArrowDownLeftCircle:p.pTq,BIconArrowDownLeftCircleFill:p.$WM,BIconArrowDownLeftSquare:p.gWH,BIconArrowDownLeftSquareFill:p.p6n,BIconArrowDownRight:p.MGc,BIconArrowDownRightCircle:p.fwl,BIconArrowDownRightCircleFill:p.x4n,BIconArrowDownRightSquare:p.PtJ,BIconArrowDownRightSquareFill:p.YcU,BIconArrowDownShort:p.BGL,BIconArrowDownSquare:p.cEq,BIconArrowDownSquareFill:p.kHe,BIconArrowDownUp:p.Q48,BIconArrowLeft:p.CJy,BIconArrowLeftCircle:p.HPq,BIconArrowLeftCircleFill:p.eo9,BIconArrowLeftRight:p.jwx,BIconArrowLeftShort:p.mhl,BIconArrowLeftSquare:p.Rtk,BIconArrowLeftSquareFill:p.ljC,BIconArrowRepeat:p.Bxx,BIconArrowReturnLeft:p.nyK,BIconArrowReturnRight:p.fdL,BIconArrowRight:p.cKx,BIconArrowRightCircle:p.KBg,BIconArrowRightCircleFill:p.S7v,BIconArrowRightShort:p.HzC,BIconArrowRightSquare:p.LSj,BIconArrowRightSquareFill:p.lzv,BIconArrowUp:p.BNN,BIconArrowUpCircle:p.Y8j,BIconArrowUpCircleFill:p.H2O,BIconArrowUpLeft:p.Hkf,BIconArrowUpLeftCircle:p.APQ,BIconArrowUpLeftCircleFill:p.L66,BIconArrowUpLeftSquare:p.WMZ,BIconArrowUpLeftSquareFill:p.Vvm,BIconArrowUpRight:p.fqz,BIconArrowUpRightCircle:p.xV2,BIconArrowUpRightCircleFill:p.oW,BIconArrowUpRightSquare:p.k$g,BIconArrowUpRightSquareFill:p.QUc,BIconArrowUpShort:p.zW7,BIconArrowUpSquare:p.lVE,BIconArrowUpSquareFill:p.rBv,BIconArrowsAngleContract:p.il7,BIconArrowsAngleExpand:p.JS5,BIconArrowsCollapse:p.TUK,BIconArrowsExpand:p.E8c,BIconArrowsFullscreen:p.Ll1,BIconArrowsMove:p.ww,BIconAspectRatio:p.kCe,BIconAspectRatioFill:p.n7z,BIconAsterisk:p.R9u,BIconAt:p.G7,BIconAward:p.Sw$,BIconAwardFill:p.ydl,BIconBack:p.MdF,BIconBackspace:p.Ta3,BIconBackspaceFill:p.$qu,BIconBackspaceReverse:p.UaC,BIconBackspaceReverseFill:p.XMl,BIconBadge3d:p.Js2,BIconBadge3dFill:p.Wm0,BIconBadge4k:p.vOi,BIconBadge4kFill:p.bij,BIconBadge8k:p.eh6,BIconBadge8kFill:p.qmO,BIconBadgeAd:p.Uhd,BIconBadgeAdFill:p.DxU,BIconBadgeAr:p.T$C,BIconBadgeArFill:p.GiK,BIconBadgeCc:p.wKW,BIconBadgeCcFill:p.utP,BIconBadgeHd:p.FyV,BIconBadgeHdFill:p.p4S,BIconBadgeTm:p.R0b,BIconBadgeTmFill:p.Sdl,BIconBadgeVo:p.V3q,BIconBadgeVoFill:p.fIJ,BIconBadgeVr:p.EF$,BIconBadgeVrFill:p.Ps,BIconBadgeWc:p.gWf,BIconBadgeWcFill:p.oS1,BIconBag:p._hv,BIconBagCheck:p.$z6,BIconBagCheckFill:p.atP,BIconBagDash:p.C5j,BIconBagDashFill:p.YlP,BIconBagFill:p.Fmo,BIconBagPlus:p.fCs,BIconBagPlusFill:p.r$S,BIconBagX:p.P1,BIconBagXFill:p.niv,BIconBank:p.n4P,BIconBank2:p.I4Q,BIconBarChart:p.YCP,BIconBarChartFill:p.vcS,BIconBarChartLine:p.yIz,BIconBarChartLineFill:p.p7o,BIconBarChartSteps:p.nvb,BIconBasket:p.CDA,BIconBasket2:p.SV6,BIconBasket2Fill:p.nRP,BIconBasket3:p.xld,BIconBasket3Fill:p.MzH,BIconBasketFill:p.mQP,BIconBattery:p.kmc,BIconBatteryCharging:p.Qp2,BIconBatteryFull:p.k1k,BIconBatteryHalf:p.x0j,BIconBell:p.G_g,BIconBellFill:p.whn,BIconBellSlash:p.yvC,BIconBellSlashFill:p.w8K,BIconBezier:p.fkB,BIconBezier2:p.u0k,BIconBicycle:p.$c7,BIconBinoculars:p.lzt,BIconBinocularsFill:p.jUs,BIconBlockquoteLeft:p.Pjp,BIconBlockquoteRight:p.KvI,BIconBook:p.$ek,BIconBookFill:p.pee,BIconBookHalf:p.X$b,BIconBookmark:p.Nxz,BIconBookmarkCheck:p.qcW,BIconBookmarkCheckFill:p.g7U,BIconBookmarkDash:p.BtN,BIconBookmarkDashFill:p.vEG,BIconBookmarkFill:p.Znx,BIconBookmarkHeart:p.n1w,BIconBookmarkHeartFill:p.l9f,BIconBookmarkPlus:p.d6H,BIconBookmarkPlusFill:p.OZl,BIconBookmarkStar:p.uUd,BIconBookmarkStarFill:p.N$k,BIconBookmarkX:p.K$B,BIconBookmarkXFill:p.ov4,BIconBookmarks:p.rRv,BIconBookmarksFill:p.Ask,BIconBookshelf:p.tK7,BIconBootstrap:p.HIz,BIconBootstrapFill:p.FOL,BIconBootstrapReboot:p.jSp,BIconBorder:p.Kqp,BIconBorderAll:p.g8p,BIconBorderBottom:p.BZn,BIconBorderCenter:p.nwi,BIconBorderInner:p.d2,BIconBorderLeft:p.nhN,BIconBorderMiddle:p.TXH,BIconBorderOuter:p.eIp,BIconBorderRight:p.DtT,BIconBorderStyle:p.$0W,BIconBorderTop:p.nFk,BIconBorderWidth:p.knm,BIconBoundingBox:p.wmo,BIconBoundingBoxCircles:p.WMY,BIconBox:p.rqI,BIconBoxArrowDown:p.Rvs,BIconBoxArrowDownLeft:p.r0N,BIconBoxArrowDownRight:p.EmC,BIconBoxArrowInDown:p.nOL,BIconBoxArrowInDownLeft:p.NLT,BIconBoxArrowInDownRight:p.dod,BIconBoxArrowInLeft:p.n8l,BIconBoxArrowInRight:p.N_J,BIconBoxArrowInUp:p.gwK,BIconBoxArrowInUpLeft:p.dNf,BIconBoxArrowInUpRight:p.Noy,BIconBoxArrowLeft:p.SC_,BIconBoxArrowRight:p.S4,BIconBoxArrowUp:p.ix3,BIconBoxArrowUpLeft:p.OlQ,BIconBoxArrowUpRight:p.eK4,BIconBoxSeam:p.Oqr,BIconBraces:p.wLY,BIconBricks:p.S3S,BIconBriefcase:p.JyY,BIconBriefcaseFill:p.P4Y,BIconBrightnessAltHigh:p.pHX,BIconBrightnessAltHighFill:p.jSo,BIconBrightnessAltLow:p.ODP,BIconBrightnessAltLowFill:p.bnk,BIconBrightnessHigh:p.Flg,BIconBrightnessHighFill:p.KsB,BIconBrightnessLow:p.fqi,BIconBrightnessLowFill:p.jRp,BIconBroadcast:p.n7L,BIconBroadcastPin:p.k5I,BIconBrush:p.PvF,BIconBrushFill:p.gVZ,BIconBucket:p.CNs,BIconBucketFill:p.EkS,BIconBug:p.Nmi,BIconBugFill:p.VzZ,BIconBuilding:p.pGS,BIconBullseye:p.CjC,BIconCalculator:p.i6v,BIconCalculatorFill:p.bJS,BIconCalendar:p.$kw,BIconCalendar2:p.DyN,BIconCalendar2Check:p.lh2,BIconCalendar2CheckFill:p.VBp,BIconCalendar2Date:p.XkH,BIconCalendar2DateFill:p.a9F,BIconCalendar2Day:p.Y9_,BIconCalendar2DayFill:p.mGu,BIconCalendar2Event:p.eeY,BIconCalendar2EventFill:p.tqN,BIconCalendar2Fill:p.ADI,BIconCalendar2Minus:p.ONI,BIconCalendar2MinusFill:p._3l,BIconCalendar2Month:p.yvH,BIconCalendar2MonthFill:p.i7S,BIconCalendar2Plus:p.u$w,BIconCalendar2PlusFill:p.AJs,BIconCalendar2Range:p.z$Y,BIconCalendar2RangeFill:p.io,BIconCalendar2Week:p.QIC,BIconCalendar2WeekFill:p.ORl,BIconCalendar2X:p.Rey,BIconCalendar2XFill:p.BZb,BIconCalendar3:p.$IU,BIconCalendar3Event:p.zBz,BIconCalendar3EventFill:p.K10,BIconCalendar3Fill:p.saK,BIconCalendar3Range:p.yNt,BIconCalendar3RangeFill:p.MlV,BIconCalendar3Week:p.RBD,BIconCalendar3WeekFill:p.w7q,BIconCalendar4:p.ciW,BIconCalendar4Event:p.XMh,BIconCalendar4Range:p.cYS,BIconCalendar4Week:p.t1E,BIconCalendarCheck:p.eh7,BIconCalendarCheckFill:p.n1$,BIconCalendarDate:p.d0c,BIconCalendarDateFill:p.a4T,BIconCalendarDay:p.VYY,BIconCalendarDayFill:p.em6,BIconCalendarEvent:p.Tcb,BIconCalendarEventFill:p.sZW,BIconCalendarFill:p.WD$,BIconCalendarMinus:p.T,BIconCalendarMinusFill:p.Phz,BIconCalendarMonth:p.DKj,BIconCalendarMonthFill:p.P4_,BIconCalendarPlus:p.Vp2,BIconCalendarPlusFill:p.D7Y,BIconCalendarRange:p.Kcf,BIconCalendarRangeFill:p.hmc,BIconCalendarWeek:p.G2Q,BIconCalendarWeekFill:p.pnD,BIconCalendarX:p.r0r,BIconCalendarXFill:p.IVx,BIconCamera:p.tYS,BIconCamera2:p.VMj,BIconCameraFill:p.fmS,BIconCameraReels:p.t8,BIconCameraReelsFill:p.gq6,BIconCameraVideo:p.YMH,BIconCameraVideoFill:p.soo,BIconCameraVideoOff:p.s1P,BIconCameraVideoOffFill:p.Jfo,BIconCapslock:p.AkY,BIconCapslockFill:p.uuD,BIconCardChecklist:p.eiF,BIconCardHeading:p.IrC,BIconCardImage:p.igp,BIconCardList:p.H9R,BIconCardText:p.C6Q,BIconCaretDown:p.u97,BIconCaretDownFill:p.XZe,BIconCaretDownSquare:p.cK7,BIconCaretDownSquareFill:p.j8E,BIconCaretLeft:p.wrx,BIconCaretLeftFill:p.NrI,BIconCaretLeftSquare:p.L4P,BIconCaretLeftSquareFill:p.VLC,BIconCaretRight:p.ia_,BIconCaretRightFill:p.A8E,BIconCaretRightSquare:p.xKP,BIconCaretRightSquareFill:p.VNi,BIconCaretUp:p.ywm,BIconCaretUpFill:p.knd,BIconCaretUpSquare:p.ro6,BIconCaretUpSquareFill:p.mbL,BIconCart:p.K0N,BIconCart2:p.g3h,BIconCart3:p.N1q,BIconCart4:p.NGI,BIconCartCheck:p.t3Q,BIconCartCheckFill:p.C7Z,BIconCartDash:p.K5M,BIconCartDashFill:p.UGO,BIconCartFill:p.zmv,BIconCartPlus:p._Js,BIconCartPlusFill:p.N6W,BIconCartX:p.aGA,BIconCartXFill:p.tI8,BIconCash:p.mYh,BIconCashCoin:p.uNr,BIconCashStack:p.ah9,BIconCast:p.oy$,BIconChat:p.xeu,BIconChatDots:p.VB9,BIconChatDotsFill:p.GGn,BIconChatFill:p.LLr,BIconChatLeft:p.$ip,BIconChatLeftDots:p.hKq,BIconChatLeftDotsFill:p._zT,BIconChatLeftFill:p.WNd,BIconChatLeftQuote:p.$xg,BIconChatLeftQuoteFill:p.a4k,BIconChatLeftText:p._R6,BIconChatLeftTextFill:p.RPO,BIconChatQuote:p.vPt,BIconChatQuoteFill:p.z4n,BIconChatRight:p.lKx,BIconChatRightDots:p.YTw,BIconChatRightDotsFill:p.SUD,BIconChatRightFill:p.KKi,BIconChatRightQuote:p.iaK,BIconChatRightQuoteFill:p.OCT,BIconChatRightText:p.nZb,BIconChatRightTextFill:p.Ynn,BIconChatSquare:p.H_q,BIconChatSquareDots:p.dYN,BIconChatSquareDotsFill:p.Ekn,BIconChatSquareFill:p.vzb,BIconChatSquareQuote:p.cFb,BIconChatSquareQuoteFill:p.Aoi,BIconChatSquareText:p.peH,BIconChatSquareTextFill:p.nT8,BIconChatText:p.MVm,BIconChatTextFill:p.zAD,BIconCheck:p.PaS,BIconCheck2:p._$q,BIconCheck2All:p.Hc_,BIconCheck2Circle:p.j2Y,BIconCheck2Square:p.Rsn,BIconCheckAll:p.E4h,BIconCheckCircle:p.tZt,BIconCheckCircleFill:p.uqb,BIconCheckLg:p.COp,BIconCheckSquare:p.oOT,BIconCheckSquareFill:p.uxq,BIconChevronBarContract:p.T_W,BIconChevronBarDown:p.yit,BIconChevronBarExpand:p.kzp,BIconChevronBarLeft:p.ziT,BIconChevronBarRight:p.rM,BIconChevronBarUp:p.wBH,BIconChevronCompactDown:p._rN,BIconChevronCompactLeft:p.EnN,BIconChevronCompactRight:p.oRA,BIconChevronCompactUp:p.jm6,BIconChevronContract:p.DDv,BIconChevronDoubleDown:p.Zo2,BIconChevronDoubleLeft:p.uVK,BIconChevronDoubleRight:p.WnY,BIconChevronDoubleUp:p.HyP,BIconChevronDown:p.VIw,BIconChevronExpand:p.Qid,BIconChevronLeft:p.As$,BIconChevronRight:p.xkg,BIconChevronUp:p.b4M,BIconCircle:p.I9H,BIconCircleFill:p.gMT,BIconCircleHalf:p.SzU,BIconCircleSquare:p.KFI,BIconClipboard:p.O48,BIconClipboardCheck:p.bEK,BIconClipboardData:p.eBp,BIconClipboardMinus:p.$Zw,BIconClipboardPlus:p.R1J,BIconClipboardX:p.R5z,BIconClock:p.sQZ,BIconClockFill:p.qTo,BIconClockHistory:p.SAB,BIconCloud:p.h11,BIconCloudArrowDown:p.RuO,BIconCloudArrowDownFill:p.OVN,BIconCloudArrowUp:p.oNP,BIconCloudArrowUpFill:p.zP6,BIconCloudCheck:p.FQW,BIconCloudCheckFill:p.QoX,BIconCloudDownload:p.rvl,BIconCloudDownloadFill:p.vT$,BIconCloudDrizzle:p.hH8,BIconCloudDrizzleFill:p.rKJ,BIconCloudFill:p.eET,BIconCloudFog:p.GEc,BIconCloudFog2:p.Dyn,BIconCloudFog2Fill:p.Et$,BIconCloudFogFill:p.A$I,BIconCloudHail:p.kxN,BIconCloudHailFill:p.A3_,BIconCloudHaze:p["new"],BIconCloudHaze1:p.MbQ,BIconCloudHaze2Fill:p.tWE,BIconCloudHazeFill:p.Afn,BIconCloudLightning:p.he_,BIconCloudLightningFill:p.Bzp,BIconCloudLightningRain:p.Gvu,BIconCloudLightningRainFill:p.vty,BIconCloudMinus:p.I25,BIconCloudMinusFill:p.HNd,BIconCloudMoon:p.CSw,BIconCloudMoonFill:p.Afi,BIconCloudPlus:p.hiV,BIconCloudPlusFill:p.a4V,BIconCloudRain:p.D_k,BIconCloudRainFill:p.hpC,BIconCloudRainHeavy:p.LwH,BIconCloudRainHeavyFill:p.b1B,BIconCloudSlash:p.vAm,BIconCloudSlashFill:p._yf,BIconCloudSleet:p.KaO,BIconCloudSleetFill:p.zzN,BIconCloudSnow:p.UOs,BIconCloudSnowFill:p.iR5,BIconCloudSun:p.S9h,BIconCloudSunFill:p.ofl,BIconCloudUpload:p.Tw7,BIconCloudUploadFill:p.Z2Z,BIconClouds:p.nWJ,BIconCloudsFill:p.FV4,BIconCloudy:p.grc,BIconCloudyFill:p.wg0,BIconCode:p.f$5,BIconCodeSlash:p.wAE,BIconCodeSquare:p.VD2,BIconCoin:p.gFx,BIconCollection:p.WAw,BIconCollectionFill:p.VH$,BIconCollectionPlay:p.L3n,BIconCollectionPlayFill:p.QVi,BIconColumns:p.WCw,BIconColumnsGap:p.p8y,BIconCommand:p.a86,BIconCompass:p.tDn,BIconCompassFill:p.zLH,BIconCone:p.K7D,BIconConeStriped:p.az2,BIconController:p.Ieq,BIconCpu:p.v_S,BIconCpuFill:p.iYi,BIconCreditCard:p.RZf,BIconCreditCard2Back:p.Qlb,BIconCreditCard2BackFill:p.VzF,BIconCreditCard2Front:p.KXx,BIconCreditCard2FrontFill:p.sKK,BIconCreditCardFill:p.l0H,BIconCrop:p.u8_,BIconCup:p.JIv,BIconCupFill:p.YUl,BIconCupStraw:p.kHb,BIconCurrencyBitcoin:p.JKz,BIconCurrencyDollar:p.Swn,BIconCurrencyEuro:p.fZq,BIconCurrencyExchange:p.JfO,BIconCurrencyPound:p.RvK,BIconCurrencyYen:p.ANj,BIconCursor:p.ueK,BIconCursorFill:p.vuG,BIconCursorText:p.JVE,BIconDash:p.Loc,BIconDashCircle:p.TG9,BIconDashCircleDotted:p.IEF,BIconDashCircleFill:p.RsT,BIconDashLg:p.Pjo,BIconDashSquare:p.AvY,BIconDashSquareDotted:p.pFV,BIconDashSquareFill:p.wnZ,BIconDiagram2:p.OSG,BIconDiagram2Fill:p.neq,BIconDiagram3:p.l3H,BIconDiagram3Fill:p.jWb,BIconDiamond:p.Wq7,BIconDiamondFill:p.Mwo,BIconDiamondHalf:p.Yi7,BIconDice1:p.p_n,BIconDice1Fill:p.d1A,BIconDice2:p.bOW,BIconDice2Fill:p.XzL,BIconDice3:p.aPK,BIconDice3Fill:p.FGu,BIconDice4:p.fD4,BIconDice4Fill:p.EJW,BIconDice5:p.fYI,BIconDice5Fill:p.XqM,BIconDice6:p.HUE,BIconDice6Fill:p.mcB,BIconDisc:p.DGU,BIconDiscFill:p.Tn4,BIconDiscord:p.hYX,BIconDisplay:p.Rfo,BIconDisplayFill:p.so9,BIconDistributeHorizontal:p._wu,BIconDistributeVertical:p.jVi,BIconDoorClosed:p.JNi,BIconDoorClosedFill:p.iFy,BIconDoorOpen:p.rwn,BIconDoorOpenFill:p.vG0,BIconDot:p._E8,BIconDownload:p.f6I,BIconDroplet:p.tFd,BIconDropletFill:p.rno,BIconDropletHalf:p.NEq,BIconEarbuds:p.c8U,BIconEasel:p.kWx,BIconEaselFill:p.fXm,BIconEgg:p.Nzi,BIconEggFill:p.mkN,BIconEggFried:p.lj6,BIconEject:p.Khh,BIconEjectFill:p.iSS,BIconEmojiAngry:p.MXU,BIconEmojiAngryFill:p.YgA,BIconEmojiDizzy:p.s0u,BIconEmojiDizzyFill:p.ZtM,BIconEmojiExpressionless:p.cB4,BIconEmojiExpressionlessFill:p.A2O,BIconEmojiFrown:p.vjf,BIconEmojiFrownFill:p.HlU,BIconEmojiHeartEyes:p.cRn,BIconEmojiHeartEyesFill:p.WRr,BIconEmojiLaughing:p.iau,BIconEmojiLaughingFill:p.SVP,BIconEmojiNeutral:p.g74,BIconEmojiNeutralFill:p.Hb7,BIconEmojiSmile:p.K2j,BIconEmojiSmileFill:p.mF1,BIconEmojiSmileUpsideDown:p.x2x,BIconEmojiSmileUpsideDownFill:p.gWL,BIconEmojiSunglasses:p.auv,BIconEmojiSunglassesFill:p.epQ,BIconEmojiWink:p.yc6,BIconEmojiWinkFill:p.Z8$,BIconEnvelope:p.AzZ,BIconEnvelopeFill:p.H0l,BIconEnvelopeOpen:p.eBo,BIconEnvelopeOpenFill:p.tM4,BIconEraser:p.WTD,BIconEraserFill:p.hsX,BIconExclamation:p.WNU,BIconExclamationCircle:p.mzf,BIconExclamationCircleFill:p.oFl,BIconExclamationDiamond:p.$kv,BIconExclamationDiamondFill:p.NIN,BIconExclamationLg:p.NDd,BIconExclamationOctagon:p.MHs,BIconExclamationOctagonFill:p.$UW,BIconExclamationSquare:p.CR_,BIconExclamationSquareFill:p.hnb,BIconExclamationTriangle:p.Sbj,BIconExclamationTriangleFill:p.aRd,BIconExclude:p.jZf,BIconEye:p.unT,BIconEyeFill:p.xK9,BIconEyeSlash:p.qa2,BIconEyeSlashFill:p.C0p,BIconEyedropper:p.hVG,BIconEyeglasses:p.aLz,BIconFacebook:p.AFc,BIconFile:p.Nvz,BIconFileArrowDown:p.t_N,BIconFileArrowDownFill:p.TRz,BIconFileArrowUp:p.jJr,BIconFileArrowUpFill:p.nQ9,BIconFileBarGraph:p.PSg,BIconFileBarGraphFill:p.P6d,BIconFileBinary:p.VTu,BIconFileBinaryFill:p.NHe,BIconFileBreak:p.ixf,BIconFileBreakFill:p.avJ,BIconFileCheck:p.hjF,BIconFileCheckFill:p.s2N,BIconFileCode:p.akx,BIconFileCodeFill:p.qNy,BIconFileDiff:p.qDm,BIconFileDiffFill:p.gSt,BIconFileEarmark:p.DzX,BIconFileEarmarkArrowDown:p.rn6,BIconFileEarmarkArrowDownFill:p.rCC,BIconFileEarmarkArrowUp:p._ND,BIconFileEarmarkArrowUpFill:p.nmB,BIconFileEarmarkBarGraph:p.EJz,BIconFileEarmarkBarGraphFill:p.frj,BIconFileEarmarkBinary:p.ZQy,BIconFileEarmarkBinaryFill:p._t4,BIconFileEarmarkBreak:p.TCy,BIconFileEarmarkBreakFill:p.KrZ,BIconFileEarmarkCheck:p.hgC,BIconFileEarmarkCheckFill:p.pHt,BIconFileEarmarkCode:p.WGv,BIconFileEarmarkCodeFill:p.HlX,BIconFileEarmarkDiff:p.Qxd,BIconFileEarmarkDiffFill:p.Eu1,BIconFileEarmarkEasel:p.RXn,BIconFileEarmarkEaselFill:p.FON,BIconFileEarmarkExcel:p.F2U,BIconFileEarmarkExcelFill:p.y0d,BIconFileEarmarkFill:p._EL,BIconFileEarmarkFont:p.k_T,BIconFileEarmarkFontFill:p.maT,BIconFileEarmarkImage:p.gLV,BIconFileEarmarkImageFill:p.LLn,BIconFileEarmarkLock:p.c$u,BIconFileEarmarkLock2:p.wsb,BIconFileEarmarkLock2Fill:p.WL9,BIconFileEarmarkLockFill:p.F8P,BIconFileEarmarkMedical:p.yJN,BIconFileEarmarkMedicalFill:p.Oa7,BIconFileEarmarkMinus:p.y31,BIconFileEarmarkMinusFill:p.jV0,BIconFileEarmarkMusic:p.W2x,BIconFileEarmarkMusicFill:p.ybu,BIconFileEarmarkPdf:p.QKF,BIconFileEarmarkPdfFill:p._FA,BIconFileEarmarkPerson:p.P3I,BIconFileEarmarkPersonFill:p.Zli,BIconFileEarmarkPlay:p.W9z,BIconFileEarmarkPlayFill:p.nNO,BIconFileEarmarkPlus:p.RHl,BIconFileEarmarkPlusFill:p.qGK,BIconFileEarmarkPost:p.wg8,BIconFileEarmarkPostFill:p.AhF,BIconFileEarmarkPpt:p.ta9,BIconFileEarmarkPptFill:p.sab,BIconFileEarmarkRichtext:p.sox,BIconFileEarmarkRichtextFill:p.p6A,BIconFileEarmarkRuled:p.m6y,BIconFileEarmarkRuledFill:p.SGV,BIconFileEarmarkSlides:p.GRE,BIconFileEarmarkSlidesFill:p.AtF,BIconFileEarmarkSpreadsheet:p.eJF,BIconFileEarmarkSpreadsheetFill:p.lfo,BIconFileEarmarkText:p.cky,BIconFileEarmarkTextFill:p.Ncy,BIconFileEarmarkWord:p.FRd,BIconFileEarmarkWordFill:p.gob,BIconFileEarmarkX:p.LcZ,BIconFileEarmarkXFill:p.oOD,BIconFileEarmarkZip:p.Ac7,BIconFileEarmarkZipFill:p.azw,BIconFileEasel:p.vHl,BIconFileEaselFill:p.j6L,BIconFileExcel:p.vWU,BIconFileExcelFill:p.c1o,BIconFileFill:p.QTz,BIconFileFont:p.O6A,BIconFileFontFill:p.ZPq,BIconFileImage:p.yG3,BIconFileImageFill:p.EET,BIconFileLock:p.DK7,BIconFileLock2:p.yHW,BIconFileLock2Fill:p.s00,BIconFileLockFill:p.zaM,BIconFileMedical:p.Zcn,BIconFileMedicalFill:p.Y46,BIconFileMinus:p.yAy,BIconFileMinusFill:p.zy5,BIconFileMusic:p.zyH,BIconFileMusicFill:p.Dhx,BIconFilePdf:p.k7v,BIconFilePdfFill:p.M7A,BIconFilePerson:p.iF5,BIconFilePersonFill:p.ZVB,BIconFilePlay:p.zEG,BIconFilePlayFill:p.igA,BIconFilePlus:p.orA,BIconFilePlusFill:p.kQG,BIconFilePost:p.rux,BIconFilePostFill:p.r1L,BIconFilePpt:p.IOy,BIconFilePptFill:p.Te7,BIconFileRichtext:p.L5L,BIconFileRichtextFill:p.lKq,BIconFileRuled:p.xxm,BIconFileRuledFill:p.u8C,BIconFileSlides:p.WOM,BIconFileSlidesFill:p.AZO,BIconFileSpreadsheet:p.Q7M,BIconFileSpreadsheetFill:p.Vwd,BIconFileText:p.XaZ,BIconFileTextFill:p.$HC,BIconFileWord:p.tZ5,BIconFileWordFill:p.OyK,BIconFileX:p.nq8,BIconFileXFill:p.mq7,BIconFileZip:p.Bce,BIconFileZipFill:p.eM,BIconFiles:p.WcR,BIconFilesAlt:p.AJ8,BIconFilm:p.usy,BIconFilter:p.jL1,BIconFilterCircle:p.vId,BIconFilterCircleFill:p.EzO,BIconFilterLeft:p.agd,BIconFilterRight:p.VZH,BIconFilterSquare:p.Uv_,BIconFilterSquareFill:p.Cfs,BIconFlag:p.G49,BIconFlagFill:p.RgY,BIconFlower1:p.VO9,BIconFlower2:p.sNo,BIconFlower3:p.DYR,BIconFolder:p.eUA,BIconFolder2:p.Ynb,BIconFolder2Open:p.jer,BIconFolderCheck:p.q$g,BIconFolderFill:p.xX9,BIconFolderMinus:p.GUc,BIconFolderPlus:p.RLE,BIconFolderSymlink:p.y5,BIconFolderSymlinkFill:p.YOR,BIconFolderX:p.yKu,BIconFonts:p.p0d,BIconForward:p.hM1,BIconForwardFill:p.oUn,BIconFront:p.Jyp,BIconFullscreen:p.xLz,BIconFullscreenExit:p.UNU,BIconFunnel:p.yXq,BIconFunnelFill:p.mAP,BIconGear:p.ajv,BIconGearFill:p.oqW,BIconGearWide:p.YYH,BIconGearWideConnected:p.csc,BIconGem:p.TaD,BIconGenderAmbiguous:p.q6S,BIconGenderFemale:p.PAb,BIconGenderMale:p.WJh,BIconGenderTrans:p.Zru,BIconGeo:p.rAx,BIconGeoAlt:p.ps2,BIconGeoAltFill:p.ul4,BIconGeoFill:p.Fj8,BIconGift:p.EYW,BIconGiftFill:p.KPx,BIconGithub:p.x9R,BIconGlobe:p.Ja0,BIconGlobe2:p.HZj,BIconGoogle:p.a1C,BIconGraphDown:p.CLd,BIconGraphUp:p.MyA,BIconGrid:p.hjn,BIconGrid1x2:p.XyE,BIconGrid1x2Fill:p.DuK,BIconGrid3x2:p.GAi,BIconGrid3x2Gap:p.$i3,BIconGrid3x2GapFill:p.A46,BIconGrid3x3:p.HSA,BIconGrid3x3Gap:p.Mg,BIconGrid3x3GapFill:p.yXV,BIconGridFill:p.jmp,BIconGripHorizontal:p.jfK,BIconGripVertical:p.WoP,BIconHammer:p.ETj,BIconHandIndex:p.KwU,BIconHandIndexFill:p.Tlw,BIconHandIndexThumb:p.W88,BIconHandIndexThumbFill:p.My5,BIconHandThumbsDown:p.E9m,BIconHandThumbsDownFill:p.rnt,BIconHandThumbsUp:p.eA6,BIconHandThumbsUpFill:p.wIM,BIconHandbag:p.QNB,BIconHandbagFill:p.t8m,BIconHash:p.N4C,BIconHdd:p.y2d,BIconHddFill:p.vSe,BIconHddNetwork:p.AQ,BIconHddNetworkFill:p.vL1,BIconHddRack:p.reo,BIconHddRackFill:p.PaN,BIconHddStack:p.tW7,BIconHddStackFill:p.f3e,BIconHeadphones:p.GbQ,BIconHeadset:p.VJW,BIconHeadsetVr:p.$nq,BIconHeart:p.Ryo,BIconHeartFill:p.ys_,BIconHeartHalf:p.qYD,BIconHeptagon:p.gpu,BIconHeptagonFill:p.HMY,BIconHeptagonHalf:p.Arq,BIconHexagon:p.WfC,BIconHexagonFill:p.rsw,BIconHexagonHalf:p.zx0,BIconHourglass:p.$CA,BIconHourglassBottom:p.$XH,BIconHourglassSplit:p.qVW,BIconHourglassTop:p.o6z,BIconHouse:p.Czj,BIconHouseDoor:p.xY_,BIconHouseDoorFill:p.sNP,BIconHouseFill:p.P5f,BIconHr:p.MYu,BIconHurricane:p.WeQ,BIconImage:p.EOy,BIconImageAlt:p.f,BIconImageFill:p.Hi_,BIconImages:p.hkE,BIconInbox:p.$7x,BIconInboxFill:p.E4S,BIconInboxes:p.NuJ,BIconInboxesFill:p.GYj,BIconInfo:p.gOI,BIconInfoCircle:p.gjx,BIconInfoCircleFill:p.iKS,BIconInfoLg:p.aBG,BIconInfoSquare:p.MmV,BIconInfoSquareFill:p.yV9,BIconInputCursor:p.kDA,BIconInputCursorText:p.JJX,BIconInstagram:p.pi2,BIconIntersect:p.Fwy,BIconJournal:p.nAd,BIconJournalAlbum:p.sWz,BIconJournalArrowDown:p.cuk,BIconJournalArrowUp:p.eWA,BIconJournalBookmark:p.Rhq,BIconJournalBookmarkFill:p.Wv3,BIconJournalCheck:p.YmD,BIconJournalCode:p.Gi0,BIconJournalMedical:p.N7z,BIconJournalMinus:p.K2s,BIconJournalPlus:p.Wf7,BIconJournalRichtext:p.K8Q,BIconJournalText:p.kEx,BIconJournalX:p.$xx,BIconJournals:p.Ntn,BIconJoystick:p.deY,BIconJustify:p.FYw,BIconJustifyLeft:p.agP,BIconJustifyRight:p.Vvz,BIconKanban:p.FHg,BIconKanbanFill:p.yfP,BIconKey:p.c0s,BIconKeyFill:p.MVe,BIconKeyboard:p.$dE,BIconKeyboardFill:p.qX_,BIconLadder:p.J2U,BIconLamp:p.cUy,BIconLampFill:p.qhD,BIconLaptop:p.Ncg,BIconLaptopFill:p.GKk,BIconLayerBackward:p.Kjd,BIconLayerForward:p.nI_,BIconLayers:p.q3S,BIconLayersFill:p.u$A,BIconLayersHalf:p.rSi,BIconLayoutSidebar:p.L5v,BIconLayoutSidebarInset:p.ZGd,BIconLayoutSidebarInsetReverse:p.BUE,BIconLayoutSidebarReverse:p.CqF,BIconLayoutSplit:p.$4y,BIconLayoutTextSidebar:p.UZG,BIconLayoutTextSidebarReverse:p.CA6,BIconLayoutTextWindow:p.rdT,BIconLayoutTextWindowReverse:p.Qd2,BIconLayoutThreeColumns:p.AXi,BIconLayoutWtf:p.OE7,BIconLifePreserver:p.tiA,BIconLightbulb:p.Ub7,BIconLightbulbFill:p.XI2,BIconLightbulbOff:p.HZh,BIconLightbulbOffFill:p.D2f,BIconLightning:p.T7F,BIconLightningCharge:p.CkZ,BIconLightningChargeFill:p.akn,BIconLightningFill:p.TnF,BIconLink:p.ZV1,BIconLink45deg:p._pQ,BIconLinkedin:p.Spe,BIconList:p.Gbt,BIconListCheck:p.W2s,BIconListNested:p.oap,BIconListOl:p.jLX,BIconListStars:p.GrX,BIconListTask:p.WPR,BIconListUl:p.ZW,BIconLock:p.MJF,BIconLockFill:p.N0Z,BIconMailbox:p.A3g,BIconMailbox2:p.McT,BIconMap:p.dnK,BIconMapFill:p.W8A,BIconMarkdown:p.i3I,BIconMarkdownFill:p.e7l,BIconMask:p.IuR,BIconMastodon:p.FlF,BIconMegaphone:p.gPx,BIconMegaphoneFill:p.htG,BIconMenuApp:p.OlH,BIconMenuAppFill:p.Ag5,BIconMenuButton:p.x5$,BIconMenuButtonFill:p._nU,BIconMenuButtonWide:p.WAF,BIconMenuButtonWideFill:p.oj9,BIconMenuDown:p.E27,BIconMenuUp:p.fSX,BIconMessenger:p.POB,BIconMic:p.DGt,BIconMicFill:p._0y,BIconMicMute:p.RFg,BIconMicMuteFill:p.zSG,BIconMinecart:p.gVW,BIconMinecartLoaded:p.cZ3,BIconMoisture:p.Oo5,BIconMoon:p.MZ$,BIconMoonFill:p.nqX,BIconMoonStars:p.Ght,BIconMoonStarsFill:p.KQk,BIconMouse:p.QcY,BIconMouse2:p.LW6,BIconMouse2Fill:p.hJ4,BIconMouse3:p.jvv,BIconMouse3Fill:p.cEM,BIconMouseFill:p.Lxs,BIconMusicNote:p.y$B,BIconMusicNoteBeamed:p.WZy,BIconMusicNoteList:p.MQZ,BIconMusicPlayer:p.RfG,BIconMusicPlayerFill:p.zKL,BIconNewspaper:p.qBk,BIconNodeMinus:p.rwy,BIconNodeMinusFill:p.tAv,BIconNodePlus:p.FUP,BIconNodePlusFill:p.Jof,BIconNut:p.JSo,BIconNutFill:p.ETc,BIconOctagon:p.rfr,BIconOctagonFill:p.S3,BIconOctagonHalf:p.KsY,BIconOption:p.JYK,BIconOutlet:p.oxP,BIconPaintBucket:p.dZN,BIconPalette:p.HUF,BIconPalette2:p.C5U,BIconPaletteFill:p.Nr6,BIconPaperclip:p.OBP,BIconParagraph:p._e0,BIconPatchCheck:p.O7q,BIconPatchCheckFill:p.y8h,BIconPatchExclamation:p.WRF,BIconPatchExclamationFill:p.Akv,BIconPatchMinus:p.FIt,BIconPatchMinusFill:p.r_A,BIconPatchPlus:p.bPd,BIconPatchPlusFill:p.un5,BIconPatchQuestion:p.w4u,BIconPatchQuestionFill:p.J5O,BIconPause:p.avs,BIconPauseBtn:p.xxT,BIconPauseBtnFill:p.fcN,BIconPauseCircle:p.B3Y,BIconPauseCircleFill:p.CYn,BIconPauseFill:p.RUg,BIconPeace:p.EdZ,BIconPeaceFill:p.wcC,BIconPen:p.BGW,BIconPenFill:p.DOj,BIconPencil:p.Hu2,BIconPencilFill:p.Ybx,BIconPencilSquare:p.Sle,BIconPentagon:p.G_Q,BIconPentagonFill:p.tVr,BIconPentagonHalf:p.vfk,BIconPeople:p.oCR,BIconPeopleFill:p.Fzw,BIconPercent:p.l2U,BIconPerson:p._iv,BIconPersonBadge:p.Svn,BIconPersonBadgeFill:p.Oyw,BIconPersonBoundingBox:p.FgQ,BIconPersonCheck:p.VG8,BIconPersonCheckFill:p.RXT,BIconPersonCircle:p.pbm,BIconPersonDash:p.ijN,BIconPersonDashFill:p.OO7,BIconPersonFill:p.kIL,BIconPersonLinesFill:p.fhH,BIconPersonPlus:p.D62,BIconPersonPlusFill:p.$o4,BIconPersonSquare:p.No$,BIconPersonX:p.pcF,BIconPersonXFill:p.gRs,BIconPhone:p.ZK2,BIconPhoneFill:p.ALr,BIconPhoneLandscape:p.yyI,BIconPhoneLandscapeFill:p.QO9,BIconPhoneVibrate:p.PaI,BIconPhoneVibrateFill:p.nCR,BIconPieChart:p.Dch,BIconPieChartFill:p.rO8,BIconPiggyBank:p.CJN,BIconPiggyBankFill:p.uTS,BIconPin:p.FKb,BIconPinAngle:p.CzI,BIconPinAngleFill:p.iPV,BIconPinFill:p.pfP,BIconPinMap:p.mOG,BIconPinMapFill:p.Ttd,BIconPip:p.f1L,BIconPipFill:p.HQ2,BIconPlay:p.rv6,BIconPlayBtn:p.XTo,BIconPlayBtnFill:p.j7I,BIconPlayCircle:p.vNm,BIconPlayCircleFill:p.WSs,BIconPlayFill:p.iIu,BIconPlug:p.Aq5,BIconPlugFill:p.o6o,BIconPlus:p.s3j,BIconPlusCircle:p.HON,BIconPlusCircleDotted:p.$Ib,BIconPlusCircleFill:p.BNe,BIconPlusLg:p.N$8,BIconPlusSquare:p.sax,BIconPlusSquareDotted:p.OjH,BIconPlusSquareFill:p.aX_,BIconPower:p.iqX,BIconPrinter:p.g8Q,BIconPrinterFill:p.BDZ,BIconPuzzle:p.rsC,BIconPuzzleFill:p.EcO,BIconQuestion:p.aOn,BIconQuestionCircle:p.POT,BIconQuestionCircleFill:p.lJj,BIconQuestionDiamond:p.JXn,BIconQuestionDiamondFill:p.xqZ,BIconQuestionLg:p.b_U,BIconQuestionOctagon:p.g2l,BIconQuestionOctagonFill:p.dqv,BIconQuestionSquare:p.d5d,BIconQuestionSquareFill:p.g1R,BIconRainbow:p.N0k,BIconReceipt:p.ust,BIconReceiptCutoff:p.Gxk,BIconReception0:p.ptJ,BIconReception1:p.YVL,BIconReception2:p.iTn,BIconReception3:p.USQ,BIconReception4:p.cm8,BIconRecord:p.yhH,BIconRecord2:p.MDD,BIconRecord2Fill:p.sYz,BIconRecordBtn:p.IpB,BIconRecordBtnFill:p.BDP,BIconRecordCircle:p._HZ,BIconRecordCircleFill:p.NWp,BIconRecordFill:p.xi8,BIconRecycle:p.bAN,BIconReddit:p.EeP,BIconReply:p.Yqx,BIconReplyAll:p.CSB,BIconReplyAllFill:p.ifk,BIconReplyFill:p.lq6,BIconRss:p.H7l,BIconRssFill:p.Dah,BIconRulers:p.EFm,BIconSafe:p.Ej8,BIconSafe2:p.xWj,BIconSafe2Fill:p.XyW,BIconSafeFill:p.sm9,BIconSave:p.QcS,BIconSave2:p.PUJ,BIconSave2Fill:p.Za9,BIconSaveFill:p.b$2,BIconScissors:p.cJK,BIconScrewdriver:p.olm,BIconSdCard:p.Wjf,BIconSdCardFill:p.Y6U,BIconSearch:p.Lln,BIconSegmentedNav:p.mlx,BIconServer:p.T1o,BIconShare:p.Rq4,BIconShareFill:p.EQi,BIconShield:p.PP4,BIconShieldCheck:p.jVl,BIconShieldExclamation:p.zlL,BIconShieldFill:p.aFN,BIconShieldFillCheck:p.Hs8,BIconShieldFillExclamation:p.vKM,BIconShieldFillMinus:p.yrP,BIconShieldFillPlus:p.Djs,BIconShieldFillX:p.aYp,BIconShieldLock:p.hNJ,BIconShieldLockFill:p.rr1,BIconShieldMinus:p.DoS,BIconShieldPlus:p.niF,BIconShieldShaded:p.C8q,BIconShieldSlash:p.aHb,BIconShieldSlashFill:p.Qxm,BIconShieldX:p.wSJ,BIconShift:p.K4x,BIconShiftFill:p.t$R,BIconShop:p.JSR,BIconShopWindow:p.Swf,BIconShuffle:p.JIg,BIconSignpost:p.$14,BIconSignpost2:p.JQd,BIconSignpost2Fill:p.uui,BIconSignpostFill:p.N5r,BIconSignpostSplit:p.qys,BIconSignpostSplitFill:p.CM6,BIconSim:p.Sxj,BIconSimFill:p.OyA,BIconSkipBackward:p.$oK,BIconSkipBackwardBtn:p.WdI,BIconSkipBackwardBtnFill:p.ph3,BIconSkipBackwardCircle:p.Ijv,BIconSkipBackwardCircleFill:p.qtp,BIconSkipBackwardFill:p.HSt,BIconSkipEnd:p.pIj,BIconSkipEndBtn:p.Jdj,BIconSkipEndBtnFill:p.AFY,BIconSkipEndCircle:p._3c,BIconSkipEndCircleFill:p.bu,BIconSkipEndFill:p.YAG,BIconSkipForward:p.VEf,BIconSkipForwardBtn:p.DiT,BIconSkipForwardBtnFill:p.U9A,BIconSkipForwardCircle:p.kLm,BIconSkipForwardCircleFill:p.Xg8,BIconSkipForwardFill:p.psN,BIconSkipStart:p.s0p,BIconSkipStartBtn:p.jyS,BIconSkipStartBtnFill:p.HHI,BIconSkipStartCircle:p.Ql_,BIconSkipStartCircleFill:p.rZ6,BIconSkipStartFill:p.klB,BIconSkype:p.nip,BIconSlack:p.GSI,BIconSlash:p.vcL,BIconSlashCircle:p.Sp1,BIconSlashCircleFill:p.GAz,BIconSlashLg:p.DnR,BIconSlashSquare:p.P8C,BIconSlashSquareFill:p.iGp,BIconSliders:p.b_Y,BIconSmartwatch:p.Nr_,BIconSnow:p.Yoy,BIconSnow2:p.HQ4,BIconSnow3:p.oJp,BIconSortAlphaDown:p.WvV,BIconSortAlphaDownAlt:p.zsJ,BIconSortAlphaUp:p.LfJ,BIconSortAlphaUpAlt:p.tpz,BIconSortDown:p.Rvz,BIconSortDownAlt:p.fFA,BIconSortNumericDown:p.bP8,BIconSortNumericDownAlt:p.UIq,BIconSortNumericUp:p.dwG,BIconSortNumericUpAlt:p.$3g,BIconSortUp:p.jyD,BIconSortUpAlt:p.T1q,BIconSoundwave:p.Mci,BIconSpeaker:p.pb8,BIconSpeakerFill:p.xBS,BIconSpeedometer:p.YBL,BIconSpeedometer2:p.V6_,BIconSpellcheck:p.e5V,BIconSquare:p.oYt,BIconSquareFill:p.lr5,BIconSquareHalf:p.jj_,BIconStack:p.L0Q,BIconStar:p.rWC,BIconStarFill:p.z76,BIconStarHalf:p.$T$,BIconStars:p.YSP,BIconStickies:p.BXe,BIconStickiesFill:p.YM1,BIconSticky:p.bBG,BIconStickyFill:p.PzY,BIconStop:p.Ja9,BIconStopBtn:p.EDu,BIconStopBtnFill:p.R$w,BIconStopCircle:p.XqR,BIconStopCircleFill:p.ZNk,BIconStopFill:p.ETC,BIconStoplights:p.Szf,BIconStoplightsFill:p.Jwj,BIconStopwatch:p.iZZ,BIconStopwatchFill:p.EeO,BIconSubtract:p.ypn,BIconSuitClub:p.vaB,BIconSuitClubFill:p.f6o,BIconSuitDiamond:p.dU_,BIconSuitDiamondFill:p.xYq,BIconSuitHeart:p.aXh,BIconSuitHeartFill:p.BG2,BIconSuitSpade:p.FdU,BIconSuitSpadeFill:p.cX_,BIconSun:p.wiA,BIconSunFill:p.jES,BIconSunglasses:p.tFD,BIconSunrise:p.lI6,BIconSunriseFill:p.nn6,BIconSunset:p.HZk,BIconSunsetFill:p.vrL,BIconSymmetryHorizontal:p.KHG,BIconSymmetryVertical:p.Tet,BIconTable:p.VqN,BIconTablet:p.IYS,BIconTabletFill:p.iQ7,BIconTabletLandscape:p.JEW,BIconTabletLandscapeFill:p.VHp,BIconTag:p.w_D,BIconTagFill:p.ayv,BIconTags:p.ZyB,BIconTagsFill:p.prG,BIconTelegram:p.AUI,BIconTelephone:p.aAC,BIconTelephoneFill:p.qmT,BIconTelephoneForward:p.GEo,BIconTelephoneForwardFill:p.hY9,BIconTelephoneInbound:p.X1s,BIconTelephoneInboundFill:p.YD2,BIconTelephoneMinus:p.EKW,BIconTelephoneMinusFill:p.DM6,BIconTelephoneOutbound:p.jDM,BIconTelephoneOutboundFill:p._VC,BIconTelephonePlus:p.xId,BIconTelephonePlusFill:p.RnR,BIconTelephoneX:p.fBY,BIconTelephoneXFill:p.hvI,BIconTerminal:p.Nf5,BIconTerminalFill:p.Uex,BIconTextCenter:p.FLd,BIconTextIndentLeft:p.wKc,BIconTextIndentRight:p.Dlh,BIconTextLeft:p.APx,BIconTextParagraph:p.mYi,BIconTextRight:p.s$o,BIconTextarea:p.ASE,BIconTextareaResize:p.Oos,BIconTextareaT:p.nOz,BIconThermometer:p.M1T,BIconThermometerHalf:p.OPm,BIconThermometerHigh:p.ztl,BIconThermometerLow:p.pwR,BIconThermometerSnow:p.gK0,BIconThermometerSun:p.n1l,BIconThreeDots:p.H7n,BIconThreeDotsVertical:p.sq6,BIconToggle2Off:p.uqy,BIconToggle2On:p.ILS,BIconToggleOff:p.A9,BIconToggleOn:p.oyf,BIconToggles:p.b7m,BIconToggles2:p.jhH,BIconTools:p.Nuo,BIconTornado:p.aLw,BIconTranslate:p.saS,BIconTrash:p.DkS,BIconTrash2:p.rI9,BIconTrash2Fill:p.nox,BIconTrashFill:p.jsZ,BIconTree:p.hTi,BIconTreeFill:p.Iqc,BIconTriangle:p._hV,BIconTriangleFill:p.FlM,BIconTriangleHalf:p.K1O,BIconTrophy:p.dst,BIconTrophyFill:p.ewq,BIconTropicalStorm:p.mo7,BIconTruck:p.X8t,BIconTruckFlatbed:p.udp,BIconTsunami:p.M81,BIconTv:p.qmC,BIconTvFill:p.b4Q,BIconTwitch:p.BmI,BIconTwitter:p.A82,BIconType:p.MCA,BIconTypeBold:p.ZmE,BIconTypeH1:p.Kg_,BIconTypeH2:p.HHY,BIconTypeH3:p.Kko,BIconTypeItalic:p.j7$,BIconTypeStrikethrough:p.q9f,BIconTypeUnderline:p.hDS,BIconUiChecks:p.Uz9,BIconUiChecksGrid:p.K1h,BIconUiRadios:p.bTh,BIconUiRadiosGrid:p.n_g,BIconUmbrella:p.wJZ,BIconUmbrellaFill:p.WO2,BIconUnion:p.eSm,BIconUnlock:p.pT1,BIconUnlockFill:p.ymc,BIconUpc:p.ehy,BIconUpcScan:p.x9k,BIconUpload:p.$V2,BIconVectorPen:p.G0y,BIconViewList:p.uL,BIconViewStacked:p.uSV,BIconVinyl:p.HA4,BIconVinylFill:p.PNX,BIconVoicemail:p.ddZ,BIconVolumeDown:p.vHp,BIconVolumeDownFill:p.Bc6,BIconVolumeMute:p.dvm,BIconVolumeMuteFill:p.Y1Z,BIconVolumeOff:p.kwf,BIconVolumeOffFill:p.BR7,BIconVolumeUp:p.Caz,BIconVolumeUpFill:p.Wdl,BIconVr:p.NpS,BIconWallet:p.N9Y,BIconWallet2:p.Qr2,BIconWalletFill:p.wYz,BIconWatch:p.yrV,BIconWater:p.Fw_,BIconWhatsapp:p.lLE,BIconWifi:p.kxn,BIconWifi1:p.Ulf,BIconWifi2:p.ViN,BIconWifiOff:p.zO$,BIconWind:p.K03,BIconWindow:p.KF5,BIconWindowDock:p.Ivm,BIconWindowSidebar:p.Grw,BIconWrench:p.z_2,BIconX:p.uR$,BIconXCircle:p.MIh,BIconXCircleFill:p.aEb,BIconXDiamond:p.XnP,BIconXDiamondFill:p.R8C,BIconXLg:p.hOD,BIconXOctagon:p.cu0,BIconXOctagonFill:p.xlC,BIconXSquare:p.ZGm,BIconXSquareFill:p.e_V,BIconYoutube:p.zm3,BIconZoomIn:p.Wet,BIconZoomOut:p.xcC}})},51205:(a,t,e)=>{e.d(t,{XG7:()=>ws});var n=e(86087),i=e(73106),r=(0,n.Hr)({components:{BAlert:i.F}}),o=e(1915),l=e(94689),c=e(12299),s=e(30824),h=e(21578),u=e(93954),d=e(20451),p=e(18280);function v(a,t){return g(a)||b(a,t)||m(a,t)||f()}function f(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function m(a,t){if(a){if("string"===typeof a)return z(a,t);var e=Object.prototype.toString.call(a).slice(8,-1);return"Object"===e&&a.constructor&&(e=a.constructor.name),"Map"===e||"Set"===e?Array.from(a):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?z(a,t):void 0}}function z(a,t){(null==t||t>a.length)&&(t=a.length);for(var e=0,n=new Array(t);ea.length)&&(t=a.length);for(var e=0,n=new Array(t);e1&&void 0!==arguments[1]?arguments[1]:$;a=(0,Z.zo)(a).filter(X.y);var e=new Intl.DateTimeFormat(a,{calendar:t});return e.resolvedOptions().locale},pa=function(a,t){var e=new Intl.DateTimeFormat(a,t);return e.format},va=function(a,t){return ua(a)===ua(t)},fa=function(a){return a=sa(a),a.setDate(1),a},ma=function(a){return a=sa(a),a.setMonth(a.getMonth()+1),a.setDate(0),a},za=function(a,t){a=sa(a);var e=a.getMonth();return a.setFullYear(a.getFullYear()+t),a.getMonth()!==e&&a.setDate(0),a},ba=function(a){a=sa(a);var t=a.getMonth();return a.setMonth(t-1),a.getMonth()===t&&a.setDate(0),a},ga=function(a){a=sa(a);var t=a.getMonth();return a.setMonth(t+1),a.getMonth()===(t+2)%12&&a.setDate(0),a},Ma=function(a){return za(a,-1)},ya=function(a){return za(a,1)},Va=function(a){return za(a,-10)},Ha=function(a){return za(a,10)},Aa=function(a){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return a=ha(a),t=ha(t)||a,e=ha(e)||a,a?ae?e:a:null},Ba=e(26410),Oa=e(28415),wa=e(9439),Ca=e(3058),Ia=e(54602),La=e(67040),Sa=e(46595),Pa=e(28492),Fa=e(73727),ka=e(72466);function ja(a,t){var e=Object.keys(a);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(a);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(a,t).enumerable}))),e.push.apply(e,n)}return e}function Ta(a){for(var t=1;tt}},dateDisabled:function(){var a=this,t=this.dateOutOfRange;return function(e){e=ha(e);var n=ua(e);return!(!t(e)&&!a.computedDateDisabledFn(n,e))}},formatDateString:function(){return pa(this.calendarLocale,Ta(Ta({year:q,month:G,day:G},this.dateFormatOptions),{},{hour:void 0,minute:void 0,second:void 0,calendar:$}))},formatYearMonth:function(){return pa(this.calendarLocale,{year:q,month:R,calendar:$})},formatWeekdayName:function(){return pa(this.calendarLocale,{weekday:R,calendar:$})},formatWeekdayNameShort:function(){return pa(this.calendarLocale,{weekday:this.weekdayHeaderFormat||U,calendar:$})},formatDay:function(){var a=new Intl.NumberFormat([this.computedLocale],{style:"decimal",minimumIntegerDigits:1,minimumFractionDigits:0,maximumFractionDigits:0,notation:"standard"});return function(t){return a.format(t.getDate())}},prevDecadeDisabled:function(){var a=this.computedMin;return this.disabled||a&&ma(Va(this.activeDate))a},nextYearDisabled:function(){var a=this.computedMax;return this.disabled||a&&fa(ya(this.activeDate))>a},nextDecadeDisabled:function(){var a=this.computedMax;return this.disabled||a&&fa(Ha(this.activeDate))>a},calendar:function(){for(var a=[],t=this.calendarFirstDay,e=t.getFullYear(),n=t.getMonth(),i=this.calendarDaysInMonth,r=t.getDay(),o=(this.computedWeekStarts>r?7:0)-this.computedWeekStarts,l=0-o-r,c=0;c<6&&l0),touchStartX:0,touchDeltaX:0}},computed:{numSlides:function(){return this.slides.length}},watch:(ft={},Bt(ft,It,(function(a,t){a!==t&&this.setSlide((0,u.Z3)(a,0))})),Bt(ft,"interval",(function(a,t){a!==t&&(a?(this.pause(!0),this.start(!1)):this.pause(!1))})),Bt(ft,"isPaused",(function(a,t){a!==t&&this.$emit(a?W._4:W.Ow)})),Bt(ft,"index",(function(a,t){a===t||this.isSliding||this.doSlide(a,t)})),ft),created:function(){this.$_interval=null,this.$_animationTimeout=null,this.$_touchTimeout=null,this.$_observer=null,this.isPaused=!((0,u.Z3)(this.interval,0)>0)},mounted:function(){this.transitionEndEvent=Dt(this.$el)||null,this.updateSlides(),this.setObserver(!0)},beforeDestroy:function(){this.clearInterval(),this.clearAnimationTimeout(),this.clearTouchTimeout(),this.setObserver(!1)},methods:{clearInterval:function(a){function t(){return a.apply(this,arguments)}return t.toString=function(){return a.toString()},t}((function(){clearInterval(this.$_interval),this.$_interval=null})),clearAnimationTimeout:function(){clearTimeout(this.$_animationTimeout),this.$_animationTimeout=null},clearTouchTimeout:function(){clearTimeout(this.$_touchTimeout),this.$_touchTimeout=null},setObserver:function(){var a=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.$_observer&&this.$_observer.disconnect(),this.$_observer=null,a&&(this.$_observer=(0,Vt.t)(this.$refs.inner,this.updateSlides.bind(this),{subtree:!1,childList:!0,attributes:!0,attributeFilter:["id"]}))},setSlide:function(a){var t=this,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!(et.Qg&&document.visibilityState&&document.hidden)){var n=this.noWrap,i=this.numSlides;a=(0,h.Mk)(a),0!==i&&(this.isSliding?this.$once(W.Kr,(function(){(0,Ba.bz)((function(){return t.setSlide(a,e)}))})):(this.direction=e,this.index=a>=i?n?i-1:0:a<0?n?0:i-1:a,n&&this.index!==a&&this.index!==this[It]&&this.$emit(Lt,this.index)))}},prev:function(){this.setSlide(this.index-1,"prev")},next:function(){this.setSlide(this.index+1,"next")},pause:function(a){a||(this.isPaused=!0),this.clearInterval()},start:function(a){a||(this.isPaused=!1),this.clearInterval(),this.interval&&this.numSlides>1&&(this.$_interval=setInterval(this.next,(0,h.nP)(1e3,this.interval)))},restart:function(){this.$el.contains((0,Ba.vY)())||this.start()},doSlide:function(a,t){var e=this,n=Boolean(this.interval),i=this.calcDirection(this.direction,t,a),r=i.overlayClass,o=i.dirClass,l=this.slides[t],c=this.slides[a];if(l&&c){if(this.isSliding=!0,n&&this.pause(!1),this.$emit(W.XH,a),this.$emit(Lt,this.index),this.noAnimation)(0,Ba.cn)(c,"active"),(0,Ba.IV)(l,"active"),this.isSliding=!1,this.$nextTick((function(){return e.$emit(W.Kr,a)}));else{(0,Ba.cn)(c,r),(0,Ba.nq)(c),(0,Ba.cn)(l,o),(0,Ba.cn)(c,o);var s=!1,h=function t(){if(!s){if(s=!0,e.transitionEndEvent){var n=e.transitionEndEvent.split(/\s+/);n.forEach((function(a){return(0,Oa.QY)(c,a,t,W.IJ)}))}e.clearAnimationTimeout(),(0,Ba.IV)(c,o),(0,Ba.IV)(c,r),(0,Ba.cn)(c,"active"),(0,Ba.IV)(l,"active"),(0,Ba.IV)(l,o),(0,Ba.IV)(l,r),(0,Ba.fi)(l,"aria-current","false"),(0,Ba.fi)(c,"aria-current","true"),(0,Ba.fi)(l,"aria-hidden","true"),(0,Ba.fi)(c,"aria-hidden","false"),e.isSliding=!1,e.direction=null,e.$nextTick((function(){return e.$emit(W.Kr,a)}))}};if(this.transitionEndEvent){var u=this.transitionEndEvent.split(/\s+/);u.forEach((function(a){return(0,Oa.XO)(c,a,h,W.IJ)}))}this.$_animationTimeout=setTimeout(h,Pt)}n&&this.start(!1)}},updateSlides:function(){this.pause(!0),this.slides=(0,Ba.a8)(".carousel-item",this.$refs.inner);var a=this.slides.length,t=(0,h.nP)(0,(0,h.bS)((0,h.Mk)(this.index),a-1));this.slides.forEach((function(e,n){var i=n+1;n===t?((0,Ba.cn)(e,"active"),(0,Ba.fi)(e,"aria-current","true")):((0,Ba.IV)(e,"active"),(0,Ba.fi)(e,"aria-current","false")),(0,Ba.fi)(e,"aria-posinset",String(i)),(0,Ba.fi)(e,"aria-setsize",String(a))})),this.setSlide(t),this.start(this.isPaused)},calcDirection:function(){var a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return a?St[a]:e>t?St.next:St.prev},handleClick:function(a,t){var e=a.keyCode;"click"!==a.type&&e!==K.m5&&e!==K.K2||((0,Oa.p7)(a),t())},handleSwipe:function(){var a=(0,h.W8)(this.touchDeltaX);if(!(a<=kt)){var t=a/this.touchDeltaX;this.touchDeltaX=0,t>0?this.prev():t<0&&this.next()}},touchStart:function(a){et.cM&&jt[a.pointerType.toUpperCase()]?this.touchStartX=a.clientX:et.cM||(this.touchStartX=a.touches[0].clientX)},touchMove:function(a){a.touches&&a.touches.length>1?this.touchDeltaX=0:this.touchDeltaX=a.touches[0].clientX-this.touchStartX},touchEnd:function(a){et.cM&&jt[a.pointerType.toUpperCase()]&&(this.touchDeltaX=a.clientX-this.touchStartX),this.handleSwipe(),this.pause(!1),this.clearTouchTimeout(),this.$_touchTimeout=setTimeout(this.start,Ft+(0,h.nP)(1e3,this.interval))}},render:function(a){var t=this,e=this.indicators,n=this.background,i=this.noAnimation,r=this.noHoverPause,o=this.noTouch,l=this.index,c=this.isSliding,s=this.pause,h=this.restart,u=this.touchStart,d=this.touchEnd,p=this.safeId("__BV_inner_"),v=a("div",{staticClass:"carousel-inner",attrs:{id:p,role:"list"},ref:"inner"},[this.normalizeSlot()]),f=a();if(this.controls){var m=function(e,n,i){var r=function(a){c?(0,Oa.p7)(a,{propagation:!1}):t.handleClick(a,i)};return a("a",{staticClass:"carousel-control-".concat(e),attrs:{href:"#",role:"button","aria-controls":p,"aria-disabled":c?"true":null},on:{click:r,keydown:r}},[a("span",{staticClass:"carousel-control-".concat(e,"-icon"),attrs:{"aria-hidden":"true"}}),a("span",{class:"sr-only"},[n])])};f=[m("prev",this.labelPrev,this.prev),m("next",this.labelNext,this.next)]}var z=a("ol",{staticClass:"carousel-indicators",directives:[{name:"show",value:e}],attrs:{id:this.safeId("__BV_indicators_"),"aria-hidden":e?"false":"true","aria-label":this.labelIndicators,"aria-owns":p}},this.slides.map((function(n,i){var r=function(a){t.handleClick(a,(function(){t.setSlide(i)}))};return a("li",{class:{active:i===l},attrs:{role:"button",id:t.safeId("__BV_indicator_".concat(i+1,"_")),tabindex:e?"0":"-1","aria-current":i===l?"true":"false","aria-label":"".concat(t.labelGotoSlide," ").concat(i+1),"aria-describedby":n.id||null,"aria-controls":p},on:{click:r,keydown:r},key:"slide_".concat(i)})}))),b={mouseenter:r?yt.Z:s,mouseleave:r?yt.Z:h,focusin:s,focusout:h,keydown:function(a){if(!/input|textarea/i.test(a.target.tagName)){var e=a.keyCode;e!==K.Cq&&e!==K.YO||((0,Oa.p7)(a),t[e===K.Cq?"prev":"next"]())}}};return et.LV&&!o&&(et.cM?(b["&pointerdown"]=u,b["&pointerup"]=d):(b["&touchstart"]=u,b["&touchmove"]=this.touchMove,b["&touchend"]=d)),a("div",{staticClass:"carousel",class:{slide:!i,"carousel-fade":!i&&this.fade,"pointer-event":et.LV&&et.cM&&!o},style:{background:n},attrs:{role:"region",id:this.safeId(),"aria-busy":c?"true":"false"},on:b},[v,f,z])}}),Nt=e(18735);function $t(a,t){var e=Object.keys(a);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(a);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(a,t).enumerable}))),e.push.apply(e,n)}return e}function Rt(a){for(var t=1;t0&&(c=[a("div",{staticClass:"b-form-date-controls d-flex flex-wrap",class:{"justify-content-between":c.length>1,"justify-content-end":c.length<2}},c)]);var p=a(Ga,{staticClass:"b-form-date-calendar w-100",props:pn(pn({},(0,d.uj)(yn,r)),{},{hidden:!this.isVisible,value:t,valueAsDate:!1,width:this.calendarWidth}),on:{selected:this.onSelected,input:this.onInput,context:this.onContext},scopedSlots:(0,La.ei)(o,["nav-prev-decade","nav-prev-year","nav-prev-month","nav-this-month","nav-next-month","nav-next-year","nav-next-decade"]),key:"calendar",ref:"calendar"},c);return a(un,{staticClass:"b-form-datepicker",props:pn(pn({},(0,d.uj)(Vn,r)),{},{formattedValue:t?this.formattedValue:"",id:this.safeId(),lang:this.computedLang,menuClass:[{"bg-dark":i,"text-light":i},this.menuClass],placeholder:l,rtl:this.isRTL,value:t}),on:{show:this.onShow,shown:this.onShown,hidden:this.onHidden},scopedSlots:vn({},J.j1,o[J.j1]||this.defaultButtonFn),ref:"control"},[p])}}),Bn=(0,n.Hr)({components:{BFormDatepicker:An,BDatepicker:An}}),On=e(28112),wn=e(30158),Cn=e(77147),In=e(58137);function Ln(a,t){var e=Object.keys(a);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(a);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(a,t).enumerable}))),e.push.apply(e,n)}return e}function Sn(a){for(var t=1;t1&&void 0!==arguments[1])||arguments[1];return Promise.all((0,Z.Dp)(a).filter((function(a){return"file"===a.kind})).map((function(a){var e=$n(a);if(e){if(e.isDirectory&&t)return _n(e.createReader(),"".concat(e.name,"/"));if(e.isFile)return new Promise((function(a){e.file((function(t){t.$path="",a(t)}))}))}return null})).filter(X.y))},_n=function a(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return new Promise((function(n){var i=[],r=function r(){t.readEntries((function(t){0===t.length?n(Promise.all(i).then((function(a){return(0,Z.xH)(a)}))):(i.push(Promise.all(t.map((function(t){if(t){if(t.isDirectory)return a(t.createReader(),"".concat(e).concat(t.name,"/"));if(t.isFile)return new Promise((function(a){t.file((function(t){t.$path="".concat(e).concat(t.name),a(t)}))}))}return null})).filter(X.y))),r())}))};r()}))},Un=(0,d.y2)((0,La.GE)(Sn(Sn(Sn(Sn(Sn(Sn(Sn({},Fa.N),Tn),Je.N),In.N),Xe.N),Ze.N),{},{accept:(0,d.pi)(c.N0,""),browseText:(0,d.pi)(c.N0,"Browse"),capture:(0,d.pi)(c.U5,!1),directory:(0,d.pi)(c.U5,!1),dropPlaceholder:(0,d.pi)(c.N0,"Drop files here"),fileNameFormatter:(0,d.pi)(c.Sx),multiple:(0,d.pi)(c.U5,!1),noDrop:(0,d.pi)(c.U5,!1),noDropPlaceholder:(0,d.pi)(c.N0,"Not allowed"),noTraverse:(0,d.pi)(c.U5,!1),placeholder:(0,d.pi)(c.N0,"No file chosen")})),l.Tx),Gn=(0,o.l7)({name:l.Tx,mixins:[Pa.D,Fa.t,jn,p.Z,Je.X,Xe.J,In.i,p.Z],inheritAttrs:!1,props:Un,data:function(){return{files:[],dragging:!1,dropAllowed:!this.noDrop,hasFocus:!1}},computed:{computedAccept:function(){var a=this.accept;return a=(a||"").trim().split(/[,\s]+/).filter(X.y),0===a.length?null:a.map((function(a){var t="name",e="^",n="$";s._4.test(a)?e="":(t="type",s.vY.test(a)&&(n=".+$",a=a.slice(0,-1))),a=(0,Sa.hr)(a);var i=new RegExp("".concat(e).concat(a).concat(n));return{rx:i,prop:t}}))},computedCapture:function(){var a=this.capture;return!0===a||""===a||(a||null)},computedAttrs:function(){var a=this.name,t=this.disabled,e=this.required,n=this.form,i=this.computedCapture,r=this.accept,o=this.multiple,l=this.directory;return Sn(Sn({},this.bvAttrs),{},{type:"file",id:this.safeId(),name:a,disabled:t,required:e,form:n||null,capture:i,accept:r||null,multiple:o,directory:l,webkitdirectory:l,"aria-required":e?"true":null})},computedFileNameFormatter:function(){var a=this.fileNameFormatter;return(0,d.lo)(a)?a:this.defaultFileNameFormatter},clonedFiles:function(){return(0,wn.X)(this.files)},flattenedFiles:function(){return(0,Z.Ar)(this.files)},fileNames:function(){return this.flattenedFiles.map((function(a){return a.name}))},labelContent:function(){if(this.dragging&&!this.noDrop)return this.normalizeSlot(J.h0,{allowed:this.dropAllowed})||(this.dropAllowed?this.dropPlaceholder:this.$createElement("span",{staticClass:"text-danger"},this.noDropPlaceholder));if(0===this.files.length)return this.normalizeSlot(J.Nd)||this.placeholder;var a=this.flattenedFiles,t=this.clonedFiles,e=this.fileNames,n=this.computedFileNameFormatter;return this.hasNormalizedSlot(J.hU)?this.normalizeSlot(J.hU,{files:a,filesTraversed:t,names:e}):n(a,t,e)}},watch:(fn={},Pn(fn,Dn,(function(a){(!a||(0,Y.kJ)(a)&&0===a.length)&&this.reset()})),Pn(fn,"files",(function(a,t){if(!(0,Ca.W)(a,t)){var e=this.multiple,n=this.noTraverse,i=!e||n?(0,Z.Ar)(a):a;this.$emit(En,e?i:i[0]||null)}})),fn),created:function(){this.$_form=null},mounted:function(){var a=(0,Ba.oq)("form",this.$el);a&&((0,Oa.XO)(a,"reset",this.reset,W.SH),this.$_form=a)},beforeDestroy:function(){var a=this.$_form;a&&(0,Oa.QY)(a,"reset",this.reset,W.SH)},methods:{isFileValid:function(a){if(!a)return!1;var t=this.computedAccept;return!t||t.some((function(t){return t.rx.test(a[t.prop])}))},isFilesArrayValid:function(a){var t=this;return(0,Y.kJ)(a)?a.every((function(a){return t.isFileValid(a)})):this.isFileValid(a)},defaultFileNameFormatter:function(a,t,e){return e.join(", ")},setFiles:function(a){this.dropAllowed=!this.noDrop,this.dragging=!1,this.files=this.multiple?this.directory?a:(0,Z.Ar)(a):(0,Z.Ar)(a).slice(0,1)},setInputFiles:function(a){try{var t=new ClipboardEvent("").clipboardData||new DataTransfer;(0,Z.Ar)((0,wn.X)(a)).forEach((function(a){delete a.$path,t.items.add(a)})),this.$refs.input.files=t.files}catch(e){}},reset:function(){try{var a=this.$refs.input;a.value="",a.type="",a.type="file"}catch(t){}this.files=[]},handleFiles:function(a){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(t){var e=a.filter(this.isFilesArrayValid);e.length>0&&(this.setFiles(e),this.setInputFiles(e))}else this.setFiles(a)},focusHandler:function(a){this.plain||"focusout"===a.type?this.hasFocus=!1:this.hasFocus=!0},onChange:function(a){var t=this,e=a.type,n=a.target,i=a.dataTransfer,r=void 0===i?{}:i,o="drop"===e;this.$emit(W.z2,a);var l=(0,Z.Dp)(r.items||[]);if(et.zx&&l.length>0&&!(0,Y.Ft)($n(l[0])))Rn(l,this.directory).then((function(a){return t.handleFiles(a,o)}));else{var c=(0,Z.Dp)(n.files||r.files||[]).map((function(a){return a.$path=a.webkitRelativePath||"",a}));this.handleFiles(c,o)}},onDragenter:function(a){(0,Oa.p7)(a),this.dragging=!0;var t=a.dataTransfer,e=void 0===t?{}:t;if(this.noDrop||this.disabled||!this.dropAllowed)return e.dropEffect="none",void(this.dropAllowed=!1);e.dropEffect="copy"},onDragover:function(a){(0,Oa.p7)(a),this.dragging=!0;var t=a.dataTransfer,e=void 0===t?{}:t;if(this.noDrop||this.disabled||!this.dropAllowed)return e.dropEffect="none",void(this.dropAllowed=!1);e.dropEffect="copy"},onDragleave:function(a){var t=this;(0,Oa.p7)(a),this.$nextTick((function(){t.dragging=!1,t.dropAllowed=!t.noDrop}))},onDrop:function(a){var t=this;(0,Oa.p7)(a),this.dragging=!1,this.noDrop||this.disabled||!this.dropAllowed?this.$nextTick((function(){t.dropAllowed=!t.noDrop})):this.onChange(a)}},render:function(a){var t=this.custom,e=this.plain,n=this.size,i=this.dragging,r=this.stateClass,o=this.bvAttrs,l=a("input",{class:[{"form-control-file":e,"custom-file-input":t,focus:t&&this.hasFocus},r],style:t?{zIndex:-5}:{},attrs:this.computedAttrs,on:{change:this.onChange,focusin:this.focusHandler,focusout:this.focusHandler,reset:this.reset},ref:"input"});if(e)return l;var c=a("label",{staticClass:"custom-file-label",class:{dragging:i},attrs:{for:this.safeId(),"data-browse":this.browseText||null}},[a("span",{staticClass:"d-block form-file-text",style:{pointerEvents:"none"}},[this.labelContent])]);return a("div",{staticClass:"custom-file b-form-file",class:[Pn({},"b-custom-control-".concat(n),n),r,o.class],style:o.style,attrs:{id:this.safeId("_BV_file_outer_")},on:{dragenter:this.onDragenter,dragover:this.onDragover,dragleave:this.onDragleave,drop:this.onDrop}},[l,c])}}),qn=(0,n.Hr)({components:{BFormFile:Gn,BFile:Gn}}),Wn=e(46709),Kn=(0,n.Hr)({components:{BFormGroup:Wn.x,BFormFieldset:Wn.x}}),Jn=e(22183),Zn=(0,n.Hr)({components:{BFormInput:Jn.e,BInput:Jn.e}}),Xn=e(76398),Yn=e(87167),Qn=(0,n.Hr)({components:{BFormRadio:Xn.g,BRadio:Xn.g,BFormRadioGroup:Yn.Q,BRadioGroup:Yn.Q}}),ai=e(43022);function ti(a,t){var e=Object.keys(a);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(a);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(a,t).enumerable}))),e.push.apply(e,n)}return e}function ei(a){for(var t=1;t=e?"full":t>=e-.5?"half":"empty",h={variant:r,disabled:o,readonly:l};return a("span",{staticClass:"b-rating-star",class:{focused:n&&t===e||!(0,u.Z3)(t)&&e===c,"b-rating-star-empty":"empty"===s,"b-rating-star-half":"half"===s,"b-rating-star-full":"full"===s},attrs:{tabindex:o||l?null:"-1"},on:{click:this.onClick}},[a("span",{staticClass:"b-rating-icon"},[this.normalizeSlot(s,h)])])}}),fi=(0,d.y2)((0,La.GE)(ei(ei(ei(ei(ei({},Fa.N),li),(0,La.CE)(Je.N,["required","autofocus"])),Ze.N),{},{color:(0,d.pi)(c.N0),iconClear:(0,d.pi)(c.N0,"x"),iconEmpty:(0,d.pi)(c.N0,"star"),iconFull:(0,d.pi)(c.N0,"star-fill"),iconHalf:(0,d.pi)(c.N0,"star-half"),inline:(0,d.pi)(c.U5,!1),locale:(0,d.pi)(c.Mu),noBorder:(0,d.pi)(c.U5,!1),precision:(0,d.pi)(c.fE),readonly:(0,d.pi)(c.U5,!1),showClear:(0,d.pi)(c.U5,!1),showValue:(0,d.pi)(c.U5,!1),showValueMax:(0,d.pi)(c.U5,!1),stars:(0,d.pi)(c.fE,ui,(function(a){return(0,u.Z3)(a)>=hi})),variant:(0,d.pi)(c.N0)})),l.VY),mi=(0,o.l7)({name:l.VY,components:{BIconStar:ka.rWC,BIconStarHalf:ka.$T$,BIconStarFill:ka.z76,BIconX:ka.uR$},mixins:[Fa.t,oi,Ze.j],props:fi,data:function(){var a=(0,u.f_)(this[ci],null),t=di(this.stars);return{localValue:(0,Y.Ft)(a)?null:pi(a,0,t),hasFocus:!1}},computed:{computedStars:function(){return di(this.stars)},computedRating:function(){var a=(0,u.f_)(this.localValue,0),t=(0,u.Z3)(this.precision,3);return pi((0,u.f_)(a.toFixed(t)),0,this.computedStars)},computedLocale:function(){var a=(0,Z.zo)(this.locale).filter(X.y),t=new Intl.NumberFormat(a);return t.resolvedOptions().locale},isInteractive:function(){return!this.disabled&&!this.readonly},isRTL:function(){return(0,wa.e)(this.computedLocale)},formattedRating:function(){var a=(0,u.Z3)(this.precision),t=this.showValueMax,e=this.computedLocale,n={notation:"standard",minimumFractionDigits:isNaN(a)?0:a,maximumFractionDigits:isNaN(a)?3:a},i=this.computedStars.toLocaleString(e),r=this.localValue;return r=(0,Y.Ft)(r)?t?"-":"":r.toLocaleString(e,n),t?"".concat(r,"/").concat(i):r}},watch:(Fn={},ni(Fn,ci,(function(a,t){if(a!==t){var e=(0,u.f_)(a,null);this.localValue=(0,Y.Ft)(e)?null:pi(e,0,this.computedStars)}})),ni(Fn,"localValue",(function(a,t){a!==t&&a!==(this.value||0)&&this.$emit(si,a||null)})),ni(Fn,"disabled",(function(a){a&&(this.hasFocus=!1,this.blur())})),Fn),methods:{focus:function(){this.disabled||(0,Ba.KS)(this.$el)},blur:function(){this.disabled||(0,Ba.Cx)(this.$el)},onKeydown:function(a){var t=a.keyCode;if(this.isInteractive&&(0,Z.kI)([K.Cq,K.RV,K.YO,K.XS],t)){(0,Oa.p7)(a,{propagation:!1});var e=(0,u.Z3)(this.localValue,0),n=this.showClear?0:1,i=this.computedStars,r=this.isRTL?-1:1;t===K.Cq?this.localValue=pi(e-r,n,i)||null:t===K.YO?this.localValue=pi(e+r,n,i):t===K.RV?this.localValue=pi(e-1,n,i)||null:t===K.XS&&(this.localValue=pi(e+1,n,i))}},onSelected:function(a){this.isInteractive&&(this.localValue=a)},onFocus:function(a){this.hasFocus=!!this.isInteractive&&"focus"===a.type},renderIcon:function(a){return this.$createElement(ai.H,{props:{icon:a,variant:this.disabled||this.color?null:this.variant||null}})},iconEmptyFn:function(){return this.renderIcon(this.iconEmpty)},iconHalfFn:function(){return this.renderIcon(this.iconHalf)},iconFullFn:function(){return this.renderIcon(this.iconFull)},iconClearFn:function(){return this.$createElement(ai.H,{props:{icon:this.iconClear}})}},render:function(a){var t=this,e=this.disabled,n=this.readonly,i=this.name,r=this.form,o=this.inline,l=this.variant,c=this.color,s=this.noBorder,h=this.hasFocus,u=this.computedRating,d=this.computedStars,p=this.formattedRating,v=this.showClear,f=this.isRTL,m=this.isInteractive,z=this.$scopedSlots,b=[];if(v&&!e&&!n){var g=a("span",{staticClass:"b-rating-icon"},[(z[J.uH]||this.iconClearFn)()]);b.push(a("span",{staticClass:"b-rating-star b-rating-star-clear flex-grow-1",class:{focused:h&&0===u},attrs:{tabindex:m?"-1":null},on:{click:function(){return t.onSelected(null)}},key:"clear"},[g]))}for(var M=0;Ma.length)&&(t=a.length);for(var e=0,n=new Array(t);e1&&void 0!==arguments[1]&&arguments[1];if((0,Y.Ft)(t)||(0,Y.Ft)(e)||i&&(0,Y.Ft)(n))return"";var r=[t,e,i?n:0];return r.map(Gi).join(":")},Ki=(0,d.y2)((0,La.GE)(Li(Li(Li(Li({},Fa.N),$i),(0,La.ei)(Vi.N,["labelIncrement","labelDecrement"])),{},{ariaLabelledby:(0,d.pi)(c.N0),disabled:(0,d.pi)(c.U5,!1),footerTag:(0,d.pi)(c.N0,"footer"),headerTag:(0,d.pi)(c.N0,"header"),hidden:(0,d.pi)(c.U5,!1),hideHeader:(0,d.pi)(c.U5,!1),hour12:(0,d.pi)(c.U5,null),labelAm:(0,d.pi)(c.N0,"AM"),labelAmpm:(0,d.pi)(c.N0,"AM/PM"),labelHours:(0,d.pi)(c.N0,"Hours"),labelMinutes:(0,d.pi)(c.N0,"Minutes"),labelNoTimeSelected:(0,d.pi)(c.N0,"No time selected"),labelPm:(0,d.pi)(c.N0,"PM"),labelSeconds:(0,d.pi)(c.N0,"Seconds"),labelSelected:(0,d.pi)(c.N0,"Selected time"),locale:(0,d.pi)(c.Mu),minutesStep:(0,d.pi)(c.fE,1),readonly:(0,d.pi)(c.U5,!1),secondsStep:(0,d.pi)(c.fE,1),showSeconds:(0,d.pi)(c.U5,!1)})),l.tq),Ji=(0,o.l7)({name:l.tq,mixins:[Fa.t,Ni,p.Z],props:Ki,data:function(){var a=qi(this[Ri]||"");return{modelHours:a.hours,modelMinutes:a.minutes,modelSeconds:a.seconds,modelAmpm:a.ampm,isLive:!1}},computed:{computedHMS:function(){var a=this.modelHours,t=this.modelMinutes,e=this.modelSeconds;return Wi({hours:a,minutes:t,seconds:e},this.showSeconds)},resolvedOptions:function(){var a=(0,Z.zo)(this.locale).filter(X.y),t={hour:Ui,minute:Ui,second:Ui};(0,Y.Jp)(this.hour12)||(t.hour12=!!this.hour12);var e=new Intl.DateTimeFormat(a,t),n=e.resolvedOptions(),i=n.hour12||!1,r=n.hourCycle||(i?"h12":"h23");return{locale:n.locale,hour12:i,hourCycle:r}},computedLocale:function(){return this.resolvedOptions.locale},computedLang:function(){return(this.computedLocale||"").replace(/-u-.*$/,"")},computedRTL:function(){return(0,wa.e)(this.computedLang)},computedHourCycle:function(){return this.resolvedOptions.hourCycle},is12Hour:function(){return!!this.resolvedOptions.hour12},context:function(){return{locale:this.computedLocale,isRTL:this.computedRTL,hourCycle:this.computedHourCycle,hour12:this.is12Hour,hours:this.modelHours,minutes:this.modelMinutes,seconds:this.showSeconds?this.modelSeconds:0,value:this.computedHMS,formatted:this.formattedTimeString}},valueId:function(){return this.safeId()||null},computedAriaLabelledby:function(){return[this.ariaLabelledby,this.valueId].filter(X.y).join(" ")||null},timeFormatter:function(){var a={hour12:this.is12Hour,hourCycle:this.computedHourCycle,hour:Ui,minute:Ui,timeZone:"UTC"};return this.showSeconds&&(a.second=Ui),pa(this.computedLocale,a)},numberFormatter:function(){var a=new Intl.NumberFormat(this.computedLocale,{style:"decimal",minimumIntegerDigits:2,minimumFractionDigits:0,maximumFractionDigits:0,notation:"standard"});return a.format},formattedTimeString:function(){var a=this.modelHours,t=this.modelMinutes,e=this.showSeconds&&this.modelSeconds||0;return this.computedHMS?this.timeFormatter(sa(Date.UTC(0,0,1,a,t,e))):this.labelNoTimeSelected||" "},spinScopedSlots:function(){var a=this.$createElement;return{increment:function(t){var e=t.hasFocus;return a(ka.b4M,{props:{scale:e?1.5:1.25},attrs:{"aria-hidden":"true"}})},decrement:function(t){var e=t.hasFocus;return a(ka.b4M,{props:{flipV:!0,scale:e?1.5:1.25},attrs:{"aria-hidden":"true"}})}}}},watch:(ii={},Si(ii,Ri,(function(a,t){if(a!==t&&!(0,Ca.W)(qi(a),qi(this.computedHMS))){var e=qi(a),n=e.hours,i=e.minutes,r=e.seconds,o=e.ampm;this.modelHours=n,this.modelMinutes=i,this.modelSeconds=r,this.modelAmpm=o}})),Si(ii,"computedHMS",(function(a,t){a!==t&&this.$emit(_i,a)})),Si(ii,"context",(function(a,t){(0,Ca.W)(a,t)||this.$emit(W.XD,a)})),Si(ii,"modelAmpm",(function(a,t){var e=this;if(a!==t){var n=(0,Y.Ft)(this.modelHours)?0:this.modelHours;this.$nextTick((function(){0===a&&n>11?e.modelHours=n-12:1===a&&n<12&&(e.modelHours=n+12)}))}})),Si(ii,"modelHours",(function(a,t){a!==t&&(this.modelAmpm=a>11?1:0)})),ii),created:function(){var a=this;this.$nextTick((function(){a.$emit(W.XD,a.context)}))},mounted:function(){this.setLive(!0)},activated:function(){this.setLive(!0)},deactivated:function(){this.setLive(!1)},beforeDestroy:function(){this.setLive(!1)},methods:{focus:function(){this.disabled||(0,Ba.KS)(this.$refs.spinners[0])},blur:function(){if(!this.disabled){var a=(0,Ba.vY)();(0,Ba.r3)(this.$el,a)&&(0,Ba.Cx)(a)}},formatHours:function(a){var t=this.computedHourCycle;return a=this.is12Hour&&a>12?a-12:a,a=0===a&&"h12"===t?12:0===a&&"h24"===t?24:12===a&&"h11"===t?0:a,this.numberFormatter(a)},formatMinutes:function(a){return this.numberFormatter(a)},formatSeconds:function(a){return this.numberFormatter(a)},formatAmpm:function(a){return 0===a?this.labelAm:1===a?this.labelPm:""},setHours:function(a){this.modelHours=a},setMinutes:function(a){this.modelMinutes=a},setSeconds:function(a){this.modelSeconds=a},setAmpm:function(a){this.modelAmpm=a},onSpinLeftRight:function(){var a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=a.type,e=a.keyCode;if(!this.disabled&&"keydown"===t&&(e===K.Cq||e===K.YO)){(0,Oa.p7)(a);var n=this.$refs.spinners||[],i=n.map((function(a){return!!a.hasFocus})).indexOf(!0);i+=e===K.Cq?-1:1,i=i>=n.length?0:i<0?n.length-1:i,(0,Ba.KS)(n[i])}},setLive:function(a){var t=this;a?this.$nextTick((function(){(0,Ba.bz)((function(){t.isLive=!0}))})):this.isLive=!1}},render:function(a){var t=this;if(this.hidden)return a();var e=this.disabled,n=this.readonly,i=this.computedLocale,r=this.computedAriaLabelledby,l=this.labelIncrement,c=this.labelDecrement,s=this.valueId,h=this.focus,u=[],d=function(r,h,d){var p=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},v=t.safeId("_spinbutton_".concat(h,"_"))||null;return u.push(v),a(Vi.G,Si({class:d,props:Li({id:v,placeholder:"--",vertical:!0,required:!0,disabled:e,readonly:n,locale:i,labelIncrement:l,labelDecrement:c,wrap:!0,ariaControls:s,min:0},p),scopedSlots:t.spinScopedSlots,on:{change:r},key:h,ref:"spinners"},o.TF,!0))},p=function(){return a("div",{staticClass:"d-flex flex-column",class:{"text-muted":e||n},attrs:{"aria-hidden":"true"}},[a(ka.gMT,{props:{shiftV:4,scale:.5}}),a(ka.gMT,{props:{shiftV:-4,scale:.5}})])},v=[];v.push(d(this.setHours,"hours","b-time-hours",{value:this.modelHours,max:23,step:1,formatterFn:this.formatHours,ariaLabel:this.labelHours})),v.push(p()),v.push(d(this.setMinutes,"minutes","b-time-minutes",{value:this.modelMinutes,max:59,step:this.minutesStep||1,formatterFn:this.formatMinutes,ariaLabel:this.labelMinutes})),this.showSeconds&&(v.push(p()),v.push(d(this.setSeconds,"seconds","b-time-seconds",{value:this.modelSeconds,max:59,step:this.secondsStep||1,formatterFn:this.formatSeconds,ariaLabel:this.labelSeconds}))),this.isLive&&this.is12Hour&&v.push(d(this.setAmpm,"ampm","b-time-ampm",{value:this.modelAmpm,max:1,formatterFn:this.formatAmpm,ariaLabel:this.labelAmpm,required:!1})),v=a("div",{staticClass:"d-flex align-items-center justify-content-center mx-auto",attrs:{role:"group",tabindex:e||n?null:"-1","aria-labelledby":r},on:{keydown:this.onSpinLeftRight,click:function(a){a.target===a.currentTarget&&h()}}},v);var f=a("output",{staticClass:"form-control form-control-sm text-center",class:{disabled:e||n},attrs:{id:s,role:"status",for:u.filter(X.y).join(" ")||null,tabindex:e?null:"-1","aria-live":this.isLive?"polite":"off","aria-atomic":"true"},on:{click:h,focus:h}},[a("bdi",this.formattedTimeString),this.computedHMS?a("span",{staticClass:"sr-only"}," (".concat(this.labelSelected,") ")):""]),m=a(this.headerTag,{staticClass:"b-time-header",class:{"sr-only":this.hideHeader}},[f]),z=this.normalizeSlot(),b=z?a(this.footerTag,{staticClass:"b-time-footer"},z):a();return a("div",{staticClass:"b-time d-inline-flex flex-column text-center",attrs:{role:"group",lang:this.computedLang||null,"aria-labelledby":r||null,"aria-disabled":e?"true":null,"aria-readonly":n&&!e?"true":null}},[m,v,b])}});function Zi(a,t){var e=Object.keys(a);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(a);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(a,t).enumerable}))),e.push.apply(e,n)}return e}function Xi(a){for(var t=1;t0&&o.push(a("span"," "));var c=this.labelResetButton;o.push(a(k.T,{props:{size:"sm",disabled:e||n,variant:this.resetButtonVariant},attrs:{"aria-label":c||null},on:{click:this.onResetButton},key:"reset-btn"},c))}if(!this.noCloseButton){o.length>0&&o.push(a("span"," "));var s=this.labelCloseButton;o.push(a(k.T,{props:{size:"sm",disabled:e,variant:this.closeButtonVariant},attrs:{"aria-label":s||null},on:{click:this.onCloseButton},key:"close-btn"},s))}o.length>0&&(o=[a("div",{staticClass:"b-form-date-controls d-flex flex-wrap",class:{"justify-content-between":o.length>1,"justify-content-end":o.length<2}},o)]);var h=a(Ji,{staticClass:"b-form-time-control",props:Xi(Xi({},(0,d.uj)(ir,i)),{},{value:t,hidden:!this.isVisible}),on:{input:this.onInput,context:this.onContext},ref:"time"},o);return a(un,{staticClass:"b-form-timepicker",props:Xi(Xi({},(0,d.uj)(rr,i)),{},{id:this.safeId(),value:t,formattedValue:t?this.formattedValue:"",placeholder:r,rtl:this.isRTL,lang:this.computedLang}),on:{show:this.onShow,shown:this.onShown,hidden:this.onHidden},scopedSlots:Yi({},J.j1,this.$scopedSlots[J.j1]||this.defaultButtonFn),ref:"control"},[h])}}),cr=(0,n.Hr)({components:{BFormTimepicker:lr,BTimepicker:lr}}),sr=(0,n.Hr)({components:{BImg:tt.s,BImgLazy:ut}}),hr=e(4060),ur=e(74199),dr=e(27754),pr=e(22418),vr=e(18222),fr=(0,n.Hr)({components:{BInputGroup:hr.w,BInputGroupAddon:ur.B,BInputGroupPrepend:dr.P,BInputGroupAppend:pr.B,BInputGroupText:vr.e}}),mr=e(34147);function zr(a,t,e){return t in a?Object.defineProperty(a,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):a[t]=e,a}var br=(0,d.y2)({bgVariant:(0,d.pi)(c.N0),borderVariant:(0,d.pi)(c.N0),containerFluid:(0,d.pi)(c.gL,!1),fluid:(0,d.pi)(c.U5,!1),header:(0,d.pi)(c.N0),headerHtml:(0,d.pi)(c.N0),headerLevel:(0,d.pi)(c.fE,3),headerTag:(0,d.pi)(c.N0,"h1"),lead:(0,d.pi)(c.N0),leadHtml:(0,d.pi)(c.N0),leadTag:(0,d.pi)(c.N0,"p"),tag:(0,d.pi)(c.N0,"div"),textVariant:(0,d.pi)(c.N0)},l.Qf),gr=(0,o.l7)({name:l.Qf,functional:!0,props:br,render:function(a,t){var e,n=t.props,i=t.data,r=t.slots,o=t.scopedSlots,l=n.header,c=n.headerHtml,s=n.lead,h=n.leadHtml,u=n.textVariant,d=n.bgVariant,p=n.borderVariant,v=o||{},f=r(),m={},z=a(),b=(0,me.Q)(J._0,v,f);if(b||l||c){var g=n.headerLevel;z=a(n.headerTag,{class:zr({},"display-".concat(g),g),domProps:b?{}:(0,Nt.U)(c,l)},(0,me.O)(J._0,m,v,f))}var M=a(),y=(0,me.Q)(J.WU,v,f);(y||s||h)&&(M=a(n.leadTag,{staticClass:"lead",domProps:y?{}:(0,Nt.U)(h,s)},(0,me.O)(J.WU,m,v,f)));var V=[z,M,(0,me.O)(J.Pq,m,v,f)];return n.fluid&&(V=[a(mr.h,{props:{fluid:n.containerFluid}},V)]),a(n.tag,(0,at.b)(i,{staticClass:"jumbotron",class:(e={"jumbotron-fluid":n.fluid},zr(e,"text-".concat(u),u),zr(e,"bg-".concat(d),d),zr(e,"border-".concat(p),p),zr(e,"border",p),e)}),V)}}),Mr=(0,n.Hr)({components:{BJumbotron:gr}}),yr=e(48648),Vr=e(67347),Hr=(0,n.Hr)({components:{BLink:Vr.we}}),Ar=e(70322),Br=e(88367),Or=(0,n.Hr)({components:{BListGroup:Ar.N,BListGroupItem:Br.f}}),wr=e(72775),Cr=e(87272),Ir=e(68361),Lr=(0,n.Hr)({components:{BMedia:wr.P,BMediaAside:Cr.D,BMediaBody:Ir.D}}),Sr=e(54016),Pr=e(29027),Fr=e(32450),kr={},jr=(0,o.l7)({name:l.fn,functional:!0,props:kr,render:function(a,t){var e=t.data,n=t.children;return a("li",(0,at.b)(e,{staticClass:"navbar-text"}),n)}});function Tr(a,t){var e=Object.keys(a);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(a);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(a,t).enumerable}))),e.push.apply(e,n)}return e}function Dr(a){for(var t=1;ta.length)&&(t=a.length);for(var e=0,n=new Array(t);e0?this.localNumberOfPages=this.pages.length:this.localNumberOfPages=Oo(this.numberOfPages),this.$nextTick((function(){a.guessCurrentPage()}))},onClick:function(a,t){var e=this;if(t!==this.currentPage){var n=a.currentTarget||a.target,i=new Mo.n(W.M$,{cancelable:!0,vueTarget:this,target:n});this.$emit(i.type,i,t),i.defaultPrevented||((0,Ba.bz)((function(){e.currentPage=t,e.$emit(W.z2,t)})),this.$nextTick((function(){(0,Ba.Cx)(n)})))}},getPageInfo:function(a){if(!(0,Y.kJ)(this.pages)||0===this.pages.length||(0,Y.o8)(this.pages[a-1])){var t="".concat(this.baseUrl).concat(a);return{link:this.useRouter?{path:t}:t,text:(0,Sa.BB)(a)}}var e=this.pages[a-1];if((0,Y.Kn)(e)){var n=e.link;return{link:(0,Y.Kn)(n)?n:this.useRouter?{path:n}:n,text:(0,Sa.BB)(e.text||a)}}return{link:(0,Sa.BB)(e),text:(0,Sa.BB)(a)}},makePage:function(a){var t=this.pageGen,e=this.getPageInfo(a);return(0,d.lo)(t)?t(a,e):e.text},makeLink:function(a){var t=this.linkGen,e=this.getPageInfo(a);return(0,d.lo)(t)?t(a,e):e.link},linkProps:function(a){var t=(0,d.uj)(wo,this),e=this.makeLink(a);return this.useRouter||(0,Y.Kn)(e)?t.to=e:t.href=e,t},resolveLink:function(){var a,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";try{a=document.createElement("a"),a.href=(0,yo.tN)({to:t},"a","/","/"),document.body.appendChild(a);var e=a,n=e.pathname,i=e.hash,r=e.search;return document.body.removeChild(a),{path:n,hash:i,query:(0,yo.mB)(r)}}catch(o){try{a&&a.parentNode&&a.parentNode.removeChild(a)}catch(l){}return{}}},resolveRoute:function(){var a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";try{var t=this.$router.resolve(a,this.$route).route;return{path:t.path,hash:t.hash,query:t.query}}catch(e){return{}}},guessCurrentPage:function(){var a=this.$router,t=this.$route,e=this.computedValue;if(!this.noPageDetect&&!e&&(et.Qg||!et.Qg&&a))for(var n=a&&t?{path:t.path,hash:t.hash,query:t.query}:{},i=et.Qg?window.location||document.location:null,r=i?{path:i.pathname,hash:i.hash,query:(0,yo.mB)(i.search)}:{},o=1;!e&&o<=this.localNumberOfPages;o++){var l=this.makeLink(o);e=a&&((0,Y.Kn)(l)||this.useRouter)?(0,Ca.W)(this.resolveRoute(l),n)?o:null:et.Qg?(0,Ca.W)(this.resolveLink(l),r)?o:null:-1}this.currentPage=e>0?e:0}}}),Lo=(0,n.Hr)({components:{BPaginationNav:Io}}),So=e(53862),Po=e(79968),Fo=e(13597),ko=e(96056),jo=e(55789),To=e(63929);function Do(a,t){var e=Object.keys(a);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(a);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(a,t).enumerable}))),e.push.apply(e,n)}return e}function Eo(a){for(var t=1;t0&&a[$o].updateData(t)}))}var r={title:n.title,content:n.content,triggers:n.trigger,placement:n.placement,fallbackPlacement:n.fallbackPlacement,variant:n.variant,customClass:n.customClass,container:n.container,boundary:n.boundary,delay:n.delay,offset:n.offset,noFade:!n.animation,id:n.id,disabled:n.disabled,html:n.html},o=a[$o].__bv_prev_data__;if(a[$o].__bv_prev_data__=r,!(0,Ca.W)(r,o)){var l={target:a};(0,La.XP)(r).forEach((function(t){r[t]!==o[t]&&(l[t]="title"!==t&&"content"!==t||!(0,Y.mf)(r[t])?r[t]:r[t](a))})),a[$o].updateData(l)}}},el=function(a){a[$o]&&(a[$o].$destroy(),a[$o]=null),delete a[$o]},nl={bind:function(a,t,e){tl(a,t,e)},componentUpdated:function(a,t,e){(0,o.Y3)((function(){tl(a,t,e)}))},unbind:function(a){el(a)}},il=(0,n.Hr)({directives:{VBPopover:nl}}),rl=(0,n.Hr)({components:{BPopover:So.x},plugins:{VBPopoverPlugin:il}}),ol=e(45752),ll=e(22981),cl=(0,n.Hr)({components:{BProgress:ol.D,BProgressBar:ll.Q}}),sl=e(17100);function hl(a,t){var e=Object.keys(a);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(a);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(a,t).enumerable}))),e.push.apply(e,n)}return e}function ul(a){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.noCloseOnRouteChange||a.fullPath===t.fullPath||this.hide()})),No),created:function(){this.$_returnFocusEl=null},mounted:function(){var a=this;this.listenOnRoot(fl,this.handleToggle),this.listenOnRoot(vl,this.handleSync),this.$nextTick((function(){a.emitState(a.localShow)}))},activated:function(){this.emitSync()},beforeDestroy:function(){this.localShow=!1,this.$_returnFocusEl=null},methods:{hide:function(){this.localShow=!1},emitState:function(){var a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.localShow;this.emitOnRoot(ml,this.safeId(),a)},emitSync:function(){var a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.localShow;this.emitOnRoot(zl,this.safeId(),a)},handleToggle:function(a){a&&a===this.safeId()&&(this.localShow=!this.localShow)},handleSync:function(a){var t=this;a&&a===this.safeId()&&this.$nextTick((function(){t.emitSync(t.localShow)}))},onKeydown:function(a){var t=a.keyCode;!this.noCloseOnEsc&&t===K.RZ&&this.localShow&&this.hide()},onBackdropClick:function(){this.localShow&&!this.noCloseOnBackdrop&&this.hide()},onTopTrapFocus:function(){var a=(0,Ba.td)(this.$refs.content);this.enforceFocus(a.reverse()[0])},onBottomTrapFocus:function(){var a=(0,Ba.td)(this.$refs.content);this.enforceFocus(a[0])},onBeforeEnter:function(){this.$_returnFocusEl=(0,Ba.vY)(et.Qg?[document.body]:[]),this.isOpen=!0},onAfterEnter:function(a){(0,Ba.r3)(a,(0,Ba.vY)())||this.enforceFocus(a),this.$emit(W.AS)},onAfterLeave:function(){this.enforceFocus(this.$_returnFocusEl),this.$_returnFocusEl=null,this.isOpen=!1,this.$emit(W.v6)},enforceFocus:function(a){this.noEnforceFocus||(0,Ba.KS)(a)}},render:function(a){var t,e=this.bgVariant,n=this.width,i=this.textVariant,r=this.localShow,o=""===this.shadow||this.shadow,l=a(this.tag,{staticClass:pl,class:[(t={shadow:!0===o},dl(t,"shadow-".concat(o),o&&!0!==o),dl(t,"".concat(pl,"-right"),this.right),dl(t,"bg-".concat(e),e),dl(t,"text-".concat(i),i),t),this.sidebarClass],style:{width:n},attrs:this.computedAttrs,directives:[{name:"show",value:r}],ref:"content"},[Il(a,this)]);l=a("transition",{props:this.transitionProps,on:{beforeEnter:this.onBeforeEnter,afterEnter:this.onAfterEnter,afterLeave:this.onAfterLeave}},[l]);var c=a(sl.N,{props:{noFade:this.noSlide}},[Ll(a,this)]),s=a(),h=a();return this.backdrop&&r&&(s=a("div",{attrs:{tabindex:"0"},on:{focus:this.onTopTrapFocus}}),h=a("div",{attrs:{tabindex:"0"},on:{focus:this.onBottomTrapFocus}})),a("div",{staticClass:"b-sidebar-outer",style:{zIndex:this.zIndex},attrs:{tabindex:"-1"},on:{keydown:this.onKeydown}},[s,l,h,c])}}),Pl=(0,n.Hr)({components:{BSidebar:Sl},plugins:{VBTogglePlugin:Zt}});function Fl(a,t,e){return t in a?Object.defineProperty(a,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):a[t]=e,a}var kl=(0,d.y2)({animation:(0,d.pi)(c.N0,"wave"),height:(0,d.pi)(c.N0),size:(0,d.pi)(c.N0),type:(0,d.pi)(c.N0,"text"),variant:(0,d.pi)(c.N0),width:(0,d.pi)(c.N0)},l.Xm),jl=(0,o.l7)({name:l.Xm,functional:!0,props:kl,render:function(a,t){var e,n=t.data,i=t.props,r=i.size,o=i.animation,l=i.variant;return a("div",(0,at.b)(n,{staticClass:"b-skeleton",style:{width:r||i.width,height:r||i.height},class:(e={},Fl(e,"b-skeleton-".concat(i.type),!0),Fl(e,"b-skeleton-animate-".concat(o),o),Fl(e,"bg-".concat(l),l),e)}))}});function Tl(a,t){var e=Object.keys(a);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(a);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(a,t).enumerable}))),e.push.apply(e,n)}return e}function Dl(a){for(var t=1;t0},ec=(0,d.y2)({animation:(0,d.pi)(c.N0),columns:(0,d.pi)(c.jg,5,tc),hideHeader:(0,d.pi)(c.U5,!1),rows:(0,d.pi)(c.jg,3,tc),showFooter:(0,d.pi)(c.U5,!1),tableProps:(0,d.pi)(c.aR,{})},l.xl),nc=(0,o.l7)({name:l.xl,functional:!0,props:ec,render:function(a,t){var e=t.data,n=t.props,i=n.animation,r=n.columns,o=a("th",[a(jl,{props:{animation:i}})]),l=a("tr",(0,Z.Ri)(r,o)),c=a("td",[a(jl,{props:{width:"75%",animation:i}})]),s=a("tr",(0,Z.Ri)(r,c)),h=a("tbody",(0,Z.Ri)(n.rows,s)),u=n.hideHeader?a():a("thead",[l]),d=n.showFooter?a("tfoot",[l]):a();return a(Xl,(0,at.b)(e,{props:Ql({},n.tableProps)}),[u,h,d])}}),ic=(0,d.y2)({loading:(0,d.pi)(c.U5,!1)},l.aD),rc=(0,o.l7)({name:l.aD,functional:!0,props:ic,render:function(a,t){var e=t.data,n=t.props,i=t.slots,r=t.scopedSlots,o=i(),l=r||{},c={};return n.loading?a("div",(0,at.b)(e,{attrs:{role:"alert","aria-live":"polite","aria-busy":!0},staticClass:"b-skeleton-wrapper",key:"loading"}),(0,me.O)(J.pd,c,l,o)):(0,me.O)(J.Pq,c,l,o)}}),oc=(0,n.Hr)({components:{BSkeleton:jl,BSkeletonIcon:Nl,BSkeletonImg:_l,BSkeletonTable:nc,BSkeletonWrapper:rc}}),lc=e(1759),cc=(0,n.Hr)({components:{BSpinner:lc.X}}),sc=e(16521),hc=e(49682),uc=e(32341),dc=e(23249),pc=e(55739),vc=e(41054),fc=e(64120);function mc(a,t){var e=Object.keys(a);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(a);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(a,t).enumerable}))),e.push.apply(e,n)}return e}function zc(a){for(var t=1;t=e){var n=this.$targets[this.$targets.length-1];this.$activeTarget!==n&&this.activate(n)}else{if(this.$activeTarget&&a0)return this.$activeTarget=null,void this.clear();for(var i=this.$offsets.length;i--;){var r=this.$activeTarget!==this.$targets[i]&&a>=this.$offsets[i]&&((0,Y.o8)(this.$offsets[i+1])||a0&&this.$root&&this.$root.$emit(os,a,e)}},{key:"clear",value:function(){var a=this;(0,Ba.a8)("".concat(this.$selector,", ").concat(ts),this.$el).filter((function(a){return(0,Ba.pv)(a,Yc)})).forEach((function(t){return a.setActiveState(t,!1)}))}},{key:"setActiveState",value:function(a,t){a&&(t?(0,Ba.cn)(a,Yc):(0,Ba.IV)(a,Yc))}}],[{key:"Name",get:function(){return Zc}},{key:"Default",get:function(){return ss}},{key:"DefaultType",get:function(){return hs}}]),a}(),fs="__BV_Scrollspy__",ms=/^\d+$/,zs=/^(auto|position|offset)$/,bs=function(a){var t={};return a.arg&&(t.element="#".concat(a.arg)),(0,La.XP)(a.modifiers).forEach((function(a){ms.test(a)?t.offset=(0,u.Z3)(a,0):zs.test(a)&&(t.method=a)})),(0,Y.HD)(a.value)?t.element=a.value:(0,Y.hj)(a.value)?t.offset=(0,h.ir)(a.value):(0,Y.Kn)(a.value)&&(0,La.XP)(a.value).filter((function(a){return!!vs.DefaultType[a]})).forEach((function(e){t[e]=a.value[e]})),t},gs=function(a,t,e){if(et.Qg){var n=bs(t);a[fs]?a[fs].updateConfig(n,(0,_c.C)((0,ko.U)(e,t))):a[fs]=new vs(a,n,(0,_c.C)((0,ko.U)(e,t)))}},Ms=function(a){a[fs]&&(a[fs].dispose(),a[fs]=null,delete a[fs])},ys={bind:function(a,t,e){gs(a,t,e)},inserted:function(a,t,e){gs(a,t,e)},update:function(a,t,e){t.value!==t.oldValue&&gs(a,t,e)},componentUpdated:function(a,t,e){t.value!==t.oldValue&&gs(a,t,e)},unbind:function(a){Ms(a)}},Vs=(0,n.Hr)({directives:{VBScrollspy:ys}}),Hs=(0,n.Hr)({directives:{VBVisible:nt.z}}),As=(0,n.Hr)({plugins:{VBHoverPlugin:Nc,VBModalPlugin:Rc,VBPopoverPlugin:il,VBScrollspyPlugin:Vs,VBTogglePlugin:Zt,VBTooltipPlugin:Dc,VBVisiblePlugin:Hs}}),Bs="BootstrapVue",Os=(0,n.sr)({plugins:{componentsPlugin:xc,directivesPlugin:As}}),ws={install:Os,NAME:Bs}},28492:(a,t,e)=>{e.d(t,{D:()=>h});var n=e(51665),i=e(1915);function r(a,t){var e=Object.keys(a);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(a);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(a,t).enumerable}))),e.push.apply(e,n)}return e}function o(a){for(var t=1;t{e.d(t,{N:()=>l});var n=e(1915),i=e(94689),r=e(12299),o=e(20451),l=(0,o.y2)({bgVariant:(0,o.pi)(r.N0),borderVariant:(0,o.pi)(r.N0),tag:(0,o.pi)(r.N0,"div"),textVariant:(0,o.pi)(r.N0)},i._v);(0,n.l7)({props:l})},43711:(a,t,e)=>{e.d(t,{e:()=>E,N:()=>D});var n=e(28981),i=e(1915),r=e(94689),o=e(43935),l=e(63294),c=e(63663),s="top-start",h="top-end",u="bottom-start",d="bottom-end",p="right-start",v="left-start",f=e(12299),m=e(28112),z=e(37130),b=e(26410),g=e(28415),M=e(33284),y=e(67040),V=e(20451),H=e(77147),A=(0,i.l7)({data:function(){return{listenForClickOut:!1}},watch:{listenForClickOut:function(a,t){a!==t&&((0,g.QY)(this.clickOutElement,this.clickOutEventName,this._clickOutHandler,l.IJ),a&&(0,g.XO)(this.clickOutElement,this.clickOutEventName,this._clickOutHandler,l.IJ))}},beforeCreate:function(){this.clickOutElement=null,this.clickOutEventName=null},mounted:function(){this.clickOutElement||(this.clickOutElement=document),this.clickOutEventName||(this.clickOutEventName="click"),this.listenForClickOut&&(0,g.XO)(this.clickOutElement,this.clickOutEventName,this._clickOutHandler,l.IJ)},beforeDestroy:function(){(0,g.QY)(this.clickOutElement,this.clickOutEventName,this._clickOutHandler,l.IJ)},methods:{isClickOut:function(a){return!(0,b.r3)(this.$el,a.target)},_clickOutHandler:function(a){this.clickOutHandler&&this.isClickOut(a)&&this.clickOutHandler(a)}}}),B=(0,i.l7)({data:function(){return{listenForFocusIn:!1}},watch:{listenForFocusIn:function(a,t){a!==t&&((0,g.QY)(this.focusInElement,"focusin",this._focusInHandler,l.IJ),a&&(0,g.XO)(this.focusInElement,"focusin",this._focusInHandler,l.IJ))}},beforeCreate:function(){this.focusInElement=null},mounted:function(){this.focusInElement||(this.focusInElement=document),this.listenForFocusIn&&(0,g.XO)(this.focusInElement,"focusin",this._focusInHandler,l.IJ)},beforeDestroy:function(){(0,g.QY)(this.focusInElement,"focusin",this._focusInHandler,l.IJ)},methods:{_focusInHandler:function(a){this.focusInHandler&&this.focusInHandler(a)}}}),O=e(73727),w=e(98596),C=e(99022);function I(a,t){var e=Object.keys(a);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(a);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(a,t).enumerable}))),e.push.apply(e,n)}return e}function L(a){for(var t=1;t0&&void 0!==arguments[0]&&arguments[0];this.disabled||(this.visible=!1,a&&this.$once(l.v6,this.focusToggler))},toggle:function(a){a=a||{};var t=a,e=t.type,n=t.keyCode;("click"===e||"keydown"===e&&-1!==[c.K2,c.m5,c.RV].indexOf(n))&&(this.disabled?this.visible=!1:(this.$emit(l.Ep,a),(0,g.p7)(a),this.visible?this.hide(!0):this.show()))},onMousedown:function(a){(0,g.p7)(a,{propagation:!1})},onKeydown:function(a){var t=a.keyCode;t===c.RZ?this.onEsc(a):t===c.RV?this.focusNext(a,!1):t===c.XS&&this.focusNext(a,!0)},onEsc:function(a){this.visible&&(this.visible=!1,(0,g.p7)(a),this.$once(l.v6,this.focusToggler))},onSplitClick:function(a){this.disabled?this.visible=!1:this.$emit(l.PZ,a)},hideHandler:function(a){var t=this,e=a.target;!this.visible||(0,b.r3)(this.$refs.menu,e)||(0,b.r3)(this.toggler,e)||(this.clearHideTimeout(),this.$_hideTimeout=setTimeout((function(){return t.hide()}),this.hideDelay))},clickOutHandler:function(a){this.hideHandler(a)},focusInHandler:function(a){this.hideHandler(a)},focusNext:function(a,t){var e=this,n=a.target;!this.visible||a&&(0,b.oq)(k,n)||((0,g.p7)(a),this.$nextTick((function(){var a=e.getItems();if(!(a.length<1)){var i=a.indexOf(n);t&&i>0?i--:!t&&i{e.d(t,{N:()=>c,X:()=>s});var n=e(1915),i=e(12299),r=e(26410),o=e(20451),l="input, textarea, select",c=(0,o.y2)({autofocus:(0,o.pi)(i.U5,!1),disabled:(0,o.pi)(i.U5,!1),form:(0,o.pi)(i.N0),id:(0,o.pi)(i.N0),name:(0,o.pi)(i.N0),required:(0,o.pi)(i.U5,!1)},"formControls"),s=(0,n.l7)({props:c,mounted:function(){this.handleAutofocus()},activated:function(){this.handleAutofocus()},methods:{handleAutofocus:function(){var a=this;this.$nextTick((function(){(0,r.bz)((function(){var t=a.$el;a.autofocus&&(0,r.pn)(t)&&((0,r.wB)(t,l)||(t=(0,r.Ys)(l,t)),(0,r.KS)(t))}))}))}}})},58137:(a,t,e)=>{e.d(t,{N:()=>o,i:()=>l});var n=e(1915),i=e(12299),r=e(20451),o=(0,r.y2)({plain:(0,r.pi)(i.U5,!1)},"formControls"),l=(0,n.l7)({props:o,computed:{custom:function(){return!this.plain}}})},77330:(a,t,e)=>{e.d(t,{N:()=>d,f:()=>p});var n=e(1915),i=e(12299),r=e(37668),o=e(18735),l=e(33284),c=e(67040),s=e(20451),h=e(77147),u='Setting prop "options" to an object is deprecated. Use the array format instead.',d=(0,s.y2)({disabledField:(0,s.pi)(i.N0,"disabled"),htmlField:(0,s.pi)(i.N0,"html"),options:(0,s.pi)(i.XO,[]),textField:(0,s.pi)(i.N0,"text"),valueField:(0,s.pi)(i.N0,"value")},"formOptionControls"),p=(0,n.l7)({props:d,computed:{formOptions:function(){return this.normalizeOptions(this.options)}},methods:{normalizeOption:function(a){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if((0,l.PO)(a)){var e=(0,r.U)(a,this.valueField),n=(0,r.U)(a,this.textField);return{value:(0,l.o8)(e)?t||n:e,text:(0,o.o)(String((0,l.o8)(n)?t:n)),html:(0,r.U)(a,this.htmlField),disabled:Boolean((0,r.U)(a,this.disabledField))}}return{value:t||a,text:(0,o.o)(String(a)),disabled:!1}},normalizeOptions:function(a){var t=this;return(0,l.kJ)(a)?a.map((function(a){return t.normalizeOption(a)})):(0,l.PO)(a)?((0,h.ZK)(u,this.$options.name),(0,c.XP)(a).map((function(e){return t.normalizeOption(a[e]||{},e)}))):[]}}})},72985:(a,t,e)=>{e.d(t,{EQ:()=>C,NQ:()=>L,mD:()=>S});var n,i=e(1915),r=e(12299),o=e(90494),l=e(18735),c=e(3058),s=e(54602),h=e(67040),u=e(20451),d=e(19692),p=e(76398),v=e(32023),f=e(58137),m=e(77330),z=e(49035),b=e(95505),g=e(73727),M=e(18280);function y(a,t){var e=Object.keys(a);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(a);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(a,t).enumerable}))),e.push.apply(e,n)}return e}function V(a){for(var t=1;t{e.d(t,{Du:()=>C,NQ:()=>I,UG:()=>L});var n,i,r=e(1915),o=e(12299),l=e(63294),c=e(26410),s=e(33284),h=e(3058),u=e(54602),d=e(67040),p=e(20451),v=e(28492),f=e(32023),m=e(58137),z=e(49035),b=e(95505),g=e(73727),M=e(18280);function y(a,t){var e=Object.keys(a);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(a);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(a,t).enumerable}))),e.push.apply(e,n)}return e}function V(a){for(var t=1;t{e.d(t,{o:()=>i});var n=e(1915),i=(0,n.l7)({computed:{selectionStart:{cache:!1,get:function(){return this.$refs.input.selectionStart},set:function(a){this.$refs.input.selectionStart=a}},selectionEnd:{cache:!1,get:function(){return this.$refs.input.selectionEnd},set:function(a){this.$refs.input.selectionEnd=a}},selectionDirection:{cache:!1,get:function(){return this.$refs.input.selectionDirection},set:function(a){this.$refs.input.selectionDirection=a}}},methods:{select:function(){var a;(a=this.$refs.input).select.apply(a,arguments)},setSelectionRange:function(){var a;(a=this.$refs.input).setSelectionRange.apply(a,arguments)},setRangeText:function(){var a;(a=this.$refs.input).setRangeText.apply(a,arguments)}}})},49035:(a,t,e)=>{e.d(t,{N:()=>o,j:()=>l});var n=e(1915),i=e(12299),r=e(20451),o=(0,r.y2)({size:(0,r.pi)(i.N0)},"formControls"),l=(0,n.l7)({props:o,computed:{sizeFormClass:function(){return[this.size?"form-control-".concat(this.size):null]}}})},95505:(a,t,e)=>{e.d(t,{J:()=>s,N:()=>c});var n=e(1915),i=e(12299),r=e(33284),o=e(20451),l=e(10992),c=(0,o.y2)({state:(0,o.pi)(i.U5,null)},"formState"),s=(0,n.l7)({props:c,computed:{computedState:function(){return(0,r.jn)(this.state)?this.state:null},stateClass:function(){var a=this.computedState;return!0===a?"is-valid":!1===a?"is-invalid":null},computedAriaInvalid:function(){var a=(0,l.n)(this).ariaInvalid;return!0===a||"true"===a||""===a||!1===this.computedState?"true":a}}})},70403:(a,t,e)=>{e.d(t,{NQ:()=>V,Q_:()=>H});var n=e(1915),i=e(63294),r=e(12299),o=e(26410),l=e(28415),c=e(21578),s=e(54602),h=e(93954),u=e(67040),d=e(20451),p=e(46595);function v(a,t){var e=Object.keys(a);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(a);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(a,t).enumerable}))),e.push.apply(e,n)}return e}function f(a){for(var t=1;t2&&void 0!==arguments[2]&&arguments[2];return a=(0,p.BB)(a),!this.hasFormatter||this.lazyFormatter&&!e||(a=this.formatter(a,t)),a},modifyValue:function(a){return a=(0,p.BB)(a),this.trim&&(a=a.trim()),this.number&&(a=(0,h.f_)(a,a)),a},updateValue:function(a){var t=this,e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.lazy;if(!n||e){this.clearDebounce();var i=function(){if(a=t.modifyValue(a),a!==t.vModelValue)t.vModelValue=a,t.$emit(y,a);else if(t.hasFormatter){var e=t.$refs.input;e&&a!==e.value&&(e.value=a)}},r=this.computedDebounce;r>0&&!n&&!e?this.$_inputDebounceTimer=setTimeout(i,r):i()}},onInput:function(a){if(!a.target.composing){var t=a.target.value,e=this.formatValue(t,a);!1===e||a.defaultPrevented?(0,l.p7)(a,{propagation:!1}):(this.localValue=e,this.updateValue(e),this.$emit(i.gn,e))}},onChange:function(a){var t=a.target.value,e=this.formatValue(t,a);!1===e||a.defaultPrevented?(0,l.p7)(a,{propagation:!1}):(this.localValue=e,this.updateValue(e,!0),this.$emit(i.z2,e))},onBlur:function(a){var t=a.target.value,e=this.formatValue(t,a,!0);!1!==e&&(this.localValue=(0,p.BB)(this.modifyValue(e)),this.updateValue(e,!0)),this.$emit(i.z,a)},focus:function(){this.disabled||(0,o.KS)(this.$el)},blur:function(){this.disabled||(0,o.Cx)(this.$el)}}})},94791:(a,t,e)=>{e.d(t,{e:()=>i});var n=e(1915),i=(0,n.l7)({computed:{validity:{cache:!1,get:function(){return this.$refs.input.validity}},validationMessage:{cache:!1,get:function(){return this.$refs.input.validationMessage}},willValidate:{cache:!1,get:function(){return this.$refs.input.willValidate}}},methods:{setCustomValidity:function(){var a;return(a=this.$refs.input).setCustomValidity.apply(a,arguments)},checkValidity:function(){var a;return(a=this.$refs.input).checkValidity.apply(a,arguments)},reportValidity:function(){var a;return(a=this.$refs.input).reportValidity.apply(a,arguments)}}})},45253:(a,t,e)=>{e.d(t,{U:()=>r});var n=e(1915),i=e(33284),r=(0,n.l7)({methods:{hasListener:function(a){if(n.$B)return!0;var t=this.$listeners||{},e=this._events||{};return!(0,i.o8)(t[a])||(0,i.kJ)(e[a])&&e[a].length>0}}})},73727:(a,t,e)=>{e.d(t,{N:()=>o,t:()=>l});var n=e(1915),i=e(12299),r=e(20451),o={id:(0,r.pi)(i.N0)},l=(0,n.l7)({props:o,data:function(){return{localId_:null}},computed:{safeId:function(){var a=this.id||this.localId_,t=function(t){return a?(t=String(t||"").replace(/\s+/g,"_"),t?a+"_"+t:a):null};return t}},mounted:function(){var a=this;this.$nextTick((function(){a.localId_="__BVID__".concat(a[n.X$])}))}})},98596:(a,t,e)=>{e.d(t,{E:()=>c});var n=e(1915),i=e(11572),r=e(67040),o=e(91076),l="$_rootListeners",c=(0,n.l7)({computed:{bvEventRoot:function(){return(0,o.C)(this)}},created:function(){this[l]={}},beforeDestroy:function(){var a=this;(0,r.XP)(this[l]||{}).forEach((function(t){a[l][t].forEach((function(e){a.listenOffRoot(t,e)}))})),this[l]=null},methods:{registerRootListener:function(a,t){this[l]&&(this[l][a]=this[l][a]||[],(0,i.kI)(this[l][a],t)||this[l][a].push(t))},unregisterRootListener:function(a,t){this[l]&&this[l][a]&&(this[l][a]=this[l][a].filter((function(a){return a!==t})))},listenOnRoot:function(a,t){this.bvEventRoot&&(this.bvEventRoot.$on(a,t),this.registerRootListener(a,t))},listenOnRootOnce:function(a,t){var e=this;if(this.bvEventRoot){var n=function a(){e.unregisterRootListener(a),t.apply(void 0,arguments)};this.bvEventRoot.$once(a,n),this.registerRootListener(a,n)}},listenOffRoot:function(a,t){this.unregisterRootListener(a,t),this.bvEventRoot&&this.bvEventRoot.$off(a,t)},emitOnRoot:function(a){if(this.bvEventRoot){for(var t,e=arguments.length,n=new Array(e>1?e-1:0),i=1;i{e.d(t,{o:()=>h});var n=e(51665),i=e(1915);function r(a,t){var e=Object.keys(a);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(a);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(a,t).enumerable}))),e.push.apply(e,n)}return e}function o(a){for(var t=1;t{e.d(t,{Z:()=>l});var n=e(1915),i=e(90494),r=e(72345),o=e(11572),l=(0,n.l7)({methods:{hasNormalizedSlot:function(){var a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:i.Pq,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.$scopedSlots,e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.$slots;return(0,r.Q)(a,t,e)},normalizeSlot:function(){var a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:i.Pq,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.$scopedSlots,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:this.$slots,l=(0,r.O)(a,t,e,n);return l?(0,o.zo)(l):l}}})},29878:(a,t,e)=>{e.d(t,{EQ:()=>I,NQ:()=>D,zo:()=>E});var n,i=e(1915),r=e(94689),o=e(63663),l=e(12299),c=e(90494),s=e(11572),h=e(26410),u=e(28415),d=e(33284),p=e(21578),v=e(54602),f=e(93954),m=e(67040),z=e(20451),b=e(10992),g=e(46595),M=e(77147),y=e(18280),V=e(67347);function H(a,t){var e=Object.keys(a);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(a);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(a,t).enumerable}))),e.push.apply(e,n)}return e}function A(a){for(var t=1;tt?t:e<1?1:e},T=function(a){if(a.keyCode===o.m5)return(0,u.p7)(a,{immediatePropagation:!0}),a.currentTarget.click(),!1},D=(0,z.y2)((0,m.GE)(A(A({},C),{},{align:(0,z.pi)(l.N0,"left"),ariaLabel:(0,z.pi)(l.N0,"Pagination"),disabled:(0,z.pi)(l.U5,!1),ellipsisClass:(0,z.pi)(l.wA),ellipsisText:(0,z.pi)(l.N0,"…"),firstClass:(0,z.pi)(l.wA),firstNumber:(0,z.pi)(l.U5,!1),firstText:(0,z.pi)(l.N0,"«"),hideEllipsis:(0,z.pi)(l.U5,!1),hideGotoEndButtons:(0,z.pi)(l.U5,!1),labelFirstPage:(0,z.pi)(l.N0,"Go to first page"),labelLastPage:(0,z.pi)(l.N0,"Go to last page"),labelNextPage:(0,z.pi)(l.N0,"Go to next page"),labelPage:(0,z.pi)(l.LU,"Go to page"),labelPrevPage:(0,z.pi)(l.N0,"Go to previous page"),lastClass:(0,z.pi)(l.wA),lastNumber:(0,z.pi)(l.U5,!1),lastText:(0,z.pi)(l.N0,"»"),limit:(0,z.pi)(l.fE,P,(function(a){return!((0,f.Z3)(a,0)<1)||((0,M.ZK)('Prop "limit" must be a number greater than "0"',r.Ps),!1)})),nextClass:(0,z.pi)(l.wA),nextText:(0,z.pi)(l.N0,"›"),pageClass:(0,z.pi)(l.wA),pills:(0,z.pi)(l.U5,!1),prevClass:(0,z.pi)(l.wA),prevText:(0,z.pi)(l.N0,"‹"),size:(0,z.pi)(l.N0)})),"pagination"),E=(0,i.l7)({mixins:[w,y.Z],props:D,data:function(){var a=(0,f.Z3)(this[I],0);return a=a>0?a:-1,{currentPage:a,localNumberOfPages:1,localLimit:P}},computed:{btnSize:function(){var a=this.size;return a?"pagination-".concat(a):""},alignment:function(){var a=this.align;return"center"===a?"justify-content-center":"end"===a||"right"===a?"justify-content-end":"fill"===a?"text-center":""},styleClass:function(){return this.pills?"b-pagination-pills":""},computedCurrentPage:function(){return j(this.currentPage,this.localNumberOfPages)},paginationParams:function(){var a=this.localLimit,t=this.localNumberOfPages,e=this.computedCurrentPage,n=this.hideEllipsis,i=this.firstNumber,r=this.lastNumber,o=!1,l=!1,c=a,s=1;t<=a?c=t:eS?(n&&!r||(l=!0,c=a-(i?0:1)),c=(0,p.bS)(c,a)):t-e+2S?(n&&!i||(o=!0,c=a-(r?0:1)),s=t-c+1):(a>S&&(c=a-(n?0:2),o=!(n&&!i),l=!(n&&!r)),s=e-(0,p.Mk)(c/2)),s<1?(s=1,o=!1):s>t-c&&(s=t-c+1,l=!1),o&&i&&s<4&&(c+=2,s=1,o=!1);var h=s+c-1;return l&&r&&h>t-3&&(c+=h===t-2?2:3,l=!1),a<=S&&(i&&1===s?c=(0,p.bS)(c+1,t,a+1):r&&t===s+c-1&&(s=(0,p.nP)(s-1,1),c=(0,p.bS)(t-s+1,t,a+1))),c=(0,p.bS)(c,t-s+1),{showFirstDots:o,showLastDots:l,numberOfLinks:c,startNumber:s}},pageList:function(){var a=this.paginationParams,t=a.numberOfLinks,e=a.startNumber,n=this.computedCurrentPage,i=F(e,t);if(i.length>3){var r=n-e,o="bv-d-xs-down-none";if(0===r)for(var l=3;lr+1;h--)i[h].classes=o}}return i}},watch:(n={},B(n,I,(function(a,t){a!==t&&(this.currentPage=j(a,this.localNumberOfPages))})),B(n,"currentPage",(function(a,t){a!==t&&this.$emit(L,a>0?a:null)})),B(n,"limit",(function(a,t){a!==t&&(this.localLimit=k(a))})),n),created:function(){var a=this;this.localLimit=k(this.limit),this.$nextTick((function(){a.currentPage=a.currentPage>a.localNumberOfPages?a.localNumberOfPages:a.currentPage}))},methods:{handleKeyNav:function(a){var t=a.keyCode,e=a.shiftKey;this.isNav||(t===o.Cq||t===o.XS?((0,u.p7)(a,{propagation:!1}),e?this.focusFirst():this.focusPrev()):t!==o.YO&&t!==o.RV||((0,u.p7)(a,{propagation:!1}),e?this.focusLast():this.focusNext()))},getButtons:function(){return(0,h.a8)("button.page-link, a.page-link",this.$el).filter((function(a){return(0,h.pn)(a)}))},focusCurrent:function(){var a=this;this.$nextTick((function(){var t=a.getButtons().find((function(t){return(0,f.Z3)((0,h.UK)(t,"aria-posinset"),0)===a.computedCurrentPage}));(0,h.KS)(t)||a.focusFirst()}))},focusFirst:function(){var a=this;this.$nextTick((function(){var t=a.getButtons().find((function(a){return!(0,h.pK)(a)}));(0,h.KS)(t)}))},focusLast:function(){var a=this;this.$nextTick((function(){var t=a.getButtons().reverse().find((function(a){return!(0,h.pK)(a)}));(0,h.KS)(t)}))},focusPrev:function(){var a=this;this.$nextTick((function(){var t=a.getButtons(),e=t.indexOf((0,h.vY)());e>0&&!(0,h.pK)(t[e-1])&&(0,h.KS)(t[e-1])}))},focusNext:function(){var a=this;this.$nextTick((function(){var t=a.getButtons(),e=t.indexOf((0,h.vY)());el,p=e<1?1:e>l?l:e,v={disabled:d,page:p,index:p-1},m=t.normalizeSlot(r,v)||(0,g.BB)(c)||a(),z=a(d?"span":o?V.we:"button",{staticClass:"page-link",class:{"flex-grow-1":!o&&!d&&f},props:d||!o?{}:t.linkProps(e),attrs:{role:o?null:"menuitem",type:o||d?null:"button",tabindex:d||o?null:"-1","aria-label":i,"aria-controls":(0,b.n)(t).ariaControls||null,"aria-disabled":d?"true":null},on:d?{}:{"!click":function(a){t.onClick(a,e)},keydown:T}},[m]);return a("li",{key:u,staticClass:"page-item",class:[{disabled:d,"flex-fill":f,"d-flex":f&&!o&&!d},s],attrs:{role:o?null:"presentation","aria-hidden":d?"true":null}},[z])},A=function(e){return a("li",{staticClass:"page-item",class:["disabled","bv-d-xs-down-none",f?"flex-fill":"",t.ellipsisClass],attrs:{role:"separator"},key:"ellipsis-".concat(e?"last":"first")},[a("span",{staticClass:"page-link"},[t.normalizeSlot(c._d)||(0,g.BB)(t.ellipsisText)||a()])])},B=function(e,r){var s=e.number,h=M(s)&&!y,u=n?null:h||y&&0===r?"0":"-1",p={role:o?null:"menuitemradio",type:o||n?null:"button","aria-disabled":n?"true":null,"aria-controls":(0,b.n)(t).ariaControls||null,"aria-label":(0,z.lo)(i)?i(s):"".concat((0,d.mf)(i)?i():i," ").concat(s),"aria-checked":o?null:h?"true":"false","aria-current":o&&h?"page":null,"aria-posinset":o?null:s,"aria-setsize":o?null:l,tabindex:o?null:u},v=(0,g.BB)(t.makePage(s)),m={page:s,index:s-1,content:v,active:h,disabled:n},H=a(n?"span":o?V.we:"button",{props:n||!o?{}:t.linkProps(s),staticClass:"page-link",class:{"flex-grow-1":!o&&!n&&f},attrs:p,on:n?{}:{"!click":function(a){t.onClick(a,s)},keydown:T}},[t.normalizeSlot(c.ud,m)||v]);return a("li",{staticClass:"page-item",class:[{disabled:n,active:h,"flex-fill":f,"d-flex":f&&!o&&!n},e.classes,t.pageClass],attrs:{role:o?null:"presentation"},key:"page-".concat(s)},[H])},O=a();this.firstNumber||this.hideGotoEndButtons||(O=H(1,this.labelFirstPage,c.ZP,this.firstText,this.firstClass,1,"pagination-goto-first")),m.push(O),m.push(H(s-1,this.labelPrevPage,c.xH,this.prevText,this.prevClass,1,"pagination-goto-prev")),m.push(this.firstNumber&&1!==h[0]?B({number:1},0):a()),m.push(p?A(!1):a()),this.pageList.forEach((function(a,e){var n=p&&t.firstNumber&&1!==h[0]?1:0;m.push(B(a,e+n))})),m.push(v?A(!0):a()),m.push(this.lastNumber&&h[h.length-1]!==l?B({number:l},-1):a()),m.push(H(s+1,this.labelNextPage,c.gy,this.nextText,this.nextClass,l,"pagination-goto-next"));var w=a();this.lastNumber||this.hideGotoEndButtons||(w=H(l,this.labelLastPage,c.f2,this.lastText,this.lastClass,l,"pagination-goto-last")),m.push(w);var C=a("ul",{staticClass:"pagination",class:["b-pagination",this.btnSize,this.alignment,this.styleClass],attrs:{role:o?null:"menubar","aria-disabled":n?"true":"false","aria-label":o?null:r||null},on:o?{}:{keydown:this.handleKeyNav},ref:"ul"},m);return o?a("nav",{attrs:{"aria-disabled":n?"true":null,"aria-hidden":n?"true":"false","aria-label":o&&r||null}},[C]):C}})},30051:(a,t,e)=>{e.d(t,{o:()=>l});var n=e(1915),i=e(93319),r=e(13597);function o(a,t,e){return t in a?Object.defineProperty(a,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):a[t]=e,a}var l=(0,n.l7)({mixins:[i.S],computed:{scopedStyleAttrs:function(){var a=(0,r.P)(this.bvParent);return a?o({},a,""):{}}}})},93319:(a,t,e)=>{e.d(t,{S:()=>i});var n=e(1915),i=(0,n.l7)({computed:{bvParent:function(){return this.$parent||this.$root===this&&this.$options.bvParent}}})},11572:(a,t,e)=>{e.d(t,{Ar:()=>s,Dp:()=>i,Ri:()=>l,kI:()=>r,xH:()=>c,zo:()=>o});var n=e(33284),i=function(){return Array.from.apply(Array,arguments)},r=function(a,t){return-1!==a.indexOf(t)},o=function(){for(var a=arguments.length,t=new Array(a),e=0;e{e.d(t,{n:()=>l});var n=e(67040);function i(a,t){if(!(a instanceof t))throw new TypeError("Cannot call a class as a function")}function r(a,t){for(var e=0;e1&&void 0!==arguments[1]?arguments[1]:{};if(i(this,a),!t)throw new TypeError("Failed to construct '".concat(this.constructor.name,"'. 1 argument required, ").concat(arguments.length," given."));(0,n.f0)(this,a.Defaults,this.constructor.Defaults,e,{type:t}),(0,n.hc)(this,{type:(0,n.MB)(),cancelable:(0,n.MB)(),nativeEvent:(0,n.MB)(),target:(0,n.MB)(),relatedTarget:(0,n.MB)(),vueTarget:(0,n.MB)(),componentId:(0,n.MB)()});var r=!1;this.preventDefault=function(){this.cancelable&&(r=!0)},(0,n._x)(this,"defaultPrevented",{enumerable:!0,get:function(){return r}})}return o(a,null,[{key:"Defaults",get:function(){return{type:"",cancelable:!0,nativeEvent:null,target:null,relatedTarget:null,vueTarget:null,componentId:null}}}]),a}()},51665:(a,t,e)=>{e.d(t,{L:()=>h});var n=e(1915),i=e(30158),r=e(3058),o=e(67040);function l(a,t,e){return t in a?Object.defineProperty(a,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):a[t]=e,a}var c=function(a){return!a||0===(0,o.XP)(a).length},s=function(a){return{handler:function(t,e){if(!(0,r.W)(t,e))if(c(t)||c(e))this[a]=(0,i.X)(t);else{for(var n in e)(0,o.nr)(t,n)||this.$delete(this.$data[a],n);for(var l in t)this.$set(this.$data[a],l,t[l])}}}},h=function(a,t){return(0,n.l7)({data:function(){return l({},t,(0,i.X)(this[a]))},watch:l({},a,s(t))})}},30158:(a,t,e)=>{e.d(t,{X:()=>v});var n=e(33284),i=e(67040);function r(a,t){var e=Object.keys(a);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(a);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(a,t).enumerable}))),e.push.apply(e,n)}return e}function o(a){for(var t=1;ta.length)&&(t=a.length);for(var e=0,n=new Array(t);e1&&void 0!==arguments[1]?arguments[1]:t;return(0,n.kJ)(t)?t.reduce((function(t,e){return[].concat(c(t),[a(e,e)])}),[]):(0,n.PO)(t)?(0,i.XP)(t).reduce((function(e,n){return o(o({},e),{},l({},n,a(t[n],t[n])))}),{}):e}},79968:(a,t,e)=>{e.d(t,{QC:()=>p,le:()=>h,wJ:()=>s});var n=e(20144),i=e(8750),r=e(30158),o=e(91051),l=n["default"].prototype,c=function(a){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,e=l[i.KB];return e?e.getConfigValue(a,t):(0,r.X)(t)},s=function(a){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;return t?c("".concat(a,".").concat(t),e):c(a,{})},h=function(){return c("breakpoints",i.JJ)},u=(0,o.H)((function(){return h()})),d=function(){return(0,r.X)(u())},p=(0,o.H)((function(){var a=d();return a[0]="",a}))},55789:(a,t,e)=>{function n(a,t){var e=Object.keys(a);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(a);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(a,t).enumerable}))),e.push.apply(e,n)}return e}function i(a){for(var t=1;to});var o=function(a,t){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=a.$root?a.$root.$options.bvEventRoot||a.$root:null;return new t(i(i({},e),{},{parent:a,bvParent:a,bvEventRoot:n}))}},64679:(a,t,e)=>{e.d(t,{Q:()=>r});var n=e(46595),i=function(a){return"\\"+a},r=function(a){a=(0,n.BB)(a);var t=a.length,e=a.charCodeAt(0);return a.split("").reduce((function(n,r,o){var l=a.charCodeAt(o);return 0===l?n+"�":127===l||l>=1&&l<=31||0===o&&l>=48&&l<=57||1===o&&l>=48&&l<=57&&45===e?n+i("".concat(l.toString(16)," ")):0===o&&45===l&&1===t?n+i(r):l>=128||45===l||95===l||l>=48&&l<=57||l>=65&&l<=90||l>=97&&l<=122?n+r:n+i(r)}),"")}},26410:(a,t,e)=>{e.d(t,{A_:()=>T,B$:()=>j,C2:()=>E,Cx:()=>q,FK:()=>_,FO:()=>C,H9:()=>g,IV:()=>L,KS:()=>G,UK:()=>k,YR:()=>b,Ys:()=>A,ZF:()=>f,Zt:()=>x,a8:()=>H,bz:()=>p,cn:()=>I,cv:()=>R,fi:()=>P,hu:()=>$,iI:()=>v,jo:()=>D,kK:()=>m,nq:()=>V,oq:()=>O,pK:()=>y,pn:()=>M,pv:()=>S,r3:()=>w,td:()=>U,uV:()=>F,vY:()=>z,wB:()=>B,yD:()=>N});var n=e(43935),i=e(28112),r=e(11572),o=e(33284),l=e(93954),c=e(46595),s=i.W_.prototype,h=["button","[href]:not(.disabled)","input","select","textarea","[tabindex]","[contenteditable]"].map((function(a){return"".concat(a,":not(:disabled):not([disabled])")})).join(", "),u=s.matches||s.msMatchesSelector||s.webkitMatchesSelector,d=s.closest||function(a){var t=this;do{if(B(t,a))return t;t=t.parentElement||t.parentNode}while(!(0,o.Ft)(t)&&t.nodeType===Node.ELEMENT_NODE);return null},p=(n.m9.requestAnimationFrame||n.m9.webkitRequestAnimationFrame||n.m9.mozRequestAnimationFrame||n.m9.msRequestAnimationFrame||n.m9.oRequestAnimationFrame||function(a){return setTimeout(a,16)}).bind(n.m9),v=n.m9.MutationObserver||n.m9.WebKitMutationObserver||n.m9.MozMutationObserver||null,f=function(a){return a&&a.parentNode&&a.parentNode.removeChild(a)},m=function(a){return!(!a||a.nodeType!==Node.ELEMENT_NODE)},z=function(){var a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=n.K0.activeElement;return t&&!a.some((function(a){return a===t}))?t:null},b=function(a,t){return(0,c.BB)(a).toLowerCase()===(0,c.BB)(t).toLowerCase()},g=function(a){return m(a)&&a===z()},M=function(a){if(!m(a)||!a.parentNode||!w(n.K0.body,a))return!1;if("none"===E(a,"display"))return!1;var t=x(a);return!!(t&&t.height>0&&t.width>0)},y=function(a){return!m(a)||a.disabled||j(a,"disabled")||S(a,"disabled")},V=function(a){return m(a)&&a.offsetHeight},H=function(a,t){return(0,r.Dp)((m(t)?t:n.K0).querySelectorAll(a))},A=function(a,t){return(m(t)?t:n.K0).querySelector(a)||null},B=function(a,t){return!!m(a)&&u.call(a,t)},O=function(a,t){var e=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(!m(t))return null;var n=d.call(t,a);return e?n:n===t?null:n},w=function(a,t){return!(!a||!(0,o.mf)(a.contains))&&a.contains(t)},C=function(a){return n.K0.getElementById(/^#/.test(a)?a.slice(1):a)||null},I=function(a,t){t&&m(a)&&a.classList&&a.classList.add(t)},L=function(a,t){t&&m(a)&&a.classList&&a.classList.remove(t)},S=function(a,t){return!!(t&&m(a)&&a.classList)&&a.classList.contains(t)},P=function(a,t,e){t&&m(a)&&a.setAttribute(t,e)},F=function(a,t){t&&m(a)&&a.removeAttribute(t)},k=function(a,t){return t&&m(a)?a.getAttribute(t):null},j=function(a,t){return t&&m(a)?a.hasAttribute(t):null},T=function(a,t,e){t&&m(a)&&(a.style[t]=e)},D=function(a,t){t&&m(a)&&(a.style[t]="")},E=function(a,t){return t&&m(a)&&a.style[t]||null},x=function(a){return m(a)?a.getBoundingClientRect():null},N=function(a){var t=n.m9.getComputedStyle;return t&&m(a)?t(a):{}},$=function(){var a=n.m9.getSelection;return a?n.m9.getSelection():null},R=function(a){var t={top:0,left:0};if(!m(a)||0===a.getClientRects().length)return t;var e=x(a);if(e){var n=a.ownerDocument.defaultView;t.top=e.top+n.pageYOffset,t.left=e.left+n.pageXOffset}return t},_=function(a){var t={top:0,left:0};if(!m(a))return t;var e={top:0,left:0},n=N(a);if("fixed"===n.position)t=x(a)||t;else{t=R(a);var i=a.ownerDocument,r=a.offsetParent||i.documentElement;while(r&&(r===i.body||r===i.documentElement)&&"static"===N(r).position)r=r.parentNode;if(r&&r!==a&&r.nodeType===Node.ELEMENT_NODE){e=R(r);var o=N(r);e.top+=(0,l.f_)(o.borderTopWidth,0),e.left+=(0,l.f_)(o.borderLeftWidth,0)}}return{top:t.top-e.top-(0,l.f_)(n.marginTop,0),left:t.left-e.left-(0,l.f_)(n.marginLeft,0)}},U=function(){var a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document;return H(h,a).filter(M).filter((function(a){return a.tabIndex>-1&&!a.disabled}))},G=function(a){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};try{a.focus(t)}catch(e){}return g(a)},q=function(a){try{a.blur()}catch(t){}return!g(a)}},99022:(a,t,e)=>{e.d(t,{E8:()=>o,qE:()=>l,wK:()=>r});var n=e(1915),i=null;n.$B&&(i=new WeakMap);var r=function(a,t){n.$B&&i.set(a,t)},o=function(a){n.$B&&i.delete(a)},l=function(a){if(!n.$B)return a.__vue__;var t=a;while(t){if(i.has(t))return i.get(t);t=t.parentNode}return null}},28415:(a,t,e)=>{e.d(t,{J3:()=>v,QY:()=>h,XO:()=>s,gA:()=>f,p7:()=>d,tU:()=>u});var n=e(43935),i=e(63294),r=e(30824),o=e(33284),l=e(46595),c=function(a){return n.GA?(0,o.Kn)(a)?a:{capture:!!a||!1}:!!((0,o.Kn)(a)?a.capture:a)},s=function(a,t,e,n){a&&a.addEventListener&&a.addEventListener(t,e,c(n))},h=function(a,t,e,n){a&&a.removeEventListener&&a.removeEventListener(t,e,c(n))},u=function(a){for(var t=a?s:h,e=arguments.length,n=new Array(e>1?e-1:0),i=1;i1&&void 0!==arguments[1]?arguments[1]:{},e=t.preventDefault,n=void 0===e||e,i=t.propagation,r=void 0===i||i,o=t.immediatePropagation,l=void 0!==o&&o;n&&a.preventDefault(),r&&a.stopPropagation(),l&&a.stopImmediatePropagation()},p=function(a){return(0,l.GL)(a.replace(r.jo,""))},v=function(a,t){return[i.HH,p(a),t].join(i.JP)},f=function(a,t){return[i.HH,t,p(a)].join(i.JP)}},91076:(a,t,e)=>{e.d(t,{C:()=>n});var n=function(a){return a.$root.$options.bvEventRoot||a.$root}},96056:(a,t,e)=>{e.d(t,{U:()=>i});var n=e(1915),i=function(a,t){return n.$B?t.instance:a.context}},13597:(a,t,e)=>{e.d(t,{P:()=>n});var n=function(a){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return a&&a.$options._scopeId||t}},37668:(a,t,e)=>{e.d(t,{U:()=>l,o:()=>o});var n=e(30824),i=e(68265),r=e(33284),o=function(a,t){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;if(t=(0,r.kJ)(t)?t.join("."):t,!t||!(0,r.Kn)(a))return e;if(t in a)return a[t];t=String(t).replace(n.OX,".$1");var o=t.split(".").filter(i.y);return 0===o.length?e:o.every((function(t){return(0,r.Kn)(a)&&t in a&&!(0,r.Jp)(a=a[t])}))?a:(0,r.Ft)(a)?null:e},l=function(a,t){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,n=o(a,t);return(0,r.Jp)(n)?e:n}},18735:(a,t,e)=>{e.d(t,{U:()=>r,o:()=>i});var n=e(30824),i=function(){var a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return String(a).replace(n.ny,"")},r=function(a,t){return a?{innerHTML:a}:t?{textContent:t}:{}}},68265:(a,t,e)=>{e.d(t,{y:()=>n});var n=function(a){return a}},33284:(a,t,e)=>{e.d(t,{Ft:()=>s,HD:()=>p,J_:()=>g,Jp:()=>h,Kj:()=>V,Kn:()=>z,PO:()=>b,cO:()=>M,hj:()=>v,jn:()=>d,kE:()=>f,kJ:()=>m,mf:()=>u,o8:()=>c,tI:()=>H,zE:()=>y});var n=e(30824),i=e(28112);function r(a){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(a){return typeof a}:function(a){return a&&"function"==typeof Symbol&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},r(a)}var o=function(a){return r(a)},l=function(a){return Object.prototype.toString.call(a).slice(8,-1)},c=function(a){return void 0===a},s=function(a){return null===a},h=function(a){return c(a)||s(a)},u=function(a){return"function"===o(a)},d=function(a){return"boolean"===o(a)},p=function(a){return"string"===o(a)},v=function(a){return"number"===o(a)},f=function(a){return n.sU.test(String(a))},m=function(a){return Array.isArray(a)},z=function(a){return null!==a&&"object"===r(a)},b=function(a){return"[object Object]"===Object.prototype.toString.call(a)},g=function(a){return a instanceof Date},M=function(a){return a instanceof Event},y=function(a){return a instanceof i.$B},V=function(a){return"RegExp"===l(a)},H=function(a){return!h(a)&&u(a.then)&&u(a.catch)}},9439:(a,t,e)=>{e.d(t,{e:()=>l});var n=e(30824),i=e(11572),r=e(46595),o=["ar","az","ckb","fa","he","ks","lrc","mzn","ps","sd","te","ug","ur","yi"].map((function(a){return a.toLowerCase()})),l=function(a){var t=(0,r.BB)(a).toLowerCase().replace(n.$g,"").split("-"),e=t.slice(0,2).join("-"),l=t[0];return(0,i.kI)(o,e)||(0,i.kI)(o,l)}},3058:(a,t,e)=>{e.d(t,{W:()=>o});var n=e(67040),i=e(33284),r=function(a,t){if(a.length!==t.length)return!1;for(var e=!0,n=0;e&&n{e.d(t,{Fq:()=>c,Mk:()=>l,W8:()=>r,bS:()=>n,hv:()=>o,ir:()=>s,nP:()=>i});var n=Math.min,i=Math.max,r=Math.abs,o=Math.ceil,l=Math.floor,c=Math.pow,s=Math.round},91051:(a,t,e)=>{e.d(t,{H:()=>i});var n=e(67040),i=function(a){var t=(0,n.Ue)(null);return function(){for(var e=arguments.length,n=new Array(e),i=0;i{e.d(t,{l:()=>c});var n=e(1915),i=e(63294),r=e(12299),o=e(20451);function l(a,t,e){return t in a?Object.defineProperty(a,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):a[t]=e,a}var c=function(a){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},e=t.type,c=void 0===e?r.r1:e,s=t.defaultValue,h=void 0===s?void 0:s,u=t.validator,d=void 0===u?void 0:u,p=t.event,v=void 0===p?i.gn:p,f=l({},a,(0,o.pi)(c,h,d)),m=(0,n.l7)({model:{prop:a,event:v},props:f});return{mixin:m,props:f,prop:a,event:v}}},84941:(a,t,e)=>{e.d(t,{Z:()=>n});var n=function(){}},72345:(a,t,e)=>{e.d(t,{O:()=>l,Q:()=>o});var n=e(11572),i=e(68265),r=e(33284),o=function(a){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return a=(0,n.zo)(a).filter(i.y),a.some((function(a){return t[a]||e[a]}))},l=function(a){var t,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},l=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};a=(0,n.zo)(a).filter(i.y);for(var c=0;c{e.d(t,{FH:()=>r,Z3:()=>n,f_:()=>i});var n=function(a){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:NaN,e=parseInt(a,10);return isNaN(e)?t:e},i=function(a){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:NaN,e=parseFloat(a);return isNaN(e)?t:e},r=function(a,t){return i(a).toFixed(n(t,0))}},67040:(a,t,e)=>{e.d(t,{BB:()=>v,CE:()=>z,Ee:()=>b,GE:()=>g,MB:()=>M,Sv:()=>u,Ue:()=>c,XP:()=>d,_x:()=>h,d9:()=>f,ei:()=>m,f0:()=>l,hc:()=>s,nr:()=>p});var n=e(33284);function i(a,t){var e=Object.keys(a);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(a);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(a,t).enumerable}))),e.push.apply(e,n)}return e}function r(a){for(var t=1;t{e.d(t,{t:()=>c});var n=e(26410),i=e(77147);function r(a,t){var e=Object.keys(a);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(a);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(a,t).enumerable}))),e.push.apply(e,n)}return e}function o(a){for(var t=1;t0||i.removedNodes.length>0))&&(e=!0)}e&&t()}));return r.observe(a,o({childList:!0,subtree:!0},e)),r}},86087:(a,t,e)=>{e.d(t,{sr:()=>M,Hr:()=>V,hk:()=>H});var n=e(20144),i=e(43935),r=e(8750),o=e(30158),l=e(37668),c=e(33284),s=e(67040),h=e(77147);function u(a,t){if(!(a instanceof t))throw new TypeError("Cannot call a class as a function")}function d(a,t){for(var e=0;e0&&void 0!==arguments[0]?arguments[0]:{};if((0,c.PO)(t)){var e=(0,s.Sv)(t);e.forEach((function(e){var n=t[e];"breakpoints"===e?!(0,c.kJ)(n)||n.length<2||n.some((function(a){return!(0,c.HD)(a)||0===a.length}))?(0,h.ZK)('"breakpoints" must be an array of at least 2 breakpoint names',r.A1):a.$_config[e]=(0,o.X)(n):(0,c.PO)(n)&&(a.$_config[e]=(0,s.Sv)(n).reduce((function(a,t){return(0,c.o8)(n[t])||(a[t]=(0,o.X)(n[t])),a}),a.$_config[e]||{}))}))}}},{key:"resetConfig",value:function(){this.$_config={}}},{key:"getConfig",value:function(){return(0,o.X)(this.$_config)}},{key:"getConfigValue",value:function(a){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;return(0,o.X)((0,l.o)(this.$_config,a,t))}}]),a}(),f=function(){var a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:n["default"];t.prototype[r.KB]=n["default"].prototype[r.KB]=t.prototype[r.KB]||n["default"].prototype[r.KB]||new v,t.prototype[r.KB].setConfig(a)};function m(a,t){var e=Object.keys(a);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(a);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(a,t).enumerable}))),e.push.apply(e,n)}return e}function z(a){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=a.components,e=a.directives,n=a.plugins,i=function a(i){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};a.installed||(a.installed=!0,g(i),f(r,i),O(i,t),C(i,e),A(i,n))};return i.installed=!1,i},y=function(){var a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=a.components,e=a.directives,n=a.plugins,i=function a(i){a.installed||(a.installed=!0,g(i),O(i,t),C(i,e),A(i,n))};return i.installed=!1,i},V=function(){var a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return z(z({},t),{},{install:M(a)})},H=function(){var a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return z(z({},t),{},{install:y(a)})},A=function(a){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};for(var e in t)e&&t[e]&&a.use(t[e])},B=function(a,t,e){a&&t&&e&&a.component(t,e)},O=function(a){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};for(var e in t)B(a,e,t[e])},w=function(a,t,e){a&&t&&e&&a.directive(t.replace(/^VB/,"B"),e)},C=function(a){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};for(var e in t)w(a,e,t[e])}},20451:(a,t,e)=>{e.d(t,{Dx:()=>z,Ro:()=>v,bh:()=>p,lo:()=>V,pi:()=>m,uj:()=>b,wv:()=>f,y2:()=>M});var n=e(12299),i=e(30158),r=e(79968),o=e(68265),l=e(33284),c=e(67040),s=e(46595);function h(a,t){var e=Object.keys(a);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(a);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(a,t).enumerable}))),e.push.apply(e,n)}return e}function u(a){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:n.r1,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:void 0,r=!0===e;return i=r?i:e,u(u(u({},a?{type:a}:{}),r?{required:r}:(0,l.o8)(t)?{}:{default:(0,l.Kn)(t)?function(){return t}:t}),(0,l.o8)(i)?{}:{validator:i})},z=function(a){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.y;if((0,l.kJ)(a))return a.map(t);var e={};for(var n in a)(0,c.nr)(a,n)&&(e[t(n)]=(0,l.Kn)(a[n])?(0,c.d9)(a[n]):a[n]);return e},b=function(a,t){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:o.y;return((0,l.kJ)(a)?a.slice():(0,c.XP)(a)).reduce((function(a,n){return a[e(n)]=t[n],a}),{})},g=function(a,t,e){return u(u({},(0,i.X)(a)),{},{default:function(){var n=(0,r.wJ)(e,t,a.default);return(0,l.mf)(n)?n():n}})},M=function(a,t){return(0,c.XP)(a).reduce((function(e,n){return u(u({},e),{},d({},n,g(a[n],n,t)))}),{})},y=g({},"","").default.name,V=function(a){return(0,l.mf)(a)&&a.name&&a.name!==y}},30488:(a,t,e)=>{e.d(t,{Bb:()=>b,mB:()=>v,nX:()=>z,tN:()=>g,u$:()=>f,xo:()=>m});var n=e(30824),i=e(26410),r=e(33284),o=e(67040),l=e(10992),c=e(46595),s="a",h=function(a){return"%"+a.charCodeAt(0).toString(16)},u=function(a){return encodeURIComponent((0,c.BB)(a)).replace(n.qn,h).replace(n.$2,",")},d=decodeURIComponent,p=function(a){if(!(0,r.PO)(a))return"";var t=(0,o.XP)(a).map((function(t){var e=a[t];return(0,r.o8)(e)?"":(0,r.Ft)(e)?u(t):(0,r.kJ)(e)?e.reduce((function(a,e){return(0,r.Ft)(e)?a.push(u(t)):(0,r.o8)(e)||a.push(u(t)+"="+u(e)),a}),[]).join("&"):u(t)+"="+u(e)})).filter((function(a){return a.length>0})).join("&");return t?"?".concat(t):""},v=function(a){var t={};return a=(0,c.BB)(a).trim().replace(n.qo,""),a?(a.split("&").forEach((function(a){var e=a.replace(n.sf," ").split("="),i=d(e.shift()),o=e.length>0?d(e.join("=")):null;(0,r.o8)(t[i])?t[i]=o:(0,r.kJ)(t[i])?t[i].push(o):t[i]=[t[i],o]})),t):t},f=function(a){return!(!a.href&&!a.to)},m=function(a){return!(!a||(0,i.YR)(a,"a"))},z=function(a,t){var e=a.to,n=a.disabled,i=a.routerComponentName,r=!!(0,l.n)(t).$router,o=!!(0,l.n)(t).$nuxt;return!r||r&&(n||!e)?s:i||(o?"nuxt-link":"router-link")},b=function(){var a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=a.target,e=a.rel;return"_blank"===t&&(0,r.Ft)(e)?"noopener":e||null},g=function(){var a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=a.href,e=a.to,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:s,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"#",o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"/";if(t)return t;if(m(n))return null;if((0,r.HD)(e))return e||o;if((0,r.PO)(e)&&(e.path||e.query||e.hash)){var l=(0,c.BB)(e.path),h=p(e.query),u=(0,c.BB)(e.hash);return u=u&&"#"!==u.charAt(0)?"#".concat(u):u,"".concat(l).concat(h).concat(u)||o}return i}},10992:(a,t,e)=>{e.d(t,{n:()=>i});var n=e(1915);function i(a){return n.$B?new Proxy(a,{get:function(a,t){return t in a?a[t]:void 0}}):a}},55912:(a,t,e)=>{e.d(t,{X:()=>n});var n=function(a,t){return a.map((function(a,t){return[t,a]})).sort(function(a,t){return this(a[1],t[1])||a[0]-t[0]}.bind(t)).map((function(a){return a[1]}))}},46595:(a,t,e)=>{e.d(t,{BB:()=>u,GL:()=>r,Ho:()=>o,fi:()=>d,fl:()=>l,fy:()=>p,hr:()=>h,ht:()=>c,jC:()=>s,vl:()=>v});var n=e(30824),i=e(33284),r=function(a){return a.replace(n.Lj,"-$1").toLowerCase()},o=function(a){return a=r(a).replace(n.Qj,(function(a,t){return t?t.toUpperCase():""})),a.charAt(0).toUpperCase()+a.slice(1)},l=function(a){return a.replace(n.V," ").replace(n.MH,(function(a,t,e){return t+" "+e})).replace(n.Y,(function(a,t,e){return t+e.toUpperCase()}))},c=function(a){return a=(0,i.HD)(a)?a.trim():String(a),a.charAt(0).toLowerCase()+a.slice(1)},s=function(a){return a=(0,i.HD)(a)?a.trim():String(a),a.charAt(0).toUpperCase()+a.slice(1)},h=function(a){return a.replace(n.TZ,"\\$&")},u=function(a){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;return(0,i.Jp)(a)?"":(0,i.kJ)(a)||(0,i.PO)(a)&&a.toString===Object.prototype.toString?JSON.stringify(a,null,t):String(a)},d=function(a){return u(a).replace(n.HA,"")},p=function(a){return u(a).trim()},v=function(a){return u(a).toLowerCase()}},77147:(a,t,e)=>{e.d(t,{ZK:()=>o,Np:()=>s,gs:()=>c,zl:()=>l});var n=e(43935),i=function(a){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,e="undefined"!==typeof process&&process?{NODE_ENV:"production",BASE_URL:"/"}||0:{};return a?e[a]||t:e},r=function(){return i("BOOTSTRAP_VUE_NO_WARN")||"production"===i("NODE_ENV")},o=function(a){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;r()||console.warn("[BootstrapVue warn]: ".concat(t?"".concat(t," - "):"").concat(a))},l=function(a){return!n.Qg&&(o("".concat(a,": Can not be called during SSR.")),!0)},c=function(a){return!n.zx&&(o("".concat(a,": Requires Promise support.")),!0)},s=function(a){return!n.Uc&&(o("".concat(a,": Requires MutationObserver support.")),!0)}},1915:(a,t,e)=>{e.d(t,{$B:()=>u,TF:()=>d,X$:()=>h,Y3:()=>g,l7:()=>v});var n=e(20144);e(69558);function i(a,t){var e=Object.keys(a);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(a);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(a,t).enumerable}))),e.push.apply(e,n)}return e}function r(a){for(var t=1;t=0||Object.prototype.propertyIsEnumerable.call(a,e)&&(i[e]=a[e])}return i}function c(a,t){if(null==a)return{};var e,n,i={},r=Object.keys(a);for(n=0;n=0||(i[e]=a[e]);return i}function s(a){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(a){return typeof a}:function(a){return a&&"function"==typeof Symbol&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},s(a)}var h="_uid",u=n["default"].version.startsWith("3"),d=u?"ref_for":"refInFor",p=["class","staticClass","style","attrs","props","domProps","on","nativeOn","directives","scopedSlots","slot","key","ref","refInFor"],v=n["default"].extend.bind(n["default"]);if(u){var f=n["default"].extend,m=["router-link","transition","transition-group"],z=n["default"].vModelDynamic.created,b=n["default"].vModelDynamic.beforeUpdate;n["default"].vModelDynamic.created=function(a,t,e){z.call(this,a,t,e),a._assign||(a._assign=function(){})},n["default"].vModelDynamic.beforeUpdate=function(a,t,e){b.call(this,a,t,e),a._assign||(a._assign=function(){})},v=function(a){if("object"===s(a)&&a.render&&!a.__alreadyPatched){var t=a.render;a.__alreadyPatched=!0,a.render=function(e){var n=function(a,t,n){var i=void 0===n?[]:[Array.isArray(n)?n.filter(Boolean):n],o="string"===typeof a&&!m.includes(a),c=t&&"object"===s(t)&&!Array.isArray(t);if(!c)return e.apply(void 0,[a,t].concat(i));var h=t.attrs,u=t.props,d=l(t,["attrs","props"]),p=r(r({},d),{},{attrs:h,props:o?{}:u});return"router-link"!==a||p.slots||p.scopedSlots||(p.scopedSlots={$hasNormal:function(){}}),e.apply(void 0,[a,p].concat(i))};if(a.functional){var i,o,c=arguments[1],h=r({},c);h.data={attrs:r({},c.data.attrs||{}),props:r({},c.data.props||{})},Object.keys(c.data||{}).forEach((function(a){p.includes(a)?h.data[a]=c.data[a]:a in c.props?h.data.props[a]=c.data[a]:a.startsWith("on")||(h.data.attrs[a]=c.data[a])}));var u=["_ctx"],d=(null===(i=c.children)||void 0===i||null===(o=i.default)||void 0===o?void 0:o.call(i))||c.children;return d&&0===Object.keys(h.children).filter((function(a){return!u.includes(a)})).length?delete h.children:h.children=d,h.data.on=c.listeners,t.call(this,n,h)}return t.call(this,n)}}return f.call(this,a)}.bind(n["default"])}var g=n["default"].nextTick}}]); \ No newline at end of file +"use strict";(self["webpackChunkflux"]=self["webpackChunkflux"]||[]).push([[166],{77354:(a,t,e)=>{e.d(t,{R:()=>i});var n=e(86087),i=(0,n.Hr)()},73106:(a,t,e)=>{e.d(t,{F:()=>I});var n,i=e(94689),r=e(63294),o=e(12299),l=e(90494),c=e(18280),s=e(26410),h=e(33284),u=e(54602),d=e(93954),p=e(67040),v=e(20451),f=e(1915),m=e(91451),z=e(17100);function b(a,t){var e=Object.keys(a);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(a);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(a,t).enumerable}))),e.push.apply(e,n)}return e}function g(a){for(var t=1;t0?a:0)},w=function(a){return""===a||!0===a||!((0,d.Z3)(a,0)<1)&&!!a},C=(0,v.y2)((0,p.GE)(g(g({},H),{},{dismissLabel:(0,v.pi)(o.N0,"Close"),dismissible:(0,v.pi)(o.U5,!1),fade:(0,v.pi)(o.U5,!1),variant:(0,v.pi)(o.N0,"info")})),i.YJ),I=(0,f.l7)({name:i.YJ,mixins:[V,c.Z],props:C,data:function(){return{countDown:0,localShow:w(this[A])}},watch:(n={},M(n,A,(function(a){this.countDown=O(a),this.localShow=w(a)})),M(n,"countDown",(function(a){var t=this;this.clearCountDownInterval();var e=this[A];(0,h.kE)(e)&&(this.$emit(r.Mg,a),e!==a&&this.$emit(B,a),a>0?(this.localShow=!0,this.$_countDownTimeout=setTimeout((function(){t.countDown--}),1e3)):this.$nextTick((function(){(0,s.bz)((function(){t.localShow=!1}))})))})),M(n,"localShow",(function(a){var t=this[A];a||!this.dismissible&&!(0,h.kE)(t)||this.$emit(r.NN),(0,h.kE)(t)||t===a||this.$emit(B,a)})),n),created:function(){this.$_filterTimer=null;var a=this[A];this.countDown=O(a),this.localShow=w(a)},beforeDestroy:function(){this.clearCountDownInterval()},methods:{dismiss:function(){this.clearCountDownInterval(),this.countDown=0,this.localShow=!1},clearCountDownInterval:function(){clearTimeout(this.$_countDownTimeout),this.$_countDownTimeout=null}},render:function(a){var t=a();if(this.localShow){var e=this.dismissible,n=this.variant,i=a();e&&(i=a(m.Z,{attrs:{"aria-label":this.dismissLabel},on:{click:this.dismiss}},[this.normalizeSlot(l.CZ)])),t=a("div",{staticClass:"alert",class:M({"alert-dismissible":e},"alert-".concat(n),n),attrs:{role:"alert","aria-live":"polite","aria-atomic":!0},key:this[f.X$]},[i,this.normalizeSlot()])}return a(z.N,{props:{noFade:!this.fade}},[t])}})},47389:(a,t,e)=>{e.d(t,{SH:()=>C,pe:()=>B});var n=e(1915),i=e(94689),r=e(63294),o=e(12299),l=e(90494),c=e(33284),s=e(93954),h=e(67040),u=e(20451),d=e(30488),p=e(18280),v=e(43022),f=e(72466),m=e(15193),z=e(67347);function b(a,t){var e=Object.keys(a);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(a);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(a,t).enumerable}))),e.push.apply(e,n)}return e}function g(a){for(var t=1;t{e.d(t,{k:()=>m});var n=e(1915),i=e(69558),r=e(94689),o=e(12299),l=e(67040),c=e(20451),s=e(30488),h=e(67347);function u(a,t){var e=Object.keys(a);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(a);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(a,t).enumerable}))),e.push.apply(e,n)}return e}function d(a){for(var t=1;t{e.d(t,{g:()=>s});var n=e(1915),i=e(69558),r=e(94689),o=e(20451),l=e(89595),c=(0,o.y2)(l.N,r.Td),s=(0,n.l7)({name:r.Td,functional:!0,props:c,render:function(a,t){var e=t.props,n=t.data,r=t.children;return a("li",(0,i.b)(n,{staticClass:"breadcrumb-item",class:{active:e.active}}),[a(l.m,{props:e},r)])}})},89595:(a,t,e)=>{e.d(t,{N:()=>v,m:()=>f});var n=e(1915),i=e(69558),r=e(94689),o=e(12299),l=e(18735),c=e(67040),s=e(20451),h=e(67347);function u(a,t){var e=Object.keys(a);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(a);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(a,t).enumerable}))),e.push.apply(e,n)}return e}function d(a){for(var t=1;t{e.d(t,{P:()=>f});var n=e(1915),i=e(69558),r=e(94689),o=e(12299),l=e(33284),c=e(20451),s=e(46595),h=e(90854);function u(a,t){var e=Object.keys(a);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(a);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(a,t).enumerable}))),e.push.apply(e,n)}return e}function d(a){for(var t=1;t{e.d(t,{a:()=>v});var n=e(1915),i=e(69558),r=e(94689),o=e(12299),l=e(67040),c=e(20451),s=e(15193);function h(a,t){var e=Object.keys(a);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(a);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(a,t).enumerable}))),e.push.apply(e,n)}return e}function u(a){for(var t=1;t{e.d(t,{r:()=>p});var n=e(1915),i=e(94689),r=e(12299),o=e(63663),l=e(26410),c=e(28415),s=e(20451),h=e(18280),u=[".btn:not(.disabled):not([disabled]):not(.dropdown-item)",".form-control:not(.disabled):not([disabled])","select:not(.disabled):not([disabled])",'input[type="checkbox"]:not(.disabled)','input[type="radio"]:not(.disabled)'].join(","),d=(0,s.y2)({justify:(0,s.pi)(r.U5,!1),keyNav:(0,s.pi)(r.U5,!1)},i.zg),p=(0,n.l7)({name:i.zg,mixins:[h.Z],props:d,mounted:function(){this.keyNav&&this.getItems()},methods:{getItems:function(){var a=(0,l.a8)(u,this.$el);return a.forEach((function(a){a.tabIndex=-1})),a.filter((function(a){return(0,l.pn)(a)}))},focusFirst:function(){var a=this.getItems();(0,l.KS)(a[0])},focusPrev:function(a){var t=this.getItems(),e=t.indexOf(a.target);e>-1&&(t=t.slice(0,e).reverse(),(0,l.KS)(t[0]))},focusNext:function(a){var t=this.getItems(),e=t.indexOf(a.target);e>-1&&(t=t.slice(e+1),(0,l.KS)(t[0]))},focusLast:function(){var a=this.getItems().reverse();(0,l.KS)(a[0])},onFocusin:function(a){var t=this.$el;a.target!==t||(0,l.r3)(t,a.relatedTarget)||((0,c.p7)(a),this.focusFirst(a))},onKeydown:function(a){var t=a.keyCode,e=a.shiftKey;t===o.XS||t===o.Cq?((0,c.p7)(a),e?this.focusFirst(a):this.focusPrev(a)):t!==o.RV&&t!==o.YO||((0,c.p7)(a),e?this.focusLast(a):this.focusNext(a))}},render:function(a){var t=this.keyNav;return a("div",{staticClass:"btn-toolbar",class:{"justify-content-between":this.justify},attrs:{role:"toolbar",tabindex:t?"0":null},on:t?{focusin:this.onFocusin,keydown:this.onKeydown}:{}},[this.normalizeSlot()])}})},91451:(a,t,e)=>{e.d(t,{Z:()=>v});var n=e(1915),i=e(69558),r=e(94689),o=e(12299),l=e(90494),c=e(28415),s=e(33284),h=e(20451),u=e(72345);function d(a,t,e){return t in a?Object.defineProperty(a,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):a[t]=e,a}var p=(0,h.y2)({ariaLabel:(0,h.pi)(o.N0,"Close"),content:(0,h.pi)(o.N0,"×"),disabled:(0,h.pi)(o.U5,!1),textVariant:(0,h.pi)(o.N0)},r.gi),v=(0,n.l7)({name:r.gi,functional:!0,props:p,render:function(a,t){var e=t.props,n=t.data,r=t.slots,o=t.scopedSlots,h=r(),p=o||{},v={staticClass:"close",class:d({},"text-".concat(e.textVariant),e.textVariant),attrs:{type:"button",disabled:e.disabled,"aria-label":e.ariaLabel?String(e.ariaLabel):null},on:{click:function(a){e.disabled&&(0,s.cO)(a)&&(0,c.p7)(a)}}};return(0,u.Q)(l.Pq,p,h)||(v.domProps={innerHTML:e.content}),a("button",(0,i.b)(n,v),(0,u.O)(l.Pq,{},p,h))}})},15193:(a,t,e)=>{e.d(t,{N:()=>M,T:()=>I});var n=e(1915),i=e(69558),r=e(94689),o=e(63663),l=e(12299),c=e(11572),s=e(26410),h=e(28415),u=e(33284),d=e(67040),p=e(20451),v=e(30488),f=e(67347);function m(a,t){var e=Object.keys(a);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(a);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(a,t).enumerable}))),e.push.apply(e,n)}return e}function z(a){for(var t=1;t{e.d(t,{N:()=>f,O:()=>m});var n=e(1915),i=e(69558),r=e(94689),o=e(12299),l=e(67040),c=e(20451),s=e(38881),h=e(49379),u=e(49034);function d(a,t){var e=Object.keys(a);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(a);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(a,t).enumerable}))),e.push.apply(e,n)}return e}function p(a){for(var t=1;t{e.d(t,{F:()=>f,N:()=>v});var n=e(1915),i=e(69558),r=e(94689),o=e(12299),l=e(18735),c=e(67040),s=e(20451),h=e(38881);function u(a,t){var e=Object.keys(a);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(a);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(a,t).enumerable}))),e.push.apply(e,n)}return e}function d(a){for(var t=1;t{e.d(t,{o:()=>s});var n=e(1915),i=e(69558),r=e(94689),o=e(12299),l=e(20451),c=(0,l.y2)({columns:(0,l.pi)(o.U5,!1),deck:(0,l.pi)(o.U5,!1),tag:(0,l.pi)(o.N0,"div")},r.CB),s=(0,n.l7)({name:r.CB,functional:!0,props:c,render:function(a,t){var e=t.props,n=t.data,r=t.children;return a(e.tag,(0,i.b)(n,{class:e.deck?"card-deck":e.columns?"card-columns":"card-group"}),r)}})},87047:(a,t,e)=>{e.d(t,{N:()=>v,p:()=>f});var n=e(1915),i=e(69558),r=e(94689),o=e(12299),l=e(18735),c=e(67040),s=e(20451),h=e(38881);function u(a,t){var e=Object.keys(a);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(a);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(a,t).enumerable}))),e.push.apply(e,n)}return e}function d(a){for(var t=1;t{e.d(t,{N:()=>p,O:()=>v});var n=e(1915),i=e(69558),r=e(94689),o=e(12299),l=e(67040),c=e(20451),s=e(98156);function h(a,t){var e=Object.keys(a);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(a);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(a,t).enumerable}))),e.push.apply(e,n)}return e}function u(a){for(var t=1;t{e.d(t,{N:()=>s,Z:()=>h});var n=e(1915),i=e(69558),r=e(94689),o=e(12299),l=e(20451),c=e(46595),s=(0,l.y2)({subTitle:(0,l.pi)(o.N0),subTitleTag:(0,l.pi)(o.N0,"h6"),subTitleTextVariant:(0,l.pi)(o.N0,"muted")},r.QS),h=(0,n.l7)({name:r.QS,functional:!0,props:s,render:function(a,t){var e=t.props,n=t.data,r=t.children;return a(e.subTitleTag,(0,i.b)(n,{staticClass:"card-subtitle",class:[e.subTitleTextVariant?"text-".concat(e.subTitleTextVariant):null]}),r||(0,c.BB)(e.subTitle))}})},64206:(a,t,e)=>{e.d(t,{j:()=>s});var n=e(1915),i=e(69558),r=e(94689),o=e(12299),l=e(20451),c=(0,l.y2)({textTag:(0,l.pi)(o.N0,"p")},r.zv),s=(0,n.l7)({name:r.zv,functional:!0,props:c,render:function(a,t){var e=t.props,n=t.data,r=t.children;return a(e.textTag,(0,i.b)(n,{staticClass:"card-text"}),r)}})},49379:(a,t,e)=>{e.d(t,{N:()=>s,_:()=>h});var n=e(1915),i=e(69558),r=e(94689),o=e(12299),l=e(20451),c=e(46595),s=(0,l.y2)({title:(0,l.pi)(o.N0),titleTag:(0,l.pi)(o.N0,"h4")},r.Mr),h=(0,n.l7)({name:r.Mr,functional:!0,props:s,render:function(a,t){var e=t.props,n=t.data,r=t.children;return a(e.titleTag,(0,i.b)(n,{staticClass:"card-title"}),r||(0,c.BB)(e.title))}})},86855:(a,t,e)=>{e.d(t,{_:()=>V});var n=e(1915),i=e(69558),r=e(94689),o=e(12299),l=e(90494),c=e(18735),s=e(72345),h=e(67040),u=e(20451),d=e(38881),p=e(19279),v=e(87047),f=e(37674),m=e(13481);function z(a,t){var e=Object.keys(a);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(a);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(a,t).enumerable}))),e.push.apply(e,n)}return e}function b(a){for(var t=1;t{e.d(t,{k:()=>R});var n,i=e(1915),r=e(94689),o="show",l=e(43935),c=e(63294),s=e(12299),h=e(90494),u=e(26410),d=e(28415),p=e(54602),v=e(67040),f=e(20451),m=e(73727),z=e(98596),b=e(18280),g=e(69558),M=function(a){(0,u.A_)(a,"height",0),(0,u.bz)((function(){(0,u.nq)(a),(0,u.A_)(a,"height","".concat(a.scrollHeight,"px"))}))},y=function(a){(0,u.jo)(a,"height")},V=function(a){(0,u.A_)(a,"height","auto"),(0,u.A_)(a,"display","block"),(0,u.A_)(a,"height","".concat((0,u.Zt)(a).height,"px")),(0,u.nq)(a),(0,u.A_)(a,"height",0)},H=function(a){(0,u.jo)(a,"height")},A={css:!0,enterClass:"",enterActiveClass:"collapsing",enterToClass:"collapse show",leaveClass:"collapse show",leaveActiveClass:"collapsing",leaveToClass:"collapse"},B={enter:M,afterEnter:y,leave:V,afterLeave:H},O={appear:(0,f.pi)(s.U5,!1)},w=(0,i.l7)({name:r.gt,functional:!0,props:O,render:function(a,t){var e=t.props,n=t.data,i=t.children;return a("transition",(0,g.b)(n,{props:A,on:B},{props:e}),i)}});function C(a,t){var e=Object.keys(a);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(a);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(a,t).enumerable}))),e.push.apply(e,n)}return e}function I(a){for(var t=1;t{e.d(t,{a:()=>p});var n=e(1915),i=e(69558),r=e(94689),o=e(12299),l=e(20451),c=e(67040);function s(a,t){var e=Object.keys(a);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(a);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(a,t).enumerable}))),e.push.apply(e,n)}return e}function h(a){for(var t=1;t{e.d(t,{t:()=>v});var n=e(1915),i=e(94689),r=e(63294),o=e(12299),l=e(20451),c=e(28492),s=e(18280);function h(a,t){var e=Object.keys(a);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(a);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(a,t).enumerable}))),e.push.apply(e,n)}return e}function u(a){for(var t=1;t{e.d(t,{E:()=>b});var n=e(1915),i=e(94689),r=e(63294),o=e(12299),l=e(26410),c=e(67040),s=e(20451),h=e(28492),u=e(18280),d=e(67347);function p(a,t){var e=Object.keys(a);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(a);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(a,t).enumerable}))),e.push.apply(e,n)}return e}function v(a){for(var t=1;t{e.d(t,{N:()=>g,R:()=>M});var n=e(1915),i=e(94689),r=e(12299),o=e(90494),l=e(11572),c=e(18735),s=e(20451),h=e(46595),u=e(43711),d=e(73727),p=e(18280),v=e(15193),f=e(67040);function m(a,t){var e=Object.keys(a);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(a);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(a,t).enumerable}))),e.push.apply(e,n)}return e}function z(a){for(var t=1;t{e.d(t,{l:()=>M});var n,i=e(1915),r=e(94689),o=e(63294),l=e(12299),c=e(33284),s=e(3058),h=function(a,t){for(var e=0;e-1:(0,s.W)(t,a)},isRadio:function(){return!1}},watch:m({},z,(function(a,t){(0,s.W)(a,t)||this.setIndeterminate(a)})),mounted:function(){this.setIndeterminate(this[z])},methods:{computedLocalCheckedWatcher:function(a,t){if(!(0,s.W)(a,t)){this.$emit(p.Du,a);var e=this.$refs.input;e&&this.$emit(b,e.indeterminate)}},handleChange:function(a){var t=this,e=a.target,n=e.checked,i=e.indeterminate,r=this.value,l=this.uncheckedValue,s=this.computedLocalChecked;if((0,c.kJ)(s)){var u=h(s,r);n&&u<0?s=s.concat(r):!n&&u>-1&&(s=s.slice(0,u).concat(s.slice(u+1)))}else s=n?r:l;this.computedLocalChecked=s,this.$nextTick((function(){t.$emit(o.z2,s),t.isGroup&&t.bvGroup.$emit(o.z2,s),t.$emit(b,i)}))},setIndeterminate:function(a){(0,c.kJ)(this.computedLocalChecked)&&(a=!1);var t=this.$refs.input;t&&(t.indeterminate=a,this.$emit(b,a))}}})},46709:(a,t,e)=>{e.d(t,{x:()=>P});var n=e(94689),i=e(43935),r=e(12299),o=e(30824),l=e(90494),c=e(11572),s=e(79968),h=e(64679),u=e(26410),d=e(68265),p=e(33284),v=e(93954),f=e(67040),m=e(20451),z=e(95505),b=e(73727),g=e(18280),M=e(50725),y=e(46310),V=e(51666),H=e(52307),A=e(98761);function B(a,t){var e=Object.keys(a);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(a);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(a,t).enumerable}))),e.push.apply(e,n)}return e}function O(a){for(var t=1;t0||(0,f.XP)(this.labelColProps).length>0}},watch:{ariaDescribedby:function(a,t){a!==t&&this.updateAriaDescribedby(a,t)}},mounted:function(){var a=this;this.$nextTick((function(){a.updateAriaDescribedby(a.ariaDescribedby)}))},methods:{getAlignClasses:function(a,t){return(0,s.QC)().reduce((function(e,n){var i=a[(0,m.wv)(n,"".concat(t,"Align"))]||null;return i&&e.push(["text",n,i].filter(d.y).join("-")),e}),[])},getColProps:function(a,t){return(0,s.QC)().reduce((function(e,n){var i=a[(0,m.wv)(n,"".concat(t,"Cols"))];return i=""===i||(i||!1),(0,p.jn)(i)||"auto"===i||(i=(0,v.Z3)(i,0),i=i>0&&i),i&&(e[n||((0,p.jn)(i)?"col":"cols")]=i),e}),{})},updateAriaDescribedby:function(a,t){var e=this.labelFor;if(i.Qg&&e){var n=(0,u.Ys)("#".concat((0,h.Q)(e)),this.$refs.content);if(n){var r="aria-describedby",l=(a||"").split(o.Qf),s=(t||"").split(o.Qf),p=((0,u.UK)(n,r)||"").split(o.Qf).filter((function(a){return!(0,c.kI)(s,a)})).concat(l).filter((function(a,t,e){return e.indexOf(a)===t})).filter(d.y).join(" ").trim();p?(0,u.fi)(n,r,p):(0,u.uV)(n,r)}}},onLegendClick:function(a){if(!this.labelFor){var t=a.target,e=t?t.tagName:"";if(-1===L.indexOf(e)){var n=(0,u.a8)(I,this.$refs.content).filter(u.pn);1===n.length&&(0,u.KS)(n[0])}}}},render:function(a){var t=this.computedState,e=this.feedbackAriaLive,n=this.isHorizontal,i=this.labelFor,r=this.normalizeSlot,o=this.safeId,c=this.tooltip,s=o(),h=!i,u=a(),p=r(l.gN)||this.label,v=p?o("_BV_label_"):null;if(p||n){var f=this.labelSize,m=this.labelColProps,z=h?"legend":"label";this.labelSrOnly?(p&&(u=a(z,{class:"sr-only",attrs:{id:v,for:i||null}},[p])),u=a(n?M.l:"div",{props:n?m:{}},[u])):u=a(n?M.l:z,{on:h?{click:this.onLegendClick}:{},props:n?O(O({},m),{},{tag:z}):{},attrs:{id:v,for:i||null,tabindex:h?"-1":null},class:[h?"bv-no-focus-ring":"",n||h?"col-form-label":"",!n&&h?"pt-0":"",n||h?"":"d-block",f?"col-form-label-".concat(f):"",this.labelAlignClasses,this.labelClass]},[p])}var b=a(),g=r(l.Cn)||this.invalidFeedback,B=g?o("_BV_feedback_invalid_"):null;g&&(b=a(H.h,{props:{ariaLive:e,id:B,state:t,tooltip:c},attrs:{tabindex:g?"-1":null}},[g]));var w=a(),C=r(l.k8)||this.validFeedback,I=C?o("_BV_feedback_valid_"):null;C&&(w=a(A.m,{props:{ariaLive:e,id:I,state:t,tooltip:c},attrs:{tabindex:C?"-1":null}},[C]));var L=a(),S=r(l.iC)||this.description,P=S?o("_BV_description_"):null;S&&(L=a(V.m,{attrs:{id:P,tabindex:"-1"}},[S]));var F=this.ariaDescribedby=[P,!1===t?B:null,!0===t?I:null].filter(d.y).join(" ")||null,k=a(n?M.l:"div",{props:n?this.contentColProps:{},ref:"content"},[r(l.Pq,{ariaDescribedby:F,descriptionId:P,id:s,labelId:v})||a(),b,w,L]);return a(h?"fieldset":n?y.d:"div",{staticClass:"form-group",class:[{"was-validated":this.validated},this.stateClass],attrs:{id:s,disabled:h?this.disabled:null,role:h?null:"group","aria-invalid":this.computedAriaInvalid,"aria-labelledby":h&&n?v:null}},n&&h?[a(y.d,[u,k])]:[u,k])}}},22183:(a,t,e)=>{e.d(t,{e:()=>A});var n=e(1915),i=e(94689),r=e(12299),o=e(11572),l=e(26410),c=e(28415),s=e(67040),h=e(20451),u=e(32023),d=e(80685),p=e(49035),v=e(95505),f=e(70403),m=e(94791),z=e(73727),b=e(76677);function g(a,t){var e=Object.keys(a);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(a);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(a,t).enumerable}))),e.push.apply(e,n)}return e}function M(a){for(var t=1;t{e.d(t,{Q:()=>c});var n=e(1915),i=e(94689),r=e(20451),o=e(72985),l=(0,r.y2)(o.NQ,i.UV),c=(0,n.l7)({name:i.UV,mixins:[o.mD],provide:function(){var a=this;return{getBvRadioGroup:function(){return a}}},props:l,computed:{isRadioGroup:function(){return!0}}})},76398:(a,t,e)=>{e.d(t,{g:()=>c});var n=e(1915),i=e(94689),r=e(20451),o=e(6298),l=(0,r.y2)(o.NQ,i.t_),c=(0,n.l7)({name:i.t_,mixins:[o.UG],inject:{getBvGroup:{from:"getBvRadioGroup",default:function(){return function(){return null}}}},props:l,computed:{bvGroup:function(){return this.getBvGroup()}}})},2938:(a,t,e)=>{e.d(t,{L:()=>z});var n=e(1915),i=e(94689),r=e(12299),o=e(90494),l=e(18735),c=e(67040),s=e(20451),h=e(77330),u=e(18280),d=e(78959);function p(a,t){var e=Object.keys(a);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(a);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(a,t).enumerable}))),e.push.apply(e,n)}return e}function v(a){for(var t=1;t{e.d(t,{c:()=>s});var n=e(1915),i=e(69558),r=e(94689),o=e(12299),l=e(20451),c=(0,l.y2)({disabled:(0,l.pi)(o.U5,!1),value:(0,l.pi)(o.r1,void 0,!0)},r.vg),s=(0,n.l7)({name:r.vg,functional:!0,props:c,render:function(a,t){var e=t.props,n=t.data,r=t.children,o=e.value,l=e.disabled;return a("option",(0,i.b)(n,{attrs:{disabled:l},domProps:{value:o}}),r)}})},8051:(a,t,e)=>{e.d(t,{K:()=>x});var n=e(1915),i=e(94689),r=e(63294),o=e(12299),l=e(90494),c=e(11572),s=e(26410),h=e(18735),u=e(33284),d=e(67040),p=e(20451),v=e(32023),f=e(58137),m=e(49035),z=e(95505),b=e(73727),g=e(54602),M=(0,g.l)("value"),y=M.mixin,V=M.props,H=M.prop,A=M.event,B=e(18280),O=e(37668),w=e(77330);function C(a,t){var e=Object.keys(a);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(a);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(a,t).enumerable}))),e.push.apply(e,n)}return e}function I(a){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:null;if((0,u.PO)(a)){var e=(0,O.U)(a,this.valueField),n=(0,O.U)(a,this.textField),i=(0,O.U)(a,this.optionsField,null);return(0,u.Ft)(i)?{value:(0,u.o8)(e)?t||n:e,text:String((0,u.o8)(n)?t:n),html:(0,O.U)(a,this.htmlField),disabled:Boolean((0,O.U)(a,this.disabledField))}:{label:String((0,O.U)(a,this.labelField)||n),options:this.normalizeOptions(i)}}return{value:t||a,text:String(a),disabled:!1}}}}),F=e(78959),k=e(2938);function j(a,t){var e=Object.keys(a);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(a);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(a,t).enumerable}))),e.push.apply(e,n)}return e}function T(a){for(var t=1;t{e.d(t,{G:()=>q,N:()=>G});var n,i=e(1915),r=e(94689),o=e(63294),l=e(12299),c=e(63663),s=e(90494),h=e(11572),u=e(26410),d=e(28415),p=e(68265),v=e(33284),f=e(9439),m=e(21578),z=e(54602),b=e(93954),g=e(67040),M=e(20451),y=e(46595),V=e(28492),H=e(49035),A=e(95505),B=e(73727),O=e(18280),w=e(32023),C=e(72466);function I(a,t){var e=Object.keys(a);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(a);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(a,t).enumerable}))),e.push.apply(e,n)}return e}function L(a){for(var t=1;t0?a:N},computedInterval:function(){var a=(0,b.Z3)(this.repeatInterval,0);return a>0?a:$},computedThreshold:function(){return(0,m.nP)((0,b.Z3)(this.repeatThreshold,R),1)},computedStepMultiplier:function(){return(0,m.nP)((0,b.Z3)(this.repeatStepMultiplier,_),1)},computedPrecision:function(){var a=this.computedStep;return(0,m.Mk)(a)===a?0:(a.toString().split(".")[1]||"").length},computedMultiplier:function(){return(0,m.Fq)(10,this.computedPrecision||0)},valueAsFixed:function(){var a=this.localValue;return(0,v.Ft)(a)?"":a.toFixed(this.computedPrecision)},computedLocale:function(){var a=(0,h.zo)(this.locale).filter(p.y),t=new Intl.NumberFormat(a);return t.resolvedOptions().locale},computedRTL:function(){return(0,f.e)(this.computedLocale)},defaultFormatter:function(){var a=this.computedPrecision,t=new Intl.NumberFormat(this.computedLocale,{style:"decimal",useGrouping:!1,minimumIntegerDigits:1,minimumFractionDigits:a,maximumFractionDigits:a,notation:"standard"});return t.format},computedFormatter:function(){var a=this.formatterFn;return(0,M.lo)(a)?a:this.defaultFormatter},computedAttrs:function(){return L(L({},this.bvAttrs),{},{role:"group",lang:this.computedLocale,tabindex:this.disabled?null:"-1",title:this.ariaLabel})},computedSpinAttrs:function(){var a=this.spinId,t=this.localValue,e=this.computedRequired,n=this.disabled,i=this.state,r=this.computedFormatter,o=!(0,v.Ft)(t);return L(L({dir:this.computedRTL?"rtl":"ltr"},this.bvAttrs),{},{id:a,role:"spinbutton",tabindex:n?null:"0","aria-live":"off","aria-label":this.ariaLabel||null,"aria-controls":this.ariaControls||null,"aria-invalid":!1===i||!o&&e?"true":null,"aria-required":e?"true":null,"aria-valuemin":(0,y.BB)(this.computedMin),"aria-valuemax":(0,y.BB)(this.computedMax),"aria-valuenow":o?t:null,"aria-valuetext":o?r(t):null})}},watch:(n={},S(n,j,(function(a){this.localValue=(0,b.f_)(a,null)})),S(n,"localValue",(function(a){this.$emit(T,a)})),S(n,"disabled",(function(a){a&&this.clearRepeat()})),S(n,"readonly",(function(a){a&&this.clearRepeat()})),n),created:function(){this.$_autoDelayTimer=null,this.$_autoRepeatTimer=null,this.$_keyIsDown=!1},beforeDestroy:function(){this.clearRepeat()},deactivated:function(){this.clearRepeat()},methods:{focus:function(){this.disabled||(0,u.KS)(this.$refs.spinner)},blur:function(){this.disabled||(0,u.Cx)(this.$refs.spinner)},emitChange:function(){this.$emit(o.z2,this.localValue)},stepValue:function(a){var t=this.localValue;if(!this.disabled&&!(0,v.Ft)(t)){var e=this.computedStep*a,n=this.computedMin,i=this.computedMax,r=this.computedMultiplier,o=this.wrap;t=(0,m.ir)((t-n)/e)*e+n+e,t=(0,m.ir)(t*r)/r,this.localValue=t>i?o?n:i:t0&&void 0!==arguments[0]?arguments[0]:1,t=this.localValue;(0,v.Ft)(t)?this.localValue=this.computedMin:this.stepValue(1*a)},stepDown:function(){var a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=this.localValue;(0,v.Ft)(t)?this.localValue=this.wrap?this.computedMax:this.computedMin:this.stepValue(-1*a)},onKeydown:function(a){var t=a.keyCode,e=a.altKey,n=a.ctrlKey,i=a.metaKey;if(!(this.disabled||this.readonly||e||n||i)&&(0,h.kI)(U,t)){if((0,d.p7)(a,{propagation:!1}),this.$_keyIsDown)return;this.resetTimers(),(0,h.kI)([c.XS,c.RV],t)?(this.$_keyIsDown=!0,t===c.XS?this.handleStepRepeat(a,this.stepUp):t===c.RV&&this.handleStepRepeat(a,this.stepDown)):t===c.r7?this.stepUp(this.computedStepMultiplier):t===c.L_?this.stepDown(this.computedStepMultiplier):t===c.QI?this.localValue=this.computedMin:t===c.bt&&(this.localValue=this.computedMax)}},onKeyup:function(a){var t=a.keyCode,e=a.altKey,n=a.ctrlKey,i=a.metaKey;this.disabled||this.readonly||e||n||i||(0,h.kI)(U,t)&&((0,d.p7)(a,{propagation:!1}),this.resetTimers(),this.$_keyIsDown=!1,this.emitChange())},handleStepRepeat:function(a,t){var e=this,n=a||{},i=n.type,r=n.button;if(!this.disabled&&!this.readonly){if("mousedown"===i&&r)return;this.resetTimers(),t(1);var o=this.computedThreshold,l=this.computedStepMultiplier,c=this.computedDelay,s=this.computedInterval;this.$_autoDelayTimer=setTimeout((function(){var a=0;e.$_autoRepeatTimer=setInterval((function(){t(a{e.d(t,{d:()=>b});var n=e(1915),i=e(94689),r=e(63294),o=e(12299),l=e(63663),c=e(67040),s=e(20451),h=e(73727),u=e(18280),d=e(26034),p=e(91451);function v(a,t){var e=Object.keys(a);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(a);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(a,t).enumerable}))),e.push.apply(e,n)}return e}function f(a){for(var t=1;t{e.d(t,{D:()=>Q});var n,i=e(1915),r=e(94689),o=e(63294),l=e(63663),c=e(12299),s=e(30824),h=e(90494),u=e(11572),d=e(64679),p=e(26410),v=e(28415),f=e(68265),m=e(33284),z=e(3058),b=e(54602),g=e(67040),M=e(20451),y=e(46595),V=e(32023),H=e(49035),A=e(95505),B=e(73727),O=e(76677),w=e(18280),C=e(15193),I=e(52307),L=e(51666),S=e(51909);function P(a){return T(a)||j(a)||k(a)||F()}function F(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function k(a,t){if(a){if("string"===typeof a)return D(a,t);var e=Object.prototype.toString.call(a).slice(8,-1);return"Object"===e&&a.constructor&&(e=a.constructor.name),"Map"===e||"Set"===e?Array.from(a):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?D(a,t):void 0}}function j(a){if("undefined"!==typeof Symbol&&null!=a[Symbol.iterator]||null!=a["@@iterator"])return Array.from(a)}function T(a){if(Array.isArray(a))return D(a)}function D(a,t){(null==t||t>a.length)&&(t=a.length);for(var e=0,n=new Array(t);e0&&e.indexOf(a)===t}))},Z=function(a){return(0,m.HD)(a)?a:(0,m.cO)(a)&&a.target.value||""},X=function(){return{all:[],valid:[],invalid:[],duplicate:[]}},Y=(0,M.y2)((0,g.GE)(x(x(x(x(x(x({},B.N),_),V.N),H.N),A.N),{},{addButtonText:(0,M.pi)(c.N0,"Add"),addButtonVariant:(0,M.pi)(c.N0,"outline-secondary"),addOnChange:(0,M.pi)(c.U5,!1),duplicateTagText:(0,M.pi)(c.N0,"Duplicate tag(s)"),feedbackAriaLive:(0,M.pi)(c.N0,"assertive"),ignoreInputFocusSelector:(0,M.pi)(c.Mu,W),inputAttrs:(0,M.pi)(c.aR,{}),inputClass:(0,M.pi)(c.wA),inputId:(0,M.pi)(c.N0),inputType:(0,M.pi)(c.N0,"text",(function(a){return(0,u.kI)(q,a)})),invalidTagText:(0,M.pi)(c.N0,"Invalid tag(s)"),limit:(0,M.pi)(c.jg),limitTagsText:(0,M.pi)(c.N0,"Tag limit reached"),noAddOnEnter:(0,M.pi)(c.U5,!1),noOuterFocus:(0,M.pi)(c.U5,!1),noTagRemove:(0,M.pi)(c.U5,!1),placeholder:(0,M.pi)(c.N0,"Add tag..."),removeOnDelete:(0,M.pi)(c.U5,!1),separator:(0,M.pi)(c.Mu),tagClass:(0,M.pi)(c.wA),tagPills:(0,M.pi)(c.U5,!1),tagRemoveLabel:(0,M.pi)(c.N0,"Remove tag"),tagRemovedLabel:(0,M.pi)(c.N0,"Tag removed"),tagValidator:(0,M.pi)(c.Sx),tagVariant:(0,M.pi)(c.N0,"secondary")})),r.bu),Q=(0,i.l7)({name:r.bu,mixins:[O.o,B.t,R,V.X,H.j,A.J,w.Z],props:Y,data:function(){return{hasFocus:!1,newTag:"",tags:[],removedTags:[],tagsState:X(),focusState:null}},computed:{computedInputId:function(){return this.inputId||this.safeId("__input__")},computedInputType:function(){return(0,u.kI)(q,this.inputType)?this.inputType:"text"},computedInputAttrs:function(){var a=this.disabled,t=this.form;return x(x({},this.inputAttrs),{},{id:this.computedInputId,value:this.newTag,disabled:a,form:t})},computedInputHandlers:function(){return x(x({},(0,g.CE)(this.bvListeners,[o.kT,o.iV])),{},{blur:this.onInputBlur,change:this.onInputChange,focus:this.onInputFocus,input:this.onInputInput,keydown:this.onInputKeydown,reset:this.reset})},computedSeparator:function(){return(0,u.zo)(this.separator).filter(m.HD).filter(f.y).join("")},computedSeparatorRegExp:function(){var a=this.computedSeparator;return a?new RegExp("[".concat(K(a),"]+")):null},computedJoiner:function(){var a=this.computedSeparator.charAt(0);return" "!==a?"".concat(a," "):a},computeIgnoreInputFocusSelector:function(){return(0,u.zo)(this.ignoreInputFocusSelector).filter(f.y).join(",").trim()},disableAddButton:function(){var a=this,t=(0,y.fy)(this.newTag);return""===t||!this.splitTags(t).some((function(t){return!(0,u.kI)(a.tags,t)&&a.validateTag(t)}))},duplicateTags:function(){return this.tagsState.duplicate},hasDuplicateTags:function(){return this.duplicateTags.length>0},invalidTags:function(){return this.tagsState.invalid},hasInvalidTags:function(){return this.invalidTags.length>0},isLimitReached:function(){var a=this.limit;return(0,m.hj)(a)&&a>=0&&this.tags.length>=a}},watch:(n={},N(n,U,(function(a){this.tags=J(a)})),N(n,"tags",(function(a,t){(0,z.W)(a,this[U])||this.$emit(G,a),(0,z.W)(a,t)||(a=(0,u.zo)(a).filter(f.y),t=(0,u.zo)(t).filter(f.y),this.removedTags=t.filter((function(t){return!(0,u.kI)(a,t)})))})),N(n,"tagsState",(function(a,t){(0,z.W)(a,t)||this.$emit(o.Ol,a.valid,a.invalid,a.duplicate)})),n),created:function(){this.tags=J(this[U])},mounted:function(){var a=(0,p.oq)("form",this.$el);a&&(0,v.XO)(a,"reset",this.reset,o.SH)},beforeDestroy:function(){var a=(0,p.oq)("form",this.$el);a&&(0,v.QY)(a,"reset",this.reset,o.SH)},methods:{addTag:function(a){if(a=(0,m.HD)(a)?a:this.newTag,!this.disabled&&""!==(0,y.fy)(a)&&!this.isLimitReached){var t=this.parseTags(a);if(t.valid.length>0||0===t.all.length)if((0,p.wB)(this.getInput(),"select"))this.newTag="";else{var e=[].concat(P(t.invalid),P(t.duplicate));this.newTag=t.all.filter((function(a){return(0,u.kI)(e,a)})).join(this.computedJoiner).concat(e.length>0?this.computedJoiner.charAt(0):"")}t.valid.length>0&&(this.tags=(0,u.zo)(this.tags,t.valid)),this.tagsState=t,this.focus()}},removeTag:function(a){this.disabled||(this.tags=this.tags.filter((function(t){return t!==a})))},reset:function(){var a=this;this.newTag="",this.tags=[],this.$nextTick((function(){a.removedTags=[],a.tagsState=X()}))},onInputInput:function(a){if(!(this.disabled||(0,m.cO)(a)&&a.target.composing)){var t=Z(a),e=this.computedSeparatorRegExp;this.newTag!==t&&(this.newTag=t),t=(0,y.fi)(t),e&&e.test(t.slice(-1))?this.addTag():this.tagsState=""===t?X():this.parseTags(t)}},onInputChange:function(a){if(!this.disabled&&this.addOnChange){var t=Z(a);this.newTag!==t&&(this.newTag=t),this.addTag()}},onInputKeydown:function(a){if(!this.disabled&&(0,m.cO)(a)){var t=a.keyCode,e=a.target.value||"";this.noAddOnEnter||t!==l.K2?!this.removeOnDelete||t!==l.d1&&t!==l.oD||""!==e||((0,v.p7)(a,{propagation:!1}),this.tags=this.tags.slice(0,-1)):((0,v.p7)(a,{propagation:!1}),this.addTag())}},onClick:function(a){var t=this,e=this.computeIgnoreInputFocusSelector;e&&(0,p.oq)(e,a.target,!0)||this.$nextTick((function(){t.focus()}))},onInputFocus:function(a){var t=this;"out"!==this.focusState&&(this.focusState="in",this.$nextTick((function(){(0,p.bz)((function(){t.hasFocus&&(t.$emit(o.km,a),t.focusState=null)}))})))},onInputBlur:function(a){var t=this;"in"!==this.focusState&&(this.focusState="out",this.$nextTick((function(){(0,p.bz)((function(){t.hasFocus||(t.$emit(o.z,a),t.focusState=null)}))})))},onFocusin:function(a){this.hasFocus=!0,this.$emit(o.kT,a)},onFocusout:function(a){this.hasFocus=!1,this.$emit(o.iV,a)},handleAutofocus:function(){var a=this;this.$nextTick((function(){(0,p.bz)((function(){a.autofocus&&a.focus()}))}))},focus:function(){this.disabled||(0,p.KS)(this.getInput())},blur:function(){this.disabled||(0,p.Cx)(this.getInput())},splitTags:function(a){a=(0,y.BB)(a);var t=this.computedSeparatorRegExp;return(t?a.split(t):[a]).map(y.fy).filter(f.y)},parseTags:function(a){var t=this,e=this.splitTags(a),n={all:e,valid:[],invalid:[],duplicate:[]};return e.forEach((function(a){(0,u.kI)(t.tags,a)||(0,u.kI)(n.valid,a)?(0,u.kI)(n.duplicate,a)||n.duplicate.push(a):t.validateTag(a)?n.valid.push(a):(0,u.kI)(n.invalid,a)||n.invalid.push(a)})),n},validateTag:function(a){var t=this.tagValidator;return!(0,M.lo)(t)||t(a)},getInput:function(){return(0,p.Ys)("#".concat((0,d.Q)(this.computedInputId)),this.$el)},defaultRender:function(a){var t=a.addButtonText,e=a.addButtonVariant,n=a.addTag,i=a.disableAddButton,r=a.disabled,o=a.duplicateTagText,l=a.inputAttrs,c=a.inputClass,s=a.inputHandlers,u=a.inputType,d=a.invalidTagText,p=a.isDuplicate,v=a.isInvalid,m=a.isLimitReached,z=a.limitTagsText,b=a.noTagRemove,g=a.placeholder,M=a.removeTag,V=a.tagClass,H=a.tagPills,A=a.tagRemoveLabel,B=a.tagVariant,O=a.tags,w=this.$createElement,P=O.map((function(a){return a=(0,y.BB)(a),w(S.d,{class:V,props:{disabled:r,noRemove:b,pill:H,removeLabel:A,tag:"li",title:a,variant:B},on:{remove:function(){return M(a)}},key:"tags_".concat(a)},a)})),F=d&&v?this.safeId("__invalid_feedback__"):null,k=o&&p?this.safeId("__duplicate_feedback__"):null,j=z&&m?this.safeId("__limit_feedback__"):null,T=[l["aria-describedby"],F,k,j].filter(f.y).join(" "),D=w("input",{staticClass:"b-form-tags-input w-100 flex-grow-1 p-0 m-0 bg-transparent border-0",class:c,style:{outline:0,minWidth:"5rem"},attrs:x(x({},l),{},{"aria-describedby":T||null,type:u,placeholder:g||null}),domProps:{value:l.value},on:s,directives:[{name:"model",value:l.value}],ref:"input"}),E=w(C.T,{staticClass:"b-form-tags-button py-0",class:{invisible:i},style:{fontSize:"90%"},props:{disabled:i||m,variant:e},on:{click:function(){return n()}},ref:"button"},[this.normalizeSlot(h.iV)||t]),N=this.safeId("__tag_list__"),$=w("li",{staticClass:"b-form-tags-field flex-grow-1",attrs:{role:"none","aria-live":"off","aria-controls":N},key:"tags_field"},[w("div",{staticClass:"d-flex",attrs:{role:"group"}},[D,E])]),R=w("ul",{staticClass:"b-form-tags-list list-unstyled mb-0 d-flex flex-wrap align-items-center",attrs:{id:N},key:"tags_list"},[P,$]),_=w();if(d||o||z){var U=this.feedbackAriaLive,G=this.computedJoiner,q=w();F&&(q=w(I.h,{props:{id:F,ariaLive:U,forceShow:!0},key:"tags_invalid_feedback"},[this.invalidTagText,": ",this.invalidTags.join(G)]));var W=w();k&&(W=w(L.m,{props:{id:k,ariaLive:U},key:"tags_duplicate_feedback"},[this.duplicateTagText,": ",this.duplicateTags.join(G)]));var K=w();j&&(K=w(L.m,{props:{id:j,ariaLive:U},key:"tags_limit_feedback"},[z])),_=w("div",{attrs:{"aria-live":"polite","aria-atomic":"true"},key:"tags_feedback"},[q,W,K])}return[R,_]}},render:function(a){var t=this.name,e=this.disabled,n=this.required,i=this.form,r=this.tags,o=this.computedInputId,l=this.hasFocus,c=this.noOuterFocus,s=x({tags:r.slice(),inputAttrs:this.computedInputAttrs,inputType:this.computedInputType,inputHandlers:this.computedInputHandlers,removeTag:this.removeTag,addTag:this.addTag,reset:this.reset,inputId:o,isInvalid:this.hasInvalidTags,invalidTags:this.invalidTags.slice(),isDuplicate:this.hasDuplicateTags,duplicateTags:this.duplicateTags.slice(),isLimitReached:this.isLimitReached,disableAddButton:this.disableAddButton},(0,g.ei)(this.$props,["addButtonText","addButtonVariant","disabled","duplicateTagText","form","inputClass","invalidTagText","limit","limitTagsText","noTagRemove","placeholder","required","separator","size","state","tagClass","tagPills","tagRemoveLabel","tagVariant"])),u=this.normalizeSlot(h.Pq,s)||this.defaultRender(s),d=a("output",{staticClass:"sr-only",attrs:{id:this.safeId("__selected_tags__"),role:"status",for:o,"aria-live":l?"polite":"off","aria-atomic":"true","aria-relevant":"additions text"}},this.tags.join(", ")),p=a("div",{staticClass:"sr-only",attrs:{id:this.safeId("__removed_tags__"),role:"status","aria-live":l?"assertive":"off","aria-atomic":"true"}},this.removedTags.length>0?"(".concat(this.tagRemovedLabel,") ").concat(this.removedTags.join(", ")):""),v=a();if(t&&!e){var f=r.length>0;v=(f?r:[""]).map((function(e){return a("input",{class:{"sr-only":!f},attrs:{type:f?"hidden":"text",value:e,required:n,name:t,form:i},key:"tag_input_".concat(e)})}))}return a("div",{staticClass:"b-form-tags form-control h-auto",class:[{focus:l&&!c&&!e,disabled:e},this.sizeFormClass,this.stateClass],attrs:{id:this.safeId(),role:"group",tabindex:e||c?null:"-1","aria-describedby":this.safeId("__selected_tags__")},on:{click:this.onClick,focusin:this.onFocusin,focusout:this.onFocusout}},[d,p,u,v])}})},333:(a,t,e)=>{e.d(t,{y:()=>O});var n=e(1915),i=e(94689),r=e(12299),o=e(26410),l=e(33284),c=e(21578),s=e(93954),h=e(67040),u=e(20451),d=e(32023),p=e(80685),v=e(49035),f=e(95505),m=e(70403),z=e(94791),b=e(73727),g=e(98596),M=e(76677),y=e(58290);function V(a,t){var e=Object.keys(a);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(a);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(a,t).enumerable}))),e.push.apply(e,n)}return e}function H(a){for(var t=1;tf?u:"".concat(f,"px")}},render:function(a){return a("textarea",{class:this.computedClass,style:this.computedStyle,directives:[{name:"b-visible",value:this.visibleCallback,modifiers:{640:!0}}],attrs:this.computedAttrs,domProps:{value:this.localValue},on:this.computedListeners,ref:"input"})}})},52307:(a,t,e)=>{e.d(t,{h:()=>s});var n=e(1915),i=e(69558),r=e(94689),o=e(12299),l=e(20451),c=(0,l.y2)({ariaLive:(0,l.pi)(o.N0),forceShow:(0,l.pi)(o.U5,!1),id:(0,l.pi)(o.N0),role:(0,l.pi)(o.N0),state:(0,l.pi)(o.U5,null),tag:(0,l.pi)(o.N0,"div"),tooltip:(0,l.pi)(o.U5,!1)},r.BP),s=(0,n.l7)({name:r.BP,functional:!0,props:c,render:function(a,t){var e=t.props,n=t.data,r=t.children,o=e.tooltip,l=e.ariaLive,c=!0===e.forceShow||!1===e.state;return a(e.tag,(0,i.b)(n,{class:{"d-block":c,"invalid-feedback":!o,"invalid-tooltip":o},attrs:{id:e.id||null,role:e.role||null,"aria-live":l||null,"aria-atomic":l?"true":null}}),r)}})},51666:(a,t,e)=>{e.d(t,{m:()=>h});var n=e(1915),i=e(69558),r=e(94689),o=e(12299),l=e(20451);function c(a,t,e){return t in a?Object.defineProperty(a,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):a[t]=e,a}var s=(0,l.y2)({id:(0,l.pi)(o.N0),inline:(0,l.pi)(o.U5,!1),tag:(0,l.pi)(o.N0,"small"),textVariant:(0,l.pi)(o.N0,"muted")},r.F6),h=(0,n.l7)({name:r.F6,functional:!0,props:s,render:function(a,t){var e=t.props,n=t.data,r=t.children;return a(e.tag,(0,i.b)(n,{class:c({"form-text":!e.inline},"text-".concat(e.textVariant),e.textVariant),attrs:{id:e.id}}),r)}})},98761:(a,t,e)=>{e.d(t,{m:()=>s});var n=e(1915),i=e(69558),r=e(94689),o=e(12299),l=e(20451),c=(0,l.y2)({ariaLive:(0,l.pi)(o.N0),forceShow:(0,l.pi)(o.U5,!1),id:(0,l.pi)(o.N0),role:(0,l.pi)(o.N0),state:(0,l.pi)(o.U5,null),tag:(0,l.pi)(o.N0,"div"),tooltip:(0,l.pi)(o.U5,!1)},r.rc),s=(0,n.l7)({name:r.rc,functional:!0,props:c,render:function(a,t){var e=t.props,n=t.data,r=t.children,o=e.tooltip,l=e.ariaLive,c=!0===e.forceShow||!0===e.state;return a(e.tag,(0,i.b)(n,{class:{"d-block":c,"valid-feedback":!o,"valid-tooltip":o},attrs:{id:e.id||null,role:e.role||null,"aria-live":l||null,"aria-atomic":l?"true":null}}),r)}})},54909:(a,t,e)=>{e.d(t,{N:()=>c,e:()=>s});var n=e(1915),i=e(69558),r=e(94689),o=e(12299),l=e(20451),c=(0,l.y2)({id:(0,l.pi)(o.N0),inline:(0,l.pi)(o.U5,!1),novalidate:(0,l.pi)(o.U5,!1),validated:(0,l.pi)(o.U5,!1)},r.eh),s=(0,n.l7)({name:r.eh,functional:!0,props:c,render:function(a,t){var e=t.props,n=t.data,r=t.children;return a("form",(0,i.b)(n,{class:{"form-inline":e.inline,"was-validated":e.validated},attrs:{id:e.id,novalidate:e.novalidate}}),r)}})},98156:(a,t,e)=>{e.d(t,{N:()=>m,s:()=>z});var n=e(1915),i=e(69558),r=e(94689),o=e(12299),l=e(11572),c=e(68265),s=e(33284),h=e(93954),u=e(20451),d=e(46595);function p(a,t,e){return t in a?Object.defineProperty(a,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):a[t]=e,a}var v='',f=function(a,t,e){var n=encodeURIComponent(v.replace("%{w}",(0,d.BB)(a)).replace("%{h}",(0,d.BB)(t)).replace("%{f}",e));return"data:image/svg+xml;charset=UTF-8,".concat(n)},m=(0,u.y2)({alt:(0,u.pi)(o.N0),blank:(0,u.pi)(o.U5,!1),blankColor:(0,u.pi)(o.N0,"transparent"),block:(0,u.pi)(o.U5,!1),center:(0,u.pi)(o.U5,!1),fluid:(0,u.pi)(o.U5,!1),fluidGrow:(0,u.pi)(o.U5,!1),height:(0,u.pi)(o.fE),left:(0,u.pi)(o.U5,!1),right:(0,u.pi)(o.U5,!1),rounded:(0,u.pi)(o.gL,!1),sizes:(0,u.pi)(o.Mu),src:(0,u.pi)(o.N0),srcset:(0,u.pi)(o.Mu),thumbnail:(0,u.pi)(o.U5,!1),width:(0,u.pi)(o.fE)},r.aJ),z=(0,n.l7)({name:r.aJ,functional:!0,props:m,render:function(a,t){var e,n=t.props,r=t.data,o=n.alt,u=n.src,v=n.block,m=n.fluidGrow,z=n.rounded,b=(0,h.Z3)(n.width)||null,g=(0,h.Z3)(n.height)||null,M=null,y=(0,l.zo)(n.srcset).filter(c.y).join(","),V=(0,l.zo)(n.sizes).filter(c.y).join(",");return n.blank&&(!g&&b?g=b:!b&&g&&(b=g),b||g||(b=1,g=1),u=f(b,g,n.blankColor||"transparent"),y=null,V=null),n.left?M="float-left":n.right?M="float-right":n.center&&(M="mx-auto",v=!0),a("img",(0,i.b)(r,{attrs:{src:u,alt:o,width:b?(0,d.BB)(b):null,height:g?(0,d.BB)(g):null,srcset:y||null,sizes:V||null},class:(e={"img-thumbnail":n.thumbnail,"img-fluid":n.fluid||m,"w-100":m,rounded:""===z||!0===z},p(e,"rounded-".concat(z),(0,s.HD)(z)&&""!==z),p(e,M,M),p(e,"d-block",v),e)}))}})},74199:(a,t,e)=>{e.d(t,{B:()=>h,N:()=>s});var n=e(1915),i=e(69558),r=e(94689),o=e(12299),l=e(20451),c=e(18222),s=(0,l.y2)({append:(0,l.pi)(o.U5,!1),id:(0,l.pi)(o.N0),isText:(0,l.pi)(o.U5,!1),tag:(0,l.pi)(o.N0,"div")},r.gb),h=(0,n.l7)({name:r.gb,functional:!0,props:s,render:function(a,t){var e=t.props,n=t.data,r=t.children,o=e.append;return a(e.tag,(0,i.b)(n,{class:{"input-group-append":o,"input-group-prepend":!o},attrs:{id:e.id}}),e.isText?[a(c.e,r)]:r)}})},22418:(a,t,e)=>{e.d(t,{B:()=>p});var n=e(1915),i=e(69558),r=e(94689),o=e(67040),l=e(20451),c=e(74199);function s(a,t){var e=Object.keys(a);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(a);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(a,t).enumerable}))),e.push.apply(e,n)}return e}function h(a){for(var t=1;t{e.d(t,{P:()=>p});var n=e(1915),i=e(69558),r=e(94689),o=e(67040),l=e(20451),c=e(74199);function s(a,t){var e=Object.keys(a);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(a);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(a,t).enumerable}))),e.push.apply(e,n)}return e}function h(a){for(var t=1;t{e.d(t,{e:()=>s});var n=e(1915),i=e(69558),r=e(94689),o=e(12299),l=e(20451),c=(0,l.y2)({tag:(0,l.pi)(o.N0,"div")},r.HQ),s=(0,n.l7)({name:r.HQ,functional:!0,props:c,render:function(a,t){var e=t.props,n=t.data,r=t.children;return a(e.tag,(0,i.b)(n,{staticClass:"input-group-text"}),r)}})},4060:(a,t,e)=>{e.d(t,{w:()=>m});var n=e(1915),i=e(69558),r=e(94689),o=e(12299),l=e(90494),c=e(18735),s=e(72345),h=e(20451),u=e(22418),d=e(27754),p=e(18222);function v(a,t,e){return t in a?Object.defineProperty(a,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):a[t]=e,a}var f=(0,h.y2)({append:(0,h.pi)(o.N0),appendHtml:(0,h.pi)(o.N0),id:(0,h.pi)(o.N0),prepend:(0,h.pi)(o.N0),prependHtml:(0,h.pi)(o.N0),size:(0,h.pi)(o.N0),tag:(0,h.pi)(o.N0,"div")},r.aZ),m=(0,n.l7)({name:r.aZ,functional:!0,props:f,render:function(a,t){var e=t.props,n=t.data,r=t.slots,o=t.scopedSlots,h=e.prepend,f=e.prependHtml,m=e.append,z=e.appendHtml,b=e.size,g=o||{},M=r(),y={},V=a(),H=(0,s.Q)(l.kg,g,M);(H||h||f)&&(V=a(d.P,[H?(0,s.O)(l.kg,y,g,M):a(p.e,{domProps:(0,c.U)(f,h)})]));var A=a(),B=(0,s.Q)(l.G$,g,M);return(B||m||z)&&(A=a(u.B,[B?(0,s.O)(l.G$,y,g,M):a(p.e,{domProps:(0,c.U)(z,m)})])),a(e.tag,(0,i.b)(n,{staticClass:"input-group",class:v({},"input-group-".concat(b),b),attrs:{id:e.id||null,role:"group"}}),[V,(0,s.O)(l.Pq,y,g,M),A])}})},50725:(a,t,e)=>{e.d(t,{l:()=>H});var n=e(69558),i=e(94689),r=e(12299),o=e(30824),l=e(11572),c=e(79968),s=e(68265),h=e(33284),u=e(91051),d=e(67040),p=e(20451),v=e(46595);function f(a,t){var e=Object.keys(a);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(a);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(a,t).enumerable}))),e.push.apply(e,n)}return e}function m(a){for(var t=1;t{e.d(t,{h:()=>h});var n=e(1915),i=e(69558),r=e(94689),o=e(12299),l=e(20451);function c(a,t,e){return t in a?Object.defineProperty(a,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):a[t]=e,a}var s=(0,l.y2)({fluid:(0,l.pi)(o.gL,!1),tag:(0,l.pi)(o.N0,"div")},r.aU),h=(0,n.l7)({name:r.aU,functional:!0,props:s,render:function(a,t){var e=t.props,n=t.data,r=t.children,o=e.fluid;return a(e.tag,(0,i.b)(n,{class:c({container:!(o||""===o),"container-fluid":!0===o||""===o},"container-".concat(o),o&&!0!==o)}),r)}})},46310:(a,t,e)=>{e.d(t,{d:()=>s});var n=e(1915),i=e(69558),r=e(94689),o=e(12299),l=e(20451),c=(0,l.y2)({tag:(0,l.pi)(o.N0,"div")},r.Bd),s=(0,n.l7)({name:r.Bd,functional:!0,props:c,render:function(a,t){var e=t.props,n=t.data,r=t.children;return a(e.tag,(0,i.b)(n,{staticClass:"form-row"}),r)}})},48648:(a,t,e)=>{e.d(t,{A6:()=>c});var n=e(34147),i=e(26253),r=e(50725),o=e(46310),l=e(86087),c=(0,l.Hr)({components:{BContainer:n.h,BRow:i.T,BCol:r.l,BFormRow:o.d}})},26253:(a,t,e)=>{e.d(t,{T:()=>y});var n=e(69558),i=e(94689),r=e(12299),o=e(11572),l=e(79968),c=e(68265),s=e(91051),h=e(67040),u=e(20451),d=e(46595);function p(a,t){var e=Object.keys(a);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(a);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(a,t).enumerable}))),e.push.apply(e,n)}return e}function v(a){for(var t=1;t{e.d(t,{NQ:()=>L,we:()=>S});var n=e(1915),i=e(94689),r=e(63294),o=e(12299),l=e(11572),c=e(26410),s=e(28415),h=e(33284),u=e(67040),d=e(20451),p=e(30488),v=e(28492),f=e(98596),m=e(76677),z=e(18280);function b(a){return V(a)||y(a)||M(a)||g()}function g(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function M(a,t){if(a){if("string"===typeof a)return H(a,t);var e=Object.prototype.toString.call(a).slice(8,-1);return"Object"===e&&a.constructor&&(e=a.constructor.name),"Map"===e||"Set"===e?Array.from(a):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?H(a,t):void 0}}function y(a){if("undefined"!==typeof Symbol&&null!=a[Symbol.iterator]||null!=a["@@iterator"])return Array.from(a)}function V(a){if(Array.isArray(a))return H(a)}function H(a,t){(null==t||t>a.length)&&(t=a.length);for(var e=0,n=new Array(t);e{e.d(t,{f:()=>g});var n=e(1915),i=e(69558),r=e(94689),o=e(12299),l=e(11572),c=e(26410),s=e(67040),h=e(20451),u=e(30488),d=e(67347);function p(a,t){var e=Object.keys(a);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(a);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(a,t).enumerable}))),e.push.apply(e,n)}return e}function v(a){for(var t=1;t{e.d(t,{N:()=>u});var n=e(1915),i=e(69558),r=e(94689),o=e(12299),l=e(33284),c=e(20451);function s(a,t,e){return t in a?Object.defineProperty(a,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):a[t]=e,a}var h=(0,c.y2)({flush:(0,c.pi)(o.U5,!1),horizontal:(0,c.pi)(o.gL,!1),tag:(0,c.pi)(o.N0,"div")},r.DX),u=(0,n.l7)({name:r.DX,functional:!0,props:h,render:function(a,t){var e=t.props,n=t.data,r=t.children,o=""===e.horizontal||e.horizontal;o=!e.flush&&o;var c={staticClass:"list-group",class:s({"list-group-flush":e.flush,"list-group-horizontal":!0===o},"list-group-horizontal-".concat(o),(0,l.HD)(o))};return a(e.tag,(0,i.b)(n,c),r)}})},87272:(a,t,e)=>{e.d(t,{D:()=>h});var n=e(1915),i=e(69558),r=e(94689),o=e(12299),l=e(20451);function c(a,t,e){return t in a?Object.defineProperty(a,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):a[t]=e,a}var s=(0,l.y2)({right:(0,l.pi)(o.U5,!1),tag:(0,l.pi)(o.N0,"div"),verticalAlign:(0,l.pi)(o.N0,"top")},r.u7),h=(0,n.l7)({name:r.u7,functional:!0,props:s,render:function(a,t){var e=t.props,n=t.data,r=t.children,o=e.verticalAlign,l="top"===o?"start":"bottom"===o?"end":o;return a(e.tag,(0,i.b)(n,{staticClass:"media-aside",class:c({"media-aside-right":e.right},"align-self-".concat(l),l)}),r)}})},68361:(a,t,e)=>{e.d(t,{D:()=>s});var n=e(1915),i=e(69558),r=e(94689),o=e(12299),l=e(20451),c=(0,l.y2)({tag:(0,l.pi)(o.N0,"div")},r.Ub),s=(0,n.l7)({name:r.Ub,functional:!0,props:c,render:function(a,t){var e=t.props,n=t.data,r=t.children;return a(e.tag,(0,i.b)(n,{staticClass:"media-body"}),r)}})},72775:(a,t,e)=>{e.d(t,{P:()=>p});var n=e(1915),i=e(69558),r=e(94689),o=e(12299),l=e(90494),c=e(72345),s=e(20451),h=e(87272),u=e(68361),d=(0,s.y2)({noBody:(0,s.pi)(o.U5,!1),rightAlign:(0,s.pi)(o.U5,!1),tag:(0,s.pi)(o.N0,"div"),verticalAlign:(0,s.pi)(o.N0,"top")},r.vF),p=(0,n.l7)({name:r.vF,functional:!0,props:d,render:function(a,t){var e=t.props,n=t.data,r=t.slots,o=t.scopedSlots,s=t.children,d=e.noBody,p=e.rightAlign,v=e.verticalAlign,f=d?s:[];if(!d){var m={},z=r(),b=o||{};f.push(a(u.D,(0,c.O)(l.Pq,m,b,z)));var g=(0,c.O)(l.Q2,m,b,z);g&&f[p?"push":"unshift"](a(h.D,{props:{right:p,verticalAlign:v}},g))}return a(e.tag,(0,i.b)(n,{staticClass:"media"}),f)}})},54016:(a,t,e)=>{e.d(t,{k:()=>E});var n=e(31220),i=e(82653),r=e(94689),o=e(63294),l=e(93319),c=e(11572),s=e(79968),h=e(26410),u=e(28415),d=e(33284),p=e(67040),v=e(86087),f=e(77147),m=e(55789),z=e(91076);function b(a,t){if(!(a instanceof t))throw new TypeError("Cannot call a class as a function")}function g(a,t){for(var e=0;ea.length)&&(t=a.length);for(var e=0,n=new Array(t);e2&&void 0!==arguments[2]?arguments[2]:F;if(!(0,f.zl)(L)&&!(0,f.gs)(L)){var i=(0,m.H)(a,t,{propsData:V(V(V({},j((0,s.wJ)(r.zB))),{},{hideHeaderClose:!0,hideHeader:!(e.title||e.titleHtml)},(0,p.CE)(e,(0,p.XP)(k))),{},{lazy:!1,busy:!1,visible:!1,noStacking:!1,noEnforceFocus:!1})});return(0,p.XP)(k).forEach((function(a){(0,d.o8)(e[a])||(i.$slots[k[a]]=(0,c.zo)(e[a]))})),new Promise((function(a,t){var e=!1;i.$once(o.DJ,(function(){e||t(new Error("BootstrapVue MsgBox destroyed before resolve"))})),i.$on(o.yM,(function(t){if(!t.defaultPrevented){var i=n(t);t.defaultPrevented||(e=!0,a(i))}}));var r=document.createElement("div");document.body.appendChild(r),i.$mount(r)}))}},i=function(a,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;if(t&&!(0,f.gs)(L)&&!(0,f.zl)(L)&&(0,d.mf)(i))return e(a,V(V({},j(n)),{},{msgBoxContent:t}),i)},v=function(){function a(t){b(this,a),(0,p.f0)(this,{_vm:t,_root:(0,z.C)(t)}),(0,p.hc)(this,{_vm:(0,p.MB)(),_root:(0,p.MB)()})}return M(a,[{key:"show",value:function(a){if(a&&this._root){for(var t,e=arguments.length,n=new Array(e>1?e-1:0),i=1;i1?e-1:0),i=1;i1&&void 0!==arguments[1]?arguments[1]:{},e=V(V({},t),{},{okOnly:!0,okDisabled:!1,hideFooter:!1,msgBoxContent:a});return i(this._vm,a,e,(function(){return!0}))}},{key:"msgBoxConfirm",value:function(a){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},e=V(V({},t),{},{okOnly:!1,okDisabled:!1,cancelDisabled:!1,hideFooter:!1});return i(this._vm,a,e,(function(a){var t=a.trigger;return"ok"===t||"cancel"!==t&&null}))}}]),a}();a.mixin({beforeCreate:function(){this[S]=new v(this)}}),(0,p.nr)(a.prototype,L)||(0,p._x)(a.prototype,L,{get:function(){return this&&this[S]||(0,f.ZK)('"'.concat(L,'" must be accessed from a Vue instance "this" context.'),r.zB),this[S]}})},D=(0,v.Hr)({plugins:{plugin:T}}),E=(0,v.Hr)({components:{BModal:n.N},directives:{VBModal:i.T},plugins:{BVModalPlugin:D}})},31220:(a,t,e)=>{e.d(t,{N:()=>Ia,K:()=>Ca});var n=e(1915),i=e(94689),r=e(43935),o=e(63294),l=e(63663),c=e(12299),s=e(28112),h=e(90494),u=e(11572),d=e(26410),p=e(28415),v=e(18735),f=e(68265),m=e(33284),z=e(54602),b=e(67040),g=e(63078),M=e(20451),y=e(28492),V=e(73727),H="$_documentListeners",A=(0,n.l7)({created:function(){this[H]={}},beforeDestroy:function(){var a=this;(0,b.XP)(this[H]||{}).forEach((function(t){a[H][t].forEach((function(e){a.listenOffDocument(t,e)}))})),this[H]=null},methods:{registerDocumentListener:function(a,t){this[H]&&(this[H][a]=this[H][a]||[],(0,u.kI)(this[H][a],t)||this[H][a].push(t))},unregisterDocumentListener:function(a,t){this[H]&&this[H][a]&&(this[H][a]=this[H][a].filter((function(a){return a!==t})))},listenDocument:function(a,t,e){a?this.listenOnDocument(t,e):this.listenOffDocument(t,e)},listenOnDocument:function(a,t){r.Qg&&((0,p.XO)(document,a,t,o.IJ),this.registerDocumentListener(a,t))},listenOffDocument:function(a,t){r.Qg&&(0,p.QY)(document,a,t,o.IJ),this.unregisterDocumentListener(a,t)}}}),B=e(98596),O="$_windowListeners",w=(0,n.l7)({created:function(){this[O]={}},beforeDestroy:function(){var a=this;(0,b.XP)(this[O]||{}).forEach((function(t){a[O][t].forEach((function(e){a.listenOffWindow(t,e)}))})),this[O]=null},methods:{registerWindowListener:function(a,t){this[O]&&(this[O][a]=this[O][a]||[],(0,u.kI)(this[O][a],t)||this[O][a].push(t))},unregisterWindowListener:function(a,t){this[O]&&this[O][a]&&(this[O][a]=this[O][a].filter((function(a){return a!==t})))},listenWindow:function(a,t,e){a?this.listenOnWindow(t,e):this.listenOffWindow(t,e)},listenOnWindow:function(a,t){r.Qg&&((0,p.XO)(window,a,t,o.IJ),this.registerWindowListener(a,t))},listenOffWindow:function(a,t){r.Qg&&(0,p.QY)(window,a,t,o.IJ),this.unregisterWindowListener(a,t)}}}),C=e(18280),I=e(30051),L=e(15193),S=e(91451),P=e(17100),F=e(20144),k=e(55789),j=(0,n.l7)({abstract:!0,name:i.eO,props:{nodes:(0,M.pi)(c.Vh)},data:function(a){return{updatedNodes:a.nodes}},destroyed:function(){(0,d.ZF)(this.$el)},render:function(a){var t=this.updatedNodes,e=(0,m.mf)(t)?t({}):t;return e=(0,u.zo)(e).filter(f.y),e&&e.length>0&&!e[0].text?e[0]:a()}}),T={container:(0,M.pi)([s.mv,c.N0],"body"),disabled:(0,M.pi)(c.U5,!1),tag:(0,M.pi)(c.N0,"div")},D=(0,n.l7)({name:i.H3,mixins:[C.Z],props:T,watch:{disabled:{immediate:!0,handler:function(a){a?this.unmountTarget():this.$nextTick(this.mountTarget)}}},created:function(){this.$_defaultFn=null,this.$_target=null},beforeMount:function(){this.mountTarget()},updated:function(){this.updateTarget()},beforeDestroy:function(){this.unmountTarget(),this.$_defaultFn=null},methods:{getContainer:function(){if(r.Qg){var a=this.container;return(0,m.HD)(a)?(0,d.Ys)(a):a}return null},mountTarget:function(){if(!this.$_target){var a=this.getContainer();if(a){var t=document.createElement("div");a.appendChild(t),this.$_target=(0,k.H)(this,j,{el:t,propsData:{nodes:(0,u.zo)(this.normalizeSlot())}})}}},updateTarget:function(){if(r.Qg&&this.$_target){var a=this.$scopedSlots.default;this.disabled||(a&&this.$_defaultFn!==a?this.$_target.updatedNodes=a:a||(this.$_target.updatedNodes=this.$slots.default)),this.$_defaultFn=a}},unmountTarget:function(){this.$_target&&this.$_target.$destroy(),this.$_target=null}},render:function(a){if(this.disabled){var t=(0,u.zo)(this.normalizeSlot()).filter(f.y);if(t.length>0&&!t[0].text)return t[0]}return a()}}),E=(0,n.l7)({name:i.H3,mixins:[C.Z],props:T,render:function(a){if(this.disabled){var t=(0,u.zo)(this.normalizeSlot()).filter(f.y);if(t.length>0)return t[0]}return a(F["default"].Teleport,{to:this.container},this.normalizeSlot())}}),x=n.$B?E:D,N=e(37130);function $(a){return $="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(a){return typeof a}:function(a){return a&&"function"==typeof Symbol&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},$(a)}function R(a,t){var e=Object.keys(a);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(a);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(a,t).enumerable}))),e.push.apply(e,n)}return e}function _(a){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{};return G(this,e),n=t.call(this,a,i),(0,b.hc)(aa(n),{trigger:(0,b.MB)()}),n}return W(e,null,[{key:"Defaults",get:function(){return _(_({},K(ea(e),"Defaults",this)),{},{trigger:null})}}]),e}(N.n),ia=e(93954),ra=1040,oa=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",la=".sticky-top",ca=".navbar-toggler",sa=(0,n.l7)({data:function(){return{modals:[],baseZIndex:null,scrollbarWidth:null,isBodyOverflowing:!1}},computed:{modalCount:function(){return this.modals.length},modalsAreOpen:function(){return this.modalCount>0}},watch:{modalCount:function(a,t){r.Qg&&(this.getScrollbarWidth(),a>0&&0===t?(this.checkScrollbar(),this.setScrollbar(),(0,d.cn)(document.body,"modal-open")):0===a&&t>0&&(this.resetScrollbar(),(0,d.IV)(document.body,"modal-open")),(0,d.fi)(document.body,"data-modal-open-count",String(a)))},modals:function(a){var t=this;this.checkScrollbar(),(0,d.bz)((function(){t.updateModals(a||[])}))}},methods:{registerModal:function(a){a&&-1===this.modals.indexOf(a)&&this.modals.push(a)},unregisterModal:function(a){var t=this.modals.indexOf(a);t>-1&&(this.modals.splice(t,1),a._isBeingDestroyed||a._isDestroyed||this.resetModal(a))},getBaseZIndex:function(){if(r.Qg&&(0,m.Ft)(this.baseZIndex)){var a=document.createElement("div");(0,d.cn)(a,"modal-backdrop"),(0,d.cn)(a,"d-none"),(0,d.A_)(a,"display","none"),document.body.appendChild(a),this.baseZIndex=(0,ia.Z3)((0,d.yD)(a).zIndex,ra),document.body.removeChild(a)}return this.baseZIndex||ra},getScrollbarWidth:function(){if(r.Qg&&(0,m.Ft)(this.scrollbarWidth)){var a=document.createElement("div");(0,d.cn)(a,"modal-scrollbar-measure"),document.body.appendChild(a),this.scrollbarWidth=(0,d.Zt)(a).width-a.clientWidth,document.body.removeChild(a)}return this.scrollbarWidth||0},updateModals:function(a){var t=this,e=this.getBaseZIndex(),n=this.getScrollbarWidth();a.forEach((function(a,i){a.zIndex=e+i,a.scrollbarWidth=n,a.isTop=i===t.modals.length-1,a.isBodyOverflowing=t.isBodyOverflowing}))},resetModal:function(a){a&&(a.zIndex=this.getBaseZIndex(),a.isTop=!0,a.isBodyOverflowing=!1)},checkScrollbar:function(){var a=(0,d.Zt)(document.body),t=a.left,e=a.right;this.isBodyOverflowing=t+e0&&void 0!==arguments[0]&&arguments[0];this.$_observer&&this.$_observer.disconnect(),this.$_observer=null,a&&(this.$_observer=(0,g.t)(this.$refs.content,this.checkModalOverflow.bind(this),wa))},updateModel:function(a){a!==this[za]&&this.$emit(ba,a)},buildEvent:function(a){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new na(a,da(da({cancelable:!1,target:this.$refs.modal||this.$el||null,relatedTarget:null,trigger:null},t),{},{vueTarget:this,componentId:this.modalId}))},show:function(){if(!this.isVisible&&!this.isOpening)if(this.isClosing)this.$once(o.v6,this.show);else{this.isOpening=!0,this.$_returnFocus=this.$_returnFocus||this.getActiveElement();var a=this.buildEvent(o.l0,{cancelable:!0});if(this.emitEvent(a),a.defaultPrevented||this.isVisible)return this.isOpening=!1,void this.updateModel(!1);this.doShow()}},hide:function(){var a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";if(this.isVisible&&!this.isClosing){this.isClosing=!0;var t=this.buildEvent(o.yM,{cancelable:a!==ya,trigger:a||null});if(a===Ba?this.$emit(o.Et,t):a===Ha?this.$emit(o.J9,t):a===Aa&&this.$emit(o.Cc,t),this.emitEvent(t),t.defaultPrevented||!this.isVisible)return this.isClosing=!1,void this.updateModel(!0);this.setObserver(!1),this.isVisible=!1,this.updateModel(!1)}},toggle:function(a){a&&(this.$_returnFocus=a),this.isVisible?this.hide(Va):this.show()},getActiveElement:function(){var a=(0,d.vY)(r.Qg?[document.body]:[]);return a&&a.focus?a:null},doShow:function(){var a=this;ha.modalsAreOpen&&this.noStacking?this.listenOnRootOnce((0,p.J3)(i.zB,o.v6),this.doShow):(ha.registerModal(this),this.isHidden=!1,this.$nextTick((function(){a.isVisible=!0,a.isOpening=!1,a.updateModel(!0),a.$nextTick((function(){a.setObserver(!0)}))})))},onBeforeEnter:function(){this.isTransitioning=!0,this.setResizeEvent(!0)},onEnter:function(){var a=this;this.isBlock=!0,(0,d.bz)((function(){(0,d.bz)((function(){a.isShow=!0}))}))},onAfterEnter:function(){var a=this;this.checkModalOverflow(),this.isTransitioning=!1,(0,d.bz)((function(){a.emitEvent(a.buildEvent(o.AS)),a.setEnforceFocus(!0),a.$nextTick((function(){a.focusFirst()}))}))},onBeforeLeave:function(){this.isTransitioning=!0,this.setResizeEvent(!1),this.setEnforceFocus(!1)},onLeave:function(){this.isShow=!1},onAfterLeave:function(){var a=this;this.isBlock=!1,this.isTransitioning=!1,this.isModalOverflowing=!1,this.isHidden=!0,this.$nextTick((function(){a.isClosing=!1,ha.unregisterModal(a),a.returnFocusTo(),a.emitEvent(a.buildEvent(o.v6))}))},emitEvent:function(a){var t=a.type;this.emitOnRoot((0,p.J3)(i.zB,t),a,a.componentId),this.$emit(t,a)},onDialogMousedown:function(){var a=this,t=this.$refs.modal,e=function e(n){(0,p.QY)(t,"mouseup",e,o.IJ),n.target===t&&(a.ignoreBackdropClick=!0)};(0,p.XO)(t,"mouseup",e,o.IJ)},onClickOut:function(a){this.ignoreBackdropClick?this.ignoreBackdropClick=!1:this.isVisible&&!this.noCloseOnBackdrop&&(0,d.r3)(document.body,a.target)&&((0,d.r3)(this.$refs.content,a.target)||this.hide(ga))},onOk:function(){this.hide(Ba)},onCancel:function(){this.hide(Ha)},onClose:function(){this.hide(Aa)},onEsc:function(a){a.keyCode===l.RZ&&this.isVisible&&!this.noCloseOnEsc&&this.hide(Ma)},focusHandler:function(a){var t=this.$refs.content,e=a.target;if(!(this.noEnforceFocus||!this.isTop||!this.isVisible||!t||document===e||(0,d.r3)(t,e)||this.computeIgnoreEnforceFocusSelector&&(0,d.oq)(this.computeIgnoreEnforceFocusSelector,e,!0))){var n=(0,d.td)(this.$refs.content),i=this.$refs["bottom-trap"],r=this.$refs["top-trap"];if(i&&e===i){if((0,d.KS)(n[0]))return}else if(r&&e===r&&(0,d.KS)(n[n.length-1]))return;(0,d.KS)(t,{preventScroll:!0})}},setEnforceFocus:function(a){this.listenDocument(a,"focusin",this.focusHandler)},setResizeEvent:function(a){this.listenWindow(a,"resize",this.checkModalOverflow),this.listenWindow(a,"orientationchange",this.checkModalOverflow)},showHandler:function(a,t){a===this.modalId&&(this.$_returnFocus=t||this.getActiveElement(),this.show())},hideHandler:function(a){a===this.modalId&&this.hide("event")},toggleHandler:function(a,t){a===this.modalId&&this.toggle(t)},modalListener:function(a){this.noStacking&&a.vueTarget!==this&&this.hide()},focusFirst:function(){var a=this;r.Qg&&(0,d.bz)((function(){var t=a.$refs.modal,e=a.$refs.content,n=a.getActiveElement();if(t&&e&&(!n||!(0,d.r3)(e,n))){var i=a.$refs["ok-button"],r=a.$refs["cancel-button"],o=a.$refs["close-button"],l=a.autoFocusButton,c=l===Ba&&i?i.$el||i:l===Ha&&r?r.$el||r:l===Aa&&o?o.$el||o:e;(0,d.KS)(c),c===e&&a.$nextTick((function(){t.scrollTop=0}))}}))},returnFocusTo:function(){var a=this.returnFocus||this.$_returnFocus||null;this.$_returnFocus=null,this.$nextTick((function(){a=(0,m.HD)(a)?(0,d.Ys)(a):a,a&&(a=a.$el||a,(0,d.KS)(a))}))},checkModalOverflow:function(){if(this.isVisible){var a=this.$refs.modal;this.isModalOverflowing=a.scrollHeight>document.documentElement.clientHeight}},makeModal:function(a){var t=a();if(!this.hideHeader){var e=this.normalizeSlot(h.ki,this.slotScope);if(!e){var i=a();this.hideHeaderClose||(i=a(S.Z,{props:{content:this.headerCloseContent,disabled:this.isTransitioning,ariaLabel:this.headerCloseLabel,textVariant:this.headerCloseVariant||this.headerTextVariant},on:{click:this.onClose},ref:"close-button"},[this.normalizeSlot(h.sW)])),e=[a(this.titleTag,{staticClass:"modal-title",class:this.titleClasses,attrs:{id:this.modalTitleId},domProps:this.hasNormalizedSlot(h.Ro)?{}:(0,v.U)(this.titleHtml,this.title)},this.normalizeSlot(h.Ro,this.slotScope)),i]}t=a(this.headerTag,{staticClass:"modal-header",class:this.headerClasses,attrs:{id:this.modalHeaderId},ref:"header"},[e])}var r=a("div",{staticClass:"modal-body",class:this.bodyClasses,attrs:{id:this.modalBodyId},ref:"body"},this.normalizeSlot(h.Pq,this.slotScope)),o=a();if(!this.hideFooter){var l=this.normalizeSlot(h._J,this.slotScope);if(!l){var c=a();this.okOnly||(c=a(L.T,{props:{variant:this.cancelVariant,size:this.buttonSize,disabled:this.cancelDisabled||this.busy||this.isTransitioning},domProps:this.hasNormalizedSlot(h.Xc)?{}:(0,v.U)(this.cancelTitleHtml,this.cancelTitle),on:{click:this.onCancel},ref:"cancel-button"},this.normalizeSlot(h.Xc)));var s=a(L.T,{props:{variant:this.okVariant,size:this.buttonSize,disabled:this.okDisabled||this.busy||this.isTransitioning},domProps:this.hasNormalizedSlot(h.K$)?{}:(0,v.U)(this.okTitleHtml,this.okTitle),on:{click:this.onOk},ref:"ok-button"},this.normalizeSlot(h.K$));l=[c,s]}o=a(this.footerTag,{staticClass:"modal-footer",class:this.footerClasses,attrs:{id:this.modalFooterId},ref:"footer"},[l])}var u=a("div",{staticClass:"modal-content",class:this.contentClass,attrs:{id:this.modalContentId,tabindex:"-1"},ref:"content"},[t,r,o]),d=a(),p=a();this.isVisible&&!this.noEnforceFocus&&(d=a("span",{attrs:{tabindex:"0"},ref:"top-trap"}),p=a("span",{attrs:{tabindex:"0"},ref:"bottom-trap"}));var f=a("div",{staticClass:"modal-dialog",class:this.dialogClasses,on:{mousedown:this.onDialogMousedown},ref:"dialog"},[d,u,p]),m=a("div",{staticClass:"modal",class:this.modalClasses,style:this.modalStyles,attrs:this.computedModalAttrs,on:{keydown:this.onEsc,click:this.onClickOut},directives:[{name:"show",value:this.isVisible}],ref:"modal"},[f]);m=a("transition",{props:{enterClass:"",enterToClass:"",enterActiveClass:"",leaveClass:"",leaveActiveClass:"",leaveToClass:""},on:{beforeEnter:this.onBeforeEnter,enter:this.onEnter,afterEnter:this.onAfterEnter,beforeLeave:this.onBeforeLeave,leave:this.onLeave,afterLeave:this.onAfterLeave}},[m]);var z=a();return!this.hideBackdrop&&this.isVisible&&(z=a("div",{staticClass:"modal-backdrop",attrs:{id:this.modalBackdropId}},this.normalizeSlot(h.Rv))),z=a(P.N,{props:{noFade:this.noFade}},[z]),a("div",{style:this.modalOuterStyle,attrs:this.computedAttrs,key:"modal-outer-".concat(this[n.X$])},[m,z])}},render:function(a){return this.static?this.lazy&&this.isHidden?a():this.makeModal(a):this.isHidden?a():a(x,[this.makeModal(a)])}})},32450:(a,t,e)=>{e.d(t,{r:()=>f});var n=e(1915),i=e(69558),r=e(94689),o=e(12299),l=e(67040),c=e(20451),s=e(67347);function h(a,t){var e=Object.keys(a);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(a);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(a,t).enumerable}))),e.push.apply(e,n)}return e}function u(a){for(var t=1;t{e.d(t,{N:()=>h,O:()=>u});var n=e(1915),i=e(69558),r=e(94689),o=e(12299),l=e(20451);function c(a,t,e){return t in a?Object.defineProperty(a,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):a[t]=e,a}var s=function(a){return a="left"===a?"start":"right"===a?"end":a,"justify-content-".concat(a)},h=(0,l.y2)({align:(0,l.pi)(o.N0),cardHeader:(0,l.pi)(o.U5,!1),fill:(0,l.pi)(o.U5,!1),justified:(0,l.pi)(o.U5,!1),pills:(0,l.pi)(o.U5,!1),small:(0,l.pi)(o.U5,!1),tabs:(0,l.pi)(o.U5,!1),tag:(0,l.pi)(o.N0,"ul"),vertical:(0,l.pi)(o.U5,!1)},r.$P),u=(0,n.l7)({name:r.$P,functional:!0,props:h,render:function(a,t){var e,n=t.props,r=t.data,o=t.children,l=n.tabs,h=n.pills,u=n.vertical,d=n.align,p=n.cardHeader;return a(n.tag,(0,i.b)(r,{staticClass:"nav",class:(e={"nav-tabs":l,"nav-pills":h&&!l,"card-header-tabs":!u&&p&&l,"card-header-pills":!u&&p&&h&&!l,"flex-column":u,"nav-fill":!u&&n.fill,"nav-justified":!u&&n.justified},c(e,s(d),!u&&d),c(e,"small",n.small),e)}),o)}})},29852:(a,t,e)=>{e.d(t,{o:()=>d});var n=e(1915),i=e(69558),r=e(94689),o=e(67040),l=e(20451),c=e(29027);function s(a,t,e){return t in a?Object.defineProperty(a,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):a[t]=e,a}var h=function(a){return a="left"===a?"start":"right"===a?"end":a,"justify-content-".concat(a)},u=(0,l.y2)((0,o.ei)(c.N,["tag","fill","justified","align","small"]),r.LX),d=(0,n.l7)({name:r.LX,functional:!0,props:u,render:function(a,t){var e,n=t.props,r=t.data,o=t.children,l=n.align;return a(n.tag,(0,i.b)(r,{staticClass:"navbar-nav",class:(e={"nav-fill":n.fill,"nav-justified":n.justified},s(e,h(l),l),s(e,"small",n.small),e)}),o)}})},71603:(a,t,e)=>{e.d(t,{E:()=>p});var n=e(1915),i=e(94689),r=e(12299),o=e(79968),l=e(26410),c=e(33284),s=e(20451),h=e(18280);function u(a,t,e){return t in a?Object.defineProperty(a,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):a[t]=e,a}var d=(0,s.y2)({fixed:(0,s.pi)(r.N0),print:(0,s.pi)(r.U5,!1),sticky:(0,s.pi)(r.U5,!1),tag:(0,s.pi)(r.N0,"nav"),toggleable:(0,s.pi)(r.gL,!1),type:(0,s.pi)(r.N0,"light"),variant:(0,s.pi)(r.N0)},i.zD),p=(0,n.l7)({name:i.zD,mixins:[h.Z],provide:function(){var a=this;return{getBvNavbar:function(){return a}}},props:d,computed:{breakpointClass:function(){var a=this.toggleable,t=(0,o.le)()[0],e=null;return a&&(0,c.HD)(a)&&a!==t?e="navbar-expand-".concat(a):!1===a&&(e="navbar-expand"),e}},render:function(a){var t,e=this.tag,n=this.type,i=this.variant,r=this.fixed;return a(e,{staticClass:"navbar",class:[(t={"d-print":this.print,"sticky-top":this.sticky},u(t,"navbar-".concat(n),n),u(t,"bg-".concat(i),i),u(t,"fixed-".concat(r),r),t),this.breakpointClass],attrs:{role:(0,l.YR)(e,"nav")?null:"navigation"}},[this.normalizeSlot()])}})},66126:(a,t,e)=>{e.d(t,{X:()=>b});var n=e(1915),i=e(94689),r=e(63294),o=e(12299),l=e(90494),c=e(93954),s=e(18280),h=e(20451),u=e(1759),d=e(17100);function p(a,t){var e=Object.keys(a);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(a);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(a,t).enumerable}))),e.push.apply(e,n)}return e}function v(a){for(var t=1;t=0&&t<=1})),overlayTag:(0,h.pi)(o.N0,"div"),rounded:(0,h.pi)(o.gL,!1),show:(0,h.pi)(o.U5,!1),spinnerSmall:(0,h.pi)(o.U5,!1),spinnerType:(0,h.pi)(o.N0,"border"),spinnerVariant:(0,h.pi)(o.N0),variant:(0,h.pi)(o.N0,"light"),wrapTag:(0,h.pi)(o.N0,"div"),zIndex:(0,h.pi)(o.fE,10)},i.dk),b=(0,n.l7)({name:i.dk,mixins:[s.Z],props:z,computed:{computedRounded:function(){var a=this.rounded;return!0===a||""===a?"rounded":a?"rounded-".concat(a):""},computedVariant:function(){var a=this.variant;return a&&!this.bgColor?"bg-".concat(a):""},slotScope:function(){return{spinnerType:this.spinnerType||null,spinnerVariant:this.spinnerVariant||null,spinnerSmall:this.spinnerSmall}}},methods:{defaultOverlayFn:function(a){var t=a.spinnerType,e=a.spinnerVariant,n=a.spinnerSmall;return this.$createElement(u.X,{props:{type:t,variant:e,small:n}})}},render:function(a){var t=this,e=this.show,n=this.fixed,i=this.noFade,o=this.noWrap,c=this.slotScope,s=a();if(e){var h=a("div",{staticClass:"position-absolute",class:[this.computedVariant,this.computedRounded],style:v(v({},m),{},{opacity:this.opacity,backgroundColor:this.bgColor||null,backdropFilter:this.blur?"blur(".concat(this.blur,")"):null})}),u=a("div",{staticClass:"position-absolute",style:this.noCenter?v({},m):{top:"50%",left:"50%",transform:"translateX(-50%) translateY(-50%)"}},[this.normalizeSlot(l.ek,c)||this.defaultOverlayFn(c)]);s=a(this.overlayTag,{staticClass:"b-overlay",class:{"position-absolute":!o||o&&!n,"position-fixed":o&&n},style:v(v({},m),{},{zIndex:this.zIndex||10}),on:{click:function(a){return t.$emit(r.PZ,a)}},key:"overlay"},[h,u])}return s=a(d.N,{props:{noFade:i,appear:!0},on:{"after-enter":function(){return t.$emit(r.AS)},"after-leave":function(){return t.$emit(r.v6)}}},[s]),o?s:a(this.wrapTag,{staticClass:"b-overlay-wrap position-relative",attrs:{"aria-busy":e?"true":null}},o?[s]:[this.normalizeSlot(),s])}})},10962:(a,t,e)=>{e.d(t,{c:()=>H});var n=e(1915),i=e(94689),r=e(63294),o=e(12299),l=e(37130),c=e(26410),s=e(33284),h=e(21578),u=e(93954),d=e(67040),p=e(20451),v=e(29878);function f(a,t){var e=Object.keys(a);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(a);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(a,t).enumerable}))),e.push.apply(e,n)}return e}function m(a){for(var t=1;ta.numberOfPages)&&(this.currentPage=1),this.localNumberOfPages=a.numberOfPages}},created:function(){var a=this;this.localNumberOfPages=this.numberOfPages;var t=(0,u.Z3)(this[v.EQ],0);t>0?this.currentPage=t:this.$nextTick((function(){a.currentPage=0}))},methods:{onClick:function(a,t){var e=this;if(t!==this.currentPage){var n=a.target,i=new l.n(r.M$,{cancelable:!0,vueTarget:this,target:n});this.$emit(i.type,i,t),i.defaultPrevented||(this.currentPage=t,this.$emit(r.z2,this.currentPage),this.$nextTick((function(){(0,c.pn)(n)&&e.$el.contains(n)?(0,c.KS)(n):e.focusCurrent()})))}},makePage:function(a){return a},linkProps:function(){return{}}}})},63929:(a,t,e)=>{e.d(t,{c:()=>s});var n=e(1915),i=e(94689),r=e(40960),o=e(33284),l=e(91858),c=(0,n.l7)({name:i.tU,extends:l.y,computed:{templateType:function(){return"popover"}},methods:{renderTemplate:function(a){var t=this.title,e=this.content,n=(0,o.mf)(t)?t({}):t,i=(0,o.mf)(e)?e({}):e,r=this.html&&!(0,o.mf)(t)?{innerHTML:t}:{},l=this.html&&!(0,o.mf)(e)?{innerHTML:e}:{};return a("div",{staticClass:"popover b-popover",class:this.templateClasses,attrs:this.templateAttributes,on:this.templateListeners},[a("div",{staticClass:"arrow",ref:"arrow"}),(0,o.Jp)(n)||""===n?a():a("h3",{staticClass:"popover-header",domProps:r},[n]),(0,o.Jp)(i)||""===i?a():a("div",{staticClass:"popover-body",domProps:l},[i])])}}}),s=(0,n.l7)({name:i.wO,extends:r.j,computed:{templateType:function(){return"popover"}},methods:{getTemplate:function(){return c}}})},53862:(a,t,e)=>{e.d(t,{x:()=>m});var n=e(1915),i=e(94689),r=e(63294),o=e(12299),l=e(90494),c=e(20451),s=e(18365),h=e(63929),u=e(67040);function d(a,t){var e=Object.keys(a);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(a);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(a,t).enumerable}))),e.push.apply(e,n)}return e}function p(a){for(var t=1;t{e.d(t,{N:()=>p,Q:()=>v});var n=e(1915),i=e(94689),r=e(12299),o=e(18735),l=e(33284),c=e(21578),s=e(93954),h=e(20451),u=e(46595),d=e(18280),p=(0,h.y2)({animated:(0,h.pi)(r.U5,null),label:(0,h.pi)(r.N0),labelHtml:(0,h.pi)(r.N0),max:(0,h.pi)(r.fE,null),precision:(0,h.pi)(r.fE,null),showProgress:(0,h.pi)(r.U5,null),showValue:(0,h.pi)(r.U5,null),striped:(0,h.pi)(r.U5,null),value:(0,h.pi)(r.fE,0),variant:(0,h.pi)(r.N0)},i.M3),v=(0,n.l7)({name:i.M3,mixins:[d.Z],inject:{getBvProgress:{default:function(){return function(){return{}}}}},props:p,computed:{bvProgress:function(){return this.getBvProgress()},progressBarClasses:function(){var a=this.computedAnimated,t=this.computedVariant;return[t?"bg-".concat(t):"",this.computedStriped||a?"progress-bar-striped":"",a?"progress-bar-animated":""]},progressBarStyles:function(){return{width:this.computedValue/this.computedMax*100+"%"}},computedValue:function(){return(0,s.f_)(this.value,0)},computedMax:function(){var a=(0,s.f_)(this.max)||(0,s.f_)(this.bvProgress.max,0);return a>0?a:100},computedPrecision:function(){return(0,c.nP)((0,s.Z3)(this.precision,(0,s.Z3)(this.bvProgress.precision,0)),0)},computedProgress:function(){var a=this.computedPrecision,t=(0,c.Fq)(10,a);return(0,s.FH)(100*t*this.computedValue/this.computedMax/t,a)},computedVariant:function(){return this.variant||this.bvProgress.variant},computedStriped:function(){return(0,l.jn)(this.striped)?this.striped:this.bvProgress.striped||!1},computedAnimated:function(){return(0,l.jn)(this.animated)?this.animated:this.bvProgress.animated||!1},computedShowProgress:function(){return(0,l.jn)(this.showProgress)?this.showProgress:this.bvProgress.showProgress||!1},computedShowValue:function(){return(0,l.jn)(this.showValue)?this.showValue:this.bvProgress.showValue||!1}},render:function(a){var t,e=this.label,n=this.labelHtml,i=this.computedValue,r=this.computedPrecision,l={};return this.hasNormalizedSlot()?t=this.normalizeSlot():e||n?l=(0,o.U)(n,e):this.computedShowProgress?t=this.computedProgress:this.computedShowValue&&(t=(0,s.FH)(i,r)),a("div",{staticClass:"progress-bar",class:this.progressBarClasses,style:this.progressBarStyles,attrs:{role:"progressbar","aria-valuemin":"0","aria-valuemax":(0,u.BB)(this.computedMax),"aria-valuenow":(0,s.FH)(i,r)},domProps:l},t)}})},45752:(a,t,e)=>{e.d(t,{D:()=>f});var n=e(1915),i=e(94689),r=e(12299),o=e(67040),l=e(20451),c=e(18280),s=e(22981);function h(a,t){var e=Object.keys(a);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(a);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(a,t).enumerable}))),e.push.apply(e,n)}return e}function u(a){for(var t=1;t{e.d(t,{X:()=>d});var n=e(1915),i=e(69558),r=e(94689),o=e(12299),l=e(90494),c=e(72345),s=e(20451);function h(a,t,e){return t in a?Object.defineProperty(a,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):a[t]=e,a}var u=(0,s.y2)({label:(0,s.pi)(o.N0),role:(0,s.pi)(o.N0,"status"),small:(0,s.pi)(o.U5,!1),tag:(0,s.pi)(o.N0,"span"),type:(0,s.pi)(o.N0,"border"),variant:(0,s.pi)(o.N0)},r.$T),d=(0,n.l7)({name:r.$T,functional:!0,props:u,render:function(a,t){var e,n=t.props,r=t.data,o=t.slots,s=t.scopedSlots,u=o(),d=s||{},p=(0,c.O)(l.gN,{},d,u)||n.label;return p&&(p=a("span",{staticClass:"sr-only"},p)),a(n.tag,(0,i.b)(r,{attrs:{role:p?n.role||"status":null,"aria-hidden":p?null:"true"},class:(e={},h(e,"spinner-".concat(n.type),n.type),h(e,"spinner-".concat(n.type,"-sm"),n.small),h(e,"text-".concat(n.variant),n.variant),e)}),[p||a()])}})},62581:(a,t,e)=>{function n(a,t){var e=Object.keys(a);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(a);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(a,t).enumerable}))),e.push.apply(e,n)}return e}function i(a){for(var t=1;tl,LW:()=>o,ZQ:()=>s,Zf:()=>c,hl:()=>h});var o="_cellVariants",l="_rowVariant",c="_showDetails",s=[o,l,c].reduce((function(a,t){return i(i({},a),{},r({},t,!0))}),{}),h=["a","a *","button","button *","input:not(.disabled):not([disabled])","select:not(.disabled):not([disabled])","textarea:not(.disabled):not([disabled])",'[role="link"]','[role="link"] *','[role="button"]','[role="button"] *',"[tabindex]:not(.disabled):not([disabled])"].join(",")},23746:(a,t,e)=>{e.d(t,{W:()=>o});var n=e(26410),i=e(62581),r=["TD","TH","TR"],o=function(a){if(!a||!a.target)return!1;var t=a.target;if(t.disabled||-1!==r.indexOf(t.tagName))return!1;if((0,n.oq)(".dropdown-menu",t))return!0;var e="LABEL"===t.tagName?t:(0,n.oq)("label",t);if(e){var o=(0,n.UK)(e,"for"),l=o?(0,n.FO)(o):(0,n.Ys)("input, select, textarea",e);if(l&&!l.disabled)return!0}return(0,n.wB)(t,i.hl)}},49682:(a,t,e)=>{e.d(t,{F:()=>s,N:()=>c});var n=e(1915),i=e(12299),r=e(90494),o=e(18735),l=e(20451),c={caption:(0,l.pi)(i.N0),captionHtml:(0,l.pi)(i.N0)},s=(0,n.l7)({props:c,computed:{captionId:function(){return this.isStacked?this.safeId("_caption_"):null}},methods:{renderCaption:function(){var a=this.caption,t=this.captionHtml,e=this.$createElement,n=e(),i=this.hasNormalizedSlot(r.Hm);return(i||a||t)&&(n=e("caption",{attrs:{id:this.captionId},domProps:i?{}:(0,o.U)(t,a),key:"caption",ref:"caption"},this.normalizeSlot(r.Hm))),n}}})},32341:(a,t,e)=>{e.d(t,{N:()=>r,Y:()=>o});var n=e(1915),i=e(90494),r={},o=(0,n.l7)({methods:{renderColgroup:function(){var a=this.computedFields,t=this.$createElement,e=t();return this.hasNormalizedSlot(i.hK)&&(e=t("colgroup",{key:"colgroup"},[this.normalizeSlot(i.hK,{columns:a.length,fields:a})])),e}}})},23249:(a,t,e)=>{e.d(t,{Kw:()=>I,NQ:()=>C});var n=e(1915),i=e(63294),r=e(12299),o=e(93319),l=e(33284),c=e(3058),s=e(21578),h=e(54602),u=e(93954),d=e(67040),p=e(20451),v=e(10992),f=e(68265),m=e(46595),z=e(62581),b=function(a,t){var e=null;return(0,l.HD)(t)?e={key:a,label:t}:(0,l.mf)(t)?e={key:a,formatter:t}:(0,l.Kn)(t)?(e=(0,d.d9)(t),e.key=e.key||a):!1!==t&&(e={key:a}),e},g=function(a,t){var e=[];if((0,l.kJ)(a)&&a.filter(f.y).forEach((function(a){if((0,l.HD)(a))e.push({key:a,label:(0,m.fl)(a)});else if((0,l.Kn)(a)&&a.key&&(0,l.HD)(a.key))e.push((0,d.d9)(a));else if((0,l.Kn)(a)&&1===(0,d.XP)(a).length){var t=(0,d.XP)(a)[0],n=b(t,a[t]);n&&e.push(n)}})),0===e.length&&(0,l.kJ)(t)&&t.length>0){var n=t[0];(0,d.XP)(n).forEach((function(a){z.ZQ[a]||e.push({key:a,label:(0,m.fl)(a)})}))}var i={};return e.filter((function(a){return!i[a.key]&&(i[a.key]=!0,a.label=(0,l.HD)(a.label)?a.label:(0,m.fl)(a.key),!0)}))};function M(a,t){var e=Object.keys(a);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(a);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(a,t).enumerable}))),e.push.apply(e,n)}return e}function y(a){for(var t=1;t{e.d(t,{E:()=>c,N:()=>l});var n=e(1915),i=e(12299),r=e(20451);function o(a,t,e){return t in a?Object.defineProperty(a,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):a[t]=e,a}var l={stacked:(0,r.pi)(i.gL,!1)},c=(0,n.l7)({props:l,computed:{isStacked:function(){var a=this.stacked;return""===a||a},isStackedAlways:function(){return!0===this.isStacked},stackedTableClasses:function(){var a=this.isStackedAlways;return o({"b-table-stacked":a},"b-table-stacked-".concat(this.stacked),!a&&this.isStacked)}}})},57176:(a,t,e)=>{e.d(t,{N:()=>v,Q:()=>f});var n=e(1915),i=e(12299),r=e(68265),o=e(33284),l=e(20451),c=e(10992),s=e(46595),h=e(28492);function u(a,t){var e=Object.keys(a);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(a);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(a,t).enumerable}))),e.push.apply(e,n)}return e}function d(a){for(var t=1;t0&&!o,[r,{"table-striped":this.striped,"table-hover":t,"table-dark":this.dark,"table-bordered":this.bordered,"table-borderless":this.borderless,"table-sm":this.small,border:this.outlined,"b-table-fixed":this.fixed,"b-table-caption-top":this.captionTop,"b-table-no-border-collapse":this.noBorderCollapse},e?"".concat(this.dark?"bg":"table","-").concat(e):"",i,n]},tableAttrs:function(){var a=(0,c.n)(this),t=a.computedItems,e=a.filteredItems,n=a.computedFields,i=a.selectableTableAttrs,r=a.computedBusy,o=this.isTableSimple?{}:{"aria-busy":(0,s.BB)(r),"aria-colcount":(0,s.BB)(n.length),"aria-describedby":this.bvAttrs["aria-describedby"]||this.$refs.caption?this.captionId:null},l=t&&e&&e.length>t.length?(0,s.BB)(e.length):null;return d(d(d({"aria-rowcount":l},this.bvAttrs),{},{id:this.safeId(),role:this.bvAttrs.role||"table"},o),i)}},render:function(a){var t=(0,c.n)(this),e=t.wrapperClasses,n=t.renderCaption,i=t.renderColgroup,o=t.renderThead,l=t.renderTbody,s=t.renderTfoot,h=[];this.isTableSimple?h.push(this.normalizeSlot()):(h.push(n?n():null),h.push(i?i():null),h.push(o?o():null),h.push(l?l():null),h.push(s?s():null));var u=a("table",{staticClass:"table b-table",class:this.tableClasses,attrs:this.tableAttrs,key:"b-table"},h.filter(r.y));return e.length>0?a("div",{class:e,style:this.wrapperStyles,key:"wrap"},[u]):u}})},55739:(a,t,e)=>{e.d(t,{N:()=>N,M:()=>$});var n=e(1915),i=e(63294),r=e(63663),o=e(12299),l=e(11572),c=e(26410),s=e(10992),h=e(28415),u=e(67040),d=e(20451),p=e(80560),v=e(23746),f=e(9596),m=e(90494),z=e(93319),b=e(37668),g=e(33284),M=e(46595),y=e(92095),V=e(66456),H=e(69919),A=e(62581);function B(a,t){var e=Object.keys(a);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(a);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(a,t).enumerable}))),e.push.apply(e,n)}return e}function O(a){for(var t=1;ta.length)&&(t=a.length);for(var e=0,n=new Array(t);e0&&(S=String((h-1)*u+t+1));var P=(0,M.BB)((0,b.U)(a,c))||null,F=P||(0,M.BB)(t),k=P?this.safeId("_row_".concat(P)):null,j=(0,s.n)(this).selectableRowClasses?this.selectableRowClasses(t):{},T=(0,s.n)(this).selectableRowAttrs?this.selectableRowAttrs(t):{},D=(0,g.mf)(d)?d(a,"row"):d,E=(0,g.mf)(p)?p(a,"row"):p;if(C.push(f(y.G,w({class:[D,j,H?"b-table-has-details":""],props:{variant:a[A.EE]||null},attrs:O(O({id:k},E),{},{tabindex:B?"0":null,"data-pk":P||null,"aria-details":I,"aria-owns":I,"aria-rowindex":S},T),on:{mouseenter:this.rowHovered,mouseleave:this.rowUnhovered},key:"__b-table-row-".concat(F,"__"),ref:"item-rows"},n.TF,!0),L)),H){var x={item:a,index:t,fields:o,toggleDetails:this.toggleDetailsFactory(z,a)};(0,s.n)(this).supportsSelectableRows&&(x.rowSelected=this.isRowSelected(t),x.selectRow=function(){return e.selectRow(t)},x.unselectRow=function(){return e.unselectRow(t)});var N=f(V.S,{props:{colspan:o.length},class:this.detailsTdClass},[this.normalizeSlot(m.xI,x)]);l&&C.push(f("tr",{staticClass:"d-none",attrs:{"aria-hidden":"true",role:"presentation"},key:"__b-table-details-stripe__".concat(F)}));var $=(0,g.mf)(this.tbodyTrClass)?this.tbodyTrClass(a,m.xI):this.tbodyTrClass,R=(0,g.mf)(this.tbodyTrAttr)?this.tbodyTrAttr(a,m.xI):this.tbodyTrAttr;C.push(f(y.G,{staticClass:"b-table-details",class:[$],props:{variant:a[A.EE]||null},attrs:O(O({},R),{},{id:I,tabindex:"-1"}),key:"__b-table-details__".concat(F)},[N]))}else z&&(C.push(f()),l&&C.push(f()));return C}}});function T(a,t){var e=Object.keys(a);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(a);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(a,t).enumerable}))),e.push.apply(e,n)}return e}function D(a){for(var t=1;t0&&e&&e.length>0?(0,l.Dp)(t.children).filter((function(a){return(0,l.kI)(e,a)})):[]},getTbodyTrIndex:function(a){if(!(0,c.kK)(a))return-1;var t="TR"===a.tagName?a:(0,c.oq)("tr",a,!0);return t?this.getTbodyTrs().indexOf(t):-1},emitTbodyRowEvent:function(a,t){if(a&&this.hasListener(a)&&t&&t.target){var e=this.getTbodyTrIndex(t.target);if(e>-1){var n=this.computedItems[e];this.$emit(a,n,e,t)}}},tbodyRowEventStopped:function(a){return this.stopIfBusy&&this.stopIfBusy(a)},onTbodyRowKeydown:function(a){var t=a.target,e=a.keyCode;if(!this.tbodyRowEventStopped(a)&&"TR"===t.tagName&&(0,c.H9)(t)&&0===t.tabIndex)if((0,l.kI)([r.K2,r.m5],e))(0,h.p7)(a),this.onTBodyRowClicked(a);else if((0,l.kI)([r.XS,r.RV,r.QI,r.bt],e)){var n=this.getTbodyTrIndex(t);if(n>-1){(0,h.p7)(a);var i=this.getTbodyTrs(),o=a.shiftKey;e===r.QI||o&&e===r.XS?(0,c.KS)(i[0]):e===r.bt||o&&e===r.RV?(0,c.KS)(i[i.length-1]):e===r.XS&&n>0?(0,c.KS)(i[n-1]):e===r.RV&&n{e.d(t,{L:()=>s,N:()=>c});var n=e(1915),i=e(12299),r=e(90494),o=e(20451),l=e(10838),c={footClone:(0,o.pi)(i.U5,!1),footRowVariant:(0,o.pi)(i.N0),footVariant:(0,o.pi)(i.N0),tfootClass:(0,o.pi)(i.wA),tfootTrClass:(0,o.pi)(i.wA)},s=(0,n.l7)({props:c,methods:{renderTFootCustom:function(){var a=this.$createElement;return this.hasNormalizedSlot(r.ak)?a(l.A,{class:this.tfootClass||null,props:{footVariant:this.footVariant||this.headVariant||null},key:"bv-tfoot-custom"},this.normalizeSlot(r.ak,{items:this.computedItems.slice(),fields:this.computedFields.slice(),columns:this.computedFields.length})):a()},renderTfoot:function(){return this.footClone?this.renderThead(!0):this.renderTFootCustom()}}})},64120:(a,t,e)=>{e.d(t,{G:()=>k,N:()=>F});var n=e(1915),i=e(63294),r=e(63663),o=e(12299),l=e(90494),c=e(28415),s=e(18735),h=e(68265),u=e(33284),d=e(84941),p=e(20451),v=e(10992),f=e(46595),m=e(13944),z=e(10838),b=e(92095),g=e(69919),M=e(23746),y=e(9596);function V(a){return O(a)||B(a)||A(a)||H()}function H(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function A(a,t){if(a){if("string"===typeof a)return w(a,t);var e=Object.prototype.toString.call(a).slice(8,-1);return"Object"===e&&a.constructor&&(e=a.constructor.name),"Map"===e||"Set"===e?Array.from(a):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?w(a,t):void 0}}function B(a){if("undefined"!==typeof Symbol&&null!=a[Symbol.iterator]||null!=a["@@iterator"])return Array.from(a)}function O(a){if(Array.isArray(a))return w(a)}function w(a,t){(null==t||t>a.length)&&(t=a.length);for(var e=0,n=new Array(t);e0&&void 0!==arguments[0]&&arguments[0],e=(0,v.n)(this),n=e.computedFields,o=e.isSortable,c=e.isSelectable,p=e.headVariant,M=e.footVariant,y=e.headRowVariant,H=e.footRowVariant,A=this.$createElement;if(this.isStackedAlways||0===n.length)return A();var B=o||this.hasListener(i._Z),O=c?this.selectAllRows:d.Z,w=c?this.clearSelected:d.Z,C=function(e,n){var i=e.label,l=e.labelHtml,c=e.variant,u=e.stickyColumn,d=e.key,p=null;e.label.trim()||e.headerTitle||(p=(0,f.fl)(e.key));var v={};B&&(v.click=function(n){a.headClicked(n,e,t)},v.keydown=function(n){var i=n.keyCode;i!==r.K2&&i!==r.m5||a.headClicked(n,e,t)});var m=o?a.sortTheadThAttrs(d,e,t):{},z=o?a.sortTheadThClasses(d,e,t):null,b=o?a.sortTheadThLabel(d,e,t):null,M={class:[{"position-relative":b},a.fieldClasses(e),z],props:{variant:c,stickyColumn:u},style:e.thStyle||{},attrs:I(I({tabindex:B&&e.sortable?"0":null,abbr:e.headerAbbr||null,title:e.headerTitle||null,"aria-colindex":n+1,"aria-label":p},a.getThValues(null,d,e.thAttr,t?"foot":"head",{})),m),on:v,key:d},y=[S(d),S(d.toLowerCase()),S()];t&&(y=[P(d),P(d.toLowerCase()),P()].concat(V(y)));var H={label:i,column:d,field:e,isFoot:t,selectAllRows:O,clearSelected:w},C=a.normalizeSlot(y,H)||A("div",{domProps:(0,s.U)(l,i)}),L=b?A("span",{staticClass:"sr-only"}," (".concat(b,")")):null;return A(g.e,M,[C,L].filter(h.y))},L=n.map(C).filter(h.y),F=[];if(t)F.push(A(b.G,{class:this.tfootTrClass,props:{variant:(0,u.Jp)(H)?y:H}},L));else{var k={columns:n.length,fields:n,selectAllRows:O,clearSelected:w};F.push(this.normalizeSlot(l.RK,k)||A()),F.push(A(b.G,{class:this.theadTrClass,props:{variant:y}},L))}return A(t?z.A:m.E,{class:(t?this.tfootClass:this.theadClass)||null,props:t?{footVariant:M||p||null}:{headVariant:p||null},key:t?"bv-tfoot":"bv-thead"},F)}}})},9596:(a,t,e)=>{e.d(t,{d:()=>i});var n=e(26410),i=function(){var a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document,t=(0,n.hu)();return!!(t&&""!==t.toString().trim()&&t.containsNode&&(0,n.kK)(a))&&t.containsNode(a,!0)}},16521:(a,t,e)=>{e.d(t,{h:()=>Ra});var n=e(1915),i=e(94689),r=e(67040),o=e(20451),l=e(28492),c=e(45253),s=e(73727),h=e(18280),u=e(90494),d=e(33284),p=e(92095),v={},f=(0,n.l7)({props:v,methods:{renderBottomRow:function(){var a=this.computedFields,t=this.stacked,e=this.tbodyTrClass,n=this.tbodyTrAttr,i=this.$createElement;return this.hasNormalizedSlot(u.x)&&!0!==t&&""!==t?i(p.G,{staticClass:"b-table-bottom-row",class:[(0,d.mf)(e)?e(null,"row-bottom"):e],attrs:(0,d.mf)(n)?n(null,"row-bottom"):n,key:"b-bottom-row"},this.normalizeSlot(u.x,{columns:a.length,fields:a})):i()}}}),m=e(63294),z=e(12299),b=e(28415),g=e(66456);function M(a,t,e){return t in a?Object.defineProperty(a,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):a[t]=e,a}var y="busy",V=m.j7+y,H=M({},y,(0,o.pi)(z.U5,!1)),A=(0,n.l7)({props:H,data:function(){return{localBusy:!1}},computed:{computedBusy:function(){return this[y]||this.localBusy}},watch:{localBusy:function(a,t){a!==t&&this.$emit(V,a)}},methods:{stopIfBusy:function(a){return!!this.computedBusy&&((0,b.p7)(a),!0)},renderBusy:function(){var a=this.tbodyTrClass,t=this.tbodyTrAttr,e=this.$createElement;return this.computedBusy&&this.hasNormalizedSlot(u.W8)?e(p.G,{staticClass:"b-table-busy-slot",class:[(0,d.mf)(a)?a(null,u.W8):a],attrs:(0,d.mf)(t)?t(null,u.W8):t,key:"table-busy-slot"},[e(g.S,{props:{colspan:this.computedFields.length||null}},[this.normalizeSlot(u.W8)])]):null}}}),B=e(49682),O=e(32341),w=e(18735),C=e(10992),I={emptyFilteredHtml:(0,o.pi)(z.N0),emptyFilteredText:(0,o.pi)(z.N0,"There are no records matching your request"),emptyHtml:(0,o.pi)(z.N0),emptyText:(0,o.pi)(z.N0,"There are no records to show"),showEmpty:(0,o.pi)(z.U5,!1)},L=(0,n.l7)({props:I,methods:{renderEmpty:function(){var a=(0,C.n)(this),t=a.computedItems,e=a.computedBusy,n=this.$createElement,i=n();if(this.showEmpty&&(!t||0===t.length)&&(!e||!this.hasNormalizedSlot(u.W8))){var r=this.computedFields,o=this.isFiltered,l=this.emptyText,c=this.emptyHtml,s=this.emptyFilteredText,h=this.emptyFilteredHtml,v=this.tbodyTrClass,f=this.tbodyTrAttr;i=this.normalizeSlot(o?u.kx:u.ZJ,{emptyFilteredHtml:h,emptyFilteredText:s,emptyHtml:c,emptyText:l,fields:r,items:t}),i||(i=n("div",{class:["text-center","my-2"],domProps:o?(0,w.U)(h,s):(0,w.U)(c,l)})),i=n(g.S,{props:{colspan:r.length||null}},[n("div",{attrs:{role:"alert","aria-live":"polite"}},[i])]),i=n(p.G,{staticClass:"b-table-empty-row",class:[(0,d.mf)(v)?v(null,"row-empty"):v],attrs:(0,d.mf)(f)?f(null,"row-empty"):f,key:o?"b-empty-filtered-row":"b-empty-row"},[i])}return i}}}),S=e(30824),P=e(11572),F=e(30158),k=e(68265),j=e(3058),T=e(93954),D=e(46595),E=e(77147),x=function a(t){return(0,d.Jp)(t)?"":(0,d.Kn)(t)&&!(0,d.J_)(t)?(0,r.XP)(t).sort().map((function(e){return a(t[e])})).filter((function(a){return!!a})).join(" "):(0,D.BB)(t)},N=e(62581),$=function(a,t,e){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=(0,r.XP)(n).reduce((function(t,e){var i=n[e],r=i.filterByFormatted,o=(0,d.mf)(r)?r:r?i.formatter:null;return(0,d.mf)(o)&&(t[e]=o(a[e],e,a)),t}),(0,r.d9)(a)),o=(0,r.XP)(i).filter((function(a){return!N.ZQ[a]&&!((0,d.kJ)(t)&&t.length>0&&(0,P.kI)(t,a))&&!((0,d.kJ)(e)&&e.length>0&&!(0,P.kI)(e,a))}));return(0,r.ei)(i,o)},R=function(a,t,e,n){return(0,d.Kn)(a)?x($(a,t,e,n)):""};function _(a){return W(a)||q(a)||G(a)||U()}function U(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function G(a,t){if(a){if("string"===typeof a)return K(a,t);var e=Object.prototype.toString.call(a).slice(8,-1);return"Object"===e&&a.constructor&&(e=a.constructor.name),"Map"===e||"Set"===e?Array.from(a):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?K(a,t):void 0}}function q(a){if("undefined"!==typeof Symbol&&null!=a[Symbol.iterator]||null!=a["@@iterator"])return Array.from(a)}function W(a){if(Array.isArray(a))return K(a)}function K(a,t){(null==t||t>a.length)&&(t=a.length);for(var e=0,n=new Array(t);e0&&(0,E.ZK)(J,i.QM),a},localFiltering:function(){return!this.hasProvider||!!this.noProviderFiltering},filteredCheck:function(){var a=this.filteredItems,t=this.localItems,e=this.localFilter;return{filteredItems:a,localItems:t,localFilter:e}},localFilterFn:function(){var a=this.filterFunction;return(0,o.lo)(a)?a:null},filteredItems:function(){var a=this.localItems,t=this.localFilter,e=this.localFiltering?this.filterFnFactory(this.localFilterFn,t)||this.defaultFilterFnFactory(t):null;return e&&a.length>0?a.filter(e):a}},watch:{computedFilterDebounce:function(a){!a&&this.$_filterTimer&&(this.clearFilterTimer(),this.localFilter=this.filterSanitize(this.filter))},filter:{deep:!0,handler:function(a){var t=this,e=this.computedFilterDebounce;this.clearFilterTimer(),e&&e>0?this.$_filterTimer=setTimeout((function(){t.localFilter=t.filterSanitize(a)}),e):this.localFilter=this.filterSanitize(a)}},filteredCheck:function(a){var t=a.filteredItems,e=a.localFilter,n=!1;e?(0,j.W)(e,[])||(0,j.W)(e,{})?n=!1:e&&(n=!0):n=!1,n&&this.$emit(m.Uf,t,t.length),this.isFiltered=n},isFiltered:function(a,t){if(!1===a&&!0===t){var e=this.localItems;this.$emit(m.Uf,e,e.length)}}},created:function(){var a=this;this.$_filterTimer=null,this.$nextTick((function(){a.isFiltered=Boolean(a.localFilter)}))},beforeDestroy:function(){this.clearFilterTimer()},methods:{clearFilterTimer:function(){clearTimeout(this.$_filterTimer),this.$_filterTimer=null},filterSanitize:function(a){return!this.localFiltering||this.localFilterFn||(0,d.HD)(a)||(0,d.Kj)(a)?(0,F.X)(a):""},filterFnFactory:function(a,t){if(!a||!(0,d.mf)(a)||!t||(0,j.W)(t,[])||(0,j.W)(t,{}))return null;var e=function(e){return a(e,t)};return e},defaultFilterFnFactory:function(a){var t=this;if(!a||!(0,d.HD)(a)&&!(0,d.Kj)(a))return null;var e=a;if((0,d.HD)(e)){var n=(0,D.hr)(a).replace(S.Gt,"\\s+");e=new RegExp(".*".concat(n,".*"),"i")}var i=function(a){return e.lastIndex=0,e.test(R(a,t.computedFilterIgnored,t.computedFilterIncluded,t.computedFieldsObj))};return i}}}),Y=e(23249),Q=e(21578),aa={currentPage:(0,o.pi)(z.fE,1),perPage:(0,o.pi)(z.fE,0)},ta=(0,n.l7)({props:aa,computed:{localPaging:function(){return!this.hasProvider||!!this.noProviderPaging},paginatedItems:function(){var a=(0,C.n)(this),t=a.sortedItems,e=a.filteredItems,n=a.localItems,i=t||e||n||[],r=(0,Q.nP)((0,T.Z3)(this.currentPage,1),1),o=(0,Q.nP)((0,T.Z3)(this.perPage,0),0);return this.localPaging&&o&&(i=i.slice((r-1)*o,r*o)),i}}}),ea=e(98596),na=(0,b.J3)(i.QM,m.H9),ia=(0,b.gA)(i.QM,m.b5),ra={apiUrl:(0,o.pi)(z.N0),items:(0,o.pi)(z.Vh,[]),noProviderFiltering:(0,o.pi)(z.U5,!1),noProviderPaging:(0,o.pi)(z.U5,!1),noProviderSorting:(0,o.pi)(z.U5,!1)},oa=(0,n.l7)({mixins:[ea.E],props:ra,computed:{hasProvider:function(){return(0,d.mf)(this.items)},providerTriggerContext:function(){var a={apiUrl:this.apiUrl,filter:null,sortBy:null,sortDesc:null,perPage:null,currentPage:null};return this.noProviderFiltering||(a.filter=this.localFilter),this.noProviderSorting||(a.sortBy=this.localSortBy,a.sortDesc=this.localSortDesc),this.noProviderPaging||(a.perPage=this.perPage,a.currentPage=this.currentPage),(0,r.d9)(a)}},watch:{items:function(a){(this.hasProvider||(0,d.mf)(a))&&this.$nextTick(this._providerUpdate)},providerTriggerContext:function(a,t){(0,j.W)(a,t)||this.$nextTick(this._providerUpdate)}},mounted:function(){var a=this;!this.hasProvider||this.localItems&&0!==this.localItems.length||this._providerUpdate(),this.listenOnRoot(ia,(function(t){t!==a.id&&t!==a||a.refresh()}))},methods:{refresh:function(){var a=(0,C.n)(this),t=a.items,e=a.refresh,n=a.computedBusy;this.$off(m.H9,e),n?this.localBusy&&this.hasProvider&&this.$on(m.H9,e):(this.clearSelected(),this.hasProvider?this.$nextTick(this._providerUpdate):this.localItems=(0,d.kJ)(t)?t.slice():[])},_providerSetLocal:function(a){this.localItems=(0,d.kJ)(a)?a.slice():[],this.localBusy=!1,this.$emit(m.H9),this.id&&this.emitOnRoot(na,this.id)},_providerUpdate:function(){var a=this;this.hasProvider&&((0,C.n)(this).computedBusy?this.$nextTick(this.refresh):(this.localBusy=!0,this.$nextTick((function(){try{var t=a.items(a.context,a._providerSetLocal);(0,d.tI)(t)?t.then((function(t){a._providerSetLocal(t)})):(0,d.kJ)(t)?a._providerSetLocal(t):2!==a.items.length&&((0,E.ZK)("Provider function didn't request callback and did not return a promise or data.",i.QM),a.localBusy=!1)}catch(e){(0,E.ZK)("Provider function error [".concat(e.name,"] ").concat(e.message,"."),i.QM),a.localBusy=!1,a.$off(m.H9,a.refresh)}}))))}}});function la(a,t,e){return t in a?Object.defineProperty(a,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):a[t]=e,a}var ca,sa,ha=["range","multi","single"],ua="grid",da={noSelectOnClick:(0,o.pi)(z.U5,!1),selectMode:(0,o.pi)(z.N0,"multi",(function(a){return(0,P.kI)(ha,a)})),selectable:(0,o.pi)(z.U5,!1),selectedVariant:(0,o.pi)(z.N0,"active")},pa=(0,n.l7)({props:da,data:function(){return{selectedRows:[],selectedLastRow:-1}},computed:{isSelectable:function(){return this.selectable&&this.selectMode},hasSelectableRowClick:function(){return this.isSelectable&&!this.noSelectOnClick},supportsSelectableRows:function(){return!0},selectableHasSelection:function(){var a=this.selectedRows;return this.isSelectable&&a&&a.length>0&&a.some(k.y)},selectableIsMultiSelect:function(){return this.isSelectable&&(0,P.kI)(["range","multi"],this.selectMode)},selectableTableClasses:function(){var a,t=this.isSelectable;return a={"b-table-selectable":t},la(a,"b-table-select-".concat(this.selectMode),t),la(a,"b-table-selecting",this.selectableHasSelection),la(a,"b-table-selectable-no-click",t&&!this.hasSelectableRowClick),a},selectableTableAttrs:function(){if(!this.isSelectable)return{};var a=this.bvAttrs.role||ua;return{role:a,"aria-multiselectable":a===ua?(0,D.BB)(this.selectableIsMultiSelect):null}}},watch:{computedItems:function(a,t){var e=!1;if(this.isSelectable&&this.selectedRows.length>0){e=(0,d.kJ)(a)&&(0,d.kJ)(t)&&a.length===t.length;for(var n=0;e&&n=0&&a0&&(this.selectedLastClicked=-1,this.selectedRows=this.selectableIsMultiSelect?(0,P.Ri)(a,!0):[!0])},isRowSelected:function(a){return!(!(0,d.hj)(a)||!this.selectedRows[a])},clearSelected:function(){this.selectedLastClicked=-1,this.selectedRows=[]},selectableRowClasses:function(a){if(this.isSelectable&&this.isRowSelected(a)){var t=this.selectedVariant;return la({"b-table-row-selected":!0},"".concat(this.dark?"bg":"table","-").concat(t),t)}return{}},selectableRowAttrs:function(a){return{"aria-selected":this.isSelectable?this.isRowSelected(a)?"true":"false":null}},setSelectionHandlers:function(a){var t=a&&!this.noSelectOnClick?"$on":"$off";this[t](m.TY,this.selectionHandler),this[t](m.Uf,this.clearSelected),this[t](m._H,this.clearSelected)},selectionHandler:function(a,t,e){if(this.isSelectable&&!this.noSelectOnClick){var n=this.selectMode,i=this.selectedLastRow,r=this.selectedRows.slice(),o=!r[t];if("single"===n)r=[];else if("range"===n)if(i>-1&&e.shiftKey){for(var l=(0,Q.bS)(i,t);l<=(0,Q.nP)(i,t);l++)r[l]=!0;o=!0}else e.ctrlKey||e.metaKey||(r=[],o=!0),o&&(this.selectedLastRow=t);r[t]=o,this.selectedRows=r}else this.clearSelected()}}}),va=e(55912),fa=e(37668),ma=function(a){return(0,d.Jp)(a)?"":(0,d.kE)(a)?(0,T.f_)(a,a):a},za=function(a,t){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=e.sortBy,i=void 0===n?null:n,r=e.formatter,o=void 0===r?null:r,l=e.locale,c=void 0===l?void 0:l,s=e.localeOptions,h=void 0===s?{}:s,u=e.nullLast,p=void 0!==u&&u,v=(0,fa.U)(a,i,null),f=(0,fa.U)(t,i,null);return(0,d.mf)(o)&&(v=o(v,i,a),f=o(f,i,t)),v=ma(v),f=ma(f),(0,d.J_)(v)&&(0,d.J_)(f)||(0,d.hj)(v)&&(0,d.hj)(f)?vf?1:0:p&&""===v&&""!==f?1:p&&""!==v&&""===f?-1:x(v).localeCompare(x(f),c,h)};function ba(a,t){var e=Object.keys(a);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(a);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(a,t).enumerable}))),e.push.apply(e,n)}return e}function ga(a){for(var t=1;t{e.d(t,{N:()=>p,p:()=>v});var n=e(1915),i=e(94689),r=e(12299),o=e(20451),l=e(28492),c=e(76677),s=e(18280);function h(a,t){var e=Object.keys(a);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(a);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(a,t).enumerable}))),e.push.apply(e,n)}return e}function u(a){for(var t=1;t{e.d(t,{N:()=>g,S:()=>M});var n=e(1915),i=e(94689),r=e(12299),o=e(26410),l=e(33284),c=e(93954),s=e(20451),h=e(46595),u=e(28492),d=e(76677),p=e(18280);function v(a,t){var e=Object.keys(a);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(a);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(a,t).enumerable}))),e.push.apply(e,n)}return e}function f(a){for(var t=1;t0?a:null},b=function(a){return(0,l.Jp)(a)||z(a)>0},g=(0,s.y2)({colspan:(0,s.pi)(r.fE,null,b),rowspan:(0,s.pi)(r.fE,null,b),stackedHeading:(0,s.pi)(r.N0),stickyColumn:(0,s.pi)(r.U5,!1),variant:(0,s.pi)(r.N0)},i.Mf),M=(0,n.l7)({name:i.Mf,mixins:[u.D,d.o,p.Z],inject:{getBvTableTr:{default:function(){return function(){return{}}}}},inheritAttrs:!1,props:g,computed:{bvTableTr:function(){return this.getBvTableTr()},tag:function(){return"td"},inTbody:function(){return this.bvTableTr.inTbody},inThead:function(){return this.bvTableTr.inThead},inTfoot:function(){return this.bvTableTr.inTfoot},isDark:function(){return this.bvTableTr.isDark},isStacked:function(){return this.bvTableTr.isStacked},isStackedCell:function(){return this.inTbody&&this.isStacked},isResponsive:function(){return this.bvTableTr.isResponsive},isStickyHeader:function(){return this.bvTableTr.isStickyHeader},hasStickyHeader:function(){return this.bvTableTr.hasStickyHeader},isStickyColumn:function(){return!this.isStacked&&(this.isResponsive||this.hasStickyHeader)&&this.stickyColumn},rowVariant:function(){return this.bvTableTr.variant},headVariant:function(){return this.bvTableTr.headVariant},footVariant:function(){return this.bvTableTr.footVariant},tableVariant:function(){return this.bvTableTr.tableVariant},computedColspan:function(){return z(this.colspan)},computedRowspan:function(){return z(this.rowspan)},cellClasses:function(){var a=this.variant,t=this.headVariant,e=this.isStickyColumn;return(!a&&this.isStickyHeader&&!t||!a&&e&&this.inTfoot&&!this.footVariant||!a&&e&&this.inThead&&!t||!a&&e&&this.inTbody)&&(a=this.rowVariant||this.tableVariant||"b-table-default"),[a?"".concat(this.isDark?"bg":"table","-").concat(a):null,e?"b-table-sticky-column":null]},cellAttrs:function(){var a=this.stackedHeading,t=this.inThead||this.inTfoot,e=this.computedColspan,n=this.computedRowspan,i="cell",r=null;return t?(i="columnheader",r=e>0?"colspan":"col"):(0,o.YR)(this.tag,"th")&&(i="rowheader",r=n>0?"rowgroup":"row"),f(f({colspan:e,rowspan:n,role:i,scope:r},this.bvAttrs),{},{"data-label":this.isStackedCell&&!(0,l.Jp)(a)?(0,h.BB)(a):null})}},render:function(a){var t=[this.normalizeSlot()];return a(this.tag,{class:this.cellClasses,attrs:this.cellAttrs,on:this.bvListeners},[this.isStackedCell?a("div",[t]):t])}})},10838:(a,t,e)=>{e.d(t,{A:()=>v});var n=e(1915),i=e(94689),r=e(12299),o=e(20451),l=e(28492),c=e(76677),s=e(18280);function h(a,t){var e=Object.keys(a);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(a);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(a,t).enumerable}))),e.push.apply(e,n)}return e}function u(a){for(var t=1;t{e.d(t,{e:()=>c});var n=e(1915),i=e(94689),r=e(20451),o=e(66456),l=(0,r.y2)(o.N,i.$n),c=(0,n.l7)({name:i.$n,extends:o.S,props:l,computed:{tag:function(){return"th"}}})},13944:(a,t,e)=>{e.d(t,{E:()=>v});var n=e(1915),i=e(94689),r=e(12299),o=e(20451),l=e(28492),c=e(76677),s=e(18280);function h(a,t){var e=Object.keys(a);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(a);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(a,t).enumerable}))),e.push.apply(e,n)}return e}function u(a){for(var t=1;t{e.d(t,{G:()=>m});var n=e(1915),i=e(94689),r=e(12299),o=e(20451),l=e(28492),c=e(76677),s=e(18280);function h(a,t){var e=Object.keys(a);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(a);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(a,t).enumerable}))),e.push.apply(e,n)}return e}function u(a){for(var t=1;t{e.d(t,{L:()=>y});var n,i,r=e(1915),o=e(94689),l=e(63294),c=e(12299),s=e(90494),h=e(67040),u=e(20451),d=e(73727),p=e(18280),v=e(17100);function f(a,t){var e=Object.keys(a);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(a);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(a,t).enumerable}))),e.push.apply(e,n)}return e}function m(a){for(var t=1;t{e.d(t,{M:()=>$});var n,i=e(1915),r=e(94689),o=e(43935),l=e(63294),c=e(63663),s=e(12299),h=e(90494),u=e(11572),d=e(37130),p=e(26410),v=e(28415),f=e(68265),m=e(33284),z=e(3058),b=e(21578),g=e(54602),M=e(93954),y=e(67040),V=e(63078),H=e(20451),A=e(55912),B=e(73727),O=e(18280),w=e(67347),C=e(29027);function I(a,t){var e=Object.keys(a);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(a);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(a,t).enumerable}))),e.push.apply(e,n)}return e}function L(a){for(var t=1;t0&&void 0!==arguments[0])||arguments[0];if(this.$_observer&&this.$_observer.disconnect(),this.$_observer=null,t){var e=function(){a.$nextTick((function(){(0,p.bz)((function(){a.updateTabs()}))}))};this.$_observer=(0,V.t)(this.$refs.content,e,{childList:!0,subtree:!1,attributes:!0,attributeFilter:["id"]})}},getTabs:function(){var a=this.registeredTabs,t=[];if(o.Qg&&a.length>0){var e=a.map((function(a){return"#".concat(a.safeId())})).join(", ");t=(0,p.a8)(e,this.$el).map((function(a){return a.id})).filter(f.y)}return(0,A.X)(a,(function(a,e){return t.indexOf(a.safeId())-t.indexOf(e.safeId())}))},updateTabs:function(){var a=this.getTabs(),t=a.indexOf(a.slice().reverse().find((function(a){return a.localActive&&!a.disabled})));if(t<0){var e=this.currentTab;e>=a.length?t=a.indexOf(a.slice().reverse().find(D)):a[e]&&!a[e].disabled&&(t=e)}t<0&&(t=a.indexOf(a.find(D))),a.forEach((function(a,e){a.localActive=e===t})),this.tabs=a,this.currentTab=t},getButtonForTab:function(a){return(this.$refs.buttons||[]).find((function(t){return t.tab===a}))},updateButton:function(a){var t=this.getButtonForTab(a);t&&t.$forceUpdate&&t.$forceUpdate()},activateTab:function(a){var t=this.currentTab,e=this.tabs,n=!1;if(a){var i=e.indexOf(a);if(i!==t&&i>-1&&!a.disabled){var r=new d.n(l.ix,{cancelable:!0,vueTarget:this,componentId:this.safeId()});this.$emit(r.type,i,t,r),r.defaultPrevented||(this.currentTab=i,n=!0)}}return n||this[j]===t||this.$emit(T,t),n},deactivateTab:function(a){return!!a&&this.activateTab(this.tabs.filter((function(t){return t!==a})).find(D))},focusButton:function(a){var t=this;this.$nextTick((function(){(0,p.KS)(t.getButtonForTab(a))}))},emitTabClick:function(a,t){(0,m.cO)(t)&&a&&a.$emit&&!a.disabled&&a.$emit(l.PZ,t)},clickTab:function(a,t){this.activateTab(a),this.emitTabClick(a,t)},firstTab:function(a){var t=this.tabs.find(D);this.activateTab(t)&&a&&(this.focusButton(t),this.emitTabClick(t,a))},previousTab:function(a){var t=(0,b.nP)(this.currentTab,0),e=this.tabs.slice(0,t).reverse().find(D);this.activateTab(e)&&a&&(this.focusButton(e),this.emitTabClick(e,a))},nextTab:function(a){var t=(0,b.nP)(this.currentTab,-1),e=this.tabs.slice(t+1).find(D);this.activateTab(e)&&a&&(this.focusButton(e),this.emitTabClick(e,a))},lastTab:function(a){var t=this.tabs.slice().reverse().find(D);this.activateTab(t)&&a&&(this.focusButton(t),this.emitTabClick(t,a))}},render:function(a){var t=this,e=this.align,n=this.card,r=this.end,o=this.fill,c=this.firstTab,s=this.justified,u=this.lastTab,d=this.nextTab,p=this.noKeyNav,v=this.noNavStyle,f=this.pills,m=this.previousTab,z=this.small,b=this.tabs,g=this.vertical,M=b.find((function(a){return a.localActive&&!a.disabled})),y=b.find((function(a){return!a.disabled})),V=b.map((function(e,n){var r,o=e.safeId,s=null;return p||(s=-1,(e===M||!M&&e===y)&&(s=null)),a(E,S({props:{controls:o?o():null,id:e.controlledBy||(o?o("_BV_tab_button_"):null),noKeyNav:p,posInSet:n+1,setSize:b.length,tab:e,tabIndex:s},on:(r={},S(r,l.PZ,(function(a){t.clickTab(e,a)})),S(r,l.Q3,c),S(r,l.I$,m),S(r,l.zd,d),S(r,l.vA,u),r),key:e[i.X$]||n,ref:"buttons"},i.TF,!0))})),H=a(C.O,{class:this.localNavClass,attrs:{role:"tablist",id:this.safeId("_BV_tab_controls_")},props:{fill:o,justified:s,align:e,tabs:!v&&!f,pills:!v&&f,vertical:g,small:z,cardHeader:n&&!g},ref:"nav"},[this.normalizeSlot(h.U4)||a(),V,this.normalizeSlot(h.XE)||a()]);H=a("div",{class:[{"card-header":n&&!g&&!r,"card-footer":n&&!g&&r,"col-auto":g},this.navWrapperClass],key:"bv-tabs-nav"},[H]);var A=this.normalizeSlot()||[],B=a();0===A.length&&(B=a("div",{class:["tab-pane","active",{"card-body":n}],key:"bv-empty-tab"},this.normalizeSlot(h.ZJ)));var O=a("div",{staticClass:"tab-content",class:[{col:g},this.contentClass],attrs:{id:this.safeId("_BV_tab_container_")},key:"bv-content",ref:"content"},[A,B]);return a(this.tag,{staticClass:"tabs",class:{row:g,"no-gutters":g&&n},attrs:{id:this.safeId()}},[r?O:a(),H,r?a():O])}})},68793:(a,t,e)=>{e.d(t,{m$:()=>fa});var n,i=e(94689),r=e(63294),o=e(93319),l=e(11572),c=e(79968),s=e(26410),h=e(28415),u=e(33284),d=e(67040),p=e(86087),v=e(77147),f=e(55789),m=e(91076),z=e(72433),b=e(1915),g=e(12299),M=e(90494),y=e(37130),V=e(21578),H=e(54602),A=e(93954),B=e(20451),O=e(30488),w=e(28492),C=e(73727),I=e(98596),L=e(18280),S=e(30051),P=e(91451),F=e(67347),k=e(17100),j=(0,b.l7)({mixins:[L.Z],data:function(){return{name:"b-toaster"}},methods:{onAfterEnter:function(a){var t=this;(0,s.bz)((function(){(0,s.IV)(a,"".concat(t.name,"-enter-to"))}))}},render:function(a){return a("transition-group",{props:{tag:"div",name:this.name},on:{afterEnter:this.onAfterEnter}},this.normalizeSlot())}}),T=(0,B.y2)({ariaAtomic:(0,B.pi)(g.N0),ariaLive:(0,B.pi)(g.N0),name:(0,B.pi)(g.N0,void 0,!0),role:(0,B.pi)(g.N0)},i.Gi),D=(0,b.l7)({name:i.Gi,mixins:[I.E],props:T,data:function(){return{doRender:!1,dead:!1,staticName:this.name}},beforeMount:function(){var a=this.name;this.staticName=a,z.Df.hasTarget(a)?((0,v.ZK)('A "" with name "'.concat(a,'" already exists in the document.'),i.Gi),this.dead=!0):this.doRender=!0},beforeDestroy:function(){this.doRender&&this.emitOnRoot((0,h.J3)(i.Gi,r.Vz),this.name)},destroyed:function(){var a=this.$el;a&&a.parentNode&&a.parentNode.removeChild(a)},render:function(a){var t=a("div",{class:["d-none",{"b-dead-toaster":this.dead}]});if(this.doRender){var e=a(z.YC,{staticClass:"b-toaster-slot",props:{name:this.staticName,multiple:!0,tag:"div",slim:!1,transition:j}});t=a("div",{staticClass:"b-toaster",class:[this.staticName],attrs:{id:this.staticName,role:this.role||null,"aria-live":this.ariaLive,"aria-atomic":this.ariaAtomic}},[e])}return t}});function E(a,t){var e=Object.keys(a);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(a);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(a,t).enumerable}))),e.push.apply(e,n)}return e}function x(a){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{};return new y.n(a,x(x({cancelable:!1,target:this.$el||null,relatedTarget:null},t),{},{vueTarget:this,componentId:this.safeId()}))},emitEvent:function(a){var t=a.type;this.emitOnRoot((0,h.J3)(i.Tf,t),a),this.$emit(t,a)},ensureToaster:function(){if(!this.static){var a=this.computedToaster;if(!z.Df.hasTarget(a)){var t=document.createElement("div");document.body.appendChild(t);var e=(0,f.H)(this.bvEventRoot,D,{propsData:{name:a}});e.$mount(t)}}},startDismissTimer:function(){this.clearDismissTimer(),this.noAutoHide||(this.$_dismissTimer=setTimeout(this.hide,this.resumeDismiss||this.computedDuration),this.dismissStarted=Date.now(),this.resumeDismiss=0)},clearDismissTimer:function(){clearTimeout(this.$_dismissTimer),this.$_dismissTimer=null},setHoverHandler:function(a){var t=this.$refs["b-toast"];(0,h.tU)(a,t,"mouseenter",this.onPause,r.IJ),(0,h.tU)(a,t,"mouseleave",this.onUnPause,r.IJ)},onPause:function(){if(!this.noAutoHide&&!this.noHoverPause&&this.$_dismissTimer&&!this.resumeDismiss){var a=Date.now()-this.dismissStarted;a>0&&(this.clearDismissTimer(),this.resumeDismiss=(0,V.nP)(this.computedDuration-a,q))}},onUnPause:function(){this.noAutoHide||this.noHoverPause||!this.resumeDismiss?this.resumeDismiss=this.dismissStarted=0:this.startDismissTimer()},onLinkClick:function(){var a=this;this.$nextTick((function(){(0,s.bz)((function(){a.hide()}))}))},onBeforeEnter:function(){this.isTransitioning=!0},onAfterEnter:function(){this.isTransitioning=!1;var a=this.buildEvent(r.AS);this.emitEvent(a),this.startDismissTimer(),this.setHoverHandler(!0)},onBeforeLeave:function(){this.isTransitioning=!0},onAfterLeave:function(){this.isTransitioning=!1,this.order=0,this.resumeDismiss=this.dismissStarted=0;var a=this.buildEvent(r.v6);this.emitEvent(a),this.doRender=!1},makeToast:function(a){var t=this,e=this.title,n=this.slotScope,i=(0,O.u$)(this),r=[],o=this.normalizeSlot(M.XF,n);o?r.push(o):e&&r.push(a("strong",{staticClass:"mr-2"},e)),this.noCloseButton||r.push(a(P.Z,{staticClass:"ml-auto mb-1",on:{click:function(){t.hide()}}}));var l=a();r.length>0&&(l=a(this.headerTag,{staticClass:"toast-header",class:this.headerClass},r));var c=a(i?F.we:"div",{staticClass:"toast-body",class:this.bodyClass,props:i?(0,B.uj)(W,this):{},on:i?{click:this.onLinkClick}:{}},this.normalizeSlot(M.Pq,n));return a("div",{staticClass:"toast",class:this.toastClass,attrs:this.computedAttrs,key:"toast-".concat(this[b.X$]),ref:"toast"},[l,c])}},render:function(a){if(!this.doRender||!this.isMounted)return a();var t=this.order,e=this.static,n=this.isHiding,i=this.isStatus,r="b-toast-".concat(this[b.X$]),o=a("div",{staticClass:"b-toast",class:this.toastClasses,attrs:x(x({},e?{}:this.scopedStyleAttrs),{},{id:this.safeId("_toast_outer"),role:n?null:i?"status":"alert","aria-live":n?null:i?"polite":"assertive","aria-atomic":n?null:"true"}),key:r,ref:"b-toast"},[a(k.N,{props:{noFade:this.noFade},on:this.transitionHandlers},[this.localShow?this.makeToast(a):a()])]);return a(z.h_,{props:{name:r,to:this.computedToaster,order:t,slim:!0,disabled:e}},[o])}});function Z(a,t){if(!(a instanceof t))throw new TypeError("Cannot call a class as a function")}function X(a,t){for(var e=0;ea.length)&&(t=a.length);for(var e=0,n=new Array(t);e1&&void 0!==arguments[1]?arguments[1]:{};a&&!(0,v.zl)(ca)&&e(aa(aa({},da(t)),{},{toastContent:a}),this._vm)}},{key:"show",value:function(a){a&&this._root.$emit((0,h.gA)(i.Tf,r.l0),a)}},{key:"hide",value:function(){var a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;this._root.$emit((0,h.gA)(i.Tf,r.yM),a)}}]),a}();a.mixin({beforeCreate:function(){this[sa]=new n(this)}}),(0,d.nr)(a.prototype,ca)||(0,d._x)(a.prototype,ca,{get:function(){return this&&this[sa]||(0,v.ZK)('"'.concat(ca,'" must be accessed from a Vue instance "this" context.'),i.Tf),this[sa]}})},va=(0,p.Hr)({plugins:{plugin:pa}}),fa=(0,p.Hr)({components:{BToast:J,BToaster:D},plugins:{BVToastPlugin:va}})},91858:(a,t,e)=>{e.d(t,{y:()=>A});var n=e(1915),i=e(94689),r=e(63294),o=e(12299),l=e(33284),c=e(20451),s=e(30051),h=e(28981),u=e(28112),d=e(93319),p=e(26410),v=e(93954),f=e(17100),m={AUTO:"auto",TOP:"top",RIGHT:"right",BOTTOM:"bottom",LEFT:"left",TOPLEFT:"top",TOPRIGHT:"top",RIGHTTOP:"right",RIGHTBOTTOM:"right",BOTTOMLEFT:"bottom",BOTTOMRIGHT:"bottom",LEFTTOP:"left",LEFTBOTTOM:"left"},z={AUTO:0,TOPLEFT:-1,TOP:0,TOPRIGHT:1,RIGHTTOP:-1,RIGHT:0,RIGHTBOTTOM:1,BOTTOMLEFT:-1,BOTTOM:0,BOTTOMRIGHT:1,LEFTTOP:-1,LEFT:0,LEFTBOTTOM:1},b={arrowPadding:(0,c.pi)(o.fE,6),boundary:(0,c.pi)([u.mv,o.N0],"scrollParent"),boundaryPadding:(0,c.pi)(o.fE,5),fallbackPlacement:(0,c.pi)(o.Mu,"flip"),offset:(0,c.pi)(o.fE,0),placement:(0,c.pi)(o.N0,"top"),target:(0,c.pi)([u.mv,u.t_])},g=(0,n.l7)({name:i.X$,mixins:[d.S],props:b,data:function(){return{noFade:!1,localShow:!0,attachment:this.getAttachment(this.placement)}},computed:{templateType:function(){return"unknown"},popperConfig:function(){var a=this,t=this.placement;return{placement:this.getAttachment(t),modifiers:{offset:{offset:this.getOffset(t)},flip:{behavior:this.fallbackPlacement},arrow:{element:".arrow"},preventOverflow:{padding:this.boundaryPadding,boundariesElement:this.boundary}},onCreate:function(t){t.originalPlacement!==t.placement&&a.popperPlacementChange(t)},onUpdate:function(t){a.popperPlacementChange(t)}}}},created:function(){var a=this;this.$_popper=null,this.localShow=!0,this.$on(r.l0,(function(t){a.popperCreate(t)}));var t=function(){a.$nextTick((function(){(0,p.bz)((function(){a.$destroy()}))}))};this.bvParent.$once(r.DJ,t),this.$once(r.v6,t)},beforeMount:function(){this.attachment=this.getAttachment(this.placement)},updated:function(){this.updatePopper()},beforeDestroy:function(){this.destroyPopper()},destroyed:function(){var a=this.$el;a&&a.parentNode&&a.parentNode.removeChild(a)},methods:{hide:function(){this.localShow=!1},getAttachment:function(a){return m[String(a).toUpperCase()]||"auto"},getOffset:function(a){if(!this.offset){var t=this.$refs.arrow||(0,p.Ys)(".arrow",this.$el),e=(0,v.f_)((0,p.yD)(t).width,0)+(0,v.f_)(this.arrowPadding,0);switch(z[String(a).toUpperCase()]||0){case 1:return"+50%p - ".concat(e,"px");case-1:return"-50%p + ".concat(e,"px");default:return 0}}return this.offset},popperCreate:function(a){this.destroyPopper(),this.$_popper=new h.Z(this.target,a,this.popperConfig)},destroyPopper:function(){this.$_popper&&this.$_popper.destroy(),this.$_popper=null},updatePopper:function(){this.$_popper&&this.$_popper.scheduleUpdate()},popperPlacementChange:function(a){this.attachment=this.getAttachment(a.placement)},renderTemplate:function(a){return a("div")}},render:function(a){var t=this,e=this.noFade;return a(f.N,{props:{appear:!0,noFade:e},on:{beforeEnter:function(a){return t.$emit(r.l0,a)},afterEnter:function(a){return t.$emit(r.AS,a)},beforeLeave:function(a){return t.$emit(r.yM,a)},afterLeave:function(a){return t.$emit(r.v6,a)}}},[this.localShow?this.renderTemplate(a):a()])}});function M(a,t){var e=Object.keys(a);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(a);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(a,t).enumerable}))),e.push.apply(e,n)}return e}function y(a){for(var t=1;t{e.d(t,{j:()=>j});var n=e(1915),i=e(94689),r=e(63294),o=e(93319),l=e(11572),c=e(99022),s=e(26410),h=e(28415),u=e(13597),d=e(68265),p=e(33284),v=e(3058),f=e(21578),m=e(84941),z=e(93954),b=e(67040),g=e(77147),M=e(37130),y=e(55789),V=e(98596),H=e(91858);function A(a,t){var e=Object.keys(a);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(a);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(a,t).enumerable}))),e.push.apply(e,n)}return e}function B(a){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},e=!1;(0,b.XP)(k).forEach((function(n){(0,p.o8)(t[n])||a[n]===t[n]||(a[n]=t[n],"title"===n&&(e=!0))})),e&&this.localShow&&this.fixTitle()},createTemplateAndShow:function(){var a=this.getContainer(),t=this.getTemplate(),e=this.$_tip=(0,y.H)(this,t,{propsData:{id:this.computedId,html:this.html,placement:this.placement,fallbackPlacement:this.fallbackPlacement,target:this.getPlacementTarget(),boundary:this.getBoundary(),offset:(0,z.Z3)(this.offset,0),arrowPadding:(0,z.Z3)(this.arrowPadding,0),boundaryPadding:(0,z.Z3)(this.boundaryPadding,0)}});this.handleTemplateUpdate(),e.$once(r.l0,this.onTemplateShow),e.$once(r.AS,this.onTemplateShown),e.$once(r.yM,this.onTemplateHide),e.$once(r.v6,this.onTemplateHidden),e.$once(r.DJ,this.destroyTemplate),e.$on(r.kT,this.handleEvent),e.$on(r.iV,this.handleEvent),e.$on(r.MQ,this.handleEvent),e.$on(r.lm,this.handleEvent),e.$mount(a.appendChild(document.createElement("div")))},hideTemplate:function(){this.$_tip&&this.$_tip.hide(),this.clearActiveTriggers(),this.$_hoverState=""},destroyTemplate:function(){this.setWhileOpenListeners(!1),this.clearHoverTimeout(),this.$_hoverState="",this.clearActiveTriggers(),this.localPlacementTarget=null;try{this.$_tip.$destroy()}catch(a){}this.$_tip=null,this.removeAriaDescribedby(),this.restoreTitle(),this.localShow=!1},getTemplateElement:function(){return this.$_tip?this.$_tip.$el:null},handleTemplateUpdate:function(){var a=this,t=this.$_tip;if(t){var e=["title","content","variant","customClass","noFade","interactive"];e.forEach((function(e){t[e]!==a[e]&&(t[e]=a[e])}))}},show:function(){var a=this.getTarget();if(a&&(0,s.r3)(document.body,a)&&(0,s.pn)(a)&&!this.dropdownOpen()&&(!(0,p.Jp)(this.title)&&""!==this.title||!(0,p.Jp)(this.content)&&""!==this.content)&&!this.$_tip&&!this.localShow){this.localShow=!0;var t=this.buildEvent(r.l0,{cancelable:!0});this.emitEvent(t),t.defaultPrevented?this.destroyTemplate():(this.fixTitle(),this.addAriaDescribedby(),this.createTemplateAndShow())}},hide:function(){var a=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this.getTemplateElement();if(t&&this.localShow){var e=this.buildEvent(r.yM,{cancelable:!a});this.emitEvent(e),e.defaultPrevented||this.hideTemplate()}else this.restoreTitle()},forceHide:function(){var a=this.getTemplateElement();a&&this.localShow&&(this.setWhileOpenListeners(!1),this.clearHoverTimeout(),this.$_hoverState="",this.clearActiveTriggers(),this.$_tip&&(this.$_tip.noFade=!0),this.hide(!0))},enable:function(){this.$_enabled=!0,this.emitEvent(this.buildEvent(r.VU))},disable:function(){this.$_enabled=!1,this.emitEvent(this.buildEvent(r.gi))},onTemplateShow:function(){this.setWhileOpenListeners(!0)},onTemplateShown:function(){var a=this.$_hoverState;this.$_hoverState="","out"===a&&this.leave(null),this.emitEvent(this.buildEvent(r.AS))},onTemplateHide:function(){this.setWhileOpenListeners(!1)},onTemplateHidden:function(){this.destroyTemplate(),this.emitEvent(this.buildEvent(r.v6))},getTarget:function(){var a=this.target;return(0,p.HD)(a)?a=(0,s.FO)(a.replace(/^#/,"")):(0,p.mf)(a)?a=a():a&&(a=a.$el||a),(0,s.kK)(a)?a:null},getPlacementTarget:function(){return this.getTarget()},getTargetId:function(){var a=this.getTarget();return a&&a.id?a.id:null},getContainer:function(){var a=!!this.container&&(this.container.$el||this.container),t=document.body,e=this.getTarget();return!1===a?(0,s.oq)(L,e)||t:(0,p.HD)(a)&&(0,s.FO)(a.replace(/^#/,""))||t},getBoundary:function(){return this.boundary?this.boundary.$el||this.boundary:"scrollParent"},isInModal:function(){var a=this.getTarget();return a&&(0,s.oq)(w,a)},isDropdown:function(){var a=this.getTarget();return a&&(0,s.pv)(a,S)},dropdownOpen:function(){var a=this.getTarget();return this.isDropdown()&&a&&(0,s.Ys)(P,a)},clearHoverTimeout:function(){clearTimeout(this.$_hoverTimeout),this.$_hoverTimeout=null},clearVisibilityInterval:function(){clearInterval(this.$_visibleInterval),this.$_visibleInterval=null},clearActiveTriggers:function(){for(var a in this.activeTrigger)this.activeTrigger[a]=!1},addAriaDescribedby:function(){var a=this.getTarget(),t=(0,s.UK)(a,"aria-describedby")||"";t=t.split(/\s+/).concat(this.computedId).join(" ").trim(),(0,s.fi)(a,"aria-describedby",t)},removeAriaDescribedby:function(){var a=this,t=this.getTarget(),e=(0,s.UK)(t,"aria-describedby")||"";e=e.split(/\s+/).filter((function(t){return t!==a.computedId})).join(" ").trim(),e?(0,s.fi)(t,"aria-describedby",e):(0,s.uV)(t,"aria-describedby")},fixTitle:function(){var a=this.getTarget();if((0,s.B$)(a,"title")){var t=(0,s.UK)(a,"title");(0,s.fi)(a,"title",""),t&&(0,s.fi)(a,F,t)}},restoreTitle:function(){var a=this.getTarget();if((0,s.B$)(a,F)){var t=(0,s.UK)(a,F);(0,s.uV)(a,F),t&&(0,s.fi)(a,"title",t)}},buildEvent:function(a){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new M.n(a,B({cancelable:!1,target:this.getTarget(),relatedTarget:this.getTemplateElement()||null,componentId:this.computedId,vueTarget:this},t))},emitEvent:function(a){var t=a.type;this.emitOnRoot((0,h.J3)(this.templateType,t),a),this.$emit(t,a)},listen:function(){var a=this,t=this.getTarget();t&&(this.setRootListener(!0),this.computedTriggers.forEach((function(e){"click"===e?(0,h.XO)(t,"click",a.handleEvent,r.IJ):"focus"===e?((0,h.XO)(t,"focusin",a.handleEvent,r.IJ),(0,h.XO)(t,"focusout",a.handleEvent,r.IJ)):"blur"===e?(0,h.XO)(t,"focusout",a.handleEvent,r.IJ):"hover"===e&&((0,h.XO)(t,"mouseenter",a.handleEvent,r.IJ),(0,h.XO)(t,"mouseleave",a.handleEvent,r.IJ))}),this))},unListen:function(){var a=this,t=["click","focusin","focusout","mouseenter","mouseleave"],e=this.getTarget();this.setRootListener(!1),t.forEach((function(t){e&&(0,h.QY)(e,t,a.handleEvent,r.IJ)}),this)},setRootListener:function(a){var t=a?"listenOnRoot":"listenOffRoot",e=this.templateType;this[t]((0,h.gA)(e,r.yM),this.doHide),this[t]((0,h.gA)(e,r.l0),this.doShow),this[t]((0,h.gA)(e,r.MH),this.doDisable),this[t]((0,h.gA)(e,r.wV),this.doEnable)},setWhileOpenListeners:function(a){this.setModalListener(a),this.setDropdownListener(a),this.visibleCheck(a),this.setOnTouchStartListener(a)},visibleCheck:function(a){var t=this;this.clearVisibilityInterval();var e=this.getTarget();a&&(this.$_visibleInterval=setInterval((function(){var a=t.getTemplateElement();!a||!t.localShow||e.parentNode&&(0,s.pn)(e)||t.forceHide()}),100))},setModalListener:function(a){this.isInModal()&&this[a?"listenOnRoot":"listenOffRoot"](C,this.forceHide)},setOnTouchStartListener:function(a){var t=this;"ontouchstart"in document.documentElement&&(0,l.Dp)(document.body.children).forEach((function(e){(0,h.tU)(a,e,"mouseover",t.$_noop)}))},setDropdownListener:function(a){var t=this.getTarget();if(t&&this.bvEventRoot&&this.isDropdown){var e=(0,c.qE)(t);e&&e[a?"$on":"$off"](r.AS,this.forceHide)}},handleEvent:function(a){var t=this.getTarget();if(t&&!(0,s.pK)(t)&&this.$_enabled&&!this.dropdownOpen()){var e=a.type,n=this.computedTriggers;if("click"===e&&(0,l.kI)(n,"click"))this.click(a);else if("mouseenter"===e&&(0,l.kI)(n,"hover"))this.enter(a);else if("focusin"===e&&(0,l.kI)(n,"focus"))this.enter(a);else if("focusout"===e&&((0,l.kI)(n,"focus")||(0,l.kI)(n,"blur"))||"mouseleave"===e&&(0,l.kI)(n,"hover")){var i=this.getTemplateElement(),r=a.target,o=a.relatedTarget;if(i&&(0,s.r3)(i,r)&&(0,s.r3)(t,o)||i&&(0,s.r3)(t,r)&&(0,s.r3)(i,o)||i&&(0,s.r3)(i,r)&&(0,s.r3)(i,o)||(0,s.r3)(t,r)&&(0,s.r3)(t,o))return;this.leave(a)}}},doHide:function(a){a&&this.getTargetId()!==a&&this.computedId!==a||this.forceHide()},doShow:function(a){a&&this.getTargetId()!==a&&this.computedId!==a||this.show()},doDisable:function(a){a&&this.getTargetId()!==a&&this.computedId!==a||this.disable()},doEnable:function(a){a&&this.getTargetId()!==a&&this.computedId!==a||this.enable()},click:function(a){this.$_enabled&&!this.dropdownOpen()&&((0,s.KS)(a.currentTarget),this.activeTrigger.click=!this.activeTrigger.click,this.isWithActiveTrigger?this.enter(null):this.leave(null))},toggle:function(){this.$_enabled&&!this.dropdownOpen()&&(this.localShow?this.leave(null):this.enter(null))},enter:function(){var a=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;t&&(this.activeTrigger["focusin"===t.type?"focus":"hover"]=!0),this.localShow||"in"===this.$_hoverState?this.$_hoverState="in":(this.clearHoverTimeout(),this.$_hoverState="in",this.computedDelay.show?(this.fixTitle(),this.$_hoverTimeout=setTimeout((function(){"in"===a.$_hoverState?a.show():a.localShow||a.restoreTitle()}),this.computedDelay.show)):this.show())},leave:function(){var a=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;t&&(this.activeTrigger["focusout"===t.type?"focus":"hover"]=!1,"focusout"===t.type&&(0,l.kI)(this.computedTriggers,"blur")&&(this.activeTrigger.click=!1,this.activeTrigger.hover=!1)),this.isWithActiveTrigger||(this.clearHoverTimeout(),this.$_hoverState="out",this.computedDelay.hide?this.$_hoverTimeout=setTimeout((function(){"out"===a.$_hoverState&&a.hide()}),this.computedDelay.hide):this.hide())}}})},18365:(a,t,e)=>{e.d(t,{N:()=>B,T:()=>O});var n,i,r=e(1915),o=e(94689),l=e(63294),c=e(12299),s=e(28112),h=e(93319),u=e(13597),d=e(33284),p=e(67040),v=e(20451),f=e(55789),m=e(18280),z=e(40960);function b(a,t){var e=Object.keys(a);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(a);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(a,t).enumerable}))),e.push.apply(e,n)}return e}function g(a){for(var t=1;t{e.d(t,{N:()=>f});var n=e(1915),i=e(69558),r=e(94689),o=e(12299),l=e(33284),c=e(20451);function s(a,t){var e=Object.keys(a);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(a);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(a,t).enumerable}))),e.push.apply(e,n)}return e}function h(a){for(var t=1;t{e.d(t,{$0:()=>pt,$P:()=>Ca,$S:()=>Q,$T:()=>Za,$h:()=>y,$n:()=>rt,$q:()=>tt,AE:()=>Na,AM:()=>O,Au:()=>wa,BP:()=>K,Bd:()=>Y,Bh:()=>r,CB:()=>g,CG:()=>Pa,DU:()=>sa,DX:()=>ya,F6:()=>ra,GL:()=>bt,Gi:()=>st,Gs:()=>at,H3:()=>Ht,H7:()=>la,HQ:()=>ba,Hb:()=>_,Ht:()=>U,Il:()=>ma,Is:()=>pa,JP:()=>j,Jy:()=>S,KO:()=>Wa,KT:()=>Va,KV:()=>E,LX:()=>Sa,M3:()=>Ra,MZ:()=>u,Mf:()=>Qa,Mr:()=>B,OD:()=>W,Op:()=>yt,Ps:()=>Ea,QM:()=>Ya,QS:()=>H,Qc:()=>V,Qf:()=>ga,Rj:()=>ta,Rv:()=>ua,S6:()=>ja,Td:()=>s,Tf:()=>ct,Ts:()=>vt,Tx:()=>G,UV:()=>Z,Ub:()=>Ba,V$:()=>it,VY:()=>X,V_:()=>D,Vg:()=>x,W9:()=>Xa,Wx:()=>Ua,X$:()=>zt,XM:()=>z,X_:()=>Vt,Xm:()=>Ga,YJ:()=>n,YO:()=>ha,Yy:()=>P,_u:()=>f,_v:()=>m,aD:()=>Ja,aJ:()=>da,aU:()=>L,aZ:()=>va,bu:()=>ia,cp:()=>Fa,d2:()=>h,dJ:()=>l,dV:()=>ka,dh:()=>o,dk:()=>Da,eO:()=>At,eh:()=>N,eo:()=>oa,fn:()=>Ta,gb:()=>fa,gi:()=>d,gr:()=>I,gt:()=>dt,gx:()=>La,gz:()=>w,i:()=>$a,iG:()=>za,iv:()=>M,j0:()=>b,lS:()=>Mt,n5:()=>F,ne:()=>nt,qk:()=>k,qv:()=>ht,rK:()=>p,rc:()=>ca,sY:()=>ea,sb:()=>ot,tT:()=>na,tU:()=>mt,tW:()=>T,t_:()=>J,te:()=>q,tq:()=>lt,tt:()=>_a,u2:()=>$,u7:()=>Aa,uc:()=>xa,ux:()=>C,v0:()=>gt,vF:()=>Ha,vg:()=>aa,wE:()=>Ma,wO:()=>ft,x0:()=>et,xU:()=>R,xl:()=>Ka,y9:()=>qa,yf:()=>c,zB:()=>Oa,zD:()=>Ia,zg:()=>v,zr:()=>i,zv:()=>A,zx:()=>ut});var n="BAlert",i="BAspect",r="BAvatar",o="BAvatarGroup",l="BBadge",c="BBreadcrumb",s="BBreadcrumbItem",h="BBreadcrumbLink",u="BButton",d="BButtonClose",p="BButtonGroup",v="BButtonToolbar",f="BCalendar",m="BCard",z="BCardBody",b="BCardFooter",g="BCardGroup",M="BCardHeader",y="BCardImg",V="BCardImgLazy",H="BCardSubTitle",A="BCardText",B="BCardTitle",O="BCarousel",w="BCarouselSlide",C="BCol",I="BCollapse",L="BContainer",S="BDropdown",P="BDropdownDivider",F="BDropdownForm",k="BDropdownGroup",j="BDropdownHeader",T="BDropdownItem",D="BDropdownItemButton",E="BDropdownText",x="BEmbed",N="BForm",$="BFormCheckbox",R="BFormCheckboxGroup",_="BFormDatalist",U="BFormDatepicker",G="BFormFile",q="BFormGroup",W="BFormInput",K="BFormInvalidFeedback",J="BFormRadio",Z="BFormRadioGroup",X="BFormRating",Y="BFormRow",Q="BFormSelect",aa="BFormSelectOption",ta="BFormSelectOptionGroup",ea="BFormSpinbutton",na="BFormTag",ia="BFormTags",ra="BFormText",oa="BFormTextarea",la="BFormTimepicker",ca="BFormValidFeedback",sa="BIcon",ha="BIconstack",ua="BIconBase",da="BImg",pa="BImgLazy",va="BInputGroup",fa="BInputGroupAddon",ma="BInputGroupAppend",za="BInputGroupPrepend",ba="BInputGroupText",ga="BJumbotron",Ma="BLink",ya="BListGroup",Va="BListGroupItem",Ha="BMedia",Aa="BMediaAside",Ba="BMediaBody",Oa="BModal",wa="BMsgBox",Ca="BNav",Ia="BNavbar",La="BNavbarBrand",Sa="BNavbarNav",Pa="BNavbarToggle",Fa="BNavForm",ka="BNavItem",ja="BNavItemDropdown",Ta="BNavText",Da="BOverlay",Ea="BPagination",xa="BPaginationNav",Na="BPopover",$a="BProgress",Ra="BProgressBar",_a="BRow",Ua="BSidebar",Ga="BSkeleton",qa="BSkeletonIcon",Wa="BSkeletonImg",Ka="BSkeletonTable",Ja="BSkeletonWrapper",Za="BSpinner",Xa="BTab",Ya="BTable",Qa="BTableCell",at="BTableLite",tt="BTableSimple",et="BTabs",nt="BTbody",it="BTfoot",rt="BTh",ot="BThead",lt="BTime",ct="BToast",st="BToaster",ht="BTooltip",ut="BTr",dt="BVCollapse",pt="BVFormBtnLabelControl",vt="BVFormRatingStar",ft="BVPopover",mt="BVPopoverTemplate",zt="BVPopper",bt="BVTabButton",gt="BVToastPop",Mt="BVTooltip",yt="BVTooltipTemplate",Vt="BVTransition",Ht="BVTransporter",At="BVTransporterTarget"},8750:(a,t,e)=>{e.d(t,{A1:()=>n,JJ:()=>r,KB:()=>i});var n="BvConfig",i="$bvConfig",r=["xs","sm","md","lg","xl"]},43935:(a,t,e)=>{e.d(t,{FT:()=>z,GA:()=>v,K0:()=>h,LV:()=>f,Qg:()=>c,Uc:()=>l,cM:()=>m,dV:()=>n,m9:()=>s,sJ:()=>p,zx:()=>o});var n="undefined"!==typeof window,i="undefined"!==typeof document,r="undefined"!==typeof navigator,o="undefined"!==typeof Promise,l="undefined"!==typeof MutationObserver||"undefined"!==typeof WebKitMutationObserver||"undefined"!==typeof MozMutationObserver,c=n&&i&&r,s=n?window:{},h=i?document:{},u=r?navigator:{},d=(u.userAgent||"").toLowerCase(),p=d.indexOf("jsdom")>0,v=(/msie|trident/.test(d),function(){var a=!1;if(c)try{var t={get passive(){a=!0}};s.addEventListener("test",t,t),s.removeEventListener("test",t,t)}catch(e){a=!1}return a}()),f=c&&("ontouchstart"in h.documentElement||u.maxTouchPoints>0),m=c&&Boolean(s.PointerEvent||s.MSPointerEvent),z=c&&"IntersectionObserver"in s&&"IntersectionObserverEntry"in s&&"intersectionRatio"in s.IntersectionObserverEntry.prototype},63294:(a,t,e)=>{e.d(t,{AS:()=>X,Cc:()=>h,DJ:()=>oa,Ep:()=>ea,Et:()=>k,G1:()=>G,H9:()=>N,HH:()=>ca,I$:()=>E,IJ:()=>ua,J9:()=>o,JP:()=>sa,Kr:()=>Y,M$:()=>T,MH:()=>v,MQ:()=>S,Mg:()=>z,NN:()=>m,OS:()=>ia,Ol:()=>ta,Ow:()=>na,PZ:()=>s,Q3:()=>y,SH:()=>ha,So:()=>K,TY:()=>R,Uf:()=>M,VU:()=>g,Vz:()=>p,XD:()=>u,XH:()=>Q,_4:()=>D,_H:()=>d,_Z:()=>B,_o:()=>U,b5:()=>x,eb:()=>q,f_:()=>W,gi:()=>f,gn:()=>I,hY:()=>c,iV:()=>A,ix:()=>i,j7:()=>la,kT:()=>H,km:()=>V,l0:()=>Z,lm:()=>P,lr:()=>_,oJ:()=>j,q0:()=>J,qF:()=>$,rP:()=>C,sM:()=>aa,v6:()=>O,vA:()=>L,vl:()=>ra,wV:()=>b,yM:()=>w,z:()=>r,z2:()=>l,zd:()=>F});var n=e(1915),i="activate-tab",r="blur",o="cancel",l="change",c="changed",s="click",h="close",u="context",d="context-changed",p="destroyed",v="disable",f="disabled",m="dismissed",z="dismiss-count-down",b="enable",g="enabled",M="filtered",y="first",V="focus",H="focusin",A="focusout",B="head-clicked",O="hidden",w="hide",C="img-error",I="input",L="last",S="mouseenter",P="mouseleave",F="next",k="ok",j="open",T="page-click",D="paused",E="prev",x="refresh",N="refreshed",$="remove",R="row-clicked",_="row-contextmenu",U="row-dblclicked",G="row-hovered",q="row-middle-clicked",W="row-selected",K="row-unhovered",J="selected",Z="show",X="shown",Y="sliding-end",Q="sliding-start",aa="sort-changed",ta="tag-state",ea="toggle",na="unpaused",ia="update",ra=n.$B?"vnodeBeforeUnmount":"hook:beforeDestroy",oa=n.$B?"vNodeUnmounted":"hook:destroyed",la="update:",ca="bv",sa="::",ha={passive:!0},ua={passive:!0,capture:!1}},63663:(a,t,e)=>{e.d(t,{Cq:()=>h,K2:()=>l,L_:()=>u,QI:()=>s,RV:()=>r,RZ:()=>c,XS:()=>f,YO:()=>p,bt:()=>o,d1:()=>n,m5:()=>v,oD:()=>i,r7:()=>d});var n=8,i=46,r=40,o=35,l=13,c=27,s=36,h=37,u=34,d=33,p=39,v=32,f=38},12299:(a,t,e)=>{e.d(t,{$k:()=>V,J9:()=>g,LU:()=>M,Mu:()=>f,N0:()=>u,PJ:()=>m,Sx:()=>l,U5:()=>r,Vh:()=>d,XO:()=>p,ZW:()=>A,aJ:()=>i,aR:()=>s,dX:()=>h,fE:()=>y,gL:()=>b,jg:()=>c,jy:()=>z,oO:()=>H,r1:()=>n,wA:()=>v});var n=void 0,i=Array,r=Boolean,o=Date,l=Function,c=Number,s=Object,h=RegExp,u=String,d=[i,l],p=[i,s],v=[i,s,u],f=[i,u],m=[r,c],z=[r,c,u],b=[r,u],g=[o,u],M=[l,u],y=[c,u],V=[c,s,u],H=[s,l],A=[s,u]},30824:(a,t,e)=>{e.d(t,{$2:()=>O,$g:()=>F,AK:()=>A,Es:()=>S,Gt:()=>f,HA:()=>g,Hb:()=>P,Ii:()=>c,Lj:()=>h,MH:()=>u,OX:()=>n,P:()=>L,Qf:()=>m,Qj:()=>y,R2:()=>r,TZ:()=>v,V:()=>M,VL:()=>B,XI:()=>V,Y:()=>b,_4:()=>o,fd:()=>l,jo:()=>i,ny:()=>s,qn:()=>w,qo:()=>C,sU:()=>d,sf:()=>p,t0:()=>I,vY:()=>z,wC:()=>H});var n=/\[(\d+)]/g,i=/^(BV?)/,r=/^\d+$/,o=/^\..+/,l=/^#/,c=/^#[A-Za-z]+[\w\-:.]*$/,s=/(<([^>]+)>)/gi,h=/\B([A-Z])/g,u=/([a-z])([A-Z])/g,d=/^[0-9]*\.?[0-9]+$/,p=/\+/g,v=/[-/\\^$*+?.()|[\]{}]/g,f=/[\s\uFEFF\xA0]+/g,m=/\s+/,z=/\/\*$/,b=/(\s|^)(\w)/g,g=/^\s+/,M=/_/g,y=/-(\w)/g,V=/^\d+-\d\d?-\d\d?(?:\s|T|$)/,H=/-|\s|T/,A=/^([0-1]?[0-9]|2[0-3]):[0-5]?[0-9](:[0-5]?[0-9])?$/,B=/^.*(#[^#]+)$/,O=/%2C/g,w=/[!'()*]/g,C=/^(\?|#|&)/,I=/^\d+(\.\d*)?[/:]\d+(\.\d*)?$/,L=/[/:]/,S=/^col-/,P=/^BIcon/,F=/-u-.+/},28112:(a,t,e)=>{e.d(t,{$B:()=>g,W_:()=>m,mv:()=>z,t_:()=>b});var n=e(43935);function i(a){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(a){return typeof a}:function(a){return a&&"function"==typeof Symbol&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},i(a)}function r(a,t){if(!(a instanceof t))throw new TypeError("Cannot call a class as a function")}function o(a,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");Object.defineProperty(a,"prototype",{value:Object.create(t&&t.prototype,{constructor:{value:a,writable:!0,configurable:!0}}),writable:!1}),t&&v(a,t)}function l(a){var t=d();return function(){var e,n=f(a);if(t){var i=f(this).constructor;e=Reflect.construct(n,arguments,i)}else e=n.apply(this,arguments);return c(this,e)}}function c(a,t){if(t&&("object"===i(t)||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return s(a)}function s(a){if(void 0===a)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return a}function h(a){var t="function"===typeof Map?new Map:void 0;return h=function(a){if(null===a||!p(a))return a;if("function"!==typeof a)throw new TypeError("Super expression must either be null or a function");if("undefined"!==typeof t){if(t.has(a))return t.get(a);t.set(a,e)}function e(){return u(a,arguments,f(this).constructor)}return e.prototype=Object.create(a.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),v(e,a)},h(a)}function u(a,t,e){return u=d()?Reflect.construct:function(a,t,e){var n=[null];n.push.apply(n,t);var i=Function.bind.apply(a,n),r=new i;return e&&v(r,e.prototype),r},u.apply(null,arguments)}function d(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(a){return!1}}function p(a){return-1!==Function.toString.call(a).indexOf("[native code]")}function v(a,t){return v=Object.setPrototypeOf||function(a,t){return a.__proto__=t,a},v(a,t)}function f(a){return f=Object.setPrototypeOf?Object.getPrototypeOf:function(a){return a.__proto__||Object.getPrototypeOf(a)},f(a)}var m=n.dV?n.m9.Element:function(a){o(e,a);var t=l(e);function e(){return r(this,e),t.apply(this,arguments)}return e}(h(Object)),z=n.dV?n.m9.HTMLElement:function(a){o(e,a);var t=l(e);function e(){return r(this,e),t.apply(this,arguments)}return e}(m),b=n.dV?n.m9.SVGElement:function(a){o(e,a);var t=l(e);function e(){return r(this,e),t.apply(this,arguments)}return e}(m),g=n.dV?n.m9.File:function(a){o(e,a);var t=l(e);function e(){return r(this,e),t.apply(this,arguments)}return e}(h(Object))},90494:(a,t,e)=>{e.d(t,{A0:()=>sa,CZ:()=>p,Cn:()=>L,D$:()=>g,G$:()=>i,GL:()=>q,Hm:()=>na,Jz:()=>y,K$:()=>N,Nd:()=>Y,Pm:()=>I,Pq:()=>u,Q2:()=>r,RC:()=>H,RK:()=>ca,Rn:()=>K,Ro:()=>$,Rv:()=>j,T_:()=>o,U4:()=>oa,VP:()=>W,W8:()=>ea,WU:()=>F,XE:()=>ra,XF:()=>ha,Xc:()=>T,Y5:()=>U,Z6:()=>ua,ZJ:()=>m,ZP:()=>M,_0:()=>V,_J:()=>D,_d:()=>f,ak:()=>s,dB:()=>G,ek:()=>Z,f2:()=>P,gN:()=>S,gy:()=>J,h0:()=>v,hK:()=>ia,hU:()=>b,iC:()=>d,iV:()=>n,j1:()=>c,k8:()=>da,kg:()=>Q,ki:()=>E,kx:()=>z,l1:()=>B,mH:()=>h,n:()=>R,pd:()=>k,sW:()=>x,uH:()=>A,uO:()=>la,ud:()=>X,wB:()=>C,x:()=>l,xH:()=>aa,xI:()=>ta,xM:()=>O,xR:()=>w,ze:()=>_});var n="add-button-text",i="append",r="aside",o="badge",l="bottom-row",c="button-content",s="custom-foot",h="decrement",u="default",d="description",p="dismiss",v="drop-placeholder",f="ellipsis-text",m="empty",z="emptyfiltered",b="file-name",g="first",M="first-text",y="footer",V="header",H="header-close",A="icon-clear",B="icon-empty",O="icon-full",w="icon-half",C="img",I="increment",L="invalid-feedback",S="label",P="last-text",F="lead",k="loading",j="modal-backdrop",T="modal-cancel",D="modal-footer",E="modal-header",x="modal-header-close",N="modal-ok",$="modal-title",R="nav-next-decade",_="nav-next-month",U="nav-next-year",G="nav-prev-decade",q="nav-prev-month",W="nav-prev-year",K="nav-this-month",J="next-text",Z="overlay",X="page",Y="placeholder",Q="prepend",aa="prev-text",ta="row-details",ea="table-busy",na="table-caption",ia="table-colgroup",ra="tabs-end",oa="tabs-start",la="text",ca="thead-top",sa="title",ha="toast-title",ua="top-row",da="valid-feedback"},82653:(a,t,e)=>{e.d(t,{T:()=>y});var n=e(94689),i=e(63294),r=e(63663),o=e(26410),l=e(28415),c=e(33284),s=e(67040),h=e(91076),u=e(96056),d=(0,l.gA)(n.zB,i.l0),p="__bv_modal_directive__",v=function(a){var t=a.modifiers,e=void 0===t?{}:t,n=a.arg,i=a.value;return(0,c.HD)(i)?i:(0,c.HD)(n)?n:(0,s.XP)(e).reverse()[0]},f=function(a){return a&&(0,o.wB)(a,".dropdown-menu > li, li.nav-item")&&(0,o.Ys)("a, button",a)||a},m=function(a){a&&"BUTTON"!==a.tagName&&((0,o.B$)(a,"role")||(0,o.fi)(a,"role","button"),"A"===a.tagName||(0,o.B$)(a,"tabindex")||(0,o.fi)(a,"tabindex","0"))},z=function(a,t,e){var n=v(t),c=f(a);if(n&&c){var s=function(a){var i=a.currentTarget;if(!(0,o.pK)(i)){var l=a.type,c=a.keyCode;"click"!==l&&("keydown"!==l||c!==r.K2&&c!==r.m5)||(0,h.C)((0,u.U)(e,t)).$emit(d,n,i)}};a[p]={handler:s,target:n,trigger:c},m(c),(0,l.XO)(c,"click",s,i.SH),"BUTTON"!==c.tagName&&"button"===(0,o.UK)(c,"role")&&(0,l.XO)(c,"keydown",s,i.SH)}},b=function(a){var t=a[p]||{},e=t.trigger,n=t.handler;e&&n&&((0,l.QY)(e,"click",n,i.SH),(0,l.QY)(e,"keydown",n,i.SH),(0,l.QY)(a,"click",n,i.SH),(0,l.QY)(a,"keydown",n,i.SH)),delete a[p]},g=function(a,t,e){var n=a[p]||{},i=v(t),r=f(a);i===n.target&&r===n.trigger||(b(a,t,e),z(a,t,e)),m(r)},M=function(){},y={inserted:g,updated:M,componentUpdated:g,unbind:b}},43028:(a,t,e)=>{e.d(t,{M:()=>U});var n=e(94689),i=e(43935),r=e(63294),o=e(63663),l=e(30824),c=e(11572),s=e(96056),h=e(26410),u=e(28415),d=e(33284),p=e(3058),v=e(67040),f=e(91076),m="collapsed",z="not-collapsed",b="__BV_toggle",g="".concat(b,"_HANDLER__"),M="".concat(b,"_CLICK__"),y="".concat(b,"_STATE__"),V="".concat(b,"_TARGETS__"),H="false",A="true",B="aria-controls",O="aria-expanded",w="role",C="tabindex",I="overflow-anchor",L=(0,u.gA)(n.gr,"toggle"),S=(0,u.J3)(n.gr,"state"),P=(0,u.J3)(n.gr,"sync-state"),F=(0,u.gA)(n.gr,"request-state"),k=[o.K2,o.m5],j=function(a){return!(0,c.kI)(["button","a"],a.tagName.toLowerCase())},T=function(a,t){var e=a.modifiers,n=a.arg,i=a.value,r=(0,v.XP)(e||{});if(i=(0,d.HD)(i)?i.split(l.Qf):i,(0,h.YR)(t.tagName,"a")){var o=(0,h.UK)(t,"href")||"";l.Ii.test(o)&&r.push(o.replace(l.fd,""))}return(0,c.zo)(n,i).forEach((function(a){return(0,d.HD)(a)&&r.push(a)})),r.filter((function(a,t,e){return a&&e.indexOf(a)===t}))},D=function(a){var t=a[M];t&&((0,u.QY)(a,"click",t,r.SH),(0,u.QY)(a,"keydown",t,r.SH)),a[M]=null},E=function(a,t){if(D(a),t){var e=function(e){if(("keydown"!==e.type||(0,c.kI)(k,e.keyCode))&&!(0,h.pK)(a)){var n=a[V]||[];n.forEach((function(a){(0,f.C)(t).$emit(L,a)}))}};a[M]=e,(0,u.XO)(a,"click",e,r.SH),j(a)&&(0,u.XO)(a,"keydown",e,r.SH)}},x=function(a,t){a[g]&&t&&(0,f.C)(t).$off([S,P],a[g]),a[g]=null},N=function(a,t){if(x(a,t),t){var e=function(t,e){(0,c.kI)(a[V]||[],t)&&(a[y]=e,$(a,e))};a[g]=e,(0,f.C)(t).$on([S,P],e)}},$=function(a,t){t?((0,h.IV)(a,m),(0,h.cn)(a,z),(0,h.fi)(a,O,A)):((0,h.IV)(a,z),(0,h.cn)(a,m),(0,h.fi)(a,O,H))},R=function(a,t){a[t]=null,delete a[t]},_=function(a,t,e){if(i.Qg&&(0,s.U)(e,t)){j(a)&&((0,h.B$)(a,w)||(0,h.fi)(a,w,"button"),(0,h.B$)(a,C)||(0,h.fi)(a,C,"0")),$(a,a[y]);var n=T(t,a);n.length>0?((0,h.fi)(a,B,n.join(" ")),(0,h.A_)(a,I,"none")):((0,h.uV)(a,B),(0,h.jo)(a,I)),(0,h.bz)((function(){E(a,(0,s.U)(e,t))})),(0,p.W)(n,a[V])||(a[V]=n,n.forEach((function(a){(0,f.C)((0,s.U)(e,t)).$emit(F,a)})))}},U={bind:function(a,t,e){a[y]=!1,a[V]=[],N(a,(0,s.U)(e,t)),_(a,t,e)},componentUpdated:_,updated:_,unbind:function(a,t,e){D(a),x(a,(0,s.U)(e,t)),R(a,g),R(a,M),R(a,y),R(a,V),(0,h.IV)(a,m),(0,h.IV)(a,z),(0,h.uV)(a,O),(0,h.uV)(a,B),(0,h.uV)(a,w),(0,h.jo)(a,I)}}},5870:(a,t,e)=>{e.d(t,{o:()=>E});var n=e(94689),i=e(43935),r=e(63294),o=e(11572),l=e(1915),c=e(79968),s=e(13597),h=e(68265),u=e(96056),d=e(33284),p=e(3058),v=e(93954),f=e(67040),m=e(55789),z=e(40960);function b(a,t){var e=Object.keys(a);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(a);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(a,t).enumerable}))),e.push.apply(e,n)}return e}function g(a){for(var t=1;t{e.d(t,{z:()=>b});var n=e(30824),i=e(26410),r=e(33284),o=e(3058),l=e(67040),c=e(1915);function s(a,t){if(!(a instanceof t))throw new TypeError("Cannot call a class as a function")}function h(a,t){for(var e=0;e0);e!==this.visible&&(this.visible=e,this.callback(e),this.once&&this.visible&&(this.doneOnce=!0,this.stop()))}},{key:"stop",value:function(){this.observer&&this.observer.disconnect(),this.observer=null}}]),a}(),v=function(a){var t=a[d];t&&t.stop&&t.stop(),delete a[d]},f=function(a,t){var e=t.value,i=t.modifiers,r={margin:"0px",once:!1,callback:e};(0,l.XP)(i).forEach((function(a){n.R2.test(a)?r.margin="".concat(a,"px"):"once"===a.toLowerCase()&&(r.once=!0)})),v(a),a[d]=new p(a,r),a[d]._prevModifiers=(0,l.d9)(i)},m=function(a,t,e){var n=t.value,i=t.oldValue,r=t.modifiers;r=(0,l.d9)(r),!a||n===i&&a[d]&&(0,o.W)(r,a[d]._prevModifiers)||f(a,{value:n,modifiers:r},e)},z=function(a){v(a)},b={bind:f,componentUpdated:m,unbind:z}},39143:(a,t,e)=>{e.d(t,{N:()=>f,q:()=>m});var n=e(1915),i=e(69558),r=e(94689),o=e(12299),l=e(68265),c=e(33284),s=e(21578),h=e(93954),u=e(20451);function d(a,t,e){return t in a?Object.defineProperty(a,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):a[t]=e,a}var p={viewBox:"0 0 16 16",width:"1em",height:"1em",focusable:"false",role:"img","aria-label":"icon"},v={width:null,height:null,focusable:null,role:null,"aria-label":null},f={animation:(0,u.pi)(o.N0),content:(0,u.pi)(o.N0),flipH:(0,u.pi)(o.U5,!1),flipV:(0,u.pi)(o.U5,!1),fontScale:(0,u.pi)(o.fE,1),rotate:(0,u.pi)(o.fE,0),scale:(0,u.pi)(o.fE,1),shiftH:(0,u.pi)(o.fE,0),shiftV:(0,u.pi)(o.fE,0),stacked:(0,u.pi)(o.U5,!1),title:(0,u.pi)(o.N0),variant:(0,u.pi)(o.N0)},m=(0,n.l7)({name:r.Rv,functional:!0,props:f,render:function(a,t){var e,n=t.data,r=t.props,o=t.children,u=r.animation,f=r.content,m=r.flipH,z=r.flipV,b=r.stacked,g=r.title,M=r.variant,y=(0,s.nP)((0,h.f_)(r.fontScale,1),0)||1,V=(0,s.nP)((0,h.f_)(r.scale,1),0)||1,H=(0,h.f_)(r.rotate,0),A=(0,h.f_)(r.shiftH,0),B=(0,h.f_)(r.shiftV,0),O=m||z||1!==V,w=O||H,C=A||B,I=!(0,c.Jp)(f),L=[w?"translate(8 8)":null,O?"scale(".concat((m?-1:1)*V," ").concat((z?-1:1)*V,")"):null,H?"rotate(".concat(H,")"):null,w?"translate(-8 -8)":null].filter(l.y),S=a("g",{attrs:{transform:L.join(" ")||null},domProps:I?{innerHTML:f||""}:{}},o);C&&(S=a("g",{attrs:{transform:"translate(".concat(16*A/16," ").concat(-16*B/16,")")}},[S])),b&&(S=a("g",[S]));var P=g?a("title",g):null,F=[P,S].filter(l.y);return a("svg",(0,i.b)({staticClass:"b-icon bi",class:(e={},d(e,"text-".concat(M),M),d(e,"b-icon-animation-".concat(u),u),e),attrs:p,style:b?{}:{fontSize:1===y?null:"".concat(100*y,"%")}},n,b?{attrs:v}:{},{attrs:{xmlns:b?null:"http://www.w3.org/2000/svg",fill:"currentColor"}}),F)}})},43022:(a,t,e)=>{e.d(t,{H:()=>M});var n=e(20144),i=e(1915),r=e(69558),o=e(94689),l=e(12299),c=e(30824),s=e(67040),h=e(20451),u=e(46595),d=e(72466),p=e(39143);function v(a,t){var e=Object.keys(a);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(a);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(a,t).enumerable}))),e.push.apply(e,n)}return e}function f(a){for(var t=1;t{e.d(t,{OU:()=>v,Yq2:()=>f,fwv:()=>m,vd$:()=>z,kFv:()=>b,$24:()=>g,sB9:()=>M,nGQ:()=>y,FDI:()=>V,x3L:()=>H,z1A:()=>A,lbE:()=>B,dYs:()=>O,TYz:()=>w,YDB:()=>C,UIV:()=>I,sDn:()=>L,Btd:()=>S,Rep:()=>P,k0:()=>F,dVK:()=>k,zI9:()=>j,rw7:()=>T,pfg:()=>D,KbI:()=>E,PRr:()=>x,HED:()=>N,pTq:()=>$,$WM:()=>R,gWH:()=>_,p6n:()=>U,MGc:()=>G,fwl:()=>q,x4n:()=>W,PtJ:()=>K,YcU:()=>J,BGL:()=>Z,cEq:()=>X,kHe:()=>Y,Q48:()=>Q,CJy:()=>aa,HPq:()=>ta,eo9:()=>ea,jwx:()=>na,mhl:()=>ia,Rtk:()=>ra,ljC:()=>oa,Bxx:()=>la,nyK:()=>ca,fdL:()=>sa,cKx:()=>ha,KBg:()=>ua,S7v:()=>da,HzC:()=>pa,LSj:()=>va,lzv:()=>fa,BNN:()=>ma,Y8j:()=>za,H2O:()=>ba,Hkf:()=>ga,APQ:()=>Ma,L66:()=>ya,WMZ:()=>Va,Vvm:()=>Ha,fqz:()=>Aa,xV2:()=>Ba,oW:()=>Oa,k$g:()=>wa,QUc:()=>Ca,zW7:()=>Ia,lVE:()=>La,rBv:()=>Sa,il7:()=>Pa,JS5:()=>Fa,TUK:()=>ka,E8c:()=>ja,Ll1:()=>Ta,ww:()=>Da,kCe:()=>Ea,n7z:()=>xa,R9u:()=>Na,G7:()=>$a,Sw$:()=>Ra,ydl:()=>_a,MdF:()=>Ua,Ta3:()=>Ga,$qu:()=>qa,UaC:()=>Wa,XMl:()=>Ka,Js2:()=>Ja,Wm0:()=>Za,vOi:()=>Xa,bij:()=>Ya,eh6:()=>Qa,qmO:()=>at,Uhd:()=>tt,DxU:()=>et,T$C:()=>nt,GiK:()=>it,wKW:()=>rt,utP:()=>ot,FyV:()=>lt,p4S:()=>ct,R0b:()=>st,Sdl:()=>ht,V3q:()=>ut,fIJ:()=>dt,EF$:()=>pt,Ps:()=>vt,gWf:()=>ft,oS1:()=>mt,_hv:()=>zt,$z6:()=>bt,atP:()=>gt,C5j:()=>Mt,YlP:()=>yt,Fmo:()=>Vt,fCs:()=>Ht,r$S:()=>At,P1:()=>Bt,niv:()=>Ot,n4P:()=>wt,I4Q:()=>Ct,YCP:()=>It,vcS:()=>Lt,yIz:()=>St,p7o:()=>Pt,nvb:()=>Ft,CDA:()=>kt,SV6:()=>jt,nRP:()=>Tt,xld:()=>Dt,MzH:()=>Et,mQP:()=>xt,kmc:()=>Nt,Qp2:()=>$t,k1k:()=>Rt,x0j:()=>_t,G_g:()=>Ut,whn:()=>Gt,yvC:()=>qt,w8K:()=>Wt,fkB:()=>Kt,u0k:()=>Jt,$c7:()=>Zt,lzt:()=>Xt,jUs:()=>Yt,GWp:()=>p,Pjp:()=>Qt,KvI:()=>ae,$ek:()=>te,pee:()=>ee,X$b:()=>ne,Nxz:()=>ie,qcW:()=>re,g7U:()=>oe,BtN:()=>le,vEG:()=>ce,Znx:()=>se,n1w:()=>he,l9f:()=>ue,d6H:()=>de,OZl:()=>pe,uUd:()=>ve,N$k:()=>fe,K$B:()=>me,ov4:()=>ze,rRv:()=>be,Ask:()=>ge,tK7:()=>Me,HIz:()=>ye,FOL:()=>Ve,jSp:()=>He,Kqp:()=>Ae,g8p:()=>Be,BZn:()=>Oe,nwi:()=>we,d2:()=>Ce,nhN:()=>Ie,TXH:()=>Le,eIp:()=>Se,DtT:()=>Pe,$0W:()=>Fe,nFk:()=>ke,knm:()=>je,wmo:()=>Te,WMY:()=>De,rqI:()=>Ee,Rvs:()=>xe,r0N:()=>Ne,EmC:()=>$e,nOL:()=>Re,NLT:()=>_e,dod:()=>Ue,n8l:()=>Ge,N_J:()=>qe,gwK:()=>We,dNf:()=>Ke,Noy:()=>Je,SC_:()=>Ze,S4:()=>Xe,ix3:()=>Ye,OlQ:()=>Qe,eK4:()=>an,Oqr:()=>tn,wLY:()=>en,S3S:()=>nn,JyY:()=>rn,P4Y:()=>on,pHX:()=>ln,jSo:()=>cn,ODP:()=>sn,bnk:()=>hn,Flg:()=>un,KsB:()=>dn,fqi:()=>pn,jRp:()=>vn,n7L:()=>fn,k5I:()=>mn,PvF:()=>zn,gVZ:()=>bn,CNs:()=>gn,EkS:()=>Mn,Nmi:()=>yn,VzZ:()=>Vn,pGS:()=>Hn,CjC:()=>An,i6v:()=>Bn,bJS:()=>On,$kw:()=>wn,DyN:()=>Cn,lh2:()=>In,VBp:()=>Ln,XkH:()=>Sn,a9F:()=>Pn,Y9_:()=>Fn,mGu:()=>kn,eeY:()=>jn,tqN:()=>Tn,ADI:()=>Dn,ONI:()=>En,_3l:()=>xn,yvH:()=>Nn,i7S:()=>$n,u$w:()=>Rn,AJs:()=>_n,z$Y:()=>Un,io:()=>Gn,QIC:()=>qn,ORl:()=>Wn,Rey:()=>Kn,BZb:()=>Jn,$IU:()=>Zn,zBz:()=>Xn,K10:()=>Yn,saK:()=>Qn,yNt:()=>ai,MlV:()=>ti,RBD:()=>ei,w7q:()=>ni,ciW:()=>ii,XMh:()=>ri,cYS:()=>oi,t1E:()=>li,eh7:()=>ci,n1$:()=>si,d0c:()=>hi,a4T:()=>ui,VYY:()=>di,em6:()=>pi,Tcb:()=>vi,sZW:()=>fi,WD$:()=>mi,T:()=>zi,Phz:()=>bi,DKj:()=>gi,P4_:()=>Mi,Vp2:()=>yi,D7Y:()=>Vi,Kcf:()=>Hi,hmc:()=>Ai,G2Q:()=>Bi,pnD:()=>Oi,r0r:()=>wi,IVx:()=>Ci,tYS:()=>Ii,VMj:()=>Li,fmS:()=>Si,t8:()=>Pi,gq6:()=>Fi,YMH:()=>ki,soo:()=>ji,s1P:()=>Ti,Jfo:()=>Di,AkY:()=>Ei,uuD:()=>xi,eiF:()=>Ni,IrC:()=>$i,igp:()=>Ri,H9R:()=>_i,C6Q:()=>Ui,u97:()=>Gi,XZe:()=>qi,cK7:()=>Wi,j8E:()=>Ki,wrx:()=>Ji,NrI:()=>Zi,L4P:()=>Xi,VLC:()=>Yi,ia_:()=>Qi,A8E:()=>ar,xKP:()=>tr,VNi:()=>er,ywm:()=>nr,knd:()=>ir,ro6:()=>rr,mbL:()=>or,K0N:()=>lr,g3h:()=>cr,N1q:()=>sr,NGI:()=>hr,t3Q:()=>ur,C7Z:()=>dr,K5M:()=>pr,UGO:()=>vr,zmv:()=>fr,_Js:()=>mr,N6W:()=>zr,aGA:()=>br,tI8:()=>gr,mYh:()=>Mr,uNr:()=>yr,ah9:()=>Vr,oy$:()=>Hr,xeu:()=>Ar,VB9:()=>Br,GGn:()=>Or,LLr:()=>wr,$ip:()=>Cr,hKq:()=>Ir,_zT:()=>Lr,WNd:()=>Sr,$xg:()=>Pr,a4k:()=>Fr,_R6:()=>kr,RPO:()=>jr,vPt:()=>Tr,z4n:()=>Dr,lKx:()=>Er,YTw:()=>xr,SUD:()=>Nr,KKi:()=>$r,iaK:()=>Rr,OCT:()=>_r,nZb:()=>Ur,Ynn:()=>Gr,H_q:()=>qr,dYN:()=>Wr,Ekn:()=>Kr,vzb:()=>Jr,cFb:()=>Zr,Aoi:()=>Xr,peH:()=>Yr,nT8:()=>Qr,MVm:()=>ao,zAD:()=>to,PaS:()=>eo,_$q:()=>no,Hc_:()=>io,j2Y:()=>ro,Rsn:()=>oo,E4h:()=>lo,tZt:()=>co,uqb:()=>so,COp:()=>ho,oOT:()=>uo,uxq:()=>po,T_W:()=>vo,yit:()=>fo,kzp:()=>mo,ziT:()=>zo,rM:()=>bo,wBH:()=>go,_rN:()=>Mo,EnN:()=>yo,oRA:()=>Vo,jm6:()=>Ho,DDv:()=>Ao,Zo2:()=>Bo,uVK:()=>Oo,WnY:()=>wo,HyP:()=>Co,VIw:()=>Io,Qid:()=>Lo,As$:()=>So,xkg:()=>Po,b4M:()=>Fo,I9H:()=>ko,gMT:()=>jo,SzU:()=>To,KFI:()=>Do,O48:()=>Eo,bEK:()=>xo,eBp:()=>No,$Zw:()=>$o,R1J:()=>Ro,R5z:()=>_o,sQZ:()=>Uo,qTo:()=>Go,SAB:()=>qo,h11:()=>Wo,RuO:()=>Ko,OVN:()=>Jo,oNP:()=>Zo,zP6:()=>Xo,FQW:()=>Yo,QoX:()=>Qo,rvl:()=>al,vT$:()=>tl,hH8:()=>el,rKJ:()=>nl,eET:()=>il,GEc:()=>rl,Dyn:()=>ol,Et$:()=>ll,A$I:()=>cl,kxN:()=>sl,A3_:()=>hl,new:()=>ul,MbQ:()=>dl,tWE:()=>pl,Afn:()=>vl,he_:()=>fl,Bzp:()=>ml,Gvu:()=>zl,vty:()=>bl,I25:()=>gl,HNd:()=>Ml,CSw:()=>yl,Afi:()=>Vl,hiV:()=>Hl,a4V:()=>Al,D_k:()=>Bl,hpC:()=>Ol,LwH:()=>wl,b1B:()=>Cl,vAm:()=>Il,_yf:()=>Ll,KaO:()=>Sl,zzN:()=>Pl,UOs:()=>Fl,iR5:()=>kl,S9h:()=>jl,ofl:()=>Tl,Tw7:()=>Dl,Z2Z:()=>El,nWJ:()=>xl,FV4:()=>Nl,grc:()=>$l,wg0:()=>Rl,f$5:()=>_l,wAE:()=>Ul,VD2:()=>Gl,gFx:()=>ql,WAw:()=>Wl,VH$:()=>Kl,L3n:()=>Jl,QVi:()=>Zl,WCw:()=>Xl,p8y:()=>Yl,a86:()=>Ql,tDn:()=>ac,zLH:()=>tc,K7D:()=>ec,az2:()=>nc,Ieq:()=>ic,v_S:()=>rc,iYi:()=>oc,RZf:()=>lc,Qlb:()=>cc,VzF:()=>sc,KXx:()=>hc,sKK:()=>uc,l0H:()=>dc,u8_:()=>pc,JIv:()=>vc,YUl:()=>fc,kHb:()=>mc,JKz:()=>zc,Swn:()=>bc,fZq:()=>gc,JfO:()=>Mc,RvK:()=>yc,ANj:()=>Vc,ueK:()=>Hc,vuG:()=>Ac,JVE:()=>Bc,Loc:()=>Oc,TG9:()=>wc,IEF:()=>Cc,RsT:()=>Ic,Pjo:()=>Lc,AvY:()=>Sc,pFV:()=>Pc,wnZ:()=>Fc,OSG:()=>kc,neq:()=>jc,l3H:()=>Tc,jWb:()=>Dc,Wq7:()=>Ec,Mwo:()=>xc,Yi7:()=>Nc,p_n:()=>$c,d1A:()=>Rc,bOW:()=>_c,XzL:()=>Uc,aPK:()=>Gc,FGu:()=>qc,fD4:()=>Wc,EJW:()=>Kc,fYI:()=>Jc,XqM:()=>Zc,HUE:()=>Xc,mcB:()=>Yc,DGU:()=>Qc,Tn4:()=>as,hYX:()=>ts,Rfo:()=>es,so9:()=>ns,_wu:()=>is,jVi:()=>rs,JNi:()=>os,iFy:()=>ls,rwn:()=>cs,vG0:()=>ss,_E8:()=>hs,f6I:()=>us,tFd:()=>ds,rno:()=>ps,NEq:()=>vs,c8U:()=>fs,kWx:()=>ms,fXm:()=>zs,Nzi:()=>bs,mkN:()=>gs,lj6:()=>Ms,Khh:()=>ys,iSS:()=>Vs,MXU:()=>Hs,YgA:()=>As,s0u:()=>Bs,ZtM:()=>Os,cB4:()=>ws,A2O:()=>Cs,vjf:()=>Is,HlU:()=>Ls,cRn:()=>Ss,WRr:()=>Ps,iau:()=>Fs,SVP:()=>ks,g74:()=>js,Hb7:()=>Ts,K2j:()=>Ds,mF1:()=>Es,x2x:()=>xs,gWL:()=>Ns,auv:()=>$s,epQ:()=>Rs,yc6:()=>_s,Z8$:()=>Us,AzZ:()=>Gs,H0l:()=>qs,eBo:()=>Ws,tM4:()=>Ks,WTD:()=>Js,hsX:()=>Zs,WNU:()=>Xs,mzf:()=>Ys,oFl:()=>Qs,$kv:()=>ah,NIN:()=>th,NDd:()=>eh,MHs:()=>nh,$UW:()=>ih,CR_:()=>rh,hnb:()=>oh,Sbj:()=>lh,aRd:()=>ch,jZf:()=>sh,unT:()=>hh,xK9:()=>uh,qa2:()=>dh,C0p:()=>ph,hVG:()=>vh,aLz:()=>fh,AFc:()=>mh,Nvz:()=>zh,t_N:()=>bh,TRz:()=>gh,jJr:()=>Mh,nQ9:()=>yh,PSg:()=>Vh,P6d:()=>Hh,VTu:()=>Ah,NHe:()=>Bh,ixf:()=>Oh,avJ:()=>wh,hjF:()=>Ch,s2N:()=>Ih,akx:()=>Lh,qNy:()=>Sh,qDm:()=>Ph,gSt:()=>Fh,DzX:()=>kh,rn6:()=>jh,rCC:()=>Th,_ND:()=>Dh,nmB:()=>Eh,EJz:()=>xh,frj:()=>Nh,ZQy:()=>$h,_t4:()=>Rh,TCy:()=>_h,KrZ:()=>Uh,hgC:()=>Gh,pHt:()=>qh,WGv:()=>Wh,HlX:()=>Kh,Qxd:()=>Jh,Eu1:()=>Zh,RXn:()=>Xh,FON:()=>Yh,F2U:()=>Qh,y0d:()=>au,_EL:()=>tu,k_T:()=>eu,maT:()=>nu,gLV:()=>iu,LLn:()=>ru,c$u:()=>ou,wsb:()=>lu,WL9:()=>cu,F8P:()=>su,yJN:()=>hu,Oa7:()=>uu,y31:()=>du,jV0:()=>pu,W2x:()=>vu,ybu:()=>fu,QKF:()=>mu,_FA:()=>zu,P3I:()=>bu,Zli:()=>gu,W9z:()=>Mu,nNO:()=>yu,RHl:()=>Vu,qGK:()=>Hu,wg8:()=>Au,AhF:()=>Bu,ta9:()=>Ou,sab:()=>wu,sox:()=>Cu,p6A:()=>Iu,m6y:()=>Lu,SGV:()=>Su,GRE:()=>Pu,AtF:()=>Fu,eJF:()=>ku,lfo:()=>ju,cky:()=>Tu,Ncy:()=>Du,FRd:()=>Eu,gob:()=>xu,LcZ:()=>Nu,oOD:()=>$u,Ac7:()=>Ru,azw:()=>_u,vHl:()=>Uu,j6L:()=>Gu,vWU:()=>qu,c1o:()=>Wu,QTz:()=>Ku,O6A:()=>Ju,ZPq:()=>Zu,yG3:()=>Xu,EET:()=>Yu,DK7:()=>Qu,yHW:()=>ad,s00:()=>td,zaM:()=>ed,Zcn:()=>nd,Y46:()=>id,yAy:()=>rd,zy5:()=>od,zyH:()=>ld,Dhx:()=>cd,k7v:()=>sd,M7A:()=>hd,iF5:()=>ud,ZVB:()=>dd,zEG:()=>pd,igA:()=>vd,orA:()=>fd,kQG:()=>md,rux:()=>zd,r1L:()=>bd,IOy:()=>gd,Te7:()=>Md,L5L:()=>yd,lKq:()=>Vd,xxm:()=>Hd,u8C:()=>Ad,WOM:()=>Bd,AZO:()=>Od,Q7M:()=>wd,Vwd:()=>Cd,XaZ:()=>Id,$HC:()=>Ld,tZ5:()=>Sd,OyK:()=>Pd,nq8:()=>Fd,mq7:()=>kd,Bce:()=>jd,eM:()=>Td,WcR:()=>Dd,AJ8:()=>Ed,usy:()=>xd,jL1:()=>Nd,vId:()=>$d,EzO:()=>Rd,agd:()=>_d,VZH:()=>Ud,Uv_:()=>Gd,Cfs:()=>qd,G49:()=>Wd,RgY:()=>Kd,VO9:()=>Jd,sNo:()=>Zd,DYR:()=>Xd,eUA:()=>Yd,Ynb:()=>Qd,jer:()=>ap,q$g:()=>tp,xX9:()=>ep,GUc:()=>np,RLE:()=>ip,y5:()=>rp,YOR:()=>op,yKu:()=>lp,p0d:()=>cp,hM1:()=>sp,oUn:()=>hp,Jyp:()=>up,xLz:()=>dp,UNU:()=>pp,yXq:()=>vp,mAP:()=>fp,ajv:()=>mp,oqW:()=>zp,YYH:()=>bp,csc:()=>gp,TaD:()=>Mp,q6S:()=>yp,PAb:()=>Vp,WJh:()=>Hp,Zru:()=>Ap,rAx:()=>Bp,ps2:()=>Op,ul4:()=>wp,Fj8:()=>Cp,EYW:()=>Ip,KPx:()=>Lp,x9R:()=>Sp,Ja0:()=>Pp,HZj:()=>Fp,a1C:()=>kp,CLd:()=>jp,MyA:()=>Tp,hjn:()=>Dp,XyE:()=>Ep,DuK:()=>xp,GAi:()=>Np,$i3:()=>$p,A46:()=>Rp,HSA:()=>_p,Mg:()=>Up,yXV:()=>Gp,jmp:()=>qp,jfK:()=>Wp,WoP:()=>Kp,ETj:()=>Jp,KwU:()=>Zp,Tlw:()=>Xp,W88:()=>Yp,My5:()=>Qp,E9m:()=>av,rnt:()=>tv,eA6:()=>ev,wIM:()=>nv,QNB:()=>iv,t8m:()=>rv,N4C:()=>ov,y2d:()=>lv,vSe:()=>cv,AQ:()=>sv,vL1:()=>hv,reo:()=>uv,PaN:()=>dv,tW7:()=>pv,f3e:()=>vv,GbQ:()=>fv,VJW:()=>mv,$nq:()=>zv,Ryo:()=>bv,ys_:()=>gv,qYD:()=>Mv,gpu:()=>yv,HMY:()=>Vv,Arq:()=>Hv,WfC:()=>Av,rsw:()=>Bv,zx0:()=>Ov,$CA:()=>wv,$XH:()=>Cv,qVW:()=>Iv,o6z:()=>Lv,Czj:()=>Sv,xY_:()=>Pv,sNP:()=>Fv,P5f:()=>kv,MYu:()=>jv,WeQ:()=>Tv,EOy:()=>Dv,f:()=>Ev,Hi_:()=>xv,hkE:()=>Nv,$7x:()=>$v,E4S:()=>Rv,NuJ:()=>_v,GYj:()=>Uv,gOI:()=>Gv,gjx:()=>qv,iKS:()=>Wv,aBG:()=>Kv,MmV:()=>Jv,yV9:()=>Zv,kDA:()=>Xv,JJX:()=>Yv,pi2:()=>Qv,Fwy:()=>af,nAd:()=>tf,sWz:()=>ef,cuk:()=>nf,eWA:()=>rf,Rhq:()=>of,Wv3:()=>lf,YmD:()=>cf,Gi0:()=>sf,N7z:()=>hf,K2s:()=>uf,Wf7:()=>df,K8Q:()=>pf,kEx:()=>vf,$xx:()=>ff,Ntn:()=>mf,deY:()=>zf,FYw:()=>bf,agP:()=>gf,Vvz:()=>Mf,FHg:()=>yf,yfP:()=>Vf,c0s:()=>Hf,MVe:()=>Af,$dE:()=>Bf,qX_:()=>Of,J2U:()=>wf,cUy:()=>Cf,qhD:()=>If,Ncg:()=>Lf,GKk:()=>Sf,Kjd:()=>Pf,nI_:()=>Ff,q3S:()=>kf,u$A:()=>jf,rSi:()=>Tf,L5v:()=>Df,ZGd:()=>Ef,BUE:()=>xf,CqF:()=>Nf,$4y:()=>$f,UZG:()=>Rf,CA6:()=>_f,rdT:()=>Uf,Qd2:()=>Gf,AXi:()=>qf,OE7:()=>Wf,tiA:()=>Kf,Ub7:()=>Jf,XI2:()=>Zf,HZh:()=>Xf,D2f:()=>Yf,T7F:()=>Qf,CkZ:()=>am,akn:()=>tm,TnF:()=>em,ZV1:()=>nm,_pQ:()=>im,Spe:()=>rm,Gbt:()=>om,W2s:()=>lm,oap:()=>cm,jLX:()=>sm,GrX:()=>hm,WPR:()=>um,ZW:()=>dm,MJF:()=>pm,N0Z:()=>vm,A3g:()=>fm,McT:()=>mm,dnK:()=>zm,W8A:()=>bm,i3I:()=>gm,e7l:()=>Mm,IuR:()=>ym,FlF:()=>Vm,gPx:()=>Hm,htG:()=>Am,OlH:()=>Bm,Ag5:()=>Om,x5$:()=>wm,_nU:()=>Cm,WAF:()=>Im,oj9:()=>Lm,E27:()=>Sm,fSX:()=>Pm,POB:()=>Fm,DGt:()=>km,_0y:()=>jm,RFg:()=>Tm,zSG:()=>Dm,gVW:()=>Em,cZ3:()=>xm,Oo5:()=>Nm,MZ$:()=>$m,nqX:()=>Rm,Ght:()=>_m,KQk:()=>Um,QcY:()=>Gm,LW6:()=>qm,hJ4:()=>Wm,jvv:()=>Km,cEM:()=>Jm,Lxs:()=>Zm,y$B:()=>Xm,WZy:()=>Ym,MQZ:()=>Qm,RfG:()=>az,zKL:()=>tz,qBk:()=>ez,rwy:()=>nz,tAv:()=>iz,FUP:()=>rz,Jof:()=>oz,JSo:()=>lz,ETc:()=>cz,rfr:()=>sz,S3:()=>hz,KsY:()=>uz,JYK:()=>dz,oxP:()=>pz,dZN:()=>vz,HUF:()=>fz,C5U:()=>mz,Nr6:()=>zz,OBP:()=>bz,_e0:()=>gz,O7q:()=>Mz,y8h:()=>yz,WRF:()=>Vz,Akv:()=>Hz,FIt:()=>Az,r_A:()=>Bz,bPd:()=>Oz,un5:()=>wz,w4u:()=>Cz,J5O:()=>Iz,avs:()=>Lz,xxT:()=>Sz,fcN:()=>Pz,B3Y:()=>Fz,CYn:()=>kz,RUg:()=>jz,EdZ:()=>Tz,wcC:()=>Dz,BGW:()=>Ez,DOj:()=>xz,Hu2:()=>Nz,Ybx:()=>$z,Sle:()=>Rz,G_Q:()=>_z,tVr:()=>Uz,vfk:()=>Gz,oCR:()=>qz,Fzw:()=>Wz,l2U:()=>Kz,_iv:()=>Jz,Svn:()=>Zz,Oyw:()=>Xz,FgQ:()=>Yz,VG8:()=>Qz,RXT:()=>ab,pbm:()=>tb,ijN:()=>eb,OO7:()=>nb,kIL:()=>ib,fhH:()=>rb,D62:()=>ob,$o4:()=>lb,No$:()=>cb,pcF:()=>sb,gRs:()=>hb,ZK2:()=>ub,ALr:()=>db,yyI:()=>pb,QO9:()=>vb,PaI:()=>fb,nCR:()=>mb,Dch:()=>zb,rO8:()=>bb,CJN:()=>gb,uTS:()=>Mb,FKb:()=>yb,CzI:()=>Vb,iPV:()=>Hb,pfP:()=>Ab,mOG:()=>Bb,Ttd:()=>Ob,f1L:()=>wb,HQ2:()=>Cb,rv6:()=>Ib,XTo:()=>Lb,j7I:()=>Sb,vNm:()=>Pb,WSs:()=>Fb,iIu:()=>kb,Aq5:()=>jb,o6o:()=>Tb,s3j:()=>Db,HON:()=>Eb,$Ib:()=>xb,BNe:()=>Nb,N$8:()=>$b,sax:()=>Rb,OjH:()=>_b,aX_:()=>Ub,iqX:()=>Gb,g8Q:()=>qb,BDZ:()=>Wb,rsC:()=>Kb,EcO:()=>Jb,aOn:()=>Zb,POT:()=>Xb,lJj:()=>Yb,JXn:()=>Qb,xqZ:()=>ag,b_U:()=>tg,g2l:()=>eg,dqv:()=>ng,d5d:()=>ig,g1R:()=>rg,N0k:()=>og,ust:()=>lg,Gxk:()=>cg,ptJ:()=>sg,YVL:()=>hg,iTn:()=>ug,USQ:()=>dg,cm8:()=>pg,yhH:()=>vg,MDD:()=>fg,sYz:()=>mg,IpB:()=>zg,BDP:()=>bg,_HZ:()=>gg,NWp:()=>Mg,xi8:()=>yg,bAN:()=>Vg,EeP:()=>Hg,Yqx:()=>Ag,CSB:()=>Bg,ifk:()=>Og,lq6:()=>wg,H7l:()=>Cg,Dah:()=>Ig,EFm:()=>Lg,Ej8:()=>Sg,xWj:()=>Pg,XyW:()=>Fg,sm9:()=>kg,QcS:()=>jg,PUJ:()=>Tg,Za9:()=>Dg,b$2:()=>Eg,cJK:()=>xg,olm:()=>Ng,Wjf:()=>$g,Y6U:()=>Rg,Lln:()=>_g,mlx:()=>Ug,T1o:()=>Gg,Rq4:()=>qg,EQi:()=>Wg,PP4:()=>Kg,jVl:()=>Jg,zlL:()=>Zg,aFN:()=>Xg,Hs8:()=>Yg,vKM:()=>Qg,yrP:()=>aM,Djs:()=>tM,aYp:()=>eM,hNJ:()=>nM,rr1:()=>iM,DoS:()=>rM,niF:()=>oM,C8q:()=>lM,aHb:()=>cM,Qxm:()=>sM,wSJ:()=>hM,K4x:()=>uM,t$R:()=>dM,JSR:()=>pM,Swf:()=>vM,JIg:()=>fM,$14:()=>mM,JQd:()=>zM,uui:()=>bM,N5r:()=>gM,qys:()=>MM,CM6:()=>yM,Sxj:()=>VM,OyA:()=>HM,$oK:()=>AM,WdI:()=>BM,ph3:()=>OM,Ijv:()=>wM,qtp:()=>CM,HSt:()=>IM,pIj:()=>LM,Jdj:()=>SM,AFY:()=>PM,_3c:()=>FM,bu:()=>kM,YAG:()=>jM,VEf:()=>TM,DiT:()=>DM,U9A:()=>EM,kLm:()=>xM,Xg8:()=>NM,psN:()=>$M,s0p:()=>RM,jyS:()=>_M,HHI:()=>UM,Ql_:()=>GM,rZ6:()=>qM,klB:()=>WM,nip:()=>KM,GSI:()=>JM,vcL:()=>ZM,Sp1:()=>XM,GAz:()=>YM,DnR:()=>QM,P8C:()=>ay,iGp:()=>ty,b_Y:()=>ey,Nr_:()=>ny,Yoy:()=>iy,HQ4:()=>ry,oJp:()=>oy,WvV:()=>ly,zsJ:()=>cy,LfJ:()=>sy,tpz:()=>hy,Rvz:()=>uy,fFA:()=>dy,bP8:()=>py,UIq:()=>vy,dwG:()=>fy,$3g:()=>my,jyD:()=>zy,T1q:()=>by,Mci:()=>gy,pb8:()=>My,xBS:()=>yy,YBL:()=>Vy,V6_:()=>Hy,e5V:()=>Ay,oYt:()=>By,lr5:()=>Oy,jj_:()=>wy,L0Q:()=>Cy,rWC:()=>Iy,z76:()=>Ly,$T$:()=>Sy,YSP:()=>Py,BXe:()=>Fy,YM1:()=>ky,bBG:()=>jy,PzY:()=>Ty,Ja9:()=>Dy,EDu:()=>Ey,R$w:()=>xy,XqR:()=>Ny,ZNk:()=>$y,ETC:()=>Ry,Szf:()=>_y,Jwj:()=>Uy,iZZ:()=>Gy,EeO:()=>qy,ypn:()=>Wy,vaB:()=>Ky,f6o:()=>Jy,dU_:()=>Zy,xYq:()=>Xy,aXh:()=>Yy,BG2:()=>Qy,FdU:()=>aV,cX_:()=>tV,wiA:()=>eV,jES:()=>nV,tFD:()=>iV,lI6:()=>rV,nn6:()=>oV,HZk:()=>lV,vrL:()=>cV,KHG:()=>sV,Tet:()=>hV,VqN:()=>uV,IYS:()=>dV,iQ7:()=>pV,JEW:()=>vV,VHp:()=>fV,w_D:()=>mV,ayv:()=>zV,ZyB:()=>bV,prG:()=>gV,AUI:()=>MV,aAC:()=>yV,qmT:()=>VV,GEo:()=>HV,hY9:()=>AV,X1s:()=>BV,YD2:()=>OV,EKW:()=>wV,DM6:()=>CV,jDM:()=>IV,_VC:()=>LV,xId:()=>SV,RnR:()=>PV,fBY:()=>FV,hvI:()=>kV,Nf5:()=>jV,Uex:()=>TV,FLd:()=>DV,wKc:()=>EV,Dlh:()=>xV,APx:()=>NV,mYi:()=>$V,s$o:()=>RV,ASE:()=>_V,Oos:()=>UV,nOz:()=>GV,M1T:()=>qV,OPm:()=>WV,ztl:()=>KV,pwR:()=>JV,gK0:()=>ZV,n1l:()=>XV,H7n:()=>YV,sq6:()=>QV,uqy:()=>aH,ILS:()=>tH,A9:()=>eH,oyf:()=>nH,b7m:()=>iH,jhH:()=>rH,Nuo:()=>oH,aLw:()=>lH,saS:()=>cH,DkS:()=>sH,rI9:()=>hH,nox:()=>uH,jsZ:()=>dH,hTi:()=>pH,Iqc:()=>vH,_hV:()=>fH,FlM:()=>mH,K1O:()=>zH,dst:()=>bH,ewq:()=>gH,mo7:()=>MH,X8t:()=>yH,udp:()=>VH,M81:()=>HH,qmC:()=>AH,b4Q:()=>BH,BmI:()=>OH,A82:()=>wH,MCA:()=>CH,ZmE:()=>IH,Kg_:()=>LH,HHY:()=>SH,Kko:()=>PH,j7$:()=>FH,q9f:()=>kH,hDS:()=>jH,Uz9:()=>TH,K1h:()=>DH,bTh:()=>EH,n_g:()=>xH,wJZ:()=>NH,WO2:()=>$H,eSm:()=>RH,pT1:()=>_H,ymc:()=>UH,ehy:()=>GH,x9k:()=>qH,$V2:()=>WH,G0y:()=>KH,uL:()=>JH,uSV:()=>ZH,HA4:()=>XH,PNX:()=>YH,ddZ:()=>QH,vHp:()=>aA,Bc6:()=>tA,dvm:()=>eA,Y1Z:()=>nA,kwf:()=>iA,BR7:()=>rA,Caz:()=>oA,Wdl:()=>lA,NpS:()=>cA,N9Y:()=>sA,Qr2:()=>hA,wYz:()=>uA,yrV:()=>dA,Fw_:()=>pA,lLE:()=>vA,kxn:()=>fA,Ulf:()=>mA,ViN:()=>zA,zO$:()=>bA,K03:()=>gA,KF5:()=>MA,Ivm:()=>yA,Grw:()=>VA,z_2:()=>HA,uR$:()=>AA,MIh:()=>BA,aEb:()=>OA,XnP:()=>wA,R8C:()=>CA,hOD:()=>IA,cu0:()=>LA,xlC:()=>SA,ZGm:()=>PA,e_V:()=>FA,zm3:()=>kA,Wet:()=>jA,xcC:()=>TA});var n=e(1915),i=e(69558),r=e(67040),o=e(46595),l=e(39143);function c(a,t){var e=Object.keys(a);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(a);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(a,t).enumerable}))),e.push.apply(e,n)}return e}function s(a){for(var t=1;t'),f=d("AlarmFill",''),m=d("AlignBottom",''),z=d("AlignCenter",''),b=d("AlignEnd",''),g=d("AlignMiddle",''),M=d("AlignStart",''),y=d("AlignTop",''),V=d("Alt",''),H=d("App",''),A=d("AppIndicator",''),B=d("Archive",''),O=d("ArchiveFill",''),w=d("Arrow90degDown",''),C=d("Arrow90degLeft",''),I=d("Arrow90degRight",''),L=d("Arrow90degUp",''),S=d("ArrowBarDown",''),P=d("ArrowBarLeft",''),F=d("ArrowBarRight",''),k=d("ArrowBarUp",''),j=d("ArrowClockwise",''),T=d("ArrowCounterclockwise",''),D=d("ArrowDown",''),E=d("ArrowDownCircle",''),x=d("ArrowDownCircleFill",''),N=d("ArrowDownLeft",''),$=d("ArrowDownLeftCircle",''),R=d("ArrowDownLeftCircleFill",''),_=d("ArrowDownLeftSquare",''),U=d("ArrowDownLeftSquareFill",''),G=d("ArrowDownRight",''),q=d("ArrowDownRightCircle",''),W=d("ArrowDownRightCircleFill",''),K=d("ArrowDownRightSquare",''),J=d("ArrowDownRightSquareFill",''),Z=d("ArrowDownShort",''),X=d("ArrowDownSquare",''),Y=d("ArrowDownSquareFill",''),Q=d("ArrowDownUp",''),aa=d("ArrowLeft",''),ta=d("ArrowLeftCircle",''),ea=d("ArrowLeftCircleFill",''),na=d("ArrowLeftRight",''),ia=d("ArrowLeftShort",''),ra=d("ArrowLeftSquare",''),oa=d("ArrowLeftSquareFill",''),la=d("ArrowRepeat",''),ca=d("ArrowReturnLeft",''),sa=d("ArrowReturnRight",''),ha=d("ArrowRight",''),ua=d("ArrowRightCircle",''),da=d("ArrowRightCircleFill",''),pa=d("ArrowRightShort",''),va=d("ArrowRightSquare",''),fa=d("ArrowRightSquareFill",''),ma=d("ArrowUp",''),za=d("ArrowUpCircle",''),ba=d("ArrowUpCircleFill",''),ga=d("ArrowUpLeft",''),Ma=d("ArrowUpLeftCircle",''),ya=d("ArrowUpLeftCircleFill",''),Va=d("ArrowUpLeftSquare",''),Ha=d("ArrowUpLeftSquareFill",''),Aa=d("ArrowUpRight",''),Ba=d("ArrowUpRightCircle",''),Oa=d("ArrowUpRightCircleFill",''),wa=d("ArrowUpRightSquare",''),Ca=d("ArrowUpRightSquareFill",''),Ia=d("ArrowUpShort",''),La=d("ArrowUpSquare",''),Sa=d("ArrowUpSquareFill",''),Pa=d("ArrowsAngleContract",''),Fa=d("ArrowsAngleExpand",''),ka=d("ArrowsCollapse",''),ja=d("ArrowsExpand",''),Ta=d("ArrowsFullscreen",''),Da=d("ArrowsMove",''),Ea=d("AspectRatio",''),xa=d("AspectRatioFill",''),Na=d("Asterisk",''),$a=d("At",''),Ra=d("Award",''),_a=d("AwardFill",''),Ua=d("Back",''),Ga=d("Backspace",''),qa=d("BackspaceFill",''),Wa=d("BackspaceReverse",''),Ka=d("BackspaceReverseFill",''),Ja=d("Badge3d",''),Za=d("Badge3dFill",''),Xa=d("Badge4k",''),Ya=d("Badge4kFill",''),Qa=d("Badge8k",''),at=d("Badge8kFill",''),tt=d("BadgeAd",''),et=d("BadgeAdFill",''),nt=d("BadgeAr",''),it=d("BadgeArFill",''),rt=d("BadgeCc",''),ot=d("BadgeCcFill",''),lt=d("BadgeHd",''),ct=d("BadgeHdFill",''),st=d("BadgeTm",''),ht=d("BadgeTmFill",''),ut=d("BadgeVo",''),dt=d("BadgeVoFill",''),pt=d("BadgeVr",''),vt=d("BadgeVrFill",''),ft=d("BadgeWc",''),mt=d("BadgeWcFill",''),zt=d("Bag",''),bt=d("BagCheck",''),gt=d("BagCheckFill",''),Mt=d("BagDash",''),yt=d("BagDashFill",''),Vt=d("BagFill",''),Ht=d("BagPlus",''),At=d("BagPlusFill",''),Bt=d("BagX",''),Ot=d("BagXFill",''),wt=d("Bank",''),Ct=d("Bank2",''),It=d("BarChart",''),Lt=d("BarChartFill",''),St=d("BarChartLine",''),Pt=d("BarChartLineFill",''),Ft=d("BarChartSteps",''),kt=d("Basket",''),jt=d("Basket2",''),Tt=d("Basket2Fill",''),Dt=d("Basket3",''),Et=d("Basket3Fill",''),xt=d("BasketFill",''),Nt=d("Battery",''),$t=d("BatteryCharging",''),Rt=d("BatteryFull",''),_t=d("BatteryHalf",''),Ut=d("Bell",''),Gt=d("BellFill",''),qt=d("BellSlash",''),Wt=d("BellSlashFill",''),Kt=d("Bezier",''),Jt=d("Bezier2",''),Zt=d("Bicycle",''),Xt=d("Binoculars",''),Yt=d("BinocularsFill",''),Qt=d("BlockquoteLeft",''),ae=d("BlockquoteRight",''),te=d("Book",''),ee=d("BookFill",''),ne=d("BookHalf",''),ie=d("Bookmark",''),re=d("BookmarkCheck",''),oe=d("BookmarkCheckFill",''),le=d("BookmarkDash",''),ce=d("BookmarkDashFill",''),se=d("BookmarkFill",''),he=d("BookmarkHeart",''),ue=d("BookmarkHeartFill",''),de=d("BookmarkPlus",''),pe=d("BookmarkPlusFill",''),ve=d("BookmarkStar",''),fe=d("BookmarkStarFill",''),me=d("BookmarkX",''),ze=d("BookmarkXFill",''),be=d("Bookmarks",''),ge=d("BookmarksFill",''),Me=d("Bookshelf",''),ye=d("Bootstrap",''),Ve=d("BootstrapFill",''),He=d("BootstrapReboot",''),Ae=d("Border",''),Be=d("BorderAll",''),Oe=d("BorderBottom",''),we=d("BorderCenter",''),Ce=d("BorderInner",''),Ie=d("BorderLeft",''),Le=d("BorderMiddle",''),Se=d("BorderOuter",''),Pe=d("BorderRight",''),Fe=d("BorderStyle",''),ke=d("BorderTop",''),je=d("BorderWidth",''),Te=d("BoundingBox",''),De=d("BoundingBoxCircles",''),Ee=d("Box",''),xe=d("BoxArrowDown",''),Ne=d("BoxArrowDownLeft",''),$e=d("BoxArrowDownRight",''),Re=d("BoxArrowInDown",''),_e=d("BoxArrowInDownLeft",''),Ue=d("BoxArrowInDownRight",''),Ge=d("BoxArrowInLeft",''),qe=d("BoxArrowInRight",''),We=d("BoxArrowInUp",''),Ke=d("BoxArrowInUpLeft",''),Je=d("BoxArrowInUpRight",''),Ze=d("BoxArrowLeft",''),Xe=d("BoxArrowRight",''),Ye=d("BoxArrowUp",''),Qe=d("BoxArrowUpLeft",''),an=d("BoxArrowUpRight",''),tn=d("BoxSeam",''),en=d("Braces",''),nn=d("Bricks",''),rn=d("Briefcase",''),on=d("BriefcaseFill",''),ln=d("BrightnessAltHigh",''),cn=d("BrightnessAltHighFill",''),sn=d("BrightnessAltLow",''),hn=d("BrightnessAltLowFill",''),un=d("BrightnessHigh",''),dn=d("BrightnessHighFill",''),pn=d("BrightnessLow",''),vn=d("BrightnessLowFill",''),fn=d("Broadcast",''),mn=d("BroadcastPin",''),zn=d("Brush",''),bn=d("BrushFill",''),gn=d("Bucket",''),Mn=d("BucketFill",''),yn=d("Bug",''),Vn=d("BugFill",''),Hn=d("Building",''),An=d("Bullseye",''),Bn=d("Calculator",''),On=d("CalculatorFill",''),wn=d("Calendar",''),Cn=d("Calendar2",''),In=d("Calendar2Check",''),Ln=d("Calendar2CheckFill",''),Sn=d("Calendar2Date",''),Pn=d("Calendar2DateFill",''),Fn=d("Calendar2Day",''),kn=d("Calendar2DayFill",''),jn=d("Calendar2Event",''),Tn=d("Calendar2EventFill",''),Dn=d("Calendar2Fill",''),En=d("Calendar2Minus",''),xn=d("Calendar2MinusFill",''),Nn=d("Calendar2Month",''),$n=d("Calendar2MonthFill",''),Rn=d("Calendar2Plus",''),_n=d("Calendar2PlusFill",''),Un=d("Calendar2Range",''),Gn=d("Calendar2RangeFill",''),qn=d("Calendar2Week",''),Wn=d("Calendar2WeekFill",''),Kn=d("Calendar2X",''),Jn=d("Calendar2XFill",''),Zn=d("Calendar3",''),Xn=d("Calendar3Event",''),Yn=d("Calendar3EventFill",''),Qn=d("Calendar3Fill",''),ai=d("Calendar3Range",''),ti=d("Calendar3RangeFill",''),ei=d("Calendar3Week",''),ni=d("Calendar3WeekFill",''),ii=d("Calendar4",''),ri=d("Calendar4Event",''),oi=d("Calendar4Range",''),li=d("Calendar4Week",''),ci=d("CalendarCheck",''),si=d("CalendarCheckFill",''),hi=d("CalendarDate",''),ui=d("CalendarDateFill",''),di=d("CalendarDay",''),pi=d("CalendarDayFill",''),vi=d("CalendarEvent",''),fi=d("CalendarEventFill",''),mi=d("CalendarFill",''),zi=d("CalendarMinus",''),bi=d("CalendarMinusFill",''),gi=d("CalendarMonth",''),Mi=d("CalendarMonthFill",''),yi=d("CalendarPlus",''),Vi=d("CalendarPlusFill",''),Hi=d("CalendarRange",''),Ai=d("CalendarRangeFill",''),Bi=d("CalendarWeek",''),Oi=d("CalendarWeekFill",''),wi=d("CalendarX",''),Ci=d("CalendarXFill",''),Ii=d("Camera",''),Li=d("Camera2",''),Si=d("CameraFill",''),Pi=d("CameraReels",''),Fi=d("CameraReelsFill",''),ki=d("CameraVideo",''),ji=d("CameraVideoFill",''),Ti=d("CameraVideoOff",''),Di=d("CameraVideoOffFill",''),Ei=d("Capslock",''),xi=d("CapslockFill",''),Ni=d("CardChecklist",''),$i=d("CardHeading",''),Ri=d("CardImage",''),_i=d("CardList",''),Ui=d("CardText",''),Gi=d("CaretDown",''),qi=d("CaretDownFill",''),Wi=d("CaretDownSquare",''),Ki=d("CaretDownSquareFill",''),Ji=d("CaretLeft",''),Zi=d("CaretLeftFill",''),Xi=d("CaretLeftSquare",''),Yi=d("CaretLeftSquareFill",''),Qi=d("CaretRight",''),ar=d("CaretRightFill",''),tr=d("CaretRightSquare",''),er=d("CaretRightSquareFill",''),nr=d("CaretUp",''),ir=d("CaretUpFill",''),rr=d("CaretUpSquare",''),or=d("CaretUpSquareFill",''),lr=d("Cart",''),cr=d("Cart2",''),sr=d("Cart3",''),hr=d("Cart4",''),ur=d("CartCheck",''),dr=d("CartCheckFill",''),pr=d("CartDash",''),vr=d("CartDashFill",''),fr=d("CartFill",''),mr=d("CartPlus",''),zr=d("CartPlusFill",''),br=d("CartX",''),gr=d("CartXFill",''),Mr=d("Cash",''),yr=d("CashCoin",''),Vr=d("CashStack",''),Hr=d("Cast",''),Ar=d("Chat",''),Br=d("ChatDots",''),Or=d("ChatDotsFill",''),wr=d("ChatFill",''),Cr=d("ChatLeft",''),Ir=d("ChatLeftDots",''),Lr=d("ChatLeftDotsFill",''),Sr=d("ChatLeftFill",''),Pr=d("ChatLeftQuote",''),Fr=d("ChatLeftQuoteFill",''),kr=d("ChatLeftText",''),jr=d("ChatLeftTextFill",''),Tr=d("ChatQuote",''),Dr=d("ChatQuoteFill",''),Er=d("ChatRight",''),xr=d("ChatRightDots",''),Nr=d("ChatRightDotsFill",''),$r=d("ChatRightFill",''),Rr=d("ChatRightQuote",''),_r=d("ChatRightQuoteFill",''),Ur=d("ChatRightText",''),Gr=d("ChatRightTextFill",''),qr=d("ChatSquare",''),Wr=d("ChatSquareDots",''),Kr=d("ChatSquareDotsFill",''),Jr=d("ChatSquareFill",''),Zr=d("ChatSquareQuote",''),Xr=d("ChatSquareQuoteFill",''),Yr=d("ChatSquareText",''),Qr=d("ChatSquareTextFill",''),ao=d("ChatText",''),to=d("ChatTextFill",''),eo=d("Check",''),no=d("Check2",''),io=d("Check2All",''),ro=d("Check2Circle",''),oo=d("Check2Square",''),lo=d("CheckAll",''),co=d("CheckCircle",''),so=d("CheckCircleFill",''),ho=d("CheckLg",''),uo=d("CheckSquare",''),po=d("CheckSquareFill",''),vo=d("ChevronBarContract",''),fo=d("ChevronBarDown",''),mo=d("ChevronBarExpand",''),zo=d("ChevronBarLeft",''),bo=d("ChevronBarRight",''),go=d("ChevronBarUp",''),Mo=d("ChevronCompactDown",''),yo=d("ChevronCompactLeft",''),Vo=d("ChevronCompactRight",''),Ho=d("ChevronCompactUp",''),Ao=d("ChevronContract",''),Bo=d("ChevronDoubleDown",''),Oo=d("ChevronDoubleLeft",''),wo=d("ChevronDoubleRight",''),Co=d("ChevronDoubleUp",''),Io=d("ChevronDown",''),Lo=d("ChevronExpand",''),So=d("ChevronLeft",''),Po=d("ChevronRight",''),Fo=d("ChevronUp",''),ko=d("Circle",''),jo=d("CircleFill",''),To=d("CircleHalf",''),Do=d("CircleSquare",''),Eo=d("Clipboard",''),xo=d("ClipboardCheck",''),No=d("ClipboardData",''),$o=d("ClipboardMinus",''),Ro=d("ClipboardPlus",''),_o=d("ClipboardX",''),Uo=d("Clock",''),Go=d("ClockFill",''),qo=d("ClockHistory",''),Wo=d("Cloud",''),Ko=d("CloudArrowDown",''),Jo=d("CloudArrowDownFill",''),Zo=d("CloudArrowUp",''),Xo=d("CloudArrowUpFill",''),Yo=d("CloudCheck",''),Qo=d("CloudCheckFill",''),al=d("CloudDownload",''),tl=d("CloudDownloadFill",''),el=d("CloudDrizzle",''),nl=d("CloudDrizzleFill",''),il=d("CloudFill",''),rl=d("CloudFog",''),ol=d("CloudFog2",''),ll=d("CloudFog2Fill",''),cl=d("CloudFogFill",''),sl=d("CloudHail",''),hl=d("CloudHailFill",''),ul=d("CloudHaze",''),dl=d("CloudHaze1",''),pl=d("CloudHaze2Fill",''),vl=d("CloudHazeFill",''),fl=d("CloudLightning",''),ml=d("CloudLightningFill",''),zl=d("CloudLightningRain",''),bl=d("CloudLightningRainFill",''),gl=d("CloudMinus",''),Ml=d("CloudMinusFill",''),yl=d("CloudMoon",''),Vl=d("CloudMoonFill",''),Hl=d("CloudPlus",''),Al=d("CloudPlusFill",''),Bl=d("CloudRain",''),Ol=d("CloudRainFill",''),wl=d("CloudRainHeavy",''),Cl=d("CloudRainHeavyFill",''),Il=d("CloudSlash",''),Ll=d("CloudSlashFill",''),Sl=d("CloudSleet",''),Pl=d("CloudSleetFill",''),Fl=d("CloudSnow",''),kl=d("CloudSnowFill",''),jl=d("CloudSun",''),Tl=d("CloudSunFill",''),Dl=d("CloudUpload",''),El=d("CloudUploadFill",''),xl=d("Clouds",''),Nl=d("CloudsFill",''),$l=d("Cloudy",''),Rl=d("CloudyFill",''),_l=d("Code",''),Ul=d("CodeSlash",''),Gl=d("CodeSquare",''),ql=d("Coin",''),Wl=d("Collection",''),Kl=d("CollectionFill",''),Jl=d("CollectionPlay",''),Zl=d("CollectionPlayFill",''),Xl=d("Columns",''),Yl=d("ColumnsGap",''),Ql=d("Command",''),ac=d("Compass",''),tc=d("CompassFill",''),ec=d("Cone",''),nc=d("ConeStriped",''),ic=d("Controller",''),rc=d("Cpu",''),oc=d("CpuFill",''),lc=d("CreditCard",''),cc=d("CreditCard2Back",''),sc=d("CreditCard2BackFill",''),hc=d("CreditCard2Front",''),uc=d("CreditCard2FrontFill",''),dc=d("CreditCardFill",''),pc=d("Crop",''),vc=d("Cup",''),fc=d("CupFill",''),mc=d("CupStraw",''),zc=d("CurrencyBitcoin",''),bc=d("CurrencyDollar",''),gc=d("CurrencyEuro",''),Mc=d("CurrencyExchange",''),yc=d("CurrencyPound",''),Vc=d("CurrencyYen",''),Hc=d("Cursor",''),Ac=d("CursorFill",''),Bc=d("CursorText",''),Oc=d("Dash",''),wc=d("DashCircle",''),Cc=d("DashCircleDotted",''),Ic=d("DashCircleFill",''),Lc=d("DashLg",''),Sc=d("DashSquare",''),Pc=d("DashSquareDotted",''),Fc=d("DashSquareFill",''),kc=d("Diagram2",''),jc=d("Diagram2Fill",''),Tc=d("Diagram3",''),Dc=d("Diagram3Fill",''),Ec=d("Diamond",''),xc=d("DiamondFill",''),Nc=d("DiamondHalf",''),$c=d("Dice1",''),Rc=d("Dice1Fill",''),_c=d("Dice2",''),Uc=d("Dice2Fill",''),Gc=d("Dice3",''),qc=d("Dice3Fill",''),Wc=d("Dice4",''),Kc=d("Dice4Fill",''),Jc=d("Dice5",''),Zc=d("Dice5Fill",''),Xc=d("Dice6",''),Yc=d("Dice6Fill",''),Qc=d("Disc",''),as=d("DiscFill",''),ts=d("Discord",''),es=d("Display",''),ns=d("DisplayFill",''),is=d("DistributeHorizontal",''),rs=d("DistributeVertical",''),os=d("DoorClosed",''),ls=d("DoorClosedFill",''),cs=d("DoorOpen",''),ss=d("DoorOpenFill",''),hs=d("Dot",''),us=d("Download",''),ds=d("Droplet",''),ps=d("DropletFill",''),vs=d("DropletHalf",''),fs=d("Earbuds",''),ms=d("Easel",''),zs=d("EaselFill",''),bs=d("Egg",''),gs=d("EggFill",''),Ms=d("EggFried",''),ys=d("Eject",''),Vs=d("EjectFill",''),Hs=d("EmojiAngry",''),As=d("EmojiAngryFill",''),Bs=d("EmojiDizzy",''),Os=d("EmojiDizzyFill",''),ws=d("EmojiExpressionless",''),Cs=d("EmojiExpressionlessFill",''),Is=d("EmojiFrown",''),Ls=d("EmojiFrownFill",''),Ss=d("EmojiHeartEyes",''),Ps=d("EmojiHeartEyesFill",''),Fs=d("EmojiLaughing",''),ks=d("EmojiLaughingFill",''),js=d("EmojiNeutral",''),Ts=d("EmojiNeutralFill",''),Ds=d("EmojiSmile",''),Es=d("EmojiSmileFill",''),xs=d("EmojiSmileUpsideDown",''),Ns=d("EmojiSmileUpsideDownFill",''),$s=d("EmojiSunglasses",''),Rs=d("EmojiSunglassesFill",''),_s=d("EmojiWink",''),Us=d("EmojiWinkFill",''),Gs=d("Envelope",''),qs=d("EnvelopeFill",''),Ws=d("EnvelopeOpen",''),Ks=d("EnvelopeOpenFill",''),Js=d("Eraser",''),Zs=d("EraserFill",''),Xs=d("Exclamation",''),Ys=d("ExclamationCircle",''),Qs=d("ExclamationCircleFill",''),ah=d("ExclamationDiamond",''),th=d("ExclamationDiamondFill",''),eh=d("ExclamationLg",''),nh=d("ExclamationOctagon",''),ih=d("ExclamationOctagonFill",''),rh=d("ExclamationSquare",''),oh=d("ExclamationSquareFill",''),lh=d("ExclamationTriangle",''),ch=d("ExclamationTriangleFill",''),sh=d("Exclude",''),hh=d("Eye",''),uh=d("EyeFill",''),dh=d("EyeSlash",''),ph=d("EyeSlashFill",''),vh=d("Eyedropper",''),fh=d("Eyeglasses",''),mh=d("Facebook",''),zh=d("File",''),bh=d("FileArrowDown",''),gh=d("FileArrowDownFill",''),Mh=d("FileArrowUp",''),yh=d("FileArrowUpFill",''),Vh=d("FileBarGraph",''),Hh=d("FileBarGraphFill",''),Ah=d("FileBinary",''),Bh=d("FileBinaryFill",''),Oh=d("FileBreak",''),wh=d("FileBreakFill",''),Ch=d("FileCheck",''),Ih=d("FileCheckFill",''),Lh=d("FileCode",''),Sh=d("FileCodeFill",''),Ph=d("FileDiff",''),Fh=d("FileDiffFill",''),kh=d("FileEarmark",''),jh=d("FileEarmarkArrowDown",''),Th=d("FileEarmarkArrowDownFill",''),Dh=d("FileEarmarkArrowUp",''),Eh=d("FileEarmarkArrowUpFill",''),xh=d("FileEarmarkBarGraph",''),Nh=d("FileEarmarkBarGraphFill",''),$h=d("FileEarmarkBinary",''),Rh=d("FileEarmarkBinaryFill",''),_h=d("FileEarmarkBreak",''),Uh=d("FileEarmarkBreakFill",''),Gh=d("FileEarmarkCheck",''),qh=d("FileEarmarkCheckFill",''),Wh=d("FileEarmarkCode",''),Kh=d("FileEarmarkCodeFill",''),Jh=d("FileEarmarkDiff",''),Zh=d("FileEarmarkDiffFill",''),Xh=d("FileEarmarkEasel",''),Yh=d("FileEarmarkEaselFill",''),Qh=d("FileEarmarkExcel",''),au=d("FileEarmarkExcelFill",''),tu=d("FileEarmarkFill",''),eu=d("FileEarmarkFont",''),nu=d("FileEarmarkFontFill",''),iu=d("FileEarmarkImage",''),ru=d("FileEarmarkImageFill",''),ou=d("FileEarmarkLock",''),lu=d("FileEarmarkLock2",''),cu=d("FileEarmarkLock2Fill",''),su=d("FileEarmarkLockFill",''),hu=d("FileEarmarkMedical",''),uu=d("FileEarmarkMedicalFill",''),du=d("FileEarmarkMinus",''),pu=d("FileEarmarkMinusFill",''),vu=d("FileEarmarkMusic",''),fu=d("FileEarmarkMusicFill",''),mu=d("FileEarmarkPdf",''),zu=d("FileEarmarkPdfFill",''),bu=d("FileEarmarkPerson",''),gu=d("FileEarmarkPersonFill",''),Mu=d("FileEarmarkPlay",''),yu=d("FileEarmarkPlayFill",''),Vu=d("FileEarmarkPlus",''),Hu=d("FileEarmarkPlusFill",''),Au=d("FileEarmarkPost",''),Bu=d("FileEarmarkPostFill",''),Ou=d("FileEarmarkPpt",''),wu=d("FileEarmarkPptFill",''),Cu=d("FileEarmarkRichtext",''),Iu=d("FileEarmarkRichtextFill",''),Lu=d("FileEarmarkRuled",''),Su=d("FileEarmarkRuledFill",''),Pu=d("FileEarmarkSlides",''),Fu=d("FileEarmarkSlidesFill",''),ku=d("FileEarmarkSpreadsheet",''),ju=d("FileEarmarkSpreadsheetFill",''),Tu=d("FileEarmarkText",''),Du=d("FileEarmarkTextFill",''),Eu=d("FileEarmarkWord",''),xu=d("FileEarmarkWordFill",''),Nu=d("FileEarmarkX",''),$u=d("FileEarmarkXFill",''),Ru=d("FileEarmarkZip",''),_u=d("FileEarmarkZipFill",''),Uu=d("FileEasel",''),Gu=d("FileEaselFill",''),qu=d("FileExcel",''),Wu=d("FileExcelFill",''),Ku=d("FileFill",''),Ju=d("FileFont",''),Zu=d("FileFontFill",''),Xu=d("FileImage",''),Yu=d("FileImageFill",''),Qu=d("FileLock",''),ad=d("FileLock2",''),td=d("FileLock2Fill",''),ed=d("FileLockFill",''),nd=d("FileMedical",''),id=d("FileMedicalFill",''),rd=d("FileMinus",''),od=d("FileMinusFill",''),ld=d("FileMusic",''),cd=d("FileMusicFill",''),sd=d("FilePdf",''),hd=d("FilePdfFill",''),ud=d("FilePerson",''),dd=d("FilePersonFill",''),pd=d("FilePlay",''),vd=d("FilePlayFill",''),fd=d("FilePlus",''),md=d("FilePlusFill",''),zd=d("FilePost",''),bd=d("FilePostFill",''),gd=d("FilePpt",''),Md=d("FilePptFill",''),yd=d("FileRichtext",''),Vd=d("FileRichtextFill",''),Hd=d("FileRuled",''),Ad=d("FileRuledFill",''),Bd=d("FileSlides",''),Od=d("FileSlidesFill",''),wd=d("FileSpreadsheet",''),Cd=d("FileSpreadsheetFill",''),Id=d("FileText",''),Ld=d("FileTextFill",''),Sd=d("FileWord",''),Pd=d("FileWordFill",''),Fd=d("FileX",''),kd=d("FileXFill",''),jd=d("FileZip",''),Td=d("FileZipFill",''),Dd=d("Files",''),Ed=d("FilesAlt",''),xd=d("Film",''),Nd=d("Filter",''),$d=d("FilterCircle",''),Rd=d("FilterCircleFill",''),_d=d("FilterLeft",''),Ud=d("FilterRight",''),Gd=d("FilterSquare",''),qd=d("FilterSquareFill",''),Wd=d("Flag",''),Kd=d("FlagFill",''),Jd=d("Flower1",''),Zd=d("Flower2",''),Xd=d("Flower3",''),Yd=d("Folder",''),Qd=d("Folder2",''),ap=d("Folder2Open",''),tp=d("FolderCheck",''),ep=d("FolderFill",''),np=d("FolderMinus",''),ip=d("FolderPlus",''),rp=d("FolderSymlink",''),op=d("FolderSymlinkFill",''),lp=d("FolderX",''),cp=d("Fonts",''),sp=d("Forward",''),hp=d("ForwardFill",''),up=d("Front",''),dp=d("Fullscreen",''),pp=d("FullscreenExit",''),vp=d("Funnel",''),fp=d("FunnelFill",''),mp=d("Gear",''),zp=d("GearFill",''),bp=d("GearWide",''),gp=d("GearWideConnected",''),Mp=d("Gem",''),yp=d("GenderAmbiguous",''),Vp=d("GenderFemale",''),Hp=d("GenderMale",''),Ap=d("GenderTrans",''),Bp=d("Geo",''),Op=d("GeoAlt",''),wp=d("GeoAltFill",''),Cp=d("GeoFill",''),Ip=d("Gift",''),Lp=d("GiftFill",''),Sp=d("Github",''),Pp=d("Globe",''),Fp=d("Globe2",''),kp=d("Google",''),jp=d("GraphDown",''),Tp=d("GraphUp",''),Dp=d("Grid",''),Ep=d("Grid1x2",''),xp=d("Grid1x2Fill",''),Np=d("Grid3x2",''),$p=d("Grid3x2Gap",''),Rp=d("Grid3x2GapFill",''),_p=d("Grid3x3",''),Up=d("Grid3x3Gap",''),Gp=d("Grid3x3GapFill",''),qp=d("GridFill",''),Wp=d("GripHorizontal",''),Kp=d("GripVertical",''),Jp=d("Hammer",''),Zp=d("HandIndex",''),Xp=d("HandIndexFill",''),Yp=d("HandIndexThumb",''),Qp=d("HandIndexThumbFill",''),av=d("HandThumbsDown",''),tv=d("HandThumbsDownFill",''),ev=d("HandThumbsUp",''),nv=d("HandThumbsUpFill",''),iv=d("Handbag",''),rv=d("HandbagFill",''),ov=d("Hash",''),lv=d("Hdd",''),cv=d("HddFill",''),sv=d("HddNetwork",''),hv=d("HddNetworkFill",''),uv=d("HddRack",''),dv=d("HddRackFill",''),pv=d("HddStack",''),vv=d("HddStackFill",''),fv=d("Headphones",''),mv=d("Headset",''),zv=d("HeadsetVr",''),bv=d("Heart",''),gv=d("HeartFill",''),Mv=d("HeartHalf",''),yv=d("Heptagon",''),Vv=d("HeptagonFill",''),Hv=d("HeptagonHalf",''),Av=d("Hexagon",''),Bv=d("HexagonFill",''),Ov=d("HexagonHalf",''),wv=d("Hourglass",''),Cv=d("HourglassBottom",''),Iv=d("HourglassSplit",''),Lv=d("HourglassTop",''),Sv=d("House",''),Pv=d("HouseDoor",''),Fv=d("HouseDoorFill",''),kv=d("HouseFill",''),jv=d("Hr",''),Tv=d("Hurricane",''),Dv=d("Image",''),Ev=d("ImageAlt",''),xv=d("ImageFill",''),Nv=d("Images",''),$v=d("Inbox",''),Rv=d("InboxFill",''),_v=d("Inboxes",''),Uv=d("InboxesFill",''),Gv=d("Info",''),qv=d("InfoCircle",''),Wv=d("InfoCircleFill",''),Kv=d("InfoLg",''),Jv=d("InfoSquare",''),Zv=d("InfoSquareFill",''),Xv=d("InputCursor",''),Yv=d("InputCursorText",''),Qv=d("Instagram",''),af=d("Intersect",''),tf=d("Journal",''),ef=d("JournalAlbum",''),nf=d("JournalArrowDown",''),rf=d("JournalArrowUp",''),of=d("JournalBookmark",''),lf=d("JournalBookmarkFill",''),cf=d("JournalCheck",''),sf=d("JournalCode",''),hf=d("JournalMedical",''),uf=d("JournalMinus",''),df=d("JournalPlus",''),pf=d("JournalRichtext",''),vf=d("JournalText",''),ff=d("JournalX",''),mf=d("Journals",''),zf=d("Joystick",''),bf=d("Justify",''),gf=d("JustifyLeft",''),Mf=d("JustifyRight",''),yf=d("Kanban",''),Vf=d("KanbanFill",''),Hf=d("Key",''),Af=d("KeyFill",''),Bf=d("Keyboard",''),Of=d("KeyboardFill",''),wf=d("Ladder",''),Cf=d("Lamp",''),If=d("LampFill",''),Lf=d("Laptop",''),Sf=d("LaptopFill",''),Pf=d("LayerBackward",''),Ff=d("LayerForward",''),kf=d("Layers",''),jf=d("LayersFill",''),Tf=d("LayersHalf",''),Df=d("LayoutSidebar",''),Ef=d("LayoutSidebarInset",''),xf=d("LayoutSidebarInsetReverse",''),Nf=d("LayoutSidebarReverse",''),$f=d("LayoutSplit",''),Rf=d("LayoutTextSidebar",''),_f=d("LayoutTextSidebarReverse",''),Uf=d("LayoutTextWindow",''),Gf=d("LayoutTextWindowReverse",''),qf=d("LayoutThreeColumns",''),Wf=d("LayoutWtf",''),Kf=d("LifePreserver",''),Jf=d("Lightbulb",''),Zf=d("LightbulbFill",''),Xf=d("LightbulbOff",''),Yf=d("LightbulbOffFill",''),Qf=d("Lightning",''),am=d("LightningCharge",''),tm=d("LightningChargeFill",''),em=d("LightningFill",''),nm=d("Link",''),im=d("Link45deg",''),rm=d("Linkedin",''),om=d("List",''),lm=d("ListCheck",''),cm=d("ListNested",''),sm=d("ListOl",''),hm=d("ListStars",''),um=d("ListTask",''),dm=d("ListUl",''),pm=d("Lock",''),vm=d("LockFill",''),fm=d("Mailbox",''),mm=d("Mailbox2",''),zm=d("Map",''),bm=d("MapFill",''),gm=d("Markdown",''),Mm=d("MarkdownFill",''),ym=d("Mask",''),Vm=d("Mastodon",''),Hm=d("Megaphone",''),Am=d("MegaphoneFill",''),Bm=d("MenuApp",''),Om=d("MenuAppFill",''),wm=d("MenuButton",''),Cm=d("MenuButtonFill",''),Im=d("MenuButtonWide",''),Lm=d("MenuButtonWideFill",''),Sm=d("MenuDown",''),Pm=d("MenuUp",''),Fm=d("Messenger",''),km=d("Mic",''),jm=d("MicFill",''),Tm=d("MicMute",''),Dm=d("MicMuteFill",''),Em=d("Minecart",''),xm=d("MinecartLoaded",''),Nm=d("Moisture",''),$m=d("Moon",''),Rm=d("MoonFill",''),_m=d("MoonStars",''),Um=d("MoonStarsFill",''),Gm=d("Mouse",''),qm=d("Mouse2",''),Wm=d("Mouse2Fill",''),Km=d("Mouse3",''),Jm=d("Mouse3Fill",''),Zm=d("MouseFill",''),Xm=d("MusicNote",''),Ym=d("MusicNoteBeamed",''),Qm=d("MusicNoteList",''),az=d("MusicPlayer",''),tz=d("MusicPlayerFill",''),ez=d("Newspaper",''),nz=d("NodeMinus",''),iz=d("NodeMinusFill",''),rz=d("NodePlus",''),oz=d("NodePlusFill",''),lz=d("Nut",''),cz=d("NutFill",''),sz=d("Octagon",''),hz=d("OctagonFill",''),uz=d("OctagonHalf",''),dz=d("Option",''),pz=d("Outlet",''),vz=d("PaintBucket",''),fz=d("Palette",''),mz=d("Palette2",''),zz=d("PaletteFill",''),bz=d("Paperclip",''),gz=d("Paragraph",''),Mz=d("PatchCheck",''),yz=d("PatchCheckFill",''),Vz=d("PatchExclamation",''),Hz=d("PatchExclamationFill",''),Az=d("PatchMinus",''),Bz=d("PatchMinusFill",''),Oz=d("PatchPlus",''),wz=d("PatchPlusFill",''),Cz=d("PatchQuestion",''),Iz=d("PatchQuestionFill",''),Lz=d("Pause",''),Sz=d("PauseBtn",''),Pz=d("PauseBtnFill",''),Fz=d("PauseCircle",''),kz=d("PauseCircleFill",''),jz=d("PauseFill",''),Tz=d("Peace",''),Dz=d("PeaceFill",''),Ez=d("Pen",''),xz=d("PenFill",''),Nz=d("Pencil",''),$z=d("PencilFill",''),Rz=d("PencilSquare",''),_z=d("Pentagon",''),Uz=d("PentagonFill",''),Gz=d("PentagonHalf",''),qz=d("People",''),Wz=d("PeopleFill",''),Kz=d("Percent",''),Jz=d("Person",''),Zz=d("PersonBadge",''),Xz=d("PersonBadgeFill",''),Yz=d("PersonBoundingBox",''),Qz=d("PersonCheck",''),ab=d("PersonCheckFill",''),tb=d("PersonCircle",''),eb=d("PersonDash",''),nb=d("PersonDashFill",''),ib=d("PersonFill",''),rb=d("PersonLinesFill",''),ob=d("PersonPlus",''),lb=d("PersonPlusFill",''),cb=d("PersonSquare",''),sb=d("PersonX",''),hb=d("PersonXFill",''),ub=d("Phone",''),db=d("PhoneFill",''),pb=d("PhoneLandscape",''),vb=d("PhoneLandscapeFill",''),fb=d("PhoneVibrate",''),mb=d("PhoneVibrateFill",''),zb=d("PieChart",''),bb=d("PieChartFill",''),gb=d("PiggyBank",''),Mb=d("PiggyBankFill",''),yb=d("Pin",''),Vb=d("PinAngle",''),Hb=d("PinAngleFill",''),Ab=d("PinFill",''),Bb=d("PinMap",''),Ob=d("PinMapFill",''),wb=d("Pip",''),Cb=d("PipFill",''),Ib=d("Play",''),Lb=d("PlayBtn",''),Sb=d("PlayBtnFill",''),Pb=d("PlayCircle",''),Fb=d("PlayCircleFill",''),kb=d("PlayFill",''),jb=d("Plug",''),Tb=d("PlugFill",''),Db=d("Plus",''),Eb=d("PlusCircle",''),xb=d("PlusCircleDotted",''),Nb=d("PlusCircleFill",''),$b=d("PlusLg",''),Rb=d("PlusSquare",''),_b=d("PlusSquareDotted",''),Ub=d("PlusSquareFill",''),Gb=d("Power",''),qb=d("Printer",''),Wb=d("PrinterFill",''),Kb=d("Puzzle",''),Jb=d("PuzzleFill",''),Zb=d("Question",''),Xb=d("QuestionCircle",''),Yb=d("QuestionCircleFill",''),Qb=d("QuestionDiamond",''),ag=d("QuestionDiamondFill",''),tg=d("QuestionLg",''),eg=d("QuestionOctagon",''),ng=d("QuestionOctagonFill",''),ig=d("QuestionSquare",''),rg=d("QuestionSquareFill",''),og=d("Rainbow",''),lg=d("Receipt",''),cg=d("ReceiptCutoff",''),sg=d("Reception0",''),hg=d("Reception1",''),ug=d("Reception2",''),dg=d("Reception3",''),pg=d("Reception4",''),vg=d("Record",''),fg=d("Record2",''),mg=d("Record2Fill",''),zg=d("RecordBtn",''),bg=d("RecordBtnFill",''),gg=d("RecordCircle",''),Mg=d("RecordCircleFill",''),yg=d("RecordFill",''),Vg=d("Recycle",''),Hg=d("Reddit",''),Ag=d("Reply",''),Bg=d("ReplyAll",''),Og=d("ReplyAllFill",''),wg=d("ReplyFill",''),Cg=d("Rss",''),Ig=d("RssFill",''),Lg=d("Rulers",''),Sg=d("Safe",''),Pg=d("Safe2",''),Fg=d("Safe2Fill",''),kg=d("SafeFill",''),jg=d("Save",''),Tg=d("Save2",''),Dg=d("Save2Fill",''),Eg=d("SaveFill",''),xg=d("Scissors",''),Ng=d("Screwdriver",''),$g=d("SdCard",''),Rg=d("SdCardFill",''),_g=d("Search",''),Ug=d("SegmentedNav",''),Gg=d("Server",''),qg=d("Share",''),Wg=d("ShareFill",''),Kg=d("Shield",''),Jg=d("ShieldCheck",''),Zg=d("ShieldExclamation",''),Xg=d("ShieldFill",''),Yg=d("ShieldFillCheck",''),Qg=d("ShieldFillExclamation",''),aM=d("ShieldFillMinus",''),tM=d("ShieldFillPlus",''),eM=d("ShieldFillX",''),nM=d("ShieldLock",''),iM=d("ShieldLockFill",''),rM=d("ShieldMinus",''),oM=d("ShieldPlus",''),lM=d("ShieldShaded",''),cM=d("ShieldSlash",''),sM=d("ShieldSlashFill",''),hM=d("ShieldX",''),uM=d("Shift",''),dM=d("ShiftFill",''),pM=d("Shop",''),vM=d("ShopWindow",''),fM=d("Shuffle",''),mM=d("Signpost",''),zM=d("Signpost2",''),bM=d("Signpost2Fill",''),gM=d("SignpostFill",''),MM=d("SignpostSplit",''),yM=d("SignpostSplitFill",''),VM=d("Sim",''),HM=d("SimFill",''),AM=d("SkipBackward",''),BM=d("SkipBackwardBtn",''),OM=d("SkipBackwardBtnFill",''),wM=d("SkipBackwardCircle",''),CM=d("SkipBackwardCircleFill",''),IM=d("SkipBackwardFill",''),LM=d("SkipEnd",''),SM=d("SkipEndBtn",''),PM=d("SkipEndBtnFill",''),FM=d("SkipEndCircle",''),kM=d("SkipEndCircleFill",''),jM=d("SkipEndFill",''),TM=d("SkipForward",''),DM=d("SkipForwardBtn",''),EM=d("SkipForwardBtnFill",''),xM=d("SkipForwardCircle",''),NM=d("SkipForwardCircleFill",''),$M=d("SkipForwardFill",''),RM=d("SkipStart",''),_M=d("SkipStartBtn",''),UM=d("SkipStartBtnFill",''),GM=d("SkipStartCircle",''),qM=d("SkipStartCircleFill",''),WM=d("SkipStartFill",''),KM=d("Skype",''),JM=d("Slack",''),ZM=d("Slash",''),XM=d("SlashCircle",''),YM=d("SlashCircleFill",''),QM=d("SlashLg",''),ay=d("SlashSquare",''),ty=d("SlashSquareFill",''),ey=d("Sliders",''),ny=d("Smartwatch",''),iy=d("Snow",''),ry=d("Snow2",''),oy=d("Snow3",''),ly=d("SortAlphaDown",''),cy=d("SortAlphaDownAlt",''),sy=d("SortAlphaUp",''),hy=d("SortAlphaUpAlt",''),uy=d("SortDown",''),dy=d("SortDownAlt",''),py=d("SortNumericDown",''),vy=d("SortNumericDownAlt",''),fy=d("SortNumericUp",''),my=d("SortNumericUpAlt",''),zy=d("SortUp",''),by=d("SortUpAlt",''),gy=d("Soundwave",''),My=d("Speaker",''),yy=d("SpeakerFill",''),Vy=d("Speedometer",''),Hy=d("Speedometer2",''),Ay=d("Spellcheck",''),By=d("Square",''),Oy=d("SquareFill",''),wy=d("SquareHalf",''),Cy=d("Stack",''),Iy=d("Star",''),Ly=d("StarFill",''),Sy=d("StarHalf",''),Py=d("Stars",''),Fy=d("Stickies",''),ky=d("StickiesFill",''),jy=d("Sticky",''),Ty=d("StickyFill",''),Dy=d("Stop",''),Ey=d("StopBtn",''),xy=d("StopBtnFill",''),Ny=d("StopCircle",''),$y=d("StopCircleFill",''),Ry=d("StopFill",''),_y=d("Stoplights",''),Uy=d("StoplightsFill",''),Gy=d("Stopwatch",''),qy=d("StopwatchFill",''),Wy=d("Subtract",''),Ky=d("SuitClub",''),Jy=d("SuitClubFill",''),Zy=d("SuitDiamond",''),Xy=d("SuitDiamondFill",''),Yy=d("SuitHeart",''),Qy=d("SuitHeartFill",''),aV=d("SuitSpade",''),tV=d("SuitSpadeFill",''),eV=d("Sun",''),nV=d("SunFill",''),iV=d("Sunglasses",''),rV=d("Sunrise",''),oV=d("SunriseFill",''),lV=d("Sunset",''),cV=d("SunsetFill",''),sV=d("SymmetryHorizontal",''),hV=d("SymmetryVertical",''),uV=d("Table",''),dV=d("Tablet",''),pV=d("TabletFill",''),vV=d("TabletLandscape",''),fV=d("TabletLandscapeFill",''),mV=d("Tag",''),zV=d("TagFill",''),bV=d("Tags",''),gV=d("TagsFill",''),MV=d("Telegram",''),yV=d("Telephone",''),VV=d("TelephoneFill",''),HV=d("TelephoneForward",''),AV=d("TelephoneForwardFill",''),BV=d("TelephoneInbound",''),OV=d("TelephoneInboundFill",''),wV=d("TelephoneMinus",''),CV=d("TelephoneMinusFill",''),IV=d("TelephoneOutbound",''),LV=d("TelephoneOutboundFill",''),SV=d("TelephonePlus",''),PV=d("TelephonePlusFill",''),FV=d("TelephoneX",''),kV=d("TelephoneXFill",''),jV=d("Terminal",''),TV=d("TerminalFill",''),DV=d("TextCenter",''),EV=d("TextIndentLeft",''),xV=d("TextIndentRight",''),NV=d("TextLeft",''),$V=d("TextParagraph",''),RV=d("TextRight",''),_V=d("Textarea",''),UV=d("TextareaResize",''),GV=d("TextareaT",''),qV=d("Thermometer",''),WV=d("ThermometerHalf",''),KV=d("ThermometerHigh",''),JV=d("ThermometerLow",''),ZV=d("ThermometerSnow",''),XV=d("ThermometerSun",''),YV=d("ThreeDots",''),QV=d("ThreeDotsVertical",''),aH=d("Toggle2Off",''),tH=d("Toggle2On",''),eH=d("ToggleOff",''),nH=d("ToggleOn",''),iH=d("Toggles",''),rH=d("Toggles2",''),oH=d("Tools",''),lH=d("Tornado",''),cH=d("Translate",''),sH=d("Trash",''),hH=d("Trash2",''),uH=d("Trash2Fill",''),dH=d("TrashFill",''),pH=d("Tree",''),vH=d("TreeFill",''),fH=d("Triangle",''),mH=d("TriangleFill",''),zH=d("TriangleHalf",''),bH=d("Trophy",''),gH=d("TrophyFill",''),MH=d("TropicalStorm",''),yH=d("Truck",''),VH=d("TruckFlatbed",''),HH=d("Tsunami",''),AH=d("Tv",''),BH=d("TvFill",''),OH=d("Twitch",''),wH=d("Twitter",''),CH=d("Type",''),IH=d("TypeBold",''),LH=d("TypeH1",''),SH=d("TypeH2",''),PH=d("TypeH3",''),FH=d("TypeItalic",''),kH=d("TypeStrikethrough",''),jH=d("TypeUnderline",''),TH=d("UiChecks",''),DH=d("UiChecksGrid",''),EH=d("UiRadios",''),xH=d("UiRadiosGrid",''),NH=d("Umbrella",''),$H=d("UmbrellaFill",''),RH=d("Union",''),_H=d("Unlock",''),UH=d("UnlockFill",''),GH=d("Upc",''),qH=d("UpcScan",''),WH=d("Upload",''),KH=d("VectorPen",''),JH=d("ViewList",''),ZH=d("ViewStacked",''),XH=d("Vinyl",''),YH=d("VinylFill",''),QH=d("Voicemail",''),aA=d("VolumeDown",''),tA=d("VolumeDownFill",''),eA=d("VolumeMute",''),nA=d("VolumeMuteFill",''),iA=d("VolumeOff",''),rA=d("VolumeOffFill",''),oA=d("VolumeUp",''),lA=d("VolumeUpFill",''),cA=d("Vr",''),sA=d("Wallet",''),hA=d("Wallet2",''),uA=d("WalletFill",''),dA=d("Watch",''),pA=d("Water",''),vA=d("Whatsapp",''),fA=d("Wifi",''),mA=d("Wifi1",''),zA=d("Wifi2",''),bA=d("WifiOff",''),gA=d("Wind",''),MA=d("Window",''),yA=d("WindowDock",''),VA=d("WindowSidebar",''),HA=d("Wrench",''),AA=d("X",''),BA=d("XCircle",''),OA=d("XCircleFill",''),wA=d("XDiamond",''),CA=d("XDiamondFill",''),IA=d("XLg",''),LA=d("XOctagon",''),SA=d("XOctagonFill",''),PA=d("XSquare",''),FA=d("XSquareFill",''),kA=d("Youtube",''),jA=d("ZoomIn",''),TA=d("ZoomOut",'')},33017:(a,t,e)=>{e.d(t,{A7:()=>v});var n=e(86087),i=e(43022),r=e(1915),o=e(69558),l=e(94689),c=e(67040),s=e(20451),h=e(39143),u=(0,s.y2)((0,c.CE)(h.N,["content","stacked"]),l.YO),d=(0,r.l7)({name:l.YO,functional:!0,props:u,render:function(a,t){var e=t.data,n=t.props,i=t.children;return a(h.q,(0,o.b)(e,{staticClass:"b-iconstack",props:n}),i)}}),p=e(72466),v=(0,n.hk)({components:{BIcon:i.H,BIconstack:d,BIconBlank:p.GWp,BIconAlarm:p.OU,BIconAlarmFill:p.Yq2,BIconAlignBottom:p.fwv,BIconAlignCenter:p.vd$,BIconAlignEnd:p.kFv,BIconAlignMiddle:p.$24,BIconAlignStart:p.sB9,BIconAlignTop:p.nGQ,BIconAlt:p.FDI,BIconApp:p.x3L,BIconAppIndicator:p.z1A,BIconArchive:p.lbE,BIconArchiveFill:p.dYs,BIconArrow90degDown:p.TYz,BIconArrow90degLeft:p.YDB,BIconArrow90degRight:p.UIV,BIconArrow90degUp:p.sDn,BIconArrowBarDown:p.Btd,BIconArrowBarLeft:p.Rep,BIconArrowBarRight:p.k0,BIconArrowBarUp:p.dVK,BIconArrowClockwise:p.zI9,BIconArrowCounterclockwise:p.rw7,BIconArrowDown:p.pfg,BIconArrowDownCircle:p.KbI,BIconArrowDownCircleFill:p.PRr,BIconArrowDownLeft:p.HED,BIconArrowDownLeftCircle:p.pTq,BIconArrowDownLeftCircleFill:p.$WM,BIconArrowDownLeftSquare:p.gWH,BIconArrowDownLeftSquareFill:p.p6n,BIconArrowDownRight:p.MGc,BIconArrowDownRightCircle:p.fwl,BIconArrowDownRightCircleFill:p.x4n,BIconArrowDownRightSquare:p.PtJ,BIconArrowDownRightSquareFill:p.YcU,BIconArrowDownShort:p.BGL,BIconArrowDownSquare:p.cEq,BIconArrowDownSquareFill:p.kHe,BIconArrowDownUp:p.Q48,BIconArrowLeft:p.CJy,BIconArrowLeftCircle:p.HPq,BIconArrowLeftCircleFill:p.eo9,BIconArrowLeftRight:p.jwx,BIconArrowLeftShort:p.mhl,BIconArrowLeftSquare:p.Rtk,BIconArrowLeftSquareFill:p.ljC,BIconArrowRepeat:p.Bxx,BIconArrowReturnLeft:p.nyK,BIconArrowReturnRight:p.fdL,BIconArrowRight:p.cKx,BIconArrowRightCircle:p.KBg,BIconArrowRightCircleFill:p.S7v,BIconArrowRightShort:p.HzC,BIconArrowRightSquare:p.LSj,BIconArrowRightSquareFill:p.lzv,BIconArrowUp:p.BNN,BIconArrowUpCircle:p.Y8j,BIconArrowUpCircleFill:p.H2O,BIconArrowUpLeft:p.Hkf,BIconArrowUpLeftCircle:p.APQ,BIconArrowUpLeftCircleFill:p.L66,BIconArrowUpLeftSquare:p.WMZ,BIconArrowUpLeftSquareFill:p.Vvm,BIconArrowUpRight:p.fqz,BIconArrowUpRightCircle:p.xV2,BIconArrowUpRightCircleFill:p.oW,BIconArrowUpRightSquare:p.k$g,BIconArrowUpRightSquareFill:p.QUc,BIconArrowUpShort:p.zW7,BIconArrowUpSquare:p.lVE,BIconArrowUpSquareFill:p.rBv,BIconArrowsAngleContract:p.il7,BIconArrowsAngleExpand:p.JS5,BIconArrowsCollapse:p.TUK,BIconArrowsExpand:p.E8c,BIconArrowsFullscreen:p.Ll1,BIconArrowsMove:p.ww,BIconAspectRatio:p.kCe,BIconAspectRatioFill:p.n7z,BIconAsterisk:p.R9u,BIconAt:p.G7,BIconAward:p.Sw$,BIconAwardFill:p.ydl,BIconBack:p.MdF,BIconBackspace:p.Ta3,BIconBackspaceFill:p.$qu,BIconBackspaceReverse:p.UaC,BIconBackspaceReverseFill:p.XMl,BIconBadge3d:p.Js2,BIconBadge3dFill:p.Wm0,BIconBadge4k:p.vOi,BIconBadge4kFill:p.bij,BIconBadge8k:p.eh6,BIconBadge8kFill:p.qmO,BIconBadgeAd:p.Uhd,BIconBadgeAdFill:p.DxU,BIconBadgeAr:p.T$C,BIconBadgeArFill:p.GiK,BIconBadgeCc:p.wKW,BIconBadgeCcFill:p.utP,BIconBadgeHd:p.FyV,BIconBadgeHdFill:p.p4S,BIconBadgeTm:p.R0b,BIconBadgeTmFill:p.Sdl,BIconBadgeVo:p.V3q,BIconBadgeVoFill:p.fIJ,BIconBadgeVr:p.EF$,BIconBadgeVrFill:p.Ps,BIconBadgeWc:p.gWf,BIconBadgeWcFill:p.oS1,BIconBag:p._hv,BIconBagCheck:p.$z6,BIconBagCheckFill:p.atP,BIconBagDash:p.C5j,BIconBagDashFill:p.YlP,BIconBagFill:p.Fmo,BIconBagPlus:p.fCs,BIconBagPlusFill:p.r$S,BIconBagX:p.P1,BIconBagXFill:p.niv,BIconBank:p.n4P,BIconBank2:p.I4Q,BIconBarChart:p.YCP,BIconBarChartFill:p.vcS,BIconBarChartLine:p.yIz,BIconBarChartLineFill:p.p7o,BIconBarChartSteps:p.nvb,BIconBasket:p.CDA,BIconBasket2:p.SV6,BIconBasket2Fill:p.nRP,BIconBasket3:p.xld,BIconBasket3Fill:p.MzH,BIconBasketFill:p.mQP,BIconBattery:p.kmc,BIconBatteryCharging:p.Qp2,BIconBatteryFull:p.k1k,BIconBatteryHalf:p.x0j,BIconBell:p.G_g,BIconBellFill:p.whn,BIconBellSlash:p.yvC,BIconBellSlashFill:p.w8K,BIconBezier:p.fkB,BIconBezier2:p.u0k,BIconBicycle:p.$c7,BIconBinoculars:p.lzt,BIconBinocularsFill:p.jUs,BIconBlockquoteLeft:p.Pjp,BIconBlockquoteRight:p.KvI,BIconBook:p.$ek,BIconBookFill:p.pee,BIconBookHalf:p.X$b,BIconBookmark:p.Nxz,BIconBookmarkCheck:p.qcW,BIconBookmarkCheckFill:p.g7U,BIconBookmarkDash:p.BtN,BIconBookmarkDashFill:p.vEG,BIconBookmarkFill:p.Znx,BIconBookmarkHeart:p.n1w,BIconBookmarkHeartFill:p.l9f,BIconBookmarkPlus:p.d6H,BIconBookmarkPlusFill:p.OZl,BIconBookmarkStar:p.uUd,BIconBookmarkStarFill:p.N$k,BIconBookmarkX:p.K$B,BIconBookmarkXFill:p.ov4,BIconBookmarks:p.rRv,BIconBookmarksFill:p.Ask,BIconBookshelf:p.tK7,BIconBootstrap:p.HIz,BIconBootstrapFill:p.FOL,BIconBootstrapReboot:p.jSp,BIconBorder:p.Kqp,BIconBorderAll:p.g8p,BIconBorderBottom:p.BZn,BIconBorderCenter:p.nwi,BIconBorderInner:p.d2,BIconBorderLeft:p.nhN,BIconBorderMiddle:p.TXH,BIconBorderOuter:p.eIp,BIconBorderRight:p.DtT,BIconBorderStyle:p.$0W,BIconBorderTop:p.nFk,BIconBorderWidth:p.knm,BIconBoundingBox:p.wmo,BIconBoundingBoxCircles:p.WMY,BIconBox:p.rqI,BIconBoxArrowDown:p.Rvs,BIconBoxArrowDownLeft:p.r0N,BIconBoxArrowDownRight:p.EmC,BIconBoxArrowInDown:p.nOL,BIconBoxArrowInDownLeft:p.NLT,BIconBoxArrowInDownRight:p.dod,BIconBoxArrowInLeft:p.n8l,BIconBoxArrowInRight:p.N_J,BIconBoxArrowInUp:p.gwK,BIconBoxArrowInUpLeft:p.dNf,BIconBoxArrowInUpRight:p.Noy,BIconBoxArrowLeft:p.SC_,BIconBoxArrowRight:p.S4,BIconBoxArrowUp:p.ix3,BIconBoxArrowUpLeft:p.OlQ,BIconBoxArrowUpRight:p.eK4,BIconBoxSeam:p.Oqr,BIconBraces:p.wLY,BIconBricks:p.S3S,BIconBriefcase:p.JyY,BIconBriefcaseFill:p.P4Y,BIconBrightnessAltHigh:p.pHX,BIconBrightnessAltHighFill:p.jSo,BIconBrightnessAltLow:p.ODP,BIconBrightnessAltLowFill:p.bnk,BIconBrightnessHigh:p.Flg,BIconBrightnessHighFill:p.KsB,BIconBrightnessLow:p.fqi,BIconBrightnessLowFill:p.jRp,BIconBroadcast:p.n7L,BIconBroadcastPin:p.k5I,BIconBrush:p.PvF,BIconBrushFill:p.gVZ,BIconBucket:p.CNs,BIconBucketFill:p.EkS,BIconBug:p.Nmi,BIconBugFill:p.VzZ,BIconBuilding:p.pGS,BIconBullseye:p.CjC,BIconCalculator:p.i6v,BIconCalculatorFill:p.bJS,BIconCalendar:p.$kw,BIconCalendar2:p.DyN,BIconCalendar2Check:p.lh2,BIconCalendar2CheckFill:p.VBp,BIconCalendar2Date:p.XkH,BIconCalendar2DateFill:p.a9F,BIconCalendar2Day:p.Y9_,BIconCalendar2DayFill:p.mGu,BIconCalendar2Event:p.eeY,BIconCalendar2EventFill:p.tqN,BIconCalendar2Fill:p.ADI,BIconCalendar2Minus:p.ONI,BIconCalendar2MinusFill:p._3l,BIconCalendar2Month:p.yvH,BIconCalendar2MonthFill:p.i7S,BIconCalendar2Plus:p.u$w,BIconCalendar2PlusFill:p.AJs,BIconCalendar2Range:p.z$Y,BIconCalendar2RangeFill:p.io,BIconCalendar2Week:p.QIC,BIconCalendar2WeekFill:p.ORl,BIconCalendar2X:p.Rey,BIconCalendar2XFill:p.BZb,BIconCalendar3:p.$IU,BIconCalendar3Event:p.zBz,BIconCalendar3EventFill:p.K10,BIconCalendar3Fill:p.saK,BIconCalendar3Range:p.yNt,BIconCalendar3RangeFill:p.MlV,BIconCalendar3Week:p.RBD,BIconCalendar3WeekFill:p.w7q,BIconCalendar4:p.ciW,BIconCalendar4Event:p.XMh,BIconCalendar4Range:p.cYS,BIconCalendar4Week:p.t1E,BIconCalendarCheck:p.eh7,BIconCalendarCheckFill:p.n1$,BIconCalendarDate:p.d0c,BIconCalendarDateFill:p.a4T,BIconCalendarDay:p.VYY,BIconCalendarDayFill:p.em6,BIconCalendarEvent:p.Tcb,BIconCalendarEventFill:p.sZW,BIconCalendarFill:p.WD$,BIconCalendarMinus:p.T,BIconCalendarMinusFill:p.Phz,BIconCalendarMonth:p.DKj,BIconCalendarMonthFill:p.P4_,BIconCalendarPlus:p.Vp2,BIconCalendarPlusFill:p.D7Y,BIconCalendarRange:p.Kcf,BIconCalendarRangeFill:p.hmc,BIconCalendarWeek:p.G2Q,BIconCalendarWeekFill:p.pnD,BIconCalendarX:p.r0r,BIconCalendarXFill:p.IVx,BIconCamera:p.tYS,BIconCamera2:p.VMj,BIconCameraFill:p.fmS,BIconCameraReels:p.t8,BIconCameraReelsFill:p.gq6,BIconCameraVideo:p.YMH,BIconCameraVideoFill:p.soo,BIconCameraVideoOff:p.s1P,BIconCameraVideoOffFill:p.Jfo,BIconCapslock:p.AkY,BIconCapslockFill:p.uuD,BIconCardChecklist:p.eiF,BIconCardHeading:p.IrC,BIconCardImage:p.igp,BIconCardList:p.H9R,BIconCardText:p.C6Q,BIconCaretDown:p.u97,BIconCaretDownFill:p.XZe,BIconCaretDownSquare:p.cK7,BIconCaretDownSquareFill:p.j8E,BIconCaretLeft:p.wrx,BIconCaretLeftFill:p.NrI,BIconCaretLeftSquare:p.L4P,BIconCaretLeftSquareFill:p.VLC,BIconCaretRight:p.ia_,BIconCaretRightFill:p.A8E,BIconCaretRightSquare:p.xKP,BIconCaretRightSquareFill:p.VNi,BIconCaretUp:p.ywm,BIconCaretUpFill:p.knd,BIconCaretUpSquare:p.ro6,BIconCaretUpSquareFill:p.mbL,BIconCart:p.K0N,BIconCart2:p.g3h,BIconCart3:p.N1q,BIconCart4:p.NGI,BIconCartCheck:p.t3Q,BIconCartCheckFill:p.C7Z,BIconCartDash:p.K5M,BIconCartDashFill:p.UGO,BIconCartFill:p.zmv,BIconCartPlus:p._Js,BIconCartPlusFill:p.N6W,BIconCartX:p.aGA,BIconCartXFill:p.tI8,BIconCash:p.mYh,BIconCashCoin:p.uNr,BIconCashStack:p.ah9,BIconCast:p.oy$,BIconChat:p.xeu,BIconChatDots:p.VB9,BIconChatDotsFill:p.GGn,BIconChatFill:p.LLr,BIconChatLeft:p.$ip,BIconChatLeftDots:p.hKq,BIconChatLeftDotsFill:p._zT,BIconChatLeftFill:p.WNd,BIconChatLeftQuote:p.$xg,BIconChatLeftQuoteFill:p.a4k,BIconChatLeftText:p._R6,BIconChatLeftTextFill:p.RPO,BIconChatQuote:p.vPt,BIconChatQuoteFill:p.z4n,BIconChatRight:p.lKx,BIconChatRightDots:p.YTw,BIconChatRightDotsFill:p.SUD,BIconChatRightFill:p.KKi,BIconChatRightQuote:p.iaK,BIconChatRightQuoteFill:p.OCT,BIconChatRightText:p.nZb,BIconChatRightTextFill:p.Ynn,BIconChatSquare:p.H_q,BIconChatSquareDots:p.dYN,BIconChatSquareDotsFill:p.Ekn,BIconChatSquareFill:p.vzb,BIconChatSquareQuote:p.cFb,BIconChatSquareQuoteFill:p.Aoi,BIconChatSquareText:p.peH,BIconChatSquareTextFill:p.nT8,BIconChatText:p.MVm,BIconChatTextFill:p.zAD,BIconCheck:p.PaS,BIconCheck2:p._$q,BIconCheck2All:p.Hc_,BIconCheck2Circle:p.j2Y,BIconCheck2Square:p.Rsn,BIconCheckAll:p.E4h,BIconCheckCircle:p.tZt,BIconCheckCircleFill:p.uqb,BIconCheckLg:p.COp,BIconCheckSquare:p.oOT,BIconCheckSquareFill:p.uxq,BIconChevronBarContract:p.T_W,BIconChevronBarDown:p.yit,BIconChevronBarExpand:p.kzp,BIconChevronBarLeft:p.ziT,BIconChevronBarRight:p.rM,BIconChevronBarUp:p.wBH,BIconChevronCompactDown:p._rN,BIconChevronCompactLeft:p.EnN,BIconChevronCompactRight:p.oRA,BIconChevronCompactUp:p.jm6,BIconChevronContract:p.DDv,BIconChevronDoubleDown:p.Zo2,BIconChevronDoubleLeft:p.uVK,BIconChevronDoubleRight:p.WnY,BIconChevronDoubleUp:p.HyP,BIconChevronDown:p.VIw,BIconChevronExpand:p.Qid,BIconChevronLeft:p.As$,BIconChevronRight:p.xkg,BIconChevronUp:p.b4M,BIconCircle:p.I9H,BIconCircleFill:p.gMT,BIconCircleHalf:p.SzU,BIconCircleSquare:p.KFI,BIconClipboard:p.O48,BIconClipboardCheck:p.bEK,BIconClipboardData:p.eBp,BIconClipboardMinus:p.$Zw,BIconClipboardPlus:p.R1J,BIconClipboardX:p.R5z,BIconClock:p.sQZ,BIconClockFill:p.qTo,BIconClockHistory:p.SAB,BIconCloud:p.h11,BIconCloudArrowDown:p.RuO,BIconCloudArrowDownFill:p.OVN,BIconCloudArrowUp:p.oNP,BIconCloudArrowUpFill:p.zP6,BIconCloudCheck:p.FQW,BIconCloudCheckFill:p.QoX,BIconCloudDownload:p.rvl,BIconCloudDownloadFill:p.vT$,BIconCloudDrizzle:p.hH8,BIconCloudDrizzleFill:p.rKJ,BIconCloudFill:p.eET,BIconCloudFog:p.GEc,BIconCloudFog2:p.Dyn,BIconCloudFog2Fill:p.Et$,BIconCloudFogFill:p.A$I,BIconCloudHail:p.kxN,BIconCloudHailFill:p.A3_,BIconCloudHaze:p["new"],BIconCloudHaze1:p.MbQ,BIconCloudHaze2Fill:p.tWE,BIconCloudHazeFill:p.Afn,BIconCloudLightning:p.he_,BIconCloudLightningFill:p.Bzp,BIconCloudLightningRain:p.Gvu,BIconCloudLightningRainFill:p.vty,BIconCloudMinus:p.I25,BIconCloudMinusFill:p.HNd,BIconCloudMoon:p.CSw,BIconCloudMoonFill:p.Afi,BIconCloudPlus:p.hiV,BIconCloudPlusFill:p.a4V,BIconCloudRain:p.D_k,BIconCloudRainFill:p.hpC,BIconCloudRainHeavy:p.LwH,BIconCloudRainHeavyFill:p.b1B,BIconCloudSlash:p.vAm,BIconCloudSlashFill:p._yf,BIconCloudSleet:p.KaO,BIconCloudSleetFill:p.zzN,BIconCloudSnow:p.UOs,BIconCloudSnowFill:p.iR5,BIconCloudSun:p.S9h,BIconCloudSunFill:p.ofl,BIconCloudUpload:p.Tw7,BIconCloudUploadFill:p.Z2Z,BIconClouds:p.nWJ,BIconCloudsFill:p.FV4,BIconCloudy:p.grc,BIconCloudyFill:p.wg0,BIconCode:p.f$5,BIconCodeSlash:p.wAE,BIconCodeSquare:p.VD2,BIconCoin:p.gFx,BIconCollection:p.WAw,BIconCollectionFill:p.VH$,BIconCollectionPlay:p.L3n,BIconCollectionPlayFill:p.QVi,BIconColumns:p.WCw,BIconColumnsGap:p.p8y,BIconCommand:p.a86,BIconCompass:p.tDn,BIconCompassFill:p.zLH,BIconCone:p.K7D,BIconConeStriped:p.az2,BIconController:p.Ieq,BIconCpu:p.v_S,BIconCpuFill:p.iYi,BIconCreditCard:p.RZf,BIconCreditCard2Back:p.Qlb,BIconCreditCard2BackFill:p.VzF,BIconCreditCard2Front:p.KXx,BIconCreditCard2FrontFill:p.sKK,BIconCreditCardFill:p.l0H,BIconCrop:p.u8_,BIconCup:p.JIv,BIconCupFill:p.YUl,BIconCupStraw:p.kHb,BIconCurrencyBitcoin:p.JKz,BIconCurrencyDollar:p.Swn,BIconCurrencyEuro:p.fZq,BIconCurrencyExchange:p.JfO,BIconCurrencyPound:p.RvK,BIconCurrencyYen:p.ANj,BIconCursor:p.ueK,BIconCursorFill:p.vuG,BIconCursorText:p.JVE,BIconDash:p.Loc,BIconDashCircle:p.TG9,BIconDashCircleDotted:p.IEF,BIconDashCircleFill:p.RsT,BIconDashLg:p.Pjo,BIconDashSquare:p.AvY,BIconDashSquareDotted:p.pFV,BIconDashSquareFill:p.wnZ,BIconDiagram2:p.OSG,BIconDiagram2Fill:p.neq,BIconDiagram3:p.l3H,BIconDiagram3Fill:p.jWb,BIconDiamond:p.Wq7,BIconDiamondFill:p.Mwo,BIconDiamondHalf:p.Yi7,BIconDice1:p.p_n,BIconDice1Fill:p.d1A,BIconDice2:p.bOW,BIconDice2Fill:p.XzL,BIconDice3:p.aPK,BIconDice3Fill:p.FGu,BIconDice4:p.fD4,BIconDice4Fill:p.EJW,BIconDice5:p.fYI,BIconDice5Fill:p.XqM,BIconDice6:p.HUE,BIconDice6Fill:p.mcB,BIconDisc:p.DGU,BIconDiscFill:p.Tn4,BIconDiscord:p.hYX,BIconDisplay:p.Rfo,BIconDisplayFill:p.so9,BIconDistributeHorizontal:p._wu,BIconDistributeVertical:p.jVi,BIconDoorClosed:p.JNi,BIconDoorClosedFill:p.iFy,BIconDoorOpen:p.rwn,BIconDoorOpenFill:p.vG0,BIconDot:p._E8,BIconDownload:p.f6I,BIconDroplet:p.tFd,BIconDropletFill:p.rno,BIconDropletHalf:p.NEq,BIconEarbuds:p.c8U,BIconEasel:p.kWx,BIconEaselFill:p.fXm,BIconEgg:p.Nzi,BIconEggFill:p.mkN,BIconEggFried:p.lj6,BIconEject:p.Khh,BIconEjectFill:p.iSS,BIconEmojiAngry:p.MXU,BIconEmojiAngryFill:p.YgA,BIconEmojiDizzy:p.s0u,BIconEmojiDizzyFill:p.ZtM,BIconEmojiExpressionless:p.cB4,BIconEmojiExpressionlessFill:p.A2O,BIconEmojiFrown:p.vjf,BIconEmojiFrownFill:p.HlU,BIconEmojiHeartEyes:p.cRn,BIconEmojiHeartEyesFill:p.WRr,BIconEmojiLaughing:p.iau,BIconEmojiLaughingFill:p.SVP,BIconEmojiNeutral:p.g74,BIconEmojiNeutralFill:p.Hb7,BIconEmojiSmile:p.K2j,BIconEmojiSmileFill:p.mF1,BIconEmojiSmileUpsideDown:p.x2x,BIconEmojiSmileUpsideDownFill:p.gWL,BIconEmojiSunglasses:p.auv,BIconEmojiSunglassesFill:p.epQ,BIconEmojiWink:p.yc6,BIconEmojiWinkFill:p.Z8$,BIconEnvelope:p.AzZ,BIconEnvelopeFill:p.H0l,BIconEnvelopeOpen:p.eBo,BIconEnvelopeOpenFill:p.tM4,BIconEraser:p.WTD,BIconEraserFill:p.hsX,BIconExclamation:p.WNU,BIconExclamationCircle:p.mzf,BIconExclamationCircleFill:p.oFl,BIconExclamationDiamond:p.$kv,BIconExclamationDiamondFill:p.NIN,BIconExclamationLg:p.NDd,BIconExclamationOctagon:p.MHs,BIconExclamationOctagonFill:p.$UW,BIconExclamationSquare:p.CR_,BIconExclamationSquareFill:p.hnb,BIconExclamationTriangle:p.Sbj,BIconExclamationTriangleFill:p.aRd,BIconExclude:p.jZf,BIconEye:p.unT,BIconEyeFill:p.xK9,BIconEyeSlash:p.qa2,BIconEyeSlashFill:p.C0p,BIconEyedropper:p.hVG,BIconEyeglasses:p.aLz,BIconFacebook:p.AFc,BIconFile:p.Nvz,BIconFileArrowDown:p.t_N,BIconFileArrowDownFill:p.TRz,BIconFileArrowUp:p.jJr,BIconFileArrowUpFill:p.nQ9,BIconFileBarGraph:p.PSg,BIconFileBarGraphFill:p.P6d,BIconFileBinary:p.VTu,BIconFileBinaryFill:p.NHe,BIconFileBreak:p.ixf,BIconFileBreakFill:p.avJ,BIconFileCheck:p.hjF,BIconFileCheckFill:p.s2N,BIconFileCode:p.akx,BIconFileCodeFill:p.qNy,BIconFileDiff:p.qDm,BIconFileDiffFill:p.gSt,BIconFileEarmark:p.DzX,BIconFileEarmarkArrowDown:p.rn6,BIconFileEarmarkArrowDownFill:p.rCC,BIconFileEarmarkArrowUp:p._ND,BIconFileEarmarkArrowUpFill:p.nmB,BIconFileEarmarkBarGraph:p.EJz,BIconFileEarmarkBarGraphFill:p.frj,BIconFileEarmarkBinary:p.ZQy,BIconFileEarmarkBinaryFill:p._t4,BIconFileEarmarkBreak:p.TCy,BIconFileEarmarkBreakFill:p.KrZ,BIconFileEarmarkCheck:p.hgC,BIconFileEarmarkCheckFill:p.pHt,BIconFileEarmarkCode:p.WGv,BIconFileEarmarkCodeFill:p.HlX,BIconFileEarmarkDiff:p.Qxd,BIconFileEarmarkDiffFill:p.Eu1,BIconFileEarmarkEasel:p.RXn,BIconFileEarmarkEaselFill:p.FON,BIconFileEarmarkExcel:p.F2U,BIconFileEarmarkExcelFill:p.y0d,BIconFileEarmarkFill:p._EL,BIconFileEarmarkFont:p.k_T,BIconFileEarmarkFontFill:p.maT,BIconFileEarmarkImage:p.gLV,BIconFileEarmarkImageFill:p.LLn,BIconFileEarmarkLock:p.c$u,BIconFileEarmarkLock2:p.wsb,BIconFileEarmarkLock2Fill:p.WL9,BIconFileEarmarkLockFill:p.F8P,BIconFileEarmarkMedical:p.yJN,BIconFileEarmarkMedicalFill:p.Oa7,BIconFileEarmarkMinus:p.y31,BIconFileEarmarkMinusFill:p.jV0,BIconFileEarmarkMusic:p.W2x,BIconFileEarmarkMusicFill:p.ybu,BIconFileEarmarkPdf:p.QKF,BIconFileEarmarkPdfFill:p._FA,BIconFileEarmarkPerson:p.P3I,BIconFileEarmarkPersonFill:p.Zli,BIconFileEarmarkPlay:p.W9z,BIconFileEarmarkPlayFill:p.nNO,BIconFileEarmarkPlus:p.RHl,BIconFileEarmarkPlusFill:p.qGK,BIconFileEarmarkPost:p.wg8,BIconFileEarmarkPostFill:p.AhF,BIconFileEarmarkPpt:p.ta9,BIconFileEarmarkPptFill:p.sab,BIconFileEarmarkRichtext:p.sox,BIconFileEarmarkRichtextFill:p.p6A,BIconFileEarmarkRuled:p.m6y,BIconFileEarmarkRuledFill:p.SGV,BIconFileEarmarkSlides:p.GRE,BIconFileEarmarkSlidesFill:p.AtF,BIconFileEarmarkSpreadsheet:p.eJF,BIconFileEarmarkSpreadsheetFill:p.lfo,BIconFileEarmarkText:p.cky,BIconFileEarmarkTextFill:p.Ncy,BIconFileEarmarkWord:p.FRd,BIconFileEarmarkWordFill:p.gob,BIconFileEarmarkX:p.LcZ,BIconFileEarmarkXFill:p.oOD,BIconFileEarmarkZip:p.Ac7,BIconFileEarmarkZipFill:p.azw,BIconFileEasel:p.vHl,BIconFileEaselFill:p.j6L,BIconFileExcel:p.vWU,BIconFileExcelFill:p.c1o,BIconFileFill:p.QTz,BIconFileFont:p.O6A,BIconFileFontFill:p.ZPq,BIconFileImage:p.yG3,BIconFileImageFill:p.EET,BIconFileLock:p.DK7,BIconFileLock2:p.yHW,BIconFileLock2Fill:p.s00,BIconFileLockFill:p.zaM,BIconFileMedical:p.Zcn,BIconFileMedicalFill:p.Y46,BIconFileMinus:p.yAy,BIconFileMinusFill:p.zy5,BIconFileMusic:p.zyH,BIconFileMusicFill:p.Dhx,BIconFilePdf:p.k7v,BIconFilePdfFill:p.M7A,BIconFilePerson:p.iF5,BIconFilePersonFill:p.ZVB,BIconFilePlay:p.zEG,BIconFilePlayFill:p.igA,BIconFilePlus:p.orA,BIconFilePlusFill:p.kQG,BIconFilePost:p.rux,BIconFilePostFill:p.r1L,BIconFilePpt:p.IOy,BIconFilePptFill:p.Te7,BIconFileRichtext:p.L5L,BIconFileRichtextFill:p.lKq,BIconFileRuled:p.xxm,BIconFileRuledFill:p.u8C,BIconFileSlides:p.WOM,BIconFileSlidesFill:p.AZO,BIconFileSpreadsheet:p.Q7M,BIconFileSpreadsheetFill:p.Vwd,BIconFileText:p.XaZ,BIconFileTextFill:p.$HC,BIconFileWord:p.tZ5,BIconFileWordFill:p.OyK,BIconFileX:p.nq8,BIconFileXFill:p.mq7,BIconFileZip:p.Bce,BIconFileZipFill:p.eM,BIconFiles:p.WcR,BIconFilesAlt:p.AJ8,BIconFilm:p.usy,BIconFilter:p.jL1,BIconFilterCircle:p.vId,BIconFilterCircleFill:p.EzO,BIconFilterLeft:p.agd,BIconFilterRight:p.VZH,BIconFilterSquare:p.Uv_,BIconFilterSquareFill:p.Cfs,BIconFlag:p.G49,BIconFlagFill:p.RgY,BIconFlower1:p.VO9,BIconFlower2:p.sNo,BIconFlower3:p.DYR,BIconFolder:p.eUA,BIconFolder2:p.Ynb,BIconFolder2Open:p.jer,BIconFolderCheck:p.q$g,BIconFolderFill:p.xX9,BIconFolderMinus:p.GUc,BIconFolderPlus:p.RLE,BIconFolderSymlink:p.y5,BIconFolderSymlinkFill:p.YOR,BIconFolderX:p.yKu,BIconFonts:p.p0d,BIconForward:p.hM1,BIconForwardFill:p.oUn,BIconFront:p.Jyp,BIconFullscreen:p.xLz,BIconFullscreenExit:p.UNU,BIconFunnel:p.yXq,BIconFunnelFill:p.mAP,BIconGear:p.ajv,BIconGearFill:p.oqW,BIconGearWide:p.YYH,BIconGearWideConnected:p.csc,BIconGem:p.TaD,BIconGenderAmbiguous:p.q6S,BIconGenderFemale:p.PAb,BIconGenderMale:p.WJh,BIconGenderTrans:p.Zru,BIconGeo:p.rAx,BIconGeoAlt:p.ps2,BIconGeoAltFill:p.ul4,BIconGeoFill:p.Fj8,BIconGift:p.EYW,BIconGiftFill:p.KPx,BIconGithub:p.x9R,BIconGlobe:p.Ja0,BIconGlobe2:p.HZj,BIconGoogle:p.a1C,BIconGraphDown:p.CLd,BIconGraphUp:p.MyA,BIconGrid:p.hjn,BIconGrid1x2:p.XyE,BIconGrid1x2Fill:p.DuK,BIconGrid3x2:p.GAi,BIconGrid3x2Gap:p.$i3,BIconGrid3x2GapFill:p.A46,BIconGrid3x3:p.HSA,BIconGrid3x3Gap:p.Mg,BIconGrid3x3GapFill:p.yXV,BIconGridFill:p.jmp,BIconGripHorizontal:p.jfK,BIconGripVertical:p.WoP,BIconHammer:p.ETj,BIconHandIndex:p.KwU,BIconHandIndexFill:p.Tlw,BIconHandIndexThumb:p.W88,BIconHandIndexThumbFill:p.My5,BIconHandThumbsDown:p.E9m,BIconHandThumbsDownFill:p.rnt,BIconHandThumbsUp:p.eA6,BIconHandThumbsUpFill:p.wIM,BIconHandbag:p.QNB,BIconHandbagFill:p.t8m,BIconHash:p.N4C,BIconHdd:p.y2d,BIconHddFill:p.vSe,BIconHddNetwork:p.AQ,BIconHddNetworkFill:p.vL1,BIconHddRack:p.reo,BIconHddRackFill:p.PaN,BIconHddStack:p.tW7,BIconHddStackFill:p.f3e,BIconHeadphones:p.GbQ,BIconHeadset:p.VJW,BIconHeadsetVr:p.$nq,BIconHeart:p.Ryo,BIconHeartFill:p.ys_,BIconHeartHalf:p.qYD,BIconHeptagon:p.gpu,BIconHeptagonFill:p.HMY,BIconHeptagonHalf:p.Arq,BIconHexagon:p.WfC,BIconHexagonFill:p.rsw,BIconHexagonHalf:p.zx0,BIconHourglass:p.$CA,BIconHourglassBottom:p.$XH,BIconHourglassSplit:p.qVW,BIconHourglassTop:p.o6z,BIconHouse:p.Czj,BIconHouseDoor:p.xY_,BIconHouseDoorFill:p.sNP,BIconHouseFill:p.P5f,BIconHr:p.MYu,BIconHurricane:p.WeQ,BIconImage:p.EOy,BIconImageAlt:p.f,BIconImageFill:p.Hi_,BIconImages:p.hkE,BIconInbox:p.$7x,BIconInboxFill:p.E4S,BIconInboxes:p.NuJ,BIconInboxesFill:p.GYj,BIconInfo:p.gOI,BIconInfoCircle:p.gjx,BIconInfoCircleFill:p.iKS,BIconInfoLg:p.aBG,BIconInfoSquare:p.MmV,BIconInfoSquareFill:p.yV9,BIconInputCursor:p.kDA,BIconInputCursorText:p.JJX,BIconInstagram:p.pi2,BIconIntersect:p.Fwy,BIconJournal:p.nAd,BIconJournalAlbum:p.sWz,BIconJournalArrowDown:p.cuk,BIconJournalArrowUp:p.eWA,BIconJournalBookmark:p.Rhq,BIconJournalBookmarkFill:p.Wv3,BIconJournalCheck:p.YmD,BIconJournalCode:p.Gi0,BIconJournalMedical:p.N7z,BIconJournalMinus:p.K2s,BIconJournalPlus:p.Wf7,BIconJournalRichtext:p.K8Q,BIconJournalText:p.kEx,BIconJournalX:p.$xx,BIconJournals:p.Ntn,BIconJoystick:p.deY,BIconJustify:p.FYw,BIconJustifyLeft:p.agP,BIconJustifyRight:p.Vvz,BIconKanban:p.FHg,BIconKanbanFill:p.yfP,BIconKey:p.c0s,BIconKeyFill:p.MVe,BIconKeyboard:p.$dE,BIconKeyboardFill:p.qX_,BIconLadder:p.J2U,BIconLamp:p.cUy,BIconLampFill:p.qhD,BIconLaptop:p.Ncg,BIconLaptopFill:p.GKk,BIconLayerBackward:p.Kjd,BIconLayerForward:p.nI_,BIconLayers:p.q3S,BIconLayersFill:p.u$A,BIconLayersHalf:p.rSi,BIconLayoutSidebar:p.L5v,BIconLayoutSidebarInset:p.ZGd,BIconLayoutSidebarInsetReverse:p.BUE,BIconLayoutSidebarReverse:p.CqF,BIconLayoutSplit:p.$4y,BIconLayoutTextSidebar:p.UZG,BIconLayoutTextSidebarReverse:p.CA6,BIconLayoutTextWindow:p.rdT,BIconLayoutTextWindowReverse:p.Qd2,BIconLayoutThreeColumns:p.AXi,BIconLayoutWtf:p.OE7,BIconLifePreserver:p.tiA,BIconLightbulb:p.Ub7,BIconLightbulbFill:p.XI2,BIconLightbulbOff:p.HZh,BIconLightbulbOffFill:p.D2f,BIconLightning:p.T7F,BIconLightningCharge:p.CkZ,BIconLightningChargeFill:p.akn,BIconLightningFill:p.TnF,BIconLink:p.ZV1,BIconLink45deg:p._pQ,BIconLinkedin:p.Spe,BIconList:p.Gbt,BIconListCheck:p.W2s,BIconListNested:p.oap,BIconListOl:p.jLX,BIconListStars:p.GrX,BIconListTask:p.WPR,BIconListUl:p.ZW,BIconLock:p.MJF,BIconLockFill:p.N0Z,BIconMailbox:p.A3g,BIconMailbox2:p.McT,BIconMap:p.dnK,BIconMapFill:p.W8A,BIconMarkdown:p.i3I,BIconMarkdownFill:p.e7l,BIconMask:p.IuR,BIconMastodon:p.FlF,BIconMegaphone:p.gPx,BIconMegaphoneFill:p.htG,BIconMenuApp:p.OlH,BIconMenuAppFill:p.Ag5,BIconMenuButton:p.x5$,BIconMenuButtonFill:p._nU,BIconMenuButtonWide:p.WAF,BIconMenuButtonWideFill:p.oj9,BIconMenuDown:p.E27,BIconMenuUp:p.fSX,BIconMessenger:p.POB,BIconMic:p.DGt,BIconMicFill:p._0y,BIconMicMute:p.RFg,BIconMicMuteFill:p.zSG,BIconMinecart:p.gVW,BIconMinecartLoaded:p.cZ3,BIconMoisture:p.Oo5,BIconMoon:p.MZ$,BIconMoonFill:p.nqX,BIconMoonStars:p.Ght,BIconMoonStarsFill:p.KQk,BIconMouse:p.QcY,BIconMouse2:p.LW6,BIconMouse2Fill:p.hJ4,BIconMouse3:p.jvv,BIconMouse3Fill:p.cEM,BIconMouseFill:p.Lxs,BIconMusicNote:p.y$B,BIconMusicNoteBeamed:p.WZy,BIconMusicNoteList:p.MQZ,BIconMusicPlayer:p.RfG,BIconMusicPlayerFill:p.zKL,BIconNewspaper:p.qBk,BIconNodeMinus:p.rwy,BIconNodeMinusFill:p.tAv,BIconNodePlus:p.FUP,BIconNodePlusFill:p.Jof,BIconNut:p.JSo,BIconNutFill:p.ETc,BIconOctagon:p.rfr,BIconOctagonFill:p.S3,BIconOctagonHalf:p.KsY,BIconOption:p.JYK,BIconOutlet:p.oxP,BIconPaintBucket:p.dZN,BIconPalette:p.HUF,BIconPalette2:p.C5U,BIconPaletteFill:p.Nr6,BIconPaperclip:p.OBP,BIconParagraph:p._e0,BIconPatchCheck:p.O7q,BIconPatchCheckFill:p.y8h,BIconPatchExclamation:p.WRF,BIconPatchExclamationFill:p.Akv,BIconPatchMinus:p.FIt,BIconPatchMinusFill:p.r_A,BIconPatchPlus:p.bPd,BIconPatchPlusFill:p.un5,BIconPatchQuestion:p.w4u,BIconPatchQuestionFill:p.J5O,BIconPause:p.avs,BIconPauseBtn:p.xxT,BIconPauseBtnFill:p.fcN,BIconPauseCircle:p.B3Y,BIconPauseCircleFill:p.CYn,BIconPauseFill:p.RUg,BIconPeace:p.EdZ,BIconPeaceFill:p.wcC,BIconPen:p.BGW,BIconPenFill:p.DOj,BIconPencil:p.Hu2,BIconPencilFill:p.Ybx,BIconPencilSquare:p.Sle,BIconPentagon:p.G_Q,BIconPentagonFill:p.tVr,BIconPentagonHalf:p.vfk,BIconPeople:p.oCR,BIconPeopleFill:p.Fzw,BIconPercent:p.l2U,BIconPerson:p._iv,BIconPersonBadge:p.Svn,BIconPersonBadgeFill:p.Oyw,BIconPersonBoundingBox:p.FgQ,BIconPersonCheck:p.VG8,BIconPersonCheckFill:p.RXT,BIconPersonCircle:p.pbm,BIconPersonDash:p.ijN,BIconPersonDashFill:p.OO7,BIconPersonFill:p.kIL,BIconPersonLinesFill:p.fhH,BIconPersonPlus:p.D62,BIconPersonPlusFill:p.$o4,BIconPersonSquare:p.No$,BIconPersonX:p.pcF,BIconPersonXFill:p.gRs,BIconPhone:p.ZK2,BIconPhoneFill:p.ALr,BIconPhoneLandscape:p.yyI,BIconPhoneLandscapeFill:p.QO9,BIconPhoneVibrate:p.PaI,BIconPhoneVibrateFill:p.nCR,BIconPieChart:p.Dch,BIconPieChartFill:p.rO8,BIconPiggyBank:p.CJN,BIconPiggyBankFill:p.uTS,BIconPin:p.FKb,BIconPinAngle:p.CzI,BIconPinAngleFill:p.iPV,BIconPinFill:p.pfP,BIconPinMap:p.mOG,BIconPinMapFill:p.Ttd,BIconPip:p.f1L,BIconPipFill:p.HQ2,BIconPlay:p.rv6,BIconPlayBtn:p.XTo,BIconPlayBtnFill:p.j7I,BIconPlayCircle:p.vNm,BIconPlayCircleFill:p.WSs,BIconPlayFill:p.iIu,BIconPlug:p.Aq5,BIconPlugFill:p.o6o,BIconPlus:p.s3j,BIconPlusCircle:p.HON,BIconPlusCircleDotted:p.$Ib,BIconPlusCircleFill:p.BNe,BIconPlusLg:p.N$8,BIconPlusSquare:p.sax,BIconPlusSquareDotted:p.OjH,BIconPlusSquareFill:p.aX_,BIconPower:p.iqX,BIconPrinter:p.g8Q,BIconPrinterFill:p.BDZ,BIconPuzzle:p.rsC,BIconPuzzleFill:p.EcO,BIconQuestion:p.aOn,BIconQuestionCircle:p.POT,BIconQuestionCircleFill:p.lJj,BIconQuestionDiamond:p.JXn,BIconQuestionDiamondFill:p.xqZ,BIconQuestionLg:p.b_U,BIconQuestionOctagon:p.g2l,BIconQuestionOctagonFill:p.dqv,BIconQuestionSquare:p.d5d,BIconQuestionSquareFill:p.g1R,BIconRainbow:p.N0k,BIconReceipt:p.ust,BIconReceiptCutoff:p.Gxk,BIconReception0:p.ptJ,BIconReception1:p.YVL,BIconReception2:p.iTn,BIconReception3:p.USQ,BIconReception4:p.cm8,BIconRecord:p.yhH,BIconRecord2:p.MDD,BIconRecord2Fill:p.sYz,BIconRecordBtn:p.IpB,BIconRecordBtnFill:p.BDP,BIconRecordCircle:p._HZ,BIconRecordCircleFill:p.NWp,BIconRecordFill:p.xi8,BIconRecycle:p.bAN,BIconReddit:p.EeP,BIconReply:p.Yqx,BIconReplyAll:p.CSB,BIconReplyAllFill:p.ifk,BIconReplyFill:p.lq6,BIconRss:p.H7l,BIconRssFill:p.Dah,BIconRulers:p.EFm,BIconSafe:p.Ej8,BIconSafe2:p.xWj,BIconSafe2Fill:p.XyW,BIconSafeFill:p.sm9,BIconSave:p.QcS,BIconSave2:p.PUJ,BIconSave2Fill:p.Za9,BIconSaveFill:p.b$2,BIconScissors:p.cJK,BIconScrewdriver:p.olm,BIconSdCard:p.Wjf,BIconSdCardFill:p.Y6U,BIconSearch:p.Lln,BIconSegmentedNav:p.mlx,BIconServer:p.T1o,BIconShare:p.Rq4,BIconShareFill:p.EQi,BIconShield:p.PP4,BIconShieldCheck:p.jVl,BIconShieldExclamation:p.zlL,BIconShieldFill:p.aFN,BIconShieldFillCheck:p.Hs8,BIconShieldFillExclamation:p.vKM,BIconShieldFillMinus:p.yrP,BIconShieldFillPlus:p.Djs,BIconShieldFillX:p.aYp,BIconShieldLock:p.hNJ,BIconShieldLockFill:p.rr1,BIconShieldMinus:p.DoS,BIconShieldPlus:p.niF,BIconShieldShaded:p.C8q,BIconShieldSlash:p.aHb,BIconShieldSlashFill:p.Qxm,BIconShieldX:p.wSJ,BIconShift:p.K4x,BIconShiftFill:p.t$R,BIconShop:p.JSR,BIconShopWindow:p.Swf,BIconShuffle:p.JIg,BIconSignpost:p.$14,BIconSignpost2:p.JQd,BIconSignpost2Fill:p.uui,BIconSignpostFill:p.N5r,BIconSignpostSplit:p.qys,BIconSignpostSplitFill:p.CM6,BIconSim:p.Sxj,BIconSimFill:p.OyA,BIconSkipBackward:p.$oK,BIconSkipBackwardBtn:p.WdI,BIconSkipBackwardBtnFill:p.ph3,BIconSkipBackwardCircle:p.Ijv,BIconSkipBackwardCircleFill:p.qtp,BIconSkipBackwardFill:p.HSt,BIconSkipEnd:p.pIj,BIconSkipEndBtn:p.Jdj,BIconSkipEndBtnFill:p.AFY,BIconSkipEndCircle:p._3c,BIconSkipEndCircleFill:p.bu,BIconSkipEndFill:p.YAG,BIconSkipForward:p.VEf,BIconSkipForwardBtn:p.DiT,BIconSkipForwardBtnFill:p.U9A,BIconSkipForwardCircle:p.kLm,BIconSkipForwardCircleFill:p.Xg8,BIconSkipForwardFill:p.psN,BIconSkipStart:p.s0p,BIconSkipStartBtn:p.jyS,BIconSkipStartBtnFill:p.HHI,BIconSkipStartCircle:p.Ql_,BIconSkipStartCircleFill:p.rZ6,BIconSkipStartFill:p.klB,BIconSkype:p.nip,BIconSlack:p.GSI,BIconSlash:p.vcL,BIconSlashCircle:p.Sp1,BIconSlashCircleFill:p.GAz,BIconSlashLg:p.DnR,BIconSlashSquare:p.P8C,BIconSlashSquareFill:p.iGp,BIconSliders:p.b_Y,BIconSmartwatch:p.Nr_,BIconSnow:p.Yoy,BIconSnow2:p.HQ4,BIconSnow3:p.oJp,BIconSortAlphaDown:p.WvV,BIconSortAlphaDownAlt:p.zsJ,BIconSortAlphaUp:p.LfJ,BIconSortAlphaUpAlt:p.tpz,BIconSortDown:p.Rvz,BIconSortDownAlt:p.fFA,BIconSortNumericDown:p.bP8,BIconSortNumericDownAlt:p.UIq,BIconSortNumericUp:p.dwG,BIconSortNumericUpAlt:p.$3g,BIconSortUp:p.jyD,BIconSortUpAlt:p.T1q,BIconSoundwave:p.Mci,BIconSpeaker:p.pb8,BIconSpeakerFill:p.xBS,BIconSpeedometer:p.YBL,BIconSpeedometer2:p.V6_,BIconSpellcheck:p.e5V,BIconSquare:p.oYt,BIconSquareFill:p.lr5,BIconSquareHalf:p.jj_,BIconStack:p.L0Q,BIconStar:p.rWC,BIconStarFill:p.z76,BIconStarHalf:p.$T$,BIconStars:p.YSP,BIconStickies:p.BXe,BIconStickiesFill:p.YM1,BIconSticky:p.bBG,BIconStickyFill:p.PzY,BIconStop:p.Ja9,BIconStopBtn:p.EDu,BIconStopBtnFill:p.R$w,BIconStopCircle:p.XqR,BIconStopCircleFill:p.ZNk,BIconStopFill:p.ETC,BIconStoplights:p.Szf,BIconStoplightsFill:p.Jwj,BIconStopwatch:p.iZZ,BIconStopwatchFill:p.EeO,BIconSubtract:p.ypn,BIconSuitClub:p.vaB,BIconSuitClubFill:p.f6o,BIconSuitDiamond:p.dU_,BIconSuitDiamondFill:p.xYq,BIconSuitHeart:p.aXh,BIconSuitHeartFill:p.BG2,BIconSuitSpade:p.FdU,BIconSuitSpadeFill:p.cX_,BIconSun:p.wiA,BIconSunFill:p.jES,BIconSunglasses:p.tFD,BIconSunrise:p.lI6,BIconSunriseFill:p.nn6,BIconSunset:p.HZk,BIconSunsetFill:p.vrL,BIconSymmetryHorizontal:p.KHG,BIconSymmetryVertical:p.Tet,BIconTable:p.VqN,BIconTablet:p.IYS,BIconTabletFill:p.iQ7,BIconTabletLandscape:p.JEW,BIconTabletLandscapeFill:p.VHp,BIconTag:p.w_D,BIconTagFill:p.ayv,BIconTags:p.ZyB,BIconTagsFill:p.prG,BIconTelegram:p.AUI,BIconTelephone:p.aAC,BIconTelephoneFill:p.qmT,BIconTelephoneForward:p.GEo,BIconTelephoneForwardFill:p.hY9,BIconTelephoneInbound:p.X1s,BIconTelephoneInboundFill:p.YD2,BIconTelephoneMinus:p.EKW,BIconTelephoneMinusFill:p.DM6,BIconTelephoneOutbound:p.jDM,BIconTelephoneOutboundFill:p._VC,BIconTelephonePlus:p.xId,BIconTelephonePlusFill:p.RnR,BIconTelephoneX:p.fBY,BIconTelephoneXFill:p.hvI,BIconTerminal:p.Nf5,BIconTerminalFill:p.Uex,BIconTextCenter:p.FLd,BIconTextIndentLeft:p.wKc,BIconTextIndentRight:p.Dlh,BIconTextLeft:p.APx,BIconTextParagraph:p.mYi,BIconTextRight:p.s$o,BIconTextarea:p.ASE,BIconTextareaResize:p.Oos,BIconTextareaT:p.nOz,BIconThermometer:p.M1T,BIconThermometerHalf:p.OPm,BIconThermometerHigh:p.ztl,BIconThermometerLow:p.pwR,BIconThermometerSnow:p.gK0,BIconThermometerSun:p.n1l,BIconThreeDots:p.H7n,BIconThreeDotsVertical:p.sq6,BIconToggle2Off:p.uqy,BIconToggle2On:p.ILS,BIconToggleOff:p.A9,BIconToggleOn:p.oyf,BIconToggles:p.b7m,BIconToggles2:p.jhH,BIconTools:p.Nuo,BIconTornado:p.aLw,BIconTranslate:p.saS,BIconTrash:p.DkS,BIconTrash2:p.rI9,BIconTrash2Fill:p.nox,BIconTrashFill:p.jsZ,BIconTree:p.hTi,BIconTreeFill:p.Iqc,BIconTriangle:p._hV,BIconTriangleFill:p.FlM,BIconTriangleHalf:p.K1O,BIconTrophy:p.dst,BIconTrophyFill:p.ewq,BIconTropicalStorm:p.mo7,BIconTruck:p.X8t,BIconTruckFlatbed:p.udp,BIconTsunami:p.M81,BIconTv:p.qmC,BIconTvFill:p.b4Q,BIconTwitch:p.BmI,BIconTwitter:p.A82,BIconType:p.MCA,BIconTypeBold:p.ZmE,BIconTypeH1:p.Kg_,BIconTypeH2:p.HHY,BIconTypeH3:p.Kko,BIconTypeItalic:p.j7$,BIconTypeStrikethrough:p.q9f,BIconTypeUnderline:p.hDS,BIconUiChecks:p.Uz9,BIconUiChecksGrid:p.K1h,BIconUiRadios:p.bTh,BIconUiRadiosGrid:p.n_g,BIconUmbrella:p.wJZ,BIconUmbrellaFill:p.WO2,BIconUnion:p.eSm,BIconUnlock:p.pT1,BIconUnlockFill:p.ymc,BIconUpc:p.ehy,BIconUpcScan:p.x9k,BIconUpload:p.$V2,BIconVectorPen:p.G0y,BIconViewList:p.uL,BIconViewStacked:p.uSV,BIconVinyl:p.HA4,BIconVinylFill:p.PNX,BIconVoicemail:p.ddZ,BIconVolumeDown:p.vHp,BIconVolumeDownFill:p.Bc6,BIconVolumeMute:p.dvm,BIconVolumeMuteFill:p.Y1Z,BIconVolumeOff:p.kwf,BIconVolumeOffFill:p.BR7,BIconVolumeUp:p.Caz,BIconVolumeUpFill:p.Wdl,BIconVr:p.NpS,BIconWallet:p.N9Y,BIconWallet2:p.Qr2,BIconWalletFill:p.wYz,BIconWatch:p.yrV,BIconWater:p.Fw_,BIconWhatsapp:p.lLE,BIconWifi:p.kxn,BIconWifi1:p.Ulf,BIconWifi2:p.ViN,BIconWifiOff:p.zO$,BIconWind:p.K03,BIconWindow:p.KF5,BIconWindowDock:p.Ivm,BIconWindowSidebar:p.Grw,BIconWrench:p.z_2,BIconX:p.uR$,BIconXCircle:p.MIh,BIconXCircleFill:p.aEb,BIconXDiamond:p.XnP,BIconXDiamondFill:p.R8C,BIconXLg:p.hOD,BIconXOctagon:p.cu0,BIconXOctagonFill:p.xlC,BIconXSquare:p.ZGm,BIconXSquareFill:p.e_V,BIconYoutube:p.zm3,BIconZoomIn:p.Wet,BIconZoomOut:p.xcC}})},51205:(a,t,e)=>{e.d(t,{XG7:()=>ws});var n=e(86087),i=e(73106),r=(0,n.Hr)({components:{BAlert:i.F}}),o=e(1915),l=e(94689),c=e(12299),s=e(30824),h=e(21578),u=e(93954),d=e(20451),p=e(18280);function v(a,t){return g(a)||b(a,t)||m(a,t)||f()}function f(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function m(a,t){if(a){if("string"===typeof a)return z(a,t);var e=Object.prototype.toString.call(a).slice(8,-1);return"Object"===e&&a.constructor&&(e=a.constructor.name),"Map"===e||"Set"===e?Array.from(a):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?z(a,t):void 0}}function z(a,t){(null==t||t>a.length)&&(t=a.length);for(var e=0,n=new Array(t);ea.length)&&(t=a.length);for(var e=0,n=new Array(t);e1&&void 0!==arguments[1]?arguments[1]:$;a=(0,Z.zo)(a).filter(X.y);var e=new Intl.DateTimeFormat(a,{calendar:t});return e.resolvedOptions().locale},pa=function(a,t){var e=new Intl.DateTimeFormat(a,t);return e.format},va=function(a,t){return ua(a)===ua(t)},fa=function(a){return a=sa(a),a.setDate(1),a},ma=function(a){return a=sa(a),a.setMonth(a.getMonth()+1),a.setDate(0),a},za=function(a,t){a=sa(a);var e=a.getMonth();return a.setFullYear(a.getFullYear()+t),a.getMonth()!==e&&a.setDate(0),a},ba=function(a){a=sa(a);var t=a.getMonth();return a.setMonth(t-1),a.getMonth()===t&&a.setDate(0),a},ga=function(a){a=sa(a);var t=a.getMonth();return a.setMonth(t+1),a.getMonth()===(t+2)%12&&a.setDate(0),a},Ma=function(a){return za(a,-1)},ya=function(a){return za(a,1)},Va=function(a){return za(a,-10)},Ha=function(a){return za(a,10)},Aa=function(a){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return a=ha(a),t=ha(t)||a,e=ha(e)||a,a?ae?e:a:null},Ba=e(26410),Oa=e(28415),wa=e(9439),Ca=e(3058),Ia=e(54602),La=e(67040),Sa=e(46595),Pa=e(28492),Fa=e(73727),ka=e(72466);function ja(a,t){var e=Object.keys(a);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(a);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(a,t).enumerable}))),e.push.apply(e,n)}return e}function Ta(a){for(var t=1;tt}},dateDisabled:function(){var a=this,t=this.dateOutOfRange;return function(e){e=ha(e);var n=ua(e);return!(!t(e)&&!a.computedDateDisabledFn(n,e))}},formatDateString:function(){return pa(this.calendarLocale,Ta(Ta({year:q,month:G,day:G},this.dateFormatOptions),{},{hour:void 0,minute:void 0,second:void 0,calendar:$}))},formatYearMonth:function(){return pa(this.calendarLocale,{year:q,month:R,calendar:$})},formatWeekdayName:function(){return pa(this.calendarLocale,{weekday:R,calendar:$})},formatWeekdayNameShort:function(){return pa(this.calendarLocale,{weekday:this.weekdayHeaderFormat||U,calendar:$})},formatDay:function(){var a=new Intl.NumberFormat([this.computedLocale],{style:"decimal",minimumIntegerDigits:1,minimumFractionDigits:0,maximumFractionDigits:0,notation:"standard"});return function(t){return a.format(t.getDate())}},prevDecadeDisabled:function(){var a=this.computedMin;return this.disabled||a&&ma(Va(this.activeDate))a},nextYearDisabled:function(){var a=this.computedMax;return this.disabled||a&&fa(ya(this.activeDate))>a},nextDecadeDisabled:function(){var a=this.computedMax;return this.disabled||a&&fa(Ha(this.activeDate))>a},calendar:function(){for(var a=[],t=this.calendarFirstDay,e=t.getFullYear(),n=t.getMonth(),i=this.calendarDaysInMonth,r=t.getDay(),o=(this.computedWeekStarts>r?7:0)-this.computedWeekStarts,l=0-o-r,c=0;c<6&&l0),touchStartX:0,touchDeltaX:0}},computed:{numSlides:function(){return this.slides.length}},watch:(ft={},Bt(ft,It,(function(a,t){a!==t&&this.setSlide((0,u.Z3)(a,0))})),Bt(ft,"interval",(function(a,t){a!==t&&(a?(this.pause(!0),this.start(!1)):this.pause(!1))})),Bt(ft,"isPaused",(function(a,t){a!==t&&this.$emit(a?W._4:W.Ow)})),Bt(ft,"index",(function(a,t){a===t||this.isSliding||this.doSlide(a,t)})),ft),created:function(){this.$_interval=null,this.$_animationTimeout=null,this.$_touchTimeout=null,this.$_observer=null,this.isPaused=!((0,u.Z3)(this.interval,0)>0)},mounted:function(){this.transitionEndEvent=Dt(this.$el)||null,this.updateSlides(),this.setObserver(!0)},beforeDestroy:function(){this.clearInterval(),this.clearAnimationTimeout(),this.clearTouchTimeout(),this.setObserver(!1)},methods:{clearInterval:function(a){function t(){return a.apply(this,arguments)}return t.toString=function(){return a.toString()},t}((function(){clearInterval(this.$_interval),this.$_interval=null})),clearAnimationTimeout:function(){clearTimeout(this.$_animationTimeout),this.$_animationTimeout=null},clearTouchTimeout:function(){clearTimeout(this.$_touchTimeout),this.$_touchTimeout=null},setObserver:function(){var a=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.$_observer&&this.$_observer.disconnect(),this.$_observer=null,a&&(this.$_observer=(0,Vt.t)(this.$refs.inner,this.updateSlides.bind(this),{subtree:!1,childList:!0,attributes:!0,attributeFilter:["id"]}))},setSlide:function(a){var t=this,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!(et.Qg&&document.visibilityState&&document.hidden)){var n=this.noWrap,i=this.numSlides;a=(0,h.Mk)(a),0!==i&&(this.isSliding?this.$once(W.Kr,(function(){(0,Ba.bz)((function(){return t.setSlide(a,e)}))})):(this.direction=e,this.index=a>=i?n?i-1:0:a<0?n?0:i-1:a,n&&this.index!==a&&this.index!==this[It]&&this.$emit(Lt,this.index)))}},prev:function(){this.setSlide(this.index-1,"prev")},next:function(){this.setSlide(this.index+1,"next")},pause:function(a){a||(this.isPaused=!0),this.clearInterval()},start:function(a){a||(this.isPaused=!1),this.clearInterval(),this.interval&&this.numSlides>1&&(this.$_interval=setInterval(this.next,(0,h.nP)(1e3,this.interval)))},restart:function(){this.$el.contains((0,Ba.vY)())||this.start()},doSlide:function(a,t){var e=this,n=Boolean(this.interval),i=this.calcDirection(this.direction,t,a),r=i.overlayClass,o=i.dirClass,l=this.slides[t],c=this.slides[a];if(l&&c){if(this.isSliding=!0,n&&this.pause(!1),this.$emit(W.XH,a),this.$emit(Lt,this.index),this.noAnimation)(0,Ba.cn)(c,"active"),(0,Ba.IV)(l,"active"),this.isSliding=!1,this.$nextTick((function(){return e.$emit(W.Kr,a)}));else{(0,Ba.cn)(c,r),(0,Ba.nq)(c),(0,Ba.cn)(l,o),(0,Ba.cn)(c,o);var s=!1,h=function t(){if(!s){if(s=!0,e.transitionEndEvent){var n=e.transitionEndEvent.split(/\s+/);n.forEach((function(a){return(0,Oa.QY)(c,a,t,W.IJ)}))}e.clearAnimationTimeout(),(0,Ba.IV)(c,o),(0,Ba.IV)(c,r),(0,Ba.cn)(c,"active"),(0,Ba.IV)(l,"active"),(0,Ba.IV)(l,o),(0,Ba.IV)(l,r),(0,Ba.fi)(l,"aria-current","false"),(0,Ba.fi)(c,"aria-current","true"),(0,Ba.fi)(l,"aria-hidden","true"),(0,Ba.fi)(c,"aria-hidden","false"),e.isSliding=!1,e.direction=null,e.$nextTick((function(){return e.$emit(W.Kr,a)}))}};if(this.transitionEndEvent){var u=this.transitionEndEvent.split(/\s+/);u.forEach((function(a){return(0,Oa.XO)(c,a,h,W.IJ)}))}this.$_animationTimeout=setTimeout(h,Pt)}n&&this.start(!1)}},updateSlides:function(){this.pause(!0),this.slides=(0,Ba.a8)(".carousel-item",this.$refs.inner);var a=this.slides.length,t=(0,h.nP)(0,(0,h.bS)((0,h.Mk)(this.index),a-1));this.slides.forEach((function(e,n){var i=n+1;n===t?((0,Ba.cn)(e,"active"),(0,Ba.fi)(e,"aria-current","true")):((0,Ba.IV)(e,"active"),(0,Ba.fi)(e,"aria-current","false")),(0,Ba.fi)(e,"aria-posinset",String(i)),(0,Ba.fi)(e,"aria-setsize",String(a))})),this.setSlide(t),this.start(this.isPaused)},calcDirection:function(){var a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return a?St[a]:e>t?St.next:St.prev},handleClick:function(a,t){var e=a.keyCode;"click"!==a.type&&e!==K.m5&&e!==K.K2||((0,Oa.p7)(a),t())},handleSwipe:function(){var a=(0,h.W8)(this.touchDeltaX);if(!(a<=kt)){var t=a/this.touchDeltaX;this.touchDeltaX=0,t>0?this.prev():t<0&&this.next()}},touchStart:function(a){et.cM&&jt[a.pointerType.toUpperCase()]?this.touchStartX=a.clientX:et.cM||(this.touchStartX=a.touches[0].clientX)},touchMove:function(a){a.touches&&a.touches.length>1?this.touchDeltaX=0:this.touchDeltaX=a.touches[0].clientX-this.touchStartX},touchEnd:function(a){et.cM&&jt[a.pointerType.toUpperCase()]&&(this.touchDeltaX=a.clientX-this.touchStartX),this.handleSwipe(),this.pause(!1),this.clearTouchTimeout(),this.$_touchTimeout=setTimeout(this.start,Ft+(0,h.nP)(1e3,this.interval))}},render:function(a){var t=this,e=this.indicators,n=this.background,i=this.noAnimation,r=this.noHoverPause,o=this.noTouch,l=this.index,c=this.isSliding,s=this.pause,h=this.restart,u=this.touchStart,d=this.touchEnd,p=this.safeId("__BV_inner_"),v=a("div",{staticClass:"carousel-inner",attrs:{id:p,role:"list"},ref:"inner"},[this.normalizeSlot()]),f=a();if(this.controls){var m=function(e,n,i){var r=function(a){c?(0,Oa.p7)(a,{propagation:!1}):t.handleClick(a,i)};return a("a",{staticClass:"carousel-control-".concat(e),attrs:{href:"#",role:"button","aria-controls":p,"aria-disabled":c?"true":null},on:{click:r,keydown:r}},[a("span",{staticClass:"carousel-control-".concat(e,"-icon"),attrs:{"aria-hidden":"true"}}),a("span",{class:"sr-only"},[n])])};f=[m("prev",this.labelPrev,this.prev),m("next",this.labelNext,this.next)]}var z=a("ol",{staticClass:"carousel-indicators",directives:[{name:"show",value:e}],attrs:{id:this.safeId("__BV_indicators_"),"aria-hidden":e?"false":"true","aria-label":this.labelIndicators,"aria-owns":p}},this.slides.map((function(n,i){var r=function(a){t.handleClick(a,(function(){t.setSlide(i)}))};return a("li",{class:{active:i===l},attrs:{role:"button",id:t.safeId("__BV_indicator_".concat(i+1,"_")),tabindex:e?"0":"-1","aria-current":i===l?"true":"false","aria-label":"".concat(t.labelGotoSlide," ").concat(i+1),"aria-describedby":n.id||null,"aria-controls":p},on:{click:r,keydown:r},key:"slide_".concat(i)})}))),b={mouseenter:r?yt.Z:s,mouseleave:r?yt.Z:h,focusin:s,focusout:h,keydown:function(a){if(!/input|textarea/i.test(a.target.tagName)){var e=a.keyCode;e!==K.Cq&&e!==K.YO||((0,Oa.p7)(a),t[e===K.Cq?"prev":"next"]())}}};return et.LV&&!o&&(et.cM?(b["&pointerdown"]=u,b["&pointerup"]=d):(b["&touchstart"]=u,b["&touchmove"]=this.touchMove,b["&touchend"]=d)),a("div",{staticClass:"carousel",class:{slide:!i,"carousel-fade":!i&&this.fade,"pointer-event":et.LV&&et.cM&&!o},style:{background:n},attrs:{role:"region",id:this.safeId(),"aria-busy":c?"true":"false"},on:b},[v,f,z])}}),Nt=e(18735);function $t(a,t){var e=Object.keys(a);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(a);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(a,t).enumerable}))),e.push.apply(e,n)}return e}function Rt(a){for(var t=1;t0&&(c=[a("div",{staticClass:"b-form-date-controls d-flex flex-wrap",class:{"justify-content-between":c.length>1,"justify-content-end":c.length<2}},c)]);var p=a(Ga,{staticClass:"b-form-date-calendar w-100",props:pn(pn({},(0,d.uj)(yn,r)),{},{hidden:!this.isVisible,value:t,valueAsDate:!1,width:this.calendarWidth}),on:{selected:this.onSelected,input:this.onInput,context:this.onContext},scopedSlots:(0,La.ei)(o,["nav-prev-decade","nav-prev-year","nav-prev-month","nav-this-month","nav-next-month","nav-next-year","nav-next-decade"]),key:"calendar",ref:"calendar"},c);return a(un,{staticClass:"b-form-datepicker",props:pn(pn({},(0,d.uj)(Vn,r)),{},{formattedValue:t?this.formattedValue:"",id:this.safeId(),lang:this.computedLang,menuClass:[{"bg-dark":i,"text-light":i},this.menuClass],placeholder:l,rtl:this.isRTL,value:t}),on:{show:this.onShow,shown:this.onShown,hidden:this.onHidden},scopedSlots:vn({},J.j1,o[J.j1]||this.defaultButtonFn),ref:"control"},[p])}}),Bn=(0,n.Hr)({components:{BFormDatepicker:An,BDatepicker:An}}),On=e(28112),wn=e(30158),Cn=e(77147),In=e(58137);function Ln(a,t){var e=Object.keys(a);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(a);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(a,t).enumerable}))),e.push.apply(e,n)}return e}function Sn(a){for(var t=1;t1&&void 0!==arguments[1])||arguments[1];return Promise.all((0,Z.Dp)(a).filter((function(a){return"file"===a.kind})).map((function(a){var e=$n(a);if(e){if(e.isDirectory&&t)return _n(e.createReader(),"".concat(e.name,"/"));if(e.isFile)return new Promise((function(a){e.file((function(t){t.$path="",a(t)}))}))}return null})).filter(X.y))},_n=function a(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return new Promise((function(n){var i=[],r=function r(){t.readEntries((function(t){0===t.length?n(Promise.all(i).then((function(a){return(0,Z.xH)(a)}))):(i.push(Promise.all(t.map((function(t){if(t){if(t.isDirectory)return a(t.createReader(),"".concat(e).concat(t.name,"/"));if(t.isFile)return new Promise((function(a){t.file((function(t){t.$path="".concat(e).concat(t.name),a(t)}))}))}return null})).filter(X.y))),r())}))};r()}))},Un=(0,d.y2)((0,La.GE)(Sn(Sn(Sn(Sn(Sn(Sn(Sn({},Fa.N),Tn),Je.N),In.N),Xe.N),Ze.N),{},{accept:(0,d.pi)(c.N0,""),browseText:(0,d.pi)(c.N0,"Browse"),capture:(0,d.pi)(c.U5,!1),directory:(0,d.pi)(c.U5,!1),dropPlaceholder:(0,d.pi)(c.N0,"Drop files here"),fileNameFormatter:(0,d.pi)(c.Sx),multiple:(0,d.pi)(c.U5,!1),noDrop:(0,d.pi)(c.U5,!1),noDropPlaceholder:(0,d.pi)(c.N0,"Not allowed"),noTraverse:(0,d.pi)(c.U5,!1),placeholder:(0,d.pi)(c.N0,"No file chosen")})),l.Tx),Gn=(0,o.l7)({name:l.Tx,mixins:[Pa.D,Fa.t,jn,p.Z,Je.X,Xe.J,In.i,p.Z],inheritAttrs:!1,props:Un,data:function(){return{files:[],dragging:!1,dropAllowed:!this.noDrop,hasFocus:!1}},computed:{computedAccept:function(){var a=this.accept;return a=(a||"").trim().split(/[,\s]+/).filter(X.y),0===a.length?null:a.map((function(a){var t="name",e="^",n="$";s._4.test(a)?e="":(t="type",s.vY.test(a)&&(n=".+$",a=a.slice(0,-1))),a=(0,Sa.hr)(a);var i=new RegExp("".concat(e).concat(a).concat(n));return{rx:i,prop:t}}))},computedCapture:function(){var a=this.capture;return!0===a||""===a||(a||null)},computedAttrs:function(){var a=this.name,t=this.disabled,e=this.required,n=this.form,i=this.computedCapture,r=this.accept,o=this.multiple,l=this.directory;return Sn(Sn({},this.bvAttrs),{},{type:"file",id:this.safeId(),name:a,disabled:t,required:e,form:n||null,capture:i,accept:r||null,multiple:o,directory:l,webkitdirectory:l,"aria-required":e?"true":null})},computedFileNameFormatter:function(){var a=this.fileNameFormatter;return(0,d.lo)(a)?a:this.defaultFileNameFormatter},clonedFiles:function(){return(0,wn.X)(this.files)},flattenedFiles:function(){return(0,Z.Ar)(this.files)},fileNames:function(){return this.flattenedFiles.map((function(a){return a.name}))},labelContent:function(){if(this.dragging&&!this.noDrop)return this.normalizeSlot(J.h0,{allowed:this.dropAllowed})||(this.dropAllowed?this.dropPlaceholder:this.$createElement("span",{staticClass:"text-danger"},this.noDropPlaceholder));if(0===this.files.length)return this.normalizeSlot(J.Nd)||this.placeholder;var a=this.flattenedFiles,t=this.clonedFiles,e=this.fileNames,n=this.computedFileNameFormatter;return this.hasNormalizedSlot(J.hU)?this.normalizeSlot(J.hU,{files:a,filesTraversed:t,names:e}):n(a,t,e)}},watch:(fn={},Pn(fn,Dn,(function(a){(!a||(0,Y.kJ)(a)&&0===a.length)&&this.reset()})),Pn(fn,"files",(function(a,t){if(!(0,Ca.W)(a,t)){var e=this.multiple,n=this.noTraverse,i=!e||n?(0,Z.Ar)(a):a;this.$emit(En,e?i:i[0]||null)}})),fn),created:function(){this.$_form=null},mounted:function(){var a=(0,Ba.oq)("form",this.$el);a&&((0,Oa.XO)(a,"reset",this.reset,W.SH),this.$_form=a)},beforeDestroy:function(){var a=this.$_form;a&&(0,Oa.QY)(a,"reset",this.reset,W.SH)},methods:{isFileValid:function(a){if(!a)return!1;var t=this.computedAccept;return!t||t.some((function(t){return t.rx.test(a[t.prop])}))},isFilesArrayValid:function(a){var t=this;return(0,Y.kJ)(a)?a.every((function(a){return t.isFileValid(a)})):this.isFileValid(a)},defaultFileNameFormatter:function(a,t,e){return e.join(", ")},setFiles:function(a){this.dropAllowed=!this.noDrop,this.dragging=!1,this.files=this.multiple?this.directory?a:(0,Z.Ar)(a):(0,Z.Ar)(a).slice(0,1)},setInputFiles:function(a){try{var t=new ClipboardEvent("").clipboardData||new DataTransfer;(0,Z.Ar)((0,wn.X)(a)).forEach((function(a){delete a.$path,t.items.add(a)})),this.$refs.input.files=t.files}catch(e){}},reset:function(){try{var a=this.$refs.input;a.value="",a.type="",a.type="file"}catch(t){}this.files=[]},handleFiles:function(a){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(t){var e=a.filter(this.isFilesArrayValid);e.length>0&&(this.setFiles(e),this.setInputFiles(e))}else this.setFiles(a)},focusHandler:function(a){this.plain||"focusout"===a.type?this.hasFocus=!1:this.hasFocus=!0},onChange:function(a){var t=this,e=a.type,n=a.target,i=a.dataTransfer,r=void 0===i?{}:i,o="drop"===e;this.$emit(W.z2,a);var l=(0,Z.Dp)(r.items||[]);if(et.zx&&l.length>0&&!(0,Y.Ft)($n(l[0])))Rn(l,this.directory).then((function(a){return t.handleFiles(a,o)}));else{var c=(0,Z.Dp)(n.files||r.files||[]).map((function(a){return a.$path=a.webkitRelativePath||"",a}));this.handleFiles(c,o)}},onDragenter:function(a){(0,Oa.p7)(a),this.dragging=!0;var t=a.dataTransfer,e=void 0===t?{}:t;if(this.noDrop||this.disabled||!this.dropAllowed)return e.dropEffect="none",void(this.dropAllowed=!1);e.dropEffect="copy"},onDragover:function(a){(0,Oa.p7)(a),this.dragging=!0;var t=a.dataTransfer,e=void 0===t?{}:t;if(this.noDrop||this.disabled||!this.dropAllowed)return e.dropEffect="none",void(this.dropAllowed=!1);e.dropEffect="copy"},onDragleave:function(a){var t=this;(0,Oa.p7)(a),this.$nextTick((function(){t.dragging=!1,t.dropAllowed=!t.noDrop}))},onDrop:function(a){var t=this;(0,Oa.p7)(a),this.dragging=!1,this.noDrop||this.disabled||!this.dropAllowed?this.$nextTick((function(){t.dropAllowed=!t.noDrop})):this.onChange(a)}},render:function(a){var t=this.custom,e=this.plain,n=this.size,i=this.dragging,r=this.stateClass,o=this.bvAttrs,l=a("input",{class:[{"form-control-file":e,"custom-file-input":t,focus:t&&this.hasFocus},r],style:t?{zIndex:-5}:{},attrs:this.computedAttrs,on:{change:this.onChange,focusin:this.focusHandler,focusout:this.focusHandler,reset:this.reset},ref:"input"});if(e)return l;var c=a("label",{staticClass:"custom-file-label",class:{dragging:i},attrs:{for:this.safeId(),"data-browse":this.browseText||null}},[a("span",{staticClass:"d-block form-file-text",style:{pointerEvents:"none"}},[this.labelContent])]);return a("div",{staticClass:"custom-file b-form-file",class:[Pn({},"b-custom-control-".concat(n),n),r,o.class],style:o.style,attrs:{id:this.safeId("_BV_file_outer_")},on:{dragenter:this.onDragenter,dragover:this.onDragover,dragleave:this.onDragleave,drop:this.onDrop}},[l,c])}}),qn=(0,n.Hr)({components:{BFormFile:Gn,BFile:Gn}}),Wn=e(46709),Kn=(0,n.Hr)({components:{BFormGroup:Wn.x,BFormFieldset:Wn.x}}),Jn=e(22183),Zn=(0,n.Hr)({components:{BFormInput:Jn.e,BInput:Jn.e}}),Xn=e(76398),Yn=e(87167),Qn=(0,n.Hr)({components:{BFormRadio:Xn.g,BRadio:Xn.g,BFormRadioGroup:Yn.Q,BRadioGroup:Yn.Q}}),ai=e(43022);function ti(a,t){var e=Object.keys(a);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(a);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(a,t).enumerable}))),e.push.apply(e,n)}return e}function ei(a){for(var t=1;t=e?"full":t>=e-.5?"half":"empty",h={variant:r,disabled:o,readonly:l};return a("span",{staticClass:"b-rating-star",class:{focused:n&&t===e||!(0,u.Z3)(t)&&e===c,"b-rating-star-empty":"empty"===s,"b-rating-star-half":"half"===s,"b-rating-star-full":"full"===s},attrs:{tabindex:o||l?null:"-1"},on:{click:this.onClick}},[a("span",{staticClass:"b-rating-icon"},[this.normalizeSlot(s,h)])])}}),fi=(0,d.y2)((0,La.GE)(ei(ei(ei(ei(ei({},Fa.N),li),(0,La.CE)(Je.N,["required","autofocus"])),Ze.N),{},{color:(0,d.pi)(c.N0),iconClear:(0,d.pi)(c.N0,"x"),iconEmpty:(0,d.pi)(c.N0,"star"),iconFull:(0,d.pi)(c.N0,"star-fill"),iconHalf:(0,d.pi)(c.N0,"star-half"),inline:(0,d.pi)(c.U5,!1),locale:(0,d.pi)(c.Mu),noBorder:(0,d.pi)(c.U5,!1),precision:(0,d.pi)(c.fE),readonly:(0,d.pi)(c.U5,!1),showClear:(0,d.pi)(c.U5,!1),showValue:(0,d.pi)(c.U5,!1),showValueMax:(0,d.pi)(c.U5,!1),stars:(0,d.pi)(c.fE,ui,(function(a){return(0,u.Z3)(a)>=hi})),variant:(0,d.pi)(c.N0)})),l.VY),mi=(0,o.l7)({name:l.VY,components:{BIconStar:ka.rWC,BIconStarHalf:ka.$T$,BIconStarFill:ka.z76,BIconX:ka.uR$},mixins:[Fa.t,oi,Ze.j],props:fi,data:function(){var a=(0,u.f_)(this[ci],null),t=di(this.stars);return{localValue:(0,Y.Ft)(a)?null:pi(a,0,t),hasFocus:!1}},computed:{computedStars:function(){return di(this.stars)},computedRating:function(){var a=(0,u.f_)(this.localValue,0),t=(0,u.Z3)(this.precision,3);return pi((0,u.f_)(a.toFixed(t)),0,this.computedStars)},computedLocale:function(){var a=(0,Z.zo)(this.locale).filter(X.y),t=new Intl.NumberFormat(a);return t.resolvedOptions().locale},isInteractive:function(){return!this.disabled&&!this.readonly},isRTL:function(){return(0,wa.e)(this.computedLocale)},formattedRating:function(){var a=(0,u.Z3)(this.precision),t=this.showValueMax,e=this.computedLocale,n={notation:"standard",minimumFractionDigits:isNaN(a)?0:a,maximumFractionDigits:isNaN(a)?3:a},i=this.computedStars.toLocaleString(e),r=this.localValue;return r=(0,Y.Ft)(r)?t?"-":"":r.toLocaleString(e,n),t?"".concat(r,"/").concat(i):r}},watch:(Fn={},ni(Fn,ci,(function(a,t){if(a!==t){var e=(0,u.f_)(a,null);this.localValue=(0,Y.Ft)(e)?null:pi(e,0,this.computedStars)}})),ni(Fn,"localValue",(function(a,t){a!==t&&a!==(this.value||0)&&this.$emit(si,a||null)})),ni(Fn,"disabled",(function(a){a&&(this.hasFocus=!1,this.blur())})),Fn),methods:{focus:function(){this.disabled||(0,Ba.KS)(this.$el)},blur:function(){this.disabled||(0,Ba.Cx)(this.$el)},onKeydown:function(a){var t=a.keyCode;if(this.isInteractive&&(0,Z.kI)([K.Cq,K.RV,K.YO,K.XS],t)){(0,Oa.p7)(a,{propagation:!1});var e=(0,u.Z3)(this.localValue,0),n=this.showClear?0:1,i=this.computedStars,r=this.isRTL?-1:1;t===K.Cq?this.localValue=pi(e-r,n,i)||null:t===K.YO?this.localValue=pi(e+r,n,i):t===K.RV?this.localValue=pi(e-1,n,i)||null:t===K.XS&&(this.localValue=pi(e+1,n,i))}},onSelected:function(a){this.isInteractive&&(this.localValue=a)},onFocus:function(a){this.hasFocus=!!this.isInteractive&&"focus"===a.type},renderIcon:function(a){return this.$createElement(ai.H,{props:{icon:a,variant:this.disabled||this.color?null:this.variant||null}})},iconEmptyFn:function(){return this.renderIcon(this.iconEmpty)},iconHalfFn:function(){return this.renderIcon(this.iconHalf)},iconFullFn:function(){return this.renderIcon(this.iconFull)},iconClearFn:function(){return this.$createElement(ai.H,{props:{icon:this.iconClear}})}},render:function(a){var t=this,e=this.disabled,n=this.readonly,i=this.name,r=this.form,o=this.inline,l=this.variant,c=this.color,s=this.noBorder,h=this.hasFocus,u=this.computedRating,d=this.computedStars,p=this.formattedRating,v=this.showClear,f=this.isRTL,m=this.isInteractive,z=this.$scopedSlots,b=[];if(v&&!e&&!n){var g=a("span",{staticClass:"b-rating-icon"},[(z[J.uH]||this.iconClearFn)()]);b.push(a("span",{staticClass:"b-rating-star b-rating-star-clear flex-grow-1",class:{focused:h&&0===u},attrs:{tabindex:m?"-1":null},on:{click:function(){return t.onSelected(null)}},key:"clear"},[g]))}for(var M=0;Ma.length)&&(t=a.length);for(var e=0,n=new Array(t);e1&&void 0!==arguments[1]&&arguments[1];if((0,Y.Ft)(t)||(0,Y.Ft)(e)||i&&(0,Y.Ft)(n))return"";var r=[t,e,i?n:0];return r.map(Gi).join(":")},Ki=(0,d.y2)((0,La.GE)(Li(Li(Li(Li({},Fa.N),$i),(0,La.ei)(Vi.N,["labelIncrement","labelDecrement"])),{},{ariaLabelledby:(0,d.pi)(c.N0),disabled:(0,d.pi)(c.U5,!1),footerTag:(0,d.pi)(c.N0,"footer"),headerTag:(0,d.pi)(c.N0,"header"),hidden:(0,d.pi)(c.U5,!1),hideHeader:(0,d.pi)(c.U5,!1),hour12:(0,d.pi)(c.U5,null),labelAm:(0,d.pi)(c.N0,"AM"),labelAmpm:(0,d.pi)(c.N0,"AM/PM"),labelHours:(0,d.pi)(c.N0,"Hours"),labelMinutes:(0,d.pi)(c.N0,"Minutes"),labelNoTimeSelected:(0,d.pi)(c.N0,"No time selected"),labelPm:(0,d.pi)(c.N0,"PM"),labelSeconds:(0,d.pi)(c.N0,"Seconds"),labelSelected:(0,d.pi)(c.N0,"Selected time"),locale:(0,d.pi)(c.Mu),minutesStep:(0,d.pi)(c.fE,1),readonly:(0,d.pi)(c.U5,!1),secondsStep:(0,d.pi)(c.fE,1),showSeconds:(0,d.pi)(c.U5,!1)})),l.tq),Ji=(0,o.l7)({name:l.tq,mixins:[Fa.t,Ni,p.Z],props:Ki,data:function(){var a=qi(this[Ri]||"");return{modelHours:a.hours,modelMinutes:a.minutes,modelSeconds:a.seconds,modelAmpm:a.ampm,isLive:!1}},computed:{computedHMS:function(){var a=this.modelHours,t=this.modelMinutes,e=this.modelSeconds;return Wi({hours:a,minutes:t,seconds:e},this.showSeconds)},resolvedOptions:function(){var a=(0,Z.zo)(this.locale).filter(X.y),t={hour:Ui,minute:Ui,second:Ui};(0,Y.Jp)(this.hour12)||(t.hour12=!!this.hour12);var e=new Intl.DateTimeFormat(a,t),n=e.resolvedOptions(),i=n.hour12||!1,r=n.hourCycle||(i?"h12":"h23");return{locale:n.locale,hour12:i,hourCycle:r}},computedLocale:function(){return this.resolvedOptions.locale},computedLang:function(){return(this.computedLocale||"").replace(/-u-.*$/,"")},computedRTL:function(){return(0,wa.e)(this.computedLang)},computedHourCycle:function(){return this.resolvedOptions.hourCycle},is12Hour:function(){return!!this.resolvedOptions.hour12},context:function(){return{locale:this.computedLocale,isRTL:this.computedRTL,hourCycle:this.computedHourCycle,hour12:this.is12Hour,hours:this.modelHours,minutes:this.modelMinutes,seconds:this.showSeconds?this.modelSeconds:0,value:this.computedHMS,formatted:this.formattedTimeString}},valueId:function(){return this.safeId()||null},computedAriaLabelledby:function(){return[this.ariaLabelledby,this.valueId].filter(X.y).join(" ")||null},timeFormatter:function(){var a={hour12:this.is12Hour,hourCycle:this.computedHourCycle,hour:Ui,minute:Ui,timeZone:"UTC"};return this.showSeconds&&(a.second=Ui),pa(this.computedLocale,a)},numberFormatter:function(){var a=new Intl.NumberFormat(this.computedLocale,{style:"decimal",minimumIntegerDigits:2,minimumFractionDigits:0,maximumFractionDigits:0,notation:"standard"});return a.format},formattedTimeString:function(){var a=this.modelHours,t=this.modelMinutes,e=this.showSeconds&&this.modelSeconds||0;return this.computedHMS?this.timeFormatter(sa(Date.UTC(0,0,1,a,t,e))):this.labelNoTimeSelected||" "},spinScopedSlots:function(){var a=this.$createElement;return{increment:function(t){var e=t.hasFocus;return a(ka.b4M,{props:{scale:e?1.5:1.25},attrs:{"aria-hidden":"true"}})},decrement:function(t){var e=t.hasFocus;return a(ka.b4M,{props:{flipV:!0,scale:e?1.5:1.25},attrs:{"aria-hidden":"true"}})}}}},watch:(ii={},Si(ii,Ri,(function(a,t){if(a!==t&&!(0,Ca.W)(qi(a),qi(this.computedHMS))){var e=qi(a),n=e.hours,i=e.minutes,r=e.seconds,o=e.ampm;this.modelHours=n,this.modelMinutes=i,this.modelSeconds=r,this.modelAmpm=o}})),Si(ii,"computedHMS",(function(a,t){a!==t&&this.$emit(_i,a)})),Si(ii,"context",(function(a,t){(0,Ca.W)(a,t)||this.$emit(W.XD,a)})),Si(ii,"modelAmpm",(function(a,t){var e=this;if(a!==t){var n=(0,Y.Ft)(this.modelHours)?0:this.modelHours;this.$nextTick((function(){0===a&&n>11?e.modelHours=n-12:1===a&&n<12&&(e.modelHours=n+12)}))}})),Si(ii,"modelHours",(function(a,t){a!==t&&(this.modelAmpm=a>11?1:0)})),ii),created:function(){var a=this;this.$nextTick((function(){a.$emit(W.XD,a.context)}))},mounted:function(){this.setLive(!0)},activated:function(){this.setLive(!0)},deactivated:function(){this.setLive(!1)},beforeDestroy:function(){this.setLive(!1)},methods:{focus:function(){this.disabled||(0,Ba.KS)(this.$refs.spinners[0])},blur:function(){if(!this.disabled){var a=(0,Ba.vY)();(0,Ba.r3)(this.$el,a)&&(0,Ba.Cx)(a)}},formatHours:function(a){var t=this.computedHourCycle;return a=this.is12Hour&&a>12?a-12:a,a=0===a&&"h12"===t?12:0===a&&"h24"===t?24:12===a&&"h11"===t?0:a,this.numberFormatter(a)},formatMinutes:function(a){return this.numberFormatter(a)},formatSeconds:function(a){return this.numberFormatter(a)},formatAmpm:function(a){return 0===a?this.labelAm:1===a?this.labelPm:""},setHours:function(a){this.modelHours=a},setMinutes:function(a){this.modelMinutes=a},setSeconds:function(a){this.modelSeconds=a},setAmpm:function(a){this.modelAmpm=a},onSpinLeftRight:function(){var a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=a.type,e=a.keyCode;if(!this.disabled&&"keydown"===t&&(e===K.Cq||e===K.YO)){(0,Oa.p7)(a);var n=this.$refs.spinners||[],i=n.map((function(a){return!!a.hasFocus})).indexOf(!0);i+=e===K.Cq?-1:1,i=i>=n.length?0:i<0?n.length-1:i,(0,Ba.KS)(n[i])}},setLive:function(a){var t=this;a?this.$nextTick((function(){(0,Ba.bz)((function(){t.isLive=!0}))})):this.isLive=!1}},render:function(a){var t=this;if(this.hidden)return a();var e=this.disabled,n=this.readonly,i=this.computedLocale,r=this.computedAriaLabelledby,l=this.labelIncrement,c=this.labelDecrement,s=this.valueId,h=this.focus,u=[],d=function(r,h,d){var p=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},v=t.safeId("_spinbutton_".concat(h,"_"))||null;return u.push(v),a(Vi.G,Si({class:d,props:Li({id:v,placeholder:"--",vertical:!0,required:!0,disabled:e,readonly:n,locale:i,labelIncrement:l,labelDecrement:c,wrap:!0,ariaControls:s,min:0},p),scopedSlots:t.spinScopedSlots,on:{change:r},key:h,ref:"spinners"},o.TF,!0))},p=function(){return a("div",{staticClass:"d-flex flex-column",class:{"text-muted":e||n},attrs:{"aria-hidden":"true"}},[a(ka.gMT,{props:{shiftV:4,scale:.5}}),a(ka.gMT,{props:{shiftV:-4,scale:.5}})])},v=[];v.push(d(this.setHours,"hours","b-time-hours",{value:this.modelHours,max:23,step:1,formatterFn:this.formatHours,ariaLabel:this.labelHours})),v.push(p()),v.push(d(this.setMinutes,"minutes","b-time-minutes",{value:this.modelMinutes,max:59,step:this.minutesStep||1,formatterFn:this.formatMinutes,ariaLabel:this.labelMinutes})),this.showSeconds&&(v.push(p()),v.push(d(this.setSeconds,"seconds","b-time-seconds",{value:this.modelSeconds,max:59,step:this.secondsStep||1,formatterFn:this.formatSeconds,ariaLabel:this.labelSeconds}))),this.isLive&&this.is12Hour&&v.push(d(this.setAmpm,"ampm","b-time-ampm",{value:this.modelAmpm,max:1,formatterFn:this.formatAmpm,ariaLabel:this.labelAmpm,required:!1})),v=a("div",{staticClass:"d-flex align-items-center justify-content-center mx-auto",attrs:{role:"group",tabindex:e||n?null:"-1","aria-labelledby":r},on:{keydown:this.onSpinLeftRight,click:function(a){a.target===a.currentTarget&&h()}}},v);var f=a("output",{staticClass:"form-control form-control-sm text-center",class:{disabled:e||n},attrs:{id:s,role:"status",for:u.filter(X.y).join(" ")||null,tabindex:e?null:"-1","aria-live":this.isLive?"polite":"off","aria-atomic":"true"},on:{click:h,focus:h}},[a("bdi",this.formattedTimeString),this.computedHMS?a("span",{staticClass:"sr-only"}," (".concat(this.labelSelected,") ")):""]),m=a(this.headerTag,{staticClass:"b-time-header",class:{"sr-only":this.hideHeader}},[f]),z=this.normalizeSlot(),b=z?a(this.footerTag,{staticClass:"b-time-footer"},z):a();return a("div",{staticClass:"b-time d-inline-flex flex-column text-center",attrs:{role:"group",lang:this.computedLang||null,"aria-labelledby":r||null,"aria-disabled":e?"true":null,"aria-readonly":n&&!e?"true":null}},[m,v,b])}});function Zi(a,t){var e=Object.keys(a);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(a);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(a,t).enumerable}))),e.push.apply(e,n)}return e}function Xi(a){for(var t=1;t0&&o.push(a("span"," "));var c=this.labelResetButton;o.push(a(k.T,{props:{size:"sm",disabled:e||n,variant:this.resetButtonVariant},attrs:{"aria-label":c||null},on:{click:this.onResetButton},key:"reset-btn"},c))}if(!this.noCloseButton){o.length>0&&o.push(a("span"," "));var s=this.labelCloseButton;o.push(a(k.T,{props:{size:"sm",disabled:e,variant:this.closeButtonVariant},attrs:{"aria-label":s||null},on:{click:this.onCloseButton},key:"close-btn"},s))}o.length>0&&(o=[a("div",{staticClass:"b-form-date-controls d-flex flex-wrap",class:{"justify-content-between":o.length>1,"justify-content-end":o.length<2}},o)]);var h=a(Ji,{staticClass:"b-form-time-control",props:Xi(Xi({},(0,d.uj)(ir,i)),{},{value:t,hidden:!this.isVisible}),on:{input:this.onInput,context:this.onContext},ref:"time"},o);return a(un,{staticClass:"b-form-timepicker",props:Xi(Xi({},(0,d.uj)(rr,i)),{},{id:this.safeId(),value:t,formattedValue:t?this.formattedValue:"",placeholder:r,rtl:this.isRTL,lang:this.computedLang}),on:{show:this.onShow,shown:this.onShown,hidden:this.onHidden},scopedSlots:Yi({},J.j1,this.$scopedSlots[J.j1]||this.defaultButtonFn),ref:"control"},[h])}}),cr=(0,n.Hr)({components:{BFormTimepicker:lr,BTimepicker:lr}}),sr=(0,n.Hr)({components:{BImg:tt.s,BImgLazy:ut}}),hr=e(4060),ur=e(74199),dr=e(27754),pr=e(22418),vr=e(18222),fr=(0,n.Hr)({components:{BInputGroup:hr.w,BInputGroupAddon:ur.B,BInputGroupPrepend:dr.P,BInputGroupAppend:pr.B,BInputGroupText:vr.e}}),mr=e(34147);function zr(a,t,e){return t in a?Object.defineProperty(a,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):a[t]=e,a}var br=(0,d.y2)({bgVariant:(0,d.pi)(c.N0),borderVariant:(0,d.pi)(c.N0),containerFluid:(0,d.pi)(c.gL,!1),fluid:(0,d.pi)(c.U5,!1),header:(0,d.pi)(c.N0),headerHtml:(0,d.pi)(c.N0),headerLevel:(0,d.pi)(c.fE,3),headerTag:(0,d.pi)(c.N0,"h1"),lead:(0,d.pi)(c.N0),leadHtml:(0,d.pi)(c.N0),leadTag:(0,d.pi)(c.N0,"p"),tag:(0,d.pi)(c.N0,"div"),textVariant:(0,d.pi)(c.N0)},l.Qf),gr=(0,o.l7)({name:l.Qf,functional:!0,props:br,render:function(a,t){var e,n=t.props,i=t.data,r=t.slots,o=t.scopedSlots,l=n.header,c=n.headerHtml,s=n.lead,h=n.leadHtml,u=n.textVariant,d=n.bgVariant,p=n.borderVariant,v=o||{},f=r(),m={},z=a(),b=(0,me.Q)(J._0,v,f);if(b||l||c){var g=n.headerLevel;z=a(n.headerTag,{class:zr({},"display-".concat(g),g),domProps:b?{}:(0,Nt.U)(c,l)},(0,me.O)(J._0,m,v,f))}var M=a(),y=(0,me.Q)(J.WU,v,f);(y||s||h)&&(M=a(n.leadTag,{staticClass:"lead",domProps:y?{}:(0,Nt.U)(h,s)},(0,me.O)(J.WU,m,v,f)));var V=[z,M,(0,me.O)(J.Pq,m,v,f)];return n.fluid&&(V=[a(mr.h,{props:{fluid:n.containerFluid}},V)]),a(n.tag,(0,at.b)(i,{staticClass:"jumbotron",class:(e={"jumbotron-fluid":n.fluid},zr(e,"text-".concat(u),u),zr(e,"bg-".concat(d),d),zr(e,"border-".concat(p),p),zr(e,"border",p),e)}),V)}}),Mr=(0,n.Hr)({components:{BJumbotron:gr}}),yr=e(48648),Vr=e(67347),Hr=(0,n.Hr)({components:{BLink:Vr.we}}),Ar=e(70322),Br=e(88367),Or=(0,n.Hr)({components:{BListGroup:Ar.N,BListGroupItem:Br.f}}),wr=e(72775),Cr=e(87272),Ir=e(68361),Lr=(0,n.Hr)({components:{BMedia:wr.P,BMediaAside:Cr.D,BMediaBody:Ir.D}}),Sr=e(54016),Pr=e(29027),Fr=e(32450),kr={},jr=(0,o.l7)({name:l.fn,functional:!0,props:kr,render:function(a,t){var e=t.data,n=t.children;return a("li",(0,at.b)(e,{staticClass:"navbar-text"}),n)}});function Tr(a,t){var e=Object.keys(a);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(a);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(a,t).enumerable}))),e.push.apply(e,n)}return e}function Dr(a){for(var t=1;ta.length)&&(t=a.length);for(var e=0,n=new Array(t);e0?this.localNumberOfPages=this.pages.length:this.localNumberOfPages=Oo(this.numberOfPages),this.$nextTick((function(){a.guessCurrentPage()}))},onClick:function(a,t){var e=this;if(t!==this.currentPage){var n=a.currentTarget||a.target,i=new Mo.n(W.M$,{cancelable:!0,vueTarget:this,target:n});this.$emit(i.type,i,t),i.defaultPrevented||((0,Ba.bz)((function(){e.currentPage=t,e.$emit(W.z2,t)})),this.$nextTick((function(){(0,Ba.Cx)(n)})))}},getPageInfo:function(a){if(!(0,Y.kJ)(this.pages)||0===this.pages.length||(0,Y.o8)(this.pages[a-1])){var t="".concat(this.baseUrl).concat(a);return{link:this.useRouter?{path:t}:t,text:(0,Sa.BB)(a)}}var e=this.pages[a-1];if((0,Y.Kn)(e)){var n=e.link;return{link:(0,Y.Kn)(n)?n:this.useRouter?{path:n}:n,text:(0,Sa.BB)(e.text||a)}}return{link:(0,Sa.BB)(e),text:(0,Sa.BB)(a)}},makePage:function(a){var t=this.pageGen,e=this.getPageInfo(a);return(0,d.lo)(t)?t(a,e):e.text},makeLink:function(a){var t=this.linkGen,e=this.getPageInfo(a);return(0,d.lo)(t)?t(a,e):e.link},linkProps:function(a){var t=(0,d.uj)(wo,this),e=this.makeLink(a);return this.useRouter||(0,Y.Kn)(e)?t.to=e:t.href=e,t},resolveLink:function(){var a,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";try{a=document.createElement("a"),a.href=(0,yo.tN)({to:t},"a","/","/"),document.body.appendChild(a);var e=a,n=e.pathname,i=e.hash,r=e.search;return document.body.removeChild(a),{path:n,hash:i,query:(0,yo.mB)(r)}}catch(o){try{a&&a.parentNode&&a.parentNode.removeChild(a)}catch(l){}return{}}},resolveRoute:function(){var a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";try{var t=this.$router.resolve(a,this.$route).route;return{path:t.path,hash:t.hash,query:t.query}}catch(e){return{}}},guessCurrentPage:function(){var a=this.$router,t=this.$route,e=this.computedValue;if(!this.noPageDetect&&!e&&(et.Qg||!et.Qg&&a))for(var n=a&&t?{path:t.path,hash:t.hash,query:t.query}:{},i=et.Qg?window.location||document.location:null,r=i?{path:i.pathname,hash:i.hash,query:(0,yo.mB)(i.search)}:{},o=1;!e&&o<=this.localNumberOfPages;o++){var l=this.makeLink(o);e=a&&((0,Y.Kn)(l)||this.useRouter)?(0,Ca.W)(this.resolveRoute(l),n)?o:null:et.Qg?(0,Ca.W)(this.resolveLink(l),r)?o:null:-1}this.currentPage=e>0?e:0}}}),Lo=(0,n.Hr)({components:{BPaginationNav:Io}}),So=e(53862),Po=e(79968),Fo=e(13597),ko=e(96056),jo=e(55789),To=e(63929);function Do(a,t){var e=Object.keys(a);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(a);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(a,t).enumerable}))),e.push.apply(e,n)}return e}function Eo(a){for(var t=1;t0&&a[$o].updateData(t)}))}var r={title:n.title,content:n.content,triggers:n.trigger,placement:n.placement,fallbackPlacement:n.fallbackPlacement,variant:n.variant,customClass:n.customClass,container:n.container,boundary:n.boundary,delay:n.delay,offset:n.offset,noFade:!n.animation,id:n.id,disabled:n.disabled,html:n.html},o=a[$o].__bv_prev_data__;if(a[$o].__bv_prev_data__=r,!(0,Ca.W)(r,o)){var l={target:a};(0,La.XP)(r).forEach((function(t){r[t]!==o[t]&&(l[t]="title"!==t&&"content"!==t||!(0,Y.mf)(r[t])?r[t]:r[t](a))})),a[$o].updateData(l)}}},el=function(a){a[$o]&&(a[$o].$destroy(),a[$o]=null),delete a[$o]},nl={bind:function(a,t,e){tl(a,t,e)},componentUpdated:function(a,t,e){(0,o.Y3)((function(){tl(a,t,e)}))},unbind:function(a){el(a)}},il=(0,n.Hr)({directives:{VBPopover:nl}}),rl=(0,n.Hr)({components:{BPopover:So.x},plugins:{VBPopoverPlugin:il}}),ol=e(45752),ll=e(22981),cl=(0,n.Hr)({components:{BProgress:ol.D,BProgressBar:ll.Q}}),sl=e(17100);function hl(a,t){var e=Object.keys(a);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(a);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(a,t).enumerable}))),e.push.apply(e,n)}return e}function ul(a){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.noCloseOnRouteChange||a.fullPath===t.fullPath||this.hide()})),No),created:function(){this.$_returnFocusEl=null},mounted:function(){var a=this;this.listenOnRoot(fl,this.handleToggle),this.listenOnRoot(vl,this.handleSync),this.$nextTick((function(){a.emitState(a.localShow)}))},activated:function(){this.emitSync()},beforeDestroy:function(){this.localShow=!1,this.$_returnFocusEl=null},methods:{hide:function(){this.localShow=!1},emitState:function(){var a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.localShow;this.emitOnRoot(ml,this.safeId(),a)},emitSync:function(){var a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.localShow;this.emitOnRoot(zl,this.safeId(),a)},handleToggle:function(a){a&&a===this.safeId()&&(this.localShow=!this.localShow)},handleSync:function(a){var t=this;a&&a===this.safeId()&&this.$nextTick((function(){t.emitSync(t.localShow)}))},onKeydown:function(a){var t=a.keyCode;!this.noCloseOnEsc&&t===K.RZ&&this.localShow&&this.hide()},onBackdropClick:function(){this.localShow&&!this.noCloseOnBackdrop&&this.hide()},onTopTrapFocus:function(){var a=(0,Ba.td)(this.$refs.content);this.enforceFocus(a.reverse()[0])},onBottomTrapFocus:function(){var a=(0,Ba.td)(this.$refs.content);this.enforceFocus(a[0])},onBeforeEnter:function(){this.$_returnFocusEl=(0,Ba.vY)(et.Qg?[document.body]:[]),this.isOpen=!0},onAfterEnter:function(a){(0,Ba.r3)(a,(0,Ba.vY)())||this.enforceFocus(a),this.$emit(W.AS)},onAfterLeave:function(){this.enforceFocus(this.$_returnFocusEl),this.$_returnFocusEl=null,this.isOpen=!1,this.$emit(W.v6)},enforceFocus:function(a){this.noEnforceFocus||(0,Ba.KS)(a)}},render:function(a){var t,e=this.bgVariant,n=this.width,i=this.textVariant,r=this.localShow,o=""===this.shadow||this.shadow,l=a(this.tag,{staticClass:pl,class:[(t={shadow:!0===o},dl(t,"shadow-".concat(o),o&&!0!==o),dl(t,"".concat(pl,"-right"),this.right),dl(t,"bg-".concat(e),e),dl(t,"text-".concat(i),i),t),this.sidebarClass],style:{width:n},attrs:this.computedAttrs,directives:[{name:"show",value:r}],ref:"content"},[Il(a,this)]);l=a("transition",{props:this.transitionProps,on:{beforeEnter:this.onBeforeEnter,afterEnter:this.onAfterEnter,afterLeave:this.onAfterLeave}},[l]);var c=a(sl.N,{props:{noFade:this.noSlide}},[Ll(a,this)]),s=a(),h=a();return this.backdrop&&r&&(s=a("div",{attrs:{tabindex:"0"},on:{focus:this.onTopTrapFocus}}),h=a("div",{attrs:{tabindex:"0"},on:{focus:this.onBottomTrapFocus}})),a("div",{staticClass:"b-sidebar-outer",style:{zIndex:this.zIndex},attrs:{tabindex:"-1"},on:{keydown:this.onKeydown}},[s,l,h,c])}}),Pl=(0,n.Hr)({components:{BSidebar:Sl},plugins:{VBTogglePlugin:Zt}});function Fl(a,t,e){return t in a?Object.defineProperty(a,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):a[t]=e,a}var kl=(0,d.y2)({animation:(0,d.pi)(c.N0,"wave"),height:(0,d.pi)(c.N0),size:(0,d.pi)(c.N0),type:(0,d.pi)(c.N0,"text"),variant:(0,d.pi)(c.N0),width:(0,d.pi)(c.N0)},l.Xm),jl=(0,o.l7)({name:l.Xm,functional:!0,props:kl,render:function(a,t){var e,n=t.data,i=t.props,r=i.size,o=i.animation,l=i.variant;return a("div",(0,at.b)(n,{staticClass:"b-skeleton",style:{width:r||i.width,height:r||i.height},class:(e={},Fl(e,"b-skeleton-".concat(i.type),!0),Fl(e,"b-skeleton-animate-".concat(o),o),Fl(e,"bg-".concat(l),l),e)}))}});function Tl(a,t){var e=Object.keys(a);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(a);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(a,t).enumerable}))),e.push.apply(e,n)}return e}function Dl(a){for(var t=1;t0},ec=(0,d.y2)({animation:(0,d.pi)(c.N0),columns:(0,d.pi)(c.jg,5,tc),hideHeader:(0,d.pi)(c.U5,!1),rows:(0,d.pi)(c.jg,3,tc),showFooter:(0,d.pi)(c.U5,!1),tableProps:(0,d.pi)(c.aR,{})},l.xl),nc=(0,o.l7)({name:l.xl,functional:!0,props:ec,render:function(a,t){var e=t.data,n=t.props,i=n.animation,r=n.columns,o=a("th",[a(jl,{props:{animation:i}})]),l=a("tr",(0,Z.Ri)(r,o)),c=a("td",[a(jl,{props:{width:"75%",animation:i}})]),s=a("tr",(0,Z.Ri)(r,c)),h=a("tbody",(0,Z.Ri)(n.rows,s)),u=n.hideHeader?a():a("thead",[l]),d=n.showFooter?a("tfoot",[l]):a();return a(Xl,(0,at.b)(e,{props:Ql({},n.tableProps)}),[u,h,d])}}),ic=(0,d.y2)({loading:(0,d.pi)(c.U5,!1)},l.aD),rc=(0,o.l7)({name:l.aD,functional:!0,props:ic,render:function(a,t){var e=t.data,n=t.props,i=t.slots,r=t.scopedSlots,o=i(),l=r||{},c={};return n.loading?a("div",(0,at.b)(e,{attrs:{role:"alert","aria-live":"polite","aria-busy":!0},staticClass:"b-skeleton-wrapper",key:"loading"}),(0,me.O)(J.pd,c,l,o)):(0,me.O)(J.Pq,c,l,o)}}),oc=(0,n.Hr)({components:{BSkeleton:jl,BSkeletonIcon:Nl,BSkeletonImg:_l,BSkeletonTable:nc,BSkeletonWrapper:rc}}),lc=e(1759),cc=(0,n.Hr)({components:{BSpinner:lc.X}}),sc=e(16521),hc=e(49682),uc=e(32341),dc=e(23249),pc=e(55739),vc=e(41054),fc=e(64120);function mc(a,t){var e=Object.keys(a);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(a);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(a,t).enumerable}))),e.push.apply(e,n)}return e}function zc(a){for(var t=1;t=e){var n=this.$targets[this.$targets.length-1];this.$activeTarget!==n&&this.activate(n)}else{if(this.$activeTarget&&a0)return this.$activeTarget=null,void this.clear();for(var i=this.$offsets.length;i--;){var r=this.$activeTarget!==this.$targets[i]&&a>=this.$offsets[i]&&((0,Y.o8)(this.$offsets[i+1])||a0&&this.$root&&this.$root.$emit(os,a,e)}},{key:"clear",value:function(){var a=this;(0,Ba.a8)("".concat(this.$selector,", ").concat(ts),this.$el).filter((function(a){return(0,Ba.pv)(a,Yc)})).forEach((function(t){return a.setActiveState(t,!1)}))}},{key:"setActiveState",value:function(a,t){a&&(t?(0,Ba.cn)(a,Yc):(0,Ba.IV)(a,Yc))}}],[{key:"Name",get:function(){return Zc}},{key:"Default",get:function(){return ss}},{key:"DefaultType",get:function(){return hs}}]),a}(),fs="__BV_Scrollspy__",ms=/^\d+$/,zs=/^(auto|position|offset)$/,bs=function(a){var t={};return a.arg&&(t.element="#".concat(a.arg)),(0,La.XP)(a.modifiers).forEach((function(a){ms.test(a)?t.offset=(0,u.Z3)(a,0):zs.test(a)&&(t.method=a)})),(0,Y.HD)(a.value)?t.element=a.value:(0,Y.hj)(a.value)?t.offset=(0,h.ir)(a.value):(0,Y.Kn)(a.value)&&(0,La.XP)(a.value).filter((function(a){return!!vs.DefaultType[a]})).forEach((function(e){t[e]=a.value[e]})),t},gs=function(a,t,e){if(et.Qg){var n=bs(t);a[fs]?a[fs].updateConfig(n,(0,_c.C)((0,ko.U)(e,t))):a[fs]=new vs(a,n,(0,_c.C)((0,ko.U)(e,t)))}},Ms=function(a){a[fs]&&(a[fs].dispose(),a[fs]=null,delete a[fs])},ys={bind:function(a,t,e){gs(a,t,e)},inserted:function(a,t,e){gs(a,t,e)},update:function(a,t,e){t.value!==t.oldValue&&gs(a,t,e)},componentUpdated:function(a,t,e){t.value!==t.oldValue&&gs(a,t,e)},unbind:function(a){Ms(a)}},Vs=(0,n.Hr)({directives:{VBScrollspy:ys}}),Hs=(0,n.Hr)({directives:{VBVisible:nt.z}}),As=(0,n.Hr)({plugins:{VBHoverPlugin:Nc,VBModalPlugin:Rc,VBPopoverPlugin:il,VBScrollspyPlugin:Vs,VBTogglePlugin:Zt,VBTooltipPlugin:Dc,VBVisiblePlugin:Hs}}),Bs="BootstrapVue",Os=(0,n.sr)({plugins:{componentsPlugin:xc,directivesPlugin:As}}),ws={install:Os,NAME:Bs}},28492:(a,t,e)=>{e.d(t,{D:()=>h});var n=e(51665),i=e(1915);function r(a,t){var e=Object.keys(a);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(a);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(a,t).enumerable}))),e.push.apply(e,n)}return e}function o(a){for(var t=1;t{e.d(t,{N:()=>l});var n=e(1915),i=e(94689),r=e(12299),o=e(20451),l=(0,o.y2)({bgVariant:(0,o.pi)(r.N0),borderVariant:(0,o.pi)(r.N0),tag:(0,o.pi)(r.N0,"div"),textVariant:(0,o.pi)(r.N0)},i._v);(0,n.l7)({props:l})},43711:(a,t,e)=>{e.d(t,{e:()=>E,N:()=>D});var n=e(28981),i=e(1915),r=e(94689),o=e(43935),l=e(63294),c=e(63663),s="top-start",h="top-end",u="bottom-start",d="bottom-end",p="right-start",v="left-start",f=e(12299),m=e(28112),z=e(37130),b=e(26410),g=e(28415),M=e(33284),y=e(67040),V=e(20451),H=e(77147),A=(0,i.l7)({data:function(){return{listenForClickOut:!1}},watch:{listenForClickOut:function(a,t){a!==t&&((0,g.QY)(this.clickOutElement,this.clickOutEventName,this._clickOutHandler,l.IJ),a&&(0,g.XO)(this.clickOutElement,this.clickOutEventName,this._clickOutHandler,l.IJ))}},beforeCreate:function(){this.clickOutElement=null,this.clickOutEventName=null},mounted:function(){this.clickOutElement||(this.clickOutElement=document),this.clickOutEventName||(this.clickOutEventName="click"),this.listenForClickOut&&(0,g.XO)(this.clickOutElement,this.clickOutEventName,this._clickOutHandler,l.IJ)},beforeDestroy:function(){(0,g.QY)(this.clickOutElement,this.clickOutEventName,this._clickOutHandler,l.IJ)},methods:{isClickOut:function(a){return!(0,b.r3)(this.$el,a.target)},_clickOutHandler:function(a){this.clickOutHandler&&this.isClickOut(a)&&this.clickOutHandler(a)}}}),B=(0,i.l7)({data:function(){return{listenForFocusIn:!1}},watch:{listenForFocusIn:function(a,t){a!==t&&((0,g.QY)(this.focusInElement,"focusin",this._focusInHandler,l.IJ),a&&(0,g.XO)(this.focusInElement,"focusin",this._focusInHandler,l.IJ))}},beforeCreate:function(){this.focusInElement=null},mounted:function(){this.focusInElement||(this.focusInElement=document),this.listenForFocusIn&&(0,g.XO)(this.focusInElement,"focusin",this._focusInHandler,l.IJ)},beforeDestroy:function(){(0,g.QY)(this.focusInElement,"focusin",this._focusInHandler,l.IJ)},methods:{_focusInHandler:function(a){this.focusInHandler&&this.focusInHandler(a)}}}),O=e(73727),w=e(98596),C=e(99022);function I(a,t){var e=Object.keys(a);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(a);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(a,t).enumerable}))),e.push.apply(e,n)}return e}function L(a){for(var t=1;t0&&void 0!==arguments[0]&&arguments[0];this.disabled||(this.visible=!1,a&&this.$once(l.v6,this.focusToggler))},toggle:function(a){a=a||{};var t=a,e=t.type,n=t.keyCode;("click"===e||"keydown"===e&&-1!==[c.K2,c.m5,c.RV].indexOf(n))&&(this.disabled?this.visible=!1:(this.$emit(l.Ep,a),(0,g.p7)(a),this.visible?this.hide(!0):this.show()))},onMousedown:function(a){(0,g.p7)(a,{propagation:!1})},onKeydown:function(a){var t=a.keyCode;t===c.RZ?this.onEsc(a):t===c.RV?this.focusNext(a,!1):t===c.XS&&this.focusNext(a,!0)},onEsc:function(a){this.visible&&(this.visible=!1,(0,g.p7)(a),this.$once(l.v6,this.focusToggler))},onSplitClick:function(a){this.disabled?this.visible=!1:this.$emit(l.PZ,a)},hideHandler:function(a){var t=this,e=a.target;!this.visible||(0,b.r3)(this.$refs.menu,e)||(0,b.r3)(this.toggler,e)||(this.clearHideTimeout(),this.$_hideTimeout=setTimeout((function(){return t.hide()}),this.hideDelay))},clickOutHandler:function(a){this.hideHandler(a)},focusInHandler:function(a){this.hideHandler(a)},focusNext:function(a,t){var e=this,n=a.target;!this.visible||a&&(0,b.oq)(k,n)||((0,g.p7)(a),this.$nextTick((function(){var a=e.getItems();if(!(a.length<1)){var i=a.indexOf(n);t&&i>0?i--:!t&&i{e.d(t,{N:()=>c,X:()=>s});var n=e(1915),i=e(12299),r=e(26410),o=e(20451),l="input, textarea, select",c=(0,o.y2)({autofocus:(0,o.pi)(i.U5,!1),disabled:(0,o.pi)(i.U5,!1),form:(0,o.pi)(i.N0),id:(0,o.pi)(i.N0),name:(0,o.pi)(i.N0),required:(0,o.pi)(i.U5,!1)},"formControls"),s=(0,n.l7)({props:c,mounted:function(){this.handleAutofocus()},activated:function(){this.handleAutofocus()},methods:{handleAutofocus:function(){var a=this;this.$nextTick((function(){(0,r.bz)((function(){var t=a.$el;a.autofocus&&(0,r.pn)(t)&&((0,r.wB)(t,l)||(t=(0,r.Ys)(l,t)),(0,r.KS)(t))}))}))}}})},58137:(a,t,e)=>{e.d(t,{N:()=>o,i:()=>l});var n=e(1915),i=e(12299),r=e(20451),o=(0,r.y2)({plain:(0,r.pi)(i.U5,!1)},"formControls"),l=(0,n.l7)({props:o,computed:{custom:function(){return!this.plain}}})},77330:(a,t,e)=>{e.d(t,{N:()=>d,f:()=>p});var n=e(1915),i=e(12299),r=e(37668),o=e(18735),l=e(33284),c=e(67040),s=e(20451),h=e(77147),u='Setting prop "options" to an object is deprecated. Use the array format instead.',d=(0,s.y2)({disabledField:(0,s.pi)(i.N0,"disabled"),htmlField:(0,s.pi)(i.N0,"html"),options:(0,s.pi)(i.XO,[]),textField:(0,s.pi)(i.N0,"text"),valueField:(0,s.pi)(i.N0,"value")},"formOptionControls"),p=(0,n.l7)({props:d,computed:{formOptions:function(){return this.normalizeOptions(this.options)}},methods:{normalizeOption:function(a){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if((0,l.PO)(a)){var e=(0,r.U)(a,this.valueField),n=(0,r.U)(a,this.textField);return{value:(0,l.o8)(e)?t||n:e,text:(0,o.o)(String((0,l.o8)(n)?t:n)),html:(0,r.U)(a,this.htmlField),disabled:Boolean((0,r.U)(a,this.disabledField))}}return{value:t||a,text:(0,o.o)(String(a)),disabled:!1}},normalizeOptions:function(a){var t=this;return(0,l.kJ)(a)?a.map((function(a){return t.normalizeOption(a)})):(0,l.PO)(a)?((0,h.ZK)(u,this.$options.name),(0,c.XP)(a).map((function(e){return t.normalizeOption(a[e]||{},e)}))):[]}}})},72985:(a,t,e)=>{e.d(t,{EQ:()=>C,NQ:()=>L,mD:()=>S});var n,i=e(1915),r=e(12299),o=e(90494),l=e(18735),c=e(3058),s=e(54602),h=e(67040),u=e(20451),d=e(19692),p=e(76398),v=e(32023),f=e(58137),m=e(77330),z=e(49035),b=e(95505),g=e(73727),M=e(18280);function y(a,t){var e=Object.keys(a);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(a);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(a,t).enumerable}))),e.push.apply(e,n)}return e}function V(a){for(var t=1;t{e.d(t,{Du:()=>C,NQ:()=>I,UG:()=>L});var n,i,r=e(1915),o=e(12299),l=e(63294),c=e(26410),s=e(33284),h=e(3058),u=e(54602),d=e(67040),p=e(20451),v=e(28492),f=e(32023),m=e(58137),z=e(49035),b=e(95505),g=e(73727),M=e(18280);function y(a,t){var e=Object.keys(a);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(a);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(a,t).enumerable}))),e.push.apply(e,n)}return e}function V(a){for(var t=1;t{e.d(t,{o:()=>i});var n=e(1915),i=(0,n.l7)({computed:{selectionStart:{cache:!1,get:function(){return this.$refs.input.selectionStart},set:function(a){this.$refs.input.selectionStart=a}},selectionEnd:{cache:!1,get:function(){return this.$refs.input.selectionEnd},set:function(a){this.$refs.input.selectionEnd=a}},selectionDirection:{cache:!1,get:function(){return this.$refs.input.selectionDirection},set:function(a){this.$refs.input.selectionDirection=a}}},methods:{select:function(){var a;(a=this.$refs.input).select.apply(a,arguments)},setSelectionRange:function(){var a;(a=this.$refs.input).setSelectionRange.apply(a,arguments)},setRangeText:function(){var a;(a=this.$refs.input).setRangeText.apply(a,arguments)}}})},49035:(a,t,e)=>{e.d(t,{N:()=>o,j:()=>l});var n=e(1915),i=e(12299),r=e(20451),o=(0,r.y2)({size:(0,r.pi)(i.N0)},"formControls"),l=(0,n.l7)({props:o,computed:{sizeFormClass:function(){return[this.size?"form-control-".concat(this.size):null]}}})},95505:(a,t,e)=>{e.d(t,{J:()=>s,N:()=>c});var n=e(1915),i=e(12299),r=e(33284),o=e(20451),l=e(10992),c=(0,o.y2)({state:(0,o.pi)(i.U5,null)},"formState"),s=(0,n.l7)({props:c,computed:{computedState:function(){return(0,r.jn)(this.state)?this.state:null},stateClass:function(){var a=this.computedState;return!0===a?"is-valid":!1===a?"is-invalid":null},computedAriaInvalid:function(){var a=(0,l.n)(this).ariaInvalid;return!0===a||"true"===a||""===a||!1===this.computedState?"true":a}}})},70403:(a,t,e)=>{e.d(t,{NQ:()=>V,Q_:()=>H});var n=e(1915),i=e(63294),r=e(12299),o=e(26410),l=e(28415),c=e(21578),s=e(54602),h=e(93954),u=e(67040),d=e(20451),p=e(46595);function v(a,t){var e=Object.keys(a);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(a);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(a,t).enumerable}))),e.push.apply(e,n)}return e}function f(a){for(var t=1;t2&&void 0!==arguments[2]&&arguments[2];return a=(0,p.BB)(a),!this.hasFormatter||this.lazyFormatter&&!e||(a=this.formatter(a,t)),a},modifyValue:function(a){return a=(0,p.BB)(a),this.trim&&(a=a.trim()),this.number&&(a=(0,h.f_)(a,a)),a},updateValue:function(a){var t=this,e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.lazy;if(!n||e){this.clearDebounce();var i=function(){if(a=t.modifyValue(a),a!==t.vModelValue)t.vModelValue=a,t.$emit(y,a);else if(t.hasFormatter){var e=t.$refs.input;e&&a!==e.value&&(e.value=a)}},r=this.computedDebounce;r>0&&!n&&!e?this.$_inputDebounceTimer=setTimeout(i,r):i()}},onInput:function(a){if(!a.target.composing){var t=a.target.value,e=this.formatValue(t,a);!1===e||a.defaultPrevented?(0,l.p7)(a,{propagation:!1}):(this.localValue=e,this.updateValue(e),this.$emit(i.gn,e))}},onChange:function(a){var t=a.target.value,e=this.formatValue(t,a);!1===e||a.defaultPrevented?(0,l.p7)(a,{propagation:!1}):(this.localValue=e,this.updateValue(e,!0),this.$emit(i.z2,e))},onBlur:function(a){var t=a.target.value,e=this.formatValue(t,a,!0);!1!==e&&(this.localValue=(0,p.BB)(this.modifyValue(e)),this.updateValue(e,!0)),this.$emit(i.z,a)},focus:function(){this.disabled||(0,o.KS)(this.$el)},blur:function(){this.disabled||(0,o.Cx)(this.$el)}}})},94791:(a,t,e)=>{e.d(t,{e:()=>i});var n=e(1915),i=(0,n.l7)({computed:{validity:{cache:!1,get:function(){return this.$refs.input.validity}},validationMessage:{cache:!1,get:function(){return this.$refs.input.validationMessage}},willValidate:{cache:!1,get:function(){return this.$refs.input.willValidate}}},methods:{setCustomValidity:function(){var a;return(a=this.$refs.input).setCustomValidity.apply(a,arguments)},checkValidity:function(){var a;return(a=this.$refs.input).checkValidity.apply(a,arguments)},reportValidity:function(){var a;return(a=this.$refs.input).reportValidity.apply(a,arguments)}}})},45253:(a,t,e)=>{e.d(t,{U:()=>r});var n=e(1915),i=e(33284),r=(0,n.l7)({methods:{hasListener:function(a){if(n.$B)return!0;var t=this.$listeners||{},e=this._events||{};return!(0,i.o8)(t[a])||(0,i.kJ)(e[a])&&e[a].length>0}}})},73727:(a,t,e)=>{e.d(t,{N:()=>o,t:()=>l});var n=e(1915),i=e(12299),r=e(20451),o={id:(0,r.pi)(i.N0)},l=(0,n.l7)({props:o,data:function(){return{localId_:null}},computed:{safeId:function(){var a=this.id||this.localId_,t=function(t){return a?(t=String(t||"").replace(/\s+/g,"_"),t?a+"_"+t:a):null};return t}},mounted:function(){var a=this;this.$nextTick((function(){a.localId_="__BVID__".concat(a[n.X$])}))}})},98596:(a,t,e)=>{e.d(t,{E:()=>c});var n=e(1915),i=e(11572),r=e(67040),o=e(91076),l="$_rootListeners",c=(0,n.l7)({computed:{bvEventRoot:function(){return(0,o.C)(this)}},created:function(){this[l]={}},beforeDestroy:function(){var a=this;(0,r.XP)(this[l]||{}).forEach((function(t){a[l][t].forEach((function(e){a.listenOffRoot(t,e)}))})),this[l]=null},methods:{registerRootListener:function(a,t){this[l]&&(this[l][a]=this[l][a]||[],(0,i.kI)(this[l][a],t)||this[l][a].push(t))},unregisterRootListener:function(a,t){this[l]&&this[l][a]&&(this[l][a]=this[l][a].filter((function(a){return a!==t})))},listenOnRoot:function(a,t){this.bvEventRoot&&(this.bvEventRoot.$on(a,t),this.registerRootListener(a,t))},listenOnRootOnce:function(a,t){var e=this;if(this.bvEventRoot){var n=function a(){e.unregisterRootListener(a),t.apply(void 0,arguments)};this.bvEventRoot.$once(a,n),this.registerRootListener(a,n)}},listenOffRoot:function(a,t){this.unregisterRootListener(a,t),this.bvEventRoot&&this.bvEventRoot.$off(a,t)},emitOnRoot:function(a){if(this.bvEventRoot){for(var t,e=arguments.length,n=new Array(e>1?e-1:0),i=1;i{e.d(t,{o:()=>h});var n=e(51665),i=e(1915);function r(a,t){var e=Object.keys(a);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(a);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(a,t).enumerable}))),e.push.apply(e,n)}return e}function o(a){for(var t=1;t{e.d(t,{Z:()=>l});var n=e(1915),i=e(90494),r=e(72345),o=e(11572),l=(0,n.l7)({methods:{hasNormalizedSlot:function(){var a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:i.Pq,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.$scopedSlots,e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.$slots;return(0,r.Q)(a,t,e)},normalizeSlot:function(){var a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:i.Pq,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.$scopedSlots,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:this.$slots,l=(0,r.O)(a,t,e,n);return l?(0,o.zo)(l):l}}})},29878:(a,t,e)=>{e.d(t,{EQ:()=>I,NQ:()=>D,zo:()=>E});var n,i=e(1915),r=e(94689),o=e(63663),l=e(12299),c=e(90494),s=e(11572),h=e(26410),u=e(28415),d=e(33284),p=e(21578),v=e(54602),f=e(93954),m=e(67040),z=e(20451),b=e(10992),g=e(46595),M=e(77147),y=e(18280),V=e(67347);function H(a,t){var e=Object.keys(a);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(a);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(a,t).enumerable}))),e.push.apply(e,n)}return e}function A(a){for(var t=1;tt?t:e<1?1:e},T=function(a){if(a.keyCode===o.m5)return(0,u.p7)(a,{immediatePropagation:!0}),a.currentTarget.click(),!1},D=(0,z.y2)((0,m.GE)(A(A({},C),{},{align:(0,z.pi)(l.N0,"left"),ariaLabel:(0,z.pi)(l.N0,"Pagination"),disabled:(0,z.pi)(l.U5,!1),ellipsisClass:(0,z.pi)(l.wA),ellipsisText:(0,z.pi)(l.N0,"…"),firstClass:(0,z.pi)(l.wA),firstNumber:(0,z.pi)(l.U5,!1),firstText:(0,z.pi)(l.N0,"«"),hideEllipsis:(0,z.pi)(l.U5,!1),hideGotoEndButtons:(0,z.pi)(l.U5,!1),labelFirstPage:(0,z.pi)(l.N0,"Go to first page"),labelLastPage:(0,z.pi)(l.N0,"Go to last page"),labelNextPage:(0,z.pi)(l.N0,"Go to next page"),labelPage:(0,z.pi)(l.LU,"Go to page"),labelPrevPage:(0,z.pi)(l.N0,"Go to previous page"),lastClass:(0,z.pi)(l.wA),lastNumber:(0,z.pi)(l.U5,!1),lastText:(0,z.pi)(l.N0,"»"),limit:(0,z.pi)(l.fE,P,(function(a){return!((0,f.Z3)(a,0)<1)||((0,M.ZK)('Prop "limit" must be a number greater than "0"',r.Ps),!1)})),nextClass:(0,z.pi)(l.wA),nextText:(0,z.pi)(l.N0,"›"),pageClass:(0,z.pi)(l.wA),pills:(0,z.pi)(l.U5,!1),prevClass:(0,z.pi)(l.wA),prevText:(0,z.pi)(l.N0,"‹"),size:(0,z.pi)(l.N0)})),"pagination"),E=(0,i.l7)({mixins:[w,y.Z],props:D,data:function(){var a=(0,f.Z3)(this[I],0);return a=a>0?a:-1,{currentPage:a,localNumberOfPages:1,localLimit:P}},computed:{btnSize:function(){var a=this.size;return a?"pagination-".concat(a):""},alignment:function(){var a=this.align;return"center"===a?"justify-content-center":"end"===a||"right"===a?"justify-content-end":"fill"===a?"text-center":""},styleClass:function(){return this.pills?"b-pagination-pills":""},computedCurrentPage:function(){return j(this.currentPage,this.localNumberOfPages)},paginationParams:function(){var a=this.localLimit,t=this.localNumberOfPages,e=this.computedCurrentPage,n=this.hideEllipsis,i=this.firstNumber,r=this.lastNumber,o=!1,l=!1,c=a,s=1;t<=a?c=t:eS?(n&&!r||(l=!0,c=a-(i?0:1)),c=(0,p.bS)(c,a)):t-e+2S?(n&&!i||(o=!0,c=a-(r?0:1)),s=t-c+1):(a>S&&(c=a-(n?0:2),o=!(n&&!i),l=!(n&&!r)),s=e-(0,p.Mk)(c/2)),s<1?(s=1,o=!1):s>t-c&&(s=t-c+1,l=!1),o&&i&&s<4&&(c+=2,s=1,o=!1);var h=s+c-1;return l&&r&&h>t-3&&(c+=h===t-2?2:3,l=!1),a<=S&&(i&&1===s?c=(0,p.bS)(c+1,t,a+1):r&&t===s+c-1&&(s=(0,p.nP)(s-1,1),c=(0,p.bS)(t-s+1,t,a+1))),c=(0,p.bS)(c,t-s+1),{showFirstDots:o,showLastDots:l,numberOfLinks:c,startNumber:s}},pageList:function(){var a=this.paginationParams,t=a.numberOfLinks,e=a.startNumber,n=this.computedCurrentPage,i=F(e,t);if(i.length>3){var r=n-e,o="bv-d-xs-down-none";if(0===r)for(var l=3;lr+1;h--)i[h].classes=o}}return i}},watch:(n={},B(n,I,(function(a,t){a!==t&&(this.currentPage=j(a,this.localNumberOfPages))})),B(n,"currentPage",(function(a,t){a!==t&&this.$emit(L,a>0?a:null)})),B(n,"limit",(function(a,t){a!==t&&(this.localLimit=k(a))})),n),created:function(){var a=this;this.localLimit=k(this.limit),this.$nextTick((function(){a.currentPage=a.currentPage>a.localNumberOfPages?a.localNumberOfPages:a.currentPage}))},methods:{handleKeyNav:function(a){var t=a.keyCode,e=a.shiftKey;this.isNav||(t===o.Cq||t===o.XS?((0,u.p7)(a,{propagation:!1}),e?this.focusFirst():this.focusPrev()):t!==o.YO&&t!==o.RV||((0,u.p7)(a,{propagation:!1}),e?this.focusLast():this.focusNext()))},getButtons:function(){return(0,h.a8)("button.page-link, a.page-link",this.$el).filter((function(a){return(0,h.pn)(a)}))},focusCurrent:function(){var a=this;this.$nextTick((function(){var t=a.getButtons().find((function(t){return(0,f.Z3)((0,h.UK)(t,"aria-posinset"),0)===a.computedCurrentPage}));(0,h.KS)(t)||a.focusFirst()}))},focusFirst:function(){var a=this;this.$nextTick((function(){var t=a.getButtons().find((function(a){return!(0,h.pK)(a)}));(0,h.KS)(t)}))},focusLast:function(){var a=this;this.$nextTick((function(){var t=a.getButtons().reverse().find((function(a){return!(0,h.pK)(a)}));(0,h.KS)(t)}))},focusPrev:function(){var a=this;this.$nextTick((function(){var t=a.getButtons(),e=t.indexOf((0,h.vY)());e>0&&!(0,h.pK)(t[e-1])&&(0,h.KS)(t[e-1])}))},focusNext:function(){var a=this;this.$nextTick((function(){var t=a.getButtons(),e=t.indexOf((0,h.vY)());el,p=e<1?1:e>l?l:e,v={disabled:d,page:p,index:p-1},m=t.normalizeSlot(r,v)||(0,g.BB)(c)||a(),z=a(d?"span":o?V.we:"button",{staticClass:"page-link",class:{"flex-grow-1":!o&&!d&&f},props:d||!o?{}:t.linkProps(e),attrs:{role:o?null:"menuitem",type:o||d?null:"button",tabindex:d||o?null:"-1","aria-label":i,"aria-controls":(0,b.n)(t).ariaControls||null,"aria-disabled":d?"true":null},on:d?{}:{"!click":function(a){t.onClick(a,e)},keydown:T}},[m]);return a("li",{key:u,staticClass:"page-item",class:[{disabled:d,"flex-fill":f,"d-flex":f&&!o&&!d},s],attrs:{role:o?null:"presentation","aria-hidden":d?"true":null}},[z])},A=function(e){return a("li",{staticClass:"page-item",class:["disabled","bv-d-xs-down-none",f?"flex-fill":"",t.ellipsisClass],attrs:{role:"separator"},key:"ellipsis-".concat(e?"last":"first")},[a("span",{staticClass:"page-link"},[t.normalizeSlot(c._d)||(0,g.BB)(t.ellipsisText)||a()])])},B=function(e,r){var s=e.number,h=M(s)&&!y,u=n?null:h||y&&0===r?"0":"-1",p={role:o?null:"menuitemradio",type:o||n?null:"button","aria-disabled":n?"true":null,"aria-controls":(0,b.n)(t).ariaControls||null,"aria-label":(0,z.lo)(i)?i(s):"".concat((0,d.mf)(i)?i():i," ").concat(s),"aria-checked":o?null:h?"true":"false","aria-current":o&&h?"page":null,"aria-posinset":o?null:s,"aria-setsize":o?null:l,tabindex:o?null:u},v=(0,g.BB)(t.makePage(s)),m={page:s,index:s-1,content:v,active:h,disabled:n},H=a(n?"span":o?V.we:"button",{props:n||!o?{}:t.linkProps(s),staticClass:"page-link",class:{"flex-grow-1":!o&&!n&&f},attrs:p,on:n?{}:{"!click":function(a){t.onClick(a,s)},keydown:T}},[t.normalizeSlot(c.ud,m)||v]);return a("li",{staticClass:"page-item",class:[{disabled:n,active:h,"flex-fill":f,"d-flex":f&&!o&&!n},e.classes,t.pageClass],attrs:{role:o?null:"presentation"},key:"page-".concat(s)},[H])},O=a();this.firstNumber||this.hideGotoEndButtons||(O=H(1,this.labelFirstPage,c.ZP,this.firstText,this.firstClass,1,"pagination-goto-first")),m.push(O),m.push(H(s-1,this.labelPrevPage,c.xH,this.prevText,this.prevClass,1,"pagination-goto-prev")),m.push(this.firstNumber&&1!==h[0]?B({number:1},0):a()),m.push(p?A(!1):a()),this.pageList.forEach((function(a,e){var n=p&&t.firstNumber&&1!==h[0]?1:0;m.push(B(a,e+n))})),m.push(v?A(!0):a()),m.push(this.lastNumber&&h[h.length-1]!==l?B({number:l},-1):a()),m.push(H(s+1,this.labelNextPage,c.gy,this.nextText,this.nextClass,l,"pagination-goto-next"));var w=a();this.lastNumber||this.hideGotoEndButtons||(w=H(l,this.labelLastPage,c.f2,this.lastText,this.lastClass,l,"pagination-goto-last")),m.push(w);var C=a("ul",{staticClass:"pagination",class:["b-pagination",this.btnSize,this.alignment,this.styleClass],attrs:{role:o?null:"menubar","aria-disabled":n?"true":"false","aria-label":o?null:r||null},on:o?{}:{keydown:this.handleKeyNav},ref:"ul"},m);return o?a("nav",{attrs:{"aria-disabled":n?"true":null,"aria-hidden":n?"true":"false","aria-label":o&&r||null}},[C]):C}})},30051:(a,t,e)=>{e.d(t,{o:()=>l});var n=e(1915),i=e(93319),r=e(13597);function o(a,t,e){return t in a?Object.defineProperty(a,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):a[t]=e,a}var l=(0,n.l7)({mixins:[i.S],computed:{scopedStyleAttrs:function(){var a=(0,r.P)(this.bvParent);return a?o({},a,""):{}}}})},93319:(a,t,e)=>{e.d(t,{S:()=>i});var n=e(1915),i=(0,n.l7)({computed:{bvParent:function(){return this.$parent||this.$root===this&&this.$options.bvParent}}})},11572:(a,t,e)=>{e.d(t,{Ar:()=>s,Dp:()=>i,Ri:()=>l,kI:()=>r,xH:()=>c,zo:()=>o});var n=e(33284),i=function(){return Array.from.apply(Array,arguments)},r=function(a,t){return-1!==a.indexOf(t)},o=function(){for(var a=arguments.length,t=new Array(a),e=0;e{e.d(t,{n:()=>l});var n=e(67040);function i(a,t){if(!(a instanceof t))throw new TypeError("Cannot call a class as a function")}function r(a,t){for(var e=0;e1&&void 0!==arguments[1]?arguments[1]:{};if(i(this,a),!t)throw new TypeError("Failed to construct '".concat(this.constructor.name,"'. 1 argument required, ").concat(arguments.length," given."));(0,n.f0)(this,a.Defaults,this.constructor.Defaults,e,{type:t}),(0,n.hc)(this,{type:(0,n.MB)(),cancelable:(0,n.MB)(),nativeEvent:(0,n.MB)(),target:(0,n.MB)(),relatedTarget:(0,n.MB)(),vueTarget:(0,n.MB)(),componentId:(0,n.MB)()});var r=!1;this.preventDefault=function(){this.cancelable&&(r=!0)},(0,n._x)(this,"defaultPrevented",{enumerable:!0,get:function(){return r}})}return o(a,null,[{key:"Defaults",get:function(){return{type:"",cancelable:!0,nativeEvent:null,target:null,relatedTarget:null,vueTarget:null,componentId:null}}}]),a}()},51665:(a,t,e)=>{e.d(t,{L:()=>h});var n=e(1915),i=e(30158),r=e(3058),o=e(67040);function l(a,t,e){return t in a?Object.defineProperty(a,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):a[t]=e,a}var c=function(a){return!a||0===(0,o.XP)(a).length},s=function(a){return{handler:function(t,e){if(!(0,r.W)(t,e))if(c(t)||c(e))this[a]=(0,i.X)(t);else{for(var n in e)(0,o.nr)(t,n)||this.$delete(this.$data[a],n);for(var l in t)this.$set(this.$data[a],l,t[l])}}}},h=function(a,t){return(0,n.l7)({data:function(){return l({},t,(0,i.X)(this[a]))},watch:l({},a,s(t))})}},30158:(a,t,e)=>{e.d(t,{X:()=>v});var n=e(33284),i=e(67040);function r(a,t){var e=Object.keys(a);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(a);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(a,t).enumerable}))),e.push.apply(e,n)}return e}function o(a){for(var t=1;ta.length)&&(t=a.length);for(var e=0,n=new Array(t);e1&&void 0!==arguments[1]?arguments[1]:t;return(0,n.kJ)(t)?t.reduce((function(t,e){return[].concat(c(t),[a(e,e)])}),[]):(0,n.PO)(t)?(0,i.XP)(t).reduce((function(e,n){return o(o({},e),{},l({},n,a(t[n],t[n])))}),{}):e}},79968:(a,t,e)=>{e.d(t,{QC:()=>p,le:()=>h,wJ:()=>s});var n=e(20144),i=e(8750),r=e(30158),o=e(91051),l=n["default"].prototype,c=function(a){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,e=l[i.KB];return e?e.getConfigValue(a,t):(0,r.X)(t)},s=function(a){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;return t?c("".concat(a,".").concat(t),e):c(a,{})},h=function(){return c("breakpoints",i.JJ)},u=(0,o.H)((function(){return h()})),d=function(){return(0,r.X)(u())},p=(0,o.H)((function(){var a=d();return a[0]="",a}))},55789:(a,t,e)=>{function n(a,t){var e=Object.keys(a);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(a);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(a,t).enumerable}))),e.push.apply(e,n)}return e}function i(a){for(var t=1;to});var o=function(a,t){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=a.$root?a.$root.$options.bvEventRoot||a.$root:null;return new t(i(i({},e),{},{parent:a,bvParent:a,bvEventRoot:n}))}},64679:(a,t,e)=>{e.d(t,{Q:()=>r});var n=e(46595),i=function(a){return"\\"+a},r=function(a){a=(0,n.BB)(a);var t=a.length,e=a.charCodeAt(0);return a.split("").reduce((function(n,r,o){var l=a.charCodeAt(o);return 0===l?n+"�":127===l||l>=1&&l<=31||0===o&&l>=48&&l<=57||1===o&&l>=48&&l<=57&&45===e?n+i("".concat(l.toString(16)," ")):0===o&&45===l&&1===t?n+i(r):l>=128||45===l||95===l||l>=48&&l<=57||l>=65&&l<=90||l>=97&&l<=122?n+r:n+i(r)}),"")}},26410:(a,t,e)=>{e.d(t,{A_:()=>T,B$:()=>j,C2:()=>E,Cx:()=>q,FK:()=>_,FO:()=>C,H9:()=>g,IV:()=>L,KS:()=>G,UK:()=>k,YR:()=>b,Ys:()=>A,ZF:()=>f,Zt:()=>x,a8:()=>H,bz:()=>p,cn:()=>I,cv:()=>R,fi:()=>P,hu:()=>$,iI:()=>v,jo:()=>D,kK:()=>m,nq:()=>V,oq:()=>O,pK:()=>y,pn:()=>M,pv:()=>S,r3:()=>w,td:()=>U,uV:()=>F,vY:()=>z,wB:()=>B,yD:()=>N});var n=e(43935),i=e(28112),r=e(11572),o=e(33284),l=e(93954),c=e(46595),s=i.W_.prototype,h=["button","[href]:not(.disabled)","input","select","textarea","[tabindex]","[contenteditable]"].map((function(a){return"".concat(a,":not(:disabled):not([disabled])")})).join(", "),u=s.matches||s.msMatchesSelector||s.webkitMatchesSelector,d=s.closest||function(a){var t=this;do{if(B(t,a))return t;t=t.parentElement||t.parentNode}while(!(0,o.Ft)(t)&&t.nodeType===Node.ELEMENT_NODE);return null},p=(n.m9.requestAnimationFrame||n.m9.webkitRequestAnimationFrame||n.m9.mozRequestAnimationFrame||n.m9.msRequestAnimationFrame||n.m9.oRequestAnimationFrame||function(a){return setTimeout(a,16)}).bind(n.m9),v=n.m9.MutationObserver||n.m9.WebKitMutationObserver||n.m9.MozMutationObserver||null,f=function(a){return a&&a.parentNode&&a.parentNode.removeChild(a)},m=function(a){return!(!a||a.nodeType!==Node.ELEMENT_NODE)},z=function(){var a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=n.K0.activeElement;return t&&!a.some((function(a){return a===t}))?t:null},b=function(a,t){return(0,c.BB)(a).toLowerCase()===(0,c.BB)(t).toLowerCase()},g=function(a){return m(a)&&a===z()},M=function(a){if(!m(a)||!a.parentNode||!w(n.K0.body,a))return!1;if("none"===E(a,"display"))return!1;var t=x(a);return!!(t&&t.height>0&&t.width>0)},y=function(a){return!m(a)||a.disabled||j(a,"disabled")||S(a,"disabled")},V=function(a){return m(a)&&a.offsetHeight},H=function(a,t){return(0,r.Dp)((m(t)?t:n.K0).querySelectorAll(a))},A=function(a,t){return(m(t)?t:n.K0).querySelector(a)||null},B=function(a,t){return!!m(a)&&u.call(a,t)},O=function(a,t){var e=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(!m(t))return null;var n=d.call(t,a);return e?n:n===t?null:n},w=function(a,t){return!(!a||!(0,o.mf)(a.contains))&&a.contains(t)},C=function(a){return n.K0.getElementById(/^#/.test(a)?a.slice(1):a)||null},I=function(a,t){t&&m(a)&&a.classList&&a.classList.add(t)},L=function(a,t){t&&m(a)&&a.classList&&a.classList.remove(t)},S=function(a,t){return!!(t&&m(a)&&a.classList)&&a.classList.contains(t)},P=function(a,t,e){t&&m(a)&&a.setAttribute(t,e)},F=function(a,t){t&&m(a)&&a.removeAttribute(t)},k=function(a,t){return t&&m(a)?a.getAttribute(t):null},j=function(a,t){return t&&m(a)?a.hasAttribute(t):null},T=function(a,t,e){t&&m(a)&&(a.style[t]=e)},D=function(a,t){t&&m(a)&&(a.style[t]="")},E=function(a,t){return t&&m(a)&&a.style[t]||null},x=function(a){return m(a)?a.getBoundingClientRect():null},N=function(a){var t=n.m9.getComputedStyle;return t&&m(a)?t(a):{}},$=function(){var a=n.m9.getSelection;return a?n.m9.getSelection():null},R=function(a){var t={top:0,left:0};if(!m(a)||0===a.getClientRects().length)return t;var e=x(a);if(e){var n=a.ownerDocument.defaultView;t.top=e.top+n.pageYOffset,t.left=e.left+n.pageXOffset}return t},_=function(a){var t={top:0,left:0};if(!m(a))return t;var e={top:0,left:0},n=N(a);if("fixed"===n.position)t=x(a)||t;else{t=R(a);var i=a.ownerDocument,r=a.offsetParent||i.documentElement;while(r&&(r===i.body||r===i.documentElement)&&"static"===N(r).position)r=r.parentNode;if(r&&r!==a&&r.nodeType===Node.ELEMENT_NODE){e=R(r);var o=N(r);e.top+=(0,l.f_)(o.borderTopWidth,0),e.left+=(0,l.f_)(o.borderLeftWidth,0)}}return{top:t.top-e.top-(0,l.f_)(n.marginTop,0),left:t.left-e.left-(0,l.f_)(n.marginLeft,0)}},U=function(){var a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document;return H(h,a).filter(M).filter((function(a){return a.tabIndex>-1&&!a.disabled}))},G=function(a){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};try{a.focus(t)}catch(e){}return g(a)},q=function(a){try{a.blur()}catch(t){}return!g(a)}},99022:(a,t,e)=>{e.d(t,{E8:()=>o,qE:()=>l,wK:()=>r});var n=e(1915),i=null;n.$B&&(i=new WeakMap);var r=function(a,t){n.$B&&i.set(a,t)},o=function(a){n.$B&&i.delete(a)},l=function(a){if(!n.$B)return a.__vue__;var t=a;while(t){if(i.has(t))return i.get(t);t=t.parentNode}return null}},28415:(a,t,e)=>{e.d(t,{J3:()=>v,QY:()=>h,XO:()=>s,gA:()=>f,p7:()=>d,tU:()=>u});var n=e(43935),i=e(63294),r=e(30824),o=e(33284),l=e(46595),c=function(a){return n.GA?(0,o.Kn)(a)?a:{capture:!!a||!1}:!!((0,o.Kn)(a)?a.capture:a)},s=function(a,t,e,n){a&&a.addEventListener&&a.addEventListener(t,e,c(n))},h=function(a,t,e,n){a&&a.removeEventListener&&a.removeEventListener(t,e,c(n))},u=function(a){for(var t=a?s:h,e=arguments.length,n=new Array(e>1?e-1:0),i=1;i1&&void 0!==arguments[1]?arguments[1]:{},e=t.preventDefault,n=void 0===e||e,i=t.propagation,r=void 0===i||i,o=t.immediatePropagation,l=void 0!==o&&o;n&&a.preventDefault(),r&&a.stopPropagation(),l&&a.stopImmediatePropagation()},p=function(a){return(0,l.GL)(a.replace(r.jo,""))},v=function(a,t){return[i.HH,p(a),t].join(i.JP)},f=function(a,t){return[i.HH,t,p(a)].join(i.JP)}},91076:(a,t,e)=>{e.d(t,{C:()=>n});var n=function(a){return a.$root.$options.bvEventRoot||a.$root}},96056:(a,t,e)=>{e.d(t,{U:()=>i});var n=e(1915),i=function(a,t){return n.$B?t.instance:a.context}},13597:(a,t,e)=>{e.d(t,{P:()=>n});var n=function(a){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return a&&a.$options._scopeId||t}},37668:(a,t,e)=>{e.d(t,{U:()=>l,o:()=>o});var n=e(30824),i=e(68265),r=e(33284),o=function(a,t){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;if(t=(0,r.kJ)(t)?t.join("."):t,!t||!(0,r.Kn)(a))return e;if(t in a)return a[t];t=String(t).replace(n.OX,".$1");var o=t.split(".").filter(i.y);return 0===o.length?e:o.every((function(t){return(0,r.Kn)(a)&&t in a&&!(0,r.Jp)(a=a[t])}))?a:(0,r.Ft)(a)?null:e},l=function(a,t){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,n=o(a,t);return(0,r.Jp)(n)?e:n}},18735:(a,t,e)=>{e.d(t,{U:()=>r,o:()=>i});var n=e(30824),i=function(){var a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return String(a).replace(n.ny,"")},r=function(a,t){return a?{innerHTML:a}:t?{textContent:t}:{}}},68265:(a,t,e)=>{e.d(t,{y:()=>n});var n=function(a){return a}},33284:(a,t,e)=>{e.d(t,{Ft:()=>s,HD:()=>p,J_:()=>g,Jp:()=>h,Kj:()=>V,Kn:()=>z,PO:()=>b,cO:()=>M,hj:()=>v,jn:()=>d,kE:()=>f,kJ:()=>m,mf:()=>u,o8:()=>c,tI:()=>H,zE:()=>y});var n=e(30824),i=e(28112);function r(a){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(a){return typeof a}:function(a){return a&&"function"==typeof Symbol&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},r(a)}var o=function(a){return r(a)},l=function(a){return Object.prototype.toString.call(a).slice(8,-1)},c=function(a){return void 0===a},s=function(a){return null===a},h=function(a){return c(a)||s(a)},u=function(a){return"function"===o(a)},d=function(a){return"boolean"===o(a)},p=function(a){return"string"===o(a)},v=function(a){return"number"===o(a)},f=function(a){return n.sU.test(String(a))},m=function(a){return Array.isArray(a)},z=function(a){return null!==a&&"object"===r(a)},b=function(a){return"[object Object]"===Object.prototype.toString.call(a)},g=function(a){return a instanceof Date},M=function(a){return a instanceof Event},y=function(a){return a instanceof i.$B},V=function(a){return"RegExp"===l(a)},H=function(a){return!h(a)&&u(a.then)&&u(a.catch)}},9439:(a,t,e)=>{e.d(t,{e:()=>l});var n=e(30824),i=e(11572),r=e(46595),o=["ar","az","ckb","fa","he","ks","lrc","mzn","ps","sd","te","ug","ur","yi"].map((function(a){return a.toLowerCase()})),l=function(a){var t=(0,r.BB)(a).toLowerCase().replace(n.$g,"").split("-"),e=t.slice(0,2).join("-"),l=t[0];return(0,i.kI)(o,e)||(0,i.kI)(o,l)}},3058:(a,t,e)=>{e.d(t,{W:()=>o});var n=e(67040),i=e(33284),r=function(a,t){if(a.length!==t.length)return!1;for(var e=!0,n=0;e&&n{e.d(t,{Fq:()=>c,Mk:()=>l,W8:()=>r,bS:()=>n,hv:()=>o,ir:()=>s,nP:()=>i});var n=Math.min,i=Math.max,r=Math.abs,o=Math.ceil,l=Math.floor,c=Math.pow,s=Math.round},91051:(a,t,e)=>{e.d(t,{H:()=>i});var n=e(67040),i=function(a){var t=(0,n.Ue)(null);return function(){for(var e=arguments.length,n=new Array(e),i=0;i{e.d(t,{l:()=>c});var n=e(1915),i=e(63294),r=e(12299),o=e(20451);function l(a,t,e){return t in a?Object.defineProperty(a,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):a[t]=e,a}var c=function(a){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},e=t.type,c=void 0===e?r.r1:e,s=t.defaultValue,h=void 0===s?void 0:s,u=t.validator,d=void 0===u?void 0:u,p=t.event,v=void 0===p?i.gn:p,f=l({},a,(0,o.pi)(c,h,d)),m=(0,n.l7)({model:{prop:a,event:v},props:f});return{mixin:m,props:f,prop:a,event:v}}},84941:(a,t,e)=>{e.d(t,{Z:()=>n});var n=function(){}},72345:(a,t,e)=>{e.d(t,{O:()=>l,Q:()=>o});var n=e(11572),i=e(68265),r=e(33284),o=function(a){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return a=(0,n.zo)(a).filter(i.y),a.some((function(a){return t[a]||e[a]}))},l=function(a){var t,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},l=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};a=(0,n.zo)(a).filter(i.y);for(var c=0;c{e.d(t,{FH:()=>r,Z3:()=>n,f_:()=>i});var n=function(a){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:NaN,e=parseInt(a,10);return isNaN(e)?t:e},i=function(a){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:NaN,e=parseFloat(a);return isNaN(e)?t:e},r=function(a,t){return i(a).toFixed(n(t,0))}},67040:(a,t,e)=>{e.d(t,{BB:()=>v,CE:()=>z,Ee:()=>b,GE:()=>g,MB:()=>M,Sv:()=>u,Ue:()=>c,XP:()=>d,_x:()=>h,d9:()=>f,ei:()=>m,f0:()=>l,hc:()=>s,nr:()=>p});var n=e(33284);function i(a,t){var e=Object.keys(a);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(a);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(a,t).enumerable}))),e.push.apply(e,n)}return e}function r(a){for(var t=1;t{e.d(t,{t:()=>c});var n=e(26410),i=e(77147);function r(a,t){var e=Object.keys(a);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(a);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(a,t).enumerable}))),e.push.apply(e,n)}return e}function o(a){for(var t=1;t0||i.removedNodes.length>0))&&(e=!0)}e&&t()}));return r.observe(a,o({childList:!0,subtree:!0},e)),r}},86087:(a,t,e)=>{e.d(t,{sr:()=>M,Hr:()=>V,hk:()=>H});var n=e(20144),i=e(43935),r=e(8750),o=e(30158),l=e(37668),c=e(33284),s=e(67040),h=e(77147);function u(a,t){if(!(a instanceof t))throw new TypeError("Cannot call a class as a function")}function d(a,t){for(var e=0;e0&&void 0!==arguments[0]?arguments[0]:{};if((0,c.PO)(t)){var e=(0,s.Sv)(t);e.forEach((function(e){var n=t[e];"breakpoints"===e?!(0,c.kJ)(n)||n.length<2||n.some((function(a){return!(0,c.HD)(a)||0===a.length}))?(0,h.ZK)('"breakpoints" must be an array of at least 2 breakpoint names',r.A1):a.$_config[e]=(0,o.X)(n):(0,c.PO)(n)&&(a.$_config[e]=(0,s.Sv)(n).reduce((function(a,t){return(0,c.o8)(n[t])||(a[t]=(0,o.X)(n[t])),a}),a.$_config[e]||{}))}))}}},{key:"resetConfig",value:function(){this.$_config={}}},{key:"getConfig",value:function(){return(0,o.X)(this.$_config)}},{key:"getConfigValue",value:function(a){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;return(0,o.X)((0,l.o)(this.$_config,a,t))}}]),a}(),f=function(){var a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:n["default"];t.prototype[r.KB]=n["default"].prototype[r.KB]=t.prototype[r.KB]||n["default"].prototype[r.KB]||new v,t.prototype[r.KB].setConfig(a)};function m(a,t){var e=Object.keys(a);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(a);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(a,t).enumerable}))),e.push.apply(e,n)}return e}function z(a){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=a.components,e=a.directives,n=a.plugins,i=function a(i){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};a.installed||(a.installed=!0,g(i),f(r,i),O(i,t),C(i,e),A(i,n))};return i.installed=!1,i},y=function(){var a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=a.components,e=a.directives,n=a.plugins,i=function a(i){a.installed||(a.installed=!0,g(i),O(i,t),C(i,e),A(i,n))};return i.installed=!1,i},V=function(){var a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return z(z({},t),{},{install:M(a)})},H=function(){var a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return z(z({},t),{},{install:y(a)})},A=function(a){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};for(var e in t)e&&t[e]&&a.use(t[e])},B=function(a,t,e){a&&t&&e&&a.component(t,e)},O=function(a){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};for(var e in t)B(a,e,t[e])},w=function(a,t,e){a&&t&&e&&a.directive(t.replace(/^VB/,"B"),e)},C=function(a){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};for(var e in t)w(a,e,t[e])}},20451:(a,t,e)=>{e.d(t,{Dx:()=>z,Ro:()=>v,bh:()=>p,lo:()=>V,pi:()=>m,uj:()=>b,wv:()=>f,y2:()=>M});var n=e(12299),i=e(30158),r=e(79968),o=e(68265),l=e(33284),c=e(67040),s=e(46595);function h(a,t){var e=Object.keys(a);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(a);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(a,t).enumerable}))),e.push.apply(e,n)}return e}function u(a){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:n.r1,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:void 0,r=!0===e;return i=r?i:e,u(u(u({},a?{type:a}:{}),r?{required:r}:(0,l.o8)(t)?{}:{default:(0,l.Kn)(t)?function(){return t}:t}),(0,l.o8)(i)?{}:{validator:i})},z=function(a){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.y;if((0,l.kJ)(a))return a.map(t);var e={};for(var n in a)(0,c.nr)(a,n)&&(e[t(n)]=(0,l.Kn)(a[n])?(0,c.d9)(a[n]):a[n]);return e},b=function(a,t){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:o.y;return((0,l.kJ)(a)?a.slice():(0,c.XP)(a)).reduce((function(a,n){return a[e(n)]=t[n],a}),{})},g=function(a,t,e){return u(u({},(0,i.X)(a)),{},{default:function(){var n=(0,r.wJ)(e,t,a.default);return(0,l.mf)(n)?n():n}})},M=function(a,t){return(0,c.XP)(a).reduce((function(e,n){return u(u({},e),{},d({},n,g(a[n],n,t)))}),{})},y=g({},"","").default.name,V=function(a){return(0,l.mf)(a)&&a.name&&a.name!==y}},30488:(a,t,e)=>{e.d(t,{Bb:()=>b,mB:()=>v,nX:()=>z,tN:()=>g,u$:()=>f,xo:()=>m});var n=e(30824),i=e(26410),r=e(33284),o=e(67040),l=e(10992),c=e(46595),s="a",h=function(a){return"%"+a.charCodeAt(0).toString(16)},u=function(a){return encodeURIComponent((0,c.BB)(a)).replace(n.qn,h).replace(n.$2,",")},d=decodeURIComponent,p=function(a){if(!(0,r.PO)(a))return"";var t=(0,o.XP)(a).map((function(t){var e=a[t];return(0,r.o8)(e)?"":(0,r.Ft)(e)?u(t):(0,r.kJ)(e)?e.reduce((function(a,e){return(0,r.Ft)(e)?a.push(u(t)):(0,r.o8)(e)||a.push(u(t)+"="+u(e)),a}),[]).join("&"):u(t)+"="+u(e)})).filter((function(a){return a.length>0})).join("&");return t?"?".concat(t):""},v=function(a){var t={};return a=(0,c.BB)(a).trim().replace(n.qo,""),a?(a.split("&").forEach((function(a){var e=a.replace(n.sf," ").split("="),i=d(e.shift()),o=e.length>0?d(e.join("=")):null;(0,r.o8)(t[i])?t[i]=o:(0,r.kJ)(t[i])?t[i].push(o):t[i]=[t[i],o]})),t):t},f=function(a){return!(!a.href&&!a.to)},m=function(a){return!(!a||(0,i.YR)(a,"a"))},z=function(a,t){var e=a.to,n=a.disabled,i=a.routerComponentName,r=!!(0,l.n)(t).$router,o=!!(0,l.n)(t).$nuxt;return!r||r&&(n||!e)?s:i||(o?"nuxt-link":"router-link")},b=function(){var a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=a.target,e=a.rel;return"_blank"===t&&(0,r.Ft)(e)?"noopener":e||null},g=function(){var a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=a.href,e=a.to,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:s,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"#",o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"/";if(t)return t;if(m(n))return null;if((0,r.HD)(e))return e||o;if((0,r.PO)(e)&&(e.path||e.query||e.hash)){var l=(0,c.BB)(e.path),h=p(e.query),u=(0,c.BB)(e.hash);return u=u&&"#"!==u.charAt(0)?"#".concat(u):u,"".concat(l).concat(h).concat(u)||o}return i}},10992:(a,t,e)=>{e.d(t,{n:()=>i});var n=e(1915);function i(a){return n.$B?new Proxy(a,{get:function(a,t){return t in a?a[t]:void 0}}):a}},55912:(a,t,e)=>{e.d(t,{X:()=>n});var n=function(a,t){return a.map((function(a,t){return[t,a]})).sort(function(a,t){return this(a[1],t[1])||a[0]-t[0]}.bind(t)).map((function(a){return a[1]}))}},46595:(a,t,e)=>{e.d(t,{BB:()=>u,GL:()=>r,Ho:()=>o,fi:()=>d,fl:()=>l,fy:()=>p,hr:()=>h,ht:()=>c,jC:()=>s,vl:()=>v});var n=e(30824),i=e(33284),r=function(a){return a.replace(n.Lj,"-$1").toLowerCase()},o=function(a){return a=r(a).replace(n.Qj,(function(a,t){return t?t.toUpperCase():""})),a.charAt(0).toUpperCase()+a.slice(1)},l=function(a){return a.replace(n.V," ").replace(n.MH,(function(a,t,e){return t+" "+e})).replace(n.Y,(function(a,t,e){return t+e.toUpperCase()}))},c=function(a){return a=(0,i.HD)(a)?a.trim():String(a),a.charAt(0).toLowerCase()+a.slice(1)},s=function(a){return a=(0,i.HD)(a)?a.trim():String(a),a.charAt(0).toUpperCase()+a.slice(1)},h=function(a){return a.replace(n.TZ,"\\$&")},u=function(a){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;return(0,i.Jp)(a)?"":(0,i.kJ)(a)||(0,i.PO)(a)&&a.toString===Object.prototype.toString?JSON.stringify(a,null,t):String(a)},d=function(a){return u(a).replace(n.HA,"")},p=function(a){return u(a).trim()},v=function(a){return u(a).toLowerCase()}},77147:(a,t,e)=>{e.d(t,{ZK:()=>o,Np:()=>s,gs:()=>c,zl:()=>l});var n=e(43935),i=function(a){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,e="undefined"!==typeof process&&process?{NODE_ENV:"production",BASE_URL:"/"}||0:{};return a?e[a]||t:e},r=function(){return i("BOOTSTRAP_VUE_NO_WARN")||"production"===i("NODE_ENV")},o=function(a){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;r()||console.warn("[BootstrapVue warn]: ".concat(t?"".concat(t," - "):"").concat(a))},l=function(a){return!n.Qg&&(o("".concat(a,": Can not be called during SSR.")),!0)},c=function(a){return!n.zx&&(o("".concat(a,": Requires Promise support.")),!0)},s=function(a){return!n.Uc&&(o("".concat(a,": Requires MutationObserver support.")),!0)}},1915:(a,t,e)=>{e.d(t,{$B:()=>u,TF:()=>d,X$:()=>h,Y3:()=>g,l7:()=>v});var n=e(20144);e(69558);function i(a,t){var e=Object.keys(a);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(a);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(a,t).enumerable}))),e.push.apply(e,n)}return e}function r(a){for(var t=1;t=0||Object.prototype.propertyIsEnumerable.call(a,e)&&(i[e]=a[e])}return i}function c(a,t){if(null==a)return{};var e,n,i={},r=Object.keys(a);for(n=0;n=0||(i[e]=a[e]);return i}function s(a){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(a){return typeof a}:function(a){return a&&"function"==typeof Symbol&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},s(a)}var h="_uid",u=n["default"].version.startsWith("3"),d=u?"ref_for":"refInFor",p=["class","staticClass","style","attrs","props","domProps","on","nativeOn","directives","scopedSlots","slot","key","ref","refInFor"],v=n["default"].extend.bind(n["default"]);if(u){var f=n["default"].extend,m=["router-link","transition","transition-group"],z=n["default"].vModelDynamic.created,b=n["default"].vModelDynamic.beforeUpdate;n["default"].vModelDynamic.created=function(a,t,e){z.call(this,a,t,e),a._assign||(a._assign=function(){})},n["default"].vModelDynamic.beforeUpdate=function(a,t,e){b.call(this,a,t,e),a._assign||(a._assign=function(){})},v=function(a){if("object"===s(a)&&a.render&&!a.__alreadyPatched){var t=a.render;a.__alreadyPatched=!0,a.render=function(e){var n=function(a,t,n){var i=void 0===n?[]:[Array.isArray(n)?n.filter(Boolean):n],o="string"===typeof a&&!m.includes(a),c=t&&"object"===s(t)&&!Array.isArray(t);if(!c)return e.apply(void 0,[a,t].concat(i));var h=t.attrs,u=t.props,d=l(t,["attrs","props"]),p=r(r({},d),{},{attrs:h,props:o?{}:u});return"router-link"!==a||p.slots||p.scopedSlots||(p.scopedSlots={$hasNormal:function(){}}),e.apply(void 0,[a,p].concat(i))};if(a.functional){var i,o,c=arguments[1],h=r({},c);h.data={attrs:r({},c.data.attrs||{}),props:r({},c.data.props||{})},Object.keys(c.data||{}).forEach((function(a){p.includes(a)?h.data[a]=c.data[a]:a in c.props?h.data.props[a]=c.data[a]:a.startsWith("on")||(h.data.attrs[a]=c.data[a])}));var u=["_ctx"],d=(null===(i=c.children)||void 0===i||null===(o=i.default)||void 0===o?void 0:o.call(i))||c.children;return d&&0===Object.keys(h.children).filter((function(a){return!u.includes(a)})).length?delete h.children:h.children=d,h.data.on=c.listeners,t.call(this,n,h)}return t.call(this,n)}}return f.call(this,a)}.bind(n["default"])}var g=n["default"].nextTick}}]); \ No newline at end of file diff --git a/HomeUI/dist/js/chunk-vendors.js b/HomeUI/dist/js/chunk-vendors.js index bf1a92599..3e8612893 100644 --- a/HomeUI/dist/js/chunk-vendors.js +++ b/HomeUI/dist/js/chunk-vendors.js @@ -1,14 +1,14 @@ -(globalThis["webpackChunkflux"]=globalThis["webpackChunkflux"]||[]).push([[4998],{1001:(t,e,r)=>{"use strict";function n(t,e,r,n,o,i,a,s){var c,u="function"===typeof t?t.options:t;if(e&&(u.render=e,u.staticRenderFns=r,u._compiled=!0),n&&(u.functional=!0),i&&(u._scopeId="data-v-"+i),a?(c=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"===typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),o&&o.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(a)},u._ssrRegister=c):o&&(c=s?function(){o.call(this,(u.functional?this.parent:this).$root.$options.shadowRoot)}:o),c)if(u.functional){u._injectStyles=c;var l=u.render;u.render=function(t,e){return c.call(e),l(t,e)}}else{var f=u.beforeCreate;u.beforeCreate=f?[].concat(f,c):[c]}return{exports:t,options:u}}r.d(e,{Z:()=>n})},3933:t=>{var e=/^(attrs|props|on|nativeOn|class|style|hook)$/;function r(t,e){return function(){t&&t.apply(this,arguments),e&&e.apply(this,arguments)}}t.exports=function(t){return t.reduce((function(t,n){var o,i,a,s,c;for(a in n)if(o=t[a],i=n[a],o&&e.test(a))if("class"===a&&("string"===typeof o&&(c=o,t[a]=o={},o[c]=!0),"string"===typeof i&&(c=i,n[a]=i={},i[c]=!0)),"on"===a||"nativeOn"===a||"hook"===a)for(s in i)o[s]=r(o[s],i[s]);else if(Array.isArray(o))t[a]=o.concat(i);else if(Array.isArray(i))t[a]=[o].concat(i);else for(s in i)o[s]=i[s];else t[a]=n[a];return t}),{})}},79742:(t,e)=>{"use strict";e.byteLength=u,e.toByteArray=f,e.fromByteArray=h;for(var r=[],n=[],o="undefined"!==typeof Uint8Array?Uint8Array:Array,i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0,s=i.length;a0)throw new Error("Invalid string. Length must be a multiple of 4");var r=t.indexOf("=");-1===r&&(r=e);var n=r===e?0:4-r%4;return[r,n]}function u(t){var e=c(t),r=e[0],n=e[1];return 3*(r+n)/4-n}function l(t,e,r){return 3*(e+r)/4-r}function f(t){var e,r,i=c(t),a=i[0],s=i[1],u=new o(l(t,a,s)),f=0,p=s>0?a-4:a;for(r=0;r>16&255,u[f++]=e>>8&255,u[f++]=255&e;return 2===s&&(e=n[t.charCodeAt(r)]<<2|n[t.charCodeAt(r+1)]>>4,u[f++]=255&e),1===s&&(e=n[t.charCodeAt(r)]<<10|n[t.charCodeAt(r+1)]<<4|n[t.charCodeAt(r+2)]>>2,u[f++]=e>>8&255,u[f++]=255&e),u}function p(t){return r[t>>18&63]+r[t>>12&63]+r[t>>6&63]+r[63&t]}function d(t,e,r){for(var n,o=[],i=e;ic?c:s+a));return 1===o?(e=t[n-1],i.push(r[e>>2]+r[e<<4&63]+"==")):2===o&&(e=(t[n-2]<<8)+t[n-1],i.push(r[e>>10]+r[e>>4&63]+r[e<<2&63]+"=")),i.join("")}n["-".charCodeAt(0)]=62,n["_".charCodeAt(0)]=63},48764:(t,e,r)=>{"use strict";var n=r(79742),o=r(80645),i="function"===typeof Symbol&&"function"===typeof Symbol["for"]?Symbol["for"]("nodejs.util.inspect.custom"):null; +(self["webpackChunkflux"]=self["webpackChunkflux"]||[]).push([[4998],{1001:(t,e,r)=>{"use strict";function n(t,e,r,n,o,i,a,s){var c,u="function"===typeof t?t.options:t;if(e&&(u.render=e,u.staticRenderFns=r,u._compiled=!0),n&&(u.functional=!0),i&&(u._scopeId="data-v-"+i),a?(c=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"===typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),o&&o.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(a)},u._ssrRegister=c):o&&(c=s?function(){o.call(this,(u.functional?this.parent:this).$root.$options.shadowRoot)}:o),c)if(u.functional){u._injectStyles=c;var l=u.render;u.render=function(t,e){return c.call(e),l(t,e)}}else{var f=u.beforeCreate;u.beforeCreate=f?[].concat(f,c):[c]}return{exports:t,options:u}}r.d(e,{Z:()=>n})},3933:t=>{var e=/^(attrs|props|on|nativeOn|class|style|hook)$/;function r(t,e){return function(){t&&t.apply(this,arguments),e&&e.apply(this,arguments)}}t.exports=function(t){return t.reduce((function(t,n){var o,i,a,s,c;for(a in n)if(o=t[a],i=n[a],o&&e.test(a))if("class"===a&&("string"===typeof o&&(c=o,t[a]=o={},o[c]=!0),"string"===typeof i&&(c=i,n[a]=i={},i[c]=!0)),"on"===a||"nativeOn"===a||"hook"===a)for(s in i)o[s]=r(o[s],i[s]);else if(Array.isArray(o))t[a]=o.concat(i);else if(Array.isArray(i))t[a]=[o].concat(i);else for(s in i)o[s]=i[s];else t[a]=n[a];return t}),{})}},79742:(t,e)=>{"use strict";e.byteLength=u,e.toByteArray=f,e.fromByteArray=h;for(var r=[],n=[],o="undefined"!==typeof Uint8Array?Uint8Array:Array,i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0,s=i.length;a0)throw new Error("Invalid string. Length must be a multiple of 4");var r=t.indexOf("=");-1===r&&(r=e);var n=r===e?0:4-r%4;return[r,n]}function u(t){var e=c(t),r=e[0],n=e[1];return 3*(r+n)/4-n}function l(t,e,r){return 3*(e+r)/4-r}function f(t){var e,r,i=c(t),a=i[0],s=i[1],u=new o(l(t,a,s)),f=0,p=s>0?a-4:a;for(r=0;r>16&255,u[f++]=e>>8&255,u[f++]=255&e;return 2===s&&(e=n[t.charCodeAt(r)]<<2|n[t.charCodeAt(r+1)]>>4,u[f++]=255&e),1===s&&(e=n[t.charCodeAt(r)]<<10|n[t.charCodeAt(r+1)]<<4|n[t.charCodeAt(r+2)]>>2,u[f++]=e>>8&255,u[f++]=255&e),u}function p(t){return r[t>>18&63]+r[t>>12&63]+r[t>>6&63]+r[63&t]}function d(t,e,r){for(var n,o=[],i=e;ic?c:s+a));return 1===o?(e=t[n-1],i.push(r[e>>2]+r[e<<4&63]+"==")):2===o&&(e=(t[n-2]<<8)+t[n-1],i.push(r[e>>10]+r[e>>4&63]+r[e<<2&63]+"=")),i.join("")}n["-".charCodeAt(0)]=62,n["_".charCodeAt(0)]=63},48764:(t,e,r)=>{"use strict";var n=r(79742),o=r(80645),i="function"===typeof Symbol&&"function"===typeof Symbol["for"]?Symbol["for"]("nodejs.util.inspect.custom"):null; /*! * The buffer module from node.js, for the browser. * * @author Feross Aboukhadijeh * @license MIT - */e.lW=u,e.h2=50;var a=2147483647;function s(){try{var t=new Uint8Array(1),e={foo:function(){return 42}};return Object.setPrototypeOf(e,Uint8Array.prototype),Object.setPrototypeOf(t,e),42===t.foo()}catch(r){return!1}}function c(t){if(t>a)throw new RangeError('The value "'+t+'" is invalid for option "size"');var e=new Uint8Array(t);return Object.setPrototypeOf(e,u.prototype),e}function u(t,e,r){if("number"===typeof t){if("string"===typeof e)throw new TypeError('The "string" argument must be of type string. Received type number');return d(t)}return l(t,e,r)}function l(t,e,r){if("string"===typeof t)return h(t,e);if(ArrayBuffer.isView(t))return y(t);if(null==t)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t);if(K(t,ArrayBuffer)||t&&K(t.buffer,ArrayBuffer))return g(t,e,r);if("undefined"!==typeof SharedArrayBuffer&&(K(t,SharedArrayBuffer)||t&&K(t.buffer,SharedArrayBuffer)))return g(t,e,r);if("number"===typeof t)throw new TypeError('The "value" argument must not be of type number. Received type number');var n=t.valueOf&&t.valueOf();if(null!=n&&n!==t)return u.from(n,e,r);var o=v(t);if(o)return o;if("undefined"!==typeof Symbol&&null!=Symbol.toPrimitive&&"function"===typeof t[Symbol.toPrimitive])return u.from(t[Symbol.toPrimitive]("string"),e,r);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t)}function f(t){if("number"!==typeof t)throw new TypeError('"size" argument must be of type number');if(t<0)throw new RangeError('The value "'+t+'" is invalid for option "size"')}function p(t,e,r){return f(t),t<=0?c(t):void 0!==e?"string"===typeof r?c(t).fill(e,r):c(t).fill(e):c(t)}function d(t){return f(t),c(t<0?0:0|b(t))}function h(t,e){if("string"===typeof e&&""!==e||(e="utf8"),!u.isEncoding(e))throw new TypeError("Unknown encoding: "+e);var r=0|E(t,e),n=c(r),o=n.write(t,e);return o!==r&&(n=n.slice(0,o)),n}function m(t){for(var e=t.length<0?0:0|b(t.length),r=c(e),n=0;n=a)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a.toString(16)+" bytes");return 0|t}function w(t){return+t!=t&&(t=0),u.alloc(+t)}function E(t,e){if(u.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||K(t,ArrayBuffer))return t.byteLength;if("string"!==typeof t)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof t);var r=t.length,n=arguments.length>2&&!0===arguments[2];if(!n&&0===r)return 0;for(var o=!1;;)switch(e){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return G(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return Y(t).length;default:if(o)return n?-1:G(t).length;e=(""+e).toLowerCase(),o=!0}}function S(t,e,r){var n=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if(r>>>=0,e>>>=0,r<=e)return"";t||(t="utf8");while(1)switch(t){case"hex":return B(this,e,r);case"utf8":case"utf-8":return j(this,e,r);case"ascii":return I(this,e,r);case"latin1":case"binary":return k(this,e,r);case"base64":return P(this,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return U(this,e,r);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}function O(t,e,r){var n=t[e];t[e]=t[r],t[r]=n}function T(t,e,r,n,o){if(0===t.length)return-1;if("string"===typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,Q(r)&&(r=o?0:t.length-1),r<0&&(r=t.length+r),r>=t.length){if(o)return-1;r=t.length-1}else if(r<0){if(!o)return-1;r=0}if("string"===typeof e&&(e=u.from(e,n)),u.isBuffer(e))return 0===e.length?-1:A(t,e,r,n,o);if("number"===typeof e)return e&=255,"function"===typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(t,e,r):Uint8Array.prototype.lastIndexOf.call(t,e,r):A(t,[e],r,n,o);throw new TypeError("val must be string, number or Buffer")}function A(t,e,r,n,o){var i,a=1,s=t.length,c=e.length;if(void 0!==n&&(n=String(n).toLowerCase(),"ucs2"===n||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(t.length<2||e.length<2)return-1;a=2,s/=2,c/=2,r/=2}function u(t,e){return 1===a?t[e]:t.readUInt16BE(e*a)}if(o){var l=-1;for(i=r;is&&(r=s-c),i=r;i>=0;i--){for(var f=!0,p=0;po&&(n=o)):n=o;var i=e.length;n>i/2&&(n=i/2);for(var a=0;a239?4:u>223?3:u>191?2:1;if(o+f<=r)switch(f){case 1:u<128&&(l=u);break;case 2:i=t[o+1],128===(192&i)&&(c=(31&u)<<6|63&i,c>127&&(l=c));break;case 3:i=t[o+1],a=t[o+2],128===(192&i)&&128===(192&a)&&(c=(15&u)<<12|(63&i)<<6|63&a,c>2047&&(c<55296||c>57343)&&(l=c));break;case 4:i=t[o+1],a=t[o+2],s=t[o+3],128===(192&i)&&128===(192&a)&&128===(192&s)&&(c=(15&u)<<18|(63&i)<<12|(63&a)<<6|63&s,c>65535&&c<1114112&&(l=c))}null===l?(l=65533,f=1):l>65535&&(l-=65536,n.push(l>>>10&1023|55296),l=56320|1023&l),n.push(l),o+=f}return D(n)}u.TYPED_ARRAY_SUPPORT=s(),u.TYPED_ARRAY_SUPPORT||"undefined"===typeof console||"function"!==typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(u.prototype,"parent",{enumerable:!0,get:function(){if(u.isBuffer(this))return this.buffer}}),Object.defineProperty(u.prototype,"offset",{enumerable:!0,get:function(){if(u.isBuffer(this))return this.byteOffset}}),u.poolSize=8192,u.from=function(t,e,r){return l(t,e,r)},Object.setPrototypeOf(u.prototype,Uint8Array.prototype),Object.setPrototypeOf(u,Uint8Array),u.alloc=function(t,e,r){return p(t,e,r)},u.allocUnsafe=function(t){return d(t)},u.allocUnsafeSlow=function(t){return d(t)},u.isBuffer=function(t){return null!=t&&!0===t._isBuffer&&t!==u.prototype},u.compare=function(t,e){if(K(t,Uint8Array)&&(t=u.from(t,t.offset,t.byteLength)),K(e,Uint8Array)&&(e=u.from(e,e.offset,e.byteLength)),!u.isBuffer(t)||!u.isBuffer(e))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(t===e)return 0;for(var r=t.length,n=e.length,o=0,i=Math.min(r,n);on.length?u.from(i).copy(n,o):Uint8Array.prototype.set.call(n,i,o);else{if(!u.isBuffer(i))throw new TypeError('"list" argument must be an Array of Buffers');i.copy(n,o)}o+=i.length}return n},u.byteLength=E,u.prototype._isBuffer=!0,u.prototype.swap16=function(){var t=this.length;if(t%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var e=0;er&&(t+=" ... "),""},i&&(u.prototype[i]=u.prototype.inspect),u.prototype.compare=function(t,e,r,n,o){if(K(t,Uint8Array)&&(t=u.from(t,t.offset,t.byteLength)),!u.isBuffer(t))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof t);if(void 0===e&&(e=0),void 0===r&&(r=t?t.length:0),void 0===n&&(n=0),void 0===o&&(o=this.length),e<0||r>t.length||n<0||o>this.length)throw new RangeError("out of range index");if(n>=o&&e>=r)return 0;if(n>=o)return-1;if(e>=r)return 1;if(e>>>=0,r>>>=0,n>>>=0,o>>>=0,this===t)return 0;for(var i=o-n,a=r-e,s=Math.min(i,a),c=this.slice(n,o),l=t.slice(e,r),f=0;f>>=0,isFinite(r)?(r>>>=0,void 0===n&&(n="utf8")):(n=r,r=void 0)}var o=this.length-e;if((void 0===r||r>o)&&(r=o),t.length>0&&(r<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var i=!1;;)switch(n){case"hex":return x(this,t,e,r);case"utf8":case"utf-8":return R(this,t,e,r);case"ascii":case"latin1":case"binary":return _(this,t,e,r);case"base64":return C(this,t,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return N(this,t,e,r);default:if(i)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),i=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var L=4096;function D(t){var e=t.length;if(e<=L)return String.fromCharCode.apply(String,t);var r="",n=0;while(nn)&&(r=n);for(var o="",i=e;ir)throw new RangeError("Trying to access beyond buffer length")}function M(t,e,r,n,o,i){if(!u.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>o||et.length)throw new RangeError("Index out of range")}function $(t,e,r,n,o,i){if(r+n>t.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function H(t,e,r,n,i){return e=+e,r>>>=0,i||$(t,e,r,4,34028234663852886e22,-34028234663852886e22),o.write(t,e,r,n,23,4),r+4}function W(t,e,r,n,i){return e=+e,r>>>=0,i||$(t,e,r,8,17976931348623157e292,-17976931348623157e292),o.write(t,e,r,n,52,8),r+8}u.prototype.slice=function(t,e){var r=this.length;t=~~t,e=void 0===e?r:~~e,t<0?(t+=r,t<0&&(t=0)):t>r&&(t=r),e<0?(e+=r,e<0&&(e=0)):e>r&&(e=r),e>>=0,e>>>=0,r||F(t,e,this.length);var n=this[t],o=1,i=0;while(++i>>=0,e>>>=0,r||F(t,e,this.length);var n=this[t+--e],o=1;while(e>0&&(o*=256))n+=this[t+--e]*o;return n},u.prototype.readUint8=u.prototype.readUInt8=function(t,e){return t>>>=0,e||F(t,1,this.length),this[t]},u.prototype.readUint16LE=u.prototype.readUInt16LE=function(t,e){return t>>>=0,e||F(t,2,this.length),this[t]|this[t+1]<<8},u.prototype.readUint16BE=u.prototype.readUInt16BE=function(t,e){return t>>>=0,e||F(t,2,this.length),this[t]<<8|this[t+1]},u.prototype.readUint32LE=u.prototype.readUInt32LE=function(t,e){return t>>>=0,e||F(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},u.prototype.readUint32BE=u.prototype.readUInt32BE=function(t,e){return t>>>=0,e||F(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},u.prototype.readIntLE=function(t,e,r){t>>>=0,e>>>=0,r||F(t,e,this.length);var n=this[t],o=1,i=0;while(++i=o&&(n-=Math.pow(2,8*e)),n},u.prototype.readIntBE=function(t,e,r){t>>>=0,e>>>=0,r||F(t,e,this.length);var n=e,o=1,i=this[t+--n];while(n>0&&(o*=256))i+=this[t+--n]*o;return o*=128,i>=o&&(i-=Math.pow(2,8*e)),i},u.prototype.readInt8=function(t,e){return t>>>=0,e||F(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},u.prototype.readInt16LE=function(t,e){t>>>=0,e||F(t,2,this.length);var r=this[t]|this[t+1]<<8;return 32768&r?4294901760|r:r},u.prototype.readInt16BE=function(t,e){t>>>=0,e||F(t,2,this.length);var r=this[t+1]|this[t]<<8;return 32768&r?4294901760|r:r},u.prototype.readInt32LE=function(t,e){return t>>>=0,e||F(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},u.prototype.readInt32BE=function(t,e){return t>>>=0,e||F(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},u.prototype.readFloatLE=function(t,e){return t>>>=0,e||F(t,4,this.length),o.read(this,t,!0,23,4)},u.prototype.readFloatBE=function(t,e){return t>>>=0,e||F(t,4,this.length),o.read(this,t,!1,23,4)},u.prototype.readDoubleLE=function(t,e){return t>>>=0,e||F(t,8,this.length),o.read(this,t,!0,52,8)},u.prototype.readDoubleBE=function(t,e){return t>>>=0,e||F(t,8,this.length),o.read(this,t,!1,52,8)},u.prototype.writeUintLE=u.prototype.writeUIntLE=function(t,e,r,n){if(t=+t,e>>>=0,r>>>=0,!n){var o=Math.pow(2,8*r)-1;M(this,t,e,r,o,0)}var i=1,a=0;this[e]=255&t;while(++a>>=0,r>>>=0,!n){var o=Math.pow(2,8*r)-1;M(this,t,e,r,o,0)}var i=r-1,a=1;this[e+i]=255&t;while(--i>=0&&(a*=256))this[e+i]=t/a&255;return e+r},u.prototype.writeUint8=u.prototype.writeUInt8=function(t,e,r){return t=+t,e>>>=0,r||M(this,t,e,1,255,0),this[e]=255&t,e+1},u.prototype.writeUint16LE=u.prototype.writeUInt16LE=function(t,e,r){return t=+t,e>>>=0,r||M(this,t,e,2,65535,0),this[e]=255&t,this[e+1]=t>>>8,e+2},u.prototype.writeUint16BE=u.prototype.writeUInt16BE=function(t,e,r){return t=+t,e>>>=0,r||M(this,t,e,2,65535,0),this[e]=t>>>8,this[e+1]=255&t,e+2},u.prototype.writeUint32LE=u.prototype.writeUInt32LE=function(t,e,r){return t=+t,e>>>=0,r||M(this,t,e,4,4294967295,0),this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t,e+4},u.prototype.writeUint32BE=u.prototype.writeUInt32BE=function(t,e,r){return t=+t,e>>>=0,r||M(this,t,e,4,4294967295,0),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},u.prototype.writeIntLE=function(t,e,r,n){if(t=+t,e>>>=0,!n){var o=Math.pow(2,8*r-1);M(this,t,e,r,o-1,-o)}var i=0,a=1,s=0;this[e]=255&t;while(++i>0)-s&255;return e+r},u.prototype.writeIntBE=function(t,e,r,n){if(t=+t,e>>>=0,!n){var o=Math.pow(2,8*r-1);M(this,t,e,r,o-1,-o)}var i=r-1,a=1,s=0;this[e+i]=255&t;while(--i>=0&&(a*=256))t<0&&0===s&&0!==this[e+i+1]&&(s=1),this[e+i]=(t/a>>0)-s&255;return e+r},u.prototype.writeInt8=function(t,e,r){return t=+t,e>>>=0,r||M(this,t,e,1,127,-128),t<0&&(t=255+t+1),this[e]=255&t,e+1},u.prototype.writeInt16LE=function(t,e,r){return t=+t,e>>>=0,r||M(this,t,e,2,32767,-32768),this[e]=255&t,this[e+1]=t>>>8,e+2},u.prototype.writeInt16BE=function(t,e,r){return t=+t,e>>>=0,r||M(this,t,e,2,32767,-32768),this[e]=t>>>8,this[e+1]=255&t,e+2},u.prototype.writeInt32LE=function(t,e,r){return t=+t,e>>>=0,r||M(this,t,e,4,2147483647,-2147483648),this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24,e+4},u.prototype.writeInt32BE=function(t,e,r){return t=+t,e>>>=0,r||M(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},u.prototype.writeFloatLE=function(t,e,r){return H(this,t,e,!0,r)},u.prototype.writeFloatBE=function(t,e,r){return H(this,t,e,!1,r)},u.prototype.writeDoubleLE=function(t,e,r){return W(this,t,e,!0,r)},u.prototype.writeDoubleBE=function(t,e,r){return W(this,t,e,!1,r)},u.prototype.copy=function(t,e,r,n){if(!u.isBuffer(t))throw new TypeError("argument should be a Buffer");if(r||(r=0),n||0===n||(n=this.length),e>=t.length&&(e=t.length),e||(e=0),n>0&&n=this.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),t.length-e>>=0,r=void 0===r?this.length:r>>>0,t||(t=0),"number"===typeof t)for(i=e;i55295&&r<57344){if(!o){if(r>56319){(e-=3)>-1&&i.push(239,191,189);continue}if(a+1===n){(e-=3)>-1&&i.push(239,191,189);continue}o=r;continue}if(r<56320){(e-=3)>-1&&i.push(239,191,189),o=r;continue}r=65536+(o-55296<<10|r-56320)}else o&&(e-=3)>-1&&i.push(239,191,189);if(o=null,r<128){if((e-=1)<0)break;i.push(r)}else if(r<2048){if((e-=2)<0)break;i.push(r>>6|192,63&r|128)}else if(r<65536){if((e-=3)<0)break;i.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;i.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return i}function V(t){for(var e=[],r=0;r>8,o=r%256,i.push(o),i.push(n)}return i}function Y(t){return n.toByteArray(q(t))}function X(t,e,r,n){for(var o=0;o=e.length||o>=t.length)break;e[o+r]=t[o]}return o}function K(t,e){return t instanceof e||null!=t&&null!=t.constructor&&null!=t.constructor.name&&t.constructor.name===e.name}function Q(t){return t!==t}var Z=function(){for(var t="0123456789abcdef",e=new Array(256),r=0;r<16;++r)for(var n=16*r,o=0;o<16;++o)e[n+o]=t[r]+t[o];return e}()},21924:(t,e,r)=>{"use strict";var n=r(40210),o=r(55559),i=o(n("String.prototype.indexOf"));t.exports=function(t,e){var r=n(t,!!e);return"function"===typeof r&&i(t,".prototype.")>-1?o(r):r}},55559:(t,e,r)=>{"use strict";var n=r(58612),o=r(40210),i=r(67771),a=o("%TypeError%"),s=o("%Function.prototype.apply%"),c=o("%Function.prototype.call%"),u=o("%Reflect.apply%",!0)||n.call(c,s),l=o("%Object.defineProperty%",!0),f=o("%Math.max%");if(l)try{l({},"a",{value:1})}catch(d){l=null}t.exports=function(t){if("function"!==typeof t)throw new a("a function is required");var e=u(n,c,arguments);return i(e,1+f(0,t.length-(arguments.length-1)),!0)};var p=function(){return u(n,s,arguments)};l?l(t.exports,"apply",{value:p}):t.exports.apply=p},12296:(t,e,r)=>{"use strict";var n=r(31044)(),o=r(40210),i=n&&o("%Object.defineProperty%",!0);if(i)try{i({},"a",{value:1})}catch(u){i=!1}var a=o("%SyntaxError%"),s=o("%TypeError%"),c=r(27296);t.exports=function(t,e,r){if(!t||"object"!==typeof t&&"function"!==typeof t)throw new s("`obj` must be an object or a function`");if("string"!==typeof e&&"symbol"!==typeof e)throw new s("`property` must be a string or a symbol`");if(arguments.length>3&&"boolean"!==typeof arguments[3]&&null!==arguments[3])throw new s("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&"boolean"!==typeof arguments[4]&&null!==arguments[4])throw new s("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&"boolean"!==typeof arguments[5]&&null!==arguments[5])throw new s("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&"boolean"!==typeof arguments[6])throw new s("`loose`, if provided, must be a boolean");var n=arguments.length>3?arguments[3]:null,o=arguments.length>4?arguments[4]:null,u=arguments.length>5?arguments[5]:null,l=arguments.length>6&&arguments[6],f=!!c&&c(t,e);if(i)i(t,e,{configurable:null===u&&f?f.configurable:!u,enumerable:null===n&&f?f.enumerable:!n,value:r,writable:null===o&&f?f.writable:!o});else{if(!l&&(n||o||u))throw new a("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");t[e]=r}}},27856:function(t){ + */e.lW=u,e.h2=50;var a=2147483647;function s(){try{var t=new Uint8Array(1),e={foo:function(){return 42}};return Object.setPrototypeOf(e,Uint8Array.prototype),Object.setPrototypeOf(t,e),42===t.foo()}catch(r){return!1}}function c(t){if(t>a)throw new RangeError('The value "'+t+'" is invalid for option "size"');var e=new Uint8Array(t);return Object.setPrototypeOf(e,u.prototype),e}function u(t,e,r){if("number"===typeof t){if("string"===typeof e)throw new TypeError('The "string" argument must be of type string. Received type number');return d(t)}return l(t,e,r)}function l(t,e,r){if("string"===typeof t)return h(t,e);if(ArrayBuffer.isView(t))return y(t);if(null==t)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t);if(K(t,ArrayBuffer)||t&&K(t.buffer,ArrayBuffer))return g(t,e,r);if("undefined"!==typeof SharedArrayBuffer&&(K(t,SharedArrayBuffer)||t&&K(t.buffer,SharedArrayBuffer)))return g(t,e,r);if("number"===typeof t)throw new TypeError('The "value" argument must not be of type number. Received type number');var n=t.valueOf&&t.valueOf();if(null!=n&&n!==t)return u.from(n,e,r);var o=v(t);if(o)return o;if("undefined"!==typeof Symbol&&null!=Symbol.toPrimitive&&"function"===typeof t[Symbol.toPrimitive])return u.from(t[Symbol.toPrimitive]("string"),e,r);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t)}function f(t){if("number"!==typeof t)throw new TypeError('"size" argument must be of type number');if(t<0)throw new RangeError('The value "'+t+'" is invalid for option "size"')}function p(t,e,r){return f(t),t<=0?c(t):void 0!==e?"string"===typeof r?c(t).fill(e,r):c(t).fill(e):c(t)}function d(t){return f(t),c(t<0?0:0|b(t))}function h(t,e){if("string"===typeof e&&""!==e||(e="utf8"),!u.isEncoding(e))throw new TypeError("Unknown encoding: "+e);var r=0|E(t,e),n=c(r),o=n.write(t,e);return o!==r&&(n=n.slice(0,o)),n}function m(t){for(var e=t.length<0?0:0|b(t.length),r=c(e),n=0;n=a)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a.toString(16)+" bytes");return 0|t}function w(t){return+t!=t&&(t=0),u.alloc(+t)}function E(t,e){if(u.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||K(t,ArrayBuffer))return t.byteLength;if("string"!==typeof t)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof t);var r=t.length,n=arguments.length>2&&!0===arguments[2];if(!n&&0===r)return 0;for(var o=!1;;)switch(e){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return G(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return Y(t).length;default:if(o)return n?-1:G(t).length;e=(""+e).toLowerCase(),o=!0}}function S(t,e,r){var n=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if(r>>>=0,e>>>=0,r<=e)return"";t||(t="utf8");while(1)switch(t){case"hex":return B(this,e,r);case"utf8":case"utf-8":return j(this,e,r);case"ascii":return I(this,e,r);case"latin1":case"binary":return k(this,e,r);case"base64":return P(this,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return U(this,e,r);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}function O(t,e,r){var n=t[e];t[e]=t[r],t[r]=n}function T(t,e,r,n,o){if(0===t.length)return-1;if("string"===typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,Q(r)&&(r=o?0:t.length-1),r<0&&(r=t.length+r),r>=t.length){if(o)return-1;r=t.length-1}else if(r<0){if(!o)return-1;r=0}if("string"===typeof e&&(e=u.from(e,n)),u.isBuffer(e))return 0===e.length?-1:A(t,e,r,n,o);if("number"===typeof e)return e&=255,"function"===typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(t,e,r):Uint8Array.prototype.lastIndexOf.call(t,e,r):A(t,[e],r,n,o);throw new TypeError("val must be string, number or Buffer")}function A(t,e,r,n,o){var i,a=1,s=t.length,c=e.length;if(void 0!==n&&(n=String(n).toLowerCase(),"ucs2"===n||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(t.length<2||e.length<2)return-1;a=2,s/=2,c/=2,r/=2}function u(t,e){return 1===a?t[e]:t.readUInt16BE(e*a)}if(o){var l=-1;for(i=r;is&&(r=s-c),i=r;i>=0;i--){for(var f=!0,p=0;po&&(n=o)):n=o;var i=e.length;n>i/2&&(n=i/2);for(var a=0;a239?4:u>223?3:u>191?2:1;if(o+f<=r)switch(f){case 1:u<128&&(l=u);break;case 2:i=t[o+1],128===(192&i)&&(c=(31&u)<<6|63&i,c>127&&(l=c));break;case 3:i=t[o+1],a=t[o+2],128===(192&i)&&128===(192&a)&&(c=(15&u)<<12|(63&i)<<6|63&a,c>2047&&(c<55296||c>57343)&&(l=c));break;case 4:i=t[o+1],a=t[o+2],s=t[o+3],128===(192&i)&&128===(192&a)&&128===(192&s)&&(c=(15&u)<<18|(63&i)<<12|(63&a)<<6|63&s,c>65535&&c<1114112&&(l=c))}null===l?(l=65533,f=1):l>65535&&(l-=65536,n.push(l>>>10&1023|55296),l=56320|1023&l),n.push(l),o+=f}return D(n)}u.TYPED_ARRAY_SUPPORT=s(),u.TYPED_ARRAY_SUPPORT||"undefined"===typeof console||"function"!==typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(u.prototype,"parent",{enumerable:!0,get:function(){if(u.isBuffer(this))return this.buffer}}),Object.defineProperty(u.prototype,"offset",{enumerable:!0,get:function(){if(u.isBuffer(this))return this.byteOffset}}),u.poolSize=8192,u.from=function(t,e,r){return l(t,e,r)},Object.setPrototypeOf(u.prototype,Uint8Array.prototype),Object.setPrototypeOf(u,Uint8Array),u.alloc=function(t,e,r){return p(t,e,r)},u.allocUnsafe=function(t){return d(t)},u.allocUnsafeSlow=function(t){return d(t)},u.isBuffer=function(t){return null!=t&&!0===t._isBuffer&&t!==u.prototype},u.compare=function(t,e){if(K(t,Uint8Array)&&(t=u.from(t,t.offset,t.byteLength)),K(e,Uint8Array)&&(e=u.from(e,e.offset,e.byteLength)),!u.isBuffer(t)||!u.isBuffer(e))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(t===e)return 0;for(var r=t.length,n=e.length,o=0,i=Math.min(r,n);on.length?u.from(i).copy(n,o):Uint8Array.prototype.set.call(n,i,o);else{if(!u.isBuffer(i))throw new TypeError('"list" argument must be an Array of Buffers');i.copy(n,o)}o+=i.length}return n},u.byteLength=E,u.prototype._isBuffer=!0,u.prototype.swap16=function(){var t=this.length;if(t%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var e=0;er&&(t+=" ... "),""},i&&(u.prototype[i]=u.prototype.inspect),u.prototype.compare=function(t,e,r,n,o){if(K(t,Uint8Array)&&(t=u.from(t,t.offset,t.byteLength)),!u.isBuffer(t))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof t);if(void 0===e&&(e=0),void 0===r&&(r=t?t.length:0),void 0===n&&(n=0),void 0===o&&(o=this.length),e<0||r>t.length||n<0||o>this.length)throw new RangeError("out of range index");if(n>=o&&e>=r)return 0;if(n>=o)return-1;if(e>=r)return 1;if(e>>>=0,r>>>=0,n>>>=0,o>>>=0,this===t)return 0;for(var i=o-n,a=r-e,s=Math.min(i,a),c=this.slice(n,o),l=t.slice(e,r),f=0;f>>=0,isFinite(r)?(r>>>=0,void 0===n&&(n="utf8")):(n=r,r=void 0)}var o=this.length-e;if((void 0===r||r>o)&&(r=o),t.length>0&&(r<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var i=!1;;)switch(n){case"hex":return x(this,t,e,r);case"utf8":case"utf-8":return R(this,t,e,r);case"ascii":case"latin1":case"binary":return _(this,t,e,r);case"base64":return C(this,t,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return N(this,t,e,r);default:if(i)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),i=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var L=4096;function D(t){var e=t.length;if(e<=L)return String.fromCharCode.apply(String,t);var r="",n=0;while(nn)&&(r=n);for(var o="",i=e;ir)throw new RangeError("Trying to access beyond buffer length")}function M(t,e,r,n,o,i){if(!u.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>o||et.length)throw new RangeError("Index out of range")}function $(t,e,r,n,o,i){if(r+n>t.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function H(t,e,r,n,i){return e=+e,r>>>=0,i||$(t,e,r,4,34028234663852886e22,-34028234663852886e22),o.write(t,e,r,n,23,4),r+4}function W(t,e,r,n,i){return e=+e,r>>>=0,i||$(t,e,r,8,17976931348623157e292,-17976931348623157e292),o.write(t,e,r,n,52,8),r+8}u.prototype.slice=function(t,e){var r=this.length;t=~~t,e=void 0===e?r:~~e,t<0?(t+=r,t<0&&(t=0)):t>r&&(t=r),e<0?(e+=r,e<0&&(e=0)):e>r&&(e=r),e>>=0,e>>>=0,r||F(t,e,this.length);var n=this[t],o=1,i=0;while(++i>>=0,e>>>=0,r||F(t,e,this.length);var n=this[t+--e],o=1;while(e>0&&(o*=256))n+=this[t+--e]*o;return n},u.prototype.readUint8=u.prototype.readUInt8=function(t,e){return t>>>=0,e||F(t,1,this.length),this[t]},u.prototype.readUint16LE=u.prototype.readUInt16LE=function(t,e){return t>>>=0,e||F(t,2,this.length),this[t]|this[t+1]<<8},u.prototype.readUint16BE=u.prototype.readUInt16BE=function(t,e){return t>>>=0,e||F(t,2,this.length),this[t]<<8|this[t+1]},u.prototype.readUint32LE=u.prototype.readUInt32LE=function(t,e){return t>>>=0,e||F(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},u.prototype.readUint32BE=u.prototype.readUInt32BE=function(t,e){return t>>>=0,e||F(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},u.prototype.readIntLE=function(t,e,r){t>>>=0,e>>>=0,r||F(t,e,this.length);var n=this[t],o=1,i=0;while(++i=o&&(n-=Math.pow(2,8*e)),n},u.prototype.readIntBE=function(t,e,r){t>>>=0,e>>>=0,r||F(t,e,this.length);var n=e,o=1,i=this[t+--n];while(n>0&&(o*=256))i+=this[t+--n]*o;return o*=128,i>=o&&(i-=Math.pow(2,8*e)),i},u.prototype.readInt8=function(t,e){return t>>>=0,e||F(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},u.prototype.readInt16LE=function(t,e){t>>>=0,e||F(t,2,this.length);var r=this[t]|this[t+1]<<8;return 32768&r?4294901760|r:r},u.prototype.readInt16BE=function(t,e){t>>>=0,e||F(t,2,this.length);var r=this[t+1]|this[t]<<8;return 32768&r?4294901760|r:r},u.prototype.readInt32LE=function(t,e){return t>>>=0,e||F(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},u.prototype.readInt32BE=function(t,e){return t>>>=0,e||F(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},u.prototype.readFloatLE=function(t,e){return t>>>=0,e||F(t,4,this.length),o.read(this,t,!0,23,4)},u.prototype.readFloatBE=function(t,e){return t>>>=0,e||F(t,4,this.length),o.read(this,t,!1,23,4)},u.prototype.readDoubleLE=function(t,e){return t>>>=0,e||F(t,8,this.length),o.read(this,t,!0,52,8)},u.prototype.readDoubleBE=function(t,e){return t>>>=0,e||F(t,8,this.length),o.read(this,t,!1,52,8)},u.prototype.writeUintLE=u.prototype.writeUIntLE=function(t,e,r,n){if(t=+t,e>>>=0,r>>>=0,!n){var o=Math.pow(2,8*r)-1;M(this,t,e,r,o,0)}var i=1,a=0;this[e]=255&t;while(++a>>=0,r>>>=0,!n){var o=Math.pow(2,8*r)-1;M(this,t,e,r,o,0)}var i=r-1,a=1;this[e+i]=255&t;while(--i>=0&&(a*=256))this[e+i]=t/a&255;return e+r},u.prototype.writeUint8=u.prototype.writeUInt8=function(t,e,r){return t=+t,e>>>=0,r||M(this,t,e,1,255,0),this[e]=255&t,e+1},u.prototype.writeUint16LE=u.prototype.writeUInt16LE=function(t,e,r){return t=+t,e>>>=0,r||M(this,t,e,2,65535,0),this[e]=255&t,this[e+1]=t>>>8,e+2},u.prototype.writeUint16BE=u.prototype.writeUInt16BE=function(t,e,r){return t=+t,e>>>=0,r||M(this,t,e,2,65535,0),this[e]=t>>>8,this[e+1]=255&t,e+2},u.prototype.writeUint32LE=u.prototype.writeUInt32LE=function(t,e,r){return t=+t,e>>>=0,r||M(this,t,e,4,4294967295,0),this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t,e+4},u.prototype.writeUint32BE=u.prototype.writeUInt32BE=function(t,e,r){return t=+t,e>>>=0,r||M(this,t,e,4,4294967295,0),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},u.prototype.writeIntLE=function(t,e,r,n){if(t=+t,e>>>=0,!n){var o=Math.pow(2,8*r-1);M(this,t,e,r,o-1,-o)}var i=0,a=1,s=0;this[e]=255&t;while(++i>>=0,!n){var o=Math.pow(2,8*r-1);M(this,t,e,r,o-1,-o)}var i=r-1,a=1,s=0;this[e+i]=255&t;while(--i>=0&&(a*=256))t<0&&0===s&&0!==this[e+i+1]&&(s=1),this[e+i]=(t/a|0)-s&255;return e+r},u.prototype.writeInt8=function(t,e,r){return t=+t,e>>>=0,r||M(this,t,e,1,127,-128),t<0&&(t=255+t+1),this[e]=255&t,e+1},u.prototype.writeInt16LE=function(t,e,r){return t=+t,e>>>=0,r||M(this,t,e,2,32767,-32768),this[e]=255&t,this[e+1]=t>>>8,e+2},u.prototype.writeInt16BE=function(t,e,r){return t=+t,e>>>=0,r||M(this,t,e,2,32767,-32768),this[e]=t>>>8,this[e+1]=255&t,e+2},u.prototype.writeInt32LE=function(t,e,r){return t=+t,e>>>=0,r||M(this,t,e,4,2147483647,-2147483648),this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24,e+4},u.prototype.writeInt32BE=function(t,e,r){return t=+t,e>>>=0,r||M(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},u.prototype.writeFloatLE=function(t,e,r){return H(this,t,e,!0,r)},u.prototype.writeFloatBE=function(t,e,r){return H(this,t,e,!1,r)},u.prototype.writeDoubleLE=function(t,e,r){return W(this,t,e,!0,r)},u.prototype.writeDoubleBE=function(t,e,r){return W(this,t,e,!1,r)},u.prototype.copy=function(t,e,r,n){if(!u.isBuffer(t))throw new TypeError("argument should be a Buffer");if(r||(r=0),n||0===n||(n=this.length),e>=t.length&&(e=t.length),e||(e=0),n>0&&n=this.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),t.length-e>>=0,r=void 0===r?this.length:r>>>0,t||(t=0),"number"===typeof t)for(i=e;i55295&&r<57344){if(!o){if(r>56319){(e-=3)>-1&&i.push(239,191,189);continue}if(a+1===n){(e-=3)>-1&&i.push(239,191,189);continue}o=r;continue}if(r<56320){(e-=3)>-1&&i.push(239,191,189),o=r;continue}r=65536+(o-55296<<10|r-56320)}else o&&(e-=3)>-1&&i.push(239,191,189);if(o=null,r<128){if((e-=1)<0)break;i.push(r)}else if(r<2048){if((e-=2)<0)break;i.push(r>>6|192,63&r|128)}else if(r<65536){if((e-=3)<0)break;i.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;i.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return i}function V(t){for(var e=[],r=0;r>8,o=r%256,i.push(o),i.push(n)}return i}function Y(t){return n.toByteArray(q(t))}function X(t,e,r,n){for(var o=0;o=e.length||o>=t.length)break;e[o+r]=t[o]}return o}function K(t,e){return t instanceof e||null!=t&&null!=t.constructor&&null!=t.constructor.name&&t.constructor.name===e.name}function Q(t){return t!==t}var Z=function(){for(var t="0123456789abcdef",e=new Array(256),r=0;r<16;++r)for(var n=16*r,o=0;o<16;++o)e[n+o]=t[r]+t[o];return e}()},21924:(t,e,r)=>{"use strict";var n=r(40210),o=r(55559),i=o(n("String.prototype.indexOf"));t.exports=function(t,e){var r=n(t,!!e);return"function"===typeof r&&i(t,".prototype.")>-1?o(r):r}},55559:(t,e,r)=>{"use strict";var n=r(58612),o=r(40210),i=r(67771),a=r(14453),s=o("%Function.prototype.apply%"),c=o("%Function.prototype.call%"),u=o("%Reflect.apply%",!0)||n.call(c,s),l=r(24429),f=o("%Math.max%");t.exports=function(t){if("function"!==typeof t)throw new a("a function is required");var e=u(n,c,arguments);return i(e,1+f(0,t.length-(arguments.length-1)),!0)};var p=function(){return u(n,s,arguments)};l?l(t.exports,"apply",{value:p}):t.exports.apply=p},12296:(t,e,r)=>{"use strict";var n=r(24429),o=r(33464),i=r(14453),a=r(27296);t.exports=function(t,e,r){if(!t||"object"!==typeof t&&"function"!==typeof t)throw new i("`obj` must be an object or a function`");if("string"!==typeof e&&"symbol"!==typeof e)throw new i("`property` must be a string or a symbol`");if(arguments.length>3&&"boolean"!==typeof arguments[3]&&null!==arguments[3])throw new i("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&"boolean"!==typeof arguments[4]&&null!==arguments[4])throw new i("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&"boolean"!==typeof arguments[5]&&null!==arguments[5])throw new i("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&"boolean"!==typeof arguments[6])throw new i("`loose`, if provided, must be a boolean");var s=arguments.length>3?arguments[3]:null,c=arguments.length>4?arguments[4]:null,u=arguments.length>5?arguments[5]:null,l=arguments.length>6&&arguments[6],f=!!a&&a(t,e);if(n)n(t,e,{configurable:null===u&&f?f.configurable:!u,enumerable:null===s&&f?f.enumerable:!s,value:r,writable:null===c&&f?f.writable:!c});else{if(!l&&(s||c||u))throw new o("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");t[e]=r}}},27856:function(t){ /*! @license DOMPurify 3.1.6 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.1.6/LICENSE */ -(function(e,r){t.exports=r()})(0,(function(){"use strict";const{entries:t,setPrototypeOf:e,isFrozen:r,getPrototypeOf:n,getOwnPropertyDescriptor:o}=Object;let{freeze:i,seal:a,create:s}=Object,{apply:c,construct:u}="undefined"!==typeof Reflect&&Reflect;i||(i=function(t){return t}),a||(a=function(t){return t}),c||(c=function(t,e,r){return t.apply(e,r)}),u||(u=function(t,e){return new t(...e)});const l=S(Array.prototype.forEach),f=S(Array.prototype.pop),p=S(Array.prototype.push),d=S(String.prototype.toLowerCase),h=S(String.prototype.toString),m=S(String.prototype.match),y=S(String.prototype.replace),g=S(String.prototype.indexOf),v=S(String.prototype.trim),b=S(Object.prototype.hasOwnProperty),w=S(RegExp.prototype.test),E=O(TypeError);function S(t){return function(e){for(var r=arguments.length,n=new Array(r>1?r-1:0),o=1;o2&&void 0!==arguments[2]?arguments[2]:d;e&&e(t,null);let i=n.length;while(i--){let e=n[i];if("string"===typeof e){const t=o(e);t!==e&&(r(n)||(n[i]=t),e=t)}t[e]=!0}return t}function A(t){for(let e=0;e/gm),$=a(/\${[\w\W]*}/gm),H=a(/^data-[\-\w.\u00B7-\uFFFF]/),W=a(/^aria-[\-\w]+$/),z=a(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),q=a(/^(?:\w+script|data):/i),G=a(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),V=a(/^html$/i),J=a(/^[a-z][.\w]*(-[.\w]+)+$/i);var Y=Object.freeze({__proto__:null,MUSTACHE_EXPR:F,ERB_EXPR:M,TMPLIT_EXPR:$,DATA_ATTR:H,ARIA_ATTR:W,IS_ALLOWED_URI:z,IS_SCRIPT_OR_DATA:q,ATTR_WHITESPACE:G,DOCTYPE_NAME:V,CUSTOM_ELEMENT:J});const X={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,progressingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},K=function(){return"undefined"===typeof window?null:window},Q=function(t,e){if("object"!==typeof t||"function"!==typeof t.createPolicy)return null;let r=null;const n="data-tt-policy-suffix";e&&e.hasAttribute(n)&&(r=e.getAttribute(n));const o="dompurify"+(r?"#"+r:"");try{return t.createPolicy(o,{createHTML(t){return t},createScriptURL(t){return t}})}catch(i){return console.warn("TrustedTypes policy "+o+" could not be created."),null}};function Z(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:K();const r=t=>Z(t);if(r.version="3.1.6",r.removed=[],!e||!e.document||e.document.nodeType!==X.document)return r.isSupported=!1,r;let{document:n}=e;const o=n,a=o.currentScript,{DocumentFragment:c,HTMLTemplateElement:u,Node:S,Element:O,NodeFilter:A,NamedNodeMap:F=e.NamedNodeMap||e.MozNamedAttrMap,HTMLFormElement:M,DOMParser:$,trustedTypes:H}=e,W=O.prototype,q=R(W,"cloneNode"),G=R(W,"remove"),J=R(W,"nextSibling"),tt=R(W,"childNodes"),et=R(W,"parentNode");if("function"===typeof u){const t=n.createElement("template");t.content&&t.content.ownerDocument&&(n=t.content.ownerDocument)}let rt,nt="";const{implementation:ot,createNodeIterator:it,createDocumentFragment:at,getElementsByTagName:st}=n,{importNode:ct}=o;let ut={};r.isSupported="function"===typeof t&&"function"===typeof et&&ot&&void 0!==ot.createHTMLDocument;const{MUSTACHE_EXPR:lt,ERB_EXPR:ft,TMPLIT_EXPR:pt,DATA_ATTR:dt,ARIA_ATTR:ht,IS_SCRIPT_OR_DATA:mt,ATTR_WHITESPACE:yt,CUSTOM_ELEMENT:gt}=Y;let{IS_ALLOWED_URI:vt}=Y,bt=null;const wt=T({},[..._,...C,...N,...j,...D]);let Et=null;const St=T({},[...I,...k,...B,...U]);let Ot=Object.seal(s(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Tt=null,At=null,xt=!0,Rt=!0,_t=!1,Ct=!0,Nt=!1,Pt=!0,jt=!1,Lt=!1,Dt=!1,It=!1,kt=!1,Bt=!1,Ut=!0,Ft=!1;const Mt="user-content-";let $t=!0,Ht=!1,Wt={},zt=null;const qt=T({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let Gt=null;const Vt=T({},["audio","video","img","source","image","track"]);let Jt=null;const Yt=T({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Xt="http://www.w3.org/1998/Math/MathML",Kt="http://www.w3.org/2000/svg",Qt="http://www.w3.org/1999/xhtml";let Zt=Qt,te=!1,ee=null;const re=T({},[Xt,Kt,Qt],h);let ne=null;const oe=["application/xhtml+xml","text/html"],ie="text/html";let ae=null,se=null;const ce=n.createElement("form"),ue=function(t){return t instanceof RegExp||t instanceof Function},le=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!se||se!==t){if(t&&"object"===typeof t||(t={}),t=x(t),ne=-1===oe.indexOf(t.PARSER_MEDIA_TYPE)?ie:t.PARSER_MEDIA_TYPE,ae="application/xhtml+xml"===ne?h:d,bt=b(t,"ALLOWED_TAGS")?T({},t.ALLOWED_TAGS,ae):wt,Et=b(t,"ALLOWED_ATTR")?T({},t.ALLOWED_ATTR,ae):St,ee=b(t,"ALLOWED_NAMESPACES")?T({},t.ALLOWED_NAMESPACES,h):re,Jt=b(t,"ADD_URI_SAFE_ATTR")?T(x(Yt),t.ADD_URI_SAFE_ATTR,ae):Yt,Gt=b(t,"ADD_DATA_URI_TAGS")?T(x(Vt),t.ADD_DATA_URI_TAGS,ae):Vt,zt=b(t,"FORBID_CONTENTS")?T({},t.FORBID_CONTENTS,ae):qt,Tt=b(t,"FORBID_TAGS")?T({},t.FORBID_TAGS,ae):{},At=b(t,"FORBID_ATTR")?T({},t.FORBID_ATTR,ae):{},Wt=!!b(t,"USE_PROFILES")&&t.USE_PROFILES,xt=!1!==t.ALLOW_ARIA_ATTR,Rt=!1!==t.ALLOW_DATA_ATTR,_t=t.ALLOW_UNKNOWN_PROTOCOLS||!1,Ct=!1!==t.ALLOW_SELF_CLOSE_IN_ATTR,Nt=t.SAFE_FOR_TEMPLATES||!1,Pt=!1!==t.SAFE_FOR_XML,jt=t.WHOLE_DOCUMENT||!1,It=t.RETURN_DOM||!1,kt=t.RETURN_DOM_FRAGMENT||!1,Bt=t.RETURN_TRUSTED_TYPE||!1,Dt=t.FORCE_BODY||!1,Ut=!1!==t.SANITIZE_DOM,Ft=t.SANITIZE_NAMED_PROPS||!1,$t=!1!==t.KEEP_CONTENT,Ht=t.IN_PLACE||!1,vt=t.ALLOWED_URI_REGEXP||z,Zt=t.NAMESPACE||Qt,Ot=t.CUSTOM_ELEMENT_HANDLING||{},t.CUSTOM_ELEMENT_HANDLING&&ue(t.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(Ot.tagNameCheck=t.CUSTOM_ELEMENT_HANDLING.tagNameCheck),t.CUSTOM_ELEMENT_HANDLING&&ue(t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(Ot.attributeNameCheck=t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),t.CUSTOM_ELEMENT_HANDLING&&"boolean"===typeof t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(Ot.allowCustomizedBuiltInElements=t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Nt&&(Rt=!1),kt&&(It=!0),Wt&&(bt=T({},D),Et=[],!0===Wt.html&&(T(bt,_),T(Et,I)),!0===Wt.svg&&(T(bt,C),T(Et,k),T(Et,U)),!0===Wt.svgFilters&&(T(bt,N),T(Et,k),T(Et,U)),!0===Wt.mathMl&&(T(bt,j),T(Et,B),T(Et,U))),t.ADD_TAGS&&(bt===wt&&(bt=x(bt)),T(bt,t.ADD_TAGS,ae)),t.ADD_ATTR&&(Et===St&&(Et=x(Et)),T(Et,t.ADD_ATTR,ae)),t.ADD_URI_SAFE_ATTR&&T(Jt,t.ADD_URI_SAFE_ATTR,ae),t.FORBID_CONTENTS&&(zt===qt&&(zt=x(zt)),T(zt,t.FORBID_CONTENTS,ae)),$t&&(bt["#text"]=!0),jt&&T(bt,["html","head","body"]),bt.table&&(T(bt,["tbody"]),delete Tt.tbody),t.TRUSTED_TYPES_POLICY){if("function"!==typeof t.TRUSTED_TYPES_POLICY.createHTML)throw E('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!==typeof t.TRUSTED_TYPES_POLICY.createScriptURL)throw E('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');rt=t.TRUSTED_TYPES_POLICY,nt=rt.createHTML("")}else void 0===rt&&(rt=Q(H,a)),null!==rt&&"string"===typeof nt&&(nt=rt.createHTML(""));i&&i(t),se=t}},fe=T({},["mi","mo","mn","ms","mtext"]),pe=T({},["foreignobject","annotation-xml"]),de=T({},["title","style","font","a","script"]),he=T({},[...C,...N,...P]),me=T({},[...j,...L]),ye=function(t){let e=et(t);e&&e.tagName||(e={namespaceURI:Zt,tagName:"template"});const r=d(t.tagName),n=d(e.tagName);return!!ee[t.namespaceURI]&&(t.namespaceURI===Kt?e.namespaceURI===Qt?"svg"===r:e.namespaceURI===Xt?"svg"===r&&("annotation-xml"===n||fe[n]):Boolean(he[r]):t.namespaceURI===Xt?e.namespaceURI===Qt?"math"===r:e.namespaceURI===Kt?"math"===r&&pe[n]:Boolean(me[r]):t.namespaceURI===Qt?!(e.namespaceURI===Kt&&!pe[n])&&(!(e.namespaceURI===Xt&&!fe[n])&&(!me[r]&&(de[r]||!he[r]))):!("application/xhtml+xml"!==ne||!ee[t.namespaceURI]))},ge=function(t){p(r.removed,{element:t});try{et(t).removeChild(t)}catch(e){G(t)}},ve=function(t,e){try{p(r.removed,{attribute:e.getAttributeNode(t),from:e})}catch(n){p(r.removed,{attribute:null,from:e})}if(e.removeAttribute(t),"is"===t&&!Et[t])if(It||kt)try{ge(e)}catch(n){}else try{e.setAttribute(t,"")}catch(n){}},be=function(t){let e=null,r=null;if(Dt)t=""+t;else{const e=m(t,/^[\r\n\t ]+/);r=e&&e[0]}"application/xhtml+xml"===ne&&Zt===Qt&&(t=''+t+"");const o=rt?rt.createHTML(t):t;if(Zt===Qt)try{e=(new $).parseFromString(o,ne)}catch(a){}if(!e||!e.documentElement){e=ot.createDocument(Zt,"template",null);try{e.documentElement.innerHTML=te?nt:o}catch(a){}}const i=e.body||e.documentElement;return t&&r&&i.insertBefore(n.createTextNode(r),i.childNodes[0]||null),Zt===Qt?st.call(e,jt?"html":"body")[0]:jt?e.documentElement:i},we=function(t){return it.call(t.ownerDocument||t,t,A.SHOW_ELEMENT|A.SHOW_COMMENT|A.SHOW_TEXT|A.SHOW_PROCESSING_INSTRUCTION|A.SHOW_CDATA_SECTION,null)},Ee=function(t){return t instanceof M&&("string"!==typeof t.nodeName||"string"!==typeof t.textContent||"function"!==typeof t.removeChild||!(t.attributes instanceof F)||"function"!==typeof t.removeAttribute||"function"!==typeof t.setAttribute||"string"!==typeof t.namespaceURI||"function"!==typeof t.insertBefore||"function"!==typeof t.hasChildNodes)},Se=function(t){return"function"===typeof S&&t instanceof S},Oe=function(t,e,n){ut[t]&&l(ut[t],(t=>{t.call(r,e,n,se)}))},Te=function(t){let e=null;if(Oe("beforeSanitizeElements",t,null),Ee(t))return ge(t),!0;const n=ae(t.nodeName);if(Oe("uponSanitizeElement",t,{tagName:n,allowedTags:bt}),t.hasChildNodes()&&!Se(t.firstElementChild)&&w(/<[/\w]/g,t.innerHTML)&&w(/<[/\w]/g,t.textContent))return ge(t),!0;if(t.nodeType===X.progressingInstruction)return ge(t),!0;if(Pt&&t.nodeType===X.comment&&w(/<[/\w]/g,t.data))return ge(t),!0;if(!bt[n]||Tt[n]){if(!Tt[n]&&xe(n)){if(Ot.tagNameCheck instanceof RegExp&&w(Ot.tagNameCheck,n))return!1;if(Ot.tagNameCheck instanceof Function&&Ot.tagNameCheck(n))return!1}if($t&&!zt[n]){const e=et(t)||t.parentNode,r=tt(t)||t.childNodes;if(r&&e){const n=r.length;for(let o=n-1;o>=0;--o){const n=q(r[o],!0);n.__removalCount=(t.__removalCount||0)+1,e.insertBefore(n,J(t))}}}return ge(t),!0}return t instanceof O&&!ye(t)?(ge(t),!0):"noscript"!==n&&"noembed"!==n&&"noframes"!==n||!w(/<\/no(script|embed|frames)/i,t.innerHTML)?(Nt&&t.nodeType===X.text&&(e=t.textContent,l([lt,ft,pt],(t=>{e=y(e,t," ")})),t.textContent!==e&&(p(r.removed,{element:t.cloneNode()}),t.textContent=e)),Oe("afterSanitizeElements",t,null),!1):(ge(t),!0)},Ae=function(t,e,r){if(Ut&&("id"===e||"name"===e)&&(r in n||r in ce))return!1;if(Rt&&!At[e]&&w(dt,e));else if(xt&&w(ht,e));else if(!Et[e]||At[e]){if(!(xe(t)&&(Ot.tagNameCheck instanceof RegExp&&w(Ot.tagNameCheck,t)||Ot.tagNameCheck instanceof Function&&Ot.tagNameCheck(t))&&(Ot.attributeNameCheck instanceof RegExp&&w(Ot.attributeNameCheck,e)||Ot.attributeNameCheck instanceof Function&&Ot.attributeNameCheck(e))||"is"===e&&Ot.allowCustomizedBuiltInElements&&(Ot.tagNameCheck instanceof RegExp&&w(Ot.tagNameCheck,r)||Ot.tagNameCheck instanceof Function&&Ot.tagNameCheck(r))))return!1}else if(Jt[e]);else if(w(vt,y(r,yt,"")));else if("src"!==e&&"xlink:href"!==e&&"href"!==e||"script"===t||0!==g(r,"data:")||!Gt[t]){if(_t&&!w(mt,y(r,yt,"")));else if(r)return!1}else;return!0},xe=function(t){return"annotation-xml"!==t&&m(t,gt)},Re=function(t){Oe("beforeSanitizeAttributes",t,null);const{attributes:e}=t;if(!e)return;const n={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Et};let o=e.length;while(o--){const a=e[o],{name:s,namespaceURI:c,value:u}=a,p=ae(s);let d="value"===s?u:v(u);if(n.attrName=p,n.attrValue=d,n.keepAttr=!0,n.forceKeepAttr=void 0,Oe("uponSanitizeAttribute",t,n),d=n.attrValue,Pt&&w(/((--!?|])>)|<\/(style|title)/i,d)){ve(s,t);continue}if(n.forceKeepAttr)continue;if(ve(s,t),!n.keepAttr)continue;if(!Ct&&w(/\/>/i,d)){ve(s,t);continue}Nt&&l([lt,ft,pt],(t=>{d=y(d,t," ")}));const h=ae(t.nodeName);if(Ae(h,p,d)){if(!Ft||"id"!==p&&"name"!==p||(ve(s,t),d=Mt+d),rt&&"object"===typeof H&&"function"===typeof H.getAttributeType)if(c);else switch(H.getAttributeType(h,p)){case"TrustedHTML":d=rt.createHTML(d);break;case"TrustedScriptURL":d=rt.createScriptURL(d);break}try{c?t.setAttributeNS(c,s,d):t.setAttribute(s,d),Ee(t)?ge(t):f(r.removed)}catch(i){}}}Oe("afterSanitizeAttributes",t,null)},_e=function t(e){let r=null;const n=we(e);Oe("beforeSanitizeShadowDOM",e,null);while(r=n.nextNode())Oe("uponSanitizeShadowNode",r,null),Te(r)||(r.content instanceof c&&t(r.content),Re(r));Oe("afterSanitizeShadowDOM",e,null)};return r.sanitize=function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=null,i=null,a=null,s=null;if(te=!t,te&&(t="\x3c!--\x3e"),"string"!==typeof t&&!Se(t)){if("function"!==typeof t.toString)throw E("toString is not a function");if(t=t.toString(),"string"!==typeof t)throw E("dirty is not a string, aborting")}if(!r.isSupported)return t;if(Lt||le(e),r.removed=[],"string"===typeof t&&(Ht=!1),Ht){if(t.nodeName){const e=ae(t.nodeName);if(!bt[e]||Tt[e])throw E("root node is forbidden and cannot be sanitized in-place")}}else if(t instanceof S)n=be("\x3c!----\x3e"),i=n.ownerDocument.importNode(t,!0),i.nodeType===X.element&&"BODY"===i.nodeName||"HTML"===i.nodeName?n=i:n.appendChild(i);else{if(!It&&!Nt&&!jt&&-1===t.indexOf("<"))return rt&&Bt?rt.createHTML(t):t;if(n=be(t),!n)return It?null:Bt?nt:""}n&&Dt&&ge(n.firstChild);const u=we(Ht?t:n);while(a=u.nextNode())Te(a)||(a.content instanceof c&&_e(a.content),Re(a));if(Ht)return t;if(It){if(kt){s=at.call(n.ownerDocument);while(n.firstChild)s.appendChild(n.firstChild)}else s=n;return(Et.shadowroot||Et.shadowrootmode)&&(s=ct.call(o,s,!0)),s}let f=jt?n.outerHTML:n.innerHTML;return jt&&bt["!doctype"]&&n.ownerDocument&&n.ownerDocument.doctype&&n.ownerDocument.doctype.name&&w(V,n.ownerDocument.doctype.name)&&(f="\n"+f),Nt&&l([lt,ft,pt],(t=>{f=y(f,t," ")})),rt&&Bt?rt.createHTML(f):f},r.setConfig=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};le(t),Lt=!0},r.clearConfig=function(){se=null,Lt=!1},r.isValidAttribute=function(t,e,r){se||le({});const n=ae(t),o=ae(e);return Ae(n,o,r)},r.addHook=function(t,e){"function"===typeof e&&(ut[t]=ut[t]||[],p(ut[t],e))},r.removeHook=function(t){if(ut[t])return f(ut[t])},r.removeHooks=function(t){ut[t]&&(ut[t]=[])},r.removeAllHooks=function(){ut={}},r}var tt=Z();return tt}))},17648:t=>{"use strict";var e="Function.prototype.bind called on incompatible ",r=Object.prototype.toString,n=Math.max,o="[object Function]",i=function(t,e){for(var r=[],n=0;n{"use strict";var n=r(17648);t.exports=Function.prototype.bind||n},40210:(t,e,r)=>{"use strict";var n,o=SyntaxError,i=Function,a=TypeError,s=function(t){try{return i('"use strict"; return ('+t+").constructor;")()}catch(e){}},c=Object.getOwnPropertyDescriptor;if(c)try{c({},"")}catch(P){c=null}var u=function(){throw new a},l=c?function(){try{return u}catch(t){try{return c(arguments,"callee").get}catch(e){return u}}}():u,f=r(41405)(),p=r(28185)(),d=Object.getPrototypeOf||(p?function(t){return t.__proto__}:null),h={},m="undefined"!==typeof Uint8Array&&d?d(Uint8Array):n,y={"%AggregateError%":"undefined"===typeof AggregateError?n:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"===typeof ArrayBuffer?n:ArrayBuffer,"%ArrayIteratorPrototype%":f&&d?d([][Symbol.iterator]()):n,"%AsyncFromSyncIteratorPrototype%":n,"%AsyncFunction%":h,"%AsyncGenerator%":h,"%AsyncGeneratorFunction%":h,"%AsyncIteratorPrototype%":h,"%Atomics%":"undefined"===typeof Atomics?n:Atomics,"%BigInt%":"undefined"===typeof BigInt?n:BigInt,"%BigInt64Array%":"undefined"===typeof BigInt64Array?n:BigInt64Array,"%BigUint64Array%":"undefined"===typeof BigUint64Array?n:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"===typeof DataView?n:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":"undefined"===typeof Float32Array?n:Float32Array,"%Float64Array%":"undefined"===typeof Float64Array?n:Float64Array,"%FinalizationRegistry%":"undefined"===typeof FinalizationRegistry?n:FinalizationRegistry,"%Function%":i,"%GeneratorFunction%":h,"%Int8Array%":"undefined"===typeof Int8Array?n:Int8Array,"%Int16Array%":"undefined"===typeof Int16Array?n:Int16Array,"%Int32Array%":"undefined"===typeof Int32Array?n:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":f&&d?d(d([][Symbol.iterator]())):n,"%JSON%":"object"===typeof JSON?JSON:n,"%Map%":"undefined"===typeof Map?n:Map,"%MapIteratorPrototype%":"undefined"!==typeof Map&&f&&d?d((new Map)[Symbol.iterator]()):n,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"===typeof Promise?n:Promise,"%Proxy%":"undefined"===typeof Proxy?n:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":"undefined"===typeof Reflect?n:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"===typeof Set?n:Set,"%SetIteratorPrototype%":"undefined"!==typeof Set&&f&&d?d((new Set)[Symbol.iterator]()):n,"%SharedArrayBuffer%":"undefined"===typeof SharedArrayBuffer?n:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":f&&d?d(""[Symbol.iterator]()):n,"%Symbol%":f?Symbol:n,"%SyntaxError%":o,"%ThrowTypeError%":l,"%TypedArray%":m,"%TypeError%":a,"%Uint8Array%":"undefined"===typeof Uint8Array?n:Uint8Array,"%Uint8ClampedArray%":"undefined"===typeof Uint8ClampedArray?n:Uint8ClampedArray,"%Uint16Array%":"undefined"===typeof Uint16Array?n:Uint16Array,"%Uint32Array%":"undefined"===typeof Uint32Array?n:Uint32Array,"%URIError%":URIError,"%WeakMap%":"undefined"===typeof WeakMap?n:WeakMap,"%WeakRef%":"undefined"===typeof WeakRef?n:WeakRef,"%WeakSet%":"undefined"===typeof WeakSet?n:WeakSet};if(d)try{null.error}catch(P){var g=d(d(P));y["%Error.prototype%"]=g}var v=function t(e){var r;if("%AsyncFunction%"===e)r=s("async function () {}");else if("%GeneratorFunction%"===e)r=s("function* () {}");else if("%AsyncGeneratorFunction%"===e)r=s("async function* () {}");else if("%AsyncGenerator%"===e){var n=t("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if("%AsyncIteratorPrototype%"===e){var o=t("%AsyncGenerator%");o&&d&&(r=d(o.prototype))}return y[e]=r,r},b={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},w=r(58612),E=r(48824),S=w.call(Function.call,Array.prototype.concat),O=w.call(Function.apply,Array.prototype.splice),T=w.call(Function.call,String.prototype.replace),A=w.call(Function.call,String.prototype.slice),x=w.call(Function.call,RegExp.prototype.exec),R=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,_=/\\(\\)?/g,C=function(t){var e=A(t,0,1),r=A(t,-1);if("%"===e&&"%"!==r)throw new o("invalid intrinsic syntax, expected closing `%`");if("%"===r&&"%"!==e)throw new o("invalid intrinsic syntax, expected opening `%`");var n=[];return T(t,R,(function(t,e,r,o){n[n.length]=r?T(o,_,"$1"):e||t})),n},N=function(t,e){var r,n=t;if(E(b,n)&&(r=b[n],n="%"+r[0]+"%"),E(y,n)){var i=y[n];if(i===h&&(i=v(n)),"undefined"===typeof i&&!e)throw new a("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:r,name:n,value:i}}throw new o("intrinsic "+t+" does not exist!")};t.exports=function(t,e){if("string"!==typeof t||0===t.length)throw new a("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!==typeof e)throw new a('"allowMissing" argument must be a boolean');if(null===x(/^%?[^%]*%?$/,t))throw new o("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=C(t),n=r.length>0?r[0]:"",i=N("%"+n+"%",e),s=i.name,u=i.value,l=!1,f=i.alias;f&&(n=f[0],O(r,S([0,1],f)));for(var p=1,d=!0;p=r.length){var v=c(u,h);d=!!v,u=d&&"get"in v&&!("originalValue"in v.get)?v.get:u[h]}else d=E(u,h),u=u[h];d&&!l&&(y[s]=u)}}return u}},27296:(t,e,r)=>{"use strict";var n=r(40210),o=n("%Object.getOwnPropertyDescriptor%",!0);if(o)try{o([],"length")}catch(i){o=null}t.exports=o},31044:(t,e,r)=>{"use strict";var n=r(40210),o=n("%Object.defineProperty%",!0),i=function(){if(o)try{return o({},"a",{value:1}),!0}catch(t){return!1}return!1};i.hasArrayLengthDefineBug=function(){if(!i())return null;try{return 1!==o([],"length",{value:1}).length}catch(t){return!0}},t.exports=i},28185:t=>{"use strict";var e={foo:{}},r=Object;t.exports=function(){return{__proto__:e}.foo===e.foo&&!({__proto__:null}instanceof r)}},41405:(t,e,r)=>{"use strict";var n="undefined"!==typeof Symbol&&Symbol,o=r(55419);t.exports=function(){return"function"===typeof n&&("function"===typeof Symbol&&("symbol"===typeof n("foo")&&("symbol"===typeof Symbol("bar")&&o())))}},55419:t=>{"use strict";t.exports=function(){if("function"!==typeof Symbol||"function"!==typeof Object.getOwnPropertySymbols)return!1;if("symbol"===typeof Symbol.iterator)return!0;var t={},e=Symbol("test"),r=Object(e);if("string"===typeof e)return!1;if("[object Symbol]"!==Object.prototype.toString.call(e))return!1;if("[object Symbol]"!==Object.prototype.toString.call(r))return!1;var n=42;for(e in t[e]=n,t)return!1;if("function"===typeof Object.keys&&0!==Object.keys(t).length)return!1;if("function"===typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(t).length)return!1;var o=Object.getOwnPropertySymbols(t);if(1!==o.length||o[0]!==e)return!1;if(!Object.prototype.propertyIsEnumerable.call(t,e))return!1;if("function"===typeof Object.getOwnPropertyDescriptor){var i=Object.getOwnPropertyDescriptor(t,e);if(i.value!==n||!0!==i.enumerable)return!1}return!0}},48824:(t,e,r)=>{"use strict";var n=Function.prototype.call,o=Object.prototype.hasOwnProperty,i=r(58612);t.exports=i.call(n,o)},80645:(t,e)=>{ +(function(e,r){t.exports=r()})(0,(function(){"use strict";const{entries:t,setPrototypeOf:e,isFrozen:r,getPrototypeOf:n,getOwnPropertyDescriptor:o}=Object;let{freeze:i,seal:a,create:s}=Object,{apply:c,construct:u}="undefined"!==typeof Reflect&&Reflect;i||(i=function(t){return t}),a||(a=function(t){return t}),c||(c=function(t,e,r){return t.apply(e,r)}),u||(u=function(t,e){return new t(...e)});const l=S(Array.prototype.forEach),f=S(Array.prototype.pop),p=S(Array.prototype.push),d=S(String.prototype.toLowerCase),h=S(String.prototype.toString),m=S(String.prototype.match),y=S(String.prototype.replace),g=S(String.prototype.indexOf),v=S(String.prototype.trim),b=S(Object.prototype.hasOwnProperty),w=S(RegExp.prototype.test),E=O(TypeError);function S(t){return function(e){for(var r=arguments.length,n=new Array(r>1?r-1:0),o=1;o2&&void 0!==arguments[2]?arguments[2]:d;e&&e(t,null);let i=n.length;while(i--){let e=n[i];if("string"===typeof e){const t=o(e);t!==e&&(r(n)||(n[i]=t),e=t)}t[e]=!0}return t}function A(t){for(let e=0;e/gm),$=a(/\${[\w\W]*}/gm),H=a(/^data-[\-\w.\u00B7-\uFFFF]/),W=a(/^aria-[\-\w]+$/),z=a(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),q=a(/^(?:\w+script|data):/i),G=a(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),V=a(/^html$/i),J=a(/^[a-z][.\w]*(-[.\w]+)+$/i);var Y=Object.freeze({__proto__:null,MUSTACHE_EXPR:F,ERB_EXPR:M,TMPLIT_EXPR:$,DATA_ATTR:H,ARIA_ATTR:W,IS_ALLOWED_URI:z,IS_SCRIPT_OR_DATA:q,ATTR_WHITESPACE:G,DOCTYPE_NAME:V,CUSTOM_ELEMENT:J});const X={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,progressingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},K=function(){return"undefined"===typeof window?null:window},Q=function(t,e){if("object"!==typeof t||"function"!==typeof t.createPolicy)return null;let r=null;const n="data-tt-policy-suffix";e&&e.hasAttribute(n)&&(r=e.getAttribute(n));const o="dompurify"+(r?"#"+r:"");try{return t.createPolicy(o,{createHTML(t){return t},createScriptURL(t){return t}})}catch(i){return console.warn("TrustedTypes policy "+o+" could not be created."),null}};function Z(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:K();const r=t=>Z(t);if(r.version="3.1.6",r.removed=[],!e||!e.document||e.document.nodeType!==X.document)return r.isSupported=!1,r;let{document:n}=e;const o=n,a=o.currentScript,{DocumentFragment:c,HTMLTemplateElement:u,Node:S,Element:O,NodeFilter:A,NamedNodeMap:F=e.NamedNodeMap||e.MozNamedAttrMap,HTMLFormElement:M,DOMParser:$,trustedTypes:H}=e,W=O.prototype,q=R(W,"cloneNode"),G=R(W,"remove"),J=R(W,"nextSibling"),tt=R(W,"childNodes"),et=R(W,"parentNode");if("function"===typeof u){const t=n.createElement("template");t.content&&t.content.ownerDocument&&(n=t.content.ownerDocument)}let rt,nt="";const{implementation:ot,createNodeIterator:it,createDocumentFragment:at,getElementsByTagName:st}=n,{importNode:ct}=o;let ut={};r.isSupported="function"===typeof t&&"function"===typeof et&&ot&&void 0!==ot.createHTMLDocument;const{MUSTACHE_EXPR:lt,ERB_EXPR:ft,TMPLIT_EXPR:pt,DATA_ATTR:dt,ARIA_ATTR:ht,IS_SCRIPT_OR_DATA:mt,ATTR_WHITESPACE:yt,CUSTOM_ELEMENT:gt}=Y;let{IS_ALLOWED_URI:vt}=Y,bt=null;const wt=T({},[..._,...C,...N,...j,...D]);let Et=null;const St=T({},[...I,...k,...B,...U]);let Ot=Object.seal(s(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Tt=null,At=null,xt=!0,Rt=!0,_t=!1,Ct=!0,Nt=!1,Pt=!0,jt=!1,Lt=!1,Dt=!1,It=!1,kt=!1,Bt=!1,Ut=!0,Ft=!1;const Mt="user-content-";let $t=!0,Ht=!1,Wt={},zt=null;const qt=T({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let Gt=null;const Vt=T({},["audio","video","img","source","image","track"]);let Jt=null;const Yt=T({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Xt="http://www.w3.org/1998/Math/MathML",Kt="http://www.w3.org/2000/svg",Qt="http://www.w3.org/1999/xhtml";let Zt=Qt,te=!1,ee=null;const re=T({},[Xt,Kt,Qt],h);let ne=null;const oe=["application/xhtml+xml","text/html"],ie="text/html";let ae=null,se=null;const ce=n.createElement("form"),ue=function(t){return t instanceof RegExp||t instanceof Function},le=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!se||se!==t){if(t&&"object"===typeof t||(t={}),t=x(t),ne=-1===oe.indexOf(t.PARSER_MEDIA_TYPE)?ie:t.PARSER_MEDIA_TYPE,ae="application/xhtml+xml"===ne?h:d,bt=b(t,"ALLOWED_TAGS")?T({},t.ALLOWED_TAGS,ae):wt,Et=b(t,"ALLOWED_ATTR")?T({},t.ALLOWED_ATTR,ae):St,ee=b(t,"ALLOWED_NAMESPACES")?T({},t.ALLOWED_NAMESPACES,h):re,Jt=b(t,"ADD_URI_SAFE_ATTR")?T(x(Yt),t.ADD_URI_SAFE_ATTR,ae):Yt,Gt=b(t,"ADD_DATA_URI_TAGS")?T(x(Vt),t.ADD_DATA_URI_TAGS,ae):Vt,zt=b(t,"FORBID_CONTENTS")?T({},t.FORBID_CONTENTS,ae):qt,Tt=b(t,"FORBID_TAGS")?T({},t.FORBID_TAGS,ae):{},At=b(t,"FORBID_ATTR")?T({},t.FORBID_ATTR,ae):{},Wt=!!b(t,"USE_PROFILES")&&t.USE_PROFILES,xt=!1!==t.ALLOW_ARIA_ATTR,Rt=!1!==t.ALLOW_DATA_ATTR,_t=t.ALLOW_UNKNOWN_PROTOCOLS||!1,Ct=!1!==t.ALLOW_SELF_CLOSE_IN_ATTR,Nt=t.SAFE_FOR_TEMPLATES||!1,Pt=!1!==t.SAFE_FOR_XML,jt=t.WHOLE_DOCUMENT||!1,It=t.RETURN_DOM||!1,kt=t.RETURN_DOM_FRAGMENT||!1,Bt=t.RETURN_TRUSTED_TYPE||!1,Dt=t.FORCE_BODY||!1,Ut=!1!==t.SANITIZE_DOM,Ft=t.SANITIZE_NAMED_PROPS||!1,$t=!1!==t.KEEP_CONTENT,Ht=t.IN_PLACE||!1,vt=t.ALLOWED_URI_REGEXP||z,Zt=t.NAMESPACE||Qt,Ot=t.CUSTOM_ELEMENT_HANDLING||{},t.CUSTOM_ELEMENT_HANDLING&&ue(t.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(Ot.tagNameCheck=t.CUSTOM_ELEMENT_HANDLING.tagNameCheck),t.CUSTOM_ELEMENT_HANDLING&&ue(t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(Ot.attributeNameCheck=t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),t.CUSTOM_ELEMENT_HANDLING&&"boolean"===typeof t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(Ot.allowCustomizedBuiltInElements=t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Nt&&(Rt=!1),kt&&(It=!0),Wt&&(bt=T({},D),Et=[],!0===Wt.html&&(T(bt,_),T(Et,I)),!0===Wt.svg&&(T(bt,C),T(Et,k),T(Et,U)),!0===Wt.svgFilters&&(T(bt,N),T(Et,k),T(Et,U)),!0===Wt.mathMl&&(T(bt,j),T(Et,B),T(Et,U))),t.ADD_TAGS&&(bt===wt&&(bt=x(bt)),T(bt,t.ADD_TAGS,ae)),t.ADD_ATTR&&(Et===St&&(Et=x(Et)),T(Et,t.ADD_ATTR,ae)),t.ADD_URI_SAFE_ATTR&&T(Jt,t.ADD_URI_SAFE_ATTR,ae),t.FORBID_CONTENTS&&(zt===qt&&(zt=x(zt)),T(zt,t.FORBID_CONTENTS,ae)),$t&&(bt["#text"]=!0),jt&&T(bt,["html","head","body"]),bt.table&&(T(bt,["tbody"]),delete Tt.tbody),t.TRUSTED_TYPES_POLICY){if("function"!==typeof t.TRUSTED_TYPES_POLICY.createHTML)throw E('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!==typeof t.TRUSTED_TYPES_POLICY.createScriptURL)throw E('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');rt=t.TRUSTED_TYPES_POLICY,nt=rt.createHTML("")}else void 0===rt&&(rt=Q(H,a)),null!==rt&&"string"===typeof nt&&(nt=rt.createHTML(""));i&&i(t),se=t}},fe=T({},["mi","mo","mn","ms","mtext"]),pe=T({},["foreignobject","annotation-xml"]),de=T({},["title","style","font","a","script"]),he=T({},[...C,...N,...P]),me=T({},[...j,...L]),ye=function(t){let e=et(t);e&&e.tagName||(e={namespaceURI:Zt,tagName:"template"});const r=d(t.tagName),n=d(e.tagName);return!!ee[t.namespaceURI]&&(t.namespaceURI===Kt?e.namespaceURI===Qt?"svg"===r:e.namespaceURI===Xt?"svg"===r&&("annotation-xml"===n||fe[n]):Boolean(he[r]):t.namespaceURI===Xt?e.namespaceURI===Qt?"math"===r:e.namespaceURI===Kt?"math"===r&&pe[n]:Boolean(me[r]):t.namespaceURI===Qt?!(e.namespaceURI===Kt&&!pe[n])&&(!(e.namespaceURI===Xt&&!fe[n])&&(!me[r]&&(de[r]||!he[r]))):!("application/xhtml+xml"!==ne||!ee[t.namespaceURI]))},ge=function(t){p(r.removed,{element:t});try{et(t).removeChild(t)}catch(e){G(t)}},ve=function(t,e){try{p(r.removed,{attribute:e.getAttributeNode(t),from:e})}catch(n){p(r.removed,{attribute:null,from:e})}if(e.removeAttribute(t),"is"===t&&!Et[t])if(It||kt)try{ge(e)}catch(n){}else try{e.setAttribute(t,"")}catch(n){}},be=function(t){let e=null,r=null;if(Dt)t=""+t;else{const e=m(t,/^[\r\n\t ]+/);r=e&&e[0]}"application/xhtml+xml"===ne&&Zt===Qt&&(t=''+t+"");const o=rt?rt.createHTML(t):t;if(Zt===Qt)try{e=(new $).parseFromString(o,ne)}catch(a){}if(!e||!e.documentElement){e=ot.createDocument(Zt,"template",null);try{e.documentElement.innerHTML=te?nt:o}catch(a){}}const i=e.body||e.documentElement;return t&&r&&i.insertBefore(n.createTextNode(r),i.childNodes[0]||null),Zt===Qt?st.call(e,jt?"html":"body")[0]:jt?e.documentElement:i},we=function(t){return it.call(t.ownerDocument||t,t,A.SHOW_ELEMENT|A.SHOW_COMMENT|A.SHOW_TEXT|A.SHOW_PROCESSING_INSTRUCTION|A.SHOW_CDATA_SECTION,null)},Ee=function(t){return t instanceof M&&("string"!==typeof t.nodeName||"string"!==typeof t.textContent||"function"!==typeof t.removeChild||!(t.attributes instanceof F)||"function"!==typeof t.removeAttribute||"function"!==typeof t.setAttribute||"string"!==typeof t.namespaceURI||"function"!==typeof t.insertBefore||"function"!==typeof t.hasChildNodes)},Se=function(t){return"function"===typeof S&&t instanceof S},Oe=function(t,e,n){ut[t]&&l(ut[t],(t=>{t.call(r,e,n,se)}))},Te=function(t){let e=null;if(Oe("beforeSanitizeElements",t,null),Ee(t))return ge(t),!0;const n=ae(t.nodeName);if(Oe("uponSanitizeElement",t,{tagName:n,allowedTags:bt}),t.hasChildNodes()&&!Se(t.firstElementChild)&&w(/<[/\w]/g,t.innerHTML)&&w(/<[/\w]/g,t.textContent))return ge(t),!0;if(t.nodeType===X.progressingInstruction)return ge(t),!0;if(Pt&&t.nodeType===X.comment&&w(/<[/\w]/g,t.data))return ge(t),!0;if(!bt[n]||Tt[n]){if(!Tt[n]&&xe(n)){if(Ot.tagNameCheck instanceof RegExp&&w(Ot.tagNameCheck,n))return!1;if(Ot.tagNameCheck instanceof Function&&Ot.tagNameCheck(n))return!1}if($t&&!zt[n]){const e=et(t)||t.parentNode,r=tt(t)||t.childNodes;if(r&&e){const n=r.length;for(let o=n-1;o>=0;--o){const n=q(r[o],!0);n.__removalCount=(t.__removalCount||0)+1,e.insertBefore(n,J(t))}}}return ge(t),!0}return t instanceof O&&!ye(t)?(ge(t),!0):"noscript"!==n&&"noembed"!==n&&"noframes"!==n||!w(/<\/no(script|embed|frames)/i,t.innerHTML)?(Nt&&t.nodeType===X.text&&(e=t.textContent,l([lt,ft,pt],(t=>{e=y(e,t," ")})),t.textContent!==e&&(p(r.removed,{element:t.cloneNode()}),t.textContent=e)),Oe("afterSanitizeElements",t,null),!1):(ge(t),!0)},Ae=function(t,e,r){if(Ut&&("id"===e||"name"===e)&&(r in n||r in ce))return!1;if(Rt&&!At[e]&&w(dt,e));else if(xt&&w(ht,e));else if(!Et[e]||At[e]){if(!(xe(t)&&(Ot.tagNameCheck instanceof RegExp&&w(Ot.tagNameCheck,t)||Ot.tagNameCheck instanceof Function&&Ot.tagNameCheck(t))&&(Ot.attributeNameCheck instanceof RegExp&&w(Ot.attributeNameCheck,e)||Ot.attributeNameCheck instanceof Function&&Ot.attributeNameCheck(e))||"is"===e&&Ot.allowCustomizedBuiltInElements&&(Ot.tagNameCheck instanceof RegExp&&w(Ot.tagNameCheck,r)||Ot.tagNameCheck instanceof Function&&Ot.tagNameCheck(r))))return!1}else if(Jt[e]);else if(w(vt,y(r,yt,"")));else if("src"!==e&&"xlink:href"!==e&&"href"!==e||"script"===t||0!==g(r,"data:")||!Gt[t]){if(_t&&!w(mt,y(r,yt,"")));else if(r)return!1}else;return!0},xe=function(t){return"annotation-xml"!==t&&m(t,gt)},Re=function(t){Oe("beforeSanitizeAttributes",t,null);const{attributes:e}=t;if(!e)return;const n={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Et};let o=e.length;while(o--){const a=e[o],{name:s,namespaceURI:c,value:u}=a,p=ae(s);let d="value"===s?u:v(u);if(n.attrName=p,n.attrValue=d,n.keepAttr=!0,n.forceKeepAttr=void 0,Oe("uponSanitizeAttribute",t,n),d=n.attrValue,Pt&&w(/((--!?|])>)|<\/(style|title)/i,d)){ve(s,t);continue}if(n.forceKeepAttr)continue;if(ve(s,t),!n.keepAttr)continue;if(!Ct&&w(/\/>/i,d)){ve(s,t);continue}Nt&&l([lt,ft,pt],(t=>{d=y(d,t," ")}));const h=ae(t.nodeName);if(Ae(h,p,d)){if(!Ft||"id"!==p&&"name"!==p||(ve(s,t),d=Mt+d),rt&&"object"===typeof H&&"function"===typeof H.getAttributeType)if(c);else switch(H.getAttributeType(h,p)){case"TrustedHTML":d=rt.createHTML(d);break;case"TrustedScriptURL":d=rt.createScriptURL(d);break}try{c?t.setAttributeNS(c,s,d):t.setAttribute(s,d),Ee(t)?ge(t):f(r.removed)}catch(i){}}}Oe("afterSanitizeAttributes",t,null)},_e=function t(e){let r=null;const n=we(e);Oe("beforeSanitizeShadowDOM",e,null);while(r=n.nextNode())Oe("uponSanitizeShadowNode",r,null),Te(r)||(r.content instanceof c&&t(r.content),Re(r));Oe("afterSanitizeShadowDOM",e,null)};return r.sanitize=function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=null,i=null,a=null,s=null;if(te=!t,te&&(t="\x3c!--\x3e"),"string"!==typeof t&&!Se(t)){if("function"!==typeof t.toString)throw E("toString is not a function");if(t=t.toString(),"string"!==typeof t)throw E("dirty is not a string, aborting")}if(!r.isSupported)return t;if(Lt||le(e),r.removed=[],"string"===typeof t&&(Ht=!1),Ht){if(t.nodeName){const e=ae(t.nodeName);if(!bt[e]||Tt[e])throw E("root node is forbidden and cannot be sanitized in-place")}}else if(t instanceof S)n=be("\x3c!----\x3e"),i=n.ownerDocument.importNode(t,!0),i.nodeType===X.element&&"BODY"===i.nodeName||"HTML"===i.nodeName?n=i:n.appendChild(i);else{if(!It&&!Nt&&!jt&&-1===t.indexOf("<"))return rt&&Bt?rt.createHTML(t):t;if(n=be(t),!n)return It?null:Bt?nt:""}n&&Dt&&ge(n.firstChild);const u=we(Ht?t:n);while(a=u.nextNode())Te(a)||(a.content instanceof c&&_e(a.content),Re(a));if(Ht)return t;if(It){if(kt){s=at.call(n.ownerDocument);while(n.firstChild)s.appendChild(n.firstChild)}else s=n;return(Et.shadowroot||Et.shadowrootmode)&&(s=ct.call(o,s,!0)),s}let f=jt?n.outerHTML:n.innerHTML;return jt&&bt["!doctype"]&&n.ownerDocument&&n.ownerDocument.doctype&&n.ownerDocument.doctype.name&&w(V,n.ownerDocument.doctype.name)&&(f="\n"+f),Nt&&l([lt,ft,pt],(t=>{f=y(f,t," ")})),rt&&Bt?rt.createHTML(f):f},r.setConfig=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};le(t),Lt=!0},r.clearConfig=function(){se=null,Lt=!1},r.isValidAttribute=function(t,e,r){se||le({});const n=ae(t),o=ae(e);return Ae(n,o,r)},r.addHook=function(t,e){"function"===typeof e&&(ut[t]=ut[t]||[],p(ut[t],e))},r.removeHook=function(t){if(ut[t])return f(ut[t])},r.removeHooks=function(t){ut[t]&&(ut[t]=[])},r.removeAllHooks=function(){ut={}},r}var tt=Z();return tt}))},24429:(t,e,r)=>{"use strict";var n=r(40210),o=n("%Object.defineProperty%",!0)||!1;if(o)try{o({},"a",{value:1})}catch(i){o=!1}t.exports=o},53981:t=>{"use strict";t.exports=EvalError},81648:t=>{"use strict";t.exports=Error},24726:t=>{"use strict";t.exports=RangeError},26712:t=>{"use strict";t.exports=ReferenceError},33464:t=>{"use strict";t.exports=SyntaxError},14453:t=>{"use strict";t.exports=TypeError},43915:t=>{"use strict";t.exports=URIError},17648:t=>{"use strict";var e="Function.prototype.bind called on incompatible ",r=Object.prototype.toString,n=Math.max,o="[object Function]",i=function(t,e){for(var r=[],n=0;n{"use strict";var n=r(17648);t.exports=Function.prototype.bind||n},40210:(t,e,r)=>{"use strict";var n,o=r(81648),i=r(53981),a=r(24726),s=r(26712),c=r(33464),u=r(14453),l=r(43915),f=Function,p=function(t){try{return f('"use strict"; return ('+t+").constructor;")()}catch(e){}},d=Object.getOwnPropertyDescriptor;if(d)try{d({},"")}catch(k){d=null}var h=function(){throw new u},m=d?function(){try{return h}catch(t){try{return d(arguments,"callee").get}catch(e){return h}}}():h,y=r(41405)(),g=r(28185)(),v=Object.getPrototypeOf||(g?function(t){return t.__proto__}:null),b={},w="undefined"!==typeof Uint8Array&&v?v(Uint8Array):n,E={__proto__:null,"%AggregateError%":"undefined"===typeof AggregateError?n:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"===typeof ArrayBuffer?n:ArrayBuffer,"%ArrayIteratorPrototype%":y&&v?v([][Symbol.iterator]()):n,"%AsyncFromSyncIteratorPrototype%":n,"%AsyncFunction%":b,"%AsyncGenerator%":b,"%AsyncGeneratorFunction%":b,"%AsyncIteratorPrototype%":b,"%Atomics%":"undefined"===typeof Atomics?n:Atomics,"%BigInt%":"undefined"===typeof BigInt?n:BigInt,"%BigInt64Array%":"undefined"===typeof BigInt64Array?n:BigInt64Array,"%BigUint64Array%":"undefined"===typeof BigUint64Array?n:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"===typeof DataView?n:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":o,"%eval%":eval,"%EvalError%":i,"%Float32Array%":"undefined"===typeof Float32Array?n:Float32Array,"%Float64Array%":"undefined"===typeof Float64Array?n:Float64Array,"%FinalizationRegistry%":"undefined"===typeof FinalizationRegistry?n:FinalizationRegistry,"%Function%":f,"%GeneratorFunction%":b,"%Int8Array%":"undefined"===typeof Int8Array?n:Int8Array,"%Int16Array%":"undefined"===typeof Int16Array?n:Int16Array,"%Int32Array%":"undefined"===typeof Int32Array?n:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":y&&v?v(v([][Symbol.iterator]())):n,"%JSON%":"object"===typeof JSON?JSON:n,"%Map%":"undefined"===typeof Map?n:Map,"%MapIteratorPrototype%":"undefined"!==typeof Map&&y&&v?v((new Map)[Symbol.iterator]()):n,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"===typeof Promise?n:Promise,"%Proxy%":"undefined"===typeof Proxy?n:Proxy,"%RangeError%":a,"%ReferenceError%":s,"%Reflect%":"undefined"===typeof Reflect?n:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"===typeof Set?n:Set,"%SetIteratorPrototype%":"undefined"!==typeof Set&&y&&v?v((new Set)[Symbol.iterator]()):n,"%SharedArrayBuffer%":"undefined"===typeof SharedArrayBuffer?n:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":y&&v?v(""[Symbol.iterator]()):n,"%Symbol%":y?Symbol:n,"%SyntaxError%":c,"%ThrowTypeError%":m,"%TypedArray%":w,"%TypeError%":u,"%Uint8Array%":"undefined"===typeof Uint8Array?n:Uint8Array,"%Uint8ClampedArray%":"undefined"===typeof Uint8ClampedArray?n:Uint8ClampedArray,"%Uint16Array%":"undefined"===typeof Uint16Array?n:Uint16Array,"%Uint32Array%":"undefined"===typeof Uint32Array?n:Uint32Array,"%URIError%":l,"%WeakMap%":"undefined"===typeof WeakMap?n:WeakMap,"%WeakRef%":"undefined"===typeof WeakRef?n:WeakRef,"%WeakSet%":"undefined"===typeof WeakSet?n:WeakSet};if(v)try{null.error}catch(k){var S=v(v(k));E["%Error.prototype%"]=S}var O=function t(e){var r;if("%AsyncFunction%"===e)r=p("async function () {}");else if("%GeneratorFunction%"===e)r=p("function* () {}");else if("%AsyncGeneratorFunction%"===e)r=p("async function* () {}");else if("%AsyncGenerator%"===e){var n=t("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if("%AsyncIteratorPrototype%"===e){var o=t("%AsyncGenerator%");o&&v&&(r=v(o.prototype))}return E[e]=r,r},T={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},A=r(58612),x=r(48824),R=A.call(Function.call,Array.prototype.concat),_=A.call(Function.apply,Array.prototype.splice),C=A.call(Function.call,String.prototype.replace),N=A.call(Function.call,String.prototype.slice),P=A.call(Function.call,RegExp.prototype.exec),j=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,L=/\\(\\)?/g,D=function(t){var e=N(t,0,1),r=N(t,-1);if("%"===e&&"%"!==r)throw new c("invalid intrinsic syntax, expected closing `%`");if("%"===r&&"%"!==e)throw new c("invalid intrinsic syntax, expected opening `%`");var n=[];return C(t,j,(function(t,e,r,o){n[n.length]=r?C(o,L,"$1"):e||t})),n},I=function(t,e){var r,n=t;if(x(T,n)&&(r=T[n],n="%"+r[0]+"%"),x(E,n)){var o=E[n];if(o===b&&(o=O(n)),"undefined"===typeof o&&!e)throw new u("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:r,name:n,value:o}}throw new c("intrinsic "+t+" does not exist!")};t.exports=function(t,e){if("string"!==typeof t||0===t.length)throw new u("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!==typeof e)throw new u('"allowMissing" argument must be a boolean');if(null===P(/^%?[^%]*%?$/,t))throw new c("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=D(t),n=r.length>0?r[0]:"",o=I("%"+n+"%",e),i=o.name,a=o.value,s=!1,l=o.alias;l&&(n=l[0],_(r,R([0,1],l)));for(var f=1,p=!0;f=r.length){var g=d(a,h);p=!!g,a=p&&"get"in g&&!("originalValue"in g.get)?g.get:a[h]}else p=x(a,h),a=a[h];p&&!s&&(E[i]=a)}}return a}},27296:(t,e,r)=>{"use strict";var n=r(40210),o=n("%Object.getOwnPropertyDescriptor%",!0);if(o)try{o([],"length")}catch(i){o=null}t.exports=o},31044:(t,e,r)=>{"use strict";var n=r(24429),o=function(){return!!n};o.hasArrayLengthDefineBug=function(){if(!n)return null;try{return 1!==n([],"length",{value:1}).length}catch(t){return!0}},t.exports=o},28185:t=>{"use strict";var e={__proto__:null,foo:{}},r=Object;t.exports=function(){return{__proto__:e}.foo===e.foo&&!(e instanceof r)}},41405:(t,e,r)=>{"use strict";var n="undefined"!==typeof Symbol&&Symbol,o=r(55419);t.exports=function(){return"function"===typeof n&&("function"===typeof Symbol&&("symbol"===typeof n("foo")&&("symbol"===typeof Symbol("bar")&&o())))}},55419:t=>{"use strict";t.exports=function(){if("function"!==typeof Symbol||"function"!==typeof Object.getOwnPropertySymbols)return!1;if("symbol"===typeof Symbol.iterator)return!0;var t={},e=Symbol("test"),r=Object(e);if("string"===typeof e)return!1;if("[object Symbol]"!==Object.prototype.toString.call(e))return!1;if("[object Symbol]"!==Object.prototype.toString.call(r))return!1;var n=42;for(e in t[e]=n,t)return!1;if("function"===typeof Object.keys&&0!==Object.keys(t).length)return!1;if("function"===typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(t).length)return!1;var o=Object.getOwnPropertySymbols(t);if(1!==o.length||o[0]!==e)return!1;if(!Object.prototype.propertyIsEnumerable.call(t,e))return!1;if("function"===typeof Object.getOwnPropertyDescriptor){var i=Object.getOwnPropertyDescriptor(t,e);if(i.value!==n||!0!==i.enumerable)return!1}return!0}},48824:(t,e,r)=>{"use strict";var n=Function.prototype.call,o=Object.prototype.hasOwnProperty,i=r(58612);t.exports=i.call(n,o)},80645:(t,e)=>{ /*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh */ -e.read=function(t,e,r,n,o){var i,a,s=8*o-n-1,c=(1<>1,l=-7,f=r?o-1:0,p=r?-1:1,d=t[e+f];for(f+=p,i=d&(1<<-l)-1,d>>=-l,l+=s;l>0;i=256*i+t[e+f],f+=p,l-=8);for(a=i&(1<<-l)-1,i>>=-l,l+=n;l>0;a=256*a+t[e+f],f+=p,l-=8);if(0===i)i=1-u;else{if(i===c)return a?NaN:1/0*(d?-1:1);a+=Math.pow(2,n),i-=u}return(d?-1:1)*a*Math.pow(2,i-n)},e.write=function(t,e,r,n,o,i){var a,s,c,u=8*i-o-1,l=(1<>1,p=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,d=n?0:i-1,h=n?1:-1,m=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(s=isNaN(e)?1:0,a=l):(a=Math.floor(Math.log(e)/Math.LN2),e*(c=Math.pow(2,-a))<1&&(a--,c*=2),e+=a+f>=1?p/c:p*Math.pow(2,1-f),e*c>=2&&(a++,c/=2),a+f>=l?(s=0,a=l):a+f>=1?(s=(e*c-1)*Math.pow(2,o),a+=f):(s=e*Math.pow(2,f-1)*Math.pow(2,o),a=0));o>=8;t[r+d]=255&s,d+=h,s/=256,o-=8);for(a=a<0;t[r+d]=255&a,d+=h,a/=256,u-=8);t[r+d-h]|=128*m}},70631:(t,e,r)=>{var n="function"===typeof Map&&Map.prototype,o=Object.getOwnPropertyDescriptor&&n?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,i=n&&o&&"function"===typeof o.get?o.get:null,a=n&&Map.prototype.forEach,s="function"===typeof Set&&Set.prototype,c=Object.getOwnPropertyDescriptor&&s?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,u=s&&c&&"function"===typeof c.get?c.get:null,l=s&&Set.prototype.forEach,f="function"===typeof WeakMap&&WeakMap.prototype,p=f?WeakMap.prototype.has:null,d="function"===typeof WeakSet&&WeakSet.prototype,h=d?WeakSet.prototype.has:null,m="function"===typeof WeakRef&&WeakRef.prototype,y=m?WeakRef.prototype.deref:null,g=Boolean.prototype.valueOf,v=Object.prototype.toString,b=Function.prototype.toString,w=String.prototype.match,E=String.prototype.slice,S=String.prototype.replace,O=String.prototype.toUpperCase,T=String.prototype.toLowerCase,A=RegExp.prototype.test,x=Array.prototype.concat,R=Array.prototype.join,_=Array.prototype.slice,C=Math.floor,N="function"===typeof BigInt?BigInt.prototype.valueOf:null,P=Object.getOwnPropertySymbols,j="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?Symbol.prototype.toString:null,L="function"===typeof Symbol&&"object"===typeof Symbol.iterator,D="function"===typeof Symbol&&Symbol.toStringTag&&(typeof Symbol.toStringTag===L||"symbol")?Symbol.toStringTag:null,I=Object.prototype.propertyIsEnumerable,k=("function"===typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(t){return t.__proto__}:null);function B(t,e){if(t===1/0||t===-1/0||t!==t||t&&t>-1e3&&t<1e3||A.call(/e/,e))return e;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"===typeof t){var n=t<0?-C(-t):C(t);if(n!==t){var o=String(n),i=E.call(e,o.length+1);return S.call(o,r,"$&_")+"."+S.call(S.call(i,/([0-9]{3})/g,"$&_"),/_$/,"")}}return S.call(e,r,"$&_")}var U=r(24654),F=U.custom,M=X(F)?F:null;function $(t,e,r){var n="double"===(r.quoteStyle||e)?'"':"'";return n+t+n}function H(t){return S.call(String(t),/"/g,""")}function W(t){return"[object Array]"===tt(t)&&(!D||!("object"===typeof t&&D in t))}function z(t){return"[object Date]"===tt(t)&&(!D||!("object"===typeof t&&D in t))}function q(t){return"[object RegExp]"===tt(t)&&(!D||!("object"===typeof t&&D in t))}function G(t){return"[object Error]"===tt(t)&&(!D||!("object"===typeof t&&D in t))}function V(t){return"[object String]"===tt(t)&&(!D||!("object"===typeof t&&D in t))}function J(t){return"[object Number]"===tt(t)&&(!D||!("object"===typeof t&&D in t))}function Y(t){return"[object Boolean]"===tt(t)&&(!D||!("object"===typeof t&&D in t))}function X(t){if(L)return t&&"object"===typeof t&&t instanceof Symbol;if("symbol"===typeof t)return!0;if(!t||"object"!==typeof t||!j)return!1;try{return j.call(t),!0}catch(e){}return!1}function K(t){if(!t||"object"!==typeof t||!N)return!1;try{return N.call(t),!0}catch(e){}return!1}t.exports=function t(e,n,o,s){var c=n||{};if(Z(c,"quoteStyle")&&"single"!==c.quoteStyle&&"double"!==c.quoteStyle)throw new TypeError('option "quoteStyle" must be "single" or "double"');if(Z(c,"maxStringLength")&&("number"===typeof c.maxStringLength?c.maxStringLength<0&&c.maxStringLength!==1/0:null!==c.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var f=!Z(c,"customInspect")||c.customInspect;if("boolean"!==typeof f&&"symbol"!==f)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(Z(c,"indent")&&null!==c.indent&&"\t"!==c.indent&&!(parseInt(c.indent,10)===c.indent&&c.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(Z(c,"numericSeparator")&&"boolean"!==typeof c.numericSeparator)throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var p=c.numericSeparator;if("undefined"===typeof e)return"undefined";if(null===e)return"null";if("boolean"===typeof e)return e?"true":"false";if("string"===typeof e)return ut(e,c);if("number"===typeof e){if(0===e)return 1/0/e>0?"0":"-0";var d=String(e);return p?B(e,d):d}if("bigint"===typeof e){var h=String(e)+"n";return p?B(e,h):h}var m="undefined"===typeof c.depth?5:c.depth;if("undefined"===typeof o&&(o=0),o>=m&&m>0&&"object"===typeof e)return W(e)?"[Array]":"[Object]";var y=mt(c,o);if("undefined"===typeof s)s=[];else if(rt(s,e)>=0)return"[Circular]";function v(e,r,n){if(r&&(s=_.call(s),s.push(r)),n){var i={depth:c.depth};return Z(c,"quoteStyle")&&(i.quoteStyle=c.quoteStyle),t(e,i,o+1,s)}return t(e,c,o+1,s)}if("function"===typeof e&&!q(e)){var b=et(e),w=gt(e,v);return"[Function"+(b?": "+b:" (anonymous)")+"]"+(w.length>0?" { "+R.call(w,", ")+" }":"")}if(X(e)){var O=L?S.call(String(e),/^(Symbol\(.*\))_[^)]*$/,"$1"):j.call(e);return"object"!==typeof e||L?O:ft(O)}if(ct(e)){for(var A="<"+T.call(String(e.nodeName)),C=e.attributes||[],P=0;P",A}if(W(e)){if(0===e.length)return"[]";var F=gt(e,v);return y&&!ht(F)?"["+yt(F,y)+"]":"[ "+R.call(F,", ")+" ]"}if(G(e)){var Q=gt(e,v);return"cause"in Error.prototype||!("cause"in e)||I.call(e,"cause")?0===Q.length?"["+String(e)+"]":"{ ["+String(e)+"] "+R.call(Q,", ")+" }":"{ ["+String(e)+"] "+R.call(x.call("[cause]: "+v(e.cause),Q),", ")+" }"}if("object"===typeof e&&f){if(M&&"function"===typeof e[M]&&U)return U(e,{depth:m-o});if("symbol"!==f&&"function"===typeof e.inspect)return e.inspect()}if(nt(e)){var lt=[];return a&&a.call(e,(function(t,r){lt.push(v(r,e,!0)+" => "+v(t,e))})),dt("Map",i.call(e),lt,y)}if(at(e)){var vt=[];return l&&l.call(e,(function(t){vt.push(v(t,e))})),dt("Set",u.call(e),vt,y)}if(ot(e))return pt("WeakMap");if(st(e))return pt("WeakSet");if(it(e))return pt("WeakRef");if(J(e))return ft(v(Number(e)));if(K(e))return ft(v(N.call(e)));if(Y(e))return ft(g.call(e));if(V(e))return ft(v(String(e)));if("undefined"!==typeof window&&e===window)return"{ [object Window] }";if(e===r.g)return"{ [object globalThis] }";if(!z(e)&&!q(e)){var bt=gt(e,v),wt=k?k(e)===Object.prototype:e instanceof Object||e.constructor===Object,Et=e instanceof Object?"":"null prototype",St=!wt&&D&&Object(e)===e&&D in e?E.call(tt(e),8,-1):Et?"Object":"",Ot=wt||"function"!==typeof e.constructor?"":e.constructor.name?e.constructor.name+" ":"",Tt=Ot+(St||Et?"["+R.call(x.call([],St||[],Et||[]),": ")+"] ":"");return 0===bt.length?Tt+"{}":y?Tt+"{"+yt(bt,y)+"}":Tt+"{ "+R.call(bt,", ")+" }"}return String(e)};var Q=Object.prototype.hasOwnProperty||function(t){return t in this};function Z(t,e){return Q.call(t,e)}function tt(t){return v.call(t)}function et(t){if(t.name)return t.name;var e=w.call(b.call(t),/^function\s*([\w$]+)/);return e?e[1]:null}function rt(t,e){if(t.indexOf)return t.indexOf(e);for(var r=0,n=t.length;re.maxStringLength){var r=t.length-e.maxStringLength,n="... "+r+" more character"+(r>1?"s":"");return ut(E.call(t,0,e.maxStringLength),e)+n}var o=S.call(S.call(t,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,lt);return $(o,"single",e)}function lt(t){var e=t.charCodeAt(0),r={8:"b",9:"t",10:"n",12:"f",13:"r"}[e];return r?"\\"+r:"\\x"+(e<16?"0":"")+O.call(e.toString(16))}function ft(t){return"Object("+t+")"}function pt(t){return t+" { ? }"}function dt(t,e,r,n){var o=n?yt(r,n):R.call(r,", ");return t+" ("+e+") {"+o+"}"}function ht(t){for(var e=0;e=0)return!1;return!0}function mt(t,e){var r;if("\t"===t.indent)r="\t";else{if(!("number"===typeof t.indent&&t.indent>0))return null;r=R.call(Array(t.indent+1)," ")}return{base:r,prev:R.call(Array(e+1),r)}}function yt(t,e){if(0===t.length)return"";var r="\n"+e.prev+e.base;return r+R.call(t,","+r)+"\n"+e.prev}function gt(t,e){var r=W(t),n=[];if(r){n.length=t.length;for(var o=0;o{"use strict";r.d(e,{Z:()=>Ct}); +e.read=function(t,e,r,n,o){var i,a,s=8*o-n-1,c=(1<>1,l=-7,f=r?o-1:0,p=r?-1:1,d=t[e+f];for(f+=p,i=d&(1<<-l)-1,d>>=-l,l+=s;l>0;i=256*i+t[e+f],f+=p,l-=8);for(a=i&(1<<-l)-1,i>>=-l,l+=n;l>0;a=256*a+t[e+f],f+=p,l-=8);if(0===i)i=1-u;else{if(i===c)return a?NaN:1/0*(d?-1:1);a+=Math.pow(2,n),i-=u}return(d?-1:1)*a*Math.pow(2,i-n)},e.write=function(t,e,r,n,o,i){var a,s,c,u=8*i-o-1,l=(1<>1,p=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,d=n?0:i-1,h=n?1:-1,m=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(s=isNaN(e)?1:0,a=l):(a=Math.floor(Math.log(e)/Math.LN2),e*(c=Math.pow(2,-a))<1&&(a--,c*=2),e+=a+f>=1?p/c:p*Math.pow(2,1-f),e*c>=2&&(a++,c/=2),a+f>=l?(s=0,a=l):a+f>=1?(s=(e*c-1)*Math.pow(2,o),a+=f):(s=e*Math.pow(2,f-1)*Math.pow(2,o),a=0));o>=8;t[r+d]=255&s,d+=h,s/=256,o-=8);for(a=a<0;t[r+d]=255&a,d+=h,a/=256,u-=8);t[r+d-h]|=128*m}},70631:(t,e,r)=>{var n="function"===typeof Map&&Map.prototype,o=Object.getOwnPropertyDescriptor&&n?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,i=n&&o&&"function"===typeof o.get?o.get:null,a=n&&Map.prototype.forEach,s="function"===typeof Set&&Set.prototype,c=Object.getOwnPropertyDescriptor&&s?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,u=s&&c&&"function"===typeof c.get?c.get:null,l=s&&Set.prototype.forEach,f="function"===typeof WeakMap&&WeakMap.prototype,p=f?WeakMap.prototype.has:null,d="function"===typeof WeakSet&&WeakSet.prototype,h=d?WeakSet.prototype.has:null,m="function"===typeof WeakRef&&WeakRef.prototype,y=m?WeakRef.prototype.deref:null,g=Boolean.prototype.valueOf,v=Object.prototype.toString,b=Function.prototype.toString,w=String.prototype.match,E=String.prototype.slice,S=String.prototype.replace,O=String.prototype.toUpperCase,T=String.prototype.toLowerCase,A=RegExp.prototype.test,x=Array.prototype.concat,R=Array.prototype.join,_=Array.prototype.slice,C=Math.floor,N="function"===typeof BigInt?BigInt.prototype.valueOf:null,P=Object.getOwnPropertySymbols,j="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?Symbol.prototype.toString:null,L="function"===typeof Symbol&&"object"===typeof Symbol.iterator,D="function"===typeof Symbol&&Symbol.toStringTag&&(typeof Symbol.toStringTag===L||"symbol")?Symbol.toStringTag:null,I=Object.prototype.propertyIsEnumerable,k=("function"===typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(t){return t.__proto__}:null);function B(t,e){if(t===1/0||t===-1/0||t!==t||t&&t>-1e3&&t<1e3||A.call(/e/,e))return e;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"===typeof t){var n=t<0?-C(-t):C(t);if(n!==t){var o=String(n),i=E.call(e,o.length+1);return S.call(o,r,"$&_")+"."+S.call(S.call(i,/([0-9]{3})/g,"$&_"),/_$/,"")}}return S.call(e,r,"$&_")}var U=r(24654),F=U.custom,M=X(F)?F:null;function $(t,e,r){var n="double"===(r.quoteStyle||e)?'"':"'";return n+t+n}function H(t){return S.call(String(t),/"/g,""")}function W(t){return"[object Array]"===tt(t)&&(!D||!("object"===typeof t&&D in t))}function z(t){return"[object Date]"===tt(t)&&(!D||!("object"===typeof t&&D in t))}function q(t){return"[object RegExp]"===tt(t)&&(!D||!("object"===typeof t&&D in t))}function G(t){return"[object Error]"===tt(t)&&(!D||!("object"===typeof t&&D in t))}function V(t){return"[object String]"===tt(t)&&(!D||!("object"===typeof t&&D in t))}function J(t){return"[object Number]"===tt(t)&&(!D||!("object"===typeof t&&D in t))}function Y(t){return"[object Boolean]"===tt(t)&&(!D||!("object"===typeof t&&D in t))}function X(t){if(L)return t&&"object"===typeof t&&t instanceof Symbol;if("symbol"===typeof t)return!0;if(!t||"object"!==typeof t||!j)return!1;try{return j.call(t),!0}catch(e){}return!1}function K(t){if(!t||"object"!==typeof t||!N)return!1;try{return N.call(t),!0}catch(e){}return!1}t.exports=function t(e,n,o,s){var c=n||{};if(Z(c,"quoteStyle")&&"single"!==c.quoteStyle&&"double"!==c.quoteStyle)throw new TypeError('option "quoteStyle" must be "single" or "double"');if(Z(c,"maxStringLength")&&("number"===typeof c.maxStringLength?c.maxStringLength<0&&c.maxStringLength!==1/0:null!==c.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var f=!Z(c,"customInspect")||c.customInspect;if("boolean"!==typeof f&&"symbol"!==f)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(Z(c,"indent")&&null!==c.indent&&"\t"!==c.indent&&!(parseInt(c.indent,10)===c.indent&&c.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(Z(c,"numericSeparator")&&"boolean"!==typeof c.numericSeparator)throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var p=c.numericSeparator;if("undefined"===typeof e)return"undefined";if(null===e)return"null";if("boolean"===typeof e)return e?"true":"false";if("string"===typeof e)return ut(e,c);if("number"===typeof e){if(0===e)return 1/0/e>0?"0":"-0";var d=String(e);return p?B(e,d):d}if("bigint"===typeof e){var h=String(e)+"n";return p?B(e,h):h}var m="undefined"===typeof c.depth?5:c.depth;if("undefined"===typeof o&&(o=0),o>=m&&m>0&&"object"===typeof e)return W(e)?"[Array]":"[Object]";var y=mt(c,o);if("undefined"===typeof s)s=[];else if(rt(s,e)>=0)return"[Circular]";function v(e,r,n){if(r&&(s=_.call(s),s.push(r)),n){var i={depth:c.depth};return Z(c,"quoteStyle")&&(i.quoteStyle=c.quoteStyle),t(e,i,o+1,s)}return t(e,c,o+1,s)}if("function"===typeof e&&!q(e)){var b=et(e),w=gt(e,v);return"[Function"+(b?": "+b:" (anonymous)")+"]"+(w.length>0?" { "+R.call(w,", ")+" }":"")}if(X(e)){var O=L?S.call(String(e),/^(Symbol\(.*\))_[^)]*$/,"$1"):j.call(e);return"object"!==typeof e||L?O:ft(O)}if(ct(e)){for(var A="<"+T.call(String(e.nodeName)),C=e.attributes||[],P=0;P",A}if(W(e)){if(0===e.length)return"[]";var F=gt(e,v);return y&&!ht(F)?"["+yt(F,y)+"]":"[ "+R.call(F,", ")+" ]"}if(G(e)){var Q=gt(e,v);return"cause"in Error.prototype||!("cause"in e)||I.call(e,"cause")?0===Q.length?"["+String(e)+"]":"{ ["+String(e)+"] "+R.call(Q,", ")+" }":"{ ["+String(e)+"] "+R.call(x.call("[cause]: "+v(e.cause),Q),", ")+" }"}if("object"===typeof e&&f){if(M&&"function"===typeof e[M]&&U)return U(e,{depth:m-o});if("symbol"!==f&&"function"===typeof e.inspect)return e.inspect()}if(nt(e)){var lt=[];return a&&a.call(e,(function(t,r){lt.push(v(r,e,!0)+" => "+v(t,e))})),dt("Map",i.call(e),lt,y)}if(at(e)){var vt=[];return l&&l.call(e,(function(t){vt.push(v(t,e))})),dt("Set",u.call(e),vt,y)}if(ot(e))return pt("WeakMap");if(st(e))return pt("WeakSet");if(it(e))return pt("WeakRef");if(J(e))return ft(v(Number(e)));if(K(e))return ft(v(N.call(e)));if(Y(e))return ft(g.call(e));if(V(e))return ft(v(String(e)));if("undefined"!==typeof window&&e===window)return"{ [object Window] }";if("undefined"!==typeof globalThis&&e===globalThis||"undefined"!==typeof r.g&&e===r.g)return"{ [object globalThis] }";if(!z(e)&&!q(e)){var bt=gt(e,v),wt=k?k(e)===Object.prototype:e instanceof Object||e.constructor===Object,Et=e instanceof Object?"":"null prototype",St=!wt&&D&&Object(e)===e&&D in e?E.call(tt(e),8,-1):Et?"Object":"",Ot=wt||"function"!==typeof e.constructor?"":e.constructor.name?e.constructor.name+" ":"",Tt=Ot+(St||Et?"["+R.call(x.call([],St||[],Et||[]),": ")+"] ":"");return 0===bt.length?Tt+"{}":y?Tt+"{"+yt(bt,y)+"}":Tt+"{ "+R.call(bt,", ")+" }"}return String(e)};var Q=Object.prototype.hasOwnProperty||function(t){return t in this};function Z(t,e){return Q.call(t,e)}function tt(t){return v.call(t)}function et(t){if(t.name)return t.name;var e=w.call(b.call(t),/^function\s*([\w$]+)/);return e?e[1]:null}function rt(t,e){if(t.indexOf)return t.indexOf(e);for(var r=0,n=t.length;re.maxStringLength){var r=t.length-e.maxStringLength,n="... "+r+" more character"+(r>1?"s":"");return ut(E.call(t,0,e.maxStringLength),e)+n}var o=S.call(S.call(t,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,lt);return $(o,"single",e)}function lt(t){var e=t.charCodeAt(0),r={8:"b",9:"t",10:"n",12:"f",13:"r"}[e];return r?"\\"+r:"\\x"+(e<16?"0":"")+O.call(e.toString(16))}function ft(t){return"Object("+t+")"}function pt(t){return t+" { ? }"}function dt(t,e,r,n){var o=n?yt(r,n):R.call(r,", ");return t+" ("+e+") {"+o+"}"}function ht(t){for(var e=0;e=0)return!1;return!0}function mt(t,e){var r;if("\t"===t.indent)r="\t";else{if(!("number"===typeof t.indent&&t.indent>0))return null;r=R.call(Array(t.indent+1)," ")}return{base:r,prev:R.call(Array(e+1),r)}}function yt(t,e){if(0===t.length)return"";var r="\n"+e.prev+e.base;return r+R.call(t,","+r)+"\n"+e.prev}function gt(t,e){var r=W(t),n=[];if(r){n.length=t.length;for(var o=0;o{"use strict";r.d(e,{Z:()=>Ct}); /**! * @fileOverview Kickass library to create and place poppers near their reference elements. * @version 1.16.1 @@ -33,7 +33,7 @@ e.read=function(t,e,r,n,o){var i,a,s=8*o-n-1,c=(1<>1,l=-7,f=r?o-1:0,p= * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE * SOFTWARE. */ -var n="undefined"!==typeof window&&"undefined"!==typeof document&&"undefined"!==typeof navigator,o=function(){for(var t=["Edge","Trident","Firefox"],e=0;e=0)return 1;return 0}();function i(t){var e=!1;return function(){e||(e=!0,window.Promise.resolve().then((function(){e=!1,t()})))}}function a(t){var e=!1;return function(){e||(e=!0,setTimeout((function(){e=!1,t()}),o))}}var s=n&&window.Promise,c=s?i:a;function u(t){var e={};return t&&"[object Function]"===e.toString.call(t)}function l(t,e){if(1!==t.nodeType)return[];var r=t.ownerDocument.defaultView,n=r.getComputedStyle(t,null);return e?n[e]:n}function f(t){return"HTML"===t.nodeName?t:t.parentNode||t.host}function p(t){if(!t)return document.body;switch(t.nodeName){case"HTML":case"BODY":return t.ownerDocument.body;case"#document":return t.body}var e=l(t),r=e.overflow,n=e.overflowX,o=e.overflowY;return/(auto|scroll|overlay)/.test(r+o+n)?t:p(f(t))}function d(t){return t&&t.referenceNode?t.referenceNode:t}var h=n&&!(!window.MSInputMethodContext||!document.documentMode),m=n&&/MSIE 10/.test(navigator.userAgent);function y(t){return 11===t?h:10===t?m:h||m}function g(t){if(!t)return document.documentElement;var e=y(10)?document.body:null,r=t.offsetParent||null;while(r===e&&t.nextElementSibling)r=(t=t.nextElementSibling).offsetParent;var n=r&&r.nodeName;return n&&"BODY"!==n&&"HTML"!==n?-1!==["TH","TD","TABLE"].indexOf(r.nodeName)&&"static"===l(r,"position")?g(r):r:t?t.ownerDocument.documentElement:document.documentElement}function v(t){var e=t.nodeName;return"BODY"!==e&&("HTML"===e||g(t.firstElementChild)===t)}function b(t){return null!==t.parentNode?b(t.parentNode):t}function w(t,e){if(!t||!t.nodeType||!e||!e.nodeType)return document.documentElement;var r=t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_FOLLOWING,n=r?t:e,o=r?e:t,i=document.createRange();i.setStart(n,0),i.setEnd(o,0);var a=i.commonAncestorContainer;if(t!==a&&e!==a||n.contains(o))return v(a)?a:g(a);var s=b(t);return s.host?w(s.host,e):w(t,b(e).host)}function E(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"top",r="top"===e?"scrollTop":"scrollLeft",n=t.nodeName;if("BODY"===n||"HTML"===n){var o=t.ownerDocument.documentElement,i=t.ownerDocument.scrollingElement||o;return i[r]}return t[r]}function S(t,e){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=E(e,"top"),o=E(e,"left"),i=r?-1:1;return t.top+=n*i,t.bottom+=n*i,t.left+=o*i,t.right+=o*i,t}function O(t,e){var r="x"===e?"Left":"Top",n="Left"===r?"Right":"Bottom";return parseFloat(t["border"+r+"Width"])+parseFloat(t["border"+n+"Width"])}function T(t,e,r,n){return Math.max(e["offset"+t],e["scroll"+t],r["client"+t],r["offset"+t],r["scroll"+t],y(10)?parseInt(r["offset"+t])+parseInt(n["margin"+("Height"===t?"Top":"Left")])+parseInt(n["margin"+("Height"===t?"Bottom":"Right")]):0)}function A(t){var e=t.body,r=t.documentElement,n=y(10)&&getComputedStyle(r);return{height:T("Height",e,r,n),width:T("Width",e,r,n)}}var x=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},R=function(){function t(t,e){for(var r=0;r2&&void 0!==arguments[2]&&arguments[2],n=y(10),o="HTML"===e.nodeName,i=P(t),a=P(e),s=p(t),c=l(e),u=parseFloat(c.borderTopWidth),f=parseFloat(c.borderLeftWidth);r&&o&&(a.top=Math.max(a.top,0),a.left=Math.max(a.left,0));var d=N({top:i.top-a.top-u,left:i.left-a.left-f,width:i.width,height:i.height});if(d.marginTop=0,d.marginLeft=0,!n&&o){var h=parseFloat(c.marginTop),m=parseFloat(c.marginLeft);d.top-=u-h,d.bottom-=u-h,d.left-=f-m,d.right-=f-m,d.marginTop=h,d.marginLeft=m}return(n&&!r?e.contains(s):e===s&&"BODY"!==s.nodeName)&&(d=S(d,e)),d}function L(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=t.ownerDocument.documentElement,n=j(t,r),o=Math.max(r.clientWidth,window.innerWidth||0),i=Math.max(r.clientHeight,window.innerHeight||0),a=e?0:E(r),s=e?0:E(r,"left"),c={top:a-n.top+n.marginTop,left:s-n.left+n.marginLeft,width:o,height:i};return N(c)}function D(t){var e=t.nodeName;if("BODY"===e||"HTML"===e)return!1;if("fixed"===l(t,"position"))return!0;var r=f(t);return!!r&&D(r)}function I(t){if(!t||!t.parentElement||y())return document.documentElement;var e=t.parentElement;while(e&&"none"===l(e,"transform"))e=e.parentElement;return e||document.documentElement}function k(t,e,r,n){var o=arguments.length>4&&void 0!==arguments[4]&&arguments[4],i={top:0,left:0},a=o?I(t):w(t,d(e));if("viewport"===n)i=L(a,o);else{var s=void 0;"scrollParent"===n?(s=p(f(e)),"BODY"===s.nodeName&&(s=t.ownerDocument.documentElement)):s="window"===n?t.ownerDocument.documentElement:n;var c=j(s,a,o);if("HTML"!==s.nodeName||D(a))i=c;else{var u=A(t.ownerDocument),l=u.height,h=u.width;i.top+=c.top-c.marginTop,i.bottom=l+c.top,i.left+=c.left-c.marginLeft,i.right=h+c.left}}r=r||0;var m="number"===typeof r;return i.left+=m?r:r.left||0,i.top+=m?r:r.top||0,i.right-=m?r:r.right||0,i.bottom-=m?r:r.bottom||0,i}function B(t){var e=t.width,r=t.height;return e*r}function U(t,e,r,n,o){var i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;if(-1===t.indexOf("auto"))return t;var a=k(r,n,i,o),s={top:{width:a.width,height:e.top-a.top},right:{width:a.right-e.right,height:a.height},bottom:{width:a.width,height:a.bottom-e.bottom},left:{width:e.left-a.left,height:a.height}},c=Object.keys(s).map((function(t){return C({key:t},s[t],{area:B(s[t])})})).sort((function(t,e){return e.area-t.area})),u=c.filter((function(t){var e=t.width,n=t.height;return e>=r.clientWidth&&n>=r.clientHeight})),l=u.length>0?u[0].key:c[0].key,f=t.split("-")[1];return l+(f?"-"+f:"")}function F(t,e,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,o=n?I(e):w(e,d(r));return j(r,o,n)}function M(t){var e=t.ownerDocument.defaultView,r=e.getComputedStyle(t),n=parseFloat(r.marginTop||0)+parseFloat(r.marginBottom||0),o=parseFloat(r.marginLeft||0)+parseFloat(r.marginRight||0),i={width:t.offsetWidth+o,height:t.offsetHeight+n};return i}function $(t){var e={left:"right",right:"left",bottom:"top",top:"bottom"};return t.replace(/left|right|bottom|top/g,(function(t){return e[t]}))}function H(t,e,r){r=r.split("-")[0];var n=M(t),o={width:n.width,height:n.height},i=-1!==["right","left"].indexOf(r),a=i?"top":"left",s=i?"left":"top",c=i?"height":"width",u=i?"width":"height";return o[a]=e[a]+e[c]/2-n[c]/2,o[s]=r===s?e[s]-n[u]:e[$(s)],o}function W(t,e){return Array.prototype.find?t.find(e):t.filter(e)[0]}function z(t,e,r){if(Array.prototype.findIndex)return t.findIndex((function(t){return t[e]===r}));var n=W(t,(function(t){return t[e]===r}));return t.indexOf(n)}function q(t,e,r){var n=void 0===r?t:t.slice(0,z(t,"name",r));return n.forEach((function(t){t["function"]&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var r=t["function"]||t.fn;t.enabled&&u(r)&&(e.offsets.popper=N(e.offsets.popper),e.offsets.reference=N(e.offsets.reference),e=r(e,t))})),e}function G(){if(!this.state.isDestroyed){var t={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};t.offsets.reference=F(this.state,this.popper,this.reference,this.options.positionFixed),t.placement=U(this.options.placement,t.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),t.originalPlacement=t.placement,t.positionFixed=this.options.positionFixed,t.offsets.popper=H(this.popper,t.offsets.reference,t.placement),t.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",t=q(this.modifiers,t),this.state.isCreated?this.options.onUpdate(t):(this.state.isCreated=!0,this.options.onCreate(t))}}function V(t,e){return t.some((function(t){var r=t.name,n=t.enabled;return n&&r===e}))}function J(t){for(var e=[!1,"ms","Webkit","Moz","O"],r=t.charAt(0).toUpperCase()+t.slice(1),n=0;na[h]&&(t.offsets.popper[p]+=s[p]+m-a[h]),t.offsets.popper=N(t.offsets.popper);var y=s[p]+s[u]/2-m/2,g=l(t.instance.popper),v=parseFloat(g["margin"+f]),b=parseFloat(g["border"+f+"Width"]),w=y-t.offsets.popper[p]-v-b;return w=Math.max(Math.min(a[u]-m,w),0),t.arrowElement=n,t.offsets.arrow=(r={},_(r,p,Math.round(w)),_(r,d,""),r),t}function pt(t){return"end"===t?"start":"start"===t?"end":t}var dt=["auto-start","auto","auto-end","top-start","top","top-end","right-start","right","right-end","bottom-end","bottom","bottom-start","left-end","left","left-start"],ht=dt.slice(3);function mt(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=ht.indexOf(t),n=ht.slice(r+1).concat(ht.slice(0,r));return e?n.reverse():n}var yt={FLIP:"flip",CLOCKWISE:"clockwise",COUNTERCLOCKWISE:"counterclockwise"};function gt(t,e){if(V(t.instance.modifiers,"inner"))return t;if(t.flipped&&t.placement===t.originalPlacement)return t;var r=k(t.instance.popper,t.instance.reference,e.padding,e.boundariesElement,t.positionFixed),n=t.placement.split("-")[0],o=$(n),i=t.placement.split("-")[1]||"",a=[];switch(e.behavior){case yt.FLIP:a=[n,o];break;case yt.CLOCKWISE:a=mt(n);break;case yt.COUNTERCLOCKWISE:a=mt(n,!0);break;default:a=e.behavior}return a.forEach((function(s,c){if(n!==s||a.length===c+1)return t;n=t.placement.split("-")[0],o=$(n);var u=t.offsets.popper,l=t.offsets.reference,f=Math.floor,p="left"===n&&f(u.right)>f(l.left)||"right"===n&&f(u.left)f(l.top)||"bottom"===n&&f(u.top)f(r.right),m=f(u.top)f(r.bottom),g="left"===n&&d||"right"===n&&h||"top"===n&&m||"bottom"===n&&y,v=-1!==["top","bottom"].indexOf(n),b=!!e.flipVariations&&(v&&"start"===i&&d||v&&"end"===i&&h||!v&&"start"===i&&m||!v&&"end"===i&&y),w=!!e.flipVariationsByContent&&(v&&"start"===i&&h||v&&"end"===i&&d||!v&&"start"===i&&y||!v&&"end"===i&&m),E=b||w;(p||g||E)&&(t.flipped=!0,(p||g)&&(n=a[c+1]),E&&(i=pt(i)),t.placement=n+(i?"-"+i:""),t.offsets.popper=C({},t.offsets.popper,H(t.instance.popper,t.offsets.reference,t.placement)),t=q(t.instance.modifiers,t,"flip"))})),t}function vt(t){var e=t.offsets,r=e.popper,n=e.reference,o=t.placement.split("-")[0],i=Math.floor,a=-1!==["top","bottom"].indexOf(o),s=a?"right":"bottom",c=a?"left":"top",u=a?"width":"height";return r[s]i(n[s])&&(t.offsets.popper[c]=i(n[s])),t}function bt(t,e,r,n){var o=t.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),i=+o[1],a=o[2];if(!i)return t;if(0===a.indexOf("%")){var s=void 0;switch(a){case"%p":s=r;break;case"%":case"%r":default:s=n}var c=N(s);return c[e]/100*i}if("vh"===a||"vw"===a){var u=void 0;return u="vh"===a?Math.max(document.documentElement.clientHeight,window.innerHeight||0):Math.max(document.documentElement.clientWidth,window.innerWidth||0),u/100*i}return i}function wt(t,e,r,n){var o=[0,0],i=-1!==["right","left"].indexOf(n),a=t.split(/(\+|\-)/).map((function(t){return t.trim()})),s=a.indexOf(W(a,(function(t){return-1!==t.search(/,|\s/)})));a[s]&&-1===a[s].indexOf(",")&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var c=/\s*,\s*|\s+/,u=-1!==s?[a.slice(0,s).concat([a[s].split(c)[0]]),[a[s].split(c)[1]].concat(a.slice(s+1))]:[a];return u=u.map((function(t,n){var o=(1===n?!i:i)?"height":"width",a=!1;return t.reduce((function(t,e){return""===t[t.length-1]&&-1!==["+","-"].indexOf(e)?(t[t.length-1]=e,a=!0,t):a?(t[t.length-1]+=e,a=!1,t):t.concat(e)}),[]).map((function(t){return bt(t,o,e,r)}))})),u.forEach((function(t,e){t.forEach((function(r,n){rt(r)&&(o[e]+=r*("-"===t[n-1]?-1:1))}))})),o}function Et(t,e){var r=e.offset,n=t.placement,o=t.offsets,i=o.popper,a=o.reference,s=n.split("-")[0],c=void 0;return c=rt(+r)?[+r,0]:wt(r,i,a,s),"left"===s?(i.top+=c[0],i.left-=c[1]):"right"===s?(i.top+=c[0],i.left+=c[1]):"top"===s?(i.left+=c[0],i.top-=c[1]):"bottom"===s&&(i.left+=c[0],i.top+=c[1]),t.popper=i,t}function St(t,e){var r=e.boundariesElement||g(t.instance.popper);t.instance.reference===r&&(r=g(r));var n=J("transform"),o=t.instance.popper.style,i=o.top,a=o.left,s=o[n];o.top="",o.left="",o[n]="";var c=k(t.instance.popper,t.instance.reference,e.padding,r,t.positionFixed);o.top=i,o.left=a,o[n]=s,e.boundaries=c;var u=e.priority,l=t.offsets.popper,f={primary:function(t){var r=l[t];return l[t]c[t]&&!e.escapeWithReference&&(n=Math.min(l[r],c[t]-("right"===t?l.width:l.height))),_({},r,n)}};return u.forEach((function(t){var e=-1!==["left","top"].indexOf(t)?"primary":"secondary";l=C({},l,f[e](t))})),t.offsets.popper=l,t}function Ot(t){var e=t.placement,r=e.split("-")[0],n=e.split("-")[1];if(n){var o=t.offsets,i=o.reference,a=o.popper,s=-1!==["bottom","top"].indexOf(r),c=s?"left":"top",u=s?"width":"height",l={start:_({},c,i[c]),end:_({},c,i[c]+i[u]-a[u])};t.offsets.popper=C({},a,l[n])}return t}function Tt(t){if(!lt(t.instance.modifiers,"hide","preventOverflow"))return t;var e=t.offsets.reference,r=W(t.instance.modifiers,(function(t){return"preventOverflow"===t.name})).boundaries;if(e.bottomr.right||e.top>r.bottom||e.right2&&void 0!==arguments[2]?arguments[2]:{};x(this,t),this.scheduleUpdate=function(){return requestAnimationFrame(n.update)},this.update=c(this.update.bind(this)),this.options=C({},t.Defaults,o),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=e&&e.jquery?e[0]:e,this.popper=r&&r.jquery?r[0]:r,this.options.modifiers={},Object.keys(C({},t.Defaults.modifiers,o.modifiers)).forEach((function(e){n.options.modifiers[e]=C({},t.Defaults.modifiers[e]||{},o.modifiers?o.modifiers[e]:{})})),this.modifiers=Object.keys(this.options.modifiers).map((function(t){return C({name:t},n.options.modifiers[t])})).sort((function(t,e){return t.order-e.order})),this.modifiers.forEach((function(t){t.enabled&&u(t.onLoad)&&t.onLoad(n.reference,n.popper,n.options,t,n.state)})),this.update();var i=this.options.eventsEnabled;i&&this.enableEventListeners(),this.state.eventsEnabled=i}return R(t,[{key:"update",value:function(){return G.call(this)}},{key:"destroy",value:function(){return Y.call(this)}},{key:"enableEventListeners",value:function(){return Z.call(this)}},{key:"disableEventListeners",value:function(){return et.call(this)}}]),t}();_t.Utils=("undefined"!==typeof window?window:r.g).PopperUtils,_t.placements=dt,_t.Defaults=Rt;const Ct=_t},72433:(t,e,r)=>{"use strict";function n(t){return t&&"object"===typeof t&&"default"in t?t["default"]:t}var o=n(r(20144));function i(t){return i="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i(t)}function a(t){return s(t)||c(t)||u()}function s(t){if(Array.isArray(t)){for(var e=0,r=new Array(t.length);e1&&void 0!==arguments[1]?arguments[1]:{};return t.reduce((function(t,r){var n=r.passengers[0],o="function"===typeof n?n(e):r.passengers;return t.concat(o)}),[])}function d(t,e){return t.map((function(t,e){return[e,t]})).sort((function(t,r){return e(t[1],r[1])||t[0]-r[0]})).map((function(t){return t[1]}))}function h(t,e){return e.reduce((function(e,r){return t.hasOwnProperty(r)&&(e[r]=t[r]),e}),{})}var m={},y={},g={},v=o.extend({data:function(){return{transports:m,targets:y,sources:g,trackInstances:l}},methods:{open:function(t){if(l){var e=t.to,r=t.from,n=t.passengers,i=t.order,a=void 0===i?1/0:i;if(e&&r&&n){var s={to:e,from:r,passengers:f(n),order:a},c=Object.keys(this.transports);-1===c.indexOf(e)&&o.set(this.transports,e,[]);var u=this.$_getTransportIndex(s),p=this.transports[e].slice(0);-1===u?p.push(s):p[u]=s,this.transports[e]=d(p,(function(t,e){return t.order-e.order}))}}},close:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=t.to,n=t.from;if(r&&(n||!1!==e)&&this.transports[r])if(e)this.transports[r]=[];else{var o=this.$_getTransportIndex(t);if(o>=0){var i=this.transports[r].slice(0);i.splice(o,1),this.transports[r]=i}}},registerTarget:function(t,e,r){l&&(this.trackInstances&&!r&&this.targets[t]&&console.warn("[portal-vue]: Target ".concat(t," already exists")),this.$set(this.targets,t,Object.freeze([e])))},unregisterTarget:function(t){this.$delete(this.targets,t)},registerSource:function(t,e,r){l&&(this.trackInstances&&!r&&this.sources[t]&&console.warn("[portal-vue]: source ".concat(t," already exists")),this.$set(this.sources,t,Object.freeze([e])))},unregisterSource:function(t){this.$delete(this.sources,t)},hasTarget:function(t){return!(!this.targets[t]||!this.targets[t][0])},hasSource:function(t){return!(!this.sources[t]||!this.sources[t][0])},hasContentFor:function(t){return!!this.transports[t]&&!!this.transports[t].length},$_getTransportIndex:function(t){var e=t.to,r=t.from;for(var n in this.transports[e])if(this.transports[e][n].from===r)return+n;return-1}}}),b=new v(m),w=1,E=o.extend({name:"portal",props:{disabled:{type:Boolean},name:{type:String,default:function(){return String(w++)}},order:{type:Number,default:0},slim:{type:Boolean},slotProps:{type:Object,default:function(){return{}}},tag:{type:String,default:"DIV"},to:{type:String,default:function(){return String(Math.round(1e7*Math.random()))}}},created:function(){var t=this;this.$nextTick((function(){b.registerSource(t.name,t)}))},mounted:function(){this.disabled||this.sendUpdate()},updated:function(){this.disabled?this.clear():this.sendUpdate()},beforeDestroy:function(){b.unregisterSource(this.name),this.clear()},watch:{to:function(t,e){e&&e!==t&&this.clear(e),this.sendUpdate()}},methods:{clear:function(t){var e={from:this.name,to:t||this.to};b.close(e)},normalizeSlots:function(){return this.$scopedSlots.default?[this.$scopedSlots.default]:this.$slots.default},normalizeOwnChildren:function(t){return"function"===typeof t?t(this.slotProps):t},sendUpdate:function(){var t=this.normalizeSlots();if(t){var e={from:this.name,to:this.to,passengers:a(t),order:this.order};b.open(e)}else this.clear()}},render:function(t){var e=this.$slots.default||this.$scopedSlots.default||[],r=this.tag;return e&&this.disabled?e.length<=1&&this.slim?this.normalizeOwnChildren(e)[0]:t(r,[this.normalizeOwnChildren(e)]):this.slim?t():t(r,{class:{"v-portal":!0},style:{display:"none"},key:"v-portal-placeholder"})}}),S=o.extend({name:"portalTarget",props:{multiple:{type:Boolean,default:!1},name:{type:String,required:!0},slim:{type:Boolean,default:!1},slotProps:{type:Object,default:function(){return{}}},tag:{type:String,default:"div"},transition:{type:[String,Object,Function]}},data:function(){return{transports:b.transports,firstRender:!0}},created:function(){var t=this;this.$nextTick((function(){b.registerTarget(t.name,t)}))},watch:{ownTransports:function(){this.$emit("change",this.children().length>0)},name:function(t,e){b.unregisterTarget(e),b.registerTarget(t,this)}},mounted:function(){var t=this;this.transition&&this.$nextTick((function(){t.firstRender=!1}))},beforeDestroy:function(){b.unregisterTarget(this.name)},computed:{ownTransports:function(){var t=this.transports[this.name]||[];return this.multiple?t:0===t.length?[]:[t[t.length-1]]},passengers:function(){return p(this.ownTransports,this.slotProps)}},methods:{children:function(){return 0!==this.passengers.length?this.passengers:this.$scopedSlots.default?this.$scopedSlots.default(this.slotProps):this.$slots.default||[]},noWrapper:function(){var t=this.slim&&!this.transition;return t&&this.children().length>1&&console.warn("[portal-vue]: PortalTarget with `slim` option received more than one child element."),t}},render:function(t){var e=this.noWrapper(),r=this.children(),n=this.transition||this.tag;return e?r[0]:this.slim&&!n?t():t(n,{props:{tag:this.transition&&this.tag?this.tag:void 0},class:{"vue-portal-target":!0}},r)}}),O=0,T=["disabled","name","order","slim","slotProps","tag","to"],A=["multiple","transition"],x=o.extend({name:"MountingPortal",inheritAttrs:!1,props:{append:{type:[Boolean,String]},bail:{type:Boolean},mountTo:{type:String,required:!0},disabled:{type:Boolean},name:{type:String,default:function(){return"mounted_"+String(O++)}},order:{type:Number,default:0},slim:{type:Boolean},slotProps:{type:Object,default:function(){return{}}},tag:{type:String,default:"DIV"},to:{type:String,default:function(){return String(Math.round(1e7*Math.random()))}},multiple:{type:Boolean,default:!1},targetSlim:{type:Boolean},targetSlotProps:{type:Object,default:function(){return{}}},targetTag:{type:String,default:"div"},transition:{type:[String,Object,Function]}},created:function(){if("undefined"!==typeof document){var t=document.querySelector(this.mountTo);if(t){var e=this.$props;if(b.targets[e.name])e.bail?console.warn("[portal-vue]: Target ".concat(e.name," is already mounted.\n Aborting because 'bail: true' is set")):this.portalTarget=b.targets[e.name];else{var r=e.append;if(r){var n="string"===typeof r?r:"DIV",o=document.createElement(n);t.appendChild(o),t=o}var i=h(this.$props,A);i.slim=this.targetSlim,i.tag=this.targetTag,i.slotProps=this.targetSlotProps,i.name=this.to,this.portalTarget=new S({el:t,parent:this.$parent||this,propsData:i})}}else console.error("[portal-vue]: Mount Point '".concat(this.mountTo,"' not found in document"))}},beforeDestroy:function(){var t=this.portalTarget;if(this.append){var e=t.$el;e.parentNode.removeChild(e)}t.$destroy()},render:function(t){if(!this.portalTarget)return console.warn("[portal-vue] Target wasn't mounted"),t();if(!this.$scopedSlots.manual){var e=h(this.$props,T);return t(E,{props:e,attrs:this.$attrs,on:this.$listeners,scopedSlots:this.$scopedSlots},this.$slots.default)}var r=this.$scopedSlots.manual({to:this.to});return Array.isArray(r)&&(r=r[0]),r||t()}});function R(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t.component(e.portalName||"Portal",E),t.component(e.portalTargetName||"PortalTarget",S),t.component(e.MountingPortalName||"MountingPortal",x)}var _={install:R};e.ZP=_,e.h_=E,e.YC=S,e.Df=b},55798:t=>{"use strict";var e=String.prototype.replace,r=/%20/g,n={RFC1738:"RFC1738",RFC3986:"RFC3986"};t.exports={default:n.RFC3986,formatters:{RFC1738:function(t){return e.call(t,r,"+")},RFC3986:function(t){return String(t)}},RFC1738:n.RFC1738,RFC3986:n.RFC3986}},80129:(t,e,r)=>{"use strict";var n=r(58261),o=r(55235),i=r(55798);t.exports={formats:i,parse:o,stringify:n}},55235:(t,e,r)=>{"use strict";var n=r(12769),o=Object.prototype.hasOwnProperty,i=Array.isArray,a={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:n.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},s=function(t){return t.replace(/&#(\d+);/g,(function(t,e){return String.fromCharCode(parseInt(e,10))}))},c=function(t,e){return t&&"string"===typeof t&&e.comma&&t.indexOf(",")>-1?t.split(","):t},u="utf8=%26%2310003%3B",l="utf8=%E2%9C%93",f=function(t,e){var r,f={__proto__:null},p=e.ignoreQueryPrefix?t.replace(/^\?/,""):t,d=e.parameterLimit===1/0?void 0:e.parameterLimit,h=p.split(e.delimiter,d),m=-1,y=e.charset;if(e.charsetSentinel)for(r=0;r-1&&(v=i(v)?[v]:v),o.call(f,g)?f[g]=n.combine(f[g],v):f[g]=v}return f},p=function(t,e,r,n){for(var o=n?e:c(e,r),i=t.length-1;i>=0;--i){var a,s=t[i];if("[]"===s&&r.parseArrays)a=[].concat(o);else{a=r.plainObjects?Object.create(null):{};var u="["===s.charAt(0)&&"]"===s.charAt(s.length-1)?s.slice(1,-1):s,l=parseInt(u,10);r.parseArrays||""!==u?!isNaN(l)&&s!==u&&String(l)===u&&l>=0&&r.parseArrays&&l<=r.arrayLimit?(a=[],a[l]=o):"__proto__"!==u&&(a[u]=o):a={0:o}}o=a}return o},d=function(t,e,r,n){if(t){var i=r.allowDots?t.replace(/\.([^.[]+)/g,"[$1]"):t,a=/(\[[^[\]]*])/,s=/(\[[^[\]]*])/g,c=r.depth>0&&a.exec(i),u=c?i.slice(0,c.index):i,l=[];if(u){if(!r.plainObjects&&o.call(Object.prototype,u)&&!r.allowPrototypes)return;l.push(u)}var f=0;while(r.depth>0&&null!==(c=s.exec(i))&&f{"use strict";var n=r(37478),o=r(12769),i=r(55798),a=Object.prototype.hasOwnProperty,s={brackets:function(t){return t+"[]"},comma:"comma",indices:function(t,e){return t+"["+e+"]"},repeat:function(t){return t}},c=Array.isArray,u=Array.prototype.push,l=function(t,e){u.apply(t,c(e)?e:[e])},f=Date.prototype.toISOString,p=i["default"],d={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:o.encode,encodeValuesOnly:!1,format:p,formatter:i.formatters[p],indices:!1,serializeDate:function(t){return f.call(t)},skipNulls:!1,strictNullHandling:!1},h=function(t){return"string"===typeof t||"number"===typeof t||"boolean"===typeof t||"symbol"===typeof t||"bigint"===typeof t},m={},y=function t(e,r,i,a,s,u,f,p,y,g,v,b,w,E,S,O){var T=e,A=O,x=0,R=!1;while(void 0!==(A=A.get(m))&&!R){var _=A.get(e);if(x+=1,"undefined"!==typeof _){if(_===x)throw new RangeError("Cyclic object value");R=!0}"undefined"===typeof A.get(m)&&(x=0)}if("function"===typeof p?T=p(r,T):T instanceof Date?T=v(T):"comma"===i&&c(T)&&(T=o.maybeMap(T,(function(t){return t instanceof Date?v(t):t}))),null===T){if(s)return f&&!E?f(r,d.encoder,S,"key",b):r;T=""}if(h(T)||o.isBuffer(T)){if(f){var C=E?r:f(r,d.encoder,S,"key",b);return[w(C)+"="+w(f(T,d.encoder,S,"value",b))]}return[w(r)+"="+w(String(T))]}var N,P=[];if("undefined"===typeof T)return P;if("comma"===i&&c(T))E&&f&&(T=o.maybeMap(T,f)),N=[{value:T.length>0?T.join(",")||null:void 0}];else if(c(p))N=p;else{var j=Object.keys(T);N=y?j.sort(y):j}for(var L=a&&c(T)&&1===T.length?r+"[]":r,D=0;D0?w+b:""}},12769:(t,e,r)=>{"use strict";var n=r(55798),o=Object.prototype.hasOwnProperty,i=Array.isArray,a=function(){for(var t=[],e=0;e<256;++e)t.push("%"+((e<16?"0":"")+e.toString(16)).toUpperCase());return t}(),s=function(t){while(t.length>1){var e=t.pop(),r=e.obj[e.prop];if(i(r)){for(var n=[],o=0;o=48&&l<=57||l>=65&&l<=90||l>=97&&l<=122||i===n.RFC1738&&(40===l||41===l)?c+=s.charAt(u):l<128?c+=a[l]:l<2048?c+=a[192|l>>6]+a[128|63&l]:l<55296||l>=57344?c+=a[224|l>>12]+a[128|l>>6&63]+a[128|63&l]:(u+=1,l=65536+((1023&l)<<10|1023&s.charCodeAt(u)),c+=a[240|l>>18]+a[128|l>>12&63]+a[128|l>>6&63]+a[128|63&l])}return c},d=function(t){for(var e=[{obj:{o:t},prop:"o"}],r=[],n=0;n{"use strict";var n=r(40210),o=r(12296),i=r(31044)(),a=r(27296),s=n("%TypeError%"),c=n("%Math.floor%");t.exports=function(t,e){if("function"!==typeof t)throw new s("`fn` is not a function");if("number"!==typeof e||e<0||e>4294967295||c(e)!==e)throw new s("`length` must be a positive 32-bit integer");var r=arguments.length>2&&!!arguments[2],n=!0,u=!0;if("length"in t&&a){var l=a(t,"length");l&&!l.configurable&&(n=!1),l&&!l.writable&&(u=!1)}return(n||u||!r)&&(i?o(t,"length",e,!0,!0):o(t,"length",e)),t}},37478:(t,e,r)=>{"use strict";var n=r(40210),o=r(21924),i=r(70631),a=n("%TypeError%"),s=n("%WeakMap%",!0),c=n("%Map%",!0),u=o("WeakMap.prototype.get",!0),l=o("WeakMap.prototype.set",!0),f=o("WeakMap.prototype.has",!0),p=o("Map.prototype.get",!0),d=o("Map.prototype.set",!0),h=o("Map.prototype.has",!0),m=function(t,e){for(var r,n=t;null!==(r=n.next);n=r)if(r.key===e)return n.next=r.next,r.next=t.next,t.next=r,r},y=function(t,e){var r=m(t,e);return r&&r.value},g=function(t,e,r){var n=m(t,e);n?n.value=r:t.next={key:e,next:t.next,value:r}},v=function(t,e){return!!m(t,e)};t.exports=function(){var t,e,r,n={assert:function(t){if(!n.has(t))throw new a("Side channel does not contain "+i(t))},get:function(n){if(s&&n&&("object"===typeof n||"function"===typeof n)){if(t)return u(t,n)}else if(c){if(e)return p(e,n)}else if(r)return y(r,n)},has:function(n){if(s&&n&&("object"===typeof n||"function"===typeof n)){if(t)return f(t,n)}else if(c){if(e)return h(e,n)}else if(r)return v(r,n);return!1},set:function(n,o){s&&n&&("object"===typeof n||"function"===typeof n)?(t||(t=new s),l(t,n,o)):c?(e||(e=new c),d(e,n,o)):(r||(r={key:{},next:null}),g(r,n,o))}};return n}},58971:(t,e,r)=>{var n=r(62195),o=r(39015),i=[r(19257)];t.exports=n.createStore(o,i)},19257:(t,e,r)=>{function n(){return r(55703),{}}t.exports=n},55703:()=>{"object"!==typeof JSON&&(JSON={}),function(){"use strict";var rx_one=/^[\],:{}\s]*$/,rx_two=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,rx_three=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,rx_four=/(?:^|:|,)(?:\s*\[)+/g,rx_escapable=/[\\"\u0000-\u001f\u007f-\u009f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,rx_dangerous=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,gap,indent,meta,rep;function f(t){return t<10?"0"+t:t}function this_value(){return this.valueOf()}function quote(t){return rx_escapable.lastIndex=0,rx_escapable.test(t)?'"'+t.replace(rx_escapable,(function(t){var e=meta[t];return"string"===typeof e?e:"\\u"+("0000"+t.charCodeAt(0).toString(16)).slice(-4)}))+'"':'"'+t+'"'}function str(t,e){var r,n,o,i,a,s=gap,c=e[t];switch(c&&"object"===typeof c&&"function"===typeof c.toJSON&&(c=c.toJSON(t)),"function"===typeof rep&&(c=rep.call(e,t,c)),typeof c){case"string":return quote(c);case"number":return isFinite(c)?String(c):"null";case"boolean":case"null":return String(c);case"object":if(!c)return"null";if(gap+=indent,a=[],"[object Array]"===Object.prototype.toString.apply(c)){for(i=c.length,r=0;r{var n=r(69078),o=n.slice,i=n.pluck,a=n.each,s=n.bind,c=n.create,u=n.isList,l=n.isFunction,f=n.isObject;t.exports={createStore:h};var p={version:"2.0.12",enabled:!1,get:function(t,e){var r=this.storage.read(this._namespacePrefix+t);return this._deserialize(r,e)},set:function(t,e){return void 0===e?this.remove(t):(this.storage.write(this._namespacePrefix+t,this._serialize(e)),e)},remove:function(t){this.storage.remove(this._namespacePrefix+t)},each:function(t){var e=this;this.storage.each((function(r,n){t.call(e,e._deserialize(r),(n||"").replace(e._namespaceRegexp,""))}))},clearAll:function(){this.storage.clearAll()},hasNamespace:function(t){return this._namespacePrefix=="__storejs_"+t+"_"},createStore:function(){return h.apply(this,arguments)},addPlugin:function(t){this._addPlugin(t)},namespace:function(t){return h(this.storage,this.plugins,t)}};function d(){var t="undefined"==typeof console?null:console;if(t){var e=t.warn?t.warn:t.log;e.apply(t,arguments)}}function h(t,e,r){r||(r=""),t&&!u(t)&&(t=[t]),e&&!u(e)&&(e=[e]);var n=r?"__storejs_"+r+"_":"",h=r?new RegExp("^"+n):null,m=/^[a-zA-Z0-9_\-]*$/;if(!m.test(r))throw new Error("store.js namespaces can only have alphanumerics + underscores and dashes");var y={_namespacePrefix:n,_namespaceRegexp:h,_testStorage:function(t){try{var e="__storejs__test__";t.write(e,e);var r=t.read(e)===e;return t.remove(e),r}catch(n){return!1}},_assignPluginFnProp:function(t,e){var r=this[e];this[e]=function(){var e=o(arguments,0),n=this;function i(){if(r)return a(arguments,(function(t,r){e[r]=t})),r.apply(n,e)}var s=[i].concat(e);return t.apply(n,s)}},_serialize:function(t){return JSON.stringify(t)},_deserialize:function(t,e){if(!t)return e;var r="";try{r=JSON.parse(t)}catch(n){r=t}return void 0!==r?r:e},_addStorage:function(t){this.enabled||this._testStorage(t)&&(this.storage=t,this.enabled=!0)},_addPlugin:function(t){var e=this;if(u(t))a(t,(function(t){e._addPlugin(t)}));else{var r=i(this.plugins,(function(e){return t===e}));if(!r){if(this.plugins.push(t),!l(t))throw new Error("Plugins must be function values that return objects");var n=t.call(this);if(!f(n))throw new Error("Plugins must return an object of function properties");a(n,(function(r,n){if(!l(r))throw new Error("Bad plugin property: "+n+" from plugin "+t.name+". Plugins should only return functions.");e._assignPluginFnProp(r,n)}))}}},addStorage:function(t){d("store.addStorage(storage) is deprecated. Use createStore([storages])"),this._addStorage(t)}},g=c(y,p,{plugins:[]});return g.raw={},a(g,(function(t,e){l(t)&&(g.raw[e]=s(g,t))})),a(t,(function(t){g._addStorage(t)})),a(e,(function(t){g._addPlugin(t)})),g}},69078:(t,e,r)=>{var n=s(),o=c(),i=u(),a="undefined"!==typeof window?window:r.g;function s(){return Object.assign?Object.assign:function(t,e,r,n){for(var o=1;o{t.exports=[r(39627),r(95347),r(34524),r(45580),r(58855),r(8728)]},45580:(t,e,r)=>{var n=r(69078),o=n.Global,i=n.trim;t.exports={name:"cookieStorage",read:s,write:u,each:c,remove:l,clearAll:f};var a=o.document;function s(t){if(!t||!p(t))return null;var e="(?:^|.*;\\s*)"+escape(t).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=\\s*((?:[^;](?!;))*[^;]?).*";return unescape(a.cookie.replace(new RegExp(e),"$1"))}function c(t){for(var e=a.cookie.split(/; ?/g),r=e.length-1;r>=0;r--)if(i(e[r])){var n=e[r].split("="),o=unescape(n[0]),s=unescape(n[1]);t(s,o)}}function u(t,e){t&&(a.cookie=escape(t)+"="+escape(e)+"; expires=Tue, 19 Jan 2038 03:14:07 GMT; path=/")}function l(t){t&&p(t)&&(a.cookie=escape(t)+"=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/")}function f(){c((function(t,e){l(e)}))}function p(t){return new RegExp("(?:^|;\\s*)"+escape(t).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=").test(a.cookie)}},39627:(t,e,r)=>{var n=r(69078),o=n.Global;function i(){return o.localStorage}function a(t){return i().getItem(t)}function s(t,e){return i().setItem(t,e)}function c(t){for(var e=i().length-1;e>=0;e--){var r=i().key(e);t(a(r),r)}}function u(t){return i().removeItem(t)}function l(){return i().clear()}t.exports={name:"localStorage",read:a,write:s,each:c,remove:u,clearAll:l}},8728:t=>{t.exports={name:"memoryStorage",read:r,write:n,each:o,remove:i,clearAll:a};var e={};function r(t){return e[t]}function n(t,r){e[t]=r}function o(t){for(var r in e)e.hasOwnProperty(r)&&t(e[r],r)}function i(t){delete e[t]}function a(t){e={}}},95347:(t,e,r)=>{var n=r(69078),o=n.Global;t.exports={name:"oldFF-globalStorage",read:a,write:s,each:c,remove:u,clearAll:l};var i=o.globalStorage;function a(t){return i[t]}function s(t,e){i[t]=e}function c(t){for(var e=i.length-1;e>=0;e--){var r=i.key(e);t(i[r],r)}}function u(t){return i.removeItem(t)}function l(){c((function(t,e){delete i[t]}))}},34524:(t,e,r)=>{var n=r(69078),o=n.Global;t.exports={name:"oldIE-userDataStorage",write:u,read:l,each:f,remove:p,clearAll:d};var i="storejs",a=o.document,s=y(),c=(o.navigator?o.navigator.userAgent:"").match(/ (MSIE 8|MSIE 9|MSIE 10)\./);function u(t,e){if(!c){var r=m(t);s((function(t){t.setAttribute(r,e),t.save(i)}))}}function l(t){if(!c){var e=m(t),r=null;return s((function(t){r=t.getAttribute(e)})),r}}function f(t){s((function(e){for(var r=e.XMLDocument.documentElement.attributes,n=r.length-1;n>=0;n--){var o=r[n];t(e.getAttribute(o.name),o.name)}}))}function p(t){var e=m(t);s((function(t){t.removeAttribute(e),t.save(i)}))}function d(){s((function(t){var e=t.XMLDocument.documentElement.attributes;t.load(i);for(var r=e.length-1;r>=0;r--)t.removeAttribute(e[r].name);t.save(i)}))}var h=new RegExp("[!\"#$%&'()*+,/\\\\:;<=>?@[\\]^`{|}~]","g");function m(t){return t.replace(/^\d/,"___$&").replace(h,"___")}function y(){if(!a||!a.documentElement||!a.documentElement.addBehavior)return null;var t,e,r,n="script";try{e=new ActiveXObject("htmlfile"),e.open(),e.write("<"+n+">document.w=window'),e.close(),t=e.w.frames[0].document,r=t.createElement("div")}catch(o){r=a.createElement("div"),t=a.body}return function(e){var n=[].slice.call(arguments,0);n.unshift(r),t.appendChild(r),r.addBehavior("#default#userData"),r.load(i),e.apply(this,n),t.removeChild(r)}}},58855:(t,e,r)=>{var n=r(69078),o=n.Global;function i(){return o.sessionStorage}function a(t){return i().getItem(t)}function s(t,e){return i().setItem(t,e)}function c(t){for(var e=i().length-1;e>=0;e--){var r=i().key(e);t(a(r),r)}}function u(t){return i().removeItem(t)}function l(){return i().clear()}t.exports={name:"sessionStorage",read:a,write:s,each:c,remove:u,clearAll:l}},69558:(t,e,r)=>{"use strict";r.d(e,{b:()=>s});var n=function(){return(n=Object.assign||function(t){for(var e,r=1,n=arguments.length;r{"use strict";r.d(e,{Z:()=>i});var n={bind:function(t,e){var r={event:"mousedown",transition:600};o(Object.keys(e.modifiers),r),t.addEventListener(r.event,(function(r){s(r,t,e.value)}));var i=e.value||n.color||"rgba(0, 0, 0, 0.35)",a=n.zIndex||"9999";function s(t,e){var n=e,o=parseInt(getComputedStyle(n).borderWidth.replace("px","")),s=n.getBoundingClientRect(),c=s.left,u=s.top,l=n.offsetWidth,f=n.offsetHeight,p=t.clientX-c,d=t.clientY-u,h=Math.max(p,l-p),m=Math.max(d,f-d),y=window.getComputedStyle(n),g=Math.sqrt(h*h+m*m),v=o>0?o:0,b=document.createElement("div"),w=document.createElement("div");w.className="ripple-container",b.className="ripple",b.style.marginTop="0px",b.style.marginLeft="0px",b.style.width="1px",b.style.height="1px",b.style.transition="all "+r.transition+"ms cubic-bezier(0.4, 0, 0.2, 1)",b.style.borderRadius="50%",b.style.pointerEvents="none",b.style.position="relative",b.style.zIndex=a,b.style.backgroundColor=i,w.style.position="absolute",w.style.left=0-v+"px",w.style.top=0-v+"px",w.style.height="0",w.style.width="0",w.style.pointerEvents="none",w.style.overflow="hidden";var E=n.style.position.length>0?n.style.position:getComputedStyle(n).position;function S(){setTimeout((function(){b.style.backgroundColor="rgba(0, 0, 0, 0)"}),250),setTimeout((function(){w.parentNode.removeChild(w)}),850),e.removeEventListener("mouseup",S,!1),setTimeout((function(){for(var t=!0,e=0;e{const n=r(20144),{inject:o,provide:i}=r(20144),a=Symbol("Vue Toastification");let s=()=>{const t=()=>console.warn("[Vue Toastification] This plugin does not support SSR!");return new Proxy(t,{get:function(){return t}})};if("undefined"!==typeof window){const t=r(41151);s=t.createToastInterface}const c=t=>{const e="undefined"===typeof n.prototype?n.default:n;return t instanceof e?s(t):void 0},u=t=>i(a,s(t)),l=t=>c(t)||o(a,c(t));t.exports={provideToast:u,useToast:l}},41151:(t,e,r)=>{"use strict";r.r(e),r.d(e,{POSITION:()=>o,TYPE:()=>n,createToastInterface:()=>Oe,default:()=>Ae});var n,o,i,a=r(20144); +var n="undefined"!==typeof window&&"undefined"!==typeof document&&"undefined"!==typeof navigator,o=function(){for(var t=["Edge","Trident","Firefox"],e=0;e=0)return 1;return 0}();function i(t){var e=!1;return function(){e||(e=!0,window.Promise.resolve().then((function(){e=!1,t()})))}}function a(t){var e=!1;return function(){e||(e=!0,setTimeout((function(){e=!1,t()}),o))}}var s=n&&window.Promise,c=s?i:a;function u(t){var e={};return t&&"[object Function]"===e.toString.call(t)}function l(t,e){if(1!==t.nodeType)return[];var r=t.ownerDocument.defaultView,n=r.getComputedStyle(t,null);return e?n[e]:n}function f(t){return"HTML"===t.nodeName?t:t.parentNode||t.host}function p(t){if(!t)return document.body;switch(t.nodeName){case"HTML":case"BODY":return t.ownerDocument.body;case"#document":return t.body}var e=l(t),r=e.overflow,n=e.overflowX,o=e.overflowY;return/(auto|scroll|overlay)/.test(r+o+n)?t:p(f(t))}function d(t){return t&&t.referenceNode?t.referenceNode:t}var h=n&&!(!window.MSInputMethodContext||!document.documentMode),m=n&&/MSIE 10/.test(navigator.userAgent);function y(t){return 11===t?h:10===t?m:h||m}function g(t){if(!t)return document.documentElement;var e=y(10)?document.body:null,r=t.offsetParent||null;while(r===e&&t.nextElementSibling)r=(t=t.nextElementSibling).offsetParent;var n=r&&r.nodeName;return n&&"BODY"!==n&&"HTML"!==n?-1!==["TH","TD","TABLE"].indexOf(r.nodeName)&&"static"===l(r,"position")?g(r):r:t?t.ownerDocument.documentElement:document.documentElement}function v(t){var e=t.nodeName;return"BODY"!==e&&("HTML"===e||g(t.firstElementChild)===t)}function b(t){return null!==t.parentNode?b(t.parentNode):t}function w(t,e){if(!t||!t.nodeType||!e||!e.nodeType)return document.documentElement;var r=t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_FOLLOWING,n=r?t:e,o=r?e:t,i=document.createRange();i.setStart(n,0),i.setEnd(o,0);var a=i.commonAncestorContainer;if(t!==a&&e!==a||n.contains(o))return v(a)?a:g(a);var s=b(t);return s.host?w(s.host,e):w(t,b(e).host)}function E(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"top",r="top"===e?"scrollTop":"scrollLeft",n=t.nodeName;if("BODY"===n||"HTML"===n){var o=t.ownerDocument.documentElement,i=t.ownerDocument.scrollingElement||o;return i[r]}return t[r]}function S(t,e){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=E(e,"top"),o=E(e,"left"),i=r?-1:1;return t.top+=n*i,t.bottom+=n*i,t.left+=o*i,t.right+=o*i,t}function O(t,e){var r="x"===e?"Left":"Top",n="Left"===r?"Right":"Bottom";return parseFloat(t["border"+r+"Width"])+parseFloat(t["border"+n+"Width"])}function T(t,e,r,n){return Math.max(e["offset"+t],e["scroll"+t],r["client"+t],r["offset"+t],r["scroll"+t],y(10)?parseInt(r["offset"+t])+parseInt(n["margin"+("Height"===t?"Top":"Left")])+parseInt(n["margin"+("Height"===t?"Bottom":"Right")]):0)}function A(t){var e=t.body,r=t.documentElement,n=y(10)&&getComputedStyle(r);return{height:T("Height",e,r,n),width:T("Width",e,r,n)}}var x=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},R=function(){function t(t,e){for(var r=0;r2&&void 0!==arguments[2]&&arguments[2],n=y(10),o="HTML"===e.nodeName,i=P(t),a=P(e),s=p(t),c=l(e),u=parseFloat(c.borderTopWidth),f=parseFloat(c.borderLeftWidth);r&&o&&(a.top=Math.max(a.top,0),a.left=Math.max(a.left,0));var d=N({top:i.top-a.top-u,left:i.left-a.left-f,width:i.width,height:i.height});if(d.marginTop=0,d.marginLeft=0,!n&&o){var h=parseFloat(c.marginTop),m=parseFloat(c.marginLeft);d.top-=u-h,d.bottom-=u-h,d.left-=f-m,d.right-=f-m,d.marginTop=h,d.marginLeft=m}return(n&&!r?e.contains(s):e===s&&"BODY"!==s.nodeName)&&(d=S(d,e)),d}function L(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=t.ownerDocument.documentElement,n=j(t,r),o=Math.max(r.clientWidth,window.innerWidth||0),i=Math.max(r.clientHeight,window.innerHeight||0),a=e?0:E(r),s=e?0:E(r,"left"),c={top:a-n.top+n.marginTop,left:s-n.left+n.marginLeft,width:o,height:i};return N(c)}function D(t){var e=t.nodeName;if("BODY"===e||"HTML"===e)return!1;if("fixed"===l(t,"position"))return!0;var r=f(t);return!!r&&D(r)}function I(t){if(!t||!t.parentElement||y())return document.documentElement;var e=t.parentElement;while(e&&"none"===l(e,"transform"))e=e.parentElement;return e||document.documentElement}function k(t,e,r,n){var o=arguments.length>4&&void 0!==arguments[4]&&arguments[4],i={top:0,left:0},a=o?I(t):w(t,d(e));if("viewport"===n)i=L(a,o);else{var s=void 0;"scrollParent"===n?(s=p(f(e)),"BODY"===s.nodeName&&(s=t.ownerDocument.documentElement)):s="window"===n?t.ownerDocument.documentElement:n;var c=j(s,a,o);if("HTML"!==s.nodeName||D(a))i=c;else{var u=A(t.ownerDocument),l=u.height,h=u.width;i.top+=c.top-c.marginTop,i.bottom=l+c.top,i.left+=c.left-c.marginLeft,i.right=h+c.left}}r=r||0;var m="number"===typeof r;return i.left+=m?r:r.left||0,i.top+=m?r:r.top||0,i.right-=m?r:r.right||0,i.bottom-=m?r:r.bottom||0,i}function B(t){var e=t.width,r=t.height;return e*r}function U(t,e,r,n,o){var i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;if(-1===t.indexOf("auto"))return t;var a=k(r,n,i,o),s={top:{width:a.width,height:e.top-a.top},right:{width:a.right-e.right,height:a.height},bottom:{width:a.width,height:a.bottom-e.bottom},left:{width:e.left-a.left,height:a.height}},c=Object.keys(s).map((function(t){return C({key:t},s[t],{area:B(s[t])})})).sort((function(t,e){return e.area-t.area})),u=c.filter((function(t){var e=t.width,n=t.height;return e>=r.clientWidth&&n>=r.clientHeight})),l=u.length>0?u[0].key:c[0].key,f=t.split("-")[1];return l+(f?"-"+f:"")}function F(t,e,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,o=n?I(e):w(e,d(r));return j(r,o,n)}function M(t){var e=t.ownerDocument.defaultView,r=e.getComputedStyle(t),n=parseFloat(r.marginTop||0)+parseFloat(r.marginBottom||0),o=parseFloat(r.marginLeft||0)+parseFloat(r.marginRight||0),i={width:t.offsetWidth+o,height:t.offsetHeight+n};return i}function $(t){var e={left:"right",right:"left",bottom:"top",top:"bottom"};return t.replace(/left|right|bottom|top/g,(function(t){return e[t]}))}function H(t,e,r){r=r.split("-")[0];var n=M(t),o={width:n.width,height:n.height},i=-1!==["right","left"].indexOf(r),a=i?"top":"left",s=i?"left":"top",c=i?"height":"width",u=i?"width":"height";return o[a]=e[a]+e[c]/2-n[c]/2,o[s]=r===s?e[s]-n[u]:e[$(s)],o}function W(t,e){return Array.prototype.find?t.find(e):t.filter(e)[0]}function z(t,e,r){if(Array.prototype.findIndex)return t.findIndex((function(t){return t[e]===r}));var n=W(t,(function(t){return t[e]===r}));return t.indexOf(n)}function q(t,e,r){var n=void 0===r?t:t.slice(0,z(t,"name",r));return n.forEach((function(t){t["function"]&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var r=t["function"]||t.fn;t.enabled&&u(r)&&(e.offsets.popper=N(e.offsets.popper),e.offsets.reference=N(e.offsets.reference),e=r(e,t))})),e}function G(){if(!this.state.isDestroyed){var t={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};t.offsets.reference=F(this.state,this.popper,this.reference,this.options.positionFixed),t.placement=U(this.options.placement,t.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),t.originalPlacement=t.placement,t.positionFixed=this.options.positionFixed,t.offsets.popper=H(this.popper,t.offsets.reference,t.placement),t.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",t=q(this.modifiers,t),this.state.isCreated?this.options.onUpdate(t):(this.state.isCreated=!0,this.options.onCreate(t))}}function V(t,e){return t.some((function(t){var r=t.name,n=t.enabled;return n&&r===e}))}function J(t){for(var e=[!1,"ms","Webkit","Moz","O"],r=t.charAt(0).toUpperCase()+t.slice(1),n=0;na[h]&&(t.offsets.popper[p]+=s[p]+m-a[h]),t.offsets.popper=N(t.offsets.popper);var y=s[p]+s[u]/2-m/2,g=l(t.instance.popper),v=parseFloat(g["margin"+f]),b=parseFloat(g["border"+f+"Width"]),w=y-t.offsets.popper[p]-v-b;return w=Math.max(Math.min(a[u]-m,w),0),t.arrowElement=n,t.offsets.arrow=(r={},_(r,p,Math.round(w)),_(r,d,""),r),t}function pt(t){return"end"===t?"start":"start"===t?"end":t}var dt=["auto-start","auto","auto-end","top-start","top","top-end","right-start","right","right-end","bottom-end","bottom","bottom-start","left-end","left","left-start"],ht=dt.slice(3);function mt(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=ht.indexOf(t),n=ht.slice(r+1).concat(ht.slice(0,r));return e?n.reverse():n}var yt={FLIP:"flip",CLOCKWISE:"clockwise",COUNTERCLOCKWISE:"counterclockwise"};function gt(t,e){if(V(t.instance.modifiers,"inner"))return t;if(t.flipped&&t.placement===t.originalPlacement)return t;var r=k(t.instance.popper,t.instance.reference,e.padding,e.boundariesElement,t.positionFixed),n=t.placement.split("-")[0],o=$(n),i=t.placement.split("-")[1]||"",a=[];switch(e.behavior){case yt.FLIP:a=[n,o];break;case yt.CLOCKWISE:a=mt(n);break;case yt.COUNTERCLOCKWISE:a=mt(n,!0);break;default:a=e.behavior}return a.forEach((function(s,c){if(n!==s||a.length===c+1)return t;n=t.placement.split("-")[0],o=$(n);var u=t.offsets.popper,l=t.offsets.reference,f=Math.floor,p="left"===n&&f(u.right)>f(l.left)||"right"===n&&f(u.left)f(l.top)||"bottom"===n&&f(u.top)f(r.right),m=f(u.top)f(r.bottom),g="left"===n&&d||"right"===n&&h||"top"===n&&m||"bottom"===n&&y,v=-1!==["top","bottom"].indexOf(n),b=!!e.flipVariations&&(v&&"start"===i&&d||v&&"end"===i&&h||!v&&"start"===i&&m||!v&&"end"===i&&y),w=!!e.flipVariationsByContent&&(v&&"start"===i&&h||v&&"end"===i&&d||!v&&"start"===i&&y||!v&&"end"===i&&m),E=b||w;(p||g||E)&&(t.flipped=!0,(p||g)&&(n=a[c+1]),E&&(i=pt(i)),t.placement=n+(i?"-"+i:""),t.offsets.popper=C({},t.offsets.popper,H(t.instance.popper,t.offsets.reference,t.placement)),t=q(t.instance.modifiers,t,"flip"))})),t}function vt(t){var e=t.offsets,r=e.popper,n=e.reference,o=t.placement.split("-")[0],i=Math.floor,a=-1!==["top","bottom"].indexOf(o),s=a?"right":"bottom",c=a?"left":"top",u=a?"width":"height";return r[s]i(n[s])&&(t.offsets.popper[c]=i(n[s])),t}function bt(t,e,r,n){var o=t.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),i=+o[1],a=o[2];if(!i)return t;if(0===a.indexOf("%")){var s=void 0;switch(a){case"%p":s=r;break;case"%":case"%r":default:s=n}var c=N(s);return c[e]/100*i}if("vh"===a||"vw"===a){var u=void 0;return u="vh"===a?Math.max(document.documentElement.clientHeight,window.innerHeight||0):Math.max(document.documentElement.clientWidth,window.innerWidth||0),u/100*i}return i}function wt(t,e,r,n){var o=[0,0],i=-1!==["right","left"].indexOf(n),a=t.split(/(\+|\-)/).map((function(t){return t.trim()})),s=a.indexOf(W(a,(function(t){return-1!==t.search(/,|\s/)})));a[s]&&-1===a[s].indexOf(",")&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var c=/\s*,\s*|\s+/,u=-1!==s?[a.slice(0,s).concat([a[s].split(c)[0]]),[a[s].split(c)[1]].concat(a.slice(s+1))]:[a];return u=u.map((function(t,n){var o=(1===n?!i:i)?"height":"width",a=!1;return t.reduce((function(t,e){return""===t[t.length-1]&&-1!==["+","-"].indexOf(e)?(t[t.length-1]=e,a=!0,t):a?(t[t.length-1]+=e,a=!1,t):t.concat(e)}),[]).map((function(t){return bt(t,o,e,r)}))})),u.forEach((function(t,e){t.forEach((function(r,n){rt(r)&&(o[e]+=r*("-"===t[n-1]?-1:1))}))})),o}function Et(t,e){var r=e.offset,n=t.placement,o=t.offsets,i=o.popper,a=o.reference,s=n.split("-")[0],c=void 0;return c=rt(+r)?[+r,0]:wt(r,i,a,s),"left"===s?(i.top+=c[0],i.left-=c[1]):"right"===s?(i.top+=c[0],i.left+=c[1]):"top"===s?(i.left+=c[0],i.top-=c[1]):"bottom"===s&&(i.left+=c[0],i.top+=c[1]),t.popper=i,t}function St(t,e){var r=e.boundariesElement||g(t.instance.popper);t.instance.reference===r&&(r=g(r));var n=J("transform"),o=t.instance.popper.style,i=o.top,a=o.left,s=o[n];o.top="",o.left="",o[n]="";var c=k(t.instance.popper,t.instance.reference,e.padding,r,t.positionFixed);o.top=i,o.left=a,o[n]=s,e.boundaries=c;var u=e.priority,l=t.offsets.popper,f={primary:function(t){var r=l[t];return l[t]c[t]&&!e.escapeWithReference&&(n=Math.min(l[r],c[t]-("right"===t?l.width:l.height))),_({},r,n)}};return u.forEach((function(t){var e=-1!==["left","top"].indexOf(t)?"primary":"secondary";l=C({},l,f[e](t))})),t.offsets.popper=l,t}function Ot(t){var e=t.placement,r=e.split("-")[0],n=e.split("-")[1];if(n){var o=t.offsets,i=o.reference,a=o.popper,s=-1!==["bottom","top"].indexOf(r),c=s?"left":"top",u=s?"width":"height",l={start:_({},c,i[c]),end:_({},c,i[c]+i[u]-a[u])};t.offsets.popper=C({},a,l[n])}return t}function Tt(t){if(!lt(t.instance.modifiers,"hide","preventOverflow"))return t;var e=t.offsets.reference,r=W(t.instance.modifiers,(function(t){return"preventOverflow"===t.name})).boundaries;if(e.bottomr.right||e.top>r.bottom||e.right2&&void 0!==arguments[2]?arguments[2]:{};x(this,t),this.scheduleUpdate=function(){return requestAnimationFrame(n.update)},this.update=c(this.update.bind(this)),this.options=C({},t.Defaults,o),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=e&&e.jquery?e[0]:e,this.popper=r&&r.jquery?r[0]:r,this.options.modifiers={},Object.keys(C({},t.Defaults.modifiers,o.modifiers)).forEach((function(e){n.options.modifiers[e]=C({},t.Defaults.modifiers[e]||{},o.modifiers?o.modifiers[e]:{})})),this.modifiers=Object.keys(this.options.modifiers).map((function(t){return C({name:t},n.options.modifiers[t])})).sort((function(t,e){return t.order-e.order})),this.modifiers.forEach((function(t){t.enabled&&u(t.onLoad)&&t.onLoad(n.reference,n.popper,n.options,t,n.state)})),this.update();var i=this.options.eventsEnabled;i&&this.enableEventListeners(),this.state.eventsEnabled=i}return R(t,[{key:"update",value:function(){return G.call(this)}},{key:"destroy",value:function(){return Y.call(this)}},{key:"enableEventListeners",value:function(){return Z.call(this)}},{key:"disableEventListeners",value:function(){return et.call(this)}}]),t}();_t.Utils=("undefined"!==typeof window?window:r.g).PopperUtils,_t.placements=dt,_t.Defaults=Rt;const Ct=_t},72433:(t,e,r)=>{"use strict";function n(t){return t&&"object"===typeof t&&"default"in t?t["default"]:t}var o=n(r(20144));function i(t){return i="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i(t)}function a(t){return s(t)||c(t)||u()}function s(t){if(Array.isArray(t)){for(var e=0,r=new Array(t.length);e1&&void 0!==arguments[1]?arguments[1]:{};return t.reduce((function(t,r){var n=r.passengers[0],o="function"===typeof n?n(e):r.passengers;return t.concat(o)}),[])}function d(t,e){return t.map((function(t,e){return[e,t]})).sort((function(t,r){return e(t[1],r[1])||t[0]-r[0]})).map((function(t){return t[1]}))}function h(t,e){return e.reduce((function(e,r){return t.hasOwnProperty(r)&&(e[r]=t[r]),e}),{})}var m={},y={},g={},v=o.extend({data:function(){return{transports:m,targets:y,sources:g,trackInstances:l}},methods:{open:function(t){if(l){var e=t.to,r=t.from,n=t.passengers,i=t.order,a=void 0===i?1/0:i;if(e&&r&&n){var s={to:e,from:r,passengers:f(n),order:a},c=Object.keys(this.transports);-1===c.indexOf(e)&&o.set(this.transports,e,[]);var u=this.$_getTransportIndex(s),p=this.transports[e].slice(0);-1===u?p.push(s):p[u]=s,this.transports[e]=d(p,(function(t,e){return t.order-e.order}))}}},close:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=t.to,n=t.from;if(r&&(n||!1!==e)&&this.transports[r])if(e)this.transports[r]=[];else{var o=this.$_getTransportIndex(t);if(o>=0){var i=this.transports[r].slice(0);i.splice(o,1),this.transports[r]=i}}},registerTarget:function(t,e,r){l&&(this.trackInstances&&!r&&this.targets[t]&&console.warn("[portal-vue]: Target ".concat(t," already exists")),this.$set(this.targets,t,Object.freeze([e])))},unregisterTarget:function(t){this.$delete(this.targets,t)},registerSource:function(t,e,r){l&&(this.trackInstances&&!r&&this.sources[t]&&console.warn("[portal-vue]: source ".concat(t," already exists")),this.$set(this.sources,t,Object.freeze([e])))},unregisterSource:function(t){this.$delete(this.sources,t)},hasTarget:function(t){return!(!this.targets[t]||!this.targets[t][0])},hasSource:function(t){return!(!this.sources[t]||!this.sources[t][0])},hasContentFor:function(t){return!!this.transports[t]&&!!this.transports[t].length},$_getTransportIndex:function(t){var e=t.to,r=t.from;for(var n in this.transports[e])if(this.transports[e][n].from===r)return+n;return-1}}}),b=new v(m),w=1,E=o.extend({name:"portal",props:{disabled:{type:Boolean},name:{type:String,default:function(){return String(w++)}},order:{type:Number,default:0},slim:{type:Boolean},slotProps:{type:Object,default:function(){return{}}},tag:{type:String,default:"DIV"},to:{type:String,default:function(){return String(Math.round(1e7*Math.random()))}}},created:function(){var t=this;this.$nextTick((function(){b.registerSource(t.name,t)}))},mounted:function(){this.disabled||this.sendUpdate()},updated:function(){this.disabled?this.clear():this.sendUpdate()},beforeDestroy:function(){b.unregisterSource(this.name),this.clear()},watch:{to:function(t,e){e&&e!==t&&this.clear(e),this.sendUpdate()}},methods:{clear:function(t){var e={from:this.name,to:t||this.to};b.close(e)},normalizeSlots:function(){return this.$scopedSlots.default?[this.$scopedSlots.default]:this.$slots.default},normalizeOwnChildren:function(t){return"function"===typeof t?t(this.slotProps):t},sendUpdate:function(){var t=this.normalizeSlots();if(t){var e={from:this.name,to:this.to,passengers:a(t),order:this.order};b.open(e)}else this.clear()}},render:function(t){var e=this.$slots.default||this.$scopedSlots.default||[],r=this.tag;return e&&this.disabled?e.length<=1&&this.slim?this.normalizeOwnChildren(e)[0]:t(r,[this.normalizeOwnChildren(e)]):this.slim?t():t(r,{class:{"v-portal":!0},style:{display:"none"},key:"v-portal-placeholder"})}}),S=o.extend({name:"portalTarget",props:{multiple:{type:Boolean,default:!1},name:{type:String,required:!0},slim:{type:Boolean,default:!1},slotProps:{type:Object,default:function(){return{}}},tag:{type:String,default:"div"},transition:{type:[String,Object,Function]}},data:function(){return{transports:b.transports,firstRender:!0}},created:function(){var t=this;this.$nextTick((function(){b.registerTarget(t.name,t)}))},watch:{ownTransports:function(){this.$emit("change",this.children().length>0)},name:function(t,e){b.unregisterTarget(e),b.registerTarget(t,this)}},mounted:function(){var t=this;this.transition&&this.$nextTick((function(){t.firstRender=!1}))},beforeDestroy:function(){b.unregisterTarget(this.name)},computed:{ownTransports:function(){var t=this.transports[this.name]||[];return this.multiple?t:0===t.length?[]:[t[t.length-1]]},passengers:function(){return p(this.ownTransports,this.slotProps)}},methods:{children:function(){return 0!==this.passengers.length?this.passengers:this.$scopedSlots.default?this.$scopedSlots.default(this.slotProps):this.$slots.default||[]},noWrapper:function(){var t=this.slim&&!this.transition;return t&&this.children().length>1&&console.warn("[portal-vue]: PortalTarget with `slim` option received more than one child element."),t}},render:function(t){var e=this.noWrapper(),r=this.children(),n=this.transition||this.tag;return e?r[0]:this.slim&&!n?t():t(n,{props:{tag:this.transition&&this.tag?this.tag:void 0},class:{"vue-portal-target":!0}},r)}}),O=0,T=["disabled","name","order","slim","slotProps","tag","to"],A=["multiple","transition"],x=o.extend({name:"MountingPortal",inheritAttrs:!1,props:{append:{type:[Boolean,String]},bail:{type:Boolean},mountTo:{type:String,required:!0},disabled:{type:Boolean},name:{type:String,default:function(){return"mounted_"+String(O++)}},order:{type:Number,default:0},slim:{type:Boolean},slotProps:{type:Object,default:function(){return{}}},tag:{type:String,default:"DIV"},to:{type:String,default:function(){return String(Math.round(1e7*Math.random()))}},multiple:{type:Boolean,default:!1},targetSlim:{type:Boolean},targetSlotProps:{type:Object,default:function(){return{}}},targetTag:{type:String,default:"div"},transition:{type:[String,Object,Function]}},created:function(){if("undefined"!==typeof document){var t=document.querySelector(this.mountTo);if(t){var e=this.$props;if(b.targets[e.name])e.bail?console.warn("[portal-vue]: Target ".concat(e.name," is already mounted.\n Aborting because 'bail: true' is set")):this.portalTarget=b.targets[e.name];else{var r=e.append;if(r){var n="string"===typeof r?r:"DIV",o=document.createElement(n);t.appendChild(o),t=o}var i=h(this.$props,A);i.slim=this.targetSlim,i.tag=this.targetTag,i.slotProps=this.targetSlotProps,i.name=this.to,this.portalTarget=new S({el:t,parent:this.$parent||this,propsData:i})}}else console.error("[portal-vue]: Mount Point '".concat(this.mountTo,"' not found in document"))}},beforeDestroy:function(){var t=this.portalTarget;if(this.append){var e=t.$el;e.parentNode.removeChild(e)}t.$destroy()},render:function(t){if(!this.portalTarget)return console.warn("[portal-vue] Target wasn't mounted"),t();if(!this.$scopedSlots.manual){var e=h(this.$props,T);return t(E,{props:e,attrs:this.$attrs,on:this.$listeners,scopedSlots:this.$scopedSlots},this.$slots.default)}var r=this.$scopedSlots.manual({to:this.to});return Array.isArray(r)&&(r=r[0]),r||t()}});function R(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t.component(e.portalName||"Portal",E),t.component(e.portalTargetName||"PortalTarget",S),t.component(e.MountingPortalName||"MountingPortal",x)}var _={install:R};e.ZP=_,e.h_=E,e.YC=S,e.Df=b},55798:t=>{"use strict";var e=String.prototype.replace,r=/%20/g,n={RFC1738:"RFC1738",RFC3986:"RFC3986"};t.exports={default:n.RFC3986,formatters:{RFC1738:function(t){return e.call(t,r,"+")},RFC3986:function(t){return String(t)}},RFC1738:n.RFC1738,RFC3986:n.RFC3986}},80129:(t,e,r)=>{"use strict";var n=r(58261),o=r(55235),i=r(55798);t.exports={formats:i,parse:o,stringify:n}},55235:(t,e,r)=>{"use strict";var n=r(12769),o=Object.prototype.hasOwnProperty,i=Array.isArray,a={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:n.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},s=function(t){return t.replace(/&#(\d+);/g,(function(t,e){return String.fromCharCode(parseInt(e,10))}))},c=function(t,e){return t&&"string"===typeof t&&e.comma&&t.indexOf(",")>-1?t.split(","):t},u="utf8=%26%2310003%3B",l="utf8=%E2%9C%93",f=function(t,e){var r,f={__proto__:null},p=e.ignoreQueryPrefix?t.replace(/^\?/,""):t,d=e.parameterLimit===1/0?void 0:e.parameterLimit,h=p.split(e.delimiter,d),m=-1,y=e.charset;if(e.charsetSentinel)for(r=0;r-1&&(v=i(v)?[v]:v),o.call(f,g)?f[g]=n.combine(f[g],v):f[g]=v}return f},p=function(t,e,r,n){for(var o=n?e:c(e,r),i=t.length-1;i>=0;--i){var a,s=t[i];if("[]"===s&&r.parseArrays)a=[].concat(o);else{a=r.plainObjects?Object.create(null):{};var u="["===s.charAt(0)&&"]"===s.charAt(s.length-1)?s.slice(1,-1):s,l=parseInt(u,10);r.parseArrays||""!==u?!isNaN(l)&&s!==u&&String(l)===u&&l>=0&&r.parseArrays&&l<=r.arrayLimit?(a=[],a[l]=o):"__proto__"!==u&&(a[u]=o):a={0:o}}o=a}return o},d=function(t,e,r,n){if(t){var i=r.allowDots?t.replace(/\.([^.[]+)/g,"[$1]"):t,a=/(\[[^[\]]*])/,s=/(\[[^[\]]*])/g,c=r.depth>0&&a.exec(i),u=c?i.slice(0,c.index):i,l=[];if(u){if(!r.plainObjects&&o.call(Object.prototype,u)&&!r.allowPrototypes)return;l.push(u)}var f=0;while(r.depth>0&&null!==(c=s.exec(i))&&f{"use strict";var n=r(37478),o=r(12769),i=r(55798),a=Object.prototype.hasOwnProperty,s={brackets:function(t){return t+"[]"},comma:"comma",indices:function(t,e){return t+"["+e+"]"},repeat:function(t){return t}},c=Array.isArray,u=Array.prototype.push,l=function(t,e){u.apply(t,c(e)?e:[e])},f=Date.prototype.toISOString,p=i["default"],d={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:o.encode,encodeValuesOnly:!1,format:p,formatter:i.formatters[p],indices:!1,serializeDate:function(t){return f.call(t)},skipNulls:!1,strictNullHandling:!1},h=function(t){return"string"===typeof t||"number"===typeof t||"boolean"===typeof t||"symbol"===typeof t||"bigint"===typeof t},m={},y=function t(e,r,i,a,s,u,f,p,y,g,v,b,w,E,S,O){var T=e,A=O,x=0,R=!1;while(void 0!==(A=A.get(m))&&!R){var _=A.get(e);if(x+=1,"undefined"!==typeof _){if(_===x)throw new RangeError("Cyclic object value");R=!0}"undefined"===typeof A.get(m)&&(x=0)}if("function"===typeof p?T=p(r,T):T instanceof Date?T=v(T):"comma"===i&&c(T)&&(T=o.maybeMap(T,(function(t){return t instanceof Date?v(t):t}))),null===T){if(s)return f&&!E?f(r,d.encoder,S,"key",b):r;T=""}if(h(T)||o.isBuffer(T)){if(f){var C=E?r:f(r,d.encoder,S,"key",b);return[w(C)+"="+w(f(T,d.encoder,S,"value",b))]}return[w(r)+"="+w(String(T))]}var N,P=[];if("undefined"===typeof T)return P;if("comma"===i&&c(T))E&&f&&(T=o.maybeMap(T,f)),N=[{value:T.length>0?T.join(",")||null:void 0}];else if(c(p))N=p;else{var j=Object.keys(T);N=y?j.sort(y):j}for(var L=a&&c(T)&&1===T.length?r+"[]":r,D=0;D0?w+b:""}},12769:(t,e,r)=>{"use strict";var n=r(55798),o=Object.prototype.hasOwnProperty,i=Array.isArray,a=function(){for(var t=[],e=0;e<256;++e)t.push("%"+((e<16?"0":"")+e.toString(16)).toUpperCase());return t}(),s=function(t){while(t.length>1){var e=t.pop(),r=e.obj[e.prop];if(i(r)){for(var n=[],o=0;o=48&&l<=57||l>=65&&l<=90||l>=97&&l<=122||i===n.RFC1738&&(40===l||41===l)?c+=s.charAt(u):l<128?c+=a[l]:l<2048?c+=a[192|l>>6]+a[128|63&l]:l<55296||l>=57344?c+=a[224|l>>12]+a[128|l>>6&63]+a[128|63&l]:(u+=1,l=65536+((1023&l)<<10|1023&s.charCodeAt(u)),c+=a[240|l>>18]+a[128|l>>12&63]+a[128|l>>6&63]+a[128|63&l])}return c},d=function(t){for(var e=[{obj:{o:t},prop:"o"}],r=[],n=0;n{"use strict";var n=r(40210),o=r(12296),i=r(31044)(),a=r(27296),s=r(14453),c=n("%Math.floor%");t.exports=function(t,e){if("function"!==typeof t)throw new s("`fn` is not a function");if("number"!==typeof e||e<0||e>4294967295||c(e)!==e)throw new s("`length` must be a positive 32-bit integer");var r=arguments.length>2&&!!arguments[2],n=!0,u=!0;if("length"in t&&a){var l=a(t,"length");l&&!l.configurable&&(n=!1),l&&!l.writable&&(u=!1)}return(n||u||!r)&&(i?o(t,"length",e,!0,!0):o(t,"length",e)),t}},37478:(t,e,r)=>{"use strict";var n=r(40210),o=r(21924),i=r(70631),a=r(14453),s=n("%WeakMap%",!0),c=n("%Map%",!0),u=o("WeakMap.prototype.get",!0),l=o("WeakMap.prototype.set",!0),f=o("WeakMap.prototype.has",!0),p=o("Map.prototype.get",!0),d=o("Map.prototype.set",!0),h=o("Map.prototype.has",!0),m=function(t,e){for(var r,n=t;null!==(r=n.next);n=r)if(r.key===e)return n.next=r.next,r.next=t.next,t.next=r,r},y=function(t,e){var r=m(t,e);return r&&r.value},g=function(t,e,r){var n=m(t,e);n?n.value=r:t.next={key:e,next:t.next,value:r}},v=function(t,e){return!!m(t,e)};t.exports=function(){var t,e,r,n={assert:function(t){if(!n.has(t))throw new a("Side channel does not contain "+i(t))},get:function(n){if(s&&n&&("object"===typeof n||"function"===typeof n)){if(t)return u(t,n)}else if(c){if(e)return p(e,n)}else if(r)return y(r,n)},has:function(n){if(s&&n&&("object"===typeof n||"function"===typeof n)){if(t)return f(t,n)}else if(c){if(e)return h(e,n)}else if(r)return v(r,n);return!1},set:function(n,o){s&&n&&("object"===typeof n||"function"===typeof n)?(t||(t=new s),l(t,n,o)):c?(e||(e=new c),d(e,n,o)):(r||(r={key:{},next:null}),g(r,n,o))}};return n}},58971:(t,e,r)=>{var n=r(62195),o=r(39015),i=[r(19257)];t.exports=n.createStore(o,i)},19257:(t,e,r)=>{function n(){return r(55703),{}}t.exports=n},55703:()=>{"object"!==typeof JSON&&(JSON={}),function(){"use strict";var rx_one=/^[\],:{}\s]*$/,rx_two=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,rx_three=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,rx_four=/(?:^|:|,)(?:\s*\[)+/g,rx_escapable=/[\\"\u0000-\u001f\u007f-\u009f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,rx_dangerous=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,gap,indent,meta,rep;function f(t){return t<10?"0"+t:t}function this_value(){return this.valueOf()}function quote(t){return rx_escapable.lastIndex=0,rx_escapable.test(t)?'"'+t.replace(rx_escapable,(function(t){var e=meta[t];return"string"===typeof e?e:"\\u"+("0000"+t.charCodeAt(0).toString(16)).slice(-4)}))+'"':'"'+t+'"'}function str(t,e){var r,n,o,i,a,s=gap,c=e[t];switch(c&&"object"===typeof c&&"function"===typeof c.toJSON&&(c=c.toJSON(t)),"function"===typeof rep&&(c=rep.call(e,t,c)),typeof c){case"string":return quote(c);case"number":return isFinite(c)?String(c):"null";case"boolean":case"null":return String(c);case"object":if(!c)return"null";if(gap+=indent,a=[],"[object Array]"===Object.prototype.toString.apply(c)){for(i=c.length,r=0;r{var n=r(69078),o=n.slice,i=n.pluck,a=n.each,s=n.bind,c=n.create,u=n.isList,l=n.isFunction,f=n.isObject;t.exports={createStore:h};var p={version:"2.0.12",enabled:!1,get:function(t,e){var r=this.storage.read(this._namespacePrefix+t);return this._deserialize(r,e)},set:function(t,e){return void 0===e?this.remove(t):(this.storage.write(this._namespacePrefix+t,this._serialize(e)),e)},remove:function(t){this.storage.remove(this._namespacePrefix+t)},each:function(t){var e=this;this.storage.each((function(r,n){t.call(e,e._deserialize(r),(n||"").replace(e._namespaceRegexp,""))}))},clearAll:function(){this.storage.clearAll()},hasNamespace:function(t){return this._namespacePrefix=="__storejs_"+t+"_"},createStore:function(){return h.apply(this,arguments)},addPlugin:function(t){this._addPlugin(t)},namespace:function(t){return h(this.storage,this.plugins,t)}};function d(){var t="undefined"==typeof console?null:console;if(t){var e=t.warn?t.warn:t.log;e.apply(t,arguments)}}function h(t,e,r){r||(r=""),t&&!u(t)&&(t=[t]),e&&!u(e)&&(e=[e]);var n=r?"__storejs_"+r+"_":"",h=r?new RegExp("^"+n):null,m=/^[a-zA-Z0-9_\-]*$/;if(!m.test(r))throw new Error("store.js namespaces can only have alphanumerics + underscores and dashes");var y={_namespacePrefix:n,_namespaceRegexp:h,_testStorage:function(t){try{var e="__storejs__test__";t.write(e,e);var r=t.read(e)===e;return t.remove(e),r}catch(n){return!1}},_assignPluginFnProp:function(t,e){var r=this[e];this[e]=function(){var e=o(arguments,0),n=this;function i(){if(r)return a(arguments,(function(t,r){e[r]=t})),r.apply(n,e)}var s=[i].concat(e);return t.apply(n,s)}},_serialize:function(t){return JSON.stringify(t)},_deserialize:function(t,e){if(!t)return e;var r="";try{r=JSON.parse(t)}catch(n){r=t}return void 0!==r?r:e},_addStorage:function(t){this.enabled||this._testStorage(t)&&(this.storage=t,this.enabled=!0)},_addPlugin:function(t){var e=this;if(u(t))a(t,(function(t){e._addPlugin(t)}));else{var r=i(this.plugins,(function(e){return t===e}));if(!r){if(this.plugins.push(t),!l(t))throw new Error("Plugins must be function values that return objects");var n=t.call(this);if(!f(n))throw new Error("Plugins must return an object of function properties");a(n,(function(r,n){if(!l(r))throw new Error("Bad plugin property: "+n+" from plugin "+t.name+". Plugins should only return functions.");e._assignPluginFnProp(r,n)}))}}},addStorage:function(t){d("store.addStorage(storage) is deprecated. Use createStore([storages])"),this._addStorage(t)}},g=c(y,p,{plugins:[]});return g.raw={},a(g,(function(t,e){l(t)&&(g.raw[e]=s(g,t))})),a(t,(function(t){g._addStorage(t)})),a(e,(function(t){g._addPlugin(t)})),g}},69078:(t,e,r)=>{var n=s(),o=c(),i=u(),a="undefined"!==typeof window?window:r.g;function s(){return Object.assign?Object.assign:function(t,e,r,n){for(var o=1;o{t.exports=[r(39627),r(95347),r(34524),r(45580),r(58855),r(8728)]},45580:(t,e,r)=>{var n=r(69078),o=n.Global,i=n.trim;t.exports={name:"cookieStorage",read:s,write:u,each:c,remove:l,clearAll:f};var a=o.document;function s(t){if(!t||!p(t))return null;var e="(?:^|.*;\\s*)"+escape(t).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=\\s*((?:[^;](?!;))*[^;]?).*";return unescape(a.cookie.replace(new RegExp(e),"$1"))}function c(t){for(var e=a.cookie.split(/; ?/g),r=e.length-1;r>=0;r--)if(i(e[r])){var n=e[r].split("="),o=unescape(n[0]),s=unescape(n[1]);t(s,o)}}function u(t,e){t&&(a.cookie=escape(t)+"="+escape(e)+"; expires=Tue, 19 Jan 2038 03:14:07 GMT; path=/")}function l(t){t&&p(t)&&(a.cookie=escape(t)+"=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/")}function f(){c((function(t,e){l(e)}))}function p(t){return new RegExp("(?:^|;\\s*)"+escape(t).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=").test(a.cookie)}},39627:(t,e,r)=>{var n=r(69078),o=n.Global;function i(){return o.localStorage}function a(t){return i().getItem(t)}function s(t,e){return i().setItem(t,e)}function c(t){for(var e=i().length-1;e>=0;e--){var r=i().key(e);t(a(r),r)}}function u(t){return i().removeItem(t)}function l(){return i().clear()}t.exports={name:"localStorage",read:a,write:s,each:c,remove:u,clearAll:l}},8728:t=>{t.exports={name:"memoryStorage",read:r,write:n,each:o,remove:i,clearAll:a};var e={};function r(t){return e[t]}function n(t,r){e[t]=r}function o(t){for(var r in e)e.hasOwnProperty(r)&&t(e[r],r)}function i(t){delete e[t]}function a(t){e={}}},95347:(t,e,r)=>{var n=r(69078),o=n.Global;t.exports={name:"oldFF-globalStorage",read:a,write:s,each:c,remove:u,clearAll:l};var i=o.globalStorage;function a(t){return i[t]}function s(t,e){i[t]=e}function c(t){for(var e=i.length-1;e>=0;e--){var r=i.key(e);t(i[r],r)}}function u(t){return i.removeItem(t)}function l(){c((function(t,e){delete i[t]}))}},34524:(t,e,r)=>{var n=r(69078),o=n.Global;t.exports={name:"oldIE-userDataStorage",write:u,read:l,each:f,remove:p,clearAll:d};var i="storejs",a=o.document,s=y(),c=(o.navigator?o.navigator.userAgent:"").match(/ (MSIE 8|MSIE 9|MSIE 10)\./);function u(t,e){if(!c){var r=m(t);s((function(t){t.setAttribute(r,e),t.save(i)}))}}function l(t){if(!c){var e=m(t),r=null;return s((function(t){r=t.getAttribute(e)})),r}}function f(t){s((function(e){for(var r=e.XMLDocument.documentElement.attributes,n=r.length-1;n>=0;n--){var o=r[n];t(e.getAttribute(o.name),o.name)}}))}function p(t){var e=m(t);s((function(t){t.removeAttribute(e),t.save(i)}))}function d(){s((function(t){var e=t.XMLDocument.documentElement.attributes;t.load(i);for(var r=e.length-1;r>=0;r--)t.removeAttribute(e[r].name);t.save(i)}))}var h=new RegExp("[!\"#$%&'()*+,/\\\\:;<=>?@[\\]^`{|}~]","g");function m(t){return t.replace(/^\d/,"___$&").replace(h,"___")}function y(){if(!a||!a.documentElement||!a.documentElement.addBehavior)return null;var t,e,r,n="script";try{e=new ActiveXObject("htmlfile"),e.open(),e.write("<"+n+">document.w=window'),e.close(),t=e.w.frames[0].document,r=t.createElement("div")}catch(o){r=a.createElement("div"),t=a.body}return function(e){var n=[].slice.call(arguments,0);n.unshift(r),t.appendChild(r),r.addBehavior("#default#userData"),r.load(i),e.apply(this,n),t.removeChild(r)}}},58855:(t,e,r)=>{var n=r(69078),o=n.Global;function i(){return o.sessionStorage}function a(t){return i().getItem(t)}function s(t,e){return i().setItem(t,e)}function c(t){for(var e=i().length-1;e>=0;e--){var r=i().key(e);t(a(r),r)}}function u(t){return i().removeItem(t)}function l(){return i().clear()}t.exports={name:"sessionStorage",read:a,write:s,each:c,remove:u,clearAll:l}},69558:(t,e,r)=>{"use strict";r.d(e,{b:()=>s});var n=function(){return(n=Object.assign||function(t){for(var e,r=1,n=arguments.length;r{"use strict";r.d(e,{Z:()=>i});var n={bind:function(t,e){var r={event:"mousedown",transition:600};o(Object.keys(e.modifiers),r),t.addEventListener(r.event,(function(r){s(r,t,e.value)}));var i=e.value||n.color||"rgba(0, 0, 0, 0.35)",a=n.zIndex||"9999";function s(t,e){var n=e,o=parseInt(getComputedStyle(n).borderWidth.replace("px","")),s=n.getBoundingClientRect(),c=s.left,u=s.top,l=n.offsetWidth,f=n.offsetHeight,p=t.clientX-c,d=t.clientY-u,h=Math.max(p,l-p),m=Math.max(d,f-d),y=window.getComputedStyle(n),g=Math.sqrt(h*h+m*m),v=o>0?o:0,b=document.createElement("div"),w=document.createElement("div");w.className="ripple-container",b.className="ripple",b.style.marginTop="0px",b.style.marginLeft="0px",b.style.width="1px",b.style.height="1px",b.style.transition="all "+r.transition+"ms cubic-bezier(0.4, 0, 0.2, 1)",b.style.borderRadius="50%",b.style.pointerEvents="none",b.style.position="relative",b.style.zIndex=a,b.style.backgroundColor=i,w.style.position="absolute",w.style.left=0-v+"px",w.style.top=0-v+"px",w.style.height="0",w.style.width="0",w.style.pointerEvents="none",w.style.overflow="hidden";var E=n.style.position.length>0?n.style.position:getComputedStyle(n).position;function S(){setTimeout((function(){b.style.backgroundColor="rgba(0, 0, 0, 0)"}),250),setTimeout((function(){w.parentNode.removeChild(w)}),850),e.removeEventListener("mouseup",S,!1),setTimeout((function(){for(var t=!0,e=0;e{const n=r(20144),{inject:o,provide:i}=r(20144),a=Symbol("Vue Toastification");let s=()=>{const t=()=>console.warn("[Vue Toastification] This plugin does not support SSR!");return new Proxy(t,{get:function(){return t}})};if("undefined"!==typeof window){const t=r(41151);s=t.createToastInterface}const c=t=>{const e="undefined"===typeof n.prototype?n.default:n;return t instanceof e?s(t):void 0},u=t=>i(a,s(t)),l=t=>c(t)||o(a,c(t));t.exports={provideToast:u,useToast:l}},41151:(t,e,r)=>{"use strict";r.r(e),r.d(e,{POSITION:()=>o,TYPE:()=>n,createToastInterface:()=>Oe,default:()=>Ae});var n,o,i,a=r(20144); /*! ***************************************************************************** Copyright (c) Microsoft Corporation. @@ -47,4 +47,4 @@ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. -***************************************************************************** */function s(t,e,r,n){function o(t){return t instanceof r?t:new r((function(e){e(t)}))}return new(r||(r=Promise))((function(r,i){function a(t){try{c(n.next(t))}catch(e){i(e)}}function s(t){try{c(n["throw"](t))}catch(e){i(e)}}function c(t){t.done?r(t.value):o(t.value).then(a,s)}c((n=n.apply(t,e||[])).next())}))}(function(t){t["SUCCESS"]="success",t["ERROR"]="error",t["WARNING"]="warning",t["INFO"]="info",t["DEFAULT"]="default"})(n||(n={})),function(t){t["TOP_LEFT"]="top-left",t["TOP_CENTER"]="top-center",t["TOP_RIGHT"]="top-right",t["BOTTOM_LEFT"]="bottom-left",t["BOTTOM_CENTER"]="bottom-center",t["BOTTOM_RIGHT"]="bottom-right"}(o||(o={})),function(t){t["ADD"]="add",t["DISMISS"]="dismiss",t["UPDATE"]="update",t["CLEAR"]="clear",t["UPDATE_DEFAULTS"]="update_defaults"}(i||(i={}));const c="Vue-Toastification",u={type:{type:String,default:n.DEFAULT},classNames:{type:[String,Array],default:()=>[]},trueBoolean:{type:Boolean,default:!0}},l={type:u.type,customIcon:{type:[String,Boolean,Object,Function],default:!0}},f={component:{type:[String,Object,Function,Boolean],default:"button"},classNames:u.classNames,showOnHover:Boolean,ariaLabel:{type:String,default:"close"}},p={timeout:{type:[Number,Boolean],default:5e3},hideProgressBar:Boolean,isRunning:Boolean},d={transition:{type:[Object,String],default:`${c}__bounce`},transitionDuration:{type:[Number,Object],default:750}},h={position:{type:String,default:o.TOP_RIGHT},draggable:u.trueBoolean,draggablePercent:{type:Number,default:.6},pauseOnFocusLoss:u.trueBoolean,pauseOnHover:u.trueBoolean,closeOnClick:u.trueBoolean,timeout:p.timeout,hideProgressBar:p.hideProgressBar,toastClassName:u.classNames,bodyClassName:u.classNames,icon:l.customIcon,closeButton:f.component,closeButtonClassName:f.classNames,showCloseButtonOnHover:f.showOnHover,accessibility:{type:Object,default:()=>({toastRole:"alert",closeButtonLabel:"close"})},rtl:Boolean,eventBus:Object},m={id:{type:[String,Number],required:!0},type:u.type,content:{type:[String,Object,Function],required:!0},onClick:Function,onClose:Function},y={container:{type:void 0,default:()=>document.body},newestOnTop:u.trueBoolean,maxToasts:{type:Number,default:20},transition:d.transition,transitionDuration:d.transitionDuration,toastDefaults:Object,filterBeforeCreate:{type:Function,default:t=>t},filterToasts:{type:Function,default:t=>t},containerClassName:u.classNames,onMounted:Function};var g={CORE_TOAST:h,TOAST:m,CONTAINER:y,PROGRESS_BAR:p,ICON:l,TRANSITION:d,CLOSE_BUTTON:f};const v=t=>"function"===typeof t,b=t=>"string"===typeof t,w=t=>b(t)&&t.trim().length>0,E=t=>"number"===typeof t,S=t=>"undefined"===typeof t,O=t=>"object"===typeof t&&null!==t,T=t=>j(t,"tag")&&w(t.tag),A=t=>window.TouchEvent&&t instanceof TouchEvent,x=t=>j(t,"component")&&N(t.component),R=t=>v(t)&&j(t,"cid"),_=t=>!!R(t)||!!O(t)&&(!(!t.extends&&!t._Ctor)||(!!b(t.template)||L(t))),C=t=>t instanceof a["default"]||_(t),N=t=>!S(t)&&(b(t)||C(t)||L(t)||T(t)||x(t)),P=t=>O(t)&&E(t.height)&&E(t.width)&&E(t.right)&&E(t.left)&&E(t.top)&&E(t.bottom),j=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),L=t=>j(t,"render")&&v(t.render),D=(t=>()=>t++)(0);function I(t){return A(t)?t.targetTouches[0].clientX:t.clientX}function k(t){return A(t)?t.targetTouches[0].clientY:t.clientY}const B=t=>{S(t.remove)?t.parentNode&&t.parentNode.removeChild(t):t.remove()},U=t=>x(t)?U(t.component):T(t)?{render(){return t}}:t;var F=a["default"].extend({props:g.PROGRESS_BAR,data(){return{hasClass:!0}},computed:{style(){return{animationDuration:`${this.timeout}ms`,animationPlayState:this.isRunning?"running":"paused",opacity:this.hideProgressBar?0:1}},cpClass(){return this.hasClass?`${c}__progress-bar`:""}},mounted(){this.$el.addEventListener("animationend",this.animationEnded)},beforeDestroy(){this.$el.removeEventListener("animationend",this.animationEnded)},methods:{animationEnded(){this.$emit("close-toast")}},watch:{timeout(){this.hasClass=!1,this.$nextTick((()=>this.hasClass=!0))}}});function M(t,e,r,n,o,i,a,s,c,u){"boolean"!==typeof a&&(c=s,s=a,a=!1);const l="function"===typeof r?r.options:r;let f;if(t&&t.render&&(l.render=t.render,l.staticRenderFns=t.staticRenderFns,l._compiled=!0,o&&(l.functional=!0)),n&&(l._scopeId=n),i?(f=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"===typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),e&&e.call(this,c(t)),t&&t._registeredComponents&&t._registeredComponents.add(i)},l._ssrRegister=f):e&&(f=a?function(t){e.call(this,u(t,this.$root.$options.shadowRoot))}:function(t){e.call(this,s(t))}),f)if(l.functional){const t=l.render;l.render=function(e,r){return f.call(r),t(e,r)}}else{const t=l.beforeCreate;l.beforeCreate=t?[].concat(t,f):[f]}return r}const $=F;var H=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{class:t.cpClass,style:t.style})},W=[];H._withStripped=!0;const z=void 0,q=void 0,G=void 0,V=!1,J=M({render:H,staticRenderFns:W},z,$,q,V,G,!1,void 0,void 0,void 0);var Y=a["default"].extend({props:g.CLOSE_BUTTON,computed:{buttonComponent(){return!1!==this.component?U(this.component):"button"},classes(){const t=[`${c}__close-button`];return this.showOnHover&&t.push("show-on-hover"),t.concat(this.classNames)}}});const X=Y;var K=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r(t.buttonComponent,t._g({tag:"component",class:t.classes,attrs:{"aria-label":t.ariaLabel}},t.$listeners),[t._v("\n ×\n")])},Q=[];K._withStripped=!0;const Z=void 0,tt=void 0,et=void 0,rt=!1,nt=M({render:K,staticRenderFns:Q},Z,X,tt,rt,et,!1,void 0,void 0,void 0);var ot={};const it=ot;var at=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("svg",{staticClass:"svg-inline--fa fa-check-circle fa-w-16",attrs:{"aria-hidden":"true",focusable:"false","data-prefix":"fas","data-icon":"check-circle",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"}},[r("path",{attrs:{fill:"currentColor",d:"M504 256c0 136.967-111.033 248-248 248S8 392.967 8 256 119.033 8 256 8s248 111.033 248 248zM227.314 387.314l184-184c6.248-6.248 6.248-16.379 0-22.627l-22.627-22.627c-6.248-6.249-16.379-6.249-22.628 0L216 308.118l-70.059-70.059c-6.248-6.248-16.379-6.248-22.628 0l-22.627 22.627c-6.248 6.248-6.248 16.379 0 22.627l104 104c6.249 6.249 16.379 6.249 22.628.001z"}})])},st=[];at._withStripped=!0;const ct=void 0,ut=void 0,lt=void 0,ft=!1,pt=M({render:at,staticRenderFns:st},ct,it,ut,ft,lt,!1,void 0,void 0,void 0);var dt={};const ht=dt;var mt=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("svg",{staticClass:"svg-inline--fa fa-info-circle fa-w-16",attrs:{"aria-hidden":"true",focusable:"false","data-prefix":"fas","data-icon":"info-circle",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"}},[r("path",{attrs:{fill:"currentColor",d:"M256 8C119.043 8 8 119.083 8 256c0 136.997 111.043 248 248 248s248-111.003 248-248C504 119.083 392.957 8 256 8zm0 110c23.196 0 42 18.804 42 42s-18.804 42-42 42-42-18.804-42-42 18.804-42 42-42zm56 254c0 6.627-5.373 12-12 12h-88c-6.627 0-12-5.373-12-12v-24c0-6.627 5.373-12 12-12h12v-64h-12c-6.627 0-12-5.373-12-12v-24c0-6.627 5.373-12 12-12h64c6.627 0 12 5.373 12 12v100h12c6.627 0 12 5.373 12 12v24z"}})])},yt=[];mt._withStripped=!0;const gt=void 0,vt=void 0,bt=void 0,wt=!1,Et=M({render:mt,staticRenderFns:yt},gt,ht,vt,wt,bt,!1,void 0,void 0,void 0);var St={};const Ot=St;var Tt=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("svg",{staticClass:"svg-inline--fa fa-exclamation-circle fa-w-16",attrs:{"aria-hidden":"true",focusable:"false","data-prefix":"fas","data-icon":"exclamation-circle",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"}},[r("path",{attrs:{fill:"currentColor",d:"M504 256c0 136.997-111.043 248-248 248S8 392.997 8 256C8 119.083 119.043 8 256 8s248 111.083 248 248zm-248 50c-25.405 0-46 20.595-46 46s20.595 46 46 46 46-20.595 46-46-20.595-46-46-46zm-43.673-165.346l7.418 136c.347 6.364 5.609 11.346 11.982 11.346h48.546c6.373 0 11.635-4.982 11.982-11.346l7.418-136c.375-6.874-5.098-12.654-11.982-12.654h-63.383c-6.884 0-12.356 5.78-11.981 12.654z"}})])},At=[];Tt._withStripped=!0;const xt=void 0,Rt=void 0,_t=void 0,Ct=!1,Nt=M({render:Tt,staticRenderFns:At},xt,Ot,Rt,Ct,_t,!1,void 0,void 0,void 0);var Pt={};const jt=Pt;var Lt=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("svg",{staticClass:"svg-inline--fa fa-exclamation-triangle fa-w-18",attrs:{"aria-hidden":"true",focusable:"false","data-prefix":"fas","data-icon":"exclamation-triangle",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 576 512"}},[r("path",{attrs:{fill:"currentColor",d:"M569.517 440.013C587.975 472.007 564.806 512 527.94 512H48.054c-36.937 0-59.999-40.055-41.577-71.987L246.423 23.985c18.467-32.009 64.72-31.951 83.154 0l239.94 416.028zM288 354c-25.405 0-46 20.595-46 46s20.595 46 46 46 46-20.595 46-46-20.595-46-46-46zm-43.673-165.346l7.418 136c.347 6.364 5.609 11.346 11.982 11.346h48.546c6.373 0 11.635-4.982 11.982-11.346l7.418-136c.375-6.874-5.098-12.654-11.982-12.654h-63.383c-6.884 0-12.356 5.78-11.981 12.654z"}})])},Dt=[];Lt._withStripped=!0;const It=void 0,kt=void 0,Bt=void 0,Ut=!1,Ft=M({render:Lt,staticRenderFns:Dt},It,jt,kt,Ut,Bt,!1,void 0,void 0,void 0);var Mt=a["default"].extend({props:g.ICON,computed:{customIconChildren(){return j(this.customIcon,"iconChildren")?this.trimValue(this.customIcon.iconChildren):""},customIconClass(){return b(this.customIcon)?this.trimValue(this.customIcon):j(this.customIcon,"iconClass")?this.trimValue(this.customIcon.iconClass):""},customIconTag(){return j(this.customIcon,"iconTag")?this.trimValue(this.customIcon.iconTag,"i"):"i"},hasCustomIcon(){return this.customIconClass.length>0},component(){return this.hasCustomIcon?this.customIconTag:N(this.customIcon)?U(this.customIcon):this.iconTypeComponent},iconTypeComponent(){const t={[n.DEFAULT]:Et,[n.INFO]:Et,[n.SUCCESS]:pt,[n.ERROR]:Ft,[n.WARNING]:Nt};return t[this.type]},iconClasses(){const t=[`${c}__icon`];return this.hasCustomIcon?t.concat(this.customIconClass):t}},methods:{trimValue(t,e=""){return w(t)?t.trim():e}}});const $t=Mt;var Ht=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r(t.component,{tag:"component",class:t.iconClasses},[t._v(t._s(t.customIconChildren))])},Wt=[];Ht._withStripped=!0;const zt=void 0,qt=void 0,Gt=void 0,Vt=!1,Jt=M({render:Ht,staticRenderFns:Wt},zt,$t,qt,Vt,Gt,!1,void 0,void 0,void 0);var Yt=a["default"].extend({components:{ProgressBar:J,CloseButton:nt,Icon:Jt},inheritAttrs:!1,props:Object.assign({},g.CORE_TOAST,g.TOAST),data(){const t={isRunning:!0,disableTransitions:!1,beingDragged:!1,dragStart:0,dragPos:{x:0,y:0},dragRect:{}};return t},computed:{classes(){const t=[`${c}__toast`,`${c}__toast--${this.type}`,`${this.position}`].concat(this.toastClassName);return this.disableTransitions&&t.push("disable-transition"),this.rtl&&t.push(`${c}__toast--rtl`),t},bodyClasses(){const t=[`${c}__toast-${b(this.content)?"body":"component-body"}`].concat(this.bodyClassName);return t},draggableStyle(){return this.dragStart===this.dragPos.x?{}:this.beingDragged?{transform:`translateX(${this.dragDelta}px)`,opacity:1-Math.abs(this.dragDelta/this.removalDistance)}:{transition:"transform 0.2s, opacity 0.2s",transform:"translateX(0)",opacity:1}},dragDelta(){return this.beingDragged?this.dragPos.x-this.dragStart:0},removalDistance(){return P(this.dragRect)?(this.dragRect.right-this.dragRect.left)*this.draggablePercent:0}},mounted(){this.draggable&&this.draggableSetup(),this.pauseOnFocusLoss&&this.focusSetup()},beforeDestroy(){this.draggable&&this.draggableCleanup(),this.pauseOnFocusLoss&&this.focusCleanup()},destroyed(){setTimeout((()=>{B(this.$el)}),1e3)},methods:{getVueComponentFromObj:U,closeToast(){this.eventBus.$emit(i.DISMISS,this.id)},clickHandler(){this.onClick&&this.onClick(this.closeToast),this.closeOnClick&&(this.beingDragged&&this.dragStart!==this.dragPos.x||this.closeToast())},timeoutHandler(){this.closeToast()},hoverPause(){this.pauseOnHover&&(this.isRunning=!1)},hoverPlay(){this.pauseOnHover&&(this.isRunning=!0)},focusPause(){this.isRunning=!1},focusPlay(){this.isRunning=!0},focusSetup(){addEventListener("blur",this.focusPause),addEventListener("focus",this.focusPlay)},focusCleanup(){removeEventListener("blur",this.focusPause),removeEventListener("focus",this.focusPlay)},draggableSetup(){const t=this.$el;t.addEventListener("touchstart",this.onDragStart,{passive:!0}),t.addEventListener("mousedown",this.onDragStart),addEventListener("touchmove",this.onDragMove,{passive:!1}),addEventListener("mousemove",this.onDragMove),addEventListener("touchend",this.onDragEnd),addEventListener("mouseup",this.onDragEnd)},draggableCleanup(){const t=this.$el;t.removeEventListener("touchstart",this.onDragStart),t.removeEventListener("mousedown",this.onDragStart),removeEventListener("touchmove",this.onDragMove),removeEventListener("mousemove",this.onDragMove),removeEventListener("touchend",this.onDragEnd),removeEventListener("mouseup",this.onDragEnd)},onDragStart(t){this.beingDragged=!0,this.dragPos={x:I(t),y:k(t)},this.dragStart=I(t),this.dragRect=this.$el.getBoundingClientRect()},onDragMove(t){this.beingDragged&&(t.preventDefault(),this.isRunning&&(this.isRunning=!1),this.dragPos={x:I(t),y:k(t)})},onDragEnd(){this.beingDragged&&(Math.abs(this.dragDelta)>=this.removalDistance?(this.disableTransitions=!0,this.$nextTick((()=>this.closeToast()))):setTimeout((()=>{this.beingDragged=!1,P(this.dragRect)&&this.pauseOnHover&&this.dragRect.bottom>=this.dragPos.y&&this.dragPos.y>=this.dragRect.top&&this.dragRect.left<=this.dragPos.x&&this.dragPos.x<=this.dragRect.right?this.isRunning=!1:this.isRunning=!0})))}}});const Xt=Yt;var Kt=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{class:t.classes,style:t.draggableStyle,on:{click:t.clickHandler,mouseenter:t.hoverPause,mouseleave:t.hoverPlay}},[t.icon?r("Icon",{attrs:{"custom-icon":t.icon,type:t.type}}):t._e(),t._v(" "),r("div",{class:t.bodyClasses,attrs:{role:t.accessibility.toastRole||"alert"}},["string"===typeof t.content?[t._v(t._s(t.content))]:r(t.getVueComponentFromObj(t.content),t._g(t._b({tag:"component",attrs:{"toast-id":t.id},on:{"close-toast":t.closeToast}},"component",t.content.props,!1),t.content.listeners))],2),t._v(" "),t.closeButton?r("CloseButton",{attrs:{component:t.closeButton,"class-names":t.closeButtonClassName,"show-on-hover":t.showCloseButtonOnHover,"aria-label":t.accessibility.closeButtonLabel},on:{click:function(e){return e.stopPropagation(),t.closeToast(e)}}}):t._e(),t._v(" "),t.timeout?r("ProgressBar",{attrs:{"is-running":t.isRunning,"hide-progress-bar":t.hideProgressBar,timeout:t.timeout},on:{"close-toast":t.timeoutHandler}}):t._e()],1)},Qt=[];Kt._withStripped=!0;const Zt=void 0,te=void 0,ee=void 0,re=!1,ne=M({render:Kt,staticRenderFns:Qt},Zt,Xt,te,re,ee,!1,void 0,void 0,void 0);var oe=a["default"].extend({inheritAttrs:!1,props:g.TRANSITION,methods:{beforeEnter(t){const e="number"===typeof this.transitionDuration?this.transitionDuration:this.transitionDuration.enter;t.style.animationDuration=`${e}ms`,t.style.animationFillMode="both",this.$emit("before-enter",t)},afterEnter(t){this.cleanUpStyles(t),this.$emit("after-enter",t)},afterLeave(t){this.cleanUpStyles(t),this.$emit("after-leave",t)},beforeLeave(t){const e="number"===typeof this.transitionDuration?this.transitionDuration:this.transitionDuration.leave;t.style.animationDuration=`${e}ms`,t.style.animationFillMode="both",this.$emit("before-leave",t)},leave(t,e){this.setAbsolutePosition(t),this.$emit("leave",t,e)},setAbsolutePosition(t){t.style.left=t.offsetLeft+"px",t.style.top=t.offsetTop+"px",t.style.width=getComputedStyle(t).width,t.style.height=getComputedStyle(t).height,t.style.position="absolute"},cleanUpStyles(t){t.style.animationFillMode="",t.style.animationDuration=""}}});const ie=oe;var ae=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("transition-group",{attrs:{tag:"div","enter-active-class":t.transition.enter?t.transition.enter:t.transition+"-enter-active","move-class":t.transition.move?t.transition.move:t.transition+"-move","leave-active-class":t.transition.leave?t.transition.leave:t.transition+"-leave-active"},on:{leave:t.leave,"before-enter":t.beforeEnter,"before-leave":t.beforeLeave,"after-enter":t.afterEnter,"after-leave":t.afterLeave}},[t._t("default")],2)},se=[];ae._withStripped=!0;const ce=void 0,ue=void 0,le=void 0,fe=!1,pe=M({render:ae,staticRenderFns:se},ce,ie,ue,fe,le,!1,void 0,void 0,void 0);var de=a["default"].extend({components:{Toast:ne,VtTransition:pe},props:Object.assign({},g.CORE_TOAST,g.CONTAINER,g.TRANSITION),data(){const t={count:0,positions:Object.values(o),toasts:{},defaults:{}};return t},computed:{toastArray(){return Object.values(this.toasts)},filteredToasts(){return this.defaults.filterToasts(this.toastArray)}},beforeMount(){this.setup(this.container);const t=this.eventBus;t.$on(i.ADD,this.addToast),t.$on(i.CLEAR,this.clearToasts),t.$on(i.DISMISS,this.dismissToast),t.$on(i.UPDATE,this.updateToast),t.$on(i.UPDATE_DEFAULTS,this.updateDefaults),this.defaults=this.$props},methods:{setup(t){return s(this,void 0,void 0,(function*(){v(t)&&(t=yield t()),B(this.$el),t.appendChild(this.$el)}))},setToast(t){S(t.id)||this.$set(this.toasts,t.id,t)},addToast(t){const e=Object.assign({},this.defaults,t.type&&this.defaults.toastDefaults&&this.defaults.toastDefaults[t.type],t),r=this.defaults.filterBeforeCreate(e,this.toastArray);r&&this.setToast(r)},dismissToast(t){const e=this.toasts[t];S(e)||S(e.onClose)||e.onClose(),this.$delete(this.toasts,t)},clearToasts(){Object.keys(this.toasts).forEach((t=>{this.dismissToast(t)}))},getPositionToasts(t){const e=this.filteredToasts.filter((e=>e.position===t)).slice(0,this.defaults.maxToasts);return this.defaults.newestOnTop?e.reverse():e},updateDefaults(t){S(t.container)||this.setup(t.container),this.defaults=Object.assign({},this.defaults,t)},updateToast({id:t,options:e,create:r}){this.toasts[t]?(e.timeout&&e.timeout===this.toasts[t].timeout&&e.timeout++,this.setToast(Object.assign({},this.toasts[t],e))):r&&this.addToast(Object.assign({},{id:t},e))},getClasses(t){const e=[`${c}__container`,t];return e.concat(this.defaults.containerClassName)}}});const he=de;var me=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",t._l(t.positions,(function(e){return r("div",{key:e},[r("VtTransition",{class:t.getClasses(e),attrs:{transition:t.defaults.transition,"transition-duration":t.defaults.transitionDuration}},t._l(t.getPositionToasts(e),(function(e){return r("Toast",t._b({key:e.id},"Toast",e,!1))})),1)],1)})),0)},ye=[];me._withStripped=!0;const ge=void 0,ve=void 0,be=void 0,we=!1,Ee=M({render:me,staticRenderFns:ye},ge,he,ve,we,be,!1,void 0,void 0,void 0),Se=(t,e={},r=!0)=>{const o=e.eventBus=e.eventBus||new t;if(r){const r=new(t.extend(Ee))({el:document.createElement("div"),propsData:e}),n=e.onMounted;S(n)||n(r)}const a=(t,e)=>{const r=Object.assign({},{id:D(),type:n.DEFAULT},e,{content:t});return o.$emit(i.ADD,r),r.id};function s(t,{content:e,options:r},n=!1){o.$emit(i.UPDATE,{id:t,options:Object.assign({},r,{content:e}),create:n})}return a.clear=()=>o.$emit(i.CLEAR),a.updateDefaults=t=>{o.$emit(i.UPDATE_DEFAULTS,t)},a.dismiss=t=>{o.$emit(i.DISMISS,t)},a.update=s,a.success=(t,e)=>a(t,Object.assign({},e,{type:n.SUCCESS})),a.info=(t,e)=>a(t,Object.assign({},e,{type:n.INFO})),a.error=(t,e)=>a(t,Object.assign({},e,{type:n.ERROR})),a.warning=(t,e)=>a(t,Object.assign({},e,{type:n.WARNING})),a};function Oe(t,e=a["default"]){const r=t=>t instanceof e;return r(t)?Se(e,{eventBus:t},!1):Se(e,t,!0)}const Te=(t,e)=>{const r=Oe(e,t);t.$toast=r,t.prototype.$toast=r},Ae=Te},52829:(t,e,r)=>{"use strict";r.d(e,{VPI:()=>A,Zaf:()=>R,baj:()=>_,iPe:()=>C});var n=r(20144);n["default"].util.warn;function o(t){return!!(0,n.getCurrentScope)()&&((0,n.onScopeDispose)(t),!0)}function i(t){return"function"===typeof t?t():(0,n.unref)(t)}const a="undefined"!==typeof window&&"undefined"!==typeof document,s=("undefined"!==typeof WorkerGlobalScope&&(globalThis,WorkerGlobalScope),Object.prototype.toString),c=t=>"[object Object]"===s.call(t),u=()=>{};function l(t){const e=Object.create(null);return r=>{const n=e[r];return n||(e[r]=t(r))}}const f=/\B([A-Z])/g,p=(l((t=>t.replace(f,"-$1").toLowerCase())),/-(\w)/g);l((t=>t.replace(p,((t,e)=>e?e.toUpperCase():""))));function d(t){let e;function r(){return e||(e=t()),e}return r.reset=async()=>{const t=e;e=void 0,t&&await t},r}function h(t){return t||(0,n.getCurrentInstance)()}function m(t,e=!0,r){const o=h();o?(0,n.onMounted)(t,r):e?t():(0,n.nextTick)(t)}function y(t,e,r={}){const{immediate:s=!0}=r,c=(0,n.ref)(!1);let u=null;function l(){u&&(clearTimeout(u),u=null)}function f(){c.value=!1,l()}function p(...r){l(),c.value=!0,u=setTimeout((()=>{c.value=!1,u=null,t(...r)}),i(e))}return s&&(c.value=!0,a&&p()),o(f),{isPending:(0,n.readonly)(c),start:p,stop:f}}n["default"].util.warn;function g(t){var e;const r=i(t);return null!=(e=null==r?void 0:r.$el)?e:r}const v=a?window:void 0,b=(a&&window.document,a?window.navigator:void 0);a&&window.location;function w(...t){let e,r,a,s;if("string"===typeof t[0]||Array.isArray(t[0])?([r,a,s]=t,e=v):[e,r,a,s]=t,!e)return u;Array.isArray(r)||(r=[r]),Array.isArray(a)||(a=[a]);const l=[],f=()=>{l.forEach((t=>t())),l.length=0},p=(t,e,r,n)=>(t.addEventListener(e,r,n),()=>t.removeEventListener(e,r,n)),d=(0,n.watch)((()=>[g(e),i(s)]),(([t,e])=>{if(f(),!t)return;const n=c(e)?{...e}:e;l.push(...r.flatMap((e=>a.map((r=>p(t,e,r,n))))))}),{immediate:!0,flush:"post"}),h=()=>{d(),f()};return o(h),h}function E(){const t=(0,n.ref)(!1);return(0,n.getCurrentInstance)()&&(0,n.onMounted)((()=>{t.value=!0})),t}function S(t){const e=E();return(0,n.computed)((()=>(e.value,Boolean(t()))))}function O(t,e={}){const{window:r=v}=e,a=S((()=>r&&"matchMedia"in r&&"function"===typeof r.matchMedia));let s;const c=(0,n.ref)(!1),u=t=>{c.value=t.matches},l=()=>{s&&("removeEventListener"in s?s.removeEventListener("change",u):s.removeListener(u))},f=(0,n.watchEffect)((()=>{a.value&&(l(),s=r.matchMedia(i(t)),"addEventListener"in s?s.addEventListener("change",u):s.addListener(u),c.value=s.matches)}));return o((()=>{f(),l(),s=void 0})),c}function T(t,e={}){const{controls:r=!1,navigator:o=b}=e,i=S((()=>o&&"permissions"in o));let a;const s="string"===typeof t?{name:t}:t,c=(0,n.ref)(),u=()=>{a&&(c.value=a.state)},l=d((async()=>{if(i.value){if(!a)try{a=await o.permissions.query(s),w(a,"change",u),u()}catch(t){c.value="prompt"}return a}}));return l(),r?{state:c,isSupported:i,query:l}:c}function A(t={}){const{navigator:e=b,read:r=!1,source:o,copiedDuring:a=1500,legacy:s=!1}=t,c=S((()=>e&&"clipboard"in e)),u=T("clipboard-read"),l=T("clipboard-write"),f=(0,n.computed)((()=>c.value||s)),p=(0,n.ref)(""),d=(0,n.ref)(!1),h=y((()=>d.value=!1),a);function m(){c.value&&"denied"!==u.value?e.clipboard.readText().then((t=>{p.value=t})):p.value=E()}async function g(t=i(o)){f.value&&null!=t&&(c.value&&"denied"!==l.value?await e.clipboard.writeText(t):v(t),p.value=t,d.value=!0,h.start())}function v(t){const e=document.createElement("textarea");e.value=null!=t?t:"",e.style.position="absolute",e.style.opacity="0",document.body.appendChild(e),e.select(),document.execCommand("copy"),e.remove()}function E(){var t,e,r;return null!=(r=null==(e=null==(t=null==document?void 0:document.getSelection)?void 0:t.call(document))?void 0:e.toString())?r:""}return f.value&&r&&w(["copy","cut"],m),{isSupported:f,text:p,copied:d,copy:g}}"undefined"!==typeof globalThis?globalThis:"undefined"!==typeof window?window:"undefined"!==typeof global?global:"undefined"!==typeof self&&self;function x(t,e,r={}){const{window:i=v,...a}=r;let s;const c=S((()=>i&&"MutationObserver"in i)),u=()=>{s&&(s.disconnect(),s=void 0)},l=(0,n.watch)((()=>g(t)),(t=>{u(),c.value&&i&&t&&(s=new MutationObserver(e),s.observe(t,a))}),{immediate:!0}),f=()=>null==s?void 0:s.takeRecords(),p=()=>{u(),l()};return o(p),{isSupported:c,stop:p,takeRecords:f}}function R(t,e,r={}){const{window:o=v,initialValue:a="",observe:s=!1}=r,c=(0,n.ref)(a),u=(0,n.computed)((()=>{var t;return g(e)||(null==(t=null==o?void 0:o.document)?void 0:t.documentElement)}));function l(){var e;const r=i(t),n=i(u);if(n&&o){const t=null==(e=o.getComputedStyle(n).getPropertyValue(r))?void 0:e.trim();c.value=t||a}}return s&&x(u,l,{attributeFilter:["style","class"],window:o}),(0,n.watch)([u,()=>i(t)],l,{immediate:!0}),(0,n.watch)(c,(e=>{var r;(null==(r=u.value)?void 0:r.style)&&u.value.style.setProperty(i(t),e)})),c}Number.POSITIVE_INFINITY;function _(t={}){const{window:e=v,behavior:r="auto"}=t;if(!e)return{x:(0,n.ref)(0),y:(0,n.ref)(0)};const o=(0,n.ref)(e.scrollX),i=(0,n.ref)(e.scrollY),a=(0,n.computed)({get(){return o.value},set(t){scrollTo({left:t,behavior:r})}}),s=(0,n.computed)({get(){return i.value},set(t){scrollTo({top:t,behavior:r})}});return w(e,"scroll",(()=>{o.value=e.scrollX,i.value=e.scrollY}),{capture:!1,passive:!0}),{x:a,y:s}}function C(t={}){const{window:e=v,initialWidth:r=Number.POSITIVE_INFINITY,initialHeight:o=Number.POSITIVE_INFINITY,listenOrientation:i=!0,includeScrollbar:a=!0}=t,s=(0,n.ref)(r),c=(0,n.ref)(o),u=()=>{e&&(a?(s.value=e.innerWidth,c.value=e.innerHeight):(s.value=e.document.documentElement.clientWidth,c.value=e.document.documentElement.clientHeight))};if(u(),m(u),w("resize",u,{passive:!0}),i){const t=O("(orientation: portrait)");(0,n.watch)(t,(()=>u()))}return{width:s,height:c}}},87066:(t,e,r)=>{"use strict";r.d(e,{default:()=>dr});var n={};function o(t,e){return function(){return t.apply(e,arguments)}}r.r(n),r.d(n,{hasBrowserEnv:()=>Bt,hasStandardBrowserEnv:()=>Ut,hasStandardBrowserWebWorkerEnv:()=>Ft,origin:()=>Mt});const{toString:i}=Object.prototype,{getPrototypeOf:a}=Object,s=(t=>e=>{const r=i.call(e);return t[r]||(t[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),c=t=>(t=t.toLowerCase(),e=>s(e)===t),u=t=>e=>typeof e===t,{isArray:l}=Array,f=u("undefined");function p(t){return null!==t&&!f(t)&&null!==t.constructor&&!f(t.constructor)&&y(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const d=c("ArrayBuffer");function h(t){let e;return e="undefined"!==typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer&&d(t.buffer),e}const m=u("string"),y=u("function"),g=u("number"),v=t=>null!==t&&"object"===typeof t,b=t=>!0===t||!1===t,w=t=>{if("object"!==s(t))return!1;const e=a(t);return(null===e||e===Object.prototype||null===Object.getPrototypeOf(e))&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)},E=c("Date"),S=c("File"),O=c("Blob"),T=c("FileList"),A=t=>v(t)&&y(t.pipe),x=t=>{let e;return t&&("function"===typeof FormData&&t instanceof FormData||y(t.append)&&("formdata"===(e=s(t))||"object"===e&&y(t.toString)&&"[object FormData]"===t.toString()))},R=c("URLSearchParams"),[_,C,N,P]=["ReadableStream","Request","Response","Headers"].map(c),j=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function L(t,e,{allOwnKeys:r=!1}={}){if(null===t||"undefined"===typeof t)return;let n,o;if("object"!==typeof t&&(t=[t]),l(t))for(n=0,o=t.length;n0)if(n=r[o],e===n.toLowerCase())return n;return null}const I=(()=>"undefined"!==typeof globalThis?globalThis:"undefined"!==typeof self?self:"undefined"!==typeof window?window:global)(),k=t=>!f(t)&&t!==I;function B(){const{caseless:t}=k(this)&&this||{},e={},r=(r,n)=>{const o=t&&D(e,n)||n;w(e[o])&&w(r)?e[o]=B(e[o],r):w(r)?e[o]=B({},r):l(r)?e[o]=r.slice():e[o]=r};for(let n=0,o=arguments.length;n(L(e,((e,n)=>{r&&y(e)?t[n]=o(e,r):t[n]=e}),{allOwnKeys:n}),t),F=t=>(65279===t.charCodeAt(0)&&(t=t.slice(1)),t),M=(t,e,r,n)=>{t.prototype=Object.create(e.prototype,n),t.prototype.constructor=t,Object.defineProperty(t,"super",{value:e.prototype}),r&&Object.assign(t.prototype,r)},$=(t,e,r,n)=>{let o,i,s;const c={};if(e=e||{},null==t)return e;do{o=Object.getOwnPropertyNames(t),i=o.length;while(i-- >0)s=o[i],n&&!n(s,t,e)||c[s]||(e[s]=t[s],c[s]=!0);t=!1!==r&&a(t)}while(t&&(!r||r(t,e))&&t!==Object.prototype);return e},H=(t,e,r)=>{t=String(t),(void 0===r||r>t.length)&&(r=t.length),r-=e.length;const n=t.indexOf(e,r);return-1!==n&&n===r},W=t=>{if(!t)return null;if(l(t))return t;let e=t.length;if(!g(e))return null;const r=new Array(e);while(e-- >0)r[e]=t[e];return r},z=(t=>e=>t&&e instanceof t)("undefined"!==typeof Uint8Array&&a(Uint8Array)),q=(t,e)=>{const r=t&&t[Symbol.iterator],n=r.call(t);let o;while((o=n.next())&&!o.done){const r=o.value;e.call(t,r[0],r[1])}},G=(t,e)=>{let r;const n=[];while(null!==(r=t.exec(e)))n.push(r);return n},V=c("HTMLFormElement"),J=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function(t,e,r){return e.toUpperCase()+r})),Y=(({hasOwnProperty:t})=>(e,r)=>t.call(e,r))(Object.prototype),X=c("RegExp"),K=(t,e)=>{const r=Object.getOwnPropertyDescriptors(t),n={};L(r,((r,o)=>{let i;!1!==(i=e(r,o,t))&&(n[o]=i||r)})),Object.defineProperties(t,n)},Q=t=>{K(t,((e,r)=>{if(y(t)&&-1!==["arguments","caller","callee"].indexOf(r))return!1;const n=t[r];y(n)&&(e.enumerable=!1,"writable"in e?e.writable=!1:e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")}))}))},Z=(t,e)=>{const r={},n=t=>{t.forEach((t=>{r[t]=!0}))};return l(t)?n(t):n(String(t).split(e)),r},tt=()=>{},et=(t,e)=>null!=t&&Number.isFinite(t=+t)?t:e,rt="abcdefghijklmnopqrstuvwxyz",nt="0123456789",ot={DIGIT:nt,ALPHA:rt,ALPHA_DIGIT:rt+rt.toUpperCase()+nt},it=(t=16,e=ot.ALPHA_DIGIT)=>{let r="";const{length:n}=e;while(t--)r+=e[Math.random()*n|0];return r};function at(t){return!!(t&&y(t.append)&&"FormData"===t[Symbol.toStringTag]&&t[Symbol.iterator])}const st=t=>{const e=new Array(10),r=(t,n)=>{if(v(t)){if(e.indexOf(t)>=0)return;if(!("toJSON"in t)){e[n]=t;const o=l(t)?[]:{};return L(t,((t,e)=>{const i=r(t,n+1);!f(i)&&(o[e]=i)})),e[n]=void 0,o}}return t};return r(t,0)},ct=c("AsyncFunction"),ut=t=>t&&(v(t)||y(t))&&y(t.then)&&y(t.catch),lt={isArray:l,isArrayBuffer:d,isBuffer:p,isFormData:x,isArrayBufferView:h,isString:m,isNumber:g,isBoolean:b,isObject:v,isPlainObject:w,isReadableStream:_,isRequest:C,isResponse:N,isHeaders:P,isUndefined:f,isDate:E,isFile:S,isBlob:O,isRegExp:X,isFunction:y,isStream:A,isURLSearchParams:R,isTypedArray:z,isFileList:T,forEach:L,merge:B,extend:U,trim:j,stripBOM:F,inherits:M,toFlatObject:$,kindOf:s,kindOfTest:c,endsWith:H,toArray:W,forEachEntry:q,matchAll:G,isHTMLForm:V,hasOwnProperty:Y,hasOwnProp:Y,reduceDescriptors:K,freezeMethods:Q,toObjectSet:Z,toCamelCase:J,noop:tt,toFiniteNumber:et,findKey:D,global:I,isContextDefined:k,ALPHABET:ot,generateString:it,isSpecCompliantForm:at,toJSONObject:st,isAsyncFn:ct,isThenable:ut};function ft(t,e,r,n,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=t,this.name="AxiosError",e&&(this.code=e),r&&(this.config=r),n&&(this.request=n),o&&(this.response=o)}lt.inherits(ft,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:lt.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const pt=ft.prototype,dt={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach((t=>{dt[t]={value:t}})),Object.defineProperties(ft,dt),Object.defineProperty(pt,"isAxiosError",{value:!0}),ft.from=(t,e,r,n,o,i)=>{const a=Object.create(pt);return lt.toFlatObject(t,a,(function(t){return t!==Error.prototype}),(t=>"isAxiosError"!==t)),ft.call(a,t.message,e,r,n,o),a.cause=t,a.name=t.name,i&&Object.assign(a,i),a};const ht=ft,mt=null;var yt=r(48764)["lW"];function gt(t){return lt.isPlainObject(t)||lt.isArray(t)}function vt(t){return lt.endsWith(t,"[]")?t.slice(0,-2):t}function bt(t,e,r){return t?t.concat(e).map((function(t,e){return t=vt(t),!r&&e?"["+t+"]":t})).join(r?".":""):e}function wt(t){return lt.isArray(t)&&!t.some(gt)}const Et=lt.toFlatObject(lt,{},null,(function(t){return/^is[A-Z]/.test(t)}));function St(t,e,r){if(!lt.isObject(t))throw new TypeError("target must be an object");e=e||new(mt||FormData),r=lt.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(t,e){return!lt.isUndefined(e[t])}));const n=r.metaTokens,o=r.visitor||l,i=r.dots,a=r.indexes,s=r.Blob||"undefined"!==typeof Blob&&Blob,c=s&<.isSpecCompliantForm(e);if(!lt.isFunction(o))throw new TypeError("visitor must be a function");function u(t){if(null===t)return"";if(lt.isDate(t))return t.toISOString();if(!c&<.isBlob(t))throw new ht("Blob is not supported. Use a Buffer instead.");return lt.isArrayBuffer(t)||lt.isTypedArray(t)?c&&"function"===typeof Blob?new Blob([t]):yt.from(t):t}function l(t,r,o){let s=t;if(t&&!o&&"object"===typeof t)if(lt.endsWith(r,"{}"))r=n?r:r.slice(0,-2),t=JSON.stringify(t);else if(lt.isArray(t)&&wt(t)||(lt.isFileList(t)||lt.endsWith(r,"[]"))&&(s=lt.toArray(t)))return r=vt(r),s.forEach((function(t,n){!lt.isUndefined(t)&&null!==t&&e.append(!0===a?bt([r],n,i):null===a?r:r+"[]",u(t))})),!1;return!!gt(t)||(e.append(bt(o,r,i),u(t)),!1)}const f=[],p=Object.assign(Et,{defaultVisitor:l,convertValue:u,isVisitable:gt});function d(t,r){if(!lt.isUndefined(t)){if(-1!==f.indexOf(t))throw Error("Circular reference detected in "+r.join("."));f.push(t),lt.forEach(t,(function(t,n){const i=!(lt.isUndefined(t)||null===t)&&o.call(e,t,lt.isString(n)?n.trim():n,r,p);!0===i&&d(t,r?r.concat(n):[n])})),f.pop()}}if(!lt.isObject(t))throw new TypeError("data must be an object");return d(t),e}const Ot=St;function Tt(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,(function(t){return e[t]}))}function At(t,e){this._pairs=[],t&&Ot(t,this,e)}const xt=At.prototype;xt.append=function(t,e){this._pairs.push([t,e])},xt.toString=function(t){const e=t?function(e){return t.call(this,e,Tt)}:Tt;return this._pairs.map((function(t){return e(t[0])+"="+e(t[1])}),"").join("&")};const Rt=At;function _t(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Ct(t,e,r){if(!e)return t;const n=r&&r.encode||_t,o=r&&r.serialize;let i;if(i=o?o(e,r):lt.isURLSearchParams(e)?e.toString():new Rt(e,r).toString(n),i){const e=t.indexOf("#");-1!==e&&(t=t.slice(0,e)),t+=(-1===t.indexOf("?")?"?":"&")+i}return t}class Nt{constructor(){this.handlers=[]}use(t,e,r){return this.handlers.push({fulfilled:t,rejected:e,synchronous:!!r&&r.synchronous,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){lt.forEach(this.handlers,(function(e){null!==e&&t(e)}))}}const Pt=Nt,jt={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Lt="undefined"!==typeof URLSearchParams?URLSearchParams:Rt,Dt="undefined"!==typeof FormData?FormData:null,It="undefined"!==typeof Blob?Blob:null,kt={isBrowser:!0,classes:{URLSearchParams:Lt,FormData:Dt,Blob:It},protocols:["http","https","file","blob","url","data"]},Bt="undefined"!==typeof window&&"undefined"!==typeof document,Ut=(t=>Bt&&["ReactNative","NativeScript","NS"].indexOf(t)<0)("undefined"!==typeof navigator&&navigator.product),Ft=(()=>"undefined"!==typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"===typeof self.importScripts)(),Mt=Bt&&window.location.href||"http://localhost",$t={...n,...kt};function Ht(t,e){return Ot(t,new $t.classes.URLSearchParams,Object.assign({visitor:function(t,e,r,n){return $t.isNode&<.isBuffer(t)?(this.append(e,t.toString("base64")),!1):n.defaultVisitor.apply(this,arguments)}},e))}function Wt(t){return lt.matchAll(/\w+|\[(\w*)]/g,t).map((t=>"[]"===t[0]?"":t[1]||t[0]))}function zt(t){const e={},r=Object.keys(t);let n;const o=r.length;let i;for(n=0;n=t.length;if(i=!i&<.isArray(n)?n.length:i,s)return lt.hasOwnProp(n,i)?n[i]=[n[i],r]:n[i]=r,!a;n[i]&<.isObject(n[i])||(n[i]=[]);const c=e(t,r,n[i],o);return c&<.isArray(n[i])&&(n[i]=zt(n[i])),!a}if(lt.isFormData(t)&<.isFunction(t.entries)){const r={};return lt.forEachEntry(t,((t,n)=>{e(Wt(t),n,r,0)})),r}return null}const Gt=qt;function Vt(t,e,r){if(lt.isString(t))try{return(e||JSON.parse)(t),lt.trim(t)}catch(n){if("SyntaxError"!==n.name)throw n}return(r||JSON.stringify)(t)}const Jt={transitional:jt,adapter:["xhr","http","fetch"],transformRequest:[function(t,e){const r=e.getContentType()||"",n=r.indexOf("application/json")>-1,o=lt.isObject(t);o&<.isHTMLForm(t)&&(t=new FormData(t));const i=lt.isFormData(t);if(i)return n?JSON.stringify(Gt(t)):t;if(lt.isArrayBuffer(t)||lt.isBuffer(t)||lt.isStream(t)||lt.isFile(t)||lt.isBlob(t)||lt.isReadableStream(t))return t;if(lt.isArrayBufferView(t))return t.buffer;if(lt.isURLSearchParams(t))return e.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let a;if(o){if(r.indexOf("application/x-www-form-urlencoded")>-1)return Ht(t,this.formSerializer).toString();if((a=lt.isFileList(t))||r.indexOf("multipart/form-data")>-1){const e=this.env&&this.env.FormData;return Ot(a?{"files[]":t}:t,e&&new e,this.formSerializer)}}return o||n?(e.setContentType("application/json",!1),Vt(t)):t}],transformResponse:[function(t){const e=this.transitional||Jt.transitional,r=e&&e.forcedJSONParsing,n="json"===this.responseType;if(lt.isResponse(t)||lt.isReadableStream(t))return t;if(t&<.isString(t)&&(r&&!this.responseType||n)){const r=e&&e.silentJSONParsing,i=!r&&n;try{return JSON.parse(t)}catch(o){if(i){if("SyntaxError"===o.name)throw ht.from(o,ht.ERR_BAD_RESPONSE,this,null,this.response);throw o}}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:$t.classes.FormData,Blob:$t.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};lt.forEach(["delete","get","head","post","put","patch"],(t=>{Jt.headers[t]={}}));const Yt=Jt,Xt=lt.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Kt=t=>{const e={};let r,n,o;return t&&t.split("\n").forEach((function(t){o=t.indexOf(":"),r=t.substring(0,o).trim().toLowerCase(),n=t.substring(o+1).trim(),!r||e[r]&&Xt[r]||("set-cookie"===r?e[r]?e[r].push(n):e[r]=[n]:e[r]=e[r]?e[r]+", "+n:n)})),e},Qt=Symbol("internals");function Zt(t){return t&&String(t).trim().toLowerCase()}function te(t){return!1===t||null==t?t:lt.isArray(t)?t.map(te):String(t)}function ee(t){const e=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;while(n=r.exec(t))e[n[1]]=n[2];return e}const re=t=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());function ne(t,e,r,n,o){return lt.isFunction(n)?n.call(this,e,r):(o&&(e=r),lt.isString(e)?lt.isString(n)?-1!==e.indexOf(n):lt.isRegExp(n)?n.test(e):void 0:void 0)}function oe(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((t,e,r)=>e.toUpperCase()+r))}function ie(t,e){const r=lt.toCamelCase(" "+e);["get","set","has"].forEach((n=>{Object.defineProperty(t,n+r,{value:function(t,r,o){return this[n].call(this,e,t,r,o)},configurable:!0})}))}class ae{constructor(t){t&&this.set(t)}set(t,e,r){const n=this;function o(t,e,r){const o=Zt(e);if(!o)throw new Error("header name must be a non-empty string");const i=lt.findKey(n,o);(!i||void 0===n[i]||!0===r||void 0===r&&!1!==n[i])&&(n[i||e]=te(t))}const i=(t,e)=>lt.forEach(t,((t,r)=>o(t,r,e)));if(lt.isPlainObject(t)||t instanceof this.constructor)i(t,e);else if(lt.isString(t)&&(t=t.trim())&&!re(t))i(Kt(t),e);else if(lt.isHeaders(t))for(const[a,s]of t.entries())o(s,a,r);else null!=t&&o(e,t,r);return this}get(t,e){if(t=Zt(t),t){const r=lt.findKey(this,t);if(r){const t=this[r];if(!e)return t;if(!0===e)return ee(t);if(lt.isFunction(e))return e.call(this,t,r);if(lt.isRegExp(e))return e.exec(t);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,e){if(t=Zt(t),t){const r=lt.findKey(this,t);return!(!r||void 0===this[r]||e&&!ne(this,this[r],r,e))}return!1}delete(t,e){const r=this;let n=!1;function o(t){if(t=Zt(t),t){const o=lt.findKey(r,t);!o||e&&!ne(r,r[o],o,e)||(delete r[o],n=!0)}}return lt.isArray(t)?t.forEach(o):o(t),n}clear(t){const e=Object.keys(this);let r=e.length,n=!1;while(r--){const o=e[r];t&&!ne(this,this[o],o,t,!0)||(delete this[o],n=!0)}return n}normalize(t){const e=this,r={};return lt.forEach(this,((n,o)=>{const i=lt.findKey(r,o);if(i)return e[i]=te(n),void delete e[o];const a=t?oe(o):String(o).trim();a!==o&&delete e[o],e[a]=te(n),r[a]=!0})),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const e=Object.create(null);return lt.forEach(this,((r,n)=>{null!=r&&!1!==r&&(e[n]=t&<.isArray(r)?r.join(", "):r)})),e}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map((([t,e])=>t+": "+e)).join("\n")}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...e){const r=new this(t);return e.forEach((t=>r.set(t))),r}static accessor(t){const e=this[Qt]=this[Qt]={accessors:{}},r=e.accessors,n=this.prototype;function o(t){const e=Zt(t);r[e]||(ie(n,t),r[e]=!0)}return lt.isArray(t)?t.forEach(o):o(t),this}}ae.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),lt.reduceDescriptors(ae.prototype,(({value:t},e)=>{let r=e[0].toUpperCase()+e.slice(1);return{get:()=>t,set(t){this[r]=t}}})),lt.freezeMethods(ae);const se=ae;function ce(t,e){const r=this||Yt,n=e||r,o=se.from(n.headers);let i=n.data;return lt.forEach(t,(function(t){i=t.call(r,i,o.normalize(),e?e.status:void 0)})),o.normalize(),i}function ue(t){return!(!t||!t.__CANCEL__)}function le(t,e,r){ht.call(this,null==t?"canceled":t,ht.ERR_CANCELED,e,r),this.name="CanceledError"}lt.inherits(le,ht,{__CANCEL__:!0});const fe=le;function pe(t,e,r){const n=r.config.validateStatus;r.status&&n&&!n(r.status)?e(new ht("Request failed with status code "+r.status,[ht.ERR_BAD_REQUEST,ht.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r)):t(r)}function de(t){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}function he(t,e){t=t||10;const r=new Array(t),n=new Array(t);let o,i=0,a=0;return e=void 0!==e?e:1e3,function(s){const c=Date.now(),u=n[a];o||(o=c),r[i]=s,n[i]=c;let l=a,f=0;while(l!==i)f+=r[l++],l%=t;if(i=(i+1)%t,i===a&&(a=(a+1)%t),c-on)return o&&(clearTimeout(o),o=null),r=i,t.apply(null,arguments);o||(o=setTimeout((()=>(o=null,r=Date.now(),t.apply(null,arguments))),n-(i-r)))}}const ge=ye,ve=(t,e,r=3)=>{let n=0;const o=me(50,250);return ge((r=>{const i=r.loaded,a=r.lengthComputable?r.total:void 0,s=i-n,c=o(s),u=i<=a;n=i;const l={loaded:i,total:a,progress:a?i/a:void 0,bytes:s,rate:c||void 0,estimated:c&&a&&u?(a-i)/c:void 0,event:r,lengthComputable:null!=a};l[e?"download":"upload"]=!0,t(l)}),r)},be=$t.hasStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),e=document.createElement("a");let r;function n(r){let n=r;return t&&(e.setAttribute("href",n),n=e.href),e.setAttribute("href",n),{href:e.href,protocol:e.protocol?e.protocol.replace(/:$/,""):"",host:e.host,search:e.search?e.search.replace(/^\?/,""):"",hash:e.hash?e.hash.replace(/^#/,""):"",hostname:e.hostname,port:e.port,pathname:"/"===e.pathname.charAt(0)?e.pathname:"/"+e.pathname}}return r=n(window.location.href),function(t){const e=lt.isString(t)?n(t):t;return e.protocol===r.protocol&&e.host===r.host}}():function(){return function(){return!0}}(),we=$t.hasStandardBrowserEnv?{write(t,e,r,n,o,i){const a=[t+"="+encodeURIComponent(e)];lt.isNumber(r)&&a.push("expires="+new Date(r).toGMTString()),lt.isString(n)&&a.push("path="+n),lt.isString(o)&&a.push("domain="+o),!0===i&&a.push("secure"),document.cookie=a.join("; ")},read(t){const e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove(t){this.write(t,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function Ee(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function Se(t,e){return e?t.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):t}function Oe(t,e){return t&&!Ee(e)?Se(t,e):e}const Te=t=>t instanceof se?{...t}:t;function Ae(t,e){e=e||{};const r={};function n(t,e,r){return lt.isPlainObject(t)&<.isPlainObject(e)?lt.merge.call({caseless:r},t,e):lt.isPlainObject(e)?lt.merge({},e):lt.isArray(e)?e.slice():e}function o(t,e,r){return lt.isUndefined(e)?lt.isUndefined(t)?void 0:n(void 0,t,r):n(t,e,r)}function i(t,e){if(!lt.isUndefined(e))return n(void 0,e)}function a(t,e){return lt.isUndefined(e)?lt.isUndefined(t)?void 0:n(void 0,t):n(void 0,e)}function s(r,o,i){return i in e?n(r,o):i in t?n(void 0,r):void 0}const c={url:i,method:i,data:i,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:s,headers:(t,e)=>o(Te(t),Te(e),!0)};return lt.forEach(Object.keys(Object.assign({},t,e)),(function(n){const i=c[n]||o,a=i(t[n],e[n],n);lt.isUndefined(a)&&i!==s||(r[n]=a)})),r}const xe=t=>{const e=Ae({},t);let r,{data:n,withXSRFToken:o,xsrfHeaderName:i,xsrfCookieName:a,headers:s,auth:c}=e;if(e.headers=s=se.from(s),e.url=Ct(Oe(e.baseURL,e.url),t.params,t.paramsSerializer),c&&s.set("Authorization","Basic "+btoa((c.username||"")+":"+(c.password?unescape(encodeURIComponent(c.password)):""))),lt.isFormData(n))if($t.hasStandardBrowserEnv||$t.hasStandardBrowserWebWorkerEnv)s.setContentType(void 0);else if(!1!==(r=s.getContentType())){const[t,...e]=r?r.split(";").map((t=>t.trim())).filter(Boolean):[];s.setContentType([t||"multipart/form-data",...e].join("; "))}if($t.hasStandardBrowserEnv&&(o&<.isFunction(o)&&(o=o(e)),o||!1!==o&&be(e.url))){const t=i&&a&&we.read(a);t&&s.set(i,t)}return e},Re="undefined"!==typeof XMLHttpRequest,_e=Re&&function(t){return new Promise((function(e,r){const n=xe(t);let o=n.data;const i=se.from(n.headers).normalize();let a,{responseType:s}=n;function c(){n.cancelToken&&n.cancelToken.unsubscribe(a),n.signal&&n.signal.removeEventListener("abort",a)}let u=new XMLHttpRequest;function l(){if(!u)return;const n=se.from("getAllResponseHeaders"in u&&u.getAllResponseHeaders()),o=s&&"text"!==s&&"json"!==s?u.response:u.responseText,i={data:o,status:u.status,statusText:u.statusText,headers:n,config:t,request:u};pe((function(t){e(t),c()}),(function(t){r(t),c()}),i),u=null}u.open(n.method.toUpperCase(),n.url,!0),u.timeout=n.timeout,"onloadend"in u?u.onloadend=l:u.onreadystatechange=function(){u&&4===u.readyState&&(0!==u.status||u.responseURL&&0===u.responseURL.indexOf("file:"))&&setTimeout(l)},u.onabort=function(){u&&(r(new ht("Request aborted",ht.ECONNABORTED,n,u)),u=null)},u.onerror=function(){r(new ht("Network Error",ht.ERR_NETWORK,n,u)),u=null},u.ontimeout=function(){let t=n.timeout?"timeout of "+n.timeout+"ms exceeded":"timeout exceeded";const e=n.transitional||jt;n.timeoutErrorMessage&&(t=n.timeoutErrorMessage),r(new ht(t,e.clarifyTimeoutError?ht.ETIMEDOUT:ht.ECONNABORTED,n,u)),u=null},void 0===o&&i.setContentType(null),"setRequestHeader"in u&<.forEach(i.toJSON(),(function(t,e){u.setRequestHeader(e,t)})),lt.isUndefined(n.withCredentials)||(u.withCredentials=!!n.withCredentials),s&&"json"!==s&&(u.responseType=n.responseType),"function"===typeof n.onDownloadProgress&&u.addEventListener("progress",ve(n.onDownloadProgress,!0)),"function"===typeof n.onUploadProgress&&u.upload&&u.upload.addEventListener("progress",ve(n.onUploadProgress)),(n.cancelToken||n.signal)&&(a=e=>{u&&(r(!e||e.type?new fe(null,t,u):e),u.abort(),u=null)},n.cancelToken&&n.cancelToken.subscribe(a),n.signal&&(n.signal.aborted?a():n.signal.addEventListener("abort",a)));const f=de(n.url);f&&-1===$t.protocols.indexOf(f)?r(new ht("Unsupported protocol "+f+":",ht.ERR_BAD_REQUEST,t)):u.send(o||null)}))},Ce=(t,e)=>{let r,n=new AbortController;const o=function(t){if(!r){r=!0,a();const e=t instanceof Error?t:this.reason;n.abort(e instanceof ht?e:new fe(e instanceof Error?e.message:e))}};let i=e&&setTimeout((()=>{o(new ht(`timeout ${e} of ms exceeded`,ht.ETIMEDOUT))}),e);const a=()=>{t&&(i&&clearTimeout(i),i=null,t.forEach((t=>{t&&(t.removeEventListener?t.removeEventListener("abort",o):t.unsubscribe(o))})),t=null)};t.forEach((t=>t&&t.addEventListener&&t.addEventListener("abort",o)));const{signal:s}=n;return s.unsubscribe=a,[s,()=>{i&&clearTimeout(i),i=null}]},Ne=Ce,Pe=function*(t,e){let r=t.byteLength;if(!e||r{const i=je(t,e,o);let a=0;return new ReadableStream({type:"bytes",async pull(t){const{done:e,value:o}=await i.next();if(e)return t.close(),void n();let s=o.byteLength;r&&r(a+=s),t.enqueue(new Uint8Array(o))},cancel(t){return n(t),i.return()}},{highWaterMark:2})},De=(t,e)=>{const r=null!=t;return n=>setTimeout((()=>e({lengthComputable:r,total:t,loaded:n})))},Ie="function"===typeof fetch&&"function"===typeof Request&&"function"===typeof Response,ke=Ie&&"function"===typeof ReadableStream,Be=Ie&&("function"===typeof TextEncoder?(t=>e=>t.encode(e))(new TextEncoder):async t=>new Uint8Array(await new Response(t).arrayBuffer())),Ue=ke&&(()=>{let t=!1;const e=new Request($t.origin,{body:new ReadableStream,method:"POST",get duplex(){return t=!0,"half"}}).headers.has("Content-Type");return t&&!e})(),Fe=65536,Me=ke&&!!(()=>{try{return lt.isReadableStream(new Response("").body)}catch(t){}})(),$e={stream:Me&&(t=>t.body)};Ie&&(t=>{["text","arrayBuffer","blob","formData","stream"].forEach((e=>{!$e[e]&&($e[e]=lt.isFunction(t[e])?t=>t[e]():(t,r)=>{throw new ht(`Response type '${e}' is not supported`,ht.ERR_NOT_SUPPORT,r)})}))})(new Response);const He=async t=>null==t?0:lt.isBlob(t)?t.size:lt.isSpecCompliantForm(t)?(await new Request(t).arrayBuffer()).byteLength:lt.isArrayBufferView(t)?t.byteLength:(lt.isURLSearchParams(t)&&(t+=""),lt.isString(t)?(await Be(t)).byteLength:void 0),We=async(t,e)=>{const r=lt.toFiniteNumber(t.getContentLength());return null==r?He(e):r},ze=Ie&&(async t=>{let{url:e,method:r,data:n,signal:o,cancelToken:i,timeout:a,onDownloadProgress:s,onUploadProgress:c,responseType:u,headers:l,withCredentials:f="same-origin",fetchOptions:p}=xe(t);u=u?(u+"").toLowerCase():"text";let d,h,[m,y]=o||i||a?Ne([o,i],a):[];const g=()=>{!d&&setTimeout((()=>{m&&m.unsubscribe()})),d=!0};let v;try{if(c&&Ue&&"get"!==r&&"head"!==r&&0!==(v=await We(l,n))){let t,r=new Request(e,{method:"POST",body:n,duplex:"half"});lt.isFormData(n)&&(t=r.headers.get("content-type"))&&l.setContentType(t),r.body&&(n=Le(r.body,Fe,De(v,ve(c)),null,Be))}lt.isString(f)||(f=f?"cors":"omit"),h=new Request(e,{...p,signal:m,method:r.toUpperCase(),headers:l.normalize().toJSON(),body:n,duplex:"half",withCredentials:f});let o=await fetch(h);const i=Me&&("stream"===u||"response"===u);if(Me&&(s||i)){const t={};["status","statusText","headers"].forEach((e=>{t[e]=o[e]}));const e=lt.toFiniteNumber(o.headers.get("content-length"));o=new Response(Le(o.body,Fe,s&&De(e,ve(s,!0)),i&&g,Be),t)}u=u||"text";let a=await $e[lt.findKey($e,u)||"text"](o,t);return!i&&g(),y&&y(),await new Promise(((e,r)=>{pe(e,r,{data:a,headers:se.from(o.headers),status:o.status,statusText:o.statusText,config:t,request:h})}))}catch(b){if(g(),b&&"TypeError"===b.name&&/fetch/i.test(b.message))throw Object.assign(new ht("Network Error",ht.ERR_NETWORK,t,h),{cause:b.cause||b});throw ht.from(b,b&&b.code,t,h)}}),qe={http:mt,xhr:_e,fetch:ze};lt.forEach(qe,((t,e)=>{if(t){try{Object.defineProperty(t,"name",{value:e})}catch(r){}Object.defineProperty(t,"adapterName",{value:e})}}));const Ge=t=>`- ${t}`,Ve=t=>lt.isFunction(t)||null===t||!1===t,Je={getAdapter:t=>{t=lt.isArray(t)?t:[t];const{length:e}=t;let r,n;const o={};for(let i=0;i`adapter ${t} `+(!1===e?"is not supported by the environment":"is not available in the build")));let r=e?t.length>1?"since :\n"+t.map(Ge).join("\n"):" "+Ge(t[0]):"as no adapter specified";throw new ht("There is no suitable adapter to dispatch the request "+r,"ERR_NOT_SUPPORT")}return n},adapters:qe};function Ye(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new fe(null,t)}function Xe(t){Ye(t),t.headers=se.from(t.headers),t.data=ce.call(t,t.transformRequest),-1!==["post","put","patch"].indexOf(t.method)&&t.headers.setContentType("application/x-www-form-urlencoded",!1);const e=Je.getAdapter(t.adapter||Yt.adapter);return e(t).then((function(e){return Ye(t),e.data=ce.call(t,t.transformResponse,e),e.headers=se.from(e.headers),e}),(function(e){return ue(e)||(Ye(t),e&&e.response&&(e.response.data=ce.call(t,t.transformResponse,e.response),e.response.headers=se.from(e.response.headers))),Promise.reject(e)}))}const Ke="1.7.2",Qe={};["object","boolean","number","function","string","symbol"].forEach(((t,e)=>{Qe[t]=function(r){return typeof r===t||"a"+(e<1?"n ":" ")+t}}));const Ze={};function tr(t,e,r){if("object"!==typeof t)throw new ht("options must be an object",ht.ERR_BAD_OPTION_VALUE);const n=Object.keys(t);let o=n.length;while(o-- >0){const i=n[o],a=e[i];if(a){const e=t[i],r=void 0===e||a(e,i,t);if(!0!==r)throw new ht("option "+i+" must be "+r,ht.ERR_BAD_OPTION_VALUE)}else if(!0!==r)throw new ht("Unknown option "+i,ht.ERR_BAD_OPTION)}}Qe.transitional=function(t,e,r){function n(t,e){return"[Axios v"+Ke+"] Transitional option '"+t+"'"+e+(r?". "+r:"")}return(r,o,i)=>{if(!1===t)throw new ht(n(o," has been removed"+(e?" in "+e:"")),ht.ERR_DEPRECATED);return e&&!Ze[o]&&(Ze[o]=!0,console.warn(n(o," has been deprecated since v"+e+" and will be removed in the near future"))),!t||t(r,o,i)}};const er={assertOptions:tr,validators:Qe},rr=er.validators;class nr{constructor(t){this.defaults=t,this.interceptors={request:new Pt,response:new Pt}}async request(t,e){try{return await this._request(t,e)}catch(r){if(r instanceof Error){let t;Error.captureStackTrace?Error.captureStackTrace(t={}):t=new Error;const e=t.stack?t.stack.replace(/^.+\n/,""):"";try{r.stack?e&&!String(r.stack).endsWith(e.replace(/^.+\n.+\n/,""))&&(r.stack+="\n"+e):r.stack=e}catch(n){}}throw r}}_request(t,e){"string"===typeof t?(e=e||{},e.url=t):e=t||{},e=Ae(this.defaults,e);const{transitional:r,paramsSerializer:n,headers:o}=e;void 0!==r&&er.assertOptions(r,{silentJSONParsing:rr.transitional(rr.boolean),forcedJSONParsing:rr.transitional(rr.boolean),clarifyTimeoutError:rr.transitional(rr.boolean)},!1),null!=n&&(lt.isFunction(n)?e.paramsSerializer={serialize:n}:er.assertOptions(n,{encode:rr.function,serialize:rr.function},!0)),e.method=(e.method||this.defaults.method||"get").toLowerCase();let i=o&<.merge(o.common,o[e.method]);o&<.forEach(["delete","get","head","post","put","patch","common"],(t=>{delete o[t]})),e.headers=se.concat(i,o);const a=[];let s=!0;this.interceptors.request.forEach((function(t){"function"===typeof t.runWhen&&!1===t.runWhen(e)||(s=s&&t.synchronous,a.unshift(t.fulfilled,t.rejected))}));const c=[];let u;this.interceptors.response.forEach((function(t){c.push(t.fulfilled,t.rejected)}));let l,f=0;if(!s){const t=[Xe.bind(this),void 0];t.unshift.apply(t,a),t.push.apply(t,c),l=t.length,u=Promise.resolve(e);while(f{if(!r._listeners)return;let e=r._listeners.length;while(e-- >0)r._listeners[e](t);r._listeners=null})),this.promise.then=t=>{let e;const n=new Promise((t=>{r.subscribe(t),e=t})).then(t);return n.cancel=function(){r.unsubscribe(e)},n},t((function(t,n,o){r.reason||(r.reason=new fe(t,n,o),e(r.reason))}))}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){this.reason?t(this.reason):this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const e=this._listeners.indexOf(t);-1!==e&&this._listeners.splice(e,1)}static source(){let t;const e=new ir((function(e){t=e}));return{token:e,cancel:t}}}const ar=ir;function sr(t){return function(e){return t.apply(null,e)}}function cr(t){return lt.isObject(t)&&!0===t.isAxiosError}const ur={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(ur).forEach((([t,e])=>{ur[e]=t}));const lr=ur;function fr(t){const e=new or(t),r=o(or.prototype.request,e);return lt.extend(r,or.prototype,e,{allOwnKeys:!0}),lt.extend(r,e,null,{allOwnKeys:!0}),r.create=function(e){return fr(Ae(t,e))},r}const pr=fr(Yt);pr.Axios=or,pr.CanceledError=fe,pr.CancelToken=ar,pr.isCancel=ue,pr.VERSION=Ke,pr.toFormData=Ot,pr.AxiosError=ht,pr.Cancel=pr.CanceledError,pr.all=function(t){return Promise.all(t)},pr.spread=sr,pr.isAxiosError=cr,pr.mergeConfig=Ae,pr.AxiosHeaders=se,pr.formToJSON=t=>Gt(lt.isHTMLForm(t)?new FormData(t):t),pr.getAdapter=Je.getAdapter,pr.HttpStatusCode=lr,pr.default=pr;const dr=pr}}]); \ No newline at end of file +***************************************************************************** */function s(t,e,r,n){function o(t){return t instanceof r?t:new r((function(e){e(t)}))}return new(r||(r=Promise))((function(r,i){function a(t){try{c(n.next(t))}catch(e){i(e)}}function s(t){try{c(n["throw"](t))}catch(e){i(e)}}function c(t){t.done?r(t.value):o(t.value).then(a,s)}c((n=n.apply(t,e||[])).next())}))}(function(t){t["SUCCESS"]="success",t["ERROR"]="error",t["WARNING"]="warning",t["INFO"]="info",t["DEFAULT"]="default"})(n||(n={})),function(t){t["TOP_LEFT"]="top-left",t["TOP_CENTER"]="top-center",t["TOP_RIGHT"]="top-right",t["BOTTOM_LEFT"]="bottom-left",t["BOTTOM_CENTER"]="bottom-center",t["BOTTOM_RIGHT"]="bottom-right"}(o||(o={})),function(t){t["ADD"]="add",t["DISMISS"]="dismiss",t["UPDATE"]="update",t["CLEAR"]="clear",t["UPDATE_DEFAULTS"]="update_defaults"}(i||(i={}));const c="Vue-Toastification",u={type:{type:String,default:n.DEFAULT},classNames:{type:[String,Array],default:()=>[]},trueBoolean:{type:Boolean,default:!0}},l={type:u.type,customIcon:{type:[String,Boolean,Object,Function],default:!0}},f={component:{type:[String,Object,Function,Boolean],default:"button"},classNames:u.classNames,showOnHover:Boolean,ariaLabel:{type:String,default:"close"}},p={timeout:{type:[Number,Boolean],default:5e3},hideProgressBar:Boolean,isRunning:Boolean},d={transition:{type:[Object,String],default:`${c}__bounce`},transitionDuration:{type:[Number,Object],default:750}},h={position:{type:String,default:o.TOP_RIGHT},draggable:u.trueBoolean,draggablePercent:{type:Number,default:.6},pauseOnFocusLoss:u.trueBoolean,pauseOnHover:u.trueBoolean,closeOnClick:u.trueBoolean,timeout:p.timeout,hideProgressBar:p.hideProgressBar,toastClassName:u.classNames,bodyClassName:u.classNames,icon:l.customIcon,closeButton:f.component,closeButtonClassName:f.classNames,showCloseButtonOnHover:f.showOnHover,accessibility:{type:Object,default:()=>({toastRole:"alert",closeButtonLabel:"close"})},rtl:Boolean,eventBus:Object},m={id:{type:[String,Number],required:!0},type:u.type,content:{type:[String,Object,Function],required:!0},onClick:Function,onClose:Function},y={container:{type:void 0,default:()=>document.body},newestOnTop:u.trueBoolean,maxToasts:{type:Number,default:20},transition:d.transition,transitionDuration:d.transitionDuration,toastDefaults:Object,filterBeforeCreate:{type:Function,default:t=>t},filterToasts:{type:Function,default:t=>t},containerClassName:u.classNames,onMounted:Function};var g={CORE_TOAST:h,TOAST:m,CONTAINER:y,PROGRESS_BAR:p,ICON:l,TRANSITION:d,CLOSE_BUTTON:f};const v=t=>"function"===typeof t,b=t=>"string"===typeof t,w=t=>b(t)&&t.trim().length>0,E=t=>"number"===typeof t,S=t=>"undefined"===typeof t,O=t=>"object"===typeof t&&null!==t,T=t=>j(t,"tag")&&w(t.tag),A=t=>window.TouchEvent&&t instanceof TouchEvent,x=t=>j(t,"component")&&N(t.component),R=t=>v(t)&&j(t,"cid"),_=t=>!!R(t)||!!O(t)&&(!(!t.extends&&!t._Ctor)||(!!b(t.template)||L(t))),C=t=>t instanceof a["default"]||_(t),N=t=>!S(t)&&(b(t)||C(t)||L(t)||T(t)||x(t)),P=t=>O(t)&&E(t.height)&&E(t.width)&&E(t.right)&&E(t.left)&&E(t.top)&&E(t.bottom),j=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),L=t=>j(t,"render")&&v(t.render),D=(t=>()=>t++)(0);function I(t){return A(t)?t.targetTouches[0].clientX:t.clientX}function k(t){return A(t)?t.targetTouches[0].clientY:t.clientY}const B=t=>{S(t.remove)?t.parentNode&&t.parentNode.removeChild(t):t.remove()},U=t=>x(t)?U(t.component):T(t)?{render(){return t}}:t;var F=a["default"].extend({props:g.PROGRESS_BAR,data(){return{hasClass:!0}},computed:{style(){return{animationDuration:`${this.timeout}ms`,animationPlayState:this.isRunning?"running":"paused",opacity:this.hideProgressBar?0:1}},cpClass(){return this.hasClass?`${c}__progress-bar`:""}},mounted(){this.$el.addEventListener("animationend",this.animationEnded)},beforeDestroy(){this.$el.removeEventListener("animationend",this.animationEnded)},methods:{animationEnded(){this.$emit("close-toast")}},watch:{timeout(){this.hasClass=!1,this.$nextTick((()=>this.hasClass=!0))}}});function M(t,e,r,n,o,i,a,s,c,u){"boolean"!==typeof a&&(c=s,s=a,a=!1);const l="function"===typeof r?r.options:r;let f;if(t&&t.render&&(l.render=t.render,l.staticRenderFns=t.staticRenderFns,l._compiled=!0,o&&(l.functional=!0)),n&&(l._scopeId=n),i?(f=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"===typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),e&&e.call(this,c(t)),t&&t._registeredComponents&&t._registeredComponents.add(i)},l._ssrRegister=f):e&&(f=a?function(t){e.call(this,u(t,this.$root.$options.shadowRoot))}:function(t){e.call(this,s(t))}),f)if(l.functional){const t=l.render;l.render=function(e,r){return f.call(r),t(e,r)}}else{const t=l.beforeCreate;l.beforeCreate=t?[].concat(t,f):[f]}return r}const $=F;var H=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{class:t.cpClass,style:t.style})},W=[];H._withStripped=!0;const z=void 0,q=void 0,G=void 0,V=!1,J=M({render:H,staticRenderFns:W},z,$,q,V,G,!1,void 0,void 0,void 0);var Y=a["default"].extend({props:g.CLOSE_BUTTON,computed:{buttonComponent(){return!1!==this.component?U(this.component):"button"},classes(){const t=[`${c}__close-button`];return this.showOnHover&&t.push("show-on-hover"),t.concat(this.classNames)}}});const X=Y;var K=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r(t.buttonComponent,t._g({tag:"component",class:t.classes,attrs:{"aria-label":t.ariaLabel}},t.$listeners),[t._v("\n ×\n")])},Q=[];K._withStripped=!0;const Z=void 0,tt=void 0,et=void 0,rt=!1,nt=M({render:K,staticRenderFns:Q},Z,X,tt,rt,et,!1,void 0,void 0,void 0);var ot={};const it=ot;var at=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("svg",{staticClass:"svg-inline--fa fa-check-circle fa-w-16",attrs:{"aria-hidden":"true",focusable:"false","data-prefix":"fas","data-icon":"check-circle",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"}},[r("path",{attrs:{fill:"currentColor",d:"M504 256c0 136.967-111.033 248-248 248S8 392.967 8 256 119.033 8 256 8s248 111.033 248 248zM227.314 387.314l184-184c6.248-6.248 6.248-16.379 0-22.627l-22.627-22.627c-6.248-6.249-16.379-6.249-22.628 0L216 308.118l-70.059-70.059c-6.248-6.248-16.379-6.248-22.628 0l-22.627 22.627c-6.248 6.248-6.248 16.379 0 22.627l104 104c6.249 6.249 16.379 6.249 22.628.001z"}})])},st=[];at._withStripped=!0;const ct=void 0,ut=void 0,lt=void 0,ft=!1,pt=M({render:at,staticRenderFns:st},ct,it,ut,ft,lt,!1,void 0,void 0,void 0);var dt={};const ht=dt;var mt=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("svg",{staticClass:"svg-inline--fa fa-info-circle fa-w-16",attrs:{"aria-hidden":"true",focusable:"false","data-prefix":"fas","data-icon":"info-circle",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"}},[r("path",{attrs:{fill:"currentColor",d:"M256 8C119.043 8 8 119.083 8 256c0 136.997 111.043 248 248 248s248-111.003 248-248C504 119.083 392.957 8 256 8zm0 110c23.196 0 42 18.804 42 42s-18.804 42-42 42-42-18.804-42-42 18.804-42 42-42zm56 254c0 6.627-5.373 12-12 12h-88c-6.627 0-12-5.373-12-12v-24c0-6.627 5.373-12 12-12h12v-64h-12c-6.627 0-12-5.373-12-12v-24c0-6.627 5.373-12 12-12h64c6.627 0 12 5.373 12 12v100h12c6.627 0 12 5.373 12 12v24z"}})])},yt=[];mt._withStripped=!0;const gt=void 0,vt=void 0,bt=void 0,wt=!1,Et=M({render:mt,staticRenderFns:yt},gt,ht,vt,wt,bt,!1,void 0,void 0,void 0);var St={};const Ot=St;var Tt=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("svg",{staticClass:"svg-inline--fa fa-exclamation-circle fa-w-16",attrs:{"aria-hidden":"true",focusable:"false","data-prefix":"fas","data-icon":"exclamation-circle",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"}},[r("path",{attrs:{fill:"currentColor",d:"M504 256c0 136.997-111.043 248-248 248S8 392.997 8 256C8 119.083 119.043 8 256 8s248 111.083 248 248zm-248 50c-25.405 0-46 20.595-46 46s20.595 46 46 46 46-20.595 46-46-20.595-46-46-46zm-43.673-165.346l7.418 136c.347 6.364 5.609 11.346 11.982 11.346h48.546c6.373 0 11.635-4.982 11.982-11.346l7.418-136c.375-6.874-5.098-12.654-11.982-12.654h-63.383c-6.884 0-12.356 5.78-11.981 12.654z"}})])},At=[];Tt._withStripped=!0;const xt=void 0,Rt=void 0,_t=void 0,Ct=!1,Nt=M({render:Tt,staticRenderFns:At},xt,Ot,Rt,Ct,_t,!1,void 0,void 0,void 0);var Pt={};const jt=Pt;var Lt=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("svg",{staticClass:"svg-inline--fa fa-exclamation-triangle fa-w-18",attrs:{"aria-hidden":"true",focusable:"false","data-prefix":"fas","data-icon":"exclamation-triangle",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 576 512"}},[r("path",{attrs:{fill:"currentColor",d:"M569.517 440.013C587.975 472.007 564.806 512 527.94 512H48.054c-36.937 0-59.999-40.055-41.577-71.987L246.423 23.985c18.467-32.009 64.72-31.951 83.154 0l239.94 416.028zM288 354c-25.405 0-46 20.595-46 46s20.595 46 46 46 46-20.595 46-46-20.595-46-46-46zm-43.673-165.346l7.418 136c.347 6.364 5.609 11.346 11.982 11.346h48.546c6.373 0 11.635-4.982 11.982-11.346l7.418-136c.375-6.874-5.098-12.654-11.982-12.654h-63.383c-6.884 0-12.356 5.78-11.981 12.654z"}})])},Dt=[];Lt._withStripped=!0;const It=void 0,kt=void 0,Bt=void 0,Ut=!1,Ft=M({render:Lt,staticRenderFns:Dt},It,jt,kt,Ut,Bt,!1,void 0,void 0,void 0);var Mt=a["default"].extend({props:g.ICON,computed:{customIconChildren(){return j(this.customIcon,"iconChildren")?this.trimValue(this.customIcon.iconChildren):""},customIconClass(){return b(this.customIcon)?this.trimValue(this.customIcon):j(this.customIcon,"iconClass")?this.trimValue(this.customIcon.iconClass):""},customIconTag(){return j(this.customIcon,"iconTag")?this.trimValue(this.customIcon.iconTag,"i"):"i"},hasCustomIcon(){return this.customIconClass.length>0},component(){return this.hasCustomIcon?this.customIconTag:N(this.customIcon)?U(this.customIcon):this.iconTypeComponent},iconTypeComponent(){const t={[n.DEFAULT]:Et,[n.INFO]:Et,[n.SUCCESS]:pt,[n.ERROR]:Ft,[n.WARNING]:Nt};return t[this.type]},iconClasses(){const t=[`${c}__icon`];return this.hasCustomIcon?t.concat(this.customIconClass):t}},methods:{trimValue(t,e=""){return w(t)?t.trim():e}}});const $t=Mt;var Ht=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r(t.component,{tag:"component",class:t.iconClasses},[t._v(t._s(t.customIconChildren))])},Wt=[];Ht._withStripped=!0;const zt=void 0,qt=void 0,Gt=void 0,Vt=!1,Jt=M({render:Ht,staticRenderFns:Wt},zt,$t,qt,Vt,Gt,!1,void 0,void 0,void 0);var Yt=a["default"].extend({components:{ProgressBar:J,CloseButton:nt,Icon:Jt},inheritAttrs:!1,props:Object.assign({},g.CORE_TOAST,g.TOAST),data(){const t={isRunning:!0,disableTransitions:!1,beingDragged:!1,dragStart:0,dragPos:{x:0,y:0},dragRect:{}};return t},computed:{classes(){const t=[`${c}__toast`,`${c}__toast--${this.type}`,`${this.position}`].concat(this.toastClassName);return this.disableTransitions&&t.push("disable-transition"),this.rtl&&t.push(`${c}__toast--rtl`),t},bodyClasses(){const t=[`${c}__toast-${b(this.content)?"body":"component-body"}`].concat(this.bodyClassName);return t},draggableStyle(){return this.dragStart===this.dragPos.x?{}:this.beingDragged?{transform:`translateX(${this.dragDelta}px)`,opacity:1-Math.abs(this.dragDelta/this.removalDistance)}:{transition:"transform 0.2s, opacity 0.2s",transform:"translateX(0)",opacity:1}},dragDelta(){return this.beingDragged?this.dragPos.x-this.dragStart:0},removalDistance(){return P(this.dragRect)?(this.dragRect.right-this.dragRect.left)*this.draggablePercent:0}},mounted(){this.draggable&&this.draggableSetup(),this.pauseOnFocusLoss&&this.focusSetup()},beforeDestroy(){this.draggable&&this.draggableCleanup(),this.pauseOnFocusLoss&&this.focusCleanup()},destroyed(){setTimeout((()=>{B(this.$el)}),1e3)},methods:{getVueComponentFromObj:U,closeToast(){this.eventBus.$emit(i.DISMISS,this.id)},clickHandler(){this.onClick&&this.onClick(this.closeToast),this.closeOnClick&&(this.beingDragged&&this.dragStart!==this.dragPos.x||this.closeToast())},timeoutHandler(){this.closeToast()},hoverPause(){this.pauseOnHover&&(this.isRunning=!1)},hoverPlay(){this.pauseOnHover&&(this.isRunning=!0)},focusPause(){this.isRunning=!1},focusPlay(){this.isRunning=!0},focusSetup(){addEventListener("blur",this.focusPause),addEventListener("focus",this.focusPlay)},focusCleanup(){removeEventListener("blur",this.focusPause),removeEventListener("focus",this.focusPlay)},draggableSetup(){const t=this.$el;t.addEventListener("touchstart",this.onDragStart,{passive:!0}),t.addEventListener("mousedown",this.onDragStart),addEventListener("touchmove",this.onDragMove,{passive:!1}),addEventListener("mousemove",this.onDragMove),addEventListener("touchend",this.onDragEnd),addEventListener("mouseup",this.onDragEnd)},draggableCleanup(){const t=this.$el;t.removeEventListener("touchstart",this.onDragStart),t.removeEventListener("mousedown",this.onDragStart),removeEventListener("touchmove",this.onDragMove),removeEventListener("mousemove",this.onDragMove),removeEventListener("touchend",this.onDragEnd),removeEventListener("mouseup",this.onDragEnd)},onDragStart(t){this.beingDragged=!0,this.dragPos={x:I(t),y:k(t)},this.dragStart=I(t),this.dragRect=this.$el.getBoundingClientRect()},onDragMove(t){this.beingDragged&&(t.preventDefault(),this.isRunning&&(this.isRunning=!1),this.dragPos={x:I(t),y:k(t)})},onDragEnd(){this.beingDragged&&(Math.abs(this.dragDelta)>=this.removalDistance?(this.disableTransitions=!0,this.$nextTick((()=>this.closeToast()))):setTimeout((()=>{this.beingDragged=!1,P(this.dragRect)&&this.pauseOnHover&&this.dragRect.bottom>=this.dragPos.y&&this.dragPos.y>=this.dragRect.top&&this.dragRect.left<=this.dragPos.x&&this.dragPos.x<=this.dragRect.right?this.isRunning=!1:this.isRunning=!0})))}}});const Xt=Yt;var Kt=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{class:t.classes,style:t.draggableStyle,on:{click:t.clickHandler,mouseenter:t.hoverPause,mouseleave:t.hoverPlay}},[t.icon?r("Icon",{attrs:{"custom-icon":t.icon,type:t.type}}):t._e(),t._v(" "),r("div",{class:t.bodyClasses,attrs:{role:t.accessibility.toastRole||"alert"}},["string"===typeof t.content?[t._v(t._s(t.content))]:r(t.getVueComponentFromObj(t.content),t._g(t._b({tag:"component",attrs:{"toast-id":t.id},on:{"close-toast":t.closeToast}},"component",t.content.props,!1),t.content.listeners))],2),t._v(" "),t.closeButton?r("CloseButton",{attrs:{component:t.closeButton,"class-names":t.closeButtonClassName,"show-on-hover":t.showCloseButtonOnHover,"aria-label":t.accessibility.closeButtonLabel},on:{click:function(e){return e.stopPropagation(),t.closeToast(e)}}}):t._e(),t._v(" "),t.timeout?r("ProgressBar",{attrs:{"is-running":t.isRunning,"hide-progress-bar":t.hideProgressBar,timeout:t.timeout},on:{"close-toast":t.timeoutHandler}}):t._e()],1)},Qt=[];Kt._withStripped=!0;const Zt=void 0,te=void 0,ee=void 0,re=!1,ne=M({render:Kt,staticRenderFns:Qt},Zt,Xt,te,re,ee,!1,void 0,void 0,void 0);var oe=a["default"].extend({inheritAttrs:!1,props:g.TRANSITION,methods:{beforeEnter(t){const e="number"===typeof this.transitionDuration?this.transitionDuration:this.transitionDuration.enter;t.style.animationDuration=`${e}ms`,t.style.animationFillMode="both",this.$emit("before-enter",t)},afterEnter(t){this.cleanUpStyles(t),this.$emit("after-enter",t)},afterLeave(t){this.cleanUpStyles(t),this.$emit("after-leave",t)},beforeLeave(t){const e="number"===typeof this.transitionDuration?this.transitionDuration:this.transitionDuration.leave;t.style.animationDuration=`${e}ms`,t.style.animationFillMode="both",this.$emit("before-leave",t)},leave(t,e){this.setAbsolutePosition(t),this.$emit("leave",t,e)},setAbsolutePosition(t){t.style.left=t.offsetLeft+"px",t.style.top=t.offsetTop+"px",t.style.width=getComputedStyle(t).width,t.style.height=getComputedStyle(t).height,t.style.position="absolute"},cleanUpStyles(t){t.style.animationFillMode="",t.style.animationDuration=""}}});const ie=oe;var ae=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("transition-group",{attrs:{tag:"div","enter-active-class":t.transition.enter?t.transition.enter:t.transition+"-enter-active","move-class":t.transition.move?t.transition.move:t.transition+"-move","leave-active-class":t.transition.leave?t.transition.leave:t.transition+"-leave-active"},on:{leave:t.leave,"before-enter":t.beforeEnter,"before-leave":t.beforeLeave,"after-enter":t.afterEnter,"after-leave":t.afterLeave}},[t._t("default")],2)},se=[];ae._withStripped=!0;const ce=void 0,ue=void 0,le=void 0,fe=!1,pe=M({render:ae,staticRenderFns:se},ce,ie,ue,fe,le,!1,void 0,void 0,void 0);var de=a["default"].extend({components:{Toast:ne,VtTransition:pe},props:Object.assign({},g.CORE_TOAST,g.CONTAINER,g.TRANSITION),data(){const t={count:0,positions:Object.values(o),toasts:{},defaults:{}};return t},computed:{toastArray(){return Object.values(this.toasts)},filteredToasts(){return this.defaults.filterToasts(this.toastArray)}},beforeMount(){this.setup(this.container);const t=this.eventBus;t.$on(i.ADD,this.addToast),t.$on(i.CLEAR,this.clearToasts),t.$on(i.DISMISS,this.dismissToast),t.$on(i.UPDATE,this.updateToast),t.$on(i.UPDATE_DEFAULTS,this.updateDefaults),this.defaults=this.$props},methods:{setup(t){return s(this,void 0,void 0,(function*(){v(t)&&(t=yield t()),B(this.$el),t.appendChild(this.$el)}))},setToast(t){S(t.id)||this.$set(this.toasts,t.id,t)},addToast(t){const e=Object.assign({},this.defaults,t.type&&this.defaults.toastDefaults&&this.defaults.toastDefaults[t.type],t),r=this.defaults.filterBeforeCreate(e,this.toastArray);r&&this.setToast(r)},dismissToast(t){const e=this.toasts[t];S(e)||S(e.onClose)||e.onClose(),this.$delete(this.toasts,t)},clearToasts(){Object.keys(this.toasts).forEach((t=>{this.dismissToast(t)}))},getPositionToasts(t){const e=this.filteredToasts.filter((e=>e.position===t)).slice(0,this.defaults.maxToasts);return this.defaults.newestOnTop?e.reverse():e},updateDefaults(t){S(t.container)||this.setup(t.container),this.defaults=Object.assign({},this.defaults,t)},updateToast({id:t,options:e,create:r}){this.toasts[t]?(e.timeout&&e.timeout===this.toasts[t].timeout&&e.timeout++,this.setToast(Object.assign({},this.toasts[t],e))):r&&this.addToast(Object.assign({},{id:t},e))},getClasses(t){const e=[`${c}__container`,t];return e.concat(this.defaults.containerClassName)}}});const he=de;var me=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",t._l(t.positions,(function(e){return r("div",{key:e},[r("VtTransition",{class:t.getClasses(e),attrs:{transition:t.defaults.transition,"transition-duration":t.defaults.transitionDuration}},t._l(t.getPositionToasts(e),(function(e){return r("Toast",t._b({key:e.id},"Toast",e,!1))})),1)],1)})),0)},ye=[];me._withStripped=!0;const ge=void 0,ve=void 0,be=void 0,we=!1,Ee=M({render:me,staticRenderFns:ye},ge,he,ve,we,be,!1,void 0,void 0,void 0),Se=(t,e={},r=!0)=>{const o=e.eventBus=e.eventBus||new t;if(r){const r=new(t.extend(Ee))({el:document.createElement("div"),propsData:e}),n=e.onMounted;S(n)||n(r)}const a=(t,e)=>{const r=Object.assign({},{id:D(),type:n.DEFAULT},e,{content:t});return o.$emit(i.ADD,r),r.id};function s(t,{content:e,options:r},n=!1){o.$emit(i.UPDATE,{id:t,options:Object.assign({},r,{content:e}),create:n})}return a.clear=()=>o.$emit(i.CLEAR),a.updateDefaults=t=>{o.$emit(i.UPDATE_DEFAULTS,t)},a.dismiss=t=>{o.$emit(i.DISMISS,t)},a.update=s,a.success=(t,e)=>a(t,Object.assign({},e,{type:n.SUCCESS})),a.info=(t,e)=>a(t,Object.assign({},e,{type:n.INFO})),a.error=(t,e)=>a(t,Object.assign({},e,{type:n.ERROR})),a.warning=(t,e)=>a(t,Object.assign({},e,{type:n.WARNING})),a};function Oe(t,e=a["default"]){const r=t=>t instanceof e;return r(t)?Se(e,{eventBus:t},!1):Se(e,t,!0)}const Te=(t,e)=>{const r=Oe(e,t);t.$toast=r,t.prototype.$toast=r},Ae=Te},52829:(t,e,r)=>{"use strict";r.d(e,{VPI:()=>A,Zaf:()=>R,baj:()=>_,iPe:()=>C});var n=r(20144);n["default"].util.warn;function o(t){return!!(0,n.getCurrentScope)()&&((0,n.onScopeDispose)(t),!0)}function i(t){return"function"===typeof t?t():(0,n.unref)(t)}const a="undefined"!==typeof window&&"undefined"!==typeof document,s=("undefined"!==typeof WorkerGlobalScope&&(globalThis,WorkerGlobalScope),Object.prototype.toString),c=t=>"[object Object]"===s.call(t),u=()=>{};function l(t){const e=Object.create(null);return r=>{const n=e[r];return n||(e[r]=t(r))}}const f=/\B([A-Z])/g,p=(l((t=>t.replace(f,"-$1").toLowerCase())),/-(\w)/g);l((t=>t.replace(p,((t,e)=>e?e.toUpperCase():""))));function d(t){let e;function r(){return e||(e=t()),e}return r.reset=async()=>{const t=e;e=void 0,t&&await t},r}function h(t){return t||(0,n.getCurrentInstance)()}function m(t,e=!0,r){const o=h();o?(0,n.onMounted)(t,r):e?t():(0,n.nextTick)(t)}function y(t,e,r={}){const{immediate:s=!0}=r,c=(0,n.ref)(!1);let u=null;function l(){u&&(clearTimeout(u),u=null)}function f(){c.value=!1,l()}function p(...r){l(),c.value=!0,u=setTimeout((()=>{c.value=!1,u=null,t(...r)}),i(e))}return s&&(c.value=!0,a&&p()),o(f),{isPending:(0,n.readonly)(c),start:p,stop:f}}n["default"].util.warn;function g(t){var e;const r=i(t);return null!=(e=null==r?void 0:r.$el)?e:r}const v=a?window:void 0,b=(a&&window.document,a?window.navigator:void 0);a&&window.location;function w(...t){let e,r,a,s;if("string"===typeof t[0]||Array.isArray(t[0])?([r,a,s]=t,e=v):[e,r,a,s]=t,!e)return u;Array.isArray(r)||(r=[r]),Array.isArray(a)||(a=[a]);const l=[],f=()=>{l.forEach((t=>t())),l.length=0},p=(t,e,r,n)=>(t.addEventListener(e,r,n),()=>t.removeEventListener(e,r,n)),d=(0,n.watch)((()=>[g(e),i(s)]),(([t,e])=>{if(f(),!t)return;const n=c(e)?{...e}:e;l.push(...r.flatMap((e=>a.map((r=>p(t,e,r,n))))))}),{immediate:!0,flush:"post"}),h=()=>{d(),f()};return o(h),h}function E(){const t=(0,n.ref)(!1);return(0,n.getCurrentInstance)()&&(0,n.onMounted)((()=>{t.value=!0})),t}function S(t){const e=E();return(0,n.computed)((()=>(e.value,Boolean(t()))))}function O(t,e={}){const{window:r=v}=e,a=S((()=>r&&"matchMedia"in r&&"function"===typeof r.matchMedia));let s;const c=(0,n.ref)(!1),u=t=>{c.value=t.matches},l=()=>{s&&("removeEventListener"in s?s.removeEventListener("change",u):s.removeListener(u))},f=(0,n.watchEffect)((()=>{a.value&&(l(),s=r.matchMedia(i(t)),"addEventListener"in s?s.addEventListener("change",u):s.addListener(u),c.value=s.matches)}));return o((()=>{f(),l(),s=void 0})),c}function T(t,e={}){const{controls:r=!1,navigator:o=b}=e,i=S((()=>o&&"permissions"in o));let a;const s="string"===typeof t?{name:t}:t,c=(0,n.ref)(),u=()=>{a&&(c.value=a.state)},l=d((async()=>{if(i.value){if(!a)try{a=await o.permissions.query(s),w(a,"change",u),u()}catch(t){c.value="prompt"}return a}}));return l(),r?{state:c,isSupported:i,query:l}:c}function A(t={}){const{navigator:e=b,read:r=!1,source:o,copiedDuring:a=1500,legacy:s=!1}=t,c=S((()=>e&&"clipboard"in e)),u=T("clipboard-read"),l=T("clipboard-write"),f=(0,n.computed)((()=>c.value||s)),p=(0,n.ref)(""),d=(0,n.ref)(!1),h=y((()=>d.value=!1),a);function m(){c.value&&"denied"!==u.value?e.clipboard.readText().then((t=>{p.value=t})):p.value=E()}async function g(t=i(o)){f.value&&null!=t&&(c.value&&"denied"!==l.value?await e.clipboard.writeText(t):v(t),p.value=t,d.value=!0,h.start())}function v(t){const e=document.createElement("textarea");e.value=null!=t?t:"",e.style.position="absolute",e.style.opacity="0",document.body.appendChild(e),e.select(),document.execCommand("copy"),e.remove()}function E(){var t,e,r;return null!=(r=null==(e=null==(t=null==document?void 0:document.getSelection)?void 0:t.call(document))?void 0:e.toString())?r:""}return f.value&&r&&w(["copy","cut"],m),{isSupported:f,text:p,copied:d,copy:g}}"undefined"!==typeof globalThis?globalThis:"undefined"!==typeof window?window:"undefined"!==typeof global?global:"undefined"!==typeof self&&self;function x(t,e,r={}){const{window:i=v,...a}=r;let s;const c=S((()=>i&&"MutationObserver"in i)),u=()=>{s&&(s.disconnect(),s=void 0)},l=(0,n.watch)((()=>g(t)),(t=>{u(),c.value&&i&&t&&(s=new MutationObserver(e),s.observe(t,a))}),{immediate:!0}),f=()=>null==s?void 0:s.takeRecords(),p=()=>{u(),l()};return o(p),{isSupported:c,stop:p,takeRecords:f}}function R(t,e,r={}){const{window:o=v,initialValue:a="",observe:s=!1}=r,c=(0,n.ref)(a),u=(0,n.computed)((()=>{var t;return g(e)||(null==(t=null==o?void 0:o.document)?void 0:t.documentElement)}));function l(){var e;const r=i(t),n=i(u);if(n&&o){const t=null==(e=o.getComputedStyle(n).getPropertyValue(r))?void 0:e.trim();c.value=t||a}}return s&&x(u,l,{attributeFilter:["style","class"],window:o}),(0,n.watch)([u,()=>i(t)],l,{immediate:!0}),(0,n.watch)(c,(e=>{var r;(null==(r=u.value)?void 0:r.style)&&u.value.style.setProperty(i(t),e)})),c}Number.POSITIVE_INFINITY;function _(t={}){const{window:e=v,behavior:r="auto"}=t;if(!e)return{x:(0,n.ref)(0),y:(0,n.ref)(0)};const o=(0,n.ref)(e.scrollX),i=(0,n.ref)(e.scrollY),a=(0,n.computed)({get(){return o.value},set(t){scrollTo({left:t,behavior:r})}}),s=(0,n.computed)({get(){return i.value},set(t){scrollTo({top:t,behavior:r})}});return w(e,"scroll",(()=>{o.value=e.scrollX,i.value=e.scrollY}),{capture:!1,passive:!0}),{x:a,y:s}}function C(t={}){const{window:e=v,initialWidth:r=Number.POSITIVE_INFINITY,initialHeight:o=Number.POSITIVE_INFINITY,listenOrientation:i=!0,includeScrollbar:a=!0}=t,s=(0,n.ref)(r),c=(0,n.ref)(o),u=()=>{e&&(a?(s.value=e.innerWidth,c.value=e.innerHeight):(s.value=e.document.documentElement.clientWidth,c.value=e.document.documentElement.clientHeight))};if(u(),m(u),w("resize",u,{passive:!0}),i){const t=O("(orientation: portrait)");(0,n.watch)(t,(()=>u()))}return{width:s,height:c}}},87066:(t,e,r)=>{"use strict";r.d(e,{default:()=>br});var n={};function o(t,e){return function(){return t.apply(e,arguments)}}r.r(n),r.d(n,{hasBrowserEnv:()=>Ft,hasStandardBrowserEnv:()=>$t,hasStandardBrowserWebWorkerEnv:()=>Ht,navigator:()=>Mt,origin:()=>Wt});const{toString:i}=Object.prototype,{getPrototypeOf:a}=Object,s=(t=>e=>{const r=i.call(e);return t[r]||(t[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),c=t=>(t=t.toLowerCase(),e=>s(e)===t),u=t=>e=>typeof e===t,{isArray:l}=Array,f=u("undefined");function p(t){return null!==t&&!f(t)&&null!==t.constructor&&!f(t.constructor)&&y(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const d=c("ArrayBuffer");function h(t){let e;return e="undefined"!==typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer&&d(t.buffer),e}const m=u("string"),y=u("function"),g=u("number"),v=t=>null!==t&&"object"===typeof t,b=t=>!0===t||!1===t,w=t=>{if("object"!==s(t))return!1;const e=a(t);return(null===e||e===Object.prototype||null===Object.getPrototypeOf(e))&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)},E=c("Date"),S=c("File"),O=c("Blob"),T=c("FileList"),A=t=>v(t)&&y(t.pipe),x=t=>{let e;return t&&("function"===typeof FormData&&t instanceof FormData||y(t.append)&&("formdata"===(e=s(t))||"object"===e&&y(t.toString)&&"[object FormData]"===t.toString()))},R=c("URLSearchParams"),[_,C,N,P]=["ReadableStream","Request","Response","Headers"].map(c),j=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function L(t,e,{allOwnKeys:r=!1}={}){if(null===t||"undefined"===typeof t)return;let n,o;if("object"!==typeof t&&(t=[t]),l(t))for(n=0,o=t.length;n0)if(n=r[o],e===n.toLowerCase())return n;return null}const I=(()=>"undefined"!==typeof globalThis?globalThis:"undefined"!==typeof self?self:"undefined"!==typeof window?window:global)(),k=t=>!f(t)&&t!==I;function B(){const{caseless:t}=k(this)&&this||{},e={},r=(r,n)=>{const o=t&&D(e,n)||n;w(e[o])&&w(r)?e[o]=B(e[o],r):w(r)?e[o]=B({},r):l(r)?e[o]=r.slice():e[o]=r};for(let n=0,o=arguments.length;n(L(e,((e,n)=>{r&&y(e)?t[n]=o(e,r):t[n]=e}),{allOwnKeys:n}),t),F=t=>(65279===t.charCodeAt(0)&&(t=t.slice(1)),t),M=(t,e,r,n)=>{t.prototype=Object.create(e.prototype,n),t.prototype.constructor=t,Object.defineProperty(t,"super",{value:e.prototype}),r&&Object.assign(t.prototype,r)},$=(t,e,r,n)=>{let o,i,s;const c={};if(e=e||{},null==t)return e;do{o=Object.getOwnPropertyNames(t),i=o.length;while(i-- >0)s=o[i],n&&!n(s,t,e)||c[s]||(e[s]=t[s],c[s]=!0);t=!1!==r&&a(t)}while(t&&(!r||r(t,e))&&t!==Object.prototype);return e},H=(t,e,r)=>{t=String(t),(void 0===r||r>t.length)&&(r=t.length),r-=e.length;const n=t.indexOf(e,r);return-1!==n&&n===r},W=t=>{if(!t)return null;if(l(t))return t;let e=t.length;if(!g(e))return null;const r=new Array(e);while(e-- >0)r[e]=t[e];return r},z=(t=>e=>t&&e instanceof t)("undefined"!==typeof Uint8Array&&a(Uint8Array)),q=(t,e)=>{const r=t&&t[Symbol.iterator],n=r.call(t);let o;while((o=n.next())&&!o.done){const r=o.value;e.call(t,r[0],r[1])}},G=(t,e)=>{let r;const n=[];while(null!==(r=t.exec(e)))n.push(r);return n},V=c("HTMLFormElement"),J=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function(t,e,r){return e.toUpperCase()+r})),Y=(({hasOwnProperty:t})=>(e,r)=>t.call(e,r))(Object.prototype),X=c("RegExp"),K=(t,e)=>{const r=Object.getOwnPropertyDescriptors(t),n={};L(r,((r,o)=>{let i;!1!==(i=e(r,o,t))&&(n[o]=i||r)})),Object.defineProperties(t,n)},Q=t=>{K(t,((e,r)=>{if(y(t)&&-1!==["arguments","caller","callee"].indexOf(r))return!1;const n=t[r];y(n)&&(e.enumerable=!1,"writable"in e?e.writable=!1:e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")}))}))},Z=(t,e)=>{const r={},n=t=>{t.forEach((t=>{r[t]=!0}))};return l(t)?n(t):n(String(t).split(e)),r},tt=()=>{},et=(t,e)=>null!=t&&Number.isFinite(t=+t)?t:e,rt="abcdefghijklmnopqrstuvwxyz",nt="0123456789",ot={DIGIT:nt,ALPHA:rt,ALPHA_DIGIT:rt+rt.toUpperCase()+nt},it=(t=16,e=ot.ALPHA_DIGIT)=>{let r="";const{length:n}=e;while(t--)r+=e[Math.random()*n|0];return r};function at(t){return!!(t&&y(t.append)&&"FormData"===t[Symbol.toStringTag]&&t[Symbol.iterator])}const st=t=>{const e=new Array(10),r=(t,n)=>{if(v(t)){if(e.indexOf(t)>=0)return;if(!("toJSON"in t)){e[n]=t;const o=l(t)?[]:{};return L(t,((t,e)=>{const i=r(t,n+1);!f(i)&&(o[e]=i)})),e[n]=void 0,o}}return t};return r(t,0)},ct=c("AsyncFunction"),ut=t=>t&&(v(t)||y(t))&&y(t.then)&&y(t.catch),lt=((t,e)=>t?setImmediate:e?((t,e)=>(I.addEventListener("message",(({source:r,data:n})=>{r===I&&n===t&&e.length&&e.shift()()}),!1),r=>{e.push(r),I.postMessage(t,"*")}))(`axios@${Math.random()}`,[]):t=>setTimeout(t))("function"===typeof setImmediate,y(I.postMessage)),ft="undefined"!==typeof queueMicrotask?queueMicrotask.bind(I):"undefined"!==typeof process&&process.nextTick||lt,pt={isArray:l,isArrayBuffer:d,isBuffer:p,isFormData:x,isArrayBufferView:h,isString:m,isNumber:g,isBoolean:b,isObject:v,isPlainObject:w,isReadableStream:_,isRequest:C,isResponse:N,isHeaders:P,isUndefined:f,isDate:E,isFile:S,isBlob:O,isRegExp:X,isFunction:y,isStream:A,isURLSearchParams:R,isTypedArray:z,isFileList:T,forEach:L,merge:B,extend:U,trim:j,stripBOM:F,inherits:M,toFlatObject:$,kindOf:s,kindOfTest:c,endsWith:H,toArray:W,forEachEntry:q,matchAll:G,isHTMLForm:V,hasOwnProperty:Y,hasOwnProp:Y,reduceDescriptors:K,freezeMethods:Q,toObjectSet:Z,toCamelCase:J,noop:tt,toFiniteNumber:et,findKey:D,global:I,isContextDefined:k,ALPHABET:ot,generateString:it,isSpecCompliantForm:at,toJSONObject:st,isAsyncFn:ct,isThenable:ut,setImmediate:lt,asap:ft};function dt(t,e,r,n,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=t,this.name="AxiosError",e&&(this.code=e),r&&(this.config=r),n&&(this.request=n),o&&(this.response=o,this.status=o.status?o.status:null)}pt.inherits(dt,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:pt.toJSONObject(this.config),code:this.code,status:this.status}}});const ht=dt.prototype,mt={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach((t=>{mt[t]={value:t}})),Object.defineProperties(dt,mt),Object.defineProperty(ht,"isAxiosError",{value:!0}),dt.from=(t,e,r,n,o,i)=>{const a=Object.create(ht);return pt.toFlatObject(t,a,(function(t){return t!==Error.prototype}),(t=>"isAxiosError"!==t)),dt.call(a,t.message,e,r,n,o),a.cause=t,a.name=t.name,i&&Object.assign(a,i),a};const yt=dt,gt=null;var vt=r(48764)["lW"];function bt(t){return pt.isPlainObject(t)||pt.isArray(t)}function wt(t){return pt.endsWith(t,"[]")?t.slice(0,-2):t}function Et(t,e,r){return t?t.concat(e).map((function(t,e){return t=wt(t),!r&&e?"["+t+"]":t})).join(r?".":""):e}function St(t){return pt.isArray(t)&&!t.some(bt)}const Ot=pt.toFlatObject(pt,{},null,(function(t){return/^is[A-Z]/.test(t)}));function Tt(t,e,r){if(!pt.isObject(t))throw new TypeError("target must be an object");e=e||new(gt||FormData),r=pt.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(t,e){return!pt.isUndefined(e[t])}));const n=r.metaTokens,o=r.visitor||l,i=r.dots,a=r.indexes,s=r.Blob||"undefined"!==typeof Blob&&Blob,c=s&&pt.isSpecCompliantForm(e);if(!pt.isFunction(o))throw new TypeError("visitor must be a function");function u(t){if(null===t)return"";if(pt.isDate(t))return t.toISOString();if(!c&&pt.isBlob(t))throw new yt("Blob is not supported. Use a Buffer instead.");return pt.isArrayBuffer(t)||pt.isTypedArray(t)?c&&"function"===typeof Blob?new Blob([t]):vt.from(t):t}function l(t,r,o){let s=t;if(t&&!o&&"object"===typeof t)if(pt.endsWith(r,"{}"))r=n?r:r.slice(0,-2),t=JSON.stringify(t);else if(pt.isArray(t)&&St(t)||(pt.isFileList(t)||pt.endsWith(r,"[]"))&&(s=pt.toArray(t)))return r=wt(r),s.forEach((function(t,n){!pt.isUndefined(t)&&null!==t&&e.append(!0===a?Et([r],n,i):null===a?r:r+"[]",u(t))})),!1;return!!bt(t)||(e.append(Et(o,r,i),u(t)),!1)}const f=[],p=Object.assign(Ot,{defaultVisitor:l,convertValue:u,isVisitable:bt});function d(t,r){if(!pt.isUndefined(t)){if(-1!==f.indexOf(t))throw Error("Circular reference detected in "+r.join("."));f.push(t),pt.forEach(t,(function(t,n){const i=!(pt.isUndefined(t)||null===t)&&o.call(e,t,pt.isString(n)?n.trim():n,r,p);!0===i&&d(t,r?r.concat(n):[n])})),f.pop()}}if(!pt.isObject(t))throw new TypeError("data must be an object");return d(t),e}const At=Tt;function xt(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,(function(t){return e[t]}))}function Rt(t,e){this._pairs=[],t&&At(t,this,e)}const _t=Rt.prototype;_t.append=function(t,e){this._pairs.push([t,e])},_t.toString=function(t){const e=t?function(e){return t.call(this,e,xt)}:xt;return this._pairs.map((function(t){return e(t[0])+"="+e(t[1])}),"").join("&")};const Ct=Rt;function Nt(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Pt(t,e,r){if(!e)return t;const n=r&&r.encode||Nt,o=r&&r.serialize;let i;if(i=o?o(e,r):pt.isURLSearchParams(e)?e.toString():new Ct(e,r).toString(n),i){const e=t.indexOf("#");-1!==e&&(t=t.slice(0,e)),t+=(-1===t.indexOf("?")?"?":"&")+i}return t}class jt{constructor(){this.handlers=[]}use(t,e,r){return this.handlers.push({fulfilled:t,rejected:e,synchronous:!!r&&r.synchronous,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){pt.forEach(this.handlers,(function(e){null!==e&&t(e)}))}}const Lt=jt,Dt={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},It="undefined"!==typeof URLSearchParams?URLSearchParams:Ct,kt="undefined"!==typeof FormData?FormData:null,Bt="undefined"!==typeof Blob?Blob:null,Ut={isBrowser:!0,classes:{URLSearchParams:It,FormData:kt,Blob:Bt},protocols:["http","https","file","blob","url","data"]},Ft="undefined"!==typeof window&&"undefined"!==typeof document,Mt="object"===typeof navigator&&navigator||void 0,$t=Ft&&(!Mt||["ReactNative","NativeScript","NS"].indexOf(Mt.product)<0),Ht=(()=>"undefined"!==typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"===typeof self.importScripts)(),Wt=Ft&&window.location.href||"http://localhost",zt={...n,...Ut};function qt(t,e){return At(t,new zt.classes.URLSearchParams,Object.assign({visitor:function(t,e,r,n){return zt.isNode&&pt.isBuffer(t)?(this.append(e,t.toString("base64")),!1):n.defaultVisitor.apply(this,arguments)}},e))}function Gt(t){return pt.matchAll(/\w+|\[(\w*)]/g,t).map((t=>"[]"===t[0]?"":t[1]||t[0]))}function Vt(t){const e={},r=Object.keys(t);let n;const o=r.length;let i;for(n=0;n=t.length;if(i=!i&&pt.isArray(n)?n.length:i,s)return pt.hasOwnProp(n,i)?n[i]=[n[i],r]:n[i]=r,!a;n[i]&&pt.isObject(n[i])||(n[i]=[]);const c=e(t,r,n[i],o);return c&&pt.isArray(n[i])&&(n[i]=Vt(n[i])),!a}if(pt.isFormData(t)&&pt.isFunction(t.entries)){const r={};return pt.forEachEntry(t,((t,n)=>{e(Gt(t),n,r,0)})),r}return null}const Yt=Jt;function Xt(t,e,r){if(pt.isString(t))try{return(e||JSON.parse)(t),pt.trim(t)}catch(n){if("SyntaxError"!==n.name)throw n}return(r||JSON.stringify)(t)}const Kt={transitional:Dt,adapter:["xhr","http","fetch"],transformRequest:[function(t,e){const r=e.getContentType()||"",n=r.indexOf("application/json")>-1,o=pt.isObject(t);o&&pt.isHTMLForm(t)&&(t=new FormData(t));const i=pt.isFormData(t);if(i)return n?JSON.stringify(Yt(t)):t;if(pt.isArrayBuffer(t)||pt.isBuffer(t)||pt.isStream(t)||pt.isFile(t)||pt.isBlob(t)||pt.isReadableStream(t))return t;if(pt.isArrayBufferView(t))return t.buffer;if(pt.isURLSearchParams(t))return e.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let a;if(o){if(r.indexOf("application/x-www-form-urlencoded")>-1)return qt(t,this.formSerializer).toString();if((a=pt.isFileList(t))||r.indexOf("multipart/form-data")>-1){const e=this.env&&this.env.FormData;return At(a?{"files[]":t}:t,e&&new e,this.formSerializer)}}return o||n?(e.setContentType("application/json",!1),Xt(t)):t}],transformResponse:[function(t){const e=this.transitional||Kt.transitional,r=e&&e.forcedJSONParsing,n="json"===this.responseType;if(pt.isResponse(t)||pt.isReadableStream(t))return t;if(t&&pt.isString(t)&&(r&&!this.responseType||n)){const r=e&&e.silentJSONParsing,i=!r&&n;try{return JSON.parse(t)}catch(o){if(i){if("SyntaxError"===o.name)throw yt.from(o,yt.ERR_BAD_RESPONSE,this,null,this.response);throw o}}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:zt.classes.FormData,Blob:zt.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};pt.forEach(["delete","get","head","post","put","patch"],(t=>{Kt.headers[t]={}}));const Qt=Kt,Zt=pt.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),te=t=>{const e={};let r,n,o;return t&&t.split("\n").forEach((function(t){o=t.indexOf(":"),r=t.substring(0,o).trim().toLowerCase(),n=t.substring(o+1).trim(),!r||e[r]&&Zt[r]||("set-cookie"===r?e[r]?e[r].push(n):e[r]=[n]:e[r]=e[r]?e[r]+", "+n:n)})),e},ee=Symbol("internals");function re(t){return t&&String(t).trim().toLowerCase()}function ne(t){return!1===t||null==t?t:pt.isArray(t)?t.map(ne):String(t)}function oe(t){const e=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;while(n=r.exec(t))e[n[1]]=n[2];return e}const ie=t=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());function ae(t,e,r,n,o){return pt.isFunction(n)?n.call(this,e,r):(o&&(e=r),pt.isString(e)?pt.isString(n)?-1!==e.indexOf(n):pt.isRegExp(n)?n.test(e):void 0:void 0)}function se(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((t,e,r)=>e.toUpperCase()+r))}function ce(t,e){const r=pt.toCamelCase(" "+e);["get","set","has"].forEach((n=>{Object.defineProperty(t,n+r,{value:function(t,r,o){return this[n].call(this,e,t,r,o)},configurable:!0})}))}class ue{constructor(t){t&&this.set(t)}set(t,e,r){const n=this;function o(t,e,r){const o=re(e);if(!o)throw new Error("header name must be a non-empty string");const i=pt.findKey(n,o);(!i||void 0===n[i]||!0===r||void 0===r&&!1!==n[i])&&(n[i||e]=ne(t))}const i=(t,e)=>pt.forEach(t,((t,r)=>o(t,r,e)));if(pt.isPlainObject(t)||t instanceof this.constructor)i(t,e);else if(pt.isString(t)&&(t=t.trim())&&!ie(t))i(te(t),e);else if(pt.isHeaders(t))for(const[a,s]of t.entries())o(s,a,r);else null!=t&&o(e,t,r);return this}get(t,e){if(t=re(t),t){const r=pt.findKey(this,t);if(r){const t=this[r];if(!e)return t;if(!0===e)return oe(t);if(pt.isFunction(e))return e.call(this,t,r);if(pt.isRegExp(e))return e.exec(t);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,e){if(t=re(t),t){const r=pt.findKey(this,t);return!(!r||void 0===this[r]||e&&!ae(this,this[r],r,e))}return!1}delete(t,e){const r=this;let n=!1;function o(t){if(t=re(t),t){const o=pt.findKey(r,t);!o||e&&!ae(r,r[o],o,e)||(delete r[o],n=!0)}}return pt.isArray(t)?t.forEach(o):o(t),n}clear(t){const e=Object.keys(this);let r=e.length,n=!1;while(r--){const o=e[r];t&&!ae(this,this[o],o,t,!0)||(delete this[o],n=!0)}return n}normalize(t){const e=this,r={};return pt.forEach(this,((n,o)=>{const i=pt.findKey(r,o);if(i)return e[i]=ne(n),void delete e[o];const a=t?se(o):String(o).trim();a!==o&&delete e[o],e[a]=ne(n),r[a]=!0})),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const e=Object.create(null);return pt.forEach(this,((r,n)=>{null!=r&&!1!==r&&(e[n]=t&&pt.isArray(r)?r.join(", "):r)})),e}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map((([t,e])=>t+": "+e)).join("\n")}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...e){const r=new this(t);return e.forEach((t=>r.set(t))),r}static accessor(t){const e=this[ee]=this[ee]={accessors:{}},r=e.accessors,n=this.prototype;function o(t){const e=re(t);r[e]||(ce(n,t),r[e]=!0)}return pt.isArray(t)?t.forEach(o):o(t),this}}ue.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),pt.reduceDescriptors(ue.prototype,(({value:t},e)=>{let r=e[0].toUpperCase()+e.slice(1);return{get:()=>t,set(t){this[r]=t}}})),pt.freezeMethods(ue);const le=ue;function fe(t,e){const r=this||Qt,n=e||r,o=le.from(n.headers);let i=n.data;return pt.forEach(t,(function(t){i=t.call(r,i,o.normalize(),e?e.status:void 0)})),o.normalize(),i}function pe(t){return!(!t||!t.__CANCEL__)}function de(t,e,r){yt.call(this,null==t?"canceled":t,yt.ERR_CANCELED,e,r),this.name="CanceledError"}pt.inherits(de,yt,{__CANCEL__:!0});const he=de;function me(t,e,r){const n=r.config.validateStatus;r.status&&n&&!n(r.status)?e(new yt("Request failed with status code "+r.status,[yt.ERR_BAD_REQUEST,yt.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r)):t(r)}function ye(t){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}function ge(t,e){t=t||10;const r=new Array(t),n=new Array(t);let o,i=0,a=0;return e=void 0!==e?e:1e3,function(s){const c=Date.now(),u=n[a];o||(o=c),r[i]=s,n[i]=c;let l=a,f=0;while(l!==i)f+=r[l++],l%=t;if(i=(i+1)%t,i===a&&(a=(a+1)%t),c-o{o=i,r=null,n&&(clearTimeout(n),n=null),t.apply(null,e)},s=(...t)=>{const e=Date.now(),s=e-o;s>=i?a(t,e):(r=t,n||(n=setTimeout((()=>{n=null,a(r)}),i-s)))},c=()=>r&&a(r);return[s,c]}const we=be,Ee=(t,e,r=3)=>{let n=0;const o=ve(50,250);return we((r=>{const i=r.loaded,a=r.lengthComputable?r.total:void 0,s=i-n,c=o(s),u=i<=a;n=i;const l={loaded:i,total:a,progress:a?i/a:void 0,bytes:s,rate:c||void 0,estimated:c&&a&&u?(a-i)/c:void 0,event:r,lengthComputable:null!=a,[e?"download":"upload"]:!0};t(l)}),r)},Se=(t,e)=>{const r=null!=t;return[n=>e[0]({lengthComputable:r,total:t,loaded:n}),e[1]]},Oe=t=>(...e)=>pt.asap((()=>t(...e))),Te=zt.hasStandardBrowserEnv?function(){const t=zt.navigator&&/(msie|trident)/i.test(zt.navigator.userAgent),e=document.createElement("a");let r;function n(r){let n=r;return t&&(e.setAttribute("href",n),n=e.href),e.setAttribute("href",n),{href:e.href,protocol:e.protocol?e.protocol.replace(/:$/,""):"",host:e.host,search:e.search?e.search.replace(/^\?/,""):"",hash:e.hash?e.hash.replace(/^#/,""):"",hostname:e.hostname,port:e.port,pathname:"/"===e.pathname.charAt(0)?e.pathname:"/"+e.pathname}}return r=n(window.location.href),function(t){const e=pt.isString(t)?n(t):t;return e.protocol===r.protocol&&e.host===r.host}}():function(){return function(){return!0}}(),Ae=zt.hasStandardBrowserEnv?{write(t,e,r,n,o,i){const a=[t+"="+encodeURIComponent(e)];pt.isNumber(r)&&a.push("expires="+new Date(r).toGMTString()),pt.isString(n)&&a.push("path="+n),pt.isString(o)&&a.push("domain="+o),!0===i&&a.push("secure"),document.cookie=a.join("; ")},read(t){const e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove(t){this.write(t,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function xe(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function Re(t,e){return e?t.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):t}function _e(t,e){return t&&!xe(e)?Re(t,e):e}const Ce=t=>t instanceof le?{...t}:t;function Ne(t,e){e=e||{};const r={};function n(t,e,r){return pt.isPlainObject(t)&&pt.isPlainObject(e)?pt.merge.call({caseless:r},t,e):pt.isPlainObject(e)?pt.merge({},e):pt.isArray(e)?e.slice():e}function o(t,e,r){return pt.isUndefined(e)?pt.isUndefined(t)?void 0:n(void 0,t,r):n(t,e,r)}function i(t,e){if(!pt.isUndefined(e))return n(void 0,e)}function a(t,e){return pt.isUndefined(e)?pt.isUndefined(t)?void 0:n(void 0,t):n(void 0,e)}function s(r,o,i){return i in e?n(r,o):i in t?n(void 0,r):void 0}const c={url:i,method:i,data:i,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:s,headers:(t,e)=>o(Ce(t),Ce(e),!0)};return pt.forEach(Object.keys(Object.assign({},t,e)),(function(n){const i=c[n]||o,a=i(t[n],e[n],n);pt.isUndefined(a)&&i!==s||(r[n]=a)})),r}const Pe=t=>{const e=Ne({},t);let r,{data:n,withXSRFToken:o,xsrfHeaderName:i,xsrfCookieName:a,headers:s,auth:c}=e;if(e.headers=s=le.from(s),e.url=Pt(_e(e.baseURL,e.url),t.params,t.paramsSerializer),c&&s.set("Authorization","Basic "+btoa((c.username||"")+":"+(c.password?unescape(encodeURIComponent(c.password)):""))),pt.isFormData(n))if(zt.hasStandardBrowserEnv||zt.hasStandardBrowserWebWorkerEnv)s.setContentType(void 0);else if(!1!==(r=s.getContentType())){const[t,...e]=r?r.split(";").map((t=>t.trim())).filter(Boolean):[];s.setContentType([t||"multipart/form-data",...e].join("; "))}if(zt.hasStandardBrowserEnv&&(o&&pt.isFunction(o)&&(o=o(e)),o||!1!==o&&Te(e.url))){const t=i&&a&&Ae.read(a);t&&s.set(i,t)}return e},je="undefined"!==typeof XMLHttpRequest,Le=je&&function(t){return new Promise((function(e,r){const n=Pe(t);let o=n.data;const i=le.from(n.headers).normalize();let a,s,c,u,l,{responseType:f,onUploadProgress:p,onDownloadProgress:d}=n;function h(){u&&u(),l&&l(),n.cancelToken&&n.cancelToken.unsubscribe(a),n.signal&&n.signal.removeEventListener("abort",a)}let m=new XMLHttpRequest;function y(){if(!m)return;const n=le.from("getAllResponseHeaders"in m&&m.getAllResponseHeaders()),o=f&&"text"!==f&&"json"!==f?m.response:m.responseText,i={data:o,status:m.status,statusText:m.statusText,headers:n,config:t,request:m};me((function(t){e(t),h()}),(function(t){r(t),h()}),i),m=null}m.open(n.method.toUpperCase(),n.url,!0),m.timeout=n.timeout,"onloadend"in m?m.onloadend=y:m.onreadystatechange=function(){m&&4===m.readyState&&(0!==m.status||m.responseURL&&0===m.responseURL.indexOf("file:"))&&setTimeout(y)},m.onabort=function(){m&&(r(new yt("Request aborted",yt.ECONNABORTED,t,m)),m=null)},m.onerror=function(){r(new yt("Network Error",yt.ERR_NETWORK,t,m)),m=null},m.ontimeout=function(){let e=n.timeout?"timeout of "+n.timeout+"ms exceeded":"timeout exceeded";const o=n.transitional||Dt;n.timeoutErrorMessage&&(e=n.timeoutErrorMessage),r(new yt(e,o.clarifyTimeoutError?yt.ETIMEDOUT:yt.ECONNABORTED,t,m)),m=null},void 0===o&&i.setContentType(null),"setRequestHeader"in m&&pt.forEach(i.toJSON(),(function(t,e){m.setRequestHeader(e,t)})),pt.isUndefined(n.withCredentials)||(m.withCredentials=!!n.withCredentials),f&&"json"!==f&&(m.responseType=n.responseType),d&&([c,l]=Ee(d,!0),m.addEventListener("progress",c)),p&&m.upload&&([s,u]=Ee(p),m.upload.addEventListener("progress",s),m.upload.addEventListener("loadend",u)),(n.cancelToken||n.signal)&&(a=e=>{m&&(r(!e||e.type?new he(null,t,m):e),m.abort(),m=null)},n.cancelToken&&n.cancelToken.subscribe(a),n.signal&&(n.signal.aborted?a():n.signal.addEventListener("abort",a)));const g=ye(n.url);g&&-1===zt.protocols.indexOf(g)?r(new yt("Unsupported protocol "+g+":",yt.ERR_BAD_REQUEST,t)):m.send(o||null)}))},De=(t,e)=>{const{length:r}=t=t?t.filter(Boolean):[];if(e||r){let r,n=new AbortController;const o=function(t){if(!r){r=!0,a();const e=t instanceof Error?t:this.reason;n.abort(e instanceof yt?e:new he(e instanceof Error?e.message:e))}};let i=e&&setTimeout((()=>{i=null,o(new yt(`timeout ${e} of ms exceeded`,yt.ETIMEDOUT))}),e);const a=()=>{t&&(i&&clearTimeout(i),i=null,t.forEach((t=>{t.unsubscribe?t.unsubscribe(o):t.removeEventListener("abort",o)})),t=null)};t.forEach((t=>t.addEventListener("abort",o)));const{signal:s}=n;return s.unsubscribe=()=>pt.asap(a),s}},Ie=De,ke=function*(t,e){let r=t.byteLength;if(!e||r{const o=Be(t,e);let i,a=0,s=t=>{i||(i=!0,n&&n(t))};return new ReadableStream({async pull(t){try{const{done:e,value:n}=await o.next();if(e)return s(),void t.close();let i=n.byteLength;if(r){let t=a+=i;r(t)}t.enqueue(new Uint8Array(n))}catch(e){throw s(e),e}},cancel(t){return s(t),o.return()}},{highWaterMark:2})},Me="function"===typeof fetch&&"function"===typeof Request&&"function"===typeof Response,$e=Me&&"function"===typeof ReadableStream,He=Me&&("function"===typeof TextEncoder?(t=>e=>t.encode(e))(new TextEncoder):async t=>new Uint8Array(await new Response(t).arrayBuffer())),We=(t,...e)=>{try{return!!t(...e)}catch(r){return!1}},ze=$e&&We((()=>{let t=!1;const e=new Request(zt.origin,{body:new ReadableStream,method:"POST",get duplex(){return t=!0,"half"}}).headers.has("Content-Type");return t&&!e})),qe=65536,Ge=$e&&We((()=>pt.isReadableStream(new Response("").body))),Ve={stream:Ge&&(t=>t.body)};Me&&(t=>{["text","arrayBuffer","blob","formData","stream"].forEach((e=>{!Ve[e]&&(Ve[e]=pt.isFunction(t[e])?t=>t[e]():(t,r)=>{throw new yt(`Response type '${e}' is not supported`,yt.ERR_NOT_SUPPORT,r)})}))})(new Response);const Je=async t=>{if(null==t)return 0;if(pt.isBlob(t))return t.size;if(pt.isSpecCompliantForm(t)){const e=new Request(zt.origin,{method:"POST",body:t});return(await e.arrayBuffer()).byteLength}return pt.isArrayBufferView(t)||pt.isArrayBuffer(t)?t.byteLength:(pt.isURLSearchParams(t)&&(t+=""),pt.isString(t)?(await He(t)).byteLength:void 0)},Ye=async(t,e)=>{const r=pt.toFiniteNumber(t.getContentLength());return null==r?Je(e):r},Xe=Me&&(async t=>{let{url:e,method:r,data:n,signal:o,cancelToken:i,timeout:a,onDownloadProgress:s,onUploadProgress:c,responseType:u,headers:l,withCredentials:f="same-origin",fetchOptions:p}=Pe(t);u=u?(u+"").toLowerCase():"text";let d,h=Ie([o,i&&i.toAbortSignal()],a);const m=h&&h.unsubscribe&&(()=>{h.unsubscribe()});let y;try{if(c&&ze&&"get"!==r&&"head"!==r&&0!==(y=await Ye(l,n))){let t,r=new Request(e,{method:"POST",body:n,duplex:"half"});if(pt.isFormData(n)&&(t=r.headers.get("content-type"))&&l.setContentType(t),r.body){const[t,e]=Se(y,Ee(Oe(c)));n=Fe(r.body,qe,t,e)}}pt.isString(f)||(f=f?"include":"omit");const o="credentials"in Request.prototype;d=new Request(e,{...p,signal:h,method:r.toUpperCase(),headers:l.normalize().toJSON(),body:n,duplex:"half",credentials:o?f:void 0});let i=await fetch(d);const a=Ge&&("stream"===u||"response"===u);if(Ge&&(s||a&&m)){const t={};["status","statusText","headers"].forEach((e=>{t[e]=i[e]}));const e=pt.toFiniteNumber(i.headers.get("content-length")),[r,n]=s&&Se(e,Ee(Oe(s),!0))||[];i=new Response(Fe(i.body,qe,r,(()=>{n&&n(),m&&m()})),t)}u=u||"text";let g=await Ve[pt.findKey(Ve,u)||"text"](i,t);return!a&&m&&m(),await new Promise(((e,r)=>{me(e,r,{data:g,headers:le.from(i.headers),status:i.status,statusText:i.statusText,config:t,request:d})}))}catch(g){if(m&&m(),g&&"TypeError"===g.name&&/fetch/i.test(g.message))throw Object.assign(new yt("Network Error",yt.ERR_NETWORK,t,d),{cause:g.cause||g});throw yt.from(g,g&&g.code,t,d)}}),Ke={http:gt,xhr:Le,fetch:Xe};pt.forEach(Ke,((t,e)=>{if(t){try{Object.defineProperty(t,"name",{value:e})}catch(r){}Object.defineProperty(t,"adapterName",{value:e})}}));const Qe=t=>`- ${t}`,Ze=t=>pt.isFunction(t)||null===t||!1===t,tr={getAdapter:t=>{t=pt.isArray(t)?t:[t];const{length:e}=t;let r,n;const o={};for(let i=0;i`adapter ${t} `+(!1===e?"is not supported by the environment":"is not available in the build")));let r=e?t.length>1?"since :\n"+t.map(Qe).join("\n"):" "+Qe(t[0]):"as no adapter specified";throw new yt("There is no suitable adapter to dispatch the request "+r,"ERR_NOT_SUPPORT")}return n},adapters:Ke};function er(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new he(null,t)}function rr(t){er(t),t.headers=le.from(t.headers),t.data=fe.call(t,t.transformRequest),-1!==["post","put","patch"].indexOf(t.method)&&t.headers.setContentType("application/x-www-form-urlencoded",!1);const e=tr.getAdapter(t.adapter||Qt.adapter);return e(t).then((function(e){return er(t),e.data=fe.call(t,t.transformResponse,e),e.headers=le.from(e.headers),e}),(function(e){return pe(e)||(er(t),e&&e.response&&(e.response.data=fe.call(t,t.transformResponse,e.response),e.response.headers=le.from(e.response.headers))),Promise.reject(e)}))}const nr="1.7.7",or={};["object","boolean","number","function","string","symbol"].forEach(((t,e)=>{or[t]=function(r){return typeof r===t||"a"+(e<1?"n ":" ")+t}}));const ir={};function ar(t,e,r){if("object"!==typeof t)throw new yt("options must be an object",yt.ERR_BAD_OPTION_VALUE);const n=Object.keys(t);let o=n.length;while(o-- >0){const i=n[o],a=e[i];if(a){const e=t[i],r=void 0===e||a(e,i,t);if(!0!==r)throw new yt("option "+i+" must be "+r,yt.ERR_BAD_OPTION_VALUE)}else if(!0!==r)throw new yt("Unknown option "+i,yt.ERR_BAD_OPTION)}}or.transitional=function(t,e,r){function n(t,e){return"[Axios v"+nr+"] Transitional option '"+t+"'"+e+(r?". "+r:"")}return(r,o,i)=>{if(!1===t)throw new yt(n(o," has been removed"+(e?" in "+e:"")),yt.ERR_DEPRECATED);return e&&!ir[o]&&(ir[o]=!0,console.warn(n(o," has been deprecated since v"+e+" and will be removed in the near future"))),!t||t(r,o,i)}};const sr={assertOptions:ar,validators:or},cr=sr.validators;class ur{constructor(t){this.defaults=t,this.interceptors={request:new Lt,response:new Lt}}async request(t,e){try{return await this._request(t,e)}catch(r){if(r instanceof Error){let t;Error.captureStackTrace?Error.captureStackTrace(t={}):t=new Error;const e=t.stack?t.stack.replace(/^.+\n/,""):"";try{r.stack?e&&!String(r.stack).endsWith(e.replace(/^.+\n.+\n/,""))&&(r.stack+="\n"+e):r.stack=e}catch(n){}}throw r}}_request(t,e){"string"===typeof t?(e=e||{},e.url=t):e=t||{},e=Ne(this.defaults,e);const{transitional:r,paramsSerializer:n,headers:o}=e;void 0!==r&&sr.assertOptions(r,{silentJSONParsing:cr.transitional(cr.boolean),forcedJSONParsing:cr.transitional(cr.boolean),clarifyTimeoutError:cr.transitional(cr.boolean)},!1),null!=n&&(pt.isFunction(n)?e.paramsSerializer={serialize:n}:sr.assertOptions(n,{encode:cr.function,serialize:cr.function},!0)),e.method=(e.method||this.defaults.method||"get").toLowerCase();let i=o&&pt.merge(o.common,o[e.method]);o&&pt.forEach(["delete","get","head","post","put","patch","common"],(t=>{delete o[t]})),e.headers=le.concat(i,o);const a=[];let s=!0;this.interceptors.request.forEach((function(t){"function"===typeof t.runWhen&&!1===t.runWhen(e)||(s=s&&t.synchronous,a.unshift(t.fulfilled,t.rejected))}));const c=[];let u;this.interceptors.response.forEach((function(t){c.push(t.fulfilled,t.rejected)}));let l,f=0;if(!s){const t=[rr.bind(this),void 0];t.unshift.apply(t,a),t.push.apply(t,c),l=t.length,u=Promise.resolve(e);while(f{if(!r._listeners)return;let e=r._listeners.length;while(e-- >0)r._listeners[e](t);r._listeners=null})),this.promise.then=t=>{let e;const n=new Promise((t=>{r.subscribe(t),e=t})).then(t);return n.cancel=function(){r.unsubscribe(e)},n},t((function(t,n,o){r.reason||(r.reason=new he(t,n,o),e(r.reason))}))}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){this.reason?t(this.reason):this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const e=this._listeners.indexOf(t);-1!==e&&this._listeners.splice(e,1)}toAbortSignal(){const t=new AbortController,e=e=>{t.abort(e)};return this.subscribe(e),t.signal.unsubscribe=()=>this.unsubscribe(e),t.signal}static source(){let t;const e=new fr((function(e){t=e}));return{token:e,cancel:t}}}const pr=fr;function dr(t){return function(e){return t.apply(null,e)}}function hr(t){return pt.isObject(t)&&!0===t.isAxiosError}const mr={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(mr).forEach((([t,e])=>{mr[e]=t}));const yr=mr;function gr(t){const e=new lr(t),r=o(lr.prototype.request,e);return pt.extend(r,lr.prototype,e,{allOwnKeys:!0}),pt.extend(r,e,null,{allOwnKeys:!0}),r.create=function(e){return gr(Ne(t,e))},r}const vr=gr(Qt);vr.Axios=lr,vr.CanceledError=he,vr.CancelToken=pr,vr.isCancel=pe,vr.VERSION=nr,vr.toFormData=At,vr.AxiosError=yt,vr.Cancel=vr.CanceledError,vr.all=function(t){return Promise.all(t)},vr.spread=dr,vr.isAxiosError=hr,vr.mergeConfig=Ne,vr.AxiosHeaders=le,vr.formToJSON=t=>Yt(pt.isHTMLForm(t)?new FormData(t):t),vr.getAdapter=tr.getAdapter,vr.HttpStatusCode=yr,vr.default=vr;const br=vr}}]); \ No newline at end of file diff --git a/HomeUI/dist/js/clipboard.js b/HomeUI/dist/js/clipboard.js index 474e3d5ca..ccbcc84fe 100644 --- a/HomeUI/dist/js/clipboard.js +++ b/HomeUI/dist/js/clipboard.js @@ -1,4 +1,4 @@ -(globalThis["webpackChunkflux"]=globalThis["webpackChunkflux"]||[]).push([[5997],{42152:function(t){ +(self["webpackChunkflux"]=self["webpackChunkflux"]||[]).push([[5997],{42152:function(t){ /*! * clipboard.js v2.0.11 * https://clipboardjs.com/ diff --git a/HomeUI/dist/js/index.js b/HomeUI/dist/js/index.js index 38528f351..1d32efc04 100644 --- a/HomeUI/dist/js/index.js +++ b/HomeUI/dist/js/index.js @@ -1 +1 @@ -(()=>{var e={86713:(e,t,a)=>{"use strict";a.r(t)},49630:(e,t,a)=>{"use strict";a.r(t)},37307:(e,t,a)=>{"use strict";a.d(t,{Z:()=>i});var n=a(20144),o=a(73507);function i(){const e=(0,n.computed)({get:()=>o.Z.state.verticalMenu.isVerticalMenuCollapsed,set:e=>{o.Z.commit("verticalMenu/UPDATE_VERTICAL_MENU_COLLAPSED",e)}}),t=(0,n.computed)({get:()=>o.Z.state.flux.xdaoOpen,set:e=>{o.Z.commit("flux/setXDAOOpen",e)}}),a=(0,n.computed)({get:()=>o.Z.state.appConfig.layout.isRTL,set:e=>{o.Z.commit("appConfig/TOGGLE_RTL",e)}}),i=(0,n.computed)({get:()=>o.Z.state.appConfig.layout.skin,set:e=>{o.Z.commit("appConfig/UPDATE_SKIN",e)}}),r=(0,n.computed)((()=>"bordered"===i.value?"bordered-layout":"semi-dark"===i.value?"semi-dark-layout":null)),s=(0,n.computed)({get:()=>o.Z.state.appConfig.layout.routerTransition,set:e=>{o.Z.commit("appConfig/UPDATE_ROUTER_TRANSITION",e)}}),l=(0,n.computed)({get:()=>o.Z.state.appConfig.layout.type,set:e=>{o.Z.commit("appConfig/UPDATE_LAYOUT_TYPE",e)}});(0,n.watch)(l,(e=>{"horizontal"===e&&"semi-dark"===i.value&&(i.value="light")}));const d=(0,n.computed)({get:()=>o.Z.state.appConfig.layout.contentWidth,set:e=>{o.Z.commit("appConfig/UPDATE_CONTENT_WIDTH",e)}}),c=(0,n.computed)({get:()=>o.Z.state.appConfig.layout.menu.hidden,set:e=>{o.Z.commit("appConfig/UPDATE_NAV_MENU_HIDDEN",e)}}),m=(0,n.computed)({get:()=>o.Z.state.appConfig.layout.menu.collapsed,set:e=>{o.Z.commit("appConfig/UPDATE_MENU_COLLAPSED",e)}}),p=(0,n.computed)({get:()=>o.Z.state.appConfig.layout.navbar.backgroundColor,set:e=>{o.Z.commit("appConfig/UPDATE_NAVBAR_CONFIG",{backgroundColor:e})}}),u=(0,n.computed)({get:()=>o.Z.state.appConfig.layout.navbar.type,set:e=>{o.Z.commit("appConfig/UPDATE_NAVBAR_CONFIG",{type:e})}}),b=(0,n.computed)({get:()=>o.Z.state.appConfig.layout.footer.type,set:e=>{o.Z.commit("appConfig/UPDATE_FOOTER_CONFIG",{type:e})}});return{isVerticalMenuCollapsed:e,isRTL:a,skin:i,skinClasses:r,routerTransition:s,navbarBackgroundColor:p,navbarType:u,footerType:b,layoutType:l,contentWidth:d,isNavMenuHidden:c,isNavMenuCollapsed:m,xdaoOpenProposals:t}}},82162:e=>{const t=[{name:"Games",variant:"success",icon:"gamepad"},{name:"Productivity",variant:"danger",icon:"file-alt"},{name:"Hosting",variant:"success",icon:"server"},{name:"Blockchain",variant:"success",icon:"coins"},{name:"Blockbook",variant:"success",icon:"book"},{name:"Front-end",variant:"success",icon:"desktop"},{name:"RPC Node",variant:"success",icon:"satellite-dish"},{name:"Masternode",variant:"success",icon:"wallet"}],a={name:"App",variant:"success",icon:"cog"};e.exports={categories:t,defaultCategory:a}},69699:(e,t,a)=>{"use strict";var n=a(20144),o=a(77354),i=a(48648),r=a(68793),s=a(54016),l=a(51205),d=a(33017),c=a(27856),m=a.n(c),p=a(24019),u=a(73507),b=function(){var e=this,t=e._self._c;return t("div",{staticClass:"h-100",class:[e.skinClasses],attrs:{id:"app"}},[t(e.layout,{tag:"component"},[t("router-view")],1),e.enableScrollToTop?t("scroll-to-top"):e._e()],1)},g=[],h=function(){var e=this,t=e._self._c;return t("div",{staticClass:"btn-scroll-to-top",class:{show:e.y>250}},[t("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"btn-icon",attrs:{variant:"primary"},on:{click:e.scrollToTop}},[t("feather-icon",{attrs:{icon:"ArrowUpIcon",size:"16"}})],1)],1)},f=[],x=a(52829),v=a(15193),k=a(20266);const A={directives:{Ripple:k.Z},components:{BButton:v.T},setup(){const{y:e}=(0,x.baj)(),t=()=>{const e=document.documentElement;e.scrollTo({top:0,behavior:"smooth"})};return{y:e,scrollToTop:t}}},y=A;var T=a(1001),C=(0,T.Z)(y,h,f,!1,null,"4d172cb1",null);const P=C.exports;var D=a(68934),w=a(41905),B=a(37307),E=a(34369);const N=a(80129),S=()=>Promise.all([a.e(6301),a.e(7218),a.e(2755),a.e(460),a.e(7415)]).then(a.bind(a,10044)),Z=()=>a.e(2791).then(a.bind(a,82791)),L={components:{LayoutVertical:S,LayoutFull:Z,ScrollToTop:P},setup(){const{skin:e,skinClasses:t}=(0,B.Z)(),{enableScrollToTop:a}=D.$themeConfig.layout;"dark"===e.value&&document.body.classList.add("dark-layout"),(0,w.provideToast)({hideProgressBar:!0,closeOnClick:!1,closeButton:!1,icon:!1,timeout:3e3,transition:"Vue-Toastification__fade"}),u.Z.commit("app/UPDATE_WINDOW_WIDTH",window.innerWidth);const{width:o}=(0,x.iPe)();return(0,n.watch)(o,(e=>{u.Z.commit("app/UPDATE_WINDOW_WIDTH",e)})),{skinClasses:t,enableScrollToTop:a}},computed:{layout(){return"full"===this.$route.meta.layout?"layout-full":`layout-${this.contentLayoutType}`},contentLayoutType(){return this.$store.state.appConfig.layout.type}},beforeCreate(){const e=["primary","secondary","success","info","warning","danger","light","dark"];for(let n=0,o=e.length;n16100)){const e=+t+1;this.$store.commit("flux/setFluxPort",e)}},getZelIdLoginPhrase(){E.Z.loginPhrase().then((e=>{console.log(e),"error"===e.data.status?"MongoNetworkError"===e.data.data.name?this.errorMessage="Failed to connect to MongoDB.":JSON.stringify(e.data.data).includes("CONN")?this.getEmergencyLoginPhrase():this.errorMessage=e.data.data.message:this.loginPhrase=e.data.data})).catch((e=>{console.log(e),this.errorMessage="Error connecting to Flux Backend"}))},getEmergencyLoginPhrase(){E.Z.emergencyLoginPhrase().then((e=>{console.log(e),"error"===e.data.status?this.errorMessage=e.data.data.message:this.loginPhrase=e.data.data})).catch((e=>{console.log(e),this.errorMessage="Error connecting to Flux Backend"}))},activeLoginPhrases(){const e=localStorage.getItem("zelidauth"),t=N.parse(e);console.log(t),E.Z.activeLoginPhrases(e).then((e=>{console.log(e),e.data.status})).catch((e=>{console.log(e),console.log(e.code)}))}}},O=L;var I=(0,T.Z)(O,b,g,!1,null,null,null);const M=I.exports;var R=a(9101);const F={name:"FeatherIcon",functional:!0,props:{icon:{required:!0,type:[String,Object]},size:{type:String,default:"14"},badge:{type:[String,Object,Number],default:null},badgeClasses:{type:[String,Object,Array],default:"badge-primary"}},render(e,{props:t,data:a}){const n=e(R[t.icon],{props:{size:t.size},...a});if(!t.badge)return n;const o=e("span",{staticClass:"badge badge-up badge-pill",class:t.badgeClasses},[t.badge]);return e("span",{staticClass:"feather-icon position-relative"},[n,o])}},z=F;var U,G,_=(0,T.Z)(z,U,G,!1,null,null,null);const V=_.exports;var W=a(97754);a(44784);n["default"].component(V.name,V),n["default"].component("VIcon",W.Z);var j=a(87066);const Y=j["default"].create({});n["default"].prototype.$http=Y;var H=a(72433);n["default"].use(H.ZP);var Q=a(41151);n["default"].use(Q["default"],{hideProgressBar:!0,closeOnClick:!1,closeButton:!1,icon:!1,timeout:3e3,transition:"Vue-Toastification__fade"}),n["default"].use(o.R,{breakpoints:["xs","sm","md","lg","xl","xxl"]}),n["default"].use(i.A6),n["default"].use(r.m$),n["default"].use(s.k),n["default"].use(l.XG7),n["default"].use(d.A7),n["default"].directive("sane-html",((e,t)=>{e.innerHTML=m().sanitize(t.value)})),a(86713),a(49630),n["default"].config.productionTip=!1,new n["default"]({router:p.Z,store:u.Z,render:e=>e(M)}).$mount("#app")},24019:(e,t,a)=>{"use strict";a.d(t,{Z:()=>E});var n=a(20144),o=a(78345),i=a(73507),r=a(34369);const s=[{path:"/dashboard/overview",name:"dashboard-overview",component:()=>Promise.all([a.e(5434),a.e(6301),a.e(7218),a.e(4393),a.e(5988)]).then(a.bind(a,35988)),meta:{pageTitle:"Overview",breadcrumb:[{text:"Dashboard"},{text:"Overview",active:!0}]}},{path:"/dashboard/resources",name:"dashboard-resources",component:()=>Promise.all([a.e(5434),a.e(6301),a.e(7218),a.e(4393),a.e(5216)]).then(a.bind(a,25216)),meta:{pageTitle:"Resources",breadcrumb:[{text:"Dashboard"},{text:"Resources",active:!0}]}},{path:"/dashboard/map",name:"dashboard-map",component:()=>Promise.all([a.e(5434),a.e(6567),a.e(6301),a.e(7218),a.e(4393),a.e(7071),a.e(1032)]).then(a.bind(a,91032)),meta:{pageTitle:"Map",breadcrumb:[{text:"Dashboard"},{text:"Map",active:!0}]}},{path:"/dashboard/rewards",name:"dashboard-rewards",component:()=>Promise.all([a.e(5434),a.e(6301),a.e(7218),a.e(4393),a.e(8755)]).then(a.bind(a,68755)),meta:{pageTitle:"Rewards",breadcrumb:[{text:"Dashboard"},{text:"Rewards",active:!0}]}},{path:"/dashboard/economics",name:"dashboard-economics",component:()=>Promise.all([a.e(5434),a.e(6301),a.e(7218),a.e(4393),a.e(8755)]).then(a.bind(a,68755)),meta:{pageTitle:"Rewards",breadcrumb:[{text:"Dashboard"},{text:"Rewards",active:!0}]}},{path:"/dashboard/list",name:"dashboard-list",component:()=>Promise.all([a.e(7218),a.e(6666)]).then(a.bind(a,46666)),meta:{pageTitle:"List",breadcrumb:[{text:"Dashboard"},{text:"List",active:!0}]}}],l=[{path:"/daemon/control/getinfo",name:"daemon-control-getinfo",component:()=>a.e(5213).then(a.bind(a,35213)),meta:{pageTitle:"Get Info",breadcrumb:[{text:"Administration"},{text:"Daemon"},{text:"Control"},{text:"Get Info",active:!0}]}},{path:"/daemon/control/help",name:"daemon-control-help",component:()=>Promise.all([a.e(6301),a.e(4156),a.e(1966)]).then(a.bind(a,67647)),meta:{pageTitle:"Help",breadcrumb:[{text:"Administration"},{text:"Daemon"},{text:"Control"},{text:"Help",active:!0}]}},{path:"/daemon/control/rescanblockchain",name:"daemon-control-rescanblockchain",component:()=>a.e(6626).then(a.bind(a,86626)),meta:{pageTitle:"Rescan Blockchain",breadcrumb:[{text:"Administration"},{text:"Daemon"},{text:"Control"},{text:"Rescan Blockchain",active:!0}],privilege:["admin"]}},{path:"/daemon/control/reindexblockchain",name:"daemon-control-reindexblockchain",component:()=>a.e(6223).then(a.bind(a,16223)),meta:{pageTitle:"Reindex Blockchain",breadcrumb:[{text:"Administration"},{text:"Daemon"},{text:"Control"},{text:"Reindex Blockchain",active:!0}],privilege:["admin"]}},{path:"/daemon/control/start",name:"daemon-control-start",component:()=>a.e(3404).then(a.bind(a,43404)),meta:{pageTitle:"Start",breadcrumb:[{text:"Administration"},{text:"Daemon"},{text:"Control"},{text:"Start",active:!0}],privilege:["admin","fluxteam"]}},{path:"/daemon/control/stop",name:"daemon-control-stop",component:()=>a.e(1313).then(a.bind(a,91313)),meta:{pageTitle:"Stop",breadcrumb:[{text:"Administration"},{text:"Daemon"},{text:"Control"},{text:"Stop",active:!0}],privilege:["admin"]}},{path:"/daemon/control/restart",name:"daemon-control-restart",component:()=>a.e(9389).then(a.bind(a,39389)),meta:{pageTitle:"Restart",breadcrumb:[{text:"Administration"},{text:"Daemon"},{text:"Control"},{text:"Restart",active:!0}],privilege:["admin","fluxteam"]}}],d=[{path:"/daemon/fluxnode/getnodestatus",name:"daemon-fluxnode-getstatus",component:()=>a.e(1145).then(a.bind(a,81145)),meta:{pageTitle:"Node Status",breadcrumb:[{text:"Administration"},{text:"Daemon"},{text:"FluxNode"},{text:"Get Node Status",active:!0}]}},{path:"/daemon/fluxnode/listfluxnodes",name:"daemon-fluxnode-listfluxnodes",component:()=>Promise.all([a.e(6301),a.e(7365)]).then(a.bind(a,67365)),meta:{pageTitle:"List FluxNodes",breadcrumb:[{text:"Administration"},{text:"Daemon"},{text:"FluxNode"},{text:"List FluxNodes",active:!0}]}},{path:"/daemon/fluxnode/viewfluxnodelist",name:"daemon-fluxnode-viewfluxnodelist",component:()=>Promise.all([a.e(6301),a.e(7249)]).then(a.bind(a,77249)),meta:{pageTitle:"View Deterministic FluxNodes",breadcrumb:[{text:"Administration"},{text:"Daemon"},{text:"FluxNode"},{text:"View FluxNode List",active:!0}]}},{path:"/daemon/fluxnode/getfluxnodecount",name:"daemon-fluxnode-getfluxnodecount",component:()=>a.e(4671).then(a.bind(a,14671)),meta:{pageTitle:"Get FluxNode Count",breadcrumb:[{text:"Administration"},{text:"Daemon"},{text:"FluxNode"},{text:"Get FluxNode Count",active:!0}]}},{path:"/daemon/fluxnode/getstartlist",name:"daemon-fluxnode-getstartlist",component:()=>Promise.all([a.e(6301),a.e(2743)]).then(a.bind(a,32743)),meta:{pageTitle:"Get Start List",breadcrumb:[{text:"Administration"},{text:"Daemon"},{text:"FluxNode"},{text:"Get Start List",active:!0}]}},{path:"/daemon/fluxnode/getdoslist",name:"daemon-fluxnode-getdoslist",component:()=>Promise.all([a.e(6301),a.e(3196)]).then(a.bind(a,43196)),meta:{pageTitle:"Get DOS List",breadcrumb:[{text:"Administration"},{text:"Daemon"},{text:"FluxNode"},{text:"Get DOS List",active:!0}]}},{path:"/daemon/fluxnode/currentwinner",name:"daemon-fluxnode-currentwinner",component:()=>Promise.all([a.e(6301),a.e(4156),a.e(8390)]).then(a.bind(a,81403)),meta:{pageTitle:"Current Winner",breadcrumb:[{text:"Administration"},{text:"Daemon"},{text:"FluxNode"},{text:"Current Winner",active:!0}]}}],c=[{path:"/daemon/benchmarks/getbenchmarks",name:"daemon-benchmarks-getbenchmarks",component:()=>a.e(7463).then(a.bind(a,7463)),meta:{pageTitle:"Get Benchmarks",breadcrumb:[{text:"Administration"},{text:"Daemon"},{text:"Benchmarks"},{text:"Get Benchmarks",active:!0}]}},{path:"/daemon/benchmarks/getstatus",name:"daemon-benchmarks-getstatus",component:()=>a.e(6147).then(a.bind(a,96147)),meta:{pageTitle:"Get Bench Status",breadcrumb:[{text:"Administration"},{text:"Daemon"},{text:"Benchmarks"},{text:"Get Status",active:!0}]}},{path:"/daemon/benchmarks/startbenchmark",name:"daemon-benchmarks-start",component:()=>a.e(9816).then(a.bind(a,59816)),meta:{pageTitle:"Start Benchmark",breadcrumb:[{text:"Administration"},{text:"Daemon"},{text:"Benchmarks"},{text:"Start Benchmark",active:!0}],privilege:["admin","fluxteam"]}},{path:"/daemon/benchmarks/stopbenchmark",name:"daemon-benchmarks-stop",component:()=>a.e(9353).then(a.bind(a,39353)),meta:{pageTitle:"Stop Benchmark",breadcrumb:[{text:"Administration"},{text:"Daemon"},{text:"Benchmarks"},{text:"Stop Benchmark",active:!0}],privilege:["admin","fluxteam"]}}],m=[{path:"/daemon/blockchain/getblockchaininfo",name:"daemon-blockchain-getchaininfo",component:()=>a.e(1115).then(a.bind(a,61115)),meta:{pageTitle:"Get Blockchain Info",breadcrumb:[{text:"Administration"},{text:"Daemon"},{text:"Get Blockchain Info",active:!0}]}}],p=[{path:"/daemon/mining/getmininginfo",name:"daemon-mining-getmininginfo",component:()=>a.e(5497).then(a.bind(a,85497)),meta:{pageTitle:"Get Mining Info",breadcrumb:[{text:"Administration"},{text:"Daemon"},{text:"Get Mining Info",active:!0}]}}],u=[{path:"/daemon/network/getnetworkinfo",name:"daemon-network-getnetworkinfo",component:()=>a.e(4764).then(a.bind(a,84764)),meta:{pageTitle:"Get Network Info",breadcrumb:[{text:"Administration"},{text:"Daemon"},{text:"Get Network Info",active:!0}]}}],b=[{path:"/daemon/transaction/getrawtransaction",name:"daemon-transaction-getrawtransaction",component:()=>a.e(8910).then(a.bind(a,28910)),meta:{pageTitle:"Get Raw Transaction",breadcrumb:[{text:"Administration"},{text:"Daemon"},{text:"Get Raw Transaction",active:!0}]}}],g=[{path:"/daemon/validateaddress",name:"daemon-util-validateaddress",component:()=>a.e(237).then(a.bind(a,60237)),meta:{pageTitle:"Validate Address",breadcrumb:[{text:"Administration"},{text:"Daemon"},{text:"Validate Address",active:!0}]}}],h=[{path:"/daemon/getwalletinfo",name:"daemon-wallet-getwalletinfo",component:()=>a.e(5528).then(a.bind(a,95528)),meta:{pageTitle:"Get Wallet Info",breadcrumb:[{text:"Administration"},{text:"Daemon"},{text:"Get Wallet Info",active:!0}],privilege:["user","admin","fluxteam"]}}],f=[...l,...d,...c,...m,...p,...u,...b,...g,...h,{path:"/daemon/debug",name:"daemon-debug",component:()=>Promise.all([a.e(6301),a.e(9853)]).then(a.bind(a,59853)),meta:{pageTitle:"Debug",breadcrumb:[{text:"Administration"},{text:"Daemon"},{text:"Debug",active:!0}],privilege:["admin","fluxteam"]}}],x=[{path:"/benchmark/control/help",name:"benchmark-control-help",component:()=>Promise.all([a.e(6301),a.e(4156),a.e(7966)]).then(a.bind(a,34917)),meta:{pageTitle:"Help",breadcrumb:[{text:"Administration"},{text:"Benchmark"},{text:"Control"},{text:"Help",active:!0}]}},{path:"/benchmark/control/start",name:"benchmark-control-start",component:()=>a.e(5038).then(a.bind(a,45038)),meta:{pageTitle:"Start",breadcrumb:[{text:"Administration"},{text:"Benchmark"},{text:"Control"},{text:"Start",active:!0}],privilege:["admin","fluxteam"]}},{path:"/benchmark/control/stop",name:"benchmark-control-stop",component:()=>a.e(6518).then(a.bind(a,36518)),meta:{pageTitle:"Stop",breadcrumb:[{text:"Administration"},{text:"Benchmark"},{text:"Control"},{text:"Stop",active:!0}],privilege:["admin"]}},{path:"/benchmark/control/restart",name:"benchmark-control-restart",component:()=>a.e(7031).then(a.bind(a,7031)),meta:{pageTitle:"Restart",breadcrumb:[{text:"Administration"},{text:"Benchmark"},{text:"Control"},{text:"Restart",active:!0}],privilege:["admin","fluxteam"]}}],v=[{path:"/benchmark/fluxnode/getbenchmarks",name:"benchmark-fluxnode-getbenchmarks",component:()=>a.e(1573).then(a.bind(a,1573)),meta:{pageTitle:"Get Benchmarks",breadcrumb:[{text:"Administration"},{text:"Benchmark"},{text:"FluxNode"},{text:"Get Benchmarks",active:!0}]}},{path:"/benchmark/fluxnode/getinfo",name:"benchmark-fluxnode-getinfo",component:()=>a.e(6262).then(a.bind(a,16262)),meta:{pageTitle:"Get Info",breadcrumb:[{text:"Administration"},{text:"Benchmark"},{text:"FluxNode"},{text:"Get Info",active:!0}]}}],k=[{path:"/benchmark/benchmarks/getstatus",name:"benchmark-benchmarks-getstatus",component:()=>a.e(9875).then(a.bind(a,59875)),meta:{pageTitle:"Get Status",breadcrumb:[{text:"Administration"},{text:"Benchmark"},{text:"Benchmarks"},{text:"Get Status",active:!0}]}},{path:"/benchmark/benchmarks/restartbenchmarks",name:"benchmark-benchmarks-restartbenchmarks",component:()=>a.e(3678).then(a.bind(a,63678)),meta:{pageTitle:"Restart Node Benchmarks",breadcrumb:[{text:"Administration"},{text:"Benchmark"},{text:"Benchmarks"},{text:"Restart Node Benchmarks",active:!0}],privilege:["admin","fluxteam"]}},{path:"/benchmark/benchmarks/signtransaction",name:"benchmark-benchmarks-signtransaction",component:()=>a.e(62).then(a.bind(a,20062)),meta:{pageTitle:"Sign FluxNode Transaction",breadcrumb:[{text:"Administration"},{text:"Benchmark"},{text:"Benchmarks"},{text:"Sign Transaction",active:!0}],privilege:["admin"]}}],A=[...x,...v,...k,{path:"/benchmark/debug",name:"benchmark-debug",component:()=>Promise.all([a.e(6301),a.e(7550)]).then(a.bind(a,37550)),meta:{pageTitle:"Debug",breadcrumb:[{text:"Administration"},{text:"Benchmark"},{text:"Debug",active:!0}],privilege:["admin","fluxteam"]}}],y=[{path:"/flux/nodestatus",name:"flux-nodestatus",component:()=>a.e(7583).then(a.bind(a,87583)),meta:{pageTitle:"Node Status",breadcrumb:[{text:"Administration"},{text:"Flux"},{text:"Node Status",active:!0}]}},{path:"/flux/fluxnetwork",name:"flux-fluxnetwork",component:()=>a.e(3904).then(a.bind(a,63904)),meta:{pageTitle:"Flux Network",breadcrumb:[{text:"Administration"},{text:"Flux"},{text:"Flux Network",active:!0}]}},{path:"/flux/debug",name:"flux-debug",component:()=>Promise.all([a.e(6301),a.e(3920),a.e(1540)]).then(a.bind(a,1540)),meta:{pageTitle:"Debug",breadcrumb:[{text:"Administration"},{text:"Flux"},{text:"Debug",active:!0}],privilege:["admin","fluxteam"]}}];var T=a(82162);const C=[{path:"/apps/myapps",name:"apps-myapps",component:()=>Promise.all([a.e(5434),a.e(601),a.e(4884),a.e(1601),a.e(8749),a.e(6567),a.e(1973),a.e(2137),a.e(5997),a.e(6301),a.e(7218),a.e(4393),a.e(2755),a.e(1530),a.e(7071),a.e(3920),a.e(8873),a.e(9371),a.e(9568)]).then(a.bind(a,22039)),meta:{pageTitle:"Applications",breadcrumb:[{text:"Applications"},{text:"Management",active:!0}]}},{path:"/apps/globalapps",name:"apps-globalapps",component:()=>Promise.all([a.e(5434),a.e(601),a.e(4884),a.e(1601),a.e(8749),a.e(6567),a.e(1973),a.e(2137),a.e(5997),a.e(6301),a.e(7218),a.e(4393),a.e(2755),a.e(1530),a.e(7071),a.e(3920),a.e(8873),a.e(9371),a.e(2788)]).then(a.bind(a,57494)),meta:{pageTitle:"Applications",breadcrumb:[{text:"Applications"},{text:"Global Apps",active:!0}]}},{path:"/apps/registerapp/:appspecs?",name:"apps-registerapp",component:()=>Promise.all([a.e(601),a.e(4884),a.e(1601),a.e(8749),a.e(6301),a.e(7218),a.e(2755),a.e(1530),a.e(8873),a.e(4323)]).then(a.bind(a,41219)),meta:{pageTitle:"Register New App",breadcrumb:[{text:"Applications"},{text:"Register New App",active:!0}]}},{path:"/apps/marketplace",name:"apps-marketplace",component:()=>Promise.all([a.e(5434),a.e(601),a.e(4884),a.e(1601),a.e(8749),a.e(6301),a.e(7218),a.e(4393),a.e(2755),a.e(1530),a.e(460),a.e(8701)]).then(a.bind(a,64813)),meta:{contentRenderer:"sidebar-left",contentClass:"marketplace-application"}},{path:"/apps/marketplace/:filter",name:"apps-marketplace-filter",component:()=>Promise.all([a.e(5434),a.e(601),a.e(4884),a.e(1601),a.e(8749),a.e(6301),a.e(7218),a.e(4393),a.e(2755),a.e(1530),a.e(460),a.e(8701)]).then(a.bind(a,64813)),meta:{contentRenderer:"sidebar-left",contentClass:"marketplace-application",navActiveLink:"apps-marketplace"},beforeEnter(e,t,a){const n=T.categories.map((e=>e.name.toLowerCase()));n.includes(e.params.filter)?a():a({name:"error-404"})}},{path:"https://titan.runonflux.io",name:"apps-marketplace-sharednodes",component:()=>Promise.all([a.e(5434),a.e(601),a.e(4884),a.e(1601),a.e(8749),a.e(6301),a.e(7218),a.e(4393),a.e(2755),a.e(1530),a.e(460),a.e(8701)]).then(a.bind(a,64813)),meta:{contentRenderer:"sidebar-left",contentClass:"marketplace-application",navActiveLink:"apps-marketplace"}}],P=[{path:"/apps/localapps",name:"apps-localapps",component:()=>Promise.all([a.e(5434),a.e(601),a.e(4884),a.e(1601),a.e(8749),a.e(6567),a.e(1973),a.e(2137),a.e(5997),a.e(6301),a.e(7218),a.e(4393),a.e(2755),a.e(1530),a.e(7071),a.e(3920),a.e(8873),a.e(9371),a.e(9442)]).then(a.bind(a,65530)),meta:{pageTitle:"Local Apps",breadcrumb:[{text:"Administration"},{text:"Local Apps",active:!0}]}},{path:"/fluxadmin/loggedsessions",name:"fluxadmin-loggedsessions",component:()=>a.e(6414).then(a.bind(a,26414)),meta:{pageTitle:"Logged Sessions",breadcrumb:[{text:"Administration"},{text:"Logged Sessions",active:!0}],privilege:["admin","fluxteam"]}},{path:"/fluxadmin/manageflux",name:"fluxadmin-manageflux",component:()=>a.e(6777).then(a.bind(a,96777)),meta:{pageTitle:"Manage Flux",breadcrumb:[{text:"Administration"},{text:"Manage Flux",active:!0}],privilege:["admin","fluxteam"]}},{path:"/fluxadmin/managedaemon",name:"fluxadmin-managedaemon",component:()=>a.e(6481).then(a.bind(a,56481)),meta:{pageTitle:"Manage Daemon",breadcrumb:[{text:"Administration"},{text:"Manage Daemon",active:!0}],privilege:["admin","fluxteam"]}},{path:"/fluxadmin/managebenchmark",name:"fluxadmin-managebenchmark",component:()=>a.e(1994).then(a.bind(a,71994)),meta:{pageTitle:"Manage Benchmark",breadcrumb:[{text:"Administration"},{text:"Manage Benchmark",active:!0}],privilege:["admin","fluxteam"]}},{path:"/fluxadmin/manageusers",name:"fluxadmin-manageusers",component:()=>a.e(1841).then(a.bind(a,21841)),meta:{pageTitle:"Manage Users",breadcrumb:[{text:"Administration"},{text:"Manage Users",active:!0}],privilege:["admin","fluxteam"]}},{path:"/apps/fluxsharestorage",name:"apps-fluxsharestorage",component:()=>Promise.all([a.e(6301),a.e(8578)]).then(a.bind(a,78578)),meta:{pageTitle:"My FluxShare Storage",breadcrumb:[{text:"Administration"},{text:"My FluxShare Storage",active:!0}],privilege:["admin"]}}],D=[{path:"/xdao-app",name:"xdao-app",component:()=>Promise.all([a.e(5434),a.e(6301),a.e(7218),a.e(4393),a.e(460),a.e(7917)]).then(a.bind(a,37917)),meta:{contentRenderer:"sidebar-left",contentClass:"xdao-application"}},{path:"/xdao-app/:filter",name:"xdao-app-filter",component:()=>Promise.all([a.e(5434),a.e(6301),a.e(7218),a.e(4393),a.e(460),a.e(7917)]).then(a.bind(a,37917)),meta:{contentRenderer:"sidebar-left",contentClass:"xdao-application",navActiveLink:"xdao-app"},beforeEnter(e,t,a){["open","passed","unpaid","rejected"].includes(e.params.filter)?a():a({name:"error-404"})}},{path:"/xdao-app/tag/:tag",name:"xdao-app-tag",component:()=>Promise.all([a.e(5434),a.e(6301),a.e(7218),a.e(4393),a.e(460),a.e(7917)]).then(a.bind(a,37917)),meta:{contentRenderer:"sidebar-left",contentClass:"xdao-application",navActiveLink:"xdao-app"},beforeEnter(e,t,a){["team","low","medium","high","update"].includes(e.params.tag)?a():a({name:"error-404"})}}],w=a(80129);n["default"].use(o.ZP);const B=new o.ZP({mode:"history",base:"/",scrollBehavior(){return{x:0,y:0}},routes:[{path:"/",name:"home",component:()=>Promise.all([a.e(601),a.e(4884),a.e(1601),a.e(6301),a.e(2755),a.e(1530),a.e(2532)]).then(a.bind(a,18119)),meta:{pageTitle:"Home",breadcrumb:[{text:"Home",active:!0}]}},{path:"/explorer",name:"explorer",component:()=>Promise.all([a.e(6301),a.e(4156),a.e(3041)]).then(a.bind(a,266)),meta:{pageTitle:"Explorer",breadcrumb:[{text:"Administration"},{text:"Explorer",active:!0}]}},...s,...f,...A,...y,...C,...P,...D,{path:"/successcheckout",name:"successcheckout",component:()=>a.e(2295).then(a.bind(a,42295)),meta:{layout:"full"}},{path:"/error-404",name:"error-404",component:()=>a.e(4661).then(a.bind(a,84661)),meta:{layout:"full"}},{path:"*",redirect:"error-404"}]});B.beforeEach((async(e,t,a)=>{const n=localStorage.getItem("zelidauth"),o=w.parse(n);if(i.Z.commit("flux/setPrivilege","none"),o&&o.zelid&&o.signature&&o.loginPhrase)try{const e=await r.Z.checkUserLogged(o.zelid,o.signature,o.loginPhrase),t=e.data.data.message;i.Z.commit("flux/setPrivilege",t),"none"===t&&localStorage.removeItem("zelidauth")}catch(s){console.log(s)}e.meta&&e.meta.privilege?e.meta.privilege.some((e=>e===i.Z.state.flux.privilege))?a():a("/"):a()})),B.afterEach((()=>{const e=document.getElementById("loading-bg");e&&(e.style.display="none")}));const E=B},80914:(e,t,a)=>{"use strict";a.d(t,{S:()=>c,Z:()=>m});var n=a(87066);const o=a(58971),{protocol:i,hostname:r,port:s}=window.location;let l="";l+=i,l+="//";const d=/[A-Za-z]/g;if(r.split("-")[4]){const e=r.split("-"),t=e[4].split("."),a=+t[0]+1;t[0]=a.toString(),t[2]="api",e[4]="",l+=e.join("-"),l+=t.join(".")}else if(r.match(d)){const e=r.split(".");e[0]="api",l+=e.join(".")}else l+=r,l+=":",l+=+s+1;const c=n["default"].CancelToken.source(),m=()=>n["default"].create({baseURL:o.get("backendURL")||l})},34369:(e,t,a)=>{"use strict";a.d(t,{Z:()=>i});var n=a(80914);const o=a(80129),i={loginPhrase(){return(0,n.Z)().get("/id/loginphrase")},emergencyLoginPhrase(){return(0,n.Z)().get("/id/emergencyphrase")},verifyLogin(e){return(0,n.Z)().post("/id/verifylogin",o.stringify(e))},loggedSessions(e){return(0,n.Z)().get(`/id/loggedsessions?timestamp=${Date.now()}`,{headers:{zelidauth:e}})},loggedUsers(e){return(0,n.Z)().get(`/id/loggedusers?timestamp=${Date.now()}`,{headers:{zelidauth:e}})},activeLoginPhrases(e){return(0,n.Z)().get("/id/activeloginphrases",{headers:{zelidauth:e}})},logoutCurrentSession(e){return(0,n.Z)().get("/id/logoutcurrentsession",{headers:{zelidauth:e}})},logoutSpecificSession(e,t){const a={loginPhrase:t},i={headers:{zelidauth:e}};return(0,n.Z)().post("/id/logoutspecificsession",o.stringify(a),i)},logoutAllSessions(e){return(0,n.Z)().get("/id/logoutallsessions",{headers:{zelidauth:e}})},logoutAllUsers(e){return(0,n.Z)().get("/id/logoutallusers",{headers:{zelidauth:e}})},checkUserLogged(e,t,a){const i={zelid:e,signature:t,loginPhrase:a};return(0,n.Z)().post("/id/checkprivilege",o.stringify(i))}}},73507:(e,t,a)=>{"use strict";a.d(t,{Z:()=>p});var n=a(20144),o=a(20629),i=a(68934);const r={namespaced:!0,state:{windowWidth:0,shallShowOverlay:!1},getters:{currentBreakPoint:e=>{const{windowWidth:t}=e;return t>=i.n.xl?"xl":t>=i.n.lg?"lg":t>=i.n.md?"md":t>=i.n.sm?"sm":"xs"}},mutations:{UPDATE_WINDOW_WIDTH(e,t){e.windowWidth=t},TOGGLE_OVERLAY(e,t){e.shallShowOverlay=void 0!==t?t:!e.shallShowOverlay}},actions:{}},s={namespaced:!0,state:{layout:{isRTL:i.$themeConfig.layout.isRTL,skin:localStorage.getItem("vuexy-skin")||i.$themeConfig.layout.skin,routerTransition:i.$themeConfig.layout.routerTransition,type:i.$themeConfig.layout.type,contentWidth:i.$themeConfig.layout.contentWidth,menu:{hidden:i.$themeConfig.layout.menu.hidden,collapsed:"true"===localStorage.getItem("menu-itemsCollapsed")||i.$themeConfig.layout.menu.itemsCollapsed},navbar:{type:i.$themeConfig.layout.navbar.type,backgroundColor:i.$themeConfig.layout.navbar.backgroundColor},footer:{type:i.$themeConfig.layout.footer.type}}},getters:{},mutations:{TOGGLE_RTL(e){e.layout.isRTL=!e.layout.isRTL,document.documentElement.setAttribute("dir",e.layout.isRTL?"rtl":"ltr")},UPDATE_SKIN(e,t){e.layout.skin=t,localStorage.setItem("vuexy-skin",t),"dark"===t?document.body.classList.add("dark-layout"):document.body.className.match("dark-layout")&&document.body.classList.remove("dark-layout")},UPDATE_ROUTER_TRANSITION(e,t){e.layout.routerTransition=t},UPDATE_LAYOUT_TYPE(e,t){e.layout.type=t},UPDATE_CONTENT_WIDTH(e,t){e.layout.contentWidth=t},UPDATE_NAV_MENU_HIDDEN(e,t){e.layout.menu.hidden=t},UPDATE_NAVBAR_CONFIG(e,t){Object.assign(e.layout.navbar,t)},UPDATE_FOOTER_CONFIG(e,t){Object.assign(e.layout.footer,t)},UPDATE_MENU_COLLAPSED(e,t){e.layout.menu.collapsed=t,localStorage.setItem("menu-itemsCollapsed",t)}},actions:{}},l={namespaced:!0,state:{isVerticalMenuCollapsed:"true"===localStorage.getItem("menu-isCollapsed")||i.$themeConfig.layout.menu.isCollapsed},getters:{},mutations:{UPDATE_VERTICAL_MENU_COLLAPSED(e,t){e.isVerticalMenuCollapsed=t,localStorage.setItem("menu-isCollapsed",t)}},actions:{}};var d=a(90325),c=a.n(d);const m={namespaced:!0,state:{userconfig:{zelid:"",externalip:""},config:{apiPort:c().server.apiport,fluxTeamFluxID:c().fluxTeamFluxID,fluxSupportTeamFluxID:c().fluxSupportTeamFluxID},privilege:"none",zelid:"",fluxVersion:"",xdaoOpen:0},getters:{xdaoOpen(e){return e.xdaoOpen}},mutations:{setPrivilege(e,t){e.privilege=t},setZelid(e,t){e.zelid=t},setFluxVersion(e,t){e.fluxVersion=t},setUserZelid(e,t){e.userconfig.zelid=t},setUserIp(e,t){e.userconfig.externalip=t},setFluxPort(e,t){e.config.apiPort=t},setXDAOOpen(e,t){e.xdaoOpen=t}},actions:{}};n["default"].use(o.ZP);const p=new o.ZP.Store({modules:{app:r,appConfig:s,verticalMenu:l,flux:m},strict:{NODE_ENV:"production",BASE_URL:"/"}.DEV})},68934:(e,t,a)=>{"use strict";a.d(t,{$themeConfig:()=>i,j:()=>n,n:()=>o});const n={},o={},i={app:{appName:"FluxOS",appLogoImageDark:a(98927),appLogoImage:a(62606)},layout:{isRTL:!1,skin:"dark",routerTransition:"zoom-fade",type:"vertical",contentWidth:"full",menu:{hidden:!1,isCollapsed:!1,itemsCollapsed:!0},navbar:{type:"sticky",backgroundColor:""},footer:{type:"static"},customizer:!0,enableScrollToTop:!0}}},90325:(e,t,a)=>{let n=a(65796);const o=n.initial.development||!1;e.exports={development:o,loglevel:"debug",server:{allowedPorts:[16127,16137,16147,16157,16167,16177,16187,16197],apiport:16127},database:{url:"127.0.0.1",port:27017,local:{database:"zelfluxlocal",collections:{loggedUsers:"loggedusers",activeLoginPhrases:"activeloginphrases",activeSignatures:"activesignatures"}},daemon:{database:"zelcashdata",collections:{scannedHeight:"scannedheight",utxoIndex:"utxoindex",addressTransactionIndex:"addresstransactionindex",fluxTransactions:"zelnodetransactions",appsHashes:"zelappshashes",coinbaseFusionIndex:"coinbasefusionindex"}},appslocal:{database:"localzelapps",collections:{appsInformation:"zelappsinformation"}},appsglobal:{database:"globalzelapps",collections:{appsMessages:"zelappsmessages",appsInformation:"zelappsinformation",appsTemporaryMessages:"zelappstemporarymessages",appsLocations:"zelappslocation"}},chainparams:{database:"chainparams",collections:{chainMessages:"chainmessages"}},fluxshare:{database:"zelshare",collections:{shared:"shared"}}},benchmark:{port:16225,rpcport:16224,porttestnet:26225,rpcporttestnet:26224},daemon:{chainValidHeight:1062e3,port:16125,rpcport:16124,porttestnet:26125,rpcporttestnet:26124,zmqport:16123},minimumFluxBenchAllowedVersion:"4.0.0",minimumFluxOSAllowedVersion:"5.4.0",minimumSyncthingAllowedVersion:"1.27.6",minimumDockerAllowedVersion:"26.1.2",fluxTeamFluxID:"1hjy4bCYBJr4mny4zCE85J94RXa8W6q37",fluxSupportTeamFluxID:"16iJqiVbHptCx87q6XQwNpKdgEZnFtKcyP",deterministicNodesStart:558e3,messagesBroadcastRefactorStart:1751250,fluxapps:{price:[{height:-1,cpu:3,ram:1,hdd:.5,minPrice:1,port:2,scope:6,staticip:3},{height:983e3,cpu:.3,ram:.1,hdd:.05,minPrice:.1,port:2,scope:6,staticip:3},{height:1004e3,cpu:.06,ram:.02,hdd:.01,minPrice:.01,port:2,scope:6,staticip:3},{height:1288e3,cpu:.15,ram:.05,hdd:.02,minPrice:.01,port:2,scope:6,staticip:3},{height:1594832,cpu:.15,ram:.05,hdd:.02,minPrice:.01,port:1.5,scope:6,staticip:3},{height:1597156,cpu:.03,ram:.01,hdd:.004,minPrice:.01,port:.4,scope:.8,staticip:.4}],fluxUSDRate:.6,usdprice:{height:-1,cpu:.15,ram:.05,hdd:.02,minPrice:.01,port:2,scope:4,staticip:2,fluxmultiplier:.9,multiplier:1,minUSDPrice:.99},appSpecsEnforcementHeights:{1:0,2:0,3:983e3,4:1004e3,5:1142e3,6:13e5,7:o?139e4:142e4},address:"t1LUs6quf7TB2zVZmexqPQdnqmrFMGZGjV6",addressMultisig:"t3aGJvdtd8NR6GrnqnRuVEzH6MbrXuJFLUX",addressMultisigB:"t3NryfAQLGeFs9jEoeqsxmBN2QLRaRKFLUX",addressDevelopment:"t1Mzja9iJcEYeW5B4m4s1tJG8M42odFZ16A",multisigAddressChange:167e4,fluxAppRequestV2:167e4,epochstart:694e3,publicepochstart:705e3,portMin:31e3,portMax:39999,portBlockheightChange:o?139e4:142e4,portMinNew:1,portMaxNew:65535,bannedPorts:["16100-16299","26100-26299","30000-30099",8384,27017,22,23,25,3389,5900,5800,161,512,513,5901,3388,4444,123,53],enterprisePorts:["0-1023",8080,8081,8443,6667],upnpBannedPorts:[],maxImageSize:2e9,minimumInstances:3,maximumInstances:100,minOutgoing:8,minUniqueIpsOutgoing:7,minIncoming:4,minUniqueIpsIncoming:3,minUpTime:1800,installation:{probability:100,delay:120},removal:{probability:25,delay:300},redeploy:{probability:2,delay:30,composedDelay:5},blocksLasting:22e3,minBlocksAllowance:5e3,newMinBlocksAllowance:100,newMinBlocksAllowanceBlock:1630040,maxBlocksAllowance:264e3,blocksAllowanceInterval:1e3,removeBlocksAllowanceIntervalBlock:1625e3,ownerAppAllowance:1e3,temporaryAppAllowance:200,expireFluxAppsPeriod:100,updateFluxAppsPeriod:9,removeFluxAppsPeriod:11,reconstructAppMessagesHashPeriod:3600,benchUpnpPeriod:6480,hddFileSystemMinimum:10,defaultSwap:2,applyMinimumPriceOn3Instances:1691e3},lockedSystemResources:{cpu:10,ram:2e3,hdd:60,extrahdd:20},fluxSpecifics:{cpu:{cumulus:40,nimbus:80,stratus:160},ram:{cumulus:7e3,nimbus:3e4,stratus:61e3},hdd:{cumulus:220,nimbus:440,stratus:880},collateral:{cumulusold:1e4,nimbusold:25e3,stratusold:1e5,cumulus:1e3,nimbus:12500,stratus:4e4}},syncthing:{ip:"127.0.0.1",port:8384},enterprisePublicKeys:["045bd4f81d7bda582141793463edb58e0f3228a873bd6b6680b78586db2969f51dfeda672eae65e64ca814316f77557012d02c73db7876764f5eddb6b6d9d02b5b","042ebcb3a94fe66b9ded6e456871346d6984502bbadf14ed07644e0eb91f8cc0b1f07632c428e1e6793f372d9c303d680de80ae0499d51095676cabf68599e9591","040a0f94fdbd670a4514a7366e8b5f7fbfb264c6ca6ea7d3f37147410b62a50525d1ed1ac83dac029de9203b9cabcf18a01b82e499ba36ea51594fd799999b2a26","04092edca3ed2d2b744a1d93e504568e9d861f38232023835202c155afa9f74e3779c926745a4157a7897ca6dca30aa78aa26e4ee11101ce20db9fc79b686de5f0","045964031bb8818521b99f16d2614f1bc8a9968184c9c38dc09cf95b744dae0f603ff3bbecc7845d952901ebabeb343cdcde3c4325274901768dfb102b9a34f5d6","0459f5c058481d557fb63580bfbf21f3791a2f3a62a62c99b435fd8db1d59e21353bdae35cfe00adaf7c4f2f0d400afc698e9c58ee6a3894c20706b3db7da83750","040ecac42ff4468fa8ae094e125fb8ae67c1a588e7b218ac0a9d270bba882c19db656b7b5d99b1af0fe96c34475545088a5bd87efb9a771174bcdd7fb499dd7ca3","04a52af6e9688fcb9d47096f8a15db67131f9b0bbfb50c28fd22028d9fba18f4e9bd3293b43ed64634dbba11688b4e37f1f8e65629b6a204df352d3ecfb174b9f5","04ce029f9d17da47809cbde46e0ea2eace185f79f98e5718cb4ddc3d84bfd742cd3e3951388fcd2771238ab323fe22d53c3dced2a30326ead0447b10f7db0a829b","04dbbf2ba07d28b0010f4faa0537d963b3481b5d8e7ec0de29f311264a4ab074d4d579aca1c2aa3eb31e96f439a6d6bbf72393584049923f342ed4762f13fe7be4","043c4fe1606c543ca28f107245166321fae026300747a608db94deecbcd2d945f86b29c52a33416464e7823a6c2e3e45c26733f6378be973959cbf9ee4bff79e66","04a898a0bc768ad0b8456b4da7c1e653a715477926fefb47ef20d8bd841854ddf4e1f59c1c3d55f0088eaca53b850e6ab03d0bd00d0b5a70d17ffbc0554b6188d5","0455a20efde6a0685fa15b020e694674170376bc7c23d203e96fb927717db38011b87c36b2f81c5cf68123c5567abf2b29788231966ea4c43c4f5cb759e4c5cdbb","04c765d054bcded999c404145c7396725df81973fe803b3da5e9455173410743f43e20294e17bb41adff8b4ff1ab5540b8bcd98521b438840b6a38e904eb0b247f","03cf1d8b708ca7f5979accb4d0dba35a90391e3dfc4422cf12670c929bb58d16ac","03e29783936a36b396c28706494dbfd35f3d087f2addeb3df32e451f71bf9a53f3"]}},65796:e=>{e.exports={initial:{ipaddress:"94.16.104.218",zelid:"1K6nyw2VjV6jEN1f1CkbKn9htWnYkQabbR",kadena:"kadena:k:b3d922d1a57793651a1e0d951ef1671a10833e170810d3520388628cdc082fce?chainid=0",testnet:!1,development:!1,apiport:NaN,pgpPrivateKey:"-----BEGIN PGP PRIVATE KEY BLOCK-----\n\nxVgEZHmg8RYJKwYBBAHaRw8BAQdAvezm7p0lvhM4yOpOSre0cB9W7LCVQ/dM\nzISJD+qJNM8AAP9aHyinNqZkJt6F4siUloUVJt6rOgGCn0e/D3icC2Yisg73\nzXQzMWE5ZjY0ZDNmYzRlZmFlZTQzNzYxM2UzN2NiMmYxZDYzYjRjOTA5N2U5\nZDhlZDhjODFmOTkzNzllM2RkNDY0OjAgPDFLNm55dzJWalY2akVOMWYxQ2ti\nS245aHRXbllrUWFiYlJAcnVub25mbHV4LmlvPsKMBBAWCgA+BYJkeaDxBAsJ\nBwgJkLG9++fl7XbxAxUICgQWAAIBAhkBApsDAh4BFiEEtOdwyqWbs8NNu6s0\nsb375+XtdvEAAEnoAQD2BWD7do+fMVeBbV82fIOhz2qdnDaYAprrihDz6vwb\nTwEAnPMIC4p9iaptWru9Qa2uu3rJsnNmKoiEl1wfFQe+BwfHXQRkeaDxEgor\nBgEEAZdVAQUBAQdA8E0WJLyldJfrFik2vBRQe6kaukdzzTEn7pdoxsd98RUD\nAQgHAAD/ShBVjfSyN5gHdY7AuJaAfqqERyTSkc+hCcSc07cY6zgRYMJ4BBgW\nCAAqBYJkeaDxCZCxvfvn5e128QKbDBYhBLTncMqlm7PDTburNLG9++fl7Xbx\nAADU2QD/TGxJcV7wrgHSJtXxl7ySaYKS/SFgIhF2uQzeS3CwIoYBANyqyX+C\nda2lr4gzAcmnyJGGAK9U60WK4Ppw50lxPP8G\n=A9AK\n-----END PGP PRIVATE KEY BLOCK-----\n",pgpPublicKey:"-----BEGIN PGP PUBLIC KEY BLOCK-----\n\nxjMEZHmg8RYJKwYBBAHaRw8BAQdAvezm7p0lvhM4yOpOSre0cB9W7LCVQ/dM\nzISJD+qJNM/NdDMxYTlmNjRkM2ZjNGVmYWVlNDM3NjEzZTM3Y2IyZjFkNjNi\nNGM5MDk3ZTlkOGVkOGM4MWY5OTM3OWUzZGQ0NjQ6MCA8MUs2bnl3MlZqVjZq\nRU4xZjFDa2JLbjlodFduWWtRYWJiUkBydW5vbmZsdXguaW8+wowEEBYKAD4F\ngmR5oPEECwkHCAmQsb375+XtdvEDFQgKBBYAAgECGQECmwMCHgEWIQS053DK\npZuzw027qzSxvfvn5e128QAASegBAPYFYPt2j58xV4FtXzZ8g6HPap2cNpgC\nmuuKEPPq/BtPAQCc8wgLin2Jqm1au71Bra67esmyc2YqiISXXB8VB74HB844\nBGR5oPESCisGAQQBl1UBBQEBB0DwTRYkvKV0l+sWKTa8FFB7qRq6R3PNMSfu\nl2jGx33xFQMBCAfCeAQYFggAKgWCZHmg8QmQsb375+XtdvECmwwWIQS053DK\npZuzw027qzSxvfvn5e128QAA1NkA/0xsSXFe8K4B0ibV8Ze8kmmCkv0hYCIR\ndrkM3ktwsCKGAQDcqsl/gnWtpa+IMwHJp8iRhgCvVOtFiuD6cOdJcTz/Bg==\n=V9QD\n-----END PGP PUBLIC KEY BLOCK-----\n"}}},98927:(e,t,a)=>{"use strict";e.exports=a.p+"img/logo.svg"},62606:(e,t,a)=>{"use strict";e.exports=a.p+"img/logo_light.svg"},24654:()=>{}},t={};function a(n){var o=t[n];if(void 0!==o)return o.exports;var i=t[n]={id:n,loaded:!1,exports:{}};return e[n].call(i.exports,i,i.exports,a),i.loaded=!0,i.exports}a.m=e,(()=>{a.amdD=function(){throw new Error("define cannot be used indirect")}})(),(()=>{var e=[];a.O=(t,n,o,i)=>{if(!n){var r=1/0;for(c=0;c=i)&&Object.keys(a.O).every((e=>a.O[e](n[l])))?n.splice(l--,1):(s=!1,i0&&e[c-1][2]>i;c--)e[c]=e[c-1];e[c]=[n,o,i]}})(),(()=>{a.n=e=>{var t=e&&e.__esModule?()=>e["default"]:()=>e;return a.d(t,{a:t}),t}})(),(()=>{a.d=(e,t)=>{for(var n in t)a.o(t,n)&&!a.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}})(),(()=>{a.f={},a.e=e=>Promise.all(Object.keys(a.f).reduce(((t,n)=>(a.f[n](e,t),t)),[]))})(),(()=>{a.u=e=>"js/"+({601:"walletconnect",1601:"stablelib",1973:"xterm",2137:"vueJsonViewer",4884:"metamask",5434:"apexcharts",5997:"clipboard",6567:"leaflet",8749:"openpgp"}[e]||e)+".js"})(),(()=>{a.miniCssF=e=>"css/"+e+".css"})(),(()=>{a.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"===typeof window)return window}}()})(),(()=>{a.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t)})(),(()=>{var e={},t="flux:";a.l=(n,o,i,r)=>{if(e[n])e[n].push(o);else{var s,l;if(void 0!==i)for(var d=document.getElementsByTagName("script"),c=0;c{s.onerror=s.onload=null,clearTimeout(u);var o=e[n];if(delete e[n],s.parentNode&&s.parentNode.removeChild(s),o&&o.forEach((e=>e(a))),t)return t(a)},u=setTimeout(p.bind(null,void 0,{type:"timeout",target:s}),12e4);s.onerror=p.bind(null,s.onerror),s.onload=p.bind(null,s.onload),l&&document.head.appendChild(s)}}})(),(()=>{a.r=e=>{"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}})(),(()=>{a.nmd=e=>(e.paths=[],e.children||(e.children=[]),e)})(),(()=>{a.p="/"})(),(()=>{if("undefined"!==typeof document){var e=(e,t,a,n,o)=>{var i=document.createElement("link");i.rel="stylesheet",i.type="text/css";var r=a=>{if(i.onerror=i.onload=null,"load"===a.type)n();else{var r=a&&("load"===a.type?"missing":a.type),s=a&&a.target&&a.target.href||t,l=new Error("Loading CSS chunk "+e+" failed.\n("+s+")");l.code="CSS_CHUNK_LOAD_FAILED",l.type=r,l.request=s,i.parentNode&&i.parentNode.removeChild(i),o(l)}};return i.onerror=i.onload=r,i.href=t,a?a.parentNode.insertBefore(i,a.nextSibling):document.head.appendChild(i),i},t=(e,t)=>{for(var a=document.getElementsByTagName("link"),n=0;nnew Promise(((o,i)=>{var r=a.miniCssF(n),s=a.p+r;if(t(r,s))return o();e(n,s,null,o,i)})),o={4826:0};a.f.miniCss=(e,t)=>{var a={62:1,237:1,1032:1,1115:1,1145:1,1313:1,1540:1,1573:1,1841:1,1966:1,1994:1,2295:1,2532:1,2743:1,2788:1,3041:1,3196:1,3404:1,3678:1,3904:1,4323:1,4661:1,4671:1,4764:1,5038:1,5213:1,5216:1,5497:1,5528:1,5988:1,6147:1,6223:1,6262:1,6414:1,6481:1,6518:1,6626:1,6777:1,7031:1,7071:1,7249:1,7365:1,7415:1,7463:1,7550:1,7583:1,7917:1,7966:1,8390:1,8578:1,8701:1,8755:1,8910:1,9353:1,9389:1,9442:1,9568:1,9816:1,9853:1,9875:1};o[e]?t.push(o[e]):0!==o[e]&&a[e]&&t.push(o[e]=n(e).then((()=>{o[e]=0}),(t=>{throw delete o[e],t})))}}})(),(()=>{var e={4826:0};a.f.j=(t,n)=>{var o=a.o(e,t)?e[t]:void 0;if(0!==o)if(o)n.push(o[2]);else{var i=new Promise(((a,n)=>o=e[t]=[a,n]));n.push(o[2]=i);var r=a.p+a.u(t),s=new Error,l=n=>{if(a.o(e,t)&&(o=e[t],0!==o&&(e[t]=void 0),o)){var i=n&&("load"===n.type?"missing":n.type),r=n&&n.target&&n.target.src;s.message="Loading chunk "+t+" failed.\n("+i+": "+r+")",s.name="ChunkLoadError",s.type=i,s.request=r,o[1](s)}};a.l(r,l,"chunk-"+t,t)}},a.O.j=t=>0===e[t];var t=(t,n)=>{var o,i,[r,s,l]=n,d=0;if(r.some((t=>0!==e[t]))){for(o in s)a.o(s,o)&&(a.m[o]=s[o]);if(l)var c=l(a)}for(t&&t(n);da(69699)));n=a.O(n)})(); \ No newline at end of file +(()=>{var e={86713:(e,t,a)=>{"use strict";a.r(t)},49630:(e,t,a)=>{"use strict";a.r(t)},37307:(e,t,a)=>{"use strict";a.d(t,{Z:()=>i});var n=a(20144),o=a(73507);function i(){const e=(0,n.computed)({get:()=>o.Z.state.verticalMenu.isVerticalMenuCollapsed,set:e=>{o.Z.commit("verticalMenu/UPDATE_VERTICAL_MENU_COLLAPSED",e)}}),t=(0,n.computed)({get:()=>o.Z.state.flux.xdaoOpen,set:e=>{o.Z.commit("flux/setXDAOOpen",e)}}),a=(0,n.computed)({get:()=>o.Z.state.appConfig.layout.isRTL,set:e=>{o.Z.commit("appConfig/TOGGLE_RTL",e)}}),i=(0,n.computed)({get:()=>o.Z.state.appConfig.layout.skin,set:e=>{o.Z.commit("appConfig/UPDATE_SKIN",e)}}),r=(0,n.computed)((()=>"bordered"===i.value?"bordered-layout":"semi-dark"===i.value?"semi-dark-layout":null)),s=(0,n.computed)({get:()=>o.Z.state.appConfig.layout.routerTransition,set:e=>{o.Z.commit("appConfig/UPDATE_ROUTER_TRANSITION",e)}}),l=(0,n.computed)({get:()=>o.Z.state.appConfig.layout.type,set:e=>{o.Z.commit("appConfig/UPDATE_LAYOUT_TYPE",e)}});(0,n.watch)(l,(e=>{"horizontal"===e&&"semi-dark"===i.value&&(i.value="light")}));const c=(0,n.computed)({get:()=>o.Z.state.appConfig.layout.contentWidth,set:e=>{o.Z.commit("appConfig/UPDATE_CONTENT_WIDTH",e)}}),d=(0,n.computed)({get:()=>o.Z.state.appConfig.layout.menu.hidden,set:e=>{o.Z.commit("appConfig/UPDATE_NAV_MENU_HIDDEN",e)}}),m=(0,n.computed)({get:()=>o.Z.state.appConfig.layout.menu.collapsed,set:e=>{o.Z.commit("appConfig/UPDATE_MENU_COLLAPSED",e)}}),p=(0,n.computed)({get:()=>o.Z.state.appConfig.layout.navbar.backgroundColor,set:e=>{o.Z.commit("appConfig/UPDATE_NAVBAR_CONFIG",{backgroundColor:e})}}),u=(0,n.computed)({get:()=>o.Z.state.appConfig.layout.navbar.type,set:e=>{o.Z.commit("appConfig/UPDATE_NAVBAR_CONFIG",{type:e})}}),b=(0,n.computed)({get:()=>o.Z.state.appConfig.layout.footer.type,set:e=>{o.Z.commit("appConfig/UPDATE_FOOTER_CONFIG",{type:e})}});return{isVerticalMenuCollapsed:e,isRTL:a,skin:i,skinClasses:r,routerTransition:s,navbarBackgroundColor:p,navbarType:u,footerType:b,layoutType:l,contentWidth:c,isNavMenuHidden:d,isNavMenuCollapsed:m,xdaoOpenProposals:t}}},82162:e=>{const t=[{name:"Games",variant:"success",icon:"gamepad"},{name:"Productivity",variant:"danger",icon:"file-alt"},{name:"Hosting",variant:"success",icon:"server"},{name:"Blockchain",variant:"success",icon:"coins"},{name:"Blockbook",variant:"success",icon:"book"},{name:"Front-end",variant:"success",icon:"desktop"},{name:"RPC Node",variant:"success",icon:"satellite-dish"},{name:"Masternode",variant:"success",icon:"wallet"}],a={name:"App",variant:"success",icon:"cog"};e.exports={categories:t,defaultCategory:a}},69699:(e,t,a)=>{"use strict";var n=a(20144),o=a(77354),i=a(48648),r=a(68793),s=a(54016),l=a(51205),c=a(33017),d=a(27856),m=a.n(d),p=a(24019),u=a(73507),b=function(){var e=this,t=e._self._c;return t("div",{staticClass:"h-100",class:[e.skinClasses],attrs:{id:"app"}},[t(e.layout,{tag:"component"},[t("router-view")],1),e.enableScrollToTop?t("scroll-to-top"):e._e()],1)},h=[],g=function(){var e=this,t=e._self._c;return t("div",{staticClass:"btn-scroll-to-top",class:{show:e.y>250}},[t("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"btn-icon",attrs:{variant:"primary"},on:{click:e.scrollToTop}},[t("feather-icon",{attrs:{icon:"ArrowUpIcon",size:"16"}})],1)],1)},f=[],x=a(52829),v=a(15193),k=a(20266);const y={directives:{Ripple:k.Z},components:{BButton:v.T},setup(){const{y:e}=(0,x.baj)(),t=()=>{const e=document.documentElement;e.scrollTo({top:0,behavior:"smooth"})};return{y:e,scrollToTop:t}}},T=y;var A=a(1001),C=(0,A.Z)(T,g,f,!1,null,"4d172cb1",null);const P=C.exports;var w=a(68934),D=a(41905),S=a(37307),E=a(34369);const N=a(80129),L=()=>Promise.all([a.e(560),a.e(7218),a.e(2755),a.e(460),a.e(7415)]).then(a.bind(a,10044)),B=()=>a.e(2791).then(a.bind(a,82791)),I={components:{LayoutVertical:L,LayoutFull:B,ScrollToTop:P},setup(){const{skin:e,skinClasses:t}=(0,S.Z)(),{enableScrollToTop:a}=w.$themeConfig.layout;"dark"===e.value&&document.body.classList.add("dark-layout"),(0,D.provideToast)({hideProgressBar:!0,closeOnClick:!1,closeButton:!1,icon:!1,timeout:3e3,transition:"Vue-Toastification__fade"}),u.Z.commit("app/UPDATE_WINDOW_WIDTH",window.innerWidth);const{width:o}=(0,x.iPe)();return(0,n.watch)(o,(e=>{u.Z.commit("app/UPDATE_WINDOW_WIDTH",e)})),{skinClasses:t,enableScrollToTop:a}},computed:{layout(){return"full"===this.$route.meta.layout?"layout-full":`layout-${this.contentLayoutType}`},contentLayoutType(){return this.$store.state.appConfig.layout.type}},beforeCreate(){const e=["primary","secondary","success","info","warning","danger","light","dark"];for(let n=0,o=e.length;n16100)){const e=+t+1;this.$store.commit("flux/setFluxPort",e)}},getZelIdLoginPhrase(){E.Z.loginPhrase().then((e=>{console.log(e),"error"===e.data.status?"MongoNetworkError"===e.data.data.name?this.errorMessage="Failed to connect to MongoDB.":JSON.stringify(e.data.data).includes("CONN")?this.getEmergencyLoginPhrase():this.errorMessage=e.data.data.message:this.loginPhrase=e.data.data})).catch((e=>{console.log(e),this.errorMessage="Error connecting to Flux Backend"}))},getEmergencyLoginPhrase(){E.Z.emergencyLoginPhrase().then((e=>{console.log(e),"error"===e.data.status?this.errorMessage=e.data.data.message:this.loginPhrase=e.data.data})).catch((e=>{console.log(e),this.errorMessage="Error connecting to Flux Backend"}))},activeLoginPhrases(){const e=localStorage.getItem("zelidauth"),t=N.parse(e);console.log(t),E.Z.activeLoginPhrases(e).then((e=>{console.log(e),e.data.status})).catch((e=>{console.log(e),console.log(e.code)}))}}},O=I;var Z=(0,A.Z)(O,b,h,!1,null,null,null);const _=Z.exports;var R=a(9101);const F={name:"FeatherIcon",functional:!0,props:{icon:{required:!0,type:[String,Object]},size:{type:String,default:"14"},badge:{type:[String,Object,Number],default:null},badgeClasses:{type:[String,Object,Array],default:"badge-primary"}},render(e,{props:t,data:a}){const n=e(R[t.icon],{props:{size:t.size},...a});if(!t.badge)return n;const o=e("span",{staticClass:"badge badge-up badge-pill",class:t.badgeClasses},[t.badge]);return e("span",{staticClass:"feather-icon position-relative"},[n,o])}},M=F;var U,G,z=(0,A.Z)(M,U,G,!1,null,null,null);const V=z.exports;var j=a(97754);a(44784);n["default"].component(V.name,V),n["default"].component("VIcon",j.Z);var W=a(87066);const H=W["default"].create({});n["default"].prototype.$http=H;var $=a(72433);n["default"].use($.ZP);var q=a(41151);n["default"].use(q["default"],{hideProgressBar:!0,closeOnClick:!1,closeButton:!1,icon:!1,timeout:3e3,transition:"Vue-Toastification__fade"}),n["default"].use(o.R,{breakpoints:["xs","sm","md","lg","xl","xxl"]}),n["default"].use(i.A6),n["default"].use(r.m$),n["default"].use(s.k),n["default"].use(l.XG7),n["default"].use(c.A7),n["default"].directive("sane-html",((e,t)=>{e.innerHTML=m().sanitize(t.value)})),a(86713),a(49630),n["default"].config.productionTip=!1,new n["default"]({router:p.Z,store:u.Z,render:e=>e(_)}).$mount("#app")},24019:(e,t,a)=>{"use strict";a.d(t,{Z:()=>E});var n=a(20144),o=a(78345),i=a(73507),r=a(34369);const s=[{path:"/dashboard/overview",name:"dashboard-overview",component:()=>Promise.all([a.e(5434),a.e(560),a.e(7218),a.e(5988)]).then(a.bind(a,35988)),meta:{pageTitle:"Overview",breadcrumb:[{text:"Dashboard"},{text:"Overview",active:!0}]}},{path:"/dashboard/resources",name:"dashboard-resources",component:()=>Promise.all([a.e(5434),a.e(560),a.e(7218),a.e(7355)]).then(a.bind(a,25216)),meta:{pageTitle:"Resources",breadcrumb:[{text:"Dashboard"},{text:"Resources",active:!0}]}},{path:"/dashboard/map",name:"dashboard-map",component:()=>Promise.all([a.e(5434),a.e(6567),a.e(560),a.e(7218),a.e(9784),a.e(1032)]).then(a.bind(a,91032)),meta:{pageTitle:"Map",breadcrumb:[{text:"Dashboard"},{text:"Map",active:!0}]}},{path:"/dashboard/rewards",name:"dashboard-rewards",component:()=>Promise.all([a.e(5434),a.e(560),a.e(7218),a.e(8755)]).then(a.bind(a,68755)),meta:{pageTitle:"Rewards",breadcrumb:[{text:"Dashboard"},{text:"Rewards",active:!0}]}},{path:"/dashboard/economics",name:"dashboard-economics",component:()=>Promise.all([a.e(5434),a.e(560),a.e(7218),a.e(8755)]).then(a.bind(a,68755)),meta:{pageTitle:"Rewards",breadcrumb:[{text:"Dashboard"},{text:"Rewards",active:!0}]}},{path:"/dashboard/list",name:"dashboard-list",component:()=>Promise.all([a.e(7218),a.e(6666)]).then(a.bind(a,46666)),meta:{pageTitle:"List",breadcrumb:[{text:"Dashboard"},{text:"List",active:!0}]}}],l=[{path:"/daemon/control/getinfo",name:"daemon-control-getinfo",component:()=>a.e(5213).then(a.bind(a,35213)),meta:{pageTitle:"Get Info",breadcrumb:[{text:"Administration"},{text:"Daemon"},{text:"Control"},{text:"Get Info",active:!0}]}},{path:"/daemon/control/help",name:"daemon-control-help",component:()=>Promise.all([a.e(560),a.e(7647)]).then(a.bind(a,67647)),meta:{pageTitle:"Help",breadcrumb:[{text:"Administration"},{text:"Daemon"},{text:"Control"},{text:"Help",active:!0}]}},{path:"/daemon/control/rescanblockchain",name:"daemon-control-rescanblockchain",component:()=>a.e(6626).then(a.bind(a,86626)),meta:{pageTitle:"Rescan Blockchain",breadcrumb:[{text:"Administration"},{text:"Daemon"},{text:"Control"},{text:"Rescan Blockchain",active:!0}],privilege:["admin"]}},{path:"/daemon/control/reindexblockchain",name:"daemon-control-reindexblockchain",component:()=>a.e(6223).then(a.bind(a,16223)),meta:{pageTitle:"Reindex Blockchain",breadcrumb:[{text:"Administration"},{text:"Daemon"},{text:"Control"},{text:"Reindex Blockchain",active:!0}],privilege:["admin"]}},{path:"/daemon/control/start",name:"daemon-control-start",component:()=>a.e(3404).then(a.bind(a,43404)),meta:{pageTitle:"Start",breadcrumb:[{text:"Administration"},{text:"Daemon"},{text:"Control"},{text:"Start",active:!0}],privilege:["admin","fluxteam"]}},{path:"/daemon/control/stop",name:"daemon-control-stop",component:()=>a.e(1313).then(a.bind(a,91313)),meta:{pageTitle:"Stop",breadcrumb:[{text:"Administration"},{text:"Daemon"},{text:"Control"},{text:"Stop",active:!0}],privilege:["admin"]}},{path:"/daemon/control/restart",name:"daemon-control-restart",component:()=>a.e(9389).then(a.bind(a,39389)),meta:{pageTitle:"Restart",breadcrumb:[{text:"Administration"},{text:"Daemon"},{text:"Control"},{text:"Restart",active:!0}],privilege:["admin","fluxteam"]}}],c=[{path:"/daemon/fluxnode/getnodestatus",name:"daemon-fluxnode-getstatus",component:()=>a.e(1145).then(a.bind(a,81145)),meta:{pageTitle:"Node Status",breadcrumb:[{text:"Administration"},{text:"Daemon"},{text:"FluxNode"},{text:"Get Node Status",active:!0}]}},{path:"/daemon/fluxnode/listfluxnodes",name:"daemon-fluxnode-listfluxnodes",component:()=>Promise.all([a.e(560),a.e(7365)]).then(a.bind(a,67365)),meta:{pageTitle:"List FluxNodes",breadcrumb:[{text:"Administration"},{text:"Daemon"},{text:"FluxNode"},{text:"List FluxNodes",active:!0}]}},{path:"/daemon/fluxnode/viewfluxnodelist",name:"daemon-fluxnode-viewfluxnodelist",component:()=>Promise.all([a.e(560),a.e(7249)]).then(a.bind(a,77249)),meta:{pageTitle:"View Deterministic FluxNodes",breadcrumb:[{text:"Administration"},{text:"Daemon"},{text:"FluxNode"},{text:"View FluxNode List",active:!0}]}},{path:"/daemon/fluxnode/getfluxnodecount",name:"daemon-fluxnode-getfluxnodecount",component:()=>a.e(4671).then(a.bind(a,14671)),meta:{pageTitle:"Get FluxNode Count",breadcrumb:[{text:"Administration"},{text:"Daemon"},{text:"FluxNode"},{text:"Get FluxNode Count",active:!0}]}},{path:"/daemon/fluxnode/getstartlist",name:"daemon-fluxnode-getstartlist",component:()=>Promise.all([a.e(560),a.e(2743)]).then(a.bind(a,32743)),meta:{pageTitle:"Get Start List",breadcrumb:[{text:"Administration"},{text:"Daemon"},{text:"FluxNode"},{text:"Get Start List",active:!0}]}},{path:"/daemon/fluxnode/getdoslist",name:"daemon-fluxnode-getdoslist",component:()=>Promise.all([a.e(560),a.e(3196)]).then(a.bind(a,43196)),meta:{pageTitle:"Get DOS List",breadcrumb:[{text:"Administration"},{text:"Daemon"},{text:"FluxNode"},{text:"Get DOS List",active:!0}]}},{path:"/daemon/fluxnode/currentwinner",name:"daemon-fluxnode-currentwinner",component:()=>Promise.all([a.e(560),a.e(1403)]).then(a.bind(a,81403)),meta:{pageTitle:"Current Winner",breadcrumb:[{text:"Administration"},{text:"Daemon"},{text:"FluxNode"},{text:"Current Winner",active:!0}]}}],d=[{path:"/daemon/benchmarks/getbenchmarks",name:"daemon-benchmarks-getbenchmarks",component:()=>a.e(7463).then(a.bind(a,7463)),meta:{pageTitle:"Get Benchmarks",breadcrumb:[{text:"Administration"},{text:"Daemon"},{text:"Benchmarks"},{text:"Get Benchmarks",active:!0}]}},{path:"/daemon/benchmarks/getstatus",name:"daemon-benchmarks-getstatus",component:()=>a.e(6147).then(a.bind(a,96147)),meta:{pageTitle:"Get Bench Status",breadcrumb:[{text:"Administration"},{text:"Daemon"},{text:"Benchmarks"},{text:"Get Status",active:!0}]}},{path:"/daemon/benchmarks/startbenchmark",name:"daemon-benchmarks-start",component:()=>a.e(9816).then(a.bind(a,59816)),meta:{pageTitle:"Start Benchmark",breadcrumb:[{text:"Administration"},{text:"Daemon"},{text:"Benchmarks"},{text:"Start Benchmark",active:!0}],privilege:["admin","fluxteam"]}},{path:"/daemon/benchmarks/stopbenchmark",name:"daemon-benchmarks-stop",component:()=>a.e(9353).then(a.bind(a,39353)),meta:{pageTitle:"Stop Benchmark",breadcrumb:[{text:"Administration"},{text:"Daemon"},{text:"Benchmarks"},{text:"Stop Benchmark",active:!0}],privilege:["admin","fluxteam"]}}],m=[{path:"/daemon/blockchain/getblockchaininfo",name:"daemon-blockchain-getchaininfo",component:()=>a.e(1115).then(a.bind(a,61115)),meta:{pageTitle:"Get Blockchain Info",breadcrumb:[{text:"Administration"},{text:"Daemon"},{text:"Get Blockchain Info",active:!0}]}}],p=[{path:"/daemon/mining/getmininginfo",name:"daemon-mining-getmininginfo",component:()=>a.e(5497).then(a.bind(a,85497)),meta:{pageTitle:"Get Mining Info",breadcrumb:[{text:"Administration"},{text:"Daemon"},{text:"Get Mining Info",active:!0}]}}],u=[{path:"/daemon/network/getnetworkinfo",name:"daemon-network-getnetworkinfo",component:()=>a.e(4764).then(a.bind(a,84764)),meta:{pageTitle:"Get Network Info",breadcrumb:[{text:"Administration"},{text:"Daemon"},{text:"Get Network Info",active:!0}]}}],b=[{path:"/daemon/transaction/getrawtransaction",name:"daemon-transaction-getrawtransaction",component:()=>a.e(8910).then(a.bind(a,28910)),meta:{pageTitle:"Get Raw Transaction",breadcrumb:[{text:"Administration"},{text:"Daemon"},{text:"Get Raw Transaction",active:!0}]}}],h=[{path:"/daemon/validateaddress",name:"daemon-util-validateaddress",component:()=>a.e(237).then(a.bind(a,60237)),meta:{pageTitle:"Validate Address",breadcrumb:[{text:"Administration"},{text:"Daemon"},{text:"Validate Address",active:!0}]}}],g=[{path:"/daemon/getwalletinfo",name:"daemon-wallet-getwalletinfo",component:()=>a.e(5528).then(a.bind(a,95528)),meta:{pageTitle:"Get Wallet Info",breadcrumb:[{text:"Administration"},{text:"Daemon"},{text:"Get Wallet Info",active:!0}],privilege:["user","admin","fluxteam"]}}],f=[...l,...c,...d,...m,...p,...u,...b,...h,...g,{path:"/daemon/debug",name:"daemon-debug",component:()=>a.e(9853).then(a.bind(a,59853)),meta:{pageTitle:"Debug",breadcrumb:[{text:"Administration"},{text:"Daemon"},{text:"Debug",active:!0}],privilege:["admin","fluxteam"]}}],x=[{path:"/benchmark/control/help",name:"benchmark-control-help",component:()=>Promise.all([a.e(560),a.e(4917)]).then(a.bind(a,34917)),meta:{pageTitle:"Help",breadcrumb:[{text:"Administration"},{text:"Benchmark"},{text:"Control"},{text:"Help",active:!0}]}},{path:"/benchmark/control/start",name:"benchmark-control-start",component:()=>a.e(5038).then(a.bind(a,45038)),meta:{pageTitle:"Start",breadcrumb:[{text:"Administration"},{text:"Benchmark"},{text:"Control"},{text:"Start",active:!0}],privilege:["admin","fluxteam"]}},{path:"/benchmark/control/stop",name:"benchmark-control-stop",component:()=>a.e(6518).then(a.bind(a,36518)),meta:{pageTitle:"Stop",breadcrumb:[{text:"Administration"},{text:"Benchmark"},{text:"Control"},{text:"Stop",active:!0}],privilege:["admin"]}},{path:"/benchmark/control/restart",name:"benchmark-control-restart",component:()=>a.e(7031).then(a.bind(a,7031)),meta:{pageTitle:"Restart",breadcrumb:[{text:"Administration"},{text:"Benchmark"},{text:"Control"},{text:"Restart",active:!0}],privilege:["admin","fluxteam"]}}],v=[{path:"/benchmark/fluxnode/getbenchmarks",name:"benchmark-fluxnode-getbenchmarks",component:()=>a.e(1573).then(a.bind(a,1573)),meta:{pageTitle:"Get Benchmarks",breadcrumb:[{text:"Administration"},{text:"Benchmark"},{text:"FluxNode"},{text:"Get Benchmarks",active:!0}]}},{path:"/benchmark/fluxnode/getinfo",name:"benchmark-fluxnode-getinfo",component:()=>a.e(6262).then(a.bind(a,16262)),meta:{pageTitle:"Get Info",breadcrumb:[{text:"Administration"},{text:"Benchmark"},{text:"FluxNode"},{text:"Get Info",active:!0}]}}],k=[{path:"/benchmark/benchmarks/getstatus",name:"benchmark-benchmarks-getstatus",component:()=>a.e(9875).then(a.bind(a,59875)),meta:{pageTitle:"Get Status",breadcrumb:[{text:"Administration"},{text:"Benchmark"},{text:"Benchmarks"},{text:"Get Status",active:!0}]}},{path:"/benchmark/benchmarks/restartbenchmarks",name:"benchmark-benchmarks-restartbenchmarks",component:()=>a.e(3678).then(a.bind(a,63678)),meta:{pageTitle:"Restart Node Benchmarks",breadcrumb:[{text:"Administration"},{text:"Benchmark"},{text:"Benchmarks"},{text:"Restart Node Benchmarks",active:!0}],privilege:["admin","fluxteam"]}},{path:"/benchmark/benchmarks/signtransaction",name:"benchmark-benchmarks-signtransaction",component:()=>a.e(62).then(a.bind(a,20062)),meta:{pageTitle:"Sign FluxNode Transaction",breadcrumb:[{text:"Administration"},{text:"Benchmark"},{text:"Benchmarks"},{text:"Sign Transaction",active:!0}],privilege:["admin"]}}],y=[...x,...v,...k,{path:"/benchmark/debug",name:"benchmark-debug",component:()=>a.e(7550).then(a.bind(a,37550)),meta:{pageTitle:"Debug",breadcrumb:[{text:"Administration"},{text:"Benchmark"},{text:"Debug",active:!0}],privilege:["admin","fluxteam"]}}],T=[{path:"/flux/nodestatus",name:"flux-nodestatus",component:()=>a.e(7583).then(a.bind(a,87583)),meta:{pageTitle:"Node Status",breadcrumb:[{text:"Administration"},{text:"Flux"},{text:"Node Status",active:!0}]}},{path:"/flux/fluxnetwork",name:"flux-fluxnetwork",component:()=>a.e(3904).then(a.bind(a,63904)),meta:{pageTitle:"Flux Network",breadcrumb:[{text:"Administration"},{text:"Flux"},{text:"Flux Network",active:!0}]}},{path:"/flux/debug",name:"flux-debug",component:()=>Promise.all([a.e(560),a.e(2599),a.e(1540)]).then(a.bind(a,1540)),meta:{pageTitle:"Debug",breadcrumb:[{text:"Administration"},{text:"Flux"},{text:"Debug",active:!0}],privilege:["admin","fluxteam"]}}];var A=a(82162);const C=[{path:"/apps/myapps",name:"apps-myapps",component:()=>Promise.all([a.e(5434),a.e(601),a.e(4884),a.e(1601),a.e(8749),a.e(6567),a.e(1973),a.e(2137),a.e(5997),a.e(560),a.e(7218),a.e(2755),a.e(5216),a.e(9784),a.e(2599),a.e(7353),a.e(1587),a.e(2620)]).then(a.bind(a,22039)),meta:{pageTitle:"Applications",breadcrumb:[{text:"Applications"},{text:"Management",active:!0}]}},{path:"/apps/globalapps",name:"apps-globalapps",component:()=>Promise.all([a.e(5434),a.e(601),a.e(4884),a.e(1601),a.e(8749),a.e(6567),a.e(1973),a.e(2137),a.e(5997),a.e(560),a.e(7218),a.e(2755),a.e(5216),a.e(9784),a.e(2599),a.e(7353),a.e(1587),a.e(2147)]).then(a.bind(a,57494)),meta:{pageTitle:"Applications",breadcrumb:[{text:"Applications"},{text:"Global Apps",active:!0}]}},{path:"/apps/registerapp/:appspecs?",name:"apps-registerapp",component:()=>Promise.all([a.e(601),a.e(4884),a.e(1601),a.e(8749),a.e(560),a.e(7218),a.e(2755),a.e(5216),a.e(7353),a.e(4323)]).then(a.bind(a,41219)),meta:{pageTitle:"Register New App",breadcrumb:[{text:"Applications"},{text:"Register New App",active:!0}]}},{path:"/apps/marketplace",name:"apps-marketplace",component:()=>Promise.all([a.e(5434),a.e(601),a.e(4884),a.e(1601),a.e(8749),a.e(560),a.e(7218),a.e(2755),a.e(5216),a.e(460),a.e(8701)]).then(a.bind(a,64813)),meta:{contentRenderer:"sidebar-left",contentClass:"marketplace-application"}},{path:"/apps/marketplace/:filter",name:"apps-marketplace-filter",component:()=>Promise.all([a.e(5434),a.e(601),a.e(4884),a.e(1601),a.e(8749),a.e(560),a.e(7218),a.e(2755),a.e(5216),a.e(460),a.e(8701)]).then(a.bind(a,64813)),meta:{contentRenderer:"sidebar-left",contentClass:"marketplace-application",navActiveLink:"apps-marketplace"},beforeEnter(e,t,a){const n=A.categories.map((e=>e.name.toLowerCase()));n.includes(e.params.filter)?a():a({name:"error-404"})}},{path:"https://titan.runonflux.io",name:"apps-marketplace-sharednodes",component:()=>Promise.all([a.e(5434),a.e(601),a.e(4884),a.e(1601),a.e(8749),a.e(560),a.e(7218),a.e(2755),a.e(5216),a.e(460),a.e(8701)]).then(a.bind(a,64813)),meta:{contentRenderer:"sidebar-left",contentClass:"marketplace-application",navActiveLink:"apps-marketplace"}}],P=[{path:"/apps/localapps",name:"apps-localapps",component:()=>Promise.all([a.e(5434),a.e(601),a.e(4884),a.e(1601),a.e(8749),a.e(6567),a.e(1973),a.e(2137),a.e(5997),a.e(560),a.e(7218),a.e(2755),a.e(5216),a.e(9784),a.e(2599),a.e(7353),a.e(1587),a.e(2558)]).then(a.bind(a,65530)),meta:{pageTitle:"Local Apps",breadcrumb:[{text:"Administration"},{text:"Local Apps",active:!0}]}},{path:"/fluxadmin/loggedsessions",name:"fluxadmin-loggedsessions",component:()=>a.e(6414).then(a.bind(a,26414)),meta:{pageTitle:"Logged Sessions",breadcrumb:[{text:"Administration"},{text:"Logged Sessions",active:!0}],privilege:["admin","fluxteam"]}},{path:"/fluxadmin/manageflux",name:"fluxadmin-manageflux",component:()=>a.e(6777).then(a.bind(a,96777)),meta:{pageTitle:"Manage Flux",breadcrumb:[{text:"Administration"},{text:"Manage Flux",active:!0}],privilege:["admin","fluxteam"]}},{path:"/fluxadmin/managedaemon",name:"fluxadmin-managedaemon",component:()=>a.e(6481).then(a.bind(a,56481)),meta:{pageTitle:"Manage Daemon",breadcrumb:[{text:"Administration"},{text:"Manage Daemon",active:!0}],privilege:["admin","fluxteam"]}},{path:"/fluxadmin/managebenchmark",name:"fluxadmin-managebenchmark",component:()=>a.e(1994).then(a.bind(a,71994)),meta:{pageTitle:"Manage Benchmark",breadcrumb:[{text:"Administration"},{text:"Manage Benchmark",active:!0}],privilege:["admin","fluxteam"]}},{path:"/fluxadmin/manageusers",name:"fluxadmin-manageusers",component:()=>a.e(1841).then(a.bind(a,21841)),meta:{pageTitle:"Manage Users",breadcrumb:[{text:"Administration"},{text:"Manage Users",active:!0}],privilege:["admin","fluxteam"]}},{path:"/apps/fluxsharestorage",name:"apps-fluxsharestorage",component:()=>Promise.all([a.e(560),a.e(8578)]).then(a.bind(a,78578)),meta:{pageTitle:"My FluxShare Storage",breadcrumb:[{text:"Administration"},{text:"My FluxShare Storage",active:!0}],privilege:["admin"]}}],w=[{path:"/xdao-app",name:"xdao-app",component:()=>Promise.all([a.e(5434),a.e(560),a.e(7218),a.e(460),a.e(7917)]).then(a.bind(a,37917)),meta:{contentRenderer:"sidebar-left",contentClass:"xdao-application"}},{path:"/xdao-app/:filter",name:"xdao-app-filter",component:()=>Promise.all([a.e(5434),a.e(560),a.e(7218),a.e(460),a.e(7917)]).then(a.bind(a,37917)),meta:{contentRenderer:"sidebar-left",contentClass:"xdao-application",navActiveLink:"xdao-app"},beforeEnter(e,t,a){["open","passed","unpaid","rejected"].includes(e.params.filter)?a():a({name:"error-404"})}},{path:"/xdao-app/tag/:tag",name:"xdao-app-tag",component:()=>Promise.all([a.e(5434),a.e(560),a.e(7218),a.e(460),a.e(7917)]).then(a.bind(a,37917)),meta:{contentRenderer:"sidebar-left",contentClass:"xdao-application",navActiveLink:"xdao-app"},beforeEnter(e,t,a){["team","low","medium","high","update"].includes(e.params.tag)?a():a({name:"error-404"})}}],D=a(80129);n["default"].use(o.ZP);const S=new o.ZP({mode:"history",base:"/",scrollBehavior(){return{x:0,y:0}},routes:[{path:"/",name:"home",component:()=>Promise.all([a.e(601),a.e(4884),a.e(1601),a.e(560),a.e(2755),a.e(5216),a.e(4031)]).then(a.bind(a,18119)),meta:{pageTitle:"Home",breadcrumb:[{text:"Home",active:!0}]}},{path:"/explorer",name:"explorer",component:()=>Promise.all([a.e(560),a.e(266)]).then(a.bind(a,266)),meta:{pageTitle:"Explorer",breadcrumb:[{text:"Administration"},{text:"Explorer",active:!0}]}},...s,...f,...y,...T,...C,...P,...w,{path:"/successcheckout",name:"successcheckout",component:()=>a.e(2295).then(a.bind(a,42295)),meta:{layout:"full"}},{path:"/error-404",name:"error-404",component:()=>a.e(4661).then(a.bind(a,84661)),meta:{layout:"full"}},{path:"*",redirect:"error-404"}]});S.beforeEach((async(e,t,a)=>{const n=localStorage.getItem("zelidauth"),o=D.parse(n);if(i.Z.commit("flux/setPrivilege","none"),o&&o.zelid&&o.signature&&o.loginPhrase)try{const e=await r.Z.checkUserLogged(o.zelid,o.signature,o.loginPhrase),t=e.data.data.message;i.Z.commit("flux/setPrivilege",t),"none"===t&&localStorage.removeItem("zelidauth")}catch(s){console.log(s)}e.meta&&e.meta.privilege?e.meta.privilege.some((e=>e===i.Z.state.flux.privilege))?a():a("/"):a()})),S.afterEach((()=>{const e=document.getElementById("loading-bg");e&&(e.style.display="none")}));const E=S},80914:(e,t,a)=>{"use strict";a.d(t,{S:()=>d,Z:()=>m});var n=a(87066);const o=a(58971),{protocol:i,hostname:r,port:s}=window.location;let l="";l+=i,l+="//";const c=/[A-Za-z]/g;if(r.split("-")[4]){const e=r.split("-"),t=e[4].split("."),a=+t[0]+1;t[0]=a.toString(),t[2]="api",e[4]="",l+=e.join("-"),l+=t.join(".")}else if(r.match(c)){const e=r.split(".");e[0]="api",l+=e.join(".")}else l+=r,l+=":",l+=+s+1;const d=n["default"].CancelToken.source(),m=()=>n["default"].create({baseURL:o.get("backendURL")||l})},34369:(e,t,a)=>{"use strict";a.d(t,{Z:()=>i});var n=a(80914);const o=a(80129),i={loginPhrase(){return(0,n.Z)().get("/id/loginphrase")},emergencyLoginPhrase(){return(0,n.Z)().get("/id/emergencyphrase")},verifyLogin(e){return(0,n.Z)().post("/id/verifylogin",o.stringify(e))},loggedSessions(e){return(0,n.Z)().get(`/id/loggedsessions?timestamp=${Date.now()}`,{headers:{zelidauth:e}})},loggedUsers(e){return(0,n.Z)().get(`/id/loggedusers?timestamp=${Date.now()}`,{headers:{zelidauth:e}})},activeLoginPhrases(e){return(0,n.Z)().get("/id/activeloginphrases",{headers:{zelidauth:e}})},logoutCurrentSession(e){return(0,n.Z)().get("/id/logoutcurrentsession",{headers:{zelidauth:e}})},logoutSpecificSession(e,t){const a={loginPhrase:t},i={headers:{zelidauth:e}};return(0,n.Z)().post("/id/logoutspecificsession",o.stringify(a),i)},logoutAllSessions(e){return(0,n.Z)().get("/id/logoutallsessions",{headers:{zelidauth:e}})},logoutAllUsers(e){return(0,n.Z)().get("/id/logoutallusers",{headers:{zelidauth:e}})},checkUserLogged(e,t,a){const i={zelid:e,signature:t,loginPhrase:a};return(0,n.Z)().post("/id/checkprivilege",o.stringify(i))}}},73507:(e,t,a)=>{"use strict";a.d(t,{Z:()=>p});var n=a(20144),o=a(20629),i=a(68934);const r={namespaced:!0,state:{windowWidth:0,shallShowOverlay:!1},getters:{currentBreakPoint:e=>{const{windowWidth:t}=e;return t>=i.n.xl?"xl":t>=i.n.lg?"lg":t>=i.n.md?"md":t>=i.n.sm?"sm":"xs"}},mutations:{UPDATE_WINDOW_WIDTH(e,t){e.windowWidth=t},TOGGLE_OVERLAY(e,t){e.shallShowOverlay=void 0!==t?t:!e.shallShowOverlay}},actions:{}},s={namespaced:!0,state:{layout:{isRTL:i.$themeConfig.layout.isRTL,skin:localStorage.getItem("vuexy-skin")||i.$themeConfig.layout.skin,routerTransition:i.$themeConfig.layout.routerTransition,type:i.$themeConfig.layout.type,contentWidth:i.$themeConfig.layout.contentWidth,menu:{hidden:i.$themeConfig.layout.menu.hidden,collapsed:"true"===localStorage.getItem("menu-itemsCollapsed")||i.$themeConfig.layout.menu.itemsCollapsed},navbar:{type:i.$themeConfig.layout.navbar.type,backgroundColor:i.$themeConfig.layout.navbar.backgroundColor},footer:{type:i.$themeConfig.layout.footer.type}}},getters:{},mutations:{TOGGLE_RTL(e){e.layout.isRTL=!e.layout.isRTL,document.documentElement.setAttribute("dir",e.layout.isRTL?"rtl":"ltr")},UPDATE_SKIN(e,t){e.layout.skin=t,localStorage.setItem("vuexy-skin",t),"dark"===t?document.body.classList.add("dark-layout"):document.body.className.match("dark-layout")&&document.body.classList.remove("dark-layout")},UPDATE_ROUTER_TRANSITION(e,t){e.layout.routerTransition=t},UPDATE_LAYOUT_TYPE(e,t){e.layout.type=t},UPDATE_CONTENT_WIDTH(e,t){e.layout.contentWidth=t},UPDATE_NAV_MENU_HIDDEN(e,t){e.layout.menu.hidden=t},UPDATE_NAVBAR_CONFIG(e,t){Object.assign(e.layout.navbar,t)},UPDATE_FOOTER_CONFIG(e,t){Object.assign(e.layout.footer,t)},UPDATE_MENU_COLLAPSED(e,t){e.layout.menu.collapsed=t,localStorage.setItem("menu-itemsCollapsed",t)}},actions:{}},l={namespaced:!0,state:{isVerticalMenuCollapsed:"true"===localStorage.getItem("menu-isCollapsed")||i.$themeConfig.layout.menu.isCollapsed},getters:{},mutations:{UPDATE_VERTICAL_MENU_COLLAPSED(e,t){e.isVerticalMenuCollapsed=t,localStorage.setItem("menu-isCollapsed",t)}},actions:{}};var c=a(90325),d=a.n(c);const m={namespaced:!0,state:{userconfig:{zelid:"",externalip:""},config:{apiPort:d().server.apiport,fluxTeamFluxID:d().fluxTeamFluxID,fluxSupportTeamFluxID:d().fluxSupportTeamFluxID},privilege:"none",zelid:"",fluxVersion:"",xdaoOpen:0},getters:{xdaoOpen(e){return e.xdaoOpen}},mutations:{setPrivilege(e,t){e.privilege=t},setZelid(e,t){e.zelid=t},setFluxVersion(e,t){e.fluxVersion=t},setUserZelid(e,t){e.userconfig.zelid=t},setUserIp(e,t){e.userconfig.externalip=t},setFluxPort(e,t){e.config.apiPort=t},setXDAOOpen(e,t){e.xdaoOpen=t}},actions:{}};n["default"].use(o.ZP);const p=new o.ZP.Store({modules:{app:r,appConfig:s,verticalMenu:l,flux:m},strict:{NODE_ENV:"production",BASE_URL:"/"}.DEV})},68934:(e,t,a)=>{"use strict";a.d(t,{$themeConfig:()=>i,j:()=>n,n:()=>o});const n={},o={},i={app:{appName:"FluxOS",appLogoImageDark:a(98927),appLogoImage:a(62606)},layout:{isRTL:!1,skin:"dark",routerTransition:"zoom-fade",type:"vertical",contentWidth:"full",menu:{hidden:!1,isCollapsed:!1,itemsCollapsed:!0},navbar:{type:"sticky",backgroundColor:""},footer:{type:"static"},customizer:!0,enableScrollToTop:!0}}},90325:(e,t,a)=>{let n=a(65796);const o=n.initial.development||!1;e.exports={development:o,loglevel:"debug",server:{allowedPorts:[16127,16137,16147,16157,16167,16177,16187,16197],apiport:16127},database:{url:"127.0.0.1",port:27017,local:{database:"zelfluxlocal",collections:{loggedUsers:"loggedusers",activeLoginPhrases:"activeloginphrases",activeSignatures:"activesignatures"}},daemon:{database:"zelcashdata",collections:{scannedHeight:"scannedheight",utxoIndex:"utxoindex",addressTransactionIndex:"addresstransactionindex",fluxTransactions:"zelnodetransactions",appsHashes:"zelappshashes",coinbaseFusionIndex:"coinbasefusionindex"}},appslocal:{database:"localzelapps",collections:{appsInformation:"zelappsinformation"}},appsglobal:{database:"globalzelapps",collections:{appsMessages:"zelappsmessages",appsInformation:"zelappsinformation",appsTemporaryMessages:"zelappstemporarymessages",appsLocations:"zelappslocation"}},chainparams:{database:"chainparams",collections:{chainMessages:"chainmessages"}},fluxshare:{database:"zelshare",collections:{shared:"shared"}}},benchmark:{port:16225,rpcport:16224,porttestnet:26225,rpcporttestnet:26224},daemon:{chainValidHeight:1062e3,port:16125,rpcport:16124,porttestnet:26125,rpcporttestnet:26124,zmqport:16123},minimumFluxBenchAllowedVersion:"4.0.0",minimumFluxOSAllowedVersion:"5.4.0",minimumSyncthingAllowedVersion:"1.27.6",minimumDockerAllowedVersion:"26.1.2",fluxTeamFluxID:"1hjy4bCYBJr4mny4zCE85J94RXa8W6q37",fluxSupportTeamFluxID:"16iJqiVbHptCx87q6XQwNpKdgEZnFtKcyP",deterministicNodesStart:558e3,messagesBroadcastRefactorStart:1751250,fluxapps:{price:[{height:-1,cpu:3,ram:1,hdd:.5,minPrice:1,port:2,scope:6,staticip:3},{height:983e3,cpu:.3,ram:.1,hdd:.05,minPrice:.1,port:2,scope:6,staticip:3},{height:1004e3,cpu:.06,ram:.02,hdd:.01,minPrice:.01,port:2,scope:6,staticip:3},{height:1288e3,cpu:.15,ram:.05,hdd:.02,minPrice:.01,port:2,scope:6,staticip:3},{height:1594832,cpu:.15,ram:.05,hdd:.02,minPrice:.01,port:1.5,scope:6,staticip:3},{height:1597156,cpu:.03,ram:.01,hdd:.004,minPrice:.01,port:.4,scope:.8,staticip:.4}],fluxUSDRate:.6,usdprice:{height:-1,cpu:.15,ram:.05,hdd:.02,minPrice:.01,port:2,scope:4,staticip:2,fluxmultiplier:.9,multiplier:1,minUSDPrice:.99},appSpecsEnforcementHeights:{1:0,2:0,3:983e3,4:1004e3,5:1142e3,6:13e5,7:o?139e4:142e4},address:"t1LUs6quf7TB2zVZmexqPQdnqmrFMGZGjV6",addressMultisig:"t3aGJvdtd8NR6GrnqnRuVEzH6MbrXuJFLUX",addressMultisigB:"t3NryfAQLGeFs9jEoeqsxmBN2QLRaRKFLUX",addressDevelopment:"t1Mzja9iJcEYeW5B4m4s1tJG8M42odFZ16A",multisigAddressChange:167e4,fluxAppRequestV2:167e4,epochstart:694e3,publicepochstart:705e3,portMin:31e3,portMax:39999,portBlockheightChange:o?139e4:142e4,portMinNew:1,portMaxNew:65535,bannedPorts:["16100-16299","26100-26299","30000-30099",8384,27017,22,23,25,3389,5900,5800,161,512,513,5901,3388,4444,123,53],enterprisePorts:["0-1023",8080,8081,8443,6667],upnpBannedPorts:[],maxImageSize:2e9,minimumInstances:3,maximumInstances:100,minOutgoing:8,minUniqueIpsOutgoing:7,minIncoming:4,minUniqueIpsIncoming:3,minUpTime:1800,installation:{probability:100,delay:120},removal:{probability:25,delay:300},redeploy:{probability:2,delay:30,composedDelay:5},blocksLasting:22e3,minBlocksAllowance:5e3,newMinBlocksAllowance:100,newMinBlocksAllowanceBlock:1630040,maxBlocksAllowance:264e3,blocksAllowanceInterval:1e3,removeBlocksAllowanceIntervalBlock:1625e3,ownerAppAllowance:1e3,temporaryAppAllowance:200,expireFluxAppsPeriod:100,updateFluxAppsPeriod:9,removeFluxAppsPeriod:11,reconstructAppMessagesHashPeriod:3600,benchUpnpPeriod:6480,hddFileSystemMinimum:10,defaultSwap:2,applyMinimumPriceOn3Instances:1691e3},lockedSystemResources:{cpu:10,ram:2e3,hdd:60,extrahdd:20},fluxSpecifics:{cpu:{cumulus:40,nimbus:80,stratus:160},ram:{cumulus:7e3,nimbus:3e4,stratus:61e3},hdd:{cumulus:220,nimbus:440,stratus:880},collateral:{cumulusold:1e4,nimbusold:25e3,stratusold:1e5,cumulus:1e3,nimbus:12500,stratus:4e4}},syncthing:{ip:"127.0.0.1",port:8384},enterprisePublicKeys:["045bd4f81d7bda582141793463edb58e0f3228a873bd6b6680b78586db2969f51dfeda672eae65e64ca814316f77557012d02c73db7876764f5eddb6b6d9d02b5b","042ebcb3a94fe66b9ded6e456871346d6984502bbadf14ed07644e0eb91f8cc0b1f07632c428e1e6793f372d9c303d680de80ae0499d51095676cabf68599e9591","040a0f94fdbd670a4514a7366e8b5f7fbfb264c6ca6ea7d3f37147410b62a50525d1ed1ac83dac029de9203b9cabcf18a01b82e499ba36ea51594fd799999b2a26","04092edca3ed2d2b744a1d93e504568e9d861f38232023835202c155afa9f74e3779c926745a4157a7897ca6dca30aa78aa26e4ee11101ce20db9fc79b686de5f0","045964031bb8818521b99f16d2614f1bc8a9968184c9c38dc09cf95b744dae0f603ff3bbecc7845d952901ebabeb343cdcde3c4325274901768dfb102b9a34f5d6","0459f5c058481d557fb63580bfbf21f3791a2f3a62a62c99b435fd8db1d59e21353bdae35cfe00adaf7c4f2f0d400afc698e9c58ee6a3894c20706b3db7da83750","040ecac42ff4468fa8ae094e125fb8ae67c1a588e7b218ac0a9d270bba882c19db656b7b5d99b1af0fe96c34475545088a5bd87efb9a771174bcdd7fb499dd7ca3","04a52af6e9688fcb9d47096f8a15db67131f9b0bbfb50c28fd22028d9fba18f4e9bd3293b43ed64634dbba11688b4e37f1f8e65629b6a204df352d3ecfb174b9f5","04ce029f9d17da47809cbde46e0ea2eace185f79f98e5718cb4ddc3d84bfd742cd3e3951388fcd2771238ab323fe22d53c3dced2a30326ead0447b10f7db0a829b","04dbbf2ba07d28b0010f4faa0537d963b3481b5d8e7ec0de29f311264a4ab074d4d579aca1c2aa3eb31e96f439a6d6bbf72393584049923f342ed4762f13fe7be4","043c4fe1606c543ca28f107245166321fae026300747a608db94deecbcd2d945f86b29c52a33416464e7823a6c2e3e45c26733f6378be973959cbf9ee4bff79e66","04a898a0bc768ad0b8456b4da7c1e653a715477926fefb47ef20d8bd841854ddf4e1f59c1c3d55f0088eaca53b850e6ab03d0bd00d0b5a70d17ffbc0554b6188d5","0455a20efde6a0685fa15b020e694674170376bc7c23d203e96fb927717db38011b87c36b2f81c5cf68123c5567abf2b29788231966ea4c43c4f5cb759e4c5cdbb","04c765d054bcded999c404145c7396725df81973fe803b3da5e9455173410743f43e20294e17bb41adff8b4ff1ab5540b8bcd98521b438840b6a38e904eb0b247f","03cf1d8b708ca7f5979accb4d0dba35a90391e3dfc4422cf12670c929bb58d16ac","03e29783936a36b396c28706494dbfd35f3d087f2addeb3df32e451f71bf9a53f3"]}},65796:e=>{e.exports={initial:{ipaddress:"213.134.160.108",zelid:"196GJWyLxzAw3MirTT7Bqs2iGpUQio29GH",testnet:!1,development:!1,apiport:16127,pgpPrivateKey:"",pgpPublicKey:""}}},98927:(e,t,a)=>{"use strict";e.exports=a.p+"img/logo.svg"},62606:(e,t,a)=>{"use strict";e.exports=a.p+"img/logo_light.svg"},24654:()=>{}},t={};function a(n){var o=t[n];if(void 0!==o)return o.exports;var i=t[n]={id:n,loaded:!1,exports:{}};return e[n].call(i.exports,i,i.exports,a),i.loaded=!0,i.exports}a.m=e,(()=>{a.amdD=function(){throw new Error("define cannot be used indirect")}})(),(()=>{var e=[];a.O=(t,n,o,i)=>{if(!n){var r=1/0;for(d=0;d=i)&&Object.keys(a.O).every((e=>a.O[e](n[l])))?n.splice(l--,1):(s=!1,i0&&e[d-1][2]>i;d--)e[d]=e[d-1];e[d]=[n,o,i]}})(),(()=>{a.n=e=>{var t=e&&e.__esModule?()=>e["default"]:()=>e;return a.d(t,{a:t}),t}})(),(()=>{a.d=(e,t)=>{for(var n in t)a.o(t,n)&&!a.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}})(),(()=>{a.f={},a.e=e=>Promise.all(Object.keys(a.f).reduce(((t,n)=>(a.f[n](e,t),t)),[]))})(),(()=>{a.u=e=>"js/"+({601:"walletconnect",1601:"stablelib",1973:"xterm",2137:"vueJsonViewer",4884:"metamask",5434:"apexcharts",5997:"clipboard",6567:"leaflet",8749:"openpgp"}[e]||e)+".js"})(),(()=>{a.miniCssF=e=>"css/"+e+".css"})(),(()=>{a.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"===typeof window)return window}}()})(),(()=>{a.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t)})(),(()=>{var e={},t="flux:";a.l=(n,o,i,r)=>{if(e[n])e[n].push(o);else{var s,l;if(void 0!==i)for(var c=document.getElementsByTagName("script"),d=0;d{s.onerror=s.onload=null,clearTimeout(u);var o=e[n];if(delete e[n],s.parentNode&&s.parentNode.removeChild(s),o&&o.forEach((e=>e(a))),t)return t(a)},u=setTimeout(p.bind(null,void 0,{type:"timeout",target:s}),12e4);s.onerror=p.bind(null,s.onerror),s.onload=p.bind(null,s.onload),l&&document.head.appendChild(s)}}})(),(()=>{a.r=e=>{"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}})(),(()=>{a.nmd=e=>(e.paths=[],e.children||(e.children=[]),e)})(),(()=>{a.p="/"})(),(()=>{if("undefined"!==typeof document){var e=(e,t,n,o,i)=>{var r=document.createElement("link");r.rel="stylesheet",r.type="text/css",a.nc&&(r.nonce=a.nc);var s=a=>{if(r.onerror=r.onload=null,"load"===a.type)o();else{var n=a&&a.type,s=a&&a.target&&a.target.href||t,l=new Error("Loading CSS chunk "+e+" failed.\n("+n+": "+s+")");l.name="ChunkLoadError",l.code="CSS_CHUNK_LOAD_FAILED",l.type=n,l.request=s,r.parentNode&&r.parentNode.removeChild(r),i(l)}};return r.onerror=r.onload=s,r.href=t,n?n.parentNode.insertBefore(r,n.nextSibling):document.head.appendChild(r),r},t=(e,t)=>{for(var a=document.getElementsByTagName("link"),n=0;nnew Promise(((o,i)=>{var r=a.miniCssF(n),s=a.p+r;if(t(r,s))return o();e(n,s,null,o,i)})),o={4826:0};a.f.miniCss=(e,t)=>{var a={62:1,237:1,266:1,1032:1,1115:1,1145:1,1313:1,1403:1,1540:1,1573:1,1841:1,1994:1,2147:1,2295:1,2558:1,2620:1,2743:1,3196:1,3404:1,3678:1,3904:1,4031:1,4323:1,4661:1,4671:1,4764:1,4917:1,5038:1,5213:1,5497:1,5528:1,5988:1,6147:1,6223:1,6262:1,6414:1,6481:1,6518:1,6626:1,6777:1,7031:1,7249:1,7355:1,7365:1,7415:1,7463:1,7550:1,7583:1,7647:1,7917:1,8578:1,8701:1,8755:1,8910:1,9353:1,9389:1,9784:1,9816:1,9853:1,9875:1};o[e]?t.push(o[e]):0!==o[e]&&a[e]&&t.push(o[e]=n(e).then((()=>{o[e]=0}),(t=>{throw delete o[e],t})))}}})(),(()=>{var e={4826:0};a.f.j=(t,n)=>{var o=a.o(e,t)?e[t]:void 0;if(0!==o)if(o)n.push(o[2]);else{var i=new Promise(((a,n)=>o=e[t]=[a,n]));n.push(o[2]=i);var r=a.p+a.u(t),s=new Error,l=n=>{if(a.o(e,t)&&(o=e[t],0!==o&&(e[t]=void 0),o)){var i=n&&("load"===n.type?"missing":n.type),r=n&&n.target&&n.target.src;s.message="Loading chunk "+t+" failed.\n("+i+": "+r+")",s.name="ChunkLoadError",s.type=i,s.request=r,o[1](s)}};a.l(r,l,"chunk-"+t,t)}},a.O.j=t=>0===e[t];var t=(t,n)=>{var o,i,r=n[0],s=n[1],l=n[2],c=0;if(r.some((t=>0!==e[t]))){for(o in s)a.o(s,o)&&(a.m[o]=s[o]);if(l)var d=l(a)}for(t&&t(n);ca(69699)));n=a.O(n)})(); \ No newline at end of file diff --git a/HomeUI/dist/js/leaflet.js b/HomeUI/dist/js/leaflet.js index a1d624e6c..d828c20fe 100644 --- a/HomeUI/dist/js/leaflet.js +++ b/HomeUI/dist/js/leaflet.js @@ -1,4 +1,4 @@ -(globalThis["webpackChunkflux"]=globalThis["webpackChunkflux"]||[]).push([[6567],{45243:function(t,i){ +(self["webpackChunkflux"]=self["webpackChunkflux"]||[]).push([[6567],{45243:function(t,i){ /* @preserve * Leaflet 1.9.4, a JS library for interactive maps. https://leafletjs.com * (c) 2010-2023 Vladimir Agafonkin, (c) 2010-2011 CloudMade diff --git a/HomeUI/dist/js/metamask.js b/HomeUI/dist/js/metamask.js index c5137bd57..28cb1e837 100644 --- a/HomeUI/dist/js/metamask.js +++ b/HomeUI/dist/js/metamask.js @@ -1,4 +1,4 @@ -(globalThis["webpackChunkflux"]=globalThis["webpackChunkflux"]||[]).push([[4884],{94145:function(e,t,n){!function(e,n){n(t)}(0,(function(e){"use strict";var t="undefined"!=typeof n.g?n.g:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},r="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof n.g?n.g:"undefined"!=typeof self?self:{};function i(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function o(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var n=function e(){return this instanceof e?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(t){var r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,r.get?r:{enumerable:!0,get:function(){return e[t]}})})),n}var a={exports:{}};!function(e,t){var n="undefined"!=typeof self?self:r,i=function(){function e(){this.fetch=!1,this.DOMException=n.DOMException}return e.prototype=n,new e}();!function(e){!function(t){var n="URLSearchParams"in e,r="Symbol"in e&&"iterator"in Symbol,i="FileReader"in e&&"Blob"in e&&function(){try{return new Blob,!0}catch(e){return!1}}(),o="FormData"in e,a="ArrayBuffer"in e;if(a)var s=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],u=ArrayBuffer.isView||function(e){return e&&s.indexOf(Object.prototype.toString.call(e))>-1};function l(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(e))throw new TypeError("Invalid character in header field name");return e.toLowerCase()}function c(e){return"string"!=typeof e&&(e=String(e)),e}function d(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return r&&(t[Symbol.iterator]=function(){return t}),t}function f(e){this.map={},e instanceof f?e.forEach((function(e,t){this.append(t,e)}),this):Array.isArray(e)?e.forEach((function(e){this.append(e[0],e[1])}),this):e&&Object.getOwnPropertyNames(e).forEach((function(t){this.append(t,e[t])}),this)}function h(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function p(e){return new Promise((function(t,n){e.onload=function(){t(e.result)},e.onerror=function(){n(e.error)}}))}function m(e){var t=new FileReader,n=p(t);return t.readAsArrayBuffer(e),n}function g(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function v(){return this.bodyUsed=!1,this._initBody=function(e){var t;this._bodyInit=e,e?"string"==typeof e?this._bodyText=e:i&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:o&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:n&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():a&&i&&(t=e)&&DataView.prototype.isPrototypeOf(t)?(this._bodyArrayBuffer=g(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):a&&(ArrayBuffer.prototype.isPrototypeOf(e)||u(e))?this._bodyArrayBuffer=g(e):this._bodyText=e=Object.prototype.toString.call(e):this._bodyText="",this.headers.get("content-type")||("string"==typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):n&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},i&&(this.blob=function(){var e=h(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?h(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(m)}),this.text=function(){var e,t,n,r=h(this);if(r)return r;if(this._bodyBlob)return e=this._bodyBlob,t=new FileReader,n=p(t),t.readAsText(e),n;if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),n=new Array(t.length),r=0;r-1?t:e}(t.method||this.method||"GET"),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&n)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(n)}function w(e){var t=new FormData;return e.trim().split("&").forEach((function(e){if(e){var n=e.split("="),r=n.shift().replace(/\+/g," "),i=n.join("=").replace(/\+/g," ");t.append(decodeURIComponent(r),decodeURIComponent(i))}})),t}function A(e,t){t||(t={}),this.type="default",this.status=void 0===t.status?200:t.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in t?t.statusText:"OK",this.headers=new f(t.headers),this.url=t.url||"",this._initBody(e)}b.prototype.clone=function(){return new b(this,{body:this._bodyInit})},v.call(b.prototype),v.call(A.prototype),A.prototype.clone=function(){return new A(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new f(this.headers),url:this.url})},A.error=function(){var e=new A(null,{status:0,statusText:""});return e.type="error",e};var _=[301,302,303,307,308];A.redirect=function(e,t){if(-1===_.indexOf(t))throw new RangeError("Invalid status code");return new A(null,{status:t,headers:{location:e}})},t.DOMException=e.DOMException;try{new t.DOMException}catch(e){t.DOMException=function(e,t){this.message=e,this.name=t;var n=Error(e);this.stack=n.stack},t.DOMException.prototype=Object.create(Error.prototype),t.DOMException.prototype.constructor=t.DOMException}function E(e,n){return new Promise((function(r,o){var a=new b(e,n);if(a.signal&&a.signal.aborted)return o(new t.DOMException("Aborted","AbortError"));var s=new XMLHttpRequest;function u(){s.abort()}s.onload=function(){var e,t,n={status:s.status,statusText:s.statusText,headers:(e=s.getAllResponseHeaders()||"",t=new f,e.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach((function(e){var n=e.split(":"),r=n.shift().trim();if(r){var i=n.join(":").trim();t.append(r,i)}})),t)};n.url="responseURL"in s?s.responseURL:n.headers.get("X-Request-URL");var i="response"in s?s.response:s.responseText;r(new A(i,n))},s.onerror=function(){o(new TypeError("Network request failed"))},s.ontimeout=function(){o(new TypeError("Network request failed"))},s.onabort=function(){o(new t.DOMException("Aborted","AbortError"))},s.open(a.method,a.url,!0),"include"===a.credentials?s.withCredentials=!0:"omit"===a.credentials&&(s.withCredentials=!1),"responseType"in s&&i&&(s.responseType="blob"),a.headers.forEach((function(e,t){s.setRequestHeader(t,e)})),a.signal&&(a.signal.addEventListener("abort",u),s.onreadystatechange=function(){4===s.readyState&&a.signal.removeEventListener("abort",u)}),s.send(void 0===a._bodyInit?null:a._bodyInit)}))}E.polyfill=!0,e.fetch||(e.fetch=E,e.Headers=f,e.Request=b,e.Response=A),t.Headers=f,t.Request=b,t.Response=A,t.fetch=E,Object.defineProperty(t,"__esModule",{value:!0})}({})}(i),i.fetch.ponyfill=!0,delete i.fetch.polyfill;var o=i;(t=o.fetch).default=o.fetch,t.fetch=o.fetch,t.Headers=o.Headers,t.Request=o.Request,t.Response=o.Response,e.exports=t}(a,a.exports);var s=i(a.exports);function u(){throw new Error("setTimeout has not been defined")}function l(){throw new Error("clearTimeout has not been defined")}var c=u,d=l;function f(e){if(c===setTimeout)return setTimeout(e,0);if((c===u||!c)&&setTimeout)return c=setTimeout,setTimeout(e,0);try{return c(e,0)}catch(t){try{return c.call(null,e,0)}catch(t){return c.call(this,e,0)}}}"function"==typeof t.setTimeout&&(c=setTimeout),"function"==typeof t.clearTimeout&&(d=clearTimeout);var h,p=[],m=!1,g=-1;function v(){m&&h&&(m=!1,h.length?p=h.concat(p):g=-1,p.length&&y())}function y(){if(!m){var e=f(v);m=!0;for(var t=p.length;t;){for(h=p,p=[];++g1)for(var n=1;n0;)if(o===e[a])return r;i(t)}}Object.assign(p.prototype,{subscribe:function(e,t,n){var r=this,i=this._target,o=this._emitter,a=this._listeners,s=function(){var r=f.apply(null,arguments),a={data:r,name:t,original:e};n?!1!==n.call(i,a)&&o.emit.apply(o,[a.name].concat(r)):o.emit.apply(o,[t].concat(r))};if(a[e])throw Error("Event '"+e+"' is already listening");this._listenersCount++,o._newListener&&o._removeListener&&!r._onNewListener?(this._onNewListener=function(n){n===t&&null===a[e]&&(a[e]=s,r._on.call(i,e,s))},o.on("newListener",this._onNewListener),this._onRemoveListener=function(n){n===t&&!o.hasListeners(n)&&a[e]&&(a[e]=null,r._off.call(i,e,s))},a[e]=null,o.on("removeListener",this._onRemoveListener)):(a[e]=s,r._on.call(i,e,s))},unsubscribe:function(e){var t,n,r,i=this,o=this._listeners,a=this._emitter,s=this._off,l=this._target;if(e&&"string"!=typeof e)throw TypeError("event must be a string");function c(){i._onNewListener&&(a.off("newListener",i._onNewListener),a.off("removeListener",i._onRemoveListener),i._onNewListener=null,i._onRemoveListener=null);var e=_.call(a,i);a._observers.splice(e,1)}if(e){if(!(t=o[e]))return;s.call(l,e,t),delete o[e],--this._listenersCount||c()}else{for(r=(n=u(o)).length;r-- >0;)e=n[r],s.call(l,e,o[e]);this._listeners={},this._listenersCount=0,c()}}});var y=v(["function"]),w=v(["object","function"]);function A(e,t,n){var r,i,o,a=0,s=new e((function(u,l,c){function d(){i&&(i=null),a&&(clearTimeout(a),a=0)}n=m(n,{timeout:0,overload:!1},{timeout:function(e,t){return("number"!=typeof(e*=1)||e<0||!Number.isFinite(e))&&t("timeout must be a positive number"),e}}),r=!n.overload&&"function"==typeof e.prototype.cancel&&"function"==typeof c;var f=function(e){d(),u(e)},h=function(e){d(),l(e)};r?t(f,h,c):(i=[function(e){h(e||Error("canceled"))}],t(f,h,(function(e){if(o)throw Error("Unable to subscribe on cancel event asynchronously");if("function"!=typeof e)throw TypeError("onCancel callback must be a function");i.push(e)})),o=!0),n.timeout>0&&(a=setTimeout((function(){var e=Error("timeout");e.code="ETIMEDOUT",a=0,s.cancel(e),l(e)}),n.timeout))}));return r||(s.cancel=function(e){if(i){for(var t=i.length,n=1;n0;)"_listeners"!==(h=y[s])&&(b=E(e,t,n[h],r+1,i))&&(w?w.push.apply(w,b):w=b);return w}if("**"===A){for((v=r+1===i||r+2===i&&"*"===_)&&n._listeners&&(w=E(e,t,n,i,i)),s=(y=u(n)).length;s-- >0;)"_listeners"!==(h=y[s])&&("*"===h||"**"===h?(n[h]._listeners&&!v&&(b=E(e,t,n[h],i,i))&&(w?w.push.apply(w,b):w=b),b=E(e,t,n[h],r,i)):b=E(e,t,n[h],h===_?r+2:r,i),b&&(w?w.push.apply(w,b):w=b));return w}n[A]&&(w=E(e,t,n[A],r+1,i))}if((p=n["*"])&&E(e,t,p,r+1,i),m=n["**"])if(r0;)"_listeners"!==(h=y[s])&&(h===_?E(e,t,m[h],r+2,i):h===A?E(e,t,m[h],r+1,i):((g={})[h]=m[h],E(e,t,{"**":g},r+1,i)));else m._listeners?E(e,t,m,i,i):m["*"]&&m["*"]._listeners&&E(e,t,m["*"],i,i);return w}function S(e,t,n){var r,i,o=0,a=0,s=this.delimiter,u=s.length;if("string"==typeof e)if(-1!==(r=e.indexOf(s))){i=new Array(5);do{i[o++]=e.slice(a,r),a=r+u}while(-1!==(r=e.indexOf(s,a)));i[o++]=e.slice(a)}else i=[e],o=1;else i=e,o=e.length;if(o>1)for(r=0;r+10&&c._listeners.length>this._maxListeners&&(c._listeners.warned=!0,d.call(this,c._listeners.length,l))):c._listeners=t,!0;return!0}function k(e,t,n,r){for(var i,o,a,s,l=u(e),c=l.length,d=e._listeners;c-- >0;)i=e[o=l[c]],a="_listeners"===o?n:n?n.concat(o):[o],s=r||"symbol"==typeof o,d&&t.push(s?a:a.join(this.delimiter)),"object"==typeof i&&k.call(this,i,t,a,s);return t}function M(e){for(var t,n,r,i=u(e),o=i.length;o-- >0;)(t=e[n=i[o]])&&(r=!0,"_listeners"===n||M(t)||delete e[n]);return r}function C(e,t,n){this.emitter=e,this.event=t,this.listener=n}function x(e,n,r){if(!0===r)a=!0;else if(!1===r)o=!0;else{if(!r||"object"!=typeof r)throw TypeError("options should be an object or true");var o=r.async,a=r.promisify,u=r.nextTick,l=r.objectify}if(o||u||a){var c=n,d=n._origin||n;if(u&&!i)throw Error("process.nextTick is not supported");a===t&&(a="AsyncFunction"===n.constructor.name),n=function(){var e=arguments,t=this,n=this.event;return a?u?Promise.resolve():new Promise((function(e){s(e)})).then((function(){return t.event=n,c.apply(t,e)})):(u?b:s)((function(){t.event=n,c.apply(t,e)}))},n._async=!0,n._origin=d}return[n,l?new C(this,e,n):this]}function R(e){this._events={},this._newListener=!1,this._removeListener=!1,this.verboseMemoryLeak=!1,c.call(this,e)}C.prototype.off=function(){return this.emitter.off(this.event,this.listener),this},R.EventEmitter2=R,R.prototype.listenTo=function(e,n,i){if("object"!=typeof e)throw TypeError("target musts be an object");var o=this;function a(t){if("object"!=typeof t)throw TypeError("events must be an object");var n,r=i.reducers,a=_.call(o,e);n=-1===a?new p(o,e,i):o._observers[a];for(var s,l=u(t),c=l.length,d="function"==typeof r,f=0;f0;)r=n[i],e&&r._target!==e||(r.unsubscribe(t),o=!0);return o},R.prototype.delimiter=".",R.prototype.setMaxListeners=function(e){e!==t&&(this._maxListeners=e,this._conf||(this._conf={}),this._conf.maxListeners=e)},R.prototype.getMaxListeners=function(){return this._maxListeners},R.prototype.event="",R.prototype.once=function(e,t,n){return this._once(e,t,!1,n)},R.prototype.prependOnceListener=function(e,t,n){return this._once(e,t,!0,n)},R.prototype._once=function(e,t,n,r){return this._many(e,1,t,n,r)},R.prototype.many=function(e,t,n,r){return this._many(e,t,n,!1,r)},R.prototype.prependMany=function(e,t,n,r){return this._many(e,t,n,!0,r)},R.prototype._many=function(e,t,n,r,i){var o=this;if("function"!=typeof n)throw new Error("many only accepts instances of Function");function a(){return 0==--t&&o.off(e,a),n.apply(this,arguments)}return a._origin=n,this._on(e,a,r,i)},R.prototype.emit=function(){if(!this._events&&!this._all)return!1;this._events||l.call(this);var e,t,n,r,i,a,s=arguments[0],u=this.wildcard;if("newListener"===s&&!this._newListener&&!this._events.newListener)return!1;if(u&&(e=s,"newListener"!==s&&"removeListener"!==s&&"object"==typeof s)){if(n=s.length,o)for(r=0;r3)for(t=new Array(d-1),i=1;i3)for(n=new Array(f-1),a=1;a0&&this._events[e].length>this._maxListeners&&(this._events[e].warned=!0,d.call(this,this._events[e].length,e))):this._events[e]=n,a)},R.prototype.off=function(e,t){if("function"!=typeof t)throw new Error("removeListener only takes instances of Function");var n,i=[];if(this.wildcard){var o="string"==typeof e?e.split(this.delimiter):e.slice();if(!(i=E.call(this,null,o,this.listenerTree,0)))return this}else{if(!this._events[e])return this;n=this._events[e],i.push({_listeners:n})}for(var a=0;a0){for(n=0,r=(t=this._all).length;n0;)"function"==typeof(r=s[n[o]])?i.push(r):i.push.apply(i,r);return i}if(this.wildcard){if(!(a=this.listenerTree))return[];var l=[],c="string"==typeof e?e.split(this.delimiter):e.slice();return E.call(this,l,c,a,0),l}return s&&(r=s[e])?"function"==typeof r?[r]:r:[]},R.prototype.eventNames=function(e){var t=this._events;return this.wildcard?k.call(this,this.listenerTree,[],null,e):t?u(t):[]},R.prototype.listenerCount=function(e){return this.listeners(e).length},R.prototype.hasListeners=function(e){if(this.wildcard){var n=[],r="string"==typeof e?e.split(this.delimiter):e.slice();return E.call(this,n,r,this.listenerTree,0),n.length>0}var i=this._events,o=this._all;return!!(o&&o.length||i&&(e===t?u(i).length:i[e]))},R.prototype.listenersAny=function(){return this._all?this._all:[]},R.prototype.waitFor=function(e,n){var r=this,i=typeof n;return"number"===i?n={timeout:n}:"function"===i&&(n={filter:n}),A((n=m(n,{timeout:0,filter:t,handleError:!1,Promise,overload:!1},{filter:y,Promise:g})).Promise,(function(t,i,o){function a(){var o=n.filter;if(!o||o.apply(r,arguments))if(r.off(e,a),n.handleError){var s=arguments[0];s?i(s):t(f.apply(null,arguments).slice(1))}else t(f.apply(null,arguments))}o((function(){r.off(e,a)})),r._on(e,a,!1)}),{timeout:n.timeout,overload:n.overload})};var O=R.prototype;Object.defineProperties(R,{defaultMaxListeners:{get:function(){return O._maxListeners},set:function(e){if("number"!=typeof e||e<0||Number.isNaN(e))throw TypeError("n must be a non-negative number");O._maxListeners=e},enumerable:!0},once:{value:function(e,t,n){return A((n=m(n,{Promise,timeout:0,overload:!1},{Promise:g})).Promise,(function(n,r,i){var o;if("function"==typeof e.addEventListener)return o=function(){n(f.apply(null,arguments))},i((function(){e.removeEventListener(t,o)})),void e.addEventListener(t,o,{once:!0});var a,s=function(){a&&e.removeListener("error",a),n(f.apply(null,arguments))};"error"!==t&&(a=function(n){e.removeListener(t,s),r(n)},e.once("error",a)),i((function(){a&&e.removeListener("error",a),e.removeListener(t,s)})),e.once(t,s)}),{timeout:n.timeout,overload:n.overload})},writable:!0,configurable:!0}}),Object.defineProperties(O,{_maxListeners:{value:10,writable:!0,configurable:!0},_observers:{value:null,writable:!0,configurable:!0}}),"function"==typeof t&&t.amd?t((function(){return R})):e.exports=R}()}(L);var I,N=L.exports,D=new Uint8Array(16);function B(){if(!I&&!(I="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return I(D)}var j=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function U(e){return"string"==typeof e&&j.test(e)}for(var z=[],F=0;F<256;++F)z.push((F+256).toString(16).substr(1));function q(e,t,n){var r=(e=e||{}).random||(e.rng||B)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t){n=n||0;for(var i=0;i<16;++i)t[n+i]=r[i];return t}return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=(z[e[t+0]]+z[e[t+1]]+z[e[t+2]]+z[e[t+3]]+"-"+z[e[t+4]]+z[e[t+5]]+"-"+z[e[t+6]]+z[e[t+7]]+"-"+z[e[t+8]]+z[e[t+9]]+"-"+z[e[t+10]]+z[e[t+11]]+z[e[t+12]]+z[e[t+13]]+z[e[t+14]]+z[e[t+15]]).toLowerCase();if(!U(n))throw TypeError("Stringified UUID is invalid");return n}(r)}const W=Object.create(null);W.open="0",W.close="1",W.ping="2",W.pong="3",W.message="4",W.upgrade="5",W.noop="6";const V=Object.create(null);Object.keys(W).forEach((e=>{V[W[e]]=e}));const K={type:"error",data:"parser error"},H="function"==typeof Blob||"undefined"!=typeof Blob&&"[object BlobConstructor]"===Object.prototype.toString.call(Blob),$="function"==typeof ArrayBuffer,Y=e=>"function"==typeof ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer instanceof ArrayBuffer,G=({type:e,data:t},n,r)=>H&&t instanceof Blob?n?r(t):Q(t,r):$&&(t instanceof ArrayBuffer||Y(t))?n?r(t):Q(new Blob([t]),r):r(W[e]+(t||"")),Q=(e,t)=>{const n=new FileReader;return n.onload=function(){const e=n.result.split(",")[1];t("b"+(e||""))},n.readAsDataURL(e)};function Z(e){return e instanceof Uint8Array?e:e instanceof ArrayBuffer?new Uint8Array(e):new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}let X;function J(e,t){return H&&e.data instanceof Blob?e.data.arrayBuffer().then(Z).then(t):$&&(e.data instanceof ArrayBuffer||Y(e.data))?t(Z(e.data)):void G(e,!1,(e=>{X||(X=new TextEncoder),t(X.encode(e))}))}const ee="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",te="undefined"==typeof Uint8Array?[]:new Uint8Array(256);for(let n=0;n<64;n++)te[ee.charCodeAt(n)]=n;const ne="function"==typeof ArrayBuffer,re=(e,t)=>{if("string"!=typeof e)return{type:"message",data:oe(e,t)};const n=e.charAt(0);return"b"===n?{type:"message",data:ie(e.substring(1),t)}:V[n]?e.length>1?{type:V[n],data:e.substring(1)}:{type:V[n]}:K},ie=(e,t)=>{if(ne){const n=(e=>{let t,n,r,i,o,a=.75*e.length,s=e.length,u=0;"="===e[e.length-1]&&(a--,"="===e[e.length-2]&&a--);const l=new ArrayBuffer(a),c=new Uint8Array(l);for(t=0;t>4,c[u++]=(15&r)<<4|i>>2,c[u++]=(3&i)<<6|63&o;return l})(e);return oe(n,t)}return{base64:!0,data:e}},oe=(e,t)=>"blob"===t?e instanceof Blob?e:new Blob([e]):e instanceof ArrayBuffer?e:e.buffer,ae=String.fromCharCode(30);let se;function ue(e){if(e)return function(e){for(var t in ue.prototype)e[t]=ue.prototype[t];return e}(e)}ue.prototype.on=ue.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this},ue.prototype.once=function(e,t){function n(){this.off(e,n),t.apply(this,arguments)}return n.fn=t,this.on(e,n),this},ue.prototype.off=ue.prototype.removeListener=ue.prototype.removeAllListeners=ue.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var n,r=this._callbacks["$"+e];if(!r)return this;if(1==arguments.length)return delete this._callbacks["$"+e],this;for(var i=0;i(e.hasOwnProperty(n)&&(t[n]=e[n]),t)),{})}const de=le.setTimeout,fe=le.clearTimeout;function he(e,t){t.useNativeTimers?(e.setTimeoutFn=de.bind(le),e.clearTimeoutFn=fe.bind(le)):(e.setTimeoutFn=le.setTimeout.bind(le),e.clearTimeoutFn=le.clearTimeout.bind(le))}class pe extends Error{constructor(e,t,n){super(e),this.description=t,this.context=n,this.type="TransportError"}}class me extends ue{constructor(e){super(),this.writable=!1,he(this,e),this.opts=e,this.query=e.query,this.socket=e.socket}onError(e,t,n){return super.emitReserved("error",new pe(e,t,n)),this}open(){return this.readyState="opening",this.doOpen(),this}close(){return"opening"!==this.readyState&&"open"!==this.readyState||(this.doClose(),this.onClose()),this}send(e){"open"===this.readyState&&this.write(e)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(e){const t=re(e,this.socket.binaryType);this.onPacket(t)}onPacket(e){super.emitReserved("packet",e)}onClose(e){this.readyState="closed",super.emitReserved("close",e)}pause(e){}createUri(e,t={}){return e+"://"+this._hostname()+this._port()+this.opts.path+this._query(t)}_hostname(){const e=this.opts.hostname;return-1===e.indexOf(":")?e:"["+e+"]"}_port(){return this.opts.port&&(this.opts.secure&&Number(443!==this.opts.port)||!this.opts.secure&&80!==Number(this.opts.port))?":"+this.opts.port:""}_query(e){const t=function(e){let t="";for(let n in e)e.hasOwnProperty(n)&&(t.length&&(t+="&"),t+=encodeURIComponent(n)+"="+encodeURIComponent(e[n]));return t}(e);return t.length?"?"+t:""}}const ge="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_".split(""),ve=64,ye={};let be,we=0,Ae=0;function _e(e){let t="";do{t=ge[e%ve]+t,e=Math.floor(e/ve)}while(e>0);return t}function Ee(){const e=_e(+new Date);return e!==be?(we=0,be=e):e+"."+_e(we++)}for(;Ae{var e;3===n.readyState&&(null===(e=this.opts.cookieJar)||void 0===e||e.parseCookies(n)),4===n.readyState&&(200===n.status||1223===n.status?this.onLoad():this.setTimeoutFn((()=>{this.onError("number"==typeof n.status?n.status:0)}),0))},n.send(this.data)}catch(e){return void this.setTimeoutFn((()=>{this.onError(e)}),0)}"undefined"!=typeof document&&(this.index=Re.requestsCount++,Re.requests[this.index]=this)}onError(e){this.emitReserved("error",e,this.xhr),this.cleanup(!0)}cleanup(e){if(void 0!==this.xhr&&null!==this.xhr){if(this.xhr.onreadystatechange=Ce,e)try{this.xhr.abort()}catch(e){}"undefined"!=typeof document&&delete Re.requests[this.index],this.xhr=null}}onLoad(){const e=this.xhr.responseText;null!==e&&(this.emitReserved("data",e),this.emitReserved("success"),this.cleanup())}abort(){this.cleanup()}}function Oe(){for(let e in Re.requests)Re.requests.hasOwnProperty(e)&&Re.requests[e].abort()}Re.requestsCount=0,Re.requests={},"undefined"!=typeof document&&("function"==typeof attachEvent?attachEvent("onunload",Oe):"function"==typeof addEventListener&&addEventListener("onpagehide"in le?"pagehide":"unload",Oe,!1));var Te=[],Pe=[],Le="undefined"!=typeof Uint8Array?Uint8Array:Array,Ie=!1;function Ne(){Ie=!0;for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t=0;t<64;++t)Te[t]=e[t],Pe[e.charCodeAt(t)]=t;Pe["-".charCodeAt(0)]=62,Pe["_".charCodeAt(0)]=63}function De(e,t,n){for(var r,i,o=[],a=t;a>18&63]+Te[i>>12&63]+Te[i>>6&63]+Te[63&i]);return o.join("")}function Be(e){var t;Ie||Ne();for(var n=e.length,r=n%3,i="",o=[],a=16383,s=0,u=n-r;su?u:s+a));return 1===r?(t=e[n-1],i+=Te[t>>2],i+=Te[t<<4&63],i+="=="):2===r&&(t=(e[n-2]<<8)+e[n-1],i+=Te[t>>10],i+=Te[t>>4&63],i+=Te[t<<2&63],i+="="),o.push(i),o.join("")}function je(e,t,n,r,i){var o,a,s=8*i-r-1,u=(1<>1,c=-7,d=n?i-1:0,f=n?-1:1,h=e[t+d];for(d+=f,o=h&(1<<-c)-1,h>>=-c,c+=s;c>0;o=256*o+e[t+d],d+=f,c-=8);for(a=o&(1<<-c)-1,o>>=-c,c+=r;c>0;a=256*a+e[t+d],d+=f,c-=8);if(0===o)o=1-l;else{if(o===u)return a?NaN:1/0*(h?-1:1);a+=Math.pow(2,r),o-=l}return(h?-1:1)*a*Math.pow(2,o-r)}function Ue(e,t,n,r,i,o){var a,s,u,l=8*o-i-1,c=(1<>1,f=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,h=r?0:o-1,p=r?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=c):(a=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-a))<1&&(a--,u*=2),(t+=a+d>=1?f/u:f*Math.pow(2,1-d))*u>=2&&(a++,u/=2),a+d>=c?(s=0,a=c):a+d>=1?(s=(t*u-1)*Math.pow(2,i),a+=d):(s=t*Math.pow(2,d-1)*Math.pow(2,i),a=0));i>=8;e[n+h]=255&s,h+=p,s/=256,i-=8);for(a=a<0;e[n+h]=255&a,h+=p,a/=256,l-=8);e[n+h-p]|=128*m}var ze={}.toString,Fe=Array.isArray||function(e){return"[object Array]"==ze.call(e)};Ke.TYPED_ARRAY_SUPPORT=void 0===t.TYPED_ARRAY_SUPPORT||t.TYPED_ARRAY_SUPPORT;var qe=We();function We(){return Ke.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function Ve(e,t){if(We()=We())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+We().toString(16)+" bytes");return 0|e}function Ze(e){return!(null==e||!e._isBuffer)}function Xe(e,t){if(Ze(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var r=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return kt(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return Mt(e).length;default:if(r)return kt(e).length;t=(""+t).toLowerCase(),r=!0}}function Je(e,t,n){var r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return pt(this,t,n);case"utf8":case"utf-8":return ct(this,t,n);case"ascii":return ft(this,t,n);case"latin1":case"binary":return ht(this,t,n);case"base64":return lt(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return mt(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function et(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function tt(e,t,n,r,i){if(0===e.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return-1;n=e.length-1}else if(n<0){if(!i)return-1;n=0}if("string"==typeof t&&(t=Ke.from(t,r)),Ze(t))return 0===t.length?-1:nt(e,t,n,r,i);if("number"==typeof t)return t&=255,Ke.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):nt(e,[t],n,r,i);throw new TypeError("val must be string, number or Buffer")}function nt(e,t,n,r,i){var o,a=1,s=e.length,u=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;a=2,s/=2,u/=2,n/=2}function l(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(i){var c=-1;for(o=n;os&&(n=s-u),o=n;o>=0;o--){for(var d=!0,f=0;fi&&(r=i):r=i;var o=t.length;if(o%2!=0)throw new TypeError("Invalid hex string");r>o/2&&(r=o/2);for(var a=0;a>8,i=n%256,o.push(i),o.push(r);return o}(t,e.length-n),e,n,r)}function lt(e,t,n){return 0===t&&n===e.length?Be(e):Be(e.slice(t,n))}function ct(e,t,n){n=Math.min(e.length,n);for(var r=[],i=t;i239?4:l>223?3:l>191?2:1;if(i+d<=n)switch(d){case 1:l<128&&(c=l);break;case 2:128==(192&(o=e[i+1]))&&(u=(31&l)<<6|63&o)>127&&(c=u);break;case 3:o=e[i+1],a=e[i+2],128==(192&o)&&128==(192&a)&&(u=(15&l)<<12|(63&o)<<6|63&a)>2047&&(u<55296||u>57343)&&(c=u);break;case 4:o=e[i+1],a=e[i+2],s=e[i+3],128==(192&o)&&128==(192&a)&&128==(192&s)&&(u=(15&l)<<18|(63&o)<<12|(63&a)<<6|63&s)>65535&&u<1114112&&(c=u)}null===c?(c=65533,d=1):c>65535&&(c-=65536,r.push(c>>>10&1023|55296),c=56320|1023&c),r.push(c),i+=d}return function(e){var t=e.length;if(t<=dt)return String.fromCharCode.apply(String,e);for(var n="",r=0;r0&&(e=this.toString("hex",0,50).match(/.{2}/g).join(" "),this.length>50&&(e+=" ... ")),""},Ke.prototype.compare=function(e,t,n,r,i){if(!Ze(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&t>=n)return 0;if(r>=i)return-1;if(t>=n)return 1;if(this===e)return 0;for(var o=(i>>>=0)-(r>>>=0),a=(n>>>=0)-(t>>>=0),s=Math.min(o,a),u=this.slice(r,i),l=e.slice(t,n),c=0;ci)&&(n=i),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var o=!1;;)switch(r){case"hex":return rt(this,e,t,n);case"utf8":case"utf-8":return it(this,e,t,n);case"ascii":return ot(this,e,t,n);case"latin1":case"binary":return at(this,e,t,n);case"base64":return st(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ut(this,e,t,n);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!0}},Ke.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var dt=4096;function ft(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;ir)&&(n=r);for(var i="",o=t;on)throw new RangeError("Trying to access beyond buffer length")}function vt(e,t,n,r,i,o){if(!Ze(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||te.length)throw new RangeError("Index out of range")}function yt(e,t,n,r){t<0&&(t=65535+t+1);for(var i=0,o=Math.min(e.length-n,2);i>>8*(r?i:1-i)}function bt(e,t,n,r){t<0&&(t=4294967295+t+1);for(var i=0,o=Math.min(e.length-n,4);i>>8*(r?i:3-i)&255}function wt(e,t,n,r,i,o){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function At(e,t,n,r,i){return i||wt(e,0,n,4),Ue(e,t,n,r,23,4),n+4}function _t(e,t,n,r,i){return i||wt(e,0,n,8),Ue(e,t,n,r,52,8),n+8}Ke.prototype.slice=function(e,t){var n,r=this.length;if((e=~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),t0&&(i*=256);)r+=this[e+--t]*i;return r},Ke.prototype.readUInt8=function(e,t){return t||gt(e,1,this.length),this[e]},Ke.prototype.readUInt16LE=function(e,t){return t||gt(e,2,this.length),this[e]|this[e+1]<<8},Ke.prototype.readUInt16BE=function(e,t){return t||gt(e,2,this.length),this[e]<<8|this[e+1]},Ke.prototype.readUInt32LE=function(e,t){return t||gt(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},Ke.prototype.readUInt32BE=function(e,t){return t||gt(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},Ke.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||gt(e,t,this.length);for(var r=this[e],i=1,o=0;++o=(i*=128)&&(r-=Math.pow(2,8*t)),r},Ke.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||gt(e,t,this.length);for(var r=t,i=1,o=this[e+--r];r>0&&(i*=256);)o+=this[e+--r]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*t)),o},Ke.prototype.readInt8=function(e,t){return t||gt(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},Ke.prototype.readInt16LE=function(e,t){t||gt(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},Ke.prototype.readInt16BE=function(e,t){t||gt(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},Ke.prototype.readInt32LE=function(e,t){return t||gt(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},Ke.prototype.readInt32BE=function(e,t){return t||gt(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},Ke.prototype.readFloatLE=function(e,t){return t||gt(e,4,this.length),je(this,e,!0,23,4)},Ke.prototype.readFloatBE=function(e,t){return t||gt(e,4,this.length),je(this,e,!1,23,4)},Ke.prototype.readDoubleLE=function(e,t){return t||gt(e,8,this.length),je(this,e,!0,52,8)},Ke.prototype.readDoubleBE=function(e,t){return t||gt(e,8,this.length),je(this,e,!1,52,8)},Ke.prototype.writeUIntLE=function(e,t,n,r){e=+e,t|=0,n|=0,r||vt(this,e,t,n,Math.pow(2,8*n)-1,0);var i=1,o=0;for(this[t]=255&e;++o=0&&(o*=256);)this[t+i]=e/o&255;return t+n},Ke.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||vt(this,e,t,1,255,0),Ke.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},Ke.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||vt(this,e,t,2,65535,0),Ke.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):yt(this,e,t,!0),t+2},Ke.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||vt(this,e,t,2,65535,0),Ke.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):yt(this,e,t,!1),t+2},Ke.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||vt(this,e,t,4,4294967295,0),Ke.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):bt(this,e,t,!0),t+4},Ke.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||vt(this,e,t,4,4294967295,0),Ke.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):bt(this,e,t,!1),t+4},Ke.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);vt(this,e,t,n,i-1,-i)}var o=0,a=1,s=0;for(this[t]=255&e;++o>0)-s&255;return t+n},Ke.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);vt(this,e,t,n,i-1,-i)}var o=n-1,a=1,s=0;for(this[t+o]=255&e;--o>=0&&(a*=256);)e<0&&0===s&&0!==this[t+o+1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+n},Ke.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||vt(this,e,t,1,127,-128),Ke.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},Ke.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||vt(this,e,t,2,32767,-32768),Ke.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):yt(this,e,t,!0),t+2},Ke.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||vt(this,e,t,2,32767,-32768),Ke.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):yt(this,e,t,!1),t+2},Ke.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||vt(this,e,t,4,2147483647,-2147483648),Ke.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):bt(this,e,t,!0),t+4},Ke.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||vt(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),Ke.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):bt(this,e,t,!1),t+4},Ke.prototype.writeFloatLE=function(e,t,n){return At(this,e,t,!0,n)},Ke.prototype.writeFloatBE=function(e,t,n){return At(this,e,t,!1,n)},Ke.prototype.writeDoubleLE=function(e,t,n){return _t(this,e,t,!0,n)},Ke.prototype.writeDoubleBE=function(e,t,n){return _t(this,e,t,!1,n)},Ke.prototype.copy=function(e,t,n,r){if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t=0;--i)e[i+t]=this[i+n];else if(o<1e3||!Ke.TYPED_ARRAY_SUPPORT)for(i=0;i>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(o=t;o55295&&n<57344){if(!i){if(n>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(a+1===r){(t-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&o.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,n<128){if((t-=1)<0)break;o.push(n)}else if(n<2048){if((t-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function Mt(e){return function(e){var t,n,r,i,o,a;Ie||Ne();var s=e.length;if(s%4>0)throw new Error("Invalid string. Length must be a multiple of 4");o="="===e[s-2]?2:"="===e[s-1]?1:0,a=new Le(3*s/4-o),r=o>0?s-4:s;var u=0;for(t=0,n=0;t>16&255,a[u++]=i>>8&255,a[u++]=255&i;return 2===o?(i=Pe[e.charCodeAt(t)]<<2|Pe[e.charCodeAt(t+1)]>>4,a[u++]=255&i):1===o&&(i=Pe[e.charCodeAt(t)]<<10|Pe[e.charCodeAt(t+1)]<<4|Pe[e.charCodeAt(t+2)]>>2,a[u++]=i>>8&255,a[u++]=255&i),a}(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(Et,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function Ct(e,t,n,r){for(var i=0;i=t.length||i>=e.length);++i)t[i+n]=e[i];return i}function xt(e){return null!=e&&(!!e._isBuffer||Rt(e)||function(e){return"function"==typeof e.readFloatLE&&"function"==typeof e.slice&&Rt(e.slice(0,0))}(e))}function Rt(e){return!!e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}var Ot=Object.freeze({__proto__:null,Buffer:Ke,INSPECT_MAX_BYTES:50,SlowBuffer:function(e){return+e!=e&&(e=0),Ke.alloc(+e)},isBuffer:xt,kMaxLength:qe});const Tt="function"==typeof Promise&&"function"==typeof Promise.resolve?e=>Promise.resolve().then(e):(e,t)=>t(e,0),Pt=le.WebSocket||le.MozWebSocket,Lt="undefined"!=typeof navigator&&"string"==typeof navigator.product&&"reactnative"===navigator.product.toLowerCase();function It(e,t){return"message"===e.type&&"string"!=typeof e.data&&t[0]>=48&&t[0]<=54}const Nt={websocket:class extends me{constructor(e){super(e),this.supportsBinary=!e.forceBase64}get name(){return"websocket"}doOpen(){if(!this.check())return;const e=this.uri(),t=this.opts.protocols,n=Lt?{}:ce(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(n.headers=this.opts.extraHeaders);try{this.ws=Lt?new Pt(e,t,n):t?new Pt(e,t):new Pt(e)}catch(e){return this.emitReserved("error",e)}this.ws.binaryType=this.socket.binaryType||"arraybuffer",this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=e=>this.onClose({description:"websocket connection closed",context:e}),this.ws.onmessage=e=>this.onData(e.data),this.ws.onerror=e=>this.onError("websocket error",e)}write(e){this.writable=!1;for(let t=0;t{try{this.ws.send(e)}catch(e){}r&&Tt((()=>{this.writable=!0,this.emitReserved("drain")}),this.setTimeoutFn)}))}}doClose(){void 0!==this.ws&&(this.ws.close(),this.ws=null)}uri(){const e=this.opts.secure?"wss":"ws",t=this.query||{};return this.opts.timestampRequests&&(t[this.opts.timestampParam]=Ee()),this.supportsBinary||(t.b64=1),this.createUri(e,t)}check(){return!!Pt}},webtransport:class extends me{get name(){return"webtransport"}doOpen(){"function"==typeof WebTransport&&(this.transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name]),this.transport.closed.then((()=>{this.onClose()})).catch((e=>{this.onError("webtransport error",e)})),this.transport.ready.then((()=>{this.transport.createBidirectionalStream().then((e=>{const t=e.readable.getReader();let n;this.writer=e.writable.getWriter();const r=()=>{t.read().then((({done:e,value:t})=>{e||(n||1!==t.byteLength||54!==t[0]?(this.onPacket(function(e,t,n){se||(se=new TextDecoder);const r=t||e[0]<48||e[0]>54;return re(r?e:se.decode(e),n)}(t,n,"arraybuffer")),n=!1):n=!0,r())})).catch((e=>{}))};r();const i=this.query.sid?`0{"sid":"${this.query.sid}"}`:"0";this.writer.write((new TextEncoder).encode(i)).then((()=>this.onOpen()))}))})))}write(e){this.writable=!1;for(let t=0;t{It(n,e)&&this.writer.write(Uint8Array.of(54)),this.writer.write(e).then((()=>{r&&Tt((()=>{this.writable=!0,this.emitReserved("drain")}),this.setTimeoutFn)}))}))}}doClose(){var e;null===(e=this.transport)||void 0===e||e.close()}},polling:class extends me{constructor(e){if(super(e),this.polling=!1,"undefined"!=typeof location){const t="https:"===location.protocol;let n=location.port;n||(n=t?"443":"80"),this.xd="undefined"!=typeof location&&e.hostname!==location.hostname||n!==e.port}const t=e&&e.forceBase64;this.supportsBinary=xe&&!t,this.opts.withCredentials&&(this.cookieJar=void 0)}get name(){return"polling"}doOpen(){this.poll()}pause(e){this.readyState="pausing";const t=()=>{this.readyState="paused",e()};if(this.polling||!this.writable){let e=0;this.polling&&(e++,this.once("pollComplete",(function(){--e||t()}))),this.writable||(e++,this.once("drain",(function(){--e||t()})))}else t()}poll(){this.polling=!0,this.doPoll(),this.emitReserved("poll")}onData(e){((e,t)=>{const n=e.split(ae),r=[];for(let i=0;i{if("opening"===this.readyState&&"open"===e.type&&this.onOpen(),"close"===e.type)return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(e)})),"closed"!==this.readyState&&(this.polling=!1,this.emitReserved("pollComplete"),"open"===this.readyState&&this.poll())}doClose(){const e=()=>{this.write([{type:"close"}])};"open"===this.readyState?e():this.once("open",e)}write(e){this.writable=!1,((e,t)=>{const n=e.length,r=new Array(n);let i=0;e.forEach(((e,o)=>{G(e,!1,(e=>{r[o]=e,++i===n&&t(r.join(ae))}))}))})(e,(e=>{this.doWrite(e,(()=>{this.writable=!0,this.emitReserved("drain")}))}))}uri(){const e=this.opts.secure?"https":"http",t=this.query||{};return!1!==this.opts.timestampRequests&&(t[this.opts.timestampParam]=Ee()),this.supportsBinary||t.sid||(t.b64=1),this.createUri(e,t)}request(e={}){return Object.assign(e,{xd:this.xd,cookieJar:this.cookieJar},this.opts),new Re(this.uri(),e)}doWrite(e,t){const n=this.request({method:"POST",data:e});n.on("success",t),n.on("error",((e,t)=>{this.onError("xhr post error",e,t)}))}doPoll(){const e=this.request();e.on("data",this.onData.bind(this)),e.on("error",((e,t)=>{this.onError("xhr poll error",e,t)})),this.pollXhr=e}}},Dt=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,Bt=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function jt(e){const t=e,n=e.indexOf("["),r=e.indexOf("]");-1!=n&&-1!=r&&(e=e.substring(0,n)+e.substring(n,r).replace(/:/g,";")+e.substring(r,e.length));let i=Dt.exec(e||""),o={},a=14;for(;a--;)o[Bt[a]]=i[a]||"";return-1!=n&&-1!=r&&(o.source=t,o.host=o.host.substring(1,o.host.length-1).replace(/;/g,":"),o.authority=o.authority.replace("[","").replace("]","").replace(/;/g,":"),o.ipv6uri=!0),o.pathNames=function(e,t){const n=/\/{2,9}/g,r=t.replace(n,"/").split("/");return"/"!=t.slice(0,1)&&0!==t.length||r.splice(0,1),"/"==t.slice(-1)&&r.splice(r.length-1,1),r}(0,o.path),o.queryKey=function(e,t){const n={};return t.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,(function(e,t,r){t&&(n[t]=r)})),n}(0,o.query),o}let Ut=class e extends ue{constructor(e,t={}){super(),this.writeBuffer=[],e&&"object"==typeof e&&(t=e,e=null),e?(e=jt(e),t.hostname=e.host,t.secure="https"===e.protocol||"wss"===e.protocol,t.port=e.port,e.query&&(t.query=e.query)):t.host&&(t.hostname=jt(t.host).host),he(this,t),this.secure=null!=t.secure?t.secure:"undefined"!=typeof location&&"https:"===location.protocol,t.hostname&&!t.port&&(t.port=this.secure?"443":"80"),this.hostname=t.hostname||("undefined"!=typeof location?location.hostname:"localhost"),this.port=t.port||("undefined"!=typeof location&&location.port?location.port:this.secure?"443":"80"),this.transports=t.transports||["polling","websocket","webtransport"],this.writeBuffer=[],this.prevBufferLen=0,this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},t),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),"string"==typeof this.opts.query&&(this.opts.query=function(e){let t={},n=e.split("&");for(let r=0,i=n.length;r{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this.beforeunloadEventListener,!1)),"localhost"!==this.hostname&&(this.offlineEventListener=()=>{this.onClose("transport close",{description:"network connection lost"})},addEventListener("offline",this.offlineEventListener,!1))),this.open()}createTransport(e){const t=Object.assign({},this.opts.query);t.EIO=4,t.transport=e,this.id&&(t.sid=this.id);const n=Object.assign({},this.opts,{query:t,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[e]);return new Nt[e](n)}open(){let t;if(this.opts.rememberUpgrade&&e.priorWebsocketSuccess&&-1!==this.transports.indexOf("websocket"))t="websocket";else{if(0===this.transports.length)return void this.setTimeoutFn((()=>{this.emitReserved("error","No transports available")}),0);t=this.transports[0]}this.readyState="opening";try{t=this.createTransport(t)}catch(e){return this.transports.shift(),void this.open()}t.open(),this.setTransport(t)}setTransport(e){this.transport&&this.transport.removeAllListeners(),this.transport=e,e.on("drain",this.onDrain.bind(this)).on("packet",this.onPacket.bind(this)).on("error",this.onError.bind(this)).on("close",(e=>this.onClose("transport close",e)))}probe(t){let n=this.createTransport(t),r=!1;e.priorWebsocketSuccess=!1;const i=()=>{r||(n.send([{type:"ping",data:"probe"}]),n.once("packet",(t=>{if(!r)if("pong"===t.type&&"probe"===t.data){if(this.upgrading=!0,this.emitReserved("upgrading",n),!n)return;e.priorWebsocketSuccess="websocket"===n.name,this.transport.pause((()=>{r||"closed"!==this.readyState&&(c(),this.setTransport(n),n.send([{type:"upgrade"}]),this.emitReserved("upgrade",n),n=null,this.upgrading=!1,this.flush())}))}else{const e=new Error("probe error");e.transport=n.name,this.emitReserved("upgradeError",e)}})))};function o(){r||(r=!0,c(),n.close(),n=null)}const a=e=>{const t=new Error("probe error: "+e);t.transport=n.name,o(),this.emitReserved("upgradeError",t)};function s(){a("transport closed")}function u(){a("socket closed")}function l(e){n&&e.name!==n.name&&o()}const c=()=>{n.removeListener("open",i),n.removeListener("error",a),n.removeListener("close",s),this.off("close",u),this.off("upgrading",l)};n.once("open",i),n.once("error",a),n.once("close",s),this.once("close",u),this.once("upgrading",l),-1!==this.upgrades.indexOf("webtransport")&&"webtransport"!==t?this.setTimeoutFn((()=>{r||n.open()}),200):n.open()}onOpen(){if(this.readyState="open",e.priorWebsocketSuccess="websocket"===this.transport.name,this.emitReserved("open"),this.flush(),"open"===this.readyState&&this.opts.upgrade){let e=0;const t=this.upgrades.length;for(;e{this.onClose("ping timeout")}),this.pingInterval+this.pingTimeout),this.opts.autoUnref&&this.pingTimeoutTimer.unref()}onDrain(){this.writeBuffer.splice(0,this.prevBufferLen),this.prevBufferLen=0,0===this.writeBuffer.length?this.emitReserved("drain"):this.flush()}flush(){if("closed"!==this.readyState&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){const e=this.getWritablePackets();this.transport.send(e),this.prevBufferLen=e.length,this.emitReserved("flush")}}getWritablePackets(){if(!(this.maxPayload&&"polling"===this.transport.name&&this.writeBuffer.length>1))return this.writeBuffer;let e=1;for(let n=0;n=57344?n+=3:(r++,n+=4);return n}(t):Math.ceil(1.33*(t.byteLength||t.size))),n>0&&e>this.maxPayload)return this.writeBuffer.slice(0,n);e+=2}var t;return this.writeBuffer}write(e,t,n){return this.sendPacket("message",e,t,n),this}send(e,t,n){return this.sendPacket("message",e,t,n),this}sendPacket(e,t,n,r){if("function"==typeof t&&(r=t,t=void 0),"function"==typeof n&&(r=n,n=null),"closing"===this.readyState||"closed"===this.readyState)return;(n=n||{}).compress=!1!==n.compress;const i={type:e,data:t,options:n};this.emitReserved("packetCreate",i),this.writeBuffer.push(i),r&&this.once("flush",r),this.flush()}close(){const e=()=>{this.onClose("forced close"),this.transport.close()},t=()=>{this.off("upgrade",t),this.off("upgradeError",t),e()},n=()=>{this.once("upgrade",t),this.once("upgradeError",t)};return"opening"!==this.readyState&&"open"!==this.readyState||(this.readyState="closing",this.writeBuffer.length?this.once("drain",(()=>{this.upgrading?n():e()})):this.upgrading?n():e()),this}onError(t){e.priorWebsocketSuccess=!1,this.emitReserved("error",t),this.onClose("transport error",t)}onClose(e,t){"opening"!==this.readyState&&"open"!==this.readyState&&"closing"!==this.readyState||(this.clearTimeoutFn(this.pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),"function"==typeof removeEventListener&&(removeEventListener("beforeunload",this.beforeunloadEventListener,!1),removeEventListener("offline",this.offlineEventListener,!1)),this.readyState="closed",this.id=null,this.emitReserved("close",e,t),this.writeBuffer=[],this.prevBufferLen=0)}filterUpgrades(e){const t=[];let n=0;const r=e.length;for(;n"function"==typeof ArrayBuffer.isView?ArrayBuffer.isView(e):e.buffer instanceof ArrayBuffer,qt=Object.prototype.toString,Wt="function"==typeof Blob||"undefined"!=typeof Blob&&"[object BlobConstructor]"===qt.call(Blob),Vt="function"==typeof File||"undefined"!=typeof File&&"[object FileConstructor]"===qt.call(File);function Kt(e){return zt&&(e instanceof ArrayBuffer||Ft(e))||Wt&&e instanceof Blob||Vt&&e instanceof File}function Ht(e,t){if(!e||"object"!=typeof e)return!1;if(Array.isArray(e)){for(let t=0,n=e.length;t=0&&e.num{delete this.acks[e];for(let t=0;t{this.io.clearTimeoutFn(i),t.apply(this,[null,...e])}}emitWithAck(e,...t){const n=void 0!==this.flags.timeout||void 0!==this._opts.ackTimeout;return new Promise(((r,i)=>{t.push(((e,t)=>n?e?i(e):r(t):r(e))),this.emit(e,...t)}))}_addToQueue(e){let t;"function"==typeof e[e.length-1]&&(t=e.pop());const n={id:this._queueSeq++,tryCount:0,pending:!1,args:e,flags:Object.assign({fromQueue:!0},this.flags)};e.push(((e,...r)=>{if(n===this._queue[0])return null!==e?n.tryCount>this._opts.retries&&(this._queue.shift(),t&&t(e)):(this._queue.shift(),t&&t(null,...r)),n.pending=!1,this._drainQueue()})),this._queue.push(n),this._drainQueue()}_drainQueue(e=!1){if(!this.connected||0===this._queue.length)return;const t=this._queue[0];t.pending&&!e||(t.pending=!0,t.tryCount++,this.flags=t.flags,this.emit.apply(this,t.args))}packet(e){e.nsp=this.nsp,this.io._packet(e)}onopen(){"function"==typeof this.auth?this.auth((e=>{this._sendConnectPacket(e)})):this._sendConnectPacket(this.auth)}_sendConnectPacket(e){this.packet({type:Xt.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},e):e})}onerror(e){this.connected||this.emitReserved("connect_error",e)}onclose(e,t){this.connected=!1,delete this.id,this.emitReserved("disconnect",e,t)}onpacket(e){if(e.nsp===this.nsp)switch(e.type){case Xt.CONNECT:e.data&&e.data.sid?this.onconnect(e.data.sid,e.data.pid):this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case Xt.EVENT:case Xt.BINARY_EVENT:this.onevent(e);break;case Xt.ACK:case Xt.BINARY_ACK:this.onack(e);break;case Xt.DISCONNECT:this.ondisconnect();break;case Xt.CONNECT_ERROR:this.destroy();const t=new Error(e.data.message);t.data=e.data.data,this.emitReserved("connect_error",t)}}onevent(e){const t=e.data||[];null!=e.id&&t.push(this.ack(e.id)),this.connected?this.emitEvent(t):this.receiveBuffer.push(Object.freeze(t))}emitEvent(e){if(this._anyListeners&&this._anyListeners.length){const t=this._anyListeners.slice();for(const n of t)n.apply(this,e)}super.emit.apply(this,e),this._pid&&e.length&&"string"==typeof e[e.length-1]&&(this._lastOffset=e[e.length-1])}ack(e){const t=this;let n=!1;return function(...r){n||(n=!0,t.packet({type:Xt.ACK,id:e,data:r}))}}onack(e){const t=this.acks[e.id];"function"==typeof t&&(t.apply(this,e.data),delete this.acks[e.id])}onconnect(e,t){this.id=e,this.recovered=t&&this._pid===t,this._pid=t,this.connected=!0,this.emitBuffered(),this.emitReserved("connect"),this._drainQueue(!0)}emitBuffered(){this.receiveBuffer.forEach((e=>this.emitEvent(e))),this.receiveBuffer=[],this.sendBuffer.forEach((e=>{this.notifyOutgoingListeners(e),this.packet(e)})),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach((e=>e())),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:Xt.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(e){return this.flags.compress=e,this}get volatile(){return this.flags.volatile=!0,this}timeout(e){return this.flags.timeout=e,this}onAny(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(e),this}prependAny(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(e),this}offAny(e){if(!this._anyListeners)return this;if(e){const t=this._anyListeners;for(let n=0;n0&&e.jitter<=1?e.jitter:0,this.attempts=0}sn.prototype.duration=function(){var e=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var t=Math.random(),n=Math.floor(t*this.jitter*e);e=0==(1&Math.floor(10*t))?e-n:e+n}return 0|Math.min(e,this.max)},sn.prototype.reset=function(){this.attempts=0},sn.prototype.setMin=function(e){this.ms=e},sn.prototype.setMax=function(e){this.max=e},sn.prototype.setJitter=function(e){this.jitter=e};class un extends ue{constructor(e,t){var n;super(),this.nsps={},this.subs=[],e&&"object"==typeof e&&(t=e,e=void 0),(t=t||{}).path=t.path||"/socket.io",this.opts=t,he(this,t),this.reconnection(!1!==t.reconnection),this.reconnectionAttempts(t.reconnectionAttempts||1/0),this.reconnectionDelay(t.reconnectionDelay||1e3),this.reconnectionDelayMax(t.reconnectionDelayMax||5e3),this.randomizationFactor(null!==(n=t.randomizationFactor)&&void 0!==n?n:.5),this.backoff=new sn({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(null==t.timeout?2e4:t.timeout),this._readyState="closed",this.uri=e;const r=t.parser||nn;this.encoder=new r.Encoder,this.decoder=new r.Decoder,this._autoConnect=!1!==t.autoConnect,this._autoConnect&&this.open()}reconnection(e){return arguments.length?(this._reconnection=!!e,this):this._reconnection}reconnectionAttempts(e){return void 0===e?this._reconnectionAttempts:(this._reconnectionAttempts=e,this)}reconnectionDelay(e){var t;return void 0===e?this._reconnectionDelay:(this._reconnectionDelay=e,null===(t=this.backoff)||void 0===t||t.setMin(e),this)}randomizationFactor(e){var t;return void 0===e?this._randomizationFactor:(this._randomizationFactor=e,null===(t=this.backoff)||void 0===t||t.setJitter(e),this)}reconnectionDelayMax(e){var t;return void 0===e?this._reconnectionDelayMax:(this._reconnectionDelayMax=e,null===(t=this.backoff)||void 0===t||t.setMax(e),this)}timeout(e){return arguments.length?(this._timeout=e,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&0===this.backoff.attempts&&this.reconnect()}open(e){if(~this._readyState.indexOf("open"))return this;this.engine=new Ut(this.uri,this.opts);const t=this.engine,n=this;this._readyState="opening",this.skipReconnect=!1;const r=rn(t,"open",(function(){n.onopen(),e&&e()})),i=t=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",t),e?e(t):this.maybeReconnectOnOpen()},o=rn(t,"error",i);if(!1!==this._timeout){const e=this._timeout,n=this.setTimeoutFn((()=>{r(),i(new Error("timeout")),t.close()}),e);this.opts.autoUnref&&n.unref(),this.subs.push((()=>{this.clearTimeoutFn(n)}))}return this.subs.push(r),this.subs.push(o),this}connect(e){return this.open(e)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const e=this.engine;this.subs.push(rn(e,"ping",this.onping.bind(this)),rn(e,"data",this.ondata.bind(this)),rn(e,"error",this.onerror.bind(this)),rn(e,"close",this.onclose.bind(this)),rn(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(e){try{this.decoder.add(e)}catch(e){this.onclose("parse error",e)}}ondecoded(e){Tt((()=>{this.emitReserved("packet",e)}),this.setTimeoutFn)}onerror(e){this.emitReserved("error",e)}socket(e,t){let n=this.nsps[e];return n?this._autoConnect&&!n.active&&n.connect():(n=new an(this,e,t),this.nsps[e]=n),n}_destroy(e){const t=Object.keys(this.nsps);for(const n of t)if(this.nsps[n].active)return;this._close()}_packet(e){const t=this.encoder.encode(e);for(let n=0;ne())),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close"),this.engine&&this.engine.close()}disconnect(){return this._close()}onclose(e,t){this.cleanup(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",e,t),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const e=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const t=this.backoff.duration();this._reconnecting=!0;const n=this.setTimeoutFn((()=>{e.skipReconnect||(this.emitReserved("reconnect_attempt",e.backoff.attempts),e.skipReconnect||e.open((t=>{t?(e._reconnecting=!1,e.reconnect(),this.emitReserved("reconnect_error",t)):e.onreconnect()})))}),t);this.opts.autoUnref&&n.unref(),this.subs.push((()=>{this.clearTimeoutFn(n)}))}}onreconnect(){const e=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",e)}}const ln={};function cn(e,t){"object"==typeof e&&(t=e,e=void 0);const n=function(e,t="",n){let r=e;n=n||"undefined"!=typeof location&&location,null==e&&(e=n.protocol+"//"+n.host),"string"==typeof e&&("/"===e.charAt(0)&&(e="/"===e.charAt(1)?n.protocol+e:n.host+e),/^(https?|wss?):\/\//.test(e)||(e=void 0!==n?n.protocol+"//"+e:"https://"+e),r=jt(e)),r.port||(/^(http|ws)$/.test(r.protocol)?r.port="80":/^(http|ws)s$/.test(r.protocol)&&(r.port="443")),r.path=r.path||"/";const i=-1!==r.host.indexOf(":")?"["+r.host+"]":r.host;return r.id=r.protocol+"://"+i+":"+r.port+t,r.href=r.protocol+"://"+i+(n&&n.port===r.port?"":":"+r.port),r}(e,(t=t||{}).path||"/socket.io"),r=n.source,i=n.id,o=n.path,a=ln[i]&&o in ln[i].nsps;let s;return t.forceNew||t["force new connection"]||!1===t.multiplex||a?s=new un(r,t):(ln[i]||(ln[i]=new un(r,t)),s=ln[i]),n.query&&!t.query&&(t.query=n.queryKey),s.socket(n.path,t)}function dn(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{u(r.next(e))}catch(e){o(e)}}function s(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((r=r.apply(e,t||[])).next())}))}Object.assign(cn,{Manager:un,Socket:an,io:cn,connect:cn}),"function"==typeof SuppressedError&&SuppressedError;const fn=(e,t)=>dn(void 0,void 0,void 0,(function*(){const n=t.endsWith("/")?`${t}debug`:`${t}/debug`,r=JSON.stringify(e),i=yield s(n,{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json"},body:r});return yield i.text()}));var hn=void 0!==t?t:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},pn=[],mn=[],gn="undefined"!=typeof Uint8Array?Uint8Array:Array,vn=!1;function yn(){vn=!0;for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t=0;t<64;++t)pn[t]=e[t],mn[e.charCodeAt(t)]=t;mn["-".charCodeAt(0)]=62,mn["_".charCodeAt(0)]=63}function bn(e,t,n){for(var r,i,o=[],a=t;a>18&63]+pn[i>>12&63]+pn[i>>6&63]+pn[63&i]);return o.join("")}function wn(e){var t;vn||yn();for(var n=e.length,r=n%3,i="",o=[],a=16383,s=0,u=n-r;su?u:s+a));return 1===r?(t=e[n-1],i+=pn[t>>2],i+=pn[t<<4&63],i+="=="):2===r&&(t=(e[n-2]<<8)+e[n-1],i+=pn[t>>10],i+=pn[t>>4&63],i+=pn[t<<2&63],i+="="),o.push(i),o.join("")}function An(e,t,n,r,i){var o,a,s=8*i-r-1,u=(1<>1,c=-7,d=n?i-1:0,f=n?-1:1,h=e[t+d];for(d+=f,o=h&(1<<-c)-1,h>>=-c,c+=s;c>0;o=256*o+e[t+d],d+=f,c-=8);for(a=o&(1<<-c)-1,o>>=-c,c+=r;c>0;a=256*a+e[t+d],d+=f,c-=8);if(0===o)o=1-l;else{if(o===u)return a?NaN:1/0*(h?-1:1);a+=Math.pow(2,r),o-=l}return(h?-1:1)*a*Math.pow(2,o-r)}function _n(e,t,n,r,i,o){var a,s,u,l=8*o-i-1,c=(1<>1,f=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,h=r?0:o-1,p=r?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=c):(a=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-a))<1&&(a--,u*=2),(t+=a+d>=1?f/u:f*Math.pow(2,1-d))*u>=2&&(a++,u/=2),a+d>=c?(s=0,a=c):a+d>=1?(s=(t*u-1)*Math.pow(2,i),a+=d):(s=t*Math.pow(2,d-1)*Math.pow(2,i),a=0));i>=8;e[n+h]=255&s,h+=p,s/=256,i-=8);for(a=a<0;e[n+h]=255&a,h+=p,a/=256,l-=8);e[n+h-p]|=128*m}var En={}.toString,Sn=Array.isArray||function(e){return"[object Array]"==En.call(e)};xn.TYPED_ARRAY_SUPPORT=void 0===hn.TYPED_ARRAY_SUPPORT||hn.TYPED_ARRAY_SUPPORT;var kn=Mn();function Mn(){return xn.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function Cn(e,t){if(Mn()=Mn())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+Mn().toString(16)+" bytes");return 0|e}function In(e){return!(null==e||!e._isBuffer)}function Nn(e,t){if(In(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var r=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return ur(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return lr(e).length;default:if(r)return ur(e).length;t=(""+t).toLowerCase(),r=!0}}function Dn(e,t,n){var r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return Zn(this,t,n);case"utf8":case"utf-8":return $n(this,t,n);case"ascii":return Gn(this,t,n);case"latin1":case"binary":return Qn(this,t,n);case"base64":return Hn(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Xn(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function Bn(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function jn(e,t,n,r,i){if(0===e.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return-1;n=e.length-1}else if(n<0){if(!i)return-1;n=0}if("string"==typeof t&&(t=xn.from(t,r)),In(t))return 0===t.length?-1:Un(e,t,n,r,i);if("number"==typeof t)return t&=255,xn.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):Un(e,[t],n,r,i);throw new TypeError("val must be string, number or Buffer")}function Un(e,t,n,r,i){var o,a=1,s=e.length,u=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;a=2,s/=2,u/=2,n/=2}function l(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(i){var c=-1;for(o=n;os&&(n=s-u),o=n;o>=0;o--){for(var d=!0,f=0;fi&&(r=i):r=i;var o=t.length;if(o%2!=0)throw new TypeError("Invalid hex string");r>o/2&&(r=o/2);for(var a=0;a>8,i=n%256,o.push(i),o.push(r);return o}(t,e.length-n),e,n,r)}function Hn(e,t,n){return 0===t&&n===e.length?wn(e):wn(e.slice(t,n))}function $n(e,t,n){n=Math.min(e.length,n);for(var r=[],i=t;i239?4:l>223?3:l>191?2:1;if(i+d<=n)switch(d){case 1:l<128&&(c=l);break;case 2:128==(192&(o=e[i+1]))&&(u=(31&l)<<6|63&o)>127&&(c=u);break;case 3:o=e[i+1],a=e[i+2],128==(192&o)&&128==(192&a)&&(u=(15&l)<<12|(63&o)<<6|63&a)>2047&&(u<55296||u>57343)&&(c=u);break;case 4:o=e[i+1],a=e[i+2],s=e[i+3],128==(192&o)&&128==(192&a)&&128==(192&s)&&(u=(15&l)<<18|(63&o)<<12|(63&a)<<6|63&s)>65535&&u<1114112&&(c=u)}null===c?(c=65533,d=1):c>65535&&(c-=65536,r.push(c>>>10&1023|55296),c=56320|1023&c),r.push(c),i+=d}return function(e){var t=e.length;if(t<=Yn)return String.fromCharCode.apply(String,e);for(var n="",r=0;r0&&(e=this.toString("hex",0,50).match(/.{2}/g).join(" "),this.length>50&&(e+=" ... ")),""},xn.prototype.compare=function(e,t,n,r,i){if(!In(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&t>=n)return 0;if(r>=i)return-1;if(t>=n)return 1;if(this===e)return 0;for(var o=(i>>>=0)-(r>>>=0),a=(n>>>=0)-(t>>>=0),s=Math.min(o,a),u=this.slice(r,i),l=e.slice(t,n),c=0;ci)&&(n=i),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var o=!1;;)switch(r){case"hex":return zn(this,e,t,n);case"utf8":case"utf-8":return Fn(this,e,t,n);case"ascii":return qn(this,e,t,n);case"latin1":case"binary":return Wn(this,e,t,n);case"base64":return Vn(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Kn(this,e,t,n);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!0}},xn.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var Yn=4096;function Gn(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;ir)&&(n=r);for(var i="",o=t;on)throw new RangeError("Trying to access beyond buffer length")}function er(e,t,n,r,i,o){if(!In(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||te.length)throw new RangeError("Index out of range")}function tr(e,t,n,r){t<0&&(t=65535+t+1);for(var i=0,o=Math.min(e.length-n,2);i>>8*(r?i:1-i)}function nr(e,t,n,r){t<0&&(t=4294967295+t+1);for(var i=0,o=Math.min(e.length-n,4);i>>8*(r?i:3-i)&255}function rr(e,t,n,r,i,o){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function ir(e,t,n,r,i){return i||rr(e,0,n,4),_n(e,t,n,r,23,4),n+4}function or(e,t,n,r,i){return i||rr(e,0,n,8),_n(e,t,n,r,52,8),n+8}xn.prototype.slice=function(e,t){var n,r=this.length;if((e=~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),t0&&(i*=256);)r+=this[e+--t]*i;return r},xn.prototype.readUInt8=function(e,t){return t||Jn(e,1,this.length),this[e]},xn.prototype.readUInt16LE=function(e,t){return t||Jn(e,2,this.length),this[e]|this[e+1]<<8},xn.prototype.readUInt16BE=function(e,t){return t||Jn(e,2,this.length),this[e]<<8|this[e+1]},xn.prototype.readUInt32LE=function(e,t){return t||Jn(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},xn.prototype.readUInt32BE=function(e,t){return t||Jn(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},xn.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||Jn(e,t,this.length);for(var r=this[e],i=1,o=0;++o=(i*=128)&&(r-=Math.pow(2,8*t)),r},xn.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||Jn(e,t,this.length);for(var r=t,i=1,o=this[e+--r];r>0&&(i*=256);)o+=this[e+--r]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*t)),o},xn.prototype.readInt8=function(e,t){return t||Jn(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},xn.prototype.readInt16LE=function(e,t){t||Jn(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},xn.prototype.readInt16BE=function(e,t){t||Jn(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},xn.prototype.readInt32LE=function(e,t){return t||Jn(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},xn.prototype.readInt32BE=function(e,t){return t||Jn(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},xn.prototype.readFloatLE=function(e,t){return t||Jn(e,4,this.length),An(this,e,!0,23,4)},xn.prototype.readFloatBE=function(e,t){return t||Jn(e,4,this.length),An(this,e,!1,23,4)},xn.prototype.readDoubleLE=function(e,t){return t||Jn(e,8,this.length),An(this,e,!0,52,8)},xn.prototype.readDoubleBE=function(e,t){return t||Jn(e,8,this.length),An(this,e,!1,52,8)},xn.prototype.writeUIntLE=function(e,t,n,r){e=+e,t|=0,n|=0,r||er(this,e,t,n,Math.pow(2,8*n)-1,0);var i=1,o=0;for(this[t]=255&e;++o=0&&(o*=256);)this[t+i]=e/o&255;return t+n},xn.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||er(this,e,t,1,255,0),xn.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},xn.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||er(this,e,t,2,65535,0),xn.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):tr(this,e,t,!0),t+2},xn.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||er(this,e,t,2,65535,0),xn.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):tr(this,e,t,!1),t+2},xn.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||er(this,e,t,4,4294967295,0),xn.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):nr(this,e,t,!0),t+4},xn.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||er(this,e,t,4,4294967295,0),xn.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):nr(this,e,t,!1),t+4},xn.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);er(this,e,t,n,i-1,-i)}var o=0,a=1,s=0;for(this[t]=255&e;++o>0)-s&255;return t+n},xn.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);er(this,e,t,n,i-1,-i)}var o=n-1,a=1,s=0;for(this[t+o]=255&e;--o>=0&&(a*=256);)e<0&&0===s&&0!==this[t+o+1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+n},xn.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||er(this,e,t,1,127,-128),xn.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},xn.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||er(this,e,t,2,32767,-32768),xn.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):tr(this,e,t,!0),t+2},xn.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||er(this,e,t,2,32767,-32768),xn.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):tr(this,e,t,!1),t+2},xn.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||er(this,e,t,4,2147483647,-2147483648),xn.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):nr(this,e,t,!0),t+4},xn.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||er(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),xn.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):nr(this,e,t,!1),t+4},xn.prototype.writeFloatLE=function(e,t,n){return ir(this,e,t,!0,n)},xn.prototype.writeFloatBE=function(e,t,n){return ir(this,e,t,!1,n)},xn.prototype.writeDoubleLE=function(e,t,n){return or(this,e,t,!0,n)},xn.prototype.writeDoubleBE=function(e,t,n){return or(this,e,t,!1,n)},xn.prototype.copy=function(e,t,n,r){if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t=0;--i)e[i+t]=this[i+n];else if(o<1e3||!xn.TYPED_ARRAY_SUPPORT)for(i=0;i>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(o=t;o55295&&n<57344){if(!i){if(n>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(a+1===r){(t-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&o.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,n<128){if((t-=1)<0)break;o.push(n)}else if(n<2048){if((t-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function lr(e){return function(e){var t,n,r,i,o,a;vn||yn();var s=e.length;if(s%4>0)throw new Error("Invalid string. Length must be a multiple of 4");o="="===e[s-2]?2:"="===e[s-1]?1:0,a=new gn(3*s/4-o),r=o>0?s-4:s;var u=0;for(t=0,n=0;t>16&255,a[u++]=i>>8&255,a[u++]=255&i;return 2===o?(i=mn[e.charCodeAt(t)]<<2|mn[e.charCodeAt(t+1)]>>4,a[u++]=255&i):1===o&&(i=mn[e.charCodeAt(t)]<<10|mn[e.charCodeAt(t+1)]<<4|mn[e.charCodeAt(t+2)]>>2,a[u++]=i>>8&255,a[u++]=255&i),a}(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(ar,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function cr(e,t,n,r){for(var i=0;i=t.length||i>=e.length);++i)t[i+n]=e[i];return i}function dr(e){return null!=e&&(!!e._isBuffer||fr(e)||function(e){return"function"==typeof e.readFloatLE&&"function"==typeof e.slice&&fr(e.slice(0,0))}(e))}function fr(e){return!!e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}var hr="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==t?t:"undefined"!=typeof self?self:{};function pr(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var n=function e(){return this instanceof e?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(t){var r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,r.get?r:{enumerable:!0,get:function(){return e[t]}})})),n}var mr={},gr={},vr={},yr=pr(Object.freeze({__proto__:null,Buffer:xn,INSPECT_MAX_BYTES:50,SlowBuffer:function(e){return+e!=e&&(e=0),xn.alloc(+e)},isBuffer:dr,kMaxLength:kn})),br={};function wr(){throw new Error("setTimeout has not been defined")}function Ar(){throw new Error("clearTimeout has not been defined")}var _r=wr,Er=Ar;function Sr(e){if(_r===setTimeout)return setTimeout(e,0);if((_r===wr||!_r)&&setTimeout)return _r=setTimeout,setTimeout(e,0);try{return _r(e,0)}catch(t){try{return _r.call(null,e,0)}catch(t){return _r.call(this,e,0)}}}"function"==typeof hn.setTimeout&&(_r=setTimeout),"function"==typeof hn.clearTimeout&&(Er=clearTimeout);var kr,Mr=[],Cr=!1,xr=-1;function Rr(){Cr&&kr&&(Cr=!1,kr.length?Mr=kr.concat(Mr):xr=-1,Mr.length&&Or())}function Or(){if(!Cr){var e=Sr(Rr);Cr=!0;for(var t=Mr.length;t;){for(kr=Mr,Mr=[];++xr1)for(var n=1;n4294967295)throw new RangeError("requested too many random bytes");var n=Gr.allocUnsafe(e);if(e>0)if(e>Yr)for(var r=0;r0&&a.length>i){a.warned=!0;var u=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+t+" listeners added. Use emitter.setMaxListeners() to increase limit");u.name="MaxListenersExceededWarning",u.emitter=e,u.type=t,u.count=a.length,s=u,"function"==typeof console.warn?console.warn(s):console.log(s)}}else a=o[t]=n,++e._eventsCount;return e}function oi(e,t,n){var r=!1;function i(){e.removeListener(t,i),r||(r=!0,n.apply(e,arguments))}return i.listener=n,i}function ai(e){var t=this._events;if(t){var n=t[e];if("function"==typeof n)return 1;if(n)return n.length}return 0}function si(e,t){for(var n=new Array(t);t--;)n[t]=e[t];return n}ti.prototype=Object.create(null),ni.EventEmitter=ni,ni.usingDomains=!1,ni.prototype.domain=void 0,ni.prototype._events=void 0,ni.prototype._maxListeners=void 0,ni.defaultMaxListeners=10,ni.init=function(){this.domain=null,ni.usingDomains&&(void 0).active,this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=new ti,this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},ni.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||isNaN(e))throw new TypeError('"n" argument must be a positive number');return this._maxListeners=e,this},ni.prototype.getMaxListeners=function(){return ri(this)},ni.prototype.emit=function(e){var t,n,r,i,o,a,s,u="error"===e;if(a=this._events)u=u&&null==a.error;else if(!u)return!1;if(s=this.domain,u){if(t=arguments[1],!s){if(t instanceof Error)throw t;var l=new Error('Uncaught, unspecified "error" event. ('+t+")");throw l.context=t,l}return t||(t=new Error('Uncaught, unspecified "error" event')),t.domainEmitter=this,t.domain=s,t.domainThrown=!1,s.emit("error",t),!1}if(!(n=a[e]))return!1;var c="function"==typeof n;switch(r=arguments.length){case 1:!function(e,t,n){if(t)e.call(n);else for(var r=e.length,i=si(e,r),o=0;o0;)if(n[o]===t||n[o].listener&&n[o].listener===t){a=n[o].listener,i=o;break}if(i<0)return this;if(1===n.length){if(n[0]=void 0,0==--this._eventsCount)return this._events=new ti,this;delete r[e]}else!function(e,t){for(var n=t,r=n+1,i=e.length;r0?Reflect.ownKeys(this._events):[]};var ui=pr(Object.freeze({__proto__:null,EventEmitter:ni,default:ni})),li=ui.EventEmitter,ci="function"==typeof Object.create?function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:function(e,t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e},di=/%[sdj%]/g;function fi(e){if(!Ri(e)){for(var t=[],n=0;n=i)return e;switch(e){case"%s":return String(r[n++]);case"%d":return Number(r[n++]);case"%j":try{return JSON.stringify(r[n++])}catch(e){return"[Circular]"}default:return e}})),a=r[n];n=3&&(n.depth=arguments[2]),arguments.length>=4&&(n.colors=arguments[3]),ki(t)?n.showHidden=t:t&&Wi(n,t),Ti(n.showHidden)&&(n.showHidden=!1),Ti(n.depth)&&(n.depth=2),Ti(n.colors)&&(n.colors=!1),Ti(n.customInspect)&&(n.customInspect=!0),n.colors&&(n.stylize=bi),Ai(n,e,n.depth)}function bi(e,t){var n=yi.styles[t];return n?"["+yi.colors[n][0]+"m"+e+"["+yi.colors[n][1]+"m":e}function wi(e,t){return e}function Ai(e,t,n){if(e.customInspect&&t&&Di(t.inspect)&&t.inspect!==yi&&(!t.constructor||t.constructor.prototype!==t)){var r=t.inspect(n,e);return Ri(r)||(r=Ai(e,r,n)),r}var i=function(e,t){if(Ti(t))return e.stylize("undefined","undefined");if(Ri(t)){var n="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(n,"string")}return xi(t)?e.stylize(""+t,"number"):ki(t)?e.stylize(""+t,"boolean"):Mi(t)?e.stylize("null","null"):void 0}(e,t);if(i)return i;var o=Object.keys(t),a=function(e){var t={};return e.forEach((function(e,n){t[e]=!0})),t}(o);if(e.showHidden&&(o=Object.getOwnPropertyNames(t)),Ni(t)&&(o.indexOf("message")>=0||o.indexOf("description")>=0))return _i(t);if(0===o.length){if(Di(t)){var s=t.name?": "+t.name:"";return e.stylize("[Function"+s+"]","special")}if(Pi(t))return e.stylize(RegExp.prototype.toString.call(t),"regexp");if(Ii(t))return e.stylize(Date.prototype.toString.call(t),"date");if(Ni(t))return _i(t)}var u,l="",c=!1,d=["{","}"];return Si(t)&&(c=!0,d=["[","]"]),Di(t)&&(l=" [Function"+(t.name?": "+t.name:"")+"]"),Pi(t)&&(l=" "+RegExp.prototype.toString.call(t)),Ii(t)&&(l=" "+Date.prototype.toUTCString.call(t)),Ni(t)&&(l=" "+_i(t)),0!==o.length||c&&0!=t.length?n<0?Pi(t)?e.stylize(RegExp.prototype.toString.call(t),"regexp"):e.stylize("[Object]","special"):(e.seen.push(t),u=c?function(e,t,n,r,i){for(var o=[],a=0,s=t.length;a60?n[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+n[1]:n[0]+t+" "+e.join(", ")+" "+n[1]}(u,l,d)):d[0]+l+d[1]}function _i(e){return"["+Error.prototype.toString.call(e)+"]"}function Ei(e,t,n,r,i,o){var a,s,u;if((u=Object.getOwnPropertyDescriptor(t,i)||{value:t[i]}).get?s=u.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):u.set&&(s=e.stylize("[Setter]","special")),Vi(r,i)||(a="["+i+"]"),s||(e.seen.indexOf(u.value)<0?(s=Mi(n)?Ai(e,u.value,null):Ai(e,u.value,n-1)).indexOf("\n")>-1&&(s=o?s.split("\n").map((function(e){return" "+e})).join("\n").substr(2):"\n"+s.split("\n").map((function(e){return" "+e})).join("\n")):s=e.stylize("[Circular]","special")),Ti(a)){if(o&&i.match(/^\d+$/))return s;(a=JSON.stringify(""+i)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(a=a.substr(1,a.length-2),a=e.stylize(a,"name")):(a=a.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),a=e.stylize(a,"string"))}return a+": "+s}function Si(e){return Array.isArray(e)}function ki(e){return"boolean"==typeof e}function Mi(e){return null===e}function Ci(e){return null==e}function xi(e){return"number"==typeof e}function Ri(e){return"string"==typeof e}function Oi(e){return"symbol"==typeof e}function Ti(e){return void 0===e}function Pi(e){return Li(e)&&"[object RegExp]"===Ui(e)}function Li(e){return"object"==typeof e&&null!==e}function Ii(e){return Li(e)&&"[object Date]"===Ui(e)}function Ni(e){return Li(e)&&("[object Error]"===Ui(e)||e instanceof Error)}function Di(e){return"function"==typeof e}function Bi(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e}function ji(e){return dr(e)}function Ui(e){return Object.prototype.toString.call(e)}function zi(e){return e<10?"0"+e.toString(10):e.toString(10)}yi.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},yi.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};var Fi=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function qi(){var e,t;console.log("%s - %s",(t=[zi((e=new Date).getHours()),zi(e.getMinutes()),zi(e.getSeconds())].join(":"),[e.getDate(),Fi[e.getMonth()],t].join(" ")),fi.apply(null,arguments))}function Wi(e,t){if(!t||!Li(t))return e;for(var n=Object.keys(t),r=n.length;r--;)e[n[r]]=t[n[r]];return e}function Vi(e,t){return Object.prototype.hasOwnProperty.call(e,t)}var Ki,Hi,$i={inherits:ci,_extend:Wi,log:qi,isBuffer:ji,isPrimitive:Bi,isFunction:Di,isError:Ni,isDate:Ii,isObject:Li,isRegExp:Pi,isUndefined:Ti,isSymbol:Oi,isString:Ri,isNumber:xi,isNullOrUndefined:Ci,isNull:Mi,isBoolean:ki,isArray:Si,inspect:yi,deprecate:hi,format:fi,debuglog:gi},Yi=pr(Object.freeze({__proto__:null,_extend:Wi,debuglog:gi,default:$i,deprecate:hi,format:fi,inherits:ci,inspect:yi,isArray:Si,isBoolean:ki,isBuffer:ji,isDate:Ii,isError:Ni,isFunction:Di,isNull:Mi,isNullOrUndefined:Ci,isNumber:xi,isObject:Li,isPrimitive:Bi,isRegExp:Pi,isString:Ri,isSymbol:Oi,isUndefined:Ti,log:qi}));function Gi(e,t){Zi(e,t),Qi(e)}function Qi(e){e._writableState&&!e._writableState.emitClose||e._readableState&&!e._readableState.emitClose||e.emit("close")}function Zi(e,t){e.emit("error",t)}var Xi={destroy:function(e,t){var n=this,r=this._readableState&&this._readableState.destroyed,i=this._writableState&&this._writableState.destroyed;return r||i?(t?t(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,Tr(Zi,this,e)):Tr(Zi,this,e)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,(function(e){!t&&e?n._writableState?n._writableState.errorEmitted?Tr(Qi,n):(n._writableState.errorEmitted=!0,Tr(Gi,n,e)):Tr(Gi,n,e):t?(Tr(Qi,n),t(e)):Tr(Qi,n)})),this)},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)},errorOrDestroy:function(e,t){var n=e._readableState,r=e._writableState;n&&n.autoDestroy||r&&r.autoDestroy?e.destroy(t):e.emit("error",t)}},Ji={},eo={};function to(e,t,n){n||(n=Error);var r=function(e){var n,r;function i(n,r,i){return e.call(this,function(e,n,r){return"string"==typeof t?t:t(e,n,r)}(n,r,i))||this}return r=e,(n=i).prototype=Object.create(r.prototype),n.prototype.constructor=n,n.__proto__=r,i}(n);r.prototype.name=n.name,r.prototype.code=e,eo[e]=r}function no(e,t){if(Array.isArray(e)){var n=e.length;return e=e.map((function(e){return String(e)})),n>2?"one of ".concat(t," ").concat(e.slice(0,n-1).join(", "),", or ")+e[n-1]:2===n?"one of ".concat(t," ").concat(e[0]," or ").concat(e[1]):"of ".concat(t," ").concat(e[0])}return"of ".concat(t," ").concat(String(e))}to("ERR_INVALID_OPT_VALUE",(function(e,t){return'The value "'+t+'" is invalid for option "'+e+'"'}),TypeError),to("ERR_INVALID_ARG_TYPE",(function(e,t,n){var r,i,o;if("string"==typeof t&&(i="not ",t.substr(0,4)===i)?(r="must not be",t=t.replace(/^not /,"")):r="must be",function(e,t,n){return(void 0===n||n>e.length)&&(n=e.length),e.substring(n-9,n)===t}(e," argument"))o="The ".concat(e," ").concat(r," ").concat(no(t,"type"));else{var a=function(e,t,n){return"number"!=typeof n&&(n=0),!(n+1>e.length)&&-1!==e.indexOf(".",n)}(e)?"property":"argument";o='The "'.concat(e,'" ').concat(a," ").concat(r," ").concat(no(t,"type"))}return o+". Received type ".concat(typeof n)}),TypeError),to("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),to("ERR_METHOD_NOT_IMPLEMENTED",(function(e){return"The "+e+" method is not implemented"})),to("ERR_STREAM_PREMATURE_CLOSE","Premature close"),to("ERR_STREAM_DESTROYED",(function(e){return"Cannot call "+e+" after a stream was destroyed"})),to("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),to("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),to("ERR_STREAM_WRITE_AFTER_END","write after end"),to("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),to("ERR_UNKNOWN_ENCODING",(function(e){return"Unknown encoding: "+e}),TypeError),to("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),Ji.codes=eo;var ro,io,oo,ao,so,uo,lo=Ji.codes.ERR_INVALID_OPT_VALUE,co={getHighWaterMark:function(e,t,n,r){var i=function(e,t,n){return null!=e.highWaterMark?e.highWaterMark:t?e[n]:null}(t,r,n);if(null!=i){if(!isFinite(i)||Math.floor(i)!==i||i<0)throw new lo(r?n:"highWaterMark",i);return Math.floor(i)}return e.objectMode?16:16384}};function fo(){if(io)return ro;function e(e){try{if(!hr.localStorage)return!1}catch(e){return!1}var t=hr.localStorage[e];return null!=t&&"true"===String(t).toLowerCase()}return io=1,ro=function(t,n){if(e("noDeprecation"))return t;var r=!1;return function(){if(!r){if(e("throwDeprecation"))throw new Error(n);e("traceDeprecation")?console.trace(n):console.warn(n),r=!0}return t.apply(this,arguments)}},ro}function ho(){if(ao)return oo;function e(e){var t=this;this.next=null,this.entry=null,this.finish=function(){!function(e,t,n){var r=e.entry;for(e.entry=null;r;){var i=r.callback;t.pendingcb--,i(void 0),r=r.next}t.corkedRequestsFree.next=e}(t,e)}}var t;ao=1,oo=A,A.WritableState=w;var n,r={deprecate:fo()},i=li,o=yr.Buffer,a=(void 0!==hr?hr:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){},s=Xi,u=co.getHighWaterMark,l=Ji.codes,c=l.ERR_INVALID_ARG_TYPE,d=l.ERR_METHOD_NOT_IMPLEMENTED,f=l.ERR_MULTIPLE_CALLBACK,h=l.ERR_STREAM_CANNOT_PIPE,p=l.ERR_STREAM_DESTROYED,m=l.ERR_STREAM_NULL_VALUES,g=l.ERR_STREAM_WRITE_AFTER_END,v=l.ERR_UNKNOWN_ENCODING,y=s.errorOrDestroy;function b(){}function w(n,r,i){t=t||po(),n=n||{},"boolean"!=typeof i&&(i=r instanceof t),this.objectMode=!!n.objectMode,i&&(this.objectMode=this.objectMode||!!n.writableObjectMode),this.highWaterMark=u(this,n,"writableHighWaterMark",i),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var o=!1===n.decodeStrings;this.decodeStrings=!o,this.defaultEncoding=n.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){!function(e,t){var n=e._writableState,r=n.sync,i=n.writecb;if("function"!=typeof i)throw new f;if(function(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}(n),t)!function(e,t,n,r,i){--t.pendingcb,n?(Tr(i,r),Tr(C,e,t),e._writableState.errorEmitted=!0,y(e,r)):(i(r),e._writableState.errorEmitted=!0,y(e,r),C(e,t))}(e,n,r,t,i);else{var o=k(n)||e.destroyed;o||n.corked||n.bufferProcessing||!n.bufferedRequest||S(e,n),r?Tr(E,e,n,o,i):E(e,n,o,i)}}(r,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!1!==n.emitClose,this.autoDestroy=!!n.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new e(this)}function A(e){var r=this instanceof(t=t||po());if(!r&&!n.call(A,this))return new A(e);this._writableState=new w(e,this,r),this.writable=!0,e&&("function"==typeof e.write&&(this._write=e.write),"function"==typeof e.writev&&(this._writev=e.writev),"function"==typeof e.destroy&&(this._destroy=e.destroy),"function"==typeof e.final&&(this._final=e.final)),i.call(this)}function _(e,t,n,r,i,o,a){t.writelen=r,t.writecb=a,t.writing=!0,t.sync=!0,t.destroyed?t.onwrite(new p("write")):n?e._writev(i,t.onwrite):e._write(i,o,t.onwrite),t.sync=!1}function E(e,t,n,r){n||function(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}(e,t),t.pendingcb--,r(),C(e,t)}function S(t,n){n.bufferProcessing=!0;var r=n.bufferedRequest;if(t._writev&&r&&r.next){var i=n.bufferedRequestCount,o=new Array(i),a=n.corkedRequestsFree;a.entry=r;for(var s=0,u=!0;r;)o[s]=r,r.isBuf||(u=!1),r=r.next,s+=1;o.allBuffers=u,_(t,n,!0,n.length,o,"",a.finish),n.pendingcb++,n.lastBufferedRequest=null,a.next?(n.corkedRequestsFree=a.next,a.next=null):n.corkedRequestsFree=new e(n),n.bufferedRequestCount=0}else{for(;r;){var l=r.chunk,c=r.encoding,d=r.callback;if(_(t,n,!1,n.objectMode?1:l.length,l,c,d),r=r.next,n.bufferedRequestCount--,n.writing)break}null===r&&(n.lastBufferedRequest=null)}n.bufferedRequest=r,n.bufferProcessing=!1}function k(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function M(e,t){e._final((function(n){t.pendingcb--,n&&y(e,n),t.prefinished=!0,e.emit("prefinish"),C(e,t)}))}function C(e,t){var n=k(t);if(n&&(function(e,t){t.prefinished||t.finalCalled||("function"!=typeof e._final||t.destroyed?(t.prefinished=!0,e.emit("prefinish")):(t.pendingcb++,t.finalCalled=!0,Tr(M,e,t)))}(e,t),0===t.pendingcb&&(t.finished=!0,e.emit("finish"),t.autoDestroy))){var r=e._readableState;(!r||r.autoDestroy&&r.endEmitted)&&e.destroy()}return n}return Jr(A,i),w.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(w.prototype,"buffer",{get:r.deprecate((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(n=Function.prototype[Symbol.hasInstance],Object.defineProperty(A,Symbol.hasInstance,{value:function(e){return!!n.call(this,e)||this===A&&e&&e._writableState instanceof w}})):n=function(e){return e instanceof this},A.prototype.pipe=function(){y(this,new h)},A.prototype.write=function(e,t,n){var r,i=this._writableState,s=!1,u=!i.objectMode&&(r=e,o.isBuffer(r)||r instanceof a);return u&&!o.isBuffer(e)&&(e=function(e){return o.from(e)}(e)),"function"==typeof t&&(n=t,t=null),u?t="buffer":t||(t=i.defaultEncoding),"function"!=typeof n&&(n=b),i.ending?function(e,t){var n=new g;y(e,n),Tr(t,n)}(this,n):(u||function(e,t,n,r){var i;return null===n?i=new m:"string"==typeof n||t.objectMode||(i=new c("chunk",["string","Buffer"],n)),!i||(y(e,i),Tr(r,i),!1)}(this,i,e,n))&&(i.pendingcb++,s=function(e,t,n,r,i,a){if(!n){var s=function(e,t,n){return e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=o.from(t,n)),t}(t,r,i);r!==s&&(n=!0,i="buffer",r=s)}var u=t.objectMode?1:r.length;t.length+=u;var l=t.length-1))throw new v(e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(A.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(A.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),A.prototype._write=function(e,t,n){n(new d("_write()"))},A.prototype._writev=null,A.prototype.end=function(e,t,n){var r=this._writableState;return"function"==typeof e?(n=e,e=null,t=null):"function"==typeof t&&(n=t,t=null),null!=e&&this.write(e,t),r.corked&&(r.corked=1,this.uncork()),r.ending||function(e,t,n){t.ending=!0,C(e,t),n&&(t.finished?Tr(n):e.once("finish",n)),t.ended=!0,e.writable=!1}(this,r,n),this},Object.defineProperty(A.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(A.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),A.prototype.destroy=s.destroy,A.prototype._undestroy=s.undestroy,A.prototype._destroy=function(e,t){t(e)},oo}function po(){if(uo)return so;uo=1;var e=Object.keys||function(e){var t=[];for(var n in e)t.push(n);return t};so=a;var t=Co(),n=ho();Jr(a,t);for(var r=e(n.prototype),i=0;i>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function i(e){var t=this.lastTotal-this.lastNeed,n=function(e,t,n){if(128!=(192&t[0]))return e.lastNeed=0,"�";if(e.lastNeed>1&&t.length>1){if(128!=(192&t[1]))return e.lastNeed=1,"�";if(e.lastNeed>2&&t.length>2&&128!=(192&t[2]))return e.lastNeed=2,"�"}}(this,e);return void 0!==n?n:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(e.copy(this.lastChar,t,0,e.length),void(this.lastNeed-=e.length))}function o(e,t){if((e.length-t)%2==0){var n=e.toString("utf16le",t);if(n){var r=n.charCodeAt(n.length-1);if(r>=55296&&r<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],n.slice(0,-1)}return n}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function a(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var n=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,n)}return t}function s(e,t){var n=(e.length-t)%3;return 0===n?e.toString("base64",t):(this.lastNeed=3-n,this.lastTotal=3,1===n?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-n))}function u(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function l(e){return e.toString(this.encoding)}function c(e){return e&&e.length?this.write(e):""}return go.StringDecoder=n,n.prototype.write=function(e){if(0===e.length)return"";var t,n;if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";n=this.lastNeed,this.lastNeed=0}else n=0;return n=0?(o>0&&(e.lastNeed=o-1),o):--i=0?(o>0&&(e.lastNeed=o-2),o):--i=0?(o>0&&(2===o?o=0:e.lastNeed=o-3),o):0}(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=n;var i=e.length-(n-this.lastNeed);return e.copy(this.lastChar,0,i),e.toString("utf8",t,i)},n.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length},go}var yo=Ji.codes.ERR_STREAM_PREMATURE_CLOSE;function bo(){}var wo,Ao,_o,Eo,So,ko,Mo=function e(t,n,r){if("function"==typeof n)return e(t,null,n);n||(n={}),r=function(e){var t=!1;return function(){if(!t){t=!0;for(var n=arguments.length,r=new Array(n),i=0;i0?this.tail.next=t:this.head=t,this.tail=t,++this.length}},{key:"unshift",value:function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length}},{key:"shift",value:function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(e){if(0===this.length)return"";for(var t=this.head,n=""+t.data;t=t.next;)n+=e+t.data;return n}},{key:"concat",value:function(e){if(0===this.length)return o.alloc(0);for(var t,n,r,i=o.allocUnsafe(e>>>0),a=this.head,s=0;a;)t=a.data,n=i,r=s,o.prototype.copy.call(t,n,r),s+=a.data.length,a=a.next;return i}},{key:"consume",value:function(e,t){var n;return ei.length?i.length:e;if(o===i.length?r+=i:r+=i.slice(0,e),0==(e-=o)){o===i.length?(++n,t.next?this.head=t.next:this.head=this.tail=null):(this.head=t,t.data=i.slice(o));break}++n}return this.length-=n,r}},{key:"_getBuffer",value:function(e){var t=o.allocUnsafe(e),n=this.head,r=1;for(n.data.copy(t),e-=n.data.length;n=n.next;){var i=n.data,a=e>i.length?i.length:e;if(i.copy(t,t.length-e,0,a),0==(e-=a)){a===i.length?(++r,n.next?this.head=n.next:this.head=this.tail=null):(this.head=n,n.data=i.slice(a));break}++r}return this.length-=r,t}},{key:s,value:function(e,n){return a(this,t(t({},n),{},{depth:0,customInspect:!1}))}}],i&&r(n.prototype,i),Object.defineProperty(n,"prototype",{writable:!1}),e}(),Ki}(),d=Xi,f=co.getHighWaterMark,h=Ji.codes,p=h.ERR_INVALID_ARG_TYPE,m=h.ERR_STREAM_PUSH_AFTER_EOF,g=h.ERR_METHOD_NOT_IMPLEMENTED,v=h.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;Jr(A,r);var y=d.errorOrDestroy,b=["error","close","destroy","pause","resume"];function w(t,n,r){e=e||po(),t=t||{},"boolean"!=typeof r&&(r=n instanceof e),this.objectMode=!!t.objectMode,r&&(this.objectMode=this.objectMode||!!t.readableObjectMode),this.highWaterMark=f(this,t,"readableHighWaterMark",r),this.buffer=new c,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=!1!==t.emitClose,this.autoDestroy=!!t.autoDestroy,this.destroyed=!1,this.defaultEncoding=t.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,t.encoding&&(s||(s=vo().StringDecoder),this.decoder=new s(t.encoding),this.encoding=t.encoding)}function A(t){if(e=e||po(),!(this instanceof A))return new A(t);var n=this instanceof e;this._readableState=new w(t,this,n),this.readable=!0,t&&("function"==typeof t.read&&(this._read=t.read),"function"==typeof t.destroy&&(this._destroy=t.destroy)),r.call(this)}function _(e,n,r,a,s){t("readableAddChunk",n);var u,l=e._readableState;if(null===n)l.reading=!1,function(e,n){if(t("onEofChunk"),!n.ended){if(n.decoder){var r=n.decoder.end();r&&r.length&&(n.buffer.push(r),n.length+=n.objectMode?1:r.length)}n.ended=!0,n.sync?M(e):(n.needReadable=!1,n.emittedReadable||(n.emittedReadable=!0,C(e)))}}(e,l);else if(s||(u=function(e,t){var n,r;return r=t,i.isBuffer(r)||r instanceof o||"string"==typeof t||void 0===t||e.objectMode||(n=new p("chunk",["string","Buffer","Uint8Array"],t)),n}(l,n)),u)y(e,u);else if(l.objectMode||n&&n.length>0)if("string"==typeof n||l.objectMode||Object.getPrototypeOf(n)===i.prototype||(n=function(e){return i.from(e)}(n)),a)l.endEmitted?y(e,new v):E(e,l,n,!0);else if(l.ended)y(e,new m);else{if(l.destroyed)return!1;l.reading=!1,l.decoder&&!r?(n=l.decoder.write(n),l.objectMode||0!==n.length?E(e,l,n,!1):x(e,l)):E(e,l,n,!1)}else a||(l.reading=!1,x(e,l));return!l.ended&&(l.lengtht.highWaterMark&&(t.highWaterMark=function(e){return e>=S?e=S:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function M(e){var n=e._readableState;t("emitReadable",n.needReadable,n.emittedReadable),n.needReadable=!1,n.emittedReadable||(t("emitReadable",n.flowing),n.emittedReadable=!0,Tr(C,e))}function C(e){var n=e._readableState;t("emitReadable_",n.destroyed,n.length,n.ended),n.destroyed||!n.length&&!n.ended||(e.emit("readable"),n.emittedReadable=!1),n.needReadable=!n.flowing&&!n.ended&&n.length<=n.highWaterMark,L(e)}function x(e,t){t.readingMore||(t.readingMore=!0,Tr(R,e,t))}function R(e,n){for(;!n.reading&&!n.ended&&(n.length0,t.resumeScheduled&&!t.paused?t.flowing=!0:e.listenerCount("data")>0&&e.resume()}function T(e){t("readable nexttick read 0"),e.read(0)}function P(e,n){t("resume",n.reading),n.reading||e.read(0),n.resumeScheduled=!1,e.emit("resume"),L(e),n.flowing&&!n.reading&&e.read(0)}function L(e){var n=e._readableState;for(t("flow",n.flowing);n.flowing&&null!==e.read(););}function I(e,t){return 0===t.length?null:(t.objectMode?n=t.buffer.shift():!e||e>=t.length?(n=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.first():t.buffer.concat(t.length),t.buffer.clear()):n=t.buffer.consume(e,t.decoder),n);var n}function N(e){var n=e._readableState;t("endReadable",n.endEmitted),n.endEmitted||(n.ended=!0,Tr(D,n,e))}function D(e,n){if(t("endReadableNT",e.endEmitted,e.length),!e.endEmitted&&0===e.length&&(e.endEmitted=!0,n.readable=!1,n.emit("end"),e.autoDestroy)){var r=n._writableState;(!r||r.autoDestroy&&r.finished)&&n.destroy()}}function B(e,t){for(var n=0,r=e.length;n=n.highWaterMark:n.length>0)||n.ended))return t("read: emitReadable",n.length,n.ended),0===n.length&&n.ended?N(this):M(this),null;if(0===(e=k(e,n))&&n.ended)return 0===n.length&&N(this),null;var i,o=n.needReadable;return t("need readable",o),(0===n.length||n.length-e0?I(e,n):null)?(n.needReadable=n.length<=n.highWaterMark,e=0):(n.length-=e,n.awaitDrain=0),0===n.length&&(n.ended||(n.needReadable=!0),r!==e&&n.ended&&N(this)),null!==i&&this.emit("data",i),i},A.prototype._read=function(e){y(this,new g("_read()"))},A.prototype.pipe=function(e,r){var i=this,o=this._readableState;switch(o.pipesCount){case 0:o.pipes=e;break;case 1:o.pipes=[o.pipes,e];break;default:o.pipes.push(e)}o.pipesCount+=1,t("pipe count=%d opts=%j",o.pipesCount,r);var a=r&&!1===r.end||e===Vr.stdout||e===Vr.stderr?p:s;function s(){t("onend"),e.end()}o.endEmitted?Tr(a):i.once("end",a),e.on("unpipe",(function n(r,a){t("onunpipe"),r===i&&a&&!1===a.hasUnpiped&&(a.hasUnpiped=!0,t("cleanup"),e.removeListener("close",f),e.removeListener("finish",h),e.removeListener("drain",u),e.removeListener("error",d),e.removeListener("unpipe",n),i.removeListener("end",s),i.removeListener("end",p),i.removeListener("data",c),l=!0,!o.awaitDrain||e._writableState&&!e._writableState.needDrain||u())}));var u=function(e){return function(){var r=e._readableState;t("pipeOnDrain",r.awaitDrain),r.awaitDrain&&r.awaitDrain--,0===r.awaitDrain&&n(e,"data")&&(r.flowing=!0,L(e))}}(i);e.on("drain",u);var l=!1;function c(n){t("ondata");var r=e.write(n);t("dest.write",r),!1===r&&((1===o.pipesCount&&o.pipes===e||o.pipesCount>1&&-1!==B(o.pipes,e))&&!l&&(t("false write response, pause",o.awaitDrain),o.awaitDrain++),i.pause())}function d(r){t("onerror",r),p(),e.removeListener("error",d),0===n(e,"error")&&y(e,r)}function f(){e.removeListener("finish",h),p()}function h(){t("onfinish"),e.removeListener("close",f),p()}function p(){t("unpipe"),i.unpipe(e)}return i.on("data",c),function(e,t,n){if("function"==typeof e.prependListener)return e.prependListener(t,n);e._events&&e._events[t]?Array.isArray(e._events[t])?e._events[t].unshift(n):e._events[t]=[n,e._events[t]]:e.on(t,n)}(e,"error",d),e.once("close",f),e.once("finish",h),e.emit("pipe",i),o.flowing||(t("pipe resume"),i.resume()),e},A.prototype.unpipe=function(e){var t=this._readableState,n={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,n)),this;if(!e){var r=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var o=0;o0,!1!==o.flowing&&this.resume()):"readable"===e&&(o.endEmitted||o.readableListening||(o.readableListening=o.needReadable=!0,o.flowing=!1,o.emittedReadable=!1,t("on readable",o.length,o.reading),o.length?M(this):o.reading||Tr(T,this))),i},A.prototype.addListener=A.prototype.on,A.prototype.removeListener=function(e,t){var n=r.prototype.removeListener.call(this,e,t);return"readable"===e&&Tr(O,this),n},A.prototype.removeAllListeners=function(e){var t=r.prototype.removeAllListeners.apply(this,arguments);return"readable"!==e&&void 0!==e||Tr(O,this),t},A.prototype.resume=function(){var e=this._readableState;return e.flowing||(t("resume"),e.flowing=!e.readableListening,function(e,t){t.resumeScheduled||(t.resumeScheduled=!0,Tr(P,e,t))}(this,e)),e.paused=!1,this},A.prototype.pause=function(){return t("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(t("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},A.prototype.wrap=function(e){var n=this,r=this._readableState,i=!1;for(var o in e.on("end",(function(){if(t("wrapped end"),r.decoder&&!r.ended){var e=r.decoder.end();e&&e.length&&n.push(e)}n.push(null)})),e.on("data",(function(o){t("wrapped data"),r.decoder&&(o=r.decoder.write(o)),r.objectMode&&null==o||(r.objectMode||o&&o.length)&&(n.push(o)||(i=!0,e.pause()))})),e)void 0===this[o]&&"function"==typeof e[o]&&(this[o]=function(t){return function(){return e[t].apply(e,arguments)}}(o));for(var a=0;a0,(function(e){r||(r=e),e&&o.forEach($o),a||(o.forEach($o),i(r))}))}));return t.reduce(Yo)};Go=ei.exports,(Go=ei.exports=Co()).Stream=Go,Go.Readable=Go,Go.Writable=ho(),Go.Duplex=po(),Go.Transform=xo,Go.PassThrough=zo,Go.finished=Mo,Go.pipeline=Qo;var Zo=ei.exports,Xo=$r.Buffer,Jo=Zo.Transform;function ea(e){Jo.call(this),this._block=Xo.allocUnsafe(e),this._blockSize=e,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}Jr(ea,Jo),ea.prototype._transform=function(e,t,n){var r=null;try{this.update(e,t)}catch(e){r=e}n(r)},ea.prototype._flush=function(e){var t=null;try{this.push(this.digest())}catch(e){t=e}e(t)},ea.prototype.update=function(e,t){if(function(e,t){if(!Xo.isBuffer(e)&&"string"!=typeof e)throw new TypeError("Data must be a string or a buffer")}(e),this._finalized)throw new Error("Digest already called");Xo.isBuffer(e)||(e=Xo.from(e,t));for(var n=this._block,r=0;this._blockOffset+e.length-r>=this._blockSize;){for(var i=this._blockOffset;i0;++o)this._length[o]+=a,(a=this._length[o]/4294967296|0)>0&&(this._length[o]-=4294967296*a);return this},ea.prototype._update=function(){throw new Error("_update is not implemented")},ea.prototype.digest=function(e){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var t=this._digest();void 0!==e&&(t=t.toString(e)),this._block.fill(0),this._blockOffset=0;for(var n=0;n<4;++n)this._length[n]=0;return t},ea.prototype._digest=function(){throw new Error("_digest is not implemented")};var ta=ea,na=Jr,ra=ta,ia=$r.Buffer,oa=new Array(16);function aa(){ra.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878}function sa(e,t){return e<>>32-t}function ua(e,t,n,r,i,o,a){return sa(e+(t&n|~t&r)+i+o|0,a)+t|0}function la(e,t,n,r,i,o,a){return sa(e+(t&r|n&~r)+i+o|0,a)+t|0}function ca(e,t,n,r,i,o,a){return sa(e+(t^n^r)+i+o|0,a)+t|0}function da(e,t,n,r,i,o,a){return sa(e+(n^(t|~r))+i+o|0,a)+t|0}na(aa,ra),aa.prototype._update=function(){for(var e=oa,t=0;t<16;++t)e[t]=this._block.readInt32LE(4*t);var n=this._a,r=this._b,i=this._c,o=this._d;n=ua(n,r,i,o,e[0],3614090360,7),o=ua(o,n,r,i,e[1],3905402710,12),i=ua(i,o,n,r,e[2],606105819,17),r=ua(r,i,o,n,e[3],3250441966,22),n=ua(n,r,i,o,e[4],4118548399,7),o=ua(o,n,r,i,e[5],1200080426,12),i=ua(i,o,n,r,e[6],2821735955,17),r=ua(r,i,o,n,e[7],4249261313,22),n=ua(n,r,i,o,e[8],1770035416,7),o=ua(o,n,r,i,e[9],2336552879,12),i=ua(i,o,n,r,e[10],4294925233,17),r=ua(r,i,o,n,e[11],2304563134,22),n=ua(n,r,i,o,e[12],1804603682,7),o=ua(o,n,r,i,e[13],4254626195,12),i=ua(i,o,n,r,e[14],2792965006,17),n=la(n,r=ua(r,i,o,n,e[15],1236535329,22),i,o,e[1],4129170786,5),o=la(o,n,r,i,e[6],3225465664,9),i=la(i,o,n,r,e[11],643717713,14),r=la(r,i,o,n,e[0],3921069994,20),n=la(n,r,i,o,e[5],3593408605,5),o=la(o,n,r,i,e[10],38016083,9),i=la(i,o,n,r,e[15],3634488961,14),r=la(r,i,o,n,e[4],3889429448,20),n=la(n,r,i,o,e[9],568446438,5),o=la(o,n,r,i,e[14],3275163606,9),i=la(i,o,n,r,e[3],4107603335,14),r=la(r,i,o,n,e[8],1163531501,20),n=la(n,r,i,o,e[13],2850285829,5),o=la(o,n,r,i,e[2],4243563512,9),i=la(i,o,n,r,e[7],1735328473,14),n=ca(n,r=la(r,i,o,n,e[12],2368359562,20),i,o,e[5],4294588738,4),o=ca(o,n,r,i,e[8],2272392833,11),i=ca(i,o,n,r,e[11],1839030562,16),r=ca(r,i,o,n,e[14],4259657740,23),n=ca(n,r,i,o,e[1],2763975236,4),o=ca(o,n,r,i,e[4],1272893353,11),i=ca(i,o,n,r,e[7],4139469664,16),r=ca(r,i,o,n,e[10],3200236656,23),n=ca(n,r,i,o,e[13],681279174,4),o=ca(o,n,r,i,e[0],3936430074,11),i=ca(i,o,n,r,e[3],3572445317,16),r=ca(r,i,o,n,e[6],76029189,23),n=ca(n,r,i,o,e[9],3654602809,4),o=ca(o,n,r,i,e[12],3873151461,11),i=ca(i,o,n,r,e[15],530742520,16),n=da(n,r=ca(r,i,o,n,e[2],3299628645,23),i,o,e[0],4096336452,6),o=da(o,n,r,i,e[7],1126891415,10),i=da(i,o,n,r,e[14],2878612391,15),r=da(r,i,o,n,e[5],4237533241,21),n=da(n,r,i,o,e[12],1700485571,6),o=da(o,n,r,i,e[3],2399980690,10),i=da(i,o,n,r,e[10],4293915773,15),r=da(r,i,o,n,e[1],2240044497,21),n=da(n,r,i,o,e[8],1873313359,6),o=da(o,n,r,i,e[15],4264355552,10),i=da(i,o,n,r,e[6],2734768916,15),r=da(r,i,o,n,e[13],1309151649,21),n=da(n,r,i,o,e[4],4149444226,6),o=da(o,n,r,i,e[11],3174756917,10),i=da(i,o,n,r,e[2],718787259,15),r=da(r,i,o,n,e[9],3951481745,21),this._a=this._a+n|0,this._b=this._b+r|0,this._c=this._c+i|0,this._d=this._d+o|0},aa.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var e=ia.allocUnsafe(16);return e.writeInt32LE(this._a,0),e.writeInt32LE(this._b,4),e.writeInt32LE(this._c,8),e.writeInt32LE(this._d,12),e};var fa=aa,ha=yr.Buffer,pa=Jr,ma=ta,ga=new Array(16),va=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],ya=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],ba=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],wa=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11],Aa=[0,1518500249,1859775393,2400959708,2840853838],_a=[1352829926,1548603684,1836072691,2053994217,0];function Ea(){ma.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520}function Sa(e,t){return e<>>32-t}function ka(e,t,n,r,i,o,a,s){return Sa(e+(t^n^r)+o+a|0,s)+i|0}function Ma(e,t,n,r,i,o,a,s){return Sa(e+(t&n|~t&r)+o+a|0,s)+i|0}function Ca(e,t,n,r,i,o,a,s){return Sa(e+((t|~n)^r)+o+a|0,s)+i|0}function xa(e,t,n,r,i,o,a,s){return Sa(e+(t&r|n&~r)+o+a|0,s)+i|0}function Ra(e,t,n,r,i,o,a,s){return Sa(e+(t^(n|~r))+o+a|0,s)+i|0}pa(Ea,ma),Ea.prototype._update=function(){for(var e=ga,t=0;t<16;++t)e[t]=this._block.readInt32LE(4*t);for(var n=0|this._a,r=0|this._b,i=0|this._c,o=0|this._d,a=0|this._e,s=0|this._a,u=0|this._b,l=0|this._c,c=0|this._d,d=0|this._e,f=0;f<80;f+=1){var h,p;f<16?(h=ka(n,r,i,o,a,e[va[f]],Aa[0],ba[f]),p=Ra(s,u,l,c,d,e[ya[f]],_a[0],wa[f])):f<32?(h=Ma(n,r,i,o,a,e[va[f]],Aa[1],ba[f]),p=xa(s,u,l,c,d,e[ya[f]],_a[1],wa[f])):f<48?(h=Ca(n,r,i,o,a,e[va[f]],Aa[2],ba[f]),p=Ca(s,u,l,c,d,e[ya[f]],_a[2],wa[f])):f<64?(h=xa(n,r,i,o,a,e[va[f]],Aa[3],ba[f]),p=Ma(s,u,l,c,d,e[ya[f]],_a[3],wa[f])):(h=Ra(n,r,i,o,a,e[va[f]],Aa[4],ba[f]),p=ka(s,u,l,c,d,e[ya[f]],_a[4],wa[f])),n=a,a=o,o=Sa(i,10),i=r,r=h,s=d,d=c,c=Sa(l,10),l=u,u=p}var m=this._b+i+c|0;this._b=this._c+o+d|0,this._c=this._d+a+s|0,this._d=this._e+n+u|0,this._e=this._a+r+l|0,this._a=m},Ea.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var e=ha.alloc?ha.alloc(20):new ha(20);return e.writeInt32LE(this._a,0),e.writeInt32LE(this._b,4),e.writeInt32LE(this._c,8),e.writeInt32LE(this._d,12),e.writeInt32LE(this._e,16),e};var Oa=Ea,Ta={exports:{}},Pa=$r.Buffer;function La(e,t){this._block=Pa.alloc(e),this._finalSize=t,this._blockSize=e,this._len=0}La.prototype.update=function(e,t){"string"==typeof e&&(t=t||"utf8",e=Pa.from(e,t));for(var n=this._block,r=this._blockSize,i=e.length,o=this._len,a=0;a=this._finalSize&&(this._update(this._block),this._block.fill(0));var n=8*this._len;if(n<=4294967295)this._block.writeUInt32BE(n,this._blockSize-4);else{var r=(4294967295&n)>>>0,i=(n-r)/4294967296;this._block.writeUInt32BE(i,this._blockSize-8),this._block.writeUInt32BE(r,this._blockSize-4)}this._update(this._block);var o=this._hash();return e?o.toString(e):o},La.prototype._update=function(){throw new Error("_update must be implemented by subclass")};var Ia=La,Na=Jr,Da=Ia,Ba=$r.Buffer,ja=[1518500249,1859775393,-1894007588,-899497514],Ua=new Array(80);function za(){this.init(),this._w=Ua,Da.call(this,64,56)}function Fa(e){return e<<30|e>>>2}function qa(e,t,n,r){return 0===e?t&n|~t&r:2===e?t&n|t&r|n&r:t^n^r}Na(za,Da),za.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},za.prototype._update=function(e){for(var t,n=this._w,r=0|this._a,i=0|this._b,o=0|this._c,a=0|this._d,s=0|this._e,u=0;u<16;++u)n[u]=e.readInt32BE(4*u);for(;u<80;++u)n[u]=n[u-3]^n[u-8]^n[u-14]^n[u-16];for(var l=0;l<80;++l){var c=~~(l/20),d=0|((t=r)<<5|t>>>27)+qa(c,i,o,a)+s+n[l]+ja[c];s=a,a=o,o=Fa(i),i=r,r=d}this._a=r+this._a|0,this._b=i+this._b|0,this._c=o+this._c|0,this._d=a+this._d|0,this._e=s+this._e|0},za.prototype._hash=function(){var e=Ba.allocUnsafe(20);return e.writeInt32BE(0|this._a,0),e.writeInt32BE(0|this._b,4),e.writeInt32BE(0|this._c,8),e.writeInt32BE(0|this._d,12),e.writeInt32BE(0|this._e,16),e};var Wa=za,Va=Jr,Ka=Ia,Ha=$r.Buffer,$a=[1518500249,1859775393,-1894007588,-899497514],Ya=new Array(80);function Ga(){this.init(),this._w=Ya,Ka.call(this,64,56)}function Qa(e){return e<<5|e>>>27}function Za(e){return e<<30|e>>>2}function Xa(e,t,n,r){return 0===e?t&n|~t&r:2===e?t&n|t&r|n&r:t^n^r}Va(Ga,Ka),Ga.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},Ga.prototype._update=function(e){for(var t,n=this._w,r=0|this._a,i=0|this._b,o=0|this._c,a=0|this._d,s=0|this._e,u=0;u<16;++u)n[u]=e.readInt32BE(4*u);for(;u<80;++u)n[u]=(t=n[u-3]^n[u-8]^n[u-14]^n[u-16])<<1|t>>>31;for(var l=0;l<80;++l){var c=~~(l/20),d=Qa(r)+Xa(c,i,o,a)+s+n[l]+$a[c]|0;s=a,a=o,o=Za(i),i=r,r=d}this._a=r+this._a|0,this._b=i+this._b|0,this._c=o+this._c|0,this._d=a+this._d|0,this._e=s+this._e|0},Ga.prototype._hash=function(){var e=Ha.allocUnsafe(20);return e.writeInt32BE(0|this._a,0),e.writeInt32BE(0|this._b,4),e.writeInt32BE(0|this._c,8),e.writeInt32BE(0|this._d,12),e.writeInt32BE(0|this._e,16),e};var Ja=Ga,es=Jr,ts=Ia,ns=$r.Buffer,rs=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],is=new Array(64);function os(){this.init(),this._w=is,ts.call(this,64,56)}function as(e,t,n){return n^e&(t^n)}function ss(e,t,n){return e&t|n&(e|t)}function us(e){return(e>>>2|e<<30)^(e>>>13|e<<19)^(e>>>22|e<<10)}function ls(e){return(e>>>6|e<<26)^(e>>>11|e<<21)^(e>>>25|e<<7)}function cs(e){return(e>>>7|e<<25)^(e>>>18|e<<14)^e>>>3}es(os,ts),os.prototype.init=function(){return this._a=1779033703,this._b=3144134277,this._c=1013904242,this._d=2773480762,this._e=1359893119,this._f=2600822924,this._g=528734635,this._h=1541459225,this},os.prototype._update=function(e){for(var t,n=this._w,r=0|this._a,i=0|this._b,o=0|this._c,a=0|this._d,s=0|this._e,u=0|this._f,l=0|this._g,c=0|this._h,d=0;d<16;++d)n[d]=e.readInt32BE(4*d);for(;d<64;++d)n[d]=0|(((t=n[d-2])>>>17|t<<15)^(t>>>19|t<<13)^t>>>10)+n[d-7]+cs(n[d-15])+n[d-16];for(var f=0;f<64;++f){var h=c+ls(s)+as(s,u,l)+rs[f]+n[f]|0,p=us(r)+ss(r,i,o)|0;c=l,l=u,u=s,s=a+h|0,a=o,o=i,i=r,r=h+p|0}this._a=r+this._a|0,this._b=i+this._b|0,this._c=o+this._c|0,this._d=a+this._d|0,this._e=s+this._e|0,this._f=u+this._f|0,this._g=l+this._g|0,this._h=c+this._h|0},os.prototype._hash=function(){var e=ns.allocUnsafe(32);return e.writeInt32BE(this._a,0),e.writeInt32BE(this._b,4),e.writeInt32BE(this._c,8),e.writeInt32BE(this._d,12),e.writeInt32BE(this._e,16),e.writeInt32BE(this._f,20),e.writeInt32BE(this._g,24),e.writeInt32BE(this._h,28),e};var ds=os,fs=Jr,hs=ds,ps=Ia,ms=$r.Buffer,gs=new Array(64);function vs(){this.init(),this._w=gs,ps.call(this,64,56)}fs(vs,hs),vs.prototype.init=function(){return this._a=3238371032,this._b=914150663,this._c=812702999,this._d=4144912697,this._e=4290775857,this._f=1750603025,this._g=1694076839,this._h=3204075428,this},vs.prototype._hash=function(){var e=ms.allocUnsafe(28);return e.writeInt32BE(this._a,0),e.writeInt32BE(this._b,4),e.writeInt32BE(this._c,8),e.writeInt32BE(this._d,12),e.writeInt32BE(this._e,16),e.writeInt32BE(this._f,20),e.writeInt32BE(this._g,24),e};var ys=vs,bs=Jr,ws=Ia,As=$r.Buffer,_s=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591],Es=new Array(160);function Ss(){this.init(),this._w=Es,ws.call(this,128,112)}function ks(e,t,n){return n^e&(t^n)}function Ms(e,t,n){return e&t|n&(e|t)}function Cs(e,t){return(e>>>28|t<<4)^(t>>>2|e<<30)^(t>>>7|e<<25)}function xs(e,t){return(e>>>14|t<<18)^(e>>>18|t<<14)^(t>>>9|e<<23)}function Rs(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^e>>>7}function Os(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^(e>>>7|t<<25)}function Ts(e,t){return(e>>>19|t<<13)^(t>>>29|e<<3)^e>>>6}function Ps(e,t){return(e>>>19|t<<13)^(t>>>29|e<<3)^(e>>>6|t<<26)}function Ls(e,t){return e>>>0>>0?1:0}bs(Ss,ws),Ss.prototype.init=function(){return this._ah=1779033703,this._bh=3144134277,this._ch=1013904242,this._dh=2773480762,this._eh=1359893119,this._fh=2600822924,this._gh=528734635,this._hh=1541459225,this._al=4089235720,this._bl=2227873595,this._cl=4271175723,this._dl=1595750129,this._el=2917565137,this._fl=725511199,this._gl=4215389547,this._hl=327033209,this},Ss.prototype._update=function(e){for(var t=this._w,n=0|this._ah,r=0|this._bh,i=0|this._ch,o=0|this._dh,a=0|this._eh,s=0|this._fh,u=0|this._gh,l=0|this._hh,c=0|this._al,d=0|this._bl,f=0|this._cl,h=0|this._dl,p=0|this._el,m=0|this._fl,g=0|this._gl,v=0|this._hl,y=0;y<32;y+=2)t[y]=e.readInt32BE(4*y),t[y+1]=e.readInt32BE(4*y+4);for(;y<160;y+=2){var b=t[y-30],w=t[y-30+1],A=Rs(b,w),_=Os(w,b),E=Ts(b=t[y-4],w=t[y-4+1]),S=Ps(w,b),k=t[y-14],M=t[y-14+1],C=t[y-32],x=t[y-32+1],R=_+M|0,O=A+k+Ls(R,_)|0;O=(O=O+E+Ls(R=R+S|0,S)|0)+C+Ls(R=R+x|0,x)|0,t[y]=O,t[y+1]=R}for(var T=0;T<160;T+=2){O=t[T],R=t[T+1];var P=Ms(n,r,i),L=Ms(c,d,f),I=Cs(n,c),N=Cs(c,n),D=xs(a,p),B=xs(p,a),j=_s[T],U=_s[T+1],z=ks(a,s,u),F=ks(p,m,g),q=v+B|0,W=l+D+Ls(q,v)|0;W=(W=(W=W+z+Ls(q=q+F|0,F)|0)+j+Ls(q=q+U|0,U)|0)+O+Ls(q=q+R|0,R)|0;var V=N+L|0,K=I+P+Ls(V,N)|0;l=u,v=g,u=s,g=m,s=a,m=p,a=o+W+Ls(p=h+q|0,h)|0,o=i,h=f,i=r,f=d,r=n,d=c,n=W+K+Ls(c=q+V|0,q)|0}this._al=this._al+c|0,this._bl=this._bl+d|0,this._cl=this._cl+f|0,this._dl=this._dl+h|0,this._el=this._el+p|0,this._fl=this._fl+m|0,this._gl=this._gl+g|0,this._hl=this._hl+v|0,this._ah=this._ah+n+Ls(this._al,c)|0,this._bh=this._bh+r+Ls(this._bl,d)|0,this._ch=this._ch+i+Ls(this._cl,f)|0,this._dh=this._dh+o+Ls(this._dl,h)|0,this._eh=this._eh+a+Ls(this._el,p)|0,this._fh=this._fh+s+Ls(this._fl,m)|0,this._gh=this._gh+u+Ls(this._gl,g)|0,this._hh=this._hh+l+Ls(this._hl,v)|0},Ss.prototype._hash=function(){var e=As.allocUnsafe(64);function t(t,n,r){e.writeInt32BE(t,r),e.writeInt32BE(n,r+4)}return t(this._ah,this._al,0),t(this._bh,this._bl,8),t(this._ch,this._cl,16),t(this._dh,this._dl,24),t(this._eh,this._el,32),t(this._fh,this._fl,40),t(this._gh,this._gl,48),t(this._hh,this._hl,56),e};var Is=Ss,Ns=Jr,Ds=Is,Bs=Ia,js=$r.Buffer,Us=new Array(160);function zs(){this.init(),this._w=Us,Bs.call(this,128,112)}Ns(zs,Ds),zs.prototype.init=function(){return this._ah=3418070365,this._bh=1654270250,this._ch=2438529370,this._dh=355462360,this._eh=1731405415,this._fh=2394180231,this._gh=3675008525,this._hh=1203062813,this._al=3238371032,this._bl=914150663,this._cl=812702999,this._dl=4144912697,this._el=4290775857,this._fl=1750603025,this._gl=1694076839,this._hl=3204075428,this},zs.prototype._hash=function(){var e=js.allocUnsafe(48);function t(t,n,r){e.writeInt32BE(t,r),e.writeInt32BE(n,r+4)}return t(this._ah,this._al,0),t(this._bh,this._bl,8),t(this._ch,this._cl,16),t(this._dh,this._dl,24),t(this._eh,this._el,32),t(this._fh,this._fl,40),e};var Fs=zs,qs=Ta.exports=function(e){e=e.toLowerCase();var t=qs[e];if(!t)throw new Error(e+" is not supported (we accept pull requests)");return new t};qs.sha=Wa,qs.sha1=Ja,qs.sha224=ys,qs.sha256=ds,qs.sha384=Fs,qs.sha512=Is;var Ws=Ta.exports;function Vs(){this.head=null,this.tail=null,this.length=0}Vs.prototype.push=function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length},Vs.prototype.unshift=function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length},Vs.prototype.shift=function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}},Vs.prototype.clear=function(){this.head=this.tail=null,this.length=0},Vs.prototype.join=function(e){if(0===this.length)return"";for(var t=this.head,n=""+t.data;t=t.next;)n+=e+t.data;return n},Vs.prototype.concat=function(e){if(0===this.length)return xn.alloc(0);if(1===this.length)return this.head.data;for(var t=xn.allocUnsafe(e>>>0),n=this.head,r=0;n;)n.data.copy(t,r),r+=n.data.length,n=n.next;return t};var Ks=xn.isEncoding||function(e){switch(e&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function Hs(e){switch(this.encoding=(e||"utf8").toLowerCase().replace(/[-_]/,""),function(e){if(e&&!Ks(e))throw new Error("Unknown encoding: "+e)}(e),this.encoding){case"utf8":this.surrogateSize=3;break;case"ucs2":case"utf16le":this.surrogateSize=2,this.detectIncompleteChar=Ys;break;case"base64":this.surrogateSize=3,this.detectIncompleteChar=Gs;break;default:return void(this.write=$s)}this.charBuffer=new xn(6),this.charReceived=0,this.charLength=0}function $s(e){return e.toString(this.encoding)}function Ys(e){this.charReceived=e.length%2,this.charLength=this.charReceived?2:0}function Gs(e){this.charReceived=e.length%3,this.charLength=this.charReceived?3:0}Hs.prototype.write=function(e){for(var t="";this.charLength;){var n=e.length>=this.charLength-this.charReceived?this.charLength-this.charReceived:e.length;if(e.copy(this.charBuffer,this.charReceived,0,n),this.charReceived+=n,this.charReceived=55296&&r<=56319)){if(this.charReceived=this.charLength=0,0===e.length)return t;break}this.charLength+=this.surrogateSize,t=""}this.detectIncompleteChar(e);var r,i=e.length;if(this.charLength&&(e.copy(this.charBuffer,0,e.length-this.charReceived,i),i-=this.charReceived),i=(t+=e.toString(this.encoding,0,i)).length-1,(r=t.charCodeAt(i))>=55296&&r<=56319){var o=this.surrogateSize;return this.charLength+=o,this.charReceived+=o,this.charBuffer.copy(this.charBuffer,o,0,o),e.copy(this.charBuffer,0,0,o),t.substring(0,i)}return t},Hs.prototype.detectIncompleteChar=function(e){for(var t=e.length>=3?3:e.length;t>0;t--){var n=e[e.length-t];if(1==t&&n>>5==6){this.charLength=2;break}if(t<=2&&n>>4==14){this.charLength=3;break}if(t<=3&&n>>3==30){this.charLength=4;break}}this.charReceived=t},Hs.prototype.end=function(e){var t="";if(e&&e.length&&(t=this.write(e)),this.charReceived){var n=this.charReceived,r=this.charBuffer,i=this.encoding;t+=r.slice(0,n).toString(i)}return t};var Qs=Object.freeze({__proto__:null,StringDecoder:Hs});Js.ReadableState=Xs;var Zs=gi("stream");function Xs(e,t){e=e||{},this.objectMode=!!e.objectMode,t instanceof Cu&&(this.objectMode=this.objectMode||!!e.readableObjectMode);var n=e.highWaterMark,r=this.objectMode?16:16384;this.highWaterMark=n||0===n?n:r,this.highWaterMark=~~this.highWaterMark,this.buffer=new Vs,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.ranOut=!1,this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(this.decoder=new Hs(e.encoding),this.encoding=e.encoding)}function Js(e){if(!(this instanceof Js))return new Js(e);this._readableState=new Xs(e,this),this.readable=!0,e&&"function"==typeof e.read&&(this._read=e.read),ni.call(this)}function eu(e,t,n,r,i){var o=function(e,t){var n=null;return dr(t)||"string"==typeof t||null==t||e.objectMode||(n=new TypeError("Invalid non-string/buffer chunk")),n}(t,n);if(o)e.emit("error",o);else if(null===n)t.reading=!1,function(e,t){if(!t.ended){if(t.decoder){var n=t.decoder.end();n&&n.length&&(t.buffer.push(n),t.length+=t.objectMode?1:n.length)}t.ended=!0,ru(e)}}(e,t);else if(t.objectMode||n&&n.length>0)if(t.ended&&!i){var a=new Error("stream.push() after EOF");e.emit("error",a)}else if(t.endEmitted&&i){var s=new Error("stream.unshift() after end event");e.emit("error",s)}else{var u;!t.decoder||i||r||(n=t.decoder.write(n),u=!t.objectMode&&0===n.length),i||(t.reading=!1),u||(t.flowing&&0===t.length&&!t.sync?(e.emit("data",n),e.read(0)):(t.length+=t.objectMode?1:n.length,i?t.buffer.unshift(n):t.buffer.push(n),t.needReadable&&ru(e))),function(e,t){t.readingMore||(t.readingMore=!0,Tr(ou,e,t))}(e,t)}else i||(t.reading=!1);return function(e){return!e.ended&&(e.needReadable||e.lengtht.highWaterMark&&(t.highWaterMark=function(e){return e>=tu?e=tu:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function ru(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(Zs("emitReadable",t.flowing),t.emittedReadable=!0,t.sync?Tr(iu,e):iu(e))}function iu(e){Zs("emit readable"),e.emit("readable"),uu(e)}function ou(e,t){for(var n=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length=t.length?(n=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.head.data:t.buffer.concat(t.length),t.buffer.clear()):n=function(e,t,n){var r;return eo.length?o.length:e;if(a===o.length?i+=o:i+=o.slice(0,e),0==(e-=a)){a===o.length?(++r,n.next?t.head=n.next:t.head=t.tail=null):(t.head=n,n.data=o.slice(a));break}++r}return t.length-=r,i}(e,t):function(e,t){var n=xn.allocUnsafe(e),r=t.head,i=1;for(r.data.copy(n),e-=r.data.length;r=r.next;){var o=r.data,a=e>o.length?o.length:e;if(o.copy(n,n.length-e,0,a),0==(e-=a)){a===o.length?(++i,r.next?t.head=r.next:t.head=t.tail=null):(t.head=r,r.data=o.slice(a));break}++i}return t.length-=i,n}(e,t),r}(e,t.buffer,t.decoder),n);var n}function cu(e){var t=e._readableState;if(t.length>0)throw new Error('"endReadable()" called on non-empty stream');t.endEmitted||(t.ended=!0,Tr(du,t,e))}function du(e,t){e.endEmitted||0!==e.length||(e.endEmitted=!0,t.readable=!1,t.emit("end"))}function fu(e,t){for(var n=0,r=e.length;n=t.highWaterMark||t.ended))return Zs("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?cu(this):ru(this),null;if(0===(e=nu(e,t))&&t.ended)return 0===t.length&&cu(this),null;var r,i=t.needReadable;return Zs("need readable",i),(0===t.length||t.length-e0?lu(e,t):null)?(t.needReadable=!0,e=0):t.length-=e,0===t.length&&(t.ended||(t.needReadable=!0),n!==e&&t.ended&&cu(this)),null!==r&&this.emit("data",r),r},Js.prototype._read=function(e){this.emit("error",new Error("not implemented"))},Js.prototype.pipe=function(e,t){var n=this,r=this._readableState;switch(r.pipesCount){case 0:r.pipes=e;break;case 1:r.pipes=[r.pipes,e];break;default:r.pipes.push(e)}r.pipesCount+=1,Zs("pipe count=%d opts=%j",r.pipesCount,t);var i=t&&!1===t.end?l:a;function o(e){Zs("onunpipe"),e===n&&l()}function a(){Zs("onend"),e.end()}r.endEmitted?Tr(i):n.once("end",i),e.on("unpipe",o);var s=function(e){return function(){var t=e._readableState;Zs("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&e.listeners("data").length&&(t.flowing=!0,uu(e))}}(n);e.on("drain",s);var u=!1;function l(){Zs("cleanup"),e.removeListener("close",h),e.removeListener("finish",p),e.removeListener("drain",s),e.removeListener("error",f),e.removeListener("unpipe",o),n.removeListener("end",a),n.removeListener("end",l),n.removeListener("data",d),u=!0,!r.awaitDrain||e._writableState&&!e._writableState.needDrain||s()}var c=!1;function d(t){Zs("ondata"),c=!1,!1!==e.write(t)||c||((1===r.pipesCount&&r.pipes===e||r.pipesCount>1&&-1!==fu(r.pipes,e))&&!u&&(Zs("false write response, pause",n._readableState.awaitDrain),n._readableState.awaitDrain++,c=!0),n.pause())}function f(t){Zs("onerror",t),m(),e.removeListener("error",f),0===e.listeners("error").length&&e.emit("error",t)}function h(){e.removeListener("finish",p),m()}function p(){Zs("onfinish"),e.removeListener("close",h),m()}function m(){Zs("unpipe"),n.unpipe(e)}return n.on("data",d),function(e,t,n){if("function"==typeof e.prependListener)return e.prependListener(t,n);e._events&&e._events[t]?Array.isArray(e._events[t])?e._events[t].unshift(n):e._events[t]=[n,e._events[t]]:e.on(t,n)}(e,"error",f),e.once("close",h),e.once("finish",p),e.emit("pipe",n),r.flowing||(Zs("pipe resume"),n.resume()),e},Js.prototype.unpipe=function(e){var t=this._readableState;if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this)),this;if(!e){var n=t.pipes,r=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var i=0;i-1))throw new TypeError("Unknown encoding: "+e);return this._writableState.defaultEncoding=e,this},gu.prototype._write=function(e,t,n){n(new Error("not implemented"))},gu.prototype._writev=null,gu.prototype.end=function(e,t,n){var r=this._writableState;"function"==typeof e?(n=e,e=null,t=null):"function"==typeof t&&(n=t,t=null),null!=e&&this.write(e,t),r.corked&&(r.corked=1,this.uncork()),r.ending||r.finished||function(e,t,n){t.ending=!0,_u(e,t),n&&(t.finished?Tr(n):e.once("finish",n)),t.ended=!0,e.writable=!1}(this,r,n)},ci(Cu,Js);for(var Su=Object.keys(gu.prototype),ku=0;kuXu?t=e(t):t.lengthn?t=("rmd160"===e?new sl:ul(e)).update(t).digest():t.lengthml||t!=t)throw new TypeError("Bad key length")},vl=hr.process&&hr.process.browser?"utf-8":hr.process&&hr.process.version?parseInt(Vr.version.split(".")[0].slice(1),10)>=6?"utf-8":"binary":"utf-8",yl=$r.Buffer,bl=function(e,t,n){if(yl.isBuffer(e))return e;if("string"==typeof e)return yl.from(e,t);if(ArrayBuffer.isView(e))return yl.from(e.buffer);throw new TypeError(n+" must be a string, a Buffer, a typed array or a DataView")},wl=tl,Al=Oa,_l=Ws,El=$r.Buffer,Sl=gl,kl=vl,Ml=bl,Cl=El.alloc(128),xl={md5:16,sha1:20,sha224:28,sha256:32,sha384:48,sha512:64,rmd160:20,ripemd160:20};function Rl(e,t,n){var r=function(e){return"rmd160"===e||"ripemd160"===e?function(e){return(new Al).update(e).digest()}:"md5"===e?wl:function(t){return _l(e).update(t).digest()}}(e),i="sha512"===e||"sha384"===e?128:64;t.length>i?t=r(t):t.length>>0},writeUInt32BE:function(e,t,n){e[0+n]=t>>>24,e[1+n]=t>>>16&255,e[2+n]=t>>>8&255,e[3+n]=255&t},ip:function(e,t,n,r){for(var i=0,o=0,a=6;a>=0;a-=2){for(var s=0;s<=24;s+=8)i<<=1,i|=t>>>s+a&1;for(s=0;s<=24;s+=8)i<<=1,i|=e>>>s+a&1}for(a=6;a>=0;a-=2){for(s=1;s<=25;s+=8)o<<=1,o|=t>>>s+a&1;for(s=1;s<=25;s+=8)o<<=1,o|=e>>>s+a&1}n[r+0]=i>>>0,n[r+1]=o>>>0},rip:function(e,t,n,r){for(var i=0,o=0,a=0;a<4;a++)for(var s=24;s>=0;s-=8)i<<=1,i|=t>>>s+a&1,i<<=1,i|=e>>>s+a&1;for(a=4;a<8;a++)for(s=24;s>=0;s-=8)o<<=1,o|=t>>>s+a&1,o<<=1,o|=e>>>s+a&1;n[r+0]=i>>>0,n[r+1]=o>>>0},pc1:function(e,t,n,r){for(var i=0,o=0,a=7;a>=5;a--){for(var s=0;s<=24;s+=8)i<<=1,i|=t>>s+a&1;for(s=0;s<=24;s+=8)i<<=1,i|=e>>s+a&1}for(s=0;s<=24;s+=8)i<<=1,i|=t>>s+a&1;for(a=1;a<=3;a++){for(s=0;s<=24;s+=8)o<<=1,o|=t>>s+a&1;for(s=0;s<=24;s+=8)o<<=1,o|=e>>s+a&1}for(s=0;s<=24;s+=8)o<<=1,o|=e>>s+a&1;n[r+0]=i>>>0,n[r+1]=o>>>0},r28shl:function(e,t){return e<>>28-t}},Hl=[14,11,17,4,27,23,25,0,13,22,7,18,5,9,16,24,2,20,12,21,1,8,15,26,15,4,25,19,9,1,26,16,5,11,23,8,12,7,17,0,22,3,10,14,6,20,27,24];Kl.pc2=function(e,t,n,r){for(var i=0,o=0,a=Hl.length>>>1,s=0;s>>Hl[s]&1;for(s=a;s>>Hl[s]&1;n[r+0]=i>>>0,n[r+1]=o>>>0},Kl.expand=function(e,t,n){var r=0,i=0;r=(1&e)<<5|e>>>27;for(var o=23;o>=15;o-=4)r<<=6,r|=e>>>o&63;for(o=11;o>=3;o-=4)i|=e>>>o&63,i<<=6;i|=(31&e)<<1|e>>>31,t[n+0]=r>>>0,t[n+1]=i>>>0};var $l=[14,0,4,15,13,7,1,4,2,14,15,2,11,13,8,1,3,10,10,6,6,12,12,11,5,9,9,5,0,3,7,8,4,15,1,12,14,8,8,2,13,4,6,9,2,1,11,7,15,5,12,11,9,3,7,14,3,10,10,0,5,6,0,13,15,3,1,13,8,4,14,7,6,15,11,2,3,8,4,14,9,12,7,0,2,1,13,10,12,6,0,9,5,11,10,5,0,13,14,8,7,10,11,1,10,3,4,15,13,4,1,2,5,11,8,6,12,7,6,12,9,0,3,5,2,14,15,9,10,13,0,7,9,0,14,9,6,3,3,4,15,6,5,10,1,2,13,8,12,5,7,14,11,12,4,11,2,15,8,1,13,1,6,10,4,13,9,0,8,6,15,9,3,8,0,7,11,4,1,15,2,14,12,3,5,11,10,5,14,2,7,12,7,13,13,8,14,11,3,5,0,6,6,15,9,0,10,3,1,4,2,7,8,2,5,12,11,1,12,10,4,14,15,9,10,3,6,15,9,0,0,6,12,10,11,1,7,13,13,8,15,9,1,4,3,5,14,11,5,12,2,7,8,2,4,14,2,14,12,11,4,2,1,12,7,4,10,7,11,13,6,1,8,5,5,0,3,15,15,10,13,3,0,9,14,8,9,6,4,11,2,8,1,12,11,7,10,1,13,14,7,2,8,13,15,6,9,15,12,0,5,9,6,10,3,4,0,5,14,3,12,10,1,15,10,4,15,2,9,7,2,12,6,9,8,5,0,6,13,1,3,13,4,14,14,0,7,11,5,3,11,8,9,4,14,3,15,2,5,12,2,9,8,5,12,15,3,10,7,11,0,14,4,1,10,7,1,6,13,0,11,8,6,13,4,13,11,0,2,11,14,7,15,4,0,9,8,1,13,10,3,14,12,3,9,5,7,12,5,2,10,15,6,8,1,6,1,6,4,11,11,13,13,8,12,1,3,4,7,10,14,7,10,9,15,5,6,0,8,15,0,14,5,2,9,3,2,12,13,1,2,15,8,13,4,8,6,10,15,3,11,7,1,4,10,12,9,5,3,6,14,11,5,0,0,14,12,9,7,2,7,2,11,1,4,14,1,7,9,4,12,10,14,8,2,13,0,15,6,12,10,9,13,0,15,3,3,5,5,6,8,11];Kl.substitute=function(e,t){for(var n=0,r=0;r<4;r++)n<<=4,n|=$l[64*r+(e>>>18-6*r&63)];for(r=0;r<4;r++)n<<=4,n|=$l[256+64*r+(t>>>18-6*r&63)];return n>>>0};var Yl=[16,25,12,11,3,20,4,15,31,17,9,6,27,14,1,22,30,24,8,18,0,5,29,23,13,19,2,26,10,21,28,7];Kl.permute=function(e){for(var t=0,n=0;n>>Yl[n]&1;return t>>>0},Kl.padSplit=function(e,t,n){for(var r=e.toString(2);r.length0;r--)t+=this._buffer(e,t),n+=this._flushBuffer(i,n);return t+=this._buffer(e,t),i},Xl.prototype.final=function(e){var t,n;return e&&(t=this.update(e)),n="encrypt"===this.type?this._finalEncrypt():this._finalDecrypt(),t?t.concat(n):n},Xl.prototype._pad=function(e,t){if(0===t)return!1;for(;t>>1];n=tc.r28shl(n,o),r=tc.r28shl(r,o),tc.pc2(n,r,e.keys,i)}},ic.prototype._update=function(e,t,n,r){var i=this._desState,o=tc.readUInt32BE(e,t),a=tc.readUInt32BE(e,t+4);tc.ip(o,a,i.tmp,0),o=i.tmp[0],a=i.tmp[1],"encrypt"===this.type?this._encrypt(i,o,a,i.tmp,0):this._decrypt(i,o,a,i.tmp,0),o=i.tmp[0],a=i.tmp[1],tc.writeUInt32BE(n,o,r),tc.writeUInt32BE(n,a,r+4)},ic.prototype._pad=function(e,t){if(!1===this.padding)return!1;for(var n=e.length-t,r=t;r>>0,o=d}tc.rip(a,o,r,i)},ic.prototype._decrypt=function(e,t,n,r,i){for(var o=n,a=t,s=e.keys.length-2;s>=0;s-=2){var u=e.keys[s],l=e.keys[s+1];tc.expand(o,e.tmp,0),u^=e.tmp[0],l^=e.tmp[1];var c=tc.substitute(u,l),d=o;o=(a^tc.permute(c))>>>0,a=d}tc.rip(o,a,r,i)};var sc={},uc=Gl,lc=Jr,cc={};function dc(e){uc.equal(e.length,8,"Invalid IV length"),this.iv=new Array(8);for(var t=0;t>o%8,e._prev=zc(e._prev,n?r:i);return a}function zc(e,t){var n=e.length,r=-1,i=jc.allocUnsafe(e.length);for(e=jc.concat([e,jc.from([t])]);++r>7;return i}Bc.encrypt=function(e,t,n){for(var r=t.length,i=jc.allocUnsafe(r),o=-1;++o>>24]^c[p>>>16&255]^d[m>>>8&255]^f[255&g]^t[v++],a=l[p>>>24]^c[m>>>16&255]^d[g>>>8&255]^f[255&h]^t[v++],s=l[m>>>24]^c[g>>>16&255]^d[h>>>8&255]^f[255&p]^t[v++],u=l[g>>>24]^c[h>>>16&255]^d[p>>>8&255]^f[255&m]^t[v++],h=o,p=a,m=s,g=u;return o=(r[h>>>24]<<24|r[p>>>16&255]<<16|r[m>>>8&255]<<8|r[255&g])^t[v++],a=(r[p>>>24]<<24|r[m>>>16&255]<<16|r[g>>>8&255]<<8|r[255&h])^t[v++],s=(r[m>>>24]<<24|r[g>>>16&255]<<16|r[h>>>8&255]<<8|r[255&p])^t[v++],u=(r[g>>>24]<<24|r[h>>>16&255]<<16|r[p>>>8&255]<<8|r[255&m])^t[v++],[o>>>=0,a>>>=0,s>>>=0,u>>>=0]}var ad=[0,1,2,4,8,16,32,64,128,27,54],sd=function(){for(var e=new Array(256),t=0;t<256;t++)e[t]=t<128?t<<1:t<<1^283;for(var n=[],r=[],i=[[],[],[],[]],o=[[],[],[],[]],a=0,s=0,u=0;u<256;++u){var l=s^s<<1^s<<2^s<<3^s<<4;l=l>>>8^255&l^99,n[a]=l,r[l]=a;var c=e[a],d=e[c],f=e[d],h=257*e[l]^16843008*l;i[0][a]=h<<24|h>>>8,i[1][a]=h<<16|h>>>16,i[2][a]=h<<8|h>>>24,i[3][a]=h,h=16843009*f^65537*d^257*c^16843008*a,o[0][l]=h<<24|h>>>8,o[1][l]=h<<16|h>>>16,o[2][l]=h<<8|h>>>24,o[3][l]=h,0===a?a=s=1:(a=c^e[e[e[f^c]]],s^=e[e[s]])}return{SBOX:n,INV_SBOX:r,SUB_MIX:i,INV_SUB_MIX:o}}();function ud(e){this._key=rd(e),this._reset()}ud.blockSize=16,ud.keySize=32,ud.prototype.blockSize=ud.blockSize,ud.prototype.keySize=ud.keySize,ud.prototype._reset=function(){for(var e=this._key,t=e.length,n=t+6,r=4*(n+1),i=[],o=0;o>>24,a=sd.SBOX[a>>>24]<<24|sd.SBOX[a>>>16&255]<<16|sd.SBOX[a>>>8&255]<<8|sd.SBOX[255&a],a^=ad[o/t|0]<<24):t>6&&o%t==4&&(a=sd.SBOX[a>>>24]<<24|sd.SBOX[a>>>16&255]<<16|sd.SBOX[a>>>8&255]<<8|sd.SBOX[255&a]),i[o]=i[o-t]^a}for(var s=[],u=0;u>>24]]^sd.INV_SUB_MIX[1][sd.SBOX[c>>>16&255]]^sd.INV_SUB_MIX[2][sd.SBOX[c>>>8&255]]^sd.INV_SUB_MIX[3][sd.SBOX[255&c]]}this._nRounds=n,this._keySchedule=i,this._invKeySchedule=s},ud.prototype.encryptBlockRaw=function(e){return od(e=rd(e),this._keySchedule,sd.SUB_MIX,sd.SBOX,this._nRounds)},ud.prototype.encryptBlock=function(e){var t=this.encryptBlockRaw(e),n=nd.allocUnsafe(16);return n.writeUInt32BE(t[0],0),n.writeUInt32BE(t[1],4),n.writeUInt32BE(t[2],8),n.writeUInt32BE(t[3],12),n},ud.prototype.decryptBlock=function(e){var t=(e=rd(e))[1];e[1]=e[3],e[3]=t;var n=od(e,this._invKeySchedule,sd.INV_SUB_MIX,sd.INV_SBOX,this._nRounds),r=nd.allocUnsafe(16);return r.writeUInt32BE(n[0],0),r.writeUInt32BE(n[3],4),r.writeUInt32BE(n[2],8),r.writeUInt32BE(n[1],12),r},ud.prototype.scrub=function(){id(this._keySchedule),id(this._invKeySchedule),id(this._key)},td.AES=ud;var ld=$r.Buffer,cd=ld.alloc(16,0);function dd(e){var t=ld.allocUnsafe(16);return t.writeUInt32BE(e[0]>>>0,0),t.writeUInt32BE(e[1]>>>0,4),t.writeUInt32BE(e[2]>>>0,8),t.writeUInt32BE(e[3]>>>0,12),t}function fd(e){this.h=e,this.state=ld.alloc(16,0),this.cache=ld.allocUnsafe(0)}fd.prototype.ghash=function(e){for(var t=-1;++t0;t--)r[t]=r[t]>>>1|(1&r[t-1])<<31;r[0]=r[0]>>>1,n&&(r[0]=r[0]^225<<24)}this.state=dd(i)},fd.prototype.update=function(e){var t;for(this.cache=ld.concat([this.cache,e]);this.cache.length>=16;)t=this.cache.slice(0,16),this.cache=this.cache.slice(16),this.ghash(t)},fd.prototype.final=function(e,t){return this.cache.length&&this.ghash(ld.concat([this.cache,cd],16)),this.ghash(dd([0,e,0,t])),this.state};var hd=fd,pd=td,md=$r.Buffer,gd=Fu,vd=hd,yd=xc,bd=Kc;function wd(e,t,n,r){gd.call(this);var i=md.alloc(4,0);this._cipher=new pd.AES(t);var o=this._cipher.encryptBlock(i);this._ghash=new vd(o),n=function(e,t,n){if(12===t.length)return e._finID=md.concat([t,md.from([0,0,0,1])]),md.concat([t,md.from([0,0,0,2])]);var r=new vd(n),i=t.length,o=i%16;r.update(t),o&&(o=16-o,r.update(md.alloc(o,0))),r.update(md.alloc(8,0));var a=8*i,s=md.alloc(8);s.writeUIntBE(a,0,8),r.update(s),e._finID=r.state;var u=md.from(e._finID);return bd(u),u}(this,n,o),this._prev=md.from(n),this._cache=md.allocUnsafe(0),this._secCache=md.allocUnsafe(0),this._decrypt=r,this._alen=0,this._len=0,this._mode=e,this._authTag=null,this._called=!1}Jr(wd,gd),wd.prototype._update=function(e){if(!this._called&&this._alen){var t=16-this._alen%16;t<16&&(t=md.alloc(t,0),this._ghash.update(t))}this._called=!0;var n=this._mode.encrypt(this,e);return this._decrypt?this._ghash.update(e):this._ghash.update(n),this._len+=e.length,n},wd.prototype._final=function(){if(this._decrypt&&!this._authTag)throw new Error("Unsupported state or unable to authenticate data");var e=yd(this._ghash.final(8*this._alen,8*this._len),this._cipher.encryptBlock(this._finID));if(this._decrypt&&function(e,t){var n=0;e.length!==t.length&&n++;for(var r=Math.min(e.length,t.length),i=0;i0||r>0;){var u=new xd;u.update(s),u.update(e),t&&u.update(t),s=u.digest();var l=0;if(i>0){var c=o.length-i;l=Math.min(i,s.length),s.copy(o,c,0,l),i-=l}if(l0){var d=a.length-r,f=Math.min(r,s.length-l);s.copy(a,d,l,l+f),r-=f}}return s.fill(0),{key:o,iv:a}},Od=ed,Td=Ad,Pd=$r.Buffer,Ld=Md,Id=Fu,Nd=td,Dd=Rd;function Bd(e,t,n){Id.call(this),this._cache=new Ud,this._cipher=new Nd.AES(t),this._prev=Pd.from(n),this._mode=e,this._autopadding=!0}Jr(Bd,Id),Bd.prototype._update=function(e){var t,n;this._cache.add(e);for(var r=[];t=this._cache.get();)n=this._mode.encrypt(this,t),r.push(n);return Pd.concat(r)};var jd=Pd.alloc(16,16);function Ud(){this.cache=Pd.allocUnsafe(0)}function zd(e,t,n){var r=Od[e.toLowerCase()];if(!r)throw new TypeError("invalid suite type");if("string"==typeof t&&(t=Pd.from(t)),t.length!==r.key/8)throw new TypeError("invalid key length "+t.length);if("string"==typeof n&&(n=Pd.from(n)),"GCM"!==r.mode&&n.length!==r.iv)throw new TypeError("invalid iv length "+n.length);return"stream"===r.type?new Ld(r.module,t,n):"auth"===r.type?new Td(r.module,t,n):new Bd(r.module,t,n)}Bd.prototype._final=function(){var e=this._cache.flush();if(this._autopadding)return e=this._mode.encrypt(this,e),this._cipher.scrub(),e;if(!e.equals(jd))throw this._cipher.scrub(),new Error("data not multiple of block length")},Bd.prototype.setAutoPadding=function(e){return this._autopadding=!!e,this},Ud.prototype.add=function(e){this.cache=Pd.concat([this.cache,e])},Ud.prototype.get=function(){if(this.cache.length>15){var e=this.cache.slice(0,16);return this.cache=this.cache.slice(16),e}return null},Ud.prototype.flush=function(){for(var e=16-this.cache.length,t=Pd.allocUnsafe(e),n=-1;++n16)throw new Error("unable to decrypt data");for(var n=-1;++n16)return t=this.cache.slice(0,16),this.cache=this.cache.slice(16),t}else if(this.cache.length>=16)return t=this.cache.slice(0,16),this.cache=this.cache.slice(16),t;return null},Qd.prototype.flush=function(){if(this.cache.length)return this.cache},Fd.createDecipher=function(e,t){var n=Vd[e.toLowerCase()];if(!n)throw new TypeError("invalid suite type");var r=Yd(t,!1,n.key,n.iv);return Zd(e,r.key,r.iv)},Fd.createDecipheriv=Zd;var Xd=Mc,Jd=Fd,ef=Qc;kc.createCipher=kc.Cipher=Xd.createCipher,kc.createCipheriv=kc.Cipheriv=Xd.createCipheriv,kc.createDecipher=kc.Decipher=Jd.createDecipher,kc.createDecipheriv=kc.Decipheriv=Jd.createDecipheriv,kc.listCiphers=kc.getCiphers=function(){return Object.keys(ef)};var tf={};!function(e){e["des-ecb"]={key:8,iv:0},e["des-cbc"]=e.des={key:8,iv:8},e["des-ede3-cbc"]=e.des3={key:24,iv:8},e["des-ede3"]={key:24,iv:0},e["des-ede-cbc"]={key:16,iv:8},e["des-ede"]={key:16,iv:0}}(tf);var nf=Ec,rf=kc,of=ed,af=tf,sf=Rd;function uf(e,t,n){if(e=e.toLowerCase(),of[e])return rf.createCipheriv(e,t,n);if(af[e])return new nf({key:t,iv:n,mode:e});throw new TypeError("invalid suite type")}function lf(e,t,n){if(e=e.toLowerCase(),of[e])return rf.createDecipheriv(e,t,n);if(af[e])return new nf({key:t,iv:n,mode:e,decrypt:!0});throw new TypeError("invalid suite type")}Wl.createCipher=Wl.Cipher=function(e,t){var n,r;if(e=e.toLowerCase(),of[e])n=of[e].key,r=of[e].iv;else{if(!af[e])throw new TypeError("invalid suite type");n=8*af[e].key,r=af[e].iv}var i=sf(t,!1,n,r);return uf(e,i.key,i.iv)},Wl.createCipheriv=Wl.Cipheriv=uf,Wl.createDecipher=Wl.Decipher=function(e,t){var n,r;if(e=e.toLowerCase(),of[e])n=of[e].key,r=of[e].iv;else{if(!af[e])throw new TypeError("invalid suite type");n=8*af[e].key,r=af[e].iv}var i=sf(t,!1,n,r);return lf(e,i.key,i.iv)},Wl.createDecipheriv=Wl.Decipheriv=lf,Wl.listCiphers=Wl.getCiphers=function(){return Object.keys(af).concat(rf.getCiphers())};var cf={},df={exports:{}};!function(e,t){function n(e,t){if(!e)throw new Error(t||"Assertion failed")}function r(e,t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}function i(e,t,n){if(i.isBN(e))return e;this.negative=0,this.words=null,this.length=0,this.red=null,null!==e&&("le"!==t&&"be"!==t||(n=t,t=10),this._init(e||0,t||10,n||"be"))}var o;"object"==typeof e?e.exports=i:t.BN=i,i.BN=i,i.wordSize=26;try{o="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:yr.Buffer}catch(e){}function a(e,t){var n=e.charCodeAt(t);return n>=65&&n<=70?n-55:n>=97&&n<=102?n-87:n-48&15}function s(e,t,n){var r=a(e,n);return n-1>=t&&(r|=a(e,n-1)<<4),r}function u(e,t,n,r){for(var i=0,o=Math.min(e.length,n),a=t;a=49?s-49+10:s>=17?s-17+10:s}return i}i.isBN=function(e){return e instanceof i||null!==e&&"object"==typeof e&&e.constructor.wordSize===i.wordSize&&Array.isArray(e.words)},i.max=function(e,t){return e.cmp(t)>0?e:t},i.min=function(e,t){return e.cmp(t)<0?e:t},i.prototype._init=function(e,t,r){if("number"==typeof e)return this._initNumber(e,t,r);if("object"==typeof e)return this._initArray(e,t,r);"hex"===t&&(t=16),n(t===(0|t)&&t>=2&&t<=36);var i=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&(i++,this.negative=1),i=0;i-=3)a=e[i]|e[i-1]<<8|e[i-2]<<16,this.words[o]|=a<>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);else if("le"===r)for(i=0,o=0;i>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);return this.strip()},i.prototype._parseHex=function(e,t,n){this.length=Math.ceil((e.length-t)/6),this.words=new Array(this.length);for(var r=0;r=t;r-=2)i=s(e,t,r)<=18?(o-=18,a+=1,this.words[a]|=i>>>26):o+=8;else for(r=(e.length-t)%2==0?t+1:t;r=18?(o-=18,a+=1,this.words[a]|=i>>>26):o+=8;this.strip()},i.prototype._parseBase=function(e,t,n){this.words=[0],this.length=1;for(var r=0,i=1;i<=67108863;i*=t)r++;r--,i=i/t|0;for(var o=e.length-n,a=o%r,s=Math.min(o,o-a)+n,l=0,c=n;c1&&0===this.words[this.length-1];)this.length--;return this._normSign()},i.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},i.prototype.inspect=function(){return(this.red?""};var l=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],c=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],d=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function f(e,t,n){n.negative=t.negative^e.negative;var r=e.length+t.length|0;n.length=r,r=r-1|0;var i=0|e.words[0],o=0|t.words[0],a=i*o,s=67108863&a,u=a/67108864|0;n.words[0]=s;for(var l=1;l>>26,d=67108863&u,f=Math.min(l,t.length-1),h=Math.max(0,l-e.length+1);h<=f;h++){var p=l-h|0;c+=(a=(i=0|e.words[p])*(o=0|t.words[h])+d)/67108864|0,d=67108863&a}n.words[l]=0|d,u=0|c}return 0!==u?n.words[l]=0|u:n.length--,n.strip()}i.prototype.toString=function(e,t){var r;if(t=0|t||1,16===(e=e||10)||"hex"===e){r="";for(var i=0,o=0,a=0;a>>24-i&16777215)||a!==this.length-1?l[6-u.length]+u+r:u+r,(i+=2)>=26&&(i-=26,a--)}for(0!==o&&(r=o.toString(16)+r);r.length%t!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}if(e===(0|e)&&e>=2&&e<=36){var f=c[e],h=d[e];r="";var p=this.clone();for(p.negative=0;!p.isZero();){var m=p.modn(h).toString(e);r=(p=p.idivn(h)).isZero()?m+r:l[f-m.length]+m+r}for(this.isZero()&&(r="0"+r);r.length%t!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}n(!1,"Base should be between 2 and 36")},i.prototype.toNumber=function(){var e=this.words[0];return 2===this.length?e+=67108864*this.words[1]:3===this.length&&1===this.words[2]?e+=4503599627370496+67108864*this.words[1]:this.length>2&&n(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},i.prototype.toJSON=function(){return this.toString(16)},i.prototype.toBuffer=function(e,t){return n(void 0!==o),this.toArrayLike(o,e,t)},i.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},i.prototype.toArrayLike=function(e,t,r){var i=this.byteLength(),o=r||Math.max(1,i);n(i<=o,"byte array longer than desired length"),n(o>0,"Requested array length <= 0"),this.strip();var a,s,u="le"===t,l=new e(o),c=this.clone();if(u){for(s=0;!c.isZero();s++)a=c.andln(255),c.iushrn(8),l[s]=a;for(;s=4096&&(n+=13,t>>>=13),t>=64&&(n+=7,t>>>=7),t>=8&&(n+=4,t>>>=4),t>=2&&(n+=2,t>>>=2),n+t},i.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,n=0;return 0==(8191&t)&&(n+=13,t>>>=13),0==(127&t)&&(n+=7,t>>>=7),0==(15&t)&&(n+=4,t>>>=4),0==(3&t)&&(n+=2,t>>>=2),0==(1&t)&&n++,n},i.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return 26*(this.length-1)+t},i.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;te.length?this.clone().ior(e):e.clone().ior(this)},i.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},i.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var n=0;ne.length?this.clone().iand(e):e.clone().iand(this)},i.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},i.prototype.iuxor=function(e){var t,n;this.length>e.length?(t=this,n=e):(t=e,n=this);for(var r=0;re.length?this.clone().ixor(e):e.clone().ixor(this)},i.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},i.prototype.inotn=function(e){n("number"==typeof e&&e>=0);var t=0|Math.ceil(e/26),r=e%26;this._expand(t),r>0&&t--;for(var i=0;i0&&(this.words[i]=~this.words[i]&67108863>>26-r),this.strip()},i.prototype.notn=function(e){return this.clone().inotn(e)},i.prototype.setn=function(e,t){n("number"==typeof e&&e>=0);var r=e/26|0,i=e%26;return this._expand(r+1),this.words[r]=t?this.words[r]|1<e.length?(n=this,r=e):(n=e,r=this);for(var i=0,o=0;o>>26;for(;0!==i&&o>>26;if(this.length=n.length,0!==i)this.words[this.length]=i,this.length++;else if(n!==this)for(;oe.length?this.clone().iadd(e):e.clone().iadd(this)},i.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var t=this.iadd(e);return e.negative=1,t._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var n,r,i=this.cmp(e);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(n=this,r=e):(n=e,r=this);for(var o=0,a=0;a>26,this.words[a]=67108863&t;for(;0!==o&&a>26,this.words[a]=67108863&t;if(0===o&&a>>13,h=0|a[1],p=8191&h,m=h>>>13,g=0|a[2],v=8191&g,y=g>>>13,b=0|a[3],w=8191&b,A=b>>>13,_=0|a[4],E=8191&_,S=_>>>13,k=0|a[5],M=8191&k,C=k>>>13,x=0|a[6],R=8191&x,O=x>>>13,T=0|a[7],P=8191&T,L=T>>>13,I=0|a[8],N=8191&I,D=I>>>13,B=0|a[9],j=8191&B,U=B>>>13,z=0|s[0],F=8191&z,q=z>>>13,W=0|s[1],V=8191&W,K=W>>>13,H=0|s[2],$=8191&H,Y=H>>>13,G=0|s[3],Q=8191&G,Z=G>>>13,X=0|s[4],J=8191&X,ee=X>>>13,te=0|s[5],ne=8191&te,re=te>>>13,ie=0|s[6],oe=8191&ie,ae=ie>>>13,se=0|s[7],ue=8191&se,le=se>>>13,ce=0|s[8],de=8191&ce,fe=ce>>>13,he=0|s[9],pe=8191&he,me=he>>>13;n.negative=e.negative^t.negative,n.length=19;var ge=(l+(r=Math.imul(d,F))|0)+((8191&(i=(i=Math.imul(d,q))+Math.imul(f,F)|0))<<13)|0;l=((o=Math.imul(f,q))+(i>>>13)|0)+(ge>>>26)|0,ge&=67108863,r=Math.imul(p,F),i=(i=Math.imul(p,q))+Math.imul(m,F)|0,o=Math.imul(m,q);var ve=(l+(r=r+Math.imul(d,V)|0)|0)+((8191&(i=(i=i+Math.imul(d,K)|0)+Math.imul(f,V)|0))<<13)|0;l=((o=o+Math.imul(f,K)|0)+(i>>>13)|0)+(ve>>>26)|0,ve&=67108863,r=Math.imul(v,F),i=(i=Math.imul(v,q))+Math.imul(y,F)|0,o=Math.imul(y,q),r=r+Math.imul(p,V)|0,i=(i=i+Math.imul(p,K)|0)+Math.imul(m,V)|0,o=o+Math.imul(m,K)|0;var ye=(l+(r=r+Math.imul(d,$)|0)|0)+((8191&(i=(i=i+Math.imul(d,Y)|0)+Math.imul(f,$)|0))<<13)|0;l=((o=o+Math.imul(f,Y)|0)+(i>>>13)|0)+(ye>>>26)|0,ye&=67108863,r=Math.imul(w,F),i=(i=Math.imul(w,q))+Math.imul(A,F)|0,o=Math.imul(A,q),r=r+Math.imul(v,V)|0,i=(i=i+Math.imul(v,K)|0)+Math.imul(y,V)|0,o=o+Math.imul(y,K)|0,r=r+Math.imul(p,$)|0,i=(i=i+Math.imul(p,Y)|0)+Math.imul(m,$)|0,o=o+Math.imul(m,Y)|0;var be=(l+(r=r+Math.imul(d,Q)|0)|0)+((8191&(i=(i=i+Math.imul(d,Z)|0)+Math.imul(f,Q)|0))<<13)|0;l=((o=o+Math.imul(f,Z)|0)+(i>>>13)|0)+(be>>>26)|0,be&=67108863,r=Math.imul(E,F),i=(i=Math.imul(E,q))+Math.imul(S,F)|0,o=Math.imul(S,q),r=r+Math.imul(w,V)|0,i=(i=i+Math.imul(w,K)|0)+Math.imul(A,V)|0,o=o+Math.imul(A,K)|0,r=r+Math.imul(v,$)|0,i=(i=i+Math.imul(v,Y)|0)+Math.imul(y,$)|0,o=o+Math.imul(y,Y)|0,r=r+Math.imul(p,Q)|0,i=(i=i+Math.imul(p,Z)|0)+Math.imul(m,Q)|0,o=o+Math.imul(m,Z)|0;var we=(l+(r=r+Math.imul(d,J)|0)|0)+((8191&(i=(i=i+Math.imul(d,ee)|0)+Math.imul(f,J)|0))<<13)|0;l=((o=o+Math.imul(f,ee)|0)+(i>>>13)|0)+(we>>>26)|0,we&=67108863,r=Math.imul(M,F),i=(i=Math.imul(M,q))+Math.imul(C,F)|0,o=Math.imul(C,q),r=r+Math.imul(E,V)|0,i=(i=i+Math.imul(E,K)|0)+Math.imul(S,V)|0,o=o+Math.imul(S,K)|0,r=r+Math.imul(w,$)|0,i=(i=i+Math.imul(w,Y)|0)+Math.imul(A,$)|0,o=o+Math.imul(A,Y)|0,r=r+Math.imul(v,Q)|0,i=(i=i+Math.imul(v,Z)|0)+Math.imul(y,Q)|0,o=o+Math.imul(y,Z)|0,r=r+Math.imul(p,J)|0,i=(i=i+Math.imul(p,ee)|0)+Math.imul(m,J)|0,o=o+Math.imul(m,ee)|0;var Ae=(l+(r=r+Math.imul(d,ne)|0)|0)+((8191&(i=(i=i+Math.imul(d,re)|0)+Math.imul(f,ne)|0))<<13)|0;l=((o=o+Math.imul(f,re)|0)+(i>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,r=Math.imul(R,F),i=(i=Math.imul(R,q))+Math.imul(O,F)|0,o=Math.imul(O,q),r=r+Math.imul(M,V)|0,i=(i=i+Math.imul(M,K)|0)+Math.imul(C,V)|0,o=o+Math.imul(C,K)|0,r=r+Math.imul(E,$)|0,i=(i=i+Math.imul(E,Y)|0)+Math.imul(S,$)|0,o=o+Math.imul(S,Y)|0,r=r+Math.imul(w,Q)|0,i=(i=i+Math.imul(w,Z)|0)+Math.imul(A,Q)|0,o=o+Math.imul(A,Z)|0,r=r+Math.imul(v,J)|0,i=(i=i+Math.imul(v,ee)|0)+Math.imul(y,J)|0,o=o+Math.imul(y,ee)|0,r=r+Math.imul(p,ne)|0,i=(i=i+Math.imul(p,re)|0)+Math.imul(m,ne)|0,o=o+Math.imul(m,re)|0;var _e=(l+(r=r+Math.imul(d,oe)|0)|0)+((8191&(i=(i=i+Math.imul(d,ae)|0)+Math.imul(f,oe)|0))<<13)|0;l=((o=o+Math.imul(f,ae)|0)+(i>>>13)|0)+(_e>>>26)|0,_e&=67108863,r=Math.imul(P,F),i=(i=Math.imul(P,q))+Math.imul(L,F)|0,o=Math.imul(L,q),r=r+Math.imul(R,V)|0,i=(i=i+Math.imul(R,K)|0)+Math.imul(O,V)|0,o=o+Math.imul(O,K)|0,r=r+Math.imul(M,$)|0,i=(i=i+Math.imul(M,Y)|0)+Math.imul(C,$)|0,o=o+Math.imul(C,Y)|0,r=r+Math.imul(E,Q)|0,i=(i=i+Math.imul(E,Z)|0)+Math.imul(S,Q)|0,o=o+Math.imul(S,Z)|0,r=r+Math.imul(w,J)|0,i=(i=i+Math.imul(w,ee)|0)+Math.imul(A,J)|0,o=o+Math.imul(A,ee)|0,r=r+Math.imul(v,ne)|0,i=(i=i+Math.imul(v,re)|0)+Math.imul(y,ne)|0,o=o+Math.imul(y,re)|0,r=r+Math.imul(p,oe)|0,i=(i=i+Math.imul(p,ae)|0)+Math.imul(m,oe)|0,o=o+Math.imul(m,ae)|0;var Ee=(l+(r=r+Math.imul(d,ue)|0)|0)+((8191&(i=(i=i+Math.imul(d,le)|0)+Math.imul(f,ue)|0))<<13)|0;l=((o=o+Math.imul(f,le)|0)+(i>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,r=Math.imul(N,F),i=(i=Math.imul(N,q))+Math.imul(D,F)|0,o=Math.imul(D,q),r=r+Math.imul(P,V)|0,i=(i=i+Math.imul(P,K)|0)+Math.imul(L,V)|0,o=o+Math.imul(L,K)|0,r=r+Math.imul(R,$)|0,i=(i=i+Math.imul(R,Y)|0)+Math.imul(O,$)|0,o=o+Math.imul(O,Y)|0,r=r+Math.imul(M,Q)|0,i=(i=i+Math.imul(M,Z)|0)+Math.imul(C,Q)|0,o=o+Math.imul(C,Z)|0,r=r+Math.imul(E,J)|0,i=(i=i+Math.imul(E,ee)|0)+Math.imul(S,J)|0,o=o+Math.imul(S,ee)|0,r=r+Math.imul(w,ne)|0,i=(i=i+Math.imul(w,re)|0)+Math.imul(A,ne)|0,o=o+Math.imul(A,re)|0,r=r+Math.imul(v,oe)|0,i=(i=i+Math.imul(v,ae)|0)+Math.imul(y,oe)|0,o=o+Math.imul(y,ae)|0,r=r+Math.imul(p,ue)|0,i=(i=i+Math.imul(p,le)|0)+Math.imul(m,ue)|0,o=o+Math.imul(m,le)|0;var Se=(l+(r=r+Math.imul(d,de)|0)|0)+((8191&(i=(i=i+Math.imul(d,fe)|0)+Math.imul(f,de)|0))<<13)|0;l=((o=o+Math.imul(f,fe)|0)+(i>>>13)|0)+(Se>>>26)|0,Se&=67108863,r=Math.imul(j,F),i=(i=Math.imul(j,q))+Math.imul(U,F)|0,o=Math.imul(U,q),r=r+Math.imul(N,V)|0,i=(i=i+Math.imul(N,K)|0)+Math.imul(D,V)|0,o=o+Math.imul(D,K)|0,r=r+Math.imul(P,$)|0,i=(i=i+Math.imul(P,Y)|0)+Math.imul(L,$)|0,o=o+Math.imul(L,Y)|0,r=r+Math.imul(R,Q)|0,i=(i=i+Math.imul(R,Z)|0)+Math.imul(O,Q)|0,o=o+Math.imul(O,Z)|0,r=r+Math.imul(M,J)|0,i=(i=i+Math.imul(M,ee)|0)+Math.imul(C,J)|0,o=o+Math.imul(C,ee)|0,r=r+Math.imul(E,ne)|0,i=(i=i+Math.imul(E,re)|0)+Math.imul(S,ne)|0,o=o+Math.imul(S,re)|0,r=r+Math.imul(w,oe)|0,i=(i=i+Math.imul(w,ae)|0)+Math.imul(A,oe)|0,o=o+Math.imul(A,ae)|0,r=r+Math.imul(v,ue)|0,i=(i=i+Math.imul(v,le)|0)+Math.imul(y,ue)|0,o=o+Math.imul(y,le)|0,r=r+Math.imul(p,de)|0,i=(i=i+Math.imul(p,fe)|0)+Math.imul(m,de)|0,o=o+Math.imul(m,fe)|0;var ke=(l+(r=r+Math.imul(d,pe)|0)|0)+((8191&(i=(i=i+Math.imul(d,me)|0)+Math.imul(f,pe)|0))<<13)|0;l=((o=o+Math.imul(f,me)|0)+(i>>>13)|0)+(ke>>>26)|0,ke&=67108863,r=Math.imul(j,V),i=(i=Math.imul(j,K))+Math.imul(U,V)|0,o=Math.imul(U,K),r=r+Math.imul(N,$)|0,i=(i=i+Math.imul(N,Y)|0)+Math.imul(D,$)|0,o=o+Math.imul(D,Y)|0,r=r+Math.imul(P,Q)|0,i=(i=i+Math.imul(P,Z)|0)+Math.imul(L,Q)|0,o=o+Math.imul(L,Z)|0,r=r+Math.imul(R,J)|0,i=(i=i+Math.imul(R,ee)|0)+Math.imul(O,J)|0,o=o+Math.imul(O,ee)|0,r=r+Math.imul(M,ne)|0,i=(i=i+Math.imul(M,re)|0)+Math.imul(C,ne)|0,o=o+Math.imul(C,re)|0,r=r+Math.imul(E,oe)|0,i=(i=i+Math.imul(E,ae)|0)+Math.imul(S,oe)|0,o=o+Math.imul(S,ae)|0,r=r+Math.imul(w,ue)|0,i=(i=i+Math.imul(w,le)|0)+Math.imul(A,ue)|0,o=o+Math.imul(A,le)|0,r=r+Math.imul(v,de)|0,i=(i=i+Math.imul(v,fe)|0)+Math.imul(y,de)|0,o=o+Math.imul(y,fe)|0;var Me=(l+(r=r+Math.imul(p,pe)|0)|0)+((8191&(i=(i=i+Math.imul(p,me)|0)+Math.imul(m,pe)|0))<<13)|0;l=((o=o+Math.imul(m,me)|0)+(i>>>13)|0)+(Me>>>26)|0,Me&=67108863,r=Math.imul(j,$),i=(i=Math.imul(j,Y))+Math.imul(U,$)|0,o=Math.imul(U,Y),r=r+Math.imul(N,Q)|0,i=(i=i+Math.imul(N,Z)|0)+Math.imul(D,Q)|0,o=o+Math.imul(D,Z)|0,r=r+Math.imul(P,J)|0,i=(i=i+Math.imul(P,ee)|0)+Math.imul(L,J)|0,o=o+Math.imul(L,ee)|0,r=r+Math.imul(R,ne)|0,i=(i=i+Math.imul(R,re)|0)+Math.imul(O,ne)|0,o=o+Math.imul(O,re)|0,r=r+Math.imul(M,oe)|0,i=(i=i+Math.imul(M,ae)|0)+Math.imul(C,oe)|0,o=o+Math.imul(C,ae)|0,r=r+Math.imul(E,ue)|0,i=(i=i+Math.imul(E,le)|0)+Math.imul(S,ue)|0,o=o+Math.imul(S,le)|0,r=r+Math.imul(w,de)|0,i=(i=i+Math.imul(w,fe)|0)+Math.imul(A,de)|0,o=o+Math.imul(A,fe)|0;var Ce=(l+(r=r+Math.imul(v,pe)|0)|0)+((8191&(i=(i=i+Math.imul(v,me)|0)+Math.imul(y,pe)|0))<<13)|0;l=((o=o+Math.imul(y,me)|0)+(i>>>13)|0)+(Ce>>>26)|0,Ce&=67108863,r=Math.imul(j,Q),i=(i=Math.imul(j,Z))+Math.imul(U,Q)|0,o=Math.imul(U,Z),r=r+Math.imul(N,J)|0,i=(i=i+Math.imul(N,ee)|0)+Math.imul(D,J)|0,o=o+Math.imul(D,ee)|0,r=r+Math.imul(P,ne)|0,i=(i=i+Math.imul(P,re)|0)+Math.imul(L,ne)|0,o=o+Math.imul(L,re)|0,r=r+Math.imul(R,oe)|0,i=(i=i+Math.imul(R,ae)|0)+Math.imul(O,oe)|0,o=o+Math.imul(O,ae)|0,r=r+Math.imul(M,ue)|0,i=(i=i+Math.imul(M,le)|0)+Math.imul(C,ue)|0,o=o+Math.imul(C,le)|0,r=r+Math.imul(E,de)|0,i=(i=i+Math.imul(E,fe)|0)+Math.imul(S,de)|0,o=o+Math.imul(S,fe)|0;var xe=(l+(r=r+Math.imul(w,pe)|0)|0)+((8191&(i=(i=i+Math.imul(w,me)|0)+Math.imul(A,pe)|0))<<13)|0;l=((o=o+Math.imul(A,me)|0)+(i>>>13)|0)+(xe>>>26)|0,xe&=67108863,r=Math.imul(j,J),i=(i=Math.imul(j,ee))+Math.imul(U,J)|0,o=Math.imul(U,ee),r=r+Math.imul(N,ne)|0,i=(i=i+Math.imul(N,re)|0)+Math.imul(D,ne)|0,o=o+Math.imul(D,re)|0,r=r+Math.imul(P,oe)|0,i=(i=i+Math.imul(P,ae)|0)+Math.imul(L,oe)|0,o=o+Math.imul(L,ae)|0,r=r+Math.imul(R,ue)|0,i=(i=i+Math.imul(R,le)|0)+Math.imul(O,ue)|0,o=o+Math.imul(O,le)|0,r=r+Math.imul(M,de)|0,i=(i=i+Math.imul(M,fe)|0)+Math.imul(C,de)|0,o=o+Math.imul(C,fe)|0;var Re=(l+(r=r+Math.imul(E,pe)|0)|0)+((8191&(i=(i=i+Math.imul(E,me)|0)+Math.imul(S,pe)|0))<<13)|0;l=((o=o+Math.imul(S,me)|0)+(i>>>13)|0)+(Re>>>26)|0,Re&=67108863,r=Math.imul(j,ne),i=(i=Math.imul(j,re))+Math.imul(U,ne)|0,o=Math.imul(U,re),r=r+Math.imul(N,oe)|0,i=(i=i+Math.imul(N,ae)|0)+Math.imul(D,oe)|0,o=o+Math.imul(D,ae)|0,r=r+Math.imul(P,ue)|0,i=(i=i+Math.imul(P,le)|0)+Math.imul(L,ue)|0,o=o+Math.imul(L,le)|0,r=r+Math.imul(R,de)|0,i=(i=i+Math.imul(R,fe)|0)+Math.imul(O,de)|0,o=o+Math.imul(O,fe)|0;var Oe=(l+(r=r+Math.imul(M,pe)|0)|0)+((8191&(i=(i=i+Math.imul(M,me)|0)+Math.imul(C,pe)|0))<<13)|0;l=((o=o+Math.imul(C,me)|0)+(i>>>13)|0)+(Oe>>>26)|0,Oe&=67108863,r=Math.imul(j,oe),i=(i=Math.imul(j,ae))+Math.imul(U,oe)|0,o=Math.imul(U,ae),r=r+Math.imul(N,ue)|0,i=(i=i+Math.imul(N,le)|0)+Math.imul(D,ue)|0,o=o+Math.imul(D,le)|0,r=r+Math.imul(P,de)|0,i=(i=i+Math.imul(P,fe)|0)+Math.imul(L,de)|0,o=o+Math.imul(L,fe)|0;var Te=(l+(r=r+Math.imul(R,pe)|0)|0)+((8191&(i=(i=i+Math.imul(R,me)|0)+Math.imul(O,pe)|0))<<13)|0;l=((o=o+Math.imul(O,me)|0)+(i>>>13)|0)+(Te>>>26)|0,Te&=67108863,r=Math.imul(j,ue),i=(i=Math.imul(j,le))+Math.imul(U,ue)|0,o=Math.imul(U,le),r=r+Math.imul(N,de)|0,i=(i=i+Math.imul(N,fe)|0)+Math.imul(D,de)|0,o=o+Math.imul(D,fe)|0;var Pe=(l+(r=r+Math.imul(P,pe)|0)|0)+((8191&(i=(i=i+Math.imul(P,me)|0)+Math.imul(L,pe)|0))<<13)|0;l=((o=o+Math.imul(L,me)|0)+(i>>>13)|0)+(Pe>>>26)|0,Pe&=67108863,r=Math.imul(j,de),i=(i=Math.imul(j,fe))+Math.imul(U,de)|0,o=Math.imul(U,fe);var Le=(l+(r=r+Math.imul(N,pe)|0)|0)+((8191&(i=(i=i+Math.imul(N,me)|0)+Math.imul(D,pe)|0))<<13)|0;l=((o=o+Math.imul(D,me)|0)+(i>>>13)|0)+(Le>>>26)|0,Le&=67108863;var Ie=(l+(r=Math.imul(j,pe))|0)+((8191&(i=(i=Math.imul(j,me))+Math.imul(U,pe)|0))<<13)|0;return l=((o=Math.imul(U,me))+(i>>>13)|0)+(Ie>>>26)|0,Ie&=67108863,u[0]=ge,u[1]=ve,u[2]=ye,u[3]=be,u[4]=we,u[5]=Ae,u[6]=_e,u[7]=Ee,u[8]=Se,u[9]=ke,u[10]=Me,u[11]=Ce,u[12]=xe,u[13]=Re,u[14]=Oe,u[15]=Te,u[16]=Pe,u[17]=Le,u[18]=Ie,0!==l&&(u[19]=l,n.length++),n};function p(e,t,n){return(new m).mulp(e,t,n)}function m(e,t){this.x=e,this.y=t}Math.imul||(h=f),i.prototype.mulTo=function(e,t){var n,r=this.length+e.length;return n=10===this.length&&10===e.length?h(this,e,t):r<63?f(this,e,t):r<1024?function(e,t,n){n.negative=t.negative^e.negative,n.length=e.length+t.length;for(var r=0,i=0,o=0;o>>26)|0)>>>26,a&=67108863}n.words[o]=s,r=a,a=i}return 0!==r?n.words[o]=r:n.length--,n.strip()}(this,e,t):p(this,e,t),n},m.prototype.makeRBT=function(e){for(var t=new Array(e),n=i.prototype._countBits(e)-1,r=0;r>=1;return r},m.prototype.permute=function(e,t,n,r,i,o){for(var a=0;a>>=1)i++;return 1<>>=13,r[2*a+1]=8191&o,o>>>=13;for(a=2*t;a>=26,t+=i/67108864|0,t+=o>>>26,this.words[r]=67108863&o}return 0!==t&&(this.words[r]=t,this.length++),this},i.prototype.muln=function(e){return this.clone().imuln(e)},i.prototype.sqr=function(){return this.mul(this)},i.prototype.isqr=function(){return this.imul(this.clone())},i.prototype.pow=function(e){var t=function(e){for(var t=new Array(e.bitLength()),n=0;n>>i}return t}(e);if(0===t.length)return new i(1);for(var n=this,r=0;r=0);var t,r=e%26,i=(e-r)/26,o=67108863>>>26-r<<26-r;if(0!==r){var a=0;for(t=0;t>>26-r}a&&(this.words[t]=a,this.length++)}if(0!==i){for(t=this.length-1;t>=0;t--)this.words[t+i]=this.words[t];for(t=0;t=0),i=t?(t-t%26)/26:0;var o=e%26,a=Math.min((e-o)/26,this.length),s=67108863^67108863>>>o<a)for(this.length-=a,l=0;l=0&&(0!==c||l>=i);l--){var d=0|this.words[l];this.words[l]=c<<26-o|d>>>o,c=d&s}return u&&0!==c&&(u.words[u.length++]=c),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},i.prototype.ishrn=function(e,t,r){return n(0===this.negative),this.iushrn(e,t,r)},i.prototype.shln=function(e){return this.clone().ishln(e)},i.prototype.ushln=function(e){return this.clone().iushln(e)},i.prototype.shrn=function(e){return this.clone().ishrn(e)},i.prototype.ushrn=function(e){return this.clone().iushrn(e)},i.prototype.testn=function(e){n("number"==typeof e&&e>=0);var t=e%26,r=(e-t)/26,i=1<=0);var t=e%26,r=(e-t)/26;if(n(0===this.negative,"imaskn works only with positive numbers"),this.length<=r)return this;if(0!==t&&r++,this.length=Math.min(r,this.length),0!==t){var i=67108863^67108863>>>t<=67108864;t++)this.words[t]-=67108864,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},i.prototype.isubn=function(e){if(n("number"==typeof e),n(e<67108864),e<0)return this.iaddn(-e);if(0!==this.negative)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var t=0;t>26)-(u/67108864|0),this.words[i+r]=67108863&o}for(;i>26,this.words[i+r]=67108863&o;if(0===s)return this.strip();for(n(-1===s),s=0,i=0;i>26,this.words[i]=67108863&o;return this.negative=1,this.strip()},i.prototype._wordDiv=function(e,t){var n=(this.length,e.length),r=this.clone(),o=e,a=0|o.words[o.length-1];0!=(n=26-this._countBits(a))&&(o=o.ushln(n),r.iushln(n),a=0|o.words[o.length-1]);var s,u=r.length-o.length;if("mod"!==t){(s=new i(null)).length=u+1,s.words=new Array(s.length);for(var l=0;l=0;d--){var f=67108864*(0|r.words[o.length+d])+(0|r.words[o.length+d-1]);for(f=Math.min(f/a|0,67108863),r._ishlnsubmul(o,f,d);0!==r.negative;)f--,r.negative=0,r._ishlnsubmul(o,1,d),r.isZero()||(r.negative^=1);s&&(s.words[d]=f)}return s&&s.strip(),r.strip(),"div"!==t&&0!==n&&r.iushrn(n),{div:s||null,mod:r}},i.prototype.divmod=function(e,t,r){return n(!e.isZero()),this.isZero()?{div:new i(0),mod:new i(0)}:0!==this.negative&&0===e.negative?(s=this.neg().divmod(e,t),"mod"!==t&&(o=s.div.neg()),"div"!==t&&(a=s.mod.neg(),r&&0!==a.negative&&a.iadd(e)),{div:o,mod:a}):0===this.negative&&0!==e.negative?(s=this.divmod(e.neg(),t),"mod"!==t&&(o=s.div.neg()),{div:o,mod:s.mod}):0!=(this.negative&e.negative)?(s=this.neg().divmod(e.neg(),t),"div"!==t&&(a=s.mod.neg(),r&&0!==a.negative&&a.isub(e)),{div:s.div,mod:a}):e.length>this.length||this.cmp(e)<0?{div:new i(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new i(this.modn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new i(this.modn(e.words[0]))}:this._wordDiv(e,t);var o,a,s},i.prototype.div=function(e){return this.divmod(e,"div",!1).div},i.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},i.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},i.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var n=0!==t.div.negative?t.mod.isub(e):t.mod,r=e.ushrn(1),i=e.andln(1),o=n.cmp(r);return o<0||1===i&&0===o?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},i.prototype.modn=function(e){n(e<=67108863);for(var t=(1<<26)%e,r=0,i=this.length-1;i>=0;i--)r=(t*r+(0|this.words[i]))%e;return r},i.prototype.idivn=function(e){n(e<=67108863);for(var t=0,r=this.length-1;r>=0;r--){var i=(0|this.words[r])+67108864*t;this.words[r]=i/e|0,t=i%e}return this.strip()},i.prototype.divn=function(e){return this.clone().idivn(e)},i.prototype.egcd=function(e){n(0===e.negative),n(!e.isZero());var t=this,r=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var o=new i(1),a=new i(0),s=new i(0),u=new i(1),l=0;t.isEven()&&r.isEven();)t.iushrn(1),r.iushrn(1),++l;for(var c=r.clone(),d=t.clone();!t.isZero();){for(var f=0,h=1;0==(t.words[0]&h)&&f<26;++f,h<<=1);if(f>0)for(t.iushrn(f);f-- >0;)(o.isOdd()||a.isOdd())&&(o.iadd(c),a.isub(d)),o.iushrn(1),a.iushrn(1);for(var p=0,m=1;0==(r.words[0]&m)&&p<26;++p,m<<=1);if(p>0)for(r.iushrn(p);p-- >0;)(s.isOdd()||u.isOdd())&&(s.iadd(c),u.isub(d)),s.iushrn(1),u.iushrn(1);t.cmp(r)>=0?(t.isub(r),o.isub(s),a.isub(u)):(r.isub(t),s.isub(o),u.isub(a))}return{a:s,b:u,gcd:r.iushln(l)}},i.prototype._invmp=function(e){n(0===e.negative),n(!e.isZero());var t=this,r=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var o,a=new i(1),s=new i(0),u=r.clone();t.cmpn(1)>0&&r.cmpn(1)>0;){for(var l=0,c=1;0==(t.words[0]&c)&&l<26;++l,c<<=1);if(l>0)for(t.iushrn(l);l-- >0;)a.isOdd()&&a.iadd(u),a.iushrn(1);for(var d=0,f=1;0==(r.words[0]&f)&&d<26;++d,f<<=1);if(d>0)for(r.iushrn(d);d-- >0;)s.isOdd()&&s.iadd(u),s.iushrn(1);t.cmp(r)>=0?(t.isub(r),a.isub(s)):(r.isub(t),s.isub(a))}return(o=0===t.cmpn(1)?a:s).cmpn(0)<0&&o.iadd(e),o},i.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),n=e.clone();t.negative=0,n.negative=0;for(var r=0;t.isEven()&&n.isEven();r++)t.iushrn(1),n.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;n.isEven();)n.iushrn(1);var i=t.cmp(n);if(i<0){var o=t;t=n,n=o}else if(0===i||0===n.cmpn(1))break;t.isub(n)}return n.iushln(r)},i.prototype.invm=function(e){return this.egcd(e).a.umod(e)},i.prototype.isEven=function(){return 0==(1&this.words[0])},i.prototype.isOdd=function(){return 1==(1&this.words[0])},i.prototype.andln=function(e){return this.words[0]&e},i.prototype.bincn=function(e){n("number"==typeof e);var t=e%26,r=(e-t)/26,i=1<>>26,s&=67108863,this.words[a]=s}return 0!==o&&(this.words[a]=o,this.length++),this},i.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},i.prototype.cmpn=function(e){var t,r=e<0;if(0!==this.negative&&!r)return-1;if(0===this.negative&&r)return 1;if(this.strip(),this.length>1)t=1;else{r&&(e=-e),n(e<=67108863,"Number is too big");var i=0|this.words[0];t=i===e?0:ie.length)return 1;if(this.length=0;n--){var r=0|this.words[n],i=0|e.words[n];if(r!==i){ri&&(t=1);break}}return t},i.prototype.gtn=function(e){return 1===this.cmpn(e)},i.prototype.gt=function(e){return 1===this.cmp(e)},i.prototype.gten=function(e){return this.cmpn(e)>=0},i.prototype.gte=function(e){return this.cmp(e)>=0},i.prototype.ltn=function(e){return-1===this.cmpn(e)},i.prototype.lt=function(e){return-1===this.cmp(e)},i.prototype.lten=function(e){return this.cmpn(e)<=0},i.prototype.lte=function(e){return this.cmp(e)<=0},i.prototype.eqn=function(e){return 0===this.cmpn(e)},i.prototype.eq=function(e){return 0===this.cmp(e)},i.red=function(e){return new _(e)},i.prototype.toRed=function(e){return n(!this.red,"Already a number in reduction context"),n(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},i.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},i.prototype._forceRed=function(e){return this.red=e,this},i.prototype.forceRed=function(e){return n(!this.red,"Already a number in reduction context"),this._forceRed(e)},i.prototype.redAdd=function(e){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},i.prototype.redIAdd=function(e){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},i.prototype.redSub=function(e){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},i.prototype.redISub=function(e){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},i.prototype.redShl=function(e){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},i.prototype.redMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},i.prototype.redIMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},i.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},i.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},i.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},i.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},i.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},i.prototype.redPow=function(e){return n(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var g={k256:null,p224:null,p192:null,p25519:null};function v(e,t){this.name=e,this.p=new i(t,16),this.n=this.p.bitLength(),this.k=new i(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function y(){v.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function b(){v.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function w(){v.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function A(){v.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function _(e){if("string"==typeof e){var t=i._prime(e);this.m=t.p,this.prime=t}else n(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function E(e){_.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new i(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}v.prototype._tmp=function(){var e=new i(null);return e.words=new Array(Math.ceil(this.n/13)),e},v.prototype.ireduce=function(e){var t,n=e;do{this.split(n,this.tmp),t=(n=(n=this.imulK(n)).iadd(this.tmp)).bitLength()}while(t>this.n);var r=t0?n.isub(this.p):void 0!==n.strip?n.strip():n._strip(),n},v.prototype.split=function(e,t){e.iushrn(this.n,0,t)},v.prototype.imulK=function(e){return e.imul(this.k)},r(y,v),y.prototype.split=function(e,t){for(var n=4194303,r=Math.min(e.length,9),i=0;i>>22,o=a}o>>>=22,e.words[i-10]=o,0===o&&e.length>10?e.length-=10:e.length-=9},y.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,n=0;n>>=26,e.words[n]=i,t=r}return 0!==t&&(e.words[e.length++]=t),e},i._prime=function(e){if(g[e])return g[e];var t;if("k256"===e)t=new y;else if("p224"===e)t=new b;else if("p192"===e)t=new w;else{if("p25519"!==e)throw new Error("Unknown prime "+e);t=new A}return g[e]=t,t},_.prototype._verify1=function(e){n(0===e.negative,"red works only with positives"),n(e.red,"red works only with red numbers")},_.prototype._verify2=function(e,t){n(0==(e.negative|t.negative),"red works only with positives"),n(e.red&&e.red===t.red,"red works only with red numbers")},_.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):e.umod(this.m)._forceRed(this)},_.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},_.prototype.add=function(e,t){this._verify2(e,t);var n=e.add(t);return n.cmp(this.m)>=0&&n.isub(this.m),n._forceRed(this)},_.prototype.iadd=function(e,t){this._verify2(e,t);var n=e.iadd(t);return n.cmp(this.m)>=0&&n.isub(this.m),n},_.prototype.sub=function(e,t){this._verify2(e,t);var n=e.sub(t);return n.cmpn(0)<0&&n.iadd(this.m),n._forceRed(this)},_.prototype.isub=function(e,t){this._verify2(e,t);var n=e.isub(t);return n.cmpn(0)<0&&n.iadd(this.m),n},_.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},_.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},_.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},_.prototype.isqr=function(e){return this.imul(e,e.clone())},_.prototype.sqr=function(e){return this.mul(e,e)},_.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(n(t%2==1),3===t){var r=this.m.add(new i(1)).iushrn(2);return this.pow(e,r)}for(var o=this.m.subn(1),a=0;!o.isZero()&&0===o.andln(1);)a++,o.iushrn(1);n(!o.isZero());var s=new i(1).toRed(this),u=s.redNeg(),l=this.m.subn(1).iushrn(1),c=this.m.bitLength();for(c=new i(2*c*c).toRed(this);0!==this.pow(c,l).cmp(u);)c.redIAdd(u);for(var d=this.pow(c,o),f=this.pow(e,o.addn(1).iushrn(1)),h=this.pow(e,o),p=a;0!==h.cmp(s);){for(var m=h,g=0;0!==m.cmp(s);g++)m=m.redSqr();n(g=0;r--){for(var l=t.words[r],c=u-1;c>=0;c--){var d=l>>c&1;o!==n[0]&&(o=this.sqr(o)),0!==d||0!==a?(a<<=1,a|=d,(4==++s||0===r&&0===c)&&(o=this.mul(o,n[a]),s=0,a=0)):s=0}u=26}return o},_.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},_.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},i.mont=function(e){return new E(e)},r(E,_),E.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},E.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},E.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var n=e.imul(t),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=n.isub(r).iushrn(this.shift),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):i.cmpn(0)<0&&(o=i.iadd(this.m)),o._forceRed(this)},E.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new i(0)._forceRed(this);var n=e.mul(t),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),o=n.isub(r).iushrn(this.shift),a=o;return o.cmp(this.m)>=0?a=o.isub(this.m):o.cmpn(0)<0&&(a=o.iadd(this.m)),a._forceRed(this)},E.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(df,hr);var ff,hf,pf,mf,gf,vf=df.exports,yf={exports:{}};function bf(){if(ff)return yf.exports;var e;function t(e){this.rand=e}if(ff=1,yf.exports=function(n){return e||(e=new t(null)),e.generate(n)},yf.exports.Rand=t,t.prototype.generate=function(e){return this._rand(e)},t.prototype._rand=function(e){if(this.rand.getBytes)return this.rand.getBytes(e);for(var t=new Uint8Array(e),n=0;n=0);return i},n.prototype._randrange=function(e,t){var n=t.sub(e);return e.add(this._randbelow(n))},n.prototype.test=function(t,n,r){var i=t.bitLength(),o=e.mont(t),a=new e(1).toRed(o);n||(n=Math.max(1,i/48|0));for(var s=t.subn(1),u=0;!s.testn(u);u++);for(var l=t.shrn(u),c=s.toRed(o);n>0;n--){var d=this._randrange(new e(2),s);r&&r(d);var f=d.toRed(o).redPow(l);if(0!==f.cmp(a)&&0!==f.cmp(c)){for(var h=1;h0;n--){var c=this._randrange(new e(2),a),d=t.gcd(c);if(0!==d.cmpn(1))return d;var f=c.toRed(i).redPow(u);if(0!==f.cmp(o)&&0!==f.cmp(l)){for(var h=1;hd;)m.ishrn(1);if(m.isEven()&&m.iadd(i),m.testn(1)||m.iadd(o),p.cmp(o)){if(!p.cmp(a))for(;m.mod(s).cmp(u);)m.iadd(c)}else for(;m.mod(n).cmp(l);)m.iadd(c);if(f(g=m.shrn(1))&&f(m)&&h(g)&&h(m)&&r.test(g)&&r.test(m))return m}}return mf}var _f,Ef,Sf,kf,Mf,Cf={modp1:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a63a3620ffffffffffffffff"},modp2:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece65381ffffffffffffffff"},modp5:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca237327ffffffffffffffff"},modp14:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aacaa68ffffffffffffffff"},modp15:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a93ad2caffffffffffffffff"},modp16:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c934063199ffffffffffffffff"},modp17:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dcc4024ffffffffffffffff"},modp18:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dbe115974a3926f12fee5e438777cb6a932df8cd8bec4d073b931ba3bc832b68d9dd300741fa7bf8afc47ed2576f6936ba424663aab639c5ae4f5683423b4742bf1c978238f16cbe39d652de3fdb8befc848ad922222e04a4037c0713eb57a81a23f0c73473fc646cea306b4bcbc8862f8385ddfa9d4b7fa2c087e879683303ed5bdd3a062b3cf5b3a278a66d2a13f83f44f82ddf310ee074ab6a364597e899a0255dc164f31cc50846851df9ab48195ded7ea1b1d510bd7ee74d73faf36bc31ecfa268359046f4eb879f924009438b481c6cd7889a002ed5ee382bc9190da6fc026e479558e4475677e9aa9e3050e2765694dfc81f56e880b96e7160c980dd98edd3dfffffffffffffffff"}},xf={exports:{}},Rf=ui.EventEmitter;function Of(e,t){Pf(e,t),Tf(e)}function Tf(e){e._writableState&&!e._writableState.emitClose||e._readableState&&!e._readableState.emitClose||e.emit("close")}function Pf(e,t){e.emit("error",t)}var Lf={destroy:function(e,t){var n=this,r=this._readableState&&this._readableState.destroyed,i=this._writableState&&this._writableState.destroyed;return r||i?(t?t(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,Tr(Pf,this,e)):Tr(Pf,this,e)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,(function(e){!t&&e?n._writableState?n._writableState.errorEmitted?Tr(Tf,n):(n._writableState.errorEmitted=!0,Tr(Of,n,e)):Tr(Of,n,e):t?(Tr(Tf,n),t(e)):Tr(Tf,n)})),this)},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)},errorOrDestroy:function(e,t){var n=e._readableState,r=e._writableState;n&&n.autoDestroy||r&&r.autoDestroy?e.destroy(t):e.emit("error",t)}},If={},Nf={};function Df(e,t,n){n||(n=Error);var r=function(e){var n,r;function i(n,r,i){return e.call(this,function(e,n,r){return"string"==typeof t?t:t(e,n,r)}(n,r,i))||this}return r=e,(n=i).prototype=Object.create(r.prototype),n.prototype.constructor=n,n.__proto__=r,i}(n);r.prototype.name=n.name,r.prototype.code=e,Nf[e]=r}function Bf(e,t){if(Array.isArray(e)){var n=e.length;return e=e.map((function(e){return String(e)})),n>2?"one of ".concat(t," ").concat(e.slice(0,n-1).join(", "),", or ")+e[n-1]:2===n?"one of ".concat(t," ").concat(e[0]," or ").concat(e[1]):"of ".concat(t," ").concat(e[0])}return"of ".concat(t," ").concat(String(e))}Df("ERR_INVALID_OPT_VALUE",(function(e,t){return'The value "'+t+'" is invalid for option "'+e+'"'}),TypeError),Df("ERR_INVALID_ARG_TYPE",(function(e,t,n){var r,i,o;if("string"==typeof t&&(i="not ",t.substr(0,4)===i)?(r="must not be",t=t.replace(/^not /,"")):r="must be",function(e,t,n){return(void 0===n||n>e.length)&&(n=e.length),e.substring(n-9,n)===t}(e," argument"))o="The ".concat(e," ").concat(r," ").concat(Bf(t,"type"));else{var a=function(e,t,n){return"number"!=typeof n&&(n=0),!(n+1>e.length)&&-1!==e.indexOf(".",n)}(e)?"property":"argument";o='The "'.concat(e,'" ').concat(a," ").concat(r," ").concat(Bf(t,"type"))}return o+". Received type ".concat(typeof n)}),TypeError),Df("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),Df("ERR_METHOD_NOT_IMPLEMENTED",(function(e){return"The "+e+" method is not implemented"})),Df("ERR_STREAM_PREMATURE_CLOSE","Premature close"),Df("ERR_STREAM_DESTROYED",(function(e){return"Cannot call "+e+" after a stream was destroyed"})),Df("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),Df("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),Df("ERR_STREAM_WRITE_AFTER_END","write after end"),Df("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),Df("ERR_UNKNOWN_ENCODING",(function(e){return"Unknown encoding: "+e}),TypeError),Df("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),If.codes=Nf;var jf,Uf,zf,Ff,qf=If.codes.ERR_INVALID_OPT_VALUE,Wf={getHighWaterMark:function(e,t,n,r){var i=function(e,t,n){return null!=e.highWaterMark?e.highWaterMark:t?e[n]:null}(t,r,n);if(null!=i){if(!isFinite(i)||Math.floor(i)!==i||i<0)throw new qf(r?n:"highWaterMark",i);return Math.floor(i)}return e.objectMode?16:16384}};function Vf(){if(Uf)return jf;function e(e){var t=this;this.next=null,this.entry=null,this.finish=function(){!function(e,t,n){var r=e.entry;for(e.entry=null;r;){var i=r.callback;t.pendingcb--,i(void 0),r=r.next}t.corkedRequestsFree.next=e}(t,e)}}var t;Uf=1,jf=A,A.WritableState=w;var n,r={deprecate:fo()},i=Rf,o=yr.Buffer,a=(void 0!==hr?hr:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){},s=Lf,u=Wf.getHighWaterMark,l=If.codes,c=l.ERR_INVALID_ARG_TYPE,d=l.ERR_METHOD_NOT_IMPLEMENTED,f=l.ERR_MULTIPLE_CALLBACK,h=l.ERR_STREAM_CANNOT_PIPE,p=l.ERR_STREAM_DESTROYED,m=l.ERR_STREAM_NULL_VALUES,g=l.ERR_STREAM_WRITE_AFTER_END,v=l.ERR_UNKNOWN_ENCODING,y=s.errorOrDestroy;function b(){}function w(n,r,i){t=t||Kf(),n=n||{},"boolean"!=typeof i&&(i=r instanceof t),this.objectMode=!!n.objectMode,i&&(this.objectMode=this.objectMode||!!n.writableObjectMode),this.highWaterMark=u(this,n,"writableHighWaterMark",i),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var o=!1===n.decodeStrings;this.decodeStrings=!o,this.defaultEncoding=n.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){!function(e,t){var n=e._writableState,r=n.sync,i=n.writecb;if("function"!=typeof i)throw new f;if(function(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}(n),t)!function(e,t,n,r,i){--t.pendingcb,n?(Tr(i,r),Tr(C,e,t),e._writableState.errorEmitted=!0,y(e,r)):(i(r),e._writableState.errorEmitted=!0,y(e,r),C(e,t))}(e,n,r,t,i);else{var o=k(n)||e.destroyed;o||n.corked||n.bufferProcessing||!n.bufferedRequest||S(e,n),r?Tr(E,e,n,o,i):E(e,n,o,i)}}(r,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!1!==n.emitClose,this.autoDestroy=!!n.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new e(this)}function A(e){var r=this instanceof(t=t||Kf());if(!r&&!n.call(A,this))return new A(e);this._writableState=new w(e,this,r),this.writable=!0,e&&("function"==typeof e.write&&(this._write=e.write),"function"==typeof e.writev&&(this._writev=e.writev),"function"==typeof e.destroy&&(this._destroy=e.destroy),"function"==typeof e.final&&(this._final=e.final)),i.call(this)}function _(e,t,n,r,i,o,a){t.writelen=r,t.writecb=a,t.writing=!0,t.sync=!0,t.destroyed?t.onwrite(new p("write")):n?e._writev(i,t.onwrite):e._write(i,o,t.onwrite),t.sync=!1}function E(e,t,n,r){n||function(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}(e,t),t.pendingcb--,r(),C(e,t)}function S(t,n){n.bufferProcessing=!0;var r=n.bufferedRequest;if(t._writev&&r&&r.next){var i=n.bufferedRequestCount,o=new Array(i),a=n.corkedRequestsFree;a.entry=r;for(var s=0,u=!0;r;)o[s]=r,r.isBuf||(u=!1),r=r.next,s+=1;o.allBuffers=u,_(t,n,!0,n.length,o,"",a.finish),n.pendingcb++,n.lastBufferedRequest=null,a.next?(n.corkedRequestsFree=a.next,a.next=null):n.corkedRequestsFree=new e(n),n.bufferedRequestCount=0}else{for(;r;){var l=r.chunk,c=r.encoding,d=r.callback;if(_(t,n,!1,n.objectMode?1:l.length,l,c,d),r=r.next,n.bufferedRequestCount--,n.writing)break}null===r&&(n.lastBufferedRequest=null)}n.bufferedRequest=r,n.bufferProcessing=!1}function k(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function M(e,t){e._final((function(n){t.pendingcb--,n&&y(e,n),t.prefinished=!0,e.emit("prefinish"),C(e,t)}))}function C(e,t){var n=k(t);if(n&&(function(e,t){t.prefinished||t.finalCalled||("function"!=typeof e._final||t.destroyed?(t.prefinished=!0,e.emit("prefinish")):(t.pendingcb++,t.finalCalled=!0,Tr(M,e,t)))}(e,t),0===t.pendingcb&&(t.finished=!0,e.emit("finish"),t.autoDestroy))){var r=e._readableState;(!r||r.autoDestroy&&r.endEmitted)&&e.destroy()}return n}return Jr(A,i),w.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(w.prototype,"buffer",{get:r.deprecate((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(n=Function.prototype[Symbol.hasInstance],Object.defineProperty(A,Symbol.hasInstance,{value:function(e){return!!n.call(this,e)||this===A&&e&&e._writableState instanceof w}})):n=function(e){return e instanceof this},A.prototype.pipe=function(){y(this,new h)},A.prototype.write=function(e,t,n){var r,i=this._writableState,s=!1,u=!i.objectMode&&(r=e,o.isBuffer(r)||r instanceof a);return u&&!o.isBuffer(e)&&(e=function(e){return o.from(e)}(e)),"function"==typeof t&&(n=t,t=null),u?t="buffer":t||(t=i.defaultEncoding),"function"!=typeof n&&(n=b),i.ending?function(e,t){var n=new g;y(e,n),Tr(t,n)}(this,n):(u||function(e,t,n,r){var i;return null===n?i=new m:"string"==typeof n||t.objectMode||(i=new c("chunk",["string","Buffer"],n)),!i||(y(e,i),Tr(r,i),!1)}(this,i,e,n))&&(i.pendingcb++,s=function(e,t,n,r,i,a){if(!n){var s=function(e,t,n){return e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=o.from(t,n)),t}(t,r,i);r!==s&&(n=!0,i="buffer",r=s)}var u=t.objectMode?1:r.length;t.length+=u;var l=t.length-1))throw new v(e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(A.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(A.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),A.prototype._write=function(e,t,n){n(new d("_write()"))},A.prototype._writev=null,A.prototype.end=function(e,t,n){var r=this._writableState;return"function"==typeof e?(n=e,e=null,t=null):"function"==typeof t&&(n=t,t=null),null!=e&&this.write(e,t),r.corked&&(r.corked=1,this.uncork()),r.ending||function(e,t,n){t.ending=!0,C(e,t),n&&(t.finished?Tr(n):e.once("finish",n)),t.ended=!0,e.writable=!1}(this,r,n),this},Object.defineProperty(A.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(A.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),A.prototype.destroy=s.destroy,A.prototype._undestroy=s.undestroy,A.prototype._destroy=function(e,t){t(e)},jf}function Kf(){if(Ff)return zf;Ff=1;var e=Object.keys||function(e){var t=[];for(var n in e)t.push(n);return t};zf=a;var t=ih(),n=Vf();Jr(a,t);for(var r=e(n.prototype),i=0;i>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function i(e){var t=this.lastTotal-this.lastNeed,n=function(e,t,n){if(128!=(192&t[0]))return e.lastNeed=0,"�";if(e.lastNeed>1&&t.length>1){if(128!=(192&t[1]))return e.lastNeed=1,"�";if(e.lastNeed>2&&t.length>2&&128!=(192&t[2]))return e.lastNeed=2,"�"}}(this,e);return void 0!==n?n:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(e.copy(this.lastChar,t,0,e.length),void(this.lastNeed-=e.length))}function o(e,t){if((e.length-t)%2==0){var n=e.toString("utf16le",t);if(n){var r=n.charCodeAt(n.length-1);if(r>=55296&&r<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],n.slice(0,-1)}return n}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function a(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var n=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,n)}return t}function s(e,t){var n=(e.length-t)%3;return 0===n?e.toString("base64",t):(this.lastNeed=3-n,this.lastTotal=3,1===n?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-n))}function u(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function l(e){return e.toString(this.encoding)}function c(e){return e&&e.length?this.write(e):""}return $f.StringDecoder=n,n.prototype.write=function(e){if(0===e.length)return"";var t,n;if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";n=this.lastNeed,this.lastNeed=0}else n=0;return n=0?(o>0&&(e.lastNeed=o-1),o):--i=0?(o>0&&(e.lastNeed=o-2),o):--i=0?(o>0&&(2===o?o=0:e.lastNeed=o-3),o):0}(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=n;var i=e.length-(n-this.lastNeed);return e.copy(this.lastChar,0,i),e.toString("utf8",t,i)},n.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length},$f}var Gf=If.codes.ERR_STREAM_PREMATURE_CLOSE;function Qf(){}var Zf,Xf,Jf,eh,th,nh,rh=function e(t,n,r){if("function"==typeof n)return e(t,null,n);n||(n={}),r=function(e){var t=!1;return function(){if(!t){t=!0;for(var n=arguments.length,r=new Array(n),i=0;i0?this.tail.next=t:this.head=t,this.tail=t,++this.length}},{key:"unshift",value:function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length}},{key:"shift",value:function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(e){if(0===this.length)return"";for(var t=this.head,n=""+t.data;t=t.next;)n+=e+t.data;return n}},{key:"concat",value:function(e){if(0===this.length)return o.alloc(0);for(var t,n,r,i=o.allocUnsafe(e>>>0),a=this.head,s=0;a;)t=a.data,n=i,r=s,o.prototype.copy.call(t,n,r),s+=a.data.length,a=a.next;return i}},{key:"consume",value:function(e,t){var n;return ei.length?i.length:e;if(o===i.length?r+=i:r+=i.slice(0,e),0==(e-=o)){o===i.length?(++n,t.next?this.head=t.next:this.head=this.tail=null):(this.head=t,t.data=i.slice(o));break}++n}return this.length-=n,r}},{key:"_getBuffer",value:function(e){var t=o.allocUnsafe(e),n=this.head,r=1;for(n.data.copy(t),e-=n.data.length;n=n.next;){var i=n.data,a=e>i.length?i.length:e;if(i.copy(t,t.length-e,0,a),0==(e-=a)){a===i.length?(++r,n.next?this.head=n.next:this.head=this.tail=null):(this.head=n,n.data=i.slice(a));break}++r}return this.length-=r,t}},{key:s,value:function(e,n){return a(this,t(t({},n),{},{depth:0,customInspect:!1}))}}],i&&r(n.prototype,i),Object.defineProperty(n,"prototype",{writable:!1}),e}(),kf}(),d=Lf,f=Wf.getHighWaterMark,h=If.codes,p=h.ERR_INVALID_ARG_TYPE,m=h.ERR_STREAM_PUSH_AFTER_EOF,g=h.ERR_METHOD_NOT_IMPLEMENTED,v=h.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;Jr(A,r);var y=d.errorOrDestroy,b=["error","close","destroy","pause","resume"];function w(t,n,r){e=e||Kf(),t=t||{},"boolean"!=typeof r&&(r=n instanceof e),this.objectMode=!!t.objectMode,r&&(this.objectMode=this.objectMode||!!t.readableObjectMode),this.highWaterMark=f(this,t,"readableHighWaterMark",r),this.buffer=new c,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=!1!==t.emitClose,this.autoDestroy=!!t.autoDestroy,this.destroyed=!1,this.defaultEncoding=t.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,t.encoding&&(s||(s=Yf().StringDecoder),this.decoder=new s(t.encoding),this.encoding=t.encoding)}function A(t){if(e=e||Kf(),!(this instanceof A))return new A(t);var n=this instanceof e;this._readableState=new w(t,this,n),this.readable=!0,t&&("function"==typeof t.read&&(this._read=t.read),"function"==typeof t.destroy&&(this._destroy=t.destroy)),r.call(this)}function _(e,n,r,a,s){t("readableAddChunk",n);var u,l=e._readableState;if(null===n)l.reading=!1,function(e,n){if(t("onEofChunk"),!n.ended){if(n.decoder){var r=n.decoder.end();r&&r.length&&(n.buffer.push(r),n.length+=n.objectMode?1:r.length)}n.ended=!0,n.sync?M(e):(n.needReadable=!1,n.emittedReadable||(n.emittedReadable=!0,C(e)))}}(e,l);else if(s||(u=function(e,t){var n,r;return r=t,i.isBuffer(r)||r instanceof o||"string"==typeof t||void 0===t||e.objectMode||(n=new p("chunk",["string","Buffer","Uint8Array"],t)),n}(l,n)),u)y(e,u);else if(l.objectMode||n&&n.length>0)if("string"==typeof n||l.objectMode||Object.getPrototypeOf(n)===i.prototype||(n=function(e){return i.from(e)}(n)),a)l.endEmitted?y(e,new v):E(e,l,n,!0);else if(l.ended)y(e,new m);else{if(l.destroyed)return!1;l.reading=!1,l.decoder&&!r?(n=l.decoder.write(n),l.objectMode||0!==n.length?E(e,l,n,!1):x(e,l)):E(e,l,n,!1)}else a||(l.reading=!1,x(e,l));return!l.ended&&(l.lengtht.highWaterMark&&(t.highWaterMark=function(e){return e>=S?e=S:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function M(e){var n=e._readableState;t("emitReadable",n.needReadable,n.emittedReadable),n.needReadable=!1,n.emittedReadable||(t("emitReadable",n.flowing),n.emittedReadable=!0,Tr(C,e))}function C(e){var n=e._readableState;t("emitReadable_",n.destroyed,n.length,n.ended),n.destroyed||!n.length&&!n.ended||(e.emit("readable"),n.emittedReadable=!1),n.needReadable=!n.flowing&&!n.ended&&n.length<=n.highWaterMark,L(e)}function x(e,t){t.readingMore||(t.readingMore=!0,Tr(R,e,t))}function R(e,n){for(;!n.reading&&!n.ended&&(n.length0,t.resumeScheduled&&!t.paused?t.flowing=!0:e.listenerCount("data")>0&&e.resume()}function T(e){t("readable nexttick read 0"),e.read(0)}function P(e,n){t("resume",n.reading),n.reading||e.read(0),n.resumeScheduled=!1,e.emit("resume"),L(e),n.flowing&&!n.reading&&e.read(0)}function L(e){var n=e._readableState;for(t("flow",n.flowing);n.flowing&&null!==e.read(););}function I(e,t){return 0===t.length?null:(t.objectMode?n=t.buffer.shift():!e||e>=t.length?(n=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.first():t.buffer.concat(t.length),t.buffer.clear()):n=t.buffer.consume(e,t.decoder),n);var n}function N(e){var n=e._readableState;t("endReadable",n.endEmitted),n.endEmitted||(n.ended=!0,Tr(D,n,e))}function D(e,n){if(t("endReadableNT",e.endEmitted,e.length),!e.endEmitted&&0===e.length&&(e.endEmitted=!0,n.readable=!1,n.emit("end"),e.autoDestroy)){var r=n._writableState;(!r||r.autoDestroy&&r.finished)&&n.destroy()}}function B(e,t){for(var n=0,r=e.length;n=n.highWaterMark:n.length>0)||n.ended))return t("read: emitReadable",n.length,n.ended),0===n.length&&n.ended?N(this):M(this),null;if(0===(e=k(e,n))&&n.ended)return 0===n.length&&N(this),null;var i,o=n.needReadable;return t("need readable",o),(0===n.length||n.length-e0?I(e,n):null)?(n.needReadable=n.length<=n.highWaterMark,e=0):(n.length-=e,n.awaitDrain=0),0===n.length&&(n.ended||(n.needReadable=!0),r!==e&&n.ended&&N(this)),null!==i&&this.emit("data",i),i},A.prototype._read=function(e){y(this,new g("_read()"))},A.prototype.pipe=function(e,r){var i=this,o=this._readableState;switch(o.pipesCount){case 0:o.pipes=e;break;case 1:o.pipes=[o.pipes,e];break;default:o.pipes.push(e)}o.pipesCount+=1,t("pipe count=%d opts=%j",o.pipesCount,r);var a=r&&!1===r.end||e===Vr.stdout||e===Vr.stderr?p:s;function s(){t("onend"),e.end()}o.endEmitted?Tr(a):i.once("end",a),e.on("unpipe",(function n(r,a){t("onunpipe"),r===i&&a&&!1===a.hasUnpiped&&(a.hasUnpiped=!0,t("cleanup"),e.removeListener("close",f),e.removeListener("finish",h),e.removeListener("drain",u),e.removeListener("error",d),e.removeListener("unpipe",n),i.removeListener("end",s),i.removeListener("end",p),i.removeListener("data",c),l=!0,!o.awaitDrain||e._writableState&&!e._writableState.needDrain||u())}));var u=function(e){return function(){var r=e._readableState;t("pipeOnDrain",r.awaitDrain),r.awaitDrain&&r.awaitDrain--,0===r.awaitDrain&&n(e,"data")&&(r.flowing=!0,L(e))}}(i);e.on("drain",u);var l=!1;function c(n){t("ondata");var r=e.write(n);t("dest.write",r),!1===r&&((1===o.pipesCount&&o.pipes===e||o.pipesCount>1&&-1!==B(o.pipes,e))&&!l&&(t("false write response, pause",o.awaitDrain),o.awaitDrain++),i.pause())}function d(r){t("onerror",r),p(),e.removeListener("error",d),0===n(e,"error")&&y(e,r)}function f(){e.removeListener("finish",h),p()}function h(){t("onfinish"),e.removeListener("close",f),p()}function p(){t("unpipe"),i.unpipe(e)}return i.on("data",c),function(e,t,n){if("function"==typeof e.prependListener)return e.prependListener(t,n);e._events&&e._events[t]?Array.isArray(e._events[t])?e._events[t].unshift(n):e._events[t]=[n,e._events[t]]:e.on(t,n)}(e,"error",d),e.once("close",f),e.once("finish",h),e.emit("pipe",i),o.flowing||(t("pipe resume"),i.resume()),e},A.prototype.unpipe=function(e){var t=this._readableState,n={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,n)),this;if(!e){var r=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var o=0;o0,!1!==o.flowing&&this.resume()):"readable"===e&&(o.endEmitted||o.readableListening||(o.readableListening=o.needReadable=!0,o.flowing=!1,o.emittedReadable=!1,t("on readable",o.length,o.reading),o.length?M(this):o.reading||Tr(T,this))),i},A.prototype.addListener=A.prototype.on,A.prototype.removeListener=function(e,t){var n=r.prototype.removeListener.call(this,e,t);return"readable"===e&&Tr(O,this),n},A.prototype.removeAllListeners=function(e){var t=r.prototype.removeAllListeners.apply(this,arguments);return"readable"!==e&&void 0!==e||Tr(O,this),t},A.prototype.resume=function(){var e=this._readableState;return e.flowing||(t("resume"),e.flowing=!e.readableListening,function(e,t){t.resumeScheduled||(t.resumeScheduled=!0,Tr(P,e,t))}(this,e)),e.paused=!1,this},A.prototype.pause=function(){return t("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(t("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},A.prototype.wrap=function(e){var n=this,r=this._readableState,i=!1;for(var o in e.on("end",(function(){if(t("wrapped end"),r.decoder&&!r.ended){var e=r.decoder.end();e&&e.length&&n.push(e)}n.push(null)})),e.on("data",(function(o){t("wrapped data"),r.decoder&&(o=r.decoder.write(o)),r.objectMode&&null==o||(r.objectMode||o&&o.length)&&(n.push(o)||(i=!0,e.pause()))})),e)void 0===this[o]&&"function"==typeof e[o]&&(this[o]=function(t){return function(){return e[t].apply(e,arguments)}}(o));for(var a=0;a0,(function(e){r||(r=e),e&&o.forEach(Sh),a||(o.forEach(Sh),i(r))}))}));return t.reduce(kh)};!function(e,t){(t=xf.exports=ih()).Stream=t,t.Readable=t,t.Writable=Vf(),t.Duplex=Kf(),t.Transform=oh,t.PassThrough=vh,t.finished=rh,t.pipeline=Mh}(0,xf.exports);var Ch=xf.exports,xh={exports:{}},Rh={exports:{}};!function(e,t){function n(e,t){if(!e)throw new Error(t||"Assertion failed")}function r(e,t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}function i(e,t,n){if(i.isBN(e))return e;this.negative=0,this.words=null,this.length=0,this.red=null,null!==e&&("le"!==t&&"be"!==t||(n=t,t=10),this._init(e||0,t||10,n||"be"))}var o;"object"==typeof e?e.exports=i:t.BN=i,i.BN=i,i.wordSize=26;try{o="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:yr.Buffer}catch(e){}function a(e,t){var r=e.charCodeAt(t);return r>=48&&r<=57?r-48:r>=65&&r<=70?r-55:r>=97&&r<=102?r-87:void n(!1,"Invalid character in "+e)}function s(e,t,n){var r=a(e,n);return n-1>=t&&(r|=a(e,n-1)<<4),r}function u(e,t,r,i){for(var o=0,a=0,s=Math.min(e.length,r),u=t;u=49?l-49+10:l>=17?l-17+10:l,n(l>=0&&a0?e:t},i.min=function(e,t){return e.cmp(t)<0?e:t},i.prototype._init=function(e,t,r){if("number"==typeof e)return this._initNumber(e,t,r);if("object"==typeof e)return this._initArray(e,t,r);"hex"===t&&(t=16),n(t===(0|t)&&t>=2&&t<=36);var i=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&(i++,this.negative=1),i=0;i-=3)a=e[i]|e[i-1]<<8|e[i-2]<<16,this.words[o]|=a<>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);else if("le"===r)for(i=0,o=0;i>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);return this._strip()},i.prototype._parseHex=function(e,t,n){this.length=Math.ceil((e.length-t)/6),this.words=new Array(this.length);for(var r=0;r=t;r-=2)i=s(e,t,r)<=18?(o-=18,a+=1,this.words[a]|=i>>>26):o+=8;else for(r=(e.length-t)%2==0?t+1:t;r=18?(o-=18,a+=1,this.words[a]|=i>>>26):o+=8;this._strip()},i.prototype._parseBase=function(e,t,n){this.words=[0],this.length=1;for(var r=0,i=1;i<=67108863;i*=t)r++;r--,i=i/t|0;for(var o=e.length-n,a=o%r,s=Math.min(o,o-a)+n,l=0,c=n;c1&&0===this.words[this.length-1];)this.length--;return this._normSign()},i.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},"undefined"!=typeof Symbol&&"function"==typeof Symbol.for)try{i.prototype[Symbol.for("nodejs.util.inspect.custom")]=c}catch(e){i.prototype.inspect=c}else i.prototype.inspect=c;function c(){return(this.red?""}var d=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],f=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],h=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function p(e,t,n){n.negative=t.negative^e.negative;var r=e.length+t.length|0;n.length=r,r=r-1|0;var i=0|e.words[0],o=0|t.words[0],a=i*o,s=67108863&a,u=a/67108864|0;n.words[0]=s;for(var l=1;l>>26,d=67108863&u,f=Math.min(l,t.length-1),h=Math.max(0,l-e.length+1);h<=f;h++){var p=l-h|0;c+=(a=(i=0|e.words[p])*(o=0|t.words[h])+d)/67108864|0,d=67108863&a}n.words[l]=0|d,u=0|c}return 0!==u?n.words[l]=0|u:n.length--,n._strip()}i.prototype.toString=function(e,t){var r;if(t=0|t||1,16===(e=e||10)||"hex"===e){r="";for(var i=0,o=0,a=0;a>>24-i&16777215,(i+=2)>=26&&(i-=26,a--),r=0!==o||a!==this.length-1?d[6-u.length]+u+r:u+r}for(0!==o&&(r=o.toString(16)+r);r.length%t!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}if(e===(0|e)&&e>=2&&e<=36){var l=f[e],c=h[e];r="";var p=this.clone();for(p.negative=0;!p.isZero();){var m=p.modrn(c).toString(e);r=(p=p.idivn(c)).isZero()?m+r:d[l-m.length]+m+r}for(this.isZero()&&(r="0"+r);r.length%t!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}n(!1,"Base should be between 2 and 36")},i.prototype.toNumber=function(){var e=this.words[0];return 2===this.length?e+=67108864*this.words[1]:3===this.length&&1===this.words[2]?e+=4503599627370496+67108864*this.words[1]:this.length>2&&n(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},i.prototype.toJSON=function(){return this.toString(16,2)},o&&(i.prototype.toBuffer=function(e,t){return this.toArrayLike(o,e,t)}),i.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},i.prototype.toArrayLike=function(e,t,r){this._strip();var i=this.byteLength(),o=r||Math.max(1,i);n(i<=o,"byte array longer than desired length"),n(o>0,"Requested array length <= 0");var a=function(e,t){return e.allocUnsafe?e.allocUnsafe(t):new e(t)}(e,o);return this["_toArrayLike"+("le"===t?"LE":"BE")](a,i),a},i.prototype._toArrayLikeLE=function(e,t){for(var n=0,r=0,i=0,o=0;i>8&255),n>16&255),6===o?(n>24&255),r=0,o=0):(r=a>>>24,o+=2)}if(n=0&&(e[n--]=a>>8&255),n>=0&&(e[n--]=a>>16&255),6===o?(n>=0&&(e[n--]=a>>24&255),r=0,o=0):(r=a>>>24,o+=2)}if(n>=0)for(e[n--]=r;n>=0;)e[n--]=0},Math.clz32?i.prototype._countBits=function(e){return 32-Math.clz32(e)}:i.prototype._countBits=function(e){var t=e,n=0;return t>=4096&&(n+=13,t>>>=13),t>=64&&(n+=7,t>>>=7),t>=8&&(n+=4,t>>>=4),t>=2&&(n+=2,t>>>=2),n+t},i.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,n=0;return 0==(8191&t)&&(n+=13,t>>>=13),0==(127&t)&&(n+=7,t>>>=7),0==(15&t)&&(n+=4,t>>>=4),0==(3&t)&&(n+=2,t>>>=2),0==(1&t)&&n++,n},i.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return 26*(this.length-1)+t},i.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;te.length?this.clone().ior(e):e.clone().ior(this)},i.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},i.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var n=0;ne.length?this.clone().iand(e):e.clone().iand(this)},i.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},i.prototype.iuxor=function(e){var t,n;this.length>e.length?(t=this,n=e):(t=e,n=this);for(var r=0;re.length?this.clone().ixor(e):e.clone().ixor(this)},i.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},i.prototype.inotn=function(e){n("number"==typeof e&&e>=0);var t=0|Math.ceil(e/26),r=e%26;this._expand(t),r>0&&t--;for(var i=0;i0&&(this.words[i]=~this.words[i]&67108863>>26-r),this._strip()},i.prototype.notn=function(e){return this.clone().inotn(e)},i.prototype.setn=function(e,t){n("number"==typeof e&&e>=0);var r=e/26|0,i=e%26;return this._expand(r+1),this.words[r]=t?this.words[r]|1<e.length?(n=this,r=e):(n=e,r=this);for(var i=0,o=0;o>>26;for(;0!==i&&o>>26;if(this.length=n.length,0!==i)this.words[this.length]=i,this.length++;else if(n!==this)for(;oe.length?this.clone().iadd(e):e.clone().iadd(this)},i.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var t=this.iadd(e);return e.negative=1,t._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var n,r,i=this.cmp(e);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(n=this,r=e):(n=e,r=this);for(var o=0,a=0;a>26,this.words[a]=67108863&t;for(;0!==o&&a>26,this.words[a]=67108863&t;if(0===o&&a>>13,h=0|a[1],p=8191&h,m=h>>>13,g=0|a[2],v=8191&g,y=g>>>13,b=0|a[3],w=8191&b,A=b>>>13,_=0|a[4],E=8191&_,S=_>>>13,k=0|a[5],M=8191&k,C=k>>>13,x=0|a[6],R=8191&x,O=x>>>13,T=0|a[7],P=8191&T,L=T>>>13,I=0|a[8],N=8191&I,D=I>>>13,B=0|a[9],j=8191&B,U=B>>>13,z=0|s[0],F=8191&z,q=z>>>13,W=0|s[1],V=8191&W,K=W>>>13,H=0|s[2],$=8191&H,Y=H>>>13,G=0|s[3],Q=8191&G,Z=G>>>13,X=0|s[4],J=8191&X,ee=X>>>13,te=0|s[5],ne=8191&te,re=te>>>13,ie=0|s[6],oe=8191&ie,ae=ie>>>13,se=0|s[7],ue=8191&se,le=se>>>13,ce=0|s[8],de=8191&ce,fe=ce>>>13,he=0|s[9],pe=8191&he,me=he>>>13;n.negative=e.negative^t.negative,n.length=19;var ge=(l+(r=Math.imul(d,F))|0)+((8191&(i=(i=Math.imul(d,q))+Math.imul(f,F)|0))<<13)|0;l=((o=Math.imul(f,q))+(i>>>13)|0)+(ge>>>26)|0,ge&=67108863,r=Math.imul(p,F),i=(i=Math.imul(p,q))+Math.imul(m,F)|0,o=Math.imul(m,q);var ve=(l+(r=r+Math.imul(d,V)|0)|0)+((8191&(i=(i=i+Math.imul(d,K)|0)+Math.imul(f,V)|0))<<13)|0;l=((o=o+Math.imul(f,K)|0)+(i>>>13)|0)+(ve>>>26)|0,ve&=67108863,r=Math.imul(v,F),i=(i=Math.imul(v,q))+Math.imul(y,F)|0,o=Math.imul(y,q),r=r+Math.imul(p,V)|0,i=(i=i+Math.imul(p,K)|0)+Math.imul(m,V)|0,o=o+Math.imul(m,K)|0;var ye=(l+(r=r+Math.imul(d,$)|0)|0)+((8191&(i=(i=i+Math.imul(d,Y)|0)+Math.imul(f,$)|0))<<13)|0;l=((o=o+Math.imul(f,Y)|0)+(i>>>13)|0)+(ye>>>26)|0,ye&=67108863,r=Math.imul(w,F),i=(i=Math.imul(w,q))+Math.imul(A,F)|0,o=Math.imul(A,q),r=r+Math.imul(v,V)|0,i=(i=i+Math.imul(v,K)|0)+Math.imul(y,V)|0,o=o+Math.imul(y,K)|0,r=r+Math.imul(p,$)|0,i=(i=i+Math.imul(p,Y)|0)+Math.imul(m,$)|0,o=o+Math.imul(m,Y)|0;var be=(l+(r=r+Math.imul(d,Q)|0)|0)+((8191&(i=(i=i+Math.imul(d,Z)|0)+Math.imul(f,Q)|0))<<13)|0;l=((o=o+Math.imul(f,Z)|0)+(i>>>13)|0)+(be>>>26)|0,be&=67108863,r=Math.imul(E,F),i=(i=Math.imul(E,q))+Math.imul(S,F)|0,o=Math.imul(S,q),r=r+Math.imul(w,V)|0,i=(i=i+Math.imul(w,K)|0)+Math.imul(A,V)|0,o=o+Math.imul(A,K)|0,r=r+Math.imul(v,$)|0,i=(i=i+Math.imul(v,Y)|0)+Math.imul(y,$)|0,o=o+Math.imul(y,Y)|0,r=r+Math.imul(p,Q)|0,i=(i=i+Math.imul(p,Z)|0)+Math.imul(m,Q)|0,o=o+Math.imul(m,Z)|0;var we=(l+(r=r+Math.imul(d,J)|0)|0)+((8191&(i=(i=i+Math.imul(d,ee)|0)+Math.imul(f,J)|0))<<13)|0;l=((o=o+Math.imul(f,ee)|0)+(i>>>13)|0)+(we>>>26)|0,we&=67108863,r=Math.imul(M,F),i=(i=Math.imul(M,q))+Math.imul(C,F)|0,o=Math.imul(C,q),r=r+Math.imul(E,V)|0,i=(i=i+Math.imul(E,K)|0)+Math.imul(S,V)|0,o=o+Math.imul(S,K)|0,r=r+Math.imul(w,$)|0,i=(i=i+Math.imul(w,Y)|0)+Math.imul(A,$)|0,o=o+Math.imul(A,Y)|0,r=r+Math.imul(v,Q)|0,i=(i=i+Math.imul(v,Z)|0)+Math.imul(y,Q)|0,o=o+Math.imul(y,Z)|0,r=r+Math.imul(p,J)|0,i=(i=i+Math.imul(p,ee)|0)+Math.imul(m,J)|0,o=o+Math.imul(m,ee)|0;var Ae=(l+(r=r+Math.imul(d,ne)|0)|0)+((8191&(i=(i=i+Math.imul(d,re)|0)+Math.imul(f,ne)|0))<<13)|0;l=((o=o+Math.imul(f,re)|0)+(i>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,r=Math.imul(R,F),i=(i=Math.imul(R,q))+Math.imul(O,F)|0,o=Math.imul(O,q),r=r+Math.imul(M,V)|0,i=(i=i+Math.imul(M,K)|0)+Math.imul(C,V)|0,o=o+Math.imul(C,K)|0,r=r+Math.imul(E,$)|0,i=(i=i+Math.imul(E,Y)|0)+Math.imul(S,$)|0,o=o+Math.imul(S,Y)|0,r=r+Math.imul(w,Q)|0,i=(i=i+Math.imul(w,Z)|0)+Math.imul(A,Q)|0,o=o+Math.imul(A,Z)|0,r=r+Math.imul(v,J)|0,i=(i=i+Math.imul(v,ee)|0)+Math.imul(y,J)|0,o=o+Math.imul(y,ee)|0,r=r+Math.imul(p,ne)|0,i=(i=i+Math.imul(p,re)|0)+Math.imul(m,ne)|0,o=o+Math.imul(m,re)|0;var _e=(l+(r=r+Math.imul(d,oe)|0)|0)+((8191&(i=(i=i+Math.imul(d,ae)|0)+Math.imul(f,oe)|0))<<13)|0;l=((o=o+Math.imul(f,ae)|0)+(i>>>13)|0)+(_e>>>26)|0,_e&=67108863,r=Math.imul(P,F),i=(i=Math.imul(P,q))+Math.imul(L,F)|0,o=Math.imul(L,q),r=r+Math.imul(R,V)|0,i=(i=i+Math.imul(R,K)|0)+Math.imul(O,V)|0,o=o+Math.imul(O,K)|0,r=r+Math.imul(M,$)|0,i=(i=i+Math.imul(M,Y)|0)+Math.imul(C,$)|0,o=o+Math.imul(C,Y)|0,r=r+Math.imul(E,Q)|0,i=(i=i+Math.imul(E,Z)|0)+Math.imul(S,Q)|0,o=o+Math.imul(S,Z)|0,r=r+Math.imul(w,J)|0,i=(i=i+Math.imul(w,ee)|0)+Math.imul(A,J)|0,o=o+Math.imul(A,ee)|0,r=r+Math.imul(v,ne)|0,i=(i=i+Math.imul(v,re)|0)+Math.imul(y,ne)|0,o=o+Math.imul(y,re)|0,r=r+Math.imul(p,oe)|0,i=(i=i+Math.imul(p,ae)|0)+Math.imul(m,oe)|0,o=o+Math.imul(m,ae)|0;var Ee=(l+(r=r+Math.imul(d,ue)|0)|0)+((8191&(i=(i=i+Math.imul(d,le)|0)+Math.imul(f,ue)|0))<<13)|0;l=((o=o+Math.imul(f,le)|0)+(i>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,r=Math.imul(N,F),i=(i=Math.imul(N,q))+Math.imul(D,F)|0,o=Math.imul(D,q),r=r+Math.imul(P,V)|0,i=(i=i+Math.imul(P,K)|0)+Math.imul(L,V)|0,o=o+Math.imul(L,K)|0,r=r+Math.imul(R,$)|0,i=(i=i+Math.imul(R,Y)|0)+Math.imul(O,$)|0,o=o+Math.imul(O,Y)|0,r=r+Math.imul(M,Q)|0,i=(i=i+Math.imul(M,Z)|0)+Math.imul(C,Q)|0,o=o+Math.imul(C,Z)|0,r=r+Math.imul(E,J)|0,i=(i=i+Math.imul(E,ee)|0)+Math.imul(S,J)|0,o=o+Math.imul(S,ee)|0,r=r+Math.imul(w,ne)|0,i=(i=i+Math.imul(w,re)|0)+Math.imul(A,ne)|0,o=o+Math.imul(A,re)|0,r=r+Math.imul(v,oe)|0,i=(i=i+Math.imul(v,ae)|0)+Math.imul(y,oe)|0,o=o+Math.imul(y,ae)|0,r=r+Math.imul(p,ue)|0,i=(i=i+Math.imul(p,le)|0)+Math.imul(m,ue)|0,o=o+Math.imul(m,le)|0;var Se=(l+(r=r+Math.imul(d,de)|0)|0)+((8191&(i=(i=i+Math.imul(d,fe)|0)+Math.imul(f,de)|0))<<13)|0;l=((o=o+Math.imul(f,fe)|0)+(i>>>13)|0)+(Se>>>26)|0,Se&=67108863,r=Math.imul(j,F),i=(i=Math.imul(j,q))+Math.imul(U,F)|0,o=Math.imul(U,q),r=r+Math.imul(N,V)|0,i=(i=i+Math.imul(N,K)|0)+Math.imul(D,V)|0,o=o+Math.imul(D,K)|0,r=r+Math.imul(P,$)|0,i=(i=i+Math.imul(P,Y)|0)+Math.imul(L,$)|0,o=o+Math.imul(L,Y)|0,r=r+Math.imul(R,Q)|0,i=(i=i+Math.imul(R,Z)|0)+Math.imul(O,Q)|0,o=o+Math.imul(O,Z)|0,r=r+Math.imul(M,J)|0,i=(i=i+Math.imul(M,ee)|0)+Math.imul(C,J)|0,o=o+Math.imul(C,ee)|0,r=r+Math.imul(E,ne)|0,i=(i=i+Math.imul(E,re)|0)+Math.imul(S,ne)|0,o=o+Math.imul(S,re)|0,r=r+Math.imul(w,oe)|0,i=(i=i+Math.imul(w,ae)|0)+Math.imul(A,oe)|0,o=o+Math.imul(A,ae)|0,r=r+Math.imul(v,ue)|0,i=(i=i+Math.imul(v,le)|0)+Math.imul(y,ue)|0,o=o+Math.imul(y,le)|0,r=r+Math.imul(p,de)|0,i=(i=i+Math.imul(p,fe)|0)+Math.imul(m,de)|0,o=o+Math.imul(m,fe)|0;var ke=(l+(r=r+Math.imul(d,pe)|0)|0)+((8191&(i=(i=i+Math.imul(d,me)|0)+Math.imul(f,pe)|0))<<13)|0;l=((o=o+Math.imul(f,me)|0)+(i>>>13)|0)+(ke>>>26)|0,ke&=67108863,r=Math.imul(j,V),i=(i=Math.imul(j,K))+Math.imul(U,V)|0,o=Math.imul(U,K),r=r+Math.imul(N,$)|0,i=(i=i+Math.imul(N,Y)|0)+Math.imul(D,$)|0,o=o+Math.imul(D,Y)|0,r=r+Math.imul(P,Q)|0,i=(i=i+Math.imul(P,Z)|0)+Math.imul(L,Q)|0,o=o+Math.imul(L,Z)|0,r=r+Math.imul(R,J)|0,i=(i=i+Math.imul(R,ee)|0)+Math.imul(O,J)|0,o=o+Math.imul(O,ee)|0,r=r+Math.imul(M,ne)|0,i=(i=i+Math.imul(M,re)|0)+Math.imul(C,ne)|0,o=o+Math.imul(C,re)|0,r=r+Math.imul(E,oe)|0,i=(i=i+Math.imul(E,ae)|0)+Math.imul(S,oe)|0,o=o+Math.imul(S,ae)|0,r=r+Math.imul(w,ue)|0,i=(i=i+Math.imul(w,le)|0)+Math.imul(A,ue)|0,o=o+Math.imul(A,le)|0,r=r+Math.imul(v,de)|0,i=(i=i+Math.imul(v,fe)|0)+Math.imul(y,de)|0,o=o+Math.imul(y,fe)|0;var Me=(l+(r=r+Math.imul(p,pe)|0)|0)+((8191&(i=(i=i+Math.imul(p,me)|0)+Math.imul(m,pe)|0))<<13)|0;l=((o=o+Math.imul(m,me)|0)+(i>>>13)|0)+(Me>>>26)|0,Me&=67108863,r=Math.imul(j,$),i=(i=Math.imul(j,Y))+Math.imul(U,$)|0,o=Math.imul(U,Y),r=r+Math.imul(N,Q)|0,i=(i=i+Math.imul(N,Z)|0)+Math.imul(D,Q)|0,o=o+Math.imul(D,Z)|0,r=r+Math.imul(P,J)|0,i=(i=i+Math.imul(P,ee)|0)+Math.imul(L,J)|0,o=o+Math.imul(L,ee)|0,r=r+Math.imul(R,ne)|0,i=(i=i+Math.imul(R,re)|0)+Math.imul(O,ne)|0,o=o+Math.imul(O,re)|0,r=r+Math.imul(M,oe)|0,i=(i=i+Math.imul(M,ae)|0)+Math.imul(C,oe)|0,o=o+Math.imul(C,ae)|0,r=r+Math.imul(E,ue)|0,i=(i=i+Math.imul(E,le)|0)+Math.imul(S,ue)|0,o=o+Math.imul(S,le)|0,r=r+Math.imul(w,de)|0,i=(i=i+Math.imul(w,fe)|0)+Math.imul(A,de)|0,o=o+Math.imul(A,fe)|0;var Ce=(l+(r=r+Math.imul(v,pe)|0)|0)+((8191&(i=(i=i+Math.imul(v,me)|0)+Math.imul(y,pe)|0))<<13)|0;l=((o=o+Math.imul(y,me)|0)+(i>>>13)|0)+(Ce>>>26)|0,Ce&=67108863,r=Math.imul(j,Q),i=(i=Math.imul(j,Z))+Math.imul(U,Q)|0,o=Math.imul(U,Z),r=r+Math.imul(N,J)|0,i=(i=i+Math.imul(N,ee)|0)+Math.imul(D,J)|0,o=o+Math.imul(D,ee)|0,r=r+Math.imul(P,ne)|0,i=(i=i+Math.imul(P,re)|0)+Math.imul(L,ne)|0,o=o+Math.imul(L,re)|0,r=r+Math.imul(R,oe)|0,i=(i=i+Math.imul(R,ae)|0)+Math.imul(O,oe)|0,o=o+Math.imul(O,ae)|0,r=r+Math.imul(M,ue)|0,i=(i=i+Math.imul(M,le)|0)+Math.imul(C,ue)|0,o=o+Math.imul(C,le)|0,r=r+Math.imul(E,de)|0,i=(i=i+Math.imul(E,fe)|0)+Math.imul(S,de)|0,o=o+Math.imul(S,fe)|0;var xe=(l+(r=r+Math.imul(w,pe)|0)|0)+((8191&(i=(i=i+Math.imul(w,me)|0)+Math.imul(A,pe)|0))<<13)|0;l=((o=o+Math.imul(A,me)|0)+(i>>>13)|0)+(xe>>>26)|0,xe&=67108863,r=Math.imul(j,J),i=(i=Math.imul(j,ee))+Math.imul(U,J)|0,o=Math.imul(U,ee),r=r+Math.imul(N,ne)|0,i=(i=i+Math.imul(N,re)|0)+Math.imul(D,ne)|0,o=o+Math.imul(D,re)|0,r=r+Math.imul(P,oe)|0,i=(i=i+Math.imul(P,ae)|0)+Math.imul(L,oe)|0,o=o+Math.imul(L,ae)|0,r=r+Math.imul(R,ue)|0,i=(i=i+Math.imul(R,le)|0)+Math.imul(O,ue)|0,o=o+Math.imul(O,le)|0,r=r+Math.imul(M,de)|0,i=(i=i+Math.imul(M,fe)|0)+Math.imul(C,de)|0,o=o+Math.imul(C,fe)|0;var Re=(l+(r=r+Math.imul(E,pe)|0)|0)+((8191&(i=(i=i+Math.imul(E,me)|0)+Math.imul(S,pe)|0))<<13)|0;l=((o=o+Math.imul(S,me)|0)+(i>>>13)|0)+(Re>>>26)|0,Re&=67108863,r=Math.imul(j,ne),i=(i=Math.imul(j,re))+Math.imul(U,ne)|0,o=Math.imul(U,re),r=r+Math.imul(N,oe)|0,i=(i=i+Math.imul(N,ae)|0)+Math.imul(D,oe)|0,o=o+Math.imul(D,ae)|0,r=r+Math.imul(P,ue)|0,i=(i=i+Math.imul(P,le)|0)+Math.imul(L,ue)|0,o=o+Math.imul(L,le)|0,r=r+Math.imul(R,de)|0,i=(i=i+Math.imul(R,fe)|0)+Math.imul(O,de)|0,o=o+Math.imul(O,fe)|0;var Oe=(l+(r=r+Math.imul(M,pe)|0)|0)+((8191&(i=(i=i+Math.imul(M,me)|0)+Math.imul(C,pe)|0))<<13)|0;l=((o=o+Math.imul(C,me)|0)+(i>>>13)|0)+(Oe>>>26)|0,Oe&=67108863,r=Math.imul(j,oe),i=(i=Math.imul(j,ae))+Math.imul(U,oe)|0,o=Math.imul(U,ae),r=r+Math.imul(N,ue)|0,i=(i=i+Math.imul(N,le)|0)+Math.imul(D,ue)|0,o=o+Math.imul(D,le)|0,r=r+Math.imul(P,de)|0,i=(i=i+Math.imul(P,fe)|0)+Math.imul(L,de)|0,o=o+Math.imul(L,fe)|0;var Te=(l+(r=r+Math.imul(R,pe)|0)|0)+((8191&(i=(i=i+Math.imul(R,me)|0)+Math.imul(O,pe)|0))<<13)|0;l=((o=o+Math.imul(O,me)|0)+(i>>>13)|0)+(Te>>>26)|0,Te&=67108863,r=Math.imul(j,ue),i=(i=Math.imul(j,le))+Math.imul(U,ue)|0,o=Math.imul(U,le),r=r+Math.imul(N,de)|0,i=(i=i+Math.imul(N,fe)|0)+Math.imul(D,de)|0,o=o+Math.imul(D,fe)|0;var Pe=(l+(r=r+Math.imul(P,pe)|0)|0)+((8191&(i=(i=i+Math.imul(P,me)|0)+Math.imul(L,pe)|0))<<13)|0;l=((o=o+Math.imul(L,me)|0)+(i>>>13)|0)+(Pe>>>26)|0,Pe&=67108863,r=Math.imul(j,de),i=(i=Math.imul(j,fe))+Math.imul(U,de)|0,o=Math.imul(U,fe);var Le=(l+(r=r+Math.imul(N,pe)|0)|0)+((8191&(i=(i=i+Math.imul(N,me)|0)+Math.imul(D,pe)|0))<<13)|0;l=((o=o+Math.imul(D,me)|0)+(i>>>13)|0)+(Le>>>26)|0,Le&=67108863;var Ie=(l+(r=Math.imul(j,pe))|0)+((8191&(i=(i=Math.imul(j,me))+Math.imul(U,pe)|0))<<13)|0;return l=((o=Math.imul(U,me))+(i>>>13)|0)+(Ie>>>26)|0,Ie&=67108863,u[0]=ge,u[1]=ve,u[2]=ye,u[3]=be,u[4]=we,u[5]=Ae,u[6]=_e,u[7]=Ee,u[8]=Se,u[9]=ke,u[10]=Me,u[11]=Ce,u[12]=xe,u[13]=Re,u[14]=Oe,u[15]=Te,u[16]=Pe,u[17]=Le,u[18]=Ie,0!==l&&(u[19]=l,n.length++),n};function g(e,t,n){n.negative=t.negative^e.negative,n.length=e.length+t.length;for(var r=0,i=0,o=0;o>>26)|0)>>>26,a&=67108863}n.words[o]=s,r=a,a=i}return 0!==r?n.words[o]=r:n.length--,n._strip()}function v(e,t,n){return g(e,t,n)}Math.imul||(m=p),i.prototype.mulTo=function(e,t){var n=this.length+e.length;return 10===this.length&&10===e.length?m(this,e,t):n<63?p(this,e,t):n<1024?g(this,e,t):v(this,e,t)},i.prototype.mul=function(e){var t=new i(null);return t.words=new Array(this.length+e.length),this.mulTo(e,t)},i.prototype.mulf=function(e){var t=new i(null);return t.words=new Array(this.length+e.length),v(this,e,t)},i.prototype.imul=function(e){return this.clone().mulTo(e,this)},i.prototype.imuln=function(e){var t=e<0;t&&(e=-e),n("number"==typeof e),n(e<67108864);for(var r=0,i=0;i>=26,r+=o/67108864|0,r+=a>>>26,this.words[i]=67108863&a}return 0!==r&&(this.words[i]=r,this.length++),t?this.ineg():this},i.prototype.muln=function(e){return this.clone().imuln(e)},i.prototype.sqr=function(){return this.mul(this)},i.prototype.isqr=function(){return this.imul(this.clone())},i.prototype.pow=function(e){var t=function(e){for(var t=new Array(e.bitLength()),n=0;n>>i&1}return t}(e);if(0===t.length)return new i(1);for(var n=this,r=0;r=0);var t,r=e%26,i=(e-r)/26,o=67108863>>>26-r<<26-r;if(0!==r){var a=0;for(t=0;t>>26-r}a&&(this.words[t]=a,this.length++)}if(0!==i){for(t=this.length-1;t>=0;t--)this.words[t+i]=this.words[t];for(t=0;t=0),i=t?(t-t%26)/26:0;var o=e%26,a=Math.min((e-o)/26,this.length),s=67108863^67108863>>>o<a)for(this.length-=a,l=0;l=0&&(0!==c||l>=i);l--){var d=0|this.words[l];this.words[l]=c<<26-o|d>>>o,c=d&s}return u&&0!==c&&(u.words[u.length++]=c),0===this.length&&(this.words[0]=0,this.length=1),this._strip()},i.prototype.ishrn=function(e,t,r){return n(0===this.negative),this.iushrn(e,t,r)},i.prototype.shln=function(e){return this.clone().ishln(e)},i.prototype.ushln=function(e){return this.clone().iushln(e)},i.prototype.shrn=function(e){return this.clone().ishrn(e)},i.prototype.ushrn=function(e){return this.clone().iushrn(e)},i.prototype.testn=function(e){n("number"==typeof e&&e>=0);var t=e%26,r=(e-t)/26,i=1<=0);var t=e%26,r=(e-t)/26;if(n(0===this.negative,"imaskn works only with positive numbers"),this.length<=r)return this;if(0!==t&&r++,this.length=Math.min(r,this.length),0!==t){var i=67108863^67108863>>>t<=67108864;t++)this.words[t]-=67108864,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},i.prototype.isubn=function(e){if(n("number"==typeof e),n(e<67108864),e<0)return this.iaddn(-e);if(0!==this.negative)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var t=0;t>26)-(u/67108864|0),this.words[i+r]=67108863&o}for(;i>26,this.words[i+r]=67108863&o;if(0===s)return this._strip();for(n(-1===s),s=0,i=0;i>26,this.words[i]=67108863&o;return this.negative=1,this._strip()},i.prototype._wordDiv=function(e,t){var n=(this.length,e.length),r=this.clone(),o=e,a=0|o.words[o.length-1];0!=(n=26-this._countBits(a))&&(o=o.ushln(n),r.iushln(n),a=0|o.words[o.length-1]);var s,u=r.length-o.length;if("mod"!==t){(s=new i(null)).length=u+1,s.words=new Array(s.length);for(var l=0;l=0;d--){var f=67108864*(0|r.words[o.length+d])+(0|r.words[o.length+d-1]);for(f=Math.min(f/a|0,67108863),r._ishlnsubmul(o,f,d);0!==r.negative;)f--,r.negative=0,r._ishlnsubmul(o,1,d),r.isZero()||(r.negative^=1);s&&(s.words[d]=f)}return s&&s._strip(),r._strip(),"div"!==t&&0!==n&&r.iushrn(n),{div:s||null,mod:r}},i.prototype.divmod=function(e,t,r){return n(!e.isZero()),this.isZero()?{div:new i(0),mod:new i(0)}:0!==this.negative&&0===e.negative?(s=this.neg().divmod(e,t),"mod"!==t&&(o=s.div.neg()),"div"!==t&&(a=s.mod.neg(),r&&0!==a.negative&&a.iadd(e)),{div:o,mod:a}):0===this.negative&&0!==e.negative?(s=this.divmod(e.neg(),t),"mod"!==t&&(o=s.div.neg()),{div:o,mod:s.mod}):0!=(this.negative&e.negative)?(s=this.neg().divmod(e.neg(),t),"div"!==t&&(a=s.mod.neg(),r&&0!==a.negative&&a.isub(e)),{div:s.div,mod:a}):e.length>this.length||this.cmp(e)<0?{div:new i(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new i(this.modrn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new i(this.modrn(e.words[0]))}:this._wordDiv(e,t);var o,a,s},i.prototype.div=function(e){return this.divmod(e,"div",!1).div},i.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},i.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},i.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var n=0!==t.div.negative?t.mod.isub(e):t.mod,r=e.ushrn(1),i=e.andln(1),o=n.cmp(r);return o<0||1===i&&0===o?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},i.prototype.modrn=function(e){var t=e<0;t&&(e=-e),n(e<=67108863);for(var r=(1<<26)%e,i=0,o=this.length-1;o>=0;o--)i=(r*i+(0|this.words[o]))%e;return t?-i:i},i.prototype.modn=function(e){return this.modrn(e)},i.prototype.idivn=function(e){var t=e<0;t&&(e=-e),n(e<=67108863);for(var r=0,i=this.length-1;i>=0;i--){var o=(0|this.words[i])+67108864*r;this.words[i]=o/e|0,r=o%e}return this._strip(),t?this.ineg():this},i.prototype.divn=function(e){return this.clone().idivn(e)},i.prototype.egcd=function(e){n(0===e.negative),n(!e.isZero());var t=this,r=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var o=new i(1),a=new i(0),s=new i(0),u=new i(1),l=0;t.isEven()&&r.isEven();)t.iushrn(1),r.iushrn(1),++l;for(var c=r.clone(),d=t.clone();!t.isZero();){for(var f=0,h=1;0==(t.words[0]&h)&&f<26;++f,h<<=1);if(f>0)for(t.iushrn(f);f-- >0;)(o.isOdd()||a.isOdd())&&(o.iadd(c),a.isub(d)),o.iushrn(1),a.iushrn(1);for(var p=0,m=1;0==(r.words[0]&m)&&p<26;++p,m<<=1);if(p>0)for(r.iushrn(p);p-- >0;)(s.isOdd()||u.isOdd())&&(s.iadd(c),u.isub(d)),s.iushrn(1),u.iushrn(1);t.cmp(r)>=0?(t.isub(r),o.isub(s),a.isub(u)):(r.isub(t),s.isub(o),u.isub(a))}return{a:s,b:u,gcd:r.iushln(l)}},i.prototype._invmp=function(e){n(0===e.negative),n(!e.isZero());var t=this,r=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var o,a=new i(1),s=new i(0),u=r.clone();t.cmpn(1)>0&&r.cmpn(1)>0;){for(var l=0,c=1;0==(t.words[0]&c)&&l<26;++l,c<<=1);if(l>0)for(t.iushrn(l);l-- >0;)a.isOdd()&&a.iadd(u),a.iushrn(1);for(var d=0,f=1;0==(r.words[0]&f)&&d<26;++d,f<<=1);if(d>0)for(r.iushrn(d);d-- >0;)s.isOdd()&&s.iadd(u),s.iushrn(1);t.cmp(r)>=0?(t.isub(r),a.isub(s)):(r.isub(t),s.isub(a))}return(o=0===t.cmpn(1)?a:s).cmpn(0)<0&&o.iadd(e),o},i.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),n=e.clone();t.negative=0,n.negative=0;for(var r=0;t.isEven()&&n.isEven();r++)t.iushrn(1),n.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;n.isEven();)n.iushrn(1);var i=t.cmp(n);if(i<0){var o=t;t=n,n=o}else if(0===i||0===n.cmpn(1))break;t.isub(n)}return n.iushln(r)},i.prototype.invm=function(e){return this.egcd(e).a.umod(e)},i.prototype.isEven=function(){return 0==(1&this.words[0])},i.prototype.isOdd=function(){return 1==(1&this.words[0])},i.prototype.andln=function(e){return this.words[0]&e},i.prototype.bincn=function(e){n("number"==typeof e);var t=e%26,r=(e-t)/26,i=1<>>26,s&=67108863,this.words[a]=s}return 0!==o&&(this.words[a]=o,this.length++),this},i.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},i.prototype.cmpn=function(e){var t,r=e<0;if(0!==this.negative&&!r)return-1;if(0===this.negative&&r)return 1;if(this._strip(),this.length>1)t=1;else{r&&(e=-e),n(e<=67108863,"Number is too big");var i=0|this.words[0];t=i===e?0:ie.length)return 1;if(this.length=0;n--){var r=0|this.words[n],i=0|e.words[n];if(r!==i){ri&&(t=1);break}}return t},i.prototype.gtn=function(e){return 1===this.cmpn(e)},i.prototype.gt=function(e){return 1===this.cmp(e)},i.prototype.gten=function(e){return this.cmpn(e)>=0},i.prototype.gte=function(e){return this.cmp(e)>=0},i.prototype.ltn=function(e){return-1===this.cmpn(e)},i.prototype.lt=function(e){return-1===this.cmp(e)},i.prototype.lten=function(e){return this.cmpn(e)<=0},i.prototype.lte=function(e){return this.cmp(e)<=0},i.prototype.eqn=function(e){return 0===this.cmpn(e)},i.prototype.eq=function(e){return 0===this.cmp(e)},i.red=function(e){return new S(e)},i.prototype.toRed=function(e){return n(!this.red,"Already a number in reduction context"),n(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},i.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},i.prototype._forceRed=function(e){return this.red=e,this},i.prototype.forceRed=function(e){return n(!this.red,"Already a number in reduction context"),this._forceRed(e)},i.prototype.redAdd=function(e){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},i.prototype.redIAdd=function(e){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},i.prototype.redSub=function(e){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},i.prototype.redISub=function(e){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},i.prototype.redShl=function(e){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},i.prototype.redMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},i.prototype.redIMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},i.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},i.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},i.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},i.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},i.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},i.prototype.redPow=function(e){return n(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var y={k256:null,p224:null,p192:null,p25519:null};function b(e,t){this.name=e,this.p=new i(t,16),this.n=this.p.bitLength(),this.k=new i(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function w(){b.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function A(){b.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function _(){b.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function E(){b.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function S(e){if("string"==typeof e){var t=i._prime(e);this.m=t.p,this.prime=t}else n(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function k(e){S.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new i(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}b.prototype._tmp=function(){var e=new i(null);return e.words=new Array(Math.ceil(this.n/13)),e},b.prototype.ireduce=function(e){var t,n=e;do{this.split(n,this.tmp),t=(n=(n=this.imulK(n)).iadd(this.tmp)).bitLength()}while(t>this.n);var r=t0?n.isub(this.p):void 0!==n.strip?n.strip():n._strip(),n},b.prototype.split=function(e,t){e.iushrn(this.n,0,t)},b.prototype.imulK=function(e){return e.imul(this.k)},r(w,b),w.prototype.split=function(e,t){for(var n=4194303,r=Math.min(e.length,9),i=0;i>>22,o=a}o>>>=22,e.words[i-10]=o,0===o&&e.length>10?e.length-=10:e.length-=9},w.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,n=0;n>>=26,e.words[n]=i,t=r}return 0!==t&&(e.words[e.length++]=t),e},i._prime=function(e){if(y[e])return y[e];var t;if("k256"===e)t=new w;else if("p224"===e)t=new A;else if("p192"===e)t=new _;else{if("p25519"!==e)throw new Error("Unknown prime "+e);t=new E}return y[e]=t,t},S.prototype._verify1=function(e){n(0===e.negative,"red works only with positives"),n(e.red,"red works only with red numbers")},S.prototype._verify2=function(e,t){n(0==(e.negative|t.negative),"red works only with positives"),n(e.red&&e.red===t.red,"red works only with red numbers")},S.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):(l(e,e.umod(this.m)._forceRed(this)),e)},S.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},S.prototype.add=function(e,t){this._verify2(e,t);var n=e.add(t);return n.cmp(this.m)>=0&&n.isub(this.m),n._forceRed(this)},S.prototype.iadd=function(e,t){this._verify2(e,t);var n=e.iadd(t);return n.cmp(this.m)>=0&&n.isub(this.m),n},S.prototype.sub=function(e,t){this._verify2(e,t);var n=e.sub(t);return n.cmpn(0)<0&&n.iadd(this.m),n._forceRed(this)},S.prototype.isub=function(e,t){this._verify2(e,t);var n=e.isub(t);return n.cmpn(0)<0&&n.iadd(this.m),n},S.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},S.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},S.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},S.prototype.isqr=function(e){return this.imul(e,e.clone())},S.prototype.sqr=function(e){return this.mul(e,e)},S.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(n(t%2==1),3===t){var r=this.m.add(new i(1)).iushrn(2);return this.pow(e,r)}for(var o=this.m.subn(1),a=0;!o.isZero()&&0===o.andln(1);)a++,o.iushrn(1);n(!o.isZero());var s=new i(1).toRed(this),u=s.redNeg(),l=this.m.subn(1).iushrn(1),c=this.m.bitLength();for(c=new i(2*c*c).toRed(this);0!==this.pow(c,l).cmp(u);)c.redIAdd(u);for(var d=this.pow(c,o),f=this.pow(e,o.addn(1).iushrn(1)),h=this.pow(e,o),p=a;0!==h.cmp(s);){for(var m=h,g=0;0!==m.cmp(s);g++)m=m.redSqr();n(g=0;r--){for(var l=t.words[r],c=u-1;c>=0;c--){var d=l>>c&1;o!==n[0]&&(o=this.sqr(o)),0!==d||0!==a?(a<<=1,a|=d,(4==++s||0===r&&0===c)&&(o=this.mul(o,n[a]),s=0,a=0)):s=0}u=26}return o},S.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},S.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},i.mont=function(e){return new k(e)},r(k,S),k.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},k.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},k.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var n=e.imul(t),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=n.isub(r).iushrn(this.shift),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):i.cmpn(0)<0&&(o=i.iadd(this.m)),o._forceRed(this)},k.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new i(0)._forceRed(this);var n=e.mul(t),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),o=n.isub(r).iushrn(this.shift),a=o;return o.cmp(this.m)>=0?a=o.isub(this.m):o.cmpn(0)<0&&(a=o.iadd(this.m)),a._forceRed(this)},k.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(Rh,hr);var Oh=Rh.exports,Th=Zr;function Ph(e){var t,n=e.modulus.byteLength();do{t=new Oh(Th(n))}while(t.cmp(e.modulus)>=0||!t.umod(e.prime1)||!t.umod(e.prime2));return t}function Lh(e,t){var n=function(e){var t=Ph(e);return{blinder:t.toRed(Oh.mont(e.modulus)).redPow(new Oh(e.publicExponent)).fromRed(),unblinder:t.invm(e.modulus)}}(t),r=t.modulus.byteLength(),i=new Oh(e).mul(n.blinder).umod(t.modulus),o=i.toRed(Oh.mont(t.prime1)),a=i.toRed(Oh.mont(t.prime2)),s=t.coefficient,u=t.prime1,l=t.prime2,c=o.redPow(t.exponent1).fromRed(),d=a.redPow(t.exponent2).fromRed(),f=c.isub(d).imul(s).umod(u).imul(l);return d.iadd(f).imul(n.unblinder).umod(t.modulus).toArrayLike(xn,"be",r)}Lh.getr=Ph;var Ih=Lh,Nh={},Dh={name:"elliptic",version:"6.5.4",description:"EC cryptography",main:"lib/elliptic.js",files:["lib"],scripts:{lint:"eslint lib test","lint:fix":"npm run lint -- --fix",unit:"istanbul test _mocha --reporter=spec test/index.js",test:"npm run lint && npm run unit",version:"grunt dist && git add dist/"},repository:{type:"git",url:"git@github.com:indutny/elliptic"},keywords:["EC","Elliptic","curve","Cryptography"],author:"Fedor Indutny ",license:"MIT",bugs:{url:"https://github.com/indutny/elliptic/issues"},homepage:"https://github.com/indutny/elliptic",devDependencies:{brfs:"^2.0.2",coveralls:"^3.1.0",eslint:"^7.6.0",grunt:"^1.2.1","grunt-browserify":"^5.3.0","grunt-cli":"^1.3.2","grunt-contrib-connect":"^3.0.0","grunt-contrib-copy":"^1.0.0","grunt-contrib-uglify":"^5.0.0","grunt-mocha-istanbul":"^5.0.2","grunt-saucelabs":"^9.0.1",istanbul:"^0.4.5",mocha:"^8.0.1"},dependencies:{"bn.js":"^4.11.9",brorand:"^1.1.0","hash.js":"^1.0.0","hmac-drbg":"^1.0.1",inherits:"^2.0.4","minimalistic-assert":"^1.0.1","minimalistic-crypto-utils":"^1.0.1"}},Bh={},jh={};!function(e){var t=jh;function n(e){return 1===e.length?"0"+e:e}function r(e){for(var t="",r=0;r>8,a=255&i;o?n.push(o,a):n.push(a)}return n},t.zero2=n,t.toHex=r,t.encode=function(e,t){return"hex"===t?r(e):e}}(),function(e){var t=Bh,n=vf,r=Gl,i=jh;t.assert=r,t.toArray=i.toArray,t.zero2=i.zero2,t.toHex=i.toHex,t.encode=i.encode,t.getNAF=function(e,t,n){var r=new Array(Math.max(e.bitLength(),n)+1);r.fill(0);for(var i=1<(i>>1)-1?(i>>1)-u:u,o.isubn(s)):s=0,r[a]=s,o.iushrn(1)}return r},t.getJSF=function(e,t){var n=[[],[]];e=e.clone(),t=t.clone();for(var r,i=0,o=0;e.cmpn(-i)>0||t.cmpn(-o)>0;){var a,s,u=e.andln(3)+i&3,l=t.andln(3)+o&3;3===u&&(u=-1),3===l&&(l=-1),a=0==(1&u)?0:3!=(r=e.andln(7)+i&7)&&5!==r||2!==l?u:-u,n[0].push(a),s=0==(1&l)?0:3!=(r=t.andln(7)+o&7)&&5!==r||2!==u?l:-l,n[1].push(s),2*i===a+1&&(i=1-i),2*o===s+1&&(o=1-o),e.iushrn(1),t.iushrn(1)}return n},t.cachedProperty=function(e,t,n){var r="_"+t;e.prototype[t]=function(){return void 0!==this[r]?this[r]:this[r]=n.call(this)}},t.parseBytes=function(e){return"string"==typeof e?t.toArray(e,"hex"):e},t.intFromLE=function(e){return new n(e,"hex","le")}}();var Uh={},zh=vf,Fh=Bh,qh=Fh.getNAF,Wh=Fh.getJSF,Vh=Fh.assert;function Kh(e,t){this.type=e,this.p=new zh(t.p,16),this.red=t.prime?zh.red(t.prime):zh.mont(this.p),this.zero=new zh(0).toRed(this.red),this.one=new zh(1).toRed(this.red),this.two=new zh(2).toRed(this.red),this.n=t.n&&new zh(t.n,16),this.g=t.g&&this.pointFromJSON(t.g,t.gRed),this._wnafT1=new Array(4),this._wnafT2=new Array(4),this._wnafT3=new Array(4),this._wnafT4=new Array(4),this._bitLength=this.n?this.n.bitLength():0;var n=this.n&&this.p.div(this.n);!n||n.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}var Hh=Kh;function $h(e,t){this.curve=e,this.type=t,this.precomputed=null}Kh.prototype.point=function(){throw new Error("Not implemented")},Kh.prototype.validate=function(){throw new Error("Not implemented")},Kh.prototype._fixedNafMul=function(e,t){Vh(e.precomputed);var n=e._getDoubles(),r=qh(t,1,this._bitLength),i=(1<=o;u--)a=(a<<1)+r[u];s.push(a)}for(var l=this.jpoint(null,null,null),c=this.jpoint(null,null,null),d=i;d>0;d--){for(o=0;o=0;s--){for(var u=0;s>=0&&0===o[s];s--)u++;if(s>=0&&u++,a=a.dblp(u),s<0)break;var l=o[s];Vh(0!==l),a="affine"===e.type?l>0?a.mixedAdd(i[l-1>>1]):a.mixedAdd(i[-l-1>>1].neg()):l>0?a.add(i[l-1>>1]):a.add(i[-l-1>>1].neg())}return"affine"===e.type?a.toP():a},Kh.prototype._wnafMulAdd=function(e,t,n,r,i){var o,a,s,u=this._wnafT1,l=this._wnafT2,c=this._wnafT3,d=0;for(o=0;o=1;o-=2){var h=o-1,p=o;if(1===u[h]&&1===u[p]){var m=[t[h],null,null,t[p]];0===t[h].y.cmp(t[p].y)?(m[1]=t[h].add(t[p]),m[2]=t[h].toJ().mixedAdd(t[p].neg())):0===t[h].y.cmp(t[p].y.redNeg())?(m[1]=t[h].toJ().mixedAdd(t[p]),m[2]=t[h].add(t[p].neg())):(m[1]=t[h].toJ().mixedAdd(t[p]),m[2]=t[h].toJ().mixedAdd(t[p].neg()));var g=[-3,-1,-5,-7,0,7,5,1,3],v=Wh(n[h],n[p]);for(d=Math.max(v[0].length,d),c[h]=new Array(d),c[p]=new Array(d),a=0;a=0;o--){for(var _=0;o>=0;){var E=!0;for(a=0;a=0&&_++,w=w.dblp(_),o<0)break;for(a=0;a0?s=l[a][S-1>>1]:S<0&&(s=l[a][-S-1>>1].neg()),w="affine"===s.type?w.mixedAdd(s):w.add(s))}}for(o=0;o=Math.ceil((e.bitLength()+1)/t.step)},$h.prototype._getDoubles=function(e,t){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var n=[this],r=this,i=0;i=0&&(o=t,a=n),r.negative&&(r=r.neg(),i=i.neg()),o.negative&&(o=o.neg(),a=a.neg()),[{a:r,b:i},{a:o,b:a}]},Xh.prototype._endoSplit=function(e){var t=this.endo.basis,n=t[0],r=t[1],i=r.b.mul(e).divRound(this.n),o=n.b.neg().mul(e).divRound(this.n),a=i.mul(n.a),s=o.mul(r.a),u=i.mul(n.b),l=o.mul(r.b);return{k1:e.sub(a).sub(s),k2:u.add(l).neg()}},Xh.prototype.pointFromX=function(e,t){(e=new Yh(e,16)).red||(e=e.toRed(this.red));var n=e.redSqr().redMul(e).redIAdd(e.redMul(this.a)).redIAdd(this.b),r=n.redSqrt();if(0!==r.redSqr().redSub(n).cmp(this.zero))throw new Error("invalid point");var i=r.fromRed().isOdd();return(t&&!i||!t&&i)&&(r=r.redNeg()),this.point(e,r)},Xh.prototype.validate=function(e){if(e.inf)return!0;var t=e.x,n=e.y,r=this.a.redMul(t),i=t.redSqr().redMul(t).redIAdd(r).redIAdd(this.b);return 0===n.redSqr().redISub(i).cmpn(0)},Xh.prototype._endoWnafMulAdd=function(e,t,n){for(var r=this._endoWnafT1,i=this._endoWnafT2,o=0;o":""},ep.prototype.isInfinity=function(){return this.inf},ep.prototype.add=function(e){if(this.inf)return e;if(e.inf)return this;if(this.eq(e))return this.dbl();if(this.neg().eq(e))return this.curve.point(null,null);if(0===this.x.cmp(e.x))return this.curve.point(null,null);var t=this.y.redSub(e.y);0!==t.cmpn(0)&&(t=t.redMul(this.x.redSub(e.x).redInvm()));var n=t.redSqr().redISub(this.x).redISub(e.x),r=t.redMul(this.x.redSub(n)).redISub(this.y);return this.curve.point(n,r)},ep.prototype.dbl=function(){if(this.inf)return this;var e=this.y.redAdd(this.y);if(0===e.cmpn(0))return this.curve.point(null,null);var t=this.curve.a,n=this.x.redSqr(),r=e.redInvm(),i=n.redAdd(n).redIAdd(n).redIAdd(t).redMul(r),o=i.redSqr().redISub(this.x.redAdd(this.x)),a=i.redMul(this.x.redSub(o)).redISub(this.y);return this.curve.point(o,a)},ep.prototype.getX=function(){return this.x.fromRed()},ep.prototype.getY=function(){return this.y.fromRed()},ep.prototype.mul=function(e){return e=new Yh(e,16),this.isInfinity()?this:this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve.endo?this.curve._endoWnafMulAdd([this],[e]):this.curve._wnafMul(this,e)},ep.prototype.mulAdd=function(e,t,n){var r=[this,t],i=[e,n];return this.curve.endo?this.curve._endoWnafMulAdd(r,i):this.curve._wnafMulAdd(1,r,i,2)},ep.prototype.jmulAdd=function(e,t,n){var r=[this,t],i=[e,n];return this.curve.endo?this.curve._endoWnafMulAdd(r,i,!0):this.curve._wnafMulAdd(1,r,i,2,!0)},ep.prototype.eq=function(e){return this===e||this.inf===e.inf&&(this.inf||0===this.x.cmp(e.x)&&0===this.y.cmp(e.y))},ep.prototype.neg=function(e){if(this.inf)return this;var t=this.curve.point(this.x,this.y.redNeg());if(e&&this.precomputed){var n=this.precomputed,r=function(e){return e.neg()};t.precomputed={naf:n.naf&&{wnd:n.naf.wnd,points:n.naf.points.map(r)},doubles:n.doubles&&{step:n.doubles.step,points:n.doubles.points.map(r)}}}return t},ep.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},Gh(tp,Qh.BasePoint),Xh.prototype.jpoint=function(e,t,n){return new tp(this,e,t,n)},tp.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var e=this.z.redInvm(),t=e.redSqr(),n=this.x.redMul(t),r=this.y.redMul(t).redMul(e);return this.curve.point(n,r)},tp.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},tp.prototype.add=function(e){if(this.isInfinity())return e;if(e.isInfinity())return this;var t=e.z.redSqr(),n=this.z.redSqr(),r=this.x.redMul(t),i=e.x.redMul(n),o=this.y.redMul(t.redMul(e.z)),a=e.y.redMul(n.redMul(this.z)),s=r.redSub(i),u=o.redSub(a);if(0===s.cmpn(0))return 0!==u.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var l=s.redSqr(),c=l.redMul(s),d=r.redMul(l),f=u.redSqr().redIAdd(c).redISub(d).redISub(d),h=u.redMul(d.redISub(f)).redISub(o.redMul(c)),p=this.z.redMul(e.z).redMul(s);return this.curve.jpoint(f,h,p)},tp.prototype.mixedAdd=function(e){if(this.isInfinity())return e.toJ();if(e.isInfinity())return this;var t=this.z.redSqr(),n=this.x,r=e.x.redMul(t),i=this.y,o=e.y.redMul(t).redMul(this.z),a=n.redSub(r),s=i.redSub(o);if(0===a.cmpn(0))return 0!==s.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var u=a.redSqr(),l=u.redMul(a),c=n.redMul(u),d=s.redSqr().redIAdd(l).redISub(c).redISub(c),f=s.redMul(c.redISub(d)).redISub(i.redMul(l)),h=this.z.redMul(a);return this.curve.jpoint(d,f,h)},tp.prototype.dblp=function(e){if(0===e)return this;if(this.isInfinity())return this;if(!e)return this.dbl();var t;if(this.curve.zeroA||this.curve.threeA){var n=this;for(t=0;t=0)return!1;if(n.redIAdd(i),0===this.x.cmp(n))return!0}},tp.prototype.inspect=function(){return this.isInfinity()?"":""},tp.prototype.isInfinity=function(){return 0===this.z.cmpn(0)};var np=vf,rp=Jr,ip=Hh,op=Bh;function ap(e){ip.call(this,"mont",e),this.a=new np(e.a,16).toRed(this.red),this.b=new np(e.b,16).toRed(this.red),this.i4=new np(4).toRed(this.red).redInvm(),this.two=new np(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}rp(ap,ip);var sp=ap;function up(e,t,n){ip.BasePoint.call(this,e,"projective"),null===t&&null===n?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new np(t,16),this.z=new np(n,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}ap.prototype.validate=function(e){var t=e.normalize().x,n=t.redSqr(),r=n.redMul(t).redAdd(n.redMul(this.a)).redAdd(t);return 0===r.redSqrt().redSqr().cmp(r)},rp(up,ip.BasePoint),ap.prototype.decodePoint=function(e,t){return this.point(op.toArray(e,t),1)},ap.prototype.point=function(e,t){return new up(this,e,t)},ap.prototype.pointFromJSON=function(e){return up.fromJSON(this,e)},up.prototype.precompute=function(){},up.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())},up.fromJSON=function(e,t){return new up(e,t[0],t[1]||e.one)},up.prototype.inspect=function(){return this.isInfinity()?"":""},up.prototype.isInfinity=function(){return 0===this.z.cmpn(0)},up.prototype.dbl=function(){var e=this.x.redAdd(this.z).redSqr(),t=this.x.redSub(this.z).redSqr(),n=e.redSub(t),r=e.redMul(t),i=n.redMul(t.redAdd(this.curve.a24.redMul(n)));return this.curve.point(r,i)},up.prototype.add=function(){throw new Error("Not supported on Montgomery curve")},up.prototype.diffAdd=function(e,t){var n=this.x.redAdd(this.z),r=this.x.redSub(this.z),i=e.x.redAdd(e.z),o=e.x.redSub(e.z).redMul(n),a=i.redMul(r),s=t.z.redMul(o.redAdd(a).redSqr()),u=t.x.redMul(o.redISub(a).redSqr());return this.curve.point(s,u)},up.prototype.mul=function(e){for(var t=e.clone(),n=this,r=this.curve.point(null,null),i=[];0!==t.cmpn(0);t.iushrn(1))i.push(t.andln(1));for(var o=i.length-1;o>=0;o--)0===i[o]?(n=n.diffAdd(r,this),r=r.dbl()):(r=n.diffAdd(r,this),n=n.dbl());return r},up.prototype.mulAdd=function(){throw new Error("Not supported on Montgomery curve")},up.prototype.jumlAdd=function(){throw new Error("Not supported on Montgomery curve")},up.prototype.eq=function(e){return 0===this.getX().cmp(e.getX())},up.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this},up.prototype.getX=function(){return this.normalize(),this.x.fromRed()};var lp=vf,cp=Jr,dp=Hh,fp=Bh.assert;function hp(e){this.twisted=1!=(0|e.a),this.mOneA=this.twisted&&-1==(0|e.a),this.extended=this.mOneA,dp.call(this,"edwards",e),this.a=new lp(e.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new lp(e.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new lp(e.d,16).toRed(this.red),this.dd=this.d.redAdd(this.d),fp(!this.twisted||0===this.c.fromRed().cmpn(1)),this.oneC=1==(0|e.c)}cp(hp,dp);var pp=hp;function mp(e,t,n,r,i){dp.BasePoint.call(this,e,"projective"),null===t&&null===n&&null===r?(this.x=this.curve.zero,this.y=this.curve.one,this.z=this.curve.one,this.t=this.curve.zero,this.zOne=!0):(this.x=new lp(t,16),this.y=new lp(n,16),this.z=r?new lp(r,16):this.curve.one,this.t=i&&new lp(i,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.t&&!this.t.red&&(this.t=this.t.toRed(this.curve.red)),this.zOne=this.z===this.curve.one,this.curve.extended&&!this.t&&(this.t=this.x.redMul(this.y),this.zOne||(this.t=this.t.redMul(this.z.redInvm()))))}hp.prototype._mulA=function(e){return this.mOneA?e.redNeg():this.a.redMul(e)},hp.prototype._mulC=function(e){return this.oneC?e:this.c.redMul(e)},hp.prototype.jpoint=function(e,t,n,r){return this.point(e,t,n,r)},hp.prototype.pointFromX=function(e,t){(e=new lp(e,16)).red||(e=e.toRed(this.red));var n=e.redSqr(),r=this.c2.redSub(this.a.redMul(n)),i=this.one.redSub(this.c2.redMul(this.d).redMul(n)),o=r.redMul(i.redInvm()),a=o.redSqrt();if(0!==a.redSqr().redSub(o).cmp(this.zero))throw new Error("invalid point");var s=a.fromRed().isOdd();return(t&&!s||!t&&s)&&(a=a.redNeg()),this.point(e,a)},hp.prototype.pointFromY=function(e,t){(e=new lp(e,16)).red||(e=e.toRed(this.red));var n=e.redSqr(),r=n.redSub(this.c2),i=n.redMul(this.d).redMul(this.c2).redSub(this.a),o=r.redMul(i.redInvm());if(0===o.cmp(this.zero)){if(t)throw new Error("invalid point");return this.point(this.zero,e)}var a=o.redSqrt();if(0!==a.redSqr().redSub(o).cmp(this.zero))throw new Error("invalid point");return a.fromRed().isOdd()!==t&&(a=a.redNeg()),this.point(a,e)},hp.prototype.validate=function(e){if(e.isInfinity())return!0;e.normalize();var t=e.x.redSqr(),n=e.y.redSqr(),r=t.redMul(this.a).redAdd(n),i=this.c2.redMul(this.one.redAdd(this.d.redMul(t).redMul(n)));return 0===r.cmp(i)},cp(mp,dp.BasePoint),hp.prototype.pointFromJSON=function(e){return mp.fromJSON(this,e)},hp.prototype.point=function(e,t,n,r){return new mp(this,e,t,n,r)},mp.fromJSON=function(e,t){return new mp(e,t[0],t[1],t[2])},mp.prototype.inspect=function(){return this.isInfinity()?"":""},mp.prototype.isInfinity=function(){return 0===this.x.cmpn(0)&&(0===this.y.cmp(this.z)||this.zOne&&0===this.y.cmp(this.curve.c))},mp.prototype._extDbl=function(){var e=this.x.redSqr(),t=this.y.redSqr(),n=this.z.redSqr();n=n.redIAdd(n);var r=this.curve._mulA(e),i=this.x.redAdd(this.y).redSqr().redISub(e).redISub(t),o=r.redAdd(t),a=o.redSub(n),s=r.redSub(t),u=i.redMul(a),l=o.redMul(s),c=i.redMul(s),d=a.redMul(o);return this.curve.point(u,l,d,c)},mp.prototype._projDbl=function(){var e,t,n,r,i,o,a=this.x.redAdd(this.y).redSqr(),s=this.x.redSqr(),u=this.y.redSqr();if(this.curve.twisted){var l=(r=this.curve._mulA(s)).redAdd(u);this.zOne?(e=a.redSub(s).redSub(u).redMul(l.redSub(this.curve.two)),t=l.redMul(r.redSub(u)),n=l.redSqr().redSub(l).redSub(l)):(i=this.z.redSqr(),o=l.redSub(i).redISub(i),e=a.redSub(s).redISub(u).redMul(o),t=l.redMul(r.redSub(u)),n=l.redMul(o))}else r=s.redAdd(u),i=this.curve._mulC(this.z).redSqr(),o=r.redSub(i).redSub(i),e=this.curve._mulC(a.redISub(r)).redMul(o),t=this.curve._mulC(r).redMul(s.redISub(u)),n=r.redMul(o);return this.curve.point(e,t,n)},mp.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()},mp.prototype._extAdd=function(e){var t=this.y.redSub(this.x).redMul(e.y.redSub(e.x)),n=this.y.redAdd(this.x).redMul(e.y.redAdd(e.x)),r=this.t.redMul(this.curve.dd).redMul(e.t),i=this.z.redMul(e.z.redAdd(e.z)),o=n.redSub(t),a=i.redSub(r),s=i.redAdd(r),u=n.redAdd(t),l=o.redMul(a),c=s.redMul(u),d=o.redMul(u),f=a.redMul(s);return this.curve.point(l,c,f,d)},mp.prototype._projAdd=function(e){var t,n,r=this.z.redMul(e.z),i=r.redSqr(),o=this.x.redMul(e.x),a=this.y.redMul(e.y),s=this.curve.d.redMul(o).redMul(a),u=i.redSub(s),l=i.redAdd(s),c=this.x.redAdd(this.y).redMul(e.x.redAdd(e.y)).redISub(o).redISub(a),d=r.redMul(u).redMul(c);return this.curve.twisted?(t=r.redMul(l).redMul(a.redSub(this.curve._mulA(o))),n=u.redMul(l)):(t=r.redMul(l).redMul(a.redSub(o)),n=this.curve._mulC(u).redMul(l)),this.curve.point(d,t,n)},mp.prototype.add=function(e){return this.isInfinity()?e:e.isInfinity()?this:this.curve.extended?this._extAdd(e):this._projAdd(e)},mp.prototype.mul=function(e){return this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve._wnafMul(this,e)},mp.prototype.mulAdd=function(e,t,n){return this.curve._wnafMulAdd(1,[this,t],[e,n],2,!1)},mp.prototype.jmulAdd=function(e,t,n){return this.curve._wnafMulAdd(1,[this,t],[e,n],2,!0)},mp.prototype.normalize=function(){if(this.zOne)return this;var e=this.z.redInvm();return this.x=this.x.redMul(e),this.y=this.y.redMul(e),this.t&&(this.t=this.t.redMul(e)),this.z=this.curve.one,this.zOne=!0,this},mp.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())},mp.prototype.getX=function(){return this.normalize(),this.x.fromRed()},mp.prototype.getY=function(){return this.normalize(),this.y.fromRed()},mp.prototype.eq=function(e){return this===e||0===this.getX().cmp(e.getX())&&0===this.getY().cmp(e.getY())},mp.prototype.eqXToP=function(e){var t=e.toRed(this.curve.red).redMul(this.z);if(0===this.x.cmp(t))return!0;for(var n=e.clone(),r=this.curve.redN.redMul(this.z);;){if(n.iadd(this.curve.n),n.cmp(this.curve.p)>=0)return!1;if(t.redIAdd(r),0===this.x.cmp(t))return!0}},mp.prototype.toP=mp.prototype.normalize,mp.prototype.mixedAdd=mp.prototype.add,function(e){var t=e;t.base=Hh,t.short=Jh,t.mont=sp,t.edwards=pp}(Uh);var gp={},vp={},yp={},bp=Gl,wp=Jr;function Ap(e,t){return 55296==(64512&e.charCodeAt(t))&&!(t<0||t+1>=e.length)&&56320==(64512&e.charCodeAt(t+1))}function _p(e){return(e>>>24|e>>>8&65280|e<<8&16711680|(255&e)<<24)>>>0}function Ep(e){return 1===e.length?"0"+e:e}function Sp(e){return 7===e.length?"0"+e:6===e.length?"00"+e:5===e.length?"000"+e:4===e.length?"0000"+e:3===e.length?"00000"+e:2===e.length?"000000"+e:1===e.length?"0000000"+e:e}yp.inherits=wp,yp.toArray=function(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var n=[];if("string"==typeof e)if(t){if("hex"===t)for((e=e.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(e="0"+e),i=0;i>6|192,n[r++]=63&o|128):Ap(e,i)?(o=65536+((1023&o)<<10)+(1023&e.charCodeAt(++i)),n[r++]=o>>18|240,n[r++]=o>>12&63|128,n[r++]=o>>6&63|128,n[r++]=63&o|128):(n[r++]=o>>12|224,n[r++]=o>>6&63|128,n[r++]=63&o|128)}else for(i=0;i>>0}return o},yp.split32=function(e,t){for(var n=new Array(4*e.length),r=0,i=0;r>>24,n[i+1]=o>>>16&255,n[i+2]=o>>>8&255,n[i+3]=255&o):(n[i+3]=o>>>24,n[i+2]=o>>>16&255,n[i+1]=o>>>8&255,n[i]=255&o)}return n},yp.rotr32=function(e,t){return e>>>t|e<<32-t},yp.rotl32=function(e,t){return e<>>32-t},yp.sum32=function(e,t){return e+t>>>0},yp.sum32_3=function(e,t,n){return e+t+n>>>0},yp.sum32_4=function(e,t,n,r){return e+t+n+r>>>0},yp.sum32_5=function(e,t,n,r,i){return e+t+n+r+i>>>0},yp.sum64=function(e,t,n,r){var i=e[t],o=r+e[t+1]>>>0,a=(o>>0,e[t+1]=o},yp.sum64_hi=function(e,t,n,r){return(t+r>>>0>>0},yp.sum64_lo=function(e,t,n,r){return t+r>>>0},yp.sum64_4_hi=function(e,t,n,r,i,o,a,s){var u=0,l=t;return u+=(l=l+r>>>0)>>0)>>0)>>0},yp.sum64_4_lo=function(e,t,n,r,i,o,a,s){return t+r+o+s>>>0},yp.sum64_5_hi=function(e,t,n,r,i,o,a,s,u,l){var c=0,d=t;return c+=(d=d+r>>>0)>>0)>>0)>>0)>>0},yp.sum64_5_lo=function(e,t,n,r,i,o,a,s,u,l){return t+r+o+s+l>>>0},yp.rotr64_hi=function(e,t,n){return(t<<32-n|e>>>n)>>>0},yp.rotr64_lo=function(e,t,n){return(e<<32-n|t>>>n)>>>0},yp.shr64_hi=function(e,t,n){return e>>>n},yp.shr64_lo=function(e,t,n){return(e<<32-n|t>>>n)>>>0};var kp={},Mp=yp,Cp=Gl;function xp(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}kp.BlockHash=xp,xp.prototype.update=function(e,t){if(e=Mp.toArray(e,t),this.pending?this.pending=this.pending.concat(e):this.pending=e,this.pendingTotal+=e.length,this.pending.length>=this._delta8){var n=(e=this.pending).length%this._delta8;this.pending=e.slice(e.length-n,e.length),0===this.pending.length&&(this.pending=null),e=Mp.join32(e,0,e.length-n,this.endian);for(var r=0;r>>24&255,r[i++]=e>>>16&255,r[i++]=e>>>8&255,r[i++]=255&e}else for(r[i++]=255&e,r[i++]=e>>>8&255,r[i++]=e>>>16&255,r[i++]=e>>>24&255,r[i++]=0,r[i++]=0,r[i++]=0,r[i++]=0,o=8;o>>3},Op.g1_256=function(e){return Tp(e,17)^Tp(e,19)^e>>>10};var Np=yp,Dp=kp,Bp=Op,jp=Np.rotl32,Up=Np.sum32,zp=Np.sum32_5,Fp=Bp.ft_1,qp=Dp.BlockHash,Wp=[1518500249,1859775393,2400959708,3395469782];function Vp(){if(!(this instanceof Vp))return new Vp;qp.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}Np.inherits(Vp,qp);var Kp=Vp;Vp.blockSize=512,Vp.outSize=160,Vp.hmacStrength=80,Vp.padLength=64,Vp.prototype._update=function(e,t){for(var n=this.W,r=0;r<16;r++)n[r]=e[t+r];for(;rthis.blockSize&&(e=(new this.Hash).update(e).digest()),cg(e.length<=this.blockSize);for(var t=e.length;t=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(t,n,r)}var bg=yg;yg.prototype._init=function(e,t,n){var r=e.concat(t).concat(n);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var i=0;i=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(e.concat(n||[])),this._reseed=1},yg.prototype.generate=function(e,t,n,r){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");"string"!=typeof t&&(r=n,n=t,t=null),n&&(n=gg.toArray(n,r||"hex"),this._update(n));for(var i=[];i.length"};var Sg=vf,kg=Bh,Mg=kg.assert;function Cg(e,t){if(e instanceof Cg)return e;this._importDER(e,t)||(Mg(e.r&&e.s,"Signature without r or s"),this.r=new Sg(e.r,16),this.s=new Sg(e.s,16),void 0===e.recoveryParam?this.recoveryParam=null:this.recoveryParam=e.recoveryParam)}var xg,Rg,Og=Cg;function Tg(){this.place=0}function Pg(e,t){var n=e[t.place++];if(!(128&n))return n;var r=15&n;if(0===r||r>4)return!1;for(var i=0,o=0,a=t.place;o>>=0;return!(i<=127)&&(t.place=a,i)}function Lg(e){for(var t=0,n=e.length-1;!e[t]&&!(128&e[t+1])&&t>>3);for(e.push(128|n);--n;)e.push(t>>>(n<<3)&255);e.push(t)}}Cg.prototype._importDER=function(e,t){e=kg.toArray(e,t);var n=new Tg;if(48!==e[n.place++])return!1;var r=Pg(e,n);if(!1===r)return!1;if(r+n.place!==e.length)return!1;if(2!==e[n.place++])return!1;var i=Pg(e,n);if(!1===i)return!1;var o=e.slice(n.place,i+n.place);if(n.place+=i,2!==e[n.place++])return!1;var a=Pg(e,n);if(!1===a)return!1;if(e.length!==a+n.place)return!1;var s=e.slice(n.place,a+n.place);if(0===o[0]){if(!(128&o[1]))return!1;o=o.slice(1)}if(0===s[0]){if(!(128&s[1]))return!1;s=s.slice(1)}return this.r=new Sg(o),this.s=new Sg(s),this.recoveryParam=null,!0},Cg.prototype.toDER=function(e){var t=this.r.toArray(),n=this.s.toArray();for(128&t[0]&&(t=[0].concat(t)),128&n[0]&&(n=[0].concat(n)),t=Lg(t),n=Lg(n);!(n[0]||128&n[1]);)n=n.slice(1);var r=[2];Ig(r,t.length),(r=r.concat(t)).push(2),Ig(r,n.length);var i=r.concat(n),o=[48];return Ig(o,i.length),o=o.concat(i),kg.encode(o,e)};var Ng=Bh,Dg=Ng.assert,Bg=Ng.parseBytes,jg=Ng.cachedProperty;function Ug(e,t){this.eddsa=e,this._secret=Bg(t.secret),e.isPoint(t.pub)?this._pub=t.pub:this._pubBytes=Bg(t.pub)}Ug.fromPublic=function(e,t){return t instanceof Ug?t:new Ug(e,{pub:t})},Ug.fromSecret=function(e,t){return t instanceof Ug?t:new Ug(e,{secret:t})},Ug.prototype.secret=function(){return this._secret},jg(Ug,"pubBytes",(function(){return this.eddsa.encodePoint(this.pub())})),jg(Ug,"pub",(function(){return this._pubBytes?this.eddsa.decodePoint(this._pubBytes):this.eddsa.g.mul(this.priv())})),jg(Ug,"privBytes",(function(){var e=this.eddsa,t=this.hash(),n=e.encodingLength-1,r=t.slice(0,e.encodingLength);return r[0]&=248,r[n]&=127,r[n]|=64,r})),jg(Ug,"priv",(function(){return this.eddsa.decodeInt(this.privBytes())})),jg(Ug,"hash",(function(){return this.eddsa.hash().update(this.secret()).digest()})),jg(Ug,"messagePrefix",(function(){return this.hash().slice(this.eddsa.encodingLength)})),Ug.prototype.sign=function(e){return Dg(this._secret,"KeyPair can only verify"),this.eddsa.sign(e,this)},Ug.prototype.verify=function(e,t){return this.eddsa.verify(e,t,this)},Ug.prototype.getSecret=function(e){return Dg(this._secret,"KeyPair is public only"),Ng.encode(this.secret(),e)},Ug.prototype.getPublic=function(e){return Ng.encode(this.pubBytes(),e)};var zg=Ug,Fg=vf,qg=Bh,Wg=qg.assert,Vg=qg.cachedProperty,Kg=qg.parseBytes;function Hg(e,t){this.eddsa=e,"object"!=typeof t&&(t=Kg(t)),Array.isArray(t)&&(t={R:t.slice(0,e.encodingLength),S:t.slice(e.encodingLength)}),Wg(t.R&&t.S,"Signature without R or S"),e.isPoint(t.R)&&(this._R=t.R),t.S instanceof Fg&&(this._S=t.S),this._Rencoded=Array.isArray(t.R)?t.R:t.Rencoded,this._Sencoded=Array.isArray(t.S)?t.S:t.Sencoded}Vg(Hg,"S",(function(){return this.eddsa.decodeInt(this.Sencoded())})),Vg(Hg,"R",(function(){return this.eddsa.decodePoint(this.Rencoded())})),Vg(Hg,"Rencoded",(function(){return this.eddsa.encodePoint(this.R())})),Vg(Hg,"Sencoded",(function(){return this.eddsa.encodeInt(this.S())})),Hg.prototype.toBytes=function(){return this.Rencoded().concat(this.Sencoded())},Hg.prototype.toHex=function(){return qg.encode(this.toBytes(),"hex").toUpperCase()};var $g=Hg,Yg=vp,Gg=gp,Qg=Bh,Zg=Qg.assert,Xg=Qg.parseBytes,Jg=zg,ev=$g;function tv(e){if(Zg("ed25519"===e,"only tested with ed25519 so far"),!(this instanceof tv))return new tv(e);e=Gg[e].curve,this.curve=e,this.g=e.g,this.g.precompute(e.n.bitLength()+1),this.pointClass=e.point().constructor,this.encodingLength=Math.ceil(e.n.bitLength()/8),this.hash=Yg.sha512}var nv,rv=tv;function iv(){return nv||(nv=1,function(e){var t=Nh;t.version=Dh.version,t.utils=Bh,t.rand=bf(),t.curve=Uh,t.curves=gp,t.ec=function(){if(Rg)return xg;Rg=1;var e=vf,t=bg,n=Bh,r=gp,i=bf(),o=n.assert,a=Eg,s=Og;function u(e){if(!(this instanceof u))return new u(e);"string"==typeof e&&(o(Object.prototype.hasOwnProperty.call(r,e),"Unknown curve "+e),e=r[e]),e instanceof r.PresetCurve&&(e={curve:e}),this.curve=e.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=e.curve.g,this.g.precompute(e.curve.n.bitLength()+1),this.hash=e.hash||e.curve.hash}return xg=u,u.prototype.keyPair=function(e){return new a(this,e)},u.prototype.keyFromPrivate=function(e,t){return a.fromPrivate(this,e,t)},u.prototype.keyFromPublic=function(e,t){return a.fromPublic(this,e,t)},u.prototype.genKeyPair=function(n){n||(n={});for(var r=new t({hash:this.hash,pers:n.pers,persEnc:n.persEnc||"utf8",entropy:n.entropy||i(this.hash.hmacStrength),entropyEnc:n.entropy&&n.entropyEnc||"utf8",nonce:this.n.toArray()}),o=this.n.byteLength(),a=this.n.sub(new e(2));;){var s=new e(r.generate(o));if(!(s.cmp(a)>0))return s.iaddn(1),this.keyFromPrivate(s)}},u.prototype._truncateToN=function(e,t){var n=8*e.byteLength()-this.n.bitLength();return n>0&&(e=e.ushrn(n)),!t&&e.cmp(this.n)>=0?e.sub(this.n):e},u.prototype.sign=function(n,r,i,o){"object"==typeof i&&(o=i,i=null),o||(o={}),r=this.keyFromPrivate(r,i),n=this._truncateToN(new e(n,16));for(var a=this.n.byteLength(),u=r.getPrivate().toArray("be",a),l=n.toArray("be",a),c=new t({hash:this.hash,entropy:u,nonce:l,pers:o.pers,persEnc:o.persEnc||"utf8"}),d=this.n.sub(new e(1)),f=0;;f++){var h=o.k?o.k(f):new e(c.generate(this.n.byteLength()));if(!((h=this._truncateToN(h,!0)).cmpn(1)<=0||h.cmp(d)>=0)){var p=this.g.mul(h);if(!p.isInfinity()){var m=p.getX(),g=m.umod(this.n);if(0!==g.cmpn(0)){var v=h.invm(this.n).mul(g.mul(r.getPrivate()).iadd(n));if(0!==(v=v.umod(this.n)).cmpn(0)){var y=(p.getY().isOdd()?1:0)|(0!==m.cmp(g)?2:0);return o.canonical&&v.cmp(this.nh)>0&&(v=this.n.sub(v),y^=1),new s({r:g,s:v,recoveryParam:y})}}}}}},u.prototype.verify=function(t,n,r,i){t=this._truncateToN(new e(t,16)),r=this.keyFromPublic(r,i);var o=(n=new s(n,"hex")).r,a=n.s;if(o.cmpn(1)<0||o.cmp(this.n)>=0)return!1;if(a.cmpn(1)<0||a.cmp(this.n)>=0)return!1;var u,l=a.invm(this.n),c=l.mul(t).umod(this.n),d=l.mul(o).umod(this.n);return this.curve._maxwellTrick?!(u=this.g.jmulAdd(c,r.getPublic(),d)).isInfinity()&&u.eqXToP(o):!(u=this.g.mulAdd(c,r.getPublic(),d)).isInfinity()&&0===u.getX().umod(this.n).cmp(o)},u.prototype.recoverPubKey=function(t,n,r,i){o((3&r)===r,"The recovery param is more than two bits"),n=new s(n,i);var a=this.n,u=new e(t),l=n.r,c=n.s,d=1&r,f=r>>1;if(l.cmp(this.curve.p.umod(this.curve.n))>=0&&f)throw new Error("Unable to find sencond key candinate");l=f?this.curve.pointFromX(l.add(this.curve.n),d):this.curve.pointFromX(l,d);var h=n.r.invm(a),p=a.sub(u).mul(h).umod(a),m=c.mul(h).umod(a);return this.g.mulAdd(p,l,m)},u.prototype.getKeyRecoveryParam=function(e,t,n,r){if(null!==(t=new s(t,r)).recoveryParam)return t.recoveryParam;for(var i=0;i<4;i++){var o;try{o=this.recoverPubKey(e,t,i)}catch(e){continue}if(o.eq(n))return i}throw new Error("Unable to find valid recovery factor")},xg}(),t.eddsa=rv}()),Nh}tv.prototype.sign=function(e,t){e=Xg(e);var n=this.keyFromSecret(t),r=this.hashInt(n.messagePrefix(),e),i=this.g.mul(r),o=this.encodePoint(i),a=this.hashInt(o,n.pubBytes(),e).mul(n.priv()),s=r.add(a).umod(this.curve.n);return this.makeSignature({R:i,S:s,Rencoded:o})},tv.prototype.verify=function(e,t,n){e=Xg(e),t=this.makeSignature(t);var r=this.keyFromPublic(n),i=this.hashInt(t.Rencoded(),r.pubBytes(),e),o=this.g.mul(t.S());return t.R().add(r.pub().mul(i)).eq(o)},tv.prototype.hashInt=function(){for(var e=this.hash(),t=0;t=48&&r<=57?r-48:r>=65&&r<=70?r-55:r>=97&&r<=102?r-87:void n(!1,"Invalid character in "+e)}function s(e,t,n){var r=a(e,n);return n-1>=t&&(r|=a(e,n-1)<<4),r}function u(e,t,r,i){for(var o=0,a=0,s=Math.min(e.length,r),u=t;u=49?l-49+10:l>=17?l-17+10:l,n(l>=0&&a0?e:t},i.min=function(e,t){return e.cmp(t)<0?e:t},i.prototype._init=function(e,t,r){if("number"==typeof e)return this._initNumber(e,t,r);if("object"==typeof e)return this._initArray(e,t,r);"hex"===t&&(t=16),n(t===(0|t)&&t>=2&&t<=36);var i=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&(i++,this.negative=1),i=0;i-=3)a=e[i]|e[i-1]<<8|e[i-2]<<16,this.words[o]|=a<>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);else if("le"===r)for(i=0,o=0;i>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);return this._strip()},i.prototype._parseHex=function(e,t,n){this.length=Math.ceil((e.length-t)/6),this.words=new Array(this.length);for(var r=0;r=t;r-=2)i=s(e,t,r)<=18?(o-=18,a+=1,this.words[a]|=i>>>26):o+=8;else for(r=(e.length-t)%2==0?t+1:t;r=18?(o-=18,a+=1,this.words[a]|=i>>>26):o+=8;this._strip()},i.prototype._parseBase=function(e,t,n){this.words=[0],this.length=1;for(var r=0,i=1;i<=67108863;i*=t)r++;r--,i=i/t|0;for(var o=e.length-n,a=o%r,s=Math.min(o,o-a)+n,l=0,c=n;c1&&0===this.words[this.length-1];)this.length--;return this._normSign()},i.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},"undefined"!=typeof Symbol&&"function"==typeof Symbol.for)try{i.prototype[Symbol.for("nodejs.util.inspect.custom")]=c}catch(e){i.prototype.inspect=c}else i.prototype.inspect=c;function c(){return(this.red?""}var d=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],f=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],h=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function p(e,t,n){n.negative=t.negative^e.negative;var r=e.length+t.length|0;n.length=r,r=r-1|0;var i=0|e.words[0],o=0|t.words[0],a=i*o,s=67108863&a,u=a/67108864|0;n.words[0]=s;for(var l=1;l>>26,d=67108863&u,f=Math.min(l,t.length-1),h=Math.max(0,l-e.length+1);h<=f;h++){var p=l-h|0;c+=(a=(i=0|e.words[p])*(o=0|t.words[h])+d)/67108864|0,d=67108863&a}n.words[l]=0|d,u=0|c}return 0!==u?n.words[l]=0|u:n.length--,n._strip()}i.prototype.toString=function(e,t){var r;if(t=0|t||1,16===(e=e||10)||"hex"===e){r="";for(var i=0,o=0,a=0;a>>24-i&16777215,(i+=2)>=26&&(i-=26,a--),r=0!==o||a!==this.length-1?d[6-u.length]+u+r:u+r}for(0!==o&&(r=o.toString(16)+r);r.length%t!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}if(e===(0|e)&&e>=2&&e<=36){var l=f[e],c=h[e];r="";var p=this.clone();for(p.negative=0;!p.isZero();){var m=p.modrn(c).toString(e);r=(p=p.idivn(c)).isZero()?m+r:d[l-m.length]+m+r}for(this.isZero()&&(r="0"+r);r.length%t!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}n(!1,"Base should be between 2 and 36")},i.prototype.toNumber=function(){var e=this.words[0];return 2===this.length?e+=67108864*this.words[1]:3===this.length&&1===this.words[2]?e+=4503599627370496+67108864*this.words[1]:this.length>2&&n(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},i.prototype.toJSON=function(){return this.toString(16,2)},o&&(i.prototype.toBuffer=function(e,t){return this.toArrayLike(o,e,t)}),i.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},i.prototype.toArrayLike=function(e,t,r){this._strip();var i=this.byteLength(),o=r||Math.max(1,i);n(i<=o,"byte array longer than desired length"),n(o>0,"Requested array length <= 0");var a=function(e,t){return e.allocUnsafe?e.allocUnsafe(t):new e(t)}(e,o);return this["_toArrayLike"+("le"===t?"LE":"BE")](a,i),a},i.prototype._toArrayLikeLE=function(e,t){for(var n=0,r=0,i=0,o=0;i>8&255),n>16&255),6===o?(n>24&255),r=0,o=0):(r=a>>>24,o+=2)}if(n=0&&(e[n--]=a>>8&255),n>=0&&(e[n--]=a>>16&255),6===o?(n>=0&&(e[n--]=a>>24&255),r=0,o=0):(r=a>>>24,o+=2)}if(n>=0)for(e[n--]=r;n>=0;)e[n--]=0},Math.clz32?i.prototype._countBits=function(e){return 32-Math.clz32(e)}:i.prototype._countBits=function(e){var t=e,n=0;return t>=4096&&(n+=13,t>>>=13),t>=64&&(n+=7,t>>>=7),t>=8&&(n+=4,t>>>=4),t>=2&&(n+=2,t>>>=2),n+t},i.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,n=0;return 0==(8191&t)&&(n+=13,t>>>=13),0==(127&t)&&(n+=7,t>>>=7),0==(15&t)&&(n+=4,t>>>=4),0==(3&t)&&(n+=2,t>>>=2),0==(1&t)&&n++,n},i.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return 26*(this.length-1)+t},i.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;te.length?this.clone().ior(e):e.clone().ior(this)},i.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},i.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var n=0;ne.length?this.clone().iand(e):e.clone().iand(this)},i.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},i.prototype.iuxor=function(e){var t,n;this.length>e.length?(t=this,n=e):(t=e,n=this);for(var r=0;re.length?this.clone().ixor(e):e.clone().ixor(this)},i.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},i.prototype.inotn=function(e){n("number"==typeof e&&e>=0);var t=0|Math.ceil(e/26),r=e%26;this._expand(t),r>0&&t--;for(var i=0;i0&&(this.words[i]=~this.words[i]&67108863>>26-r),this._strip()},i.prototype.notn=function(e){return this.clone().inotn(e)},i.prototype.setn=function(e,t){n("number"==typeof e&&e>=0);var r=e/26|0,i=e%26;return this._expand(r+1),this.words[r]=t?this.words[r]|1<e.length?(n=this,r=e):(n=e,r=this);for(var i=0,o=0;o>>26;for(;0!==i&&o>>26;if(this.length=n.length,0!==i)this.words[this.length]=i,this.length++;else if(n!==this)for(;oe.length?this.clone().iadd(e):e.clone().iadd(this)},i.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var t=this.iadd(e);return e.negative=1,t._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var n,r,i=this.cmp(e);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(n=this,r=e):(n=e,r=this);for(var o=0,a=0;a>26,this.words[a]=67108863&t;for(;0!==o&&a>26,this.words[a]=67108863&t;if(0===o&&a>>13,h=0|a[1],p=8191&h,m=h>>>13,g=0|a[2],v=8191&g,y=g>>>13,b=0|a[3],w=8191&b,A=b>>>13,_=0|a[4],E=8191&_,S=_>>>13,k=0|a[5],M=8191&k,C=k>>>13,x=0|a[6],R=8191&x,O=x>>>13,T=0|a[7],P=8191&T,L=T>>>13,I=0|a[8],N=8191&I,D=I>>>13,B=0|a[9],j=8191&B,U=B>>>13,z=0|s[0],F=8191&z,q=z>>>13,W=0|s[1],V=8191&W,K=W>>>13,H=0|s[2],$=8191&H,Y=H>>>13,G=0|s[3],Q=8191&G,Z=G>>>13,X=0|s[4],J=8191&X,ee=X>>>13,te=0|s[5],ne=8191&te,re=te>>>13,ie=0|s[6],oe=8191&ie,ae=ie>>>13,se=0|s[7],ue=8191&se,le=se>>>13,ce=0|s[8],de=8191&ce,fe=ce>>>13,he=0|s[9],pe=8191&he,me=he>>>13;n.negative=e.negative^t.negative,n.length=19;var ge=(l+(r=Math.imul(d,F))|0)+((8191&(i=(i=Math.imul(d,q))+Math.imul(f,F)|0))<<13)|0;l=((o=Math.imul(f,q))+(i>>>13)|0)+(ge>>>26)|0,ge&=67108863,r=Math.imul(p,F),i=(i=Math.imul(p,q))+Math.imul(m,F)|0,o=Math.imul(m,q);var ve=(l+(r=r+Math.imul(d,V)|0)|0)+((8191&(i=(i=i+Math.imul(d,K)|0)+Math.imul(f,V)|0))<<13)|0;l=((o=o+Math.imul(f,K)|0)+(i>>>13)|0)+(ve>>>26)|0,ve&=67108863,r=Math.imul(v,F),i=(i=Math.imul(v,q))+Math.imul(y,F)|0,o=Math.imul(y,q),r=r+Math.imul(p,V)|0,i=(i=i+Math.imul(p,K)|0)+Math.imul(m,V)|0,o=o+Math.imul(m,K)|0;var ye=(l+(r=r+Math.imul(d,$)|0)|0)+((8191&(i=(i=i+Math.imul(d,Y)|0)+Math.imul(f,$)|0))<<13)|0;l=((o=o+Math.imul(f,Y)|0)+(i>>>13)|0)+(ye>>>26)|0,ye&=67108863,r=Math.imul(w,F),i=(i=Math.imul(w,q))+Math.imul(A,F)|0,o=Math.imul(A,q),r=r+Math.imul(v,V)|0,i=(i=i+Math.imul(v,K)|0)+Math.imul(y,V)|0,o=o+Math.imul(y,K)|0,r=r+Math.imul(p,$)|0,i=(i=i+Math.imul(p,Y)|0)+Math.imul(m,$)|0,o=o+Math.imul(m,Y)|0;var be=(l+(r=r+Math.imul(d,Q)|0)|0)+((8191&(i=(i=i+Math.imul(d,Z)|0)+Math.imul(f,Q)|0))<<13)|0;l=((o=o+Math.imul(f,Z)|0)+(i>>>13)|0)+(be>>>26)|0,be&=67108863,r=Math.imul(E,F),i=(i=Math.imul(E,q))+Math.imul(S,F)|0,o=Math.imul(S,q),r=r+Math.imul(w,V)|0,i=(i=i+Math.imul(w,K)|0)+Math.imul(A,V)|0,o=o+Math.imul(A,K)|0,r=r+Math.imul(v,$)|0,i=(i=i+Math.imul(v,Y)|0)+Math.imul(y,$)|0,o=o+Math.imul(y,Y)|0,r=r+Math.imul(p,Q)|0,i=(i=i+Math.imul(p,Z)|0)+Math.imul(m,Q)|0,o=o+Math.imul(m,Z)|0;var we=(l+(r=r+Math.imul(d,J)|0)|0)+((8191&(i=(i=i+Math.imul(d,ee)|0)+Math.imul(f,J)|0))<<13)|0;l=((o=o+Math.imul(f,ee)|0)+(i>>>13)|0)+(we>>>26)|0,we&=67108863,r=Math.imul(M,F),i=(i=Math.imul(M,q))+Math.imul(C,F)|0,o=Math.imul(C,q),r=r+Math.imul(E,V)|0,i=(i=i+Math.imul(E,K)|0)+Math.imul(S,V)|0,o=o+Math.imul(S,K)|0,r=r+Math.imul(w,$)|0,i=(i=i+Math.imul(w,Y)|0)+Math.imul(A,$)|0,o=o+Math.imul(A,Y)|0,r=r+Math.imul(v,Q)|0,i=(i=i+Math.imul(v,Z)|0)+Math.imul(y,Q)|0,o=o+Math.imul(y,Z)|0,r=r+Math.imul(p,J)|0,i=(i=i+Math.imul(p,ee)|0)+Math.imul(m,J)|0,o=o+Math.imul(m,ee)|0;var Ae=(l+(r=r+Math.imul(d,ne)|0)|0)+((8191&(i=(i=i+Math.imul(d,re)|0)+Math.imul(f,ne)|0))<<13)|0;l=((o=o+Math.imul(f,re)|0)+(i>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,r=Math.imul(R,F),i=(i=Math.imul(R,q))+Math.imul(O,F)|0,o=Math.imul(O,q),r=r+Math.imul(M,V)|0,i=(i=i+Math.imul(M,K)|0)+Math.imul(C,V)|0,o=o+Math.imul(C,K)|0,r=r+Math.imul(E,$)|0,i=(i=i+Math.imul(E,Y)|0)+Math.imul(S,$)|0,o=o+Math.imul(S,Y)|0,r=r+Math.imul(w,Q)|0,i=(i=i+Math.imul(w,Z)|0)+Math.imul(A,Q)|0,o=o+Math.imul(A,Z)|0,r=r+Math.imul(v,J)|0,i=(i=i+Math.imul(v,ee)|0)+Math.imul(y,J)|0,o=o+Math.imul(y,ee)|0,r=r+Math.imul(p,ne)|0,i=(i=i+Math.imul(p,re)|0)+Math.imul(m,ne)|0,o=o+Math.imul(m,re)|0;var _e=(l+(r=r+Math.imul(d,oe)|0)|0)+((8191&(i=(i=i+Math.imul(d,ae)|0)+Math.imul(f,oe)|0))<<13)|0;l=((o=o+Math.imul(f,ae)|0)+(i>>>13)|0)+(_e>>>26)|0,_e&=67108863,r=Math.imul(P,F),i=(i=Math.imul(P,q))+Math.imul(L,F)|0,o=Math.imul(L,q),r=r+Math.imul(R,V)|0,i=(i=i+Math.imul(R,K)|0)+Math.imul(O,V)|0,o=o+Math.imul(O,K)|0,r=r+Math.imul(M,$)|0,i=(i=i+Math.imul(M,Y)|0)+Math.imul(C,$)|0,o=o+Math.imul(C,Y)|0,r=r+Math.imul(E,Q)|0,i=(i=i+Math.imul(E,Z)|0)+Math.imul(S,Q)|0,o=o+Math.imul(S,Z)|0,r=r+Math.imul(w,J)|0,i=(i=i+Math.imul(w,ee)|0)+Math.imul(A,J)|0,o=o+Math.imul(A,ee)|0,r=r+Math.imul(v,ne)|0,i=(i=i+Math.imul(v,re)|0)+Math.imul(y,ne)|0,o=o+Math.imul(y,re)|0,r=r+Math.imul(p,oe)|0,i=(i=i+Math.imul(p,ae)|0)+Math.imul(m,oe)|0,o=o+Math.imul(m,ae)|0;var Ee=(l+(r=r+Math.imul(d,ue)|0)|0)+((8191&(i=(i=i+Math.imul(d,le)|0)+Math.imul(f,ue)|0))<<13)|0;l=((o=o+Math.imul(f,le)|0)+(i>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,r=Math.imul(N,F),i=(i=Math.imul(N,q))+Math.imul(D,F)|0,o=Math.imul(D,q),r=r+Math.imul(P,V)|0,i=(i=i+Math.imul(P,K)|0)+Math.imul(L,V)|0,o=o+Math.imul(L,K)|0,r=r+Math.imul(R,$)|0,i=(i=i+Math.imul(R,Y)|0)+Math.imul(O,$)|0,o=o+Math.imul(O,Y)|0,r=r+Math.imul(M,Q)|0,i=(i=i+Math.imul(M,Z)|0)+Math.imul(C,Q)|0,o=o+Math.imul(C,Z)|0,r=r+Math.imul(E,J)|0,i=(i=i+Math.imul(E,ee)|0)+Math.imul(S,J)|0,o=o+Math.imul(S,ee)|0,r=r+Math.imul(w,ne)|0,i=(i=i+Math.imul(w,re)|0)+Math.imul(A,ne)|0,o=o+Math.imul(A,re)|0,r=r+Math.imul(v,oe)|0,i=(i=i+Math.imul(v,ae)|0)+Math.imul(y,oe)|0,o=o+Math.imul(y,ae)|0,r=r+Math.imul(p,ue)|0,i=(i=i+Math.imul(p,le)|0)+Math.imul(m,ue)|0,o=o+Math.imul(m,le)|0;var Se=(l+(r=r+Math.imul(d,de)|0)|0)+((8191&(i=(i=i+Math.imul(d,fe)|0)+Math.imul(f,de)|0))<<13)|0;l=((o=o+Math.imul(f,fe)|0)+(i>>>13)|0)+(Se>>>26)|0,Se&=67108863,r=Math.imul(j,F),i=(i=Math.imul(j,q))+Math.imul(U,F)|0,o=Math.imul(U,q),r=r+Math.imul(N,V)|0,i=(i=i+Math.imul(N,K)|0)+Math.imul(D,V)|0,o=o+Math.imul(D,K)|0,r=r+Math.imul(P,$)|0,i=(i=i+Math.imul(P,Y)|0)+Math.imul(L,$)|0,o=o+Math.imul(L,Y)|0,r=r+Math.imul(R,Q)|0,i=(i=i+Math.imul(R,Z)|0)+Math.imul(O,Q)|0,o=o+Math.imul(O,Z)|0,r=r+Math.imul(M,J)|0,i=(i=i+Math.imul(M,ee)|0)+Math.imul(C,J)|0,o=o+Math.imul(C,ee)|0,r=r+Math.imul(E,ne)|0,i=(i=i+Math.imul(E,re)|0)+Math.imul(S,ne)|0,o=o+Math.imul(S,re)|0,r=r+Math.imul(w,oe)|0,i=(i=i+Math.imul(w,ae)|0)+Math.imul(A,oe)|0,o=o+Math.imul(A,ae)|0,r=r+Math.imul(v,ue)|0,i=(i=i+Math.imul(v,le)|0)+Math.imul(y,ue)|0,o=o+Math.imul(y,le)|0,r=r+Math.imul(p,de)|0,i=(i=i+Math.imul(p,fe)|0)+Math.imul(m,de)|0,o=o+Math.imul(m,fe)|0;var ke=(l+(r=r+Math.imul(d,pe)|0)|0)+((8191&(i=(i=i+Math.imul(d,me)|0)+Math.imul(f,pe)|0))<<13)|0;l=((o=o+Math.imul(f,me)|0)+(i>>>13)|0)+(ke>>>26)|0,ke&=67108863,r=Math.imul(j,V),i=(i=Math.imul(j,K))+Math.imul(U,V)|0,o=Math.imul(U,K),r=r+Math.imul(N,$)|0,i=(i=i+Math.imul(N,Y)|0)+Math.imul(D,$)|0,o=o+Math.imul(D,Y)|0,r=r+Math.imul(P,Q)|0,i=(i=i+Math.imul(P,Z)|0)+Math.imul(L,Q)|0,o=o+Math.imul(L,Z)|0,r=r+Math.imul(R,J)|0,i=(i=i+Math.imul(R,ee)|0)+Math.imul(O,J)|0,o=o+Math.imul(O,ee)|0,r=r+Math.imul(M,ne)|0,i=(i=i+Math.imul(M,re)|0)+Math.imul(C,ne)|0,o=o+Math.imul(C,re)|0,r=r+Math.imul(E,oe)|0,i=(i=i+Math.imul(E,ae)|0)+Math.imul(S,oe)|0,o=o+Math.imul(S,ae)|0,r=r+Math.imul(w,ue)|0,i=(i=i+Math.imul(w,le)|0)+Math.imul(A,ue)|0,o=o+Math.imul(A,le)|0,r=r+Math.imul(v,de)|0,i=(i=i+Math.imul(v,fe)|0)+Math.imul(y,de)|0,o=o+Math.imul(y,fe)|0;var Me=(l+(r=r+Math.imul(p,pe)|0)|0)+((8191&(i=(i=i+Math.imul(p,me)|0)+Math.imul(m,pe)|0))<<13)|0;l=((o=o+Math.imul(m,me)|0)+(i>>>13)|0)+(Me>>>26)|0,Me&=67108863,r=Math.imul(j,$),i=(i=Math.imul(j,Y))+Math.imul(U,$)|0,o=Math.imul(U,Y),r=r+Math.imul(N,Q)|0,i=(i=i+Math.imul(N,Z)|0)+Math.imul(D,Q)|0,o=o+Math.imul(D,Z)|0,r=r+Math.imul(P,J)|0,i=(i=i+Math.imul(P,ee)|0)+Math.imul(L,J)|0,o=o+Math.imul(L,ee)|0,r=r+Math.imul(R,ne)|0,i=(i=i+Math.imul(R,re)|0)+Math.imul(O,ne)|0,o=o+Math.imul(O,re)|0,r=r+Math.imul(M,oe)|0,i=(i=i+Math.imul(M,ae)|0)+Math.imul(C,oe)|0,o=o+Math.imul(C,ae)|0,r=r+Math.imul(E,ue)|0,i=(i=i+Math.imul(E,le)|0)+Math.imul(S,ue)|0,o=o+Math.imul(S,le)|0,r=r+Math.imul(w,de)|0,i=(i=i+Math.imul(w,fe)|0)+Math.imul(A,de)|0,o=o+Math.imul(A,fe)|0;var Ce=(l+(r=r+Math.imul(v,pe)|0)|0)+((8191&(i=(i=i+Math.imul(v,me)|0)+Math.imul(y,pe)|0))<<13)|0;l=((o=o+Math.imul(y,me)|0)+(i>>>13)|0)+(Ce>>>26)|0,Ce&=67108863,r=Math.imul(j,Q),i=(i=Math.imul(j,Z))+Math.imul(U,Q)|0,o=Math.imul(U,Z),r=r+Math.imul(N,J)|0,i=(i=i+Math.imul(N,ee)|0)+Math.imul(D,J)|0,o=o+Math.imul(D,ee)|0,r=r+Math.imul(P,ne)|0,i=(i=i+Math.imul(P,re)|0)+Math.imul(L,ne)|0,o=o+Math.imul(L,re)|0,r=r+Math.imul(R,oe)|0,i=(i=i+Math.imul(R,ae)|0)+Math.imul(O,oe)|0,o=o+Math.imul(O,ae)|0,r=r+Math.imul(M,ue)|0,i=(i=i+Math.imul(M,le)|0)+Math.imul(C,ue)|0,o=o+Math.imul(C,le)|0,r=r+Math.imul(E,de)|0,i=(i=i+Math.imul(E,fe)|0)+Math.imul(S,de)|0,o=o+Math.imul(S,fe)|0;var xe=(l+(r=r+Math.imul(w,pe)|0)|0)+((8191&(i=(i=i+Math.imul(w,me)|0)+Math.imul(A,pe)|0))<<13)|0;l=((o=o+Math.imul(A,me)|0)+(i>>>13)|0)+(xe>>>26)|0,xe&=67108863,r=Math.imul(j,J),i=(i=Math.imul(j,ee))+Math.imul(U,J)|0,o=Math.imul(U,ee),r=r+Math.imul(N,ne)|0,i=(i=i+Math.imul(N,re)|0)+Math.imul(D,ne)|0,o=o+Math.imul(D,re)|0,r=r+Math.imul(P,oe)|0,i=(i=i+Math.imul(P,ae)|0)+Math.imul(L,oe)|0,o=o+Math.imul(L,ae)|0,r=r+Math.imul(R,ue)|0,i=(i=i+Math.imul(R,le)|0)+Math.imul(O,ue)|0,o=o+Math.imul(O,le)|0,r=r+Math.imul(M,de)|0,i=(i=i+Math.imul(M,fe)|0)+Math.imul(C,de)|0,o=o+Math.imul(C,fe)|0;var Re=(l+(r=r+Math.imul(E,pe)|0)|0)+((8191&(i=(i=i+Math.imul(E,me)|0)+Math.imul(S,pe)|0))<<13)|0;l=((o=o+Math.imul(S,me)|0)+(i>>>13)|0)+(Re>>>26)|0,Re&=67108863,r=Math.imul(j,ne),i=(i=Math.imul(j,re))+Math.imul(U,ne)|0,o=Math.imul(U,re),r=r+Math.imul(N,oe)|0,i=(i=i+Math.imul(N,ae)|0)+Math.imul(D,oe)|0,o=o+Math.imul(D,ae)|0,r=r+Math.imul(P,ue)|0,i=(i=i+Math.imul(P,le)|0)+Math.imul(L,ue)|0,o=o+Math.imul(L,le)|0,r=r+Math.imul(R,de)|0,i=(i=i+Math.imul(R,fe)|0)+Math.imul(O,de)|0,o=o+Math.imul(O,fe)|0;var Oe=(l+(r=r+Math.imul(M,pe)|0)|0)+((8191&(i=(i=i+Math.imul(M,me)|0)+Math.imul(C,pe)|0))<<13)|0;l=((o=o+Math.imul(C,me)|0)+(i>>>13)|0)+(Oe>>>26)|0,Oe&=67108863,r=Math.imul(j,oe),i=(i=Math.imul(j,ae))+Math.imul(U,oe)|0,o=Math.imul(U,ae),r=r+Math.imul(N,ue)|0,i=(i=i+Math.imul(N,le)|0)+Math.imul(D,ue)|0,o=o+Math.imul(D,le)|0,r=r+Math.imul(P,de)|0,i=(i=i+Math.imul(P,fe)|0)+Math.imul(L,de)|0,o=o+Math.imul(L,fe)|0;var Te=(l+(r=r+Math.imul(R,pe)|0)|0)+((8191&(i=(i=i+Math.imul(R,me)|0)+Math.imul(O,pe)|0))<<13)|0;l=((o=o+Math.imul(O,me)|0)+(i>>>13)|0)+(Te>>>26)|0,Te&=67108863,r=Math.imul(j,ue),i=(i=Math.imul(j,le))+Math.imul(U,ue)|0,o=Math.imul(U,le),r=r+Math.imul(N,de)|0,i=(i=i+Math.imul(N,fe)|0)+Math.imul(D,de)|0,o=o+Math.imul(D,fe)|0;var Pe=(l+(r=r+Math.imul(P,pe)|0)|0)+((8191&(i=(i=i+Math.imul(P,me)|0)+Math.imul(L,pe)|0))<<13)|0;l=((o=o+Math.imul(L,me)|0)+(i>>>13)|0)+(Pe>>>26)|0,Pe&=67108863,r=Math.imul(j,de),i=(i=Math.imul(j,fe))+Math.imul(U,de)|0,o=Math.imul(U,fe);var Le=(l+(r=r+Math.imul(N,pe)|0)|0)+((8191&(i=(i=i+Math.imul(N,me)|0)+Math.imul(D,pe)|0))<<13)|0;l=((o=o+Math.imul(D,me)|0)+(i>>>13)|0)+(Le>>>26)|0,Le&=67108863;var Ie=(l+(r=Math.imul(j,pe))|0)+((8191&(i=(i=Math.imul(j,me))+Math.imul(U,pe)|0))<<13)|0;return l=((o=Math.imul(U,me))+(i>>>13)|0)+(Ie>>>26)|0,Ie&=67108863,u[0]=ge,u[1]=ve,u[2]=ye,u[3]=be,u[4]=we,u[5]=Ae,u[6]=_e,u[7]=Ee,u[8]=Se,u[9]=ke,u[10]=Me,u[11]=Ce,u[12]=xe,u[13]=Re,u[14]=Oe,u[15]=Te,u[16]=Pe,u[17]=Le,u[18]=Ie,0!==l&&(u[19]=l,n.length++),n};function g(e,t,n){n.negative=t.negative^e.negative,n.length=e.length+t.length;for(var r=0,i=0,o=0;o>>26)|0)>>>26,a&=67108863}n.words[o]=s,r=a,a=i}return 0!==r?n.words[o]=r:n.length--,n._strip()}function v(e,t,n){return g(e,t,n)}Math.imul||(m=p),i.prototype.mulTo=function(e,t){var n=this.length+e.length;return 10===this.length&&10===e.length?m(this,e,t):n<63?p(this,e,t):n<1024?g(this,e,t):v(this,e,t)},i.prototype.mul=function(e){var t=new i(null);return t.words=new Array(this.length+e.length),this.mulTo(e,t)},i.prototype.mulf=function(e){var t=new i(null);return t.words=new Array(this.length+e.length),v(this,e,t)},i.prototype.imul=function(e){return this.clone().mulTo(e,this)},i.prototype.imuln=function(e){var t=e<0;t&&(e=-e),n("number"==typeof e),n(e<67108864);for(var r=0,i=0;i>=26,r+=o/67108864|0,r+=a>>>26,this.words[i]=67108863&a}return 0!==r&&(this.words[i]=r,this.length++),t?this.ineg():this},i.prototype.muln=function(e){return this.clone().imuln(e)},i.prototype.sqr=function(){return this.mul(this)},i.prototype.isqr=function(){return this.imul(this.clone())},i.prototype.pow=function(e){var t=function(e){for(var t=new Array(e.bitLength()),n=0;n>>i&1}return t}(e);if(0===t.length)return new i(1);for(var n=this,r=0;r=0);var t,r=e%26,i=(e-r)/26,o=67108863>>>26-r<<26-r;if(0!==r){var a=0;for(t=0;t>>26-r}a&&(this.words[t]=a,this.length++)}if(0!==i){for(t=this.length-1;t>=0;t--)this.words[t+i]=this.words[t];for(t=0;t=0),i=t?(t-t%26)/26:0;var o=e%26,a=Math.min((e-o)/26,this.length),s=67108863^67108863>>>o<a)for(this.length-=a,l=0;l=0&&(0!==c||l>=i);l--){var d=0|this.words[l];this.words[l]=c<<26-o|d>>>o,c=d&s}return u&&0!==c&&(u.words[u.length++]=c),0===this.length&&(this.words[0]=0,this.length=1),this._strip()},i.prototype.ishrn=function(e,t,r){return n(0===this.negative),this.iushrn(e,t,r)},i.prototype.shln=function(e){return this.clone().ishln(e)},i.prototype.ushln=function(e){return this.clone().iushln(e)},i.prototype.shrn=function(e){return this.clone().ishrn(e)},i.prototype.ushrn=function(e){return this.clone().iushrn(e)},i.prototype.testn=function(e){n("number"==typeof e&&e>=0);var t=e%26,r=(e-t)/26,i=1<=0);var t=e%26,r=(e-t)/26;if(n(0===this.negative,"imaskn works only with positive numbers"),this.length<=r)return this;if(0!==t&&r++,this.length=Math.min(r,this.length),0!==t){var i=67108863^67108863>>>t<=67108864;t++)this.words[t]-=67108864,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},i.prototype.isubn=function(e){if(n("number"==typeof e),n(e<67108864),e<0)return this.iaddn(-e);if(0!==this.negative)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var t=0;t>26)-(u/67108864|0),this.words[i+r]=67108863&o}for(;i>26,this.words[i+r]=67108863&o;if(0===s)return this._strip();for(n(-1===s),s=0,i=0;i>26,this.words[i]=67108863&o;return this.negative=1,this._strip()},i.prototype._wordDiv=function(e,t){var n=(this.length,e.length),r=this.clone(),o=e,a=0|o.words[o.length-1];0!=(n=26-this._countBits(a))&&(o=o.ushln(n),r.iushln(n),a=0|o.words[o.length-1]);var s,u=r.length-o.length;if("mod"!==t){(s=new i(null)).length=u+1,s.words=new Array(s.length);for(var l=0;l=0;d--){var f=67108864*(0|r.words[o.length+d])+(0|r.words[o.length+d-1]);for(f=Math.min(f/a|0,67108863),r._ishlnsubmul(o,f,d);0!==r.negative;)f--,r.negative=0,r._ishlnsubmul(o,1,d),r.isZero()||(r.negative^=1);s&&(s.words[d]=f)}return s&&s._strip(),r._strip(),"div"!==t&&0!==n&&r.iushrn(n),{div:s||null,mod:r}},i.prototype.divmod=function(e,t,r){return n(!e.isZero()),this.isZero()?{div:new i(0),mod:new i(0)}:0!==this.negative&&0===e.negative?(s=this.neg().divmod(e,t),"mod"!==t&&(o=s.div.neg()),"div"!==t&&(a=s.mod.neg(),r&&0!==a.negative&&a.iadd(e)),{div:o,mod:a}):0===this.negative&&0!==e.negative?(s=this.divmod(e.neg(),t),"mod"!==t&&(o=s.div.neg()),{div:o,mod:s.mod}):0!=(this.negative&e.negative)?(s=this.neg().divmod(e.neg(),t),"div"!==t&&(a=s.mod.neg(),r&&0!==a.negative&&a.isub(e)),{div:s.div,mod:a}):e.length>this.length||this.cmp(e)<0?{div:new i(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new i(this.modrn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new i(this.modrn(e.words[0]))}:this._wordDiv(e,t);var o,a,s},i.prototype.div=function(e){return this.divmod(e,"div",!1).div},i.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},i.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},i.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var n=0!==t.div.negative?t.mod.isub(e):t.mod,r=e.ushrn(1),i=e.andln(1),o=n.cmp(r);return o<0||1===i&&0===o?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},i.prototype.modrn=function(e){var t=e<0;t&&(e=-e),n(e<=67108863);for(var r=(1<<26)%e,i=0,o=this.length-1;o>=0;o--)i=(r*i+(0|this.words[o]))%e;return t?-i:i},i.prototype.modn=function(e){return this.modrn(e)},i.prototype.idivn=function(e){var t=e<0;t&&(e=-e),n(e<=67108863);for(var r=0,i=this.length-1;i>=0;i--){var o=(0|this.words[i])+67108864*r;this.words[i]=o/e|0,r=o%e}return this._strip(),t?this.ineg():this},i.prototype.divn=function(e){return this.clone().idivn(e)},i.prototype.egcd=function(e){n(0===e.negative),n(!e.isZero());var t=this,r=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var o=new i(1),a=new i(0),s=new i(0),u=new i(1),l=0;t.isEven()&&r.isEven();)t.iushrn(1),r.iushrn(1),++l;for(var c=r.clone(),d=t.clone();!t.isZero();){for(var f=0,h=1;0==(t.words[0]&h)&&f<26;++f,h<<=1);if(f>0)for(t.iushrn(f);f-- >0;)(o.isOdd()||a.isOdd())&&(o.iadd(c),a.isub(d)),o.iushrn(1),a.iushrn(1);for(var p=0,m=1;0==(r.words[0]&m)&&p<26;++p,m<<=1);if(p>0)for(r.iushrn(p);p-- >0;)(s.isOdd()||u.isOdd())&&(s.iadd(c),u.isub(d)),s.iushrn(1),u.iushrn(1);t.cmp(r)>=0?(t.isub(r),o.isub(s),a.isub(u)):(r.isub(t),s.isub(o),u.isub(a))}return{a:s,b:u,gcd:r.iushln(l)}},i.prototype._invmp=function(e){n(0===e.negative),n(!e.isZero());var t=this,r=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var o,a=new i(1),s=new i(0),u=r.clone();t.cmpn(1)>0&&r.cmpn(1)>0;){for(var l=0,c=1;0==(t.words[0]&c)&&l<26;++l,c<<=1);if(l>0)for(t.iushrn(l);l-- >0;)a.isOdd()&&a.iadd(u),a.iushrn(1);for(var d=0,f=1;0==(r.words[0]&f)&&d<26;++d,f<<=1);if(d>0)for(r.iushrn(d);d-- >0;)s.isOdd()&&s.iadd(u),s.iushrn(1);t.cmp(r)>=0?(t.isub(r),a.isub(s)):(r.isub(t),s.isub(a))}return(o=0===t.cmpn(1)?a:s).cmpn(0)<0&&o.iadd(e),o},i.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),n=e.clone();t.negative=0,n.negative=0;for(var r=0;t.isEven()&&n.isEven();r++)t.iushrn(1),n.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;n.isEven();)n.iushrn(1);var i=t.cmp(n);if(i<0){var o=t;t=n,n=o}else if(0===i||0===n.cmpn(1))break;t.isub(n)}return n.iushln(r)},i.prototype.invm=function(e){return this.egcd(e).a.umod(e)},i.prototype.isEven=function(){return 0==(1&this.words[0])},i.prototype.isOdd=function(){return 1==(1&this.words[0])},i.prototype.andln=function(e){return this.words[0]&e},i.prototype.bincn=function(e){n("number"==typeof e);var t=e%26,r=(e-t)/26,i=1<>>26,s&=67108863,this.words[a]=s}return 0!==o&&(this.words[a]=o,this.length++),this},i.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},i.prototype.cmpn=function(e){var t,r=e<0;if(0!==this.negative&&!r)return-1;if(0===this.negative&&r)return 1;if(this._strip(),this.length>1)t=1;else{r&&(e=-e),n(e<=67108863,"Number is too big");var i=0|this.words[0];t=i===e?0:ie.length)return 1;if(this.length=0;n--){var r=0|this.words[n],i=0|e.words[n];if(r!==i){ri&&(t=1);break}}return t},i.prototype.gtn=function(e){return 1===this.cmpn(e)},i.prototype.gt=function(e){return 1===this.cmp(e)},i.prototype.gten=function(e){return this.cmpn(e)>=0},i.prototype.gte=function(e){return this.cmp(e)>=0},i.prototype.ltn=function(e){return-1===this.cmpn(e)},i.prototype.lt=function(e){return-1===this.cmp(e)},i.prototype.lten=function(e){return this.cmpn(e)<=0},i.prototype.lte=function(e){return this.cmp(e)<=0},i.prototype.eqn=function(e){return 0===this.cmpn(e)},i.prototype.eq=function(e){return 0===this.cmp(e)},i.red=function(e){return new S(e)},i.prototype.toRed=function(e){return n(!this.red,"Already a number in reduction context"),n(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},i.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},i.prototype._forceRed=function(e){return this.red=e,this},i.prototype.forceRed=function(e){return n(!this.red,"Already a number in reduction context"),this._forceRed(e)},i.prototype.redAdd=function(e){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},i.prototype.redIAdd=function(e){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},i.prototype.redSub=function(e){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},i.prototype.redISub=function(e){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},i.prototype.redShl=function(e){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},i.prototype.redMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},i.prototype.redIMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},i.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},i.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},i.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},i.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},i.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},i.prototype.redPow=function(e){return n(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var y={k256:null,p224:null,p192:null,p25519:null};function b(e,t){this.name=e,this.p=new i(t,16),this.n=this.p.bitLength(),this.k=new i(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function w(){b.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function A(){b.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function _(){b.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function E(){b.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function S(e){if("string"==typeof e){var t=i._prime(e);this.m=t.p,this.prime=t}else n(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function k(e){S.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new i(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}b.prototype._tmp=function(){var e=new i(null);return e.words=new Array(Math.ceil(this.n/13)),e},b.prototype.ireduce=function(e){var t,n=e;do{this.split(n,this.tmp),t=(n=(n=this.imulK(n)).iadd(this.tmp)).bitLength()}while(t>this.n);var r=t0?n.isub(this.p):void 0!==n.strip?n.strip():n._strip(),n},b.prototype.split=function(e,t){e.iushrn(this.n,0,t)},b.prototype.imulK=function(e){return e.imul(this.k)},r(w,b),w.prototype.split=function(e,t){for(var n=4194303,r=Math.min(e.length,9),i=0;i>>22,o=a}o>>>=22,e.words[i-10]=o,0===o&&e.length>10?e.length-=10:e.length-=9},w.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,n=0;n>>=26,e.words[n]=i,t=r}return 0!==t&&(e.words[e.length++]=t),e},i._prime=function(e){if(y[e])return y[e];var t;if("k256"===e)t=new w;else if("p224"===e)t=new A;else if("p192"===e)t=new _;else{if("p25519"!==e)throw new Error("Unknown prime "+e);t=new E}return y[e]=t,t},S.prototype._verify1=function(e){n(0===e.negative,"red works only with positives"),n(e.red,"red works only with red numbers")},S.prototype._verify2=function(e,t){n(0==(e.negative|t.negative),"red works only with positives"),n(e.red&&e.red===t.red,"red works only with red numbers")},S.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):(l(e,e.umod(this.m)._forceRed(this)),e)},S.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},S.prototype.add=function(e,t){this._verify2(e,t);var n=e.add(t);return n.cmp(this.m)>=0&&n.isub(this.m),n._forceRed(this)},S.prototype.iadd=function(e,t){this._verify2(e,t);var n=e.iadd(t);return n.cmp(this.m)>=0&&n.isub(this.m),n},S.prototype.sub=function(e,t){this._verify2(e,t);var n=e.sub(t);return n.cmpn(0)<0&&n.iadd(this.m),n._forceRed(this)},S.prototype.isub=function(e,t){this._verify2(e,t);var n=e.isub(t);return n.cmpn(0)<0&&n.iadd(this.m),n},S.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},S.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},S.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},S.prototype.isqr=function(e){return this.imul(e,e.clone())},S.prototype.sqr=function(e){return this.mul(e,e)},S.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(n(t%2==1),3===t){var r=this.m.add(new i(1)).iushrn(2);return this.pow(e,r)}for(var o=this.m.subn(1),a=0;!o.isZero()&&0===o.andln(1);)a++,o.iushrn(1);n(!o.isZero());var s=new i(1).toRed(this),u=s.redNeg(),l=this.m.subn(1).iushrn(1),c=this.m.bitLength();for(c=new i(2*c*c).toRed(this);0!==this.pow(c,l).cmp(u);)c.redIAdd(u);for(var d=this.pow(c,o),f=this.pow(e,o.addn(1).iushrn(1)),h=this.pow(e,o),p=a;0!==h.cmp(s);){for(var m=h,g=0;0!==m.cmp(s);g++)m=m.redSqr();n(g=0;r--){for(var l=t.words[r],c=u-1;c>=0;c--){var d=l>>c&1;o!==n[0]&&(o=this.sqr(o)),0!==d||0!==a?(a<<=1,a|=d,(4==++s||0===r&&0===c)&&(o=this.mul(o,n[a]),s=0,a=0)):s=0}u=26}return o},S.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},S.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},i.mont=function(e){return new k(e)},r(k,S),k.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},k.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},k.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var n=e.imul(t),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=n.isub(r).iushrn(this.shift),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):i.cmpn(0)<0&&(o=i.iadd(this.m)),o._forceRed(this)},k.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new i(0)._forceRed(this);var n=e.mul(t),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),o=n.isub(r).iushrn(this.shift),a=o;return o.cmp(this.m)>=0?a=o.isub(this.m):o.cmpn(0)<0&&(a=o.iadd(this.m)),a._forceRed(this)},k.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(ov,hr);var av,sv=ov.exports,uv={},lv={},cv={},dv={},fv=yr,hv=fv.Buffer,pv={};for(av in fv)fv.hasOwnProperty(av)&&"SlowBuffer"!==av&&"Buffer"!==av&&(pv[av]=fv[av]);var mv=pv.Buffer={};for(av in hv)hv.hasOwnProperty(av)&&"allocUnsafe"!==av&&"allocUnsafeSlow"!==av&&(mv[av]=hv[av]);if(pv.Buffer.prototype=hv.prototype,mv.from&&mv.from!==Uint8Array.from||(mv.from=function(e,t,n){if("number"==typeof e)throw new TypeError('The "value" argument must not be of type number. Received type '+typeof e);if(e&&void 0===e.length)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);return hv(e,t,n)}),mv.alloc||(mv.alloc=function(e,t,n){if("number"!=typeof e)throw new TypeError('The "size" argument must be of type number. Received type '+typeof e);if(e<0||e>=2*(1<<30))throw new RangeError('The value "'+e+'" is invalid for option "size"');var r=hv(e);return t&&0!==t.length?"string"==typeof n?r.fill(t,n):r.fill(t):r.fill(0),r}),!pv.kStringMaxLength)try{pv.kStringMaxLength=Vr.binding("buffer").kStringMaxLength}catch(s){}pv.constants||(pv.constants={MAX_LENGTH:pv.kMaxLength},pv.kStringMaxLength&&(pv.constants.MAX_STRING_LENGTH=pv.kStringMaxLength));var gv=pv,vv={};const yv=Jr;function bv(e){this._reporterState={obj:null,path:[],options:e||{},errors:[]}}function wv(e,t){this.path=e,this.rethrow(t)}vv.Reporter=bv,bv.prototype.isError=function(e){return e instanceof wv},bv.prototype.save=function(){const e=this._reporterState;return{obj:e.obj,pathLen:e.path.length}},bv.prototype.restore=function(e){const t=this._reporterState;t.obj=e.obj,t.path=t.path.slice(0,e.pathLen)},bv.prototype.enterKey=function(e){return this._reporterState.path.push(e)},bv.prototype.exitKey=function(e){const t=this._reporterState;t.path=t.path.slice(0,e-1)},bv.prototype.leaveKey=function(e,t,n){const r=this._reporterState;this.exitKey(e),null!==r.obj&&(r.obj[t]=n)},bv.prototype.path=function(){return this._reporterState.path.join("/")},bv.prototype.enterObject=function(){const e=this._reporterState,t=e.obj;return e.obj={},t},bv.prototype.leaveObject=function(e){const t=this._reporterState,n=t.obj;return t.obj=e,n},bv.prototype.error=function(e){let t;const n=this._reporterState,r=e instanceof wv;if(t=r?e:new wv(n.path.map((function(e){return"["+JSON.stringify(e)+"]"})).join(""),e.message||e,e.stack),!n.options.partial)throw t;return r||n.errors.push(t),t},bv.prototype.wrapResult=function(e){const t=this._reporterState;return t.options.partial?{result:this.isError(e)?null:e,errors:t.errors}:e},yv(wv,Error),wv.prototype.rethrow=function(e){if(this.message=e+" at: "+(this.path||"(shallow)"),Error.captureStackTrace&&Error.captureStackTrace(this,wv),!this.stack)try{throw new Error(this.message)}catch(e){this.stack=e.stack}return this};var Av={};const _v=Jr,Ev=vv.Reporter,Sv=gv.Buffer;function kv(e,t){Ev.call(this,t),Sv.isBuffer(e)?(this.base=e,this.offset=0,this.length=e.length):this.error("Input not Buffer")}function Mv(e,t){if(Array.isArray(e))this.length=0,this.value=e.map((function(e){return Mv.isEncoderBuffer(e)||(e=new Mv(e,t)),this.length+=e.length,e}),this);else if("number"==typeof e){if(!(0<=e&&e<=255))return t.error("non-byte EncoderBuffer value");this.value=e,this.length=1}else if("string"==typeof e)this.value=e,this.length=Sv.byteLength(e);else{if(!Sv.isBuffer(e))return t.error("Unsupported type: "+typeof e);this.value=e,this.length=e.length}}_v(kv,Ev),Av.DecoderBuffer=kv,kv.isDecoderBuffer=function(e){return e instanceof kv||"object"==typeof e&&Sv.isBuffer(e.base)&&"DecoderBuffer"===e.constructor.name&&"number"==typeof e.offset&&"number"==typeof e.length&&"function"==typeof e.save&&"function"==typeof e.restore&&"function"==typeof e.isEmpty&&"function"==typeof e.readUInt8&&"function"==typeof e.skip&&"function"==typeof e.raw},kv.prototype.save=function(){return{offset:this.offset,reporter:Ev.prototype.save.call(this)}},kv.prototype.restore=function(e){const t=new kv(this.base);return t.offset=e.offset,t.length=this.offset,this.offset=e.offset,Ev.prototype.restore.call(this,e.reporter),t},kv.prototype.isEmpty=function(){return this.offset===this.length},kv.prototype.readUInt8=function(e){return this.offset+1<=this.length?this.base.readUInt8(this.offset++,!0):this.error(e||"DecoderBuffer overrun")},kv.prototype.skip=function(e,t){if(!(this.offset+e<=this.length))return this.error(t||"DecoderBuffer overrun");const n=new kv(this.base);return n._reporterState=this._reporterState,n.offset=this.offset,n.length=this.offset+e,this.offset+=e,n},kv.prototype.raw=function(e){return this.base.slice(e?e.offset:this.offset,this.length)},Av.EncoderBuffer=Mv,Mv.isEncoderBuffer=function(e){return e instanceof Mv||"object"==typeof e&&"EncoderBuffer"===e.constructor.name&&"number"==typeof e.length&&"function"==typeof e.join},Mv.prototype.join=function(e,t){return e||(e=Sv.alloc(this.length)),t||(t=0),0===this.length||(Array.isArray(this.value)?this.value.forEach((function(n){n.join(e,t),t+=n.length})):("number"==typeof this.value?e[t]=this.value:"string"==typeof this.value?e.write(this.value,t):Sv.isBuffer(this.value)&&this.value.copy(e,t),t+=this.length)),e};const Cv=vv.Reporter,xv=Av.EncoderBuffer,Rv=Av.DecoderBuffer,Ov=Gl,Tv=["seq","seqof","set","setof","objid","bool","gentime","utctime","null_","enum","int","objDesc","bitstr","bmpstr","charstr","genstr","graphstr","ia5str","iso646str","numstr","octstr","printstr","t61str","unistr","utf8str","videostr"],Pv=["key","obj","use","optional","explicit","implicit","def","choice","any","contains"].concat(Tv);function Lv(e,t,n){const r={};this._baseState=r,r.name=n,r.enc=e,r.parent=t||null,r.children=null,r.tag=null,r.args=null,r.reverseArgs=null,r.choice=null,r.optional=!1,r.any=!1,r.obj=!1,r.use=null,r.useDecoder=null,r.key=null,r.default=null,r.explicit=null,r.implicit=null,r.contains=null,r.parent||(r.children=[],this._wrap())}var Iv=Lv;const Nv=["enc","parent","children","tag","args","reverseArgs","choice","optional","any","obj","use","alteredUse","key","default","explicit","implicit","contains"];Lv.prototype.clone=function(){const e=this._baseState,t={};Nv.forEach((function(n){t[n]=e[n]}));const n=new this.constructor(t.parent);return n._baseState=t,n},Lv.prototype._wrap=function(){const e=this._baseState;Pv.forEach((function(t){this[t]=function(){const n=new this.constructor(this);return e.children.push(n),n[t].apply(n,arguments)}}),this)},Lv.prototype._init=function(e){const t=this._baseState;Ov(null===t.parent),e.call(this),t.children=t.children.filter((function(e){return e._baseState.parent===this}),this),Ov.equal(t.children.length,1,"Root node can have only one child")},Lv.prototype._useArgs=function(e){const t=this._baseState,n=e.filter((function(e){return e instanceof this.constructor}),this);e=e.filter((function(e){return!(e instanceof this.constructor)}),this),0!==n.length&&(Ov(null===t.children),t.children=n,n.forEach((function(e){e._baseState.parent=this}),this)),0!==e.length&&(Ov(null===t.args),t.args=e,t.reverseArgs=e.map((function(e){if("object"!=typeof e||e.constructor!==Object)return e;const t={};return Object.keys(e).forEach((function(n){n==(0|n)&&(n|=0);const r=e[n];t[r]=n})),t})))},["_peekTag","_decodeTag","_use","_decodeStr","_decodeObjid","_decodeTime","_decodeNull","_decodeInt","_decodeBool","_decodeList","_encodeComposite","_encodeStr","_encodeObjid","_encodeTime","_encodeNull","_encodeInt","_encodeBool"].forEach((function(e){Lv.prototype[e]=function(){const t=this._baseState;throw new Error(e+" not implemented for encoding: "+t.enc)}})),Tv.forEach((function(e){Lv.prototype[e]=function(){const t=this._baseState,n=Array.prototype.slice.call(arguments);return Ov(null===t.tag),t.tag=e,this._useArgs(n),this}})),Lv.prototype.use=function(e){Ov(e);const t=this._baseState;return Ov(null===t.use),t.use=e,this},Lv.prototype.optional=function(){return this._baseState.optional=!0,this},Lv.prototype.def=function(e){const t=this._baseState;return Ov(null===t.default),t.default=e,t.optional=!0,this},Lv.prototype.explicit=function(e){const t=this._baseState;return Ov(null===t.explicit&&null===t.implicit),t.explicit=e,this},Lv.prototype.implicit=function(e){const t=this._baseState;return Ov(null===t.explicit&&null===t.implicit),t.implicit=e,this},Lv.prototype.obj=function(){const e=this._baseState,t=Array.prototype.slice.call(arguments);return e.obj=!0,0!==t.length&&this._useArgs(t),this},Lv.prototype.key=function(e){const t=this._baseState;return Ov(null===t.key),t.key=e,this},Lv.prototype.any=function(){return this._baseState.any=!0,this},Lv.prototype.choice=function(e){const t=this._baseState;return Ov(null===t.choice),t.choice=e,this._useArgs(Object.keys(e).map((function(t){return e[t]}))),this},Lv.prototype.contains=function(e){const t=this._baseState;return Ov(null===t.use),t.contains=e,this},Lv.prototype._decode=function(e,t){const n=this._baseState;if(null===n.parent)return e.wrapResult(n.children[0]._decode(e,t));let r,i=n.default,o=!0,a=null;if(null!==n.key&&(a=e.enterKey(n.key)),n.optional){let r=null;if(null!==n.explicit?r=n.explicit:null!==n.implicit?r=n.implicit:null!==n.tag&&(r=n.tag),null!==r||n.any){if(o=this._peekTag(e,r,n.any),e.isError(o))return o}else{const r=e.save();try{null===n.choice?this._decodeGeneric(n.tag,e,t):this._decodeChoice(e,t),o=!0}catch(e){o=!1}e.restore(r)}}if(n.obj&&o&&(r=e.enterObject()),o){if(null!==n.explicit){const t=this._decodeTag(e,n.explicit);if(e.isError(t))return t;e=t}const r=e.offset;if(null===n.use&&null===n.choice){let t;n.any&&(t=e.save());const r=this._decodeTag(e,null!==n.implicit?n.implicit:n.tag,n.any);if(e.isError(r))return r;n.any?i=e.raw(t):e=r}if(t&&t.track&&null!==n.tag&&t.track(e.path(),r,e.length,"tagged"),t&&t.track&&null!==n.tag&&t.track(e.path(),e.offset,e.length,"content"),n.any||(i=null===n.choice?this._decodeGeneric(n.tag,e,t):this._decodeChoice(e,t)),e.isError(i))return i;if(n.any||null!==n.choice||null===n.children||n.children.forEach((function(n){n._decode(e,t)})),n.contains&&("octstr"===n.tag||"bitstr"===n.tag)){const r=new Rv(i);i=this._getUse(n.contains,e._reporterState.obj)._decode(r,t)}}return n.obj&&o&&(i=e.leaveObject(r)),null===n.key||null===i&&!0!==o?null!==a&&e.exitKey(a):e.leaveKey(a,n.key,i),i},Lv.prototype._decodeGeneric=function(e,t,n){const r=this._baseState;return"seq"===e||"set"===e?null:"seqof"===e||"setof"===e?this._decodeList(t,e,r.args[0],n):/str$/.test(e)?this._decodeStr(t,e,n):"objid"===e&&r.args?this._decodeObjid(t,r.args[0],r.args[1],n):"objid"===e?this._decodeObjid(t,null,null,n):"gentime"===e||"utctime"===e?this._decodeTime(t,e,n):"null_"===e?this._decodeNull(t,n):"bool"===e?this._decodeBool(t,n):"objDesc"===e?this._decodeStr(t,e,n):"int"===e||"enum"===e?this._decodeInt(t,r.args&&r.args[0],n):null!==r.use?this._getUse(r.use,t._reporterState.obj)._decode(t,n):t.error("unknown tag: "+e)},Lv.prototype._getUse=function(e,t){const n=this._baseState;return n.useDecoder=this._use(e,t),Ov(null===n.useDecoder._baseState.parent),n.useDecoder=n.useDecoder._baseState.children[0],n.implicit!==n.useDecoder._baseState.implicit&&(n.useDecoder=n.useDecoder.clone(),n.useDecoder._baseState.implicit=n.implicit),n.useDecoder},Lv.prototype._decodeChoice=function(e,t){const n=this._baseState;let r=null,i=!1;return Object.keys(n.choice).some((function(o){const a=e.save(),s=n.choice[o];try{const n=s._decode(e,t);if(e.isError(n))return!1;r={type:o,value:n},i=!0}catch(t){return e.restore(a),!1}return!0}),this),i?r:e.error("Choice not matched")},Lv.prototype._createEncoderBuffer=function(e){return new xv(e,this.reporter)},Lv.prototype._encode=function(e,t,n){const r=this._baseState;if(null!==r.default&&r.default===e)return;const i=this._encodeValue(e,t,n);return void 0===i||this._skipDefault(i,t,n)?void 0:i},Lv.prototype._encodeValue=function(e,t,n){const r=this._baseState;if(null===r.parent)return r.children[0]._encode(e,t||new Cv);let i=null;if(this.reporter=t,r.optional&&void 0===e){if(null===r.default)return;e=r.default}let o=null,a=!1;if(r.any)i=this._createEncoderBuffer(e);else if(r.choice)i=this._encodeChoice(e,t);else if(r.contains)o=this._getUse(r.contains,n)._encode(e,t),a=!0;else if(r.children)o=r.children.map((function(n){if("null_"===n._baseState.tag)return n._encode(null,t,e);if(null===n._baseState.key)return t.error("Child should have a key");const r=t.enterKey(n._baseState.key);if("object"!=typeof e)return t.error("Child expected, but input is not object");const i=n._encode(e[n._baseState.key],t,e);return t.leaveKey(r),i}),this).filter((function(e){return e})),o=this._createEncoderBuffer(o);else if("seqof"===r.tag||"setof"===r.tag){if(!r.args||1!==r.args.length)return t.error("Too many args for : "+r.tag);if(!Array.isArray(e))return t.error("seqof/setof, but data is not Array");const n=this.clone();n._baseState.implicit=null,o=this._createEncoderBuffer(e.map((function(n){const r=this._baseState;return this._getUse(r.args[0],e)._encode(n,t)}),n))}else null!==r.use?i=this._getUse(r.use,n)._encode(e,t):(o=this._encodePrimitive(r.tag,e),a=!0);if(!r.any&&null===r.choice){const e=null!==r.implicit?r.implicit:r.tag,n=null===r.implicit?"universal":"context";null===e?null===r.use&&t.error("Tag could be omitted only for .use()"):null===r.use&&(i=this._encodeComposite(e,a,n,o))}return null!==r.explicit&&(i=this._encodeComposite(r.explicit,!1,"context",i)),i},Lv.prototype._encodeChoice=function(e,t){const n=this._baseState,r=n.choice[e.type];return r||Ov(!1,e.type+" not found in "+JSON.stringify(Object.keys(n.choice))),r._encode(e.value,t)},Lv.prototype._encodePrimitive=function(e,t){const n=this._baseState;if(/str$/.test(e))return this._encodeStr(t,e);if("objid"===e&&n.args)return this._encodeObjid(t,n.reverseArgs[0],n.args[1]);if("objid"===e)return this._encodeObjid(t,null,null);if("gentime"===e||"utctime"===e)return this._encodeTime(t,e);if("null_"===e)return this._encodeNull();if("int"===e||"enum"===e)return this._encodeInt(t,n.args&&n.reverseArgs[0]);if("bool"===e)return this._encodeBool(t);if("objDesc"===e)return this._encodeStr(t,e);throw new Error("Unsupported tag: "+e)},Lv.prototype._isNumstr=function(e){return/^[0-9 ]*$/.test(e)},Lv.prototype._isPrintstr=function(e){return/^[A-Za-z0-9 '()+,-./:=?]*$/.test(e)};var Dv={};!function(e){function t(e){const t={};return Object.keys(e).forEach((function(n){(0|n)==n&&(n|=0);const r=e[n];t[r]=n})),t}e.tagClass={0:"universal",1:"application",2:"context",3:"private"},e.tagClassByName=t(e.tagClass),e.tag={0:"end",1:"bool",2:"int",3:"bitstr",4:"octstr",5:"null_",6:"objid",7:"objDesc",8:"external",9:"real",10:"enum",11:"embed",12:"utf8str",13:"relativeOid",16:"seq",17:"set",18:"numstr",19:"printstr",20:"t61str",21:"videostr",22:"ia5str",23:"utctime",24:"gentime",25:"graphstr",26:"iso646str",27:"genstr",28:"unistr",29:"charstr",30:"bmpstr"},e.tagByName=t(e.tag)}(Dv);const Bv=Jr,jv=gv.Buffer,Uv=Iv,zv=Dv;function Fv(e){this.enc="der",this.name=e.name,this.entity=e,this.tree=new Wv,this.tree._init(e.body)}var qv=Fv;function Wv(e){Uv.call(this,"der",e)}function Vv(e){return e<10?"0"+e:e}Fv.prototype.encode=function(e,t){return this.tree._encode(e,t).join()},Bv(Wv,Uv),Wv.prototype._encodeComposite=function(e,t,n,r){const i=function(e,t,n,r){let i;if("seqof"===e?e="seq":"setof"===e&&(e="set"),zv.tagByName.hasOwnProperty(e))i=zv.tagByName[e];else{if("number"!=typeof e||(0|e)!==e)return r.error("Unknown tag: "+e);i=e}return i>=31?r.error("Multi-octet tag encoding unsupported"):(t||(i|=32),i|=zv.tagClassByName[n||"universal"]<<6,i)}(e,t,n,this.reporter);if(r.length<128){const e=jv.alloc(2);return e[0]=i,e[1]=r.length,this._createEncoderBuffer([e,r])}let o=1;for(let s=r.length;s>=256;s>>=8)o++;const a=jv.alloc(2+o);a[0]=i,a[1]=128|o;for(let s=1+o,u=r.length;u>0;s--,u>>=8)a[s]=255&u;return this._createEncoderBuffer([a,r])},Wv.prototype._encodeStr=function(e,t){if("bitstr"===t)return this._createEncoderBuffer([0|e.unused,e.data]);if("bmpstr"===t){const t=jv.alloc(2*e.length);for(let n=0;n=40)return this.reporter.error("Second objid identifier OOB");e.splice(0,2,40*e[0]+e[1])}let r=0;for(let a=0;a=128;t>>=7)r++}const i=jv.alloc(r);let o=i.length-1;for(let a=e.length-1;a>=0;a--){let t=e[a];for(i[o--]=127&t;(t>>=7)>0;)i[o--]=128|127&t}return this._createEncoderBuffer(i)},Wv.prototype._encodeTime=function(e,t){let n;const r=new Date(e);return"gentime"===t?n=[Vv(r.getUTCFullYear()),Vv(r.getUTCMonth()+1),Vv(r.getUTCDate()),Vv(r.getUTCHours()),Vv(r.getUTCMinutes()),Vv(r.getUTCSeconds()),"Z"].join(""):"utctime"===t?n=[Vv(r.getUTCFullYear()%100),Vv(r.getUTCMonth()+1),Vv(r.getUTCDate()),Vv(r.getUTCHours()),Vv(r.getUTCMinutes()),Vv(r.getUTCSeconds()),"Z"].join(""):this.reporter.error("Encoding "+t+" time is not supported yet"),this._encodeStr(n,"octstr")},Wv.prototype._encodeNull=function(){return this._createEncoderBuffer("")},Wv.prototype._encodeInt=function(e,t){if("string"==typeof e){if(!t)return this.reporter.error("String int or enum given, but no values map");if(!t.hasOwnProperty(e))return this.reporter.error("Values map doesn't contain: "+JSON.stringify(e));e=t[e]}if("number"!=typeof e&&!jv.isBuffer(e)){const t=e.toArray();!e.sign&&128&t[0]&&t.unshift(0),e=jv.from(t)}if(jv.isBuffer(e)){let t=e.length;0===e.length&&t++;const n=jv.alloc(t);return e.copy(n),0===e.length&&(n[0]=0),this._createEncoderBuffer(n)}if(e<128)return this._createEncoderBuffer(e);if(e<256)return this._createEncoderBuffer([0,e]);let n=1;for(let i=e;i>=256;i>>=8)n++;const r=new Array(n);for(let i=r.length-1;i>=0;i--)r[i]=255&e,e>>=8;return 128&r[0]&&r.unshift(0),this._createEncoderBuffer(jv.from(r))},Wv.prototype._encodeBool=function(e){return this._createEncoderBuffer(e?255:0)},Wv.prototype._use=function(e,t){return"function"==typeof e&&(e=e(t)),e._getEncoder("der").tree},Wv.prototype._skipDefault=function(e,t,n){const r=this._baseState;let i;if(null===r.default)return!1;const o=e.join();if(void 0===r.defaultBuffer&&(r.defaultBuffer=this._encodeValue(r.default,t,n).join()),o.length!==r.defaultBuffer.length)return!1;for(i=0;i>6],i=0==(32&n);if(31==(31&n)){let r=n;for(n=0;128==(128&r);){if(r=e.readUInt8(t),e.isError(r))return r;n<<=7,n|=127&r}}else n&=31;return{cls:r,primitive:i,tag:n,tagStr:Jv.tag[n]}}function iy(e,t,n){let r=e.readUInt8(n);if(e.isError(r))return r;if(!t&&128===r)return null;if(0==(128&r))return r;const i=127&r;if(i>4)return e.error("length octect is too long");r=0;for(let o=0;on-a-2)throw new Error("message too long");var s=yb.alloc(n-r-a-2),u=n-o-1,l=db(o),c=pb(yb.concat([i,s,yb.alloc(1,1),t],u),hb(l,u)),d=pb(l,hb(c,o));return new mb(yb.concat([yb.alloc(1),d,c],n))}(o,t);else if(1===r)i=function(e,t,n){var r,i=t.length,o=e.modulus.byteLength();if(i>o-11)throw new Error("message too long");return r=n?yb.alloc(o-i-3,255):function(e){for(var t,n=yb.allocUnsafe(e),r=0,i=db(2*e),o=0;r=0)throw new Error("data too long for modulus")}return n?vb(i,o):gb(i,o)},wb=Ky,Ab=ib,_b=ab,Eb=vf,Sb=Ih,kb=$u,Mb=lb,Cb=$r.Buffer,xb=function(e,t,n){var r;r=e.padding?e.padding:n?1:4;var i,o=wb(e),a=o.modulus.byteLength();if(t.length>a||new Eb(t).cmp(o.modulus)>=0)throw new Error("decryption error");i=n?Mb(new Eb(t),o):Sb(t,o);var s=Cb.alloc(a-i.length);if(i=Cb.concat([s,i],a),4===r)return function(e,t){var n=e.modulus.byteLength(),r=kb("sha1").update(Cb.alloc(0)).digest(),i=r.length;if(0!==t[0])throw new Error("decryption error");var o=t.slice(1,i+1),a=t.slice(i+1),s=_b(o,Ab(a,i)),u=_b(a,Ab(s,n-i-1));if(function(e,t){e=Cb.from(e),t=Cb.from(t);var n=0,r=e.length;e.length!==t.length&&(n++,r=Math.min(e.length,t.length));for(var i=-1;++i=t.length){o++;break}var a=t.slice(2,i-1);if(("0002"!==r.toString("hex")&&!n||"0001"!==r.toString("hex")&&n)&&o++,a.length<8&&o++,o)throw new Error("decryption error");return t.slice(i)}(0,i,n);if(3===r)return i;throw new Error("unknown padding")};!function(e){e.publicEncrypt=bb,e.privateDecrypt=xb,e.privateEncrypt=function(t,n){return e.publicEncrypt(t,n,!0)},e.publicDecrypt=function(t,n){return e.privateDecrypt(t,n,!0)}}(tb);var Rb={};function Ob(){throw new Error("secure random number generation not supported by this browser\nuse chrome, FireFox or Internet Explorer 11")}var Tb,Pb=$r,Lb=Pb.Buffer,Ib=Pb.kMaxLength,Nb=hr.crypto||hr.msCrypto,Db=Math.pow(2,32)-1;function Bb(e,t){if("number"!=typeof e||e!=e)throw new TypeError("offset must be a number");if(e>Db||e<0)throw new TypeError("offset must be a uint32");if(e>Ib||e>t)throw new RangeError("offset out of range")}function jb(e,t,n){if("number"!=typeof e||e!=e)throw new TypeError("size must be a number");if(e>Db||e<0)throw new TypeError("size must be a uint32");if(e+t>n||e>Ib)throw new RangeError("buffer too small")}function Ub(e,t,n,r){var i=e.buffer,o=new Uint8Array(i,t,n);return Nb.getRandomValues(o),r?void Tr((function(){r(null,e)})):e}function zb(){if(Tb)return br;Tb=1,br.randomBytes=br.rng=br.pseudoRandomBytes=br.prng=Zr,br.createHash=br.Hash=$u,br.createHmac=br.Hmac=dl;var e=hl,t=Object.keys(e),n=["sha1","sha224","sha256","sha384","sha512","md5","rmd160"].concat(t);br.getHashes=function(){return n};var r=pl;br.pbkdf2=r.pbkdf2,br.pbkdf2Sync=r.pbkdf2Sync;var i=Wl;br.Cipher=i.Cipher,br.createCipher=i.createCipher,br.Cipheriv=i.Cipheriv,br.createCipheriv=i.createCipheriv,br.Decipher=i.Decipher,br.createDecipher=i.createDecipher,br.Decipheriv=i.Decipheriv,br.createDecipheriv=i.createDecipheriv,br.getCiphers=i.getCiphers,br.listCiphers=i.listCiphers;var o=function(){if(Sf)return cf;Sf=1;var e=Af(),t=Cf,n=function(){if(Ef)return _f;Ef=1;var e=vf,t=new(wf()),n=new e(24),r=new e(11),i=new e(10),o=new e(3),a=new e(7),s=Af(),u=Zr;function l(t,n){return n=n||"utf8",dr(t)||(t=new xn(t,n)),this._pub=new e(t),this}function c(t,n){return n=n||"utf8",dr(t)||(t=new xn(t,n)),this._priv=new e(t),this}_f=f;var d={};function f(t,n,r){this.setGenerator(n),this.__prime=new e(t),this._prime=e.mont(this.__prime),this._primeLen=t.length,this._pub=void 0,this._priv=void 0,this._primeCode=void 0,r?(this.setPublicKey=l,this.setPrivateKey=c):this._primeCode=8}function h(e,t){var n=new xn(e.toArray());return t?n.toString(t):n}return Object.defineProperty(f.prototype,"verifyError",{enumerable:!0,get:function(){return"number"!=typeof this._primeCode&&(this._primeCode=function(e,u){var l=u.toString("hex"),c=[l,e.toString(16)].join("_");if(c in d)return d[c];var f,h=0;if(e.isEven()||!s.simpleSieve||!s.fermatTest(e)||!t.test(e))return h+=1,h+="02"===l||"05"===l?8:4,d[c]=h,h;switch(t.test(e.shrn(1))||(h+=2),l){case"02":e.mod(n).cmp(r)&&(h+=8);break;case"05":(f=e.mod(i)).cmp(o)&&f.cmp(a)&&(h+=8);break;default:h+=4}return d[c]=h,h}(this.__prime,this.__gen)),this._primeCode}}),f.prototype.generateKeys=function(){return this._priv||(this._priv=new e(u(this._primeLen))),this._pub=this._gen.toRed(this._prime).redPow(this._priv).fromRed(),this.getPublicKey()},f.prototype.computeSecret=function(t){var n=new xn((t=(t=new e(t)).toRed(this._prime)).redPow(this._priv).fromRed().toArray()),r=this.getPrime();if(n.length0&&n.ishrn(r),n}function l(n,r,i){var o,a;do{for(o=e.alloc(0);8*o.length=t)throw new Error("invalid sig")}return Yy=function(a,s,u,l,c){var d=r(u);if("ec"===d.type){if("ecdsa"!==l&&"ecdsa/rsa"!==l)throw new Error("wrong public key type");return function(e,t,r){var o=i[r.data.algorithm.curve.join(".")];if(!o)throw new Error("unknown curve "+r.data.algorithm.curve.join("."));var a=new n(o),s=r.data.subjectPrivateKey.data;return a.verify(t,e,s)}(a,s,d)}if("dsa"===d.type){if("dsa"!==l)throw new Error("wrong public key type");return function(e,n,i){var a=i.data.p,s=i.data.q,u=i.data.g,l=i.data.pub_key,c=r.signature.decode(e,"der"),d=c.s,f=c.r;o(d,s),o(f,s);var h=t.mont(a),p=d.invm(s);return 0===u.toRed(h).redPow(new t(n).mul(p).mod(s)).fromRed().mul(l.toRed(h).redPow(f.mul(p).mod(s)).fromRed()).mod(a).mod(s).cmp(f)}(a,s,d)}if("rsa"!==l&&"ecdsa/rsa"!==l)throw new Error("wrong public key type");s=e.concat([c,s]);for(var f=d.modulus.byteLength(),h=[1],p=0;s.length+h.length+2{switch(e){case"sha256":case"sha3-256":case"blake2s256":return 32;case"sha512":case"sha3-512":case"blake2b512":return 64;case"sha224":case"sha3-224":return 28;case"sha384":case"sha3-384":return 48;case"sha1":return 20;case"md5":return 16;default:{let t=Vb[e];return void 0===t&&(t=qb(e).digest().length,Vb[e]=t),t}}},Hb=(e,t,n,r)=>{const i=Fb.isBuffer(n)?n:Fb.from(n),o=r&&r.length?Fb.from(r):Fb.alloc(t,0);return Wb(e,o).update(i).digest()},$b=(e,t,n,r,i)=>{const o=Fb.isBuffer(i)?i:Fb.from(i||""),a=o.length,s=Math.ceil(r/t);if(s>255)throw new Error(`OKM length ${r} is too long for ${e} hash`);const u=Fb.alloc(t*s+a+1);for(let l=1,c=0,d=0;l<=s;++l)o.copy(u,d),u[d+a]=l,Wb(e,n).update(u.slice(c,d+a+1)).digest().copy(u,d),c=d,d+=t;return u.slice(0,r)};function Yb(e,t,{salt:n="",info:r="",hash:i="SHA-256"}={}){i=i.toLowerCase().replace("-","");const o=Kb(i),a=Hb(i,o,e,n);return $b(i,o,a,t,r)}Object.defineProperties(Yb,{hash_length:{configurable:!1,enumerable:!1,writable:!1,value:Kb},extract:{configurable:!1,enumerable:!1,writable:!1,value:Hb},expand:{configurable:!1,enumerable:!1,writable:!1,value:$b}});var Gb=Yb;const Qb="Impossible case. Please create issue.",Zb="The tweak was out of range or the resulted private key is invalid",Xb="The tweak was out of range or equal to zero",Jb="Public Key could not be parsed",ew="Public Key serialization error",tw="Signature could not be parsed";function nw(e,t){if(!e)throw new Error(t)}function rw(e,t,n){if(nw(t instanceof Uint8Array,`Expected ${e} to be an Uint8Array`),void 0!==n)if(Array.isArray(n)){const r=`Expected ${e} to be an Uint8Array with length [${n.join(", ")}]`;nw(n.includes(t.length),r)}else{const r=`Expected ${e} to be an Uint8Array with length ${n}`;nw(t.length===n,r)}}function iw(e){nw("Boolean"===aw(e),"Expected compressed to be a Boolean")}function ow(e=(e=>new Uint8Array(e)),t){return"function"==typeof e&&(e=e(t)),rw("output",e,t),e}function aw(e){return Object.prototype.toString.call(e).slice(8,-1)}const sw=new(iv().ec)("secp256k1"),uw=sw.curve,lw=uw.n.constructor;function cw(e){const t=e[0];switch(t){case 2:case 3:return 33!==e.length?null:function(e,t){let n=new lw(t);if(n.cmp(uw.p)>=0)return null;n=n.toRed(uw.red);let r=n.redSqr().redIMul(n).redIAdd(uw.b).redSqrt();return 3===e!==r.isOdd()&&(r=r.redNeg()),sw.keyPair({pub:{x:n,y:r}})}(t,e.subarray(1,33));case 4:case 6:case 7:return 65!==e.length?null:function(e,t,n){let r=new lw(t),i=new lw(n);if(r.cmp(uw.p)>=0||i.cmp(uw.p)>=0)return null;if(r=r.toRed(uw.red),i=i.toRed(uw.red),(6===e||7===e)&&i.isOdd()!==(7===e))return null;const o=r.redSqr().redIMul(r);return i.redSqr().redISub(o.redIAdd(uw.b)).isZero()?sw.keyPair({pub:{x:r,y:i}}):null}(t,e.subarray(1,33),e.subarray(33,65));default:return null}}function dw(e,t){const n=t.encode(null,33===e.length);for(let r=0;r0,privateKeyVerify(e){const t=new lw(e);return t.cmp(uw.n)<0&&!t.isZero()?0:1},privateKeyNegate(e){const t=new lw(e),n=uw.n.sub(t).umod(uw.n).toArrayLike(Uint8Array,"be",32);return e.set(n),0},privateKeyTweakAdd(e,t){const n=new lw(t);if(n.cmp(uw.n)>=0)return 1;if(n.iadd(new lw(e)),n.cmp(uw.n)>=0&&n.isub(uw.n),n.isZero())return 1;const r=n.toArrayLike(Uint8Array,"be",32);return e.set(r),0},privateKeyTweakMul(e,t){let n=new lw(t);if(n.cmp(uw.n)>=0||n.isZero())return 1;n.imul(new lw(e)),n.cmp(uw.n)>=0&&(n=n.umod(uw.n));const r=n.toArrayLike(Uint8Array,"be",32);return e.set(r),0},publicKeyVerify:e=>null===cw(e)?1:0,publicKeyCreate(e,t){const n=new lw(t);return n.cmp(uw.n)>=0||n.isZero()?1:(dw(e,sw.keyFromPrivate(t).getPublic()),0)},publicKeyConvert(e,t){const n=cw(t);return null===n?1:(dw(e,n.getPublic()),0)},publicKeyNegate(e,t){const n=cw(t);if(null===n)return 1;const r=n.getPublic();return r.y=r.y.redNeg(),dw(e,r),0},publicKeyCombine(e,t){const n=new Array(t.length);for(let i=0;i=0)return 2;const i=r.getPublic().add(uw.g.mul(n));return i.isInfinity()?2:(dw(e,i),0)},publicKeyTweakMul(e,t,n){const r=cw(t);return null===r?1:(n=new lw(n)).cmp(uw.n)>=0||n.isZero()?2:(dw(e,r.getPublic().mul(n)),0)},signatureNormalize(e){const t=new lw(e.subarray(0,32)),n=new lw(e.subarray(32,64));return t.cmp(uw.n)>=0||n.cmp(uw.n)>=0?1:(1===n.cmp(sw.nh)&&e.set(uw.n.sub(n).toArrayLike(Uint8Array,"be",32),32),0)},signatureExport(e,t){const n=t.subarray(0,32),r=t.subarray(32,64);if(new lw(n).cmp(uw.n)>=0)return 1;if(new lw(r).cmp(uw.n)>=0)return 1;const{output:i}=e;let o=i.subarray(4,37);o[0]=0,o.set(n,1);let a=33,s=0;for(;a>1&&0===o[s]&&!(128&o[s+1]);--a,++s);if(o=o.subarray(s),128&o[0])return 1;if(a>1&&0===o[0]&&!(128&o[1]))return 1;let u=i.subarray(39,72);u[0]=0,u.set(r,1);let l=33,c=0;for(;l>1&&0===u[c]&&!(128&u[c+1]);--l,++c);return u=u.subarray(c),128&u[0]||l>1&&0===u[0]&&!(128&u[1])?1:(e.outputlen=6+a+l,i[0]=48,i[1]=e.outputlen-2,i[2]=2,i[3]=o.length,i.set(o,4),i[4+a]=2,i[5+a]=u.length,i.set(u,6+a),0)},signatureImport(e,t){if(t.length<8)return 1;if(t.length>72)return 1;if(48!==t[0])return 1;if(t[1]!==t.length-2)return 1;if(2!==t[2])return 1;const n=t[3];if(0===n)return 1;if(5+n>=t.length)return 1;if(2!==t[4+n])return 1;const r=t[5+n];if(0===r)return 1;if(6+n+r!==t.length)return 1;if(128&t[4])return 1;if(n>1&&0===t[4]&&!(128&t[5]))return 1;if(128&t[n+6])return 1;if(r>1&&0===t[n+6]&&!(128&t[n+7]))return 1;let i=t.subarray(4,4+n);if(33===i.length&&0===i[0]&&(i=i.subarray(1)),i.length>32)return 1;let o=t.subarray(6+n);if(33===o.length&&0===o[0]&&(o=o.slice(1)),o.length>32)throw new Error("S length is too long");let a=new lw(i);a.cmp(uw.n)>=0&&(a=new lw(0));let s=new lw(t.subarray(6+n));return s.cmp(uw.n)>=0&&(s=new lw(0)),e.set(a.toArrayLike(Uint8Array,"be",32),0),e.set(s.toArrayLike(Uint8Array,"be",32),32),0},ecdsaSign(e,t,n,r,i){if(i){const e=i;i=i=>{const o=e(t,n,null,r,i);if(!(o instanceof Uint8Array&&32===o.length))throw new Error("This is the way");return new lw(o)}}const o=new lw(n);if(o.cmp(uw.n)>=0||o.isZero())return 1;let a;try{a=sw.sign(t,n,{canonical:!0,k:i,pers:r})}catch(e){return 1}return e.signature.set(a.r.toArrayLike(Uint8Array,"be",32),0),e.signature.set(a.s.toArrayLike(Uint8Array,"be",32),32),e.recid=a.recoveryParam,0},ecdsaVerify(e,t,n){const r={r:e.subarray(0,32),s:e.subarray(32,64)},i=new lw(r.r),o=new lw(r.s);if(i.cmp(uw.n)>=0||o.cmp(uw.n)>=0)return 1;if(1===o.cmp(sw.nh)||i.isZero()||o.isZero())return 3;const a=cw(n);if(null===a)return 2;const s=a.getPublic();return sw.verify(t,r,s)?0:3},ecdsaRecover(e,t,n,r){const i={r:t.slice(0,32),s:t.slice(32,64)},o=new lw(i.r),a=new lw(i.s);if(o.cmp(uw.n)>=0||a.cmp(uw.n)>=0)return 1;if(o.isZero()||a.isZero())return 2;let s;try{s=sw.recoverPubKey(r,i,n)}catch(e){return 2}return dw(e,s),0},ecdh(e,t,n,r,i,o,a){const s=cw(t);if(null===s)return 1;const u=new lw(n);if(u.cmp(uw.n)>=0||u.isZero())return 2;const l=s.getPublic().mul(u);if(void 0===i){const t=l.encode(null,!0),n=sw.hash().update(t).digest();for(let r=0;r<32;++r)e[r]=n[r]}else{o||(o=new Uint8Array(32));const t=l.getX().toArray("be",32);for(let e=0;e<32;++e)o[e]=t[e];a||(a=new Uint8Array(32));const n=l.getY().toArray("be",32);for(let e=0;e<32;++e)a[e]=n[e];const s=i(o,a,r);if(!(s instanceof Uint8Array&&s.length===e.length))return 2;e.set(s)}return 0}},hw=(e=>({contextRandomize(t){if(nw(null===t||t instanceof Uint8Array,"Expected seed to be an Uint8Array or null"),null!==t&&rw("seed",t,32),1===e.contextRandomize(t))throw new Error("Unknow error on context randomization")},privateKeyVerify:t=>(rw("private key",t,32),0===e.privateKeyVerify(t)),privateKeyNegate(t){switch(rw("private key",t,32),e.privateKeyNegate(t)){case 0:return t;case 1:throw new Error(Qb)}},privateKeyTweakAdd(t,n){switch(rw("private key",t,32),rw("tweak",n,32),e.privateKeyTweakAdd(t,n)){case 0:return t;case 1:throw new Error(Zb)}},privateKeyTweakMul(t,n){switch(rw("private key",t,32),rw("tweak",n,32),e.privateKeyTweakMul(t,n)){case 0:return t;case 1:throw new Error(Xb)}},publicKeyVerify:t=>(rw("public key",t,[33,65]),0===e.publicKeyVerify(t)),publicKeyCreate(t,n=!0,r){switch(rw("private key",t,32),iw(n),r=ow(r,n?33:65),e.publicKeyCreate(r,t)){case 0:return r;case 1:throw new Error("Private Key is invalid");case 2:throw new Error(ew)}},publicKeyConvert(t,n=!0,r){switch(rw("public key",t,[33,65]),iw(n),r=ow(r,n?33:65),e.publicKeyConvert(r,t)){case 0:return r;case 1:throw new Error(Jb);case 2:throw new Error(ew)}},publicKeyNegate(t,n=!0,r){switch(rw("public key",t,[33,65]),iw(n),r=ow(r,n?33:65),e.publicKeyNegate(r,t)){case 0:return r;case 1:throw new Error(Jb);case 2:throw new Error(Qb);case 3:throw new Error(ew)}},publicKeyCombine(t,n=!0,r){nw(Array.isArray(t),"Expected public keys to be an Array"),nw(t.length>0,"Expected public keys array will have more than zero items");for(const e of t)rw("public key",e,[33,65]);switch(iw(n),r=ow(r,n?33:65),e.publicKeyCombine(r,t)){case 0:return r;case 1:throw new Error(Jb);case 2:throw new Error("The sum of the public keys is not valid");case 3:throw new Error(ew)}},publicKeyTweakAdd(t,n,r=!0,i){switch(rw("public key",t,[33,65]),rw("tweak",n,32),iw(r),i=ow(i,r?33:65),e.publicKeyTweakAdd(i,t,n)){case 0:return i;case 1:throw new Error(Jb);case 2:throw new Error(Zb)}},publicKeyTweakMul(t,n,r=!0,i){switch(rw("public key",t,[33,65]),rw("tweak",n,32),iw(r),i=ow(i,r?33:65),e.publicKeyTweakMul(i,t,n)){case 0:return i;case 1:throw new Error(Jb);case 2:throw new Error(Xb)}},signatureNormalize(t){switch(rw("signature",t,64),e.signatureNormalize(t)){case 0:return t;case 1:throw new Error(tw)}},signatureExport(t,n){rw("signature",t,64);const r={output:n=ow(n,72),outputlen:72};switch(e.signatureExport(r,t)){case 0:return n.slice(0,r.outputlen);case 1:throw new Error(tw);case 2:throw new Error(Qb)}},signatureImport(t,n){switch(rw("signature",t),n=ow(n,64),e.signatureImport(n,t)){case 0:return n;case 1:throw new Error(tw);case 2:throw new Error(Qb)}},ecdsaSign(t,n,r={},i){rw("message",t,32),rw("private key",n,32),nw("Object"===aw(r),"Expected options to be an Object"),void 0!==r.data&&rw("options.data",r.data),void 0!==r.noncefn&&nw("Function"===aw(r.noncefn),"Expected options.noncefn to be a Function");const o={signature:i=ow(i,64),recid:null};switch(e.ecdsaSign(o,t,n,r.data,r.noncefn)){case 0:return o;case 1:throw new Error("The nonce generation function failed, or the private key was invalid");case 2:throw new Error(Qb)}},ecdsaVerify(t,n,r){switch(rw("signature",t,64),rw("message",n,32),rw("public key",r,[33,65]),e.ecdsaVerify(t,n,r)){case 0:return!0;case 3:return!1;case 1:throw new Error(tw);case 2:throw new Error(Jb)}},ecdsaRecover(t,n,r,i=!0,o){switch(rw("signature",t,64),nw("Number"===aw(n)&&n>=0&&n<=3,"Expected recovery id to be a Number within interval [0, 3]"),rw("message",r,32),iw(i),o=ow(o,i?33:65),e.ecdsaRecover(o,t,n,r)){case 0:return o;case 1:throw new Error(tw);case 2:throw new Error("Public key could not be recover");case 3:throw new Error(Qb)}},ecdh(t,n,r={},i){switch(rw("public key",t,[33,65]),rw("private key",n,32),nw("Object"===aw(r),"Expected options to be an Object"),void 0!==r.data&&rw("options.data",r.data),void 0!==r.hashfn?(nw("Function"===aw(r.hashfn),"Expected options.hashfn to be a Function"),void 0!==r.xbuf&&rw("options.xbuf",r.xbuf,32),void 0!==r.ybuf&&rw("options.ybuf",r.ybuf,32),rw("output",i)):i=ow(i,32),e.ecdh(i,t,n,r.data,r.hashfn,r.xbuf,r.ybuf)){case 0:return i;case 1:throw new Error(Jb);case 2:throw new Error("Scalar was invalid (zero or overflow)")}}}))(fw),pw={},mw={};!function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.SECRET_KEY_LENGTH=e.AES_IV_PLUS_TAG_LENGTH=e.AES_TAG_LENGTH=e.AES_IV_LENGTH=e.UNCOMPRESSED_PUBLIC_KEY_SIZE=void 0,e.UNCOMPRESSED_PUBLIC_KEY_SIZE=65,e.AES_IV_LENGTH=16,e.AES_TAG_LENGTH=16,e.AES_IV_PLUS_TAG_LENGTH=e.AES_IV_LENGTH+e.AES_TAG_LENGTH,e.SECRET_KEY_LENGTH=32}(mw);var gw=hr&&hr.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(pw,"__esModule",{value:!0}),pw.aesDecrypt=pw.aesEncrypt=pw.getValidSecret=pw.decodeHex=pw.remove0x=void 0;var vw=zb(),yw=gw(hw),bw=mw;function ww(e){return e.startsWith("0x")||e.startsWith("0X")?e.slice(2):e}pw.remove0x=ww,pw.decodeHex=function(e){return xn.from(ww(e),"hex")},pw.getValidSecret=function(){var e;do{e=(0,vw.randomBytes)(bw.SECRET_KEY_LENGTH)}while(!yw.default.privateKeyVerify(e));return e},pw.aesEncrypt=function(e,t){var n=(0,vw.randomBytes)(bw.AES_IV_LENGTH),r=(0,vw.createCipheriv)("aes-256-gcm",e,n),i=xn.concat([r.update(t),r.final()]),o=r.getAuthTag();return xn.concat([n,o,i])},pw.aesDecrypt=function(e,t){var n=t.slice(0,bw.AES_IV_LENGTH),r=t.slice(bw.AES_IV_LENGTH,bw.AES_IV_PLUS_TAG_LENGTH),i=t.slice(bw.AES_IV_PLUS_TAG_LENGTH),o=(0,vw.createDecipheriv)("aes-256-gcm",e,n);return o.setAuthTag(r),xn.concat([o.update(i),o.final()])};var Aw={},_w=hr&&hr.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Aw,"__esModule",{value:!0});var Ew=_w(Gb),Sw=_w(hw),kw=pw,Mw=mw,Cw=function(){function e(e){this.uncompressed=xn.from(Sw.default.publicKeyConvert(e,!1)),this.compressed=xn.from(Sw.default.publicKeyConvert(e,!0))}return e.fromHex=function(t){var n=(0,kw.decodeHex)(t);if(n.length===Mw.UNCOMPRESSED_PUBLIC_KEY_SIZE-1){var r=xn.from([4]);return new e(xn.concat([r,n]))}return new e(n)},e.prototype.toHex=function(e){return void 0===e&&(e=!0),e?this.compressed.toString("hex"):this.uncompressed.toString("hex")},e.prototype.decapsulate=function(e){var t=xn.concat([this.uncompressed,e.multiply(this)]);return(0,Ew.default)(t,32,{hash:"SHA-256"})},e.prototype.equals=function(e){return this.uncompressed.equals(e.uncompressed)},e}();Aw.default=Cw;var xw=hr&&hr.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(vr,"__esModule",{value:!0});var Rw=xw(Gb),Ow=xw(hw),Tw=pw,Pw=xw(Aw),Lw=function(){function e(e){if(this.secret=e||(0,Tw.getValidSecret)(),!Ow.default.privateKeyVerify(this.secret))throw new Error("Invalid private key");this.publicKey=new Pw.default(xn.from(Ow.default.publicKeyCreate(this.secret)))}return e.fromHex=function(t){return new e((0,Tw.decodeHex)(t))},e.prototype.toHex=function(){return"0x".concat(this.secret.toString("hex"))},e.prototype.encapsulate=function(e){var t=xn.concat([this.publicKey.uncompressed,this.multiply(e)]);return(0,Rw.default)(t,32,{hash:"SHA-256"})},e.prototype.multiply=function(e){return xn.from(Ow.default.publicKeyTweakMul(e.compressed,this.secret,!1))},e.prototype.equals=function(e){return this.secret.equals(e.secret)},e}();vr.default=Lw,function(e){var t=hr&&hr.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0}),e.PublicKey=e.PrivateKey=void 0;var n=vr;Object.defineProperty(e,"PrivateKey",{enumerable:!0,get:function(){return t(n).default}});var r=Aw;Object.defineProperty(e,"PublicKey",{enumerable:!0,get:function(){return t(r).default}})}(gr),function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.utils=e.PublicKey=e.PrivateKey=e.decrypt=e.encrypt=void 0;var t=gr,n=pw,r=mw;e.encrypt=function(e,r){var i=new t.PrivateKey,o=e instanceof xn?new t.PublicKey(e):t.PublicKey.fromHex(e),a=i.encapsulate(o),s=(0,n.aesEncrypt)(a,r);return xn.concat([i.publicKey.uncompressed,s])},e.decrypt=function(e,i){var o=e instanceof xn?new t.PrivateKey(e):t.PrivateKey.fromHex(e),a=new t.PublicKey(i.slice(0,r.UNCOMPRESSED_PUBLIC_KEY_SIZE)),s=i.slice(r.UNCOMPRESSED_PUBLIC_KEY_SIZE),u=a.decapsulate(o);return(0,n.aesDecrypt)(u,s)};var i=gr;Object.defineProperty(e,"PrivateKey",{enumerable:!0,get:function(){return i.PrivateKey}}),Object.defineProperty(e,"PublicKey",{enumerable:!0,get:function(){return i.PublicKey}}),e.utils={aesDecrypt:n.aesDecrypt,aesEncrypt:n.aesEncrypt,decodeHex:n.decodeHex,getValidSecret:n.getValidSecret,remove0x:n.remove0x}}(mr);class Iw{constructor(e){this.enabled=!0,this.debug=!1,(null==e?void 0:e.debug)&&(this.debug=e.debug),(null==e?void 0:e.pkey)?this.ecies=mr.PrivateKey.fromHex(e.pkey):this.ecies=new mr.PrivateKey,this.debug&&(console.info("[ECIES] initialized secret: ",this.ecies.toHex()),console.info("[ECIES] initialized public: ",this.ecies.publicKey.toHex()),console.info("[ECIES] init with",this))}generateECIES(){this.ecies=new mr.PrivateKey}getPublicKey(){return this.ecies.publicKey.toHex()}encrypt(e,t){let n=e;if(this.enabled)try{this.debug&&console.debug("ECIES::encrypt() using otherPublicKey",t);const r=xn.from(e),i=mr.encrypt(t,r);n=xn.from(i).toString("base64")}catch(n){throw this.debug&&(console.error("error encrypt:",n),console.error("private: ",this.ecies.toHex()),console.error("data: ",e),console.error("otherkey: ",t)),n}return n}decrypt(e){let t=e;if(this.enabled)try{this.debug&&console.debug("ECIES::decrypt() using privateKey",this.ecies.toHex());const n=xn.from(e.toString(),"base64");t=mr.decrypt(this.ecies.toHex(),n).toString()}catch(t){throw this.debug&&(console.error("error decrypt",t),console.error("private: ",this.ecies.toHex()),console.error("encryptedData: ",e)),t}return t}getKeyInfo(){return{private:this.ecies.toHex(),public:this.ecies.publicKey.toHex()}}toString(){console.debug("ECIES::toString()",this.getKeyInfo())}}var Nw="0.14.1";const Dw="https://metamask-sdk-socket.metafi.codefi.network/",Bw=["polling","websocket"],jw=6048e5,Uw={METAMASK_GETPROVIDERSTATE:"metamask_getProviderState",ETH_REQUESTACCOUNTS:"eth_requestAccounts"};function zw(e){const{debug:t,context:n}=e;t&&console.debug(`RemoteCommunication::${n}::clean()`),e.channelConfig=void 0,e.ready=!1,e.originatorConnectStarted=!1}var Fw,qw;e.ConnectionStatus=void 0,e.EventType=void 0,e.MessageType=void 0,function(e){e.DISCONNECTED="disconnected",e.WAITING="waiting",e.TIMEOUT="timeout",e.LINKED="linked",e.PAUSED="paused",e.TERMINATED="terminated"}(e.ConnectionStatus||(e.ConnectionStatus={})),function(e){e.KEY_INFO="key_info",e.SERVICE_STATUS="service_status",e.PROVIDER_UPDATE="provider_update",e.RPC_UPDATE="rpc_update",e.KEYS_EXCHANGED="keys_exchanged",e.JOIN_CHANNEL="join_channel",e.CHANNEL_CREATED="channel_created",e.CLIENTS_CONNECTED="clients_connected",e.CLIENTS_DISCONNECTED="clients_disconnected",e.CLIENTS_WAITING="clients_waiting",e.CLIENTS_READY="clients_ready",e.SOCKET_DISCONNECTED="socket_disconnected",e.SOCKET_RECONNECT="socket_reconnect",e.OTP="otp",e.SDK_RPC_CALL="sdk_rpc_call",e.AUTHORIZED="authorized",e.CONNECTION_STATUS="connection_status",e.MESSAGE="message",e.TERMINATE="terminate"}(e.EventType||(e.EventType={})),function(e){e.KEY_EXCHANGE="key_exchange"}(Fw||(Fw={})),function(e){e.KEY_HANDSHAKE_START="key_handshake_start",e.KEY_HANDSHAKE_CHECK="key_handshake_check",e.KEY_HANDSHAKE_SYN="key_handshake_SYN",e.KEY_HANDSHAKE_SYNACK="key_handshake_SYNACK",e.KEY_HANDSHAKE_ACK="key_handshake_ACK",e.KEY_HANDSHAKE_NONE="none"}(qw||(qw={}));class Ww extends N.EventEmitter2{constructor({communicationLayer:e,otherPublicKey:t,context:n,ecies:r,logging:i}){super(),this.keysExchanged=!1,this.step=qw.KEY_HANDSHAKE_NONE,this.debug=!1,this.context=n,this.myECIES=new Iw(Object.assign(Object.assign({},r),{debug:null==i?void 0:i.eciesLayer})),this.communicationLayer=e,this.myPublicKey=this.myECIES.getPublicKey(),this.debug=!0===(null==i?void 0:i.keyExchangeLayer),t&&this.setOtherPublicKey(t),this.communicationLayer.on(Fw.KEY_EXCHANGE,this.onKeyExchangeMessage.bind(this))}onKeyExchangeMessage(t){this.debug&&console.debug(`KeyExchange::${this.context}::onKeyExchangeMessage() keysExchanged=${this.keysExchanged}`,t);const{message:n}=t;this.keysExchanged&&this.debug&&console.log(`KeyExchange::${this.context}::onKeyExchangeMessage received handshake while already exchanged. step=${this.step} otherPubKey=${this.otherPublicKey}`),this.emit(e.EventType.KEY_INFO,n.type),n.type===qw.KEY_HANDSHAKE_SYN?(this.checkStep([qw.KEY_HANDSHAKE_NONE,qw.KEY_HANDSHAKE_ACK]),this.debug&&console.debug("KeyExchange::KEY_HANDSHAKE_SYN",n),n.pubkey&&this.setOtherPublicKey(n.pubkey),this.communicationLayer.sendMessage({type:qw.KEY_HANDSHAKE_SYNACK,pubkey:this.myPublicKey}),this.setStep(qw.KEY_HANDSHAKE_ACK)):n.type===qw.KEY_HANDSHAKE_SYNACK?(this.checkStep([qw.KEY_HANDSHAKE_SYNACK,qw.KEY_HANDSHAKE_ACK,qw.KEY_HANDSHAKE_NONE]),this.debug&&console.debug("KeyExchange::KEY_HANDSHAKE_SYNACK"),n.pubkey&&this.setOtherPublicKey(n.pubkey),this.communicationLayer.sendMessage({type:qw.KEY_HANDSHAKE_ACK}),this.keysExchanged=!0,this.setStep(qw.KEY_HANDSHAKE_ACK),this.emit(e.EventType.KEYS_EXCHANGED)):n.type===qw.KEY_HANDSHAKE_ACK&&(this.debug&&console.debug("KeyExchange::KEY_HANDSHAKE_ACK set keysExchanged to true!"),this.checkStep([qw.KEY_HANDSHAKE_ACK,qw.KEY_HANDSHAKE_NONE]),this.keysExchanged=!0,this.setStep(qw.KEY_HANDSHAKE_ACK),this.emit(e.EventType.KEYS_EXCHANGED))}resetKeys(e){this.clean(),this.myECIES=new Iw(e)}clean(){this.debug&&console.debug(`KeyExchange::${this.context}::clean reset handshake state`),this.setStep(qw.KEY_HANDSHAKE_NONE),this.emit(e.EventType.KEY_INFO,this.step),this.keysExchanged=!1}start({isOriginator:e,force:t}){this.debug&&console.debug(`KeyExchange::${this.context}::start isOriginator=${e} step=${this.step} force=${t} keysExchanged=${this.keysExchanged}`),e?!(this.keysExchanged||this.step!==qw.KEY_HANDSHAKE_NONE&&this.step!==qw.KEY_HANDSHAKE_SYNACK)||t?(this.debug&&console.debug(`KeyExchange::${this.context}::start -- start key exchange (force=${t}) -- step=${this.step}`,this.step),this.clean(),this.setStep(qw.KEY_HANDSHAKE_SYNACK),this.communicationLayer.sendMessage({type:qw.KEY_HANDSHAKE_SYN,pubkey:this.myPublicKey})):this.debug&&console.debug(`KeyExchange::${this.context}::start -- key exchange already ${this.keysExchanged?"done":"in progress"} -- aborted.`,this.step):this.keysExchanged&&!0!==t?this.debug&&console.debug("KeyExchange::start don't send KEY_HANDSHAKE_START -- exchange already done."):(this.communicationLayer.sendMessage({type:qw.KEY_HANDSHAKE_START}),this.clean())}setStep(t){this.step=t,this.emit(e.EventType.KEY_INFO,t)}checkStep(e){e.length>0&&-1===e.indexOf(this.step.toString())&&console.warn(`[KeyExchange] Wrong Step "${this.step}" not within ${e}`)}setKeysExchanged(e){this.keysExchanged=e}areKeysExchanged(){return this.keysExchanged}getMyPublicKey(){return this.myPublicKey}getOtherPublicKey(){return this.otherPublicKey}setOtherPublicKey(e){this.debug&&console.debug("KeyExchange::setOtherPubKey()",e),this.otherPublicKey=e}encryptMessage(e){if(!this.otherPublicKey)throw new Error("encryptMessage: Keys not exchanged - missing otherPubKey");return this.myECIES.encrypt(e,this.otherPublicKey)}decryptMessage(e){if(!this.otherPublicKey)throw new Error("decryptMessage: Keys not exchanged - missing otherPubKey");return this.myECIES.decrypt(e)}getKeyInfo(){return{ecies:Object.assign(Object.assign({},this.myECIES.getKeyInfo()),{otherPubKey:this.otherPublicKey}),step:this.step,keysExchanged:this.areKeysExchanged()}}toString(){const e={keyInfo:this.getKeyInfo(),keysExchanged:this.keysExchanged,step:this.step};return JSON.stringify(e)}}!function(e){e.TERMINATE="terminate",e.ANSWER="answer",e.OFFER="offer",e.CANDIDATE="candidate",e.JSONRPC="jsonrpc",e.WALLET_INFO="wallet_info",e.ORIGINATOR_INFO="originator_info",e.PAUSE="pause",e.OTP="otp",e.AUTHORIZED="authorized",e.PING="ping",e.READY="ready"}(e.MessageType||(e.MessageType={}));const Vw=e=>new Promise((t=>{setTimeout(t,e)})),Kw=(e,t,n=200)=>dn(void 0,void 0,void 0,(function*(){let r;const i=Date.now();let o=!1;for(;!o;){if(o=Date.now()-i>3e5,r=t[e],void 0!==r.elapsedTime)return r;yield Vw(n)}throw new Error(`RPC ${e} timed out`)})),Hw=t=>dn(void 0,void 0,void 0,(function*(){var n,r,i,o,a;return t.state.debug&&console.debug(`SocketService::connectAgain instance.state.socket?.connected=${null===(n=t.state.socket)||void 0===n?void 0:n.connected} trying to reconnect after socketio disconnection`,t),yield Vw(200),(null===(r=t.state.socket)||void 0===r?void 0:r.connected)||(t.state.resumed=!0,null===(i=t.state.socket)||void 0===i||i.connect(),t.emit(e.EventType.SOCKET_RECONNECT),null===(o=t.state.socket)||void 0===o||o.emit(e.EventType.JOIN_CHANNEL,t.state.channelId,`${t.state.context}connect_again`)),yield Vw(100),null===(a=t.state.socket)||void 0===a?void 0:a.connected})),$w=[{event:"clients_connected",handler:function(t,n){return r=>dn(this,void 0,void 0,(function*(){var r,i,o,a,s,u,l,c;t.state.debug&&console.debug(`SocketService::${t.state.context}::setupChannelListener::on 'clients_connected-${n}' resumed=${t.state.resumed} clientsPaused=${t.state.clientsPaused} keysExchanged=${null===(r=t.state.keyExchange)||void 0===r?void 0:r.areKeysExchanged()} isOriginator=${t.state.isOriginator}`),t.emit(e.EventType.CLIENTS_CONNECTED,{isOriginator:t.state.isOriginator,keysExchanged:null===(i=t.state.keyExchange)||void 0===i?void 0:i.areKeysExchanged(),context:t.state.context}),t.state.resumed?(t.state.isOriginator||(t.state.debug&&console.debug(`SocketService::${t.state.context}::on 'clients_connected' / keysExchanged=${null===(o=t.state.keyExchange)||void 0===o?void 0:o.areKeysExchanged()} -- backward compatibility`),null===(a=t.state.keyExchange)||void 0===a||a.start({isOriginator:null!==(s=t.state.isOriginator)&&void 0!==s&&s})),t.state.resumed=!1):t.state.clientsPaused?console.debug("SocketService::on 'clients_connected' skip sending originatorInfo on pause"):t.state.isOriginator||(t.state.debug&&console.debug(`SocketService::${t.state.context}::on 'clients_connected' / keysExchanged=${null===(u=t.state.keyExchange)||void 0===u?void 0:u.areKeysExchanged()} -- backward compatibility`),null===(l=t.state.keyExchange)||void 0===l||l.start({isOriginator:null!==(c=t.state.isOriginator)&&void 0!==c&&c,force:!0})),t.state.clientsConnected=!0,t.state.clientsPaused=!1}))}},{event:"channel_created",handler:function(t,n){return r=>{t.state.debug&&console.debug(`SocketService::${t.state.context}::setupChannelListener::on 'channel_created-${n}'`,r),t.emit(e.EventType.CHANNEL_CREATED,r)}}},{event:"clients_disconnected",handler:function(t,n){return()=>{var r;t.state.clientsConnected=!1,t.state.debug&&console.debug(`SocketService::${t.state.context}::setupChannelListener::on 'clients_disconnected-${n}'`),t.state.isOriginator&&!t.state.clientsPaused&&(null===(r=t.state.keyExchange)||void 0===r||r.clean()),t.emit(e.EventType.CLIENTS_DISCONNECTED,n)}}},{event:"message",handler:function(t,n){return({id:r,message:i,error:o})=>{var a,s,u,l,c,d,f,h,p,m,g,v,y,b,w;if(t.state.debug&&console.debug(`SocketService::${t.state.context}::on 'message' ${n} keysExchanged=${null===(a=t.state.keyExchange)||void 0===a?void 0:a.areKeysExchanged()}`,i),o)throw t.state.debug&&console.debug(`\n SocketService::${t.state.context}::on 'message' error=${o}`),new Error(o);try{!function(e,t){if(t!==e.channelId)throw e.debug&&console.error(`Wrong id ${t} - should be ${e.channelId}`),new Error("Wrong id")}(t.state,r)}catch(e){return void console.error("ignore message --- wrong id ",i)}if(t.state.isOriginator&&(null==i?void 0:i.type)===qw.KEY_HANDSHAKE_START)return t.state.debug&&console.debug(`SocketService::${t.state.context}::on 'message' received HANDSHAKE_START isOriginator=${t.state.isOriginator}`,i),void(null===(s=t.state.keyExchange)||void 0===s||s.start({isOriginator:null!==(u=t.state.isOriginator)&&void 0!==u&&u,force:!0}));if((null==i?void 0:i.type)===e.MessageType.PING)return t.state.debug&&console.debug(`SocketService::${t.state.context}::on 'message' ping `),void t.emit(e.EventType.MESSAGE,{message:{type:"ping"}});if(t.state.debug&&console.debug(`SocketService::${t.state.context}::on 'message' originator=${t.state.isOriginator}, type=${null==i?void 0:i.type}, keysExchanged=${null===(l=t.state.keyExchange)||void 0===l?void 0:l.areKeysExchanged()}`),null===(c=null==i?void 0:i.type)||void 0===c?void 0:c.startsWith("key_handshake"))return t.state.debug&&console.debug(`SocketService::${t.state.context}::on 'message' emit KEY_EXCHANGE`,i),void t.emit(Fw.KEY_EXCHANGE,{message:i,context:t.state.context});if(null===(d=t.state.keyExchange)||void 0===d?void 0:d.areKeysExchanged()){if(-1!==i.toString().indexOf("type"))return console.warn("SocketService::on 'message' received non encrypted unkwown message"),void t.emit(e.EventType.MESSAGE,i)}else{let n=!1;try{null===(f=t.state.keyExchange)||void 0===f||f.decryptMessage(i),n=!0}catch(e){}if(!n)return t.state.isOriginator?null===(p=t.state.keyExchange)||void 0===p||p.start({isOriginator:null!==(m=t.state.isOriginator)&&void 0!==m&&m}):t.sendMessage({type:qw.KEY_HANDSHAKE_START}),void console.warn(`Message ignored because invalid key exchange status. step=${null===(g=t.state.keyExchange)||void 0===g?void 0:g.getKeyInfo().step}`,null===(v=t.state.keyExchange)||void 0===v?void 0:v.getKeyInfo(),i);console.warn("Invalid key exchange status detected --- updating it."),null===(h=t.state.keyExchange)||void 0===h||h.setKeysExchanged(!0)}const A=null===(y=t.state.keyExchange)||void 0===y?void 0:y.decryptMessage(i),_=JSON.parse(null!=A?A:"{}");if((null==_?void 0:_.type)===e.MessageType.PAUSE?t.state.clientsPaused=!0:t.state.clientsPaused=!1,t.state.isOriginator&&_.data){const n=_.data,r=t.state.rpcMethodTracker[n.id];if(r){const i=Date.now()-r.timestamp;t.state.debug&&console.debug(`SocketService::${t.state.context}::on 'message' received answer for id=${n.id} method=${r.method} responseTime=${i}`,_);const o=Object.assign(Object.assign({},r),{result:n.result,error:n.error?{code:null===(b=n.error)||void 0===b?void 0:b.code,message:null===(w=n.error)||void 0===w?void 0:w.message}:void 0,elapsedTime:i});t.state.rpcMethodTracker[n.id]=o,t.emit(e.EventType.RPC_UPDATE,o),t.state.debug&&console.debug("HACK (wallet <7.3) update rpcMethodTracker",o),t.emit(e.EventType.AUTHORIZED)}}t.emit(e.EventType.MESSAGE,{message:_})}}},{event:"clients_waiting_to_join",handler:function(t,n){return r=>{t.state.debug&&console.debug(`SocketService::${t.state.context}::setupChannelListener::on 'clients_waiting_to_join-${n}'`,r),t.emit(e.EventType.CLIENTS_WAITING,r)}}}],Yw=[{event:e.EventType.KEY_INFO,handler:function(t){return n=>{t.state.debug&&console.debug("SocketService::on 'KEY_INFO'",n),t.emit(e.EventType.KEY_INFO,n)}}},{event:e.EventType.KEYS_EXCHANGED,handler:function(t){return()=>{var n,r;t.state.debug&&console.debug(`SocketService::on 'keys_exchanged' keyschanged=${null===(n=t.state.keyExchange)||void 0===n?void 0:n.areKeysExchanged()}`),t.emit(e.EventType.KEYS_EXCHANGED,{keysExchanged:null===(r=t.state.keyExchange)||void 0===r?void 0:r.areKeysExchanged(),isOriginator:t.state.isOriginator});const i={keyInfo:t.getKeyInfo()};t.emit(e.EventType.SERVICE_STATUS,i)}}}];function Gw(t,n){t.state.debug&&console.debug(`SocketService::${t.state.context}::setupChannelListener setting socket listeners for channel ${n}...`);const{socket:r}=t.state,{keyExchange:i}=t.state;t.state.setupChannelListeners&&console.warn(`SocketService::${t.state.context}::setupChannelListener socket listeners already set up for channel ${n}`),r&&t.state.isOriginator&&(t.state.debug&&(null==r||r.io.on("error",(e=>{console.debug(`SocketService::${t.state.context}::setupChannelListener socket event=error`,e)})),null==r||r.io.on("reconnect",(e=>{console.debug(`SocketService::${t.state.context}::setupChannelListener socket event=reconnect`,e)})),null==r||r.io.on("reconnect_error",(e=>{console.debug(`SocketService::${t.state.context}::setupChannelListener socket event=reconnect_error`,e)})),null==r||r.io.on("reconnect_failed",(()=>{console.debug(`SocketService::${t.state.context}::setupChannelListener socket event=reconnect_failed`)})),null==r||r.io.on("ping",(()=>{console.debug(`SocketService::${t.state.context}::setupChannelListener socket event=ping`)}))),null==r||r.on("disconnect",(n=>(console.log(`MetaMaskSDK socket disconnected '${n}' begin recovery...`),function(t){return n=>{t.state.debug&&console.debug(`SocketService::on 'disconnect' manualDisconnect=${t.state.manualDisconnect}`,n),t.state.manualDisconnect||(t.emit(e.EventType.SOCKET_DISCONNECTED),function(e){"undefined"!=typeof window&&"undefined"!=typeof document&&(e.state.debug&&console.debug(`SocketService::checkFocus hasFocus=${document.hasFocus()}`,e),document.hasFocus()?Hw(e).then((t=>{e.state.debug&&console.debug(`SocketService::checkFocus reconnectSocket success=${t}`,e)})).catch((e=>{console.error("SocketService::checkFocus Error reconnecting socket",e)})):window.addEventListener("focus",(()=>{Hw(e).catch((e=>{console.error("SocketService::checkFocus Error reconnecting socket",e)}))}),{once:!0}))}(t))}}(t)(n))))),$w.forEach((({event:e,handler:i})=>{const o=`${e}-${n}`;null==r||r.on(o,i(t,n))})),Yw.forEach((({event:e,handler:n})=>{null==i||i.on(e,n(t))})),t.state.setupChannelListeners=!0}var Qw,Zw,Xw;function Jw(t,n){var r,i;if(!t.state.channelId)throw new Error("Create a channel first");t.state.debug&&console.debug(`SocketService::${t.state.context}::sendMessage() areKeysExchanged=${null===(r=t.state.keyExchange)||void 0===r?void 0:r.areKeysExchanged()}`,n),(null===(i=null==n?void 0:n.type)||void 0===i?void 0:i.startsWith("key_handshake"))?function(t,n){var r;t.state.debug&&console.debug(`SocketService::${t.state.context}::sendMessage()`,n),null===(r=t.state.socket)||void 0===r||r.emit(e.EventType.MESSAGE,{id:t.state.channelId,context:t.state.context,message:n})}(t,n):(function(e,t){var n;if(!(null===(n=e.state.keyExchange)||void 0===n?void 0:n.areKeysExchanged()))throw e.state.debug&&console.debug(`SocketService::${e.state.context}::sendMessage() ERROR keys not exchanged`,t),new Error("Keys not exchanged BBB")}(t,n),function(t,n){var r;const i=null!==(r=null==n?void 0:n.method)&&void 0!==r?r:"",o=null==n?void 0:n.id;t.state.isOriginator&&o&&(t.state.rpcMethodTracker[o]={id:o,timestamp:Date.now(),method:i},t.emit(e.EventType.RPC_UPDATE,t.state.rpcMethodTracker[o]))}(t,n),function(t,n){var r,i;const o=null===(r=t.state.keyExchange)||void 0===r?void 0:r.encryptMessage(JSON.stringify(n)),a={id:t.state.channelId,context:t.state.context,message:o,plaintext:t.state.hasPlaintext?JSON.stringify(n):void 0};t.state.debug&&console.debug(`SocketService::${t.state.context}::sendMessage()`,a),n.type===e.MessageType.TERMINATE&&(t.state.manualDisconnect=!0),null===(i=t.state.socket)||void 0===i||i.emit(e.EventType.MESSAGE,a)}(t,n),function(t,n){var r;return dn(this,void 0,void 0,(function*(){const i=null==n?void 0:n.id,o=null!==(r=null==n?void 0:n.method)&&void 0!==r?r:"";if(t.state.isOriginator&&i)try{const r=Kw(i,t.state.rpcMethodTracker,200).then((e=>({type:Qw.RPC_CHECK,result:e}))),a=(()=>dn(this,void 0,void 0,(function*(){const e=yield(({rpcId:e,instance:t})=>dn(void 0,void 0,void 0,(function*(){for(;t.state.lastRpcId===e||void 0===t.state.lastRpcId;)yield Vw(200);return t.state.lastRpcId})))({instance:t,rpcId:i}),n=yield Kw(e,t.state.rpcMethodTracker,200);return{type:Qw.SKIPPED_RPC,result:n}})))(),s=yield Promise.race([r,a]);if(s.type===Qw.RPC_CHECK){const e=s.result;t.state.debug&&console.debug(`SocketService::waitForRpc id=${n.id} ${o} ( ${e.elapsedTime} ms)`,e.result)}else{if(s.type!==Qw.SKIPPED_RPC)throw new Error(`Error handling RPC replies for ${i}`);{const{result:n}=s;console.warn(`[handleRpcReplies] RPC METHOD HAS BEEN SKIPPED rpcid=${i} method=${o}`,n);const r=Object.assign(Object.assign({},t.state.rpcMethodTracker[i]),{error:new Error("SDK_CONNECTION_ISSUE")});t.emit(e.EventType.RPC_UPDATE,r);const a={data:Object.assign(Object.assign({},r),{jsonrpc:"2.0"}),name:"metamask-provider"};t.emit(e.EventType.MESSAGE,{message:a})}}}catch(e){throw console.warn(`[handleRpcReplies] Error rpcId=${n.id} ${o}`,e),e}}))}(t,n).catch((e=>{console.warn("Error handleRpcReplies",e)})))}e.CommunicationLayerPreference=void 0,e.PlatformType=void 0,function(e){e.RPC_CHECK="rpcCheck",e.SKIPPED_RPC="skippedRpc"}(Qw||(Qw={}));class eA extends N.EventEmitter2{constructor({otherPublicKey:e,reconnect:t,communicationLayerPreference:n,transports:r,communicationServerUrl:i,context:o,ecies:a,logging:s}){super(),this.state={clientsConnected:!1,clientsPaused:!1,manualDisconnect:!1,lastRpcId:void 0,rpcMethodTracker:{},hasPlaintext:!1,communicationServerUrl:""},this.state.resumed=t,this.state.context=o,this.state.communicationLayerPreference=n,this.state.debug=!0===(null==s?void 0:s.serviceLayer),this.state.communicationServerUrl=i,this.state.hasPlaintext=this.state.communicationServerUrl!==Dw&&!0===(null==s?void 0:s.plaintext);const u={autoConnect:!1,transports:Bw};r&&(u.transports=r),this.state.debug&&console.debug(`SocketService::constructor() Socket IO url: ${this.state.communicationServerUrl}`),this.state.socket=cn(i,u);const l={communicationLayer:this,otherPublicKey:e,sendPublicKey:!1,context:this.state.context,ecies:a,logging:s};this.state.keyExchange=new Ww(l)}resetKeys(){return this.state.debug&&console.debug("SocketService::resetKeys()"),void(null===(e=this.state.keyExchange)||void 0===e||e.resetKeys());var e}createChannel(){return function(t){var n,r,i,o;t.state.debug&&console.debug(`SocketService::${t.state.context}::createChannel()`),(null===(n=t.state.socket)||void 0===n?void 0:n.connected)||null===(r=t.state.socket)||void 0===r||r.connect(),t.state.manualDisconnect=!1,t.state.isOriginator=!0;const a=q();return t.state.channelId=a,Gw(t,a),null===(i=t.state.socket)||void 0===i||i.emit(e.EventType.JOIN_CHANNEL,a,`${t.state.context}createChannel`),{channelId:a,pubKey:(null===(o=t.state.keyExchange)||void 0===o?void 0:o.getMyPublicKey())||""}}(this)}connectToChannel({channelId:t,isOriginator:n=!1,withKeyExchange:r=!1}){return function({options:t,instance:n}){var r,i,o,a;const{channelId:s,withKeyExchange:u,isOriginator:l}=t;if(n.state.debug&&console.debug(`SocketService::${n.state.context}::connectToChannel() channelId=${s} isOriginator=${l}`,null===(r=n.state.keyExchange)||void 0===r?void 0:r.toString()),null===(i=n.state.socket)||void 0===i?void 0:i.connected)throw new Error("socket already connected");n.state.manualDisconnect=!1,null===(o=n.state.socket)||void 0===o||o.connect(),n.state.withKeyExchange=u,n.state.isOriginator=l,n.state.channelId=s,Gw(n,s),null===(a=n.state.socket)||void 0===a||a.emit(e.EventType.JOIN_CHANNEL,s,`${n.state.context}_connectToChannel`)}({options:{channelId:t,isOriginator:n,withKeyExchange:r},instance:this})}getKeyInfo(){return this.state.keyExchange.getKeyInfo()}keyCheck(){var t,n;null===(n=(t=this).state.socket)||void 0===n||n.emit(e.EventType.MESSAGE,{id:t.state.channelId,context:t.state.context,message:{type:qw.KEY_HANDSHAKE_CHECK,pubkey:t.getKeyInfo().ecies.otherPubKey}})}getKeyExchange(){return this.state.keyExchange}sendMessage(e){return Jw(this,e)}ping(){return(t=this).state.debug&&console.debug(`SocketService::${t.state.context}::ping() originator=${t.state.isOriginator} keysExchanged=${null===(n=t.state.keyExchange)||void 0===n?void 0:n.areKeysExchanged()}`),t.state.isOriginator&&((null===(r=t.state.keyExchange)||void 0===r?void 0:r.areKeysExchanged())?(console.warn(`SocketService::${t.state.context}::ping() sending READY message`),t.sendMessage({type:e.MessageType.READY})):(console.warn(`SocketService::${t.state.context}::ping() starting key exchange`),null===(i=t.state.keyExchange)||void 0===i||i.start({isOriginator:null!==(o=t.state.isOriginator)&&void 0!==o&&o}))),void(null===(a=t.state.socket)||void 0===a||a.emit(e.EventType.MESSAGE,{id:t.state.channelId,context:t.state.context,message:{type:e.MessageType.PING}}));var t,n,r,i,o,a}pause(){return(t=this).state.debug&&console.debug(`SocketService::${t.state.context}::pause()`),t.state.manualDisconnect=!0,(null===(n=t.state.keyExchange)||void 0===n?void 0:n.areKeysExchanged())&&t.sendMessage({type:e.MessageType.PAUSE}),void(null===(r=t.state.socket)||void 0===r||r.disconnect());var t,n,r}isConnected(){var e;return null===(e=this.state.socket)||void 0===e?void 0:e.connected}resume(){return(t=this).state.debug&&console.debug(`SocketService::${t.state.context}::resume() connected=${null===(n=t.state.socket)||void 0===n?void 0:n.connected} manualDisconnect=${t.state.manualDisconnect} resumed=${t.state.resumed} keysExchanged=${null===(r=t.state.keyExchange)||void 0===r?void 0:r.areKeysExchanged()}`),(null===(i=t.state.socket)||void 0===i?void 0:i.connected)?t.state.debug&&console.debug("SocketService::resume() already connected."):(null===(o=t.state.socket)||void 0===o||o.connect(),t.state.debug&&console.debug(`SocketService::resume() after connecting socket --\x3e connected=${null===(a=t.state.socket)||void 0===a?void 0:a.connected}`),null===(s=t.state.socket)||void 0===s||s.emit(e.EventType.JOIN_CHANNEL,t.state.channelId,`${t.state.context}_resume`)),(null===(u=t.state.keyExchange)||void 0===u?void 0:u.areKeysExchanged())?t.state.isOriginator||t.sendMessage({type:e.MessageType.READY}):t.state.isOriginator||null===(l=t.state.keyExchange)||void 0===l||l.start({isOriginator:null!==(c=t.state.isOriginator)&&void 0!==c&&c}),t.state.manualDisconnect=!1,void(t.state.resumed=!0);var t,n,r,i,o,a,s,u,l,c}getRPCMethodTracker(){return this.state.rpcMethodTracker}disconnect(e){return function(e,t){var n,r;e.state.debug&&console.debug(`SocketService::${e.state.context}::disconnect()`,t),(null==t?void 0:t.terminate)&&(e.state.channelId=t.channelId,null===(n=e.state.keyExchange)||void 0===n||n.clean()),e.state.rpcMethodTracker={},e.state.manualDisconnect=!0,null===(r=e.state.socket)||void 0===r||r.disconnect()}(this,e)}}function tA(t){return()=>dn(this,void 0,void 0,(function*(){var n,r,i;const{state:o}=t;if(o.authorized)return;yield(()=>dn(this,void 0,void 0,(function*(){for(;!o.walletInfo;)yield Vw(500)})))();const a="7.3".localeCompare((null===(n=o.walletInfo)||void 0===n?void 0:n.version)||"");if(o.debug&&console.debug(`RemoteCommunication HACK 'authorized' version=${null===(r=o.walletInfo)||void 0===r?void 0:r.version} compareValue=${a}`),1!==a)return;const s=o.platformType===e.PlatformType.MobileWeb||o.platformType===e.PlatformType.ReactNative||o.platformType===e.PlatformType.MetaMaskMobileWebview;o.debug&&console.debug(`RemoteCommunication HACK 'authorized' platform=${o.platformType} secure=${s} channel=${o.channelId} walletVersion=${null===(i=o.walletInfo)||void 0===i?void 0:i.version}`),s&&(o.authorized=!0,t.emit(e.EventType.AUTHORIZED))}))}function nA(t){return n=>{const{state:r}=t;r.debug&&console.debug(`RemoteCommunication::${r.context}::on 'channel_created' channelId=${n}`),t.emit(e.EventType.CHANNEL_CREATED,n)}}function rA(t,n){return()=>{var r,i,o,a;const{state:s}=t;if(s.debug&&console.debug(`RemoteCommunication::on 'clients_connected' channel=${s.channelId} keysExchanged=${null===(i=null===(r=s.communicationLayer)||void 0===r?void 0:r.getKeyInfo())||void 0===i?void 0:i.keysExchanged}`),s.analytics){const e=s.isOriginator?Zw.REQUEST:Zw.REQUEST_MOBILE;fn(Object.assign(Object.assign({id:null!==(o=s.channelId)&&void 0!==o?o:"",event:s.reconnection?Zw.RECONNECT:e},s.originatorInfo),{commLayer:n,sdkVersion:s.sdkVersion,walletVersion:null===(a=s.walletInfo)||void 0===a?void 0:a.version,commLayerVersion:Nw}),s.communicationServerUrl).catch((e=>{console.error("Cannot send analytics",e)}))}s.clientsConnected=!0,s.originatorInfoSent=!1,t.emit(e.EventType.CLIENTS_CONNECTED)}}function iA(t,n){return r=>{var i;const{state:o}=t;o.debug&&console.debug(`RemoteCommunication::${o.context}]::on 'clients_disconnected' channelId=${r}`),o.clientsConnected=!1,t.emit(e.EventType.CLIENTS_DISCONNECTED,o.channelId),t.setConnectionStatus(e.ConnectionStatus.DISCONNECTED),o.ready=!1,o.authorized=!1,o.analytics&&o.channelId&&fn({id:o.channelId,event:Zw.DISCONNECTED,sdkVersion:o.sdkVersion,commLayer:n,commLayerVersion:Nw,walletVersion:null===(i=o.walletInfo)||void 0===i?void 0:i.version},o.communicationServerUrl).catch((e=>{console.error("Cannot send analytics",e)}))}}function oA(t){return n=>{var r;const{state:i}=t;if(i.debug&&console.debug(`RemoteCommunication::${i.context}::on 'clients_waiting' numberUsers=${n} ready=${i.ready} autoStarted=${i.originatorConnectStarted}`),t.setConnectionStatus(e.ConnectionStatus.WAITING),t.emit(e.EventType.CLIENTS_WAITING,n),i.originatorConnectStarted){i.debug&&console.debug(`RemoteCommunication::on 'clients_waiting' watch autoStarted=${i.originatorConnectStarted} timeout`,i.autoConnectOptions);const n=(null===(r=i.autoConnectOptions)||void 0===r?void 0:r.timeout)||3e3,o=setTimeout((()=>{i.debug&&console.debug(`RemoteCommunication::on setTimeout(${n}) terminate channelConfig`,i.autoConnectOptions),i.originatorConnectStarted=!1,i.ready||t.setConnectionStatus(e.ConnectionStatus.TIMEOUT),clearTimeout(o)}),n)}}}function aA(t,n){return r=>{var i,o,a,s,u;const{state:l}=t;l.debug&&console.debug(`RemoteCommunication::${l.context}::on commLayer.'keys_exchanged' channel=${l.channelId}`,r),(null===(o=null===(i=l.communicationLayer)||void 0===i?void 0:i.getKeyInfo())||void 0===o?void 0:o.keysExchanged)&&t.setConnectionStatus(e.ConnectionStatus.LINKED),function(e,t){var n,r,i,o;const{state:a}=e;a.debug&&console.debug(`RemoteCommunication::setLastActiveDate() channel=${a.channelId}`,t);const s={channelId:null!==(n=a.channelId)&&void 0!==n?n:"",validUntil:null!==(i=null===(r=a.channelConfig)||void 0===r?void 0:r.validUntil)&&void 0!==i?i:0,lastActive:t.getTime()};null===(o=a.storageManager)||void 0===o||o.persistChannelConfig(s)}(t,new Date),l.analytics&&l.channelId&&fn({id:l.channelId,event:r.isOriginator?Zw.CONNECTED:Zw.CONNECTED_MOBILE,sdkVersion:l.sdkVersion,commLayer:n,commLayerVersion:Nw,walletVersion:null===(a=l.walletInfo)||void 0===a?void 0:a.version},l.communicationServerUrl).catch((e=>{console.error("Cannot send analytics",e)})),l.isOriginator=r.isOriginator,r.isOriginator||(null===(s=l.communicationLayer)||void 0===s||s.sendMessage({type:e.MessageType.READY}),l.ready=!0,l.paused=!1),r.isOriginator&&!l.originatorInfoSent&&(null===(u=l.communicationLayer)||void 0===u||u.sendMessage({type:e.MessageType.ORIGINATOR_INFO,originatorInfo:l.originatorInfo,originator:l.originatorInfo}),l.originatorInfoSent=!0)}}function sA(t){return n=>{let r=n;n.message&&(r=r.message),function(t,n){const{state:r}=n;if(r.debug&&console.debug(`RemoteCommunication::${r.context}::on 'message' typeof=${typeof t}`,t),n.state.ready=!0,r.isOriginator||t.type!==e.MessageType.ORIGINATOR_INFO)if(r.isOriginator&&t.type===e.MessageType.WALLET_INFO)!function(e,t){const{state:n}=e;n.walletInfo=t.walletInfo,n.paused=!1}(n,t);else{if(t.type===e.MessageType.TERMINATE)!function(t){const{state:n}=t;n.isOriginator&&(cA({options:{terminate:!0,sendMessage:!1},instance:t}),console.debug(),t.emit(e.EventType.TERMINATE))}(n);else if(t.type===e.MessageType.PAUSE)!function(t){const{state:n}=t;n.paused=!0,t.setConnectionStatus(e.ConnectionStatus.PAUSED)}(n);else if(t.type===e.MessageType.READY&&r.isOriginator)!function(t){const{state:n}=t;t.setConnectionStatus(e.ConnectionStatus.LINKED);const r=n.paused;n.paused=!1,t.emit(e.EventType.CLIENTS_READY,{isOriginator:n.isOriginator,walletInfo:n.walletInfo}),r&&(n.authorized=!0,t.emit(e.EventType.AUTHORIZED))}(n);else{if(t.type===e.MessageType.OTP&&r.isOriginator)return void function(t,n){var r;const{state:i}=t;t.emit(e.EventType.OTP,n.otpAnswer),1==="6.6".localeCompare((null===(r=i.walletInfo)||void 0===r?void 0:r.version)||"")&&(console.warn("RemoteCommunication::on 'otp' -- backward compatibility <6.6 -- triger eth_requestAccounts"),t.emit(e.EventType.SDK_RPC_CALL,{method:Uw.ETH_REQUESTACCOUNTS,params:[]}))}(n,t);t.type===e.MessageType.AUTHORIZED&&r.isOriginator&&function(t){const{state:n}=t;n.authorized=!0,t.emit(e.EventType.AUTHORIZED)}(n)}n.emit(e.EventType.MESSAGE,t)}else!function(t,n){var r;const{state:i}=t;null===(r=i.communicationLayer)||void 0===r||r.sendMessage({type:e.MessageType.WALLET_INFO,walletInfo:i.walletInfo}),i.originatorInfo=n.originatorInfo||n.originator,t.emit(e.EventType.CLIENTS_READY,{isOriginator:i.isOriginator,originatorInfo:i.originatorInfo}),i.paused=!1}(n,t)}(r,t)}}function uA(e){return()=>{const{state:t}=e;t.debug&&console.debug("RemoteCommunication::on 'socket_reconnect' -- reset key exchange status / set ready to false"),t.ready=!1,t.authorized=!1,zw(t),e.emitServiceStatusEvent()}}function lA(e){return()=>{const{state:t}=e;t.debug&&console.debug("RemoteCommunication::on 'socket_Disconnected' set ready to false"),t.ready=!1}}function cA({options:t,instance:n}){var r,i,o,a,s,u;const{state:l}=n;l.debug&&console.debug(`RemoteCommunication::disconnect() channel=${l.channelId}`,t),l.ready=!1,l.paused=!1,(null==t?void 0:t.terminate)?(null===(r=l.storageManager)||void 0===r||r.terminate(null!==(i=l.channelId)&&void 0!==i?i:""),(null===(o=l.communicationLayer)||void 0===o?void 0:o.getKeyInfo().keysExchanged)&&(null==t?void 0:t.sendMessage)&&(null===(a=l.communicationLayer)||void 0===a||a.sendMessage({type:e.MessageType.TERMINATE})),l.channelId=q(),t.channelId=l.channelId,l.channelConfig=void 0,l.originatorConnectStarted=!1,null===(s=l.communicationLayer)||void 0===s||s.disconnect(t),n.setConnectionStatus(e.ConnectionStatus.TERMINATED)):(null===(u=l.communicationLayer)||void 0===u||u.disconnect(t),n.setConnectionStatus(e.ConnectionStatus.DISCONNECTED))}!function(e){e.SOCKET="socket"}(e.CommunicationLayerPreference||(e.CommunicationLayerPreference={})),function(e){e.NonBrowser="nodejs",e.MetaMaskMobileWebview="in-app-browser",e.DesktopWeb="web-desktop",e.MobileWeb="web-mobile",e.ReactNative="react-native"}(e.PlatformType||(e.PlatformType={})),function(e){e.REQUEST="sdk_connect_request_started",e.REQUEST_MOBILE="sdk_connect_request_started_mobile",e.RECONNECT="sdk_reconnect_request_started",e.CONNECTED="sdk_connection_established",e.CONNECTED_MOBILE="sdk_connection_established_mobile",e.AUTHORIZED="sdk_connection_authorized",e.REJECTED="sdk_connection_rejected",e.TERMINATED="sdk_connection_terminated",e.DISCONNECTED="sdk_disconnected",e.SDK_USE_EXTENSION="sdk_use_extension",e.SDK_EXTENSION_UTILIZED="sdk_extension_utilized",e.SDK_USE_INAPP_BROWSER="sdk_use_inapp_browser"}(Zw||(Zw={}));class dA extends N.EventEmitter2{constructor({platformType:t,communicationLayerPreference:n,otherPublicKey:r,reconnect:i,walletInfo:o,dappMetadata:a,transports:s,context:u,ecies:l,analytics:c=!1,storage:d,sdkVersion:f,communicationServerUrl:h=Dw,logging:p,autoConnect:m={timeout:3e3}}){super(),this.state={ready:!1,authorized:!1,isOriginator:!1,paused:!1,platformType:"metamask-mobile",analytics:!1,reconnection:!1,originatorInfoSent:!1,communicationServerUrl:Dw,context:"",clientsConnected:!1,sessionDuration:jw,originatorConnectStarted:!1,debug:!1,_connectionStatus:e.ConnectionStatus.DISCONNECTED},this.state.otherPublicKey=r,this.state.dappMetadata=a,this.state.walletInfo=o,this.state.transports=s,this.state.platformType=t,this.state.analytics=c,this.state.isOriginator=!r,this.state.communicationServerUrl=h,this.state.context=u,this.state.sdkVersion=f,this.setMaxListeners(50),this.setConnectionStatus(e.ConnectionStatus.DISCONNECTED),(null==d?void 0:d.duration)&&(this.state.sessionDuration=jw),this.state.storageOptions=d,this.state.autoConnectOptions=m,this.state.debug=!0===(null==p?void 0:p.remoteLayer),this.state.logging=p,(null==d?void 0:d.storageManager)&&(this.state.storageManager=d.storageManager),this.initCommunicationLayer({communicationLayerPreference:n,otherPublicKey:r,reconnect:i,ecies:l,communicationServerUrl:h}),this.emitServiceStatusEvent()}initCommunicationLayer({communicationLayerPreference:t,otherPublicKey:n,reconnect:r,ecies:i,communicationServerUrl:o=Dw}){return function({communicationLayerPreference:t,otherPublicKey:n,reconnect:r,ecies:i,communicationServerUrl:o=Dw,instance:a}){var s,u,l,c,d;const{state:f}=a;if(t!==e.CommunicationLayerPreference.SOCKET)throw new Error("Invalid communication protocol");f.communicationLayer=new eA({communicationLayerPreference:t,otherPublicKey:n,reconnect:r,transports:f.transports,communicationServerUrl:o,context:f.context,ecies:i,logging:f.logging});let h="undefined"!=typeof document&&document.URL||"",p="undefined"!=typeof document&&document.title||"";(null===(s=f.dappMetadata)||void 0===s?void 0:s.url)&&(h=f.dappMetadata.url),(null===(u=f.dappMetadata)||void 0===u?void 0:u.name)&&(p=f.dappMetadata.name);const m={url:h,title:p,source:null===(l=f.dappMetadata)||void 0===l?void 0:l.source,icon:(null===(c=f.dappMetadata)||void 0===c?void 0:c.iconUrl)||(null===(d=f.dappMetadata)||void 0===d?void 0:d.base64Icon),platform:f.platformType,apiVersion:Nw};f.originatorInfo=m;const g={[e.EventType.AUTHORIZED]:tA(a),[e.EventType.MESSAGE]:sA(a),[e.EventType.CLIENTS_CONNECTED]:rA(a,t),[e.EventType.KEYS_EXCHANGED]:aA(a,t),[e.EventType.SOCKET_DISCONNECTED]:lA(a),[e.EventType.SOCKET_RECONNECT]:uA(a),[e.EventType.CLIENTS_DISCONNECTED]:iA(a,t),[e.EventType.KEY_INFO]:()=>{a.emitServiceStatusEvent()},[e.EventType.CHANNEL_CREATED]:nA(a),[e.EventType.CLIENTS_WAITING]:oA(a),[e.EventType.RPC_UPDATE]:t=>{a.emit(e.EventType.RPC_UPDATE,t)}};for(const[e,v]of Object.entries(g))try{f.communicationLayer.on(e,v)}catch(n){console.error(`Error registering handler for ${e}:`,n)}}({communicationLayerPreference:t,otherPublicKey:n,reconnect:r,ecies:i,communicationServerUrl:o,instance:this})}originatorSessionConnect(){return dn(this,void 0,void 0,(function*(){const e=yield function(e){var t,n,r;return dn(this,void 0,void 0,(function*(){const{state:i}=e;if(!i.storageManager)return void(i.debug&&console.debug("RemoteCommunication::connect() no storage manager defined - skip"));const o=yield i.storageManager.getPersistedChannelConfig(null!==(t=i.channelId)&&void 0!==t?t:"");if(i.debug&&console.debug(`RemoteCommunication::connect() autoStarted=${i.originatorConnectStarted} channelConfig`,o),null===(n=i.communicationLayer)||void 0===n?void 0:n.isConnected())return i.debug&&console.debug("RemoteCommunication::connect() socket already connected - skip"),o;if(o){if(o.validUntil>Date.now())return i.channelConfig=o,i.originatorConnectStarted=!0,i.channelId=null==o?void 0:o.channelId,i.reconnection=!0,null===(r=i.communicationLayer)||void 0===r||r.connectToChannel({channelId:o.channelId,isOriginator:!0}),o;i.debug&&console.log("RemoteCommunication::autoConnect Session has expired")}i.originatorConnectStarted=!1}))}(this);return e}))}generateChannelIdConnect(){return dn(this,void 0,void 0,(function*(){return function(e){var t,n,r,i,o;if(!e.communicationLayer)throw new Error("communication layer not initialized");if(e.ready)throw new Error("Channel already connected");if(e.channelId&&(null===(t=e.communicationLayer)||void 0===t?void 0:t.isConnected()))return console.warn("Channel already exists -- interrupt generateChannelId",e.channelConfig),e.channelConfig={channelId:e.channelId,validUntil:Date.now()+e.sessionDuration},null===(n=e.storageManager)||void 0===n||n.persistChannelConfig(e.channelConfig),{channelId:e.channelId,pubKey:null===(i=null===(r=e.communicationLayer)||void 0===r?void 0:r.getKeyInfo())||void 0===i?void 0:i.ecies.public};e.debug&&console.debug("RemoteCommunication::generateChannelId()"),zw(e);const a=e.communicationLayer.createChannel();e.debug&&console.debug("RemoteCommunication::generateChannelId() channel created",a);const s={channelId:a.channelId,validUntil:Date.now()+e.sessionDuration};return e.channelId=a.channelId,e.channelConfig=s,null===(o=e.storageManager)||void 0===o||o.persistChannelConfig(s),{channelId:e.channelId,pubKey:a.pubKey}}(this.state)}))}clean(){return zw(this.state)}connectToChannel(e,t){return function({channelId:e,withKeyExchange:t,state:n}){var r,i,o;if(!U(e))throw console.debug(`RemoteCommunication::${n.context}::connectToChannel() invalid channel channelId=${e}`),new Error(`Invalid channel ${e}`);if(n.debug&&console.debug(`RemoteCommunication::${n.context}::connectToChannel() channelId=${e}`),null===(r=n.communicationLayer)||void 0===r?void 0:r.isConnected())return void console.debug(`RemoteCommunication::${n.context}::connectToChannel() already connected - interrup connection.`);n.channelId=e,null===(i=n.communicationLayer)||void 0===i||i.connectToChannel({channelId:e,withKeyExchange:t});const a={channelId:e,validUntil:Date.now()+n.sessionDuration};n.channelConfig=a,null===(o=n.storageManager)||void 0===o||o.persistChannelConfig(a)}({channelId:e,withKeyExchange:t,state:this.state})}sendMessage(t){return function(t,n){var r,i;return dn(this,void 0,void 0,(function*(){const{state:o}=t;o.debug&&console.log(`RemoteCommunication::${o.context}::sendMessage paused=${o.paused} ready=${o.ready} authorized=${o.authorized} socket=${null===(r=o.communicationLayer)||void 0===r?void 0:r.isConnected()} clientsConnected=${o.clientsConnected} status=${o._connectionStatus}`,n),!o.paused&&o.ready&&(null===(i=o.communicationLayer)||void 0===i?void 0:i.isConnected())&&o.clientsConnected||(o.debug&&console.log(`RemoteCommunication::${o.context}::sendMessage SKIP message waiting for MM mobile readiness.`),yield new Promise((n=>{t.once(e.EventType.CLIENTS_READY,n)})),o.debug&&console.log(`RemoteCommunication::${o.context}::sendMessage AFTER SKIP / READY -- sending pending message`));try{yield function(t,n){return dn(this,void 0,void 0,(function*(){return new Promise((r=>{var i,o,a,s;const{state:u}=t;if(u.debug&&console.log(`RemoteCommunication::${u.context}::sendMessage::handleAuthorization ready=${u.ready} authorized=${u.authorized} method=${n.method}`),1==="7.3".localeCompare((null===(i=u.walletInfo)||void 0===i?void 0:i.version)||""))return u.debug&&console.debug(`compatibility hack wallet version > ${null===(o=u.walletInfo)||void 0===o?void 0:o.version}`),null===(a=u.communicationLayer)||void 0===a||a.sendMessage(n),void r();!u.isOriginator||u.authorized?(null===(s=u.communicationLayer)||void 0===s||s.sendMessage(n),r()):t.once(e.EventType.AUTHORIZED,(()=>{var e;u.debug&&console.log(`RemoteCommunication::${u.context}::sendMessage AFTER SKIP / AUTHORIZED -- sending pending message`),null===(e=u.communicationLayer)||void 0===e||e.sendMessage(n),r()}))}))}))}(t,n)}catch(e){throw console.error(`RemoteCommunication::${o.context}::sendMessage ERROR`,e),e}}))}(this,t)}testStorage(){return dn(this,void 0,void 0,(function*(){return function(e){var t,n;return dn(this,void 0,void 0,(function*(){const r=yield null===(t=e.storageManager)||void 0===t?void 0:t.getPersistedChannelConfig(null!==(n=e.channelId)&&void 0!==n?n:"");console.debug("RemoteCommunication.testStorage() res",r)}))}(this.state)}))}getChannelConfig(){return this.state.channelConfig}isReady(){return this.state.ready}isConnected(){var e;return null===(e=this.state.communicationLayer)||void 0===e?void 0:e.isConnected()}isAuthorized(){return this.state.authorized}isPaused(){return this.state.paused}getCommunicationLayer(){return this.state.communicationLayer}ping(){var e;this.state.debug&&console.debug(`RemoteCommunication::ping() channel=${this.state.channelId}`),null===(e=this.state.communicationLayer)||void 0===e||e.ping()}keyCheck(){var e;this.state.debug&&console.debug(`RemoteCommunication::keyCheck() channel=${this.state.channelId}`),null===(e=this.state.communicationLayer)||void 0===e||e.keyCheck()}setConnectionStatus(t){this.state._connectionStatus!==t&&(this.state._connectionStatus=t,this.emit(e.EventType.CONNECTION_STATUS,t),this.emitServiceStatusEvent())}emitServiceStatusEvent(){this.emit(e.EventType.SERVICE_STATUS,this.getServiceStatus())}getConnectionStatus(){return this.state._connectionStatus}getServiceStatus(){return{originatorInfo:this.state.originatorInfo,keyInfo:this.getKeyInfo(),connectionStatus:this.state._connectionStatus,channelConfig:this.state.channelConfig,channelId:this.state.channelId}}getKeyInfo(){var e;return null===(e=this.state.communicationLayer)||void 0===e?void 0:e.getKeyInfo()}resetKeys(){var e;null===(e=this.state.communicationLayer)||void 0===e||e.resetKeys()}setOtherPublicKey(e){var t;const n=null===(t=this.state.communicationLayer)||void 0===t?void 0:t.getKeyExchange();if(!n)throw new Error("KeyExchange is not initialized.");n.getOtherPublicKey()!==e&&n.setOtherPublicKey(e)}pause(){var t;this.state.debug&&console.debug(`RemoteCommunication::pause() channel=${this.state.channelId}`),null===(t=this.state.communicationLayer)||void 0===t||t.pause(),this.setConnectionStatus(e.ConnectionStatus.PAUSED)}getVersion(){return Nw}resume(){return function(t){var n;const{state:r}=t;r.debug&&console.debug(`RemoteCommunication::resume() channel=${r.channelId}`),null===(n=r.communicationLayer)||void 0===n||n.resume(),t.setConnectionStatus(e.ConnectionStatus.LINKED)}(this)}getChannelId(){return this.state.channelId}getRPCMethodTracker(){var e;return null===(e=this.state.communicationLayer)||void 0===e?void 0:e.getRPCMethodTracker()}disconnect(e){return cA({options:e,instance:this})}}function fA(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{u(r.next(e))}catch(e){o(e)}}function s(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){e.done?i(e.value):function(e){return e instanceof n?e:new n((function(t){t(e)}))}(e.value).then(a,s)}u((r=r.apply(e,t||[])).next())}))}function hA(e,t,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(e):r?r.value:t.get(e)}function pA(e,t,n,r,i){if("m"===r)throw new TypeError("Private method is not writable");if("a"===r&&!i)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?i.call(e,n):i?i.value=n:t.set(e,n),n}!function(e){e.RENEW="renew",e.LINK="link"}(Xw||(Xw={})),"function"==typeof SuppressedError&&SuppressedError;var mA={},gA={},vA={};function yA(){}function bA(){bA.init.call(this)}function wA(e){return void 0===e._maxListeners?bA.defaultMaxListeners:e._maxListeners}function AA(e,t,n,r){var i,o,a;if("function"!=typeof n)throw new TypeError('"listener" argument must be a function');if((o=e._events)?(o.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),o=e._events),a=o[t]):(o=e._events=new yA,e._eventsCount=0),a){if("function"==typeof a?a=o[t]=r?[n,a]:[a,n]:r?a.unshift(n):a.push(n),!a.warned&&(i=wA(e))&&i>0&&a.length>i){a.warned=!0;var s=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+t+" listeners added. Use emitter.setMaxListeners() to increase limit");s.name="MaxListenersExceededWarning",s.emitter=e,s.type=t,s.count=a.length,function(e){"function"==typeof console.warn?console.warn(e):console.log(e)}(s)}}else a=o[t]=n,++e._eventsCount;return e}function _A(e,t,n){var r=!1;function i(){e.removeListener(t,i),r||(r=!0,n.apply(e,arguments))}return i.listener=n,i}function EA(e){var t=this._events;if(t){var n=t[e];if("function"==typeof n)return 1;if(n)return n.length}return 0}function SA(e,t){for(var n=new Array(t);t--;)n[t]=e[t];return n}yA.prototype=Object.create(null),bA.EventEmitter=bA,bA.usingDomains=!1,bA.prototype.domain=void 0,bA.prototype._events=void 0,bA.prototype._maxListeners=void 0,bA.defaultMaxListeners=10,bA.init=function(){this.domain=null,bA.usingDomains&&(void 0).active,this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=new yA,this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},bA.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||isNaN(e))throw new TypeError('"n" argument must be a positive number');return this._maxListeners=e,this},bA.prototype.getMaxListeners=function(){return wA(this)},bA.prototype.emit=function(e){var t,n,r,i,o,a,s,u="error"===e;if(a=this._events)u=u&&null==a.error;else if(!u)return!1;if(s=this.domain,u){if(t=arguments[1],!s){if(t instanceof Error)throw t;var l=new Error('Uncaught, unspecified "error" event. ('+t+")");throw l.context=t,l}return t||(t=new Error('Uncaught, unspecified "error" event')),t.domainEmitter=this,t.domain=s,t.domainThrown=!1,s.emit("error",t),!1}if(!(n=a[e]))return!1;var c="function"==typeof n;switch(r=arguments.length){case 1:!function(e,t,n){if(t)e.call(n);else for(var r=e.length,i=SA(e,r),o=0;o0;)if(n[o]===t||n[o].listener&&n[o].listener===t){a=n[o].listener,i=o;break}if(i<0)return this;if(1===n.length){if(n[0]=void 0,0==--this._eventsCount)return this._events=new yA,this;delete r[e]}else!function(e,t){for(var n=t,r=n+1,i=e.length;r0?Reflect.ownKeys(this._events):[]};var kA=o(Object.freeze({__proto__:null,EventEmitter:bA,default:bA}));Object.defineProperty(vA,"__esModule",{value:!0});const MA=kA;function CA(e,t,n){try{Reflect.apply(e,t,n)}catch(e){setTimeout((()=>{throw e}))}}let xA=class extends MA.EventEmitter{emit(e,...t){let n="error"===e;const r=this._events;if(void 0!==r)n=n&&void 0===r.error;else if(!n)return!1;if(n){let e;if(t.length>0&&([e]=t),e instanceof Error)throw e;const n=new Error("Unhandled error."+(e?` (${e.message})`:""));throw n.context=e,n}const i=r[e];if(void 0===i)return!1;if("function"==typeof i)CA(i,this,t);else{const e=i.length,n=function(e){const t=e.length,n=new Array(t);for(let r=0;ra.depthLimit)return void jA(PA,e,t,i);if(void 0!==a.edgesLimit&&n+1>a.edgesLimit)return void jA(PA,e,t,i);if(r.push(e),Array.isArray(e))for(s=0;st?1:0}function FA(e,t,n,r){void 0===r&&(r=DA());var i,o=qA(e,"",0,[],void 0,0,r)||e;try{i=0===NA.length?JSON.stringify(o,t,n):JSON.stringify(o,WA(t),n)}catch(e){return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;0!==IA.length;){var a=IA.pop();4===a.length?Object.defineProperty(a[0],a[1],a[3]):a[0][a[1]]=a[2]}}return i}function qA(e,t,n,r,i,o,a){var s;if(o+=1,"object"==typeof e&&null!==e){for(s=0;sa.depthLimit)return void jA(PA,e,t,i);if(void 0!==a.edgesLimit&&n+1>a.edgesLimit)return void jA(PA,e,t,i);if(r.push(e),Array.isArray(e))for(s=0;s0)for(var r=0;r=1e3&&e<=4999}(e))throw new Error('"code" must be an integer such that: 1000 <= code <= 4999');super(e,t,n)}};var $A={},YA={};Object.defineProperty(YA,"__esModule",{value:!0}),YA.errorValues=YA.errorCodes=void 0,YA.errorCodes={rpc:{invalidInput:-32e3,resourceNotFound:-32001,resourceUnavailable:-32002,transactionRejected:-32003,methodNotSupported:-32004,limitExceeded:-32005,parse:-32700,invalidRequest:-32600,methodNotFound:-32601,invalidParams:-32602,internal:-32603},provider:{userRejectedRequest:4001,unauthorized:4100,unsupportedMethod:4200,disconnected:4900,chainDisconnected:4901}},YA.errorValues={"-32700":{standard:"JSON RPC 2.0",message:"Invalid JSON was received by the server. An error occurred on the server while parsing the JSON text."},"-32600":{standard:"JSON RPC 2.0",message:"The JSON sent is not a valid Request object."},"-32601":{standard:"JSON RPC 2.0",message:"The method does not exist / is not available."},"-32602":{standard:"JSON RPC 2.0",message:"Invalid method parameter(s)."},"-32603":{standard:"JSON RPC 2.0",message:"Internal JSON-RPC error."},"-32000":{standard:"EIP-1474",message:"Invalid input."},"-32001":{standard:"EIP-1474",message:"Resource not found."},"-32002":{standard:"EIP-1474",message:"Resource unavailable."},"-32003":{standard:"EIP-1474",message:"Transaction rejected."},"-32004":{standard:"EIP-1474",message:"Method not supported."},"-32005":{standard:"EIP-1474",message:"Request limit exceeded."},4001:{standard:"EIP-1193",message:"User rejected the request."},4100:{standard:"EIP-1193",message:"The requested account and/or method has not been authorized by the user."},4200:{standard:"EIP-1193",message:"The requested method is not supported by this Ethereum provider."},4900:{standard:"EIP-1193",message:"The provider is disconnected from all chains."},4901:{standard:"EIP-1193",message:"The provider is disconnected from the specified chain."}},function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.serializeError=e.isValidCode=e.getMessageFromCode=e.JSON_RPC_SERVER_ERROR_MESSAGE=void 0;const t=YA,n=OA,r=t.errorCodes.rpc.internal,i="Unspecified error message. This is a bug, please report it.",o={code:r,message:a(r)};function a(n,r=i){if(Number.isInteger(n)){const r=n.toString();if(c(t.errorValues,r))return t.errorValues[r].message;if(u(n))return e.JSON_RPC_SERVER_ERROR_MESSAGE}return r}function s(e){if(!Number.isInteger(e))return!1;const n=e.toString();return!!t.errorValues[n]||!!u(e)}function u(e){return e>=-32099&&e<=-32e3}function l(e){return e&&"object"==typeof e&&!Array.isArray(e)?Object.assign({},e):e}function c(e,t){return Object.prototype.hasOwnProperty.call(e,t)}e.JSON_RPC_SERVER_ERROR_MESSAGE="Unspecified server error.",e.getMessageFromCode=a,e.isValidCode=s,e.serializeError=function(e,{fallbackError:t=o,shouldIncludeStack:r=!1}={}){var i,u;if(!t||!Number.isInteger(t.code)||"string"!=typeof t.message)throw new Error("Must provide fallback error with integer number code and string message.");if(e instanceof n.EthereumRpcError)return e.serialize();const d={};if(e&&"object"==typeof e&&!Array.isArray(e)&&c(e,"code")&&s(e.code)){const t=e;d.code=t.code,t.message&&"string"==typeof t.message?(d.message=t.message,c(t,"data")&&(d.data=t.data)):(d.message=a(d.code),d.data={originalError:l(e)})}else{d.code=t.code;const n=null===(i=e)||void 0===i?void 0:i.message;d.message=n&&"string"==typeof n?n:t.message,d.data={originalError:l(e)}}const f=null===(u=e)||void 0===u?void 0:u.stack;return r&&e&&f&&"string"==typeof f&&(d.stack=f),d}}($A);var GA={};Object.defineProperty(GA,"__esModule",{value:!0}),GA.ethErrors=void 0;const QA=OA,ZA=$A,XA=YA;function JA(e,t){const[n,r]=t_(t);return new QA.EthereumRpcError(e,n||ZA.getMessageFromCode(e),r)}function e_(e,t){const[n,r]=t_(t);return new QA.EthereumProviderError(e,n||ZA.getMessageFromCode(e),r)}function t_(e){if(e){if("string"==typeof e)return[e];if("object"==typeof e&&!Array.isArray(e)){const{message:t,data:n}=e;if(t&&"string"!=typeof t)throw new Error("Must specify string message.");return[t||void 0,n]}}return[]}GA.ethErrors={rpc:{parse:e=>JA(XA.errorCodes.rpc.parse,e),invalidRequest:e=>JA(XA.errorCodes.rpc.invalidRequest,e),invalidParams:e=>JA(XA.errorCodes.rpc.invalidParams,e),methodNotFound:e=>JA(XA.errorCodes.rpc.methodNotFound,e),internal:e=>JA(XA.errorCodes.rpc.internal,e),server:e=>{if(!e||"object"!=typeof e||Array.isArray(e))throw new Error("Ethereum RPC Server errors must provide single object argument.");const{code:t}=e;if(!Number.isInteger(t)||t>-32005||t<-32099)throw new Error('"code" must be an integer such that: -32099 <= code <= -32005');return JA(t,e)},invalidInput:e=>JA(XA.errorCodes.rpc.invalidInput,e),resourceNotFound:e=>JA(XA.errorCodes.rpc.resourceNotFound,e),resourceUnavailable:e=>JA(XA.errorCodes.rpc.resourceUnavailable,e),transactionRejected:e=>JA(XA.errorCodes.rpc.transactionRejected,e),methodNotSupported:e=>JA(XA.errorCodes.rpc.methodNotSupported,e),limitExceeded:e=>JA(XA.errorCodes.rpc.limitExceeded,e)},provider:{userRejectedRequest:e=>e_(XA.errorCodes.provider.userRejectedRequest,e),unauthorized:e=>e_(XA.errorCodes.provider.unauthorized,e),unsupportedMethod:e=>e_(XA.errorCodes.provider.unsupportedMethod,e),disconnected:e=>e_(XA.errorCodes.provider.disconnected,e),chainDisconnected:e=>e_(XA.errorCodes.provider.chainDisconnected,e),custom:e=>{if(!e||"object"!=typeof e||Array.isArray(e))throw new Error("Ethereum Provider custom errors must provide single object argument.");const{code:t,message:n,data:r}=e;if(!n||"string"!=typeof n)throw new Error('"message" must be a nonempty string');return new QA.EthereumProviderError(t,n,r)}}},function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.getMessageFromCode=e.serializeError=e.EthereumProviderError=e.EthereumRpcError=e.ethErrors=e.errorCodes=void 0;const t=OA;Object.defineProperty(e,"EthereumRpcError",{enumerable:!0,get:function(){return t.EthereumRpcError}}),Object.defineProperty(e,"EthereumProviderError",{enumerable:!0,get:function(){return t.EthereumProviderError}});const n=$A;Object.defineProperty(e,"serializeError",{enumerable:!0,get:function(){return n.serializeError}}),Object.defineProperty(e,"getMessageFromCode",{enumerable:!0,get:function(){return n.getMessageFromCode}});const r=GA;Object.defineProperty(e,"ethErrors",{enumerable:!0,get:function(){return r.ethErrors}});const i=YA;Object.defineProperty(e,"errorCodes",{enumerable:!0,get:function(){return i.errorCodes}})}(RA);var n_=Array.isArray,r_=Object.keys,i_=Object.prototype.hasOwnProperty,o_={},a_={},s_={};Object.defineProperty(s_,"__esModule",{value:!0}),s_.getUniqueId=void 0;const u_=4294967295;let l_=Math.floor(Math.random()*u_);s_.getUniqueId=function(){return l_=(l_+1)%u_,l_},Object.defineProperty(a_,"__esModule",{value:!0}),a_.createIdRemapMiddleware=void 0;const c_=s_;a_.createIdRemapMiddleware=function(){return(e,t,n,r)=>{const i=e.id,o=c_.getUniqueId();e.id=o,t.id=o,n((n=>{e.id=i,t.id=i,n()}))}};var d_={};Object.defineProperty(d_,"__esModule",{value:!0}),d_.createAsyncMiddleware=void 0,d_.createAsyncMiddleware=function(e){return async(t,n,r,i)=>{let o;const a=new Promise((e=>{o=e}));let s=null,u=!1;const l=async()=>{u=!0,r((e=>{s=e,o()})),await a};try{await e(t,n,l),u?(await a,s(null)):i(null)}catch(e){s?s(e):i(e)}}};var f_={};Object.defineProperty(f_,"__esModule",{value:!0}),f_.createScaffoldMiddleware=void 0,f_.createScaffoldMiddleware=function(e){return(t,n,r,i)=>{const o=e[t.method];return void 0===o?r():"function"==typeof o?o(t,n,r,i):(n.result=o,i())}};var h_={},p_=r&&r.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(h_,"__esModule",{value:!0}),h_.JsonRpcEngine=void 0;const m_=p_(vA),g_=RA;class v_ extends m_.default{constructor(){super(),this._middleware=[]}push(e){this._middleware.push(e)}handle(e,t){if(t&&"function"!=typeof t)throw new Error('"callback" must be a function if provided.');return Array.isArray(e)?t?this._handleBatch(e,t):this._handleBatch(e):t?this._handle(e,t):this._promiseHandle(e)}asMiddleware(){return async(e,t,n,r)=>{try{const[i,o,a]=await v_._runAllMiddleware(e,t,this._middleware);return o?(await v_._runReturnHandlers(a),r(i)):n((async e=>{try{await v_._runReturnHandlers(a)}catch(t){return e(t)}return e()}))}catch(e){return r(e)}}}async _handleBatch(e,t){try{const n=await Promise.all(e.map(this._promiseHandle.bind(this)));return t?t(null,n):n}catch(e){if(t)return t(e);throw e}}_promiseHandle(e){return new Promise((t=>{this._handle(e,((e,n)=>{t(n)}))}))}async _handle(e,t){if(!e||Array.isArray(e)||"object"!=typeof e){const n=new g_.EthereumRpcError(g_.errorCodes.rpc.invalidRequest,"Requests must be plain objects. Received: "+typeof e,{request:e});return t(n,{id:void 0,jsonrpc:"2.0",error:n})}if("string"!=typeof e.method){const n=new g_.EthereumRpcError(g_.errorCodes.rpc.invalidRequest,"Must specify a string method. Received: "+typeof e.method,{request:e});return t(n,{id:e.id,jsonrpc:"2.0",error:n})}const n=Object.assign({},e),r={id:n.id,jsonrpc:n.jsonrpc};let i=null;try{await this._processRequest(n,r)}catch(e){i=e}return i&&(delete r.result,r.error||(r.error=g_.serializeError(i))),t(i,r)}async _processRequest(e,t){const[n,r,i]=await v_._runAllMiddleware(e,t,this._middleware);if(v_._checkForCompletion(e,t,r),await v_._runReturnHandlers(i),n)throw n}static async _runAllMiddleware(e,t,n){const r=[];let i=null,o=!1;for(const a of n)if([i,o]=await v_._runMiddleware(e,t,a,r),o)break;return[i,o,r.reverse()]}static _runMiddleware(e,t,n,r){return new Promise((i=>{const o=e=>{const n=e||t.error;n&&(t.error=g_.serializeError(n)),i([n,!0])},a=n=>{t.error?o(t.error):(n&&("function"!=typeof n&&o(new g_.EthereumRpcError(g_.errorCodes.rpc.internal,`JsonRpcEngine: "next" return handlers must be functions. Received "${typeof n}" for request:\n${y_(e)}`,{request:e})),r.push(n)),i([null,!1]))};try{n(e,t,a,o)}catch(e){o(e)}}))}static async _runReturnHandlers(e){for(const t of e)await new Promise(((e,n)=>{t((t=>t?n(t):e()))}))}static _checkForCompletion(e,t,n){if(!("result"in t)&&!("error"in t))throw new g_.EthereumRpcError(g_.errorCodes.rpc.internal,`JsonRpcEngine: Response has no error or result for request:\n${y_(e)}`,{request:e});if(!n)throw new g_.EthereumRpcError(g_.errorCodes.rpc.internal,`JsonRpcEngine: Nothing ended request:\n${y_(e)}`,{request:e})}}function y_(e){return JSON.stringify(e,null,2)}h_.JsonRpcEngine=v_;var b_={};Object.defineProperty(b_,"__esModule",{value:!0}),b_.mergeMiddleware=void 0;const w_=h_;b_.mergeMiddleware=function(e){const t=new w_.JsonRpcEngine;return e.forEach((e=>t.push(e))),t.asMiddleware()},function(e){var t=r&&r.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),n=r&&r.__exportStar||function(e,n){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||t(n,e,r)};Object.defineProperty(e,"__esModule",{value:!0}),n(a_,e),n(d_,e),n(f_,e),n(s_,e),n(h_,e),n(b_,e)}(o_);var A_={};Object.defineProperty(A_,"__esModule",{value:!0});const __={errors:{disconnected:()=>"MetaMask: Disconnected from chain. Attempting to connect.",permanentlyDisconnected:()=>"MetaMask: Disconnected from MetaMask background. Page reload required.",sendSiteMetadata:()=>"MetaMask: Failed to send site metadata. This is an internal error, please report this bug.",unsupportedSync:e=>`MetaMask: The MetaMask Ethereum provider does not support synchronous methods like ${e} without a callback parameter.`,invalidDuplexStream:()=>"Must provide a Node.js-style duplex stream.",invalidNetworkParams:()=>"MetaMask: Received invalid network parameters. Please report this bug.",invalidRequestArgs:()=>"Expected a single, non-array, object argument.",invalidRequestMethod:()=>"'args.method' must be a non-empty string.",invalidRequestParams:()=>"'args.params' must be an object or array if provided.",invalidLoggerObject:()=>"'args.logger' must be an object if provided.",invalidLoggerMethod:e=>`'args.logger' must include required method '${e}'.`},info:{connected:e=>`MetaMask: Connected to chain with ID "${e}".`},warnings:{enableDeprecation:"MetaMask: 'ethereum.enable()' is deprecated and may be removed in the future. Please use the 'eth_requestAccounts' RPC method instead.\nFor more information, see: https://eips.ethereum.org/EIPS/eip-1102",sendDeprecation:"MetaMask: 'ethereum.send(...)' is deprecated and may be removed in the future. Please use 'ethereum.sendAsync(...)' or 'ethereum.request(...)' instead.\nFor more information, see: https://eips.ethereum.org/EIPS/eip-1193",events:{close:"MetaMask: The event 'close' is deprecated and may be removed in the future. Please use 'disconnect' instead.\nFor more information, see: https://eips.ethereum.org/EIPS/eip-1193#disconnect",data:"MetaMask: The event 'data' is deprecated and will be removed in the future. Use 'message' instead.\nFor more information, see: https://eips.ethereum.org/EIPS/eip-1193#message",networkChanged:"MetaMask: The event 'networkChanged' is deprecated and may be removed in the future. Use 'chainChanged' instead.\nFor more information, see: https://eips.ethereum.org/EIPS/eip-1193#chainchanged",notification:"MetaMask: The event 'notification' is deprecated and may be removed in the future. Use 'message' instead.\nFor more information, see: https://eips.ethereum.org/EIPS/eip-1193#message"},rpc:{ethDecryptDeprecation:"MetaMask: The RPC method 'eth_decrypt' is deprecated and may be removed in the future.\nFor more information, see: https://medium.com/metamask/metamask-api-method-deprecation-2b0564a84686",ethGetEncryptionPublicKeyDeprecation:"MetaMask: The RPC method 'eth_getEncryptionPublicKey' is deprecated and may be removed in the future.\nFor more information, see: https://medium.com/metamask/metamask-api-method-deprecation-2b0564a84686"},experimentalMethods:"MetaMask: 'ethereum._metamask' exposes non-standard, experimental methods. They may be removed or changed without warning."}};A_.default=__;var E_={},S_={},k_=r&&r.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(S_,"__esModule",{value:!0}),S_.createRpcWarningMiddleware=void 0;const M_=k_(A_);S_.createRpcWarningMiddleware=function(e){const t={ethDecryptDeprecation:!1,ethGetEncryptionPublicKeyDeprecation:!1};return(n,r,i)=>{!1===t.ethDecryptDeprecation&&"eth_decrypt"===n.method?(e.warn(M_.default.warnings.rpc.ethDecryptDeprecation),t.ethDecryptDeprecation=!0):!1===t.ethGetEncryptionPublicKeyDeprecation&&"eth_getEncryptionPublicKey"===n.method&&(e.warn(M_.default.warnings.rpc.ethGetEncryptionPublicKeyDeprecation),t.ethGetEncryptionPublicKeyDeprecation=!0),i()}},Object.defineProperty(E_,"__esModule",{value:!0}),E_.NOOP=E_.isValidNetworkVersion=E_.isValidChainId=E_.getRpcPromiseCallback=E_.getDefaultExternalMiddleware=E_.EMITTED_NOTIFICATIONS=void 0;const C_=o_,x_=RA,R_=S_;function O_(e){return(t,n,r)=>{"string"==typeof t.method&&t.method||(n.error=x_.ethErrors.rpc.invalidRequest({message:"The request 'method' must be a non-empty string.",data:t})),r((t=>{const{error:r}=n;return r?(e.error(`MetaMask - RPC Error: ${r.message}`,r),t()):t()}))}}E_.EMITTED_NOTIFICATIONS=Object.freeze(["eth_subscription"]),E_.getDefaultExternalMiddleware=(e=console)=>[C_.createIdRemapMiddleware(),O_(e),R_.createRpcWarningMiddleware(e)],E_.getRpcPromiseCallback=(e,t,n=!0)=>(r,i)=>{r||i.error?t(r||i.error):!n||Array.isArray(i)?e(i):e(i.result)},E_.isValidChainId=e=>Boolean(e)&&"string"==typeof e&&e.startsWith("0x"),E_.isValidNetworkVersion=e=>Boolean(e)&&"string"==typeof e,E_.NOOP=()=>{};var T_=r&&r.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(gA,"__esModule",{value:!0}),gA.BaseProvider=void 0;const P_=T_(vA),L_=RA,I_=T_((function e(t,n){if(t===n)return!0;if(t&&n&&"object"==typeof t&&"object"==typeof n){var r,i,o,a=n_(t),s=n_(n);if(a&&s){if((i=t.length)!=n.length)return!1;for(r=i;0!=r--;)if(!e(t[r],n[r]))return!1;return!0}if(a!=s)return!1;var u=t instanceof Date,l=n instanceof Date;if(u!=l)return!1;if(u&&l)return t.getTime()==n.getTime();var c=t instanceof RegExp,d=n instanceof RegExp;if(c!=d)return!1;if(c&&d)return t.toString()==n.toString();var f=r_(t);if((i=f.length)!==r_(n).length)return!1;for(r=i;0!=r--;)if(!i_.call(n,f[r]))return!1;for(r=i;0!=r--;)if(!e(t[o=f[r]],n[o]))return!1;return!0}return t!=t&&n!=n})),N_=o_,D_=T_(A_),B_=E_;class j_ extends P_.default{constructor({logger:e=console,maxEventListeners:t=100,rpcMiddleware:n=[]}={}){super(),this._log=e,this.setMaxListeners(t),this._state=Object.assign({},j_._defaultState),this.selectedAddress=null,this.chainId=null,this._handleAccountsChanged=this._handleAccountsChanged.bind(this),this._handleConnect=this._handleConnect.bind(this),this._handleChainChanged=this._handleChainChanged.bind(this),this._handleDisconnect=this._handleDisconnect.bind(this),this._handleUnlockStateChanged=this._handleUnlockStateChanged.bind(this),this._rpcRequest=this._rpcRequest.bind(this),this.request=this.request.bind(this);const r=new N_.JsonRpcEngine;n.forEach((e=>r.push(e))),this._rpcEngine=r}isConnected(){return this._state.isConnected}async request(e){if(!e||"object"!=typeof e||Array.isArray(e))throw L_.ethErrors.rpc.invalidRequest({message:D_.default.errors.invalidRequestArgs(),data:e});const{method:t,params:n}=e;if("string"!=typeof t||0===t.length)throw L_.ethErrors.rpc.invalidRequest({message:D_.default.errors.invalidRequestMethod(),data:e});if(void 0!==n&&!Array.isArray(n)&&("object"!=typeof n||null===n))throw L_.ethErrors.rpc.invalidRequest({message:D_.default.errors.invalidRequestParams(),data:e});return new Promise(((e,r)=>{this._rpcRequest({method:t,params:n},B_.getRpcPromiseCallback(e,r))}))}_initializeState(e){if(!0===this._state.initialized)throw new Error("Provider already initialized.");if(e){const{accounts:t,chainId:n,isUnlocked:r,networkVersion:i}=e;this._handleConnect(n),this._handleChainChanged({chainId:n,networkVersion:i}),this._handleUnlockStateChanged({accounts:t,isUnlocked:r}),this._handleAccountsChanged(t)}this._state.initialized=!0,this.emit("_initialized")}_rpcRequest(e,t){let n=t;return Array.isArray(e)||(e.jsonrpc||(e.jsonrpc="2.0"),"eth_accounts"!==e.method&&"eth_requestAccounts"!==e.method||(n=(n,r)=>{this._handleAccountsChanged(r.result||[],"eth_accounts"===e.method),t(n,r)})),this._rpcEngine.handle(e,n)}_handleConnect(e){this._state.isConnected||(this._state.isConnected=!0,this.emit("connect",{chainId:e}),this._log.debug(D_.default.info.connected(e)))}_handleDisconnect(e,t){if(this._state.isConnected||!this._state.isPermanentlyDisconnected&&!e){let n;this._state.isConnected=!1,e?(n=new L_.EthereumRpcError(1013,t||D_.default.errors.disconnected()),this._log.debug(n)):(n=new L_.EthereumRpcError(1011,t||D_.default.errors.permanentlyDisconnected()),this._log.error(n),this.chainId=null,this._state.accounts=null,this.selectedAddress=null,this._state.isUnlocked=!1,this._state.isPermanentlyDisconnected=!0),this.emit("disconnect",n)}}_handleChainChanged({chainId:e}={}){B_.isValidChainId(e)?(this._handleConnect(e),e!==this.chainId&&(this.chainId=e,this._state.initialized&&this.emit("chainChanged",this.chainId))):this._log.error(D_.default.errors.invalidNetworkParams(),{chainId:e})}_handleAccountsChanged(e,t=!1){let n=e;Array.isArray(e)||(this._log.error("MetaMask: Received invalid accounts parameter. Please report this bug.",e),n=[]);for(const r of e)if("string"!=typeof r){this._log.error("MetaMask: Received non-string account. Please report this bug.",e),n=[];break}I_.default(this._state.accounts,n)||(t&&null!==this._state.accounts&&this._log.error("MetaMask: 'eth_accounts' unexpectedly updated accounts. Please report this bug.",n),this._state.accounts=n,this.selectedAddress!==n[0]&&(this.selectedAddress=n[0]||null),this._state.initialized&&this.emit("accountsChanged",n))}_handleUnlockStateChanged({accounts:e,isUnlocked:t}={}){"boolean"==typeof t?t!==this._state.isUnlocked&&(this._state.isUnlocked=t,this._handleAccountsChanged(e||[])):this._log.error("MetaMask: Received invalid isUnlocked parameter. Please report this bug.")}}gA.BaseProvider=j_,j_._defaultState={accounts:null,isConnected:!1,isUnlocked:!1,initialized:!1,isPermanentlyDisconnected:!1};var U_={},z_={},F_="function"==typeof Object.create?function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:function(e,t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e},q_=/%[sdj%]/g;function W_(e){if(!oE(e)){for(var t=[],n=0;n=i)return e;switch(e){case"%s":return String(r[n++]);case"%d":return Number(r[n++]);case"%j":try{return JSON.stringify(r[n++])}catch(e){return"[Circular]"}default:return e}})),a=r[n];n=3&&(n.depth=arguments[2]),arguments.length>=4&&(n.colors=arguments[3]),tE(t)?n.showHidden=t:t&&bE(n,t),sE(n.showHidden)&&(n.showHidden=!1),sE(n.depth)&&(n.depth=2),sE(n.colors)&&(n.colors=!1),sE(n.customInspect)&&(n.customInspect=!0),n.colors&&(n.stylize=G_),Z_(n,e,n.depth)}function G_(e,t){var n=Y_.styles[t];return n?"["+Y_.colors[n][0]+"m"+e+"["+Y_.colors[n][1]+"m":e}function Q_(e,t){return e}function Z_(e,t,n){if(e.customInspect&&t&&fE(t.inspect)&&t.inspect!==Y_&&(!t.constructor||t.constructor.prototype!==t)){var r=t.inspect(n,e);return oE(r)||(r=Z_(e,r,n)),r}var i=function(e,t){if(sE(t))return e.stylize("undefined","undefined");if(oE(t)){var n="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(n,"string")}return iE(t)?e.stylize(""+t,"number"):tE(t)?e.stylize(""+t,"boolean"):nE(t)?e.stylize("null","null"):void 0}(e,t);if(i)return i;var o=Object.keys(t),a=function(e){var t={};return e.forEach((function(e,n){t[e]=!0})),t}(o);if(e.showHidden&&(o=Object.getOwnPropertyNames(t)),dE(t)&&(o.indexOf("message")>=0||o.indexOf("description")>=0))return X_(t);if(0===o.length){if(fE(t)){var s=t.name?": "+t.name:"";return e.stylize("[Function"+s+"]","special")}if(uE(t))return e.stylize(RegExp.prototype.toString.call(t),"regexp");if(cE(t))return e.stylize(Date.prototype.toString.call(t),"date");if(dE(t))return X_(t)}var u,l="",c=!1,d=["{","}"];return eE(t)&&(c=!0,d=["[","]"]),fE(t)&&(l=" [Function"+(t.name?": "+t.name:"")+"]"),uE(t)&&(l=" "+RegExp.prototype.toString.call(t)),cE(t)&&(l=" "+Date.prototype.toUTCString.call(t)),dE(t)&&(l=" "+X_(t)),0!==o.length||c&&0!=t.length?n<0?uE(t)?e.stylize(RegExp.prototype.toString.call(t),"regexp"):e.stylize("[Object]","special"):(e.seen.push(t),u=c?function(e,t,n,r,i){for(var o=[],a=0,s=t.length;a60?n[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+n[1]:n[0]+t+" "+e.join(", ")+" "+n[1]}(u,l,d)):d[0]+l+d[1]}function X_(e){return"["+Error.prototype.toString.call(e)+"]"}function J_(e,t,n,r,i,o){var a,s,u;if((u=Object.getOwnPropertyDescriptor(t,i)||{value:t[i]}).get?s=u.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):u.set&&(s=e.stylize("[Setter]","special")),wE(r,i)||(a="["+i+"]"),s||(e.seen.indexOf(u.value)<0?(s=nE(n)?Z_(e,u.value,null):Z_(e,u.value,n-1)).indexOf("\n")>-1&&(s=o?s.split("\n").map((function(e){return" "+e})).join("\n").substr(2):"\n"+s.split("\n").map((function(e){return" "+e})).join("\n")):s=e.stylize("[Circular]","special")),sE(a)){if(o&&i.match(/^\d+$/))return s;(a=JSON.stringify(""+i)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(a=a.substr(1,a.length-2),a=e.stylize(a,"name")):(a=a.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),a=e.stylize(a,"string"))}return a+": "+s}function eE(e){return Array.isArray(e)}function tE(e){return"boolean"==typeof e}function nE(e){return null===e}function rE(e){return null==e}function iE(e){return"number"==typeof e}function oE(e){return"string"==typeof e}function aE(e){return"symbol"==typeof e}function sE(e){return void 0===e}function uE(e){return lE(e)&&"[object RegExp]"===mE(e)}function lE(e){return"object"==typeof e&&null!==e}function cE(e){return lE(e)&&"[object Date]"===mE(e)}function dE(e){return lE(e)&&("[object Error]"===mE(e)||e instanceof Error)}function fE(e){return"function"==typeof e}function hE(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e}function pE(e){return xt(e)}function mE(e){return Object.prototype.toString.call(e)}function gE(e){return e<10?"0"+e.toString(10):e.toString(10)}Y_.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},Y_.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};var vE=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function yE(){console.log("%s - %s",function(){var e=new Date,t=[gE(e.getHours()),gE(e.getMinutes()),gE(e.getSeconds())].join(":");return[e.getDate(),vE[e.getMonth()],t].join(" ")}(),W_.apply(null,arguments))}function bE(e,t){if(!t||!lE(t))return e;for(var n=Object.keys(t),r=n.length;r--;)e[n[r]]=t[n[r]];return e}function wE(e,t){return Object.prototype.hasOwnProperty.call(e,t)}var AE={inherits:F_,_extend:bE,log:yE,isBuffer:pE,isPrimitive:hE,isFunction:fE,isError:dE,isDate:cE,isObject:lE,isRegExp:uE,isUndefined:sE,isSymbol:aE,isString:oE,isNumber:iE,isNullOrUndefined:rE,isNull:nE,isBoolean:tE,isArray:eE,inspect:Y_,deprecate:V_,format:W_,debuglog:$_},_E=Object.freeze({__proto__:null,_extend:bE,debuglog:$_,default:AE,deprecate:V_,format:W_,inherits:F_,inspect:Y_,isArray:eE,isBoolean:tE,isBuffer:pE,isDate:cE,isError:dE,isFunction:fE,isNull:nE,isNullOrUndefined:rE,isNumber:iE,isObject:lE,isPrimitive:hE,isRegExp:uE,isString:oE,isSymbol:aE,isUndefined:sE,log:yE});function EE(){this.head=null,this.tail=null,this.length=0}EE.prototype.push=function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length},EE.prototype.unshift=function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length},EE.prototype.shift=function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}},EE.prototype.clear=function(){this.head=this.tail=null,this.length=0},EE.prototype.join=function(e){if(0===this.length)return"";for(var t=this.head,n=""+t.data;t=t.next;)n+=e+t.data;return n},EE.prototype.concat=function(e){if(0===this.length)return Ke.alloc(0);if(1===this.length)return this.head.data;for(var t=Ke.allocUnsafe(e>>>0),n=this.head,r=0;n;)n.data.copy(t,r),r+=n.data.length,n=n.next;return t};var SE=Ke.isEncoding||function(e){switch(e&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function kE(e){switch(this.encoding=(e||"utf8").toLowerCase().replace(/[-_]/,""),function(e){if(e&&!SE(e))throw new Error("Unknown encoding: "+e)}(e),this.encoding){case"utf8":this.surrogateSize=3;break;case"ucs2":case"utf16le":this.surrogateSize=2,this.detectIncompleteChar=CE;break;case"base64":this.surrogateSize=3,this.detectIncompleteChar=xE;break;default:return void(this.write=ME)}this.charBuffer=new Ke(6),this.charReceived=0,this.charLength=0}function ME(e){return e.toString(this.encoding)}function CE(e){this.charReceived=e.length%2,this.charLength=this.charReceived?2:0}function xE(e){this.charReceived=e.length%3,this.charLength=this.charReceived?3:0}kE.prototype.write=function(e){for(var t="";this.charLength;){var n=e.length>=this.charLength-this.charReceived?this.charLength-this.charReceived:e.length;if(e.copy(this.charBuffer,this.charReceived,0,n),this.charReceived+=n,this.charReceived=55296&&r<=56319)){if(this.charReceived=this.charLength=0,0===e.length)return t;break}this.charLength+=this.surrogateSize,t=""}this.detectIncompleteChar(e);var r,i=e.length;if(this.charLength&&(e.copy(this.charBuffer,0,e.length-this.charReceived,i),i-=this.charReceived),i=(t+=e.toString(this.encoding,0,i)).length-1,(r=t.charCodeAt(i))>=55296&&r<=56319){var o=this.surrogateSize;return this.charLength+=o,this.charReceived+=o,this.charBuffer.copy(this.charBuffer,o,0,o),e.copy(this.charBuffer,0,0,o),t.substring(0,i)}return t},kE.prototype.detectIncompleteChar=function(e){for(var t=e.length>=3?3:e.length;t>0;t--){var n=e[e.length-t];if(1==t&&n>>5==6){this.charLength=2;break}if(t<=2&&n>>4==14){this.charLength=3;break}if(t<=3&&n>>3==30){this.charLength=4;break}}this.charReceived=t},kE.prototype.end=function(e){var t="";if(e&&e.length&&(t=this.write(e)),this.charReceived){var n=this.charReceived,r=this.charBuffer,i=this.encoding;t+=r.slice(0,n).toString(i)}return t},TE.ReadableState=OE;var RE=$_("stream");function OE(e,t){e=e||{},this.objectMode=!!e.objectMode,t instanceof oS&&(this.objectMode=this.objectMode||!!e.readableObjectMode);var n=e.highWaterMark,r=this.objectMode?16:16384;this.highWaterMark=n||0===n?n:r,this.highWaterMark=~~this.highWaterMark,this.buffer=new EE,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.ranOut=!1,this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(this.decoder=new kE(e.encoding),this.encoding=e.encoding)}function TE(e){if(!(this instanceof TE))return new TE(e);this._readableState=new OE(e,this),this.readable=!0,e&&"function"==typeof e.read&&(this._read=e.read),bA.call(this)}function PE(e,t,n,r,i){var o=function(e,t){var n=null;return xt(t)||"string"==typeof t||null==t||e.objectMode||(n=new TypeError("Invalid non-string/buffer chunk")),n}(t,n);if(o)e.emit("error",o);else if(null===n)t.reading=!1,function(e,t){if(!t.ended){if(t.decoder){var n=t.decoder.end();n&&n.length&&(t.buffer.push(n),t.length+=t.objectMode?1:n.length)}t.ended=!0,NE(e)}}(e,t);else if(t.objectMode||n&&n.length>0)if(t.ended&&!i){var a=new Error("stream.push() after EOF");e.emit("error",a)}else if(t.endEmitted&&i){var s=new Error("stream.unshift() after end event");e.emit("error",s)}else{var u;!t.decoder||i||r||(n=t.decoder.write(n),u=!t.objectMode&&0===n.length),i||(t.reading=!1),u||(t.flowing&&0===t.length&&!t.sync?(e.emit("data",n),e.read(0)):(t.length+=t.objectMode?1:n.length,i?t.buffer.unshift(n):t.buffer.push(n),t.needReadable&&NE(e))),function(e,t){t.readingMore||(t.readingMore=!0,b(BE,e,t))}(e,t)}else i||(t.reading=!1);return function(e){return!e.ended&&(e.needReadable||e.lengtht.highWaterMark&&(t.highWaterMark=function(e){return e>=LE?e=LE:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function NE(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(RE("emitReadable",t.flowing),t.emittedReadable=!0,t.sync?b(DE,e):DE(e))}function DE(e){RE("emit readable"),e.emit("readable"),zE(e)}function BE(e,t){for(var n=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length=t.length?(n=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.head.data:t.buffer.concat(t.length),t.buffer.clear()):n=function(e,t,n){var r;return eo.length?o.length:e;if(a===o.length?i+=o:i+=o.slice(0,e),0===(e-=a)){a===o.length?(++r,n.next?t.head=n.next:t.head=t.tail=null):(t.head=n,n.data=o.slice(a));break}++r}return t.length-=r,i}(e,t):function(e,t){var n=Ke.allocUnsafe(e),r=t.head,i=1;for(r.data.copy(n),e-=r.data.length;r=r.next;){var o=r.data,a=e>o.length?o.length:e;if(o.copy(n,n.length-e,0,a),0===(e-=a)){a===o.length?(++i,r.next?t.head=r.next:t.head=t.tail=null):(t.head=r,r.data=o.slice(a));break}++i}return t.length-=i,n}(e,t),r}(e,t.buffer,t.decoder),n);var n}function qE(e){var t=e._readableState;if(t.length>0)throw new Error('"endReadable()" called on non-empty stream');t.endEmitted||(t.ended=!0,b(WE,t,e))}function WE(e,t){e.endEmitted||0!==e.length||(e.endEmitted=!0,t.readable=!1,t.emit("end"))}function VE(e,t){for(var n=0,r=e.length;n=t.highWaterMark||t.ended))return RE("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?qE(this):NE(this),null;if(0===(e=IE(e,t))&&t.ended)return 0===t.length&&qE(this),null;var r,i=t.needReadable;return RE("need readable",i),(0===t.length||t.length-e0?FE(e,t):null)?(t.needReadable=!0,e=0):t.length-=e,0===t.length&&(t.ended||(t.needReadable=!0),n!==e&&t.ended&&qE(this)),null!==r&&this.emit("data",r),r},TE.prototype._read=function(e){this.emit("error",new Error("not implemented"))},TE.prototype.pipe=function(e,t){var n=this,r=this._readableState;switch(r.pipesCount){case 0:r.pipes=e;break;case 1:r.pipes=[r.pipes,e];break;default:r.pipes.push(e)}r.pipesCount+=1,RE("pipe count=%d opts=%j",r.pipesCount,t);var i=t&&!1===t.end?l:a;function o(e){RE("onunpipe"),e===n&&l()}function a(){RE("onend"),e.end()}r.endEmitted?b(i):n.once("end",i),e.on("unpipe",o);var s=function(e){return function(){var t=e._readableState;RE("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&e.listeners("data").length&&(t.flowing=!0,zE(e))}}(n);e.on("drain",s);var u=!1;function l(){RE("cleanup"),e.removeListener("close",h),e.removeListener("finish",p),e.removeListener("drain",s),e.removeListener("error",f),e.removeListener("unpipe",o),n.removeListener("end",a),n.removeListener("end",l),n.removeListener("data",d),u=!0,!r.awaitDrain||e._writableState&&!e._writableState.needDrain||s()}var c=!1;function d(t){RE("ondata"),c=!1,!1!==e.write(t)||c||((1===r.pipesCount&&r.pipes===e||r.pipesCount>1&&-1!==VE(r.pipes,e))&&!u&&(RE("false write response, pause",n._readableState.awaitDrain),n._readableState.awaitDrain++,c=!0),n.pause())}function f(t){var n;RE("onerror",t),m(),e.removeListener("error",f),0===(n="error",e.listeners(n).length)&&e.emit("error",t)}function h(){e.removeListener("finish",p),m()}function p(){RE("onfinish"),e.removeListener("close",h),m()}function m(){RE("unpipe"),n.unpipe(e)}return n.on("data",d),function(e,t,n){if("function"==typeof e.prependListener)return e.prependListener(t,n);e._events&&e._events[t]?Array.isArray(e._events[t])?e._events[t].unshift(n):e._events[t]=[n,e._events[t]]:e.on(t,n)}(e,"error",f),e.once("close",h),e.once("finish",p),e.emit("pipe",n),r.flowing||(RE("pipe resume"),n.resume()),e},TE.prototype.unpipe=function(e){var t=this._readableState;if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this)),this;if(!e){var n=t.pipes,r=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var i=0;i-1))throw new TypeError("Unknown encoding: "+e);return this._writableState.defaultEncoding=e,this},YE.prototype._write=function(e,t,n){n(new Error("not implemented"))},YE.prototype._writev=null,YE.prototype.end=function(e,t,n){var r=this._writableState;"function"==typeof e?(n=e,e=null,t=null):"function"==typeof t&&(n=t,t=null),null!=e&&this.write(e,t),r.corked&&(r.corked=1,this.uncork()),r.ending||r.finished||function(e,t,n){t.ending=!0,eS(e,t),n&&(t.finished?b(n):e.once("finish",n)),t.ended=!0,e.writable=!1}(this,r,n)},F_(oS,TE);for(var nS=Object.keys(YE.prototype),rS=0;rSthis._onMessage(e))),this._port.onDisconnect.addListener((()=>this._onDisconnect())),this._log=()=>null}_onMessage(e){if(xt(e)){const t=Ke.from(e);this._log(t,!1),this.push(t)}else this._log(e,!1),this.push(e)}_onDisconnect(){this.destroy()}_read(){}_write(e,t,n){try{if(xt(e)){const t=e.toJSON();t._isBuffer=!0,this._log(t,!0),this._port.postMessage(t)}else this._log(e,!0),this._port.postMessage(e)}catch(e){return n(new Error("PortDuplexStream - disconnected"))}return n()}_setLogger(e){this._log=e}}z_.default=mS;var gS=function(e,t,n){if(n||2===arguments.length)for(var r,i=0,o=t.length;i meta[property="og:site_name"]');if(n)return n.content;const r=t.querySelector('head > meta[name="title"]');return r?r.content:t.title&&t.title.length>0?t.title:window.location.hostname}async function jS(e){const{document:t}=e,n=t.querySelectorAll('head > link[rel~="icon"]');for(const r of n)if(r&&await US(r.href))return r.href;return null}function US(e){return new Promise(((t,n)=>{try{const n=document.createElement("img");n.onload=()=>t(!0),n.onerror=()=>t(!1),n.src=e}catch(e){n(e)}}))}LS.sendSiteMetadata=async function(e,t){try{const t=await async function(){return{name:BS(window),icon:await jS(window)}}();e.handle({jsonrpc:"2.0",id:1,method:"metamask_sendDomainMetadata",params:t},DS.NOOP)}catch(e){t.error({message:NS.default.errors.sendSiteMetadata(),originalError:e})}};var zS={},FS={},qS={exports:{}},WS={exports:{}};void 0===P||!P.version||0===P.version.indexOf("v0.")||0===P.version.indexOf("v1.")&&0!==P.version.indexOf("v1.8.")?WS.exports={nextTick:function(e,t,n,r){if("function"!=typeof e)throw new TypeError('"callback" argument must be a function');var i,o,a=arguments.length;switch(a){case 0:case 1:return b(e);case 2:return b((function(){e.call(null,t)}));case 3:return b((function(){e.call(null,t,n)}));case 4:return b((function(){e.call(null,t,n,r)}));default:for(i=new Array(a-1),o=0;o0?this.tail.next=t:this.head=t,this.tail=t,++this.length},e.prototype.unshift=function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length},e.prototype.shift=function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}},e.prototype.clear=function(){this.head=this.tail=null,this.length=0},e.prototype.join=function(e){if(0===this.length)return"";for(var t=this.head,n=""+t.data;t=t.next;)n+=e+t.data;return n},e.prototype.concat=function(e){if(0===this.length)return t.alloc(0);for(var n,r,i,o=t.allocUnsafe(e>>>0),a=this.head,s=0;a;)n=a.data,r=o,i=s,n.copy(r,i),s+=a.data.length,a=a.next;return o},e}(),n&&n.inspect&&n.inspect.custom&&(e.exports.prototype[n.inspect.custom]=function(){var e=n.inspect({length:this.length});return this.constructor.name+" "+e})}(rk)),rk.exports}var ok=VS;function ak(e,t){e.emit("error",t)}var sk,uk,lk,ck,dk={destroy:function(e,t){var n=this,r=this._readableState&&this._readableState.destroyed,i=this._writableState&&this._writableState.destroyed;return r||i?(t?t(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,ok.nextTick(ak,this,e)):ok.nextTick(ak,this,e)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,(function(e){!t&&e?n._writableState?n._writableState.errorEmitted||(n._writableState.errorEmitted=!0,ok.nextTick(ak,n,e)):ok.nextTick(ak,n,e):t&&t(e)})),this)},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}},fk=function(e,t){if(hk("noDeprecation"))return e;var n=!1;return function(){if(!n){if(hk("throwDeprecation"))throw new Error(t);hk("traceDeprecation")?console.trace(t):console.warn(t),n=!0}return e.apply(this,arguments)}};function hk(e){try{if(!r.localStorage)return!1}catch(e){return!1}var t=r.localStorage[e];return null!=t&&"true"===String(t).toLowerCase()}function pk(){if(uk)return sk;uk=1;var e=VS;function t(e){var t=this;this.next=null,this.entry=null,this.finish=function(){!function(e,t,n){var r=e.entry;for(e.entry=null;r;){var i=r.callback;t.pendingcb--,i(n),r=r.next}t.corkedRequestsFree.next=e}(t,e)}}sk=p;var n,i=e.nextTick;p.WritableState=h;var o=Object.create(ZS);o.inherits=tk;var a,s={deprecate:fk},u=$S,l=QS.Buffer,c=(void 0!==r?r:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){},d=dk;function f(){}function h(r,o){n=n||mk(),r=r||{};var a=o instanceof n;this.objectMode=!!r.objectMode,a&&(this.objectMode=this.objectMode||!!r.writableObjectMode);var s=r.highWaterMark,u=r.writableHighWaterMark,l=this.objectMode?16:16384;this.highWaterMark=s||0===s?s:a&&(u||0===u)?u:l,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var c=!1===r.decodeStrings;this.decodeStrings=!c,this.defaultEncoding=r.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(t){!function(t,n){var r=t._writableState,o=r.sync,a=r.writecb;if(function(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}(r),n)!function(t,n,r,i,o){--n.pendingcb,r?(e.nextTick(o,i),e.nextTick(w,t,n),t._writableState.errorEmitted=!0,t.emit("error",i)):(o(i),t._writableState.errorEmitted=!0,t.emit("error",i),w(t,n))}(t,r,o,n,a);else{var s=y(r);s||r.corked||r.bufferProcessing||!r.bufferedRequest||v(t,r),o?i(g,t,r,s,a):g(t,r,s,a)}}(o,t)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new t(this)}function p(e){if(n=n||mk(),!(a.call(p,this)||this instanceof n))return new p(e);this._writableState=new h(e,this),this.writable=!0,e&&("function"==typeof e.write&&(this._write=e.write),"function"==typeof e.writev&&(this._writev=e.writev),"function"==typeof e.destroy&&(this._destroy=e.destroy),"function"==typeof e.final&&(this._final=e.final)),u.call(this)}function m(e,t,n,r,i,o,a){t.writelen=r,t.writecb=a,t.writing=!0,t.sync=!0,n?e._writev(i,t.onwrite):e._write(i,o,t.onwrite),t.sync=!1}function g(e,t,n,r){n||function(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}(e,t),t.pendingcb--,r(),w(e,t)}function v(e,n){n.bufferProcessing=!0;var r=n.bufferedRequest;if(e._writev&&r&&r.next){var i=n.bufferedRequestCount,o=new Array(i),a=n.corkedRequestsFree;a.entry=r;for(var s=0,u=!0;r;)o[s]=r,r.isBuf||(u=!1),r=r.next,s+=1;o.allBuffers=u,m(e,n,!0,n.length,o,"",a.finish),n.pendingcb++,n.lastBufferedRequest=null,a.next?(n.corkedRequestsFree=a.next,a.next=null):n.corkedRequestsFree=new t(n),n.bufferedRequestCount=0}else{for(;r;){var l=r.chunk,c=r.encoding,d=r.callback;if(m(e,n,!1,n.objectMode?1:l.length,l,c,d),r=r.next,n.bufferedRequestCount--,n.writing)break}null===r&&(n.lastBufferedRequest=null)}n.bufferedRequest=r,n.bufferProcessing=!1}function y(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function b(e,t){e._final((function(n){t.pendingcb--,n&&e.emit("error",n),t.prefinished=!0,e.emit("prefinish"),w(e,t)}))}function w(t,n){var r=y(n);return r&&(function(t,n){n.prefinished||n.finalCalled||("function"==typeof t._final?(n.pendingcb++,n.finalCalled=!0,e.nextTick(b,t,n)):(n.prefinished=!0,t.emit("prefinish")))}(t,n),0===n.pendingcb&&(n.finished=!0,t.emit("finish"))),r}return o.inherits(p,u),h.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(h.prototype,"buffer",{get:s.deprecate((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(a=Function.prototype[Symbol.hasInstance],Object.defineProperty(p,Symbol.hasInstance,{value:function(e){return!!a.call(this,e)||this===p&&e&&e._writableState instanceof h}})):a=function(e){return e instanceof this},p.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},p.prototype.write=function(t,n,r){var i,o=this._writableState,a=!1,s=!o.objectMode&&(i=t,l.isBuffer(i)||i instanceof c);return s&&!l.isBuffer(t)&&(t=function(e){return l.from(e)}(t)),"function"==typeof n&&(r=n,n=null),s?n="buffer":n||(n=o.defaultEncoding),"function"!=typeof r&&(r=f),o.ended?function(t,n){var r=new Error("write after end");t.emit("error",r),e.nextTick(n,r)}(this,r):(s||function(t,n,r,i){var o=!0,a=!1;return null===r?a=new TypeError("May not write null values to stream"):"string"==typeof r||void 0===r||n.objectMode||(a=new TypeError("Invalid non-string/buffer chunk")),a&&(t.emit("error",a),e.nextTick(i,a),o=!1),o}(this,o,t,r))&&(o.pendingcb++,a=function(e,t,n,r,i,o){if(!n){var a=function(e,t,n){return e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=l.from(t,n)),t}(t,r,i);r!==a&&(n=!0,i="buffer",r=a)}var s=t.objectMode?1:r.length;t.length+=s;var u=t.length-1))throw new TypeError("Unknown encoding: "+e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(p.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),p.prototype._write=function(e,t,n){n(new Error("_write() is not implemented"))},p.prototype._writev=null,p.prototype.end=function(t,n,r){var i=this._writableState;"function"==typeof t?(r=t,t=null,n=null):"function"==typeof n&&(r=n,n=null),null!=t&&this.write(t,n),i.corked&&(i.corked=1,this.uncork()),i.ending||function(t,n,r){n.ending=!0,w(t,n),r&&(n.finished?e.nextTick(r):t.once("finish",r)),n.ended=!0,t.writable=!1}(this,i,r)},Object.defineProperty(p.prototype,"destroyed",{get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),p.prototype.destroy=d.destroy,p.prototype._undestroy=d.undestroy,p.prototype._destroy=function(e,t){this.end(),t(e)},sk}function mk(){if(ck)return lk;ck=1;var e=VS,t=Object.keys||function(e){var t=[];for(var n in e)t.push(n);return t};lk=u;var n=Object.create(ZS);n.inherits=tk;var r=Ak(),i=pk();n.inherits(u,r);for(var o=t(i.prototype),a=0;a>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function i(e){var t=this.lastTotal-this.lastNeed,n=function(e,t,n){if(128!=(192&t[0]))return e.lastNeed=0,"�";if(e.lastNeed>1&&t.length>1){if(128!=(192&t[1]))return e.lastNeed=1,"�";if(e.lastNeed>2&&t.length>2&&128!=(192&t[2]))return e.lastNeed=2,"�"}}(this,e);return void 0!==n?n:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(e.copy(this.lastChar,t,0,e.length),void(this.lastNeed-=e.length))}function o(e,t){if((e.length-t)%2==0){var n=e.toString("utf16le",t);if(n){var r=n.charCodeAt(n.length-1);if(r>=55296&&r<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],n.slice(0,-1)}return n}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function a(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var n=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,n)}return t}function s(e,t){var n=(e.length-t)%3;return 0===n?e.toString("base64",t):(this.lastNeed=3-n,this.lastTotal=3,1===n?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-n))}function u(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function l(e){return e.toString(this.encoding)}function c(e){return e&&e.length?this.write(e):""}return bk.StringDecoder=n,n.prototype.write=function(e){if(0===e.length)return"";var t,n;if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";n=this.lastNeed,this.lastNeed=0}else n=0;return n=0?(o>0&&(e.lastNeed=o-1),o):--i=0?(o>0&&(e.lastNeed=o-2),o):--i=0?(o>0&&(2===o?o=0:e.lastNeed=o-3),o):0))}(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=n;var i=e.length-(n-this.lastNeed);return e.copy(this.lastChar,0,i),e.toString("utf8",t,i)},n.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length},bk}function Ak(){if(yk)return vk;yk=1;var e=VS;vk=g;var t,n=HS;g.ReadableState=m,kA.EventEmitter;var i=function(e,t){return e.listeners(t).length},o=$S,a=QS.Buffer,s=(void 0!==r?r:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){},u=Object.create(ZS);u.inherits=tk;var l=nk,c=void 0;c=l&&l.debuglog?l.debuglog("stream"):function(){};var d,f=ik(),h=dk;u.inherits(g,o);var p=["error","close","destroy","pause","resume"];function m(e,n){e=e||{};var r=n instanceof(t=t||mk());this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.readableObjectMode);var i=e.highWaterMark,o=e.readableHighWaterMark,a=this.objectMode?16:16384;this.highWaterMark=i||0===i?i:r&&(o||0===o)?o:a,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new f,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(d||(d=wk().StringDecoder),this.decoder=new d(e.encoding),this.encoding=e.encoding)}function g(e){if(t=t||mk(),!(this instanceof g))return new g(e);this._readableState=new m(e,this),this.readable=!0,e&&("function"==typeof e.read&&(this._read=e.read),"function"==typeof e.destroy&&(this._destroy=e.destroy)),o.call(this)}function v(e,t,n,r,i){var o,u=e._readableState;return null===t?(u.reading=!1,function(e,t){if(!t.ended){if(t.decoder){var n=t.decoder.end();n&&n.length&&(t.buffer.push(n),t.length+=t.objectMode?1:n.length)}t.ended=!0,A(e)}}(e,u)):(i||(o=function(e,t){var n,r;return r=t,a.isBuffer(r)||r instanceof s||"string"==typeof t||void 0===t||e.objectMode||(n=new TypeError("Invalid non-string/buffer chunk")),n}(u,t)),o?e.emit("error",o):u.objectMode||t&&t.length>0?("string"==typeof t||u.objectMode||Object.getPrototypeOf(t)===a.prototype||(t=function(e){return a.from(e)}(t)),r?u.endEmitted?e.emit("error",new Error("stream.unshift() after end event")):y(e,u,t,!0):u.ended?e.emit("error",new Error("stream.push() after EOF")):(u.reading=!1,u.decoder&&!n?(t=u.decoder.write(t),u.objectMode||0!==t.length?y(e,u,t,!1):E(e,u)):y(e,u,t,!1))):r||(u.reading=!1)),function(e){return!e.ended&&(e.needReadable||e.lengtht.highWaterMark&&(t.highWaterMark=function(e){return e>=b?e=b:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function A(t){var n=t._readableState;n.needReadable=!1,n.emittedReadable||(c("emitReadable",n.flowing),n.emittedReadable=!0,n.sync?e.nextTick(_,t):_(t))}function _(e){c("emit readable"),e.emit("readable"),C(e)}function E(t,n){n.readingMore||(n.readingMore=!0,e.nextTick(S,t,n))}function S(e,t){for(var n=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length=t.length?(n=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.head.data:t.buffer.concat(t.length),t.buffer.clear()):n=function(e,t,n){var r;return eo.length?o.length:e;if(a===o.length?i+=o:i+=o.slice(0,e),0===(e-=a)){a===o.length?(++r,n.next?t.head=n.next:t.head=t.tail=null):(t.head=n,n.data=o.slice(a));break}++r}return t.length-=r,i}(e,t):function(e,t){var n=a.allocUnsafe(e),r=t.head,i=1;for(r.data.copy(n),e-=r.data.length;r=r.next;){var o=r.data,s=e>o.length?o.length:e;if(o.copy(n,n.length-e,0,s),0===(e-=s)){s===o.length?(++i,r.next?t.head=r.next:t.head=t.tail=null):(t.head=r,r.data=o.slice(s));break}++i}return t.length-=i,n}(e,t),r}(e,t.buffer,t.decoder),n);var n}function R(t){var n=t._readableState;if(n.length>0)throw new Error('"endReadable()" called on non-empty stream');n.endEmitted||(n.ended=!0,e.nextTick(O,n,t))}function O(e,t){e.endEmitted||0!==e.length||(e.endEmitted=!0,t.readable=!1,t.emit("end"))}function T(e,t){for(var n=0,r=e.length;n=t.highWaterMark||t.ended))return c("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?R(this):A(this),null;if(0===(e=w(e,t))&&t.ended)return 0===t.length&&R(this),null;var r,i=t.needReadable;return c("need readable",i),(0===t.length||t.length-e0?x(e,t):null)?(t.needReadable=!0,e=0):t.length-=e,0===t.length&&(t.ended||(t.needReadable=!0),n!==e&&t.ended&&R(this)),null!==r&&this.emit("data",r),r},g.prototype._read=function(e){this.emit("error",new Error("_read() is not implemented"))},g.prototype.pipe=function(t,r){var o=this,a=this._readableState;switch(a.pipesCount){case 0:a.pipes=t;break;case 1:a.pipes=[a.pipes,t];break;default:a.pipes.push(t)}a.pipesCount+=1,c("pipe count=%d opts=%j",a.pipesCount,r);var s=r&&!1===r.end||t===P.stdout||t===P.stderr?y:l;function u(e,n){c("onunpipe"),e===o&&n&&!1===n.hasUnpiped&&(n.hasUnpiped=!0,c("cleanup"),t.removeListener("close",g),t.removeListener("finish",v),t.removeListener("drain",d),t.removeListener("error",m),t.removeListener("unpipe",u),o.removeListener("end",l),o.removeListener("end",y),o.removeListener("data",p),f=!0,!a.awaitDrain||t._writableState&&!t._writableState.needDrain||d())}function l(){c("onend"),t.end()}a.endEmitted?e.nextTick(s):o.once("end",s),t.on("unpipe",u);var d=function(e){return function(){var t=e._readableState;c("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&i(e,"data")&&(t.flowing=!0,C(e))}}(o);t.on("drain",d);var f=!1,h=!1;function p(e){c("ondata"),h=!1,!1!==t.write(e)||h||((1===a.pipesCount&&a.pipes===t||a.pipesCount>1&&-1!==T(a.pipes,t))&&!f&&(c("false write response, pause",a.awaitDrain),a.awaitDrain++,h=!0),o.pause())}function m(e){c("onerror",e),y(),t.removeListener("error",m),0===i(t,"error")&&t.emit("error",e)}function g(){t.removeListener("finish",v),y()}function v(){c("onfinish"),t.removeListener("close",g),y()}function y(){c("unpipe"),o.unpipe(t)}return o.on("data",p),function(e,t,r){if("function"==typeof e.prependListener)return e.prependListener(t,r);e._events&&e._events[t]?n(e._events[t])?e._events[t].unshift(r):e._events[t]=[r,e._events[t]]:e.on(t,r)}(t,"error",m),t.once("close",g),t.once("finish",v),t.emit("pipe",o),a.flowing||(c("pipe resume"),o.resume()),t},g.prototype.unpipe=function(e){var t=this._readableState,n={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,n)),this;if(!e){var r=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var o=0;ot.destroy(e||void 0))),t}ignoreStream(e){if(!e)throw new Error("ObjectMultiplex - name must not be empty");if(this._substreams[e])throw new Error(`ObjectMultiplex - Substream for name "${e}" already exists`);this._substreams[e]=Xk}_read(){}_write(e,t,n){const{name:r,data:i}=e;if(!r)return console.warn(`ObjectMultiplex - malformed chunk without name "${e}"`),n();const o=this._substreams[r];return o?(o!==Xk&&o.push(i),n()):(console.warn(`ObjectMultiplex - orphaned data for stream "${r}"`),n())}}FS.ObjectMultiplex=Jk;var eM=FS.ObjectMultiplex;const tM=e=>null!==e&&"object"==typeof e&&"function"==typeof e.pipe;tM.writable=e=>tM(e)&&!1!==e.writable&&"function"==typeof e._write&&"object"==typeof e._writableState,tM.readable=e=>tM(e)&&!1!==e.readable&&"function"==typeof e._read&&"object"==typeof e._readableState,tM.duplex=e=>tM.writable(e)&&tM.readable(e),tM.transform=e=>tM.duplex(e)&&"function"==typeof e._transform;var nM=tM,rM={},iM={};Object.defineProperty(iM,"__esModule",{value:!0});const oM=Lk;iM.default=function(e){if(!e||!e.engine)throw new Error("Missing engine parameter!");const{engine:t}=e,n=new oM.Duplex({objectMode:!0,read:()=>{},write:function(e,r,i){t.handle(e,((e,t)=>{n.push(t)})),i()}});return t.on&&t.on("notification",(e=>{n.push(e)})),n};var aM={},sM={};Object.defineProperty(sM,"__esModule",{value:!0});const uM=kA;function lM(e,t,n){try{Reflect.apply(e,t,n)}catch(e){setTimeout((()=>{throw e}))}}class cM extends uM.EventEmitter{emit(e,...t){let n="error"===e;const r=this._events;if(void 0!==r)n=n&&void 0===r.error;else if(!n)return!1;if(n){let e;if(t.length>0&&([e]=t),e instanceof Error)throw e;const n=new Error("Unhandled error."+(e?` (${e.message})`:""));throw n.context=e,n}const i=r[e];if(void 0===i)return!1;if("function"==typeof i)lM(i,this,t);else{const e=i.length,n=function(e){const t=e.length,n=new Array(t);for(let r=0;r{},write:function(n,o,a){let s=null;try{n.id?function(e){const n=t[e.id];n?(delete t[e.id],Object.assign(n.res,e),setTimeout(n.end)):console.warn(`StreamMiddleware - Unknown response id "${e.id}"`)}(n):function(n){(null==e?void 0:e.retryOnMessage)&&n.method===e.retryOnMessage&&Object.values(t).forEach((({req:e,retryCount:n=0})=>{if(e.id){if(n>=3)throw new Error(`StreamMiddleware - Retry limit exceeded for request id "${e.id}"`);t[e.id].retryCount=n+1,i(e)}})),r.emit("notification",n)}(n)}catch(e){s=e}a(s)}}),r=new fM.default;return{events:r,middleware:(e,n,r,o)=>{t[e.id]={req:e,res:n,next:r,end:o},i(e)},stream:n};function i(e){n.push(e)}};var pM=r&&r.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(rM,"__esModule",{value:!0}),rM.createStreamMiddleware=rM.createEngineStream=void 0;const mM=pM(iM);rM.createEngineStream=mM.default;const gM=pM(aM);rM.createStreamMiddleware=gM.default;var vM=Uk,yM=Wk,bM=o(Object.freeze({__proto__:null,default:{}})),wM=function(){},AM=/^v?\.0/.test(P.version),_M=function(e){return"function"==typeof e},EM=function(e,t,n,r){r=vM(r);var i=!1;e.on("close",(function(){i=!0})),yM(e,{readable:t,writable:n},(function(e){if(e)return r(e);i=!0,r()}));var o=!1;return function(t){if(!i&&!o)return o=!0,function(e){return!!AM&&!!bM&&(e instanceof(bM.ReadStream||wM)||e instanceof(bM.WriteStream||wM))&&_M(e.close)}(e)?e.close(wM):function(e){return e.setHeader&&_M(e.abort)}(e)?e.abort():_M(e.destroy)?e.destroy():void r(t||new Error("stream was destroyed"))}},SM=function(e){e()},kM=function(e,t){return e.pipe(t)},MM=function(){var e,t=Array.prototype.slice.call(arguments),n=_M(t[t.length-1]||wM)&&t.pop()||wM;if(Array.isArray(t[0])&&(t=t[0]),t.length<2)throw new Error("pump requires two streams per minimum");var r=t.map((function(i,o){var a=o0,(function(t){e||(e=t),t&&r.forEach(SM),a||(r.forEach(SM),n(e))}))}));return t.reduce(kM)},CM=r&&r.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(zS,"__esModule",{value:!0}),zS.StreamProvider=zS.AbstractStreamProvider=void 0;const xM=CM(eM),RM=nM,OM=rM,TM=CM(MM),PM=CM(A_),LM=E_,IM=gA;class NM extends IM.BaseProvider{constructor(e,{jsonRpcStreamName:t,logger:n,maxEventListeners:r,rpcMiddleware:i}){if(super({logger:n,maxEventListeners:r,rpcMiddleware:i}),!RM.duplex(e))throw new Error(PM.default.errors.invalidDuplexStream());this._handleStreamDisconnect=this._handleStreamDisconnect.bind(this);const o=new xM.default;TM.default(e,o,e,this._handleStreamDisconnect.bind(this,"MetaMask")),this._jsonRpcConnection=OM.createStreamMiddleware({retryOnMessage:"METAMASK_EXTENSION_CONNECT_CAN_RETRY"}),TM.default(this._jsonRpcConnection.stream,o.createStream(t),this._jsonRpcConnection.stream,this._handleStreamDisconnect.bind(this,"MetaMask RpcProvider")),this._rpcEngine.push(this._jsonRpcConnection.middleware),this._jsonRpcConnection.events.on("notification",(t=>{const{method:n,params:r}=t;"metamask_accountsChanged"===n?this._handleAccountsChanged(r):"metamask_unlockStateChanged"===n?this._handleUnlockStateChanged(r):"metamask_chainChanged"===n?this._handleChainChanged(r):LM.EMITTED_NOTIFICATIONS.includes(n)?this.emit("message",{type:n,data:r}):"METAMASK_STREAM_FAILURE"===n&&e.destroy(new Error(PM.default.errors.permanentlyDisconnected()))}))}async _initializeStateAsync(){let e;try{e=await this.request({method:"metamask_getProviderState"})}catch(e){this._log.error("MetaMask: Failed to get initial state. Please report this bug.",e)}this._initializeState(e)}_handleStreamDisconnect(e,t){let n=`MetaMask: Lost connection to "${e}".`;(null==t?void 0:t.stack)&&(n+=`\n${t.stack}`),this._log.warn(n),this.listenerCount("error")>0&&this.emit("error",n),this._handleDisconnect(!1,t?t.message:void 0)}_handleChainChanged({chainId:e,networkVersion:t}={}){LM.isValidChainId(e)&&LM.isValidNetworkVersion(t)?"loading"===t?this._handleDisconnect(!0):super._handleChainChanged({chainId:e}):this._log.error(PM.default.errors.invalidNetworkParams(),{chainId:e,networkVersion:t})}}zS.AbstractStreamProvider=NM,zS.StreamProvider=class extends NM{async initialize(){return this._initializeStateAsync()}},function(e){var t=r&&r.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0}),e.MetaMaskInpageProvider=e.MetaMaskInpageProviderStreamName=void 0;const n=RA,i=LS,o=t(A_),a=E_,s=zS;e.MetaMaskInpageProviderStreamName="metamask-provider";class u extends s.AbstractStreamProvider{constructor(t,{jsonRpcStreamName:n=e.MetaMaskInpageProviderStreamName,logger:r=console,maxEventListeners:o,shouldSendMetadata:s}={}){if(super(t,{jsonRpcStreamName:n,logger:r,maxEventListeners:o,rpcMiddleware:a.getDefaultExternalMiddleware(r)}),this._sentWarnings={enable:!1,experimentalMethods:!1,send:!1,events:{close:!1,data:!1,networkChanged:!1,notification:!1}},this._initializeStateAsync(),this.networkVersion=null,this.isMetaMask=!0,this._sendSync=this._sendSync.bind(this),this.enable=this.enable.bind(this),this.send=this.send.bind(this),this.sendAsync=this.sendAsync.bind(this),this._warnOfDeprecation=this._warnOfDeprecation.bind(this),this._metamask=this._getExperimentalApi(),this._jsonRpcConnection.events.on("notification",(e=>{const{method:t}=e;a.EMITTED_NOTIFICATIONS.includes(t)&&(this.emit("data",e),this.emit("notification",e.params.result))})),s)if("complete"===document.readyState)i.sendSiteMetadata(this._rpcEngine,this._log);else{const e=()=>{i.sendSiteMetadata(this._rpcEngine,this._log),window.removeEventListener("DOMContentLoaded",e)};window.addEventListener("DOMContentLoaded",e)}}sendAsync(e,t){this._rpcRequest(e,t)}addListener(e,t){return this._warnOfDeprecation(e),super.addListener(e,t)}on(e,t){return this._warnOfDeprecation(e),super.on(e,t)}once(e,t){return this._warnOfDeprecation(e),super.once(e,t)}prependListener(e,t){return this._warnOfDeprecation(e),super.prependListener(e,t)}prependOnceListener(e,t){return this._warnOfDeprecation(e),super.prependOnceListener(e,t)}_handleDisconnect(e,t){super._handleDisconnect(e,t),this.networkVersion&&!e&&(this.networkVersion=null)}_warnOfDeprecation(e){var t;!1===(null===(t=this._sentWarnings)||void 0===t?void 0:t.events[e])&&(this._log.warn(o.default.warnings.events[e]),this._sentWarnings.events[e]=!0)}enable(){return this._sentWarnings.enable||(this._log.warn(o.default.warnings.enableDeprecation),this._sentWarnings.enable=!0),new Promise(((e,t)=>{try{this._rpcRequest({method:"eth_requestAccounts",params:[]},a.getRpcPromiseCallback(e,t))}catch(e){t(e)}}))}send(e,t){return this._sentWarnings.send||(this._log.warn(o.default.warnings.sendDeprecation),this._sentWarnings.send=!0),"string"!=typeof e||t&&!Array.isArray(t)?e&&"object"==typeof e&&"function"==typeof t?this._rpcRequest(e,t):this._sendSync(e):new Promise(((n,r)=>{try{this._rpcRequest({method:e,params:t},a.getRpcPromiseCallback(n,r,!1))}catch(e){r(e)}}))}_sendSync(e){let t;switch(e.method){case"eth_accounts":t=this.selectedAddress?[this.selectedAddress]:[];break;case"eth_coinbase":t=this.selectedAddress||null;break;case"eth_uninstallFilter":this._rpcRequest(e,a.NOOP),t=!0;break;case"net_version":t=this.networkVersion||null;break;default:throw new Error(o.default.errors.unsupportedSync(e.method))}return{id:e.id,jsonrpc:e.jsonrpc,result:t}}_getExperimentalApi(){return new Proxy({isUnlocked:async()=>(this._state.initialized||await new Promise((e=>{this.on("_initialized",(()=>e()))})),this._state.isUnlocked),requestBatch:async e=>{if(!Array.isArray(e))throw n.ethErrors.rpc.invalidRequest({message:"Batch requests must be made with an array of request objects.",data:e});return new Promise(((t,n)=>{this._rpcRequest(e,a.getRpcPromiseCallback(t,n))}))}},{get:(e,t,...n)=>(this._sentWarnings.experimentalMethods||(this._log.warn(o.default.warnings.experimentalMethods),this._sentWarnings.experimentalMethods=!0),Reflect.get(e,t,...n))})}_handleChainChanged({chainId:e,networkVersion:t}={}){super._handleChainChanged({chainId:e,networkVersion:t}),this._state.isConnected&&t!==this.networkVersion&&(this.networkVersion=t,this._state.initialized&&this.emit("networkChanged",this.networkVersion))}}e.MetaMaskInpageProvider=u}(PS);var DM={CHROME_ID:"nkbihfbeogaeaoehlefnkodbefgpgknn",FIREFOX_ID:"webextension@metamask.io"},BM=r&&r.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(U_,"__esModule",{value:!0}),U_.createExternalExtensionProvider=void 0;const jM=BM(z_),UM=TS,zM=PS,FM=zS,qM=E_,WM=BM(DM),VM=UM.detect();U_.createExternalExtensionProvider=function(){let e;try{const t=function(){switch(null==VM?void 0:VM.name){case"chrome":default:return WM.default.CHROME_ID;case"firefox":return WM.default.FIREFOX_ID}}(),n=chrome.runtime.connect(t),r=new jM.default(n);e=new FM.StreamProvider(r,{jsonRpcStreamName:zM.MetaMaskInpageProviderStreamName,logger:console,rpcMiddleware:qM.getDefaultExternalMiddleware(console)}),e.initialize()}catch(e){throw console.dir("MetaMask connect error.",e),e}return e};var KM={},HM={};Object.defineProperty(HM,"__esModule",{value:!0}),HM.shimWeb3=void 0,HM.shimWeb3=function(e,t=console){let n=!1,r=!1;if(!window.web3){const i="__isMetaMaskShim__";let o={currentProvider:e};Object.defineProperty(o,i,{value:!0,enumerable:!0,configurable:!1,writable:!1}),o=new Proxy(o,{get:(o,a,...s)=>("currentProvider"!==a||n?"currentProvider"===a||a===i||r||(r=!0,t.error("MetaMask no longer injects web3. For details, see: https://docs.metamask.io/guide/provider-migration.html#replacing-window-web3"),e.request({method:"metamask_logWeb3ShimUsage"}).catch((e=>{t.debug("MetaMask: Failed to log web3 shim usage.",e)}))):(n=!0,t.warn("You are accessing the MetaMask window.web3.currentProvider shim. This property is deprecated; use window.ethereum instead. For details, see: https://docs.metamask.io/guide/provider-migration.html#replacing-window-web3")),Reflect.get(o,a,...s)),set:(...e)=>(t.warn("You are accessing the MetaMask window.web3 shim. This object is deprecated; use window.ethereum instead. For details, see: https://docs.metamask.io/guide/provider-migration.html#replacing-window-web3"),Reflect.set(...e))}),Object.defineProperty(window,"web3",{value:o,enumerable:!1,configurable:!0,writable:!0})}},Object.defineProperty(KM,"__esModule",{value:!0}),KM.setGlobalProvider=KM.initializeProvider=void 0;const $M=PS,YM=HM;function GM(e){window.ethereum=e,window.dispatchEvent(new Event("ethereum#initialized"))}KM.initializeProvider=function({connectionStream:e,jsonRpcStreamName:t,logger:n=console,maxEventListeners:r=100,shouldSendMetadata:i=!0,shouldSetOnWindow:o=!0,shouldShimWeb3:a=!1}){const s=new $M.MetaMaskInpageProvider(e,{jsonRpcStreamName:t,logger:n,maxEventListeners:r,shouldSendMetadata:i}),u=new Proxy(s,{deleteProperty:()=>!0});return o&&GM(u),a&&YM.shimWeb3(u,n),u},KM.setGlobalProvider=GM,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.StreamProvider=e.shimWeb3=e.setGlobalProvider=e.MetaMaskInpageProvider=e.MetaMaskInpageProviderStreamName=e.initializeProvider=e.createExternalExtensionProvider=e.BaseProvider=void 0;const t=gA;Object.defineProperty(e,"BaseProvider",{enumerable:!0,get:function(){return t.BaseProvider}});const n=U_;Object.defineProperty(e,"createExternalExtensionProvider",{enumerable:!0,get:function(){return n.createExternalExtensionProvider}});const r=KM;Object.defineProperty(e,"initializeProvider",{enumerable:!0,get:function(){return r.initializeProvider}}),Object.defineProperty(e,"setGlobalProvider",{enumerable:!0,get:function(){return r.setGlobalProvider}});const i=PS;Object.defineProperty(e,"MetaMaskInpageProvider",{enumerable:!0,get:function(){return i.MetaMaskInpageProvider}}),Object.defineProperty(e,"MetaMaskInpageProviderStreamName",{enumerable:!0,get:function(){return i.MetaMaskInpageProviderStreamName}});const o=HM;Object.defineProperty(e,"shimWeb3",{enumerable:!0,get:function(){return o.shimWeb3}});const a=zS;Object.defineProperty(e,"StreamProvider",{enumerable:!0,get:function(){return a.StreamProvider}})}(mA);class QM extends mA.MetaMaskInpageProvider{constructor({connectionStream:e,shouldSendMetadata:t,debug:n=!1,autoRequestAccounts:r=!1}){super(e,{logger:console,maxEventListeners:100,shouldSendMetadata:t}),this.state={debug:!1,autoRequestAccounts:!1,providerStateRequested:!1},n&&console.debug(`SDKProvider::constructor debug=${n} autoRequestAccounts=${r}`),this.state.autoRequestAccounts=r,this.state.debug=n}forceInitializeState(){return fA(this,void 0,void 0,(function*(){return this.state.debug&&console.debug(`SDKProvider::forceInitializeState() autoRequestAccounts=${this.state.autoRequestAccounts}`),this._initializeStateAsync()}))}_setConnected(){this.state.debug&&console.debug("SDKProvider::_setConnected()"),this._state.isConnected=!0}getState(){return this._state}getSDKProviderState(){return this.state}setSDKProviderState(e){this.state=Object.assign(Object.assign({},this.state),e)}handleDisconnect({terminate:e=!1}){!function({terminate:e=!1,instance:t}){const{state:n}=t;t.isConnected()?(n.debug&&console.debug(`SDKProvider::handleDisconnect() cleaning up provider state terminate=${e}`,t),e&&(t.chainId=null,t._state.accounts=null,t.selectedAddress=null,t._state.isUnlocked=!1,t._state.isPermanentlyDisconnected=!0,t._state.initialized=!1),t._handleAccountsChanged([]),t._state.isConnected=!1,t.emit("disconnect",RA.ethErrors.provider.disconnected()),n.providerStateRequested=!1):n.debug&&console.debug("SDKProvider::handleDisconnect() not connected --- interrup disconnection")}({terminate:e,instance:this})}_initializeStateAsync(){return fA(this,void 0,void 0,(function*(){return function(e){var t;return fA(this,void 0,void 0,(function*(){void 0===e.state&&(e.state={debug:!1,autoRequestAccounts:!1,providerStateRequested:!1});const{state:n}=e;if(n.debug&&console.debug("SDKProvider::_initializeStateAsync()"),n.providerStateRequested)n.debug&&console.debug("SDKProvider::_initializeStateAsync() initialization already in progress");else{let r;n.providerStateRequested=!0;try{r=yield e.request({method:"metamask_getProviderState"})}catch(t){return e._log.error("MetaMask: Failed to get initial state. Please report this bug.",t),void(n.providerStateRequested=!1)}if(n.debug&&console.debug(`SDKProvider::_initializeStateAsync state selectedAddress=${e.selectedAddress} `,r),0===(null===(t=null==r?void 0:r.accounts)||void 0===t?void 0:t.length))if(n.debug&&console.debug("SDKProvider::_initializeStateAsync initial state doesn't contain accounts"),e.selectedAddress)n.debug&&console.debug("SDKProvider::_initializeStateAsync using instance.selectedAddress instead"),r.accounts=[e.selectedAddress];else{n.debug&&console.debug("SDKProvider::_initializeStateAsync Fetch accounts remotely.");const t=yield e.request({method:"eth_requestAccounts",params:[]});r.accounts=t}e._initializeState(r),n.providerStateRequested=!1}}))}(this)}))}_initializeState(e){return function(e,t,n){const{state:r}=e;return r.debug&&console.debug("SDKProvider::_initializeState() set state._initialized to false"),e._state.initialized=!1,t(n)}(this,super._initializeState.bind(this),e)}_handleChainChanged({chainId:e,networkVersion:t}={}){!function({instance:e,chainId:t,networkVersion:n,superHandleChainChanged:r}){const{state:i}=e;i.debug&&console.debug(`SDKProvider::_handleChainChanged chainId=${t} networkVersion=${n}`);let o=n;n||(console.info("forced network version to prevent provider error"),o="1"),e._state.isConnected=!0,e.emit("connect",{chainId:t}),r({chainId:t,networkVersion:o})}({instance:this,chainId:e,networkVersion:t,superHandleChainChanged:super._handleChainChanged.bind(this)})}}var ZM={exports:{}};!function(e,t){!function(t){var n=Object.hasOwnProperty,r=Array.isArray?Array.isArray:function(e){return"[object Array]"===Object.prototype.toString.call(e)},i="object"==typeof P&&!0,o="function"==typeof Symbol,a="object"==typeof Reflect,s="function"==typeof setImmediate?setImmediate:setTimeout,u=o?a&&"function"==typeof Reflect.ownKeys?Reflect.ownKeys:function(e){var t=Object.getOwnPropertyNames(e);return t.push.apply(t,Object.getOwnPropertySymbols(e)),t}:Object.keys;function l(){this._events={},this._conf&&c.call(this,this._conf)}function c(e){e&&(this._conf=e,e.delimiter&&(this.delimiter=e.delimiter),e.maxListeners!==t&&(this._maxListeners=e.maxListeners),e.wildcard&&(this.wildcard=e.wildcard),e.newListener&&(this._newListener=e.newListener),e.removeListener&&(this._removeListener=e.removeListener),e.verboseMemoryLeak&&(this.verboseMemoryLeak=e.verboseMemoryLeak),e.ignoreErrors&&(this.ignoreErrors=e.ignoreErrors),this.wildcard&&(this.listenerTree={}))}function d(e,t){var n="(node) warning: possible EventEmitter memory leak detected. "+e+" listeners added. Use emitter.setMaxListeners() to increase limit.";if(this.verboseMemoryLeak&&(n+=" Event name: "+t+"."),void 0!==P&&P.emitWarning){var r=new Error(n);r.name="MaxListenersExceededWarning",r.emitter=this,r.count=e,P.emitWarning(r)}else console.error(n),console.trace&&console.trace()}var f=function(e,t,n){var r=arguments.length;switch(r){case 0:return[];case 1:return[e];case 2:return[e,t];case 3:return[e,t,n];default:for(var i=new Array(r);r--;)i[r]=arguments[r];return i}};function h(e,n){for(var r={},i=e.length,o=n?n.length:0,a=0;a0;)if(o===e[a])return r;i(t)}}Object.assign(p.prototype,{subscribe:function(e,t,n){var r=this,i=this._target,o=this._emitter,a=this._listeners,s=function(){var r=f.apply(null,arguments),a={data:r,name:t,original:e};n?!1!==n.call(i,a)&&o.emit.apply(o,[a.name].concat(r)):o.emit.apply(o,[t].concat(r))};if(a[e])throw Error("Event '"+e+"' is already listening");this._listenersCount++,o._newListener&&o._removeListener&&!r._onNewListener?(this._onNewListener=function(n){n===t&&null===a[e]&&(a[e]=s,r._on.call(i,e,s))},o.on("newListener",this._onNewListener),this._onRemoveListener=function(n){n===t&&!o.hasListeners(n)&&a[e]&&(a[e]=null,r._off.call(i,e,s))},a[e]=null,o.on("removeListener",this._onRemoveListener)):(a[e]=s,r._on.call(i,e,s))},unsubscribe:function(e){var t,n,r,i=this,o=this._listeners,a=this._emitter,s=this._off,l=this._target;if(e&&"string"!=typeof e)throw TypeError("event must be a string");function c(){i._onNewListener&&(a.off("newListener",i._onNewListener),a.off("removeListener",i._onRemoveListener),i._onNewListener=null,i._onRemoveListener=null);var e=_.call(a,i);a._observers.splice(e,1)}if(e){if(!(t=o[e]))return;s.call(l,e,t),delete o[e],--this._listenersCount||c()}else{for(r=(n=u(o)).length;r-- >0;)e=n[r],s.call(l,e,o[e]);this._listeners={},this._listenersCount=0,c()}}});var y=v(["function"]),w=v(["object","function"]);function A(e,t,n){var r,i,o,a=0,s=new e((function(u,l,c){function d(){i&&(i=null),a&&(clearTimeout(a),a=0)}n=m(n,{timeout:0,overload:!1},{timeout:function(e,t){return("number"!=typeof(e*=1)||e<0||!Number.isFinite(e))&&t("timeout must be a positive number"),e}}),r=!n.overload&&"function"==typeof e.prototype.cancel&&"function"==typeof c;var f=function(e){d(),u(e)},h=function(e){d(),l(e)};r?t(f,h,c):(i=[function(e){h(e||Error("canceled"))}],t(f,h,(function(e){if(o)throw Error("Unable to subscribe on cancel event asynchronously");if("function"!=typeof e)throw TypeError("onCancel callback must be a function");i.push(e)})),o=!0),n.timeout>0&&(a=setTimeout((function(){var e=Error("timeout");e.code="ETIMEDOUT",a=0,s.cancel(e),l(e)}),n.timeout))}));return r||(s.cancel=function(e){if(i){for(var t=i.length,n=1;n0;)"_listeners"!==(h=y[s])&&(b=E(e,t,n[h],r+1,i))&&(w?w.push.apply(w,b):w=b);return w}if("**"===A){for((v=r+1===i||r+2===i&&"*"===_)&&n._listeners&&(w=E(e,t,n,i,i)),s=(y=u(n)).length;s-- >0;)"_listeners"!==(h=y[s])&&("*"===h||"**"===h?(n[h]._listeners&&!v&&(b=E(e,t,n[h],i,i))&&(w?w.push.apply(w,b):w=b),b=E(e,t,n[h],r,i)):b=E(e,t,n[h],h===_?r+2:r,i),b&&(w?w.push.apply(w,b):w=b));return w}n[A]&&(w=E(e,t,n[A],r+1,i))}if((p=n["*"])&&E(e,t,p,r+1,i),m=n["**"])if(r0;)"_listeners"!==(h=y[s])&&(h===_?E(e,t,m[h],r+2,i):h===A?E(e,t,m[h],r+1,i):((g={})[h]=m[h],E(e,t,{"**":g},r+1,i)));else m._listeners?E(e,t,m,i,i):m["*"]&&m["*"]._listeners&&E(e,t,m["*"],i,i);return w}function S(e,t,n){var r,i,o=0,a=0,s=this.delimiter,u=s.length;if("string"==typeof e)if(-1!==(r=e.indexOf(s))){i=new Array(5);do{i[o++]=e.slice(a,r),a=r+u}while(-1!==(r=e.indexOf(s,a)));i[o++]=e.slice(a)}else i=[e],o=1;else i=e,o=e.length;if(o>1)for(r=0;r+10&&c._listeners.length>this._maxListeners&&(c._listeners.warned=!0,d.call(this,c._listeners.length,l))):c._listeners=t,!0;return!0}function k(e,t,n,r){for(var i,o,a,s,l=u(e),c=l.length,d=e._listeners;c-- >0;)i=e[o=l[c]],a="_listeners"===o?n:n?n.concat(o):[o],s=r||"symbol"==typeof o,d&&t.push(s?a:a.join(this.delimiter)),"object"==typeof i&&k.call(this,i,t,a,s);return t}function M(e){for(var t,n,r,i=u(e),o=i.length;o-- >0;)(t=e[n=i[o]])&&(r=!0,"_listeners"===n||M(t)||delete e[n]);return r}function C(e,t,n){this.emitter=e,this.event=t,this.listener=n}function x(e,n,r){if(!0===r)a=!0;else if(!1===r)o=!0;else{if(!r||"object"!=typeof r)throw TypeError("options should be an object or true");var o=r.async,a=r.promisify,u=r.nextTick,l=r.objectify}if(o||u||a){var c=n,d=n._origin||n;if(u&&!i)throw Error("process.nextTick is not supported");a===t&&(a="AsyncFunction"===n.constructor.name),n=function(){var e=arguments,t=this,n=this.event;return a?u?Promise.resolve():new Promise((function(e){s(e)})).then((function(){return t.event=n,c.apply(t,e)})):(u?b:s)((function(){t.event=n,c.apply(t,e)}))},n._async=!0,n._origin=d}return[n,l?new C(this,e,n):this]}function R(e){this._events={},this._newListener=!1,this._removeListener=!1,this.verboseMemoryLeak=!1,c.call(this,e)}C.prototype.off=function(){return this.emitter.off(this.event,this.listener),this},R.EventEmitter2=R,R.prototype.listenTo=function(e,n,i){if("object"!=typeof e)throw TypeError("target musts be an object");var o=this;function a(t){if("object"!=typeof t)throw TypeError("events must be an object");var n,r=i.reducers,a=_.call(o,e);n=-1===a?new p(o,e,i):o._observers[a];for(var s,l=u(t),c=l.length,d="function"==typeof r,f=0;f0;)r=n[i],e&&r._target!==e||(r.unsubscribe(t),o=!0);return o},R.prototype.delimiter=".",R.prototype.setMaxListeners=function(e){e!==t&&(this._maxListeners=e,this._conf||(this._conf={}),this._conf.maxListeners=e)},R.prototype.getMaxListeners=function(){return this._maxListeners},R.prototype.event="",R.prototype.once=function(e,t,n){return this._once(e,t,!1,n)},R.prototype.prependOnceListener=function(e,t,n){return this._once(e,t,!0,n)},R.prototype._once=function(e,t,n,r){return this._many(e,1,t,n,r)},R.prototype.many=function(e,t,n,r){return this._many(e,t,n,!1,r)},R.prototype.prependMany=function(e,t,n,r){return this._many(e,t,n,!0,r)},R.prototype._many=function(e,t,n,r,i){var o=this;if("function"!=typeof n)throw new Error("many only accepts instances of Function");function a(){return 0==--t&&o.off(e,a),n.apply(this,arguments)}return a._origin=n,this._on(e,a,r,i)},R.prototype.emit=function(){if(!this._events&&!this._all)return!1;this._events||l.call(this);var e,t,n,r,i,a,s=arguments[0],u=this.wildcard;if("newListener"===s&&!this._newListener&&!this._events.newListener)return!1;if(u&&(e=s,"newListener"!==s&&"removeListener"!==s&&"object"==typeof s)){if(n=s.length,o)for(r=0;r3)for(t=new Array(d-1),i=1;i3)for(n=new Array(f-1),a=1;a0&&this._events[e].length>this._maxListeners&&(this._events[e].warned=!0,d.call(this,this._events[e].length,e))):this._events[e]=n,a)},R.prototype.off=function(e,t){if("function"!=typeof t)throw new Error("removeListener only takes instances of Function");var n,i=[];if(this.wildcard){var o="string"==typeof e?e.split(this.delimiter):e.slice();if(!(i=E.call(this,null,o,this.listenerTree,0)))return this}else{if(!this._events[e])return this;n=this._events[e],i.push({_listeners:n})}for(var a=0;a0){for(n=0,r=(t=this._all).length;n0;)"function"==typeof(r=s[n[o]])?i.push(r):i.push.apply(i,r);return i}if(this.wildcard){if(!(a=this.listenerTree))return[];var l=[],c="string"==typeof e?e.split(this.delimiter):e.slice();return E.call(this,l,c,a,0),l}return s&&(r=s[e])?"function"==typeof r?[r]:r:[]},R.prototype.eventNames=function(e){var t=this._events;return this.wildcard?k.call(this,this.listenerTree,[],null,e):t?u(t):[]},R.prototype.listenerCount=function(e){return this.listeners(e).length},R.prototype.hasListeners=function(e){if(this.wildcard){var n=[],r="string"==typeof e?e.split(this.delimiter):e.slice();return E.call(this,n,r,this.listenerTree,0),n.length>0}var i=this._events,o=this._all;return!!(o&&o.length||i&&(e===t?u(i).length:i[e]))},R.prototype.listenersAny=function(){return this._all?this._all:[]},R.prototype.waitFor=function(e,n){var r=this,i=typeof n;return"number"===i?n={timeout:n}:"function"===i&&(n={filter:n}),A((n=m(n,{timeout:0,filter:t,handleError:!1,Promise,overload:!1},{filter:y,Promise:g})).Promise,(function(t,i,o){function a(){var o=n.filter;if(!o||o.apply(r,arguments))if(r.off(e,a),n.handleError){var s=arguments[0];s?i(s):t(f.apply(null,arguments).slice(1))}else t(f.apply(null,arguments))}o((function(){r.off(e,a)})),r._on(e,a,!1)}),{timeout:n.timeout,overload:n.overload})};var O=R.prototype;Object.defineProperties(R,{defaultMaxListeners:{get:function(){return O._maxListeners},set:function(e){if("number"!=typeof e||e<0||Number.isNaN(e))throw TypeError("n must be a non-negative number");O._maxListeners=e},enumerable:!0},once:{value:function(e,t,n){return A((n=m(n,{Promise,timeout:0,overload:!1},{Promise:g})).Promise,(function(n,r,i){var o;if("function"==typeof e.addEventListener)return o=function(){n(f.apply(null,arguments))},i((function(){e.removeEventListener(t,o)})),void e.addEventListener(t,o,{once:!0});var a,s=function(){a&&e.removeListener("error",a),n(f.apply(null,arguments))};"error"!==t&&(a=function(n){e.removeListener(t,s),r(n)},e.once("error",a)),i((function(){a&&e.removeListener("error",a),e.removeListener(t,s)})),e.once(t,s)}),{timeout:n.timeout,overload:n.overload})},writable:!0,configurable:!0}}),Object.defineProperties(O,{_maxListeners:{value:10,writable:!0,configurable:!0},_observers:{value:null,writable:!0,configurable:!0}}),"function"==typeof t&&t.amd?t((function(){return R})):e.exports=R}()}(ZM);var XM=i(ZM.exports);function JM(e){return JM="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},JM(e)}function eC(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function tC(e){var t=function(e,t){if("object"!==JM(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==JM(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===JM(t)?t:String(t)}function nC(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&void 0!==arguments[1]?arguments[1]:{};eC(this,e),this.init(t,n)}return rC(e,[{key:"init",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.prefix=t.prefix||"i18next:",this.logger=e||pC,this.options=t,this.debug=t.debug}},{key:"setDebug",value:function(e){this.debug=e}},{key:"log",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n1?t-1:0),r=1;r-1?e.replace(/###/g,"."):e}function i(){return!e||"string"==typeof e}for(var o="string"!=typeof t?[].concat(t):t.split(".");o.length>1;){if(i())return{};var a=r(o.shift());!e[a]&&n&&(e[a]=new n),e=Object.prototype.hasOwnProperty.call(e,a)?e[a]:{}}return i()?{}:{obj:e,k:r(o.shift())}}function AC(e,t,n){var r=wC(e,t,Object);r.obj[r.k]=n}function _C(e,t){var n=wC(e,t),r=n.obj,i=n.k;if(r)return r[i]}function EC(e,t,n){for(var r in t)"__proto__"!==r&&"constructor"!==r&&(r in e?"string"==typeof e[r]||e[r]instanceof String||"string"==typeof t[r]||t[r]instanceof String?n&&(e[r]=t[r]):EC(e[r],t[r],n):e[r]=t[r]);return e}function SC(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var kC={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};function MC(e){return"string"==typeof e?e.replace(/[&<>"'\/]/g,(function(e){return kC[e]})):e}var CC="undefined"!=typeof window&&window.navigator&&void 0===window.navigator.userAgentData&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1,xC=[" ",",","?","!",";"];function RC(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".";if(e){if(e[t])return e[t];for(var r=t.split(n),i=e,o=0;oo+a;)a++,u=i[s=r.slice(o,o+a).join(n)];if(void 0===u)return;if(null===u)return null;if(t.endsWith(s)){if("string"==typeof u)return u;if(s&&"string"==typeof u[s])return u[s]}var l=r.slice(o+a).join(n);return l?RC(u,l,n):void 0}i=i[r[o]]}return i}}function OC(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function TC(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{ns:["translation"],defaultNS:"translation"};return eC(this,n),r=t.call(this),CC&&vC.call(iC(r)),r.data=e||{},r.options=i,void 0===r.options.keySeparator&&(r.options.keySeparator="."),void 0===r.options.ignoreJSONStructure&&(r.options.ignoreJSONStructure=!0),r}return rC(n,[{key:"addNamespaces",value:function(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}},{key:"removeNamespaces",value:function(e){var t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}},{key:"getResource",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=void 0!==r.keySeparator?r.keySeparator:this.options.keySeparator,o=void 0!==r.ignoreJSONStructure?r.ignoreJSONStructure:this.options.ignoreJSONStructure,a=[e,t];n&&"string"!=typeof n&&(a=a.concat(n)),n&&"string"==typeof n&&(a=a.concat(i?n.split(i):n)),e.indexOf(".")>-1&&(a=e.split("."));var s=_C(this.data,a);return s||!o||"string"!=typeof n?s:RC(this.data&&this.data[e]&&this.data[e][t],n,i)}},{key:"addResource",value:function(e,t,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{silent:!1},o=void 0!==i.keySeparator?i.keySeparator:this.options.keySeparator,a=[e,t];n&&(a=a.concat(o?n.split(o):n)),e.indexOf(".")>-1&&(r=t,t=(a=e.split("."))[1]),this.addNamespaces(t),AC(this.data,a,r),i.silent||this.emit("added",e,t,n,r)}},{key:"addResources",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{silent:!1};for(var i in n)"string"!=typeof n[i]&&"[object Array]"!==Object.prototype.toString.apply(n[i])||this.addResource(e,t,i,n[i],{silent:!0});r.silent||this.emit("added",e,t,n)}},{key:"addResourceBundle",value:function(e,t,n,r,i){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{silent:!1},a=[e,t];e.indexOf(".")>-1&&(r=n,n=t,t=(a=e.split("."))[1]),this.addNamespaces(t);var s=_C(this.data,a)||{};r?EC(s,n,i):s=TC(TC({},s),n),AC(this.data,a,s),o.silent||this.emit("added",e,t,n)}},{key:"removeResourceBundle",value:function(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit("removed",e,t)}},{key:"hasResourceBundle",value:function(e,t){return void 0!==this.getResource(e,t)}},{key:"getResourceBundle",value:function(e,t){return t||(t=this.options.defaultNS),"v1"===this.options.compatibilityAPI?TC(TC({},{}),this.getResource(e,t)):this.getResource(e,t)}},{key:"getDataByLanguage",value:function(e){return this.data[e]}},{key:"hasLanguageSomeTranslations",value:function(e){var t=this.getDataByLanguage(e);return!!(t&&Object.keys(t)||[]).find((function(e){return t[e]&&Object.keys(t[e]).length>0}))}},{key:"toJSON",value:function(){return this.data}}]),n}(vC),IC={processors:{},addPostProcessor:function(e){this.processors[e.name]=e},handle:function(e,t,n,r,i){var o=this;return e.forEach((function(e){o.processors[e]&&(t=o.processors[e].process(t,n,r,i))})),t}};function NC(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function DC(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{};return eC(this,n),r=t.call(this),CC&&vC.call(iC(r)),function(e,t,n){e.forEach((function(e){t[e]&&(n[e]=t[e])}))}(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],e,iC(r)),r.options=i,void 0===r.options.keySeparator&&(r.options.keySeparator="."),r.logger=gC.create("translator"),r}return rC(n,[{key:"changeLanguage",value:function(e){e&&(this.language=e)}},{key:"exists",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}};if(null==e)return!1;var n=this.resolve(e,t);return n&&void 0!==n.res}},{key:"extractFromKey",value:function(e,t){var n=void 0!==t.nsSeparator?t.nsSeparator:this.options.nsSeparator;void 0===n&&(n=":");var r=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,i=t.ns||this.options.defaultNS||[],o=n&&e.indexOf(n)>-1,a=!(this.options.userDefinedKeySeparator||t.keySeparator||this.options.userDefinedNsSeparator||t.nsSeparator||function(e,t,n){t=t||"",n=n||"";var r=xC.filter((function(e){return t.indexOf(e)<0&&n.indexOf(e)<0}));if(0===r.length)return!0;var i=new RegExp("(".concat(r.map((function(e){return"?"===e?"\\?":e})).join("|"),")")),o=!i.test(e);if(!o){var a=e.indexOf(n);a>0&&!i.test(e.substring(0,a))&&(o=!0)}return o}(e,n,r));if(o&&!a){var s=e.match(this.interpolator.nestingRegexp);if(s&&s.length>0)return{key:e,namespaces:i};var u=e.split(n);(n!==r||n===r&&this.options.ns.indexOf(u[0])>-1)&&(i=u.shift()),e=u.join(r)}return"string"==typeof i&&(i=[i]),{key:e,namespaces:i}}},{key:"translate",value:function(e,t,r){var i=this;if("object"!==JM(t)&&this.options.overloadTranslationOptionHandler&&(t=this.options.overloadTranslationOptionHandler(arguments)),"object"===JM(t)&&(t=DC({},t)),t||(t={}),null==e)return"";Array.isArray(e)||(e=[String(e)]);var o=void 0!==t.returnDetails?t.returnDetails:this.options.returnDetails,a=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,s=this.extractFromKey(e[e.length-1],t),u=s.key,l=s.namespaces,c=l[l.length-1],d=t.lng||this.language,f=t.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(d&&"cimode"===d.toLowerCase()){if(f){var h=t.nsSeparator||this.options.nsSeparator;return o?{res:"".concat(c).concat(h).concat(u),usedKey:u,exactUsedKey:u,usedLng:d,usedNS:c}:"".concat(c).concat(h).concat(u)}return o?{res:u,usedKey:u,exactUsedKey:u,usedLng:d,usedNS:c}:u}var p=this.resolve(e,t),m=p&&p.res,g=p&&p.usedKey||u,v=p&&p.exactUsedKey||u,y=Object.prototype.toString.apply(m),b=void 0!==t.joinArrays?t.joinArrays:this.options.joinArrays,w=!this.i18nFormat||this.i18nFormat.handleAsObject;if(w&&m&&"string"!=typeof m&&"boolean"!=typeof m&&"number"!=typeof m&&["[object Number]","[object Function]","[object RegExp]"].indexOf(y)<0&&("string"!=typeof b||"[object Array]"!==y)){if(!t.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");var A=this.options.returnedObjectHandler?this.options.returnedObjectHandler(g,m,DC(DC({},t),{},{ns:l})):"key '".concat(u," (").concat(this.language,")' returned an object instead of string.");return o?(p.res=A,p):A}if(a){var _="[object Array]"===y,E=_?[]:{},S=_?v:g;for(var k in m)if(Object.prototype.hasOwnProperty.call(m,k)){var M="".concat(S).concat(a).concat(k);E[k]=this.translate(M,DC(DC({},t),{joinArrays:!1,ns:l})),E[k]===M&&(E[k]=m[k])}m=E}}else if(w&&"string"==typeof b&&"[object Array]"===y)(m=m.join(b))&&(m=this.extendTranslation(m,e,t,r));else{var C=!1,x=!1,R=void 0!==t.count&&"string"!=typeof t.count,O=n.hasDefaultValue(t),T=R?this.pluralResolver.getSuffix(d,t.count,t):"",P=t["defaultValue".concat(T)]||t.defaultValue;!this.isValidLookup(m)&&O&&(C=!0,m=P),this.isValidLookup(m)||(x=!0,m=u);var L=(t.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&x?void 0:m,I=O&&P!==m&&this.options.updateMissing;if(x||C||I){if(this.logger.log(I?"updateKey":"missingKey",d,c,u,I?P:m),a){var N=this.resolve(u,DC(DC({},t),{},{keySeparator:!1}));N&&N.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}var D=[],B=this.languageUtils.getFallbackCodes(this.options.fallbackLng,t.lng||this.language);if("fallback"===this.options.saveMissingTo&&B&&B[0])for(var j=0;j1&&void 0!==arguments[1]?arguments[1]:{};return"string"==typeof e&&(e=[e]),e.forEach((function(e){if(!a.isValidLookup(t)){var u=a.extractFromKey(e,s),l=u.key;n=l;var c=u.namespaces;a.options.fallbackNS&&(c=c.concat(a.options.fallbackNS));var d=void 0!==s.count&&"string"!=typeof s.count,f=d&&!s.ordinal&&0===s.count&&a.pluralResolver.shouldUseIntlApi(),h=void 0!==s.context&&("string"==typeof s.context||"number"==typeof s.context)&&""!==s.context,p=s.lngs?s.lngs:a.languageUtils.toResolveHierarchy(s.lng||a.language,s.fallbackLng);c.forEach((function(e){a.isValidLookup(t)||(o=e,!jC["".concat(p[0],"-").concat(e)]&&a.utils&&a.utils.hasLoadedNamespace&&!a.utils.hasLoadedNamespace(o)&&(jC["".concat(p[0],"-").concat(e)]=!0,a.logger.warn('key "'.concat(n,'" for languages "').concat(p.join(", "),'" won\'t get resolved as namespace "').concat(o,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),p.forEach((function(n){if(!a.isValidLookup(t)){i=n;var o,u=[l];if(a.i18nFormat&&a.i18nFormat.addLookupKeys)a.i18nFormat.addLookupKeys(u,l,n,e,s);else{var c;d&&(c=a.pluralResolver.getSuffix(n,s.count,s));var p="".concat(a.options.pluralSeparator,"zero");if(d&&(u.push(l+c),f&&u.push(l+p)),h){var m="".concat(l).concat(a.options.contextSeparator).concat(s.context);u.push(m),d&&(u.push(m+c),f&&u.push(m+p))}}for(;o=u.pop();)a.isValidLookup(t)||(r=o,t=a.getResource(n,e,o,s))}})))}))}})),{res:t,usedKey:n,exactUsedKey:r,usedLng:i,usedNS:o}}},{key:"isValidLookup",value:function(e){return!(void 0===e||!this.options.returnNull&&null===e||!this.options.returnEmptyString&&""===e)}},{key:"getResource",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(e,t,n,r):this.resourceStore.getResource(e,t,n,r)}}],[{key:"hasDefaultValue",value:function(e){var t="defaultValue";for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t===n.substring(0,12)&&void 0!==e[n])return!0;return!1}}]),n}(vC);function zC(e){return e.charAt(0).toUpperCase()+e.slice(1)}var FC=function(){function e(t){eC(this,e),this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=gC.create("languageUtils")}return rC(e,[{key:"getScriptPartFromCode",value:function(e){if(!e||e.indexOf("-")<0)return null;var t=e.split("-");return 2===t.length?null:(t.pop(),"x"===t[t.length-1].toLowerCase()?null:this.formatLanguageCode(t.join("-")))}},{key:"getLanguagePartFromCode",value:function(e){if(!e||e.indexOf("-")<0)return e;var t=e.split("-");return this.formatLanguageCode(t[0])}},{key:"formatLanguageCode",value:function(e){if("string"==typeof e&&e.indexOf("-")>-1){var t=["hans","hant","latn","cyrl","cans","mong","arab"],n=e.split("-");return this.options.lowerCaseLng?n=n.map((function(e){return e.toLowerCase()})):2===n.length?(n[0]=n[0].toLowerCase(),n[1]=n[1].toUpperCase(),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=zC(n[1].toLowerCase()))):3===n.length&&(n[0]=n[0].toLowerCase(),2===n[1].length&&(n[1]=n[1].toUpperCase()),"sgn"!==n[0]&&2===n[2].length&&(n[2]=n[2].toUpperCase()),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=zC(n[1].toLowerCase())),t.indexOf(n[2].toLowerCase())>-1&&(n[2]=zC(n[2].toLowerCase()))),n.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}},{key:"isSupportedCode",value:function(e){return("languageOnly"===this.options.load||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}},{key:"getBestMatchFromCodes",value:function(e){var t,n=this;return e?(e.forEach((function(e){if(!t){var r=n.formatLanguageCode(e);n.options.supportedLngs&&!n.isSupportedCode(r)||(t=r)}})),!t&&this.options.supportedLngs&&e.forEach((function(e){if(!t){var r=n.getLanguagePartFromCode(e);if(n.isSupportedCode(r))return t=r;t=n.options.supportedLngs.find((function(e){return e===r?e:e.indexOf("-")<0&&r.indexOf("-")<0?void 0:0===e.indexOf(r)?e:void 0}))}})),t||(t=this.getFallbackCodes(this.options.fallbackLng)[0]),t):null}},{key:"getFallbackCodes",value:function(e,t){if(!e)return[];if("function"==typeof e&&(e=e(t)),"string"==typeof e&&(e=[e]),"[object Array]"===Object.prototype.toString.apply(e))return e;if(!t)return e.default||[];var n=e[t];return n||(n=e[this.getScriptPartFromCode(t)]),n||(n=e[this.formatLanguageCode(t)]),n||(n=e[this.getLanguagePartFromCode(t)]),n||(n=e.default),n||[]}},{key:"toResolveHierarchy",value:function(e,t){var n=this,r=this.getFallbackCodes(t||this.options.fallbackLng||[],e),i=[],o=function(e){e&&(n.isSupportedCode(e)?i.push(e):n.logger.warn("rejecting language code not found in supportedLngs: ".concat(e)))};return"string"==typeof e&&e.indexOf("-")>-1?("languageOnly"!==this.options.load&&o(this.formatLanguageCode(e)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&o(this.getScriptPartFromCode(e)),"currentOnly"!==this.options.load&&o(this.getLanguagePartFromCode(e))):"string"==typeof e&&o(this.formatLanguageCode(e)),r.forEach((function(e){i.indexOf(e)<0&&o(n.formatLanguageCode(e))})),i}}]),e}(),qC=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],WC={1:function(e){return Number(e>1)},2:function(e){return Number(1!=e)},3:function(e){return 0},4:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},5:function(e){return Number(0==e?0:1==e?1:2==e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5)},6:function(e){return Number(1==e?0:e>=2&&e<=4?1:2)},7:function(e){return Number(1==e?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},8:function(e){return Number(1==e?0:2==e?1:8!=e&&11!=e?2:3)},9:function(e){return Number(e>=2)},10:function(e){return Number(1==e?0:2==e?1:e<7?2:e<11?3:4)},11:function(e){return Number(1==e||11==e?0:2==e||12==e?1:e>2&&e<20?2:3)},12:function(e){return Number(e%10!=1||e%100==11)},13:function(e){return Number(0!==e)},14:function(e){return Number(1==e?0:2==e?1:3==e?2:3)},15:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2)},16:function(e){return Number(e%10==1&&e%100!=11?0:0!==e?1:2)},17:function(e){return Number(1==e||e%10==1&&e%100!=11?0:1)},18:function(e){return Number(0==e?0:1==e?1:2)},19:function(e){return Number(1==e?0:0==e||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3)},20:function(e){return Number(1==e?0:0==e||e%100>0&&e%100<20?1:2)},21:function(e){return Number(e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0)},22:function(e){return Number(1==e?0:2==e?1:(e<0||e>10)&&e%10==0?2:3)}},VC=["v1","v2","v3"],KC={zero:0,one:1,two:2,few:3,many:4,other:5},HC=function(){function e(t){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};eC(this,e),this.languageUtils=t,this.options=r,this.logger=gC.create("pluralResolver"),this.options.compatibilityJSON&&"v4"!==this.options.compatibilityJSON||"undefined"!=typeof Intl&&Intl.PluralRules||(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=(n={},qC.forEach((function(e){e.lngs.forEach((function(t){n[t]={numbers:e.nr,plurals:WC[e.fc]}}))})),n)}return rC(e,[{key:"addRule",value:function(e,t){this.rules[e]=t}},{key:"getRule",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this.shouldUseIntlApi())try{return new Intl.PluralRules(e,{type:t.ordinal?"ordinal":"cardinal"})}catch(e){return}return this.rules[e]||this.rules[this.languageUtils.getLanguagePartFromCode(e)]}},{key:"needsPlural",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this.getRule(e,t);return this.shouldUseIntlApi()?n&&n.resolvedOptions().pluralCategories.length>1:n&&n.numbers.length>1}},{key:"getPluralFormsOfKey",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.getSuffixes(e,n).map((function(e){return"".concat(t).concat(e)}))}},{key:"getSuffixes",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=this.getRule(e,n);return r?this.shouldUseIntlApi()?r.resolvedOptions().pluralCategories.sort((function(e,t){return KC[e]-KC[t]})).map((function(e){return"".concat(t.options.prepend).concat(e)})):r.numbers.map((function(r){return t.getSuffix(e,r,n)})):[]}},{key:"getSuffix",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=this.getRule(e,n);return r?this.shouldUseIntlApi()?"".concat(this.options.prepend).concat(r.select(t)):this.getSuffixRetroCompatible(r,t):(this.logger.warn("no plural rule found for: ".concat(e)),"")}},{key:"getSuffixRetroCompatible",value:function(e,t){var n=this,r=e.noAbs?e.plurals(t):e.plurals(Math.abs(t)),i=e.numbers[r];this.options.simplifyPluralSuffix&&2===e.numbers.length&&1===e.numbers[0]&&(2===i?i="plural":1===i&&(i=""));var o=function(){return n.options.prepend&&i.toString()?n.options.prepend+i.toString():i.toString()};return"v1"===this.options.compatibilityJSON?1===i?"":"number"==typeof i?"_plural_".concat(i.toString()):o():"v2"===this.options.compatibilityJSON||this.options.simplifyPluralSuffix&&2===e.numbers.length&&1===e.numbers[0]?o():this.options.prepend&&r.toString()?this.options.prepend+r.toString():r.toString()}},{key:"shouldUseIntlApi",value:function(){return!VC.includes(this.options.compatibilityJSON)}}]),e}();function $C(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function YC(e){for(var t=1;t3&&void 0!==arguments[3]?arguments[3]:".",i=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],o=function(e,t,n){var r=_C(e,n);return void 0!==r?r:_C(t,n)}(e,t,n);return!o&&i&&"string"==typeof n&&void 0===(o=RC(e,n,r))&&(o=RC(t,n,r)),o}var QC=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};eC(this,e),this.logger=gC.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||function(e){return e},this.init(t)}return rC(e,[{key:"init",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e.interpolation||(e.interpolation={escapeValue:!0});var t=e.interpolation;this.escape=void 0!==t.escape?t.escape:MC,this.escapeValue=void 0===t.escapeValue||t.escapeValue,this.useRawValueToEscape=void 0!==t.useRawValueToEscape&&t.useRawValueToEscape,this.prefix=t.prefix?SC(t.prefix):t.prefixEscaped||"{{",this.suffix=t.suffix?SC(t.suffix):t.suffixEscaped||"}}",this.formatSeparator=t.formatSeparator?t.formatSeparator:t.formatSeparator||",",this.unescapePrefix=t.unescapeSuffix?"":t.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":t.unescapeSuffix||"",this.nestingPrefix=t.nestingPrefix?SC(t.nestingPrefix):t.nestingPrefixEscaped||SC("$t("),this.nestingSuffix=t.nestingSuffix?SC(t.nestingSuffix):t.nestingSuffixEscaped||SC(")"),this.nestingOptionsSeparator=t.nestingOptionsSeparator?t.nestingOptionsSeparator:t.nestingOptionsSeparator||",",this.maxReplaces=t.maxReplaces?t.maxReplaces:1e3,this.alwaysFormat=void 0!==t.alwaysFormat&&t.alwaysFormat,this.resetRegExp()}},{key:"reset",value:function(){this.options&&this.init(this.options)}},{key:"resetRegExp",value:function(){var e="".concat(this.prefix,"(.+?)").concat(this.suffix);this.regexp=new RegExp(e,"g");var t="".concat(this.prefix).concat(this.unescapePrefix,"(.+?)").concat(this.unescapeSuffix).concat(this.suffix);this.regexpUnescape=new RegExp(t,"g");var n="".concat(this.nestingPrefix,"(.+?)").concat(this.nestingSuffix);this.nestingRegexp=new RegExp(n,"g")}},{key:"interpolate",value:function(e,t,n,r){var i,o,a,s=this,u=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function l(e){return e.replace(/\$/g,"$$$$")}var c=function(e){if(e.indexOf(s.formatSeparator)<0){var i=GC(t,u,e,s.options.keySeparator,s.options.ignoreJSONStructure);return s.alwaysFormat?s.format(i,void 0,n,YC(YC(YC({},r),t),{},{interpolationkey:e})):i}var o=e.split(s.formatSeparator),a=o.shift().trim(),l=o.join(s.formatSeparator).trim();return s.format(GC(t,u,a,s.options.keySeparator,s.options.ignoreJSONStructure),l,n,YC(YC(YC({},r),t),{},{interpolationkey:a}))};this.resetRegExp();var d=r&&r.missingInterpolationHandler||this.options.missingInterpolationHandler,f=r&&r.interpolation&&void 0!==r.interpolation.skipOnVariables?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:function(e){return l(e)}},{regex:this.regexp,safeValue:function(e){return s.escapeValue?l(s.escape(e)):l(e)}}].forEach((function(t){for(a=0;i=t.regex.exec(e);){var n=i[1].trim();if(void 0===(o=c(n)))if("function"==typeof d){var u=d(e,i,r);o="string"==typeof u?u:""}else if(r&&Object.prototype.hasOwnProperty.call(r,n))o="";else{if(f){o=i[0];continue}s.logger.warn("missed to pass in variable ".concat(n," for interpolating ").concat(e)),o=""}else"string"==typeof o||s.useRawValueToEscape||(o=bC(o));var l=t.safeValue(o);if(e=e.replace(i[0],l),f?(t.regex.lastIndex+=o.length,t.regex.lastIndex-=i[0].length):t.regex.lastIndex=0,++a>=s.maxReplaces)break}})),e}},{key:"nest",value:function(e,t){var n,r,i,o=this,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};function s(e,t){var n=this.nestingOptionsSeparator;if(e.indexOf(n)<0)return e;var r=e.split(new RegExp("".concat(n,"[ ]*{"))),o="{".concat(r[1]);e=r[0];var a=(o=this.interpolate(o,i)).match(/'/g),s=o.match(/"/g);(a&&a.length%2==0&&!s||s.length%2!=0)&&(o=o.replace(/'/g,'"'));try{i=JSON.parse(o),t&&(i=YC(YC({},t),i))}catch(t){return this.logger.warn("failed parsing options string in nesting for key ".concat(e),t),"".concat(e).concat(n).concat(o)}return delete i.defaultValue,e}for(;n=this.nestingRegexp.exec(e);){var u=[];(i=(i=YC({},a)).replace&&"string"!=typeof i.replace?i.replace:i).applyPostProcessor=!1,delete i.defaultValue;var l=!1;if(-1!==n[0].indexOf(this.formatSeparator)&&!/{.*}/.test(n[1])){var c=n[1].split(this.formatSeparator).map((function(e){return e.trim()}));n[1]=c.shift(),u=c,l=!0}if((r=t(s.call(this,n[1].trim(),i),i))&&n[0]===e&&"string"!=typeof r)return r;"string"!=typeof r&&(r=bC(r)),r||(this.logger.warn("missed to resolve ".concat(n[1]," for nesting ").concat(e)),r=""),l&&(r=u.reduce((function(e,t){return o.format(e,t,a.lng,YC(YC({},a),{},{interpolationkey:n[1].trim()}))}),r.trim())),e=e.replace(n[0],r),this.regexp.lastIndex=0}return e}}]),e}();function ZC(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function XC(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{};eC(this,e),this.logger=gC.create("formatter"),this.options=t,this.formats={number:JC((function(e,t){var n=new Intl.NumberFormat(e,XC({},t));return function(e){return n.format(e)}})),currency:JC((function(e,t){var n=new Intl.NumberFormat(e,XC(XC({},t),{},{style:"currency"}));return function(e){return n.format(e)}})),datetime:JC((function(e,t){var n=new Intl.DateTimeFormat(e,XC({},t));return function(e){return n.format(e)}})),relativetime:JC((function(e,t){var n=new Intl.RelativeTimeFormat(e,XC({},t));return function(e){return n.format(e,t.range||"day")}})),list:JC((function(e,t){var n=new Intl.ListFormat(e,XC({},t));return function(e){return n.format(e)}}))},this.init(t)}return rC(e,[{key:"init",value:function(e){var t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}}).interpolation;this.formatSeparator=t.formatSeparator?t.formatSeparator:t.formatSeparator||","}},{key:"add",value:function(e,t){this.formats[e.toLowerCase().trim()]=t}},{key:"addCached",value:function(e,t){this.formats[e.toLowerCase().trim()]=JC(t)}},{key:"format",value:function(e,t,n){var r=this,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=t.split(this.formatSeparator).reduce((function(e,t){var o=function(e){var t=e.toLowerCase().trim(),n={};if(e.indexOf("(")>-1){var r=e.split("(");t=r[0].toLowerCase().trim();var i=r[1].substring(0,r[1].length-1);"currency"===t&&i.indexOf(":")<0?n.currency||(n.currency=i.trim()):"relativetime"===t&&i.indexOf(":")<0?n.range||(n.range=i.trim()):i.split(";").forEach((function(e){if(e){var t=dC(e.split(":")),r=t[0],i=t.slice(1).join(":").trim().replace(/^'+|'+$/g,"");n[r.trim()]||(n[r.trim()]=i),"false"===i&&(n[r.trim()]=!1),"true"===i&&(n[r.trim()]=!0),isNaN(i)||(n[r.trim()]=parseInt(i,10))}}))}return{formatName:t,formatOptions:n}}(t),a=o.formatName,s=o.formatOptions;if(r.formats[a]){var u=e;try{var l=i&&i.formatParams&&i.formatParams[i.interpolationkey]||{},c=l.locale||l.lng||i.locale||i.lng||n;u=r.formats[a](e,c,XC(XC(XC({},s),i),l))}catch(e){r.logger.warn(e)}return u}return r.logger.warn("there was no format function for ".concat(a)),e}),e);return o}}]),e}();function tx(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function nx(e){for(var t=1;t3&&void 0!==arguments[3]?arguments[3]:{};return eC(this,n),o=t.call(this),CC&&vC.call(iC(o)),o.backend=e,o.store=r,o.services=i,o.languageUtils=i.languageUtils,o.options=a,o.logger=gC.create("backendConnector"),o.waitingReads=[],o.maxParallelReads=a.maxParallelReads||10,o.readingCalls=0,o.maxRetries=a.maxRetries>=0?a.maxRetries:5,o.retryTimeout=a.retryTimeout>=1?a.retryTimeout:350,o.state={},o.queue=[],o.backend&&o.backend.init&&o.backend.init(i,a.backend,a),o}return rC(n,[{key:"queueLoad",value:function(e,t,n,r){var i=this,o={},a={},s={},u={};return e.forEach((function(e){var r=!0;t.forEach((function(t){var s="".concat(e,"|").concat(t);!n.reload&&i.store.hasResourceBundle(e,t)?i.state[s]=2:i.state[s]<0||(1===i.state[s]?void 0===a[s]&&(a[s]=!0):(i.state[s]=1,r=!1,void 0===a[s]&&(a[s]=!0),void 0===o[s]&&(o[s]=!0),void 0===u[t]&&(u[t]=!0)))})),r||(s[e]=!0)})),(Object.keys(o).length||Object.keys(a).length)&&this.queue.push({pending:a,pendingCount:Object.keys(a).length,loaded:{},errors:[],callback:r}),{toLoad:Object.keys(o),pending:Object.keys(a),toLoadLanguages:Object.keys(s),toLoadNamespaces:Object.keys(u)}}},{key:"loaded",value:function(e,t,n){var r=e.split("|"),i=r[0],o=r[1];t&&this.emit("failedLoading",i,o,t),n&&this.store.addResourceBundle(i,o,n),this.state[e]=t?-1:2;var a={};this.queue.forEach((function(n){!function(e,t,n,r){var i=wC(e,t,Object),o=i.obj,a=i.k;o[a]=o[a]||[],r&&(o[a]=o[a].concat(n)),r||o[a].push(n)}(n.loaded,[i],o),function(e,t){void 0!==e.pending[t]&&(delete e.pending[t],e.pendingCount--)}(n,e),t&&n.errors.push(t),0!==n.pendingCount||n.done||(Object.keys(n.loaded).forEach((function(e){a[e]||(a[e]={});var t=n.loaded[e];t.length&&t.forEach((function(t){void 0===a[e][t]&&(a[e][t]=!0)}))})),n.done=!0,n.errors.length?n.callback(n.errors):n.callback())})),this.emit("loaded",a),this.queue=this.queue.filter((function(e){return!e.done}))}},{key:"read",value:function(e,t,n){var r=this,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:this.retryTimeout,a=arguments.length>5?arguments[5]:void 0;if(!e.length)return a(null,{});if(this.readingCalls>=this.maxParallelReads)this.waitingReads.push({lng:e,ns:t,fcName:n,tried:i,wait:o,callback:a});else{this.readingCalls++;var s=function(s,u){if(r.readingCalls--,r.waitingReads.length>0){var l=r.waitingReads.shift();r.read(l.lng,l.ns,l.fcName,l.tried,l.wait,l.callback)}s&&u&&i2&&void 0!==arguments[2]?arguments[2]:{},i=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),i&&i();"string"==typeof e&&(e=this.languageUtils.toResolveHierarchy(e)),"string"==typeof t&&(t=[t]);var o=this.queueLoad(e,t,r,i);if(!o.toLoad.length)return o.pending.length||i(),null;o.toLoad.forEach((function(e){n.loadOne(e)}))}},{key:"load",value:function(e,t,n){this.prepareLoading(e,t,{},n)}},{key:"reload",value:function(e,t,n){this.prepareLoading(e,t,{reload:!0},n)}},{key:"loadOne",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=e.split("|"),i=r[0],o=r[1];this.read(i,o,"read",void 0,void 0,(function(r,a){r&&t.logger.warn("".concat(n,"loading namespace ").concat(o," for language ").concat(i," failed"),r),!r&&a&&t.logger.log("".concat(n,"loaded namespace ").concat(o," for language ").concat(i),a),t.loaded(e,r,a)}))}},{key:"saveMissing",value:function(e,t,n,r,i){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:function(){};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(t))this.logger.warn('did not save key "'.concat(n,'" as the namespace "').concat(t,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");else if(null!=n&&""!==n){if(this.backend&&this.backend.create){var s=nx(nx({},o),{},{isUpdate:i}),u=this.backend.create.bind(this.backend);if(u.length<6)try{var l;(l=5===u.length?u(e,t,n,r,s):u(e,t,n,r))&&"function"==typeof l.then?l.then((function(e){return a(null,e)})).catch(a):a(null,l)}catch(e){a(e)}else u(e,t,n,r,a,s)}e&&e[0]&&this.store.addResource(e[0],t,n,r)}}}]),n}(vC);function ox(){return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!0,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(e){var t={};if("object"===JM(e[1])&&(t=e[1]),"string"==typeof e[1]&&(t.defaultValue=e[1]),"string"==typeof e[2]&&(t.tDescription=e[2]),"object"===JM(e[2])||"object"===JM(e[3])){var n=e[3]||e[2];Object.keys(n).forEach((function(e){t[e]=n[e]}))}return t},interpolation:{escapeValue:!0,format:function(e,t,n,r){return e},prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}}function ax(e){return"string"==typeof e.ns&&(e.ns=[e.ns]),"string"==typeof e.fallbackLng&&(e.fallbackLng=[e.fallbackLng]),"string"==typeof e.fallbackNS&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e}function sx(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ux(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},o=arguments.length>1?arguments[1]:void 0;if(eC(this,n),e=t.call(this),CC&&vC.call(iC(e)),e.options=ax(i),e.services={},e.logger=gC,e.modules={external:[]},r=iC(e),Object.getOwnPropertyNames(Object.getPrototypeOf(r)).forEach((function(e){"function"==typeof r[e]&&(r[e]=r[e].bind(r))})),o&&!e.isInitialized&&!i.isClone){if(!e.options.initImmediate)return e.init(i,o),sC(e,iC(e));setTimeout((function(){e.init(i,o)}),0)}return e}return rC(n,[{key:"init",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;"function"==typeof t&&(n=t,t={}),!t.defaultNS&&!1!==t.defaultNS&&t.ns&&("string"==typeof t.ns?t.defaultNS=t.ns:t.ns.indexOf("translation")<0&&(t.defaultNS=t.ns[0]));var r=ox();function i(e){return e?"function"==typeof e?new e:e:null}if(this.options=ux(ux(ux({},r),this.options),ax(t)),"v1"!==this.options.compatibilityAPI&&(this.options.interpolation=ux(ux({},r.interpolation),this.options.interpolation)),void 0!==t.keySeparator&&(this.options.userDefinedKeySeparator=t.keySeparator),void 0!==t.nsSeparator&&(this.options.userDefinedNsSeparator=t.nsSeparator),!this.options.isClone){var o;this.modules.logger?gC.init(i(this.modules.logger),this.options):gC.init(null,this.options),this.modules.formatter?o=this.modules.formatter:"undefined"!=typeof Intl&&(o=ex);var a=new FC(this.options);this.store=new LC(this.options.resources,this.options);var s=this.services;s.logger=gC,s.resourceStore=this.store,s.languageUtils=a,s.pluralResolver=new HC(a,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),!o||this.options.interpolation.format&&this.options.interpolation.format!==r.interpolation.format||(s.formatter=i(o),s.formatter.init(s,this.options),this.options.interpolation.format=s.formatter.format.bind(s.formatter)),s.interpolator=new QC(this.options),s.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},s.backendConnector=new ix(i(this.modules.backend),s.resourceStore,s,this.options),s.backendConnector.on("*",(function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i1?n-1:0),i=1;i0&&"dev"!==u[0]&&(this.options.lng=u[0])}this.services.languageDetector||this.options.lng||this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach((function(t){e[t]=function(){var n;return(n=e.store)[t].apply(n,arguments)}})),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach((function(t){e[t]=function(){var n;return(n=e.store)[t].apply(n,arguments),e}}));var l=yC(),c=function(){var t=function(t,r){e.isInitialized&&!e.initializedStoreOnce&&e.logger.warn("init: i18next is already initialized. You should call init just once!"),e.isInitialized=!0,e.options.isClone||e.logger.log("initialized",e.options),e.emit("initialized",e.options),l.resolve(r),n(t,r)};if(e.languages&&"v1"!==e.options.compatibilityAPI&&!e.isInitialized)return t(null,e.t.bind(e));e.changeLanguage(e.options.lng,t)};return this.options.resources||!this.options.initImmediate?c():setTimeout(c,0),l}},{key:"loadResources",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:cx,r="string"==typeof e?e:this.language;if("function"==typeof e&&(n=e),!this.options.resources||this.options.partialBundledLanguages){if(r&&"cimode"===r.toLowerCase())return n();var i=[],o=function(e){e&&t.services.languageUtils.toResolveHierarchy(e).forEach((function(e){i.indexOf(e)<0&&i.push(e)}))};r?o(r):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach((function(e){return o(e)})),this.options.preload&&this.options.preload.forEach((function(e){return o(e)})),this.services.backendConnector.load(i,this.options.ns,(function(e){e||t.resolvedLanguage||!t.language||t.setResolvedLanguage(t.language),n(e)}))}else n(null)}},{key:"reloadResources",value:function(e,t,n){var r=yC();return e||(e=this.languages),t||(t=this.options.ns),n||(n=cx),this.services.backendConnector.reload(e,t,(function(e){r.resolve(),n(e)})),r}},{key:"use",value:function(e){if(!e)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return"backend"===e.type&&(this.modules.backend=e),("logger"===e.type||e.log&&e.warn&&e.error)&&(this.modules.logger=e),"languageDetector"===e.type&&(this.modules.languageDetector=e),"i18nFormat"===e.type&&(this.modules.i18nFormat=e),"postProcessor"===e.type&&IC.addPostProcessor(e),"formatter"===e.type&&(this.modules.formatter=e),"3rdParty"===e.type&&this.modules.external.push(e),this}},{key:"setResolvedLanguage",value:function(e){if(e&&this.languages&&!(["cimode","dev"].indexOf(e)>-1))for(var t=0;t-1)&&this.store.hasLanguageSomeTranslations(n)){this.resolvedLanguage=n;break}}}},{key:"changeLanguage",value:function(e,t){var n=this;this.isLanguageChangingTo=e;var r=yC();this.emit("languageChanging",e);var i=function(e){n.language=e,n.languages=n.services.languageUtils.toResolveHierarchy(e),n.resolvedLanguage=void 0,n.setResolvedLanguage(e)},o=function(o){e||o||!n.services.languageDetector||(o=[]);var a="string"==typeof o?o:n.services.languageUtils.getBestMatchFromCodes(o);a&&(n.language||i(a),n.translator.language||n.translator.changeLanguage(a),n.services.languageDetector&&n.services.languageDetector.cacheUserLanguage&&n.services.languageDetector.cacheUserLanguage(a)),n.loadResources(a,(function(e){!function(e,o){o?(i(o),n.translator.changeLanguage(o),n.isLanguageChangingTo=void 0,n.emit("languageChanged",o),n.logger.log("languageChanged",o)):n.isLanguageChangingTo=void 0,r.resolve((function(){return n.t.apply(n,arguments)})),t&&t(e,(function(){return n.t.apply(n,arguments)}))}(e,a)}))};return e||!this.services.languageDetector||this.services.languageDetector.async?!e&&this.services.languageDetector&&this.services.languageDetector.async?0===this.services.languageDetector.detect.length?this.services.languageDetector.detect().then(o):this.services.languageDetector.detect(o):o(e):o(this.services.languageDetector.detect()),r}},{key:"getFixedT",value:function(e,t,n){var r=this,i=function e(t,i){var o;if("object"!==JM(i)){for(var a=arguments.length,s=new Array(a>2?a-2:0),u=2;u1&&void 0!==arguments[1]?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;var r=n.lng||this.resolvedLanguage||this.languages[0],i=!!this.options&&this.options.fallbackLng,o=this.languages[this.languages.length-1];if("cimode"===r.toLowerCase())return!0;var a=function(e,n){var r=t.services.backendConnector.state["".concat(e,"|").concat(n)];return-1===r||2===r};if(n.precheck){var s=n.precheck(this,a);if(void 0!==s)return s}return!!this.hasResourceBundle(r,e)||!(this.services.backendConnector.backend&&(!this.options.resources||this.options.partialBundledLanguages))||!(!a(r,e)||i&&!a(o,e))}},{key:"loadNamespaces",value:function(e,t){var n=this,r=yC();return this.options.ns?("string"==typeof e&&(e=[e]),e.forEach((function(e){n.options.ns.indexOf(e)<0&&n.options.ns.push(e)})),this.loadResources((function(e){r.resolve(),t&&t(e)})),r):(t&&t(),Promise.resolve())}},{key:"loadLanguages",value:function(e,t){var n=yC();"string"==typeof e&&(e=[e]);var r=this.options.preload||[],i=e.filter((function(e){return r.indexOf(e)<0}));return i.length?(this.options.preload=r.concat(i),this.loadResources((function(e){n.resolve(),t&&t(e)})),n):(t&&t(),Promise.resolve())}},{key:"dir",value:function(e){if(e||(e=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!e)return"rtl";var t=this.services&&this.services.languageUtils||new FC(ox());return["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"].indexOf(t.getLanguagePartFromCode(e))>-1||e.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}},{key:"cloneInstance",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:cx,i=ux(ux(ux({},this.options),t),{isClone:!0}),o=new n(i);return void 0===t.debug&&void 0===t.prefix||(o.logger=o.logger.clone(t)),["store","services","language"].forEach((function(t){o[t]=e[t]})),o.services=ux({},this.services),o.services.utils={hasLoadedNamespace:o.hasLoadedNamespace.bind(o)},o.translator=new UC(o.services,o.options),o.translator.on("*",(function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r0&&void 0!==arguments[0]?arguments[0]:{},arguments.length>1?arguments[1]:void 0)}));var fx=dx.createInstance();fx.createInstance=dx.createInstance;var hx=fx.createInstance;fx.dir,fx.init,fx.loadResources,fx.reloadResources,fx.use,fx.changeLanguage,fx.getFixedT,fx.t,fx.exists,fx.setDefaultNamespace,fx.hasLoadedNamespace,fx.loadNamespaces,fx.loadLanguages;var px="0.14.1";const mx={eth_requestAccounts:!0,eth_sendTransaction:!0,eth_signTransaction:!0,eth_sign:!0,eth_accounts:!0,personal_sign:!0,eth_signTypedData:!0,eth_signTypedData_v3:!0,eth_signTypedData_v4:!0,wallet_watchAsset:!0,wallet_addEthereumChain:!0,wallet_switchEthereumChain:!0,metamask_connectSign:!0,metamask_connectWith:!0,metamask_batch:!0,metamask_open:!0},gx=".sdk-comm",vx="providerType",yx={METAMASK_GETPROVIDERSTATE:"metamask_getProviderState",METAMASK_CONNECTSIGN:"metamask_connectSign",METAMASK_CONNECTWITH:"metamask_connectWith",METAMASK_OPEN:"metamask_open",METAMASK_BATCH:"metamask_batch",PERSONAL_SIGN:"personal_sign",ETH_REQUESTACCOUNTS:"eth_requestAccounts",ETH_ACCOUNTS:"eth_accounts",ETH_CHAINID:"eth_chainId"},bx={CHAIN_CHANGED:"chainChanged",ACCOUNTS_CHANGED:"accountsChanged",DISCONNECT:"disconnect",CONNECT:"connect",CONNECTED:"connected"};var wx,Ax,_x,Ex,Sx;function kx(t){var n,r;return fA(this,void 0,void 0,(function*(){t.debug&&console.debug("SDK::connectWithExtensionProvider()",t),t.sdkProvider=t.activeProvider,t.activeProvider=window.extension,window.ethereum=window.extension;try{const e=yield null===(n=window.extension)||void 0===n?void 0:n.request({method:"eth_requestAccounts"});t.debug&&console.debug("SDK::connectWithExtensionProvider() accounts",e)}catch(e){return void console.warn("SDK::connectWithExtensionProvider() can't request accounts error",e)}localStorage.setItem(vx,"extension"),t.extensionActive=!0,t.emit(e.EventType.PROVIDER_UPDATE,e.PROVIDER_UPDATE_TYPE.EXTENSION),null===(r=t.analytics)||void 0===r||r.send({event:Zw.SDK_USE_EXTENSION})}))}e.PROVIDER_UPDATE_TYPE=void 0,(wx=e.PROVIDER_UPDATE_TYPE||(e.PROVIDER_UPDATE_TYPE={})).TERMINATE="terminate",wx.EXTENSION="extension",wx.INITIALIZED="initialized";const Mx={DEFAULT_ID:"sdk",NO_VERSION:"NONE"};class Cx{constructor(e){var t;Ax.set(this,void 0),_x.set(this,Dw),Ex.set(this,void 0),Sx.set(this,void 0),pA(this,Ax,e.debug,"f"),pA(this,_x,e.serverURL,"f"),pA(this,Sx,e.metadata||void 0,"f"),pA(this,Ex,null===(t=e.enabled)||void 0===t||t,"f")}send({event:e}){hA(this,Ex,"f")&&fn({id:Mx.DEFAULT_ID,event:e,commLayerVersion:Mx.NO_VERSION,originationInfo:hA(this,Sx,"f")},hA(this,_x,"f")).catch((e=>{hA(this,Ax,"f")&&console.error(e)}))}}var xx;Ax=new WeakMap,_x=new WeakMap,Ex=new WeakMap,Sx=new WeakMap,function(e){e.INPAGE="metamask-inpage",e.CONTENT_SCRIPT="metamask-contentscript",e.PROVIDER="metamask-provider"}(xx||(xx={}));const Rx="https://metamask.app.link/connect",Ox="metamask://connect",Tx={NAME:"MetaMask Main",RDNS:"io.metamask"},Px=/(?:^[a-f0-9]{8}-[a-f0-9]{4}-4[a-f0-9]{3}-[a-f0-9]{4}-[a-f0-9]{12}$)|(?:^0{8}-0{4}-0{4}-0{4}-0{12}$)/u,Lx=36e5;class Ix{constructor({shouldSetOnWindow:e,connectionStream:t,shouldSendMetadata:n=!1,shouldShimWeb3:r,debug:i=!1}){this.debug=!1,this.debug=i;const o=new QM({connectionStream:t,shouldSendMetadata:n,shouldSetOnWindow:e,shouldShimWeb3:r,autoRequestAccounts:!1,debug:i});this.debug=i;const a=new Proxy(o,{deleteProperty:()=>!0});this.provider=a,e&&"undefined"!=typeof window&&mA.setGlobalProvider(this.provider),r&&"undefined"!=typeof window&&mA.shimWeb3(this.provider),this.provider.on("_initialized",(()=>{const e={chainId:this.provider.chainId,isConnected:this.provider.isConnected(),isMetaNask:this.provider.isMetaMask,selectedAddress:this.provider.selectedAddress,networkVersion:this.provider.networkVersion};this.debug&&console.info("Ethereum provider initialized",e)}))}static init(e){var t;return e.debug&&console.debug("Ethereum::init()"),this.instance=new Ix(e),null===(t=this.instance)||void 0===t?void 0:t.provider}static destroy(){Ix.instance=void 0}static getInstance(){var e;if(!(null===(e=this.instance)||void 0===e?void 0:e.provider))throw new Error("Ethereum instance not intiialized - call Ethereum.factory first.");return this.instance}static getProvider(){var e;if(!(null===(e=this.instance)||void 0===e?void 0:e.provider))throw new Error("Ethereum instance not intiialized - call Ethereum.factory first.");return this.instance.provider}}function Nx(e,t,n,r){var i,o,a,s,u,l,c,d,f,h,p,m,g,v;return fA(this,void 0,void 0,(function*(){const n=null===(i=e.state.remote)||void 0===i?void 0:i.isReady(),y=null===(o=e.state.remote)||void 0===o?void 0:o.isConnected(),b=null===(a=e.state.remote)||void 0===a?void 0:a.isPaused(),w=Ix.getProvider(),A=null===(s=e.state.remote)||void 0===s?void 0:s.getChannelId(),_=null===(u=e.state.remote)||void 0===u?void 0:u.isAuthorized(),{method:E,data:S}=(e=>{var t;let n;return Ke.isBuffer(e)?(n=e.toJSON(),n._isBuffer=!0):n=e,{method:null===(t=null==n?void 0:n.data)||void 0===t?void 0:t.method,data:n}})(t);if(e.state.debug&&console.debug(`RPCMS::_write method='${E}' isRemoteReady=${n} channelId=${A} isSocketConnected=${y} isRemotePaused=${b} providerConnected=${w.isConnected()}`,t),!A)return e.state.debug&&E!==yx.METAMASK_GETPROVIDERSTATE&&console.warn("RPCMS::_write Invalid channel id -- undefined"),r();e.state.debug&&console.debug(`RPCMS::_write remote.isPaused()=${null===(l=e.state.remote)||void 0===l?void 0:l.isPaused()} authorized=${_} ready=${n} socketConnected=${y}`,t);try{if(null===(c=e.state.remote)||void 0===c||c.sendMessage(null==S?void 0:S.data).then((()=>{e.state.debug&&console.debug(`RCPMS::_write ${E} sent successfully`)})).catch((e=>{console.error("RCPMS::_write error sending message",e)})),!(null===(d=e.state.platformManager)||void 0===d?void 0:d.isSecure()))return e.state.debug&&console.log(`RCPMS::_write unsecure platform for method ${E} -- return callback`),r();if(!y&&!n)return e.state.debug&&console.debug(`RCPMS::_write invalid connection status targetMethod=${E} socketConnected=${y} ready=${n} providerConnected=${w.isConnected()}\n\n`),r();if(!y&&n)return console.warn("RCPMS::_write invalid socket status -- shouln't happen"),r();const t=null!==(p=null===(h=null===(f=e.state.remote)||void 0===f?void 0:f.getKeyInfo())||void 0===h?void 0:h.ecies.public)&&void 0!==p?p:"",i=encodeURI(`channelId=${A}&pubkey=${t}&comm=socket&t=d`);mx[E]?(e.state.debug&&console.debug(`RCPMS::_write redirect link for '${E}' socketConnected=${y}`,`connect?${i}`),null===(m=e.state.platformManager)||void 0===m||m.openDeeplink(`${Rx}?${i}`,`${Ox}?${i}`,"_self")):(null===(g=e.state.remote)||void 0===g?void 0:g.isPaused())?(e.state.debug&&console.debug(`RCPMS::_write MM is PAUSED! deeplink with connect! targetMethod=${E}`),null===(v=e.state.platformManager)||void 0===v||v.openDeeplink(`${Rx}?redirect=true&${i}`,`${Ox}?redirect=true&${i}`,"_self")):console.debug(`RCPMS::_write method ${E} doesn't need redirect.`)}catch(t){return e.state.debug&&console.error("RCPMS::_write error",t),r(new Error("RemoteCommunicationPostMessageStream - disconnected"))}return r()}))}class Dx extends oS{constructor({name:t,remote:n,platformManager:r,debug:i}){super({objectMode:!0}),this.state={_name:null,remote:null,platformManager:null,debug:!1},this.state._name=t,this.state.remote=n,this.state.debug=i,this.state.platformManager=r,this._onMessage=this._onMessage.bind(this),this.state.remote.on(e.EventType.MESSAGE,this._onMessage)}_write(e,t,n){return fA(this,void 0,void 0,(function*(){return Nx(this,e,0,n)}))}_read(){}_onMessage(e){return function(e,t){try{if(e.state.debug&&console.debug("[RCPMS] _onMessage ",t),!t||"object"!=typeof t)return;if("object"!=typeof(null==t?void 0:t.data))return;if(!(null==t?void 0:t.name))return;if((null==t?void 0:t.name)!==xx.PROVIDER)return;if(Ke.isBuffer(t)){const n=Ke.from(t);e.push(n)}else e.push(t)}catch(t){e.state.debug&&console.debug("RCPMS ignore message error",t)}}(this,e)}start(){}}var Bx={exports:{}};!function(e,t){var n="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof self&&self||void 0!==r&&r,i=function(){function e(){this.fetch=!1,this.DOMException=n.DOMException}return e.prototype=n,new e}();!function(e){!function(t){var n=void 0!==e&&e||"undefined"!=typeof self&&self||void 0!==n&&n,r="URLSearchParams"in n,i="Symbol"in n&&"iterator"in Symbol,o="FileReader"in n&&"Blob"in n&&function(){try{return new Blob,!0}catch(e){return!1}}(),a="FormData"in n,s="ArrayBuffer"in n;if(s)var u=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],l=ArrayBuffer.isView||function(e){return e&&u.indexOf(Object.prototype.toString.call(e))>-1};function c(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(e)||""===e)throw new TypeError('Invalid character in header field name: "'+e+'"');return e.toLowerCase()}function d(e){return"string"!=typeof e&&(e=String(e)),e}function f(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return i&&(t[Symbol.iterator]=function(){return t}),t}function h(e){this.map={},e instanceof h?e.forEach((function(e,t){this.append(t,e)}),this):Array.isArray(e)?e.forEach((function(e){this.append(e[0],e[1])}),this):e&&Object.getOwnPropertyNames(e).forEach((function(t){this.append(t,e[t])}),this)}function p(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function m(e){return new Promise((function(t,n){e.onload=function(){t(e.result)},e.onerror=function(){n(e.error)}}))}function g(e){var t=new FileReader,n=m(t);return t.readAsArrayBuffer(e),n}function v(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function y(){return this.bodyUsed=!1,this._initBody=function(e){var t;this.bodyUsed=this.bodyUsed,this._bodyInit=e,e?"string"==typeof e?this._bodyText=e:o&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:a&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:r&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():s&&o&&(t=e)&&DataView.prototype.isPrototypeOf(t)?(this._bodyArrayBuffer=v(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):s&&(ArrayBuffer.prototype.isPrototypeOf(e)||l(e))?this._bodyArrayBuffer=v(e):this._bodyText=e=Object.prototype.toString.call(e):this._bodyText="",this.headers.get("content-type")||("string"==typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):r&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},o&&(this.blob=function(){var e=p(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){if(this._bodyArrayBuffer){var e=p(this);return e||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer))}return this.blob().then(g)}),this.text=function(){var e,t,n,r=p(this);if(r)return r;if(this._bodyBlob)return e=this._bodyBlob,t=new FileReader,n=m(t),t.readAsText(e),n;if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),n=new Array(t.length),r=0;r-1?t:e}(t.method||this.method||"GET"),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&n)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(n),!("GET"!==this.method&&"HEAD"!==this.method||"no-store"!==t.cache&&"no-cache"!==t.cache)){var r=/([?&])_=[^&]*/;r.test(this.url)?this.url=this.url.replace(r,"$1_="+(new Date).getTime()):this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new Date).getTime()}}function A(e){var t=new FormData;return e.trim().split("&").forEach((function(e){if(e){var n=e.split("="),r=n.shift().replace(/\+/g," "),i=n.join("=").replace(/\+/g," ");t.append(decodeURIComponent(r),decodeURIComponent(i))}})),t}function _(e,t){if(!(this instanceof _))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');t||(t={}),this.type="default",this.status=void 0===t.status?200:t.status,this.ok=this.status>=200&&this.status<300,this.statusText=void 0===t.statusText?"":""+t.statusText,this.headers=new h(t.headers),this.url=t.url||"",this._initBody(e)}w.prototype.clone=function(){return new w(this,{body:this._bodyInit})},y.call(w.prototype),y.call(_.prototype),_.prototype.clone=function(){return new _(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new h(this.headers),url:this.url})},_.error=function(){var e=new _(null,{status:0,statusText:""});return e.type="error",e};var E=[301,302,303,307,308];_.redirect=function(e,t){if(-1===E.indexOf(t))throw new RangeError("Invalid status code");return new _(null,{status:t,headers:{location:e}})},t.DOMException=n.DOMException;try{new t.DOMException}catch(e){t.DOMException=function(e,t){this.message=e,this.name=t;var n=Error(e);this.stack=n.stack},t.DOMException.prototype=Object.create(Error.prototype),t.DOMException.prototype.constructor=t.DOMException}function S(e,r){return new Promise((function(i,a){var u=new w(e,r);if(u.signal&&u.signal.aborted)return a(new t.DOMException("Aborted","AbortError"));var l=new XMLHttpRequest;function c(){l.abort()}l.onload=function(){var e,t,n={status:l.status,statusText:l.statusText,headers:(e=l.getAllResponseHeaders()||"",t=new h,e.replace(/\r?\n[\t ]+/g," ").split("\r").map((function(e){return 0===e.indexOf("\n")?e.substr(1,e.length):e})).forEach((function(e){var n=e.split(":"),r=n.shift().trim();if(r){var i=n.join(":").trim();t.append(r,i)}})),t)};n.url="responseURL"in l?l.responseURL:n.headers.get("X-Request-URL");var r="response"in l?l.response:l.responseText;setTimeout((function(){i(new _(r,n))}),0)},l.onerror=function(){setTimeout((function(){a(new TypeError("Network request failed"))}),0)},l.ontimeout=function(){setTimeout((function(){a(new TypeError("Network request failed"))}),0)},l.onabort=function(){setTimeout((function(){a(new t.DOMException("Aborted","AbortError"))}),0)},l.open(u.method,function(e){try{return""===e&&n.location.href?n.location.href:e}catch(t){return e}}(u.url),!0),"include"===u.credentials?l.withCredentials=!0:"omit"===u.credentials&&(l.withCredentials=!1),"responseType"in l&&(o?l.responseType="blob":s&&u.headers.get("Content-Type")&&-1!==u.headers.get("Content-Type").indexOf("application/octet-stream")&&(l.responseType="arraybuffer")),!r||"object"!=typeof r.headers||r.headers instanceof h?u.headers.forEach((function(e,t){l.setRequestHeader(t,e)})):Object.getOwnPropertyNames(r.headers).forEach((function(e){l.setRequestHeader(e,d(r.headers[e]))})),u.signal&&(u.signal.addEventListener("abort",c),l.onreadystatechange=function(){4===l.readyState&&u.signal.removeEventListener("abort",c)}),l.send(void 0===u._bodyInit?null:u._bodyInit)}))}S.polyfill=!0,n.fetch||(n.fetch=S,n.Headers=h,n.Request=w,n.Response=_),t.Headers=h,t.Request=w,t.Response=_,t.fetch=S}({})}(i),i.fetch.ponyfill=!0,delete i.fetch.polyfill;var o=n.fetch?n:i;(t=o.fetch).default=o.fetch,t.fetch=o.fetch,t.Headers=o.Headers,t.Request=o.Request,t.Response=o.Response,e.exports=t}(Bx,Bx.exports);var jx=i(Bx.exports);let Ux=1;const zx=e=>new Promise((t=>{setTimeout((()=>{t(!0)}),e)})),Fx=({checkInstallationOnAllCalls:t=!1,communicationLayerPreference:n,injectProvider:r,shouldShimWeb3:i,platformManager:o,installer:a,sdk:s,remoteConnection:u,debug:l})=>{var c;const d=(({name:e,remoteConnection:t,debug:n})=>{if(!t||!(null==t?void 0:t.getConnector()))throw new Error("Missing remote connection parameter");return new Dx({name:e,remote:null==t?void 0:t.getConnector(),platformManager:null==t?void 0:t.getPlatformManager(),debug:n})})({name:xx.INPAGE,target:xx.CONTENT_SCRIPT,platformManager:o,communicationLayerPreference:n,remoteConnection:u,debug:l}),f=o.getPlatformType(),h=s.options.dappMetadata,p=`Sdk/Javascript SdkVersion/${px} Platform/${f} dApp/${null!==(c=h.url)&&void 0!==c?c:h.name}`;let m=null,g=null;const v=!(!r||f===e.PlatformType.NonBrowser||f===e.PlatformType.ReactNative),y=Ix.init({shouldSetOnWindow:v,connectionStream:d,shouldShimWeb3:i,debug:l});let b=!1;const w=e=>{b=e},A=()=>b,_=(n,r,i,c)=>fA(void 0,void 0,void 0,(function*(){var d,f,h,v,y,_,E,S,k,M,C;if(b){null==u||u.showActiveModal();let e=A();for(;e;)yield zx(1e3),e=A();return l&&console.debug("initializeProvider::sendRequest() initial method completed -- prevent installation and call provider"),i(...r)}const x=o.isMetaMaskInstalled(),R=null==u?void 0:u.isConnected();let{selectedAddress:O,chainId:T}=Ix.getProvider();if(O=null!=O?O:m,T=null!==(d=null!=T?T:g)&&void 0!==d?d:s.defaultReadOnlyChainId,O&&(m=O),T&&(g=T),c&&console.debug(`initializeProvider::sendRequest() method=${n} ongoing=${b} selectedAddress=${O} isInstalled=${x} checkInstallationOnAllCalls=${t} socketConnected=${R}`),O&&n.toLowerCase()===yx.ETH_ACCOUNTS.toLowerCase())return[O];if(T&&n.toLowerCase()===yx.ETH_CHAINID.toLowerCase())return T;const P=[yx.ETH_REQUESTACCOUNTS,yx.METAMASK_CONNECTSIGN,yx.METAMASK_CONNECTWITH],L=!mx[n],I=null===(f=s.options.readonlyRPCMap)||void 0===f?void 0:f[T];if(I&&L)try{const e=null===(h=null==r?void 0:r[0])||void 0===h?void 0:h.params,t=yield(({rpcEndpoint:e,method:t,sdkInfo:n,params:r})=>fA(void 0,void 0,void 0,(function*(){const i=JSON.stringify({jsonrpc:"2.0",method:t,params:r,id:(Ux+=1,Ux)}),o={Accept:"application/json","Content-Type":"application/json"};let a;e.includes("infura")&&(o["Metamask-Sdk-Info"]=n);try{a=yield jx(e,{method:"POST",headers:o,body:i})}catch(e){throw e instanceof Error?new Error(`Failed to fetch from RPC: ${e.message}`):new Error(`Failed to fetch from RPC: ${e}`)}if(!a.ok)throw new Error(`Server responded with a status of ${a.status}`);return(yield a.json()).result})))({rpcEndpoint:I,sdkInfo:p,method:n,params:e||[]});return c&&console.log("initializeProvider::ReadOnlyRPCResponse",t),t}catch(e){console.warn(`initializeProvider::sendRequest() method=${n} readOnlyRPCRequest failed:`,e)}if((!x||x&&!R)&&n!==yx.METAMASK_GETPROVIDERSTATE){if(-1!==P.indexOf(n)||t){w(!0);try{yield a.start({wait:!1})}catch(t){if(w(!1),e.PROVIDER_UPDATE_TYPE.EXTENSION===t){if(l&&console.debug(`initializeProvider extension provider detect: re-create ${n} on the active provider`),n.toLowerCase()===yx.METAMASK_CONNECTSIGN.toLowerCase()){const[e]=r,{params:t}=e,n=yield null===(v=s.getProvider())||void 0===v?void 0:v.request({method:yx.ETH_REQUESTACCOUNTS,params:[]});if(!n.length)throw new Error("SDK state invalid -- undefined accounts");return yield null===(y=s.getProvider())||void 0===y?void 0:y.request({method:yx.PERSONAL_SIGN,params:[t[0],n[0]]})}if(n.toLowerCase()===yx.METAMASK_CONNECTWITH.toLowerCase()){const e=yield null===(_=s.getProvider())||void 0===_?void 0:_.request({method:yx.ETH_REQUESTACCOUNTS,params:[]});if(!e.length)throw new Error("SDK state invalid -- undefined accounts");const[t]=r;console.log("connectWith:: initialMethod",t);const{params:n}=t,[i]=n;if(console.warn("FIXME:: handle CONNECT_WITH",i),(null===(E=i.method)||void 0===E?void 0:E.toLowerCase())===yx.PERSONAL_SIGN.toLowerCase()){const t={method:i.method,params:[i.params[0],e[0]]};return console.log("connectWith:: connectedRpc",t),yield null===(S=s.getProvider())||void 0===S?void 0:S.request(t)}console.warn("FIXME:: handle CONNECT_WITH",i)}return yield null===(k=s.getProvider())||void 0===k?void 0:k.request({method:n,params:r})}throw l&&console.debug(`initializeProvider failed to start installer: ${t}`),t}const o=i(...r);try{yield new Promise(((t,n)=>{null==u||u.getConnector().once(e.EventType.AUTHORIZED,(()=>{t(!0)})),s.once(e.EventType.PROVIDER_UPDATE,(t=>{l&&console.debug("initializeProvider::sendRequest() PROVIDER_UPDATE --- remote provider request interupted",t),t===e.PROVIDER_UPDATE_TYPE.EXTENSION?n(e.EventType.PROVIDER_UPDATE):n(new Error("Connection Terminated"))}))}))}catch(t){if(w(!1),t===e.EventType.PROVIDER_UPDATE)return yield null===(M=s.getProvider())||void 0===M?void 0:M.request({method:n,params:r});throw t}return w(!1),o}if(o.isSecure()&&mx[n])return i(...r);if(s.isExtensionActive())return l&&console.debug(`initializeProvider::sendRequest() EXTENSION active - redirect request '${n}' to it`),yield null===(C=s.getProvider())||void 0===C?void 0:C.request({method:n,params:r});throw l&&console.debug(`initializeProvider::sendRequest() method=${n} --- skip --- not connected/installed`),new Error("MetaMask is not connected/installed, please call eth_requestAccounts to connect first.")}const N=yield i(...r);return l&&console.debug(`initializeProvider::sendRequest() method=${n} rpcResponse:`,N),N})),{request:E}=y;y.request=(...e)=>fA(void 0,void 0,void 0,(function*(){return _(null==e?void 0:e[0].method,e,E,l)}));const{send:S}=y;return y.send=(...e)=>fA(void 0,void 0,void 0,(function*(){return _(null==e?void 0:e[0],e,S,l)})),l&&console.debug("initializeProvider metamaskStream.start()"),d.start(),y};function qx(t){var n,r,i;return fA(this,void 0,void 0,(function*(){const{options:o}=t;t.activeProvider=Fx({communicationLayerPreference:null!==(n=o.communicationLayerPreference)&&void 0!==n?n:e.CommunicationLayerPreference.SOCKET,platformManager:t.platformManager,sdk:t,checkInstallationOnAllCalls:o.checkInstallationOnAllCalls,injectProvider:null===(r=o.injectProvider)||void 0===r||r,shouldShimWeb3:null===(i=o.shouldShimWeb3)||void 0===i||i,installer:t.installer,remoteConnection:t.remoteConnection,debug:t.debug}),function(t){var n,r,i,o;null===(r=null===(n=t.remoteConnection)||void 0===n?void 0:n.getConnector())||void 0===r||r.on(e.EventType.CONNECTION_STATUS,(n=>{t.emit(e.EventType.CONNECTION_STATUS,n)})),null===(o=null===(i=t.remoteConnection)||void 0===i?void 0:i.getConnector())||void 0===o||o.on(e.EventType.SERVICE_STATUS,(n=>{t.emit(e.EventType.SERVICE_STATUS,n)}))}(t)}))}const Wx=()=>{if("undefined"==typeof document)return;let e;const t=document.getElementsByTagName("link");for(let n=0;n{if("state"in e)throw new Error("INVALID EXTENSION PROVIDER");return new Proxy(e,{get:(n,r)=>"request"===r?function(r){return fA(this,void 0,void 0,(function*(){t&&console.debug("[wrapExtensionProvider] Overwriting request method, args:",r);const{method:i,params:o}=r;if(i===yx.METAMASK_BATCH&&Array.isArray(o)){const t=[];for(const n of o){const r=yield null==e?void 0:e.request({method:n.method,params:n.params});t.push(r)}return t}return n.request(r)}))}:n[r]})};var Hx;function $x({mustBeMetaMask:e,debug:t}){return fA(this,void 0,void 0,(function*(){if("undefined"==typeof window)throw new Error("window not available");let n;try{return n=yield new Promise(((e,t)=>{const n=setTimeout((()=>{t(new Error("eip6963RequestProvider timed out"))}),500);window.addEventListener(Hx.Announce,(t=>{const r=t,{detail:{info:i,provider:o}={}}=r,{name:a,rdns:s,uuid:u}=null!=i?i:{};Px.test(u)&&a===Tx.NAME&&s===Tx.RDNS&&(clearTimeout(n),e(o))})),window.dispatchEvent(new Event(Hx.Request))})),Kx({provider:n,debug:t})}catch(n){const{ethereum:r}=window;if(!r)throw new Error("Ethereum not found in window object");if("providers"in r){if(Array.isArray(r.providers)){const n=e?r.providers.find((e=>e.isMetaMask)):r.providers[0];if(!n)throw new Error("No suitable provider found");return Kx({provider:n,debug:t})}}else if(e&&!r.isMetaMask)throw new Error("MetaMask provider not found in Ethereum");return Kx({provider:r,debug:t})}}))}!function(e){e.Announce="eip6963:announceProvider",e.Request="eip6963:requestProvider"}(Hx||(Hx={}));var Yx={exports:{}};!function(e,t){e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=90)}({17:function(e,t,n){t.__esModule=!0,t.default=void 0;var r=n(18),i=function(){function e(){}return e.getFirstMatch=function(e,t){var n=t.match(e);return n&&n.length>0&&n[1]||""},e.getSecondMatch=function(e,t){var n=t.match(e);return n&&n.length>1&&n[2]||""},e.matchAndReturnConst=function(e,t,n){if(e.test(t))return n},e.getWindowsVersionName=function(e){switch(e){case"NT":return"NT";case"XP":case"NT 5.1":return"XP";case"NT 5.0":return"2000";case"NT 5.2":return"2003";case"NT 6.0":return"Vista";case"NT 6.1":return"7";case"NT 6.2":return"8";case"NT 6.3":return"8.1";case"NT 10.0":return"10";default:return}},e.getMacOSVersionName=function(e){var t=e.split(".").splice(0,2).map((function(e){return parseInt(e,10)||0}));if(t.push(0),10===t[0])switch(t[1]){case 5:return"Leopard";case 6:return"Snow Leopard";case 7:return"Lion";case 8:return"Mountain Lion";case 9:return"Mavericks";case 10:return"Yosemite";case 11:return"El Capitan";case 12:return"Sierra";case 13:return"High Sierra";case 14:return"Mojave";case 15:return"Catalina";default:return}},e.getAndroidVersionName=function(e){var t=e.split(".").splice(0,2).map((function(e){return parseInt(e,10)||0}));if(t.push(0),!(1===t[0]&&t[1]<5))return 1===t[0]&&t[1]<6?"Cupcake":1===t[0]&&t[1]>=6?"Donut":2===t[0]&&t[1]<2?"Eclair":2===t[0]&&2===t[1]?"Froyo":2===t[0]&&t[1]>2?"Gingerbread":3===t[0]?"Honeycomb":4===t[0]&&t[1]<1?"Ice Cream Sandwich":4===t[0]&&t[1]<4?"Jelly Bean":4===t[0]&&t[1]>=4?"KitKat":5===t[0]?"Lollipop":6===t[0]?"Marshmallow":7===t[0]?"Nougat":8===t[0]?"Oreo":9===t[0]?"Pie":void 0},e.getVersionPrecision=function(e){return e.split(".").length},e.compareVersions=function(t,n,r){void 0===r&&(r=!1);var i=e.getVersionPrecision(t),o=e.getVersionPrecision(n),a=Math.max(i,o),s=0,u=e.map([t,n],(function(t){var n=a-e.getVersionPrecision(t),r=t+new Array(n+1).join(".0");return e.map(r.split("."),(function(e){return new Array(20-e.length).join("0")+e})).reverse()}));for(r&&(s=a-Math.min(i,o)),a-=1;a>=s;){if(u[0][a]>u[1][a])return 1;if(u[0][a]===u[1][a]){if(a===s)return 0;a-=1}else if(u[0][a]1?i-1:0),a=1;a0){var a=Object.keys(n),u=s.default.find(a,(function(e){return t.isOS(e)}));if(u){var l=this.satisfies(n[u]);if(void 0!==l)return l}var c=s.default.find(a,(function(e){return t.isPlatform(e)}));if(c){var d=this.satisfies(n[c]);if(void 0!==d)return d}}if(o>0){var f=Object.keys(i),h=s.default.find(f,(function(e){return t.isBrowser(e,!0)}));if(void 0!==h)return this.compareVersion(i[h])}},t.isBrowser=function(e,t){void 0===t&&(t=!1);var n=this.getBrowserName().toLowerCase(),r=e.toLowerCase(),i=s.default.getBrowserTypeByAlias(r);return t&&i&&(r=i.toLowerCase()),r===n},t.compareVersion=function(e){var t=[0],n=e,r=!1,i=this.getBrowserVersion();if("string"==typeof i)return">"===e[0]||"<"===e[0]?(n=e.substr(1),"="===e[1]?(r=!0,n=e.substr(2)):t=[],">"===e[0]?t.push(1):t.push(-1)):"="===e[0]?n=e.substr(1):"~"===e[0]&&(r=!0,n=e.substr(1)),t.indexOf(s.default.compareVersions(i,n,r))>-1},t.isOS=function(e){return this.getOSName(!0)===String(e).toLowerCase()},t.isPlatform=function(e){return this.getPlatformType(!0)===String(e).toLowerCase()},t.isEngine=function(e){return this.getEngineName(!0)===String(e).toLowerCase()},t.is=function(e,t){return void 0===t&&(t=!1),this.isBrowser(e,t)||this.isOS(e)||this.isPlatform(e)},t.some=function(e){var t=this;return void 0===e&&(e=[]),e.some((function(e){return t.is(e)}))},e}();t.default=l,e.exports=t.default},92:function(e,t,n){t.__esModule=!0,t.default=void 0;var r,i=(r=n(17))&&r.__esModule?r:{default:r},o=/version\/(\d+(\.?_?\d+)+)/i,a=[{test:[/googlebot/i],describe:function(e){var t={name:"Googlebot"},n=i.default.getFirstMatch(/googlebot\/(\d+(\.\d+))/i,e)||i.default.getFirstMatch(o,e);return n&&(t.version=n),t}},{test:[/opera/i],describe:function(e){var t={name:"Opera"},n=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/(?:opera)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/opr\/|opios/i],describe:function(e){var t={name:"Opera"},n=i.default.getFirstMatch(/(?:opr|opios)[\s/](\S+)/i,e)||i.default.getFirstMatch(o,e);return n&&(t.version=n),t}},{test:[/SamsungBrowser/i],describe:function(e){var t={name:"Samsung Internet for Android"},n=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/(?:SamsungBrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/Whale/i],describe:function(e){var t={name:"NAVER Whale Browser"},n=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/(?:whale)[\s/](\d+(?:\.\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/MZBrowser/i],describe:function(e){var t={name:"MZ Browser"},n=i.default.getFirstMatch(/(?:MZBrowser)[\s/](\d+(?:\.\d+)+)/i,e)||i.default.getFirstMatch(o,e);return n&&(t.version=n),t}},{test:[/focus/i],describe:function(e){var t={name:"Focus"},n=i.default.getFirstMatch(/(?:focus)[\s/](\d+(?:\.\d+)+)/i,e)||i.default.getFirstMatch(o,e);return n&&(t.version=n),t}},{test:[/swing/i],describe:function(e){var t={name:"Swing"},n=i.default.getFirstMatch(/(?:swing)[\s/](\d+(?:\.\d+)+)/i,e)||i.default.getFirstMatch(o,e);return n&&(t.version=n),t}},{test:[/coast/i],describe:function(e){var t={name:"Opera Coast"},n=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/(?:coast)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/opt\/\d+(?:.?_?\d+)+/i],describe:function(e){var t={name:"Opera Touch"},n=i.default.getFirstMatch(/(?:opt)[\s/](\d+(\.?_?\d+)+)/i,e)||i.default.getFirstMatch(o,e);return n&&(t.version=n),t}},{test:[/yabrowser/i],describe:function(e){var t={name:"Yandex Browser"},n=i.default.getFirstMatch(/(?:yabrowser)[\s/](\d+(\.?_?\d+)+)/i,e)||i.default.getFirstMatch(o,e);return n&&(t.version=n),t}},{test:[/ucbrowser/i],describe:function(e){var t={name:"UC Browser"},n=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/(?:ucbrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/Maxthon|mxios/i],describe:function(e){var t={name:"Maxthon"},n=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/(?:Maxthon|mxios)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/epiphany/i],describe:function(e){var t={name:"Epiphany"},n=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/(?:epiphany)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/puffin/i],describe:function(e){var t={name:"Puffin"},n=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/(?:puffin)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/sleipnir/i],describe:function(e){var t={name:"Sleipnir"},n=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/(?:sleipnir)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/k-meleon/i],describe:function(e){var t={name:"K-Meleon"},n=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/(?:k-meleon)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/micromessenger/i],describe:function(e){var t={name:"WeChat"},n=i.default.getFirstMatch(/(?:micromessenger)[\s/](\d+(\.?_?\d+)+)/i,e)||i.default.getFirstMatch(o,e);return n&&(t.version=n),t}},{test:[/qqbrowser/i],describe:function(e){var t={name:/qqbrowserlite/i.test(e)?"QQ Browser Lite":"QQ Browser"},n=i.default.getFirstMatch(/(?:qqbrowserlite|qqbrowser)[/](\d+(\.?_?\d+)+)/i,e)||i.default.getFirstMatch(o,e);return n&&(t.version=n),t}},{test:[/msie|trident/i],describe:function(e){var t={name:"Internet Explorer"},n=i.default.getFirstMatch(/(?:msie |rv:)(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/\sedg\//i],describe:function(e){var t={name:"Microsoft Edge"},n=i.default.getFirstMatch(/\sedg\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/edg([ea]|ios)/i],describe:function(e){var t={name:"Microsoft Edge"},n=i.default.getSecondMatch(/edg([ea]|ios)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/vivaldi/i],describe:function(e){var t={name:"Vivaldi"},n=i.default.getFirstMatch(/vivaldi\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/seamonkey/i],describe:function(e){var t={name:"SeaMonkey"},n=i.default.getFirstMatch(/seamonkey\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/sailfish/i],describe:function(e){var t={name:"Sailfish"},n=i.default.getFirstMatch(/sailfish\s?browser\/(\d+(\.\d+)?)/i,e);return n&&(t.version=n),t}},{test:[/silk/i],describe:function(e){var t={name:"Amazon Silk"},n=i.default.getFirstMatch(/silk\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/phantom/i],describe:function(e){var t={name:"PhantomJS"},n=i.default.getFirstMatch(/phantomjs\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/slimerjs/i],describe:function(e){var t={name:"SlimerJS"},n=i.default.getFirstMatch(/slimerjs\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe:function(e){var t={name:"BlackBerry"},n=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/blackberry[\d]+\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/(web|hpw)[o0]s/i],describe:function(e){var t={name:"WebOS Browser"},n=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/w(?:eb)?[o0]sbrowser\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/bada/i],describe:function(e){var t={name:"Bada"},n=i.default.getFirstMatch(/dolfin\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/tizen/i],describe:function(e){var t={name:"Tizen"},n=i.default.getFirstMatch(/(?:tizen\s?)?browser\/(\d+(\.?_?\d+)+)/i,e)||i.default.getFirstMatch(o,e);return n&&(t.version=n),t}},{test:[/qupzilla/i],describe:function(e){var t={name:"QupZilla"},n=i.default.getFirstMatch(/(?:qupzilla)[\s/](\d+(\.?_?\d+)+)/i,e)||i.default.getFirstMatch(o,e);return n&&(t.version=n),t}},{test:[/firefox|iceweasel|fxios/i],describe:function(e){var t={name:"Firefox"},n=i.default.getFirstMatch(/(?:firefox|iceweasel|fxios)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/electron/i],describe:function(e){var t={name:"Electron"},n=i.default.getFirstMatch(/(?:electron)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/MiuiBrowser/i],describe:function(e){var t={name:"Miui"},n=i.default.getFirstMatch(/(?:MiuiBrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/chromium/i],describe:function(e){var t={name:"Chromium"},n=i.default.getFirstMatch(/(?:chromium)[\s/](\d+(\.?_?\d+)+)/i,e)||i.default.getFirstMatch(o,e);return n&&(t.version=n),t}},{test:[/chrome|crios|crmo/i],describe:function(e){var t={name:"Chrome"},n=i.default.getFirstMatch(/(?:chrome|crios|crmo)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/GSA/i],describe:function(e){var t={name:"Google Search"},n=i.default.getFirstMatch(/(?:GSA)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:function(e){var t=!e.test(/like android/i),n=e.test(/android/i);return t&&n},describe:function(e){var t={name:"Android Browser"},n=i.default.getFirstMatch(o,e);return n&&(t.version=n),t}},{test:[/playstation 4/i],describe:function(e){var t={name:"PlayStation 4"},n=i.default.getFirstMatch(o,e);return n&&(t.version=n),t}},{test:[/safari|applewebkit/i],describe:function(e){var t={name:"Safari"},n=i.default.getFirstMatch(o,e);return n&&(t.version=n),t}},{test:[/.*/i],describe:function(e){var t=-1!==e.search("\\(")?/^(.*)\/(.*)[ \t]\((.*)/:/^(.*)\/(.*) /;return{name:i.default.getFirstMatch(t,e),version:i.default.getSecondMatch(t,e)}}}];t.default=a,e.exports=t.default},93:function(e,t,n){t.__esModule=!0,t.default=void 0;var r,i=(r=n(17))&&r.__esModule?r:{default:r},o=n(18),a=[{test:[/Roku\/DVP/],describe:function(e){var t=i.default.getFirstMatch(/Roku\/DVP-(\d+\.\d+)/i,e);return{name:o.OS_MAP.Roku,version:t}}},{test:[/windows phone/i],describe:function(e){var t=i.default.getFirstMatch(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i,e);return{name:o.OS_MAP.WindowsPhone,version:t}}},{test:[/windows /i],describe:function(e){var t=i.default.getFirstMatch(/Windows ((NT|XP)( \d\d?.\d)?)/i,e),n=i.default.getWindowsVersionName(t);return{name:o.OS_MAP.Windows,version:t,versionName:n}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe:function(e){var t={name:o.OS_MAP.iOS},n=i.default.getSecondMatch(/(Version\/)(\d[\d.]+)/,e);return n&&(t.version=n),t}},{test:[/macintosh/i],describe:function(e){var t=i.default.getFirstMatch(/mac os x (\d+(\.?_?\d+)+)/i,e).replace(/[_\s]/g,"."),n=i.default.getMacOSVersionName(t),r={name:o.OS_MAP.MacOS,version:t};return n&&(r.versionName=n),r}},{test:[/(ipod|iphone|ipad)/i],describe:function(e){var t=i.default.getFirstMatch(/os (\d+([_\s]\d+)*) like mac os x/i,e).replace(/[_\s]/g,".");return{name:o.OS_MAP.iOS,version:t}}},{test:function(e){var t=!e.test(/like android/i),n=e.test(/android/i);return t&&n},describe:function(e){var t=i.default.getFirstMatch(/android[\s/-](\d+(\.\d+)*)/i,e),n=i.default.getAndroidVersionName(t),r={name:o.OS_MAP.Android,version:t};return n&&(r.versionName=n),r}},{test:[/(web|hpw)[o0]s/i],describe:function(e){var t=i.default.getFirstMatch(/(?:web|hpw)[o0]s\/(\d+(\.\d+)*)/i,e),n={name:o.OS_MAP.WebOS};return t&&t.length&&(n.version=t),n}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe:function(e){var t=i.default.getFirstMatch(/rim\stablet\sos\s(\d+(\.\d+)*)/i,e)||i.default.getFirstMatch(/blackberry\d+\/(\d+([_\s]\d+)*)/i,e)||i.default.getFirstMatch(/\bbb(\d+)/i,e);return{name:o.OS_MAP.BlackBerry,version:t}}},{test:[/bada/i],describe:function(e){var t=i.default.getFirstMatch(/bada\/(\d+(\.\d+)*)/i,e);return{name:o.OS_MAP.Bada,version:t}}},{test:[/tizen/i],describe:function(e){var t=i.default.getFirstMatch(/tizen[/\s](\d+(\.\d+)*)/i,e);return{name:o.OS_MAP.Tizen,version:t}}},{test:[/linux/i],describe:function(){return{name:o.OS_MAP.Linux}}},{test:[/CrOS/],describe:function(){return{name:o.OS_MAP.ChromeOS}}},{test:[/PlayStation 4/],describe:function(e){var t=i.default.getFirstMatch(/PlayStation 4[/\s](\d+(\.\d+)*)/i,e);return{name:o.OS_MAP.PlayStation4,version:t}}}];t.default=a,e.exports=t.default},94:function(e,t,n){t.__esModule=!0,t.default=void 0;var r,i=(r=n(17))&&r.__esModule?r:{default:r},o=n(18),a=[{test:[/googlebot/i],describe:function(){return{type:"bot",vendor:"Google"}}},{test:[/huawei/i],describe:function(e){var t=i.default.getFirstMatch(/(can-l01)/i,e)&&"Nova",n={type:o.PLATFORMS_MAP.mobile,vendor:"Huawei"};return t&&(n.model=t),n}},{test:[/nexus\s*(?:7|8|9|10).*/i],describe:function(){return{type:o.PLATFORMS_MAP.tablet,vendor:"Nexus"}}},{test:[/ipad/i],describe:function(){return{type:o.PLATFORMS_MAP.tablet,vendor:"Apple",model:"iPad"}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe:function(){return{type:o.PLATFORMS_MAP.tablet,vendor:"Apple",model:"iPad"}}},{test:[/kftt build/i],describe:function(){return{type:o.PLATFORMS_MAP.tablet,vendor:"Amazon",model:"Kindle Fire HD 7"}}},{test:[/silk/i],describe:function(){return{type:o.PLATFORMS_MAP.tablet,vendor:"Amazon"}}},{test:[/tablet(?! pc)/i],describe:function(){return{type:o.PLATFORMS_MAP.tablet}}},{test:function(e){var t=e.test(/ipod|iphone/i),n=e.test(/like (ipod|iphone)/i);return t&&!n},describe:function(e){var t=i.default.getFirstMatch(/(ipod|iphone)/i,e);return{type:o.PLATFORMS_MAP.mobile,vendor:"Apple",model:t}}},{test:[/nexus\s*[0-6].*/i,/galaxy nexus/i],describe:function(){return{type:o.PLATFORMS_MAP.mobile,vendor:"Nexus"}}},{test:[/[^-]mobi/i],describe:function(){return{type:o.PLATFORMS_MAP.mobile}}},{test:function(e){return"blackberry"===e.getBrowserName(!0)},describe:function(){return{type:o.PLATFORMS_MAP.mobile,vendor:"BlackBerry"}}},{test:function(e){return"bada"===e.getBrowserName(!0)},describe:function(){return{type:o.PLATFORMS_MAP.mobile}}},{test:function(e){return"windows phone"===e.getBrowserName()},describe:function(){return{type:o.PLATFORMS_MAP.mobile,vendor:"Microsoft"}}},{test:function(e){var t=Number(String(e.getOSVersion()).split(".")[0]);return"android"===e.getOSName(!0)&&t>=3},describe:function(){return{type:o.PLATFORMS_MAP.tablet}}},{test:function(e){return"android"===e.getOSName(!0)},describe:function(){return{type:o.PLATFORMS_MAP.mobile}}},{test:function(e){return"macos"===e.getOSName(!0)},describe:function(){return{type:o.PLATFORMS_MAP.desktop,vendor:"Apple"}}},{test:function(e){return"windows"===e.getOSName(!0)},describe:function(){return{type:o.PLATFORMS_MAP.desktop}}},{test:function(e){return"linux"===e.getOSName(!0)},describe:function(){return{type:o.PLATFORMS_MAP.desktop}}},{test:function(e){return"playstation 4"===e.getOSName(!0)},describe:function(){return{type:o.PLATFORMS_MAP.tv}}},{test:function(e){return"roku"===e.getOSName(!0)},describe:function(){return{type:o.PLATFORMS_MAP.tv}}}];t.default=a,e.exports=t.default},95:function(e,t,n){t.__esModule=!0,t.default=void 0;var r,i=(r=n(17))&&r.__esModule?r:{default:r},o=n(18),a=[{test:function(e){return"microsoft edge"===e.getBrowserName(!0)},describe:function(e){if(/\sedg\//i.test(e))return{name:o.ENGINE_MAP.Blink};var t=i.default.getFirstMatch(/edge\/(\d+(\.?_?\d+)+)/i,e);return{name:o.ENGINE_MAP.EdgeHTML,version:t}}},{test:[/trident/i],describe:function(e){var t={name:o.ENGINE_MAP.Trident},n=i.default.getFirstMatch(/trident\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:function(e){return e.test(/presto/i)},describe:function(e){var t={name:o.ENGINE_MAP.Presto},n=i.default.getFirstMatch(/presto\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:function(e){var t=e.test(/gecko/i),n=e.test(/like gecko/i);return t&&!n},describe:function(e){var t={name:o.ENGINE_MAP.Gecko},n=i.default.getFirstMatch(/gecko\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/(apple)?webkit\/537\.36/i],describe:function(){return{name:o.ENGINE_MAP.Blink}}},{test:[/(apple)?webkit/i],describe:function(e){var t={name:o.ENGINE_MAP.WebKit},n=i.default.getFirstMatch(/webkit\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}}];t.default=a,e.exports=t.default}})}(Yx);var Gx,Qx=i(Yx.exports);!function(e){e.Disabled="Disabled",e.Temporary="Temporary",e.UntilResponse="UntilResponse"}(Gx||(Gx={}));const Zx=()=>"wakeLock"in navigator,Xx=()=>{if("undefined"==typeof navigator)return!1;const{userAgent:e}=navigator,t=/CPU (?:iPhone )?OS (\d+)(?:_\d+)?_?\d+ like Mac OS X/iu.exec(e);return!!t&&(parseInt(t[1],10)<10&&!window.MSStream)};class Jx{constructor(e){this.enabled=!1,this._eventsAdded=!1,this.debug=null!=e&&e}start(){if(this.enabled=!1,Zx()&&!this._eventsAdded){this._eventsAdded=!0,this._wakeLock=void 0;const e=()=>fA(this,void 0,void 0,(function*(){null!==this._wakeLock&&"visible"===document.visibilityState&&(yield this.enable())}));document.addEventListener("visibilitychange",e),document.addEventListener("fullscreenchange",e)}else Xx()?this.noSleepTimer=void 0:(this.noSleepVideo=document.createElement("video"),this.noSleepVideo.setAttribute("title","MetaMask SDK - Listening for responses"),this.noSleepVideo.setAttribute("playsinline",""),this._addSourceToVideo(this.noSleepVideo,"webm","data:video/webm;base64,GkXfowEAAAAAAAAfQoaBAUL3gQFC8oEEQvOBCEKChHdlYm1Ch4EEQoWBAhhTgGcBAAAAAAAVkhFNm3RALE27i1OrhBVJqWZTrIHfTbuMU6uEFlSua1OsggEwTbuMU6uEHFO7a1OsghV17AEAAAAAAACkAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAVSalmAQAAAAAAAEUq17GDD0JATYCNTGF2ZjU1LjMzLjEwMFdBjUxhdmY1NS4zMy4xMDBzpJBlrrXf3DCDVB8KcgbMpcr+RImIQJBgAAAAAAAWVK5rAQAAAAAAD++uAQAAAAAAADLXgQFzxYEBnIEAIrWcg3VuZIaFVl9WUDiDgQEj44OEAmJaAOABAAAAAAAABrCBsLqBkK4BAAAAAAAPq9eBAnPFgQKcgQAitZyDdW5khohBX1ZPUkJJU4OBAuEBAAAAAAAAEZ+BArWIQOdwAAAAAABiZIEgY6JPbwIeVgF2b3JiaXMAAAAAAoC7AAAAAAAAgLUBAAAAAAC4AQN2b3JiaXMtAAAAWGlwaC5PcmcgbGliVm9yYmlzIEkgMjAxMDExMDEgKFNjaGF1ZmVudWdnZXQpAQAAABUAAABlbmNvZGVyPUxhdmM1NS41Mi4xMDIBBXZvcmJpcyVCQ1YBAEAAACRzGCpGpXMWhBAaQlAZ4xxCzmvsGUJMEYIcMkxbyyVzkCGkoEKIWyiB0JBVAABAAACHQXgUhIpBCCGEJT1YkoMnPQghhIg5eBSEaUEIIYQQQgghhBBCCCGERTlokoMnQQgdhOMwOAyD5Tj4HIRFOVgQgydB6CCED0K4moOsOQghhCQ1SFCDBjnoHITCLCiKgsQwuBaEBDUojILkMMjUgwtCiJqDSTX4GoRnQXgWhGlBCCGEJEFIkIMGQcgYhEZBWJKDBjm4FITLQagahCo5CB+EIDRkFQCQAACgoiiKoigKEBqyCgDIAAAQQFEUx3EcyZEcybEcCwgNWQUAAAEACAAAoEiKpEiO5EiSJFmSJVmSJVmS5omqLMuyLMuyLMsyEBqyCgBIAABQUQxFcRQHCA1ZBQBkAAAIoDiKpViKpWiK54iOCISGrAIAgAAABAAAEDRDUzxHlETPVFXXtm3btm3btm3btm3btm1blmUZCA1ZBQBAAAAQ0mlmqQaIMAMZBkJDVgEACAAAgBGKMMSA0JBVAABAAACAGEoOogmtOd+c46BZDppKsTkdnEi1eZKbirk555xzzsnmnDHOOeecopxZDJoJrTnnnMSgWQqaCa0555wnsXnQmiqtOeeccc7pYJwRxjnnnCateZCajbU555wFrWmOmkuxOeecSLl5UptLtTnnnHPOOeecc84555zqxekcnBPOOeecqL25lpvQxTnnnE/G6d6cEM4555xzzjnnnHPOOeecIDRkFQAABABAEIaNYdwpCNLnaCBGEWIaMulB9+gwCRqDnELq0ehopJQ6CCWVcVJKJwgNWQUAAAIAQAghhRRSSCGFFFJIIYUUYoghhhhyyimnoIJKKqmooowyyyyzzDLLLLPMOuyssw47DDHEEEMrrcRSU2011lhr7jnnmoO0VlprrbVSSimllFIKQkNWAQAgAAAEQgYZZJBRSCGFFGKIKaeccgoqqIDQkFUAACAAgAAAAABP8hzRER3RER3RER3RER3R8RzPESVREiVREi3TMjXTU0VVdWXXlnVZt31b2IVd933d933d+HVhWJZlWZZlWZZlWZZlWZZlWZYgNGQVAAACAAAghBBCSCGFFFJIKcYYc8w56CSUEAgNWQUAAAIACAAAAHAUR3EcyZEcSbIkS9IkzdIsT/M0TxM9URRF0zRV0RVdUTdtUTZl0zVdUzZdVVZtV5ZtW7Z125dl2/d93/d93/d93/d93/d9XQdCQ1YBABIAADqSIymSIimS4ziOJElAaMgqAEAGAEAAAIriKI7jOJIkSZIlaZJneZaomZrpmZ4qqkBoyCoAABAAQAAAAAAAAIqmeIqpeIqoeI7oiJJomZaoqZoryqbsuq7ruq7ruq7ruq7ruq7ruq7ruq7ruq7ruq7ruq7ruq7ruq4LhIasAgAkAAB0JEdyJEdSJEVSJEdygNCQVQCADACAAAAcwzEkRXIsy9I0T/M0TxM90RM901NFV3SB0JBVAAAgAIAAAAAAAAAMybAUy9EcTRIl1VItVVMt1VJF1VNVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVN0zRNEwgNWQkAkAEAkBBTLS3GmgmLJGLSaqugYwxS7KWxSCpntbfKMYUYtV4ah5RREHupJGOKQcwtpNApJq3WVEKFFKSYYyoVUg5SIDRkhQAQmgHgcBxAsixAsiwAAAAAAAAAkDQN0DwPsDQPAAAAAAAAACRNAyxPAzTPAwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABA0jRA8zxA8zwAAAAAAAAA0DwP8DwR8EQRAAAAAAAAACzPAzTRAzxRBAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABA0jRA8zxA8zwAAAAAAAAAsDwP8EQR0DwRAAAAAAAAACzPAzxRBDzRAwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAEOAAABBgIRQasiIAiBMAcEgSJAmSBM0DSJYFTYOmwTQBkmVB06BpME0AAAAAAAAAAAAAJE2DpkHTIIoASdOgadA0iCIAAAAAAAAAAAAAkqZB06BpEEWApGnQNGgaRBEAAAAAAAAAAAAAzzQhihBFmCbAM02IIkQRpgkAAAAAAAAAAAAAAAAAAAAAAAAAAAAACAAAGHAAAAgwoQwUGrIiAIgTAHA4imUBAIDjOJYFAACO41gWAABYliWKAABgWZooAgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAIAAAYcAAACDChDBQashIAiAIAcCiKZQHHsSzgOJYFJMmyAJYF0DyApgFEEQAIAAAocAAACLBBU2JxgEJDVgIAUQAABsWxLE0TRZKkaZoniiRJ0zxPFGma53meacLzPM80IYqiaJoQRVE0TZimaaoqME1VFQAAUOAAABBgg6bE4gCFhqwEAEICAByKYlma5nmeJ4qmqZokSdM8TxRF0TRNU1VJkqZ5niiKommapqqyLE3zPFEURdNUVVWFpnmeKIqiaaqq6sLzPE8URdE0VdV14XmeJ4qiaJqq6roQRVE0TdNUTVV1XSCKpmmaqqqqrgtETxRNU1Vd13WB54miaaqqq7ouEE3TVFVVdV1ZBpimaaqq68oyQFVV1XVdV5YBqqqqruu6sgxQVdd1XVmWZQCu67qyLMsCAAAOHAAAAoygk4wqi7DRhAsPQKEhKwKAKAAAwBimFFPKMCYhpBAaxiSEFEImJaXSUqogpFJSKRWEVEoqJaOUUmopVRBSKamUCkIqJZVSAADYgQMA2IGFUGjISgAgDwCAMEYpxhhzTiKkFGPOOScRUoox55yTSjHmnHPOSSkZc8w556SUzjnnnHNSSuacc845KaVzzjnnnJRSSuecc05KKSWEzkEnpZTSOeecEwAAVOAAABBgo8jmBCNBhYasBABSAQAMjmNZmuZ5omialiRpmud5niiapiZJmuZ5nieKqsnzPE8URdE0VZXneZ4oiqJpqirXFUXTNE1VVV2yLIqmaZqq6rowTdNUVdd1XZimaaqq67oubFtVVdV1ZRm2raqq6rqyDFzXdWXZloEsu67s2rIAAPAEBwCgAhtWRzgpGgssNGQlAJABAEAYg5BCCCFlEEIKIYSUUggJAAAYcAAACDChDBQashIASAUAAIyx1lprrbXWQGettdZaa62AzFprrbXWWmuttdZaa6211lJrrbXWWmuttdZaa6211lprrbXWWmuttdZaa6211lprrbXWWmuttdZaa6211lprrbXWWmstpZRSSimllFJKKaWUUkoppZRSSgUA+lU4APg/2LA6wknRWGChISsBgHAAAMAYpRhzDEIppVQIMeacdFRai7FCiDHnJKTUWmzFc85BKCGV1mIsnnMOQikpxVZjUSmEUlJKLbZYi0qho5JSSq3VWIwxqaTWWoutxmKMSSm01FqLMRYjbE2ptdhqq7EYY2sqLbQYY4zFCF9kbC2m2moNxggjWywt1VprMMYY3VuLpbaaizE++NpSLDHWXAAAd4MDAESCjTOsJJ0VjgYXGrISAAgJACAQUooxxhhzzjnnpFKMOeaccw5CCKFUijHGnHMOQgghlIwx5pxzEEIIIYRSSsaccxBCCCGEkFLqnHMQQgghhBBKKZ1zDkIIIYQQQimlgxBCCCGEEEoopaQUQgghhBBCCKmklEIIIYRSQighlZRSCCGEEEIpJaSUUgohhFJCCKGElFJKKYUQQgillJJSSimlEkoJJYQSUikppRRKCCGUUkpKKaVUSgmhhBJKKSWllFJKIYQQSikFAAAcOAAABBhBJxlVFmGjCRcegEJDVgIAZAAAkKKUUiktRYIipRikGEtGFXNQWoqocgxSzalSziDmJJaIMYSUk1Qy5hRCDELqHHVMKQYtlRhCxhik2HJLoXMOAAAAQQCAgJAAAAMEBTMAwOAA4XMQdAIERxsAgCBEZohEw0JweFAJEBFTAUBigkIuAFRYXKRdXECXAS7o4q4DIQQhCEEsDqCABByccMMTb3jCDU7QKSp1IAAAAAAADADwAACQXAAREdHMYWRobHB0eHyAhIiMkAgAAAAAABcAfAAAJCVAREQ0cxgZGhscHR4fICEiIyQBAIAAAgAAAAAggAAEBAQAAAAAAAIAAAAEBB9DtnUBAAAAAAAEPueBAKOFggAAgACjzoEAA4BwBwCdASqwAJAAAEcIhYWIhYSIAgIABhwJ7kPfbJyHvtk5D32ych77ZOQ99snIe+2TkPfbJyHvtk5D32ych77ZOQ99YAD+/6tQgKOFggADgAqjhYIAD4AOo4WCACSADqOZgQArADECAAEQEAAYABhYL/QACIBDmAYAAKOFggA6gA6jhYIAT4AOo5mBAFMAMQIAARAQABgAGFgv9AAIgEOYBgAAo4WCAGSADqOFggB6gA6jmYEAewAxAgABEBAAGAAYWC/0AAiAQ5gGAACjhYIAj4AOo5mBAKMAMQIAARAQABgAGFgv9AAIgEOYBgAAo4WCAKSADqOFggC6gA6jmYEAywAxAgABEBAAGAAYWC/0AAiAQ5gGAACjhYIAz4AOo4WCAOSADqOZgQDzADECAAEQEAAYABhYL/QACIBDmAYAAKOFggD6gA6jhYIBD4AOo5iBARsAEQIAARAQFGAAYWC/0AAiAQ5gGACjhYIBJIAOo4WCATqADqOZgQFDADECAAEQEAAYABhYL/QACIBDmAYAAKOFggFPgA6jhYIBZIAOo5mBAWsAMQIAARAQABgAGFgv9AAIgEOYBgAAo4WCAXqADqOFggGPgA6jmYEBkwAxAgABEBAAGAAYWC/0AAiAQ5gGAACjhYIBpIAOo4WCAbqADqOZgQG7ADECAAEQEAAYABhYL/QACIBDmAYAAKOFggHPgA6jmYEB4wAxAgABEBAAGAAYWC/0AAiAQ5gGAACjhYIB5IAOo4WCAfqADqOZgQILADECAAEQEAAYABhYL/QACIBDmAYAAKOFggIPgA6jhYICJIAOo5mBAjMAMQIAARAQABgAGFgv9AAIgEOYBgAAo4WCAjqADqOFggJPgA6jmYECWwAxAgABEBAAGAAYWC/0AAiAQ5gGAACjhYICZIAOo4WCAnqADqOZgQKDADECAAEQEAAYABhYL/QACIBDmAYAAKOFggKPgA6jhYICpIAOo5mBAqsAMQIAARAQABgAGFgv9AAIgEOYBgAAo4WCArqADqOFggLPgA6jmIEC0wARAgABEBAUYABhYL/QACIBDmAYAKOFggLkgA6jhYIC+oAOo5mBAvsAMQIAARAQABgAGFgv9AAIgEOYBgAAo4WCAw+ADqOZgQMjADECAAEQEAAYABhYL/QACIBDmAYAAKOFggMkgA6jhYIDOoAOo5mBA0sAMQIAARAQABgAGFgv9AAIgEOYBgAAo4WCA0+ADqOFggNkgA6jmYEDcwAxAgABEBAAGAAYWC/0AAiAQ5gGAACjhYIDeoAOo4WCA4+ADqOZgQObADECAAEQEAAYABhYL/QACIBDmAYAAKOFggOkgA6jhYIDuoAOo5mBA8MAMQIAARAQABgAGFgv9AAIgEOYBgAAo4WCA8+ADqOFggPkgA6jhYID+oAOo4WCBA+ADhxTu2sBAAAAAAAAEbuPs4EDt4r3gQHxghEr8IEK"),this._addSourceToVideo(this.noSleepVideo,"mp4","data:video/mp4;base64,AAAAHGZ0eXBNNFYgAAACAGlzb21pc28yYXZjMQAAAAhmcmVlAAAGF21kYXTeBAAAbGliZmFhYyAxLjI4AABCAJMgBDIARwAAArEGBf//rdxF6b3m2Ui3lizYINkj7u94MjY0IC0gY29yZSAxNDIgcjIgOTU2YzhkOCAtIEguMjY0L01QRUctNCBBVkMgY29kZWMgLSBDb3B5bGVmdCAyMDAzLTIwMTQgLSBodHRwOi8vd3d3LnZpZGVvbGFuLm9yZy94MjY0Lmh0bWwgLSBvcHRpb25zOiBjYWJhYz0wIHJlZj0zIGRlYmxvY2s9MTowOjAgYW5hbHlzZT0weDE6MHgxMTEgbWU9aGV4IHN1Ym1lPTcgcHN5PTEgcHN5X3JkPTEuMDA6MC4wMCBtaXhlZF9yZWY9MSBtZV9yYW5nZT0xNiBjaHJvbWFfbWU9MSB0cmVsbGlzPTEgOHg4ZGN0PTAgY3FtPTAgZGVhZHpvbmU9MjEsMTEgZmFzdF9wc2tpcD0xIGNocm9tYV9xcF9vZmZzZXQ9LTIgdGhyZWFkcz02IGxvb2thaGVhZF90aHJlYWRzPTEgc2xpY2VkX3RocmVhZHM9MCBucj0wIGRlY2ltYXRlPTEgaW50ZXJsYWNlZD0wIGJsdXJheV9jb21wYXQ9MCBjb25zdHJhaW5lZF9pbnRyYT0wIGJmcmFtZXM9MCB3ZWlnaHRwPTAga2V5aW50PTI1MCBrZXlpbnRfbWluPTI1IHNjZW5lY3V0PTQwIGludHJhX3JlZnJlc2g9MCByY19sb29rYWhlYWQ9NDAgcmM9Y3JmIG1idHJlZT0xIGNyZj0yMy4wIHFjb21wPTAuNjAgcXBtaW49MCBxcG1heD02OSBxcHN0ZXA9NCB2YnZfbWF4cmF0ZT03NjggdmJ2X2J1ZnNpemU9MzAwMCBjcmZfbWF4PTAuMCBuYWxfaHJkPW5vbmUgZmlsbGVyPTAgaXBfcmF0aW89MS40MCBhcT0xOjEuMDAAgAAAAFZliIQL8mKAAKvMnJycnJycnJycnXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXiEASZACGQAjgCEASZACGQAjgAAAAAdBmjgX4GSAIQBJkAIZACOAAAAAB0GaVAX4GSAhAEmQAhkAI4AhAEmQAhkAI4AAAAAGQZpgL8DJIQBJkAIZACOAIQBJkAIZACOAAAAABkGagC/AySEASZACGQAjgAAAAAZBmqAvwMkhAEmQAhkAI4AhAEmQAhkAI4AAAAAGQZrAL8DJIQBJkAIZACOAAAAABkGa4C/AySEASZACGQAjgCEASZACGQAjgAAAAAZBmwAvwMkhAEmQAhkAI4AAAAAGQZsgL8DJIQBJkAIZACOAIQBJkAIZACOAAAAABkGbQC/AySEASZACGQAjgCEASZACGQAjgAAAAAZBm2AvwMkhAEmQAhkAI4AAAAAGQZuAL8DJIQBJkAIZACOAIQBJkAIZACOAAAAABkGboC/AySEASZACGQAjgAAAAAZBm8AvwMkhAEmQAhkAI4AhAEmQAhkAI4AAAAAGQZvgL8DJIQBJkAIZACOAAAAABkGaAC/AySEASZACGQAjgCEASZACGQAjgAAAAAZBmiAvwMkhAEmQAhkAI4AhAEmQAhkAI4AAAAAGQZpAL8DJIQBJkAIZACOAAAAABkGaYC/AySEASZACGQAjgCEASZACGQAjgAAAAAZBmoAvwMkhAEmQAhkAI4AAAAAGQZqgL8DJIQBJkAIZACOAIQBJkAIZACOAAAAABkGawC/AySEASZACGQAjgAAAAAZBmuAvwMkhAEmQAhkAI4AhAEmQAhkAI4AAAAAGQZsAL8DJIQBJkAIZACOAAAAABkGbIC/AySEASZACGQAjgCEASZACGQAjgAAAAAZBm0AvwMkhAEmQAhkAI4AhAEmQAhkAI4AAAAAGQZtgL8DJIQBJkAIZACOAAAAABkGbgCvAySEASZACGQAjgCEASZACGQAjgAAAAAZBm6AnwMkhAEmQAhkAI4AhAEmQAhkAI4AhAEmQAhkAI4AhAEmQAhkAI4AAAAhubW9vdgAAAGxtdmhkAAAAAAAAAAAAAAAAAAAD6AAABDcAAQAAAQAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAwAAAzB0cmFrAAAAXHRraGQAAAADAAAAAAAAAAAAAAABAAAAAAAAA+kAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAABAAAAAALAAAACQAAAAAAAkZWR0cwAAABxlbHN0AAAAAAAAAAEAAAPpAAAAAAABAAAAAAKobWRpYQAAACBtZGhkAAAAAAAAAAAAAAAAAAB1MAAAdU5VxAAAAAAALWhkbHIAAAAAAAAAAHZpZGUAAAAAAAAAAAAAAABWaWRlb0hhbmRsZXIAAAACU21pbmYAAAAUdm1oZAAAAAEAAAAAAAAAAAAAACRkaW5mAAAAHGRyZWYAAAAAAAAAAQAAAAx1cmwgAAAAAQAAAhNzdGJsAAAAr3N0c2QAAAAAAAAAAQAAAJ9hdmMxAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAALAAkABIAAAASAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAGP//AAAALWF2Y0MBQsAN/+EAFWdCwA3ZAsTsBEAAAPpAADqYA8UKkgEABWjLg8sgAAAAHHV1aWRraEDyXyRPxbo5pRvPAyPzAAAAAAAAABhzdHRzAAAAAAAAAAEAAAAeAAAD6QAAABRzdHNzAAAAAAAAAAEAAAABAAAAHHN0c2MAAAAAAAAAAQAAAAEAAAABAAAAAQAAAIxzdHN6AAAAAAAAAAAAAAAeAAADDwAAAAsAAAALAAAACgAAAAoAAAAKAAAACgAAAAoAAAAKAAAACgAAAAoAAAAKAAAACgAAAAoAAAAKAAAACgAAAAoAAAAKAAAACgAAAAoAAAAKAAAACgAAAAoAAAAKAAAACgAAAAoAAAAKAAAACgAAAAoAAAAKAAAAiHN0Y28AAAAAAAAAHgAAAEYAAANnAAADewAAA5gAAAO0AAADxwAAA+MAAAP2AAAEEgAABCUAAARBAAAEXQAABHAAAASMAAAEnwAABLsAAATOAAAE6gAABQYAAAUZAAAFNQAABUgAAAVkAAAFdwAABZMAAAWmAAAFwgAABd4AAAXxAAAGDQAABGh0cmFrAAAAXHRraGQAAAADAAAAAAAAAAAAAAACAAAAAAAABDcAAAAAAAAAAAAAAAEBAAAAAAEAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAkZWR0cwAAABxlbHN0AAAAAAAAAAEAAAQkAAADcAABAAAAAAPgbWRpYQAAACBtZGhkAAAAAAAAAAAAAAAAAAC7gAAAykBVxAAAAAAALWhkbHIAAAAAAAAAAHNvdW4AAAAAAAAAAAAAAABTb3VuZEhhbmRsZXIAAAADi21pbmYAAAAQc21oZAAAAAAAAAAAAAAAJGRpbmYAAAAcZHJlZgAAAAAAAAABAAAADHVybCAAAAABAAADT3N0YmwAAABnc3RzZAAAAAAAAAABAAAAV21wNGEAAAAAAAAAAQAAAAAAAAAAAAIAEAAAAAC7gAAAAAAAM2VzZHMAAAAAA4CAgCIAAgAEgICAFEAVBbjYAAu4AAAADcoFgICAAhGQBoCAgAECAAAAIHN0dHMAAAAAAAAAAgAAADIAAAQAAAAAAQAAAkAAAAFUc3RzYwAAAAAAAAAbAAAAAQAAAAEAAAABAAAAAgAAAAIAAAABAAAAAwAAAAEAAAABAAAABAAAAAIAAAABAAAABgAAAAEAAAABAAAABwAAAAIAAAABAAAACAAAAAEAAAABAAAACQAAAAIAAAABAAAACgAAAAEAAAABAAAACwAAAAIAAAABAAAADQAAAAEAAAABAAAADgAAAAIAAAABAAAADwAAAAEAAAABAAAAEAAAAAIAAAABAAAAEQAAAAEAAAABAAAAEgAAAAIAAAABAAAAFAAAAAEAAAABAAAAFQAAAAIAAAABAAAAFgAAAAEAAAABAAAAFwAAAAIAAAABAAAAGAAAAAEAAAABAAAAGQAAAAIAAAABAAAAGgAAAAEAAAABAAAAGwAAAAIAAAABAAAAHQAAAAEAAAABAAAAHgAAAAIAAAABAAAAHwAAAAQAAAABAAAA4HN0c3oAAAAAAAAAAAAAADMAAAAaAAAACQAAAAkAAAAJAAAACQAAAAkAAAAJAAAACQAAAAkAAAAJAAAACQAAAAkAAAAJAAAACQAAAAkAAAAJAAAACQAAAAkAAAAJAAAACQAAAAkAAAAJAAAACQAAAAkAAAAJAAAACQAAAAkAAAAJAAAACQAAAAkAAAAJAAAACQAAAAkAAAAJAAAACQAAAAkAAAAJAAAACQAAAAkAAAAJAAAACQAAAAkAAAAJAAAACQAAAAkAAAAJAAAACQAAAAkAAAAJAAAACQAAAAkAAACMc3RjbwAAAAAAAAAfAAAALAAAA1UAAANyAAADhgAAA6IAAAO+AAAD0QAAA+0AAAQAAAAEHAAABC8AAARLAAAEZwAABHoAAASWAAAEqQAABMUAAATYAAAE9AAABRAAAAUjAAAFPwAABVIAAAVuAAAFgQAABZ0AAAWwAAAFzAAABegAAAX7AAAGFwAAAGJ1ZHRhAAAAWm1ldGEAAAAAAAAAIWhkbHIAAAAAAAAAAG1kaXJhcHBsAAAAAAAAAAAAAAAALWlsc3QAAAAlqXRvbwAAAB1kYXRhAAAAAQAAAABMYXZmNTUuMzMuMTAw"),this.noSleepVideo.addEventListener("loadedmetadata",(()=>{this.debug&&console.debug("WakeLockManager::start() video loadedmetadata",this.noSleepVideo),this.noSleepVideo&&(this.noSleepVideo.duration<=1?this.noSleepVideo.setAttribute("loop",""):this.noSleepVideo.addEventListener("timeupdate",(()=>{this.noSleepVideo&&this.noSleepVideo.currentTime>.5&&(this.noSleepVideo.currentTime=Math.random())})))})))}_addSourceToVideo(e,t,n){const r=document.createElement("source");r.src=n,r.type=`video/${t}`,e.appendChild(r)}isEnabled(){return this.enabled}setDebug(e){e&&!this.debug&&console.debug("WakeLockManager::setDebug() activate debug mode"),this.debug=e}enable(){return fA(this,void 0,void 0,(function*(){this.enabled&&this.disable("from_enable");const e=Zx(),t=Xx();if(this.debug&&console.debug(`WakeLockManager::enable() hasWakelock=${e} isOldIos=${t}`,this.noSleepVideo),this.start(),Zx())try{const e=yield navigator.wakeLock.request("screen");this._wakeLock=e,this.enabled=!0}catch(e){return this.debug&&console.error("WakeLockManager::enable() failed to enable wake lock",e),this.enabled=!1,!1}else if(Xx())return this.disable("from_enable_old_ios"),this.noSleepTimer=window.setInterval((()=>{document.hidden||(window.location.href=window.location.href.split("#")[0],window.setTimeout(window.stop,0))}),15e3),this.enabled=!0,!0;return!!this.noSleepVideo&&(this.noSleepVideo.play().then((()=>{this.debug&&console.debug("WakeLockManager::enable() video started playing successfully")})).catch((e=>{console.warn("WakeLockManager::enable() video failed to play",e)})),this.enabled=!0,!0)}))}disable(e){if(this.enabled){if(this.debug&&console.debug(`WakeLockManager::disable() context=${e}`),Zx())this._wakeLock&&(this.debug&&console.debug("WakeLockManager::disable() release wake lock"),this._wakeLock.release()),this._wakeLock=void 0;else if(Xx())this.noSleepTimer&&(console.warn("\n NoSleep now disabled for older iOS devices.\n "),window.clearInterval(this.noSleepTimer),this.noSleepTimer=void 0);else try{if(!this.noSleepVideo)return void(this.debug&&console.debug("WakeLockManager::disable() noSleepVideo is undefined"));this.debug&&console.debug("WakeLockManager::disable() pause noSleepVideo"),this.noSleepVideo.firstChild&&(this.noSleepVideo.removeChild(this.noSleepVideo.firstChild),this.noSleepVideo.load()),this.noSleepVideo.pause(),this.noSleepVideo.src="",this.noSleepVideo.remove()}catch(e){console.log(e)}this.enabled=!1}}}const eR=2e3,tR=4e4,nR=500;class rR{constructor({useDeepLink:e,preferredOpenLink:t,wakeLockStatus:n=Gx.UntilResponse,debug:r=!1}){this.state={wakeLock:new Jx,wakeLockStatus:Gx.UntilResponse,wakeLockTimer:void 0,wakeLockFeatureActive:!1,platformType:void 0,useDeeplink:!1,preferredOpenLink:void 0,debug:!1},this.state.platformType=this.getPlatformType(),this.state.useDeeplink=e,this.state.preferredOpenLink=t,this.state.wakeLockStatus=n,this.state.debug=r,this.state.wakeLock.setDebug(r)}enableWakeLock(){return function(e){const{state:t}=e;if(t.wakeLockStatus===Gx.Disabled)return void(t.debug&&console.debug("WakeLock is disabled"));t.wakeLock.enable().catch((e=>{console.error("WakeLock is not supported",e)}));const n=t.wakeLockStatus===Gx.Temporary?eR:tR;t.wakeLockTimer=setTimeout((()=>{e.disableWakeLock()}),n),t.wakeLockFeatureActive||t.wakeLockStatus!==Gx.UntilResponse||(t.wakeLockFeatureActive=!0,window.addEventListener("focus",(()=>{e.disableWakeLock()})))}(this)}disableWakeLock(){return function(e){const{state:t}=e;t.wakeLockStatus!==Gx.Disabled&&(t.wakeLockTimer&&clearTimeout(t.wakeLockTimer),t.wakeLock.disable("disableWakeLock"))}(this)}openDeeplink(e,t,n){return function(e,t,n,r){const{state:i}=e;i.debug&&(console.debug(`Platform::openDeepLink universalLink --\x3e ${t}`),console.debug(`Platform::openDeepLink deepLink --\x3e ${n}`)),e.isBrowser()&&e.enableWakeLock();try{if(i.preferredOpenLink)return void i.preferredOpenLink(i.useDeeplink?n:t,r);if(i.debug&&console.warn(`Platform::openDeepLink() open link now useDeepLink=${i.useDeeplink}`,i.useDeeplink?n:t),"undefined"!=typeof window){let e;e=i.useDeeplink?window.open(n,"_blank"):window.open(t,"_blank"),setTimeout((()=>{var t;return null===(t=null==e?void 0:e.close)||void 0===t?void 0:t.call(e)}),nR)}}catch(e){console.log("Platform::openDeepLink() can't open link",e)}}(this,e,t,n)}isReactNative(){var e;return this.isNotBrowser()&&"undefined"!=typeof window&&(null===window||void 0===window?void 0:window.navigator)&&"ReactNative"===(null===(e=window.navigator)||void 0===e?void 0:e.product)}isMetaMaskInstalled(){return function(e){const{state:t}=e,n=Ix.getProvider()||(null===window||void 0===window?void 0:window.ethereum);return t.debug&&console.debug(`Platform::isMetaMaskInstalled isMetaMask=${null==n?void 0:n.isMetaMask} isConnected=${null==n?void 0:n.isConnected()}`),(null==n?void 0:n.isMetaMask)&&(null==n?void 0:n.isConnected())}(this)}isDesktopWeb(){return this.isBrowser()&&!this.isMobileWeb()}isMobile(){var e,t;const n=Qx.parse(window.navigator.userAgent);return"mobile"===(null===(e=null==n?void 0:n.platform)||void 0===e?void 0:e.type)||"tablet"===(null===(t=null==n?void 0:n.platform)||void 0===t?void 0:t.type)}isSecure(){return this.isReactNative()||this.isMobileWeb()}isMetaMaskMobileWebView(){return"undefined"!=typeof window&&Boolean(window.ReactNativeWebView)&&Boolean(navigator.userAgent.endsWith("MetaMaskMobile"))}isMobileWeb(){return this.state.platformType===e.PlatformType.MobileWeb}isNotBrowser(){var e;return"undefined"==typeof window||!(null===window||void 0===window?void 0:window.navigator)||"undefined"!=typeof n.g&&"ReactNative"===(null===(e=null===n.g||void 0===n.g?void 0:n.g.navigator)||void 0===e?void 0:e.product)||"ReactNative"===(null===navigator||void 0===navigator?void 0:navigator.product)}isNodeJS(){return this.isNotBrowser()&&!this.isReactNative()}isBrowser(){return!this.isNotBrowser()}isUseDeepLink(){return this.state.useDeeplink}getPlatformType(){return function(t){const{state:n}=t;return n.platformType?n.platformType:t.isReactNative()?e.PlatformType.ReactNative:t.isNotBrowser()?e.PlatformType.NonBrowser:t.isMetaMaskMobileWebView()?e.PlatformType.MetaMaskMobileWebview:t.isMobile()?e.PlatformType.MobileWeb:e.PlatformType.DesktopWeb}(this)}} +(self["webpackChunkflux"]=self["webpackChunkflux"]||[]).push([[4884],{94145:function(e,t,n){!function(e,n){n(t)}(0,(function(e){"use strict";var t="undefined"!=typeof n.g?n.g:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},r="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof n.g?n.g:"undefined"!=typeof self?self:{};function i(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function o(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var n=function e(){return this instanceof e?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(t){var r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,r.get?r:{enumerable:!0,get:function(){return e[t]}})})),n}var a={exports:{}};!function(e,t){var n="undefined"!=typeof self?self:r,i=function(){function e(){this.fetch=!1,this.DOMException=n.DOMException}return e.prototype=n,new e}();!function(e){!function(t){var n="URLSearchParams"in e,r="Symbol"in e&&"iterator"in Symbol,i="FileReader"in e&&"Blob"in e&&function(){try{return new Blob,!0}catch(e){return!1}}(),o="FormData"in e,a="ArrayBuffer"in e;if(a)var s=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],u=ArrayBuffer.isView||function(e){return e&&s.indexOf(Object.prototype.toString.call(e))>-1};function l(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(e))throw new TypeError("Invalid character in header field name");return e.toLowerCase()}function c(e){return"string"!=typeof e&&(e=String(e)),e}function d(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return r&&(t[Symbol.iterator]=function(){return t}),t}function f(e){this.map={},e instanceof f?e.forEach((function(e,t){this.append(t,e)}),this):Array.isArray(e)?e.forEach((function(e){this.append(e[0],e[1])}),this):e&&Object.getOwnPropertyNames(e).forEach((function(t){this.append(t,e[t])}),this)}function h(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function p(e){return new Promise((function(t,n){e.onload=function(){t(e.result)},e.onerror=function(){n(e.error)}}))}function m(e){var t=new FileReader,n=p(t);return t.readAsArrayBuffer(e),n}function g(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function v(){return this.bodyUsed=!1,this._initBody=function(e){var t;this._bodyInit=e,e?"string"==typeof e?this._bodyText=e:i&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:o&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:n&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():a&&i&&(t=e)&&DataView.prototype.isPrototypeOf(t)?(this._bodyArrayBuffer=g(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):a&&(ArrayBuffer.prototype.isPrototypeOf(e)||u(e))?this._bodyArrayBuffer=g(e):this._bodyText=e=Object.prototype.toString.call(e):this._bodyText="",this.headers.get("content-type")||("string"==typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):n&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},i&&(this.blob=function(){var e=h(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?h(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(m)}),this.text=function(){var e,t,n,r=h(this);if(r)return r;if(this._bodyBlob)return e=this._bodyBlob,t=new FileReader,n=p(t),t.readAsText(e),n;if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),n=new Array(t.length),r=0;r-1?t:e}(t.method||this.method||"GET"),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&n)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(n)}function w(e){var t=new FormData;return e.trim().split("&").forEach((function(e){if(e){var n=e.split("="),r=n.shift().replace(/\+/g," "),i=n.join("=").replace(/\+/g," ");t.append(decodeURIComponent(r),decodeURIComponent(i))}})),t}function A(e,t){t||(t={}),this.type="default",this.status=void 0===t.status?200:t.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in t?t.statusText:"OK",this.headers=new f(t.headers),this.url=t.url||"",this._initBody(e)}b.prototype.clone=function(){return new b(this,{body:this._bodyInit})},v.call(b.prototype),v.call(A.prototype),A.prototype.clone=function(){return new A(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new f(this.headers),url:this.url})},A.error=function(){var e=new A(null,{status:0,statusText:""});return e.type="error",e};var _=[301,302,303,307,308];A.redirect=function(e,t){if(-1===_.indexOf(t))throw new RangeError("Invalid status code");return new A(null,{status:t,headers:{location:e}})},t.DOMException=e.DOMException;try{new t.DOMException}catch(e){t.DOMException=function(e,t){this.message=e,this.name=t;var n=Error(e);this.stack=n.stack},t.DOMException.prototype=Object.create(Error.prototype),t.DOMException.prototype.constructor=t.DOMException}function E(e,n){return new Promise((function(r,o){var a=new b(e,n);if(a.signal&&a.signal.aborted)return o(new t.DOMException("Aborted","AbortError"));var s=new XMLHttpRequest;function u(){s.abort()}s.onload=function(){var e,t,n={status:s.status,statusText:s.statusText,headers:(e=s.getAllResponseHeaders()||"",t=new f,e.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach((function(e){var n=e.split(":"),r=n.shift().trim();if(r){var i=n.join(":").trim();t.append(r,i)}})),t)};n.url="responseURL"in s?s.responseURL:n.headers.get("X-Request-URL");var i="response"in s?s.response:s.responseText;r(new A(i,n))},s.onerror=function(){o(new TypeError("Network request failed"))},s.ontimeout=function(){o(new TypeError("Network request failed"))},s.onabort=function(){o(new t.DOMException("Aborted","AbortError"))},s.open(a.method,a.url,!0),"include"===a.credentials?s.withCredentials=!0:"omit"===a.credentials&&(s.withCredentials=!1),"responseType"in s&&i&&(s.responseType="blob"),a.headers.forEach((function(e,t){s.setRequestHeader(t,e)})),a.signal&&(a.signal.addEventListener("abort",u),s.onreadystatechange=function(){4===s.readyState&&a.signal.removeEventListener("abort",u)}),s.send(void 0===a._bodyInit?null:a._bodyInit)}))}E.polyfill=!0,e.fetch||(e.fetch=E,e.Headers=f,e.Request=b,e.Response=A),t.Headers=f,t.Request=b,t.Response=A,t.fetch=E,Object.defineProperty(t,"__esModule",{value:!0})}({})}(i),i.fetch.ponyfill=!0,delete i.fetch.polyfill;var o=i;(t=o.fetch).default=o.fetch,t.fetch=o.fetch,t.Headers=o.Headers,t.Request=o.Request,t.Response=o.Response,e.exports=t}(a,a.exports);var s=i(a.exports);function u(){throw new Error("setTimeout has not been defined")}function l(){throw new Error("clearTimeout has not been defined")}var c=u,d=l;function f(e){if(c===setTimeout)return setTimeout(e,0);if((c===u||!c)&&setTimeout)return c=setTimeout,setTimeout(e,0);try{return c(e,0)}catch(t){try{return c.call(null,e,0)}catch(t){return c.call(this,e,0)}}}"function"==typeof t.setTimeout&&(c=setTimeout),"function"==typeof t.clearTimeout&&(d=clearTimeout);var h,p=[],m=!1,g=-1;function v(){m&&h&&(m=!1,h.length?p=h.concat(p):g=-1,p.length&&y())}function y(){if(!m){var e=f(v);m=!0;for(var t=p.length;t;){for(h=p,p=[];++g1)for(var n=1;n0;)if(o===e[a])return r;i(t)}}Object.assign(p.prototype,{subscribe:function(e,t,n){var r=this,i=this._target,o=this._emitter,a=this._listeners,s=function(){var r=f.apply(null,arguments),a={data:r,name:t,original:e};n?!1!==n.call(i,a)&&o.emit.apply(o,[a.name].concat(r)):o.emit.apply(o,[t].concat(r))};if(a[e])throw Error("Event '"+e+"' is already listening");this._listenersCount++,o._newListener&&o._removeListener&&!r._onNewListener?(this._onNewListener=function(n){n===t&&null===a[e]&&(a[e]=s,r._on.call(i,e,s))},o.on("newListener",this._onNewListener),this._onRemoveListener=function(n){n===t&&!o.hasListeners(n)&&a[e]&&(a[e]=null,r._off.call(i,e,s))},a[e]=null,o.on("removeListener",this._onRemoveListener)):(a[e]=s,r._on.call(i,e,s))},unsubscribe:function(e){var t,n,r,i=this,o=this._listeners,a=this._emitter,s=this._off,l=this._target;if(e&&"string"!=typeof e)throw TypeError("event must be a string");function c(){i._onNewListener&&(a.off("newListener",i._onNewListener),a.off("removeListener",i._onRemoveListener),i._onNewListener=null,i._onRemoveListener=null);var e=_.call(a,i);a._observers.splice(e,1)}if(e){if(!(t=o[e]))return;s.call(l,e,t),delete o[e],--this._listenersCount||c()}else{for(r=(n=u(o)).length;r-- >0;)e=n[r],s.call(l,e,o[e]);this._listeners={},this._listenersCount=0,c()}}});var y=v(["function"]),w=v(["object","function"]);function A(e,t,n){var r,i,o,a=0,s=new e((function(u,l,c){function d(){i&&(i=null),a&&(clearTimeout(a),a=0)}n=m(n,{timeout:0,overload:!1},{timeout:function(e,t){return("number"!=typeof(e*=1)||e<0||!Number.isFinite(e))&&t("timeout must be a positive number"),e}}),r=!n.overload&&"function"==typeof e.prototype.cancel&&"function"==typeof c;var f=function(e){d(),u(e)},h=function(e){d(),l(e)};r?t(f,h,c):(i=[function(e){h(e||Error("canceled"))}],t(f,h,(function(e){if(o)throw Error("Unable to subscribe on cancel event asynchronously");if("function"!=typeof e)throw TypeError("onCancel callback must be a function");i.push(e)})),o=!0),n.timeout>0&&(a=setTimeout((function(){var e=Error("timeout");e.code="ETIMEDOUT",a=0,s.cancel(e),l(e)}),n.timeout))}));return r||(s.cancel=function(e){if(i){for(var t=i.length,n=1;n0;)"_listeners"!==(h=y[s])&&(b=E(e,t,n[h],r+1,i))&&(w?w.push.apply(w,b):w=b);return w}if("**"===A){for((v=r+1===i||r+2===i&&"*"===_)&&n._listeners&&(w=E(e,t,n,i,i)),s=(y=u(n)).length;s-- >0;)"_listeners"!==(h=y[s])&&("*"===h||"**"===h?(n[h]._listeners&&!v&&(b=E(e,t,n[h],i,i))&&(w?w.push.apply(w,b):w=b),b=E(e,t,n[h],r,i)):b=E(e,t,n[h],h===_?r+2:r,i),b&&(w?w.push.apply(w,b):w=b));return w}n[A]&&(w=E(e,t,n[A],r+1,i))}if((p=n["*"])&&E(e,t,p,r+1,i),m=n["**"])if(r0;)"_listeners"!==(h=y[s])&&(h===_?E(e,t,m[h],r+2,i):h===A?E(e,t,m[h],r+1,i):((g={})[h]=m[h],E(e,t,{"**":g},r+1,i)));else m._listeners?E(e,t,m,i,i):m["*"]&&m["*"]._listeners&&E(e,t,m["*"],i,i);return w}function S(e,t,n){var r,i,o=0,a=0,s=this.delimiter,u=s.length;if("string"==typeof e)if(-1!==(r=e.indexOf(s))){i=new Array(5);do{i[o++]=e.slice(a,r),a=r+u}while(-1!==(r=e.indexOf(s,a)));i[o++]=e.slice(a)}else i=[e],o=1;else i=e,o=e.length;if(o>1)for(r=0;r+10&&c._listeners.length>this._maxListeners&&(c._listeners.warned=!0,d.call(this,c._listeners.length,l))):c._listeners=t,!0;return!0}function k(e,t,n,r){for(var i,o,a,s,l=u(e),c=l.length,d=e._listeners;c-- >0;)i=e[o=l[c]],a="_listeners"===o?n:n?n.concat(o):[o],s=r||"symbol"==typeof o,d&&t.push(s?a:a.join(this.delimiter)),"object"==typeof i&&k.call(this,i,t,a,s);return t}function M(e){for(var t,n,r,i=u(e),o=i.length;o-- >0;)(t=e[n=i[o]])&&(r=!0,"_listeners"===n||M(t)||delete e[n]);return r}function C(e,t,n){this.emitter=e,this.event=t,this.listener=n}function x(e,n,r){if(!0===r)a=!0;else if(!1===r)o=!0;else{if(!r||"object"!=typeof r)throw TypeError("options should be an object or true");var o=r.async,a=r.promisify,u=r.nextTick,l=r.objectify}if(o||u||a){var c=n,d=n._origin||n;if(u&&!i)throw Error("process.nextTick is not supported");a===t&&(a="AsyncFunction"===n.constructor.name),n=function(){var e=arguments,t=this,n=this.event;return a?u?Promise.resolve():new Promise((function(e){s(e)})).then((function(){return t.event=n,c.apply(t,e)})):(u?b:s)((function(){t.event=n,c.apply(t,e)}))},n._async=!0,n._origin=d}return[n,l?new C(this,e,n):this]}function R(e){this._events={},this._newListener=!1,this._removeListener=!1,this.verboseMemoryLeak=!1,c.call(this,e)}C.prototype.off=function(){return this.emitter.off(this.event,this.listener),this},R.EventEmitter2=R,R.prototype.listenTo=function(e,n,i){if("object"!=typeof e)throw TypeError("target musts be an object");var o=this;function a(t){if("object"!=typeof t)throw TypeError("events must be an object");var n,r=i.reducers,a=_.call(o,e);n=-1===a?new p(o,e,i):o._observers[a];for(var s,l=u(t),c=l.length,d="function"==typeof r,f=0;f0;)r=n[i],e&&r._target!==e||(r.unsubscribe(t),o=!0);return o},R.prototype.delimiter=".",R.prototype.setMaxListeners=function(e){e!==t&&(this._maxListeners=e,this._conf||(this._conf={}),this._conf.maxListeners=e)},R.prototype.getMaxListeners=function(){return this._maxListeners},R.prototype.event="",R.prototype.once=function(e,t,n){return this._once(e,t,!1,n)},R.prototype.prependOnceListener=function(e,t,n){return this._once(e,t,!0,n)},R.prototype._once=function(e,t,n,r){return this._many(e,1,t,n,r)},R.prototype.many=function(e,t,n,r){return this._many(e,t,n,!1,r)},R.prototype.prependMany=function(e,t,n,r){return this._many(e,t,n,!0,r)},R.prototype._many=function(e,t,n,r,i){var o=this;if("function"!=typeof n)throw new Error("many only accepts instances of Function");function a(){return 0==--t&&o.off(e,a),n.apply(this,arguments)}return a._origin=n,this._on(e,a,r,i)},R.prototype.emit=function(){if(!this._events&&!this._all)return!1;this._events||l.call(this);var e,t,n,r,i,a,s=arguments[0],u=this.wildcard;if("newListener"===s&&!this._newListener&&!this._events.newListener)return!1;if(u&&(e=s,"newListener"!==s&&"removeListener"!==s&&"object"==typeof s)){if(n=s.length,o)for(r=0;r3)for(t=new Array(d-1),i=1;i3)for(n=new Array(f-1),a=1;a0&&this._events[e].length>this._maxListeners&&(this._events[e].warned=!0,d.call(this,this._events[e].length,e))):this._events[e]=n,a)},R.prototype.off=function(e,t){if("function"!=typeof t)throw new Error("removeListener only takes instances of Function");var n,i=[];if(this.wildcard){var o="string"==typeof e?e.split(this.delimiter):e.slice();if(!(i=E.call(this,null,o,this.listenerTree,0)))return this}else{if(!this._events[e])return this;n=this._events[e],i.push({_listeners:n})}for(var a=0;a0){for(n=0,r=(t=this._all).length;n0;)"function"==typeof(r=s[n[o]])?i.push(r):i.push.apply(i,r);return i}if(this.wildcard){if(!(a=this.listenerTree))return[];var l=[],c="string"==typeof e?e.split(this.delimiter):e.slice();return E.call(this,l,c,a,0),l}return s&&(r=s[e])?"function"==typeof r?[r]:r:[]},R.prototype.eventNames=function(e){var t=this._events;return this.wildcard?k.call(this,this.listenerTree,[],null,e):t?u(t):[]},R.prototype.listenerCount=function(e){return this.listeners(e).length},R.prototype.hasListeners=function(e){if(this.wildcard){var n=[],r="string"==typeof e?e.split(this.delimiter):e.slice();return E.call(this,n,r,this.listenerTree,0),n.length>0}var i=this._events,o=this._all;return!!(o&&o.length||i&&(e===t?u(i).length:i[e]))},R.prototype.listenersAny=function(){return this._all?this._all:[]},R.prototype.waitFor=function(e,n){var r=this,i=typeof n;return"number"===i?n={timeout:n}:"function"===i&&(n={filter:n}),A((n=m(n,{timeout:0,filter:t,handleError:!1,Promise,overload:!1},{filter:y,Promise:g})).Promise,(function(t,i,o){function a(){var o=n.filter;if(!o||o.apply(r,arguments))if(r.off(e,a),n.handleError){var s=arguments[0];s?i(s):t(f.apply(null,arguments).slice(1))}else t(f.apply(null,arguments))}o((function(){r.off(e,a)})),r._on(e,a,!1)}),{timeout:n.timeout,overload:n.overload})};var O=R.prototype;Object.defineProperties(R,{defaultMaxListeners:{get:function(){return O._maxListeners},set:function(e){if("number"!=typeof e||e<0||Number.isNaN(e))throw TypeError("n must be a non-negative number");O._maxListeners=e},enumerable:!0},once:{value:function(e,t,n){return A((n=m(n,{Promise,timeout:0,overload:!1},{Promise:g})).Promise,(function(n,r,i){var o;if("function"==typeof e.addEventListener)return o=function(){n(f.apply(null,arguments))},i((function(){e.removeEventListener(t,o)})),void e.addEventListener(t,o,{once:!0});var a,s=function(){a&&e.removeListener("error",a),n(f.apply(null,arguments))};"error"!==t&&(a=function(n){e.removeListener(t,s),r(n)},e.once("error",a)),i((function(){a&&e.removeListener("error",a),e.removeListener(t,s)})),e.once(t,s)}),{timeout:n.timeout,overload:n.overload})},writable:!0,configurable:!0}}),Object.defineProperties(O,{_maxListeners:{value:10,writable:!0,configurable:!0},_observers:{value:null,writable:!0,configurable:!0}}),"function"==typeof t&&t.amd?t((function(){return R})):e.exports=R}()}(L);var I,N=L.exports,D=new Uint8Array(16);function B(){if(!I&&!(I="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return I(D)}var j=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function U(e){return"string"==typeof e&&j.test(e)}for(var z=[],F=0;F<256;++F)z.push((F+256).toString(16).substr(1));function q(e,t,n){var r=(e=e||{}).random||(e.rng||B)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t){n=n||0;for(var i=0;i<16;++i)t[n+i]=r[i];return t}return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=(z[e[t+0]]+z[e[t+1]]+z[e[t+2]]+z[e[t+3]]+"-"+z[e[t+4]]+z[e[t+5]]+"-"+z[e[t+6]]+z[e[t+7]]+"-"+z[e[t+8]]+z[e[t+9]]+"-"+z[e[t+10]]+z[e[t+11]]+z[e[t+12]]+z[e[t+13]]+z[e[t+14]]+z[e[t+15]]).toLowerCase();if(!U(n))throw TypeError("Stringified UUID is invalid");return n}(r)}const W=Object.create(null);W.open="0",W.close="1",W.ping="2",W.pong="3",W.message="4",W.upgrade="5",W.noop="6";const V=Object.create(null);Object.keys(W).forEach((e=>{V[W[e]]=e}));const K={type:"error",data:"parser error"},H="function"==typeof Blob||"undefined"!=typeof Blob&&"[object BlobConstructor]"===Object.prototype.toString.call(Blob),$="function"==typeof ArrayBuffer,Y=e=>"function"==typeof ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer instanceof ArrayBuffer,G=({type:e,data:t},n,r)=>H&&t instanceof Blob?n?r(t):Q(t,r):$&&(t instanceof ArrayBuffer||Y(t))?n?r(t):Q(new Blob([t]),r):r(W[e]+(t||"")),Q=(e,t)=>{const n=new FileReader;return n.onload=function(){const e=n.result.split(",")[1];t("b"+(e||""))},n.readAsDataURL(e)};function Z(e){return e instanceof Uint8Array?e:e instanceof ArrayBuffer?new Uint8Array(e):new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}let X;function J(e,t){return H&&e.data instanceof Blob?e.data.arrayBuffer().then(Z).then(t):$&&(e.data instanceof ArrayBuffer||Y(e.data))?t(Z(e.data)):void G(e,!1,(e=>{X||(X=new TextEncoder),t(X.encode(e))}))}const ee="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",te="undefined"==typeof Uint8Array?[]:new Uint8Array(256);for(let n=0;n<64;n++)te[ee.charCodeAt(n)]=n;const ne="function"==typeof ArrayBuffer,re=(e,t)=>{if("string"!=typeof e)return{type:"message",data:oe(e,t)};const n=e.charAt(0);return"b"===n?{type:"message",data:ie(e.substring(1),t)}:V[n]?e.length>1?{type:V[n],data:e.substring(1)}:{type:V[n]}:K},ie=(e,t)=>{if(ne){const n=(e=>{let t,n,r,i,o,a=.75*e.length,s=e.length,u=0;"="===e[e.length-1]&&(a--,"="===e[e.length-2]&&a--);const l=new ArrayBuffer(a),c=new Uint8Array(l);for(t=0;t>4,c[u++]=(15&r)<<4|i>>2,c[u++]=(3&i)<<6|63&o;return l})(e);return oe(n,t)}return{base64:!0,data:e}},oe=(e,t)=>"blob"===t?e instanceof Blob?e:new Blob([e]):e instanceof ArrayBuffer?e:e.buffer,ae=String.fromCharCode(30);let se;function ue(e){if(e)return function(e){for(var t in ue.prototype)e[t]=ue.prototype[t];return e}(e)}ue.prototype.on=ue.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this},ue.prototype.once=function(e,t){function n(){this.off(e,n),t.apply(this,arguments)}return n.fn=t,this.on(e,n),this},ue.prototype.off=ue.prototype.removeListener=ue.prototype.removeAllListeners=ue.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var n,r=this._callbacks["$"+e];if(!r)return this;if(1==arguments.length)return delete this._callbacks["$"+e],this;for(var i=0;i(e.hasOwnProperty(n)&&(t[n]=e[n]),t)),{})}const de=le.setTimeout,fe=le.clearTimeout;function he(e,t){t.useNativeTimers?(e.setTimeoutFn=de.bind(le),e.clearTimeoutFn=fe.bind(le)):(e.setTimeoutFn=le.setTimeout.bind(le),e.clearTimeoutFn=le.clearTimeout.bind(le))}class pe extends Error{constructor(e,t,n){super(e),this.description=t,this.context=n,this.type="TransportError"}}class me extends ue{constructor(e){super(),this.writable=!1,he(this,e),this.opts=e,this.query=e.query,this.socket=e.socket}onError(e,t,n){return super.emitReserved("error",new pe(e,t,n)),this}open(){return this.readyState="opening",this.doOpen(),this}close(){return"opening"!==this.readyState&&"open"!==this.readyState||(this.doClose(),this.onClose()),this}send(e){"open"===this.readyState&&this.write(e)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(e){const t=re(e,this.socket.binaryType);this.onPacket(t)}onPacket(e){super.emitReserved("packet",e)}onClose(e){this.readyState="closed",super.emitReserved("close",e)}pause(e){}createUri(e,t={}){return e+"://"+this._hostname()+this._port()+this.opts.path+this._query(t)}_hostname(){const e=this.opts.hostname;return-1===e.indexOf(":")?e:"["+e+"]"}_port(){return this.opts.port&&(this.opts.secure&&Number(443!==this.opts.port)||!this.opts.secure&&80!==Number(this.opts.port))?":"+this.opts.port:""}_query(e){const t=function(e){let t="";for(let n in e)e.hasOwnProperty(n)&&(t.length&&(t+="&"),t+=encodeURIComponent(n)+"="+encodeURIComponent(e[n]));return t}(e);return t.length?"?"+t:""}}const ge="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_".split(""),ve=64,ye={};let be,we=0,Ae=0;function _e(e){let t="";do{t=ge[e%ve]+t,e=Math.floor(e/ve)}while(e>0);return t}function Ee(){const e=_e(+new Date);return e!==be?(we=0,be=e):e+"."+_e(we++)}for(;Ae{var e;3===n.readyState&&(null===(e=this.opts.cookieJar)||void 0===e||e.parseCookies(n)),4===n.readyState&&(200===n.status||1223===n.status?this.onLoad():this.setTimeoutFn((()=>{this.onError("number"==typeof n.status?n.status:0)}),0))},n.send(this.data)}catch(e){return void this.setTimeoutFn((()=>{this.onError(e)}),0)}"undefined"!=typeof document&&(this.index=Re.requestsCount++,Re.requests[this.index]=this)}onError(e){this.emitReserved("error",e,this.xhr),this.cleanup(!0)}cleanup(e){if(void 0!==this.xhr&&null!==this.xhr){if(this.xhr.onreadystatechange=Ce,e)try{this.xhr.abort()}catch(e){}"undefined"!=typeof document&&delete Re.requests[this.index],this.xhr=null}}onLoad(){const e=this.xhr.responseText;null!==e&&(this.emitReserved("data",e),this.emitReserved("success"),this.cleanup())}abort(){this.cleanup()}}function Oe(){for(let e in Re.requests)Re.requests.hasOwnProperty(e)&&Re.requests[e].abort()}Re.requestsCount=0,Re.requests={},"undefined"!=typeof document&&("function"==typeof attachEvent?attachEvent("onunload",Oe):"function"==typeof addEventListener&&addEventListener("onpagehide"in le?"pagehide":"unload",Oe,!1));var Te=[],Pe=[],Le="undefined"!=typeof Uint8Array?Uint8Array:Array,Ie=!1;function Ne(){Ie=!0;for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t=0;t<64;++t)Te[t]=e[t],Pe[e.charCodeAt(t)]=t;Pe["-".charCodeAt(0)]=62,Pe["_".charCodeAt(0)]=63}function De(e,t,n){for(var r,i,o=[],a=t;a>18&63]+Te[i>>12&63]+Te[i>>6&63]+Te[63&i]);return o.join("")}function Be(e){var t;Ie||Ne();for(var n=e.length,r=n%3,i="",o=[],a=16383,s=0,u=n-r;su?u:s+a));return 1===r?(t=e[n-1],i+=Te[t>>2],i+=Te[t<<4&63],i+="=="):2===r&&(t=(e[n-2]<<8)+e[n-1],i+=Te[t>>10],i+=Te[t>>4&63],i+=Te[t<<2&63],i+="="),o.push(i),o.join("")}function je(e,t,n,r,i){var o,a,s=8*i-r-1,u=(1<>1,c=-7,d=n?i-1:0,f=n?-1:1,h=e[t+d];for(d+=f,o=h&(1<<-c)-1,h>>=-c,c+=s;c>0;o=256*o+e[t+d],d+=f,c-=8);for(a=o&(1<<-c)-1,o>>=-c,c+=r;c>0;a=256*a+e[t+d],d+=f,c-=8);if(0===o)o=1-l;else{if(o===u)return a?NaN:1/0*(h?-1:1);a+=Math.pow(2,r),o-=l}return(h?-1:1)*a*Math.pow(2,o-r)}function Ue(e,t,n,r,i,o){var a,s,u,l=8*o-i-1,c=(1<>1,f=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,h=r?0:o-1,p=r?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=c):(a=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-a))<1&&(a--,u*=2),(t+=a+d>=1?f/u:f*Math.pow(2,1-d))*u>=2&&(a++,u/=2),a+d>=c?(s=0,a=c):a+d>=1?(s=(t*u-1)*Math.pow(2,i),a+=d):(s=t*Math.pow(2,d-1)*Math.pow(2,i),a=0));i>=8;e[n+h]=255&s,h+=p,s/=256,i-=8);for(a=a<0;e[n+h]=255&a,h+=p,a/=256,l-=8);e[n+h-p]|=128*m}var ze={}.toString,Fe=Array.isArray||function(e){return"[object Array]"==ze.call(e)};Ke.TYPED_ARRAY_SUPPORT=void 0===t.TYPED_ARRAY_SUPPORT||t.TYPED_ARRAY_SUPPORT;var qe=We();function We(){return Ke.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function Ve(e,t){if(We()=We())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+We().toString(16)+" bytes");return 0|e}function Ze(e){return!(null==e||!e._isBuffer)}function Xe(e,t){if(Ze(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var r=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return kt(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return Mt(e).length;default:if(r)return kt(e).length;t=(""+t).toLowerCase(),r=!0}}function Je(e,t,n){var r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return pt(this,t,n);case"utf8":case"utf-8":return ct(this,t,n);case"ascii":return ft(this,t,n);case"latin1":case"binary":return ht(this,t,n);case"base64":return lt(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return mt(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function et(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function tt(e,t,n,r,i){if(0===e.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return-1;n=e.length-1}else if(n<0){if(!i)return-1;n=0}if("string"==typeof t&&(t=Ke.from(t,r)),Ze(t))return 0===t.length?-1:nt(e,t,n,r,i);if("number"==typeof t)return t&=255,Ke.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):nt(e,[t],n,r,i);throw new TypeError("val must be string, number or Buffer")}function nt(e,t,n,r,i){var o,a=1,s=e.length,u=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;a=2,s/=2,u/=2,n/=2}function l(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(i){var c=-1;for(o=n;os&&(n=s-u),o=n;o>=0;o--){for(var d=!0,f=0;fi&&(r=i):r=i;var o=t.length;if(o%2!=0)throw new TypeError("Invalid hex string");r>o/2&&(r=o/2);for(var a=0;a>8,i=n%256,o.push(i),o.push(r);return o}(t,e.length-n),e,n,r)}function lt(e,t,n){return 0===t&&n===e.length?Be(e):Be(e.slice(t,n))}function ct(e,t,n){n=Math.min(e.length,n);for(var r=[],i=t;i239?4:l>223?3:l>191?2:1;if(i+d<=n)switch(d){case 1:l<128&&(c=l);break;case 2:128==(192&(o=e[i+1]))&&(u=(31&l)<<6|63&o)>127&&(c=u);break;case 3:o=e[i+1],a=e[i+2],128==(192&o)&&128==(192&a)&&(u=(15&l)<<12|(63&o)<<6|63&a)>2047&&(u<55296||u>57343)&&(c=u);break;case 4:o=e[i+1],a=e[i+2],s=e[i+3],128==(192&o)&&128==(192&a)&&128==(192&s)&&(u=(15&l)<<18|(63&o)<<12|(63&a)<<6|63&s)>65535&&u<1114112&&(c=u)}null===c?(c=65533,d=1):c>65535&&(c-=65536,r.push(c>>>10&1023|55296),c=56320|1023&c),r.push(c),i+=d}return function(e){var t=e.length;if(t<=dt)return String.fromCharCode.apply(String,e);for(var n="",r=0;r0&&(e=this.toString("hex",0,50).match(/.{2}/g).join(" "),this.length>50&&(e+=" ... ")),""},Ke.prototype.compare=function(e,t,n,r,i){if(!Ze(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&t>=n)return 0;if(r>=i)return-1;if(t>=n)return 1;if(this===e)return 0;for(var o=(i>>>=0)-(r>>>=0),a=(n>>>=0)-(t>>>=0),s=Math.min(o,a),u=this.slice(r,i),l=e.slice(t,n),c=0;ci)&&(n=i),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var o=!1;;)switch(r){case"hex":return rt(this,e,t,n);case"utf8":case"utf-8":return it(this,e,t,n);case"ascii":return ot(this,e,t,n);case"latin1":case"binary":return at(this,e,t,n);case"base64":return st(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ut(this,e,t,n);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!0}},Ke.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var dt=4096;function ft(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;ir)&&(n=r);for(var i="",o=t;on)throw new RangeError("Trying to access beyond buffer length")}function vt(e,t,n,r,i,o){if(!Ze(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||te.length)throw new RangeError("Index out of range")}function yt(e,t,n,r){t<0&&(t=65535+t+1);for(var i=0,o=Math.min(e.length-n,2);i>>8*(r?i:1-i)}function bt(e,t,n,r){t<0&&(t=4294967295+t+1);for(var i=0,o=Math.min(e.length-n,4);i>>8*(r?i:3-i)&255}function wt(e,t,n,r,i,o){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function At(e,t,n,r,i){return i||wt(e,0,n,4),Ue(e,t,n,r,23,4),n+4}function _t(e,t,n,r,i){return i||wt(e,0,n,8),Ue(e,t,n,r,52,8),n+8}Ke.prototype.slice=function(e,t){var n,r=this.length;if((e=~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),t0&&(i*=256);)r+=this[e+--t]*i;return r},Ke.prototype.readUInt8=function(e,t){return t||gt(e,1,this.length),this[e]},Ke.prototype.readUInt16LE=function(e,t){return t||gt(e,2,this.length),this[e]|this[e+1]<<8},Ke.prototype.readUInt16BE=function(e,t){return t||gt(e,2,this.length),this[e]<<8|this[e+1]},Ke.prototype.readUInt32LE=function(e,t){return t||gt(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},Ke.prototype.readUInt32BE=function(e,t){return t||gt(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},Ke.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||gt(e,t,this.length);for(var r=this[e],i=1,o=0;++o=(i*=128)&&(r-=Math.pow(2,8*t)),r},Ke.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||gt(e,t,this.length);for(var r=t,i=1,o=this[e+--r];r>0&&(i*=256);)o+=this[e+--r]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*t)),o},Ke.prototype.readInt8=function(e,t){return t||gt(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},Ke.prototype.readInt16LE=function(e,t){t||gt(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},Ke.prototype.readInt16BE=function(e,t){t||gt(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},Ke.prototype.readInt32LE=function(e,t){return t||gt(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},Ke.prototype.readInt32BE=function(e,t){return t||gt(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},Ke.prototype.readFloatLE=function(e,t){return t||gt(e,4,this.length),je(this,e,!0,23,4)},Ke.prototype.readFloatBE=function(e,t){return t||gt(e,4,this.length),je(this,e,!1,23,4)},Ke.prototype.readDoubleLE=function(e,t){return t||gt(e,8,this.length),je(this,e,!0,52,8)},Ke.prototype.readDoubleBE=function(e,t){return t||gt(e,8,this.length),je(this,e,!1,52,8)},Ke.prototype.writeUIntLE=function(e,t,n,r){e=+e,t|=0,n|=0,r||vt(this,e,t,n,Math.pow(2,8*n)-1,0);var i=1,o=0;for(this[t]=255&e;++o=0&&(o*=256);)this[t+i]=e/o&255;return t+n},Ke.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||vt(this,e,t,1,255,0),Ke.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},Ke.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||vt(this,e,t,2,65535,0),Ke.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):yt(this,e,t,!0),t+2},Ke.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||vt(this,e,t,2,65535,0),Ke.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):yt(this,e,t,!1),t+2},Ke.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||vt(this,e,t,4,4294967295,0),Ke.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):bt(this,e,t,!0),t+4},Ke.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||vt(this,e,t,4,4294967295,0),Ke.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):bt(this,e,t,!1),t+4},Ke.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);vt(this,e,t,n,i-1,-i)}var o=0,a=1,s=0;for(this[t]=255&e;++o=0&&(a*=256);)e<0&&0===s&&0!==this[t+o+1]&&(s=1),this[t+o]=(e/a|0)-s&255;return t+n},Ke.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||vt(this,e,t,1,127,-128),Ke.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},Ke.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||vt(this,e,t,2,32767,-32768),Ke.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):yt(this,e,t,!0),t+2},Ke.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||vt(this,e,t,2,32767,-32768),Ke.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):yt(this,e,t,!1),t+2},Ke.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||vt(this,e,t,4,2147483647,-2147483648),Ke.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):bt(this,e,t,!0),t+4},Ke.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||vt(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),Ke.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):bt(this,e,t,!1),t+4},Ke.prototype.writeFloatLE=function(e,t,n){return At(this,e,t,!0,n)},Ke.prototype.writeFloatBE=function(e,t,n){return At(this,e,t,!1,n)},Ke.prototype.writeDoubleLE=function(e,t,n){return _t(this,e,t,!0,n)},Ke.prototype.writeDoubleBE=function(e,t,n){return _t(this,e,t,!1,n)},Ke.prototype.copy=function(e,t,n,r){if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t=0;--i)e[i+t]=this[i+n];else if(o<1e3||!Ke.TYPED_ARRAY_SUPPORT)for(i=0;i>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(o=t;o55295&&n<57344){if(!i){if(n>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(a+1===r){(t-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&o.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,n<128){if((t-=1)<0)break;o.push(n)}else if(n<2048){if((t-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function Mt(e){return function(e){var t,n,r,i,o,a;Ie||Ne();var s=e.length;if(s%4>0)throw new Error("Invalid string. Length must be a multiple of 4");o="="===e[s-2]?2:"="===e[s-1]?1:0,a=new Le(3*s/4-o),r=o>0?s-4:s;var u=0;for(t=0,n=0;t>16&255,a[u++]=i>>8&255,a[u++]=255&i;return 2===o?(i=Pe[e.charCodeAt(t)]<<2|Pe[e.charCodeAt(t+1)]>>4,a[u++]=255&i):1===o&&(i=Pe[e.charCodeAt(t)]<<10|Pe[e.charCodeAt(t+1)]<<4|Pe[e.charCodeAt(t+2)]>>2,a[u++]=i>>8&255,a[u++]=255&i),a}(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(Et,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function Ct(e,t,n,r){for(var i=0;i=t.length||i>=e.length);++i)t[i+n]=e[i];return i}function xt(e){return null!=e&&(!!e._isBuffer||Rt(e)||function(e){return"function"==typeof e.readFloatLE&&"function"==typeof e.slice&&Rt(e.slice(0,0))}(e))}function Rt(e){return!!e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}var Ot=Object.freeze({__proto__:null,Buffer:Ke,INSPECT_MAX_BYTES:50,SlowBuffer:function(e){return+e!=e&&(e=0),Ke.alloc(+e)},isBuffer:xt,kMaxLength:qe});const Tt="function"==typeof Promise&&"function"==typeof Promise.resolve?e=>Promise.resolve().then(e):(e,t)=>t(e,0),Pt=le.WebSocket||le.MozWebSocket,Lt="undefined"!=typeof navigator&&"string"==typeof navigator.product&&"reactnative"===navigator.product.toLowerCase();function It(e,t){return"message"===e.type&&"string"!=typeof e.data&&t[0]>=48&&t[0]<=54}const Nt={websocket:class extends me{constructor(e){super(e),this.supportsBinary=!e.forceBase64}get name(){return"websocket"}doOpen(){if(!this.check())return;const e=this.uri(),t=this.opts.protocols,n=Lt?{}:ce(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(n.headers=this.opts.extraHeaders);try{this.ws=Lt?new Pt(e,t,n):t?new Pt(e,t):new Pt(e)}catch(e){return this.emitReserved("error",e)}this.ws.binaryType=this.socket.binaryType||"arraybuffer",this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=e=>this.onClose({description:"websocket connection closed",context:e}),this.ws.onmessage=e=>this.onData(e.data),this.ws.onerror=e=>this.onError("websocket error",e)}write(e){this.writable=!1;for(let t=0;t{try{this.ws.send(e)}catch(e){}r&&Tt((()=>{this.writable=!0,this.emitReserved("drain")}),this.setTimeoutFn)}))}}doClose(){void 0!==this.ws&&(this.ws.close(),this.ws=null)}uri(){const e=this.opts.secure?"wss":"ws",t=this.query||{};return this.opts.timestampRequests&&(t[this.opts.timestampParam]=Ee()),this.supportsBinary||(t.b64=1),this.createUri(e,t)}check(){return!!Pt}},webtransport:class extends me{get name(){return"webtransport"}doOpen(){"function"==typeof WebTransport&&(this.transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name]),this.transport.closed.then((()=>{this.onClose()})).catch((e=>{this.onError("webtransport error",e)})),this.transport.ready.then((()=>{this.transport.createBidirectionalStream().then((e=>{const t=e.readable.getReader();let n;this.writer=e.writable.getWriter();const r=()=>{t.read().then((({done:e,value:t})=>{e||(n||1!==t.byteLength||54!==t[0]?(this.onPacket(function(e,t,n){se||(se=new TextDecoder);const r=t||e[0]<48||e[0]>54;return re(r?e:se.decode(e),n)}(t,n,"arraybuffer")),n=!1):n=!0,r())})).catch((e=>{}))};r();const i=this.query.sid?`0{"sid":"${this.query.sid}"}`:"0";this.writer.write((new TextEncoder).encode(i)).then((()=>this.onOpen()))}))})))}write(e){this.writable=!1;for(let t=0;t{It(n,e)&&this.writer.write(Uint8Array.of(54)),this.writer.write(e).then((()=>{r&&Tt((()=>{this.writable=!0,this.emitReserved("drain")}),this.setTimeoutFn)}))}))}}doClose(){var e;null===(e=this.transport)||void 0===e||e.close()}},polling:class extends me{constructor(e){if(super(e),this.polling=!1,"undefined"!=typeof location){const t="https:"===location.protocol;let n=location.port;n||(n=t?"443":"80"),this.xd="undefined"!=typeof location&&e.hostname!==location.hostname||n!==e.port}const t=e&&e.forceBase64;this.supportsBinary=xe&&!t,this.opts.withCredentials&&(this.cookieJar=void 0)}get name(){return"polling"}doOpen(){this.poll()}pause(e){this.readyState="pausing";const t=()=>{this.readyState="paused",e()};if(this.polling||!this.writable){let e=0;this.polling&&(e++,this.once("pollComplete",(function(){--e||t()}))),this.writable||(e++,this.once("drain",(function(){--e||t()})))}else t()}poll(){this.polling=!0,this.doPoll(),this.emitReserved("poll")}onData(e){((e,t)=>{const n=e.split(ae),r=[];for(let i=0;i{if("opening"===this.readyState&&"open"===e.type&&this.onOpen(),"close"===e.type)return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(e)})),"closed"!==this.readyState&&(this.polling=!1,this.emitReserved("pollComplete"),"open"===this.readyState&&this.poll())}doClose(){const e=()=>{this.write([{type:"close"}])};"open"===this.readyState?e():this.once("open",e)}write(e){this.writable=!1,((e,t)=>{const n=e.length,r=new Array(n);let i=0;e.forEach(((e,o)=>{G(e,!1,(e=>{r[o]=e,++i===n&&t(r.join(ae))}))}))})(e,(e=>{this.doWrite(e,(()=>{this.writable=!0,this.emitReserved("drain")}))}))}uri(){const e=this.opts.secure?"https":"http",t=this.query||{};return!1!==this.opts.timestampRequests&&(t[this.opts.timestampParam]=Ee()),this.supportsBinary||t.sid||(t.b64=1),this.createUri(e,t)}request(e={}){return Object.assign(e,{xd:this.xd,cookieJar:this.cookieJar},this.opts),new Re(this.uri(),e)}doWrite(e,t){const n=this.request({method:"POST",data:e});n.on("success",t),n.on("error",((e,t)=>{this.onError("xhr post error",e,t)}))}doPoll(){const e=this.request();e.on("data",this.onData.bind(this)),e.on("error",((e,t)=>{this.onError("xhr poll error",e,t)})),this.pollXhr=e}}},Dt=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,Bt=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function jt(e){const t=e,n=e.indexOf("["),r=e.indexOf("]");-1!=n&&-1!=r&&(e=e.substring(0,n)+e.substring(n,r).replace(/:/g,";")+e.substring(r,e.length));let i=Dt.exec(e||""),o={},a=14;for(;a--;)o[Bt[a]]=i[a]||"";return-1!=n&&-1!=r&&(o.source=t,o.host=o.host.substring(1,o.host.length-1).replace(/;/g,":"),o.authority=o.authority.replace("[","").replace("]","").replace(/;/g,":"),o.ipv6uri=!0),o.pathNames=function(e,t){const n=/\/{2,9}/g,r=t.replace(n,"/").split("/");return"/"!=t.slice(0,1)&&0!==t.length||r.splice(0,1),"/"==t.slice(-1)&&r.splice(r.length-1,1),r}(0,o.path),o.queryKey=function(e,t){const n={};return t.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,(function(e,t,r){t&&(n[t]=r)})),n}(0,o.query),o}let Ut=class e extends ue{constructor(e,t={}){super(),this.writeBuffer=[],e&&"object"==typeof e&&(t=e,e=null),e?(e=jt(e),t.hostname=e.host,t.secure="https"===e.protocol||"wss"===e.protocol,t.port=e.port,e.query&&(t.query=e.query)):t.host&&(t.hostname=jt(t.host).host),he(this,t),this.secure=null!=t.secure?t.secure:"undefined"!=typeof location&&"https:"===location.protocol,t.hostname&&!t.port&&(t.port=this.secure?"443":"80"),this.hostname=t.hostname||("undefined"!=typeof location?location.hostname:"localhost"),this.port=t.port||("undefined"!=typeof location&&location.port?location.port:this.secure?"443":"80"),this.transports=t.transports||["polling","websocket","webtransport"],this.writeBuffer=[],this.prevBufferLen=0,this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},t),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),"string"==typeof this.opts.query&&(this.opts.query=function(e){let t={},n=e.split("&");for(let r=0,i=n.length;r{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this.beforeunloadEventListener,!1)),"localhost"!==this.hostname&&(this.offlineEventListener=()=>{this.onClose("transport close",{description:"network connection lost"})},addEventListener("offline",this.offlineEventListener,!1))),this.open()}createTransport(e){const t=Object.assign({},this.opts.query);t.EIO=4,t.transport=e,this.id&&(t.sid=this.id);const n=Object.assign({},this.opts,{query:t,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[e]);return new Nt[e](n)}open(){let t;if(this.opts.rememberUpgrade&&e.priorWebsocketSuccess&&-1!==this.transports.indexOf("websocket"))t="websocket";else{if(0===this.transports.length)return void this.setTimeoutFn((()=>{this.emitReserved("error","No transports available")}),0);t=this.transports[0]}this.readyState="opening";try{t=this.createTransport(t)}catch(e){return this.transports.shift(),void this.open()}t.open(),this.setTransport(t)}setTransport(e){this.transport&&this.transport.removeAllListeners(),this.transport=e,e.on("drain",this.onDrain.bind(this)).on("packet",this.onPacket.bind(this)).on("error",this.onError.bind(this)).on("close",(e=>this.onClose("transport close",e)))}probe(t){let n=this.createTransport(t),r=!1;e.priorWebsocketSuccess=!1;const i=()=>{r||(n.send([{type:"ping",data:"probe"}]),n.once("packet",(t=>{if(!r)if("pong"===t.type&&"probe"===t.data){if(this.upgrading=!0,this.emitReserved("upgrading",n),!n)return;e.priorWebsocketSuccess="websocket"===n.name,this.transport.pause((()=>{r||"closed"!==this.readyState&&(c(),this.setTransport(n),n.send([{type:"upgrade"}]),this.emitReserved("upgrade",n),n=null,this.upgrading=!1,this.flush())}))}else{const e=new Error("probe error");e.transport=n.name,this.emitReserved("upgradeError",e)}})))};function o(){r||(r=!0,c(),n.close(),n=null)}const a=e=>{const t=new Error("probe error: "+e);t.transport=n.name,o(),this.emitReserved("upgradeError",t)};function s(){a("transport closed")}function u(){a("socket closed")}function l(e){n&&e.name!==n.name&&o()}const c=()=>{n.removeListener("open",i),n.removeListener("error",a),n.removeListener("close",s),this.off("close",u),this.off("upgrading",l)};n.once("open",i),n.once("error",a),n.once("close",s),this.once("close",u),this.once("upgrading",l),-1!==this.upgrades.indexOf("webtransport")&&"webtransport"!==t?this.setTimeoutFn((()=>{r||n.open()}),200):n.open()}onOpen(){if(this.readyState="open",e.priorWebsocketSuccess="websocket"===this.transport.name,this.emitReserved("open"),this.flush(),"open"===this.readyState&&this.opts.upgrade){let e=0;const t=this.upgrades.length;for(;e{this.onClose("ping timeout")}),this.pingInterval+this.pingTimeout),this.opts.autoUnref&&this.pingTimeoutTimer.unref()}onDrain(){this.writeBuffer.splice(0,this.prevBufferLen),this.prevBufferLen=0,0===this.writeBuffer.length?this.emitReserved("drain"):this.flush()}flush(){if("closed"!==this.readyState&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){const e=this.getWritablePackets();this.transport.send(e),this.prevBufferLen=e.length,this.emitReserved("flush")}}getWritablePackets(){if(!(this.maxPayload&&"polling"===this.transport.name&&this.writeBuffer.length>1))return this.writeBuffer;let e=1;for(let n=0;n=57344?n+=3:(r++,n+=4);return n}(t):Math.ceil(1.33*(t.byteLength||t.size))),n>0&&e>this.maxPayload)return this.writeBuffer.slice(0,n);e+=2}var t;return this.writeBuffer}write(e,t,n){return this.sendPacket("message",e,t,n),this}send(e,t,n){return this.sendPacket("message",e,t,n),this}sendPacket(e,t,n,r){if("function"==typeof t&&(r=t,t=void 0),"function"==typeof n&&(r=n,n=null),"closing"===this.readyState||"closed"===this.readyState)return;(n=n||{}).compress=!1!==n.compress;const i={type:e,data:t,options:n};this.emitReserved("packetCreate",i),this.writeBuffer.push(i),r&&this.once("flush",r),this.flush()}close(){const e=()=>{this.onClose("forced close"),this.transport.close()},t=()=>{this.off("upgrade",t),this.off("upgradeError",t),e()},n=()=>{this.once("upgrade",t),this.once("upgradeError",t)};return"opening"!==this.readyState&&"open"!==this.readyState||(this.readyState="closing",this.writeBuffer.length?this.once("drain",(()=>{this.upgrading?n():e()})):this.upgrading?n():e()),this}onError(t){e.priorWebsocketSuccess=!1,this.emitReserved("error",t),this.onClose("transport error",t)}onClose(e,t){"opening"!==this.readyState&&"open"!==this.readyState&&"closing"!==this.readyState||(this.clearTimeoutFn(this.pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),"function"==typeof removeEventListener&&(removeEventListener("beforeunload",this.beforeunloadEventListener,!1),removeEventListener("offline",this.offlineEventListener,!1)),this.readyState="closed",this.id=null,this.emitReserved("close",e,t),this.writeBuffer=[],this.prevBufferLen=0)}filterUpgrades(e){const t=[];let n=0;const r=e.length;for(;n"function"==typeof ArrayBuffer.isView?ArrayBuffer.isView(e):e.buffer instanceof ArrayBuffer,qt=Object.prototype.toString,Wt="function"==typeof Blob||"undefined"!=typeof Blob&&"[object BlobConstructor]"===qt.call(Blob),Vt="function"==typeof File||"undefined"!=typeof File&&"[object FileConstructor]"===qt.call(File);function Kt(e){return zt&&(e instanceof ArrayBuffer||Ft(e))||Wt&&e instanceof Blob||Vt&&e instanceof File}function Ht(e,t){if(!e||"object"!=typeof e)return!1;if(Array.isArray(e)){for(let t=0,n=e.length;t=0&&e.num{delete this.acks[e];for(let t=0;t{this.io.clearTimeoutFn(i),t.apply(this,[null,...e])}}emitWithAck(e,...t){const n=void 0!==this.flags.timeout||void 0!==this._opts.ackTimeout;return new Promise(((r,i)=>{t.push(((e,t)=>n?e?i(e):r(t):r(e))),this.emit(e,...t)}))}_addToQueue(e){let t;"function"==typeof e[e.length-1]&&(t=e.pop());const n={id:this._queueSeq++,tryCount:0,pending:!1,args:e,flags:Object.assign({fromQueue:!0},this.flags)};e.push(((e,...r)=>{if(n===this._queue[0])return null!==e?n.tryCount>this._opts.retries&&(this._queue.shift(),t&&t(e)):(this._queue.shift(),t&&t(null,...r)),n.pending=!1,this._drainQueue()})),this._queue.push(n),this._drainQueue()}_drainQueue(e=!1){if(!this.connected||0===this._queue.length)return;const t=this._queue[0];t.pending&&!e||(t.pending=!0,t.tryCount++,this.flags=t.flags,this.emit.apply(this,t.args))}packet(e){e.nsp=this.nsp,this.io._packet(e)}onopen(){"function"==typeof this.auth?this.auth((e=>{this._sendConnectPacket(e)})):this._sendConnectPacket(this.auth)}_sendConnectPacket(e){this.packet({type:Xt.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},e):e})}onerror(e){this.connected||this.emitReserved("connect_error",e)}onclose(e,t){this.connected=!1,delete this.id,this.emitReserved("disconnect",e,t)}onpacket(e){if(e.nsp===this.nsp)switch(e.type){case Xt.CONNECT:e.data&&e.data.sid?this.onconnect(e.data.sid,e.data.pid):this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case Xt.EVENT:case Xt.BINARY_EVENT:this.onevent(e);break;case Xt.ACK:case Xt.BINARY_ACK:this.onack(e);break;case Xt.DISCONNECT:this.ondisconnect();break;case Xt.CONNECT_ERROR:this.destroy();const t=new Error(e.data.message);t.data=e.data.data,this.emitReserved("connect_error",t)}}onevent(e){const t=e.data||[];null!=e.id&&t.push(this.ack(e.id)),this.connected?this.emitEvent(t):this.receiveBuffer.push(Object.freeze(t))}emitEvent(e){if(this._anyListeners&&this._anyListeners.length){const t=this._anyListeners.slice();for(const n of t)n.apply(this,e)}super.emit.apply(this,e),this._pid&&e.length&&"string"==typeof e[e.length-1]&&(this._lastOffset=e[e.length-1])}ack(e){const t=this;let n=!1;return function(...r){n||(n=!0,t.packet({type:Xt.ACK,id:e,data:r}))}}onack(e){const t=this.acks[e.id];"function"==typeof t&&(t.apply(this,e.data),delete this.acks[e.id])}onconnect(e,t){this.id=e,this.recovered=t&&this._pid===t,this._pid=t,this.connected=!0,this.emitBuffered(),this.emitReserved("connect"),this._drainQueue(!0)}emitBuffered(){this.receiveBuffer.forEach((e=>this.emitEvent(e))),this.receiveBuffer=[],this.sendBuffer.forEach((e=>{this.notifyOutgoingListeners(e),this.packet(e)})),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach((e=>e())),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:Xt.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(e){return this.flags.compress=e,this}get volatile(){return this.flags.volatile=!0,this}timeout(e){return this.flags.timeout=e,this}onAny(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(e),this}prependAny(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(e),this}offAny(e){if(!this._anyListeners)return this;if(e){const t=this._anyListeners;for(let n=0;n0&&e.jitter<=1?e.jitter:0,this.attempts=0}sn.prototype.duration=function(){var e=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var t=Math.random(),n=Math.floor(t*this.jitter*e);e=0==(1&Math.floor(10*t))?e-n:e+n}return 0|Math.min(e,this.max)},sn.prototype.reset=function(){this.attempts=0},sn.prototype.setMin=function(e){this.ms=e},sn.prototype.setMax=function(e){this.max=e},sn.prototype.setJitter=function(e){this.jitter=e};class un extends ue{constructor(e,t){var n;super(),this.nsps={},this.subs=[],e&&"object"==typeof e&&(t=e,e=void 0),(t=t||{}).path=t.path||"/socket.io",this.opts=t,he(this,t),this.reconnection(!1!==t.reconnection),this.reconnectionAttempts(t.reconnectionAttempts||1/0),this.reconnectionDelay(t.reconnectionDelay||1e3),this.reconnectionDelayMax(t.reconnectionDelayMax||5e3),this.randomizationFactor(null!==(n=t.randomizationFactor)&&void 0!==n?n:.5),this.backoff=new sn({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(null==t.timeout?2e4:t.timeout),this._readyState="closed",this.uri=e;const r=t.parser||nn;this.encoder=new r.Encoder,this.decoder=new r.Decoder,this._autoConnect=!1!==t.autoConnect,this._autoConnect&&this.open()}reconnection(e){return arguments.length?(this._reconnection=!!e,this):this._reconnection}reconnectionAttempts(e){return void 0===e?this._reconnectionAttempts:(this._reconnectionAttempts=e,this)}reconnectionDelay(e){var t;return void 0===e?this._reconnectionDelay:(this._reconnectionDelay=e,null===(t=this.backoff)||void 0===t||t.setMin(e),this)}randomizationFactor(e){var t;return void 0===e?this._randomizationFactor:(this._randomizationFactor=e,null===(t=this.backoff)||void 0===t||t.setJitter(e),this)}reconnectionDelayMax(e){var t;return void 0===e?this._reconnectionDelayMax:(this._reconnectionDelayMax=e,null===(t=this.backoff)||void 0===t||t.setMax(e),this)}timeout(e){return arguments.length?(this._timeout=e,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&0===this.backoff.attempts&&this.reconnect()}open(e){if(~this._readyState.indexOf("open"))return this;this.engine=new Ut(this.uri,this.opts);const t=this.engine,n=this;this._readyState="opening",this.skipReconnect=!1;const r=rn(t,"open",(function(){n.onopen(),e&&e()})),i=t=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",t),e?e(t):this.maybeReconnectOnOpen()},o=rn(t,"error",i);if(!1!==this._timeout){const e=this._timeout,n=this.setTimeoutFn((()=>{r(),i(new Error("timeout")),t.close()}),e);this.opts.autoUnref&&n.unref(),this.subs.push((()=>{this.clearTimeoutFn(n)}))}return this.subs.push(r),this.subs.push(o),this}connect(e){return this.open(e)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const e=this.engine;this.subs.push(rn(e,"ping",this.onping.bind(this)),rn(e,"data",this.ondata.bind(this)),rn(e,"error",this.onerror.bind(this)),rn(e,"close",this.onclose.bind(this)),rn(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(e){try{this.decoder.add(e)}catch(e){this.onclose("parse error",e)}}ondecoded(e){Tt((()=>{this.emitReserved("packet",e)}),this.setTimeoutFn)}onerror(e){this.emitReserved("error",e)}socket(e,t){let n=this.nsps[e];return n?this._autoConnect&&!n.active&&n.connect():(n=new an(this,e,t),this.nsps[e]=n),n}_destroy(e){const t=Object.keys(this.nsps);for(const n of t)if(this.nsps[n].active)return;this._close()}_packet(e){const t=this.encoder.encode(e);for(let n=0;ne())),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close"),this.engine&&this.engine.close()}disconnect(){return this._close()}onclose(e,t){this.cleanup(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",e,t),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const e=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const t=this.backoff.duration();this._reconnecting=!0;const n=this.setTimeoutFn((()=>{e.skipReconnect||(this.emitReserved("reconnect_attempt",e.backoff.attempts),e.skipReconnect||e.open((t=>{t?(e._reconnecting=!1,e.reconnect(),this.emitReserved("reconnect_error",t)):e.onreconnect()})))}),t);this.opts.autoUnref&&n.unref(),this.subs.push((()=>{this.clearTimeoutFn(n)}))}}onreconnect(){const e=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",e)}}const ln={};function cn(e,t){"object"==typeof e&&(t=e,e=void 0);const n=function(e,t="",n){let r=e;n=n||"undefined"!=typeof location&&location,null==e&&(e=n.protocol+"//"+n.host),"string"==typeof e&&("/"===e.charAt(0)&&(e="/"===e.charAt(1)?n.protocol+e:n.host+e),/^(https?|wss?):\/\//.test(e)||(e=void 0!==n?n.protocol+"//"+e:"https://"+e),r=jt(e)),r.port||(/^(http|ws)$/.test(r.protocol)?r.port="80":/^(http|ws)s$/.test(r.protocol)&&(r.port="443")),r.path=r.path||"/";const i=-1!==r.host.indexOf(":")?"["+r.host+"]":r.host;return r.id=r.protocol+"://"+i+":"+r.port+t,r.href=r.protocol+"://"+i+(n&&n.port===r.port?"":":"+r.port),r}(e,(t=t||{}).path||"/socket.io"),r=n.source,i=n.id,o=n.path,a=ln[i]&&o in ln[i].nsps;let s;return t.forceNew||t["force new connection"]||!1===t.multiplex||a?s=new un(r,t):(ln[i]||(ln[i]=new un(r,t)),s=ln[i]),n.query&&!t.query&&(t.query=n.queryKey),s.socket(n.path,t)}function dn(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{u(r.next(e))}catch(e){o(e)}}function s(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((r=r.apply(e,t||[])).next())}))}Object.assign(cn,{Manager:un,Socket:an,io:cn,connect:cn}),"function"==typeof SuppressedError&&SuppressedError;const fn=(e,t)=>dn(void 0,void 0,void 0,(function*(){const n=t.endsWith("/")?`${t}debug`:`${t}/debug`,r=JSON.stringify(e),i=yield s(n,{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json"},body:r});return yield i.text()}));var hn=void 0!==t?t:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},pn=[],mn=[],gn="undefined"!=typeof Uint8Array?Uint8Array:Array,vn=!1;function yn(){vn=!0;for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t=0;t<64;++t)pn[t]=e[t],mn[e.charCodeAt(t)]=t;mn["-".charCodeAt(0)]=62,mn["_".charCodeAt(0)]=63}function bn(e,t,n){for(var r,i,o=[],a=t;a>18&63]+pn[i>>12&63]+pn[i>>6&63]+pn[63&i]);return o.join("")}function wn(e){var t;vn||yn();for(var n=e.length,r=n%3,i="",o=[],a=16383,s=0,u=n-r;su?u:s+a));return 1===r?(t=e[n-1],i+=pn[t>>2],i+=pn[t<<4&63],i+="=="):2===r&&(t=(e[n-2]<<8)+e[n-1],i+=pn[t>>10],i+=pn[t>>4&63],i+=pn[t<<2&63],i+="="),o.push(i),o.join("")}function An(e,t,n,r,i){var o,a,s=8*i-r-1,u=(1<>1,c=-7,d=n?i-1:0,f=n?-1:1,h=e[t+d];for(d+=f,o=h&(1<<-c)-1,h>>=-c,c+=s;c>0;o=256*o+e[t+d],d+=f,c-=8);for(a=o&(1<<-c)-1,o>>=-c,c+=r;c>0;a=256*a+e[t+d],d+=f,c-=8);if(0===o)o=1-l;else{if(o===u)return a?NaN:1/0*(h?-1:1);a+=Math.pow(2,r),o-=l}return(h?-1:1)*a*Math.pow(2,o-r)}function _n(e,t,n,r,i,o){var a,s,u,l=8*o-i-1,c=(1<>1,f=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,h=r?0:o-1,p=r?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=c):(a=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-a))<1&&(a--,u*=2),(t+=a+d>=1?f/u:f*Math.pow(2,1-d))*u>=2&&(a++,u/=2),a+d>=c?(s=0,a=c):a+d>=1?(s=(t*u-1)*Math.pow(2,i),a+=d):(s=t*Math.pow(2,d-1)*Math.pow(2,i),a=0));i>=8;e[n+h]=255&s,h+=p,s/=256,i-=8);for(a=a<0;e[n+h]=255&a,h+=p,a/=256,l-=8);e[n+h-p]|=128*m}var En={}.toString,Sn=Array.isArray||function(e){return"[object Array]"==En.call(e)};xn.TYPED_ARRAY_SUPPORT=void 0===hn.TYPED_ARRAY_SUPPORT||hn.TYPED_ARRAY_SUPPORT;var kn=Mn();function Mn(){return xn.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function Cn(e,t){if(Mn()=Mn())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+Mn().toString(16)+" bytes");return 0|e}function In(e){return!(null==e||!e._isBuffer)}function Nn(e,t){if(In(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var r=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return ur(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return lr(e).length;default:if(r)return ur(e).length;t=(""+t).toLowerCase(),r=!0}}function Dn(e,t,n){var r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return Zn(this,t,n);case"utf8":case"utf-8":return $n(this,t,n);case"ascii":return Gn(this,t,n);case"latin1":case"binary":return Qn(this,t,n);case"base64":return Hn(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Xn(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function Bn(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function jn(e,t,n,r,i){if(0===e.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return-1;n=e.length-1}else if(n<0){if(!i)return-1;n=0}if("string"==typeof t&&(t=xn.from(t,r)),In(t))return 0===t.length?-1:Un(e,t,n,r,i);if("number"==typeof t)return t&=255,xn.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):Un(e,[t],n,r,i);throw new TypeError("val must be string, number or Buffer")}function Un(e,t,n,r,i){var o,a=1,s=e.length,u=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;a=2,s/=2,u/=2,n/=2}function l(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(i){var c=-1;for(o=n;os&&(n=s-u),o=n;o>=0;o--){for(var d=!0,f=0;fi&&(r=i):r=i;var o=t.length;if(o%2!=0)throw new TypeError("Invalid hex string");r>o/2&&(r=o/2);for(var a=0;a>8,i=n%256,o.push(i),o.push(r);return o}(t,e.length-n),e,n,r)}function Hn(e,t,n){return 0===t&&n===e.length?wn(e):wn(e.slice(t,n))}function $n(e,t,n){n=Math.min(e.length,n);for(var r=[],i=t;i239?4:l>223?3:l>191?2:1;if(i+d<=n)switch(d){case 1:l<128&&(c=l);break;case 2:128==(192&(o=e[i+1]))&&(u=(31&l)<<6|63&o)>127&&(c=u);break;case 3:o=e[i+1],a=e[i+2],128==(192&o)&&128==(192&a)&&(u=(15&l)<<12|(63&o)<<6|63&a)>2047&&(u<55296||u>57343)&&(c=u);break;case 4:o=e[i+1],a=e[i+2],s=e[i+3],128==(192&o)&&128==(192&a)&&128==(192&s)&&(u=(15&l)<<18|(63&o)<<12|(63&a)<<6|63&s)>65535&&u<1114112&&(c=u)}null===c?(c=65533,d=1):c>65535&&(c-=65536,r.push(c>>>10&1023|55296),c=56320|1023&c),r.push(c),i+=d}return function(e){var t=e.length;if(t<=Yn)return String.fromCharCode.apply(String,e);for(var n="",r=0;r0&&(e=this.toString("hex",0,50).match(/.{2}/g).join(" "),this.length>50&&(e+=" ... ")),""},xn.prototype.compare=function(e,t,n,r,i){if(!In(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&t>=n)return 0;if(r>=i)return-1;if(t>=n)return 1;if(this===e)return 0;for(var o=(i>>>=0)-(r>>>=0),a=(n>>>=0)-(t>>>=0),s=Math.min(o,a),u=this.slice(r,i),l=e.slice(t,n),c=0;ci)&&(n=i),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var o=!1;;)switch(r){case"hex":return zn(this,e,t,n);case"utf8":case"utf-8":return Fn(this,e,t,n);case"ascii":return qn(this,e,t,n);case"latin1":case"binary":return Wn(this,e,t,n);case"base64":return Vn(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Kn(this,e,t,n);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!0}},xn.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var Yn=4096;function Gn(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;ir)&&(n=r);for(var i="",o=t;on)throw new RangeError("Trying to access beyond buffer length")}function er(e,t,n,r,i,o){if(!In(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||te.length)throw new RangeError("Index out of range")}function tr(e,t,n,r){t<0&&(t=65535+t+1);for(var i=0,o=Math.min(e.length-n,2);i>>8*(r?i:1-i)}function nr(e,t,n,r){t<0&&(t=4294967295+t+1);for(var i=0,o=Math.min(e.length-n,4);i>>8*(r?i:3-i)&255}function rr(e,t,n,r,i,o){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function ir(e,t,n,r,i){return i||rr(e,0,n,4),_n(e,t,n,r,23,4),n+4}function or(e,t,n,r,i){return i||rr(e,0,n,8),_n(e,t,n,r,52,8),n+8}xn.prototype.slice=function(e,t){var n,r=this.length;if((e=~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),t0&&(i*=256);)r+=this[e+--t]*i;return r},xn.prototype.readUInt8=function(e,t){return t||Jn(e,1,this.length),this[e]},xn.prototype.readUInt16LE=function(e,t){return t||Jn(e,2,this.length),this[e]|this[e+1]<<8},xn.prototype.readUInt16BE=function(e,t){return t||Jn(e,2,this.length),this[e]<<8|this[e+1]},xn.prototype.readUInt32LE=function(e,t){return t||Jn(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},xn.prototype.readUInt32BE=function(e,t){return t||Jn(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},xn.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||Jn(e,t,this.length);for(var r=this[e],i=1,o=0;++o=(i*=128)&&(r-=Math.pow(2,8*t)),r},xn.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||Jn(e,t,this.length);for(var r=t,i=1,o=this[e+--r];r>0&&(i*=256);)o+=this[e+--r]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*t)),o},xn.prototype.readInt8=function(e,t){return t||Jn(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},xn.prototype.readInt16LE=function(e,t){t||Jn(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},xn.prototype.readInt16BE=function(e,t){t||Jn(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},xn.prototype.readInt32LE=function(e,t){return t||Jn(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},xn.prototype.readInt32BE=function(e,t){return t||Jn(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},xn.prototype.readFloatLE=function(e,t){return t||Jn(e,4,this.length),An(this,e,!0,23,4)},xn.prototype.readFloatBE=function(e,t){return t||Jn(e,4,this.length),An(this,e,!1,23,4)},xn.prototype.readDoubleLE=function(e,t){return t||Jn(e,8,this.length),An(this,e,!0,52,8)},xn.prototype.readDoubleBE=function(e,t){return t||Jn(e,8,this.length),An(this,e,!1,52,8)},xn.prototype.writeUIntLE=function(e,t,n,r){e=+e,t|=0,n|=0,r||er(this,e,t,n,Math.pow(2,8*n)-1,0);var i=1,o=0;for(this[t]=255&e;++o=0&&(o*=256);)this[t+i]=e/o&255;return t+n},xn.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||er(this,e,t,1,255,0),xn.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},xn.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||er(this,e,t,2,65535,0),xn.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):tr(this,e,t,!0),t+2},xn.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||er(this,e,t,2,65535,0),xn.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):tr(this,e,t,!1),t+2},xn.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||er(this,e,t,4,4294967295,0),xn.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):nr(this,e,t,!0),t+4},xn.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||er(this,e,t,4,4294967295,0),xn.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):nr(this,e,t,!1),t+4},xn.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);er(this,e,t,n,i-1,-i)}var o=0,a=1,s=0;for(this[t]=255&e;++o=0&&(a*=256);)e<0&&0===s&&0!==this[t+o+1]&&(s=1),this[t+o]=(e/a|0)-s&255;return t+n},xn.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||er(this,e,t,1,127,-128),xn.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},xn.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||er(this,e,t,2,32767,-32768),xn.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):tr(this,e,t,!0),t+2},xn.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||er(this,e,t,2,32767,-32768),xn.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):tr(this,e,t,!1),t+2},xn.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||er(this,e,t,4,2147483647,-2147483648),xn.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):nr(this,e,t,!0),t+4},xn.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||er(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),xn.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):nr(this,e,t,!1),t+4},xn.prototype.writeFloatLE=function(e,t,n){return ir(this,e,t,!0,n)},xn.prototype.writeFloatBE=function(e,t,n){return ir(this,e,t,!1,n)},xn.prototype.writeDoubleLE=function(e,t,n){return or(this,e,t,!0,n)},xn.prototype.writeDoubleBE=function(e,t,n){return or(this,e,t,!1,n)},xn.prototype.copy=function(e,t,n,r){if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t=0;--i)e[i+t]=this[i+n];else if(o<1e3||!xn.TYPED_ARRAY_SUPPORT)for(i=0;i>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(o=t;o55295&&n<57344){if(!i){if(n>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(a+1===r){(t-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&o.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,n<128){if((t-=1)<0)break;o.push(n)}else if(n<2048){if((t-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function lr(e){return function(e){var t,n,r,i,o,a;vn||yn();var s=e.length;if(s%4>0)throw new Error("Invalid string. Length must be a multiple of 4");o="="===e[s-2]?2:"="===e[s-1]?1:0,a=new gn(3*s/4-o),r=o>0?s-4:s;var u=0;for(t=0,n=0;t>16&255,a[u++]=i>>8&255,a[u++]=255&i;return 2===o?(i=mn[e.charCodeAt(t)]<<2|mn[e.charCodeAt(t+1)]>>4,a[u++]=255&i):1===o&&(i=mn[e.charCodeAt(t)]<<10|mn[e.charCodeAt(t+1)]<<4|mn[e.charCodeAt(t+2)]>>2,a[u++]=i>>8&255,a[u++]=255&i),a}(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(ar,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function cr(e,t,n,r){for(var i=0;i=t.length||i>=e.length);++i)t[i+n]=e[i];return i}function dr(e){return null!=e&&(!!e._isBuffer||fr(e)||function(e){return"function"==typeof e.readFloatLE&&"function"==typeof e.slice&&fr(e.slice(0,0))}(e))}function fr(e){return!!e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}var hr="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==t?t:"undefined"!=typeof self?self:{};function pr(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var n=function e(){return this instanceof e?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(t){var r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,r.get?r:{enumerable:!0,get:function(){return e[t]}})})),n}var mr={},gr={},vr={},yr=pr(Object.freeze({__proto__:null,Buffer:xn,INSPECT_MAX_BYTES:50,SlowBuffer:function(e){return+e!=e&&(e=0),xn.alloc(+e)},isBuffer:dr,kMaxLength:kn})),br={};function wr(){throw new Error("setTimeout has not been defined")}function Ar(){throw new Error("clearTimeout has not been defined")}var _r=wr,Er=Ar;function Sr(e){if(_r===setTimeout)return setTimeout(e,0);if((_r===wr||!_r)&&setTimeout)return _r=setTimeout,setTimeout(e,0);try{return _r(e,0)}catch(t){try{return _r.call(null,e,0)}catch(t){return _r.call(this,e,0)}}}"function"==typeof hn.setTimeout&&(_r=setTimeout),"function"==typeof hn.clearTimeout&&(Er=clearTimeout);var kr,Mr=[],Cr=!1,xr=-1;function Rr(){Cr&&kr&&(Cr=!1,kr.length?Mr=kr.concat(Mr):xr=-1,Mr.length&&Or())}function Or(){if(!Cr){var e=Sr(Rr);Cr=!0;for(var t=Mr.length;t;){for(kr=Mr,Mr=[];++xr1)for(var n=1;n4294967295)throw new RangeError("requested too many random bytes");var n=Gr.allocUnsafe(e);if(e>0)if(e>Yr)for(var r=0;r0&&a.length>i){a.warned=!0;var u=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+t+" listeners added. Use emitter.setMaxListeners() to increase limit");u.name="MaxListenersExceededWarning",u.emitter=e,u.type=t,u.count=a.length,s=u,"function"==typeof console.warn?console.warn(s):console.log(s)}}else a=o[t]=n,++e._eventsCount;return e}function oi(e,t,n){var r=!1;function i(){e.removeListener(t,i),r||(r=!0,n.apply(e,arguments))}return i.listener=n,i}function ai(e){var t=this._events;if(t){var n=t[e];if("function"==typeof n)return 1;if(n)return n.length}return 0}function si(e,t){for(var n=new Array(t);t--;)n[t]=e[t];return n}ti.prototype=Object.create(null),ni.EventEmitter=ni,ni.usingDomains=!1,ni.prototype.domain=void 0,ni.prototype._events=void 0,ni.prototype._maxListeners=void 0,ni.defaultMaxListeners=10,ni.init=function(){this.domain=null,ni.usingDomains&&(void 0).active,this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=new ti,this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},ni.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||isNaN(e))throw new TypeError('"n" argument must be a positive number');return this._maxListeners=e,this},ni.prototype.getMaxListeners=function(){return ri(this)},ni.prototype.emit=function(e){var t,n,r,i,o,a,s,u="error"===e;if(a=this._events)u=u&&null==a.error;else if(!u)return!1;if(s=this.domain,u){if(t=arguments[1],!s){if(t instanceof Error)throw t;var l=new Error('Uncaught, unspecified "error" event. ('+t+")");throw l.context=t,l}return t||(t=new Error('Uncaught, unspecified "error" event')),t.domainEmitter=this,t.domain=s,t.domainThrown=!1,s.emit("error",t),!1}if(!(n=a[e]))return!1;var c="function"==typeof n;switch(r=arguments.length){case 1:!function(e,t,n){if(t)e.call(n);else for(var r=e.length,i=si(e,r),o=0;o0;)if(n[o]===t||n[o].listener&&n[o].listener===t){a=n[o].listener,i=o;break}if(i<0)return this;if(1===n.length){if(n[0]=void 0,0==--this._eventsCount)return this._events=new ti,this;delete r[e]}else!function(e,t){for(var n=t,r=n+1,i=e.length;r0?Reflect.ownKeys(this._events):[]};var ui=pr(Object.freeze({__proto__:null,EventEmitter:ni,default:ni})),li=ui.EventEmitter,ci="function"==typeof Object.create?function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:function(e,t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e},di=/%[sdj%]/g;function fi(e){if(!Ri(e)){for(var t=[],n=0;n=i)return e;switch(e){case"%s":return String(r[n++]);case"%d":return Number(r[n++]);case"%j":try{return JSON.stringify(r[n++])}catch(e){return"[Circular]"}default:return e}})),a=r[n];n=3&&(n.depth=arguments[2]),arguments.length>=4&&(n.colors=arguments[3]),ki(t)?n.showHidden=t:t&&Wi(n,t),Ti(n.showHidden)&&(n.showHidden=!1),Ti(n.depth)&&(n.depth=2),Ti(n.colors)&&(n.colors=!1),Ti(n.customInspect)&&(n.customInspect=!0),n.colors&&(n.stylize=bi),Ai(n,e,n.depth)}function bi(e,t){var n=yi.styles[t];return n?"["+yi.colors[n][0]+"m"+e+"["+yi.colors[n][1]+"m":e}function wi(e,t){return e}function Ai(e,t,n){if(e.customInspect&&t&&Di(t.inspect)&&t.inspect!==yi&&(!t.constructor||t.constructor.prototype!==t)){var r=t.inspect(n,e);return Ri(r)||(r=Ai(e,r,n)),r}var i=function(e,t){if(Ti(t))return e.stylize("undefined","undefined");if(Ri(t)){var n="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(n,"string")}return xi(t)?e.stylize(""+t,"number"):ki(t)?e.stylize(""+t,"boolean"):Mi(t)?e.stylize("null","null"):void 0}(e,t);if(i)return i;var o=Object.keys(t),a=function(e){var t={};return e.forEach((function(e,n){t[e]=!0})),t}(o);if(e.showHidden&&(o=Object.getOwnPropertyNames(t)),Ni(t)&&(o.indexOf("message")>=0||o.indexOf("description")>=0))return _i(t);if(0===o.length){if(Di(t)){var s=t.name?": "+t.name:"";return e.stylize("[Function"+s+"]","special")}if(Pi(t))return e.stylize(RegExp.prototype.toString.call(t),"regexp");if(Ii(t))return e.stylize(Date.prototype.toString.call(t),"date");if(Ni(t))return _i(t)}var u,l="",c=!1,d=["{","}"];return Si(t)&&(c=!0,d=["[","]"]),Di(t)&&(l=" [Function"+(t.name?": "+t.name:"")+"]"),Pi(t)&&(l=" "+RegExp.prototype.toString.call(t)),Ii(t)&&(l=" "+Date.prototype.toUTCString.call(t)),Ni(t)&&(l=" "+_i(t)),0!==o.length||c&&0!=t.length?n<0?Pi(t)?e.stylize(RegExp.prototype.toString.call(t),"regexp"):e.stylize("[Object]","special"):(e.seen.push(t),u=c?function(e,t,n,r,i){for(var o=[],a=0,s=t.length;a60?n[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+n[1]:n[0]+t+" "+e.join(", ")+" "+n[1]}(u,l,d)):d[0]+l+d[1]}function _i(e){return"["+Error.prototype.toString.call(e)+"]"}function Ei(e,t,n,r,i,o){var a,s,u;if((u=Object.getOwnPropertyDescriptor(t,i)||{value:t[i]}).get?s=u.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):u.set&&(s=e.stylize("[Setter]","special")),Vi(r,i)||(a="["+i+"]"),s||(e.seen.indexOf(u.value)<0?(s=Mi(n)?Ai(e,u.value,null):Ai(e,u.value,n-1)).indexOf("\n")>-1&&(s=o?s.split("\n").map((function(e){return" "+e})).join("\n").substr(2):"\n"+s.split("\n").map((function(e){return" "+e})).join("\n")):s=e.stylize("[Circular]","special")),Ti(a)){if(o&&i.match(/^\d+$/))return s;(a=JSON.stringify(""+i)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(a=a.substr(1,a.length-2),a=e.stylize(a,"name")):(a=a.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),a=e.stylize(a,"string"))}return a+": "+s}function Si(e){return Array.isArray(e)}function ki(e){return"boolean"==typeof e}function Mi(e){return null===e}function Ci(e){return null==e}function xi(e){return"number"==typeof e}function Ri(e){return"string"==typeof e}function Oi(e){return"symbol"==typeof e}function Ti(e){return void 0===e}function Pi(e){return Li(e)&&"[object RegExp]"===Ui(e)}function Li(e){return"object"==typeof e&&null!==e}function Ii(e){return Li(e)&&"[object Date]"===Ui(e)}function Ni(e){return Li(e)&&("[object Error]"===Ui(e)||e instanceof Error)}function Di(e){return"function"==typeof e}function Bi(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e}function ji(e){return dr(e)}function Ui(e){return Object.prototype.toString.call(e)}function zi(e){return e<10?"0"+e.toString(10):e.toString(10)}yi.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},yi.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};var Fi=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function qi(){var e,t;console.log("%s - %s",(t=[zi((e=new Date).getHours()),zi(e.getMinutes()),zi(e.getSeconds())].join(":"),[e.getDate(),Fi[e.getMonth()],t].join(" ")),fi.apply(null,arguments))}function Wi(e,t){if(!t||!Li(t))return e;for(var n=Object.keys(t),r=n.length;r--;)e[n[r]]=t[n[r]];return e}function Vi(e,t){return Object.prototype.hasOwnProperty.call(e,t)}var Ki,Hi,$i={inherits:ci,_extend:Wi,log:qi,isBuffer:ji,isPrimitive:Bi,isFunction:Di,isError:Ni,isDate:Ii,isObject:Li,isRegExp:Pi,isUndefined:Ti,isSymbol:Oi,isString:Ri,isNumber:xi,isNullOrUndefined:Ci,isNull:Mi,isBoolean:ki,isArray:Si,inspect:yi,deprecate:hi,format:fi,debuglog:gi},Yi=pr(Object.freeze({__proto__:null,_extend:Wi,debuglog:gi,default:$i,deprecate:hi,format:fi,inherits:ci,inspect:yi,isArray:Si,isBoolean:ki,isBuffer:ji,isDate:Ii,isError:Ni,isFunction:Di,isNull:Mi,isNullOrUndefined:Ci,isNumber:xi,isObject:Li,isPrimitive:Bi,isRegExp:Pi,isString:Ri,isSymbol:Oi,isUndefined:Ti,log:qi}));function Gi(e,t){Zi(e,t),Qi(e)}function Qi(e){e._writableState&&!e._writableState.emitClose||e._readableState&&!e._readableState.emitClose||e.emit("close")}function Zi(e,t){e.emit("error",t)}var Xi={destroy:function(e,t){var n=this,r=this._readableState&&this._readableState.destroyed,i=this._writableState&&this._writableState.destroyed;return r||i?(t?t(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,Tr(Zi,this,e)):Tr(Zi,this,e)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,(function(e){!t&&e?n._writableState?n._writableState.errorEmitted?Tr(Qi,n):(n._writableState.errorEmitted=!0,Tr(Gi,n,e)):Tr(Gi,n,e):t?(Tr(Qi,n),t(e)):Tr(Qi,n)})),this)},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)},errorOrDestroy:function(e,t){var n=e._readableState,r=e._writableState;n&&n.autoDestroy||r&&r.autoDestroy?e.destroy(t):e.emit("error",t)}},Ji={},eo={};function to(e,t,n){n||(n=Error);var r=function(e){var n,r;function i(n,r,i){return e.call(this,function(e,n,r){return"string"==typeof t?t:t(e,n,r)}(n,r,i))||this}return r=e,(n=i).prototype=Object.create(r.prototype),n.prototype.constructor=n,n.__proto__=r,i}(n);r.prototype.name=n.name,r.prototype.code=e,eo[e]=r}function no(e,t){if(Array.isArray(e)){var n=e.length;return e=e.map((function(e){return String(e)})),n>2?"one of ".concat(t," ").concat(e.slice(0,n-1).join(", "),", or ")+e[n-1]:2===n?"one of ".concat(t," ").concat(e[0]," or ").concat(e[1]):"of ".concat(t," ").concat(e[0])}return"of ".concat(t," ").concat(String(e))}to("ERR_INVALID_OPT_VALUE",(function(e,t){return'The value "'+t+'" is invalid for option "'+e+'"'}),TypeError),to("ERR_INVALID_ARG_TYPE",(function(e,t,n){var r,i,o;if("string"==typeof t&&(i="not ",t.substr(0,4)===i)?(r="must not be",t=t.replace(/^not /,"")):r="must be",function(e,t,n){return(void 0===n||n>e.length)&&(n=e.length),e.substring(n-9,n)===t}(e," argument"))o="The ".concat(e," ").concat(r," ").concat(no(t,"type"));else{var a=function(e,t,n){return"number"!=typeof n&&(n=0),!(n+1>e.length)&&-1!==e.indexOf(".",n)}(e)?"property":"argument";o='The "'.concat(e,'" ').concat(a," ").concat(r," ").concat(no(t,"type"))}return o+". Received type ".concat(typeof n)}),TypeError),to("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),to("ERR_METHOD_NOT_IMPLEMENTED",(function(e){return"The "+e+" method is not implemented"})),to("ERR_STREAM_PREMATURE_CLOSE","Premature close"),to("ERR_STREAM_DESTROYED",(function(e){return"Cannot call "+e+" after a stream was destroyed"})),to("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),to("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),to("ERR_STREAM_WRITE_AFTER_END","write after end"),to("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),to("ERR_UNKNOWN_ENCODING",(function(e){return"Unknown encoding: "+e}),TypeError),to("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),Ji.codes=eo;var ro,io,oo,ao,so,uo,lo=Ji.codes.ERR_INVALID_OPT_VALUE,co={getHighWaterMark:function(e,t,n,r){var i=function(e,t,n){return null!=e.highWaterMark?e.highWaterMark:t?e[n]:null}(t,r,n);if(null!=i){if(!isFinite(i)||Math.floor(i)!==i||i<0)throw new lo(r?n:"highWaterMark",i);return Math.floor(i)}return e.objectMode?16:16384}};function fo(){if(io)return ro;function e(e){try{if(!hr.localStorage)return!1}catch(e){return!1}var t=hr.localStorage[e];return null!=t&&"true"===String(t).toLowerCase()}return io=1,ro=function(t,n){if(e("noDeprecation"))return t;var r=!1;return function(){if(!r){if(e("throwDeprecation"))throw new Error(n);e("traceDeprecation")?console.trace(n):console.warn(n),r=!0}return t.apply(this,arguments)}},ro}function ho(){if(ao)return oo;function e(e){var t=this;this.next=null,this.entry=null,this.finish=function(){!function(e,t){var n=e.entry;for(e.entry=null;n;){var r=n.callback;t.pendingcb--,r(void 0),n=n.next}t.corkedRequestsFree.next=e}(t,e)}}var t;ao=1,oo=A,A.WritableState=w;var n,r={deprecate:fo()},i=li,o=yr.Buffer,a=(void 0!==hr?hr:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){},s=Xi,u=co.getHighWaterMark,l=Ji.codes,c=l.ERR_INVALID_ARG_TYPE,d=l.ERR_METHOD_NOT_IMPLEMENTED,f=l.ERR_MULTIPLE_CALLBACK,h=l.ERR_STREAM_CANNOT_PIPE,p=l.ERR_STREAM_DESTROYED,m=l.ERR_STREAM_NULL_VALUES,g=l.ERR_STREAM_WRITE_AFTER_END,v=l.ERR_UNKNOWN_ENCODING,y=s.errorOrDestroy;function b(){}function w(n,r,i){t=t||po(),n=n||{},"boolean"!=typeof i&&(i=r instanceof t),this.objectMode=!!n.objectMode,i&&(this.objectMode=this.objectMode||!!n.writableObjectMode),this.highWaterMark=u(this,n,"writableHighWaterMark",i),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var o=!1===n.decodeStrings;this.decodeStrings=!o,this.defaultEncoding=n.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){!function(e,t){var n=e._writableState,r=n.sync,i=n.writecb;if("function"!=typeof i)throw new f;if(function(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}(n),t)!function(e,t,n,r,i){--t.pendingcb,n?(Tr(i,r),Tr(C,e,t),e._writableState.errorEmitted=!0,y(e,r)):(i(r),e._writableState.errorEmitted=!0,y(e,r),C(e,t))}(e,n,r,t,i);else{var o=k(n)||e.destroyed;o||n.corked||n.bufferProcessing||!n.bufferedRequest||S(e,n),r?Tr(E,e,n,o,i):E(e,n,o,i)}}(r,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!1!==n.emitClose,this.autoDestroy=!!n.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new e(this)}function A(e){var r=this instanceof(t=t||po());if(!r&&!n.call(A,this))return new A(e);this._writableState=new w(e,this,r),this.writable=!0,e&&("function"==typeof e.write&&(this._write=e.write),"function"==typeof e.writev&&(this._writev=e.writev),"function"==typeof e.destroy&&(this._destroy=e.destroy),"function"==typeof e.final&&(this._final=e.final)),i.call(this)}function _(e,t,n,r,i,o,a){t.writelen=r,t.writecb=a,t.writing=!0,t.sync=!0,t.destroyed?t.onwrite(new p("write")):n?e._writev(i,t.onwrite):e._write(i,o,t.onwrite),t.sync=!1}function E(e,t,n,r){n||function(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}(e,t),t.pendingcb--,r(),C(e,t)}function S(t,n){n.bufferProcessing=!0;var r=n.bufferedRequest;if(t._writev&&r&&r.next){var i=n.bufferedRequestCount,o=new Array(i),a=n.corkedRequestsFree;a.entry=r;for(var s=0,u=!0;r;)o[s]=r,r.isBuf||(u=!1),r=r.next,s+=1;o.allBuffers=u,_(t,n,!0,n.length,o,"",a.finish),n.pendingcb++,n.lastBufferedRequest=null,a.next?(n.corkedRequestsFree=a.next,a.next=null):n.corkedRequestsFree=new e(n),n.bufferedRequestCount=0}else{for(;r;){var l=r.chunk,c=r.encoding,d=r.callback;if(_(t,n,!1,n.objectMode?1:l.length,l,c,d),r=r.next,n.bufferedRequestCount--,n.writing)break}null===r&&(n.lastBufferedRequest=null)}n.bufferedRequest=r,n.bufferProcessing=!1}function k(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function M(e,t){e._final((function(n){t.pendingcb--,n&&y(e,n),t.prefinished=!0,e.emit("prefinish"),C(e,t)}))}function C(e,t){var n=k(t);if(n&&(function(e,t){t.prefinished||t.finalCalled||("function"!=typeof e._final||t.destroyed?(t.prefinished=!0,e.emit("prefinish")):(t.pendingcb++,t.finalCalled=!0,Tr(M,e,t)))}(e,t),0===t.pendingcb&&(t.finished=!0,e.emit("finish"),t.autoDestroy))){var r=e._readableState;(!r||r.autoDestroy&&r.endEmitted)&&e.destroy()}return n}return Jr(A,i),w.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(w.prototype,"buffer",{get:r.deprecate((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(n=Function.prototype[Symbol.hasInstance],Object.defineProperty(A,Symbol.hasInstance,{value:function(e){return!!n.call(this,e)||this===A&&e&&e._writableState instanceof w}})):n=function(e){return e instanceof this},A.prototype.pipe=function(){y(this,new h)},A.prototype.write=function(e,t,n){var r,i=this._writableState,s=!1,u=!i.objectMode&&(r=e,o.isBuffer(r)||r instanceof a);return u&&!o.isBuffer(e)&&(e=function(e){return o.from(e)}(e)),"function"==typeof t&&(n=t,t=null),u?t="buffer":t||(t=i.defaultEncoding),"function"!=typeof n&&(n=b),i.ending?function(e,t){var n=new g;y(e,n),Tr(t,n)}(this,n):(u||function(e,t,n,r){var i;return null===n?i=new m:"string"==typeof n||t.objectMode||(i=new c("chunk",["string","Buffer"],n)),!i||(y(e,i),Tr(r,i),!1)}(this,i,e,n))&&(i.pendingcb++,s=function(e,t,n,r,i,a){if(!n){var s=function(e,t,n){return e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=o.from(t,n)),t}(t,r,i);r!==s&&(n=!0,i="buffer",r=s)}var u=t.objectMode?1:r.length;t.length+=u;var l=t.length-1))throw new v(e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(A.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(A.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),A.prototype._write=function(e,t,n){n(new d("_write()"))},A.prototype._writev=null,A.prototype.end=function(e,t,n){var r=this._writableState;return"function"==typeof e?(n=e,e=null,t=null):"function"==typeof t&&(n=t,t=null),null!=e&&this.write(e,t),r.corked&&(r.corked=1,this.uncork()),r.ending||function(e,t,n){t.ending=!0,C(e,t),n&&(t.finished?Tr(n):e.once("finish",n)),t.ended=!0,e.writable=!1}(this,r,n),this},Object.defineProperty(A.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(A.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),A.prototype.destroy=s.destroy,A.prototype._undestroy=s.undestroy,A.prototype._destroy=function(e,t){t(e)},oo}function po(){if(uo)return so;uo=1;var e=Object.keys||function(e){var t=[];for(var n in e)t.push(n);return t};so=a;var t=Co(),n=ho();Jr(a,t);for(var r=e(n.prototype),i=0;i>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function i(e){var t=this.lastTotal-this.lastNeed,n=function(e,t){if(128!=(192&t[0]))return e.lastNeed=0,"�";if(e.lastNeed>1&&t.length>1){if(128!=(192&t[1]))return e.lastNeed=1,"�";if(e.lastNeed>2&&t.length>2&&128!=(192&t[2]))return e.lastNeed=2,"�"}}(this,e);return void 0!==n?n:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(e.copy(this.lastChar,t,0,e.length),void(this.lastNeed-=e.length))}function o(e,t){if((e.length-t)%2==0){var n=e.toString("utf16le",t);if(n){var r=n.charCodeAt(n.length-1);if(r>=55296&&r<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],n.slice(0,-1)}return n}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function a(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var n=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,n)}return t}function s(e,t){var n=(e.length-t)%3;return 0===n?e.toString("base64",t):(this.lastNeed=3-n,this.lastTotal=3,1===n?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-n))}function u(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function l(e){return e.toString(this.encoding)}function c(e){return e&&e.length?this.write(e):""}return go.StringDecoder=n,n.prototype.write=function(e){if(0===e.length)return"";var t,n;if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";n=this.lastNeed,this.lastNeed=0}else n=0;return n=0?(o>0&&(e.lastNeed=o-1),o):--i=0?(o>0&&(e.lastNeed=o-2),o):--i=0?(o>0&&(2===o?o=0:e.lastNeed=o-3),o):0}(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=n;var i=e.length-(n-this.lastNeed);return e.copy(this.lastChar,0,i),e.toString("utf8",t,i)},n.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length},go}var yo=Ji.codes.ERR_STREAM_PREMATURE_CLOSE;function bo(){}var wo,Ao,_o,Eo,So,ko,Mo=function e(t,n,r){if("function"==typeof n)return e(t,null,n);n||(n={}),r=function(e){var t=!1;return function(){if(!t){t=!0;for(var n=arguments.length,r=new Array(n),i=0;i0?this.tail.next=t:this.head=t,this.tail=t,++this.length}},{key:"unshift",value:function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length}},{key:"shift",value:function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(e){if(0===this.length)return"";for(var t=this.head,n=""+t.data;t=t.next;)n+=e+t.data;return n}},{key:"concat",value:function(e){if(0===this.length)return o.alloc(0);for(var t,n,r,i=o.allocUnsafe(e>>>0),a=this.head,s=0;a;)t=a.data,n=i,r=s,o.prototype.copy.call(t,n,r),s+=a.data.length,a=a.next;return i}},{key:"consume",value:function(e,t){var n;return ei.length?i.length:e;if(o===i.length?r+=i:r+=i.slice(0,e),0==(e-=o)){o===i.length?(++n,t.next?this.head=t.next:this.head=this.tail=null):(this.head=t,t.data=i.slice(o));break}++n}return this.length-=n,r}},{key:"_getBuffer",value:function(e){var t=o.allocUnsafe(e),n=this.head,r=1;for(n.data.copy(t),e-=n.data.length;n=n.next;){var i=n.data,a=e>i.length?i.length:e;if(i.copy(t,t.length-e,0,a),0==(e-=a)){a===i.length?(++r,n.next?this.head=n.next:this.head=this.tail=null):(this.head=n,n.data=i.slice(a));break}++r}return this.length-=r,t}},{key:s,value:function(e,n){return a(this,t(t({},n),{},{depth:0,customInspect:!1}))}}],i&&r(n.prototype,i),Object.defineProperty(n,"prototype",{writable:!1}),e}(),Ki}(),d=Xi,f=co.getHighWaterMark,h=Ji.codes,p=h.ERR_INVALID_ARG_TYPE,m=h.ERR_STREAM_PUSH_AFTER_EOF,g=h.ERR_METHOD_NOT_IMPLEMENTED,v=h.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;Jr(A,r);var y=d.errorOrDestroy,b=["error","close","destroy","pause","resume"];function w(t,n,r){e=e||po(),t=t||{},"boolean"!=typeof r&&(r=n instanceof e),this.objectMode=!!t.objectMode,r&&(this.objectMode=this.objectMode||!!t.readableObjectMode),this.highWaterMark=f(this,t,"readableHighWaterMark",r),this.buffer=new c,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=!1!==t.emitClose,this.autoDestroy=!!t.autoDestroy,this.destroyed=!1,this.defaultEncoding=t.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,t.encoding&&(s||(s=vo().StringDecoder),this.decoder=new s(t.encoding),this.encoding=t.encoding)}function A(t){if(e=e||po(),!(this instanceof A))return new A(t);var n=this instanceof e;this._readableState=new w(t,this,n),this.readable=!0,t&&("function"==typeof t.read&&(this._read=t.read),"function"==typeof t.destroy&&(this._destroy=t.destroy)),r.call(this)}function _(e,n,r,a,s){t("readableAddChunk",n);var u,l=e._readableState;if(null===n)l.reading=!1,function(e,n){if(t("onEofChunk"),!n.ended){if(n.decoder){var r=n.decoder.end();r&&r.length&&(n.buffer.push(r),n.length+=n.objectMode?1:r.length)}n.ended=!0,n.sync?M(e):(n.needReadable=!1,n.emittedReadable||(n.emittedReadable=!0,C(e)))}}(e,l);else if(s||(u=function(e,t){var n,r;return r=t,i.isBuffer(r)||r instanceof o||"string"==typeof t||void 0===t||e.objectMode||(n=new p("chunk",["string","Buffer","Uint8Array"],t)),n}(l,n)),u)y(e,u);else if(l.objectMode||n&&n.length>0)if("string"==typeof n||l.objectMode||Object.getPrototypeOf(n)===i.prototype||(n=function(e){return i.from(e)}(n)),a)l.endEmitted?y(e,new v):E(e,l,n,!0);else if(l.ended)y(e,new m);else{if(l.destroyed)return!1;l.reading=!1,l.decoder&&!r?(n=l.decoder.write(n),l.objectMode||0!==n.length?E(e,l,n,!1):x(e,l)):E(e,l,n,!1)}else a||(l.reading=!1,x(e,l));return!l.ended&&(l.lengtht.highWaterMark&&(t.highWaterMark=function(e){return e>=S?e=S:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function M(e){var n=e._readableState;t("emitReadable",n.needReadable,n.emittedReadable),n.needReadable=!1,n.emittedReadable||(t("emitReadable",n.flowing),n.emittedReadable=!0,Tr(C,e))}function C(e){var n=e._readableState;t("emitReadable_",n.destroyed,n.length,n.ended),n.destroyed||!n.length&&!n.ended||(e.emit("readable"),n.emittedReadable=!1),n.needReadable=!n.flowing&&!n.ended&&n.length<=n.highWaterMark,L(e)}function x(e,t){t.readingMore||(t.readingMore=!0,Tr(R,e,t))}function R(e,n){for(;!n.reading&&!n.ended&&(n.length0,t.resumeScheduled&&!t.paused?t.flowing=!0:e.listenerCount("data")>0&&e.resume()}function T(e){t("readable nexttick read 0"),e.read(0)}function P(e,n){t("resume",n.reading),n.reading||e.read(0),n.resumeScheduled=!1,e.emit("resume"),L(e),n.flowing&&!n.reading&&e.read(0)}function L(e){var n=e._readableState;for(t("flow",n.flowing);n.flowing&&null!==e.read(););}function I(e,t){return 0===t.length?null:(t.objectMode?n=t.buffer.shift():!e||e>=t.length?(n=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.first():t.buffer.concat(t.length),t.buffer.clear()):n=t.buffer.consume(e,t.decoder),n);var n}function N(e){var n=e._readableState;t("endReadable",n.endEmitted),n.endEmitted||(n.ended=!0,Tr(D,n,e))}function D(e,n){if(t("endReadableNT",e.endEmitted,e.length),!e.endEmitted&&0===e.length&&(e.endEmitted=!0,n.readable=!1,n.emit("end"),e.autoDestroy)){var r=n._writableState;(!r||r.autoDestroy&&r.finished)&&n.destroy()}}function B(e,t){for(var n=0,r=e.length;n=n.highWaterMark:n.length>0)||n.ended))return t("read: emitReadable",n.length,n.ended),0===n.length&&n.ended?N(this):M(this),null;if(0===(e=k(e,n))&&n.ended)return 0===n.length&&N(this),null;var i,o=n.needReadable;return t("need readable",o),(0===n.length||n.length-e0?I(e,n):null)?(n.needReadable=n.length<=n.highWaterMark,e=0):(n.length-=e,n.awaitDrain=0),0===n.length&&(n.ended||(n.needReadable=!0),r!==e&&n.ended&&N(this)),null!==i&&this.emit("data",i),i},A.prototype._read=function(e){y(this,new g("_read()"))},A.prototype.pipe=function(e,r){var i=this,o=this._readableState;switch(o.pipesCount){case 0:o.pipes=e;break;case 1:o.pipes=[o.pipes,e];break;default:o.pipes.push(e)}o.pipesCount+=1,t("pipe count=%d opts=%j",o.pipesCount,r);var a=r&&!1===r.end||e===Vr.stdout||e===Vr.stderr?p:s;function s(){t("onend"),e.end()}o.endEmitted?Tr(a):i.once("end",a),e.on("unpipe",(function n(r,a){t("onunpipe"),r===i&&a&&!1===a.hasUnpiped&&(a.hasUnpiped=!0,t("cleanup"),e.removeListener("close",f),e.removeListener("finish",h),e.removeListener("drain",u),e.removeListener("error",d),e.removeListener("unpipe",n),i.removeListener("end",s),i.removeListener("end",p),i.removeListener("data",c),l=!0,!o.awaitDrain||e._writableState&&!e._writableState.needDrain||u())}));var u=function(e){return function(){var r=e._readableState;t("pipeOnDrain",r.awaitDrain),r.awaitDrain&&r.awaitDrain--,0===r.awaitDrain&&n(e,"data")&&(r.flowing=!0,L(e))}}(i);e.on("drain",u);var l=!1;function c(n){t("ondata");var r=e.write(n);t("dest.write",r),!1===r&&((1===o.pipesCount&&o.pipes===e||o.pipesCount>1&&-1!==B(o.pipes,e))&&!l&&(t("false write response, pause",o.awaitDrain),o.awaitDrain++),i.pause())}function d(r){t("onerror",r),p(),e.removeListener("error",d),0===n(e,"error")&&y(e,r)}function f(){e.removeListener("finish",h),p()}function h(){t("onfinish"),e.removeListener("close",f),p()}function p(){t("unpipe"),i.unpipe(e)}return i.on("data",c),function(e,t,n){if("function"==typeof e.prependListener)return e.prependListener(t,n);e._events&&e._events[t]?Array.isArray(e._events[t])?e._events[t].unshift(n):e._events[t]=[n,e._events[t]]:e.on(t,n)}(e,"error",d),e.once("close",f),e.once("finish",h),e.emit("pipe",i),o.flowing||(t("pipe resume"),i.resume()),e},A.prototype.unpipe=function(e){var t=this._readableState,n={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,n)),this;if(!e){var r=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var o=0;o0,!1!==o.flowing&&this.resume()):"readable"===e&&(o.endEmitted||o.readableListening||(o.readableListening=o.needReadable=!0,o.flowing=!1,o.emittedReadable=!1,t("on readable",o.length,o.reading),o.length?M(this):o.reading||Tr(T,this))),i},A.prototype.addListener=A.prototype.on,A.prototype.removeListener=function(e,t){var n=r.prototype.removeListener.call(this,e,t);return"readable"===e&&Tr(O,this),n},A.prototype.removeAllListeners=function(e){var t=r.prototype.removeAllListeners.apply(this,arguments);return"readable"!==e&&void 0!==e||Tr(O,this),t},A.prototype.resume=function(){var e=this._readableState;return e.flowing||(t("resume"),e.flowing=!e.readableListening,function(e,t){t.resumeScheduled||(t.resumeScheduled=!0,Tr(P,e,t))}(this,e)),e.paused=!1,this},A.prototype.pause=function(){return t("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(t("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},A.prototype.wrap=function(e){var n=this,r=this._readableState,i=!1;for(var o in e.on("end",(function(){if(t("wrapped end"),r.decoder&&!r.ended){var e=r.decoder.end();e&&e.length&&n.push(e)}n.push(null)})),e.on("data",(function(o){t("wrapped data"),r.decoder&&(o=r.decoder.write(o)),r.objectMode&&null==o||(r.objectMode||o&&o.length)&&(n.push(o)||(i=!0,e.pause()))})),e)void 0===this[o]&&"function"==typeof e[o]&&(this[o]=function(t){return function(){return e[t].apply(e,arguments)}}(o));for(var a=0;a0,(function(e){r||(r=e),e&&o.forEach($o),a||(o.forEach($o),i(r))}))}));return t.reduce(Yo)};Go=ei.exports,(Go=ei.exports=Co()).Stream=Go,Go.Readable=Go,Go.Writable=ho(),Go.Duplex=po(),Go.Transform=xo,Go.PassThrough=zo,Go.finished=Mo,Go.pipeline=Qo;var Zo=ei.exports,Xo=$r.Buffer,Jo=Zo.Transform;function ea(e){Jo.call(this),this._block=Xo.allocUnsafe(e),this._blockSize=e,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}Jr(ea,Jo),ea.prototype._transform=function(e,t,n){var r=null;try{this.update(e,t)}catch(e){r=e}n(r)},ea.prototype._flush=function(e){var t=null;try{this.push(this.digest())}catch(e){t=e}e(t)},ea.prototype.update=function(e,t){if(function(e){if(!Xo.isBuffer(e)&&"string"!=typeof e)throw new TypeError("Data must be a string or a buffer")}(e),this._finalized)throw new Error("Digest already called");Xo.isBuffer(e)||(e=Xo.from(e,t));for(var n=this._block,r=0;this._blockOffset+e.length-r>=this._blockSize;){for(var i=this._blockOffset;i0;++o)this._length[o]+=a,(a=this._length[o]/4294967296|0)>0&&(this._length[o]-=4294967296*a);return this},ea.prototype._update=function(){throw new Error("_update is not implemented")},ea.prototype.digest=function(e){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var t=this._digest();void 0!==e&&(t=t.toString(e)),this._block.fill(0),this._blockOffset=0;for(var n=0;n<4;++n)this._length[n]=0;return t},ea.prototype._digest=function(){throw new Error("_digest is not implemented")};var ta=ea,na=Jr,ra=ta,ia=$r.Buffer,oa=new Array(16);function aa(){ra.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878}function sa(e,t){return e<>>32-t}function ua(e,t,n,r,i,o,a){return sa(e+(t&n|~t&r)+i+o|0,a)+t|0}function la(e,t,n,r,i,o,a){return sa(e+(t&r|n&~r)+i+o|0,a)+t|0}function ca(e,t,n,r,i,o,a){return sa(e+(t^n^r)+i+o|0,a)+t|0}function da(e,t,n,r,i,o,a){return sa(e+(n^(t|~r))+i+o|0,a)+t|0}na(aa,ra),aa.prototype._update=function(){for(var e=oa,t=0;t<16;++t)e[t]=this._block.readInt32LE(4*t);var n=this._a,r=this._b,i=this._c,o=this._d;n=ua(n,r,i,o,e[0],3614090360,7),o=ua(o,n,r,i,e[1],3905402710,12),i=ua(i,o,n,r,e[2],606105819,17),r=ua(r,i,o,n,e[3],3250441966,22),n=ua(n,r,i,o,e[4],4118548399,7),o=ua(o,n,r,i,e[5],1200080426,12),i=ua(i,o,n,r,e[6],2821735955,17),r=ua(r,i,o,n,e[7],4249261313,22),n=ua(n,r,i,o,e[8],1770035416,7),o=ua(o,n,r,i,e[9],2336552879,12),i=ua(i,o,n,r,e[10],4294925233,17),r=ua(r,i,o,n,e[11],2304563134,22),n=ua(n,r,i,o,e[12],1804603682,7),o=ua(o,n,r,i,e[13],4254626195,12),i=ua(i,o,n,r,e[14],2792965006,17),n=la(n,r=ua(r,i,o,n,e[15],1236535329,22),i,o,e[1],4129170786,5),o=la(o,n,r,i,e[6],3225465664,9),i=la(i,o,n,r,e[11],643717713,14),r=la(r,i,o,n,e[0],3921069994,20),n=la(n,r,i,o,e[5],3593408605,5),o=la(o,n,r,i,e[10],38016083,9),i=la(i,o,n,r,e[15],3634488961,14),r=la(r,i,o,n,e[4],3889429448,20),n=la(n,r,i,o,e[9],568446438,5),o=la(o,n,r,i,e[14],3275163606,9),i=la(i,o,n,r,e[3],4107603335,14),r=la(r,i,o,n,e[8],1163531501,20),n=la(n,r,i,o,e[13],2850285829,5),o=la(o,n,r,i,e[2],4243563512,9),i=la(i,o,n,r,e[7],1735328473,14),n=ca(n,r=la(r,i,o,n,e[12],2368359562,20),i,o,e[5],4294588738,4),o=ca(o,n,r,i,e[8],2272392833,11),i=ca(i,o,n,r,e[11],1839030562,16),r=ca(r,i,o,n,e[14],4259657740,23),n=ca(n,r,i,o,e[1],2763975236,4),o=ca(o,n,r,i,e[4],1272893353,11),i=ca(i,o,n,r,e[7],4139469664,16),r=ca(r,i,o,n,e[10],3200236656,23),n=ca(n,r,i,o,e[13],681279174,4),o=ca(o,n,r,i,e[0],3936430074,11),i=ca(i,o,n,r,e[3],3572445317,16),r=ca(r,i,o,n,e[6],76029189,23),n=ca(n,r,i,o,e[9],3654602809,4),o=ca(o,n,r,i,e[12],3873151461,11),i=ca(i,o,n,r,e[15],530742520,16),n=da(n,r=ca(r,i,o,n,e[2],3299628645,23),i,o,e[0],4096336452,6),o=da(o,n,r,i,e[7],1126891415,10),i=da(i,o,n,r,e[14],2878612391,15),r=da(r,i,o,n,e[5],4237533241,21),n=da(n,r,i,o,e[12],1700485571,6),o=da(o,n,r,i,e[3],2399980690,10),i=da(i,o,n,r,e[10],4293915773,15),r=da(r,i,o,n,e[1],2240044497,21),n=da(n,r,i,o,e[8],1873313359,6),o=da(o,n,r,i,e[15],4264355552,10),i=da(i,o,n,r,e[6],2734768916,15),r=da(r,i,o,n,e[13],1309151649,21),n=da(n,r,i,o,e[4],4149444226,6),o=da(o,n,r,i,e[11],3174756917,10),i=da(i,o,n,r,e[2],718787259,15),r=da(r,i,o,n,e[9],3951481745,21),this._a=this._a+n|0,this._b=this._b+r|0,this._c=this._c+i|0,this._d=this._d+o|0},aa.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var e=ia.allocUnsafe(16);return e.writeInt32LE(this._a,0),e.writeInt32LE(this._b,4),e.writeInt32LE(this._c,8),e.writeInt32LE(this._d,12),e};var fa=aa,ha=yr.Buffer,pa=Jr,ma=ta,ga=new Array(16),va=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],ya=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],ba=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],wa=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11],Aa=[0,1518500249,1859775393,2400959708,2840853838],_a=[1352829926,1548603684,1836072691,2053994217,0];function Ea(){ma.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520}function Sa(e,t){return e<>>32-t}function ka(e,t,n,r,i,o,a,s){return Sa(e+(t^n^r)+o+a|0,s)+i|0}function Ma(e,t,n,r,i,o,a,s){return Sa(e+(t&n|~t&r)+o+a|0,s)+i|0}function Ca(e,t,n,r,i,o,a,s){return Sa(e+((t|~n)^r)+o+a|0,s)+i|0}function xa(e,t,n,r,i,o,a,s){return Sa(e+(t&r|n&~r)+o+a|0,s)+i|0}function Ra(e,t,n,r,i,o,a,s){return Sa(e+(t^(n|~r))+o+a|0,s)+i|0}pa(Ea,ma),Ea.prototype._update=function(){for(var e=ga,t=0;t<16;++t)e[t]=this._block.readInt32LE(4*t);for(var n=0|this._a,r=0|this._b,i=0|this._c,o=0|this._d,a=0|this._e,s=0|this._a,u=0|this._b,l=0|this._c,c=0|this._d,d=0|this._e,f=0;f<80;f+=1){var h,p;f<16?(h=ka(n,r,i,o,a,e[va[f]],Aa[0],ba[f]),p=Ra(s,u,l,c,d,e[ya[f]],_a[0],wa[f])):f<32?(h=Ma(n,r,i,o,a,e[va[f]],Aa[1],ba[f]),p=xa(s,u,l,c,d,e[ya[f]],_a[1],wa[f])):f<48?(h=Ca(n,r,i,o,a,e[va[f]],Aa[2],ba[f]),p=Ca(s,u,l,c,d,e[ya[f]],_a[2],wa[f])):f<64?(h=xa(n,r,i,o,a,e[va[f]],Aa[3],ba[f]),p=Ma(s,u,l,c,d,e[ya[f]],_a[3],wa[f])):(h=Ra(n,r,i,o,a,e[va[f]],Aa[4],ba[f]),p=ka(s,u,l,c,d,e[ya[f]],_a[4],wa[f])),n=a,a=o,o=Sa(i,10),i=r,r=h,s=d,d=c,c=Sa(l,10),l=u,u=p}var m=this._b+i+c|0;this._b=this._c+o+d|0,this._c=this._d+a+s|0,this._d=this._e+n+u|0,this._e=this._a+r+l|0,this._a=m},Ea.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var e=ha.alloc?ha.alloc(20):new ha(20);return e.writeInt32LE(this._a,0),e.writeInt32LE(this._b,4),e.writeInt32LE(this._c,8),e.writeInt32LE(this._d,12),e.writeInt32LE(this._e,16),e};var Oa=Ea,Ta={exports:{}},Pa=$r.Buffer;function La(e,t){this._block=Pa.alloc(e),this._finalSize=t,this._blockSize=e,this._len=0}La.prototype.update=function(e,t){"string"==typeof e&&(t=t||"utf8",e=Pa.from(e,t));for(var n=this._block,r=this._blockSize,i=e.length,o=this._len,a=0;a=this._finalSize&&(this._update(this._block),this._block.fill(0));var n=8*this._len;if(n<=4294967295)this._block.writeUInt32BE(n,this._blockSize-4);else{var r=(4294967295&n)>>>0,i=(n-r)/4294967296;this._block.writeUInt32BE(i,this._blockSize-8),this._block.writeUInt32BE(r,this._blockSize-4)}this._update(this._block);var o=this._hash();return e?o.toString(e):o},La.prototype._update=function(){throw new Error("_update must be implemented by subclass")};var Ia=La,Na=Jr,Da=Ia,Ba=$r.Buffer,ja=[1518500249,1859775393,-1894007588,-899497514],Ua=new Array(80);function za(){this.init(),this._w=Ua,Da.call(this,64,56)}function Fa(e){return e<<30|e>>>2}function qa(e,t,n,r){return 0===e?t&n|~t&r:2===e?t&n|t&r|n&r:t^n^r}Na(za,Da),za.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},za.prototype._update=function(e){for(var t,n=this._w,r=0|this._a,i=0|this._b,o=0|this._c,a=0|this._d,s=0|this._e,u=0;u<16;++u)n[u]=e.readInt32BE(4*u);for(;u<80;++u)n[u]=n[u-3]^n[u-8]^n[u-14]^n[u-16];for(var l=0;l<80;++l){var c=~~(l/20),d=0|((t=r)<<5|t>>>27)+qa(c,i,o,a)+s+n[l]+ja[c];s=a,a=o,o=Fa(i),i=r,r=d}this._a=r+this._a|0,this._b=i+this._b|0,this._c=o+this._c|0,this._d=a+this._d|0,this._e=s+this._e|0},za.prototype._hash=function(){var e=Ba.allocUnsafe(20);return e.writeInt32BE(0|this._a,0),e.writeInt32BE(0|this._b,4),e.writeInt32BE(0|this._c,8),e.writeInt32BE(0|this._d,12),e.writeInt32BE(0|this._e,16),e};var Wa=za,Va=Jr,Ka=Ia,Ha=$r.Buffer,$a=[1518500249,1859775393,-1894007588,-899497514],Ya=new Array(80);function Ga(){this.init(),this._w=Ya,Ka.call(this,64,56)}function Qa(e){return e<<5|e>>>27}function Za(e){return e<<30|e>>>2}function Xa(e,t,n,r){return 0===e?t&n|~t&r:2===e?t&n|t&r|n&r:t^n^r}Va(Ga,Ka),Ga.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},Ga.prototype._update=function(e){for(var t,n=this._w,r=0|this._a,i=0|this._b,o=0|this._c,a=0|this._d,s=0|this._e,u=0;u<16;++u)n[u]=e.readInt32BE(4*u);for(;u<80;++u)n[u]=(t=n[u-3]^n[u-8]^n[u-14]^n[u-16])<<1|t>>>31;for(var l=0;l<80;++l){var c=~~(l/20),d=Qa(r)+Xa(c,i,o,a)+s+n[l]+$a[c]|0;s=a,a=o,o=Za(i),i=r,r=d}this._a=r+this._a|0,this._b=i+this._b|0,this._c=o+this._c|0,this._d=a+this._d|0,this._e=s+this._e|0},Ga.prototype._hash=function(){var e=Ha.allocUnsafe(20);return e.writeInt32BE(0|this._a,0),e.writeInt32BE(0|this._b,4),e.writeInt32BE(0|this._c,8),e.writeInt32BE(0|this._d,12),e.writeInt32BE(0|this._e,16),e};var Ja=Ga,es=Jr,ts=Ia,ns=$r.Buffer,rs=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],is=new Array(64);function os(){this.init(),this._w=is,ts.call(this,64,56)}function as(e,t,n){return n^e&(t^n)}function ss(e,t,n){return e&t|n&(e|t)}function us(e){return(e>>>2|e<<30)^(e>>>13|e<<19)^(e>>>22|e<<10)}function ls(e){return(e>>>6|e<<26)^(e>>>11|e<<21)^(e>>>25|e<<7)}function cs(e){return(e>>>7|e<<25)^(e>>>18|e<<14)^e>>>3}es(os,ts),os.prototype.init=function(){return this._a=1779033703,this._b=3144134277,this._c=1013904242,this._d=2773480762,this._e=1359893119,this._f=2600822924,this._g=528734635,this._h=1541459225,this},os.prototype._update=function(e){for(var t,n=this._w,r=0|this._a,i=0|this._b,o=0|this._c,a=0|this._d,s=0|this._e,u=0|this._f,l=0|this._g,c=0|this._h,d=0;d<16;++d)n[d]=e.readInt32BE(4*d);for(;d<64;++d)n[d]=0|(((t=n[d-2])>>>17|t<<15)^(t>>>19|t<<13)^t>>>10)+n[d-7]+cs(n[d-15])+n[d-16];for(var f=0;f<64;++f){var h=c+ls(s)+as(s,u,l)+rs[f]+n[f]|0,p=us(r)+ss(r,i,o)|0;c=l,l=u,u=s,s=a+h|0,a=o,o=i,i=r,r=h+p|0}this._a=r+this._a|0,this._b=i+this._b|0,this._c=o+this._c|0,this._d=a+this._d|0,this._e=s+this._e|0,this._f=u+this._f|0,this._g=l+this._g|0,this._h=c+this._h|0},os.prototype._hash=function(){var e=ns.allocUnsafe(32);return e.writeInt32BE(this._a,0),e.writeInt32BE(this._b,4),e.writeInt32BE(this._c,8),e.writeInt32BE(this._d,12),e.writeInt32BE(this._e,16),e.writeInt32BE(this._f,20),e.writeInt32BE(this._g,24),e.writeInt32BE(this._h,28),e};var ds=os,fs=Jr,hs=ds,ps=Ia,ms=$r.Buffer,gs=new Array(64);function vs(){this.init(),this._w=gs,ps.call(this,64,56)}fs(vs,hs),vs.prototype.init=function(){return this._a=3238371032,this._b=914150663,this._c=812702999,this._d=4144912697,this._e=4290775857,this._f=1750603025,this._g=1694076839,this._h=3204075428,this},vs.prototype._hash=function(){var e=ms.allocUnsafe(28);return e.writeInt32BE(this._a,0),e.writeInt32BE(this._b,4),e.writeInt32BE(this._c,8),e.writeInt32BE(this._d,12),e.writeInt32BE(this._e,16),e.writeInt32BE(this._f,20),e.writeInt32BE(this._g,24),e};var ys=vs,bs=Jr,ws=Ia,As=$r.Buffer,_s=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591],Es=new Array(160);function Ss(){this.init(),this._w=Es,ws.call(this,128,112)}function ks(e,t,n){return n^e&(t^n)}function Ms(e,t,n){return e&t|n&(e|t)}function Cs(e,t){return(e>>>28|t<<4)^(t>>>2|e<<30)^(t>>>7|e<<25)}function xs(e,t){return(e>>>14|t<<18)^(e>>>18|t<<14)^(t>>>9|e<<23)}function Rs(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^e>>>7}function Os(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^(e>>>7|t<<25)}function Ts(e,t){return(e>>>19|t<<13)^(t>>>29|e<<3)^e>>>6}function Ps(e,t){return(e>>>19|t<<13)^(t>>>29|e<<3)^(e>>>6|t<<26)}function Ls(e,t){return e>>>0>>0?1:0}bs(Ss,ws),Ss.prototype.init=function(){return this._ah=1779033703,this._bh=3144134277,this._ch=1013904242,this._dh=2773480762,this._eh=1359893119,this._fh=2600822924,this._gh=528734635,this._hh=1541459225,this._al=4089235720,this._bl=2227873595,this._cl=4271175723,this._dl=1595750129,this._el=2917565137,this._fl=725511199,this._gl=4215389547,this._hl=327033209,this},Ss.prototype._update=function(e){for(var t=this._w,n=0|this._ah,r=0|this._bh,i=0|this._ch,o=0|this._dh,a=0|this._eh,s=0|this._fh,u=0|this._gh,l=0|this._hh,c=0|this._al,d=0|this._bl,f=0|this._cl,h=0|this._dl,p=0|this._el,m=0|this._fl,g=0|this._gl,v=0|this._hl,y=0;y<32;y+=2)t[y]=e.readInt32BE(4*y),t[y+1]=e.readInt32BE(4*y+4);for(;y<160;y+=2){var b=t[y-30],w=t[y-30+1],A=Rs(b,w),_=Os(w,b),E=Ts(b=t[y-4],w=t[y-4+1]),S=Ps(w,b),k=t[y-14],M=t[y-14+1],C=t[y-32],x=t[y-32+1],R=_+M|0,O=A+k+Ls(R,_)|0;O=(O=O+E+Ls(R=R+S|0,S)|0)+C+Ls(R=R+x|0,x)|0,t[y]=O,t[y+1]=R}for(var T=0;T<160;T+=2){O=t[T],R=t[T+1];var P=Ms(n,r,i),L=Ms(c,d,f),I=Cs(n,c),N=Cs(c,n),D=xs(a,p),B=xs(p,a),j=_s[T],U=_s[T+1],z=ks(a,s,u),F=ks(p,m,g),q=v+B|0,W=l+D+Ls(q,v)|0;W=(W=(W=W+z+Ls(q=q+F|0,F)|0)+j+Ls(q=q+U|0,U)|0)+O+Ls(q=q+R|0,R)|0;var V=N+L|0,K=I+P+Ls(V,N)|0;l=u,v=g,u=s,g=m,s=a,m=p,a=o+W+Ls(p=h+q|0,h)|0,o=i,h=f,i=r,f=d,r=n,d=c,n=W+K+Ls(c=q+V|0,q)|0}this._al=this._al+c|0,this._bl=this._bl+d|0,this._cl=this._cl+f|0,this._dl=this._dl+h|0,this._el=this._el+p|0,this._fl=this._fl+m|0,this._gl=this._gl+g|0,this._hl=this._hl+v|0,this._ah=this._ah+n+Ls(this._al,c)|0,this._bh=this._bh+r+Ls(this._bl,d)|0,this._ch=this._ch+i+Ls(this._cl,f)|0,this._dh=this._dh+o+Ls(this._dl,h)|0,this._eh=this._eh+a+Ls(this._el,p)|0,this._fh=this._fh+s+Ls(this._fl,m)|0,this._gh=this._gh+u+Ls(this._gl,g)|0,this._hh=this._hh+l+Ls(this._hl,v)|0},Ss.prototype._hash=function(){var e=As.allocUnsafe(64);function t(t,n,r){e.writeInt32BE(t,r),e.writeInt32BE(n,r+4)}return t(this._ah,this._al,0),t(this._bh,this._bl,8),t(this._ch,this._cl,16),t(this._dh,this._dl,24),t(this._eh,this._el,32),t(this._fh,this._fl,40),t(this._gh,this._gl,48),t(this._hh,this._hl,56),e};var Is=Ss,Ns=Jr,Ds=Is,Bs=Ia,js=$r.Buffer,Us=new Array(160);function zs(){this.init(),this._w=Us,Bs.call(this,128,112)}Ns(zs,Ds),zs.prototype.init=function(){return this._ah=3418070365,this._bh=1654270250,this._ch=2438529370,this._dh=355462360,this._eh=1731405415,this._fh=2394180231,this._gh=3675008525,this._hh=1203062813,this._al=3238371032,this._bl=914150663,this._cl=812702999,this._dl=4144912697,this._el=4290775857,this._fl=1750603025,this._gl=1694076839,this._hl=3204075428,this},zs.prototype._hash=function(){var e=js.allocUnsafe(48);function t(t,n,r){e.writeInt32BE(t,r),e.writeInt32BE(n,r+4)}return t(this._ah,this._al,0),t(this._bh,this._bl,8),t(this._ch,this._cl,16),t(this._dh,this._dl,24),t(this._eh,this._el,32),t(this._fh,this._fl,40),e};var Fs=zs,qs=Ta.exports=function(e){e=e.toLowerCase();var t=qs[e];if(!t)throw new Error(e+" is not supported (we accept pull requests)");return new t};qs.sha=Wa,qs.sha1=Ja,qs.sha224=ys,qs.sha256=ds,qs.sha384=Fs,qs.sha512=Is;var Ws=Ta.exports;function Vs(){this.head=null,this.tail=null,this.length=0}Vs.prototype.push=function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length},Vs.prototype.unshift=function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length},Vs.prototype.shift=function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}},Vs.prototype.clear=function(){this.head=this.tail=null,this.length=0},Vs.prototype.join=function(e){if(0===this.length)return"";for(var t=this.head,n=""+t.data;t=t.next;)n+=e+t.data;return n},Vs.prototype.concat=function(e){if(0===this.length)return xn.alloc(0);if(1===this.length)return this.head.data;for(var t=xn.allocUnsafe(e>>>0),n=this.head,r=0;n;)n.data.copy(t,r),r+=n.data.length,n=n.next;return t};var Ks=xn.isEncoding||function(e){switch(e&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function Hs(e){switch(this.encoding=(e||"utf8").toLowerCase().replace(/[-_]/,""),function(e){if(e&&!Ks(e))throw new Error("Unknown encoding: "+e)}(e),this.encoding){case"utf8":this.surrogateSize=3;break;case"ucs2":case"utf16le":this.surrogateSize=2,this.detectIncompleteChar=Ys;break;case"base64":this.surrogateSize=3,this.detectIncompleteChar=Gs;break;default:return void(this.write=$s)}this.charBuffer=new xn(6),this.charReceived=0,this.charLength=0}function $s(e){return e.toString(this.encoding)}function Ys(e){this.charReceived=e.length%2,this.charLength=this.charReceived?2:0}function Gs(e){this.charReceived=e.length%3,this.charLength=this.charReceived?3:0}Hs.prototype.write=function(e){for(var t="";this.charLength;){var n=e.length>=this.charLength-this.charReceived?this.charLength-this.charReceived:e.length;if(e.copy(this.charBuffer,this.charReceived,0,n),this.charReceived+=n,this.charReceived=55296&&r<=56319)){if(this.charReceived=this.charLength=0,0===e.length)return t;break}this.charLength+=this.surrogateSize,t=""}this.detectIncompleteChar(e);var r,i=e.length;if(this.charLength&&(e.copy(this.charBuffer,0,e.length-this.charReceived,i),i-=this.charReceived),i=(t+=e.toString(this.encoding,0,i)).length-1,(r=t.charCodeAt(i))>=55296&&r<=56319){var o=this.surrogateSize;return this.charLength+=o,this.charReceived+=o,this.charBuffer.copy(this.charBuffer,o,0,o),e.copy(this.charBuffer,0,0,o),t.substring(0,i)}return t},Hs.prototype.detectIncompleteChar=function(e){for(var t=e.length>=3?3:e.length;t>0;t--){var n=e[e.length-t];if(1==t&&n>>5==6){this.charLength=2;break}if(t<=2&&n>>4==14){this.charLength=3;break}if(t<=3&&n>>3==30){this.charLength=4;break}}this.charReceived=t},Hs.prototype.end=function(e){var t="";if(e&&e.length&&(t=this.write(e)),this.charReceived){var n=this.charReceived,r=this.charBuffer,i=this.encoding;t+=r.slice(0,n).toString(i)}return t};var Qs=Object.freeze({__proto__:null,StringDecoder:Hs});Js.ReadableState=Xs;var Zs=gi("stream");function Xs(e,t){e=e||{},this.objectMode=!!e.objectMode,t instanceof Cu&&(this.objectMode=this.objectMode||!!e.readableObjectMode);var n=e.highWaterMark,r=this.objectMode?16:16384;this.highWaterMark=n||0===n?n:r,this.highWaterMark=~~this.highWaterMark,this.buffer=new Vs,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.ranOut=!1,this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(this.decoder=new Hs(e.encoding),this.encoding=e.encoding)}function Js(e){if(!(this instanceof Js))return new Js(e);this._readableState=new Xs(e,this),this.readable=!0,e&&"function"==typeof e.read&&(this._read=e.read),ni.call(this)}function eu(e,t,n,r,i){var o=function(e,t){var n=null;return dr(t)||"string"==typeof t||null==t||e.objectMode||(n=new TypeError("Invalid non-string/buffer chunk")),n}(t,n);if(o)e.emit("error",o);else if(null===n)t.reading=!1,function(e,t){if(!t.ended){if(t.decoder){var n=t.decoder.end();n&&n.length&&(t.buffer.push(n),t.length+=t.objectMode?1:n.length)}t.ended=!0,ru(e)}}(e,t);else if(t.objectMode||n&&n.length>0)if(t.ended&&!i){var a=new Error("stream.push() after EOF");e.emit("error",a)}else if(t.endEmitted&&i){var s=new Error("stream.unshift() after end event");e.emit("error",s)}else{var u;!t.decoder||i||r||(n=t.decoder.write(n),u=!t.objectMode&&0===n.length),i||(t.reading=!1),u||(t.flowing&&0===t.length&&!t.sync?(e.emit("data",n),e.read(0)):(t.length+=t.objectMode?1:n.length,i?t.buffer.unshift(n):t.buffer.push(n),t.needReadable&&ru(e))),function(e,t){t.readingMore||(t.readingMore=!0,Tr(ou,e,t))}(e,t)}else i||(t.reading=!1);return function(e){return!e.ended&&(e.needReadable||e.lengtht.highWaterMark&&(t.highWaterMark=function(e){return e>=tu?e=tu:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function ru(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(Zs("emitReadable",t.flowing),t.emittedReadable=!0,t.sync?Tr(iu,e):iu(e))}function iu(e){Zs("emit readable"),e.emit("readable"),uu(e)}function ou(e,t){for(var n=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length=t.length?(n=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.head.data:t.buffer.concat(t.length),t.buffer.clear()):n=function(e,t,n){var r;return eo.length?o.length:e;if(a===o.length?i+=o:i+=o.slice(0,e),0==(e-=a)){a===o.length?(++r,n.next?t.head=n.next:t.head=t.tail=null):(t.head=n,n.data=o.slice(a));break}++r}return t.length-=r,i}(e,t):function(e,t){var n=xn.allocUnsafe(e),r=t.head,i=1;for(r.data.copy(n),e-=r.data.length;r=r.next;){var o=r.data,a=e>o.length?o.length:e;if(o.copy(n,n.length-e,0,a),0==(e-=a)){a===o.length?(++i,r.next?t.head=r.next:t.head=t.tail=null):(t.head=r,r.data=o.slice(a));break}++i}return t.length-=i,n}(e,t),r}(e,t.buffer,t.decoder),n);var n}function cu(e){var t=e._readableState;if(t.length>0)throw new Error('"endReadable()" called on non-empty stream');t.endEmitted||(t.ended=!0,Tr(du,t,e))}function du(e,t){e.endEmitted||0!==e.length||(e.endEmitted=!0,t.readable=!1,t.emit("end"))}function fu(e,t){for(var n=0,r=e.length;n=t.highWaterMark||t.ended))return Zs("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?cu(this):ru(this),null;if(0===(e=nu(e,t))&&t.ended)return 0===t.length&&cu(this),null;var r,i=t.needReadable;return Zs("need readable",i),(0===t.length||t.length-e0?lu(e,t):null)?(t.needReadable=!0,e=0):t.length-=e,0===t.length&&(t.ended||(t.needReadable=!0),n!==e&&t.ended&&cu(this)),null!==r&&this.emit("data",r),r},Js.prototype._read=function(e){this.emit("error",new Error("not implemented"))},Js.prototype.pipe=function(e,t){var n=this,r=this._readableState;switch(r.pipesCount){case 0:r.pipes=e;break;case 1:r.pipes=[r.pipes,e];break;default:r.pipes.push(e)}r.pipesCount+=1,Zs("pipe count=%d opts=%j",r.pipesCount,t);var i=t&&!1===t.end?l:a;function o(e){Zs("onunpipe"),e===n&&l()}function a(){Zs("onend"),e.end()}r.endEmitted?Tr(i):n.once("end",i),e.on("unpipe",o);var s=function(e){return function(){var t=e._readableState;Zs("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&e.listeners("data").length&&(t.flowing=!0,uu(e))}}(n);e.on("drain",s);var u=!1;function l(){Zs("cleanup"),e.removeListener("close",h),e.removeListener("finish",p),e.removeListener("drain",s),e.removeListener("error",f),e.removeListener("unpipe",o),n.removeListener("end",a),n.removeListener("end",l),n.removeListener("data",d),u=!0,!r.awaitDrain||e._writableState&&!e._writableState.needDrain||s()}var c=!1;function d(t){Zs("ondata"),c=!1,!1!==e.write(t)||c||((1===r.pipesCount&&r.pipes===e||r.pipesCount>1&&-1!==fu(r.pipes,e))&&!u&&(Zs("false write response, pause",n._readableState.awaitDrain),n._readableState.awaitDrain++,c=!0),n.pause())}function f(t){Zs("onerror",t),m(),e.removeListener("error",f),0===e.listeners("error").length&&e.emit("error",t)}function h(){e.removeListener("finish",p),m()}function p(){Zs("onfinish"),e.removeListener("close",h),m()}function m(){Zs("unpipe"),n.unpipe(e)}return n.on("data",d),function(e,t,n){if("function"==typeof e.prependListener)return e.prependListener(t,n);e._events&&e._events[t]?Array.isArray(e._events[t])?e._events[t].unshift(n):e._events[t]=[n,e._events[t]]:e.on(t,n)}(e,"error",f),e.once("close",h),e.once("finish",p),e.emit("pipe",n),r.flowing||(Zs("pipe resume"),n.resume()),e},Js.prototype.unpipe=function(e){var t=this._readableState;if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this)),this;if(!e){var n=t.pipes,r=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var i=0;i-1))throw new TypeError("Unknown encoding: "+e);return this._writableState.defaultEncoding=e,this},gu.prototype._write=function(e,t,n){n(new Error("not implemented"))},gu.prototype._writev=null,gu.prototype.end=function(e,t,n){var r=this._writableState;"function"==typeof e?(n=e,e=null,t=null):"function"==typeof t&&(n=t,t=null),null!=e&&this.write(e,t),r.corked&&(r.corked=1,this.uncork()),r.ending||r.finished||function(e,t,n){t.ending=!0,_u(e,t),n&&(t.finished?Tr(n):e.once("finish",n)),t.ended=!0,e.writable=!1}(this,r,n)},ci(Cu,Js);for(var Su=Object.keys(gu.prototype),ku=0;kuXu?t=e(t):t.lengthn?t=("rmd160"===e?new sl:ul(e)).update(t).digest():t.lengthml||t!=t)throw new TypeError("Bad key length")},vl=hr.process&&hr.process.browser?"utf-8":hr.process&&hr.process.version?parseInt(Vr.version.split(".")[0].slice(1),10)>=6?"utf-8":"binary":"utf-8",yl=$r.Buffer,bl=function(e,t,n){if(yl.isBuffer(e))return e;if("string"==typeof e)return yl.from(e,t);if(ArrayBuffer.isView(e))return yl.from(e.buffer);throw new TypeError(n+" must be a string, a Buffer, a typed array or a DataView")},wl=tl,Al=Oa,_l=Ws,El=$r.Buffer,Sl=gl,kl=vl,Ml=bl,Cl=El.alloc(128),xl={md5:16,sha1:20,sha224:28,sha256:32,sha384:48,sha512:64,rmd160:20,ripemd160:20};function Rl(e,t,n){var r=function(e){return"rmd160"===e||"ripemd160"===e?function(e){return(new Al).update(e).digest()}:"md5"===e?wl:function(t){return _l(e).update(t).digest()}}(e),i="sha512"===e||"sha384"===e?128:64;t.length>i?t=r(t):t.length>>0},writeUInt32BE:function(e,t,n){e[0+n]=t>>>24,e[1+n]=t>>>16&255,e[2+n]=t>>>8&255,e[3+n]=255&t},ip:function(e,t,n,r){for(var i=0,o=0,a=6;a>=0;a-=2){for(var s=0;s<=24;s+=8)i<<=1,i|=t>>>s+a&1;for(s=0;s<=24;s+=8)i<<=1,i|=e>>>s+a&1}for(a=6;a>=0;a-=2){for(s=1;s<=25;s+=8)o<<=1,o|=t>>>s+a&1;for(s=1;s<=25;s+=8)o<<=1,o|=e>>>s+a&1}n[r+0]=i>>>0,n[r+1]=o>>>0},rip:function(e,t,n,r){for(var i=0,o=0,a=0;a<4;a++)for(var s=24;s>=0;s-=8)i<<=1,i|=t>>>s+a&1,i<<=1,i|=e>>>s+a&1;for(a=4;a<8;a++)for(s=24;s>=0;s-=8)o<<=1,o|=t>>>s+a&1,o<<=1,o|=e>>>s+a&1;n[r+0]=i>>>0,n[r+1]=o>>>0},pc1:function(e,t,n,r){for(var i=0,o=0,a=7;a>=5;a--){for(var s=0;s<=24;s+=8)i<<=1,i|=t>>s+a&1;for(s=0;s<=24;s+=8)i<<=1,i|=e>>s+a&1}for(s=0;s<=24;s+=8)i<<=1,i|=t>>s+a&1;for(a=1;a<=3;a++){for(s=0;s<=24;s+=8)o<<=1,o|=t>>s+a&1;for(s=0;s<=24;s+=8)o<<=1,o|=e>>s+a&1}for(s=0;s<=24;s+=8)o<<=1,o|=e>>s+a&1;n[r+0]=i>>>0,n[r+1]=o>>>0},r28shl:function(e,t){return e<>>28-t}},Hl=[14,11,17,4,27,23,25,0,13,22,7,18,5,9,16,24,2,20,12,21,1,8,15,26,15,4,25,19,9,1,26,16,5,11,23,8,12,7,17,0,22,3,10,14,6,20,27,24];Kl.pc2=function(e,t,n,r){for(var i=0,o=0,a=Hl.length>>>1,s=0;s>>Hl[s]&1;for(s=a;s>>Hl[s]&1;n[r+0]=i>>>0,n[r+1]=o>>>0},Kl.expand=function(e,t,n){var r=0,i=0;r=(1&e)<<5|e>>>27;for(var o=23;o>=15;o-=4)r<<=6,r|=e>>>o&63;for(o=11;o>=3;o-=4)i|=e>>>o&63,i<<=6;i|=(31&e)<<1|e>>>31,t[n+0]=r>>>0,t[n+1]=i>>>0};var $l=[14,0,4,15,13,7,1,4,2,14,15,2,11,13,8,1,3,10,10,6,6,12,12,11,5,9,9,5,0,3,7,8,4,15,1,12,14,8,8,2,13,4,6,9,2,1,11,7,15,5,12,11,9,3,7,14,3,10,10,0,5,6,0,13,15,3,1,13,8,4,14,7,6,15,11,2,3,8,4,14,9,12,7,0,2,1,13,10,12,6,0,9,5,11,10,5,0,13,14,8,7,10,11,1,10,3,4,15,13,4,1,2,5,11,8,6,12,7,6,12,9,0,3,5,2,14,15,9,10,13,0,7,9,0,14,9,6,3,3,4,15,6,5,10,1,2,13,8,12,5,7,14,11,12,4,11,2,15,8,1,13,1,6,10,4,13,9,0,8,6,15,9,3,8,0,7,11,4,1,15,2,14,12,3,5,11,10,5,14,2,7,12,7,13,13,8,14,11,3,5,0,6,6,15,9,0,10,3,1,4,2,7,8,2,5,12,11,1,12,10,4,14,15,9,10,3,6,15,9,0,0,6,12,10,11,1,7,13,13,8,15,9,1,4,3,5,14,11,5,12,2,7,8,2,4,14,2,14,12,11,4,2,1,12,7,4,10,7,11,13,6,1,8,5,5,0,3,15,15,10,13,3,0,9,14,8,9,6,4,11,2,8,1,12,11,7,10,1,13,14,7,2,8,13,15,6,9,15,12,0,5,9,6,10,3,4,0,5,14,3,12,10,1,15,10,4,15,2,9,7,2,12,6,9,8,5,0,6,13,1,3,13,4,14,14,0,7,11,5,3,11,8,9,4,14,3,15,2,5,12,2,9,8,5,12,15,3,10,7,11,0,14,4,1,10,7,1,6,13,0,11,8,6,13,4,13,11,0,2,11,14,7,15,4,0,9,8,1,13,10,3,14,12,3,9,5,7,12,5,2,10,15,6,8,1,6,1,6,4,11,11,13,13,8,12,1,3,4,7,10,14,7,10,9,15,5,6,0,8,15,0,14,5,2,9,3,2,12,13,1,2,15,8,13,4,8,6,10,15,3,11,7,1,4,10,12,9,5,3,6,14,11,5,0,0,14,12,9,7,2,7,2,11,1,4,14,1,7,9,4,12,10,14,8,2,13,0,15,6,12,10,9,13,0,15,3,3,5,5,6,8,11];Kl.substitute=function(e,t){for(var n=0,r=0;r<4;r++)n<<=4,n|=$l[64*r+(e>>>18-6*r&63)];for(r=0;r<4;r++)n<<=4,n|=$l[256+64*r+(t>>>18-6*r&63)];return n>>>0};var Yl=[16,25,12,11,3,20,4,15,31,17,9,6,27,14,1,22,30,24,8,18,0,5,29,23,13,19,2,26,10,21,28,7];Kl.permute=function(e){for(var t=0,n=0;n>>Yl[n]&1;return t>>>0},Kl.padSplit=function(e,t,n){for(var r=e.toString(2);r.length0;r--)t+=this._buffer(e,t),n+=this._flushBuffer(i,n);return t+=this._buffer(e,t),i},Xl.prototype.final=function(e){var t,n;return e&&(t=this.update(e)),n="encrypt"===this.type?this._finalEncrypt():this._finalDecrypt(),t?t.concat(n):n},Xl.prototype._pad=function(e,t){if(0===t)return!1;for(;t>>1];n=tc.r28shl(n,o),r=tc.r28shl(r,o),tc.pc2(n,r,e.keys,i)}},ic.prototype._update=function(e,t,n,r){var i=this._desState,o=tc.readUInt32BE(e,t),a=tc.readUInt32BE(e,t+4);tc.ip(o,a,i.tmp,0),o=i.tmp[0],a=i.tmp[1],"encrypt"===this.type?this._encrypt(i,o,a,i.tmp,0):this._decrypt(i,o,a,i.tmp,0),o=i.tmp[0],a=i.tmp[1],tc.writeUInt32BE(n,o,r),tc.writeUInt32BE(n,a,r+4)},ic.prototype._pad=function(e,t){if(!1===this.padding)return!1;for(var n=e.length-t,r=t;r>>0,o=d}tc.rip(a,o,r,i)},ic.prototype._decrypt=function(e,t,n,r,i){for(var o=n,a=t,s=e.keys.length-2;s>=0;s-=2){var u=e.keys[s],l=e.keys[s+1];tc.expand(o,e.tmp,0),u^=e.tmp[0],l^=e.tmp[1];var c=tc.substitute(u,l),d=o;o=(a^tc.permute(c))>>>0,a=d}tc.rip(o,a,r,i)};var sc={},uc=Gl,lc=Jr,cc={};function dc(e){uc.equal(e.length,8,"Invalid IV length"),this.iv=new Array(8);for(var t=0;t>o%8,e._prev=zc(e._prev,n?r:i);return a}function zc(e,t){var n=e.length,r=-1,i=jc.allocUnsafe(e.length);for(e=jc.concat([e,jc.from([t])]);++r>7;return i}Bc.encrypt=function(e,t,n){for(var r=t.length,i=jc.allocUnsafe(r),o=-1;++o>>24]^c[p>>>16&255]^d[m>>>8&255]^f[255&g]^t[v++],a=l[p>>>24]^c[m>>>16&255]^d[g>>>8&255]^f[255&h]^t[v++],s=l[m>>>24]^c[g>>>16&255]^d[h>>>8&255]^f[255&p]^t[v++],u=l[g>>>24]^c[h>>>16&255]^d[p>>>8&255]^f[255&m]^t[v++],h=o,p=a,m=s,g=u;return o=(r[h>>>24]<<24|r[p>>>16&255]<<16|r[m>>>8&255]<<8|r[255&g])^t[v++],a=(r[p>>>24]<<24|r[m>>>16&255]<<16|r[g>>>8&255]<<8|r[255&h])^t[v++],s=(r[m>>>24]<<24|r[g>>>16&255]<<16|r[h>>>8&255]<<8|r[255&p])^t[v++],u=(r[g>>>24]<<24|r[h>>>16&255]<<16|r[p>>>8&255]<<8|r[255&m])^t[v++],[o>>>=0,a>>>=0,s>>>=0,u>>>=0]}var ad=[0,1,2,4,8,16,32,64,128,27,54],sd=function(){for(var e=new Array(256),t=0;t<256;t++)e[t]=t<128?t<<1:t<<1^283;for(var n=[],r=[],i=[[],[],[],[]],o=[[],[],[],[]],a=0,s=0,u=0;u<256;++u){var l=s^s<<1^s<<2^s<<3^s<<4;l=l>>>8^255&l^99,n[a]=l,r[l]=a;var c=e[a],d=e[c],f=e[d],h=257*e[l]^16843008*l;i[0][a]=h<<24|h>>>8,i[1][a]=h<<16|h>>>16,i[2][a]=h<<8|h>>>24,i[3][a]=h,h=16843009*f^65537*d^257*c^16843008*a,o[0][l]=h<<24|h>>>8,o[1][l]=h<<16|h>>>16,o[2][l]=h<<8|h>>>24,o[3][l]=h,0===a?a=s=1:(a=c^e[e[e[f^c]]],s^=e[e[s]])}return{SBOX:n,INV_SBOX:r,SUB_MIX:i,INV_SUB_MIX:o}}();function ud(e){this._key=rd(e),this._reset()}ud.blockSize=16,ud.keySize=32,ud.prototype.blockSize=ud.blockSize,ud.prototype.keySize=ud.keySize,ud.prototype._reset=function(){for(var e=this._key,t=e.length,n=t+6,r=4*(n+1),i=[],o=0;o>>24,a=sd.SBOX[a>>>24]<<24|sd.SBOX[a>>>16&255]<<16|sd.SBOX[a>>>8&255]<<8|sd.SBOX[255&a],a^=ad[o/t|0]<<24):t>6&&o%t==4&&(a=sd.SBOX[a>>>24]<<24|sd.SBOX[a>>>16&255]<<16|sd.SBOX[a>>>8&255]<<8|sd.SBOX[255&a]),i[o]=i[o-t]^a}for(var s=[],u=0;u>>24]]^sd.INV_SUB_MIX[1][sd.SBOX[c>>>16&255]]^sd.INV_SUB_MIX[2][sd.SBOX[c>>>8&255]]^sd.INV_SUB_MIX[3][sd.SBOX[255&c]]}this._nRounds=n,this._keySchedule=i,this._invKeySchedule=s},ud.prototype.encryptBlockRaw=function(e){return od(e=rd(e),this._keySchedule,sd.SUB_MIX,sd.SBOX,this._nRounds)},ud.prototype.encryptBlock=function(e){var t=this.encryptBlockRaw(e),n=nd.allocUnsafe(16);return n.writeUInt32BE(t[0],0),n.writeUInt32BE(t[1],4),n.writeUInt32BE(t[2],8),n.writeUInt32BE(t[3],12),n},ud.prototype.decryptBlock=function(e){var t=(e=rd(e))[1];e[1]=e[3],e[3]=t;var n=od(e,this._invKeySchedule,sd.INV_SUB_MIX,sd.INV_SBOX,this._nRounds),r=nd.allocUnsafe(16);return r.writeUInt32BE(n[0],0),r.writeUInt32BE(n[3],4),r.writeUInt32BE(n[2],8),r.writeUInt32BE(n[1],12),r},ud.prototype.scrub=function(){id(this._keySchedule),id(this._invKeySchedule),id(this._key)},td.AES=ud;var ld=$r.Buffer,cd=ld.alloc(16,0);function dd(e){var t=ld.allocUnsafe(16);return t.writeUInt32BE(e[0]>>>0,0),t.writeUInt32BE(e[1]>>>0,4),t.writeUInt32BE(e[2]>>>0,8),t.writeUInt32BE(e[3]>>>0,12),t}function fd(e){this.h=e,this.state=ld.alloc(16,0),this.cache=ld.allocUnsafe(0)}fd.prototype.ghash=function(e){for(var t=-1;++t0;t--)r[t]=r[t]>>>1|(1&r[t-1])<<31;r[0]=r[0]>>>1,n&&(r[0]=r[0]^225<<24)}this.state=dd(i)},fd.prototype.update=function(e){var t;for(this.cache=ld.concat([this.cache,e]);this.cache.length>=16;)t=this.cache.slice(0,16),this.cache=this.cache.slice(16),this.ghash(t)},fd.prototype.final=function(e,t){return this.cache.length&&this.ghash(ld.concat([this.cache,cd],16)),this.ghash(dd([0,e,0,t])),this.state};var hd=fd,pd=td,md=$r.Buffer,gd=Fu,vd=hd,yd=xc,bd=Kc;function wd(e,t,n,r){gd.call(this);var i=md.alloc(4,0);this._cipher=new pd.AES(t);var o=this._cipher.encryptBlock(i);this._ghash=new vd(o),n=function(e,t,n){if(12===t.length)return e._finID=md.concat([t,md.from([0,0,0,1])]),md.concat([t,md.from([0,0,0,2])]);var r=new vd(n),i=t.length,o=i%16;r.update(t),o&&(o=16-o,r.update(md.alloc(o,0))),r.update(md.alloc(8,0));var a=8*i,s=md.alloc(8);s.writeUIntBE(a,0,8),r.update(s),e._finID=r.state;var u=md.from(e._finID);return bd(u),u}(this,n,o),this._prev=md.from(n),this._cache=md.allocUnsafe(0),this._secCache=md.allocUnsafe(0),this._decrypt=r,this._alen=0,this._len=0,this._mode=e,this._authTag=null,this._called=!1}Jr(wd,gd),wd.prototype._update=function(e){if(!this._called&&this._alen){var t=16-this._alen%16;t<16&&(t=md.alloc(t,0),this._ghash.update(t))}this._called=!0;var n=this._mode.encrypt(this,e);return this._decrypt?this._ghash.update(e):this._ghash.update(n),this._len+=e.length,n},wd.prototype._final=function(){if(this._decrypt&&!this._authTag)throw new Error("Unsupported state or unable to authenticate data");var e=yd(this._ghash.final(8*this._alen,8*this._len),this._cipher.encryptBlock(this._finID));if(this._decrypt&&function(e,t){var n=0;e.length!==t.length&&n++;for(var r=Math.min(e.length,t.length),i=0;i0||r>0;){var u=new xd;u.update(s),u.update(e),t&&u.update(t),s=u.digest();var l=0;if(i>0){var c=o.length-i;l=Math.min(i,s.length),s.copy(o,c,0,l),i-=l}if(l0){var d=a.length-r,f=Math.min(r,s.length-l);s.copy(a,d,l,l+f),r-=f}}return s.fill(0),{key:o,iv:a}},Od=ed,Td=Ad,Pd=$r.Buffer,Ld=Md,Id=Fu,Nd=td,Dd=Rd;function Bd(e,t,n){Id.call(this),this._cache=new Ud,this._cipher=new Nd.AES(t),this._prev=Pd.from(n),this._mode=e,this._autopadding=!0}Jr(Bd,Id),Bd.prototype._update=function(e){var t,n;this._cache.add(e);for(var r=[];t=this._cache.get();)n=this._mode.encrypt(this,t),r.push(n);return Pd.concat(r)};var jd=Pd.alloc(16,16);function Ud(){this.cache=Pd.allocUnsafe(0)}function zd(e,t,n){var r=Od[e.toLowerCase()];if(!r)throw new TypeError("invalid suite type");if("string"==typeof t&&(t=Pd.from(t)),t.length!==r.key/8)throw new TypeError("invalid key length "+t.length);if("string"==typeof n&&(n=Pd.from(n)),"GCM"!==r.mode&&n.length!==r.iv)throw new TypeError("invalid iv length "+n.length);return"stream"===r.type?new Ld(r.module,t,n):"auth"===r.type?new Td(r.module,t,n):new Bd(r.module,t,n)}Bd.prototype._final=function(){var e=this._cache.flush();if(this._autopadding)return e=this._mode.encrypt(this,e),this._cipher.scrub(),e;if(!e.equals(jd))throw this._cipher.scrub(),new Error("data not multiple of block length")},Bd.prototype.setAutoPadding=function(e){return this._autopadding=!!e,this},Ud.prototype.add=function(e){this.cache=Pd.concat([this.cache,e])},Ud.prototype.get=function(){if(this.cache.length>15){var e=this.cache.slice(0,16);return this.cache=this.cache.slice(16),e}return null},Ud.prototype.flush=function(){for(var e=16-this.cache.length,t=Pd.allocUnsafe(e),n=-1;++n16)throw new Error("unable to decrypt data");for(var n=-1;++n16)return t=this.cache.slice(0,16),this.cache=this.cache.slice(16),t}else if(this.cache.length>=16)return t=this.cache.slice(0,16),this.cache=this.cache.slice(16),t;return null},Qd.prototype.flush=function(){if(this.cache.length)return this.cache},Fd.createDecipher=function(e,t){var n=Vd[e.toLowerCase()];if(!n)throw new TypeError("invalid suite type");var r=Yd(t,!1,n.key,n.iv);return Zd(e,r.key,r.iv)},Fd.createDecipheriv=Zd;var Xd=Mc,Jd=Fd,ef=Qc;kc.createCipher=kc.Cipher=Xd.createCipher,kc.createCipheriv=kc.Cipheriv=Xd.createCipheriv,kc.createDecipher=kc.Decipher=Jd.createDecipher,kc.createDecipheriv=kc.Decipheriv=Jd.createDecipheriv,kc.listCiphers=kc.getCiphers=function(){return Object.keys(ef)};var tf={};!function(e){e["des-ecb"]={key:8,iv:0},e["des-cbc"]=e.des={key:8,iv:8},e["des-ede3-cbc"]=e.des3={key:24,iv:8},e["des-ede3"]={key:24,iv:0},e["des-ede-cbc"]={key:16,iv:8},e["des-ede"]={key:16,iv:0}}(tf);var nf=Ec,rf=kc,of=ed,af=tf,sf=Rd;function uf(e,t,n){if(e=e.toLowerCase(),of[e])return rf.createCipheriv(e,t,n);if(af[e])return new nf({key:t,iv:n,mode:e});throw new TypeError("invalid suite type")}function lf(e,t,n){if(e=e.toLowerCase(),of[e])return rf.createDecipheriv(e,t,n);if(af[e])return new nf({key:t,iv:n,mode:e,decrypt:!0});throw new TypeError("invalid suite type")}Wl.createCipher=Wl.Cipher=function(e,t){var n,r;if(e=e.toLowerCase(),of[e])n=of[e].key,r=of[e].iv;else{if(!af[e])throw new TypeError("invalid suite type");n=8*af[e].key,r=af[e].iv}var i=sf(t,!1,n,r);return uf(e,i.key,i.iv)},Wl.createCipheriv=Wl.Cipheriv=uf,Wl.createDecipher=Wl.Decipher=function(e,t){var n,r;if(e=e.toLowerCase(),of[e])n=of[e].key,r=of[e].iv;else{if(!af[e])throw new TypeError("invalid suite type");n=8*af[e].key,r=af[e].iv}var i=sf(t,!1,n,r);return lf(e,i.key,i.iv)},Wl.createDecipheriv=Wl.Decipheriv=lf,Wl.listCiphers=Wl.getCiphers=function(){return Object.keys(af).concat(rf.getCiphers())};var cf={},df={exports:{}};!function(e,t){function n(e,t){if(!e)throw new Error(t||"Assertion failed")}function r(e,t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}function i(e,t,n){if(i.isBN(e))return e;this.negative=0,this.words=null,this.length=0,this.red=null,null!==e&&("le"!==t&&"be"!==t||(n=t,t=10),this._init(e||0,t||10,n||"be"))}var o;"object"==typeof e?e.exports=i:t.BN=i,i.BN=i,i.wordSize=26;try{o="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:yr.Buffer}catch(e){}function a(e,t){var n=e.charCodeAt(t);return n>=65&&n<=70?n-55:n>=97&&n<=102?n-87:n-48&15}function s(e,t,n){var r=a(e,n);return n-1>=t&&(r|=a(e,n-1)<<4),r}function u(e,t,n,r){for(var i=0,o=Math.min(e.length,n),a=t;a=49?s-49+10:s>=17?s-17+10:s}return i}i.isBN=function(e){return e instanceof i||null!==e&&"object"==typeof e&&e.constructor.wordSize===i.wordSize&&Array.isArray(e.words)},i.max=function(e,t){return e.cmp(t)>0?e:t},i.min=function(e,t){return e.cmp(t)<0?e:t},i.prototype._init=function(e,t,r){if("number"==typeof e)return this._initNumber(e,t,r);if("object"==typeof e)return this._initArray(e,t,r);"hex"===t&&(t=16),n(t===(0|t)&&t>=2&&t<=36);var i=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&(i++,this.negative=1),i=0;i-=3)a=e[i]|e[i-1]<<8|e[i-2]<<16,this.words[o]|=a<>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);else if("le"===r)for(i=0,o=0;i>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);return this.strip()},i.prototype._parseHex=function(e,t,n){this.length=Math.ceil((e.length-t)/6),this.words=new Array(this.length);for(var r=0;r=t;r-=2)i=s(e,t,r)<=18?(o-=18,a+=1,this.words[a]|=i>>>26):o+=8;else for(r=(e.length-t)%2==0?t+1:t;r=18?(o-=18,a+=1,this.words[a]|=i>>>26):o+=8;this.strip()},i.prototype._parseBase=function(e,t,n){this.words=[0],this.length=1;for(var r=0,i=1;i<=67108863;i*=t)r++;r--,i=i/t|0;for(var o=e.length-n,a=o%r,s=Math.min(o,o-a)+n,l=0,c=n;c1&&0===this.words[this.length-1];)this.length--;return this._normSign()},i.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},i.prototype.inspect=function(){return(this.red?""};var l=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],c=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],d=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function f(e,t,n){n.negative=t.negative^e.negative;var r=e.length+t.length|0;n.length=r,r=r-1|0;var i=0|e.words[0],o=0|t.words[0],a=i*o,s=67108863&a,u=a/67108864|0;n.words[0]=s;for(var l=1;l>>26,d=67108863&u,f=Math.min(l,t.length-1),h=Math.max(0,l-e.length+1);h<=f;h++){var p=l-h|0;c+=(a=(i=0|e.words[p])*(o=0|t.words[h])+d)/67108864|0,d=67108863&a}n.words[l]=0|d,u=0|c}return 0!==u?n.words[l]=0|u:n.length--,n.strip()}i.prototype.toString=function(e,t){var r;if(t=0|t||1,16===(e=e||10)||"hex"===e){r="";for(var i=0,o=0,a=0;a>>24-i&16777215)||a!==this.length-1?l[6-u.length]+u+r:u+r,(i+=2)>=26&&(i-=26,a--)}for(0!==o&&(r=o.toString(16)+r);r.length%t!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}if(e===(0|e)&&e>=2&&e<=36){var f=c[e],h=d[e];r="";var p=this.clone();for(p.negative=0;!p.isZero();){var m=p.modn(h).toString(e);r=(p=p.idivn(h)).isZero()?m+r:l[f-m.length]+m+r}for(this.isZero()&&(r="0"+r);r.length%t!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}n(!1,"Base should be between 2 and 36")},i.prototype.toNumber=function(){var e=this.words[0];return 2===this.length?e+=67108864*this.words[1]:3===this.length&&1===this.words[2]?e+=4503599627370496+67108864*this.words[1]:this.length>2&&n(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},i.prototype.toJSON=function(){return this.toString(16)},i.prototype.toBuffer=function(e,t){return n(void 0!==o),this.toArrayLike(o,e,t)},i.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},i.prototype.toArrayLike=function(e,t,r){var i=this.byteLength(),o=r||Math.max(1,i);n(i<=o,"byte array longer than desired length"),n(o>0,"Requested array length <= 0"),this.strip();var a,s,u="le"===t,l=new e(o),c=this.clone();if(u){for(s=0;!c.isZero();s++)a=c.andln(255),c.iushrn(8),l[s]=a;for(;s=4096&&(n+=13,t>>>=13),t>=64&&(n+=7,t>>>=7),t>=8&&(n+=4,t>>>=4),t>=2&&(n+=2,t>>>=2),n+t},i.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,n=0;return 0==(8191&t)&&(n+=13,t>>>=13),0==(127&t)&&(n+=7,t>>>=7),0==(15&t)&&(n+=4,t>>>=4),0==(3&t)&&(n+=2,t>>>=2),0==(1&t)&&n++,n},i.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return 26*(this.length-1)+t},i.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;te.length?this.clone().ior(e):e.clone().ior(this)},i.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},i.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var n=0;ne.length?this.clone().iand(e):e.clone().iand(this)},i.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},i.prototype.iuxor=function(e){var t,n;this.length>e.length?(t=this,n=e):(t=e,n=this);for(var r=0;re.length?this.clone().ixor(e):e.clone().ixor(this)},i.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},i.prototype.inotn=function(e){n("number"==typeof e&&e>=0);var t=0|Math.ceil(e/26),r=e%26;this._expand(t),r>0&&t--;for(var i=0;i0&&(this.words[i]=~this.words[i]&67108863>>26-r),this.strip()},i.prototype.notn=function(e){return this.clone().inotn(e)},i.prototype.setn=function(e,t){n("number"==typeof e&&e>=0);var r=e/26|0,i=e%26;return this._expand(r+1),this.words[r]=t?this.words[r]|1<e.length?(n=this,r=e):(n=e,r=this);for(var i=0,o=0;o>>26;for(;0!==i&&o>>26;if(this.length=n.length,0!==i)this.words[this.length]=i,this.length++;else if(n!==this)for(;oe.length?this.clone().iadd(e):e.clone().iadd(this)},i.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var t=this.iadd(e);return e.negative=1,t._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var n,r,i=this.cmp(e);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(n=this,r=e):(n=e,r=this);for(var o=0,a=0;a>26,this.words[a]=67108863&t;for(;0!==o&&a>26,this.words[a]=67108863&t;if(0===o&&a>>13,h=0|a[1],p=8191&h,m=h>>>13,g=0|a[2],v=8191&g,y=g>>>13,b=0|a[3],w=8191&b,A=b>>>13,_=0|a[4],E=8191&_,S=_>>>13,k=0|a[5],M=8191&k,C=k>>>13,x=0|a[6],R=8191&x,O=x>>>13,T=0|a[7],P=8191&T,L=T>>>13,I=0|a[8],N=8191&I,D=I>>>13,B=0|a[9],j=8191&B,U=B>>>13,z=0|s[0],F=8191&z,q=z>>>13,W=0|s[1],V=8191&W,K=W>>>13,H=0|s[2],$=8191&H,Y=H>>>13,G=0|s[3],Q=8191&G,Z=G>>>13,X=0|s[4],J=8191&X,ee=X>>>13,te=0|s[5],ne=8191&te,re=te>>>13,ie=0|s[6],oe=8191&ie,ae=ie>>>13,se=0|s[7],ue=8191&se,le=se>>>13,ce=0|s[8],de=8191&ce,fe=ce>>>13,he=0|s[9],pe=8191&he,me=he>>>13;n.negative=e.negative^t.negative,n.length=19;var ge=(l+(r=Math.imul(d,F))|0)+((8191&(i=(i=Math.imul(d,q))+Math.imul(f,F)|0))<<13)|0;l=((o=Math.imul(f,q))+(i>>>13)|0)+(ge>>>26)|0,ge&=67108863,r=Math.imul(p,F),i=(i=Math.imul(p,q))+Math.imul(m,F)|0,o=Math.imul(m,q);var ve=(l+(r=r+Math.imul(d,V)|0)|0)+((8191&(i=(i=i+Math.imul(d,K)|0)+Math.imul(f,V)|0))<<13)|0;l=((o=o+Math.imul(f,K)|0)+(i>>>13)|0)+(ve>>>26)|0,ve&=67108863,r=Math.imul(v,F),i=(i=Math.imul(v,q))+Math.imul(y,F)|0,o=Math.imul(y,q),r=r+Math.imul(p,V)|0,i=(i=i+Math.imul(p,K)|0)+Math.imul(m,V)|0,o=o+Math.imul(m,K)|0;var ye=(l+(r=r+Math.imul(d,$)|0)|0)+((8191&(i=(i=i+Math.imul(d,Y)|0)+Math.imul(f,$)|0))<<13)|0;l=((o=o+Math.imul(f,Y)|0)+(i>>>13)|0)+(ye>>>26)|0,ye&=67108863,r=Math.imul(w,F),i=(i=Math.imul(w,q))+Math.imul(A,F)|0,o=Math.imul(A,q),r=r+Math.imul(v,V)|0,i=(i=i+Math.imul(v,K)|0)+Math.imul(y,V)|0,o=o+Math.imul(y,K)|0,r=r+Math.imul(p,$)|0,i=(i=i+Math.imul(p,Y)|0)+Math.imul(m,$)|0,o=o+Math.imul(m,Y)|0;var be=(l+(r=r+Math.imul(d,Q)|0)|0)+((8191&(i=(i=i+Math.imul(d,Z)|0)+Math.imul(f,Q)|0))<<13)|0;l=((o=o+Math.imul(f,Z)|0)+(i>>>13)|0)+(be>>>26)|0,be&=67108863,r=Math.imul(E,F),i=(i=Math.imul(E,q))+Math.imul(S,F)|0,o=Math.imul(S,q),r=r+Math.imul(w,V)|0,i=(i=i+Math.imul(w,K)|0)+Math.imul(A,V)|0,o=o+Math.imul(A,K)|0,r=r+Math.imul(v,$)|0,i=(i=i+Math.imul(v,Y)|0)+Math.imul(y,$)|0,o=o+Math.imul(y,Y)|0,r=r+Math.imul(p,Q)|0,i=(i=i+Math.imul(p,Z)|0)+Math.imul(m,Q)|0,o=o+Math.imul(m,Z)|0;var we=(l+(r=r+Math.imul(d,J)|0)|0)+((8191&(i=(i=i+Math.imul(d,ee)|0)+Math.imul(f,J)|0))<<13)|0;l=((o=o+Math.imul(f,ee)|0)+(i>>>13)|0)+(we>>>26)|0,we&=67108863,r=Math.imul(M,F),i=(i=Math.imul(M,q))+Math.imul(C,F)|0,o=Math.imul(C,q),r=r+Math.imul(E,V)|0,i=(i=i+Math.imul(E,K)|0)+Math.imul(S,V)|0,o=o+Math.imul(S,K)|0,r=r+Math.imul(w,$)|0,i=(i=i+Math.imul(w,Y)|0)+Math.imul(A,$)|0,o=o+Math.imul(A,Y)|0,r=r+Math.imul(v,Q)|0,i=(i=i+Math.imul(v,Z)|0)+Math.imul(y,Q)|0,o=o+Math.imul(y,Z)|0,r=r+Math.imul(p,J)|0,i=(i=i+Math.imul(p,ee)|0)+Math.imul(m,J)|0,o=o+Math.imul(m,ee)|0;var Ae=(l+(r=r+Math.imul(d,ne)|0)|0)+((8191&(i=(i=i+Math.imul(d,re)|0)+Math.imul(f,ne)|0))<<13)|0;l=((o=o+Math.imul(f,re)|0)+(i>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,r=Math.imul(R,F),i=(i=Math.imul(R,q))+Math.imul(O,F)|0,o=Math.imul(O,q),r=r+Math.imul(M,V)|0,i=(i=i+Math.imul(M,K)|0)+Math.imul(C,V)|0,o=o+Math.imul(C,K)|0,r=r+Math.imul(E,$)|0,i=(i=i+Math.imul(E,Y)|0)+Math.imul(S,$)|0,o=o+Math.imul(S,Y)|0,r=r+Math.imul(w,Q)|0,i=(i=i+Math.imul(w,Z)|0)+Math.imul(A,Q)|0,o=o+Math.imul(A,Z)|0,r=r+Math.imul(v,J)|0,i=(i=i+Math.imul(v,ee)|0)+Math.imul(y,J)|0,o=o+Math.imul(y,ee)|0,r=r+Math.imul(p,ne)|0,i=(i=i+Math.imul(p,re)|0)+Math.imul(m,ne)|0,o=o+Math.imul(m,re)|0;var _e=(l+(r=r+Math.imul(d,oe)|0)|0)+((8191&(i=(i=i+Math.imul(d,ae)|0)+Math.imul(f,oe)|0))<<13)|0;l=((o=o+Math.imul(f,ae)|0)+(i>>>13)|0)+(_e>>>26)|0,_e&=67108863,r=Math.imul(P,F),i=(i=Math.imul(P,q))+Math.imul(L,F)|0,o=Math.imul(L,q),r=r+Math.imul(R,V)|0,i=(i=i+Math.imul(R,K)|0)+Math.imul(O,V)|0,o=o+Math.imul(O,K)|0,r=r+Math.imul(M,$)|0,i=(i=i+Math.imul(M,Y)|0)+Math.imul(C,$)|0,o=o+Math.imul(C,Y)|0,r=r+Math.imul(E,Q)|0,i=(i=i+Math.imul(E,Z)|0)+Math.imul(S,Q)|0,o=o+Math.imul(S,Z)|0,r=r+Math.imul(w,J)|0,i=(i=i+Math.imul(w,ee)|0)+Math.imul(A,J)|0,o=o+Math.imul(A,ee)|0,r=r+Math.imul(v,ne)|0,i=(i=i+Math.imul(v,re)|0)+Math.imul(y,ne)|0,o=o+Math.imul(y,re)|0,r=r+Math.imul(p,oe)|0,i=(i=i+Math.imul(p,ae)|0)+Math.imul(m,oe)|0,o=o+Math.imul(m,ae)|0;var Ee=(l+(r=r+Math.imul(d,ue)|0)|0)+((8191&(i=(i=i+Math.imul(d,le)|0)+Math.imul(f,ue)|0))<<13)|0;l=((o=o+Math.imul(f,le)|0)+(i>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,r=Math.imul(N,F),i=(i=Math.imul(N,q))+Math.imul(D,F)|0,o=Math.imul(D,q),r=r+Math.imul(P,V)|0,i=(i=i+Math.imul(P,K)|0)+Math.imul(L,V)|0,o=o+Math.imul(L,K)|0,r=r+Math.imul(R,$)|0,i=(i=i+Math.imul(R,Y)|0)+Math.imul(O,$)|0,o=o+Math.imul(O,Y)|0,r=r+Math.imul(M,Q)|0,i=(i=i+Math.imul(M,Z)|0)+Math.imul(C,Q)|0,o=o+Math.imul(C,Z)|0,r=r+Math.imul(E,J)|0,i=(i=i+Math.imul(E,ee)|0)+Math.imul(S,J)|0,o=o+Math.imul(S,ee)|0,r=r+Math.imul(w,ne)|0,i=(i=i+Math.imul(w,re)|0)+Math.imul(A,ne)|0,o=o+Math.imul(A,re)|0,r=r+Math.imul(v,oe)|0,i=(i=i+Math.imul(v,ae)|0)+Math.imul(y,oe)|0,o=o+Math.imul(y,ae)|0,r=r+Math.imul(p,ue)|0,i=(i=i+Math.imul(p,le)|0)+Math.imul(m,ue)|0,o=o+Math.imul(m,le)|0;var Se=(l+(r=r+Math.imul(d,de)|0)|0)+((8191&(i=(i=i+Math.imul(d,fe)|0)+Math.imul(f,de)|0))<<13)|0;l=((o=o+Math.imul(f,fe)|0)+(i>>>13)|0)+(Se>>>26)|0,Se&=67108863,r=Math.imul(j,F),i=(i=Math.imul(j,q))+Math.imul(U,F)|0,o=Math.imul(U,q),r=r+Math.imul(N,V)|0,i=(i=i+Math.imul(N,K)|0)+Math.imul(D,V)|0,o=o+Math.imul(D,K)|0,r=r+Math.imul(P,$)|0,i=(i=i+Math.imul(P,Y)|0)+Math.imul(L,$)|0,o=o+Math.imul(L,Y)|0,r=r+Math.imul(R,Q)|0,i=(i=i+Math.imul(R,Z)|0)+Math.imul(O,Q)|0,o=o+Math.imul(O,Z)|0,r=r+Math.imul(M,J)|0,i=(i=i+Math.imul(M,ee)|0)+Math.imul(C,J)|0,o=o+Math.imul(C,ee)|0,r=r+Math.imul(E,ne)|0,i=(i=i+Math.imul(E,re)|0)+Math.imul(S,ne)|0,o=o+Math.imul(S,re)|0,r=r+Math.imul(w,oe)|0,i=(i=i+Math.imul(w,ae)|0)+Math.imul(A,oe)|0,o=o+Math.imul(A,ae)|0,r=r+Math.imul(v,ue)|0,i=(i=i+Math.imul(v,le)|0)+Math.imul(y,ue)|0,o=o+Math.imul(y,le)|0,r=r+Math.imul(p,de)|0,i=(i=i+Math.imul(p,fe)|0)+Math.imul(m,de)|0,o=o+Math.imul(m,fe)|0;var ke=(l+(r=r+Math.imul(d,pe)|0)|0)+((8191&(i=(i=i+Math.imul(d,me)|0)+Math.imul(f,pe)|0))<<13)|0;l=((o=o+Math.imul(f,me)|0)+(i>>>13)|0)+(ke>>>26)|0,ke&=67108863,r=Math.imul(j,V),i=(i=Math.imul(j,K))+Math.imul(U,V)|0,o=Math.imul(U,K),r=r+Math.imul(N,$)|0,i=(i=i+Math.imul(N,Y)|0)+Math.imul(D,$)|0,o=o+Math.imul(D,Y)|0,r=r+Math.imul(P,Q)|0,i=(i=i+Math.imul(P,Z)|0)+Math.imul(L,Q)|0,o=o+Math.imul(L,Z)|0,r=r+Math.imul(R,J)|0,i=(i=i+Math.imul(R,ee)|0)+Math.imul(O,J)|0,o=o+Math.imul(O,ee)|0,r=r+Math.imul(M,ne)|0,i=(i=i+Math.imul(M,re)|0)+Math.imul(C,ne)|0,o=o+Math.imul(C,re)|0,r=r+Math.imul(E,oe)|0,i=(i=i+Math.imul(E,ae)|0)+Math.imul(S,oe)|0,o=o+Math.imul(S,ae)|0,r=r+Math.imul(w,ue)|0,i=(i=i+Math.imul(w,le)|0)+Math.imul(A,ue)|0,o=o+Math.imul(A,le)|0,r=r+Math.imul(v,de)|0,i=(i=i+Math.imul(v,fe)|0)+Math.imul(y,de)|0,o=o+Math.imul(y,fe)|0;var Me=(l+(r=r+Math.imul(p,pe)|0)|0)+((8191&(i=(i=i+Math.imul(p,me)|0)+Math.imul(m,pe)|0))<<13)|0;l=((o=o+Math.imul(m,me)|0)+(i>>>13)|0)+(Me>>>26)|0,Me&=67108863,r=Math.imul(j,$),i=(i=Math.imul(j,Y))+Math.imul(U,$)|0,o=Math.imul(U,Y),r=r+Math.imul(N,Q)|0,i=(i=i+Math.imul(N,Z)|0)+Math.imul(D,Q)|0,o=o+Math.imul(D,Z)|0,r=r+Math.imul(P,J)|0,i=(i=i+Math.imul(P,ee)|0)+Math.imul(L,J)|0,o=o+Math.imul(L,ee)|0,r=r+Math.imul(R,ne)|0,i=(i=i+Math.imul(R,re)|0)+Math.imul(O,ne)|0,o=o+Math.imul(O,re)|0,r=r+Math.imul(M,oe)|0,i=(i=i+Math.imul(M,ae)|0)+Math.imul(C,oe)|0,o=o+Math.imul(C,ae)|0,r=r+Math.imul(E,ue)|0,i=(i=i+Math.imul(E,le)|0)+Math.imul(S,ue)|0,o=o+Math.imul(S,le)|0,r=r+Math.imul(w,de)|0,i=(i=i+Math.imul(w,fe)|0)+Math.imul(A,de)|0,o=o+Math.imul(A,fe)|0;var Ce=(l+(r=r+Math.imul(v,pe)|0)|0)+((8191&(i=(i=i+Math.imul(v,me)|0)+Math.imul(y,pe)|0))<<13)|0;l=((o=o+Math.imul(y,me)|0)+(i>>>13)|0)+(Ce>>>26)|0,Ce&=67108863,r=Math.imul(j,Q),i=(i=Math.imul(j,Z))+Math.imul(U,Q)|0,o=Math.imul(U,Z),r=r+Math.imul(N,J)|0,i=(i=i+Math.imul(N,ee)|0)+Math.imul(D,J)|0,o=o+Math.imul(D,ee)|0,r=r+Math.imul(P,ne)|0,i=(i=i+Math.imul(P,re)|0)+Math.imul(L,ne)|0,o=o+Math.imul(L,re)|0,r=r+Math.imul(R,oe)|0,i=(i=i+Math.imul(R,ae)|0)+Math.imul(O,oe)|0,o=o+Math.imul(O,ae)|0,r=r+Math.imul(M,ue)|0,i=(i=i+Math.imul(M,le)|0)+Math.imul(C,ue)|0,o=o+Math.imul(C,le)|0,r=r+Math.imul(E,de)|0,i=(i=i+Math.imul(E,fe)|0)+Math.imul(S,de)|0,o=o+Math.imul(S,fe)|0;var xe=(l+(r=r+Math.imul(w,pe)|0)|0)+((8191&(i=(i=i+Math.imul(w,me)|0)+Math.imul(A,pe)|0))<<13)|0;l=((o=o+Math.imul(A,me)|0)+(i>>>13)|0)+(xe>>>26)|0,xe&=67108863,r=Math.imul(j,J),i=(i=Math.imul(j,ee))+Math.imul(U,J)|0,o=Math.imul(U,ee),r=r+Math.imul(N,ne)|0,i=(i=i+Math.imul(N,re)|0)+Math.imul(D,ne)|0,o=o+Math.imul(D,re)|0,r=r+Math.imul(P,oe)|0,i=(i=i+Math.imul(P,ae)|0)+Math.imul(L,oe)|0,o=o+Math.imul(L,ae)|0,r=r+Math.imul(R,ue)|0,i=(i=i+Math.imul(R,le)|0)+Math.imul(O,ue)|0,o=o+Math.imul(O,le)|0,r=r+Math.imul(M,de)|0,i=(i=i+Math.imul(M,fe)|0)+Math.imul(C,de)|0,o=o+Math.imul(C,fe)|0;var Re=(l+(r=r+Math.imul(E,pe)|0)|0)+((8191&(i=(i=i+Math.imul(E,me)|0)+Math.imul(S,pe)|0))<<13)|0;l=((o=o+Math.imul(S,me)|0)+(i>>>13)|0)+(Re>>>26)|0,Re&=67108863,r=Math.imul(j,ne),i=(i=Math.imul(j,re))+Math.imul(U,ne)|0,o=Math.imul(U,re),r=r+Math.imul(N,oe)|0,i=(i=i+Math.imul(N,ae)|0)+Math.imul(D,oe)|0,o=o+Math.imul(D,ae)|0,r=r+Math.imul(P,ue)|0,i=(i=i+Math.imul(P,le)|0)+Math.imul(L,ue)|0,o=o+Math.imul(L,le)|0,r=r+Math.imul(R,de)|0,i=(i=i+Math.imul(R,fe)|0)+Math.imul(O,de)|0,o=o+Math.imul(O,fe)|0;var Oe=(l+(r=r+Math.imul(M,pe)|0)|0)+((8191&(i=(i=i+Math.imul(M,me)|0)+Math.imul(C,pe)|0))<<13)|0;l=((o=o+Math.imul(C,me)|0)+(i>>>13)|0)+(Oe>>>26)|0,Oe&=67108863,r=Math.imul(j,oe),i=(i=Math.imul(j,ae))+Math.imul(U,oe)|0,o=Math.imul(U,ae),r=r+Math.imul(N,ue)|0,i=(i=i+Math.imul(N,le)|0)+Math.imul(D,ue)|0,o=o+Math.imul(D,le)|0,r=r+Math.imul(P,de)|0,i=(i=i+Math.imul(P,fe)|0)+Math.imul(L,de)|0,o=o+Math.imul(L,fe)|0;var Te=(l+(r=r+Math.imul(R,pe)|0)|0)+((8191&(i=(i=i+Math.imul(R,me)|0)+Math.imul(O,pe)|0))<<13)|0;l=((o=o+Math.imul(O,me)|0)+(i>>>13)|0)+(Te>>>26)|0,Te&=67108863,r=Math.imul(j,ue),i=(i=Math.imul(j,le))+Math.imul(U,ue)|0,o=Math.imul(U,le),r=r+Math.imul(N,de)|0,i=(i=i+Math.imul(N,fe)|0)+Math.imul(D,de)|0,o=o+Math.imul(D,fe)|0;var Pe=(l+(r=r+Math.imul(P,pe)|0)|0)+((8191&(i=(i=i+Math.imul(P,me)|0)+Math.imul(L,pe)|0))<<13)|0;l=((o=o+Math.imul(L,me)|0)+(i>>>13)|0)+(Pe>>>26)|0,Pe&=67108863,r=Math.imul(j,de),i=(i=Math.imul(j,fe))+Math.imul(U,de)|0,o=Math.imul(U,fe);var Le=(l+(r=r+Math.imul(N,pe)|0)|0)+((8191&(i=(i=i+Math.imul(N,me)|0)+Math.imul(D,pe)|0))<<13)|0;l=((o=o+Math.imul(D,me)|0)+(i>>>13)|0)+(Le>>>26)|0,Le&=67108863;var Ie=(l+(r=Math.imul(j,pe))|0)+((8191&(i=(i=Math.imul(j,me))+Math.imul(U,pe)|0))<<13)|0;return l=((o=Math.imul(U,me))+(i>>>13)|0)+(Ie>>>26)|0,Ie&=67108863,u[0]=ge,u[1]=ve,u[2]=ye,u[3]=be,u[4]=we,u[5]=Ae,u[6]=_e,u[7]=Ee,u[8]=Se,u[9]=ke,u[10]=Me,u[11]=Ce,u[12]=xe,u[13]=Re,u[14]=Oe,u[15]=Te,u[16]=Pe,u[17]=Le,u[18]=Ie,0!==l&&(u[19]=l,n.length++),n};function p(e,t,n){return(new m).mulp(e,t,n)}function m(e,t){this.x=e,this.y=t}Math.imul||(h=f),i.prototype.mulTo=function(e,t){var n,r=this.length+e.length;return n=10===this.length&&10===e.length?h(this,e,t):r<63?f(this,e,t):r<1024?function(e,t,n){n.negative=t.negative^e.negative,n.length=e.length+t.length;for(var r=0,i=0,o=0;o>>26)|0)>>>26,a&=67108863}n.words[o]=s,r=a,a=i}return 0!==r?n.words[o]=r:n.length--,n.strip()}(this,e,t):p(this,e,t),n},m.prototype.makeRBT=function(e){for(var t=new Array(e),n=i.prototype._countBits(e)-1,r=0;r>=1;return r},m.prototype.permute=function(e,t,n,r,i,o){for(var a=0;a>>=1)i++;return 1<>>=13,r[2*a+1]=8191&o,o>>>=13;for(a=2*t;a>=26,t+=i/67108864|0,t+=o>>>26,this.words[r]=67108863&o}return 0!==t&&(this.words[r]=t,this.length++),this},i.prototype.muln=function(e){return this.clone().imuln(e)},i.prototype.sqr=function(){return this.mul(this)},i.prototype.isqr=function(){return this.imul(this.clone())},i.prototype.pow=function(e){var t=function(e){for(var t=new Array(e.bitLength()),n=0;n>>i}return t}(e);if(0===t.length)return new i(1);for(var n=this,r=0;r=0);var t,r=e%26,i=(e-r)/26,o=67108863>>>26-r<<26-r;if(0!==r){var a=0;for(t=0;t>>26-r}a&&(this.words[t]=a,this.length++)}if(0!==i){for(t=this.length-1;t>=0;t--)this.words[t+i]=this.words[t];for(t=0;t=0),i=t?(t-t%26)/26:0;var o=e%26,a=Math.min((e-o)/26,this.length),s=67108863^67108863>>>o<a)for(this.length-=a,l=0;l=0&&(0!==c||l>=i);l--){var d=0|this.words[l];this.words[l]=c<<26-o|d>>>o,c=d&s}return u&&0!==c&&(u.words[u.length++]=c),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},i.prototype.ishrn=function(e,t,r){return n(0===this.negative),this.iushrn(e,t,r)},i.prototype.shln=function(e){return this.clone().ishln(e)},i.prototype.ushln=function(e){return this.clone().iushln(e)},i.prototype.shrn=function(e){return this.clone().ishrn(e)},i.prototype.ushrn=function(e){return this.clone().iushrn(e)},i.prototype.testn=function(e){n("number"==typeof e&&e>=0);var t=e%26,r=(e-t)/26,i=1<=0);var t=e%26,r=(e-t)/26;if(n(0===this.negative,"imaskn works only with positive numbers"),this.length<=r)return this;if(0!==t&&r++,this.length=Math.min(r,this.length),0!==t){var i=67108863^67108863>>>t<=67108864;t++)this.words[t]-=67108864,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},i.prototype.isubn=function(e){if(n("number"==typeof e),n(e<67108864),e<0)return this.iaddn(-e);if(0!==this.negative)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var t=0;t>26)-(u/67108864|0),this.words[i+r]=67108863&o}for(;i>26,this.words[i+r]=67108863&o;if(0===s)return this.strip();for(n(-1===s),s=0,i=0;i>26,this.words[i]=67108863&o;return this.negative=1,this.strip()},i.prototype._wordDiv=function(e,t){var n=(this.length,e.length),r=this.clone(),o=e,a=0|o.words[o.length-1];0!=(n=26-this._countBits(a))&&(o=o.ushln(n),r.iushln(n),a=0|o.words[o.length-1]);var s,u=r.length-o.length;if("mod"!==t){(s=new i(null)).length=u+1,s.words=new Array(s.length);for(var l=0;l=0;d--){var f=67108864*(0|r.words[o.length+d])+(0|r.words[o.length+d-1]);for(f=Math.min(f/a|0,67108863),r._ishlnsubmul(o,f,d);0!==r.negative;)f--,r.negative=0,r._ishlnsubmul(o,1,d),r.isZero()||(r.negative^=1);s&&(s.words[d]=f)}return s&&s.strip(),r.strip(),"div"!==t&&0!==n&&r.iushrn(n),{div:s||null,mod:r}},i.prototype.divmod=function(e,t,r){return n(!e.isZero()),this.isZero()?{div:new i(0),mod:new i(0)}:0!==this.negative&&0===e.negative?(s=this.neg().divmod(e,t),"mod"!==t&&(o=s.div.neg()),"div"!==t&&(a=s.mod.neg(),r&&0!==a.negative&&a.iadd(e)),{div:o,mod:a}):0===this.negative&&0!==e.negative?(s=this.divmod(e.neg(),t),"mod"!==t&&(o=s.div.neg()),{div:o,mod:s.mod}):0!=(this.negative&e.negative)?(s=this.neg().divmod(e.neg(),t),"div"!==t&&(a=s.mod.neg(),r&&0!==a.negative&&a.isub(e)),{div:s.div,mod:a}):e.length>this.length||this.cmp(e)<0?{div:new i(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new i(this.modn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new i(this.modn(e.words[0]))}:this._wordDiv(e,t);var o,a,s},i.prototype.div=function(e){return this.divmod(e,"div",!1).div},i.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},i.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},i.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var n=0!==t.div.negative?t.mod.isub(e):t.mod,r=e.ushrn(1),i=e.andln(1),o=n.cmp(r);return o<0||1===i&&0===o?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},i.prototype.modn=function(e){n(e<=67108863);for(var t=(1<<26)%e,r=0,i=this.length-1;i>=0;i--)r=(t*r+(0|this.words[i]))%e;return r},i.prototype.idivn=function(e){n(e<=67108863);for(var t=0,r=this.length-1;r>=0;r--){var i=(0|this.words[r])+67108864*t;this.words[r]=i/e|0,t=i%e}return this.strip()},i.prototype.divn=function(e){return this.clone().idivn(e)},i.prototype.egcd=function(e){n(0===e.negative),n(!e.isZero());var t=this,r=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var o=new i(1),a=new i(0),s=new i(0),u=new i(1),l=0;t.isEven()&&r.isEven();)t.iushrn(1),r.iushrn(1),++l;for(var c=r.clone(),d=t.clone();!t.isZero();){for(var f=0,h=1;0==(t.words[0]&h)&&f<26;++f,h<<=1);if(f>0)for(t.iushrn(f);f-- >0;)(o.isOdd()||a.isOdd())&&(o.iadd(c),a.isub(d)),o.iushrn(1),a.iushrn(1);for(var p=0,m=1;0==(r.words[0]&m)&&p<26;++p,m<<=1);if(p>0)for(r.iushrn(p);p-- >0;)(s.isOdd()||u.isOdd())&&(s.iadd(c),u.isub(d)),s.iushrn(1),u.iushrn(1);t.cmp(r)>=0?(t.isub(r),o.isub(s),a.isub(u)):(r.isub(t),s.isub(o),u.isub(a))}return{a:s,b:u,gcd:r.iushln(l)}},i.prototype._invmp=function(e){n(0===e.negative),n(!e.isZero());var t=this,r=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var o,a=new i(1),s=new i(0),u=r.clone();t.cmpn(1)>0&&r.cmpn(1)>0;){for(var l=0,c=1;0==(t.words[0]&c)&&l<26;++l,c<<=1);if(l>0)for(t.iushrn(l);l-- >0;)a.isOdd()&&a.iadd(u),a.iushrn(1);for(var d=0,f=1;0==(r.words[0]&f)&&d<26;++d,f<<=1);if(d>0)for(r.iushrn(d);d-- >0;)s.isOdd()&&s.iadd(u),s.iushrn(1);t.cmp(r)>=0?(t.isub(r),a.isub(s)):(r.isub(t),s.isub(a))}return(o=0===t.cmpn(1)?a:s).cmpn(0)<0&&o.iadd(e),o},i.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),n=e.clone();t.negative=0,n.negative=0;for(var r=0;t.isEven()&&n.isEven();r++)t.iushrn(1),n.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;n.isEven();)n.iushrn(1);var i=t.cmp(n);if(i<0){var o=t;t=n,n=o}else if(0===i||0===n.cmpn(1))break;t.isub(n)}return n.iushln(r)},i.prototype.invm=function(e){return this.egcd(e).a.umod(e)},i.prototype.isEven=function(){return 0==(1&this.words[0])},i.prototype.isOdd=function(){return 1==(1&this.words[0])},i.prototype.andln=function(e){return this.words[0]&e},i.prototype.bincn=function(e){n("number"==typeof e);var t=e%26,r=(e-t)/26,i=1<>>26,s&=67108863,this.words[a]=s}return 0!==o&&(this.words[a]=o,this.length++),this},i.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},i.prototype.cmpn=function(e){var t,r=e<0;if(0!==this.negative&&!r)return-1;if(0===this.negative&&r)return 1;if(this.strip(),this.length>1)t=1;else{r&&(e=-e),n(e<=67108863,"Number is too big");var i=0|this.words[0];t=i===e?0:ie.length)return 1;if(this.length=0;n--){var r=0|this.words[n],i=0|e.words[n];if(r!==i){ri&&(t=1);break}}return t},i.prototype.gtn=function(e){return 1===this.cmpn(e)},i.prototype.gt=function(e){return 1===this.cmp(e)},i.prototype.gten=function(e){return this.cmpn(e)>=0},i.prototype.gte=function(e){return this.cmp(e)>=0},i.prototype.ltn=function(e){return-1===this.cmpn(e)},i.prototype.lt=function(e){return-1===this.cmp(e)},i.prototype.lten=function(e){return this.cmpn(e)<=0},i.prototype.lte=function(e){return this.cmp(e)<=0},i.prototype.eqn=function(e){return 0===this.cmpn(e)},i.prototype.eq=function(e){return 0===this.cmp(e)},i.red=function(e){return new _(e)},i.prototype.toRed=function(e){return n(!this.red,"Already a number in reduction context"),n(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},i.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},i.prototype._forceRed=function(e){return this.red=e,this},i.prototype.forceRed=function(e){return n(!this.red,"Already a number in reduction context"),this._forceRed(e)},i.prototype.redAdd=function(e){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},i.prototype.redIAdd=function(e){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},i.prototype.redSub=function(e){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},i.prototype.redISub=function(e){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},i.prototype.redShl=function(e){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},i.prototype.redMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},i.prototype.redIMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},i.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},i.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},i.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},i.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},i.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},i.prototype.redPow=function(e){return n(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var g={k256:null,p224:null,p192:null,p25519:null};function v(e,t){this.name=e,this.p=new i(t,16),this.n=this.p.bitLength(),this.k=new i(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function y(){v.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function b(){v.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function w(){v.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function A(){v.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function _(e){if("string"==typeof e){var t=i._prime(e);this.m=t.p,this.prime=t}else n(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function E(e){_.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new i(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}v.prototype._tmp=function(){var e=new i(null);return e.words=new Array(Math.ceil(this.n/13)),e},v.prototype.ireduce=function(e){var t,n=e;do{this.split(n,this.tmp),t=(n=(n=this.imulK(n)).iadd(this.tmp)).bitLength()}while(t>this.n);var r=t0?n.isub(this.p):void 0!==n.strip?n.strip():n._strip(),n},v.prototype.split=function(e,t){e.iushrn(this.n,0,t)},v.prototype.imulK=function(e){return e.imul(this.k)},r(y,v),y.prototype.split=function(e,t){for(var n=4194303,r=Math.min(e.length,9),i=0;i>>22,o=a}o>>>=22,e.words[i-10]=o,0===o&&e.length>10?e.length-=10:e.length-=9},y.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,n=0;n>>=26,e.words[n]=i,t=r}return 0!==t&&(e.words[e.length++]=t),e},i._prime=function(e){if(g[e])return g[e];var t;if("k256"===e)t=new y;else if("p224"===e)t=new b;else if("p192"===e)t=new w;else{if("p25519"!==e)throw new Error("Unknown prime "+e);t=new A}return g[e]=t,t},_.prototype._verify1=function(e){n(0===e.negative,"red works only with positives"),n(e.red,"red works only with red numbers")},_.prototype._verify2=function(e,t){n(0==(e.negative|t.negative),"red works only with positives"),n(e.red&&e.red===t.red,"red works only with red numbers")},_.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):e.umod(this.m)._forceRed(this)},_.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},_.prototype.add=function(e,t){this._verify2(e,t);var n=e.add(t);return n.cmp(this.m)>=0&&n.isub(this.m),n._forceRed(this)},_.prototype.iadd=function(e,t){this._verify2(e,t);var n=e.iadd(t);return n.cmp(this.m)>=0&&n.isub(this.m),n},_.prototype.sub=function(e,t){this._verify2(e,t);var n=e.sub(t);return n.cmpn(0)<0&&n.iadd(this.m),n._forceRed(this)},_.prototype.isub=function(e,t){this._verify2(e,t);var n=e.isub(t);return n.cmpn(0)<0&&n.iadd(this.m),n},_.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},_.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},_.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},_.prototype.isqr=function(e){return this.imul(e,e.clone())},_.prototype.sqr=function(e){return this.mul(e,e)},_.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(n(t%2==1),3===t){var r=this.m.add(new i(1)).iushrn(2);return this.pow(e,r)}for(var o=this.m.subn(1),a=0;!o.isZero()&&0===o.andln(1);)a++,o.iushrn(1);n(!o.isZero());var s=new i(1).toRed(this),u=s.redNeg(),l=this.m.subn(1).iushrn(1),c=this.m.bitLength();for(c=new i(2*c*c).toRed(this);0!==this.pow(c,l).cmp(u);)c.redIAdd(u);for(var d=this.pow(c,o),f=this.pow(e,o.addn(1).iushrn(1)),h=this.pow(e,o),p=a;0!==h.cmp(s);){for(var m=h,g=0;0!==m.cmp(s);g++)m=m.redSqr();n(g=0;r--){for(var l=t.words[r],c=u-1;c>=0;c--){var d=l>>c&1;o!==n[0]&&(o=this.sqr(o)),0!==d||0!==a?(a<<=1,a|=d,(4==++s||0===r&&0===c)&&(o=this.mul(o,n[a]),s=0,a=0)):s=0}u=26}return o},_.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},_.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},i.mont=function(e){return new E(e)},r(E,_),E.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},E.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},E.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var n=e.imul(t),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=n.isub(r).iushrn(this.shift),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):i.cmpn(0)<0&&(o=i.iadd(this.m)),o._forceRed(this)},E.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new i(0)._forceRed(this);var n=e.mul(t),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),o=n.isub(r).iushrn(this.shift),a=o;return o.cmp(this.m)>=0?a=o.isub(this.m):o.cmpn(0)<0&&(a=o.iadd(this.m)),a._forceRed(this)},E.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(df,hr);var ff,hf,pf,mf,gf,vf=df.exports,yf={exports:{}};function bf(){if(ff)return yf.exports;var e;function t(e){this.rand=e}if(ff=1,yf.exports=function(n){return e||(e=new t(null)),e.generate(n)},yf.exports.Rand=t,t.prototype.generate=function(e){return this._rand(e)},t.prototype._rand=function(e){if(this.rand.getBytes)return this.rand.getBytes(e);for(var t=new Uint8Array(e),n=0;n=0);return i},n.prototype._randrange=function(e,t){var n=t.sub(e);return e.add(this._randbelow(n))},n.prototype.test=function(t,n,r){var i=t.bitLength(),o=e.mont(t),a=new e(1).toRed(o);n||(n=Math.max(1,i/48|0));for(var s=t.subn(1),u=0;!s.testn(u);u++);for(var l=t.shrn(u),c=s.toRed(o);n>0;n--){var d=this._randrange(new e(2),s);r&&r(d);var f=d.toRed(o).redPow(l);if(0!==f.cmp(a)&&0!==f.cmp(c)){for(var h=1;h0;n--){var c=this._randrange(new e(2),a),d=t.gcd(c);if(0!==d.cmpn(1))return d;var f=c.toRed(i).redPow(u);if(0!==f.cmp(o)&&0!==f.cmp(l)){for(var h=1;hd;)m.ishrn(1);if(m.isEven()&&m.iadd(i),m.testn(1)||m.iadd(o),p.cmp(o)){if(!p.cmp(a))for(;m.mod(s).cmp(u);)m.iadd(c)}else for(;m.mod(n).cmp(l);)m.iadd(c);if(f(g=m.shrn(1))&&f(m)&&h(g)&&h(m)&&r.test(g)&&r.test(m))return m}}return mf}var _f,Ef,Sf,kf,Mf,Cf={modp1:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a63a3620ffffffffffffffff"},modp2:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece65381ffffffffffffffff"},modp5:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca237327ffffffffffffffff"},modp14:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aacaa68ffffffffffffffff"},modp15:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a93ad2caffffffffffffffff"},modp16:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c934063199ffffffffffffffff"},modp17:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dcc4024ffffffffffffffff"},modp18:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dbe115974a3926f12fee5e438777cb6a932df8cd8bec4d073b931ba3bc832b68d9dd300741fa7bf8afc47ed2576f6936ba424663aab639c5ae4f5683423b4742bf1c978238f16cbe39d652de3fdb8befc848ad922222e04a4037c0713eb57a81a23f0c73473fc646cea306b4bcbc8862f8385ddfa9d4b7fa2c087e879683303ed5bdd3a062b3cf5b3a278a66d2a13f83f44f82ddf310ee074ab6a364597e899a0255dc164f31cc50846851df9ab48195ded7ea1b1d510bd7ee74d73faf36bc31ecfa268359046f4eb879f924009438b481c6cd7889a002ed5ee382bc9190da6fc026e479558e4475677e9aa9e3050e2765694dfc81f56e880b96e7160c980dd98edd3dfffffffffffffffff"}},xf={exports:{}},Rf=ui.EventEmitter;function Of(e,t){Pf(e,t),Tf(e)}function Tf(e){e._writableState&&!e._writableState.emitClose||e._readableState&&!e._readableState.emitClose||e.emit("close")}function Pf(e,t){e.emit("error",t)}var Lf={destroy:function(e,t){var n=this,r=this._readableState&&this._readableState.destroyed,i=this._writableState&&this._writableState.destroyed;return r||i?(t?t(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,Tr(Pf,this,e)):Tr(Pf,this,e)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,(function(e){!t&&e?n._writableState?n._writableState.errorEmitted?Tr(Tf,n):(n._writableState.errorEmitted=!0,Tr(Of,n,e)):Tr(Of,n,e):t?(Tr(Tf,n),t(e)):Tr(Tf,n)})),this)},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)},errorOrDestroy:function(e,t){var n=e._readableState,r=e._writableState;n&&n.autoDestroy||r&&r.autoDestroy?e.destroy(t):e.emit("error",t)}},If={},Nf={};function Df(e,t,n){n||(n=Error);var r=function(e){var n,r;function i(n,r,i){return e.call(this,function(e,n,r){return"string"==typeof t?t:t(e,n,r)}(n,r,i))||this}return r=e,(n=i).prototype=Object.create(r.prototype),n.prototype.constructor=n,n.__proto__=r,i}(n);r.prototype.name=n.name,r.prototype.code=e,Nf[e]=r}function Bf(e,t){if(Array.isArray(e)){var n=e.length;return e=e.map((function(e){return String(e)})),n>2?"one of ".concat(t," ").concat(e.slice(0,n-1).join(", "),", or ")+e[n-1]:2===n?"one of ".concat(t," ").concat(e[0]," or ").concat(e[1]):"of ".concat(t," ").concat(e[0])}return"of ".concat(t," ").concat(String(e))}Df("ERR_INVALID_OPT_VALUE",(function(e,t){return'The value "'+t+'" is invalid for option "'+e+'"'}),TypeError),Df("ERR_INVALID_ARG_TYPE",(function(e,t,n){var r,i,o;if("string"==typeof t&&(i="not ",t.substr(0,4)===i)?(r="must not be",t=t.replace(/^not /,"")):r="must be",function(e,t,n){return(void 0===n||n>e.length)&&(n=e.length),e.substring(n-9,n)===t}(e," argument"))o="The ".concat(e," ").concat(r," ").concat(Bf(t,"type"));else{var a=function(e,t,n){return"number"!=typeof n&&(n=0),!(n+1>e.length)&&-1!==e.indexOf(".",n)}(e)?"property":"argument";o='The "'.concat(e,'" ').concat(a," ").concat(r," ").concat(Bf(t,"type"))}return o+". Received type ".concat(typeof n)}),TypeError),Df("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),Df("ERR_METHOD_NOT_IMPLEMENTED",(function(e){return"The "+e+" method is not implemented"})),Df("ERR_STREAM_PREMATURE_CLOSE","Premature close"),Df("ERR_STREAM_DESTROYED",(function(e){return"Cannot call "+e+" after a stream was destroyed"})),Df("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),Df("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),Df("ERR_STREAM_WRITE_AFTER_END","write after end"),Df("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),Df("ERR_UNKNOWN_ENCODING",(function(e){return"Unknown encoding: "+e}),TypeError),Df("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),If.codes=Nf;var jf,Uf,zf,Ff,qf=If.codes.ERR_INVALID_OPT_VALUE,Wf={getHighWaterMark:function(e,t,n,r){var i=function(e,t,n){return null!=e.highWaterMark?e.highWaterMark:t?e[n]:null}(t,r,n);if(null!=i){if(!isFinite(i)||Math.floor(i)!==i||i<0)throw new qf(r?n:"highWaterMark",i);return Math.floor(i)}return e.objectMode?16:16384}};function Vf(){if(Uf)return jf;function e(e){var t=this;this.next=null,this.entry=null,this.finish=function(){!function(e,t){var n=e.entry;for(e.entry=null;n;){var r=n.callback;t.pendingcb--,r(void 0),n=n.next}t.corkedRequestsFree.next=e}(t,e)}}var t;Uf=1,jf=A,A.WritableState=w;var n,r={deprecate:fo()},i=Rf,o=yr.Buffer,a=(void 0!==hr?hr:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){},s=Lf,u=Wf.getHighWaterMark,l=If.codes,c=l.ERR_INVALID_ARG_TYPE,d=l.ERR_METHOD_NOT_IMPLEMENTED,f=l.ERR_MULTIPLE_CALLBACK,h=l.ERR_STREAM_CANNOT_PIPE,p=l.ERR_STREAM_DESTROYED,m=l.ERR_STREAM_NULL_VALUES,g=l.ERR_STREAM_WRITE_AFTER_END,v=l.ERR_UNKNOWN_ENCODING,y=s.errorOrDestroy;function b(){}function w(n,r,i){t=t||Kf(),n=n||{},"boolean"!=typeof i&&(i=r instanceof t),this.objectMode=!!n.objectMode,i&&(this.objectMode=this.objectMode||!!n.writableObjectMode),this.highWaterMark=u(this,n,"writableHighWaterMark",i),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var o=!1===n.decodeStrings;this.decodeStrings=!o,this.defaultEncoding=n.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){!function(e,t){var n=e._writableState,r=n.sync,i=n.writecb;if("function"!=typeof i)throw new f;if(function(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}(n),t)!function(e,t,n,r,i){--t.pendingcb,n?(Tr(i,r),Tr(C,e,t),e._writableState.errorEmitted=!0,y(e,r)):(i(r),e._writableState.errorEmitted=!0,y(e,r),C(e,t))}(e,n,r,t,i);else{var o=k(n)||e.destroyed;o||n.corked||n.bufferProcessing||!n.bufferedRequest||S(e,n),r?Tr(E,e,n,o,i):E(e,n,o,i)}}(r,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!1!==n.emitClose,this.autoDestroy=!!n.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new e(this)}function A(e){var r=this instanceof(t=t||Kf());if(!r&&!n.call(A,this))return new A(e);this._writableState=new w(e,this,r),this.writable=!0,e&&("function"==typeof e.write&&(this._write=e.write),"function"==typeof e.writev&&(this._writev=e.writev),"function"==typeof e.destroy&&(this._destroy=e.destroy),"function"==typeof e.final&&(this._final=e.final)),i.call(this)}function _(e,t,n,r,i,o,a){t.writelen=r,t.writecb=a,t.writing=!0,t.sync=!0,t.destroyed?t.onwrite(new p("write")):n?e._writev(i,t.onwrite):e._write(i,o,t.onwrite),t.sync=!1}function E(e,t,n,r){n||function(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}(e,t),t.pendingcb--,r(),C(e,t)}function S(t,n){n.bufferProcessing=!0;var r=n.bufferedRequest;if(t._writev&&r&&r.next){var i=n.bufferedRequestCount,o=new Array(i),a=n.corkedRequestsFree;a.entry=r;for(var s=0,u=!0;r;)o[s]=r,r.isBuf||(u=!1),r=r.next,s+=1;o.allBuffers=u,_(t,n,!0,n.length,o,"",a.finish),n.pendingcb++,n.lastBufferedRequest=null,a.next?(n.corkedRequestsFree=a.next,a.next=null):n.corkedRequestsFree=new e(n),n.bufferedRequestCount=0}else{for(;r;){var l=r.chunk,c=r.encoding,d=r.callback;if(_(t,n,!1,n.objectMode?1:l.length,l,c,d),r=r.next,n.bufferedRequestCount--,n.writing)break}null===r&&(n.lastBufferedRequest=null)}n.bufferedRequest=r,n.bufferProcessing=!1}function k(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function M(e,t){e._final((function(n){t.pendingcb--,n&&y(e,n),t.prefinished=!0,e.emit("prefinish"),C(e,t)}))}function C(e,t){var n=k(t);if(n&&(function(e,t){t.prefinished||t.finalCalled||("function"!=typeof e._final||t.destroyed?(t.prefinished=!0,e.emit("prefinish")):(t.pendingcb++,t.finalCalled=!0,Tr(M,e,t)))}(e,t),0===t.pendingcb&&(t.finished=!0,e.emit("finish"),t.autoDestroy))){var r=e._readableState;(!r||r.autoDestroy&&r.endEmitted)&&e.destroy()}return n}return Jr(A,i),w.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(w.prototype,"buffer",{get:r.deprecate((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(n=Function.prototype[Symbol.hasInstance],Object.defineProperty(A,Symbol.hasInstance,{value:function(e){return!!n.call(this,e)||this===A&&e&&e._writableState instanceof w}})):n=function(e){return e instanceof this},A.prototype.pipe=function(){y(this,new h)},A.prototype.write=function(e,t,n){var r,i=this._writableState,s=!1,u=!i.objectMode&&(r=e,o.isBuffer(r)||r instanceof a);return u&&!o.isBuffer(e)&&(e=function(e){return o.from(e)}(e)),"function"==typeof t&&(n=t,t=null),u?t="buffer":t||(t=i.defaultEncoding),"function"!=typeof n&&(n=b),i.ending?function(e,t){var n=new g;y(e,n),Tr(t,n)}(this,n):(u||function(e,t,n,r){var i;return null===n?i=new m:"string"==typeof n||t.objectMode||(i=new c("chunk",["string","Buffer"],n)),!i||(y(e,i),Tr(r,i),!1)}(this,i,e,n))&&(i.pendingcb++,s=function(e,t,n,r,i,a){if(!n){var s=function(e,t,n){return e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=o.from(t,n)),t}(t,r,i);r!==s&&(n=!0,i="buffer",r=s)}var u=t.objectMode?1:r.length;t.length+=u;var l=t.length-1))throw new v(e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(A.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(A.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),A.prototype._write=function(e,t,n){n(new d("_write()"))},A.prototype._writev=null,A.prototype.end=function(e,t,n){var r=this._writableState;return"function"==typeof e?(n=e,e=null,t=null):"function"==typeof t&&(n=t,t=null),null!=e&&this.write(e,t),r.corked&&(r.corked=1,this.uncork()),r.ending||function(e,t,n){t.ending=!0,C(e,t),n&&(t.finished?Tr(n):e.once("finish",n)),t.ended=!0,e.writable=!1}(this,r,n),this},Object.defineProperty(A.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(A.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),A.prototype.destroy=s.destroy,A.prototype._undestroy=s.undestroy,A.prototype._destroy=function(e,t){t(e)},jf}function Kf(){if(Ff)return zf;Ff=1;var e=Object.keys||function(e){var t=[];for(var n in e)t.push(n);return t};zf=a;var t=ih(),n=Vf();Jr(a,t);for(var r=e(n.prototype),i=0;i>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function i(e){var t=this.lastTotal-this.lastNeed,n=function(e,t){if(128!=(192&t[0]))return e.lastNeed=0,"�";if(e.lastNeed>1&&t.length>1){if(128!=(192&t[1]))return e.lastNeed=1,"�";if(e.lastNeed>2&&t.length>2&&128!=(192&t[2]))return e.lastNeed=2,"�"}}(this,e);return void 0!==n?n:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(e.copy(this.lastChar,t,0,e.length),void(this.lastNeed-=e.length))}function o(e,t){if((e.length-t)%2==0){var n=e.toString("utf16le",t);if(n){var r=n.charCodeAt(n.length-1);if(r>=55296&&r<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],n.slice(0,-1)}return n}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function a(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var n=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,n)}return t}function s(e,t){var n=(e.length-t)%3;return 0===n?e.toString("base64",t):(this.lastNeed=3-n,this.lastTotal=3,1===n?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-n))}function u(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function l(e){return e.toString(this.encoding)}function c(e){return e&&e.length?this.write(e):""}return $f.StringDecoder=n,n.prototype.write=function(e){if(0===e.length)return"";var t,n;if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";n=this.lastNeed,this.lastNeed=0}else n=0;return n=0?(o>0&&(e.lastNeed=o-1),o):--i=0?(o>0&&(e.lastNeed=o-2),o):--i=0?(o>0&&(2===o?o=0:e.lastNeed=o-3),o):0}(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=n;var i=e.length-(n-this.lastNeed);return e.copy(this.lastChar,0,i),e.toString("utf8",t,i)},n.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length},$f}var Gf=If.codes.ERR_STREAM_PREMATURE_CLOSE;function Qf(){}var Zf,Xf,Jf,eh,th,nh,rh=function e(t,n,r){if("function"==typeof n)return e(t,null,n);n||(n={}),r=function(e){var t=!1;return function(){if(!t){t=!0;for(var n=arguments.length,r=new Array(n),i=0;i0?this.tail.next=t:this.head=t,this.tail=t,++this.length}},{key:"unshift",value:function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length}},{key:"shift",value:function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(e){if(0===this.length)return"";for(var t=this.head,n=""+t.data;t=t.next;)n+=e+t.data;return n}},{key:"concat",value:function(e){if(0===this.length)return o.alloc(0);for(var t,n,r,i=o.allocUnsafe(e>>>0),a=this.head,s=0;a;)t=a.data,n=i,r=s,o.prototype.copy.call(t,n,r),s+=a.data.length,a=a.next;return i}},{key:"consume",value:function(e,t){var n;return ei.length?i.length:e;if(o===i.length?r+=i:r+=i.slice(0,e),0==(e-=o)){o===i.length?(++n,t.next?this.head=t.next:this.head=this.tail=null):(this.head=t,t.data=i.slice(o));break}++n}return this.length-=n,r}},{key:"_getBuffer",value:function(e){var t=o.allocUnsafe(e),n=this.head,r=1;for(n.data.copy(t),e-=n.data.length;n=n.next;){var i=n.data,a=e>i.length?i.length:e;if(i.copy(t,t.length-e,0,a),0==(e-=a)){a===i.length?(++r,n.next?this.head=n.next:this.head=this.tail=null):(this.head=n,n.data=i.slice(a));break}++r}return this.length-=r,t}},{key:s,value:function(e,n){return a(this,t(t({},n),{},{depth:0,customInspect:!1}))}}],i&&r(n.prototype,i),Object.defineProperty(n,"prototype",{writable:!1}),e}(),kf}(),d=Lf,f=Wf.getHighWaterMark,h=If.codes,p=h.ERR_INVALID_ARG_TYPE,m=h.ERR_STREAM_PUSH_AFTER_EOF,g=h.ERR_METHOD_NOT_IMPLEMENTED,v=h.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;Jr(A,r);var y=d.errorOrDestroy,b=["error","close","destroy","pause","resume"];function w(t,n,r){e=e||Kf(),t=t||{},"boolean"!=typeof r&&(r=n instanceof e),this.objectMode=!!t.objectMode,r&&(this.objectMode=this.objectMode||!!t.readableObjectMode),this.highWaterMark=f(this,t,"readableHighWaterMark",r),this.buffer=new c,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=!1!==t.emitClose,this.autoDestroy=!!t.autoDestroy,this.destroyed=!1,this.defaultEncoding=t.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,t.encoding&&(s||(s=Yf().StringDecoder),this.decoder=new s(t.encoding),this.encoding=t.encoding)}function A(t){if(e=e||Kf(),!(this instanceof A))return new A(t);var n=this instanceof e;this._readableState=new w(t,this,n),this.readable=!0,t&&("function"==typeof t.read&&(this._read=t.read),"function"==typeof t.destroy&&(this._destroy=t.destroy)),r.call(this)}function _(e,n,r,a,s){t("readableAddChunk",n);var u,l=e._readableState;if(null===n)l.reading=!1,function(e,n){if(t("onEofChunk"),!n.ended){if(n.decoder){var r=n.decoder.end();r&&r.length&&(n.buffer.push(r),n.length+=n.objectMode?1:r.length)}n.ended=!0,n.sync?M(e):(n.needReadable=!1,n.emittedReadable||(n.emittedReadable=!0,C(e)))}}(e,l);else if(s||(u=function(e,t){var n,r;return r=t,i.isBuffer(r)||r instanceof o||"string"==typeof t||void 0===t||e.objectMode||(n=new p("chunk",["string","Buffer","Uint8Array"],t)),n}(l,n)),u)y(e,u);else if(l.objectMode||n&&n.length>0)if("string"==typeof n||l.objectMode||Object.getPrototypeOf(n)===i.prototype||(n=function(e){return i.from(e)}(n)),a)l.endEmitted?y(e,new v):E(e,l,n,!0);else if(l.ended)y(e,new m);else{if(l.destroyed)return!1;l.reading=!1,l.decoder&&!r?(n=l.decoder.write(n),l.objectMode||0!==n.length?E(e,l,n,!1):x(e,l)):E(e,l,n,!1)}else a||(l.reading=!1,x(e,l));return!l.ended&&(l.lengtht.highWaterMark&&(t.highWaterMark=function(e){return e>=S?e=S:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function M(e){var n=e._readableState;t("emitReadable",n.needReadable,n.emittedReadable),n.needReadable=!1,n.emittedReadable||(t("emitReadable",n.flowing),n.emittedReadable=!0,Tr(C,e))}function C(e){var n=e._readableState;t("emitReadable_",n.destroyed,n.length,n.ended),n.destroyed||!n.length&&!n.ended||(e.emit("readable"),n.emittedReadable=!1),n.needReadable=!n.flowing&&!n.ended&&n.length<=n.highWaterMark,L(e)}function x(e,t){t.readingMore||(t.readingMore=!0,Tr(R,e,t))}function R(e,n){for(;!n.reading&&!n.ended&&(n.length0,t.resumeScheduled&&!t.paused?t.flowing=!0:e.listenerCount("data")>0&&e.resume()}function T(e){t("readable nexttick read 0"),e.read(0)}function P(e,n){t("resume",n.reading),n.reading||e.read(0),n.resumeScheduled=!1,e.emit("resume"),L(e),n.flowing&&!n.reading&&e.read(0)}function L(e){var n=e._readableState;for(t("flow",n.flowing);n.flowing&&null!==e.read(););}function I(e,t){return 0===t.length?null:(t.objectMode?n=t.buffer.shift():!e||e>=t.length?(n=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.first():t.buffer.concat(t.length),t.buffer.clear()):n=t.buffer.consume(e,t.decoder),n);var n}function N(e){var n=e._readableState;t("endReadable",n.endEmitted),n.endEmitted||(n.ended=!0,Tr(D,n,e))}function D(e,n){if(t("endReadableNT",e.endEmitted,e.length),!e.endEmitted&&0===e.length&&(e.endEmitted=!0,n.readable=!1,n.emit("end"),e.autoDestroy)){var r=n._writableState;(!r||r.autoDestroy&&r.finished)&&n.destroy()}}function B(e,t){for(var n=0,r=e.length;n=n.highWaterMark:n.length>0)||n.ended))return t("read: emitReadable",n.length,n.ended),0===n.length&&n.ended?N(this):M(this),null;if(0===(e=k(e,n))&&n.ended)return 0===n.length&&N(this),null;var i,o=n.needReadable;return t("need readable",o),(0===n.length||n.length-e0?I(e,n):null)?(n.needReadable=n.length<=n.highWaterMark,e=0):(n.length-=e,n.awaitDrain=0),0===n.length&&(n.ended||(n.needReadable=!0),r!==e&&n.ended&&N(this)),null!==i&&this.emit("data",i),i},A.prototype._read=function(e){y(this,new g("_read()"))},A.prototype.pipe=function(e,r){var i=this,o=this._readableState;switch(o.pipesCount){case 0:o.pipes=e;break;case 1:o.pipes=[o.pipes,e];break;default:o.pipes.push(e)}o.pipesCount+=1,t("pipe count=%d opts=%j",o.pipesCount,r);var a=r&&!1===r.end||e===Vr.stdout||e===Vr.stderr?p:s;function s(){t("onend"),e.end()}o.endEmitted?Tr(a):i.once("end",a),e.on("unpipe",(function n(r,a){t("onunpipe"),r===i&&a&&!1===a.hasUnpiped&&(a.hasUnpiped=!0,t("cleanup"),e.removeListener("close",f),e.removeListener("finish",h),e.removeListener("drain",u),e.removeListener("error",d),e.removeListener("unpipe",n),i.removeListener("end",s),i.removeListener("end",p),i.removeListener("data",c),l=!0,!o.awaitDrain||e._writableState&&!e._writableState.needDrain||u())}));var u=function(e){return function(){var r=e._readableState;t("pipeOnDrain",r.awaitDrain),r.awaitDrain&&r.awaitDrain--,0===r.awaitDrain&&n(e,"data")&&(r.flowing=!0,L(e))}}(i);e.on("drain",u);var l=!1;function c(n){t("ondata");var r=e.write(n);t("dest.write",r),!1===r&&((1===o.pipesCount&&o.pipes===e||o.pipesCount>1&&-1!==B(o.pipes,e))&&!l&&(t("false write response, pause",o.awaitDrain),o.awaitDrain++),i.pause())}function d(r){t("onerror",r),p(),e.removeListener("error",d),0===n(e,"error")&&y(e,r)}function f(){e.removeListener("finish",h),p()}function h(){t("onfinish"),e.removeListener("close",f),p()}function p(){t("unpipe"),i.unpipe(e)}return i.on("data",c),function(e,t,n){if("function"==typeof e.prependListener)return e.prependListener(t,n);e._events&&e._events[t]?Array.isArray(e._events[t])?e._events[t].unshift(n):e._events[t]=[n,e._events[t]]:e.on(t,n)}(e,"error",d),e.once("close",f),e.once("finish",h),e.emit("pipe",i),o.flowing||(t("pipe resume"),i.resume()),e},A.prototype.unpipe=function(e){var t=this._readableState,n={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,n)),this;if(!e){var r=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var o=0;o0,!1!==o.flowing&&this.resume()):"readable"===e&&(o.endEmitted||o.readableListening||(o.readableListening=o.needReadable=!0,o.flowing=!1,o.emittedReadable=!1,t("on readable",o.length,o.reading),o.length?M(this):o.reading||Tr(T,this))),i},A.prototype.addListener=A.prototype.on,A.prototype.removeListener=function(e,t){var n=r.prototype.removeListener.call(this,e,t);return"readable"===e&&Tr(O,this),n},A.prototype.removeAllListeners=function(e){var t=r.prototype.removeAllListeners.apply(this,arguments);return"readable"!==e&&void 0!==e||Tr(O,this),t},A.prototype.resume=function(){var e=this._readableState;return e.flowing||(t("resume"),e.flowing=!e.readableListening,function(e,t){t.resumeScheduled||(t.resumeScheduled=!0,Tr(P,e,t))}(this,e)),e.paused=!1,this},A.prototype.pause=function(){return t("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(t("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},A.prototype.wrap=function(e){var n=this,r=this._readableState,i=!1;for(var o in e.on("end",(function(){if(t("wrapped end"),r.decoder&&!r.ended){var e=r.decoder.end();e&&e.length&&n.push(e)}n.push(null)})),e.on("data",(function(o){t("wrapped data"),r.decoder&&(o=r.decoder.write(o)),r.objectMode&&null==o||(r.objectMode||o&&o.length)&&(n.push(o)||(i=!0,e.pause()))})),e)void 0===this[o]&&"function"==typeof e[o]&&(this[o]=function(t){return function(){return e[t].apply(e,arguments)}}(o));for(var a=0;a0,(function(e){r||(r=e),e&&o.forEach(Sh),a||(o.forEach(Sh),i(r))}))}));return t.reduce(kh)};!function(e,t){(t=xf.exports=ih()).Stream=t,t.Readable=t,t.Writable=Vf(),t.Duplex=Kf(),t.Transform=oh,t.PassThrough=vh,t.finished=rh,t.pipeline=Mh}(0,xf.exports);var Ch=xf.exports,xh={exports:{}},Rh={exports:{}};!function(e,t){function n(e,t){if(!e)throw new Error(t||"Assertion failed")}function r(e,t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}function i(e,t,n){if(i.isBN(e))return e;this.negative=0,this.words=null,this.length=0,this.red=null,null!==e&&("le"!==t&&"be"!==t||(n=t,t=10),this._init(e||0,t||10,n||"be"))}var o;"object"==typeof e?e.exports=i:t.BN=i,i.BN=i,i.wordSize=26;try{o="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:yr.Buffer}catch(e){}function a(e,t){var r=e.charCodeAt(t);return r>=48&&r<=57?r-48:r>=65&&r<=70?r-55:r>=97&&r<=102?r-87:void n(!1,"Invalid character in "+e)}function s(e,t,n){var r=a(e,n);return n-1>=t&&(r|=a(e,n-1)<<4),r}function u(e,t,r,i){for(var o=0,a=0,s=Math.min(e.length,r),u=t;u=49?l-49+10:l>=17?l-17+10:l,n(l>=0&&a0?e:t},i.min=function(e,t){return e.cmp(t)<0?e:t},i.prototype._init=function(e,t,r){if("number"==typeof e)return this._initNumber(e,t,r);if("object"==typeof e)return this._initArray(e,t,r);"hex"===t&&(t=16),n(t===(0|t)&&t>=2&&t<=36);var i=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&(i++,this.negative=1),i=0;i-=3)a=e[i]|e[i-1]<<8|e[i-2]<<16,this.words[o]|=a<>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);else if("le"===r)for(i=0,o=0;i>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);return this._strip()},i.prototype._parseHex=function(e,t,n){this.length=Math.ceil((e.length-t)/6),this.words=new Array(this.length);for(var r=0;r=t;r-=2)i=s(e,t,r)<=18?(o-=18,a+=1,this.words[a]|=i>>>26):o+=8;else for(r=(e.length-t)%2==0?t+1:t;r=18?(o-=18,a+=1,this.words[a]|=i>>>26):o+=8;this._strip()},i.prototype._parseBase=function(e,t,n){this.words=[0],this.length=1;for(var r=0,i=1;i<=67108863;i*=t)r++;r--,i=i/t|0;for(var o=e.length-n,a=o%r,s=Math.min(o,o-a)+n,l=0,c=n;c1&&0===this.words[this.length-1];)this.length--;return this._normSign()},i.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},"undefined"!=typeof Symbol&&"function"==typeof Symbol.for)try{i.prototype[Symbol.for("nodejs.util.inspect.custom")]=c}catch(e){i.prototype.inspect=c}else i.prototype.inspect=c;function c(){return(this.red?""}var d=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],f=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],h=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function p(e,t,n){n.negative=t.negative^e.negative;var r=e.length+t.length|0;n.length=r,r=r-1|0;var i=0|e.words[0],o=0|t.words[0],a=i*o,s=67108863&a,u=a/67108864|0;n.words[0]=s;for(var l=1;l>>26,d=67108863&u,f=Math.min(l,t.length-1),h=Math.max(0,l-e.length+1);h<=f;h++){var p=l-h|0;c+=(a=(i=0|e.words[p])*(o=0|t.words[h])+d)/67108864|0,d=67108863&a}n.words[l]=0|d,u=0|c}return 0!==u?n.words[l]=0|u:n.length--,n._strip()}i.prototype.toString=function(e,t){var r;if(t=0|t||1,16===(e=e||10)||"hex"===e){r="";for(var i=0,o=0,a=0;a>>24-i&16777215,(i+=2)>=26&&(i-=26,a--),r=0!==o||a!==this.length-1?d[6-u.length]+u+r:u+r}for(0!==o&&(r=o.toString(16)+r);r.length%t!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}if(e===(0|e)&&e>=2&&e<=36){var l=f[e],c=h[e];r="";var p=this.clone();for(p.negative=0;!p.isZero();){var m=p.modrn(c).toString(e);r=(p=p.idivn(c)).isZero()?m+r:d[l-m.length]+m+r}for(this.isZero()&&(r="0"+r);r.length%t!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}n(!1,"Base should be between 2 and 36")},i.prototype.toNumber=function(){var e=this.words[0];return 2===this.length?e+=67108864*this.words[1]:3===this.length&&1===this.words[2]?e+=4503599627370496+67108864*this.words[1]:this.length>2&&n(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},i.prototype.toJSON=function(){return this.toString(16,2)},o&&(i.prototype.toBuffer=function(e,t){return this.toArrayLike(o,e,t)}),i.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},i.prototype.toArrayLike=function(e,t,r){this._strip();var i=this.byteLength(),o=r||Math.max(1,i);n(i<=o,"byte array longer than desired length"),n(o>0,"Requested array length <= 0");var a=function(e,t){return e.allocUnsafe?e.allocUnsafe(t):new e(t)}(e,o);return this["_toArrayLike"+("le"===t?"LE":"BE")](a,i),a},i.prototype._toArrayLikeLE=function(e,t){for(var n=0,r=0,i=0,o=0;i>8&255),n>16&255),6===o?(n>24&255),r=0,o=0):(r=a>>>24,o+=2)}if(n=0&&(e[n--]=a>>8&255),n>=0&&(e[n--]=a>>16&255),6===o?(n>=0&&(e[n--]=a>>24&255),r=0,o=0):(r=a>>>24,o+=2)}if(n>=0)for(e[n--]=r;n>=0;)e[n--]=0},Math.clz32?i.prototype._countBits=function(e){return 32-Math.clz32(e)}:i.prototype._countBits=function(e){var t=e,n=0;return t>=4096&&(n+=13,t>>>=13),t>=64&&(n+=7,t>>>=7),t>=8&&(n+=4,t>>>=4),t>=2&&(n+=2,t>>>=2),n+t},i.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,n=0;return 0==(8191&t)&&(n+=13,t>>>=13),0==(127&t)&&(n+=7,t>>>=7),0==(15&t)&&(n+=4,t>>>=4),0==(3&t)&&(n+=2,t>>>=2),0==(1&t)&&n++,n},i.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return 26*(this.length-1)+t},i.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;te.length?this.clone().ior(e):e.clone().ior(this)},i.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},i.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var n=0;ne.length?this.clone().iand(e):e.clone().iand(this)},i.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},i.prototype.iuxor=function(e){var t,n;this.length>e.length?(t=this,n=e):(t=e,n=this);for(var r=0;re.length?this.clone().ixor(e):e.clone().ixor(this)},i.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},i.prototype.inotn=function(e){n("number"==typeof e&&e>=0);var t=0|Math.ceil(e/26),r=e%26;this._expand(t),r>0&&t--;for(var i=0;i0&&(this.words[i]=~this.words[i]&67108863>>26-r),this._strip()},i.prototype.notn=function(e){return this.clone().inotn(e)},i.prototype.setn=function(e,t){n("number"==typeof e&&e>=0);var r=e/26|0,i=e%26;return this._expand(r+1),this.words[r]=t?this.words[r]|1<e.length?(n=this,r=e):(n=e,r=this);for(var i=0,o=0;o>>26;for(;0!==i&&o>>26;if(this.length=n.length,0!==i)this.words[this.length]=i,this.length++;else if(n!==this)for(;oe.length?this.clone().iadd(e):e.clone().iadd(this)},i.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var t=this.iadd(e);return e.negative=1,t._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var n,r,i=this.cmp(e);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(n=this,r=e):(n=e,r=this);for(var o=0,a=0;a>26,this.words[a]=67108863&t;for(;0!==o&&a>26,this.words[a]=67108863&t;if(0===o&&a>>13,h=0|a[1],p=8191&h,m=h>>>13,g=0|a[2],v=8191&g,y=g>>>13,b=0|a[3],w=8191&b,A=b>>>13,_=0|a[4],E=8191&_,S=_>>>13,k=0|a[5],M=8191&k,C=k>>>13,x=0|a[6],R=8191&x,O=x>>>13,T=0|a[7],P=8191&T,L=T>>>13,I=0|a[8],N=8191&I,D=I>>>13,B=0|a[9],j=8191&B,U=B>>>13,z=0|s[0],F=8191&z,q=z>>>13,W=0|s[1],V=8191&W,K=W>>>13,H=0|s[2],$=8191&H,Y=H>>>13,G=0|s[3],Q=8191&G,Z=G>>>13,X=0|s[4],J=8191&X,ee=X>>>13,te=0|s[5],ne=8191&te,re=te>>>13,ie=0|s[6],oe=8191&ie,ae=ie>>>13,se=0|s[7],ue=8191&se,le=se>>>13,ce=0|s[8],de=8191&ce,fe=ce>>>13,he=0|s[9],pe=8191&he,me=he>>>13;n.negative=e.negative^t.negative,n.length=19;var ge=(l+(r=Math.imul(d,F))|0)+((8191&(i=(i=Math.imul(d,q))+Math.imul(f,F)|0))<<13)|0;l=((o=Math.imul(f,q))+(i>>>13)|0)+(ge>>>26)|0,ge&=67108863,r=Math.imul(p,F),i=(i=Math.imul(p,q))+Math.imul(m,F)|0,o=Math.imul(m,q);var ve=(l+(r=r+Math.imul(d,V)|0)|0)+((8191&(i=(i=i+Math.imul(d,K)|0)+Math.imul(f,V)|0))<<13)|0;l=((o=o+Math.imul(f,K)|0)+(i>>>13)|0)+(ve>>>26)|0,ve&=67108863,r=Math.imul(v,F),i=(i=Math.imul(v,q))+Math.imul(y,F)|0,o=Math.imul(y,q),r=r+Math.imul(p,V)|0,i=(i=i+Math.imul(p,K)|0)+Math.imul(m,V)|0,o=o+Math.imul(m,K)|0;var ye=(l+(r=r+Math.imul(d,$)|0)|0)+((8191&(i=(i=i+Math.imul(d,Y)|0)+Math.imul(f,$)|0))<<13)|0;l=((o=o+Math.imul(f,Y)|0)+(i>>>13)|0)+(ye>>>26)|0,ye&=67108863,r=Math.imul(w,F),i=(i=Math.imul(w,q))+Math.imul(A,F)|0,o=Math.imul(A,q),r=r+Math.imul(v,V)|0,i=(i=i+Math.imul(v,K)|0)+Math.imul(y,V)|0,o=o+Math.imul(y,K)|0,r=r+Math.imul(p,$)|0,i=(i=i+Math.imul(p,Y)|0)+Math.imul(m,$)|0,o=o+Math.imul(m,Y)|0;var be=(l+(r=r+Math.imul(d,Q)|0)|0)+((8191&(i=(i=i+Math.imul(d,Z)|0)+Math.imul(f,Q)|0))<<13)|0;l=((o=o+Math.imul(f,Z)|0)+(i>>>13)|0)+(be>>>26)|0,be&=67108863,r=Math.imul(E,F),i=(i=Math.imul(E,q))+Math.imul(S,F)|0,o=Math.imul(S,q),r=r+Math.imul(w,V)|0,i=(i=i+Math.imul(w,K)|0)+Math.imul(A,V)|0,o=o+Math.imul(A,K)|0,r=r+Math.imul(v,$)|0,i=(i=i+Math.imul(v,Y)|0)+Math.imul(y,$)|0,o=o+Math.imul(y,Y)|0,r=r+Math.imul(p,Q)|0,i=(i=i+Math.imul(p,Z)|0)+Math.imul(m,Q)|0,o=o+Math.imul(m,Z)|0;var we=(l+(r=r+Math.imul(d,J)|0)|0)+((8191&(i=(i=i+Math.imul(d,ee)|0)+Math.imul(f,J)|0))<<13)|0;l=((o=o+Math.imul(f,ee)|0)+(i>>>13)|0)+(we>>>26)|0,we&=67108863,r=Math.imul(M,F),i=(i=Math.imul(M,q))+Math.imul(C,F)|0,o=Math.imul(C,q),r=r+Math.imul(E,V)|0,i=(i=i+Math.imul(E,K)|0)+Math.imul(S,V)|0,o=o+Math.imul(S,K)|0,r=r+Math.imul(w,$)|0,i=(i=i+Math.imul(w,Y)|0)+Math.imul(A,$)|0,o=o+Math.imul(A,Y)|0,r=r+Math.imul(v,Q)|0,i=(i=i+Math.imul(v,Z)|0)+Math.imul(y,Q)|0,o=o+Math.imul(y,Z)|0,r=r+Math.imul(p,J)|0,i=(i=i+Math.imul(p,ee)|0)+Math.imul(m,J)|0,o=o+Math.imul(m,ee)|0;var Ae=(l+(r=r+Math.imul(d,ne)|0)|0)+((8191&(i=(i=i+Math.imul(d,re)|0)+Math.imul(f,ne)|0))<<13)|0;l=((o=o+Math.imul(f,re)|0)+(i>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,r=Math.imul(R,F),i=(i=Math.imul(R,q))+Math.imul(O,F)|0,o=Math.imul(O,q),r=r+Math.imul(M,V)|0,i=(i=i+Math.imul(M,K)|0)+Math.imul(C,V)|0,o=o+Math.imul(C,K)|0,r=r+Math.imul(E,$)|0,i=(i=i+Math.imul(E,Y)|0)+Math.imul(S,$)|0,o=o+Math.imul(S,Y)|0,r=r+Math.imul(w,Q)|0,i=(i=i+Math.imul(w,Z)|0)+Math.imul(A,Q)|0,o=o+Math.imul(A,Z)|0,r=r+Math.imul(v,J)|0,i=(i=i+Math.imul(v,ee)|0)+Math.imul(y,J)|0,o=o+Math.imul(y,ee)|0,r=r+Math.imul(p,ne)|0,i=(i=i+Math.imul(p,re)|0)+Math.imul(m,ne)|0,o=o+Math.imul(m,re)|0;var _e=(l+(r=r+Math.imul(d,oe)|0)|0)+((8191&(i=(i=i+Math.imul(d,ae)|0)+Math.imul(f,oe)|0))<<13)|0;l=((o=o+Math.imul(f,ae)|0)+(i>>>13)|0)+(_e>>>26)|0,_e&=67108863,r=Math.imul(P,F),i=(i=Math.imul(P,q))+Math.imul(L,F)|0,o=Math.imul(L,q),r=r+Math.imul(R,V)|0,i=(i=i+Math.imul(R,K)|0)+Math.imul(O,V)|0,o=o+Math.imul(O,K)|0,r=r+Math.imul(M,$)|0,i=(i=i+Math.imul(M,Y)|0)+Math.imul(C,$)|0,o=o+Math.imul(C,Y)|0,r=r+Math.imul(E,Q)|0,i=(i=i+Math.imul(E,Z)|0)+Math.imul(S,Q)|0,o=o+Math.imul(S,Z)|0,r=r+Math.imul(w,J)|0,i=(i=i+Math.imul(w,ee)|0)+Math.imul(A,J)|0,o=o+Math.imul(A,ee)|0,r=r+Math.imul(v,ne)|0,i=(i=i+Math.imul(v,re)|0)+Math.imul(y,ne)|0,o=o+Math.imul(y,re)|0,r=r+Math.imul(p,oe)|0,i=(i=i+Math.imul(p,ae)|0)+Math.imul(m,oe)|0,o=o+Math.imul(m,ae)|0;var Ee=(l+(r=r+Math.imul(d,ue)|0)|0)+((8191&(i=(i=i+Math.imul(d,le)|0)+Math.imul(f,ue)|0))<<13)|0;l=((o=o+Math.imul(f,le)|0)+(i>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,r=Math.imul(N,F),i=(i=Math.imul(N,q))+Math.imul(D,F)|0,o=Math.imul(D,q),r=r+Math.imul(P,V)|0,i=(i=i+Math.imul(P,K)|0)+Math.imul(L,V)|0,o=o+Math.imul(L,K)|0,r=r+Math.imul(R,$)|0,i=(i=i+Math.imul(R,Y)|0)+Math.imul(O,$)|0,o=o+Math.imul(O,Y)|0,r=r+Math.imul(M,Q)|0,i=(i=i+Math.imul(M,Z)|0)+Math.imul(C,Q)|0,o=o+Math.imul(C,Z)|0,r=r+Math.imul(E,J)|0,i=(i=i+Math.imul(E,ee)|0)+Math.imul(S,J)|0,o=o+Math.imul(S,ee)|0,r=r+Math.imul(w,ne)|0,i=(i=i+Math.imul(w,re)|0)+Math.imul(A,ne)|0,o=o+Math.imul(A,re)|0,r=r+Math.imul(v,oe)|0,i=(i=i+Math.imul(v,ae)|0)+Math.imul(y,oe)|0,o=o+Math.imul(y,ae)|0,r=r+Math.imul(p,ue)|0,i=(i=i+Math.imul(p,le)|0)+Math.imul(m,ue)|0,o=o+Math.imul(m,le)|0;var Se=(l+(r=r+Math.imul(d,de)|0)|0)+((8191&(i=(i=i+Math.imul(d,fe)|0)+Math.imul(f,de)|0))<<13)|0;l=((o=o+Math.imul(f,fe)|0)+(i>>>13)|0)+(Se>>>26)|0,Se&=67108863,r=Math.imul(j,F),i=(i=Math.imul(j,q))+Math.imul(U,F)|0,o=Math.imul(U,q),r=r+Math.imul(N,V)|0,i=(i=i+Math.imul(N,K)|0)+Math.imul(D,V)|0,o=o+Math.imul(D,K)|0,r=r+Math.imul(P,$)|0,i=(i=i+Math.imul(P,Y)|0)+Math.imul(L,$)|0,o=o+Math.imul(L,Y)|0,r=r+Math.imul(R,Q)|0,i=(i=i+Math.imul(R,Z)|0)+Math.imul(O,Q)|0,o=o+Math.imul(O,Z)|0,r=r+Math.imul(M,J)|0,i=(i=i+Math.imul(M,ee)|0)+Math.imul(C,J)|0,o=o+Math.imul(C,ee)|0,r=r+Math.imul(E,ne)|0,i=(i=i+Math.imul(E,re)|0)+Math.imul(S,ne)|0,o=o+Math.imul(S,re)|0,r=r+Math.imul(w,oe)|0,i=(i=i+Math.imul(w,ae)|0)+Math.imul(A,oe)|0,o=o+Math.imul(A,ae)|0,r=r+Math.imul(v,ue)|0,i=(i=i+Math.imul(v,le)|0)+Math.imul(y,ue)|0,o=o+Math.imul(y,le)|0,r=r+Math.imul(p,de)|0,i=(i=i+Math.imul(p,fe)|0)+Math.imul(m,de)|0,o=o+Math.imul(m,fe)|0;var ke=(l+(r=r+Math.imul(d,pe)|0)|0)+((8191&(i=(i=i+Math.imul(d,me)|0)+Math.imul(f,pe)|0))<<13)|0;l=((o=o+Math.imul(f,me)|0)+(i>>>13)|0)+(ke>>>26)|0,ke&=67108863,r=Math.imul(j,V),i=(i=Math.imul(j,K))+Math.imul(U,V)|0,o=Math.imul(U,K),r=r+Math.imul(N,$)|0,i=(i=i+Math.imul(N,Y)|0)+Math.imul(D,$)|0,o=o+Math.imul(D,Y)|0,r=r+Math.imul(P,Q)|0,i=(i=i+Math.imul(P,Z)|0)+Math.imul(L,Q)|0,o=o+Math.imul(L,Z)|0,r=r+Math.imul(R,J)|0,i=(i=i+Math.imul(R,ee)|0)+Math.imul(O,J)|0,o=o+Math.imul(O,ee)|0,r=r+Math.imul(M,ne)|0,i=(i=i+Math.imul(M,re)|0)+Math.imul(C,ne)|0,o=o+Math.imul(C,re)|0,r=r+Math.imul(E,oe)|0,i=(i=i+Math.imul(E,ae)|0)+Math.imul(S,oe)|0,o=o+Math.imul(S,ae)|0,r=r+Math.imul(w,ue)|0,i=(i=i+Math.imul(w,le)|0)+Math.imul(A,ue)|0,o=o+Math.imul(A,le)|0,r=r+Math.imul(v,de)|0,i=(i=i+Math.imul(v,fe)|0)+Math.imul(y,de)|0,o=o+Math.imul(y,fe)|0;var Me=(l+(r=r+Math.imul(p,pe)|0)|0)+((8191&(i=(i=i+Math.imul(p,me)|0)+Math.imul(m,pe)|0))<<13)|0;l=((o=o+Math.imul(m,me)|0)+(i>>>13)|0)+(Me>>>26)|0,Me&=67108863,r=Math.imul(j,$),i=(i=Math.imul(j,Y))+Math.imul(U,$)|0,o=Math.imul(U,Y),r=r+Math.imul(N,Q)|0,i=(i=i+Math.imul(N,Z)|0)+Math.imul(D,Q)|0,o=o+Math.imul(D,Z)|0,r=r+Math.imul(P,J)|0,i=(i=i+Math.imul(P,ee)|0)+Math.imul(L,J)|0,o=o+Math.imul(L,ee)|0,r=r+Math.imul(R,ne)|0,i=(i=i+Math.imul(R,re)|0)+Math.imul(O,ne)|0,o=o+Math.imul(O,re)|0,r=r+Math.imul(M,oe)|0,i=(i=i+Math.imul(M,ae)|0)+Math.imul(C,oe)|0,o=o+Math.imul(C,ae)|0,r=r+Math.imul(E,ue)|0,i=(i=i+Math.imul(E,le)|0)+Math.imul(S,ue)|0,o=o+Math.imul(S,le)|0,r=r+Math.imul(w,de)|0,i=(i=i+Math.imul(w,fe)|0)+Math.imul(A,de)|0,o=o+Math.imul(A,fe)|0;var Ce=(l+(r=r+Math.imul(v,pe)|0)|0)+((8191&(i=(i=i+Math.imul(v,me)|0)+Math.imul(y,pe)|0))<<13)|0;l=((o=o+Math.imul(y,me)|0)+(i>>>13)|0)+(Ce>>>26)|0,Ce&=67108863,r=Math.imul(j,Q),i=(i=Math.imul(j,Z))+Math.imul(U,Q)|0,o=Math.imul(U,Z),r=r+Math.imul(N,J)|0,i=(i=i+Math.imul(N,ee)|0)+Math.imul(D,J)|0,o=o+Math.imul(D,ee)|0,r=r+Math.imul(P,ne)|0,i=(i=i+Math.imul(P,re)|0)+Math.imul(L,ne)|0,o=o+Math.imul(L,re)|0,r=r+Math.imul(R,oe)|0,i=(i=i+Math.imul(R,ae)|0)+Math.imul(O,oe)|0,o=o+Math.imul(O,ae)|0,r=r+Math.imul(M,ue)|0,i=(i=i+Math.imul(M,le)|0)+Math.imul(C,ue)|0,o=o+Math.imul(C,le)|0,r=r+Math.imul(E,de)|0,i=(i=i+Math.imul(E,fe)|0)+Math.imul(S,de)|0,o=o+Math.imul(S,fe)|0;var xe=(l+(r=r+Math.imul(w,pe)|0)|0)+((8191&(i=(i=i+Math.imul(w,me)|0)+Math.imul(A,pe)|0))<<13)|0;l=((o=o+Math.imul(A,me)|0)+(i>>>13)|0)+(xe>>>26)|0,xe&=67108863,r=Math.imul(j,J),i=(i=Math.imul(j,ee))+Math.imul(U,J)|0,o=Math.imul(U,ee),r=r+Math.imul(N,ne)|0,i=(i=i+Math.imul(N,re)|0)+Math.imul(D,ne)|0,o=o+Math.imul(D,re)|0,r=r+Math.imul(P,oe)|0,i=(i=i+Math.imul(P,ae)|0)+Math.imul(L,oe)|0,o=o+Math.imul(L,ae)|0,r=r+Math.imul(R,ue)|0,i=(i=i+Math.imul(R,le)|0)+Math.imul(O,ue)|0,o=o+Math.imul(O,le)|0,r=r+Math.imul(M,de)|0,i=(i=i+Math.imul(M,fe)|0)+Math.imul(C,de)|0,o=o+Math.imul(C,fe)|0;var Re=(l+(r=r+Math.imul(E,pe)|0)|0)+((8191&(i=(i=i+Math.imul(E,me)|0)+Math.imul(S,pe)|0))<<13)|0;l=((o=o+Math.imul(S,me)|0)+(i>>>13)|0)+(Re>>>26)|0,Re&=67108863,r=Math.imul(j,ne),i=(i=Math.imul(j,re))+Math.imul(U,ne)|0,o=Math.imul(U,re),r=r+Math.imul(N,oe)|0,i=(i=i+Math.imul(N,ae)|0)+Math.imul(D,oe)|0,o=o+Math.imul(D,ae)|0,r=r+Math.imul(P,ue)|0,i=(i=i+Math.imul(P,le)|0)+Math.imul(L,ue)|0,o=o+Math.imul(L,le)|0,r=r+Math.imul(R,de)|0,i=(i=i+Math.imul(R,fe)|0)+Math.imul(O,de)|0,o=o+Math.imul(O,fe)|0;var Oe=(l+(r=r+Math.imul(M,pe)|0)|0)+((8191&(i=(i=i+Math.imul(M,me)|0)+Math.imul(C,pe)|0))<<13)|0;l=((o=o+Math.imul(C,me)|0)+(i>>>13)|0)+(Oe>>>26)|0,Oe&=67108863,r=Math.imul(j,oe),i=(i=Math.imul(j,ae))+Math.imul(U,oe)|0,o=Math.imul(U,ae),r=r+Math.imul(N,ue)|0,i=(i=i+Math.imul(N,le)|0)+Math.imul(D,ue)|0,o=o+Math.imul(D,le)|0,r=r+Math.imul(P,de)|0,i=(i=i+Math.imul(P,fe)|0)+Math.imul(L,de)|0,o=o+Math.imul(L,fe)|0;var Te=(l+(r=r+Math.imul(R,pe)|0)|0)+((8191&(i=(i=i+Math.imul(R,me)|0)+Math.imul(O,pe)|0))<<13)|0;l=((o=o+Math.imul(O,me)|0)+(i>>>13)|0)+(Te>>>26)|0,Te&=67108863,r=Math.imul(j,ue),i=(i=Math.imul(j,le))+Math.imul(U,ue)|0,o=Math.imul(U,le),r=r+Math.imul(N,de)|0,i=(i=i+Math.imul(N,fe)|0)+Math.imul(D,de)|0,o=o+Math.imul(D,fe)|0;var Pe=(l+(r=r+Math.imul(P,pe)|0)|0)+((8191&(i=(i=i+Math.imul(P,me)|0)+Math.imul(L,pe)|0))<<13)|0;l=((o=o+Math.imul(L,me)|0)+(i>>>13)|0)+(Pe>>>26)|0,Pe&=67108863,r=Math.imul(j,de),i=(i=Math.imul(j,fe))+Math.imul(U,de)|0,o=Math.imul(U,fe);var Le=(l+(r=r+Math.imul(N,pe)|0)|0)+((8191&(i=(i=i+Math.imul(N,me)|0)+Math.imul(D,pe)|0))<<13)|0;l=((o=o+Math.imul(D,me)|0)+(i>>>13)|0)+(Le>>>26)|0,Le&=67108863;var Ie=(l+(r=Math.imul(j,pe))|0)+((8191&(i=(i=Math.imul(j,me))+Math.imul(U,pe)|0))<<13)|0;return l=((o=Math.imul(U,me))+(i>>>13)|0)+(Ie>>>26)|0,Ie&=67108863,u[0]=ge,u[1]=ve,u[2]=ye,u[3]=be,u[4]=we,u[5]=Ae,u[6]=_e,u[7]=Ee,u[8]=Se,u[9]=ke,u[10]=Me,u[11]=Ce,u[12]=xe,u[13]=Re,u[14]=Oe,u[15]=Te,u[16]=Pe,u[17]=Le,u[18]=Ie,0!==l&&(u[19]=l,n.length++),n};function g(e,t,n){n.negative=t.negative^e.negative,n.length=e.length+t.length;for(var r=0,i=0,o=0;o>>26)|0)>>>26,a&=67108863}n.words[o]=s,r=a,a=i}return 0!==r?n.words[o]=r:n.length--,n._strip()}function v(e,t,n){return g(e,t,n)}Math.imul||(m=p),i.prototype.mulTo=function(e,t){var n=this.length+e.length;return 10===this.length&&10===e.length?m(this,e,t):n<63?p(this,e,t):n<1024?g(this,e,t):v(this,e,t)},i.prototype.mul=function(e){var t=new i(null);return t.words=new Array(this.length+e.length),this.mulTo(e,t)},i.prototype.mulf=function(e){var t=new i(null);return t.words=new Array(this.length+e.length),v(this,e,t)},i.prototype.imul=function(e){return this.clone().mulTo(e,this)},i.prototype.imuln=function(e){var t=e<0;t&&(e=-e),n("number"==typeof e),n(e<67108864);for(var r=0,i=0;i>=26,r+=o/67108864|0,r+=a>>>26,this.words[i]=67108863&a}return 0!==r&&(this.words[i]=r,this.length++),t?this.ineg():this},i.prototype.muln=function(e){return this.clone().imuln(e)},i.prototype.sqr=function(){return this.mul(this)},i.prototype.isqr=function(){return this.imul(this.clone())},i.prototype.pow=function(e){var t=function(e){for(var t=new Array(e.bitLength()),n=0;n>>i&1}return t}(e);if(0===t.length)return new i(1);for(var n=this,r=0;r=0);var t,r=e%26,i=(e-r)/26,o=67108863>>>26-r<<26-r;if(0!==r){var a=0;for(t=0;t>>26-r}a&&(this.words[t]=a,this.length++)}if(0!==i){for(t=this.length-1;t>=0;t--)this.words[t+i]=this.words[t];for(t=0;t=0),i=t?(t-t%26)/26:0;var o=e%26,a=Math.min((e-o)/26,this.length),s=67108863^67108863>>>o<a)for(this.length-=a,l=0;l=0&&(0!==c||l>=i);l--){var d=0|this.words[l];this.words[l]=c<<26-o|d>>>o,c=d&s}return u&&0!==c&&(u.words[u.length++]=c),0===this.length&&(this.words[0]=0,this.length=1),this._strip()},i.prototype.ishrn=function(e,t,r){return n(0===this.negative),this.iushrn(e,t,r)},i.prototype.shln=function(e){return this.clone().ishln(e)},i.prototype.ushln=function(e){return this.clone().iushln(e)},i.prototype.shrn=function(e){return this.clone().ishrn(e)},i.prototype.ushrn=function(e){return this.clone().iushrn(e)},i.prototype.testn=function(e){n("number"==typeof e&&e>=0);var t=e%26,r=(e-t)/26,i=1<=0);var t=e%26,r=(e-t)/26;if(n(0===this.negative,"imaskn works only with positive numbers"),this.length<=r)return this;if(0!==t&&r++,this.length=Math.min(r,this.length),0!==t){var i=67108863^67108863>>>t<=67108864;t++)this.words[t]-=67108864,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},i.prototype.isubn=function(e){if(n("number"==typeof e),n(e<67108864),e<0)return this.iaddn(-e);if(0!==this.negative)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var t=0;t>26)-(u/67108864|0),this.words[i+r]=67108863&o}for(;i>26,this.words[i+r]=67108863&o;if(0===s)return this._strip();for(n(-1===s),s=0,i=0;i>26,this.words[i]=67108863&o;return this.negative=1,this._strip()},i.prototype._wordDiv=function(e,t){var n=(this.length,e.length),r=this.clone(),o=e,a=0|o.words[o.length-1];0!=(n=26-this._countBits(a))&&(o=o.ushln(n),r.iushln(n),a=0|o.words[o.length-1]);var s,u=r.length-o.length;if("mod"!==t){(s=new i(null)).length=u+1,s.words=new Array(s.length);for(var l=0;l=0;d--){var f=67108864*(0|r.words[o.length+d])+(0|r.words[o.length+d-1]);for(f=Math.min(f/a|0,67108863),r._ishlnsubmul(o,f,d);0!==r.negative;)f--,r.negative=0,r._ishlnsubmul(o,1,d),r.isZero()||(r.negative^=1);s&&(s.words[d]=f)}return s&&s._strip(),r._strip(),"div"!==t&&0!==n&&r.iushrn(n),{div:s||null,mod:r}},i.prototype.divmod=function(e,t,r){return n(!e.isZero()),this.isZero()?{div:new i(0),mod:new i(0)}:0!==this.negative&&0===e.negative?(s=this.neg().divmod(e,t),"mod"!==t&&(o=s.div.neg()),"div"!==t&&(a=s.mod.neg(),r&&0!==a.negative&&a.iadd(e)),{div:o,mod:a}):0===this.negative&&0!==e.negative?(s=this.divmod(e.neg(),t),"mod"!==t&&(o=s.div.neg()),{div:o,mod:s.mod}):0!=(this.negative&e.negative)?(s=this.neg().divmod(e.neg(),t),"div"!==t&&(a=s.mod.neg(),r&&0!==a.negative&&a.isub(e)),{div:s.div,mod:a}):e.length>this.length||this.cmp(e)<0?{div:new i(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new i(this.modrn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new i(this.modrn(e.words[0]))}:this._wordDiv(e,t);var o,a,s},i.prototype.div=function(e){return this.divmod(e,"div",!1).div},i.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},i.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},i.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var n=0!==t.div.negative?t.mod.isub(e):t.mod,r=e.ushrn(1),i=e.andln(1),o=n.cmp(r);return o<0||1===i&&0===o?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},i.prototype.modrn=function(e){var t=e<0;t&&(e=-e),n(e<=67108863);for(var r=(1<<26)%e,i=0,o=this.length-1;o>=0;o--)i=(r*i+(0|this.words[o]))%e;return t?-i:i},i.prototype.modn=function(e){return this.modrn(e)},i.prototype.idivn=function(e){var t=e<0;t&&(e=-e),n(e<=67108863);for(var r=0,i=this.length-1;i>=0;i--){var o=(0|this.words[i])+67108864*r;this.words[i]=o/e|0,r=o%e}return this._strip(),t?this.ineg():this},i.prototype.divn=function(e){return this.clone().idivn(e)},i.prototype.egcd=function(e){n(0===e.negative),n(!e.isZero());var t=this,r=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var o=new i(1),a=new i(0),s=new i(0),u=new i(1),l=0;t.isEven()&&r.isEven();)t.iushrn(1),r.iushrn(1),++l;for(var c=r.clone(),d=t.clone();!t.isZero();){for(var f=0,h=1;0==(t.words[0]&h)&&f<26;++f,h<<=1);if(f>0)for(t.iushrn(f);f-- >0;)(o.isOdd()||a.isOdd())&&(o.iadd(c),a.isub(d)),o.iushrn(1),a.iushrn(1);for(var p=0,m=1;0==(r.words[0]&m)&&p<26;++p,m<<=1);if(p>0)for(r.iushrn(p);p-- >0;)(s.isOdd()||u.isOdd())&&(s.iadd(c),u.isub(d)),s.iushrn(1),u.iushrn(1);t.cmp(r)>=0?(t.isub(r),o.isub(s),a.isub(u)):(r.isub(t),s.isub(o),u.isub(a))}return{a:s,b:u,gcd:r.iushln(l)}},i.prototype._invmp=function(e){n(0===e.negative),n(!e.isZero());var t=this,r=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var o,a=new i(1),s=new i(0),u=r.clone();t.cmpn(1)>0&&r.cmpn(1)>0;){for(var l=0,c=1;0==(t.words[0]&c)&&l<26;++l,c<<=1);if(l>0)for(t.iushrn(l);l-- >0;)a.isOdd()&&a.iadd(u),a.iushrn(1);for(var d=0,f=1;0==(r.words[0]&f)&&d<26;++d,f<<=1);if(d>0)for(r.iushrn(d);d-- >0;)s.isOdd()&&s.iadd(u),s.iushrn(1);t.cmp(r)>=0?(t.isub(r),a.isub(s)):(r.isub(t),s.isub(a))}return(o=0===t.cmpn(1)?a:s).cmpn(0)<0&&o.iadd(e),o},i.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),n=e.clone();t.negative=0,n.negative=0;for(var r=0;t.isEven()&&n.isEven();r++)t.iushrn(1),n.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;n.isEven();)n.iushrn(1);var i=t.cmp(n);if(i<0){var o=t;t=n,n=o}else if(0===i||0===n.cmpn(1))break;t.isub(n)}return n.iushln(r)},i.prototype.invm=function(e){return this.egcd(e).a.umod(e)},i.prototype.isEven=function(){return 0==(1&this.words[0])},i.prototype.isOdd=function(){return 1==(1&this.words[0])},i.prototype.andln=function(e){return this.words[0]&e},i.prototype.bincn=function(e){n("number"==typeof e);var t=e%26,r=(e-t)/26,i=1<>>26,s&=67108863,this.words[a]=s}return 0!==o&&(this.words[a]=o,this.length++),this},i.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},i.prototype.cmpn=function(e){var t,r=e<0;if(0!==this.negative&&!r)return-1;if(0===this.negative&&r)return 1;if(this._strip(),this.length>1)t=1;else{r&&(e=-e),n(e<=67108863,"Number is too big");var i=0|this.words[0];t=i===e?0:ie.length)return 1;if(this.length=0;n--){var r=0|this.words[n],i=0|e.words[n];if(r!==i){ri&&(t=1);break}}return t},i.prototype.gtn=function(e){return 1===this.cmpn(e)},i.prototype.gt=function(e){return 1===this.cmp(e)},i.prototype.gten=function(e){return this.cmpn(e)>=0},i.prototype.gte=function(e){return this.cmp(e)>=0},i.prototype.ltn=function(e){return-1===this.cmpn(e)},i.prototype.lt=function(e){return-1===this.cmp(e)},i.prototype.lten=function(e){return this.cmpn(e)<=0},i.prototype.lte=function(e){return this.cmp(e)<=0},i.prototype.eqn=function(e){return 0===this.cmpn(e)},i.prototype.eq=function(e){return 0===this.cmp(e)},i.red=function(e){return new S(e)},i.prototype.toRed=function(e){return n(!this.red,"Already a number in reduction context"),n(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},i.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},i.prototype._forceRed=function(e){return this.red=e,this},i.prototype.forceRed=function(e){return n(!this.red,"Already a number in reduction context"),this._forceRed(e)},i.prototype.redAdd=function(e){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},i.prototype.redIAdd=function(e){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},i.prototype.redSub=function(e){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},i.prototype.redISub=function(e){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},i.prototype.redShl=function(e){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},i.prototype.redMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},i.prototype.redIMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},i.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},i.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},i.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},i.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},i.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},i.prototype.redPow=function(e){return n(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var y={k256:null,p224:null,p192:null,p25519:null};function b(e,t){this.name=e,this.p=new i(t,16),this.n=this.p.bitLength(),this.k=new i(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function w(){b.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function A(){b.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function _(){b.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function E(){b.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function S(e){if("string"==typeof e){var t=i._prime(e);this.m=t.p,this.prime=t}else n(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function k(e){S.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new i(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}b.prototype._tmp=function(){var e=new i(null);return e.words=new Array(Math.ceil(this.n/13)),e},b.prototype.ireduce=function(e){var t,n=e;do{this.split(n,this.tmp),t=(n=(n=this.imulK(n)).iadd(this.tmp)).bitLength()}while(t>this.n);var r=t0?n.isub(this.p):void 0!==n.strip?n.strip():n._strip(),n},b.prototype.split=function(e,t){e.iushrn(this.n,0,t)},b.prototype.imulK=function(e){return e.imul(this.k)},r(w,b),w.prototype.split=function(e,t){for(var n=4194303,r=Math.min(e.length,9),i=0;i>>22,o=a}o>>>=22,e.words[i-10]=o,0===o&&e.length>10?e.length-=10:e.length-=9},w.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,n=0;n>>=26,e.words[n]=i,t=r}return 0!==t&&(e.words[e.length++]=t),e},i._prime=function(e){if(y[e])return y[e];var t;if("k256"===e)t=new w;else if("p224"===e)t=new A;else if("p192"===e)t=new _;else{if("p25519"!==e)throw new Error("Unknown prime "+e);t=new E}return y[e]=t,t},S.prototype._verify1=function(e){n(0===e.negative,"red works only with positives"),n(e.red,"red works only with red numbers")},S.prototype._verify2=function(e,t){n(0==(e.negative|t.negative),"red works only with positives"),n(e.red&&e.red===t.red,"red works only with red numbers")},S.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):(l(e,e.umod(this.m)._forceRed(this)),e)},S.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},S.prototype.add=function(e,t){this._verify2(e,t);var n=e.add(t);return n.cmp(this.m)>=0&&n.isub(this.m),n._forceRed(this)},S.prototype.iadd=function(e,t){this._verify2(e,t);var n=e.iadd(t);return n.cmp(this.m)>=0&&n.isub(this.m),n},S.prototype.sub=function(e,t){this._verify2(e,t);var n=e.sub(t);return n.cmpn(0)<0&&n.iadd(this.m),n._forceRed(this)},S.prototype.isub=function(e,t){this._verify2(e,t);var n=e.isub(t);return n.cmpn(0)<0&&n.iadd(this.m),n},S.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},S.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},S.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},S.prototype.isqr=function(e){return this.imul(e,e.clone())},S.prototype.sqr=function(e){return this.mul(e,e)},S.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(n(t%2==1),3===t){var r=this.m.add(new i(1)).iushrn(2);return this.pow(e,r)}for(var o=this.m.subn(1),a=0;!o.isZero()&&0===o.andln(1);)a++,o.iushrn(1);n(!o.isZero());var s=new i(1).toRed(this),u=s.redNeg(),l=this.m.subn(1).iushrn(1),c=this.m.bitLength();for(c=new i(2*c*c).toRed(this);0!==this.pow(c,l).cmp(u);)c.redIAdd(u);for(var d=this.pow(c,o),f=this.pow(e,o.addn(1).iushrn(1)),h=this.pow(e,o),p=a;0!==h.cmp(s);){for(var m=h,g=0;0!==m.cmp(s);g++)m=m.redSqr();n(g=0;r--){for(var l=t.words[r],c=u-1;c>=0;c--){var d=l>>c&1;o!==n[0]&&(o=this.sqr(o)),0!==d||0!==a?(a<<=1,a|=d,(4==++s||0===r&&0===c)&&(o=this.mul(o,n[a]),s=0,a=0)):s=0}u=26}return o},S.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},S.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},i.mont=function(e){return new k(e)},r(k,S),k.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},k.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},k.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var n=e.imul(t),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=n.isub(r).iushrn(this.shift),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):i.cmpn(0)<0&&(o=i.iadd(this.m)),o._forceRed(this)},k.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new i(0)._forceRed(this);var n=e.mul(t),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),o=n.isub(r).iushrn(this.shift),a=o;return o.cmp(this.m)>=0?a=o.isub(this.m):o.cmpn(0)<0&&(a=o.iadd(this.m)),a._forceRed(this)},k.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(Rh,hr);var Oh=Rh.exports,Th=Zr;function Ph(e){var t,n=e.modulus.byteLength();do{t=new Oh(Th(n))}while(t.cmp(e.modulus)>=0||!t.umod(e.prime1)||!t.umod(e.prime2));return t}function Lh(e,t){var n=function(e){var t=Ph(e);return{blinder:t.toRed(Oh.mont(e.modulus)).redPow(new Oh(e.publicExponent)).fromRed(),unblinder:t.invm(e.modulus)}}(t),r=t.modulus.byteLength(),i=new Oh(e).mul(n.blinder).umod(t.modulus),o=i.toRed(Oh.mont(t.prime1)),a=i.toRed(Oh.mont(t.prime2)),s=t.coefficient,u=t.prime1,l=t.prime2,c=o.redPow(t.exponent1).fromRed(),d=a.redPow(t.exponent2).fromRed(),f=c.isub(d).imul(s).umod(u).imul(l);return d.iadd(f).imul(n.unblinder).umod(t.modulus).toArrayLike(xn,"be",r)}Lh.getr=Ph;var Ih=Lh,Nh={},Dh={name:"elliptic",version:"6.5.4",description:"EC cryptography",main:"lib/elliptic.js",files:["lib"],scripts:{lint:"eslint lib test","lint:fix":"npm run lint -- --fix",unit:"istanbul test _mocha --reporter=spec test/index.js",test:"npm run lint && npm run unit",version:"grunt dist && git add dist/"},repository:{type:"git",url:"git@github.com:indutny/elliptic"},keywords:["EC","Elliptic","curve","Cryptography"],author:"Fedor Indutny ",license:"MIT",bugs:{url:"https://github.com/indutny/elliptic/issues"},homepage:"https://github.com/indutny/elliptic",devDependencies:{brfs:"^2.0.2",coveralls:"^3.1.0",eslint:"^7.6.0",grunt:"^1.2.1","grunt-browserify":"^5.3.0","grunt-cli":"^1.3.2","grunt-contrib-connect":"^3.0.0","grunt-contrib-copy":"^1.0.0","grunt-contrib-uglify":"^5.0.0","grunt-mocha-istanbul":"^5.0.2","grunt-saucelabs":"^9.0.1",istanbul:"^0.4.5",mocha:"^8.0.1"},dependencies:{"bn.js":"^4.11.9",brorand:"^1.1.0","hash.js":"^1.0.0","hmac-drbg":"^1.0.1",inherits:"^2.0.4","minimalistic-assert":"^1.0.1","minimalistic-crypto-utils":"^1.0.1"}},Bh={},jh={};!function(){var e=jh;function t(e){return 1===e.length?"0"+e:e}function n(e){for(var n="",r=0;r>8,a=255&i;o?n.push(o,a):n.push(a)}return n},e.zero2=t,e.toHex=n,e.encode=function(e,t){return"hex"===t?n(e):e}}(),function(){var e=Bh,t=vf,n=Gl,r=jh;e.assert=n,e.toArray=r.toArray,e.zero2=r.zero2,e.toHex=r.toHex,e.encode=r.encode,e.getNAF=function(e,t,n){var r=new Array(Math.max(e.bitLength(),n)+1);r.fill(0);for(var i=1<(i>>1)-1?(i>>1)-u:u,o.isubn(s)):s=0,r[a]=s,o.iushrn(1)}return r},e.getJSF=function(e,t){var n=[[],[]];e=e.clone(),t=t.clone();for(var r,i=0,o=0;e.cmpn(-i)>0||t.cmpn(-o)>0;){var a,s,u=e.andln(3)+i&3,l=t.andln(3)+o&3;3===u&&(u=-1),3===l&&(l=-1),a=0==(1&u)?0:3!=(r=e.andln(7)+i&7)&&5!==r||2!==l?u:-u,n[0].push(a),s=0==(1&l)?0:3!=(r=t.andln(7)+o&7)&&5!==r||2!==u?l:-l,n[1].push(s),2*i===a+1&&(i=1-i),2*o===s+1&&(o=1-o),e.iushrn(1),t.iushrn(1)}return n},e.cachedProperty=function(e,t,n){var r="_"+t;e.prototype[t]=function(){return void 0!==this[r]?this[r]:this[r]=n.call(this)}},e.parseBytes=function(t){return"string"==typeof t?e.toArray(t,"hex"):t},e.intFromLE=function(e){return new t(e,"hex","le")}}();var Uh={},zh=vf,Fh=Bh,qh=Fh.getNAF,Wh=Fh.getJSF,Vh=Fh.assert;function Kh(e,t){this.type=e,this.p=new zh(t.p,16),this.red=t.prime?zh.red(t.prime):zh.mont(this.p),this.zero=new zh(0).toRed(this.red),this.one=new zh(1).toRed(this.red),this.two=new zh(2).toRed(this.red),this.n=t.n&&new zh(t.n,16),this.g=t.g&&this.pointFromJSON(t.g,t.gRed),this._wnafT1=new Array(4),this._wnafT2=new Array(4),this._wnafT3=new Array(4),this._wnafT4=new Array(4),this._bitLength=this.n?this.n.bitLength():0;var n=this.n&&this.p.div(this.n);!n||n.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}var Hh=Kh;function $h(e,t){this.curve=e,this.type=t,this.precomputed=null}Kh.prototype.point=function(){throw new Error("Not implemented")},Kh.prototype.validate=function(){throw new Error("Not implemented")},Kh.prototype._fixedNafMul=function(e,t){Vh(e.precomputed);var n=e._getDoubles(),r=qh(t,1,this._bitLength),i=(1<=o;u--)a=(a<<1)+r[u];s.push(a)}for(var l=this.jpoint(null,null,null),c=this.jpoint(null,null,null),d=i;d>0;d--){for(o=0;o=0;s--){for(var u=0;s>=0&&0===o[s];s--)u++;if(s>=0&&u++,a=a.dblp(u),s<0)break;var l=o[s];Vh(0!==l),a="affine"===e.type?l>0?a.mixedAdd(i[l-1>>1]):a.mixedAdd(i[-l-1>>1].neg()):l>0?a.add(i[l-1>>1]):a.add(i[-l-1>>1].neg())}return"affine"===e.type?a.toP():a},Kh.prototype._wnafMulAdd=function(e,t,n,r,i){var o,a,s,u=this._wnafT1,l=this._wnafT2,c=this._wnafT3,d=0;for(o=0;o=1;o-=2){var h=o-1,p=o;if(1===u[h]&&1===u[p]){var m=[t[h],null,null,t[p]];0===t[h].y.cmp(t[p].y)?(m[1]=t[h].add(t[p]),m[2]=t[h].toJ().mixedAdd(t[p].neg())):0===t[h].y.cmp(t[p].y.redNeg())?(m[1]=t[h].toJ().mixedAdd(t[p]),m[2]=t[h].add(t[p].neg())):(m[1]=t[h].toJ().mixedAdd(t[p]),m[2]=t[h].toJ().mixedAdd(t[p].neg()));var g=[-3,-1,-5,-7,0,7,5,1,3],v=Wh(n[h],n[p]);for(d=Math.max(v[0].length,d),c[h]=new Array(d),c[p]=new Array(d),a=0;a=0;o--){for(var _=0;o>=0;){var E=!0;for(a=0;a=0&&_++,w=w.dblp(_),o<0)break;for(a=0;a0?s=l[a][S-1>>1]:S<0&&(s=l[a][-S-1>>1].neg()),w="affine"===s.type?w.mixedAdd(s):w.add(s))}}for(o=0;o=Math.ceil((e.bitLength()+1)/t.step)},$h.prototype._getDoubles=function(e,t){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var n=[this],r=this,i=0;i=0&&(o=t,a=n),r.negative&&(r=r.neg(),i=i.neg()),o.negative&&(o=o.neg(),a=a.neg()),[{a:r,b:i},{a:o,b:a}]},Xh.prototype._endoSplit=function(e){var t=this.endo.basis,n=t[0],r=t[1],i=r.b.mul(e).divRound(this.n),o=n.b.neg().mul(e).divRound(this.n),a=i.mul(n.a),s=o.mul(r.a),u=i.mul(n.b),l=o.mul(r.b);return{k1:e.sub(a).sub(s),k2:u.add(l).neg()}},Xh.prototype.pointFromX=function(e,t){(e=new Yh(e,16)).red||(e=e.toRed(this.red));var n=e.redSqr().redMul(e).redIAdd(e.redMul(this.a)).redIAdd(this.b),r=n.redSqrt();if(0!==r.redSqr().redSub(n).cmp(this.zero))throw new Error("invalid point");var i=r.fromRed().isOdd();return(t&&!i||!t&&i)&&(r=r.redNeg()),this.point(e,r)},Xh.prototype.validate=function(e){if(e.inf)return!0;var t=e.x,n=e.y,r=this.a.redMul(t),i=t.redSqr().redMul(t).redIAdd(r).redIAdd(this.b);return 0===n.redSqr().redISub(i).cmpn(0)},Xh.prototype._endoWnafMulAdd=function(e,t,n){for(var r=this._endoWnafT1,i=this._endoWnafT2,o=0;o":""},ep.prototype.isInfinity=function(){return this.inf},ep.prototype.add=function(e){if(this.inf)return e;if(e.inf)return this;if(this.eq(e))return this.dbl();if(this.neg().eq(e))return this.curve.point(null,null);if(0===this.x.cmp(e.x))return this.curve.point(null,null);var t=this.y.redSub(e.y);0!==t.cmpn(0)&&(t=t.redMul(this.x.redSub(e.x).redInvm()));var n=t.redSqr().redISub(this.x).redISub(e.x),r=t.redMul(this.x.redSub(n)).redISub(this.y);return this.curve.point(n,r)},ep.prototype.dbl=function(){if(this.inf)return this;var e=this.y.redAdd(this.y);if(0===e.cmpn(0))return this.curve.point(null,null);var t=this.curve.a,n=this.x.redSqr(),r=e.redInvm(),i=n.redAdd(n).redIAdd(n).redIAdd(t).redMul(r),o=i.redSqr().redISub(this.x.redAdd(this.x)),a=i.redMul(this.x.redSub(o)).redISub(this.y);return this.curve.point(o,a)},ep.prototype.getX=function(){return this.x.fromRed()},ep.prototype.getY=function(){return this.y.fromRed()},ep.prototype.mul=function(e){return e=new Yh(e,16),this.isInfinity()?this:this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve.endo?this.curve._endoWnafMulAdd([this],[e]):this.curve._wnafMul(this,e)},ep.prototype.mulAdd=function(e,t,n){var r=[this,t],i=[e,n];return this.curve.endo?this.curve._endoWnafMulAdd(r,i):this.curve._wnafMulAdd(1,r,i,2)},ep.prototype.jmulAdd=function(e,t,n){var r=[this,t],i=[e,n];return this.curve.endo?this.curve._endoWnafMulAdd(r,i,!0):this.curve._wnafMulAdd(1,r,i,2,!0)},ep.prototype.eq=function(e){return this===e||this.inf===e.inf&&(this.inf||0===this.x.cmp(e.x)&&0===this.y.cmp(e.y))},ep.prototype.neg=function(e){if(this.inf)return this;var t=this.curve.point(this.x,this.y.redNeg());if(e&&this.precomputed){var n=this.precomputed,r=function(e){return e.neg()};t.precomputed={naf:n.naf&&{wnd:n.naf.wnd,points:n.naf.points.map(r)},doubles:n.doubles&&{step:n.doubles.step,points:n.doubles.points.map(r)}}}return t},ep.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},Gh(tp,Qh.BasePoint),Xh.prototype.jpoint=function(e,t,n){return new tp(this,e,t,n)},tp.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var e=this.z.redInvm(),t=e.redSqr(),n=this.x.redMul(t),r=this.y.redMul(t).redMul(e);return this.curve.point(n,r)},tp.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},tp.prototype.add=function(e){if(this.isInfinity())return e;if(e.isInfinity())return this;var t=e.z.redSqr(),n=this.z.redSqr(),r=this.x.redMul(t),i=e.x.redMul(n),o=this.y.redMul(t.redMul(e.z)),a=e.y.redMul(n.redMul(this.z)),s=r.redSub(i),u=o.redSub(a);if(0===s.cmpn(0))return 0!==u.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var l=s.redSqr(),c=l.redMul(s),d=r.redMul(l),f=u.redSqr().redIAdd(c).redISub(d).redISub(d),h=u.redMul(d.redISub(f)).redISub(o.redMul(c)),p=this.z.redMul(e.z).redMul(s);return this.curve.jpoint(f,h,p)},tp.prototype.mixedAdd=function(e){if(this.isInfinity())return e.toJ();if(e.isInfinity())return this;var t=this.z.redSqr(),n=this.x,r=e.x.redMul(t),i=this.y,o=e.y.redMul(t).redMul(this.z),a=n.redSub(r),s=i.redSub(o);if(0===a.cmpn(0))return 0!==s.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var u=a.redSqr(),l=u.redMul(a),c=n.redMul(u),d=s.redSqr().redIAdd(l).redISub(c).redISub(c),f=s.redMul(c.redISub(d)).redISub(i.redMul(l)),h=this.z.redMul(a);return this.curve.jpoint(d,f,h)},tp.prototype.dblp=function(e){if(0===e)return this;if(this.isInfinity())return this;if(!e)return this.dbl();var t;if(this.curve.zeroA||this.curve.threeA){var n=this;for(t=0;t=0)return!1;if(n.redIAdd(i),0===this.x.cmp(n))return!0}},tp.prototype.inspect=function(){return this.isInfinity()?"":""},tp.prototype.isInfinity=function(){return 0===this.z.cmpn(0)};var np=vf,rp=Jr,ip=Hh,op=Bh;function ap(e){ip.call(this,"mont",e),this.a=new np(e.a,16).toRed(this.red),this.b=new np(e.b,16).toRed(this.red),this.i4=new np(4).toRed(this.red).redInvm(),this.two=new np(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}rp(ap,ip);var sp=ap;function up(e,t,n){ip.BasePoint.call(this,e,"projective"),null===t&&null===n?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new np(t,16),this.z=new np(n,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}ap.prototype.validate=function(e){var t=e.normalize().x,n=t.redSqr(),r=n.redMul(t).redAdd(n.redMul(this.a)).redAdd(t);return 0===r.redSqrt().redSqr().cmp(r)},rp(up,ip.BasePoint),ap.prototype.decodePoint=function(e,t){return this.point(op.toArray(e,t),1)},ap.prototype.point=function(e,t){return new up(this,e,t)},ap.prototype.pointFromJSON=function(e){return up.fromJSON(this,e)},up.prototype.precompute=function(){},up.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())},up.fromJSON=function(e,t){return new up(e,t[0],t[1]||e.one)},up.prototype.inspect=function(){return this.isInfinity()?"":""},up.prototype.isInfinity=function(){return 0===this.z.cmpn(0)},up.prototype.dbl=function(){var e=this.x.redAdd(this.z).redSqr(),t=this.x.redSub(this.z).redSqr(),n=e.redSub(t),r=e.redMul(t),i=n.redMul(t.redAdd(this.curve.a24.redMul(n)));return this.curve.point(r,i)},up.prototype.add=function(){throw new Error("Not supported on Montgomery curve")},up.prototype.diffAdd=function(e,t){var n=this.x.redAdd(this.z),r=this.x.redSub(this.z),i=e.x.redAdd(e.z),o=e.x.redSub(e.z).redMul(n),a=i.redMul(r),s=t.z.redMul(o.redAdd(a).redSqr()),u=t.x.redMul(o.redISub(a).redSqr());return this.curve.point(s,u)},up.prototype.mul=function(e){for(var t=e.clone(),n=this,r=this.curve.point(null,null),i=[];0!==t.cmpn(0);t.iushrn(1))i.push(t.andln(1));for(var o=i.length-1;o>=0;o--)0===i[o]?(n=n.diffAdd(r,this),r=r.dbl()):(r=n.diffAdd(r,this),n=n.dbl());return r},up.prototype.mulAdd=function(){throw new Error("Not supported on Montgomery curve")},up.prototype.jumlAdd=function(){throw new Error("Not supported on Montgomery curve")},up.prototype.eq=function(e){return 0===this.getX().cmp(e.getX())},up.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this},up.prototype.getX=function(){return this.normalize(),this.x.fromRed()};var lp=vf,cp=Jr,dp=Hh,fp=Bh.assert;function hp(e){this.twisted=1!=(0|e.a),this.mOneA=this.twisted&&-1==(0|e.a),this.extended=this.mOneA,dp.call(this,"edwards",e),this.a=new lp(e.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new lp(e.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new lp(e.d,16).toRed(this.red),this.dd=this.d.redAdd(this.d),fp(!this.twisted||0===this.c.fromRed().cmpn(1)),this.oneC=1==(0|e.c)}cp(hp,dp);var pp=hp;function mp(e,t,n,r,i){dp.BasePoint.call(this,e,"projective"),null===t&&null===n&&null===r?(this.x=this.curve.zero,this.y=this.curve.one,this.z=this.curve.one,this.t=this.curve.zero,this.zOne=!0):(this.x=new lp(t,16),this.y=new lp(n,16),this.z=r?new lp(r,16):this.curve.one,this.t=i&&new lp(i,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.t&&!this.t.red&&(this.t=this.t.toRed(this.curve.red)),this.zOne=this.z===this.curve.one,this.curve.extended&&!this.t&&(this.t=this.x.redMul(this.y),this.zOne||(this.t=this.t.redMul(this.z.redInvm()))))}hp.prototype._mulA=function(e){return this.mOneA?e.redNeg():this.a.redMul(e)},hp.prototype._mulC=function(e){return this.oneC?e:this.c.redMul(e)},hp.prototype.jpoint=function(e,t,n,r){return this.point(e,t,n,r)},hp.prototype.pointFromX=function(e,t){(e=new lp(e,16)).red||(e=e.toRed(this.red));var n=e.redSqr(),r=this.c2.redSub(this.a.redMul(n)),i=this.one.redSub(this.c2.redMul(this.d).redMul(n)),o=r.redMul(i.redInvm()),a=o.redSqrt();if(0!==a.redSqr().redSub(o).cmp(this.zero))throw new Error("invalid point");var s=a.fromRed().isOdd();return(t&&!s||!t&&s)&&(a=a.redNeg()),this.point(e,a)},hp.prototype.pointFromY=function(e,t){(e=new lp(e,16)).red||(e=e.toRed(this.red));var n=e.redSqr(),r=n.redSub(this.c2),i=n.redMul(this.d).redMul(this.c2).redSub(this.a),o=r.redMul(i.redInvm());if(0===o.cmp(this.zero)){if(t)throw new Error("invalid point");return this.point(this.zero,e)}var a=o.redSqrt();if(0!==a.redSqr().redSub(o).cmp(this.zero))throw new Error("invalid point");return a.fromRed().isOdd()!==t&&(a=a.redNeg()),this.point(a,e)},hp.prototype.validate=function(e){if(e.isInfinity())return!0;e.normalize();var t=e.x.redSqr(),n=e.y.redSqr(),r=t.redMul(this.a).redAdd(n),i=this.c2.redMul(this.one.redAdd(this.d.redMul(t).redMul(n)));return 0===r.cmp(i)},cp(mp,dp.BasePoint),hp.prototype.pointFromJSON=function(e){return mp.fromJSON(this,e)},hp.prototype.point=function(e,t,n,r){return new mp(this,e,t,n,r)},mp.fromJSON=function(e,t){return new mp(e,t[0],t[1],t[2])},mp.prototype.inspect=function(){return this.isInfinity()?"":""},mp.prototype.isInfinity=function(){return 0===this.x.cmpn(0)&&(0===this.y.cmp(this.z)||this.zOne&&0===this.y.cmp(this.curve.c))},mp.prototype._extDbl=function(){var e=this.x.redSqr(),t=this.y.redSqr(),n=this.z.redSqr();n=n.redIAdd(n);var r=this.curve._mulA(e),i=this.x.redAdd(this.y).redSqr().redISub(e).redISub(t),o=r.redAdd(t),a=o.redSub(n),s=r.redSub(t),u=i.redMul(a),l=o.redMul(s),c=i.redMul(s),d=a.redMul(o);return this.curve.point(u,l,d,c)},mp.prototype._projDbl=function(){var e,t,n,r,i,o,a=this.x.redAdd(this.y).redSqr(),s=this.x.redSqr(),u=this.y.redSqr();if(this.curve.twisted){var l=(r=this.curve._mulA(s)).redAdd(u);this.zOne?(e=a.redSub(s).redSub(u).redMul(l.redSub(this.curve.two)),t=l.redMul(r.redSub(u)),n=l.redSqr().redSub(l).redSub(l)):(i=this.z.redSqr(),o=l.redSub(i).redISub(i),e=a.redSub(s).redISub(u).redMul(o),t=l.redMul(r.redSub(u)),n=l.redMul(o))}else r=s.redAdd(u),i=this.curve._mulC(this.z).redSqr(),o=r.redSub(i).redSub(i),e=this.curve._mulC(a.redISub(r)).redMul(o),t=this.curve._mulC(r).redMul(s.redISub(u)),n=r.redMul(o);return this.curve.point(e,t,n)},mp.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()},mp.prototype._extAdd=function(e){var t=this.y.redSub(this.x).redMul(e.y.redSub(e.x)),n=this.y.redAdd(this.x).redMul(e.y.redAdd(e.x)),r=this.t.redMul(this.curve.dd).redMul(e.t),i=this.z.redMul(e.z.redAdd(e.z)),o=n.redSub(t),a=i.redSub(r),s=i.redAdd(r),u=n.redAdd(t),l=o.redMul(a),c=s.redMul(u),d=o.redMul(u),f=a.redMul(s);return this.curve.point(l,c,f,d)},mp.prototype._projAdd=function(e){var t,n,r=this.z.redMul(e.z),i=r.redSqr(),o=this.x.redMul(e.x),a=this.y.redMul(e.y),s=this.curve.d.redMul(o).redMul(a),u=i.redSub(s),l=i.redAdd(s),c=this.x.redAdd(this.y).redMul(e.x.redAdd(e.y)).redISub(o).redISub(a),d=r.redMul(u).redMul(c);return this.curve.twisted?(t=r.redMul(l).redMul(a.redSub(this.curve._mulA(o))),n=u.redMul(l)):(t=r.redMul(l).redMul(a.redSub(o)),n=this.curve._mulC(u).redMul(l)),this.curve.point(d,t,n)},mp.prototype.add=function(e){return this.isInfinity()?e:e.isInfinity()?this:this.curve.extended?this._extAdd(e):this._projAdd(e)},mp.prototype.mul=function(e){return this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve._wnafMul(this,e)},mp.prototype.mulAdd=function(e,t,n){return this.curve._wnafMulAdd(1,[this,t],[e,n],2,!1)},mp.prototype.jmulAdd=function(e,t,n){return this.curve._wnafMulAdd(1,[this,t],[e,n],2,!0)},mp.prototype.normalize=function(){if(this.zOne)return this;var e=this.z.redInvm();return this.x=this.x.redMul(e),this.y=this.y.redMul(e),this.t&&(this.t=this.t.redMul(e)),this.z=this.curve.one,this.zOne=!0,this},mp.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())},mp.prototype.getX=function(){return this.normalize(),this.x.fromRed()},mp.prototype.getY=function(){return this.normalize(),this.y.fromRed()},mp.prototype.eq=function(e){return this===e||0===this.getX().cmp(e.getX())&&0===this.getY().cmp(e.getY())},mp.prototype.eqXToP=function(e){var t=e.toRed(this.curve.red).redMul(this.z);if(0===this.x.cmp(t))return!0;for(var n=e.clone(),r=this.curve.redN.redMul(this.z);;){if(n.iadd(this.curve.n),n.cmp(this.curve.p)>=0)return!1;if(t.redIAdd(r),0===this.x.cmp(t))return!0}},mp.prototype.toP=mp.prototype.normalize,mp.prototype.mixedAdd=mp.prototype.add,function(e){var t=e;t.base=Hh,t.short=Jh,t.mont=sp,t.edwards=pp}(Uh);var gp={},vp={},yp={},bp=Gl,wp=Jr;function Ap(e,t){return 55296==(64512&e.charCodeAt(t))&&!(t<0||t+1>=e.length)&&56320==(64512&e.charCodeAt(t+1))}function _p(e){return(e>>>24|e>>>8&65280|e<<8&16711680|(255&e)<<24)>>>0}function Ep(e){return 1===e.length?"0"+e:e}function Sp(e){return 7===e.length?"0"+e:6===e.length?"00"+e:5===e.length?"000"+e:4===e.length?"0000"+e:3===e.length?"00000"+e:2===e.length?"000000"+e:1===e.length?"0000000"+e:e}yp.inherits=wp,yp.toArray=function(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var n=[];if("string"==typeof e)if(t){if("hex"===t)for((e=e.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(e="0"+e),i=0;i>6|192,n[r++]=63&o|128):Ap(e,i)?(o=65536+((1023&o)<<10)+(1023&e.charCodeAt(++i)),n[r++]=o>>18|240,n[r++]=o>>12&63|128,n[r++]=o>>6&63|128,n[r++]=63&o|128):(n[r++]=o>>12|224,n[r++]=o>>6&63|128,n[r++]=63&o|128)}else for(i=0;i>>0}return o},yp.split32=function(e,t){for(var n=new Array(4*e.length),r=0,i=0;r>>24,n[i+1]=o>>>16&255,n[i+2]=o>>>8&255,n[i+3]=255&o):(n[i+3]=o>>>24,n[i+2]=o>>>16&255,n[i+1]=o>>>8&255,n[i]=255&o)}return n},yp.rotr32=function(e,t){return e>>>t|e<<32-t},yp.rotl32=function(e,t){return e<>>32-t},yp.sum32=function(e,t){return e+t>>>0},yp.sum32_3=function(e,t,n){return e+t+n>>>0},yp.sum32_4=function(e,t,n,r){return e+t+n+r>>>0},yp.sum32_5=function(e,t,n,r,i){return e+t+n+r+i>>>0},yp.sum64=function(e,t,n,r){var i=e[t],o=r+e[t+1]>>>0,a=(o>>0,e[t+1]=o},yp.sum64_hi=function(e,t,n,r){return(t+r>>>0>>0},yp.sum64_lo=function(e,t,n,r){return t+r>>>0},yp.sum64_4_hi=function(e,t,n,r,i,o,a,s){var u=0,l=t;return u+=(l=l+r>>>0)>>0)>>0)>>0},yp.sum64_4_lo=function(e,t,n,r,i,o,a,s){return t+r+o+s>>>0},yp.sum64_5_hi=function(e,t,n,r,i,o,a,s,u,l){var c=0,d=t;return c+=(d=d+r>>>0)>>0)>>0)>>0)>>0},yp.sum64_5_lo=function(e,t,n,r,i,o,a,s,u,l){return t+r+o+s+l>>>0},yp.rotr64_hi=function(e,t,n){return(t<<32-n|e>>>n)>>>0},yp.rotr64_lo=function(e,t,n){return(e<<32-n|t>>>n)>>>0},yp.shr64_hi=function(e,t,n){return e>>>n},yp.shr64_lo=function(e,t,n){return(e<<32-n|t>>>n)>>>0};var kp={},Mp=yp,Cp=Gl;function xp(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}kp.BlockHash=xp,xp.prototype.update=function(e,t){if(e=Mp.toArray(e,t),this.pending?this.pending=this.pending.concat(e):this.pending=e,this.pendingTotal+=e.length,this.pending.length>=this._delta8){var n=(e=this.pending).length%this._delta8;this.pending=e.slice(e.length-n,e.length),0===this.pending.length&&(this.pending=null),e=Mp.join32(e,0,e.length-n,this.endian);for(var r=0;r>>24&255,r[i++]=e>>>16&255,r[i++]=e>>>8&255,r[i++]=255&e}else for(r[i++]=255&e,r[i++]=e>>>8&255,r[i++]=e>>>16&255,r[i++]=e>>>24&255,r[i++]=0,r[i++]=0,r[i++]=0,r[i++]=0,o=8;o>>3},Op.g1_256=function(e){return Tp(e,17)^Tp(e,19)^e>>>10};var Np=yp,Dp=kp,Bp=Op,jp=Np.rotl32,Up=Np.sum32,zp=Np.sum32_5,Fp=Bp.ft_1,qp=Dp.BlockHash,Wp=[1518500249,1859775393,2400959708,3395469782];function Vp(){if(!(this instanceof Vp))return new Vp;qp.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}Np.inherits(Vp,qp);var Kp=Vp;Vp.blockSize=512,Vp.outSize=160,Vp.hmacStrength=80,Vp.padLength=64,Vp.prototype._update=function(e,t){for(var n=this.W,r=0;r<16;r++)n[r]=e[t+r];for(;rthis.blockSize&&(e=(new this.Hash).update(e).digest()),cg(e.length<=this.blockSize);for(var t=e.length;t=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(t,n,r)}var bg=yg;yg.prototype._init=function(e,t,n){var r=e.concat(t).concat(n);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var i=0;i=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(e.concat(n||[])),this._reseed=1},yg.prototype.generate=function(e,t,n,r){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");"string"!=typeof t&&(r=n,n=t,t=null),n&&(n=gg.toArray(n,r||"hex"),this._update(n));for(var i=[];i.length"};var Sg=vf,kg=Bh,Mg=kg.assert;function Cg(e,t){if(e instanceof Cg)return e;this._importDER(e,t)||(Mg(e.r&&e.s,"Signature without r or s"),this.r=new Sg(e.r,16),this.s=new Sg(e.s,16),void 0===e.recoveryParam?this.recoveryParam=null:this.recoveryParam=e.recoveryParam)}var xg,Rg,Og=Cg;function Tg(){this.place=0}function Pg(e,t){var n=e[t.place++];if(!(128&n))return n;var r=15&n;if(0===r||r>4)return!1;for(var i=0,o=0,a=t.place;o>>=0;return!(i<=127)&&(t.place=a,i)}function Lg(e){for(var t=0,n=e.length-1;!e[t]&&!(128&e[t+1])&&t>>3);for(e.push(128|n);--n;)e.push(t>>>(n<<3)&255);e.push(t)}}Cg.prototype._importDER=function(e,t){e=kg.toArray(e,t);var n=new Tg;if(48!==e[n.place++])return!1;var r=Pg(e,n);if(!1===r)return!1;if(r+n.place!==e.length)return!1;if(2!==e[n.place++])return!1;var i=Pg(e,n);if(!1===i)return!1;var o=e.slice(n.place,i+n.place);if(n.place+=i,2!==e[n.place++])return!1;var a=Pg(e,n);if(!1===a)return!1;if(e.length!==a+n.place)return!1;var s=e.slice(n.place,a+n.place);if(0===o[0]){if(!(128&o[1]))return!1;o=o.slice(1)}if(0===s[0]){if(!(128&s[1]))return!1;s=s.slice(1)}return this.r=new Sg(o),this.s=new Sg(s),this.recoveryParam=null,!0},Cg.prototype.toDER=function(e){var t=this.r.toArray(),n=this.s.toArray();for(128&t[0]&&(t=[0].concat(t)),128&n[0]&&(n=[0].concat(n)),t=Lg(t),n=Lg(n);!(n[0]||128&n[1]);)n=n.slice(1);var r=[2];Ig(r,t.length),(r=r.concat(t)).push(2),Ig(r,n.length);var i=r.concat(n),o=[48];return Ig(o,i.length),o=o.concat(i),kg.encode(o,e)};var Ng=Bh,Dg=Ng.assert,Bg=Ng.parseBytes,jg=Ng.cachedProperty;function Ug(e,t){this.eddsa=e,this._secret=Bg(t.secret),e.isPoint(t.pub)?this._pub=t.pub:this._pubBytes=Bg(t.pub)}Ug.fromPublic=function(e,t){return t instanceof Ug?t:new Ug(e,{pub:t})},Ug.fromSecret=function(e,t){return t instanceof Ug?t:new Ug(e,{secret:t})},Ug.prototype.secret=function(){return this._secret},jg(Ug,"pubBytes",(function(){return this.eddsa.encodePoint(this.pub())})),jg(Ug,"pub",(function(){return this._pubBytes?this.eddsa.decodePoint(this._pubBytes):this.eddsa.g.mul(this.priv())})),jg(Ug,"privBytes",(function(){var e=this.eddsa,t=this.hash(),n=e.encodingLength-1,r=t.slice(0,e.encodingLength);return r[0]&=248,r[n]&=127,r[n]|=64,r})),jg(Ug,"priv",(function(){return this.eddsa.decodeInt(this.privBytes())})),jg(Ug,"hash",(function(){return this.eddsa.hash().update(this.secret()).digest()})),jg(Ug,"messagePrefix",(function(){return this.hash().slice(this.eddsa.encodingLength)})),Ug.prototype.sign=function(e){return Dg(this._secret,"KeyPair can only verify"),this.eddsa.sign(e,this)},Ug.prototype.verify=function(e,t){return this.eddsa.verify(e,t,this)},Ug.prototype.getSecret=function(e){return Dg(this._secret,"KeyPair is public only"),Ng.encode(this.secret(),e)},Ug.prototype.getPublic=function(e){return Ng.encode(this.pubBytes(),e)};var zg=Ug,Fg=vf,qg=Bh,Wg=qg.assert,Vg=qg.cachedProperty,Kg=qg.parseBytes;function Hg(e,t){this.eddsa=e,"object"!=typeof t&&(t=Kg(t)),Array.isArray(t)&&(t={R:t.slice(0,e.encodingLength),S:t.slice(e.encodingLength)}),Wg(t.R&&t.S,"Signature without R or S"),e.isPoint(t.R)&&(this._R=t.R),t.S instanceof Fg&&(this._S=t.S),this._Rencoded=Array.isArray(t.R)?t.R:t.Rencoded,this._Sencoded=Array.isArray(t.S)?t.S:t.Sencoded}Vg(Hg,"S",(function(){return this.eddsa.decodeInt(this.Sencoded())})),Vg(Hg,"R",(function(){return this.eddsa.decodePoint(this.Rencoded())})),Vg(Hg,"Rencoded",(function(){return this.eddsa.encodePoint(this.R())})),Vg(Hg,"Sencoded",(function(){return this.eddsa.encodeInt(this.S())})),Hg.prototype.toBytes=function(){return this.Rencoded().concat(this.Sencoded())},Hg.prototype.toHex=function(){return qg.encode(this.toBytes(),"hex").toUpperCase()};var $g=Hg,Yg=vp,Gg=gp,Qg=Bh,Zg=Qg.assert,Xg=Qg.parseBytes,Jg=zg,ev=$g;function tv(e){if(Zg("ed25519"===e,"only tested with ed25519 so far"),!(this instanceof tv))return new tv(e);e=Gg[e].curve,this.curve=e,this.g=e.g,this.g.precompute(e.n.bitLength()+1),this.pointClass=e.point().constructor,this.encodingLength=Math.ceil(e.n.bitLength()/8),this.hash=Yg.sha512}var nv,rv=tv;function iv(){return nv||(nv=1,function(){var e=Nh;e.version=Dh.version,e.utils=Bh,e.rand=bf(),e.curve=Uh,e.curves=gp,e.ec=function(){if(Rg)return xg;Rg=1;var e=vf,t=bg,n=Bh,r=gp,i=bf(),o=n.assert,a=Eg,s=Og;function u(e){if(!(this instanceof u))return new u(e);"string"==typeof e&&(o(Object.prototype.hasOwnProperty.call(r,e),"Unknown curve "+e),e=r[e]),e instanceof r.PresetCurve&&(e={curve:e}),this.curve=e.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=e.curve.g,this.g.precompute(e.curve.n.bitLength()+1),this.hash=e.hash||e.curve.hash}return xg=u,u.prototype.keyPair=function(e){return new a(this,e)},u.prototype.keyFromPrivate=function(e,t){return a.fromPrivate(this,e,t)},u.prototype.keyFromPublic=function(e,t){return a.fromPublic(this,e,t)},u.prototype.genKeyPair=function(n){n||(n={});for(var r=new t({hash:this.hash,pers:n.pers,persEnc:n.persEnc||"utf8",entropy:n.entropy||i(this.hash.hmacStrength),entropyEnc:n.entropy&&n.entropyEnc||"utf8",nonce:this.n.toArray()}),o=this.n.byteLength(),a=this.n.sub(new e(2));;){var s=new e(r.generate(o));if(!(s.cmp(a)>0))return s.iaddn(1),this.keyFromPrivate(s)}},u.prototype._truncateToN=function(e,t){var n=8*e.byteLength()-this.n.bitLength();return n>0&&(e=e.ushrn(n)),!t&&e.cmp(this.n)>=0?e.sub(this.n):e},u.prototype.sign=function(n,r,i,o){"object"==typeof i&&(o=i,i=null),o||(o={}),r=this.keyFromPrivate(r,i),n=this._truncateToN(new e(n,16));for(var a=this.n.byteLength(),u=r.getPrivate().toArray("be",a),l=n.toArray("be",a),c=new t({hash:this.hash,entropy:u,nonce:l,pers:o.pers,persEnc:o.persEnc||"utf8"}),d=this.n.sub(new e(1)),f=0;;f++){var h=o.k?o.k(f):new e(c.generate(this.n.byteLength()));if(!((h=this._truncateToN(h,!0)).cmpn(1)<=0||h.cmp(d)>=0)){var p=this.g.mul(h);if(!p.isInfinity()){var m=p.getX(),g=m.umod(this.n);if(0!==g.cmpn(0)){var v=h.invm(this.n).mul(g.mul(r.getPrivate()).iadd(n));if(0!==(v=v.umod(this.n)).cmpn(0)){var y=(p.getY().isOdd()?1:0)|(0!==m.cmp(g)?2:0);return o.canonical&&v.cmp(this.nh)>0&&(v=this.n.sub(v),y^=1),new s({r:g,s:v,recoveryParam:y})}}}}}},u.prototype.verify=function(t,n,r,i){t=this._truncateToN(new e(t,16)),r=this.keyFromPublic(r,i);var o=(n=new s(n,"hex")).r,a=n.s;if(o.cmpn(1)<0||o.cmp(this.n)>=0)return!1;if(a.cmpn(1)<0||a.cmp(this.n)>=0)return!1;var u,l=a.invm(this.n),c=l.mul(t).umod(this.n),d=l.mul(o).umod(this.n);return this.curve._maxwellTrick?!(u=this.g.jmulAdd(c,r.getPublic(),d)).isInfinity()&&u.eqXToP(o):!(u=this.g.mulAdd(c,r.getPublic(),d)).isInfinity()&&0===u.getX().umod(this.n).cmp(o)},u.prototype.recoverPubKey=function(t,n,r,i){o((3&r)===r,"The recovery param is more than two bits"),n=new s(n,i);var a=this.n,u=new e(t),l=n.r,c=n.s,d=1&r,f=r>>1;if(l.cmp(this.curve.p.umod(this.curve.n))>=0&&f)throw new Error("Unable to find sencond key candinate");l=f?this.curve.pointFromX(l.add(this.curve.n),d):this.curve.pointFromX(l,d);var h=n.r.invm(a),p=a.sub(u).mul(h).umod(a),m=c.mul(h).umod(a);return this.g.mulAdd(p,l,m)},u.prototype.getKeyRecoveryParam=function(e,t,n,r){if(null!==(t=new s(t,r)).recoveryParam)return t.recoveryParam;for(var i=0;i<4;i++){var o;try{o=this.recoverPubKey(e,t,i)}catch(e){continue}if(o.eq(n))return i}throw new Error("Unable to find valid recovery factor")},xg}(),e.eddsa=rv}()),Nh}tv.prototype.sign=function(e,t){e=Xg(e);var n=this.keyFromSecret(t),r=this.hashInt(n.messagePrefix(),e),i=this.g.mul(r),o=this.encodePoint(i),a=this.hashInt(o,n.pubBytes(),e).mul(n.priv()),s=r.add(a).umod(this.curve.n);return this.makeSignature({R:i,S:s,Rencoded:o})},tv.prototype.verify=function(e,t,n){e=Xg(e),t=this.makeSignature(t);var r=this.keyFromPublic(n),i=this.hashInt(t.Rencoded(),r.pubBytes(),e),o=this.g.mul(t.S());return t.R().add(r.pub().mul(i)).eq(o)},tv.prototype.hashInt=function(){for(var e=this.hash(),t=0;t=48&&r<=57?r-48:r>=65&&r<=70?r-55:r>=97&&r<=102?r-87:void n(!1,"Invalid character in "+e)}function s(e,t,n){var r=a(e,n);return n-1>=t&&(r|=a(e,n-1)<<4),r}function u(e,t,r,i){for(var o=0,a=0,s=Math.min(e.length,r),u=t;u=49?l-49+10:l>=17?l-17+10:l,n(l>=0&&a0?e:t},i.min=function(e,t){return e.cmp(t)<0?e:t},i.prototype._init=function(e,t,r){if("number"==typeof e)return this._initNumber(e,t,r);if("object"==typeof e)return this._initArray(e,t,r);"hex"===t&&(t=16),n(t===(0|t)&&t>=2&&t<=36);var i=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&(i++,this.negative=1),i=0;i-=3)a=e[i]|e[i-1]<<8|e[i-2]<<16,this.words[o]|=a<>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);else if("le"===r)for(i=0,o=0;i>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);return this._strip()},i.prototype._parseHex=function(e,t,n){this.length=Math.ceil((e.length-t)/6),this.words=new Array(this.length);for(var r=0;r=t;r-=2)i=s(e,t,r)<=18?(o-=18,a+=1,this.words[a]|=i>>>26):o+=8;else for(r=(e.length-t)%2==0?t+1:t;r=18?(o-=18,a+=1,this.words[a]|=i>>>26):o+=8;this._strip()},i.prototype._parseBase=function(e,t,n){this.words=[0],this.length=1;for(var r=0,i=1;i<=67108863;i*=t)r++;r--,i=i/t|0;for(var o=e.length-n,a=o%r,s=Math.min(o,o-a)+n,l=0,c=n;c1&&0===this.words[this.length-1];)this.length--;return this._normSign()},i.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},"undefined"!=typeof Symbol&&"function"==typeof Symbol.for)try{i.prototype[Symbol.for("nodejs.util.inspect.custom")]=c}catch(e){i.prototype.inspect=c}else i.prototype.inspect=c;function c(){return(this.red?""}var d=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],f=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],h=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function p(e,t,n){n.negative=t.negative^e.negative;var r=e.length+t.length|0;n.length=r,r=r-1|0;var i=0|e.words[0],o=0|t.words[0],a=i*o,s=67108863&a,u=a/67108864|0;n.words[0]=s;for(var l=1;l>>26,d=67108863&u,f=Math.min(l,t.length-1),h=Math.max(0,l-e.length+1);h<=f;h++){var p=l-h|0;c+=(a=(i=0|e.words[p])*(o=0|t.words[h])+d)/67108864|0,d=67108863&a}n.words[l]=0|d,u=0|c}return 0!==u?n.words[l]=0|u:n.length--,n._strip()}i.prototype.toString=function(e,t){var r;if(t=0|t||1,16===(e=e||10)||"hex"===e){r="";for(var i=0,o=0,a=0;a>>24-i&16777215,(i+=2)>=26&&(i-=26,a--),r=0!==o||a!==this.length-1?d[6-u.length]+u+r:u+r}for(0!==o&&(r=o.toString(16)+r);r.length%t!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}if(e===(0|e)&&e>=2&&e<=36){var l=f[e],c=h[e];r="";var p=this.clone();for(p.negative=0;!p.isZero();){var m=p.modrn(c).toString(e);r=(p=p.idivn(c)).isZero()?m+r:d[l-m.length]+m+r}for(this.isZero()&&(r="0"+r);r.length%t!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}n(!1,"Base should be between 2 and 36")},i.prototype.toNumber=function(){var e=this.words[0];return 2===this.length?e+=67108864*this.words[1]:3===this.length&&1===this.words[2]?e+=4503599627370496+67108864*this.words[1]:this.length>2&&n(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},i.prototype.toJSON=function(){return this.toString(16,2)},o&&(i.prototype.toBuffer=function(e,t){return this.toArrayLike(o,e,t)}),i.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},i.prototype.toArrayLike=function(e,t,r){this._strip();var i=this.byteLength(),o=r||Math.max(1,i);n(i<=o,"byte array longer than desired length"),n(o>0,"Requested array length <= 0");var a=function(e,t){return e.allocUnsafe?e.allocUnsafe(t):new e(t)}(e,o);return this["_toArrayLike"+("le"===t?"LE":"BE")](a,i),a},i.prototype._toArrayLikeLE=function(e,t){for(var n=0,r=0,i=0,o=0;i>8&255),n>16&255),6===o?(n>24&255),r=0,o=0):(r=a>>>24,o+=2)}if(n=0&&(e[n--]=a>>8&255),n>=0&&(e[n--]=a>>16&255),6===o?(n>=0&&(e[n--]=a>>24&255),r=0,o=0):(r=a>>>24,o+=2)}if(n>=0)for(e[n--]=r;n>=0;)e[n--]=0},Math.clz32?i.prototype._countBits=function(e){return 32-Math.clz32(e)}:i.prototype._countBits=function(e){var t=e,n=0;return t>=4096&&(n+=13,t>>>=13),t>=64&&(n+=7,t>>>=7),t>=8&&(n+=4,t>>>=4),t>=2&&(n+=2,t>>>=2),n+t},i.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,n=0;return 0==(8191&t)&&(n+=13,t>>>=13),0==(127&t)&&(n+=7,t>>>=7),0==(15&t)&&(n+=4,t>>>=4),0==(3&t)&&(n+=2,t>>>=2),0==(1&t)&&n++,n},i.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return 26*(this.length-1)+t},i.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;te.length?this.clone().ior(e):e.clone().ior(this)},i.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},i.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var n=0;ne.length?this.clone().iand(e):e.clone().iand(this)},i.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},i.prototype.iuxor=function(e){var t,n;this.length>e.length?(t=this,n=e):(t=e,n=this);for(var r=0;re.length?this.clone().ixor(e):e.clone().ixor(this)},i.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},i.prototype.inotn=function(e){n("number"==typeof e&&e>=0);var t=0|Math.ceil(e/26),r=e%26;this._expand(t),r>0&&t--;for(var i=0;i0&&(this.words[i]=~this.words[i]&67108863>>26-r),this._strip()},i.prototype.notn=function(e){return this.clone().inotn(e)},i.prototype.setn=function(e,t){n("number"==typeof e&&e>=0);var r=e/26|0,i=e%26;return this._expand(r+1),this.words[r]=t?this.words[r]|1<e.length?(n=this,r=e):(n=e,r=this);for(var i=0,o=0;o>>26;for(;0!==i&&o>>26;if(this.length=n.length,0!==i)this.words[this.length]=i,this.length++;else if(n!==this)for(;oe.length?this.clone().iadd(e):e.clone().iadd(this)},i.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var t=this.iadd(e);return e.negative=1,t._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var n,r,i=this.cmp(e);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(n=this,r=e):(n=e,r=this);for(var o=0,a=0;a>26,this.words[a]=67108863&t;for(;0!==o&&a>26,this.words[a]=67108863&t;if(0===o&&a>>13,h=0|a[1],p=8191&h,m=h>>>13,g=0|a[2],v=8191&g,y=g>>>13,b=0|a[3],w=8191&b,A=b>>>13,_=0|a[4],E=8191&_,S=_>>>13,k=0|a[5],M=8191&k,C=k>>>13,x=0|a[6],R=8191&x,O=x>>>13,T=0|a[7],P=8191&T,L=T>>>13,I=0|a[8],N=8191&I,D=I>>>13,B=0|a[9],j=8191&B,U=B>>>13,z=0|s[0],F=8191&z,q=z>>>13,W=0|s[1],V=8191&W,K=W>>>13,H=0|s[2],$=8191&H,Y=H>>>13,G=0|s[3],Q=8191&G,Z=G>>>13,X=0|s[4],J=8191&X,ee=X>>>13,te=0|s[5],ne=8191&te,re=te>>>13,ie=0|s[6],oe=8191&ie,ae=ie>>>13,se=0|s[7],ue=8191&se,le=se>>>13,ce=0|s[8],de=8191&ce,fe=ce>>>13,he=0|s[9],pe=8191&he,me=he>>>13;n.negative=e.negative^t.negative,n.length=19;var ge=(l+(r=Math.imul(d,F))|0)+((8191&(i=(i=Math.imul(d,q))+Math.imul(f,F)|0))<<13)|0;l=((o=Math.imul(f,q))+(i>>>13)|0)+(ge>>>26)|0,ge&=67108863,r=Math.imul(p,F),i=(i=Math.imul(p,q))+Math.imul(m,F)|0,o=Math.imul(m,q);var ve=(l+(r=r+Math.imul(d,V)|0)|0)+((8191&(i=(i=i+Math.imul(d,K)|0)+Math.imul(f,V)|0))<<13)|0;l=((o=o+Math.imul(f,K)|0)+(i>>>13)|0)+(ve>>>26)|0,ve&=67108863,r=Math.imul(v,F),i=(i=Math.imul(v,q))+Math.imul(y,F)|0,o=Math.imul(y,q),r=r+Math.imul(p,V)|0,i=(i=i+Math.imul(p,K)|0)+Math.imul(m,V)|0,o=o+Math.imul(m,K)|0;var ye=(l+(r=r+Math.imul(d,$)|0)|0)+((8191&(i=(i=i+Math.imul(d,Y)|0)+Math.imul(f,$)|0))<<13)|0;l=((o=o+Math.imul(f,Y)|0)+(i>>>13)|0)+(ye>>>26)|0,ye&=67108863,r=Math.imul(w,F),i=(i=Math.imul(w,q))+Math.imul(A,F)|0,o=Math.imul(A,q),r=r+Math.imul(v,V)|0,i=(i=i+Math.imul(v,K)|0)+Math.imul(y,V)|0,o=o+Math.imul(y,K)|0,r=r+Math.imul(p,$)|0,i=(i=i+Math.imul(p,Y)|0)+Math.imul(m,$)|0,o=o+Math.imul(m,Y)|0;var be=(l+(r=r+Math.imul(d,Q)|0)|0)+((8191&(i=(i=i+Math.imul(d,Z)|0)+Math.imul(f,Q)|0))<<13)|0;l=((o=o+Math.imul(f,Z)|0)+(i>>>13)|0)+(be>>>26)|0,be&=67108863,r=Math.imul(E,F),i=(i=Math.imul(E,q))+Math.imul(S,F)|0,o=Math.imul(S,q),r=r+Math.imul(w,V)|0,i=(i=i+Math.imul(w,K)|0)+Math.imul(A,V)|0,o=o+Math.imul(A,K)|0,r=r+Math.imul(v,$)|0,i=(i=i+Math.imul(v,Y)|0)+Math.imul(y,$)|0,o=o+Math.imul(y,Y)|0,r=r+Math.imul(p,Q)|0,i=(i=i+Math.imul(p,Z)|0)+Math.imul(m,Q)|0,o=o+Math.imul(m,Z)|0;var we=(l+(r=r+Math.imul(d,J)|0)|0)+((8191&(i=(i=i+Math.imul(d,ee)|0)+Math.imul(f,J)|0))<<13)|0;l=((o=o+Math.imul(f,ee)|0)+(i>>>13)|0)+(we>>>26)|0,we&=67108863,r=Math.imul(M,F),i=(i=Math.imul(M,q))+Math.imul(C,F)|0,o=Math.imul(C,q),r=r+Math.imul(E,V)|0,i=(i=i+Math.imul(E,K)|0)+Math.imul(S,V)|0,o=o+Math.imul(S,K)|0,r=r+Math.imul(w,$)|0,i=(i=i+Math.imul(w,Y)|0)+Math.imul(A,$)|0,o=o+Math.imul(A,Y)|0,r=r+Math.imul(v,Q)|0,i=(i=i+Math.imul(v,Z)|0)+Math.imul(y,Q)|0,o=o+Math.imul(y,Z)|0,r=r+Math.imul(p,J)|0,i=(i=i+Math.imul(p,ee)|0)+Math.imul(m,J)|0,o=o+Math.imul(m,ee)|0;var Ae=(l+(r=r+Math.imul(d,ne)|0)|0)+((8191&(i=(i=i+Math.imul(d,re)|0)+Math.imul(f,ne)|0))<<13)|0;l=((o=o+Math.imul(f,re)|0)+(i>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,r=Math.imul(R,F),i=(i=Math.imul(R,q))+Math.imul(O,F)|0,o=Math.imul(O,q),r=r+Math.imul(M,V)|0,i=(i=i+Math.imul(M,K)|0)+Math.imul(C,V)|0,o=o+Math.imul(C,K)|0,r=r+Math.imul(E,$)|0,i=(i=i+Math.imul(E,Y)|0)+Math.imul(S,$)|0,o=o+Math.imul(S,Y)|0,r=r+Math.imul(w,Q)|0,i=(i=i+Math.imul(w,Z)|0)+Math.imul(A,Q)|0,o=o+Math.imul(A,Z)|0,r=r+Math.imul(v,J)|0,i=(i=i+Math.imul(v,ee)|0)+Math.imul(y,J)|0,o=o+Math.imul(y,ee)|0,r=r+Math.imul(p,ne)|0,i=(i=i+Math.imul(p,re)|0)+Math.imul(m,ne)|0,o=o+Math.imul(m,re)|0;var _e=(l+(r=r+Math.imul(d,oe)|0)|0)+((8191&(i=(i=i+Math.imul(d,ae)|0)+Math.imul(f,oe)|0))<<13)|0;l=((o=o+Math.imul(f,ae)|0)+(i>>>13)|0)+(_e>>>26)|0,_e&=67108863,r=Math.imul(P,F),i=(i=Math.imul(P,q))+Math.imul(L,F)|0,o=Math.imul(L,q),r=r+Math.imul(R,V)|0,i=(i=i+Math.imul(R,K)|0)+Math.imul(O,V)|0,o=o+Math.imul(O,K)|0,r=r+Math.imul(M,$)|0,i=(i=i+Math.imul(M,Y)|0)+Math.imul(C,$)|0,o=o+Math.imul(C,Y)|0,r=r+Math.imul(E,Q)|0,i=(i=i+Math.imul(E,Z)|0)+Math.imul(S,Q)|0,o=o+Math.imul(S,Z)|0,r=r+Math.imul(w,J)|0,i=(i=i+Math.imul(w,ee)|0)+Math.imul(A,J)|0,o=o+Math.imul(A,ee)|0,r=r+Math.imul(v,ne)|0,i=(i=i+Math.imul(v,re)|0)+Math.imul(y,ne)|0,o=o+Math.imul(y,re)|0,r=r+Math.imul(p,oe)|0,i=(i=i+Math.imul(p,ae)|0)+Math.imul(m,oe)|0,o=o+Math.imul(m,ae)|0;var Ee=(l+(r=r+Math.imul(d,ue)|0)|0)+((8191&(i=(i=i+Math.imul(d,le)|0)+Math.imul(f,ue)|0))<<13)|0;l=((o=o+Math.imul(f,le)|0)+(i>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,r=Math.imul(N,F),i=(i=Math.imul(N,q))+Math.imul(D,F)|0,o=Math.imul(D,q),r=r+Math.imul(P,V)|0,i=(i=i+Math.imul(P,K)|0)+Math.imul(L,V)|0,o=o+Math.imul(L,K)|0,r=r+Math.imul(R,$)|0,i=(i=i+Math.imul(R,Y)|0)+Math.imul(O,$)|0,o=o+Math.imul(O,Y)|0,r=r+Math.imul(M,Q)|0,i=(i=i+Math.imul(M,Z)|0)+Math.imul(C,Q)|0,o=o+Math.imul(C,Z)|0,r=r+Math.imul(E,J)|0,i=(i=i+Math.imul(E,ee)|0)+Math.imul(S,J)|0,o=o+Math.imul(S,ee)|0,r=r+Math.imul(w,ne)|0,i=(i=i+Math.imul(w,re)|0)+Math.imul(A,ne)|0,o=o+Math.imul(A,re)|0,r=r+Math.imul(v,oe)|0,i=(i=i+Math.imul(v,ae)|0)+Math.imul(y,oe)|0,o=o+Math.imul(y,ae)|0,r=r+Math.imul(p,ue)|0,i=(i=i+Math.imul(p,le)|0)+Math.imul(m,ue)|0,o=o+Math.imul(m,le)|0;var Se=(l+(r=r+Math.imul(d,de)|0)|0)+((8191&(i=(i=i+Math.imul(d,fe)|0)+Math.imul(f,de)|0))<<13)|0;l=((o=o+Math.imul(f,fe)|0)+(i>>>13)|0)+(Se>>>26)|0,Se&=67108863,r=Math.imul(j,F),i=(i=Math.imul(j,q))+Math.imul(U,F)|0,o=Math.imul(U,q),r=r+Math.imul(N,V)|0,i=(i=i+Math.imul(N,K)|0)+Math.imul(D,V)|0,o=o+Math.imul(D,K)|0,r=r+Math.imul(P,$)|0,i=(i=i+Math.imul(P,Y)|0)+Math.imul(L,$)|0,o=o+Math.imul(L,Y)|0,r=r+Math.imul(R,Q)|0,i=(i=i+Math.imul(R,Z)|0)+Math.imul(O,Q)|0,o=o+Math.imul(O,Z)|0,r=r+Math.imul(M,J)|0,i=(i=i+Math.imul(M,ee)|0)+Math.imul(C,J)|0,o=o+Math.imul(C,ee)|0,r=r+Math.imul(E,ne)|0,i=(i=i+Math.imul(E,re)|0)+Math.imul(S,ne)|0,o=o+Math.imul(S,re)|0,r=r+Math.imul(w,oe)|0,i=(i=i+Math.imul(w,ae)|0)+Math.imul(A,oe)|0,o=o+Math.imul(A,ae)|0,r=r+Math.imul(v,ue)|0,i=(i=i+Math.imul(v,le)|0)+Math.imul(y,ue)|0,o=o+Math.imul(y,le)|0,r=r+Math.imul(p,de)|0,i=(i=i+Math.imul(p,fe)|0)+Math.imul(m,de)|0,o=o+Math.imul(m,fe)|0;var ke=(l+(r=r+Math.imul(d,pe)|0)|0)+((8191&(i=(i=i+Math.imul(d,me)|0)+Math.imul(f,pe)|0))<<13)|0;l=((o=o+Math.imul(f,me)|0)+(i>>>13)|0)+(ke>>>26)|0,ke&=67108863,r=Math.imul(j,V),i=(i=Math.imul(j,K))+Math.imul(U,V)|0,o=Math.imul(U,K),r=r+Math.imul(N,$)|0,i=(i=i+Math.imul(N,Y)|0)+Math.imul(D,$)|0,o=o+Math.imul(D,Y)|0,r=r+Math.imul(P,Q)|0,i=(i=i+Math.imul(P,Z)|0)+Math.imul(L,Q)|0,o=o+Math.imul(L,Z)|0,r=r+Math.imul(R,J)|0,i=(i=i+Math.imul(R,ee)|0)+Math.imul(O,J)|0,o=o+Math.imul(O,ee)|0,r=r+Math.imul(M,ne)|0,i=(i=i+Math.imul(M,re)|0)+Math.imul(C,ne)|0,o=o+Math.imul(C,re)|0,r=r+Math.imul(E,oe)|0,i=(i=i+Math.imul(E,ae)|0)+Math.imul(S,oe)|0,o=o+Math.imul(S,ae)|0,r=r+Math.imul(w,ue)|0,i=(i=i+Math.imul(w,le)|0)+Math.imul(A,ue)|0,o=o+Math.imul(A,le)|0,r=r+Math.imul(v,de)|0,i=(i=i+Math.imul(v,fe)|0)+Math.imul(y,de)|0,o=o+Math.imul(y,fe)|0;var Me=(l+(r=r+Math.imul(p,pe)|0)|0)+((8191&(i=(i=i+Math.imul(p,me)|0)+Math.imul(m,pe)|0))<<13)|0;l=((o=o+Math.imul(m,me)|0)+(i>>>13)|0)+(Me>>>26)|0,Me&=67108863,r=Math.imul(j,$),i=(i=Math.imul(j,Y))+Math.imul(U,$)|0,o=Math.imul(U,Y),r=r+Math.imul(N,Q)|0,i=(i=i+Math.imul(N,Z)|0)+Math.imul(D,Q)|0,o=o+Math.imul(D,Z)|0,r=r+Math.imul(P,J)|0,i=(i=i+Math.imul(P,ee)|0)+Math.imul(L,J)|0,o=o+Math.imul(L,ee)|0,r=r+Math.imul(R,ne)|0,i=(i=i+Math.imul(R,re)|0)+Math.imul(O,ne)|0,o=o+Math.imul(O,re)|0,r=r+Math.imul(M,oe)|0,i=(i=i+Math.imul(M,ae)|0)+Math.imul(C,oe)|0,o=o+Math.imul(C,ae)|0,r=r+Math.imul(E,ue)|0,i=(i=i+Math.imul(E,le)|0)+Math.imul(S,ue)|0,o=o+Math.imul(S,le)|0,r=r+Math.imul(w,de)|0,i=(i=i+Math.imul(w,fe)|0)+Math.imul(A,de)|0,o=o+Math.imul(A,fe)|0;var Ce=(l+(r=r+Math.imul(v,pe)|0)|0)+((8191&(i=(i=i+Math.imul(v,me)|0)+Math.imul(y,pe)|0))<<13)|0;l=((o=o+Math.imul(y,me)|0)+(i>>>13)|0)+(Ce>>>26)|0,Ce&=67108863,r=Math.imul(j,Q),i=(i=Math.imul(j,Z))+Math.imul(U,Q)|0,o=Math.imul(U,Z),r=r+Math.imul(N,J)|0,i=(i=i+Math.imul(N,ee)|0)+Math.imul(D,J)|0,o=o+Math.imul(D,ee)|0,r=r+Math.imul(P,ne)|0,i=(i=i+Math.imul(P,re)|0)+Math.imul(L,ne)|0,o=o+Math.imul(L,re)|0,r=r+Math.imul(R,oe)|0,i=(i=i+Math.imul(R,ae)|0)+Math.imul(O,oe)|0,o=o+Math.imul(O,ae)|0,r=r+Math.imul(M,ue)|0,i=(i=i+Math.imul(M,le)|0)+Math.imul(C,ue)|0,o=o+Math.imul(C,le)|0,r=r+Math.imul(E,de)|0,i=(i=i+Math.imul(E,fe)|0)+Math.imul(S,de)|0,o=o+Math.imul(S,fe)|0;var xe=(l+(r=r+Math.imul(w,pe)|0)|0)+((8191&(i=(i=i+Math.imul(w,me)|0)+Math.imul(A,pe)|0))<<13)|0;l=((o=o+Math.imul(A,me)|0)+(i>>>13)|0)+(xe>>>26)|0,xe&=67108863,r=Math.imul(j,J),i=(i=Math.imul(j,ee))+Math.imul(U,J)|0,o=Math.imul(U,ee),r=r+Math.imul(N,ne)|0,i=(i=i+Math.imul(N,re)|0)+Math.imul(D,ne)|0,o=o+Math.imul(D,re)|0,r=r+Math.imul(P,oe)|0,i=(i=i+Math.imul(P,ae)|0)+Math.imul(L,oe)|0,o=o+Math.imul(L,ae)|0,r=r+Math.imul(R,ue)|0,i=(i=i+Math.imul(R,le)|0)+Math.imul(O,ue)|0,o=o+Math.imul(O,le)|0,r=r+Math.imul(M,de)|0,i=(i=i+Math.imul(M,fe)|0)+Math.imul(C,de)|0,o=o+Math.imul(C,fe)|0;var Re=(l+(r=r+Math.imul(E,pe)|0)|0)+((8191&(i=(i=i+Math.imul(E,me)|0)+Math.imul(S,pe)|0))<<13)|0;l=((o=o+Math.imul(S,me)|0)+(i>>>13)|0)+(Re>>>26)|0,Re&=67108863,r=Math.imul(j,ne),i=(i=Math.imul(j,re))+Math.imul(U,ne)|0,o=Math.imul(U,re),r=r+Math.imul(N,oe)|0,i=(i=i+Math.imul(N,ae)|0)+Math.imul(D,oe)|0,o=o+Math.imul(D,ae)|0,r=r+Math.imul(P,ue)|0,i=(i=i+Math.imul(P,le)|0)+Math.imul(L,ue)|0,o=o+Math.imul(L,le)|0,r=r+Math.imul(R,de)|0,i=(i=i+Math.imul(R,fe)|0)+Math.imul(O,de)|0,o=o+Math.imul(O,fe)|0;var Oe=(l+(r=r+Math.imul(M,pe)|0)|0)+((8191&(i=(i=i+Math.imul(M,me)|0)+Math.imul(C,pe)|0))<<13)|0;l=((o=o+Math.imul(C,me)|0)+(i>>>13)|0)+(Oe>>>26)|0,Oe&=67108863,r=Math.imul(j,oe),i=(i=Math.imul(j,ae))+Math.imul(U,oe)|0,o=Math.imul(U,ae),r=r+Math.imul(N,ue)|0,i=(i=i+Math.imul(N,le)|0)+Math.imul(D,ue)|0,o=o+Math.imul(D,le)|0,r=r+Math.imul(P,de)|0,i=(i=i+Math.imul(P,fe)|0)+Math.imul(L,de)|0,o=o+Math.imul(L,fe)|0;var Te=(l+(r=r+Math.imul(R,pe)|0)|0)+((8191&(i=(i=i+Math.imul(R,me)|0)+Math.imul(O,pe)|0))<<13)|0;l=((o=o+Math.imul(O,me)|0)+(i>>>13)|0)+(Te>>>26)|0,Te&=67108863,r=Math.imul(j,ue),i=(i=Math.imul(j,le))+Math.imul(U,ue)|0,o=Math.imul(U,le),r=r+Math.imul(N,de)|0,i=(i=i+Math.imul(N,fe)|0)+Math.imul(D,de)|0,o=o+Math.imul(D,fe)|0;var Pe=(l+(r=r+Math.imul(P,pe)|0)|0)+((8191&(i=(i=i+Math.imul(P,me)|0)+Math.imul(L,pe)|0))<<13)|0;l=((o=o+Math.imul(L,me)|0)+(i>>>13)|0)+(Pe>>>26)|0,Pe&=67108863,r=Math.imul(j,de),i=(i=Math.imul(j,fe))+Math.imul(U,de)|0,o=Math.imul(U,fe);var Le=(l+(r=r+Math.imul(N,pe)|0)|0)+((8191&(i=(i=i+Math.imul(N,me)|0)+Math.imul(D,pe)|0))<<13)|0;l=((o=o+Math.imul(D,me)|0)+(i>>>13)|0)+(Le>>>26)|0,Le&=67108863;var Ie=(l+(r=Math.imul(j,pe))|0)+((8191&(i=(i=Math.imul(j,me))+Math.imul(U,pe)|0))<<13)|0;return l=((o=Math.imul(U,me))+(i>>>13)|0)+(Ie>>>26)|0,Ie&=67108863,u[0]=ge,u[1]=ve,u[2]=ye,u[3]=be,u[4]=we,u[5]=Ae,u[6]=_e,u[7]=Ee,u[8]=Se,u[9]=ke,u[10]=Me,u[11]=Ce,u[12]=xe,u[13]=Re,u[14]=Oe,u[15]=Te,u[16]=Pe,u[17]=Le,u[18]=Ie,0!==l&&(u[19]=l,n.length++),n};function g(e,t,n){n.negative=t.negative^e.negative,n.length=e.length+t.length;for(var r=0,i=0,o=0;o>>26)|0)>>>26,a&=67108863}n.words[o]=s,r=a,a=i}return 0!==r?n.words[o]=r:n.length--,n._strip()}function v(e,t,n){return g(e,t,n)}Math.imul||(m=p),i.prototype.mulTo=function(e,t){var n=this.length+e.length;return 10===this.length&&10===e.length?m(this,e,t):n<63?p(this,e,t):n<1024?g(this,e,t):v(this,e,t)},i.prototype.mul=function(e){var t=new i(null);return t.words=new Array(this.length+e.length),this.mulTo(e,t)},i.prototype.mulf=function(e){var t=new i(null);return t.words=new Array(this.length+e.length),v(this,e,t)},i.prototype.imul=function(e){return this.clone().mulTo(e,this)},i.prototype.imuln=function(e){var t=e<0;t&&(e=-e),n("number"==typeof e),n(e<67108864);for(var r=0,i=0;i>=26,r+=o/67108864|0,r+=a>>>26,this.words[i]=67108863&a}return 0!==r&&(this.words[i]=r,this.length++),t?this.ineg():this},i.prototype.muln=function(e){return this.clone().imuln(e)},i.prototype.sqr=function(){return this.mul(this)},i.prototype.isqr=function(){return this.imul(this.clone())},i.prototype.pow=function(e){var t=function(e){for(var t=new Array(e.bitLength()),n=0;n>>i&1}return t}(e);if(0===t.length)return new i(1);for(var n=this,r=0;r=0);var t,r=e%26,i=(e-r)/26,o=67108863>>>26-r<<26-r;if(0!==r){var a=0;for(t=0;t>>26-r}a&&(this.words[t]=a,this.length++)}if(0!==i){for(t=this.length-1;t>=0;t--)this.words[t+i]=this.words[t];for(t=0;t=0),i=t?(t-t%26)/26:0;var o=e%26,a=Math.min((e-o)/26,this.length),s=67108863^67108863>>>o<a)for(this.length-=a,l=0;l=0&&(0!==c||l>=i);l--){var d=0|this.words[l];this.words[l]=c<<26-o|d>>>o,c=d&s}return u&&0!==c&&(u.words[u.length++]=c),0===this.length&&(this.words[0]=0,this.length=1),this._strip()},i.prototype.ishrn=function(e,t,r){return n(0===this.negative),this.iushrn(e,t,r)},i.prototype.shln=function(e){return this.clone().ishln(e)},i.prototype.ushln=function(e){return this.clone().iushln(e)},i.prototype.shrn=function(e){return this.clone().ishrn(e)},i.prototype.ushrn=function(e){return this.clone().iushrn(e)},i.prototype.testn=function(e){n("number"==typeof e&&e>=0);var t=e%26,r=(e-t)/26,i=1<=0);var t=e%26,r=(e-t)/26;if(n(0===this.negative,"imaskn works only with positive numbers"),this.length<=r)return this;if(0!==t&&r++,this.length=Math.min(r,this.length),0!==t){var i=67108863^67108863>>>t<=67108864;t++)this.words[t]-=67108864,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},i.prototype.isubn=function(e){if(n("number"==typeof e),n(e<67108864),e<0)return this.iaddn(-e);if(0!==this.negative)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var t=0;t>26)-(u/67108864|0),this.words[i+r]=67108863&o}for(;i>26,this.words[i+r]=67108863&o;if(0===s)return this._strip();for(n(-1===s),s=0,i=0;i>26,this.words[i]=67108863&o;return this.negative=1,this._strip()},i.prototype._wordDiv=function(e,t){var n=(this.length,e.length),r=this.clone(),o=e,a=0|o.words[o.length-1];0!=(n=26-this._countBits(a))&&(o=o.ushln(n),r.iushln(n),a=0|o.words[o.length-1]);var s,u=r.length-o.length;if("mod"!==t){(s=new i(null)).length=u+1,s.words=new Array(s.length);for(var l=0;l=0;d--){var f=67108864*(0|r.words[o.length+d])+(0|r.words[o.length+d-1]);for(f=Math.min(f/a|0,67108863),r._ishlnsubmul(o,f,d);0!==r.negative;)f--,r.negative=0,r._ishlnsubmul(o,1,d),r.isZero()||(r.negative^=1);s&&(s.words[d]=f)}return s&&s._strip(),r._strip(),"div"!==t&&0!==n&&r.iushrn(n),{div:s||null,mod:r}},i.prototype.divmod=function(e,t,r){return n(!e.isZero()),this.isZero()?{div:new i(0),mod:new i(0)}:0!==this.negative&&0===e.negative?(s=this.neg().divmod(e,t),"mod"!==t&&(o=s.div.neg()),"div"!==t&&(a=s.mod.neg(),r&&0!==a.negative&&a.iadd(e)),{div:o,mod:a}):0===this.negative&&0!==e.negative?(s=this.divmod(e.neg(),t),"mod"!==t&&(o=s.div.neg()),{div:o,mod:s.mod}):0!=(this.negative&e.negative)?(s=this.neg().divmod(e.neg(),t),"div"!==t&&(a=s.mod.neg(),r&&0!==a.negative&&a.isub(e)),{div:s.div,mod:a}):e.length>this.length||this.cmp(e)<0?{div:new i(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new i(this.modrn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new i(this.modrn(e.words[0]))}:this._wordDiv(e,t);var o,a,s},i.prototype.div=function(e){return this.divmod(e,"div",!1).div},i.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},i.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},i.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var n=0!==t.div.negative?t.mod.isub(e):t.mod,r=e.ushrn(1),i=e.andln(1),o=n.cmp(r);return o<0||1===i&&0===o?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},i.prototype.modrn=function(e){var t=e<0;t&&(e=-e),n(e<=67108863);for(var r=(1<<26)%e,i=0,o=this.length-1;o>=0;o--)i=(r*i+(0|this.words[o]))%e;return t?-i:i},i.prototype.modn=function(e){return this.modrn(e)},i.prototype.idivn=function(e){var t=e<0;t&&(e=-e),n(e<=67108863);for(var r=0,i=this.length-1;i>=0;i--){var o=(0|this.words[i])+67108864*r;this.words[i]=o/e|0,r=o%e}return this._strip(),t?this.ineg():this},i.prototype.divn=function(e){return this.clone().idivn(e)},i.prototype.egcd=function(e){n(0===e.negative),n(!e.isZero());var t=this,r=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var o=new i(1),a=new i(0),s=new i(0),u=new i(1),l=0;t.isEven()&&r.isEven();)t.iushrn(1),r.iushrn(1),++l;for(var c=r.clone(),d=t.clone();!t.isZero();){for(var f=0,h=1;0==(t.words[0]&h)&&f<26;++f,h<<=1);if(f>0)for(t.iushrn(f);f-- >0;)(o.isOdd()||a.isOdd())&&(o.iadd(c),a.isub(d)),o.iushrn(1),a.iushrn(1);for(var p=0,m=1;0==(r.words[0]&m)&&p<26;++p,m<<=1);if(p>0)for(r.iushrn(p);p-- >0;)(s.isOdd()||u.isOdd())&&(s.iadd(c),u.isub(d)),s.iushrn(1),u.iushrn(1);t.cmp(r)>=0?(t.isub(r),o.isub(s),a.isub(u)):(r.isub(t),s.isub(o),u.isub(a))}return{a:s,b:u,gcd:r.iushln(l)}},i.prototype._invmp=function(e){n(0===e.negative),n(!e.isZero());var t=this,r=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var o,a=new i(1),s=new i(0),u=r.clone();t.cmpn(1)>0&&r.cmpn(1)>0;){for(var l=0,c=1;0==(t.words[0]&c)&&l<26;++l,c<<=1);if(l>0)for(t.iushrn(l);l-- >0;)a.isOdd()&&a.iadd(u),a.iushrn(1);for(var d=0,f=1;0==(r.words[0]&f)&&d<26;++d,f<<=1);if(d>0)for(r.iushrn(d);d-- >0;)s.isOdd()&&s.iadd(u),s.iushrn(1);t.cmp(r)>=0?(t.isub(r),a.isub(s)):(r.isub(t),s.isub(a))}return(o=0===t.cmpn(1)?a:s).cmpn(0)<0&&o.iadd(e),o},i.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),n=e.clone();t.negative=0,n.negative=0;for(var r=0;t.isEven()&&n.isEven();r++)t.iushrn(1),n.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;n.isEven();)n.iushrn(1);var i=t.cmp(n);if(i<0){var o=t;t=n,n=o}else if(0===i||0===n.cmpn(1))break;t.isub(n)}return n.iushln(r)},i.prototype.invm=function(e){return this.egcd(e).a.umod(e)},i.prototype.isEven=function(){return 0==(1&this.words[0])},i.prototype.isOdd=function(){return 1==(1&this.words[0])},i.prototype.andln=function(e){return this.words[0]&e},i.prototype.bincn=function(e){n("number"==typeof e);var t=e%26,r=(e-t)/26,i=1<>>26,s&=67108863,this.words[a]=s}return 0!==o&&(this.words[a]=o,this.length++),this},i.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},i.prototype.cmpn=function(e){var t,r=e<0;if(0!==this.negative&&!r)return-1;if(0===this.negative&&r)return 1;if(this._strip(),this.length>1)t=1;else{r&&(e=-e),n(e<=67108863,"Number is too big");var i=0|this.words[0];t=i===e?0:ie.length)return 1;if(this.length=0;n--){var r=0|this.words[n],i=0|e.words[n];if(r!==i){ri&&(t=1);break}}return t},i.prototype.gtn=function(e){return 1===this.cmpn(e)},i.prototype.gt=function(e){return 1===this.cmp(e)},i.prototype.gten=function(e){return this.cmpn(e)>=0},i.prototype.gte=function(e){return this.cmp(e)>=0},i.prototype.ltn=function(e){return-1===this.cmpn(e)},i.prototype.lt=function(e){return-1===this.cmp(e)},i.prototype.lten=function(e){return this.cmpn(e)<=0},i.prototype.lte=function(e){return this.cmp(e)<=0},i.prototype.eqn=function(e){return 0===this.cmpn(e)},i.prototype.eq=function(e){return 0===this.cmp(e)},i.red=function(e){return new S(e)},i.prototype.toRed=function(e){return n(!this.red,"Already a number in reduction context"),n(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},i.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},i.prototype._forceRed=function(e){return this.red=e,this},i.prototype.forceRed=function(e){return n(!this.red,"Already a number in reduction context"),this._forceRed(e)},i.prototype.redAdd=function(e){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},i.prototype.redIAdd=function(e){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},i.prototype.redSub=function(e){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},i.prototype.redISub=function(e){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},i.prototype.redShl=function(e){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},i.prototype.redMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},i.prototype.redIMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},i.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},i.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},i.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},i.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},i.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},i.prototype.redPow=function(e){return n(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var y={k256:null,p224:null,p192:null,p25519:null};function b(e,t){this.name=e,this.p=new i(t,16),this.n=this.p.bitLength(),this.k=new i(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function w(){b.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function A(){b.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function _(){b.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function E(){b.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function S(e){if("string"==typeof e){var t=i._prime(e);this.m=t.p,this.prime=t}else n(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function k(e){S.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new i(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}b.prototype._tmp=function(){var e=new i(null);return e.words=new Array(Math.ceil(this.n/13)),e},b.prototype.ireduce=function(e){var t,n=e;do{this.split(n,this.tmp),t=(n=(n=this.imulK(n)).iadd(this.tmp)).bitLength()}while(t>this.n);var r=t0?n.isub(this.p):void 0!==n.strip?n.strip():n._strip(),n},b.prototype.split=function(e,t){e.iushrn(this.n,0,t)},b.prototype.imulK=function(e){return e.imul(this.k)},r(w,b),w.prototype.split=function(e,t){for(var n=4194303,r=Math.min(e.length,9),i=0;i>>22,o=a}o>>>=22,e.words[i-10]=o,0===o&&e.length>10?e.length-=10:e.length-=9},w.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,n=0;n>>=26,e.words[n]=i,t=r}return 0!==t&&(e.words[e.length++]=t),e},i._prime=function(e){if(y[e])return y[e];var t;if("k256"===e)t=new w;else if("p224"===e)t=new A;else if("p192"===e)t=new _;else{if("p25519"!==e)throw new Error("Unknown prime "+e);t=new E}return y[e]=t,t},S.prototype._verify1=function(e){n(0===e.negative,"red works only with positives"),n(e.red,"red works only with red numbers")},S.prototype._verify2=function(e,t){n(0==(e.negative|t.negative),"red works only with positives"),n(e.red&&e.red===t.red,"red works only with red numbers")},S.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):(l(e,e.umod(this.m)._forceRed(this)),e)},S.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},S.prototype.add=function(e,t){this._verify2(e,t);var n=e.add(t);return n.cmp(this.m)>=0&&n.isub(this.m),n._forceRed(this)},S.prototype.iadd=function(e,t){this._verify2(e,t);var n=e.iadd(t);return n.cmp(this.m)>=0&&n.isub(this.m),n},S.prototype.sub=function(e,t){this._verify2(e,t);var n=e.sub(t);return n.cmpn(0)<0&&n.iadd(this.m),n._forceRed(this)},S.prototype.isub=function(e,t){this._verify2(e,t);var n=e.isub(t);return n.cmpn(0)<0&&n.iadd(this.m),n},S.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},S.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},S.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},S.prototype.isqr=function(e){return this.imul(e,e.clone())},S.prototype.sqr=function(e){return this.mul(e,e)},S.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(n(t%2==1),3===t){var r=this.m.add(new i(1)).iushrn(2);return this.pow(e,r)}for(var o=this.m.subn(1),a=0;!o.isZero()&&0===o.andln(1);)a++,o.iushrn(1);n(!o.isZero());var s=new i(1).toRed(this),u=s.redNeg(),l=this.m.subn(1).iushrn(1),c=this.m.bitLength();for(c=new i(2*c*c).toRed(this);0!==this.pow(c,l).cmp(u);)c.redIAdd(u);for(var d=this.pow(c,o),f=this.pow(e,o.addn(1).iushrn(1)),h=this.pow(e,o),p=a;0!==h.cmp(s);){for(var m=h,g=0;0!==m.cmp(s);g++)m=m.redSqr();n(g=0;r--){for(var l=t.words[r],c=u-1;c>=0;c--){var d=l>>c&1;o!==n[0]&&(o=this.sqr(o)),0!==d||0!==a?(a<<=1,a|=d,(4==++s||0===r&&0===c)&&(o=this.mul(o,n[a]),s=0,a=0)):s=0}u=26}return o},S.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},S.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},i.mont=function(e){return new k(e)},r(k,S),k.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},k.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},k.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var n=e.imul(t),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=n.isub(r).iushrn(this.shift),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):i.cmpn(0)<0&&(o=i.iadd(this.m)),o._forceRed(this)},k.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new i(0)._forceRed(this);var n=e.mul(t),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),o=n.isub(r).iushrn(this.shift),a=o;return o.cmp(this.m)>=0?a=o.isub(this.m):o.cmpn(0)<0&&(a=o.iadd(this.m)),a._forceRed(this)},k.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(ov,hr);var av,sv=ov.exports,uv={},lv={},cv={},dv={},fv=yr,hv=fv.Buffer,pv={};for(av in fv)fv.hasOwnProperty(av)&&"SlowBuffer"!==av&&"Buffer"!==av&&(pv[av]=fv[av]);var mv=pv.Buffer={};for(av in hv)hv.hasOwnProperty(av)&&"allocUnsafe"!==av&&"allocUnsafeSlow"!==av&&(mv[av]=hv[av]);if(pv.Buffer.prototype=hv.prototype,mv.from&&mv.from!==Uint8Array.from||(mv.from=function(e,t,n){if("number"==typeof e)throw new TypeError('The "value" argument must not be of type number. Received type '+typeof e);if(e&&void 0===e.length)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);return hv(e,t,n)}),mv.alloc||(mv.alloc=function(e,t,n){if("number"!=typeof e)throw new TypeError('The "size" argument must be of type number. Received type '+typeof e);if(e<0||e>=2*(1<<30))throw new RangeError('The value "'+e+'" is invalid for option "size"');var r=hv(e);return t&&0!==t.length?"string"==typeof n?r.fill(t,n):r.fill(t):r.fill(0),r}),!pv.kStringMaxLength)try{pv.kStringMaxLength=Vr.binding("buffer").kStringMaxLength}catch(s){}pv.constants||(pv.constants={MAX_LENGTH:pv.kMaxLength},pv.kStringMaxLength&&(pv.constants.MAX_STRING_LENGTH=pv.kStringMaxLength));var gv=pv,vv={};const yv=Jr;function bv(e){this._reporterState={obj:null,path:[],options:e||{},errors:[]}}function wv(e,t){this.path=e,this.rethrow(t)}vv.Reporter=bv,bv.prototype.isError=function(e){return e instanceof wv},bv.prototype.save=function(){const e=this._reporterState;return{obj:e.obj,pathLen:e.path.length}},bv.prototype.restore=function(e){const t=this._reporterState;t.obj=e.obj,t.path=t.path.slice(0,e.pathLen)},bv.prototype.enterKey=function(e){return this._reporterState.path.push(e)},bv.prototype.exitKey=function(e){const t=this._reporterState;t.path=t.path.slice(0,e-1)},bv.prototype.leaveKey=function(e,t,n){const r=this._reporterState;this.exitKey(e),null!==r.obj&&(r.obj[t]=n)},bv.prototype.path=function(){return this._reporterState.path.join("/")},bv.prototype.enterObject=function(){const e=this._reporterState,t=e.obj;return e.obj={},t},bv.prototype.leaveObject=function(e){const t=this._reporterState,n=t.obj;return t.obj=e,n},bv.prototype.error=function(e){let t;const n=this._reporterState,r=e instanceof wv;if(t=r?e:new wv(n.path.map((function(e){return"["+JSON.stringify(e)+"]"})).join(""),e.message||e,e.stack),!n.options.partial)throw t;return r||n.errors.push(t),t},bv.prototype.wrapResult=function(e){const t=this._reporterState;return t.options.partial?{result:this.isError(e)?null:e,errors:t.errors}:e},yv(wv,Error),wv.prototype.rethrow=function(e){if(this.message=e+" at: "+(this.path||"(shallow)"),Error.captureStackTrace&&Error.captureStackTrace(this,wv),!this.stack)try{throw new Error(this.message)}catch(e){this.stack=e.stack}return this};var Av={};const _v=Jr,Ev=vv.Reporter,Sv=gv.Buffer;function kv(e,t){Ev.call(this,t),Sv.isBuffer(e)?(this.base=e,this.offset=0,this.length=e.length):this.error("Input not Buffer")}function Mv(e,t){if(Array.isArray(e))this.length=0,this.value=e.map((function(e){return Mv.isEncoderBuffer(e)||(e=new Mv(e,t)),this.length+=e.length,e}),this);else if("number"==typeof e){if(!(0<=e&&e<=255))return t.error("non-byte EncoderBuffer value");this.value=e,this.length=1}else if("string"==typeof e)this.value=e,this.length=Sv.byteLength(e);else{if(!Sv.isBuffer(e))return t.error("Unsupported type: "+typeof e);this.value=e,this.length=e.length}}_v(kv,Ev),Av.DecoderBuffer=kv,kv.isDecoderBuffer=function(e){return e instanceof kv||"object"==typeof e&&Sv.isBuffer(e.base)&&"DecoderBuffer"===e.constructor.name&&"number"==typeof e.offset&&"number"==typeof e.length&&"function"==typeof e.save&&"function"==typeof e.restore&&"function"==typeof e.isEmpty&&"function"==typeof e.readUInt8&&"function"==typeof e.skip&&"function"==typeof e.raw},kv.prototype.save=function(){return{offset:this.offset,reporter:Ev.prototype.save.call(this)}},kv.prototype.restore=function(e){const t=new kv(this.base);return t.offset=e.offset,t.length=this.offset,this.offset=e.offset,Ev.prototype.restore.call(this,e.reporter),t},kv.prototype.isEmpty=function(){return this.offset===this.length},kv.prototype.readUInt8=function(e){return this.offset+1<=this.length?this.base.readUInt8(this.offset++,!0):this.error(e||"DecoderBuffer overrun")},kv.prototype.skip=function(e,t){if(!(this.offset+e<=this.length))return this.error(t||"DecoderBuffer overrun");const n=new kv(this.base);return n._reporterState=this._reporterState,n.offset=this.offset,n.length=this.offset+e,this.offset+=e,n},kv.prototype.raw=function(e){return this.base.slice(e?e.offset:this.offset,this.length)},Av.EncoderBuffer=Mv,Mv.isEncoderBuffer=function(e){return e instanceof Mv||"object"==typeof e&&"EncoderBuffer"===e.constructor.name&&"number"==typeof e.length&&"function"==typeof e.join},Mv.prototype.join=function(e,t){return e||(e=Sv.alloc(this.length)),t||(t=0),0===this.length||(Array.isArray(this.value)?this.value.forEach((function(n){n.join(e,t),t+=n.length})):("number"==typeof this.value?e[t]=this.value:"string"==typeof this.value?e.write(this.value,t):Sv.isBuffer(this.value)&&this.value.copy(e,t),t+=this.length)),e};const Cv=vv.Reporter,xv=Av.EncoderBuffer,Rv=Av.DecoderBuffer,Ov=Gl,Tv=["seq","seqof","set","setof","objid","bool","gentime","utctime","null_","enum","int","objDesc","bitstr","bmpstr","charstr","genstr","graphstr","ia5str","iso646str","numstr","octstr","printstr","t61str","unistr","utf8str","videostr"],Pv=["key","obj","use","optional","explicit","implicit","def","choice","any","contains"].concat(Tv);function Lv(e,t,n){const r={};this._baseState=r,r.name=n,r.enc=e,r.parent=t||null,r.children=null,r.tag=null,r.args=null,r.reverseArgs=null,r.choice=null,r.optional=!1,r.any=!1,r.obj=!1,r.use=null,r.useDecoder=null,r.key=null,r.default=null,r.explicit=null,r.implicit=null,r.contains=null,r.parent||(r.children=[],this._wrap())}var Iv=Lv;const Nv=["enc","parent","children","tag","args","reverseArgs","choice","optional","any","obj","use","alteredUse","key","default","explicit","implicit","contains"];Lv.prototype.clone=function(){const e=this._baseState,t={};Nv.forEach((function(n){t[n]=e[n]}));const n=new this.constructor(t.parent);return n._baseState=t,n},Lv.prototype._wrap=function(){const e=this._baseState;Pv.forEach((function(t){this[t]=function(){const n=new this.constructor(this);return e.children.push(n),n[t].apply(n,arguments)}}),this)},Lv.prototype._init=function(e){const t=this._baseState;Ov(null===t.parent),e.call(this),t.children=t.children.filter((function(e){return e._baseState.parent===this}),this),Ov.equal(t.children.length,1,"Root node can have only one child")},Lv.prototype._useArgs=function(e){const t=this._baseState,n=e.filter((function(e){return e instanceof this.constructor}),this);e=e.filter((function(e){return!(e instanceof this.constructor)}),this),0!==n.length&&(Ov(null===t.children),t.children=n,n.forEach((function(e){e._baseState.parent=this}),this)),0!==e.length&&(Ov(null===t.args),t.args=e,t.reverseArgs=e.map((function(e){if("object"!=typeof e||e.constructor!==Object)return e;const t={};return Object.keys(e).forEach((function(n){n==(0|n)&&(n|=0);const r=e[n];t[r]=n})),t})))},["_peekTag","_decodeTag","_use","_decodeStr","_decodeObjid","_decodeTime","_decodeNull","_decodeInt","_decodeBool","_decodeList","_encodeComposite","_encodeStr","_encodeObjid","_encodeTime","_encodeNull","_encodeInt","_encodeBool"].forEach((function(e){Lv.prototype[e]=function(){const t=this._baseState;throw new Error(e+" not implemented for encoding: "+t.enc)}})),Tv.forEach((function(e){Lv.prototype[e]=function(){const t=this._baseState,n=Array.prototype.slice.call(arguments);return Ov(null===t.tag),t.tag=e,this._useArgs(n),this}})),Lv.prototype.use=function(e){Ov(e);const t=this._baseState;return Ov(null===t.use),t.use=e,this},Lv.prototype.optional=function(){return this._baseState.optional=!0,this},Lv.prototype.def=function(e){const t=this._baseState;return Ov(null===t.default),t.default=e,t.optional=!0,this},Lv.prototype.explicit=function(e){const t=this._baseState;return Ov(null===t.explicit&&null===t.implicit),t.explicit=e,this},Lv.prototype.implicit=function(e){const t=this._baseState;return Ov(null===t.explicit&&null===t.implicit),t.implicit=e,this},Lv.prototype.obj=function(){const e=this._baseState,t=Array.prototype.slice.call(arguments);return e.obj=!0,0!==t.length&&this._useArgs(t),this},Lv.prototype.key=function(e){const t=this._baseState;return Ov(null===t.key),t.key=e,this},Lv.prototype.any=function(){return this._baseState.any=!0,this},Lv.prototype.choice=function(e){const t=this._baseState;return Ov(null===t.choice),t.choice=e,this._useArgs(Object.keys(e).map((function(t){return e[t]}))),this},Lv.prototype.contains=function(e){const t=this._baseState;return Ov(null===t.use),t.contains=e,this},Lv.prototype._decode=function(e,t){const n=this._baseState;if(null===n.parent)return e.wrapResult(n.children[0]._decode(e,t));let r,i=n.default,o=!0,a=null;if(null!==n.key&&(a=e.enterKey(n.key)),n.optional){let r=null;if(null!==n.explicit?r=n.explicit:null!==n.implicit?r=n.implicit:null!==n.tag&&(r=n.tag),null!==r||n.any){if(o=this._peekTag(e,r,n.any),e.isError(o))return o}else{const r=e.save();try{null===n.choice?this._decodeGeneric(n.tag,e,t):this._decodeChoice(e,t),o=!0}catch(e){o=!1}e.restore(r)}}if(n.obj&&o&&(r=e.enterObject()),o){if(null!==n.explicit){const t=this._decodeTag(e,n.explicit);if(e.isError(t))return t;e=t}const r=e.offset;if(null===n.use&&null===n.choice){let t;n.any&&(t=e.save());const r=this._decodeTag(e,null!==n.implicit?n.implicit:n.tag,n.any);if(e.isError(r))return r;n.any?i=e.raw(t):e=r}if(t&&t.track&&null!==n.tag&&t.track(e.path(),r,e.length,"tagged"),t&&t.track&&null!==n.tag&&t.track(e.path(),e.offset,e.length,"content"),n.any||(i=null===n.choice?this._decodeGeneric(n.tag,e,t):this._decodeChoice(e,t)),e.isError(i))return i;if(n.any||null!==n.choice||null===n.children||n.children.forEach((function(n){n._decode(e,t)})),n.contains&&("octstr"===n.tag||"bitstr"===n.tag)){const r=new Rv(i);i=this._getUse(n.contains,e._reporterState.obj)._decode(r,t)}}return n.obj&&o&&(i=e.leaveObject(r)),null===n.key||null===i&&!0!==o?null!==a&&e.exitKey(a):e.leaveKey(a,n.key,i),i},Lv.prototype._decodeGeneric=function(e,t,n){const r=this._baseState;return"seq"===e||"set"===e?null:"seqof"===e||"setof"===e?this._decodeList(t,e,r.args[0],n):/str$/.test(e)?this._decodeStr(t,e,n):"objid"===e&&r.args?this._decodeObjid(t,r.args[0],r.args[1],n):"objid"===e?this._decodeObjid(t,null,null,n):"gentime"===e||"utctime"===e?this._decodeTime(t,e,n):"null_"===e?this._decodeNull(t,n):"bool"===e?this._decodeBool(t,n):"objDesc"===e?this._decodeStr(t,e,n):"int"===e||"enum"===e?this._decodeInt(t,r.args&&r.args[0],n):null!==r.use?this._getUse(r.use,t._reporterState.obj)._decode(t,n):t.error("unknown tag: "+e)},Lv.prototype._getUse=function(e,t){const n=this._baseState;return n.useDecoder=this._use(e,t),Ov(null===n.useDecoder._baseState.parent),n.useDecoder=n.useDecoder._baseState.children[0],n.implicit!==n.useDecoder._baseState.implicit&&(n.useDecoder=n.useDecoder.clone(),n.useDecoder._baseState.implicit=n.implicit),n.useDecoder},Lv.prototype._decodeChoice=function(e,t){const n=this._baseState;let r=null,i=!1;return Object.keys(n.choice).some((function(o){const a=e.save(),s=n.choice[o];try{const n=s._decode(e,t);if(e.isError(n))return!1;r={type:o,value:n},i=!0}catch(t){return e.restore(a),!1}return!0}),this),i?r:e.error("Choice not matched")},Lv.prototype._createEncoderBuffer=function(e){return new xv(e,this.reporter)},Lv.prototype._encode=function(e,t,n){const r=this._baseState;if(null!==r.default&&r.default===e)return;const i=this._encodeValue(e,t,n);return void 0===i||this._skipDefault(i,t,n)?void 0:i},Lv.prototype._encodeValue=function(e,t,n){const r=this._baseState;if(null===r.parent)return r.children[0]._encode(e,t||new Cv);let i=null;if(this.reporter=t,r.optional&&void 0===e){if(null===r.default)return;e=r.default}let o=null,a=!1;if(r.any)i=this._createEncoderBuffer(e);else if(r.choice)i=this._encodeChoice(e,t);else if(r.contains)o=this._getUse(r.contains,n)._encode(e,t),a=!0;else if(r.children)o=r.children.map((function(n){if("null_"===n._baseState.tag)return n._encode(null,t,e);if(null===n._baseState.key)return t.error("Child should have a key");const r=t.enterKey(n._baseState.key);if("object"!=typeof e)return t.error("Child expected, but input is not object");const i=n._encode(e[n._baseState.key],t,e);return t.leaveKey(r),i}),this).filter((function(e){return e})),o=this._createEncoderBuffer(o);else if("seqof"===r.tag||"setof"===r.tag){if(!r.args||1!==r.args.length)return t.error("Too many args for : "+r.tag);if(!Array.isArray(e))return t.error("seqof/setof, but data is not Array");const n=this.clone();n._baseState.implicit=null,o=this._createEncoderBuffer(e.map((function(n){const r=this._baseState;return this._getUse(r.args[0],e)._encode(n,t)}),n))}else null!==r.use?i=this._getUse(r.use,n)._encode(e,t):(o=this._encodePrimitive(r.tag,e),a=!0);if(!r.any&&null===r.choice){const e=null!==r.implicit?r.implicit:r.tag,n=null===r.implicit?"universal":"context";null===e?null===r.use&&t.error("Tag could be omitted only for .use()"):null===r.use&&(i=this._encodeComposite(e,a,n,o))}return null!==r.explicit&&(i=this._encodeComposite(r.explicit,!1,"context",i)),i},Lv.prototype._encodeChoice=function(e,t){const n=this._baseState,r=n.choice[e.type];return r||Ov(!1,e.type+" not found in "+JSON.stringify(Object.keys(n.choice))),r._encode(e.value,t)},Lv.prototype._encodePrimitive=function(e,t){const n=this._baseState;if(/str$/.test(e))return this._encodeStr(t,e);if("objid"===e&&n.args)return this._encodeObjid(t,n.reverseArgs[0],n.args[1]);if("objid"===e)return this._encodeObjid(t,null,null);if("gentime"===e||"utctime"===e)return this._encodeTime(t,e);if("null_"===e)return this._encodeNull();if("int"===e||"enum"===e)return this._encodeInt(t,n.args&&n.reverseArgs[0]);if("bool"===e)return this._encodeBool(t);if("objDesc"===e)return this._encodeStr(t,e);throw new Error("Unsupported tag: "+e)},Lv.prototype._isNumstr=function(e){return/^[0-9 ]*$/.test(e)},Lv.prototype._isPrintstr=function(e){return/^[A-Za-z0-9 '()+,-./:=?]*$/.test(e)};var Dv={};!function(e){function t(e){const t={};return Object.keys(e).forEach((function(n){(0|n)==n&&(n|=0);const r=e[n];t[r]=n})),t}e.tagClass={0:"universal",1:"application",2:"context",3:"private"},e.tagClassByName=t(e.tagClass),e.tag={0:"end",1:"bool",2:"int",3:"bitstr",4:"octstr",5:"null_",6:"objid",7:"objDesc",8:"external",9:"real",10:"enum",11:"embed",12:"utf8str",13:"relativeOid",16:"seq",17:"set",18:"numstr",19:"printstr",20:"t61str",21:"videostr",22:"ia5str",23:"utctime",24:"gentime",25:"graphstr",26:"iso646str",27:"genstr",28:"unistr",29:"charstr",30:"bmpstr"},e.tagByName=t(e.tag)}(Dv);const Bv=Jr,jv=gv.Buffer,Uv=Iv,zv=Dv;function Fv(e){this.enc="der",this.name=e.name,this.entity=e,this.tree=new Wv,this.tree._init(e.body)}var qv=Fv;function Wv(e){Uv.call(this,"der",e)}function Vv(e){return e<10?"0"+e:e}Fv.prototype.encode=function(e,t){return this.tree._encode(e,t).join()},Bv(Wv,Uv),Wv.prototype._encodeComposite=function(e,t,n,r){const i=function(e,t,n,r){let i;if("seqof"===e?e="seq":"setof"===e&&(e="set"),zv.tagByName.hasOwnProperty(e))i=zv.tagByName[e];else{if("number"!=typeof e||(0|e)!==e)return r.error("Unknown tag: "+e);i=e}return i>=31?r.error("Multi-octet tag encoding unsupported"):(t||(i|=32),i|=zv.tagClassByName[n||"universal"]<<6,i)}(e,t,n,this.reporter);if(r.length<128){const e=jv.alloc(2);return e[0]=i,e[1]=r.length,this._createEncoderBuffer([e,r])}let o=1;for(let s=r.length;s>=256;s>>=8)o++;const a=jv.alloc(2+o);a[0]=i,a[1]=128|o;for(let s=1+o,u=r.length;u>0;s--,u>>=8)a[s]=255&u;return this._createEncoderBuffer([a,r])},Wv.prototype._encodeStr=function(e,t){if("bitstr"===t)return this._createEncoderBuffer([0|e.unused,e.data]);if("bmpstr"===t){const t=jv.alloc(2*e.length);for(let n=0;n=40)return this.reporter.error("Second objid identifier OOB");e.splice(0,2,40*e[0]+e[1])}let r=0;for(let a=0;a=128;t>>=7)r++}const i=jv.alloc(r);let o=i.length-1;for(let a=e.length-1;a>=0;a--){let t=e[a];for(i[o--]=127&t;(t>>=7)>0;)i[o--]=128|127&t}return this._createEncoderBuffer(i)},Wv.prototype._encodeTime=function(e,t){let n;const r=new Date(e);return"gentime"===t?n=[Vv(r.getUTCFullYear()),Vv(r.getUTCMonth()+1),Vv(r.getUTCDate()),Vv(r.getUTCHours()),Vv(r.getUTCMinutes()),Vv(r.getUTCSeconds()),"Z"].join(""):"utctime"===t?n=[Vv(r.getUTCFullYear()%100),Vv(r.getUTCMonth()+1),Vv(r.getUTCDate()),Vv(r.getUTCHours()),Vv(r.getUTCMinutes()),Vv(r.getUTCSeconds()),"Z"].join(""):this.reporter.error("Encoding "+t+" time is not supported yet"),this._encodeStr(n,"octstr")},Wv.prototype._encodeNull=function(){return this._createEncoderBuffer("")},Wv.prototype._encodeInt=function(e,t){if("string"==typeof e){if(!t)return this.reporter.error("String int or enum given, but no values map");if(!t.hasOwnProperty(e))return this.reporter.error("Values map doesn't contain: "+JSON.stringify(e));e=t[e]}if("number"!=typeof e&&!jv.isBuffer(e)){const t=e.toArray();!e.sign&&128&t[0]&&t.unshift(0),e=jv.from(t)}if(jv.isBuffer(e)){let t=e.length;0===e.length&&t++;const n=jv.alloc(t);return e.copy(n),0===e.length&&(n[0]=0),this._createEncoderBuffer(n)}if(e<128)return this._createEncoderBuffer(e);if(e<256)return this._createEncoderBuffer([0,e]);let n=1;for(let i=e;i>=256;i>>=8)n++;const r=new Array(n);for(let i=r.length-1;i>=0;i--)r[i]=255&e,e>>=8;return 128&r[0]&&r.unshift(0),this._createEncoderBuffer(jv.from(r))},Wv.prototype._encodeBool=function(e){return this._createEncoderBuffer(e?255:0)},Wv.prototype._use=function(e,t){return"function"==typeof e&&(e=e(t)),e._getEncoder("der").tree},Wv.prototype._skipDefault=function(e,t,n){const r=this._baseState;let i;if(null===r.default)return!1;const o=e.join();if(void 0===r.defaultBuffer&&(r.defaultBuffer=this._encodeValue(r.default,t,n).join()),o.length!==r.defaultBuffer.length)return!1;for(i=0;i>6],i=0==(32&n);if(31==(31&n)){let r=n;for(n=0;128==(128&r);){if(r=e.readUInt8(t),e.isError(r))return r;n<<=7,n|=127&r}}else n&=31;return{cls:r,primitive:i,tag:n,tagStr:Jv.tag[n]}}function iy(e,t,n){let r=e.readUInt8(n);if(e.isError(r))return r;if(!t&&128===r)return null;if(0==(128&r))return r;const i=127&r;if(i>4)return e.error("length octect is too long");r=0;for(let o=0;on-a-2)throw new Error("message too long");var s=yb.alloc(n-r-a-2),u=n-o-1,l=db(o),c=pb(yb.concat([i,s,yb.alloc(1,1),t],u),hb(l,u)),d=pb(l,hb(c,o));return new mb(yb.concat([yb.alloc(1),d,c],n))}(o,t);else if(1===r)i=function(e,t,n){var r,i=t.length,o=e.modulus.byteLength();if(i>o-11)throw new Error("message too long");return r=n?yb.alloc(o-i-3,255):function(e){for(var t,n=yb.allocUnsafe(e),r=0,i=db(2*e),o=0;r=0)throw new Error("data too long for modulus")}return n?vb(i,o):gb(i,o)},wb=Ky,Ab=ib,_b=ab,Eb=vf,Sb=Ih,kb=$u,Mb=lb,Cb=$r.Buffer,xb=function(e,t,n){var r;r=e.padding?e.padding:n?1:4;var i,o=wb(e),a=o.modulus.byteLength();if(t.length>a||new Eb(t).cmp(o.modulus)>=0)throw new Error("decryption error");i=n?Mb(new Eb(t),o):Sb(t,o);var s=Cb.alloc(a-i.length);if(i=Cb.concat([s,i],a),4===r)return function(e,t){var n=e.modulus.byteLength(),r=kb("sha1").update(Cb.alloc(0)).digest(),i=r.length;if(0!==t[0])throw new Error("decryption error");var o=t.slice(1,i+1),a=t.slice(i+1),s=_b(o,Ab(a,i)),u=_b(a,Ab(s,n-i-1));if(function(e,t){e=Cb.from(e),t=Cb.from(t);var n=0,r=e.length;e.length!==t.length&&(n++,r=Math.min(e.length,t.length));for(var i=-1;++i=t.length){o++;break}var a=t.slice(2,i-1);if(("0002"!==r.toString("hex")&&!n||"0001"!==r.toString("hex")&&n)&&o++,a.length<8&&o++,o)throw new Error("decryption error");return t.slice(i)}(0,i,n);if(3===r)return i;throw new Error("unknown padding")};!function(e){e.publicEncrypt=bb,e.privateDecrypt=xb,e.privateEncrypt=function(t,n){return e.publicEncrypt(t,n,!0)},e.publicDecrypt=function(t,n){return e.privateDecrypt(t,n,!0)}}(tb);var Rb={};function Ob(){throw new Error("secure random number generation not supported by this browser\nuse chrome, FireFox or Internet Explorer 11")}var Tb,Pb=$r,Lb=Pb.Buffer,Ib=Pb.kMaxLength,Nb=hr.crypto||hr.msCrypto,Db=Math.pow(2,32)-1;function Bb(e,t){if("number"!=typeof e||e!=e)throw new TypeError("offset must be a number");if(e>Db||e<0)throw new TypeError("offset must be a uint32");if(e>Ib||e>t)throw new RangeError("offset out of range")}function jb(e,t,n){if("number"!=typeof e||e!=e)throw new TypeError("size must be a number");if(e>Db||e<0)throw new TypeError("size must be a uint32");if(e+t>n||e>Ib)throw new RangeError("buffer too small")}function Ub(e,t,n,r){var i=e.buffer,o=new Uint8Array(i,t,n);return Nb.getRandomValues(o),r?void Tr((function(){r(null,e)})):e}function zb(){if(Tb)return br;Tb=1,br.randomBytes=br.rng=br.pseudoRandomBytes=br.prng=Zr,br.createHash=br.Hash=$u,br.createHmac=br.Hmac=dl;var e=hl,t=Object.keys(e),n=["sha1","sha224","sha256","sha384","sha512","md5","rmd160"].concat(t);br.getHashes=function(){return n};var r=pl;br.pbkdf2=r.pbkdf2,br.pbkdf2Sync=r.pbkdf2Sync;var i=Wl;br.Cipher=i.Cipher,br.createCipher=i.createCipher,br.Cipheriv=i.Cipheriv,br.createCipheriv=i.createCipheriv,br.Decipher=i.Decipher,br.createDecipher=i.createDecipher,br.Decipheriv=i.Decipheriv,br.createDecipheriv=i.createDecipheriv,br.getCiphers=i.getCiphers,br.listCiphers=i.listCiphers;var o=function(){if(Sf)return cf;Sf=1;var e=Af(),t=Cf,n=function(){if(Ef)return _f;Ef=1;var e=vf,t=new(wf()),n=new e(24),r=new e(11),i=new e(10),o=new e(3),a=new e(7),s=Af(),u=Zr;function l(t,n){return n=n||"utf8",dr(t)||(t=new xn(t,n)),this._pub=new e(t),this}function c(t,n){return n=n||"utf8",dr(t)||(t=new xn(t,n)),this._priv=new e(t),this}_f=f;var d={};function f(t,n,r){this.setGenerator(n),this.__prime=new e(t),this._prime=e.mont(this.__prime),this._primeLen=t.length,this._pub=void 0,this._priv=void 0,this._primeCode=void 0,r?(this.setPublicKey=l,this.setPrivateKey=c):this._primeCode=8}function h(e,t){var n=new xn(e.toArray());return t?n.toString(t):n}return Object.defineProperty(f.prototype,"verifyError",{enumerable:!0,get:function(){return"number"!=typeof this._primeCode&&(this._primeCode=function(e,u){var l=u.toString("hex"),c=[l,e.toString(16)].join("_");if(c in d)return d[c];var f,h=0;if(e.isEven()||!s.simpleSieve||!s.fermatTest(e)||!t.test(e))return h+=1,h+="02"===l||"05"===l?8:4,d[c]=h,h;switch(t.test(e.shrn(1))||(h+=2),l){case"02":e.mod(n).cmp(r)&&(h+=8);break;case"05":(f=e.mod(i)).cmp(o)&&f.cmp(a)&&(h+=8);break;default:h+=4}return d[c]=h,h}(this.__prime,this.__gen)),this._primeCode}}),f.prototype.generateKeys=function(){return this._priv||(this._priv=new e(u(this._primeLen))),this._pub=this._gen.toRed(this._prime).redPow(this._priv).fromRed(),this.getPublicKey()},f.prototype.computeSecret=function(t){var n=new xn((t=(t=new e(t)).toRed(this._prime)).redPow(this._priv).fromRed().toArray()),r=this.getPrime();if(n.length0&&n.ishrn(r),n}function l(n,r,i){var o,a;do{for(o=e.alloc(0);8*o.length=t)throw new Error("invalid sig")}return Yy=function(a,s,u,l,c){var d=r(u);if("ec"===d.type){if("ecdsa"!==l&&"ecdsa/rsa"!==l)throw new Error("wrong public key type");return function(e,t,r){var o=i[r.data.algorithm.curve.join(".")];if(!o)throw new Error("unknown curve "+r.data.algorithm.curve.join("."));var a=new n(o),s=r.data.subjectPrivateKey.data;return a.verify(t,e,s)}(a,s,d)}if("dsa"===d.type){if("dsa"!==l)throw new Error("wrong public key type");return function(e,n,i){var a=i.data.p,s=i.data.q,u=i.data.g,l=i.data.pub_key,c=r.signature.decode(e,"der"),d=c.s,f=c.r;o(d,s),o(f,s);var h=t.mont(a),p=d.invm(s);return 0===u.toRed(h).redPow(new t(n).mul(p).mod(s)).fromRed().mul(l.toRed(h).redPow(f.mul(p).mod(s)).fromRed()).mod(a).mod(s).cmp(f)}(a,s,d)}if("rsa"!==l&&"ecdsa/rsa"!==l)throw new Error("wrong public key type");s=e.concat([c,s]);for(var f=d.modulus.byteLength(),h=[1],p=0;s.length+h.length+2{switch(e){case"sha256":case"sha3-256":case"blake2s256":return 32;case"sha512":case"sha3-512":case"blake2b512":return 64;case"sha224":case"sha3-224":return 28;case"sha384":case"sha3-384":return 48;case"sha1":return 20;case"md5":return 16;default:{let t=Vb[e];return void 0===t&&(t=qb(e).digest().length,Vb[e]=t),t}}},Hb=(e,t,n,r)=>{const i=Fb.isBuffer(n)?n:Fb.from(n),o=r&&r.length?Fb.from(r):Fb.alloc(t,0);return Wb(e,o).update(i).digest()},$b=(e,t,n,r,i)=>{const o=Fb.isBuffer(i)?i:Fb.from(i||""),a=o.length,s=Math.ceil(r/t);if(s>255)throw new Error(`OKM length ${r} is too long for ${e} hash`);const u=Fb.alloc(t*s+a+1);for(let l=1,c=0,d=0;l<=s;++l)o.copy(u,d),u[d+a]=l,Wb(e,n).update(u.slice(c,d+a+1)).digest().copy(u,d),c=d,d+=t;return u.slice(0,r)};function Yb(e,t,{salt:n="",info:r="",hash:i="SHA-256"}={}){i=i.toLowerCase().replace("-","");const o=Kb(i),a=Hb(i,o,e,n);return $b(i,o,a,t,r)}Object.defineProperties(Yb,{hash_length:{configurable:!1,enumerable:!1,writable:!1,value:Kb},extract:{configurable:!1,enumerable:!1,writable:!1,value:Hb},expand:{configurable:!1,enumerable:!1,writable:!1,value:$b}});var Gb=Yb;const Qb="Impossible case. Please create issue.",Zb="The tweak was out of range or the resulted private key is invalid",Xb="The tweak was out of range or equal to zero",Jb="Public Key could not be parsed",ew="Public Key serialization error",tw="Signature could not be parsed";function nw(e,t){if(!e)throw new Error(t)}function rw(e,t,n){if(nw(t instanceof Uint8Array,`Expected ${e} to be an Uint8Array`),void 0!==n)if(Array.isArray(n)){const r=`Expected ${e} to be an Uint8Array with length [${n.join(", ")}]`;nw(n.includes(t.length),r)}else{const r=`Expected ${e} to be an Uint8Array with length ${n}`;nw(t.length===n,r)}}function iw(e){nw("Boolean"===aw(e),"Expected compressed to be a Boolean")}function ow(e=e=>new Uint8Array(e),t){return"function"==typeof e&&(e=e(t)),rw("output",e,t),e}function aw(e){return Object.prototype.toString.call(e).slice(8,-1)}const sw=new(iv().ec)("secp256k1"),uw=sw.curve,lw=uw.n.constructor;function cw(e){const t=e[0];switch(t){case 2:case 3:return 33!==e.length?null:function(e,t){let n=new lw(t);if(n.cmp(uw.p)>=0)return null;n=n.toRed(uw.red);let r=n.redSqr().redIMul(n).redIAdd(uw.b).redSqrt();return 3===e!==r.isOdd()&&(r=r.redNeg()),sw.keyPair({pub:{x:n,y:r}})}(t,e.subarray(1,33));case 4:case 6:case 7:return 65!==e.length?null:function(e,t,n){let r=new lw(t),i=new lw(n);if(r.cmp(uw.p)>=0||i.cmp(uw.p)>=0)return null;if(r=r.toRed(uw.red),i=i.toRed(uw.red),(6===e||7===e)&&i.isOdd()!==(7===e))return null;const o=r.redSqr().redIMul(r);return i.redSqr().redISub(o.redIAdd(uw.b)).isZero()?sw.keyPair({pub:{x:r,y:i}}):null}(t,e.subarray(1,33),e.subarray(33,65));default:return null}}function dw(e,t){const n=t.encode(null,33===e.length);for(let r=0;r0,privateKeyVerify(e){const t=new lw(e);return t.cmp(uw.n)<0&&!t.isZero()?0:1},privateKeyNegate(e){const t=new lw(e),n=uw.n.sub(t).umod(uw.n).toArrayLike(Uint8Array,"be",32);return e.set(n),0},privateKeyTweakAdd(e,t){const n=new lw(t);if(n.cmp(uw.n)>=0)return 1;if(n.iadd(new lw(e)),n.cmp(uw.n)>=0&&n.isub(uw.n),n.isZero())return 1;const r=n.toArrayLike(Uint8Array,"be",32);return e.set(r),0},privateKeyTweakMul(e,t){let n=new lw(t);if(n.cmp(uw.n)>=0||n.isZero())return 1;n.imul(new lw(e)),n.cmp(uw.n)>=0&&(n=n.umod(uw.n));const r=n.toArrayLike(Uint8Array,"be",32);return e.set(r),0},publicKeyVerify:e=>null===cw(e)?1:0,publicKeyCreate(e,t){const n=new lw(t);return n.cmp(uw.n)>=0||n.isZero()?1:(dw(e,sw.keyFromPrivate(t).getPublic()),0)},publicKeyConvert(e,t){const n=cw(t);return null===n?1:(dw(e,n.getPublic()),0)},publicKeyNegate(e,t){const n=cw(t);if(null===n)return 1;const r=n.getPublic();return r.y=r.y.redNeg(),dw(e,r),0},publicKeyCombine(e,t){const n=new Array(t.length);for(let i=0;i=0)return 2;const i=r.getPublic().add(uw.g.mul(n));return i.isInfinity()?2:(dw(e,i),0)},publicKeyTweakMul(e,t,n){const r=cw(t);return null===r?1:(n=new lw(n)).cmp(uw.n)>=0||n.isZero()?2:(dw(e,r.getPublic().mul(n)),0)},signatureNormalize(e){const t=new lw(e.subarray(0,32)),n=new lw(e.subarray(32,64));return t.cmp(uw.n)>=0||n.cmp(uw.n)>=0?1:(1===n.cmp(sw.nh)&&e.set(uw.n.sub(n).toArrayLike(Uint8Array,"be",32),32),0)},signatureExport(e,t){const n=t.subarray(0,32),r=t.subarray(32,64);if(new lw(n).cmp(uw.n)>=0)return 1;if(new lw(r).cmp(uw.n)>=0)return 1;const{output:i}=e;let o=i.subarray(4,37);o[0]=0,o.set(n,1);let a=33,s=0;for(;a>1&&0===o[s]&&!(128&o[s+1]);--a,++s);if(o=o.subarray(s),128&o[0])return 1;if(a>1&&0===o[0]&&!(128&o[1]))return 1;let u=i.subarray(39,72);u[0]=0,u.set(r,1);let l=33,c=0;for(;l>1&&0===u[c]&&!(128&u[c+1]);--l,++c);return u=u.subarray(c),128&u[0]||l>1&&0===u[0]&&!(128&u[1])?1:(e.outputlen=6+a+l,i[0]=48,i[1]=e.outputlen-2,i[2]=2,i[3]=o.length,i.set(o,4),i[4+a]=2,i[5+a]=u.length,i.set(u,6+a),0)},signatureImport(e,t){if(t.length<8)return 1;if(t.length>72)return 1;if(48!==t[0])return 1;if(t[1]!==t.length-2)return 1;if(2!==t[2])return 1;const n=t[3];if(0===n)return 1;if(5+n>=t.length)return 1;if(2!==t[4+n])return 1;const r=t[5+n];if(0===r)return 1;if(6+n+r!==t.length)return 1;if(128&t[4])return 1;if(n>1&&0===t[4]&&!(128&t[5]))return 1;if(128&t[n+6])return 1;if(r>1&&0===t[n+6]&&!(128&t[n+7]))return 1;let i=t.subarray(4,4+n);if(33===i.length&&0===i[0]&&(i=i.subarray(1)),i.length>32)return 1;let o=t.subarray(6+n);if(33===o.length&&0===o[0]&&(o=o.slice(1)),o.length>32)throw new Error("S length is too long");let a=new lw(i);a.cmp(uw.n)>=0&&(a=new lw(0));let s=new lw(t.subarray(6+n));return s.cmp(uw.n)>=0&&(s=new lw(0)),e.set(a.toArrayLike(Uint8Array,"be",32),0),e.set(s.toArrayLike(Uint8Array,"be",32),32),0},ecdsaSign(e,t,n,r,i){if(i){const e=i;i=i=>{const o=e(t,n,null,r,i);if(!(o instanceof Uint8Array&&32===o.length))throw new Error("This is the way");return new lw(o)}}const o=new lw(n);if(o.cmp(uw.n)>=0||o.isZero())return 1;let a;try{a=sw.sign(t,n,{canonical:!0,k:i,pers:r})}catch(e){return 1}return e.signature.set(a.r.toArrayLike(Uint8Array,"be",32),0),e.signature.set(a.s.toArrayLike(Uint8Array,"be",32),32),e.recid=a.recoveryParam,0},ecdsaVerify(e,t,n){const r={r:e.subarray(0,32),s:e.subarray(32,64)},i=new lw(r.r),o=new lw(r.s);if(i.cmp(uw.n)>=0||o.cmp(uw.n)>=0)return 1;if(1===o.cmp(sw.nh)||i.isZero()||o.isZero())return 3;const a=cw(n);if(null===a)return 2;const s=a.getPublic();return sw.verify(t,r,s)?0:3},ecdsaRecover(e,t,n,r){const i={r:t.slice(0,32),s:t.slice(32,64)},o=new lw(i.r),a=new lw(i.s);if(o.cmp(uw.n)>=0||a.cmp(uw.n)>=0)return 1;if(o.isZero()||a.isZero())return 2;let s;try{s=sw.recoverPubKey(r,i,n)}catch(e){return 2}return dw(e,s),0},ecdh(e,t,n,r,i,o,a){const s=cw(t);if(null===s)return 1;const u=new lw(n);if(u.cmp(uw.n)>=0||u.isZero())return 2;const l=s.getPublic().mul(u);if(void 0===i){const t=l.encode(null,!0),n=sw.hash().update(t).digest();for(let r=0;r<32;++r)e[r]=n[r]}else{o||(o=new Uint8Array(32));const t=l.getX().toArray("be",32);for(let e=0;e<32;++e)o[e]=t[e];a||(a=new Uint8Array(32));const n=l.getY().toArray("be",32);for(let e=0;e<32;++e)a[e]=n[e];const s=i(o,a,r);if(!(s instanceof Uint8Array&&s.length===e.length))return 2;e.set(s)}return 0}},hw=(e=>({contextRandomize(t){if(nw(null===t||t instanceof Uint8Array,"Expected seed to be an Uint8Array or null"),null!==t&&rw("seed",t,32),1===e.contextRandomize(t))throw new Error("Unknow error on context randomization")},privateKeyVerify:t=>(rw("private key",t,32),0===e.privateKeyVerify(t)),privateKeyNegate(t){switch(rw("private key",t,32),e.privateKeyNegate(t)){case 0:return t;case 1:throw new Error(Qb)}},privateKeyTweakAdd(t,n){switch(rw("private key",t,32),rw("tweak",n,32),e.privateKeyTweakAdd(t,n)){case 0:return t;case 1:throw new Error(Zb)}},privateKeyTweakMul(t,n){switch(rw("private key",t,32),rw("tweak",n,32),e.privateKeyTweakMul(t,n)){case 0:return t;case 1:throw new Error(Xb)}},publicKeyVerify:t=>(rw("public key",t,[33,65]),0===e.publicKeyVerify(t)),publicKeyCreate(t,n=!0,r){switch(rw("private key",t,32),iw(n),r=ow(r,n?33:65),e.publicKeyCreate(r,t)){case 0:return r;case 1:throw new Error("Private Key is invalid");case 2:throw new Error(ew)}},publicKeyConvert(t,n=!0,r){switch(rw("public key",t,[33,65]),iw(n),r=ow(r,n?33:65),e.publicKeyConvert(r,t)){case 0:return r;case 1:throw new Error(Jb);case 2:throw new Error(ew)}},publicKeyNegate(t,n=!0,r){switch(rw("public key",t,[33,65]),iw(n),r=ow(r,n?33:65),e.publicKeyNegate(r,t)){case 0:return r;case 1:throw new Error(Jb);case 2:throw new Error(Qb);case 3:throw new Error(ew)}},publicKeyCombine(t,n=!0,r){nw(Array.isArray(t),"Expected public keys to be an Array"),nw(t.length>0,"Expected public keys array will have more than zero items");for(const e of t)rw("public key",e,[33,65]);switch(iw(n),r=ow(r,n?33:65),e.publicKeyCombine(r,t)){case 0:return r;case 1:throw new Error(Jb);case 2:throw new Error("The sum of the public keys is not valid");case 3:throw new Error(ew)}},publicKeyTweakAdd(t,n,r=!0,i){switch(rw("public key",t,[33,65]),rw("tweak",n,32),iw(r),i=ow(i,r?33:65),e.publicKeyTweakAdd(i,t,n)){case 0:return i;case 1:throw new Error(Jb);case 2:throw new Error(Zb)}},publicKeyTweakMul(t,n,r=!0,i){switch(rw("public key",t,[33,65]),rw("tweak",n,32),iw(r),i=ow(i,r?33:65),e.publicKeyTweakMul(i,t,n)){case 0:return i;case 1:throw new Error(Jb);case 2:throw new Error(Xb)}},signatureNormalize(t){switch(rw("signature",t,64),e.signatureNormalize(t)){case 0:return t;case 1:throw new Error(tw)}},signatureExport(t,n){rw("signature",t,64);const r={output:n=ow(n,72),outputlen:72};switch(e.signatureExport(r,t)){case 0:return n.slice(0,r.outputlen);case 1:throw new Error(tw);case 2:throw new Error(Qb)}},signatureImport(t,n){switch(rw("signature",t),n=ow(n,64),e.signatureImport(n,t)){case 0:return n;case 1:throw new Error(tw);case 2:throw new Error(Qb)}},ecdsaSign(t,n,r={},i){rw("message",t,32),rw("private key",n,32),nw("Object"===aw(r),"Expected options to be an Object"),void 0!==r.data&&rw("options.data",r.data),void 0!==r.noncefn&&nw("Function"===aw(r.noncefn),"Expected options.noncefn to be a Function");const o={signature:i=ow(i,64),recid:null};switch(e.ecdsaSign(o,t,n,r.data,r.noncefn)){case 0:return o;case 1:throw new Error("The nonce generation function failed, or the private key was invalid");case 2:throw new Error(Qb)}},ecdsaVerify(t,n,r){switch(rw("signature",t,64),rw("message",n,32),rw("public key",r,[33,65]),e.ecdsaVerify(t,n,r)){case 0:return!0;case 3:return!1;case 1:throw new Error(tw);case 2:throw new Error(Jb)}},ecdsaRecover(t,n,r,i=!0,o){switch(rw("signature",t,64),nw("Number"===aw(n)&&n>=0&&n<=3,"Expected recovery id to be a Number within interval [0, 3]"),rw("message",r,32),iw(i),o=ow(o,i?33:65),e.ecdsaRecover(o,t,n,r)){case 0:return o;case 1:throw new Error(tw);case 2:throw new Error("Public key could not be recover");case 3:throw new Error(Qb)}},ecdh(t,n,r={},i){switch(rw("public key",t,[33,65]),rw("private key",n,32),nw("Object"===aw(r),"Expected options to be an Object"),void 0!==r.data&&rw("options.data",r.data),void 0!==r.hashfn?(nw("Function"===aw(r.hashfn),"Expected options.hashfn to be a Function"),void 0!==r.xbuf&&rw("options.xbuf",r.xbuf,32),void 0!==r.ybuf&&rw("options.ybuf",r.ybuf,32),rw("output",i)):i=ow(i,32),e.ecdh(i,t,n,r.data,r.hashfn,r.xbuf,r.ybuf)){case 0:return i;case 1:throw new Error(Jb);case 2:throw new Error("Scalar was invalid (zero or overflow)")}}}))(fw),pw={},mw={};!function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.SECRET_KEY_LENGTH=e.AES_IV_PLUS_TAG_LENGTH=e.AES_TAG_LENGTH=e.AES_IV_LENGTH=e.UNCOMPRESSED_PUBLIC_KEY_SIZE=void 0,e.UNCOMPRESSED_PUBLIC_KEY_SIZE=65,e.AES_IV_LENGTH=16,e.AES_TAG_LENGTH=16,e.AES_IV_PLUS_TAG_LENGTH=e.AES_IV_LENGTH+e.AES_TAG_LENGTH,e.SECRET_KEY_LENGTH=32}(mw);var gw=hr&&hr.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(pw,"__esModule",{value:!0}),pw.aesDecrypt=pw.aesEncrypt=pw.getValidSecret=pw.decodeHex=pw.remove0x=void 0;var vw=zb(),yw=gw(hw),bw=mw;function ww(e){return e.startsWith("0x")||e.startsWith("0X")?e.slice(2):e}pw.remove0x=ww,pw.decodeHex=function(e){return xn.from(ww(e),"hex")},pw.getValidSecret=function(){var e;do{e=(0,vw.randomBytes)(bw.SECRET_KEY_LENGTH)}while(!yw.default.privateKeyVerify(e));return e},pw.aesEncrypt=function(e,t){var n=(0,vw.randomBytes)(bw.AES_IV_LENGTH),r=(0,vw.createCipheriv)("aes-256-gcm",e,n),i=xn.concat([r.update(t),r.final()]),o=r.getAuthTag();return xn.concat([n,o,i])},pw.aesDecrypt=function(e,t){var n=t.slice(0,bw.AES_IV_LENGTH),r=t.slice(bw.AES_IV_LENGTH,bw.AES_IV_PLUS_TAG_LENGTH),i=t.slice(bw.AES_IV_PLUS_TAG_LENGTH),o=(0,vw.createDecipheriv)("aes-256-gcm",e,n);return o.setAuthTag(r),xn.concat([o.update(i),o.final()])};var Aw={},_w=hr&&hr.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Aw,"__esModule",{value:!0});var Ew=_w(Gb),Sw=_w(hw),kw=pw,Mw=mw,Cw=function(){function e(e){this.uncompressed=xn.from(Sw.default.publicKeyConvert(e,!1)),this.compressed=xn.from(Sw.default.publicKeyConvert(e,!0))}return e.fromHex=function(t){var n=(0,kw.decodeHex)(t);if(n.length===Mw.UNCOMPRESSED_PUBLIC_KEY_SIZE-1){var r=xn.from([4]);return new e(xn.concat([r,n]))}return new e(n)},e.prototype.toHex=function(e){return void 0===e&&(e=!0),e?this.compressed.toString("hex"):this.uncompressed.toString("hex")},e.prototype.decapsulate=function(e){var t=xn.concat([this.uncompressed,e.multiply(this)]);return(0,Ew.default)(t,32,{hash:"SHA-256"})},e.prototype.equals=function(e){return this.uncompressed.equals(e.uncompressed)},e}();Aw.default=Cw;var xw=hr&&hr.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(vr,"__esModule",{value:!0});var Rw=xw(Gb),Ow=xw(hw),Tw=pw,Pw=xw(Aw),Lw=function(){function e(e){if(this.secret=e||(0,Tw.getValidSecret)(),!Ow.default.privateKeyVerify(this.secret))throw new Error("Invalid private key");this.publicKey=new Pw.default(xn.from(Ow.default.publicKeyCreate(this.secret)))}return e.fromHex=function(t){return new e((0,Tw.decodeHex)(t))},e.prototype.toHex=function(){return"0x".concat(this.secret.toString("hex"))},e.prototype.encapsulate=function(e){var t=xn.concat([this.publicKey.uncompressed,this.multiply(e)]);return(0,Rw.default)(t,32,{hash:"SHA-256"})},e.prototype.multiply=function(e){return xn.from(Ow.default.publicKeyTweakMul(e.compressed,this.secret,!1))},e.prototype.equals=function(e){return this.secret.equals(e.secret)},e}();vr.default=Lw,function(e){var t=hr&&hr.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0}),e.PublicKey=e.PrivateKey=void 0;var n=vr;Object.defineProperty(e,"PrivateKey",{enumerable:!0,get:function(){return t(n).default}});var r=Aw;Object.defineProperty(e,"PublicKey",{enumerable:!0,get:function(){return t(r).default}})}(gr),function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.utils=e.PublicKey=e.PrivateKey=e.decrypt=e.encrypt=void 0;var t=gr,n=pw,r=mw;e.encrypt=function(e,r){var i=new t.PrivateKey,o=e instanceof xn?new t.PublicKey(e):t.PublicKey.fromHex(e),a=i.encapsulate(o),s=(0,n.aesEncrypt)(a,r);return xn.concat([i.publicKey.uncompressed,s])},e.decrypt=function(e,i){var o=e instanceof xn?new t.PrivateKey(e):t.PrivateKey.fromHex(e),a=new t.PublicKey(i.slice(0,r.UNCOMPRESSED_PUBLIC_KEY_SIZE)),s=i.slice(r.UNCOMPRESSED_PUBLIC_KEY_SIZE),u=a.decapsulate(o);return(0,n.aesDecrypt)(u,s)};var i=gr;Object.defineProperty(e,"PrivateKey",{enumerable:!0,get:function(){return i.PrivateKey}}),Object.defineProperty(e,"PublicKey",{enumerable:!0,get:function(){return i.PublicKey}}),e.utils={aesDecrypt:n.aesDecrypt,aesEncrypt:n.aesEncrypt,decodeHex:n.decodeHex,getValidSecret:n.getValidSecret,remove0x:n.remove0x}}(mr);class Iw{constructor(e){this.enabled=!0,this.debug=!1,(null==e?void 0:e.debug)&&(this.debug=e.debug),(null==e?void 0:e.pkey)?this.ecies=mr.PrivateKey.fromHex(e.pkey):this.ecies=new mr.PrivateKey,this.debug&&(console.info("[ECIES] initialized secret: ",this.ecies.toHex()),console.info("[ECIES] initialized public: ",this.ecies.publicKey.toHex()),console.info("[ECIES] init with",this))}generateECIES(){this.ecies=new mr.PrivateKey}getPublicKey(){return this.ecies.publicKey.toHex()}encrypt(e,t){let n=e;if(this.enabled)try{this.debug&&console.debug("ECIES::encrypt() using otherPublicKey",t);const r=xn.from(e),i=mr.encrypt(t,r);n=xn.from(i).toString("base64")}catch(n){throw this.debug&&(console.error("error encrypt:",n),console.error("private: ",this.ecies.toHex()),console.error("data: ",e),console.error("otherkey: ",t)),n}return n}decrypt(e){let t=e;if(this.enabled)try{this.debug&&console.debug("ECIES::decrypt() using privateKey",this.ecies.toHex());const n=xn.from(e.toString(),"base64");t=mr.decrypt(this.ecies.toHex(),n).toString()}catch(t){throw this.debug&&(console.error("error decrypt",t),console.error("private: ",this.ecies.toHex()),console.error("encryptedData: ",e)),t}return t}getKeyInfo(){return{private:this.ecies.toHex(),public:this.ecies.publicKey.toHex()}}toString(){console.debug("ECIES::toString()",this.getKeyInfo())}}var Nw="0.14.3";const Dw="https://metamask-sdk-socket.metafi.codefi.network/",Bw=["websocket","polling"],jw=6048e5,Uw={METAMASK_GETPROVIDERSTATE:"metamask_getProviderState",ETH_REQUESTACCOUNTS:"eth_requestAccounts"};function zw(e){const{debug:t,context:n}=e;t&&console.debug(`RemoteCommunication::${n}::clean()`),e.channelConfig=void 0,e.ready=!1,e.originatorConnectStarted=!1}var Fw,qw;e.ConnectionStatus=void 0,e.EventType=void 0,e.MessageType=void 0,function(e){e.DISCONNECTED="disconnected",e.WAITING="waiting",e.TIMEOUT="timeout",e.LINKED="linked",e.PAUSED="paused",e.TERMINATED="terminated"}(e.ConnectionStatus||(e.ConnectionStatus={})),function(e){e.KEY_INFO="key_info",e.SERVICE_STATUS="service_status",e.PROVIDER_UPDATE="provider_update",e.RPC_UPDATE="rpc_update",e.KEYS_EXCHANGED="keys_exchanged",e.JOIN_CHANNEL="join_channel",e.CHANNEL_CREATED="channel_created",e.CLIENTS_CONNECTED="clients_connected",e.CLIENTS_DISCONNECTED="clients_disconnected",e.CLIENTS_WAITING="clients_waiting",e.CLIENTS_READY="clients_ready",e.SOCKET_DISCONNECTED="socket_disconnected",e.SOCKET_RECONNECT="socket_reconnect",e.OTP="otp",e.SDK_RPC_CALL="sdk_rpc_call",e.AUTHORIZED="authorized",e.CONNECTION_STATUS="connection_status",e.MESSAGE="message",e.TERMINATE="terminate"}(e.EventType||(e.EventType={})),function(e){e.KEY_EXCHANGE="key_exchange"}(Fw||(Fw={})),function(e){e.KEY_HANDSHAKE_START="key_handshake_start",e.KEY_HANDSHAKE_CHECK="key_handshake_check",e.KEY_HANDSHAKE_SYN="key_handshake_SYN",e.KEY_HANDSHAKE_SYNACK="key_handshake_SYNACK",e.KEY_HANDSHAKE_ACK="key_handshake_ACK",e.KEY_HANDSHAKE_NONE="none"}(qw||(qw={}));class Ww extends N.EventEmitter2{constructor({communicationLayer:e,otherPublicKey:t,context:n,ecies:r,logging:i}){super(),this.keysExchanged=!1,this.step=qw.KEY_HANDSHAKE_NONE,this.debug=!1,this.context=n,this.myECIES=new Iw(Object.assign(Object.assign({},r),{debug:null==i?void 0:i.eciesLayer})),this.communicationLayer=e,this.myPublicKey=this.myECIES.getPublicKey(),this.debug=!0===(null==i?void 0:i.keyExchangeLayer),t&&this.setOtherPublicKey(t),this.communicationLayer.on(Fw.KEY_EXCHANGE,this.onKeyExchangeMessage.bind(this))}onKeyExchangeMessage(t){this.debug&&console.debug(`KeyExchange::${this.context}::onKeyExchangeMessage() keysExchanged=${this.keysExchanged}`,t);const{message:n}=t;this.keysExchanged&&this.debug&&console.log(`KeyExchange::${this.context}::onKeyExchangeMessage received handshake while already exchanged. step=${this.step} otherPubKey=${this.otherPublicKey}`),this.emit(e.EventType.KEY_INFO,n.type),n.type===qw.KEY_HANDSHAKE_SYN?(this.checkStep([qw.KEY_HANDSHAKE_NONE,qw.KEY_HANDSHAKE_ACK]),this.debug&&console.debug("KeyExchange::KEY_HANDSHAKE_SYN",n),n.pubkey&&this.setOtherPublicKey(n.pubkey),this.communicationLayer.sendMessage({type:qw.KEY_HANDSHAKE_SYNACK,pubkey:this.myPublicKey}),this.setStep(qw.KEY_HANDSHAKE_ACK)):n.type===qw.KEY_HANDSHAKE_SYNACK?(this.checkStep([qw.KEY_HANDSHAKE_SYNACK,qw.KEY_HANDSHAKE_ACK,qw.KEY_HANDSHAKE_NONE]),this.debug&&console.debug("KeyExchange::KEY_HANDSHAKE_SYNACK"),n.pubkey&&this.setOtherPublicKey(n.pubkey),this.communicationLayer.sendMessage({type:qw.KEY_HANDSHAKE_ACK}),this.keysExchanged=!0,this.setStep(qw.KEY_HANDSHAKE_ACK),this.emit(e.EventType.KEYS_EXCHANGED)):n.type===qw.KEY_HANDSHAKE_ACK&&(this.debug&&console.debug("KeyExchange::KEY_HANDSHAKE_ACK set keysExchanged to true!"),this.checkStep([qw.KEY_HANDSHAKE_ACK,qw.KEY_HANDSHAKE_NONE]),this.keysExchanged=!0,this.setStep(qw.KEY_HANDSHAKE_ACK),this.emit(e.EventType.KEYS_EXCHANGED))}resetKeys(e){this.clean(),this.myECIES=new Iw(e)}clean(){this.debug&&console.debug(`KeyExchange::${this.context}::clean reset handshake state`),this.setStep(qw.KEY_HANDSHAKE_NONE),this.emit(e.EventType.KEY_INFO,this.step),this.keysExchanged=!1}start({isOriginator:e,force:t}){this.debug&&console.debug(`KeyExchange::${this.context}::start isOriginator=${e} step=${this.step} force=${t} keysExchanged=${this.keysExchanged}`),e?!(this.keysExchanged||this.step!==qw.KEY_HANDSHAKE_NONE&&this.step!==qw.KEY_HANDSHAKE_SYNACK)||t?(this.debug&&console.debug(`KeyExchange::${this.context}::start -- start key exchange (force=${t}) -- step=${this.step}`,this.step),this.clean(),this.setStep(qw.KEY_HANDSHAKE_SYNACK),this.communicationLayer.sendMessage({type:qw.KEY_HANDSHAKE_SYN,pubkey:this.myPublicKey})):this.debug&&console.debug(`KeyExchange::${this.context}::start -- key exchange already ${this.keysExchanged?"done":"in progress"} -- aborted.`,this.step):this.keysExchanged&&!0!==t?this.debug&&console.debug("KeyExchange::start don't send KEY_HANDSHAKE_START -- exchange already done."):(this.communicationLayer.sendMessage({type:qw.KEY_HANDSHAKE_START}),this.clean())}setStep(t){this.step=t,this.emit(e.EventType.KEY_INFO,t)}checkStep(e){e.length>0&&-1===e.indexOf(this.step.toString())&&console.warn(`[KeyExchange] Wrong Step "${this.step}" not within ${e}`)}setKeysExchanged(e){this.keysExchanged=e}areKeysExchanged(){return this.keysExchanged}getMyPublicKey(){return this.myPublicKey}getOtherPublicKey(){return this.otherPublicKey}setOtherPublicKey(e){this.debug&&console.debug("KeyExchange::setOtherPubKey()",e),this.otherPublicKey=e}encryptMessage(e){if(!this.otherPublicKey)throw new Error("encryptMessage: Keys not exchanged - missing otherPubKey");return this.myECIES.encrypt(e,this.otherPublicKey)}decryptMessage(e){if(!this.otherPublicKey)throw new Error("decryptMessage: Keys not exchanged - missing otherPubKey");return this.myECIES.decrypt(e)}getKeyInfo(){return{ecies:Object.assign(Object.assign({},this.myECIES.getKeyInfo()),{otherPubKey:this.otherPublicKey}),step:this.step,keysExchanged:this.areKeysExchanged()}}toString(){const e={keyInfo:this.getKeyInfo(),keysExchanged:this.keysExchanged,step:this.step};return JSON.stringify(e)}}!function(e){e.TERMINATE="terminate",e.ANSWER="answer",e.OFFER="offer",e.CANDIDATE="candidate",e.JSONRPC="jsonrpc",e.WALLET_INFO="wallet_info",e.ORIGINATOR_INFO="originator_info",e.PAUSE="pause",e.OTP="otp",e.AUTHORIZED="authorized",e.PING="ping",e.READY="ready"}(e.MessageType||(e.MessageType={}));const Vw=e=>new Promise((t=>{setTimeout(t,e)})),Kw=(e,t,n=200)=>dn(void 0,void 0,void 0,(function*(){let r;const i=Date.now();let o=!1;for(;!o;){if(o=Date.now()-i>3e5,r=t[e],void 0!==r.elapsedTime)return r;yield Vw(n)}throw new Error(`RPC ${e} timed out`)})),Hw=t=>dn(void 0,void 0,void 0,(function*(){var n,r,i,o,a;return t.state.debug&&console.debug(`SocketService::connectAgain instance.state.socket?.connected=${null===(n=t.state.socket)||void 0===n?void 0:n.connected} trying to reconnect after socketio disconnection`,t),yield Vw(200),(null===(r=t.state.socket)||void 0===r?void 0:r.connected)||(t.state.resumed=!0,null===(i=t.state.socket)||void 0===i||i.connect(),t.emit(e.EventType.SOCKET_RECONNECT),null===(o=t.state.socket)||void 0===o||o.emit(e.EventType.JOIN_CHANNEL,t.state.channelId,`${t.state.context}connect_again`)),yield Vw(100),null===(a=t.state.socket)||void 0===a?void 0:a.connected})),$w=[{event:"clients_connected",handler:function(t,n){return r=>dn(this,void 0,void 0,(function*(){var r,i,o,a,s,u,l,c;t.state.debug&&console.debug(`SocketService::${t.state.context}::setupChannelListener::on 'clients_connected-${n}' resumed=${t.state.resumed} clientsPaused=${t.state.clientsPaused} keysExchanged=${null===(r=t.state.keyExchange)||void 0===r?void 0:r.areKeysExchanged()} isOriginator=${t.state.isOriginator}`),t.emit(e.EventType.CLIENTS_CONNECTED,{isOriginator:t.state.isOriginator,keysExchanged:null===(i=t.state.keyExchange)||void 0===i?void 0:i.areKeysExchanged(),context:t.state.context}),t.state.resumed?(t.state.isOriginator||(t.state.debug&&console.debug(`SocketService::${t.state.context}::on 'clients_connected' / keysExchanged=${null===(o=t.state.keyExchange)||void 0===o?void 0:o.areKeysExchanged()} -- backward compatibility`),null===(a=t.state.keyExchange)||void 0===a||a.start({isOriginator:null!==(s=t.state.isOriginator)&&void 0!==s&&s})),t.state.resumed=!1):t.state.clientsPaused?console.debug("SocketService::on 'clients_connected' skip sending originatorInfo on pause"):t.state.isOriginator||(t.state.debug&&console.debug(`SocketService::${t.state.context}::on 'clients_connected' / keysExchanged=${null===(u=t.state.keyExchange)||void 0===u?void 0:u.areKeysExchanged()} -- backward compatibility`),null===(l=t.state.keyExchange)||void 0===l||l.start({isOriginator:null!==(c=t.state.isOriginator)&&void 0!==c&&c,force:!0})),t.state.clientsConnected=!0,t.state.clientsPaused=!1}))}},{event:"channel_created",handler:function(t,n){return r=>{t.state.debug&&console.debug(`SocketService::${t.state.context}::setupChannelListener::on 'channel_created-${n}'`,r),t.emit(e.EventType.CHANNEL_CREATED,r)}}},{event:"clients_disconnected",handler:function(t,n){return()=>{var r;t.state.clientsConnected=!1,t.state.debug&&console.debug(`SocketService::${t.state.context}::setupChannelListener::on 'clients_disconnected-${n}'`),t.state.isOriginator&&!t.state.clientsPaused&&(null===(r=t.state.keyExchange)||void 0===r||r.clean()),t.emit(e.EventType.CLIENTS_DISCONNECTED,n)}}},{event:"message",handler:function(t,n){return({id:r,message:i,error:o})=>{var a,s,u,l,c,d,f,h,p,m,g,v,y,b,w;if(t.state.debug&&console.debug(`SocketService::${t.state.context}::on 'message' ${n} keysExchanged=${null===(a=t.state.keyExchange)||void 0===a?void 0:a.areKeysExchanged()}`,i),o)throw t.state.debug&&console.debug(`\n SocketService::${t.state.context}::on 'message' error=${o}`),new Error(o);try{!function(e,t){if(t!==e.channelId)throw e.debug&&console.error(`Wrong id ${t} - should be ${e.channelId}`),new Error("Wrong id")}(t.state,r)}catch(e){return void console.error("ignore message --- wrong id ",i)}if(t.state.isOriginator&&(null==i?void 0:i.type)===qw.KEY_HANDSHAKE_START)return t.state.debug&&console.debug(`SocketService::${t.state.context}::on 'message' received HANDSHAKE_START isOriginator=${t.state.isOriginator}`,i),void(null===(s=t.state.keyExchange)||void 0===s||s.start({isOriginator:null!==(u=t.state.isOriginator)&&void 0!==u&&u,force:!0}));if((null==i?void 0:i.type)===e.MessageType.PING)return t.state.debug&&console.debug(`SocketService::${t.state.context}::on 'message' ping `),void t.emit(e.EventType.MESSAGE,{message:{type:"ping"}});if(t.state.debug&&console.debug(`SocketService::${t.state.context}::on 'message' originator=${t.state.isOriginator}, type=${null==i?void 0:i.type}, keysExchanged=${null===(l=t.state.keyExchange)||void 0===l?void 0:l.areKeysExchanged()}`),null===(c=null==i?void 0:i.type)||void 0===c?void 0:c.startsWith("key_handshake"))return t.state.debug&&console.debug(`SocketService::${t.state.context}::on 'message' emit KEY_EXCHANGE`,i),void t.emit(Fw.KEY_EXCHANGE,{message:i,context:t.state.context});if(null===(d=t.state.keyExchange)||void 0===d?void 0:d.areKeysExchanged()){if(-1!==i.toString().indexOf("type"))return console.warn("SocketService::on 'message' received non encrypted unkwown message"),void t.emit(e.EventType.MESSAGE,i)}else{let n=!1;try{null===(f=t.state.keyExchange)||void 0===f||f.decryptMessage(i),n=!0}catch(e){}if(!n)return t.state.isOriginator?null===(p=t.state.keyExchange)||void 0===p||p.start({isOriginator:null!==(m=t.state.isOriginator)&&void 0!==m&&m}):t.sendMessage({type:qw.KEY_HANDSHAKE_START}),void console.warn(`Message ignored because invalid key exchange status. step=${null===(g=t.state.keyExchange)||void 0===g?void 0:g.getKeyInfo().step}`,null===(v=t.state.keyExchange)||void 0===v?void 0:v.getKeyInfo(),i);console.warn("Invalid key exchange status detected --- updating it."),null===(h=t.state.keyExchange)||void 0===h||h.setKeysExchanged(!0)}const A=null===(y=t.state.keyExchange)||void 0===y?void 0:y.decryptMessage(i),_=JSON.parse(null!=A?A:"{}");if((null==_?void 0:_.type)===e.MessageType.PAUSE?t.state.clientsPaused=!0:t.state.clientsPaused=!1,t.state.isOriginator&&_.data){const n=_.data,r=t.state.rpcMethodTracker[n.id];if(r){const i=Date.now()-r.timestamp;t.state.debug&&console.debug(`SocketService::${t.state.context}::on 'message' received answer for id=${n.id} method=${r.method} responseTime=${i}`,_);const o=Object.assign(Object.assign({},r),{result:n.result,error:n.error?{code:null===(b=n.error)||void 0===b?void 0:b.code,message:null===(w=n.error)||void 0===w?void 0:w.message}:void 0,elapsedTime:i});t.state.rpcMethodTracker[n.id]=o,t.emit(e.EventType.RPC_UPDATE,o),t.state.debug&&console.debug("HACK (wallet <7.3) update rpcMethodTracker",o),t.emit(e.EventType.AUTHORIZED)}}t.emit(e.EventType.MESSAGE,{message:_})}}},{event:"clients_waiting_to_join",handler:function(t,n){return r=>{t.state.debug&&console.debug(`SocketService::${t.state.context}::setupChannelListener::on 'clients_waiting_to_join-${n}'`,r),t.emit(e.EventType.CLIENTS_WAITING,r)}}}],Yw=[{event:e.EventType.KEY_INFO,handler:function(t){return n=>{t.state.debug&&console.debug("SocketService::on 'KEY_INFO'",n),t.emit(e.EventType.KEY_INFO,n)}}},{event:e.EventType.KEYS_EXCHANGED,handler:function(t){return()=>{var n,r;t.state.debug&&console.debug(`SocketService::on 'keys_exchanged' keyschanged=${null===(n=t.state.keyExchange)||void 0===n?void 0:n.areKeysExchanged()}`),t.emit(e.EventType.KEYS_EXCHANGED,{keysExchanged:null===(r=t.state.keyExchange)||void 0===r?void 0:r.areKeysExchanged(),isOriginator:t.state.isOriginator});const i={keyInfo:t.getKeyInfo()};t.emit(e.EventType.SERVICE_STATUS,i)}}}];function Gw(t,n){t.state.debug&&console.debug(`SocketService::${t.state.context}::setupChannelListener setting socket listeners for channel ${n}...`);const{socket:r}=t.state,{keyExchange:i}=t.state;t.state.setupChannelListeners&&console.warn(`SocketService::${t.state.context}::setupChannelListener socket listeners already set up for channel ${n}`),r&&t.state.isOriginator&&(t.state.debug&&(null==r||r.io.on("error",(e=>{console.debug(`SocketService::${t.state.context}::setupChannelListener socket event=error`,e)})),null==r||r.io.on("reconnect",(e=>{console.debug(`SocketService::${t.state.context}::setupChannelListener socket event=reconnect`,e)})),null==r||r.io.on("reconnect_error",(e=>{console.debug(`SocketService::${t.state.context}::setupChannelListener socket event=reconnect_error`,e)})),null==r||r.io.on("reconnect_failed",(()=>{console.debug(`SocketService::${t.state.context}::setupChannelListener socket event=reconnect_failed`)})),null==r||r.io.on("ping",(()=>{console.debug(`SocketService::${t.state.context}::setupChannelListener socket event=ping`)}))),null==r||r.on("disconnect",(n=>(console.log(`MetaMaskSDK socket disconnected '${n}' begin recovery...`),function(t){return n=>{t.state.debug&&console.debug(`SocketService::on 'disconnect' manualDisconnect=${t.state.manualDisconnect}`,n),t.state.manualDisconnect||(t.emit(e.EventType.SOCKET_DISCONNECTED),function(e){"undefined"!=typeof window&&"undefined"!=typeof document&&(e.state.debug&&console.debug(`SocketService::checkFocus hasFocus=${document.hasFocus()}`,e),document.hasFocus()?Hw(e).then((t=>{e.state.debug&&console.debug(`SocketService::checkFocus reconnectSocket success=${t}`,e)})).catch((e=>{console.error("SocketService::checkFocus Error reconnecting socket",e)})):window.addEventListener("focus",(()=>{Hw(e).catch((e=>{console.error("SocketService::checkFocus Error reconnecting socket",e)}))}),{once:!0}))}(t))}}(t)(n))))),$w.forEach((({event:e,handler:i})=>{const o=`${e}-${n}`;null==r||r.on(o,i(t,n))})),Yw.forEach((({event:e,handler:n})=>{null==i||i.on(e,n(t))})),t.state.setupChannelListeners=!0}var Qw,Zw,Xw;function Jw(t,n){var r,i;if(!t.state.channelId)throw new Error("Create a channel first");t.state.debug&&console.debug(`SocketService::${t.state.context}::sendMessage() areKeysExchanged=${null===(r=t.state.keyExchange)||void 0===r?void 0:r.areKeysExchanged()}`,n),(null===(i=null==n?void 0:n.type)||void 0===i?void 0:i.startsWith("key_handshake"))?function(t,n){var r;t.state.debug&&console.debug(`SocketService::${t.state.context}::sendMessage()`,n),null===(r=t.state.socket)||void 0===r||r.emit(e.EventType.MESSAGE,{id:t.state.channelId,context:t.state.context,message:n})}(t,n):(function(e,t){var n;if(!(null===(n=e.state.keyExchange)||void 0===n?void 0:n.areKeysExchanged()))throw e.state.debug&&console.debug(`SocketService::${e.state.context}::sendMessage() ERROR keys not exchanged`,t),new Error("Keys not exchanged BBB")}(t,n),function(t,n){var r;const i=null!==(r=null==n?void 0:n.method)&&void 0!==r?r:"",o=null==n?void 0:n.id;t.state.isOriginator&&o&&(t.state.rpcMethodTracker[o]={id:o,timestamp:Date.now(),method:i},t.emit(e.EventType.RPC_UPDATE,t.state.rpcMethodTracker[o]))}(t,n),function(t,n){var r,i;const o=null===(r=t.state.keyExchange)||void 0===r?void 0:r.encryptMessage(JSON.stringify(n)),a={id:t.state.channelId,context:t.state.context,message:o,plaintext:t.state.hasPlaintext?JSON.stringify(n):void 0};t.state.debug&&console.debug(`SocketService::${t.state.context}::sendMessage()`,a),n.type===e.MessageType.TERMINATE&&(t.state.manualDisconnect=!0),null===(i=t.state.socket)||void 0===i||i.emit(e.EventType.MESSAGE,a)}(t,n),function(t,n){var r;return dn(this,void 0,void 0,(function*(){const i=null==n?void 0:n.id,o=null!==(r=null==n?void 0:n.method)&&void 0!==r?r:"";if(t.state.isOriginator&&i)try{const r=Kw(i,t.state.rpcMethodTracker,200).then((e=>({type:Qw.RPC_CHECK,result:e}))),a=(()=>dn(this,void 0,void 0,(function*(){const e=yield(({rpcId:e,instance:t})=>dn(void 0,void 0,void 0,(function*(){for(;t.state.lastRpcId===e||void 0===t.state.lastRpcId;)yield Vw(200);return t.state.lastRpcId})))({instance:t,rpcId:i}),n=yield Kw(e,t.state.rpcMethodTracker,200);return{type:Qw.SKIPPED_RPC,result:n}})))(),s=yield Promise.race([r,a]);if(s.type===Qw.RPC_CHECK){const e=s.result;t.state.debug&&console.debug(`SocketService::waitForRpc id=${n.id} ${o} ( ${e.elapsedTime} ms)`,e.result)}else{if(s.type!==Qw.SKIPPED_RPC)throw new Error(`Error handling RPC replies for ${i}`);{const{result:n}=s;console.warn(`[handleRpcReplies] RPC METHOD HAS BEEN SKIPPED rpcid=${i} method=${o}`,n);const r=Object.assign(Object.assign({},t.state.rpcMethodTracker[i]),{error:new Error("SDK_CONNECTION_ISSUE")});t.emit(e.EventType.RPC_UPDATE,r);const a={data:Object.assign(Object.assign({},r),{jsonrpc:"2.0"}),name:"metamask-provider"};t.emit(e.EventType.MESSAGE,{message:a})}}}catch(e){throw console.warn(`[handleRpcReplies] Error rpcId=${n.id} ${o}`,e),e}}))}(t,n).catch((e=>{console.warn("Error handleRpcReplies",e)})))}e.CommunicationLayerPreference=void 0,e.PlatformType=void 0,function(e){e.RPC_CHECK="rpcCheck",e.SKIPPED_RPC="skippedRpc"}(Qw||(Qw={}));class eA extends N.EventEmitter2{constructor({otherPublicKey:e,reconnect:t,communicationLayerPreference:n,transports:r,communicationServerUrl:i,context:o,ecies:a,logging:s}){super(),this.state={clientsConnected:!1,clientsPaused:!1,manualDisconnect:!1,lastRpcId:void 0,rpcMethodTracker:{},hasPlaintext:!1,communicationServerUrl:""},this.state.resumed=t,this.state.context=o,this.state.communicationLayerPreference=n,this.state.debug=!0===(null==s?void 0:s.serviceLayer),this.state.communicationServerUrl=i,this.state.hasPlaintext=this.state.communicationServerUrl!==Dw&&!0===(null==s?void 0:s.plaintext);const u={autoConnect:!1,transports:Bw,withCredentials:!0};r&&(u.transports=r),this.state.debug&&console.debug(`SocketService::constructor() Socket IO url: ${this.state.communicationServerUrl}`),this.state.socket=cn(i,u);const l={communicationLayer:this,otherPublicKey:e,sendPublicKey:!1,context:this.state.context,ecies:a,logging:s};this.state.keyExchange=new Ww(l)}resetKeys(){return this.state.debug&&console.debug("SocketService::resetKeys()"),void(null===(e=this.state.keyExchange)||void 0===e||e.resetKeys());var e}createChannel(){return function(t){var n,r,i,o;t.state.debug&&console.debug(`SocketService::${t.state.context}::createChannel()`),(null===(n=t.state.socket)||void 0===n?void 0:n.connected)||null===(r=t.state.socket)||void 0===r||r.connect(),t.state.manualDisconnect=!1,t.state.isOriginator=!0;const a=q();return t.state.channelId=a,Gw(t,a),null===(i=t.state.socket)||void 0===i||i.emit(e.EventType.JOIN_CHANNEL,a,`${t.state.context}createChannel`),{channelId:a,pubKey:(null===(o=t.state.keyExchange)||void 0===o?void 0:o.getMyPublicKey())||""}}(this)}connectToChannel({channelId:t,isOriginator:n=!1,withKeyExchange:r=!1}){return function({options:t,instance:n}){var r,i,o,a;const{channelId:s,withKeyExchange:u,isOriginator:l}=t;if(n.state.debug&&console.debug(`SocketService::${n.state.context}::connectToChannel() channelId=${s} isOriginator=${l}`,null===(r=n.state.keyExchange)||void 0===r?void 0:r.toString()),null===(i=n.state.socket)||void 0===i?void 0:i.connected)throw new Error("socket already connected");n.state.manualDisconnect=!1,null===(o=n.state.socket)||void 0===o||o.connect(),n.state.withKeyExchange=u,n.state.isOriginator=l,n.state.channelId=s,Gw(n,s),null===(a=n.state.socket)||void 0===a||a.emit(e.EventType.JOIN_CHANNEL,s,`${n.state.context}_connectToChannel`)}({options:{channelId:t,isOriginator:n,withKeyExchange:r},instance:this})}getKeyInfo(){return this.state.keyExchange.getKeyInfo()}keyCheck(){var t,n;null===(n=(t=this).state.socket)||void 0===n||n.emit(e.EventType.MESSAGE,{id:t.state.channelId,context:t.state.context,message:{type:qw.KEY_HANDSHAKE_CHECK,pubkey:t.getKeyInfo().ecies.otherPubKey}})}getKeyExchange(){return this.state.keyExchange}sendMessage(e){return Jw(this,e)}ping(){return(t=this).state.debug&&console.debug(`SocketService::${t.state.context}::ping() originator=${t.state.isOriginator} keysExchanged=${null===(n=t.state.keyExchange)||void 0===n?void 0:n.areKeysExchanged()}`),t.state.isOriginator&&((null===(r=t.state.keyExchange)||void 0===r?void 0:r.areKeysExchanged())?(console.warn(`SocketService::${t.state.context}::ping() sending READY message`),t.sendMessage({type:e.MessageType.READY})):(console.warn(`SocketService::${t.state.context}::ping() starting key exchange`),null===(i=t.state.keyExchange)||void 0===i||i.start({isOriginator:null!==(o=t.state.isOriginator)&&void 0!==o&&o}))),void(null===(a=t.state.socket)||void 0===a||a.emit(e.EventType.MESSAGE,{id:t.state.channelId,context:t.state.context,message:{type:e.MessageType.PING}}));var t,n,r,i,o,a}pause(){return(t=this).state.debug&&console.debug(`SocketService::${t.state.context}::pause()`),t.state.manualDisconnect=!0,(null===(n=t.state.keyExchange)||void 0===n?void 0:n.areKeysExchanged())&&t.sendMessage({type:e.MessageType.PAUSE}),void(null===(r=t.state.socket)||void 0===r||r.disconnect());var t,n,r}isConnected(){var e;return null===(e=this.state.socket)||void 0===e?void 0:e.connected}resume(){return(t=this).state.debug&&console.debug(`SocketService::${t.state.context}::resume() connected=${null===(n=t.state.socket)||void 0===n?void 0:n.connected} manualDisconnect=${t.state.manualDisconnect} resumed=${t.state.resumed} keysExchanged=${null===(r=t.state.keyExchange)||void 0===r?void 0:r.areKeysExchanged()}`),(null===(i=t.state.socket)||void 0===i?void 0:i.connected)?t.state.debug&&console.debug("SocketService::resume() already connected."):(null===(o=t.state.socket)||void 0===o||o.connect(),t.state.debug&&console.debug(`SocketService::resume() after connecting socket --\x3e connected=${null===(a=t.state.socket)||void 0===a?void 0:a.connected}`),null===(s=t.state.socket)||void 0===s||s.emit(e.EventType.JOIN_CHANNEL,t.state.channelId,`${t.state.context}_resume`)),(null===(u=t.state.keyExchange)||void 0===u?void 0:u.areKeysExchanged())?t.state.isOriginator||t.sendMessage({type:e.MessageType.READY}):t.state.isOriginator||null===(l=t.state.keyExchange)||void 0===l||l.start({isOriginator:null!==(c=t.state.isOriginator)&&void 0!==c&&c}),t.state.manualDisconnect=!1,void(t.state.resumed=!0);var t,n,r,i,o,a,s,u,l,c}getRPCMethodTracker(){return this.state.rpcMethodTracker}disconnect(e){return function(e,t){var n,r;e.state.debug&&console.debug(`SocketService::${e.state.context}::disconnect()`,t),(null==t?void 0:t.terminate)&&(e.state.channelId=t.channelId,null===(n=e.state.keyExchange)||void 0===n||n.clean()),e.state.rpcMethodTracker={},e.state.manualDisconnect=!0,null===(r=e.state.socket)||void 0===r||r.disconnect()}(this,e)}}function tA(t){return()=>dn(this,void 0,void 0,(function*(){var n,r,i;const{state:o}=t;if(o.authorized)return;yield(()=>dn(this,void 0,void 0,(function*(){for(;!o.walletInfo;)yield Vw(500)})))();const a="7.3".localeCompare((null===(n=o.walletInfo)||void 0===n?void 0:n.version)||"");if(o.debug&&console.debug(`RemoteCommunication HACK 'authorized' version=${null===(r=o.walletInfo)||void 0===r?void 0:r.version} compareValue=${a}`),1!==a)return;const s=o.platformType===e.PlatformType.MobileWeb||o.platformType===e.PlatformType.ReactNative||o.platformType===e.PlatformType.MetaMaskMobileWebview;o.debug&&console.debug(`RemoteCommunication HACK 'authorized' platform=${o.platformType} secure=${s} channel=${o.channelId} walletVersion=${null===(i=o.walletInfo)||void 0===i?void 0:i.version}`),s&&(o.authorized=!0,t.emit(e.EventType.AUTHORIZED))}))}function nA(t){return n=>{const{state:r}=t;r.debug&&console.debug(`RemoteCommunication::${r.context}::on 'channel_created' channelId=${n}`),t.emit(e.EventType.CHANNEL_CREATED,n)}}function rA(t,n){return()=>{var r,i,o,a;const{state:s}=t;if(s.debug&&console.debug(`RemoteCommunication::on 'clients_connected' channel=${s.channelId} keysExchanged=${null===(i=null===(r=s.communicationLayer)||void 0===r?void 0:r.getKeyInfo())||void 0===i?void 0:i.keysExchanged}`),s.analytics){const e=s.isOriginator?Zw.REQUEST:Zw.REQUEST_MOBILE;fn(Object.assign(Object.assign({id:null!==(o=s.channelId)&&void 0!==o?o:"",event:s.reconnection?Zw.RECONNECT:e},s.originatorInfo),{commLayer:n,sdkVersion:s.sdkVersion,walletVersion:null===(a=s.walletInfo)||void 0===a?void 0:a.version,commLayerVersion:Nw}),s.communicationServerUrl).catch((e=>{console.error("Cannot send analytics",e)}))}s.clientsConnected=!0,s.originatorInfoSent=!1,t.emit(e.EventType.CLIENTS_CONNECTED)}}function iA(t,n){return r=>{var i;const{state:o}=t;o.debug&&console.debug(`RemoteCommunication::${o.context}]::on 'clients_disconnected' channelId=${r}`),o.clientsConnected=!1,t.emit(e.EventType.CLIENTS_DISCONNECTED,o.channelId),t.setConnectionStatus(e.ConnectionStatus.DISCONNECTED),o.ready=!1,o.authorized=!1,o.analytics&&o.channelId&&fn({id:o.channelId,event:Zw.DISCONNECTED,sdkVersion:o.sdkVersion,commLayer:n,commLayerVersion:Nw,walletVersion:null===(i=o.walletInfo)||void 0===i?void 0:i.version},o.communicationServerUrl).catch((e=>{console.error("Cannot send analytics",e)}))}}function oA(t){return n=>{var r;const{state:i}=t;if(i.debug&&console.debug(`RemoteCommunication::${i.context}::on 'clients_waiting' numberUsers=${n} ready=${i.ready} autoStarted=${i.originatorConnectStarted}`),t.setConnectionStatus(e.ConnectionStatus.WAITING),t.emit(e.EventType.CLIENTS_WAITING,n),i.originatorConnectStarted){i.debug&&console.debug(`RemoteCommunication::on 'clients_waiting' watch autoStarted=${i.originatorConnectStarted} timeout`,i.autoConnectOptions);const n=(null===(r=i.autoConnectOptions)||void 0===r?void 0:r.timeout)||3e3,o=setTimeout((()=>{i.debug&&console.debug(`RemoteCommunication::on setTimeout(${n}) terminate channelConfig`,i.autoConnectOptions),i.originatorConnectStarted=!1,i.ready||t.setConnectionStatus(e.ConnectionStatus.TIMEOUT),clearTimeout(o)}),n)}}}function aA(t,n){return r=>{var i,o,a,s,u;const{state:l}=t;l.debug&&console.debug(`RemoteCommunication::${l.context}::on commLayer.'keys_exchanged' channel=${l.channelId}`,r),(null===(o=null===(i=l.communicationLayer)||void 0===i?void 0:i.getKeyInfo())||void 0===o?void 0:o.keysExchanged)&&t.setConnectionStatus(e.ConnectionStatus.LINKED),function(e,t){var n,r,i,o;const{state:a}=e;a.debug&&console.debug(`RemoteCommunication::setLastActiveDate() channel=${a.channelId}`,t);const s={channelId:null!==(n=a.channelId)&&void 0!==n?n:"",validUntil:null!==(i=null===(r=a.channelConfig)||void 0===r?void 0:r.validUntil)&&void 0!==i?i:0,lastActive:t.getTime()};null===(o=a.storageManager)||void 0===o||o.persistChannelConfig(s)}(t,new Date),l.analytics&&l.channelId&&fn({id:l.channelId,event:r.isOriginator?Zw.CONNECTED:Zw.CONNECTED_MOBILE,sdkVersion:l.sdkVersion,commLayer:n,commLayerVersion:Nw,walletVersion:null===(a=l.walletInfo)||void 0===a?void 0:a.version},l.communicationServerUrl).catch((e=>{console.error("Cannot send analytics",e)})),l.isOriginator=r.isOriginator,r.isOriginator||(null===(s=l.communicationLayer)||void 0===s||s.sendMessage({type:e.MessageType.READY}),l.ready=!0,l.paused=!1),r.isOriginator&&!l.originatorInfoSent&&(null===(u=l.communicationLayer)||void 0===u||u.sendMessage({type:e.MessageType.ORIGINATOR_INFO,originatorInfo:l.originatorInfo,originator:l.originatorInfo}),l.originatorInfoSent=!0)}}function sA(t){return n=>{let r=n;n.message&&(r=r.message),function(t,n){const{state:r}=n;if(r.debug&&console.debug(`RemoteCommunication::${r.context}::on 'message' typeof=${typeof t}`,t),n.state.ready=!0,r.isOriginator||t.type!==e.MessageType.ORIGINATOR_INFO)if(r.isOriginator&&t.type===e.MessageType.WALLET_INFO)!function(e,t){const{state:n}=e;n.walletInfo=t.walletInfo,n.paused=!1}(n,t);else{if(t.type===e.MessageType.TERMINATE)!function(t){const{state:n}=t;n.isOriginator&&(cA({options:{terminate:!0,sendMessage:!1},instance:t}),console.debug(),t.emit(e.EventType.TERMINATE))}(n);else if(t.type===e.MessageType.PAUSE)!function(t){const{state:n}=t;n.paused=!0,t.setConnectionStatus(e.ConnectionStatus.PAUSED)}(n);else if(t.type===e.MessageType.READY&&r.isOriginator)!function(t){const{state:n}=t;t.setConnectionStatus(e.ConnectionStatus.LINKED);const r=n.paused;n.paused=!1,t.emit(e.EventType.CLIENTS_READY,{isOriginator:n.isOriginator,walletInfo:n.walletInfo}),r&&(n.authorized=!0,t.emit(e.EventType.AUTHORIZED))}(n);else{if(t.type===e.MessageType.OTP&&r.isOriginator)return void function(t,n){var r;const{state:i}=t;t.emit(e.EventType.OTP,n.otpAnswer),1==="6.6".localeCompare((null===(r=i.walletInfo)||void 0===r?void 0:r.version)||"")&&(console.warn("RemoteCommunication::on 'otp' -- backward compatibility <6.6 -- triger eth_requestAccounts"),t.emit(e.EventType.SDK_RPC_CALL,{method:Uw.ETH_REQUESTACCOUNTS,params:[]}))}(n,t);t.type===e.MessageType.AUTHORIZED&&r.isOriginator&&function(t){const{state:n}=t;n.authorized=!0,t.emit(e.EventType.AUTHORIZED)}(n)}n.emit(e.EventType.MESSAGE,t)}else!function(t,n){var r;const{state:i}=t;null===(r=i.communicationLayer)||void 0===r||r.sendMessage({type:e.MessageType.WALLET_INFO,walletInfo:i.walletInfo}),i.originatorInfo=n.originatorInfo||n.originator,t.emit(e.EventType.CLIENTS_READY,{isOriginator:i.isOriginator,originatorInfo:i.originatorInfo}),i.paused=!1}(n,t)}(r,t)}}function uA(e){return()=>{const{state:t}=e;t.debug&&console.debug("RemoteCommunication::on 'socket_reconnect' -- reset key exchange status / set ready to false"),t.ready=!1,t.authorized=!1,zw(t),e.emitServiceStatusEvent()}}function lA(e){return()=>{const{state:t}=e;t.debug&&console.debug("RemoteCommunication::on 'socket_Disconnected' set ready to false"),t.ready=!1}}function cA({options:t,instance:n}){var r,i,o,a,s,u;const{state:l}=n;l.debug&&console.debug(`RemoteCommunication::disconnect() channel=${l.channelId}`,t),l.ready=!1,l.paused=!1,(null==t?void 0:t.terminate)?(null===(r=l.storageManager)||void 0===r||r.terminate(null!==(i=l.channelId)&&void 0!==i?i:""),(null===(o=l.communicationLayer)||void 0===o?void 0:o.getKeyInfo().keysExchanged)&&(null==t?void 0:t.sendMessage)&&(null===(a=l.communicationLayer)||void 0===a||a.sendMessage({type:e.MessageType.TERMINATE})),l.channelId=q(),t.channelId=l.channelId,l.channelConfig=void 0,l.originatorConnectStarted=!1,null===(s=l.communicationLayer)||void 0===s||s.disconnect(t),n.setConnectionStatus(e.ConnectionStatus.TERMINATED)):(null===(u=l.communicationLayer)||void 0===u||u.disconnect(t),n.setConnectionStatus(e.ConnectionStatus.DISCONNECTED))}!function(e){e.SOCKET="socket"}(e.CommunicationLayerPreference||(e.CommunicationLayerPreference={})),function(e){e.NonBrowser="nodejs",e.MetaMaskMobileWebview="in-app-browser",e.DesktopWeb="web-desktop",e.MobileWeb="web-mobile",e.ReactNative="react-native"}(e.PlatformType||(e.PlatformType={})),function(e){e.REQUEST="sdk_connect_request_started",e.REQUEST_MOBILE="sdk_connect_request_started_mobile",e.RECONNECT="sdk_reconnect_request_started",e.CONNECTED="sdk_connection_established",e.CONNECTED_MOBILE="sdk_connection_established_mobile",e.AUTHORIZED="sdk_connection_authorized",e.REJECTED="sdk_connection_rejected",e.TERMINATED="sdk_connection_terminated",e.DISCONNECTED="sdk_disconnected",e.SDK_USE_EXTENSION="sdk_use_extension",e.SDK_EXTENSION_UTILIZED="sdk_extension_utilized",e.SDK_USE_INAPP_BROWSER="sdk_use_inapp_browser"}(Zw||(Zw={}));class dA extends N.EventEmitter2{constructor({platformType:t,communicationLayerPreference:n,otherPublicKey:r,reconnect:i,walletInfo:o,dappMetadata:a,transports:s,context:u,ecies:l,analytics:c=!1,storage:d,sdkVersion:f,communicationServerUrl:h=Dw,logging:p,autoConnect:m={timeout:3e3}}){super(),this.state={ready:!1,authorized:!1,isOriginator:!1,paused:!1,platformType:"metamask-mobile",analytics:!1,reconnection:!1,originatorInfoSent:!1,communicationServerUrl:Dw,context:"",clientsConnected:!1,sessionDuration:jw,originatorConnectStarted:!1,debug:!1,_connectionStatus:e.ConnectionStatus.DISCONNECTED},this.state.otherPublicKey=r,this.state.dappMetadata=a,this.state.walletInfo=o,this.state.transports=s,this.state.platformType=t,this.state.analytics=c,this.state.isOriginator=!r,this.state.communicationServerUrl=h,this.state.context=u,this.state.sdkVersion=f,this.setMaxListeners(50),this.setConnectionStatus(e.ConnectionStatus.DISCONNECTED),(null==d?void 0:d.duration)&&(this.state.sessionDuration=jw),this.state.storageOptions=d,this.state.autoConnectOptions=m,this.state.debug=!0===(null==p?void 0:p.remoteLayer),this.state.logging=p,(null==d?void 0:d.storageManager)&&(this.state.storageManager=d.storageManager),this.initCommunicationLayer({communicationLayerPreference:n,otherPublicKey:r,reconnect:i,ecies:l,communicationServerUrl:h}),this.emitServiceStatusEvent()}initCommunicationLayer({communicationLayerPreference:t,otherPublicKey:n,reconnect:r,ecies:i,communicationServerUrl:o=Dw}){return function({communicationLayerPreference:t,otherPublicKey:n,reconnect:r,ecies:i,communicationServerUrl:o=Dw,instance:a}){var s,u,l,c,d;const{state:f}=a;if(t!==e.CommunicationLayerPreference.SOCKET)throw new Error("Invalid communication protocol");f.communicationLayer=new eA({communicationLayerPreference:t,otherPublicKey:n,reconnect:r,transports:f.transports,communicationServerUrl:o,context:f.context,ecies:i,logging:f.logging});let h="undefined"!=typeof document&&document.URL||"",p="undefined"!=typeof document&&document.title||"";(null===(s=f.dappMetadata)||void 0===s?void 0:s.url)&&(h=f.dappMetadata.url),(null===(u=f.dappMetadata)||void 0===u?void 0:u.name)&&(p=f.dappMetadata.name);const m={url:h,title:p,source:null===(l=f.dappMetadata)||void 0===l?void 0:l.source,icon:(null===(c=f.dappMetadata)||void 0===c?void 0:c.iconUrl)||(null===(d=f.dappMetadata)||void 0===d?void 0:d.base64Icon),platform:f.platformType,apiVersion:Nw};f.originatorInfo=m;const g={[e.EventType.AUTHORIZED]:tA(a),[e.EventType.MESSAGE]:sA(a),[e.EventType.CLIENTS_CONNECTED]:rA(a,t),[e.EventType.KEYS_EXCHANGED]:aA(a,t),[e.EventType.SOCKET_DISCONNECTED]:lA(a),[e.EventType.SOCKET_RECONNECT]:uA(a),[e.EventType.CLIENTS_DISCONNECTED]:iA(a,t),[e.EventType.KEY_INFO]:()=>{a.emitServiceStatusEvent()},[e.EventType.CHANNEL_CREATED]:nA(a),[e.EventType.CLIENTS_WAITING]:oA(a),[e.EventType.RPC_UPDATE]:t=>{a.emit(e.EventType.RPC_UPDATE,t)}};for(const[e,v]of Object.entries(g))try{f.communicationLayer.on(e,v)}catch(n){console.error(`Error registering handler for ${e}:`,n)}}({communicationLayerPreference:t,otherPublicKey:n,reconnect:r,ecies:i,communicationServerUrl:o,instance:this})}originatorSessionConnect(){return dn(this,void 0,void 0,(function*(){const e=yield function(e){var t,n,r;return dn(this,void 0,void 0,(function*(){const{state:i}=e;if(!i.storageManager)return void(i.debug&&console.debug("RemoteCommunication::connect() no storage manager defined - skip"));const o=yield i.storageManager.getPersistedChannelConfig(null!==(t=i.channelId)&&void 0!==t?t:"");if(i.debug&&console.debug(`RemoteCommunication::connect() autoStarted=${i.originatorConnectStarted} channelConfig`,o),null===(n=i.communicationLayer)||void 0===n?void 0:n.isConnected())return i.debug&&console.debug("RemoteCommunication::connect() socket already connected - skip"),o;if(o){if(o.validUntil>Date.now())return i.channelConfig=o,i.originatorConnectStarted=!0,i.channelId=null==o?void 0:o.channelId,i.reconnection=!0,null===(r=i.communicationLayer)||void 0===r||r.connectToChannel({channelId:o.channelId,isOriginator:!0}),o;i.debug&&console.log("RemoteCommunication::autoConnect Session has expired")}i.originatorConnectStarted=!1}))}(this);return e}))}generateChannelIdConnect(){return dn(this,void 0,void 0,(function*(){return function(e){var t,n,r,i,o;if(!e.communicationLayer)throw new Error("communication layer not initialized");if(e.ready)throw new Error("Channel already connected");if(e.channelId&&(null===(t=e.communicationLayer)||void 0===t?void 0:t.isConnected()))return console.warn("Channel already exists -- interrupt generateChannelId",e.channelConfig),e.channelConfig={channelId:e.channelId,validUntil:Date.now()+e.sessionDuration},null===(n=e.storageManager)||void 0===n||n.persistChannelConfig(e.channelConfig),{channelId:e.channelId,pubKey:null===(i=null===(r=e.communicationLayer)||void 0===r?void 0:r.getKeyInfo())||void 0===i?void 0:i.ecies.public};e.debug&&console.debug("RemoteCommunication::generateChannelId()"),zw(e);const a=e.communicationLayer.createChannel();e.debug&&console.debug("RemoteCommunication::generateChannelId() channel created",a);const s={channelId:a.channelId,validUntil:Date.now()+e.sessionDuration};return e.channelId=a.channelId,e.channelConfig=s,null===(o=e.storageManager)||void 0===o||o.persistChannelConfig(s),{channelId:e.channelId,pubKey:a.pubKey}}(this.state)}))}clean(){return zw(this.state)}connectToChannel(e,t){return function({channelId:e,withKeyExchange:t,state:n}){var r,i,o;if(!U(e))throw console.debug(`RemoteCommunication::${n.context}::connectToChannel() invalid channel channelId=${e}`),new Error(`Invalid channel ${e}`);if(n.debug&&console.debug(`RemoteCommunication::${n.context}::connectToChannel() channelId=${e}`),null===(r=n.communicationLayer)||void 0===r?void 0:r.isConnected())return void console.debug(`RemoteCommunication::${n.context}::connectToChannel() already connected - interrup connection.`);n.channelId=e,null===(i=n.communicationLayer)||void 0===i||i.connectToChannel({channelId:e,withKeyExchange:t});const a={channelId:e,validUntil:Date.now()+n.sessionDuration};n.channelConfig=a,null===(o=n.storageManager)||void 0===o||o.persistChannelConfig(a)}({channelId:e,withKeyExchange:t,state:this.state})}sendMessage(t){return function(t,n){var r,i;return dn(this,void 0,void 0,(function*(){const{state:o}=t;o.debug&&console.log(`RemoteCommunication::${o.context}::sendMessage paused=${o.paused} ready=${o.ready} authorized=${o.authorized} socket=${null===(r=o.communicationLayer)||void 0===r?void 0:r.isConnected()} clientsConnected=${o.clientsConnected} status=${o._connectionStatus}`,n),!o.paused&&o.ready&&(null===(i=o.communicationLayer)||void 0===i?void 0:i.isConnected())&&o.clientsConnected||(o.debug&&console.log(`RemoteCommunication::${o.context}::sendMessage SKIP message waiting for MM mobile readiness.`),yield new Promise((n=>{t.once(e.EventType.CLIENTS_READY,n)})),o.debug&&console.log(`RemoteCommunication::${o.context}::sendMessage AFTER SKIP / READY -- sending pending message`));try{yield function(t,n){return dn(this,void 0,void 0,(function*(){return new Promise((r=>{var i,o,a,s;const{state:u}=t;if(u.debug&&console.log(`RemoteCommunication::${u.context}::sendMessage::handleAuthorization ready=${u.ready} authorized=${u.authorized} method=${n.method}`),1==="7.3".localeCompare((null===(i=u.walletInfo)||void 0===i?void 0:i.version)||""))return u.debug&&console.debug(`compatibility hack wallet version > ${null===(o=u.walletInfo)||void 0===o?void 0:o.version}`),null===(a=u.communicationLayer)||void 0===a||a.sendMessage(n),void r();!u.isOriginator||u.authorized?(null===(s=u.communicationLayer)||void 0===s||s.sendMessage(n),r()):t.once(e.EventType.AUTHORIZED,(()=>{var e;u.debug&&console.log(`RemoteCommunication::${u.context}::sendMessage AFTER SKIP / AUTHORIZED -- sending pending message`),null===(e=u.communicationLayer)||void 0===e||e.sendMessage(n),r()}))}))}))}(t,n)}catch(e){throw console.error(`RemoteCommunication::${o.context}::sendMessage ERROR`,e),e}}))}(this,t)}testStorage(){return dn(this,void 0,void 0,(function*(){return function(e){var t,n;return dn(this,void 0,void 0,(function*(){const r=yield null===(t=e.storageManager)||void 0===t?void 0:t.getPersistedChannelConfig(null!==(n=e.channelId)&&void 0!==n?n:"");console.debug("RemoteCommunication.testStorage() res",r)}))}(this.state)}))}getChannelConfig(){return this.state.channelConfig}isReady(){return this.state.ready}isConnected(){var e;return null===(e=this.state.communicationLayer)||void 0===e?void 0:e.isConnected()}isAuthorized(){return this.state.authorized}isPaused(){return this.state.paused}getCommunicationLayer(){return this.state.communicationLayer}ping(){var e;this.state.debug&&console.debug(`RemoteCommunication::ping() channel=${this.state.channelId}`),null===(e=this.state.communicationLayer)||void 0===e||e.ping()}keyCheck(){var e;this.state.debug&&console.debug(`RemoteCommunication::keyCheck() channel=${this.state.channelId}`),null===(e=this.state.communicationLayer)||void 0===e||e.keyCheck()}setConnectionStatus(t){this.state._connectionStatus!==t&&(this.state._connectionStatus=t,this.emit(e.EventType.CONNECTION_STATUS,t),this.emitServiceStatusEvent())}emitServiceStatusEvent(){this.emit(e.EventType.SERVICE_STATUS,this.getServiceStatus())}getConnectionStatus(){return this.state._connectionStatus}getServiceStatus(){return{originatorInfo:this.state.originatorInfo,keyInfo:this.getKeyInfo(),connectionStatus:this.state._connectionStatus,channelConfig:this.state.channelConfig,channelId:this.state.channelId}}getKeyInfo(){var e;return null===(e=this.state.communicationLayer)||void 0===e?void 0:e.getKeyInfo()}resetKeys(){var e;null===(e=this.state.communicationLayer)||void 0===e||e.resetKeys()}setOtherPublicKey(e){var t;const n=null===(t=this.state.communicationLayer)||void 0===t?void 0:t.getKeyExchange();if(!n)throw new Error("KeyExchange is not initialized.");n.getOtherPublicKey()!==e&&n.setOtherPublicKey(e)}pause(){var t;this.state.debug&&console.debug(`RemoteCommunication::pause() channel=${this.state.channelId}`),null===(t=this.state.communicationLayer)||void 0===t||t.pause(),this.setConnectionStatus(e.ConnectionStatus.PAUSED)}getVersion(){return Nw}resume(){return function(t){var n;const{state:r}=t;r.debug&&console.debug(`RemoteCommunication::resume() channel=${r.channelId}`),null===(n=r.communicationLayer)||void 0===n||n.resume(),t.setConnectionStatus(e.ConnectionStatus.LINKED)}(this)}getChannelId(){return this.state.channelId}getRPCMethodTracker(){var e;return null===(e=this.state.communicationLayer)||void 0===e?void 0:e.getRPCMethodTracker()}disconnect(e){return cA({options:e,instance:this})}}function fA(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{u(r.next(e))}catch(e){o(e)}}function s(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){e.done?i(e.value):function(e){return e instanceof n?e:new n((function(t){t(e)}))}(e.value).then(a,s)}u((r=r.apply(e,t||[])).next())}))}function hA(e,t,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(e):r?r.value:t.get(e)}function pA(e,t,n,r,i){if("m"===r)throw new TypeError("Private method is not writable");if("a"===r&&!i)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?i.call(e,n):i?i.value=n:t.set(e,n),n}!function(e){e.RENEW="renew",e.LINK="link"}(Xw||(Xw={})),"function"==typeof SuppressedError&&SuppressedError;var mA={},gA={},vA={};function yA(){}function bA(){bA.init.call(this)}function wA(e){return void 0===e._maxListeners?bA.defaultMaxListeners:e._maxListeners}function AA(e,t,n,r){var i,o,a;if("function"!=typeof n)throw new TypeError('"listener" argument must be a function');if((o=e._events)?(o.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),o=e._events),a=o[t]):(o=e._events=new yA,e._eventsCount=0),a){if("function"==typeof a?a=o[t]=r?[n,a]:[a,n]:r?a.unshift(n):a.push(n),!a.warned&&(i=wA(e))&&i>0&&a.length>i){a.warned=!0;var s=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+t+" listeners added. Use emitter.setMaxListeners() to increase limit");s.name="MaxListenersExceededWarning",s.emitter=e,s.type=t,s.count=a.length,function(e){"function"==typeof console.warn?console.warn(e):console.log(e)}(s)}}else a=o[t]=n,++e._eventsCount;return e}function _A(e,t,n){var r=!1;function i(){e.removeListener(t,i),r||(r=!0,n.apply(e,arguments))}return i.listener=n,i}function EA(e){var t=this._events;if(t){var n=t[e];if("function"==typeof n)return 1;if(n)return n.length}return 0}function SA(e,t){for(var n=new Array(t);t--;)n[t]=e[t];return n}yA.prototype=Object.create(null),bA.EventEmitter=bA,bA.usingDomains=!1,bA.prototype.domain=void 0,bA.prototype._events=void 0,bA.prototype._maxListeners=void 0,bA.defaultMaxListeners=10,bA.init=function(){this.domain=null,bA.usingDomains&&(void 0).active,this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=new yA,this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},bA.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||isNaN(e))throw new TypeError('"n" argument must be a positive number');return this._maxListeners=e,this},bA.prototype.getMaxListeners=function(){return wA(this)},bA.prototype.emit=function(e){var t,n,r,i,o,a,s,u="error"===e;if(a=this._events)u=u&&null==a.error;else if(!u)return!1;if(s=this.domain,u){if(t=arguments[1],!s){if(t instanceof Error)throw t;var l=new Error('Uncaught, unspecified "error" event. ('+t+")");throw l.context=t,l}return t||(t=new Error('Uncaught, unspecified "error" event')),t.domainEmitter=this,t.domain=s,t.domainThrown=!1,s.emit("error",t),!1}if(!(n=a[e]))return!1;var c="function"==typeof n;switch(r=arguments.length){case 1:!function(e,t,n){if(t)e.call(n);else for(var r=e.length,i=SA(e,r),o=0;o0;)if(n[o]===t||n[o].listener&&n[o].listener===t){a=n[o].listener,i=o;break}if(i<0)return this;if(1===n.length){if(n[0]=void 0,0==--this._eventsCount)return this._events=new yA,this;delete r[e]}else!function(e,t){for(var n=t,r=n+1,i=e.length;r0?Reflect.ownKeys(this._events):[]};var kA=o(Object.freeze({__proto__:null,EventEmitter:bA,default:bA}));Object.defineProperty(vA,"__esModule",{value:!0});const MA=kA;function CA(e,t,n){try{Reflect.apply(e,t,n)}catch(e){setTimeout((()=>{throw e}))}}let xA=class extends MA.EventEmitter{emit(e,...t){let n="error"===e;const r=this._events;if(void 0!==r)n=n&&void 0===r.error;else if(!n)return!1;if(n){let e;if(t.length>0&&([e]=t),e instanceof Error)throw e;const n=new Error("Unhandled error."+(e?` (${e.message})`:""));throw n.context=e,n}const i=r[e];if(void 0===i)return!1;if("function"==typeof i)CA(i,this,t);else{const e=i.length,n=function(e){const t=e.length,n=new Array(t);for(let r=0;ra.depthLimit)return void jA(PA,e,t,i);if(void 0!==a.edgesLimit&&n+1>a.edgesLimit)return void jA(PA,e,t,i);if(r.push(e),Array.isArray(e))for(s=0;st?1:0}function FA(e,t,n,r){void 0===r&&(r=DA());var i,o=qA(e,"",0,[],void 0,0,r)||e;try{i=0===NA.length?JSON.stringify(o,t,n):JSON.stringify(o,WA(t),n)}catch(e){return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;0!==IA.length;){var a=IA.pop();4===a.length?Object.defineProperty(a[0],a[1],a[3]):a[0][a[1]]=a[2]}}return i}function qA(e,t,n,r,i,o,a){var s;if(o+=1,"object"==typeof e&&null!==e){for(s=0;sa.depthLimit)return void jA(PA,e,t,i);if(void 0!==a.edgesLimit&&n+1>a.edgesLimit)return void jA(PA,e,t,i);if(r.push(e),Array.isArray(e))for(s=0;s0)for(var r=0;r=1e3&&e<=4999}(e))throw new Error('"code" must be an integer such that: 1000 <= code <= 4999');super(e,t,n)}};var $A={},YA={};Object.defineProperty(YA,"__esModule",{value:!0}),YA.errorValues=YA.errorCodes=void 0,YA.errorCodes={rpc:{invalidInput:-32e3,resourceNotFound:-32001,resourceUnavailable:-32002,transactionRejected:-32003,methodNotSupported:-32004,limitExceeded:-32005,parse:-32700,invalidRequest:-32600,methodNotFound:-32601,invalidParams:-32602,internal:-32603},provider:{userRejectedRequest:4001,unauthorized:4100,unsupportedMethod:4200,disconnected:4900,chainDisconnected:4901}},YA.errorValues={"-32700":{standard:"JSON RPC 2.0",message:"Invalid JSON was received by the server. An error occurred on the server while parsing the JSON text."},"-32600":{standard:"JSON RPC 2.0",message:"The JSON sent is not a valid Request object."},"-32601":{standard:"JSON RPC 2.0",message:"The method does not exist / is not available."},"-32602":{standard:"JSON RPC 2.0",message:"Invalid method parameter(s)."},"-32603":{standard:"JSON RPC 2.0",message:"Internal JSON-RPC error."},"-32000":{standard:"EIP-1474",message:"Invalid input."},"-32001":{standard:"EIP-1474",message:"Resource not found."},"-32002":{standard:"EIP-1474",message:"Resource unavailable."},"-32003":{standard:"EIP-1474",message:"Transaction rejected."},"-32004":{standard:"EIP-1474",message:"Method not supported."},"-32005":{standard:"EIP-1474",message:"Request limit exceeded."},4001:{standard:"EIP-1193",message:"User rejected the request."},4100:{standard:"EIP-1193",message:"The requested account and/or method has not been authorized by the user."},4200:{standard:"EIP-1193",message:"The requested method is not supported by this Ethereum provider."},4900:{standard:"EIP-1193",message:"The provider is disconnected from all chains."},4901:{standard:"EIP-1193",message:"The provider is disconnected from the specified chain."}},function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.serializeError=e.isValidCode=e.getMessageFromCode=e.JSON_RPC_SERVER_ERROR_MESSAGE=void 0;const t=YA,n=OA,r=t.errorCodes.rpc.internal,i="Unspecified error message. This is a bug, please report it.",o={code:r,message:a(r)};function a(n,r=i){if(Number.isInteger(n)){const r=n.toString();if(c(t.errorValues,r))return t.errorValues[r].message;if(u(n))return e.JSON_RPC_SERVER_ERROR_MESSAGE}return r}function s(e){if(!Number.isInteger(e))return!1;const n=e.toString();return!!t.errorValues[n]||!!u(e)}function u(e){return e>=-32099&&e<=-32e3}function l(e){return e&&"object"==typeof e&&!Array.isArray(e)?Object.assign({},e):e}function c(e,t){return Object.prototype.hasOwnProperty.call(e,t)}e.JSON_RPC_SERVER_ERROR_MESSAGE="Unspecified server error.",e.getMessageFromCode=a,e.isValidCode=s,e.serializeError=function(e,{fallbackError:t=o,shouldIncludeStack:r=!1}={}){var i,u;if(!t||!Number.isInteger(t.code)||"string"!=typeof t.message)throw new Error("Must provide fallback error with integer number code and string message.");if(e instanceof n.EthereumRpcError)return e.serialize();const d={};if(e&&"object"==typeof e&&!Array.isArray(e)&&c(e,"code")&&s(e.code)){const t=e;d.code=t.code,t.message&&"string"==typeof t.message?(d.message=t.message,c(t,"data")&&(d.data=t.data)):(d.message=a(d.code),d.data={originalError:l(e)})}else{d.code=t.code;const n=null===(i=e)||void 0===i?void 0:i.message;d.message=n&&"string"==typeof n?n:t.message,d.data={originalError:l(e)}}const f=null===(u=e)||void 0===u?void 0:u.stack;return r&&e&&f&&"string"==typeof f&&(d.stack=f),d}}($A);var GA={};Object.defineProperty(GA,"__esModule",{value:!0}),GA.ethErrors=void 0;const QA=OA,ZA=$A,XA=YA;function JA(e,t){const[n,r]=t_(t);return new QA.EthereumRpcError(e,n||ZA.getMessageFromCode(e),r)}function e_(e,t){const[n,r]=t_(t);return new QA.EthereumProviderError(e,n||ZA.getMessageFromCode(e),r)}function t_(e){if(e){if("string"==typeof e)return[e];if("object"==typeof e&&!Array.isArray(e)){const{message:t,data:n}=e;if(t&&"string"!=typeof t)throw new Error("Must specify string message.");return[t||void 0,n]}}return[]}GA.ethErrors={rpc:{parse:e=>JA(XA.errorCodes.rpc.parse,e),invalidRequest:e=>JA(XA.errorCodes.rpc.invalidRequest,e),invalidParams:e=>JA(XA.errorCodes.rpc.invalidParams,e),methodNotFound:e=>JA(XA.errorCodes.rpc.methodNotFound,e),internal:e=>JA(XA.errorCodes.rpc.internal,e),server:e=>{if(!e||"object"!=typeof e||Array.isArray(e))throw new Error("Ethereum RPC Server errors must provide single object argument.");const{code:t}=e;if(!Number.isInteger(t)||t>-32005||t<-32099)throw new Error('"code" must be an integer such that: -32099 <= code <= -32005');return JA(t,e)},invalidInput:e=>JA(XA.errorCodes.rpc.invalidInput,e),resourceNotFound:e=>JA(XA.errorCodes.rpc.resourceNotFound,e),resourceUnavailable:e=>JA(XA.errorCodes.rpc.resourceUnavailable,e),transactionRejected:e=>JA(XA.errorCodes.rpc.transactionRejected,e),methodNotSupported:e=>JA(XA.errorCodes.rpc.methodNotSupported,e),limitExceeded:e=>JA(XA.errorCodes.rpc.limitExceeded,e)},provider:{userRejectedRequest:e=>e_(XA.errorCodes.provider.userRejectedRequest,e),unauthorized:e=>e_(XA.errorCodes.provider.unauthorized,e),unsupportedMethod:e=>e_(XA.errorCodes.provider.unsupportedMethod,e),disconnected:e=>e_(XA.errorCodes.provider.disconnected,e),chainDisconnected:e=>e_(XA.errorCodes.provider.chainDisconnected,e),custom:e=>{if(!e||"object"!=typeof e||Array.isArray(e))throw new Error("Ethereum Provider custom errors must provide single object argument.");const{code:t,message:n,data:r}=e;if(!n||"string"!=typeof n)throw new Error('"message" must be a nonempty string');return new QA.EthereumProviderError(t,n,r)}}},function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.getMessageFromCode=e.serializeError=e.EthereumProviderError=e.EthereumRpcError=e.ethErrors=e.errorCodes=void 0;const t=OA;Object.defineProperty(e,"EthereumRpcError",{enumerable:!0,get:function(){return t.EthereumRpcError}}),Object.defineProperty(e,"EthereumProviderError",{enumerable:!0,get:function(){return t.EthereumProviderError}});const n=$A;Object.defineProperty(e,"serializeError",{enumerable:!0,get:function(){return n.serializeError}}),Object.defineProperty(e,"getMessageFromCode",{enumerable:!0,get:function(){return n.getMessageFromCode}});const r=GA;Object.defineProperty(e,"ethErrors",{enumerable:!0,get:function(){return r.ethErrors}});const i=YA;Object.defineProperty(e,"errorCodes",{enumerable:!0,get:function(){return i.errorCodes}})}(RA);var n_=Array.isArray,r_=Object.keys,i_=Object.prototype.hasOwnProperty,o_={},a_={},s_={};Object.defineProperty(s_,"__esModule",{value:!0}),s_.getUniqueId=void 0;const u_=4294967295;let l_=Math.floor(Math.random()*u_);s_.getUniqueId=function(){return l_=(l_+1)%u_,l_},Object.defineProperty(a_,"__esModule",{value:!0}),a_.createIdRemapMiddleware=void 0;const c_=s_;a_.createIdRemapMiddleware=function(){return(e,t,n,r)=>{const i=e.id,o=c_.getUniqueId();e.id=o,t.id=o,n((n=>{e.id=i,t.id=i,n()}))}};var d_={};Object.defineProperty(d_,"__esModule",{value:!0}),d_.createAsyncMiddleware=void 0,d_.createAsyncMiddleware=function(e){return async(t,n,r,i)=>{let o;const a=new Promise((e=>{o=e}));let s=null,u=!1;const l=async()=>{u=!0,r((e=>{s=e,o()})),await a};try{await e(t,n,l),u?(await a,s(null)):i(null)}catch(e){s?s(e):i(e)}}};var f_={};Object.defineProperty(f_,"__esModule",{value:!0}),f_.createScaffoldMiddleware=void 0,f_.createScaffoldMiddleware=function(e){return(t,n,r,i)=>{const o=e[t.method];return void 0===o?r():"function"==typeof o?o(t,n,r,i):(n.result=o,i())}};var h_={},p_=r&&r.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(h_,"__esModule",{value:!0}),h_.JsonRpcEngine=void 0;const m_=p_(vA),g_=RA;class v_ extends m_.default{constructor(){super(),this._middleware=[]}push(e){this._middleware.push(e)}handle(e,t){if(t&&"function"!=typeof t)throw new Error('"callback" must be a function if provided.');return Array.isArray(e)?t?this._handleBatch(e,t):this._handleBatch(e):t?this._handle(e,t):this._promiseHandle(e)}asMiddleware(){return async(e,t,n,r)=>{try{const[i,o,a]=await v_._runAllMiddleware(e,t,this._middleware);return o?(await v_._runReturnHandlers(a),r(i)):n((async e=>{try{await v_._runReturnHandlers(a)}catch(t){return e(t)}return e()}))}catch(e){return r(e)}}}async _handleBatch(e,t){try{const n=await Promise.all(e.map(this._promiseHandle.bind(this)));return t?t(null,n):n}catch(e){if(t)return t(e);throw e}}_promiseHandle(e){return new Promise((t=>{this._handle(e,((e,n)=>{t(n)}))}))}async _handle(e,t){if(!e||Array.isArray(e)||"object"!=typeof e){const n=new g_.EthereumRpcError(g_.errorCodes.rpc.invalidRequest,"Requests must be plain objects. Received: "+typeof e,{request:e});return t(n,{id:void 0,jsonrpc:"2.0",error:n})}if("string"!=typeof e.method){const n=new g_.EthereumRpcError(g_.errorCodes.rpc.invalidRequest,"Must specify a string method. Received: "+typeof e.method,{request:e});return t(n,{id:e.id,jsonrpc:"2.0",error:n})}const n=Object.assign({},e),r={id:n.id,jsonrpc:n.jsonrpc};let i=null;try{await this._processRequest(n,r)}catch(e){i=e}return i&&(delete r.result,r.error||(r.error=g_.serializeError(i))),t(i,r)}async _processRequest(e,t){const[n,r,i]=await v_._runAllMiddleware(e,t,this._middleware);if(v_._checkForCompletion(e,t,r),await v_._runReturnHandlers(i),n)throw n}static async _runAllMiddleware(e,t,n){const r=[];let i=null,o=!1;for(const a of n)if([i,o]=await v_._runMiddleware(e,t,a,r),o)break;return[i,o,r.reverse()]}static _runMiddleware(e,t,n,r){return new Promise((i=>{const o=e=>{const n=e||t.error;n&&(t.error=g_.serializeError(n)),i([n,!0])},a=n=>{t.error?o(t.error):(n&&("function"!=typeof n&&o(new g_.EthereumRpcError(g_.errorCodes.rpc.internal,`JsonRpcEngine: "next" return handlers must be functions. Received "${typeof n}" for request:\n${y_(e)}`,{request:e})),r.push(n)),i([null,!1]))};try{n(e,t,a,o)}catch(e){o(e)}}))}static async _runReturnHandlers(e){for(const t of e)await new Promise(((e,n)=>{t((t=>t?n(t):e()))}))}static _checkForCompletion(e,t,n){if(!("result"in t)&&!("error"in t))throw new g_.EthereumRpcError(g_.errorCodes.rpc.internal,`JsonRpcEngine: Response has no error or result for request:\n${y_(e)}`,{request:e});if(!n)throw new g_.EthereumRpcError(g_.errorCodes.rpc.internal,`JsonRpcEngine: Nothing ended request:\n${y_(e)}`,{request:e})}}function y_(e){return JSON.stringify(e,null,2)}h_.JsonRpcEngine=v_;var b_={};Object.defineProperty(b_,"__esModule",{value:!0}),b_.mergeMiddleware=void 0;const w_=h_;b_.mergeMiddleware=function(e){const t=new w_.JsonRpcEngine;return e.forEach((e=>t.push(e))),t.asMiddleware()},function(e){var t=r&&r.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),n=r&&r.__exportStar||function(e,n){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||t(n,e,r)};Object.defineProperty(e,"__esModule",{value:!0}),n(a_,e),n(d_,e),n(f_,e),n(s_,e),n(h_,e),n(b_,e)}(o_);var A_={};Object.defineProperty(A_,"__esModule",{value:!0});const __={errors:{disconnected:()=>"MetaMask: Disconnected from chain. Attempting to connect.",permanentlyDisconnected:()=>"MetaMask: Disconnected from MetaMask background. Page reload required.",sendSiteMetadata:()=>"MetaMask: Failed to send site metadata. This is an internal error, please report this bug.",unsupportedSync:e=>`MetaMask: The MetaMask Ethereum provider does not support synchronous methods like ${e} without a callback parameter.`,invalidDuplexStream:()=>"Must provide a Node.js-style duplex stream.",invalidNetworkParams:()=>"MetaMask: Received invalid network parameters. Please report this bug.",invalidRequestArgs:()=>"Expected a single, non-array, object argument.",invalidRequestMethod:()=>"'args.method' must be a non-empty string.",invalidRequestParams:()=>"'args.params' must be an object or array if provided.",invalidLoggerObject:()=>"'args.logger' must be an object if provided.",invalidLoggerMethod:e=>`'args.logger' must include required method '${e}'.`},info:{connected:e=>`MetaMask: Connected to chain with ID "${e}".`},warnings:{enableDeprecation:"MetaMask: 'ethereum.enable()' is deprecated and may be removed in the future. Please use the 'eth_requestAccounts' RPC method instead.\nFor more information, see: https://eips.ethereum.org/EIPS/eip-1102",sendDeprecation:"MetaMask: 'ethereum.send(...)' is deprecated and may be removed in the future. Please use 'ethereum.sendAsync(...)' or 'ethereum.request(...)' instead.\nFor more information, see: https://eips.ethereum.org/EIPS/eip-1193",events:{close:"MetaMask: The event 'close' is deprecated and may be removed in the future. Please use 'disconnect' instead.\nFor more information, see: https://eips.ethereum.org/EIPS/eip-1193#disconnect",data:"MetaMask: The event 'data' is deprecated and will be removed in the future. Use 'message' instead.\nFor more information, see: https://eips.ethereum.org/EIPS/eip-1193#message",networkChanged:"MetaMask: The event 'networkChanged' is deprecated and may be removed in the future. Use 'chainChanged' instead.\nFor more information, see: https://eips.ethereum.org/EIPS/eip-1193#chainchanged",notification:"MetaMask: The event 'notification' is deprecated and may be removed in the future. Use 'message' instead.\nFor more information, see: https://eips.ethereum.org/EIPS/eip-1193#message"},rpc:{ethDecryptDeprecation:"MetaMask: The RPC method 'eth_decrypt' is deprecated and may be removed in the future.\nFor more information, see: https://medium.com/metamask/metamask-api-method-deprecation-2b0564a84686",ethGetEncryptionPublicKeyDeprecation:"MetaMask: The RPC method 'eth_getEncryptionPublicKey' is deprecated and may be removed in the future.\nFor more information, see: https://medium.com/metamask/metamask-api-method-deprecation-2b0564a84686"},experimentalMethods:"MetaMask: 'ethereum._metamask' exposes non-standard, experimental methods. They may be removed or changed without warning."}};A_.default=__;var E_={},S_={},k_=r&&r.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(S_,"__esModule",{value:!0}),S_.createRpcWarningMiddleware=void 0;const M_=k_(A_);S_.createRpcWarningMiddleware=function(e){const t={ethDecryptDeprecation:!1,ethGetEncryptionPublicKeyDeprecation:!1};return(n,r,i)=>{!1===t.ethDecryptDeprecation&&"eth_decrypt"===n.method?(e.warn(M_.default.warnings.rpc.ethDecryptDeprecation),t.ethDecryptDeprecation=!0):!1===t.ethGetEncryptionPublicKeyDeprecation&&"eth_getEncryptionPublicKey"===n.method&&(e.warn(M_.default.warnings.rpc.ethGetEncryptionPublicKeyDeprecation),t.ethGetEncryptionPublicKeyDeprecation=!0),i()}},Object.defineProperty(E_,"__esModule",{value:!0}),E_.NOOP=E_.isValidNetworkVersion=E_.isValidChainId=E_.getRpcPromiseCallback=E_.getDefaultExternalMiddleware=E_.EMITTED_NOTIFICATIONS=void 0;const C_=o_,x_=RA,R_=S_;function O_(e){return(t,n,r)=>{"string"==typeof t.method&&t.method||(n.error=x_.ethErrors.rpc.invalidRequest({message:"The request 'method' must be a non-empty string.",data:t})),r((t=>{const{error:r}=n;return r?(e.error(`MetaMask - RPC Error: ${r.message}`,r),t()):t()}))}}E_.EMITTED_NOTIFICATIONS=Object.freeze(["eth_subscription"]),E_.getDefaultExternalMiddleware=(e=console)=>[C_.createIdRemapMiddleware(),O_(e),R_.createRpcWarningMiddleware(e)],E_.getRpcPromiseCallback=(e,t,n=!0)=>(r,i)=>{r||i.error?t(r||i.error):!n||Array.isArray(i)?e(i):e(i.result)},E_.isValidChainId=e=>Boolean(e)&&"string"==typeof e&&e.startsWith("0x"),E_.isValidNetworkVersion=e=>Boolean(e)&&"string"==typeof e,E_.NOOP=()=>{};var T_=r&&r.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(gA,"__esModule",{value:!0}),gA.BaseProvider=void 0;const P_=T_(vA),L_=RA,I_=T_((function e(t,n){if(t===n)return!0;if(t&&n&&"object"==typeof t&&"object"==typeof n){var r,i,o,a=n_(t),s=n_(n);if(a&&s){if((i=t.length)!=n.length)return!1;for(r=i;0!=r--;)if(!e(t[r],n[r]))return!1;return!0}if(a!=s)return!1;var u=t instanceof Date,l=n instanceof Date;if(u!=l)return!1;if(u&&l)return t.getTime()==n.getTime();var c=t instanceof RegExp,d=n instanceof RegExp;if(c!=d)return!1;if(c&&d)return t.toString()==n.toString();var f=r_(t);if((i=f.length)!==r_(n).length)return!1;for(r=i;0!=r--;)if(!i_.call(n,f[r]))return!1;for(r=i;0!=r--;)if(!e(t[o=f[r]],n[o]))return!1;return!0}return t!=t&&n!=n})),N_=o_,D_=T_(A_),B_=E_;class j_ extends P_.default{constructor({logger:e=console,maxEventListeners:t=100,rpcMiddleware:n=[]}={}){super(),this._log=e,this.setMaxListeners(t),this._state=Object.assign({},j_._defaultState),this.selectedAddress=null,this.chainId=null,this._handleAccountsChanged=this._handleAccountsChanged.bind(this),this._handleConnect=this._handleConnect.bind(this),this._handleChainChanged=this._handleChainChanged.bind(this),this._handleDisconnect=this._handleDisconnect.bind(this),this._handleUnlockStateChanged=this._handleUnlockStateChanged.bind(this),this._rpcRequest=this._rpcRequest.bind(this),this.request=this.request.bind(this);const r=new N_.JsonRpcEngine;n.forEach((e=>r.push(e))),this._rpcEngine=r}isConnected(){return this._state.isConnected}async request(e){if(!e||"object"!=typeof e||Array.isArray(e))throw L_.ethErrors.rpc.invalidRequest({message:D_.default.errors.invalidRequestArgs(),data:e});const{method:t,params:n}=e;if("string"!=typeof t||0===t.length)throw L_.ethErrors.rpc.invalidRequest({message:D_.default.errors.invalidRequestMethod(),data:e});if(void 0!==n&&!Array.isArray(n)&&("object"!=typeof n||null===n))throw L_.ethErrors.rpc.invalidRequest({message:D_.default.errors.invalidRequestParams(),data:e});return new Promise(((e,r)=>{this._rpcRequest({method:t,params:n},B_.getRpcPromiseCallback(e,r))}))}_initializeState(e){if(!0===this._state.initialized)throw new Error("Provider already initialized.");if(e){const{accounts:t,chainId:n,isUnlocked:r,networkVersion:i}=e;this._handleConnect(n),this._handleChainChanged({chainId:n,networkVersion:i}),this._handleUnlockStateChanged({accounts:t,isUnlocked:r}),this._handleAccountsChanged(t)}this._state.initialized=!0,this.emit("_initialized")}_rpcRequest(e,t){let n=t;return Array.isArray(e)||(e.jsonrpc||(e.jsonrpc="2.0"),"eth_accounts"!==e.method&&"eth_requestAccounts"!==e.method||(n=(n,r)=>{this._handleAccountsChanged(r.result||[],"eth_accounts"===e.method),t(n,r)})),this._rpcEngine.handle(e,n)}_handleConnect(e){this._state.isConnected||(this._state.isConnected=!0,this.emit("connect",{chainId:e}),this._log.debug(D_.default.info.connected(e)))}_handleDisconnect(e,t){if(this._state.isConnected||!this._state.isPermanentlyDisconnected&&!e){let n;this._state.isConnected=!1,e?(n=new L_.EthereumRpcError(1013,t||D_.default.errors.disconnected()),this._log.debug(n)):(n=new L_.EthereumRpcError(1011,t||D_.default.errors.permanentlyDisconnected()),this._log.error(n),this.chainId=null,this._state.accounts=null,this.selectedAddress=null,this._state.isUnlocked=!1,this._state.isPermanentlyDisconnected=!0),this.emit("disconnect",n)}}_handleChainChanged({chainId:e}={}){B_.isValidChainId(e)?(this._handleConnect(e),e!==this.chainId&&(this.chainId=e,this._state.initialized&&this.emit("chainChanged",this.chainId))):this._log.error(D_.default.errors.invalidNetworkParams(),{chainId:e})}_handleAccountsChanged(e,t=!1){let n=e;Array.isArray(e)||(this._log.error("MetaMask: Received invalid accounts parameter. Please report this bug.",e),n=[]);for(const r of e)if("string"!=typeof r){this._log.error("MetaMask: Received non-string account. Please report this bug.",e),n=[];break}I_.default(this._state.accounts,n)||(t&&null!==this._state.accounts&&this._log.error("MetaMask: 'eth_accounts' unexpectedly updated accounts. Please report this bug.",n),this._state.accounts=n,this.selectedAddress!==n[0]&&(this.selectedAddress=n[0]||null),this._state.initialized&&this.emit("accountsChanged",n))}_handleUnlockStateChanged({accounts:e,isUnlocked:t}={}){"boolean"==typeof t?t!==this._state.isUnlocked&&(this._state.isUnlocked=t,this._handleAccountsChanged(e||[])):this._log.error("MetaMask: Received invalid isUnlocked parameter. Please report this bug.")}}gA.BaseProvider=j_,j_._defaultState={accounts:null,isConnected:!1,isUnlocked:!1,initialized:!1,isPermanentlyDisconnected:!1};var U_={},z_={},F_="function"==typeof Object.create?function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:function(e,t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e},q_=/%[sdj%]/g;function W_(e){if(!oE(e)){for(var t=[],n=0;n=i)return e;switch(e){case"%s":return String(r[n++]);case"%d":return Number(r[n++]);case"%j":try{return JSON.stringify(r[n++])}catch(e){return"[Circular]"}default:return e}})),a=r[n];n=3&&(n.depth=arguments[2]),arguments.length>=4&&(n.colors=arguments[3]),tE(t)?n.showHidden=t:t&&bE(n,t),sE(n.showHidden)&&(n.showHidden=!1),sE(n.depth)&&(n.depth=2),sE(n.colors)&&(n.colors=!1),sE(n.customInspect)&&(n.customInspect=!0),n.colors&&(n.stylize=G_),Z_(n,e,n.depth)}function G_(e,t){var n=Y_.styles[t];return n?"["+Y_.colors[n][0]+"m"+e+"["+Y_.colors[n][1]+"m":e}function Q_(e,t){return e}function Z_(e,t,n){if(e.customInspect&&t&&fE(t.inspect)&&t.inspect!==Y_&&(!t.constructor||t.constructor.prototype!==t)){var r=t.inspect(n,e);return oE(r)||(r=Z_(e,r,n)),r}var i=function(e,t){if(sE(t))return e.stylize("undefined","undefined");if(oE(t)){var n="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(n,"string")}return iE(t)?e.stylize(""+t,"number"):tE(t)?e.stylize(""+t,"boolean"):nE(t)?e.stylize("null","null"):void 0}(e,t);if(i)return i;var o=Object.keys(t),a=function(e){var t={};return e.forEach((function(e,n){t[e]=!0})),t}(o);if(e.showHidden&&(o=Object.getOwnPropertyNames(t)),dE(t)&&(o.indexOf("message")>=0||o.indexOf("description")>=0))return X_(t);if(0===o.length){if(fE(t)){var s=t.name?": "+t.name:"";return e.stylize("[Function"+s+"]","special")}if(uE(t))return e.stylize(RegExp.prototype.toString.call(t),"regexp");if(cE(t))return e.stylize(Date.prototype.toString.call(t),"date");if(dE(t))return X_(t)}var u,l="",c=!1,d=["{","}"];return eE(t)&&(c=!0,d=["[","]"]),fE(t)&&(l=" [Function"+(t.name?": "+t.name:"")+"]"),uE(t)&&(l=" "+RegExp.prototype.toString.call(t)),cE(t)&&(l=" "+Date.prototype.toUTCString.call(t)),dE(t)&&(l=" "+X_(t)),0!==o.length||c&&0!=t.length?n<0?uE(t)?e.stylize(RegExp.prototype.toString.call(t),"regexp"):e.stylize("[Object]","special"):(e.seen.push(t),u=c?function(e,t,n,r,i){for(var o=[],a=0,s=t.length;a60?n[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+n[1]:n[0]+t+" "+e.join(", ")+" "+n[1]}(u,l,d)):d[0]+l+d[1]}function X_(e){return"["+Error.prototype.toString.call(e)+"]"}function J_(e,t,n,r,i,o){var a,s,u;if((u=Object.getOwnPropertyDescriptor(t,i)||{value:t[i]}).get?s=u.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):u.set&&(s=e.stylize("[Setter]","special")),wE(r,i)||(a="["+i+"]"),s||(e.seen.indexOf(u.value)<0?(s=nE(n)?Z_(e,u.value,null):Z_(e,u.value,n-1)).indexOf("\n")>-1&&(s=o?s.split("\n").map((function(e){return" "+e})).join("\n").substr(2):"\n"+s.split("\n").map((function(e){return" "+e})).join("\n")):s=e.stylize("[Circular]","special")),sE(a)){if(o&&i.match(/^\d+$/))return s;(a=JSON.stringify(""+i)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(a=a.substr(1,a.length-2),a=e.stylize(a,"name")):(a=a.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),a=e.stylize(a,"string"))}return a+": "+s}function eE(e){return Array.isArray(e)}function tE(e){return"boolean"==typeof e}function nE(e){return null===e}function rE(e){return null==e}function iE(e){return"number"==typeof e}function oE(e){return"string"==typeof e}function aE(e){return"symbol"==typeof e}function sE(e){return void 0===e}function uE(e){return lE(e)&&"[object RegExp]"===mE(e)}function lE(e){return"object"==typeof e&&null!==e}function cE(e){return lE(e)&&"[object Date]"===mE(e)}function dE(e){return lE(e)&&("[object Error]"===mE(e)||e instanceof Error)}function fE(e){return"function"==typeof e}function hE(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e}function pE(e){return xt(e)}function mE(e){return Object.prototype.toString.call(e)}function gE(e){return e<10?"0"+e.toString(10):e.toString(10)}Y_.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},Y_.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};var vE=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function yE(){console.log("%s - %s",function(){var e=new Date,t=[gE(e.getHours()),gE(e.getMinutes()),gE(e.getSeconds())].join(":");return[e.getDate(),vE[e.getMonth()],t].join(" ")}(),W_.apply(null,arguments))}function bE(e,t){if(!t||!lE(t))return e;for(var n=Object.keys(t),r=n.length;r--;)e[n[r]]=t[n[r]];return e}function wE(e,t){return Object.prototype.hasOwnProperty.call(e,t)}var AE={inherits:F_,_extend:bE,log:yE,isBuffer:pE,isPrimitive:hE,isFunction:fE,isError:dE,isDate:cE,isObject:lE,isRegExp:uE,isUndefined:sE,isSymbol:aE,isString:oE,isNumber:iE,isNullOrUndefined:rE,isNull:nE,isBoolean:tE,isArray:eE,inspect:Y_,deprecate:V_,format:W_,debuglog:$_},_E=Object.freeze({__proto__:null,_extend:bE,debuglog:$_,default:AE,deprecate:V_,format:W_,inherits:F_,inspect:Y_,isArray:eE,isBoolean:tE,isBuffer:pE,isDate:cE,isError:dE,isFunction:fE,isNull:nE,isNullOrUndefined:rE,isNumber:iE,isObject:lE,isPrimitive:hE,isRegExp:uE,isString:oE,isSymbol:aE,isUndefined:sE,log:yE});function EE(){this.head=null,this.tail=null,this.length=0}EE.prototype.push=function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length},EE.prototype.unshift=function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length},EE.prototype.shift=function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}},EE.prototype.clear=function(){this.head=this.tail=null,this.length=0},EE.prototype.join=function(e){if(0===this.length)return"";for(var t=this.head,n=""+t.data;t=t.next;)n+=e+t.data;return n},EE.prototype.concat=function(e){if(0===this.length)return Ke.alloc(0);if(1===this.length)return this.head.data;for(var t=Ke.allocUnsafe(e>>>0),n=this.head,r=0;n;)n.data.copy(t,r),r+=n.data.length,n=n.next;return t};var SE=Ke.isEncoding||function(e){switch(e&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function kE(e){switch(this.encoding=(e||"utf8").toLowerCase().replace(/[-_]/,""),function(e){if(e&&!SE(e))throw new Error("Unknown encoding: "+e)}(e),this.encoding){case"utf8":this.surrogateSize=3;break;case"ucs2":case"utf16le":this.surrogateSize=2,this.detectIncompleteChar=CE;break;case"base64":this.surrogateSize=3,this.detectIncompleteChar=xE;break;default:return void(this.write=ME)}this.charBuffer=new Ke(6),this.charReceived=0,this.charLength=0}function ME(e){return e.toString(this.encoding)}function CE(e){this.charReceived=e.length%2,this.charLength=this.charReceived?2:0}function xE(e){this.charReceived=e.length%3,this.charLength=this.charReceived?3:0}kE.prototype.write=function(e){for(var t="";this.charLength;){var n=e.length>=this.charLength-this.charReceived?this.charLength-this.charReceived:e.length;if(e.copy(this.charBuffer,this.charReceived,0,n),this.charReceived+=n,this.charReceived=55296&&r<=56319)){if(this.charReceived=this.charLength=0,0===e.length)return t;break}this.charLength+=this.surrogateSize,t=""}this.detectIncompleteChar(e);var r,i=e.length;if(this.charLength&&(e.copy(this.charBuffer,0,e.length-this.charReceived,i),i-=this.charReceived),i=(t+=e.toString(this.encoding,0,i)).length-1,(r=t.charCodeAt(i))>=55296&&r<=56319){var o=this.surrogateSize;return this.charLength+=o,this.charReceived+=o,this.charBuffer.copy(this.charBuffer,o,0,o),e.copy(this.charBuffer,0,0,o),t.substring(0,i)}return t},kE.prototype.detectIncompleteChar=function(e){for(var t=e.length>=3?3:e.length;t>0;t--){var n=e[e.length-t];if(1==t&&n>>5==6){this.charLength=2;break}if(t<=2&&n>>4==14){this.charLength=3;break}if(t<=3&&n>>3==30){this.charLength=4;break}}this.charReceived=t},kE.prototype.end=function(e){var t="";if(e&&e.length&&(t=this.write(e)),this.charReceived){var n=this.charReceived,r=this.charBuffer,i=this.encoding;t+=r.slice(0,n).toString(i)}return t},TE.ReadableState=OE;var RE=$_("stream");function OE(e,t){e=e||{},this.objectMode=!!e.objectMode,t instanceof oS&&(this.objectMode=this.objectMode||!!e.readableObjectMode);var n=e.highWaterMark,r=this.objectMode?16:16384;this.highWaterMark=n||0===n?n:r,this.highWaterMark=~~this.highWaterMark,this.buffer=new EE,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.ranOut=!1,this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(this.decoder=new kE(e.encoding),this.encoding=e.encoding)}function TE(e){if(!(this instanceof TE))return new TE(e);this._readableState=new OE(e,this),this.readable=!0,e&&"function"==typeof e.read&&(this._read=e.read),bA.call(this)}function PE(e,t,n,r,i){var o=function(e,t){var n=null;return xt(t)||"string"==typeof t||null==t||e.objectMode||(n=new TypeError("Invalid non-string/buffer chunk")),n}(t,n);if(o)e.emit("error",o);else if(null===n)t.reading=!1,function(e,t){if(!t.ended){if(t.decoder){var n=t.decoder.end();n&&n.length&&(t.buffer.push(n),t.length+=t.objectMode?1:n.length)}t.ended=!0,NE(e)}}(e,t);else if(t.objectMode||n&&n.length>0)if(t.ended&&!i){var a=new Error("stream.push() after EOF");e.emit("error",a)}else if(t.endEmitted&&i){var s=new Error("stream.unshift() after end event");e.emit("error",s)}else{var u;!t.decoder||i||r||(n=t.decoder.write(n),u=!t.objectMode&&0===n.length),i||(t.reading=!1),u||(t.flowing&&0===t.length&&!t.sync?(e.emit("data",n),e.read(0)):(t.length+=t.objectMode?1:n.length,i?t.buffer.unshift(n):t.buffer.push(n),t.needReadable&&NE(e))),function(e,t){t.readingMore||(t.readingMore=!0,b(BE,e,t))}(e,t)}else i||(t.reading=!1);return function(e){return!e.ended&&(e.needReadable||e.lengtht.highWaterMark&&(t.highWaterMark=function(e){return e>=LE?e=LE:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function NE(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(RE("emitReadable",t.flowing),t.emittedReadable=!0,t.sync?b(DE,e):DE(e))}function DE(e){RE("emit readable"),e.emit("readable"),zE(e)}function BE(e,t){for(var n=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length=t.length?(n=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.head.data:t.buffer.concat(t.length),t.buffer.clear()):n=function(e,t,n){var r;return eo.length?o.length:e;if(a===o.length?i+=o:i+=o.slice(0,e),0===(e-=a)){a===o.length?(++r,n.next?t.head=n.next:t.head=t.tail=null):(t.head=n,n.data=o.slice(a));break}++r}return t.length-=r,i}(e,t):function(e,t){var n=Ke.allocUnsafe(e),r=t.head,i=1;for(r.data.copy(n),e-=r.data.length;r=r.next;){var o=r.data,a=e>o.length?o.length:e;if(o.copy(n,n.length-e,0,a),0===(e-=a)){a===o.length?(++i,r.next?t.head=r.next:t.head=t.tail=null):(t.head=r,r.data=o.slice(a));break}++i}return t.length-=i,n}(e,t),r}(e,t.buffer,t.decoder),n);var n}function qE(e){var t=e._readableState;if(t.length>0)throw new Error('"endReadable()" called on non-empty stream');t.endEmitted||(t.ended=!0,b(WE,t,e))}function WE(e,t){e.endEmitted||0!==e.length||(e.endEmitted=!0,t.readable=!1,t.emit("end"))}function VE(e,t){for(var n=0,r=e.length;n=t.highWaterMark||t.ended))return RE("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?qE(this):NE(this),null;if(0===(e=IE(e,t))&&t.ended)return 0===t.length&&qE(this),null;var r,i=t.needReadable;return RE("need readable",i),(0===t.length||t.length-e0?FE(e,t):null)?(t.needReadable=!0,e=0):t.length-=e,0===t.length&&(t.ended||(t.needReadable=!0),n!==e&&t.ended&&qE(this)),null!==r&&this.emit("data",r),r},TE.prototype._read=function(e){this.emit("error",new Error("not implemented"))},TE.prototype.pipe=function(e,t){var n=this,r=this._readableState;switch(r.pipesCount){case 0:r.pipes=e;break;case 1:r.pipes=[r.pipes,e];break;default:r.pipes.push(e)}r.pipesCount+=1,RE("pipe count=%d opts=%j",r.pipesCount,t);var i=t&&!1===t.end?l:a;function o(e){RE("onunpipe"),e===n&&l()}function a(){RE("onend"),e.end()}r.endEmitted?b(i):n.once("end",i),e.on("unpipe",o);var s=function(e){return function(){var t=e._readableState;RE("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&e.listeners("data").length&&(t.flowing=!0,zE(e))}}(n);e.on("drain",s);var u=!1;function l(){RE("cleanup"),e.removeListener("close",h),e.removeListener("finish",p),e.removeListener("drain",s),e.removeListener("error",f),e.removeListener("unpipe",o),n.removeListener("end",a),n.removeListener("end",l),n.removeListener("data",d),u=!0,!r.awaitDrain||e._writableState&&!e._writableState.needDrain||s()}var c=!1;function d(t){RE("ondata"),c=!1,!1!==e.write(t)||c||((1===r.pipesCount&&r.pipes===e||r.pipesCount>1&&-1!==VE(r.pipes,e))&&!u&&(RE("false write response, pause",n._readableState.awaitDrain),n._readableState.awaitDrain++,c=!0),n.pause())}function f(t){var n;RE("onerror",t),m(),e.removeListener("error",f),0===(n="error",e.listeners(n).length)&&e.emit("error",t)}function h(){e.removeListener("finish",p),m()}function p(){RE("onfinish"),e.removeListener("close",h),m()}function m(){RE("unpipe"),n.unpipe(e)}return n.on("data",d),function(e,t,n){if("function"==typeof e.prependListener)return e.prependListener(t,n);e._events&&e._events[t]?Array.isArray(e._events[t])?e._events[t].unshift(n):e._events[t]=[n,e._events[t]]:e.on(t,n)}(e,"error",f),e.once("close",h),e.once("finish",p),e.emit("pipe",n),r.flowing||(RE("pipe resume"),n.resume()),e},TE.prototype.unpipe=function(e){var t=this._readableState;if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this)),this;if(!e){var n=t.pipes,r=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var i=0;i-1))throw new TypeError("Unknown encoding: "+e);return this._writableState.defaultEncoding=e,this},YE.prototype._write=function(e,t,n){n(new Error("not implemented"))},YE.prototype._writev=null,YE.prototype.end=function(e,t,n){var r=this._writableState;"function"==typeof e?(n=e,e=null,t=null):"function"==typeof t&&(n=t,t=null),null!=e&&this.write(e,t),r.corked&&(r.corked=1,this.uncork()),r.ending||r.finished||function(e,t,n){t.ending=!0,eS(e,t),n&&(t.finished?b(n):e.once("finish",n)),t.ended=!0,e.writable=!1}(this,r,n)},F_(oS,TE);for(var nS=Object.keys(YE.prototype),rS=0;rSthis._onMessage(e))),this._port.onDisconnect.addListener((()=>this._onDisconnect())),this._log=()=>null}_onMessage(e){if(xt(e)){const t=Ke.from(e);this._log(t,!1),this.push(t)}else this._log(e,!1),this.push(e)}_onDisconnect(){this.destroy()}_read(){}_write(e,t,n){try{if(xt(e)){const t=e.toJSON();t._isBuffer=!0,this._log(t,!0),this._port.postMessage(t)}else this._log(e,!0),this._port.postMessage(e)}catch(e){return n(new Error("PortDuplexStream - disconnected"))}return n()}_setLogger(e){this._log=e}}z_.default=mS;var gS=function(e,t,n){if(n||2===arguments.length)for(var r,i=0,o=t.length;i meta[property="og:site_name"]');if(n)return n.content;const r=t.querySelector('head > meta[name="title"]');return r?r.content:t.title&&t.title.length>0?t.title:window.location.hostname}async function jS(e){const{document:t}=e,n=t.querySelectorAll('head > link[rel~="icon"]');for(const r of n)if(r&&await US(r.href))return r.href;return null}function US(e){return new Promise(((t,n)=>{try{const n=document.createElement("img");n.onload=()=>t(!0),n.onerror=()=>t(!1),n.src=e}catch(e){n(e)}}))}LS.sendSiteMetadata=async function(e,t){try{const t=await async function(){return{name:BS(window),icon:await jS(window)}}();e.handle({jsonrpc:"2.0",id:1,method:"metamask_sendDomainMetadata",params:t},DS.NOOP)}catch(e){t.error({message:NS.default.errors.sendSiteMetadata(),originalError:e})}};var zS={},FS={},qS={exports:{}},WS={exports:{}};void 0===P||!P.version||0===P.version.indexOf("v0.")||0===P.version.indexOf("v1.")&&0!==P.version.indexOf("v1.8.")?WS.exports={nextTick:function(e,t,n,r){if("function"!=typeof e)throw new TypeError('"callback" argument must be a function');var i,o,a=arguments.length;switch(a){case 0:case 1:return b(e);case 2:return b((function(){e.call(null,t)}));case 3:return b((function(){e.call(null,t,n)}));case 4:return b((function(){e.call(null,t,n,r)}));default:for(i=new Array(a-1),o=0;o0?this.tail.next=t:this.head=t,this.tail=t,++this.length},e.prototype.unshift=function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length},e.prototype.shift=function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}},e.prototype.clear=function(){this.head=this.tail=null,this.length=0},e.prototype.join=function(e){if(0===this.length)return"";for(var t=this.head,n=""+t.data;t=t.next;)n+=e+t.data;return n},e.prototype.concat=function(e){if(0===this.length)return t.alloc(0);for(var n,r,i,o=t.allocUnsafe(e>>>0),a=this.head,s=0;a;)n=a.data,r=o,i=s,n.copy(r,i),s+=a.data.length,a=a.next;return o},e}(),n&&n.inspect&&n.inspect.custom&&(e.exports.prototype[n.inspect.custom]=function(){var e=n.inspect({length:this.length});return this.constructor.name+" "+e})}(rk)),rk.exports}var ok=VS;function ak(e,t){e.emit("error",t)}var sk,uk,lk,ck,dk={destroy:function(e,t){var n=this,r=this._readableState&&this._readableState.destroyed,i=this._writableState&&this._writableState.destroyed;return r||i?(t?t(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,ok.nextTick(ak,this,e)):ok.nextTick(ak,this,e)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,(function(e){!t&&e?n._writableState?n._writableState.errorEmitted||(n._writableState.errorEmitted=!0,ok.nextTick(ak,n,e)):ok.nextTick(ak,n,e):t&&t(e)})),this)},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}},fk=function(e,t){if(hk("noDeprecation"))return e;var n=!1;return function(){if(!n){if(hk("throwDeprecation"))throw new Error(t);hk("traceDeprecation")?console.trace(t):console.warn(t),n=!0}return e.apply(this,arguments)}};function hk(e){try{if(!r.localStorage)return!1}catch(e){return!1}var t=r.localStorage[e];return null!=t&&"true"===String(t).toLowerCase()}function pk(){if(uk)return sk;uk=1;var e=VS;function t(e){var t=this;this.next=null,this.entry=null,this.finish=function(){!function(e,t,n){var r=e.entry;for(e.entry=null;r;){var i=r.callback;t.pendingcb--,i(n),r=r.next}t.corkedRequestsFree.next=e}(t,e)}}sk=p;var n,i=e.nextTick;p.WritableState=h;var o=Object.create(ZS);o.inherits=tk;var a,s={deprecate:fk},u=$S,l=QS.Buffer,c=(void 0!==r?r:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){},d=dk;function f(){}function h(r,o){n=n||mk(),r=r||{};var a=o instanceof n;this.objectMode=!!r.objectMode,a&&(this.objectMode=this.objectMode||!!r.writableObjectMode);var s=r.highWaterMark,u=r.writableHighWaterMark,l=this.objectMode?16:16384;this.highWaterMark=s||0===s?s:a&&(u||0===u)?u:l,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var c=!1===r.decodeStrings;this.decodeStrings=!c,this.defaultEncoding=r.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(t){!function(t,n){var r=t._writableState,o=r.sync,a=r.writecb;if(function(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}(r),n)!function(t,n,r,i,o){--n.pendingcb,r?(e.nextTick(o,i),e.nextTick(w,t,n),t._writableState.errorEmitted=!0,t.emit("error",i)):(o(i),t._writableState.errorEmitted=!0,t.emit("error",i),w(t,n))}(t,r,o,n,a);else{var s=y(r);s||r.corked||r.bufferProcessing||!r.bufferedRequest||v(t,r),o?i(g,t,r,s,a):g(t,r,s,a)}}(o,t)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new t(this)}function p(e){if(n=n||mk(),!(a.call(p,this)||this instanceof n))return new p(e);this._writableState=new h(e,this),this.writable=!0,e&&("function"==typeof e.write&&(this._write=e.write),"function"==typeof e.writev&&(this._writev=e.writev),"function"==typeof e.destroy&&(this._destroy=e.destroy),"function"==typeof e.final&&(this._final=e.final)),u.call(this)}function m(e,t,n,r,i,o,a){t.writelen=r,t.writecb=a,t.writing=!0,t.sync=!0,n?e._writev(i,t.onwrite):e._write(i,o,t.onwrite),t.sync=!1}function g(e,t,n,r){n||function(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}(e,t),t.pendingcb--,r(),w(e,t)}function v(e,n){n.bufferProcessing=!0;var r=n.bufferedRequest;if(e._writev&&r&&r.next){var i=n.bufferedRequestCount,o=new Array(i),a=n.corkedRequestsFree;a.entry=r;for(var s=0,u=!0;r;)o[s]=r,r.isBuf||(u=!1),r=r.next,s+=1;o.allBuffers=u,m(e,n,!0,n.length,o,"",a.finish),n.pendingcb++,n.lastBufferedRequest=null,a.next?(n.corkedRequestsFree=a.next,a.next=null):n.corkedRequestsFree=new t(n),n.bufferedRequestCount=0}else{for(;r;){var l=r.chunk,c=r.encoding,d=r.callback;if(m(e,n,!1,n.objectMode?1:l.length,l,c,d),r=r.next,n.bufferedRequestCount--,n.writing)break}null===r&&(n.lastBufferedRequest=null)}n.bufferedRequest=r,n.bufferProcessing=!1}function y(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function b(e,t){e._final((function(n){t.pendingcb--,n&&e.emit("error",n),t.prefinished=!0,e.emit("prefinish"),w(e,t)}))}function w(t,n){var r=y(n);return r&&(function(t,n){n.prefinished||n.finalCalled||("function"==typeof t._final?(n.pendingcb++,n.finalCalled=!0,e.nextTick(b,t,n)):(n.prefinished=!0,t.emit("prefinish")))}(t,n),0===n.pendingcb&&(n.finished=!0,t.emit("finish"))),r}return o.inherits(p,u),h.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(h.prototype,"buffer",{get:s.deprecate((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(a=Function.prototype[Symbol.hasInstance],Object.defineProperty(p,Symbol.hasInstance,{value:function(e){return!!a.call(this,e)||this===p&&e&&e._writableState instanceof h}})):a=function(e){return e instanceof this},p.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},p.prototype.write=function(t,n,r){var i,o=this._writableState,a=!1,s=!o.objectMode&&(i=t,l.isBuffer(i)||i instanceof c);return s&&!l.isBuffer(t)&&(t=function(e){return l.from(e)}(t)),"function"==typeof n&&(r=n,n=null),s?n="buffer":n||(n=o.defaultEncoding),"function"!=typeof r&&(r=f),o.ended?function(t,n){var r=new Error("write after end");t.emit("error",r),e.nextTick(n,r)}(this,r):(s||function(t,n,r,i){var o=!0,a=!1;return null===r?a=new TypeError("May not write null values to stream"):"string"==typeof r||void 0===r||n.objectMode||(a=new TypeError("Invalid non-string/buffer chunk")),a&&(t.emit("error",a),e.nextTick(i,a),o=!1),o}(this,o,t,r))&&(o.pendingcb++,a=function(e,t,n,r,i,o){if(!n){var a=function(e,t,n){return e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=l.from(t,n)),t}(t,r,i);r!==a&&(n=!0,i="buffer",r=a)}var s=t.objectMode?1:r.length;t.length+=s;var u=t.length-1))throw new TypeError("Unknown encoding: "+e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(p.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),p.prototype._write=function(e,t,n){n(new Error("_write() is not implemented"))},p.prototype._writev=null,p.prototype.end=function(t,n,r){var i=this._writableState;"function"==typeof t?(r=t,t=null,n=null):"function"==typeof n&&(r=n,n=null),null!=t&&this.write(t,n),i.corked&&(i.corked=1,this.uncork()),i.ending||function(t,n,r){n.ending=!0,w(t,n),r&&(n.finished?e.nextTick(r):t.once("finish",r)),n.ended=!0,t.writable=!1}(this,i,r)},Object.defineProperty(p.prototype,"destroyed",{get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),p.prototype.destroy=d.destroy,p.prototype._undestroy=d.undestroy,p.prototype._destroy=function(e,t){this.end(),t(e)},sk}function mk(){if(ck)return lk;ck=1;var e=VS,t=Object.keys||function(e){var t=[];for(var n in e)t.push(n);return t};lk=u;var n=Object.create(ZS);n.inherits=tk;var r=Ak(),i=pk();n.inherits(u,r);for(var o=t(i.prototype),a=0;a>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function i(e){var t=this.lastTotal-this.lastNeed,n=function(e,t){if(128!=(192&t[0]))return e.lastNeed=0,"�";if(e.lastNeed>1&&t.length>1){if(128!=(192&t[1]))return e.lastNeed=1,"�";if(e.lastNeed>2&&t.length>2&&128!=(192&t[2]))return e.lastNeed=2,"�"}}(this,e);return void 0!==n?n:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(e.copy(this.lastChar,t,0,e.length),void(this.lastNeed-=e.length))}function o(e,t){if((e.length-t)%2==0){var n=e.toString("utf16le",t);if(n){var r=n.charCodeAt(n.length-1);if(r>=55296&&r<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],n.slice(0,-1)}return n}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function a(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var n=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,n)}return t}function s(e,t){var n=(e.length-t)%3;return 0===n?e.toString("base64",t):(this.lastNeed=3-n,this.lastTotal=3,1===n?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-n))}function u(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function l(e){return e.toString(this.encoding)}function c(e){return e&&e.length?this.write(e):""}return bk.StringDecoder=n,n.prototype.write=function(e){if(0===e.length)return"";var t,n;if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";n=this.lastNeed,this.lastNeed=0}else n=0;return n=0?(o>0&&(e.lastNeed=o-1),o):--i=0?(o>0&&(e.lastNeed=o-2),o):--i=0?(o>0&&(2===o?o=0:e.lastNeed=o-3),o):0))}(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=n;var i=e.length-(n-this.lastNeed);return e.copy(this.lastChar,0,i),e.toString("utf8",t,i)},n.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length},bk}function Ak(){if(yk)return vk;yk=1;var e=VS;vk=g;var t,n=HS;g.ReadableState=m,kA.EventEmitter;var i=function(e,t){return e.listeners(t).length},o=$S,a=QS.Buffer,s=(void 0!==r?r:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){},u=Object.create(ZS);u.inherits=tk;var l=nk,c=void 0;c=l&&l.debuglog?l.debuglog("stream"):function(){};var d,f=ik(),h=dk;u.inherits(g,o);var p=["error","close","destroy","pause","resume"];function m(e,n){e=e||{};var r=n instanceof(t=t||mk());this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.readableObjectMode);var i=e.highWaterMark,o=e.readableHighWaterMark,a=this.objectMode?16:16384;this.highWaterMark=i||0===i?i:r&&(o||0===o)?o:a,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new f,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(d||(d=wk().StringDecoder),this.decoder=new d(e.encoding),this.encoding=e.encoding)}function g(e){if(t=t||mk(),!(this instanceof g))return new g(e);this._readableState=new m(e,this),this.readable=!0,e&&("function"==typeof e.read&&(this._read=e.read),"function"==typeof e.destroy&&(this._destroy=e.destroy)),o.call(this)}function v(e,t,n,r,i){var o,u=e._readableState;return null===t?(u.reading=!1,function(e,t){if(!t.ended){if(t.decoder){var n=t.decoder.end();n&&n.length&&(t.buffer.push(n),t.length+=t.objectMode?1:n.length)}t.ended=!0,A(e)}}(e,u)):(i||(o=function(e,t){var n,r;return r=t,a.isBuffer(r)||r instanceof s||"string"==typeof t||void 0===t||e.objectMode||(n=new TypeError("Invalid non-string/buffer chunk")),n}(u,t)),o?e.emit("error",o):u.objectMode||t&&t.length>0?("string"==typeof t||u.objectMode||Object.getPrototypeOf(t)===a.prototype||(t=function(e){return a.from(e)}(t)),r?u.endEmitted?e.emit("error",new Error("stream.unshift() after end event")):y(e,u,t,!0):u.ended?e.emit("error",new Error("stream.push() after EOF")):(u.reading=!1,u.decoder&&!n?(t=u.decoder.write(t),u.objectMode||0!==t.length?y(e,u,t,!1):E(e,u)):y(e,u,t,!1))):r||(u.reading=!1)),function(e){return!e.ended&&(e.needReadable||e.lengtht.highWaterMark&&(t.highWaterMark=function(e){return e>=b?e=b:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function A(t){var n=t._readableState;n.needReadable=!1,n.emittedReadable||(c("emitReadable",n.flowing),n.emittedReadable=!0,n.sync?e.nextTick(_,t):_(t))}function _(e){c("emit readable"),e.emit("readable"),C(e)}function E(t,n){n.readingMore||(n.readingMore=!0,e.nextTick(S,t,n))}function S(e,t){for(var n=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length=t.length?(n=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.head.data:t.buffer.concat(t.length),t.buffer.clear()):n=function(e,t,n){var r;return eo.length?o.length:e;if(a===o.length?i+=o:i+=o.slice(0,e),0===(e-=a)){a===o.length?(++r,n.next?t.head=n.next:t.head=t.tail=null):(t.head=n,n.data=o.slice(a));break}++r}return t.length-=r,i}(e,t):function(e,t){var n=a.allocUnsafe(e),r=t.head,i=1;for(r.data.copy(n),e-=r.data.length;r=r.next;){var o=r.data,s=e>o.length?o.length:e;if(o.copy(n,n.length-e,0,s),0===(e-=s)){s===o.length?(++i,r.next?t.head=r.next:t.head=t.tail=null):(t.head=r,r.data=o.slice(s));break}++i}return t.length-=i,n}(e,t),r}(e,t.buffer,t.decoder),n);var n}function R(t){var n=t._readableState;if(n.length>0)throw new Error('"endReadable()" called on non-empty stream');n.endEmitted||(n.ended=!0,e.nextTick(O,n,t))}function O(e,t){e.endEmitted||0!==e.length||(e.endEmitted=!0,t.readable=!1,t.emit("end"))}function T(e,t){for(var n=0,r=e.length;n=t.highWaterMark||t.ended))return c("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?R(this):A(this),null;if(0===(e=w(e,t))&&t.ended)return 0===t.length&&R(this),null;var r,i=t.needReadable;return c("need readable",i),(0===t.length||t.length-e0?x(e,t):null)?(t.needReadable=!0,e=0):t.length-=e,0===t.length&&(t.ended||(t.needReadable=!0),n!==e&&t.ended&&R(this)),null!==r&&this.emit("data",r),r},g.prototype._read=function(e){this.emit("error",new Error("_read() is not implemented"))},g.prototype.pipe=function(t,r){var o=this,a=this._readableState;switch(a.pipesCount){case 0:a.pipes=t;break;case 1:a.pipes=[a.pipes,t];break;default:a.pipes.push(t)}a.pipesCount+=1,c("pipe count=%d opts=%j",a.pipesCount,r);var s=r&&!1===r.end||t===P.stdout||t===P.stderr?y:l;function u(e,n){c("onunpipe"),e===o&&n&&!1===n.hasUnpiped&&(n.hasUnpiped=!0,c("cleanup"),t.removeListener("close",g),t.removeListener("finish",v),t.removeListener("drain",d),t.removeListener("error",m),t.removeListener("unpipe",u),o.removeListener("end",l),o.removeListener("end",y),o.removeListener("data",p),f=!0,!a.awaitDrain||t._writableState&&!t._writableState.needDrain||d())}function l(){c("onend"),t.end()}a.endEmitted?e.nextTick(s):o.once("end",s),t.on("unpipe",u);var d=function(e){return function(){var t=e._readableState;c("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&i(e,"data")&&(t.flowing=!0,C(e))}}(o);t.on("drain",d);var f=!1,h=!1;function p(e){c("ondata"),h=!1,!1!==t.write(e)||h||((1===a.pipesCount&&a.pipes===t||a.pipesCount>1&&-1!==T(a.pipes,t))&&!f&&(c("false write response, pause",a.awaitDrain),a.awaitDrain++,h=!0),o.pause())}function m(e){c("onerror",e),y(),t.removeListener("error",m),0===i(t,"error")&&t.emit("error",e)}function g(){t.removeListener("finish",v),y()}function v(){c("onfinish"),t.removeListener("close",g),y()}function y(){c("unpipe"),o.unpipe(t)}return o.on("data",p),function(e,t,r){if("function"==typeof e.prependListener)return e.prependListener(t,r);e._events&&e._events[t]?n(e._events[t])?e._events[t].unshift(r):e._events[t]=[r,e._events[t]]:e.on(t,r)}(t,"error",m),t.once("close",g),t.once("finish",v),t.emit("pipe",o),a.flowing||(c("pipe resume"),o.resume()),t},g.prototype.unpipe=function(e){var t=this._readableState,n={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,n)),this;if(!e){var r=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var o=0;ot.destroy(e||void 0))),t}ignoreStream(e){if(!e)throw new Error("ObjectMultiplex - name must not be empty");if(this._substreams[e])throw new Error(`ObjectMultiplex - Substream for name "${e}" already exists`);this._substreams[e]=Xk}_read(){}_write(e,t,n){const{name:r,data:i}=e;if(!r)return console.warn(`ObjectMultiplex - malformed chunk without name "${e}"`),n();const o=this._substreams[r];return o?(o!==Xk&&o.push(i),n()):(console.warn(`ObjectMultiplex - orphaned data for stream "${r}"`),n())}}FS.ObjectMultiplex=Jk;var eM=FS.ObjectMultiplex;const tM=e=>null!==e&&"object"==typeof e&&"function"==typeof e.pipe;tM.writable=e=>tM(e)&&!1!==e.writable&&"function"==typeof e._write&&"object"==typeof e._writableState,tM.readable=e=>tM(e)&&!1!==e.readable&&"function"==typeof e._read&&"object"==typeof e._readableState,tM.duplex=e=>tM.writable(e)&&tM.readable(e),tM.transform=e=>tM.duplex(e)&&"function"==typeof e._transform;var nM=tM,rM={},iM={};Object.defineProperty(iM,"__esModule",{value:!0});const oM=Lk;iM.default=function(e){if(!e||!e.engine)throw new Error("Missing engine parameter!");const{engine:t}=e,n=new oM.Duplex({objectMode:!0,read:()=>{},write:function(e,r,i){t.handle(e,((e,t)=>{n.push(t)})),i()}});return t.on&&t.on("notification",(e=>{n.push(e)})),n};var aM={},sM={};Object.defineProperty(sM,"__esModule",{value:!0});const uM=kA;function lM(e,t,n){try{Reflect.apply(e,t,n)}catch(e){setTimeout((()=>{throw e}))}}class cM extends uM.EventEmitter{emit(e,...t){let n="error"===e;const r=this._events;if(void 0!==r)n=n&&void 0===r.error;else if(!n)return!1;if(n){let e;if(t.length>0&&([e]=t),e instanceof Error)throw e;const n=new Error("Unhandled error."+(e?` (${e.message})`:""));throw n.context=e,n}const i=r[e];if(void 0===i)return!1;if("function"==typeof i)lM(i,this,t);else{const e=i.length,n=function(e){const t=e.length,n=new Array(t);for(let r=0;r{},write:function(n,o,a){let s=null;try{n.id?function(e){const n=t[e.id];n?(delete t[e.id],Object.assign(n.res,e),setTimeout(n.end)):console.warn(`StreamMiddleware - Unknown response id "${e.id}"`)}(n):function(n){(null==e?void 0:e.retryOnMessage)&&n.method===e.retryOnMessage&&Object.values(t).forEach((({req:e,retryCount:n=0})=>{if(e.id){if(n>=3)throw new Error(`StreamMiddleware - Retry limit exceeded for request id "${e.id}"`);t[e.id].retryCount=n+1,i(e)}})),r.emit("notification",n)}(n)}catch(e){s=e}a(s)}}),r=new fM.default;return{events:r,middleware:(e,n,r,o)=>{t[e.id]={req:e,res:n,next:r,end:o},i(e)},stream:n};function i(e){n.push(e)}};var pM=r&&r.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(rM,"__esModule",{value:!0}),rM.createStreamMiddleware=rM.createEngineStream=void 0;const mM=pM(iM);rM.createEngineStream=mM.default;const gM=pM(aM);rM.createStreamMiddleware=gM.default;var vM=Uk,yM=Wk,bM=o(Object.freeze({__proto__:null,default:{}})),wM=function(){},AM=/^v?\.0/.test(P.version),_M=function(e){return"function"==typeof e},EM=function(e,t,n,r){r=vM(r);var i=!1;e.on("close",(function(){i=!0})),yM(e,{readable:t,writable:n},(function(e){if(e)return r(e);i=!0,r()}));var o=!1;return function(t){if(!i&&!o)return o=!0,function(e){return!!AM&&!!bM&&(e instanceof(bM.ReadStream||wM)||e instanceof(bM.WriteStream||wM))&&_M(e.close)}(e)?e.close(wM):function(e){return e.setHeader&&_M(e.abort)}(e)?e.abort():_M(e.destroy)?e.destroy():void r(t||new Error("stream was destroyed"))}},SM=function(e){e()},kM=function(e,t){return e.pipe(t)},MM=function(){var e,t=Array.prototype.slice.call(arguments),n=_M(t[t.length-1]||wM)&&t.pop()||wM;if(Array.isArray(t[0])&&(t=t[0]),t.length<2)throw new Error("pump requires two streams per minimum");var r=t.map((function(i,o){var a=o0,(function(t){e||(e=t),t&&r.forEach(SM),a||(r.forEach(SM),n(e))}))}));return t.reduce(kM)},CM=r&&r.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(zS,"__esModule",{value:!0}),zS.StreamProvider=zS.AbstractStreamProvider=void 0;const xM=CM(eM),RM=nM,OM=rM,TM=CM(MM),PM=CM(A_),LM=E_,IM=gA;class NM extends IM.BaseProvider{constructor(e,{jsonRpcStreamName:t,logger:n,maxEventListeners:r,rpcMiddleware:i}){if(super({logger:n,maxEventListeners:r,rpcMiddleware:i}),!RM.duplex(e))throw new Error(PM.default.errors.invalidDuplexStream());this._handleStreamDisconnect=this._handleStreamDisconnect.bind(this);const o=new xM.default;TM.default(e,o,e,this._handleStreamDisconnect.bind(this,"MetaMask")),this._jsonRpcConnection=OM.createStreamMiddleware({retryOnMessage:"METAMASK_EXTENSION_CONNECT_CAN_RETRY"}),TM.default(this._jsonRpcConnection.stream,o.createStream(t),this._jsonRpcConnection.stream,this._handleStreamDisconnect.bind(this,"MetaMask RpcProvider")),this._rpcEngine.push(this._jsonRpcConnection.middleware),this._jsonRpcConnection.events.on("notification",(t=>{const{method:n,params:r}=t;"metamask_accountsChanged"===n?this._handleAccountsChanged(r):"metamask_unlockStateChanged"===n?this._handleUnlockStateChanged(r):"metamask_chainChanged"===n?this._handleChainChanged(r):LM.EMITTED_NOTIFICATIONS.includes(n)?this.emit("message",{type:n,data:r}):"METAMASK_STREAM_FAILURE"===n&&e.destroy(new Error(PM.default.errors.permanentlyDisconnected()))}))}async _initializeStateAsync(){let e;try{e=await this.request({method:"metamask_getProviderState"})}catch(e){this._log.error("MetaMask: Failed to get initial state. Please report this bug.",e)}this._initializeState(e)}_handleStreamDisconnect(e,t){let n=`MetaMask: Lost connection to "${e}".`;(null==t?void 0:t.stack)&&(n+=`\n${t.stack}`),this._log.warn(n),this.listenerCount("error")>0&&this.emit("error",n),this._handleDisconnect(!1,t?t.message:void 0)}_handleChainChanged({chainId:e,networkVersion:t}={}){LM.isValidChainId(e)&&LM.isValidNetworkVersion(t)?"loading"===t?this._handleDisconnect(!0):super._handleChainChanged({chainId:e}):this._log.error(PM.default.errors.invalidNetworkParams(),{chainId:e,networkVersion:t})}}zS.AbstractStreamProvider=NM,zS.StreamProvider=class extends NM{async initialize(){return this._initializeStateAsync()}},function(e){var t=r&&r.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0}),e.MetaMaskInpageProvider=e.MetaMaskInpageProviderStreamName=void 0;const n=RA,i=LS,o=t(A_),a=E_,s=zS;e.MetaMaskInpageProviderStreamName="metamask-provider";class u extends s.AbstractStreamProvider{constructor(t,{jsonRpcStreamName:n=e.MetaMaskInpageProviderStreamName,logger:r=console,maxEventListeners:o,shouldSendMetadata:s}={}){if(super(t,{jsonRpcStreamName:n,logger:r,maxEventListeners:o,rpcMiddleware:a.getDefaultExternalMiddleware(r)}),this._sentWarnings={enable:!1,experimentalMethods:!1,send:!1,events:{close:!1,data:!1,networkChanged:!1,notification:!1}},this._initializeStateAsync(),this.networkVersion=null,this.isMetaMask=!0,this._sendSync=this._sendSync.bind(this),this.enable=this.enable.bind(this),this.send=this.send.bind(this),this.sendAsync=this.sendAsync.bind(this),this._warnOfDeprecation=this._warnOfDeprecation.bind(this),this._metamask=this._getExperimentalApi(),this._jsonRpcConnection.events.on("notification",(e=>{const{method:t}=e;a.EMITTED_NOTIFICATIONS.includes(t)&&(this.emit("data",e),this.emit("notification",e.params.result))})),s)if("complete"===document.readyState)i.sendSiteMetadata(this._rpcEngine,this._log);else{const e=()=>{i.sendSiteMetadata(this._rpcEngine,this._log),window.removeEventListener("DOMContentLoaded",e)};window.addEventListener("DOMContentLoaded",e)}}sendAsync(e,t){this._rpcRequest(e,t)}addListener(e,t){return this._warnOfDeprecation(e),super.addListener(e,t)}on(e,t){return this._warnOfDeprecation(e),super.on(e,t)}once(e,t){return this._warnOfDeprecation(e),super.once(e,t)}prependListener(e,t){return this._warnOfDeprecation(e),super.prependListener(e,t)}prependOnceListener(e,t){return this._warnOfDeprecation(e),super.prependOnceListener(e,t)}_handleDisconnect(e,t){super._handleDisconnect(e,t),this.networkVersion&&!e&&(this.networkVersion=null)}_warnOfDeprecation(e){var t;!1===(null===(t=this._sentWarnings)||void 0===t?void 0:t.events[e])&&(this._log.warn(o.default.warnings.events[e]),this._sentWarnings.events[e]=!0)}enable(){return this._sentWarnings.enable||(this._log.warn(o.default.warnings.enableDeprecation),this._sentWarnings.enable=!0),new Promise(((e,t)=>{try{this._rpcRequest({method:"eth_requestAccounts",params:[]},a.getRpcPromiseCallback(e,t))}catch(e){t(e)}}))}send(e,t){return this._sentWarnings.send||(this._log.warn(o.default.warnings.sendDeprecation),this._sentWarnings.send=!0),"string"!=typeof e||t&&!Array.isArray(t)?e&&"object"==typeof e&&"function"==typeof t?this._rpcRequest(e,t):this._sendSync(e):new Promise(((n,r)=>{try{this._rpcRequest({method:e,params:t},a.getRpcPromiseCallback(n,r,!1))}catch(e){r(e)}}))}_sendSync(e){let t;switch(e.method){case"eth_accounts":t=this.selectedAddress?[this.selectedAddress]:[];break;case"eth_coinbase":t=this.selectedAddress||null;break;case"eth_uninstallFilter":this._rpcRequest(e,a.NOOP),t=!0;break;case"net_version":t=this.networkVersion||null;break;default:throw new Error(o.default.errors.unsupportedSync(e.method))}return{id:e.id,jsonrpc:e.jsonrpc,result:t}}_getExperimentalApi(){return new Proxy({isUnlocked:async()=>(this._state.initialized||await new Promise((e=>{this.on("_initialized",(()=>e()))})),this._state.isUnlocked),requestBatch:async e=>{if(!Array.isArray(e))throw n.ethErrors.rpc.invalidRequest({message:"Batch requests must be made with an array of request objects.",data:e});return new Promise(((t,n)=>{this._rpcRequest(e,a.getRpcPromiseCallback(t,n))}))}},{get:(e,t,...n)=>(this._sentWarnings.experimentalMethods||(this._log.warn(o.default.warnings.experimentalMethods),this._sentWarnings.experimentalMethods=!0),Reflect.get(e,t,...n))})}_handleChainChanged({chainId:e,networkVersion:t}={}){super._handleChainChanged({chainId:e,networkVersion:t}),this._state.isConnected&&t!==this.networkVersion&&(this.networkVersion=t,this._state.initialized&&this.emit("networkChanged",this.networkVersion))}}e.MetaMaskInpageProvider=u}(PS);var DM={CHROME_ID:"nkbihfbeogaeaoehlefnkodbefgpgknn",FIREFOX_ID:"webextension@metamask.io"},BM=r&&r.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(U_,"__esModule",{value:!0}),U_.createExternalExtensionProvider=void 0;const jM=BM(z_),UM=TS,zM=PS,FM=zS,qM=E_,WM=BM(DM),VM=UM.detect();U_.createExternalExtensionProvider=function(){let e;try{const t=function(){switch(null==VM?void 0:VM.name){case"chrome":default:return WM.default.CHROME_ID;case"firefox":return WM.default.FIREFOX_ID}}(),n=chrome.runtime.connect(t),r=new jM.default(n);e=new FM.StreamProvider(r,{jsonRpcStreamName:zM.MetaMaskInpageProviderStreamName,logger:console,rpcMiddleware:qM.getDefaultExternalMiddleware(console)}),e.initialize()}catch(e){throw console.dir("MetaMask connect error.",e),e}return e};var KM={},HM={};Object.defineProperty(HM,"__esModule",{value:!0}),HM.shimWeb3=void 0,HM.shimWeb3=function(e,t=console){let n=!1,r=!1;if(!window.web3){const i="__isMetaMaskShim__";let o={currentProvider:e};Object.defineProperty(o,i,{value:!0,enumerable:!0,configurable:!1,writable:!1}),o=new Proxy(o,{get:(o,a,...s)=>("currentProvider"!==a||n?"currentProvider"===a||a===i||r||(r=!0,t.error("MetaMask no longer injects web3. For details, see: https://docs.metamask.io/guide/provider-migration.html#replacing-window-web3"),e.request({method:"metamask_logWeb3ShimUsage"}).catch((e=>{t.debug("MetaMask: Failed to log web3 shim usage.",e)}))):(n=!0,t.warn("You are accessing the MetaMask window.web3.currentProvider shim. This property is deprecated; use window.ethereum instead. For details, see: https://docs.metamask.io/guide/provider-migration.html#replacing-window-web3")),Reflect.get(o,a,...s)),set:(...e)=>(t.warn("You are accessing the MetaMask window.web3 shim. This object is deprecated; use window.ethereum instead. For details, see: https://docs.metamask.io/guide/provider-migration.html#replacing-window-web3"),Reflect.set(...e))}),Object.defineProperty(window,"web3",{value:o,enumerable:!1,configurable:!0,writable:!0})}},Object.defineProperty(KM,"__esModule",{value:!0}),KM.setGlobalProvider=KM.initializeProvider=void 0;const $M=PS,YM=HM;function GM(e){window.ethereum=e,window.dispatchEvent(new Event("ethereum#initialized"))}KM.initializeProvider=function({connectionStream:e,jsonRpcStreamName:t,logger:n=console,maxEventListeners:r=100,shouldSendMetadata:i=!0,shouldSetOnWindow:o=!0,shouldShimWeb3:a=!1}){const s=new $M.MetaMaskInpageProvider(e,{jsonRpcStreamName:t,logger:n,maxEventListeners:r,shouldSendMetadata:i}),u=new Proxy(s,{deleteProperty:()=>!0});return o&&GM(u),a&&YM.shimWeb3(u,n),u},KM.setGlobalProvider=GM,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.StreamProvider=e.shimWeb3=e.setGlobalProvider=e.MetaMaskInpageProvider=e.MetaMaskInpageProviderStreamName=e.initializeProvider=e.createExternalExtensionProvider=e.BaseProvider=void 0;const t=gA;Object.defineProperty(e,"BaseProvider",{enumerable:!0,get:function(){return t.BaseProvider}});const n=U_;Object.defineProperty(e,"createExternalExtensionProvider",{enumerable:!0,get:function(){return n.createExternalExtensionProvider}});const r=KM;Object.defineProperty(e,"initializeProvider",{enumerable:!0,get:function(){return r.initializeProvider}}),Object.defineProperty(e,"setGlobalProvider",{enumerable:!0,get:function(){return r.setGlobalProvider}});const i=PS;Object.defineProperty(e,"MetaMaskInpageProvider",{enumerable:!0,get:function(){return i.MetaMaskInpageProvider}}),Object.defineProperty(e,"MetaMaskInpageProviderStreamName",{enumerable:!0,get:function(){return i.MetaMaskInpageProviderStreamName}});const o=HM;Object.defineProperty(e,"shimWeb3",{enumerable:!0,get:function(){return o.shimWeb3}});const a=zS;Object.defineProperty(e,"StreamProvider",{enumerable:!0,get:function(){return a.StreamProvider}})}(mA);class QM extends mA.MetaMaskInpageProvider{constructor({connectionStream:e,shouldSendMetadata:t,debug:n=!1,autoRequestAccounts:r=!1}){super(e,{logger:console,maxEventListeners:100,shouldSendMetadata:t}),this.state={debug:!1,autoRequestAccounts:!1,providerStateRequested:!1},n&&console.debug(`SDKProvider::constructor debug=${n} autoRequestAccounts=${r}`),this.state.autoRequestAccounts=r,this.state.debug=n}forceInitializeState(){return fA(this,void 0,void 0,(function*(){return this.state.debug&&console.debug(`SDKProvider::forceInitializeState() autoRequestAccounts=${this.state.autoRequestAccounts}`),this._initializeStateAsync()}))}_setConnected(){this.state.debug&&console.debug("SDKProvider::_setConnected()"),this._state.isConnected=!0}getState(){return this._state}getSDKProviderState(){return this.state}setSDKProviderState(e){this.state=Object.assign(Object.assign({},this.state),e)}handleDisconnect({terminate:e=!1}){!function({terminate:e=!1,instance:t}){const{state:n}=t;t.isConnected()?(n.debug&&console.debug(`SDKProvider::handleDisconnect() cleaning up provider state terminate=${e}`,t),e&&(t.chainId=null,t._state.accounts=null,t.selectedAddress=null,t._state.isUnlocked=!1,t._state.isPermanentlyDisconnected=!0,t._state.initialized=!1),t._handleAccountsChanged([]),t._state.isConnected=!1,t.emit("disconnect",RA.ethErrors.provider.disconnected()),n.providerStateRequested=!1):n.debug&&console.debug("SDKProvider::handleDisconnect() not connected --- interrup disconnection")}({terminate:e,instance:this})}_initializeStateAsync(){return fA(this,void 0,void 0,(function*(){return function(e){var t;return fA(this,void 0,void 0,(function*(){void 0===e.state&&(e.state={debug:!1,autoRequestAccounts:!1,providerStateRequested:!1});const{state:n}=e;if(n.debug&&console.debug("SDKProvider::_initializeStateAsync()"),n.providerStateRequested)n.debug&&console.debug("SDKProvider::_initializeStateAsync() initialization already in progress");else{let r;n.providerStateRequested=!0;try{r=yield e.request({method:"metamask_getProviderState"})}catch(t){return e._log.error("MetaMask: Failed to get initial state. Please report this bug.",t),void(n.providerStateRequested=!1)}if(n.debug&&console.debug(`SDKProvider::_initializeStateAsync state selectedAddress=${e.selectedAddress} `,r),0===(null===(t=null==r?void 0:r.accounts)||void 0===t?void 0:t.length))if(n.debug&&console.debug("SDKProvider::_initializeStateAsync initial state doesn't contain accounts"),e.selectedAddress)n.debug&&console.debug("SDKProvider::_initializeStateAsync using instance.selectedAddress instead"),r.accounts=[e.selectedAddress];else{n.debug&&console.debug("SDKProvider::_initializeStateAsync Fetch accounts remotely.");const t=yield e.request({method:"eth_requestAccounts",params:[]});r.accounts=t}e._initializeState(r),n.providerStateRequested=!1}}))}(this)}))}_initializeState(e){return function(e,t,n){const{state:r}=e;return r.debug&&console.debug("SDKProvider::_initializeState() set state._initialized to false"),e._state.initialized=!1,t(n)}(this,super._initializeState.bind(this),e)}_handleChainChanged({chainId:e,networkVersion:t}={}){!function({instance:e,chainId:t,networkVersion:n,superHandleChainChanged:r}){const{state:i}=e;i.debug&&console.debug(`SDKProvider::_handleChainChanged chainId=${t} networkVersion=${n}`);let o=n;n||(console.info("forced network version to prevent provider error"),o="1"),e._state.isConnected=!0,e.emit("connect",{chainId:t}),r({chainId:t,networkVersion:o})}({instance:this,chainId:e,networkVersion:t,superHandleChainChanged:super._handleChainChanged.bind(this)})}}var ZM={exports:{}};!function(e){!function(t){var n=Object.hasOwnProperty,r=Array.isArray?Array.isArray:function(e){return"[object Array]"===Object.prototype.toString.call(e)},i="object"==typeof P&&!0,o="function"==typeof Symbol,a="object"==typeof Reflect,s="function"==typeof setImmediate?setImmediate:setTimeout,u=o?a&&"function"==typeof Reflect.ownKeys?Reflect.ownKeys:function(e){var t=Object.getOwnPropertyNames(e);return t.push.apply(t,Object.getOwnPropertySymbols(e)),t}:Object.keys;function l(){this._events={},this._conf&&c.call(this,this._conf)}function c(e){e&&(this._conf=e,e.delimiter&&(this.delimiter=e.delimiter),e.maxListeners!==t&&(this._maxListeners=e.maxListeners),e.wildcard&&(this.wildcard=e.wildcard),e.newListener&&(this._newListener=e.newListener),e.removeListener&&(this._removeListener=e.removeListener),e.verboseMemoryLeak&&(this.verboseMemoryLeak=e.verboseMemoryLeak),e.ignoreErrors&&(this.ignoreErrors=e.ignoreErrors),this.wildcard&&(this.listenerTree={}))}function d(e,t){var n="(node) warning: possible EventEmitter memory leak detected. "+e+" listeners added. Use emitter.setMaxListeners() to increase limit.";if(this.verboseMemoryLeak&&(n+=" Event name: "+t+"."),void 0!==P&&P.emitWarning){var r=new Error(n);r.name="MaxListenersExceededWarning",r.emitter=this,r.count=e,P.emitWarning(r)}else console.error(n),console.trace&&console.trace()}var f=function(e,t,n){var r=arguments.length;switch(r){case 0:return[];case 1:return[e];case 2:return[e,t];case 3:return[e,t,n];default:for(var i=new Array(r);r--;)i[r]=arguments[r];return i}};function h(e,n){for(var r={},i=e.length,o=n?n.length:0,a=0;a0;)if(o===e[a])return r;i(t)}}Object.assign(p.prototype,{subscribe:function(e,t,n){var r=this,i=this._target,o=this._emitter,a=this._listeners,s=function(){var r=f.apply(null,arguments),a={data:r,name:t,original:e};n?!1!==n.call(i,a)&&o.emit.apply(o,[a.name].concat(r)):o.emit.apply(o,[t].concat(r))};if(a[e])throw Error("Event '"+e+"' is already listening");this._listenersCount++,o._newListener&&o._removeListener&&!r._onNewListener?(this._onNewListener=function(n){n===t&&null===a[e]&&(a[e]=s,r._on.call(i,e,s))},o.on("newListener",this._onNewListener),this._onRemoveListener=function(n){n===t&&!o.hasListeners(n)&&a[e]&&(a[e]=null,r._off.call(i,e,s))},a[e]=null,o.on("removeListener",this._onRemoveListener)):(a[e]=s,r._on.call(i,e,s))},unsubscribe:function(e){var t,n,r,i=this,o=this._listeners,a=this._emitter,s=this._off,l=this._target;if(e&&"string"!=typeof e)throw TypeError("event must be a string");function c(){i._onNewListener&&(a.off("newListener",i._onNewListener),a.off("removeListener",i._onRemoveListener),i._onNewListener=null,i._onRemoveListener=null);var e=_.call(a,i);a._observers.splice(e,1)}if(e){if(!(t=o[e]))return;s.call(l,e,t),delete o[e],--this._listenersCount||c()}else{for(r=(n=u(o)).length;r-- >0;)e=n[r],s.call(l,e,o[e]);this._listeners={},this._listenersCount=0,c()}}});var y=v(["function"]),w=v(["object","function"]);function A(e,t,n){var r,i,o,a=0,s=new e((function(u,l,c){function d(){i&&(i=null),a&&(clearTimeout(a),a=0)}n=m(n,{timeout:0,overload:!1},{timeout:function(e,t){return("number"!=typeof(e*=1)||e<0||!Number.isFinite(e))&&t("timeout must be a positive number"),e}}),r=!n.overload&&"function"==typeof e.prototype.cancel&&"function"==typeof c;var f=function(e){d(),u(e)},h=function(e){d(),l(e)};r?t(f,h,c):(i=[function(e){h(e||Error("canceled"))}],t(f,h,(function(e){if(o)throw Error("Unable to subscribe on cancel event asynchronously");if("function"!=typeof e)throw TypeError("onCancel callback must be a function");i.push(e)})),o=!0),n.timeout>0&&(a=setTimeout((function(){var e=Error("timeout");e.code="ETIMEDOUT",a=0,s.cancel(e),l(e)}),n.timeout))}));return r||(s.cancel=function(e){if(i){for(var t=i.length,n=1;n0;)"_listeners"!==(h=y[s])&&(b=E(e,t,n[h],r+1,i))&&(w?w.push.apply(w,b):w=b);return w}if("**"===A){for((v=r+1===i||r+2===i&&"*"===_)&&n._listeners&&(w=E(e,t,n,i,i)),s=(y=u(n)).length;s-- >0;)"_listeners"!==(h=y[s])&&("*"===h||"**"===h?(n[h]._listeners&&!v&&(b=E(e,t,n[h],i,i))&&(w?w.push.apply(w,b):w=b),b=E(e,t,n[h],r,i)):b=E(e,t,n[h],h===_?r+2:r,i),b&&(w?w.push.apply(w,b):w=b));return w}n[A]&&(w=E(e,t,n[A],r+1,i))}if((p=n["*"])&&E(e,t,p,r+1,i),m=n["**"])if(r0;)"_listeners"!==(h=y[s])&&(h===_?E(e,t,m[h],r+2,i):h===A?E(e,t,m[h],r+1,i):((g={})[h]=m[h],E(e,t,{"**":g},r+1,i)));else m._listeners?E(e,t,m,i,i):m["*"]&&m["*"]._listeners&&E(e,t,m["*"],i,i);return w}function S(e,t,n){var r,i,o=0,a=0,s=this.delimiter,u=s.length;if("string"==typeof e)if(-1!==(r=e.indexOf(s))){i=new Array(5);do{i[o++]=e.slice(a,r),a=r+u}while(-1!==(r=e.indexOf(s,a)));i[o++]=e.slice(a)}else i=[e],o=1;else i=e,o=e.length;if(o>1)for(r=0;r+10&&c._listeners.length>this._maxListeners&&(c._listeners.warned=!0,d.call(this,c._listeners.length,l))):c._listeners=t,!0;return!0}function k(e,t,n,r){for(var i,o,a,s,l=u(e),c=l.length,d=e._listeners;c-- >0;)i=e[o=l[c]],a="_listeners"===o?n:n?n.concat(o):[o],s=r||"symbol"==typeof o,d&&t.push(s?a:a.join(this.delimiter)),"object"==typeof i&&k.call(this,i,t,a,s);return t}function M(e){for(var t,n,r,i=u(e),o=i.length;o-- >0;)(t=e[n=i[o]])&&(r=!0,"_listeners"===n||M(t)||delete e[n]);return r}function C(e,t,n){this.emitter=e,this.event=t,this.listener=n}function x(e,n,r){if(!0===r)a=!0;else if(!1===r)o=!0;else{if(!r||"object"!=typeof r)throw TypeError("options should be an object or true");var o=r.async,a=r.promisify,u=r.nextTick,l=r.objectify}if(o||u||a){var c=n,d=n._origin||n;if(u&&!i)throw Error("process.nextTick is not supported");a===t&&(a="AsyncFunction"===n.constructor.name),n=function(){var e=arguments,t=this,n=this.event;return a?u?Promise.resolve():new Promise((function(e){s(e)})).then((function(){return t.event=n,c.apply(t,e)})):(u?b:s)((function(){t.event=n,c.apply(t,e)}))},n._async=!0,n._origin=d}return[n,l?new C(this,e,n):this]}function R(e){this._events={},this._newListener=!1,this._removeListener=!1,this.verboseMemoryLeak=!1,c.call(this,e)}C.prototype.off=function(){return this.emitter.off(this.event,this.listener),this},R.EventEmitter2=R,R.prototype.listenTo=function(e,n,i){if("object"!=typeof e)throw TypeError("target musts be an object");var o=this;function a(t){if("object"!=typeof t)throw TypeError("events must be an object");var n,r=i.reducers,a=_.call(o,e);n=-1===a?new p(o,e,i):o._observers[a];for(var s,l=u(t),c=l.length,d="function"==typeof r,f=0;f0;)r=n[i],e&&r._target!==e||(r.unsubscribe(t),o=!0);return o},R.prototype.delimiter=".",R.prototype.setMaxListeners=function(e){e!==t&&(this._maxListeners=e,this._conf||(this._conf={}),this._conf.maxListeners=e)},R.prototype.getMaxListeners=function(){return this._maxListeners},R.prototype.event="",R.prototype.once=function(e,t,n){return this._once(e,t,!1,n)},R.prototype.prependOnceListener=function(e,t,n){return this._once(e,t,!0,n)},R.prototype._once=function(e,t,n,r){return this._many(e,1,t,n,r)},R.prototype.many=function(e,t,n,r){return this._many(e,t,n,!1,r)},R.prototype.prependMany=function(e,t,n,r){return this._many(e,t,n,!0,r)},R.prototype._many=function(e,t,n,r,i){var o=this;if("function"!=typeof n)throw new Error("many only accepts instances of Function");function a(){return 0==--t&&o.off(e,a),n.apply(this,arguments)}return a._origin=n,this._on(e,a,r,i)},R.prototype.emit=function(){if(!this._events&&!this._all)return!1;this._events||l.call(this);var e,t,n,r,i,a,s=arguments[0],u=this.wildcard;if("newListener"===s&&!this._newListener&&!this._events.newListener)return!1;if(u&&(e=s,"newListener"!==s&&"removeListener"!==s&&"object"==typeof s)){if(n=s.length,o)for(r=0;r3)for(t=new Array(d-1),i=1;i3)for(n=new Array(f-1),a=1;a0&&this._events[e].length>this._maxListeners&&(this._events[e].warned=!0,d.call(this,this._events[e].length,e))):this._events[e]=n,a)},R.prototype.off=function(e,t){if("function"!=typeof t)throw new Error("removeListener only takes instances of Function");var n,i=[];if(this.wildcard){var o="string"==typeof e?e.split(this.delimiter):e.slice();if(!(i=E.call(this,null,o,this.listenerTree,0)))return this}else{if(!this._events[e])return this;n=this._events[e],i.push({_listeners:n})}for(var a=0;a0){for(n=0,r=(t=this._all).length;n0;)"function"==typeof(r=s[n[o]])?i.push(r):i.push.apply(i,r);return i}if(this.wildcard){if(!(a=this.listenerTree))return[];var l=[],c="string"==typeof e?e.split(this.delimiter):e.slice();return E.call(this,l,c,a,0),l}return s&&(r=s[e])?"function"==typeof r?[r]:r:[]},R.prototype.eventNames=function(e){var t=this._events;return this.wildcard?k.call(this,this.listenerTree,[],null,e):t?u(t):[]},R.prototype.listenerCount=function(e){return this.listeners(e).length},R.prototype.hasListeners=function(e){if(this.wildcard){var n=[],r="string"==typeof e?e.split(this.delimiter):e.slice();return E.call(this,n,r,this.listenerTree,0),n.length>0}var i=this._events,o=this._all;return!!(o&&o.length||i&&(e===t?u(i).length:i[e]))},R.prototype.listenersAny=function(){return this._all?this._all:[]},R.prototype.waitFor=function(e,n){var r=this,i=typeof n;return"number"===i?n={timeout:n}:"function"===i&&(n={filter:n}),A((n=m(n,{timeout:0,filter:t,handleError:!1,Promise,overload:!1},{filter:y,Promise:g})).Promise,(function(t,i,o){function a(){var o=n.filter;if(!o||o.apply(r,arguments))if(r.off(e,a),n.handleError){var s=arguments[0];s?i(s):t(f.apply(null,arguments).slice(1))}else t(f.apply(null,arguments))}o((function(){r.off(e,a)})),r._on(e,a,!1)}),{timeout:n.timeout,overload:n.overload})};var O=R.prototype;Object.defineProperties(R,{defaultMaxListeners:{get:function(){return O._maxListeners},set:function(e){if("number"!=typeof e||e<0||Number.isNaN(e))throw TypeError("n must be a non-negative number");O._maxListeners=e},enumerable:!0},once:{value:function(e,t,n){return A((n=m(n,{Promise,timeout:0,overload:!1},{Promise:g})).Promise,(function(n,r,i){var o;if("function"==typeof e.addEventListener)return o=function(){n(f.apply(null,arguments))},i((function(){e.removeEventListener(t,o)})),void e.addEventListener(t,o,{once:!0});var a,s=function(){a&&e.removeListener("error",a),n(f.apply(null,arguments))};"error"!==t&&(a=function(n){e.removeListener(t,s),r(n)},e.once("error",a)),i((function(){a&&e.removeListener("error",a),e.removeListener(t,s)})),e.once(t,s)}),{timeout:n.timeout,overload:n.overload})},writable:!0,configurable:!0}}),Object.defineProperties(O,{_maxListeners:{value:10,writable:!0,configurable:!0},_observers:{value:null,writable:!0,configurable:!0}}),"function"==typeof t&&t.amd?t((function(){return R})):e.exports=R}()}(ZM);var XM=i(ZM.exports);function JM(e){return JM="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},JM(e)}function eC(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function tC(e){var t=function(e,t){if("object"!==JM(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==JM(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===JM(t)?t:String(t)}function nC(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&void 0!==arguments[1]?arguments[1]:{};eC(this,e),this.init(t,n)}return rC(e,[{key:"init",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.prefix=t.prefix||"i18next:",this.logger=e||pC,this.options=t,this.debug=t.debug}},{key:"setDebug",value:function(e){this.debug=e}},{key:"log",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n1?t-1:0),r=1;r-1?e.replace(/###/g,"."):e}function i(){return!e||"string"==typeof e}for(var o="string"!=typeof t?[].concat(t):t.split(".");o.length>1;){if(i())return{};var a=r(o.shift());!e[a]&&n&&(e[a]=new n),e=Object.prototype.hasOwnProperty.call(e,a)?e[a]:{}}return i()?{}:{obj:e,k:r(o.shift())}}function AC(e,t,n){var r=wC(e,t,Object);r.obj[r.k]=n}function _C(e,t){var n=wC(e,t),r=n.obj,i=n.k;if(r)return r[i]}function EC(e,t,n){for(var r in t)"__proto__"!==r&&"constructor"!==r&&(r in e?"string"==typeof e[r]||e[r]instanceof String||"string"==typeof t[r]||t[r]instanceof String?n&&(e[r]=t[r]):EC(e[r],t[r],n):e[r]=t[r]);return e}function SC(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var kC={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};function MC(e){return"string"==typeof e?e.replace(/[&<>"'\/]/g,(function(e){return kC[e]})):e}var CC="undefined"!=typeof window&&window.navigator&&void 0===window.navigator.userAgentData&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1,xC=[" ",",","?","!",";"];function RC(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".";if(e){if(e[t])return e[t];for(var r=t.split(n),i=e,o=0;oo+a;)a++,u=i[s=r.slice(o,o+a).join(n)];if(void 0===u)return;if(null===u)return null;if(t.endsWith(s)){if("string"==typeof u)return u;if(s&&"string"==typeof u[s])return u[s]}var l=r.slice(o+a).join(n);return l?RC(u,l,n):void 0}i=i[r[o]]}return i}}function OC(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function TC(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{ns:["translation"],defaultNS:"translation"};return eC(this,n),r=t.call(this),CC&&vC.call(iC(r)),r.data=e||{},r.options=i,void 0===r.options.keySeparator&&(r.options.keySeparator="."),void 0===r.options.ignoreJSONStructure&&(r.options.ignoreJSONStructure=!0),r}return rC(n,[{key:"addNamespaces",value:function(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}},{key:"removeNamespaces",value:function(e){var t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}},{key:"getResource",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=void 0!==r.keySeparator?r.keySeparator:this.options.keySeparator,o=void 0!==r.ignoreJSONStructure?r.ignoreJSONStructure:this.options.ignoreJSONStructure,a=[e,t];n&&"string"!=typeof n&&(a=a.concat(n)),n&&"string"==typeof n&&(a=a.concat(i?n.split(i):n)),e.indexOf(".")>-1&&(a=e.split("."));var s=_C(this.data,a);return s||!o||"string"!=typeof n?s:RC(this.data&&this.data[e]&&this.data[e][t],n,i)}},{key:"addResource",value:function(e,t,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{silent:!1},o=void 0!==i.keySeparator?i.keySeparator:this.options.keySeparator,a=[e,t];n&&(a=a.concat(o?n.split(o):n)),e.indexOf(".")>-1&&(r=t,t=(a=e.split("."))[1]),this.addNamespaces(t),AC(this.data,a,r),i.silent||this.emit("added",e,t,n,r)}},{key:"addResources",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{silent:!1};for(var i in n)"string"!=typeof n[i]&&"[object Array]"!==Object.prototype.toString.apply(n[i])||this.addResource(e,t,i,n[i],{silent:!0});r.silent||this.emit("added",e,t,n)}},{key:"addResourceBundle",value:function(e,t,n,r,i){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{silent:!1},a=[e,t];e.indexOf(".")>-1&&(r=n,n=t,t=(a=e.split("."))[1]),this.addNamespaces(t);var s=_C(this.data,a)||{};r?EC(s,n,i):s=TC(TC({},s),n),AC(this.data,a,s),o.silent||this.emit("added",e,t,n)}},{key:"removeResourceBundle",value:function(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit("removed",e,t)}},{key:"hasResourceBundle",value:function(e,t){return void 0!==this.getResource(e,t)}},{key:"getResourceBundle",value:function(e,t){return t||(t=this.options.defaultNS),"v1"===this.options.compatibilityAPI?TC(TC({},{}),this.getResource(e,t)):this.getResource(e,t)}},{key:"getDataByLanguage",value:function(e){return this.data[e]}},{key:"hasLanguageSomeTranslations",value:function(e){var t=this.getDataByLanguage(e);return!!(t&&Object.keys(t)||[]).find((function(e){return t[e]&&Object.keys(t[e]).length>0}))}},{key:"toJSON",value:function(){return this.data}}]),n}(vC),IC={processors:{},addPostProcessor:function(e){this.processors[e.name]=e},handle:function(e,t,n,r,i){var o=this;return e.forEach((function(e){o.processors[e]&&(t=o.processors[e].process(t,n,r,i))})),t}};function NC(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function DC(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{};return eC(this,n),r=t.call(this),CC&&vC.call(iC(r)),function(e,t,n){e.forEach((function(e){t[e]&&(n[e]=t[e])}))}(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],e,iC(r)),r.options=i,void 0===r.options.keySeparator&&(r.options.keySeparator="."),r.logger=gC.create("translator"),r}return rC(n,[{key:"changeLanguage",value:function(e){e&&(this.language=e)}},{key:"exists",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}};if(null==e)return!1;var n=this.resolve(e,t);return n&&void 0!==n.res}},{key:"extractFromKey",value:function(e,t){var n=void 0!==t.nsSeparator?t.nsSeparator:this.options.nsSeparator;void 0===n&&(n=":");var r=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,i=t.ns||this.options.defaultNS||[],o=n&&e.indexOf(n)>-1,a=!(this.options.userDefinedKeySeparator||t.keySeparator||this.options.userDefinedNsSeparator||t.nsSeparator||function(e,t,n){t=t||"",n=n||"";var r=xC.filter((function(e){return t.indexOf(e)<0&&n.indexOf(e)<0}));if(0===r.length)return!0;var i=new RegExp("(".concat(r.map((function(e){return"?"===e?"\\?":e})).join("|"),")")),o=!i.test(e);if(!o){var a=e.indexOf(n);a>0&&!i.test(e.substring(0,a))&&(o=!0)}return o}(e,n,r));if(o&&!a){var s=e.match(this.interpolator.nestingRegexp);if(s&&s.length>0)return{key:e,namespaces:i};var u=e.split(n);(n!==r||n===r&&this.options.ns.indexOf(u[0])>-1)&&(i=u.shift()),e=u.join(r)}return"string"==typeof i&&(i=[i]),{key:e,namespaces:i}}},{key:"translate",value:function(e,t,r){var i=this;if("object"!==JM(t)&&this.options.overloadTranslationOptionHandler&&(t=this.options.overloadTranslationOptionHandler(arguments)),"object"===JM(t)&&(t=DC({},t)),t||(t={}),null==e)return"";Array.isArray(e)||(e=[String(e)]);var o=void 0!==t.returnDetails?t.returnDetails:this.options.returnDetails,a=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,s=this.extractFromKey(e[e.length-1],t),u=s.key,l=s.namespaces,c=l[l.length-1],d=t.lng||this.language,f=t.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(d&&"cimode"===d.toLowerCase()){if(f){var h=t.nsSeparator||this.options.nsSeparator;return o?{res:"".concat(c).concat(h).concat(u),usedKey:u,exactUsedKey:u,usedLng:d,usedNS:c}:"".concat(c).concat(h).concat(u)}return o?{res:u,usedKey:u,exactUsedKey:u,usedLng:d,usedNS:c}:u}var p=this.resolve(e,t),m=p&&p.res,g=p&&p.usedKey||u,v=p&&p.exactUsedKey||u,y=Object.prototype.toString.apply(m),b=void 0!==t.joinArrays?t.joinArrays:this.options.joinArrays,w=!this.i18nFormat||this.i18nFormat.handleAsObject;if(w&&m&&"string"!=typeof m&&"boolean"!=typeof m&&"number"!=typeof m&&["[object Number]","[object Function]","[object RegExp]"].indexOf(y)<0&&("string"!=typeof b||"[object Array]"!==y)){if(!t.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");var A=this.options.returnedObjectHandler?this.options.returnedObjectHandler(g,m,DC(DC({},t),{},{ns:l})):"key '".concat(u," (").concat(this.language,")' returned an object instead of string.");return o?(p.res=A,p):A}if(a){var _="[object Array]"===y,E=_?[]:{},S=_?v:g;for(var k in m)if(Object.prototype.hasOwnProperty.call(m,k)){var M="".concat(S).concat(a).concat(k);E[k]=this.translate(M,DC(DC({},t),{joinArrays:!1,ns:l})),E[k]===M&&(E[k]=m[k])}m=E}}else if(w&&"string"==typeof b&&"[object Array]"===y)(m=m.join(b))&&(m=this.extendTranslation(m,e,t,r));else{var C=!1,x=!1,R=void 0!==t.count&&"string"!=typeof t.count,O=n.hasDefaultValue(t),T=R?this.pluralResolver.getSuffix(d,t.count,t):"",P=t["defaultValue".concat(T)]||t.defaultValue;!this.isValidLookup(m)&&O&&(C=!0,m=P),this.isValidLookup(m)||(x=!0,m=u);var L=(t.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&x?void 0:m,I=O&&P!==m&&this.options.updateMissing;if(x||C||I){if(this.logger.log(I?"updateKey":"missingKey",d,c,u,I?P:m),a){var N=this.resolve(u,DC(DC({},t),{},{keySeparator:!1}));N&&N.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}var D=[],B=this.languageUtils.getFallbackCodes(this.options.fallbackLng,t.lng||this.language);if("fallback"===this.options.saveMissingTo&&B&&B[0])for(var j=0;j1&&void 0!==arguments[1]?arguments[1]:{};return"string"==typeof e&&(e=[e]),e.forEach((function(e){if(!a.isValidLookup(t)){var u=a.extractFromKey(e,s),l=u.key;n=l;var c=u.namespaces;a.options.fallbackNS&&(c=c.concat(a.options.fallbackNS));var d=void 0!==s.count&&"string"!=typeof s.count,f=d&&!s.ordinal&&0===s.count&&a.pluralResolver.shouldUseIntlApi(),h=void 0!==s.context&&("string"==typeof s.context||"number"==typeof s.context)&&""!==s.context,p=s.lngs?s.lngs:a.languageUtils.toResolveHierarchy(s.lng||a.language,s.fallbackLng);c.forEach((function(e){a.isValidLookup(t)||(o=e,!jC["".concat(p[0],"-").concat(e)]&&a.utils&&a.utils.hasLoadedNamespace&&!a.utils.hasLoadedNamespace(o)&&(jC["".concat(p[0],"-").concat(e)]=!0,a.logger.warn('key "'.concat(n,'" for languages "').concat(p.join(", "),'" won\'t get resolved as namespace "').concat(o,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),p.forEach((function(n){if(!a.isValidLookup(t)){i=n;var o,u=[l];if(a.i18nFormat&&a.i18nFormat.addLookupKeys)a.i18nFormat.addLookupKeys(u,l,n,e,s);else{var c;d&&(c=a.pluralResolver.getSuffix(n,s.count,s));var p="".concat(a.options.pluralSeparator,"zero");if(d&&(u.push(l+c),f&&u.push(l+p)),h){var m="".concat(l).concat(a.options.contextSeparator).concat(s.context);u.push(m),d&&(u.push(m+c),f&&u.push(m+p))}}for(;o=u.pop();)a.isValidLookup(t)||(r=o,t=a.getResource(n,e,o,s))}})))}))}})),{res:t,usedKey:n,exactUsedKey:r,usedLng:i,usedNS:o}}},{key:"isValidLookup",value:function(e){return!(void 0===e||!this.options.returnNull&&null===e||!this.options.returnEmptyString&&""===e)}},{key:"getResource",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(e,t,n,r):this.resourceStore.getResource(e,t,n,r)}}],[{key:"hasDefaultValue",value:function(e){var t="defaultValue";for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t===n.substring(0,12)&&void 0!==e[n])return!0;return!1}}]),n}(vC);function zC(e){return e.charAt(0).toUpperCase()+e.slice(1)}var FC=function(){function e(t){eC(this,e),this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=gC.create("languageUtils")}return rC(e,[{key:"getScriptPartFromCode",value:function(e){if(!e||e.indexOf("-")<0)return null;var t=e.split("-");return 2===t.length?null:(t.pop(),"x"===t[t.length-1].toLowerCase()?null:this.formatLanguageCode(t.join("-")))}},{key:"getLanguagePartFromCode",value:function(e){if(!e||e.indexOf("-")<0)return e;var t=e.split("-");return this.formatLanguageCode(t[0])}},{key:"formatLanguageCode",value:function(e){if("string"==typeof e&&e.indexOf("-")>-1){var t=["hans","hant","latn","cyrl","cans","mong","arab"],n=e.split("-");return this.options.lowerCaseLng?n=n.map((function(e){return e.toLowerCase()})):2===n.length?(n[0]=n[0].toLowerCase(),n[1]=n[1].toUpperCase(),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=zC(n[1].toLowerCase()))):3===n.length&&(n[0]=n[0].toLowerCase(),2===n[1].length&&(n[1]=n[1].toUpperCase()),"sgn"!==n[0]&&2===n[2].length&&(n[2]=n[2].toUpperCase()),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=zC(n[1].toLowerCase())),t.indexOf(n[2].toLowerCase())>-1&&(n[2]=zC(n[2].toLowerCase()))),n.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}},{key:"isSupportedCode",value:function(e){return("languageOnly"===this.options.load||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}},{key:"getBestMatchFromCodes",value:function(e){var t,n=this;return e?(e.forEach((function(e){if(!t){var r=n.formatLanguageCode(e);n.options.supportedLngs&&!n.isSupportedCode(r)||(t=r)}})),!t&&this.options.supportedLngs&&e.forEach((function(e){if(!t){var r=n.getLanguagePartFromCode(e);if(n.isSupportedCode(r))return t=r;t=n.options.supportedLngs.find((function(e){return e===r?e:e.indexOf("-")<0&&r.indexOf("-")<0?void 0:0===e.indexOf(r)?e:void 0}))}})),t||(t=this.getFallbackCodes(this.options.fallbackLng)[0]),t):null}},{key:"getFallbackCodes",value:function(e,t){if(!e)return[];if("function"==typeof e&&(e=e(t)),"string"==typeof e&&(e=[e]),"[object Array]"===Object.prototype.toString.apply(e))return e;if(!t)return e.default||[];var n=e[t];return n||(n=e[this.getScriptPartFromCode(t)]),n||(n=e[this.formatLanguageCode(t)]),n||(n=e[this.getLanguagePartFromCode(t)]),n||(n=e.default),n||[]}},{key:"toResolveHierarchy",value:function(e,t){var n=this,r=this.getFallbackCodes(t||this.options.fallbackLng||[],e),i=[],o=function(e){e&&(n.isSupportedCode(e)?i.push(e):n.logger.warn("rejecting language code not found in supportedLngs: ".concat(e)))};return"string"==typeof e&&e.indexOf("-")>-1?("languageOnly"!==this.options.load&&o(this.formatLanguageCode(e)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&o(this.getScriptPartFromCode(e)),"currentOnly"!==this.options.load&&o(this.getLanguagePartFromCode(e))):"string"==typeof e&&o(this.formatLanguageCode(e)),r.forEach((function(e){i.indexOf(e)<0&&o(n.formatLanguageCode(e))})),i}}]),e}(),qC=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],WC={1:function(e){return Number(e>1)},2:function(e){return Number(1!=e)},3:function(e){return 0},4:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},5:function(e){return Number(0==e?0:1==e?1:2==e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5)},6:function(e){return Number(1==e?0:e>=2&&e<=4?1:2)},7:function(e){return Number(1==e?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},8:function(e){return Number(1==e?0:2==e?1:8!=e&&11!=e?2:3)},9:function(e){return Number(e>=2)},10:function(e){return Number(1==e?0:2==e?1:e<7?2:e<11?3:4)},11:function(e){return Number(1==e||11==e?0:2==e||12==e?1:e>2&&e<20?2:3)},12:function(e){return Number(e%10!=1||e%100==11)},13:function(e){return Number(0!==e)},14:function(e){return Number(1==e?0:2==e?1:3==e?2:3)},15:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2)},16:function(e){return Number(e%10==1&&e%100!=11?0:0!==e?1:2)},17:function(e){return Number(1==e||e%10==1&&e%100!=11?0:1)},18:function(e){return Number(0==e?0:1==e?1:2)},19:function(e){return Number(1==e?0:0==e||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3)},20:function(e){return Number(1==e?0:0==e||e%100>0&&e%100<20?1:2)},21:function(e){return Number(e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0)},22:function(e){return Number(1==e?0:2==e?1:(e<0||e>10)&&e%10==0?2:3)}},VC=["v1","v2","v3"],KC={zero:0,one:1,two:2,few:3,many:4,other:5},HC=function(){function e(t){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};eC(this,e),this.languageUtils=t,this.options=r,this.logger=gC.create("pluralResolver"),this.options.compatibilityJSON&&"v4"!==this.options.compatibilityJSON||"undefined"!=typeof Intl&&Intl.PluralRules||(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=(n={},qC.forEach((function(e){e.lngs.forEach((function(t){n[t]={numbers:e.nr,plurals:WC[e.fc]}}))})),n)}return rC(e,[{key:"addRule",value:function(e,t){this.rules[e]=t}},{key:"getRule",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this.shouldUseIntlApi())try{return new Intl.PluralRules(e,{type:t.ordinal?"ordinal":"cardinal"})}catch(e){return}return this.rules[e]||this.rules[this.languageUtils.getLanguagePartFromCode(e)]}},{key:"needsPlural",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this.getRule(e,t);return this.shouldUseIntlApi()?n&&n.resolvedOptions().pluralCategories.length>1:n&&n.numbers.length>1}},{key:"getPluralFormsOfKey",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.getSuffixes(e,n).map((function(e){return"".concat(t).concat(e)}))}},{key:"getSuffixes",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=this.getRule(e,n);return r?this.shouldUseIntlApi()?r.resolvedOptions().pluralCategories.sort((function(e,t){return KC[e]-KC[t]})).map((function(e){return"".concat(t.options.prepend).concat(e)})):r.numbers.map((function(r){return t.getSuffix(e,r,n)})):[]}},{key:"getSuffix",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=this.getRule(e,n);return r?this.shouldUseIntlApi()?"".concat(this.options.prepend).concat(r.select(t)):this.getSuffixRetroCompatible(r,t):(this.logger.warn("no plural rule found for: ".concat(e)),"")}},{key:"getSuffixRetroCompatible",value:function(e,t){var n=this,r=e.noAbs?e.plurals(t):e.plurals(Math.abs(t)),i=e.numbers[r];this.options.simplifyPluralSuffix&&2===e.numbers.length&&1===e.numbers[0]&&(2===i?i="plural":1===i&&(i=""));var o=function(){return n.options.prepend&&i.toString()?n.options.prepend+i.toString():i.toString()};return"v1"===this.options.compatibilityJSON?1===i?"":"number"==typeof i?"_plural_".concat(i.toString()):o():"v2"===this.options.compatibilityJSON||this.options.simplifyPluralSuffix&&2===e.numbers.length&&1===e.numbers[0]?o():this.options.prepend&&r.toString()?this.options.prepend+r.toString():r.toString()}},{key:"shouldUseIntlApi",value:function(){return!VC.includes(this.options.compatibilityJSON)}}]),e}();function $C(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function YC(e){for(var t=1;t3&&void 0!==arguments[3]?arguments[3]:".",i=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],o=function(e,t,n){var r=_C(e,n);return void 0!==r?r:_C(t,n)}(e,t,n);return!o&&i&&"string"==typeof n&&void 0===(o=RC(e,n,r))&&(o=RC(t,n,r)),o}var QC=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};eC(this,e),this.logger=gC.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||function(e){return e},this.init(t)}return rC(e,[{key:"init",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e.interpolation||(e.interpolation={escapeValue:!0});var t=e.interpolation;this.escape=void 0!==t.escape?t.escape:MC,this.escapeValue=void 0===t.escapeValue||t.escapeValue,this.useRawValueToEscape=void 0!==t.useRawValueToEscape&&t.useRawValueToEscape,this.prefix=t.prefix?SC(t.prefix):t.prefixEscaped||"{{",this.suffix=t.suffix?SC(t.suffix):t.suffixEscaped||"}}",this.formatSeparator=t.formatSeparator?t.formatSeparator:t.formatSeparator||",",this.unescapePrefix=t.unescapeSuffix?"":t.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":t.unescapeSuffix||"",this.nestingPrefix=t.nestingPrefix?SC(t.nestingPrefix):t.nestingPrefixEscaped||SC("$t("),this.nestingSuffix=t.nestingSuffix?SC(t.nestingSuffix):t.nestingSuffixEscaped||SC(")"),this.nestingOptionsSeparator=t.nestingOptionsSeparator?t.nestingOptionsSeparator:t.nestingOptionsSeparator||",",this.maxReplaces=t.maxReplaces?t.maxReplaces:1e3,this.alwaysFormat=void 0!==t.alwaysFormat&&t.alwaysFormat,this.resetRegExp()}},{key:"reset",value:function(){this.options&&this.init(this.options)}},{key:"resetRegExp",value:function(){var e="".concat(this.prefix,"(.+?)").concat(this.suffix);this.regexp=new RegExp(e,"g");var t="".concat(this.prefix).concat(this.unescapePrefix,"(.+?)").concat(this.unescapeSuffix).concat(this.suffix);this.regexpUnescape=new RegExp(t,"g");var n="".concat(this.nestingPrefix,"(.+?)").concat(this.nestingSuffix);this.nestingRegexp=new RegExp(n,"g")}},{key:"interpolate",value:function(e,t,n,r){var i,o,a,s=this,u=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function l(e){return e.replace(/\$/g,"$$$$")}var c=function(e){if(e.indexOf(s.formatSeparator)<0){var i=GC(t,u,e,s.options.keySeparator,s.options.ignoreJSONStructure);return s.alwaysFormat?s.format(i,void 0,n,YC(YC(YC({},r),t),{},{interpolationkey:e})):i}var o=e.split(s.formatSeparator),a=o.shift().trim(),l=o.join(s.formatSeparator).trim();return s.format(GC(t,u,a,s.options.keySeparator,s.options.ignoreJSONStructure),l,n,YC(YC(YC({},r),t),{},{interpolationkey:a}))};this.resetRegExp();var d=r&&r.missingInterpolationHandler||this.options.missingInterpolationHandler,f=r&&r.interpolation&&void 0!==r.interpolation.skipOnVariables?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:function(e){return l(e)}},{regex:this.regexp,safeValue:function(e){return s.escapeValue?l(s.escape(e)):l(e)}}].forEach((function(t){for(a=0;i=t.regex.exec(e);){var n=i[1].trim();if(void 0===(o=c(n)))if("function"==typeof d){var u=d(e,i,r);o="string"==typeof u?u:""}else if(r&&Object.prototype.hasOwnProperty.call(r,n))o="";else{if(f){o=i[0];continue}s.logger.warn("missed to pass in variable ".concat(n," for interpolating ").concat(e)),o=""}else"string"==typeof o||s.useRawValueToEscape||(o=bC(o));var l=t.safeValue(o);if(e=e.replace(i[0],l),f?(t.regex.lastIndex+=o.length,t.regex.lastIndex-=i[0].length):t.regex.lastIndex=0,++a>=s.maxReplaces)break}})),e}},{key:"nest",value:function(e,t){var n,r,i,o=this,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};function s(e,t){var n=this.nestingOptionsSeparator;if(e.indexOf(n)<0)return e;var r=e.split(new RegExp("".concat(n,"[ ]*{"))),o="{".concat(r[1]);e=r[0];var a=(o=this.interpolate(o,i)).match(/'/g),s=o.match(/"/g);(a&&a.length%2==0&&!s||s.length%2!=0)&&(o=o.replace(/'/g,'"'));try{i=JSON.parse(o),t&&(i=YC(YC({},t),i))}catch(t){return this.logger.warn("failed parsing options string in nesting for key ".concat(e),t),"".concat(e).concat(n).concat(o)}return delete i.defaultValue,e}for(;n=this.nestingRegexp.exec(e);){var u=[];(i=(i=YC({},a)).replace&&"string"!=typeof i.replace?i.replace:i).applyPostProcessor=!1,delete i.defaultValue;var l=!1;if(-1!==n[0].indexOf(this.formatSeparator)&&!/{.*}/.test(n[1])){var c=n[1].split(this.formatSeparator).map((function(e){return e.trim()}));n[1]=c.shift(),u=c,l=!0}if((r=t(s.call(this,n[1].trim(),i),i))&&n[0]===e&&"string"!=typeof r)return r;"string"!=typeof r&&(r=bC(r)),r||(this.logger.warn("missed to resolve ".concat(n[1]," for nesting ").concat(e)),r=""),l&&(r=u.reduce((function(e,t){return o.format(e,t,a.lng,YC(YC({},a),{},{interpolationkey:n[1].trim()}))}),r.trim())),e=e.replace(n[0],r),this.regexp.lastIndex=0}return e}}]),e}();function ZC(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function XC(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{};eC(this,e),this.logger=gC.create("formatter"),this.options=t,this.formats={number:JC((function(e,t){var n=new Intl.NumberFormat(e,XC({},t));return function(e){return n.format(e)}})),currency:JC((function(e,t){var n=new Intl.NumberFormat(e,XC(XC({},t),{},{style:"currency"}));return function(e){return n.format(e)}})),datetime:JC((function(e,t){var n=new Intl.DateTimeFormat(e,XC({},t));return function(e){return n.format(e)}})),relativetime:JC((function(e,t){var n=new Intl.RelativeTimeFormat(e,XC({},t));return function(e){return n.format(e,t.range||"day")}})),list:JC((function(e,t){var n=new Intl.ListFormat(e,XC({},t));return function(e){return n.format(e)}}))},this.init(t)}return rC(e,[{key:"init",value:function(e){var t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}}).interpolation;this.formatSeparator=t.formatSeparator?t.formatSeparator:t.formatSeparator||","}},{key:"add",value:function(e,t){this.formats[e.toLowerCase().trim()]=t}},{key:"addCached",value:function(e,t){this.formats[e.toLowerCase().trim()]=JC(t)}},{key:"format",value:function(e,t,n){var r=this,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=t.split(this.formatSeparator).reduce((function(e,t){var o=function(e){var t=e.toLowerCase().trim(),n={};if(e.indexOf("(")>-1){var r=e.split("(");t=r[0].toLowerCase().trim();var i=r[1].substring(0,r[1].length-1);"currency"===t&&i.indexOf(":")<0?n.currency||(n.currency=i.trim()):"relativetime"===t&&i.indexOf(":")<0?n.range||(n.range=i.trim()):i.split(";").forEach((function(e){if(e){var t=dC(e.split(":")),r=t[0],i=t.slice(1).join(":").trim().replace(/^'+|'+$/g,"");n[r.trim()]||(n[r.trim()]=i),"false"===i&&(n[r.trim()]=!1),"true"===i&&(n[r.trim()]=!0),isNaN(i)||(n[r.trim()]=parseInt(i,10))}}))}return{formatName:t,formatOptions:n}}(t),a=o.formatName,s=o.formatOptions;if(r.formats[a]){var u=e;try{var l=i&&i.formatParams&&i.formatParams[i.interpolationkey]||{},c=l.locale||l.lng||i.locale||i.lng||n;u=r.formats[a](e,c,XC(XC(XC({},s),i),l))}catch(e){r.logger.warn(e)}return u}return r.logger.warn("there was no format function for ".concat(a)),e}),e);return o}}]),e}();function tx(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function nx(e){for(var t=1;t3&&void 0!==arguments[3]?arguments[3]:{};return eC(this,n),o=t.call(this),CC&&vC.call(iC(o)),o.backend=e,o.store=r,o.services=i,o.languageUtils=i.languageUtils,o.options=a,o.logger=gC.create("backendConnector"),o.waitingReads=[],o.maxParallelReads=a.maxParallelReads||10,o.readingCalls=0,o.maxRetries=a.maxRetries>=0?a.maxRetries:5,o.retryTimeout=a.retryTimeout>=1?a.retryTimeout:350,o.state={},o.queue=[],o.backend&&o.backend.init&&o.backend.init(i,a.backend,a),o}return rC(n,[{key:"queueLoad",value:function(e,t,n,r){var i=this,o={},a={},s={},u={};return e.forEach((function(e){var r=!0;t.forEach((function(t){var s="".concat(e,"|").concat(t);!n.reload&&i.store.hasResourceBundle(e,t)?i.state[s]=2:i.state[s]<0||(1===i.state[s]?void 0===a[s]&&(a[s]=!0):(i.state[s]=1,r=!1,void 0===a[s]&&(a[s]=!0),void 0===o[s]&&(o[s]=!0),void 0===u[t]&&(u[t]=!0)))})),r||(s[e]=!0)})),(Object.keys(o).length||Object.keys(a).length)&&this.queue.push({pending:a,pendingCount:Object.keys(a).length,loaded:{},errors:[],callback:r}),{toLoad:Object.keys(o),pending:Object.keys(a),toLoadLanguages:Object.keys(s),toLoadNamespaces:Object.keys(u)}}},{key:"loaded",value:function(e,t,n){var r=e.split("|"),i=r[0],o=r[1];t&&this.emit("failedLoading",i,o,t),n&&this.store.addResourceBundle(i,o,n),this.state[e]=t?-1:2;var a={};this.queue.forEach((function(n){!function(e,t,n,r){var i=wC(e,t,Object),o=i.obj,a=i.k;o[a]=o[a]||[],r&&(o[a]=o[a].concat(n)),r||o[a].push(n)}(n.loaded,[i],o),function(e,t){void 0!==e.pending[t]&&(delete e.pending[t],e.pendingCount--)}(n,e),t&&n.errors.push(t),0!==n.pendingCount||n.done||(Object.keys(n.loaded).forEach((function(e){a[e]||(a[e]={});var t=n.loaded[e];t.length&&t.forEach((function(t){void 0===a[e][t]&&(a[e][t]=!0)}))})),n.done=!0,n.errors.length?n.callback(n.errors):n.callback())})),this.emit("loaded",a),this.queue=this.queue.filter((function(e){return!e.done}))}},{key:"read",value:function(e,t,n){var r=this,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:this.retryTimeout,a=arguments.length>5?arguments[5]:void 0;if(!e.length)return a(null,{});if(this.readingCalls>=this.maxParallelReads)this.waitingReads.push({lng:e,ns:t,fcName:n,tried:i,wait:o,callback:a});else{this.readingCalls++;var s=function(s,u){if(r.readingCalls--,r.waitingReads.length>0){var l=r.waitingReads.shift();r.read(l.lng,l.ns,l.fcName,l.tried,l.wait,l.callback)}s&&u&&i2&&void 0!==arguments[2]?arguments[2]:{},i=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),i&&i();"string"==typeof e&&(e=this.languageUtils.toResolveHierarchy(e)),"string"==typeof t&&(t=[t]);var o=this.queueLoad(e,t,r,i);if(!o.toLoad.length)return o.pending.length||i(),null;o.toLoad.forEach((function(e){n.loadOne(e)}))}},{key:"load",value:function(e,t,n){this.prepareLoading(e,t,{},n)}},{key:"reload",value:function(e,t,n){this.prepareLoading(e,t,{reload:!0},n)}},{key:"loadOne",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=e.split("|"),i=r[0],o=r[1];this.read(i,o,"read",void 0,void 0,(function(r,a){r&&t.logger.warn("".concat(n,"loading namespace ").concat(o," for language ").concat(i," failed"),r),!r&&a&&t.logger.log("".concat(n,"loaded namespace ").concat(o," for language ").concat(i),a),t.loaded(e,r,a)}))}},{key:"saveMissing",value:function(e,t,n,r,i){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:function(){};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(t))this.logger.warn('did not save key "'.concat(n,'" as the namespace "').concat(t,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");else if(null!=n&&""!==n){if(this.backend&&this.backend.create){var s=nx(nx({},o),{},{isUpdate:i}),u=this.backend.create.bind(this.backend);if(u.length<6)try{var l;(l=5===u.length?u(e,t,n,r,s):u(e,t,n,r))&&"function"==typeof l.then?l.then((function(e){return a(null,e)})).catch(a):a(null,l)}catch(e){a(e)}else u(e,t,n,r,a,s)}e&&e[0]&&this.store.addResource(e[0],t,n,r)}}}]),n}(vC);function ox(){return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!0,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(e){var t={};if("object"===JM(e[1])&&(t=e[1]),"string"==typeof e[1]&&(t.defaultValue=e[1]),"string"==typeof e[2]&&(t.tDescription=e[2]),"object"===JM(e[2])||"object"===JM(e[3])){var n=e[3]||e[2];Object.keys(n).forEach((function(e){t[e]=n[e]}))}return t},interpolation:{escapeValue:!0,format:function(e,t,n,r){return e},prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}}function ax(e){return"string"==typeof e.ns&&(e.ns=[e.ns]),"string"==typeof e.fallbackLng&&(e.fallbackLng=[e.fallbackLng]),"string"==typeof e.fallbackNS&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e}function sx(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ux(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},o=arguments.length>1?arguments[1]:void 0;if(eC(this,n),e=t.call(this),CC&&vC.call(iC(e)),e.options=ax(i),e.services={},e.logger=gC,e.modules={external:[]},r=iC(e),Object.getOwnPropertyNames(Object.getPrototypeOf(r)).forEach((function(e){"function"==typeof r[e]&&(r[e]=r[e].bind(r))})),o&&!e.isInitialized&&!i.isClone){if(!e.options.initImmediate)return e.init(i,o),sC(e,iC(e));setTimeout((function(){e.init(i,o)}),0)}return e}return rC(n,[{key:"init",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;"function"==typeof t&&(n=t,t={}),!t.defaultNS&&!1!==t.defaultNS&&t.ns&&("string"==typeof t.ns?t.defaultNS=t.ns:t.ns.indexOf("translation")<0&&(t.defaultNS=t.ns[0]));var r=ox();function i(e){return e?"function"==typeof e?new e:e:null}if(this.options=ux(ux(ux({},r),this.options),ax(t)),"v1"!==this.options.compatibilityAPI&&(this.options.interpolation=ux(ux({},r.interpolation),this.options.interpolation)),void 0!==t.keySeparator&&(this.options.userDefinedKeySeparator=t.keySeparator),void 0!==t.nsSeparator&&(this.options.userDefinedNsSeparator=t.nsSeparator),!this.options.isClone){var o;this.modules.logger?gC.init(i(this.modules.logger),this.options):gC.init(null,this.options),this.modules.formatter?o=this.modules.formatter:"undefined"!=typeof Intl&&(o=ex);var a=new FC(this.options);this.store=new LC(this.options.resources,this.options);var s=this.services;s.logger=gC,s.resourceStore=this.store,s.languageUtils=a,s.pluralResolver=new HC(a,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),!o||this.options.interpolation.format&&this.options.interpolation.format!==r.interpolation.format||(s.formatter=i(o),s.formatter.init(s,this.options),this.options.interpolation.format=s.formatter.format.bind(s.formatter)),s.interpolator=new QC(this.options),s.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},s.backendConnector=new ix(i(this.modules.backend),s.resourceStore,s,this.options),s.backendConnector.on("*",(function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i1?n-1:0),i=1;i0&&"dev"!==u[0]&&(this.options.lng=u[0])}this.services.languageDetector||this.options.lng||this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach((function(t){e[t]=function(){var n;return(n=e.store)[t].apply(n,arguments)}})),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach((function(t){e[t]=function(){var n;return(n=e.store)[t].apply(n,arguments),e}}));var l=yC(),c=function(){var t=function(t,r){e.isInitialized&&!e.initializedStoreOnce&&e.logger.warn("init: i18next is already initialized. You should call init just once!"),e.isInitialized=!0,e.options.isClone||e.logger.log("initialized",e.options),e.emit("initialized",e.options),l.resolve(r),n(t,r)};if(e.languages&&"v1"!==e.options.compatibilityAPI&&!e.isInitialized)return t(null,e.t.bind(e));e.changeLanguage(e.options.lng,t)};return this.options.resources||!this.options.initImmediate?c():setTimeout(c,0),l}},{key:"loadResources",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:cx,r="string"==typeof e?e:this.language;if("function"==typeof e&&(n=e),!this.options.resources||this.options.partialBundledLanguages){if(r&&"cimode"===r.toLowerCase())return n();var i=[],o=function(e){e&&t.services.languageUtils.toResolveHierarchy(e).forEach((function(e){i.indexOf(e)<0&&i.push(e)}))};r?o(r):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach((function(e){return o(e)})),this.options.preload&&this.options.preload.forEach((function(e){return o(e)})),this.services.backendConnector.load(i,this.options.ns,(function(e){e||t.resolvedLanguage||!t.language||t.setResolvedLanguage(t.language),n(e)}))}else n(null)}},{key:"reloadResources",value:function(e,t,n){var r=yC();return e||(e=this.languages),t||(t=this.options.ns),n||(n=cx),this.services.backendConnector.reload(e,t,(function(e){r.resolve(),n(e)})),r}},{key:"use",value:function(e){if(!e)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return"backend"===e.type&&(this.modules.backend=e),("logger"===e.type||e.log&&e.warn&&e.error)&&(this.modules.logger=e),"languageDetector"===e.type&&(this.modules.languageDetector=e),"i18nFormat"===e.type&&(this.modules.i18nFormat=e),"postProcessor"===e.type&&IC.addPostProcessor(e),"formatter"===e.type&&(this.modules.formatter=e),"3rdParty"===e.type&&this.modules.external.push(e),this}},{key:"setResolvedLanguage",value:function(e){if(e&&this.languages&&!(["cimode","dev"].indexOf(e)>-1))for(var t=0;t-1)&&this.store.hasLanguageSomeTranslations(n)){this.resolvedLanguage=n;break}}}},{key:"changeLanguage",value:function(e,t){var n=this;this.isLanguageChangingTo=e;var r=yC();this.emit("languageChanging",e);var i=function(e){n.language=e,n.languages=n.services.languageUtils.toResolveHierarchy(e),n.resolvedLanguage=void 0,n.setResolvedLanguage(e)},o=function(o){e||o||!n.services.languageDetector||(o=[]);var a="string"==typeof o?o:n.services.languageUtils.getBestMatchFromCodes(o);a&&(n.language||i(a),n.translator.language||n.translator.changeLanguage(a),n.services.languageDetector&&n.services.languageDetector.cacheUserLanguage&&n.services.languageDetector.cacheUserLanguage(a)),n.loadResources(a,(function(e){!function(e,o){o?(i(o),n.translator.changeLanguage(o),n.isLanguageChangingTo=void 0,n.emit("languageChanged",o),n.logger.log("languageChanged",o)):n.isLanguageChangingTo=void 0,r.resolve((function(){return n.t.apply(n,arguments)})),t&&t(e,(function(){return n.t.apply(n,arguments)}))}(e,a)}))};return e||!this.services.languageDetector||this.services.languageDetector.async?!e&&this.services.languageDetector&&this.services.languageDetector.async?0===this.services.languageDetector.detect.length?this.services.languageDetector.detect().then(o):this.services.languageDetector.detect(o):o(e):o(this.services.languageDetector.detect()),r}},{key:"getFixedT",value:function(e,t,n){var r=this,i=function e(t,i){var o;if("object"!==JM(i)){for(var a=arguments.length,s=new Array(a>2?a-2:0),u=2;u1&&void 0!==arguments[1]?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;var r=n.lng||this.resolvedLanguage||this.languages[0],i=!!this.options&&this.options.fallbackLng,o=this.languages[this.languages.length-1];if("cimode"===r.toLowerCase())return!0;var a=function(e,n){var r=t.services.backendConnector.state["".concat(e,"|").concat(n)];return-1===r||2===r};if(n.precheck){var s=n.precheck(this,a);if(void 0!==s)return s}return!!this.hasResourceBundle(r,e)||!(this.services.backendConnector.backend&&(!this.options.resources||this.options.partialBundledLanguages))||!(!a(r,e)||i&&!a(o,e))}},{key:"loadNamespaces",value:function(e,t){var n=this,r=yC();return this.options.ns?("string"==typeof e&&(e=[e]),e.forEach((function(e){n.options.ns.indexOf(e)<0&&n.options.ns.push(e)})),this.loadResources((function(e){r.resolve(),t&&t(e)})),r):(t&&t(),Promise.resolve())}},{key:"loadLanguages",value:function(e,t){var n=yC();"string"==typeof e&&(e=[e]);var r=this.options.preload||[],i=e.filter((function(e){return r.indexOf(e)<0}));return i.length?(this.options.preload=r.concat(i),this.loadResources((function(e){n.resolve(),t&&t(e)})),n):(t&&t(),Promise.resolve())}},{key:"dir",value:function(e){if(e||(e=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!e)return"rtl";var t=this.services&&this.services.languageUtils||new FC(ox());return["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"].indexOf(t.getLanguagePartFromCode(e))>-1||e.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}},{key:"cloneInstance",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:cx,i=ux(ux(ux({},this.options),t),{isClone:!0}),o=new n(i);return void 0===t.debug&&void 0===t.prefix||(o.logger=o.logger.clone(t)),["store","services","language"].forEach((function(t){o[t]=e[t]})),o.services=ux({},this.services),o.services.utils={hasLoadedNamespace:o.hasLoadedNamespace.bind(o)},o.translator=new UC(o.services,o.options),o.translator.on("*",(function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r0&&void 0!==arguments[0]?arguments[0]:{},arguments.length>1?arguments[1]:void 0)}));var fx=dx.createInstance();fx.createInstance=dx.createInstance;var hx=fx.createInstance;fx.dir,fx.init,fx.loadResources,fx.reloadResources,fx.use,fx.changeLanguage,fx.getFixedT,fx.t,fx.exists,fx.setDefaultNamespace,fx.hasLoadedNamespace,fx.loadNamespaces,fx.loadLanguages;var px="0.14.3";const mx={eth_requestAccounts:!0,eth_sendTransaction:!0,eth_signTransaction:!0,eth_sign:!0,eth_accounts:!0,personal_sign:!0,eth_signTypedData:!0,eth_signTypedData_v3:!0,eth_signTypedData_v4:!0,wallet_watchAsset:!0,wallet_addEthereumChain:!0,wallet_switchEthereumChain:!0,metamask_connectSign:!0,metamask_connectWith:!0,metamask_batch:!0,metamask_open:!0},gx=".sdk-comm",vx="providerType",yx={METAMASK_GETPROVIDERSTATE:"metamask_getProviderState",METAMASK_CONNECTSIGN:"metamask_connectSign",METAMASK_CONNECTWITH:"metamask_connectWith",METAMASK_OPEN:"metamask_open",METAMASK_BATCH:"metamask_batch",PERSONAL_SIGN:"personal_sign",ETH_REQUESTACCOUNTS:"eth_requestAccounts",ETH_ACCOUNTS:"eth_accounts",ETH_CHAINID:"eth_chainId"},bx={CHAIN_CHANGED:"chainChanged",ACCOUNTS_CHANGED:"accountsChanged",DISCONNECT:"disconnect",CONNECT:"connect",CONNECTED:"connected"};var wx,Ax,_x,Ex,Sx;function kx(t){var n,r;return fA(this,void 0,void 0,(function*(){t.debug&&console.debug("SDK::connectWithExtensionProvider()",t),t.sdkProvider=t.activeProvider,t.activeProvider=window.extension,window.ethereum=window.extension;try{const e=yield null===(n=window.extension)||void 0===n?void 0:n.request({method:"eth_requestAccounts"});t.debug&&console.debug("SDK::connectWithExtensionProvider() accounts",e)}catch(e){return void console.warn("SDK::connectWithExtensionProvider() can't request accounts error",e)}localStorage.setItem(vx,"extension"),t.extensionActive=!0,t.emit(e.EventType.PROVIDER_UPDATE,e.PROVIDER_UPDATE_TYPE.EXTENSION),t.options.enableAnalytics&&(null===(r=t.analytics)||void 0===r||r.send({event:Zw.SDK_USE_EXTENSION}))}))}e.PROVIDER_UPDATE_TYPE=void 0,(wx=e.PROVIDER_UPDATE_TYPE||(e.PROVIDER_UPDATE_TYPE={})).TERMINATE="terminate",wx.EXTENSION="extension",wx.INITIALIZED="initialized";const Mx={DEFAULT_ID:"sdk",NO_VERSION:"NONE"};class Cx{constructor(e){var t;Ax.set(this,void 0),_x.set(this,Dw),Ex.set(this,void 0),Sx.set(this,void 0),pA(this,Ax,e.debug,"f"),pA(this,_x,e.serverURL,"f"),pA(this,Sx,e.metadata||void 0,"f"),pA(this,Ex,null===(t=e.enabled)||void 0===t||t,"f")}send({event:e}){hA(this,Ex,"f")&&fn({id:Mx.DEFAULT_ID,event:e,commLayerVersion:Mx.NO_VERSION,originationInfo:hA(this,Sx,"f")},hA(this,_x,"f")).catch((e=>{hA(this,Ax,"f")&&console.error(e)}))}}var xx;Ax=new WeakMap,_x=new WeakMap,Ex=new WeakMap,Sx=new WeakMap,function(e){e.INPAGE="metamask-inpage",e.CONTENT_SCRIPT="metamask-contentscript",e.PROVIDER="metamask-provider"}(xx||(xx={}));const Rx="https://metamask.app.link/connect",Ox="metamask://connect",Tx={NAME:"MetaMask Main",RDNS:"io.metamask"},Px=/(?:^[a-f0-9]{8}-[a-f0-9]{4}-4[a-f0-9]{3}-[a-f0-9]{4}-[a-f0-9]{12}$)|(?:^0{8}-0{4}-0{4}-0{4}-0{12}$)/u,Lx=36e5;class Ix{constructor({shouldSetOnWindow:e,connectionStream:t,shouldSendMetadata:n=!1,shouldShimWeb3:r,debug:i=!1}){this.debug=!1,this.debug=i;const o=new QM({connectionStream:t,shouldSendMetadata:n,shouldSetOnWindow:e,shouldShimWeb3:r,autoRequestAccounts:!1,debug:i});this.debug=i;const a=new Proxy(o,{deleteProperty:()=>!0});this.provider=a,e&&"undefined"!=typeof window&&mA.setGlobalProvider(this.provider),r&&"undefined"!=typeof window&&mA.shimWeb3(this.provider),this.provider.on("_initialized",(()=>{const e={chainId:this.provider.chainId,isConnected:this.provider.isConnected(),isMetaNask:this.provider.isMetaMask,selectedAddress:this.provider.selectedAddress,networkVersion:this.provider.networkVersion};this.debug&&console.info("Ethereum provider initialized",e)}))}static init(e){var t;return e.debug&&console.debug("Ethereum::init()"),this.instance=new Ix(e),null===(t=this.instance)||void 0===t?void 0:t.provider}static destroy(){Ix.instance=void 0}static getInstance(){var e;if(!(null===(e=this.instance)||void 0===e?void 0:e.provider))throw new Error("Ethereum instance not intiialized - call Ethereum.factory first.");return this.instance}static getProvider(){var e;if(!(null===(e=this.instance)||void 0===e?void 0:e.provider))throw new Error("Ethereum instance not intiialized - call Ethereum.factory first.");return this.instance.provider}}function Nx(e,t,n,r){var i,o,a,s,u,l,c,d,f,h,p,m,g,v;return fA(this,void 0,void 0,(function*(){const n=null===(i=e.state.remote)||void 0===i?void 0:i.isReady(),y=null===(o=e.state.remote)||void 0===o?void 0:o.isConnected(),b=null===(a=e.state.remote)||void 0===a?void 0:a.isPaused(),w=Ix.getProvider(),A=null===(s=e.state.remote)||void 0===s?void 0:s.getChannelId(),_=null===(u=e.state.remote)||void 0===u?void 0:u.isAuthorized(),{method:E,data:S}=(e=>{var t;let n;return Ke.isBuffer(e)?(n=e.toJSON(),n._isBuffer=!0):n=e,{method:null===(t=null==n?void 0:n.data)||void 0===t?void 0:t.method,data:n}})(t);if(e.state.debug&&console.debug(`RPCMS::_write method='${E}' isRemoteReady=${n} channelId=${A} isSocketConnected=${y} isRemotePaused=${b} providerConnected=${w.isConnected()}`,t),!A)return e.state.debug&&E!==yx.METAMASK_GETPROVIDERSTATE&&console.warn("RPCMS::_write Invalid channel id -- undefined"),r();e.state.debug&&console.debug(`RPCMS::_write remote.isPaused()=${null===(l=e.state.remote)||void 0===l?void 0:l.isPaused()} authorized=${_} ready=${n} socketConnected=${y}`,t);try{if(null===(c=e.state.remote)||void 0===c||c.sendMessage(null==S?void 0:S.data).then((()=>{e.state.debug&&console.debug(`RCPMS::_write ${E} sent successfully`)})).catch((e=>{console.error("RCPMS::_write error sending message",e)})),!(null===(d=e.state.platformManager)||void 0===d?void 0:d.isSecure()))return e.state.debug&&console.log(`RCPMS::_write unsecure platform for method ${E} -- return callback`),r();if(!y&&!n)return e.state.debug&&console.debug(`RCPMS::_write invalid connection status targetMethod=${E} socketConnected=${y} ready=${n} providerConnected=${w.isConnected()}\n\n`),r();if(!y&&n)return console.warn("RCPMS::_write invalid socket status -- shouln't happen"),r();const t=null!==(p=null===(h=null===(f=e.state.remote)||void 0===f?void 0:f.getKeyInfo())||void 0===h?void 0:h.ecies.public)&&void 0!==p?p:"",i=encodeURI(`channelId=${A}&pubkey=${t}&comm=socket&t=d`);mx[E]?(e.state.debug&&console.debug(`RCPMS::_write redirect link for '${E}' socketConnected=${y}`,`connect?${i}`),null===(m=e.state.platformManager)||void 0===m||m.openDeeplink(`${Rx}?${i}`,`${Ox}?${i}`,"_self")):(null===(g=e.state.remote)||void 0===g?void 0:g.isPaused())?(e.state.debug&&console.debug(`RCPMS::_write MM is PAUSED! deeplink with connect! targetMethod=${E}`),null===(v=e.state.platformManager)||void 0===v||v.openDeeplink(`${Rx}?redirect=true&${i}`,`${Ox}?redirect=true&${i}`,"_self")):console.debug(`RCPMS::_write method ${E} doesn't need redirect.`)}catch(t){return e.state.debug&&console.error("RCPMS::_write error",t),r(new Error("RemoteCommunicationPostMessageStream - disconnected"))}return r()}))}class Dx extends oS{constructor({name:t,remote:n,platformManager:r,debug:i}){super({objectMode:!0}),this.state={_name:null,remote:null,platformManager:null,debug:!1},this.state._name=t,this.state.remote=n,this.state.debug=i,this.state.platformManager=r,this._onMessage=this._onMessage.bind(this),this.state.remote.on(e.EventType.MESSAGE,this._onMessage)}_write(e,t,n){return fA(this,void 0,void 0,(function*(){return Nx(this,e,0,n)}))}_read(){}_onMessage(e){return function(e,t){try{if(e.state.debug&&console.debug("[RCPMS] _onMessage ",t),!t||"object"!=typeof t)return;if("object"!=typeof(null==t?void 0:t.data))return;if(!(null==t?void 0:t.name))return;if((null==t?void 0:t.name)!==xx.PROVIDER)return;if(Ke.isBuffer(t)){const n=Ke.from(t);e.push(n)}else e.push(t)}catch(t){e.state.debug&&console.debug("RCPMS ignore message error",t)}}(this,e)}start(){}}var Bx={exports:{}};!function(e,t){var n="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof self&&self||void 0!==r&&r,i=function(){function e(){this.fetch=!1,this.DOMException=n.DOMException}return e.prototype=n,new e}();!function(e){!function(t){var n=void 0!==e&&e||"undefined"!=typeof self&&self||void 0!==n&&n,r="URLSearchParams"in n,i="Symbol"in n&&"iterator"in Symbol,o="FileReader"in n&&"Blob"in n&&function(){try{return new Blob,!0}catch(e){return!1}}(),a="FormData"in n,s="ArrayBuffer"in n;if(s)var u=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],l=ArrayBuffer.isView||function(e){return e&&u.indexOf(Object.prototype.toString.call(e))>-1};function c(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(e)||""===e)throw new TypeError('Invalid character in header field name: "'+e+'"');return e.toLowerCase()}function d(e){return"string"!=typeof e&&(e=String(e)),e}function f(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return i&&(t[Symbol.iterator]=function(){return t}),t}function h(e){this.map={},e instanceof h?e.forEach((function(e,t){this.append(t,e)}),this):Array.isArray(e)?e.forEach((function(e){this.append(e[0],e[1])}),this):e&&Object.getOwnPropertyNames(e).forEach((function(t){this.append(t,e[t])}),this)}function p(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function m(e){return new Promise((function(t,n){e.onload=function(){t(e.result)},e.onerror=function(){n(e.error)}}))}function g(e){var t=new FileReader,n=m(t);return t.readAsArrayBuffer(e),n}function v(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function y(){return this.bodyUsed=!1,this._initBody=function(e){var t;this.bodyUsed=this.bodyUsed,this._bodyInit=e,e?"string"==typeof e?this._bodyText=e:o&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:a&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:r&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():s&&o&&(t=e)&&DataView.prototype.isPrototypeOf(t)?(this._bodyArrayBuffer=v(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):s&&(ArrayBuffer.prototype.isPrototypeOf(e)||l(e))?this._bodyArrayBuffer=v(e):this._bodyText=e=Object.prototype.toString.call(e):this._bodyText="",this.headers.get("content-type")||("string"==typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):r&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},o&&(this.blob=function(){var e=p(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){if(this._bodyArrayBuffer){var e=p(this);return e||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer))}return this.blob().then(g)}),this.text=function(){var e,t,n,r=p(this);if(r)return r;if(this._bodyBlob)return e=this._bodyBlob,t=new FileReader,n=m(t),t.readAsText(e),n;if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),n=new Array(t.length),r=0;r-1?t:e}(t.method||this.method||"GET"),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&n)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(n),!("GET"!==this.method&&"HEAD"!==this.method||"no-store"!==t.cache&&"no-cache"!==t.cache)){var r=/([?&])_=[^&]*/;r.test(this.url)?this.url=this.url.replace(r,"$1_="+(new Date).getTime()):this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new Date).getTime()}}function A(e){var t=new FormData;return e.trim().split("&").forEach((function(e){if(e){var n=e.split("="),r=n.shift().replace(/\+/g," "),i=n.join("=").replace(/\+/g," ");t.append(decodeURIComponent(r),decodeURIComponent(i))}})),t}function _(e,t){if(!(this instanceof _))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');t||(t={}),this.type="default",this.status=void 0===t.status?200:t.status,this.ok=this.status>=200&&this.status<300,this.statusText=void 0===t.statusText?"":""+t.statusText,this.headers=new h(t.headers),this.url=t.url||"",this._initBody(e)}w.prototype.clone=function(){return new w(this,{body:this._bodyInit})},y.call(w.prototype),y.call(_.prototype),_.prototype.clone=function(){return new _(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new h(this.headers),url:this.url})},_.error=function(){var e=new _(null,{status:0,statusText:""});return e.type="error",e};var E=[301,302,303,307,308];_.redirect=function(e,t){if(-1===E.indexOf(t))throw new RangeError("Invalid status code");return new _(null,{status:t,headers:{location:e}})},t.DOMException=n.DOMException;try{new t.DOMException}catch(e){t.DOMException=function(e,t){this.message=e,this.name=t;var n=Error(e);this.stack=n.stack},t.DOMException.prototype=Object.create(Error.prototype),t.DOMException.prototype.constructor=t.DOMException}function S(e,r){return new Promise((function(i,a){var u=new w(e,r);if(u.signal&&u.signal.aborted)return a(new t.DOMException("Aborted","AbortError"));var l=new XMLHttpRequest;function c(){l.abort()}l.onload=function(){var e,t,n={status:l.status,statusText:l.statusText,headers:(e=l.getAllResponseHeaders()||"",t=new h,e.replace(/\r?\n[\t ]+/g," ").split("\r").map((function(e){return 0===e.indexOf("\n")?e.substr(1,e.length):e})).forEach((function(e){var n=e.split(":"),r=n.shift().trim();if(r){var i=n.join(":").trim();t.append(r,i)}})),t)};n.url="responseURL"in l?l.responseURL:n.headers.get("X-Request-URL");var r="response"in l?l.response:l.responseText;setTimeout((function(){i(new _(r,n))}),0)},l.onerror=function(){setTimeout((function(){a(new TypeError("Network request failed"))}),0)},l.ontimeout=function(){setTimeout((function(){a(new TypeError("Network request failed"))}),0)},l.onabort=function(){setTimeout((function(){a(new t.DOMException("Aborted","AbortError"))}),0)},l.open(u.method,function(e){try{return""===e&&n.location.href?n.location.href:e}catch(t){return e}}(u.url),!0),"include"===u.credentials?l.withCredentials=!0:"omit"===u.credentials&&(l.withCredentials=!1),"responseType"in l&&(o?l.responseType="blob":s&&u.headers.get("Content-Type")&&-1!==u.headers.get("Content-Type").indexOf("application/octet-stream")&&(l.responseType="arraybuffer")),!r||"object"!=typeof r.headers||r.headers instanceof h?u.headers.forEach((function(e,t){l.setRequestHeader(t,e)})):Object.getOwnPropertyNames(r.headers).forEach((function(e){l.setRequestHeader(e,d(r.headers[e]))})),u.signal&&(u.signal.addEventListener("abort",c),l.onreadystatechange=function(){4===l.readyState&&u.signal.removeEventListener("abort",c)}),l.send(void 0===u._bodyInit?null:u._bodyInit)}))}S.polyfill=!0,n.fetch||(n.fetch=S,n.Headers=h,n.Request=w,n.Response=_),t.Headers=h,t.Request=w,t.Response=_,t.fetch=S}({})}(i),i.fetch.ponyfill=!0,delete i.fetch.polyfill;var o=n.fetch?n:i;(t=o.fetch).default=o.fetch,t.fetch=o.fetch,t.Headers=o.Headers,t.Request=o.Request,t.Response=o.Response,e.exports=t}(Bx,Bx.exports);var jx=i(Bx.exports);let Ux=1;const zx=e=>new Promise((t=>{setTimeout((()=>{t(!0)}),e)})),Fx=({checkInstallationOnAllCalls:t=!1,communicationLayerPreference:n,injectProvider:r,shouldShimWeb3:i,platformManager:o,installer:a,sdk:s,remoteConnection:u,debug:l})=>{var c;const d=(({name:e,remoteConnection:t,debug:n})=>{if(!t||!(null==t?void 0:t.getConnector()))throw new Error("Missing remote connection parameter");return new Dx({name:e,remote:null==t?void 0:t.getConnector(),platformManager:null==t?void 0:t.getPlatformManager(),debug:n})})({name:xx.INPAGE,target:xx.CONTENT_SCRIPT,platformManager:o,communicationLayerPreference:n,remoteConnection:u,debug:l}),f=o.getPlatformType(),h=s.options.dappMetadata,p=`Sdk/Javascript SdkVersion/${px} Platform/${f} dApp/${null!==(c=h.url)&&void 0!==c?c:h.name} dAppTitle/${h.name}`;let m=null,g=null;const v=!(!r||f===e.PlatformType.NonBrowser||f===e.PlatformType.ReactNative),y=Ix.init({shouldSetOnWindow:v,connectionStream:d,shouldShimWeb3:i,debug:l});let b=!1;const w=e=>{b=e},A=()=>b,_=(n,r,i,c)=>fA(void 0,void 0,void 0,(function*(){var d,f,h,v,y,_,E,S,k,M,C;if(b){null==u||u.showActiveModal();let e=A();for(;e;)yield zx(1e3),e=A();return l&&console.debug("initializeProvider::sendRequest() initial method completed -- prevent installation and call provider"),i(...r)}const x=o.isMetaMaskInstalled(),R=null==u?void 0:u.isConnected();let{selectedAddress:O,chainId:T}=Ix.getProvider();if(O=null!=O?O:m,T=null!==(d=null!=T?T:g)&&void 0!==d?d:s.defaultReadOnlyChainId,O&&(m=O),T&&(g=T),c&&console.debug(`initializeProvider::sendRequest() method=${n} ongoing=${b} selectedAddress=${O} isInstalled=${x} checkInstallationOnAllCalls=${t} socketConnected=${R}`),O&&n.toLowerCase()===yx.ETH_ACCOUNTS.toLowerCase())return[O];if(T&&n.toLowerCase()===yx.ETH_CHAINID.toLowerCase())return T;const P=[yx.ETH_REQUESTACCOUNTS,yx.METAMASK_CONNECTSIGN,yx.METAMASK_CONNECTWITH],L=!mx[n],I=null===(f=s.options.readonlyRPCMap)||void 0===f?void 0:f[T];if(I&&L)try{const e=null===(h=null==r?void 0:r[0])||void 0===h?void 0:h.params,t=yield(({rpcEndpoint:e,method:t,sdkInfo:n,params:r})=>fA(void 0,void 0,void 0,(function*(){const i=JSON.stringify({jsonrpc:"2.0",method:t,params:r,id:(Ux+=1,Ux)}),o={Accept:"application/json","Content-Type":"application/json"};let a;e.includes("infura")&&(o["Metamask-Sdk-Info"]=n);try{a=yield jx(e,{method:"POST",headers:o,body:i})}catch(e){throw e instanceof Error?new Error(`Failed to fetch from RPC: ${e.message}`):new Error(`Failed to fetch from RPC: ${e}`)}if(!a.ok)throw new Error(`Server responded with a status of ${a.status}`);return(yield a.json()).result})))({rpcEndpoint:I,sdkInfo:p,method:n,params:e||[]});return c&&console.log("initializeProvider::ReadOnlyRPCResponse",t),t}catch(e){console.warn(`initializeProvider::sendRequest() method=${n} readOnlyRPCRequest failed:`,e)}if((!x||x&&!R)&&n!==yx.METAMASK_GETPROVIDERSTATE){if(-1!==P.indexOf(n)||t){w(!0);try{yield a.start({wait:!1})}catch(t){if(w(!1),e.PROVIDER_UPDATE_TYPE.EXTENSION===t){if(l&&console.debug(`initializeProvider extension provider detect: re-create ${n} on the active provider`),n.toLowerCase()===yx.METAMASK_CONNECTSIGN.toLowerCase()){const[e]=r,{params:t}=e,n=yield null===(v=s.getProvider())||void 0===v?void 0:v.request({method:yx.ETH_REQUESTACCOUNTS,params:[]});if(!n.length)throw new Error("SDK state invalid -- undefined accounts");return yield null===(y=s.getProvider())||void 0===y?void 0:y.request({method:yx.PERSONAL_SIGN,params:[t[0],n[0]]})}if(n.toLowerCase()===yx.METAMASK_CONNECTWITH.toLowerCase()){const e=yield null===(_=s.getProvider())||void 0===_?void 0:_.request({method:yx.ETH_REQUESTACCOUNTS,params:[]});if(!e.length)throw new Error("SDK state invalid -- undefined accounts");const[t]=r;console.log("connectWith:: initialMethod",t);const{params:n}=t,[i]=n;if(console.warn("FIXME:: handle CONNECT_WITH",i),(null===(E=i.method)||void 0===E?void 0:E.toLowerCase())===yx.PERSONAL_SIGN.toLowerCase()){const t={method:i.method,params:[i.params[0],e[0]]};return console.log("connectWith:: connectedRpc",t),yield null===(S=s.getProvider())||void 0===S?void 0:S.request(t)}console.warn("FIXME:: handle CONNECT_WITH",i)}return yield null===(k=s.getProvider())||void 0===k?void 0:k.request({method:n,params:r})}throw l&&console.debug(`initializeProvider failed to start installer: ${t}`),t}const o=i(...r);try{yield new Promise(((t,n)=>{null==u||u.getConnector().once(e.EventType.AUTHORIZED,(()=>{t(!0)})),s.once(e.EventType.PROVIDER_UPDATE,(t=>{l&&console.debug("initializeProvider::sendRequest() PROVIDER_UPDATE --- remote provider request interupted",t),t===e.PROVIDER_UPDATE_TYPE.EXTENSION?n(e.EventType.PROVIDER_UPDATE):n(new Error("Connection Terminated"))}))}))}catch(t){if(w(!1),t===e.EventType.PROVIDER_UPDATE)return yield null===(M=s.getProvider())||void 0===M?void 0:M.request({method:n,params:r});throw t}return w(!1),o}if(o.isSecure()&&mx[n])return i(...r);if(s.isExtensionActive())return l&&console.debug(`initializeProvider::sendRequest() EXTENSION active - redirect request '${n}' to it`),yield null===(C=s.getProvider())||void 0===C?void 0:C.request({method:n,params:r});throw l&&console.debug(`initializeProvider::sendRequest() method=${n} --- skip --- not connected/installed`),new Error("MetaMask is not connected/installed, please call eth_requestAccounts to connect first.")}const N=yield i(...r);return l&&console.debug(`initializeProvider::sendRequest() method=${n} rpcResponse:`,N),N})),{request:E}=y;y.request=(...e)=>fA(void 0,void 0,void 0,(function*(){return _(null==e?void 0:e[0].method,e,E,l)}));const{send:S}=y;return y.send=(...e)=>fA(void 0,void 0,void 0,(function*(){return _(null==e?void 0:e[0],e,S,l)})),l&&console.debug("initializeProvider metamaskStream.start()"),d.start(),y};function qx(t){var n,r,i;return fA(this,void 0,void 0,(function*(){const{options:o}=t;t.activeProvider=Fx({communicationLayerPreference:null!==(n=o.communicationLayerPreference)&&void 0!==n?n:e.CommunicationLayerPreference.SOCKET,platformManager:t.platformManager,sdk:t,checkInstallationOnAllCalls:o.checkInstallationOnAllCalls,injectProvider:null===(r=o.injectProvider)||void 0===r||r,shouldShimWeb3:null===(i=o.shouldShimWeb3)||void 0===i||i,installer:t.installer,remoteConnection:t.remoteConnection,debug:t.debug}),function(t){var n,r,i,o;null===(r=null===(n=t.remoteConnection)||void 0===n?void 0:n.getConnector())||void 0===r||r.on(e.EventType.CONNECTION_STATUS,(n=>{t.emit(e.EventType.CONNECTION_STATUS,n)})),null===(o=null===(i=t.remoteConnection)||void 0===i?void 0:i.getConnector())||void 0===o||o.on(e.EventType.SERVICE_STATUS,(n=>{t.emit(e.EventType.SERVICE_STATUS,n)}))}(t)}))}const Wx=()=>{if("undefined"==typeof document)return;let e;const t=document.getElementsByTagName("link");for(let n=0;n{if("state"in e)throw new Error("INVALID EXTENSION PROVIDER");return new Proxy(e,{get:(n,r)=>"request"===r?function(r){return fA(this,void 0,void 0,(function*(){t&&console.debug("[wrapExtensionProvider] Overwriting request method, args:",r);const{method:i,params:o}=r;if(i===yx.METAMASK_BATCH&&Array.isArray(o)){const t=[];for(const n of o){const r=yield null==e?void 0:e.request({method:n.method,params:n.params});t.push(r)}return t}return n.request(r)}))}:n[r]})};var Hx;function $x({mustBeMetaMask:e,debug:t}){return fA(this,void 0,void 0,(function*(){if("undefined"==typeof window)throw new Error("window not available");let n;try{return n=yield new Promise(((e,t)=>{const n=setTimeout((()=>{t(new Error("eip6963RequestProvider timed out"))}),500);window.addEventListener(Hx.Announce,(t=>{const r=t,{detail:{info:i,provider:o}={}}=r,{name:a,rdns:s,uuid:u}=null!=i?i:{};Px.test(u)&&a===Tx.NAME&&s===Tx.RDNS&&(clearTimeout(n),e(o))})),window.dispatchEvent(new Event(Hx.Request))})),Kx({provider:n,debug:t})}catch(n){const{ethereum:r}=window;if(!r)throw new Error("Ethereum not found in window object");if("providers"in r){if(Array.isArray(r.providers)){const n=e?r.providers.find((e=>e.isMetaMask)):r.providers[0];if(!n)throw new Error("No suitable provider found");return Kx({provider:n,debug:t})}}else if(e&&!r.isMetaMask)throw new Error("MetaMask provider not found in Ethereum");return Kx({provider:r,debug:t})}}))}!function(e){e.Announce="eip6963:announceProvider",e.Request="eip6963:requestProvider"}(Hx||(Hx={}));var Yx={exports:{}};!function(e){e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=90)}({17:function(e,t,n){t.__esModule=!0,t.default=void 0;var r=n(18),i=function(){function e(){}return e.getFirstMatch=function(e,t){var n=t.match(e);return n&&n.length>0&&n[1]||""},e.getSecondMatch=function(e,t){var n=t.match(e);return n&&n.length>1&&n[2]||""},e.matchAndReturnConst=function(e,t,n){if(e.test(t))return n},e.getWindowsVersionName=function(e){switch(e){case"NT":return"NT";case"XP":case"NT 5.1":return"XP";case"NT 5.0":return"2000";case"NT 5.2":return"2003";case"NT 6.0":return"Vista";case"NT 6.1":return"7";case"NT 6.2":return"8";case"NT 6.3":return"8.1";case"NT 10.0":return"10";default:return}},e.getMacOSVersionName=function(e){var t=e.split(".").splice(0,2).map((function(e){return parseInt(e,10)||0}));if(t.push(0),10===t[0])switch(t[1]){case 5:return"Leopard";case 6:return"Snow Leopard";case 7:return"Lion";case 8:return"Mountain Lion";case 9:return"Mavericks";case 10:return"Yosemite";case 11:return"El Capitan";case 12:return"Sierra";case 13:return"High Sierra";case 14:return"Mojave";case 15:return"Catalina";default:return}},e.getAndroidVersionName=function(e){var t=e.split(".").splice(0,2).map((function(e){return parseInt(e,10)||0}));if(t.push(0),!(1===t[0]&&t[1]<5))return 1===t[0]&&t[1]<6?"Cupcake":1===t[0]&&t[1]>=6?"Donut":2===t[0]&&t[1]<2?"Eclair":2===t[0]&&2===t[1]?"Froyo":2===t[0]&&t[1]>2?"Gingerbread":3===t[0]?"Honeycomb":4===t[0]&&t[1]<1?"Ice Cream Sandwich":4===t[0]&&t[1]<4?"Jelly Bean":4===t[0]&&t[1]>=4?"KitKat":5===t[0]?"Lollipop":6===t[0]?"Marshmallow":7===t[0]?"Nougat":8===t[0]?"Oreo":9===t[0]?"Pie":void 0},e.getVersionPrecision=function(e){return e.split(".").length},e.compareVersions=function(t,n,r){void 0===r&&(r=!1);var i=e.getVersionPrecision(t),o=e.getVersionPrecision(n),a=Math.max(i,o),s=0,u=e.map([t,n],(function(t){var n=a-e.getVersionPrecision(t),r=t+new Array(n+1).join(".0");return e.map(r.split("."),(function(e){return new Array(20-e.length).join("0")+e})).reverse()}));for(r&&(s=a-Math.min(i,o)),a-=1;a>=s;){if(u[0][a]>u[1][a])return 1;if(u[0][a]===u[1][a]){if(a===s)return 0;a-=1}else if(u[0][a]1?i-1:0),a=1;a0){var a=Object.keys(n),u=s.default.find(a,(function(e){return t.isOS(e)}));if(u){var l=this.satisfies(n[u]);if(void 0!==l)return l}var c=s.default.find(a,(function(e){return t.isPlatform(e)}));if(c){var d=this.satisfies(n[c]);if(void 0!==d)return d}}if(o>0){var f=Object.keys(i),h=s.default.find(f,(function(e){return t.isBrowser(e,!0)}));if(void 0!==h)return this.compareVersion(i[h])}},t.isBrowser=function(e,t){void 0===t&&(t=!1);var n=this.getBrowserName().toLowerCase(),r=e.toLowerCase(),i=s.default.getBrowserTypeByAlias(r);return t&&i&&(r=i.toLowerCase()),r===n},t.compareVersion=function(e){var t=[0],n=e,r=!1,i=this.getBrowserVersion();if("string"==typeof i)return">"===e[0]||"<"===e[0]?(n=e.substr(1),"="===e[1]?(r=!0,n=e.substr(2)):t=[],">"===e[0]?t.push(1):t.push(-1)):"="===e[0]?n=e.substr(1):"~"===e[0]&&(r=!0,n=e.substr(1)),t.indexOf(s.default.compareVersions(i,n,r))>-1},t.isOS=function(e){return this.getOSName(!0)===String(e).toLowerCase()},t.isPlatform=function(e){return this.getPlatformType(!0)===String(e).toLowerCase()},t.isEngine=function(e){return this.getEngineName(!0)===String(e).toLowerCase()},t.is=function(e,t){return void 0===t&&(t=!1),this.isBrowser(e,t)||this.isOS(e)||this.isPlatform(e)},t.some=function(e){var t=this;return void 0===e&&(e=[]),e.some((function(e){return t.is(e)}))},e}();t.default=l,e.exports=t.default},92:function(e,t,n){t.__esModule=!0,t.default=void 0;var r,i=(r=n(17))&&r.__esModule?r:{default:r},o=/version\/(\d+(\.?_?\d+)+)/i,a=[{test:[/googlebot/i],describe:function(e){var t={name:"Googlebot"},n=i.default.getFirstMatch(/googlebot\/(\d+(\.\d+))/i,e)||i.default.getFirstMatch(o,e);return n&&(t.version=n),t}},{test:[/opera/i],describe:function(e){var t={name:"Opera"},n=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/(?:opera)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/opr\/|opios/i],describe:function(e){var t={name:"Opera"},n=i.default.getFirstMatch(/(?:opr|opios)[\s/](\S+)/i,e)||i.default.getFirstMatch(o,e);return n&&(t.version=n),t}},{test:[/SamsungBrowser/i],describe:function(e){var t={name:"Samsung Internet for Android"},n=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/(?:SamsungBrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/Whale/i],describe:function(e){var t={name:"NAVER Whale Browser"},n=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/(?:whale)[\s/](\d+(?:\.\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/MZBrowser/i],describe:function(e){var t={name:"MZ Browser"},n=i.default.getFirstMatch(/(?:MZBrowser)[\s/](\d+(?:\.\d+)+)/i,e)||i.default.getFirstMatch(o,e);return n&&(t.version=n),t}},{test:[/focus/i],describe:function(e){var t={name:"Focus"},n=i.default.getFirstMatch(/(?:focus)[\s/](\d+(?:\.\d+)+)/i,e)||i.default.getFirstMatch(o,e);return n&&(t.version=n),t}},{test:[/swing/i],describe:function(e){var t={name:"Swing"},n=i.default.getFirstMatch(/(?:swing)[\s/](\d+(?:\.\d+)+)/i,e)||i.default.getFirstMatch(o,e);return n&&(t.version=n),t}},{test:[/coast/i],describe:function(e){var t={name:"Opera Coast"},n=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/(?:coast)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/opt\/\d+(?:.?_?\d+)+/i],describe:function(e){var t={name:"Opera Touch"},n=i.default.getFirstMatch(/(?:opt)[\s/](\d+(\.?_?\d+)+)/i,e)||i.default.getFirstMatch(o,e);return n&&(t.version=n),t}},{test:[/yabrowser/i],describe:function(e){var t={name:"Yandex Browser"},n=i.default.getFirstMatch(/(?:yabrowser)[\s/](\d+(\.?_?\d+)+)/i,e)||i.default.getFirstMatch(o,e);return n&&(t.version=n),t}},{test:[/ucbrowser/i],describe:function(e){var t={name:"UC Browser"},n=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/(?:ucbrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/Maxthon|mxios/i],describe:function(e){var t={name:"Maxthon"},n=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/(?:Maxthon|mxios)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/epiphany/i],describe:function(e){var t={name:"Epiphany"},n=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/(?:epiphany)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/puffin/i],describe:function(e){var t={name:"Puffin"},n=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/(?:puffin)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/sleipnir/i],describe:function(e){var t={name:"Sleipnir"},n=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/(?:sleipnir)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/k-meleon/i],describe:function(e){var t={name:"K-Meleon"},n=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/(?:k-meleon)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/micromessenger/i],describe:function(e){var t={name:"WeChat"},n=i.default.getFirstMatch(/(?:micromessenger)[\s/](\d+(\.?_?\d+)+)/i,e)||i.default.getFirstMatch(o,e);return n&&(t.version=n),t}},{test:[/qqbrowser/i],describe:function(e){var t={name:/qqbrowserlite/i.test(e)?"QQ Browser Lite":"QQ Browser"},n=i.default.getFirstMatch(/(?:qqbrowserlite|qqbrowser)[/](\d+(\.?_?\d+)+)/i,e)||i.default.getFirstMatch(o,e);return n&&(t.version=n),t}},{test:[/msie|trident/i],describe:function(e){var t={name:"Internet Explorer"},n=i.default.getFirstMatch(/(?:msie |rv:)(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/\sedg\//i],describe:function(e){var t={name:"Microsoft Edge"},n=i.default.getFirstMatch(/\sedg\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/edg([ea]|ios)/i],describe:function(e){var t={name:"Microsoft Edge"},n=i.default.getSecondMatch(/edg([ea]|ios)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/vivaldi/i],describe:function(e){var t={name:"Vivaldi"},n=i.default.getFirstMatch(/vivaldi\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/seamonkey/i],describe:function(e){var t={name:"SeaMonkey"},n=i.default.getFirstMatch(/seamonkey\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/sailfish/i],describe:function(e){var t={name:"Sailfish"},n=i.default.getFirstMatch(/sailfish\s?browser\/(\d+(\.\d+)?)/i,e);return n&&(t.version=n),t}},{test:[/silk/i],describe:function(e){var t={name:"Amazon Silk"},n=i.default.getFirstMatch(/silk\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/phantom/i],describe:function(e){var t={name:"PhantomJS"},n=i.default.getFirstMatch(/phantomjs\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/slimerjs/i],describe:function(e){var t={name:"SlimerJS"},n=i.default.getFirstMatch(/slimerjs\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe:function(e){var t={name:"BlackBerry"},n=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/blackberry[\d]+\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/(web|hpw)[o0]s/i],describe:function(e){var t={name:"WebOS Browser"},n=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/w(?:eb)?[o0]sbrowser\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/bada/i],describe:function(e){var t={name:"Bada"},n=i.default.getFirstMatch(/dolfin\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/tizen/i],describe:function(e){var t={name:"Tizen"},n=i.default.getFirstMatch(/(?:tizen\s?)?browser\/(\d+(\.?_?\d+)+)/i,e)||i.default.getFirstMatch(o,e);return n&&(t.version=n),t}},{test:[/qupzilla/i],describe:function(e){var t={name:"QupZilla"},n=i.default.getFirstMatch(/(?:qupzilla)[\s/](\d+(\.?_?\d+)+)/i,e)||i.default.getFirstMatch(o,e);return n&&(t.version=n),t}},{test:[/firefox|iceweasel|fxios/i],describe:function(e){var t={name:"Firefox"},n=i.default.getFirstMatch(/(?:firefox|iceweasel|fxios)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/electron/i],describe:function(e){var t={name:"Electron"},n=i.default.getFirstMatch(/(?:electron)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/MiuiBrowser/i],describe:function(e){var t={name:"Miui"},n=i.default.getFirstMatch(/(?:MiuiBrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/chromium/i],describe:function(e){var t={name:"Chromium"},n=i.default.getFirstMatch(/(?:chromium)[\s/](\d+(\.?_?\d+)+)/i,e)||i.default.getFirstMatch(o,e);return n&&(t.version=n),t}},{test:[/chrome|crios|crmo/i],describe:function(e){var t={name:"Chrome"},n=i.default.getFirstMatch(/(?:chrome|crios|crmo)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/GSA/i],describe:function(e){var t={name:"Google Search"},n=i.default.getFirstMatch(/(?:GSA)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:function(e){var t=!e.test(/like android/i),n=e.test(/android/i);return t&&n},describe:function(e){var t={name:"Android Browser"},n=i.default.getFirstMatch(o,e);return n&&(t.version=n),t}},{test:[/playstation 4/i],describe:function(e){var t={name:"PlayStation 4"},n=i.default.getFirstMatch(o,e);return n&&(t.version=n),t}},{test:[/safari|applewebkit/i],describe:function(e){var t={name:"Safari"},n=i.default.getFirstMatch(o,e);return n&&(t.version=n),t}},{test:[/.*/i],describe:function(e){var t=-1!==e.search("\\(")?/^(.*)\/(.*)[ \t]\((.*)/:/^(.*)\/(.*) /;return{name:i.default.getFirstMatch(t,e),version:i.default.getSecondMatch(t,e)}}}];t.default=a,e.exports=t.default},93:function(e,t,n){t.__esModule=!0,t.default=void 0;var r,i=(r=n(17))&&r.__esModule?r:{default:r},o=n(18),a=[{test:[/Roku\/DVP/],describe:function(e){var t=i.default.getFirstMatch(/Roku\/DVP-(\d+\.\d+)/i,e);return{name:o.OS_MAP.Roku,version:t}}},{test:[/windows phone/i],describe:function(e){var t=i.default.getFirstMatch(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i,e);return{name:o.OS_MAP.WindowsPhone,version:t}}},{test:[/windows /i],describe:function(e){var t=i.default.getFirstMatch(/Windows ((NT|XP)( \d\d?.\d)?)/i,e),n=i.default.getWindowsVersionName(t);return{name:o.OS_MAP.Windows,version:t,versionName:n}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe:function(e){var t={name:o.OS_MAP.iOS},n=i.default.getSecondMatch(/(Version\/)(\d[\d.]+)/,e);return n&&(t.version=n),t}},{test:[/macintosh/i],describe:function(e){var t=i.default.getFirstMatch(/mac os x (\d+(\.?_?\d+)+)/i,e).replace(/[_\s]/g,"."),n=i.default.getMacOSVersionName(t),r={name:o.OS_MAP.MacOS,version:t};return n&&(r.versionName=n),r}},{test:[/(ipod|iphone|ipad)/i],describe:function(e){var t=i.default.getFirstMatch(/os (\d+([_\s]\d+)*) like mac os x/i,e).replace(/[_\s]/g,".");return{name:o.OS_MAP.iOS,version:t}}},{test:function(e){var t=!e.test(/like android/i),n=e.test(/android/i);return t&&n},describe:function(e){var t=i.default.getFirstMatch(/android[\s/-](\d+(\.\d+)*)/i,e),n=i.default.getAndroidVersionName(t),r={name:o.OS_MAP.Android,version:t};return n&&(r.versionName=n),r}},{test:[/(web|hpw)[o0]s/i],describe:function(e){var t=i.default.getFirstMatch(/(?:web|hpw)[o0]s\/(\d+(\.\d+)*)/i,e),n={name:o.OS_MAP.WebOS};return t&&t.length&&(n.version=t),n}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe:function(e){var t=i.default.getFirstMatch(/rim\stablet\sos\s(\d+(\.\d+)*)/i,e)||i.default.getFirstMatch(/blackberry\d+\/(\d+([_\s]\d+)*)/i,e)||i.default.getFirstMatch(/\bbb(\d+)/i,e);return{name:o.OS_MAP.BlackBerry,version:t}}},{test:[/bada/i],describe:function(e){var t=i.default.getFirstMatch(/bada\/(\d+(\.\d+)*)/i,e);return{name:o.OS_MAP.Bada,version:t}}},{test:[/tizen/i],describe:function(e){var t=i.default.getFirstMatch(/tizen[/\s](\d+(\.\d+)*)/i,e);return{name:o.OS_MAP.Tizen,version:t}}},{test:[/linux/i],describe:function(){return{name:o.OS_MAP.Linux}}},{test:[/CrOS/],describe:function(){return{name:o.OS_MAP.ChromeOS}}},{test:[/PlayStation 4/],describe:function(e){var t=i.default.getFirstMatch(/PlayStation 4[/\s](\d+(\.\d+)*)/i,e);return{name:o.OS_MAP.PlayStation4,version:t}}}];t.default=a,e.exports=t.default},94:function(e,t,n){t.__esModule=!0,t.default=void 0;var r,i=(r=n(17))&&r.__esModule?r:{default:r},o=n(18),a=[{test:[/googlebot/i],describe:function(){return{type:"bot",vendor:"Google"}}},{test:[/huawei/i],describe:function(e){var t=i.default.getFirstMatch(/(can-l01)/i,e)&&"Nova",n={type:o.PLATFORMS_MAP.mobile,vendor:"Huawei"};return t&&(n.model=t),n}},{test:[/nexus\s*(?:7|8|9|10).*/i],describe:function(){return{type:o.PLATFORMS_MAP.tablet,vendor:"Nexus"}}},{test:[/ipad/i],describe:function(){return{type:o.PLATFORMS_MAP.tablet,vendor:"Apple",model:"iPad"}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe:function(){return{type:o.PLATFORMS_MAP.tablet,vendor:"Apple",model:"iPad"}}},{test:[/kftt build/i],describe:function(){return{type:o.PLATFORMS_MAP.tablet,vendor:"Amazon",model:"Kindle Fire HD 7"}}},{test:[/silk/i],describe:function(){return{type:o.PLATFORMS_MAP.tablet,vendor:"Amazon"}}},{test:[/tablet(?! pc)/i],describe:function(){return{type:o.PLATFORMS_MAP.tablet}}},{test:function(e){var t=e.test(/ipod|iphone/i),n=e.test(/like (ipod|iphone)/i);return t&&!n},describe:function(e){var t=i.default.getFirstMatch(/(ipod|iphone)/i,e);return{type:o.PLATFORMS_MAP.mobile,vendor:"Apple",model:t}}},{test:[/nexus\s*[0-6].*/i,/galaxy nexus/i],describe:function(){return{type:o.PLATFORMS_MAP.mobile,vendor:"Nexus"}}},{test:[/[^-]mobi/i],describe:function(){return{type:o.PLATFORMS_MAP.mobile}}},{test:function(e){return"blackberry"===e.getBrowserName(!0)},describe:function(){return{type:o.PLATFORMS_MAP.mobile,vendor:"BlackBerry"}}},{test:function(e){return"bada"===e.getBrowserName(!0)},describe:function(){return{type:o.PLATFORMS_MAP.mobile}}},{test:function(e){return"windows phone"===e.getBrowserName()},describe:function(){return{type:o.PLATFORMS_MAP.mobile,vendor:"Microsoft"}}},{test:function(e){var t=Number(String(e.getOSVersion()).split(".")[0]);return"android"===e.getOSName(!0)&&t>=3},describe:function(){return{type:o.PLATFORMS_MAP.tablet}}},{test:function(e){return"android"===e.getOSName(!0)},describe:function(){return{type:o.PLATFORMS_MAP.mobile}}},{test:function(e){return"macos"===e.getOSName(!0)},describe:function(){return{type:o.PLATFORMS_MAP.desktop,vendor:"Apple"}}},{test:function(e){return"windows"===e.getOSName(!0)},describe:function(){return{type:o.PLATFORMS_MAP.desktop}}},{test:function(e){return"linux"===e.getOSName(!0)},describe:function(){return{type:o.PLATFORMS_MAP.desktop}}},{test:function(e){return"playstation 4"===e.getOSName(!0)},describe:function(){return{type:o.PLATFORMS_MAP.tv}}},{test:function(e){return"roku"===e.getOSName(!0)},describe:function(){return{type:o.PLATFORMS_MAP.tv}}}];t.default=a,e.exports=t.default},95:function(e,t,n){t.__esModule=!0,t.default=void 0;var r,i=(r=n(17))&&r.__esModule?r:{default:r},o=n(18),a=[{test:function(e){return"microsoft edge"===e.getBrowserName(!0)},describe:function(e){if(/\sedg\//i.test(e))return{name:o.ENGINE_MAP.Blink};var t=i.default.getFirstMatch(/edge\/(\d+(\.?_?\d+)+)/i,e);return{name:o.ENGINE_MAP.EdgeHTML,version:t}}},{test:[/trident/i],describe:function(e){var t={name:o.ENGINE_MAP.Trident},n=i.default.getFirstMatch(/trident\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:function(e){return e.test(/presto/i)},describe:function(e){var t={name:o.ENGINE_MAP.Presto},n=i.default.getFirstMatch(/presto\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:function(e){var t=e.test(/gecko/i),n=e.test(/like gecko/i);return t&&!n},describe:function(e){var t={name:o.ENGINE_MAP.Gecko},n=i.default.getFirstMatch(/gecko\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/(apple)?webkit\/537\.36/i],describe:function(){return{name:o.ENGINE_MAP.Blink}}},{test:[/(apple)?webkit/i],describe:function(e){var t={name:o.ENGINE_MAP.WebKit},n=i.default.getFirstMatch(/webkit\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}}];t.default=a,e.exports=t.default}})}(Yx);var Gx,Qx=i(Yx.exports);!function(e){e.Disabled="Disabled",e.Temporary="Temporary",e.UntilResponse="UntilResponse"}(Gx||(Gx={}));const Zx=()=>"wakeLock"in navigator,Xx=()=>{if("undefined"==typeof navigator)return!1;const{userAgent:e}=navigator,t=/CPU (?:iPhone )?OS (\d+)(?:_\d+)?_?\d+ like Mac OS X/iu.exec(e);return!!t&&(parseInt(t[1],10)<10&&!window.MSStream)};class Jx{constructor(e){this.enabled=!1,this._eventsAdded=!1,this.debug=null!=e&&e}start(){if(this.enabled=!1,Zx()&&!this._eventsAdded){this._eventsAdded=!0,this._wakeLock=void 0;const e=()=>fA(this,void 0,void 0,(function*(){null!==this._wakeLock&&"visible"===document.visibilityState&&(yield this.enable())}));document.addEventListener("visibilitychange",e),document.addEventListener("fullscreenchange",e)}else Xx()?this.noSleepTimer=void 0:(this.noSleepVideo=document.createElement("video"),this.noSleepVideo.setAttribute("title","MetaMask SDK - Listening for responses"),this.noSleepVideo.setAttribute("playsinline",""),this._addSourceToVideo(this.noSleepVideo,"webm","data:video/webm;base64,GkXfowEAAAAAAAAfQoaBAUL3gQFC8oEEQvOBCEKChHdlYm1Ch4EEQoWBAhhTgGcBAAAAAAAVkhFNm3RALE27i1OrhBVJqWZTrIHfTbuMU6uEFlSua1OsggEwTbuMU6uEHFO7a1OsghV17AEAAAAAAACkAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAVSalmAQAAAAAAAEUq17GDD0JATYCNTGF2ZjU1LjMzLjEwMFdBjUxhdmY1NS4zMy4xMDBzpJBlrrXf3DCDVB8KcgbMpcr+RImIQJBgAAAAAAAWVK5rAQAAAAAAD++uAQAAAAAAADLXgQFzxYEBnIEAIrWcg3VuZIaFVl9WUDiDgQEj44OEAmJaAOABAAAAAAAABrCBsLqBkK4BAAAAAAAPq9eBAnPFgQKcgQAitZyDdW5khohBX1ZPUkJJU4OBAuEBAAAAAAAAEZ+BArWIQOdwAAAAAABiZIEgY6JPbwIeVgF2b3JiaXMAAAAAAoC7AAAAAAAAgLUBAAAAAAC4AQN2b3JiaXMtAAAAWGlwaC5PcmcgbGliVm9yYmlzIEkgMjAxMDExMDEgKFNjaGF1ZmVudWdnZXQpAQAAABUAAABlbmNvZGVyPUxhdmM1NS41Mi4xMDIBBXZvcmJpcyVCQ1YBAEAAACRzGCpGpXMWhBAaQlAZ4xxCzmvsGUJMEYIcMkxbyyVzkCGkoEKIWyiB0JBVAABAAACHQXgUhIpBCCGEJT1YkoMnPQghhIg5eBSEaUEIIYQQQgghhBBCCCGERTlokoMnQQgdhOMwOAyD5Tj4HIRFOVgQgydB6CCED0K4moOsOQghhCQ1SFCDBjnoHITCLCiKgsQwuBaEBDUojILkMMjUgwtCiJqDSTX4GoRnQXgWhGlBCCGEJEFIkIMGQcgYhEZBWJKDBjm4FITLQagahCo5CB+EIDRkFQCQAACgoiiKoigKEBqyCgDIAAAQQFEUx3EcyZEcybEcCwgNWQUAAAEACAAAoEiKpEiO5EiSJFmSJVmSJVmS5omqLMuyLMuyLMsyEBqyCgBIAABQUQxFcRQHCA1ZBQBkAAAIoDiKpViKpWiK54iOCISGrAIAgAAABAAAEDRDUzxHlETPVFXXtm3btm3btm3btm3btm1blmUZCA1ZBQBAAAAQ0mlmqQaIMAMZBkJDVgEACAAAgBGKMMSA0JBVAABAAACAGEoOogmtOd+c46BZDppKsTkdnEi1eZKbirk555xzzsnmnDHOOeecopxZDJoJrTnnnMSgWQqaCa0555wnsXnQmiqtOeeccc7pYJwRxjnnnCateZCajbU555wFrWmOmkuxOeecSLl5UptLtTnnnHPOOeecc84555zqxekcnBPOOeecqL25lpvQxTnnnE/G6d6cEM4555xzzjnnnHPOOeecIDRkFQAABABAEIaNYdwpCNLnaCBGEWIaMulB9+gwCRqDnELq0ehopJQ6CCWVcVJKJwgNWQUAAAIAQAghhRRSSCGFFFJIIYUUYoghhhhyyimnoIJKKqmooowyyyyzzDLLLLPMOuyssw47DDHEEEMrrcRSU2011lhr7jnnmoO0VlprrbVSSimllFIKQkNWAQAgAAAEQgYZZJBRSCGFFGKIKaeccgoqqIDQkFUAACAAgAAAAABP8hzRER3RER3RER3RER3R8RzPESVREiVREi3TMjXTU0VVdWXXlnVZt31b2IVd933d933d+HVhWJZlWZZlWZZlWZZlWZZlWZYgNGQVAAACAAAghBBCSCGFFFJIKcYYc8w56CSUEAgNWQUAAAIACAAAAHAUR3EcyZEcSbIkS9IkzdIsT/M0TxM9URRF0zRV0RVdUTdtUTZl0zVdUzZdVVZtV5ZtW7Z125dl2/d93/d93/d93/d93/d9XQdCQ1YBABIAADqSIymSIimS4ziOJElAaMgqAEAGAEAAAIriKI7jOJIkSZIlaZJneZaomZrpmZ4qqkBoyCoAABAAQAAAAAAAAIqmeIqpeIqoeI7oiJJomZaoqZoryqbsuq7ruq7ruq7ruq7ruq7ruq7ruq7ruq7ruq7ruq7ruq7ruq4LhIasAgAkAAB0JEdyJEdSJEVSJEdygNCQVQCADACAAAAcwzEkRXIsy9I0T/M0TxM90RM901NFV3SB0JBVAAAgAIAAAAAAAAAMybAUy9EcTRIl1VItVVMt1VJF1VNVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVN0zRNEwgNWQkAkAEAkBBTLS3GmgmLJGLSaqugYwxS7KWxSCpntbfKMYUYtV4ah5RREHupJGOKQcwtpNApJq3WVEKFFKSYYyoVUg5SIDRkhQAQmgHgcBxAsixAsiwAAAAAAAAAkDQN0DwPsDQPAAAAAAAAACRNAyxPAzTPAwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABA0jRA8zxA8zwAAAAAAAAA0DwP8DwR8EQRAAAAAAAAACzPAzTRAzxRBAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABA0jRA8zxA8zwAAAAAAAAAsDwP8EQR0DwRAAAAAAAAACzPAzxRBDzRAwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAEOAAABBgIRQasiIAiBMAcEgSJAmSBM0DSJYFTYOmwTQBkmVB06BpME0AAAAAAAAAAAAAJE2DpkHTIIoASdOgadA0iCIAAAAAAAAAAAAAkqZB06BpEEWApGnQNGgaRBEAAAAAAAAAAAAAzzQhihBFmCbAM02IIkQRpgkAAAAAAAAAAAAAAAAAAAAAAAAAAAAACAAAGHAAAAgwoQwUGrIiAIgTAHA4imUBAIDjOJYFAACO41gWAABYliWKAABgWZooAgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAIAAAYcAAACDChDBQashIAiAIAcCiKZQHHsSzgOJYFJMmyAJYF0DyApgFEEQAIAAAocAAACLBBU2JxgEJDVgIAUQAABsWxLE0TRZKkaZoniiRJ0zxPFGma53meacLzPM80IYqiaJoQRVE0TZimaaoqME1VFQAAUOAAABBgg6bE4gCFhqwEAEICAByKYlma5nmeJ4qmqZokSdM8TxRF0TRNU1VJkqZ5niiKommapqqyLE3zPFEURdNUVVWFpnmeKIqiaaqq6sLzPE8URdE0VdV14XmeJ4qiaJqq6roQRVE0TdNUTVV1XSCKpmmaqqqqrgtETxRNU1Vd13WB54miaaqqq7ouEE3TVFVVdV1ZBpimaaqq68oyQFVV1XVdV5YBqqqqruu6sgxQVdd1XVmWZQCu67qyLMsCAAAOHAAAAoygk4wqi7DRhAsPQKEhKwKAKAAAwBimFFPKMCYhpBAaxiSEFEImJaXSUqogpFJSKRWEVEoqJaOUUmopVRBSKamUCkIqJZVSAADYgQMA2IGFUGjISgAgDwCAMEYpxhhzTiKkFGPOOScRUoox55yTSjHmnHPOSSkZc8w556SUzjnnnHNSSuacc845KaVzzjnnnJRSSuecc05KKSWEzkEnpZTSOeecEwAAVOAAABBgo8jmBCNBhYasBABSAQAMjmNZmuZ5omialiRpmud5niiapiZJmuZ5nieKqsnzPE8URdE0VZXneZ4oiqJpqirXFUXTNE1VVV2yLIqmaZqq6rowTdNUVdd1XZimaaqq67oubFtVVdV1ZRm2raqq6rqyDFzXdWXZloEsu67s2rIAAPAEBwCgAhtWRzgpGgssNGQlAJABAEAYg5BCCCFlEEIKIYSUUggJAAAYcAAACDChDBQashIASAUAAIyx1lprrbXWQGettdZaa62AzFprrbXWWmuttdZaa6211lJrrbXWWmuttdZaa6211lprrbXWWmuttdZaa6211lprrbXWWmuttdZaa6211lprrbXWWmstpZRSSimllFJKKaWUUkoppZRSSgUA+lU4APg/2LA6wknRWGChISsBgHAAAMAYpRhzDEIppVQIMeacdFRai7FCiDHnJKTUWmzFc85BKCGV1mIsnnMOQikpxVZjUSmEUlJKLbZYi0qho5JSSq3VWIwxqaTWWoutxmKMSSm01FqLMRYjbE2ptdhqq7EYY2sqLbQYY4zFCF9kbC2m2moNxggjWywt1VprMMYY3VuLpbaaizE++NpSLDHWXAAAd4MDAESCjTOsJJ0VjgYXGrISAAgJACAQUooxxhhzzjnnpFKMOeaccw5CCKFUijHGnHMOQgghlIwx5pxzEEIIIYRSSsaccxBCCCGEkFLqnHMQQgghhBBKKZ1zDkIIIYQQQimlgxBCCCGEEEoopaQUQgghhBBCCKmklEIIIYRSQighlZRSCCGEEEIpJaSUUgohhFJCCKGElFJKKYUQQgillJJSSimlEkoJJYQSUikppRRKCCGUUkpKKaVUSgmhhBJKKSWllFJKIYQQSikFAAAcOAAABBhBJxlVFmGjCRcegEJDVgIAZAAAkKKUUiktRYIipRikGEtGFXNQWoqocgxSzalSziDmJJaIMYSUk1Qy5hRCDELqHHVMKQYtlRhCxhik2HJLoXMOAAAAQQCAgJAAAAMEBTMAwOAA4XMQdAIERxsAgCBEZohEw0JweFAJEBFTAUBigkIuAFRYXKRdXECXAS7o4q4DIQQhCEEsDqCABByccMMTb3jCDU7QKSp1IAAAAAAADADwAACQXAAREdHMYWRobHB0eHyAhIiMkAgAAAAAABcAfAAAJCVAREQ0cxgZGhscHR4fICEiIyQBAIAAAgAAAAAggAAEBAQAAAAAAAIAAAAEBB9DtnUBAAAAAAAEPueBAKOFggAAgACjzoEAA4BwBwCdASqwAJAAAEcIhYWIhYSIAgIABhwJ7kPfbJyHvtk5D32ych77ZOQ99snIe+2TkPfbJyHvtk5D32ych77ZOQ99YAD+/6tQgKOFggADgAqjhYIAD4AOo4WCACSADqOZgQArADECAAEQEAAYABhYL/QACIBDmAYAAKOFggA6gA6jhYIAT4AOo5mBAFMAMQIAARAQABgAGFgv9AAIgEOYBgAAo4WCAGSADqOFggB6gA6jmYEAewAxAgABEBAAGAAYWC/0AAiAQ5gGAACjhYIAj4AOo5mBAKMAMQIAARAQABgAGFgv9AAIgEOYBgAAo4WCAKSADqOFggC6gA6jmYEAywAxAgABEBAAGAAYWC/0AAiAQ5gGAACjhYIAz4AOo4WCAOSADqOZgQDzADECAAEQEAAYABhYL/QACIBDmAYAAKOFggD6gA6jhYIBD4AOo5iBARsAEQIAARAQFGAAYWC/0AAiAQ5gGACjhYIBJIAOo4WCATqADqOZgQFDADECAAEQEAAYABhYL/QACIBDmAYAAKOFggFPgA6jhYIBZIAOo5mBAWsAMQIAARAQABgAGFgv9AAIgEOYBgAAo4WCAXqADqOFggGPgA6jmYEBkwAxAgABEBAAGAAYWC/0AAiAQ5gGAACjhYIBpIAOo4WCAbqADqOZgQG7ADECAAEQEAAYABhYL/QACIBDmAYAAKOFggHPgA6jmYEB4wAxAgABEBAAGAAYWC/0AAiAQ5gGAACjhYIB5IAOo4WCAfqADqOZgQILADECAAEQEAAYABhYL/QACIBDmAYAAKOFggIPgA6jhYICJIAOo5mBAjMAMQIAARAQABgAGFgv9AAIgEOYBgAAo4WCAjqADqOFggJPgA6jmYECWwAxAgABEBAAGAAYWC/0AAiAQ5gGAACjhYICZIAOo4WCAnqADqOZgQKDADECAAEQEAAYABhYL/QACIBDmAYAAKOFggKPgA6jhYICpIAOo5mBAqsAMQIAARAQABgAGFgv9AAIgEOYBgAAo4WCArqADqOFggLPgA6jmIEC0wARAgABEBAUYABhYL/QACIBDmAYAKOFggLkgA6jhYIC+oAOo5mBAvsAMQIAARAQABgAGFgv9AAIgEOYBgAAo4WCAw+ADqOZgQMjADECAAEQEAAYABhYL/QACIBDmAYAAKOFggMkgA6jhYIDOoAOo5mBA0sAMQIAARAQABgAGFgv9AAIgEOYBgAAo4WCA0+ADqOFggNkgA6jmYEDcwAxAgABEBAAGAAYWC/0AAiAQ5gGAACjhYIDeoAOo4WCA4+ADqOZgQObADECAAEQEAAYABhYL/QACIBDmAYAAKOFggOkgA6jhYIDuoAOo5mBA8MAMQIAARAQABgAGFgv9AAIgEOYBgAAo4WCA8+ADqOFggPkgA6jhYID+oAOo4WCBA+ADhxTu2sBAAAAAAAAEbuPs4EDt4r3gQHxghEr8IEK"),this._addSourceToVideo(this.noSleepVideo,"mp4","data:video/mp4;base64,AAAAHGZ0eXBNNFYgAAACAGlzb21pc28yYXZjMQAAAAhmcmVlAAAGF21kYXTeBAAAbGliZmFhYyAxLjI4AABCAJMgBDIARwAAArEGBf//rdxF6b3m2Ui3lizYINkj7u94MjY0IC0gY29yZSAxNDIgcjIgOTU2YzhkOCAtIEguMjY0L01QRUctNCBBVkMgY29kZWMgLSBDb3B5bGVmdCAyMDAzLTIwMTQgLSBodHRwOi8vd3d3LnZpZGVvbGFuLm9yZy94MjY0Lmh0bWwgLSBvcHRpb25zOiBjYWJhYz0wIHJlZj0zIGRlYmxvY2s9MTowOjAgYW5hbHlzZT0weDE6MHgxMTEgbWU9aGV4IHN1Ym1lPTcgcHN5PTEgcHN5X3JkPTEuMDA6MC4wMCBtaXhlZF9yZWY9MSBtZV9yYW5nZT0xNiBjaHJvbWFfbWU9MSB0cmVsbGlzPTEgOHg4ZGN0PTAgY3FtPTAgZGVhZHpvbmU9MjEsMTEgZmFzdF9wc2tpcD0xIGNocm9tYV9xcF9vZmZzZXQ9LTIgdGhyZWFkcz02IGxvb2thaGVhZF90aHJlYWRzPTEgc2xpY2VkX3RocmVhZHM9MCBucj0wIGRlY2ltYXRlPTEgaW50ZXJsYWNlZD0wIGJsdXJheV9jb21wYXQ9MCBjb25zdHJhaW5lZF9pbnRyYT0wIGJmcmFtZXM9MCB3ZWlnaHRwPTAga2V5aW50PTI1MCBrZXlpbnRfbWluPTI1IHNjZW5lY3V0PTQwIGludHJhX3JlZnJlc2g9MCByY19sb29rYWhlYWQ9NDAgcmM9Y3JmIG1idHJlZT0xIGNyZj0yMy4wIHFjb21wPTAuNjAgcXBtaW49MCBxcG1heD02OSBxcHN0ZXA9NCB2YnZfbWF4cmF0ZT03NjggdmJ2X2J1ZnNpemU9MzAwMCBjcmZfbWF4PTAuMCBuYWxfaHJkPW5vbmUgZmlsbGVyPTAgaXBfcmF0aW89MS40MCBhcT0xOjEuMDAAgAAAAFZliIQL8mKAAKvMnJycnJycnJycnXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXiEASZACGQAjgCEASZACGQAjgAAAAAdBmjgX4GSAIQBJkAIZACOAAAAAB0GaVAX4GSAhAEmQAhkAI4AhAEmQAhkAI4AAAAAGQZpgL8DJIQBJkAIZACOAIQBJkAIZACOAAAAABkGagC/AySEASZACGQAjgAAAAAZBmqAvwMkhAEmQAhkAI4AhAEmQAhkAI4AAAAAGQZrAL8DJIQBJkAIZACOAAAAABkGa4C/AySEASZACGQAjgCEASZACGQAjgAAAAAZBmwAvwMkhAEmQAhkAI4AAAAAGQZsgL8DJIQBJkAIZACOAIQBJkAIZACOAAAAABkGbQC/AySEASZACGQAjgCEASZACGQAjgAAAAAZBm2AvwMkhAEmQAhkAI4AAAAAGQZuAL8DJIQBJkAIZACOAIQBJkAIZACOAAAAABkGboC/AySEASZACGQAjgAAAAAZBm8AvwMkhAEmQAhkAI4AhAEmQAhkAI4AAAAAGQZvgL8DJIQBJkAIZACOAAAAABkGaAC/AySEASZACGQAjgCEASZACGQAjgAAAAAZBmiAvwMkhAEmQAhkAI4AhAEmQAhkAI4AAAAAGQZpAL8DJIQBJkAIZACOAAAAABkGaYC/AySEASZACGQAjgCEASZACGQAjgAAAAAZBmoAvwMkhAEmQAhkAI4AAAAAGQZqgL8DJIQBJkAIZACOAIQBJkAIZACOAAAAABkGawC/AySEASZACGQAjgAAAAAZBmuAvwMkhAEmQAhkAI4AhAEmQAhkAI4AAAAAGQZsAL8DJIQBJkAIZACOAAAAABkGbIC/AySEASZACGQAjgCEASZACGQAjgAAAAAZBm0AvwMkhAEmQAhkAI4AhAEmQAhkAI4AAAAAGQZtgL8DJIQBJkAIZACOAAAAABkGbgCvAySEASZACGQAjgCEASZACGQAjgAAAAAZBm6AnwMkhAEmQAhkAI4AhAEmQAhkAI4AhAEmQAhkAI4AhAEmQAhkAI4AAAAhubW9vdgAAAGxtdmhkAAAAAAAAAAAAAAAAAAAD6AAABDcAAQAAAQAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAwAAAzB0cmFrAAAAXHRraGQAAAADAAAAAAAAAAAAAAABAAAAAAAAA+kAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAABAAAAAALAAAACQAAAAAAAkZWR0cwAAABxlbHN0AAAAAAAAAAEAAAPpAAAAAAABAAAAAAKobWRpYQAAACBtZGhkAAAAAAAAAAAAAAAAAAB1MAAAdU5VxAAAAAAALWhkbHIAAAAAAAAAAHZpZGUAAAAAAAAAAAAAAABWaWRlb0hhbmRsZXIAAAACU21pbmYAAAAUdm1oZAAAAAEAAAAAAAAAAAAAACRkaW5mAAAAHGRyZWYAAAAAAAAAAQAAAAx1cmwgAAAAAQAAAhNzdGJsAAAAr3N0c2QAAAAAAAAAAQAAAJ9hdmMxAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAALAAkABIAAAASAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAGP//AAAALWF2Y0MBQsAN/+EAFWdCwA3ZAsTsBEAAAPpAADqYA8UKkgEABWjLg8sgAAAAHHV1aWRraEDyXyRPxbo5pRvPAyPzAAAAAAAAABhzdHRzAAAAAAAAAAEAAAAeAAAD6QAAABRzdHNzAAAAAAAAAAEAAAABAAAAHHN0c2MAAAAAAAAAAQAAAAEAAAABAAAAAQAAAIxzdHN6AAAAAAAAAAAAAAAeAAADDwAAAAsAAAALAAAACgAAAAoAAAAKAAAACgAAAAoAAAAKAAAACgAAAAoAAAAKAAAACgAAAAoAAAAKAAAACgAAAAoAAAAKAAAACgAAAAoAAAAKAAAACgAAAAoAAAAKAAAACgAAAAoAAAAKAAAACgAAAAoAAAAKAAAAiHN0Y28AAAAAAAAAHgAAAEYAAANnAAADewAAA5gAAAO0AAADxwAAA+MAAAP2AAAEEgAABCUAAARBAAAEXQAABHAAAASMAAAEnwAABLsAAATOAAAE6gAABQYAAAUZAAAFNQAABUgAAAVkAAAFdwAABZMAAAWmAAAFwgAABd4AAAXxAAAGDQAABGh0cmFrAAAAXHRraGQAAAADAAAAAAAAAAAAAAACAAAAAAAABDcAAAAAAAAAAAAAAAEBAAAAAAEAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAkZWR0cwAAABxlbHN0AAAAAAAAAAEAAAQkAAADcAABAAAAAAPgbWRpYQAAACBtZGhkAAAAAAAAAAAAAAAAAAC7gAAAykBVxAAAAAAALWhkbHIAAAAAAAAAAHNvdW4AAAAAAAAAAAAAAABTb3VuZEhhbmRsZXIAAAADi21pbmYAAAAQc21oZAAAAAAAAAAAAAAAJGRpbmYAAAAcZHJlZgAAAAAAAAABAAAADHVybCAAAAABAAADT3N0YmwAAABnc3RzZAAAAAAAAAABAAAAV21wNGEAAAAAAAAAAQAAAAAAAAAAAAIAEAAAAAC7gAAAAAAAM2VzZHMAAAAAA4CAgCIAAgAEgICAFEAVBbjYAAu4AAAADcoFgICAAhGQBoCAgAECAAAAIHN0dHMAAAAAAAAAAgAAADIAAAQAAAAAAQAAAkAAAAFUc3RzYwAAAAAAAAAbAAAAAQAAAAEAAAABAAAAAgAAAAIAAAABAAAAAwAAAAEAAAABAAAABAAAAAIAAAABAAAABgAAAAEAAAABAAAABwAAAAIAAAABAAAACAAAAAEAAAABAAAACQAAAAIAAAABAAAACgAAAAEAAAABAAAACwAAAAIAAAABAAAADQAAAAEAAAABAAAADgAAAAIAAAABAAAADwAAAAEAAAABAAAAEAAAAAIAAAABAAAAEQAAAAEAAAABAAAAEgAAAAIAAAABAAAAFAAAAAEAAAABAAAAFQAAAAIAAAABAAAAFgAAAAEAAAABAAAAFwAAAAIAAAABAAAAGAAAAAEAAAABAAAAGQAAAAIAAAABAAAAGgAAAAEAAAABAAAAGwAAAAIAAAABAAAAHQAAAAEAAAABAAAAHgAAAAIAAAABAAAAHwAAAAQAAAABAAAA4HN0c3oAAAAAAAAAAAAAADMAAAAaAAAACQAAAAkAAAAJAAAACQAAAAkAAAAJAAAACQAAAAkAAAAJAAAACQAAAAkAAAAJAAAACQAAAAkAAAAJAAAACQAAAAkAAAAJAAAACQAAAAkAAAAJAAAACQAAAAkAAAAJAAAACQAAAAkAAAAJAAAACQAAAAkAAAAJAAAACQAAAAkAAAAJAAAACQAAAAkAAAAJAAAACQAAAAkAAAAJAAAACQAAAAkAAAAJAAAACQAAAAkAAAAJAAAACQAAAAkAAAAJAAAACQAAAAkAAACMc3RjbwAAAAAAAAAfAAAALAAAA1UAAANyAAADhgAAA6IAAAO+AAAD0QAAA+0AAAQAAAAEHAAABC8AAARLAAAEZwAABHoAAASWAAAEqQAABMUAAATYAAAE9AAABRAAAAUjAAAFPwAABVIAAAVuAAAFgQAABZ0AAAWwAAAFzAAABegAAAX7AAAGFwAAAGJ1ZHRhAAAAWm1ldGEAAAAAAAAAIWhkbHIAAAAAAAAAAG1kaXJhcHBsAAAAAAAAAAAAAAAALWlsc3QAAAAlqXRvbwAAAB1kYXRhAAAAAQAAAABMYXZmNTUuMzMuMTAw"),this.noSleepVideo.addEventListener("loadedmetadata",(()=>{this.debug&&console.debug("WakeLockManager::start() video loadedmetadata",this.noSleepVideo),this.noSleepVideo&&(this.noSleepVideo.duration<=1?this.noSleepVideo.setAttribute("loop",""):this.noSleepVideo.addEventListener("timeupdate",(()=>{this.noSleepVideo&&this.noSleepVideo.currentTime>.5&&(this.noSleepVideo.currentTime=Math.random())})))})))}_addSourceToVideo(e,t,n){const r=document.createElement("source");r.src=n,r.type=`video/${t}`,e.appendChild(r)}isEnabled(){return this.enabled}setDebug(e){e&&!this.debug&&console.debug("WakeLockManager::setDebug() activate debug mode"),this.debug=e}enable(){return fA(this,void 0,void 0,(function*(){this.enabled&&this.disable("from_enable");const e=Zx(),t=Xx();if(this.debug&&console.debug(`WakeLockManager::enable() hasWakelock=${e} isOldIos=${t}`,this.noSleepVideo),this.start(),Zx())try{const e=yield navigator.wakeLock.request("screen");this._wakeLock=e,this.enabled=!0}catch(e){return this.debug&&console.error("WakeLockManager::enable() failed to enable wake lock",e),this.enabled=!1,!1}else if(Xx())return this.disable("from_enable_old_ios"),this.noSleepTimer=window.setInterval((()=>{document.hidden||(window.location.href=window.location.href.split("#")[0],window.setTimeout(window.stop,0))}),15e3),this.enabled=!0,!0;return!!this.noSleepVideo&&(this.noSleepVideo.play().then((()=>{this.debug&&console.debug("WakeLockManager::enable() video started playing successfully")})).catch((e=>{console.warn("WakeLockManager::enable() video failed to play",e)})),this.enabled=!0,!0)}))}disable(e){if(this.enabled){if(this.debug&&console.debug(`WakeLockManager::disable() context=${e}`),Zx())this._wakeLock&&(this.debug&&console.debug("WakeLockManager::disable() release wake lock"),this._wakeLock.release()),this._wakeLock=void 0;else if(Xx())this.noSleepTimer&&(console.warn("\n NoSleep now disabled for older iOS devices.\n "),window.clearInterval(this.noSleepTimer),this.noSleepTimer=void 0);else try{if(!this.noSleepVideo)return void(this.debug&&console.debug("WakeLockManager::disable() noSleepVideo is undefined"));this.debug&&console.debug("WakeLockManager::disable() pause noSleepVideo"),this.noSleepVideo.firstChild&&(this.noSleepVideo.removeChild(this.noSleepVideo.firstChild),this.noSleepVideo.load()),this.noSleepVideo.pause(),this.noSleepVideo.src="",this.noSleepVideo.remove()}catch(e){console.log(e)}this.enabled=!1}}}const eR=2e3,tR=4e4,nR=500;class rR{constructor({useDeepLink:e,preferredOpenLink:t,wakeLockStatus:n=Gx.UntilResponse,debug:r=!1}){this.state={wakeLock:new Jx,wakeLockStatus:Gx.UntilResponse,wakeLockTimer:void 0,wakeLockFeatureActive:!1,platformType:void 0,useDeeplink:!1,preferredOpenLink:void 0,debug:!1},this.state.platformType=this.getPlatformType(),this.state.useDeeplink=e,this.state.preferredOpenLink=t,this.state.wakeLockStatus=n,this.state.debug=r,this.state.wakeLock.setDebug(r)}enableWakeLock(){return function(e){const{state:t}=e;if(t.wakeLockStatus===Gx.Disabled)return void(t.debug&&console.debug("WakeLock is disabled"));t.wakeLock.enable().catch((e=>{console.error("WakeLock is not supported",e)}));const n=t.wakeLockStatus===Gx.Temporary?eR:tR;t.wakeLockTimer=setTimeout((()=>{e.disableWakeLock()}),n),t.wakeLockFeatureActive||t.wakeLockStatus!==Gx.UntilResponse||(t.wakeLockFeatureActive=!0,window.addEventListener("focus",(()=>{e.disableWakeLock()})))}(this)}disableWakeLock(){return function(e){const{state:t}=e;t.wakeLockStatus!==Gx.Disabled&&(t.wakeLockTimer&&clearTimeout(t.wakeLockTimer),t.wakeLock.disable("disableWakeLock"))}(this)}openDeeplink(e,t,n){return function(e,t,n,r){const{state:i}=e;i.debug&&(console.debug(`Platform::openDeepLink universalLink --\x3e ${t}`),console.debug(`Platform::openDeepLink deepLink --\x3e ${n}`)),e.isBrowser()&&e.enableWakeLock();try{if(i.preferredOpenLink)return void i.preferredOpenLink(i.useDeeplink?n:t,r);if(i.debug&&console.warn(`Platform::openDeepLink() open link now useDeepLink=${i.useDeeplink}`,i.useDeeplink?n:t),"undefined"!=typeof window){let e;e=i.useDeeplink?window.open(n,"_blank"):window.open(t,"_blank"),setTimeout((()=>{var t;return null===(t=null==e?void 0:e.close)||void 0===t?void 0:t.call(e)}),nR)}}catch(e){console.log("Platform::openDeepLink() can't open link",e)}}(this,e,t,n)}isReactNative(){var e;return this.isNotBrowser()&&"undefined"!=typeof window&&(null===window||void 0===window?void 0:window.navigator)&&"ReactNative"===(null===(e=window.navigator)||void 0===e?void 0:e.product)}isMetaMaskInstalled(){return function(e){const{state:t}=e,n=Ix.getProvider()||(null===window||void 0===window?void 0:window.ethereum);return t.debug&&console.debug(`Platform::isMetaMaskInstalled isMetaMask=${null==n?void 0:n.isMetaMask} isConnected=${null==n?void 0:n.isConnected()}`),(null==n?void 0:n.isMetaMask)&&(null==n?void 0:n.isConnected())}(this)}isDesktopWeb(){return this.isBrowser()&&!this.isMobileWeb()}isMobile(){var e,t;const n=Qx.parse(window.navigator.userAgent);return"mobile"===(null===(e=null==n?void 0:n.platform)||void 0===e?void 0:e.type)||"tablet"===(null===(t=null==n?void 0:n.platform)||void 0===t?void 0:t.type)}isSecure(){return this.isReactNative()||this.isMobileWeb()}isMetaMaskMobileWebView(){return"undefined"!=typeof window&&Boolean(window.ReactNativeWebView)&&Boolean(navigator.userAgent.endsWith("MetaMaskMobile"))}isMobileWeb(){return this.state.platformType===e.PlatformType.MobileWeb}isNotBrowser(){var e;return"undefined"==typeof window||!(null===window||void 0===window?void 0:window.navigator)||"undefined"!=typeof n.g&&"ReactNative"===(null===(e=null===n.g||void 0===n.g?void 0:n.g.navigator)||void 0===e?void 0:e.product)||"ReactNative"===(null===navigator||void 0===navigator?void 0:navigator.product)}isNodeJS(){return this.isNotBrowser()&&!this.isReactNative()}isBrowser(){return!this.isNotBrowser()}isUseDeepLink(){return this.state.useDeeplink}getPlatformType(){return function(t){const{state:n}=t;return n.platformType?n.platformType:t.isReactNative()?e.PlatformType.ReactNative:t.isNotBrowser()?e.PlatformType.NonBrowser:t.isMetaMaskMobileWebView()?e.PlatformType.MetaMaskMobileWebview:t.isMobile()?e.PlatformType.MobileWeb:e.PlatformType.DesktopWeb}(this)}} /*! ***************************************************************************** Copyright (c) Microsoft Corporation. @@ -12,7 +12,7 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. - ***************************************************************************** */function iR(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{u(r.next(e))}catch(e){o(e)}}function s(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){e.done?i(e.value):function(e){return e instanceof n?e:new n((function(t){t(e)}))}(e.value).then(a,s)}u((r=r.apply(e,t||[])).next())}))}function oR(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(i=a.trys,!((i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]{var e={192:(e,t)=>{var n,r,i=function(){var e=function(e,t){var n=e,r=a[t],i=null,o=0,u=null,g=[],v={},b=function(e,t){i=function(e){for(var t=new Array(e),n=0;n=7&&E(e),null==u&&(u=M(n,r,g)),k(u,t)},w=function(e,t){for(var n=-1;n<=7;n+=1)if(!(e+n<=-1||o<=e+n))for(var r=-1;r<=7;r+=1)t+r<=-1||o<=t+r||(i[e+n][t+r]=0<=n&&n<=6&&(0==r||6==r)||0<=r&&r<=6&&(0==n||6==n)||2<=n&&n<=4&&2<=r&&r<=4)},A=function(){for(var e=8;e>r&1);i[Math.floor(r/3)][r%3+o-8-3]=a}for(r=0;r<18;r+=1)a=!e&&1==(t>>r&1),i[r%3+o-8-3][Math.floor(r/3)]=a},S=function(e,t){for(var n=r<<3|t,a=s.getBCHTypeInfo(n),u=0;u<15;u+=1){var l=!e&&1==(a>>u&1);u<6?i[u][8]=l:u<8?i[u+1][8]=l:i[o-15+u][8]=l}for(u=0;u<15;u+=1)l=!e&&1==(a>>u&1),u<8?i[8][o-u-1]=l:u<9?i[8][15-u-1+1]=l:i[8][15-u-1]=l;i[o-8][8]=!e},k=function(e,t){for(var n=-1,r=o-1,a=7,u=0,l=s.getMaskFunction(t),c=o-1;c>0;c-=2)for(6==c&&(c-=1);;){for(var d=0;d<2;d+=1)if(null==i[r][c-d]){var f=!1;u>>a&1)),l(r,c-d)&&(f=!f),i[r][c-d]=f,-1==(a-=1)&&(u+=1,a=7)}if((r+=n)<0||o<=r){r-=n,n=-n;break}}},M=function(e,t,n){for(var r=c.getRSBlocks(e,t),i=d(),o=0;o8*u)throw"code length overflow. ("+i.getLengthInBits()+">"+8*u+")";for(i.getLengthInBits()+4<=8*u&&i.put(0,4);i.getLengthInBits()%8!=0;)i.putBit(!1);for(;!(i.getLengthInBits()>=8*u||(i.put(236,8),i.getLengthInBits()>=8*u));)i.put(17,8);return function(e,t){for(var n=0,r=0,i=0,o=new Array(t.length),a=new Array(t.length),u=0;u=0?p.getAt(m):0}}var g=0;for(f=0;fr)&&(e=r,t=n)}return t}())},v.createTableTag=function(e,t){e=e||2;var n="";n+='',n+="";for(var r=0;r";for(var i=0;i';n+=""}return(n+="")+"
"},v.createSvgTag=function(e,t,n,r){var i={};"object"==typeof arguments[0]&&(e=(i=arguments[0]).cellSize,t=i.margin,n=i.alt,r=i.title),e=e||2,t=void 0===t?4*e:t,(n="string"==typeof n?{text:n}:n||{}).text=n.text||null,n.id=n.text?n.id||"qrcode-description":null,(r="string"==typeof r?{text:r}:r||{}).text=r.text||null,r.id=r.text?r.id||"qrcode-title":null;var o,a,s,u,l=v.getModuleCount()*e+2*t,c="";for(u="l"+e+",0 0,"+e+" -"+e+",0 0,-"+e+"z ",c+=''+C(r.text)+"":"",c+=n.text?''+C(n.text)+"":"",c+='',c+='"},v.createDataURL=function(e,t){e=e||2,t=void 0===t?4*e:t;var n=v.getModuleCount()*e+2*t,r=t,i=n-t;return y(n,n,(function(t,n){if(r<=t&&t"};var C=function(e){for(var t="",n=0;n":t+=">";break;case"&":t+="&";break;case'"':t+=""";break;default:t+=r}}return t};return v.createASCII=function(e,t){if((e=e||1)<2)return function(e){e=void 0===e?2:e;var t,n,r,i,o,a=1*v.getModuleCount()+2*e,s=e,u=a-e,l={"██":"█","█ ":"▀"," █":"▄"," ":" "},c={"██":"▀","█ ":"▀"," █":" "," ":" "},d="";for(t=0;t=u?c[o]:l[o];d+="\n"}return a%2&&e>0?d.substring(0,d.length-a-1)+Array(a+1).join("▀"):d.substring(0,d.length-1)}(t);e-=1,t=void 0===t?2*e:t;var n,r,i,o,a=v.getModuleCount()*e+2*t,s=t,u=a-t,l=Array(e+1).join("██"),c=Array(e+1).join(" "),d="",f="";for(n=0;n>>8),t.push(255&a)):t.push(r)}}return t}};var t,n,r,i,o,a={L:1,M:0,Q:3,H:2},s=(t=[[],[6,18],[6,22],[6,26],[6,30],[6,34],[6,22,38],[6,24,42],[6,26,46],[6,28,50],[6,30,54],[6,32,58],[6,34,62],[6,26,46,66],[6,26,48,70],[6,26,50,74],[6,30,54,78],[6,30,56,82],[6,30,58,86],[6,34,62,90],[6,28,50,72,94],[6,26,50,74,98],[6,30,54,78,102],[6,28,54,80,106],[6,32,58,84,110],[6,30,58,86,114],[6,34,62,90,118],[6,26,50,74,98,122],[6,30,54,78,102,126],[6,26,52,78,104,130],[6,30,56,82,108,134],[6,34,60,86,112,138],[6,30,58,86,114,142],[6,34,62,90,118,146],[6,30,54,78,102,126,150],[6,24,50,76,102,128,154],[6,28,54,80,106,132,158],[6,32,58,84,110,136,162],[6,26,54,82,110,138,166],[6,30,58,86,114,142,170]],n=1335,r=7973,o=function(e){for(var t=0;0!=e;)t+=1,e>>>=1;return t},(i={}).getBCHTypeInfo=function(e){for(var t=e<<10;o(t)-o(n)>=0;)t^=n<=0;)t^=r<5&&(n+=3+o-5)}for(r=0;r=256;)t-=255;return e[t]}}}();function l(e,t){if(void 0===e.length)throw e.length+"/"+t;var n=function(){for(var n=0;n>>7-t%8&1)},put:function(e,t){for(var r=0;r>>t-r-1&1))},getLengthInBits:function(){return t},putBit:function(n){var r=Math.floor(t/8);e.length<=r&&e.push(0),n&&(e[r]|=128>>>t%8),t+=1}};return n},f=function(e){var t=e,n={getMode:function(){return 1},getLength:function(e){return t.length},write:function(e){for(var n=t,i=0;i+2>>8&255)+(255&i),e.put(i,13),n+=2}if(n>>8)},writeBytes:function(e,n,r){n=n||0,r=r||e.length;for(var i=0;i0&&(t+=","),t+=e[n];return t+"]"}};return t},v=function(e){var t=e,n=0,r=0,i=0,o={read:function(){for(;i<8;){if(n>=t.length){if(0==i)return-1;throw"unexpected end of file./"+i}var e=t.charAt(n);if(n+=1,"="==e)return i=0,-1;e.match(/^\s$/)||(r=r<<6|a(e.charCodeAt(0)),i+=6)}var o=r>>>i-8&255;return i-=8,o}},a=function(e){if(65<=e&&e<=90)return e-65;if(97<=e&&e<=122)return e-97+26;if(48<=e&&e<=57)return e-48+52;if(43==e)return 62;if(47==e)return 63;throw"c:"+e};return o},y=function(e,t,n){for(var r=function(e,t){var n=e,r=t,i=new Array(e*t),o={setPixel:function(e,t,r){i[t*n+e]=r},write:function(e){e.writeString("GIF87a"),e.writeShort(n),e.writeShort(r),e.writeByte(128),e.writeByte(0),e.writeByte(0),e.writeByte(0),e.writeByte(0),e.writeByte(0),e.writeByte(255),e.writeByte(255),e.writeByte(255),e.writeString(","),e.writeShort(0),e.writeShort(0),e.writeShort(n),e.writeShort(r),e.writeByte(0);var t=a(2);e.writeByte(2);for(var i=0;t.length-i>255;)e.writeByte(255),e.writeBytes(t,i,255),i+=255;e.writeByte(t.length-i),e.writeBytes(t,i,t.length-i),e.writeByte(0),e.writeString(";")}},a=function(e){for(var t=1<>>t!=0)throw"length over";for(;l+t>=8;)u.writeByte(255&(e<>>=8-l,c=0,l=0;c|=e<0&&u.writeByte(c)}});f.write(t,r);var h=0,p=String.fromCharCode(i[h]);for(h+=1;h=6;)o(e>>>t-6),t-=6},i.flush=function(){if(t>0&&(o(e<<6-t),e=0,t=0),n%3!=0)for(var i=3-n%3,a=0;a>6,128|63&r):r<55296||r>=57344?t.push(224|r>>12,128|r>>6&63,128|63&r):(n++,r=65536+((1023&r)<<10|1023&e.charCodeAt(n)),t.push(240|r>>18,128|r>>12&63,128|r>>6&63,128|63&r))}return t}(e)},void 0===(r="function"==typeof(n=function(){return i})?n.apply(t,[]):n)||(e.exports=r)},676:(e,t,n)=>{n.d(t,{default:()=>L});var r=function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]2||o&&a||s&&u)this._basicSquare({x:t,y:n,size:r,rotation:0});else{if(2===l){var c=0;return o&&s?c=Math.PI/2:s&&a?c=Math.PI:a&&u&&(c=-Math.PI/2),void this._basicCornerRounded({x:t,y:n,size:r,rotation:c})}if(1===l)return c=0,s?c=Math.PI/2:a?c=Math.PI:u&&(c=-Math.PI/2),void this._basicSideRounded({x:t,y:n,size:r,rotation:c})}else this._basicDot({x:t,y:n,size:r,rotation:0})},e.prototype._drawExtraRounded=function(e){var t=e.x,n=e.y,r=e.size,i=e.getNeighbor,o=i?+i(-1,0):0,a=i?+i(1,0):0,s=i?+i(0,-1):0,u=i?+i(0,1):0,l=o+a+s+u;if(0!==l)if(l>2||o&&a||s&&u)this._basicSquare({x:t,y:n,size:r,rotation:0});else{if(2===l){var c=0;return o&&s?c=Math.PI/2:s&&a?c=Math.PI:a&&u&&(c=-Math.PI/2),void this._basicCornerExtraRounded({x:t,y:n,size:r,rotation:c})}if(1===l)return c=0,s?c=Math.PI/2:a?c=Math.PI:u&&(c=-Math.PI/2),void this._basicSideRounded({x:t,y:n,size:r,rotation:c})}else this._basicDot({x:t,y:n,size:r,rotation:0})},e.prototype._drawClassy=function(e){var t=e.x,n=e.y,r=e.size,i=e.getNeighbor,o=i?+i(-1,0):0,a=i?+i(1,0):0,s=i?+i(0,-1):0,u=i?+i(0,1):0;0!==o+a+s+u?o||s?a||u?this._basicSquare({x:t,y:n,size:r,rotation:0}):this._basicCornerRounded({x:t,y:n,size:r,rotation:Math.PI/2}):this._basicCornerRounded({x:t,y:n,size:r,rotation:-Math.PI/2}):this._basicCornersRounded({x:t,y:n,size:r,rotation:Math.PI/2})},e.prototype._drawClassyRounded=function(e){var t=e.x,n=e.y,r=e.size,i=e.getNeighbor,o=i?+i(-1,0):0,a=i?+i(1,0):0,s=i?+i(0,-1):0,u=i?+i(0,1):0;0!==o+a+s+u?o||s?a||u?this._basicSquare({x:t,y:n,size:r,rotation:0}):this._basicCornerExtraRounded({x:t,y:n,size:r,rotation:Math.PI/2}):this._basicCornerExtraRounded({x:t,y:n,size:r,rotation:-Math.PI/2}):this._basicCornersRounded({x:t,y:n,size:r,rotation:Math.PI/2})},e}();var f=function(){return(f=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]r||i&&i=(t-o.hideXDots)/2&&e<(t+o.hideXDots)/2&&n>=(t-o.hideYDots)/2&&n<(t+o.hideYDots)/2||(null===(r=b[e])||void 0===r?void 0:r[n])||(null===(i=b[e-t+7])||void 0===i?void 0:i[n])||(null===(a=b[e])||void 0===a?void 0:a[n-t+7])||(null===(s=w[e])||void 0===s?void 0:s[n])||(null===(u=w[e-t+7])||void 0===u?void 0:u[n])||(null===(l=w[e])||void 0===l?void 0:l[n-t+7]))})),this.drawCorners(),this._options.image?[4,this.drawImage({width:o.width,height:o.height,count:t,dotSize:i})]:[3,4];case 3:h.sent(),h.label=4;case 4:return[2]}}))}))},e.prototype.drawBackground=function(){var e,t,n,r=this._element,i=this._options;if(r){var o=null===(e=i.backgroundOptions)||void 0===e?void 0:e.gradient,a=null===(t=i.backgroundOptions)||void 0===t?void 0:t.color;if((o||a)&&this._createColor({options:o,color:a,additionalRotation:0,x:0,y:0,height:i.height,width:i.width,name:"background-color"}),null===(n=i.backgroundOptions)||void 0===n?void 0:n.round){var s=Math.min(i.width,i.height),u=document.createElementNS("http://www.w3.org/2000/svg","rect");this._backgroundClipPath=document.createElementNS("http://www.w3.org/2000/svg","clipPath"),this._backgroundClipPath.setAttribute("id","clip-path-background-color"),this._defs.appendChild(this._backgroundClipPath),u.setAttribute("x",String((i.width-s)/2)),u.setAttribute("y",String((i.height-s)/2)),u.setAttribute("width",String(s)),u.setAttribute("height",String(s)),u.setAttribute("rx",String(s/2*i.backgroundOptions.round)),this._backgroundClipPath.appendChild(u)}}},e.prototype.drawDots=function(e){var t,n,r=this;if(!this._qr)throw"QR code is not defined";var i=this._options,o=this._qr.getModuleCount();if(o>i.width||o>i.height)throw"The canvas is too small.";var a=Math.min(i.width,i.height)-2*i.margin,s=i.shape===g?a/Math.sqrt(2):a,u=Math.floor(s/o),l=Math.floor((i.width-o*u)/2),c=Math.floor((i.height-o*u)/2),f=new d({svg:this._element,type:i.dotsOptions.type});this._dotsClipPath=document.createElementNS("http://www.w3.org/2000/svg","clipPath"),this._dotsClipPath.setAttribute("id","clip-path-dot-color"),this._defs.appendChild(this._dotsClipPath),this._createColor({options:null===(t=i.dotsOptions)||void 0===t?void 0:t.gradient,color:i.dotsOptions.color,additionalRotation:0,x:0,y:0,height:i.height,width:i.width,name:"dot-color"});for(var h=function(t){for(var i=function(i){return e&&!e(t,i)?"continue":(null===(n=p._qr)||void 0===n?void 0:n.isDark(t,i))?(f.draw(l+t*u,c+i*u,u,(function(n,a){return!(t+n<0||i+a<0||t+n>=o||i+a>=o)&&!(e&&!e(t+n,i+a))&&!!r._qr&&r._qr.isDark(t+n,i+a)})),void(f._element&&p._dotsClipPath&&p._dotsClipPath.appendChild(f._element))):"continue"},a=0;a=v-1&&m<=y-v&&E>=v-1&&E<=y-v||Math.sqrt((m-_)*(m-_)+(E-_)*(E-_))>_?A[m][E]=0:A[m][E]=this._qr.isDark(E-2*v<0?E:E>=o?E-2*v:E-v,m-2*v<0?m:m>=o?m-2*v:m-v)?1:0}var S=function(e){for(var t=function(t){if(!A[e][t])return"continue";f.draw(b+e*u,w+t*u,u,(function(n,r){var i;return!!(null===(i=A[e+n])||void 0===i?void 0:i[t+r])})),f._element&&k._dotsClipPath&&k._dotsClipPath.appendChild(f._element)},n=0;na?s:a,c=document.createElementNS("http://www.w3.org/2000/svg","rect");if(c.setAttribute("x",String(i)),c.setAttribute("y",String(o)),c.setAttribute("height",String(a)),c.setAttribute("width",String(s)),c.setAttribute("clip-path","url('#clip-path-"+u+"')"),t){var d;if("radial"===t.type)(d=document.createElementNS("http://www.w3.org/2000/svg","radialGradient")).setAttribute("id",u),d.setAttribute("gradientUnits","userSpaceOnUse"),d.setAttribute("fx",String(i+s/2)),d.setAttribute("fy",String(o+a/2)),d.setAttribute("cx",String(i+s/2)),d.setAttribute("cy",String(o+a/2)),d.setAttribute("r",String(l/2));else{var f=((t.rotation||0)+r)%(2*Math.PI),h=(f+2*Math.PI)%(2*Math.PI),p=i+s/2,m=o+a/2,g=i+s/2,v=o+a/2;h>=0&&h<=.25*Math.PI||h>1.75*Math.PI&&h<=2*Math.PI?(p-=s/2,m-=a/2*Math.tan(f),g+=s/2,v+=a/2*Math.tan(f)):h>.25*Math.PI&&h<=.75*Math.PI?(m-=a/2,p-=s/2/Math.tan(f),v+=a/2,g+=s/2/Math.tan(f)):h>.75*Math.PI&&h<=1.25*Math.PI?(p+=s/2,m+=a/2*Math.tan(f),g-=s/2,v-=a/2*Math.tan(f)):h>1.25*Math.PI&&h<=1.75*Math.PI&&(m+=a/2,p+=s/2/Math.tan(f),v-=a/2,g-=s/2/Math.tan(f)),(d=document.createElementNS("http://www.w3.org/2000/svg","linearGradient")).setAttribute("id",u),d.setAttribute("gradientUnits","userSpaceOnUse"),d.setAttribute("x1",String(Math.round(p))),d.setAttribute("y1",String(Math.round(m))),d.setAttribute("x2",String(Math.round(g))),d.setAttribute("y2",String(Math.round(v)))}t.colorStops.forEach((function(e){var t=e.offset,n=e.color,r=document.createElementNS("http://www.w3.org/2000/svg","stop");r.setAttribute("offset",100*t+"%"),r.setAttribute("stop-color",n),d.appendChild(r)})),c.setAttribute("fill","url('#"+u+"')"),this._defs.appendChild(d)}else n&&c.setAttribute("fill",n);this._element.appendChild(c)},e}(),_="canvas";for(var E={},S=0;S<=40;S++)E[S]=S;const k={type:_,shape:"square",width:300,height:300,data:"",margin:0,qrOptions:{typeNumber:E[0],mode:void 0,errorCorrectionLevel:"Q"},imageOptions:{hideBackgroundDots:!0,imageSize:.4,crossOrigin:void 0,margin:0},dotsOptions:{type:"square",color:"#000"},backgroundOptions:{round:0,color:"#fff"}};var M=function(){return(M=Object.assign||function(e){for(var t,n=1,r=arguments.length;nMath.min(t.width,t.height)&&(t.margin=Math.min(t.width,t.height)),t.dotsOptions=M({},t.dotsOptions),t.dotsOptions.gradient&&(t.dotsOptions.gradient=C(t.dotsOptions.gradient)),t.cornersSquareOptions&&(t.cornersSquareOptions=M({},t.cornersSquareOptions),t.cornersSquareOptions.gradient&&(t.cornersSquareOptions.gradient=C(t.cornersSquareOptions.gradient))),t.cornersDotOptions&&(t.cornersDotOptions=M({},t.cornersDotOptions),t.cornersDotOptions.gradient&&(t.cornersDotOptions.gradient=C(t.cornersDotOptions.gradient))),t.backgroundOptions&&(t.backgroundOptions=M({},t.backgroundOptions),t.backgroundOptions.gradient&&(t.backgroundOptions.gradient=C(t.backgroundOptions.gradient))),t}var R=n(192),O=n.n(R),T=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{u(r.next(e))}catch(e){o(e)}}function s(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((r=r.apply(e,t||[])).next())}))},P=function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((i=(i=a.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]\r\n'+r],{type:"image/svg+xml"})]):[2,new Promise((function(n){return t.toBlob(n,"image/"+e,1)}))]:[2,null]}}))}))},e.prototype.download=function(e){return T(this,void 0,void 0,(function(){var t,n,r,i,o;return P(this,(function(a){switch(a.label){case 0:if(!this._qr)throw"QR code is empty";return t="png",n="qr","string"==typeof e?(t=e,console.warn("Extension is deprecated as argument for 'download' method, please pass object { name: '...', extension: '...' } as argument")):"object"==typeof e&&null!==e&&(e.name&&(n=e.name),e.extension&&(t=e.extension)),[4,this._getElement(t)];case 1:return(r=a.sent())?("svg"===t.toLowerCase()?(i=new XMLSerializer,o='\r\n'+(o=i.serializeToString(r)),s("data:image/svg+xml;charset=utf-8,"+encodeURIComponent(o),n+".svg")):s(r.toDataURL("image/"+t),n+"."+t),[2]):[2]}}))}))},e}()}},t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={exports:{}};return e[r](i,i.exports,n),i.exports}return n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n(676)})().default}(bR)),bR.exports}!function(e,t){!function(e){function t(e,t){return t.forEach((function(t){t&&"string"!=typeof t&&!Array.isArray(t)&&Object.keys(t).forEach((function(n){if("default"!==n&&!(n in e)){var r=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,r.get?r:{enumerable:!0,get:function(){return t[n]}})}}))})),Object.freeze(e)}function n(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var i,o,a={exports:{}},s={},u={exports:{}}; + ***************************************************************************** */function iR(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{u(r.next(e))}catch(e){o(e)}}function s(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){e.done?i(e.value):function(e){return e instanceof n?e:new n((function(t){t(e)}))}(e.value).then(a,s)}u((r=r.apply(e,t||[])).next())}))}function oR(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(i=a.trys,!((i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]{var e={192:(e,t)=>{var n,r,i=function(){var e=function(e,t){var n=e,r=a[t],i=null,o=0,u=null,g=[],v={},b=function(e,t){i=function(e){for(var t=new Array(e),n=0;n=7&&E(e),null==u&&(u=M(n,r,g)),k(u,t)},w=function(e,t){for(var n=-1;n<=7;n+=1)if(!(e+n<=-1||o<=e+n))for(var r=-1;r<=7;r+=1)t+r<=-1||o<=t+r||(i[e+n][t+r]=0<=n&&n<=6&&(0==r||6==r)||0<=r&&r<=6&&(0==n||6==n)||2<=n&&n<=4&&2<=r&&r<=4)},A=function(){for(var e=8;e>r&1);i[Math.floor(r/3)][r%3+o-8-3]=a}for(r=0;r<18;r+=1)a=!e&&1==(t>>r&1),i[r%3+o-8-3][Math.floor(r/3)]=a},S=function(e,t){for(var n=r<<3|t,a=s.getBCHTypeInfo(n),u=0;u<15;u+=1){var l=!e&&1==(a>>u&1);u<6?i[u][8]=l:u<8?i[u+1][8]=l:i[o-15+u][8]=l}for(u=0;u<15;u+=1)l=!e&&1==(a>>u&1),u<8?i[8][o-u-1]=l:u<9?i[8][15-u-1+1]=l:i[8][15-u-1]=l;i[o-8][8]=!e},k=function(e,t){for(var n=-1,r=o-1,a=7,u=0,l=s.getMaskFunction(t),c=o-1;c>0;c-=2)for(6==c&&(c-=1);;){for(var d=0;d<2;d+=1)if(null==i[r][c-d]){var f=!1;u>>a&1)),l(r,c-d)&&(f=!f),i[r][c-d]=f,-1==(a-=1)&&(u+=1,a=7)}if((r+=n)<0||o<=r){r-=n,n=-n;break}}},M=function(e,t,n){for(var r=c.getRSBlocks(e,t),i=d(),o=0;o8*u)throw"code length overflow. ("+i.getLengthInBits()+">"+8*u+")";for(i.getLengthInBits()+4<=8*u&&i.put(0,4);i.getLengthInBits()%8!=0;)i.putBit(!1);for(;!(i.getLengthInBits()>=8*u||(i.put(236,8),i.getLengthInBits()>=8*u));)i.put(17,8);return function(e,t){for(var n=0,r=0,i=0,o=new Array(t.length),a=new Array(t.length),u=0;u=0?p.getAt(m):0}}var g=0;for(f=0;fr)&&(e=r,t=n)}return t}())},v.createTableTag=function(e,t){e=e||2;var n="";n+='',n+="";for(var r=0;r";for(var i=0;i';n+=""}return(n+="")+"
"},v.createSvgTag=function(e,t,n,r){var i={};"object"==typeof arguments[0]&&(e=(i=arguments[0]).cellSize,t=i.margin,n=i.alt,r=i.title),e=e||2,t=void 0===t?4*e:t,(n="string"==typeof n?{text:n}:n||{}).text=n.text||null,n.id=n.text?n.id||"qrcode-description":null,(r="string"==typeof r?{text:r}:r||{}).text=r.text||null,r.id=r.text?r.id||"qrcode-title":null;var o,a,s,u,l=v.getModuleCount()*e+2*t,c="";for(u="l"+e+",0 0,"+e+" -"+e+",0 0,-"+e+"z ",c+=''+C(r.text)+"":"",c+=n.text?''+C(n.text)+"":"",c+='',c+='"},v.createDataURL=function(e,t){e=e||2,t=void 0===t?4*e:t;var n=v.getModuleCount()*e+2*t,r=t,i=n-t;return y(n,n,(function(t,n){if(r<=t&&t"};var C=function(e){for(var t="",n=0;n":t+=">";break;case"&":t+="&";break;case'"':t+=""";break;default:t+=r}}return t};return v.createASCII=function(e,t){if((e=e||1)<2)return function(e){e=void 0===e?2:e;var t,n,r,i,o,a=1*v.getModuleCount()+2*e,s=e,u=a-e,l={"██":"█","█ ":"▀"," █":"▄"," ":" "},c={"██":"▀","█ ":"▀"," █":" "," ":" "},d="";for(t=0;t=u?c[o]:l[o];d+="\n"}return a%2&&e>0?d.substring(0,d.length-a-1)+Array(a+1).join("▀"):d.substring(0,d.length-1)}(t);e-=1,t=void 0===t?2*e:t;var n,r,i,o,a=v.getModuleCount()*e+2*t,s=t,u=a-t,l=Array(e+1).join("██"),c=Array(e+1).join(" "),d="",f="";for(n=0;n>>8),t.push(255&a)):t.push(r)}}return t}};var t,n,r,i,o,a={L:1,M:0,Q:3,H:2},s=(t=[[],[6,18],[6,22],[6,26],[6,30],[6,34],[6,22,38],[6,24,42],[6,26,46],[6,28,50],[6,30,54],[6,32,58],[6,34,62],[6,26,46,66],[6,26,48,70],[6,26,50,74],[6,30,54,78],[6,30,56,82],[6,30,58,86],[6,34,62,90],[6,28,50,72,94],[6,26,50,74,98],[6,30,54,78,102],[6,28,54,80,106],[6,32,58,84,110],[6,30,58,86,114],[6,34,62,90,118],[6,26,50,74,98,122],[6,30,54,78,102,126],[6,26,52,78,104,130],[6,30,56,82,108,134],[6,34,60,86,112,138],[6,30,58,86,114,142],[6,34,62,90,118,146],[6,30,54,78,102,126,150],[6,24,50,76,102,128,154],[6,28,54,80,106,132,158],[6,32,58,84,110,136,162],[6,26,54,82,110,138,166],[6,30,58,86,114,142,170]],n=1335,r=7973,o=function(e){for(var t=0;0!=e;)t+=1,e>>>=1;return t},(i={}).getBCHTypeInfo=function(e){for(var t=e<<10;o(t)-o(n)>=0;)t^=n<=0;)t^=r<5&&(n+=3+o-5)}for(r=0;r=256;)t-=255;return e[t]}}}();function l(e,t){if(void 0===e.length)throw e.length+"/"+t;var n=function(){for(var n=0;n>>7-t%8&1)},put:function(e,t){for(var r=0;r>>t-r-1&1))},getLengthInBits:function(){return t},putBit:function(n){var r=Math.floor(t/8);e.length<=r&&e.push(0),n&&(e[r]|=128>>>t%8),t+=1}};return n},f=function(e){var t=e,n={getMode:function(){return 1},getLength:function(e){return t.length},write:function(e){for(var n=t,i=0;i+2>>8&255)+(255&i),e.put(i,13),n+=2}if(n>>8)},writeBytes:function(e,n,r){n=n||0,r=r||e.length;for(var i=0;i0&&(t+=","),t+=e[n];return t+"]"}};return t},v=function(e){var t=e,n=0,r=0,i=0,o={read:function(){for(;i<8;){if(n>=t.length){if(0==i)return-1;throw"unexpected end of file./"+i}var e=t.charAt(n);if(n+=1,"="==e)return i=0,-1;e.match(/^\s$/)||(r=r<<6|a(e.charCodeAt(0)),i+=6)}var o=r>>>i-8&255;return i-=8,o}},a=function(e){if(65<=e&&e<=90)return e-65;if(97<=e&&e<=122)return e-97+26;if(48<=e&&e<=57)return e-48+52;if(43==e)return 62;if(47==e)return 63;throw"c:"+e};return o},y=function(e,t,n){for(var r=function(e,t){var n=e,r=t,i=new Array(e*t),o={setPixel:function(e,t,r){i[t*n+e]=r},write:function(e){e.writeString("GIF87a"),e.writeShort(n),e.writeShort(r),e.writeByte(128),e.writeByte(0),e.writeByte(0),e.writeByte(0),e.writeByte(0),e.writeByte(0),e.writeByte(255),e.writeByte(255),e.writeByte(255),e.writeString(","),e.writeShort(0),e.writeShort(0),e.writeShort(n),e.writeShort(r),e.writeByte(0);var t=a(2);e.writeByte(2);for(var i=0;t.length-i>255;)e.writeByte(255),e.writeBytes(t,i,255),i+=255;e.writeByte(t.length-i),e.writeBytes(t,i,t.length-i),e.writeByte(0),e.writeString(";")}},a=function(e){for(var t=1<>>t!=0)throw"length over";for(;l+t>=8;)u.writeByte(255&(e<>>=8-l,c=0,l=0;c|=e<0&&u.writeByte(c)}});f.write(t,r);var h=0,p=String.fromCharCode(i[h]);for(h+=1;h=6;)o(e>>>t-6),t-=6},i.flush=function(){if(t>0&&(o(e<<6-t),e=0,t=0),n%3!=0)for(var i=3-n%3,a=0;a>6,128|63&r):r<55296||r>=57344?t.push(224|r>>12,128|r>>6&63,128|63&r):(n++,r=65536+((1023&r)<<10|1023&e.charCodeAt(n)),t.push(240|r>>18,128|r>>12&63,128|r>>6&63,128|63&r))}return t}(e)},void 0===(r="function"==typeof(n=function(){return i})?n.apply(t,[]):n)||(e.exports=r)},676:(e,t,n)=>{n.d(t,{default:()=>L});var r=function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]2||o&&a||s&&u)this._basicSquare({x:t,y:n,size:r,rotation:0});else{if(2===l){var c=0;return o&&s?c=Math.PI/2:s&&a?c=Math.PI:a&&u&&(c=-Math.PI/2),void this._basicCornerRounded({x:t,y:n,size:r,rotation:c})}if(1===l)return c=0,s?c=Math.PI/2:a?c=Math.PI:u&&(c=-Math.PI/2),void this._basicSideRounded({x:t,y:n,size:r,rotation:c})}else this._basicDot({x:t,y:n,size:r,rotation:0})},e.prototype._drawExtraRounded=function(e){var t=e.x,n=e.y,r=e.size,i=e.getNeighbor,o=i?+i(-1,0):0,a=i?+i(1,0):0,s=i?+i(0,-1):0,u=i?+i(0,1):0,l=o+a+s+u;if(0!==l)if(l>2||o&&a||s&&u)this._basicSquare({x:t,y:n,size:r,rotation:0});else{if(2===l){var c=0;return o&&s?c=Math.PI/2:s&&a?c=Math.PI:a&&u&&(c=-Math.PI/2),void this._basicCornerExtraRounded({x:t,y:n,size:r,rotation:c})}if(1===l)return c=0,s?c=Math.PI/2:a?c=Math.PI:u&&(c=-Math.PI/2),void this._basicSideRounded({x:t,y:n,size:r,rotation:c})}else this._basicDot({x:t,y:n,size:r,rotation:0})},e.prototype._drawClassy=function(e){var t=e.x,n=e.y,r=e.size,i=e.getNeighbor,o=i?+i(-1,0):0,a=i?+i(1,0):0,s=i?+i(0,-1):0,u=i?+i(0,1):0;0!==o+a+s+u?o||s?a||u?this._basicSquare({x:t,y:n,size:r,rotation:0}):this._basicCornerRounded({x:t,y:n,size:r,rotation:Math.PI/2}):this._basicCornerRounded({x:t,y:n,size:r,rotation:-Math.PI/2}):this._basicCornersRounded({x:t,y:n,size:r,rotation:Math.PI/2})},e.prototype._drawClassyRounded=function(e){var t=e.x,n=e.y,r=e.size,i=e.getNeighbor,o=i?+i(-1,0):0,a=i?+i(1,0):0,s=i?+i(0,-1):0,u=i?+i(0,1):0;0!==o+a+s+u?o||s?a||u?this._basicSquare({x:t,y:n,size:r,rotation:0}):this._basicCornerExtraRounded({x:t,y:n,size:r,rotation:Math.PI/2}):this._basicCornerExtraRounded({x:t,y:n,size:r,rotation:-Math.PI/2}):this._basicCornersRounded({x:t,y:n,size:r,rotation:Math.PI/2})},e}();var f=function(){return(f=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]r||i&&i=(t-o.hideXDots)/2&&e<(t+o.hideXDots)/2&&n>=(t-o.hideYDots)/2&&n<(t+o.hideYDots)/2||(null===(r=b[e])||void 0===r?void 0:r[n])||(null===(i=b[e-t+7])||void 0===i?void 0:i[n])||(null===(a=b[e])||void 0===a?void 0:a[n-t+7])||(null===(s=w[e])||void 0===s?void 0:s[n])||(null===(u=w[e-t+7])||void 0===u?void 0:u[n])||(null===(l=w[e])||void 0===l?void 0:l[n-t+7]))})),this.drawCorners(),this._options.image?[4,this.drawImage({width:o.width,height:o.height,count:t,dotSize:i})]:[3,4];case 3:h.sent(),h.label=4;case 4:return[2]}}))}))},e.prototype.drawBackground=function(){var e,t,n,r=this._element,i=this._options;if(r){var o=null===(e=i.backgroundOptions)||void 0===e?void 0:e.gradient,a=null===(t=i.backgroundOptions)||void 0===t?void 0:t.color;if((o||a)&&this._createColor({options:o,color:a,additionalRotation:0,x:0,y:0,height:i.height,width:i.width,name:"background-color"}),null===(n=i.backgroundOptions)||void 0===n?void 0:n.round){var s=Math.min(i.width,i.height),u=document.createElementNS("http://www.w3.org/2000/svg","rect");this._backgroundClipPath=document.createElementNS("http://www.w3.org/2000/svg","clipPath"),this._backgroundClipPath.setAttribute("id","clip-path-background-color"),this._defs.appendChild(this._backgroundClipPath),u.setAttribute("x",String((i.width-s)/2)),u.setAttribute("y",String((i.height-s)/2)),u.setAttribute("width",String(s)),u.setAttribute("height",String(s)),u.setAttribute("rx",String(s/2*i.backgroundOptions.round)),this._backgroundClipPath.appendChild(u)}}},e.prototype.drawDots=function(e){var t,n,r=this;if(!this._qr)throw"QR code is not defined";var i=this._options,o=this._qr.getModuleCount();if(o>i.width||o>i.height)throw"The canvas is too small.";var a=Math.min(i.width,i.height)-2*i.margin,s=i.shape===g?a/Math.sqrt(2):a,u=Math.floor(s/o),l=Math.floor((i.width-o*u)/2),c=Math.floor((i.height-o*u)/2),f=new d({svg:this._element,type:i.dotsOptions.type});this._dotsClipPath=document.createElementNS("http://www.w3.org/2000/svg","clipPath"),this._dotsClipPath.setAttribute("id","clip-path-dot-color"),this._defs.appendChild(this._dotsClipPath),this._createColor({options:null===(t=i.dotsOptions)||void 0===t?void 0:t.gradient,color:i.dotsOptions.color,additionalRotation:0,x:0,y:0,height:i.height,width:i.width,name:"dot-color"});for(var h=function(t){for(var i=function(i){return e&&!e(t,i)?"continue":(null===(n=p._qr)||void 0===n?void 0:n.isDark(t,i))?(f.draw(l+t*u,c+i*u,u,(function(n,a){return!(t+n<0||i+a<0||t+n>=o||i+a>=o)&&!(e&&!e(t+n,i+a))&&!!r._qr&&r._qr.isDark(t+n,i+a)})),void(f._element&&p._dotsClipPath&&p._dotsClipPath.appendChild(f._element))):"continue"},a=0;a=v-1&&m<=y-v&&E>=v-1&&E<=y-v||Math.sqrt((m-_)*(m-_)+(E-_)*(E-_))>_?A[m][E]=0:A[m][E]=this._qr.isDark(E-2*v<0?E:E>=o?E-2*v:E-v,m-2*v<0?m:m>=o?m-2*v:m-v)?1:0}var S=function(e){for(var t=function(t){if(!A[e][t])return"continue";f.draw(b+e*u,w+t*u,u,(function(n,r){var i;return!!(null===(i=A[e+n])||void 0===i?void 0:i[t+r])})),f._element&&k._dotsClipPath&&k._dotsClipPath.appendChild(f._element)},n=0;na?s:a,c=document.createElementNS("http://www.w3.org/2000/svg","rect");if(c.setAttribute("x",String(i)),c.setAttribute("y",String(o)),c.setAttribute("height",String(a)),c.setAttribute("width",String(s)),c.setAttribute("clip-path","url('#clip-path-"+u+"')"),t){var d;if("radial"===t.type)(d=document.createElementNS("http://www.w3.org/2000/svg","radialGradient")).setAttribute("id",u),d.setAttribute("gradientUnits","userSpaceOnUse"),d.setAttribute("fx",String(i+s/2)),d.setAttribute("fy",String(o+a/2)),d.setAttribute("cx",String(i+s/2)),d.setAttribute("cy",String(o+a/2)),d.setAttribute("r",String(l/2));else{var f=((t.rotation||0)+r)%(2*Math.PI),h=(f+2*Math.PI)%(2*Math.PI),p=i+s/2,m=o+a/2,g=i+s/2,v=o+a/2;h>=0&&h<=.25*Math.PI||h>1.75*Math.PI&&h<=2*Math.PI?(p-=s/2,m-=a/2*Math.tan(f),g+=s/2,v+=a/2*Math.tan(f)):h>.25*Math.PI&&h<=.75*Math.PI?(m-=a/2,p-=s/2/Math.tan(f),v+=a/2,g+=s/2/Math.tan(f)):h>.75*Math.PI&&h<=1.25*Math.PI?(p+=s/2,m+=a/2*Math.tan(f),g-=s/2,v-=a/2*Math.tan(f)):h>1.25*Math.PI&&h<=1.75*Math.PI&&(m+=a/2,p+=s/2/Math.tan(f),v-=a/2,g-=s/2/Math.tan(f)),(d=document.createElementNS("http://www.w3.org/2000/svg","linearGradient")).setAttribute("id",u),d.setAttribute("gradientUnits","userSpaceOnUse"),d.setAttribute("x1",String(Math.round(p))),d.setAttribute("y1",String(Math.round(m))),d.setAttribute("x2",String(Math.round(g))),d.setAttribute("y2",String(Math.round(v)))}t.colorStops.forEach((function(e){var t=e.offset,n=e.color,r=document.createElementNS("http://www.w3.org/2000/svg","stop");r.setAttribute("offset",100*t+"%"),r.setAttribute("stop-color",n),d.appendChild(r)})),c.setAttribute("fill","url('#"+u+"')"),this._defs.appendChild(d)}else n&&c.setAttribute("fill",n);this._element.appendChild(c)},e}(),_="canvas";for(var E={},S=0;S<=40;S++)E[S]=S;const k={type:_,shape:"square",width:300,height:300,data:"",margin:0,qrOptions:{typeNumber:E[0],mode:void 0,errorCorrectionLevel:"Q"},imageOptions:{hideBackgroundDots:!0,imageSize:.4,crossOrigin:void 0,margin:0},dotsOptions:{type:"square",color:"#000"},backgroundOptions:{round:0,color:"#fff"}};var M=function(){return(M=Object.assign||function(e){for(var t,n=1,r=arguments.length;nMath.min(t.width,t.height)&&(t.margin=Math.min(t.width,t.height)),t.dotsOptions=M({},t.dotsOptions),t.dotsOptions.gradient&&(t.dotsOptions.gradient=C(t.dotsOptions.gradient)),t.cornersSquareOptions&&(t.cornersSquareOptions=M({},t.cornersSquareOptions),t.cornersSquareOptions.gradient&&(t.cornersSquareOptions.gradient=C(t.cornersSquareOptions.gradient))),t.cornersDotOptions&&(t.cornersDotOptions=M({},t.cornersDotOptions),t.cornersDotOptions.gradient&&(t.cornersDotOptions.gradient=C(t.cornersDotOptions.gradient))),t.backgroundOptions&&(t.backgroundOptions=M({},t.backgroundOptions),t.backgroundOptions.gradient&&(t.backgroundOptions.gradient=C(t.backgroundOptions.gradient))),t}var R=n(192),O=n.n(R),T=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{u(r.next(e))}catch(e){o(e)}}function s(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((r=r.apply(e,t||[])).next())}))},P=function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((i=(i=a.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]\r\n'+r],{type:"image/svg+xml"})]):[2,new Promise((function(n){return t.toBlob(n,"image/"+e,1)}))]:[2,null]}}))}))},e.prototype.download=function(e){return T(this,void 0,void 0,(function(){var t,n,r,i,o;return P(this,(function(a){switch(a.label){case 0:if(!this._qr)throw"QR code is empty";return t="png",n="qr","string"==typeof e?(t=e,console.warn("Extension is deprecated as argument for 'download' method, please pass object { name: '...', extension: '...' } as argument")):"object"==typeof e&&null!==e&&(e.name&&(n=e.name),e.extension&&(t=e.extension)),[4,this._getElement(t)];case 1:return(r=a.sent())?("svg"===t.toLowerCase()?(i=new XMLSerializer,o='\r\n'+(o=i.serializeToString(r)),s("data:image/svg+xml;charset=utf-8,"+encodeURIComponent(o),n+".svg")):s(r.toDataURL("image/"+t),n+"."+t),[2]):[2]}}))}))},e}()}},t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={exports:{}};return e[r](i,i.exports,n),i.exports}return n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n(676)})().default}(bR)),bR.exports}!function(e,t){!function(e){function t(e,t){return t.forEach((function(t){t&&"string"!=typeof t&&!Array.isArray(t)&&Object.keys(t).forEach((function(n){if("default"!==n&&!(n in e)){var r=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,r.get?r:{enumerable:!0,get:function(){return t[n]}})}}))})),Object.freeze(e)}function n(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var i,o,a={exports:{}},s={},u={exports:{}}; /** * @license React * react.development.js @@ -30,7 +30,7 @@ * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */function A(){return c||(c=1,function(e){"production"!==P.env.NODE_ENV&&function(){"undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error);var t=!1,n=!1;function r(e,t){var n=e.length;e.push(t),function(e,t,n){for(var r=n;r>0;){var i=r-1>>>1,o=e[i];if(!(a(o,t)>0))return;e[i]=t,e[r]=o,r=i}}(e,t,n)}function i(e){return 0===e.length?null:e[0]}function o(e){if(0===e.length)return null;var t=e[0],n=e.pop();return n!==t&&(e[0]=n,function(e,t,n){for(var r=0,i=e.length,o=i>>>1;ra)||n&&!R());){var s=h.callback;if("function"==typeof s){h.callback=null,p=h.priorityLevel;var u=s(h.expirationTime<=a);a=e.unstable_now(),"function"==typeof u?h.callback=u:h===i(c)&&o(c),A(a)}else o(c);h=i(c)}if(null!==h)return!0;var l=i(d);return null!==l&&N(_,l.startTime-a),!1}(r,a)}finally{h=null,p=s,m=!1}}"undefined"!=typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var S=!1,k=null,M=-1,C=5,x=-1;function R(){return!(e.unstable_now()-x125?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):C=e>0?Math.floor(1e3/e):5},e.unstable_getCurrentPriorityLevel=function(){return p},e.unstable_getFirstCallbackNode=function(){return i(c)},e.unstable_next=function(e){var t;switch(p){case 1:case 2:case 3:t=3;break;default:t=p}var n=p;p=t;try{return e()}finally{p=n}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=B,e.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=p;p=e;try{return t()}finally{p=n}},e.unstable_scheduleCallback=function(t,n,o){var a,s,u=e.unstable_now();if("object"==typeof o&&null!==o){var l=o.delay;a="number"==typeof l&&l>0?u+l:u}else a=u;switch(t){case 1:s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}var h=a+s,p={id:f++,callback:n,priorityLevel:t,startTime:a,expirationTime:h,sortIndex:-1};return a>u?(p.sortIndex=a,r(d,p),null===i(c)&&p===i(d)&&(v?D():v=!0,N(_,a-u))):(p.sortIndex=h,r(c,p),g||m||(g=!0,I(E))),p},e.unstable_shouldYield=R,e.unstable_wrapCallback=function(e){var t=p;return function(){var n=p;p=t;try{return e.apply(this,arguments)}finally{p=n}}},"undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)}()}(w)),w}function _(){return d||(d=1,"production"===P.env.NODE_ENV?y.exports=(l||(l=1,function(e){function t(e,t){var n=e.length;e.push(t);e:for(;0>>1,o=e[r];if(!(0>>1;ri(u,n))li(c,u)?(e[r]=c,e[l]=n,r=l):(e[r]=u,e[s]=n,r=s);else{if(!(li(c,n)))break e;e[r]=c,e[l]=n,r=l}}}return t}function i(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if("object"==typeof performance&&"function"==typeof performance.now){var o=performance;e.unstable_now=function(){return o.now()}}else{var a=Date,s=a.now();e.unstable_now=function(){return a.now()-s}}var u=[],l=[],c=1,d=null,f=3,h=!1,p=!1,m=!1,g="function"==typeof setTimeout?setTimeout:null,v="function"==typeof clearTimeout?clearTimeout:null,y="undefined"!=typeof setImmediate?setImmediate:null;function b(e){for(var i=n(l);null!==i;){if(null===i.callback)r(l);else{if(!(i.startTime<=e))break;r(l),i.sortIndex=i.expirationTime,t(u,i)}i=n(l)}}function w(e){if(m=!1,b(e),!p)if(null!==n(u))p=!0,P(A);else{var t=n(l);null!==t&&L(w,t.startTime-e)}}function A(t,i){p=!1,m&&(m=!1,v(k),k=-1),h=!0;var o=f;try{for(b(i),d=n(u);null!==d&&(!(d.expirationTime>i)||t&&!x());){var a=d.callback;if("function"==typeof a){d.callback=null,f=d.priorityLevel;var s=a(d.expirationTime<=i);i=e.unstable_now(),"function"==typeof s?d.callback=s:d===n(u)&&r(u),b(i)}else r(u);d=n(u)}if(null!==d)var c=!0;else{var g=n(l);null!==g&&L(w,g.startTime-i),c=!1}return c}finally{d=null,f=o,h=!1}}"undefined"!=typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var _,E=!1,S=null,k=-1,M=5,C=-1;function x(){return!(e.unstable_now()-Ce||125a?(r.sortIndex=o,t(l,r),null===n(u)&&r===n(l)&&(m?(v(k),k=-1):m=!0,L(w,o-a))):(r.sortIndex=s,t(u,r),p||h||(p=!0,P(A))),r},e.unstable_shouldYield=x,e.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}}}(b)),b):y.exports=A()),y.exports} + */function A(){return c||(c=1,function(e){"production"!==P.env.NODE_ENV&&function(){"undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error);var t=!1,n=!1;function r(e,t){var n=e.length;e.push(t),function(e,t,n){for(var r=n;r>0;){var i=r-1>>>1,o=e[i];if(!(a(o,t)>0))return;e[i]=t,e[r]=o,r=i}}(e,t,n)}function i(e){return 0===e.length?null:e[0]}function o(e){if(0===e.length)return null;var t=e[0],n=e.pop();return n!==t&&(e[0]=n,function(e,t){for(var n=0,r=e.length,i=r>>>1;na)||n&&!R());){var s=h.callback;if("function"==typeof s){h.callback=null,p=h.priorityLevel;var u=s(h.expirationTime<=a);a=e.unstable_now(),"function"==typeof u?h.callback=u:h===i(c)&&o(c),A(a)}else o(c);h=i(c)}if(null!==h)return!0;var l=i(d);return null!==l&&N(_,l.startTime-a),!1}(r,a)}finally{h=null,p=s,m=!1}}"undefined"!=typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var S=!1,k=null,M=-1,C=5,x=-1;function R(){return!(e.unstable_now()-x125?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):C=e>0?Math.floor(1e3/e):5},e.unstable_getCurrentPriorityLevel=function(){return p},e.unstable_getFirstCallbackNode=function(){return i(c)},e.unstable_next=function(e){var t;switch(p){case 1:case 2:case 3:t=3;break;default:t=p}var n=p;p=t;try{return e()}finally{p=n}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=B,e.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=p;p=e;try{return t()}finally{p=n}},e.unstable_scheduleCallback=function(t,n,o){var a,s,u=e.unstable_now();if("object"==typeof o&&null!==o){var l=o.delay;a="number"==typeof l&&l>0?u+l:u}else a=u;switch(t){case 1:s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}var h=a+s,p={id:f++,callback:n,priorityLevel:t,startTime:a,expirationTime:h,sortIndex:-1};return a>u?(p.sortIndex=a,r(d,p),null===i(c)&&p===i(d)&&(v?D():v=!0,N(_,a-u))):(p.sortIndex=h,r(c,p),g||m||(g=!0,I(E))),p},e.unstable_shouldYield=R,e.unstable_wrapCallback=function(e){var t=p;return function(){var n=p;p=t;try{return e.apply(this,arguments)}finally{p=n}}},"undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)}()}(w)),w}function _(){return d||(d=1,"production"===P.env.NODE_ENV?y.exports=(l||(l=1,function(e){function t(e,t){var n=e.length;e.push(t);e:for(;0>>1,o=e[r];if(!(0>>1;ri(u,n))li(c,u)?(e[r]=c,e[l]=n,r=l):(e[r]=u,e[s]=n,r=s);else{if(!(li(c,n)))break e;e[r]=c,e[l]=n,r=l}}}return t}function i(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if("object"==typeof performance&&"function"==typeof performance.now){var o=performance;e.unstable_now=function(){return o.now()}}else{var a=Date,s=a.now();e.unstable_now=function(){return a.now()-s}}var u=[],l=[],c=1,d=null,f=3,h=!1,p=!1,m=!1,g="function"==typeof setTimeout?setTimeout:null,v="function"==typeof clearTimeout?clearTimeout:null,y="undefined"!=typeof setImmediate?setImmediate:null;function b(e){for(var i=n(l);null!==i;){if(null===i.callback)r(l);else{if(!(i.startTime<=e))break;r(l),i.sortIndex=i.expirationTime,t(u,i)}i=n(l)}}function w(e){if(m=!1,b(e),!p)if(null!==n(u))p=!0,P(A);else{var t=n(l);null!==t&&L(w,t.startTime-e)}}function A(t,i){p=!1,m&&(m=!1,v(k),k=-1),h=!0;var o=f;try{for(b(i),d=n(u);null!==d&&(!(d.expirationTime>i)||t&&!x());){var a=d.callback;if("function"==typeof a){d.callback=null,f=d.priorityLevel;var s=a(d.expirationTime<=i);i=e.unstable_now(),"function"==typeof s?d.callback=s:d===n(u)&&r(u),b(i)}else r(u);d=n(u)}if(null!==d)var c=!0;else{var g=n(l);null!==g&&L(w,g.startTime-i),c=!1}return c}finally{d=null,f=o,h=!1}}"undefined"!=typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var _,E=!1,S=null,k=-1,M=5,C=-1;function x(){return!(e.unstable_now()-Ce||125a?(r.sortIndex=o,t(l,r),null===n(u)&&r===n(l)&&(m?(v(k),k=-1):m=!0,L(w,o-a))):(r.sortIndex=s,t(u,r),p||h||(p=!0,P(A))),r},e.unstable_shouldYield=x,e.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}}}(b)),b):y.exports=A()),y.exports} /** * @license React * react-dom.production.min.js @@ -48,7 +48,7 @@ * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */"production"===P.env.NODE_ENV?(function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE){if("production"!==P.env.NODE_ENV)throw new Error("^_^");try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}}(),g.exports=function(){if(f)return v;f=1;var e=h,t=_();function n(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n",t=ce.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,n,r){MSApp.execUnsafeLocalFunction((function(){return de(e,t)}))}:de);function he(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var pe={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},me=["Webkit","ms","Moz","O"];function ge(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||pe.hasOwnProperty(e)&&pe[e]?(""+t).trim():t+"px"}function ve(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),i=ge(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}Object.keys(pe).forEach((function(e){me.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),pe[t]=pe[e]}))}));var ye=j({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function be(e,t){if(t){if(ye[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(n(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(n(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(n(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(n(62))}}function we(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Ae=null;function _e(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var Ee=null,Se=null,ke=null;function Me(e){if(e=vi(e)){if("function"!=typeof Ee)throw Error(n(280));var t=e.stateNode;t&&(t=bi(t),Ee(e.stateNode,e.type,t))}}function Ce(e){Se?ke?ke.push(e):ke=[e]:Se=e}function xe(){if(Se){var e=Se,t=ke;if(ke=Se=null,Me(e),t)for(e=0;e>>=0)?32:31-(ut(e)/lt|0)|0},ut=Math.log,lt=Math.LN2,ct=64,dt=4194304;function ft(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 4194240&e;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&e;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function ht(e,t){var n=e.pendingLanes;if(0===n)return 0;var r=0,i=e.suspendedLanes,o=e.pingedLanes,a=268435455&n;if(0!==a){var s=a&~i;0!==s?r=ft(s):0!=(o&=a)&&(r=ft(o))}else 0!=(a=n&~i)?r=ft(a):0!==o&&(r=ft(o));if(0===r)return 0;if(0!==t&&t!==r&&0==(t&i)&&((i=r&-r)>=(o=t&-t)||16===i&&0!=(4194240&o)))return t;if(0!=(4&r)&&(r|=16&n),0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function yt(e,t,n){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-st(t)]=n}function bt(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-st(n),i=1<=Ln),Dn=String.fromCharCode(32),Bn=!1;function jn(e,t){switch(e){case"keyup":return-1!==Tn.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Un(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var zn=!1,Fn={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function qn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Fn[e.type]:"textarea"===t}function Wn(e,t,n,r){Ce(r),0<(t=Vr(t,"onChange")).length&&(n=new dn("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Vn=null,Kn=null;function Hn(e){Dr(e,0)}function $n(e){if(Y(yi(e)))return e}function Yn(e,t){if("change"===e)return t}var Gn=!1;if(s){var Qn;if(s){var Zn="oninput"in document;if(!Zn){var Xn=document.createElement("div");Xn.setAttribute("oninput","return;"),Zn="function"==typeof Xn.oninput}Qn=Zn}else Qn=!1;Gn=Qn&&(!document.documentMode||9=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=sr(r)}}function lr(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?lr(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function cr(){for(var e=window,t=G();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(!n)break;t=G((e=t.contentWindow).document)}return t}function dr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}function fr(e){var t=cr(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&lr(n.ownerDocument.documentElement,n)){if(null!==r&&dr(n))if(t=r.start,void 0===(e=r.end)&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if((e=(t=n.ownerDocument||document)&&t.defaultView||window).getSelection){e=e.getSelection();var i=n.textContent.length,o=Math.min(r.start,i);r=void 0===r.end?o:Math.min(r.end,i),!e.extend&&o>r&&(i=r,r=o,o=i),i=ur(n,o);var a=ur(n,r);i&&a&&(1!==e.rangeCount||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&((t=t.createRange()).setStart(i.node,i.offset),e.removeAllRanges(),o>r?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}for(t=[],e=n;e=e.parentNode;)1===e.nodeType&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for("function"==typeof n.focus&&n.focus(),n=0;n=document.documentMode,pr=null,mr=null,gr=null,vr=!1;function yr(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;vr||null==pr||pr!==G(r)||(r="selectionStart"in(r=pr)&&dr(r)?{start:r.selectionStart,end:r.selectionEnd}:{anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},gr&&ar(gr,r)||(gr=r,0<(r=Vr(mr,"onSelect")).length&&(t=new dn("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=pr)))}function br(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var wr={animationend:br("Animation","AnimationEnd"),animationiteration:br("Animation","AnimationIteration"),animationstart:br("Animation","AnimationStart"),transitionend:br("Transition","TransitionEnd")},Ar={},_r={};function Er(e){if(Ar[e])return Ar[e];if(!wr[e])return e;var t,n=wr[e];for(t in n)if(n.hasOwnProperty(t)&&t in _r)return Ar[e]=n[t];return e}s&&(_r=document.createElement("div").style,"AnimationEvent"in window||(delete wr.animationend.animation,delete wr.animationiteration.animation,delete wr.animationstart.animation),"TransitionEvent"in window||delete wr.transitionend.transition);var Sr=Er("animationend"),kr=Er("animationiteration"),Mr=Er("animationstart"),Cr=Er("transitionend"),xr=new Map,Rr="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Or(e,t){xr.set(e,t),o(t,[e])}for(var Tr=0;TrAi||(e.current=wi[Ai],wi[Ai]=null,Ai--)}function Si(e,t){Ai++,wi[Ai]=e.current,e.current=t}var ki={},Mi=_i(ki),Ci=_i(!1),xi=ki;function Ri(e,t){var n=e.type.contextTypes;if(!n)return ki;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i,o={};for(i in n)o[i]=t[i];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function Oi(e){return null!=e.childContextTypes}function Ti(){Ei(Ci),Ei(Mi)}function Pi(e,t,r){if(Mi.current!==ki)throw Error(n(168));Si(Mi,t),Si(Ci,r)}function Li(e,t,r){var i=e.stateNode;if(t=t.childContextTypes,"function"!=typeof i.getChildContext)return r;for(var o in i=i.getChildContext())if(!(o in t))throw Error(n(108,V(e)||"Unknown",o));return j({},r,i)}function Ii(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||ki,xi=Mi.current,Si(Mi,e),Si(Ci,Ci.current),!0}function Ni(e,t,r){var i=e.stateNode;if(!i)throw Error(n(169));r?(e=Li(e,t,xi),i.__reactInternalMemoizedMergedChildContext=e,Ei(Ci),Ei(Mi),Si(Mi,e)):Ei(Ci),Si(Ci,r)}var Di=null,Bi=!1,ji=!1;function Ui(e){null===Di?Di=[e]:Di.push(e)}function zi(){if(!ji&&null!==Di){ji=!0;var e=0,t=wt;try{var n=Di;for(wt=1;e>=a,i-=a,Yi=1<<32-st(t)+i|n<m?(g=d,d=null):g=d.sibling;var v=h(n,d,s[m],u);if(null===v){null===d&&(d=g);break}e&&d&&null===v.alternate&&t(n,d),o=a(v,o,m),null===c?l=v:c.sibling=v,c=v,d=g}if(m===s.length)return r(n,d),no&&Qi(n,m),l;if(null===d){for(;mg?(v=m,m=null):v=m.sibling;var b=h(o,m,y.value,l);if(null===b){null===m&&(m=v);break}e&&m&&null===b.alternate&&t(o,m),s=a(b,s,g),null===d?c=b:d.sibling=b,d=b,m=v}if(y.done)return r(o,m),no&&Qi(o,g),c;if(null===m){for(;!y.done;g++,y=u.next())null!==(y=f(o,y.value,l))&&(s=a(y,s,g),null===d?c=y:d.sibling=y,d=y);return no&&Qi(o,g),c}for(m=i(o,m);!y.done;g++,y=u.next())null!==(y=p(m,o,g,y.value,l))&&(e&&null!==y.alternate&&m.delete(null===y.key?g:y.key),s=a(y,s,g),null===d?c=y:d.sibling=y,d=y);return e&&m.forEach((function(e){return t(o,e)})),no&&Qi(o,g),c}return function e(n,i,a,u){if("object"==typeof a&&null!==a&&a.type===S&&null===a.key&&(a=a.props.children),"object"==typeof a&&null!==a){switch(a.$$typeof){case A:e:{for(var l=a.key,c=i;null!==c;){if(c.key===l){if((l=a.type)===S){if(7===c.tag){r(n,c.sibling),(i=o(c,a.props.children)).return=n,n=i;break e}}else if(c.elementType===l||"object"==typeof l&&null!==l&&l.$$typeof===L&&$o(l)===c.type){r(n,c.sibling),(i=o(c,a.props)).ref=Ko(n,c,a),i.return=n,n=i;break e}r(n,c);break}t(n,c),c=c.sibling}a.type===S?((i=Il(a.props.children,n.mode,u,a.key)).return=n,n=i):((u=Ll(a.type,a.key,a.props,null,n.mode,u)).ref=Ko(n,i,a),u.return=n,n=u)}return s(n);case E:e:{for(c=a.key;null!==i;){if(i.key===c){if(4===i.tag&&i.stateNode.containerInfo===a.containerInfo&&i.stateNode.implementation===a.implementation){r(n,i.sibling),(i=o(i,a.children||[])).return=n,n=i;break e}r(n,i);break}t(n,i),i=i.sibling}(i=Bl(a,n.mode,u)).return=n,n=i}return s(n);case L:return e(n,i,(c=a._init)(a._payload),u)}if(ne(a))return m(n,i,a,u);if(D(a))return g(n,i,a,u);Ho(n,a)}return"string"==typeof a&&""!==a||"number"==typeof a?(a=""+a,null!==i&&6===i.tag?(r(n,i.sibling),(i=o(i,a)).return=n,n=i):(r(n,i),(i=Dl(a,n.mode,u)).return=n,n=i),s(n)):r(n,i)}}var Go=Yo(!0),Qo=Yo(!1),Zo={},Xo=_i(Zo),Jo=_i(Zo),ea=_i(Zo);function ta(e){if(e===Zo)throw Error(n(174));return e}function na(e,t){switch(Si(ea,t),Si(Jo,e),Si(Xo,Zo),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:le(null,"");break;default:t=le(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}Ei(Xo),Si(Xo,t)}function ra(){Ei(Xo),Ei(Jo),Ei(ea)}function ia(e){ta(ea.current);var t=ta(Xo.current),n=le(t,e.type);t!==n&&(Si(Jo,e),Si(Xo,n))}function oa(e){Jo.current===e&&(Ei(Xo),Ei(Jo))}var aa=_i(0);function sa(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!=(128&t.flags))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var ua=[];function la(){for(var e=0;en?n:4,e(!0);var r=da.transition;da.transition={};try{e(!1),t()}finally{wt=n,da.transition=r}}function Xa(){return ka().memoizedState}function Ja(e,t,n){var r=el(e);n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},ts(e)?ns(t,n):null!==(n=Co(e,t,n,r))&&(tl(n,e,r,Ju()),rs(n,t,r))}function es(e,t,n){var r=el(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(ts(e))ns(t,i);else{var o=e.alternate;if(0===e.lanes&&(null===o||0===o.lanes)&&null!==(o=t.lastRenderedReducer))try{var a=t.lastRenderedState,s=o(a,n);if(i.hasEagerState=!0,i.eagerState=s,or(s,a)){var u=t.interleaved;return null===u?(i.next=i,Mo(t)):(i.next=u.next,u.next=i),void(t.interleaved=i)}}catch(e){}null!==(n=Co(e,t,i,r))&&(tl(n,e,r,i=Ju()),rs(n,t,r))}}function ts(e){var t=e.alternate;return e===ha||null!==t&&t===ha}function ns(e,t){va=ga=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function rs(e,t,n){if(0!=(4194240&n)){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,bt(e,n)}}var is={readContext:So,useCallback:wa,useContext:wa,useEffect:wa,useImperativeHandle:wa,useInsertionEffect:wa,useLayoutEffect:wa,useMemo:wa,useReducer:wa,useRef:wa,useState:wa,useDebugValue:wa,useDeferredValue:wa,useTransition:wa,useMutableSource:wa,useSyncExternalStore:wa,useId:wa,unstable_isNewReconciler:!1},os={readContext:So,useCallback:function(e,t){return Sa().memoizedState=[e,void 0===t?null:t],e},useContext:So,useEffect:Fa,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,Ua(4194308,4,Ka.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Ua(4194308,4,e,t)},useInsertionEffect:function(e,t){return Ua(4,2,e,t)},useMemo:function(e,t){var n=Sa();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Sa();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=Ja.bind(null,ha,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},Sa().memoizedState=e},useState:Da,useDebugValue:$a,useDeferredValue:function(e){return Sa().memoizedState=e},useTransition:function(){var e=Da(!1),t=e[0];return e=Za.bind(null,e[1]),Sa().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var i=ha,o=Sa();if(no){if(void 0===r)throw Error(n(407));r=r()}else{if(r=t(),null===xu)throw Error(n(349));0!=(30&fa)||Ta(i,t,r)}o.memoizedState=r;var a={value:r,getSnapshot:t};return o.queue=a,Fa(La.bind(null,i,a,e),[e]),i.flags|=2048,Ba(9,Pa.bind(null,i,a,r,t),void 0,null),r},useId:function(){var e=Sa(),t=xu.identifierPrefix;if(no){var n=Gi;t=":"+t+"R"+(n=(Yi&~(1<<32-st(Yi)-1)).toString(32)+n),0<(n=ya++)&&(t+="H"+n.toString(32)),t+=":"}else t=":"+t+"r"+(n=ba++).toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},as={readContext:So,useCallback:Ya,useContext:So,useEffect:qa,useImperativeHandle:Ha,useInsertionEffect:Wa,useLayoutEffect:Va,useMemo:Ga,useReducer:Ca,useRef:ja,useState:function(){return Ca(Ma)},useDebugValue:$a,useDeferredValue:function(e){return Qa(ka(),pa.memoizedState,e)},useTransition:function(){return[Ca(Ma)[0],ka().memoizedState]},useMutableSource:Ra,useSyncExternalStore:Oa,useId:Xa,unstable_isNewReconciler:!1},ss={readContext:So,useCallback:Ya,useContext:So,useEffect:qa,useImperativeHandle:Ha,useInsertionEffect:Wa,useLayoutEffect:Va,useMemo:Ga,useReducer:xa,useRef:ja,useState:function(){return xa(Ma)},useDebugValue:$a,useDeferredValue:function(e){var t=ka();return null===pa?t.memoizedState=e:Qa(t,pa.memoizedState,e)},useTransition:function(){return[xa(Ma)[0],ka().memoizedState]},useMutableSource:Ra,useSyncExternalStore:Oa,useId:Xa,unstable_isNewReconciler:!1};function us(e,t){try{var n="",r=t;do{n+=q(r),r=r.return}while(r);var i=n}catch(e){i="\nError generating stack: "+e.message+"\n"+e.stack}return{value:e,source:t,stack:i,digest:null}}function ls(e,t,n){return{value:e,source:null,stack:null!=n?n:null,digest:null!=t?t:null}}function cs(e,t){try{console.error(t.value)}catch(e){setTimeout((function(){throw e}))}}var ds="function"==typeof WeakMap?WeakMap:Map;function fs(e,t,n){(n=Po(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Wu||(Wu=!0,Vu=r),cs(0,t)},n}function hs(e,t,n){(n=Po(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var i=t.value;n.payload=function(){return r(i)},n.callback=function(){cs(0,t)}}var o=e.stateNode;return null!==o&&"function"==typeof o.componentDidCatch&&(n.callback=function(){cs(0,t),"function"!=typeof r&&(null===Ku?Ku=new Set([this]):Ku.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}function ps(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new ds;var i=new Set;r.set(t,i)}else void 0===(i=r.get(t))&&(i=new Set,r.set(t,i));i.has(n)||(i.add(n),e=Sl.bind(null,e,t,n),t.then(e,e))}function ms(e){do{var t;if((t=13===e.tag)&&(t=null===(t=e.memoizedState)||null!==t.dehydrated),t)return e;e=e.return}while(null!==e);return null}function gs(e,t,n,r,i){return 0==(1&e.mode)?(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,1===n.tag&&(null===n.alternate?n.tag=17:((t=Po(-1,1)).tag=2,Lo(n,t,1))),n.lanes|=1),e):(e.flags|=65536,e.lanes=i,e)}var vs=w.ReactCurrentOwner,ys=!1;function bs(e,t,n,r){t.child=null===e?Qo(t,null,n,r):Go(t,e.child,n,r)}function ws(e,t,n,r,i){n=n.render;var o=t.ref;return Eo(t,i),r=_a(e,t,n,r,o,i),n=Ea(),null===e||ys?(no&&n&&Xi(t),t.flags|=1,bs(e,t,r,i),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Ws(e,t,i))}function As(e,t,n,r,i){if(null===e){var o=n.type;return"function"!=typeof o||Tl(o)||void 0!==o.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Ll(n.type,null,r,t,t.mode,i)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=o,_s(e,t,o,r,i))}if(o=e.child,0==(e.lanes&i)){var a=o.memoizedProps;if((n=null!==(n=n.compare)?n:ar)(a,r)&&e.ref===t.ref)return Ws(e,t,i)}return t.flags|=1,(e=Pl(o,r)).ref=t.ref,e.return=t,t.child=e}function _s(e,t,n,r,i){if(null!==e){var o=e.memoizedProps;if(ar(o,r)&&e.ref===t.ref){if(ys=!1,t.pendingProps=r=o,0==(e.lanes&i))return t.lanes=e.lanes,Ws(e,t,i);0!=(131072&e.flags)&&(ys=!0)}}return ks(e,t,n,r,i)}function Es(e,t,n){var r=t.pendingProps,i=r.children,o=null!==e?e.memoizedState:null;if("hidden"===r.mode)if(0==(1&t.mode))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Si(Pu,Tu),Tu|=n;else{if(0==(1073741824&n))return e=null!==o?o.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Si(Pu,Tu),Tu|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=null!==o?o.baseLanes:n,Si(Pu,Tu),Tu|=r}else null!==o?(r=o.baseLanes|n,t.memoizedState=null):r=n,Si(Pu,Tu),Tu|=r;return bs(e,t,i,n),t.child}function Ss(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function ks(e,t,n,r,i){var o=Oi(n)?xi:Mi.current;return o=Ri(t,o),Eo(t,i),n=_a(e,t,n,r,o,i),r=Ea(),null===e||ys?(no&&r&&Xi(t),t.flags|=1,bs(e,t,n,i),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Ws(e,t,i))}function Ms(e,t,n,r,i){if(Oi(n)){var o=!0;Ii(t)}else o=!1;if(Eo(t,i),null===t.stateNode)qs(e,t),qo(t,n,r),Vo(t,n,r,i),r=!0;else if(null===e){var a=t.stateNode,s=t.memoizedProps;a.props=s;var u=a.context,l=n.contextType;l="object"==typeof l&&null!==l?So(l):Ri(t,l=Oi(n)?xi:Mi.current);var c=n.getDerivedStateFromProps,d="function"==typeof c||"function"==typeof a.getSnapshotBeforeUpdate;d||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(s!==r||u!==l)&&Wo(t,a,r,l),Ro=!1;var f=t.memoizedState;a.state=f,Do(t,r,a,i),u=t.memoizedState,s!==r||f!==u||Ci.current||Ro?("function"==typeof c&&(Uo(t,n,c,r),u=t.memoizedState),(s=Ro||Fo(t,n,s,r,f,u,l))?(d||"function"!=typeof a.UNSAFE_componentWillMount&&"function"!=typeof a.componentWillMount||("function"==typeof a.componentWillMount&&a.componentWillMount(),"function"==typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount()),"function"==typeof a.componentDidMount&&(t.flags|=4194308)):("function"==typeof a.componentDidMount&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=u),a.props=r,a.state=u,a.context=l,r=s):("function"==typeof a.componentDidMount&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,To(e,t),s=t.memoizedProps,l=t.type===t.elementType?s:mo(t.type,s),a.props=l,d=t.pendingProps,f=a.context,u="object"==typeof(u=n.contextType)&&null!==u?So(u):Ri(t,u=Oi(n)?xi:Mi.current);var h=n.getDerivedStateFromProps;(c="function"==typeof h||"function"==typeof a.getSnapshotBeforeUpdate)||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(s!==d||f!==u)&&Wo(t,a,r,u),Ro=!1,f=t.memoizedState,a.state=f,Do(t,r,a,i);var p=t.memoizedState;s!==d||f!==p||Ci.current||Ro?("function"==typeof h&&(Uo(t,n,h,r),p=t.memoizedState),(l=Ro||Fo(t,n,l,r,f,p,u)||!1)?(c||"function"!=typeof a.UNSAFE_componentWillUpdate&&"function"!=typeof a.componentWillUpdate||("function"==typeof a.componentWillUpdate&&a.componentWillUpdate(r,p,u),"function"==typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(r,p,u)),"function"==typeof a.componentDidUpdate&&(t.flags|=4),"function"==typeof a.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!=typeof a.componentDidUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=p),a.props=r,a.state=p,a.context=u,r=l):("function"!=typeof a.componentDidUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return Cs(e,t,n,r,o,i)}function Cs(e,t,n,r,i,o){Ss(e,t);var a=0!=(128&t.flags);if(!r&&!a)return i&&Ni(t,n,!1),Ws(e,t,o);r=t.stateNode,vs.current=t;var s=a&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&a?(t.child=Go(t,e.child,null,o),t.child=Go(t,null,s,o)):bs(e,t,s,o),t.memoizedState=r.state,i&&Ni(t,n,!0),t.child}function xs(e){var t=e.stateNode;t.pendingContext?Pi(0,t.pendingContext,t.pendingContext!==t.context):t.context&&Pi(0,t.context,!1),na(e,t.containerInfo)}function Rs(e,t,n,r,i){return fo(),ho(i),t.flags|=256,bs(e,t,n,r),t.child}var Os,Ts,Ps,Ls,Is={dehydrated:null,treeContext:null,retryLane:0};function Ns(e){return{baseLanes:e,cachePool:null,transitions:null}}function Ds(e,t,r){var i,o=t.pendingProps,a=aa.current,s=!1,u=0!=(128&t.flags);if((i=u)||(i=(null===e||null!==e.memoizedState)&&0!=(2&a)),i?(s=!0,t.flags&=-129):null!==e&&null===e.memoizedState||(a|=1),Si(aa,1&a),null===e)return so(t),null!==(e=t.memoizedState)&&null!==(e=e.dehydrated)?(0==(1&t.mode)?t.lanes=1:"$!"===e.data?t.lanes=8:t.lanes=1073741824,null):(u=o.children,e=o.fallback,s?(o=t.mode,s=t.child,u={mode:"hidden",children:u},0==(1&o)&&null!==s?(s.childLanes=0,s.pendingProps=u):s=Nl(u,o,0,null),e=Il(e,o,r,null),s.return=t,e.return=t,s.sibling=e,t.child=s,t.child.memoizedState=Ns(r),t.memoizedState=Is,e):Bs(t,u));if(null!==(a=e.memoizedState)&&null!==(i=a.dehydrated))return function(e,t,r,i,o,a,s){if(r)return 256&t.flags?(t.flags&=-257,js(e,t,s,i=ls(Error(n(422))))):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(a=i.fallback,o=t.mode,i=Nl({mode:"visible",children:i.children},o,0,null),(a=Il(a,o,s,null)).flags|=2,i.return=t,a.return=t,i.sibling=a,t.child=i,0!=(1&t.mode)&&Go(t,e.child,null,s),t.child.memoizedState=Ns(s),t.memoizedState=Is,a);if(0==(1&t.mode))return js(e,t,s,null);if("$!"===o.data){if(i=o.nextSibling&&o.nextSibling.dataset)var u=i.dgst;return i=u,js(e,t,s,i=ls(a=Error(n(419)),i,void 0))}if(u=0!=(s&e.childLanes),ys||u){if(null!==(i=xu)){switch(s&-s){case 4:o=2;break;case 16:o=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:o=32;break;case 536870912:o=268435456;break;default:o=0}0!==(o=0!=(o&(i.suspendedLanes|s))?0:o)&&o!==a.retryLane&&(a.retryLane=o,xo(e,o),tl(i,e,o,-1))}return pl(),js(e,t,s,i=ls(Error(n(421))))}return"$?"===o.data?(t.flags|=128,t.child=e.child,t=Ml.bind(null,e),o._reactRetry=t,null):(e=a.treeContext,to=si(o.nextSibling),eo=t,no=!0,ro=null,null!==e&&(Ki[Hi++]=Yi,Ki[Hi++]=Gi,Ki[Hi++]=$i,Yi=e.id,Gi=e.overflow,$i=t),(t=Bs(t,i.children)).flags|=4096,t)}(e,t,u,o,i,a,r);if(s){s=o.fallback,u=t.mode,i=(a=e.child).sibling;var l={mode:"hidden",children:o.children};return 0==(1&u)&&t.child!==a?((o=t.child).childLanes=0,o.pendingProps=l,t.deletions=null):(o=Pl(a,l)).subtreeFlags=14680064&a.subtreeFlags,null!==i?s=Pl(i,s):(s=Il(s,u,r,null)).flags|=2,s.return=t,o.return=t,o.sibling=s,t.child=o,o=s,s=t.child,u=null===(u=e.child.memoizedState)?Ns(r):{baseLanes:u.baseLanes|r,cachePool:null,transitions:u.transitions},s.memoizedState=u,s.childLanes=e.childLanes&~r,t.memoizedState=Is,o}return e=(s=e.child).sibling,o=Pl(s,{mode:"visible",children:o.children}),0==(1&t.mode)&&(o.lanes=r),o.return=t,o.sibling=null,null!==e&&(null===(r=t.deletions)?(t.deletions=[e],t.flags|=16):r.push(e)),t.child=o,t.memoizedState=null,o}function Bs(e,t){return(t=Nl({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function js(e,t,n,r){return null!==r&&ho(r),Go(t,e.child,null,n),(e=Bs(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function Us(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),_o(e.return,t,n)}function zs(e,t,n,r,i){var o=e.memoizedState;null===o?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i)}function Fs(e,t,n){var r=t.pendingProps,i=r.revealOrder,o=r.tail;if(bs(e,t,r.children,n),0!=(2&(r=aa.current)))r=1&r|2,t.flags|=128;else{if(null!==e&&0!=(128&e.flags))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&Us(e,n,t);else if(19===e.tag)Us(e,n,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(Si(aa,r),0==(1&t.mode))t.memoizedState=null;else switch(i){case"forwards":for(n=t.child,i=null;null!==n;)null!==(e=n.alternate)&&null===sa(e)&&(i=n),n=n.sibling;null===(n=i)?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),zs(t,!1,i,n,o);break;case"backwards":for(n=null,i=t.child,t.child=null;null!==i;){if(null!==(e=i.alternate)&&null===sa(e)){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}zs(t,!0,n,null,o);break;case"together":zs(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function qs(e,t){0==(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Ws(e,t,r){if(null!==e&&(t.dependencies=e.dependencies),Nu|=t.lanes,0==(r&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(n(153));if(null!==t.child){for(r=Pl(e=t.child,e.pendingProps),t.child=r,r.return=t;null!==e.sibling;)e=e.sibling,(r=r.sibling=Pl(e,e.pendingProps)).return=t;r.sibling=null}return t.child}function Vs(e,t){if(!no)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Ks(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;null!==i;)n|=i.lanes|i.childLanes,r|=14680064&i.subtreeFlags,r|=14680064&i.flags,i.return=e,i=i.sibling;else for(i=e.child;null!==i;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Hs(e,t,r){var o=t.pendingProps;switch(Ji(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ks(t),null;case 1:case 17:return Oi(t.type)&&Ti(),Ks(t),null;case 3:return o=t.stateNode,ra(),Ei(Ci),Ei(Mi),la(),o.pendingContext&&(o.context=o.pendingContext,o.pendingContext=null),null!==e&&null!==e.child||(lo(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&0==(256&t.flags)||(t.flags|=1024,null!==ro&&(ol(ro),ro=null))),Ts(e,t),Ks(t),null;case 5:oa(t);var a=ta(ea.current);if(r=t.type,null!==e&&null!=t.stateNode)Ps(e,t,r,o,a),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!o){if(null===t.stateNode)throw Error(n(166));return Ks(t),null}if(e=ta(Xo.current),lo(t)){o=t.stateNode,r=t.type;var s=t.memoizedProps;switch(o[ci]=t,o[di]=s,e=0!=(1&t.mode),r){case"dialog":Br("cancel",o),Br("close",o);break;case"iframe":case"object":case"embed":Br("load",o);break;case"video":case"audio":for(a=0;a<\/script>",e=e.removeChild(e.firstChild)):"string"==typeof o.is?e=u.createElement(r,{is:o.is}):(e=u.createElement(r),"select"===r&&(u=e,o.multiple?u.multiple=!0:o.size&&(u.size=o.size))):e=u.createElementNS(e,r),e[ci]=t,e[di]=o,Os(e,t,!1,!1),t.stateNode=e;e:{switch(u=we(r,o),r){case"dialog":Br("cancel",e),Br("close",e),a=o;break;case"iframe":case"object":case"embed":Br("load",e),a=o;break;case"video":case"audio":for(a=0;aFu&&(t.flags|=128,o=!0,Vs(s,!1),t.lanes=4194304)}else{if(!o)if(null!==(e=sa(u))){if(t.flags|=128,o=!0,null!==(r=e.updateQueue)&&(t.updateQueue=r,t.flags|=4),Vs(s,!0),null===s.tail&&"hidden"===s.tailMode&&!u.alternate&&!no)return Ks(t),null}else 2*Xe()-s.renderingStartTime>Fu&&1073741824!==r&&(t.flags|=128,o=!0,Vs(s,!1),t.lanes=4194304);s.isBackwards?(u.sibling=t.child,t.child=u):(null!==(r=s.last)?r.sibling=u:t.child=u,s.last=u)}return null!==s.tail?(t=s.tail,s.rendering=t,s.tail=t.sibling,s.renderingStartTime=Xe(),t.sibling=null,r=aa.current,Si(aa,o?1&r|2:1&r),t):(Ks(t),null);case 22:case 23:return cl(),o=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==o&&(t.flags|=8192),o&&0!=(1&t.mode)?0!=(1073741824&Tu)&&(Ks(t),6&t.subtreeFlags&&(t.flags|=8192)):Ks(t),null;case 24:case 25:return null}throw Error(n(156,t.tag))}function $s(e,t){switch(Ji(t),t.tag){case 1:return Oi(t.type)&&Ti(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return ra(),Ei(Ci),Ei(Mi),la(),0!=(65536&(e=t.flags))&&0==(128&e)?(t.flags=-65537&e|128,t):null;case 5:return oa(t),null;case 13:if(Ei(aa),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(n(340));fo()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return Ei(aa),null;case 4:return ra(),null;case 10:return Ao(t.type._context),null;case 22:case 23:return cl(),null;default:return null}}Os=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Ts=function(){},Ps=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,ta(Xo.current);var a,s=null;switch(n){case"input":o=Q(e,o),r=Q(e,r),s=[];break;case"select":o=j({},o,{value:void 0}),r=j({},r,{value:void 0}),s=[];break;case"textarea":o=ie(e,o),r=ie(e,r),s=[];break;default:"function"!=typeof o.onClick&&"function"==typeof r.onClick&&(e.onclick=Zr)}for(c in be(n,r),n=null,o)if(!r.hasOwnProperty(c)&&o.hasOwnProperty(c)&&null!=o[c])if("style"===c){var u=o[c];for(a in u)u.hasOwnProperty(a)&&(n||(n={}),n[a]="")}else"dangerouslySetInnerHTML"!==c&&"children"!==c&&"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&"autoFocus"!==c&&(i.hasOwnProperty(c)?s||(s=[]):(s=s||[]).push(c,null));for(c in r){var l=r[c];if(u=null!=o?o[c]:void 0,r.hasOwnProperty(c)&&l!==u&&(null!=l||null!=u))if("style"===c)if(u){for(a in u)!u.hasOwnProperty(a)||l&&l.hasOwnProperty(a)||(n||(n={}),n[a]="");for(a in l)l.hasOwnProperty(a)&&u[a]!==l[a]&&(n||(n={}),n[a]=l[a])}else n||(s||(s=[]),s.push(c,n)),n=l;else"dangerouslySetInnerHTML"===c?(l=l?l.__html:void 0,u=u?u.__html:void 0,null!=l&&u!==l&&(s=s||[]).push(c,l)):"children"===c?"string"!=typeof l&&"number"!=typeof l||(s=s||[]).push(c,""+l):"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&(i.hasOwnProperty(c)?(null!=l&&"onScroll"===c&&Br("scroll",e),s||u===l||(s=[])):(s=s||[]).push(c,l))}n&&(s=s||[]).push("style",n);var c=s;(t.updateQueue=c)&&(t.flags|=4)}},Ls=function(e,t,n,r){n!==r&&(t.flags|=4)};var Ys=!1,Gs=!1,Qs="function"==typeof WeakSet?WeakSet:Set,Zs=null;function Xs(e,t){var n=e.ref;if(null!==n)if("function"==typeof n)try{n(null)}catch(n){El(e,t,n)}else n.current=null}function Js(e,t,n){try{n()}catch(n){El(e,t,n)}}var eu=!1;function tu(e,t,n){var r=t.updateQueue;if(null!==(r=null!==r?r.lastEffect:null)){var i=r=r.next;do{if((i.tag&e)===e){var o=i.destroy;i.destroy=void 0,void 0!==o&&Js(t,n,o)}i=i.next}while(i!==r)}}function nu(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function ru(e){var t=e.ref;if(null!==t){var n=e.stateNode;e.tag,e=n,"function"==typeof t?t(e):t.current=e}}function iu(e){var t=e.alternate;null!==t&&(e.alternate=null,iu(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&null!==(t=e.stateNode)&&(delete t[ci],delete t[di],delete t[hi],delete t[pi],delete t[mi]),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function ou(e){return 5===e.tag||3===e.tag||4===e.tag}function au(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||ou(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function su(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!=(n=n._reactRootContainer)||null!==t.onclick||(t.onclick=Zr));else if(4!==r&&null!==(e=e.child))for(su(e,t,n),e=e.sibling;null!==e;)su(e,t,n),e=e.sibling}function uu(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&null!==(e=e.child))for(uu(e,t,n),e=e.sibling;null!==e;)uu(e,t,n),e=e.sibling}var lu=null,cu=!1;function du(e,t,n){for(n=n.child;null!==n;)fu(e,t,n),n=n.sibling}function fu(e,t,n){if(at&&"function"==typeof at.onCommitFiberUnmount)try{at.onCommitFiberUnmount(ot,n)}catch(e){}switch(n.tag){case 5:Gs||Xs(n,t);case 6:var r=lu,i=cu;lu=null,du(e,t,n),cu=i,null!==(lu=r)&&(cu?(e=lu,n=n.stateNode,8===e.nodeType?e.parentNode.removeChild(n):e.removeChild(n)):lu.removeChild(n.stateNode));break;case 18:null!==lu&&(cu?(e=lu,n=n.stateNode,8===e.nodeType?ai(e.parentNode,n):1===e.nodeType&&ai(e,n),Wt(e)):ai(lu,n.stateNode));break;case 4:r=lu,i=cu,lu=n.stateNode.containerInfo,cu=!0,du(e,t,n),lu=r,cu=i;break;case 0:case 11:case 14:case 15:if(!Gs&&null!==(r=n.updateQueue)&&null!==(r=r.lastEffect)){i=r=r.next;do{var o=i,a=o.destroy;o=o.tag,void 0!==a&&(0!=(2&o)||0!=(4&o))&&Js(n,t,a),i=i.next}while(i!==r)}du(e,t,n);break;case 1:if(!Gs&&(Xs(n,t),"function"==typeof(r=n.stateNode).componentWillUnmount))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(e){El(n,t,e)}du(e,t,n);break;case 21:du(e,t,n);break;case 22:1&n.mode?(Gs=(r=Gs)||null!==n.memoizedState,du(e,t,n),Gs=r):du(e,t,n);break;default:du(e,t,n)}}function hu(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new Qs),t.forEach((function(t){var r=Cl.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}function pu(e,t){var r=t.deletions;if(null!==r)for(var i=0;io&&(o=s),i&=~a}if(i=o,10<(i=(120>(i=Xe()-i)?120:480>i?480:1080>i?1080:1920>i?1920:3e3>i?3e3:4320>i?4320:1960*Eu(i/1960))-i)){e.timeoutHandle=ti(wl.bind(null,e,Uu,qu),i);break}wl(e,Uu,qu);break;default:throw Error(n(329))}}}return nl(e,Xe()),e.callbackNode===r?rl.bind(null,e):null}function il(e,t){var n=ju;return e.current.memoizedState.isDehydrated&&(dl(e,t).flags|=256),2!==(e=ml(e,t))&&(t=Uu,Uu=n,null!==t&&ol(t)),e}function ol(e){null===Uu?Uu=e:Uu.push.apply(Uu,e)}function al(e,t){for(t&=~Bu,t&=~Du,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0e?16:e,null===$u)var i=!1;else{if(e=$u,$u=null,Yu=0,0!=(6&Cu))throw Error(n(331));var o=Cu;for(Cu|=4,Zs=e.current;null!==Zs;){var a=Zs,s=a.child;if(0!=(16&Zs.flags)){var u=a.deletions;if(null!==u){for(var l=0;lXe()-zu?dl(e,0):Bu|=n),nl(e,t)}function kl(e,t){0===t&&(0==(1&e.mode)?t=1:(t=dt,0==(130023424&(dt<<=1))&&(dt=4194304)));var n=Ju();null!==(e=xo(e,t))&&(yt(e,t,n),nl(e,n))}function Ml(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),kl(e,n)}function Cl(e,t){var r=0;switch(e.tag){case 13:var i=e.stateNode,o=e.memoizedState;null!==o&&(r=o.retryLane);break;case 19:i=e.stateNode;break;default:throw Error(n(314))}null!==i&&i.delete(t),kl(e,r)}function xl(e,t){return Ye(e,t)}function Rl(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ol(e,t,n,r){return new Rl(e,t,n,r)}function Tl(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Pl(e,t){var n=e.alternate;return null===n?((n=Ol(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=14680064&e.flags,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Ll(e,t,r,i,o,a){var s=2;if(i=e,"function"==typeof e)Tl(e)&&(s=1);else if("string"==typeof e)s=5;else e:switch(e){case S:return Il(r.children,o,a,t);case k:s=8,o|=8;break;case M:return(e=Ol(12,r,t,2|o)).elementType=M,e.lanes=a,e;case O:return(e=Ol(13,r,t,o)).elementType=O,e.lanes=a,e;case T:return(e=Ol(19,r,t,o)).elementType=T,e.lanes=a,e;case I:return Nl(r,o,a,t);default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case C:s=10;break e;case x:s=9;break e;case R:s=11;break e;case P:s=14;break e;case L:s=16,i=null;break e}throw Error(n(130,null==e?e:typeof e,""))}return(t=Ol(s,r,t,o)).elementType=e,t.type=i,t.lanes=a,t}function Il(e,t,n,r){return(e=Ol(7,e,r,t)).lanes=n,e}function Nl(e,t,n,r){return(e=Ol(22,e,r,t)).elementType=I,e.lanes=n,e.stateNode={isHidden:!1},e}function Dl(e,t,n){return(e=Ol(6,e,null,t)).lanes=n,e}function Bl(e,t,n){return(t=Ol(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function jl(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=vt(0),this.expirationTimes=vt(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=vt(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function Ul(e,t,n,r,i,o,a,s,u){return e=new jl(e,t,n,s,u),1===t?(t=1,!0===o&&(t|=8)):t=0,o=Ol(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Oo(o),e}function zl(e){if(!e)return ki;e:{if(We(e=e._reactInternals)!==e||1!==e.tag)throw Error(n(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Oi(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(n(171))}if(1===e.tag){var r=e.type;if(Oi(r))return Li(e,r,t)}return t}function Fl(e,t,n,r,i,o,a,s,u){return(e=Ul(n,r,!0,e,0,o,0,s,u)).context=zl(null),n=e.current,(o=Po(r=Ju(),i=el(n))).callback=null!=t?t:null,Lo(n,o,i),e.current.lanes=i,yt(e,i,r),nl(e,r),e}function ql(e,t,n,r){var i=t.current,o=Ju(),a=el(i);return n=zl(n),null===t.context?t.context=n:t.pendingContext=n,(t=Po(o,a)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),null!==(e=Lo(i,t,a))&&(tl(e,i,a,o),Io(e,i,a)),a}function Wl(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function Vl(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n1?t-1:0),i=1;i1?t-1:0),i=1;i2&&("o"===e[0]||"O"===e[0])&&("n"===e[1]||"N"===e[1])}function ge(e,t,n,r){if(null!==n&&n.type===ie)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":if(r)return!1;if(null!==n)return!n.acceptsBooleans;var i=e.toLowerCase().slice(0,5);return"data-"!==i&&"aria-"!==i;default:return!1}}function ve(e,t,n,r){if(null==t)return!0;if(ge(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case oe:return!t;case ae:return!1===t;case se:return isNaN(t);case ue:return isNaN(t)||t<1}return!1}function ye(e){return we.hasOwnProperty(e)?we[e]:null}function be(e,t,n,r,i,o,a){this.acceptsBooleans=2===t||t===oe||t===ae,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=a}var we={};["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"].forEach((function(e){we[e]=new be(e,ie,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0],n=e[1];we[t]=new be(t,1,!1,n,null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){we[e]=new be(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){we[e]=new be(e,2,!1,e,null,!1,!1)})),["allowFullScreen","async","autoFocus","autoPlay","controls","default","defer","disabled","disablePictureInPicture","disableRemotePlayback","formNoValidate","hidden","loop","noModule","noValidate","open","playsInline","readOnly","required","reversed","scoped","seamless","itemScope"].forEach((function(e){we[e]=new be(e,oe,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){we[e]=new be(e,oe,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){we[e]=new be(e,ae,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){we[e]=new be(e,ue,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){we[e]=new be(e,se,!1,e.toLowerCase(),null,!1,!1)}));var Ae=/[\-\:]([a-z])/g,_e=function(e){return e[1].toUpperCase()};["accent-height","alignment-baseline","arabic-form","baseline-shift","cap-height","clip-path","clip-rule","color-interpolation","color-interpolation-filters","color-profile","color-rendering","dominant-baseline","enable-background","fill-opacity","fill-rule","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","glyph-name","glyph-orientation-horizontal","glyph-orientation-vertical","horiz-adv-x","horiz-origin-x","image-rendering","letter-spacing","lighting-color","marker-end","marker-mid","marker-start","overline-position","overline-thickness","paint-order","panose-1","pointer-events","rendering-intent","shape-rendering","stop-color","stop-opacity","strikethrough-position","strikethrough-thickness","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-anchor","text-decoration","text-rendering","underline-position","underline-thickness","unicode-bidi","unicode-range","units-per-em","v-alphabetic","v-hanging","v-ideographic","v-mathematical","vector-effect","vert-adv-y","vert-origin-x","vert-origin-y","word-spacing","writing-mode","xmlns:xlink","x-height"].forEach((function(e){var t=e.replace(Ae,_e);we[t]=new be(t,1,!1,e,null,!1,!1)})),["xlink:actuate","xlink:arcrole","xlink:role","xlink:show","xlink:title","xlink:type"].forEach((function(e){var t=e.replace(Ae,_e);we[t]=new be(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(Ae,_e);we[t]=new be(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){we[e]=new be(e,1,!1,e.toLowerCase(),null,!1,!1)})),we.xlinkHref=new be("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){we[e]=new be(e,1,!1,e.toLowerCase(),null,!0,!0)}));var Ee=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*\:/i,Se=!1;function ke(e){!Se&&Ee.test(e)&&(Se=!0,o("A future version of React will block javascript: URLs as a security precaution. Use event handlers instead if you can. If you need to generate unsafe HTML try using dangerouslySetInnerHTML instead. React was passed %s.",JSON.stringify(e)))}function Me(e,t,n,r){if(r.mustUseProperty)return e[r.propertyName];ne(n,t),r.sanitizeURL&&ke(""+n);var i=r.attributeName,o=null;if(r.type===ae){if(e.hasAttribute(i)){var a=e.getAttribute(i);return""===a||(ve(t,n,r,!1)?a:a===""+n?n:a)}}else if(e.hasAttribute(i)){if(ve(t,n,r,!1))return e.getAttribute(i);if(r.type===oe)return n;o=e.getAttribute(i)}return ve(t,n,r,!1)?null===o?n:o:o===""+n?n:o}function Ce(e,t,n,r){if(pe(t)){if(!e.hasAttribute(t))return void 0===n?void 0:null;var i=e.getAttribute(t);return ne(n,t),i===""+n?n:i}}function xe(e,t,n,r){var i=ye(t);if(!me(t,i,r))if(ve(t,n,i,r)&&(n=null),r||null===i){if(pe(t)){var o=t;null===n?e.removeAttribute(o):(ne(n,t),e.setAttribute(o,""+n))}}else if(i.mustUseProperty){var a=i.propertyName;if(null===n){var s=i.type;e[a]=s!==oe&&""}else e[a]=n}else{var u=i.attributeName,l=i.attributeNamespace;if(null===n)e.removeAttribute(u);else{var c,d=i.type;d===oe||d===ae&&!0===n?c="":(ne(n,u),c=""+n,i.sanitizeURL&&ke(c.toString())),l?e.setAttributeNS(l,u,c):e.setAttribute(u,c)}}}var Re=Symbol.for("react.element"),Oe=Symbol.for("react.portal"),Te=Symbol.for("react.fragment"),Pe=Symbol.for("react.strict_mode"),Le=Symbol.for("react.profiler"),Ie=Symbol.for("react.provider"),Ne=Symbol.for("react.context"),De=Symbol.for("react.forward_ref"),Be=Symbol.for("react.suspense"),je=Symbol.for("react.suspense_list"),Ue=Symbol.for("react.memo"),ze=Symbol.for("react.lazy"),Fe=Symbol.for("react.offscreen"),qe=Symbol.iterator,We="@@iterator";function Ve(e){if(null===e||"object"!=typeof e)return null;var t=qe&&e[qe]||e[We];return"function"==typeof t?t:null}var Ke,He,$e,Ye,Ge,Qe,Ze,Xe=Object.assign,Je=0;function et(){}et.__reactDisabledLog=!0;var tt,nt=n.ReactCurrentDispatcher;function rt(e,t,n){if(void 0===tt)try{throw Error()}catch(e){var r=e.stack.trim().match(/\n( *(at )?)/);tt=r&&r[1]||""}return"\n"+tt+e}var it,ot=!1,at="function"==typeof WeakMap?WeakMap:Map;function st(e,t){if(!e||ot)return"";var n,r=it.get(e);if(void 0!==r)return r;ot=!0;var i,a=Error.prepareStackTrace;Error.prepareStackTrace=void 0,i=nt.current,nt.current=null,function(){if(0===Je){Ke=console.log,He=console.info,$e=console.warn,Ye=console.error,Ge=console.group,Qe=console.groupCollapsed,Ze=console.groupEnd;var e={configurable:!0,enumerable:!0,value:et,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}Je++}();try{if(t){var s=function(){throw Error()};if(Object.defineProperty(s.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(s,[])}catch(e){n=e}Reflect.construct(e,[],s)}else{try{s.call()}catch(e){n=e}e.call(s.prototype)}}else{try{throw Error()}catch(e){n=e}e()}}catch(t){if(t&&n&&"string"==typeof t.stack){for(var u=t.stack.split("\n"),l=n.stack.split("\n"),c=u.length-1,d=l.length-1;c>=1&&d>=0&&u[c]!==l[d];)d--;for(;c>=1&&d>=0;c--,d--)if(u[c]!==l[d]){if(1!==c||1!==d)do{if(c--,--d<0||u[c]!==l[d]){var f="\n"+u[c].replace(" at new "," at ");return e.displayName&&f.includes("")&&(f=f.replace("",e.displayName)),"function"==typeof e&&it.set(e,f),f}}while(c>=1&&d>=0);break}}}finally{ot=!1,nt.current=i,function(){if(0==--Je){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:Xe({},e,{value:Ke}),info:Xe({},e,{value:He}),warn:Xe({},e,{value:$e}),error:Xe({},e,{value:Ye}),group:Xe({},e,{value:Ge}),groupCollapsed:Xe({},e,{value:Qe}),groupEnd:Xe({},e,{value:Ze})})}Je<0&&o("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}(),Error.prepareStackTrace=a}var h=e?e.displayName||e.name:"",p=h?rt(h):"";return"function"==typeof e&&it.set(e,p),p}function ut(e,t,n){return st(e,!1)}function lt(e,t,n){if(null==e)return"";if("function"==typeof e)return st(e,!(!(r=e.prototype)||!r.isReactComponent));var r;if("string"==typeof e)return rt(e);switch(e){case Be:return rt("Suspense");case je:return rt("SuspenseList")}if("object"==typeof e)switch(e.$$typeof){case De:return ut(e.render);case Ue:return lt(e.type,t,n);case ze:var i=e,o=i._payload,a=i._init;try{return lt(a(o),t,n)}catch(e){}}return""}function ct(e){switch(e._debugOwner&&e._debugOwner.type,e._debugSource,e.tag){case f:return rt(e.type);case M:return rt("Lazy");case A:return rt("Suspense");case R:return rt("SuspenseList");case s:case l:case k:return ut(e.type);case b:return ut(e.type.render);case u:return st(e.type,!0);default:return""}}function dt(e){try{var t="",n=e;do{t+=ct(n),n=n.return}while(n);return t}catch(e){return"\nError generating stack: "+e.message+"\n"+e.stack}}function ft(e){return e.displayName||"Context"}function ht(e){if(null==e)return null;if("number"==typeof e.tag&&o("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),"function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case Te:return"Fragment";case Oe:return"Portal";case Le:return"Profiler";case Pe:return"StrictMode";case Be:return"Suspense";case je:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case Ne:return ft(e)+".Consumer";case Ie:return ft(e._context)+".Provider";case De:return function(e,t,n){var r=e.displayName;if(r)return r;var i=t.displayName||t.name||"";return""!==i?n+"("+i+")":n}(e,e.render,"ForwardRef");case Ue:var t=e.displayName||null;return null!==t?t:ht(e.type)||"Memo";case ze:var n=e,r=n._payload,i=n._init;try{return ht(i(r))}catch(e){return null}}return null}function pt(e){return e.displayName||"Context"}function mt(e){var t,n,r,i,o=e.tag,a=e.type;switch(o){case L:return"Cache";case v:return pt(a)+".Consumer";case y:return pt(a._context)+".Provider";case x:return"DehydratedFragment";case b:return t=a,r="ForwardRef",i=(n=a.render).displayName||n.name||"",t.displayName||(""!==i?r+"("+i+")":r);case m:return"Fragment";case f:return a;case d:return"Portal";case c:return"Root";case p:return"Text";case M:return ht(a);case g:return a===Pe?"StrictMode":"Mode";case T:return"Offscreen";case w:return"Profiler";case O:return"Scope";case A:return"Suspense";case R:return"SuspenseList";case I:return"TracingMarker";case u:case s:case C:case l:case E:case k:if("function"==typeof a)return a.displayName||a.name||null;if("string"==typeof a)return a}return null}it=new at;var gt=n.ReactDebugCurrentFrame,vt=null,yt=!1;function bt(){if(null===vt)return null;var e=vt._debugOwner;return null!=e?mt(e):null}function wt(){return null===vt?"":dt(vt)}function At(){gt.getCurrentStack=null,vt=null,yt=!1}function _t(e){gt.getCurrentStack=null===e?null:wt,vt=e,yt=!1}function Et(e){yt=e}function St(e){return""+e}function kt(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return re(e),e;default:return""}}var Mt={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0};function Ct(e,t){Mt[t.type]||t.onChange||t.onInput||t.readOnly||t.disabled||null==t.value||o("You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set either `onChange` or `readOnly`."),t.onChange||t.readOnly||t.disabled||null==t.checked||o("You provided a `checked` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultChecked`. Otherwise, set either `onChange` or `readOnly`.")}function xt(e){var t=e.type,n=e.nodeName;return n&&"input"===n.toLowerCase()&&("checkbox"===t||"radio"===t)}function Rt(e){return e._valueTracker}function Ot(e){Rt(e)||(e._valueTracker=function(e){var t=xt(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);re(e[t]);var r=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var i=n.get,o=n.set;Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(e){re(e),r=""+e,o.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable});var a={getValue:function(){return r},setValue:function(e){re(e),r=""+e},stopTracking:function(){!function(e){e._valueTracker=null}(e),delete e[t]}};return a}}(e))}function Tt(e){if(!e)return!1;var t=Rt(e);if(!t)return!0;var n=t.getValue(),r=function(e){var t="";return e?t=xt(e)?e.checked?"true":"false":e.value:t}(e);return r!==n&&(t.setValue(r),!0)}function Pt(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}var Lt=!1,It=!1,Nt=!1,Dt=!1;function Bt(e){return"checkbox"===e.type||"radio"===e.type?null!=e.checked:null!=e.value}function jt(e,t){var n=e,r=t.checked;return Xe({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=r?r:n._wrapperState.initialChecked})}function Ut(e,t){Ct(0,t),void 0===t.checked||void 0===t.defaultChecked||It||(o("%s contains an input of type %s with both checked and defaultChecked props. Input elements must be either controlled or uncontrolled (specify either the checked prop, or the defaultChecked prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://reactjs.org/link/controlled-components",bt()||"A component",t.type),It=!0),void 0===t.value||void 0===t.defaultValue||Lt||(o("%s contains an input of type %s with both value and defaultValue props. Input elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://reactjs.org/link/controlled-components",bt()||"A component",t.type),Lt=!0);var n=e,r=null==t.defaultValue?"":t.defaultValue;n._wrapperState={initialChecked:null!=t.checked?t.checked:t.defaultChecked,initialValue:kt(null!=t.value?t.value:r),controlled:Bt(t)}}function zt(e,t){var n=e,r=t.checked;null!=r&&xe(n,"checked",r,!1)}function Ft(e,t){var n=e,r=Bt(t);n._wrapperState.controlled||!r||Dt||(o("A component is changing an uncontrolled input to be controlled. This is likely caused by the value changing from undefined to a defined value, which should not happen. Decide between using a controlled or uncontrolled input element for the lifetime of the component. More info: https://reactjs.org/link/controlled-components"),Dt=!0),!n._wrapperState.controlled||r||Nt||(o("A component is changing a controlled input to be uncontrolled. This is likely caused by the value changing from a defined to undefined, which should not happen. Decide between using a controlled or uncontrolled input element for the lifetime of the component. More info: https://reactjs.org/link/controlled-components"),Nt=!0),zt(e,t);var i=kt(t.value),a=t.type;if(null!=i)"number"===a?(0===i&&""===n.value||n.value!=i)&&(n.value=St(i)):n.value!==St(i)&&(n.value=St(i));else if("submit"===a||"reset"===a)return void n.removeAttribute("value");t.hasOwnProperty("value")?Vt(n,t.type,i):t.hasOwnProperty("defaultValue")&&Vt(n,t.type,kt(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(n.defaultChecked=!!t.defaultChecked)}function qt(e,t,n){var r=e;if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var i=t.type;if(!("submit"!==i&&"reset"!==i||void 0!==t.value&&null!==t.value))return;var o=St(r._wrapperState.initialValue);n||o!==r.value&&(r.value=o),r.defaultValue=o}var a=r.name;""!==a&&(r.name=""),r.defaultChecked=!r.defaultChecked,r.defaultChecked=!!r._wrapperState.initialChecked,""!==a&&(r.name=a)}function Wt(e,t){var n=e;Ft(n,t),function(e,t){var n=t.name;if("radio"===t.type&&null!=n){for(var r=e;r.parentNode;)r=r.parentNode;ne(n,"name");for(var i=r.querySelectorAll("input[name="+JSON.stringify(""+n)+'][type="radio"]'),o=0;o.")))})):null!=n.dangerouslySetInnerHTML&&($t||($t=!0,o("Pass a `value` prop if you set dangerouslyInnerHTML so React knows which value should be selected.")))),null==n.selected||Kt||(o("Use the `defaultValue` or `value` props on must be a scalar value if `multiple` is false.%s",n,Xt())}}}(t),n._wrapperState={wasMultiple:!!t.multiple},void 0===t.value||void 0===t.defaultValue||Gt||(o("Select elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled select element and remove one of these props. More info: https://reactjs.org/link/controlled-components"),Gt=!0)}var rn=!1;function on(e,t){var n=e;if(null!=t.dangerouslySetInnerHTML)throw new Error("`dangerouslySetInnerHTML` does not make sense on