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