@vue/devtools-applet 8.0.7 → 8.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/state/ChildStateViewer.vue.d.ts +1 -1
- package/dist/components/tree/TreeViewer.vue.d.ts +2 -2
- package/dist/index.cjs +1 -1
- package/dist/index.css +1 -1
- package/dist/index.js +1006 -1010
- package/package.json +5 -5
package/dist/index.js
CHANGED
|
@@ -1,59 +1,59 @@
|
|
|
1
|
-
import { defineComponent as Z, withDirectives as q, createElementBlock as h, openBlock as c, normalizeStyle as
|
|
2
|
-
import { vTooltip as J, VueButton as fe, VueIcon as ue, VueDropdown as
|
|
3
|
-
import { isPlainObject as
|
|
4
|
-
import { rpc as
|
|
5
|
-
import { Splitpanes as
|
|
6
|
-
import { isArray as
|
|
7
|
-
import { debounce as
|
|
8
|
-
import { RecycleScroller as
|
|
9
|
-
import { flatten as
|
|
10
|
-
function
|
|
1
|
+
import { defineComponent as Z, withDirectives as q, createElementBlock as h, openBlock as c, normalizeStyle as Te, unref as a, createTextVNode as Q, toDisplayString as re, mergeModels as Re, useModel as Xe, Fragment as se, renderList as ce, normalizeClass as ie, createBlock as B, inject as xe, toValue as Y, ref as V, computed as k, h as fn, provide as ye, createElementVNode as u, renderSlot as Qe, createCommentVNode as U, isRef as Ke, shallowRef as me, shallowReadonly as vn, onMounted as Lt, nextTick as Ze, watch as te, getCurrentScope as mn, onScopeDispose as hn, getCurrentInstance as et, reactive as wt, toRaw as Mt, createVNode as b, mergeProps as $e, withModifiers as he, withCtx as M, watchEffect as tt, onUnmounted as Ie, vShow as gn, createStaticVNode as Cn } from "vue";
|
|
2
|
+
import { vTooltip as J, VueButton as fe, VueIcon as ue, VueDropdown as xn, VueDropdownButton as kt, VueInput as ge, VueIcIcon as Fe, VueCodeBlock as yn, VueDialog as bn, VueSwitch as _n, VueSelect as wn } from "@vue/devtools-ui";
|
|
3
|
+
import { isPlainObject as kn, UNDEFINED as Ht, NAN as In, INFINITY as $n, NEGATIVE_INFINITY as Sn, getRaw as Ot, toSubmit as ze, formatInspectorStateValue as Tn, getInspectorStateValueType as It, escape as En, toEdit as Vn, parse as le } from "@vue/devtools-kit";
|
|
4
|
+
import { rpc as E, useDevToolsState as Ut, DevToolsMessagingEvents as X, onRpcConnected as De } from "@vue/devtools-core";
|
|
5
|
+
import { Splitpanes as Pe, Pane as de } from "splitpanes";
|
|
6
|
+
import { isArray as $t, isObject as St, sortByKey as jt, isInSeparateWindow as Nn, isInChromePanel as Tt } from "@vue/devtools-shared";
|
|
7
|
+
import { debounce as An } from "perfect-debounce";
|
|
8
|
+
import { RecycleScroller as Rn } from "vue-virtual-scroller";
|
|
9
|
+
import { flatten as Dn, groupBy as Pn } from "lodash-es";
|
|
10
|
+
function Et(e) {
|
|
11
11
|
return e.toString(16).padStart(6, "0");
|
|
12
12
|
}
|
|
13
|
-
function
|
|
13
|
+
function Ln(e, t) {
|
|
14
14
|
const o = new Date(e);
|
|
15
15
|
return `${o.toString().match(/\d\d:\d\d:\d\d/)[0]}${t === "ms" ? `.${String(o.getMilliseconds()).padStart(3, "0")}` : ""}`;
|
|
16
16
|
}
|
|
17
|
-
function
|
|
18
|
-
const o = /* @__PURE__ */ new Map(), n =
|
|
17
|
+
function Mn(e, t) {
|
|
18
|
+
const o = /* @__PURE__ */ new Map(), n = Bt(e, t.toLowerCase(), o, 0);
|
|
19
19
|
return o.clear(), n;
|
|
20
20
|
}
|
|
21
|
-
const
|
|
22
|
-
function
|
|
23
|
-
if (n >
|
|
21
|
+
const zt = 10;
|
|
22
|
+
function Bt(e, t, o, n) {
|
|
23
|
+
if (n > zt)
|
|
24
24
|
return !1;
|
|
25
25
|
let l = !1;
|
|
26
26
|
const s = Object.keys(e);
|
|
27
27
|
let p, i;
|
|
28
|
-
for (let r = 0; r < s.length && (p = s[r], i = e[p], l =
|
|
28
|
+
for (let r = 0; r < s.length && (p = s[r], i = e[p], l = Zt(t, p, i, o, n + 1), !l); r++)
|
|
29
29
|
;
|
|
30
30
|
return l;
|
|
31
31
|
}
|
|
32
|
-
function
|
|
32
|
+
function Zt(e, t, o, n, l) {
|
|
33
33
|
let s = !1, p;
|
|
34
|
-
return t === "_custom" && (t = o.display, o = o.value), (p =
|
|
34
|
+
return t === "_custom" && (t = o.display, o = o.value), (p = Hn(o)) && (o = p), t && Vt(t, e) ? (s = !0, n.set(o, !0)) : n.has(o) ? s = n.get(o) : Array.isArray(o) ? (n.set(o, null), s = On(o, e, n, l), n.set(o, s)) : kn(o) ? (n.set(o, null), s = Bt(o, e, n, l), n.set(o, s)) : Vt(o, e) && (s = !0, n.set(o, !0)), s;
|
|
35
35
|
}
|
|
36
|
-
function
|
|
36
|
+
function Vt(e, t) {
|
|
37
37
|
return `${e}`.toLowerCase().includes(t);
|
|
38
38
|
}
|
|
39
|
-
function
|
|
40
|
-
return e === null ? "null" : e ===
|
|
39
|
+
function Hn(e) {
|
|
40
|
+
return e === null ? "null" : e === Ht ? "undefined" : e === In ? "NaN" : e === $n ? "Infinity" : e === Sn ? "-Infinity" : !1;
|
|
41
41
|
}
|
|
42
|
-
function
|
|
43
|
-
if (n >
|
|
42
|
+
function On(e, t, o, n) {
|
|
43
|
+
if (n > zt)
|
|
44
44
|
return !1;
|
|
45
45
|
let l = !1, s;
|
|
46
|
-
for (let p = 0; p < e.length && (s = e[p], l =
|
|
46
|
+
for (let p = 0; p < e.length && (s = e[p], l = Zt(t, null, s, o, n + 1), !l); p++)
|
|
47
47
|
;
|
|
48
48
|
return l;
|
|
49
49
|
}
|
|
50
|
-
function
|
|
50
|
+
function nt(e) {
|
|
51
51
|
const { state: t, filterKey: o, processGroup: n } = e;
|
|
52
52
|
if (!o || !o.trim().length)
|
|
53
53
|
return t;
|
|
54
54
|
const l = {};
|
|
55
55
|
for (const s in t) {
|
|
56
|
-
const i = t[s].filter((r) =>
|
|
56
|
+
const i = t[s].filter((r) => Mn({
|
|
57
57
|
// @ts-expect-error typing weak
|
|
58
58
|
[r.key]: r.value
|
|
59
59
|
}, o));
|
|
@@ -61,16 +61,16 @@ function tt(e) {
|
|
|
61
61
|
}
|
|
62
62
|
return l;
|
|
63
63
|
}
|
|
64
|
-
const
|
|
64
|
+
const Ft = /* @__PURE__ */ Z({
|
|
65
65
|
__name: "NodeTag",
|
|
66
66
|
props: {
|
|
67
67
|
tag: {}
|
|
68
68
|
},
|
|
69
69
|
setup(e) {
|
|
70
70
|
return (t, o) => q((c(), h("span", {
|
|
71
|
-
style:
|
|
72
|
-
color: `#${a(
|
|
73
|
-
backgroundColor: `#${a(
|
|
71
|
+
style: Te({
|
|
72
|
+
color: `#${a(Et)(e.tag.textColor)}`,
|
|
73
|
+
backgroundColor: `#${a(Et)(e.tag.backgroundColor)}`
|
|
74
74
|
}),
|
|
75
75
|
class: "ml-2 rounded-sm px-1 text-[0.75rem] leading-snug"
|
|
76
76
|
}, [
|
|
@@ -82,80 +82,80 @@ const jt = /* @__PURE__ */ Z({
|
|
|
82
82
|
}]
|
|
83
83
|
]);
|
|
84
84
|
}
|
|
85
|
-
}),
|
|
85
|
+
}), Un = { class: "p2" }, jn = ["onClick"], zn = /* @__PURE__ */ Z({
|
|
86
86
|
__name: "SelectiveList",
|
|
87
|
-
props: /* @__PURE__ */
|
|
87
|
+
props: /* @__PURE__ */ Re({
|
|
88
88
|
data: {}
|
|
89
89
|
}, {
|
|
90
90
|
modelValue: {},
|
|
91
91
|
modelModifiers: {}
|
|
92
92
|
}),
|
|
93
|
-
emits: /* @__PURE__ */
|
|
93
|
+
emits: /* @__PURE__ */ Re(["select"], ["update:modelValue"]),
|
|
94
94
|
setup(e, { emit: t }) {
|
|
95
|
-
const o = t, n =
|
|
95
|
+
const o = t, n = Xe(e, "modelValue");
|
|
96
96
|
function l(s) {
|
|
97
97
|
n.value = s, o("select", s);
|
|
98
98
|
}
|
|
99
|
-
return (s, p) => (c(), h("ul",
|
|
99
|
+
return (s, p) => (c(), h("ul", Un, [
|
|
100
100
|
(c(!0), h(se, null, ce(e.data, (i) => (c(), h("li", {
|
|
101
101
|
key: i.id,
|
|
102
102
|
class: ie(["selectable-item", { active: i.id === n.value }]),
|
|
103
103
|
onClick: (r) => l(i.id)
|
|
104
104
|
}, [
|
|
105
105
|
Q(re(i.label) + " ", 1),
|
|
106
|
-
(c(!0), h(se, null, ce(i.tags, (r, f) => (c(), B(
|
|
106
|
+
(c(!0), h(se, null, ce(i.tags, (r, f) => (c(), B(Ft, {
|
|
107
107
|
key: f,
|
|
108
108
|
tag: r
|
|
109
109
|
}, null, 8, ["tag"]))), 128))
|
|
110
|
-
], 10,
|
|
110
|
+
], 10, jn))), 128))
|
|
111
111
|
]));
|
|
112
112
|
}
|
|
113
|
-
}),
|
|
114
|
-
function
|
|
115
|
-
const o = t?.defaultRoutePath ?? Y(e)[0].path, n =
|
|
113
|
+
}), ot = Symbol("VirtualRouteKey"), Kt = Symbol("VirtualRoutesKey");
|
|
114
|
+
function lt(e, t) {
|
|
115
|
+
const o = t?.defaultRoutePath ?? Y(e)[0].path, n = V({
|
|
116
116
|
path: o
|
|
117
|
-
}), l =
|
|
117
|
+
}), l = k(() => Y(e)), s = k(() => n.value.path), p = Z({
|
|
118
118
|
setup() {
|
|
119
119
|
return () => {
|
|
120
120
|
const r = l.value.find((f) => f.path === s.value);
|
|
121
|
-
return r ?
|
|
121
|
+
return r ? fn(r.component) : null;
|
|
122
122
|
};
|
|
123
123
|
}
|
|
124
124
|
});
|
|
125
125
|
function i() {
|
|
126
126
|
n.value.path = o;
|
|
127
127
|
}
|
|
128
|
-
return ye(
|
|
128
|
+
return ye(ot, n), ye(Kt, l), { VirtualRouterView: p, restoreRouter: i };
|
|
129
129
|
}
|
|
130
|
-
function
|
|
131
|
-
const e =
|
|
130
|
+
function Le() {
|
|
131
|
+
const e = xe(ot);
|
|
132
132
|
return {
|
|
133
133
|
push(t) {
|
|
134
134
|
e.value.path = t;
|
|
135
135
|
}
|
|
136
136
|
};
|
|
137
137
|
}
|
|
138
|
-
function
|
|
139
|
-
const e =
|
|
138
|
+
function Bn() {
|
|
139
|
+
const e = xe(Kt), t = xe(ot);
|
|
140
140
|
return {
|
|
141
141
|
routes: e,
|
|
142
142
|
currentRoute: t
|
|
143
143
|
};
|
|
144
144
|
}
|
|
145
|
-
const
|
|
145
|
+
const Zn = {
|
|
146
146
|
border: "b base",
|
|
147
147
|
class: "flex items-center justify-between px3"
|
|
148
|
-
},
|
|
148
|
+
}, Fn = ["href"], Kn = ["href"], Ee = /* @__PURE__ */ Z({
|
|
149
149
|
__name: "DevToolsHeader",
|
|
150
150
|
props: {
|
|
151
151
|
githubRepoLink: {},
|
|
152
152
|
docLink: {}
|
|
153
153
|
},
|
|
154
154
|
setup(e) {
|
|
155
|
-
const t =
|
|
156
|
-
return (o, n) => (c(), h("div",
|
|
155
|
+
const t = Le();
|
|
156
|
+
return (o, n) => (c(), h("div", Zn, [
|
|
157
157
|
u("div", null, [
|
|
158
|
-
|
|
158
|
+
Qe(o.$slots, "default", {}, () => [
|
|
159
159
|
u("i", {
|
|
160
160
|
class: "i-ep:back cursor-pointer text-base op70 hover:op100",
|
|
161
161
|
onClick: n[0] || (n[0] = (l) => a(t).push("/"))
|
|
@@ -170,7 +170,7 @@ const jn = {
|
|
|
170
170
|
title: "View Documentation"
|
|
171
171
|
}, [...n[1] || (n[1] = [
|
|
172
172
|
u("i", { class: "i-clarity:document-line cursor-pointer text-base op70 hover:op100" }, null, -1)
|
|
173
|
-
])], 8,
|
|
173
|
+
])], 8, Fn),
|
|
174
174
|
e.githubRepoLink ? (c(), h("a", {
|
|
175
175
|
key: 0,
|
|
176
176
|
href: e.githubRepoLink,
|
|
@@ -178,7 +178,7 @@ const jn = {
|
|
|
178
178
|
title: "Star on GitHub"
|
|
179
179
|
}, [...n[2] || (n[2] = [
|
|
180
180
|
u("i", { class: "i-mdi:github cursor-pointer text-base op70 hover:op100" }, null, -1)
|
|
181
|
-
])], 8,
|
|
181
|
+
])], 8, Kn)) : U("", !0)
|
|
182
182
|
])
|
|
183
183
|
]));
|
|
184
184
|
}
|
|
@@ -187,28 +187,28 @@ const jn = {
|
|
|
187
187
|
for (const [n, l] of t)
|
|
188
188
|
o[n] = l;
|
|
189
189
|
return o;
|
|
190
|
-
},
|
|
191
|
-
function
|
|
192
|
-
return c(), h("div",
|
|
190
|
+
}, Gn = {}, Wn = { class: "h-full flex flex-col items-center justify-center op50" };
|
|
191
|
+
function qn(e, t) {
|
|
192
|
+
return c(), h("div", Wn, [
|
|
193
193
|
t[0] || (t[0] = u("i", { class: "i-lets-icons:blank-light" }, null, -1)),
|
|
194
194
|
u("span", null, [
|
|
195
|
-
|
|
195
|
+
Qe(e.$slots, "default")
|
|
196
196
|
])
|
|
197
197
|
]);
|
|
198
198
|
}
|
|
199
|
-
const
|
|
199
|
+
const Se = /* @__PURE__ */ _e(Gn, [["render", qn]]), Jn = { class: "flex gap3" }, Yn = ["onClick"], Ve = /* @__PURE__ */ Z({
|
|
200
200
|
__name: "Navbar",
|
|
201
201
|
setup(e) {
|
|
202
|
-
const { routes: t, currentRoute: o } =
|
|
203
|
-
return (l, s) => (c(), h("ul",
|
|
202
|
+
const { routes: t, currentRoute: o } = Bn(), n = Le();
|
|
203
|
+
return (l, s) => (c(), h("ul", Jn, [
|
|
204
204
|
(c(!0), h(se, null, ce(a(t), (p, i) => (c(), h("li", {
|
|
205
205
|
key: i,
|
|
206
206
|
class: ie(["h-10 flex cursor-pointer items-center justify-center border-b-[2px] border-solid text-size-sm leading-none hover:op100", a(o).path === p.path ? "op-100 font-medium text-primary-400 border-primary-400" : "border-transparent op-70"]),
|
|
207
207
|
onClick: (r) => a(n).push(p.path)
|
|
208
|
-
}, re(p.name), 11,
|
|
208
|
+
}, re(p.name), 11, Yn))), 128))
|
|
209
209
|
]));
|
|
210
210
|
}
|
|
211
|
-
}),
|
|
211
|
+
}), st = /* @__PURE__ */ Z({
|
|
212
212
|
__name: "ToggleExpanded",
|
|
213
213
|
props: {
|
|
214
214
|
value: { type: Boolean }
|
|
@@ -220,18 +220,18 @@ const Te = /* @__PURE__ */ _e(Zn, [["render", Kn]]), Gn = { class: "flex gap3" }
|
|
|
220
220
|
}])
|
|
221
221
|
}, null, 2));
|
|
222
222
|
}
|
|
223
|
-
}),
|
|
224
|
-
function
|
|
225
|
-
const t =
|
|
226
|
-
return ye(
|
|
223
|
+
}), Gt = Symbol("StateEditorSymbol");
|
|
224
|
+
function Xn(e) {
|
|
225
|
+
const t = V(e);
|
|
226
|
+
return ye(Gt, t), {
|
|
227
227
|
context: t
|
|
228
228
|
};
|
|
229
229
|
}
|
|
230
|
-
function
|
|
231
|
-
return
|
|
230
|
+
function at() {
|
|
231
|
+
return xe(Gt);
|
|
232
232
|
}
|
|
233
|
-
function
|
|
234
|
-
const e =
|
|
233
|
+
function Qn() {
|
|
234
|
+
const e = V(""), t = V("string"), o = V(!1), n = at();
|
|
235
235
|
return {
|
|
236
236
|
editingText: e,
|
|
237
237
|
editing: o,
|
|
@@ -239,10 +239,10 @@ function Jn() {
|
|
|
239
239
|
l && (t.value = l), o.value = !o.value;
|
|
240
240
|
},
|
|
241
241
|
editingType: t,
|
|
242
|
-
nodeId:
|
|
242
|
+
nodeId: k(() => n.value.nodeId)
|
|
243
243
|
};
|
|
244
244
|
}
|
|
245
|
-
function
|
|
245
|
+
function eo(e, t) {
|
|
246
246
|
if (e === "array")
|
|
247
247
|
return t.length;
|
|
248
248
|
const o = "newProp";
|
|
@@ -254,14 +254,14 @@ function Yn(e, t) {
|
|
|
254
254
|
n++;
|
|
255
255
|
}
|
|
256
256
|
}
|
|
257
|
-
function
|
|
258
|
-
const e =
|
|
257
|
+
function to() {
|
|
258
|
+
const e = V({
|
|
259
259
|
enable: !1,
|
|
260
260
|
key: "",
|
|
261
261
|
value: "undefined"
|
|
262
262
|
});
|
|
263
263
|
function t(n, l) {
|
|
264
|
-
const s =
|
|
264
|
+
const s = eo(n, l);
|
|
265
265
|
e.value = {
|
|
266
266
|
enable: !0,
|
|
267
267
|
key: s.toString(),
|
|
@@ -281,15 +281,15 @@ function Xn() {
|
|
|
281
281
|
draftingNewProp: e
|
|
282
282
|
};
|
|
283
283
|
}
|
|
284
|
-
const
|
|
285
|
-
function
|
|
286
|
-
const t =
|
|
287
|
-
return ye(`${
|
|
284
|
+
const Wt = "expanded-state";
|
|
285
|
+
function Ce(e = "") {
|
|
286
|
+
const t = V([]);
|
|
287
|
+
return ye(`${Wt}-${e}`, t), {
|
|
288
288
|
expanded: t
|
|
289
289
|
};
|
|
290
290
|
}
|
|
291
|
-
function
|
|
292
|
-
const t =
|
|
291
|
+
function it(e = "") {
|
|
292
|
+
const t = xe(`${Wt}-${e}`, V([]));
|
|
293
293
|
function o(n) {
|
|
294
294
|
const l = t.value.indexOf(n);
|
|
295
295
|
l === -1 ? t.value.push(n) : t.value.splice(l, 1);
|
|
@@ -299,14 +299,14 @@ function at(e = "") {
|
|
|
299
299
|
toggleExpanded: o
|
|
300
300
|
};
|
|
301
301
|
}
|
|
302
|
-
function
|
|
303
|
-
return
|
|
302
|
+
function rt(e) {
|
|
303
|
+
return mn() ? (hn(e), !0) : !1;
|
|
304
304
|
}
|
|
305
|
-
const
|
|
305
|
+
const ut = typeof window < "u" && typeof document < "u";
|
|
306
306
|
typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
|
|
307
|
-
const
|
|
307
|
+
const no = (e) => typeof e < "u", oo = Object.prototype.toString, lo = (e) => oo.call(e) === "[object Object]", Je = () => {
|
|
308
308
|
};
|
|
309
|
-
function
|
|
309
|
+
function qt(e, t) {
|
|
310
310
|
function o(...n) {
|
|
311
311
|
return new Promise((l, s) => {
|
|
312
312
|
Promise.resolve(e(() => t.apply(this, n), { fn: t, thisArg: this, args: n })).then(l).catch(s);
|
|
@@ -314,30 +314,30 @@ function Ft(e, t) {
|
|
|
314
314
|
}
|
|
315
315
|
return o;
|
|
316
316
|
}
|
|
317
|
-
const
|
|
318
|
-
function
|
|
319
|
-
let o, n, l =
|
|
317
|
+
const so = (e) => e();
|
|
318
|
+
function Jt(e, t = {}) {
|
|
319
|
+
let o, n, l = Je;
|
|
320
320
|
const s = (r) => {
|
|
321
|
-
clearTimeout(r), l(), l =
|
|
321
|
+
clearTimeout(r), l(), l = Je;
|
|
322
322
|
};
|
|
323
323
|
let p;
|
|
324
324
|
return (r) => {
|
|
325
|
-
const f = Y(e),
|
|
326
|
-
return o && s(o), f <= 0 ||
|
|
327
|
-
l = t.rejectOnCancel ? g : d, p = r,
|
|
325
|
+
const f = Y(e), v = Y(t.maxWait);
|
|
326
|
+
return o && s(o), f <= 0 || v !== void 0 && v <= 0 ? (n && (s(n), n = void 0), Promise.resolve(r())) : new Promise((d, g) => {
|
|
327
|
+
l = t.rejectOnCancel ? g : d, p = r, v && !n && (n = setTimeout(() => {
|
|
328
328
|
o && s(o), n = void 0, d(p());
|
|
329
|
-
},
|
|
329
|
+
}, v)), o = setTimeout(() => {
|
|
330
330
|
n && s(n), n = void 0, d(r());
|
|
331
331
|
}, f);
|
|
332
332
|
});
|
|
333
333
|
};
|
|
334
334
|
}
|
|
335
|
-
function
|
|
335
|
+
function Nt(e, t = !1, o = "Timeout") {
|
|
336
336
|
return new Promise((n, l) => {
|
|
337
337
|
setTimeout(t ? () => l(o) : n, e);
|
|
338
338
|
});
|
|
339
339
|
}
|
|
340
|
-
function
|
|
340
|
+
function ao(e) {
|
|
341
341
|
let t;
|
|
342
342
|
function o() {
|
|
343
343
|
return t || (t = e()), t;
|
|
@@ -350,41 +350,41 @@ function oo(e) {
|
|
|
350
350
|
function Be(e) {
|
|
351
351
|
return Array.isArray(e) ? e : [e];
|
|
352
352
|
}
|
|
353
|
-
function
|
|
354
|
-
return
|
|
353
|
+
function io(e) {
|
|
354
|
+
return et();
|
|
355
355
|
}
|
|
356
356
|
// @__NO_SIDE_EFFECTS__
|
|
357
|
-
function
|
|
358
|
-
return
|
|
359
|
-
|
|
357
|
+
function At(e, t = 200, o = {}) {
|
|
358
|
+
return qt(
|
|
359
|
+
Jt(t, o),
|
|
360
360
|
e
|
|
361
361
|
);
|
|
362
362
|
}
|
|
363
|
-
function
|
|
363
|
+
function ro(e, t, o = {}) {
|
|
364
364
|
const {
|
|
365
|
-
eventFilter: n =
|
|
365
|
+
eventFilter: n = so,
|
|
366
366
|
...l
|
|
367
367
|
} = o;
|
|
368
368
|
return te(
|
|
369
369
|
e,
|
|
370
|
-
|
|
370
|
+
qt(
|
|
371
371
|
n,
|
|
372
372
|
t
|
|
373
373
|
),
|
|
374
374
|
l
|
|
375
375
|
);
|
|
376
376
|
}
|
|
377
|
-
function
|
|
378
|
-
|
|
377
|
+
function uo(e, t = !0, o) {
|
|
378
|
+
io() ? Lt(e, o) : t ? e() : Ze(e);
|
|
379
379
|
}
|
|
380
|
-
function
|
|
381
|
-
function o(d, { flush: g = "sync", deep: T = !1, timeout: R, throwOnTimeout:
|
|
380
|
+
function Ye(e, t = !1) {
|
|
381
|
+
function o(d, { flush: g = "sync", deep: T = !1, timeout: R, throwOnTimeout: I } = {}) {
|
|
382
382
|
let S = null;
|
|
383
383
|
const A = [new Promise((w) => {
|
|
384
384
|
S = te(
|
|
385
385
|
e,
|
|
386
|
-
(
|
|
387
|
-
d(
|
|
386
|
+
(P) => {
|
|
387
|
+
d(P) !== t && (S ? S() : Ze(() => S?.()), w(P));
|
|
388
388
|
},
|
|
389
389
|
{
|
|
390
390
|
flush: g,
|
|
@@ -394,19 +394,19 @@ function Je(e, t = !1) {
|
|
|
394
394
|
);
|
|
395
395
|
})];
|
|
396
396
|
return R != null && A.push(
|
|
397
|
-
|
|
397
|
+
Nt(R, I).then(() => Y(e)).finally(() => S?.())
|
|
398
398
|
), Promise.race(A);
|
|
399
399
|
}
|
|
400
400
|
function n(d, g) {
|
|
401
401
|
if (!Ke(d))
|
|
402
|
-
return o((
|
|
403
|
-
const { flush: T = "sync", deep: R = !1, timeout:
|
|
402
|
+
return o((P) => P === d, g);
|
|
403
|
+
const { flush: T = "sync", deep: R = !1, timeout: I, throwOnTimeout: S } = g ?? {};
|
|
404
404
|
let N = null;
|
|
405
|
-
const w = [new Promise((
|
|
405
|
+
const w = [new Promise((P) => {
|
|
406
406
|
N = te(
|
|
407
407
|
[e, d],
|
|
408
408
|
([j, K]) => {
|
|
409
|
-
t !== (j === K) && (N ? N() : Ze(() => N?.()),
|
|
409
|
+
t !== (j === K) && (N ? N() : Ze(() => N?.()), P(j));
|
|
410
410
|
},
|
|
411
411
|
{
|
|
412
412
|
flush: T,
|
|
@@ -415,8 +415,8 @@ function Je(e, t = !1) {
|
|
|
415
415
|
}
|
|
416
416
|
);
|
|
417
417
|
})];
|
|
418
|
-
return
|
|
419
|
-
|
|
418
|
+
return I != null && w.push(
|
|
419
|
+
Nt(I, S).then(() => Y(e)).finally(() => (N?.(), Y(e)))
|
|
420
420
|
), Promise.race(w);
|
|
421
421
|
}
|
|
422
422
|
function l(d) {
|
|
@@ -438,9 +438,9 @@ function Je(e, t = !1) {
|
|
|
438
438
|
}, g);
|
|
439
439
|
}
|
|
440
440
|
function f(d) {
|
|
441
|
-
return
|
|
441
|
+
return v(1, d);
|
|
442
442
|
}
|
|
443
|
-
function
|
|
443
|
+
function v(d = 1, g) {
|
|
444
444
|
let T = -1;
|
|
445
445
|
return o(() => (T += 1, T >= d), g);
|
|
446
446
|
}
|
|
@@ -448,9 +448,9 @@ function Je(e, t = !1) {
|
|
|
448
448
|
toMatch: o,
|
|
449
449
|
toContains: r,
|
|
450
450
|
changed: f,
|
|
451
|
-
changedTimes:
|
|
451
|
+
changedTimes: v,
|
|
452
452
|
get not() {
|
|
453
|
-
return
|
|
453
|
+
return Ye(e, !t);
|
|
454
454
|
}
|
|
455
455
|
} : {
|
|
456
456
|
toMatch: o,
|
|
@@ -460,16 +460,16 @@ function Je(e, t = !1) {
|
|
|
460
460
|
toBeNaN: i,
|
|
461
461
|
toBeUndefined: p,
|
|
462
462
|
changed: f,
|
|
463
|
-
changedTimes:
|
|
463
|
+
changedTimes: v,
|
|
464
464
|
get not() {
|
|
465
|
-
return
|
|
465
|
+
return Ye(e, !t);
|
|
466
466
|
}
|
|
467
467
|
};
|
|
468
468
|
}
|
|
469
|
-
function
|
|
470
|
-
return
|
|
469
|
+
function Yt(e) {
|
|
470
|
+
return Ye(e);
|
|
471
471
|
}
|
|
472
|
-
function
|
|
472
|
+
function co(e, t, o = {}) {
|
|
473
473
|
const {
|
|
474
474
|
immediate: n = !0,
|
|
475
475
|
immediateCallback: l = !1
|
|
@@ -481,19 +481,19 @@ function io(e, t, o = {}) {
|
|
|
481
481
|
function r() {
|
|
482
482
|
s.value = !1, i();
|
|
483
483
|
}
|
|
484
|
-
function f(...
|
|
484
|
+
function f(...v) {
|
|
485
485
|
l && e(), i(), s.value = !0, p = setTimeout(() => {
|
|
486
|
-
s.value = !1, p = void 0, e(...
|
|
486
|
+
s.value = !1, p = void 0, e(...v);
|
|
487
487
|
}, Y(t));
|
|
488
488
|
}
|
|
489
|
-
return n && (s.value = !0,
|
|
490
|
-
isPending:
|
|
489
|
+
return n && (s.value = !0, ut && f()), rt(r), {
|
|
490
|
+
isPending: vn(s),
|
|
491
491
|
start: f,
|
|
492
492
|
stop: r
|
|
493
493
|
};
|
|
494
494
|
}
|
|
495
495
|
// @__NO_SIDE_EFFECTS__
|
|
496
|
-
function
|
|
496
|
+
function Xt(e = !1, t = {}) {
|
|
497
497
|
const {
|
|
498
498
|
truthyValue: o = !0,
|
|
499
499
|
falsyValue: n = !1
|
|
@@ -508,22 +508,22 @@ function Wt(e = !1, t = {}) {
|
|
|
508
508
|
}
|
|
509
509
|
return l ? p : [s, p];
|
|
510
510
|
}
|
|
511
|
-
function
|
|
511
|
+
function Qt(e, t, o = {}) {
|
|
512
512
|
const {
|
|
513
513
|
debounce: n = 0,
|
|
514
514
|
maxWait: l = void 0,
|
|
515
515
|
...s
|
|
516
516
|
} = o;
|
|
517
|
-
return
|
|
517
|
+
return ro(
|
|
518
518
|
e,
|
|
519
519
|
t,
|
|
520
520
|
{
|
|
521
521
|
...s,
|
|
522
|
-
eventFilter:
|
|
522
|
+
eventFilter: Jt(n, { maxWait: l })
|
|
523
523
|
}
|
|
524
524
|
);
|
|
525
525
|
}
|
|
526
|
-
function
|
|
526
|
+
function po(e, t, o) {
|
|
527
527
|
return te(
|
|
528
528
|
e,
|
|
529
529
|
t,
|
|
@@ -533,7 +533,7 @@ function ro(e, t, o) {
|
|
|
533
533
|
}
|
|
534
534
|
);
|
|
535
535
|
}
|
|
536
|
-
const
|
|
536
|
+
const Me = ut ? window : void 0, en = ut ? window.navigator : void 0;
|
|
537
537
|
function ke(e) {
|
|
538
538
|
var t;
|
|
539
539
|
const o = Y(e);
|
|
@@ -542,24 +542,24 @@ function ke(e) {
|
|
|
542
542
|
function ve(...e) {
|
|
543
543
|
const t = [], o = () => {
|
|
544
544
|
t.forEach((i) => i()), t.length = 0;
|
|
545
|
-
}, n = (i, r, f,
|
|
545
|
+
}, n = (i, r, f, v) => (i.addEventListener(r, f, v), () => i.removeEventListener(r, f, v)), l = k(() => {
|
|
546
546
|
const i = Be(Y(e[0])).filter((r) => r != null);
|
|
547
547
|
return i.every((r) => typeof r != "string") ? i : void 0;
|
|
548
|
-
}), s =
|
|
548
|
+
}), s = po(
|
|
549
549
|
() => {
|
|
550
550
|
var i, r;
|
|
551
551
|
return [
|
|
552
|
-
(r = (i = l.value) == null ? void 0 : i.map((f) => ke(f))) != null ? r : [
|
|
552
|
+
(r = (i = l.value) == null ? void 0 : i.map((f) => ke(f))) != null ? r : [Me].filter((f) => f != null),
|
|
553
553
|
Be(Y(l.value ? e[1] : e[0])),
|
|
554
554
|
Be(a(l.value ? e[2] : e[1])),
|
|
555
555
|
// @ts-expect-error - TypeScript gets the correct types, but somehow still complains
|
|
556
556
|
Y(l.value ? e[3] : e[2])
|
|
557
557
|
];
|
|
558
558
|
},
|
|
559
|
-
([i, r, f,
|
|
559
|
+
([i, r, f, v]) => {
|
|
560
560
|
if (o(), !i?.length || !r?.length || !f?.length)
|
|
561
561
|
return;
|
|
562
|
-
const d =
|
|
562
|
+
const d = lo(v) ? { ...v } : v;
|
|
563
563
|
t.push(
|
|
564
564
|
...i.flatMap(
|
|
565
565
|
(g) => r.flatMap(
|
|
@@ -572,47 +572,47 @@ function ve(...e) {
|
|
|
572
572
|
), p = () => {
|
|
573
573
|
s(), o();
|
|
574
574
|
};
|
|
575
|
-
return
|
|
575
|
+
return rt(o), p;
|
|
576
576
|
}
|
|
577
577
|
// @__NO_SIDE_EFFECTS__
|
|
578
|
-
function
|
|
579
|
-
const e = me(!1), t =
|
|
580
|
-
return t &&
|
|
578
|
+
function fo() {
|
|
579
|
+
const e = me(!1), t = et();
|
|
580
|
+
return t && Lt(() => {
|
|
581
581
|
e.value = !0;
|
|
582
582
|
}, t), e;
|
|
583
583
|
}
|
|
584
584
|
// @__NO_SIDE_EFFECTS__
|
|
585
|
-
function
|
|
586
|
-
const t = /* @__PURE__ */
|
|
587
|
-
return
|
|
585
|
+
function ct(e) {
|
|
586
|
+
const t = /* @__PURE__ */ fo();
|
|
587
|
+
return k(() => (t.value, !!e()));
|
|
588
588
|
}
|
|
589
|
-
function
|
|
589
|
+
function vo(e) {
|
|
590
590
|
return typeof e == "function" ? e : typeof e == "string" ? (t) => t.key === e : Array.isArray(e) ? (t) => e.includes(t.key) : () => !0;
|
|
591
591
|
}
|
|
592
|
-
function
|
|
592
|
+
function Ne(...e) {
|
|
593
593
|
let t, o, n = {};
|
|
594
594
|
e.length === 3 ? (t = e[0], o = e[1], n = e[2]) : e.length === 2 ? typeof e[1] == "object" ? (t = !0, o = e[0], n = e[1]) : (t = e[0], o = e[1]) : (t = !0, o = e[0]);
|
|
595
595
|
const {
|
|
596
|
-
target: l =
|
|
596
|
+
target: l = Me,
|
|
597
597
|
eventName: s = "keydown",
|
|
598
598
|
passive: p = !1,
|
|
599
599
|
dedupe: i = !1
|
|
600
|
-
} = n, r =
|
|
601
|
-
return ve(l, s, (
|
|
602
|
-
|
|
600
|
+
} = n, r = vo(t);
|
|
601
|
+
return ve(l, s, (v) => {
|
|
602
|
+
v.repeat && Y(i) || r(v) && o(v);
|
|
603
603
|
}, p);
|
|
604
604
|
}
|
|
605
605
|
// @__NO_SIDE_EFFECTS__
|
|
606
|
-
function
|
|
606
|
+
function Rt(e, t = {}) {
|
|
607
607
|
const {
|
|
608
608
|
controls: o = !1,
|
|
609
|
-
navigator: n =
|
|
610
|
-
} = t, l = /* @__PURE__ */
|
|
611
|
-
var
|
|
612
|
-
i.value = (d = (
|
|
609
|
+
navigator: n = en
|
|
610
|
+
} = t, l = /* @__PURE__ */ ct(() => n && "permissions" in n), s = me(), p = typeof e == "string" ? { name: e } : e, i = me(), r = () => {
|
|
611
|
+
var v, d;
|
|
612
|
+
i.value = (d = (v = s.value) == null ? void 0 : v.state) != null ? d : "prompt";
|
|
613
613
|
};
|
|
614
614
|
ve(s, "change", r, { passive: !0 });
|
|
615
|
-
const f =
|
|
615
|
+
const f = ao(async () => {
|
|
616
616
|
if (l.value) {
|
|
617
617
|
if (!s.value)
|
|
618
618
|
try {
|
|
@@ -623,7 +623,7 @@ function Et(e, t = {}) {
|
|
|
623
623
|
r();
|
|
624
624
|
}
|
|
625
625
|
if (o)
|
|
626
|
-
return
|
|
626
|
+
return Mt(s.value);
|
|
627
627
|
}
|
|
628
628
|
});
|
|
629
629
|
return f(), o ? {
|
|
@@ -632,23 +632,23 @@ function Et(e, t = {}) {
|
|
|
632
632
|
query: f
|
|
633
633
|
} : i;
|
|
634
634
|
}
|
|
635
|
-
function
|
|
635
|
+
function mo(e = {}) {
|
|
636
636
|
const {
|
|
637
|
-
navigator: t =
|
|
637
|
+
navigator: t = en,
|
|
638
638
|
read: o = !1,
|
|
639
639
|
source: n,
|
|
640
640
|
copiedDuring: l = 1500,
|
|
641
641
|
legacy: s = !1
|
|
642
|
-
} = e, p = /* @__PURE__ */
|
|
642
|
+
} = e, p = /* @__PURE__ */ ct(() => t && "clipboard" in t), i = /* @__PURE__ */ Rt("clipboard-read"), r = /* @__PURE__ */ Rt("clipboard-write"), f = k(() => p.value || s), v = me(""), d = me(!1), g = co(() => d.value = !1, l, { immediate: !1 });
|
|
643
643
|
async function T() {
|
|
644
644
|
let A = !(p.value && N(i.value));
|
|
645
645
|
if (!A)
|
|
646
646
|
try {
|
|
647
|
-
|
|
647
|
+
v.value = await t.clipboard.readText();
|
|
648
648
|
} catch {
|
|
649
649
|
A = !0;
|
|
650
650
|
}
|
|
651
|
-
A && (
|
|
651
|
+
A && (v.value = S());
|
|
652
652
|
}
|
|
653
653
|
f.value && o && ve(["copy", "cut"], T, { passive: !0 });
|
|
654
654
|
async function R(A = Y(n)) {
|
|
@@ -660,36 +660,36 @@ function po(e = {}) {
|
|
|
660
660
|
} catch {
|
|
661
661
|
w = !0;
|
|
662
662
|
}
|
|
663
|
-
w &&
|
|
663
|
+
w && I(A), v.value = A, d.value = !0, g.start();
|
|
664
664
|
}
|
|
665
665
|
}
|
|
666
|
-
function
|
|
666
|
+
function I(A) {
|
|
667
667
|
const w = document.createElement("textarea");
|
|
668
668
|
w.value = A ?? "", w.style.position = "absolute", w.style.opacity = "0", document.body.appendChild(w), w.select(), document.execCommand("copy"), w.remove();
|
|
669
669
|
}
|
|
670
670
|
function S() {
|
|
671
|
-
var A, w,
|
|
672
|
-
return (
|
|
671
|
+
var A, w, P;
|
|
672
|
+
return (P = (w = (A = document?.getSelection) == null ? void 0 : A.call(document)) == null ? void 0 : w.toString()) != null ? P : "";
|
|
673
673
|
}
|
|
674
674
|
function N(A) {
|
|
675
675
|
return A === "granted" || A === "prompt";
|
|
676
676
|
}
|
|
677
677
|
return {
|
|
678
678
|
isSupported: f,
|
|
679
|
-
text:
|
|
679
|
+
text: v,
|
|
680
680
|
copied: d,
|
|
681
681
|
copy: R
|
|
682
682
|
};
|
|
683
683
|
}
|
|
684
|
-
function
|
|
684
|
+
function ho(e) {
|
|
685
685
|
return JSON.parse(JSON.stringify(e));
|
|
686
686
|
}
|
|
687
|
-
function
|
|
688
|
-
const { window: n =
|
|
687
|
+
function go(e, t, o = {}) {
|
|
688
|
+
const { window: n = Me, ...l } = o;
|
|
689
689
|
let s;
|
|
690
|
-
const p = /* @__PURE__ */
|
|
690
|
+
const p = /* @__PURE__ */ ct(() => n && "ResizeObserver" in n), i = () => {
|
|
691
691
|
s && (s.disconnect(), s = void 0);
|
|
692
|
-
}, r =
|
|
692
|
+
}, r = k(() => {
|
|
693
693
|
const d = Y(e);
|
|
694
694
|
return Array.isArray(d) ? d.map((g) => ke(g)) : [ke(d)];
|
|
695
695
|
}), f = te(
|
|
@@ -702,19 +702,19 @@ function vo(e, t, o = {}) {
|
|
|
702
702
|
}
|
|
703
703
|
},
|
|
704
704
|
{ immediate: !0, flush: "post" }
|
|
705
|
-
),
|
|
705
|
+
), v = () => {
|
|
706
706
|
i(), f();
|
|
707
707
|
};
|
|
708
|
-
return
|
|
708
|
+
return rt(v), {
|
|
709
709
|
isSupported: p,
|
|
710
|
-
stop:
|
|
710
|
+
stop: v
|
|
711
711
|
};
|
|
712
712
|
}
|
|
713
|
-
function
|
|
714
|
-
const { window: n =
|
|
713
|
+
function Co(e, t = { width: 0, height: 0 }, o = {}) {
|
|
714
|
+
const { window: n = Me, box: l = "content-box" } = o, s = k(() => {
|
|
715
715
|
var d, g;
|
|
716
716
|
return (g = (d = ke(e)) == null ? void 0 : d.namespaceURI) == null ? void 0 : g.includes("svg");
|
|
717
|
-
}), p = me(t.width), i = me(t.height), { stop: r } =
|
|
717
|
+
}), p = me(t.width), i = me(t.height), { stop: r } = go(
|
|
718
718
|
e,
|
|
719
719
|
([d]) => {
|
|
720
720
|
const g = l === "border-box" ? d.borderBoxSize : l === "content-box" ? d.contentBoxSize : d.devicePixelContentBoxSize;
|
|
@@ -726,13 +726,13 @@ function mo(e, t = { width: 0, height: 0 }, o = {}) {
|
|
|
726
726
|
}
|
|
727
727
|
} else if (g) {
|
|
728
728
|
const T = Be(g);
|
|
729
|
-
p.value = T.reduce((R, { inlineSize:
|
|
729
|
+
p.value = T.reduce((R, { inlineSize: I }) => R + I, 0), i.value = T.reduce((R, { blockSize: I }) => R + I, 0);
|
|
730
730
|
} else
|
|
731
731
|
p.value = d.contentRect.width, i.value = d.contentRect.height;
|
|
732
732
|
},
|
|
733
733
|
o
|
|
734
734
|
);
|
|
735
|
-
|
|
735
|
+
uo(() => {
|
|
736
736
|
const d = ke(e);
|
|
737
737
|
d && (p.value = "offsetWidth" in d ? d.offsetWidth : t.width, i.value = "offsetHeight" in d ? d.offsetHeight : t.height);
|
|
738
738
|
});
|
|
@@ -742,16 +742,16 @@ function mo(e, t = { width: 0, height: 0 }, o = {}) {
|
|
|
742
742
|
p.value = d ? t.width : 0, i.value = d ? t.height : 0;
|
|
743
743
|
}
|
|
744
744
|
);
|
|
745
|
-
function
|
|
745
|
+
function v() {
|
|
746
746
|
r(), f();
|
|
747
747
|
}
|
|
748
748
|
return {
|
|
749
749
|
width: p,
|
|
750
750
|
height: i,
|
|
751
|
-
stop:
|
|
751
|
+
stop: v
|
|
752
752
|
};
|
|
753
753
|
}
|
|
754
|
-
const
|
|
754
|
+
const xo = {
|
|
755
755
|
ctrl: "control",
|
|
756
756
|
command: "meta",
|
|
757
757
|
cmd: "meta",
|
|
@@ -761,19 +761,19 @@ const ho = {
|
|
|
761
761
|
left: "arrowleft",
|
|
762
762
|
right: "arrowright"
|
|
763
763
|
};
|
|
764
|
-
function
|
|
764
|
+
function yo(e = {}) {
|
|
765
765
|
const {
|
|
766
766
|
reactive: t = !1,
|
|
767
|
-
target: o =
|
|
768
|
-
aliasMap: n =
|
|
767
|
+
target: o = Me,
|
|
768
|
+
aliasMap: n = xo,
|
|
769
769
|
passive: l = !0,
|
|
770
|
-
onEventFired: s =
|
|
771
|
-
} = e, p =
|
|
770
|
+
onEventFired: s = Je
|
|
771
|
+
} = e, p = wt(/* @__PURE__ */ new Set()), i = {
|
|
772
772
|
toJSON() {
|
|
773
773
|
return {};
|
|
774
774
|
},
|
|
775
775
|
current: p
|
|
776
|
-
}, r = t ?
|
|
776
|
+
}, r = t ? wt(i) : i, f = /* @__PURE__ */ new Set(), v = /* @__PURE__ */ new Set(), d = /* @__PURE__ */ new Set();
|
|
777
777
|
function g(S, N) {
|
|
778
778
|
S in r && (t ? r[S] = N : r[S].value = N);
|
|
779
779
|
}
|
|
@@ -784,22 +784,22 @@ function go(e = {}) {
|
|
|
784
784
|
}
|
|
785
785
|
function R(S, N) {
|
|
786
786
|
var A, w;
|
|
787
|
-
const
|
|
788
|
-
|
|
787
|
+
const P = (A = S.key) == null ? void 0 : A.toLowerCase(), K = [(w = S.code) == null ? void 0 : w.toLowerCase(), P].filter(Boolean);
|
|
788
|
+
P && (N ? p.add(P) : p.delete(P));
|
|
789
789
|
for (const G of K)
|
|
790
790
|
d.add(G), g(G, N);
|
|
791
|
-
if (
|
|
792
|
-
const G = Array.from(
|
|
791
|
+
if (P === "shift" && !N) {
|
|
792
|
+
const G = Array.from(v), O = G.indexOf("shift");
|
|
793
793
|
G.forEach((_, H) => {
|
|
794
794
|
H >= O && (p.delete(_), g(_, !1));
|
|
795
|
-
}),
|
|
796
|
-
} else typeof S.getModifierState == "function" && S.getModifierState("Shift") && N && [...p, ...K].forEach((G) =>
|
|
797
|
-
|
|
795
|
+
}), v.clear();
|
|
796
|
+
} else typeof S.getModifierState == "function" && S.getModifierState("Shift") && N && [...p, ...K].forEach((G) => v.add(G));
|
|
797
|
+
P === "meta" && !N ? (f.forEach((G) => {
|
|
798
798
|
p.delete(G), g(G, !1);
|
|
799
799
|
}), f.clear()) : typeof S.getModifierState == "function" && S.getModifierState("Meta") && N && [...p, ...K].forEach((G) => f.add(G));
|
|
800
800
|
}
|
|
801
801
|
ve(o, "keydown", (S) => (R(S, !0), s(S)), { passive: l }), ve(o, "keyup", (S) => (R(S, !1), s(S)), { passive: l }), ve("blur", T, { passive: l }), ve("focus", T, { passive: l });
|
|
802
|
-
const
|
|
802
|
+
const I = new Proxy(
|
|
803
803
|
r,
|
|
804
804
|
{
|
|
805
805
|
get(S, N, A) {
|
|
@@ -807,8 +807,8 @@ function go(e = {}) {
|
|
|
807
807
|
return Reflect.get(S, N, A);
|
|
808
808
|
if (N = N.toLowerCase(), N in n && (N = n[N]), !(N in r))
|
|
809
809
|
if (/[+_-]/.test(N)) {
|
|
810
|
-
const
|
|
811
|
-
r[N] =
|
|
810
|
+
const P = N.split(/[+_-]/g).map((j) => j.trim());
|
|
811
|
+
r[N] = k(() => P.map((j) => Y(I[j])).every(Boolean));
|
|
812
812
|
} else
|
|
813
813
|
r[N] = me(!1);
|
|
814
814
|
const w = Reflect.get(S, N, A);
|
|
@@ -816,41 +816,41 @@ function go(e = {}) {
|
|
|
816
816
|
}
|
|
817
817
|
}
|
|
818
818
|
);
|
|
819
|
-
return
|
|
819
|
+
return I;
|
|
820
820
|
}
|
|
821
821
|
// @__NO_SIDE_EFFECTS__
|
|
822
|
-
function
|
|
822
|
+
function bo(e, t, o, n = {}) {
|
|
823
823
|
var l, s, p;
|
|
824
824
|
const {
|
|
825
825
|
clone: i = !1,
|
|
826
826
|
passive: r = !1,
|
|
827
827
|
eventName: f,
|
|
828
|
-
deep:
|
|
828
|
+
deep: v = !1,
|
|
829
829
|
defaultValue: d,
|
|
830
830
|
shouldEmit: g
|
|
831
|
-
} = n, T =
|
|
832
|
-
let
|
|
833
|
-
|
|
834
|
-
const S = (w) => i ? typeof i == "function" ? i(w) :
|
|
835
|
-
g ? g(w) && R(
|
|
831
|
+
} = n, T = et(), R = o || T?.emit || ((l = T?.$emit) == null ? void 0 : l.bind(T)) || ((p = (s = T?.proxy) == null ? void 0 : s.$emit) == null ? void 0 : p.bind(T?.proxy));
|
|
832
|
+
let I = f;
|
|
833
|
+
I = I || `update:${t.toString()}`;
|
|
834
|
+
const S = (w) => i ? typeof i == "function" ? i(w) : ho(w) : w, N = () => no(e[t]) ? S(e[t]) : d, A = (w) => {
|
|
835
|
+
g ? g(w) && R(I, w) : R(I, w);
|
|
836
836
|
};
|
|
837
837
|
if (r) {
|
|
838
|
-
const w = N(),
|
|
838
|
+
const w = N(), P = V(w);
|
|
839
839
|
let j = !1;
|
|
840
840
|
return te(
|
|
841
841
|
() => e[t],
|
|
842
842
|
(K) => {
|
|
843
|
-
j || (j = !0,
|
|
843
|
+
j || (j = !0, P.value = S(K), Ze(() => j = !1));
|
|
844
844
|
}
|
|
845
845
|
), te(
|
|
846
|
-
|
|
846
|
+
P,
|
|
847
847
|
(K) => {
|
|
848
|
-
!j && (K !== e[t] ||
|
|
848
|
+
!j && (K !== e[t] || v) && A(K);
|
|
849
849
|
},
|
|
850
|
-
{ deep:
|
|
851
|
-
),
|
|
850
|
+
{ deep: v }
|
|
851
|
+
), P;
|
|
852
852
|
} else
|
|
853
|
-
return
|
|
853
|
+
return k({
|
|
854
854
|
get() {
|
|
855
855
|
return N();
|
|
856
856
|
},
|
|
@@ -859,14 +859,14 @@ function Co(e, t, o, n = {}) {
|
|
|
859
859
|
}
|
|
860
860
|
});
|
|
861
861
|
}
|
|
862
|
-
function
|
|
862
|
+
function _o(e, t = {}) {
|
|
863
863
|
const {
|
|
864
864
|
enter: o = () => {
|
|
865
865
|
},
|
|
866
866
|
leave: n = () => {
|
|
867
867
|
},
|
|
868
868
|
initial: l = !1
|
|
869
|
-
} = t, s =
|
|
869
|
+
} = t, s = V(l);
|
|
870
870
|
return ve(e, "mouseenter", () => {
|
|
871
871
|
s.value = !0, o();
|
|
872
872
|
}), ve(e, "mouseleave", () => {
|
|
@@ -875,7 +875,7 @@ function xo(e, t = {}) {
|
|
|
875
875
|
isHovering: s
|
|
876
876
|
};
|
|
877
877
|
}
|
|
878
|
-
const
|
|
878
|
+
const wo = { class: "flex pl5px" }, ko = { class: "w160px py5px" }, Io = /* @__PURE__ */ Z({
|
|
879
879
|
__name: "StateFieldEditor",
|
|
880
880
|
props: {
|
|
881
881
|
data: {},
|
|
@@ -886,39 +886,39 @@ const yo = { class: "flex pl5px" }, bo = { class: "w160px py5px" }, _o = /* @__P
|
|
|
886
886
|
},
|
|
887
887
|
emits: ["enableEditInput", "addNewProp"],
|
|
888
888
|
setup(e) {
|
|
889
|
-
const t = e, o =
|
|
889
|
+
const t = e, o = at(), { copy: n, isSupported: l } = mo(), s = V(!1), p = k(() => Ot(t.data.value)), i = k(() => p.value.value), r = k(() => p.value.customType), f = k(() => i.value === null ? "null" : typeof i.value), v = {
|
|
890
890
|
flat: !0,
|
|
891
891
|
size: "mini"
|
|
892
|
-
}, d =
|
|
892
|
+
}, d = k(() => ({
|
|
893
893
|
"opacity-0": !t.hovering
|
|
894
894
|
}));
|
|
895
|
-
async function g(R,
|
|
896
|
-
await
|
|
895
|
+
async function g(R, I = !1) {
|
|
896
|
+
await E.value.editInspectorState({
|
|
897
897
|
path: t.data.path || [t.data.key],
|
|
898
898
|
inspectorId: o.value.inspectorId,
|
|
899
899
|
type: t.data.stateType,
|
|
900
900
|
nodeId: o.value.nodeId,
|
|
901
901
|
state: {
|
|
902
902
|
newKey: null,
|
|
903
|
-
value:
|
|
903
|
+
value: Mt(R),
|
|
904
904
|
type: f.value,
|
|
905
|
-
remove:
|
|
905
|
+
remove: I
|
|
906
906
|
}
|
|
907
|
-
}), await
|
|
907
|
+
}), await E.value.sendInspectorState(o.value.inspectorId);
|
|
908
908
|
}
|
|
909
|
-
function T(R,
|
|
910
|
-
const S = typeof R == "number" ? R +
|
|
909
|
+
function T(R, I) {
|
|
910
|
+
const S = typeof R == "number" ? R + I : BigInt(R) + BigInt(I);
|
|
911
911
|
g(S);
|
|
912
912
|
}
|
|
913
|
-
return (R,
|
|
913
|
+
return (R, I) => (c(), h("div", wo, [
|
|
914
914
|
!t.disableEdit && e.data.editable ? (c(), h(se, { key: 0 }, [
|
|
915
915
|
f.value === "string" || f.value === "number" || f.value === "object" || f.value === "null" ? (c(), h(se, { key: 0 }, [
|
|
916
|
-
q((c(), B(a(fe),
|
|
916
|
+
q((c(), B(a(fe), $e(v, {
|
|
917
917
|
class: d.value,
|
|
918
|
-
onClick:
|
|
918
|
+
onClick: I[0] || (I[0] = he((S) => R.$emit("enableEditInput", f.value), ["stop"]))
|
|
919
919
|
}), {
|
|
920
920
|
icon: M(() => [
|
|
921
|
-
|
|
921
|
+
b(a(ue), { icon: "i-material-symbols-edit-rounded" })
|
|
922
922
|
]),
|
|
923
923
|
_: 1
|
|
924
924
|
}, 16, ["class"])), [
|
|
@@ -926,12 +926,12 @@ const yo = { class: "flex pl5px" }, bo = { class: "w160px py5px" }, _o = /* @__P
|
|
|
926
926
|
content: "Edit value"
|
|
927
927
|
}]
|
|
928
928
|
]),
|
|
929
|
-
f.value === "object" && e.showAddIfNeeded ? q((c(), B(a(fe),
|
|
929
|
+
f.value === "object" && e.showAddIfNeeded ? q((c(), B(a(fe), $e({ key: 0 }, v, {
|
|
930
930
|
class: d.value,
|
|
931
|
-
onClick:
|
|
931
|
+
onClick: I[1] || (I[1] = he((S) => R.$emit("addNewProp", Array.isArray(i.value) ? "array" : "object"), ["stop"]))
|
|
932
932
|
}), {
|
|
933
933
|
icon: M(() => [
|
|
934
|
-
|
|
934
|
+
b(a(ue), { icon: "i-material-symbols-add-circle-rounded" })
|
|
935
935
|
]),
|
|
936
936
|
_: 1
|
|
937
937
|
}, 16, ["class"])), [
|
|
@@ -940,47 +940,47 @@ const yo = { class: "flex pl5px" }, bo = { class: "w160px py5px" }, _o = /* @__P
|
|
|
940
940
|
}]
|
|
941
941
|
]) : U("", !0)
|
|
942
942
|
], 64)) : U("", !0),
|
|
943
|
-
f.value === "boolean" ? (c(), B(a(fe),
|
|
943
|
+
f.value === "boolean" ? (c(), B(a(fe), $e({ key: 1 }, v, {
|
|
944
944
|
class: d.value,
|
|
945
|
-
onClick:
|
|
945
|
+
onClick: I[2] || (I[2] = (S) => g(!i.value))
|
|
946
946
|
}), {
|
|
947
947
|
icon: M(() => [
|
|
948
|
-
|
|
948
|
+
b(a(ue), {
|
|
949
949
|
icon: i.value ? "i-material-symbols-check-box-sharp" : "i-material-symbols-check-box-outline-blank-sharp"
|
|
950
950
|
}, null, 8, ["icon"])
|
|
951
951
|
]),
|
|
952
952
|
_: 1
|
|
953
953
|
}, 16, ["class"])) : f.value === "number" || r.value === "bigint" ? (c(), h(se, { key: 2 }, [
|
|
954
|
-
|
|
954
|
+
b(a(fe), $e(v, {
|
|
955
955
|
class: d.value,
|
|
956
|
-
onClick:
|
|
956
|
+
onClick: I[3] || (I[3] = he((S) => T(i.value, 1), ["stop"]))
|
|
957
957
|
}), {
|
|
958
958
|
icon: M(() => [
|
|
959
|
-
|
|
959
|
+
b(a(ue), { icon: "i-carbon-add" })
|
|
960
960
|
]),
|
|
961
961
|
_: 1
|
|
962
962
|
}, 16, ["class"]),
|
|
963
|
-
|
|
963
|
+
b(a(fe), $e(v, {
|
|
964
964
|
class: d.value,
|
|
965
|
-
onClick:
|
|
965
|
+
onClick: I[4] || (I[4] = he((S) => T(i.value, -1), ["stop"]))
|
|
966
966
|
}), {
|
|
967
967
|
icon: M(() => [
|
|
968
|
-
|
|
968
|
+
b(a(ue), { icon: "i-carbon-subtract" })
|
|
969
969
|
]),
|
|
970
970
|
_: 1
|
|
971
971
|
}, 16, ["class"])
|
|
972
972
|
], 64)) : U("", !0)
|
|
973
973
|
], 64)) : U("", !0),
|
|
974
|
-
!t.disableEdit && e.depth > 0 && e.data.editable ? (c(), B(a(fe),
|
|
974
|
+
!t.disableEdit && e.depth > 0 && e.data.editable ? (c(), B(a(fe), $e({ key: 1 }, v, {
|
|
975
975
|
class: d.value,
|
|
976
|
-
onClick:
|
|
976
|
+
onClick: I[5] || (I[5] = he((S) => g(i.value, !0), ["stop"]))
|
|
977
977
|
}), {
|
|
978
978
|
icon: M(() => [
|
|
979
|
-
|
|
979
|
+
b(a(ue), { icon: "i-material-symbols-delete-rounded" })
|
|
980
980
|
]),
|
|
981
981
|
_: 1
|
|
982
982
|
}, 16, ["class"])) : U("", !0),
|
|
983
|
-
|
|
983
|
+
b(a(xn), {
|
|
984
984
|
class: ie({
|
|
985
985
|
"opacity-0": !e.hovering && !s.value
|
|
986
986
|
}),
|
|
@@ -989,46 +989,46 @@ const yo = { class: "flex pl5px" }, bo = { class: "w160px py5px" }, _o = /* @__P
|
|
|
989
989
|
size: "mini"
|
|
990
990
|
},
|
|
991
991
|
disabled: !a(l),
|
|
992
|
-
"onUpdate:visible":
|
|
992
|
+
"onUpdate:visible": I[8] || (I[8] = (S) => s.value = S)
|
|
993
993
|
}, {
|
|
994
994
|
popper: M(() => [
|
|
995
|
-
u("div",
|
|
996
|
-
|
|
997
|
-
onClick:
|
|
995
|
+
u("div", ko, [
|
|
996
|
+
b(a(kt), {
|
|
997
|
+
onClick: I[6] || (I[6] = (S) => a(n)(typeof i.value == "object" ? JSON.stringify(i.value) : i.value.toString()))
|
|
998
998
|
}, {
|
|
999
999
|
icon: M(() => [
|
|
1000
|
-
|
|
1000
|
+
b(a(ue), {
|
|
1001
1001
|
icon: "i-material-symbols-copy-all-rounded",
|
|
1002
1002
|
class: "mt4px"
|
|
1003
1003
|
}),
|
|
1004
|
-
|
|
1004
|
+
I[9] || (I[9] = Q(" Copy Value ", -1))
|
|
1005
1005
|
]),
|
|
1006
1006
|
_: 1
|
|
1007
1007
|
}),
|
|
1008
|
-
|
|
1009
|
-
onClick:
|
|
1008
|
+
b(a(kt), {
|
|
1009
|
+
onClick: I[7] || (I[7] = () => {
|
|
1010
1010
|
a(n)(e.data.key);
|
|
1011
1011
|
})
|
|
1012
1012
|
}, {
|
|
1013
1013
|
icon: M(() => [
|
|
1014
|
-
|
|
1014
|
+
b(a(ue), {
|
|
1015
1015
|
icon: "i-material-symbols-copy-all-rounded",
|
|
1016
1016
|
class: "mt4px"
|
|
1017
1017
|
}),
|
|
1018
|
-
|
|
1018
|
+
I[10] || (I[10] = Q(" Copy Path ", -1))
|
|
1019
1019
|
]),
|
|
1020
1020
|
_: 1
|
|
1021
1021
|
})
|
|
1022
1022
|
])
|
|
1023
1023
|
]),
|
|
1024
1024
|
"button-icon": M(() => [
|
|
1025
|
-
|
|
1025
|
+
b(a(ue), { icon: "i-material-symbols:more-vert" })
|
|
1026
1026
|
]),
|
|
1027
1027
|
_: 1
|
|
1028
1028
|
}, 8, ["class", "disabled"])
|
|
1029
1029
|
]));
|
|
1030
1030
|
}
|
|
1031
|
-
}),
|
|
1031
|
+
}), $o = { class: "flex-inline items-center gap4px" }, qe = /* @__PURE__ */ Z({
|
|
1032
1032
|
__name: "StateFieldInputEditor",
|
|
1033
1033
|
props: {
|
|
1034
1034
|
modelValue: {},
|
|
@@ -1038,11 +1038,11 @@ const yo = { class: "flex pl5px" }, bo = { class: "w160px py5px" }, _o = /* @__P
|
|
|
1038
1038
|
},
|
|
1039
1039
|
emits: ["cancel", "submit", "update:modelValue"],
|
|
1040
1040
|
setup(e, { emit: t }) {
|
|
1041
|
-
const o = e, n = t, l =
|
|
1042
|
-
|
|
1041
|
+
const o = e, n = t, l = k(() => o.customType === "date" ? "datetime-local" : ""), { escape: s, enter: p } = yo();
|
|
1042
|
+
tt(() => {
|
|
1043
1043
|
s.value ? n("cancel") : p.value && n("submit");
|
|
1044
1044
|
});
|
|
1045
|
-
const i = /* @__PURE__ */
|
|
1045
|
+
const i = /* @__PURE__ */ bo(o, "modelValue", n);
|
|
1046
1046
|
function r(d) {
|
|
1047
1047
|
try {
|
|
1048
1048
|
return ze(d, o.customType), !0;
|
|
@@ -1050,11 +1050,11 @@ const yo = { class: "flex pl5px" }, bo = { class: "w160px py5px" }, _o = /* @__P
|
|
|
1050
1050
|
return !1;
|
|
1051
1051
|
}
|
|
1052
1052
|
}
|
|
1053
|
-
const f =
|
|
1054
|
-
return te(i,
|
|
1053
|
+
const f = V(!1);
|
|
1054
|
+
return te(i, An(() => {
|
|
1055
1055
|
f.value = !r(i.value);
|
|
1056
|
-
}, 300)), (d, g) => (c(), h("span",
|
|
1057
|
-
|
|
1056
|
+
}, 300)), (d, g) => (c(), h("span", $o, [
|
|
1057
|
+
b(a(ge), {
|
|
1058
1058
|
modelValue: a(i),
|
|
1059
1059
|
"onUpdate:modelValue": g[0] || (g[0] = (T) => Ke(i) ? i.value = T : null),
|
|
1060
1060
|
type: l.value,
|
|
@@ -1072,7 +1072,7 @@ const yo = { class: "flex pl5px" }, bo = { class: "w160px py5px" }, _o = /* @__P
|
|
|
1072
1072
|
onClick: g[2] || (g[2] = he((T) => d.$emit("cancel"), ["stop"]))
|
|
1073
1073
|
}, {
|
|
1074
1074
|
icon: M(() => [
|
|
1075
|
-
|
|
1075
|
+
b(a(ue), { icon: "i-material-symbols-cancel" })
|
|
1076
1076
|
]),
|
|
1077
1077
|
_: 1
|
|
1078
1078
|
})), [
|
|
@@ -1096,7 +1096,7 @@ const yo = { class: "flex pl5px" }, bo = { class: "w160px py5px" }, _o = /* @__P
|
|
|
1096
1096
|
onClick: g[3] || (g[3] = he((T) => d.$emit("submit"), ["stop"]))
|
|
1097
1097
|
}, {
|
|
1098
1098
|
icon: M(() => [
|
|
1099
|
-
|
|
1099
|
+
b(a(ue), { icon: "i-material-symbols-save" })
|
|
1100
1100
|
]),
|
|
1101
1101
|
_: 1
|
|
1102
1102
|
})), [
|
|
@@ -1107,20 +1107,20 @@ const yo = { class: "flex pl5px" }, bo = { class: "w160px py5px" }, _o = /* @__P
|
|
|
1107
1107
|
], 64)) : U("", !0)
|
|
1108
1108
|
]));
|
|
1109
1109
|
}
|
|
1110
|
-
}),
|
|
1110
|
+
}), So = {
|
|
1111
1111
|
key: 1,
|
|
1112
1112
|
pl5: ""
|
|
1113
|
-
},
|
|
1113
|
+
}, To = {
|
|
1114
1114
|
"whitespace-nowrap": "",
|
|
1115
1115
|
"text-purple-700": "",
|
|
1116
1116
|
op70: "",
|
|
1117
1117
|
"dark:text-purple-300": ""
|
|
1118
|
-
},
|
|
1118
|
+
}, Eo = ["innerHTML"], Vo = { key: 0 }, No = {
|
|
1119
1119
|
"overflow-hidden": "",
|
|
1120
1120
|
"text-ellipsis": "",
|
|
1121
1121
|
"whitespace-nowrap": "",
|
|
1122
1122
|
"state-key": ""
|
|
1123
|
-
},
|
|
1123
|
+
}, Dt = 30, Ao = /* @__PURE__ */ Z({
|
|
1124
1124
|
__name: "StateFieldViewer",
|
|
1125
1125
|
props: {
|
|
1126
1126
|
data: {},
|
|
@@ -1129,111 +1129,111 @@ const yo = { class: "flex pl5px" }, bo = { class: "w160px py5px" }, _o = /* @__P
|
|
|
1129
1129
|
expandedStateId: {}
|
|
1130
1130
|
},
|
|
1131
1131
|
setup(e) {
|
|
1132
|
-
const t = e, o =
|
|
1132
|
+
const t = e, o = V(Dt), n = k(() => Tn(t.data.value, !1, {
|
|
1133
1133
|
customClass: {
|
|
1134
1134
|
string: "max-w-120 truncate"
|
|
1135
1135
|
}
|
|
1136
|
-
})), l =
|
|
1137
|
-
const { value:
|
|
1138
|
-
return
|
|
1139
|
-
}),
|
|
1140
|
-
const
|
|
1141
|
-
if (
|
|
1142
|
-
return
|
|
1136
|
+
})), l = k(() => It(t.data.value)), s = k(() => Ot(t.data.value)), { expanded: p, toggleExpanded: i } = it(t.expandedStateId ?? ""), r = k(() => l.value === "custom" ? `${t.data.value._custom?.type ?? "string"}-custom-state` : "unknown-state-type"), f = k(() => {
|
|
1137
|
+
const { value: $ } = s.value;
|
|
1138
|
+
return $t($) ? $.length : St($) ? Object.keys($).length : 0;
|
|
1139
|
+
}), v = k(() => t.data.path || [t.data.key]), d = k(() => v.value[v.value.length - 1]), g = k(() => {
|
|
1140
|
+
const $ = ["Reactive"], m = t.data.value?._custom?.stateTypeName || t.data?.stateTypeName;
|
|
1141
|
+
if ($.includes(m))
|
|
1142
|
+
return m;
|
|
1143
1143
|
if (t.data.value?.fields?.abstract)
|
|
1144
1144
|
return "";
|
|
1145
1145
|
{
|
|
1146
|
-
const C = t.data.value?._custom?.type,
|
|
1147
|
-
return
|
|
1146
|
+
const C = t.data.value?._custom?.type, D = l.value === "custom" && !C ? `"${n.value}"` : n.value === "" ? '""' : n.value, z = l.value === "custom" && C === "ref" ? It(D) : l.value, ne = l.value === "string" ? "select-text" : "", we = `<span title="${l.value === "string" ? En(t.data.value) : ""}" class="${z}-state-type flex whitespace-nowrap ${ne}">${D}</span>`;
|
|
1147
|
+
return m ? `${we} <span class="text-gray-500">(${m})</span>` : we;
|
|
1148
1148
|
}
|
|
1149
|
-
}), T =
|
|
1150
|
-
const
|
|
1149
|
+
}), T = k(() => {
|
|
1150
|
+
const $ = {
|
|
1151
1151
|
content: "",
|
|
1152
1152
|
disabled: !0,
|
|
1153
1153
|
html: !0
|
|
1154
1154
|
};
|
|
1155
1155
|
if (l.value === "custom") {
|
|
1156
|
-
const
|
|
1157
|
-
|
|
1156
|
+
const m = t.data.value?._custom?.tooltipText;
|
|
1157
|
+
m && ($.content = m, $.disabled = !1);
|
|
1158
1158
|
}
|
|
1159
|
-
return
|
|
1160
|
-
}), R =
|
|
1161
|
-
const { value:
|
|
1159
|
+
return $;
|
|
1160
|
+
}), R = k(() => {
|
|
1161
|
+
const { value: $, inherit: m, customType: C } = s.value, D = C === "set";
|
|
1162
1162
|
let z = [];
|
|
1163
|
-
return
|
|
1164
|
-
key:
|
|
1165
|
-
path: [...
|
|
1163
|
+
return $t($) ? $.slice(0, o.value).map((we, Ue) => ({
|
|
1164
|
+
key: Ue.toString(),
|
|
1165
|
+
path: [...v.value, Ue.toString()],
|
|
1166
1166
|
value: we,
|
|
1167
|
-
...
|
|
1168
|
-
editable: t.data.editable && !
|
|
1167
|
+
...m,
|
|
1168
|
+
editable: t.data.editable && !D,
|
|
1169
1169
|
creating: !1
|
|
1170
|
-
})) : (
|
|
1171
|
-
key:
|
|
1172
|
-
path: [...
|
|
1173
|
-
value:
|
|
1174
|
-
...
|
|
1175
|
-
editable: t.data.editable && !
|
|
1170
|
+
})) : (St($) && (z = Object.keys($).slice(0, o.value).map((ne) => ({
|
|
1171
|
+
key: ne,
|
|
1172
|
+
path: [...v.value, ne],
|
|
1173
|
+
value: $[ne],
|
|
1174
|
+
...m,
|
|
1175
|
+
editable: t.data.editable && !D,
|
|
1176
1176
|
creating: !1
|
|
1177
|
-
})), l.value !== "custom" && (z =
|
|
1178
|
-
}),
|
|
1179
|
-
te(() =>
|
|
1180
|
-
if (
|
|
1181
|
-
const { value:
|
|
1182
|
-
j.value =
|
|
1177
|
+
})), l.value !== "custom" && (z = jt(z))), z === t.data.value ? [] : z);
|
|
1178
|
+
}), I = k(() => R.value.length > 0), S = V(), N = at(), { isHovering: A } = _o(() => S.value), { editingType: w, editing: P, editingText: j, toggleEditing: K, nodeId: G } = Qn();
|
|
1179
|
+
te(() => P.value, ($) => {
|
|
1180
|
+
if ($) {
|
|
1181
|
+
const { value: m } = s.value;
|
|
1182
|
+
j.value = Vn(m, s.value.customType);
|
|
1183
1183
|
} else
|
|
1184
1184
|
j.value = "";
|
|
1185
1185
|
});
|
|
1186
1186
|
async function O() {
|
|
1187
|
-
const
|
|
1188
|
-
await
|
|
1189
|
-
path:
|
|
1187
|
+
const $ = t.data;
|
|
1188
|
+
await E.value.editInspectorState({
|
|
1189
|
+
path: v.value,
|
|
1190
1190
|
inspectorId: N.value.inspectorId,
|
|
1191
|
-
type:
|
|
1191
|
+
type: $.stateType,
|
|
1192
1192
|
nodeId: G.value,
|
|
1193
1193
|
state: {
|
|
1194
1194
|
newKey: null,
|
|
1195
1195
|
type: w.value,
|
|
1196
1196
|
value: ze(j.value, s.value.customType)
|
|
1197
1197
|
}
|
|
1198
|
-
}), await
|
|
1198
|
+
}), await E.value.sendInspectorState(N.value.inspectorId), K();
|
|
1199
1199
|
}
|
|
1200
|
-
const { addNewProp: _, draftingNewProp: H, resetDrafting:
|
|
1201
|
-
function ae(
|
|
1202
|
-
const
|
|
1203
|
-
p.value.includes(
|
|
1200
|
+
const { addNewProp: _, draftingNewProp: H, resetDrafting: oe } = to();
|
|
1201
|
+
function ae($) {
|
|
1202
|
+
const m = `${t.depth}-${t.index}`;
|
|
1203
|
+
p.value.includes(m) || i(m), _($, s.value.value);
|
|
1204
1204
|
}
|
|
1205
1205
|
async function W() {
|
|
1206
|
-
const
|
|
1207
|
-
await
|
|
1208
|
-
path: [...
|
|
1206
|
+
const $ = t.data;
|
|
1207
|
+
await E.value.editInspectorState({
|
|
1208
|
+
path: [...v.value, H.value.key],
|
|
1209
1209
|
inspectorId: N.value.inspectorId,
|
|
1210
|
-
type:
|
|
1210
|
+
type: $.stateType,
|
|
1211
1211
|
nodeId: G.value,
|
|
1212
1212
|
state: {
|
|
1213
1213
|
newKey: H.value.key,
|
|
1214
1214
|
type: typeof ze(H.value.value),
|
|
1215
1215
|
value: ze(H.value.value)
|
|
1216
1216
|
}
|
|
1217
|
-
}), await
|
|
1217
|
+
}), await E.value.sendInspectorState(N.value.inspectorId), oe();
|
|
1218
1218
|
}
|
|
1219
|
-
return (
|
|
1219
|
+
return ($, m) => (c(), h("div", null, [
|
|
1220
1220
|
u("div", {
|
|
1221
1221
|
ref_key: "containerRef",
|
|
1222
1222
|
ref: S,
|
|
1223
|
-
class: ie(["font-state-field flex items-center text-3.5", [
|
|
1224
|
-
style:
|
|
1225
|
-
onClick:
|
|
1223
|
+
class: ie(["font-state-field flex items-center text-3.5", [I.value && "cursor-pointer hover:bg-active"]]),
|
|
1224
|
+
style: Te({ paddingLeft: `${e.depth * 15 + 4}px` }),
|
|
1225
|
+
onClick: m[1] || (m[1] = (C) => a(i)(`${e.depth}-${e.index}`))
|
|
1226
1226
|
}, [
|
|
1227
|
-
|
|
1227
|
+
I.value ? (c(), B(st, {
|
|
1228
1228
|
key: 0,
|
|
1229
1229
|
value: a(p).includes(`${e.depth}-${e.index}`)
|
|
1230
|
-
}, null, 8, ["value"])) : (c(), h("span",
|
|
1231
|
-
u("span",
|
|
1232
|
-
|
|
1233
|
-
a(
|
|
1230
|
+
}, null, 8, ["value"])) : (c(), h("span", So)),
|
|
1231
|
+
u("span", To, re(d.value), 1),
|
|
1232
|
+
m[5] || (m[5] = u("span", { mx1: "" }, ":", -1)),
|
|
1233
|
+
a(P) ? (c(), B(qe, {
|
|
1234
1234
|
key: 2,
|
|
1235
1235
|
modelValue: a(j),
|
|
1236
|
-
"onUpdate:modelValue":
|
|
1236
|
+
"onUpdate:modelValue": m[0] || (m[0] = (C) => Ke(j) ? j.value = C : null),
|
|
1237
1237
|
class: "mr-1",
|
|
1238
1238
|
"custom-type": s.value.customType,
|
|
1239
1239
|
onCancel: a(K),
|
|
@@ -1245,21 +1245,21 @@ const yo = { class: "flex pl5px" }, bo = { class: "w160px py5px" }, _o = /* @__P
|
|
|
1245
1245
|
q(u("span", {
|
|
1246
1246
|
class: "flex",
|
|
1247
1247
|
innerHTML: g.value
|
|
1248
|
-
}, null, 8,
|
|
1248
|
+
}, null, 8, Eo), [
|
|
1249
1249
|
[a(J), T.value]
|
|
1250
1250
|
])
|
|
1251
1251
|
], 2),
|
|
1252
|
-
|
|
1252
|
+
b(Io, {
|
|
1253
1253
|
hovering: a(A),
|
|
1254
|
-
"disable-edit": a(N).disableEdit || a(
|
|
1254
|
+
"disable-edit": a(N).disableEdit || a(P),
|
|
1255
1255
|
data: e.data,
|
|
1256
1256
|
depth: e.depth,
|
|
1257
1257
|
onEnableEditInput: a(K),
|
|
1258
1258
|
onAddNewProp: ae
|
|
1259
1259
|
}, null, 8, ["hovering", "disable-edit", "data", "depth", "onEnableEditInput"])
|
|
1260
1260
|
], 6),
|
|
1261
|
-
|
|
1262
|
-
|
|
1261
|
+
I.value && a(p).includes(`${e.depth}-${e.index}`) ? (c(), h("div", Vo, [
|
|
1262
|
+
b(tn, {
|
|
1263
1263
|
data: R.value,
|
|
1264
1264
|
depth: e.depth,
|
|
1265
1265
|
index: e.index
|
|
@@ -1269,10 +1269,10 @@ const yo = { class: "flex pl5px" }, bo = { class: "w160px py5px" }, _o = /* @__P
|
|
|
1269
1269
|
flat: "",
|
|
1270
1270
|
size: "mini",
|
|
1271
1271
|
class: "ml-4",
|
|
1272
|
-
onClick:
|
|
1272
|
+
onClick: m[2] || (m[2] = (C) => o.value += Dt)
|
|
1273
1273
|
}, {
|
|
1274
1274
|
icon: M(() => [
|
|
1275
|
-
|
|
1275
|
+
b(a(ue), { icon: "i-material-symbols-more-horiz" })
|
|
1276
1276
|
]),
|
|
1277
1277
|
_: 1
|
|
1278
1278
|
})), [
|
|
@@ -1280,28 +1280,28 @@ const yo = { class: "flex pl5px" }, bo = { class: "w160px py5px" }, _o = /* @__P
|
|
|
1280
1280
|
]) : U("", !0),
|
|
1281
1281
|
a(H).enable ? (c(), h("div", {
|
|
1282
1282
|
key: 1,
|
|
1283
|
-
style:
|
|
1283
|
+
style: Te({ paddingLeft: `${(e.depth + 1) * 15 + 4}px` })
|
|
1284
1284
|
}, [
|
|
1285
|
-
u("span",
|
|
1286
|
-
|
|
1285
|
+
u("span", No, [
|
|
1286
|
+
b(qe, {
|
|
1287
1287
|
modelValue: a(H).key,
|
|
1288
|
-
"onUpdate:modelValue":
|
|
1288
|
+
"onUpdate:modelValue": m[3] || (m[3] = (C) => a(H).key = C),
|
|
1289
1289
|
"show-actions": !1
|
|
1290
1290
|
}, null, 8, ["modelValue"])
|
|
1291
1291
|
]),
|
|
1292
|
-
|
|
1293
|
-
|
|
1292
|
+
m[6] || (m[6] = u("span", { "mx-1": "" }, ":", -1)),
|
|
1293
|
+
b(qe, {
|
|
1294
1294
|
modelValue: a(H).value,
|
|
1295
|
-
"onUpdate:modelValue":
|
|
1295
|
+
"onUpdate:modelValue": m[4] || (m[4] = (C) => a(H).value = C),
|
|
1296
1296
|
"auto-focus": !1,
|
|
1297
|
-
onCancel: a(
|
|
1297
|
+
onCancel: a(oe),
|
|
1298
1298
|
onSubmit: W
|
|
1299
1299
|
}, null, 8, ["modelValue", "onCancel"])
|
|
1300
1300
|
], 4)) : U("", !0)
|
|
1301
1301
|
])) : U("", !0)
|
|
1302
1302
|
]));
|
|
1303
1303
|
}
|
|
1304
|
-
}),
|
|
1304
|
+
}), Ro = /* @__PURE__ */ _e(Ao, [["__scopeId", "data-v-1662487a"]]), tn = /* @__PURE__ */ Z({
|
|
1305
1305
|
__name: "ChildStateViewer",
|
|
1306
1306
|
props: {
|
|
1307
1307
|
data: {},
|
|
@@ -1312,7 +1312,7 @@ const yo = { class: "flex pl5px" }, bo = { class: "w160px py5px" }, _o = /* @__P
|
|
|
1312
1312
|
setup(e) {
|
|
1313
1313
|
return (t, o) => (c(), h("div", null, [
|
|
1314
1314
|
(c(!0), h(se, null, ce(e.data, (n, l) => (c(), h("div", { key: l }, [
|
|
1315
|
-
|
|
1315
|
+
b(Ro, {
|
|
1316
1316
|
data: n,
|
|
1317
1317
|
depth: e.depth + 1,
|
|
1318
1318
|
index: `${e.index}-${l}`,
|
|
@@ -1321,14 +1321,14 @@ const yo = { class: "flex pl5px" }, bo = { class: "w160px py5px" }, _o = /* @__P
|
|
|
1321
1321
|
]))), 128))
|
|
1322
1322
|
]));
|
|
1323
1323
|
}
|
|
1324
|
-
}),
|
|
1324
|
+
}), Do = ["onClick"], Po = {
|
|
1325
1325
|
key: 1,
|
|
1326
1326
|
pl5: ""
|
|
1327
|
-
},
|
|
1327
|
+
}, Lo = {
|
|
1328
1328
|
"font-state-field": "",
|
|
1329
1329
|
"text-3.5": "",
|
|
1330
1330
|
"text-hex-a3a3a3": ""
|
|
1331
|
-
},
|
|
1331
|
+
}, Mo = { key: 0 }, He = /* @__PURE__ */ Z({
|
|
1332
1332
|
__name: "RootStateViewer",
|
|
1333
1333
|
props: {
|
|
1334
1334
|
data: {},
|
|
@@ -1346,49 +1346,49 @@ const yo = { class: "flex pl5px" }, bo = { class: "w160px py5px" }, _o = /* @__P
|
|
|
1346
1346
|
disableEdit: t.disableEdit
|
|
1347
1347
|
};
|
|
1348
1348
|
}
|
|
1349
|
-
const { context: n } =
|
|
1350
|
-
|
|
1349
|
+
const { context: n } = Xn(o());
|
|
1350
|
+
tt(() => {
|
|
1351
1351
|
n.value = o();
|
|
1352
1352
|
});
|
|
1353
|
-
const { expanded: l, toggleExpanded: s } =
|
|
1353
|
+
const { expanded: l, toggleExpanded: s } = it(t.expandedStateId);
|
|
1354
1354
|
return (p, i) => (c(), h("div", null, [
|
|
1355
|
-
(c(!0), h(se, null, ce(e.data, (r, f,
|
|
1355
|
+
(c(!0), h(se, null, ce(e.data, (r, f, v) => (c(), h("div", { key: v }, [
|
|
1356
1356
|
u("div", {
|
|
1357
1357
|
class: ie(["flex items-center", [r?.length && "cursor-pointer hover:bg-active"]]),
|
|
1358
|
-
onClick: (d) => a(s)(`${
|
|
1358
|
+
onClick: (d) => a(s)(`${v}`)
|
|
1359
1359
|
}, [
|
|
1360
|
-
r?.length ? (c(), B(
|
|
1360
|
+
r?.length ? (c(), B(st, {
|
|
1361
1361
|
key: 0,
|
|
1362
|
-
value: a(l).includes(`${
|
|
1363
|
-
}, null, 8, ["value"])) : (c(), h("span",
|
|
1364
|
-
u("span",
|
|
1365
|
-
], 10,
|
|
1366
|
-
r?.length && a(l).includes(`${
|
|
1367
|
-
|
|
1362
|
+
value: a(l).includes(`${v}`)
|
|
1363
|
+
}, null, 8, ["value"])) : (c(), h("span", Po)),
|
|
1364
|
+
u("span", Lo, re(f), 1)
|
|
1365
|
+
], 10, Do),
|
|
1366
|
+
r?.length && a(l).includes(`${v}`) ? (c(), h("div", Mo, [
|
|
1367
|
+
b(tn, {
|
|
1368
1368
|
data: r,
|
|
1369
|
-
index: `${
|
|
1369
|
+
index: `${v}`,
|
|
1370
1370
|
"expanded-state-id": e.expandedStateId
|
|
1371
1371
|
}, null, 8, ["data", "index", "expanded-state-id"])
|
|
1372
1372
|
])) : U("", !0)
|
|
1373
1373
|
]))), 128))
|
|
1374
1374
|
]));
|
|
1375
1375
|
}
|
|
1376
|
-
}),
|
|
1376
|
+
}), Ho = { class: "p3" }, Oo = ["onClick"], Uo = {
|
|
1377
1377
|
key: 0,
|
|
1378
1378
|
class: "absolute left-5px top-4.5 h10 w0 border-l-2",
|
|
1379
1379
|
border: "solid gray2"
|
|
1380
|
-
},
|
|
1380
|
+
}, jo = { class: "h-full flex items-center truncate pl5" }, zo = {
|
|
1381
1381
|
absolute: "",
|
|
1382
1382
|
"top-5": "",
|
|
1383
1383
|
pr2: "",
|
|
1384
1384
|
"text-3": "",
|
|
1385
1385
|
op40: ""
|
|
1386
|
-
},
|
|
1386
|
+
}, Bo = {
|
|
1387
1387
|
pl2: "",
|
|
1388
1388
|
op30: ""
|
|
1389
|
-
},
|
|
1389
|
+
}, Zo = /* @__PURE__ */ Z({
|
|
1390
1390
|
__name: "EventList",
|
|
1391
|
-
props: /* @__PURE__ */
|
|
1391
|
+
props: /* @__PURE__ */ Re({
|
|
1392
1392
|
data: {}
|
|
1393
1393
|
}, {
|
|
1394
1394
|
modelValue: {},
|
|
@@ -1396,7 +1396,7 @@ const yo = { class: "flex pl5px" }, bo = { class: "w160px py5px" }, _o = /* @__P
|
|
|
1396
1396
|
}),
|
|
1397
1397
|
emits: ["update:modelValue"],
|
|
1398
1398
|
setup(e) {
|
|
1399
|
-
const t = e, o =
|
|
1399
|
+
const t = e, o = Xe(e, "modelValue"), n = ["#3e5770", "#42b983", "#0098c4"], l = V(null), s = k(() => {
|
|
1400
1400
|
let p = -1, i = 0;
|
|
1401
1401
|
return t.data.forEach((r, f) => {
|
|
1402
1402
|
(r.groupId !== i || p === -1) && (p = (p + 1) % n.length), i = r.groupId ?? i, r.id = f, r.color = n[p];
|
|
@@ -1404,8 +1404,8 @@ const yo = { class: "flex pl5px" }, bo = { class: "w160px py5px" }, _o = /* @__P
|
|
|
1404
1404
|
});
|
|
1405
1405
|
return te(() => s.value.length, (p) => {
|
|
1406
1406
|
l.value?.scrollToItem(p - 1);
|
|
1407
|
-
}, { flush: "post" }), (p, i) => (c(), h("div",
|
|
1408
|
-
|
|
1407
|
+
}, { flush: "post" }), (p, i) => (c(), h("div", Ho, [
|
|
1408
|
+
b(a(Rn), {
|
|
1409
1409
|
ref_key: "scrollerRef",
|
|
1410
1410
|
ref: l,
|
|
1411
1411
|
items: s.value,
|
|
@@ -1419,47 +1419,47 @@ const yo = { class: "flex pl5px" }, bo = { class: "w160px py5px" }, _o = /* @__P
|
|
|
1419
1419
|
default: M(({ item: r }) => [
|
|
1420
1420
|
u("div", {
|
|
1421
1421
|
class: "relative mb7 h6 cursor-pointer",
|
|
1422
|
-
style:
|
|
1422
|
+
style: Te({ color: o.value === r.id ? r.color : "" }),
|
|
1423
1423
|
onClick: (f) => o.value = r.id
|
|
1424
1424
|
}, [
|
|
1425
1425
|
u("span", {
|
|
1426
1426
|
class: "absolute top-1.5 inline-block h3 w3 b rounded-50%",
|
|
1427
|
-
style:
|
|
1427
|
+
style: Te({ border: `3px solid ${r.color}` })
|
|
1428
1428
|
}, null, 4),
|
|
1429
|
-
r.id < e.data.length - 1 ? (c(), h("span",
|
|
1430
|
-
u("p",
|
|
1431
|
-
u("span",
|
|
1429
|
+
r.id < e.data.length - 1 ? (c(), h("span", Uo)) : U("", !0),
|
|
1430
|
+
u("p", jo, [
|
|
1431
|
+
u("span", zo, "[" + re(a(Ln)(r.time)) + "]", 1),
|
|
1432
1432
|
Q(" " + re(r.title) + " ", 1),
|
|
1433
|
-
u("span",
|
|
1433
|
+
u("span", Bo, re(r.subtitle), 1)
|
|
1434
1434
|
])
|
|
1435
|
-
], 12,
|
|
1435
|
+
], 12, Oo)
|
|
1436
1436
|
]),
|
|
1437
1437
|
_: 1
|
|
1438
1438
|
}, 8, ["items"])
|
|
1439
1439
|
]));
|
|
1440
1440
|
}
|
|
1441
|
-
}),
|
|
1441
|
+
}), Fo = { class: "relative h-full flex flex-col" }, Ko = {
|
|
1442
1442
|
key: 1,
|
|
1443
1443
|
class: "flex-1 overflow-hidden"
|
|
1444
|
-
},
|
|
1444
|
+
}, Go = {
|
|
1445
1445
|
"h-full": "",
|
|
1446
1446
|
"select-none": "",
|
|
1447
1447
|
"overflow-scroll": "",
|
|
1448
1448
|
class: "no-scrollbar"
|
|
1449
|
-
},
|
|
1449
|
+
}, Wo = {
|
|
1450
1450
|
"h-full": "",
|
|
1451
1451
|
"overflow-scroll": "",
|
|
1452
1452
|
class: "no-scrollbar"
|
|
1453
|
-
},
|
|
1453
|
+
}, qo = {
|
|
1454
1454
|
key: 3,
|
|
1455
1455
|
class: "absolute right-3 top-12 flex items-center justify-end b-1 border-base rounded-1 b-solid px2 py1"
|
|
1456
|
-
},
|
|
1456
|
+
}, Jo = { class: "flex items-center gap-2 px-1" }, Yo = {
|
|
1457
1457
|
key: 0,
|
|
1458
1458
|
class: "recording recording-btn bg-[#ef4444]"
|
|
1459
|
-
},
|
|
1459
|
+
}, Xo = {
|
|
1460
1460
|
key: 1,
|
|
1461
1461
|
class: "recording-btn bg-black op70 dark:bg-white hover:op100"
|
|
1462
|
-
},
|
|
1462
|
+
}, Qo = { class: "flex items-center gap1" }, el = /* @__PURE__ */ Z({
|
|
1463
1463
|
__name: "index",
|
|
1464
1464
|
props: {
|
|
1465
1465
|
layerIds: {},
|
|
@@ -1470,9 +1470,9 @@ const yo = { class: "flex pl5px" }, bo = { class: "w160px py5px" }, _o = /* @__P
|
|
|
1470
1470
|
switcherVisible: { type: Boolean, default: !0 }
|
|
1471
1471
|
},
|
|
1472
1472
|
setup(e, { expose: t }) {
|
|
1473
|
-
const o = e, { expanded: n } =
|
|
1473
|
+
const o = e, { expanded: n } = Ce("timeline-state");
|
|
1474
1474
|
n.value = ["0", "1"];
|
|
1475
|
-
const l =
|
|
1475
|
+
const l = V([]), s = V(/* @__PURE__ */ new Map()), p = V(0), i = Ut(), r = k(() => i.timelineLayersState.value?.[o.pluginId]), f = k(() => l.value[p.value] ?? null), v = k(() => r.value ? "Stop recording" : "Start recording"), d = k(() => {
|
|
1476
1476
|
const A = [];
|
|
1477
1477
|
for (const w in f.value?.data)
|
|
1478
1478
|
A.push({
|
|
@@ -1482,36 +1482,36 @@ const yo = { class: "flex pl5px" }, bo = { class: "w160px py5px" }, _o = /* @__P
|
|
|
1482
1482
|
value: f.value.data[w]
|
|
1483
1483
|
});
|
|
1484
1484
|
return A;
|
|
1485
|
-
}), g =
|
|
1485
|
+
}), g = k(() => {
|
|
1486
1486
|
const A = f.value?.groupId, w = s.value.get(A);
|
|
1487
1487
|
if (w) {
|
|
1488
|
-
const
|
|
1488
|
+
const P = w[w.length - 1]?.time - (w[0]?.time ?? 0);
|
|
1489
1489
|
return [{
|
|
1490
1490
|
key: "events",
|
|
1491
1491
|
type: "events",
|
|
1492
1492
|
editable: !1,
|
|
1493
1493
|
value: w.length
|
|
1494
|
-
},
|
|
1494
|
+
}, P && {
|
|
1495
1495
|
key: "duration",
|
|
1496
1496
|
type: "duration",
|
|
1497
1497
|
editable: !1,
|
|
1498
|
-
value: `${
|
|
1498
|
+
value: `${P}ms`
|
|
1499
1499
|
}].filter(Boolean);
|
|
1500
1500
|
}
|
|
1501
|
-
}), T =
|
|
1501
|
+
}), T = k(() => ({ "Event Info": d.value, ...g.value && { "Group Info": g.value } }));
|
|
1502
1502
|
function R(A) {
|
|
1503
1503
|
const w = A.groupId;
|
|
1504
1504
|
w !== void 0 && (s.value.set(w, s.value.get(w) ?? []), s.value.get(w)?.push(A));
|
|
1505
1505
|
}
|
|
1506
|
-
function
|
|
1506
|
+
function I(A) {
|
|
1507
1507
|
const w = le(A);
|
|
1508
1508
|
if (!w)
|
|
1509
1509
|
return;
|
|
1510
|
-
const { layerId:
|
|
1511
|
-
o.layerIds.includes(
|
|
1510
|
+
const { layerId: P, event: j } = w;
|
|
1511
|
+
o.layerIds.includes(P) && (l.value.push(j), R(j));
|
|
1512
1512
|
}
|
|
1513
|
-
|
|
1514
|
-
|
|
1513
|
+
E.functions.on(X.TIMELINE_EVENT_UPDATED, I), Ie(() => {
|
|
1514
|
+
E.functions.off(X.TIMELINE_EVENT_UPDATED, I);
|
|
1515
1515
|
});
|
|
1516
1516
|
function S() {
|
|
1517
1517
|
l.value = [], s.value.clear();
|
|
@@ -1520,44 +1520,44 @@ const yo = { class: "flex pl5px" }, bo = { class: "w160px py5px" }, _o = /* @__P
|
|
|
1520
1520
|
clear: S
|
|
1521
1521
|
});
|
|
1522
1522
|
function N() {
|
|
1523
|
-
|
|
1523
|
+
E.value.updateTimelineLayersState({
|
|
1524
1524
|
[o.pluginId]: !r.value
|
|
1525
1525
|
});
|
|
1526
1526
|
}
|
|
1527
|
-
return (A, w) => (c(), h("div",
|
|
1528
|
-
e.headerVisible ? (c(), B(
|
|
1527
|
+
return (A, w) => (c(), h("div", Fo, [
|
|
1528
|
+
e.headerVisible ? (c(), B(Ee, {
|
|
1529
1529
|
key: 0,
|
|
1530
1530
|
"doc-link": e.docLink,
|
|
1531
1531
|
"github-repo-link": e.githubRepoLink
|
|
1532
1532
|
}, {
|
|
1533
1533
|
default: M(() => [
|
|
1534
|
-
|
|
1534
|
+
b(Ve)
|
|
1535
1535
|
]),
|
|
1536
1536
|
_: 1
|
|
1537
1537
|
}, 8, ["doc-link", "github-repo-link"])) : U("", !0),
|
|
1538
|
-
l.value.length ? (c(), h("div",
|
|
1539
|
-
|
|
1538
|
+
l.value.length ? (c(), h("div", Ko, [
|
|
1539
|
+
b(a(Pe), { class: "h-full" }, {
|
|
1540
1540
|
default: M(() => [
|
|
1541
|
-
|
|
1541
|
+
b(a(de), {
|
|
1542
1542
|
border: "r base",
|
|
1543
1543
|
size: "40",
|
|
1544
1544
|
"h-full": ""
|
|
1545
1545
|
}, {
|
|
1546
1546
|
default: M(() => [
|
|
1547
|
-
u("div",
|
|
1548
|
-
|
|
1547
|
+
u("div", Go, [
|
|
1548
|
+
b(Zo, {
|
|
1549
1549
|
modelValue: p.value,
|
|
1550
|
-
"onUpdate:modelValue": w[0] || (w[0] = (
|
|
1550
|
+
"onUpdate:modelValue": w[0] || (w[0] = (P) => p.value = P),
|
|
1551
1551
|
data: l.value
|
|
1552
1552
|
}, null, 8, ["modelValue", "data"])
|
|
1553
1553
|
])
|
|
1554
1554
|
]),
|
|
1555
1555
|
_: 1
|
|
1556
1556
|
}),
|
|
1557
|
-
|
|
1557
|
+
b(a(de), { size: "60" }, {
|
|
1558
1558
|
default: M(() => [
|
|
1559
|
-
u("div",
|
|
1560
|
-
|
|
1559
|
+
u("div", Wo, [
|
|
1560
|
+
b(He, {
|
|
1561
1561
|
class: "p3",
|
|
1562
1562
|
data: T.value,
|
|
1563
1563
|
"node-id": "",
|
|
@@ -1572,7 +1572,7 @@ const yo = { class: "flex pl5px" }, bo = { class: "w160px py5px" }, _o = /* @__P
|
|
|
1572
1572
|
]),
|
|
1573
1573
|
_: 1
|
|
1574
1574
|
})
|
|
1575
|
-
])) : (c(), B(
|
|
1575
|
+
])) : (c(), B(Se, {
|
|
1576
1576
|
key: 2,
|
|
1577
1577
|
class: "flex-1"
|
|
1578
1578
|
}, {
|
|
@@ -1581,17 +1581,17 @@ const yo = { class: "flex pl5px" }, bo = { class: "w160px py5px" }, _o = /* @__P
|
|
|
1581
1581
|
])]),
|
|
1582
1582
|
_: 1
|
|
1583
1583
|
})),
|
|
1584
|
-
e.switcherVisible ? (c(), h("div",
|
|
1585
|
-
u("div",
|
|
1584
|
+
e.switcherVisible ? (c(), h("div", qo, [
|
|
1585
|
+
u("div", Jo, [
|
|
1586
1586
|
q((c(), h("div", {
|
|
1587
1587
|
class: "flex items-center gap1",
|
|
1588
1588
|
onClick: N
|
|
1589
1589
|
}, [
|
|
1590
|
-
r.value ? (c(), h("span",
|
|
1590
|
+
r.value ? (c(), h("span", Yo)) : (c(), h("span", Xo))
|
|
1591
1591
|
])), [
|
|
1592
1592
|
[
|
|
1593
1593
|
a(J),
|
|
1594
|
-
{ content:
|
|
1594
|
+
{ content: v.value },
|
|
1595
1595
|
void 0,
|
|
1596
1596
|
{ "bottom-end": !0 }
|
|
1597
1597
|
]
|
|
@@ -1600,7 +1600,7 @@ const yo = { class: "flex pl5px" }, bo = { class: "w160px py5px" }, _o = /* @__P
|
|
|
1600
1600
|
class: "flex items-center gap1",
|
|
1601
1601
|
onClick: S
|
|
1602
1602
|
}, [
|
|
1603
|
-
|
|
1603
|
+
b(a(Fe), {
|
|
1604
1604
|
name: "baseline-delete",
|
|
1605
1605
|
"cursor-pointer": "",
|
|
1606
1606
|
"text-xl": "",
|
|
@@ -1615,8 +1615,8 @@ const yo = { class: "flex pl5px" }, bo = { class: "w160px py5px" }, _o = /* @__P
|
|
|
1615
1615
|
{ "bottom-end": !0 }
|
|
1616
1616
|
]
|
|
1617
1617
|
]),
|
|
1618
|
-
q((c(), h("div",
|
|
1619
|
-
|
|
1618
|
+
q((c(), h("div", Qo, [
|
|
1619
|
+
b(a(Fe), {
|
|
1620
1620
|
name: "baseline-tips-and-updates",
|
|
1621
1621
|
"cursor-pointer": "",
|
|
1622
1622
|
"text-xl": "",
|
|
@@ -1635,72 +1635,55 @@ const yo = { class: "flex pl5px" }, bo = { class: "w160px py5px" }, _o = /* @__P
|
|
|
1635
1635
|
])) : U("", !0)
|
|
1636
1636
|
]));
|
|
1637
1637
|
}
|
|
1638
|
-
}),
|
|
1639
|
-
function
|
|
1640
|
-
const e =
|
|
1638
|
+
}), dt = /* @__PURE__ */ _e(el, [["__scopeId", "data-v-3dbcfd2a"]]);
|
|
1639
|
+
function y1() {
|
|
1640
|
+
const e = V([]), t = V([]);
|
|
1641
1641
|
function o(l) {
|
|
1642
1642
|
t.value = l, l.length < e.value.length && (e.value = []), t.value.forEach((s) => {
|
|
1643
1643
|
n(s);
|
|
1644
1644
|
});
|
|
1645
1645
|
}
|
|
1646
|
-
|
|
1647
|
-
|
|
1646
|
+
De(() => {
|
|
1647
|
+
E.value.getCustomInspector().then((l) => {
|
|
1648
1648
|
t.value = l, t.value.forEach((s) => {
|
|
1649
1649
|
n(s);
|
|
1650
1650
|
});
|
|
1651
|
-
}),
|
|
1651
|
+
}), E.functions.on(X.INSPECTOR_UPDATED, o);
|
|
1652
1652
|
});
|
|
1653
1653
|
function n(l) {
|
|
1654
1654
|
e.value.some((s) => s.id === l.id) || e.value.push(l);
|
|
1655
1655
|
}
|
|
1656
1656
|
return Ie(() => {
|
|
1657
|
-
|
|
1657
|
+
E.functions.off(X.INSPECTOR_UPDATED, o);
|
|
1658
1658
|
}), {
|
|
1659
1659
|
registeredInspector: e,
|
|
1660
1660
|
register: n
|
|
1661
1661
|
};
|
|
1662
1662
|
}
|
|
1663
|
-
const
|
|
1664
|
-
function Xo() {
|
|
1665
|
-
const e = E("");
|
|
1666
|
-
return ye(Xt, e), {
|
|
1667
|
-
selected: e
|
|
1668
|
-
};
|
|
1669
|
-
}
|
|
1670
|
-
function Qo() {
|
|
1671
|
-
const e = ge(Xt, E(""));
|
|
1672
|
-
function t(o) {
|
|
1673
|
-
e.value = o;
|
|
1674
|
-
}
|
|
1675
|
-
return {
|
|
1676
|
-
selected: e,
|
|
1677
|
-
select: t
|
|
1678
|
-
};
|
|
1679
|
-
}
|
|
1680
|
-
const el = ["onClick", "onDblclick", "onMouseover"], tl = {
|
|
1663
|
+
const tl = ["onClick", "onDblclick", "onMouseover"], nl = {
|
|
1681
1664
|
key: 1,
|
|
1682
1665
|
pl5: ""
|
|
1683
|
-
},
|
|
1666
|
+
}, ol = {
|
|
1684
1667
|
"font-state-field": "",
|
|
1685
1668
|
"text-3.5": ""
|
|
1686
|
-
},
|
|
1669
|
+
}, ll = {
|
|
1687
1670
|
key: 0,
|
|
1688
1671
|
class: "text-gray-400 dark:text-gray-600 group-hover:text-white group-hover:op50 [.active_&]:op50 [.active_&]:text-white!"
|
|
1689
|
-
},
|
|
1672
|
+
}, sl = {
|
|
1690
1673
|
"group-hover:text-white": "",
|
|
1691
1674
|
class: "ws-nowrap [.active_&]:text-white"
|
|
1692
|
-
},
|
|
1675
|
+
}, al = {
|
|
1693
1676
|
key: 2,
|
|
1694
1677
|
class: "text-gray-400 dark:text-gray-600 group-hover:text-white group-hover:op50 [.active_&]:op50 [.active_&]:text-white!"
|
|
1695
|
-
},
|
|
1678
|
+
}, il = {
|
|
1696
1679
|
key: 2,
|
|
1697
1680
|
class: "ml-2 rounded-sm bg-blue-400 px-1 text-[0.75rem] leading-snug dark:bg-blue-800"
|
|
1698
|
-
},
|
|
1681
|
+
}, rl = {
|
|
1699
1682
|
key: 3,
|
|
1700
1683
|
class: "ml-2 rounded-sm bg-gray-500 px-1 text-[0.75rem] leading-snug"
|
|
1701
|
-
},
|
|
1684
|
+
}, ul = { key: 0 }, Oe = /* @__PURE__ */ Z({
|
|
1702
1685
|
__name: "TreeViewer",
|
|
1703
|
-
props: /* @__PURE__ */
|
|
1686
|
+
props: /* @__PURE__ */ Re({
|
|
1704
1687
|
data: {},
|
|
1705
1688
|
depth: { default: 0 },
|
|
1706
1689
|
withTag: { type: Boolean, default: !1 }
|
|
@@ -1708,73 +1691,72 @@ const el = ["onClick", "onDblclick", "onMouseover"], tl = {
|
|
|
1708
1691
|
modelValue: {},
|
|
1709
1692
|
modelModifiers: {}
|
|
1710
1693
|
}),
|
|
1711
|
-
emits: /* @__PURE__ */
|
|
1694
|
+
emits: /* @__PURE__ */ Re(["hover", "leave"], ["update:modelValue"]),
|
|
1712
1695
|
setup(e, { emit: t }) {
|
|
1713
|
-
const o = t, n =
|
|
1714
|
-
Qo();
|
|
1696
|
+
const o = t, n = Xe(e, "modelValue"), { expanded: l, toggleExpanded: s } = it();
|
|
1715
1697
|
function p(r) {
|
|
1716
1698
|
return "name" in r && r?.name || "label" in r && r.label;
|
|
1717
1699
|
}
|
|
1718
1700
|
function i(r) {
|
|
1719
1701
|
n.value = r;
|
|
1720
1702
|
}
|
|
1721
|
-
return (r, f) => (c(!0), h(se, null, ce(e.data, (
|
|
1703
|
+
return (r, f) => (c(!0), h(se, null, ce(e.data, (v, d) => (c(), h("div", {
|
|
1722
1704
|
key: d,
|
|
1723
1705
|
class: ie({
|
|
1724
1706
|
"min-w-max": e.depth === 0
|
|
1725
1707
|
})
|
|
1726
1708
|
}, [
|
|
1727
1709
|
u("div", {
|
|
1728
|
-
class: ie(["group flex cursor-pointer items-center rounded-1 hover:bg-primary-300 hover:dark:bg-gray-600", { "bg-primary-600! active": n.value ===
|
|
1729
|
-
style:
|
|
1730
|
-
onClick: (g) => i(
|
|
1731
|
-
onDblclick: (g) => a(s)(
|
|
1732
|
-
onMouseover: () => o("hover",
|
|
1710
|
+
class: ie(["group flex cursor-pointer items-center rounded-1 hover:bg-primary-300 hover:dark:bg-gray-600", { "bg-primary-600! active": n.value === v.id }]),
|
|
1711
|
+
style: Te({ paddingLeft: `${15 * e.depth + 4}px` }),
|
|
1712
|
+
onClick: (g) => i(v.id),
|
|
1713
|
+
onDblclick: (g) => a(s)(v.id),
|
|
1714
|
+
onMouseover: () => o("hover", v.id),
|
|
1733
1715
|
onMouseleave: f[0] || (f[0] = () => o("leave"))
|
|
1734
1716
|
}, [
|
|
1735
|
-
|
|
1717
|
+
v?.children?.length ? (c(), B(st, {
|
|
1736
1718
|
key: 0,
|
|
1737
|
-
value: a(l).includes(
|
|
1719
|
+
value: a(l).includes(v.id),
|
|
1738
1720
|
class: "[.active_&]:op20 group-hover:op20",
|
|
1739
|
-
onClick: he((g) => a(s)(
|
|
1740
|
-
}, null, 8, ["value", "onClick"])) : (c(), h("span",
|
|
1741
|
-
u("span",
|
|
1742
|
-
e.withTag ? (c(), h("span",
|
|
1743
|
-
u("span",
|
|
1744
|
-
(
|
|
1721
|
+
onClick: he((g) => a(s)(v.id), ["stop"])
|
|
1722
|
+
}, null, 8, ["value", "onClick"])) : (c(), h("span", nl)),
|
|
1723
|
+
u("span", ol, [
|
|
1724
|
+
e.withTag ? (c(), h("span", ll, "<")) : U("", !0),
|
|
1725
|
+
u("span", sl, re(p(v)), 1),
|
|
1726
|
+
(v.renderKey === 0 || v.renderKey) && v.renderKey !== a(Ht) ? (c(), h("span", {
|
|
1745
1727
|
key: 1,
|
|
1746
1728
|
class: ie(["text-xs opacity-50", {
|
|
1747
|
-
"opacity-100": n.value ===
|
|
1729
|
+
"opacity-100": n.value === v.id
|
|
1748
1730
|
}])
|
|
1749
1731
|
}, [
|
|
1750
1732
|
u("span", {
|
|
1751
|
-
class: ie([n.value ===
|
|
1733
|
+
class: ie([n.value === v.id ? "text-purple-200" : "text-purple-500"])
|
|
1752
1734
|
}, " key", 2),
|
|
1753
1735
|
f[4] || (f[4] = Q("=", -1)),
|
|
1754
|
-
u("span", null, re(
|
|
1736
|
+
u("span", null, re(v.renderKey), 1)
|
|
1755
1737
|
], 2)) : U("", !0),
|
|
1756
|
-
e.withTag ? (c(), h("span",
|
|
1738
|
+
e.withTag ? (c(), h("span", al, ">")) : U("", !0)
|
|
1757
1739
|
]),
|
|
1758
|
-
|
|
1740
|
+
v.isFragment ? q((c(), h("span", il, [...f[5] || (f[5] = [
|
|
1759
1741
|
Q(" fragment ", -1)
|
|
1760
1742
|
])])), [
|
|
1761
1743
|
[a(J), "Has multiple root DOM nodes"]
|
|
1762
1744
|
]) : U("", !0),
|
|
1763
|
-
|
|
1745
|
+
v.inactive ? q((c(), h("span", rl, [...f[6] || (f[6] = [
|
|
1764
1746
|
Q(" inactive ", -1)
|
|
1765
1747
|
])])), [
|
|
1766
1748
|
[a(J), "Currently inactive but not destroyed"]
|
|
1767
1749
|
]) : U("", !0),
|
|
1768
|
-
(c(!0), h(se, null, ce(
|
|
1750
|
+
(c(!0), h(se, null, ce(v.tags, (g, T) => (c(), B(Ft, {
|
|
1769
1751
|
key: T,
|
|
1770
1752
|
tag: g
|
|
1771
1753
|
}, null, 8, ["tag"]))), 128))
|
|
1772
|
-
], 46,
|
|
1773
|
-
|
|
1774
|
-
|
|
1754
|
+
], 46, tl),
|
|
1755
|
+
v?.children?.length && a(l).includes(v.id) ? (c(), h("div", ul, [
|
|
1756
|
+
b(Oe, {
|
|
1775
1757
|
modelValue: n.value,
|
|
1776
1758
|
"onUpdate:modelValue": f[1] || (f[1] = (g) => n.value = g),
|
|
1777
|
-
data:
|
|
1759
|
+
data: v?.children,
|
|
1778
1760
|
depth: e.depth + 1,
|
|
1779
1761
|
"with-tag": e.withTag,
|
|
1780
1762
|
onHover: f[2] || (f[2] = (g) => o("hover", g)),
|
|
@@ -1783,14 +1765,21 @@ const el = ["onClick", "onDblclick", "onMouseover"], tl = {
|
|
|
1783
1765
|
])) : U("", !0)
|
|
1784
1766
|
], 2))), 128));
|
|
1785
1767
|
}
|
|
1786
|
-
}),
|
|
1787
|
-
function
|
|
1768
|
+
}), Pt = 200;
|
|
1769
|
+
function cl() {
|
|
1788
1770
|
return {
|
|
1789
|
-
highlight: /* @__PURE__ */
|
|
1790
|
-
unhighlight: /* @__PURE__ */
|
|
1771
|
+
highlight: /* @__PURE__ */ At((o) => E.value.highlighComponent(o), Pt),
|
|
1772
|
+
unhighlight: /* @__PURE__ */ At(() => E.value.unhighlight(), Pt)
|
|
1791
1773
|
};
|
|
1792
1774
|
}
|
|
1793
|
-
const
|
|
1775
|
+
const dl = Symbol("SelectedSymbolKey");
|
|
1776
|
+
function pl() {
|
|
1777
|
+
const e = V("");
|
|
1778
|
+
return ye(dl, e), {
|
|
1779
|
+
selected: e
|
|
1780
|
+
};
|
|
1781
|
+
}
|
|
1782
|
+
const fl = { class: "absolute left-0 top-0 h-full w-full flex flex-col rounded-br-2.5 rounded-tr-2.5 bg-white p2 dark:bg-#121212" }, vl = { class: "flex-1 overflow-scroll text-3.5" }, ml = /* @__PURE__ */ Z({
|
|
1794
1783
|
__name: "RenderCode",
|
|
1795
1784
|
props: {
|
|
1796
1785
|
code: {}
|
|
@@ -1801,7 +1790,7 @@ const cl = { class: "absolute left-0 top-0 h-full w-full flex flex-col rounded-b
|
|
|
1801
1790
|
function n() {
|
|
1802
1791
|
o("close");
|
|
1803
1792
|
}
|
|
1804
|
-
return (l, s) => (c(), h("div",
|
|
1793
|
+
return (l, s) => (c(), h("div", fl, [
|
|
1805
1794
|
u("div", { class: "h-12 w-full flex items-center justify-between p-2" }, [
|
|
1806
1795
|
s[0] || (s[0] = u("span", { class: "font-500" }, "Render Code", -1)),
|
|
1807
1796
|
u("i", {
|
|
@@ -1809,179 +1798,186 @@ const cl = { class: "absolute left-0 top-0 h-full w-full flex flex-col rounded-b
|
|
|
1809
1798
|
onClick: n
|
|
1810
1799
|
})
|
|
1811
1800
|
]),
|
|
1812
|
-
u("div",
|
|
1813
|
-
|
|
1801
|
+
u("div", vl, [
|
|
1802
|
+
b(a(yn), {
|
|
1814
1803
|
code: e.code,
|
|
1815
1804
|
lang: "javascript"
|
|
1816
1805
|
}, null, 8, ["code"])
|
|
1817
1806
|
])
|
|
1818
1807
|
]));
|
|
1819
1808
|
}
|
|
1820
|
-
}),
|
|
1809
|
+
}), hl = { class: "h-full w-full" }, gl = { class: "no-scrollbar h-full flex select-none gap-2 overflow-scroll" }, Cl = {
|
|
1821
1810
|
key: 0,
|
|
1822
1811
|
class: "h-full flex flex-col p2"
|
|
1823
|
-
},
|
|
1812
|
+
}, xl = { class: "flex py2" }, yl = {
|
|
1824
1813
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1825
1814
|
style: { height: "1.1em", width: "1.1em" },
|
|
1826
1815
|
class: "op-80 hover:op-100",
|
|
1827
1816
|
viewBox: "0 0 24 24"
|
|
1828
|
-
},
|
|
1817
|
+
}, bl = { class: "h-full flex flex-col p2" }, _l = { class: "flex py2" }, wl = {
|
|
1829
1818
|
key: 0,
|
|
1830
1819
|
class: "font-state-field flex items-center px-1 text-3.5"
|
|
1831
|
-
},
|
|
1820
|
+
}, kl = {
|
|
1832
1821
|
"group-hover:text-white": "",
|
|
1833
1822
|
class: "max-w-40 of-hidden text-ellipsis ws-nowrap [.active_&]:text-white"
|
|
1834
|
-
},
|
|
1823
|
+
}, Il = { class: "flex items-center gap-2 px-1" }, $l = { class: "h-full flex flex-col items-center justify-center gap-2" }, Sl = { class: "block" }, Tl = {
|
|
1835
1824
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1836
1825
|
style: { height: "2em", width: "2em", opacity: "0.5", color: "#00dc82" },
|
|
1837
1826
|
class: "animate-fade",
|
|
1838
1827
|
viewBox: "0 0 24 24"
|
|
1839
|
-
},
|
|
1828
|
+
}, El = { class: "flex items-center justify-center" }, Ae = "components", Vl = /* @__PURE__ */ Z({
|
|
1840
1829
|
__name: "index",
|
|
1841
1830
|
emits: ["openInEditor", "onInspectComponentStart", "onInspectComponentEnd"],
|
|
1842
1831
|
setup(e, { emit: t }) {
|
|
1843
|
-
const o = t, n =
|
|
1844
|
-
function S(
|
|
1845
|
-
return x.push(
|
|
1832
|
+
const o = t, n = V(), l = V(!1), { width: s } = Co(n), p = k(() => l.value ? s.value < 700 : !1), i = V(""), r = V(""), [f, v] = /* @__PURE__ */ Xt(!0), d = V(!1), g = V(!1), T = V(""), R = V(!1), I = cl();
|
|
1833
|
+
function S(y, x = [], L = []) {
|
|
1834
|
+
return x.push(y.id), y.children?.length === 0 && L.push([...x]), Array.isArray(y.children) && y.children.forEach((F) => {
|
|
1846
1835
|
S(F, x, L);
|
|
1847
1836
|
}), x.pop(), L;
|
|
1848
1837
|
}
|
|
1849
|
-
function N(
|
|
1838
|
+
function N(y) {
|
|
1850
1839
|
const x = [], L = (F) => {
|
|
1851
1840
|
F?.forEach((ee) => {
|
|
1852
1841
|
x.push(ee), ee.children?.length && L(ee.children);
|
|
1853
1842
|
});
|
|
1854
1843
|
};
|
|
1855
|
-
return L(
|
|
1844
|
+
return L(y), x;
|
|
1856
1845
|
}
|
|
1857
|
-
function A(
|
|
1846
|
+
function A(y, x) {
|
|
1858
1847
|
const L = [];
|
|
1859
|
-
return
|
|
1848
|
+
return y?.forEach((F) => {
|
|
1860
1849
|
L.push(...F.slice(0, x + 1));
|
|
1861
1850
|
}), [...new Set(L)];
|
|
1862
1851
|
}
|
|
1863
|
-
function w(
|
|
1852
|
+
function w(y, x) {
|
|
1864
1853
|
const L = [];
|
|
1865
|
-
return
|
|
1854
|
+
return y.forEach((F) => {
|
|
1866
1855
|
const ee = F.indexOf(x);
|
|
1867
1856
|
ee !== -1 && L.push(...F.slice(0, ee + 1));
|
|
1868
1857
|
}), [...new Set(L)];
|
|
1869
1858
|
}
|
|
1870
|
-
const
|
|
1871
|
-
const
|
|
1859
|
+
const P = V([]), j = k(() => P.value?.length ? S(P.value?.[0]) : []), K = k(() => N(P.value)), G = k(() => K.value.map((y) => y.id)), O = V({}), _ = V(""), H = k(() => {
|
|
1860
|
+
const y = [], x = (L) => {
|
|
1872
1861
|
L.forEach((F) => {
|
|
1873
|
-
F.id === _.value &&
|
|
1862
|
+
F.id === _.value && y.push(F), F.children?.length && x(F.children);
|
|
1874
1863
|
});
|
|
1875
1864
|
};
|
|
1876
|
-
return x(
|
|
1877
|
-
}),
|
|
1865
|
+
return x(P.value), y[0];
|
|
1866
|
+
}), oe = k(() => H.value?.file ?? ""), ae = k(() => nt({
|
|
1878
1867
|
state: O.value,
|
|
1879
1868
|
filterKey: r.value,
|
|
1880
|
-
processGroup(
|
|
1881
|
-
return
|
|
1869
|
+
processGroup(y) {
|
|
1870
|
+
return Dn(Object.values(Pn(jt(y), "stateType")));
|
|
1882
1871
|
}
|
|
1883
|
-
})), { expanded: W } =
|
|
1884
|
-
|
|
1885
|
-
|
|
1886
|
-
|
|
1887
|
-
|
|
1888
|
-
|
|
1872
|
+
})), { expanded: W } = Ce(), { expanded: $ } = Ce("component-state");
|
|
1873
|
+
pl();
|
|
1874
|
+
const m = k(() => _.value ? w(j.value, _.value).slice(0, -1) : []), C = k(() => m.value.every((y) => W.value.includes(y)));
|
|
1875
|
+
function D() {
|
|
1876
|
+
C.value || (W.value = [.../* @__PURE__ */ new Set([...W.value, ...m.value])]);
|
|
1877
|
+
}
|
|
1878
|
+
function z() {
|
|
1879
|
+
(!_.value || !G.value.includes(_.value)) && (_.value = P.value?.[0]?.id ?? "", W.value = A(j.value, 1));
|
|
1880
|
+
}
|
|
1881
|
+
async function ne(y = "") {
|
|
1882
|
+
return E.value.getInspectorTree({ inspectorId: Ae, filter: y }).then((x) => {
|
|
1883
|
+
const L = C.value;
|
|
1884
|
+
P.value = le(x), z(), L && D(), d.value = !0;
|
|
1889
1885
|
});
|
|
1890
1886
|
}
|
|
1891
|
-
function
|
|
1892
|
-
if (!
|
|
1887
|
+
function we(y) {
|
|
1888
|
+
if (!y || !y?.state)
|
|
1893
1889
|
return {};
|
|
1894
1890
|
const x = {};
|
|
1895
|
-
return
|
|
1891
|
+
return y.state.forEach((L) => {
|
|
1896
1892
|
x[L.type] || (x[L.type] = []), x[L.type].push(L);
|
|
1897
1893
|
}), x;
|
|
1898
1894
|
}
|
|
1899
|
-
function
|
|
1900
|
-
|
|
1895
|
+
function Ue(y) {
|
|
1896
|
+
E.value.getInspectorState({ inspectorId: Ae, nodeId: y }).then((x) => {
|
|
1901
1897
|
const L = le(x);
|
|
1902
|
-
L && (O.value =
|
|
1898
|
+
L && (O.value = we(L), $.value = Array.from({ length: Object.keys(O.value).length }, (F, ee) => `${ee}`));
|
|
1903
1899
|
});
|
|
1904
1900
|
}
|
|
1905
|
-
te(_, (
|
|
1906
|
-
|
|
1901
|
+
te(_, (y) => {
|
|
1902
|
+
Ue(y), R.value && bt();
|
|
1907
1903
|
});
|
|
1908
|
-
function
|
|
1909
|
-
const x = le(
|
|
1910
|
-
x.inspectorId !==
|
|
1911
|
-
}
|
|
1912
|
-
|
|
1913
|
-
function
|
|
1914
|
-
const x =
|
|
1915
|
-
|
|
1916
|
-
|
|
1904
|
+
function ft(y) {
|
|
1905
|
+
const x = le(y);
|
|
1906
|
+
x.inspectorId !== Ae || x.nodeId !== _.value || (O.value = we({ state: x.state.state }));
|
|
1907
|
+
}
|
|
1908
|
+
E.functions.on(X.INSPECTOR_STATE_UPDATED, ft), ne();
|
|
1909
|
+
function vt(y) {
|
|
1910
|
+
const x = y.trim().toLowerCase();
|
|
1911
|
+
v(), ne(x).then(() => {
|
|
1912
|
+
v();
|
|
1917
1913
|
});
|
|
1918
1914
|
}
|
|
1919
|
-
|
|
1920
|
-
|
|
1915
|
+
Qt(i, (y) => {
|
|
1916
|
+
vt(y);
|
|
1921
1917
|
}, { debounce: 300 });
|
|
1922
|
-
function
|
|
1923
|
-
const x = le(
|
|
1924
|
-
x.inspectorId ===
|
|
1918
|
+
function mt(y) {
|
|
1919
|
+
const x = le(y);
|
|
1920
|
+
x.inspectorId === Ae && (i.value ? vt(i.value) : P.value = x.rootNodes, z());
|
|
1925
1921
|
}
|
|
1926
|
-
|
|
1927
|
-
|
|
1922
|
+
E.functions.on(X.INSPECTOR_TREE_UPDATED, mt), Ie(() => {
|
|
1923
|
+
E.functions.off(X.INSPECTOR_STATE_UPDATED, ft), E.functions.off(X.INSPECTOR_TREE_UPDATED, mt);
|
|
1928
1924
|
});
|
|
1929
|
-
const
|
|
1930
|
-
label:
|
|
1931
|
-
value:
|
|
1932
|
-
iframe:
|
|
1933
|
-
}))),
|
|
1934
|
-
label:
|
|
1935
|
-
id:
|
|
1936
|
-
}))), je =
|
|
1937
|
-
|
|
1938
|
-
je.value =
|
|
1925
|
+
const Ge = Ut(), ht = k(() => Ge.appRecords.value.map((y) => ({
|
|
1926
|
+
label: y.name + (y.version ? ` (${y.version})` : ""),
|
|
1927
|
+
value: y.id,
|
|
1928
|
+
iframe: y.iframe
|
|
1929
|
+
}))), sn = k(() => ht.value.map((y) => ({
|
|
1930
|
+
label: y.label + (y.iframe ? ` (iframe: ${y.iframe})` : ""),
|
|
1931
|
+
id: y.value
|
|
1932
|
+
}))), je = V(Ge.activeAppRecordId.value);
|
|
1933
|
+
tt(() => {
|
|
1934
|
+
je.value = Ge.activeAppRecordId.value;
|
|
1939
1935
|
});
|
|
1940
|
-
async function
|
|
1941
|
-
await
|
|
1936
|
+
async function gt(y, x = {}) {
|
|
1937
|
+
await E.value.toggleApp(y, x), _.value = "", await ne();
|
|
1942
1938
|
}
|
|
1943
|
-
async function
|
|
1939
|
+
async function Ct() {
|
|
1944
1940
|
g.value = !0, o("onInspectComponentStart");
|
|
1945
1941
|
try {
|
|
1946
|
-
const
|
|
1947
|
-
je.value !==
|
|
1942
|
+
const y = JSON.parse(await E.value.inspectComponentInspector()), x = y.id.split(":")[0];
|
|
1943
|
+
je.value !== y.appId && await gt(x, { inspectingComponent: !0 }), _.value = y.id, W.value.includes(y.id) || W.value.push(y.id), D(), dn();
|
|
1948
1944
|
} finally {
|
|
1949
1945
|
g.value = !1, o("onInspectComponentEnd");
|
|
1950
1946
|
}
|
|
1951
1947
|
}
|
|
1952
|
-
function
|
|
1953
|
-
g.value = !1,
|
|
1948
|
+
function xt() {
|
|
1949
|
+
g.value = !1, E.value.cancelInspectComponentInspector();
|
|
1954
1950
|
}
|
|
1955
|
-
ve("keydown", (
|
|
1956
|
-
|
|
1957
|
-
}),
|
|
1958
|
-
const
|
|
1959
|
-
!
|
|
1960
|
-
}),
|
|
1951
|
+
ve("keydown", (y) => {
|
|
1952
|
+
y.key === "s" && (y.ctrlKey || y.metaKey) && !g.value ? Ct() : y.key === "Escape" && g.value && xt();
|
|
1953
|
+
}), Ne("ArrowRight", () => {
|
|
1954
|
+
const y = W.value.includes(_.value), x = K.value.find((L) => L.id === _.value)?.children?.length;
|
|
1955
|
+
!y && x && W.value.push(_.value);
|
|
1956
|
+
}), Ne("ArrowLeft", () => {
|
|
1961
1957
|
W.value.includes(_.value) && W.value.splice(W.value.indexOf(_.value), 1);
|
|
1962
|
-
}),
|
|
1963
|
-
const
|
|
1964
|
-
if (W.value.includes(_.value) &&
|
|
1965
|
-
_.value = G.value[
|
|
1958
|
+
}), Ne("ArrowDown", () => {
|
|
1959
|
+
const y = G.value.indexOf(_.value);
|
|
1960
|
+
if (W.value.includes(_.value) && y >= 0 && y < G.value.length - 1)
|
|
1961
|
+
_.value = G.value[y + 1];
|
|
1966
1962
|
else {
|
|
1967
|
-
if (
|
|
1963
|
+
if (y === 0)
|
|
1968
1964
|
return !1;
|
|
1969
|
-
_.value =
|
|
1965
|
+
_.value = an();
|
|
1970
1966
|
}
|
|
1971
|
-
}),
|
|
1972
|
-
const
|
|
1967
|
+
}), Ne("ArrowUp", () => {
|
|
1968
|
+
const y = _.value, x = j.value.find((We) => We.includes(y));
|
|
1973
1969
|
if (!x)
|
|
1974
1970
|
return;
|
|
1975
|
-
const L = x.indexOf(
|
|
1971
|
+
const L = x.indexOf(y), F = L > 0 ? L - 1 : 0, ee = x[F], pe = yt(ee);
|
|
1976
1972
|
pe && (_.value = pe.id);
|
|
1977
|
-
}),
|
|
1973
|
+
}), Ne([" ", "Enter"], () => {
|
|
1978
1974
|
if (!K.value.find((L) => L.id === _.value)?.children?.length)
|
|
1979
1975
|
return;
|
|
1980
1976
|
const x = W.value.indexOf(_.value);
|
|
1981
1977
|
x === -1 ? W.value.push(_.value) : W.value.splice(x, 1);
|
|
1982
1978
|
});
|
|
1983
|
-
function
|
|
1984
|
-
const x = K.value.find((ee) => ee.id ===
|
|
1979
|
+
function yt(y) {
|
|
1980
|
+
const x = K.value.find((ee) => ee.id === y);
|
|
1985
1981
|
if (!x || !x.children?.length || x.children.length === 1)
|
|
1986
1982
|
return x;
|
|
1987
1983
|
const L = x?.children?.findIndex((ee) => ee.id === _.value);
|
|
@@ -1989,47 +1985,47 @@ const cl = { class: "absolute left-0 top-0 h-full w-full flex flex-col rounded-b
|
|
|
1989
1985
|
return x;
|
|
1990
1986
|
let F = x.children[L - 1];
|
|
1991
1987
|
for (; F && W.value.includes(F.id) && F.children?.length; ) {
|
|
1992
|
-
const ee = F.children[F.children.length - 1], pe =
|
|
1988
|
+
const ee = F.children[F.children.length - 1], pe = yt(ee.id);
|
|
1993
1989
|
if (!pe || pe.id === F.id)
|
|
1994
1990
|
break;
|
|
1995
1991
|
F = pe;
|
|
1996
1992
|
}
|
|
1997
1993
|
return F || x;
|
|
1998
1994
|
}
|
|
1999
|
-
function
|
|
2000
|
-
const
|
|
1995
|
+
function an() {
|
|
1996
|
+
const y = j.value, x = [...y].findLastIndex((pe) => pe?.includes(_.value));
|
|
2001
1997
|
if (x === -1)
|
|
2002
1998
|
return _.value;
|
|
2003
|
-
const L =
|
|
1999
|
+
const L = y[x], F = y[x + 1], ee = F?.findIndex((pe, We) => pe !== L[We]) ?? -1;
|
|
2004
2000
|
return ee !== -1 ? F[ee] : _.value;
|
|
2005
2001
|
}
|
|
2006
|
-
function
|
|
2007
|
-
|
|
2002
|
+
function rn() {
|
|
2003
|
+
E.value.scrollToComponent(_.value);
|
|
2008
2004
|
}
|
|
2009
|
-
function
|
|
2010
|
-
|
|
2005
|
+
function un() {
|
|
2006
|
+
E.value.inspectDOM(_.value).then(() => {
|
|
2011
2007
|
chrome.devtools.inspectedWindow.eval("inspect(window.__VUE_DEVTOOLS_INSPECT_DOM_TARGET__)");
|
|
2012
2008
|
});
|
|
2013
2009
|
}
|
|
2014
|
-
function
|
|
2015
|
-
|
|
2016
|
-
T.value =
|
|
2010
|
+
function bt() {
|
|
2011
|
+
E.value.getComponentRenderCode(_.value).then((y) => {
|
|
2012
|
+
T.value = y, R.value = !0;
|
|
2017
2013
|
});
|
|
2018
2014
|
}
|
|
2019
|
-
function
|
|
2020
|
-
o("openInEditor",
|
|
2015
|
+
function cn() {
|
|
2016
|
+
o("openInEditor", oe.value);
|
|
2021
2017
|
}
|
|
2022
|
-
const
|
|
2023
|
-
function
|
|
2018
|
+
const _t = V();
|
|
2019
|
+
function dn() {
|
|
2024
2020
|
setTimeout(() => {
|
|
2025
|
-
|
|
2021
|
+
_t.value?.querySelector(".active")?.scrollIntoView({ behavior: "smooth", block: "center" });
|
|
2026
2022
|
}, 300);
|
|
2027
2023
|
}
|
|
2028
|
-
function
|
|
2024
|
+
function pn() {
|
|
2029
2025
|
T.value = "", R.value = !1;
|
|
2030
2026
|
}
|
|
2031
|
-
return (
|
|
2032
|
-
|
|
2027
|
+
return (y, x) => (c(), h("div", hl, [
|
|
2028
|
+
b(a(Pe), {
|
|
2033
2029
|
ref_key: "splitpanesRef",
|
|
2034
2030
|
ref: n,
|
|
2035
2031
|
class: "flex-1 overflow-auto",
|
|
@@ -2037,32 +2033,32 @@ const cl = { class: "absolute left-0 top-0 h-full w-full flex flex-col rounded-b
|
|
|
2037
2033
|
onReady: x[4] || (x[4] = (L) => l.value = !0)
|
|
2038
2034
|
}, {
|
|
2039
2035
|
default: M(() => [
|
|
2040
|
-
|
|
2036
|
+
ht.value.length > 1 ? (c(), B(a(de), {
|
|
2041
2037
|
key: 0,
|
|
2042
2038
|
border: "base h-full",
|
|
2043
2039
|
size: "20"
|
|
2044
2040
|
}, {
|
|
2045
2041
|
default: M(() => [
|
|
2046
|
-
u("div",
|
|
2047
|
-
|
|
2042
|
+
u("div", gl, [
|
|
2043
|
+
b(zn, {
|
|
2048
2044
|
modelValue: je.value,
|
|
2049
2045
|
"onUpdate:modelValue": x[0] || (x[0] = (L) => je.value = L),
|
|
2050
|
-
data:
|
|
2046
|
+
data: sn.value,
|
|
2051
2047
|
class: "w-full",
|
|
2052
|
-
onSelect:
|
|
2048
|
+
onSelect: gt
|
|
2053
2049
|
}, null, 8, ["modelValue", "data"])
|
|
2054
2050
|
])
|
|
2055
2051
|
]),
|
|
2056
2052
|
_: 1
|
|
2057
2053
|
})) : U("", !0),
|
|
2058
|
-
|
|
2054
|
+
b(a(de), {
|
|
2059
2055
|
border: "base",
|
|
2060
2056
|
"h-full": ""
|
|
2061
2057
|
}, {
|
|
2062
2058
|
default: M(() => [
|
|
2063
|
-
d.value ? (c(), h("div",
|
|
2064
|
-
u("div",
|
|
2065
|
-
|
|
2059
|
+
d.value ? (c(), h("div", Cl, [
|
|
2060
|
+
u("div", xl, [
|
|
2061
|
+
b(a(ge), {
|
|
2066
2062
|
modelValue: i.value,
|
|
2067
2063
|
"onUpdate:modelValue": x[1] || (x[1] = (L) => i.value = L),
|
|
2068
2064
|
"loading-debounce-time": 250,
|
|
@@ -2070,13 +2066,13 @@ const cl = { class: "absolute left-0 top-0 h-full w-full flex flex-col rounded-b
|
|
|
2070
2066
|
placeholder: "Find components...",
|
|
2071
2067
|
class: "flex-1 text-3.5"
|
|
2072
2068
|
}, null, 8, ["modelValue", "loading"]),
|
|
2073
|
-
a(
|
|
2069
|
+
a(Nn) ? U("", !0) : q((c(), h("button", {
|
|
2074
2070
|
key: 0,
|
|
2075
2071
|
"px-1": "",
|
|
2076
2072
|
class: "hover:color-#00dc82",
|
|
2077
|
-
onClick:
|
|
2073
|
+
onClick: Ct
|
|
2078
2074
|
}, [
|
|
2079
|
-
(c(), h("svg",
|
|
2075
|
+
(c(), h("svg", yl, [...x[6] || (x[6] = [
|
|
2080
2076
|
u("path", {
|
|
2081
2077
|
fill: "currentColor",
|
|
2082
2078
|
d: "M10.611 10.611a1 1 0 0 1 1.11-.208l8.839 3.889a1 1 0 0 1-.14 1.88l-3.338.91l-.91 3.338a1 1 0 0 1-1.88.14l-3.89-8.84a1 1 0 0 1 .209-1.109M17 3a3 3 0 0 1 3 3v3a1 1 0 1 1-2 0V6a1 1 0 0 0-1-1H6a1 1 0 0 0-1 1v11a1 1 0 0 0 1 1h3a1 1 0 1 1 0 2H6a3 3 0 0 1-3-3V6a3 3 0 0 1 3-3zm-3.73 10.269l1.715 3.9l.318-1.164a1 1 0 0 1 .701-.702l1.165-.318l-3.9-1.716Z"
|
|
@@ -2093,45 +2089,45 @@ const cl = { class: "absolute left-0 top-0 h-full w-full flex flex-col rounded-b
|
|
|
2093
2089
|
]),
|
|
2094
2090
|
u("div", {
|
|
2095
2091
|
ref_key: "componentTreeContainer",
|
|
2096
|
-
ref:
|
|
2092
|
+
ref: _t,
|
|
2097
2093
|
class: "no-scrollbar flex-1 select-none overflow-scroll"
|
|
2098
2094
|
}, [
|
|
2099
|
-
|
|
2095
|
+
b(Oe, {
|
|
2100
2096
|
modelValue: _.value,
|
|
2101
2097
|
"onUpdate:modelValue": x[2] || (x[2] = (L) => _.value = L),
|
|
2102
|
-
data:
|
|
2098
|
+
data: P.value,
|
|
2103
2099
|
"with-tag": !0,
|
|
2104
|
-
onHover: a(
|
|
2105
|
-
onLeave: a(
|
|
2100
|
+
onHover: a(I).highlight,
|
|
2101
|
+
onLeave: a(I).unhighlight
|
|
2106
2102
|
}, null, 8, ["modelValue", "data", "onHover", "onLeave"])
|
|
2107
2103
|
], 512)
|
|
2108
2104
|
])) : U("", !0)
|
|
2109
2105
|
]),
|
|
2110
2106
|
_: 1
|
|
2111
2107
|
}),
|
|
2112
|
-
|
|
2108
|
+
b(a(de), {
|
|
2113
2109
|
relative: "",
|
|
2114
2110
|
"h-full": ""
|
|
2115
2111
|
}, {
|
|
2116
2112
|
default: M(() => [
|
|
2117
|
-
u("div",
|
|
2118
|
-
u("div",
|
|
2119
|
-
H.value?.name ? (c(), h("span",
|
|
2113
|
+
u("div", bl, [
|
|
2114
|
+
u("div", _l, [
|
|
2115
|
+
H.value?.name ? (c(), h("span", wl, [
|
|
2120
2116
|
x[7] || (x[7] = u("span", { class: "text-gray-400 dark:text-gray-600" }, "<", -1)),
|
|
2121
|
-
u("span",
|
|
2117
|
+
u("span", kl, re(H.value.name), 1),
|
|
2122
2118
|
x[8] || (x[8] = u("span", { class: "text-gray-400 dark:text-gray-600" }, ">", -1))
|
|
2123
2119
|
])) : U("", !0),
|
|
2124
|
-
|
|
2120
|
+
b(a(ge), {
|
|
2125
2121
|
modelValue: r.value,
|
|
2126
2122
|
"onUpdate:modelValue": x[3] || (x[3] = (L) => r.value = L),
|
|
2127
2123
|
"loading-debounce-time": 250,
|
|
2128
2124
|
placeholder: "Filter State...",
|
|
2129
2125
|
class: "flex-1 text-3.5"
|
|
2130
2126
|
}, null, 8, ["modelValue"]),
|
|
2131
|
-
u("div",
|
|
2127
|
+
u("div", Il, [
|
|
2132
2128
|
q(u("i", {
|
|
2133
2129
|
class: "i-material-symbols-light:eye-tracking-outline h-4 w-4 cursor-pointer hover:op-70",
|
|
2134
|
-
onClick:
|
|
2130
|
+
onClick: rn
|
|
2135
2131
|
}, null, 512), [
|
|
2136
2132
|
[
|
|
2137
2133
|
a(J),
|
|
@@ -2142,7 +2138,7 @@ const cl = { class: "absolute left-0 top-0 h-full w-full flex flex-col rounded-b
|
|
|
2142
2138
|
]),
|
|
2143
2139
|
q(u("i", {
|
|
2144
2140
|
class: "i-material-symbols-light:code h-5 w-5 cursor-pointer hover:op-70",
|
|
2145
|
-
onClick:
|
|
2141
|
+
onClick: bt
|
|
2146
2142
|
}, null, 512), [
|
|
2147
2143
|
[
|
|
2148
2144
|
a(J),
|
|
@@ -2151,10 +2147,10 @@ const cl = { class: "absolute left-0 top-0 h-full w-full flex flex-col rounded-b
|
|
|
2151
2147
|
{ bottom: !0 }
|
|
2152
2148
|
]
|
|
2153
2149
|
]),
|
|
2154
|
-
a(
|
|
2150
|
+
a(Tt) ? q((c(), h("i", {
|
|
2155
2151
|
key: 0,
|
|
2156
2152
|
class: "i-material-symbols-light:menu-open h-5 w-5 cursor-pointer hover:op-70",
|
|
2157
|
-
onClick:
|
|
2153
|
+
onClick: un
|
|
2158
2154
|
}, null, 512)), [
|
|
2159
2155
|
[
|
|
2160
2156
|
a(J),
|
|
@@ -2163,10 +2159,10 @@ const cl = { class: "absolute left-0 top-0 h-full w-full flex flex-col rounded-b
|
|
|
2163
2159
|
{ bottom: !0 }
|
|
2164
2160
|
]
|
|
2165
2161
|
]) : U("", !0),
|
|
2166
|
-
|
|
2162
|
+
oe.value ? q((c(), h("i", {
|
|
2167
2163
|
key: 1,
|
|
2168
2164
|
class: "i-carbon-launch h-4 w-4 cursor-pointer hover:op-70",
|
|
2169
|
-
onClick:
|
|
2165
|
+
onClick: cn
|
|
2170
2166
|
}, null, 512)), [
|
|
2171
2167
|
[
|
|
2172
2168
|
a(J),
|
|
@@ -2177,18 +2173,18 @@ const cl = { class: "absolute left-0 top-0 h-full w-full flex flex-col rounded-b
|
|
|
2177
2173
|
]) : U("", !0)
|
|
2178
2174
|
])
|
|
2179
2175
|
]),
|
|
2180
|
-
|
|
2176
|
+
b(He, {
|
|
2181
2177
|
class: "no-scrollbar flex-1 overflow-scroll",
|
|
2182
2178
|
data: ae.value,
|
|
2183
2179
|
"node-id": _.value,
|
|
2184
|
-
"inspector-id":
|
|
2180
|
+
"inspector-id": Ae,
|
|
2185
2181
|
"expanded-state-id": "component-state"
|
|
2186
2182
|
}, null, 8, ["data", "node-id"])
|
|
2187
2183
|
]),
|
|
2188
|
-
R.value && T.value ? (c(), B(
|
|
2184
|
+
R.value && T.value ? (c(), B(ml, {
|
|
2189
2185
|
key: 0,
|
|
2190
2186
|
code: T.value,
|
|
2191
|
-
onClose:
|
|
2187
|
+
onClose: pn
|
|
2192
2188
|
}, null, 8, ["code"])) : U("", !0)
|
|
2193
2189
|
]),
|
|
2194
2190
|
_: 1
|
|
@@ -2196,7 +2192,7 @@ const cl = { class: "absolute left-0 top-0 h-full w-full flex flex-col rounded-b
|
|
|
2196
2192
|
]),
|
|
2197
2193
|
_: 1
|
|
2198
2194
|
}, 8, ["horizontal"]),
|
|
2199
|
-
a(
|
|
2195
|
+
a(Tt) ? (c(), B(a(bn), {
|
|
2200
2196
|
key: 0,
|
|
2201
2197
|
modelValue: g.value,
|
|
2202
2198
|
"onUpdate:modelValue": x[5] || (x[5] = (L) => g.value = L),
|
|
@@ -2205,8 +2201,8 @@ const cl = { class: "absolute left-0 top-0 h-full w-full flex flex-col rounded-b
|
|
|
2205
2201
|
closable: !1
|
|
2206
2202
|
}, {
|
|
2207
2203
|
footer: M(() => [
|
|
2208
|
-
u("div",
|
|
2209
|
-
|
|
2204
|
+
u("div", El, [
|
|
2205
|
+
b(a(fe), { onClick: xt }, {
|
|
2210
2206
|
default: M(() => [...x[11] || (x[11] = [
|
|
2211
2207
|
Q(" Cancel ", -1)
|
|
2212
2208
|
])]),
|
|
@@ -2215,9 +2211,9 @@ const cl = { class: "absolute left-0 top-0 h-full w-full flex flex-col rounded-b
|
|
|
2215
2211
|
])
|
|
2216
2212
|
]),
|
|
2217
2213
|
default: M(() => [
|
|
2218
|
-
u("div",
|
|
2219
|
-
u("span",
|
|
2220
|
-
(c(), h("svg",
|
|
2214
|
+
u("div", $l, [
|
|
2215
|
+
u("span", Sl, [
|
|
2216
|
+
(c(), h("svg", Tl, [...x[9] || (x[9] = [
|
|
2221
2217
|
u("g", {
|
|
2222
2218
|
fill: "none",
|
|
2223
2219
|
stroke: "currentColor",
|
|
@@ -2242,9 +2238,9 @@ const cl = { class: "absolute left-0 top-0 h-full w-full flex flex-col rounded-b
|
|
|
2242
2238
|
}, 8, ["modelValue"])) : U("", !0)
|
|
2243
2239
|
]));
|
|
2244
2240
|
}
|
|
2245
|
-
}),
|
|
2246
|
-
function
|
|
2247
|
-
return c(), h("div",
|
|
2241
|
+
}), b1 = /* @__PURE__ */ _e(Vl, [["__scopeId", "data-v-f2ebb581"]]), Nl = {}, Al = { class: "h-screen w-screen $ui-fcc flex-col" };
|
|
2242
|
+
function Rl(e, t) {
|
|
2243
|
+
return c(), h("div", Al, [
|
|
2248
2244
|
t[0] || (t[0] = u("div", { class: "outer" }, [
|
|
2249
2245
|
u("div", { class: "inner" }, [
|
|
2250
2246
|
u("i", {
|
|
@@ -2253,111 +2249,111 @@ function Vl(e, t) {
|
|
|
2253
2249
|
})
|
|
2254
2250
|
])
|
|
2255
2251
|
], -1)),
|
|
2256
|
-
|
|
2252
|
+
Qe(e.$slots, "default", {}, void 0, !0)
|
|
2257
2253
|
]);
|
|
2258
2254
|
}
|
|
2259
|
-
const
|
|
2255
|
+
const Dl = /* @__PURE__ */ _e(Nl, [["render", Rl], ["__scopeId", "data-v-b8018f07"]]), nn = Symbol.for("VueDevToolsCustomInspectorStateSymbol");
|
|
2260
2256
|
function be() {
|
|
2261
|
-
return
|
|
2257
|
+
return xe(nn);
|
|
2262
2258
|
}
|
|
2263
|
-
function
|
|
2264
|
-
const e =
|
|
2259
|
+
function pt() {
|
|
2260
|
+
const e = V({
|
|
2265
2261
|
homepage: "",
|
|
2266
2262
|
id: "",
|
|
2267
2263
|
label: "",
|
|
2268
2264
|
logo: "",
|
|
2269
2265
|
timelineLayerIds: []
|
|
2270
2266
|
});
|
|
2271
|
-
return ye(
|
|
2267
|
+
return ye(nn, e), e;
|
|
2272
2268
|
}
|
|
2273
|
-
const
|
|
2269
|
+
const Pl = {}, Ll = {
|
|
2274
2270
|
width: "175",
|
|
2275
2271
|
height: "34",
|
|
2276
2272
|
viewBox: "0 0 175 34",
|
|
2277
2273
|
fill: "none",
|
|
2278
2274
|
xmlns: "http://www.w3.org/2000/svg"
|
|
2279
2275
|
};
|
|
2280
|
-
function
|
|
2281
|
-
return c(), h("svg",
|
|
2276
|
+
function Ml(e, t) {
|
|
2277
|
+
return c(), h("svg", Ll, [...t[0] || (t[0] = [
|
|
2282
2278
|
u("path", {
|
|
2283
2279
|
fill: "currentColor",
|
|
2284
2280
|
d: "M0.570999 33.3121V1.80715H10.8288C13.6975 1.80715 16.3198 2.39225 18.6962 3.56242C21.0721 4.73263 22.9701 6.5029 24.3901 8.87327C25.81 11.2136 26.52 14.1091 26.52 17.5596C26.52 20.9801 25.81 23.8756 24.3901 26.2458C22.9701 28.6162 21.0721 30.3868 18.6962 31.5568C16.3198 32.7269 13.6975 33.3121 10.8288 33.3121H0.570999ZM10.1332 27.461C12.9439 27.461 15.2767 26.6812 17.1314 25.1208C18.9858 23.5306 19.913 21.0102 19.913 17.5596C19.913 14.1091 18.9858 11.5887 17.1314 9.99846C15.2767 8.40819 12.9439 7.61306 10.1332 7.61306H7.09085V27.461H10.1332ZM50.3628 25.6159C49.928 28.0463 48.7544 29.9966 46.8421 31.4669C44.9297 32.9368 42.6257 33.672 39.931 33.672C37.5551 33.672 35.5119 33.117 33.8024 32.007C32.1216 30.8668 30.8468 29.3965 29.9772 27.5961C29.1081 25.7961 28.6733 23.9056 28.6733 21.9253C28.6733 19.915 29.0645 18.0247 29.8468 16.2544C30.6584 14.4841 31.8756 13.0439 33.498 11.9337C35.1499 10.8236 37.1491 10.2685 39.4962 10.2685C41.9306 10.2685 43.9589 10.8086 45.5817 11.8888C47.2045 12.9689 48.3924 14.3491 49.1456 16.0294C49.928 17.7097 50.3192 19.4799 50.3192 21.3402C50.3192 22.0303 50.2904 22.7054 50.2324 23.3656H34.4979C34.7295 24.9858 35.3091 26.2612 36.2363 27.191C37.1927 28.0914 38.4243 28.5412 39.931 28.5412C41.1482 28.5412 42.1478 28.3014 42.9301 27.8214C43.7125 27.3111 44.2197 26.5759 44.4513 25.6159H50.3628ZM39.4962 14.8592C38.1055 14.8592 37.0043 15.2343 36.1931 15.9844C35.3815 16.7045 34.8455 17.8447 34.5847 19.4049H44.2777C44.1905 18.0847 43.7269 17.0045 42.8865 16.1644C42.0466 15.2943 40.9162 14.8592 39.4962 14.8592ZM64.1603 33.3121H58.5969L50.599 10.6285H56.7713L61.3788 25.3008L65.9427 10.6285H72.1582L64.1603 33.3121ZM88.2757 33.3121H81.7559V7.61306H72.7585V1.80715H97.2731V7.61306H88.2757V33.3121ZM106.325 33.672C104.123 33.672 102.138 33.1771 100.37 32.1868C98.6029 31.1667 97.2266 29.7717 96.2414 28.0011C95.2562 26.2011 94.7634 24.1907 94.7634 21.9703C94.7634 19.75 95.2562 17.7547 96.2414 15.9844C97.2266 14.1841 98.6029 12.7889 100.37 11.7987C102.138 10.7786 104.123 10.2685 106.325 10.2685C108.528 10.2685 110.513 10.7786 112.28 11.7987C114.048 12.7889 115.424 14.1841 116.409 15.9844C117.395 17.7547 117.887 19.75 117.887 21.9703C117.887 24.1907 117.395 26.2011 116.409 28.0011C115.424 29.7717 114.048 31.1667 112.28 32.1868C110.513 33.1771 108.528 33.672 106.325 33.672ZM106.325 28.2712C107.948 28.2712 109.266 27.6864 110.281 26.5159C111.295 25.3458 111.802 23.8306 111.802 21.9703C111.802 20.08 111.295 18.5498 110.281 17.3796C109.266 16.2094 107.948 15.6243 106.325 15.6243C104.702 15.6243 103.384 16.2094 102.37 17.3796C101.356 18.5498 100.848 20.08 100.848 21.9703C100.848 23.8306 101.356 25.3458 102.37 26.5159C103.384 27.6864 104.702 28.2712 106.325 28.2712ZM131.624 33.672C129.422 33.672 127.436 33.1771 125.669 32.1868C123.901 31.1667 122.525 29.7717 121.54 28.0011C120.555 26.2011 120.062 24.1907 120.062 21.9703C120.062 19.75 120.555 17.7547 121.54 15.9844C122.525 14.1841 123.901 12.7889 125.669 11.7987C127.436 10.7786 129.422 10.2685 131.624 10.2685C133.826 10.2685 135.811 10.7786 137.579 11.7987C139.346 12.7889 140.722 14.1841 141.708 15.9844C142.693 17.7547 143.186 19.75 143.186 21.9703C143.186 24.1907 142.693 26.2011 141.708 28.0011C140.722 29.7717 139.346 31.1667 137.579 32.1868C135.811 33.1771 133.826 33.672 131.624 33.672ZM131.624 28.2712C133.246 28.2712 134.565 27.6864 135.579 26.5159C136.593 25.3458 137.101 23.8306 137.101 21.9703C137.101 20.08 136.593 18.5498 135.579 17.3796C134.565 16.2094 133.246 15.6243 131.624 15.6243C130.001 15.6243 128.682 16.2094 127.668 17.3796C126.654 18.5498 126.147 20.08 126.147 21.9703C126.147 23.8306 126.654 25.3458 127.668 26.5159C128.682 27.6864 130.001 28.2712 131.624 28.2712ZM152.88 33.3121H146.838V0.771999H152.88V33.3121ZM165.652 33.672C162.957 33.672 160.769 32.9522 159.088 31.5117C157.437 30.0418 156.553 28.0914 156.437 25.661H161.653C161.768 26.6812 162.174 27.4913 162.87 28.0914C163.594 28.6613 164.522 28.9463 165.652 28.9463C166.579 28.9463 167.332 28.7363 167.912 28.3163C168.52 27.8963 168.825 27.3712 168.825 26.7412C168.825 25.9008 168.477 25.3159 167.782 24.9858C167.086 24.6557 165.985 24.3557 164.478 24.0856C162.913 23.7856 161.638 23.4556 160.653 23.0955C159.668 22.7354 158.813 22.0903 158.089 21.1602C157.393 20.2 157.045 18.8498 157.045 17.1096C157.045 15.7893 157.379 14.6192 158.045 13.599C158.741 12.5488 159.682 11.7387 160.871 11.1686C162.058 10.5685 163.391 10.2685 164.869 10.2685C167.506 10.2685 169.636 10.9436 171.259 12.2938C172.91 13.644 173.794 15.4293 173.91 17.6496H168.651C168.535 16.7195 168.115 15.9994 167.39 15.4893C166.695 14.9492 165.912 14.6792 165.043 14.6792C164.174 14.6792 163.478 14.8742 162.957 15.2643C162.435 15.6543 162.174 16.1944 162.174 16.8845C162.174 17.7246 162.508 18.2948 163.174 18.5948C163.87 18.8648 164.956 19.1049 166.434 19.3149C168.028 19.5549 169.331 19.855 170.346 20.215C171.389 20.5451 172.287 21.2052 173.041 22.1953C173.794 23.1855 174.171 24.6257 174.171 26.5159C174.171 28.6762 173.389 30.4166 171.824 31.737C170.288 33.0271 168.23 33.672 165.652 33.672Z"
|
|
2285
2281
|
}, null, -1)
|
|
2286
2282
|
])]);
|
|
2287
2283
|
}
|
|
2288
|
-
const
|
|
2284
|
+
const Hl = /* @__PURE__ */ _e(Pl, [["render", Ml]]), Ol = {
|
|
2289
2285
|
"h-full": "",
|
|
2290
2286
|
"w-full": "",
|
|
2291
2287
|
flex: "",
|
|
2292
2288
|
"items-center": ""
|
|
2293
|
-
},
|
|
2289
|
+
}, Ul = {
|
|
2294
2290
|
flex: "~ col gap2",
|
|
2295
2291
|
ma: "",
|
|
2296
2292
|
"px-5": ""
|
|
2297
|
-
},
|
|
2293
|
+
}, jl = {
|
|
2298
2294
|
flex: "~ col",
|
|
2299
2295
|
"mt-20": "",
|
|
2300
2296
|
"items-center": ""
|
|
2301
|
-
},
|
|
2297
|
+
}, zl = {
|
|
2302
2298
|
flex: "~",
|
|
2303
2299
|
"mt--10": "",
|
|
2304
2300
|
"items-center": "",
|
|
2305
2301
|
"justify-center": ""
|
|
2306
|
-
},
|
|
2302
|
+
}, Bl = { class: "mr-1" }, Zl = {
|
|
2307
2303
|
key: 0,
|
|
2308
2304
|
class: "inline-block w20"
|
|
2309
|
-
},
|
|
2305
|
+
}, Fl = ["src", "alt"], Kl = {
|
|
2310
2306
|
key: 1,
|
|
2311
2307
|
class: "mr2 inline-block min-w-20 text-center text-10 font-600"
|
|
2312
|
-
},
|
|
2308
|
+
}, Gl = {
|
|
2313
2309
|
mb6: "",
|
|
2314
2310
|
"mt--1": "",
|
|
2315
2311
|
"text-center": "",
|
|
2316
2312
|
"text-sm": "",
|
|
2317
2313
|
flex: "~ gap-1"
|
|
2318
|
-
},
|
|
2314
|
+
}, Wl = { op40: "" }, ql = { flex: "~ gap2 wrap" }, Jl = {
|
|
2319
2315
|
flex: "~ gap-6 wrap",
|
|
2320
2316
|
"mt-5": "",
|
|
2321
2317
|
"items-center": "",
|
|
2322
2318
|
"justify-center": ""
|
|
2323
|
-
},
|
|
2319
|
+
}, Yl = ["href"], Xl = /* @__PURE__ */ Z({
|
|
2324
2320
|
__name: "About",
|
|
2325
2321
|
setup(e) {
|
|
2326
|
-
const t =
|
|
2322
|
+
const t = Le(), o = be(), n = V(!1), l = V(!1);
|
|
2327
2323
|
function s() {
|
|
2328
2324
|
n.value = !0;
|
|
2329
2325
|
}
|
|
2330
2326
|
function p() {
|
|
2331
2327
|
n.value = !0, l.value = !0;
|
|
2332
2328
|
}
|
|
2333
|
-
return (i, r) => (c(), h("div",
|
|
2334
|
-
u("div",
|
|
2329
|
+
return (i, r) => (c(), h("div", Ol, [
|
|
2330
|
+
u("div", Ul, [
|
|
2335
2331
|
r[5] || (r[5] = u("div", { "flex-auto": "" }, null, -1)),
|
|
2336
|
-
u("div",
|
|
2337
|
-
u("div",
|
|
2338
|
-
u("span",
|
|
2339
|
-
n.value ? U("", !0) : (c(), h("span",
|
|
2332
|
+
u("div", jl, [
|
|
2333
|
+
u("div", zl, [
|
|
2334
|
+
u("span", Bl, [
|
|
2335
|
+
n.value ? U("", !0) : (c(), h("span", Zl)),
|
|
2340
2336
|
q(u("img", {
|
|
2341
2337
|
src: a(o).logo,
|
|
2342
2338
|
alt: `${a(o).label} Logo`,
|
|
2343
2339
|
class: "inline-block h16",
|
|
2344
2340
|
onError: p,
|
|
2345
2341
|
onLoad: s
|
|
2346
|
-
}, null, 40,
|
|
2347
|
-
[
|
|
2342
|
+
}, null, 40, Fl), [
|
|
2343
|
+
[gn, n.value && !l.value]
|
|
2348
2344
|
]),
|
|
2349
|
-
l.value ? (c(), h("span",
|
|
2345
|
+
l.value ? (c(), h("span", Kl, re(a(o).label), 1)) : U("", !0)
|
|
2350
2346
|
]),
|
|
2351
2347
|
u("span", null, [
|
|
2352
|
-
|
|
2348
|
+
b(Hl, { "h-18": "" })
|
|
2353
2349
|
])
|
|
2354
2350
|
]),
|
|
2355
|
-
u("div",
|
|
2356
|
-
u("span",
|
|
2351
|
+
u("div", Gl, [
|
|
2352
|
+
u("span", Wl, re(a(o).label) + " DevTools ", 1)
|
|
2357
2353
|
])
|
|
2358
2354
|
]),
|
|
2359
2355
|
r[6] || (r[6] = u("div", { "flex-auto": "" }, null, -1)),
|
|
2360
|
-
u("div",
|
|
2356
|
+
u("div", ql, [
|
|
2361
2357
|
u("div", {
|
|
2362
2358
|
flex: "~ col auto",
|
|
2363
2359
|
"min-w-40": "",
|
|
@@ -2386,7 +2382,7 @@ const Pl = /* @__PURE__ */ _e(Al, [["render", Dl]]), Ll = {
|
|
|
2386
2382
|
u("div", null, "Timeline", -1)
|
|
2387
2383
|
])])) : U("", !0)
|
|
2388
2384
|
]),
|
|
2389
|
-
u("div",
|
|
2385
|
+
u("div", Jl, [
|
|
2390
2386
|
u("a", {
|
|
2391
2387
|
href: a(o).homepage,
|
|
2392
2388
|
target: "_blank",
|
|
@@ -2398,16 +2394,16 @@ const Pl = /* @__PURE__ */ _e(Al, [["render", Dl]]), Ll = {
|
|
|
2398
2394
|
}, [...r[4] || (r[4] = [
|
|
2399
2395
|
u("div", { "i-carbon-document": "" }, null, -1),
|
|
2400
2396
|
Q(" View Documentation ", -1)
|
|
2401
|
-
])], 8,
|
|
2397
|
+
])], 8, Yl)
|
|
2402
2398
|
]),
|
|
2403
2399
|
r[7] || (r[7] = u("div", { "flex-auto": "" }, null, -1))
|
|
2404
2400
|
])
|
|
2405
2401
|
]));
|
|
2406
2402
|
}
|
|
2407
|
-
}),
|
|
2403
|
+
}), Ql = { class: "flex-1 overflow-y-auto p2" }, es = { class: "max-w-[190px] flex-1 select-none py-1.5 text-sm" }, ts = { class: "w-4/5" }, ns = {
|
|
2408
2404
|
key: 0,
|
|
2409
2405
|
class: "flex justify-start"
|
|
2410
|
-
},
|
|
2406
|
+
}, os = { key: 1 }, on = /* @__PURE__ */ Z({
|
|
2411
2407
|
__name: "Settings",
|
|
2412
2408
|
props: {
|
|
2413
2409
|
pluginId: {},
|
|
@@ -2416,59 +2412,59 @@ const Pl = /* @__PURE__ */ _e(Al, [["render", Dl]]), Ll = {
|
|
|
2416
2412
|
},
|
|
2417
2413
|
emits: ["update"],
|
|
2418
2414
|
setup(e, { emit: t }) {
|
|
2419
|
-
const o = e, n = t, l =
|
|
2415
|
+
const o = e, n = t, l = k(() => o.options), s = k(() => o.values);
|
|
2420
2416
|
function p(i, r) {
|
|
2421
|
-
|
|
2417
|
+
E.value.updatePluginSettings(o.pluginId, i, r), E.value.getPluginSettings(o.pluginId).then((f) => {
|
|
2422
2418
|
n("update", f);
|
|
2423
2419
|
});
|
|
2424
2420
|
}
|
|
2425
|
-
return (i, r) => (c(), h("div",
|
|
2421
|
+
return (i, r) => (c(), h("div", Ql, [
|
|
2426
2422
|
u("ul", null, [
|
|
2427
|
-
(c(!0), h(se, null, ce(l.value, (f,
|
|
2428
|
-
key:
|
|
2423
|
+
(c(!0), h(se, null, ce(l.value, (f, v) => (c(), h("li", {
|
|
2424
|
+
key: v,
|
|
2429
2425
|
class: "flex items-center py-2"
|
|
2430
2426
|
}, [
|
|
2431
|
-
u("div",
|
|
2432
|
-
u("div",
|
|
2433
|
-
f.type === "boolean" ? (c(), h("div",
|
|
2434
|
-
|
|
2435
|
-
"model-value": s.value[
|
|
2427
|
+
u("div", es, re(f.label), 1),
|
|
2428
|
+
u("div", ts, [
|
|
2429
|
+
f.type === "boolean" ? (c(), h("div", ns, [
|
|
2430
|
+
b(a(_n), {
|
|
2431
|
+
"model-value": s.value[v],
|
|
2436
2432
|
class: "row-reverse flex py1 pl2 pr1 hover:bg-active",
|
|
2437
|
-
"onUpdate:modelValue": (d) => p(
|
|
2433
|
+
"onUpdate:modelValue": (d) => p(v, d)
|
|
2438
2434
|
}, null, 8, ["model-value", "onUpdate:modelValue"])
|
|
2439
|
-
])) : f.type === "choice" ? (c(), h("div",
|
|
2440
|
-
|
|
2441
|
-
"model-value": s.value[
|
|
2435
|
+
])) : f.type === "choice" ? (c(), h("div", os, [
|
|
2436
|
+
b(a(wn), {
|
|
2437
|
+
"model-value": s.value[v],
|
|
2442
2438
|
options: f.options,
|
|
2443
|
-
"onUpdate:modelValue": (d) => p(
|
|
2439
|
+
"onUpdate:modelValue": (d) => p(v, d)
|
|
2444
2440
|
}, null, 8, ["model-value", "options", "onUpdate:modelValue"])
|
|
2445
|
-
])) : f.type === "text" ? (c(), B(a(
|
|
2441
|
+
])) : f.type === "text" ? (c(), B(a(ge), {
|
|
2446
2442
|
key: 2,
|
|
2447
|
-
"model-value": s.value[
|
|
2448
|
-
"onUpdate:modelValue": (d) => p(
|
|
2443
|
+
"model-value": s.value[v],
|
|
2444
|
+
"onUpdate:modelValue": (d) => p(v, d)
|
|
2449
2445
|
}, null, 8, ["model-value", "onUpdate:modelValue"])) : U("", !0)
|
|
2450
2446
|
])
|
|
2451
2447
|
]))), 128))
|
|
2452
2448
|
])
|
|
2453
2449
|
]));
|
|
2454
2450
|
}
|
|
2455
|
-
}),
|
|
2451
|
+
}), ls = { class: "h-full flex flex-col" }, ss = /* @__PURE__ */ Z({
|
|
2456
2452
|
__name: "Settings",
|
|
2457
2453
|
setup(e) {
|
|
2458
|
-
const t =
|
|
2454
|
+
const t = xe("pluginSettings"), o = be(), n = k(() => t.value.options), l = k(() => t.value.values);
|
|
2459
2455
|
function s(p) {
|
|
2460
2456
|
t.value = p;
|
|
2461
2457
|
}
|
|
2462
|
-
return (p, i) => (c(), h("div",
|
|
2463
|
-
|
|
2458
|
+
return (p, i) => (c(), h("div", ls, [
|
|
2459
|
+
b(Ee, {
|
|
2464
2460
|
"doc-link": a(o).homepage
|
|
2465
2461
|
}, {
|
|
2466
2462
|
default: M(() => [
|
|
2467
|
-
|
|
2463
|
+
b(Ve)
|
|
2468
2464
|
]),
|
|
2469
2465
|
_: 1
|
|
2470
2466
|
}, 8, ["doc-link"]),
|
|
2471
|
-
|
|
2467
|
+
b(on, {
|
|
2472
2468
|
"plugin-id": a(o).pluginId,
|
|
2473
2469
|
options: n.value,
|
|
2474
2470
|
values: l.value,
|
|
@@ -2476,169 +2472,169 @@ const Pl = /* @__PURE__ */ _e(Al, [["render", Dl]]), Ll = {
|
|
|
2476
2472
|
}, null, 8, ["plugin-id", "options", "values"])
|
|
2477
2473
|
]));
|
|
2478
2474
|
}
|
|
2479
|
-
}),
|
|
2475
|
+
}), as = { class: "h-full flex flex-col" }, is = { class: "h-full flex flex-col p2" }, rs = {
|
|
2480
2476
|
class: "grid grid-cols-[1fr_auto] mb1 items-center gap2 pb1",
|
|
2481
2477
|
border: "b dashed base"
|
|
2482
|
-
},
|
|
2478
|
+
}, us = {
|
|
2483
2479
|
key: 0,
|
|
2484
2480
|
class: "flex items-center gap-2 px-1"
|
|
2485
|
-
},
|
|
2481
|
+
}, cs = ["onClick"], ds = {
|
|
2486
2482
|
key: 0,
|
|
2487
2483
|
class: "no-scrollbar flex-1 select-none overflow-scroll"
|
|
2488
|
-
},
|
|
2484
|
+
}, ps = { class: "h-full flex flex-col p2" }, fs = {
|
|
2489
2485
|
class: "grid grid-cols-[1fr_auto] mb1 items-center gap2 pb1",
|
|
2490
2486
|
border: "b dashed base"
|
|
2491
|
-
},
|
|
2487
|
+
}, vs = {
|
|
2492
2488
|
key: 0,
|
|
2493
2489
|
class: "flex items-center gap-2 px-1"
|
|
2494
|
-
},
|
|
2490
|
+
}, ms = ["onClick"], hs = /* @__PURE__ */ Z({
|
|
2495
2491
|
__name: "Index",
|
|
2496
2492
|
setup(e) {
|
|
2497
|
-
const { expanded: t } =
|
|
2498
|
-
te(
|
|
2499
|
-
!
|
|
2493
|
+
const { expanded: t } = Ce(), { expanded: o } = Ce("custom-inspector-state"), n = be(), l = k(() => n.value.id), s = V([]), p = V([]), i = V([]), r = k(() => i.value?.length ? A(i.value?.[0]) : []), f = k(() => P(i.value)), v = k(() => f.value.map((m) => m.id)), d = V(""), g = V({}), T = k(() => !Object.keys(g.value).length), R = be(), I = V(""), S = V("");
|
|
2494
|
+
te(I, (m, C) => {
|
|
2495
|
+
!m.trim().length && !C.trim().length || ae(m);
|
|
2500
2496
|
});
|
|
2501
|
-
const N =
|
|
2497
|
+
const N = k(() => nt({
|
|
2502
2498
|
state: g.value,
|
|
2503
2499
|
filterKey: S.value
|
|
2504
2500
|
}));
|
|
2505
|
-
function A(
|
|
2506
|
-
return C.push(
|
|
2507
|
-
A(z, C,
|
|
2508
|
-
}), C.pop(),
|
|
2509
|
-
}
|
|
2510
|
-
function w(
|
|
2511
|
-
const
|
|
2512
|
-
return
|
|
2513
|
-
|
|
2514
|
-
}), [...new Set(
|
|
2515
|
-
}
|
|
2516
|
-
function
|
|
2517
|
-
const C = [],
|
|
2518
|
-
z?.forEach((
|
|
2519
|
-
C.push(
|
|
2501
|
+
function A(m, C = [], D = []) {
|
|
2502
|
+
return C.push(m.id), m.children?.length === 0 && D.push([...C]), Array.isArray(m.children) && m.children.forEach((z) => {
|
|
2503
|
+
A(z, C, D);
|
|
2504
|
+
}), C.pop(), D;
|
|
2505
|
+
}
|
|
2506
|
+
function w(m, C) {
|
|
2507
|
+
const D = [];
|
|
2508
|
+
return m?.forEach((z) => {
|
|
2509
|
+
D.push(...z.slice(0, C + 1));
|
|
2510
|
+
}), [...new Set(D)];
|
|
2511
|
+
}
|
|
2512
|
+
function P(m) {
|
|
2513
|
+
const C = [], D = (z) => {
|
|
2514
|
+
z?.forEach((ne) => {
|
|
2515
|
+
C.push(ne), ne.children?.length && D(ne.children);
|
|
2520
2516
|
});
|
|
2521
2517
|
};
|
|
2522
|
-
return
|
|
2518
|
+
return D(m), C;
|
|
2523
2519
|
}
|
|
2524
2520
|
function j() {
|
|
2525
|
-
|
|
2526
|
-
s.value =
|
|
2521
|
+
E.value.getInspectorNodeActions(l.value).then((m) => {
|
|
2522
|
+
s.value = m;
|
|
2527
2523
|
});
|
|
2528
2524
|
}
|
|
2529
2525
|
function K() {
|
|
2530
|
-
|
|
2531
|
-
p.value =
|
|
2526
|
+
E.value.getInspectorActions(l.value).then((m) => {
|
|
2527
|
+
p.value = m;
|
|
2532
2528
|
});
|
|
2533
2529
|
}
|
|
2534
2530
|
j(), K();
|
|
2535
|
-
function G(
|
|
2536
|
-
|
|
2531
|
+
function G(m) {
|
|
2532
|
+
E.value.callInspectorNodeAction(l.value, m, d.value);
|
|
2537
2533
|
}
|
|
2538
|
-
function O(
|
|
2539
|
-
|
|
2534
|
+
function O(m) {
|
|
2535
|
+
E.value.callInspectorAction(l.value, m);
|
|
2540
2536
|
}
|
|
2541
|
-
function _(
|
|
2542
|
-
for (const C in
|
|
2543
|
-
|
|
2544
|
-
return
|
|
2537
|
+
function _(m) {
|
|
2538
|
+
for (const C in m)
|
|
2539
|
+
m[C]?.length || delete m[C];
|
|
2540
|
+
return m;
|
|
2545
2541
|
}
|
|
2546
|
-
function H(
|
|
2547
|
-
|
|
2548
|
-
const
|
|
2549
|
-
|
|
2542
|
+
function H(m) {
|
|
2543
|
+
E.value.getInspectorState({ inspectorId: l.value, nodeId: m }).then((C) => {
|
|
2544
|
+
const D = le(C);
|
|
2545
|
+
D && (g.value = _(D), o.value = Array.from({ length: Object.keys(g.value).length }, (z, ne) => `${ne}`));
|
|
2550
2546
|
});
|
|
2551
2547
|
}
|
|
2552
|
-
function
|
|
2548
|
+
function oe() {
|
|
2553
2549
|
g.value = {};
|
|
2554
2550
|
}
|
|
2555
2551
|
te(d, () => {
|
|
2556
|
-
|
|
2552
|
+
oe(), H(d.value);
|
|
2557
2553
|
});
|
|
2558
|
-
function ae(
|
|
2559
|
-
|
|
2560
|
-
const
|
|
2561
|
-
i.value =
|
|
2554
|
+
function ae(m = "") {
|
|
2555
|
+
E.value.getInspectorTree({ inspectorId: l.value, filter: m }).then((C) => {
|
|
2556
|
+
const D = le(C);
|
|
2557
|
+
i.value = D, !d.value && D.length && (d.value = D[0].id, t.value = w(r.value, 1), H(D[0].id));
|
|
2562
2558
|
});
|
|
2563
2559
|
}
|
|
2564
|
-
|
|
2565
|
-
function W(
|
|
2566
|
-
const C = le(
|
|
2567
|
-
!C.rootNodes.length || C.inspectorId !== l.value || (i.value = C.rootNodes,
|
|
2560
|
+
Yt(l).toBeTruthy().then(() => ae());
|
|
2561
|
+
function W(m) {
|
|
2562
|
+
const C = le(m);
|
|
2563
|
+
!C.rootNodes.length || C.inspectorId !== l.value || (i.value = C.rootNodes, v.value.includes(d.value) || (d.value = i.value?.[0]?.id, t.value = w(r.value, 1)));
|
|
2568
2564
|
}
|
|
2569
|
-
function
|
|
2570
|
-
const C = le(
|
|
2565
|
+
function $(m) {
|
|
2566
|
+
const C = le(m);
|
|
2571
2567
|
if (C.inspectorId !== l.value || !C.state || C.nodeId !== d.value)
|
|
2572
2568
|
return;
|
|
2573
|
-
const { inspectorId:
|
|
2569
|
+
const { inspectorId: D, ...z } = C.state;
|
|
2574
2570
|
g.value = _(z);
|
|
2575
2571
|
}
|
|
2576
|
-
return
|
|
2577
|
-
|
|
2572
|
+
return De(() => {
|
|
2573
|
+
E.functions.on(X.INSPECTOR_TREE_UPDATED, W), E.functions.on(X.INSPECTOR_STATE_UPDATED, $);
|
|
2578
2574
|
}), Ie(() => {
|
|
2579
|
-
|
|
2580
|
-
}), (
|
|
2581
|
-
|
|
2575
|
+
E.functions.off(X.INSPECTOR_TREE_UPDATED, W), E.functions.off(X.INSPECTOR_STATE_UPDATED, $);
|
|
2576
|
+
}), (m, C) => (c(), h("div", as, [
|
|
2577
|
+
b(Ee, {
|
|
2582
2578
|
"doc-link": a(n).homepage
|
|
2583
2579
|
}, {
|
|
2584
2580
|
default: M(() => [
|
|
2585
|
-
|
|
2581
|
+
b(Ve)
|
|
2586
2582
|
]),
|
|
2587
2583
|
_: 1
|
|
2588
2584
|
}, 8, ["doc-link"]),
|
|
2589
|
-
!i.value.length && !
|
|
2585
|
+
!i.value.length && !I.value.trim().length ? (c(), B(Se, { key: 0 }, {
|
|
2590
2586
|
default: M(() => [...C[3] || (C[3] = [
|
|
2591
2587
|
Q(" No Data ", -1)
|
|
2592
2588
|
])]),
|
|
2593
2589
|
_: 1
|
|
2594
|
-
})) : (c(), B(a(
|
|
2590
|
+
})) : (c(), B(a(Pe), {
|
|
2595
2591
|
key: 1,
|
|
2596
2592
|
class: "flex-1 overflow-auto"
|
|
2597
2593
|
}, {
|
|
2598
2594
|
default: M(() => [
|
|
2599
|
-
|
|
2595
|
+
b(a(de), {
|
|
2600
2596
|
border: "r base",
|
|
2601
2597
|
size: "40",
|
|
2602
2598
|
"h-full": ""
|
|
2603
2599
|
}, {
|
|
2604
2600
|
default: M(() => [
|
|
2605
|
-
u("div",
|
|
2606
|
-
u("div",
|
|
2607
|
-
|
|
2608
|
-
modelValue:
|
|
2609
|
-
"onUpdate:modelValue": C[0] || (C[0] = (
|
|
2601
|
+
u("div", is, [
|
|
2602
|
+
u("div", rs, [
|
|
2603
|
+
b(a(ge), {
|
|
2604
|
+
modelValue: I.value,
|
|
2605
|
+
"onUpdate:modelValue": C[0] || (C[0] = (D) => I.value = D),
|
|
2610
2606
|
placeholder: a(R).treeFilterPlaceholder
|
|
2611
2607
|
}, null, 8, ["modelValue", "placeholder"]),
|
|
2612
|
-
p.value?.length ? (c(), h("div",
|
|
2613
|
-
(c(!0), h(se, null, ce(p.value, (
|
|
2608
|
+
p.value?.length ? (c(), h("div", us, [
|
|
2609
|
+
(c(!0), h(se, null, ce(p.value, (D, z) => q((c(), h("div", {
|
|
2614
2610
|
key: z,
|
|
2615
2611
|
class: "flex items-center gap1",
|
|
2616
|
-
onClick: (
|
|
2612
|
+
onClick: (ne) => O(z)
|
|
2617
2613
|
}, [
|
|
2618
|
-
|
|
2619
|
-
name: `baseline-${
|
|
2614
|
+
b(a(Fe), {
|
|
2615
|
+
name: `baseline-${D.icon.replace(/\_/g, "-")}`,
|
|
2620
2616
|
"cursor-pointer": "",
|
|
2621
2617
|
"text-base": "",
|
|
2622
2618
|
op70: "",
|
|
2623
2619
|
"hover:op100": ""
|
|
2624
2620
|
}, null, 8, ["name"])
|
|
2625
|
-
], 8,
|
|
2621
|
+
], 8, cs)), [
|
|
2626
2622
|
[
|
|
2627
2623
|
a(J),
|
|
2628
|
-
{ content:
|
|
2624
|
+
{ content: D.tooltip },
|
|
2629
2625
|
void 0,
|
|
2630
2626
|
{ "bottom-end": !0 }
|
|
2631
2627
|
]
|
|
2632
2628
|
])), 128))
|
|
2633
2629
|
])) : U("", !0)
|
|
2634
2630
|
]),
|
|
2635
|
-
i.value.length ? (c(), h("div",
|
|
2636
|
-
|
|
2631
|
+
i.value.length ? (c(), h("div", ds, [
|
|
2632
|
+
b(Oe, {
|
|
2637
2633
|
modelValue: d.value,
|
|
2638
|
-
"onUpdate:modelValue": C[1] || (C[1] = (
|
|
2634
|
+
"onUpdate:modelValue": C[1] || (C[1] = (D) => d.value = D),
|
|
2639
2635
|
data: i.value
|
|
2640
2636
|
}, null, 8, ["modelValue", "data"])
|
|
2641
|
-
])) : (c(), B(
|
|
2637
|
+
])) : (c(), B(Se, { key: 1 }, {
|
|
2642
2638
|
default: M(() => [...C[4] || (C[4] = [
|
|
2643
2639
|
Q(" No Data ", -1)
|
|
2644
2640
|
])]),
|
|
@@ -2648,46 +2644,46 @@ const Pl = /* @__PURE__ */ _e(Al, [["render", Dl]]), Ll = {
|
|
|
2648
2644
|
]),
|
|
2649
2645
|
_: 1
|
|
2650
2646
|
}),
|
|
2651
|
-
|
|
2647
|
+
b(a(de), { size: "60" }, {
|
|
2652
2648
|
default: M(() => [
|
|
2653
|
-
u("div",
|
|
2654
|
-
u("div",
|
|
2655
|
-
|
|
2649
|
+
u("div", ps, [
|
|
2650
|
+
u("div", fs, [
|
|
2651
|
+
b(a(ge), {
|
|
2656
2652
|
modelValue: S.value,
|
|
2657
|
-
"onUpdate:modelValue": C[2] || (C[2] = (
|
|
2653
|
+
"onUpdate:modelValue": C[2] || (C[2] = (D) => S.value = D),
|
|
2658
2654
|
placeholder: a(R).stateFilterPlaceholder
|
|
2659
2655
|
}, null, 8, ["modelValue", "placeholder"]),
|
|
2660
|
-
s.value?.length ? (c(), h("div",
|
|
2661
|
-
(c(!0), h(se, null, ce(s.value, (
|
|
2656
|
+
s.value?.length ? (c(), h("div", vs, [
|
|
2657
|
+
(c(!0), h(se, null, ce(s.value, (D, z) => q((c(), h("div", {
|
|
2662
2658
|
key: z,
|
|
2663
2659
|
class: "flex items-center gap1",
|
|
2664
|
-
onClick: (
|
|
2660
|
+
onClick: (ne) => G(z)
|
|
2665
2661
|
}, [
|
|
2666
|
-
|
|
2667
|
-
name: `baseline-${
|
|
2662
|
+
b(a(Fe), {
|
|
2663
|
+
name: `baseline-${D.icon.replace(/\_/g, "-")}`,
|
|
2668
2664
|
"cursor-pointer": "",
|
|
2669
2665
|
"text-base": "",
|
|
2670
2666
|
op70: "",
|
|
2671
2667
|
"hover:op100": ""
|
|
2672
2668
|
}, null, 8, ["name"])
|
|
2673
|
-
], 8,
|
|
2669
|
+
], 8, ms)), [
|
|
2674
2670
|
[
|
|
2675
2671
|
a(J),
|
|
2676
|
-
{ content:
|
|
2672
|
+
{ content: D.tooltip },
|
|
2677
2673
|
void 0,
|
|
2678
2674
|
{ "bottom-end": !0 }
|
|
2679
2675
|
]
|
|
2680
2676
|
])), 128))
|
|
2681
2677
|
])) : U("", !0)
|
|
2682
2678
|
]),
|
|
2683
|
-
d.value && !T.value ? (c(), B(
|
|
2679
|
+
d.value && !T.value ? (c(), B(He, {
|
|
2684
2680
|
key: 0,
|
|
2685
2681
|
data: N.value,
|
|
2686
2682
|
"node-id": d.value,
|
|
2687
2683
|
"inspector-id": l.value,
|
|
2688
2684
|
"expanded-state-id": "custom-inspector-state",
|
|
2689
2685
|
class: "no-scrollbar flex-1 overflow-scroll"
|
|
2690
|
-
}, null, 8, ["data", "node-id", "inspector-id"])) : (c(), B(
|
|
2686
|
+
}, null, 8, ["data", "node-id", "inspector-id"])) : (c(), B(Se, { key: 1 }, {
|
|
2691
2687
|
default: M(() => [...C[5] || (C[5] = [
|
|
2692
2688
|
Q(" No Data ", -1)
|
|
2693
2689
|
])]),
|
|
@@ -2702,20 +2698,20 @@ const Pl = /* @__PURE__ */ _e(Al, [["render", Dl]]), Ll = {
|
|
|
2702
2698
|
}))
|
|
2703
2699
|
]));
|
|
2704
2700
|
}
|
|
2705
|
-
}),
|
|
2701
|
+
}), gs = /* @__PURE__ */ Z({
|
|
2706
2702
|
__name: "Index",
|
|
2707
2703
|
setup(e) {
|
|
2708
2704
|
const t = be();
|
|
2709
|
-
return (o, n) => (c(), B(
|
|
2705
|
+
return (o, n) => (c(), B(dt, {
|
|
2710
2706
|
"layer-ids": a(t).timelineLayerIds,
|
|
2711
2707
|
"doc-link": a(t).homepage,
|
|
2712
2708
|
"plugin-id": a(t).pluginId
|
|
2713
2709
|
}, null, 8, ["layer-ids", "doc-link", "plugin-id"]));
|
|
2714
2710
|
}
|
|
2715
|
-
}),
|
|
2711
|
+
}), Cs = {
|
|
2716
2712
|
"h-full": "",
|
|
2717
2713
|
"w-full": ""
|
|
2718
|
-
},
|
|
2714
|
+
}, xs = { key: 0 }, _1 = /* @__PURE__ */ Z({
|
|
2719
2715
|
__name: "index",
|
|
2720
2716
|
props: {
|
|
2721
2717
|
id: {},
|
|
@@ -2723,38 +2719,38 @@ const Pl = /* @__PURE__ */ _e(Al, [["render", Dl]]), Ll = {
|
|
|
2723
2719
|
},
|
|
2724
2720
|
emits: ["loadError"],
|
|
2725
2721
|
setup(e, { emit: t }) {
|
|
2726
|
-
const o = e, n = t, l =
|
|
2722
|
+
const o = e, n = t, l = pt(), s = V(!1), p = V(null);
|
|
2727
2723
|
ye("pluginSettings", p);
|
|
2728
|
-
const i =
|
|
2724
|
+
const i = k(() => [
|
|
2729
2725
|
{
|
|
2730
2726
|
path: "/state",
|
|
2731
2727
|
name: "State",
|
|
2732
|
-
component:
|
|
2728
|
+
component: hs,
|
|
2733
2729
|
icon: "i-carbon-tree-view-alt"
|
|
2734
2730
|
},
|
|
2735
2731
|
l.value.timelineLayerIds?.length && {
|
|
2736
2732
|
path: "/timeline",
|
|
2737
2733
|
name: "Timeline",
|
|
2738
|
-
component:
|
|
2734
|
+
component: gs,
|
|
2739
2735
|
icon: "i-mdi:timeline-clock-outline"
|
|
2740
2736
|
},
|
|
2741
2737
|
{
|
|
2742
2738
|
path: "/about",
|
|
2743
2739
|
name: "About",
|
|
2744
|
-
component:
|
|
2740
|
+
component: Xl
|
|
2745
2741
|
},
|
|
2746
2742
|
p.value && {
|
|
2747
2743
|
path: "/settings",
|
|
2748
2744
|
name: "Settings",
|
|
2749
|
-
component:
|
|
2745
|
+
component: ss,
|
|
2750
2746
|
icon: "i-mdi:cog-outline"
|
|
2751
2747
|
}
|
|
2752
|
-
].filter(Boolean)), { VirtualRouterView: r, restoreRouter: f } =
|
|
2748
|
+
].filter(Boolean)), { VirtualRouterView: r, restoreRouter: f } = lt(i, {
|
|
2753
2749
|
defaultRoutePath: "/state"
|
|
2754
2750
|
});
|
|
2755
|
-
function
|
|
2756
|
-
s.value = !0,
|
|
2757
|
-
|
|
2751
|
+
function v() {
|
|
2752
|
+
s.value = !0, De(() => {
|
|
2753
|
+
E.value.getInspectorInfo(o.id).then((d) => {
|
|
2758
2754
|
if (!d) {
|
|
2759
2755
|
n("loadError");
|
|
2760
2756
|
return;
|
|
@@ -2770,61 +2766,61 @@ const Pl = /* @__PURE__ */ _e(Al, [["render", Dl]]), Ll = {
|
|
|
2770
2766
|
stateFilterPlaceholder: d.stateFilterPlaceholder
|
|
2771
2767
|
};
|
|
2772
2768
|
l.value = g, f(), s.value = !1;
|
|
2773
|
-
}),
|
|
2769
|
+
}), E.value.getPluginSettings(o.pluginId).then((d) => {
|
|
2774
2770
|
d.options ? p.value = d : p.value = null;
|
|
2775
2771
|
});
|
|
2776
2772
|
});
|
|
2777
2773
|
}
|
|
2778
2774
|
return te(() => o.id, () => {
|
|
2779
|
-
|
|
2775
|
+
v();
|
|
2780
2776
|
}, {
|
|
2781
2777
|
immediate: !0
|
|
2782
2778
|
}), Ie(() => {
|
|
2783
|
-
|
|
2784
|
-
}), (d, g) => (c(), h("div",
|
|
2785
|
-
s.value ? (c(), h("div",
|
|
2786
|
-
|
|
2779
|
+
E.value.unhighlight();
|
|
2780
|
+
}), (d, g) => (c(), h("div", Cs, [
|
|
2781
|
+
s.value ? (c(), h("div", xs, [
|
|
2782
|
+
b(Dl)
|
|
2787
2783
|
])) : (c(), B(a(r), { key: 1 }))
|
|
2788
2784
|
]));
|
|
2789
2785
|
}
|
|
2790
|
-
}),
|
|
2786
|
+
}), ys = {}, bs = {
|
|
2791
2787
|
viewBox: "0 0 566 154",
|
|
2792
2788
|
fill: "none",
|
|
2793
2789
|
xmlns: "http://www.w3.org/2000/svg"
|
|
2794
2790
|
};
|
|
2795
|
-
function
|
|
2796
|
-
return c(), h("svg",
|
|
2797
|
-
mn('<svg height="130" viewBox="0 0 319 477" width="180" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><linearGradient id="a"><stop offset="0" stop-color="#52ce63"></stop><stop offset="1" stop-color="#51a256"></stop></linearGradient><linearGradient id="b" x1="55.342075%" x2="42.816933%" xlink:href="#a" y1="0%" y2="42.862855%"></linearGradient><linearGradient id="c" x1="55.348642%" x2="42.808103%" xlink:href="#a" y1="0%" y2="42.862855%"></linearGradient><linearGradient id="d" x1="50%" x2="50%" y1="0%" y2="58.811243%"><stop offset="0" stop-color="#8ae99c"></stop><stop offset="1" stop-color="#52ce63"></stop></linearGradient><linearGradient id="e" x1="51.37763%" x2="44.584719%" y1="17.472551%" y2="100%"><stop offset="0" stop-color="#ffe56c"></stop><stop offset="1" stop-color="#ffc63a"></stop></linearGradient><g fill="none" fill-rule="evenodd" transform="translate(-34 -24)"><g transform="matrix(.99254615 .12186934 -.12186934 .99254615 33.922073 .976691)"><path d="m103.950535 258.274149c44.361599-4.360825 60.014503-40.391282 65.353094-94.699444s-30.93219-103.451001-46.020347-101.9678079c-15.088156 1.4831932-63.0385313 58.9051239-68.3771222 113.2132869-5.3385908 54.308162 4.6827754 87.814791 49.0443752 83.453965z" fill="url(#b)" transform="matrix(.70710678 -.70710678 .70710678 .70710678 -80.496332 125.892944)"></path><path d="m275.876752 258.273992c44.3616 4.360826 53.167133-29.265322 47.828542-83.573485-5.338591-54.308162-52.073133-111.6105744-67.16129-113.0937675-15.088156-1.4831931-52.57477 47.5401275-47.236179 101.8482895s22.207328 90.458137 66.568927 94.818963z" fill="url(#c)" transform="matrix(.70710678 .70710678 -.70710678 .70710678 191.403399 -141.861963)"></path><path d="m188.370027 216.876305c39.941834 0 50.95265-38.251987 50.95265-97.89874 0-59.6467532-37.367733-118.10125956-50.95265-118.10125956s-52.04735 58.45450636-52.04735 118.10125956c0 59.646753 12.105516 97.89874 52.04735 97.89874z" fill="url(#d)"></path></g><path d="m184.473473 501c83.118854 0 150.526527-24.145148 150.526527-133.645148s-67.407673-199.354852-150.526527-199.354852c-83.118855 0-150.473473 89.854852-150.473473 199.354852s67.354618 133.645148 150.473473 133.645148z" fill="url(#e)"></path><ellipse cx="260.5" cy="335" fill="#eaadcc" rx="21.5" ry="10"></ellipse><ellipse cx="102.5" cy="329" fill="#eaadcc" rx="21.5" ry="10" transform="matrix(.99254615 .12186934 -.12186934 .99254615 40.859033 -10.039292)"></ellipse><g transform="matrix(-.99939083 .0348995 .0348995 .99939083 269.284825 271.027667)"><path d="m73.1046985 58.2728794c6.7372416 4.9130333 14.3132632 6.6640587 22.7280649 5.2530761 8.4148016-1.4109825 14.5054466-5.2535769 18.2719346-11.527783" stroke="#000" stroke-linecap="round" stroke-linejoin="round" stroke-width="6" transform="matrix(.9998477 .01745241 -.01745241 .9998477 1.026464 -1.624794)"></path><path d="m154.501124 3c-5.937545 0-11.312782 2.40629805-15.203644 6.29680621-3.89094 3.89058529-6.29748 9.26545449-6.29748 15.20263179 0 5.9376888 2.406488 11.3127422 6.297291 15.2034272 3.890886 3.8907673 9.266197 6.2971348 15.203833 6.2971348 5.937109 0 11.311896-2.4063889 15.202387-6.2972348 3.890299-3.8906535 6.296489-9.2656636 6.296489-15.2033272 0-5.9371521-2.406242-11.3119781-6.296677-15.20253181-3.890469-3.89058674-9.265181-6.29690619-15.202199-6.29690619z" fill="#000"></path><path d="m154 21c0-3.865549 3.135362-7 6.999413-7 3.866399 0 7.000587 3.134451 7.000587 7s-3.134188 7-7.000587 7c-3.864051-.0011735-6.999413-3.134451-6.999413-7z" fill="#fff"></path><path d="m24.5 13c-5.9375292 0-11.312426 2.406268-15.20299427 6.2967181-3.89069464 3.8905765-6.29700573 9.2654765-6.29700573 15.2027199 0 5.9377549 2.40625962 11.3128391 6.29681766 15.2035153 3.89059104 3.8907092 9.26556184 6.2970467 15.20318234 6.2970467 5.9371249 0 11.3122514-2.406419 15.2030371-6.2973229 3.8905441-3.8906623 6.2969629-9.2656416 6.2969629-15.2032391 0-5.937086-2.4064703-11.3118811-6.297151-15.2024437-3.890763-3.8906448-9.2658154-6.2969943-15.202849-6.2969943z" fill="#000"></path><g fill="#fff"><path d="m136 24.499438c0 10.2185232 8.282911 18.500562 18.501124 18.500562 10.217089 0 18.498876-8.2820388 18.498876-18.500562 0-10.2173992-8.281787-18.499438-18.498876-18.499438-10.218213 0-18.501124 8.2820388-18.501124 18.499438zm-6 0c0-13.5311954 10.96929-24.499438 24.501124-24.499438 13.530838 0 24.498876 10.9683711 24.498876 24.499438 0 13.5319607-10.967808 24.500562-24.498876 24.500562-13.532064 0-24.501124-10.9684728-24.501124-24.500562z" fill-rule="nonzero" stroke="#fff" stroke-width="3"></path><path d="m6 34.499438c0 10.2185232 8.2817873 18.500562 18.5 18.500562 10.2170889 0 18.5-8.2820388 18.5-18.500562 0-10.2173992-8.2829111-18.499438-18.5-18.499438-10.2182127 0-18.5 8.2820388-18.5 18.499438zm-6 0c0-13.531297 10.9682681-24.499438 24.5-24.499438 13.5309398 0 24.5 10.9684728 24.5 24.499438 0 13.5318591-10.96883 24.500562-24.5 24.500562-13.531962 0-24.5-10.9683711-24.5-24.500562z" fill-rule="nonzero" stroke="#fff" stroke-width="3"></path><path d="m24 31c0-3.865549 3.134451-7 7-7s7 3.134451 7 7-3.134451 7-7 7-7-3.134451-7-7z"></path></g></g><g stroke-linecap="round" stroke-width="11"><g stroke="#ecb732"><path d="m70.5 377.5 74 77"></path><path d="m134.5 386.5-47 50"></path></g><g stroke="#ecb732" transform="matrix(-1 0 0 1 298 377)"><path d="m.5.5 74 77"></path><path d="m64.5 9.5-47 50"></path></g><g stroke="#ffc73b" transform="matrix(0 1 -1 0 215 207)"><path d="m.5.5 49 49"></path><path d="m.5 10.5 49 49" transform="matrix(-1 0 0 1 50 0)"></path></g></g></g></svg><path d="M152.571 118V46.1333H176.8C183.576 46.1333 189.77 47.468 195.383 50.1373C200.995 52.8067 205.478 56.8449 208.832 62.252C212.186 67.5907 213.863 74.1956 213.863 82.0667C213.863 89.8693 212.186 96.4742 208.832 101.881C205.478 107.288 200.995 111.327 195.383 113.996C189.77 116.665 183.576 118 176.8 118H152.571ZM175.157 104.653C181.796 104.653 187.306 102.874 191.687 99.3147C196.067 95.6871 198.257 89.9378 198.257 82.0667C198.257 74.1956 196.067 68.4462 191.687 64.8187C187.306 61.1911 181.796 59.3773 175.157 59.3773H167.971V104.653H175.157ZM270.18 100.444C269.153 105.988 266.381 110.437 261.864 113.791C257.347 117.144 251.905 118.821 245.54 118.821C239.928 118.821 235.102 117.555 231.064 115.023C227.094 112.422 224.083 109.068 222.029 104.961C219.976 100.855 218.949 96.5427 218.949 92.0253C218.949 87.4396 219.873 83.1276 221.721 79.0893C223.638 75.0511 226.513 71.7658 230.345 69.2333C234.247 66.7009 238.969 65.4347 244.513 65.4347C250.263 65.4347 255.054 66.6667 258.887 69.1307C262.72 71.5947 265.526 74.7431 267.305 78.576C269.153 82.4089 270.077 86.4471 270.077 90.6907C270.077 92.2649 270.009 93.8049 269.872 95.3107H232.707C233.254 99.0067 234.623 101.916 236.813 104.037C239.072 106.091 241.981 107.117 245.54 107.117C248.415 107.117 250.776 106.57 252.624 105.475C254.472 104.311 255.67 102.634 256.217 100.444H270.18ZM244.513 75.9067C241.228 75.9067 238.627 76.7622 236.711 78.4733C234.794 80.116 233.528 82.7169 232.912 86.276H255.807C255.601 83.2644 254.506 80.8004 252.521 78.884C250.537 76.8991 247.867 75.9067 244.513 75.9067ZM302.77 118H289.629L270.738 66.256H285.317L296.2 99.7253L306.98 66.256H321.661L302.77 118ZM359.731 118H344.331V59.3773H323.079V46.1333H380.983V59.3773H359.731V118ZM402.364 118.821C397.163 118.821 392.474 117.692 388.299 115.433C384.124 113.106 380.873 109.924 378.546 105.885C376.219 101.779 375.055 97.1929 375.055 92.128C375.055 87.0631 376.219 82.5116 378.546 78.4733C380.873 74.3667 384.124 71.184 388.299 68.9253C392.474 66.5982 397.163 65.4347 402.364 65.4347C407.566 65.4347 412.255 66.5982 416.43 68.9253C420.605 71.184 423.856 74.3667 426.183 78.4733C428.51 82.5116 429.674 87.0631 429.674 92.128C429.674 97.1929 428.51 101.779 426.183 105.885C423.856 109.924 420.605 113.106 416.43 115.433C412.255 117.692 407.566 118.821 402.364 118.821ZM402.364 106.501C406.197 106.501 409.311 105.167 411.707 102.497C414.103 99.828 415.3 96.3716 415.3 92.128C415.3 87.816 414.103 84.3253 411.707 81.656C409.311 78.9867 406.197 77.652 402.364 77.652C398.531 77.652 395.417 78.9867 393.022 81.656C390.626 84.3253 389.428 87.816 389.428 92.128C389.428 96.3716 390.626 99.828 393.022 102.497C395.417 105.167 398.531 106.501 402.364 106.501ZM462.12 118.821C456.918 118.821 452.229 117.692 448.054 115.433C443.879 113.106 440.628 109.924 438.301 105.885C435.974 101.779 434.81 97.1929 434.81 92.128C434.81 87.0631 435.974 82.5116 438.301 78.4733C440.628 74.3667 443.879 71.184 448.054 68.9253C452.229 66.5982 456.918 65.4347 462.12 65.4347C467.321 65.4347 472.01 66.5982 476.185 68.9253C480.36 71.184 483.611 74.3667 485.938 78.4733C488.265 82.5116 489.429 87.0631 489.429 92.128C489.429 97.1929 488.265 101.779 485.938 105.885C483.611 109.924 480.36 113.106 476.185 115.433C472.01 117.692 467.321 118.821 462.12 118.821ZM462.12 106.501C465.952 106.501 469.067 105.167 471.462 102.497C473.858 99.828 475.056 96.3716 475.056 92.128C475.056 87.816 473.858 84.3253 471.462 81.656C469.067 78.9867 465.952 77.652 462.12 77.652C458.287 77.652 455.172 78.9867 452.777 81.656C450.381 84.3253 449.184 87.816 449.184 92.128C449.184 96.3716 450.381 99.828 452.777 102.497C455.172 105.167 458.287 106.501 462.12 106.501ZM512.327 118H498.056V43.772H512.327V118ZM542.494 118.821C536.129 118.821 530.961 117.179 526.991 113.893C523.09 110.54 521.002 106.091 520.729 100.547H533.049C533.322 102.874 534.281 104.722 535.923 106.091C537.634 107.391 539.825 108.041 542.494 108.041C544.684 108.041 546.464 107.562 547.833 106.604C549.27 105.646 549.989 104.448 549.989 103.011C549.989 101.094 549.167 99.7596 547.525 99.0067C545.882 98.2538 543.281 97.5693 539.722 96.9533C536.026 96.2689 533.014 95.516 530.687 94.6947C528.36 93.8733 526.341 92.4018 524.63 90.28C522.987 88.0898 522.166 85.0098 522.166 81.04C522.166 78.0284 522.953 75.3591 524.527 73.032C526.17 70.6364 528.394 68.7884 531.201 67.488C534.007 66.1191 537.155 65.4347 540.646 65.4347C546.874 65.4347 551.905 66.9747 555.738 70.0547C559.639 73.1347 561.727 77.2071 562.001 82.272H549.578C549.304 80.1502 548.312 78.5076 546.601 77.344C544.958 76.112 543.11 75.496 541.057 75.496C539.003 75.496 537.361 75.9409 536.129 76.8307C534.897 77.7204 534.281 78.9524 534.281 80.5267C534.281 82.4431 535.068 83.7436 536.642 84.428C538.285 85.044 540.851 85.5916 544.342 86.0707C548.106 86.6182 551.186 87.3027 553.582 88.124C556.046 88.8769 558.168 90.3827 559.947 92.6413C561.727 94.9 562.617 98.1853 562.617 102.497C562.617 107.425 560.769 111.395 557.073 114.407C553.445 117.35 548.585 118.821 542.494 118.821Z" fill="currentColor"></path>', 2)
|
|
2791
|
+
function _s(e, t) {
|
|
2792
|
+
return c(), h("svg", bs, [...t[0] || (t[0] = [
|
|
2793
|
+
Cn('<svg height="130" viewBox="0 0 319 477" width="180" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><linearGradient id="a"><stop offset="0" stop-color="#52ce63"></stop><stop offset="1" stop-color="#51a256"></stop></linearGradient><linearGradient id="b" x1="55.342075%" x2="42.816933%" xlink:href="#a" y1="0%" y2="42.862855%"></linearGradient><linearGradient id="c" x1="55.348642%" x2="42.808103%" xlink:href="#a" y1="0%" y2="42.862855%"></linearGradient><linearGradient id="d" x1="50%" x2="50%" y1="0%" y2="58.811243%"><stop offset="0" stop-color="#8ae99c"></stop><stop offset="1" stop-color="#52ce63"></stop></linearGradient><linearGradient id="e" x1="51.37763%" x2="44.584719%" y1="17.472551%" y2="100%"><stop offset="0" stop-color="#ffe56c"></stop><stop offset="1" stop-color="#ffc63a"></stop></linearGradient><g fill="none" fill-rule="evenodd" transform="translate(-34 -24)"><g transform="matrix(.99254615 .12186934 -.12186934 .99254615 33.922073 .976691)"><path d="m103.950535 258.274149c44.361599-4.360825 60.014503-40.391282 65.353094-94.699444s-30.93219-103.451001-46.020347-101.9678079c-15.088156 1.4831932-63.0385313 58.9051239-68.3771222 113.2132869-5.3385908 54.308162 4.6827754 87.814791 49.0443752 83.453965z" fill="url(#b)" transform="matrix(.70710678 -.70710678 .70710678 .70710678 -80.496332 125.892944)"></path><path d="m275.876752 258.273992c44.3616 4.360826 53.167133-29.265322 47.828542-83.573485-5.338591-54.308162-52.073133-111.6105744-67.16129-113.0937675-15.088156-1.4831931-52.57477 47.5401275-47.236179 101.8482895s22.207328 90.458137 66.568927 94.818963z" fill="url(#c)" transform="matrix(.70710678 .70710678 -.70710678 .70710678 191.403399 -141.861963)"></path><path d="m188.370027 216.876305c39.941834 0 50.95265-38.251987 50.95265-97.89874 0-59.6467532-37.367733-118.10125956-50.95265-118.10125956s-52.04735 58.45450636-52.04735 118.10125956c0 59.646753 12.105516 97.89874 52.04735 97.89874z" fill="url(#d)"></path></g><path d="m184.473473 501c83.118854 0 150.526527-24.145148 150.526527-133.645148s-67.407673-199.354852-150.526527-199.354852c-83.118855 0-150.473473 89.854852-150.473473 199.354852s67.354618 133.645148 150.473473 133.645148z" fill="url(#e)"></path><ellipse cx="260.5" cy="335" fill="#eaadcc" rx="21.5" ry="10"></ellipse><ellipse cx="102.5" cy="329" fill="#eaadcc" rx="21.5" ry="10" transform="matrix(.99254615 .12186934 -.12186934 .99254615 40.859033 -10.039292)"></ellipse><g transform="matrix(-.99939083 .0348995 .0348995 .99939083 269.284825 271.027667)"><path d="m73.1046985 58.2728794c6.7372416 4.9130333 14.3132632 6.6640587 22.7280649 5.2530761 8.4148016-1.4109825 14.5054466-5.2535769 18.2719346-11.527783" stroke="#000" stroke-linecap="round" stroke-linejoin="round" stroke-width="6" transform="matrix(.9998477 .01745241 -.01745241 .9998477 1.026464 -1.624794)"></path><path d="m154.501124 3c-5.937545 0-11.312782 2.40629805-15.203644 6.29680621-3.89094 3.89058529-6.29748 9.26545449-6.29748 15.20263179 0 5.9376888 2.406488 11.3127422 6.297291 15.2034272 3.890886 3.8907673 9.266197 6.2971348 15.203833 6.2971348 5.937109 0 11.311896-2.4063889 15.202387-6.2972348 3.890299-3.8906535 6.296489-9.2656636 6.296489-15.2033272 0-5.9371521-2.406242-11.3119781-6.296677-15.20253181-3.890469-3.89058674-9.265181-6.29690619-15.202199-6.29690619z" fill="#000"></path><path d="m154 21c0-3.865549 3.135362-7 6.999413-7 3.866399 0 7.000587 3.134451 7.000587 7s-3.134188 7-7.000587 7c-3.864051-.0011735-6.999413-3.134451-6.999413-7z" fill="#fff"></path><path d="m24.5 13c-5.9375292 0-11.312426 2.406268-15.20299427 6.2967181-3.89069464 3.8905765-6.29700573 9.2654765-6.29700573 15.2027199 0 5.9377549 2.40625962 11.3128391 6.29681766 15.2035153 3.89059104 3.8907092 9.26556184 6.2970467 15.20318234 6.2970467 5.9371249 0 11.3122514-2.406419 15.2030371-6.2973229 3.8905441-3.8906623 6.2969629-9.2656416 6.2969629-15.2032391 0-5.937086-2.4064703-11.3118811-6.297151-15.2024437-3.890763-3.8906448-9.2658154-6.2969943-15.202849-6.2969943z" fill="#000"></path><g fill="#fff"><path d="m136 24.499438c0 10.2185232 8.282911 18.500562 18.501124 18.500562 10.217089 0 18.498876-8.2820388 18.498876-18.500562 0-10.2173992-8.281787-18.499438-18.498876-18.499438-10.218213 0-18.501124 8.2820388-18.501124 18.499438zm-6 0c0-13.5311954 10.96929-24.499438 24.501124-24.499438 13.530838 0 24.498876 10.9683711 24.498876 24.499438 0 13.5319607-10.967808 24.500562-24.498876 24.500562-13.532064 0-24.501124-10.9684728-24.501124-24.500562z" fill-rule="nonzero" stroke="#fff" stroke-width="3"></path><path d="m6 34.499438c0 10.2185232 8.2817873 18.500562 18.5 18.500562 10.2170889 0 18.5-8.2820388 18.5-18.500562 0-10.2173992-8.2829111-18.499438-18.5-18.499438-10.2182127 0-18.5 8.2820388-18.5 18.499438zm-6 0c0-13.531297 10.9682681-24.499438 24.5-24.499438 13.5309398 0 24.5 10.9684728 24.5 24.499438 0 13.5318591-10.96883 24.500562-24.5 24.500562-13.531962 0-24.5-10.9683711-24.5-24.500562z" fill-rule="nonzero" stroke="#fff" stroke-width="3"></path><path d="m24 31c0-3.865549 3.134451-7 7-7s7 3.134451 7 7-3.134451 7-7 7-7-3.134451-7-7z"></path></g></g><g stroke-linecap="round" stroke-width="11"><g stroke="#ecb732"><path d="m70.5 377.5 74 77"></path><path d="m134.5 386.5-47 50"></path></g><g stroke="#ecb732" transform="matrix(-1 0 0 1 298 377)"><path d="m.5.5 74 77"></path><path d="m64.5 9.5-47 50"></path></g><g stroke="#ffc73b" transform="matrix(0 1 -1 0 215 207)"><path d="m.5.5 49 49"></path><path d="m.5 10.5 49 49" transform="matrix(-1 0 0 1 50 0)"></path></g></g></g></svg><path d="M152.571 118V46.1333H176.8C183.576 46.1333 189.77 47.468 195.383 50.1373C200.995 52.8067 205.478 56.8449 208.832 62.252C212.186 67.5907 213.863 74.1956 213.863 82.0667C213.863 89.8693 212.186 96.4742 208.832 101.881C205.478 107.288 200.995 111.327 195.383 113.996C189.77 116.665 183.576 118 176.8 118H152.571ZM175.157 104.653C181.796 104.653 187.306 102.874 191.687 99.3147C196.067 95.6871 198.257 89.9378 198.257 82.0667C198.257 74.1956 196.067 68.4462 191.687 64.8187C187.306 61.1911 181.796 59.3773 175.157 59.3773H167.971V104.653H175.157ZM270.18 100.444C269.153 105.988 266.381 110.437 261.864 113.791C257.347 117.144 251.905 118.821 245.54 118.821C239.928 118.821 235.102 117.555 231.064 115.023C227.094 112.422 224.083 109.068 222.029 104.961C219.976 100.855 218.949 96.5427 218.949 92.0253C218.949 87.4396 219.873 83.1276 221.721 79.0893C223.638 75.0511 226.513 71.7658 230.345 69.2333C234.247 66.7009 238.969 65.4347 244.513 65.4347C250.263 65.4347 255.054 66.6667 258.887 69.1307C262.72 71.5947 265.526 74.7431 267.305 78.576C269.153 82.4089 270.077 86.4471 270.077 90.6907C270.077 92.2649 270.009 93.8049 269.872 95.3107H232.707C233.254 99.0067 234.623 101.916 236.813 104.037C239.072 106.091 241.981 107.117 245.54 107.117C248.415 107.117 250.776 106.57 252.624 105.475C254.472 104.311 255.67 102.634 256.217 100.444H270.18ZM244.513 75.9067C241.228 75.9067 238.627 76.7622 236.711 78.4733C234.794 80.116 233.528 82.7169 232.912 86.276H255.807C255.601 83.2644 254.506 80.8004 252.521 78.884C250.537 76.8991 247.867 75.9067 244.513 75.9067ZM302.77 118H289.629L270.738 66.256H285.317L296.2 99.7253L306.98 66.256H321.661L302.77 118ZM359.731 118H344.331V59.3773H323.079V46.1333H380.983V59.3773H359.731V118ZM402.364 118.821C397.163 118.821 392.474 117.692 388.299 115.433C384.124 113.106 380.873 109.924 378.546 105.885C376.219 101.779 375.055 97.1929 375.055 92.128C375.055 87.0631 376.219 82.5116 378.546 78.4733C380.873 74.3667 384.124 71.184 388.299 68.9253C392.474 66.5982 397.163 65.4347 402.364 65.4347C407.566 65.4347 412.255 66.5982 416.43 68.9253C420.605 71.184 423.856 74.3667 426.183 78.4733C428.51 82.5116 429.674 87.0631 429.674 92.128C429.674 97.1929 428.51 101.779 426.183 105.885C423.856 109.924 420.605 113.106 416.43 115.433C412.255 117.692 407.566 118.821 402.364 118.821ZM402.364 106.501C406.197 106.501 409.311 105.167 411.707 102.497C414.103 99.828 415.3 96.3716 415.3 92.128C415.3 87.816 414.103 84.3253 411.707 81.656C409.311 78.9867 406.197 77.652 402.364 77.652C398.531 77.652 395.417 78.9867 393.022 81.656C390.626 84.3253 389.428 87.816 389.428 92.128C389.428 96.3716 390.626 99.828 393.022 102.497C395.417 105.167 398.531 106.501 402.364 106.501ZM462.12 118.821C456.918 118.821 452.229 117.692 448.054 115.433C443.879 113.106 440.628 109.924 438.301 105.885C435.974 101.779 434.81 97.1929 434.81 92.128C434.81 87.0631 435.974 82.5116 438.301 78.4733C440.628 74.3667 443.879 71.184 448.054 68.9253C452.229 66.5982 456.918 65.4347 462.12 65.4347C467.321 65.4347 472.01 66.5982 476.185 68.9253C480.36 71.184 483.611 74.3667 485.938 78.4733C488.265 82.5116 489.429 87.0631 489.429 92.128C489.429 97.1929 488.265 101.779 485.938 105.885C483.611 109.924 480.36 113.106 476.185 115.433C472.01 117.692 467.321 118.821 462.12 118.821ZM462.12 106.501C465.952 106.501 469.067 105.167 471.462 102.497C473.858 99.828 475.056 96.3716 475.056 92.128C475.056 87.816 473.858 84.3253 471.462 81.656C469.067 78.9867 465.952 77.652 462.12 77.652C458.287 77.652 455.172 78.9867 452.777 81.656C450.381 84.3253 449.184 87.816 449.184 92.128C449.184 96.3716 450.381 99.828 452.777 102.497C455.172 105.167 458.287 106.501 462.12 106.501ZM512.327 118H498.056V43.772H512.327V118ZM542.494 118.821C536.129 118.821 530.961 117.179 526.991 113.893C523.09 110.54 521.002 106.091 520.729 100.547H533.049C533.322 102.874 534.281 104.722 535.923 106.091C537.634 107.391 539.825 108.041 542.494 108.041C544.684 108.041 546.464 107.562 547.833 106.604C549.27 105.646 549.989 104.448 549.989 103.011C549.989 101.094 549.167 99.7596 547.525 99.0067C545.882 98.2538 543.281 97.5693 539.722 96.9533C536.026 96.2689 533.014 95.516 530.687 94.6947C528.36 93.8733 526.341 92.4018 524.63 90.28C522.987 88.0898 522.166 85.0098 522.166 81.04C522.166 78.0284 522.953 75.3591 524.527 73.032C526.17 70.6364 528.394 68.7884 531.201 67.488C534.007 66.1191 537.155 65.4347 540.646 65.4347C546.874 65.4347 551.905 66.9747 555.738 70.0547C559.639 73.1347 561.727 77.2071 562.001 82.272H549.578C549.304 80.1502 548.312 78.5076 546.601 77.344C544.958 76.112 543.11 75.496 541.057 75.496C539.003 75.496 537.361 75.9409 536.129 76.8307C534.897 77.7204 534.281 78.9524 534.281 80.5267C534.281 82.4431 535.068 83.7436 536.642 84.428C538.285 85.044 540.851 85.5916 544.342 86.0707C548.106 86.6182 551.186 87.3027 553.582 88.124C556.046 88.8769 558.168 90.3827 559.947 92.6413C561.727 94.9 562.617 98.1853 562.617 102.497C562.617 107.425 560.769 111.395 557.073 114.407C553.445 117.35 548.585 118.821 542.494 118.821Z" fill="currentColor"></path>', 2)
|
|
2798
2794
|
])]);
|
|
2799
2795
|
}
|
|
2800
|
-
const
|
|
2796
|
+
const ws = /* @__PURE__ */ _e(ys, [["render", _s]]), ks = {
|
|
2801
2797
|
"h-full": "",
|
|
2802
2798
|
"w-full": "",
|
|
2803
2799
|
flex: "",
|
|
2804
2800
|
"items-center": ""
|
|
2805
|
-
},
|
|
2801
|
+
}, Is = {
|
|
2806
2802
|
flex: "~ col gap2",
|
|
2807
2803
|
ma: "",
|
|
2808
2804
|
"px-5": ""
|
|
2809
|
-
},
|
|
2805
|
+
}, $s = {
|
|
2810
2806
|
flex: "~ col",
|
|
2811
2807
|
"mt-20": "",
|
|
2812
2808
|
"items-center": ""
|
|
2813
|
-
},
|
|
2809
|
+
}, Ss = {
|
|
2814
2810
|
flex: "~",
|
|
2815
2811
|
"mt--10": "",
|
|
2816
2812
|
"items-center": "",
|
|
2817
2813
|
"justify-center": ""
|
|
2818
|
-
},
|
|
2814
|
+
}, Ts = { flex: "~ gap2 wrap" }, Es = /* @__PURE__ */ Z({
|
|
2819
2815
|
__name: "About",
|
|
2820
2816
|
setup(e) {
|
|
2821
|
-
const t =
|
|
2822
|
-
return (o, n) => (c(), h("div",
|
|
2823
|
-
u("div",
|
|
2817
|
+
const t = Le();
|
|
2818
|
+
return (o, n) => (c(), h("div", ks, [
|
|
2819
|
+
u("div", Is, [
|
|
2824
2820
|
n[5] || (n[5] = u("div", { "flex-auto": "" }, null, -1)),
|
|
2825
|
-
u("div",
|
|
2826
|
-
u("div",
|
|
2827
|
-
|
|
2821
|
+
u("div", $s, [
|
|
2822
|
+
u("div", Ss, [
|
|
2823
|
+
b(ws, { "h-18": "" })
|
|
2828
2824
|
]),
|
|
2829
2825
|
n[2] || (n[2] = u("div", {
|
|
2830
2826
|
mb6: "",
|
|
@@ -2837,7 +2833,7 @@ const ys = /* @__PURE__ */ _e(gs, [["render", xs]]), bs = {
|
|
|
2837
2833
|
], -1))
|
|
2838
2834
|
]),
|
|
2839
2835
|
n[6] || (n[6] = u("div", { "flex-auto": "" }, null, -1)),
|
|
2840
|
-
u("div",
|
|
2836
|
+
u("div", Ts, [
|
|
2841
2837
|
u("div", {
|
|
2842
2838
|
flex: "~ col auto",
|
|
2843
2839
|
"min-w-40": "",
|
|
@@ -2900,24 +2896,24 @@ const ys = /* @__PURE__ */ _e(gs, [["render", xs]]), bs = {
|
|
|
2900
2896
|
])
|
|
2901
2897
|
]));
|
|
2902
2898
|
}
|
|
2903
|
-
}),
|
|
2899
|
+
}), Vs = { class: "h-full flex flex-col" }, Ns = /* @__PURE__ */ Z({
|
|
2904
2900
|
__name: "Settings",
|
|
2905
2901
|
setup(e) {
|
|
2906
|
-
const t =
|
|
2902
|
+
const t = xe("pluginSettings"), o = k(() => t.value.options), n = k(() => t.value.values);
|
|
2907
2903
|
function l(s) {
|
|
2908
2904
|
t.value = s;
|
|
2909
2905
|
}
|
|
2910
|
-
return (s, p) => (c(), h("div",
|
|
2911
|
-
|
|
2906
|
+
return (s, p) => (c(), h("div", Vs, [
|
|
2907
|
+
b(Ee, {
|
|
2912
2908
|
"doc-link": "https://pinia.vuejs.org/",
|
|
2913
2909
|
"github-repo-link": "https://github.com/vuejs/pinia"
|
|
2914
2910
|
}, {
|
|
2915
2911
|
default: M(() => [
|
|
2916
|
-
|
|
2912
|
+
b(Ve)
|
|
2917
2913
|
]),
|
|
2918
2914
|
_: 1
|
|
2919
2915
|
}),
|
|
2920
|
-
|
|
2916
|
+
b(on, {
|
|
2921
2917
|
"plugin-id": "dev.esm.pinia",
|
|
2922
2918
|
options: o.value,
|
|
2923
2919
|
values: n.value,
|
|
@@ -2925,74 +2921,74 @@ const ys = /* @__PURE__ */ _e(gs, [["render", xs]]), bs = {
|
|
|
2925
2921
|
}, null, 8, ["options", "values"])
|
|
2926
2922
|
]));
|
|
2927
2923
|
}
|
|
2928
|
-
}),
|
|
2924
|
+
}), As = "dev.esm.pinia", ln = "pinia", Rs = { class: "h-full flex flex-col" }, Ds = { class: "h-full flex flex-col p2" }, Ps = {
|
|
2929
2925
|
class: "grid grid-cols-[1fr_auto] mb1 items-center gap2 pb1",
|
|
2930
2926
|
border: "b dashed base"
|
|
2931
|
-
},
|
|
2927
|
+
}, Ls = {
|
|
2932
2928
|
key: 0,
|
|
2933
2929
|
class: "flex items-center gap-2 px-1"
|
|
2934
|
-
},
|
|
2930
|
+
}, Ms = ["onClick"], Hs = { class: "no-scrollbar flex-1 select-none overflow-scroll" }, Os = { class: "h-full flex flex-col p2" }, Us = {
|
|
2935
2931
|
class: "grid grid-cols-[1fr_auto] mb1 items-center gap2 pb1",
|
|
2936
2932
|
border: "b dashed base"
|
|
2937
|
-
},
|
|
2933
|
+
}, js = {
|
|
2938
2934
|
key: 0,
|
|
2939
2935
|
class: "flex items-center gap-2 px-1"
|
|
2940
|
-
},
|
|
2936
|
+
}, zs = ["onClick"], Bs = /* @__PURE__ */ Z({
|
|
2941
2937
|
__name: "Index",
|
|
2942
2938
|
setup(e) {
|
|
2943
|
-
const { expanded: t } =
|
|
2944
|
-
te(T, (
|
|
2945
|
-
|
|
2939
|
+
const { expanded: t } = Ce(), { expanded: o } = Ce("pinia-store-state"), n = ln, l = V([]), s = V([]), p = be(), i = V(""), r = V([]), f = k(() => r.value?.length ? N(r.value?.[0]) : []), v = k(() => w(r.value)), d = k(() => v.value.map(($) => $.id)), g = V({}), T = V(""), R = V("");
|
|
2940
|
+
te(T, ($, m) => {
|
|
2941
|
+
!$.trim().length && !m.trim().length || oe($);
|
|
2946
2942
|
});
|
|
2947
|
-
const
|
|
2943
|
+
const I = k(() => nt({
|
|
2948
2944
|
state: g.value,
|
|
2949
2945
|
filterKey: R.value
|
|
2950
|
-
})), S =
|
|
2951
|
-
function N(
|
|
2952
|
-
return
|
|
2953
|
-
N(
|
|
2954
|
-
}),
|
|
2946
|
+
})), S = k(() => !g.value.state?.length && !g.value.getters?.length);
|
|
2947
|
+
function N($, m = [], C = []) {
|
|
2948
|
+
return m.push($.id), $.children?.length === 0 && C.push([...m]), Array.isArray($.children) && $.children.forEach((D) => {
|
|
2949
|
+
N(D, m, C);
|
|
2950
|
+
}), m.pop(), C;
|
|
2955
2951
|
}
|
|
2956
|
-
function A(
|
|
2952
|
+
function A($, m) {
|
|
2957
2953
|
const C = [];
|
|
2958
|
-
return
|
|
2959
|
-
C.push(...
|
|
2954
|
+
return $?.forEach((D) => {
|
|
2955
|
+
C.push(...D.slice(0, m + 1));
|
|
2960
2956
|
}), [...new Set(C)];
|
|
2961
2957
|
}
|
|
2962
|
-
function w(
|
|
2963
|
-
const
|
|
2964
|
-
|
|
2965
|
-
|
|
2958
|
+
function w($) {
|
|
2959
|
+
const m = [], C = (D) => {
|
|
2960
|
+
D?.forEach((z) => {
|
|
2961
|
+
m.push(z), z.children?.length && C(z.children);
|
|
2966
2962
|
});
|
|
2967
2963
|
};
|
|
2968
|
-
return C(
|
|
2964
|
+
return C($), m;
|
|
2969
2965
|
}
|
|
2970
|
-
function
|
|
2971
|
-
|
|
2972
|
-
l.value =
|
|
2966
|
+
function P() {
|
|
2967
|
+
E.value.getInspectorNodeActions(n).then(($) => {
|
|
2968
|
+
l.value = $;
|
|
2973
2969
|
});
|
|
2974
2970
|
}
|
|
2975
2971
|
function j() {
|
|
2976
|
-
|
|
2977
|
-
s.value =
|
|
2972
|
+
E.value.getInspectorActions(n).then(($) => {
|
|
2973
|
+
s.value = $;
|
|
2978
2974
|
});
|
|
2979
2975
|
}
|
|
2980
|
-
|
|
2981
|
-
function K(
|
|
2982
|
-
|
|
2976
|
+
P(), j();
|
|
2977
|
+
function K($) {
|
|
2978
|
+
E.value.callInspectorNodeAction(n, $, i.value);
|
|
2983
2979
|
}
|
|
2984
|
-
function G(
|
|
2985
|
-
|
|
2980
|
+
function G($) {
|
|
2981
|
+
E.value.callInspectorAction(n, $);
|
|
2986
2982
|
}
|
|
2987
|
-
function O(
|
|
2988
|
-
for (const
|
|
2989
|
-
|
|
2990
|
-
return
|
|
2983
|
+
function O($) {
|
|
2984
|
+
for (const m in $)
|
|
2985
|
+
$[m]?.length || delete $[m];
|
|
2986
|
+
return $;
|
|
2991
2987
|
}
|
|
2992
|
-
function _(
|
|
2993
|
-
|
|
2994
|
-
const C = le(
|
|
2995
|
-
C && (g.value = O(C), o.value = Array.from({ length: Object.keys(g.value).length }, (
|
|
2988
|
+
function _($) {
|
|
2989
|
+
E.value.getInspectorState({ inspectorId: n, nodeId: $ }).then((m) => {
|
|
2990
|
+
const C = le(m);
|
|
2991
|
+
C && (g.value = O(C), o.value = Array.from({ length: Object.keys(g.value).length }, (D, z) => `${z}`));
|
|
2996
2992
|
});
|
|
2997
2993
|
}
|
|
2998
2994
|
function H() {
|
|
@@ -3001,59 +2997,59 @@ const ys = /* @__PURE__ */ _e(gs, [["render", xs]]), bs = {
|
|
|
3001
2997
|
te(i, () => {
|
|
3002
2998
|
H(), _(i.value);
|
|
3003
2999
|
});
|
|
3004
|
-
function
|
|
3005
|
-
|
|
3006
|
-
const C = le(
|
|
3000
|
+
function oe($ = "") {
|
|
3001
|
+
E.value.getInspectorTree({ inspectorId: n, filter: $ }).then((m) => {
|
|
3002
|
+
const C = le(m);
|
|
3007
3003
|
r.value = C, !i.value && C.length && (i.value = C[0].id, _(C[0].id), t.value = A(f.value, 1));
|
|
3008
3004
|
});
|
|
3009
3005
|
}
|
|
3010
|
-
|
|
3011
|
-
function ae(
|
|
3012
|
-
const
|
|
3013
|
-
|
|
3006
|
+
oe();
|
|
3007
|
+
function ae($) {
|
|
3008
|
+
const m = le($);
|
|
3009
|
+
m.inspectorId !== n || !m.rootNodes.length || (r.value = m.rootNodes, d.value.includes(i.value) || (i.value = m.rootNodes[0].id, t.value = A(f.value, 1), _(m.rootNodes[0].id)));
|
|
3014
3010
|
}
|
|
3015
|
-
function W(
|
|
3016
|
-
const
|
|
3017
|
-
if (
|
|
3011
|
+
function W($) {
|
|
3012
|
+
const m = le($);
|
|
3013
|
+
if (m.inspectorId !== n)
|
|
3018
3014
|
return;
|
|
3019
|
-
const C =
|
|
3015
|
+
const C = m.state;
|
|
3020
3016
|
C && (g.value = O({
|
|
3021
3017
|
state: C.state,
|
|
3022
3018
|
getters: C.getters
|
|
3023
3019
|
}));
|
|
3024
3020
|
}
|
|
3025
|
-
return
|
|
3026
|
-
|
|
3027
|
-
}), (
|
|
3028
|
-
|
|
3021
|
+
return E.functions.on(X.INSPECTOR_TREE_UPDATED, ae), E.functions.on(X.INSPECTOR_STATE_UPDATED, W), Ie(() => {
|
|
3022
|
+
E.functions.off(X.INSPECTOR_TREE_UPDATED, ae), E.functions.off(X.INSPECTOR_STATE_UPDATED, W);
|
|
3023
|
+
}), ($, m) => (c(), h("div", Rs, [
|
|
3024
|
+
b(Ee, {
|
|
3029
3025
|
"doc-link": "https://pinia.vuejs.org/",
|
|
3030
3026
|
"github-repo-link": "https://github.com/vuejs/pinia"
|
|
3031
3027
|
}, {
|
|
3032
3028
|
default: M(() => [
|
|
3033
|
-
|
|
3029
|
+
b(Ve)
|
|
3034
3030
|
]),
|
|
3035
3031
|
_: 1
|
|
3036
3032
|
}),
|
|
3037
|
-
|
|
3033
|
+
b(a(Pe), { class: "flex-1 overflow-auto" }, {
|
|
3038
3034
|
default: M(() => [
|
|
3039
|
-
|
|
3035
|
+
b(a(de), {
|
|
3040
3036
|
border: "r base",
|
|
3041
3037
|
size: "40",
|
|
3042
3038
|
"h-full": ""
|
|
3043
3039
|
}, {
|
|
3044
3040
|
default: M(() => [
|
|
3045
|
-
u("div",
|
|
3046
|
-
u("div",
|
|
3047
|
-
|
|
3041
|
+
u("div", Ds, [
|
|
3042
|
+
u("div", Ps, [
|
|
3043
|
+
b(a(ge), {
|
|
3048
3044
|
modelValue: T.value,
|
|
3049
|
-
"onUpdate:modelValue":
|
|
3045
|
+
"onUpdate:modelValue": m[0] || (m[0] = (C) => T.value = C),
|
|
3050
3046
|
placeholder: a(p).treeFilterPlaceholder
|
|
3051
3047
|
}, null, 8, ["modelValue", "placeholder"]),
|
|
3052
|
-
s.value?.length ? (c(), h("div",
|
|
3053
|
-
(c(!0), h(se, null, ce(s.value, (C,
|
|
3054
|
-
key:
|
|
3048
|
+
s.value?.length ? (c(), h("div", Ls, [
|
|
3049
|
+
(c(!0), h(se, null, ce(s.value, (C, D) => q((c(), h("div", {
|
|
3050
|
+
key: D,
|
|
3055
3051
|
class: "flex items-center gap1",
|
|
3056
|
-
onClick: (z) => G(
|
|
3052
|
+
onClick: (z) => G(D)
|
|
3057
3053
|
}, [
|
|
3058
3054
|
u("i", {
|
|
3059
3055
|
class: ie(`i-ic-baseline-${C.icon.replace(/\_/g, "-")}`),
|
|
@@ -3062,7 +3058,7 @@ const ys = /* @__PURE__ */ _e(gs, [["render", xs]]), bs = {
|
|
|
3062
3058
|
op70: "",
|
|
3063
3059
|
"hover:op100": ""
|
|
3064
3060
|
}, null, 2)
|
|
3065
|
-
], 8,
|
|
3061
|
+
], 8, Ms)), [
|
|
3066
3062
|
[
|
|
3067
3063
|
a(J),
|
|
3068
3064
|
{ content: C.tooltip },
|
|
@@ -3072,10 +3068,10 @@ const ys = /* @__PURE__ */ _e(gs, [["render", xs]]), bs = {
|
|
|
3072
3068
|
])), 128))
|
|
3073
3069
|
])) : U("", !0)
|
|
3074
3070
|
]),
|
|
3075
|
-
u("div",
|
|
3076
|
-
|
|
3071
|
+
u("div", Hs, [
|
|
3072
|
+
b(Oe, {
|
|
3077
3073
|
modelValue: i.value,
|
|
3078
|
-
"onUpdate:modelValue":
|
|
3074
|
+
"onUpdate:modelValue": m[1] || (m[1] = (C) => i.value = C),
|
|
3079
3075
|
data: r.value
|
|
3080
3076
|
}, null, 8, ["modelValue", "data"])
|
|
3081
3077
|
])
|
|
@@ -3083,20 +3079,20 @@ const ys = /* @__PURE__ */ _e(gs, [["render", xs]]), bs = {
|
|
|
3083
3079
|
]),
|
|
3084
3080
|
_: 1
|
|
3085
3081
|
}),
|
|
3086
|
-
|
|
3082
|
+
b(a(de), { size: "60" }, {
|
|
3087
3083
|
default: M(() => [
|
|
3088
|
-
u("div",
|
|
3089
|
-
u("div",
|
|
3090
|
-
|
|
3084
|
+
u("div", Os, [
|
|
3085
|
+
u("div", Us, [
|
|
3086
|
+
b(a(ge), {
|
|
3091
3087
|
modelValue: R.value,
|
|
3092
|
-
"onUpdate:modelValue":
|
|
3088
|
+
"onUpdate:modelValue": m[2] || (m[2] = (C) => R.value = C),
|
|
3093
3089
|
placeholder: a(p).stateFilterPlaceholder
|
|
3094
3090
|
}, null, 8, ["modelValue", "placeholder"]),
|
|
3095
|
-
l.value?.length ? (c(), h("div",
|
|
3096
|
-
(c(!0), h(se, null, ce(l.value, (C,
|
|
3097
|
-
key:
|
|
3091
|
+
l.value?.length ? (c(), h("div", js, [
|
|
3092
|
+
(c(!0), h(se, null, ce(l.value, (C, D) => q((c(), h("div", {
|
|
3093
|
+
key: D,
|
|
3098
3094
|
class: "flex items-center gap1",
|
|
3099
|
-
onClick: (z) => K(
|
|
3095
|
+
onClick: (z) => K(D)
|
|
3100
3096
|
}, [
|
|
3101
3097
|
u("i", {
|
|
3102
3098
|
class: ie(`i-ic-baseline-${C.icon.replace(/\_/g, "-")}`),
|
|
@@ -3105,7 +3101,7 @@ const ys = /* @__PURE__ */ _e(gs, [["render", xs]]), bs = {
|
|
|
3105
3101
|
op70: "",
|
|
3106
3102
|
"hover:op100": ""
|
|
3107
3103
|
}, null, 2)
|
|
3108
|
-
], 8,
|
|
3104
|
+
], 8, zs)), [
|
|
3109
3105
|
[
|
|
3110
3106
|
a(J),
|
|
3111
3107
|
{ content: C.tooltip },
|
|
@@ -3115,15 +3111,15 @@ const ys = /* @__PURE__ */ _e(gs, [["render", xs]]), bs = {
|
|
|
3115
3111
|
])), 128))
|
|
3116
3112
|
])) : U("", !0)
|
|
3117
3113
|
]),
|
|
3118
|
-
i.value && !S.value ? (c(), B(
|
|
3114
|
+
i.value && !S.value ? (c(), B(He, {
|
|
3119
3115
|
key: 0,
|
|
3120
3116
|
class: "no-scrollbar flex-1 overflow-scroll",
|
|
3121
|
-
data:
|
|
3117
|
+
data: I.value,
|
|
3122
3118
|
"node-id": i.value,
|
|
3123
3119
|
"inspector-id": a(n),
|
|
3124
3120
|
"expanded-state-id": "pinia-store-state"
|
|
3125
|
-
}, null, 8, ["data", "node-id", "inspector-id"])) : (c(), B(
|
|
3126
|
-
default: M(() => [...
|
|
3121
|
+
}, null, 8, ["data", "node-id", "inspector-id"])) : (c(), B(Se, { key: 1 }, {
|
|
3122
|
+
default: M(() => [...m[3] || (m[3] = [
|
|
3127
3123
|
Q(" No Data ", -1)
|
|
3128
3124
|
])]),
|
|
3129
3125
|
_: 1
|
|
@@ -3137,73 +3133,73 @@ const ys = /* @__PURE__ */ _e(gs, [["render", xs]]), bs = {
|
|
|
3137
3133
|
})
|
|
3138
3134
|
]));
|
|
3139
3135
|
}
|
|
3140
|
-
}),
|
|
3136
|
+
}), Zs = "dev.esm.pinia", Fs = /* @__PURE__ */ Z({
|
|
3141
3137
|
__name: "Index",
|
|
3142
3138
|
setup(e) {
|
|
3143
3139
|
const t = ["pinia:mutations"];
|
|
3144
|
-
return (o, n) => (c(), B(
|
|
3140
|
+
return (o, n) => (c(), B(dt, {
|
|
3145
3141
|
"layer-ids": t,
|
|
3146
3142
|
"doc-link": "https://pinia.vuejs.org/",
|
|
3147
|
-
"plugin-id":
|
|
3143
|
+
"plugin-id": Zs,
|
|
3148
3144
|
"github-repo-link": "https://github.com/vuejs/pinia"
|
|
3149
3145
|
}));
|
|
3150
3146
|
}
|
|
3151
|
-
}),
|
|
3147
|
+
}), Ks = {
|
|
3152
3148
|
"h-full": "",
|
|
3153
3149
|
"w-full": ""
|
|
3154
|
-
},
|
|
3150
|
+
}, w1 = /* @__PURE__ */ Z({
|
|
3155
3151
|
__name: "index",
|
|
3156
3152
|
setup(e) {
|
|
3157
|
-
const t =
|
|
3153
|
+
const t = V(null);
|
|
3158
3154
|
ye("pluginSettings", t);
|
|
3159
|
-
const o =
|
|
3155
|
+
const o = k(() => [
|
|
3160
3156
|
{
|
|
3161
3157
|
path: "/store",
|
|
3162
3158
|
name: "Store",
|
|
3163
|
-
component:
|
|
3159
|
+
component: Bs,
|
|
3164
3160
|
icon: "i-carbon-tree-view-alt"
|
|
3165
3161
|
},
|
|
3166
3162
|
{
|
|
3167
3163
|
path: "/timeline",
|
|
3168
3164
|
name: "Timeline",
|
|
3169
|
-
component:
|
|
3165
|
+
component: Fs,
|
|
3170
3166
|
icon: "i-mdi:timeline-clock-outline"
|
|
3171
3167
|
},
|
|
3172
3168
|
{
|
|
3173
3169
|
path: "/",
|
|
3174
3170
|
name: "About",
|
|
3175
|
-
component:
|
|
3171
|
+
component: Es,
|
|
3176
3172
|
icon: "i-logos-pinia"
|
|
3177
3173
|
},
|
|
3178
3174
|
t.value && {
|
|
3179
3175
|
path: "/settings",
|
|
3180
3176
|
name: "Settings",
|
|
3181
|
-
component:
|
|
3177
|
+
component: Ns,
|
|
3182
3178
|
icon: "i-mdi:cog-outline"
|
|
3183
3179
|
}
|
|
3184
|
-
].filter(Boolean)), { VirtualRouterView: n } =
|
|
3180
|
+
].filter(Boolean)), { VirtualRouterView: n } = lt(o, {
|
|
3185
3181
|
defaultRoutePath: "/store"
|
|
3186
|
-
}), l =
|
|
3187
|
-
return
|
|
3188
|
-
|
|
3182
|
+
}), l = pt();
|
|
3183
|
+
return De(() => {
|
|
3184
|
+
E.value.getPluginSettings(As).then((s) => {
|
|
3189
3185
|
s.options ? t.value = s : t.value = null;
|
|
3190
|
-
}),
|
|
3186
|
+
}), E.value.getInspectorInfo(ln).then((s) => {
|
|
3191
3187
|
s && (l.value = {
|
|
3192
3188
|
stateFilterPlaceholder: s.stateFilterPlaceholder,
|
|
3193
3189
|
treeFilterPlaceholder: s.treeFilterPlaceholder
|
|
3194
3190
|
});
|
|
3195
3191
|
});
|
|
3196
|
-
}), (s, p) => (c(), h("div",
|
|
3197
|
-
|
|
3192
|
+
}), (s, p) => (c(), h("div", Ks, [
|
|
3193
|
+
b(a(n))
|
|
3198
3194
|
]));
|
|
3199
3195
|
}
|
|
3200
|
-
}),
|
|
3196
|
+
}), Gs = {}, Ws = {
|
|
3201
3197
|
viewBox: "0 0 566 154",
|
|
3202
3198
|
fill: "none",
|
|
3203
3199
|
xmlns: "http://www.w3.org/2000/svg"
|
|
3204
3200
|
};
|
|
3205
|
-
function
|
|
3206
|
-
return c(), h("svg",
|
|
3201
|
+
function qs(e, t) {
|
|
3202
|
+
return c(), h("svg", Ws, [...t[0] || (t[0] = [
|
|
3207
3203
|
u("svg", {
|
|
3208
3204
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3209
3205
|
width: "8em",
|
|
@@ -3221,34 +3217,34 @@ function Ks(e, t) {
|
|
|
3221
3217
|
}, null, -1)
|
|
3222
3218
|
])]);
|
|
3223
3219
|
}
|
|
3224
|
-
const
|
|
3220
|
+
const Js = /* @__PURE__ */ _e(Gs, [["render", qs]]), Ys = {
|
|
3225
3221
|
"h-full": "",
|
|
3226
3222
|
"w-full": "",
|
|
3227
3223
|
flex: "",
|
|
3228
3224
|
"items-center": ""
|
|
3229
|
-
},
|
|
3225
|
+
}, Xs = {
|
|
3230
3226
|
flex: "~ col gap2",
|
|
3231
3227
|
ma: "",
|
|
3232
3228
|
"px-5": ""
|
|
3233
|
-
},
|
|
3229
|
+
}, Qs = {
|
|
3234
3230
|
flex: "~ col",
|
|
3235
3231
|
"mt-20": "",
|
|
3236
3232
|
"items-center": ""
|
|
3237
|
-
},
|
|
3233
|
+
}, e1 = {
|
|
3238
3234
|
flex: "~",
|
|
3239
3235
|
"mt--10": "",
|
|
3240
3236
|
"items-center": "",
|
|
3241
3237
|
"justify-center": ""
|
|
3242
|
-
},
|
|
3238
|
+
}, t1 = { flex: "~ gap2 wrap" }, n1 = /* @__PURE__ */ Z({
|
|
3243
3239
|
__name: "About",
|
|
3244
3240
|
setup(e) {
|
|
3245
|
-
const t =
|
|
3246
|
-
return (o, n) => (c(), h("div",
|
|
3247
|
-
u("div",
|
|
3241
|
+
const t = Le();
|
|
3242
|
+
return (o, n) => (c(), h("div", Ys, [
|
|
3243
|
+
u("div", Xs, [
|
|
3248
3244
|
n[5] || (n[5] = u("div", { "flex-auto": "" }, null, -1)),
|
|
3249
|
-
u("div",
|
|
3250
|
-
u("div",
|
|
3251
|
-
|
|
3245
|
+
u("div", Qs, [
|
|
3246
|
+
u("div", e1, [
|
|
3247
|
+
b(Js, { "h-18": "" })
|
|
3252
3248
|
]),
|
|
3253
3249
|
n[2] || (n[2] = u("div", {
|
|
3254
3250
|
mb6: "",
|
|
@@ -3261,7 +3257,7 @@ const Gs = /* @__PURE__ */ _e(Zs, [["render", Ks]]), Ws = {
|
|
|
3261
3257
|
], -1))
|
|
3262
3258
|
]),
|
|
3263
3259
|
n[6] || (n[6] = u("div", { "flex-auto": "" }, null, -1)),
|
|
3264
|
-
u("div",
|
|
3260
|
+
u("div", t1, [
|
|
3265
3261
|
u("div", {
|
|
3266
3262
|
flex: "~ col auto",
|
|
3267
3263
|
"min-w-40": "",
|
|
@@ -3324,34 +3320,34 @@ const Gs = /* @__PURE__ */ _e(Zs, [["render", Ks]]), Ws = {
|
|
|
3324
3320
|
])
|
|
3325
3321
|
]));
|
|
3326
3322
|
}
|
|
3327
|
-
}),
|
|
3323
|
+
}), o1 = { class: "h-full flex flex-col" }, l1 = {
|
|
3328
3324
|
"h-full": "",
|
|
3329
3325
|
"select-none": "",
|
|
3330
3326
|
"overflow-scroll": "",
|
|
3331
3327
|
p2: "",
|
|
3332
3328
|
class: "no-scrollbar"
|
|
3333
|
-
},
|
|
3329
|
+
}, s1 = { class: "pb2" }, a1 = {
|
|
3334
3330
|
"h-full": "",
|
|
3335
3331
|
"overflow-scroll": "",
|
|
3336
3332
|
class: "no-scrollbar"
|
|
3337
|
-
},
|
|
3333
|
+
}, i1 = /* @__PURE__ */ Z({
|
|
3338
3334
|
__name: "Index",
|
|
3339
3335
|
setup(e) {
|
|
3340
|
-
const { expanded: t } =
|
|
3336
|
+
const { expanded: t } = Ce(), { expanded: o } = Ce("routes-state"), n = be(), l = k(() => n.value.id), s = V(""), p = V(""), [i, r] = /* @__PURE__ */ Xt(!0), f = V([]), v = k(() => f.value?.length ? R(f.value?.[0]) : []), d = k(() => S(f.value)), g = k(() => d.value.map((O) => O.id)), T = V({});
|
|
3341
3337
|
function R(O, _ = [], H = []) {
|
|
3342
|
-
return _.push(O.id), O.children?.length === 0 && H.push([..._]), Array.isArray(O.children) && O.children.forEach((
|
|
3343
|
-
R(
|
|
3338
|
+
return _.push(O.id), O.children?.length === 0 && H.push([..._]), Array.isArray(O.children) && O.children.forEach((oe) => {
|
|
3339
|
+
R(oe, _, H);
|
|
3344
3340
|
}), _.pop(), H;
|
|
3345
3341
|
}
|
|
3346
|
-
function
|
|
3342
|
+
function I(O, _) {
|
|
3347
3343
|
const H = [];
|
|
3348
|
-
return O?.forEach((
|
|
3349
|
-
H.push(...
|
|
3344
|
+
return O?.forEach((oe) => {
|
|
3345
|
+
H.push(...oe.slice(0, _ + 1));
|
|
3350
3346
|
}), [...new Set(H)];
|
|
3351
3347
|
}
|
|
3352
3348
|
function S(O) {
|
|
3353
|
-
const _ = [], H = (
|
|
3354
|
-
|
|
3349
|
+
const _ = [], H = (oe) => {
|
|
3350
|
+
oe?.forEach((ae) => {
|
|
3355
3351
|
_.push(ae), ae.children?.length && H(ae.children);
|
|
3356
3352
|
});
|
|
3357
3353
|
};
|
|
@@ -3363,9 +3359,9 @@ const Gs = /* @__PURE__ */ _e(Zs, [["render", Ks]]), Ws = {
|
|
|
3363
3359
|
return O;
|
|
3364
3360
|
}
|
|
3365
3361
|
function A(O) {
|
|
3366
|
-
|
|
3362
|
+
E.value.getInspectorState({ inspectorId: l.value, nodeId: O }).then((_) => {
|
|
3367
3363
|
const H = le(_);
|
|
3368
|
-
H && (T.value = N(H), o.value = Array.from({ length: Object.keys(T.value).length }, (
|
|
3364
|
+
H && (T.value = N(H), o.value = Array.from({ length: Object.keys(T.value).length }, (oe, ae) => `${ae}`));
|
|
3369
3365
|
});
|
|
3370
3366
|
}
|
|
3371
3367
|
function w() {
|
|
@@ -3374,18 +3370,18 @@ const Gs = /* @__PURE__ */ _e(Zs, [["render", Ks]]), Ws = {
|
|
|
3374
3370
|
te(s, () => {
|
|
3375
3371
|
w(), A(s.value);
|
|
3376
3372
|
});
|
|
3377
|
-
const
|
|
3378
|
-
await
|
|
3373
|
+
const P = async (O = "") => {
|
|
3374
|
+
await E.value.getInspectorTree({ inspectorId: l.value, filter: O }).then((_) => {
|
|
3379
3375
|
const H = le(_);
|
|
3380
|
-
f.value = H, !s.value && H.length && (s.value = H[0].id, A(H[0].id), t.value =
|
|
3376
|
+
f.value = H, !s.value && H.length && (s.value = H[0].id, A(H[0].id), t.value = I(v.value, 1));
|
|
3381
3377
|
});
|
|
3382
3378
|
};
|
|
3383
|
-
|
|
3384
|
-
|
|
3379
|
+
Yt(l).toBeTruthy().then(() => {
|
|
3380
|
+
P();
|
|
3385
3381
|
});
|
|
3386
3382
|
function j(O) {
|
|
3387
3383
|
const _ = le(O);
|
|
3388
|
-
_.inspectorId !== l.value || !_.rootNodes.length || (f.value = _.rootNodes, g.value.includes(s.value) || (s.value = _.rootNodes[0].id, t.value =
|
|
3384
|
+
_.inspectorId !== l.value || !_.rootNodes.length || (f.value = _.rootNodes, g.value.includes(s.value) || (s.value = _.rootNodes[0].id, t.value = I(v.value, 1), A(_.rootNodes[0].id)));
|
|
3389
3385
|
}
|
|
3390
3386
|
function K(O) {
|
|
3391
3387
|
const _ = le(O);
|
|
@@ -3394,38 +3390,38 @@ const Gs = /* @__PURE__ */ _e(Zs, [["render", Ks]]), Ws = {
|
|
|
3394
3390
|
const H = _.state;
|
|
3395
3391
|
T.value = N(H);
|
|
3396
3392
|
}
|
|
3397
|
-
|
|
3398
|
-
|
|
3393
|
+
E.functions.on(X.INSPECTOR_TREE_UPDATED, j), E.functions.on(X.INSPECTOR_STATE_UPDATED, K), Ie(() => {
|
|
3394
|
+
E.functions.off(X.INSPECTOR_TREE_UPDATED, j), E.functions.off(X.INSPECTOR_STATE_UPDATED, K);
|
|
3399
3395
|
});
|
|
3400
3396
|
function G(O) {
|
|
3401
3397
|
const _ = O.trim().toLowerCase();
|
|
3402
|
-
r(),
|
|
3398
|
+
r(), P(_).then(() => {
|
|
3403
3399
|
r();
|
|
3404
3400
|
});
|
|
3405
3401
|
}
|
|
3406
|
-
return
|
|
3402
|
+
return Qt(p, (O) => {
|
|
3407
3403
|
G(O);
|
|
3408
|
-
}, { debounce: 300 }), (O, _) => (c(), h("div",
|
|
3409
|
-
|
|
3404
|
+
}, { debounce: 300 }), (O, _) => (c(), h("div", o1, [
|
|
3405
|
+
b(Ee, {
|
|
3410
3406
|
"doc-link": "https://router.vuejs.org/",
|
|
3411
3407
|
"github-repo-link": "https://github.com/vuejs/router"
|
|
3412
3408
|
}, {
|
|
3413
3409
|
default: M(() => [
|
|
3414
|
-
|
|
3410
|
+
b(Ve)
|
|
3415
3411
|
]),
|
|
3416
3412
|
_: 1
|
|
3417
3413
|
}),
|
|
3418
|
-
|
|
3414
|
+
b(a(Pe), { class: "flex-1 overflow-auto" }, {
|
|
3419
3415
|
default: M(() => [
|
|
3420
|
-
|
|
3416
|
+
b(a(de), {
|
|
3421
3417
|
border: "r base",
|
|
3422
3418
|
size: "40",
|
|
3423
3419
|
"h-full": ""
|
|
3424
3420
|
}, {
|
|
3425
3421
|
default: M(() => [
|
|
3426
|
-
u("div",
|
|
3427
|
-
u("div",
|
|
3428
|
-
|
|
3422
|
+
u("div", l1, [
|
|
3423
|
+
u("div", s1, [
|
|
3424
|
+
b(a(ge), {
|
|
3429
3425
|
modelValue: p.value,
|
|
3430
3426
|
"onUpdate:modelValue": _[0] || (_[0] = (H) => p.value = H),
|
|
3431
3427
|
placeholder: "Search routes",
|
|
@@ -3434,7 +3430,7 @@ const Gs = /* @__PURE__ */ _e(Zs, [["render", Ks]]), Ws = {
|
|
|
3434
3430
|
class: "text-3.5"
|
|
3435
3431
|
}, null, 8, ["modelValue", "loading"])
|
|
3436
3432
|
]),
|
|
3437
|
-
|
|
3433
|
+
b(Oe, {
|
|
3438
3434
|
modelValue: s.value,
|
|
3439
3435
|
"onUpdate:modelValue": _[1] || (_[1] = (H) => s.value = H),
|
|
3440
3436
|
data: f.value
|
|
@@ -3443,17 +3439,17 @@ const Gs = /* @__PURE__ */ _e(Zs, [["render", Ks]]), Ws = {
|
|
|
3443
3439
|
]),
|
|
3444
3440
|
_: 1
|
|
3445
3441
|
}),
|
|
3446
|
-
|
|
3442
|
+
b(a(de), { size: "60" }, {
|
|
3447
3443
|
default: M(() => [
|
|
3448
|
-
u("div",
|
|
3449
|
-
s.value ? (c(), B(
|
|
3444
|
+
u("div", a1, [
|
|
3445
|
+
s.value ? (c(), B(He, {
|
|
3450
3446
|
key: 0,
|
|
3451
3447
|
class: "p3",
|
|
3452
3448
|
data: T.value,
|
|
3453
3449
|
"node-id": "",
|
|
3454
3450
|
"inspector-id": "router",
|
|
3455
3451
|
"expanded-state-id": "routes-state"
|
|
3456
|
-
}, null, 8, ["data"])) : (c(), B(
|
|
3452
|
+
}, null, 8, ["data"])) : (c(), B(Se, { key: 1 }, {
|
|
3457
3453
|
default: M(() => [..._[2] || (_[2] = [
|
|
3458
3454
|
Q(" No Data ", -1)
|
|
3459
3455
|
])]),
|
|
@@ -3468,51 +3464,51 @@ const Gs = /* @__PURE__ */ _e(Zs, [["render", Ks]]), Ws = {
|
|
|
3468
3464
|
})
|
|
3469
3465
|
]));
|
|
3470
3466
|
}
|
|
3471
|
-
}),
|
|
3467
|
+
}), r1 = "org.vuejs.router", u1 = /* @__PURE__ */ Z({
|
|
3472
3468
|
__name: "Index",
|
|
3473
3469
|
setup(e) {
|
|
3474
3470
|
const t = be();
|
|
3475
|
-
return (o, n) => (c(), B(
|
|
3471
|
+
return (o, n) => (c(), B(dt, {
|
|
3476
3472
|
"layer-ids": a(t).timelineLayerIds,
|
|
3477
3473
|
"doc-link": "https://router.vuejs.org/",
|
|
3478
|
-
"plugin-id":
|
|
3474
|
+
"plugin-id": r1,
|
|
3479
3475
|
"github-repo-link": "https://github.com/vuejs/router"
|
|
3480
3476
|
}, null, 8, ["layer-ids"]));
|
|
3481
3477
|
}
|
|
3482
|
-
}),
|
|
3478
|
+
}), c1 = {
|
|
3483
3479
|
"h-full": "",
|
|
3484
3480
|
"w-full": ""
|
|
3485
|
-
},
|
|
3481
|
+
}, k1 = /* @__PURE__ */ Z({
|
|
3486
3482
|
__name: "index",
|
|
3487
3483
|
props: {
|
|
3488
3484
|
id: {}
|
|
3489
3485
|
},
|
|
3490
3486
|
setup(e) {
|
|
3491
|
-
const t = e, o =
|
|
3487
|
+
const t = e, o = pt(), n = V(!1), { VirtualRouterView: l, restoreRouter: s } = lt([
|
|
3492
3488
|
{
|
|
3493
3489
|
path: "/routes",
|
|
3494
3490
|
name: "Routes",
|
|
3495
|
-
component:
|
|
3491
|
+
component: i1,
|
|
3496
3492
|
icon: "i-carbon-tree-view-alt"
|
|
3497
3493
|
},
|
|
3498
3494
|
{
|
|
3499
3495
|
path: "/timeline",
|
|
3500
3496
|
name: "Timeline",
|
|
3501
|
-
component:
|
|
3497
|
+
component: u1,
|
|
3502
3498
|
icon: "i-mdi:timeline-clock-outline"
|
|
3503
3499
|
},
|
|
3504
3500
|
{
|
|
3505
3501
|
path: "/about",
|
|
3506
3502
|
name: "About",
|
|
3507
|
-
component:
|
|
3503
|
+
component: n1,
|
|
3508
3504
|
icon: "i-ri-route-line"
|
|
3509
3505
|
}
|
|
3510
3506
|
], {
|
|
3511
3507
|
defaultRoutePath: "/routes"
|
|
3512
3508
|
});
|
|
3513
3509
|
function p() {
|
|
3514
|
-
n.value = !0,
|
|
3515
|
-
|
|
3510
|
+
n.value = !0, De(() => {
|
|
3511
|
+
E.value.getInspectorInfo(t.id).then((i) => {
|
|
3516
3512
|
if (!i)
|
|
3517
3513
|
return;
|
|
3518
3514
|
const r = {
|
|
@@ -3528,17 +3524,17 @@ const Gs = /* @__PURE__ */ _e(Zs, [["render", Ks]]), Ws = {
|
|
|
3528
3524
|
}
|
|
3529
3525
|
return te(() => t.id, (i) => {
|
|
3530
3526
|
i && p();
|
|
3531
|
-
}), (i, r) => (c(), h("div",
|
|
3532
|
-
|
|
3527
|
+
}), (i, r) => (c(), h("div", c1, [
|
|
3528
|
+
b(a(l))
|
|
3533
3529
|
]));
|
|
3534
3530
|
}
|
|
3535
3531
|
});
|
|
3536
3532
|
export {
|
|
3537
|
-
|
|
3538
|
-
|
|
3539
|
-
|
|
3540
|
-
|
|
3541
|
-
|
|
3542
|
-
|
|
3543
|
-
|
|
3533
|
+
b1 as Components,
|
|
3534
|
+
_1 as CustomInspector,
|
|
3535
|
+
w1 as Pinia,
|
|
3536
|
+
k1 as Router,
|
|
3537
|
+
zn as SelectiveList,
|
|
3538
|
+
dt as Timeline,
|
|
3539
|
+
y1 as useCustomInspector
|
|
3544
3540
|
};
|