instaui 0.1.12__py3-none-any.whl → 0.1.13__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/static/insta-ui.css +1 -1
- instaui/static/insta-ui.esm-browser.prod.js +266 -266
- instaui/static/insta-ui.js.map +1 -1
- instaui/webview/index.py +1 -1
- {instaui-0.1.12.dist-info → instaui-0.1.13.dist-info}/METADATA +1 -1
- {instaui-0.1.12.dist-info → instaui-0.1.13.dist-info}/RECORD +8 -8
- {instaui-0.1.12.dist-info → instaui-0.1.13.dist-info}/WHEEL +0 -0
- {instaui-0.1.12.dist-info → instaui-0.1.13.dist-info}/licenses/LICENSE +0 -0
@@ -2,23 +2,23 @@ var Wn = Object.defineProperty;
|
|
2
2
|
var Un = (e, t, n) => t in e ? Wn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
3
3
|
var B = (e, t, n) => Un(e, typeof t != "symbol" ? t + "" : t, n);
|
4
4
|
import * as Kn from "vue";
|
5
|
-
import { customRef as
|
5
|
+
import { customRef as Ce, toValue as q, unref as W, watch as G, nextTick as Ie, isRef as qt, ref as Z, shallowRef as J, watchEffect as Ht, computed as U, toRaw as Gn, readonly as qn, provide as Ne, inject as ee, shallowReactive as Hn, defineComponent as F, reactive as zn, h as A, getCurrentInstance as zt, normalizeStyle as Jn, normalizeClass as Ye, toDisplayString as Jt, onUnmounted as xe, Fragment as De, vModelDynamic as Qn, vShow as Yn, resolveDynamicComponent as ft, normalizeProps as Xn, withDirectives as Zn, onErrorCaptured as er, openBlock as he, createElementBlock as ke, createElementVNode as tr, createVNode as nr, withCtx as rr, renderList as or, createBlock as sr, TransitionGroup as Qt, KeepAlive as ir } from "vue";
|
6
6
|
let Yt;
|
7
|
-
function
|
7
|
+
function ar(e) {
|
8
8
|
Yt = e;
|
9
9
|
}
|
10
|
-
function
|
10
|
+
function Xe() {
|
11
11
|
return Yt;
|
12
12
|
}
|
13
13
|
function ye() {
|
14
|
-
const { queryPath: e, pathParams: t, queryParams: n } =
|
14
|
+
const { queryPath: e, pathParams: t, queryParams: n } = Xe();
|
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 cr extends Map {
|
22
22
|
constructor(t) {
|
23
23
|
super(), this.factory = t;
|
24
24
|
}
|
@@ -30,13 +30,13 @@ class ar extends Map {
|
|
30
30
|
return super.get(t);
|
31
31
|
}
|
32
32
|
}
|
33
|
-
function
|
34
|
-
return new
|
33
|
+
function Ee(e) {
|
34
|
+
return new cr(e);
|
35
35
|
}
|
36
36
|
function Ot(e, t) {
|
37
37
|
Object.entries(e).forEach(([n, r]) => t(r, n));
|
38
38
|
}
|
39
|
-
function
|
39
|
+
function _e(e, t) {
|
40
40
|
return Xt(e, {
|
41
41
|
valueFn: t
|
42
42
|
});
|
@@ -80,13 +80,13 @@ function en(e, t) {
|
|
80
80
|
throw new Error(`Invalid flag ${n} in array at ${e}`);
|
81
81
|
}
|
82
82
|
}
|
83
|
-
function
|
83
|
+
function Oe(e, t, n) {
|
84
84
|
return t.reduce(
|
85
85
|
(r, o) => Zt(r, o, n),
|
86
86
|
e
|
87
87
|
);
|
88
88
|
}
|
89
|
-
function
|
89
|
+
function Ze(e, t, n, r) {
|
90
90
|
t.reduce((o, s, i) => {
|
91
91
|
if (i === t.length - 1)
|
92
92
|
o[en(s, r)] = n;
|
@@ -99,10 +99,10 @@ function tn(e) {
|
|
99
99
|
}
|
100
100
|
function bt(e, t, n) {
|
101
101
|
const { paths: r, getBindableValueFn: o } = t, { paths: s, getBindableValueFn: i } = t;
|
102
|
-
return r === void 0 || r.length === 0 ? e :
|
102
|
+
return r === void 0 || r.length === 0 ? e : Ce(() => ({
|
103
103
|
get() {
|
104
104
|
try {
|
105
|
-
return
|
105
|
+
return Oe(
|
106
106
|
q(e),
|
107
107
|
r,
|
108
108
|
o
|
@@ -112,7 +112,7 @@ function bt(e, t, n) {
|
|
112
112
|
}
|
113
113
|
},
|
114
114
|
set(c) {
|
115
|
-
|
115
|
+
Ze(
|
116
116
|
q(e),
|
117
117
|
s || r,
|
118
118
|
c,
|
@@ -122,7 +122,7 @@ function bt(e, t, n) {
|
|
122
122
|
}));
|
123
123
|
}
|
124
124
|
function nn(e) {
|
125
|
-
return
|
125
|
+
return Ce((t, n) => ({
|
126
126
|
get() {
|
127
127
|
return t(), e;
|
128
128
|
},
|
@@ -135,21 +135,21 @@ function de(e) {
|
|
135
135
|
return typeof e == "function" ? e() : W(e);
|
136
136
|
}
|
137
137
|
typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
|
138
|
-
const
|
138
|
+
const et = () => {
|
139
139
|
};
|
140
|
-
function
|
140
|
+
function tt(e, t = !1, n = "Timeout") {
|
141
141
|
return new Promise((r, o) => {
|
142
142
|
setTimeout(t ? () => o(n) : r, e);
|
143
143
|
});
|
144
144
|
}
|
145
|
-
function
|
145
|
+
function nt(e, t = !1) {
|
146
146
|
function n(u, { flush: f = "sync", deep: d = !1, timeout: v, throwOnTimeout: p } = {}) {
|
147
147
|
let g = null;
|
148
148
|
const _ = [new Promise((O) => {
|
149
149
|
g = G(
|
150
150
|
e,
|
151
151
|
(R) => {
|
152
|
-
u(R) !== t && (g ? g() :
|
152
|
+
u(R) !== t && (g ? g() : Ie(() => g == null ? void 0 : g()), O(R));
|
153
153
|
},
|
154
154
|
{
|
155
155
|
flush: f,
|
@@ -159,7 +159,7 @@ function tt(e, t = !1) {
|
|
159
159
|
);
|
160
160
|
})];
|
161
161
|
return v != null && _.push(
|
162
|
-
|
162
|
+
tt(v, p).then(() => de(e)).finally(() => g == null ? void 0 : g())
|
163
163
|
), Promise.race(_);
|
164
164
|
}
|
165
165
|
function r(u, f) {
|
@@ -171,7 +171,7 @@ function tt(e, t = !1) {
|
|
171
171
|
y = G(
|
172
172
|
[e, u],
|
173
173
|
([D, C]) => {
|
174
|
-
t !== (D === C) && (y ? y() :
|
174
|
+
t !== (D === C) && (y ? y() : Ie(() => y == null ? void 0 : y()), R(D));
|
175
175
|
},
|
176
176
|
{
|
177
177
|
flush: d,
|
@@ -181,7 +181,7 @@ function tt(e, t = !1) {
|
|
181
181
|
);
|
182
182
|
})];
|
183
183
|
return p != null && O.push(
|
184
|
-
|
184
|
+
tt(p, g).then(() => de(e)).finally(() => (y == null || y(), de(e)))
|
185
185
|
), Promise.race(O);
|
186
186
|
}
|
187
187
|
function o(u) {
|
@@ -215,7 +215,7 @@ function tt(e, t = !1) {
|
|
215
215
|
changed: h,
|
216
216
|
changedTimes: a,
|
217
217
|
get not() {
|
218
|
-
return
|
218
|
+
return nt(e, !t);
|
219
219
|
}
|
220
220
|
} : {
|
221
221
|
toMatch: n,
|
@@ -227,14 +227,14 @@ function tt(e, t = !1) {
|
|
227
227
|
changed: h,
|
228
228
|
changedTimes: a,
|
229
229
|
get not() {
|
230
|
-
return
|
230
|
+
return nt(e, !t);
|
231
231
|
}
|
232
232
|
};
|
233
233
|
}
|
234
|
-
function
|
235
|
-
return
|
234
|
+
function ur(e) {
|
235
|
+
return nt(e);
|
236
236
|
}
|
237
|
-
function
|
237
|
+
function lr(e, t, n) {
|
238
238
|
let r;
|
239
239
|
qt(n) ? r = {
|
240
240
|
evaluating: n
|
@@ -243,7 +243,7 @@ function ur(e, t, n) {
|
|
243
243
|
lazy: o = !1,
|
244
244
|
evaluating: s = void 0,
|
245
245
|
shallow: i = !0,
|
246
|
-
onError: c =
|
246
|
+
onError: c = et
|
247
247
|
} = r, l = Z(!o), h = i ? J(t) : Z(t);
|
248
248
|
let a = 0;
|
249
249
|
return Ht(async (u) => {
|
@@ -269,18 +269,18 @@ function ur(e, t, n) {
|
|
269
269
|
}
|
270
270
|
}), o ? U(() => (l.value = !0, h.value)) : h;
|
271
271
|
}
|
272
|
-
function
|
272
|
+
function fr(e, t, n) {
|
273
273
|
const {
|
274
274
|
immediate: r = !0,
|
275
275
|
delay: o = 0,
|
276
|
-
onError: s =
|
277
|
-
onSuccess: i =
|
276
|
+
onError: s = et,
|
277
|
+
onSuccess: i = et,
|
278
278
|
resetOnExecute: c = !0,
|
279
279
|
shallow: l = !0,
|
280
280
|
throwError: h
|
281
281
|
} = {}, a = l ? J(t) : Z(t), u = Z(!1), f = Z(!1), d = J(void 0);
|
282
282
|
async function v(y = 0, ..._) {
|
283
|
-
c && (a.value = t), d.value = void 0, u.value = !1, f.value = !0, y > 0 && await
|
283
|
+
c && (a.value = t), d.value = void 0, u.value = !1, f.value = !0, y > 0 && await tt(y);
|
284
284
|
const O = typeof e == "function" ? e(..._) : e;
|
285
285
|
try {
|
286
286
|
const R = await O;
|
@@ -303,7 +303,7 @@ function lr(e, t, n) {
|
|
303
303
|
};
|
304
304
|
function g() {
|
305
305
|
return new Promise((y, _) => {
|
306
|
-
|
306
|
+
ur(f).toBe(!1).then(() => y(p)).catch(_);
|
307
307
|
});
|
308
308
|
}
|
309
309
|
return {
|
@@ -322,7 +322,7 @@ function L(e, t) {
|
|
322
322
|
throw new Error(o + " in function code: " + e);
|
323
323
|
}
|
324
324
|
}
|
325
|
-
function
|
325
|
+
function hr(e) {
|
326
326
|
if (e.startsWith(":")) {
|
327
327
|
e = e.slice(1);
|
328
328
|
try {
|
@@ -335,26 +335,14 @@ function fr(e) {
|
|
335
335
|
function rn(e) {
|
336
336
|
return e.constructor.name === "AsyncFunction";
|
337
337
|
}
|
338
|
-
class
|
338
|
+
class dr {
|
339
339
|
toString() {
|
340
340
|
return "";
|
341
341
|
}
|
342
342
|
}
|
343
|
-
const
|
344
|
-
function
|
345
|
-
return e ===
|
346
|
-
}
|
347
|
-
function dr(e) {
|
348
|
-
const t = {
|
349
|
-
type: "var",
|
350
|
-
sid: e.sid,
|
351
|
-
id: e.id
|
352
|
-
};
|
353
|
-
return {
|
354
|
-
...e,
|
355
|
-
immediate: !0,
|
356
|
-
outputs: [t, ...e.outputs || []]
|
357
|
-
};
|
343
|
+
const we = new dr();
|
344
|
+
function Te(e) {
|
345
|
+
return Gn(e) === we;
|
358
346
|
}
|
359
347
|
function pr(e, t) {
|
360
348
|
return Z(e.value);
|
@@ -362,7 +350,7 @@ function pr(e, t) {
|
|
362
350
|
function mr(e, t, n) {
|
363
351
|
const { bind: r = {}, code: o, const: s = [] } = e, i = Object.values(r).map((a, u) => s[u] === 1 ? a : t.getVueRefObjectOrValue(a));
|
364
352
|
if (rn(new Function(o)))
|
365
|
-
return
|
353
|
+
return lr(
|
366
354
|
async () => {
|
367
355
|
const a = Object.fromEntries(
|
368
356
|
Object.keys(r).map((u, f) => [u, i[f]])
|
@@ -391,29 +379,29 @@ function gr(e, t, n) {
|
|
391
379
|
(g, y) => a[y] === 1 ? g : t.getObjectToValue(g)
|
392
380
|
);
|
393
381
|
}
|
394
|
-
const d = L(o), v = l === 0 ? J(
|
382
|
+
const d = L(o), v = l === 0 ? J(we) : nn(we), p = { immediate: !0, deep: !0 };
|
395
383
|
return rn(d) ? (v.value = c, G(
|
396
384
|
u,
|
397
385
|
async () => {
|
398
|
-
f().some(
|
386
|
+
f().some(Te) || (v.value = await d(...f()));
|
399
387
|
},
|
400
388
|
p
|
401
389
|
)) : G(
|
402
390
|
u,
|
403
391
|
() => {
|
404
392
|
const g = f();
|
405
|
-
g.some(
|
393
|
+
g.some(Te) || (v.value = d(...g));
|
406
394
|
},
|
407
395
|
p
|
408
|
-
),
|
396
|
+
), qn(v);
|
409
397
|
}
|
410
398
|
function vr() {
|
411
399
|
return [];
|
412
400
|
}
|
413
|
-
const
|
401
|
+
const be = Ee(vr);
|
414
402
|
function on(e, t) {
|
415
403
|
var s, i, c, l, h;
|
416
|
-
const n =
|
404
|
+
const n = be.getOrDefault(e.id), r = /* @__PURE__ */ new Map();
|
417
405
|
n.push(r), t.replaceSnapshot({
|
418
406
|
scopeSnapshot: sn()
|
419
407
|
});
|
@@ -423,7 +411,7 @@ function on(e, t) {
|
|
423
411
|
return (s = e.refs) == null || s.forEach((a) => {
|
424
412
|
o(a, pr(a));
|
425
413
|
}), (i = e.web_computed) == null || i.forEach((a) => {
|
426
|
-
const { init: u } = a, f = a.deepEqOnInput === void 0 ? J(u ??
|
414
|
+
const { init: u } = a, f = a.deepEqOnInput === void 0 ? J(u ?? we) : nn(u ?? we);
|
427
415
|
o(a, f);
|
428
416
|
}), (c = e.vue_computed) == null || c.forEach((a) => {
|
429
417
|
o(
|
@@ -441,7 +429,7 @@ function on(e, t) {
|
|
441
429
|
}
|
442
430
|
function sn() {
|
443
431
|
const e = /* @__PURE__ */ new Map();
|
444
|
-
for (const [n, r] of
|
432
|
+
for (const [n, r] of be) {
|
445
433
|
const o = r[r.length - 1];
|
446
434
|
e.set(n, [o]);
|
447
435
|
}
|
@@ -453,7 +441,7 @@ function sn() {
|
|
453
441
|
};
|
454
442
|
}
|
455
443
|
function yr(e) {
|
456
|
-
return an(e,
|
444
|
+
return an(e, be);
|
457
445
|
}
|
458
446
|
function an(e, t) {
|
459
447
|
const n = t.get(e.sid);
|
@@ -465,13 +453,13 @@ function an(e, t) {
|
|
465
453
|
return o;
|
466
454
|
}
|
467
455
|
function wr(e) {
|
468
|
-
|
456
|
+
be.delete(e);
|
469
457
|
}
|
470
458
|
function cn(e, t) {
|
471
|
-
const n =
|
459
|
+
const n = be.get(e);
|
472
460
|
n && n.splice(t, 1);
|
473
461
|
}
|
474
|
-
const ht =
|
462
|
+
const ht = Ee(() => []);
|
475
463
|
function Er(e) {
|
476
464
|
var r;
|
477
465
|
const t = /* @__PURE__ */ new Map(), n = ht.getOrDefault(e.id).push(t);
|
@@ -545,20 +533,20 @@ var N;
|
|
545
533
|
}
|
546
534
|
e.IsBinding = u;
|
547
535
|
})(N || (N = {}));
|
548
|
-
const
|
536
|
+
const Me = Ee(() => []);
|
549
537
|
function Or(e) {
|
550
|
-
const t =
|
538
|
+
const t = Me.getOrDefault(e);
|
551
539
|
return t.push(J({})), t.length - 1;
|
552
540
|
}
|
553
541
|
function br(e, t, n) {
|
554
|
-
|
542
|
+
Me.get(e)[t].value = n;
|
555
543
|
}
|
556
544
|
function Sr(e) {
|
557
|
-
|
545
|
+
Me.delete(e);
|
558
546
|
}
|
559
547
|
function Rr() {
|
560
548
|
const e = /* @__PURE__ */ new Map();
|
561
|
-
for (const [n, r] of
|
549
|
+
for (const [n, r] of Me) {
|
562
550
|
const o = r[r.length - 1];
|
563
551
|
e.set(n, o);
|
564
552
|
}
|
@@ -569,10 +557,10 @@ function Rr() {
|
|
569
557
|
getPropsValue: t
|
570
558
|
};
|
571
559
|
}
|
572
|
-
const ln = /* @__PURE__ */ new Map(), dt =
|
560
|
+
const ln = /* @__PURE__ */ new Map(), dt = Ee(() => /* @__PURE__ */ new Map()), fn = /* @__PURE__ */ new Set(), hn = Symbol("vfor");
|
573
561
|
function Pr(e) {
|
574
562
|
const t = dn() ?? {};
|
575
|
-
|
563
|
+
Ne(hn, { ...t, [e.fid]: e.key });
|
576
564
|
}
|
577
565
|
function dn() {
|
578
566
|
return ee(hn, void 0);
|
@@ -639,8 +627,8 @@ class jr {
|
|
639
627
|
}
|
640
628
|
createRefObjectWithPaths(t) {
|
641
629
|
const { binding: n } = t, { snapshot: r } = t, { path: o = [] } = n, s = [...o], i = r.getVForIndex(n.fid);
|
642
|
-
return s.unshift(i),
|
643
|
-
get: () =>
|
630
|
+
return s.unshift(i), Ce(() => ({
|
631
|
+
get: () => Oe(
|
644
632
|
this.array,
|
645
633
|
s,
|
646
634
|
r.getObjectToValue
|
@@ -665,7 +653,7 @@ class Cr {
|
|
665
653
|
}
|
666
654
|
createRefObjectWithPaths(t) {
|
667
655
|
const { binding: n } = t, { path: r = [] } = n, o = [...r], { snapshot: s } = t, i = s.getVueRefObject(this.binding), c = this.isDictSource(i), l = s.getVForIndex(n.fid), h = c && o.length === 0 ? [0] : [];
|
668
|
-
return o.unshift(l, ...h),
|
656
|
+
return o.unshift(l, ...h), Ce(() => ({
|
669
657
|
get: () => {
|
670
658
|
const a = q(i), u = c ? Object.entries(a).map(([f, d], v) => [
|
671
659
|
d,
|
@@ -673,7 +661,7 @@ class Cr {
|
|
673
661
|
v
|
674
662
|
]) : a;
|
675
663
|
try {
|
676
|
-
return
|
664
|
+
return Oe(
|
677
665
|
q(u),
|
678
666
|
o,
|
679
667
|
s.getObjectToValue
|
@@ -689,7 +677,7 @@ class Cr {
|
|
689
677
|
if (l >= f.length)
|
690
678
|
throw new Error("Cannot set value to a non-existent key");
|
691
679
|
const d = f[l];
|
692
|
-
|
680
|
+
Ze(
|
693
681
|
u,
|
694
682
|
[d],
|
695
683
|
a,
|
@@ -697,7 +685,7 @@ class Cr {
|
|
697
685
|
);
|
698
686
|
return;
|
699
687
|
}
|
700
|
-
|
688
|
+
Ze(
|
701
689
|
u,
|
702
690
|
o,
|
703
691
|
a,
|
@@ -814,7 +802,7 @@ function Gr(e) {
|
|
814
802
|
e.default && mn(e.default);
|
815
803
|
}
|
816
804
|
const I = Object.assign;
|
817
|
-
function
|
805
|
+
function He(e, t) {
|
818
806
|
const n = {};
|
819
807
|
for (const r in t) {
|
820
808
|
const o = t[r];
|
@@ -856,7 +844,7 @@ function ae(e) {
|
|
856
844
|
return "" + e;
|
857
845
|
}
|
858
846
|
const so = /\/$/, io = (e) => e.replace(so, "");
|
859
|
-
function
|
847
|
+
function ze(e, t, n = "/") {
|
860
848
|
let r, o = {}, s = "", i = "";
|
861
849
|
const c = t.indexOf("#");
|
862
850
|
let l = t.indexOf("?");
|
@@ -933,7 +921,7 @@ var oe;
|
|
933
921
|
(function(e) {
|
934
922
|
e.back = "back", e.forward = "forward", e.unknown = "";
|
935
923
|
})(oe || (oe = {}));
|
936
|
-
const
|
924
|
+
const Je = "";
|
937
925
|
function On(e) {
|
938
926
|
if (!e)
|
939
927
|
if (z) {
|
@@ -955,7 +943,7 @@ function fo(e, t) {
|
|
955
943
|
top: r.top - n.top - (t.top || 0)
|
956
944
|
};
|
957
945
|
}
|
958
|
-
const
|
946
|
+
const Fe = () => ({
|
959
947
|
left: window.scrollX,
|
960
948
|
top: window.scrollY
|
961
949
|
});
|
@@ -1038,7 +1026,7 @@ function vo(e, t, n, r) {
|
|
1038
1026
|
}
|
1039
1027
|
function a() {
|
1040
1028
|
const { history: f } = window;
|
1041
|
-
f.state && f.replaceState(I({}, f.state, { scroll:
|
1029
|
+
f.state && f.replaceState(I({}, f.state, { scroll: Fe() }), "");
|
1042
1030
|
}
|
1043
1031
|
function u() {
|
1044
1032
|
for (const f of s)
|
@@ -1060,7 +1048,7 @@ function Nt(e, t, n, r = !1, o = !1) {
|
|
1060
1048
|
forward: n,
|
1061
1049
|
replaced: r,
|
1062
1050
|
position: window.history.length,
|
1063
|
-
scroll: o ?
|
1051
|
+
scroll: o ? Fe() : null
|
1064
1052
|
};
|
1065
1053
|
}
|
1066
1054
|
function yo(e) {
|
@@ -1106,7 +1094,7 @@ function yo(e) {
|
|
1106
1094
|
t.state,
|
1107
1095
|
{
|
1108
1096
|
forward: l,
|
1109
|
-
scroll:
|
1097
|
+
scroll: Fe()
|
1110
1098
|
}
|
1111
1099
|
);
|
1112
1100
|
S.NODE_ENV !== "production" && !t.state && P(`history.state seems to have been manually replaced without preserving the necessary values. Make sure to preserve existing history state if you are manually calling history.replaceState:
|
@@ -1146,7 +1134,7 @@ function Rn(e) {
|
|
1146
1134
|
}), o;
|
1147
1135
|
}
|
1148
1136
|
function wo(e = "") {
|
1149
|
-
let t = [], n = [
|
1137
|
+
let t = [], n = [Je], r = 0;
|
1150
1138
|
e = On(e);
|
1151
1139
|
function o(c) {
|
1152
1140
|
r++, r !== n.length && n.splice(r), n.push(c);
|
@@ -1162,7 +1150,7 @@ function wo(e = "") {
|
|
1162
1150
|
}
|
1163
1151
|
const i = {
|
1164
1152
|
// rewritten by Object.defineProperty
|
1165
|
-
location:
|
1153
|
+
location: Je,
|
1166
1154
|
// TODO: should be kept in queue
|
1167
1155
|
state: {},
|
1168
1156
|
base: e,
|
@@ -1180,7 +1168,7 @@ function wo(e = "") {
|
|
1180
1168
|
};
|
1181
1169
|
},
|
1182
1170
|
destroy() {
|
1183
|
-
t = [], n = [
|
1171
|
+
t = [], n = [Je], r = 0;
|
1184
1172
|
},
|
1185
1173
|
go(c, l = !0) {
|
1186
1174
|
const h = this.location, a = (
|
@@ -1204,7 +1192,7 @@ function Eo(e) {
|
|
1204
1192
|
return e = location.host ? e || location.pathname + location.search : "", e.includes("#") || (e += "#"), S.NODE_ENV !== "production" && !e.endsWith("#/") && !e.endsWith("#") && P(`A hash base must end with a "#":
|
1205
1193
|
"${e}" should be "${e.replace(/#.*$/, "#")}".`), Rn(e);
|
1206
1194
|
}
|
1207
|
-
function
|
1195
|
+
function Ae(e) {
|
1208
1196
|
return typeof e == "string" || e && typeof e == "object";
|
1209
1197
|
}
|
1210
1198
|
function Pn(e) {
|
@@ -1717,7 +1705,7 @@ function Wo(e) {
|
|
1717
1705
|
}
|
1718
1706
|
return t;
|
1719
1707
|
}
|
1720
|
-
const Uo = Symbol(S.NODE_ENV !== "production" ? "router view location matched" : ""), Mt = Symbol(S.NODE_ENV !== "production" ? "router view depth" : ""),
|
1708
|
+
const Uo = Symbol(S.NODE_ENV !== "production" ? "router view location matched" : ""), Mt = Symbol(S.NODE_ENV !== "production" ? "router view depth" : ""), Be = Symbol(S.NODE_ENV !== "production" ? "router" : ""), mt = Symbol(S.NODE_ENV !== "production" ? "route location" : ""), ct = Symbol(S.NODE_ENV !== "production" ? "router view location" : "");
|
1721
1709
|
function pe() {
|
1722
1710
|
let e = [];
|
1723
1711
|
function t(r) {
|
@@ -1743,7 +1731,7 @@ function X(e, t, n, r, o, s = (i) => i()) {
|
|
1743
1731
|
f === !1 ? l(ue(4, {
|
1744
1732
|
from: n,
|
1745
1733
|
to: t
|
1746
|
-
})) : f instanceof Error ? l(f) :
|
1734
|
+
})) : f instanceof Error ? l(f) : Ae(f) ? l(ue(2, {
|
1747
1735
|
from: t,
|
1748
1736
|
to: f
|
1749
1737
|
})) : (i && // since enterCallbackArray is truthy, both record and name also are
|
@@ -1770,7 +1758,7 @@ function Ko(e, t, n) {
|
|
1770
1758
|
r++ === 1 && P(`The "next" callback was called more than once in one navigation guard when going from "${n.fullPath}" to "${t.fullPath}". It should be called exactly one time in each navigation guard. This will fail in production.`), e._called = !0, r === 1 && e.apply(null, arguments);
|
1771
1759
|
};
|
1772
1760
|
}
|
1773
|
-
function
|
1761
|
+
function Qe(e, t, n, r, o = (s) => s()) {
|
1774
1762
|
const s = [];
|
1775
1763
|
for (const i of e) {
|
1776
1764
|
S.NODE_ENV !== "production" && !i.components && !i.children.length && P(`Record with path "${i.path}" is either missing a "component(s)" or "children" property.`);
|
@@ -1806,11 +1794,11 @@ function Je(e, t, n, r, o = (s) => s()) {
|
|
1806
1794
|
return s;
|
1807
1795
|
}
|
1808
1796
|
function Ft(e) {
|
1809
|
-
const t = ee(
|
1797
|
+
const t = ee(Be), n = ee(mt);
|
1810
1798
|
let r = !1, o = null;
|
1811
1799
|
const s = U(() => {
|
1812
1800
|
const a = W(e.to);
|
1813
|
-
return S.NODE_ENV !== "production" && (!r || a !== o) && (
|
1801
|
+
return S.NODE_ENV !== "production" && (!r || a !== o) && (Ae(a) || (r ? P(`Invalid value for prop "to" in useLink()
|
1814
1802
|
- to:`, a, `
|
1815
1803
|
- previous to:`, o, `
|
1816
1804
|
- props:`, e) : P(`Invalid value for prop "to" in useLink()
|
@@ -1853,7 +1841,7 @@ function Ft(e) {
|
|
1853
1841
|
error: null
|
1854
1842
|
};
|
1855
1843
|
a.__vrl_devtools = a.__vrl_devtools || [], a.__vrl_devtools.push(u), Ht(() => {
|
1856
|
-
u.route = s.value, u.isActive = c.value, u.isExactActive = l.value, u.error =
|
1844
|
+
u.route = s.value, u.isActive = c.value, u.isExactActive = l.value, u.error = Ae(W(e.to)) ? null : 'Invalid "to" value';
|
1857
1845
|
}, { flush: "post" });
|
1858
1846
|
}
|
1859
1847
|
}
|
@@ -1888,7 +1876,7 @@ const qo = /* @__PURE__ */ F({
|
|
1888
1876
|
},
|
1889
1877
|
useLink: Ft,
|
1890
1878
|
setup(e, { slots: t }) {
|
1891
|
-
const n =
|
1879
|
+
const n = zn(Ft(e)), { options: r } = ee(Be), o = U(() => ({
|
1892
1880
|
[Lt(e.activeClass, r.linkActiveClass, "router-link-active")]: n.isActive,
|
1893
1881
|
// [getLinkClass(
|
1894
1882
|
// props.inactiveClass,
|
@@ -1958,7 +1946,7 @@ const Lt = (e, t, n) => e ?? t ?? n, Qo = /* @__PURE__ */ F({
|
|
1958
1946
|
h++;
|
1959
1947
|
return h;
|
1960
1948
|
}), c = U(() => o.value.matched[i.value]);
|
1961
|
-
|
1949
|
+
Ne(Mt, U(() => i.value + 1)), Ne(Uo, c), Ne(ct, o);
|
1962
1950
|
const l = Z();
|
1963
1951
|
return G(() => [l.value, c.value, e.name], ([h, a, u], [f, d, v]) => {
|
1964
1952
|
a && (a.instances[u] = h, d && d !== a && h && h === f && (a.leaveGuards.size || (a.leaveGuards = d.leaveGuards), a.updateGuards.size || (a.updateGuards = d.updateGuards))), h && a && // if there is no instance but to and from are the same this might be
|
@@ -2029,7 +2017,7 @@ function me(e, t) {
|
|
2029
2017
|
}
|
2030
2018
|
};
|
2031
2019
|
}
|
2032
|
-
function
|
2020
|
+
function Ve(e) {
|
2033
2021
|
return {
|
2034
2022
|
_custom: {
|
2035
2023
|
display: e
|
@@ -2101,7 +2089,7 @@ function es(e, t, n) {
|
|
2101
2089
|
let i = 0;
|
2102
2090
|
t.beforeEach((a, u) => {
|
2103
2091
|
const f = {
|
2104
|
-
guard:
|
2092
|
+
guard: Ve("beforeEach"),
|
2105
2093
|
from: me(u, "Current Location during this navigation"),
|
2106
2094
|
to: me(a, "Target location")
|
2107
2095
|
};
|
@@ -2119,7 +2107,7 @@ function es(e, t, n) {
|
|
2119
2107
|
});
|
2120
2108
|
}), t.afterEach((a, u, f) => {
|
2121
2109
|
const d = {
|
2122
|
-
guard:
|
2110
|
+
guard: Ve("afterEach")
|
2123
2111
|
};
|
2124
2112
|
f ? (d.failure = {
|
2125
2113
|
_custom: {
|
@@ -2129,7 +2117,7 @@ function es(e, t, n) {
|
|
2129
2117
|
tooltip: "Navigation Failure",
|
2130
2118
|
value: f
|
2131
2119
|
}
|
2132
|
-
}, d.status =
|
2120
|
+
}, d.status = Ve("❌")) : d.status = Ve("✅"), d.from = me(u, "Current Location during this navigation"), d.to = me(a, "Target location"), o.addTimelineEvent({
|
2133
2121
|
layerId: s,
|
2134
2122
|
event: {
|
2135
2123
|
title: "End of navigation",
|
@@ -2289,9 +2277,9 @@ function ls(e) {
|
|
2289
2277
|
const s = pe(), i = pe(), c = pe(), l = J(Y);
|
2290
2278
|
let h = Y;
|
2291
2279
|
z && e.scrollBehavior && "scrollRestoration" in history && (history.scrollRestoration = "manual");
|
2292
|
-
const a =
|
2280
|
+
const a = He.bind(null, (m) => "" + m), u = He.bind(null, oo), f = (
|
2293
2281
|
// @ts-expect-error: intentionally avoid the type check
|
2294
|
-
|
2282
|
+
He.bind(null, ae)
|
2295
2283
|
);
|
2296
2284
|
function d(m, E) {
|
2297
2285
|
let w, b;
|
@@ -2309,7 +2297,7 @@ function ls(e) {
|
|
2309
2297
|
}
|
2310
2298
|
function y(m, E) {
|
2311
2299
|
if (E = I({}, E || l.value), typeof m == "string") {
|
2312
|
-
const k =
|
2300
|
+
const k = ze(n, m, E.path), $ = t.resolve({ path: k.path }, E), re = o.createHref(k.fullPath);
|
2313
2301
|
return S.NODE_ENV !== "production" && (re.startsWith("//") ? P(`Location "${m}" resolved to "${re}". A resolved location cannot start with multiple slashes.`) : $.matched.length || P(`No match found for location with path "${m}"`)), I(k, $, {
|
2314
2302
|
params: f($.params),
|
2315
2303
|
hash: ae(k.hash),
|
@@ -2317,14 +2305,14 @@ function ls(e) {
|
|
2317
2305
|
href: re
|
2318
2306
|
});
|
2319
2307
|
}
|
2320
|
-
if (S.NODE_ENV !== "production" && !
|
2308
|
+
if (S.NODE_ENV !== "production" && !Ae(m))
|
2321
2309
|
return P(`router.resolve() was passed an invalid location. This will fail in production.
|
2322
2310
|
- Location:`, m), y({});
|
2323
2311
|
let w;
|
2324
2312
|
if (m.path != null)
|
2325
2313
|
S.NODE_ENV !== "production" && "params" in m && !("name" in m) && // @ts-expect-error: the type is never
|
2326
2314
|
Object.keys(m.params).length && P(`Path "${m.path}" was passed with params but they will be ignored. Use a named route alongside params instead.`), w = I({}, m, {
|
2327
|
-
path:
|
2315
|
+
path: ze(n, m.path, E.path).path
|
2328
2316
|
});
|
2329
2317
|
else {
|
2330
2318
|
const k = I({}, m.params);
|
@@ -2359,7 +2347,7 @@ function ls(e) {
|
|
2359
2347
|
});
|
2360
2348
|
}
|
2361
2349
|
function _(m) {
|
2362
|
-
return typeof m == "string" ?
|
2350
|
+
return typeof m == "string" ? ze(n, m, l.value.path) : I({}, m);
|
2363
2351
|
}
|
2364
2352
|
function O(m, E) {
|
2365
2353
|
if (h !== m)
|
@@ -2424,10 +2412,10 @@ ${JSON.stringify(b, null, 2)}
|
|
2424
2412
|
M,
|
2425
2413
|
2
|
2426
2414
|
/* ErrorTypes.NAVIGATION_GUARD_REDIRECT */
|
2427
|
-
) ? M :
|
2415
|
+
) ? M : Ke(M)
|
2428
2416
|
) : (
|
2429
2417
|
// reject any unknown error
|
2430
|
-
|
2418
|
+
Ue(M, $, b)
|
2431
2419
|
)).then((M) => {
|
2432
2420
|
if (M) {
|
2433
2421
|
if (H(
|
@@ -2459,30 +2447,30 @@ ${JSON.stringify(b, null, 2)}
|
|
2459
2447
|
return vt($, b, M), M;
|
2460
2448
|
});
|
2461
2449
|
}
|
2462
|
-
function
|
2450
|
+
function Le(m, E) {
|
2463
2451
|
const w = O(m, E);
|
2464
2452
|
return w ? Promise.reject(w) : Promise.resolve();
|
2465
2453
|
}
|
2466
2454
|
function le(m) {
|
2467
|
-
const E =
|
2455
|
+
const E = Pe.values().next().value;
|
2468
2456
|
return E && typeof E.runWithContext == "function" ? E.runWithContext(m) : m();
|
2469
2457
|
}
|
2470
2458
|
function gt(m, E) {
|
2471
2459
|
let w;
|
2472
2460
|
const [b, T, j] = fs(m, E);
|
2473
|
-
w =
|
2461
|
+
w = Qe(b.reverse(), "beforeRouteLeave", m, E);
|
2474
2462
|
for (const k of b)
|
2475
2463
|
k.leaveGuards.forEach(($) => {
|
2476
2464
|
w.push(X($, m, E));
|
2477
2465
|
});
|
2478
|
-
const V =
|
2466
|
+
const V = Le.bind(null, m, E);
|
2479
2467
|
return w.push(V), se(w).then(() => {
|
2480
2468
|
w = [];
|
2481
2469
|
for (const k of s.list())
|
2482
2470
|
w.push(X(k, m, E));
|
2483
2471
|
return w.push(V), se(w);
|
2484
2472
|
}).then(() => {
|
2485
|
-
w =
|
2473
|
+
w = Qe(T, "beforeRouteUpdate", m, E);
|
2486
2474
|
for (const k of T)
|
2487
2475
|
k.updateGuards.forEach(($) => {
|
2488
2476
|
w.push(X($, m, E));
|
@@ -2498,7 +2486,7 @@ ${JSON.stringify(b, null, 2)}
|
|
2498
2486
|
else
|
2499
2487
|
w.push(X(k.beforeEnter, m, E));
|
2500
2488
|
return w.push(V), se(w);
|
2501
|
-
}).then(() => (m.matched.forEach((k) => k.enterCallbacks = {}), w =
|
2489
|
+
}).then(() => (m.matched.forEach((k) => k.enterCallbacks = {}), w = Qe(j, "beforeRouteEnter", m, E, le), w.push(V), se(w))).then(() => {
|
2502
2490
|
w = [];
|
2503
2491
|
for (const k of i.list())
|
2504
2492
|
w.push(X(k, m, E));
|
@@ -2519,7 +2507,7 @@ ${JSON.stringify(b, null, 2)}
|
|
2519
2507
|
const V = E === Y, k = z ? history.state : {};
|
2520
2508
|
w && (b || V ? o.replace(m.fullPath, I({
|
2521
2509
|
scroll: V && k && k.scroll
|
2522
|
-
}, T)) : o.push(m.fullPath, T)), l.value = m, Et(m, E, w, V),
|
2510
|
+
}, T)) : o.push(m.fullPath, T)), l.value = m, Et(m, E, w, V), Ke();
|
2523
2511
|
}
|
2524
2512
|
let fe;
|
2525
2513
|
function Bn() {
|
@@ -2533,7 +2521,7 @@ ${JSON.stringify(b, null, 2)}
|
|
2533
2521
|
}
|
2534
2522
|
h = b;
|
2535
2523
|
const j = l.value;
|
2536
|
-
z && po(Vt(j.fullPath, w.delta),
|
2524
|
+
z && po(Vt(j.fullPath, w.delta), Fe()), gt(b, j).catch((V) => H(
|
2537
2525
|
V,
|
2538
2526
|
12
|
2539
2527
|
/* ErrorTypes.NAVIGATION_CANCELLED */
|
@@ -2553,7 +2541,7 @@ ${JSON.stringify(b, null, 2)}
|
|
2553
2541
|
20
|
2554
2542
|
/* ErrorTypes.NAVIGATION_DUPLICATED */
|
2555
2543
|
) && !w.delta && w.type === ce.pop && o.go(-1, !1);
|
2556
|
-
}).catch(ve), Promise.reject()) : (w.delta && o.go(-w.delta, !1),
|
2544
|
+
}).catch(ve), Promise.reject()) : (w.delta && o.go(-w.delta, !1), Ue(V, b, j))).then((V) => {
|
2557
2545
|
V = V || yt(
|
2558
2546
|
// after navigation, all matched components are resolved
|
2559
2547
|
b,
|
@@ -2573,30 +2561,30 @@ ${JSON.stringify(b, null, 2)}
|
|
2573
2561
|
}).catch(ve);
|
2574
2562
|
}));
|
2575
2563
|
}
|
2576
|
-
let
|
2577
|
-
function
|
2578
|
-
|
2564
|
+
let We = pe(), wt = pe(), Re;
|
2565
|
+
function Ue(m, E, w) {
|
2566
|
+
Ke(m);
|
2579
2567
|
const b = wt.list();
|
2580
2568
|
return b.length ? b.forEach((T) => T(m, E, w)) : (S.NODE_ENV !== "production" && P("uncaught error during route navigation:"), console.error(m)), Promise.reject(m);
|
2581
2569
|
}
|
2582
2570
|
function Ln() {
|
2583
|
-
return
|
2584
|
-
|
2571
|
+
return Re && l.value !== Y ? Promise.resolve() : new Promise((m, E) => {
|
2572
|
+
We.add([m, E]);
|
2585
2573
|
});
|
2586
2574
|
}
|
2587
|
-
function
|
2588
|
-
return
|
2575
|
+
function Ke(m) {
|
2576
|
+
return Re || (Re = !m, Bn(), We.list().forEach(([E, w]) => m ? w(m) : E()), We.reset()), m;
|
2589
2577
|
}
|
2590
2578
|
function Et(m, E, w, b) {
|
2591
2579
|
const { scrollBehavior: T } = e;
|
2592
2580
|
if (!z || !T)
|
2593
2581
|
return Promise.resolve();
|
2594
2582
|
const j = !w && mo(Vt(m.fullPath, 0)) || (b || !w) && history.state && history.state.scroll || null;
|
2595
|
-
return
|
2583
|
+
return Ie().then(() => T(m, E, j)).then((V) => V && ho(V)).catch((V) => Ue(V, m, E));
|
2596
2584
|
}
|
2597
|
-
const
|
2598
|
-
let
|
2599
|
-
const
|
2585
|
+
const Ge = (m) => o.go(m);
|
2586
|
+
let qe;
|
2587
|
+
const Pe = /* @__PURE__ */ new Set(), _t = {
|
2600
2588
|
currentRoute: l,
|
2601
2589
|
listening: !0,
|
2602
2590
|
addRoute: d,
|
@@ -2608,9 +2596,9 @@ ${JSON.stringify(b, null, 2)}
|
|
2608
2596
|
options: e,
|
2609
2597
|
push: R,
|
2610
2598
|
replace: D,
|
2611
|
-
go:
|
2612
|
-
back: () =>
|
2613
|
-
forward: () =>
|
2599
|
+
go: Ge,
|
2600
|
+
back: () => Ge(-1),
|
2601
|
+
forward: () => Ge(1),
|
2614
2602
|
beforeEach: s.add,
|
2615
2603
|
beforeResolve: i.add,
|
2616
2604
|
afterEach: c.add,
|
@@ -2623,7 +2611,7 @@ ${JSON.stringify(b, null, 2)}
|
|
2623
2611
|
get: () => W(l)
|
2624
2612
|
}), z && // used for the initial navigation client side to avoid pushing
|
2625
2613
|
// multiple times when the router is used in multiple apps
|
2626
|
-
!
|
2614
|
+
!qe && l.value === Y && (qe = !0, R(o.location).catch((T) => {
|
2627
2615
|
S.NODE_ENV !== "production" && P("Unexpected error when starting the router:", T);
|
2628
2616
|
}));
|
2629
2617
|
const w = {};
|
@@ -2632,10 +2620,10 @@ ${JSON.stringify(b, null, 2)}
|
|
2632
2620
|
get: () => l.value[T],
|
2633
2621
|
enumerable: !0
|
2634
2622
|
});
|
2635
|
-
m.provide(
|
2623
|
+
m.provide(Be, E), m.provide(mt, Hn(w)), m.provide(ct, l);
|
2636
2624
|
const b = m.unmount;
|
2637
|
-
|
2638
|
-
|
2625
|
+
Pe.add(m), m.unmount = function() {
|
2626
|
+
Pe.delete(m), Pe.size < 1 && (h = Y, fe && fe(), fe = null, l.value = Y, qe = !1, Re = !1), b();
|
2639
2627
|
}, S.NODE_ENV !== "production" && z && es(m, E, t);
|
2640
2628
|
}
|
2641
2629
|
};
|
@@ -2655,7 +2643,7 @@ function fs(e, t) {
|
|
2655
2643
|
return [n, r, o];
|
2656
2644
|
}
|
2657
2645
|
function hs() {
|
2658
|
-
return ee(
|
2646
|
+
return ee(Be);
|
2659
2647
|
}
|
2660
2648
|
function ds(e) {
|
2661
2649
|
return ee(mt);
|
@@ -2673,7 +2661,7 @@ function ne(e) {
|
|
2673
2661
|
if (N.isVForIndex(p))
|
2674
2662
|
return r.getVForIndex(p.fid);
|
2675
2663
|
if (N.isJs(p)) {
|
2676
|
-
const { code: g, bind: y } = p, _ =
|
2664
|
+
const { code: g, bind: y } = p, _ = _e(y, (O) => a(O));
|
2677
2665
|
return xr(g, _)();
|
2678
2666
|
}
|
2679
2667
|
if (N.isSlotProp(p))
|
@@ -2767,8 +2755,8 @@ function ne(e) {
|
|
2767
2755
|
return;
|
2768
2756
|
}
|
2769
2757
|
if (N.isElementRef(O)) {
|
2770
|
-
const C = o.getRef(O).value, x = y[R], { method:
|
2771
|
-
C[
|
2758
|
+
const C = o.getRef(O).value, x = y[R], { method: Le, args: le = [] } = x;
|
2759
|
+
C[Le](...le);
|
2772
2760
|
return;
|
2773
2761
|
}
|
2774
2762
|
if (N.isJsOutput(O)) {
|
@@ -2794,7 +2782,7 @@ function ne(e) {
|
|
2794
2782
|
}
|
2795
2783
|
class ps {
|
2796
2784
|
async eventSend(t, n) {
|
2797
|
-
const { fType: r, hKey: o, key: s } = t, i =
|
2785
|
+
const { fType: r, hKey: o, key: s } = t, i = Xe().webServerInfo, c = s !== void 0 ? { key: s } : {}, l = r === "sync" ? i.event_url : i.event_async_url;
|
2798
2786
|
let h = {};
|
2799
2787
|
const a = await fetch(l, {
|
2800
2788
|
method: "POST",
|
@@ -2814,7 +2802,7 @@ class ps {
|
|
2814
2802
|
return await a.json();
|
2815
2803
|
}
|
2816
2804
|
async watchSend(t) {
|
2817
|
-
const { outputs: n, fType: r, key: o } = t.watchConfig, s =
|
2805
|
+
const { outputs: n, fType: r, key: o } = t.watchConfig, s = Xe().webServerInfo, i = r === "sync" ? s.watch_url : s.watch_async_url, c = t.getServerInputs(), l = {
|
2818
2806
|
key: o,
|
2819
2807
|
input: c,
|
2820
2808
|
page: ye()
|
@@ -2866,18 +2854,30 @@ function gs(e) {
|
|
2866
2854
|
function xn() {
|
2867
2855
|
return lt;
|
2868
2856
|
}
|
2869
|
-
function vs(e
|
2870
|
-
|
2857
|
+
function vs(e) {
|
2858
|
+
const t = {
|
2859
|
+
type: "var",
|
2860
|
+
sid: e.sid,
|
2861
|
+
id: e.id
|
2862
|
+
};
|
2863
|
+
return {
|
2864
|
+
...e,
|
2865
|
+
immediate: !0,
|
2866
|
+
outputs: [t, ...e.outputs || []]
|
2867
|
+
};
|
2871
2868
|
}
|
2872
|
-
|
2869
|
+
function ys(e, t, n) {
|
2870
|
+
return new ws(e, t, n);
|
2871
|
+
}
|
2872
|
+
class ws {
|
2873
2873
|
constructor(t, n, r) {
|
2874
2874
|
B(this, "taskQueue", []);
|
2875
2875
|
B(this, "id2TaskMap", /* @__PURE__ */ new Map());
|
2876
|
-
B(this, "input2TaskIdMap",
|
2876
|
+
B(this, "input2TaskIdMap", Ee(() => []));
|
2877
2877
|
this.snapshots = r;
|
2878
2878
|
const o = [], s = (i) => {
|
2879
2879
|
var l;
|
2880
|
-
const c = new
|
2880
|
+
const c = new Es(i, r);
|
2881
2881
|
return this.id2TaskMap.set(c.id, c), (l = i.inputs) == null || l.forEach((h, a) => {
|
2882
2882
|
var f, d;
|
2883
2883
|
if (((f = i.data) == null ? void 0 : f[a]) === 0 && ((d = i.slient) == null ? void 0 : d[a]) === 0) {
|
@@ -2891,7 +2891,7 @@ class ys {
|
|
2891
2891
|
o.push(c);
|
2892
2892
|
}), n == null || n.forEach((i) => {
|
2893
2893
|
const c = s(
|
2894
|
-
|
2894
|
+
vs(i)
|
2895
2895
|
);
|
2896
2896
|
o.push(c);
|
2897
2897
|
}), o.forEach((i) => {
|
@@ -2909,7 +2909,7 @@ class ys {
|
|
2909
2909
|
G(
|
2910
2910
|
f,
|
2911
2911
|
(d) => {
|
2912
|
-
d.some(
|
2912
|
+
d.some(Te) || (i.modify = !0, this.taskQueue.push(new _s(i)), this._scheduleNextTick());
|
2913
2913
|
},
|
2914
2914
|
u
|
2915
2915
|
);
|
@@ -2924,7 +2924,7 @@ class ys {
|
|
2924
2924
|
).map((s) => this.snapshots.getVueRefObjectOrValue(s));
|
2925
2925
|
}
|
2926
2926
|
_scheduleNextTick() {
|
2927
|
-
|
2927
|
+
Ie(() => this._runAllTasks());
|
2928
2928
|
}
|
2929
2929
|
_runAllTasks() {
|
2930
2930
|
const t = this.taskQueue.slice();
|
@@ -2959,7 +2959,7 @@ class ys {
|
|
2959
2959
|
}), n;
|
2960
2960
|
}
|
2961
2961
|
}
|
2962
|
-
class
|
2962
|
+
class Es {
|
2963
2963
|
constructor(t, n) {
|
2964
2964
|
B(this, "modify", !0);
|
2965
2965
|
B(this, "_running", !1);
|
@@ -3015,7 +3015,7 @@ class ws {
|
|
3015
3015
|
}
|
3016
3016
|
}
|
3017
3017
|
}
|
3018
|
-
class
|
3018
|
+
class _s {
|
3019
3019
|
/**
|
3020
3020
|
*
|
3021
3021
|
*/
|
@@ -3060,18 +3060,18 @@ class Es {
|
|
3060
3060
|
if (this.watchTask.modify) {
|
3061
3061
|
this.watchTask.modify = !1, this.watchTask.setRunning();
|
3062
3062
|
try {
|
3063
|
-
await
|
3063
|
+
await Os(this.watchTask);
|
3064
3064
|
} finally {
|
3065
3065
|
this.watchTask.taskDone();
|
3066
3066
|
}
|
3067
3067
|
}
|
3068
3068
|
}
|
3069
3069
|
}
|
3070
|
-
async function
|
3070
|
+
async function Os(e) {
|
3071
3071
|
const { snapshot: t } = e, { outputs: n } = e.watchConfig, r = await xn().watchSend(e);
|
3072
3072
|
r && t.updateOutputsRefFromServer(r, n);
|
3073
3073
|
}
|
3074
|
-
function
|
3074
|
+
function bs(e, t) {
|
3075
3075
|
const {
|
3076
3076
|
on: n,
|
3077
3077
|
code: r,
|
@@ -3082,7 +3082,7 @@ function Os(e, t) {
|
|
3082
3082
|
bind: l = {},
|
3083
3083
|
onData: h,
|
3084
3084
|
bindData: a
|
3085
|
-
} = e, u = h || new Array(n.length).fill(0), f = a || new Array(Object.keys(l).length).fill(0), d =
|
3085
|
+
} = e, u = h || new Array(n.length).fill(0), f = a || new Array(Object.keys(l).length).fill(0), d = _e(
|
3086
3086
|
l,
|
3087
3087
|
(g, y, _) => f[_] === 0 ? t.getVueRefObject(g) : g
|
3088
3088
|
), v = L(r, d), p = n.length === 1 ? Ut(u[0] === 1, n[0], t) : n.map(
|
@@ -3093,7 +3093,7 @@ function Os(e, t) {
|
|
3093
3093
|
function Ut(e, t, n) {
|
3094
3094
|
return e ? () => t : n.getVueRefObject(t);
|
3095
3095
|
}
|
3096
|
-
function
|
3096
|
+
function Ss(e, t) {
|
3097
3097
|
const {
|
3098
3098
|
inputs: n = [],
|
3099
3099
|
outputs: r,
|
@@ -3123,19 +3123,19 @@ function bs(e, t) {
|
|
3123
3123
|
{ immediate: c, deep: l, once: h, flush: a }
|
3124
3124
|
);
|
3125
3125
|
}
|
3126
|
-
function
|
3126
|
+
function Rs(e, t) {
|
3127
3127
|
return Object.assign(
|
3128
3128
|
{},
|
3129
3129
|
...Object.entries(e ?? {}).map(([n, r]) => {
|
3130
3130
|
const o = r.map((c) => {
|
3131
3131
|
if (c.type === "web") {
|
3132
|
-
const l =
|
3133
|
-
return
|
3132
|
+
const l = Ps(c.bind, t);
|
3133
|
+
return ks(c, l, t);
|
3134
3134
|
} else {
|
3135
3135
|
if (c.type === "vue")
|
3136
|
-
return
|
3136
|
+
return Ns(c, t);
|
3137
3137
|
if (c.type === "js")
|
3138
|
-
return
|
3138
|
+
return Vs(c, t);
|
3139
3139
|
}
|
3140
3140
|
throw new Error(`unknown event type ${c}`);
|
3141
3141
|
}), i = L(
|
@@ -3150,26 +3150,26 @@ function Ss(e, t) {
|
|
3150
3150
|
})
|
3151
3151
|
);
|
3152
3152
|
}
|
3153
|
-
function
|
3153
|
+
function Ps(e, t) {
|
3154
3154
|
return (...n) => (e ?? []).map((r) => {
|
3155
3155
|
if (N.isEventContext(r)) {
|
3156
3156
|
if (r.path.startsWith(":")) {
|
3157
3157
|
const o = r.path.slice(1);
|
3158
3158
|
return L(o)(...n);
|
3159
3159
|
}
|
3160
|
-
return
|
3160
|
+
return Oe(n[0], r.path.split("."));
|
3161
3161
|
}
|
3162
3162
|
return N.IsBinding(r) ? t.getObjectToValue(r) : r;
|
3163
3163
|
});
|
3164
3164
|
}
|
3165
|
-
function
|
3165
|
+
function ks(e, t, n) {
|
3166
3166
|
async function r(...o) {
|
3167
3167
|
const s = t(...o), i = await xn().eventSend(e, s);
|
3168
3168
|
i && n.updateOutputsRefFromServer(i, e.set);
|
3169
3169
|
}
|
3170
3170
|
return r;
|
3171
3171
|
}
|
3172
|
-
function
|
3172
|
+
function Vs(e, t) {
|
3173
3173
|
const { code: n, inputs: r = [], set: o } = e, s = L(n);
|
3174
3174
|
function i(...c) {
|
3175
3175
|
const l = (r ?? []).map((a) => {
|
@@ -3178,7 +3178,7 @@ function ks(e, t) {
|
|
3178
3178
|
const u = a.path.slice(1);
|
3179
3179
|
return L(u)(...c);
|
3180
3180
|
}
|
3181
|
-
return
|
3181
|
+
return Oe(c[0], a.path.split("."));
|
3182
3182
|
}
|
3183
3183
|
return N.IsBinding(a) ? tn(t.getObjectToValue(a)) : a;
|
3184
3184
|
}), h = s(...l);
|
@@ -3189,8 +3189,8 @@ function ks(e, t) {
|
|
3189
3189
|
}
|
3190
3190
|
return i;
|
3191
3191
|
}
|
3192
|
-
function
|
3193
|
-
const { code: n, bind: r = {}, bindData: o } = e, s = o || new Array(Object.keys(r).length).fill(0), i =
|
3192
|
+
function Ns(e, t) {
|
3193
|
+
const { code: n, bind: r = {}, bindData: o } = e, s = o || new Array(Object.keys(r).length).fill(0), i = _e(
|
3194
3194
|
r,
|
3195
3195
|
(h, a, u) => s[u] === 0 ? t.getVueRefObject(h) : h
|
3196
3196
|
), c = L(n, i);
|
@@ -3199,42 +3199,42 @@ function Vs(e, t) {
|
|
3199
3199
|
}
|
3200
3200
|
return l;
|
3201
3201
|
}
|
3202
|
-
function
|
3202
|
+
function Is(e, t) {
|
3203
3203
|
const n = [];
|
3204
3204
|
(e.bStyle || []).forEach((s) => {
|
3205
3205
|
Array.isArray(s) ? n.push(
|
3206
3206
|
...s.map((i) => t.getObjectToValue(i))
|
3207
3207
|
) : n.push(
|
3208
|
-
|
3208
|
+
_e(
|
3209
3209
|
s,
|
3210
3210
|
(i) => t.getObjectToValue(i)
|
3211
3211
|
)
|
3212
3212
|
);
|
3213
3213
|
});
|
3214
|
-
const r =
|
3214
|
+
const r = Jn([e.style || {}, n]);
|
3215
3215
|
return {
|
3216
3216
|
hasStyle: r && Object.keys(r).length > 0,
|
3217
3217
|
styles: r
|
3218
3218
|
};
|
3219
3219
|
}
|
3220
|
-
function
|
3220
|
+
function Ts(e, t) {
|
3221
3221
|
const n = e.classes;
|
3222
3222
|
if (!n)
|
3223
3223
|
return null;
|
3224
3224
|
if (typeof n == "string")
|
3225
|
-
return
|
3225
|
+
return Ye(n);
|
3226
3226
|
const { str: r, map: o, bind: s } = n, i = [];
|
3227
3227
|
return r && i.push(r), o && i.push(
|
3228
|
-
|
3228
|
+
_e(
|
3229
3229
|
o,
|
3230
3230
|
(c) => t.getObjectToValue(c)
|
3231
3231
|
)
|
3232
|
-
), s && i.push(...s.map((c) => t.getObjectToValue(c))),
|
3232
|
+
), s && i.push(...s.map((c) => t.getObjectToValue(c))), Ye(i);
|
3233
3233
|
}
|
3234
|
-
function
|
3234
|
+
function $e(e, t = !0) {
|
3235
3235
|
if (!(typeof e != "object" || e === null)) {
|
3236
3236
|
if (Array.isArray(e)) {
|
3237
|
-
t && e.forEach((n) =>
|
3237
|
+
t && e.forEach((n) => $e(n, !0));
|
3238
3238
|
return;
|
3239
3239
|
}
|
3240
3240
|
for (const [n, r] of Object.entries(e))
|
@@ -3248,33 +3248,33 @@ function Ae(e, t = !0) {
|
|
3248
3248
|
);
|
3249
3249
|
}
|
3250
3250
|
else
|
3251
|
-
t &&
|
3251
|
+
t && $e(r, !0);
|
3252
3252
|
}
|
3253
3253
|
}
|
3254
|
-
function
|
3254
|
+
function As(e, t) {
|
3255
3255
|
const n = e.startsWith(":");
|
3256
3256
|
return n && (e = e.slice(1), t = L(t)), { name: e, value: t, isFunc: n };
|
3257
3257
|
}
|
3258
|
-
function
|
3258
|
+
function $s(e, t, n) {
|
3259
3259
|
var o;
|
3260
3260
|
const r = {};
|
3261
3261
|
return Ot(e.bProps || {}, (s, i) => {
|
3262
3262
|
const c = n.getObjectToValue(s);
|
3263
|
-
|
3263
|
+
Te(c) || ($e(c), r[i] = js(c, i));
|
3264
3264
|
}), (o = e.proxyProps) == null || o.forEach((s) => {
|
3265
3265
|
const i = n.getObjectToValue(s);
|
3266
3266
|
typeof i == "object" && Ot(i, (c, l) => {
|
3267
|
-
const { name: h, value: a } =
|
3267
|
+
const { name: h, value: a } = As(l, c);
|
3268
3268
|
r[h] = a;
|
3269
3269
|
});
|
3270
3270
|
}), { ...t || {}, ...r };
|
3271
3271
|
}
|
3272
|
-
function
|
3272
|
+
function js(e, t) {
|
3273
3273
|
return t === "innerText" ? Jt(e) : e;
|
3274
3274
|
}
|
3275
|
-
function
|
3275
|
+
function Cs(e, { slots: t }) {
|
3276
3276
|
const { id: n, use: r } = e.propsInfo, o = Or(n);
|
3277
|
-
return
|
3277
|
+
return xe(() => {
|
3278
3278
|
Sr(n);
|
3279
3279
|
}), () => {
|
3280
3280
|
const s = e.propsValue;
|
@@ -3284,13 +3284,13 @@ function js(e, { slots: t }) {
|
|
3284
3284
|
Object.fromEntries(
|
3285
3285
|
r.map((i) => [i, s[i]])
|
3286
3286
|
)
|
3287
|
-
), A(
|
3287
|
+
), A(De, null, t.default());
|
3288
3288
|
};
|
3289
3289
|
}
|
3290
|
-
const
|
3290
|
+
const xs = F(Cs, {
|
3291
3291
|
props: ["propsInfo", "propsValue"]
|
3292
3292
|
});
|
3293
|
-
function
|
3293
|
+
function Ds(e, t) {
|
3294
3294
|
if (!e.slots)
|
3295
3295
|
return null;
|
3296
3296
|
const n = e.slots ?? {};
|
@@ -3299,7 +3299,7 @@ function xs(e, t) {
|
|
3299
3299
|
return (l) => {
|
3300
3300
|
if (i.scope) {
|
3301
3301
|
const h = () => i.props ? Kt(i.props, l, c) : ge(c);
|
3302
|
-
return A(
|
3302
|
+
return A(Se, { scope: i.scope }, h);
|
3303
3303
|
}
|
3304
3304
|
return i.props ? Kt(i.props, l, c) : ge(c);
|
3305
3305
|
};
|
@@ -3307,7 +3307,7 @@ function xs(e, t) {
|
|
3307
3307
|
}
|
3308
3308
|
function Kt(e, t, n) {
|
3309
3309
|
return A(
|
3310
|
-
|
3310
|
+
xs,
|
3311
3311
|
{ propsInfo: e, propsValue: t },
|
3312
3312
|
() => ge(n)
|
3313
3313
|
);
|
@@ -3318,7 +3318,7 @@ function ge(e) {
|
|
3318
3318
|
}));
|
3319
3319
|
return t.length <= 0 ? null : t;
|
3320
3320
|
}
|
3321
|
-
function
|
3321
|
+
function Ms(e, t) {
|
3322
3322
|
const n = {}, r = [];
|
3323
3323
|
return (e || []).forEach((o) => {
|
3324
3324
|
const { sys: s, name: i, arg: c, value: l, mf: h } = o;
|
@@ -3328,12 +3328,12 @@ function Ds(e, t) {
|
|
3328
3328
|
a.value = u;
|
3329
3329
|
}, s === 1) {
|
3330
3330
|
const u = h ? Object.fromEntries(h.map((f) => [f, !0])) : {};
|
3331
|
-
r.push([
|
3331
|
+
r.push([Qn, a.value, void 0, u]);
|
3332
3332
|
} else
|
3333
3333
|
n[c] = a.value;
|
3334
3334
|
} else if (i === "vshow") {
|
3335
3335
|
const a = t.getVueRefObject(l);
|
3336
|
-
r.push([
|
3336
|
+
r.push([Yn, a.value]);
|
3337
3337
|
} else
|
3338
3338
|
console.warn(`Directive ${i} is not supported yet`);
|
3339
3339
|
}), {
|
@@ -3341,20 +3341,20 @@ function Ds(e, t) {
|
|
3341
3341
|
directiveArray: r
|
3342
3342
|
};
|
3343
3343
|
}
|
3344
|
-
function
|
3344
|
+
function Fs(e, t) {
|
3345
3345
|
const { eRef: n } = e;
|
3346
3346
|
return n === void 0 ? {} : { ref: t.getRef(n) };
|
3347
3347
|
}
|
3348
|
-
function
|
3348
|
+
function Bs(e) {
|
3349
3349
|
const t = ne(), n = un(), r = e.component.props ?? {};
|
3350
|
-
return
|
3351
|
-
const { tag: o } = e.component, s = N.IsBinding(o) ? t.getObjectToValue(o) : o, i = ft(s), c = typeof i == "string", l =
|
3350
|
+
return $e(r, !0), () => {
|
3351
|
+
const { tag: o } = e.component, s = N.IsBinding(o) ? t.getObjectToValue(o) : o, i = ft(s), c = typeof i == "string", l = Ts(e.component, t), { styles: h, hasStyle: a } = Is(e.component, t), u = Rs(e.component.events ?? {}, t), f = Ds(e.component, c), d = $s(e.component, r, t), { newProps: v, directiveArray: p } = Ms(
|
3352
3352
|
e.component.dir,
|
3353
3353
|
t
|
3354
|
-
), g =
|
3354
|
+
), g = Fs(
|
3355
3355
|
e.component,
|
3356
3356
|
n
|
3357
|
-
), y =
|
3357
|
+
), y = Xn({
|
3358
3358
|
...d,
|
3359
3359
|
...u,
|
3360
3360
|
...v,
|
@@ -3362,32 +3362,32 @@ function Fs(e) {
|
|
3362
3362
|
}) || {};
|
3363
3363
|
a && (y.style = h), l && (y.class = l);
|
3364
3364
|
const _ = A(i, { ...y }, f);
|
3365
|
-
return p.length > 0 ?
|
3365
|
+
return p.length > 0 ? Zn(
|
3366
3366
|
// @ts-ignore
|
3367
3367
|
_,
|
3368
3368
|
p
|
3369
3369
|
) : _;
|
3370
3370
|
};
|
3371
3371
|
}
|
3372
|
-
const Q = F(
|
3372
|
+
const Q = F(Bs, {
|
3373
3373
|
props: ["component"]
|
3374
3374
|
});
|
3375
3375
|
function Dn(e, t) {
|
3376
3376
|
var n, r;
|
3377
3377
|
if (e) {
|
3378
3378
|
const o = Er(e), s = on(e, ne(t)), i = ne(t);
|
3379
|
-
|
3379
|
+
ys(e.py_watch, e.web_computed, i), (n = e.vue_watch) == null || n.forEach((c) => bs(c, i)), (r = e.js_watch) == null || r.forEach((c) => Ss(c, i)), xe(() => {
|
3380
3380
|
cn(e.id, s), _r(e.id, o);
|
3381
3381
|
});
|
3382
3382
|
}
|
3383
3383
|
}
|
3384
|
-
function
|
3384
|
+
function Ls(e, { slots: t }) {
|
3385
3385
|
const { scope: n } = e;
|
3386
|
-
return Dn(n), () => A(
|
3386
|
+
return Dn(n), () => A(De, null, t.default());
|
3387
3387
|
}
|
3388
|
-
const
|
3388
|
+
const Se = F(Ls, {
|
3389
3389
|
props: ["scope"]
|
3390
|
-
}),
|
3390
|
+
}), Ws = F(
|
3391
3391
|
(e) => {
|
3392
3392
|
const { scope: t, items: n, vforInfo: r } = e;
|
3393
3393
|
return Pr(r), Dn(t, r.key), n.length === 1 ? () => A(Q, {
|
@@ -3402,8 +3402,8 @@ const be = F(Bs, {
|
|
3402
3402
|
props: ["scope", "items", "vforInfo"]
|
3403
3403
|
}
|
3404
3404
|
);
|
3405
|
-
function
|
3406
|
-
const { state: n, isReady: r, isLoading: o } =
|
3405
|
+
function Us(e, t) {
|
3406
|
+
const { state: n, isReady: r, isLoading: o } = fr(async () => {
|
3407
3407
|
let s = e;
|
3408
3408
|
const i = t;
|
3409
3409
|
if (!s && !i)
|
@@ -3414,45 +3414,45 @@ function Ws(e, t) {
|
|
3414
3414
|
}, {});
|
3415
3415
|
return { config: n, isReady: r, isLoading: o };
|
3416
3416
|
}
|
3417
|
-
function
|
3417
|
+
function Ks(e, t) {
|
3418
3418
|
let n;
|
3419
3419
|
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;
|
3420
3420
|
}
|
3421
|
-
const
|
3421
|
+
const Gs = { class: "app-box" }, qs = {
|
3422
3422
|
key: 0,
|
3423
3423
|
style: { position: "absolute", top: "50%", left: "50%", transform: "translate(-50%, -50%)" }
|
3424
|
-
},
|
3424
|
+
}, Hs = /* @__PURE__ */ F({
|
3425
3425
|
__name: "App",
|
3426
3426
|
props: {
|
3427
3427
|
config: {},
|
3428
3428
|
configUrl: {}
|
3429
3429
|
},
|
3430
3430
|
setup(e) {
|
3431
|
-
const t = e, { config: n, isLoading: r } =
|
3431
|
+
const t = e, { config: n, isLoading: r } = Us(
|
3432
3432
|
t.config,
|
3433
3433
|
t.configUrl
|
3434
3434
|
);
|
3435
3435
|
let o = null;
|
3436
3436
|
return G(n, (s) => {
|
3437
|
-
o = s, s.url && (
|
3437
|
+
o = s, s.url && (ar({
|
3438
3438
|
mode: s.mode,
|
3439
3439
|
version: s.version,
|
3440
3440
|
queryPath: s.url.path,
|
3441
3441
|
pathParams: s.url.params,
|
3442
3442
|
webServerInfo: s.webInfo
|
3443
3443
|
}), gs(s));
|
3444
|
-
}),
|
3445
|
-
W(r) ? (he(),
|
3446
|
-
|
3447
|
-
]))) : (he(),
|
3444
|
+
}), er(Ks), (s, i) => (he(), ke("div", Gs, [
|
3445
|
+
W(r) ? (he(), ke("div", qs, i[0] || (i[0] = [
|
3446
|
+
tr("p", { style: { margin: "auto" } }, "Loading ...", -1)
|
3447
|
+
]))) : (he(), ke("div", {
|
3448
3448
|
key: 1,
|
3449
|
-
class:
|
3449
|
+
class: Ye(["insta-main", W(n).class])
|
3450
3450
|
}, [
|
3451
|
-
|
3451
|
+
nr(W(Se), {
|
3452
3452
|
scope: W(o).scope
|
3453
3453
|
}, {
|
3454
|
-
default:
|
3455
|
-
(he(!0),
|
3454
|
+
default: rr(() => [
|
3455
|
+
(he(!0), ke(De, null, or(W(o).items, (c) => (he(), sr(W(Q), { component: c }, null, 8, ["component"]))), 256))
|
3456
3456
|
]),
|
3457
3457
|
_: 1
|
3458
3458
|
}, 8, ["scope"])
|
@@ -3460,19 +3460,19 @@ const Ks = { class: "app-box" }, Gs = {
|
|
3460
3460
|
]));
|
3461
3461
|
}
|
3462
3462
|
});
|
3463
|
-
function
|
3463
|
+
function zs(e) {
|
3464
3464
|
const { on: t, scope: n, items: r } = e, o = ne();
|
3465
3465
|
return () => {
|
3466
3466
|
const s = o.getObjectToValue(t);
|
3467
|
-
return A(
|
3467
|
+
return A(Se, { scope: n }, () => s ? r.map(
|
3468
3468
|
(c) => A(Q, { component: c })
|
3469
3469
|
) : void 0);
|
3470
3470
|
};
|
3471
3471
|
}
|
3472
|
-
const
|
3472
|
+
const Js = F(zs, {
|
3473
3473
|
props: ["on", "scope", "items"]
|
3474
3474
|
});
|
3475
|
-
function
|
3475
|
+
function Qs(e) {
|
3476
3476
|
const { start: t = 0, end: n, step: r = 1 } = e;
|
3477
3477
|
let o = [];
|
3478
3478
|
if (r > 0)
|
@@ -3483,14 +3483,14 @@ function Js(e) {
|
|
3483
3483
|
o.push(s);
|
3484
3484
|
return o;
|
3485
3485
|
}
|
3486
|
-
function
|
3486
|
+
function Ys(e) {
|
3487
3487
|
const { array: t, bArray: n, items: r, fkey: o, fid: s, scope: i, num: c, tsGroup: l = {} } = e, h = t === void 0, a = c !== void 0, u = h ? n : t, f = ne();
|
3488
3488
|
Vr(s, u, h, a);
|
3489
|
-
const v =
|
3490
|
-
return
|
3489
|
+
const v = ni(o ?? "index");
|
3490
|
+
return xe(() => {
|
3491
3491
|
wr(i.id);
|
3492
3492
|
}), () => {
|
3493
|
-
const p =
|
3493
|
+
const p = Zs(
|
3494
3494
|
a,
|
3495
3495
|
h,
|
3496
3496
|
u,
|
@@ -3498,7 +3498,7 @@ function Qs(e) {
|
|
3498
3498
|
c
|
3499
3499
|
), g = Ir(s), y = p.map((_, O) => {
|
3500
3500
|
const R = v(_, O);
|
3501
|
-
return g.add(R), Nr(s, R, O), A(
|
3501
|
+
return g.add(R), Nr(s, R, O), A(Ws, {
|
3502
3502
|
scope: e.scope,
|
3503
3503
|
items: r,
|
3504
3504
|
vforInfo: {
|
@@ -3513,25 +3513,25 @@ function Qs(e) {
|
|
3513
3513
|
}) : y;
|
3514
3514
|
};
|
3515
3515
|
}
|
3516
|
-
const
|
3516
|
+
const Xs = F(Ys, {
|
3517
3517
|
props: ["array", "items", "fid", "bArray", "scope", "num", "fkey", "tsGroup"]
|
3518
3518
|
});
|
3519
|
-
function
|
3519
|
+
function Zs(e, t, n, r, o) {
|
3520
3520
|
if (e) {
|
3521
3521
|
let i = 0;
|
3522
|
-
return typeof o == "number" ? i = o : i = r.getObjectToValue(o) ?? 0,
|
3522
|
+
return typeof o == "number" ? i = o : i = r.getObjectToValue(o) ?? 0, Qs({
|
3523
3523
|
end: Math.max(0, i)
|
3524
3524
|
});
|
3525
3525
|
}
|
3526
3526
|
const s = t ? r.getObjectToValue(n) || [] : n;
|
3527
3527
|
return typeof s == "object" ? Object.values(s) : s;
|
3528
3528
|
}
|
3529
|
-
const
|
3530
|
-
function ti(e) {
|
3531
|
-
const t = fr(e);
|
3532
|
-
return typeof t == "function" ? t : e === "item" ? Zs : ei;
|
3533
|
-
}
|
3529
|
+
const ei = (e) => e, ti = (e, t) => t;
|
3534
3530
|
function ni(e) {
|
3531
|
+
const t = hr(e);
|
3532
|
+
return typeof t == "function" ? t : e === "item" ? ei : ti;
|
3533
|
+
}
|
3534
|
+
function ri(e) {
|
3535
3535
|
return e.map((n) => {
|
3536
3536
|
if (n.tag)
|
3537
3537
|
return A(Q, { component: n });
|
@@ -3544,13 +3544,13 @@ function ni(e) {
|
|
3544
3544
|
const Mn = F(
|
3545
3545
|
(e) => {
|
3546
3546
|
const t = e.scope;
|
3547
|
-
return () =>
|
3547
|
+
return () => ri(t.items ?? []);
|
3548
3548
|
},
|
3549
3549
|
{
|
3550
3550
|
props: ["scope"]
|
3551
3551
|
}
|
3552
3552
|
);
|
3553
|
-
function
|
3553
|
+
function oi(e) {
|
3554
3554
|
return e.map((t) => {
|
3555
3555
|
if (t.tag)
|
3556
3556
|
return A(Q, { component: t });
|
@@ -3560,21 +3560,21 @@ function ri(e) {
|
|
3560
3560
|
});
|
3561
3561
|
});
|
3562
3562
|
}
|
3563
|
-
const
|
3563
|
+
const si = F(
|
3564
3564
|
(e) => {
|
3565
3565
|
const { scope: t, on: n, items: r } = e, o = J(r), s = on(t), i = ne();
|
3566
|
-
return
|
3567
|
-
const { items: c, on: l } = await
|
3566
|
+
return je.createDynamicWatchRefresh(n, i, async () => {
|
3567
|
+
const { items: c, on: l } = await je.fetchRemote(e, i);
|
3568
3568
|
return o.value = c, l;
|
3569
|
-
}),
|
3569
|
+
}), xe(() => {
|
3570
3570
|
cn(t.id, s);
|
3571
|
-
}), () =>
|
3571
|
+
}), () => oi(o.value);
|
3572
3572
|
},
|
3573
3573
|
{
|
3574
3574
|
props: ["sid", "url", "hKey", "on", "bind", "items", "scope"]
|
3575
3575
|
}
|
3576
3576
|
);
|
3577
|
-
var
|
3577
|
+
var je;
|
3578
3578
|
((e) => {
|
3579
3579
|
function t(r, o, s) {
|
3580
3580
|
let i = null, c = r, l = c.map((a) => o.getVueRefObject(a));
|
@@ -3614,18 +3614,18 @@ var $e;
|
|
3614
3614
|
return await l.json();
|
3615
3615
|
}
|
3616
3616
|
e.fetchRemote = n;
|
3617
|
-
})(
|
3618
|
-
function
|
3617
|
+
})(je || (je = {}));
|
3618
|
+
function ii(e) {
|
3619
3619
|
const { scope: t, items: n } = e;
|
3620
3620
|
return () => {
|
3621
3621
|
const r = n.map((o) => A(Q, { component: o }));
|
3622
|
-
return A(
|
3622
|
+
return A(Se, { scope: t }, () => r);
|
3623
3623
|
};
|
3624
3624
|
}
|
3625
|
-
const Gt = F(
|
3625
|
+
const Gt = F(ii, {
|
3626
3626
|
props: ["scope", "items"]
|
3627
3627
|
});
|
3628
|
-
function
|
3628
|
+
function ai(e) {
|
3629
3629
|
const { on: t, case: n, default: r } = e, o = ne();
|
3630
3630
|
return () => {
|
3631
3631
|
const s = o.getObjectToValue(t), i = n.map((c) => {
|
@@ -3641,13 +3641,13 @@ function ii(e) {
|
|
3641
3641
|
const { items: c, scope: l } = r.props;
|
3642
3642
|
i.push(A(Gt, { scope: l, items: c, key: "default" }));
|
3643
3643
|
}
|
3644
|
-
return A(
|
3644
|
+
return A(De, i);
|
3645
3645
|
};
|
3646
3646
|
}
|
3647
|
-
const
|
3647
|
+
const ci = F(ai, {
|
3648
3648
|
props: ["case", "on", "default"]
|
3649
3649
|
});
|
3650
|
-
function
|
3650
|
+
function ui(e, { slots: t }) {
|
3651
3651
|
const { name: n = "fade", tag: r } = e;
|
3652
3652
|
return () => A(
|
3653
3653
|
Qt,
|
@@ -3657,17 +3657,17 @@ function ci(e, { slots: t }) {
|
|
3657
3657
|
}
|
3658
3658
|
);
|
3659
3659
|
}
|
3660
|
-
const
|
3660
|
+
const li = F(ui, {
|
3661
3661
|
props: ["name", "tag"]
|
3662
3662
|
});
|
3663
|
-
function
|
3663
|
+
function fi(e) {
|
3664
3664
|
const { content: t, r: n = 0 } = e, r = ne(), o = n === 1 ? () => r.getObjectToValue(t) : () => t;
|
3665
3665
|
return () => Jt(o());
|
3666
3666
|
}
|
3667
|
-
const
|
3667
|
+
const hi = F(fi, {
|
3668
3668
|
props: ["content", "r"]
|
3669
3669
|
});
|
3670
|
-
function
|
3670
|
+
function di(e) {
|
3671
3671
|
if (!e.router)
|
3672
3672
|
throw new Error("Router config is not provided.");
|
3673
3673
|
const { routes: t, kAlive: n = !1 } = e.router;
|
@@ -3680,7 +3680,7 @@ function Fn(e, t) {
|
|
3680
3680
|
const { server: n = !1, vueItem: r, scope: o } = e, s = () => {
|
3681
3681
|
if (n)
|
3682
3682
|
throw new Error("Server-side rendering is not supported yet.");
|
3683
|
-
return Promise.resolve(
|
3683
|
+
return Promise.resolve(pi(r, o, t));
|
3684
3684
|
}, i = (l = r.children) == null ? void 0 : l.map(
|
3685
3685
|
(h) => Fn(h, t)
|
3686
3686
|
), c = {
|
@@ -3690,28 +3690,28 @@ function Fn(e, t) {
|
|
3690
3690
|
};
|
3691
3691
|
return r.component.length === 0 && delete c.component, i === void 0 && delete c.children, c;
|
3692
3692
|
}
|
3693
|
-
function
|
3693
|
+
function pi(e, t, n) {
|
3694
3694
|
const { path: r, component: o } = e, s = A(
|
3695
|
-
|
3695
|
+
Se,
|
3696
3696
|
{ scope: t, key: r },
|
3697
3697
|
() => o.map((c) => A(Q, { component: c }))
|
3698
3698
|
);
|
3699
|
-
return n ? A(
|
3699
|
+
return n ? A(ir, null, () => s) : s;
|
3700
3700
|
}
|
3701
|
-
function
|
3701
|
+
function mi(e, t) {
|
3702
3702
|
const { mode: n = "hash" } = t.router, r = n === "hash" ? Eo() : n === "memory" ? wo() : Rn();
|
3703
3703
|
e.use(
|
3704
3704
|
ls({
|
3705
3705
|
history: r,
|
3706
|
-
routes:
|
3706
|
+
routes: di(t)
|
3707
3707
|
})
|
3708
3708
|
);
|
3709
3709
|
}
|
3710
|
-
function
|
3711
|
-
e.component("insta-ui",
|
3710
|
+
function yi(e, t) {
|
3711
|
+
e.component("insta-ui", Hs), e.component("vif", Js), e.component("vfor", Xs), e.component("match", ci), e.component("refresh", si), e.component("ts-group", li), e.component("content", hi), t.router && mi(e, t);
|
3712
3712
|
}
|
3713
3713
|
export {
|
3714
|
-
|
3715
|
-
|
3714
|
+
$e as convertDynamicProperties,
|
3715
|
+
yi as install
|
3716
3716
|
};
|
3717
3717
|
//# sourceMappingURL=insta-ui.js.map
|