@vue/devtools-applet 8.0.0 → 8.0.2

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/index.js CHANGED
@@ -1,164 +1,164 @@
1
- import { defineComponent as F, withDirectives as W, createElementBlock as m, openBlock as c, normalizeStyle as $e, unref as a, createTextVNode as X, toDisplayString as ie, mergeModels as Ne, useModel as We, Fragment as ne, renderList as ue, normalizeClass as ae, createBlock as z, inject as me, toValue as J, ref as N, computed as I, h as ln, provide as ye, createElementVNode as u, renderSlot as qe, createCommentVNode as U, isRef as ze, shallowRef as pe, shallowReadonly as sn, onMounted as Tt, nextTick as Oe, watch as Q, getCurrentScope as an, onScopeDispose as rn, getCurrentInstance as Je, reactive as mt, toRaw as Et, createVNode as y, mergeProps as ke, withModifiers as fe, withCtx as L, watchEffect as Ye, onUnmounted as we, vShow as un, createStaticVNode as cn } from "vue";
2
- import { vTooltip as q, VueButton as de, VueIcon as re, VueDropdown as dn, VueDropdownButton as ht, VueInput as he, VueIcIcon as je, VueCodeBlock as pn, VueDialog as fn, VueSwitch as vn, VueSelect as mn } from "@vue/devtools-ui";
3
- import { isPlainObject as hn, UNDEFINED as Vt, NAN as gn, INFINITY as Cn, NEGATIVE_INFINITY as yn, getRaw as Nt, toSubmit as He, formatInspectorStateValue as _n, getInspectorStateValueType as gt, escape as xn, toEdit as bn, parse as ee } from "@vue/devtools-kit";
4
- import { rpc as R, useDevToolsState as Rt, DevToolsMessagingEvents as Y, onRpcConnected as Re } from "@vue/devtools-core";
5
- import { Splitpanes as De, Pane as ce } from "splitpanes";
6
- import { isArray as Ct, isObject as yt, sortByKey as Dt, isInSeparateWindow as wn, isInChromePanel as _t } from "@vue/devtools-shared";
7
- import { debounce as kn } from "perfect-debounce";
8
- import { RecycleScroller as In } from "vue-virtual-scroller";
9
- import { flatten as $n, groupBy as Sn } from "lodash-es";
10
- function xt(n) {
11
- return n.toString(16).padStart(6, "0");
1
+ import { defineComponent as F, withDirectives as q, createElementBlock as m, openBlock as c, normalizeStyle as Se, unref as a, createTextVNode as Q, toDisplayString as re, mergeModels as Re, useModel as Ye, Fragment as le, renderList as ce, normalizeClass as ie, createBlock as z, inject as ge, toValue as J, ref as N, computed as S, h as cn, provide as _e, createElementVNode as u, renderSlot as Xe, createCommentVNode as j, isRef as Fe, shallowRef as me, shallowReadonly as dn, onMounted as At, nextTick as Be, watch as te, getCurrentScope as pn, onScopeDispose as fn, getCurrentInstance as Qe, reactive as yt, toRaw as Rt, createVNode as x, mergeProps as Ie, withModifiers as he, withCtx as H, watchEffect as et, onUnmounted as ke, vShow as vn, createStaticVNode as mn } from "vue";
2
+ import { vTooltip as Y, VueButton as fe, VueIcon as ue, VueDropdown as hn, VueDropdownButton as _t, VueInput as Ce, VueIcIcon as Ze, VueCodeBlock as gn, VueDialog as Cn, VueSwitch as yn, VueSelect as _n } from "@vue/devtools-ui";
3
+ import { isPlainObject as xn, UNDEFINED as Dt, NAN as bn, INFINITY as wn, NEGATIVE_INFINITY as kn, getRaw as Pt, toSubmit as je, formatInspectorStateValue as In, getInspectorStateValueType as xt, escape as $n, toEdit as Sn, parse as ne } from "@vue/devtools-kit";
4
+ import { rpc as A, useDevToolsState as Lt, DevToolsMessagingEvents as X, onRpcConnected as De } from "@vue/devtools-core";
5
+ import { Splitpanes as Pe, Pane as de } from "splitpanes";
6
+ import { isArray as bt, isObject as wt, sortByKey as Mt, isInSeparateWindow as Tn, isInChromePanel as kt } from "@vue/devtools-shared";
7
+ import { debounce as En } from "perfect-debounce";
8
+ import { RecycleScroller as Vn } from "vue-virtual-scroller";
9
+ import { flatten as Nn, groupBy as An } from "lodash-es";
10
+ function It(t) {
11
+ return t.toString(16).padStart(6, "0");
12
12
  }
13
- function Tn(n, e) {
14
- const o = new Date(n);
13
+ function Rn(t, e) {
14
+ const o = new Date(t);
15
15
  return `${o.toString().match(/\d\d:\d\d:\d\d/)[0]}${e === "ms" ? `.${String(o.getMilliseconds()).padStart(3, "0")}` : ""}`;
16
16
  }
17
- function En(n, e) {
18
- const o = /* @__PURE__ */ new Map(), t = At(n, e.toLowerCase(), o, 0);
19
- return o.clear(), t;
17
+ function Dn(t, e) {
18
+ const o = /* @__PURE__ */ new Map(), n = Ot(t, e.toLowerCase(), o, 0);
19
+ return o.clear(), n;
20
20
  }
21
- const Pt = 10;
22
- function At(n, e, o, t) {
23
- if (t > Pt)
21
+ const Ht = 10;
22
+ function Ot(t, e, o, n) {
23
+ if (n > Ht)
24
24
  return !1;
25
25
  let l = !1;
26
- const s = Object.keys(n);
26
+ const s = Object.keys(t);
27
27
  let p, r;
28
- for (let i = 0; i < s.length && (p = s[i], r = n[p], l = Mt(e, p, r, o, t + 1), !l); i++)
28
+ for (let i = 0; i < s.length && (p = s[i], r = t[p], l = Ut(e, p, r, o, n + 1), !l); i++)
29
29
  ;
30
30
  return l;
31
31
  }
32
- function Mt(n, e, o, t, l) {
32
+ function Ut(t, e, o, n, l) {
33
33
  let s = !1, p;
34
- return e === "_custom" && (e = o.display, o = o.value), (p = Vn(o)) && (o = p), e && bt(e, n) ? (s = !0, t.set(o, !0)) : t.has(o) ? s = t.get(o) : Array.isArray(o) ? (t.set(o, null), s = Nn(o, n, t, l), t.set(o, s)) : hn(o) ? (t.set(o, null), s = At(o, n, t, l), t.set(o, s)) : bt(o, n) && (s = !0, t.set(o, !0)), s;
34
+ return e === "_custom" && (e = o.display, o = o.value), (p = Pn(o)) && (o = p), e && $t(e, t) ? (s = !0, n.set(o, !0)) : n.has(o) ? s = n.get(o) : Array.isArray(o) ? (n.set(o, null), s = Ln(o, t, n, l), n.set(o, s)) : xn(o) ? (n.set(o, null), s = Ot(o, t, n, l), n.set(o, s)) : $t(o, t) && (s = !0, n.set(o, !0)), s;
35
35
  }
36
- function bt(n, e) {
37
- return `${n}`.toLowerCase().includes(e);
36
+ function $t(t, e) {
37
+ return `${t}`.toLowerCase().includes(e);
38
38
  }
39
- function Vn(n) {
40
- return n === null ? "null" : n === Vt ? "undefined" : n === gn ? "NaN" : n === Cn ? "Infinity" : n === yn ? "-Infinity" : !1;
39
+ function Pn(t) {
40
+ return t === null ? "null" : t === Dt ? "undefined" : t === bn ? "NaN" : t === wn ? "Infinity" : t === kn ? "-Infinity" : !1;
41
41
  }
42
- function Nn(n, e, o, t) {
43
- if (t > Pt)
42
+ function Ln(t, e, o, n) {
43
+ if (n > Ht)
44
44
  return !1;
45
45
  let l = !1, s;
46
- for (let p = 0; p < n.length && (s = n[p], l = Mt(e, null, s, o, t + 1), !l); p++)
46
+ for (let p = 0; p < t.length && (s = t[p], l = Ut(e, null, s, o, n + 1), !l); p++)
47
47
  ;
48
48
  return l;
49
49
  }
50
- function Xe(n) {
51
- const { state: e, filterKey: o, processGroup: t } = n;
50
+ function tt(t) {
51
+ const { state: e, filterKey: o, processGroup: n } = t;
52
52
  if (!o || !o.trim().length)
53
53
  return e;
54
54
  const l = {};
55
55
  for (const s in e) {
56
- const r = e[s].filter((i) => En({
56
+ const r = e[s].filter((i) => Dn({
57
57
  // @ts-expect-error typing weak
58
58
  [i.key]: i.value
59
59
  }, o));
60
- r.length && (l[s] = t ? t(r) : r);
60
+ r.length && (l[s] = n ? n(r) : r);
61
61
  }
62
62
  return l;
63
63
  }
64
- const Lt = /* @__PURE__ */ F({
64
+ const jt = /* @__PURE__ */ F({
65
65
  __name: "NodeTag",
66
66
  props: {
67
67
  tag: {}
68
68
  },
69
- setup(n) {
70
- return (e, o) => W((c(), m("span", {
71
- style: $e({
72
- color: `#${a(xt)(e.tag.textColor)}`,
73
- backgroundColor: `#${a(xt)(e.tag.backgroundColor)}`
69
+ setup(t) {
70
+ return (e, o) => q((c(), m("span", {
71
+ style: Se({
72
+ color: `#${a(It)(e.tag.textColor)}`,
73
+ backgroundColor: `#${a(It)(e.tag.backgroundColor)}`
74
74
  }),
75
75
  class: "ml-2 rounded-sm px-1 text-[0.75rem] leading-snug"
76
76
  }, [
77
- X(ie(e.tag.label), 1)
77
+ Q(re(e.tag.label), 1)
78
78
  ], 4)), [
79
- [a(q), {
79
+ [a(Y), {
80
80
  content: e.tag.tooltip,
81
81
  html: !0
82
82
  }]
83
83
  ]);
84
84
  }
85
- }), Rn = { class: "p2" }, Dn = ["onClick"], Pn = /* @__PURE__ */ F({
85
+ }), Mn = { class: "p2" }, Hn = ["onClick"], On = /* @__PURE__ */ F({
86
86
  __name: "SelectiveList",
87
- props: /* @__PURE__ */ Ne({
87
+ props: /* @__PURE__ */ Re({
88
88
  data: {}
89
89
  }, {
90
90
  modelValue: {},
91
91
  modelModifiers: {}
92
92
  }),
93
- emits: /* @__PURE__ */ Ne(["select"], ["update:modelValue"]),
94
- setup(n, { emit: e }) {
95
- const o = e, t = We(n, "modelValue");
93
+ emits: /* @__PURE__ */ Re(["select"], ["update:modelValue"]),
94
+ setup(t, { emit: e }) {
95
+ const o = e, n = Ye(t, "modelValue");
96
96
  function l(s) {
97
- t.value = s, o("select", s);
97
+ n.value = s, o("select", s);
98
98
  }
99
- return (s, p) => (c(), m("ul", Rn, [
100
- (c(!0), m(ne, null, ue(s.data, (r) => (c(), m("li", {
99
+ return (s, p) => (c(), m("ul", Mn, [
100
+ (c(!0), m(le, null, ce(s.data, (r) => (c(), m("li", {
101
101
  key: r.id,
102
- class: ae(["selectable-item", { active: r.id === t.value }]),
102
+ class: ie(["selectable-item", { active: r.id === n.value }]),
103
103
  onClick: (i) => l(r.id)
104
104
  }, [
105
- X(ie(r.label) + " ", 1),
106
- (c(!0), m(ne, null, ue(r.tags, (i, f) => (c(), z(Lt, {
105
+ Q(re(r.label) + " ", 1),
106
+ (c(!0), m(le, null, ce(r.tags, (i, f) => (c(), z(jt, {
107
107
  key: f,
108
108
  tag: i
109
109
  }, null, 8, ["tag"]))), 128))
110
- ], 10, Dn))), 128))
110
+ ], 10, Hn))), 128))
111
111
  ]));
112
112
  }
113
- }), Qe = Symbol("VirtualRouteKey"), Ht = Symbol("VirtualRoutesKey");
114
- function et(n, e) {
115
- const o = e?.defaultRoutePath ?? J(n)[0].path, t = N({
113
+ }), nt = Symbol("VirtualRouteKey"), zt = Symbol("VirtualRoutesKey");
114
+ function ot(t, e) {
115
+ const o = e?.defaultRoutePath ?? J(t)[0].path, n = N({
116
116
  path: o
117
- }), l = I(() => J(n)), s = I(() => t.value.path), p = F({
117
+ }), l = S(() => J(t)), s = S(() => n.value.path), p = F({
118
118
  setup() {
119
119
  return () => {
120
120
  const i = l.value.find((f) => f.path === s.value);
121
- return i ? ln(i.component) : null;
121
+ return i ? cn(i.component) : null;
122
122
  };
123
123
  }
124
124
  });
125
125
  function r() {
126
- t.value.path = o;
126
+ n.value.path = o;
127
127
  }
128
- return ye(Qe, t), ye(Ht, l), { VirtualRouterView: p, restoreRouter: r };
128
+ return _e(nt, n), _e(zt, l), { VirtualRouterView: p, restoreRouter: r };
129
129
  }
130
- function Pe() {
131
- const n = me(Qe);
130
+ function Le() {
131
+ const t = ge(nt);
132
132
  return {
133
133
  push(e) {
134
- n.value.path = e;
134
+ t.value.path = e;
135
135
  }
136
136
  };
137
137
  }
138
- function An() {
139
- const n = me(Ht), e = me(Qe);
138
+ function Un() {
139
+ const t = ge(zt), e = ge(nt);
140
140
  return {
141
- routes: n,
141
+ routes: t,
142
142
  currentRoute: e
143
143
  };
144
144
  }
145
- const Mn = {
145
+ const jn = {
146
146
  border: "b base",
147
147
  class: "flex items-center justify-between px3"
148
- }, Ln = ["href"], Hn = ["href"], Se = /* @__PURE__ */ F({
148
+ }, zn = ["href"], Bn = ["href"], Te = /* @__PURE__ */ F({
149
149
  __name: "DevToolsHeader",
150
150
  props: {
151
151
  githubRepoLink: {},
152
152
  docLink: {}
153
153
  },
154
- setup(n) {
155
- const e = Pe();
156
- return (o, t) => (c(), m("div", Mn, [
154
+ setup(t) {
155
+ const e = Le();
156
+ return (o, n) => (c(), m("div", jn, [
157
157
  u("div", null, [
158
- qe(o.$slots, "default", {}, () => [
158
+ Xe(o.$slots, "default", {}, () => [
159
159
  u("i", {
160
160
  class: "i-ep:back cursor-pointer text-base op70 hover:op100",
161
- onClick: t[0] || (t[0] = (l) => a(e).push("/"))
161
+ onClick: n[0] || (n[0] = (l) => a(e).push("/"))
162
162
  })
163
163
  ])
164
164
  ]),
@@ -168,108 +168,108 @@ const Mn = {
168
168
  href: o.docLink,
169
169
  target: "_blank",
170
170
  title: "View Documentation"
171
- }, t[1] || (t[1] = [
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, Ln),
173
+ ])], 8, zn),
174
174
  o.githubRepoLink ? (c(), m("a", {
175
175
  key: 0,
176
176
  href: o.githubRepoLink,
177
177
  target: "_blank",
178
178
  title: "Star on GitHub"
179
- }, t[2] || (t[2] = [
179
+ }, [...n[2] || (n[2] = [
180
180
  u("i", { class: "i-mdi:github cursor-pointer text-base op70 hover:op100" }, null, -1)
181
- ]), 8, Hn)) : U("", !0)
181
+ ])], 8, Bn)) : j("", !0)
182
182
  ])
183
183
  ]));
184
184
  }
185
- }), xe = (n, e) => {
186
- const o = n.__vccOpts || n;
187
- for (const [t, l] of e)
188
- o[t] = l;
185
+ }), be = (t, e) => {
186
+ const o = t.__vccOpts || t;
187
+ for (const [n, l] of e)
188
+ o[n] = l;
189
189
  return o;
190
- }, Un = {}, On = { class: "h-full flex flex-col items-center justify-center op50" };
191
- function jn(n, e) {
192
- return c(), m("div", On, [
190
+ }, Zn = {}, Fn = { class: "h-full flex flex-col items-center justify-center op50" };
191
+ function Kn(t, e) {
192
+ return c(), m("div", Fn, [
193
193
  e[0] || (e[0] = u("i", { class: "i-lets-icons:blank-light" }, null, -1)),
194
194
  u("span", null, [
195
- qe(n.$slots, "default")
195
+ Xe(t.$slots, "default")
196
196
  ])
197
197
  ]);
198
198
  }
199
- const Ie = /* @__PURE__ */ xe(Un, [["render", jn]]), zn = { class: "flex gap3" }, Bn = ["onClick"], Te = /* @__PURE__ */ F({
199
+ const $e = /* @__PURE__ */ be(Zn, [["render", Kn]]), Gn = { class: "flex gap3" }, Wn = ["onClick"], Ee = /* @__PURE__ */ F({
200
200
  __name: "Navbar",
201
- setup(n) {
202
- const { routes: e, currentRoute: o } = An(), t = Pe();
203
- return (l, s) => (c(), m("ul", zn, [
204
- (c(!0), m(ne, null, ue(a(e), (p, r) => (c(), m("li", {
201
+ setup(t) {
202
+ const { routes: e, currentRoute: o } = Un(), n = Le();
203
+ return (l, s) => (c(), m("ul", Gn, [
204
+ (c(!0), m(le, null, ce(a(e), (p, r) => (c(), m("li", {
205
205
  key: r,
206
- class: ae(["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
- onClick: (i) => a(t).push(p.path)
208
- }, ie(p.name), 11, Bn))), 128))
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
+ onClick: (i) => a(n).push(p.path)
208
+ }, re(p.name), 11, Wn))), 128))
209
209
  ]));
210
210
  }
211
- }), tt = /* @__PURE__ */ F({
211
+ }), lt = /* @__PURE__ */ F({
212
212
  __name: "ToggleExpanded",
213
213
  props: {
214
214
  value: { type: Boolean }
215
215
  },
216
- setup(n) {
216
+ setup(t) {
217
217
  return (e, o) => (c(), m("i", {
218
- class: ae(["i-radix-icons:triangle-right flex-none text-4 op-50 transition-base", {
218
+ class: ie(["i-radix-icons:triangle-right flex-none text-4 op-50 transition-base", {
219
219
  "transform rotate-90": e.value
220
220
  }])
221
221
  }, null, 2));
222
222
  }
223
- }), Ut = Symbol("StateEditorSymbol");
224
- function Fn(n) {
225
- const e = N(n);
226
- return ye(Ut, e), {
223
+ }), Bt = Symbol("StateEditorSymbol");
224
+ function qn(t) {
225
+ const e = N(t);
226
+ return _e(Bt, e), {
227
227
  context: e
228
228
  };
229
229
  }
230
- function nt() {
231
- return me(Ut);
230
+ function st() {
231
+ return ge(Bt);
232
232
  }
233
- function Zn() {
234
- const n = N(""), e = N("string"), o = N(!1), t = nt();
233
+ function Jn() {
234
+ const t = N(""), e = N("string"), o = N(!1), n = st();
235
235
  return {
236
- editingText: n,
236
+ editingText: t,
237
237
  editing: o,
238
238
  toggleEditing(l) {
239
239
  l && (e.value = l), o.value = !o.value;
240
240
  },
241
241
  editingType: e,
242
- nodeId: I(() => t.value.nodeId)
242
+ nodeId: S(() => n.value.nodeId)
243
243
  };
244
244
  }
245
- function Kn(n, e) {
246
- if (n === "array")
245
+ function Yn(t, e) {
246
+ if (t === "array")
247
247
  return e.length;
248
248
  const o = "newProp";
249
- let t = 1;
249
+ let n = 1;
250
250
  for (; ; ) {
251
- const l = `${o}${t}`;
251
+ const l = `${o}${n}`;
252
252
  if (!e[l])
253
253
  return l;
254
- t++;
254
+ n++;
255
255
  }
256
256
  }
257
- function Gn() {
258
- const n = N({
257
+ function Xn() {
258
+ const t = N({
259
259
  enable: !1,
260
260
  key: "",
261
261
  value: "undefined"
262
262
  });
263
- function e(t, l) {
264
- const s = Kn(t, l);
265
- n.value = {
263
+ function e(n, l) {
264
+ const s = Yn(n, l);
265
+ t.value = {
266
266
  enable: !0,
267
267
  key: s.toString(),
268
268
  value: "undefined"
269
269
  };
270
270
  }
271
271
  function o() {
272
- n.value = {
272
+ t.value = {
273
273
  enable: !1,
274
274
  key: "",
275
275
  value: "undefined"
@@ -278,161 +278,162 @@ function Gn() {
278
278
  return {
279
279
  addNewProp: e,
280
280
  resetDrafting: o,
281
- draftingNewProp: n
281
+ draftingNewProp: t
282
282
  };
283
283
  }
284
- const Ot = "expanded-state";
285
- function ge(n = "") {
284
+ const Zt = "expanded-state";
285
+ function ye(t = "") {
286
286
  const e = N([]);
287
- return ye(`${Ot}-${n}`, e), {
287
+ return _e(`${Zt}-${t}`, e), {
288
288
  expanded: e
289
289
  };
290
290
  }
291
- function ot(n = "") {
292
- const e = me(`${Ot}-${n}`, N([]));
293
- function o(t) {
294
- const l = e.value.indexOf(t);
295
- l === -1 ? e.value.push(t) : e.value.splice(l, 1);
291
+ function at(t = "") {
292
+ const e = ge(`${Zt}-${t}`, N([]));
293
+ function o(n) {
294
+ const l = e.value.indexOf(n);
295
+ l === -1 ? e.value.push(n) : e.value.splice(l, 1);
296
296
  }
297
297
  return {
298
298
  expanded: e,
299
299
  toggleExpanded: o
300
300
  };
301
301
  }
302
- function lt(n) {
303
- return an() ? (rn(n), !0) : !1;
302
+ function it(t) {
303
+ return pn() ? (fn(t), !0) : !1;
304
304
  }
305
- const st = typeof window < "u" && typeof document < "u";
305
+ const rt = typeof window < "u" && typeof document < "u";
306
306
  typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
307
- const Wn = (n) => typeof n < "u", qn = Object.prototype.toString, Jn = (n) => qn.call(n) === "[object Object]", Ke = () => {
307
+ const Qn = (t) => typeof t < "u", eo = Object.prototype.toString, to = (t) => eo.call(t) === "[object Object]", qe = () => {
308
308
  };
309
- function jt(n, e) {
310
- function o(...t) {
309
+ function Ft(t, e) {
310
+ function o(...n) {
311
311
  return new Promise((l, s) => {
312
- Promise.resolve(n(() => e.apply(this, t), { fn: e, thisArg: this, args: t })).then(l).catch(s);
312
+ Promise.resolve(t(() => e.apply(this, n), { fn: e, thisArg: this, args: n })).then(l).catch(s);
313
313
  });
314
314
  }
315
315
  return o;
316
316
  }
317
- const Yn = (n) => n();
318
- function zt(n, e = {}) {
319
- let o, t, l = Ke;
317
+ const no = (t) => t();
318
+ function Kt(t, e = {}) {
319
+ let o, n, l = qe;
320
320
  const s = (i) => {
321
- clearTimeout(i), l(), l = Ke;
321
+ clearTimeout(i), l(), l = qe;
322
322
  };
323
323
  let p;
324
324
  return (i) => {
325
- const f = J(n), v = J(e.maxWait);
326
- return o && s(o), f <= 0 || v !== void 0 && v <= 0 ? (t && (s(t), t = void 0), Promise.resolve(i())) : new Promise((d, h) => {
327
- l = e.rejectOnCancel ? h : d, p = i, v && !t && (t = setTimeout(() => {
328
- o && s(o), t = void 0, d(p());
325
+ const f = J(t), v = J(e.maxWait);
326
+ return o && s(o), f <= 0 || v !== void 0 && v <= 0 ? (n && (s(n), n = void 0), Promise.resolve(i())) : new Promise((d, h) => {
327
+ l = e.rejectOnCancel ? h : d, p = i, v && !n && (n = setTimeout(() => {
328
+ o && s(o), n = void 0, d(p());
329
329
  }, v)), o = setTimeout(() => {
330
- t && s(t), t = void 0, d(i());
330
+ n && s(n), n = void 0, d(i());
331
331
  }, f);
332
332
  });
333
333
  };
334
334
  }
335
- function wt(n, e = !1, o = "Timeout") {
336
- return new Promise((t, l) => {
337
- setTimeout(e ? () => l(o) : t, n);
335
+ function St(t, e = !1, o = "Timeout") {
336
+ return new Promise((n, l) => {
337
+ setTimeout(e ? () => l(o) : n, t);
338
338
  });
339
339
  }
340
- function Xn(n) {
340
+ function oo(t) {
341
341
  let e;
342
342
  function o() {
343
- return e || (e = n()), e;
343
+ return e || (e = t()), e;
344
344
  }
345
345
  return o.reset = async () => {
346
- const t = e;
347
- e = void 0, t && await t;
346
+ const n = e;
347
+ e = void 0, n && await n;
348
348
  }, o;
349
349
  }
350
- function Ue(n) {
351
- return Array.isArray(n) ? n : [n];
350
+ function ze(t) {
351
+ return Array.isArray(t) ? t : [t];
352
352
  }
353
- function Qn(n) {
354
- return Je();
353
+ function lo(t) {
354
+ return Qe();
355
355
  }
356
- function kt(n, e = 200, o = {}) {
357
- return jt(
358
- zt(e, o),
359
- n
356
+ // @__NO_SIDE_EFFECTS__
357
+ function Tt(t, e = 200, o = {}) {
358
+ return Ft(
359
+ Kt(e, o),
360
+ t
360
361
  );
361
362
  }
362
- function eo(n, e, o = {}) {
363
+ function so(t, e, o = {}) {
363
364
  const {
364
- eventFilter: t = Yn,
365
+ eventFilter: n = no,
365
366
  ...l
366
367
  } = o;
367
- return Q(
368
- n,
369
- jt(
370
- t,
368
+ return te(
369
+ t,
370
+ Ft(
371
+ n,
371
372
  e
372
373
  ),
373
374
  l
374
375
  );
375
376
  }
376
- function to(n, e = !0, o) {
377
- Qn() ? Tt(n, o) : e ? n() : Oe(n);
377
+ function ao(t, e = !0, o) {
378
+ lo() ? At(t, o) : e ? t() : Be(t);
378
379
  }
379
- function Ge(n, e = !1) {
380
- function o(d, { flush: h = "sync", deep: $ = !1, timeout: E, throwOnTimeout: k } = {}) {
381
- let b = null;
382
- const V = [new Promise((_) => {
383
- b = Q(
384
- n,
380
+ function Je(t, e = !1) {
381
+ function o(d, { flush: h = "sync", deep: T = !1, timeout: E, throwOnTimeout: $ } = {}) {
382
+ let I = null;
383
+ const V = [new Promise((w) => {
384
+ I = te(
385
+ t,
385
386
  (D) => {
386
- d(D) !== e && (b ? b() : Oe(() => b?.()), _(D));
387
+ d(D) !== e && (I ? I() : Be(() => I?.()), w(D));
387
388
  },
388
389
  {
389
390
  flush: h,
390
- deep: $,
391
+ deep: T,
391
392
  immediate: !0
392
393
  }
393
394
  );
394
395
  })];
395
396
  return E != null && V.push(
396
- wt(E, k).then(() => J(n)).finally(() => b?.())
397
+ St(E, $).then(() => J(t)).finally(() => I?.())
397
398
  ), Promise.race(V);
398
399
  }
399
- function t(d, h) {
400
- if (!ze(d))
400
+ function n(d, h) {
401
+ if (!Fe(d))
401
402
  return o((D) => D === d, h);
402
- const { flush: $ = "sync", deep: E = !1, timeout: k, throwOnTimeout: b } = h ?? {};
403
- let A = null;
404
- const _ = [new Promise((D) => {
405
- A = Q(
406
- [n, d],
407
- ([Z, K]) => {
408
- e !== (Z === K) && (A ? A() : Oe(() => A?.()), D(Z));
403
+ const { flush: T = "sync", deep: E = !1, timeout: $, throwOnTimeout: I } = h ?? {};
404
+ let L = null;
405
+ const w = [new Promise((D) => {
406
+ L = te(
407
+ [t, d],
408
+ ([B, G]) => {
409
+ e !== (B === G) && (L ? L() : Be(() => L?.()), D(B));
409
410
  },
410
411
  {
411
- flush: $,
412
+ flush: T,
412
413
  deep: E,
413
414
  immediate: !0
414
415
  }
415
416
  );
416
417
  })];
417
- return k != null && _.push(
418
- wt(k, b).then(() => J(n)).finally(() => (A?.(), J(n)))
419
- ), Promise.race(_);
418
+ return $ != null && w.push(
419
+ St($, I).then(() => J(t)).finally(() => (L?.(), J(t)))
420
+ ), Promise.race(w);
420
421
  }
421
422
  function l(d) {
422
423
  return o((h) => !!h, d);
423
424
  }
424
425
  function s(d) {
425
- return t(null, d);
426
+ return n(null, d);
426
427
  }
427
428
  function p(d) {
428
- return t(void 0, d);
429
+ return n(void 0, d);
429
430
  }
430
431
  function r(d) {
431
432
  return o(Number.isNaN, d);
432
433
  }
433
434
  function i(d, h) {
434
- return o(($) => {
435
- const E = Array.from($);
435
+ return o((T) => {
436
+ const E = Array.from(T);
436
437
  return E.includes(d) || E.includes(J(d));
437
438
  }, h);
438
439
  }
@@ -440,20 +441,20 @@ function Ge(n, e = !1) {
440
441
  return v(1, d);
441
442
  }
442
443
  function v(d = 1, h) {
443
- let $ = -1;
444
- return o(() => ($ += 1, $ >= d), h);
444
+ let T = -1;
445
+ return o(() => (T += 1, T >= d), h);
445
446
  }
446
- return Array.isArray(J(n)) ? {
447
+ return Array.isArray(J(t)) ? {
447
448
  toMatch: o,
448
449
  toContains: i,
449
450
  changed: f,
450
451
  changedTimes: v,
451
452
  get not() {
452
- return Ge(n, !e);
453
+ return Je(t, !e);
453
454
  }
454
455
  } : {
455
456
  toMatch: o,
456
- toBe: t,
457
+ toBe: n,
457
458
  toBeTruthy: l,
458
459
  toBeNull: s,
459
460
  toBeNaN: r,
@@ -461,18 +462,18 @@ function Ge(n, e = !1) {
461
462
  changed: f,
462
463
  changedTimes: v,
463
464
  get not() {
464
- return Ge(n, !e);
465
+ return Je(t, !e);
465
466
  }
466
467
  };
467
468
  }
468
- function Bt(n) {
469
- return Ge(n);
469
+ function Gt(t) {
470
+ return Je(t);
470
471
  }
471
- function no(n, e, o = {}) {
472
+ function io(t, e, o = {}) {
472
473
  const {
473
- immediate: t = !0,
474
+ immediate: n = !0,
474
475
  immediateCallback: l = !1
475
- } = o, s = pe(!1);
476
+ } = o, s = me(!1);
476
477
  let p;
477
478
  function r() {
478
479
  p && (clearTimeout(p), p = void 0);
@@ -481,49 +482,50 @@ function no(n, e, o = {}) {
481
482
  s.value = !1, r();
482
483
  }
483
484
  function f(...v) {
484
- l && n(), r(), s.value = !0, p = setTimeout(() => {
485
- s.value = !1, p = void 0, n(...v);
485
+ l && t(), r(), s.value = !0, p = setTimeout(() => {
486
+ s.value = !1, p = void 0, t(...v);
486
487
  }, J(e));
487
488
  }
488
- return t && (s.value = !0, st && f()), lt(i), {
489
- isPending: sn(s),
489
+ return n && (s.value = !0, rt && f()), it(i), {
490
+ isPending: dn(s),
490
491
  start: f,
491
492
  stop: i
492
493
  };
493
494
  }
494
- function Ft(n = !1, e = {}) {
495
+ // @__NO_SIDE_EFFECTS__
496
+ function Wt(t = !1, e = {}) {
495
497
  const {
496
498
  truthyValue: o = !0,
497
- falsyValue: t = !1
498
- } = e, l = ze(n), s = pe(n);
499
+ falsyValue: n = !1
500
+ } = e, l = Fe(t), s = me(t);
499
501
  function p(r) {
500
502
  if (arguments.length)
501
503
  return s.value = r, s.value;
502
504
  {
503
505
  const i = J(o);
504
- return s.value = s.value === i ? J(t) : i, s.value;
506
+ return s.value = s.value === i ? J(n) : i, s.value;
505
507
  }
506
508
  }
507
509
  return l ? p : [s, p];
508
510
  }
509
- function Zt(n, e, o = {}) {
511
+ function qt(t, e, o = {}) {
510
512
  const {
511
- debounce: t = 0,
513
+ debounce: n = 0,
512
514
  maxWait: l = void 0,
513
515
  ...s
514
516
  } = o;
515
- return eo(
516
- n,
517
+ return so(
518
+ t,
517
519
  e,
518
520
  {
519
521
  ...s,
520
- eventFilter: zt(t, { maxWait: l })
522
+ eventFilter: Kt(n, { maxWait: l })
521
523
  }
522
524
  );
523
525
  }
524
- function oo(n, e, o) {
525
- return Q(
526
- n,
526
+ function ro(t, e, o) {
527
+ return te(
528
+ t,
527
529
  e,
528
530
  {
529
531
  ...o,
@@ -531,37 +533,37 @@ function oo(n, e, o) {
531
533
  }
532
534
  );
533
535
  }
534
- const Be = st ? window : void 0, Kt = st ? window.navigator : void 0;
535
- function be(n) {
536
+ const Me = rt ? window : void 0, Jt = rt ? window.navigator : void 0;
537
+ function we(t) {
536
538
  var e;
537
- const o = J(n);
539
+ const o = J(t);
538
540
  return (e = o?.$el) != null ? e : o;
539
541
  }
540
- function ve(...n) {
542
+ function ve(...t) {
541
543
  const e = [], o = () => {
542
544
  e.forEach((r) => r()), e.length = 0;
543
- }, t = (r, i, f, v) => (r.addEventListener(i, f, v), () => r.removeEventListener(i, f, v)), l = I(() => {
544
- const r = Ue(J(n[0])).filter((i) => i != null);
545
+ }, n = (r, i, f, v) => (r.addEventListener(i, f, v), () => r.removeEventListener(i, f, v)), l = S(() => {
546
+ const r = ze(J(t[0])).filter((i) => i != null);
545
547
  return r.every((i) => typeof i != "string") ? r : void 0;
546
- }), s = oo(
548
+ }), s = ro(
547
549
  () => {
548
550
  var r, i;
549
551
  return [
550
- (i = (r = l.value) == null ? void 0 : r.map((f) => be(f))) != null ? i : [Be].filter((f) => f != null),
551
- Ue(J(l.value ? n[1] : n[0])),
552
- Ue(a(l.value ? n[2] : n[1])),
552
+ (i = (r = l.value) == null ? void 0 : r.map((f) => we(f))) != null ? i : [Me].filter((f) => f != null),
553
+ ze(J(l.value ? t[1] : t[0])),
554
+ ze(a(l.value ? t[2] : t[1])),
553
555
  // @ts-expect-error - TypeScript gets the correct types, but somehow still complains
554
- J(l.value ? n[3] : n[2])
556
+ J(l.value ? t[3] : t[2])
555
557
  ];
556
558
  },
557
559
  ([r, i, f, v]) => {
558
560
  if (o(), !r?.length || !i?.length || !f?.length)
559
561
  return;
560
- const d = Jn(v) ? { ...v } : v;
562
+ const d = to(v) ? { ...v } : v;
561
563
  e.push(
562
564
  ...r.flatMap(
563
565
  (h) => i.flatMap(
564
- ($) => f.map((E) => t(h, $, E, d))
566
+ (T) => f.map((E) => n(h, T, E, d))
565
567
  )
566
568
  )
567
569
  );
@@ -570,39 +572,58 @@ function ve(...n) {
570
572
  ), p = () => {
571
573
  s(), o();
572
574
  };
573
- return lt(o), p;
575
+ return it(o), p;
574
576
  }
575
- function lo() {
576
- const n = pe(!1), e = Je();
577
- return e && Tt(() => {
578
- n.value = !0;
579
- }, e), n;
577
+ // @__NO_SIDE_EFFECTS__
578
+ function uo() {
579
+ const t = me(!1), e = Qe();
580
+ return e && At(() => {
581
+ t.value = !0;
582
+ }, e), t;
580
583
  }
581
- function at(n) {
582
- const e = lo();
583
- return I(() => (e.value, !!n()));
584
+ // @__NO_SIDE_EFFECTS__
585
+ function ut(t) {
586
+ const e = /* @__PURE__ */ uo();
587
+ return S(() => (e.value, !!t()));
584
588
  }
585
- function It(n, e = {}) {
589
+ function co(t) {
590
+ return typeof t == "function" ? t : typeof t == "string" ? (e) => e.key === t : Array.isArray(t) ? (e) => t.includes(e.key) : () => !0;
591
+ }
592
+ function Ne(...t) {
593
+ let e, o, n = {};
594
+ t.length === 3 ? (e = t[0], o = t[1], n = t[2]) : t.length === 2 ? typeof t[1] == "object" ? (e = !0, o = t[0], n = t[1]) : (e = t[0], o = t[1]) : (e = !0, o = t[0]);
595
+ const {
596
+ target: l = Me,
597
+ eventName: s = "keydown",
598
+ passive: p = !1,
599
+ dedupe: r = !1
600
+ } = n, i = co(e);
601
+ return ve(l, s, (v) => {
602
+ v.repeat && J(r) || i(v) && o(v);
603
+ }, p);
604
+ }
605
+ // @__NO_SIDE_EFFECTS__
606
+ function Et(t, e = {}) {
586
607
  const {
587
608
  controls: o = !1,
588
- navigator: t = Kt
589
- } = e, l = at(() => t && "permissions" in t), s = pe(), p = typeof n == "string" ? { name: n } : n, r = pe(), i = () => {
609
+ navigator: n = Jt
610
+ } = e, l = /* @__PURE__ */ ut(() => n && "permissions" in n), s = me(), p = typeof t == "string" ? { name: t } : t, r = me(), i = () => {
590
611
  var v, d;
591
612
  r.value = (d = (v = s.value) == null ? void 0 : v.state) != null ? d : "prompt";
592
613
  };
593
614
  ve(s, "change", i, { passive: !0 });
594
- const f = Xn(async () => {
615
+ const f = oo(async () => {
595
616
  if (l.value) {
596
617
  if (!s.value)
597
618
  try {
598
- s.value = await t.permissions.query(p);
619
+ s.value = await n.permissions.query(p);
599
620
  } catch {
600
621
  s.value = void 0;
601
622
  } finally {
602
623
  i();
603
624
  }
604
625
  if (o)
605
- return Et(s.value);
626
+ return Rt(s.value);
606
627
  }
607
628
  });
608
629
  return f(), o ? {
@@ -611,46 +632,46 @@ function It(n, e = {}) {
611
632
  query: f
612
633
  } : r;
613
634
  }
614
- function so(n = {}) {
635
+ function po(t = {}) {
615
636
  const {
616
- navigator: e = Kt,
637
+ navigator: e = Jt,
617
638
  read: o = !1,
618
- source: t,
639
+ source: n,
619
640
  copiedDuring: l = 1500,
620
641
  legacy: s = !1
621
- } = n, p = at(() => e && "clipboard" in e), r = It("clipboard-read"), i = It("clipboard-write"), f = I(() => p.value || s), v = pe(""), d = pe(!1), h = no(() => d.value = !1, l, { immediate: !1 });
622
- async function $() {
623
- let V = !(p.value && A(r.value));
642
+ } = t, p = /* @__PURE__ */ ut(() => e && "clipboard" in e), r = /* @__PURE__ */ Et("clipboard-read"), i = /* @__PURE__ */ Et("clipboard-write"), f = S(() => p.value || s), v = me(""), d = me(!1), h = io(() => d.value = !1, l, { immediate: !1 });
643
+ async function T() {
644
+ let V = !(p.value && L(r.value));
624
645
  if (!V)
625
646
  try {
626
647
  v.value = await e.clipboard.readText();
627
648
  } catch {
628
649
  V = !0;
629
650
  }
630
- V && (v.value = b());
651
+ V && (v.value = I());
631
652
  }
632
- f.value && o && ve(["copy", "cut"], $, { passive: !0 });
633
- async function E(V = J(t)) {
653
+ f.value && o && ve(["copy", "cut"], T, { passive: !0 });
654
+ async function E(V = J(n)) {
634
655
  if (f.value && V != null) {
635
- let _ = !(p.value && A(i.value));
636
- if (!_)
656
+ let w = !(p.value && L(i.value));
657
+ if (!w)
637
658
  try {
638
659
  await e.clipboard.writeText(V);
639
660
  } catch {
640
- _ = !0;
661
+ w = !0;
641
662
  }
642
- _ && k(V), v.value = V, d.value = !0, h.start();
663
+ w && $(V), v.value = V, d.value = !0, h.start();
643
664
  }
644
665
  }
645
- function k(V) {
646
- const _ = document.createElement("textarea");
647
- _.value = V ?? "", _.style.position = "absolute", _.style.opacity = "0", document.body.appendChild(_), _.select(), document.execCommand("copy"), _.remove();
666
+ function $(V) {
667
+ const w = document.createElement("textarea");
668
+ w.value = V ?? "", w.style.position = "absolute", w.style.opacity = "0", document.body.appendChild(w), w.select(), document.execCommand("copy"), w.remove();
648
669
  }
649
- function b() {
650
- var V, _, D;
651
- return (D = (_ = (V = document?.getSelection) == null ? void 0 : V.call(document)) == null ? void 0 : _.toString()) != null ? D : "";
670
+ function I() {
671
+ var V, w, D;
672
+ return (D = (w = (V = document?.getSelection) == null ? void 0 : V.call(document)) == null ? void 0 : w.toString()) != null ? D : "";
652
673
  }
653
- function A(V) {
674
+ function L(V) {
654
675
  return V === "granted" || V === "prompt";
655
676
  }
656
677
  return {
@@ -660,21 +681,21 @@ function so(n = {}) {
660
681
  copy: E
661
682
  };
662
683
  }
663
- function ao(n) {
664
- return JSON.parse(JSON.stringify(n));
684
+ function fo(t) {
685
+ return JSON.parse(JSON.stringify(t));
665
686
  }
666
- function io(n, e, o = {}) {
667
- const { window: t = Be, ...l } = o;
687
+ function vo(t, e, o = {}) {
688
+ const { window: n = Me, ...l } = o;
668
689
  let s;
669
- const p = at(() => t && "ResizeObserver" in t), r = () => {
690
+ const p = /* @__PURE__ */ ut(() => n && "ResizeObserver" in n), r = () => {
670
691
  s && (s.disconnect(), s = void 0);
671
- }, i = I(() => {
672
- const d = J(n);
673
- return Array.isArray(d) ? d.map((h) => be(h)) : [be(d)];
674
- }), f = Q(
692
+ }, i = S(() => {
693
+ const d = J(t);
694
+ return Array.isArray(d) ? d.map((h) => we(h)) : [we(d)];
695
+ }), f = te(
675
696
  i,
676
697
  (d) => {
677
- if (r(), p.value && t) {
698
+ if (r(), p.value && n) {
678
699
  s = new ResizeObserver(e);
679
700
  for (const h of d)
680
701
  h && s.observe(h, l);
@@ -684,39 +705,39 @@ function io(n, e, o = {}) {
684
705
  ), v = () => {
685
706
  r(), f();
686
707
  };
687
- return lt(v), {
708
+ return it(v), {
688
709
  isSupported: p,
689
710
  stop: v
690
711
  };
691
712
  }
692
- function ro(n, e = { width: 0, height: 0 }, o = {}) {
693
- const { window: t = Be, box: l = "content-box" } = o, s = I(() => {
713
+ function mo(t, e = { width: 0, height: 0 }, o = {}) {
714
+ const { window: n = Me, box: l = "content-box" } = o, s = S(() => {
694
715
  var d, h;
695
- return (h = (d = be(n)) == null ? void 0 : d.namespaceURI) == null ? void 0 : h.includes("svg");
696
- }), p = pe(e.width), r = pe(e.height), { stop: i } = io(
697
- n,
716
+ return (h = (d = we(t)) == null ? void 0 : d.namespaceURI) == null ? void 0 : h.includes("svg");
717
+ }), p = me(e.width), r = me(e.height), { stop: i } = vo(
718
+ t,
698
719
  ([d]) => {
699
720
  const h = l === "border-box" ? d.borderBoxSize : l === "content-box" ? d.contentBoxSize : d.devicePixelContentBoxSize;
700
- if (t && s.value) {
701
- const $ = be(n);
702
- if ($) {
703
- const E = $.getBoundingClientRect();
721
+ if (n && s.value) {
722
+ const T = we(t);
723
+ if (T) {
724
+ const E = T.getBoundingClientRect();
704
725
  p.value = E.width, r.value = E.height;
705
726
  }
706
727
  } else if (h) {
707
- const $ = Ue(h);
708
- p.value = $.reduce((E, { inlineSize: k }) => E + k, 0), r.value = $.reduce((E, { blockSize: k }) => E + k, 0);
728
+ const T = ze(h);
729
+ p.value = T.reduce((E, { inlineSize: $ }) => E + $, 0), r.value = T.reduce((E, { blockSize: $ }) => E + $, 0);
709
730
  } else
710
731
  p.value = d.contentRect.width, r.value = d.contentRect.height;
711
732
  },
712
733
  o
713
734
  );
714
- to(() => {
715
- const d = be(n);
735
+ ao(() => {
736
+ const d = we(t);
716
737
  d && (p.value = "offsetWidth" in d ? d.offsetWidth : e.width, r.value = "offsetHeight" in d ? d.offsetHeight : e.height);
717
738
  });
718
- const f = Q(
719
- () => be(n),
739
+ const f = te(
740
+ () => we(t),
720
741
  (d) => {
721
742
  p.value = d ? e.width : 0, r.value = d ? e.height : 0;
722
743
  }
@@ -730,7 +751,7 @@ function ro(n, e = { width: 0, height: 0 }, o = {}) {
730
751
  stop: v
731
752
  };
732
753
  }
733
- const uo = {
754
+ const ho = {
734
755
  ctrl: "control",
735
756
  command: "meta",
736
757
  cmd: "meta",
@@ -740,60 +761,65 @@ const uo = {
740
761
  left: "arrowleft",
741
762
  right: "arrowright"
742
763
  };
743
- function co(n = {}) {
764
+ function go(t = {}) {
744
765
  const {
745
766
  reactive: e = !1,
746
- target: o = Be,
747
- aliasMap: t = uo,
767
+ target: o = Me,
768
+ aliasMap: n = ho,
748
769
  passive: l = !0,
749
- onEventFired: s = Ke
750
- } = n, p = mt(/* @__PURE__ */ new Set()), r = {
770
+ onEventFired: s = qe
771
+ } = t, p = yt(/* @__PURE__ */ new Set()), r = {
751
772
  toJSON() {
752
773
  return {};
753
774
  },
754
775
  current: p
755
- }, i = e ? mt(r) : r, f = /* @__PURE__ */ new Set(), v = /* @__PURE__ */ new Set(), d = /* @__PURE__ */ new Set();
756
- function h(b, A) {
757
- b in i && (e ? i[b] = A : i[b].value = A);
776
+ }, i = e ? yt(r) : r, f = /* @__PURE__ */ new Set(), v = /* @__PURE__ */ new Set(), d = /* @__PURE__ */ new Set();
777
+ function h(I, L) {
778
+ I in i && (e ? i[I] = L : i[I].value = L);
758
779
  }
759
- function $() {
780
+ function T() {
760
781
  p.clear();
761
- for (const b of d)
762
- h(b, !1);
782
+ for (const I of d)
783
+ h(I, !1);
763
784
  }
764
- function E(b, A) {
765
- var V, _;
766
- const D = (V = b.key) == null ? void 0 : V.toLowerCase(), K = [(_ = b.code) == null ? void 0 : _.toLowerCase(), D].filter(Boolean);
767
- D && (A ? p.add(D) : p.delete(D));
768
- for (const G of K)
769
- d.add(G), h(G, A);
770
- D === "shift" && !A ? (v.forEach((G) => {
771
- p.delete(G), h(G, !1);
772
- }), v.clear()) : typeof b.getModifierState == "function" && b.getModifierState("Shift") && A && [...p, ...K].forEach((G) => v.add(G)), D === "meta" && !A ? (f.forEach((G) => {
773
- p.delete(G), h(G, !1);
774
- }), f.clear()) : typeof b.getModifierState == "function" && b.getModifierState("Meta") && A && [...p, ...K].forEach((G) => f.add(G));
785
+ function E(I, L) {
786
+ var V, w;
787
+ const D = (V = I.key) == null ? void 0 : V.toLowerCase(), G = [(w = I.code) == null ? void 0 : w.toLowerCase(), D].filter(Boolean);
788
+ D && (L ? p.add(D) : p.delete(D));
789
+ for (const W of G)
790
+ d.add(W), h(W, L);
791
+ if (D === "shift" && !L) {
792
+ const W = Array.from(v), O = W.indexOf("shift");
793
+ W.forEach((C, U) => {
794
+ U >= O && (p.delete(C), h(C, !1));
795
+ }), v.clear();
796
+ } else typeof I.getModifierState == "function" && I.getModifierState("Shift") && L && [...p, ...G].forEach((W) => v.add(W));
797
+ D === "meta" && !L ? (f.forEach((W) => {
798
+ p.delete(W), h(W, !1);
799
+ }), f.clear()) : typeof I.getModifierState == "function" && I.getModifierState("Meta") && L && [...p, ...G].forEach((W) => f.add(W));
775
800
  }
776
- ve(o, "keydown", (b) => (E(b, !0), s(b)), { passive: l }), ve(o, "keyup", (b) => (E(b, !1), s(b)), { passive: l }), ve("blur", $, { passive: l }), ve("focus", $, { passive: l });
777
- const k = new Proxy(
801
+ ve(o, "keydown", (I) => (E(I, !0), s(I)), { passive: l }), ve(o, "keyup", (I) => (E(I, !1), s(I)), { passive: l }), ve("blur", T, { passive: l }), ve("focus", T, { passive: l });
802
+ const $ = new Proxy(
778
803
  i,
779
804
  {
780
- get(b, A, V) {
781
- if (typeof A != "string")
782
- return Reflect.get(b, A, V);
783
- if (A = A.toLowerCase(), A in t && (A = t[A]), !(A in i))
784
- if (/[+_-]/.test(A)) {
785
- const D = A.split(/[+_-]/g).map((Z) => Z.trim());
786
- i[A] = I(() => D.map((Z) => J(k[Z])).every(Boolean));
805
+ get(I, L, V) {
806
+ if (typeof L != "string")
807
+ return Reflect.get(I, L, V);
808
+ if (L = L.toLowerCase(), L in n && (L = n[L]), !(L in i))
809
+ if (/[+_-]/.test(L)) {
810
+ const D = L.split(/[+_-]/g).map((B) => B.trim());
811
+ i[L] = S(() => D.map((B) => J($[B])).every(Boolean));
787
812
  } else
788
- i[A] = pe(!1);
789
- const _ = Reflect.get(b, A, V);
790
- return e ? J(_) : _;
813
+ i[L] = me(!1);
814
+ const w = Reflect.get(I, L, V);
815
+ return e ? J(w) : w;
791
816
  }
792
817
  }
793
818
  );
794
- return k;
819
+ return $;
795
820
  }
796
- function po(n, e, o, t = {}) {
821
+ // @__NO_SIDE_EFFECTS__
822
+ function Co(t, e, o, n = {}) {
797
823
  var l, s, p;
798
824
  const {
799
825
  clone: r = !1,
@@ -802,54 +828,54 @@ function po(n, e, o, t = {}) {
802
828
  deep: v = !1,
803
829
  defaultValue: d,
804
830
  shouldEmit: h
805
- } = t, $ = Je(), E = o || $?.emit || ((l = $?.$emit) == null ? void 0 : l.bind($)) || ((p = (s = $?.proxy) == null ? void 0 : s.$emit) == null ? void 0 : p.bind($?.proxy));
806
- let k = f;
807
- k = k || `update:${e.toString()}`;
808
- const b = (_) => r ? typeof r == "function" ? r(_) : ao(_) : _, A = () => Wn(n[e]) ? b(n[e]) : d, V = (_) => {
809
- h ? h(_) && E(k, _) : E(k, _);
831
+ } = n, T = Qe(), E = 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 $ = f;
833
+ $ = $ || `update:${e.toString()}`;
834
+ const I = (w) => r ? typeof r == "function" ? r(w) : fo(w) : w, L = () => Qn(t[e]) ? I(t[e]) : d, V = (w) => {
835
+ h ? h(w) && E($, w) : E($, w);
810
836
  };
811
837
  if (i) {
812
- const _ = A(), D = N(_);
813
- let Z = !1;
814
- return Q(
815
- () => n[e],
816
- (K) => {
817
- Z || (Z = !0, D.value = b(K), Oe(() => Z = !1));
838
+ const w = L(), D = N(w);
839
+ let B = !1;
840
+ return te(
841
+ () => t[e],
842
+ (G) => {
843
+ B || (B = !0, D.value = I(G), Be(() => B = !1));
818
844
  }
819
- ), Q(
845
+ ), te(
820
846
  D,
821
- (K) => {
822
- !Z && (K !== n[e] || v) && V(K);
847
+ (G) => {
848
+ !B && (G !== t[e] || v) && V(G);
823
849
  },
824
850
  { deep: v }
825
851
  ), D;
826
852
  } else
827
- return I({
853
+ return S({
828
854
  get() {
829
- return A();
855
+ return L();
830
856
  },
831
- set(_) {
832
- V(_);
857
+ set(w) {
858
+ V(w);
833
859
  }
834
860
  });
835
861
  }
836
- function fo(n, e = {}) {
862
+ function yo(t, e = {}) {
837
863
  const {
838
864
  enter: o = () => {
839
865
  },
840
- leave: t = () => {
866
+ leave: n = () => {
841
867
  },
842
868
  initial: l = !1
843
869
  } = e, s = N(l);
844
- return ve(n, "mouseenter", () => {
870
+ return ve(t, "mouseenter", () => {
845
871
  s.value = !0, o();
846
- }), ve(n, "mouseleave", () => {
847
- s.value = !1, t();
872
+ }), ve(t, "mouseleave", () => {
873
+ s.value = !1, n();
848
874
  }), {
849
875
  isHovering: s
850
876
  };
851
877
  }
852
- const vo = { class: "flex pl5px" }, mo = { class: "w160px py5px" }, ho = /* @__PURE__ */ F({
878
+ const _o = { class: "flex pl5px" }, xo = { class: "w160px py5px" }, bo = /* @__PURE__ */ F({
853
879
  __name: "StateFieldEditor",
854
880
  props: {
855
881
  data: {},
@@ -859,103 +885,103 @@ const vo = { class: "flex pl5px" }, mo = { class: "w160px py5px" }, ho = /* @__P
859
885
  disableEdit: { type: Boolean }
860
886
  },
861
887
  emits: ["enableEditInput", "addNewProp"],
862
- setup(n) {
863
- const e = n, o = nt(), { copy: t, isSupported: l } = so(), s = N(!1), p = I(() => Nt(e.data.value)), r = I(() => p.value.value), i = I(() => p.value.customType), f = I(() => r.value === null ? "null" : typeof r.value), v = {
888
+ setup(t) {
889
+ const e = t, o = st(), { copy: n, isSupported: l } = po(), s = N(!1), p = S(() => Pt(e.data.value)), r = S(() => p.value.value), i = S(() => p.value.customType), f = S(() => r.value === null ? "null" : typeof r.value), v = {
864
890
  flat: !0,
865
891
  size: "mini"
866
- }, d = I(() => ({
892
+ }, d = S(() => ({
867
893
  "opacity-0": !e.hovering
868
894
  }));
869
- async function h(E, k = !1) {
870
- await R.value.editInspectorState({
895
+ async function h(E, $ = !1) {
896
+ await A.value.editInspectorState({
871
897
  path: e.data.path || [e.data.key],
872
898
  inspectorId: o.value.inspectorId,
873
899
  type: e.data.stateType,
874
900
  nodeId: o.value.nodeId,
875
901
  state: {
876
902
  newKey: null,
877
- value: Et(E),
903
+ value: Rt(E),
878
904
  type: f.value,
879
- remove: k
905
+ remove: $
880
906
  }
881
- }), await R.value.sendInspectorState(o.value.inspectorId);
907
+ }), await A.value.sendInspectorState(o.value.inspectorId);
882
908
  }
883
- function $(E, k) {
884
- const b = typeof E == "number" ? E + k : BigInt(E) + BigInt(k);
885
- h(b);
909
+ function T(E, $) {
910
+ const I = typeof E == "number" ? E + $ : BigInt(E) + BigInt($);
911
+ h(I);
886
912
  }
887
- return (E, k) => (c(), m("div", vo, [
888
- !e.disableEdit && E.data.editable ? (c(), m(ne, { key: 0 }, [
889
- f.value === "string" || f.value === "number" || f.value === "object" || f.value === "null" ? (c(), m(ne, { key: 0 }, [
890
- W((c(), z(a(de), ke(v, {
913
+ return (E, $) => (c(), m("div", _o, [
914
+ !e.disableEdit && E.data.editable ? (c(), m(le, { key: 0 }, [
915
+ f.value === "string" || f.value === "number" || f.value === "object" || f.value === "null" ? (c(), m(le, { key: 0 }, [
916
+ q((c(), z(a(fe), Ie(v, {
891
917
  class: d.value,
892
- onClick: k[0] || (k[0] = fe((b) => E.$emit("enableEditInput", f.value), ["stop"]))
918
+ onClick: $[0] || ($[0] = he((I) => E.$emit("enableEditInput", f.value), ["stop"]))
893
919
  }), {
894
- icon: L(() => [
895
- y(a(re), { icon: "i-material-symbols-edit-rounded" })
920
+ icon: H(() => [
921
+ x(a(ue), { icon: "i-material-symbols-edit-rounded" })
896
922
  ]),
897
923
  _: 1
898
924
  }, 16, ["class"])), [
899
- [a(q), {
925
+ [a(Y), {
900
926
  content: "Edit value"
901
927
  }]
902
928
  ]),
903
- f.value === "object" && E.showAddIfNeeded ? W((c(), z(a(de), ke({ key: 0 }, v, {
929
+ f.value === "object" && E.showAddIfNeeded ? q((c(), z(a(fe), Ie({ key: 0 }, v, {
904
930
  class: d.value,
905
- onClick: k[1] || (k[1] = fe((b) => E.$emit("addNewProp", Array.isArray(r.value) ? "array" : "object"), ["stop"]))
931
+ onClick: $[1] || ($[1] = he((I) => E.$emit("addNewProp", Array.isArray(r.value) ? "array" : "object"), ["stop"]))
906
932
  }), {
907
- icon: L(() => [
908
- y(a(re), { icon: "i-material-symbols-add-circle-rounded" })
933
+ icon: H(() => [
934
+ x(a(ue), { icon: "i-material-symbols-add-circle-rounded" })
909
935
  ]),
910
936
  _: 1
911
937
  }, 16, ["class"])), [
912
- [a(q), {
938
+ [a(Y), {
913
939
  content: "Add new value"
914
940
  }]
915
- ]) : U("", !0)
916
- ], 64)) : U("", !0),
917
- f.value === "boolean" ? (c(), z(a(de), ke({ key: 1 }, v, {
941
+ ]) : j("", !0)
942
+ ], 64)) : j("", !0),
943
+ f.value === "boolean" ? (c(), z(a(fe), Ie({ key: 1 }, v, {
918
944
  class: d.value,
919
- onClick: k[2] || (k[2] = (b) => h(!r.value))
945
+ onClick: $[2] || ($[2] = (I) => h(!r.value))
920
946
  }), {
921
- icon: L(() => [
922
- y(a(re), {
947
+ icon: H(() => [
948
+ x(a(ue), {
923
949
  icon: r.value ? "i-material-symbols-check-box-sharp" : "i-material-symbols-check-box-outline-blank-sharp"
924
950
  }, null, 8, ["icon"])
925
951
  ]),
926
952
  _: 1
927
- }, 16, ["class"])) : f.value === "number" || i.value === "bigint" ? (c(), m(ne, { key: 2 }, [
928
- y(a(de), ke(v, {
953
+ }, 16, ["class"])) : f.value === "number" || i.value === "bigint" ? (c(), m(le, { key: 2 }, [
954
+ x(a(fe), Ie(v, {
929
955
  class: d.value,
930
- onClick: k[3] || (k[3] = fe((b) => $(r.value, 1), ["stop"]))
956
+ onClick: $[3] || ($[3] = he((I) => T(r.value, 1), ["stop"]))
931
957
  }), {
932
- icon: L(() => [
933
- y(a(re), { icon: "i-carbon-add" })
958
+ icon: H(() => [
959
+ x(a(ue), { icon: "i-carbon-add" })
934
960
  ]),
935
961
  _: 1
936
962
  }, 16, ["class"]),
937
- y(a(de), ke(v, {
963
+ x(a(fe), Ie(v, {
938
964
  class: d.value,
939
- onClick: k[4] || (k[4] = fe((b) => $(r.value, -1), ["stop"]))
965
+ onClick: $[4] || ($[4] = he((I) => T(r.value, -1), ["stop"]))
940
966
  }), {
941
- icon: L(() => [
942
- y(a(re), { icon: "i-carbon-subtract" })
967
+ icon: H(() => [
968
+ x(a(ue), { icon: "i-carbon-subtract" })
943
969
  ]),
944
970
  _: 1
945
971
  }, 16, ["class"])
946
- ], 64)) : U("", !0)
947
- ], 64)) : U("", !0),
948
- !e.disableEdit && E.depth > 0 && E.data.editable ? (c(), z(a(de), ke({ key: 1 }, v, {
972
+ ], 64)) : j("", !0)
973
+ ], 64)) : j("", !0),
974
+ !e.disableEdit && E.depth > 0 && E.data.editable ? (c(), z(a(fe), Ie({ key: 1 }, v, {
949
975
  class: d.value,
950
- onClick: k[5] || (k[5] = fe((b) => h(r.value, !0), ["stop"]))
976
+ onClick: $[5] || ($[5] = he((I) => h(r.value, !0), ["stop"]))
951
977
  }), {
952
- icon: L(() => [
953
- y(a(re), { icon: "i-material-symbols-delete-rounded" })
978
+ icon: H(() => [
979
+ x(a(ue), { icon: "i-material-symbols-delete-rounded" })
954
980
  ]),
955
981
  _: 1
956
- }, 16, ["class"])) : U("", !0),
957
- y(a(dn), {
958
- class: ae({
982
+ }, 16, ["class"])) : j("", !0),
983
+ x(a(hn), {
984
+ class: ie({
959
985
  "opacity-0": !E.hovering && !s.value
960
986
  }),
961
987
  "button-props": {
@@ -963,46 +989,46 @@ const vo = { class: "flex pl5px" }, mo = { class: "w160px py5px" }, ho = /* @__P
963
989
  size: "mini"
964
990
  },
965
991
  disabled: !a(l),
966
- "onUpdate:visible": k[8] || (k[8] = (b) => s.value = b)
992
+ "onUpdate:visible": $[8] || ($[8] = (I) => s.value = I)
967
993
  }, {
968
- popper: L(() => [
969
- u("div", mo, [
970
- y(a(ht), {
971
- onClick: k[6] || (k[6] = (b) => a(t)(typeof r.value == "object" ? JSON.stringify(r.value) : r.value.toString()))
994
+ popper: H(() => [
995
+ u("div", xo, [
996
+ x(a(_t), {
997
+ onClick: $[6] || ($[6] = (I) => a(n)(typeof r.value == "object" ? JSON.stringify(r.value) : r.value.toString()))
972
998
  }, {
973
- icon: L(() => [
974
- y(a(re), {
999
+ icon: H(() => [
1000
+ x(a(ue), {
975
1001
  icon: "i-material-symbols-copy-all-rounded",
976
1002
  class: "mt4px"
977
1003
  }),
978
- k[9] || (k[9] = X(" Copy Value ", -1))
1004
+ $[9] || ($[9] = Q(" Copy Value ", -1))
979
1005
  ]),
980
1006
  _: 1
981
1007
  }),
982
- y(a(ht), {
983
- onClick: k[7] || (k[7] = () => {
984
- a(t)(E.data.key);
1008
+ x(a(_t), {
1009
+ onClick: $[7] || ($[7] = () => {
1010
+ a(n)(E.data.key);
985
1011
  })
986
1012
  }, {
987
- icon: L(() => [
988
- y(a(re), {
1013
+ icon: H(() => [
1014
+ x(a(ue), {
989
1015
  icon: "i-material-symbols-copy-all-rounded",
990
1016
  class: "mt4px"
991
1017
  }),
992
- k[10] || (k[10] = X(" Copy Path ", -1))
1018
+ $[10] || ($[10] = Q(" Copy Path ", -1))
993
1019
  ]),
994
1020
  _: 1
995
1021
  })
996
1022
  ])
997
1023
  ]),
998
- "button-icon": L(() => [
999
- y(a(re), { icon: "i-material-symbols:more-vert" })
1024
+ "button-icon": H(() => [
1025
+ x(a(ue), { icon: "i-material-symbols:more-vert" })
1000
1026
  ]),
1001
1027
  _: 1
1002
1028
  }, 8, ["class", "disabled"])
1003
1029
  ]));
1004
1030
  }
1005
- }), go = { class: "flex-inline items-center gap4px" }, Ze = /* @__PURE__ */ F({
1031
+ }), wo = { class: "flex-inline items-center gap4px" }, We = /* @__PURE__ */ F({
1006
1032
  __name: "StateFieldInputEditor",
1007
1033
  props: {
1008
1034
  modelValue: {},
@@ -1011,90 +1037,90 @@ const vo = { class: "flex pl5px" }, mo = { class: "w160px py5px" }, ho = /* @__P
1011
1037
  autoFocus: { type: Boolean, default: !0 }
1012
1038
  },
1013
1039
  emits: ["cancel", "submit", "update:modelValue"],
1014
- setup(n, { emit: e }) {
1015
- const o = n, t = e, l = I(() => o.customType === "date" ? "datetime-local" : ""), { escape: s, enter: p } = co();
1016
- Ye(() => {
1017
- s.value ? t("cancel") : p.value && t("submit");
1040
+ setup(t, { emit: e }) {
1041
+ const o = t, n = e, l = S(() => o.customType === "date" ? "datetime-local" : ""), { escape: s, enter: p } = go();
1042
+ et(() => {
1043
+ s.value ? n("cancel") : p.value && n("submit");
1018
1044
  });
1019
- const r = po(o, "modelValue", t);
1045
+ const r = /* @__PURE__ */ Co(o, "modelValue", n);
1020
1046
  function i(d) {
1021
1047
  try {
1022
- return He(d, o.customType), !0;
1048
+ return je(d, o.customType), !0;
1023
1049
  } catch {
1024
1050
  return !1;
1025
1051
  }
1026
1052
  }
1027
1053
  const f = N(!1);
1028
- return Q(r, kn(() => {
1054
+ return te(r, En(() => {
1029
1055
  f.value = !i(r.value);
1030
- }, 300)), (d, h) => (c(), m("span", go, [
1031
- y(a(he), {
1056
+ }, 300)), (d, h) => (c(), m("span", wo, [
1057
+ x(a(Ce), {
1032
1058
  modelValue: a(r),
1033
- "onUpdate:modelValue": h[0] || (h[0] = ($) => ze(r) ? r.value = $ : null),
1059
+ "onUpdate:modelValue": h[0] || (h[0] = (T) => Fe(r) ? r.value = T : null),
1034
1060
  type: l.value,
1035
1061
  variant: f.value ? "warning" : "normal",
1036
- class: ae(["h25px px4px", d.customType === "date" ? "w240px" : "w120px"]),
1062
+ class: ie(["h25px px4px", d.customType === "date" ? "w240px" : "w120px"]),
1037
1063
  "auto-focus": d.autoFocus,
1038
- onClick: h[1] || (h[1] = fe(() => {
1064
+ onClick: h[1] || (h[1] = he(() => {
1039
1065
  }, ["stop"]))
1040
1066
  }, null, 8, ["modelValue", "type", "variant", "class", "auto-focus"]),
1041
- d.showActions ? (c(), m(ne, { key: 0 }, [
1042
- W((c(), z(a(de), {
1067
+ d.showActions ? (c(), m(le, { key: 0 }, [
1068
+ q((c(), z(a(fe), {
1043
1069
  size: "mini",
1044
1070
  flat: "",
1045
1071
  class: "p2px!",
1046
- onClick: h[2] || (h[2] = fe(($) => d.$emit("cancel"), ["stop"]))
1072
+ onClick: h[2] || (h[2] = he((T) => d.$emit("cancel"), ["stop"]))
1047
1073
  }, {
1048
- icon: L(() => [
1049
- y(a(re), { icon: "i-material-symbols-cancel" })
1074
+ icon: H(() => [
1075
+ x(a(ue), { icon: "i-material-symbols-cancel" })
1050
1076
  ]),
1051
1077
  _: 1
1052
1078
  })), [
1053
- [a(q), {
1079
+ [a(Y), {
1054
1080
  content: "Esc to cancel"
1055
1081
  }]
1056
1082
  ]),
1057
- f.value ? W((c(), z(a(re), {
1083
+ f.value ? q((c(), z(a(ue), {
1058
1084
  key: 1,
1059
1085
  icon: "i-material-symbols-warning",
1060
1086
  class: "color-warning-500 dark:color-warning-300"
1061
1087
  }, null, 512)), [
1062
- [a(q), {
1088
+ [a(Y), {
1063
1089
  content: "Invalid value"
1064
1090
  }]
1065
- ]) : W((c(), z(a(de), {
1091
+ ]) : q((c(), z(a(fe), {
1066
1092
  key: 0,
1067
1093
  size: "mini",
1068
1094
  flat: "",
1069
1095
  class: "p2px!",
1070
- onClick: h[3] || (h[3] = fe(($) => d.$emit("submit"), ["stop"]))
1096
+ onClick: h[3] || (h[3] = he((T) => d.$emit("submit"), ["stop"]))
1071
1097
  }, {
1072
- icon: L(() => [
1073
- y(a(re), { icon: "i-material-symbols-save" })
1098
+ icon: H(() => [
1099
+ x(a(ue), { icon: "i-material-symbols-save" })
1074
1100
  ]),
1075
1101
  _: 1
1076
1102
  })), [
1077
- [a(q), {
1103
+ [a(Y), {
1078
1104
  content: "Enter to submit change"
1079
1105
  }]
1080
1106
  ])
1081
- ], 64)) : U("", !0)
1107
+ ], 64)) : j("", !0)
1082
1108
  ]));
1083
1109
  }
1084
- }), Co = {
1110
+ }), ko = {
1085
1111
  key: 1,
1086
1112
  pl5: ""
1087
- }, yo = {
1113
+ }, Io = {
1088
1114
  "whitespace-nowrap": "",
1089
1115
  "text-purple-700": "",
1090
1116
  op70: "",
1091
1117
  "dark:text-purple-300": ""
1092
- }, _o = ["innerHTML"], xo = { key: 0 }, bo = {
1118
+ }, $o = ["innerHTML"], So = { key: 0 }, To = {
1093
1119
  "overflow-hidden": "",
1094
1120
  "text-ellipsis": "",
1095
1121
  "whitespace-nowrap": "",
1096
1122
  "state-key": ""
1097
- }, $t = 30, wo = /* @__PURE__ */ F({
1123
+ }, Vt = 30, Eo = /* @__PURE__ */ F({
1098
1124
  __name: "StateFieldViewer",
1099
1125
  props: {
1100
1126
  data: {},
@@ -1102,167 +1128,167 @@ const vo = { class: "flex pl5px" }, mo = { class: "w160px py5px" }, ho = /* @__P
1102
1128
  index: {},
1103
1129
  expandedStateId: {}
1104
1130
  },
1105
- setup(n) {
1106
- const e = n, o = N($t), t = I(() => _n(e.data.value, !1, {
1131
+ setup(t) {
1132
+ const e = t, o = N(Vt), n = S(() => In(e.data.value, !1, {
1107
1133
  customClass: {
1108
1134
  string: "max-w-120 truncate"
1109
1135
  }
1110
- })), l = I(() => gt(e.data.value)), s = I(() => Nt(e.data.value)), { expanded: p, toggleExpanded: r } = ot(e.expandedStateId ?? ""), i = I(() => l.value === "custom" ? `${e.data.value._custom?.type ?? "string"}-custom-state` : "unknown-state-type"), f = I(() => {
1111
- const { value: M } = s.value;
1112
- return Ct(M) ? M.length : yt(M) ? Object.keys(M).length : 0;
1113
- }), v = I(() => e.data.path || [e.data.key]), d = I(() => v.value[v.value.length - 1]), h = I(() => {
1114
- const M = ["Reactive"], x = e.data.value?._custom?.stateTypeName || e.data?.stateTypeName;
1115
- if (M.includes(x))
1116
- return x;
1136
+ })), l = S(() => xt(e.data.value)), s = S(() => Pt(e.data.value)), { expanded: p, toggleExpanded: r } = at(e.expandedStateId ?? ""), i = S(() => l.value === "custom" ? `${e.data.value._custom?.type ?? "string"}-custom-state` : "unknown-state-type"), f = S(() => {
1137
+ const { value: R } = s.value;
1138
+ return bt(R) ? R.length : wt(R) ? Object.keys(R).length : 0;
1139
+ }), v = S(() => e.data.path || [e.data.key]), d = S(() => v.value[v.value.length - 1]), h = S(() => {
1140
+ const R = ["Reactive"], k = e.data.value?._custom?.stateTypeName || e.data?.stateTypeName;
1141
+ if (R.includes(k))
1142
+ return k;
1117
1143
  if (e.data.value?.fields?.abstract)
1118
1144
  return "";
1119
1145
  {
1120
- const g = e.data.value?._custom?.type, C = l.value === "custom" && !g ? `"${t.value}"` : t.value === "" ? '""' : t.value, P = l.value === "custom" && g === "ref" ? gt(C) : l.value, B = l.value === "string" ? "select-text" : "", le = `<span title="${l.value === "string" ? xn(e.data.value) : ""}" class="${P}-state-type flex whitespace-nowrap ${B}">${C}</span>`;
1121
- return x ? `${le} <span class="text-gray-500">(${x})</span>` : le;
1146
+ const g = e.data.value?._custom?.type, _ = l.value === "custom" && !g ? `"${n.value}"` : n.value === "" ? '""' : n.value, P = l.value === "custom" && g === "ref" ? xt(_) : l.value, Z = l.value === "string" ? "select-text" : "", ae = `<span title="${l.value === "string" ? $n(e.data.value) : ""}" class="${P}-state-type flex whitespace-nowrap ${Z}">${_}</span>`;
1147
+ return k ? `${ae} <span class="text-gray-500">(${k})</span>` : ae;
1122
1148
  }
1123
- }), $ = I(() => {
1124
- const { value: M, inherit: x, customType: g } = s.value, C = g === "set";
1149
+ }), T = S(() => {
1150
+ const { value: R, inherit: k, customType: g } = s.value, _ = g === "set";
1125
1151
  let P = [];
1126
- return Ct(M) ? M.slice(0, o.value).map((le, Ee) => ({
1127
- key: Ee.toString(),
1128
- path: [...v.value, Ee.toString()],
1129
- value: le,
1130
- ...x,
1131
- editable: e.data.editable && !C,
1152
+ return bt(R) ? R.slice(0, o.value).map((ae, Ve) => ({
1153
+ key: Ve.toString(),
1154
+ path: [...v.value, Ve.toString()],
1155
+ value: ae,
1156
+ ...k,
1157
+ editable: e.data.editable && !_,
1132
1158
  creating: !1
1133
- })) : (yt(M) && (P = Object.keys(M).slice(0, o.value).map((B) => ({
1134
- key: B,
1135
- path: [...v.value, B],
1136
- value: M[B],
1137
- ...x,
1138
- editable: e.data.editable && !C,
1159
+ })) : (wt(R) && (P = Object.keys(R).slice(0, o.value).map((Z) => ({
1160
+ key: Z,
1161
+ path: [...v.value, Z],
1162
+ value: R[Z],
1163
+ ...k,
1164
+ editable: e.data.editable && !_,
1139
1165
  creating: !1
1140
- })), l.value !== "custom" && (P = Dt(P))), P === e.data.value ? [] : P);
1141
- }), E = I(() => $.value.length > 0), k = N(), b = nt(), { isHovering: A } = fo(() => k.value), { editingType: V, editing: _, editingText: D, toggleEditing: Z, nodeId: K } = Zn();
1142
- Q(() => _.value, (M) => {
1143
- if (M) {
1144
- const { value: x } = s.value;
1145
- D.value = bn(x, s.value.customType);
1166
+ })), l.value !== "custom" && (P = Mt(P))), P === e.data.value ? [] : P);
1167
+ }), E = S(() => T.value.length > 0), $ = N(), I = st(), { isHovering: L } = yo(() => $.value), { editingType: V, editing: w, editingText: D, toggleEditing: B, nodeId: G } = Jn();
1168
+ te(() => w.value, (R) => {
1169
+ if (R) {
1170
+ const { value: k } = s.value;
1171
+ D.value = Sn(k, s.value.customType);
1146
1172
  } else
1147
1173
  D.value = "";
1148
1174
  });
1149
- async function G() {
1150
- const M = e.data;
1151
- await R.value.editInspectorState({
1175
+ async function W() {
1176
+ const R = e.data;
1177
+ await A.value.editInspectorState({
1152
1178
  path: v.value,
1153
- inspectorId: b.value.inspectorId,
1154
- type: M.stateType,
1155
- nodeId: K.value,
1179
+ inspectorId: I.value.inspectorId,
1180
+ type: R.stateType,
1181
+ nodeId: G.value,
1156
1182
  state: {
1157
1183
  newKey: null,
1158
1184
  type: V.value,
1159
- value: He(D.value, s.value.customType)
1185
+ value: je(D.value, s.value.customType)
1160
1186
  }
1161
- }), await R.value.sendInspectorState(b.value.inspectorId), Z();
1162
- }
1163
- const { addNewProp: H, draftingNewProp: w, resetDrafting: O } = Gn();
1164
- function te(M) {
1165
- const x = `${e.depth}-${e.index}`;
1166
- p.value.includes(x) || r(x), H(M, s.value.value);
1167
- }
1168
- async function oe() {
1169
- const M = e.data;
1170
- await R.value.editInspectorState({
1171
- path: [...v.value, w.value.key],
1172
- inspectorId: b.value.inspectorId,
1173
- type: M.stateType,
1174
- nodeId: K.value,
1187
+ }), await A.value.sendInspectorState(I.value.inspectorId), B();
1188
+ }
1189
+ const { addNewProp: O, draftingNewProp: C, resetDrafting: U } = Xn();
1190
+ function oe(R) {
1191
+ const k = `${e.depth}-${e.index}`;
1192
+ p.value.includes(k) || r(k), O(R, s.value.value);
1193
+ }
1194
+ async function se() {
1195
+ const R = e.data;
1196
+ await A.value.editInspectorState({
1197
+ path: [...v.value, C.value.key],
1198
+ inspectorId: I.value.inspectorId,
1199
+ type: R.stateType,
1200
+ nodeId: G.value,
1175
1201
  state: {
1176
- newKey: w.value.key,
1177
- type: typeof He(w.value.value),
1178
- value: He(w.value.value)
1202
+ newKey: C.value.key,
1203
+ type: typeof je(C.value.value),
1204
+ value: je(C.value.value)
1179
1205
  }
1180
- }), await R.value.sendInspectorState(b.value.inspectorId), O();
1206
+ }), await A.value.sendInspectorState(I.value.inspectorId), U();
1181
1207
  }
1182
- return (M, x) => (c(), m("div", null, [
1208
+ return (R, k) => (c(), m("div", null, [
1183
1209
  u("div", {
1184
1210
  ref_key: "containerRef",
1185
- ref: k,
1186
- class: ae(["font-state-field flex items-center text-3.5", [E.value && "cursor-pointer hover:bg-active"]]),
1187
- style: $e({ paddingLeft: `${M.depth * 15 + 4}px` }),
1188
- onClick: x[1] || (x[1] = (g) => a(r)(`${M.depth}-${M.index}`))
1211
+ ref: $,
1212
+ class: ie(["font-state-field flex items-center text-3.5", [E.value && "cursor-pointer hover:bg-active"]]),
1213
+ style: Se({ paddingLeft: `${R.depth * 15 + 4}px` }),
1214
+ onClick: k[1] || (k[1] = (g) => a(r)(`${R.depth}-${R.index}`))
1189
1215
  }, [
1190
- E.value ? (c(), z(tt, {
1216
+ E.value ? (c(), z(lt, {
1191
1217
  key: 0,
1192
- value: a(p).includes(`${M.depth}-${M.index}`)
1193
- }, null, 8, ["value"])) : (c(), m("span", Co)),
1194
- u("span", yo, ie(d.value), 1),
1195
- x[5] || (x[5] = u("span", { mx1: "" }, ":", -1)),
1196
- a(_) ? (c(), z(Ze, {
1218
+ value: a(p).includes(`${R.depth}-${R.index}`)
1219
+ }, null, 8, ["value"])) : (c(), m("span", ko)),
1220
+ u("span", Io, re(d.value), 1),
1221
+ k[5] || (k[5] = u("span", { mx1: "" }, ":", -1)),
1222
+ a(w) ? (c(), z(We, {
1197
1223
  key: 2,
1198
1224
  modelValue: a(D),
1199
- "onUpdate:modelValue": x[0] || (x[0] = (g) => ze(D) ? D.value = g : null),
1225
+ "onUpdate:modelValue": k[0] || (k[0] = (g) => Fe(D) ? D.value = g : null),
1200
1226
  class: "mr-1",
1201
1227
  "custom-type": s.value.customType,
1202
- onCancel: a(Z),
1203
- onSubmit: G
1204
- }, null, 8, ["modelValue", "custom-type", "onCancel"])) : U("", !0),
1228
+ onCancel: a(B),
1229
+ onSubmit: W
1230
+ }, null, 8, ["modelValue", "custom-type", "onCancel"])) : j("", !0),
1205
1231
  u("span", {
1206
- class: ae([i.value, "flex whitespace-nowrap dark:text-#bdc6cf"])
1232
+ class: ie([i.value, "flex whitespace-nowrap dark:text-#bdc6cf"])
1207
1233
  }, [
1208
1234
  u("span", {
1209
1235
  class: "flex",
1210
1236
  innerHTML: h.value
1211
- }, null, 8, _o)
1237
+ }, null, 8, $o)
1212
1238
  ], 2),
1213
- y(ho, {
1214
- hovering: a(A),
1215
- "disable-edit": a(b).disableEdit || a(_),
1216
- data: M.data,
1217
- depth: M.depth,
1218
- onEnableEditInput: a(Z),
1219
- onAddNewProp: te
1239
+ x(bo, {
1240
+ hovering: a(L),
1241
+ "disable-edit": a(I).disableEdit || a(w),
1242
+ data: R.data,
1243
+ depth: R.depth,
1244
+ onEnableEditInput: a(B),
1245
+ onAddNewProp: oe
1220
1246
  }, null, 8, ["hovering", "disable-edit", "data", "depth", "onEnableEditInput"])
1221
1247
  ], 6),
1222
- E.value && a(p).includes(`${M.depth}-${M.index}`) ? (c(), m("div", xo, [
1223
- y(Gt, {
1224
- data: $.value,
1225
- depth: M.depth,
1226
- index: M.index
1248
+ E.value && a(p).includes(`${R.depth}-${R.index}`) ? (c(), m("div", So, [
1249
+ x(Yt, {
1250
+ data: T.value,
1251
+ depth: R.depth,
1252
+ index: R.index
1227
1253
  }, null, 8, ["data", "depth", "index"]),
1228
- f.value > o.value ? W((c(), z(a(de), {
1254
+ f.value > o.value ? q((c(), z(a(fe), {
1229
1255
  key: 0,
1230
1256
  flat: "",
1231
1257
  size: "mini",
1232
1258
  class: "ml-4",
1233
- onClick: x[2] || (x[2] = (g) => o.value += $t)
1259
+ onClick: k[2] || (k[2] = (g) => o.value += Vt)
1234
1260
  }, {
1235
- icon: L(() => [
1236
- y(a(re), { icon: "i-material-symbols-more-horiz" })
1261
+ icon: H(() => [
1262
+ x(a(ue), { icon: "i-material-symbols-more-horiz" })
1237
1263
  ]),
1238
1264
  _: 1
1239
1265
  })), [
1240
- [a(q), "Show more"]
1241
- ]) : U("", !0),
1242
- a(w).enable ? (c(), m("div", {
1266
+ [a(Y), "Show more"]
1267
+ ]) : j("", !0),
1268
+ a(C).enable ? (c(), m("div", {
1243
1269
  key: 1,
1244
- style: $e({ paddingLeft: `${(M.depth + 1) * 15 + 4}px` })
1270
+ style: Se({ paddingLeft: `${(R.depth + 1) * 15 + 4}px` })
1245
1271
  }, [
1246
- u("span", bo, [
1247
- y(Ze, {
1248
- modelValue: a(w).key,
1249
- "onUpdate:modelValue": x[3] || (x[3] = (g) => a(w).key = g),
1272
+ u("span", To, [
1273
+ x(We, {
1274
+ modelValue: a(C).key,
1275
+ "onUpdate:modelValue": k[3] || (k[3] = (g) => a(C).key = g),
1250
1276
  "show-actions": !1
1251
1277
  }, null, 8, ["modelValue"])
1252
1278
  ]),
1253
- x[6] || (x[6] = u("span", { "mx-1": "" }, ":", -1)),
1254
- y(Ze, {
1255
- modelValue: a(w).value,
1256
- "onUpdate:modelValue": x[4] || (x[4] = (g) => a(w).value = g),
1279
+ k[6] || (k[6] = u("span", { "mx-1": "" }, ":", -1)),
1280
+ x(We, {
1281
+ modelValue: a(C).value,
1282
+ "onUpdate:modelValue": k[4] || (k[4] = (g) => a(C).value = g),
1257
1283
  "auto-focus": !1,
1258
- onCancel: a(O),
1259
- onSubmit: oe
1284
+ onCancel: a(U),
1285
+ onSubmit: se
1260
1286
  }, null, 8, ["modelValue", "onCancel"])
1261
- ], 4)) : U("", !0)
1262
- ])) : U("", !0)
1287
+ ], 4)) : j("", !0)
1288
+ ])) : j("", !0)
1263
1289
  ]));
1264
1290
  }
1265
- }), ko = /* @__PURE__ */ xe(wo, [["__scopeId", "data-v-7918b8f2"]]), Gt = /* @__PURE__ */ F({
1291
+ }), Vo = /* @__PURE__ */ be(Eo, [["__scopeId", "data-v-7918b8f2"]]), Yt = /* @__PURE__ */ F({
1266
1292
  __name: "ChildStateViewer",
1267
1293
  props: {
1268
1294
  data: {},
@@ -1270,11 +1296,11 @@ const vo = { class: "flex pl5px" }, mo = { class: "w160px py5px" }, ho = /* @__P
1270
1296
  index: {},
1271
1297
  expandedStateId: { default: "" }
1272
1298
  },
1273
- setup(n) {
1299
+ setup(t) {
1274
1300
  return (e, o) => (c(), m("div", null, [
1275
- (c(!0), m(ne, null, ue(e.data, (t, l) => (c(), m("div", { key: l }, [
1276
- y(ko, {
1277
- data: t,
1301
+ (c(!0), m(le, null, ce(e.data, (n, l) => (c(), m("div", { key: l }, [
1302
+ x(Vo, {
1303
+ data: n,
1278
1304
  depth: e.depth + 1,
1279
1305
  index: `${e.index}-${l}`,
1280
1306
  "expanded-state-id": e.expandedStateId
@@ -1282,14 +1308,14 @@ const vo = { class: "flex pl5px" }, mo = { class: "w160px py5px" }, ho = /* @__P
1282
1308
  ]))), 128))
1283
1309
  ]));
1284
1310
  }
1285
- }), Io = ["onClick"], $o = {
1311
+ }), No = ["onClick"], Ao = {
1286
1312
  key: 1,
1287
1313
  pl5: ""
1288
- }, So = {
1314
+ }, Ro = {
1289
1315
  "font-state-field": "",
1290
1316
  "text-3.5": "",
1291
1317
  "text-hex-a3a3a3": ""
1292
- }, To = { key: 0 }, Ae = /* @__PURE__ */ F({
1318
+ }, Do = { key: 0 }, He = /* @__PURE__ */ F({
1293
1319
  __name: "RootStateViewer",
1294
1320
  props: {
1295
1321
  data: {},
@@ -1298,8 +1324,8 @@ const vo = { class: "flex pl5px" }, mo = { class: "w160px py5px" }, ho = /* @__P
1298
1324
  disableEdit: { type: Boolean, default: !1 },
1299
1325
  expandedStateId: { default: "" }
1300
1326
  },
1301
- setup(n) {
1302
- const e = n;
1327
+ setup(t) {
1328
+ const e = t;
1303
1329
  function o() {
1304
1330
  return {
1305
1331
  nodeId: e.nodeId,
@@ -1307,66 +1333,66 @@ const vo = { class: "flex pl5px" }, mo = { class: "w160px py5px" }, ho = /* @__P
1307
1333
  disableEdit: e.disableEdit
1308
1334
  };
1309
1335
  }
1310
- const { context: t } = Fn(o());
1311
- Ye(() => {
1312
- t.value = o();
1336
+ const { context: n } = qn(o());
1337
+ et(() => {
1338
+ n.value = o();
1313
1339
  });
1314
- const { expanded: l, toggleExpanded: s } = ot(e.expandedStateId);
1340
+ const { expanded: l, toggleExpanded: s } = at(e.expandedStateId);
1315
1341
  return (p, r) => (c(), m("div", null, [
1316
- (c(!0), m(ne, null, ue(p.data, (i, f, v) => (c(), m("div", { key: v }, [
1342
+ (c(!0), m(le, null, ce(p.data, (i, f, v) => (c(), m("div", { key: v }, [
1317
1343
  u("div", {
1318
- class: ae(["flex items-center", [i?.length && "cursor-pointer hover:bg-active"]]),
1344
+ class: ie(["flex items-center", [i?.length && "cursor-pointer hover:bg-active"]]),
1319
1345
  onClick: (d) => a(s)(`${v}`)
1320
1346
  }, [
1321
- i?.length ? (c(), z(tt, {
1347
+ i?.length ? (c(), z(lt, {
1322
1348
  key: 0,
1323
1349
  value: a(l).includes(`${v}`)
1324
- }, null, 8, ["value"])) : (c(), m("span", $o)),
1325
- u("span", So, ie(f), 1)
1326
- ], 10, Io),
1327
- i?.length && a(l).includes(`${v}`) ? (c(), m("div", To, [
1328
- y(Gt, {
1350
+ }, null, 8, ["value"])) : (c(), m("span", Ao)),
1351
+ u("span", Ro, re(f), 1)
1352
+ ], 10, No),
1353
+ i?.length && a(l).includes(`${v}`) ? (c(), m("div", Do, [
1354
+ x(Yt, {
1329
1355
  data: i,
1330
1356
  index: `${v}`,
1331
1357
  "expanded-state-id": p.expandedStateId
1332
1358
  }, null, 8, ["data", "index", "expanded-state-id"])
1333
- ])) : U("", !0)
1359
+ ])) : j("", !0)
1334
1360
  ]))), 128))
1335
1361
  ]));
1336
1362
  }
1337
- }), Eo = { class: "p3" }, Vo = ["onClick"], No = {
1363
+ }), Po = { class: "p3" }, Lo = ["onClick"], Mo = {
1338
1364
  key: 0,
1339
1365
  class: "absolute left-5px top-4.5 h10 w0 border-l-2",
1340
1366
  border: "solid gray2"
1341
- }, Ro = { class: "h-full flex items-center truncate pl5" }, Do = {
1367
+ }, Ho = { class: "h-full flex items-center truncate pl5" }, Oo = {
1342
1368
  absolute: "",
1343
1369
  "top-5": "",
1344
1370
  pr2: "",
1345
1371
  "text-3": "",
1346
1372
  op40: ""
1347
- }, Po = {
1373
+ }, Uo = {
1348
1374
  pl2: "",
1349
1375
  op30: ""
1350
- }, Ao = /* @__PURE__ */ F({
1376
+ }, jo = /* @__PURE__ */ F({
1351
1377
  __name: "EventList",
1352
- props: /* @__PURE__ */ Ne({
1378
+ props: /* @__PURE__ */ Re({
1353
1379
  data: {}
1354
1380
  }, {
1355
1381
  modelValue: {},
1356
1382
  modelModifiers: {}
1357
1383
  }),
1358
1384
  emits: ["update:modelValue"],
1359
- setup(n) {
1360
- const e = n, o = We(n, "modelValue"), t = ["#3e5770", "#42b983", "#0098c4"], l = N(null), s = I(() => {
1385
+ setup(t) {
1386
+ const e = t, o = Ye(t, "modelValue"), n = ["#3e5770", "#42b983", "#0098c4"], l = N(null), s = S(() => {
1361
1387
  let p = -1, r = 0;
1362
1388
  return e.data.forEach((i, f) => {
1363
- (i.groupId !== r || p === -1) && (p = (p + 1) % t.length), r = i.groupId ?? r, i.id = f, i.color = t[p];
1389
+ (i.groupId !== r || p === -1) && (p = (p + 1) % n.length), r = i.groupId ?? r, i.id = f, i.color = n[p];
1364
1390
  }), e.data;
1365
1391
  });
1366
- return Q(() => s.value.length, (p) => {
1392
+ return te(() => s.value.length, (p) => {
1367
1393
  l.value?.scrollToItem(p - 1);
1368
- }, { flush: "post" }), (p, r) => (c(), m("div", Eo, [
1369
- y(a(In), {
1394
+ }, { flush: "post" }), (p, r) => (c(), m("div", Po, [
1395
+ x(a(Vn), {
1370
1396
  ref_key: "scrollerRef",
1371
1397
  ref: l,
1372
1398
  items: s.value,
@@ -1377,50 +1403,50 @@ const vo = { class: "flex pl5px" }, mo = { class: "w160px py5px" }, ho = /* @__P
1377
1403
  "list-tag": "ul",
1378
1404
  buffer: 20
1379
1405
  }, {
1380
- default: L(({ item: i }) => [
1406
+ default: H(({ item: i }) => [
1381
1407
  u("div", {
1382
1408
  class: "relative mb7 h6 cursor-pointer",
1383
- style: $e({ color: o.value === i.id ? i.color : "" }),
1409
+ style: Se({ color: o.value === i.id ? i.color : "" }),
1384
1410
  onClick: (f) => o.value = i.id
1385
1411
  }, [
1386
1412
  u("span", {
1387
1413
  class: "absolute top-1.5 inline-block h3 w3 b rounded-50%",
1388
- style: $e({ border: `3px solid ${i.color}` })
1414
+ style: Se({ border: `3px solid ${i.color}` })
1389
1415
  }, null, 4),
1390
- i.id < p.data.length - 1 ? (c(), m("span", No)) : U("", !0),
1391
- u("p", Ro, [
1392
- u("span", Do, "[" + ie(a(Tn)(i.time)) + "]", 1),
1393
- X(" " + ie(i.title) + " ", 1),
1394
- u("span", Po, ie(i.subtitle), 1)
1416
+ i.id < p.data.length - 1 ? (c(), m("span", Mo)) : j("", !0),
1417
+ u("p", Ho, [
1418
+ u("span", Oo, "[" + re(a(Rn)(i.time)) + "]", 1),
1419
+ Q(" " + re(i.title) + " ", 1),
1420
+ u("span", Uo, re(i.subtitle), 1)
1395
1421
  ])
1396
- ], 12, Vo)
1422
+ ], 12, Lo)
1397
1423
  ]),
1398
1424
  _: 1
1399
1425
  }, 8, ["items"])
1400
1426
  ]));
1401
1427
  }
1402
- }), Mo = { class: "relative h-full flex flex-col" }, Lo = {
1428
+ }), zo = { class: "relative h-full flex flex-col" }, Bo = {
1403
1429
  key: 1,
1404
1430
  class: "flex-1 overflow-hidden"
1405
- }, Ho = {
1431
+ }, Zo = {
1406
1432
  "h-full": "",
1407
1433
  "select-none": "",
1408
1434
  "overflow-scroll": "",
1409
1435
  class: "no-scrollbar"
1410
- }, Uo = {
1436
+ }, Fo = {
1411
1437
  "h-full": "",
1412
1438
  "overflow-scroll": "",
1413
1439
  class: "no-scrollbar"
1414
- }, Oo = {
1440
+ }, Ko = {
1415
1441
  key: 3,
1416
1442
  class: "absolute right-3 top-12 flex items-center justify-end b-1 border-base rounded-1 b-solid px2 py1"
1417
- }, jo = { class: "flex items-center gap-2 px-1" }, zo = {
1443
+ }, Go = { class: "flex items-center gap-2 px-1" }, Wo = {
1418
1444
  key: 0,
1419
1445
  class: "recording recording-btn bg-[#ef4444]"
1420
- }, Bo = {
1446
+ }, qo = {
1421
1447
  key: 1,
1422
1448
  class: "recording-btn bg-black op70 dark:bg-white hover:op100"
1423
- }, Fo = { class: "flex items-center gap1" }, Zo = /* @__PURE__ */ F({
1449
+ }, Jo = { class: "flex items-center gap1" }, Yo = /* @__PURE__ */ F({
1424
1450
  __name: "index",
1425
1451
  props: {
1426
1452
  layerIds: {},
@@ -1430,28 +1456,28 @@ const vo = { class: "flex pl5px" }, mo = { class: "w160px py5px" }, ho = /* @__P
1430
1456
  headerVisible: { type: Boolean, default: !0 },
1431
1457
  switcherVisible: { type: Boolean, default: !0 }
1432
1458
  },
1433
- setup(n, { expose: e }) {
1434
- const o = n, { expanded: t } = ge("timeline-state");
1435
- t.value = ["0", "1"];
1436
- const l = N([]), s = N(/* @__PURE__ */ new Map()), p = N(0), r = Rt(), i = I(() => r.timelineLayersState.value?.[o.pluginId]), f = I(() => l.value[p.value] ?? null), v = I(() => i.value ? "Stop recording" : "Start recording"), d = I(() => {
1459
+ setup(t, { expose: e }) {
1460
+ const o = t, { expanded: n } = ye("timeline-state");
1461
+ n.value = ["0", "1"];
1462
+ const l = N([]), s = N(/* @__PURE__ */ new Map()), p = N(0), r = Lt(), i = S(() => r.timelineLayersState.value?.[o.pluginId]), f = S(() => l.value[p.value] ?? null), v = S(() => i.value ? "Stop recording" : "Start recording"), d = S(() => {
1437
1463
  const V = [];
1438
- for (const _ in f.value?.data)
1464
+ for (const w in f.value?.data)
1439
1465
  V.push({
1440
- key: _,
1441
- type: _,
1466
+ key: w,
1467
+ type: w,
1442
1468
  editable: !1,
1443
- value: f.value.data[_]
1469
+ value: f.value.data[w]
1444
1470
  });
1445
1471
  return V;
1446
- }), h = I(() => {
1447
- const V = f.value?.groupId, _ = s.value.get(V);
1448
- if (_) {
1449
- const D = _[_.length - 1]?.time - (_[0]?.time ?? 0);
1472
+ }), h = S(() => {
1473
+ const V = f.value?.groupId, w = s.value.get(V);
1474
+ if (w) {
1475
+ const D = w[w.length - 1]?.time - (w[0]?.time ?? 0);
1450
1476
  return [{
1451
1477
  key: "events",
1452
1478
  type: "events",
1453
1479
  editable: !1,
1454
- value: _.length
1480
+ value: w.length
1455
1481
  }, D && {
1456
1482
  key: "duration",
1457
1483
  type: "duration",
@@ -1459,68 +1485,68 @@ const vo = { class: "flex pl5px" }, mo = { class: "w160px py5px" }, ho = /* @__P
1459
1485
  value: `${D}ms`
1460
1486
  }].filter(Boolean);
1461
1487
  }
1462
- }), $ = I(() => ({ "Event Info": d.value, ...h.value && { "Group Info": h.value } }));
1488
+ }), T = S(() => ({ "Event Info": d.value, ...h.value && { "Group Info": h.value } }));
1463
1489
  function E(V) {
1464
- const _ = V.groupId;
1465
- _ !== void 0 && (s.value.set(_, s.value.get(_) ?? []), s.value.get(_)?.push(V));
1490
+ const w = V.groupId;
1491
+ w !== void 0 && (s.value.set(w, s.value.get(w) ?? []), s.value.get(w)?.push(V));
1466
1492
  }
1467
- function k(V) {
1468
- const _ = ee(V);
1469
- if (!_)
1493
+ function $(V) {
1494
+ const w = ne(V);
1495
+ if (!w)
1470
1496
  return;
1471
- const { layerId: D, event: Z } = _;
1472
- o.layerIds.includes(D) && (l.value.push(Z), E(Z));
1497
+ const { layerId: D, event: B } = w;
1498
+ o.layerIds.includes(D) && (l.value.push(B), E(B));
1473
1499
  }
1474
- R.functions.on(Y.TIMELINE_EVENT_UPDATED, k), we(() => {
1475
- R.functions.off(Y.TIMELINE_EVENT_UPDATED, k);
1500
+ A.functions.on(X.TIMELINE_EVENT_UPDATED, $), ke(() => {
1501
+ A.functions.off(X.TIMELINE_EVENT_UPDATED, $);
1476
1502
  });
1477
- function b() {
1503
+ function I() {
1478
1504
  l.value = [], s.value.clear();
1479
1505
  }
1480
1506
  e({
1481
- clear: b
1507
+ clear: I
1482
1508
  });
1483
- function A() {
1484
- R.value.updateTimelineLayersState({
1509
+ function L() {
1510
+ A.value.updateTimelineLayersState({
1485
1511
  [o.pluginId]: !i.value
1486
1512
  });
1487
1513
  }
1488
- return (V, _) => (c(), m("div", Mo, [
1489
- V.headerVisible ? (c(), z(Se, {
1514
+ return (V, w) => (c(), m("div", zo, [
1515
+ V.headerVisible ? (c(), z(Te, {
1490
1516
  key: 0,
1491
1517
  "doc-link": V.docLink,
1492
1518
  "github-repo-link": V.githubRepoLink
1493
1519
  }, {
1494
- default: L(() => [
1495
- y(Te)
1520
+ default: H(() => [
1521
+ x(Ee)
1496
1522
  ]),
1497
1523
  _: 1
1498
- }, 8, ["doc-link", "github-repo-link"])) : U("", !0),
1499
- l.value.length ? (c(), m("div", Lo, [
1500
- y(a(De), { class: "h-full" }, {
1501
- default: L(() => [
1502
- y(a(ce), {
1524
+ }, 8, ["doc-link", "github-repo-link"])) : j("", !0),
1525
+ l.value.length ? (c(), m("div", Bo, [
1526
+ x(a(Pe), { class: "h-full" }, {
1527
+ default: H(() => [
1528
+ x(a(de), {
1503
1529
  border: "r base",
1504
1530
  size: "40",
1505
1531
  "h-full": ""
1506
1532
  }, {
1507
- default: L(() => [
1508
- u("div", Ho, [
1509
- y(Ao, {
1533
+ default: H(() => [
1534
+ u("div", Zo, [
1535
+ x(jo, {
1510
1536
  modelValue: p.value,
1511
- "onUpdate:modelValue": _[0] || (_[0] = (D) => p.value = D),
1537
+ "onUpdate:modelValue": w[0] || (w[0] = (D) => p.value = D),
1512
1538
  data: l.value
1513
1539
  }, null, 8, ["modelValue", "data"])
1514
1540
  ])
1515
1541
  ]),
1516
1542
  _: 1
1517
1543
  }),
1518
- y(a(ce), { size: "60" }, {
1519
- default: L(() => [
1520
- u("div", Uo, [
1521
- y(Ae, {
1544
+ x(a(de), { size: "60" }, {
1545
+ default: H(() => [
1546
+ u("div", Fo, [
1547
+ x(He, {
1522
1548
  class: "p3",
1523
- data: $.value,
1549
+ data: T.value,
1524
1550
  "node-id": "",
1525
1551
  "inspector-id": "",
1526
1552
  "disable-edit": !0,
@@ -1533,36 +1559,35 @@ const vo = { class: "flex pl5px" }, mo = { class: "w160px py5px" }, ho = /* @__P
1533
1559
  ]),
1534
1560
  _: 1
1535
1561
  })
1536
- ])) : (c(), z(Ie, {
1562
+ ])) : (c(), z($e, {
1537
1563
  key: 2,
1538
1564
  class: "flex-1"
1539
1565
  }, {
1540
- default: L(() => _[1] || (_[1] = [
1541
- X(" No events ", -1)
1542
- ])),
1543
- _: 1,
1544
- __: [1]
1566
+ default: H(() => [...w[1] || (w[1] = [
1567
+ Q(" No events ", -1)
1568
+ ])]),
1569
+ _: 1
1545
1570
  })),
1546
- V.switcherVisible ? (c(), m("div", Oo, [
1547
- u("div", jo, [
1548
- W((c(), m("div", {
1571
+ V.switcherVisible ? (c(), m("div", Ko, [
1572
+ u("div", Go, [
1573
+ q((c(), m("div", {
1549
1574
  class: "flex items-center gap1",
1550
- onClick: A
1575
+ onClick: L
1551
1576
  }, [
1552
- i.value ? (c(), m("span", zo)) : (c(), m("span", Bo))
1577
+ i.value ? (c(), m("span", Wo)) : (c(), m("span", qo))
1553
1578
  ])), [
1554
1579
  [
1555
- a(q),
1580
+ a(Y),
1556
1581
  { content: v.value },
1557
1582
  void 0,
1558
1583
  { "bottom-end": !0 }
1559
1584
  ]
1560
1585
  ]),
1561
- W((c(), m("div", {
1586
+ q((c(), m("div", {
1562
1587
  class: "flex items-center gap1",
1563
- onClick: b
1588
+ onClick: I
1564
1589
  }, [
1565
- y(a(je), {
1590
+ x(a(Ze), {
1566
1591
  name: "baseline-delete",
1567
1592
  "cursor-pointer": "",
1568
1593
  "text-xl": "",
@@ -1571,14 +1596,14 @@ const vo = { class: "flex pl5px" }, mo = { class: "w160px py5px" }, ho = /* @__P
1571
1596
  })
1572
1597
  ])), [
1573
1598
  [
1574
- a(q),
1599
+ a(Y),
1575
1600
  { content: "Clear all timelines" },
1576
1601
  void 0,
1577
1602
  { "bottom-end": !0 }
1578
1603
  ]
1579
1604
  ]),
1580
- W((c(), m("div", Fo, [
1581
- y(a(je), {
1605
+ q((c(), m("div", Jo, [
1606
+ x(a(Ze), {
1582
1607
  name: "baseline-tips-and-updates",
1583
1608
  "cursor-pointer": "",
1584
1609
  "text-xl": "",
@@ -1587,82 +1612,82 @@ const vo = { class: "flex pl5px" }, mo = { class: "w160px py5px" }, ho = /* @__P
1587
1612
  })
1588
1613
  ])), [
1589
1614
  [
1590
- a(q),
1615
+ a(Y),
1591
1616
  { content: "<p style='width: 285px'>Timeline events can cause significant performance overhead in large applications, so we recommend enabling it only when needed and on-demand. </p>", html: !0 },
1592
1617
  void 0,
1593
1618
  { "bottom-end": !0 }
1594
1619
  ]
1595
1620
  ])
1596
1621
  ])
1597
- ])) : U("", !0)
1622
+ ])) : j("", !0)
1598
1623
  ]));
1599
1624
  }
1600
- }), it = /* @__PURE__ */ xe(Zo, [["__scopeId", "data-v-3dbcfd2a"]]);
1601
- function ds() {
1602
- const n = N([]), e = N([]);
1625
+ }), ct = /* @__PURE__ */ be(Yo, [["__scopeId", "data-v-3dbcfd2a"]]);
1626
+ function g1() {
1627
+ const t = N([]), e = N([]);
1603
1628
  function o(l) {
1604
- e.value = l, l.length < n.value.length && (n.value = []), e.value.forEach((s) => {
1605
- t(s);
1629
+ e.value = l, l.length < t.value.length && (t.value = []), e.value.forEach((s) => {
1630
+ n(s);
1606
1631
  });
1607
1632
  }
1608
- Re(() => {
1609
- R.value.getCustomInspector().then((l) => {
1633
+ De(() => {
1634
+ A.value.getCustomInspector().then((l) => {
1610
1635
  e.value = l, e.value.forEach((s) => {
1611
- t(s);
1636
+ n(s);
1612
1637
  });
1613
- }), R.functions.on(Y.INSPECTOR_UPDATED, o);
1638
+ }), A.functions.on(X.INSPECTOR_UPDATED, o);
1614
1639
  });
1615
- function t(l) {
1616
- n.value.some((s) => s.id === l.id) || n.value.push(l);
1640
+ function n(l) {
1641
+ t.value.some((s) => s.id === l.id) || t.value.push(l);
1617
1642
  }
1618
- return we(() => {
1619
- R.functions.off(Y.INSPECTOR_UPDATED, o);
1643
+ return ke(() => {
1644
+ A.functions.off(X.INSPECTOR_UPDATED, o);
1620
1645
  }), {
1621
- registeredInspector: n,
1622
- register: t
1646
+ registeredInspector: t,
1647
+ register: n
1623
1648
  };
1624
1649
  }
1625
- const Wt = Symbol("SelectedSymbolKey");
1626
- function Ko() {
1627
- const n = N("");
1628
- return ye(Wt, n), {
1629
- selected: n
1650
+ const Xt = Symbol("SelectedSymbolKey");
1651
+ function Xo() {
1652
+ const t = N("");
1653
+ return _e(Xt, t), {
1654
+ selected: t
1630
1655
  };
1631
1656
  }
1632
- function Go() {
1633
- const n = me(Wt, N(""));
1657
+ function Qo() {
1658
+ const t = ge(Xt, N(""));
1634
1659
  function e(o) {
1635
- n.value = o;
1660
+ t.value = o;
1636
1661
  }
1637
1662
  return {
1638
- selected: n,
1663
+ selected: t,
1639
1664
  select: e
1640
1665
  };
1641
1666
  }
1642
- const Wo = ["onClick", "onDblclick", "onMouseover"], qo = {
1667
+ const el = ["onClick", "onDblclick", "onMouseover"], tl = {
1643
1668
  key: 1,
1644
1669
  pl5: ""
1645
- }, Jo = {
1670
+ }, nl = {
1646
1671
  "font-state-field": "",
1647
1672
  "text-3.5": ""
1648
- }, Yo = {
1673
+ }, ol = {
1649
1674
  key: 0,
1650
1675
  class: "text-gray-400 dark:text-gray-600 group-hover:text-white group-hover:op50 [.active_&]:op50 [.active_&]:text-white!"
1651
- }, Xo = {
1676
+ }, ll = {
1652
1677
  "group-hover:text-white": "",
1653
1678
  class: "ws-nowrap [.active_&]:text-white"
1654
- }, Qo = {
1679
+ }, sl = {
1655
1680
  key: 2,
1656
1681
  class: "text-gray-400 dark:text-gray-600 group-hover:text-white group-hover:op50 [.active_&]:op50 [.active_&]:text-white!"
1657
- }, el = {
1682
+ }, al = {
1658
1683
  key: 2,
1659
1684
  class: "ml-2 rounded-sm bg-blue-400 px-1 text-[0.75rem] leading-snug dark:bg-blue-800"
1660
- }, tl = {
1685
+ }, il = {
1661
1686
  key: 3,
1662
1687
  class: "ml-2 rounded-sm bg-gray-500 px-1 text-[0.75rem] leading-snug"
1663
- }, nl = { key: 0 }, Me = /* @__PURE__ */ F({
1688
+ }, rl = { key: 0 }, Oe = /* @__PURE__ */ F({
1664
1689
  __name: "TreeViewer",
1665
- props: /* @__PURE__ */ Ne({
1690
+ props: /* @__PURE__ */ Re({
1666
1691
  data: {},
1667
1692
  depth: { default: 0 },
1668
1693
  withTag: { type: Boolean, default: !1 }
@@ -1670,336 +1695,383 @@ const Wo = ["onClick", "onDblclick", "onMouseover"], qo = {
1670
1695
  modelValue: {},
1671
1696
  modelModifiers: {}
1672
1697
  }),
1673
- emits: /* @__PURE__ */ Ne(["hover", "leave"], ["update:modelValue"]),
1674
- setup(n, { emit: e }) {
1675
- const o = e, t = We(n, "modelValue"), { expanded: l, toggleExpanded: s } = ot();
1676
- Go();
1698
+ emits: /* @__PURE__ */ Re(["hover", "leave"], ["update:modelValue"]),
1699
+ setup(t, { emit: e }) {
1700
+ const o = e, n = Ye(t, "modelValue"), { expanded: l, toggleExpanded: s } = at();
1701
+ Qo();
1677
1702
  function p(i) {
1678
1703
  return "name" in i && i?.name || "label" in i && i.label;
1679
1704
  }
1680
1705
  function r(i) {
1681
- t.value = i;
1706
+ n.value = i;
1682
1707
  }
1683
- return (i, f) => (c(!0), m(ne, null, ue(i.data, (v, d) => (c(), m("div", {
1708
+ return (i, f) => (c(!0), m(le, null, ce(i.data, (v, d) => (c(), m("div", {
1684
1709
  key: d,
1685
- class: ae({
1710
+ class: ie({
1686
1711
  "min-w-max": i.depth === 0
1687
1712
  })
1688
1713
  }, [
1689
1714
  u("div", {
1690
- class: ae(["group flex cursor-pointer items-center rounded-1 hover:bg-primary-300 hover:dark:bg-gray-600", { "bg-primary-600! active": t.value === v.id }]),
1691
- style: $e({ paddingLeft: `${15 * i.depth + 4}px` }),
1715
+ 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 }]),
1716
+ style: Se({ paddingLeft: `${15 * i.depth + 4}px` }),
1692
1717
  onClick: (h) => r(v.id),
1693
1718
  onDblclick: (h) => a(s)(v.id),
1694
1719
  onMouseover: () => o("hover", v.id),
1695
1720
  onMouseleave: f[0] || (f[0] = () => o("leave"))
1696
1721
  }, [
1697
- v?.children?.length ? (c(), z(tt, {
1722
+ v?.children?.length ? (c(), z(lt, {
1698
1723
  key: 0,
1699
1724
  value: a(l).includes(v.id),
1700
1725
  class: "[.active_&]:op20 group-hover:op20",
1701
- onClick: fe((h) => a(s)(v.id), ["stop"])
1702
- }, null, 8, ["value", "onClick"])) : (c(), m("span", qo)),
1703
- u("span", Jo, [
1704
- i.withTag ? (c(), m("span", Yo, "<")) : U("", !0),
1705
- u("span", Xo, ie(p(v)), 1),
1706
- (v.renderKey === 0 || v.renderKey) && v.renderKey !== a(Vt) ? (c(), m("span", {
1726
+ onClick: he((h) => a(s)(v.id), ["stop"])
1727
+ }, null, 8, ["value", "onClick"])) : (c(), m("span", tl)),
1728
+ u("span", nl, [
1729
+ i.withTag ? (c(), m("span", ol, "<")) : j("", !0),
1730
+ u("span", ll, re(p(v)), 1),
1731
+ (v.renderKey === 0 || v.renderKey) && v.renderKey !== a(Dt) ? (c(), m("span", {
1707
1732
  key: 1,
1708
- class: ae(["text-xs opacity-50", {
1709
- "opacity-100": t.value === v.id
1733
+ class: ie(["text-xs opacity-50", {
1734
+ "opacity-100": n.value === v.id
1710
1735
  }])
1711
1736
  }, [
1712
1737
  u("span", {
1713
- class: ae([t.value === v.id ? "text-purple-200" : "text-purple-500"])
1738
+ class: ie([n.value === v.id ? "text-purple-200" : "text-purple-500"])
1714
1739
  }, " key", 2),
1715
- f[4] || (f[4] = X("=", -1)),
1716
- u("span", null, ie(v.renderKey), 1)
1717
- ], 2)) : U("", !0),
1718
- i.withTag ? (c(), m("span", Qo, ">")) : U("", !0)
1740
+ f[4] || (f[4] = Q("=", -1)),
1741
+ u("span", null, re(v.renderKey), 1)
1742
+ ], 2)) : j("", !0),
1743
+ i.withTag ? (c(), m("span", sl, ">")) : j("", !0)
1719
1744
  ]),
1720
- v.isFragment ? W((c(), m("span", el, f[5] || (f[5] = [
1721
- X(" fragment ", -1)
1722
- ]))), [
1723
- [a(q), "Has multiple root DOM nodes"]
1724
- ]) : U("", !0),
1725
- v.inactive ? W((c(), m("span", tl, f[6] || (f[6] = [
1726
- X(" inactive ", -1)
1727
- ]))), [
1728
- [a(q), "Currently inactive but not destroyed"]
1729
- ]) : U("", !0),
1730
- (c(!0), m(ne, null, ue(v.tags, (h, $) => (c(), z(Lt, {
1731
- key: $,
1745
+ v.isFragment ? q((c(), m("span", al, [...f[5] || (f[5] = [
1746
+ Q(" fragment ", -1)
1747
+ ])])), [
1748
+ [a(Y), "Has multiple root DOM nodes"]
1749
+ ]) : j("", !0),
1750
+ v.inactive ? q((c(), m("span", il, [...f[6] || (f[6] = [
1751
+ Q(" inactive ", -1)
1752
+ ])])), [
1753
+ [a(Y), "Currently inactive but not destroyed"]
1754
+ ]) : j("", !0),
1755
+ (c(!0), m(le, null, ce(v.tags, (h, T) => (c(), z(jt, {
1756
+ key: T,
1732
1757
  tag: h
1733
1758
  }, null, 8, ["tag"]))), 128))
1734
- ], 46, Wo),
1735
- v?.children?.length && a(l).includes(v.id) ? (c(), m("div", nl, [
1736
- y(Me, {
1737
- modelValue: t.value,
1738
- "onUpdate:modelValue": f[1] || (f[1] = (h) => t.value = h),
1759
+ ], 46, el),
1760
+ v?.children?.length && a(l).includes(v.id) ? (c(), m("div", rl, [
1761
+ x(Oe, {
1762
+ modelValue: n.value,
1763
+ "onUpdate:modelValue": f[1] || (f[1] = (h) => n.value = h),
1739
1764
  data: v?.children,
1740
1765
  depth: i.depth + 1,
1741
1766
  "with-tag": i.withTag,
1742
1767
  onHover: f[2] || (f[2] = (h) => o("hover", h)),
1743
1768
  onLeave: f[3] || (f[3] = (h) => o("leave"))
1744
1769
  }, null, 8, ["modelValue", "data", "depth", "with-tag"])
1745
- ])) : U("", !0)
1770
+ ])) : j("", !0)
1746
1771
  ], 2))), 128));
1747
1772
  }
1748
- }), St = 200;
1749
- function ol() {
1750
- const n = kt((o) => R.value.highlighComponent(o), St), e = kt(() => R.value.unhighlight(), St);
1773
+ }), Nt = 200;
1774
+ function ul() {
1751
1775
  return {
1752
- highlight: n,
1753
- unhighlight: e
1776
+ highlight: /* @__PURE__ */ Tt((o) => A.value.highlighComponent(o), Nt),
1777
+ unhighlight: /* @__PURE__ */ Tt(() => A.value.unhighlight(), Nt)
1754
1778
  };
1755
1779
  }
1756
- const ll = { 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" }, sl = { class: "flex-1 overflow-scroll text-3.5" }, al = /* @__PURE__ */ F({
1780
+ const cl = { 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" }, dl = { class: "flex-1 overflow-scroll text-3.5" }, pl = /* @__PURE__ */ F({
1757
1781
  __name: "RenderCode",
1758
1782
  props: {
1759
1783
  code: {}
1760
1784
  },
1761
1785
  emits: ["close"],
1762
- setup(n, { emit: e }) {
1786
+ setup(t, { emit: e }) {
1763
1787
  const o = e;
1764
- function t() {
1788
+ function n() {
1765
1789
  o("close");
1766
1790
  }
1767
- return (l, s) => (c(), m("div", ll, [
1791
+ return (l, s) => (c(), m("div", cl, [
1768
1792
  u("div", { class: "h-12 w-full flex items-center justify-between p-2" }, [
1769
1793
  s[0] || (s[0] = u("span", { class: "font-500" }, "Render Code", -1)),
1770
1794
  u("i", {
1771
1795
  class: "i-carbon-close cursor-pointer hover:op80",
1772
- onClick: t
1796
+ onClick: n
1773
1797
  })
1774
1798
  ]),
1775
- u("div", sl, [
1776
- y(a(pn), {
1799
+ u("div", dl, [
1800
+ x(a(gn), {
1777
1801
  code: l.code,
1778
1802
  lang: "javascript"
1779
1803
  }, null, 8, ["code"])
1780
1804
  ])
1781
1805
  ]));
1782
1806
  }
1783
- }), il = { class: "h-full w-full" }, rl = { class: "no-scrollbar h-full flex select-none gap-2 overflow-scroll" }, ul = {
1807
+ }), fl = { class: "h-full w-full" }, vl = { class: "no-scrollbar h-full flex select-none gap-2 overflow-scroll" }, ml = {
1784
1808
  key: 0,
1785
1809
  class: "h-full flex flex-col p2"
1786
- }, cl = { class: "flex py2" }, dl = {
1810
+ }, hl = { class: "flex py2" }, gl = {
1787
1811
  xmlns: "http://www.w3.org/2000/svg",
1788
1812
  style: { height: "1.1em", width: "1.1em" },
1789
1813
  class: "op-80 hover:op-100",
1790
1814
  viewBox: "0 0 24 24"
1791
- }, pl = { class: "h-full flex flex-col p2" }, fl = { class: "flex py2" }, vl = {
1815
+ }, Cl = { class: "h-full flex flex-col p2" }, yl = { class: "flex py2" }, _l = {
1792
1816
  key: 0,
1793
1817
  class: "font-state-field flex items-center px-1 text-3.5"
1794
- }, ml = {
1818
+ }, xl = {
1795
1819
  "group-hover:text-white": "",
1796
1820
  class: "max-w-40 of-hidden text-ellipsis ws-nowrap [.active_&]:text-white"
1797
- }, hl = { class: "flex items-center gap-2 px-1" }, gl = { class: "h-full flex flex-col items-center justify-center gap-2" }, Cl = { class: "block" }, yl = {
1821
+ }, bl = { class: "flex items-center gap-2 px-1" }, wl = { class: "h-full flex flex-col items-center justify-center gap-2" }, kl = { class: "block" }, Il = {
1798
1822
  xmlns: "http://www.w3.org/2000/svg",
1799
1823
  style: { height: "2em", width: "2em", opacity: "0.5", color: "#00dc82" },
1800
1824
  class: "animate-fade",
1801
1825
  viewBox: "0 0 24 24"
1802
- }, _l = { class: "flex items-center justify-center" }, Ve = "components", xl = /* @__PURE__ */ F({
1826
+ }, $l = { class: "flex items-center justify-center" }, Ae = "components", Sl = /* @__PURE__ */ F({
1803
1827
  __name: "index",
1804
1828
  emits: ["openInEditor", "onInspectComponentStart", "onInspectComponentEnd"],
1805
- setup(n, { emit: e }) {
1806
- const o = e, t = N(), l = N(!1), { width: s } = ro(t), p = I(() => l.value ? s.value < 700 : !1), r = N(""), i = N(""), [f, v] = Ft(!0), d = N(!1), h = N(!1), $ = N(""), E = N(!1), k = ol();
1807
- function b(S, T = [], j = []) {
1808
- return T.push(S.id), S.children?.length === 0 && j.push([...T]), Array.isArray(S.children) && S.children.forEach((se) => {
1809
- b(se, T, j);
1810
- }), T.pop(), j;
1811
- }
1812
- function A(S) {
1813
- const T = [], j = (se) => {
1814
- se?.forEach((Ce) => {
1815
- T.push(Ce), Ce.children?.length && j(Ce.children);
1829
+ setup(t, { emit: e }) {
1830
+ const o = e, n = N(), l = N(!1), { width: s } = mo(n), p = S(() => l.value ? s.value < 700 : !1), r = N(""), i = N(""), [f, v] = /* @__PURE__ */ Wt(!0), d = N(!1), h = N(!1), T = N(""), E = N(!1), $ = ul();
1831
+ function I(b, y = [], M = []) {
1832
+ return y.push(b.id), b.children?.length === 0 && M.push([...y]), Array.isArray(b.children) && b.children.forEach((K) => {
1833
+ I(K, y, M);
1834
+ }), y.pop(), M;
1835
+ }
1836
+ function L(b) {
1837
+ const y = [], M = (K) => {
1838
+ K?.forEach((ee) => {
1839
+ y.push(ee), ee.children?.length && M(ee.children);
1816
1840
  });
1817
1841
  };
1818
- return j(S), T;
1819
- }
1820
- function V(S, T) {
1821
- const j = [];
1822
- return S?.forEach((se) => {
1823
- j.push(...se.slice(0, T + 1));
1824
- }), [...new Set(j)];
1825
- }
1826
- function _(S, T) {
1827
- const j = [];
1828
- return S.forEach((se) => {
1829
- const Ce = se.indexOf(T);
1830
- Ce !== -1 && j.push(...se.slice(0, Ce + 1));
1831
- }), [...new Set(j)];
1832
- }
1833
- const D = N([]), Z = I(() => D.value?.length ? b(D.value?.[0]) : []), K = I(() => A(D.value)), G = I(() => K.value.map((S) => S.id)), H = N({}), w = N(""), O = I(() => {
1834
- const S = [], T = (j) => {
1835
- j.forEach((se) => {
1836
- se.id === w.value && S.push(se), se.children?.length && T(se.children);
1842
+ return M(b), y;
1843
+ }
1844
+ function V(b, y) {
1845
+ const M = [];
1846
+ return b?.forEach((K) => {
1847
+ M.push(...K.slice(0, y + 1));
1848
+ }), [...new Set(M)];
1849
+ }
1850
+ function w(b, y) {
1851
+ const M = [];
1852
+ return b.forEach((K) => {
1853
+ const ee = K.indexOf(y);
1854
+ ee !== -1 && M.push(...K.slice(0, ee + 1));
1855
+ }), [...new Set(M)];
1856
+ }
1857
+ const D = N([]), B = S(() => D.value?.length ? I(D.value?.[0]) : []), G = S(() => L(D.value)), W = S(() => G.value.map((b) => b.id)), O = N({}), C = N(""), U = S(() => {
1858
+ const b = [], y = (M) => {
1859
+ M.forEach((K) => {
1860
+ K.id === C.value && b.push(K), K.children?.length && y(K.children);
1837
1861
  });
1838
1862
  };
1839
- return T(D.value), S[0];
1840
- }), te = I(() => O.value?.file ?? ""), oe = I(() => Xe({
1841
- state: H.value,
1863
+ return y(D.value), b[0];
1864
+ }), oe = S(() => U.value?.file ?? ""), se = S(() => tt({
1865
+ state: O.value,
1842
1866
  filterKey: i.value,
1843
- processGroup(S) {
1844
- return $n(Object.values(Sn(Dt(S), "stateType")));
1867
+ processGroup(b) {
1868
+ return Nn(Object.values(An(Mt(b), "stateType")));
1845
1869
  }
1846
- })), { expanded: M } = ge(), { expanded: x } = ge("component-state");
1847
- Ko();
1848
- async function g(S = "") {
1849
- return R.value.getInspectorTree({ inspectorId: Ve, filter: S }).then((T) => {
1850
- const j = ee(T);
1851
- D.value = j, w.value = D.value?.[0]?.id, M.value = V(Z.value, 1), d.value = !0;
1870
+ })), { expanded: R } = ye(), { expanded: k } = ye("component-state");
1871
+ Xo();
1872
+ async function g(b = "") {
1873
+ return A.value.getInspectorTree({ inspectorId: Ae, filter: b }).then((y) => {
1874
+ const M = ne(y);
1875
+ D.value = M, C.value = D.value?.[0]?.id, R.value = V(B.value, 1), d.value = !0;
1852
1876
  });
1853
1877
  }
1854
- function C(S) {
1855
- if (!S || !S?.state)
1878
+ function _(b) {
1879
+ if (!b || !b?.state)
1856
1880
  return {};
1857
- const T = {};
1858
- return S.state.forEach((j) => {
1859
- T[j.type] || (T[j.type] = []), T[j.type].push(j);
1860
- }), T;
1861
- }
1862
- function P(S) {
1863
- R.value.getInspectorState({ inspectorId: Ve, nodeId: S }).then((T) => {
1864
- const j = ee(T);
1865
- j && (H.value = C(j), x.value = Array.from({ length: Object.keys(H.value).length }, (se, Ce) => `${Ce}`));
1881
+ const y = {};
1882
+ return b.state.forEach((M) => {
1883
+ y[M.type] || (y[M.type] = []), y[M.type].push(M);
1884
+ }), y;
1885
+ }
1886
+ function P(b) {
1887
+ A.value.getInspectorState({ inspectorId: Ae, nodeId: b }).then((y) => {
1888
+ const M = ne(y);
1889
+ M && (O.value = _(M), k.value = Array.from({ length: Object.keys(O.value).length }, (K, ee) => `${ee}`));
1866
1890
  });
1867
1891
  }
1868
- Q(w, (S) => {
1869
- P(S), E.value && ft();
1892
+ te(C, (b) => {
1893
+ P(b), E.value && gt();
1870
1894
  });
1871
- function B(S) {
1872
- const T = ee(S);
1873
- T.inspectorId !== Ve || T.nodeId !== w.value || (H.value = C({ state: T.state.state }));
1874
- }
1875
- R.functions.on(Y.INSPECTOR_STATE_UPDATED, B), g();
1876
- function le(S) {
1877
- const T = S.trim().toLowerCase();
1878
- v(), g(T).then(() => {
1895
+ function Z(b) {
1896
+ const y = ne(b);
1897
+ y.inspectorId !== Ae || y.nodeId !== C.value || (O.value = _({ state: y.state.state }));
1898
+ }
1899
+ A.functions.on(X.INSPECTOR_STATE_UPDATED, Z), g();
1900
+ function ae(b) {
1901
+ const y = b.trim().toLowerCase();
1902
+ v(), g(y).then(() => {
1879
1903
  v();
1880
1904
  });
1881
1905
  }
1882
- Zt(r, (S) => {
1883
- le(S);
1906
+ qt(r, (b) => {
1907
+ ae(b);
1884
1908
  }, { debounce: 300 });
1885
- function Ee(S) {
1886
- const T = ee(S);
1887
- T.inspectorId === Ve && (r.value ? le(r.value) : D.value = T.rootNodes, G.value.includes(w.value) || (w.value = D.value?.[0]?.id, M.value = V(Z.value, 1)));
1909
+ function Ve(b) {
1910
+ const y = ne(b);
1911
+ y.inspectorId === Ae && (r.value ? ae(r.value) : D.value = y.rootNodes, W.value.includes(C.value) || (C.value = D.value?.[0]?.id, R.value = V(B.value, 1)));
1888
1912
  }
1889
- R.functions.on(Y.INSPECTOR_TREE_UPDATED, Ee), we(() => {
1890
- R.functions.off(Y.INSPECTOR_STATE_UPDATED, B), R.functions.off(Y.INSPECTOR_TREE_UPDATED, Ee);
1913
+ A.functions.on(X.INSPECTOR_TREE_UPDATED, Ve), ke(() => {
1914
+ A.functions.off(X.INSPECTOR_STATE_UPDATED, Z), A.functions.off(X.INSPECTOR_TREE_UPDATED, Ve);
1891
1915
  });
1892
- const Fe = Rt(), ut = I(() => Fe.appRecords.value.map((S) => ({
1893
- label: S.name + (S.version ? ` (${S.version})` : ""),
1894
- value: S.id,
1895
- iframe: S.iframe
1896
- }))), Xt = I(() => ut.value.map((S) => ({
1897
- label: S.label + (S.iframe ? ` (iframe: ${S.iframe})` : ""),
1898
- id: S.value
1899
- }))), Le = N(Fe.activeAppRecordId.value);
1900
- Ye(() => {
1901
- Le.value = Fe.activeAppRecordId.value;
1916
+ const Ke = Lt(), pt = S(() => Ke.appRecords.value.map((b) => ({
1917
+ label: b.name + (b.version ? ` (${b.version})` : ""),
1918
+ value: b.id,
1919
+ iframe: b.iframe
1920
+ }))), nn = S(() => pt.value.map((b) => ({
1921
+ label: b.label + (b.iframe ? ` (iframe: ${b.iframe})` : ""),
1922
+ id: b.value
1923
+ }))), Ue = N(Ke.activeAppRecordId.value);
1924
+ et(() => {
1925
+ Ue.value = Ke.activeAppRecordId.value;
1902
1926
  });
1903
- async function ct(S, T = {}) {
1904
- await R.value.toggleApp(S, T), w.value = "", await g();
1927
+ async function ft(b, y = {}) {
1928
+ await A.value.toggleApp(b, y), C.value = "", await g();
1905
1929
  }
1906
- async function dt() {
1930
+ async function vt() {
1907
1931
  h.value = !0, o("onInspectComponentStart");
1908
1932
  try {
1909
- const S = JSON.parse(await R.value.inspectComponentInspector()), T = S.id.split(":")[0];
1910
- Le.value !== S.appId && await ct(T, { inspectingComponent: !0 }), w.value = S.id, M.value.includes(S.id) || M.value.push(S.id), M.value = [.../* @__PURE__ */ new Set([...M.value, ..._(Z.value, S.id)])], nn();
1933
+ const b = JSON.parse(await A.value.inspectComponentInspector()), y = b.id.split(":")[0];
1934
+ Ue.value !== b.appId && await ft(y, { inspectingComponent: !0 }), C.value = b.id, R.value.includes(b.id) || R.value.push(b.id), R.value = [.../* @__PURE__ */ new Set([...R.value, ...w(B.value, b.id)])], rn();
1911
1935
  } finally {
1912
1936
  h.value = !1, o("onInspectComponentEnd");
1913
1937
  }
1914
1938
  }
1915
- function pt() {
1916
- h.value = !1, R.value.cancelInspectComponentInspector();
1917
- }
1918
- ve("keydown", (S) => {
1919
- S.key === "s" && (S.ctrlKey || S.metaKey) && !h.value ? dt() : S.key === "Escape" && h.value && pt();
1939
+ function mt() {
1940
+ h.value = !1, A.value.cancelInspectComponentInspector();
1941
+ }
1942
+ ve("keydown", (b) => {
1943
+ b.key === "s" && (b.ctrlKey || b.metaKey) && !h.value ? vt() : b.key === "Escape" && h.value && mt();
1944
+ }), Ne("ArrowRight", () => {
1945
+ const b = R.value.includes(C.value), y = G.value.find((M) => M.id === C.value)?.children?.length;
1946
+ !b && y && R.value.push(C.value);
1947
+ }), Ne("ArrowLeft", () => {
1948
+ R.value.includes(C.value) && R.value.splice(R.value.indexOf(C.value), 1);
1949
+ }), Ne("ArrowDown", () => {
1950
+ const b = W.value.indexOf(C.value);
1951
+ if (R.value.includes(C.value) && b >= 0 && b < W.value.length - 1)
1952
+ C.value = W.value[b + 1];
1953
+ else {
1954
+ if (b === 0)
1955
+ return !1;
1956
+ C.value = on();
1957
+ }
1958
+ }), Ne("ArrowUp", () => {
1959
+ const b = C.value, y = B.value.find((Ge) => Ge.includes(b));
1960
+ if (!y)
1961
+ return;
1962
+ const M = y.indexOf(b), K = M > 0 ? M - 1 : 0, ee = y[K], pe = ht(ee);
1963
+ pe && (C.value = pe.id);
1964
+ }), Ne([" ", "Enter"], () => {
1965
+ if (!G.value.find((M) => M.id === C.value)?.children?.length)
1966
+ return;
1967
+ const y = R.value.indexOf(C.value);
1968
+ y === -1 ? R.value.push(C.value) : R.value.splice(y, 1);
1920
1969
  });
1921
- function Qt() {
1922
- R.value.scrollToComponent(w.value);
1970
+ function ht(b) {
1971
+ const y = G.value.find((ee) => ee.id === b);
1972
+ if (!y || !y.children?.length || y.children.length === 1)
1973
+ return y;
1974
+ const M = y?.children?.findIndex((ee) => ee.id === C.value);
1975
+ if (M <= 0)
1976
+ return y;
1977
+ let K = y.children[M - 1];
1978
+ for (; K && R.value.includes(K.id) && K.children?.length; ) {
1979
+ const ee = K.children[K.children.length - 1], pe = ht(ee.id);
1980
+ if (!pe || pe.id === K.id)
1981
+ break;
1982
+ K = pe;
1983
+ }
1984
+ return K || y;
1985
+ }
1986
+ function on() {
1987
+ const b = B.value, y = [...b].findLastIndex((pe) => pe?.includes(C.value));
1988
+ if (y === -1)
1989
+ return C.value;
1990
+ const M = b[y], K = b[y + 1], ee = K?.findIndex((pe, Ge) => pe !== M[Ge]) ?? -1;
1991
+ return ee !== -1 ? K[ee] : C.value;
1992
+ }
1993
+ function ln() {
1994
+ A.value.scrollToComponent(C.value);
1923
1995
  }
1924
- function en() {
1925
- R.value.inspectDOM(w.value).then(() => {
1996
+ function sn() {
1997
+ A.value.inspectDOM(C.value).then(() => {
1926
1998
  chrome.devtools.inspectedWindow.eval("inspect(window.__VUE_DEVTOOLS_INSPECT_DOM_TARGET__)");
1927
1999
  });
1928
2000
  }
1929
- function ft() {
1930
- R.value.getComponentRenderCode(w.value).then((S) => {
1931
- $.value = S, E.value = !0;
2001
+ function gt() {
2002
+ A.value.getComponentRenderCode(C.value).then((b) => {
2003
+ T.value = b, E.value = !0;
1932
2004
  });
1933
2005
  }
1934
- function tn() {
1935
- o("openInEditor", te.value);
2006
+ function an() {
2007
+ o("openInEditor", oe.value);
1936
2008
  }
1937
- const vt = N();
1938
- function nn() {
2009
+ const Ct = N();
2010
+ function rn() {
1939
2011
  setTimeout(() => {
1940
- vt.value?.querySelector(".active")?.scrollIntoView({ behavior: "smooth", block: "center" });
2012
+ Ct.value?.querySelector(".active")?.scrollIntoView({ behavior: "smooth", block: "center" });
1941
2013
  }, 300);
1942
2014
  }
1943
- function on() {
1944
- $.value = "", E.value = !1;
2015
+ function un() {
2016
+ T.value = "", E.value = !1;
1945
2017
  }
1946
- return (S, T) => (c(), m("div", il, [
1947
- y(a(De), {
2018
+ return (b, y) => (c(), m("div", fl, [
2019
+ x(a(Pe), {
1948
2020
  ref_key: "splitpanesRef",
1949
- ref: t,
2021
+ ref: n,
1950
2022
  class: "flex-1 overflow-auto",
1951
2023
  horizontal: p.value,
1952
- onReady: T[4] || (T[4] = (j) => l.value = !0)
2024
+ onReady: y[4] || (y[4] = (M) => l.value = !0)
1953
2025
  }, {
1954
- default: L(() => [
1955
- ut.value.length > 1 ? (c(), z(a(ce), {
2026
+ default: H(() => [
2027
+ pt.value.length > 1 ? (c(), z(a(de), {
1956
2028
  key: 0,
1957
2029
  border: "base h-full",
1958
2030
  size: "20"
1959
2031
  }, {
1960
- default: L(() => [
1961
- u("div", rl, [
1962
- y(Pn, {
1963
- modelValue: Le.value,
1964
- "onUpdate:modelValue": T[0] || (T[0] = (j) => Le.value = j),
1965
- data: Xt.value,
2032
+ default: H(() => [
2033
+ u("div", vl, [
2034
+ x(On, {
2035
+ modelValue: Ue.value,
2036
+ "onUpdate:modelValue": y[0] || (y[0] = (M) => Ue.value = M),
2037
+ data: nn.value,
1966
2038
  class: "w-full",
1967
- onSelect: ct
2039
+ onSelect: ft
1968
2040
  }, null, 8, ["modelValue", "data"])
1969
2041
  ])
1970
2042
  ]),
1971
2043
  _: 1
1972
- })) : U("", !0),
1973
- y(a(ce), {
2044
+ })) : j("", !0),
2045
+ x(a(de), {
1974
2046
  border: "base",
1975
2047
  "h-full": ""
1976
2048
  }, {
1977
- default: L(() => [
1978
- d.value ? (c(), m("div", ul, [
1979
- u("div", cl, [
1980
- y(a(he), {
2049
+ default: H(() => [
2050
+ d.value ? (c(), m("div", ml, [
2051
+ u("div", hl, [
2052
+ x(a(Ce), {
1981
2053
  modelValue: r.value,
1982
- "onUpdate:modelValue": T[1] || (T[1] = (j) => r.value = j),
2054
+ "onUpdate:modelValue": y[1] || (y[1] = (M) => r.value = M),
1983
2055
  "loading-debounce-time": 250,
1984
2056
  loading: !a(f),
1985
2057
  placeholder: "Find components...",
1986
2058
  class: "flex-1 text-3.5"
1987
2059
  }, null, 8, ["modelValue", "loading"]),
1988
- a(wn) ? U("", !0) : W((c(), m("button", {
2060
+ a(Tn) ? j("", !0) : q((c(), m("button", {
1989
2061
  key: 0,
1990
2062
  "px-1": "",
1991
2063
  class: "hover:color-#00dc82",
1992
- onClick: dt
2064
+ onClick: vt
1993
2065
  }, [
1994
- (c(), m("svg", dl, T[6] || (T[6] = [
2066
+ (c(), m("svg", gl, [...y[6] || (y[6] = [
1995
2067
  u("path", {
1996
2068
  fill: "currentColor",
1997
2069
  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"
1998
2070
  }, null, -1)
1999
- ])))
2071
+ ])]))
2000
2072
  ])), [
2001
2073
  [
2002
- a(q),
2074
+ a(Y),
2003
2075
  "Select component in the page",
2004
2076
  void 0,
2005
2077
  { bottom: !0 }
@@ -2008,132 +2080,131 @@ const ll = { class: "absolute left-0 top-0 h-full w-full flex flex-col rounded-b
2008
2080
  ]),
2009
2081
  u("div", {
2010
2082
  ref_key: "componentTreeContainer",
2011
- ref: vt,
2083
+ ref: Ct,
2012
2084
  class: "no-scrollbar flex-1 select-none overflow-scroll"
2013
2085
  }, [
2014
- y(Me, {
2015
- modelValue: w.value,
2016
- "onUpdate:modelValue": T[2] || (T[2] = (j) => w.value = j),
2086
+ x(Oe, {
2087
+ modelValue: C.value,
2088
+ "onUpdate:modelValue": y[2] || (y[2] = (M) => C.value = M),
2017
2089
  data: D.value,
2018
2090
  "with-tag": !0,
2019
- onHover: a(k).highlight,
2020
- onLeave: a(k).unhighlight
2091
+ onHover: a($).highlight,
2092
+ onLeave: a($).unhighlight
2021
2093
  }, null, 8, ["modelValue", "data", "onHover", "onLeave"])
2022
2094
  ], 512)
2023
- ])) : U("", !0)
2095
+ ])) : j("", !0)
2024
2096
  ]),
2025
2097
  _: 1
2026
2098
  }),
2027
- y(a(ce), {
2099
+ x(a(de), {
2028
2100
  relative: "",
2029
2101
  "h-full": ""
2030
2102
  }, {
2031
- default: L(() => [
2032
- u("div", pl, [
2033
- u("div", fl, [
2034
- O.value?.name ? (c(), m("span", vl, [
2035
- T[7] || (T[7] = u("span", { class: "text-gray-400 dark:text-gray-600" }, "<", -1)),
2036
- u("span", ml, ie(O.value.name), 1),
2037
- T[8] || (T[8] = u("span", { class: "text-gray-400 dark:text-gray-600" }, ">", -1))
2038
- ])) : U("", !0),
2039
- y(a(he), {
2103
+ default: H(() => [
2104
+ u("div", Cl, [
2105
+ u("div", yl, [
2106
+ U.value?.name ? (c(), m("span", _l, [
2107
+ y[7] || (y[7] = u("span", { class: "text-gray-400 dark:text-gray-600" }, "<", -1)),
2108
+ u("span", xl, re(U.value.name), 1),
2109
+ y[8] || (y[8] = u("span", { class: "text-gray-400 dark:text-gray-600" }, ">", -1))
2110
+ ])) : j("", !0),
2111
+ x(a(Ce), {
2040
2112
  modelValue: i.value,
2041
- "onUpdate:modelValue": T[3] || (T[3] = (j) => i.value = j),
2113
+ "onUpdate:modelValue": y[3] || (y[3] = (M) => i.value = M),
2042
2114
  "loading-debounce-time": 250,
2043
2115
  placeholder: "Filter State...",
2044
2116
  class: "flex-1 text-3.5"
2045
2117
  }, null, 8, ["modelValue"]),
2046
- u("div", hl, [
2047
- W(u("i", {
2118
+ u("div", bl, [
2119
+ q(u("i", {
2048
2120
  class: "i-material-symbols-light:eye-tracking-outline h-4 w-4 cursor-pointer hover:op-70",
2049
- onClick: Qt
2121
+ onClick: ln
2050
2122
  }, null, 512), [
2051
2123
  [
2052
- a(q),
2124
+ a(Y),
2053
2125
  "Scroll to component",
2054
2126
  void 0,
2055
2127
  { bottom: !0 }
2056
2128
  ]
2057
2129
  ]),
2058
- W(u("i", {
2130
+ q(u("i", {
2059
2131
  class: "i-material-symbols-light:code h-5 w-5 cursor-pointer hover:op-70",
2060
- onClick: ft
2132
+ onClick: gt
2061
2133
  }, null, 512), [
2062
2134
  [
2063
- a(q),
2135
+ a(Y),
2064
2136
  "Show render code",
2065
2137
  void 0,
2066
2138
  { bottom: !0 }
2067
2139
  ]
2068
2140
  ]),
2069
- a(_t) ? W((c(), m("i", {
2141
+ a(kt) ? q((c(), m("i", {
2070
2142
  key: 0,
2071
2143
  class: "i-material-symbols-light:menu-open h-5 w-5 cursor-pointer hover:op-70",
2072
- onClick: en
2144
+ onClick: sn
2073
2145
  }, null, 512)), [
2074
2146
  [
2075
- a(q),
2147
+ a(Y),
2076
2148
  "Inspect DOM",
2077
2149
  void 0,
2078
2150
  { bottom: !0 }
2079
2151
  ]
2080
- ]) : U("", !0),
2081
- te.value ? W((c(), m("i", {
2152
+ ]) : j("", !0),
2153
+ oe.value ? q((c(), m("i", {
2082
2154
  key: 1,
2083
2155
  class: "i-carbon-launch h-4 w-4 cursor-pointer hover:op-70",
2084
- onClick: tn
2156
+ onClick: an
2085
2157
  }, null, 512)), [
2086
2158
  [
2087
- a(q),
2159
+ a(Y),
2088
2160
  "Open in Editor",
2089
2161
  void 0,
2090
2162
  { bottom: !0 }
2091
2163
  ]
2092
- ]) : U("", !0)
2164
+ ]) : j("", !0)
2093
2165
  ])
2094
2166
  ]),
2095
- y(Ae, {
2167
+ x(He, {
2096
2168
  class: "no-scrollbar flex-1 overflow-scroll",
2097
- data: oe.value,
2098
- "node-id": w.value,
2099
- "inspector-id": Ve,
2169
+ data: se.value,
2170
+ "node-id": C.value,
2171
+ "inspector-id": Ae,
2100
2172
  "expanded-state-id": "component-state"
2101
2173
  }, null, 8, ["data", "node-id"])
2102
2174
  ]),
2103
- E.value && $.value ? (c(), z(al, {
2175
+ E.value && T.value ? (c(), z(pl, {
2104
2176
  key: 0,
2105
- code: $.value,
2106
- onClose: on
2107
- }, null, 8, ["code"])) : U("", !0)
2177
+ code: T.value,
2178
+ onClose: un
2179
+ }, null, 8, ["code"])) : j("", !0)
2108
2180
  ]),
2109
2181
  _: 1
2110
2182
  })
2111
2183
  ]),
2112
2184
  _: 1
2113
2185
  }, 8, ["horizontal"]),
2114
- a(_t) ? (c(), z(a(fn), {
2186
+ a(kt) ? (c(), z(a(Cn), {
2115
2187
  key: 0,
2116
2188
  modelValue: h.value,
2117
- "onUpdate:modelValue": T[5] || (T[5] = (j) => h.value = j),
2189
+ "onUpdate:modelValue": y[5] || (y[5] = (M) => h.value = M),
2118
2190
  title: "",
2119
2191
  height: "12rem",
2120
2192
  closable: !1
2121
2193
  }, {
2122
- footer: L(() => [
2123
- u("div", _l, [
2124
- y(a(de), { onClick: pt }, {
2125
- default: L(() => T[11] || (T[11] = [
2126
- X(" Cancel ", -1)
2127
- ])),
2128
- _: 1,
2129
- __: [11]
2194
+ footer: H(() => [
2195
+ u("div", $l, [
2196
+ x(a(fe), { onClick: mt }, {
2197
+ default: H(() => [...y[11] || (y[11] = [
2198
+ Q(" Cancel ", -1)
2199
+ ])]),
2200
+ _: 1
2130
2201
  })
2131
2202
  ])
2132
2203
  ]),
2133
- default: L(() => [
2134
- u("div", gl, [
2135
- u("span", Cl, [
2136
- (c(), m("svg", yl, T[9] || (T[9] = [
2204
+ default: H(() => [
2205
+ u("div", wl, [
2206
+ u("span", kl, [
2207
+ (c(), m("svg", Il, [...y[9] || (y[9] = [
2137
2208
  u("g", {
2138
2209
  fill: "none",
2139
2210
  stroke: "currentColor",
@@ -2149,18 +2220,18 @@ const ll = { class: "absolute left-0 top-0 h-full w-full flex flex-col rounded-b
2149
2220
  }),
2150
2221
  u("path", { d: "M5 12a7 7 0 1 0 14 0a7 7 0 1 0-14 0m7-9v2m-9 7h2m7 7v2m7-9h2" })
2151
2222
  ], -1)
2152
- ])))
2223
+ ])]))
2153
2224
  ]),
2154
- T[10] || (T[10] = u("p", null, " Click on a component on the page to select it ", -1))
2225
+ y[10] || (y[10] = u("p", null, " Click on a component on the page to select it ", -1))
2155
2226
  ])
2156
2227
  ]),
2157
2228
  _: 1
2158
- }, 8, ["modelValue"])) : U("", !0)
2229
+ }, 8, ["modelValue"])) : j("", !0)
2159
2230
  ]));
2160
2231
  }
2161
- }), ps = /* @__PURE__ */ xe(xl, [["__scopeId", "data-v-476b73cc"]]), bl = {}, wl = { class: "h-screen w-screen $ui-fcc flex-col" };
2162
- function kl(n, e) {
2163
- return c(), m("div", wl, [
2232
+ }), C1 = /* @__PURE__ */ be(Sl, [["__scopeId", "data-v-fbde5eca"]]), Tl = {}, El = { class: "h-screen w-screen $ui-fcc flex-col" };
2233
+ function Vl(t, e) {
2234
+ return c(), m("div", El, [
2164
2235
  e[0] || (e[0] = u("div", { class: "outer" }, [
2165
2236
  u("div", { class: "inner" }, [
2166
2237
  u("i", {
@@ -2169,124 +2240,124 @@ function kl(n, e) {
2169
2240
  })
2170
2241
  ])
2171
2242
  ], -1)),
2172
- qe(n.$slots, "default", {}, void 0, !0)
2243
+ Xe(t.$slots, "default", {}, void 0, !0)
2173
2244
  ]);
2174
2245
  }
2175
- const Il = /* @__PURE__ */ xe(bl, [["render", kl], ["__scopeId", "data-v-b8018f07"]]), qt = Symbol.for("VueDevToolsCustomInspectorStateSymbol");
2176
- function _e() {
2177
- return me(qt);
2246
+ const Nl = /* @__PURE__ */ be(Tl, [["render", Vl], ["__scopeId", "data-v-b8018f07"]]), Qt = Symbol.for("VueDevToolsCustomInspectorStateSymbol");
2247
+ function xe() {
2248
+ return ge(Qt);
2178
2249
  }
2179
- function rt() {
2180
- const n = N({
2250
+ function dt() {
2251
+ const t = N({
2181
2252
  homepage: "",
2182
2253
  id: "",
2183
2254
  label: "",
2184
2255
  logo: "",
2185
2256
  timelineLayerIds: []
2186
2257
  });
2187
- return ye(qt, n), n;
2258
+ return _e(Qt, t), t;
2188
2259
  }
2189
- const $l = {}, Sl = {
2260
+ const Al = {}, Rl = {
2190
2261
  width: "175",
2191
2262
  height: "34",
2192
2263
  viewBox: "0 0 175 34",
2193
2264
  fill: "none",
2194
2265
  xmlns: "http://www.w3.org/2000/svg"
2195
2266
  };
2196
- function Tl(n, e) {
2197
- return c(), m("svg", Sl, e[0] || (e[0] = [
2267
+ function Dl(t, e) {
2268
+ return c(), m("svg", Rl, [...e[0] || (e[0] = [
2198
2269
  u("path", {
2199
2270
  fill: "currentColor",
2200
2271
  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"
2201
2272
  }, null, -1)
2202
- ]));
2273
+ ])]);
2203
2274
  }
2204
- const El = /* @__PURE__ */ xe($l, [["render", Tl]]), Vl = {
2275
+ const Pl = /* @__PURE__ */ be(Al, [["render", Dl]]), Ll = {
2205
2276
  "h-full": "",
2206
2277
  "w-full": "",
2207
2278
  flex: "",
2208
2279
  "items-center": ""
2209
- }, Nl = {
2280
+ }, Ml = {
2210
2281
  flex: "~ col gap2",
2211
2282
  ma: "",
2212
2283
  "px-5": ""
2213
- }, Rl = {
2284
+ }, Hl = {
2214
2285
  flex: "~ col",
2215
2286
  "mt-20": "",
2216
2287
  "items-center": ""
2217
- }, Dl = {
2288
+ }, Ol = {
2218
2289
  flex: "~",
2219
2290
  "mt--10": "",
2220
2291
  "items-center": "",
2221
2292
  "justify-center": ""
2222
- }, Pl = { class: "mr-1" }, Al = {
2293
+ }, Ul = { class: "mr-1" }, jl = {
2223
2294
  key: 0,
2224
2295
  class: "inline-block w20"
2225
- }, Ml = ["src", "alt"], Ll = {
2296
+ }, zl = ["src", "alt"], Bl = {
2226
2297
  key: 1,
2227
2298
  class: "mr2 inline-block min-w-20 text-center text-10 font-600"
2228
- }, Hl = {
2299
+ }, Zl = {
2229
2300
  mb6: "",
2230
2301
  "mt--1": "",
2231
2302
  "text-center": "",
2232
2303
  "text-sm": "",
2233
2304
  flex: "~ gap-1"
2234
- }, Ul = { op40: "" }, Ol = { flex: "~ gap2 wrap" }, jl = {
2305
+ }, Fl = { op40: "" }, Kl = { flex: "~ gap2 wrap" }, Gl = {
2235
2306
  flex: "~ gap-6 wrap",
2236
2307
  "mt-5": "",
2237
2308
  "items-center": "",
2238
2309
  "justify-center": ""
2239
- }, zl = ["href"], Bl = /* @__PURE__ */ F({
2310
+ }, Wl = ["href"], ql = /* @__PURE__ */ F({
2240
2311
  __name: "About",
2241
- setup(n) {
2242
- const e = Pe(), o = _e(), t = N(!1), l = N(!1);
2312
+ setup(t) {
2313
+ const e = Le(), o = xe(), n = N(!1), l = N(!1);
2243
2314
  function s() {
2244
- t.value = !0;
2315
+ n.value = !0;
2245
2316
  }
2246
2317
  function p() {
2247
- t.value = !0, l.value = !0;
2318
+ n.value = !0, l.value = !0;
2248
2319
  }
2249
- return (r, i) => (c(), m("div", Vl, [
2250
- u("div", Nl, [
2320
+ return (r, i) => (c(), m("div", Ll, [
2321
+ u("div", Ml, [
2251
2322
  i[5] || (i[5] = u("div", { "flex-auto": "" }, null, -1)),
2252
- u("div", Rl, [
2253
- u("div", Dl, [
2254
- u("span", Pl, [
2255
- t.value ? U("", !0) : (c(), m("span", Al)),
2256
- W(u("img", {
2323
+ u("div", Hl, [
2324
+ u("div", Ol, [
2325
+ u("span", Ul, [
2326
+ n.value ? j("", !0) : (c(), m("span", jl)),
2327
+ q(u("img", {
2257
2328
  src: a(o).logo,
2258
2329
  alt: `${a(o).label} Logo`,
2259
2330
  class: "inline-block h16",
2260
2331
  onError: p,
2261
2332
  onLoad: s
2262
- }, null, 40, Ml), [
2263
- [un, t.value && !l.value]
2333
+ }, null, 40, zl), [
2334
+ [vn, n.value && !l.value]
2264
2335
  ]),
2265
- l.value ? (c(), m("span", Ll, ie(a(o).label), 1)) : U("", !0)
2336
+ l.value ? (c(), m("span", Bl, re(a(o).label), 1)) : j("", !0)
2266
2337
  ]),
2267
2338
  u("span", null, [
2268
- y(El, { "h-18": "" })
2339
+ x(Pl, { "h-18": "" })
2269
2340
  ])
2270
2341
  ]),
2271
- u("div", Hl, [
2272
- u("span", Ul, ie(a(o).label) + " DevTools ", 1)
2342
+ u("div", Zl, [
2343
+ u("span", Fl, re(a(o).label) + " DevTools ", 1)
2273
2344
  ])
2274
2345
  ]),
2275
2346
  i[6] || (i[6] = u("div", { "flex-auto": "" }, null, -1)),
2276
- u("div", Ol, [
2347
+ u("div", Kl, [
2277
2348
  u("div", {
2278
2349
  flex: "~ col auto",
2279
2350
  "min-w-40": "",
2280
2351
  "theme-card-lime": "",
2281
2352
  p4: "",
2282
2353
  onClick: i[0] || (i[0] = (f) => a(e).push("/state"))
2283
- }, i[2] || (i[2] = [
2354
+ }, [...i[2] || (i[2] = [
2284
2355
  u("div", {
2285
2356
  "i-carbon-tree-view-alt": "",
2286
2357
  "text-3xl": ""
2287
2358
  }, null, -1),
2288
2359
  u("code", null, "State", -1)
2289
- ])),
2360
+ ])]),
2290
2361
  a(o).timelineLayerIds?.length ? (c(), m("div", {
2291
2362
  key: 0,
2292
2363
  flex: "~ col auto",
@@ -2294,15 +2365,15 @@ const El = /* @__PURE__ */ xe($l, [["render", Tl]]), Vl = {
2294
2365
  "theme-card-lime": "",
2295
2366
  p4: "",
2296
2367
  onClick: i[1] || (i[1] = (f) => a(e).push("/timeline"))
2297
- }, i[3] || (i[3] = [
2368
+ }, [...i[3] || (i[3] = [
2298
2369
  u("div", {
2299
2370
  "i-mdi:timeline-clock-outline": "",
2300
2371
  "text-3xl": ""
2301
2372
  }, null, -1),
2302
2373
  u("div", null, "Timeline", -1)
2303
- ]))) : U("", !0)
2374
+ ])])) : j("", !0)
2304
2375
  ]),
2305
- u("div", jl, [
2376
+ u("div", Gl, [
2306
2377
  u("a", {
2307
2378
  href: a(o).homepage,
2308
2379
  target: "_blank",
@@ -2311,19 +2382,19 @@ const El = /* @__PURE__ */ xe($l, [["render", Tl]]), Vl = {
2311
2382
  op50: "",
2312
2383
  hover: "op100 text-yellow",
2313
2384
  transition: ""
2314
- }, i[4] || (i[4] = [
2385
+ }, [...i[4] || (i[4] = [
2315
2386
  u("div", { "i-carbon-document": "" }, null, -1),
2316
- X(" View Documentation ", -1)
2317
- ]), 8, zl)
2387
+ Q(" View Documentation ", -1)
2388
+ ])], 8, Wl)
2318
2389
  ]),
2319
2390
  i[7] || (i[7] = u("div", { "flex-auto": "" }, null, -1))
2320
2391
  ])
2321
2392
  ]));
2322
2393
  }
2323
- }), Fl = { class: "flex-1 overflow-y-auto p2" }, Zl = { class: "max-w-[190px] flex-1 select-none py-1.5 text-sm" }, Kl = { class: "w-4/5" }, Gl = {
2394
+ }), Jl = { class: "flex-1 overflow-y-auto p2" }, Yl = { class: "max-w-[190px] flex-1 select-none py-1.5 text-sm" }, Xl = { class: "w-4/5" }, Ql = {
2324
2395
  key: 0,
2325
2396
  class: "flex justify-start"
2326
- }, Wl = { key: 1 }, Jt = /* @__PURE__ */ F({
2397
+ }, es = { key: 1 }, en = /* @__PURE__ */ F({
2327
2398
  __name: "Settings",
2328
2399
  props: {
2329
2400
  pluginId: {},
@@ -2331,286 +2402,283 @@ const El = /* @__PURE__ */ xe($l, [["render", Tl]]), Vl = {
2331
2402
  values: {}
2332
2403
  },
2333
2404
  emits: ["update"],
2334
- setup(n, { emit: e }) {
2335
- const o = n, t = e, l = I(() => o.options), s = I(() => o.values);
2405
+ setup(t, { emit: e }) {
2406
+ const o = t, n = e, l = S(() => o.options), s = S(() => o.values);
2336
2407
  function p(r, i) {
2337
- R.value.updatePluginSettings(o.pluginId, r, i), R.value.getPluginSettings(o.pluginId).then((f) => {
2338
- t("update", f);
2408
+ A.value.updatePluginSettings(o.pluginId, r, i), A.value.getPluginSettings(o.pluginId).then((f) => {
2409
+ n("update", f);
2339
2410
  });
2340
2411
  }
2341
- return (r, i) => (c(), m("div", Fl, [
2412
+ return (r, i) => (c(), m("div", Jl, [
2342
2413
  u("ul", null, [
2343
- (c(!0), m(ne, null, ue(l.value, (f, v) => (c(), m("li", {
2414
+ (c(!0), m(le, null, ce(l.value, (f, v) => (c(), m("li", {
2344
2415
  key: v,
2345
2416
  class: "flex items-center py-2"
2346
2417
  }, [
2347
- u("div", Zl, ie(f.label), 1),
2348
- u("div", Kl, [
2349
- f.type === "boolean" ? (c(), m("div", Gl, [
2350
- y(a(vn), {
2418
+ u("div", Yl, re(f.label), 1),
2419
+ u("div", Xl, [
2420
+ f.type === "boolean" ? (c(), m("div", Ql, [
2421
+ x(a(yn), {
2351
2422
  "model-value": s.value[v],
2352
2423
  class: "row-reverse flex py1 pl2 pr1 hover:bg-active",
2353
2424
  "onUpdate:modelValue": (d) => p(v, d)
2354
2425
  }, null, 8, ["model-value", "onUpdate:modelValue"])
2355
- ])) : f.type === "choice" ? (c(), m("div", Wl, [
2356
- y(a(mn), {
2426
+ ])) : f.type === "choice" ? (c(), m("div", es, [
2427
+ x(a(_n), {
2357
2428
  "model-value": s.value[v],
2358
2429
  options: f.options,
2359
2430
  "onUpdate:modelValue": (d) => p(v, d)
2360
2431
  }, null, 8, ["model-value", "options", "onUpdate:modelValue"])
2361
- ])) : f.type === "text" ? (c(), z(a(he), {
2432
+ ])) : f.type === "text" ? (c(), z(a(Ce), {
2362
2433
  key: 2,
2363
2434
  "model-value": s.value[v],
2364
2435
  "onUpdate:modelValue": (d) => p(v, d)
2365
- }, null, 8, ["model-value", "onUpdate:modelValue"])) : U("", !0)
2436
+ }, null, 8, ["model-value", "onUpdate:modelValue"])) : j("", !0)
2366
2437
  ])
2367
2438
  ]))), 128))
2368
2439
  ])
2369
2440
  ]));
2370
2441
  }
2371
- }), ql = { class: "h-full flex flex-col" }, Jl = /* @__PURE__ */ F({
2442
+ }), ts = { class: "h-full flex flex-col" }, ns = /* @__PURE__ */ F({
2372
2443
  __name: "Settings",
2373
- setup(n) {
2374
- const e = me("pluginSettings"), o = _e(), t = I(() => e.value.options), l = I(() => e.value.values);
2444
+ setup(t) {
2445
+ const e = ge("pluginSettings"), o = xe(), n = S(() => e.value.options), l = S(() => e.value.values);
2375
2446
  function s(p) {
2376
2447
  e.value = p;
2377
2448
  }
2378
- return (p, r) => (c(), m("div", ql, [
2379
- y(Se, {
2449
+ return (p, r) => (c(), m("div", ts, [
2450
+ x(Te, {
2380
2451
  "doc-link": a(o).homepage
2381
2452
  }, {
2382
- default: L(() => [
2383
- y(Te)
2453
+ default: H(() => [
2454
+ x(Ee)
2384
2455
  ]),
2385
2456
  _: 1
2386
2457
  }, 8, ["doc-link"]),
2387
- y(Jt, {
2458
+ x(en, {
2388
2459
  "plugin-id": a(o).pluginId,
2389
- options: t.value,
2460
+ options: n.value,
2390
2461
  values: l.value,
2391
2462
  onUpdate: s
2392
2463
  }, null, 8, ["plugin-id", "options", "values"])
2393
2464
  ]));
2394
2465
  }
2395
- }), Yl = { class: "h-full flex flex-col" }, Xl = { class: "h-full flex flex-col p2" }, Ql = {
2466
+ }), os = { class: "h-full flex flex-col" }, ls = { class: "h-full flex flex-col p2" }, ss = {
2396
2467
  class: "grid grid-cols-[1fr_auto] mb1 items-center gap2 pb1",
2397
2468
  border: "b dashed base"
2398
- }, e1 = {
2469
+ }, as = {
2399
2470
  key: 0,
2400
2471
  class: "flex items-center gap-2 px-1"
2401
- }, t1 = ["onClick"], n1 = {
2472
+ }, is = ["onClick"], rs = {
2402
2473
  key: 0,
2403
2474
  class: "no-scrollbar flex-1 select-none overflow-scroll"
2404
- }, o1 = { class: "h-full flex flex-col p2" }, l1 = {
2475
+ }, us = { class: "h-full flex flex-col p2" }, cs = {
2405
2476
  class: "grid grid-cols-[1fr_auto] mb1 items-center gap2 pb1",
2406
2477
  border: "b dashed base"
2407
- }, s1 = {
2478
+ }, ds = {
2408
2479
  key: 0,
2409
2480
  class: "flex items-center gap-2 px-1"
2410
- }, a1 = ["onClick"], i1 = /* @__PURE__ */ F({
2481
+ }, ps = ["onClick"], fs = /* @__PURE__ */ F({
2411
2482
  __name: "Index",
2412
- setup(n) {
2413
- const { expanded: e } = ge(), { expanded: o } = ge("custom-inspector-state"), t = _e(), l = I(() => t.value.id), s = N([]), p = N([]), r = N([]), i = I(() => r.value?.length ? V(r.value?.[0]) : []), f = I(() => D(r.value)), v = I(() => f.value.map((g) => g.id)), d = N(""), h = N({}), $ = I(() => !Object.keys(h.value).length), E = _e(), k = N(""), b = N("");
2414
- Q(k, (g, C) => {
2415
- !g.trim().length && !C.trim().length || oe(g);
2483
+ setup(t) {
2484
+ const { expanded: e } = ye(), { expanded: o } = ye("custom-inspector-state"), n = xe(), l = S(() => n.value.id), s = N([]), p = N([]), r = N([]), i = S(() => r.value?.length ? V(r.value?.[0]) : []), f = S(() => D(r.value)), v = S(() => f.value.map((g) => g.id)), d = N(""), h = N({}), T = S(() => !Object.keys(h.value).length), E = xe(), $ = N(""), I = N("");
2485
+ te($, (g, _) => {
2486
+ !g.trim().length && !_.trim().length || se(g);
2416
2487
  });
2417
- const A = I(() => Xe({
2488
+ const L = S(() => tt({
2418
2489
  state: h.value,
2419
- filterKey: b.value
2490
+ filterKey: I.value
2420
2491
  }));
2421
- function V(g, C = [], P = []) {
2422
- return C.push(g.id), g.children?.length === 0 && P.push([...C]), Array.isArray(g.children) && g.children.forEach((B) => {
2423
- V(B, C, P);
2424
- }), C.pop(), P;
2492
+ function V(g, _ = [], P = []) {
2493
+ return _.push(g.id), g.children?.length === 0 && P.push([..._]), Array.isArray(g.children) && g.children.forEach((Z) => {
2494
+ V(Z, _, P);
2495
+ }), _.pop(), P;
2425
2496
  }
2426
- function _(g, C) {
2497
+ function w(g, _) {
2427
2498
  const P = [];
2428
- return g?.forEach((B) => {
2429
- P.push(...B.slice(0, C + 1));
2499
+ return g?.forEach((Z) => {
2500
+ P.push(...Z.slice(0, _ + 1));
2430
2501
  }), [...new Set(P)];
2431
2502
  }
2432
2503
  function D(g) {
2433
- const C = [], P = (B) => {
2434
- B?.forEach((le) => {
2435
- C.push(le), le.children?.length && P(le.children);
2504
+ const _ = [], P = (Z) => {
2505
+ Z?.forEach((ae) => {
2506
+ _.push(ae), ae.children?.length && P(ae.children);
2436
2507
  });
2437
2508
  };
2438
- return P(g), C;
2509
+ return P(g), _;
2439
2510
  }
2440
- function Z() {
2441
- R.value.getInspectorNodeActions(l.value).then((g) => {
2511
+ function B() {
2512
+ A.value.getInspectorNodeActions(l.value).then((g) => {
2442
2513
  s.value = g;
2443
2514
  });
2444
2515
  }
2445
- function K() {
2446
- R.value.getInspectorActions(l.value).then((g) => {
2516
+ function G() {
2517
+ A.value.getInspectorActions(l.value).then((g) => {
2447
2518
  p.value = g;
2448
2519
  });
2449
2520
  }
2450
- Z(), K();
2451
- function G(g) {
2452
- R.value.callInspectorNodeAction(l.value, g, d.value);
2521
+ B(), G();
2522
+ function W(g) {
2523
+ A.value.callInspectorNodeAction(l.value, g, d.value);
2453
2524
  }
2454
- function H(g) {
2455
- R.value.callInspectorAction(l.value, g);
2525
+ function O(g) {
2526
+ A.value.callInspectorAction(l.value, g);
2456
2527
  }
2457
- function w(g) {
2458
- for (const C in g)
2459
- g[C]?.length || delete g[C];
2528
+ function C(g) {
2529
+ for (const _ in g)
2530
+ g[_]?.length || delete g[_];
2460
2531
  return g;
2461
2532
  }
2462
- function O(g) {
2463
- R.value.getInspectorState({ inspectorId: l.value, nodeId: g }).then((C) => {
2464
- const P = ee(C);
2465
- P && (h.value = w(P), o.value = Array.from({ length: Object.keys(h.value).length }, (B, le) => `${le}`));
2533
+ function U(g) {
2534
+ A.value.getInspectorState({ inspectorId: l.value, nodeId: g }).then((_) => {
2535
+ const P = ne(_);
2536
+ P && (h.value = C(P), o.value = Array.from({ length: Object.keys(h.value).length }, (Z, ae) => `${ae}`));
2466
2537
  });
2467
2538
  }
2468
- function te() {
2539
+ function oe() {
2469
2540
  h.value = {};
2470
2541
  }
2471
- Q(d, () => {
2472
- te(), O(d.value);
2542
+ te(d, () => {
2543
+ oe(), U(d.value);
2473
2544
  });
2474
- function oe(g = "") {
2475
- R.value.getInspectorTree({ inspectorId: l.value, filter: g }).then((C) => {
2476
- const P = ee(C);
2477
- r.value = P, !d.value && P.length && (d.value = P[0].id, e.value = _(i.value, 1), O(P[0].id));
2545
+ function se(g = "") {
2546
+ A.value.getInspectorTree({ inspectorId: l.value, filter: g }).then((_) => {
2547
+ const P = ne(_);
2548
+ r.value = P, !d.value && P.length && (d.value = P[0].id, e.value = w(i.value, 1), U(P[0].id));
2478
2549
  });
2479
2550
  }
2480
- Bt(l).toBeTruthy().then(() => oe());
2481
- function M(g) {
2482
- const C = ee(g);
2483
- !C.rootNodes.length || C.inspectorId !== l.value || (r.value = C.rootNodes, v.value.includes(d.value) || (d.value = r.value?.[0]?.id, e.value = _(i.value, 1)));
2551
+ Gt(l).toBeTruthy().then(() => se());
2552
+ function R(g) {
2553
+ const _ = ne(g);
2554
+ !_.rootNodes.length || _.inspectorId !== l.value || (r.value = _.rootNodes, v.value.includes(d.value) || (d.value = r.value?.[0]?.id, e.value = w(i.value, 1)));
2484
2555
  }
2485
- function x(g) {
2486
- const C = ee(g);
2487
- if (C.inspectorId !== l.value || !C.state || C.nodeId !== d.value)
2556
+ function k(g) {
2557
+ const _ = ne(g);
2558
+ if (_.inspectorId !== l.value || !_.state || _.nodeId !== d.value)
2488
2559
  return;
2489
- const { inspectorId: P, ...B } = C.state;
2490
- h.value = w(B);
2491
- }
2492
- return Re(() => {
2493
- R.functions.on(Y.INSPECTOR_TREE_UPDATED, M), R.functions.on(Y.INSPECTOR_STATE_UPDATED, x);
2494
- }), we(() => {
2495
- R.functions.off(Y.INSPECTOR_TREE_UPDATED, M), R.functions.off(Y.INSPECTOR_STATE_UPDATED, x);
2496
- }), (g, C) => (c(), m("div", Yl, [
2497
- y(Se, {
2498
- "doc-link": a(t).homepage
2560
+ const { inspectorId: P, ...Z } = _.state;
2561
+ h.value = C(Z);
2562
+ }
2563
+ return De(() => {
2564
+ A.functions.on(X.INSPECTOR_TREE_UPDATED, R), A.functions.on(X.INSPECTOR_STATE_UPDATED, k);
2565
+ }), ke(() => {
2566
+ A.functions.off(X.INSPECTOR_TREE_UPDATED, R), A.functions.off(X.INSPECTOR_STATE_UPDATED, k);
2567
+ }), (g, _) => (c(), m("div", os, [
2568
+ x(Te, {
2569
+ "doc-link": a(n).homepage
2499
2570
  }, {
2500
- default: L(() => [
2501
- y(Te)
2571
+ default: H(() => [
2572
+ x(Ee)
2502
2573
  ]),
2503
2574
  _: 1
2504
2575
  }, 8, ["doc-link"]),
2505
- !r.value.length && !k.value.trim().length ? (c(), z(Ie, { key: 0 }, {
2506
- default: L(() => C[3] || (C[3] = [
2507
- X(" No Data ", -1)
2508
- ])),
2509
- _: 1,
2510
- __: [3]
2511
- })) : (c(), z(a(De), {
2576
+ !r.value.length && !$.value.trim().length ? (c(), z($e, { key: 0 }, {
2577
+ default: H(() => [..._[3] || (_[3] = [
2578
+ Q(" No Data ", -1)
2579
+ ])]),
2580
+ _: 1
2581
+ })) : (c(), z(a(Pe), {
2512
2582
  key: 1,
2513
2583
  class: "flex-1 overflow-auto"
2514
2584
  }, {
2515
- default: L(() => [
2516
- y(a(ce), {
2585
+ default: H(() => [
2586
+ x(a(de), {
2517
2587
  border: "r base",
2518
2588
  size: "40",
2519
2589
  "h-full": ""
2520
2590
  }, {
2521
- default: L(() => [
2522
- u("div", Xl, [
2523
- u("div", Ql, [
2524
- y(a(he), {
2525
- modelValue: k.value,
2526
- "onUpdate:modelValue": C[0] || (C[0] = (P) => k.value = P),
2591
+ default: H(() => [
2592
+ u("div", ls, [
2593
+ u("div", ss, [
2594
+ x(a(Ce), {
2595
+ modelValue: $.value,
2596
+ "onUpdate:modelValue": _[0] || (_[0] = (P) => $.value = P),
2527
2597
  placeholder: a(E).treeFilterPlaceholder
2528
2598
  }, null, 8, ["modelValue", "placeholder"]),
2529
- p.value?.length ? (c(), m("div", e1, [
2530
- (c(!0), m(ne, null, ue(p.value, (P, B) => W((c(), m("div", {
2531
- key: B,
2599
+ p.value?.length ? (c(), m("div", as, [
2600
+ (c(!0), m(le, null, ce(p.value, (P, Z) => q((c(), m("div", {
2601
+ key: Z,
2532
2602
  class: "flex items-center gap1",
2533
- onClick: (le) => H(B)
2603
+ onClick: (ae) => O(Z)
2534
2604
  }, [
2535
- y(a(je), {
2605
+ x(a(Ze), {
2536
2606
  name: `baseline-${P.icon.replace(/\_/g, "-")}`,
2537
2607
  "cursor-pointer": "",
2538
2608
  "text-base": "",
2539
2609
  op70: "",
2540
2610
  "hover:op100": ""
2541
2611
  }, null, 8, ["name"])
2542
- ], 8, t1)), [
2612
+ ], 8, is)), [
2543
2613
  [
2544
- a(q),
2614
+ a(Y),
2545
2615
  { content: P.tooltip },
2546
2616
  void 0,
2547
2617
  { "bottom-end": !0 }
2548
2618
  ]
2549
2619
  ])), 128))
2550
- ])) : U("", !0)
2620
+ ])) : j("", !0)
2551
2621
  ]),
2552
- r.value.length ? (c(), m("div", n1, [
2553
- y(Me, {
2622
+ r.value.length ? (c(), m("div", rs, [
2623
+ x(Oe, {
2554
2624
  modelValue: d.value,
2555
- "onUpdate:modelValue": C[1] || (C[1] = (P) => d.value = P),
2625
+ "onUpdate:modelValue": _[1] || (_[1] = (P) => d.value = P),
2556
2626
  data: r.value
2557
2627
  }, null, 8, ["modelValue", "data"])
2558
- ])) : (c(), z(Ie, { key: 1 }, {
2559
- default: L(() => C[4] || (C[4] = [
2560
- X(" No Data ", -1)
2561
- ])),
2562
- _: 1,
2563
- __: [4]
2628
+ ])) : (c(), z($e, { key: 1 }, {
2629
+ default: H(() => [..._[4] || (_[4] = [
2630
+ Q(" No Data ", -1)
2631
+ ])]),
2632
+ _: 1
2564
2633
  }))
2565
2634
  ])
2566
2635
  ]),
2567
2636
  _: 1
2568
2637
  }),
2569
- y(a(ce), { size: "60" }, {
2570
- default: L(() => [
2571
- u("div", o1, [
2572
- u("div", l1, [
2573
- y(a(he), {
2574
- modelValue: b.value,
2575
- "onUpdate:modelValue": C[2] || (C[2] = (P) => b.value = P),
2638
+ x(a(de), { size: "60" }, {
2639
+ default: H(() => [
2640
+ u("div", us, [
2641
+ u("div", cs, [
2642
+ x(a(Ce), {
2643
+ modelValue: I.value,
2644
+ "onUpdate:modelValue": _[2] || (_[2] = (P) => I.value = P),
2576
2645
  placeholder: a(E).stateFilterPlaceholder
2577
2646
  }, null, 8, ["modelValue", "placeholder"]),
2578
- s.value?.length ? (c(), m("div", s1, [
2579
- (c(!0), m(ne, null, ue(s.value, (P, B) => W((c(), m("div", {
2580
- key: B,
2647
+ s.value?.length ? (c(), m("div", ds, [
2648
+ (c(!0), m(le, null, ce(s.value, (P, Z) => q((c(), m("div", {
2649
+ key: Z,
2581
2650
  class: "flex items-center gap1",
2582
- onClick: (le) => G(B)
2651
+ onClick: (ae) => W(Z)
2583
2652
  }, [
2584
- y(a(je), {
2653
+ x(a(Ze), {
2585
2654
  name: `baseline-${P.icon.replace(/\_/g, "-")}`,
2586
2655
  "cursor-pointer": "",
2587
2656
  "text-base": "",
2588
2657
  op70: "",
2589
2658
  "hover:op100": ""
2590
2659
  }, null, 8, ["name"])
2591
- ], 8, a1)), [
2660
+ ], 8, ps)), [
2592
2661
  [
2593
- a(q),
2662
+ a(Y),
2594
2663
  { content: P.tooltip },
2595
2664
  void 0,
2596
2665
  { "bottom-end": !0 }
2597
2666
  ]
2598
2667
  ])), 128))
2599
- ])) : U("", !0)
2668
+ ])) : j("", !0)
2600
2669
  ]),
2601
- d.value && !$.value ? (c(), z(Ae, {
2670
+ d.value && !T.value ? (c(), z(He, {
2602
2671
  key: 0,
2603
- data: A.value,
2672
+ data: L.value,
2604
2673
  "node-id": d.value,
2605
2674
  "inspector-id": l.value,
2606
2675
  "expanded-state-id": "custom-inspector-state",
2607
2676
  class: "no-scrollbar flex-1 overflow-scroll"
2608
- }, null, 8, ["data", "node-id", "inspector-id"])) : (c(), z(Ie, { key: 1 }, {
2609
- default: L(() => C[5] || (C[5] = [
2610
- X(" No Data ", -1)
2611
- ])),
2612
- _: 1,
2613
- __: [5]
2677
+ }, null, 8, ["data", "node-id", "inspector-id"])) : (c(), z($e, { key: 1 }, {
2678
+ default: H(() => [..._[5] || (_[5] = [
2679
+ Q(" No Data ", -1)
2680
+ ])]),
2681
+ _: 1
2614
2682
  }))
2615
2683
  ])
2616
2684
  ]),
@@ -2621,61 +2689,61 @@ const El = /* @__PURE__ */ xe($l, [["render", Tl]]), Vl = {
2621
2689
  }))
2622
2690
  ]));
2623
2691
  }
2624
- }), r1 = /* @__PURE__ */ F({
2692
+ }), vs = /* @__PURE__ */ F({
2625
2693
  __name: "Index",
2626
- setup(n) {
2627
- const e = _e();
2628
- return (o, t) => (c(), z(it, {
2694
+ setup(t) {
2695
+ const e = xe();
2696
+ return (o, n) => (c(), z(ct, {
2629
2697
  "layer-ids": a(e).timelineLayerIds,
2630
2698
  "doc-link": a(e).homepage,
2631
2699
  "plugin-id": a(e).pluginId
2632
2700
  }, null, 8, ["layer-ids", "doc-link", "plugin-id"]));
2633
2701
  }
2634
- }), u1 = {
2702
+ }), ms = {
2635
2703
  "h-full": "",
2636
2704
  "w-full": ""
2637
- }, c1 = { key: 0 }, fs = /* @__PURE__ */ F({
2705
+ }, hs = { key: 0 }, y1 = /* @__PURE__ */ F({
2638
2706
  __name: "index",
2639
2707
  props: {
2640
2708
  id: {},
2641
2709
  pluginId: {}
2642
2710
  },
2643
2711
  emits: ["loadError"],
2644
- setup(n, { emit: e }) {
2645
- const o = n, t = e, l = rt(), s = N(!1), p = N(null);
2646
- ye("pluginSettings", p);
2647
- const r = I(() => [
2712
+ setup(t, { emit: e }) {
2713
+ const o = t, n = e, l = dt(), s = N(!1), p = N(null);
2714
+ _e("pluginSettings", p);
2715
+ const r = S(() => [
2648
2716
  {
2649
2717
  path: "/state",
2650
2718
  name: "State",
2651
- component: i1,
2719
+ component: fs,
2652
2720
  icon: "i-carbon-tree-view-alt"
2653
2721
  },
2654
2722
  l.value.timelineLayerIds?.length && {
2655
2723
  path: "/timeline",
2656
2724
  name: "Timeline",
2657
- component: r1,
2725
+ component: vs,
2658
2726
  icon: "i-mdi:timeline-clock-outline"
2659
2727
  },
2660
2728
  {
2661
2729
  path: "/about",
2662
2730
  name: "About",
2663
- component: Bl
2731
+ component: ql
2664
2732
  },
2665
2733
  p.value && {
2666
2734
  path: "/settings",
2667
2735
  name: "Settings",
2668
- component: Jl,
2736
+ component: ns,
2669
2737
  icon: "i-mdi:cog-outline"
2670
2738
  }
2671
- ].filter(Boolean)), { VirtualRouterView: i, restoreRouter: f } = et(r, {
2739
+ ].filter(Boolean)), { VirtualRouterView: i, restoreRouter: f } = ot(r, {
2672
2740
  defaultRoutePath: "/state"
2673
2741
  });
2674
2742
  function v() {
2675
- s.value = !0, Re(() => {
2676
- R.value.getInspectorInfo(o.id).then((d) => {
2743
+ s.value = !0, De(() => {
2744
+ A.value.getInspectorInfo(o.id).then((d) => {
2677
2745
  if (!d) {
2678
- t("loadError");
2746
+ n("loadError");
2679
2747
  return;
2680
2748
  }
2681
2749
  const h = {
@@ -2683,69 +2751,69 @@ const El = /* @__PURE__ */ xe($l, [["render", Tl]]), Vl = {
2683
2751
  id: d?.id,
2684
2752
  label: d?.label,
2685
2753
  logo: d?.logo,
2686
- timelineLayerIds: d?.timelineLayers.map(($) => $.id),
2754
+ timelineLayerIds: d?.timelineLayers.map((T) => T.id),
2687
2755
  pluginId: o.pluginId,
2688
2756
  treeFilterPlaceholder: d.treeFilterPlaceholder,
2689
2757
  stateFilterPlaceholder: d.stateFilterPlaceholder
2690
2758
  };
2691
2759
  l.value = h, f(), s.value = !1;
2692
- }), R.value.getPluginSettings(o.pluginId).then((d) => {
2760
+ }), A.value.getPluginSettings(o.pluginId).then((d) => {
2693
2761
  d.options ? p.value = d : p.value = null;
2694
2762
  });
2695
2763
  });
2696
2764
  }
2697
- return Q(() => o.id, () => {
2765
+ return te(() => o.id, () => {
2698
2766
  v();
2699
2767
  }, {
2700
2768
  immediate: !0
2701
- }), we(() => {
2702
- R.value.unhighlight();
2703
- }), (d, h) => (c(), m("div", u1, [
2704
- s.value ? (c(), m("div", c1, [
2705
- y(Il)
2769
+ }), ke(() => {
2770
+ A.value.unhighlight();
2771
+ }), (d, h) => (c(), m("div", ms, [
2772
+ s.value ? (c(), m("div", hs, [
2773
+ x(Nl)
2706
2774
  ])) : (c(), z(a(i), { key: 1 }))
2707
2775
  ]));
2708
2776
  }
2709
- }), d1 = {}, p1 = {
2777
+ }), gs = {}, Cs = {
2710
2778
  viewBox: "0 0 566 154",
2711
2779
  fill: "none",
2712
2780
  xmlns: "http://www.w3.org/2000/svg"
2713
2781
  };
2714
- function f1(n, e) {
2715
- return c(), m("svg", p1, e[0] || (e[0] = [
2716
- 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)
2717
- ]));
2782
+ function ys(t, e) {
2783
+ return c(), m("svg", Cs, [...e[0] || (e[0] = [
2784
+ 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)
2785
+ ])]);
2718
2786
  }
2719
- const v1 = /* @__PURE__ */ xe(d1, [["render", f1]]), m1 = {
2787
+ const _s = /* @__PURE__ */ be(gs, [["render", ys]]), xs = {
2720
2788
  "h-full": "",
2721
2789
  "w-full": "",
2722
2790
  flex: "",
2723
2791
  "items-center": ""
2724
- }, h1 = {
2792
+ }, bs = {
2725
2793
  flex: "~ col gap2",
2726
2794
  ma: "",
2727
2795
  "px-5": ""
2728
- }, g1 = {
2796
+ }, ws = {
2729
2797
  flex: "~ col",
2730
2798
  "mt-20": "",
2731
2799
  "items-center": ""
2732
- }, C1 = {
2800
+ }, ks = {
2733
2801
  flex: "~",
2734
2802
  "mt--10": "",
2735
2803
  "items-center": "",
2736
2804
  "justify-center": ""
2737
- }, y1 = { flex: "~ gap2 wrap" }, _1 = /* @__PURE__ */ F({
2805
+ }, Is = { flex: "~ gap2 wrap" }, $s = /* @__PURE__ */ F({
2738
2806
  __name: "About",
2739
- setup(n) {
2740
- const e = Pe();
2741
- return (o, t) => (c(), m("div", m1, [
2742
- u("div", h1, [
2743
- t[5] || (t[5] = u("div", { "flex-auto": "" }, null, -1)),
2744
- u("div", g1, [
2745
- u("div", C1, [
2746
- y(v1, { "h-18": "" })
2807
+ setup(t) {
2808
+ const e = Le();
2809
+ return (o, n) => (c(), m("div", xs, [
2810
+ u("div", bs, [
2811
+ n[5] || (n[5] = u("div", { "flex-auto": "" }, null, -1)),
2812
+ u("div", ws, [
2813
+ u("div", ks, [
2814
+ x(_s, { "h-18": "" })
2747
2815
  ]),
2748
- t[2] || (t[2] = u("div", {
2816
+ n[2] || (n[2] = u("div", {
2749
2817
  mb6: "",
2750
2818
  "mt--1": "",
2751
2819
  "text-center": "",
@@ -2755,36 +2823,36 @@ const v1 = /* @__PURE__ */ xe(d1, [["render", f1]]), m1 = {
2755
2823
  u("span", { op40: "" }, " Pinia DevTools ")
2756
2824
  ], -1))
2757
2825
  ]),
2758
- t[6] || (t[6] = u("div", { "flex-auto": "" }, null, -1)),
2759
- u("div", y1, [
2826
+ n[6] || (n[6] = u("div", { "flex-auto": "" }, null, -1)),
2827
+ u("div", Is, [
2760
2828
  u("div", {
2761
2829
  flex: "~ col auto",
2762
2830
  "min-w-40": "",
2763
2831
  "theme-card-lime": "",
2764
2832
  p4: "",
2765
- onClick: t[0] || (t[0] = (l) => a(e).push("/store"))
2766
- }, t[3] || (t[3] = [
2833
+ onClick: n[0] || (n[0] = (l) => a(e).push("/store"))
2834
+ }, [...n[3] || (n[3] = [
2767
2835
  u("div", {
2768
2836
  "i-carbon-tree-view-alt": "",
2769
2837
  "text-3xl": ""
2770
2838
  }, null, -1),
2771
2839
  u("code", null, "Store", -1)
2772
- ])),
2840
+ ])]),
2773
2841
  u("div", {
2774
2842
  flex: "~ col auto",
2775
2843
  "min-w-40": "",
2776
2844
  "theme-card-lime": "",
2777
2845
  p4: "",
2778
- onClick: t[1] || (t[1] = (l) => a(e).push("/timeline"))
2779
- }, t[4] || (t[4] = [
2846
+ onClick: n[1] || (n[1] = (l) => a(e).push("/timeline"))
2847
+ }, [...n[4] || (n[4] = [
2780
2848
  u("div", {
2781
2849
  "i-mdi:timeline-clock-outline": "",
2782
2850
  "text-3xl": ""
2783
2851
  }, null, -1),
2784
2852
  u("div", null, "Timeline", -1)
2785
- ]))
2853
+ ])])
2786
2854
  ]),
2787
- t[7] || (t[7] = u("div", {
2855
+ n[7] || (n[7] = u("div", {
2788
2856
  flex: "~ gap-6 wrap",
2789
2857
  "mt-5": "",
2790
2858
  "items-center": "",
@@ -2800,7 +2868,7 @@ const v1 = /* @__PURE__ */ xe(d1, [["render", f1]]), m1 = {
2800
2868
  transition: ""
2801
2869
  }, [
2802
2870
  u("div", { "i-carbon-star": "" }),
2803
- X(" Star on GitHub ")
2871
+ Q(" Star on GitHub ")
2804
2872
  ]),
2805
2873
  u("a", {
2806
2874
  href: "https://pinia.vuejs.org/",
@@ -2812,189 +2880,189 @@ const v1 = /* @__PURE__ */ xe(d1, [["render", f1]]), m1 = {
2812
2880
  transition: ""
2813
2881
  }, [
2814
2882
  u("div", { "i-carbon-document": "" }),
2815
- X(" View Documentation ")
2883
+ Q(" View Documentation ")
2816
2884
  ])
2817
2885
  ], -1)),
2818
- t[8] || (t[8] = u("div", { "flex-auto": "" }, null, -1))
2886
+ n[8] || (n[8] = u("div", { "flex-auto": "" }, null, -1))
2819
2887
  ])
2820
2888
  ]));
2821
2889
  }
2822
- }), x1 = { class: "h-full flex flex-col" }, b1 = /* @__PURE__ */ F({
2890
+ }), Ss = { class: "h-full flex flex-col" }, Ts = /* @__PURE__ */ F({
2823
2891
  __name: "Settings",
2824
- setup(n) {
2825
- const e = me("pluginSettings"), o = I(() => e.value.options), t = I(() => e.value.values);
2892
+ setup(t) {
2893
+ const e = ge("pluginSettings"), o = S(() => e.value.options), n = S(() => e.value.values);
2826
2894
  function l(s) {
2827
2895
  e.value = s;
2828
2896
  }
2829
- return (s, p) => (c(), m("div", x1, [
2830
- y(Se, {
2897
+ return (s, p) => (c(), m("div", Ss, [
2898
+ x(Te, {
2831
2899
  "doc-link": "https://pinia.vuejs.org/",
2832
2900
  "github-repo-link": "https://github.com/vuejs/pinia"
2833
2901
  }, {
2834
- default: L(() => [
2835
- y(Te)
2902
+ default: H(() => [
2903
+ x(Ee)
2836
2904
  ]),
2837
2905
  _: 1
2838
2906
  }),
2839
- y(Jt, {
2907
+ x(en, {
2840
2908
  "plugin-id": "dev.esm.pinia",
2841
2909
  options: o.value,
2842
- values: t.value,
2910
+ values: n.value,
2843
2911
  onUpdate: l
2844
2912
  }, null, 8, ["options", "values"])
2845
2913
  ]));
2846
2914
  }
2847
- }), w1 = "dev.esm.pinia", Yt = "pinia", k1 = { class: "h-full flex flex-col" }, I1 = { class: "h-full flex flex-col p2" }, $1 = {
2915
+ }), Es = "dev.esm.pinia", tn = "pinia", Vs = { class: "h-full flex flex-col" }, Ns = { class: "h-full flex flex-col p2" }, As = {
2848
2916
  class: "grid grid-cols-[1fr_auto] mb1 items-center gap2 pb1",
2849
2917
  border: "b dashed base"
2850
- }, S1 = {
2918
+ }, Rs = {
2851
2919
  key: 0,
2852
2920
  class: "flex items-center gap-2 px-1"
2853
- }, T1 = ["onClick"], E1 = { class: "no-scrollbar flex-1 select-none overflow-scroll" }, V1 = { class: "h-full flex flex-col p2" }, N1 = {
2921
+ }, Ds = ["onClick"], Ps = { class: "no-scrollbar flex-1 select-none overflow-scroll" }, Ls = { class: "h-full flex flex-col p2" }, Ms = {
2854
2922
  class: "grid grid-cols-[1fr_auto] mb1 items-center gap2 pb1",
2855
2923
  border: "b dashed base"
2856
- }, R1 = {
2924
+ }, Hs = {
2857
2925
  key: 0,
2858
2926
  class: "flex items-center gap-2 px-1"
2859
- }, D1 = ["onClick"], P1 = /* @__PURE__ */ F({
2927
+ }, Os = ["onClick"], Us = /* @__PURE__ */ F({
2860
2928
  __name: "Index",
2861
- setup(n) {
2862
- const { expanded: e } = ge(), { expanded: o } = ge("pinia-store-state"), t = Yt, l = N([]), s = N([]), p = _e(), r = N(""), i = N([]), f = I(() => i.value?.length ? A(i.value?.[0]) : []), v = I(() => _(i.value)), d = I(() => v.value.map((x) => x.id)), h = N({}), $ = N(""), E = N("");
2863
- Q($, (x, g) => {
2864
- !x.trim().length && !g.trim().length || te(x);
2929
+ setup(t) {
2930
+ const { expanded: e } = ye(), { expanded: o } = ye("pinia-store-state"), n = tn, l = N([]), s = N([]), p = xe(), r = N(""), i = N([]), f = S(() => i.value?.length ? L(i.value?.[0]) : []), v = S(() => w(i.value)), d = S(() => v.value.map((k) => k.id)), h = N({}), T = N(""), E = N("");
2931
+ te(T, (k, g) => {
2932
+ !k.trim().length && !g.trim().length || oe(k);
2865
2933
  });
2866
- const k = I(() => Xe({
2934
+ const $ = S(() => tt({
2867
2935
  state: h.value,
2868
2936
  filterKey: E.value
2869
- })), b = I(() => !h.value.state?.length && !h.value.getters?.length);
2870
- function A(x, g = [], C = []) {
2871
- return g.push(x.id), x.children?.length === 0 && C.push([...g]), Array.isArray(x.children) && x.children.forEach((P) => {
2872
- A(P, g, C);
2873
- }), g.pop(), C;
2874
- }
2875
- function V(x, g) {
2876
- const C = [];
2877
- return x?.forEach((P) => {
2878
- C.push(...P.slice(0, g + 1));
2879
- }), [...new Set(C)];
2880
- }
2881
- function _(x) {
2882
- const g = [], C = (P) => {
2883
- P?.forEach((B) => {
2884
- g.push(B), B.children?.length && C(B.children);
2937
+ })), I = S(() => !h.value.state?.length && !h.value.getters?.length);
2938
+ function L(k, g = [], _ = []) {
2939
+ return g.push(k.id), k.children?.length === 0 && _.push([...g]), Array.isArray(k.children) && k.children.forEach((P) => {
2940
+ L(P, g, _);
2941
+ }), g.pop(), _;
2942
+ }
2943
+ function V(k, g) {
2944
+ const _ = [];
2945
+ return k?.forEach((P) => {
2946
+ _.push(...P.slice(0, g + 1));
2947
+ }), [...new Set(_)];
2948
+ }
2949
+ function w(k) {
2950
+ const g = [], _ = (P) => {
2951
+ P?.forEach((Z) => {
2952
+ g.push(Z), Z.children?.length && _(Z.children);
2885
2953
  });
2886
2954
  };
2887
- return C(x), g;
2955
+ return _(k), g;
2888
2956
  }
2889
2957
  function D() {
2890
- R.value.getInspectorNodeActions(t).then((x) => {
2891
- l.value = x;
2958
+ A.value.getInspectorNodeActions(n).then((k) => {
2959
+ l.value = k;
2892
2960
  });
2893
2961
  }
2894
- function Z() {
2895
- R.value.getInspectorActions(t).then((x) => {
2896
- s.value = x;
2962
+ function B() {
2963
+ A.value.getInspectorActions(n).then((k) => {
2964
+ s.value = k;
2897
2965
  });
2898
2966
  }
2899
- D(), Z();
2900
- function K(x) {
2901
- R.value.callInspectorNodeAction(t, x, r.value);
2967
+ D(), B();
2968
+ function G(k) {
2969
+ A.value.callInspectorNodeAction(n, k, r.value);
2902
2970
  }
2903
- function G(x) {
2904
- R.value.callInspectorAction(t, x);
2971
+ function W(k) {
2972
+ A.value.callInspectorAction(n, k);
2905
2973
  }
2906
- function H(x) {
2907
- for (const g in x)
2908
- x[g]?.length || delete x[g];
2909
- return x;
2974
+ function O(k) {
2975
+ for (const g in k)
2976
+ k[g]?.length || delete k[g];
2977
+ return k;
2910
2978
  }
2911
- function w(x) {
2912
- R.value.getInspectorState({ inspectorId: t, nodeId: x }).then((g) => {
2913
- const C = ee(g);
2914
- C && (h.value = H(C), o.value = Array.from({ length: Object.keys(h.value).length }, (P, B) => `${B}`));
2979
+ function C(k) {
2980
+ A.value.getInspectorState({ inspectorId: n, nodeId: k }).then((g) => {
2981
+ const _ = ne(g);
2982
+ _ && (h.value = O(_), o.value = Array.from({ length: Object.keys(h.value).length }, (P, Z) => `${Z}`));
2915
2983
  });
2916
2984
  }
2917
- function O() {
2985
+ function U() {
2918
2986
  h.value = {};
2919
2987
  }
2920
- Q(r, () => {
2921
- O(), w(r.value);
2988
+ te(r, () => {
2989
+ U(), C(r.value);
2922
2990
  });
2923
- function te(x = "") {
2924
- R.value.getInspectorTree({ inspectorId: t, filter: x }).then((g) => {
2925
- const C = ee(g);
2926
- i.value = C, !r.value && C.length && (r.value = C[0].id, w(C[0].id), e.value = V(f.value, 1));
2991
+ function oe(k = "") {
2992
+ A.value.getInspectorTree({ inspectorId: n, filter: k }).then((g) => {
2993
+ const _ = ne(g);
2994
+ i.value = _, !r.value && _.length && (r.value = _[0].id, C(_[0].id), e.value = V(f.value, 1));
2927
2995
  });
2928
2996
  }
2929
- te();
2930
- function oe(x) {
2931
- const g = ee(x);
2932
- g.inspectorId !== t || !g.rootNodes.length || (i.value = g.rootNodes, d.value.includes(r.value) || (r.value = g.rootNodes[0].id, e.value = V(f.value, 1), w(g.rootNodes[0].id)));
2997
+ oe();
2998
+ function se(k) {
2999
+ const g = ne(k);
3000
+ g.inspectorId !== n || !g.rootNodes.length || (i.value = g.rootNodes, d.value.includes(r.value) || (r.value = g.rootNodes[0].id, e.value = V(f.value, 1), C(g.rootNodes[0].id)));
2933
3001
  }
2934
- function M(x) {
2935
- const g = ee(x);
2936
- if (g.inspectorId !== t)
3002
+ function R(k) {
3003
+ const g = ne(k);
3004
+ if (g.inspectorId !== n)
2937
3005
  return;
2938
- const C = g.state;
2939
- C && (h.value = H({
2940
- state: C.state,
2941
- getters: C.getters
3006
+ const _ = g.state;
3007
+ _ && (h.value = O({
3008
+ state: _.state,
3009
+ getters: _.getters
2942
3010
  }));
2943
3011
  }
2944
- return R.functions.on(Y.INSPECTOR_TREE_UPDATED, oe), R.functions.on(Y.INSPECTOR_STATE_UPDATED, M), we(() => {
2945
- R.functions.off(Y.INSPECTOR_TREE_UPDATED, oe), R.functions.off(Y.INSPECTOR_STATE_UPDATED, M);
2946
- }), (x, g) => (c(), m("div", k1, [
2947
- y(Se, {
3012
+ return A.functions.on(X.INSPECTOR_TREE_UPDATED, se), A.functions.on(X.INSPECTOR_STATE_UPDATED, R), ke(() => {
3013
+ A.functions.off(X.INSPECTOR_TREE_UPDATED, se), A.functions.off(X.INSPECTOR_STATE_UPDATED, R);
3014
+ }), (k, g) => (c(), m("div", Vs, [
3015
+ x(Te, {
2948
3016
  "doc-link": "https://pinia.vuejs.org/",
2949
3017
  "github-repo-link": "https://github.com/vuejs/pinia"
2950
3018
  }, {
2951
- default: L(() => [
2952
- y(Te)
3019
+ default: H(() => [
3020
+ x(Ee)
2953
3021
  ]),
2954
3022
  _: 1
2955
3023
  }),
2956
- y(a(De), { class: "flex-1 overflow-auto" }, {
2957
- default: L(() => [
2958
- y(a(ce), {
3024
+ x(a(Pe), { class: "flex-1 overflow-auto" }, {
3025
+ default: H(() => [
3026
+ x(a(de), {
2959
3027
  border: "r base",
2960
3028
  size: "40",
2961
3029
  "h-full": ""
2962
3030
  }, {
2963
- default: L(() => [
2964
- u("div", I1, [
2965
- u("div", $1, [
2966
- y(a(he), {
2967
- modelValue: $.value,
2968
- "onUpdate:modelValue": g[0] || (g[0] = (C) => $.value = C),
3031
+ default: H(() => [
3032
+ u("div", Ns, [
3033
+ u("div", As, [
3034
+ x(a(Ce), {
3035
+ modelValue: T.value,
3036
+ "onUpdate:modelValue": g[0] || (g[0] = (_) => T.value = _),
2969
3037
  placeholder: a(p).treeFilterPlaceholder
2970
3038
  }, null, 8, ["modelValue", "placeholder"]),
2971
- s.value?.length ? (c(), m("div", S1, [
2972
- (c(!0), m(ne, null, ue(s.value, (C, P) => W((c(), m("div", {
3039
+ s.value?.length ? (c(), m("div", Rs, [
3040
+ (c(!0), m(le, null, ce(s.value, (_, P) => q((c(), m("div", {
2973
3041
  key: P,
2974
3042
  class: "flex items-center gap1",
2975
- onClick: (B) => G(P)
3043
+ onClick: (Z) => W(P)
2976
3044
  }, [
2977
3045
  u("i", {
2978
- class: ae(`i-ic-baseline-${C.icon.replace(/\_/g, "-")}`),
3046
+ class: ie(`i-ic-baseline-${_.icon.replace(/\_/g, "-")}`),
2979
3047
  "cursor-pointer": "",
2980
3048
  "text-base": "",
2981
3049
  op70: "",
2982
3050
  "hover:op100": ""
2983
3051
  }, null, 2)
2984
- ], 8, T1)), [
3052
+ ], 8, Ds)), [
2985
3053
  [
2986
- a(q),
2987
- { content: C.tooltip },
3054
+ a(Y),
3055
+ { content: _.tooltip },
2988
3056
  void 0,
2989
3057
  { "bottom-end": !0 }
2990
3058
  ]
2991
3059
  ])), 128))
2992
- ])) : U("", !0)
3060
+ ])) : j("", !0)
2993
3061
  ]),
2994
- u("div", E1, [
2995
- y(Me, {
3062
+ u("div", Ps, [
3063
+ x(Oe, {
2996
3064
  modelValue: r.value,
2997
- "onUpdate:modelValue": g[1] || (g[1] = (C) => r.value = C),
3065
+ "onUpdate:modelValue": g[1] || (g[1] = (_) => r.value = _),
2998
3066
  data: i.value
2999
3067
  }, null, 8, ["modelValue", "data"])
3000
3068
  ])
@@ -3002,51 +3070,50 @@ const v1 = /* @__PURE__ */ xe(d1, [["render", f1]]), m1 = {
3002
3070
  ]),
3003
3071
  _: 1
3004
3072
  }),
3005
- y(a(ce), { size: "60" }, {
3006
- default: L(() => [
3007
- u("div", V1, [
3008
- u("div", N1, [
3009
- y(a(he), {
3073
+ x(a(de), { size: "60" }, {
3074
+ default: H(() => [
3075
+ u("div", Ls, [
3076
+ u("div", Ms, [
3077
+ x(a(Ce), {
3010
3078
  modelValue: E.value,
3011
- "onUpdate:modelValue": g[2] || (g[2] = (C) => E.value = C),
3079
+ "onUpdate:modelValue": g[2] || (g[2] = (_) => E.value = _),
3012
3080
  placeholder: a(p).stateFilterPlaceholder
3013
3081
  }, null, 8, ["modelValue", "placeholder"]),
3014
- l.value?.length ? (c(), m("div", R1, [
3015
- (c(!0), m(ne, null, ue(l.value, (C, P) => W((c(), m("div", {
3082
+ l.value?.length ? (c(), m("div", Hs, [
3083
+ (c(!0), m(le, null, ce(l.value, (_, P) => q((c(), m("div", {
3016
3084
  key: P,
3017
3085
  class: "flex items-center gap1",
3018
- onClick: (B) => K(P)
3086
+ onClick: (Z) => G(P)
3019
3087
  }, [
3020
3088
  u("i", {
3021
- class: ae(`i-ic-baseline-${C.icon.replace(/\_/g, "-")}`),
3089
+ class: ie(`i-ic-baseline-${_.icon.replace(/\_/g, "-")}`),
3022
3090
  "cursor-pointer": "",
3023
3091
  "text-base": "",
3024
3092
  op70: "",
3025
3093
  "hover:op100": ""
3026
3094
  }, null, 2)
3027
- ], 8, D1)), [
3095
+ ], 8, Os)), [
3028
3096
  [
3029
- a(q),
3030
- { content: C.tooltip },
3097
+ a(Y),
3098
+ { content: _.tooltip },
3031
3099
  void 0,
3032
3100
  { "bottom-end": !0 }
3033
3101
  ]
3034
3102
  ])), 128))
3035
- ])) : U("", !0)
3103
+ ])) : j("", !0)
3036
3104
  ]),
3037
- r.value && !b.value ? (c(), z(Ae, {
3105
+ r.value && !I.value ? (c(), z(He, {
3038
3106
  key: 0,
3039
3107
  class: "no-scrollbar flex-1 overflow-scroll",
3040
- data: k.value,
3108
+ data: $.value,
3041
3109
  "node-id": r.value,
3042
- "inspector-id": a(t),
3110
+ "inspector-id": a(n),
3043
3111
  "expanded-state-id": "pinia-store-state"
3044
- }, null, 8, ["data", "node-id", "inspector-id"])) : (c(), z(Ie, { key: 1 }, {
3045
- default: L(() => g[3] || (g[3] = [
3046
- X(" No Data ", -1)
3047
- ])),
3048
- _: 1,
3049
- __: [3]
3112
+ }, null, 8, ["data", "node-id", "inspector-id"])) : (c(), z($e, { key: 1 }, {
3113
+ default: H(() => [...g[3] || (g[3] = [
3114
+ Q(" No Data ", -1)
3115
+ ])]),
3116
+ _: 1
3050
3117
  }))
3051
3118
  ])
3052
3119
  ]),
@@ -3057,73 +3124,73 @@ const v1 = /* @__PURE__ */ xe(d1, [["render", f1]]), m1 = {
3057
3124
  })
3058
3125
  ]));
3059
3126
  }
3060
- }), A1 = "dev.esm.pinia", M1 = /* @__PURE__ */ F({
3127
+ }), js = "dev.esm.pinia", zs = /* @__PURE__ */ F({
3061
3128
  __name: "Index",
3062
- setup(n) {
3129
+ setup(t) {
3063
3130
  const e = ["pinia:mutations"];
3064
- return (o, t) => (c(), z(it, {
3131
+ return (o, n) => (c(), z(ct, {
3065
3132
  "layer-ids": e,
3066
3133
  "doc-link": "https://pinia.vuejs.org/",
3067
- "plugin-id": A1,
3134
+ "plugin-id": js,
3068
3135
  "github-repo-link": "https://github.com/vuejs/pinia"
3069
3136
  }));
3070
3137
  }
3071
- }), L1 = {
3138
+ }), Bs = {
3072
3139
  "h-full": "",
3073
3140
  "w-full": ""
3074
- }, vs = /* @__PURE__ */ F({
3141
+ }, _1 = /* @__PURE__ */ F({
3075
3142
  __name: "index",
3076
- setup(n) {
3143
+ setup(t) {
3077
3144
  const e = N(null);
3078
- ye("pluginSettings", e);
3079
- const o = I(() => [
3145
+ _e("pluginSettings", e);
3146
+ const o = S(() => [
3080
3147
  {
3081
3148
  path: "/store",
3082
3149
  name: "Store",
3083
- component: P1,
3150
+ component: Us,
3084
3151
  icon: "i-carbon-tree-view-alt"
3085
3152
  },
3086
3153
  {
3087
3154
  path: "/timeline",
3088
3155
  name: "Timeline",
3089
- component: M1,
3156
+ component: zs,
3090
3157
  icon: "i-mdi:timeline-clock-outline"
3091
3158
  },
3092
3159
  {
3093
3160
  path: "/",
3094
3161
  name: "About",
3095
- component: _1,
3162
+ component: $s,
3096
3163
  icon: "i-logos-pinia"
3097
3164
  },
3098
3165
  e.value && {
3099
3166
  path: "/settings",
3100
3167
  name: "Settings",
3101
- component: b1,
3168
+ component: Ts,
3102
3169
  icon: "i-mdi:cog-outline"
3103
3170
  }
3104
- ].filter(Boolean)), { VirtualRouterView: t } = et(o, {
3171
+ ].filter(Boolean)), { VirtualRouterView: n } = ot(o, {
3105
3172
  defaultRoutePath: "/store"
3106
- }), l = rt();
3107
- return Re(() => {
3108
- R.value.getPluginSettings(w1).then((s) => {
3173
+ }), l = dt();
3174
+ return De(() => {
3175
+ A.value.getPluginSettings(Es).then((s) => {
3109
3176
  s.options ? e.value = s : e.value = null;
3110
- }), R.value.getInspectorInfo(Yt).then((s) => {
3177
+ }), A.value.getInspectorInfo(tn).then((s) => {
3111
3178
  s && (l.value = {
3112
3179
  stateFilterPlaceholder: s.stateFilterPlaceholder,
3113
3180
  treeFilterPlaceholder: s.treeFilterPlaceholder
3114
3181
  });
3115
3182
  });
3116
- }), (s, p) => (c(), m("div", L1, [
3117
- y(a(t))
3183
+ }), (s, p) => (c(), m("div", Bs, [
3184
+ x(a(n))
3118
3185
  ]));
3119
3186
  }
3120
- }), H1 = {}, U1 = {
3187
+ }), Zs = {}, Fs = {
3121
3188
  viewBox: "0 0 566 154",
3122
3189
  fill: "none",
3123
3190
  xmlns: "http://www.w3.org/2000/svg"
3124
3191
  };
3125
- function O1(n, e) {
3126
- return c(), m("svg", U1, e[0] || (e[0] = [
3192
+ function Ks(t, e) {
3193
+ return c(), m("svg", Fs, [...e[0] || (e[0] = [
3127
3194
  u("svg", {
3128
3195
  xmlns: "http://www.w3.org/2000/svg",
3129
3196
  width: "8em",
@@ -3139,38 +3206,38 @@ function O1(n, e) {
3139
3206
  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",
3140
3207
  fill: "currentColor"
3141
3208
  }, null, -1)
3142
- ]));
3209
+ ])]);
3143
3210
  }
3144
- const j1 = /* @__PURE__ */ xe(H1, [["render", O1]]), z1 = {
3211
+ const Gs = /* @__PURE__ */ be(Zs, [["render", Ks]]), Ws = {
3145
3212
  "h-full": "",
3146
3213
  "w-full": "",
3147
3214
  flex: "",
3148
3215
  "items-center": ""
3149
- }, B1 = {
3216
+ }, qs = {
3150
3217
  flex: "~ col gap2",
3151
3218
  ma: "",
3152
3219
  "px-5": ""
3153
- }, F1 = {
3220
+ }, Js = {
3154
3221
  flex: "~ col",
3155
3222
  "mt-20": "",
3156
3223
  "items-center": ""
3157
- }, Z1 = {
3224
+ }, Ys = {
3158
3225
  flex: "~",
3159
3226
  "mt--10": "",
3160
3227
  "items-center": "",
3161
3228
  "justify-center": ""
3162
- }, K1 = { flex: "~ gap2 wrap" }, G1 = /* @__PURE__ */ F({
3229
+ }, Xs = { flex: "~ gap2 wrap" }, Qs = /* @__PURE__ */ F({
3163
3230
  __name: "About",
3164
- setup(n) {
3165
- const e = Pe();
3166
- return (o, t) => (c(), m("div", z1, [
3167
- u("div", B1, [
3168
- t[5] || (t[5] = u("div", { "flex-auto": "" }, null, -1)),
3169
- u("div", F1, [
3170
- u("div", Z1, [
3171
- y(j1, { "h-18": "" })
3231
+ setup(t) {
3232
+ const e = Le();
3233
+ return (o, n) => (c(), m("div", Ws, [
3234
+ u("div", qs, [
3235
+ n[5] || (n[5] = u("div", { "flex-auto": "" }, null, -1)),
3236
+ u("div", Js, [
3237
+ u("div", Ys, [
3238
+ x(Gs, { "h-18": "" })
3172
3239
  ]),
3173
- t[2] || (t[2] = u("div", {
3240
+ n[2] || (n[2] = u("div", {
3174
3241
  mb6: "",
3175
3242
  "mt--1": "",
3176
3243
  "text-center": "",
@@ -3180,36 +3247,36 @@ const j1 = /* @__PURE__ */ xe(H1, [["render", O1]]), z1 = {
3180
3247
  u("span", { op40: "" }, " Router DevTools ")
3181
3248
  ], -1))
3182
3249
  ]),
3183
- t[6] || (t[6] = u("div", { "flex-auto": "" }, null, -1)),
3184
- u("div", K1, [
3250
+ n[6] || (n[6] = u("div", { "flex-auto": "" }, null, -1)),
3251
+ u("div", Xs, [
3185
3252
  u("div", {
3186
3253
  flex: "~ col auto",
3187
3254
  "min-w-40": "",
3188
3255
  "theme-card-lime": "",
3189
3256
  p4: "",
3190
- onClick: t[0] || (t[0] = (l) => a(e).push("/routes"))
3191
- }, t[3] || (t[3] = [
3257
+ onClick: n[0] || (n[0] = (l) => a(e).push("/routes"))
3258
+ }, [...n[3] || (n[3] = [
3192
3259
  u("div", {
3193
3260
  "i-carbon-tree-view-alt": "",
3194
3261
  "text-3xl": ""
3195
3262
  }, null, -1),
3196
3263
  u("code", null, "Routes", -1)
3197
- ])),
3264
+ ])]),
3198
3265
  u("div", {
3199
3266
  flex: "~ col auto",
3200
3267
  "min-w-40": "",
3201
3268
  "theme-card-lime": "",
3202
3269
  p4: "",
3203
- onClick: t[1] || (t[1] = (l) => a(e).push("/timeline"))
3204
- }, t[4] || (t[4] = [
3270
+ onClick: n[1] || (n[1] = (l) => a(e).push("/timeline"))
3271
+ }, [...n[4] || (n[4] = [
3205
3272
  u("div", {
3206
3273
  "i-mdi:timeline-clock-outline": "",
3207
3274
  "text-3xl": ""
3208
3275
  }, null, -1),
3209
3276
  u("div", null, "Timeline", -1)
3210
- ]))
3277
+ ])])
3211
3278
  ]),
3212
- t[7] || (t[7] = u("div", {
3279
+ n[7] || (n[7] = u("div", {
3213
3280
  flex: "~ gap-6 wrap",
3214
3281
  "mt-5": "",
3215
3282
  "items-center": "",
@@ -3225,7 +3292,7 @@ const j1 = /* @__PURE__ */ xe(H1, [["render", O1]]), z1 = {
3225
3292
  transition: ""
3226
3293
  }, [
3227
3294
  u("div", { "i-carbon-star": "" }),
3228
- X(" Star on GitHub ")
3295
+ Q(" Star on GitHub ")
3229
3296
  ]),
3230
3297
  u("a", {
3231
3298
  href: "https://router.vuejs.org/",
@@ -3237,148 +3304,147 @@ const j1 = /* @__PURE__ */ xe(H1, [["render", O1]]), z1 = {
3237
3304
  transition: ""
3238
3305
  }, [
3239
3306
  u("div", { "i-carbon-document": "" }),
3240
- X(" View Documentation ")
3307
+ Q(" View Documentation ")
3241
3308
  ])
3242
3309
  ], -1)),
3243
- t[8] || (t[8] = u("div", { "flex-auto": "" }, null, -1))
3310
+ n[8] || (n[8] = u("div", { "flex-auto": "" }, null, -1))
3244
3311
  ])
3245
3312
  ]));
3246
3313
  }
3247
- }), W1 = { class: "h-full flex flex-col" }, q1 = {
3314
+ }), e1 = { class: "h-full flex flex-col" }, t1 = {
3248
3315
  "h-full": "",
3249
3316
  "select-none": "",
3250
3317
  "overflow-scroll": "",
3251
3318
  p2: "",
3252
3319
  class: "no-scrollbar"
3253
- }, J1 = { class: "pb2" }, Y1 = {
3320
+ }, n1 = { class: "pb2" }, o1 = {
3254
3321
  "h-full": "",
3255
3322
  "overflow-scroll": "",
3256
3323
  class: "no-scrollbar"
3257
- }, X1 = /* @__PURE__ */ F({
3324
+ }, l1 = /* @__PURE__ */ F({
3258
3325
  __name: "Index",
3259
- setup(n) {
3260
- const { expanded: e } = ge(), { expanded: o } = ge("routes-state"), t = _e(), l = I(() => t.value.id), s = N(""), p = N(""), [r, i] = Ft(!0), f = N([]), v = I(() => f.value?.length ? E(f.value?.[0]) : []), d = I(() => b(f.value)), h = I(() => d.value.map((H) => H.id)), $ = N({});
3261
- function E(H, w = [], O = []) {
3262
- return w.push(H.id), H.children?.length === 0 && O.push([...w]), Array.isArray(H.children) && H.children.forEach((te) => {
3263
- E(te, w, O);
3264
- }), w.pop(), O;
3265
- }
3266
- function k(H, w) {
3267
- const O = [];
3268
- return H?.forEach((te) => {
3269
- O.push(...te.slice(0, w + 1));
3270
- }), [...new Set(O)];
3271
- }
3272
- function b(H) {
3273
- const w = [], O = (te) => {
3274
- te?.forEach((oe) => {
3275
- w.push(oe), oe.children?.length && O(oe.children);
3326
+ setup(t) {
3327
+ const { expanded: e } = ye(), { expanded: o } = ye("routes-state"), n = xe(), l = S(() => n.value.id), s = N(""), p = N(""), [r, i] = /* @__PURE__ */ Wt(!0), f = N([]), v = S(() => f.value?.length ? E(f.value?.[0]) : []), d = S(() => I(f.value)), h = S(() => d.value.map((O) => O.id)), T = N({});
3328
+ function E(O, C = [], U = []) {
3329
+ return C.push(O.id), O.children?.length === 0 && U.push([...C]), Array.isArray(O.children) && O.children.forEach((oe) => {
3330
+ E(oe, C, U);
3331
+ }), C.pop(), U;
3332
+ }
3333
+ function $(O, C) {
3334
+ const U = [];
3335
+ return O?.forEach((oe) => {
3336
+ U.push(...oe.slice(0, C + 1));
3337
+ }), [...new Set(U)];
3338
+ }
3339
+ function I(O) {
3340
+ const C = [], U = (oe) => {
3341
+ oe?.forEach((se) => {
3342
+ C.push(se), se.children?.length && U(se.children);
3276
3343
  });
3277
3344
  };
3278
- return O(H), w;
3345
+ return U(O), C;
3279
3346
  }
3280
- function A(H) {
3281
- for (const w in H)
3282
- H[w]?.length || delete H[w];
3283
- return H;
3347
+ function L(O) {
3348
+ for (const C in O)
3349
+ O[C]?.length || delete O[C];
3350
+ return O;
3284
3351
  }
3285
- function V(H) {
3286
- R.value.getInspectorState({ inspectorId: l.value, nodeId: H }).then((w) => {
3287
- const O = ee(w);
3288
- O && ($.value = A(O), o.value = Array.from({ length: Object.keys($.value).length }, (te, oe) => `${oe}`));
3352
+ function V(O) {
3353
+ A.value.getInspectorState({ inspectorId: l.value, nodeId: O }).then((C) => {
3354
+ const U = ne(C);
3355
+ U && (T.value = L(U), o.value = Array.from({ length: Object.keys(T.value).length }, (oe, se) => `${se}`));
3289
3356
  });
3290
3357
  }
3291
- function _() {
3292
- $.value = {};
3358
+ function w() {
3359
+ T.value = {};
3293
3360
  }
3294
- Q(s, () => {
3295
- _(), V(s.value);
3361
+ te(s, () => {
3362
+ w(), V(s.value);
3296
3363
  });
3297
- const D = async (H = "") => {
3298
- await R.value.getInspectorTree({ inspectorId: l.value, filter: H }).then((w) => {
3299
- const O = ee(w);
3300
- f.value = O, !s.value && O.length && (s.value = O[0].id, V(O[0].id), e.value = k(v.value, 1));
3364
+ const D = async (O = "") => {
3365
+ await A.value.getInspectorTree({ inspectorId: l.value, filter: O }).then((C) => {
3366
+ const U = ne(C);
3367
+ f.value = U, !s.value && U.length && (s.value = U[0].id, V(U[0].id), e.value = $(v.value, 1));
3301
3368
  });
3302
3369
  };
3303
- Bt(l).toBeTruthy().then(() => {
3370
+ Gt(l).toBeTruthy().then(() => {
3304
3371
  D();
3305
3372
  });
3306
- function Z(H) {
3307
- const w = ee(H);
3308
- w.inspectorId !== l.value || !w.rootNodes.length || (f.value = w.rootNodes, h.value.includes(s.value) || (s.value = w.rootNodes[0].id, e.value = k(v.value, 1), V(w.rootNodes[0].id)));
3373
+ function B(O) {
3374
+ const C = ne(O);
3375
+ C.inspectorId !== l.value || !C.rootNodes.length || (f.value = C.rootNodes, h.value.includes(s.value) || (s.value = C.rootNodes[0].id, e.value = $(v.value, 1), V(C.rootNodes[0].id)));
3309
3376
  }
3310
- function K(H) {
3311
- const w = ee(H);
3312
- if (w.inspectorId !== l.value)
3377
+ function G(O) {
3378
+ const C = ne(O);
3379
+ if (C.inspectorId !== l.value)
3313
3380
  return;
3314
- const O = w.state;
3315
- $.value = A(O);
3381
+ const U = C.state;
3382
+ T.value = L(U);
3316
3383
  }
3317
- R.functions.on(Y.INSPECTOR_TREE_UPDATED, Z), R.functions.on(Y.INSPECTOR_STATE_UPDATED, K), we(() => {
3318
- R.functions.off(Y.INSPECTOR_TREE_UPDATED, Z), R.functions.off(Y.INSPECTOR_STATE_UPDATED, K);
3384
+ A.functions.on(X.INSPECTOR_TREE_UPDATED, B), A.functions.on(X.INSPECTOR_STATE_UPDATED, G), ke(() => {
3385
+ A.functions.off(X.INSPECTOR_TREE_UPDATED, B), A.functions.off(X.INSPECTOR_STATE_UPDATED, G);
3319
3386
  });
3320
- function G(H) {
3321
- const w = H.trim().toLowerCase();
3322
- i(), D(w).then(() => {
3387
+ function W(O) {
3388
+ const C = O.trim().toLowerCase();
3389
+ i(), D(C).then(() => {
3323
3390
  i();
3324
3391
  });
3325
3392
  }
3326
- return Zt(p, (H) => {
3327
- G(H);
3328
- }, { debounce: 300 }), (H, w) => (c(), m("div", W1, [
3329
- y(Se, {
3393
+ return qt(p, (O) => {
3394
+ W(O);
3395
+ }, { debounce: 300 }), (O, C) => (c(), m("div", e1, [
3396
+ x(Te, {
3330
3397
  "doc-link": "https://router.vuejs.org/",
3331
3398
  "github-repo-link": "https://github.com/vuejs/router"
3332
3399
  }, {
3333
- default: L(() => [
3334
- y(Te)
3400
+ default: H(() => [
3401
+ x(Ee)
3335
3402
  ]),
3336
3403
  _: 1
3337
3404
  }),
3338
- y(a(De), { class: "flex-1 overflow-auto" }, {
3339
- default: L(() => [
3340
- y(a(ce), {
3405
+ x(a(Pe), { class: "flex-1 overflow-auto" }, {
3406
+ default: H(() => [
3407
+ x(a(de), {
3341
3408
  border: "r base",
3342
3409
  size: "40",
3343
3410
  "h-full": ""
3344
3411
  }, {
3345
- default: L(() => [
3346
- u("div", q1, [
3347
- u("div", J1, [
3348
- y(a(he), {
3412
+ default: H(() => [
3413
+ u("div", t1, [
3414
+ u("div", n1, [
3415
+ x(a(Ce), {
3349
3416
  modelValue: p.value,
3350
- "onUpdate:modelValue": w[0] || (w[0] = (O) => p.value = O),
3417
+ "onUpdate:modelValue": C[0] || (C[0] = (U) => p.value = U),
3351
3418
  placeholder: "Search routes",
3352
3419
  loading: !a(r),
3353
3420
  "loading-debounce-time": 250,
3354
3421
  class: "text-3.5"
3355
3422
  }, null, 8, ["modelValue", "loading"])
3356
3423
  ]),
3357
- y(Me, {
3424
+ x(Oe, {
3358
3425
  modelValue: s.value,
3359
- "onUpdate:modelValue": w[1] || (w[1] = (O) => s.value = O),
3426
+ "onUpdate:modelValue": C[1] || (C[1] = (U) => s.value = U),
3360
3427
  data: f.value
3361
3428
  }, null, 8, ["modelValue", "data"])
3362
3429
  ])
3363
3430
  ]),
3364
3431
  _: 1
3365
3432
  }),
3366
- y(a(ce), { size: "60" }, {
3367
- default: L(() => [
3368
- u("div", Y1, [
3369
- s.value ? (c(), z(Ae, {
3433
+ x(a(de), { size: "60" }, {
3434
+ default: H(() => [
3435
+ u("div", o1, [
3436
+ s.value ? (c(), z(He, {
3370
3437
  key: 0,
3371
3438
  class: "p3",
3372
- data: $.value,
3439
+ data: T.value,
3373
3440
  "node-id": "",
3374
3441
  "inspector-id": "router",
3375
3442
  "expanded-state-id": "routes-state"
3376
- }, null, 8, ["data"])) : (c(), z(Ie, { key: 1 }, {
3377
- default: L(() => w[2] || (w[2] = [
3378
- X(" No Data ", -1)
3379
- ])),
3380
- _: 1,
3381
- __: [2]
3443
+ }, null, 8, ["data"])) : (c(), z($e, { key: 1 }, {
3444
+ default: H(() => [...C[2] || (C[2] = [
3445
+ Q(" No Data ", -1)
3446
+ ])]),
3447
+ _: 1
3382
3448
  }))
3383
3449
  ])
3384
3450
  ]),
@@ -3389,51 +3455,51 @@ const j1 = /* @__PURE__ */ xe(H1, [["render", O1]]), z1 = {
3389
3455
  })
3390
3456
  ]));
3391
3457
  }
3392
- }), Q1 = "org.vuejs.router", es = /* @__PURE__ */ F({
3458
+ }), s1 = "org.vuejs.router", a1 = /* @__PURE__ */ F({
3393
3459
  __name: "Index",
3394
- setup(n) {
3395
- const e = _e();
3396
- return (o, t) => (c(), z(it, {
3460
+ setup(t) {
3461
+ const e = xe();
3462
+ return (o, n) => (c(), z(ct, {
3397
3463
  "layer-ids": a(e).timelineLayerIds,
3398
3464
  "doc-link": "https://router.vuejs.org/",
3399
- "plugin-id": Q1,
3465
+ "plugin-id": s1,
3400
3466
  "github-repo-link": "https://github.com/vuejs/router"
3401
3467
  }, null, 8, ["layer-ids"]));
3402
3468
  }
3403
- }), ts = {
3469
+ }), i1 = {
3404
3470
  "h-full": "",
3405
3471
  "w-full": ""
3406
- }, ms = /* @__PURE__ */ F({
3472
+ }, x1 = /* @__PURE__ */ F({
3407
3473
  __name: "index",
3408
3474
  props: {
3409
3475
  id: {}
3410
3476
  },
3411
- setup(n) {
3412
- const e = n, o = rt(), t = N(!1), { VirtualRouterView: l, restoreRouter: s } = et([
3477
+ setup(t) {
3478
+ const e = t, o = dt(), n = N(!1), { VirtualRouterView: l, restoreRouter: s } = ot([
3413
3479
  {
3414
3480
  path: "/routes",
3415
3481
  name: "Routes",
3416
- component: X1,
3482
+ component: l1,
3417
3483
  icon: "i-carbon-tree-view-alt"
3418
3484
  },
3419
3485
  {
3420
3486
  path: "/timeline",
3421
3487
  name: "Timeline",
3422
- component: es,
3488
+ component: a1,
3423
3489
  icon: "i-mdi:timeline-clock-outline"
3424
3490
  },
3425
3491
  {
3426
3492
  path: "/about",
3427
3493
  name: "About",
3428
- component: G1,
3494
+ component: Qs,
3429
3495
  icon: "i-ri-route-line"
3430
3496
  }
3431
3497
  ], {
3432
3498
  defaultRoutePath: "/routes"
3433
3499
  });
3434
3500
  function p() {
3435
- t.value = !0, Re(() => {
3436
- R.value.getInspectorInfo(e.id).then((r) => {
3501
+ n.value = !0, De(() => {
3502
+ A.value.getInspectorInfo(e.id).then((r) => {
3437
3503
  if (!r)
3438
3504
  return;
3439
3505
  const i = {
@@ -3443,23 +3509,23 @@ const j1 = /* @__PURE__ */ xe(H1, [["render", O1]]), z1 = {
3443
3509
  logo: r?.logo,
3444
3510
  timelineLayerIds: r?.timelineLayers.map((f) => f.id)
3445
3511
  };
3446
- o.value = i, s(), t.value = !1;
3512
+ o.value = i, s(), n.value = !1;
3447
3513
  });
3448
3514
  });
3449
3515
  }
3450
- return Q(() => e.id, (r) => {
3516
+ return te(() => e.id, (r) => {
3451
3517
  r && p();
3452
- }), (r, i) => (c(), m("div", ts, [
3453
- y(a(l))
3518
+ }), (r, i) => (c(), m("div", i1, [
3519
+ x(a(l))
3454
3520
  ]));
3455
3521
  }
3456
3522
  });
3457
3523
  export {
3458
- ps as Components,
3459
- fs as CustomInspector,
3460
- vs as Pinia,
3461
- ms as Router,
3462
- Pn as SelectiveList,
3463
- it as Timeline,
3464
- ds as useCustomInspector
3524
+ C1 as Components,
3525
+ y1 as CustomInspector,
3526
+ _1 as Pinia,
3527
+ x1 as Router,
3528
+ On as SelectiveList,
3529
+ ct as Timeline,
3530
+ g1 as useCustomInspector
3465
3531
  };