instaui 0.1.18__py2.py3-none-any.whl → 0.1.19__py2.py3-none-any.whl

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.
@@ -1,24 +1,24 @@
1
- var Un = Object.defineProperty;
2
- var Kn = (e, t, n) => t in e ? Un(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
3
- var B = (e, t, n) => Kn(e, typeof t != "symbol" ? t + "" : t, n);
4
- import * as Gn from "vue";
5
- import { toRaw as qn, customRef as je, toValue as q, unref as L, watch as G, nextTick as Ie, isRef as Ht, ref as Z, shallowRef as J, watchEffect as zt, computed as K, readonly as Hn, provide as Ne, inject as ee, shallowReactive as zn, defineComponent as F, reactive as Jn, h as A, getCurrentInstance as Jt, normalizeStyle as Qn, normalizeClass as Ye, toDisplayString as Qt, onUnmounted as Ce, Fragment as xe, vModelDynamic as Yn, vShow as Xn, resolveDynamicComponent as ft, normalizeProps as Zn, withDirectives as er, onErrorCaptured as tr, openBlock as he, createElementBlock as ke, createElementVNode as nr, createVNode as rr, withCtx as or, renderList as sr, createBlock as ir, TransitionGroup as Yt, KeepAlive as ar } from "vue";
6
- let Xt;
7
- function cr(e) {
8
- Xt = e;
9
- }
10
- function Xe() {
11
- return Xt;
12
- }
13
- function ye() {
14
- const { queryPath: e, pathParams: t, queryParams: n } = Xe();
1
+ var Gn = Object.defineProperty;
2
+ var qn = (e, t, n) => t in e ? Gn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
3
+ var B = (e, t, n) => qn(e, typeof t != "symbol" ? t + "" : t, n);
4
+ import * as Hn from "vue";
5
+ import { toRaw as zn, customRef as Ce, toValue as q, unref as L, watch as G, nextTick as Te, isRef as zt, ref as Z, shallowRef as J, watchEffect as Jt, computed as K, readonly as Jn, provide as Ie, inject as ee, shallowReactive as Qn, defineComponent as F, reactive as Yn, h as A, getCurrentInstance as Qt, normalizeStyle as Xn, normalizeClass as Xe, toDisplayString as Yt, onUnmounted as xe, Fragment as De, vModelDynamic as Zn, vShow as er, resolveDynamicComponent as dt, normalizeProps as tr, withDirectives as nr, onErrorCaptured as rr, openBlock as he, createElementBlock as Ve, createElementVNode as or, createVNode as sr, withCtx as ir, renderList as ar, createBlock as cr, TransitionGroup as Xt, KeepAlive as ur } from "vue";
6
+ let Zt;
7
+ function lr(e) {
8
+ Zt = e;
9
+ }
10
+ function Ze() {
11
+ return Zt;
12
+ }
13
+ function we() {
14
+ const { queryPath: e, pathParams: t, queryParams: n } = Ze();
15
15
  return {
16
16
  path: e,
17
17
  ...t === void 0 ? {} : { params: t },
18
18
  ...n === void 0 ? {} : { queryParams: n }
19
19
  };
20
20
  }
21
- class ur extends Map {
21
+ class fr extends Map {
22
22
  constructor(t) {
23
23
  super(), this.factory = t;
24
24
  }
@@ -30,18 +30,18 @@ class ur extends Map {
30
30
  return super.get(t);
31
31
  }
32
32
  }
33
- function _e(e) {
34
- return new ur(e);
33
+ function Se(e) {
34
+ return new fr(e);
35
35
  }
36
- function St(e, t) {
36
+ function Ot(e, t) {
37
37
  Object.entries(e).forEach(([n, r]) => t(r, n));
38
38
  }
39
- function De(e, t) {
40
- return Zt(e, {
39
+ function Me(e, t) {
40
+ return en(e, {
41
41
  valueFn: t
42
42
  });
43
43
  }
44
- function Zt(e, t) {
44
+ function en(e, t) {
45
45
  const { valueFn: n, keyFn: r } = t;
46
46
  return Object.fromEntries(
47
47
  Object.entries(e).map(([o, s], i) => [
@@ -50,7 +50,7 @@ function Zt(e, t) {
50
50
  ])
51
51
  );
52
52
  }
53
- function en(e, t, n) {
53
+ function tn(e, t, n) {
54
54
  if (Array.isArray(t)) {
55
55
  const [o, ...s] = t;
56
56
  switch (o) {
@@ -62,10 +62,10 @@ function en(e, t, n) {
62
62
  return s[0] + e;
63
63
  }
64
64
  }
65
- const r = tn(t, n);
65
+ const r = nn(t, n);
66
66
  return e[r];
67
67
  }
68
- function tn(e, t) {
68
+ function nn(e, t) {
69
69
  if (typeof e == "string" || typeof e == "number")
70
70
  return e;
71
71
  if (!Array.isArray(e))
@@ -82,33 +82,33 @@ function tn(e, t) {
82
82
  }
83
83
  function be(e, t, n) {
84
84
  return t.reduce(
85
- (r, o) => en(r, o, n),
85
+ (r, o) => tn(r, o, n),
86
86
  e
87
87
  );
88
88
  }
89
- function Ze(e, t, n, r) {
89
+ function et(e, t, n, r) {
90
90
  t.reduce((o, s, i) => {
91
91
  if (i === t.length - 1)
92
- o[tn(s, r)] = n;
92
+ o[nn(s, r)] = n;
93
93
  else
94
- return en(o, s, r);
94
+ return tn(o, s, r);
95
95
  }, e);
96
96
  }
97
- function nn(e) {
97
+ function rn(e) {
98
98
  return JSON.parse(JSON.stringify(e));
99
99
  }
100
- class lr {
100
+ class dr {
101
101
  toString() {
102
102
  return "";
103
103
  }
104
104
  }
105
- const we = new lr();
106
- function Ee(e) {
107
- return qn(e) === we;
105
+ const Ee = new dr();
106
+ function _e(e) {
107
+ return zn(e) === Ee;
108
108
  }
109
- function Ot(e, t, n) {
109
+ function Rt(e, t, n) {
110
110
  const { paths: r, getBindableValueFn: o } = t, { paths: s, getBindableValueFn: i } = t;
111
- return r === void 0 || r.length === 0 ? e : je(() => ({
111
+ return r === void 0 || r.length === 0 ? e : Ce(() => ({
112
112
  get() {
113
113
  try {
114
114
  return be(
@@ -121,7 +121,7 @@ function Ot(e, t, n) {
121
121
  }
122
122
  },
123
123
  set(u) {
124
- Ze(
124
+ et(
125
125
  q(e),
126
126
  s || r,
127
127
  u,
@@ -131,67 +131,67 @@ function Ot(e, t, n) {
131
131
  }));
132
132
  }
133
133
  function ht(e) {
134
- return je((t, n) => ({
134
+ return Ce((t, n) => ({
135
135
  get() {
136
136
  return t(), e;
137
137
  },
138
138
  set(r) {
139
- !Ee(e) && JSON.stringify(r) === JSON.stringify(e) || (e = r, n());
139
+ !_e(e) && JSON.stringify(r) === JSON.stringify(e) || (e = r, n());
140
140
  }
141
141
  }));
142
142
  }
143
- function de(e) {
143
+ function pe(e) {
144
144
  return typeof e == "function" ? e() : L(e);
145
145
  }
146
146
  typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
147
- const et = () => {
147
+ const tt = () => {
148
148
  };
149
- function tt(e, t = !1, n = "Timeout") {
149
+ function nt(e, t = !1, n = "Timeout") {
150
150
  return new Promise((r, o) => {
151
151
  setTimeout(t ? () => o(n) : r, e);
152
152
  });
153
153
  }
154
- function nt(e, t = !1) {
155
- function n(a, { flush: f = "sync", deep: d = !1, timeout: v, throwOnTimeout: p } = {}) {
154
+ function rt(e, t = !1) {
155
+ function n(a, { flush: f = "sync", deep: h = !1, timeout: v, throwOnTimeout: p } = {}) {
156
156
  let g = null;
157
- const _ = [new Promise((S) => {
157
+ const _ = [new Promise((b) => {
158
158
  g = G(
159
159
  e,
160
- (R) => {
161
- a(R) !== t && (g ? g() : Ie(() => g == null ? void 0 : g()), S(R));
160
+ (P) => {
161
+ a(P) !== t && (g ? g() : Te(() => g == null ? void 0 : g()), b(P));
162
162
  },
163
163
  {
164
164
  flush: f,
165
- deep: d,
165
+ deep: h,
166
166
  immediate: !0
167
167
  }
168
168
  );
169
169
  })];
170
170
  return v != null && _.push(
171
- tt(v, p).then(() => de(e)).finally(() => g == null ? void 0 : g())
171
+ nt(v, p).then(() => pe(e)).finally(() => g == null ? void 0 : g())
172
172
  ), Promise.race(_);
173
173
  }
174
174
  function r(a, f) {
175
- if (!Ht(a))
176
- return n((R) => R === a, f);
177
- const { flush: d = "sync", deep: v = !1, timeout: p, throwOnTimeout: g } = f ?? {};
175
+ if (!zt(a))
176
+ return n((P) => P === a, f);
177
+ const { flush: h = "sync", deep: v = !1, timeout: p, throwOnTimeout: g } = f ?? {};
178
178
  let y = null;
179
- const S = [new Promise((R) => {
179
+ const b = [new Promise((P) => {
180
180
  y = G(
181
181
  [e, a],
182
- ([D, C]) => {
183
- t !== (D === C) && (y ? y() : Ie(() => y == null ? void 0 : y()), R(D));
182
+ ([j, x]) => {
183
+ t !== (j === x) && (y ? y() : Te(() => y == null ? void 0 : y()), P(j));
184
184
  },
185
185
  {
186
- flush: d,
186
+ flush: h,
187
187
  deep: v,
188
188
  immediate: !0
189
189
  }
190
190
  );
191
191
  })];
192
- return p != null && S.push(
193
- tt(p, g).then(() => de(e)).finally(() => (y == null || y(), de(e)))
194
- ), Promise.race(S);
192
+ return p != null && b.push(
193
+ nt(p, g).then(() => pe(e)).finally(() => (y == null || y(), pe(e)))
194
+ ), Promise.race(b);
195
195
  }
196
196
  function o(a) {
197
197
  return n((f) => !!f, a);
@@ -206,25 +206,25 @@ function nt(e, t = !1) {
206
206
  return n(Number.isNaN, a);
207
207
  }
208
208
  function l(a, f) {
209
- return n((d) => {
210
- const v = Array.from(d);
211
- return v.includes(a) || v.includes(de(a));
209
+ return n((h) => {
210
+ const v = Array.from(h);
211
+ return v.includes(a) || v.includes(pe(a));
212
212
  }, f);
213
213
  }
214
- function h(a) {
214
+ function d(a) {
215
215
  return c(1, a);
216
216
  }
217
217
  function c(a = 1, f) {
218
- let d = -1;
219
- return n(() => (d += 1, d >= a), f);
218
+ let h = -1;
219
+ return n(() => (h += 1, h >= a), f);
220
220
  }
221
- return Array.isArray(de(e)) ? {
221
+ return Array.isArray(pe(e)) ? {
222
222
  toMatch: n,
223
223
  toContains: l,
224
- changed: h,
224
+ changed: d,
225
225
  changedTimes: c,
226
226
  get not() {
227
- return nt(e, !t);
227
+ return rt(e, !t);
228
228
  }
229
229
  } : {
230
230
  toMatch: n,
@@ -233,70 +233,70 @@ function nt(e, t = !1) {
233
233
  toBeNull: s,
234
234
  toBeNaN: u,
235
235
  toBeUndefined: i,
236
- changed: h,
236
+ changed: d,
237
237
  changedTimes: c,
238
238
  get not() {
239
- return nt(e, !t);
239
+ return rt(e, !t);
240
240
  }
241
241
  };
242
242
  }
243
- function fr(e) {
244
- return nt(e);
243
+ function hr(e) {
244
+ return rt(e);
245
245
  }
246
- function hr(e, t, n) {
246
+ function pr(e, t, n) {
247
247
  let r;
248
- Ht(n) ? r = {
248
+ zt(n) ? r = {
249
249
  evaluating: n
250
250
  } : r = n || {};
251
251
  const {
252
252
  lazy: o = !1,
253
253
  evaluating: s = void 0,
254
254
  shallow: i = !0,
255
- onError: u = et
256
- } = r, l = Z(!o), h = i ? J(t) : Z(t);
255
+ onError: u = tt
256
+ } = r, l = Z(!o), d = i ? J(t) : Z(t);
257
257
  let c = 0;
258
- return zt(async (a) => {
258
+ return Jt(async (a) => {
259
259
  if (!l.value)
260
260
  return;
261
261
  c++;
262
262
  const f = c;
263
- let d = !1;
263
+ let h = !1;
264
264
  s && Promise.resolve().then(() => {
265
265
  s.value = !0;
266
266
  });
267
267
  try {
268
268
  const v = await e((p) => {
269
269
  a(() => {
270
- s && (s.value = !1), d || p();
270
+ s && (s.value = !1), h || p();
271
271
  });
272
272
  });
273
- f === c && (h.value = v);
273
+ f === c && (d.value = v);
274
274
  } catch (v) {
275
275
  u(v);
276
276
  } finally {
277
- s && f === c && (s.value = !1), d = !0;
277
+ s && f === c && (s.value = !1), h = !0;
278
278
  }
279
- }), o ? K(() => (l.value = !0, h.value)) : h;
279
+ }), o ? K(() => (l.value = !0, d.value)) : d;
280
280
  }
281
- function dr(e, t, n) {
281
+ function mr(e, t, n) {
282
282
  const {
283
283
  immediate: r = !0,
284
284
  delay: o = 0,
285
- onError: s = et,
286
- onSuccess: i = et,
285
+ onError: s = tt,
286
+ onSuccess: i = tt,
287
287
  resetOnExecute: u = !0,
288
288
  shallow: l = !0,
289
- throwError: h
290
- } = {}, c = l ? J(t) : Z(t), a = Z(!1), f = Z(!1), d = J(void 0);
289
+ throwError: d
290
+ } = {}, c = l ? J(t) : Z(t), a = Z(!1), f = Z(!1), h = J(void 0);
291
291
  async function v(y = 0, ..._) {
292
- u && (c.value = t), d.value = void 0, a.value = !1, f.value = !0, y > 0 && await tt(y);
293
- const S = typeof e == "function" ? e(..._) : e;
292
+ u && (c.value = t), h.value = void 0, a.value = !1, f.value = !0, y > 0 && await nt(y);
293
+ const b = typeof e == "function" ? e(..._) : e;
294
294
  try {
295
- const R = await S;
296
- c.value = R, a.value = !0, i(R);
297
- } catch (R) {
298
- if (d.value = R, s(R), h)
299
- throw R;
295
+ const P = await b;
296
+ c.value = P, a.value = !0, i(P);
297
+ } catch (P) {
298
+ if (h.value = P, s(P), d)
299
+ throw P;
300
300
  } finally {
301
301
  f.value = !1;
302
302
  }
@@ -307,12 +307,12 @@ function dr(e, t, n) {
307
307
  state: c,
308
308
  isReady: a,
309
309
  isLoading: f,
310
- error: d,
310
+ error: h,
311
311
  execute: v
312
312
  };
313
313
  function g() {
314
314
  return new Promise((y, _) => {
315
- fr(f).toBe(!1).then(() => y(p)).catch(_);
315
+ hr(f).toBe(!1).then(() => y(p)).catch(_);
316
316
  });
317
317
  }
318
318
  return {
@@ -324,14 +324,14 @@ function dr(e, t, n) {
324
324
  }
325
325
  function W(e, t) {
326
326
  t = t || {};
327
- const n = [...Object.keys(t), "__Vue"], r = [...Object.values(t), Gn];
327
+ const n = [...Object.keys(t), "__Vue"], r = [...Object.values(t), Hn];
328
328
  try {
329
329
  return new Function(...n, `return (${e})`)(...r);
330
330
  } catch (o) {
331
331
  throw new Error(o + " in function code: " + e);
332
332
  }
333
333
  }
334
- function pr(e) {
334
+ function gr(e) {
335
335
  if (e.startsWith(":")) {
336
336
  e = e.slice(1);
337
337
  try {
@@ -341,17 +341,17 @@ function pr(e) {
341
341
  }
342
342
  }
343
343
  }
344
- function rn(e) {
344
+ function on(e) {
345
345
  return e.constructor.name === "AsyncFunction";
346
346
  }
347
- function mr(e, t) {
347
+ function vr(e, t) {
348
348
  const { deepCompare: n = !1 } = e;
349
349
  return n ? ht(e.value) : Z(e.value);
350
350
  }
351
- function gr(e, t, n) {
351
+ function yr(e, t, n) {
352
352
  const { bind: r = {}, code: o, const: s = [] } = e, i = Object.values(r).map((c, a) => s[a] === 1 ? c : t.getVueRefObjectOrValue(c));
353
- if (rn(new Function(o)))
354
- return hr(
353
+ if (on(new Function(o)))
354
+ return pr(
355
355
  async () => {
356
356
  const c = Object.fromEntries(
357
357
  Object.keys(r).map((a, f) => [a, i[f]])
@@ -366,7 +366,7 @@ function gr(e, t, n) {
366
366
  ), l = W(o, u);
367
367
  return K(l);
368
368
  }
369
- function vr(e, t, n) {
369
+ function wr(e, t, n) {
370
370
  const {
371
371
  inputs: r = [],
372
372
  code: o,
@@ -374,77 +374,77 @@ function vr(e, t, n) {
374
374
  data: i,
375
375
  asyncInit: u = null,
376
376
  deepEqOnInput: l = 0
377
- } = e, h = s || Array(r.length).fill(0), c = i || Array(r.length).fill(0), a = r.filter((g, y) => h[y] === 0 && c[y] === 0).map((g) => t.getVueRefObject(g));
377
+ } = e, d = s || Array(r.length).fill(0), c = i || Array(r.length).fill(0), a = r.filter((g, y) => d[y] === 0 && c[y] === 0).map((g) => t.getVueRefObject(g));
378
378
  function f() {
379
379
  return r.map(
380
380
  (g, y) => c[y] === 1 ? g : t.getObjectToValue(g)
381
381
  );
382
382
  }
383
- const d = W(o), v = l === 0 ? J(we) : ht(we), p = { immediate: !0, deep: !0 };
384
- return rn(d) ? (v.value = u, G(
383
+ const h = W(o), v = l === 0 ? J(Ee) : ht(Ee), p = { immediate: !0, deep: !0 };
384
+ return on(h) ? (v.value = u, G(
385
385
  a,
386
386
  async () => {
387
- f().some(Ee) || (v.value = await d(...f()));
387
+ f().some(_e) || (v.value = await h(...f()));
388
388
  },
389
389
  p
390
390
  )) : G(
391
391
  a,
392
392
  () => {
393
393
  const g = f();
394
- g.some(Ee) || (v.value = d(...g));
394
+ g.some(_e) || (v.value = h(...g));
395
395
  },
396
396
  p
397
- ), Hn(v);
397
+ ), Jn(v);
398
398
  }
399
- function yr() {
399
+ function Er() {
400
400
  return [];
401
401
  }
402
- const Se = _e(yr);
403
- function on(e, t) {
404
- var s, i, u, l, h;
405
- const n = Se.getOrDefault(e.id), r = /* @__PURE__ */ new Map();
402
+ const Oe = Se(Er);
403
+ function sn(e, t) {
404
+ var s, i, u, l, d;
405
+ const n = Oe.getOrDefault(e.id), r = /* @__PURE__ */ new Map();
406
406
  n.push(r), t.replaceSnapshot({
407
- scopeSnapshot: sn()
407
+ scopeSnapshot: an()
408
408
  });
409
409
  const o = (c, a) => {
410
410
  r.set(c.id, a);
411
411
  };
412
412
  return (s = e.refs) == null || s.forEach((c) => {
413
- o(c, mr(c));
413
+ o(c, vr(c));
414
414
  }), (i = e.web_computed) == null || i.forEach((c) => {
415
- const { init: a } = c, f = c.deepEqOnInput === void 0 ? J(a ?? we) : ht(a ?? we);
415
+ const { init: a } = c, f = c.deepEqOnInput === void 0 ? J(a ?? Ee) : ht(a ?? Ee);
416
416
  o(c, f);
417
417
  }), (u = e.vue_computed) == null || u.forEach((c) => {
418
418
  o(
419
419
  c,
420
- gr(c, t)
420
+ yr(c, t)
421
421
  );
422
422
  }), (l = e.js_computed) == null || l.forEach((c) => {
423
423
  o(
424
424
  c,
425
- vr(c, t)
425
+ wr(c, t)
426
426
  );
427
- }), (h = e.data) == null || h.forEach((c) => {
427
+ }), (d = e.data) == null || d.forEach((c) => {
428
428
  o(c, c.value);
429
429
  }), n.length - 1;
430
430
  }
431
- function sn() {
431
+ function an() {
432
432
  const e = /* @__PURE__ */ new Map();
433
- for (const [n, r] of Se) {
433
+ for (const [n, r] of Oe) {
434
434
  const o = r[r.length - 1];
435
435
  e.set(n, [o]);
436
436
  }
437
437
  function t(n) {
438
- return an(n, e);
438
+ return cn(n, e);
439
439
  }
440
440
  return {
441
441
  getVueRef: t
442
442
  };
443
443
  }
444
- function wr(e) {
445
- return an(e, Se);
444
+ function _r(e) {
445
+ return cn(e, Oe);
446
446
  }
447
- function an(e, t) {
447
+ function cn(e, t) {
448
448
  const n = t.get(e.sid);
449
449
  if (!n)
450
450
  throw new Error(`Scope ${e.sid} not found`);
@@ -453,29 +453,29 @@ function an(e, t) {
453
453
  throw new Error(`Var ${e.id} not found in scope ${e.sid}`);
454
454
  return o;
455
455
  }
456
- function Er(e) {
457
- Se.delete(e);
456
+ function Sr(e) {
457
+ Oe.delete(e);
458
458
  }
459
- function cn(e, t) {
460
- const n = Se.get(e);
459
+ function un(e, t) {
460
+ const n = Oe.get(e);
461
461
  n && n.splice(t, 1);
462
462
  }
463
- const dt = _e(() => []);
464
- function _r(e) {
463
+ const pt = Se(() => []);
464
+ function br(e) {
465
465
  var r;
466
- const t = /* @__PURE__ */ new Map(), n = dt.getOrDefault(e.id).push(t);
466
+ const t = /* @__PURE__ */ new Map(), n = pt.getOrDefault(e.id).push(t);
467
467
  return (r = e.eRefs) == null || r.forEach((o) => {
468
468
  const s = J();
469
469
  t.set(o.id, s);
470
470
  }), n;
471
471
  }
472
- function br(e, t) {
473
- const n = dt.get(e);
472
+ function Or(e, t) {
473
+ const n = pt.get(e);
474
474
  n && n.splice(t, 1);
475
475
  }
476
- function un() {
476
+ function ln() {
477
477
  const e = new Map(
478
- Array.from(dt.entries()).map(([n, r]) => [
478
+ Array.from(pt.entries()).map(([n, r]) => [
479
479
  n,
480
480
  r[r.length - 1]
481
481
  ])
@@ -521,29 +521,29 @@ var N;
521
521
  return a.type === "event";
522
522
  }
523
523
  e.isEventContext = l;
524
- function h(a) {
524
+ function d(a) {
525
525
  return a.type === "ele_ref";
526
526
  }
527
- e.isElementRef = h;
527
+ e.isElementRef = d;
528
528
  function c(a) {
529
529
  return a.type !== void 0;
530
530
  }
531
531
  e.IsBinding = c;
532
532
  })(N || (N = {}));
533
- const Me = _e(() => []);
534
- function Sr(e) {
535
- const t = Me.getOrDefault(e);
533
+ const Fe = Se(() => []);
534
+ function Rr(e) {
535
+ const t = Fe.getOrDefault(e);
536
536
  return t.push(J({})), t.length - 1;
537
537
  }
538
- function Or(e, t, n) {
539
- Me.get(e)[t].value = n;
538
+ function Pr(e, t, n) {
539
+ Fe.get(e)[t].value = n;
540
540
  }
541
- function Rr(e) {
542
- Me.delete(e);
541
+ function kr(e) {
542
+ Fe.delete(e);
543
543
  }
544
- function Pr() {
544
+ function Vr() {
545
545
  const e = /* @__PURE__ */ new Map();
546
- for (const [n, r] of Me) {
546
+ for (const [n, r] of Fe) {
547
547
  const o = r[r.length - 1];
548
548
  e.set(n, o);
549
549
  }
@@ -554,45 +554,45 @@ function Pr() {
554
554
  getPropsValue: t
555
555
  };
556
556
  }
557
- const ln = /* @__PURE__ */ new Map(), pt = _e(() => /* @__PURE__ */ new Map()), fn = /* @__PURE__ */ new Set(), hn = Symbol("vfor");
558
- function kr(e) {
559
- const t = dn() ?? {};
560
- Ne(hn, { ...t, [e.fid]: e.key });
557
+ const fn = /* @__PURE__ */ new Map(), mt = Se(() => /* @__PURE__ */ new Map()), dn = /* @__PURE__ */ new Set(), hn = Symbol("vfor");
558
+ function Nr(e) {
559
+ const t = pn() ?? {};
560
+ Ie(hn, { ...t, [e.fid]: e.key });
561
561
  }
562
- function dn() {
562
+ function pn() {
563
563
  return ee(hn, void 0);
564
564
  }
565
- function Vr() {
566
- const e = dn(), t = /* @__PURE__ */ new Map();
565
+ function Ir() {
566
+ const e = pn(), t = /* @__PURE__ */ new Map();
567
567
  return e === void 0 || Object.keys(e).forEach((n) => {
568
568
  t.set(n, e[n]);
569
569
  }), t;
570
570
  }
571
- function Nr(e, t, n, r) {
571
+ function Tr(e, t, n, r) {
572
572
  if (r) {
573
- fn.add(e);
573
+ dn.add(e);
574
574
  return;
575
575
  }
576
576
  let o;
577
577
  if (n)
578
- o = new xr(t);
578
+ o = new Mr(t);
579
579
  else {
580
580
  const s = Array.isArray(t) ? t : Object.entries(t).map(([i, u], l) => [u, i, l]);
581
- o = new Cr(s);
581
+ o = new Dr(s);
582
582
  }
583
- ln.set(e, o);
583
+ fn.set(e, o);
584
584
  }
585
- function Ir(e, t, n) {
586
- const r = pt.getOrDefault(e);
585
+ function Ar(e, t, n) {
586
+ const r = mt.getOrDefault(e);
587
587
  r.has(t) || r.set(t, Z(n)), r.get(t).value = n;
588
588
  }
589
- function Tr(e) {
589
+ function $r(e) {
590
590
  const t = /* @__PURE__ */ new Set();
591
591
  function n(o) {
592
592
  t.add(o);
593
593
  }
594
594
  function r() {
595
- const o = pt.get(e);
595
+ const o = mt.get(e);
596
596
  o !== void 0 && o.forEach((s, i) => {
597
597
  t.has(i) || o.delete(i);
598
598
  });
@@ -602,29 +602,29 @@ function Tr(e) {
602
602
  removeUnusedKeys: r
603
603
  };
604
604
  }
605
- function Ar(e) {
606
- const t = e, n = Vr();
605
+ function jr(e) {
606
+ const t = e, n = Ir();
607
607
  function r(o) {
608
608
  const s = n.get(o) ?? t;
609
- return pt.get(o).get(s).value;
609
+ return mt.get(o).get(s).value;
610
610
  }
611
611
  return {
612
612
  getVForIndex: r
613
613
  };
614
614
  }
615
- function $r(e) {
616
- return ln.get(e.binding.fid).createRefObjectWithPaths(e);
615
+ function Cr(e) {
616
+ return fn.get(e.binding.fid).createRefObjectWithPaths(e);
617
617
  }
618
- function jr(e) {
619
- return fn.has(e);
618
+ function xr(e) {
619
+ return dn.has(e);
620
620
  }
621
- class Cr {
621
+ class Dr {
622
622
  constructor(t) {
623
623
  this.array = t;
624
624
  }
625
625
  createRefObjectWithPaths(t) {
626
626
  const { binding: n } = t, { snapshot: r } = t, { path: o = [] } = n, s = [...o], i = r.getVForIndex(n.fid);
627
- return s.unshift(i), je(() => ({
627
+ return s.unshift(i), Ce(() => ({
628
628
  get: () => be(
629
629
  this.array,
630
630
  s,
@@ -636,7 +636,7 @@ class Cr {
636
636
  }));
637
637
  }
638
638
  }
639
- class xr {
639
+ class Mr {
640
640
  constructor(t) {
641
641
  B(this, "_isDictSource");
642
642
  this.binding = t;
@@ -649,11 +649,11 @@ class xr {
649
649
  return this._isDictSource;
650
650
  }
651
651
  createRefObjectWithPaths(t) {
652
- const { binding: n } = t, { path: r = [] } = n, o = [...r], { snapshot: s } = t, i = s.getVueRefObject(this.binding), u = this.isDictSource(i), l = s.getVForIndex(n.fid), h = u && o.length === 0 ? [0] : [];
653
- return o.unshift(l, ...h), je(() => ({
652
+ const { binding: n } = t, { path: r = [] } = n, o = [...r], { snapshot: s } = t, i = s.getVueRefObject(this.binding), u = this.isDictSource(i), l = s.getVForIndex(n.fid), d = u && o.length === 0 ? [0] : [];
653
+ return o.unshift(l, ...d), Ce(() => ({
654
654
  get: () => {
655
- const c = q(i), a = u ? Object.entries(c).map(([f, d], v) => [
656
- d,
655
+ const c = q(i), a = u ? Object.entries(c).map(([f, h], v) => [
656
+ h,
657
657
  f,
658
658
  v
659
659
  ]) : c;
@@ -673,16 +673,16 @@ class xr {
673
673
  const f = Object.keys(a);
674
674
  if (l >= f.length)
675
675
  throw new Error("Cannot set value to a non-existent key");
676
- const d = f[l];
677
- Ze(
676
+ const h = f[l];
677
+ et(
678
678
  a,
679
- [d],
679
+ [h],
680
680
  c,
681
681
  s.getObjectToValue
682
682
  );
683
683
  return;
684
684
  }
685
- Ze(
685
+ et(
686
686
  a,
687
687
  o,
688
688
  c,
@@ -692,25 +692,25 @@ class xr {
692
692
  }));
693
693
  }
694
694
  }
695
- function Rt(e) {
695
+ function Pt(e) {
696
696
  return e == null;
697
697
  }
698
- function Dr() {
699
- return pn().__VUE_DEVTOOLS_GLOBAL_HOOK__;
698
+ function Fr() {
699
+ return mn().__VUE_DEVTOOLS_GLOBAL_HOOK__;
700
700
  }
701
- function pn() {
701
+ function mn() {
702
702
  return typeof navigator < "u" && typeof window < "u" ? window : typeof globalThis < "u" ? globalThis : {};
703
703
  }
704
- const Mr = typeof Proxy == "function", Fr = "devtools-plugin:setup", Br = "plugin:settings:set";
705
- let ie, rt;
706
- function Lr() {
704
+ const Br = typeof Proxy == "function", Lr = "devtools-plugin:setup", Wr = "plugin:settings:set";
705
+ let ie, ot;
706
+ function Ur() {
707
707
  var e;
708
- return ie !== void 0 || (typeof window < "u" && window.performance ? (ie = !0, rt = window.performance) : typeof globalThis < "u" && (!((e = globalThis.perf_hooks) === null || e === void 0) && e.performance) ? (ie = !0, rt = globalThis.perf_hooks.performance) : ie = !1), ie;
708
+ return ie !== void 0 || (typeof window < "u" && window.performance ? (ie = !0, ot = window.performance) : typeof globalThis < "u" && (!((e = globalThis.perf_hooks) === null || e === void 0) && e.performance) ? (ie = !0, ot = globalThis.perf_hooks.performance) : ie = !1), ie;
709
709
  }
710
- function Wr() {
711
- return Lr() ? rt.now() : Date.now();
710
+ function Kr() {
711
+ return Ur() ? ot.now() : Date.now();
712
712
  }
713
- class Ur {
713
+ class Gr {
714
714
  constructor(t, n) {
715
715
  this.target = null, this.targetQueue = [], this.onQueue = [], this.plugin = t, this.hook = n;
716
716
  const r = {};
@@ -738,9 +738,9 @@ class Ur {
738
738
  s = i;
739
739
  },
740
740
  now() {
741
- return Wr();
741
+ return Kr();
742
742
  }
743
- }, n && n.on(Br, (i, u) => {
743
+ }, n && n.on(Wr, (i, u) => {
744
744
  i === this.plugin.id && this.fallbacks.setSettings(u);
745
745
  }), this.proxiedOn = new Proxy({}, {
746
746
  get: (i, u) => this.target ? this.target.on[u] : (...l) => {
@@ -755,11 +755,11 @@ class Ur {
755
755
  args: l,
756
756
  resolve: () => {
757
757
  }
758
- }), this.fallbacks[u](...l)) : (...l) => new Promise((h) => {
758
+ }), this.fallbacks[u](...l)) : (...l) => new Promise((d) => {
759
759
  this.targetQueue.push({
760
760
  method: u,
761
761
  args: l,
762
- resolve: h
762
+ resolve: d
763
763
  });
764
764
  })
765
765
  });
@@ -772,12 +772,12 @@ class Ur {
772
772
  n.resolve(await this.target[n.method](...n.args));
773
773
  }
774
774
  }
775
- function Kr(e, t) {
776
- const n = e, r = pn(), o = Dr(), s = Mr && n.enableEarlyProxy;
775
+ function qr(e, t) {
776
+ const n = e, r = mn(), o = Fr(), s = Br && n.enableEarlyProxy;
777
777
  if (o && (r.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__ || !s))
778
- o.emit(Fr, e, t);
778
+ o.emit(Lr, e, t);
779
779
  else {
780
- const i = s ? new Ur(n, o) : null;
780
+ const i = s ? new Gr(n, o) : null;
781
781
  (r.__VUE_DEVTOOLS_PLUGINS__ = r.__VUE_DEVTOOLS_PLUGINS__ || []).push({
782
782
  pluginDescriptor: n,
783
783
  setupFn: t,
@@ -787,16 +787,16 @@ function Kr(e, t) {
787
787
  }
788
788
  var O = {};
789
789
  const z = typeof document < "u";
790
- function mn(e) {
790
+ function gn(e) {
791
791
  return typeof e == "object" || "displayName" in e || "props" in e || "__vccOpts" in e;
792
792
  }
793
- function Gr(e) {
793
+ function Hr(e) {
794
794
  return e.__esModule || e[Symbol.toStringTag] === "Module" || // support CF with dynamic imports that do not
795
795
  // add the Module string tag
796
- e.default && mn(e.default);
796
+ e.default && gn(e.default);
797
797
  }
798
798
  const I = Object.assign;
799
- function He(e, t) {
799
+ function ze(e, t) {
800
800
  const n = {};
801
801
  for (const r in t) {
802
802
  const o = t[r];
@@ -804,84 +804,84 @@ function He(e, t) {
804
804
  }
805
805
  return n;
806
806
  }
807
- const ve = () => {
807
+ const ye = () => {
808
808
  }, U = Array.isArray;
809
- function P(e) {
809
+ function R(e) {
810
810
  const t = Array.from(arguments).slice(1);
811
811
  console.warn.apply(console, ["[Vue Router warn]: " + e].concat(t));
812
812
  }
813
- const gn = /#/g, qr = /&/g, Hr = /\//g, zr = /=/g, Jr = /\?/g, vn = /\+/g, Qr = /%5B/g, Yr = /%5D/g, yn = /%5E/g, Xr = /%60/g, wn = /%7B/g, Zr = /%7C/g, En = /%7D/g, eo = /%20/g;
814
- function mt(e) {
815
- return encodeURI("" + e).replace(Zr, "|").replace(Qr, "[").replace(Yr, "]");
813
+ const vn = /#/g, zr = /&/g, Jr = /\//g, Qr = /=/g, Yr = /\?/g, yn = /\+/g, Xr = /%5B/g, Zr = /%5D/g, wn = /%5E/g, eo = /%60/g, En = /%7B/g, to = /%7C/g, _n = /%7D/g, no = /%20/g;
814
+ function gt(e) {
815
+ return encodeURI("" + e).replace(to, "|").replace(Xr, "[").replace(Zr, "]");
816
816
  }
817
- function to(e) {
818
- return mt(e).replace(wn, "{").replace(En, "}").replace(yn, "^");
817
+ function ro(e) {
818
+ return gt(e).replace(En, "{").replace(_n, "}").replace(wn, "^");
819
819
  }
820
- function ot(e) {
821
- return mt(e).replace(vn, "%2B").replace(eo, "+").replace(gn, "%23").replace(qr, "%26").replace(Xr, "`").replace(wn, "{").replace(En, "}").replace(yn, "^");
820
+ function st(e) {
821
+ return gt(e).replace(yn, "%2B").replace(no, "+").replace(vn, "%23").replace(zr, "%26").replace(eo, "`").replace(En, "{").replace(_n, "}").replace(wn, "^");
822
822
  }
823
- function no(e) {
824
- return ot(e).replace(zr, "%3D");
823
+ function oo(e) {
824
+ return st(e).replace(Qr, "%3D");
825
825
  }
826
- function ro(e) {
827
- return mt(e).replace(gn, "%23").replace(Jr, "%3F");
826
+ function so(e) {
827
+ return gt(e).replace(vn, "%23").replace(Yr, "%3F");
828
828
  }
829
- function oo(e) {
830
- return e == null ? "" : ro(e).replace(Hr, "%2F");
829
+ function io(e) {
830
+ return e == null ? "" : so(e).replace(Jr, "%2F");
831
831
  }
832
832
  function ae(e) {
833
833
  try {
834
834
  return decodeURIComponent("" + e);
835
835
  } catch {
836
- O.NODE_ENV !== "production" && P(`Error decoding "${e}". Using original value`);
836
+ O.NODE_ENV !== "production" && R(`Error decoding "${e}". Using original value`);
837
837
  }
838
838
  return "" + e;
839
839
  }
840
- const so = /\/$/, io = (e) => e.replace(so, "");
841
- function ze(e, t, n = "/") {
840
+ const ao = /\/$/, co = (e) => e.replace(ao, "");
841
+ function Je(e, t, n = "/") {
842
842
  let r, o = {}, s = "", i = "";
843
843
  const u = t.indexOf("#");
844
844
  let l = t.indexOf("?");
845
- return u < l && u >= 0 && (l = -1), l > -1 && (r = t.slice(0, l), s = t.slice(l + 1, u > -1 ? u : t.length), o = e(s)), u > -1 && (r = r || t.slice(0, u), i = t.slice(u, t.length)), r = uo(r ?? t, n), {
845
+ return u < l && u >= 0 && (l = -1), l > -1 && (r = t.slice(0, l), s = t.slice(l + 1, u > -1 ? u : t.length), o = e(s)), u > -1 && (r = r || t.slice(0, u), i = t.slice(u, t.length)), r = fo(r ?? t, n), {
846
846
  fullPath: r + (s && "?") + s + i,
847
847
  path: r,
848
848
  query: o,
849
849
  hash: ae(i)
850
850
  };
851
851
  }
852
- function ao(e, t) {
852
+ function uo(e, t) {
853
853
  const n = t.query ? e(t.query) : "";
854
854
  return t.path + (n && "?") + n + (t.hash || "");
855
855
  }
856
- function Pt(e, t) {
856
+ function kt(e, t) {
857
857
  return !t || !e.toLowerCase().startsWith(t.toLowerCase()) ? e : e.slice(t.length) || "/";
858
858
  }
859
- function kt(e, t, n) {
859
+ function Vt(e, t, n) {
860
860
  const r = t.matched.length - 1, o = n.matched.length - 1;
861
- return r > -1 && r === o && te(t.matched[r], n.matched[o]) && _n(t.params, n.params) && e(t.query) === e(n.query) && t.hash === n.hash;
861
+ return r > -1 && r === o && te(t.matched[r], n.matched[o]) && Sn(t.params, n.params) && e(t.query) === e(n.query) && t.hash === n.hash;
862
862
  }
863
863
  function te(e, t) {
864
864
  return (e.aliasOf || e) === (t.aliasOf || t);
865
865
  }
866
- function _n(e, t) {
866
+ function Sn(e, t) {
867
867
  if (Object.keys(e).length !== Object.keys(t).length)
868
868
  return !1;
869
869
  for (const n in e)
870
- if (!co(e[n], t[n]))
870
+ if (!lo(e[n], t[n]))
871
871
  return !1;
872
872
  return !0;
873
873
  }
874
- function co(e, t) {
875
- return U(e) ? Vt(e, t) : U(t) ? Vt(t, e) : e === t;
874
+ function lo(e, t) {
875
+ return U(e) ? Nt(e, t) : U(t) ? Nt(t, e) : e === t;
876
876
  }
877
- function Vt(e, t) {
877
+ function Nt(e, t) {
878
878
  return U(t) ? e.length === t.length && e.every((n, r) => n === t[r]) : e.length === 1 && e[0] === t;
879
879
  }
880
- function uo(e, t) {
880
+ function fo(e, t) {
881
881
  if (e.startsWith("/"))
882
882
  return e;
883
883
  if (O.NODE_ENV !== "production" && !t.startsWith("/"))
884
- return P(`Cannot resolve a relative location without an absolute path. Trying to resolve "${e}" from "${t}". It should look like "/${t}".`), e;
884
+ return R(`Cannot resolve a relative location without an absolute path. Trying to resolve "${e}" from "${t}". It should look like "/${t}".`), e;
885
885
  if (!e)
886
886
  return t;
887
887
  const n = t.split("/"), r = e.split("/"), o = r[r.length - 1];
@@ -915,7 +915,7 @@ var oe;
915
915
  (function(e) {
916
916
  e.back = "back", e.forward = "forward", e.unknown = "";
917
917
  })(oe || (oe = {}));
918
- const Je = "";
918
+ const Qe = "";
919
919
  function bn(e) {
920
920
  if (!e)
921
921
  if (z) {
@@ -923,13 +923,13 @@ function bn(e) {
923
923
  e = t && t.getAttribute("href") || "/", e = e.replace(/^\w+:\/\/[^\/]+/, "");
924
924
  } else
925
925
  e = "/";
926
- return e[0] !== "/" && e[0] !== "#" && (e = "/" + e), io(e);
926
+ return e[0] !== "/" && e[0] !== "#" && (e = "/" + e), co(e);
927
927
  }
928
- const lo = /^[^#]+#/;
929
- function Sn(e, t) {
930
- return e.replace(lo, "#") + t;
928
+ const ho = /^[^#]+#/;
929
+ function On(e, t) {
930
+ return e.replace(ho, "#") + t;
931
931
  }
932
- function fo(e, t) {
932
+ function po(e, t) {
933
933
  const n = document.documentElement.getBoundingClientRect(), r = e.getBoundingClientRect();
934
934
  return {
935
935
  behavior: t.behavior,
@@ -937,11 +937,11 @@ function fo(e, t) {
937
937
  top: r.top - n.top - (t.top || 0)
938
938
  };
939
939
  }
940
- const Fe = () => ({
940
+ const Be = () => ({
941
941
  left: window.scrollX,
942
942
  top: window.scrollY
943
943
  });
944
- function ho(e) {
944
+ function mo(e) {
945
945
  let t;
946
946
  if ("el" in e) {
947
947
  const n = e.el, r = typeof n == "string" && n.startsWith("#");
@@ -949,56 +949,56 @@ function ho(e) {
949
949
  try {
950
950
  const s = document.querySelector(e.el);
951
951
  if (r && s) {
952
- P(`The selector "${e.el}" should be passed as "el: document.querySelector('${e.el}')" because it starts with "#".`);
952
+ R(`The selector "${e.el}" should be passed as "el: document.querySelector('${e.el}')" because it starts with "#".`);
953
953
  return;
954
954
  }
955
955
  } catch {
956
- P(`The selector "${e.el}" is invalid. If you are using an id selector, make sure to escape it. You can find more information about escaping characters in selectors at https://mathiasbynens.be/notes/css-escapes or use CSS.escape (https://developer.mozilla.org/en-US/docs/Web/API/CSS/escape).`);
956
+ R(`The selector "${e.el}" is invalid. If you are using an id selector, make sure to escape it. You can find more information about escaping characters in selectors at https://mathiasbynens.be/notes/css-escapes or use CSS.escape (https://developer.mozilla.org/en-US/docs/Web/API/CSS/escape).`);
957
957
  return;
958
958
  }
959
959
  const o = typeof n == "string" ? r ? document.getElementById(n.slice(1)) : document.querySelector(n) : n;
960
960
  if (!o) {
961
- O.NODE_ENV !== "production" && P(`Couldn't find element using selector "${e.el}" returned by scrollBehavior.`);
961
+ O.NODE_ENV !== "production" && R(`Couldn't find element using selector "${e.el}" returned by scrollBehavior.`);
962
962
  return;
963
963
  }
964
- t = fo(o, e);
964
+ t = po(o, e);
965
965
  } else
966
966
  t = e;
967
967
  "scrollBehavior" in document.documentElement.style ? window.scrollTo(t) : window.scrollTo(t.left != null ? t.left : window.scrollX, t.top != null ? t.top : window.scrollY);
968
968
  }
969
- function Nt(e, t) {
969
+ function It(e, t) {
970
970
  return (history.state ? history.state.position - t : -1) + e;
971
971
  }
972
- const st = /* @__PURE__ */ new Map();
973
- function po(e, t) {
974
- st.set(e, t);
972
+ const it = /* @__PURE__ */ new Map();
973
+ function go(e, t) {
974
+ it.set(e, t);
975
975
  }
976
- function mo(e) {
977
- const t = st.get(e);
978
- return st.delete(e), t;
976
+ function vo(e) {
977
+ const t = it.get(e);
978
+ return it.delete(e), t;
979
979
  }
980
- let go = () => location.protocol + "//" + location.host;
981
- function On(e, t) {
980
+ let yo = () => location.protocol + "//" + location.host;
981
+ function Rn(e, t) {
982
982
  const { pathname: n, search: r, hash: o } = t, s = e.indexOf("#");
983
983
  if (s > -1) {
984
984
  let u = o.includes(e.slice(s)) ? e.slice(s).length : 1, l = o.slice(u);
985
- return l[0] !== "/" && (l = "/" + l), Pt(l, "");
985
+ return l[0] !== "/" && (l = "/" + l), kt(l, "");
986
986
  }
987
- return Pt(n, e) + r + o;
987
+ return kt(n, e) + r + o;
988
988
  }
989
- function vo(e, t, n, r) {
989
+ function wo(e, t, n, r) {
990
990
  let o = [], s = [], i = null;
991
991
  const u = ({ state: f }) => {
992
- const d = On(e, location), v = n.value, p = t.value;
992
+ const h = Rn(e, location), v = n.value, p = t.value;
993
993
  let g = 0;
994
994
  if (f) {
995
- if (n.value = d, t.value = f, i && i === v) {
995
+ if (n.value = h, t.value = f, i && i === v) {
996
996
  i = null;
997
997
  return;
998
998
  }
999
999
  g = p ? f.position - p.position : 0;
1000
1000
  } else
1001
- r(d);
1001
+ r(h);
1002
1002
  o.forEach((y) => {
1003
1003
  y(n.value, v, {
1004
1004
  delta: g,
@@ -1010,17 +1010,17 @@ function vo(e, t, n, r) {
1010
1010
  function l() {
1011
1011
  i = n.value;
1012
1012
  }
1013
- function h(f) {
1013
+ function d(f) {
1014
1014
  o.push(f);
1015
- const d = () => {
1015
+ const h = () => {
1016
1016
  const v = o.indexOf(f);
1017
1017
  v > -1 && o.splice(v, 1);
1018
1018
  };
1019
- return s.push(d), d;
1019
+ return s.push(h), h;
1020
1020
  }
1021
1021
  function c() {
1022
1022
  const { history: f } = window;
1023
- f.state && f.replaceState(I({}, f.state, { scroll: Fe() }), "");
1023
+ f.state && f.replaceState(I({}, f.state, { scroll: Be() }), "");
1024
1024
  }
1025
1025
  function a() {
1026
1026
  for (const f of s)
@@ -1031,23 +1031,23 @@ function vo(e, t, n, r) {
1031
1031
  passive: !0
1032
1032
  }), {
1033
1033
  pauseListeners: l,
1034
- listen: h,
1034
+ listen: d,
1035
1035
  destroy: a
1036
1036
  };
1037
1037
  }
1038
- function It(e, t, n, r = !1, o = !1) {
1038
+ function Tt(e, t, n, r = !1, o = !1) {
1039
1039
  return {
1040
1040
  back: e,
1041
1041
  current: t,
1042
1042
  forward: n,
1043
1043
  replaced: r,
1044
1044
  position: window.history.length,
1045
- scroll: o ? Fe() : null
1045
+ scroll: o ? Be() : null
1046
1046
  };
1047
1047
  }
1048
- function yo(e) {
1048
+ function Eo(e) {
1049
1049
  const { history: t, location: n } = window, r = {
1050
- value: On(e, n)
1050
+ value: Rn(e, n)
1051
1051
  }, o = { value: t.state };
1052
1052
  o.value || s(r.value, {
1053
1053
  back: null,
@@ -1060,25 +1060,25 @@ function yo(e) {
1060
1060
  // scrollBehavior to be triggered without a saved position
1061
1061
  scroll: null
1062
1062
  }, !0);
1063
- function s(l, h, c) {
1064
- const a = e.indexOf("#"), f = a > -1 ? (n.host && document.querySelector("base") ? e : e.slice(a)) + l : go() + e + l;
1063
+ function s(l, d, c) {
1064
+ const a = e.indexOf("#"), f = a > -1 ? (n.host && document.querySelector("base") ? e : e.slice(a)) + l : yo() + e + l;
1065
1065
  try {
1066
- t[c ? "replaceState" : "pushState"](h, "", f), o.value = h;
1067
- } catch (d) {
1068
- O.NODE_ENV !== "production" ? P("Error with push/replace State", d) : console.error(d), n[c ? "replace" : "assign"](f);
1066
+ t[c ? "replaceState" : "pushState"](d, "", f), o.value = d;
1067
+ } catch (h) {
1068
+ O.NODE_ENV !== "production" ? R("Error with push/replace State", h) : console.error(h), n[c ? "replace" : "assign"](f);
1069
1069
  }
1070
1070
  }
1071
- function i(l, h) {
1072
- const c = I({}, t.state, It(
1071
+ function i(l, d) {
1072
+ const c = I({}, t.state, Tt(
1073
1073
  o.value.back,
1074
1074
  // keep back and forward entries but override current position
1075
1075
  l,
1076
1076
  o.value.forward,
1077
1077
  !0
1078
- ), h, { position: o.value.position });
1078
+ ), d, { position: o.value.position });
1079
1079
  s(l, c, !0), r.value = l;
1080
1080
  }
1081
- function u(l, h) {
1081
+ function u(l, d) {
1082
1082
  const c = I(
1083
1083
  {},
1084
1084
  // use current history state to gracefully handle a wrong call to
@@ -1088,15 +1088,15 @@ function yo(e) {
1088
1088
  t.state,
1089
1089
  {
1090
1090
  forward: l,
1091
- scroll: Fe()
1091
+ scroll: Be()
1092
1092
  }
1093
1093
  );
1094
- O.NODE_ENV !== "production" && !t.state && P(`history.state seems to have been manually replaced without preserving the necessary values. Make sure to preserve existing history state if you are manually calling history.replaceState:
1094
+ O.NODE_ENV !== "production" && !t.state && R(`history.state seems to have been manually replaced without preserving the necessary values. Make sure to preserve existing history state if you are manually calling history.replaceState:
1095
1095
 
1096
1096
  history.replaceState(history.state, '', url)
1097
1097
 
1098
1098
  You can find more information at https://router.vuejs.org/guide/migration/#Usage-of-history-state`), s(c.current, c, !0);
1099
- const a = I({}, It(r.value, l, null), { position: c.position + 1 }, h);
1099
+ const a = I({}, Tt(r.value, l, null), { position: c.position + 1 }, d);
1100
1100
  s(l, a, !1), r.value = l;
1101
1101
  }
1102
1102
  return {
@@ -1106,9 +1106,9 @@ You can find more information at https://router.vuejs.org/guide/migration/#Usage
1106
1106
  replace: i
1107
1107
  };
1108
1108
  }
1109
- function Rn(e) {
1109
+ function Pn(e) {
1110
1110
  e = bn(e);
1111
- const t = yo(e), n = vo(e, t.state, t.location, t.replace);
1111
+ const t = Eo(e), n = wo(e, t.state, t.location, t.replace);
1112
1112
  function r(s, i = !0) {
1113
1113
  i || n.pauseListeners(), history.go(s);
1114
1114
  }
@@ -1117,7 +1117,7 @@ function Rn(e) {
1117
1117
  location: "",
1118
1118
  base: e,
1119
1119
  go: r,
1120
- createHref: Sn.bind(null, e)
1120
+ createHref: On.bind(null, e)
1121
1121
  }, t, n);
1122
1122
  return Object.defineProperty(o, "location", {
1123
1123
  enumerable: !0,
@@ -1127,15 +1127,15 @@ function Rn(e) {
1127
1127
  get: () => t.state.value
1128
1128
  }), o;
1129
1129
  }
1130
- function wo(e = "") {
1131
- let t = [], n = [Je], r = 0;
1130
+ function _o(e = "") {
1131
+ let t = [], n = [Qe], r = 0;
1132
1132
  e = bn(e);
1133
1133
  function o(u) {
1134
1134
  r++, r !== n.length && n.splice(r), n.push(u);
1135
1135
  }
1136
- function s(u, l, { direction: h, delta: c }) {
1136
+ function s(u, l, { direction: d, delta: c }) {
1137
1137
  const a = {
1138
- direction: h,
1138
+ direction: d,
1139
1139
  delta: c,
1140
1140
  type: ce.pop
1141
1141
  };
@@ -1144,11 +1144,11 @@ function wo(e = "") {
1144
1144
  }
1145
1145
  const i = {
1146
1146
  // rewritten by Object.defineProperty
1147
- location: Je,
1147
+ location: Qe,
1148
1148
  // TODO: should be kept in queue
1149
1149
  state: {},
1150
1150
  base: e,
1151
- createHref: Sn.bind(null, e),
1151
+ createHref: On.bind(null, e),
1152
1152
  replace(u) {
1153
1153
  n.splice(r--, 1), o(u);
1154
1154
  },
@@ -1162,16 +1162,16 @@ function wo(e = "") {
1162
1162
  };
1163
1163
  },
1164
1164
  destroy() {
1165
- t = [], n = [Je], r = 0;
1165
+ t = [], n = [Qe], r = 0;
1166
1166
  },
1167
1167
  go(u, l = !0) {
1168
- const h = this.location, c = (
1168
+ const d = this.location, c = (
1169
1169
  // we are considering delta === 0 going forward, but in abstract mode
1170
1170
  // using 0 for the delta doesn't make sense like it does in html5 where
1171
1171
  // it reloads the page
1172
1172
  u < 0 ? oe.back : oe.forward
1173
1173
  );
1174
- r = Math.max(0, Math.min(r + u, n.length - 1)), l && s(this.location, h, {
1174
+ r = Math.max(0, Math.min(r + u, n.length - 1)), l && s(this.location, d, {
1175
1175
  direction: c,
1176
1176
  delta: u
1177
1177
  });
@@ -1182,22 +1182,22 @@ function wo(e = "") {
1182
1182
  get: () => n[r]
1183
1183
  }), i;
1184
1184
  }
1185
- function Eo(e) {
1186
- return e = location.host ? e || location.pathname + location.search : "", e.includes("#") || (e += "#"), O.NODE_ENV !== "production" && !e.endsWith("#/") && !e.endsWith("#") && P(`A hash base must end with a "#":
1187
- "${e}" should be "${e.replace(/#.*$/, "#")}".`), Rn(e);
1185
+ function So(e) {
1186
+ return e = location.host ? e || location.pathname + location.search : "", e.includes("#") || (e += "#"), O.NODE_ENV !== "production" && !e.endsWith("#/") && !e.endsWith("#") && R(`A hash base must end with a "#":
1187
+ "${e}" should be "${e.replace(/#.*$/, "#")}".`), Pn(e);
1188
1188
  }
1189
- function Te(e) {
1189
+ function Ae(e) {
1190
1190
  return typeof e == "string" || e && typeof e == "object";
1191
1191
  }
1192
- function Pn(e) {
1192
+ function kn(e) {
1193
1193
  return typeof e == "string" || typeof e == "symbol";
1194
1194
  }
1195
- const it = Symbol(O.NODE_ENV !== "production" ? "navigation failure" : "");
1196
- var Tt;
1195
+ const at = Symbol(O.NODE_ENV !== "production" ? "navigation failure" : "");
1196
+ var At;
1197
1197
  (function(e) {
1198
1198
  e[e.aborted = 4] = "aborted", e[e.cancelled = 8] = "cancelled", e[e.duplicated = 16] = "duplicated";
1199
- })(Tt || (Tt = {}));
1200
- const _o = {
1199
+ })(At || (At = {}));
1200
+ const bo = {
1201
1201
  1({ location: e, currentLocation: t }) {
1202
1202
  return `No match for
1203
1203
  ${JSON.stringify(e)}${t ? `
@@ -1205,7 +1205,7 @@ while being at
1205
1205
  ` + JSON.stringify(t) : ""}`;
1206
1206
  },
1207
1207
  2({ from: e, to: t }) {
1208
- return `Redirected from "${e.fullPath}" to "${So(t)}" via a navigation guard.`;
1208
+ return `Redirected from "${e.fullPath}" to "${Ro(t)}" via a navigation guard.`;
1209
1209
  },
1210
1210
  4({ from: e, to: t }) {
1211
1211
  return `Navigation aborted from "${e.fullPath}" to "${t.fullPath}" via a navigation guard.`;
@@ -1218,49 +1218,49 @@ while being at
1218
1218
  }
1219
1219
  };
1220
1220
  function ue(e, t) {
1221
- return O.NODE_ENV !== "production" ? I(new Error(_o[e](t)), {
1221
+ return O.NODE_ENV !== "production" ? I(new Error(bo[e](t)), {
1222
1222
  type: e,
1223
- [it]: !0
1223
+ [at]: !0
1224
1224
  }, t) : I(new Error(), {
1225
1225
  type: e,
1226
- [it]: !0
1226
+ [at]: !0
1227
1227
  }, t);
1228
1228
  }
1229
1229
  function H(e, t) {
1230
- return e instanceof Error && it in e && (t == null || !!(e.type & t));
1230
+ return e instanceof Error && at in e && (t == null || !!(e.type & t));
1231
1231
  }
1232
- const bo = ["params", "query", "hash"];
1233
- function So(e) {
1232
+ const Oo = ["params", "query", "hash"];
1233
+ function Ro(e) {
1234
1234
  if (typeof e == "string")
1235
1235
  return e;
1236
1236
  if (e.path != null)
1237
1237
  return e.path;
1238
1238
  const t = {};
1239
- for (const n of bo)
1239
+ for (const n of Oo)
1240
1240
  n in e && (t[n] = e[n]);
1241
1241
  return JSON.stringify(t, null, 2);
1242
1242
  }
1243
- const At = "[^/]+?", Oo = {
1243
+ const $t = "[^/]+?", Po = {
1244
1244
  sensitive: !1,
1245
1245
  strict: !1,
1246
1246
  start: !0,
1247
1247
  end: !0
1248
- }, Ro = /[.+*?^${}()[\]/\\]/g;
1249
- function Po(e, t) {
1250
- const n = I({}, Oo, t), r = [];
1248
+ }, ko = /[.+*?^${}()[\]/\\]/g;
1249
+ function Vo(e, t) {
1250
+ const n = I({}, Po, t), r = [];
1251
1251
  let o = n.start ? "^" : "";
1252
1252
  const s = [];
1253
- for (const h of e) {
1254
- const c = h.length ? [] : [
1253
+ for (const d of e) {
1254
+ const c = d.length ? [] : [
1255
1255
  90
1256
1256
  /* PathScore.Root */
1257
1257
  ];
1258
- n.strict && !h.length && (o += "/");
1259
- for (let a = 0; a < h.length; a++) {
1260
- const f = h[a];
1261
- let d = 40 + (n.sensitive ? 0.25 : 0);
1258
+ n.strict && !d.length && (o += "/");
1259
+ for (let a = 0; a < d.length; a++) {
1260
+ const f = d[a];
1261
+ let h = 40 + (n.sensitive ? 0.25 : 0);
1262
1262
  if (f.type === 0)
1263
- a || (o += "/"), o += f.value.replace(Ro, "\\$&"), d += 40;
1263
+ a || (o += "/"), o += f.value.replace(ko, "\\$&"), h += 40;
1264
1264
  else if (f.type === 1) {
1265
1265
  const { value: v, repeatable: p, optional: g, regexp: y } = f;
1266
1266
  s.push({
@@ -1268,49 +1268,49 @@ function Po(e, t) {
1268
1268
  repeatable: p,
1269
1269
  optional: g
1270
1270
  });
1271
- const _ = y || At;
1272
- if (_ !== At) {
1273
- d += 10;
1271
+ const _ = y || $t;
1272
+ if (_ !== $t) {
1273
+ h += 10;
1274
1274
  try {
1275
1275
  new RegExp(`(${_})`);
1276
- } catch (R) {
1277
- throw new Error(`Invalid custom RegExp for param "${v}" (${_}): ` + R.message);
1276
+ } catch (P) {
1277
+ throw new Error(`Invalid custom RegExp for param "${v}" (${_}): ` + P.message);
1278
1278
  }
1279
1279
  }
1280
- let S = p ? `((?:${_})(?:/(?:${_}))*)` : `(${_})`;
1281
- a || (S = // avoid an optional / if there are more segments e.g. /:p?-static
1280
+ let b = p ? `((?:${_})(?:/(?:${_}))*)` : `(${_})`;
1281
+ a || (b = // avoid an optional / if there are more segments e.g. /:p?-static
1282
1282
  // or /:p?-:p2
1283
- g && h.length < 2 ? `(?:/${S})` : "/" + S), g && (S += "?"), o += S, d += 20, g && (d += -8), p && (d += -20), _ === ".*" && (d += -50);
1283
+ g && d.length < 2 ? `(?:/${b})` : "/" + b), g && (b += "?"), o += b, h += 20, g && (h += -8), p && (h += -20), _ === ".*" && (h += -50);
1284
1284
  }
1285
- c.push(d);
1285
+ c.push(h);
1286
1286
  }
1287
1287
  r.push(c);
1288
1288
  }
1289
1289
  if (n.strict && n.end) {
1290
- const h = r.length - 1;
1291
- r[h][r[h].length - 1] += 0.7000000000000001;
1290
+ const d = r.length - 1;
1291
+ r[d][r[d].length - 1] += 0.7000000000000001;
1292
1292
  }
1293
1293
  n.strict || (o += "/?"), n.end ? o += "$" : n.strict && !o.endsWith("/") && (o += "(?:/|$)");
1294
1294
  const i = new RegExp(o, n.sensitive ? "" : "i");
1295
- function u(h) {
1296
- const c = h.match(i), a = {};
1295
+ function u(d) {
1296
+ const c = d.match(i), a = {};
1297
1297
  if (!c)
1298
1298
  return null;
1299
1299
  for (let f = 1; f < c.length; f++) {
1300
- const d = c[f] || "", v = s[f - 1];
1301
- a[v.name] = d && v.repeatable ? d.split("/") : d;
1300
+ const h = c[f] || "", v = s[f - 1];
1301
+ a[v.name] = h && v.repeatable ? h.split("/") : h;
1302
1302
  }
1303
1303
  return a;
1304
1304
  }
1305
- function l(h) {
1305
+ function l(d) {
1306
1306
  let c = "", a = !1;
1307
1307
  for (const f of e) {
1308
1308
  (!a || !c.endsWith("/")) && (c += "/"), a = !1;
1309
- for (const d of f)
1310
- if (d.type === 0)
1311
- c += d.value;
1312
- else if (d.type === 1) {
1313
- const { value: v, repeatable: p, optional: g } = d, y = v in h ? h[v] : "";
1309
+ for (const h of f)
1310
+ if (h.type === 0)
1311
+ c += h.value;
1312
+ else if (h.type === 1) {
1313
+ const { value: v, repeatable: p, optional: g } = h, y = v in d ? d[v] : "";
1314
1314
  if (U(y) && !p)
1315
1315
  throw new Error(`Provided param "${v}" is an array but it is not repeatable (* or + modifiers)`);
1316
1316
  const _ = U(y) ? y.join("/") : y;
@@ -1332,7 +1332,7 @@ function Po(e, t) {
1332
1332
  stringify: l
1333
1333
  };
1334
1334
  }
1335
- function ko(e, t) {
1335
+ function No(e, t) {
1336
1336
  let n = 0;
1337
1337
  for (; n < e.length && n < t.length; ) {
1338
1338
  const r = t[n] - e[n];
@@ -1342,40 +1342,40 @@ function ko(e, t) {
1342
1342
  }
1343
1343
  return e.length < t.length ? e.length === 1 && e[0] === 80 ? -1 : 1 : e.length > t.length ? t.length === 1 && t[0] === 80 ? 1 : -1 : 0;
1344
1344
  }
1345
- function kn(e, t) {
1345
+ function Vn(e, t) {
1346
1346
  let n = 0;
1347
1347
  const r = e.score, o = t.score;
1348
1348
  for (; n < r.length && n < o.length; ) {
1349
- const s = ko(r[n], o[n]);
1349
+ const s = No(r[n], o[n]);
1350
1350
  if (s)
1351
1351
  return s;
1352
1352
  n++;
1353
1353
  }
1354
1354
  if (Math.abs(o.length - r.length) === 1) {
1355
- if ($t(r))
1355
+ if (jt(r))
1356
1356
  return 1;
1357
- if ($t(o))
1357
+ if (jt(o))
1358
1358
  return -1;
1359
1359
  }
1360
1360
  return o.length - r.length;
1361
1361
  }
1362
- function $t(e) {
1362
+ function jt(e) {
1363
1363
  const t = e[e.length - 1];
1364
1364
  return e.length > 0 && t[t.length - 1] < 0;
1365
1365
  }
1366
- const Vo = {
1366
+ const Io = {
1367
1367
  type: 0,
1368
1368
  value: ""
1369
- }, No = /[a-zA-Z0-9_]/;
1370
- function Io(e) {
1369
+ }, To = /[a-zA-Z0-9_]/;
1370
+ function Ao(e) {
1371
1371
  if (!e)
1372
1372
  return [[]];
1373
1373
  if (e === "/")
1374
- return [[Vo]];
1374
+ return [[Io]];
1375
1375
  if (!e.startsWith("/"))
1376
1376
  throw new Error(O.NODE_ENV !== "production" ? `Route paths should start with a "/": "${e}" should be "/${e}".` : `Invalid path "${e}"`);
1377
- function t(d) {
1378
- throw new Error(`ERR (${n})/"${h}": ${d}`);
1377
+ function t(h) {
1378
+ throw new Error(`ERR (${n})/"${d}": ${h}`);
1379
1379
  }
1380
1380
  let n = 0, r = n;
1381
1381
  const o = [];
@@ -1383,21 +1383,21 @@ function Io(e) {
1383
1383
  function i() {
1384
1384
  s && o.push(s), s = [];
1385
1385
  }
1386
- let u = 0, l, h = "", c = "";
1386
+ let u = 0, l, d = "", c = "";
1387
1387
  function a() {
1388
- h && (n === 0 ? s.push({
1388
+ d && (n === 0 ? s.push({
1389
1389
  type: 0,
1390
- value: h
1391
- }) : n === 1 || n === 2 || n === 3 ? (s.length > 1 && (l === "*" || l === "+") && t(`A repeatable param (${h}) must be alone in its segment. eg: '/:ids+.`), s.push({
1390
+ value: d
1391
+ }) : n === 1 || n === 2 || n === 3 ? (s.length > 1 && (l === "*" || l === "+") && t(`A repeatable param (${d}) must be alone in its segment. eg: '/:ids+.`), s.push({
1392
1392
  type: 1,
1393
- value: h,
1393
+ value: d,
1394
1394
  regexp: c,
1395
1395
  repeatable: l === "*" || l === "+",
1396
1396
  optional: l === "*" || l === "?"
1397
- })) : t("Invalid state to consume buffer"), h = "");
1397
+ })) : t("Invalid state to consume buffer"), d = "");
1398
1398
  }
1399
1399
  function f() {
1400
- h += l;
1400
+ d += l;
1401
1401
  }
1402
1402
  for (; u < e.length; ) {
1403
1403
  if (l = e[u++], l === "\\" && n !== 2) {
@@ -1406,13 +1406,13 @@ function Io(e) {
1406
1406
  }
1407
1407
  switch (n) {
1408
1408
  case 0:
1409
- l === "/" ? (h && a(), i()) : l === ":" ? (a(), n = 1) : f();
1409
+ l === "/" ? (d && a(), i()) : l === ":" ? (a(), n = 1) : f();
1410
1410
  break;
1411
1411
  case 4:
1412
1412
  f(), n = r;
1413
1413
  break;
1414
1414
  case 1:
1415
- l === "(" ? n = 2 : No.test(l) ? f() : (a(), n = 0, l !== "*" && l !== "?" && l !== "+" && u--);
1415
+ l === "(" ? n = 2 : To.test(l) ? f() : (a(), n = 0, l !== "*" && l !== "?" && l !== "+" && u--);
1416
1416
  break;
1417
1417
  case 2:
1418
1418
  l === ")" ? c[c.length - 1] == "\\" ? c = c.slice(0, -1) + l : n = 3 : c += l;
@@ -1425,14 +1425,14 @@ function Io(e) {
1425
1425
  break;
1426
1426
  }
1427
1427
  }
1428
- return n === 2 && t(`Unfinished custom RegExp for param "${h}"`), a(), i(), o;
1428
+ return n === 2 && t(`Unfinished custom RegExp for param "${d}"`), a(), i(), o;
1429
1429
  }
1430
- function To(e, t, n) {
1431
- const r = Po(Io(e.path), n);
1430
+ function $o(e, t, n) {
1431
+ const r = Vo(Ao(e.path), n);
1432
1432
  if (O.NODE_ENV !== "production") {
1433
1433
  const s = /* @__PURE__ */ new Set();
1434
1434
  for (const i of r.keys)
1435
- s.has(i.name) && P(`Found duplicated params with name "${i.name}" for path "${e.path}". Only the last one will be available on "$route.params".`), s.add(i.name);
1435
+ s.has(i.name) && R(`Found duplicated params with name "${i.name}" for path "${e.path}". Only the last one will be available on "$route.params".`), s.add(i.name);
1436
1436
  }
1437
1437
  const o = I(r, {
1438
1438
  record: e,
@@ -1443,57 +1443,57 @@ function To(e, t, n) {
1443
1443
  });
1444
1444
  return t && !o.record.aliasOf == !t.record.aliasOf && t.children.push(o), o;
1445
1445
  }
1446
- function Ao(e, t) {
1446
+ function jo(e, t) {
1447
1447
  const n = [], r = /* @__PURE__ */ new Map();
1448
- t = Dt({ strict: !1, end: !0, sensitive: !1 }, t);
1448
+ t = Mt({ strict: !1, end: !0, sensitive: !1 }, t);
1449
1449
  function o(a) {
1450
1450
  return r.get(a);
1451
1451
  }
1452
- function s(a, f, d) {
1453
- const v = !d, p = Ct(a);
1454
- O.NODE_ENV !== "production" && xo(p, f), p.aliasOf = d && d.record;
1455
- const g = Dt(t, a), y = [p];
1452
+ function s(a, f, h) {
1453
+ const v = !h, p = xt(a);
1454
+ O.NODE_ENV !== "production" && Mo(p, f), p.aliasOf = h && h.record;
1455
+ const g = Mt(t, a), y = [p];
1456
1456
  if ("alias" in a) {
1457
- const R = typeof a.alias == "string" ? [a.alias] : a.alias;
1458
- for (const D of R)
1457
+ const P = typeof a.alias == "string" ? [a.alias] : a.alias;
1458
+ for (const j of P)
1459
1459
  y.push(
1460
1460
  // we need to normalize again to ensure the `mods` property
1461
1461
  // being non enumerable
1462
- Ct(I({}, p, {
1462
+ xt(I({}, p, {
1463
1463
  // this allows us to hold a copy of the `components` option
1464
1464
  // so that async components cache is hold on the original record
1465
- components: d ? d.record.components : p.components,
1466
- path: D,
1465
+ components: h ? h.record.components : p.components,
1466
+ path: j,
1467
1467
  // we might be the child of an alias
1468
- aliasOf: d ? d.record : p
1468
+ aliasOf: h ? h.record : p
1469
1469
  // the aliases are always of the same kind as the original since they
1470
1470
  // are defined on the same record
1471
1471
  }))
1472
1472
  );
1473
1473
  }
1474
- let _, S;
1475
- for (const R of y) {
1476
- const { path: D } = R;
1477
- if (f && D[0] !== "/") {
1478
- const C = f.record.path, x = C[C.length - 1] === "/" ? "" : "/";
1479
- R.path = f.record.path + (D && x + D);
1474
+ let _, b;
1475
+ for (const P of y) {
1476
+ const { path: j } = P;
1477
+ if (f && j[0] !== "/") {
1478
+ const x = f.record.path, D = x[x.length - 1] === "/" ? "" : "/";
1479
+ P.path = f.record.path + (j && D + j);
1480
1480
  }
1481
- if (O.NODE_ENV !== "production" && R.path === "*")
1481
+ if (O.NODE_ENV !== "production" && P.path === "*")
1482
1482
  throw new Error(`Catch all routes ("*") must now be defined using a param with a custom regexp.
1483
1483
  See more at https://router.vuejs.org/guide/migration/#Removed-star-or-catch-all-routes.`);
1484
- if (_ = To(R, f, g), O.NODE_ENV !== "production" && f && D[0] === "/" && Mo(_, f), d ? (d.alias.push(_), O.NODE_ENV !== "production" && Co(d, _)) : (S = S || _, S !== _ && S.alias.push(_), v && a.name && !xt(_) && (O.NODE_ENV !== "production" && Do(a, f), i(a.name))), Vn(_) && l(_), p.children) {
1485
- const C = p.children;
1486
- for (let x = 0; x < C.length; x++)
1487
- s(C[x], _, d && d.children[x]);
1484
+ if (_ = $o(P, f, g), O.NODE_ENV !== "production" && f && j[0] === "/" && Bo(_, f), h ? (h.alias.push(_), O.NODE_ENV !== "production" && Do(h, _)) : (b = b || _, b !== _ && b.alias.push(_), v && a.name && !Dt(_) && (O.NODE_ENV !== "production" && Fo(a, f), i(a.name))), Nn(_) && l(_), p.children) {
1485
+ const x = p.children;
1486
+ for (let D = 0; D < x.length; D++)
1487
+ s(x[D], _, h && h.children[D]);
1488
1488
  }
1489
- d = d || _;
1489
+ h = h || _;
1490
1490
  }
1491
- return S ? () => {
1492
- i(S);
1493
- } : ve;
1491
+ return b ? () => {
1492
+ i(b);
1493
+ } : ye;
1494
1494
  }
1495
1495
  function i(a) {
1496
- if (Pn(a)) {
1496
+ if (kn(a)) {
1497
1497
  const f = r.get(a);
1498
1498
  f && (r.delete(a), n.splice(n.indexOf(f), 1), f.children.forEach(i), f.alias.forEach(i));
1499
1499
  } else {
@@ -1505,44 +1505,44 @@ See more at https://router.vuejs.org/guide/migration/#Removed-star-or-catch-all-
1505
1505
  return n;
1506
1506
  }
1507
1507
  function l(a) {
1508
- const f = Fo(a, n);
1509
- n.splice(f, 0, a), a.record.name && !xt(a) && r.set(a.record.name, a);
1508
+ const f = Lo(a, n);
1509
+ n.splice(f, 0, a), a.record.name && !Dt(a) && r.set(a.record.name, a);
1510
1510
  }
1511
- function h(a, f) {
1512
- let d, v = {}, p, g;
1511
+ function d(a, f) {
1512
+ let h, v = {}, p, g;
1513
1513
  if ("name" in a && a.name) {
1514
- if (d = r.get(a.name), !d)
1514
+ if (h = r.get(a.name), !h)
1515
1515
  throw ue(1, {
1516
1516
  location: a
1517
1517
  });
1518
1518
  if (O.NODE_ENV !== "production") {
1519
- const S = Object.keys(a.params || {}).filter((R) => !d.keys.find((D) => D.name === R));
1520
- S.length && P(`Discarded invalid param(s) "${S.join('", "')}" when navigating. See https://github.com/vuejs/router/blob/main/packages/router/CHANGELOG.md#414-2022-08-22 for more details.`);
1519
+ const b = Object.keys(a.params || {}).filter((P) => !h.keys.find((j) => j.name === P));
1520
+ b.length && R(`Discarded invalid param(s) "${b.join('", "')}" when navigating. See https://github.com/vuejs/router/blob/main/packages/router/CHANGELOG.md#414-2022-08-22 for more details.`);
1521
1521
  }
1522
- g = d.record.name, v = I(
1522
+ g = h.record.name, v = I(
1523
1523
  // paramsFromLocation is a new object
1524
- jt(
1524
+ Ct(
1525
1525
  f.params,
1526
1526
  // only keep params that exist in the resolved location
1527
1527
  // only keep optional params coming from a parent record
1528
- d.keys.filter((S) => !S.optional).concat(d.parent ? d.parent.keys.filter((S) => S.optional) : []).map((S) => S.name)
1528
+ h.keys.filter((b) => !b.optional).concat(h.parent ? h.parent.keys.filter((b) => b.optional) : []).map((b) => b.name)
1529
1529
  ),
1530
1530
  // discard any existing params in the current location that do not exist here
1531
1531
  // #1497 this ensures better active/exact matching
1532
- a.params && jt(a.params, d.keys.map((S) => S.name))
1533
- ), p = d.stringify(v);
1532
+ a.params && Ct(a.params, h.keys.map((b) => b.name))
1533
+ ), p = h.stringify(v);
1534
1534
  } else if (a.path != null)
1535
- p = a.path, O.NODE_ENV !== "production" && !p.startsWith("/") && P(`The Matcher cannot resolve relative paths but received "${p}". Unless you directly called \`matcher.resolve("${p}")\`, this is probably a bug in vue-router. Please open an issue at https://github.com/vuejs/router/issues/new/choose.`), d = n.find((S) => S.re.test(p)), d && (v = d.parse(p), g = d.record.name);
1535
+ p = a.path, O.NODE_ENV !== "production" && !p.startsWith("/") && R(`The Matcher cannot resolve relative paths but received "${p}". Unless you directly called \`matcher.resolve("${p}")\`, this is probably a bug in vue-router. Please open an issue at https://github.com/vuejs/router/issues/new/choose.`), h = n.find((b) => b.re.test(p)), h && (v = h.parse(p), g = h.record.name);
1536
1536
  else {
1537
- if (d = f.name ? r.get(f.name) : n.find((S) => S.re.test(f.path)), !d)
1537
+ if (h = f.name ? r.get(f.name) : n.find((b) => b.re.test(f.path)), !h)
1538
1538
  throw ue(1, {
1539
1539
  location: a,
1540
1540
  currentLocation: f
1541
1541
  });
1542
- g = d.record.name, v = I({}, f.params, a.params), p = d.stringify(v);
1542
+ g = h.record.name, v = I({}, f.params, a.params), p = h.stringify(v);
1543
1543
  }
1544
1544
  const y = [];
1545
- let _ = d;
1545
+ let _ = h;
1546
1546
  for (; _; )
1547
1547
  y.unshift(_.record), _ = _.parent;
1548
1548
  return {
@@ -1550,7 +1550,7 @@ See more at https://router.vuejs.org/guide/migration/#Removed-star-or-catch-all-
1550
1550
  path: p,
1551
1551
  params: v,
1552
1552
  matched: y,
1553
- meta: jo(y)
1553
+ meta: xo(y)
1554
1554
  };
1555
1555
  }
1556
1556
  e.forEach((a) => s(a));
@@ -1559,20 +1559,20 @@ See more at https://router.vuejs.org/guide/migration/#Removed-star-or-catch-all-
1559
1559
  }
1560
1560
  return {
1561
1561
  addRoute: s,
1562
- resolve: h,
1562
+ resolve: d,
1563
1563
  removeRoute: i,
1564
1564
  clearRoutes: c,
1565
1565
  getRoutes: u,
1566
1566
  getRecordMatcher: o
1567
1567
  };
1568
1568
  }
1569
- function jt(e, t) {
1569
+ function Ct(e, t) {
1570
1570
  const n = {};
1571
1571
  for (const r of t)
1572
1572
  r in e && (n[r] = e[r]);
1573
1573
  return n;
1574
1574
  }
1575
- function Ct(e) {
1575
+ function xt(e) {
1576
1576
  const t = {
1577
1577
  path: e.path,
1578
1578
  redirect: e.redirect,
@@ -1580,7 +1580,7 @@ function Ct(e) {
1580
1580
  meta: e.meta || {},
1581
1581
  aliasOf: e.aliasOf,
1582
1582
  beforeEnter: e.beforeEnter,
1583
- props: $o(e),
1583
+ props: Co(e),
1584
1584
  children: e.children || [],
1585
1585
  instances: {},
1586
1586
  leaveGuards: /* @__PURE__ */ new Set(),
@@ -1594,7 +1594,7 @@ function Ct(e) {
1594
1594
  value: {}
1595
1595
  }), t;
1596
1596
  }
1597
- function $o(e) {
1597
+ function Co(e) {
1598
1598
  const t = {}, n = e.props || !1;
1599
1599
  if ("component" in e)
1600
1600
  t.default = n;
@@ -1603,7 +1603,7 @@ function $o(e) {
1603
1603
  t[r] = typeof n == "object" ? n[r] : n;
1604
1604
  return t;
1605
1605
  }
1606
- function xt(e) {
1606
+ function Dt(e) {
1607
1607
  for (; e; ) {
1608
1608
  if (e.record.aliasOf)
1609
1609
  return !0;
@@ -1611,87 +1611,87 @@ function xt(e) {
1611
1611
  }
1612
1612
  return !1;
1613
1613
  }
1614
- function jo(e) {
1614
+ function xo(e) {
1615
1615
  return e.reduce((t, n) => I(t, n.meta), {});
1616
1616
  }
1617
- function Dt(e, t) {
1617
+ function Mt(e, t) {
1618
1618
  const n = {};
1619
1619
  for (const r in e)
1620
1620
  n[r] = r in t ? t[r] : e[r];
1621
1621
  return n;
1622
1622
  }
1623
- function at(e, t) {
1623
+ function ct(e, t) {
1624
1624
  return e.name === t.name && e.optional === t.optional && e.repeatable === t.repeatable;
1625
1625
  }
1626
- function Co(e, t) {
1626
+ function Do(e, t) {
1627
1627
  for (const n of e.keys)
1628
- if (!n.optional && !t.keys.find(at.bind(null, n)))
1629
- return P(`Alias "${t.record.path}" and the original record: "${e.record.path}" must have the exact same param named "${n.name}"`);
1628
+ if (!n.optional && !t.keys.find(ct.bind(null, n)))
1629
+ return R(`Alias "${t.record.path}" and the original record: "${e.record.path}" must have the exact same param named "${n.name}"`);
1630
1630
  for (const n of t.keys)
1631
- if (!n.optional && !e.keys.find(at.bind(null, n)))
1632
- return P(`Alias "${t.record.path}" and the original record: "${e.record.path}" must have the exact same param named "${n.name}"`);
1631
+ if (!n.optional && !e.keys.find(ct.bind(null, n)))
1632
+ return R(`Alias "${t.record.path}" and the original record: "${e.record.path}" must have the exact same param named "${n.name}"`);
1633
1633
  }
1634
- function xo(e, t) {
1635
- t && t.record.name && !e.name && !e.path && P(`The route named "${String(t.record.name)}" has a child without a name and an empty path. Using that name won't render the empty path child so you probably want to move the name to the child instead. If this is intentional, add a name to the child route to remove the warning.`);
1634
+ function Mo(e, t) {
1635
+ t && t.record.name && !e.name && !e.path && R(`The route named "${String(t.record.name)}" has a child without a name and an empty path. Using that name won't render the empty path child so you probably want to move the name to the child instead. If this is intentional, add a name to the child route to remove the warning.`);
1636
1636
  }
1637
- function Do(e, t) {
1637
+ function Fo(e, t) {
1638
1638
  for (let n = t; n; n = n.parent)
1639
1639
  if (n.record.name === e.name)
1640
1640
  throw new Error(`A route named "${String(e.name)}" has been added as a ${t === n ? "child" : "descendant"} of a route with the same name. Route names must be unique and a nested route cannot use the same name as an ancestor.`);
1641
1641
  }
1642
- function Mo(e, t) {
1642
+ function Bo(e, t) {
1643
1643
  for (const n of t.keys)
1644
- if (!e.keys.find(at.bind(null, n)))
1645
- return P(`Absolute path "${e.record.path}" must have the exact same param named "${n.name}" as its parent "${t.record.path}".`);
1644
+ if (!e.keys.find(ct.bind(null, n)))
1645
+ return R(`Absolute path "${e.record.path}" must have the exact same param named "${n.name}" as its parent "${t.record.path}".`);
1646
1646
  }
1647
- function Fo(e, t) {
1647
+ function Lo(e, t) {
1648
1648
  let n = 0, r = t.length;
1649
1649
  for (; n !== r; ) {
1650
1650
  const s = n + r >> 1;
1651
- kn(e, t[s]) < 0 ? r = s : n = s + 1;
1651
+ Vn(e, t[s]) < 0 ? r = s : n = s + 1;
1652
1652
  }
1653
- const o = Bo(e);
1654
- return o && (r = t.lastIndexOf(o, r - 1), O.NODE_ENV !== "production" && r < 0 && P(`Finding ancestor route "${o.record.path}" failed for "${e.record.path}"`)), r;
1653
+ const o = Wo(e);
1654
+ return o && (r = t.lastIndexOf(o, r - 1), O.NODE_ENV !== "production" && r < 0 && R(`Finding ancestor route "${o.record.path}" failed for "${e.record.path}"`)), r;
1655
1655
  }
1656
- function Bo(e) {
1656
+ function Wo(e) {
1657
1657
  let t = e;
1658
1658
  for (; t = t.parent; )
1659
- if (Vn(t) && kn(e, t) === 0)
1659
+ if (Nn(t) && Vn(e, t) === 0)
1660
1660
  return t;
1661
1661
  }
1662
- function Vn({ record: e }) {
1662
+ function Nn({ record: e }) {
1663
1663
  return !!(e.name || e.components && Object.keys(e.components).length || e.redirect);
1664
1664
  }
1665
- function Lo(e) {
1665
+ function Uo(e) {
1666
1666
  const t = {};
1667
1667
  if (e === "" || e === "?")
1668
1668
  return t;
1669
1669
  const r = (e[0] === "?" ? e.slice(1) : e).split("&");
1670
1670
  for (let o = 0; o < r.length; ++o) {
1671
- const s = r[o].replace(vn, " "), i = s.indexOf("="), u = ae(i < 0 ? s : s.slice(0, i)), l = i < 0 ? null : ae(s.slice(i + 1));
1671
+ const s = r[o].replace(yn, " "), i = s.indexOf("="), u = ae(i < 0 ? s : s.slice(0, i)), l = i < 0 ? null : ae(s.slice(i + 1));
1672
1672
  if (u in t) {
1673
- let h = t[u];
1674
- U(h) || (h = t[u] = [h]), h.push(l);
1673
+ let d = t[u];
1674
+ U(d) || (d = t[u] = [d]), d.push(l);
1675
1675
  } else
1676
1676
  t[u] = l;
1677
1677
  }
1678
1678
  return t;
1679
1679
  }
1680
- function Mt(e) {
1680
+ function Ft(e) {
1681
1681
  let t = "";
1682
1682
  for (let n in e) {
1683
1683
  const r = e[n];
1684
- if (n = no(n), r == null) {
1684
+ if (n = oo(n), r == null) {
1685
1685
  r !== void 0 && (t += (t.length ? "&" : "") + n);
1686
1686
  continue;
1687
1687
  }
1688
- (U(r) ? r.map((s) => s && ot(s)) : [r && ot(r)]).forEach((s) => {
1688
+ (U(r) ? r.map((s) => s && st(s)) : [r && st(r)]).forEach((s) => {
1689
1689
  s !== void 0 && (t += (t.length ? "&" : "") + n, s != null && (t += "=" + s));
1690
1690
  });
1691
1691
  }
1692
1692
  return t;
1693
1693
  }
1694
- function Wo(e) {
1694
+ function Ko(e) {
1695
1695
  const t = {};
1696
1696
  for (const n in e) {
1697
1697
  const r = e[n];
@@ -1699,8 +1699,8 @@ function Wo(e) {
1699
1699
  }
1700
1700
  return t;
1701
1701
  }
1702
- const Uo = Symbol(O.NODE_ENV !== "production" ? "router view location matched" : ""), Ft = Symbol(O.NODE_ENV !== "production" ? "router view depth" : ""), Be = Symbol(O.NODE_ENV !== "production" ? "router" : ""), gt = Symbol(O.NODE_ENV !== "production" ? "route location" : ""), ct = Symbol(O.NODE_ENV !== "production" ? "router view location" : "");
1703
- function pe() {
1702
+ const Go = Symbol(O.NODE_ENV !== "production" ? "router view location matched" : ""), Bt = Symbol(O.NODE_ENV !== "production" ? "router view depth" : ""), Le = Symbol(O.NODE_ENV !== "production" ? "router" : ""), vt = Symbol(O.NODE_ENV !== "production" ? "route location" : ""), ut = Symbol(O.NODE_ENV !== "production" ? "router view location" : "");
1703
+ function me() {
1704
1704
  let e = [];
1705
1705
  function t(r) {
1706
1706
  return e.push(r), () => {
@@ -1721,112 +1721,112 @@ function X(e, t, n, r, o, s = (i) => i()) {
1721
1721
  const i = r && // name is defined if record is because of the function overload
1722
1722
  (r.enterCallbacks[o] = r.enterCallbacks[o] || []);
1723
1723
  return () => new Promise((u, l) => {
1724
- const h = (f) => {
1724
+ const d = (f) => {
1725
1725
  f === !1 ? l(ue(4, {
1726
1726
  from: n,
1727
1727
  to: t
1728
- })) : f instanceof Error ? l(f) : Te(f) ? l(ue(2, {
1728
+ })) : f instanceof Error ? l(f) : Ae(f) ? l(ue(2, {
1729
1729
  from: t,
1730
1730
  to: f
1731
1731
  })) : (i && // since enterCallbackArray is truthy, both record and name also are
1732
1732
  r.enterCallbacks[o] === i && typeof f == "function" && i.push(f), u());
1733
- }, c = s(() => e.call(r && r.instances[o], t, n, O.NODE_ENV !== "production" ? Ko(h, t, n) : h));
1733
+ }, c = s(() => e.call(r && r.instances[o], t, n, O.NODE_ENV !== "production" ? qo(d, t, n) : d));
1734
1734
  let a = Promise.resolve(c);
1735
- if (e.length < 3 && (a = a.then(h)), O.NODE_ENV !== "production" && e.length > 2) {
1735
+ if (e.length < 3 && (a = a.then(d)), O.NODE_ENV !== "production" && e.length > 2) {
1736
1736
  const f = `The "next" callback was never called inside of ${e.name ? '"' + e.name + '"' : ""}:
1737
1737
  ${e.toString()}
1738
1738
  . If you are returning a value instead of calling "next", make sure to remove the "next" parameter from your function.`;
1739
1739
  if (typeof c == "object" && "then" in c)
1740
- a = a.then((d) => h._called ? d : (P(f), Promise.reject(new Error("Invalid navigation guard"))));
1741
- else if (c !== void 0 && !h._called) {
1742
- P(f), l(new Error("Invalid navigation guard"));
1740
+ a = a.then((h) => d._called ? h : (R(f), Promise.reject(new Error("Invalid navigation guard"))));
1741
+ else if (c !== void 0 && !d._called) {
1742
+ R(f), l(new Error("Invalid navigation guard"));
1743
1743
  return;
1744
1744
  }
1745
1745
  }
1746
1746
  a.catch((f) => l(f));
1747
1747
  });
1748
1748
  }
1749
- function Ko(e, t, n) {
1749
+ function qo(e, t, n) {
1750
1750
  let r = 0;
1751
1751
  return function() {
1752
- r++ === 1 && P(`The "next" callback was called more than once in one navigation guard when going from "${n.fullPath}" to "${t.fullPath}". It should be called exactly one time in each navigation guard. This will fail in production.`), e._called = !0, r === 1 && e.apply(null, arguments);
1752
+ r++ === 1 && R(`The "next" callback was called more than once in one navigation guard when going from "${n.fullPath}" to "${t.fullPath}". It should be called exactly one time in each navigation guard. This will fail in production.`), e._called = !0, r === 1 && e.apply(null, arguments);
1753
1753
  };
1754
1754
  }
1755
- function Qe(e, t, n, r, o = (s) => s()) {
1755
+ function Ye(e, t, n, r, o = (s) => s()) {
1756
1756
  const s = [];
1757
1757
  for (const i of e) {
1758
- O.NODE_ENV !== "production" && !i.components && !i.children.length && P(`Record with path "${i.path}" is either missing a "component(s)" or "children" property.`);
1758
+ O.NODE_ENV !== "production" && !i.components && !i.children.length && R(`Record with path "${i.path}" is either missing a "component(s)" or "children" property.`);
1759
1759
  for (const u in i.components) {
1760
1760
  let l = i.components[u];
1761
1761
  if (O.NODE_ENV !== "production") {
1762
1762
  if (!l || typeof l != "object" && typeof l != "function")
1763
- throw P(`Component "${u}" in record with path "${i.path}" is not a valid component. Received "${String(l)}".`), new Error("Invalid route component");
1763
+ throw R(`Component "${u}" in record with path "${i.path}" is not a valid component. Received "${String(l)}".`), new Error("Invalid route component");
1764
1764
  if ("then" in l) {
1765
- P(`Component "${u}" in record with path "${i.path}" is a Promise instead of a function that returns a Promise. Did you write "import('./MyPage.vue')" instead of "() => import('./MyPage.vue')" ? This will break in production if not fixed.`);
1766
- const h = l;
1767
- l = () => h;
1765
+ R(`Component "${u}" in record with path "${i.path}" is a Promise instead of a function that returns a Promise. Did you write "import('./MyPage.vue')" instead of "() => import('./MyPage.vue')" ? This will break in production if not fixed.`);
1766
+ const d = l;
1767
+ l = () => d;
1768
1768
  } else l.__asyncLoader && // warn only once per component
1769
- !l.__warnedDefineAsync && (l.__warnedDefineAsync = !0, P(`Component "${u}" in record with path "${i.path}" is defined using "defineAsyncComponent()". Write "() => import('./MyPage.vue')" instead of "defineAsyncComponent(() => import('./MyPage.vue'))".`));
1769
+ !l.__warnedDefineAsync && (l.__warnedDefineAsync = !0, R(`Component "${u}" in record with path "${i.path}" is defined using "defineAsyncComponent()". Write "() => import('./MyPage.vue')" instead of "defineAsyncComponent(() => import('./MyPage.vue'))".`));
1770
1770
  }
1771
1771
  if (!(t !== "beforeRouteEnter" && !i.instances[u]))
1772
- if (mn(l)) {
1772
+ if (gn(l)) {
1773
1773
  const c = (l.__vccOpts || l)[t];
1774
1774
  c && s.push(X(c, n, r, i, u, o));
1775
1775
  } else {
1776
- let h = l();
1777
- O.NODE_ENV !== "production" && !("catch" in h) && (P(`Component "${u}" in record with path "${i.path}" is a function that does not return a Promise. If you were passing a functional component, make sure to add a "displayName" to the component. This will break in production if not fixed.`), h = Promise.resolve(h)), s.push(() => h.then((c) => {
1776
+ let d = l();
1777
+ O.NODE_ENV !== "production" && !("catch" in d) && (R(`Component "${u}" in record with path "${i.path}" is a function that does not return a Promise. If you were passing a functional component, make sure to add a "displayName" to the component. This will break in production if not fixed.`), d = Promise.resolve(d)), s.push(() => d.then((c) => {
1778
1778
  if (!c)
1779
1779
  throw new Error(`Couldn't resolve component "${u}" at "${i.path}"`);
1780
- const a = Gr(c) ? c.default : c;
1780
+ const a = Hr(c) ? c.default : c;
1781
1781
  i.mods[u] = c, i.components[u] = a;
1782
- const d = (a.__vccOpts || a)[t];
1783
- return d && X(d, n, r, i, u, o)();
1782
+ const h = (a.__vccOpts || a)[t];
1783
+ return h && X(h, n, r, i, u, o)();
1784
1784
  }));
1785
1785
  }
1786
1786
  }
1787
1787
  }
1788
1788
  return s;
1789
1789
  }
1790
- function Bt(e) {
1791
- const t = ee(Be), n = ee(gt);
1790
+ function Lt(e) {
1791
+ const t = ee(Le), n = ee(vt);
1792
1792
  let r = !1, o = null;
1793
1793
  const s = K(() => {
1794
1794
  const c = L(e.to);
1795
- return O.NODE_ENV !== "production" && (!r || c !== o) && (Te(c) || (r ? P(`Invalid value for prop "to" in useLink()
1795
+ return O.NODE_ENV !== "production" && (!r || c !== o) && (Ae(c) || (r ? R(`Invalid value for prop "to" in useLink()
1796
1796
  - to:`, c, `
1797
1797
  - previous to:`, o, `
1798
- - props:`, e) : P(`Invalid value for prop "to" in useLink()
1798
+ - props:`, e) : R(`Invalid value for prop "to" in useLink()
1799
1799
  - to:`, c, `
1800
1800
  - props:`, e)), o = c, r = !0), t.resolve(c);
1801
1801
  }), i = K(() => {
1802
- const { matched: c } = s.value, { length: a } = c, f = c[a - 1], d = n.matched;
1803
- if (!f || !d.length)
1802
+ const { matched: c } = s.value, { length: a } = c, f = c[a - 1], h = n.matched;
1803
+ if (!f || !h.length)
1804
1804
  return -1;
1805
- const v = d.findIndex(te.bind(null, f));
1805
+ const v = h.findIndex(te.bind(null, f));
1806
1806
  if (v > -1)
1807
1807
  return v;
1808
- const p = Lt(c[a - 2]);
1808
+ const p = Wt(c[a - 2]);
1809
1809
  return (
1810
1810
  // we are dealing with nested routes
1811
1811
  a > 1 && // if the parent and matched route have the same path, this link is
1812
1812
  // referring to the empty child. Or we currently are on a different
1813
1813
  // child of the same parent
1814
- Lt(f) === p && // avoid comparing the child with its parent
1815
- d[d.length - 1].path !== p ? d.findIndex(te.bind(null, c[a - 2])) : v
1814
+ Wt(f) === p && // avoid comparing the child with its parent
1815
+ h[h.length - 1].path !== p ? h.findIndex(te.bind(null, c[a - 2])) : v
1816
1816
  );
1817
- }), u = K(() => i.value > -1 && Jo(n.params, s.value.params)), l = K(() => i.value > -1 && i.value === n.matched.length - 1 && _n(n.params, s.value.params));
1818
- function h(c = {}) {
1819
- if (zo(c)) {
1817
+ }), u = K(() => i.value > -1 && Yo(n.params, s.value.params)), l = K(() => i.value > -1 && i.value === n.matched.length - 1 && Sn(n.params, s.value.params));
1818
+ function d(c = {}) {
1819
+ if (Qo(c)) {
1820
1820
  const a = t[L(e.replace) ? "replace" : "push"](
1821
1821
  L(e.to)
1822
1822
  // avoid uncaught errors are they are logged anyway
1823
- ).catch(ve);
1823
+ ).catch(ye);
1824
1824
  return e.viewTransition && typeof document < "u" && "startViewTransition" in document && document.startViewTransition(() => a), a;
1825
1825
  }
1826
1826
  return Promise.resolve();
1827
1827
  }
1828
1828
  if (O.NODE_ENV !== "production" && z) {
1829
- const c = Jt();
1829
+ const c = Qt();
1830
1830
  if (c) {
1831
1831
  const a = {
1832
1832
  route: s.value,
@@ -1834,8 +1834,8 @@ function Bt(e) {
1834
1834
  isExactActive: l.value,
1835
1835
  error: null
1836
1836
  };
1837
- c.__vrl_devtools = c.__vrl_devtools || [], c.__vrl_devtools.push(a), zt(() => {
1838
- a.route = s.value, a.isActive = u.value, a.isExactActive = l.value, a.error = Te(L(e.to)) ? null : 'Invalid "to" value';
1837
+ c.__vrl_devtools = c.__vrl_devtools || [], c.__vrl_devtools.push(a), Jt(() => {
1838
+ a.route = s.value, a.isActive = u.value, a.isExactActive = l.value, a.error = Ae(L(e.to)) ? null : 'Invalid "to" value';
1839
1839
  }, { flush: "post" });
1840
1840
  }
1841
1841
  }
@@ -1844,13 +1844,13 @@ function Bt(e) {
1844
1844
  href: K(() => s.value.href),
1845
1845
  isActive: u,
1846
1846
  isExactActive: l,
1847
- navigate: h
1847
+ navigate: d
1848
1848
  };
1849
1849
  }
1850
- function Go(e) {
1850
+ function Ho(e) {
1851
1851
  return e.length === 1 ? e[0] : e;
1852
1852
  }
1853
- const qo = /* @__PURE__ */ F({
1853
+ const zo = /* @__PURE__ */ F({
1854
1854
  name: "RouterLink",
1855
1855
  compatConfig: { MODE: 3 },
1856
1856
  props: {
@@ -1868,19 +1868,19 @@ const qo = /* @__PURE__ */ F({
1868
1868
  default: "page"
1869
1869
  }
1870
1870
  },
1871
- useLink: Bt,
1871
+ useLink: Lt,
1872
1872
  setup(e, { slots: t }) {
1873
- const n = Jn(Bt(e)), { options: r } = ee(Be), o = K(() => ({
1874
- [Wt(e.activeClass, r.linkActiveClass, "router-link-active")]: n.isActive,
1873
+ const n = Yn(Lt(e)), { options: r } = ee(Le), o = K(() => ({
1874
+ [Ut(e.activeClass, r.linkActiveClass, "router-link-active")]: n.isActive,
1875
1875
  // [getLinkClass(
1876
1876
  // props.inactiveClass,
1877
1877
  // options.linkInactiveClass,
1878
1878
  // 'router-link-inactive'
1879
1879
  // )]: !link.isExactActive,
1880
- [Wt(e.exactActiveClass, r.linkExactActiveClass, "router-link-exact-active")]: n.isExactActive
1880
+ [Ut(e.exactActiveClass, r.linkExactActiveClass, "router-link-exact-active")]: n.isExactActive
1881
1881
  }));
1882
1882
  return () => {
1883
- const s = t.default && Go(t.default(n));
1883
+ const s = t.default && Ho(t.default(n));
1884
1884
  return e.custom ? s : A("a", {
1885
1885
  "aria-current": n.isExactActive ? e.ariaCurrentValue : null,
1886
1886
  href: n.href,
@@ -1891,8 +1891,8 @@ const qo = /* @__PURE__ */ F({
1891
1891
  }, s);
1892
1892
  };
1893
1893
  }
1894
- }), Ho = qo;
1895
- function zo(e) {
1894
+ }), Jo = zo;
1895
+ function Qo(e) {
1896
1896
  if (!(e.metaKey || e.altKey || e.ctrlKey || e.shiftKey) && !e.defaultPrevented && !(e.button !== void 0 && e.button !== 0)) {
1897
1897
  if (e.currentTarget && e.currentTarget.getAttribute) {
1898
1898
  const t = e.currentTarget.getAttribute("target");
@@ -1902,7 +1902,7 @@ function zo(e) {
1902
1902
  return e.preventDefault && e.preventDefault(), !0;
1903
1903
  }
1904
1904
  }
1905
- function Jo(e, t) {
1905
+ function Yo(e, t) {
1906
1906
  for (const n in t) {
1907
1907
  const r = t[n], o = e[n];
1908
1908
  if (typeof r == "string") {
@@ -1913,10 +1913,10 @@ function Jo(e, t) {
1913
1913
  }
1914
1914
  return !0;
1915
1915
  }
1916
- function Lt(e) {
1916
+ function Wt(e) {
1917
1917
  return e ? e.aliasOf ? e.aliasOf.path : e.path : "";
1918
1918
  }
1919
- const Wt = (e, t, n) => e ?? t ?? n, Qo = /* @__PURE__ */ F({
1919
+ const Ut = (e, t, n) => e ?? t ?? n, Xo = /* @__PURE__ */ F({
1920
1920
  name: "RouterView",
1921
1921
  // #674 we manually inherit them
1922
1922
  inheritAttrs: !1,
@@ -1931,26 +1931,26 @@ const Wt = (e, t, n) => e ?? t ?? n, Qo = /* @__PURE__ */ F({
1931
1931
  // https://github.com/vuejs/router/issues/1315
1932
1932
  compatConfig: { MODE: 3 },
1933
1933
  setup(e, { attrs: t, slots: n }) {
1934
- O.NODE_ENV !== "production" && Xo();
1935
- const r = ee(ct), o = K(() => e.route || r.value), s = ee(Ft, 0), i = K(() => {
1936
- let h = L(s);
1934
+ O.NODE_ENV !== "production" && es();
1935
+ const r = ee(ut), o = K(() => e.route || r.value), s = ee(Bt, 0), i = K(() => {
1936
+ let d = L(s);
1937
1937
  const { matched: c } = o.value;
1938
1938
  let a;
1939
- for (; (a = c[h]) && !a.components; )
1940
- h++;
1941
- return h;
1939
+ for (; (a = c[d]) && !a.components; )
1940
+ d++;
1941
+ return d;
1942
1942
  }), u = K(() => o.value.matched[i.value]);
1943
- Ne(Ft, K(() => i.value + 1)), Ne(Uo, u), Ne(ct, o);
1943
+ Ie(Bt, K(() => i.value + 1)), Ie(Go, u), Ie(ut, o);
1944
1944
  const l = Z();
1945
- return G(() => [l.value, u.value, e.name], ([h, c, a], [f, d, v]) => {
1946
- c && (c.instances[a] = h, d && d !== c && h && h === f && (c.leaveGuards.size || (c.leaveGuards = d.leaveGuards), c.updateGuards.size || (c.updateGuards = d.updateGuards))), h && c && // if there is no instance but to and from are the same this might be
1945
+ return G(() => [l.value, u.value, e.name], ([d, c, a], [f, h, v]) => {
1946
+ c && (c.instances[a] = d, h && h !== c && d && d === f && (c.leaveGuards.size || (c.leaveGuards = h.leaveGuards), c.updateGuards.size || (c.updateGuards = h.updateGuards))), d && c && // if there is no instance but to and from are the same this might be
1947
1947
  // the first visit
1948
- (!d || !te(c, d) || !f) && (c.enterCallbacks[a] || []).forEach((p) => p(h));
1948
+ (!h || !te(c, h) || !f) && (c.enterCallbacks[a] || []).forEach((p) => p(d));
1949
1949
  }, { flush: "post" }), () => {
1950
- const h = o.value, c = e.name, a = u.value, f = a && a.components[c];
1950
+ const d = o.value, c = e.name, a = u.value, f = a && a.components[c];
1951
1951
  if (!f)
1952
- return Ut(n.default, { Component: f, route: h });
1953
- const d = a.props[c], v = d ? d === !0 ? h.params : typeof d == "function" ? d(h) : d : null, g = A(f, I({}, v, t, {
1952
+ return Kt(n.default, { Component: f, route: d });
1953
+ const h = a.props[c], v = h ? h === !0 ? d.params : typeof h == "function" ? h(d) : h : null, g = A(f, I({}, v, t, {
1954
1954
  onVnodeUnmounted: (y) => {
1955
1955
  y.component.isUnmounted && (a.instances[c] = null);
1956
1956
  },
@@ -1963,30 +1963,30 @@ const Wt = (e, t, n) => e ?? t ?? n, Qo = /* @__PURE__ */ F({
1963
1963
  path: a.path,
1964
1964
  meta: a.meta
1965
1965
  };
1966
- (U(g.ref) ? g.ref.map((S) => S.i) : [g.ref.i]).forEach((S) => {
1967
- S.__vrv_devtools = y;
1966
+ (U(g.ref) ? g.ref.map((b) => b.i) : [g.ref.i]).forEach((b) => {
1967
+ b.__vrv_devtools = y;
1968
1968
  });
1969
1969
  }
1970
1970
  return (
1971
1971
  // pass the vnode to the slot as a prop.
1972
1972
  // h and <component :is="..."> both accept vnodes
1973
- Ut(n.default, { Component: g, route: h }) || g
1973
+ Kt(n.default, { Component: g, route: d }) || g
1974
1974
  );
1975
1975
  };
1976
1976
  }
1977
1977
  });
1978
- function Ut(e, t) {
1978
+ function Kt(e, t) {
1979
1979
  if (!e)
1980
1980
  return null;
1981
1981
  const n = e(t);
1982
1982
  return n.length === 1 ? n[0] : n;
1983
1983
  }
1984
- const Yo = Qo;
1985
- function Xo() {
1986
- const e = Jt(), t = e.parent && e.parent.type.name, n = e.parent && e.parent.subTree && e.parent.subTree.type;
1984
+ const Zo = Xo;
1985
+ function es() {
1986
+ const e = Qt(), t = e.parent && e.parent.type.name, n = e.parent && e.parent.subTree && e.parent.subTree.type;
1987
1987
  if (t && (t === "KeepAlive" || t.includes("Transition")) && typeof n == "object" && n.name === "RouterView") {
1988
1988
  const r = t === "KeepAlive" ? "keep-alive" : "transition";
1989
- P(`<router-view> can no longer be used directly inside <transition> or <keep-alive>.
1989
+ R(`<router-view> can no longer be used directly inside <transition> or <keep-alive>.
1990
1990
  Use slot props instead:
1991
1991
 
1992
1992
  <router-view v-slot="{ Component }">
@@ -1996,10 +1996,10 @@ Use slot props instead:
1996
1996
  </router-view>`);
1997
1997
  }
1998
1998
  }
1999
- function me(e, t) {
1999
+ function ge(e, t) {
2000
2000
  const n = I({}, e, {
2001
2001
  // remove variables that can contain vue instances
2002
- matched: e.matched.map((r) => us(r, ["instances", "children", "aliasOf"]))
2002
+ matched: e.matched.map((r) => fs(r, ["instances", "children", "aliasOf"]))
2003
2003
  });
2004
2004
  return {
2005
2005
  _custom: {
@@ -2011,20 +2011,20 @@ function me(e, t) {
2011
2011
  }
2012
2012
  };
2013
2013
  }
2014
- function Ve(e) {
2014
+ function Ne(e) {
2015
2015
  return {
2016
2016
  _custom: {
2017
2017
  display: e
2018
2018
  }
2019
2019
  };
2020
2020
  }
2021
- let Zo = 0;
2022
- function es(e, t, n) {
2021
+ let ts = 0;
2022
+ function ns(e, t, n) {
2023
2023
  if (t.__hasDevtools)
2024
2024
  return;
2025
2025
  t.__hasDevtools = !0;
2026
- const r = Zo++;
2027
- Kr({
2026
+ const r = ts++;
2027
+ qr({
2028
2028
  id: "org.vuejs.router" + (r ? "." + r : ""),
2029
2029
  label: "Vue Router",
2030
2030
  packageName: "vue-router",
@@ -2038,7 +2038,7 @@ function es(e, t, n) {
2038
2038
  type: "Routing",
2039
2039
  key: "$route",
2040
2040
  editable: !1,
2041
- value: me(t.currentRoute.value, "Current Route")
2041
+ value: ge(t.currentRoute.value, "Current Route")
2042
2042
  });
2043
2043
  }), o.on.visitComponentTree(({ treeNode: c, componentInstance: a }) => {
2044
2044
  if (a.__vrv_devtools) {
@@ -2047,13 +2047,13 @@ function es(e, t, n) {
2047
2047
  label: (f.name ? `${f.name.toString()}: ` : "") + f.path,
2048
2048
  textColor: 0,
2049
2049
  tooltip: "This component is rendered by &lt;router-view&gt;",
2050
- backgroundColor: Nn
2050
+ backgroundColor: In
2051
2051
  });
2052
2052
  }
2053
2053
  U(a.__vrl_devtools) && (a.__devtoolsApi = o, a.__vrl_devtools.forEach((f) => {
2054
- let d = f.route.path, v = An, p = "", g = 0;
2055
- f.error ? (d = f.error, v = ss, g = is) : f.isExactActive ? (v = Tn, p = "This is exactly active") : f.isActive && (v = In, p = "This link is active"), c.tags.push({
2056
- label: d,
2054
+ let h = f.route.path, v = $n, p = "", g = 0;
2055
+ f.error ? (h = f.error, v = as, g = cs) : f.isExactActive ? (v = An, p = "This is exactly active") : f.isActive && (v = Tn, p = "This link is active"), c.tags.push({
2056
+ label: h,
2057
2057
  textColor: g,
2058
2058
  tooltip: p,
2059
2059
  backgroundColor: v
@@ -2083,9 +2083,9 @@ function es(e, t, n) {
2083
2083
  let i = 0;
2084
2084
  t.beforeEach((c, a) => {
2085
2085
  const f = {
2086
- guard: Ve("beforeEach"),
2087
- from: me(a, "Current Location during this navigation"),
2088
- to: me(c, "Target location")
2086
+ guard: Ne("beforeEach"),
2087
+ from: ge(a, "Current Location during this navigation"),
2088
+ to: ge(c, "Target location")
2089
2089
  };
2090
2090
  Object.defineProperty(c.meta, "__navigationId", {
2091
2091
  value: i++
@@ -2100,10 +2100,10 @@ function es(e, t, n) {
2100
2100
  }
2101
2101
  });
2102
2102
  }), t.afterEach((c, a, f) => {
2103
- const d = {
2104
- guard: Ve("afterEach")
2103
+ const h = {
2104
+ guard: Ne("afterEach")
2105
2105
  };
2106
- f ? (d.failure = {
2106
+ f ? (h.failure = {
2107
2107
  _custom: {
2108
2108
  type: Error,
2109
2109
  readOnly: !0,
@@ -2111,13 +2111,13 @@ function es(e, t, n) {
2111
2111
  tooltip: "Navigation Failure",
2112
2112
  value: f
2113
2113
  }
2114
- }, d.status = Ve("❌")) : d.status = Ve("✅"), d.from = me(a, "Current Location during this navigation"), d.to = me(c, "Target location"), o.addTimelineEvent({
2114
+ }, h.status = Ne("❌")) : h.status = Ne("✅"), h.from = ge(a, "Current Location during this navigation"), h.to = ge(c, "Target location"), o.addTimelineEvent({
2115
2115
  layerId: s,
2116
2116
  event: {
2117
2117
  title: "End of navigation",
2118
2118
  subtitle: c.fullPath,
2119
2119
  time: o.now(),
2120
- data: d,
2120
+ data: h,
2121
2121
  logType: f ? "warning" : "default",
2122
2122
  groupId: c.meta.__navigationId
2123
2123
  }
@@ -2131,34 +2131,34 @@ function es(e, t, n) {
2131
2131
  treeFilterPlaceholder: "Search routes"
2132
2132
  });
2133
2133
  function l() {
2134
- if (!h)
2134
+ if (!d)
2135
2135
  return;
2136
- const c = h;
2136
+ const c = d;
2137
2137
  let a = n.getRoutes().filter((f) => !f.parent || // these routes have a parent with no component which will not appear in the view
2138
2138
  // therefore we still need to include them
2139
2139
  !f.parent.record.components);
2140
- a.forEach(Cn), c.filter && (a = a.filter((f) => (
2140
+ a.forEach(xn), c.filter && (a = a.filter((f) => (
2141
2141
  // save matches state based on the payload
2142
- ut(f, c.filter.toLowerCase())
2143
- ))), a.forEach((f) => jn(f, t.currentRoute.value)), c.rootNodes = a.map($n);
2142
+ lt(f, c.filter.toLowerCase())
2143
+ ))), a.forEach((f) => Cn(f, t.currentRoute.value)), c.rootNodes = a.map(jn);
2144
2144
  }
2145
- let h;
2145
+ let d;
2146
2146
  o.on.getInspectorTree((c) => {
2147
- h = c, c.app === e && c.inspectorId === u && l();
2147
+ d = c, c.app === e && c.inspectorId === u && l();
2148
2148
  }), o.on.getInspectorState((c) => {
2149
2149
  if (c.app === e && c.inspectorId === u) {
2150
- const f = n.getRoutes().find((d) => d.record.__vd_id === c.nodeId);
2150
+ const f = n.getRoutes().find((h) => h.record.__vd_id === c.nodeId);
2151
2151
  f && (c.state = {
2152
- options: ns(f)
2152
+ options: os(f)
2153
2153
  });
2154
2154
  }
2155
2155
  }), o.sendInspectorTree(u), o.sendInspectorState(u);
2156
2156
  });
2157
2157
  }
2158
- function ts(e) {
2158
+ function rs(e) {
2159
2159
  return e.optional ? e.repeatable ? "*" : "?" : e.repeatable ? "+" : "";
2160
2160
  }
2161
- function ns(e) {
2161
+ function os(e) {
2162
2162
  const { record: t } = e, n = [
2163
2163
  { editable: !1, key: "path", value: t.path }
2164
2164
  ];
@@ -2173,7 +2173,7 @@ function ns(e) {
2173
2173
  _custom: {
2174
2174
  type: null,
2175
2175
  readOnly: !0,
2176
- display: e.keys.map((r) => `${r.name}${ts(r)}`).join(" "),
2176
+ display: e.keys.map((r) => `${r.name}${rs(r)}`).join(" "),
2177
2177
  tooltip: "Param keys",
2178
2178
  value: e.keys
2179
2179
  }
@@ -2204,84 +2204,84 @@ function ns(e) {
2204
2204
  }
2205
2205
  }), n;
2206
2206
  }
2207
- const Nn = 15485081, In = 2450411, Tn = 8702998, rs = 2282478, An = 16486972, os = 6710886, ss = 16704226, is = 12131356;
2208
- function $n(e) {
2207
+ const In = 15485081, Tn = 2450411, An = 8702998, ss = 2282478, $n = 16486972, is = 6710886, as = 16704226, cs = 12131356;
2208
+ function jn(e) {
2209
2209
  const t = [], { record: n } = e;
2210
2210
  n.name != null && t.push({
2211
2211
  label: String(n.name),
2212
2212
  textColor: 0,
2213
- backgroundColor: rs
2213
+ backgroundColor: ss
2214
2214
  }), n.aliasOf && t.push({
2215
2215
  label: "alias",
2216
2216
  textColor: 0,
2217
- backgroundColor: An
2217
+ backgroundColor: $n
2218
2218
  }), e.__vd_match && t.push({
2219
2219
  label: "matches",
2220
2220
  textColor: 0,
2221
- backgroundColor: Nn
2221
+ backgroundColor: In
2222
2222
  }), e.__vd_exactActive && t.push({
2223
2223
  label: "exact",
2224
2224
  textColor: 0,
2225
- backgroundColor: Tn
2225
+ backgroundColor: An
2226
2226
  }), e.__vd_active && t.push({
2227
2227
  label: "active",
2228
2228
  textColor: 0,
2229
- backgroundColor: In
2229
+ backgroundColor: Tn
2230
2230
  }), n.redirect && t.push({
2231
2231
  label: typeof n.redirect == "string" ? `redirect: ${n.redirect}` : "redirects",
2232
2232
  textColor: 16777215,
2233
- backgroundColor: os
2233
+ backgroundColor: is
2234
2234
  });
2235
2235
  let r = n.__vd_id;
2236
- return r == null && (r = String(as++), n.__vd_id = r), {
2236
+ return r == null && (r = String(us++), n.__vd_id = r), {
2237
2237
  id: r,
2238
2238
  label: n.path,
2239
2239
  tags: t,
2240
- children: e.children.map($n)
2240
+ children: e.children.map(jn)
2241
2241
  };
2242
2242
  }
2243
- let as = 0;
2244
- const cs = /^\/(.*)\/([a-z]*)$/;
2245
- function jn(e, t) {
2243
+ let us = 0;
2244
+ const ls = /^\/(.*)\/([a-z]*)$/;
2245
+ function Cn(e, t) {
2246
2246
  const n = t.matched.length && te(t.matched[t.matched.length - 1], e.record);
2247
- e.__vd_exactActive = e.__vd_active = n, n || (e.__vd_active = t.matched.some((r) => te(r, e.record))), e.children.forEach((r) => jn(r, t));
2247
+ e.__vd_exactActive = e.__vd_active = n, n || (e.__vd_active = t.matched.some((r) => te(r, e.record))), e.children.forEach((r) => Cn(r, t));
2248
2248
  }
2249
- function Cn(e) {
2250
- e.__vd_match = !1, e.children.forEach(Cn);
2249
+ function xn(e) {
2250
+ e.__vd_match = !1, e.children.forEach(xn);
2251
2251
  }
2252
- function ut(e, t) {
2253
- const n = String(e.re).match(cs);
2252
+ function lt(e, t) {
2253
+ const n = String(e.re).match(ls);
2254
2254
  if (e.__vd_match = !1, !n || n.length < 3)
2255
2255
  return !1;
2256
2256
  if (new RegExp(n[1].replace(/\$$/, ""), n[2]).test(t))
2257
- return e.children.forEach((i) => ut(i, t)), e.record.path !== "/" || t === "/" ? (e.__vd_match = e.re.test(t), !0) : !1;
2257
+ return e.children.forEach((i) => lt(i, t)), e.record.path !== "/" || t === "/" ? (e.__vd_match = e.re.test(t), !0) : !1;
2258
2258
  const o = e.record.path.toLowerCase(), s = ae(o);
2259
- return !t.startsWith("/") && (s.includes(t) || o.includes(t)) || s.startsWith(t) || o.startsWith(t) || e.record.name && String(e.record.name).includes(t) ? !0 : e.children.some((i) => ut(i, t));
2259
+ return !t.startsWith("/") && (s.includes(t) || o.includes(t)) || s.startsWith(t) || o.startsWith(t) || e.record.name && String(e.record.name).includes(t) ? !0 : e.children.some((i) => lt(i, t));
2260
2260
  }
2261
- function us(e, t) {
2261
+ function fs(e, t) {
2262
2262
  const n = {};
2263
2263
  for (const r in e)
2264
2264
  t.includes(r) || (n[r] = e[r]);
2265
2265
  return n;
2266
2266
  }
2267
- function ls(e) {
2268
- const t = Ao(e.routes, e), n = e.parseQuery || Lo, r = e.stringifyQuery || Mt, o = e.history;
2267
+ function ds(e) {
2268
+ const t = jo(e.routes, e), n = e.parseQuery || Uo, r = e.stringifyQuery || Ft, o = e.history;
2269
2269
  if (O.NODE_ENV !== "production" && !o)
2270
2270
  throw new Error('Provide the "history" option when calling "createRouter()": https://router.vuejs.org/api/interfaces/RouterOptions.html#history');
2271
- const s = pe(), i = pe(), u = pe(), l = J(Y);
2272
- let h = Y;
2271
+ const s = me(), i = me(), u = me(), l = J(Y);
2272
+ let d = Y;
2273
2273
  z && e.scrollBehavior && "scrollRestoration" in history && (history.scrollRestoration = "manual");
2274
- const c = He.bind(null, (m) => "" + m), a = He.bind(null, oo), f = (
2274
+ const c = ze.bind(null, (m) => "" + m), a = ze.bind(null, io), f = (
2275
2275
  // @ts-expect-error: intentionally avoid the type check
2276
- He.bind(null, ae)
2276
+ ze.bind(null, ae)
2277
2277
  );
2278
- function d(m, E) {
2279
- let w, b;
2280
- return Pn(m) ? (w = t.getRecordMatcher(m), O.NODE_ENV !== "production" && !w && P(`Parent route "${String(m)}" not found when adding child route`, E), b = E) : b = m, t.addRoute(b, w);
2278
+ function h(m, E) {
2279
+ let w, S;
2280
+ return kn(m) ? (w = t.getRecordMatcher(m), O.NODE_ENV !== "production" && !w && R(`Parent route "${String(m)}" not found when adding child route`, E), S = E) : S = m, t.addRoute(S, w);
2281
2281
  }
2282
2282
  function v(m) {
2283
2283
  const E = t.getRecordMatcher(m);
2284
- E ? t.removeRoute(E) : O.NODE_ENV !== "production" && P(`Cannot remove non-existent route "${String(m)}"`);
2284
+ E ? t.removeRoute(E) : O.NODE_ENV !== "production" && R(`Cannot remove non-existent route "${String(m)}"`);
2285
2285
  }
2286
2286
  function p() {
2287
2287
  return t.getRoutes().map((m) => m.record);
@@ -2291,22 +2291,22 @@ function ls(e) {
2291
2291
  }
2292
2292
  function y(m, E) {
2293
2293
  if (E = I({}, E || l.value), typeof m == "string") {
2294
- const k = ze(n, m, E.path), $ = t.resolve({ path: k.path }, E), re = o.createHref(k.fullPath);
2295
- return O.NODE_ENV !== "production" && (re.startsWith("//") ? P(`Location "${m}" resolved to "${re}". A resolved location cannot start with multiple slashes.`) : $.matched.length || P(`No match found for location with path "${m}"`)), I(k, $, {
2294
+ const k = Je(n, m, E.path), $ = t.resolve({ path: k.path }, E), re = o.createHref(k.fullPath);
2295
+ return O.NODE_ENV !== "production" && (re.startsWith("//") ? R(`Location "${m}" resolved to "${re}". A resolved location cannot start with multiple slashes.`) : $.matched.length || R(`No match found for location with path "${m}"`)), I(k, $, {
2296
2296
  params: f($.params),
2297
2297
  hash: ae(k.hash),
2298
2298
  redirectedFrom: void 0,
2299
2299
  href: re
2300
2300
  });
2301
2301
  }
2302
- if (O.NODE_ENV !== "production" && !Te(m))
2303
- return P(`router.resolve() was passed an invalid location. This will fail in production.
2302
+ if (O.NODE_ENV !== "production" && !Ae(m))
2303
+ return R(`router.resolve() was passed an invalid location. This will fail in production.
2304
2304
  - Location:`, m), y({});
2305
2305
  let w;
2306
2306
  if (m.path != null)
2307
2307
  O.NODE_ENV !== "production" && "params" in m && !("name" in m) && // @ts-expect-error: the type is never
2308
- Object.keys(m.params).length && P(`Path "${m.path}" was passed with params but they will be ignored. Use a named route alongside params instead.`), w = I({}, m, {
2309
- path: ze(n, m.path, E.path).path
2308
+ Object.keys(m.params).length && R(`Path "${m.path}" was passed with params but they will be ignored. Use a named route alongside params instead.`), w = I({}, m, {
2309
+ path: Je(n, m.path, E.path).path
2310
2310
  });
2311
2311
  else {
2312
2312
  const k = I({}, m.params);
@@ -2316,14 +2316,14 @@ function ls(e) {
2316
2316
  params: a(k)
2317
2317
  }), E.params = a(E.params);
2318
2318
  }
2319
- const b = t.resolve(w, E), T = m.hash || "";
2320
- O.NODE_ENV !== "production" && T && !T.startsWith("#") && P(`A \`hash\` should always start with the character "#". Replace "${T}" with "#${T}".`), b.params = c(f(b.params));
2321
- const j = ao(r, I({}, m, {
2322
- hash: to(T),
2323
- path: b.path
2324
- })), V = o.createHref(j);
2325
- return O.NODE_ENV !== "production" && (V.startsWith("//") ? P(`Location "${m}" resolved to "${V}". A resolved location cannot start with multiple slashes.`) : b.matched.length || P(`No match found for location with path "${m.path != null ? m.path : m}"`)), I({
2326
- fullPath: j,
2319
+ const S = t.resolve(w, E), T = m.hash || "";
2320
+ O.NODE_ENV !== "production" && T && !T.startsWith("#") && R(`A \`hash\` should always start with the character "#". Replace "${T}" with "#${T}".`), S.params = c(f(S.params));
2321
+ const C = uo(r, I({}, m, {
2322
+ hash: ro(T),
2323
+ path: S.path
2324
+ })), V = o.createHref(C);
2325
+ return O.NODE_ENV !== "production" && (V.startsWith("//") ? R(`Location "${m}" resolved to "${V}". A resolved location cannot start with multiple slashes.`) : S.matched.length || R(`No match found for location with path "${m.path != null ? m.path : m}"`)), I({
2326
+ fullPath: C,
2327
2327
  // keep the hash encoded so fullPath is effectively path + encodedQuery +
2328
2328
  // hash
2329
2329
  hash: T,
@@ -2333,56 +2333,56 @@ function ls(e) {
2333
2333
  // numbers at `$route.query`, but at the point, the user will have to
2334
2334
  // use their own type anyway.
2335
2335
  // https://github.com/vuejs/router/issues/328#issuecomment-649481567
2336
- r === Mt ? Wo(m.query) : m.query || {}
2336
+ r === Ft ? Ko(m.query) : m.query || {}
2337
2337
  )
2338
- }, b, {
2338
+ }, S, {
2339
2339
  redirectedFrom: void 0,
2340
2340
  href: V
2341
2341
  });
2342
2342
  }
2343
2343
  function _(m) {
2344
- return typeof m == "string" ? ze(n, m, l.value.path) : I({}, m);
2344
+ return typeof m == "string" ? Je(n, m, l.value.path) : I({}, m);
2345
2345
  }
2346
- function S(m, E) {
2347
- if (h !== m)
2346
+ function b(m, E) {
2347
+ if (d !== m)
2348
2348
  return ue(8, {
2349
2349
  from: E,
2350
2350
  to: m
2351
2351
  });
2352
2352
  }
2353
- function R(m) {
2354
- return x(m);
2353
+ function P(m) {
2354
+ return D(m);
2355
2355
  }
2356
- function D(m) {
2357
- return R(I(_(m), { replace: !0 }));
2356
+ function j(m) {
2357
+ return P(I(_(m), { replace: !0 }));
2358
2358
  }
2359
- function C(m) {
2359
+ function x(m) {
2360
2360
  const E = m.matched[m.matched.length - 1];
2361
2361
  if (E && E.redirect) {
2362
2362
  const { redirect: w } = E;
2363
- let b = typeof w == "function" ? w(m) : w;
2364
- if (typeof b == "string" && (b = b.includes("?") || b.includes("#") ? b = _(b) : (
2363
+ let S = typeof w == "function" ? w(m) : w;
2364
+ if (typeof S == "string" && (S = S.includes("?") || S.includes("#") ? S = _(S) : (
2365
2365
  // force empty params
2366
- { path: b }
2367
- ), b.params = {}), O.NODE_ENV !== "production" && b.path == null && !("name" in b))
2368
- throw P(`Invalid redirect found:
2369
- ${JSON.stringify(b, null, 2)}
2366
+ { path: S }
2367
+ ), S.params = {}), O.NODE_ENV !== "production" && S.path == null && !("name" in S))
2368
+ throw R(`Invalid redirect found:
2369
+ ${JSON.stringify(S, null, 2)}
2370
2370
  when navigating to "${m.fullPath}". A redirect must contain a name or path. This will break in production.`), new Error("Invalid redirect");
2371
2371
  return I({
2372
2372
  query: m.query,
2373
2373
  hash: m.hash,
2374
2374
  // avoid transferring params if the redirect has a path
2375
- params: b.path != null ? {} : m.params
2376
- }, b);
2375
+ params: S.path != null ? {} : m.params
2376
+ }, S);
2377
2377
  }
2378
2378
  }
2379
- function x(m, E) {
2380
- const w = h = y(m), b = l.value, T = m.state, j = m.force, V = m.replace === !0, k = C(w);
2379
+ function D(m, E) {
2380
+ const w = d = y(m), S = l.value, T = m.state, C = m.force, V = m.replace === !0, k = x(w);
2381
2381
  if (k)
2382
- return x(
2382
+ return D(
2383
2383
  I(_(k), {
2384
2384
  state: typeof k == "object" ? I({}, T, k.state) : T,
2385
- force: j,
2385
+ force: C,
2386
2386
  replace: V
2387
2387
  }),
2388
2388
  // keep original redirectedFrom if it exists
@@ -2391,25 +2391,25 @@ ${JSON.stringify(b, null, 2)}
2391
2391
  const $ = w;
2392
2392
  $.redirectedFrom = E;
2393
2393
  let re;
2394
- return !j && kt(r, b, w) && (re = ue(16, { to: $, from: b }), _t(
2395
- b,
2396
- b,
2394
+ return !C && Vt(r, S, w) && (re = ue(16, { to: $, from: S }), St(
2395
+ S,
2396
+ S,
2397
2397
  // this is a push, the only way for it to be triggered from a
2398
2398
  // history.listen is with a redirect, which makes it become a push
2399
2399
  !0,
2400
2400
  // This cannot be the first navigation because the initial location
2401
2401
  // cannot be manually navigated to
2402
2402
  !1
2403
- )), (re ? Promise.resolve(re) : vt($, b)).catch((M) => H(M) ? (
2403
+ )), (re ? Promise.resolve(re) : yt($, S)).catch((M) => H(M) ? (
2404
2404
  // navigation redirects still mark the router as ready
2405
2405
  H(
2406
2406
  M,
2407
2407
  2
2408
2408
  /* ErrorTypes.NAVIGATION_GUARD_REDIRECT */
2409
- ) ? M : Ke(M)
2409
+ ) ? M : Ge(M)
2410
2410
  ) : (
2411
2411
  // reject any unknown error
2412
- Ue(M, $, b)
2412
+ Ke(M, $, S)
2413
2413
  )).then((M) => {
2414
2414
  if (M) {
2415
2415
  if (H(
@@ -2418,53 +2418,53 @@ ${JSON.stringify(b, null, 2)}
2418
2418
  /* ErrorTypes.NAVIGATION_GUARD_REDIRECT */
2419
2419
  ))
2420
2420
  return O.NODE_ENV !== "production" && // we are redirecting to the same location we were already at
2421
- kt(r, y(M.to), $) && // and we have done it a couple of times
2421
+ Vt(r, y(M.to), $) && // and we have done it a couple of times
2422
2422
  E && // @ts-expect-error: added only in dev
2423
2423
  (E._count = E._count ? (
2424
2424
  // @ts-expect-error
2425
2425
  E._count + 1
2426
- ) : 1) > 30 ? (P(`Detected a possibly infinite redirection in a navigation guard when going from "${b.fullPath}" to "${$.fullPath}". Aborting to avoid a Stack Overflow.
2427
- Are you always returning a new location within a navigation guard? That would lead to this error. Only return when redirecting or aborting, that should fix this. This might break in production if not fixed.`), Promise.reject(new Error("Infinite redirect in navigation guard"))) : x(
2426
+ ) : 1) > 30 ? (R(`Detected a possibly infinite redirection in a navigation guard when going from "${S.fullPath}" to "${$.fullPath}". Aborting to avoid a Stack Overflow.
2427
+ Are you always returning a new location within a navigation guard? That would lead to this error. Only return when redirecting or aborting, that should fix this. This might break in production if not fixed.`), Promise.reject(new Error("Infinite redirect in navigation guard"))) : D(
2428
2428
  // keep options
2429
2429
  I({
2430
2430
  // preserve an existing replacement but allow the redirect to override it
2431
2431
  replace: V
2432
2432
  }, _(M.to), {
2433
2433
  state: typeof M.to == "object" ? I({}, T, M.to.state) : T,
2434
- force: j
2434
+ force: C
2435
2435
  }),
2436
2436
  // preserve the original redirectedFrom if any
2437
2437
  E || $
2438
2438
  );
2439
2439
  } else
2440
- M = wt($, b, !0, V, T);
2441
- return yt($, b, M), M;
2440
+ M = Et($, S, !0, V, T);
2441
+ return wt($, S, M), M;
2442
2442
  });
2443
2443
  }
2444
- function Le(m, E) {
2445
- const w = S(m, E);
2444
+ function We(m, E) {
2445
+ const w = b(m, E);
2446
2446
  return w ? Promise.reject(w) : Promise.resolve();
2447
2447
  }
2448
- function le(m) {
2449
- const E = Pe.values().next().value;
2448
+ function fe(m) {
2449
+ const E = ke.values().next().value;
2450
2450
  return E && typeof E.runWithContext == "function" ? E.runWithContext(m) : m();
2451
2451
  }
2452
- function vt(m, E) {
2452
+ function yt(m, E) {
2453
2453
  let w;
2454
- const [b, T, j] = fs(m, E);
2455
- w = Qe(b.reverse(), "beforeRouteLeave", m, E);
2456
- for (const k of b)
2454
+ const [S, T, C] = hs(m, E);
2455
+ w = Ye(S.reverse(), "beforeRouteLeave", m, E);
2456
+ for (const k of S)
2457
2457
  k.leaveGuards.forEach(($) => {
2458
2458
  w.push(X($, m, E));
2459
2459
  });
2460
- const V = Le.bind(null, m, E);
2460
+ const V = We.bind(null, m, E);
2461
2461
  return w.push(V), se(w).then(() => {
2462
2462
  w = [];
2463
2463
  for (const k of s.list())
2464
2464
  w.push(X(k, m, E));
2465
2465
  return w.push(V), se(w);
2466
2466
  }).then(() => {
2467
- w = Qe(T, "beforeRouteUpdate", m, E);
2467
+ w = Ye(T, "beforeRouteUpdate", m, E);
2468
2468
  for (const k of T)
2469
2469
  k.updateGuards.forEach(($) => {
2470
2470
  w.push(X($, m, E));
@@ -2472,7 +2472,7 @@ ${JSON.stringify(b, null, 2)}
2472
2472
  return w.push(V), se(w);
2473
2473
  }).then(() => {
2474
2474
  w = [];
2475
- for (const k of j)
2475
+ for (const k of C)
2476
2476
  if (k.beforeEnter)
2477
2477
  if (U(k.beforeEnter))
2478
2478
  for (const $ of k.beforeEnter)
@@ -2480,7 +2480,7 @@ ${JSON.stringify(b, null, 2)}
2480
2480
  else
2481
2481
  w.push(X(k.beforeEnter, m, E));
2482
2482
  return w.push(V), se(w);
2483
- }).then(() => (m.matched.forEach((k) => k.enterCallbacks = {}), w = Qe(j, "beforeRouteEnter", m, E, le), w.push(V), se(w))).then(() => {
2483
+ }).then(() => (m.matched.forEach((k) => k.enterCallbacks = {}), w = Ye(C, "beforeRouteEnter", m, E, fe), w.push(V), se(w))).then(() => {
2484
2484
  w = [];
2485
2485
  for (const k of i.list())
2486
2486
  w.push(X(k, m, E));
@@ -2491,31 +2491,31 @@ ${JSON.stringify(b, null, 2)}
2491
2491
  /* ErrorTypes.NAVIGATION_CANCELLED */
2492
2492
  ) ? k : Promise.reject(k));
2493
2493
  }
2494
- function yt(m, E, w) {
2495
- u.list().forEach((b) => le(() => b(m, E, w)));
2494
+ function wt(m, E, w) {
2495
+ u.list().forEach((S) => fe(() => S(m, E, w)));
2496
2496
  }
2497
- function wt(m, E, w, b, T) {
2498
- const j = S(m, E);
2499
- if (j)
2500
- return j;
2497
+ function Et(m, E, w, S, T) {
2498
+ const C = b(m, E);
2499
+ if (C)
2500
+ return C;
2501
2501
  const V = E === Y, k = z ? history.state : {};
2502
- w && (b || V ? o.replace(m.fullPath, I({
2502
+ w && (S || V ? o.replace(m.fullPath, I({
2503
2503
  scroll: V && k && k.scroll
2504
- }, T)) : o.push(m.fullPath, T)), l.value = m, _t(m, E, w, V), Ke();
2504
+ }, T)) : o.push(m.fullPath, T)), l.value = m, St(m, E, w, V), Ge();
2505
2505
  }
2506
- let fe;
2507
- function Ln() {
2508
- fe || (fe = o.listen((m, E, w) => {
2506
+ let de;
2507
+ function Un() {
2508
+ de || (de = o.listen((m, E, w) => {
2509
2509
  if (!bt.listening)
2510
2510
  return;
2511
- const b = y(m), T = C(b);
2511
+ const S = y(m), T = x(S);
2512
2512
  if (T) {
2513
- x(I(T, { replace: !0, force: !0 }), b).catch(ve);
2513
+ D(I(T, { replace: !0, force: !0 }), S).catch(ye);
2514
2514
  return;
2515
2515
  }
2516
- h = b;
2517
- const j = l.value;
2518
- z && po(Nt(j.fullPath, w.delta), Fe()), vt(b, j).catch((V) => H(
2516
+ d = S;
2517
+ const C = l.value;
2518
+ z && go(It(C.fullPath, w.delta), Be()), yt(S, C).catch((V) => H(
2519
2519
  V,
2520
2520
  12
2521
2521
  /* ErrorTypes.NAVIGATION_CANCELLED */
@@ -2523,11 +2523,11 @@ ${JSON.stringify(b, null, 2)}
2523
2523
  V,
2524
2524
  2
2525
2525
  /* ErrorTypes.NAVIGATION_GUARD_REDIRECT */
2526
- ) ? (x(
2526
+ ) ? (D(
2527
2527
  I(_(V.to), {
2528
2528
  force: !0
2529
2529
  }),
2530
- b
2530
+ S
2531
2531
  // avoid an uncaught rejection, let push call triggerError
2532
2532
  ).then((k) => {
2533
2533
  H(
@@ -2535,11 +2535,11 @@ ${JSON.stringify(b, null, 2)}
2535
2535
  20
2536
2536
  /* ErrorTypes.NAVIGATION_DUPLICATED */
2537
2537
  ) && !w.delta && w.type === ce.pop && o.go(-1, !1);
2538
- }).catch(ve), Promise.reject()) : (w.delta && o.go(-w.delta, !1), Ue(V, b, j))).then((V) => {
2539
- V = V || wt(
2538
+ }).catch(ye), Promise.reject()) : (w.delta && o.go(-w.delta, !1), Ke(V, S, C))).then((V) => {
2539
+ V = V || Et(
2540
2540
  // after navigation, all matched components are resolved
2541
- b,
2542
- j,
2541
+ S,
2542
+ C,
2543
2543
  !1
2544
2544
  ), V && (w.delta && // a new navigation has been triggered, so we do not want to revert, that will change the current history
2545
2545
  // entry while a different route is displayed
@@ -2551,62 +2551,62 @@ ${JSON.stringify(b, null, 2)}
2551
2551
  V,
2552
2552
  20
2553
2553
  /* ErrorTypes.NAVIGATION_DUPLICATED */
2554
- ) && o.go(-1, !1)), yt(b, j, V);
2555
- }).catch(ve);
2554
+ ) && o.go(-1, !1)), wt(S, C, V);
2555
+ }).catch(ye);
2556
2556
  }));
2557
2557
  }
2558
- let We = pe(), Et = pe(), Re;
2559
- function Ue(m, E, w) {
2560
- Ke(m);
2561
- const b = Et.list();
2562
- return b.length ? b.forEach((T) => T(m, E, w)) : (O.NODE_ENV !== "production" && P("uncaught error during route navigation:"), console.error(m)), Promise.reject(m);
2558
+ let Ue = me(), _t = me(), Pe;
2559
+ function Ke(m, E, w) {
2560
+ Ge(m);
2561
+ const S = _t.list();
2562
+ return S.length ? S.forEach((T) => T(m, E, w)) : (O.NODE_ENV !== "production" && R("uncaught error during route navigation:"), console.error(m)), Promise.reject(m);
2563
2563
  }
2564
- function Wn() {
2565
- return Re && l.value !== Y ? Promise.resolve() : new Promise((m, E) => {
2566
- We.add([m, E]);
2564
+ function Kn() {
2565
+ return Pe && l.value !== Y ? Promise.resolve() : new Promise((m, E) => {
2566
+ Ue.add([m, E]);
2567
2567
  });
2568
2568
  }
2569
- function Ke(m) {
2570
- return Re || (Re = !m, Ln(), We.list().forEach(([E, w]) => m ? w(m) : E()), We.reset()), m;
2569
+ function Ge(m) {
2570
+ return Pe || (Pe = !m, Un(), Ue.list().forEach(([E, w]) => m ? w(m) : E()), Ue.reset()), m;
2571
2571
  }
2572
- function _t(m, E, w, b) {
2572
+ function St(m, E, w, S) {
2573
2573
  const { scrollBehavior: T } = e;
2574
2574
  if (!z || !T)
2575
2575
  return Promise.resolve();
2576
- const j = !w && mo(Nt(m.fullPath, 0)) || (b || !w) && history.state && history.state.scroll || null;
2577
- return Ie().then(() => T(m, E, j)).then((V) => V && ho(V)).catch((V) => Ue(V, m, E));
2576
+ const C = !w && vo(It(m.fullPath, 0)) || (S || !w) && history.state && history.state.scroll || null;
2577
+ return Te().then(() => T(m, E, C)).then((V) => V && mo(V)).catch((V) => Ke(V, m, E));
2578
2578
  }
2579
- const Ge = (m) => o.go(m);
2580
- let qe;
2581
- const Pe = /* @__PURE__ */ new Set(), bt = {
2579
+ const qe = (m) => o.go(m);
2580
+ let He;
2581
+ const ke = /* @__PURE__ */ new Set(), bt = {
2582
2582
  currentRoute: l,
2583
2583
  listening: !0,
2584
- addRoute: d,
2584
+ addRoute: h,
2585
2585
  removeRoute: v,
2586
2586
  clearRoutes: t.clearRoutes,
2587
2587
  hasRoute: g,
2588
2588
  getRoutes: p,
2589
2589
  resolve: y,
2590
2590
  options: e,
2591
- push: R,
2592
- replace: D,
2593
- go: Ge,
2594
- back: () => Ge(-1),
2595
- forward: () => Ge(1),
2591
+ push: P,
2592
+ replace: j,
2593
+ go: qe,
2594
+ back: () => qe(-1),
2595
+ forward: () => qe(1),
2596
2596
  beforeEach: s.add,
2597
2597
  beforeResolve: i.add,
2598
2598
  afterEach: u.add,
2599
- onError: Et.add,
2600
- isReady: Wn,
2599
+ onError: _t.add,
2600
+ isReady: Kn,
2601
2601
  install(m) {
2602
2602
  const E = this;
2603
- m.component("RouterLink", Ho), m.component("RouterView", Yo), m.config.globalProperties.$router = E, Object.defineProperty(m.config.globalProperties, "$route", {
2603
+ m.component("RouterLink", Jo), m.component("RouterView", Zo), m.config.globalProperties.$router = E, Object.defineProperty(m.config.globalProperties, "$route", {
2604
2604
  enumerable: !0,
2605
2605
  get: () => L(l)
2606
2606
  }), z && // used for the initial navigation client side to avoid pushing
2607
2607
  // multiple times when the router is used in multiple apps
2608
- !qe && l.value === Y && (qe = !0, R(o.location).catch((T) => {
2609
- O.NODE_ENV !== "production" && P("Unexpected error when starting the router:", T);
2608
+ !He && l.value === Y && (He = !0, P(o.location).catch((T) => {
2609
+ O.NODE_ENV !== "production" && R("Unexpected error when starting the router:", T);
2610
2610
  }));
2611
2611
  const w = {};
2612
2612
  for (const T in Y)
@@ -2614,76 +2614,76 @@ ${JSON.stringify(b, null, 2)}
2614
2614
  get: () => l.value[T],
2615
2615
  enumerable: !0
2616
2616
  });
2617
- m.provide(Be, E), m.provide(gt, zn(w)), m.provide(ct, l);
2618
- const b = m.unmount;
2619
- Pe.add(m), m.unmount = function() {
2620
- Pe.delete(m), Pe.size < 1 && (h = Y, fe && fe(), fe = null, l.value = Y, qe = !1, Re = !1), b();
2621
- }, O.NODE_ENV !== "production" && z && es(m, E, t);
2617
+ m.provide(Le, E), m.provide(vt, Qn(w)), m.provide(ut, l);
2618
+ const S = m.unmount;
2619
+ ke.add(m), m.unmount = function() {
2620
+ ke.delete(m), ke.size < 1 && (d = Y, de && de(), de = null, l.value = Y, He = !1, Pe = !1), S();
2621
+ }, O.NODE_ENV !== "production" && z && ns(m, E, t);
2622
2622
  }
2623
2623
  };
2624
2624
  function se(m) {
2625
- return m.reduce((E, w) => E.then(() => le(w)), Promise.resolve());
2625
+ return m.reduce((E, w) => E.then(() => fe(w)), Promise.resolve());
2626
2626
  }
2627
2627
  return bt;
2628
2628
  }
2629
- function fs(e, t) {
2629
+ function hs(e, t) {
2630
2630
  const n = [], r = [], o = [], s = Math.max(t.matched.length, e.matched.length);
2631
2631
  for (let i = 0; i < s; i++) {
2632
2632
  const u = t.matched[i];
2633
- u && (e.matched.find((h) => te(h, u)) ? r.push(u) : n.push(u));
2633
+ u && (e.matched.find((d) => te(d, u)) ? r.push(u) : n.push(u));
2634
2634
  const l = e.matched[i];
2635
- l && (t.matched.find((h) => te(h, l)) || o.push(l));
2635
+ l && (t.matched.find((d) => te(d, l)) || o.push(l));
2636
2636
  }
2637
2637
  return [n, r, o];
2638
2638
  }
2639
- function hs() {
2640
- return ee(Be);
2639
+ function ps() {
2640
+ return ee(Le);
2641
2641
  }
2642
- function ds(e) {
2643
- return ee(gt);
2642
+ function ms(e) {
2643
+ return ee(vt);
2644
2644
  }
2645
- const xn = /* @__PURE__ */ new Map();
2646
- function ps(e) {
2645
+ const Dn = /* @__PURE__ */ new Map();
2646
+ function gs(e) {
2647
2647
  var t;
2648
2648
  (t = e.jsFn) == null || t.forEach((n) => {
2649
- xn.set(n.id, W(n.code));
2649
+ Dn.set(n.id, W(n.code));
2650
2650
  });
2651
2651
  }
2652
- function ms(e) {
2653
- return xn.get(e);
2652
+ function vs(e) {
2653
+ return Dn.get(e);
2654
2654
  }
2655
2655
  function ne(e) {
2656
- let t = sn(), n = Pr(), r = Ar(e), o = un(), s = hs(), i = ds();
2656
+ let t = an(), n = Vr(), r = jr(e), o = ln(), s = ps(), i = ms();
2657
2657
  function u(p) {
2658
2658
  p.scopeSnapshot && (t = p.scopeSnapshot), p.slotSnapshot && (n = p.slotSnapshot), p.vforSnapshot && (r = p.vforSnapshot), p.elementRefSnapshot && (o = p.elementRefSnapshot), p.routerSnapshot && (s = p.routerSnapshot);
2659
2659
  }
2660
2660
  function l(p) {
2661
2661
  if (N.isVar(p))
2662
- return q(h(p));
2662
+ return q(d(p));
2663
2663
  if (N.isVForItem(p))
2664
- return jr(p.fid) ? r.getVForIndex(p.fid) : q(h(p));
2664
+ return xr(p.fid) ? r.getVForIndex(p.fid) : q(d(p));
2665
2665
  if (N.isVForIndex(p))
2666
2666
  return r.getVForIndex(p.fid);
2667
2667
  if (N.isJsFn(p)) {
2668
2668
  const { id: g } = p;
2669
- return ms(g);
2669
+ return vs(g);
2670
2670
  }
2671
2671
  if (N.isSlotProp(p))
2672
2672
  return n.getPropsValue(p);
2673
2673
  if (N.isRouterParams(p))
2674
- return q(h(p));
2674
+ return q(d(p));
2675
2675
  throw new Error(`Invalid binding: ${p}`);
2676
2676
  }
2677
- function h(p) {
2677
+ function d(p) {
2678
2678
  if (N.isVar(p)) {
2679
- const g = t.getVueRef(p) || wr(p);
2680
- return Ot(g, {
2679
+ const g = t.getVueRef(p) || _r(p);
2680
+ return Rt(g, {
2681
2681
  paths: p.path,
2682
2682
  getBindableValueFn: l
2683
2683
  });
2684
2684
  }
2685
2685
  if (N.isVForItem(p))
2686
- return $r({
2686
+ return Cr({
2687
2687
  binding: p,
2688
2688
  snapshot: v
2689
2689
  });
@@ -2691,7 +2691,7 @@ function ne(e) {
2691
2691
  return () => l(p);
2692
2692
  if (N.isRouterParams(p)) {
2693
2693
  const { prop: g = "params" } = p;
2694
- return Ot(() => i[g], {
2694
+ return Rt(() => i[g], {
2695
2695
  paths: p.path,
2696
2696
  getBindableValueFn: l
2697
2697
  });
@@ -2700,11 +2700,11 @@ function ne(e) {
2700
2700
  }
2701
2701
  function c(p) {
2702
2702
  if (N.isVar(p) || N.isVForItem(p))
2703
- return h(p);
2703
+ return d(p);
2704
2704
  if (N.isVForIndex(p) || N.isJsFn(p))
2705
2705
  return l(p);
2706
2706
  if (N.isRouterParams(p))
2707
- return h(p);
2707
+ return d(p);
2708
2708
  throw new Error(`Invalid binding: ${p}`);
2709
2709
  }
2710
2710
  function a(p) {
@@ -2730,7 +2730,7 @@ function ne(e) {
2730
2730
  function f(p) {
2731
2731
  var g, y;
2732
2732
  (g = p.vars) == null || g.forEach((_) => {
2733
- h({ type: "var", ..._ }).value = _.val;
2733
+ d({ type: "var", ..._ }).value = _.val;
2734
2734
  }), (y = p.ele_refs) == null || y.forEach((_) => {
2735
2735
  o.getRef({
2736
2736
  sid: _.sid,
@@ -2738,49 +2738,49 @@ function ne(e) {
2738
2738
  }).value[_.method](..._.args);
2739
2739
  });
2740
2740
  }
2741
- function d(p, g) {
2742
- if (Rt(g) || Rt(p.values))
2741
+ function h(p, g) {
2742
+ if (Pt(g) || Pt(p.values))
2743
2743
  return;
2744
2744
  g = g;
2745
2745
  const y = p.values, _ = p.skips || new Array(g.length).fill(0);
2746
- g.forEach((S, R) => {
2747
- if (_[R] === 1)
2746
+ g.forEach((b, P) => {
2747
+ if (_[P] === 1)
2748
2748
  return;
2749
- if (N.isVar(S)) {
2750
- const C = h(S);
2751
- C.value = y[R];
2749
+ if (N.isVar(b)) {
2750
+ const x = d(b);
2751
+ x.value = y[P];
2752
2752
  return;
2753
2753
  }
2754
- if (N.isRouterAction(S)) {
2755
- const C = y[R], x = s[C.fn];
2756
- x(...C.args);
2754
+ if (N.isRouterAction(b)) {
2755
+ const x = y[P], D = s[x.fn];
2756
+ D(...x.args);
2757
2757
  return;
2758
2758
  }
2759
- if (N.isElementRef(S)) {
2760
- const C = o.getRef(S).value, x = y[R], { method: Le, args: le = [] } = x;
2761
- C[Le](...le);
2759
+ if (N.isElementRef(b)) {
2760
+ const x = o.getRef(b).value, D = y[P], { method: We, args: fe = [] } = D;
2761
+ x[We](...fe);
2762
2762
  return;
2763
2763
  }
2764
- const D = h(S);
2765
- D.value = y[R];
2764
+ const j = d(b);
2765
+ j.value = y[P];
2766
2766
  });
2767
2767
  }
2768
2768
  const v = {
2769
2769
  getVForIndex: r.getVForIndex,
2770
2770
  getObjectToValue: l,
2771
- getVueRefObject: h,
2771
+ getVueRefObject: d,
2772
2772
  getVueRefObjectOrValue: c,
2773
2773
  getBindingServerInfo: a,
2774
2774
  updateRefFromServer: f,
2775
- updateOutputsRefFromServer: d,
2775
+ updateOutputsRefFromServer: h,
2776
2776
  replaceSnapshot: u
2777
2777
  };
2778
2778
  return v;
2779
2779
  }
2780
- class gs {
2780
+ class ys {
2781
2781
  async eventSend(t, n) {
2782
- const { fType: r, hKey: o, key: s } = t, i = Xe().webServerInfo, u = s !== void 0 ? { key: s } : {}, l = r === "sync" ? i.event_url : i.event_async_url;
2783
- let h = {};
2782
+ const { fType: r, hKey: o, key: s } = t, i = Ze().webServerInfo, u = s !== void 0 ? { key: s } : {}, l = r === "sync" ? i.event_url : i.event_async_url;
2783
+ let d = {};
2784
2784
  const c = await fetch(l, {
2785
2785
  method: "POST",
2786
2786
  headers: {
@@ -2790,8 +2790,8 @@ class gs {
2790
2790
  bind: n,
2791
2791
  hKey: o,
2792
2792
  ...u,
2793
- page: ye(),
2794
- ...h
2793
+ page: we(),
2794
+ ...d
2795
2795
  })
2796
2796
  });
2797
2797
  if (!c.ok)
@@ -2799,10 +2799,10 @@ class gs {
2799
2799
  return await c.json();
2800
2800
  }
2801
2801
  async watchSend(t) {
2802
- const { outputs: n, fType: r, key: o } = t.watchConfig, s = Xe().webServerInfo, i = r === "sync" ? s.watch_url : s.watch_async_url, u = t.getServerInputs(), l = {
2802
+ const { outputs: n, fType: r, key: o } = t.watchConfig, s = Ze().webServerInfo, i = r === "sync" ? s.watch_url : s.watch_async_url, u = t.getServerInputs(), l = {
2803
2803
  key: o,
2804
2804
  input: u,
2805
- page: ye()
2805
+ page: we()
2806
2806
  };
2807
2807
  return await (await fetch(i, {
2808
2808
  method: "POST",
@@ -2813,7 +2813,7 @@ class gs {
2813
2813
  })).json();
2814
2814
  }
2815
2815
  }
2816
- class vs {
2816
+ class ws {
2817
2817
  async eventSend(t, n) {
2818
2818
  const { fType: r, hKey: o, key: s } = t, i = s !== void 0 ? { key: s } : {};
2819
2819
  let u = {};
@@ -2822,7 +2822,7 @@ class vs {
2822
2822
  fType: r,
2823
2823
  hKey: o,
2824
2824
  ...i,
2825
- page: ye(),
2825
+ page: we(),
2826
2826
  ...u
2827
2827
  };
2828
2828
  return await window.pywebview.api.event_call(l);
@@ -2832,26 +2832,26 @@ class vs {
2832
2832
  key: o,
2833
2833
  input: s,
2834
2834
  fType: r,
2835
- page: ye()
2835
+ page: we()
2836
2836
  };
2837
2837
  return await window.pywebview.api.watch_call(i);
2838
2838
  }
2839
2839
  }
2840
- let lt;
2841
- function ys(e) {
2840
+ let ft;
2841
+ function Es(e) {
2842
2842
  switch (e.mode) {
2843
2843
  case "web":
2844
- lt = new gs();
2844
+ ft = new ys();
2845
2845
  break;
2846
2846
  case "webview":
2847
- lt = new vs();
2847
+ ft = new ws();
2848
2848
  break;
2849
2849
  }
2850
2850
  }
2851
- function Dn() {
2852
- return lt;
2851
+ function Mn() {
2852
+ return ft;
2853
2853
  }
2854
- function ws(e) {
2854
+ function _s(e) {
2855
2855
  const t = {
2856
2856
  type: "var",
2857
2857
  sid: e.sid,
@@ -2863,22 +2863,22 @@ function ws(e) {
2863
2863
  outputs: [t, ...e.outputs || []]
2864
2864
  };
2865
2865
  }
2866
- function Es(e, t, n) {
2867
- return new _s(e, t, n);
2866
+ function Ss(e, t, n) {
2867
+ return new bs(e, t, n);
2868
2868
  }
2869
- class _s {
2869
+ class bs {
2870
2870
  constructor(t, n, r) {
2871
2871
  B(this, "taskQueue", []);
2872
2872
  B(this, "id2TaskMap", /* @__PURE__ */ new Map());
2873
- B(this, "input2TaskIdMap", _e(() => []));
2873
+ B(this, "input2TaskIdMap", Se(() => []));
2874
2874
  this.snapshots = r;
2875
2875
  const o = [], s = (i) => {
2876
2876
  var l;
2877
- const u = new bs(i, r);
2878
- return this.id2TaskMap.set(u.id, u), (l = i.inputs) == null || l.forEach((h, c) => {
2879
- var f, d;
2880
- if (((f = i.data) == null ? void 0 : f[c]) === 0 && ((d = i.slient) == null ? void 0 : d[c]) === 0) {
2881
- const v = `${h.sid}-${h.id}`;
2877
+ const u = new Os(i, r);
2878
+ return this.id2TaskMap.set(u.id, u), (l = i.inputs) == null || l.forEach((d, c) => {
2879
+ var f, h;
2880
+ if (((f = i.data) == null ? void 0 : f[c]) === 0 && ((h = i.slient) == null ? void 0 : h[c]) === 0) {
2881
+ const v = `${d.sid}-${d.id}`;
2882
2882
  this.input2TaskIdMap.getOrDefault(v).push(u.id);
2883
2883
  }
2884
2884
  }), u;
@@ -2888,25 +2888,25 @@ class _s {
2888
2888
  o.push(u);
2889
2889
  }), n == null || n.forEach((i) => {
2890
2890
  const u = s(
2891
- ws(i)
2891
+ _s(i)
2892
2892
  );
2893
2893
  o.push(u);
2894
2894
  }), o.forEach((i) => {
2895
2895
  const {
2896
2896
  deep: u = !0,
2897
2897
  once: l,
2898
- flush: h,
2898
+ flush: d,
2899
2899
  immediate: c = !0
2900
2900
  } = i.watchConfig, a = {
2901
2901
  immediate: c,
2902
2902
  deep: u,
2903
2903
  once: l,
2904
- flush: h
2904
+ flush: d
2905
2905
  }, f = this._getWatchTargets(i);
2906
2906
  G(
2907
2907
  f,
2908
- (d) => {
2909
- d.some(Ee) || (i.modify = !0, this.taskQueue.push(new Ss(i)), this._scheduleNextTick());
2908
+ (h) => {
2909
+ h.some(_e) || (i.modify = !0, this.taskQueue.push(new Rs(i)), this._scheduleNextTick());
2910
2910
  },
2911
2911
  a
2912
2912
  );
@@ -2921,7 +2921,7 @@ class _s {
2921
2921
  ).map((s) => this.snapshots.getVueRefObjectOrValue(s));
2922
2922
  }
2923
2923
  _scheduleNextTick() {
2924
- Ie(() => this._runAllTasks());
2924
+ Te(() => this._runAllTasks());
2925
2925
  }
2926
2926
  _runAllTasks() {
2927
2927
  const t = this.taskQueue.slice();
@@ -2956,7 +2956,7 @@ class _s {
2956
2956
  }), n;
2957
2957
  }
2958
2958
  }
2959
- class bs {
2959
+ class Os {
2960
2960
  constructor(t, n) {
2961
2961
  B(this, "modify", !0);
2962
2962
  B(this, "_running", !1);
@@ -3012,7 +3012,7 @@ class bs {
3012
3012
  }
3013
3013
  }
3014
3014
  }
3015
- class Ss {
3015
+ class Rs {
3016
3016
  /**
3017
3017
  *
3018
3018
  */
@@ -3057,18 +3057,18 @@ class Ss {
3057
3057
  if (this.watchTask.modify) {
3058
3058
  this.watchTask.modify = !1, this.watchTask.setRunning();
3059
3059
  try {
3060
- await Os(this.watchTask);
3060
+ await Ps(this.watchTask);
3061
3061
  } finally {
3062
3062
  this.watchTask.taskDone();
3063
3063
  }
3064
3064
  }
3065
3065
  }
3066
3066
  }
3067
- async function Os(e) {
3068
- const { snapshot: t } = e, { outputs: n } = e.watchConfig, r = await Dn().watchSend(e);
3067
+ async function Ps(e) {
3068
+ const { snapshot: t } = e, { outputs: n } = e.watchConfig, r = await Mn().watchSend(e);
3069
3069
  r && t.updateOutputsRefFromServer(r, n);
3070
3070
  }
3071
- function Rs(e, t) {
3071
+ function ks(e, t) {
3072
3072
  const {
3073
3073
  on: n,
3074
3074
  code: r,
@@ -3077,20 +3077,20 @@ function Rs(e, t) {
3077
3077
  once: i,
3078
3078
  flush: u,
3079
3079
  bind: l = {},
3080
- onData: h,
3080
+ onData: d,
3081
3081
  bindData: c
3082
- } = e, a = h || new Array(n.length).fill(0), f = c || new Array(Object.keys(l).length).fill(0), d = De(
3082
+ } = e, a = d || new Array(n.length).fill(0), f = c || new Array(Object.keys(l).length).fill(0), h = Me(
3083
3083
  l,
3084
3084
  (g, y, _) => f[_] === 0 ? t.getVueRefObject(g) : g
3085
- ), v = W(r, d), p = n.length === 1 ? Kt(a[0] === 1, n[0], t) : n.map(
3086
- (g, y) => Kt(a[y] === 1, g, t)
3085
+ ), v = W(r, h), p = n.length === 1 ? Gt(a[0] === 1, n[0], t) : n.map(
3086
+ (g, y) => Gt(a[y] === 1, g, t)
3087
3087
  );
3088
3088
  return G(p, v, { immediate: o, deep: s, once: i, flush: u });
3089
3089
  }
3090
- function Kt(e, t, n) {
3090
+ function Gt(e, t, n) {
3091
3091
  return e ? () => t : n.getVueRefObject(t);
3092
3092
  }
3093
- function Ps(e, t) {
3093
+ function Vs(e, t) {
3094
3094
  const {
3095
3095
  inputs: n = [],
3096
3096
  outputs: r,
@@ -3099,40 +3099,40 @@ function Ps(e, t) {
3099
3099
  code: i,
3100
3100
  immediate: u = !0,
3101
3101
  deep: l,
3102
- once: h,
3102
+ once: d,
3103
3103
  flush: c
3104
- } = e, a = o || new Array(n.length).fill(0), f = s || new Array(n.length).fill(0), d = W(i), v = n.filter((g, y) => a[y] === 0 && f[y] === 0).map((g) => t.getVueRefObject(g));
3104
+ } = e, a = o || new Array(n.length).fill(0), f = s || new Array(n.length).fill(0), h = W(i), v = n.filter((g, y) => a[y] === 0 && f[y] === 0).map((g) => t.getVueRefObject(g));
3105
3105
  function p() {
3106
- return n.map((g, y) => f[y] === 0 ? nn(q(t.getVueRefObject(g))) : g);
3106
+ return n.map((g, y) => f[y] === 0 ? rn(q(t.getVueRefObject(g))) : g);
3107
3107
  }
3108
3108
  G(
3109
3109
  v,
3110
3110
  () => {
3111
- let g = d(...p());
3111
+ let g = h(...p());
3112
3112
  if (!r)
3113
3113
  return;
3114
- const _ = r.length === 1 ? [g] : g, S = _.map((R) => R === void 0 ? 1 : 0);
3114
+ const _ = r.length === 1 ? [g] : g, b = _.map((P) => P === void 0 ? 1 : 0);
3115
3115
  t.updateOutputsRefFromServer(
3116
- { values: _, skips: S },
3116
+ { values: _, skips: b },
3117
3117
  r
3118
3118
  );
3119
3119
  },
3120
- { immediate: u, deep: l, once: h, flush: c }
3120
+ { immediate: u, deep: l, once: d, flush: c }
3121
3121
  );
3122
3122
  }
3123
- function ks(e, t) {
3123
+ function Ns(e, t) {
3124
3124
  return Object.assign(
3125
3125
  {},
3126
3126
  ...Object.entries(e ?? {}).map(([n, r]) => {
3127
3127
  const o = r.map((u) => {
3128
3128
  if (u.type === "web") {
3129
- const l = Vs(u.bind, t);
3130
- return Ns(u, l, t);
3129
+ const l = Is(u.bind, t);
3130
+ return Ts(u, l, t);
3131
3131
  } else {
3132
3132
  if (u.type === "vue")
3133
- return Ts(u, t);
3133
+ return $s(u, t);
3134
3134
  if (u.type === "js")
3135
- return Is(u, t);
3135
+ return As(u, t);
3136
3136
  }
3137
3137
  throw new Error(`unknown event type ${u}`);
3138
3138
  }), i = W(
@@ -3147,7 +3147,7 @@ function ks(e, t) {
3147
3147
  })
3148
3148
  );
3149
3149
  }
3150
- function Vs(e, t) {
3150
+ function Is(e, t) {
3151
3151
  return (...n) => (e ?? []).map((r) => {
3152
3152
  if (N.isEventContext(r)) {
3153
3153
  if (r.path.startsWith(":")) {
@@ -3159,14 +3159,14 @@ function Vs(e, t) {
3159
3159
  return N.IsBinding(r) ? t.getObjectToValue(r) : r;
3160
3160
  });
3161
3161
  }
3162
- function Ns(e, t, n) {
3162
+ function Ts(e, t, n) {
3163
3163
  async function r(...o) {
3164
- const s = t(...o), i = await Dn().eventSend(e, s);
3164
+ const s = t(...o), i = await Mn().eventSend(e, s);
3165
3165
  i && n.updateOutputsRefFromServer(i, e.set);
3166
3166
  }
3167
3167
  return r;
3168
3168
  }
3169
- function Is(e, t) {
3169
+ function As(e, t) {
3170
3170
  const { code: n, inputs: r = [], set: o } = e, s = W(n);
3171
3171
  function i(...u) {
3172
3172
  const l = (r ?? []).map((c) => {
@@ -3177,61 +3177,61 @@ function Is(e, t) {
3177
3177
  }
3178
3178
  return be(u[0], c.path.split("."));
3179
3179
  }
3180
- return N.IsBinding(c) ? nn(t.getObjectToValue(c)) : c;
3181
- }), h = s(...l);
3180
+ return N.IsBinding(c) ? rn(t.getObjectToValue(c)) : c;
3181
+ }), d = s(...l);
3182
3182
  if (o !== void 0) {
3183
- const a = o.length === 1 ? [h] : h, f = a.map((d) => d === void 0 ? 1 : 0);
3183
+ const a = o.length === 1 ? [d] : d, f = a.map((h) => h === void 0 ? 1 : 0);
3184
3184
  t.updateOutputsRefFromServer({ values: a, skips: f }, o);
3185
3185
  }
3186
3186
  }
3187
3187
  return i;
3188
3188
  }
3189
- function Ts(e, t) {
3190
- const { code: n, bind: r = {}, bindData: o } = e, s = o || new Array(Object.keys(r).length).fill(0), i = De(
3189
+ function $s(e, t) {
3190
+ const { code: n, bind: r = {}, bindData: o } = e, s = o || new Array(Object.keys(r).length).fill(0), i = Me(
3191
3191
  r,
3192
- (h, c, a) => s[a] === 0 ? t.getVueRefObject(h) : h
3192
+ (d, c, a) => s[a] === 0 ? t.getVueRefObject(d) : d
3193
3193
  ), u = W(n, i);
3194
- function l(...h) {
3195
- u(...h);
3194
+ function l(...d) {
3195
+ u(...d);
3196
3196
  }
3197
3197
  return l;
3198
3198
  }
3199
- function As(e, t) {
3199
+ function js(e, t) {
3200
3200
  const n = [];
3201
3201
  (e.bStyle || []).forEach((s) => {
3202
3202
  Array.isArray(s) ? n.push(
3203
3203
  ...s.map((i) => t.getObjectToValue(i))
3204
3204
  ) : n.push(
3205
- De(
3205
+ Me(
3206
3206
  s,
3207
3207
  (i) => t.getObjectToValue(i)
3208
3208
  )
3209
3209
  );
3210
3210
  });
3211
- const r = Qn([e.style || {}, n]);
3211
+ const r = Xn([e.style || {}, n]);
3212
3212
  return {
3213
3213
  hasStyle: r && Object.keys(r).length > 0,
3214
3214
  styles: r
3215
3215
  };
3216
3216
  }
3217
- function $s(e, t) {
3217
+ function Cs(e, t) {
3218
3218
  const n = e.classes;
3219
3219
  if (!n)
3220
3220
  return null;
3221
3221
  if (typeof n == "string")
3222
- return Ye(n);
3222
+ return Xe(n);
3223
3223
  const { str: r, map: o, bind: s } = n, i = [];
3224
3224
  return r && i.push(r), o && i.push(
3225
- De(
3225
+ Me(
3226
3226
  o,
3227
3227
  (u) => t.getObjectToValue(u)
3228
3228
  )
3229
- ), s && i.push(...s.map((u) => t.getObjectToValue(u))), Ye(i);
3229
+ ), s && i.push(...s.map((u) => t.getObjectToValue(u))), Xe(i);
3230
3230
  }
3231
- function Ae(e, t = !0) {
3231
+ function $e(e, t = !0) {
3232
3232
  if (!(typeof e != "object" || e === null)) {
3233
3233
  if (Array.isArray(e)) {
3234
- t && e.forEach((n) => Ae(n, !0));
3234
+ t && e.forEach((n) => $e(n, !0));
3235
3235
  return;
3236
3236
  }
3237
3237
  for (const [n, r] of Object.entries(e))
@@ -3245,92 +3245,105 @@ function Ae(e, t = !0) {
3245
3245
  );
3246
3246
  }
3247
3247
  else
3248
- t && Ae(r, !0);
3248
+ t && $e(r, !0);
3249
3249
  }
3250
3250
  }
3251
- function js(e, t) {
3251
+ function xs(e, t) {
3252
3252
  const n = e.startsWith(":");
3253
3253
  return n && (e = e.slice(1), t = W(t)), { name: e, value: t, isFunc: n };
3254
3254
  }
3255
- function Cs(e, t, n) {
3255
+ function Ds(e, t, n) {
3256
3256
  var o;
3257
3257
  const r = {};
3258
- return St(e.bProps || {}, (s, i) => {
3258
+ return Ot(e.bProps || {}, (s, i) => {
3259
3259
  const u = n.getObjectToValue(s);
3260
- Ee(u) || (Ae(u), r[i] = xs(u, i));
3260
+ _e(u) || ($e(u), r[i] = Ms(u, i));
3261
3261
  }), (o = e.proxyProps) == null || o.forEach((s) => {
3262
3262
  const i = n.getObjectToValue(s);
3263
- typeof i == "object" && St(i, (u, l) => {
3264
- const { name: h, value: c } = js(l, u);
3265
- r[h] = c;
3263
+ typeof i == "object" && Ot(i, (u, l) => {
3264
+ const { name: d, value: c } = xs(l, u);
3265
+ r[d] = c;
3266
3266
  });
3267
3267
  }), { ...t || {}, ...r };
3268
3268
  }
3269
- function xs(e, t) {
3270
- return t === "innerText" ? Qt(e) : e;
3269
+ function Ms(e, t) {
3270
+ return t === "innerText" ? Yt(e) : e;
3271
3271
  }
3272
- function Ds(e, { slots: t }) {
3273
- const { id: n, use: r } = e.propsInfo, o = Sr(n);
3274
- return Ce(() => {
3275
- Rr(n);
3272
+ function Fs(e, { slots: t }) {
3273
+ const { id: n, use: r } = e.propsInfo, o = Rr(n);
3274
+ return xe(() => {
3275
+ kr(n);
3276
3276
  }), () => {
3277
3277
  const s = e.propsValue;
3278
- return Or(
3278
+ return Pr(
3279
3279
  n,
3280
3280
  o,
3281
3281
  Object.fromEntries(
3282
3282
  r.map((i) => [i, s[i]])
3283
3283
  )
3284
- ), A(xe, null, t.default());
3284
+ ), A(De, null, t.default());
3285
3285
  };
3286
3286
  }
3287
- const Ms = F(Ds, {
3287
+ const Bs = F(Fs, {
3288
3288
  props: ["propsInfo", "propsValue"]
3289
- });
3290
- function Fs(e, t) {
3289
+ }), Fn = /* @__PURE__ */ new Map();
3290
+ function Ls(e) {
3291
+ var t;
3292
+ (t = e.scopes) == null || t.forEach((n) => {
3293
+ Fn.set(n.id, n);
3294
+ });
3295
+ }
3296
+ function le(e) {
3297
+ return Fn.get(e);
3298
+ }
3299
+ function Ws(e, t) {
3291
3300
  if (!e.slots)
3292
3301
  return null;
3293
3302
  const n = e.slots ?? {};
3294
- return Array.isArray(n) ? t ? ge(n) : () => ge(n) : Zt(n, { keyFn: (i) => i === ":" ? "default" : i, valueFn: (i) => {
3303
+ return Array.isArray(n) ? t ? ve(n) : () => ve(n) : en(n, { keyFn: (i) => i === ":" ? "default" : i, valueFn: (i) => {
3295
3304
  const { items: u } = i;
3296
3305
  return (l) => {
3297
- if (i.scope) {
3298
- const h = () => i.props ? Gt(i.props, l, u) : ge(u);
3299
- return A(Oe, { scope: i.scope }, h);
3306
+ if (i.scopeId) {
3307
+ const d = () => i.props ? qt(i.props, l, u) : ve(u);
3308
+ return A(
3309
+ Re,
3310
+ { scope: le(i.scopeId) },
3311
+ d
3312
+ );
3300
3313
  }
3301
- return i.props ? Gt(i.props, l, u) : ge(u);
3314
+ return i.props ? qt(i.props, l, u) : ve(u);
3302
3315
  };
3303
3316
  } });
3304
3317
  }
3305
- function Gt(e, t, n) {
3318
+ function qt(e, t, n) {
3306
3319
  return A(
3307
- Ms,
3320
+ Bs,
3308
3321
  { propsInfo: e, propsValue: t },
3309
- () => ge(n)
3322
+ () => ve(n)
3310
3323
  );
3311
3324
  }
3312
- function ge(e) {
3325
+ function ve(e) {
3313
3326
  const t = (e ?? []).map((n) => A(Q, {
3314
3327
  component: n
3315
3328
  }));
3316
3329
  return t.length <= 0 ? null : t;
3317
3330
  }
3318
- function Bs(e, t) {
3331
+ function Us(e, t) {
3319
3332
  const n = {}, r = [];
3320
3333
  return (e || []).forEach((o) => {
3321
- const { sys: s, name: i, arg: u, value: l, mf: h } = o;
3334
+ const { sys: s, name: i, arg: u, value: l, mf: d } = o;
3322
3335
  if (i === "vmodel") {
3323
3336
  const c = t.getVueRefObject(l);
3324
3337
  if (n[`onUpdate:${u}`] = (a) => {
3325
3338
  c.value = a;
3326
3339
  }, s === 1) {
3327
- const a = h ? Object.fromEntries(h.map((f) => [f, !0])) : {};
3328
- r.push([Yn, c.value, void 0, a]);
3340
+ const a = d ? Object.fromEntries(d.map((f) => [f, !0])) : {};
3341
+ r.push([Zn, c.value, void 0, a]);
3329
3342
  } else
3330
3343
  n[u] = c.value;
3331
3344
  } else if (i === "vshow") {
3332
3345
  const c = t.getVueRefObject(l);
3333
- r.push([Xn, c.value]);
3346
+ r.push([er, c.value]);
3334
3347
  } else
3335
3348
  console.warn(`Directive ${i} is not supported yet`);
3336
3349
  }), {
@@ -3338,56 +3351,56 @@ function Bs(e, t) {
3338
3351
  directiveArray: r
3339
3352
  };
3340
3353
  }
3341
- function Ls(e, t) {
3354
+ function Ks(e, t) {
3342
3355
  const { eRef: n } = e;
3343
3356
  return n === void 0 ? {} : { ref: t.getRef(n) };
3344
3357
  }
3345
- function Ws(e) {
3346
- const t = ne(), n = un(), r = e.component.props ?? {};
3347
- return Ae(r, !0), () => {
3348
- const { tag: o } = e.component, s = N.IsBinding(o) ? t.getObjectToValue(o) : o, i = ft(s), u = typeof i == "string", l = $s(e.component, t), { styles: h, hasStyle: c } = As(e.component, t), a = ks(e.component.events ?? {}, t), f = Fs(e.component, u), d = Cs(e.component, r, t), { newProps: v, directiveArray: p } = Bs(
3358
+ function Gs(e) {
3359
+ const t = ne(), n = ln(), r = e.component.props ?? {};
3360
+ return $e(r, !0), () => {
3361
+ const { tag: o } = e.component, s = N.IsBinding(o) ? t.getObjectToValue(o) : o, i = dt(s), u = typeof i == "string", l = Cs(e.component, t), { styles: d, hasStyle: c } = js(e.component, t), a = Ns(e.component.events ?? {}, t), f = Ws(e.component, u), h = Ds(e.component, r, t), { newProps: v, directiveArray: p } = Us(
3349
3362
  e.component.dir,
3350
3363
  t
3351
- ), g = Ls(
3364
+ ), g = Ks(
3352
3365
  e.component,
3353
3366
  n
3354
- ), y = Zn({
3355
- ...d,
3367
+ ), y = tr({
3368
+ ...h,
3356
3369
  ...a,
3357
3370
  ...v,
3358
3371
  ...g
3359
3372
  }) || {};
3360
- c && (y.style = h), l && (y.class = l);
3373
+ c && (y.style = d), l && (y.class = l);
3361
3374
  const _ = A(i, { ...y }, f);
3362
- return p.length > 0 ? er(
3375
+ return p.length > 0 ? nr(
3363
3376
  // @ts-ignore
3364
3377
  _,
3365
3378
  p
3366
3379
  ) : _;
3367
3380
  };
3368
3381
  }
3369
- const Q = F(Ws, {
3382
+ const Q = F(Gs, {
3370
3383
  props: ["component"]
3371
3384
  });
3372
- function Mn(e, t) {
3385
+ function Bn(e, t) {
3373
3386
  var n, r;
3374
3387
  if (e) {
3375
- const o = _r(e), s = on(e, ne(t)), i = ne(t);
3376
- Es(e.py_watch, e.web_computed, i), (n = e.vue_watch) == null || n.forEach((u) => Rs(u, i)), (r = e.js_watch) == null || r.forEach((u) => Ps(u, i)), Ce(() => {
3377
- cn(e.id, s), br(e.id, o);
3388
+ const o = br(e), s = sn(e, ne(t)), i = ne(t);
3389
+ Ss(e.py_watch, e.web_computed, i), (n = e.vue_watch) == null || n.forEach((u) => ks(u, i)), (r = e.js_watch) == null || r.forEach((u) => Vs(u, i)), xe(() => {
3390
+ un(e.id, s), Or(e.id, o);
3378
3391
  });
3379
3392
  }
3380
3393
  }
3381
- function Us(e, { slots: t }) {
3394
+ function qs(e, { slots: t }) {
3382
3395
  const { scope: n } = e;
3383
- return Mn(n), () => A(xe, null, t.default());
3396
+ return Bn(n), () => A(De, null, t.default());
3384
3397
  }
3385
- const Oe = F(Us, {
3398
+ const Re = F(qs, {
3386
3399
  props: ["scope"]
3387
- }), Ks = F(
3400
+ }), Hs = F(
3388
3401
  (e) => {
3389
3402
  const { scope: t, items: n, vforInfo: r } = e;
3390
- return kr(r), Mn(t, r.key), n.length === 1 ? () => A(Q, {
3403
+ return Nr(r), Bn(t, r.key), n.length === 1 ? () => A(Q, {
3391
3404
  component: n[0]
3392
3405
  }) : () => n.map(
3393
3406
  (s) => A(Q, {
@@ -3399,8 +3412,8 @@ const Oe = F(Us, {
3399
3412
  props: ["scope", "items", "vforInfo"]
3400
3413
  }
3401
3414
  );
3402
- function Gs(e, t) {
3403
- const { state: n, isReady: r, isLoading: o } = dr(async () => {
3415
+ function zs(e, t) {
3416
+ const { state: n, isReady: r, isLoading: o } = mr(async () => {
3404
3417
  let s = e;
3405
3418
  const i = t;
3406
3419
  if (!s && !i)
@@ -3411,45 +3424,45 @@ function Gs(e, t) {
3411
3424
  }, {});
3412
3425
  return { config: n, isReady: r, isLoading: o };
3413
3426
  }
3414
- function qs(e, t) {
3427
+ function Js(e, t) {
3415
3428
  let n;
3416
3429
  return t.component ? n = `Error captured from component:tag: ${t.component.tag} ; id: ${t.component.id} ` : n = "Error captured from app init", console.group(n), console.error("Component:", t.component), console.error("Error:", e), console.groupEnd(), !1;
3417
3430
  }
3418
- const Hs = { class: "app-box" }, zs = {
3431
+ const Qs = { class: "app-box" }, Ys = {
3419
3432
  key: 0,
3420
3433
  style: { position: "absolute", top: "50%", left: "50%", transform: "translate(-50%, -50%)" }
3421
- }, Js = /* @__PURE__ */ F({
3434
+ }, Xs = /* @__PURE__ */ F({
3422
3435
  __name: "App",
3423
3436
  props: {
3424
3437
  config: {},
3425
3438
  configUrl: {}
3426
3439
  },
3427
3440
  setup(e) {
3428
- const t = e, { config: n, isLoading: r } = Gs(
3441
+ const t = e, { config: n, isLoading: r } = zs(
3429
3442
  t.config,
3430
3443
  t.configUrl
3431
3444
  );
3432
3445
  let o = null;
3433
3446
  return G(n, (s) => {
3434
- o = s, s.url && (cr({
3447
+ o = s, s.url && (lr({
3435
3448
  mode: s.mode,
3436
3449
  version: s.version,
3437
3450
  queryPath: s.url.path,
3438
3451
  pathParams: s.url.params,
3439
3452
  webServerInfo: s.webInfo
3440
- }), ys(s), ps(s));
3441
- }), tr(qs), (s, i) => (he(), ke("div", Hs, [
3442
- L(r) ? (he(), ke("div", zs, i[0] || (i[0] = [
3443
- nr("p", { style: { margin: "auto" } }, "Loading ...", -1)
3444
- ]))) : (he(), ke("div", {
3453
+ }), Es(s)), Ls(s), gs(s);
3454
+ }), rr(Js), (s, i) => (he(), Ve("div", Qs, [
3455
+ L(r) ? (he(), Ve("div", Ys, i[0] || (i[0] = [
3456
+ or("p", { style: { margin: "auto" } }, "Loading ...", -1)
3457
+ ]))) : (he(), Ve("div", {
3445
3458
  key: 1,
3446
- class: Ye(["insta-main", L(n).class])
3459
+ class: Xe(["insta-main", L(n).class])
3447
3460
  }, [
3448
- rr(L(Oe), {
3449
- scope: L(o).scope
3461
+ sr(L(Re), {
3462
+ scope: L(le)(L(o).scopeId)
3450
3463
  }, {
3451
- default: or(() => [
3452
- (he(!0), ke(xe, null, sr(L(o).items, (u) => (he(), ir(L(Q), { component: u }, null, 8, ["component"]))), 256))
3464
+ default: ir(() => [
3465
+ (he(!0), Ve(De, null, ar(L(o).items, (u) => (he(), cr(L(Q), { component: u }, null, 8, ["component"]))), 256))
3453
3466
  ]),
3454
3467
  _: 1
3455
3468
  }, 8, ["scope"])
@@ -3457,19 +3470,19 @@ const Hs = { class: "app-box" }, zs = {
3457
3470
  ]));
3458
3471
  }
3459
3472
  });
3460
- function Qs(e) {
3461
- const { on: t, scope: n, items: r } = e, o = ne();
3473
+ function Zs(e) {
3474
+ const { on: t, scopeId: n, items: r } = e, o = le(n), s = ne();
3462
3475
  return () => {
3463
- const s = typeof t == "boolean" ? t : o.getObjectToValue(t);
3464
- return A(Oe, { scope: n }, () => s ? r.map(
3465
- (u) => A(Q, { component: u })
3476
+ const i = typeof t == "boolean" ? t : s.getObjectToValue(t);
3477
+ return A(Re, { scope: o }, () => i ? r.map(
3478
+ (l) => A(Q, { component: l })
3466
3479
  ) : void 0);
3467
3480
  };
3468
3481
  }
3469
- const Ys = F(Qs, {
3470
- props: ["on", "scope", "items"]
3482
+ const ei = F(Zs, {
3483
+ props: ["on", "scopeId", "items"]
3471
3484
  });
3472
- function Xs(e) {
3485
+ function ti(e) {
3473
3486
  const { start: t = 0, end: n, step: r = 1 } = e;
3474
3487
  let o = [];
3475
3488
  if (r > 0)
@@ -3480,111 +3493,122 @@ function Xs(e) {
3480
3493
  o.push(s);
3481
3494
  return o;
3482
3495
  }
3483
- function Zs(e) {
3484
- const { array: t, bArray: n, items: r, fkey: o, fid: s, scope: i, num: u, tsGroup: l = {} } = e, h = t === void 0, c = u !== void 0, a = h ? n : t, f = ne();
3485
- Nr(s, a, h, c);
3486
- const v = oi(o ?? "index");
3487
- return Ce(() => {
3488
- Er(i.id);
3489
- }), () => {
3490
- const p = ti(
3496
+ function ni(e) {
3497
+ const { array: t, bArray: n, items: r, fkey: o, fid: s, scopeId: i, num: u, tsGroup: l = {} } = e, d = t === void 0, c = u !== void 0, a = d ? n : t, f = ne();
3498
+ Tr(s, a, d, c);
3499
+ const v = ai(o ?? "index");
3500
+ xe(() => {
3501
+ Sr(i);
3502
+ });
3503
+ const p = le(i);
3504
+ return () => {
3505
+ const g = oi(
3491
3506
  c,
3492
- h,
3507
+ d,
3493
3508
  a,
3494
3509
  f,
3495
3510
  u
3496
- ), g = Tr(s), y = p.map((_, S) => {
3497
- const R = v(_, S);
3498
- return g.add(R), Ir(s, R, S), A(Ks, {
3499
- scope: e.scope,
3511
+ ), y = $r(s), _ = g.map((b, P) => {
3512
+ const j = v(b, P);
3513
+ return y.add(j), Ar(s, j, P), A(Hs, {
3514
+ scope: p,
3500
3515
  items: r,
3501
3516
  vforInfo: {
3502
3517
  fid: s,
3503
- key: R
3518
+ key: j
3504
3519
  },
3505
- key: R
3520
+ key: j
3506
3521
  });
3507
3522
  });
3508
- return g.removeUnusedKeys(), l && Object.keys(l).length > 0 ? A(Yt, l, {
3509
- default: () => y
3510
- }) : y;
3523
+ return y.removeUnusedKeys(), l && Object.keys(l).length > 0 ? A(Xt, l, {
3524
+ default: () => _
3525
+ }) : _;
3511
3526
  };
3512
3527
  }
3513
- const ei = F(Zs, {
3514
- props: ["array", "items", "fid", "bArray", "scope", "num", "fkey", "tsGroup"]
3528
+ const ri = F(ni, {
3529
+ props: [
3530
+ "array",
3531
+ "items",
3532
+ "fid",
3533
+ "bArray",
3534
+ "scopeId",
3535
+ "num",
3536
+ "fkey",
3537
+ "tsGroup"
3538
+ ]
3515
3539
  });
3516
- function ti(e, t, n, r, o) {
3540
+ function oi(e, t, n, r, o) {
3517
3541
  if (e) {
3518
3542
  let i = 0;
3519
- return typeof o == "number" ? i = o : i = r.getObjectToValue(o) ?? 0, Xs({
3543
+ return typeof o == "number" ? i = o : i = r.getObjectToValue(o) ?? 0, ti({
3520
3544
  end: Math.max(0, i)
3521
3545
  });
3522
3546
  }
3523
3547
  const s = t ? r.getObjectToValue(n) || [] : n;
3524
3548
  return typeof s == "object" ? Object.values(s) : s;
3525
3549
  }
3526
- const ni = (e) => e, ri = (e, t) => t;
3527
- function oi(e) {
3528
- const t = pr(e);
3529
- return typeof t == "function" ? t : e === "item" ? ni : ri;
3550
+ const si = (e) => e, ii = (e, t) => t;
3551
+ function ai(e) {
3552
+ const t = gr(e);
3553
+ return typeof t == "function" ? t : e === "item" ? si : ii;
3530
3554
  }
3531
- function si(e) {
3555
+ function ci(e) {
3532
3556
  return e.map((n) => {
3533
3557
  if (n.tag)
3534
3558
  return A(Q, { component: n });
3535
- const r = ft(Fn);
3559
+ const r = dt(Ln);
3536
3560
  return A(r, {
3537
3561
  scope: n
3538
3562
  });
3539
3563
  });
3540
3564
  }
3541
- const Fn = F(
3565
+ const Ln = F(
3542
3566
  (e) => {
3543
3567
  const t = e.scope;
3544
- return () => si(t.items ?? []);
3568
+ return () => ci(t.items ?? []);
3545
3569
  },
3546
3570
  {
3547
3571
  props: ["scope"]
3548
3572
  }
3549
3573
  );
3550
- function ii(e) {
3574
+ function ui(e) {
3551
3575
  return e.map((t) => {
3552
3576
  if (t.tag)
3553
3577
  return A(Q, { component: t });
3554
- const n = ft(Fn);
3578
+ const n = dt(Ln);
3555
3579
  return A(n, {
3556
3580
  scope: t
3557
3581
  });
3558
3582
  });
3559
3583
  }
3560
- const ai = F(
3584
+ const li = F(
3561
3585
  (e) => {
3562
- const { scope: t, on: n, items: r } = e, o = J(r), s = on(t), i = ne();
3563
- return $e.createDynamicWatchRefresh(n, i, async () => {
3564
- const { items: u, on: l } = await $e.fetchRemote(e, i);
3586
+ const { scope: t, on: n, items: r } = e, o = J(r), s = sn(t), i = ne();
3587
+ return je.createDynamicWatchRefresh(n, i, async () => {
3588
+ const { items: u, on: l } = await je.fetchRemote(e, i);
3565
3589
  return o.value = u, l;
3566
- }), Ce(() => {
3567
- cn(t.id, s);
3568
- }), () => ii(o.value);
3590
+ }), xe(() => {
3591
+ un(t.id, s);
3592
+ }), () => ui(o.value);
3569
3593
  },
3570
3594
  {
3571
3595
  props: ["sid", "url", "hKey", "on", "bind", "items", "scope"]
3572
3596
  }
3573
3597
  );
3574
- var $e;
3598
+ var je;
3575
3599
  ((e) => {
3576
3600
  function t(r, o, s) {
3577
3601
  let i = null, u = r, l = u.map((c) => o.getVueRefObject(c));
3578
- function h() {
3602
+ function d() {
3579
3603
  i && i(), i = G(
3580
3604
  l,
3581
3605
  async () => {
3582
- u = await s(), l = u.map((c) => o.getVueRefObject(c)), h();
3606
+ u = await s(), l = u.map((c) => o.getVueRefObject(c)), d();
3583
3607
  },
3584
3608
  { deep: !0 }
3585
3609
  );
3586
3610
  }
3587
- return h(), () => {
3611
+ return d(), () => {
3588
3612
  i && i();
3589
3613
  };
3590
3614
  }
@@ -3598,7 +3622,7 @@ var $e;
3598
3622
  sid: r.sid,
3599
3623
  bind: s,
3600
3624
  hKey: r.hKey,
3601
- page: ye()
3625
+ page: we()
3602
3626
  }, u = {
3603
3627
  method: "POST",
3604
3628
  headers: {
@@ -3611,75 +3635,77 @@ var $e;
3611
3635
  return await l.json();
3612
3636
  }
3613
3637
  e.fetchRemote = n;
3614
- })($e || ($e = {}));
3615
- function ci(e) {
3616
- const { scope: t, items: n } = e;
3638
+ })(je || (je = {}));
3639
+ function fi(e) {
3640
+ const { scopeId: t, items: n } = e, r = le(t);
3617
3641
  return () => {
3618
- const r = n.map((o) => A(Q, { component: o }));
3619
- return A(Oe, { scope: t }, () => r);
3642
+ const o = n.map((s) => A(Q, { component: s }));
3643
+ return A(Re, { scope: r }, () => o);
3620
3644
  };
3621
3645
  }
3622
- const qt = F(ci, {
3623
- props: ["scope", "items"]
3646
+ const Ht = F(fi, {
3647
+ props: ["scopeId", "items"]
3624
3648
  });
3625
- function ui(e) {
3649
+ function di(e) {
3626
3650
  const { on: t, case: n, default: r } = e, o = ne();
3627
3651
  return () => {
3628
3652
  const s = o.getObjectToValue(t), i = n.map((u) => {
3629
- const { value: l, items: h, scope: c } = u.props;
3653
+ const { value: l, items: d, scopeId: c } = u.props;
3630
3654
  if (s === l)
3631
- return A(qt, {
3632
- scope: c,
3633
- items: h,
3655
+ return A(Ht, {
3656
+ scopeId: c,
3657
+ items: d,
3634
3658
  key: ["case", l].join("-")
3635
3659
  });
3636
3660
  }).filter((u) => u);
3637
3661
  if (r && !i.length) {
3638
- const { items: u, scope: l } = r.props;
3639
- i.push(A(qt, { scope: l, items: u, key: "default" }));
3662
+ const { items: u, scopeId: l } = r.props;
3663
+ i.push(A(Ht, { scopeId: l, items: u, key: "default" }));
3640
3664
  }
3641
- return A(xe, i);
3665
+ return A(De, i);
3642
3666
  };
3643
3667
  }
3644
- const li = F(ui, {
3668
+ const hi = F(di, {
3645
3669
  props: ["case", "on", "default"]
3646
3670
  });
3647
- function fi(e, { slots: t }) {
3671
+ function pi(e, { slots: t }) {
3648
3672
  const { name: n = "fade", tag: r } = e;
3649
3673
  return () => A(
3650
- Yt,
3674
+ Xt,
3651
3675
  { name: n, tag: r },
3652
3676
  {
3653
3677
  default: t.default
3654
3678
  }
3655
3679
  );
3656
3680
  }
3657
- const hi = F(fi, {
3681
+ const mi = F(pi, {
3658
3682
  props: ["name", "tag"]
3659
3683
  });
3660
- function di(e) {
3684
+ function gi(e) {
3661
3685
  const { content: t, r: n = 0 } = e, r = ne(), o = n === 1 ? () => r.getObjectToValue(t) : () => t;
3662
- return () => Qt(o());
3686
+ return () => Yt(o());
3663
3687
  }
3664
- const pi = F(di, {
3688
+ const vi = F(gi, {
3665
3689
  props: ["content", "r"]
3666
3690
  });
3667
- function mi(e) {
3691
+ function yi(e) {
3668
3692
  if (!e.router)
3669
3693
  throw new Error("Router config is not provided.");
3670
3694
  const { routes: t, kAlive: n = !1 } = e.router;
3671
3695
  return t.map(
3672
- (o) => Bn(o, n)
3696
+ (o) => Wn(o, n)
3673
3697
  );
3674
3698
  }
3675
- function Bn(e, t) {
3699
+ function Wn(e, t) {
3676
3700
  var l;
3677
- const { server: n = !1, vueItem: r, scope: o } = e, s = () => {
3701
+ const { server: n = !1, vueItem: r, scopeId: o } = e, s = () => {
3678
3702
  if (n)
3679
3703
  throw new Error("Server-side rendering is not supported yet.");
3680
- return Promise.resolve(gi(r, o, t));
3704
+ return Promise.resolve(
3705
+ wi(r, le(o), t)
3706
+ );
3681
3707
  }, i = (l = r.children) == null ? void 0 : l.map(
3682
- (h) => Bn(h, t)
3708
+ (d) => Wn(d, t)
3683
3709
  ), u = {
3684
3710
  ...r,
3685
3711
  children: i,
@@ -3687,28 +3713,28 @@ function Bn(e, t) {
3687
3713
  };
3688
3714
  return r.component.length === 0 && delete u.component, i === void 0 && delete u.children, u;
3689
3715
  }
3690
- function gi(e, t, n) {
3716
+ function wi(e, t, n) {
3691
3717
  const { path: r, component: o } = e, s = A(
3692
- Oe,
3718
+ Re,
3693
3719
  { scope: t, key: r },
3694
3720
  () => o.map((u) => A(Q, { component: u }))
3695
3721
  );
3696
- return n ? A(ar, null, () => s) : s;
3722
+ return n ? A(ur, null, () => s) : s;
3697
3723
  }
3698
- function vi(e, t) {
3699
- const { mode: n = "hash" } = t.router, r = n === "hash" ? Eo() : n === "memory" ? wo() : Rn();
3724
+ function Ei(e, t) {
3725
+ const { mode: n = "hash" } = t.router, r = n === "hash" ? So() : n === "memory" ? _o() : Pn();
3700
3726
  e.use(
3701
- ls({
3727
+ ds({
3702
3728
  history: r,
3703
- routes: mi(t)
3729
+ routes: yi(t)
3704
3730
  })
3705
3731
  );
3706
3732
  }
3707
- function Ei(e, t) {
3708
- e.component("insta-ui", Js), e.component("vif", Ys), e.component("vfor", ei), e.component("match", li), e.component("refresh", ai), e.component("ts-group", hi), e.component("content", pi), t.router && vi(e, t);
3733
+ function bi(e, t) {
3734
+ e.component("insta-ui", Xs), e.component("vif", ei), e.component("vfor", ri), e.component("match", hi), e.component("refresh", li), e.component("ts-group", mi), e.component("content", vi), t.router && Ei(e, t);
3709
3735
  }
3710
3736
  export {
3711
- Ae as convertDynamicProperties,
3712
- Ei as install
3737
+ $e as convertDynamicProperties,
3738
+ bi as install
3713
3739
  };
3714
3740
  //# sourceMappingURL=insta-ui.js.map