mongodash 2.0.0 → 2.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +40 -22
- package/dist/dashboard/index.html +40 -0
- package/dist/lib/playground/server.js +131 -0
- package/dist/lib/playground/server.js.map +1 -0
- package/dist/lib/src/ConcurrentRunner.js +148 -0
- package/dist/lib/src/ConcurrentRunner.js.map +1 -0
- package/dist/lib/{OnError.js → src/OnError.js} +3 -3
- package/dist/lib/src/OnError.js.map +1 -0
- package/dist/lib/{OnInfo.js → src/OnInfo.js} +6 -3
- package/dist/lib/src/OnInfo.js.map +1 -0
- package/dist/lib/{createContinuousLock.js → src/createContinuousLock.js} +5 -3
- package/dist/lib/src/createContinuousLock.js.map +1 -0
- package/dist/lib/{cronTasks.js → src/cronTasks.js} +129 -73
- package/dist/lib/src/cronTasks.js.map +1 -0
- package/dist/lib/{getCollection.js → src/getCollection.js} +2 -2
- package/dist/lib/src/getCollection.js.map +1 -0
- package/dist/lib/{getMongoClient.js → src/getMongoClient.js} +2 -2
- package/dist/lib/src/getMongoClient.js.map +1 -0
- package/dist/lib/src/globalsCollection.js +10 -0
- package/dist/lib/src/globalsCollection.js.map +1 -0
- package/dist/lib/src/index.js +101 -0
- package/dist/lib/src/index.js.map +1 -0
- package/dist/lib/{initPromise.js → src/initPromise.js} +2 -3
- package/dist/lib/src/initPromise.js.map +1 -0
- package/dist/lib/src/mongoCompatibility.js +10 -0
- package/dist/lib/src/mongoCompatibility.js.map +1 -0
- package/dist/lib/src/parseInterval.js +60 -0
- package/dist/lib/src/parseInterval.js.map +1 -0
- package/dist/lib/src/prefixFilterKeys.js +69 -0
- package/dist/lib/src/prefixFilterKeys.js.map +1 -0
- package/dist/lib/src/processInBatches.js +46 -0
- package/dist/lib/src/processInBatches.js.map +1 -0
- package/dist/lib/src/reactiveTasks/LeaderElector.js +155 -0
- package/dist/lib/src/reactiveTasks/LeaderElector.js.map +1 -0
- package/dist/lib/src/reactiveTasks/MetricsCollector.js +410 -0
- package/dist/lib/src/reactiveTasks/MetricsCollector.js.map +1 -0
- package/dist/lib/src/reactiveTasks/ReactiveTaskManager.js +288 -0
- package/dist/lib/src/reactiveTasks/ReactiveTaskManager.js.map +1 -0
- package/dist/lib/src/reactiveTasks/ReactiveTaskOps.js +185 -0
- package/dist/lib/src/reactiveTasks/ReactiveTaskOps.js.map +1 -0
- package/dist/lib/src/reactiveTasks/ReactiveTaskPlanner.js +443 -0
- package/dist/lib/src/reactiveTasks/ReactiveTaskPlanner.js.map +1 -0
- package/dist/lib/src/reactiveTasks/ReactiveTaskReconciler.js +218 -0
- package/dist/lib/src/reactiveTasks/ReactiveTaskReconciler.js.map +1 -0
- package/dist/lib/src/reactiveTasks/ReactiveTaskRegistry.js +184 -0
- package/dist/lib/src/reactiveTasks/ReactiveTaskRegistry.js.map +1 -0
- package/dist/lib/src/reactiveTasks/ReactiveTaskRepository.js +355 -0
- package/dist/lib/src/reactiveTasks/ReactiveTaskRepository.js.map +1 -0
- package/dist/lib/src/reactiveTasks/ReactiveTaskRetryStrategy.js +153 -0
- package/dist/lib/src/reactiveTasks/ReactiveTaskRetryStrategy.js.map +1 -0
- package/dist/lib/src/reactiveTasks/ReactiveTaskTypes.js +34 -0
- package/dist/lib/src/reactiveTasks/ReactiveTaskTypes.js.map +1 -0
- package/dist/lib/src/reactiveTasks/ReactiveTaskWorker.js +186 -0
- package/dist/lib/src/reactiveTasks/ReactiveTaskWorker.js.map +1 -0
- package/dist/lib/src/reactiveTasks/compileWatchProjection.js +65 -0
- package/dist/lib/src/reactiveTasks/compileWatchProjection.js.map +1 -0
- package/dist/lib/src/reactiveTasks/index.js +298 -0
- package/dist/lib/src/reactiveTasks/index.js.map +1 -0
- package/dist/lib/src/reactiveTasks/queryToExpression.js +160 -0
- package/dist/lib/src/reactiveTasks/queryToExpression.js.map +1 -0
- package/dist/lib/src/reactiveTasks/validateTaskFilter.js +88 -0
- package/dist/lib/src/reactiveTasks/validateTaskFilter.js.map +1 -0
- package/dist/lib/src/task-management/OperationalTaskController.js +162 -0
- package/dist/lib/src/task-management/OperationalTaskController.js.map +1 -0
- package/dist/lib/src/task-management/index.js +27 -0
- package/dist/lib/src/task-management/index.js.map +1 -0
- package/dist/lib/src/task-management/serveDashboard.js +149 -0
- package/dist/lib/src/task-management/serveDashboard.js.map +1 -0
- package/dist/lib/src/task-management/types.js +10 -0
- package/dist/lib/src/task-management/types.js.map +1 -0
- package/dist/lib/{withLock.js → src/withLock.js} +3 -4
- package/dist/lib/src/withLock.js.map +1 -0
- package/dist/lib/{withTransaction.js → src/withTransaction.js} +4 -4
- package/dist/lib/src/withTransaction.js.map +1 -0
- package/dist/lib/tools/check-db-connection.js +28 -0
- package/dist/lib/tools/check-db-connection.js.map +1 -0
- package/dist/lib/tools/clean-testing-databases.js +12 -0
- package/dist/lib/tools/clean-testing-databases.js.map +1 -0
- package/dist/lib/tools/prepare-republish.js +27 -0
- package/dist/lib/tools/prepare-republish.js.map +1 -0
- package/dist/lib/tools/test-matrix-local.js +212 -0
- package/dist/lib/tools/test-matrix-local.js.map +1 -0
- package/dist/lib/tools/testingDatabase.js +55 -0
- package/dist/lib/tools/testingDatabase.js.map +1 -0
- package/dist/types/playground/server.d.ts +1 -0
- package/dist/types/src/ConcurrentRunner.d.ts +30 -0
- package/dist/types/{OnInfo.d.ts → src/OnInfo.d.ts} +1 -1
- package/dist/types/{cronTasks.d.ts → src/cronTasks.d.ts} +44 -1
- package/dist/types/src/globalsCollection.d.ts +4 -0
- package/dist/types/src/index.d.ts +28 -0
- package/dist/types/src/mongoCompatibility.d.ts +29 -0
- package/dist/types/src/parseInterval.d.ts +12 -0
- package/dist/types/src/prefixFilterKeys.d.ts +11 -0
- package/dist/types/src/processInBatches.d.ts +10 -0
- package/dist/types/src/reactiveTasks/LeaderElector.d.ts +42 -0
- package/dist/types/src/reactiveTasks/MetricsCollector.d.ts +73 -0
- package/dist/types/src/reactiveTasks/ReactiveTaskManager.d.ts +18 -0
- package/dist/types/src/reactiveTasks/ReactiveTaskOps.d.ts +17 -0
- package/dist/types/src/reactiveTasks/ReactiveTaskPlanner.d.ts +62 -0
- package/dist/types/src/reactiveTasks/ReactiveTaskReconciler.d.ts +29 -0
- package/dist/types/src/reactiveTasks/ReactiveTaskRegistry.d.ts +34 -0
- package/dist/types/src/reactiveTasks/ReactiveTaskRepository.d.ts +59 -0
- package/dist/types/src/reactiveTasks/ReactiveTaskRetryStrategy.d.ts +21 -0
- package/dist/types/src/reactiveTasks/ReactiveTaskTypes.d.ts +389 -0
- package/dist/types/src/reactiveTasks/ReactiveTaskWorker.d.ts +36 -0
- package/dist/types/src/reactiveTasks/compileWatchProjection.d.ts +12 -0
- package/dist/types/src/reactiveTasks/index.d.ts +82 -0
- package/dist/types/src/reactiveTasks/queryToExpression.d.ts +13 -0
- package/dist/types/src/reactiveTasks/validateTaskFilter.d.ts +10 -0
- package/dist/types/src/task-management/OperationalTaskController.d.ts +59 -0
- package/dist/types/src/task-management/index.d.ts +3 -0
- package/dist/types/src/task-management/serveDashboard.d.ts +12 -0
- package/dist/types/src/task-management/types.d.ts +95 -0
- package/dist/types/tools/check-db-connection.d.ts +2 -0
- package/dist/types/tools/clean-testing-databases.d.ts +1 -0
- package/dist/types/tools/prepare-republish.d.ts +2 -0
- package/dist/types/tools/test-matrix-local.d.ts +1 -0
- package/dist/types/tools/testingDatabase.d.ts +2 -0
- package/docs/.vitepress/cache/deps/_metadata.json +31 -0
- package/docs/.vitepress/cache/deps/chunk-LE5NDSFD.js +12824 -0
- package/docs/.vitepress/cache/deps/chunk-LE5NDSFD.js.map +7 -0
- package/docs/.vitepress/cache/deps/package.json +3 -0
- package/docs/.vitepress/cache/deps/vitepress___@vue_devtools-api.js +4505 -0
- package/docs/.vitepress/cache/deps/vitepress___@vue_devtools-api.js.map +7 -0
- package/docs/.vitepress/cache/deps/vitepress___@vueuse_core.js +9731 -0
- package/docs/.vitepress/cache/deps/vitepress___@vueuse_core.js.map +7 -0
- package/docs/.vitepress/cache/deps/vue.js +347 -0
- package/docs/.vitepress/cache/deps/vue.js.map +7 -0
- package/docs/.vitepress/config.mts +48 -0
- package/docs/.vitepress/theme/index.ts +4 -0
- package/docs/.vitepress/theme/style.css +16 -0
- package/docs/assets/dashboard.png +0 -0
- package/docs/cron-tasks.md +172 -0
- package/docs/dashboard.md +117 -0
- package/docs/getters.md +31 -0
- package/docs/getting-started.md +120 -0
- package/docs/index.md +29 -0
- package/docs/initialization.md +59 -0
- package/docs/process-in-batches.md +73 -0
- package/docs/reactive-tasks.md +914 -0
- package/docs/with-lock.md +45 -0
- package/docs/with-transaction.md +65 -0
- package/grafana/reactive_tasks.json +765 -0
- package/package.json +127 -116
- package/dist/lib/OnError.js.map +0 -1
- package/dist/lib/OnInfo.js.map +0 -1
- package/dist/lib/createContinuousLock.js.map +0 -1
- package/dist/lib/cronTasks.js.map +0 -1
- package/dist/lib/getCollection.js.map +0 -1
- package/dist/lib/getMongoClient.js.map +0 -1
- package/dist/lib/index.js +0 -64
- package/dist/lib/index.js.map +0 -1
- package/dist/lib/initPromise.js.map +0 -1
- package/dist/lib/withLock.js.map +0 -1
- package/dist/lib/withTransaction.js.map +0 -1
- package/dist/types/index.d.ts +0 -17
- /package/dist/types/{OnError.d.ts → src/OnError.d.ts} +0 -0
- /package/dist/types/{createContinuousLock.d.ts → src/createContinuousLock.d.ts} +0 -0
- /package/dist/types/{getCollection.d.ts → src/getCollection.d.ts} +0 -0
- /package/dist/types/{getMongoClient.d.ts → src/getMongoClient.d.ts} +0 -0
- /package/dist/types/{initPromise.d.ts → src/initPromise.d.ts} +0 -0
- /package/dist/types/{withLock.d.ts → src/withLock.d.ts} +0 -0
- /package/dist/types/{withTransaction.d.ts → src/withTransaction.d.ts} +0 -0
package/README.md
CHANGED
|
@@ -2,14 +2,14 @@
|
|
|
2
2
|
|
|
3
3
|
<img src="https://raw.githubusercontent.com/VaclavObornik/mongodash/master/logo.png" alt="Mongodash" height="150" />
|
|
4
4
|
|
|
5
|
-
A modern JavaScript & Typescript MongoDB-based utility library
|
|
5
|
+
A modern JavaScript & Typescript MongoDB-based utility library. Includes **Reactive Tasks**, **Cron Tasks**, **Distributed Locks**, **Transactions**, and a **[Dashboard](https://vaclavobornik.github.io/mongodash/dashboard)**.
|
|
6
6
|
|
|
7
7
|
[](https://coveralls.io/github/VaclavObornik/mongodash?branch=master)
|
|
8
8
|
[](https://dashboard.stryker-mutator.io/reports/github.com/VaclavObornik/mongodash/master)
|
|
9
9
|

|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
See full documentation
|
|
12
|
+
See full documentation [here](https://vaclavobornik.github.io/mongodash/getting-started)
|
|
13
13
|
|
|
14
14
|
---
|
|
15
15
|
|
|
@@ -21,20 +21,38 @@ npm install mongodash
|
|
|
21
21
|
```
|
|
22
22
|
|
|
23
23
|
Initialization
|
|
24
|
-
```
|
|
25
|
-
|
|
24
|
+
```typescript
|
|
25
|
+
import mongodash from 'mongodash';
|
|
26
26
|
|
|
27
27
|
await mongodash.init({
|
|
28
28
|
uri: 'mongodb://mongodb0.example.com:27017/myDatabase'
|
|
29
29
|
});
|
|
30
30
|
```
|
|
31
|
-
See more initialization options [here](https://
|
|
31
|
+
See more initialization options [here](https://vaclavobornik.github.io/mongodash/initialization).
|
|
32
|
+
|
|
33
|
+
<br>
|
|
34
|
+
|
|
35
|
+
## Reactive Tasks
|
|
36
|
+
|
|
37
|
+
```typescript
|
|
38
|
+
import { reactiveTask } from 'mongodash';
|
|
39
|
+
|
|
40
|
+
// Trigger a task when a user is updated
|
|
41
|
+
await reactiveTask({
|
|
42
|
+
task: 'on-user-update',
|
|
43
|
+
collection: 'users',
|
|
44
|
+
handler: async (doc) => {
|
|
45
|
+
console.log('User changed:', doc._id);
|
|
46
|
+
}
|
|
47
|
+
});
|
|
48
|
+
```
|
|
49
|
+
See detailed description [here](https://vaclavobornik.github.io/mongodash/reactive-tasks).
|
|
32
50
|
|
|
33
51
|
<br>
|
|
34
52
|
|
|
35
53
|
## cronTask
|
|
36
|
-
```
|
|
37
|
-
|
|
54
|
+
```typescript
|
|
55
|
+
import { cronTask } from 'mongodash';
|
|
38
56
|
|
|
39
57
|
await cronTask('my-task-id', '5m 20s', async () => {
|
|
40
58
|
|
|
@@ -42,14 +60,14 @@ await cronTask('my-task-id', '5m 20s', async () => {
|
|
|
42
60
|
|
|
43
61
|
});
|
|
44
62
|
```
|
|
45
|
-
See detailed description and more cron tasks methods [here](https://
|
|
63
|
+
See detailed description and more cron tasks methods [here](https://vaclavobornik.github.io/mongodash/cron-tasks).
|
|
46
64
|
|
|
47
65
|
<br>
|
|
48
66
|
|
|
49
67
|
## withLock
|
|
50
68
|
|
|
51
|
-
```
|
|
52
|
-
|
|
69
|
+
```typescript
|
|
70
|
+
import { withLock } from 'mongodash';
|
|
53
71
|
|
|
54
72
|
await withLock('my-lock-id', async () => {
|
|
55
73
|
|
|
@@ -61,13 +79,13 @@ await withLock('my-lock-id', async () => {
|
|
|
61
79
|
|
|
62
80
|
});
|
|
63
81
|
```
|
|
64
|
-
See detailed description [here](https://
|
|
82
|
+
See detailed description [here](https://vaclavobornik.github.io/mongodash/with-lock).
|
|
65
83
|
|
|
66
84
|
<br>
|
|
67
85
|
|
|
68
86
|
## withTransaction
|
|
69
|
-
```
|
|
70
|
-
|
|
87
|
+
```typescript
|
|
88
|
+
import { withTransaction, getCollection } from 'mongodash';
|
|
71
89
|
|
|
72
90
|
const createdDocuments = await withTransaction(async (session) => {
|
|
73
91
|
|
|
@@ -75,30 +93,30 @@ const createdDocuments = await withTransaction(async (session) => {
|
|
|
75
93
|
const myDocument2 = { value: 2 };
|
|
76
94
|
|
|
77
95
|
const collection = getCollection('myCollection');
|
|
78
|
-
await
|
|
79
|
-
await
|
|
96
|
+
await collection.insertOne(myDocument1, { session });
|
|
97
|
+
await collection.insertOne(myDocument2, { session });
|
|
80
98
|
|
|
81
99
|
return [myDocument1, myDocument2];
|
|
82
100
|
});
|
|
83
101
|
```
|
|
84
|
-
See detailed description [here](https://
|
|
102
|
+
See detailed description [here](https://vaclavobornik.github.io/mongodash/with-transaction).
|
|
85
103
|
|
|
86
104
|
<br>
|
|
87
105
|
|
|
88
106
|
## getCollection
|
|
89
|
-
```
|
|
90
|
-
|
|
107
|
+
```typescript
|
|
108
|
+
import { getCollection } from 'mongodash';
|
|
91
109
|
|
|
92
110
|
const myCollection = getCollection('myCollectionName');
|
|
93
111
|
```
|
|
94
|
-
See detailed description [here](https://
|
|
112
|
+
See detailed description [here](https://vaclavobornik.github.io/mongodash/getters).
|
|
95
113
|
|
|
96
114
|
<br>
|
|
97
115
|
|
|
98
116
|
## getMongoClient
|
|
99
|
-
```
|
|
100
|
-
|
|
117
|
+
```typescript
|
|
118
|
+
import { getMongoClient } from 'mongodash';
|
|
101
119
|
|
|
102
120
|
const mongoClient = getMongoClient();
|
|
103
121
|
```
|
|
104
|
-
See detailed description [here](https://
|
|
122
|
+
See detailed description [here](https://vaclavobornik.github.io/mongodash/getters).
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
<!doctype html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
|
|
4
|
+
<head>
|
|
5
|
+
<meta charset="UTF-8" />
|
|
6
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
7
|
+
<title>Mongodash Task Management</title>
|
|
8
|
+
<script type="module" crossorigin>(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const r of document.querySelectorAll('link[rel="modulepreload"]'))s(r);new MutationObserver(r=>{for(const o of r)if(o.type==="childList")for(const i of o.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&s(i)}).observe(document,{childList:!0,subtree:!0});function n(r){const o={};return r.integrity&&(o.integrity=r.integrity),r.referrerPolicy&&(o.referrerPolicy=r.referrerPolicy),r.crossOrigin==="use-credentials"?o.credentials="include":r.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function s(r){if(r.ep)return;r.ep=!0;const o=n(r);fetch(r.href,o)}})();/**
|
|
9
|
+
* @vue/shared v3.5.26
|
|
10
|
+
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
11
|
+
* @license MIT
|
|
12
|
+
**/function Qs(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const ce={},Kt=[],nt=()=>{},bo=()=>!1,rs=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Zs=e=>e.startsWith("onUpdate:"),Pe=Object.assign,er=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},el=Object.prototype.hasOwnProperty,oe=(e,t)=>el.call(e,t),q=Array.isArray,qt=e=>rn(e)==="[object Map]",os=e=>rn(e)==="[object Set]",xr=e=>rn(e)==="[object Date]",tl=e=>rn(e)==="[object RegExp]",J=e=>typeof e=="function",me=e=>typeof e=="string",rt=e=>typeof e=="symbol",ue=e=>e!==null&&typeof e=="object",xo=e=>(ue(e)||J(e))&&J(e.then)&&J(e.catch),wo=Object.prototype.toString,rn=e=>wo.call(e),nl=e=>rn(e).slice(8,-1),So=e=>rn(e)==="[object Object]",tr=e=>me(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,yn=Qs(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),is=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},sl=/-\w/g,Ke=is(e=>e.replace(sl,t=>t.slice(1).toUpperCase())),rl=/\B([A-Z])/g,Lt=is(e=>e.replace(rl,"-$1").toLowerCase()),ls=is(e=>e.charAt(0).toUpperCase()+e.slice(1)),_s=is(e=>e?`on${ls(e)}`:""),Rt=(e,t)=>!Object.is(e,t),Gt=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},Ro=(e,t,n,s=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:s,value:n})},nr=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let wr;const as=()=>wr||(wr=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Mn(e){if(q(e)){const t={};for(let n=0;n<e.length;n++){const s=e[n],r=me(s)?al(s):Mn(s);if(r)for(const o in r)t[o]=r[o]}return t}else if(me(e)||ue(e))return e}const ol=/;(?![^(]*\))/g,il=/:([^]+)/,ll=/\/\*[^]*?\*\//g;function al(e){const t={};return e.replace(ll,"").split(ol).forEach(n=>{if(n){const s=n.split(il);s.length>1&&(t[s[0].trim()]=s[1].trim())}}),t}function Be(e){let t="";if(me(e))t=e;else if(q(e))for(let n=0;n<e.length;n++){const s=Be(e[n]);s&&(t+=s+" ")}else if(ue(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}const cl="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",ul=Qs(cl);function Eo(e){return!!e||e===""}function fl(e,t){if(e.length!==t.length)return!1;let n=!0;for(let s=0;n&&s<e.length;s++)n=cs(e[s],t[s]);return n}function cs(e,t){if(e===t)return!0;let n=xr(e),s=xr(t);if(n||s)return n&&s?e.getTime()===t.getTime():!1;if(n=rt(e),s=rt(t),n||s)return e===t;if(n=q(e),s=q(t),n||s)return n&&s?fl(e,t):!1;if(n=ue(e),s=ue(t),n||s){if(!n||!s)return!1;const r=Object.keys(e).length,o=Object.keys(t).length;if(r!==o)return!1;for(const i in e){const l=e.hasOwnProperty(i),a=t.hasOwnProperty(i);if(l&&!a||!l&&a||!cs(e[i],t[i]))return!1}}return String(e)===String(t)}function Ao(e,t){return e.findIndex(n=>cs(n,t))}const Co=e=>!!(e&&e.__v_isRef===!0),Z=e=>me(e)?e:e==null?"":q(e)||ue(e)&&(e.toString===wo||!J(e.toString))?Co(e)?Z(e.value):JSON.stringify(e,To,2):String(e),To=(e,t)=>Co(t)?To(e,t.value):qt(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[s,r],o)=>(n[bs(s,o)+" =>"]=r,n),{})}:os(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>bs(n))}:rt(t)?bs(t):ue(t)&&!q(t)&&!So(t)?String(t):t,bs=(e,t="")=>{var n;return rt(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/**
|
|
13
|
+
* @vue/reactivity v3.5.26
|
|
14
|
+
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
15
|
+
* @license MIT
|
|
16
|
+
**/let Le;class dl{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=Le,!t&&Le&&(this.index=(Le.scopes||(Le.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].pause();for(t=0,n=this.effects.length;t<n;t++)this.effects[t].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].resume();for(t=0,n=this.effects.length;t<n;t++)this.effects[t].resume()}}run(t){if(this._active){const n=Le;try{return Le=this,t()}finally{Le=n}}}on(){++this._on===1&&(this.prevScope=Le,Le=this)}off(){this._on>0&&--this._on===0&&(Le=this.prevScope,this.prevScope=void 0)}stop(t){if(this._active){this._active=!1;let n,s;for(n=0,s=this.effects.length;n<s;n++)this.effects[n].stop();for(this.effects.length=0,n=0,s=this.cleanups.length;n<s;n++)this.cleanups[n]();if(this.cleanups.length=0,this.scopes){for(n=0,s=this.scopes.length;n<s;n++)this.scopes[n].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!t){const r=this.parent.scopes.pop();r&&r!==this&&(this.parent.scopes[this.index]=r,r.index=this.index)}this.parent=void 0}}}function hl(){return Le}let de;const xs=new WeakSet;class Po{constructor(t){this.fn=t,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,Le&&Le.active&&Le.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,xs.has(this)&&(xs.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||Io(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,Sr(this),Mo(this);const t=de,n=qe;de=this,qe=!0;try{return this.fn()}finally{Do(this),de=t,qe=n,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)or(t);this.deps=this.depsTail=void 0,Sr(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?xs.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){ks(this)&&this.run()}get dirty(){return ks(this)}}let Oo=0,_n,bn;function Io(e,t=!1){if(e.flags|=8,t){e.next=bn,bn=e;return}e.next=_n,_n=e}function sr(){Oo++}function rr(){if(--Oo>0)return;if(bn){let t=bn;for(bn=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;_n;){let t=_n;for(_n=void 0;t;){const n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(s){e||(e=s)}t=n}}if(e)throw e}function Mo(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function Do(e){let t,n=e.depsTail,s=n;for(;s;){const r=s.prevDep;s.version===-1?(s===n&&(n=r),or(s),pl(s)):t=s,s.dep.activeLink=s.prevActiveLink,s.prevActiveLink=void 0,s=r}e.deps=t,e.depsTail=n}function ks(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(ko(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function ko(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===En)||(e.globalVersion=En,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!ks(e))))return;e.flags|=2;const t=e.dep,n=de,s=qe;de=e,qe=!0;try{Mo(e);const r=e.fn(e._value);(t.version===0||Rt(r,e._value))&&(e.flags|=128,e._value=r,t.version++)}catch(r){throw t.version++,r}finally{de=n,qe=s,Do(e),e.flags&=-3}}function or(e,t=!1){const{dep:n,prevSub:s,nextSub:r}=e;if(s&&(s.nextSub=r,e.prevSub=void 0),r&&(r.prevSub=s,e.nextSub=void 0),n.subs===e&&(n.subs=s,!s&&n.computed)){n.computed.flags&=-5;for(let o=n.computed.deps;o;o=o.nextDep)or(o,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function pl(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let qe=!0;const No=[];function ht(){No.push(qe),qe=!1}function pt(){const e=No.pop();qe=e===void 0?!0:e}function Sr(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=de;de=void 0;try{t()}finally{de=n}}}let En=0;class gl{constructor(t,n){this.sub=t,this.dep=n,this.version=n.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class ir{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(t){if(!de||!qe||de===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==de)n=this.activeLink=new gl(de,this),de.deps?(n.prevDep=de.depsTail,de.depsTail.nextDep=n,de.depsTail=n):de.deps=de.depsTail=n,Fo(n);else if(n.version===-1&&(n.version=this.version,n.nextDep)){const s=n.nextDep;s.prevDep=n.prevDep,n.prevDep&&(n.prevDep.nextDep=s),n.prevDep=de.depsTail,n.nextDep=void 0,de.depsTail.nextDep=n,de.depsTail=n,de.deps===n&&(de.deps=s)}return n}trigger(t){this.version++,En++,this.notify(t)}notify(t){sr();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{rr()}}}function Fo(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let s=t.deps;s;s=s.nextDep)Fo(s)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const Ns=new WeakMap,Mt=Symbol(""),Fs=Symbol(""),An=Symbol("");function Ee(e,t,n){if(qe&&de){let s=Ns.get(e);s||Ns.set(e,s=new Map);let r=s.get(n);r||(s.set(n,r=new ir),r.map=s,r.key=n),r.track()}}function ut(e,t,n,s,r,o){const i=Ns.get(e);if(!i){En++;return}const l=a=>{a&&a.trigger()};if(sr(),t==="clear")i.forEach(l);else{const a=q(e),f=a&&tr(n);if(a&&n==="length"){const c=Number(s);i.forEach((d,p)=>{(p==="length"||p===An||!rt(p)&&p>=c)&&l(d)})}else switch((n!==void 0||i.has(void 0))&&l(i.get(n)),f&&l(i.get(An)),t){case"add":a?f&&l(i.get("length")):(l(i.get(Mt)),qt(e)&&l(i.get(Fs)));break;case"delete":a||(l(i.get(Mt)),qt(e)&&l(i.get(Fs)));break;case"set":qt(e)&&l(i.get(Mt));break}}rr()}function Ht(e){const t=re(e);return t===e?t:(Ee(t,"iterate",An),We(e)?t:t.map(ze))}function us(e){return Ee(e=re(e),"iterate",An),e}function bt(e,t){return gt(e)?Dt(e)?tn(ze(t)):tn(t):ze(t)}const ml={__proto__:null,[Symbol.iterator](){return ws(this,Symbol.iterator,e=>bt(this,e))},concat(...e){return Ht(this).concat(...e.map(t=>q(t)?Ht(t):t))},entries(){return ws(this,"entries",e=>(e[1]=bt(this,e[1]),e))},every(e,t){return lt(this,"every",e,t,void 0,arguments)},filter(e,t){return lt(this,"filter",e,t,n=>n.map(s=>bt(this,s)),arguments)},find(e,t){return lt(this,"find",e,t,n=>bt(this,n),arguments)},findIndex(e,t){return lt(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return lt(this,"findLast",e,t,n=>bt(this,n),arguments)},findLastIndex(e,t){return lt(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return lt(this,"forEach",e,t,void 0,arguments)},includes(...e){return Ss(this,"includes",e)},indexOf(...e){return Ss(this,"indexOf",e)},join(e){return Ht(this).join(e)},lastIndexOf(...e){return Ss(this,"lastIndexOf",e)},map(e,t){return lt(this,"map",e,t,void 0,arguments)},pop(){return cn(this,"pop")},push(...e){return cn(this,"push",e)},reduce(e,...t){return Rr(this,"reduce",e,t)},reduceRight(e,...t){return Rr(this,"reduceRight",e,t)},shift(){return cn(this,"shift")},some(e,t){return lt(this,"some",e,t,void 0,arguments)},splice(...e){return cn(this,"splice",e)},toReversed(){return Ht(this).toReversed()},toSorted(e){return Ht(this).toSorted(e)},toSpliced(...e){return Ht(this).toSpliced(...e)},unshift(...e){return cn(this,"unshift",e)},values(){return ws(this,"values",e=>bt(this,e))}};function ws(e,t,n){const s=us(e),r=s[t]();return s!==e&&!We(e)&&(r._next=r.next,r.next=()=>{const o=r._next();return o.done||(o.value=n(o.value)),o}),r}const vl=Array.prototype;function lt(e,t,n,s,r,o){const i=us(e),l=i!==e&&!We(e),a=i[t];if(a!==vl[t]){const d=a.apply(e,o);return l?ze(d):d}let f=n;i!==e&&(l?f=function(d,p){return n.call(this,bt(e,d),p,e)}:n.length>2&&(f=function(d,p){return n.call(this,d,p,e)}));const c=a.call(i,f,s);return l&&r?r(c):c}function Rr(e,t,n,s){const r=us(e);let o=n;return r!==e&&(We(e)?n.length>3&&(o=function(i,l,a){return n.call(this,i,l,a,e)}):o=function(i,l,a){return n.call(this,i,bt(e,l),a,e)}),r[t](o,...s)}function Ss(e,t,n){const s=re(e);Ee(s,"iterate",An);const r=s[t](...n);return(r===-1||r===!1)&&cr(n[0])?(n[0]=re(n[0]),s[t](...n)):r}function cn(e,t,n=[]){ht(),sr();const s=re(e)[t].apply(e,n);return rr(),pt(),s}const yl=Qs("__proto__,__v_isRef,__isVue"),Lo=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(rt));function _l(e){rt(e)||(e=String(e));const t=re(this);return Ee(t,"has",e),t.hasOwnProperty(e)}class Vo{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,s){if(n==="__v_skip")return t.__v_skip;const r=this._isReadonly,o=this._isShallow;if(n==="__v_isReactive")return!r;if(n==="__v_isReadonly")return r;if(n==="__v_isShallow")return o;if(n==="__v_raw")return s===(r?o?Pl:Uo:o?Ho:$o).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(s)?t:void 0;const i=q(t);if(!r){let a;if(i&&(a=ml[n]))return a;if(n==="hasOwnProperty")return _l}const l=Reflect.get(t,n,Te(t)?t:s);if((rt(n)?Lo.has(n):yl(n))||(r||Ee(t,"get",n),o))return l;if(Te(l)){const a=i&&tr(n)?l:l.value;return r&&ue(a)?Vs(a):a}return ue(l)?r?Vs(l):en(l):l}}class jo extends Vo{constructor(t=!1){super(!1,t)}set(t,n,s,r){let o=t[n];const i=q(t)&&tr(n);if(!this._isShallow){const f=gt(o);if(!We(s)&&!gt(s)&&(o=re(o),s=re(s)),!i&&Te(o)&&!Te(s))return f||(o.value=s),!0}const l=i?Number(n)<t.length:oe(t,n),a=Reflect.set(t,n,s,Te(t)?t:r);return t===re(r)&&(l?Rt(s,o)&&ut(t,"set",n,s):ut(t,"add",n,s)),a}deleteProperty(t,n){const s=oe(t,n);t[n];const r=Reflect.deleteProperty(t,n);return r&&s&&ut(t,"delete",n,void 0),r}has(t,n){const s=Reflect.has(t,n);return(!rt(n)||!Lo.has(n))&&Ee(t,"has",n),s}ownKeys(t){return Ee(t,"iterate",q(t)?"length":Mt),Reflect.ownKeys(t)}}class bl extends Vo{constructor(t=!1){super(!0,t)}set(t,n){return!0}deleteProperty(t,n){return!0}}const xl=new jo,wl=new bl,Sl=new jo(!0);const Ls=e=>e,Fn=e=>Reflect.getPrototypeOf(e);function Rl(e,t,n){return function(...s){const r=this.__v_raw,o=re(r),i=qt(o),l=e==="entries"||e===Symbol.iterator&&i,a=e==="keys"&&i,f=r[e](...s),c=n?Ls:t?tn:ze;return!t&&Ee(o,"iterate",a?Fs:Mt),{next(){const{value:d,done:p}=f.next();return p?{value:d,done:p}:{value:l?[c(d[0]),c(d[1])]:c(d),done:p}},[Symbol.iterator](){return this}}}}function Ln(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function El(e,t){const n={get(r){const o=this.__v_raw,i=re(o),l=re(r);e||(Rt(r,l)&&Ee(i,"get",r),Ee(i,"get",l));const{has:a}=Fn(i),f=t?Ls:e?tn:ze;if(a.call(i,r))return f(o.get(r));if(a.call(i,l))return f(o.get(l));o!==i&&o.get(r)},get size(){const r=this.__v_raw;return!e&&Ee(re(r),"iterate",Mt),r.size},has(r){const o=this.__v_raw,i=re(o),l=re(r);return e||(Rt(r,l)&&Ee(i,"has",r),Ee(i,"has",l)),r===l?o.has(r):o.has(r)||o.has(l)},forEach(r,o){const i=this,l=i.__v_raw,a=re(l),f=t?Ls:e?tn:ze;return!e&&Ee(a,"iterate",Mt),l.forEach((c,d)=>r.call(o,f(c),f(d),i))}};return Pe(n,e?{add:Ln("add"),set:Ln("set"),delete:Ln("delete"),clear:Ln("clear")}:{add(r){!t&&!We(r)&&!gt(r)&&(r=re(r));const o=re(this);return Fn(o).has.call(o,r)||(o.add(r),ut(o,"add",r,r)),this},set(r,o){!t&&!We(o)&&!gt(o)&&(o=re(o));const i=re(this),{has:l,get:a}=Fn(i);let f=l.call(i,r);f||(r=re(r),f=l.call(i,r));const c=a.call(i,r);return i.set(r,o),f?Rt(o,c)&&ut(i,"set",r,o):ut(i,"add",r,o),this},delete(r){const o=re(this),{has:i,get:l}=Fn(o);let a=i.call(o,r);a||(r=re(r),a=i.call(o,r)),l&&l.call(o,r);const f=o.delete(r);return a&&ut(o,"delete",r,void 0),f},clear(){const r=re(this),o=r.size!==0,i=r.clear();return o&&ut(r,"clear",void 0,void 0),i}}),["keys","values","entries",Symbol.iterator].forEach(r=>{n[r]=Rl(r,e,t)}),n}function lr(e,t){const n=El(e,t);return(s,r,o)=>r==="__v_isReactive"?!e:r==="__v_isReadonly"?e:r==="__v_raw"?s:Reflect.get(oe(n,r)&&r in s?n:s,r,o)}const Al={get:lr(!1,!1)},Cl={get:lr(!1,!0)},Tl={get:lr(!0,!1)};const $o=new WeakMap,Ho=new WeakMap,Uo=new WeakMap,Pl=new WeakMap;function Ol(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Il(e){return e.__v_skip||!Object.isExtensible(e)?0:Ol(nl(e))}function en(e){return gt(e)?e:ar(e,!1,xl,Al,$o)}function Bo(e){return ar(e,!1,Sl,Cl,Ho)}function Vs(e){return ar(e,!0,wl,Tl,Uo)}function ar(e,t,n,s,r){if(!ue(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const o=Il(e);if(o===0)return e;const i=r.get(e);if(i)return i;const l=new Proxy(e,o===2?s:n);return r.set(e,l),l}function Dt(e){return gt(e)?Dt(e.__v_raw):!!(e&&e.__v_isReactive)}function gt(e){return!!(e&&e.__v_isReadonly)}function We(e){return!!(e&&e.__v_isShallow)}function cr(e){return e?!!e.__v_raw:!1}function re(e){const t=e&&e.__v_raw;return t?re(t):e}function Ml(e){return!oe(e,"__v_skip")&&Object.isExtensible(e)&&Ro(e,"__v_skip",!0),e}const ze=e=>ue(e)?en(e):e,tn=e=>ue(e)?Vs(e):e;function Te(e){return e?e.__v_isRef===!0:!1}function he(e){return Wo(e,!1)}function Dl(e){return Wo(e,!0)}function Wo(e,t){return Te(e)?e:new kl(e,t)}class kl{constructor(t,n){this.dep=new ir,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:re(t),this._value=n?t:ze(t),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(t){const n=this._rawValue,s=this.__v_isShallow||We(t)||gt(t);t=s?t:re(t),Rt(t,n)&&(this._rawValue=t,this._value=s?t:ze(t),this.dep.trigger())}}function X(e){return Te(e)?e.value:e}const Nl={get:(e,t,n)=>t==="__v_raw"?e:X(Reflect.get(e,t,n)),set:(e,t,n,s)=>{const r=e[t];return Te(r)&&!Te(n)?(r.value=n,!0):Reflect.set(e,t,n,s)}};function Ko(e){return Dt(e)?e:new Proxy(e,Nl)}class Fl{constructor(t,n,s){this.fn=t,this.setter=n,this._value=void 0,this.dep=new ir(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=En-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=s}notify(){if(this.flags|=16,!(this.flags&8)&&de!==this)return Io(this,!0),!0}get value(){const t=this.dep.track();return ko(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function Ll(e,t,n=!1){let s,r;return J(e)?s=e:(s=e.get,r=e.set),new Fl(s,r,n)}const Vn={},zn=new WeakMap;let Tt;function Vl(e,t=!1,n=Tt){if(n){let s=zn.get(n);s||zn.set(n,s=[]),s.push(e)}}function jl(e,t,n=ce){const{immediate:s,deep:r,once:o,scheduler:i,augmentJob:l,call:a}=n,f=E=>r?E:We(E)||r===!1||r===0?ft(E,1):ft(E);let c,d,p,g,y=!1,C=!1;if(Te(e)?(d=()=>e.value,y=We(e)):Dt(e)?(d=()=>f(e),y=!0):q(e)?(C=!0,y=e.some(E=>Dt(E)||We(E)),d=()=>e.map(E=>{if(Te(E))return E.value;if(Dt(E))return f(E);if(J(E))return a?a(E,2):E()})):J(e)?t?d=a?()=>a(e,2):e:d=()=>{if(p){ht();try{p()}finally{pt()}}const E=Tt;Tt=c;try{return a?a(e,3,[g]):e(g)}finally{Tt=E}}:d=nt,t&&r){const E=d,Y=r===!0?1/0:r;d=()=>ft(E(),Y)}const L=hl(),P=()=>{c.stop(),L&&L.active&&er(L.effects,c)};if(o&&t){const E=t;t=(...Y)=>{E(...Y),P()}}let x=C?new Array(e.length).fill(Vn):Vn;const S=E=>{if(!(!(c.flags&1)||!c.dirty&&!E))if(t){const Y=c.run();if(r||y||(C?Y.some((H,V)=>Rt(H,x[V])):Rt(Y,x))){p&&p();const H=Tt;Tt=c;try{const V=[Y,x===Vn?void 0:C&&x[0]===Vn?[]:x,g];x=Y,a?a(t,3,V):t(...V)}finally{Tt=H}}}else c.run()};return l&&l(S),c=new Po(d),c.scheduler=i?()=>i(S,!1):S,g=E=>Vl(E,!1,c),p=c.onStop=()=>{const E=zn.get(c);if(E){if(a)a(E,4);else for(const Y of E)Y();zn.delete(c)}},t?s?S(!0):x=c.run():i?i(S.bind(null,!0),!0):c.run(),P.pause=c.pause.bind(c),P.resume=c.resume.bind(c),P.stop=P,P}function ft(e,t=1/0,n){if(t<=0||!ue(e)||e.__v_skip||(n=n||new Map,(n.get(e)||0)>=t))return e;if(n.set(e,t),t--,Te(e))ft(e.value,t,n);else if(q(e))for(let s=0;s<e.length;s++)ft(e[s],t,n);else if(os(e)||qt(e))e.forEach(s=>{ft(s,t,n)});else if(So(e)){for(const s in e)ft(e[s],t,n);for(const s of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,s)&&ft(e[s],t,n)}return e}/**
|
|
17
|
+
* @vue/runtime-core v3.5.26
|
|
18
|
+
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
19
|
+
* @license MIT
|
|
20
|
+
**/function Dn(e,t,n,s){try{return s?e(...s):e()}catch(r){fs(r,t,n)}}function ot(e,t,n,s){if(J(e)){const r=Dn(e,t,n,s);return r&&xo(r)&&r.catch(o=>{fs(o,t,n)}),r}if(q(e)){const r=[];for(let o=0;o<e.length;o++)r.push(ot(e[o],t,n,s));return r}}function fs(e,t,n,s=!0){const r=t?t.vnode:null,{errorHandler:o,throwUnhandledErrorInProduction:i}=t&&t.appContext.config||ce;if(t){let l=t.parent;const a=t.proxy,f=`https://vuejs.org/error-reference/#runtime-${n}`;for(;l;){const c=l.ec;if(c){for(let d=0;d<c.length;d++)if(c[d](e,a,f)===!1)return}l=l.parent}if(o){ht(),Dn(o,null,10,[e,a,f]),pt();return}}$l(e,n,r,s,i)}function $l(e,t,n,s=!0,r=!1){if(r)throw e;console.error(e)}const Me=[];let et=-1;const zt=[];let xt=null,Ut=0;const qo=Promise.resolve();let Yn=null;function Go(e){const t=Yn||qo;return e?t.then(this?e.bind(this):e):t}function Hl(e){let t=et+1,n=Me.length;for(;t<n;){const s=t+n>>>1,r=Me[s],o=Cn(r);o<e||o===e&&r.flags&2?t=s+1:n=s}return t}function ur(e){if(!(e.flags&1)){const t=Cn(e),n=Me[Me.length-1];!n||!(e.flags&2)&&t>=Cn(n)?Me.push(e):Me.splice(Hl(t),0,e),e.flags|=1,zo()}}function zo(){Yn||(Yn=qo.then(Jo))}function Ul(e){q(e)?zt.push(...e):xt&&e.id===-1?xt.splice(Ut+1,0,e):e.flags&1||(zt.push(e),e.flags|=1),zo()}function Er(e,t,n=et+1){for(;n<Me.length;n++){const s=Me[n];if(s&&s.flags&2){if(e&&s.id!==e.uid)continue;Me.splice(n,1),n--,s.flags&4&&(s.flags&=-2),s(),s.flags&4||(s.flags&=-2)}}}function Yo(e){if(zt.length){const t=[...new Set(zt)].sort((n,s)=>Cn(n)-Cn(s));if(zt.length=0,xt){xt.push(...t);return}for(xt=t,Ut=0;Ut<xt.length;Ut++){const n=xt[Ut];n.flags&4&&(n.flags&=-2),n.flags&8||n(),n.flags&=-2}xt=null,Ut=0}}const Cn=e=>e.id==null?e.flags&2?-1:1/0:e.id;function Jo(e){try{for(et=0;et<Me.length;et++){const t=Me[et];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),Dn(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;et<Me.length;et++){const t=Me[et];t&&(t.flags&=-2)}et=-1,Me.length=0,Yo(),Yn=null,(Me.length||zt.length)&&Jo()}}let je=null,Xo=null;function Jn(e){const t=je;return je=e,Xo=e&&e.type.__scopeId||null,t}function Pt(e,t=je,n){if(!t||e._n)return e;const s=(...r)=>{s._d&&ts(-1);const o=Jn(t);let i;try{i=e(...r)}finally{Jn(o),s._d&&ts(1)}return i};return s._n=!0,s._c=!0,s._d=!0,s}function pn(e,t){if(je===null)return e;const n=ms(je),s=e.dirs||(e.dirs=[]);for(let r=0;r<t.length;r++){let[o,i,l,a=ce]=t[r];o&&(J(o)&&(o={mounted:o,updated:o}),o.deep&&ft(i),s.push({dir:o,instance:n,value:i,oldValue:void 0,arg:l,modifiers:a}))}return e}function At(e,t,n,s){const r=e.dirs,o=t&&t.dirs;for(let i=0;i<r.length;i++){const l=r[i];o&&(l.oldValue=o[i].value);let a=l.dir[s];a&&(ht(),ot(a,n,8,[e.el,l,e,t]),pt())}}function Hn(e,t){if(Ce){let n=Ce.provides;const s=Ce.parent&&Ce.parent.provides;s===n&&(n=Ce.provides=Object.create(s)),n[e]=t}}function Ge(e,t,n=!1){const s=Ai();if(s||Jt){let r=Jt?Jt._context.provides:s?s.parent==null||s.ce?s.vnode.appContext&&s.vnode.appContext.provides:s.parent.provides:void 0;if(r&&e in r)return r[e];if(arguments.length>1)return n&&J(t)?t.call(s&&s.proxy):t}}const Bl=Symbol.for("v-scx"),Wl=()=>Ge(Bl);function st(e,t,n){return Qo(e,t,n)}function Qo(e,t,n=ce){const{immediate:s,deep:r,flush:o,once:i}=n,l=Pe({},n),a=t&&s||!t&&o!=="post";let f;if(On){if(o==="sync"){const g=Wl();f=g.__watcherHandles||(g.__watcherHandles=[])}else if(!a){const g=()=>{};return g.stop=nt,g.resume=nt,g.pause=nt,g}}const c=Ce;l.call=(g,y,C)=>ot(g,c,y,C);let d=!1;o==="post"?l.scheduler=g=>{we(g,c&&c.suspense)}:o!=="sync"&&(d=!0,l.scheduler=(g,y)=>{y?g():ur(g)}),l.augmentJob=g=>{t&&(g.flags|=4),d&&(g.flags|=2,c&&(g.id=c.uid,g.i=c))};const p=jl(e,t,l);return On&&(f?f.push(p):a&&p()),p}function Kl(e,t,n){const s=this.proxy,r=me(e)?e.includes(".")?Zo(s,e):()=>s[e]:e.bind(s,s);let o;J(t)?o=t:(o=t.handler,n=t);const i=Nn(this),l=Qo(r,o.bind(s),n);return i(),l}function Zo(e,t){const n=t.split(".");return()=>{let s=e;for(let r=0;r<n.length&&s;r++)s=s[n[r]];return s}}const ql=Symbol("_vte"),Gl=e=>e.__isTeleport,zl=Symbol("_leaveCb");function ds(e,t){e.shapeFlag&6&&e.component?(e.transition=t,ds(e.component.subTree,t)):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function on(e,t){return J(e)?Pe({name:e.name},t,{setup:e}):e}function ei(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}const Xn=new WeakMap;function xn(e,t,n,s,r=!1){if(q(e)){e.forEach((y,C)=>xn(y,t&&(q(t)?t[C]:t),n,s,r));return}if(kt(s)&&!r){s.shapeFlag&512&&s.type.__asyncResolved&&s.component.subTree.component&&xn(e,t,n,s.component.subTree);return}const o=s.shapeFlag&4?ms(s.component):s.el,i=r?null:o,{i:l,r:a}=e,f=t&&t.r,c=l.refs===ce?l.refs={}:l.refs,d=l.setupState,p=re(d),g=d===ce?bo:y=>oe(p,y);if(f!=null&&f!==a){if(Ar(t),me(f))c[f]=null,g(f)&&(d[f]=null);else if(Te(f)){f.value=null;const y=t;y.k&&(c[y.k]=null)}}if(J(a))Dn(a,l,12,[i,c]);else{const y=me(a),C=Te(a);if(y||C){const L=()=>{if(e.f){const P=y?g(a)?d[a]:c[a]:a.value;if(r)q(P)&&er(P,o);else if(q(P))P.includes(o)||P.push(o);else if(y)c[a]=[o],g(a)&&(d[a]=c[a]);else{const x=[o];a.value=x,e.k&&(c[e.k]=x)}}else y?(c[a]=i,g(a)&&(d[a]=i)):C&&(a.value=i,e.k&&(c[e.k]=i))};if(i){const P=()=>{L(),Xn.delete(e)};P.id=-1,Xn.set(e,P),we(P,n)}else Ar(e),L()}}}function Ar(e){const t=Xn.get(e);t&&(t.flags|=8,Xn.delete(e))}as().requestIdleCallback;as().cancelIdleCallback;const kt=e=>!!e.type.__asyncLoader,ti=e=>e.type.__isKeepAlive,Yl={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(e,{slots:t}){const n=Ai(),s=n.ctx;if(!s.renderer)return()=>{const x=t.default&&t.default();return x&&x.length===1?x[0]:x};const r=new Map,o=new Set;let i=null;const l=n.suspense,{renderer:{p:a,m:f,um:c,o:{createElement:d}}}=s,p=d("div");s.activate=(x,S,E,Y,H)=>{const V=x.component;f(x,S,E,0,l),a(V.vnode,x,S,E,V,l,Y,x.slotScopeIds,H),we(()=>{V.isDeactivated=!1,V.a&&Gt(V.a);const j=x.props&&x.props.onVnodeMounted;j&&Ue(j,V.parent,x)},l)},s.deactivate=x=>{const S=x.component;Zn(S.m),Zn(S.a),f(x,p,null,1,l),we(()=>{S.da&&Gt(S.da);const E=x.props&&x.props.onVnodeUnmounted;E&&Ue(E,S.parent,x),S.isDeactivated=!0},l)};function g(x){Rs(x),c(x,n,l,!0)}function y(x){r.forEach((S,E)=>{const Y=Ws(kt(S)?S.type.__asyncResolved||{}:S.type);Y&&!x(Y)&&C(E)})}function C(x){const S=r.get(x);S&&(!i||!Bt(S,i))?g(S):i&&Rs(i),r.delete(x),o.delete(x)}st(()=>[e.include,e.exclude],([x,S])=>{x&&y(E=>gn(x,E)),S&&y(E=>!gn(S,E))},{flush:"post",deep:!0});let L=null;const P=()=>{L!=null&&(es(n.subTree.type)?we(()=>{r.set(L,jn(n.subTree))},n.subTree.suspense):r.set(L,jn(n.subTree)))};return ln(P),si(P),ri(()=>{r.forEach(x=>{const{subTree:S,suspense:E}=n,Y=jn(S);if(x.type===Y.type&&x.key===Y.key){Rs(Y);const H=Y.component.da;H&&we(H,E);return}g(x)})}),()=>{if(L=null,!t.default)return i=null;const x=t.default(),S=x[0];if(x.length>1)return i=null,x;if(!Pn(S)||!(S.shapeFlag&4)&&!(S.shapeFlag&128))return i=null,S;let E=jn(S);if(E.type===mt)return i=null,E;const Y=E.type,H=Ws(kt(E)?E.type.__asyncResolved||{}:Y),{include:V,exclude:j,max:ve}=e;if(V&&(!H||!gn(V,H))||j&&H&&gn(j,H))return E.shapeFlag&=-257,i=E,S;const be=E.key==null?Y:E.key,G=r.get(be);return E.el&&(E=Ft(E),S.shapeFlag&128&&(S.ssContent=E)),L=be,G?(E.el=G.el,E.component=G.component,E.transition&&ds(E,E.transition),E.shapeFlag|=512,o.delete(be),o.add(be)):(o.add(be),ve&&o.size>parseInt(ve,10)&&C(o.values().next().value)),E.shapeFlag|=256,i=E,es(S.type)?S:E}}},Jl=Yl;function gn(e,t){return q(e)?e.some(n=>gn(n,t)):me(e)?e.split(",").includes(t):tl(e)?(e.lastIndex=0,e.test(t)):!1}function Xl(e,t){ni(e,"a",t)}function Ql(e,t){ni(e,"da",t)}function ni(e,t,n=Ce){const s=e.__wdc||(e.__wdc=()=>{let r=n;for(;r;){if(r.isDeactivated)return;r=r.parent}return e()});if(hs(t,s,n),n){let r=n.parent;for(;r&&r.parent;)ti(r.parent.vnode)&&Zl(s,t,n,r),r=r.parent}}function Zl(e,t,n,s){const r=hs(t,e,s,!0);kn(()=>{er(s[t],r)},n)}function Rs(e){e.shapeFlag&=-257,e.shapeFlag&=-513}function jn(e){return e.shapeFlag&128?e.ssContent:e}function hs(e,t,n=Ce,s=!1){if(n){const r=n[e]||(n[e]=[]),o=t.__weh||(t.__weh=(...i)=>{ht();const l=Nn(n),a=ot(t,n,e,i);return l(),pt(),a});return s?r.unshift(o):r.push(o),o}}const vt=e=>(t,n=Ce)=>{(!On||e==="sp")&&hs(e,(...s)=>t(...s),n)},ea=vt("bm"),ln=vt("m"),ta=vt("bu"),si=vt("u"),ri=vt("bum"),kn=vt("um"),na=vt("sp"),sa=vt("rtg"),ra=vt("rtc");function oa(e,t=Ce){hs("ec",e,t)}const oi="components";function Cr(e,t){return li(oi,e,!0,t)||e}const ii=Symbol.for("v-ndc");function ia(e){return me(e)?li(oi,e,!1)||e:e||ii}function li(e,t,n=!0,s=!1){const r=je||Ce;if(r){const o=r.type;{const l=Ws(o,!1);if(l&&(l===t||l===Ke(t)||l===ls(Ke(t))))return o}const i=Tr(r[e]||o[e],t)||Tr(r.appContext[e],t);return!i&&s?o:i}}function Tr(e,t){return e&&(e[t]||e[Ke(t)]||e[ls(Ke(t))])}function Yt(e,t,n,s){let r;const o=n,i=q(e);if(i||me(e)){const l=i&&Dt(e);let a=!1,f=!1;l&&(a=!We(e),f=gt(e),e=us(e)),r=new Array(e.length);for(let c=0,d=e.length;c<d;c++)r[c]=t(a?f?tn(ze(e[c])):ze(e[c]):e[c],c,void 0,o)}else if(typeof e=="number"){r=new Array(e);for(let l=0;l<e;l++)r[l]=t(l+1,l,void 0,o)}else if(ue(e))if(e[Symbol.iterator])r=Array.from(e,(l,a)=>t(l,a,void 0,o));else{const l=Object.keys(e);r=new Array(l.length);for(let a=0,f=l.length;a<f;a++){const c=l[a];r[a]=t(e[c],c,a,o)}}else r=[];return r}const js=e=>e?Ci(e)?ms(e):js(e.parent):null,wn=Pe(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>js(e.parent),$root:e=>js(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>ci(e),$forceUpdate:e=>e.f||(e.f=()=>{ur(e.update)}),$nextTick:e=>e.n||(e.n=Go.bind(e.proxy)),$watch:e=>Kl.bind(e)}),Es=(e,t)=>e!==ce&&!e.__isScriptSetup&&oe(e,t),la={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:s,data:r,props:o,accessCache:i,type:l,appContext:a}=e;if(t[0]!=="$"){const p=i[t];if(p!==void 0)switch(p){case 1:return s[t];case 2:return r[t];case 4:return n[t];case 3:return o[t]}else{if(Es(s,t))return i[t]=1,s[t];if(r!==ce&&oe(r,t))return i[t]=2,r[t];if(oe(o,t))return i[t]=3,o[t];if(n!==ce&&oe(n,t))return i[t]=4,n[t];$s&&(i[t]=0)}}const f=wn[t];let c,d;if(f)return t==="$attrs"&&Ee(e.attrs,"get",""),f(e);if((c=l.__cssModules)&&(c=c[t]))return c;if(n!==ce&&oe(n,t))return i[t]=4,n[t];if(d=a.config.globalProperties,oe(d,t))return d[t]},set({_:e},t,n){const{data:s,setupState:r,ctx:o}=e;return Es(r,t)?(r[t]=n,!0):s!==ce&&oe(s,t)?(s[t]=n,!0):oe(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(o[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:s,appContext:r,props:o,type:i}},l){let a;return!!(n[l]||e!==ce&&l[0]!=="$"&&oe(e,l)||Es(t,l)||oe(o,l)||oe(s,l)||oe(wn,l)||oe(r.config.globalProperties,l)||(a=i.__cssModules)&&a[l])},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:oe(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function Pr(e){return q(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let $s=!0;function aa(e){const t=ci(e),n=e.proxy,s=e.ctx;$s=!1,t.beforeCreate&&Or(t.beforeCreate,e,"bc");const{data:r,computed:o,methods:i,watch:l,provide:a,inject:f,created:c,beforeMount:d,mounted:p,beforeUpdate:g,updated:y,activated:C,deactivated:L,beforeDestroy:P,beforeUnmount:x,destroyed:S,unmounted:E,render:Y,renderTracked:H,renderTriggered:V,errorCaptured:j,serverPrefetch:ve,expose:be,inheritAttrs:G,components:k,directives:M,filters:De}=t;if(f&&ca(f,s,null),i)for(const le in i){const ne=i[le];J(ne)&&(s[le]=ne.bind(n))}if(r){const le=r.call(n,n);ue(le)&&(e.data=en(le))}if($s=!0,o)for(const le in o){const ne=o[le],it=J(ne)?ne.bind(n,n):J(ne.get)?ne.get.bind(n,n):nt,yt=!J(ne)&&J(ne.set)?ne.set.bind(n):nt,Je=ye({get:it,set:yt});Object.defineProperty(s,le,{enumerable:!0,configurable:!0,get:()=>Je.value,set:ke=>Je.value=ke})}if(l)for(const le in l)ai(l[le],s,n,le);if(a){const le=J(a)?a.call(n):a;Reflect.ownKeys(le).forEach(ne=>{Hn(ne,le[ne])})}c&&Or(c,e,"c");function xe(le,ne){q(ne)?ne.forEach(it=>le(it.bind(n))):ne&&le(ne.bind(n))}if(xe(ea,d),xe(ln,p),xe(ta,g),xe(si,y),xe(Xl,C),xe(Ql,L),xe(oa,j),xe(ra,H),xe(sa,V),xe(ri,x),xe(kn,E),xe(na,ve),q(be))if(be.length){const le=e.exposed||(e.exposed={});be.forEach(ne=>{Object.defineProperty(le,ne,{get:()=>n[ne],set:it=>n[ne]=it,enumerable:!0})})}else e.exposed||(e.exposed={});Y&&e.render===nt&&(e.render=Y),G!=null&&(e.inheritAttrs=G),k&&(e.components=k),M&&(e.directives=M),ve&&ei(e)}function ca(e,t,n=nt){q(e)&&(e=Hs(e));for(const s in e){const r=e[s];let o;ue(r)?"default"in r?o=Ge(r.from||s,r.default,!0):o=Ge(r.from||s):o=Ge(r),Te(o)?Object.defineProperty(t,s,{enumerable:!0,configurable:!0,get:()=>o.value,set:i=>o.value=i}):t[s]=o}}function Or(e,t,n){ot(q(e)?e.map(s=>s.bind(t.proxy)):e.bind(t.proxy),t,n)}function ai(e,t,n,s){let r=s.includes(".")?Zo(n,s):()=>n[s];if(me(e)){const o=t[e];J(o)&&st(r,o)}else if(J(e))st(r,e.bind(n));else if(ue(e))if(q(e))e.forEach(o=>ai(o,t,n,s));else{const o=J(e.handler)?e.handler.bind(n):t[e.handler];J(o)&&st(r,o,e)}}function ci(e){const t=e.type,{mixins:n,extends:s}=t,{mixins:r,optionsCache:o,config:{optionMergeStrategies:i}}=e.appContext,l=o.get(t);let a;return l?a=l:!r.length&&!n&&!s?a=t:(a={},r.length&&r.forEach(f=>Qn(a,f,i,!0)),Qn(a,t,i)),ue(t)&&o.set(t,a),a}function Qn(e,t,n,s=!1){const{mixins:r,extends:o}=t;o&&Qn(e,o,n,!0),r&&r.forEach(i=>Qn(e,i,n,!0));for(const i in t)if(!(s&&i==="expose")){const l=ua[i]||n&&n[i];e[i]=l?l(e[i],t[i]):t[i]}return e}const ua={data:Ir,props:Mr,emits:Mr,methods:mn,computed:mn,beforeCreate:Oe,created:Oe,beforeMount:Oe,mounted:Oe,beforeUpdate:Oe,updated:Oe,beforeDestroy:Oe,beforeUnmount:Oe,destroyed:Oe,unmounted:Oe,activated:Oe,deactivated:Oe,errorCaptured:Oe,serverPrefetch:Oe,components:mn,directives:mn,watch:da,provide:Ir,inject:fa};function Ir(e,t){return t?e?function(){return Pe(J(e)?e.call(this,this):e,J(t)?t.call(this,this):t)}:t:e}function fa(e,t){return mn(Hs(e),Hs(t))}function Hs(e){if(q(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function Oe(e,t){return e?[...new Set([].concat(e,t))]:t}function mn(e,t){return e?Pe(Object.create(null),e,t):t}function Mr(e,t){return e?q(e)&&q(t)?[...new Set([...e,...t])]:Pe(Object.create(null),Pr(e),Pr(t??{})):t}function da(e,t){if(!e)return t;if(!t)return e;const n=Pe(Object.create(null),e);for(const s in t)n[s]=Oe(e[s],t[s]);return n}function ui(){return{app:null,config:{isNativeTag:bo,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let ha=0;function pa(e,t){return function(s,r=null){J(s)||(s=Pe({},s)),r!=null&&!ue(r)&&(r=null);const o=ui(),i=new WeakSet,l=[];let a=!1;const f=o.app={_uid:ha++,_component:s,_props:r,_container:null,_context:o,_instance:null,version:Ka,get config(){return o.config},set config(c){},use(c,...d){return i.has(c)||(c&&J(c.install)?(i.add(c),c.install(f,...d)):J(c)&&(i.add(c),c(f,...d))),f},mixin(c){return o.mixins.includes(c)||o.mixins.push(c),f},component(c,d){return d?(o.components[c]=d,f):o.components[c]},directive(c,d){return d?(o.directives[c]=d,f):o.directives[c]},mount(c,d,p){if(!a){const g=f._ceVNode||pe(s,r);return g.appContext=o,p===!0?p="svg":p===!1&&(p=void 0),e(g,c,p),a=!0,f._container=c,c.__vue_app__=f,ms(g.component)}},onUnmount(c){l.push(c)},unmount(){a&&(ot(l,f._instance,16),e(null,f._container),delete f._container.__vue_app__)},provide(c,d){return o.provides[c]=d,f},runWithContext(c){const d=Jt;Jt=f;try{return c()}finally{Jt=d}}};return f}}let Jt=null;const ga=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${Ke(t)}Modifiers`]||e[`${Lt(t)}Modifiers`];function ma(e,t,...n){if(e.isUnmounted)return;const s=e.vnode.props||ce;let r=n;const o=t.startsWith("update:"),i=o&&ga(s,t.slice(7));i&&(i.trim&&(r=n.map(c=>me(c)?c.trim():c)),i.number&&(r=n.map(nr)));let l,a=s[l=_s(t)]||s[l=_s(Ke(t))];!a&&o&&(a=s[l=_s(Lt(t))]),a&&ot(a,e,6,r);const f=s[l+"Once"];if(f){if(!e.emitted)e.emitted={};else if(e.emitted[l])return;e.emitted[l]=!0,ot(f,e,6,r)}}const va=new WeakMap;function fi(e,t,n=!1){const s=n?va:t.emitsCache,r=s.get(e);if(r!==void 0)return r;const o=e.emits;let i={},l=!1;if(!J(e)){const a=f=>{const c=fi(f,t,!0);c&&(l=!0,Pe(i,c))};!n&&t.mixins.length&&t.mixins.forEach(a),e.extends&&a(e.extends),e.mixins&&e.mixins.forEach(a)}return!o&&!l?(ue(e)&&s.set(e,null),null):(q(o)?o.forEach(a=>i[a]=null):Pe(i,o),ue(e)&&s.set(e,i),i)}function ps(e,t){return!e||!rs(t)?!1:(t=t.slice(2).replace(/Once$/,""),oe(e,t[0].toLowerCase()+t.slice(1))||oe(e,Lt(t))||oe(e,t))}function Dr(e){const{type:t,vnode:n,proxy:s,withProxy:r,propsOptions:[o],slots:i,attrs:l,emit:a,render:f,renderCache:c,props:d,data:p,setupState:g,ctx:y,inheritAttrs:C}=e,L=Jn(e);let P,x;try{if(n.shapeFlag&4){const E=r||s,Y=E;P=tt(f.call(Y,E,c,d,g,p,y)),x=l}else{const E=t;P=tt(E.length>1?E(d,{attrs:l,slots:i,emit:a}):E(d,null)),x=t.props?l:ya(l)}}catch(E){Sn.length=0,fs(E,e,1),P=pe(mt)}let S=P;if(x&&C!==!1){const E=Object.keys(x),{shapeFlag:Y}=S;E.length&&Y&7&&(o&&E.some(Zs)&&(x=_a(x,o)),S=Ft(S,x,!1,!0))}return n.dirs&&(S=Ft(S,null,!1,!0),S.dirs=S.dirs?S.dirs.concat(n.dirs):n.dirs),n.transition&&ds(S,n.transition),P=S,Jn(L),P}const ya=e=>{let t;for(const n in e)(n==="class"||n==="style"||rs(n))&&((t||(t={}))[n]=e[n]);return t},_a=(e,t)=>{const n={};for(const s in e)(!Zs(s)||!(s.slice(9)in t))&&(n[s]=e[s]);return n};function ba(e,t,n){const{props:s,children:r,component:o}=e,{props:i,children:l,patchFlag:a}=t,f=o.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&a>=0){if(a&1024)return!0;if(a&16)return s?kr(s,i,f):!!i;if(a&8){const c=t.dynamicProps;for(let d=0;d<c.length;d++){const p=c[d];if(i[p]!==s[p]&&!ps(f,p))return!0}}}else return(r||l)&&(!l||!l.$stable)?!0:s===i?!1:s?i?kr(s,i,f):!0:!!i;return!1}function kr(e,t,n){const s=Object.keys(t);if(s.length!==Object.keys(e).length)return!0;for(let r=0;r<s.length;r++){const o=s[r];if(t[o]!==e[o]&&!ps(n,o))return!0}return!1}function xa({vnode:e,parent:t},n){for(;t;){const s=t.subTree;if(s.suspense&&s.suspense.activeBranch===e&&(s.el=e.el),s===e)(e=t.vnode).el=n,t=t.parent;else break}}const di={},hi=()=>Object.create(di),pi=e=>Object.getPrototypeOf(e)===di;function wa(e,t,n,s=!1){const r={},o=hi();e.propsDefaults=Object.create(null),gi(e,t,r,o);for(const i in e.propsOptions[0])i in r||(r[i]=void 0);n?e.props=s?r:Bo(r):e.type.props?e.props=r:e.props=o,e.attrs=o}function Sa(e,t,n,s){const{props:r,attrs:o,vnode:{patchFlag:i}}=e,l=re(r),[a]=e.propsOptions;let f=!1;if((s||i>0)&&!(i&16)){if(i&8){const c=e.vnode.dynamicProps;for(let d=0;d<c.length;d++){let p=c[d];if(ps(e.emitsOptions,p))continue;const g=t[p];if(a)if(oe(o,p))g!==o[p]&&(o[p]=g,f=!0);else{const y=Ke(p);r[y]=Us(a,l,y,g,e,!1)}else g!==o[p]&&(o[p]=g,f=!0)}}}else{gi(e,t,r,o)&&(f=!0);let c;for(const d in l)(!t||!oe(t,d)&&((c=Lt(d))===d||!oe(t,c)))&&(a?n&&(n[d]!==void 0||n[c]!==void 0)&&(r[d]=Us(a,l,d,void 0,e,!0)):delete r[d]);if(o!==l)for(const d in o)(!t||!oe(t,d))&&(delete o[d],f=!0)}f&&ut(e.attrs,"set","")}function gi(e,t,n,s){const[r,o]=e.propsOptions;let i=!1,l;if(t)for(let a in t){if(yn(a))continue;const f=t[a];let c;r&&oe(r,c=Ke(a))?!o||!o.includes(c)?n[c]=f:(l||(l={}))[c]=f:ps(e.emitsOptions,a)||(!(a in s)||f!==s[a])&&(s[a]=f,i=!0)}if(o){const a=re(n),f=l||ce;for(let c=0;c<o.length;c++){const d=o[c];n[d]=Us(r,a,d,f[d],e,!oe(f,d))}}return i}function Us(e,t,n,s,r,o){const i=e[n];if(i!=null){const l=oe(i,"default");if(l&&s===void 0){const a=i.default;if(i.type!==Function&&!i.skipFactory&&J(a)){const{propsDefaults:f}=r;if(n in f)s=f[n];else{const c=Nn(r);s=f[n]=a.call(null,t),c()}}else s=a;r.ce&&r.ce._setProp(n,s)}i[0]&&(o&&!l?s=!1:i[1]&&(s===""||s===Lt(n))&&(s=!0))}return s}const Ra=new WeakMap;function mi(e,t,n=!1){const s=n?Ra:t.propsCache,r=s.get(e);if(r)return r;const o=e.props,i={},l=[];let a=!1;if(!J(e)){const c=d=>{a=!0;const[p,g]=mi(d,t,!0);Pe(i,p),g&&l.push(...g)};!n&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}if(!o&&!a)return ue(e)&&s.set(e,Kt),Kt;if(q(o))for(let c=0;c<o.length;c++){const d=Ke(o[c]);Nr(d)&&(i[d]=ce)}else if(o)for(const c in o){const d=Ke(c);if(Nr(d)){const p=o[c],g=i[d]=q(p)||J(p)?{type:p}:Pe({},p),y=g.type;let C=!1,L=!0;if(q(y))for(let P=0;P<y.length;++P){const x=y[P],S=J(x)&&x.name;if(S==="Boolean"){C=!0;break}else S==="String"&&(L=!1)}else C=J(y)&&y.name==="Boolean";g[0]=C,g[1]=L,(C||oe(g,"default"))&&l.push(d)}}const f=[i,l];return ue(e)&&s.set(e,f),f}function Nr(e){return e[0]!=="$"&&!yn(e)}const fr=e=>e==="_"||e==="_ctx"||e==="$stable",dr=e=>q(e)?e.map(tt):[tt(e)],Ea=(e,t,n)=>{if(t._n)return t;const s=Pt((...r)=>dr(t(...r)),n);return s._c=!1,s},vi=(e,t,n)=>{const s=e._ctx;for(const r in e){if(fr(r))continue;const o=e[r];if(J(o))t[r]=Ea(r,o,s);else if(o!=null){const i=dr(o);t[r]=()=>i}}},yi=(e,t)=>{const n=dr(t);e.slots.default=()=>n},_i=(e,t,n)=>{for(const s in t)(n||!fr(s))&&(e[s]=t[s])},Aa=(e,t,n)=>{const s=e.slots=hi();if(e.vnode.shapeFlag&32){const r=t._;r?(_i(s,t,n),n&&Ro(s,"_",r,!0)):vi(t,s)}else t&&yi(e,t)},Ca=(e,t,n)=>{const{vnode:s,slots:r}=e;let o=!0,i=ce;if(s.shapeFlag&32){const l=t._;l?n&&l===1?o=!1:_i(r,t,n):(o=!t.$stable,vi(t,r)),i=t}else t&&(yi(e,t),i={default:1});if(o)for(const l in r)!fr(l)&&i[l]==null&&delete r[l]},we=Ma;function Ta(e){return Pa(e)}function Pa(e,t){const n=as();n.__VUE__=!0;const{insert:s,remove:r,patchProp:o,createElement:i,createText:l,createComment:a,setText:f,setElementText:c,parentNode:d,nextSibling:p,setScopeId:g=nt,insertStaticContent:y}=e,C=(u,h,m,_=null,R=null,b=null,I=void 0,O=null,T=!!h.dynamicChildren)=>{if(u===h)return;u&&!Bt(u,h)&&(_=w(u),ke(u,R,b,!0),u=null),h.patchFlag===-2&&(T=!1,h.dynamicChildren=null);const{type:A,ref:K,shapeFlag:N}=h;switch(A){case gs:L(u,h,m,_);break;case mt:P(u,h,m,_);break;case Un:u==null&&x(h,m,_,I);break;case Ae:k(u,h,m,_,R,b,I,O,T);break;default:N&1?Y(u,h,m,_,R,b,I,O,T):N&6?M(u,h,m,_,R,b,I,O,T):(N&64||N&128)&&A.process(u,h,m,_,R,b,I,O,T,U)}K!=null&&R?xn(K,u&&u.ref,b,h||u,!h):K==null&&u&&u.ref!=null&&xn(u.ref,null,b,u,!0)},L=(u,h,m,_)=>{if(u==null)s(h.el=l(h.children),m,_);else{const R=h.el=u.el;h.children!==u.children&&f(R,h.children)}},P=(u,h,m,_)=>{u==null?s(h.el=a(h.children||""),m,_):h.el=u.el},x=(u,h,m,_)=>{[u.el,u.anchor]=y(u.children,h,m,_,u.el,u.anchor)},S=({el:u,anchor:h},m,_)=>{let R;for(;u&&u!==h;)R=p(u),s(u,m,_),u=R;s(h,m,_)},E=({el:u,anchor:h})=>{let m;for(;u&&u!==h;)m=p(u),r(u),u=m;r(h)},Y=(u,h,m,_,R,b,I,O,T)=>{if(h.type==="svg"?I="svg":h.type==="math"&&(I="mathml"),u==null)H(h,m,_,R,b,I,O,T);else{const A=u.el&&u.el._isVueCE?u.el:null;try{A&&A._beginPatch(),ve(u,h,R,b,I,O,T)}finally{A&&A._endPatch()}}},H=(u,h,m,_,R,b,I,O)=>{let T,A;const{props:K,shapeFlag:N,transition:B,dirs:z}=u;if(T=u.el=i(u.type,b,K&&K.is,K),N&8?c(T,u.children):N&16&&j(u.children,T,null,_,R,As(u,b),I,O),z&&At(u,null,_,"created"),V(T,u,u.scopeId,I,_),K){for(const fe in K)fe!=="value"&&!yn(fe)&&o(T,fe,null,K[fe],b,_);"value"in K&&o(T,"value",null,K.value,b),(A=K.onVnodeBeforeMount)&&Ue(A,_,u)}z&&At(u,null,_,"beforeMount");const te=Oa(R,B);te&&B.beforeEnter(T),s(T,h,m),((A=K&&K.onVnodeMounted)||te||z)&&we(()=>{A&&Ue(A,_,u),te&&B.enter(T),z&&At(u,null,_,"mounted")},R)},V=(u,h,m,_,R)=>{if(m&&g(u,m),_)for(let b=0;b<_.length;b++)g(u,_[b]);if(R){let b=R.subTree;if(h===b||es(b.type)&&(b.ssContent===h||b.ssFallback===h)){const I=R.vnode;V(u,I,I.scopeId,I.slotScopeIds,R.parent)}}},j=(u,h,m,_,R,b,I,O,T=0)=>{for(let A=T;A<u.length;A++){const K=u[A]=O?wt(u[A]):tt(u[A]);C(null,K,h,m,_,R,b,I,O)}},ve=(u,h,m,_,R,b,I)=>{const O=h.el=u.el;let{patchFlag:T,dynamicChildren:A,dirs:K}=h;T|=u.patchFlag&16;const N=u.props||ce,B=h.props||ce;let z;if(m&&Ct(m,!1),(z=B.onVnodeBeforeUpdate)&&Ue(z,m,h,u),K&&At(h,u,m,"beforeUpdate"),m&&Ct(m,!0),(N.innerHTML&&B.innerHTML==null||N.textContent&&B.textContent==null)&&c(O,""),A?be(u.dynamicChildren,A,O,m,_,As(h,R),b):I||ne(u,h,O,null,m,_,As(h,R),b,!1),T>0){if(T&16)G(O,N,B,m,R);else if(T&2&&N.class!==B.class&&o(O,"class",null,B.class,R),T&4&&o(O,"style",N.style,B.style,R),T&8){const te=h.dynamicProps;for(let fe=0;fe<te.length;fe++){const ie=te[fe],Ne=N[ie],Fe=B[ie];(Fe!==Ne||ie==="value")&&o(O,ie,Ne,Fe,R,m)}}T&1&&u.children!==h.children&&c(O,h.children)}else!I&&A==null&&G(O,N,B,m,R);((z=B.onVnodeUpdated)||K)&&we(()=>{z&&Ue(z,m,h,u),K&&At(h,u,m,"updated")},_)},be=(u,h,m,_,R,b,I)=>{for(let O=0;O<h.length;O++){const T=u[O],A=h[O],K=T.el&&(T.type===Ae||!Bt(T,A)||T.shapeFlag&198)?d(T.el):m;C(T,A,K,null,_,R,b,I,!0)}},G=(u,h,m,_,R)=>{if(h!==m){if(h!==ce)for(const b in h)!yn(b)&&!(b in m)&&o(u,b,h[b],null,R,_);for(const b in m){if(yn(b))continue;const I=m[b],O=h[b];I!==O&&b!=="value"&&o(u,b,O,I,R,_)}"value"in m&&o(u,"value",h.value,m.value,R)}},k=(u,h,m,_,R,b,I,O,T)=>{const A=h.el=u?u.el:l(""),K=h.anchor=u?u.anchor:l("");let{patchFlag:N,dynamicChildren:B,slotScopeIds:z}=h;z&&(O=O?O.concat(z):z),u==null?(s(A,m,_),s(K,m,_),j(h.children||[],m,K,R,b,I,O,T)):N>0&&N&64&&B&&u.dynamicChildren&&u.dynamicChildren.length===B.length?(be(u.dynamicChildren,B,m,R,b,I,O),(h.key!=null||R&&h===R.subTree)&&bi(u,h,!0)):ne(u,h,m,K,R,b,I,O,T)},M=(u,h,m,_,R,b,I,O,T)=>{h.slotScopeIds=O,u==null?h.shapeFlag&512?R.ctx.activate(h,m,_,I,T):De(h,m,_,R,b,I,T):Vt(u,h,T)},De=(u,h,m,_,R,b,I)=>{const O=u.component=ja(u,_,R);if(ti(u)&&(O.ctx.renderer=U),$a(O,!1,I),O.asyncDep){if(R&&R.registerDep(O,xe,I),!u.el){const T=O.subTree=pe(mt);P(null,T,h,m),u.placeholder=T.el}}else xe(O,u,h,m,R,b,I)},Vt=(u,h,m)=>{const _=h.component=u.component;if(ba(u,h,m))if(_.asyncDep&&!_.asyncResolved){le(_,h,m);return}else _.next=h,_.update();else h.el=u.el,_.vnode=h},xe=(u,h,m,_,R,b,I)=>{const O=()=>{if(u.isMounted){let{next:N,bu:B,u:z,parent:te,vnode:fe}=u;{const Qe=xi(u);if(Qe){N&&(N.el=fe.el,le(u,N,I)),Qe.asyncDep.then(()=>{u.isUnmounted||O()});return}}let ie=N,Ne;Ct(u,!1),N?(N.el=fe.el,le(u,N,I)):N=fe,B&&Gt(B),(Ne=N.props&&N.props.onVnodeBeforeUpdate)&&Ue(Ne,te,N,fe),Ct(u,!0);const Fe=Dr(u),Xe=u.subTree;u.subTree=Fe,C(Xe,Fe,d(Xe.el),w(Xe),u,R,b),N.el=Fe.el,ie===null&&xa(u,Fe.el),z&&we(z,R),(Ne=N.props&&N.props.onVnodeUpdated)&&we(()=>Ue(Ne,te,N,fe),R)}else{let N;const{el:B,props:z}=h,{bm:te,m:fe,parent:ie,root:Ne,type:Fe}=u,Xe=kt(h);Ct(u,!1),te&&Gt(te),!Xe&&(N=z&&z.onVnodeBeforeMount)&&Ue(N,ie,h),Ct(u,!0);{Ne.ce&&Ne.ce._def.shadowRoot!==!1&&Ne.ce._injectChildStyle(Fe);const Qe=u.subTree=Dr(u);C(null,Qe,m,_,u,R,b),h.el=Qe.el}if(fe&&we(fe,R),!Xe&&(N=z&&z.onVnodeMounted)){const Qe=h;we(()=>Ue(N,ie,Qe),R)}(h.shapeFlag&256||ie&&kt(ie.vnode)&&ie.vnode.shapeFlag&256)&&u.a&&we(u.a,R),u.isMounted=!0,h=m=_=null}};u.scope.on();const T=u.effect=new Po(O);u.scope.off();const A=u.update=T.run.bind(T),K=u.job=T.runIfDirty.bind(T);K.i=u,K.id=u.uid,T.scheduler=()=>ur(K),Ct(u,!0),A()},le=(u,h,m)=>{h.component=u;const _=u.vnode.props;u.vnode=h,u.next=null,Sa(u,h.props,_,m),Ca(u,h.children,m),ht(),Er(u),pt()},ne=(u,h,m,_,R,b,I,O,T=!1)=>{const A=u&&u.children,K=u?u.shapeFlag:0,N=h.children,{patchFlag:B,shapeFlag:z}=h;if(B>0){if(B&128){yt(A,N,m,_,R,b,I,O,T);return}else if(B&256){it(A,N,m,_,R,b,I,O,T);return}}z&8?(K&16&&He(A,R,b),N!==A&&c(m,N)):K&16?z&16?yt(A,N,m,_,R,b,I,O,T):He(A,R,b,!0):(K&8&&c(m,""),z&16&&j(N,m,_,R,b,I,O,T))},it=(u,h,m,_,R,b,I,O,T)=>{u=u||Kt,h=h||Kt;const A=u.length,K=h.length,N=Math.min(A,K);let B;for(B=0;B<N;B++){const z=h[B]=T?wt(h[B]):tt(h[B]);C(u[B],z,m,null,R,b,I,O,T)}A>K?He(u,R,b,!0,!1,N):j(h,m,_,R,b,I,O,T,N)},yt=(u,h,m,_,R,b,I,O,T)=>{let A=0;const K=h.length;let N=u.length-1,B=K-1;for(;A<=N&&A<=B;){const z=u[A],te=h[A]=T?wt(h[A]):tt(h[A]);if(Bt(z,te))C(z,te,m,null,R,b,I,O,T);else break;A++}for(;A<=N&&A<=B;){const z=u[N],te=h[B]=T?wt(h[B]):tt(h[B]);if(Bt(z,te))C(z,te,m,null,R,b,I,O,T);else break;N--,B--}if(A>N){if(A<=B){const z=B+1,te=z<K?h[z].el:_;for(;A<=B;)C(null,h[A]=T?wt(h[A]):tt(h[A]),m,te,R,b,I,O,T),A++}}else if(A>B)for(;A<=N;)ke(u[A],R,b,!0),A++;else{const z=A,te=A,fe=new Map;for(A=te;A<=B;A++){const Ve=h[A]=T?wt(h[A]):tt(h[A]);Ve.key!=null&&fe.set(Ve.key,A)}let ie,Ne=0;const Fe=B-te+1;let Xe=!1,Qe=0;const an=new Array(Fe);for(A=0;A<Fe;A++)an[A]=0;for(A=z;A<=N;A++){const Ve=u[A];if(Ne>=Fe){ke(Ve,R,b,!0);continue}let Ze;if(Ve.key!=null)Ze=fe.get(Ve.key);else for(ie=te;ie<=B;ie++)if(an[ie-te]===0&&Bt(Ve,h[ie])){Ze=ie;break}Ze===void 0?ke(Ve,R,b,!0):(an[Ze-te]=A+1,Ze>=Qe?Qe=Ze:Xe=!0,C(Ve,h[Ze],m,null,R,b,I,O,T),Ne++)}const yr=Xe?Ia(an):Kt;for(ie=yr.length-1,A=Fe-1;A>=0;A--){const Ve=te+A,Ze=h[Ve],_r=h[Ve+1],br=Ve+1<K?_r.el||wi(_r):_;an[A]===0?C(null,Ze,m,br,R,b,I,O,T):Xe&&(ie<0||A!==yr[ie]?Je(Ze,m,br,2):ie--)}}},Je=(u,h,m,_,R=null)=>{const{el:b,type:I,transition:O,children:T,shapeFlag:A}=u;if(A&6){Je(u.component.subTree,h,m,_);return}if(A&128){u.suspense.move(h,m,_);return}if(A&64){I.move(u,h,m,U);return}if(I===Ae){s(b,h,m);for(let N=0;N<T.length;N++)Je(T[N],h,m,_);s(u.anchor,h,m);return}if(I===Un){S(u,h,m);return}if(_!==2&&A&1&&O)if(_===0)O.beforeEnter(b),s(b,h,m),we(()=>O.enter(b),R);else{const{leave:N,delayLeave:B,afterLeave:z}=O,te=()=>{u.ctx.isUnmounted?r(b):s(b,h,m)},fe=()=>{b._isLeaving&&b[zl](!0),N(b,()=>{te(),z&&z()})};B?B(b,te,fe):fe()}else s(b,h,m)},ke=(u,h,m,_=!1,R=!1)=>{const{type:b,props:I,ref:O,children:T,dynamicChildren:A,shapeFlag:K,patchFlag:N,dirs:B,cacheIndex:z}=u;if(N===-2&&(R=!1),O!=null&&(ht(),xn(O,null,m,u,!0),pt()),z!=null&&(h.renderCache[z]=void 0),K&256){h.ctx.deactivate(u);return}const te=K&1&&B,fe=!kt(u);let ie;if(fe&&(ie=I&&I.onVnodeBeforeUnmount)&&Ue(ie,h,u),K&6)Et(u.component,m,_);else{if(K&128){u.suspense.unmount(m,_);return}te&&At(u,null,h,"beforeUnmount"),K&64?u.type.remove(u,h,m,U,_):A&&!A.hasOnce&&(b!==Ae||N>0&&N&64)?He(A,h,m,!1,!0):(b===Ae&&N&384||!R&&K&16)&&He(T,h,m),_&&jt(u)}(fe&&(ie=I&&I.onVnodeUnmounted)||te)&&we(()=>{ie&&Ue(ie,h,u),te&&At(u,null,h,"unmounted")},m)},jt=u=>{const{type:h,el:m,anchor:_,transition:R}=u;if(h===Ae){$t(m,_);return}if(h===Un){E(u);return}const b=()=>{r(m),R&&!R.persisted&&R.afterLeave&&R.afterLeave()};if(u.shapeFlag&1&&R&&!R.persisted){const{leave:I,delayLeave:O}=R,T=()=>I(m,b);O?O(u.el,b,T):T()}else b()},$t=(u,h)=>{let m;for(;u!==h;)m=p(u),r(u),u=m;r(h)},Et=(u,h,m)=>{const{bum:_,scope:R,job:b,subTree:I,um:O,m:T,a:A}=u;Zn(T),Zn(A),_&&Gt(_),R.stop(),b&&(b.flags|=8,ke(I,u,h,m)),O&&we(O,h),we(()=>{u.isUnmounted=!0},h)},He=(u,h,m,_=!1,R=!1,b=0)=>{for(let I=b;I<u.length;I++)ke(u[I],h,m,_,R)},w=u=>{if(u.shapeFlag&6)return w(u.component.subTree);if(u.shapeFlag&128)return u.suspense.next();const h=p(u.anchor||u.el),m=h&&h[ql];return m?p(m):h};let F=!1;const D=(u,h,m)=>{let _;u==null?h._vnode&&(ke(h._vnode,null,null,!0),_=h._vnode.component):C(h._vnode||null,u,h,null,null,null,m),h._vnode=u,F||(F=!0,Er(_),Yo(),F=!1)},U={p:C,um:ke,m:Je,r:jt,mt:De,mc:j,pc:ne,pbc:be,n:w,o:e};return{render:D,hydrate:void 0,createApp:pa(D)}}function As({type:e,props:t},n){return n==="svg"&&e==="foreignObject"||n==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function Ct({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function Oa(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function bi(e,t,n=!1){const s=e.children,r=t.children;if(q(s)&&q(r))for(let o=0;o<s.length;o++){const i=s[o];let l=r[o];l.shapeFlag&1&&!l.dynamicChildren&&((l.patchFlag<=0||l.patchFlag===32)&&(l=r[o]=wt(r[o]),l.el=i.el),!n&&l.patchFlag!==-2&&bi(i,l)),l.type===gs&&(l.patchFlag!==-1?l.el=i.el:l.__elIndex=o+(e.type===Ae?1:0)),l.type===mt&&!l.el&&(l.el=i.el)}}function Ia(e){const t=e.slice(),n=[0];let s,r,o,i,l;const a=e.length;for(s=0;s<a;s++){const f=e[s];if(f!==0){if(r=n[n.length-1],e[r]<f){t[s]=r,n.push(s);continue}for(o=0,i=n.length-1;o<i;)l=o+i>>1,e[n[l]]<f?o=l+1:i=l;f<e[n[o]]&&(o>0&&(t[s]=n[o-1]),n[o]=s)}}for(o=n.length,i=n[o-1];o-- >0;)n[o]=i,i=t[i];return n}function xi(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:xi(t)}function Zn(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}function wi(e){if(e.placeholder)return e.placeholder;const t=e.component;return t?wi(t.subTree):null}const es=e=>e.__isSuspense;function Ma(e,t){t&&t.pendingBranch?q(e)?t.effects.push(...e):t.effects.push(e):Ul(e)}const Ae=Symbol.for("v-fgt"),gs=Symbol.for("v-txt"),mt=Symbol.for("v-cmt"),Un=Symbol.for("v-stc"),Sn=[];let $e=null;function $(e=!1){Sn.push($e=e?null:[])}function Da(){Sn.pop(),$e=Sn[Sn.length-1]||null}let Tn=1;function ts(e,t=!1){Tn+=e,e<0&&$e&&t&&($e.hasOnce=!0)}function Si(e){return e.dynamicChildren=Tn>0?$e||Kt:null,Da(),Tn>0&&$e&&$e.push(e),e}function W(e,t,n,s,r,o){return Si(v(e,t,n,s,r,o,!0))}function vn(e,t,n,s,r){return Si(pe(e,t,n,s,r,!0))}function Pn(e){return e?e.__v_isVNode===!0:!1}function Bt(e,t){return e.type===t.type&&e.key===t.key}const Ri=({key:e})=>e??null,Bn=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?me(e)||Te(e)||J(e)?{i:je,r:e,k:t,f:!!n}:e:null);function v(e,t=null,n=null,s=0,r=null,o=e===Ae?0:1,i=!1,l=!1){const a={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Ri(t),ref:t&&Bn(t),scopeId:Xo,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:o,patchFlag:s,dynamicProps:r,dynamicChildren:null,appContext:null,ctx:je};return l?(hr(a,n),o&128&&e.normalize(a)):n&&(a.shapeFlag|=me(n)?8:16),Tn>0&&!i&&$e&&(a.patchFlag>0||o&6)&&a.patchFlag!==32&&$e.push(a),a}const pe=ka;function ka(e,t=null,n=null,s=0,r=null,o=!1){if((!e||e===ii)&&(e=mt),Pn(e)){const l=Ft(e,t,!0);return n&&hr(l,n),Tn>0&&!o&&$e&&(l.shapeFlag&6?$e[$e.indexOf(e)]=l:$e.push(l)),l.patchFlag=-2,l}if(Wa(e)&&(e=e.__vccOpts),t){t=Na(t);let{class:l,style:a}=t;l&&!me(l)&&(t.class=Be(l)),ue(a)&&(cr(a)&&!q(a)&&(a=Pe({},a)),t.style=Mn(a))}const i=me(e)?1:es(e)?128:Gl(e)?64:ue(e)?4:J(e)?2:0;return v(e,t,n,s,r,i,o,!0)}function Na(e){return e?cr(e)||pi(e)?Pe({},e):e:null}function Ft(e,t,n=!1,s=!1){const{props:r,ref:o,patchFlag:i,children:l,transition:a}=e,f=t?Fa(r||{},t):r,c={__v_isVNode:!0,__v_skip:!0,type:e.type,props:f,key:f&&Ri(f),ref:t&&t.ref?n&&o?q(o)?o.concat(Bn(t)):[o,Bn(t)]:Bn(t):o,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:l,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Ae?i===-1?16:i|16:i,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:a,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Ft(e.ssContent),ssFallback:e.ssFallback&&Ft(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return a&&s&&ds(c,a.clone(c)),c}function Se(e=" ",t=0){return pe(gs,null,e,t)}function Ei(e,t){const n=pe(Un,null,e);return n.staticCount=t,n}function ae(e="",t=!1){return t?($(),vn(mt,null,e)):pe(mt,null,e)}function tt(e){return e==null||typeof e=="boolean"?pe(mt):q(e)?pe(Ae,null,e.slice()):Pn(e)?wt(e):pe(gs,null,String(e))}function wt(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Ft(e)}function hr(e,t){let n=0;const{shapeFlag:s}=e;if(t==null)t=null;else if(q(t))n=16;else if(typeof t=="object")if(s&65){const r=t.default;r&&(r._c&&(r._d=!1),hr(e,r()),r._c&&(r._d=!0));return}else{n=32;const r=t._;!r&&!pi(t)?t._ctx=je:r===3&&je&&(je.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else J(t)?(t={default:t,_ctx:je},n=32):(t=String(t),s&64?(n=16,t=[Se(t)]):n=8);e.children=t,e.shapeFlag|=n}function Fa(...e){const t={};for(let n=0;n<e.length;n++){const s=e[n];for(const r in s)if(r==="class")t.class!==s.class&&(t.class=Be([t.class,s.class]));else if(r==="style")t.style=Mn([t.style,s.style]);else if(rs(r)){const o=t[r],i=s[r];i&&o!==i&&!(q(o)&&o.includes(i))&&(t[r]=o?[].concat(o,i):i)}else r!==""&&(t[r]=s[r])}return t}function Ue(e,t,n,s=null){ot(e,t,7,[n,s])}const La=ui();let Va=0;function ja(e,t,n){const s=e.type,r=(t?t.appContext:e.appContext)||La,o={uid:Va++,vnode:e,type:s,parent:t,appContext:r,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new dl(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(r.provides),ids:t?t.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:mi(s,r),emitsOptions:fi(s,r),emit:null,emitted:null,propsDefaults:ce,inheritAttrs:s.inheritAttrs,ctx:ce,data:ce,props:ce,attrs:ce,slots:ce,refs:ce,setupState:ce,setupContext:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return o.ctx={_:o},o.root=t?t.root:o,o.emit=ma.bind(null,o),e.ce&&e.ce(o),o}let Ce=null;const Ai=()=>Ce||je;let ns,Bs;{const e=as(),t=(n,s)=>{let r;return(r=e[n])||(r=e[n]=[]),r.push(s),o=>{r.length>1?r.forEach(i=>i(o)):r[0](o)}};ns=t("__VUE_INSTANCE_SETTERS__",n=>Ce=n),Bs=t("__VUE_SSR_SETTERS__",n=>On=n)}const Nn=e=>{const t=Ce;return ns(e),e.scope.on(),()=>{e.scope.off(),ns(t)}},Fr=()=>{Ce&&Ce.scope.off(),ns(null)};function Ci(e){return e.vnode.shapeFlag&4}let On=!1;function $a(e,t=!1,n=!1){t&&Bs(t);const{props:s,children:r}=e.vnode,o=Ci(e);wa(e,s,o,t),Aa(e,r,n||t);const i=o?Ha(e,t):void 0;return t&&Bs(!1),i}function Ha(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,la);const{setup:s}=n;if(s){ht();const r=e.setupContext=s.length>1?Ba(e):null,o=Nn(e),i=Dn(s,e,0,[e.props,r]),l=xo(i);if(pt(),o(),(l||e.sp)&&!kt(e)&&ei(e),l){if(i.then(Fr,Fr),t)return i.then(a=>{Lr(e,a)}).catch(a=>{fs(a,e,0)});e.asyncDep=i}else Lr(e,i)}else Ti(e)}function Lr(e,t,n){J(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:ue(t)&&(e.setupState=Ko(t)),Ti(e)}function Ti(e,t,n){const s=e.type;e.render||(e.render=s.render||nt);{const r=Nn(e);ht();try{aa(e)}finally{pt(),r()}}}const Ua={get(e,t){return Ee(e,"get",""),e[t]}};function Ba(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,Ua),slots:e.slots,emit:e.emit,expose:t}}function ms(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(Ko(Ml(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in wn)return wn[n](e)},has(t,n){return n in t||n in wn}})):e.proxy}function Ws(e,t=!0){return J(e)?e.displayName||e.name:e.name||t&&e.__name}function Wa(e){return J(e)&&"__vccOpts"in e}const ye=(e,t)=>Ll(e,t,On);function Pi(e,t,n){try{ts(-1);const s=arguments.length;return s===2?ue(t)&&!q(t)?Pn(t)?pe(e,null,[t]):pe(e,t):pe(e,null,t):(s>3?n=Array.prototype.slice.call(arguments,2):s===3&&Pn(n)&&(n=[n]),pe(e,t,n))}finally{ts(1)}}const Ka="3.5.26";/**
|
|
21
|
+
* @vue/runtime-dom v3.5.26
|
|
22
|
+
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
23
|
+
* @license MIT
|
|
24
|
+
**/let Ks;const Vr=typeof window<"u"&&window.trustedTypes;if(Vr)try{Ks=Vr.createPolicy("vue",{createHTML:e=>e})}catch{}const Oi=Ks?e=>Ks.createHTML(e):e=>e,qa="http://www.w3.org/2000/svg",Ga="http://www.w3.org/1998/Math/MathML",ct=typeof document<"u"?document:null,jr=ct&&ct.createElement("template"),za={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,s)=>{const r=t==="svg"?ct.createElementNS(qa,e):t==="mathml"?ct.createElementNS(Ga,e):n?ct.createElement(e,{is:n}):ct.createElement(e);return e==="select"&&s&&s.multiple!=null&&r.setAttribute("multiple",s.multiple),r},createText:e=>ct.createTextNode(e),createComment:e=>ct.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>ct.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,s,r,o){const i=n?n.previousSibling:t.lastChild;if(r&&(r===o||r.nextSibling))for(;t.insertBefore(r.cloneNode(!0),n),!(r===o||!(r=r.nextSibling)););else{jr.innerHTML=Oi(s==="svg"?`<svg>${e}</svg>`:s==="mathml"?`<math>${e}</math>`:e);const l=jr.content;if(s==="svg"||s==="mathml"){const a=l.firstChild;for(;a.firstChild;)l.appendChild(a.firstChild);l.removeChild(a)}t.insertBefore(l,n)}return[i?i.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},Ya=Symbol("_vtc");function Ja(e,t,n){const s=e[Ya];s&&(t=(t?[t,...s]:[...s]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const $r=Symbol("_vod"),Xa=Symbol("_vsh"),Qa=Symbol(""),Za=/(?:^|;)\s*display\s*:/;function ec(e,t,n){const s=e.style,r=me(n);let o=!1;if(n&&!r){if(t)if(me(t))for(const i of t.split(";")){const l=i.slice(0,i.indexOf(":")).trim();n[l]==null&&Wn(s,l,"")}else for(const i in t)n[i]==null&&Wn(s,i,"");for(const i in n)i==="display"&&(o=!0),Wn(s,i,n[i])}else if(r){if(t!==n){const i=s[Qa];i&&(n+=";"+i),s.cssText=n,o=Za.test(n)}}else t&&e.removeAttribute("style");$r in e&&(e[$r]=o?s.display:"",e[Xa]&&(s.display="none"))}const Hr=/\s*!important$/;function Wn(e,t,n){if(q(n))n.forEach(s=>Wn(e,t,s));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const s=tc(e,t);Hr.test(n)?e.setProperty(Lt(s),n.replace(Hr,""),"important"):e[s]=n}}const Ur=["Webkit","Moz","ms"],Cs={};function tc(e,t){const n=Cs[t];if(n)return n;let s=Ke(t);if(s!=="filter"&&s in e)return Cs[t]=s;s=ls(s);for(let r=0;r<Ur.length;r++){const o=Ur[r]+s;if(o in e)return Cs[t]=o}return t}const Br="http://www.w3.org/1999/xlink";function Wr(e,t,n,s,r,o=ul(t)){s&&t.startsWith("xlink:")?n==null?e.removeAttributeNS(Br,t.slice(6,t.length)):e.setAttributeNS(Br,t,n):n==null||o&&!Eo(n)?e.removeAttribute(t):e.setAttribute(t,o?"":rt(n)?String(n):n)}function Kr(e,t,n,s,r){if(t==="innerHTML"||t==="textContent"){n!=null&&(e[t]=t==="innerHTML"?Oi(n):n);return}const o=e.tagName;if(t==="value"&&o!=="PROGRESS"&&!o.includes("-")){const l=o==="OPTION"?e.getAttribute("value")||"":e.value,a=n==null?e.type==="checkbox"?"on":"":String(n);(l!==a||!("_value"in e))&&(e.value=a),n==null&&e.removeAttribute(t),e._value=n;return}let i=!1;if(n===""||n==null){const l=typeof e[t];l==="boolean"?n=Eo(n):n==null&&l==="string"?(n="",i=!0):l==="number"&&(n=0,i=!0)}try{e[t]=n}catch{}i&&e.removeAttribute(r||t)}function Ot(e,t,n,s){e.addEventListener(t,n,s)}function nc(e,t,n,s){e.removeEventListener(t,n,s)}const qr=Symbol("_vei");function sc(e,t,n,s,r=null){const o=e[qr]||(e[qr]={}),i=o[t];if(s&&i)i.value=s;else{const[l,a]=rc(t);if(s){const f=o[t]=lc(s,r);Ot(e,l,f,a)}else i&&(nc(e,l,i,a),o[t]=void 0)}}const Gr=/(?:Once|Passive|Capture)$/;function rc(e){let t;if(Gr.test(e)){t={};let s;for(;s=e.match(Gr);)e=e.slice(0,e.length-s[0].length),t[s[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):Lt(e.slice(2)),t]}let Ts=0;const oc=Promise.resolve(),ic=()=>Ts||(oc.then(()=>Ts=0),Ts=Date.now());function lc(e,t){const n=s=>{if(!s._vts)s._vts=Date.now();else if(s._vts<=n.attached)return;ot(ac(s,n.value),t,5,[s])};return n.value=e,n.attached=ic(),n}function ac(e,t){if(q(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(s=>r=>!r._stopped&&s&&s(r))}else return t}const zr=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,cc=(e,t,n,s,r,o)=>{const i=r==="svg";t==="class"?Ja(e,s,i):t==="style"?ec(e,n,s):rs(t)?Zs(t)||sc(e,t,n,s,o):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):uc(e,t,s,i))?(Kr(e,t,s),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&Wr(e,t,s,i,o,t!=="value")):e._isVueCE&&(/[A-Z]/.test(t)||!me(s))?Kr(e,Ke(t),s,o,t):(t==="true-value"?e._trueValue=s:t==="false-value"&&(e._falseValue=s),Wr(e,t,s,i))};function uc(e,t,n,s){if(s)return!!(t==="innerHTML"||t==="textContent"||t in e&&zr(t)&&J(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="autocorrect"||t==="sandbox"&&e.tagName==="IFRAME"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const r=e.tagName;if(r==="IMG"||r==="VIDEO"||r==="CANVAS"||r==="SOURCE")return!1}return zr(t)&&me(n)?!1:t in e}const ss=e=>{const t=e.props["onUpdate:modelValue"]||!1;return q(t)?n=>Gt(t,n):t};function fc(e){e.target.composing=!0}function Yr(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Xt=Symbol("_assign");function Jr(e,t,n){return t&&(e=e.trim()),n&&(e=nr(e)),e}const qs={created(e,{modifiers:{lazy:t,trim:n,number:s}},r){e[Xt]=ss(r);const o=s||r.props&&r.props.type==="number";Ot(e,t?"change":"input",i=>{i.target.composing||e[Xt](Jr(e.value,n,o))}),(n||o)&&Ot(e,"change",()=>{e.value=Jr(e.value,n,o)}),t||(Ot(e,"compositionstart",fc),Ot(e,"compositionend",Yr),Ot(e,"change",Yr))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:s,trim:r,number:o}},i){if(e[Xt]=ss(i),e.composing)return;const l=(o||e.type==="number")&&!/^0\d/.test(e.value)?nr(e.value):e.value,a=t??"";l!==a&&(document.activeElement===e&&e.type!=="range"&&(s&&t===n||r&&e.value.trim()===a)||(e.value=a))}},Xr={deep:!0,created(e,t,n){e[Xt]=ss(n),Ot(e,"change",()=>{const s=e._modelValue,r=dc(e),o=e.checked,i=e[Xt];if(q(s)){const l=Ao(s,r),a=l!==-1;if(o&&!a)i(s.concat(r));else if(!o&&a){const f=[...s];f.splice(l,1),i(f)}}else if(os(s)){const l=new Set(s);o?l.add(r):l.delete(r),i(l)}else i(Ii(e,o))})},mounted:Qr,beforeUpdate(e,t,n){e[Xt]=ss(n),Qr(e,t,n)}};function Qr(e,{value:t,oldValue:n},s){e._modelValue=t;let r;if(q(t))r=Ao(t,s.props.value)>-1;else if(os(t))r=t.has(s.props.value);else{if(t===n)return;r=cs(t,Ii(e,!0))}e.checked!==r&&(e.checked=r)}function dc(e){return"_value"in e?e._value:e.value}function Ii(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const hc=["ctrl","shift","alt","meta"],pc={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>hc.some(n=>e[`${n}Key`]&&!t.includes(n))},Mi=(e,t)=>{const n=e._withMods||(e._withMods={}),s=t.join(".");return n[s]||(n[s]=(r,...o)=>{for(let i=0;i<t.length;i++){const l=pc[t[i]];if(l&&l(r,t))return}return e(r,...o)})},gc=Pe({patchProp:cc},za);let Zr;function mc(){return Zr||(Zr=Ta(gc))}const vc=(...e)=>{const t=mc().createApp(...e),{mount:n}=t;return t.mount=s=>{const r=_c(s);if(!r)return;const o=t._component;!J(o)&&!o.render&&!o.template&&(o.template=r.innerHTML),r.nodeType===1&&(r.textContent="");const i=n(r,!1,yc(r));return r instanceof Element&&(r.removeAttribute("v-cloak"),r.setAttribute("data-v-app","")),i},t};function yc(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function _c(e){return me(e)?document.querySelector(e):e}/*!
|
|
25
|
+
* vue-router v4.6.4
|
|
26
|
+
* (c) 2025 Eduardo San Martin Morote
|
|
27
|
+
* @license MIT
|
|
28
|
+
*/const Wt=typeof document<"u";function Di(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function bc(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&Di(e.default)}const se=Object.assign;function Ps(e,t){const n={};for(const s in t){const r=t[s];n[s]=Ye(r)?r.map(e):e(r)}return n}const Rn=()=>{},Ye=Array.isArray;function eo(e,t){const n={};for(const s in e)n[s]=s in t?t[s]:e[s];return n}const ki=/#/g,xc=/&/g,wc=/\//g,Sc=/=/g,Rc=/\?/g,Ni=/\+/g,Ec=/%5B/g,Ac=/%5D/g,Fi=/%5E/g,Cc=/%60/g,Li=/%7B/g,Tc=/%7C/g,Vi=/%7D/g,Pc=/%20/g;function pr(e){return e==null?"":encodeURI(""+e).replace(Tc,"|").replace(Ec,"[").replace(Ac,"]")}function Oc(e){return pr(e).replace(Li,"{").replace(Vi,"}").replace(Fi,"^")}function Gs(e){return pr(e).replace(Ni,"%2B").replace(Pc,"+").replace(ki,"%23").replace(xc,"%26").replace(Cc,"`").replace(Li,"{").replace(Vi,"}").replace(Fi,"^")}function Ic(e){return Gs(e).replace(Sc,"%3D")}function Mc(e){return pr(e).replace(ki,"%23").replace(Rc,"%3F")}function Dc(e){return Mc(e).replace(wc,"%2F")}function In(e){if(e==null)return null;try{return decodeURIComponent(""+e)}catch{}return""+e}const kc=/\/$/,Nc=e=>e.replace(kc,"");function Os(e,t,n="/"){let s,r={},o="",i="";const l=t.indexOf("#");let a=t.indexOf("?");return a=l>=0&&a>l?-1:a,a>=0&&(s=t.slice(0,a),o=t.slice(a,l>0?l:t.length),r=e(o.slice(1))),l>=0&&(s=s||t.slice(0,l),i=t.slice(l,t.length)),s=jc(s??t,n),{fullPath:s+o+i,path:s,query:r,hash:In(i)}}function Fc(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function to(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function Lc(e,t,n){const s=t.matched.length-1,r=n.matched.length-1;return s>-1&&s===r&&nn(t.matched[s],n.matched[r])&&ji(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function nn(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function ji(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var n in e)if(!Vc(e[n],t[n]))return!1;return!0}function Vc(e,t){return Ye(e)?no(e,t):Ye(t)?no(t,e):(e==null?void 0:e.valueOf())===(t==null?void 0:t.valueOf())}function no(e,t){return Ye(t)?e.length===t.length&&e.every((n,s)=>n===t[s]):e.length===1&&e[0]===t}function jc(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),s=e.split("/"),r=s[s.length-1];(r===".."||r===".")&&s.push("");let o=n.length-1,i,l;for(i=0;i<s.length;i++)if(l=s[i],l!==".")if(l==="..")o>1&&o--;else break;return n.slice(0,o).join("/")+"/"+s.slice(i).join("/")}const _t={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};let zs=function(e){return e.pop="pop",e.push="push",e}({}),Is=function(e){return e.back="back",e.forward="forward",e.unknown="",e}({});function $c(e){if(!e)if(Wt){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),Nc(e)}const Hc=/^[^#]+#/;function Uc(e,t){return e.replace(Hc,"#")+t}function Bc(e,t){const n=document.documentElement.getBoundingClientRect(),s=e.getBoundingClientRect();return{behavior:t.behavior,left:s.left-n.left-(t.left||0),top:s.top-n.top-(t.top||0)}}const vs=()=>({left:window.scrollX,top:window.scrollY});function Wc(e){let t;if("el"in e){const n=e.el,s=typeof n=="string"&&n.startsWith("#"),r=typeof n=="string"?s?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!r)return;t=Bc(r,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.scrollX,t.top!=null?t.top:window.scrollY)}function so(e,t){return(history.state?history.state.position-t:-1)+e}const Ys=new Map;function Kc(e,t){Ys.set(e,t)}function qc(e){const t=Ys.get(e);return Ys.delete(e),t}function Gc(e){return typeof e=="string"||e&&typeof e=="object"}function $i(e){return typeof e=="string"||typeof e=="symbol"}let ge=function(e){return e[e.MATCHER_NOT_FOUND=1]="MATCHER_NOT_FOUND",e[e.NAVIGATION_GUARD_REDIRECT=2]="NAVIGATION_GUARD_REDIRECT",e[e.NAVIGATION_ABORTED=4]="NAVIGATION_ABORTED",e[e.NAVIGATION_CANCELLED=8]="NAVIGATION_CANCELLED",e[e.NAVIGATION_DUPLICATED=16]="NAVIGATION_DUPLICATED",e}({});const Hi=Symbol("");ge.MATCHER_NOT_FOUND+"",ge.NAVIGATION_GUARD_REDIRECT+"",ge.NAVIGATION_ABORTED+"",ge.NAVIGATION_CANCELLED+"",ge.NAVIGATION_DUPLICATED+"";function sn(e,t){return se(new Error,{type:e,[Hi]:!0},t)}function at(e,t){return e instanceof Error&&Hi in e&&(t==null||!!(e.type&t))}const zc=["params","query","hash"];function Yc(e){if(typeof e=="string")return e;if(e.path!=null)return e.path;const t={};for(const n of zc)n in e&&(t[n]=e[n]);return JSON.stringify(t,null,2)}function Jc(e){const t={};if(e===""||e==="?")return t;const n=(e[0]==="?"?e.slice(1):e).split("&");for(let s=0;s<n.length;++s){const r=n[s].replace(Ni," "),o=r.indexOf("="),i=In(o<0?r:r.slice(0,o)),l=o<0?null:In(r.slice(o+1));if(i in t){let a=t[i];Ye(a)||(a=t[i]=[a]),a.push(l)}else t[i]=l}return t}function ro(e){let t="";for(let n in e){const s=e[n];if(n=Ic(n),s==null){s!==void 0&&(t+=(t.length?"&":"")+n);continue}(Ye(s)?s.map(r=>r&&Gs(r)):[s&&Gs(s)]).forEach(r=>{r!==void 0&&(t+=(t.length?"&":"")+n,r!=null&&(t+="="+r))})}return t}function Xc(e){const t={};for(const n in e){const s=e[n];s!==void 0&&(t[n]=Ye(s)?s.map(r=>r==null?null:""+r):s==null?s:""+s)}return t}const Qc=Symbol(""),oo=Symbol(""),ys=Symbol(""),gr=Symbol(""),Js=Symbol("");function un(){let e=[];function t(s){return e.push(s),()=>{const r=e.indexOf(s);r>-1&&e.splice(r,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function St(e,t,n,s,r,o=i=>i()){const i=s&&(s.enterCallbacks[r]=s.enterCallbacks[r]||[]);return()=>new Promise((l,a)=>{const f=p=>{p===!1?a(sn(ge.NAVIGATION_ABORTED,{from:n,to:t})):p instanceof Error?a(p):Gc(p)?a(sn(ge.NAVIGATION_GUARD_REDIRECT,{from:t,to:p})):(i&&s.enterCallbacks[r]===i&&typeof p=="function"&&i.push(p),l())},c=o(()=>e.call(s&&s.instances[r],t,n,f));let d=Promise.resolve(c);e.length<3&&(d=d.then(f)),d.catch(p=>a(p))})}function Ms(e,t,n,s,r=o=>o()){const o=[];for(const i of e)for(const l in i.components){let a=i.components[l];if(!(t!=="beforeRouteEnter"&&!i.instances[l]))if(Di(a)){const f=(a.__vccOpts||a)[t];f&&o.push(St(f,n,s,i,l,r))}else{let f=a();o.push(()=>f.then(c=>{if(!c)throw new Error(`Couldn't resolve component "${l}" at "${i.path}"`);const d=bc(c)?c.default:c;i.mods[l]=c,i.components[l]=d;const p=(d.__vccOpts||d)[t];return p&&St(p,n,s,i,l,r)()}))}}return o}function Zc(e,t){const n=[],s=[],r=[],o=Math.max(t.matched.length,e.matched.length);for(let i=0;i<o;i++){const l=t.matched[i];l&&(e.matched.find(f=>nn(f,l))?s.push(l):n.push(l));const a=e.matched[i];a&&(t.matched.find(f=>nn(f,a))||r.push(a))}return[n,s,r]}/*!
|
|
29
|
+
* vue-router v4.6.4
|
|
30
|
+
* (c) 2025 Eduardo San Martin Morote
|
|
31
|
+
* @license MIT
|
|
32
|
+
*/let eu=()=>location.protocol+"//"+location.host;function Ui(e,t){const{pathname:n,search:s,hash:r}=t,o=e.indexOf("#");if(o>-1){let i=r.includes(e.slice(o))?e.slice(o).length:1,l=r.slice(i);return l[0]!=="/"&&(l="/"+l),to(l,"")}return to(n,e)+s+r}function tu(e,t,n,s){let r=[],o=[],i=null;const l=({state:p})=>{const g=Ui(e,location),y=n.value,C=t.value;let L=0;if(p){if(n.value=g,t.value=p,i&&i===y){i=null;return}L=C?p.position-C.position:0}else s(g);r.forEach(P=>{P(n.value,y,{delta:L,type:zs.pop,direction:L?L>0?Is.forward:Is.back:Is.unknown})})};function a(){i=n.value}function f(p){r.push(p);const g=()=>{const y=r.indexOf(p);y>-1&&r.splice(y,1)};return o.push(g),g}function c(){if(document.visibilityState==="hidden"){const{history:p}=window;if(!p.state)return;p.replaceState(se({},p.state,{scroll:vs()}),"")}}function d(){for(const p of o)p();o=[],window.removeEventListener("popstate",l),window.removeEventListener("pagehide",c),document.removeEventListener("visibilitychange",c)}return window.addEventListener("popstate",l),window.addEventListener("pagehide",c),document.addEventListener("visibilitychange",c),{pauseListeners:a,listen:f,destroy:d}}function io(e,t,n,s=!1,r=!1){return{back:e,current:t,forward:n,replaced:s,position:window.history.length,scroll:r?vs():null}}function nu(e){const{history:t,location:n}=window,s={value:Ui(e,n)},r={value:t.state};r.value||o(s.value,{back:null,current:s.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function o(a,f,c){const d=e.indexOf("#"),p=d>-1?(n.host&&document.querySelector("base")?e:e.slice(d))+a:eu()+e+a;try{t[c?"replaceState":"pushState"](f,"",p),r.value=f}catch(g){console.error(g),n[c?"replace":"assign"](p)}}function i(a,f){o(a,se({},t.state,io(r.value.back,a,r.value.forward,!0),f,{position:r.value.position}),!0),s.value=a}function l(a,f){const c=se({},r.value,t.state,{forward:a,scroll:vs()});o(c.current,c,!0),o(a,se({},io(s.value,a,null),{position:c.position+1},f),!1),s.value=a}return{location:s,state:r,push:l,replace:i}}function su(e){e=$c(e);const t=nu(e),n=tu(e,t.state,t.location,t.replace);function s(o,i=!0){i||n.pauseListeners(),history.go(o)}const r=se({location:"",base:e,go:s,createHref:Uc.bind(null,e)},t,n);return Object.defineProperty(r,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(r,"state",{enumerable:!0,get:()=>t.state.value}),r}function ru(e){return e=location.host?e||location.pathname+location.search:"",e.includes("#")||(e+="#"),su(e)}let It=function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.Group=2]="Group",e}({});var _e=function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.ParamRegExp=2]="ParamRegExp",e[e.ParamRegExpEnd=3]="ParamRegExpEnd",e[e.EscapeNext=4]="EscapeNext",e}(_e||{});const ou={type:It.Static,value:""},iu=/[a-zA-Z0-9_]/;function lu(e){if(!e)return[[]];if(e==="/")return[[ou]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(g){throw new Error(`ERR (${n})/"${f}": ${g}`)}let n=_e.Static,s=n;const r=[];let o;function i(){o&&r.push(o),o=[]}let l=0,a,f="",c="";function d(){f&&(n===_e.Static?o.push({type:It.Static,value:f}):n===_e.Param||n===_e.ParamRegExp||n===_e.ParamRegExpEnd?(o.length>1&&(a==="*"||a==="+")&&t(`A repeatable param (${f}) must be alone in its segment. eg: '/:ids+.`),o.push({type:It.Param,value:f,regexp:c,repeatable:a==="*"||a==="+",optional:a==="*"||a==="?"})):t("Invalid state to consume buffer"),f="")}function p(){f+=a}for(;l<e.length;){if(a=e[l++],a==="\\"&&n!==_e.ParamRegExp){s=n,n=_e.EscapeNext;continue}switch(n){case _e.Static:a==="/"?(f&&d(),i()):a===":"?(d(),n=_e.Param):p();break;case _e.EscapeNext:p(),n=s;break;case _e.Param:a==="("?n=_e.ParamRegExp:iu.test(a)?p():(d(),n=_e.Static,a!=="*"&&a!=="?"&&a!=="+"&&l--);break;case _e.ParamRegExp:a===")"?c[c.length-1]=="\\"?c=c.slice(0,-1)+a:n=_e.ParamRegExpEnd:c+=a;break;case _e.ParamRegExpEnd:d(),n=_e.Static,a!=="*"&&a!=="?"&&a!=="+"&&l--,c="";break;default:t("Unknown state");break}}return n===_e.ParamRegExp&&t(`Unfinished custom RegExp for param "${f}"`),d(),i(),r}const lo="[^/]+?",au={sensitive:!1,strict:!1,start:!0,end:!0};var Ie=function(e){return e[e._multiplier=10]="_multiplier",e[e.Root=90]="Root",e[e.Segment=40]="Segment",e[e.SubSegment=30]="SubSegment",e[e.Static=40]="Static",e[e.Dynamic=20]="Dynamic",e[e.BonusCustomRegExp=10]="BonusCustomRegExp",e[e.BonusWildcard=-50]="BonusWildcard",e[e.BonusRepeatable=-20]="BonusRepeatable",e[e.BonusOptional=-8]="BonusOptional",e[e.BonusStrict=.7000000000000001]="BonusStrict",e[e.BonusCaseSensitive=.25]="BonusCaseSensitive",e}(Ie||{});const cu=/[.+*?^${}()[\]/\\]/g;function uu(e,t){const n=se({},au,t),s=[];let r=n.start?"^":"";const o=[];for(const f of e){const c=f.length?[]:[Ie.Root];n.strict&&!f.length&&(r+="/");for(let d=0;d<f.length;d++){const p=f[d];let g=Ie.Segment+(n.sensitive?Ie.BonusCaseSensitive:0);if(p.type===It.Static)d||(r+="/"),r+=p.value.replace(cu,"\\$&"),g+=Ie.Static;else if(p.type===It.Param){const{value:y,repeatable:C,optional:L,regexp:P}=p;o.push({name:y,repeatable:C,optional:L});const x=P||lo;if(x!==lo){g+=Ie.BonusCustomRegExp;try{`${x}`}catch(E){throw new Error(`Invalid custom RegExp for param "${y}" (${x}): `+E.message)}}let S=C?`((?:${x})(?:/(?:${x}))*)`:`(${x})`;d||(S=L&&f.length<2?`(?:/${S})`:"/"+S),L&&(S+="?"),r+=S,g+=Ie.Dynamic,L&&(g+=Ie.BonusOptional),C&&(g+=Ie.BonusRepeatable),x===".*"&&(g+=Ie.BonusWildcard)}c.push(g)}s.push(c)}if(n.strict&&n.end){const f=s.length-1;s[f][s[f].length-1]+=Ie.BonusStrict}n.strict||(r+="/?"),n.end?r+="$":n.strict&&!r.endsWith("/")&&(r+="(?:/|$)");const i=new RegExp(r,n.sensitive?"":"i");function l(f){const c=f.match(i),d={};if(!c)return null;for(let p=1;p<c.length;p++){const g=c[p]||"",y=o[p-1];d[y.name]=g&&y.repeatable?g.split("/"):g}return d}function a(f){let c="",d=!1;for(const p of e){(!d||!c.endsWith("/"))&&(c+="/"),d=!1;for(const g of p)if(g.type===It.Static)c+=g.value;else if(g.type===It.Param){const{value:y,repeatable:C,optional:L}=g,P=y in f?f[y]:"";if(Ye(P)&&!C)throw new Error(`Provided param "${y}" is an array but it is not repeatable (* or + modifiers)`);const x=Ye(P)?P.join("/"):P;if(!x)if(L)p.length<2&&(c.endsWith("/")?c=c.slice(0,-1):d=!0);else throw new Error(`Missing required param "${y}"`);c+=x}}return c||"/"}return{re:i,score:s,keys:o,parse:l,stringify:a}}function fu(e,t){let n=0;for(;n<e.length&&n<t.length;){const s=t[n]-e[n];if(s)return s;n++}return e.length<t.length?e.length===1&&e[0]===Ie.Static+Ie.Segment?-1:1:e.length>t.length?t.length===1&&t[0]===Ie.Static+Ie.Segment?1:-1:0}function Bi(e,t){let n=0;const s=e.score,r=t.score;for(;n<s.length&&n<r.length;){const o=fu(s[n],r[n]);if(o)return o;n++}if(Math.abs(r.length-s.length)===1){if(ao(s))return 1;if(ao(r))return-1}return r.length-s.length}function ao(e){const t=e[e.length-1];return e.length>0&&t[t.length-1]<0}const du={strict:!1,end:!0,sensitive:!1};function hu(e,t,n){const s=uu(lu(e.path),n),r=se(s,{record:e,parent:t,children:[],alias:[]});return t&&!r.record.aliasOf==!t.record.aliasOf&&t.children.push(r),r}function pu(e,t){const n=[],s=new Map;t=eo(du,t);function r(d){return s.get(d)}function o(d,p,g){const y=!g,C=uo(d);C.aliasOf=g&&g.record;const L=eo(t,d),P=[C];if("alias"in d){const E=typeof d.alias=="string"?[d.alias]:d.alias;for(const Y of E)P.push(uo(se({},C,{components:g?g.record.components:C.components,path:Y,aliasOf:g?g.record:C})))}let x,S;for(const E of P){const{path:Y}=E;if(p&&Y[0]!=="/"){const H=p.record.path,V=H[H.length-1]==="/"?"":"/";E.path=p.record.path+(Y&&V+Y)}if(x=hu(E,p,L),g?g.alias.push(x):(S=S||x,S!==x&&S.alias.push(x),y&&d.name&&!fo(x)&&i(d.name)),Wi(x)&&a(x),C.children){const H=C.children;for(let V=0;V<H.length;V++)o(H[V],x,g&&g.children[V])}g=g||x}return S?()=>{i(S)}:Rn}function i(d){if($i(d)){const p=s.get(d);p&&(s.delete(d),n.splice(n.indexOf(p),1),p.children.forEach(i),p.alias.forEach(i))}else{const p=n.indexOf(d);p>-1&&(n.splice(p,1),d.record.name&&s.delete(d.record.name),d.children.forEach(i),d.alias.forEach(i))}}function l(){return n}function a(d){const p=vu(d,n);n.splice(p,0,d),d.record.name&&!fo(d)&&s.set(d.record.name,d)}function f(d,p){let g,y={},C,L;if("name"in d&&d.name){if(g=s.get(d.name),!g)throw sn(ge.MATCHER_NOT_FOUND,{location:d});L=g.record.name,y=se(co(p.params,g.keys.filter(S=>!S.optional).concat(g.parent?g.parent.keys.filter(S=>S.optional):[]).map(S=>S.name)),d.params&&co(d.params,g.keys.map(S=>S.name))),C=g.stringify(y)}else if(d.path!=null)C=d.path,g=n.find(S=>S.re.test(C)),g&&(y=g.parse(C),L=g.record.name);else{if(g=p.name?s.get(p.name):n.find(S=>S.re.test(p.path)),!g)throw sn(ge.MATCHER_NOT_FOUND,{location:d,currentLocation:p});L=g.record.name,y=se({},p.params,d.params),C=g.stringify(y)}const P=[];let x=g;for(;x;)P.unshift(x.record),x=x.parent;return{name:L,path:C,params:y,matched:P,meta:mu(P)}}e.forEach(d=>o(d));function c(){n.length=0,s.clear()}return{addRoute:o,resolve:f,removeRoute:i,clearRoutes:c,getRoutes:l,getRecordMatcher:r}}function co(e,t){const n={};for(const s of t)s in e&&(n[s]=e[s]);return n}function uo(e){const t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:gu(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}};return Object.defineProperty(t,"mods",{value:{}}),t}function gu(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const s in e.components)t[s]=typeof n=="object"?n[s]:n;return t}function fo(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function mu(e){return e.reduce((t,n)=>se(t,n.meta),{})}function vu(e,t){let n=0,s=t.length;for(;n!==s;){const o=n+s>>1;Bi(e,t[o])<0?s=o:n=o+1}const r=yu(e);return r&&(s=t.lastIndexOf(r,s-1)),s}function yu(e){let t=e;for(;t=t.parent;)if(Wi(t)&&Bi(e,t)===0)return t}function Wi({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function ho(e){const t=Ge(ys),n=Ge(gr),s=ye(()=>{const a=X(e.to);return t.resolve(a)}),r=ye(()=>{const{matched:a}=s.value,{length:f}=a,c=a[f-1],d=n.matched;if(!c||!d.length)return-1;const p=d.findIndex(nn.bind(null,c));if(p>-1)return p;const g=po(a[f-2]);return f>1&&po(c)===g&&d[d.length-1].path!==g?d.findIndex(nn.bind(null,a[f-2])):p}),o=ye(()=>r.value>-1&&Su(n.params,s.value.params)),i=ye(()=>r.value>-1&&r.value===n.matched.length-1&&ji(n.params,s.value.params));function l(a={}){if(wu(a)){const f=t[X(e.replace)?"replace":"push"](X(e.to)).catch(Rn);return e.viewTransition&&typeof document<"u"&&"startViewTransition"in document&&document.startViewTransition(()=>f),f}return Promise.resolve()}return{route:s,href:ye(()=>s.value.href),isActive:o,isExactActive:i,navigate:l}}function _u(e){return e.length===1?e[0]:e}const bu=on({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"},viewTransition:Boolean},useLink:ho,setup(e,{slots:t}){const n=en(ho(e)),{options:s}=Ge(ys),r=ye(()=>({[go(e.activeClass,s.linkActiveClass,"router-link-active")]:n.isActive,[go(e.exactActiveClass,s.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const o=t.default&&_u(t.default(n));return e.custom?o:Pi("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:r.value},o)}}}),xu=bu;function wu(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function Su(e,t){for(const n in t){const s=t[n],r=e[n];if(typeof s=="string"){if(s!==r)return!1}else if(!Ye(r)||r.length!==s.length||s.some((o,i)=>o.valueOf()!==r[i].valueOf()))return!1}return!0}function po(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const go=(e,t,n)=>e??t??n,Ru=on({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const s=Ge(Js),r=ye(()=>e.route||s.value),o=Ge(oo,0),i=ye(()=>{let f=X(o);const{matched:c}=r.value;let d;for(;(d=c[f])&&!d.components;)f++;return f}),l=ye(()=>r.value.matched[i.value]);Hn(oo,ye(()=>i.value+1)),Hn(Qc,l),Hn(Js,r);const a=he();return st(()=>[a.value,l.value,e.name],([f,c,d],[p,g,y])=>{c&&(c.instances[d]=f,g&&g!==c&&f&&f===p&&(c.leaveGuards.size||(c.leaveGuards=g.leaveGuards),c.updateGuards.size||(c.updateGuards=g.updateGuards))),f&&c&&(!g||!nn(c,g)||!p)&&(c.enterCallbacks[d]||[]).forEach(C=>C(f))},{flush:"post"}),()=>{const f=r.value,c=e.name,d=l.value,p=d&&d.components[c];if(!p)return mo(n.default,{Component:p,route:f});const g=d.props[c],y=g?g===!0?f.params:typeof g=="function"?g(f):g:null,L=Pi(p,se({},y,t,{onVnodeUnmounted:P=>{P.component.isUnmounted&&(d.instances[c]=null)},ref:a}));return mo(n.default,{Component:L,route:f})||L}}});function mo(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const Eu=Ru;function Au(e){const t=pu(e.routes,e),n=e.parseQuery||Jc,s=e.stringifyQuery||ro,r=e.history,o=un(),i=un(),l=un(),a=Dl(_t);let f=_t;Wt&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const c=Ps.bind(null,w=>""+w),d=Ps.bind(null,Dc),p=Ps.bind(null,In);function g(w,F){let D,U;return $i(w)?(D=t.getRecordMatcher(w),U=F):U=w,t.addRoute(U,D)}function y(w){const F=t.getRecordMatcher(w);F&&t.removeRoute(F)}function C(){return t.getRoutes().map(w=>w.record)}function L(w){return!!t.getRecordMatcher(w)}function P(w,F){if(F=se({},F||a.value),typeof w=="string"){const m=Os(n,w,F.path),_=t.resolve({path:m.path},F),R=r.createHref(m.fullPath);return se(m,_,{params:p(_.params),hash:In(m.hash),redirectedFrom:void 0,href:R})}let D;if(w.path!=null)D=se({},w,{path:Os(n,w.path,F.path).path});else{const m=se({},w.params);for(const _ in m)m[_]==null&&delete m[_];D=se({},w,{params:d(m)}),F.params=d(F.params)}const U=t.resolve(D,F),ee=w.hash||"";U.params=c(p(U.params));const u=Fc(s,se({},w,{hash:Oc(ee),path:U.path})),h=r.createHref(u);return se({fullPath:u,hash:ee,query:s===ro?Xc(w.query):w.query||{}},U,{redirectedFrom:void 0,href:h})}function x(w){return typeof w=="string"?Os(n,w,a.value.path):se({},w)}function S(w,F){if(f!==w)return sn(ge.NAVIGATION_CANCELLED,{from:F,to:w})}function E(w){return V(w)}function Y(w){return E(se(x(w),{replace:!0}))}function H(w,F){const D=w.matched[w.matched.length-1];if(D&&D.redirect){const{redirect:U}=D;let ee=typeof U=="function"?U(w,F):U;return typeof ee=="string"&&(ee=ee.includes("?")||ee.includes("#")?ee=x(ee):{path:ee},ee.params={}),se({query:w.query,hash:w.hash,params:ee.path!=null?{}:w.params},ee)}}function V(w,F){const D=f=P(w),U=a.value,ee=w.state,u=w.force,h=w.replace===!0,m=H(D,U);if(m)return V(se(x(m),{state:typeof m=="object"?se({},ee,m.state):ee,force:u,replace:h}),F||D);const _=D;_.redirectedFrom=F;let R;return!u&&Lc(s,U,D)&&(R=sn(ge.NAVIGATION_DUPLICATED,{to:_,from:U}),Je(U,U,!0,!1)),(R?Promise.resolve(R):be(_,U)).catch(b=>at(b)?at(b,ge.NAVIGATION_GUARD_REDIRECT)?b:yt(b):ne(b,_,U)).then(b=>{if(b){if(at(b,ge.NAVIGATION_GUARD_REDIRECT))return V(se({replace:h},x(b.to),{state:typeof b.to=="object"?se({},ee,b.to.state):ee,force:u}),F||_)}else b=k(_,U,!0,h,ee);return G(_,U,b),b})}function j(w,F){const D=S(w,F);return D?Promise.reject(D):Promise.resolve()}function ve(w){const F=$t.values().next().value;return F&&typeof F.runWithContext=="function"?F.runWithContext(w):w()}function be(w,F){let D;const[U,ee,u]=Zc(w,F);D=Ms(U.reverse(),"beforeRouteLeave",w,F);for(const m of U)m.leaveGuards.forEach(_=>{D.push(St(_,w,F))});const h=j.bind(null,w,F);return D.push(h),He(D).then(()=>{D=[];for(const m of o.list())D.push(St(m,w,F));return D.push(h),He(D)}).then(()=>{D=Ms(ee,"beforeRouteUpdate",w,F);for(const m of ee)m.updateGuards.forEach(_=>{D.push(St(_,w,F))});return D.push(h),He(D)}).then(()=>{D=[];for(const m of u)if(m.beforeEnter)if(Ye(m.beforeEnter))for(const _ of m.beforeEnter)D.push(St(_,w,F));else D.push(St(m.beforeEnter,w,F));return D.push(h),He(D)}).then(()=>(w.matched.forEach(m=>m.enterCallbacks={}),D=Ms(u,"beforeRouteEnter",w,F,ve),D.push(h),He(D))).then(()=>{D=[];for(const m of i.list())D.push(St(m,w,F));return D.push(h),He(D)}).catch(m=>at(m,ge.NAVIGATION_CANCELLED)?m:Promise.reject(m))}function G(w,F,D){l.list().forEach(U=>ve(()=>U(w,F,D)))}function k(w,F,D,U,ee){const u=S(w,F);if(u)return u;const h=F===_t,m=Wt?history.state:{};D&&(U||h?r.replace(w.fullPath,se({scroll:h&&m&&m.scroll},ee)):r.push(w.fullPath,ee)),a.value=w,Je(w,F,D,h),yt()}let M;function De(){M||(M=r.listen((w,F,D)=>{if(!Et.listening)return;const U=P(w),ee=H(U,Et.currentRoute.value);if(ee){V(se(ee,{replace:!0,force:!0}),U).catch(Rn);return}f=U;const u=a.value;Wt&&Kc(so(u.fullPath,D.delta),vs()),be(U,u).catch(h=>at(h,ge.NAVIGATION_ABORTED|ge.NAVIGATION_CANCELLED)?h:at(h,ge.NAVIGATION_GUARD_REDIRECT)?(V(se(x(h.to),{force:!0}),U).then(m=>{at(m,ge.NAVIGATION_ABORTED|ge.NAVIGATION_DUPLICATED)&&!D.delta&&D.type===zs.pop&&r.go(-1,!1)}).catch(Rn),Promise.reject()):(D.delta&&r.go(-D.delta,!1),ne(h,U,u))).then(h=>{h=h||k(U,u,!1),h&&(D.delta&&!at(h,ge.NAVIGATION_CANCELLED)?r.go(-D.delta,!1):D.type===zs.pop&&at(h,ge.NAVIGATION_ABORTED|ge.NAVIGATION_DUPLICATED)&&r.go(-1,!1)),G(U,u,h)}).catch(Rn)}))}let Vt=un(),xe=un(),le;function ne(w,F,D){yt(w);const U=xe.list();return U.length?U.forEach(ee=>ee(w,F,D)):console.error(w),Promise.reject(w)}function it(){return le&&a.value!==_t?Promise.resolve():new Promise((w,F)=>{Vt.add([w,F])})}function yt(w){return le||(le=!w,De(),Vt.list().forEach(([F,D])=>w?D(w):F()),Vt.reset()),w}function Je(w,F,D,U){const{scrollBehavior:ee}=e;if(!Wt||!ee)return Promise.resolve();const u=!D&&qc(so(w.fullPath,0))||(U||!D)&&history.state&&history.state.scroll||null;return Go().then(()=>ee(w,F,u)).then(h=>h&&Wc(h)).catch(h=>ne(h,w,F))}const ke=w=>r.go(w);let jt;const $t=new Set,Et={currentRoute:a,listening:!0,addRoute:g,removeRoute:y,clearRoutes:t.clearRoutes,hasRoute:L,getRoutes:C,resolve:P,options:e,push:E,replace:Y,go:ke,back:()=>ke(-1),forward:()=>ke(1),beforeEach:o.add,beforeResolve:i.add,afterEach:l.add,onError:xe.add,isReady:it,install(w){w.component("RouterLink",xu),w.component("RouterView",Eu),w.config.globalProperties.$router=Et,Object.defineProperty(w.config.globalProperties,"$route",{enumerable:!0,get:()=>X(a)}),Wt&&!jt&&a.value===_t&&(jt=!0,E(r.location).catch(U=>{}));const F={};for(const U in _t)Object.defineProperty(F,U,{get:()=>a.value[U],enumerable:!0});w.provide(ys,Et),w.provide(gr,Bo(F)),w.provide(Js,a);const D=w.unmount;$t.add(w),w.unmount=function(){$t.delete(w),$t.size<1&&(f=_t,M&&M(),M=null,a.value=_t,jt=!1,le=!1),D()}}};function He(w){return w.reduce((F,D)=>F.then(()=>ve(D)),Promise.resolve())}return Et}function Ki(){return Ge(ys)}function mr(e){return Ge(gr)}const Cu="./api";async function fn(e,t={}){const n=await fetch(Cu+e,{...t,headers:{"Content-Type":"application/json",...t.headers}});if(!n.ok){const s=await n.text();throw new Error(`API Error ${n.status}: ${s}`)}return n.json()}const Qt={reactive:{list:e=>{const t=new URLSearchParams;return Object.entries(e).forEach(([n,s])=>{s!==void 0&&s!==""&&t.append(n,String(s))}),fn(`/reactive/list?${t.toString()}`)},retry:e=>fn("/reactive/retry",{method:"POST",body:JSON.stringify(e)})},cron:{list:e=>{const t=new URLSearchParams;return Object.entries(e).forEach(([n,s])=>{s!==void 0&&s!==""&&t.append(n,String(s))}),fn(`/cron/list?${t.toString()}`)},trigger:e=>fn("/cron/trigger",{method:"POST",body:JSON.stringify(e)})},info:()=>fn("/info")},qi="2",Xs="mongodash_prefs";function Tu(){try{const e=localStorage.getItem(Xs);if(!e)return null;const t=JSON.parse(e);return t.version!==qi?(localStorage.removeItem(Xs),null):t}catch{return null}}function vr(){const e={version:qi,autoRefreshSeconds:Q.autoRefresh.value?Q.intervalSeconds.value:0,timezone:Q.timezone.value,locale:Q.locale.value};localStorage.setItem(Xs,JSON.stringify(e))}const dt=Tu(),Kn=(dt==null?void 0:dt.autoRefreshSeconds)??0,Pu=(dt==null?void 0:dt.timezone)??"local",Ou=(dt==null?void 0:dt.locale)??"auto",Gi=he(Pu),Iu=he(Ou),Mu=ye(()=>Gi.value==="utc"?"UTC":"LT"),Q={trigger:he(0),autoRefresh:he(Kn>0),intervalSeconds:he(Kn>0?Kn:10),lastRefresh:he(new Date),databaseName:he(""),reactiveTasks:he([]),cronTasks:he([]),timezone:Gi,locale:Iu,timezoneSuffix:Mu};async function zi(){try{const e=await Qt.info();Q.databaseName.value=e.databaseName,Q.reactiveTasks.value=e.reactiveTasks||[],Q.cronTasks.value=e.cronTasks||[]}catch(e){console.error("Failed to fetch info",e)}}let qn=null;function Du(e){e===0?(Q.autoRefresh.value=!1,Ji()):(Q.autoRefresh.value=!0,Q.intervalSeconds.value=e,Q.lastRefresh.value=new Date,Yi()),vr()}function ku(e){Q.timezone.value=e,vr()}function Nu(e){Q.locale.value=e,vr()}function Zt(e){const t=new Date(e),n={year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",timeZone:Q.timezone.value==="utc"?"UTC":void 0},s=Q.locale.value==="auto"?void 0:Q.locale.value;let r=t.toLocaleString(s,n);return Q.locale.value==="cs-CZ"&&(r=r.replace(/\. /g,".")),r}function Yi(){Ji(),qn=setInterval(async()=>{await zi(),Q.trigger.value++,Q.lastRefresh.value=new Date},Q.intervalSeconds.value*1e3)}function Ji(){qn&&(clearInterval(qn),qn=null)}Kn>0&&Yi();function Re(e){const t=Object.prototype.toString.call(e);return e instanceof Date||typeof e=="object"&&t==="[object Date]"?new e.constructor(+e):typeof e=="number"||t==="[object Number]"||typeof e=="string"||t==="[object String]"?new Date(e):new Date(NaN)}function Fu(e,t){return e instanceof Date?new e.constructor(t):new Date(t)}const $n=43200,vo=1440;let Lu={};function Vu(){return Lu}function yo(e){const t=Re(e),n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),+e-+n}function Gn(e,t){const n=Re(e),s=Re(t),r=n.getTime()-s.getTime();return r<0?-1:r>0?1:r}function ju(e){return Fu(e,Date.now())}function $u(e,t){const n=Re(e),s=Re(t),r=n.getFullYear()-s.getFullYear(),o=n.getMonth()-s.getMonth();return r*12+o}function Hu(e){return t=>{const s=(e?Math[e]:Math.trunc)(t);return s===0?0:s}}function Uu(e,t){return+Re(e)-+Re(t)}function Bu(e){const t=Re(e);return t.setHours(23,59,59,999),t}function Wu(e){const t=Re(e),n=t.getMonth();return t.setFullYear(t.getFullYear(),n+1,0),t.setHours(23,59,59,999),t}function Ku(e){const t=Re(e);return+Bu(t)==+Wu(t)}function qu(e,t){const n=Re(e),s=Re(t),r=Gn(n,s),o=Math.abs($u(n,s));let i;if(o<1)i=0;else{n.getMonth()===1&&n.getDate()>27&&n.setDate(30),n.setMonth(n.getMonth()-r*o);let l=Gn(n,s)===-r;Ku(Re(e))&&o===1&&Gn(e,s)===1&&(l=!1),i=r*(o-Number(l))}return i===0?0:i}function Gu(e,t,n){const s=Uu(e,t)/1e3;return Hu(n==null?void 0:n.roundingMethod)(s)}const zu={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},Yu=(e,t,n)=>{let s;const r=zu[e];return typeof r=="string"?s=r:t===1?s=r.one:s=r.other.replace("{{count}}",t.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"in "+s:s+" ago":s};function Ds(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const Ju={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},Xu={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},Qu={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Zu={date:Ds({formats:Ju,defaultWidth:"full"}),time:Ds({formats:Xu,defaultWidth:"full"}),dateTime:Ds({formats:Qu,defaultWidth:"full"})},ef={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},tf=(e,t,n,s)=>ef[e];function dn(e){return(t,n)=>{const s=n!=null&&n.context?String(n.context):"standalone";let r;if(s==="formatting"&&e.formattingValues){const i=e.defaultFormattingWidth||e.defaultWidth,l=n!=null&&n.width?String(n.width):i;r=e.formattingValues[l]||e.formattingValues[i]}else{const i=e.defaultWidth,l=n!=null&&n.width?String(n.width):e.defaultWidth;r=e.values[l]||e.values[i]}const o=e.argumentCallback?e.argumentCallback(t):t;return r[o]}}const nf={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},sf={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},rf={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},of={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},lf={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},af={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},cf=(e,t)=>{const n=Number(e),s=n%100;if(s>20||s<10)switch(s%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},uf={ordinalNumber:cf,era:dn({values:nf,defaultWidth:"wide"}),quarter:dn({values:sf,defaultWidth:"wide",argumentCallback:e=>e-1}),month:dn({values:rf,defaultWidth:"wide"}),day:dn({values:of,defaultWidth:"wide"}),dayPeriod:dn({values:lf,defaultWidth:"wide",formattingValues:af,defaultFormattingWidth:"wide"})};function hn(e){return(t,n={})=>{const s=n.width,r=s&&e.matchPatterns[s]||e.matchPatterns[e.defaultMatchWidth],o=t.match(r);if(!o)return null;const i=o[0],l=s&&e.parsePatterns[s]||e.parsePatterns[e.defaultParseWidth],a=Array.isArray(l)?df(l,d=>d.test(i)):ff(l,d=>d.test(i));let f;f=e.valueCallback?e.valueCallback(a):a,f=n.valueCallback?n.valueCallback(f):f;const c=t.slice(i.length);return{value:f,rest:c}}}function ff(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function df(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n}function hf(e){return(t,n={})=>{const s=t.match(e.matchPattern);if(!s)return null;const r=s[0],o=t.match(e.parsePattern);if(!o)return null;let i=e.valueCallback?e.valueCallback(o[0]):o[0];i=n.valueCallback?n.valueCallback(i):i;const l=t.slice(r.length);return{value:i,rest:l}}}const pf=/^(\d+)(th|st|nd|rd)?/i,gf=/\d+/i,mf={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},vf={any:[/^b/i,/^(a|c)/i]},yf={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},_f={any:[/1/i,/2/i,/3/i,/4/i]},bf={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},xf={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},wf={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},Sf={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},Rf={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},Ef={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},Af={ordinalNumber:hf({matchPattern:pf,parsePattern:gf,valueCallback:e=>parseInt(e,10)}),era:hn({matchPatterns:mf,defaultMatchWidth:"wide",parsePatterns:vf,defaultParseWidth:"any"}),quarter:hn({matchPatterns:yf,defaultMatchWidth:"wide",parsePatterns:_f,defaultParseWidth:"any",valueCallback:e=>e+1}),month:hn({matchPatterns:bf,defaultMatchWidth:"wide",parsePatterns:xf,defaultParseWidth:"any"}),day:hn({matchPatterns:wf,defaultMatchWidth:"wide",parsePatterns:Sf,defaultParseWidth:"any"}),dayPeriod:hn({matchPatterns:Rf,defaultMatchWidth:"any",parsePatterns:Ef,defaultParseWidth:"any"})},Cf={code:"en-US",formatDistance:Yu,formatLong:Zu,formatRelative:tf,localize:uf,match:Af,options:{weekStartsOn:0,firstWeekContainsDate:1}};function Tf(e,t,n){const s=Vu(),r=(n==null?void 0:n.locale)??s.locale??Cf,o=2520,i=Gn(e,t);if(isNaN(i))throw new RangeError("Invalid time value");const l=Object.assign({},n,{addSuffix:n==null?void 0:n.addSuffix,comparison:i});let a,f;i>0?(a=Re(t),f=Re(e)):(a=Re(e),f=Re(t));const c=Gu(f,a),d=(yo(f)-yo(a))/1e3,p=Math.round((c-d)/60);let g;if(p<2)return n!=null&&n.includeSeconds?c<5?r.formatDistance("lessThanXSeconds",5,l):c<10?r.formatDistance("lessThanXSeconds",10,l):c<20?r.formatDistance("lessThanXSeconds",20,l):c<40?r.formatDistance("halfAMinute",0,l):c<60?r.formatDistance("lessThanXMinutes",1,l):r.formatDistance("xMinutes",1,l):p===0?r.formatDistance("lessThanXMinutes",1,l):r.formatDistance("xMinutes",p,l);if(p<45)return r.formatDistance("xMinutes",p,l);if(p<90)return r.formatDistance("aboutXHours",1,l);if(p<vo){const y=Math.round(p/60);return r.formatDistance("aboutXHours",y,l)}else{if(p<o)return r.formatDistance("xDays",1,l);if(p<$n){const y=Math.round(p/vo);return r.formatDistance("xDays",y,l)}else if(p<$n*2)return g=Math.round(p/$n),r.formatDistance("aboutXMonths",g,l)}if(g=qu(f,a),g<12){const y=Math.round(p/$n);return r.formatDistance("xMonths",y,l)}else{const y=g%12,C=Math.trunc(g/12);return y<3?r.formatDistance("aboutXYears",C,l):y<9?r.formatDistance("overXYears",C,l):r.formatDistance("almostXYears",C+1,l)}}function Pf(e,t){return Tf(e,ju(e),t)}const Nt=on({__name:"LiveTimeAgo",props:{date:{}},setup(e){const t=e,n=he(Date.now());let s=null;ln(()=>{s=setInterval(()=>{n.value=Date.now()},1e3)}),kn(()=>{s&&clearInterval(s)});const r=ye(()=>t.date?(n.value,Pf(new Date(t.date),{addSuffix:!0,includeSeconds:!0})):"-");return(o,i)=>($(),W("span",null,Z(r.value),1))}}),Of={class:"container"},If={class:"header-row"},Mf={class:"header-title"},Df={key:0,class:"title-separator"},kf={key:1,class:"db-name"},Nf={class:"header-controls"},Ff={class:"auto-refresh-wrapper"},Lf=["value"],Vf={key:0,class:"refresh-progress"},jf={class:"layout"},$f={class:"sidebar"},Hf={class:"sidebar-section"},Uf={class:"sidebar-links"},Bf={class:"link-label"},Wf={key:0,class:"status-badge error",title:"Failed"},Kf={key:1,class:"status-badge processing",title:"Running"},qf={key:2,class:"cron-next-run"},Gf={class:"sidebar-section"},zf={class:"sidebar-links"},Yf={class:"link-label"},Jf={class:"sidebar-stats"},Xf={key:0,class:"stat-badge pending"},Qf={key:1,class:"stat-badge processing"},Zf={key:2,class:"stat-badge success"},ed={key:3,class:"stat-badge error"},td={key:4,class:"stat-pipe"},nd={key:5,class:"stat-badge warning"},sd={class:"main-content"},rd={class:"modal"},od={class:"modal-header"},id={class:"modal-body"},ld={class:"setting-row"},ad=["value"],cd={class:"setting-row"},ud=["value"],fd=on({__name:"App",setup(e){function t(g){return g?typeof g=="string"?new Date(g):g:null}const n=he(0);let s=null;const r=he(!1);function o(){if(!Q.autoRefresh.value){n.value=0;return}const g=Q.lastRefresh.value.getTime(),y=Q.intervalSeconds.value*1e3,C=Date.now()-g;n.value=Math.min(100,C/y*100)}function i(){s&&clearInterval(s),s=setInterval(o,100)}const l=ye(()=>Q.autoRefresh.value?Q.intervalSeconds.value:0);function a(g){const y=Number(g.target.value);Du(y)}function f(g){const y=g.target.value;ku(y)}function c(g){const y=g.target.value;Nu(y)}ln(()=>{zi(),i()}),kn(()=>{s&&clearInterval(s)});const d=ye(()=>{const g={};return Q.reactiveTasks.value.forEach(y=>{g[y.collection]||(g[y.collection]=[]),g[y.collection].push(y)}),g}),p=mr();return(g,y)=>{const C=Cr("router-link"),L=Cr("router-view");return $(),W("div",Of,[v("header",null,[v("div",If,[v("div",Mf,[v("h1",null,[y[3]||(y[3]=Se(" Task Management ",-1)),X(Q).databaseName.value?($(),W("span",Df,":")):ae("",!0),X(Q).databaseName.value?($(),W("span",kf,Z(X(Q).databaseName.value),1)):ae("",!0)])]),v("div",Nf,[v("div",Ff,[v("select",{value:l.value,onChange:a,class:"auto-refresh-select"},[...y[4]||(y[4]=[v("option",{value:0},"Auto Refresh: Off",-1),v("option",{value:5},"Auto Refresh: 5s",-1),v("option",{value:10},"Auto Refresh: 10s",-1),v("option",{value:30},"Auto Refresh: 30s",-1),v("option",{value:60},"Auto Refresh: 1m",-1)])],40,Lf),X(Q).autoRefresh.value?($(),W("div",Vf,[v("div",{class:"refresh-progress-bar",style:Mn({width:n.value+"%"})},null,4)])):ae("",!0)]),v("button",{class:"settings-btn",onClick:y[0]||(y[0]=P=>r.value=!0),title:"Settings"},[...y[5]||(y[5]=[v("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[v("path",{d:"M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.38a2 2 0 0 0-.73-2.73l-.15-.1a2 2 0 0 1-1-1.72v-.51a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z"}),v("circle",{cx:"12",cy:"12",r:"3"})],-1)])])])])]),v("div",jf,[v("aside",$f,[v("div",Hf,[pe(C,{to:"/cron",class:Be(["sidebar-title-link",{active:X(p).path==="/cron"&&Object.keys(X(p).query).length===0}])},{default:Pt(()=>[...y[6]||(y[6]=[Se(" Cron Tasks ",-1)])]),_:1},8,["class"]),v("div",Uf,[($(!0),W(Ae,null,Yt(X(Q).cronTasks.value,P=>($(),vn(C,{key:P.id,to:{path:"/cron",query:{filter:P.id}},class:Be(["sidebar-link",{active:X(p).path==="/cron"&&X(p).query.filter===P.id,"status-failed":P.status==="failed"}])},{default:Pt(()=>[y[7]||(y[7]=v("span",{class:"link-bullet"},"•",-1)),v("span",Bf,Z(P.id),1),P.status==="failed"?($(),W("span",Wf,"!")):P.status==="running"?($(),W("span",Kf,"⋯")):t(P.nextRunAt)?($(),W("small",qf,[pe(Nt,{date:t(P.nextRunAt)},null,8,["date"])])):ae("",!0)]),_:2},1032,["to","class"]))),128))])]),v("div",Gf,[pe(C,{to:"/reactive",class:Be(["sidebar-title-link",{active:X(p).path==="/reactive"&&Object.keys(X(p).query).length===0}])},{default:Pt(()=>[...y[8]||(y[8]=[Se(" Reactive Tasks ",-1)])]),_:1},8,["class"]),($(!0),W(Ae,null,Yt(d.value,(P,x)=>($(),W("div",{key:x,class:"collection-group"},[pe(C,{to:{path:"/reactive",query:{collection:x}},class:Be(["collection-title-link",{active:X(p).path==="/reactive"&&X(p).query.collection===x}])},{default:Pt(()=>[Se(Z(x),1)]),_:2},1032,["to","class"]),v("div",zf,[($(!0),W(Ae,null,Yt(P,S=>($(),vn(C,{key:S.name,to:{path:"/reactive",query:{task:S.name}},class:Be(["sidebar-link",{active:X(p).path==="/reactive"&&X(p).query.task===S.name}])},{default:Pt(()=>[y[9]||(y[9]=v("span",{class:"link-bullet"},"•",-1)),v("span",Yf,Z(S.name),1),v("div",Jf,[S.stats.pending>0?($(),W("span",Xf,Z(S.stats.pending),1)):ae("",!0),S.stats.processing>0?($(),W("span",Qf,Z(S.stats.processing),1)):ae("",!0),S.stats.success>0?($(),W("span",Zf,Z(S.stats.success),1)):ae("",!0),S.stats.failed>0?($(),W("span",ed,Z(S.stats.failed),1)):ae("",!0),S.stats.error>0?($(),W("span",td,"|")):ae("",!0),S.stats.error>0?($(),W("span",nd,Z(S.stats.error),1)):ae("",!0)])]),_:2},1032,["to","class"]))),128))])]))),128))])]),v("main",sd,[pe(L,null,{default:Pt(({Component:P})=>[($(),vn(Jl,null,[($(),vn(ia(P)))],1024))]),_:1})])]),r.value?($(),W("div",{key:0,class:"modal-overlay",onClick:y[2]||(y[2]=Mi(P=>r.value=!1,["self"]))},[v("div",rd,[v("div",od,[y[10]||(y[10]=v("h3",null,"Settings",-1)),v("button",{class:"modal-close",onClick:y[1]||(y[1]=P=>r.value=!1)},"×")]),v("div",id,[v("label",ld,[y[12]||(y[12]=v("span",null,"Timezone",-1)),v("select",{value:X(Q).timezone.value,onChange:f},[...y[11]||(y[11]=[v("option",{value:"local"},"Local Time",-1),v("option",{value:"utc"},"UTC",-1)])],40,ad)]),v("label",cd,[y[14]||(y[14]=v("span",null,"Date/Time Format",-1)),v("select",{value:X(Q).locale.value,onChange:c},[...y[13]||(y[13]=[Ei('<option value="auto">Auto (System Default)</option><option value="en-US">English (US) - MM/DD/YYYY, 12h</option><option value="en-GB">English (UK) - DD/MM/YYYY, 24h</option><option value="cs-CZ">Czech - D.M.YYYY, 24h</option><option value="sv-SE">Swedish (ISO) - YYYY-MM-DD, 24h</option>',5)])],40,ud)])])])])):ae("",!0)])}}}),dd="modulepreload",hd=function(e,t){return new URL(e,t).href},_o={},Xi=function(t,n,s){let r=Promise.resolve();if(n&&n.length>0){const i=document.getElementsByTagName("link"),l=document.querySelector("meta[property=csp-nonce]"),a=(l==null?void 0:l.nonce)||(l==null?void 0:l.getAttribute("nonce"));r=Promise.allSettled(n.map(f=>{if(f=hd(f,s),f in _o)return;_o[f]=!0;const c=f.endsWith(".css"),d=c?'[rel="stylesheet"]':"";if(!!s)for(let y=i.length-1;y>=0;y--){const C=i[y];if(C.href===f&&(!c||C.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${f}"]${d}`))return;const g=document.createElement("link");if(g.rel=c?"stylesheet":dd,c||(g.as="script"),g.crossOrigin="",g.href=f,a&&g.setAttribute("nonce",a),document.head.appendChild(g),c)return new Promise((y,C)=>{g.addEventListener("load",y),g.addEventListener("error",()=>C(new Error(`Unable to preload CSS for ${f}`)))})}))}function o(i){const l=new Event("vite:preloadError",{cancelable:!0});if(l.payload=i,window.dispatchEvent(l),!l.defaultPrevented)throw i}return r.then(i=>{for(const l of i||[])l.status==="rejected"&&o(l.reason);return t().catch(o)})},pd=()=>Xi(()=>Promise.resolve().then(()=>ph),void 0,import.meta.url),gd=()=>Xi(()=>Promise.resolve().then(()=>Bh),void 0,import.meta.url),md=Au({history:ru(),routes:[{path:"/",redirect:"/reactive"},{path:"/reactive",name:"reactive",component:pd},{path:"/cron",name:"cron",component:gd}]}),Qi=vc(fd);Qi.use(md);Qi.mount("#app");const vd={class:"card",style:{position:"relative","min-height":"400px"}},yd={key:0,class:"loading-overlay"},_d={class:"table-responsive"},bd={key:0,style:{width:"100px"}},xd={style:{width:"120px"}},wd={style:{"margin-top":"4px"},class:"filter-input-wrapper"},Sd={style:{width:"200px"}},Rd={style:{"margin-top":"4px",display:"flex","flex-wrap":"wrap",gap:"4px"}},Ed=["value"],Ad={style:{opacity:"0.8","font-size":"0.9em","margin-left":"2px"}},Cd={style:{width:"220px"}},Td={style:{"margin-top":"4px",display:"flex","flex-direction":"column",gap:"6px"}},Pd={class:"filter-input-wrapper"},Od={class:"status-checkbox",style:{display:"flex","align-items":"center",gap:"6px",margin:"0"}},Id={class:"status-badge status-warning",style:{"font-size":"11px",padding:"2px 8px",flex:"1","text-align":"center"}},Md={style:{"text-align":"left",width:"100px"}},Dd={style:{"margin-top":"4px",display:"flex","justify-content":"flex-start"}},kd=["disabled"],Nd={key:0},Fd=["colspan"],Ld={key:0,style:{"word-break":"break-all"}},Vd={class:"text-secondary"},jd={style:{display:"inline-flex","align-items":"center",gap:"2px"}},$d=["onClick"],Hd={style:{"font-size":"12px"}},Ud={key:0},Bd={class:"text-secondary"},Wd={class:"text-secondary"},Kd={key:1,class:"text-secondary"},qd={style:{"font-size":"12px"}},Gd=["title"],zd={class:"text-secondary"},Yd={key:0,class:"text-secondary"},Jd={key:1},Xd={style:{"white-space":"nowrap"}},Qd={class:"text-secondary"},Zd={class:"text-secondary",style:{display:"flex","justify-content":"space-between"}},eh={class:"text-xs",title:"Duration"},th={key:2,class:"text-secondary"},nh={key:3,class:"text-secondary"},sh=["onClick"],rh={class:"pagination"},oh={style:{display:"flex",gap:"8px"}},ih=["disabled"],lh=["disabled"],ah={class:"modal"},ch={class:"modal-header"},uh={class:"modal-body"},fh={class:"modal-actions",style:{display:"flex","justify-content":"flex-end",gap:"12px","margin-top":"20px"}},dh=on({__name:"ReactiveView",setup(e){const t=he([]),n=he(0),s=he(!1),r=he(!1),o=he({statuses:[],errorCount:0}),i=mr(),l=Ki(),a=en({task:"",collection:"",statuses:[],errorMessage:"",hasError:!1,sourceDocId:""}),f=en({page:0,limit:20}),c=["pending","processing","completed","failed"],d=ye(()=>!!(a.task||a.collection||a.statuses.length>0||a.errorMessage||a.hasError||a.sourceDocId)),p=ye(()=>{if(n.value===0)return"Showing 0-0 of 0";const G=f.page*f.limit+1,k=Math.min((f.page+1)*f.limit,n.value);return`Showing ${G}-${k} of ${n.value}`}),g=ye(()=>Math.ceil(n.value/f.limit)-1);function y(){a.task=i.query.task||"",a.collection=i.query.collection||"",a.statuses=i.query.status?i.query.status.split(","):[],a.sourceDocId=i.query.sourceDocId||"",a.errorMessage=i.query.errorMessage||"",a.hasError=i.query.hasError==="true"}function C(){const G={};a.task&&(G.task=a.task),a.collection&&(G.collection=a.collection),a.statuses.length>0&&(G.status=a.statuses.join(",")),a.sourceDocId&&(G.sourceDocId=a.sourceDocId),a.errorMessage&&(G.errorMessage=a.errorMessage),a.hasError&&(G.hasError="true");const k=i.query;(G.task!==(k.task||"")||G.collection!==(k.collection||"")||G.status!==(k.status||"")||G.sourceDocId!==(k.sourceDocId||"")||G.errorMessage!==(k.errorMessage||"")||(G.hasError||"")!==(k.hasError||""))&&l.replace({query:G})}st(()=>i.query,()=>{y(),f.page=0,L()},{immediate:!0});async function L(){s.value=!0;try{const G=await Qt.reactive.list({limit:f.limit,skip:f.page*f.limit,task:a.task||void 0,collection:a.collection||void 0,status:a.statuses.length>0?a.statuses.join(","):void 0,errorMessage:a.errorMessage||void 0,hasError:a.hasError?"true":void 0,sourceDocId:a.sourceDocId||void 0});t.value=G.items,n.value=G.total,G.stats&&(o.value=G.stats),C()}catch(G){console.error(G),alert("Failed to load tasks")}finally{s.value=!1,r.value=!0,setTimeout(()=>{r.value=!1},600)}}function P(G,k){const M=k.currentTarget;navigator.clipboard.writeText(G).then(()=>{M.classList.add("copied"),setTimeout(()=>M.classList.remove("copied"),1500)}).catch(De=>{console.error("Failed to copy:",De)})}const x=he(!1);function S(){d.value&&(x.value=!0)}async function E(){x.value=!1;try{const G=await Qt.reactive.retry({task:a.task||void 0,status:a.statuses.length>0?a.statuses.join(","):void 0,errorMessage:a.errorMessage||void 0,sourceDocId:a.sourceDocId||void 0});alert(`Retry triggered for ${G.modifiedCount} tasks`),L()}catch(G){console.error(G),alert("Failed to trigger retry")}}async function Y(G,k){try{await Qt.reactive.retry({task:G,_id:k}),L()}catch(M){console.error("Retry failed:",M)}}function H(){f.page>0&&(f.page--,L())}function V(){f.page<g.value&&(f.page++,L())}function j(G,k){let M;return(...De)=>{clearTimeout(M),M=setTimeout(()=>G(...De),k)}}const ve=j(L,500);st(a,()=>{f.page=0,ve()}),st(()=>Q.trigger.value,()=>{L()});function be(G){const k=o.value.statuses.find(M=>M._id===G);return k?k.count:0}return ln(()=>{L()}),(G,k)=>($(),W("div",vd,[s.value?($(),W("div",yd,[...k[11]||(k[11]=[v("div",{class:"loading-spinner"},null,-1)])])):ae("",!0),v("div",_d,[v("table",null,[v("thead",null,[v("tr",null,[a.task?ae("",!0):($(),W("th",bd,"Task Name")),v("th",xd,[k[12]||(k[12]=Se(" Source Doc ID ",-1)),v("div",wd,[pn(v("input",{type:"text","onUpdate:modelValue":k[0]||(k[0]=M=>a.sourceDocId=M),onInput:k[1]||(k[1]=(...M)=>X(ve)&&X(ve)(...M)),placeholder:"Search ID...",class:"filter-input"},null,544),[[qs,a.sourceDocId]]),a.sourceDocId?($(),W("button",{key:0,class:"filter-clear-btn",onClick:k[2]||(k[2]=M=>{a.sourceDocId="",L()}),title:"Clear"},"×")):ae("",!0)])]),v("th",Sd,[k[13]||(k[13]=Se(" Status ",-1)),v("div",Rd,[($(),W(Ae,null,Yt(c,M=>v("label",{key:M,class:"status-checkbox"},[pn(v("input",{type:"checkbox",value:M,"onUpdate:modelValue":k[3]||(k[3]=De=>a.statuses=De),onChange:L},null,40,Ed),[[Xr,a.statuses]]),v("span",{class:Be(["status-badge","status-"+M]),style:{"font-size":"11px",padding:"2px 6px"}},[Se(Z(M)+" ",1),v("span",Ad,Z(be(M)),1)],2)])),64))])]),k[16]||(k[16]=v("th",{style:{width:"130px"}},"Next Run",-1)),v("th",Cd,[k[14]||(k[14]=Se(" Last Run Status ",-1)),v("div",Td,[v("div",Pd,[pn(v("input",{type:"text","onUpdate:modelValue":k[4]||(k[4]=M=>a.errorMessage=M),placeholder:"Filter error...",class:"filter-input",onInput:k[5]||(k[5]=(...M)=>X(ve)&&X(ve)(...M))},null,544),[[qs,a.errorMessage]]),a.errorMessage?($(),W("button",{key:0,class:"filter-clear-btn",onClick:k[6]||(k[6]=M=>{a.errorMessage="",L()}),title:"Clear"},"×")):ae("",!0)]),v("label",Od,[pn(v("input",{type:"checkbox","onUpdate:modelValue":k[7]||(k[7]=M=>a.hasError=M),onChange:L},null,544),[[Xr,a.hasError]]),v("span",Id,"has error ("+Z(o.value.errorCount)+")",1)])])]),k[17]||(k[17]=v("th",{style:{width:"60px","text-align":"center"}},"Attempts",-1)),v("th",Md,[k[15]||(k[15]=Se(" Actions ",-1)),v("div",Dd,[v("button",{class:"btn btn-danger btn-action",onClick:S,disabled:s.value||!d.value}," Retry Matching ",8,kd)])])])]),v("tbody",{class:Be({"flash-active":r.value})},[t.value.length===0?($(),W("tr",Nd,[v("td",{colspan:a.task?6:7,style:{"text-align":"center",color:"var(--text-secondary)"}},"No tasks found",8,Fd)])):ae("",!0),($(!0),W(Ae,null,Yt(t.value,M=>($(),W("tr",{key:String(M._id)},[a.task?ae("",!0):($(),W("td",Ld,[v("strong",null,Z(M.task),1),k[18]||(k[18]=v("br",null,null,-1)),v("small",Vd,"#"+Z(String(M._id).substring(0,8))+"...",1)])),v("td",null,[v("div",jd,[v("code",null,Z(M.sourceDocId),1),v("button",{class:"copy-btn",onClick:De=>P(String(M.sourceDocId),De),title:"Copy ID"},[...k[19]||(k[19]=[Ei('<svg class="copy-icon" xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" data-v-c80f73e7><rect x="9" y="9" width="13" height="13" rx="2" ry="2" data-v-c80f73e7></rect><path d="M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1" data-v-c80f73e7></path></svg><svg class="check-icon" xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" data-v-c80f73e7><polyline points="20 6 9 17 4 12" data-v-c80f73e7></polyline></svg>',2)])],8,$d)])]),v("td",null,[v("span",{class:Be(["status-badge",`status-${M.status}`])},Z(M.status),3)]),v("td",null,[v("div",Hd,[M.status==="pending"||M.status==="processing"?($(),W("div",Ud,[v("div",null,[Se(Z(X(Zt)(M.scheduledAt))+" ",1),v("small",Bd,Z(X(Q).timezoneSuffix.value),1)]),v("small",Wd,[pe(Nt,{date:M.scheduledAt},null,8,["date"])])])):($(),W("span",Kd,"-"))])]),v("td",null,[v("div",qd,[M.lastError?($(),W("div",{key:0,class:"error-text",title:String(M.lastError)},[Se(" Error "+Z(M.lastFinalizedAt?"at "+X(Zt)(M.lastFinalizedAt):"")+" ",1),v("small",zd,Z(X(Q).timezoneSuffix.value),1),M.lastFinalizedAt?($(),W("div",Yd,[pe(Nt,{date:M.lastFinalizedAt},null,8,["date"])])):ae("",!0),v("div",null,Z(M.lastError),1)],8,Gd)):ae("",!0),M.lastSuccess?($(),W("div",Jd,[v("span",Xd,[Se("Last success: "+Z(X(Zt)(M.lastSuccess.at))+" ",1),v("small",Qd,Z(X(Q).timezoneSuffix.value),1)]),v("div",Zd,[pe(Nt,{date:M.lastSuccess.at},null,8,["date"]),v("span",eh,Z(M.lastSuccess.durationMs)+"ms",1)])])):M.lastError?($(),W("div",th," No success yet ")):ae("",!0),!M.lastSuccess&&!M.lastError?($(),W("div",nh," Never run ")):ae("",!0)])]),v("td",null,Z(M.attempts),1),v("td",null,[v("button",{class:"btn btn-secondary btn-action",onClick:De=>Y(M.task,String(M._id))},"Retry now",8,sh)])]))),128))],2)])]),v("div",rh,[v("span",null,Z(p.value),1),v("div",oh,[v("button",{class:"btn btn-secondary",onClick:H,disabled:f.page===0||s.value},"Previous",8,ih),v("button",{class:"btn btn-secondary",onClick:V,disabled:f.page>=g.value||s.value},"Next",8,lh)])]),x.value?($(),W("div",{key:1,class:"modal-overlay",onClick:k[10]||(k[10]=Mi(M=>x.value=!1,["self"]))},[v("div",ah,[v("div",ch,[k[20]||(k[20]=v("h3",null,"Confirm Retry",-1)),v("button",{class:"modal-close",onClick:k[8]||(k[8]=M=>x.value=!1)},"×")]),v("div",uh,[k[21]||(k[21]=v("p",null,"Are you sure you want to retry all tasks matching the current filter?",-1)),v("div",fh,[v("button",{class:"btn btn-secondary",onClick:k[9]||(k[9]=M=>x.value=!1)},"Cancel"),v("button",{class:"btn btn-danger",onClick:E},"Retry now")])])])])):ae("",!0)]))}}),Zi=(e,t)=>{const n=e.__vccOpts||e;for(const[s,r]of t)n[s]=r;return n},hh=Zi(dh,[["__scopeId","data-v-c80f73e7"]]),ph=Object.freeze(Object.defineProperty({__proto__:null,default:hh},Symbol.toStringTag,{value:"Module"})),gh={class:"card"},mh={class:"table-responsive"},vh={style:{"min-width":"140px",padding:"8px 4px"}},yh={style:{"margin-top":"4px"},class:"filter-input-wrapper"},_h={key:0},bh={key:0,title:"Not registered on this instance"},xh={class:"next-run-cell"},wh={key:0,class:"overdue-text"},Sh={key:1},Rh={class:"text-secondary"},Eh={key:2,class:"text-secondary"},Ah={key:3,class:"next-run-progress"},Ch={key:0,style:{"font-size":"12px"}},Th=["title"],Ph={class:"text-secondary"},Oh={class:"text-secondary"},Ih={key:1},Mh={class:"text-secondary"},Dh={class:"text-secondary"},kh={class:"text-secondary text-xs"},Nh={key:1,class:"text-secondary"},Fh=["onClick","disabled"],Lh={class:"pagination"},Vh={style:{display:"flex",gap:"8px"}},jh=["disabled"],$h=["disabled"],Hh=on({__name:"CronView",setup(e){const t=he([]),n=he(0),s=he(!1),r=he(""),o=he(Date.now());let i=null;function l(H,V){let j;return(...ve)=>{clearTimeout(j),j=setTimeout(()=>H(...ve),V)}}const a=mr(),f=Ki(),c=l(C,500),d=he({page:0,limit:20});function p(){const H={};r.value&&(H.filter=r.value),(r.value||"")!==(a.query.filter||"")&&f.replace({query:H})}st(()=>a.query.filter,H=>{r.value=H||"",d.value.page=0,C()},{immediate:!0});const g=ye(()=>{if(n.value===0)return"Showing 0-0 of 0";const H=d.value.page*d.value.limit+1,V=Math.min((d.value.page+1)*d.value.limit,n.value);return`Showing ${H}-${V} of ${n.value}`}),y=ye(()=>Math.ceil(n.value/d.value.limit)-1);async function C(){s.value=!0;try{const H=await Qt.cron.list({limit:d.value.limit,skip:d.value.page*d.value.limit,filter:r.value||void 0});t.value=H.items,n.value=H.total,p()}catch(H){console.error(H),alert("Failed to load cron tasks")}finally{s.value=!1}}async function L(H){try{s.value=!0,await Qt.cron.trigger({taskId:H}),await C()}catch(V){console.error(V),alert("Failed to trigger task")}finally{s.value=!1}}function P(H){return H.status==="locked"||H.status==="running"?"status-processing":H.status==="failed"?"status-failed":"status-pending"}function x(H){return new Date(H).getTime()<=o.value}function S(H){const j=new Date(H).getTime()-o.value;return j<=0?100:j>=1e4?0:(1e4-j)/1e4*100}function E(){d.value.page>0&&(d.value.page--,C())}function Y(){d.value.page<y.value&&(d.value.page++,C())}return st(()=>Q.trigger.value,()=>{C()}),ln(()=>{C(),i=setInterval(()=>{o.value=Date.now()},100)}),kn(()=>{i&&clearInterval(i)}),(H,V)=>($(),W("div",gh,[v("div",mh,[v("table",null,[v("thead",null,[v("tr",null,[v("th",vh,[V[3]||(V[3]=Se(" Task ID ",-1)),v("div",yh,[pn(v("input",{type:"text","onUpdate:modelValue":V[0]||(V[0]=j=>r.value=j),placeholder:"Search ID...",class:"filter-input",onInput:V[1]||(V[1]=(...j)=>X(c)&&X(c)(...j))},null,544),[[qs,r.value]]),r.value?($(),W("button",{key:0,class:"filter-clear-btn",onClick:V[2]||(V[2]=j=>{r.value="",C()}),title:"Clear"},"×")):ae("",!0)])]),V[4]||(V[4]=v("th",{style:{"min-width":"100px"}},"Status",-1)),V[5]||(V[5]=v("th",{style:{"white-space":"nowrap"}},"Next Run",-1)),V[6]||(V[6]=v("th",{style:{"min-width":"180px"}},"Last Run Status",-1)),V[7]||(V[7]=v("th",{style:{"text-align":"left","min-width":"100px"}},"Actions",-1))])]),v("tbody",null,[t.value.length===0?($(),W("tr",_h,[...V[8]||(V[8]=[v("td",{colspan:"5",style:{"text-align":"center",color:"var(--text-secondary)"}},"No tasks found",-1)])])):ae("",!0),($(!0),W(Ae,null,Yt(t.value,j=>($(),W("tr",{key:j._id},[v("td",null,[v("strong",null,Z(j._id),1),j.isRegistered?ae("",!0):($(),W("span",bh," ⚠️"))]),v("td",null,[v("span",{class:Be(["status-badge",P(j)])},Z(j.status),3)]),v("td",xh,[x(j.nextRunAt)?($(),W("div",wh,"Should run already")):($(),W("div",Sh,[Se(Z(X(Zt)(j.nextRunAt))+" ",1),v("small",Rh,Z(X(Q).timezoneSuffix.value),1)])),x(j.nextRunAt)?ae("",!0):($(),W("small",Eh,[pe(Nt,{date:j.nextRunAt},null,8,["date"])])),S(j.nextRunAt)>0?($(),W("div",Ah,[v("div",{class:"next-run-progress-bar",style:Mn({width:S(j.nextRunAt)+"%"})},null,4)])):ae("",!0)]),v("td",null,[j.lastRun?($(),W("div",Ch,[j.lastRun.error?($(),W("div",{key:0,class:"error-text",title:j.lastRun.error},[Se(" Failed at "+Z(X(Zt)(j.lastRun.finishedAt||j.lastRun.startedAt))+" ",1),v("small",Ph,Z(X(Q).timezoneSuffix.value),1),v("div",Oh,[pe(Nt,{date:j.lastRun.finishedAt||j.lastRun.startedAt},null,8,["date"])])],8,Th)):($(),W("div",Ih,[Se(" Success: "+Z(X(Zt)(j.lastRun.finishedAt||j.lastRun.startedAt))+" ",1),v("small",Mh,Z(X(Q).timezoneSuffix.value),1),v("div",Dh,[pe(Nt,{date:j.lastRun.finishedAt||j.lastRun.startedAt},null,8,["date"])]),v("div",kh,"Duration: "+Z(j.lastRun.durationMs)+"ms",1)]))])):($(),W("span",Nh,"Never run"))]),v("td",null,[v("button",{class:"btn btn-secondary",onClick:ve=>L(j._id),disabled:j.status==="running"||j.status==="locked"},"Run Now",8,Fh)])]))),128))])])]),v("div",Lh,[v("span",null,Z(g.value),1),v("div",Vh,[v("button",{class:"btn btn-secondary",onClick:E,disabled:d.value.page===0||s.value},"Previous",8,jh),v("button",{class:"btn btn-secondary",onClick:Y,disabled:d.value.page>=y.value||s.value},"Next",8,$h)])])]))}}),Uh=Zi(Hh,[["__scopeId","data-v-4c04ba2c"]]),Bh=Object.freeze(Object.defineProperty({__proto__:null,default:Uh},Symbol.toStringTag,{value:"Module"}));</script>
|
|
33
|
+
<style rel="stylesheet" crossorigin>:root{--bg-color: #f8fafc;--card-bg: #ffffff;--text-primary: #1e293b;--text-secondary: #64748b;--border-color: #e2e8f0;--primary-color: #3b82f6;--primary-hover: #2563eb;--success-color: #10b981;--warning-color: #f59e0b;--danger-color: #ef4444;--font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif}body{font-family:var(--font-family);background-color:var(--bg-color);color:var(--text-primary);margin:0;padding:20px;line-height:1.5}.container{max-width:1800px;margin:0 auto}.layout{display:flex;gap:24px;align-items:flex-start}.sidebar{width:260px;min-width:260px;position:sticky;top:20px;background:var(--card-bg);border:1px solid var(--border-color);border-radius:12px;padding:20px;box-shadow:0 1px 3px #0000000d;max-height:calc(100vh - 40px);overflow-y:auto}.main-content{flex:1;min-width:0}header{margin-bottom:24px}.header-row{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px}.header-title{display:flex;align-items:center}.header-controls{display:flex;align-items:center;gap:12px}.title-separator{margin:0 8px;color:var(--text-secondary);font-weight:400}.db-name{color:var(--primary-color)}h1{font-size:24px;font-weight:700;margin:0}.auto-refresh{font-size:14px;color:var(--text-secondary);display:flex;align-items:center;gap:12px}.auto-refresh-toggle{display:flex;align-items:center;gap:8px;cursor:pointer;-webkit-user-select:none;user-select:none}.interval-select{padding:4px 8px;border:1px solid var(--border-color);border-radius:4px;font-size:12px;min-width:auto!important}.auto-refresh-wrapper{position:relative;display:flex;flex-direction:column;gap:4px}.auto-refresh-select{padding:6px 12px;border:1px solid var(--border-color);border-radius:6px;font-size:14px;color:var(--text-secondary);min-width:auto!important;cursor:pointer}.refresh-progress{height:2px;background:transparent;margin:0 4px}.refresh-progress-bar{height:100%;background:#d1d5db;transition:width .1s linear}.sidebar-section{margin-bottom:32px}.sidebar-section:last-child{margin-bottom:0}.sidebar-title-link{display:block;font-size:12px;text-transform:uppercase;letter-spacing:.05em;color:var(--text-secondary);margin:0 0 12px;font-weight:700;text-decoration:none;padding:4px 8px;border-radius:6px;transition:all .2s}.sidebar-title-link:hover{background:#f1f5f9;color:var(--primary-color)}.sidebar-title-link.active{background:#eff6ff;color:var(--primary-color)}.collection-group{margin-bottom:16px}.collection-title{font-size:13px;font-weight:600;margin:0 0 8px;color:var(--text-primary);display:flex;align-items:center;gap:6px}.collection-title code{font-family:var(--font-mono);font-weight:500;background:#f1f5f9;padding:1px 4px;border-radius:4px;font-size:12px}.collection-title-link{display:block;font-size:12px;font-weight:500;font-family:var(--font-mono);margin:0 0 8px;padding:4px 8px;color:var(--text-secondary);text-decoration:none;cursor:pointer;border-radius:4px;background:#f8fafc;border:1px solid transparent;transition:all .15s}.collection-title-link:hover{background:#e2e8f0;color:var(--text-primary)}.collection-title-link.active{background:#eff6ff;color:var(--primary-color);border-color:#dbeafe}.sidebar-links{display:flex;flex-direction:column;gap:2px}.sidebar-link{display:flex;align-items:center;padding:6px 8px;color:var(--text-primary);text-decoration:none;font-size:13px;border-radius:6px;transition:all .2s;margin-bottom:2px;gap:8px}.link-label{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.sidebar-stats{display:flex;gap:4px;align-items:center}.stat-pipe{color:#d1d5db;font-size:12px;margin:0 2px}.stat-badge{font-size:10px;font-weight:700;padding:1px 4px;border-radius:4px;min-width:12px;text-align:center}.status-badge{font-size:11px;font-weight:600;padding:2px 6px;display:inline-flex;align-items:center;justify-content:center;border-radius:4px;white-space:nowrap}.stat-badge.error,.status-badge.error{background:#fef2f2;color:#dc2626;border:1px solid #fee2e2}.stat-badge.processing,.status-badge.processing{background:#eff6ff;color:#2563eb;border:1px solid #dbeafe}.stat-badge.pending{background:#f8fafc;color:#64748b;border:1px solid #f1f5f9}.stat-badge.success{background:#f0fdf4;color:#16a34a;border:1px solid #dcfce7}.stat-badge.warning{background:#ffedd5;color:#c2410c;border:1px solid #fed7aa}.sidebar-link.status-failed .link-label{color:#dc2626}.cron-next-run{font-size:10px;color:#9ca3af;margin-left:auto}.sidebar-link:hover{background:#f1f5f9;color:var(--primary-color)}.sidebar-link.active{background:#eff6ff;color:var(--primary-color);font-weight:500}.sidebar-link.active .link-bullet{color:var(--primary-color)}.card{background:var(--card-bg);border:1px solid var(--border-color);border-radius:8px;box-shadow:0 1px 3px #0000000d;overflow:hidden;margin-bottom:24px}.toolbar{padding:16px;border-bottom:1px solid var(--border-color);display:flex;gap:12px;align-items:center;flex-wrap:wrap}input[type=text],select{padding:8px 12px;border:1px solid var(--border-color);border-radius:6px;font-size:14px}button.btn{padding:8px 16px;background-color:var(--primary-color);color:#fff;border:none;border-radius:6px;font-size:14px;cursor:pointer;font-weight:500;transition:background .2s}button.btn:hover:not(:disabled){background-color:var(--primary-hover)}button.btn:disabled{opacity:.5;cursor:not-allowed}button.btn-secondary{background-color:#fff;color:var(--text-secondary);border:1px solid var(--border-color)}button.btn-secondary:hover:not(:disabled){background-color:#f1f5f9}button.btn-danger{background-color:var(--danger-color)}button.btn-danger:hover:not(:disabled){background-color:#dc2626}table{width:100%;border-collapse:collapse;font-size:14px}th{background-color:#f8fafc;text-align:left;padding:12px 16px;font-weight:600;color:var(--text-secondary);border-bottom:1px solid var(--border-color)}td{padding:12px 16px;border-bottom:1px solid var(--border-color);vertical-align:middle}td code{font-family:SFMono-Regular,Consolas,Liberation Mono,Menlo,monospace;font-size:12px;background:var(--bg-secondary);padding:2px 6px;border-radius:4px;color:var(--text-primary)}tr:last-child td{border-bottom:none}.status-badge{display:inline-flex;align-items:center;padding:4px 8px;border-radius:9999px;font-size:12px;font-weight:500}.status-pending{background:#f3f4f6;color:#4b5563}.status-processing{background:#dbf4ff;color:#0369a1}.status-completed{background:#dcfce7;color:#15803d}.status-failed{background:#fee2e2;color:#b91c1c}.status-locked{background:#ede9fe;color:#6d28d9}.status-warning{background:#ffedd5;color:#c2410c}.pagination{padding:16px;display:flex;justify-content:space-between;align-items:center;border-top:1px solid var(--border-color)}.error-text{color:var(--danger-color);font-size:12px;display:block;margin-top:4px;max-width:300px;overflow:hidden;text-overflow:ellipsis}.settings-btn{background:none;border:none;display:flex;align-items:center;justify-content:center;cursor:pointer;padding:8px;color:var(--text-secondary);border-radius:6px;transition:all .2s;height:35px;width:35px}.settings-btn:hover{background-color:#f1f5f9;color:var(--text-primary)}.modal-overlay{position:fixed;top:0;left:0;right:0;bottom:0;background:#0006;display:flex;align-items:center;justify-content:center;z-index:1000}.modal{background:var(--card-bg);border-radius:12px;box-shadow:0 20px 60px #0000004d;min-width:300px;max-width:90%}.modal-header{display:flex;justify-content:space-between;align-items:center;padding:16px 20px;border-bottom:1px solid var(--border-color)}.modal-header h3{margin:0;font-size:16px;font-weight:600}.modal-close{background:none;border:none;font-size:24px;cursor:pointer;color:var(--text-secondary);line-height:1;padding:0}.modal-close:hover{color:var(--text-primary)}.modal-body{padding:20px}.setting-row{display:flex;justify-content:space-between;align-items:center;gap:16px}.setting-row span{font-size:14px;color:var(--text-primary)}.setting-row select{padding:6px 12px;border:1px solid var(--border-color);border-radius:6px;font-size:14px}.text-secondary[data-v-c80f73e7]{color:var(--text-secondary)}.status-filter[data-v-c80f73e7]{display:flex;gap:8px;align-items:center}.status-checkbox[data-v-c80f73e7]{display:flex;align-items:center;gap:4px;cursor:pointer;-webkit-user-select:none;user-select:none}.status-checkbox input[type=checkbox][data-v-c80f73e7]{display:none}.status-checkbox input[type=checkbox]:checked+.status-badge[data-v-c80f73e7]{outline:2px solid var(--primary-color);outline-offset:1px}.status-checkbox .status-badge[data-v-c80f73e7]{cursor:pointer;opacity:.5;transition:opacity .15s}.status-checkbox input[type=checkbox]:checked+.status-badge[data-v-c80f73e7]{opacity:1}.filter-separator[data-v-c80f73e7]{color:var(--border-color);font-weight:300;margin:0 4px}tbody tr[data-v-c80f73e7]:hover{background-color:#3b82f60a}.loading-overlay[data-v-c80f73e7]{position:absolute;top:0;left:0;right:0;bottom:0;background:#fff9;z-index:999;display:flex;align-items:center;justify-content:center;-webkit-backdrop-filter:blur(1px);backdrop-filter:blur(1px);border-radius:8px}.loading-spinner[data-v-c80f73e7]{width:30px;height:30px;border:3px solid var(--border-color);border-top-color:var(--primary-color);border-radius:50%;animation:spin-c80f73e7 1s linear infinite}@keyframes spin-c80f73e7{to{transform:rotate(360deg)}}.flash-active[data-v-c80f73e7]{animation:flash-highlight-c80f73e7 .5s ease-out}@keyframes flash-highlight-c80f73e7{0%{background-color:#3b82f61a}to{background-color:transparent}}.table-responsive[data-v-c80f73e7]{overflow-x:auto;-webkit-overflow-scrolling:touch}.copy-btn[data-v-c80f73e7]{background:none;border:none;padding:2px;cursor:pointer;color:#9ca3af;vertical-align:middle;margin-left:0}.copy-btn[data-v-c80f73e7]:hover{color:#6b7280}.copy-btn .check-icon[data-v-c80f73e7],.copy-btn.copied .copy-icon[data-v-c80f73e7]{display:none}.copy-btn.copied .check-icon[data-v-c80f73e7]{display:inline;color:#16a34a}.btn-action[data-v-c80f73e7]{padding:4px 10px;font-size:11px;min-width:70px}.filter-input-wrapper[data-v-c80f73e7]{position:relative;display:flex;align-items:center}.filter-input[data-v-c80f73e7]{width:100%;box-sizing:border-box;font-weight:400;padding:4px 24px 4px 6px;font-size:12px;border:1px solid var(--border-color);border-radius:4px}.filter-clear-btn[data-v-c80f73e7]{position:absolute;right:4px;background:none;border:none;color:#9ca3af;font-size:14px;cursor:pointer;padding:0 4px;line-height:1}.filter-clear-btn[data-v-c80f73e7]:hover{color:#6b7280}.text-secondary[data-v-4c04ba2c]{color:var(--text-secondary)}.next-run-cell[data-v-4c04ba2c]{position:relative}.overdue-text[data-v-4c04ba2c]{color:var(--warning-color);font-weight:500}.next-run-progress[data-v-4c04ba2c]{height:2px;background:transparent;margin-top:4px}.next-run-progress-bar[data-v-4c04ba2c]{height:100%;background:#d1d5db;transition:width .1s linear}.table-responsive[data-v-4c04ba2c]{overflow-x:auto;-webkit-overflow-scrolling:touch}.filter-input-wrapper[data-v-4c04ba2c]{position:relative;display:flex;align-items:center}.filter-input[data-v-4c04ba2c]{width:100%;box-sizing:border-box;font-weight:400;padding:4px 24px 4px 6px;font-size:12px;border:1px solid var(--border-color);border-radius:4px}.filter-clear-btn[data-v-4c04ba2c]{position:absolute;right:4px;background:none;border:none;color:#9ca3af;font-size:14px;cursor:pointer;padding:0 4px;line-height:1}.filter-clear-btn[data-v-4c04ba2c]:hover{color:#6b7280}</style>
|
|
34
|
+
</head>
|
|
35
|
+
|
|
36
|
+
<body>
|
|
37
|
+
<div id="app"></div>
|
|
38
|
+
</body>
|
|
39
|
+
|
|
40
|
+
</html>
|