@vue/devtools-applet 8.0.6 → 8.0.7

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,8 +1,8 @@
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 E, computed as S, h as cn, provide as ye, 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 xt, toRaw as Rt, createVNode as b, mergeProps as Ie, withModifiers as he, withCtx as M, 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 yt, VueInput as Ce, VueIcIcon as Ze, VueCodeBlock as gn, VueDialog as Cn, VueSwitch as xn, VueSelect as yn } from "@vue/devtools-ui";
3
- import { isPlainObject as bn, UNDEFINED as Dt, NAN as _n, INFINITY as wn, NEGATIVE_INFINITY as kn, getRaw as Pt, toSubmit as je, formatInspectorStateValue as In, getInspectorStateValueType as bt, escape as $n, toEdit as Sn, parse as ne } from "@vue/devtools-kit";
4
- import { rpc as V, useDevToolsState as Lt, DevToolsMessagingEvents as X, onRpcConnected as De } from "@vue/devtools-core";
5
- import { Splitpanes as Pe, Pane as de } from "splitpanes";
1
+ import { defineComponent as Z, withDirectives as q, createElementBlock as h, openBlock as c, normalizeStyle as Ee, unref as a, createTextVNode as Q, toDisplayString as re, mergeModels as De, useModel as Ye, Fragment as se, renderList as ce, normalizeClass as ie, createBlock as B, inject as ge, toValue as Y, ref as E, computed as $, h as cn, provide as ye, createElementVNode as u, renderSlot as Xe, createCommentVNode as U, isRef as Ke, shallowRef as me, shallowReadonly as dn, onMounted as At, nextTick as Ze, watch as te, getCurrentScope as pn, onScopeDispose as fn, getCurrentInstance as Qe, reactive as xt, toRaw as Rt, createVNode as y, mergeProps as Se, withModifiers as he, withCtx as M, watchEffect as et, onUnmounted as Ie, vShow as vn, createStaticVNode as mn } from "vue";
2
+ import { vTooltip as J, VueButton as fe, VueIcon as ue, VueDropdown as hn, VueDropdownButton as yt, VueInput as Ce, VueIcIcon as Fe, VueCodeBlock as gn, VueDialog as Cn, VueSwitch as xn, VueSelect as yn } from "@vue/devtools-ui";
3
+ import { isPlainObject as bn, UNDEFINED as Dt, NAN as _n, INFINITY as wn, NEGATIVE_INFINITY as kn, getRaw as Pt, toSubmit as ze, formatInspectorStateValue as In, getInspectorStateValueType as bt, escape as $n, toEdit as Sn, parse as le } from "@vue/devtools-kit";
4
+ import { rpc as V, useDevToolsState as Lt, DevToolsMessagingEvents as X, onRpcConnected as Pe } from "@vue/devtools-core";
5
+ import { Splitpanes as Le, Pane as de } from "splitpanes";
6
6
  import { isArray as _t, isObject as wt, sortByKey as Mt, isInSeparateWindow as Tn, isInChromePanel as kt } from "@vue/devtools-shared";
7
7
  import { debounce as En } from "perfect-debounce";
8
8
  import { RecycleScroller as Vn } from "vue-virtual-scroller";
@@ -61,14 +61,14 @@ function tt(e) {
61
61
  }
62
62
  return l;
63
63
  }
64
- const jt = /* @__PURE__ */ F({
64
+ const jt = /* @__PURE__ */ Z({
65
65
  __name: "NodeTag",
66
66
  props: {
67
67
  tag: {}
68
68
  },
69
69
  setup(e) {
70
- return (t, o) => q((c(), m("span", {
71
- style: Se({
70
+ return (t, o) => q((c(), h("span", {
71
+ style: Ee({
72
72
  color: `#${a(It)(e.tag.textColor)}`,
73
73
  backgroundColor: `#${a(It)(e.tag.backgroundColor)}`
74
74
  }),
@@ -76,34 +76,34 @@ const jt = /* @__PURE__ */ F({
76
76
  }, [
77
77
  Q(re(e.tag.label), 1)
78
78
  ], 4)), [
79
- [a(Y), {
79
+ [a(J), {
80
80
  content: e.tag.tooltip,
81
81
  html: !0
82
82
  }]
83
83
  ]);
84
84
  }
85
- }), Mn = { class: "p2" }, Hn = ["onClick"], On = /* @__PURE__ */ F({
85
+ }), Mn = { class: "p2" }, Hn = ["onClick"], On = /* @__PURE__ */ Z({
86
86
  __name: "SelectiveList",
87
- props: /* @__PURE__ */ Re({
87
+ props: /* @__PURE__ */ De({
88
88
  data: {}
89
89
  }, {
90
90
  modelValue: {},
91
91
  modelModifiers: {}
92
92
  }),
93
- emits: /* @__PURE__ */ Re(["select"], ["update:modelValue"]),
93
+ emits: /* @__PURE__ */ De(["select"], ["update:modelValue"]),
94
94
  setup(e, { emit: t }) {
95
95
  const o = t, n = Ye(e, "modelValue");
96
96
  function l(s) {
97
97
  n.value = s, o("select", s);
98
98
  }
99
- return (s, p) => (c(), m("ul", Mn, [
100
- (c(!0), m(le, null, ce(e.data, (i) => (c(), m("li", {
99
+ return (s, p) => (c(), h("ul", Mn, [
100
+ (c(!0), h(se, null, ce(e.data, (i) => (c(), h("li", {
101
101
  key: i.id,
102
102
  class: ie(["selectable-item", { active: i.id === n.value }]),
103
103
  onClick: (r) => l(i.id)
104
104
  }, [
105
105
  Q(re(i.label) + " ", 1),
106
- (c(!0), m(le, null, ce(i.tags, (r, f) => (c(), z(jt, {
106
+ (c(!0), h(se, null, ce(i.tags, (r, f) => (c(), B(jt, {
107
107
  key: f,
108
108
  tag: r
109
109
  }, null, 8, ["tag"]))), 128))
@@ -112,9 +112,9 @@ const jt = /* @__PURE__ */ F({
112
112
  }
113
113
  }), nt = Symbol("VirtualRouteKey"), zt = Symbol("VirtualRoutesKey");
114
114
  function ot(e, t) {
115
- const o = t?.defaultRoutePath ?? J(e)[0].path, n = E({
115
+ const o = t?.defaultRoutePath ?? Y(e)[0].path, n = E({
116
116
  path: o
117
- }), l = S(() => J(e)), s = S(() => n.value.path), p = F({
117
+ }), l = $(() => Y(e)), s = $(() => n.value.path), p = Z({
118
118
  setup() {
119
119
  return () => {
120
120
  const r = l.value.find((f) => f.path === s.value);
@@ -127,7 +127,7 @@ function ot(e, t) {
127
127
  }
128
128
  return ye(nt, n), ye(zt, l), { VirtualRouterView: p, restoreRouter: i };
129
129
  }
130
- function Le() {
130
+ function Me() {
131
131
  const e = ge(nt);
132
132
  return {
133
133
  push(t) {
@@ -145,15 +145,15 @@ function Un() {
145
145
  const jn = {
146
146
  border: "b base",
147
147
  class: "flex items-center justify-between px3"
148
- }, zn = ["href"], Bn = ["href"], Te = /* @__PURE__ */ F({
148
+ }, zn = ["href"], Bn = ["href"], Ve = /* @__PURE__ */ Z({
149
149
  __name: "DevToolsHeader",
150
150
  props: {
151
151
  githubRepoLink: {},
152
152
  docLink: {}
153
153
  },
154
154
  setup(e) {
155
- const t = Le();
156
- return (o, n) => (c(), m("div", jn, [
155
+ const t = Me();
156
+ return (o, n) => (c(), h("div", jn, [
157
157
  u("div", null, [
158
158
  Xe(o.$slots, "default", {}, () => [
159
159
  u("i", {
@@ -171,14 +171,14 @@ const jn = {
171
171
  }, [...n[1] || (n[1] = [
172
172
  u("i", { class: "i-clarity:document-line cursor-pointer text-base op70 hover:op100" }, null, -1)
173
173
  ])], 8, zn),
174
- e.githubRepoLink ? (c(), m("a", {
174
+ e.githubRepoLink ? (c(), h("a", {
175
175
  key: 0,
176
176
  href: e.githubRepoLink,
177
177
  target: "_blank",
178
178
  title: "Star on GitHub"
179
179
  }, [...n[2] || (n[2] = [
180
180
  u("i", { class: "i-mdi:github cursor-pointer text-base op70 hover:op100" }, null, -1)
181
- ])], 8, Bn)) : j("", !0)
181
+ ])], 8, Bn)) : U("", !0)
182
182
  ])
183
183
  ]));
184
184
  }
@@ -189,32 +189,32 @@ const jn = {
189
189
  return o;
190
190
  }, Zn = {}, Fn = { class: "h-full flex flex-col items-center justify-center op50" };
191
191
  function Kn(e, t) {
192
- return c(), m("div", Fn, [
192
+ return c(), h("div", Fn, [
193
193
  t[0] || (t[0] = u("i", { class: "i-lets-icons:blank-light" }, null, -1)),
194
194
  u("span", null, [
195
195
  Xe(e.$slots, "default")
196
196
  ])
197
197
  ]);
198
198
  }
199
- const $e = /* @__PURE__ */ _e(Zn, [["render", Kn]]), Gn = { class: "flex gap3" }, Wn = ["onClick"], Ee = /* @__PURE__ */ F({
199
+ const Te = /* @__PURE__ */ _e(Zn, [["render", Kn]]), Gn = { class: "flex gap3" }, Wn = ["onClick"], Ne = /* @__PURE__ */ Z({
200
200
  __name: "Navbar",
201
201
  setup(e) {
202
- const { routes: t, currentRoute: o } = Un(), n = Le();
203
- return (l, s) => (c(), m("ul", Gn, [
204
- (c(!0), m(le, null, ce(a(t), (p, i) => (c(), m("li", {
202
+ const { routes: t, currentRoute: o } = Un(), n = Me();
203
+ return (l, s) => (c(), h("ul", Gn, [
204
+ (c(!0), h(se, null, ce(a(t), (p, i) => (c(), h("li", {
205
205
  key: i,
206
206
  class: ie(["h-10 flex cursor-pointer items-center justify-center border-b-[2px] border-solid text-size-sm leading-none hover:op100", a(o).path === p.path ? "op-100 font-medium text-primary-400 border-primary-400" : "border-transparent op-70"]),
207
207
  onClick: (r) => a(n).push(p.path)
208
208
  }, re(p.name), 11, Wn))), 128))
209
209
  ]));
210
210
  }
211
- }), lt = /* @__PURE__ */ F({
211
+ }), lt = /* @__PURE__ */ Z({
212
212
  __name: "ToggleExpanded",
213
213
  props: {
214
214
  value: { type: Boolean }
215
215
  },
216
216
  setup(e) {
217
- return (t, o) => (c(), m("i", {
217
+ return (t, o) => (c(), h("i", {
218
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
  }])
@@ -239,7 +239,7 @@ function Jn() {
239
239
  l && (t.value = l), o.value = !o.value;
240
240
  },
241
241
  editingType: t,
242
- nodeId: S(() => n.value.nodeId)
242
+ nodeId: $(() => n.value.nodeId)
243
243
  };
244
244
  }
245
245
  function Yn(e, t) {
@@ -322,11 +322,11 @@ function Kt(e, t = {}) {
322
322
  };
323
323
  let p;
324
324
  return (r) => {
325
- const f = J(e), v = J(t.maxWait);
326
- return o && s(o), f <= 0 || v !== void 0 && v <= 0 ? (n && (s(n), n = void 0), Promise.resolve(r())) : new Promise((d, h) => {
327
- l = t.rejectOnCancel ? h : d, p = r, v && !n && (n = setTimeout(() => {
325
+ const f = Y(e), m = Y(t.maxWait);
326
+ return o && s(o), f <= 0 || m !== void 0 && m <= 0 ? (n && (s(n), n = void 0), Promise.resolve(r())) : new Promise((d, g) => {
327
+ l = t.rejectOnCancel ? g : d, p = r, m && !n && (n = setTimeout(() => {
328
328
  o && s(o), n = void 0, d(p());
329
- }, v)), o = setTimeout(() => {
329
+ }, m)), o = setTimeout(() => {
330
330
  n && s(n), n = void 0, d(r());
331
331
  }, f);
332
332
  });
@@ -347,7 +347,7 @@ function oo(e) {
347
347
  t = void 0, n && await n;
348
348
  }, o;
349
349
  }
350
- function ze(e) {
350
+ function Be(e) {
351
351
  return Array.isArray(e) ? e : [e];
352
352
  }
353
353
  function lo(e) {
@@ -375,52 +375,52 @@ function so(e, t, o = {}) {
375
375
  );
376
376
  }
377
377
  function ao(e, t = !0, o) {
378
- lo() ? At(e, o) : t ? e() : Be(e);
378
+ lo() ? At(e, o) : t ? e() : Ze(e);
379
379
  }
380
380
  function Je(e, t = !1) {
381
- function o(d, { flush: h = "sync", deep: T = !1, timeout: A, throwOnTimeout: $ } = {}) {
382
- let I = null;
383
- const N = [new Promise((w) => {
384
- I = te(
381
+ function o(d, { flush: g = "sync", deep: T = !1, timeout: R, throwOnTimeout: k } = {}) {
382
+ let S = null;
383
+ const A = [new Promise((w) => {
384
+ S = te(
385
385
  e,
386
- (R) => {
387
- d(R) !== t && (I ? I() : Be(() => I?.()), w(R));
386
+ (D) => {
387
+ d(D) !== t && (S ? S() : Ze(() => S?.()), w(D));
388
388
  },
389
389
  {
390
- flush: h,
390
+ flush: g,
391
391
  deep: T,
392
392
  immediate: !0
393
393
  }
394
394
  );
395
395
  })];
396
- return A != null && N.push(
397
- St(A, $).then(() => J(e)).finally(() => I?.())
398
- ), Promise.race(N);
396
+ return R != null && A.push(
397
+ St(R, k).then(() => Y(e)).finally(() => S?.())
398
+ ), Promise.race(A);
399
399
  }
400
- function n(d, h) {
401
- if (!Fe(d))
402
- return o((R) => R === d, h);
403
- const { flush: T = "sync", deep: A = !1, timeout: $, throwOnTimeout: I } = h ?? {};
404
- let P = null;
405
- const w = [new Promise((R) => {
406
- P = te(
400
+ function n(d, g) {
401
+ if (!Ke(d))
402
+ return o((D) => D === d, g);
403
+ const { flush: T = "sync", deep: R = !1, timeout: k, throwOnTimeout: S } = g ?? {};
404
+ let N = null;
405
+ const w = [new Promise((D) => {
406
+ N = te(
407
407
  [e, d],
408
- ([B, G]) => {
409
- t !== (B === G) && (P ? P() : Be(() => P?.()), R(B));
408
+ ([j, K]) => {
409
+ t !== (j === K) && (N ? N() : Ze(() => N?.()), D(j));
410
410
  },
411
411
  {
412
412
  flush: T,
413
- deep: A,
413
+ deep: R,
414
414
  immediate: !0
415
415
  }
416
416
  );
417
417
  })];
418
- return $ != null && w.push(
419
- St($, I).then(() => J(e)).finally(() => (P?.(), J(e)))
418
+ return k != null && w.push(
419
+ St(k, S).then(() => Y(e)).finally(() => (N?.(), Y(e)))
420
420
  ), Promise.race(w);
421
421
  }
422
422
  function l(d) {
423
- return o((h) => !!h, d);
423
+ return o((g) => !!g, d);
424
424
  }
425
425
  function s(d) {
426
426
  return n(null, d);
@@ -431,24 +431,24 @@ function Je(e, t = !1) {
431
431
  function i(d) {
432
432
  return o(Number.isNaN, d);
433
433
  }
434
- function r(d, h) {
434
+ function r(d, g) {
435
435
  return o((T) => {
436
- const A = Array.from(T);
437
- return A.includes(d) || A.includes(J(d));
438
- }, h);
436
+ const R = Array.from(T);
437
+ return R.includes(d) || R.includes(Y(d));
438
+ }, g);
439
439
  }
440
440
  function f(d) {
441
- return v(1, d);
441
+ return m(1, d);
442
442
  }
443
- function v(d = 1, h) {
443
+ function m(d = 1, g) {
444
444
  let T = -1;
445
- return o(() => (T += 1, T >= d), h);
445
+ return o(() => (T += 1, T >= d), g);
446
446
  }
447
- return Array.isArray(J(e)) ? {
447
+ return Array.isArray(Y(e)) ? {
448
448
  toMatch: o,
449
449
  toContains: r,
450
450
  changed: f,
451
- changedTimes: v,
451
+ changedTimes: m,
452
452
  get not() {
453
453
  return Je(e, !t);
454
454
  }
@@ -460,7 +460,7 @@ function Je(e, t = !1) {
460
460
  toBeNaN: i,
461
461
  toBeUndefined: p,
462
462
  changed: f,
463
- changedTimes: v,
463
+ changedTimes: m,
464
464
  get not() {
465
465
  return Je(e, !t);
466
466
  }
@@ -481,10 +481,10 @@ function io(e, t, o = {}) {
481
481
  function r() {
482
482
  s.value = !1, i();
483
483
  }
484
- function f(...v) {
484
+ function f(...m) {
485
485
  l && e(), i(), s.value = !0, p = setTimeout(() => {
486
- s.value = !1, p = void 0, e(...v);
487
- }, J(t));
486
+ s.value = !1, p = void 0, e(...m);
487
+ }, Y(t));
488
488
  }
489
489
  return n && (s.value = !0, rt && f()), it(r), {
490
490
  isPending: dn(s),
@@ -497,13 +497,13 @@ function Wt(e = !1, t = {}) {
497
497
  const {
498
498
  truthyValue: o = !0,
499
499
  falsyValue: n = !1
500
- } = t, l = Fe(e), s = me(e);
500
+ } = t, l = Ke(e), s = me(e);
501
501
  function p(i) {
502
502
  if (arguments.length)
503
503
  return s.value = i, s.value;
504
504
  {
505
- const r = J(o);
506
- return s.value = s.value === r ? J(n) : r, s.value;
505
+ const r = Y(o);
506
+ return s.value = s.value === r ? Y(n) : r, s.value;
507
507
  }
508
508
  }
509
509
  return l ? p : [s, p];
@@ -533,37 +533,37 @@ function ro(e, t, o) {
533
533
  }
534
534
  );
535
535
  }
536
- const Me = rt ? window : void 0, Jt = rt ? window.navigator : void 0;
537
- function we(e) {
536
+ const He = rt ? window : void 0, Jt = rt ? window.navigator : void 0;
537
+ function ke(e) {
538
538
  var t;
539
- const o = J(e);
539
+ const o = Y(e);
540
540
  return (t = o?.$el) != null ? t : o;
541
541
  }
542
542
  function ve(...e) {
543
543
  const t = [], o = () => {
544
544
  t.forEach((i) => i()), t.length = 0;
545
- }, n = (i, r, f, v) => (i.addEventListener(r, f, v), () => i.removeEventListener(r, f, v)), l = S(() => {
546
- const i = ze(J(e[0])).filter((r) => r != null);
545
+ }, n = (i, r, f, m) => (i.addEventListener(r, f, m), () => i.removeEventListener(r, f, m)), l = $(() => {
546
+ const i = Be(Y(e[0])).filter((r) => r != null);
547
547
  return i.every((r) => typeof r != "string") ? i : void 0;
548
548
  }), s = ro(
549
549
  () => {
550
550
  var i, r;
551
551
  return [
552
- (r = (i = l.value) == null ? void 0 : i.map((f) => we(f))) != null ? r : [Me].filter((f) => f != null),
553
- ze(J(l.value ? e[1] : e[0])),
554
- ze(a(l.value ? e[2] : e[1])),
552
+ (r = (i = l.value) == null ? void 0 : i.map((f) => ke(f))) != null ? r : [He].filter((f) => f != null),
553
+ Be(Y(l.value ? e[1] : e[0])),
554
+ Be(a(l.value ? e[2] : e[1])),
555
555
  // @ts-expect-error - TypeScript gets the correct types, but somehow still complains
556
- J(l.value ? e[3] : e[2])
556
+ Y(l.value ? e[3] : e[2])
557
557
  ];
558
558
  },
559
- ([i, r, f, v]) => {
559
+ ([i, r, f, m]) => {
560
560
  if (o(), !i?.length || !r?.length || !f?.length)
561
561
  return;
562
- const d = to(v) ? { ...v } : v;
562
+ const d = to(m) ? { ...m } : m;
563
563
  t.push(
564
564
  ...i.flatMap(
565
- (h) => r.flatMap(
566
- (T) => f.map((A) => n(h, T, A, d))
565
+ (g) => r.flatMap(
566
+ (T) => f.map((R) => n(g, T, R, d))
567
567
  )
568
568
  )
569
569
  );
@@ -584,22 +584,22 @@ function uo() {
584
584
  // @__NO_SIDE_EFFECTS__
585
585
  function ut(e) {
586
586
  const t = /* @__PURE__ */ uo();
587
- return S(() => (t.value, !!e()));
587
+ return $(() => (t.value, !!e()));
588
588
  }
589
589
  function co(e) {
590
590
  return typeof e == "function" ? e : typeof e == "string" ? (t) => t.key === e : Array.isArray(e) ? (t) => e.includes(t.key) : () => !0;
591
591
  }
592
- function Ne(...e) {
592
+ function Ae(...e) {
593
593
  let t, o, n = {};
594
594
  e.length === 3 ? (t = e[0], o = e[1], n = e[2]) : e.length === 2 ? typeof e[1] == "object" ? (t = !0, o = e[0], n = e[1]) : (t = e[0], o = e[1]) : (t = !0, o = e[0]);
595
595
  const {
596
- target: l = Me,
596
+ target: l = He,
597
597
  eventName: s = "keydown",
598
598
  passive: p = !1,
599
599
  dedupe: i = !1
600
600
  } = n, r = co(t);
601
- return ve(l, s, (v) => {
602
- v.repeat && J(i) || r(v) && o(v);
601
+ return ve(l, s, (m) => {
602
+ m.repeat && Y(i) || r(m) && o(m);
603
603
  }, p);
604
604
  }
605
605
  // @__NO_SIDE_EFFECTS__
@@ -608,8 +608,8 @@ function Et(e, t = {}) {
608
608
  controls: o = !1,
609
609
  navigator: n = Jt
610
610
  } = t, l = /* @__PURE__ */ ut(() => n && "permissions" in n), s = me(), p = typeof e == "string" ? { name: e } : e, i = me(), r = () => {
611
- var v, d;
612
- i.value = (d = (v = s.value) == null ? void 0 : v.state) != null ? d : "prompt";
611
+ var m, d;
612
+ i.value = (d = (m = s.value) == null ? void 0 : m.state) != null ? d : "prompt";
613
613
  };
614
614
  ve(s, "change", r, { passive: !0 });
615
615
  const f = oo(async () => {
@@ -639,116 +639,116 @@ function po(e = {}) {
639
639
  source: n,
640
640
  copiedDuring: l = 1500,
641
641
  legacy: s = !1
642
- } = e, p = /* @__PURE__ */ ut(() => t && "clipboard" in t), i = /* @__PURE__ */ Et("clipboard-read"), r = /* @__PURE__ */ Et("clipboard-write"), f = S(() => p.value || s), v = me(""), d = me(!1), h = io(() => d.value = !1, l, { immediate: !1 });
642
+ } = e, p = /* @__PURE__ */ ut(() => t && "clipboard" in t), i = /* @__PURE__ */ Et("clipboard-read"), r = /* @__PURE__ */ Et("clipboard-write"), f = $(() => p.value || s), m = me(""), d = me(!1), g = io(() => d.value = !1, l, { immediate: !1 });
643
643
  async function T() {
644
- let N = !(p.value && P(i.value));
645
- if (!N)
644
+ let A = !(p.value && N(i.value));
645
+ if (!A)
646
646
  try {
647
- v.value = await t.clipboard.readText();
647
+ m.value = await t.clipboard.readText();
648
648
  } catch {
649
- N = !0;
649
+ A = !0;
650
650
  }
651
- N && (v.value = I());
651
+ A && (m.value = S());
652
652
  }
653
653
  f.value && o && ve(["copy", "cut"], T, { passive: !0 });
654
- async function A(N = J(n)) {
655
- if (f.value && N != null) {
656
- let w = !(p.value && P(r.value));
654
+ async function R(A = Y(n)) {
655
+ if (f.value && A != null) {
656
+ let w = !(p.value && N(r.value));
657
657
  if (!w)
658
658
  try {
659
- await t.clipboard.writeText(N);
659
+ await t.clipboard.writeText(A);
660
660
  } catch {
661
661
  w = !0;
662
662
  }
663
- w && $(N), v.value = N, d.value = !0, h.start();
663
+ w && k(A), m.value = A, d.value = !0, g.start();
664
664
  }
665
665
  }
666
- function $(N) {
666
+ function k(A) {
667
667
  const w = document.createElement("textarea");
668
- w.value = N ?? "", w.style.position = "absolute", w.style.opacity = "0", document.body.appendChild(w), w.select(), document.execCommand("copy"), w.remove();
668
+ w.value = A ?? "", w.style.position = "absolute", w.style.opacity = "0", document.body.appendChild(w), w.select(), document.execCommand("copy"), w.remove();
669
669
  }
670
- function I() {
671
- var N, w, R;
672
- return (R = (w = (N = document?.getSelection) == null ? void 0 : N.call(document)) == null ? void 0 : w.toString()) != null ? R : "";
670
+ function S() {
671
+ var A, w, D;
672
+ return (D = (w = (A = document?.getSelection) == null ? void 0 : A.call(document)) == null ? void 0 : w.toString()) != null ? D : "";
673
673
  }
674
- function P(N) {
675
- return N === "granted" || N === "prompt";
674
+ function N(A) {
675
+ return A === "granted" || A === "prompt";
676
676
  }
677
677
  return {
678
678
  isSupported: f,
679
- text: v,
679
+ text: m,
680
680
  copied: d,
681
- copy: A
681
+ copy: R
682
682
  };
683
683
  }
684
684
  function fo(e) {
685
685
  return JSON.parse(JSON.stringify(e));
686
686
  }
687
687
  function vo(e, t, o = {}) {
688
- const { window: n = Me, ...l } = o;
688
+ const { window: n = He, ...l } = o;
689
689
  let s;
690
690
  const p = /* @__PURE__ */ ut(() => n && "ResizeObserver" in n), i = () => {
691
691
  s && (s.disconnect(), s = void 0);
692
- }, r = S(() => {
693
- const d = J(e);
694
- return Array.isArray(d) ? d.map((h) => we(h)) : [we(d)];
692
+ }, r = $(() => {
693
+ const d = Y(e);
694
+ return Array.isArray(d) ? d.map((g) => ke(g)) : [ke(d)];
695
695
  }), f = te(
696
696
  r,
697
697
  (d) => {
698
698
  if (i(), p.value && n) {
699
699
  s = new ResizeObserver(t);
700
- for (const h of d)
701
- h && s.observe(h, l);
700
+ for (const g of d)
701
+ g && s.observe(g, l);
702
702
  }
703
703
  },
704
704
  { immediate: !0, flush: "post" }
705
- ), v = () => {
705
+ ), m = () => {
706
706
  i(), f();
707
707
  };
708
- return it(v), {
708
+ return it(m), {
709
709
  isSupported: p,
710
- stop: v
710
+ stop: m
711
711
  };
712
712
  }
713
713
  function mo(e, t = { width: 0, height: 0 }, o = {}) {
714
- const { window: n = Me, box: l = "content-box" } = o, s = S(() => {
715
- var d, h;
716
- return (h = (d = we(e)) == null ? void 0 : d.namespaceURI) == null ? void 0 : h.includes("svg");
714
+ const { window: n = He, box: l = "content-box" } = o, s = $(() => {
715
+ var d, g;
716
+ return (g = (d = ke(e)) == null ? void 0 : d.namespaceURI) == null ? void 0 : g.includes("svg");
717
717
  }), p = me(t.width), i = me(t.height), { stop: r } = vo(
718
718
  e,
719
719
  ([d]) => {
720
- const h = l === "border-box" ? d.borderBoxSize : l === "content-box" ? d.contentBoxSize : d.devicePixelContentBoxSize;
720
+ const g = l === "border-box" ? d.borderBoxSize : l === "content-box" ? d.contentBoxSize : d.devicePixelContentBoxSize;
721
721
  if (n && s.value) {
722
- const T = we(e);
722
+ const T = ke(e);
723
723
  if (T) {
724
- const A = T.getBoundingClientRect();
725
- p.value = A.width, i.value = A.height;
724
+ const R = T.getBoundingClientRect();
725
+ p.value = R.width, i.value = R.height;
726
726
  }
727
- } else if (h) {
728
- const T = ze(h);
729
- p.value = T.reduce((A, { inlineSize: $ }) => A + $, 0), i.value = T.reduce((A, { blockSize: $ }) => A + $, 0);
727
+ } else if (g) {
728
+ const T = Be(g);
729
+ p.value = T.reduce((R, { inlineSize: k }) => R + k, 0), i.value = T.reduce((R, { blockSize: k }) => R + k, 0);
730
730
  } else
731
731
  p.value = d.contentRect.width, i.value = d.contentRect.height;
732
732
  },
733
733
  o
734
734
  );
735
735
  ao(() => {
736
- const d = we(e);
736
+ const d = ke(e);
737
737
  d && (p.value = "offsetWidth" in d ? d.offsetWidth : t.width, i.value = "offsetHeight" in d ? d.offsetHeight : t.height);
738
738
  });
739
739
  const f = te(
740
- () => we(e),
740
+ () => ke(e),
741
741
  (d) => {
742
742
  p.value = d ? t.width : 0, i.value = d ? t.height : 0;
743
743
  }
744
744
  );
745
- function v() {
745
+ function m() {
746
746
  r(), f();
747
747
  }
748
748
  return {
749
749
  width: p,
750
750
  height: i,
751
- stop: v
751
+ stop: m
752
752
  };
753
753
  }
754
754
  const ho = {
@@ -764,7 +764,7 @@ const ho = {
764
764
  function go(e = {}) {
765
765
  const {
766
766
  reactive: t = !1,
767
- target: o = Me,
767
+ target: o = He,
768
768
  aliasMap: n = ho,
769
769
  passive: l = !0,
770
770
  onEventFired: s = qe
@@ -773,50 +773,50 @@ function go(e = {}) {
773
773
  return {};
774
774
  },
775
775
  current: p
776
- }, r = t ? xt(i) : i, f = /* @__PURE__ */ new Set(), v = /* @__PURE__ */ new Set(), d = /* @__PURE__ */ new Set();
777
- function h(I, P) {
778
- I in r && (t ? r[I] = P : r[I].value = P);
776
+ }, r = t ? xt(i) : i, f = /* @__PURE__ */ new Set(), m = /* @__PURE__ */ new Set(), d = /* @__PURE__ */ new Set();
777
+ function g(S, N) {
778
+ S in r && (t ? r[S] = N : r[S].value = N);
779
779
  }
780
780
  function T() {
781
781
  p.clear();
782
- for (const I of d)
783
- h(I, !1);
782
+ for (const S of d)
783
+ g(S, !1);
784
784
  }
785
- function A(I, P) {
786
- var N, w;
787
- const R = (N = I.key) == null ? void 0 : N.toLowerCase(), G = [(w = I.code) == null ? void 0 : w.toLowerCase(), R].filter(Boolean);
788
- R && (P ? p.add(R) : p.delete(R));
789
- for (const W of G)
790
- d.add(W), h(W, P);
791
- if (R === "shift" && !P) {
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") && P && [...p, ...G].forEach((W) => v.add(W));
797
- R === "meta" && !P ? (f.forEach((W) => {
798
- p.delete(W), h(W, !1);
799
- }), f.clear()) : typeof I.getModifierState == "function" && I.getModifierState("Meta") && P && [...p, ...G].forEach((W) => f.add(W));
785
+ function R(S, N) {
786
+ var A, w;
787
+ const D = (A = S.key) == null ? void 0 : A.toLowerCase(), K = [(w = S.code) == null ? void 0 : w.toLowerCase(), D].filter(Boolean);
788
+ D && (N ? p.add(D) : p.delete(D));
789
+ for (const G of K)
790
+ d.add(G), g(G, N);
791
+ if (D === "shift" && !N) {
792
+ const G = Array.from(m), O = G.indexOf("shift");
793
+ G.forEach((_, H) => {
794
+ H >= O && (p.delete(_), g(_, !1));
795
+ }), m.clear();
796
+ } else typeof S.getModifierState == "function" && S.getModifierState("Shift") && N && [...p, ...K].forEach((G) => m.add(G));
797
+ D === "meta" && !N ? (f.forEach((G) => {
798
+ p.delete(G), g(G, !1);
799
+ }), f.clear()) : typeof S.getModifierState == "function" && S.getModifierState("Meta") && N && [...p, ...K].forEach((G) => f.add(G));
800
800
  }
801
- ve(o, "keydown", (I) => (A(I, !0), s(I)), { passive: l }), ve(o, "keyup", (I) => (A(I, !1), s(I)), { passive: l }), ve("blur", T, { passive: l }), ve("focus", T, { passive: l });
802
- const $ = new Proxy(
801
+ ve(o, "keydown", (S) => (R(S, !0), s(S)), { passive: l }), ve(o, "keyup", (S) => (R(S, !1), s(S)), { passive: l }), ve("blur", T, { passive: l }), ve("focus", T, { passive: l });
802
+ const k = new Proxy(
803
803
  r,
804
804
  {
805
- get(I, P, N) {
806
- if (typeof P != "string")
807
- return Reflect.get(I, P, N);
808
- if (P = P.toLowerCase(), P in n && (P = n[P]), !(P in r))
809
- if (/[+_-]/.test(P)) {
810
- const R = P.split(/[+_-]/g).map((B) => B.trim());
811
- r[P] = S(() => R.map((B) => J($[B])).every(Boolean));
805
+ get(S, N, A) {
806
+ if (typeof N != "string")
807
+ return Reflect.get(S, N, A);
808
+ if (N = N.toLowerCase(), N in n && (N = n[N]), !(N in r))
809
+ if (/[+_-]/.test(N)) {
810
+ const D = N.split(/[+_-]/g).map((j) => j.trim());
811
+ r[N] = $(() => D.map((j) => Y(k[j])).every(Boolean));
812
812
  } else
813
- r[P] = me(!1);
814
- const w = Reflect.get(I, P, N);
815
- return t ? J(w) : w;
813
+ r[N] = me(!1);
814
+ const w = Reflect.get(S, N, A);
815
+ return t ? Y(w) : w;
816
816
  }
817
817
  }
818
818
  );
819
- return $;
819
+ return k;
820
820
  }
821
821
  // @__NO_SIDE_EFFECTS__
822
822
  function Co(e, t, o, n = {}) {
@@ -825,37 +825,37 @@ function Co(e, t, o, n = {}) {
825
825
  clone: i = !1,
826
826
  passive: r = !1,
827
827
  eventName: f,
828
- deep: v = !1,
828
+ deep: m = !1,
829
829
  defaultValue: d,
830
- shouldEmit: h
831
- } = n, T = Qe(), A = 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:${t.toString()}`;
834
- const I = (w) => i ? typeof i == "function" ? i(w) : fo(w) : w, P = () => Qn(e[t]) ? I(e[t]) : d, N = (w) => {
835
- h ? h(w) && A($, w) : A($, w);
830
+ shouldEmit: g
831
+ } = n, T = Qe(), R = o || T?.emit || ((l = T?.$emit) == null ? void 0 : l.bind(T)) || ((p = (s = T?.proxy) == null ? void 0 : s.$emit) == null ? void 0 : p.bind(T?.proxy));
832
+ let k = f;
833
+ k = k || `update:${t.toString()}`;
834
+ const S = (w) => i ? typeof i == "function" ? i(w) : fo(w) : w, N = () => Qn(e[t]) ? S(e[t]) : d, A = (w) => {
835
+ g ? g(w) && R(k, w) : R(k, w);
836
836
  };
837
837
  if (r) {
838
- const w = P(), R = E(w);
839
- let B = !1;
838
+ const w = N(), D = E(w);
839
+ let j = !1;
840
840
  return te(
841
841
  () => e[t],
842
- (G) => {
843
- B || (B = !0, R.value = I(G), Be(() => B = !1));
842
+ (K) => {
843
+ j || (j = !0, D.value = S(K), Ze(() => j = !1));
844
844
  }
845
845
  ), te(
846
- R,
847
- (G) => {
848
- !B && (G !== e[t] || v) && N(G);
846
+ D,
847
+ (K) => {
848
+ !j && (K !== e[t] || m) && A(K);
849
849
  },
850
- { deep: v }
851
- ), R;
850
+ { deep: m }
851
+ ), D;
852
852
  } else
853
- return S({
853
+ return $({
854
854
  get() {
855
- return P();
855
+ return N();
856
856
  },
857
857
  set(w) {
858
- N(w);
858
+ A(w);
859
859
  }
860
860
  });
861
861
  }
@@ -875,7 +875,7 @@ function xo(e, t = {}) {
875
875
  isHovering: s
876
876
  };
877
877
  }
878
- const yo = { class: "flex pl5px" }, bo = { class: "w160px py5px" }, _o = /* @__PURE__ */ F({
878
+ const yo = { class: "flex pl5px" }, bo = { class: "w160px py5px" }, _o = /* @__PURE__ */ Z({
879
879
  __name: "StateFieldEditor",
880
880
  props: {
881
881
  data: {},
@@ -886,13 +886,13 @@ const yo = { class: "flex pl5px" }, bo = { class: "w160px py5px" }, _o = /* @__P
886
886
  },
887
887
  emits: ["enableEditInput", "addNewProp"],
888
888
  setup(e) {
889
- const t = e, o = st(), { copy: n, isSupported: l } = po(), s = E(!1), p = S(() => Pt(t.data.value)), i = S(() => p.value.value), r = S(() => p.value.customType), f = S(() => i.value === null ? "null" : typeof i.value), v = {
889
+ const t = e, o = st(), { copy: n, isSupported: l } = po(), s = E(!1), p = $(() => Pt(t.data.value)), i = $(() => p.value.value), r = $(() => p.value.customType), f = $(() => i.value === null ? "null" : typeof i.value), m = {
890
890
  flat: !0,
891
891
  size: "mini"
892
- }, d = S(() => ({
892
+ }, d = $(() => ({
893
893
  "opacity-0": !t.hovering
894
894
  }));
895
- async function h(A, $ = !1) {
895
+ async function g(R, k = !1) {
896
896
  await V.value.editInspectorState({
897
897
  path: t.data.path || [t.data.key],
898
898
  inspectorId: o.value.inspectorId,
@@ -900,87 +900,87 @@ const yo = { class: "flex pl5px" }, bo = { class: "w160px py5px" }, _o = /* @__P
900
900
  nodeId: o.value.nodeId,
901
901
  state: {
902
902
  newKey: null,
903
- value: Rt(A),
903
+ value: Rt(R),
904
904
  type: f.value,
905
- remove: $
905
+ remove: k
906
906
  }
907
907
  }), await V.value.sendInspectorState(o.value.inspectorId);
908
908
  }
909
- function T(A, $) {
910
- const I = typeof A == "number" ? A + $ : BigInt(A) + BigInt($);
911
- h(I);
909
+ function T(R, k) {
910
+ const S = typeof R == "number" ? R + k : BigInt(R) + BigInt(k);
911
+ g(S);
912
912
  }
913
- return (A, $) => (c(), m("div", yo, [
914
- !t.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, {
913
+ return (R, k) => (c(), h("div", yo, [
914
+ !t.disableEdit && e.data.editable ? (c(), h(se, { key: 0 }, [
915
+ f.value === "string" || f.value === "number" || f.value === "object" || f.value === "null" ? (c(), h(se, { key: 0 }, [
916
+ q((c(), B(a(fe), Se(m, {
917
917
  class: d.value,
918
- onClick: $[0] || ($[0] = he((I) => A.$emit("enableEditInput", f.value), ["stop"]))
918
+ onClick: k[0] || (k[0] = he((S) => R.$emit("enableEditInput", f.value), ["stop"]))
919
919
  }), {
920
920
  icon: M(() => [
921
- b(a(ue), { icon: "i-material-symbols-edit-rounded" })
921
+ y(a(ue), { icon: "i-material-symbols-edit-rounded" })
922
922
  ]),
923
923
  _: 1
924
924
  }, 16, ["class"])), [
925
- [a(Y), {
925
+ [a(J), {
926
926
  content: "Edit value"
927
927
  }]
928
928
  ]),
929
- f.value === "object" && e.showAddIfNeeded ? q((c(), z(a(fe), Ie({ key: 0 }, v, {
929
+ f.value === "object" && e.showAddIfNeeded ? q((c(), B(a(fe), Se({ key: 0 }, m, {
930
930
  class: d.value,
931
- onClick: $[1] || ($[1] = he((I) => A.$emit("addNewProp", Array.isArray(i.value) ? "array" : "object"), ["stop"]))
931
+ onClick: k[1] || (k[1] = he((S) => R.$emit("addNewProp", Array.isArray(i.value) ? "array" : "object"), ["stop"]))
932
932
  }), {
933
933
  icon: M(() => [
934
- b(a(ue), { icon: "i-material-symbols-add-circle-rounded" })
934
+ y(a(ue), { icon: "i-material-symbols-add-circle-rounded" })
935
935
  ]),
936
936
  _: 1
937
937
  }, 16, ["class"])), [
938
- [a(Y), {
938
+ [a(J), {
939
939
  content: "Add new value"
940
940
  }]
941
- ]) : j("", !0)
942
- ], 64)) : j("", !0),
943
- f.value === "boolean" ? (c(), z(a(fe), Ie({ key: 1 }, v, {
941
+ ]) : U("", !0)
942
+ ], 64)) : U("", !0),
943
+ f.value === "boolean" ? (c(), B(a(fe), Se({ key: 1 }, m, {
944
944
  class: d.value,
945
- onClick: $[2] || ($[2] = (I) => h(!i.value))
945
+ onClick: k[2] || (k[2] = (S) => g(!i.value))
946
946
  }), {
947
947
  icon: M(() => [
948
- b(a(ue), {
948
+ y(a(ue), {
949
949
  icon: i.value ? "i-material-symbols-check-box-sharp" : "i-material-symbols-check-box-outline-blank-sharp"
950
950
  }, null, 8, ["icon"])
951
951
  ]),
952
952
  _: 1
953
- }, 16, ["class"])) : f.value === "number" || r.value === "bigint" ? (c(), m(le, { key: 2 }, [
954
- b(a(fe), Ie(v, {
953
+ }, 16, ["class"])) : f.value === "number" || r.value === "bigint" ? (c(), h(se, { key: 2 }, [
954
+ y(a(fe), Se(m, {
955
955
  class: d.value,
956
- onClick: $[3] || ($[3] = he((I) => T(i.value, 1), ["stop"]))
956
+ onClick: k[3] || (k[3] = he((S) => T(i.value, 1), ["stop"]))
957
957
  }), {
958
958
  icon: M(() => [
959
- b(a(ue), { icon: "i-carbon-add" })
959
+ y(a(ue), { icon: "i-carbon-add" })
960
960
  ]),
961
961
  _: 1
962
962
  }, 16, ["class"]),
963
- b(a(fe), Ie(v, {
963
+ y(a(fe), Se(m, {
964
964
  class: d.value,
965
- onClick: $[4] || ($[4] = he((I) => T(i.value, -1), ["stop"]))
965
+ onClick: k[4] || (k[4] = he((S) => T(i.value, -1), ["stop"]))
966
966
  }), {
967
967
  icon: M(() => [
968
- b(a(ue), { icon: "i-carbon-subtract" })
968
+ y(a(ue), { icon: "i-carbon-subtract" })
969
969
  ]),
970
970
  _: 1
971
971
  }, 16, ["class"])
972
- ], 64)) : j("", !0)
973
- ], 64)) : j("", !0),
974
- !t.disableEdit && e.depth > 0 && e.data.editable ? (c(), z(a(fe), Ie({ key: 1 }, v, {
972
+ ], 64)) : U("", !0)
973
+ ], 64)) : U("", !0),
974
+ !t.disableEdit && e.depth > 0 && e.data.editable ? (c(), B(a(fe), Se({ key: 1 }, m, {
975
975
  class: d.value,
976
- onClick: $[5] || ($[5] = he((I) => h(i.value, !0), ["stop"]))
976
+ onClick: k[5] || (k[5] = he((S) => g(i.value, !0), ["stop"]))
977
977
  }), {
978
978
  icon: M(() => [
979
- b(a(ue), { icon: "i-material-symbols-delete-rounded" })
979
+ y(a(ue), { icon: "i-material-symbols-delete-rounded" })
980
980
  ]),
981
981
  _: 1
982
- }, 16, ["class"])) : j("", !0),
983
- b(a(hn), {
982
+ }, 16, ["class"])) : U("", !0),
983
+ y(a(hn), {
984
984
  class: ie({
985
985
  "opacity-0": !e.hovering && !s.value
986
986
  }),
@@ -989,46 +989,46 @@ const yo = { class: "flex pl5px" }, bo = { class: "w160px py5px" }, _o = /* @__P
989
989
  size: "mini"
990
990
  },
991
991
  disabled: !a(l),
992
- "onUpdate:visible": $[8] || ($[8] = (I) => s.value = I)
992
+ "onUpdate:visible": k[8] || (k[8] = (S) => s.value = S)
993
993
  }, {
994
994
  popper: M(() => [
995
995
  u("div", bo, [
996
- b(a(yt), {
997
- onClick: $[6] || ($[6] = (I) => a(n)(typeof i.value == "object" ? JSON.stringify(i.value) : i.value.toString()))
996
+ y(a(yt), {
997
+ onClick: k[6] || (k[6] = (S) => a(n)(typeof i.value == "object" ? JSON.stringify(i.value) : i.value.toString()))
998
998
  }, {
999
999
  icon: M(() => [
1000
- b(a(ue), {
1000
+ y(a(ue), {
1001
1001
  icon: "i-material-symbols-copy-all-rounded",
1002
1002
  class: "mt4px"
1003
1003
  }),
1004
- $[9] || ($[9] = Q(" Copy Value ", -1))
1004
+ k[9] || (k[9] = Q(" Copy Value ", -1))
1005
1005
  ]),
1006
1006
  _: 1
1007
1007
  }),
1008
- b(a(yt), {
1009
- onClick: $[7] || ($[7] = () => {
1008
+ y(a(yt), {
1009
+ onClick: k[7] || (k[7] = () => {
1010
1010
  a(n)(e.data.key);
1011
1011
  })
1012
1012
  }, {
1013
1013
  icon: M(() => [
1014
- b(a(ue), {
1014
+ y(a(ue), {
1015
1015
  icon: "i-material-symbols-copy-all-rounded",
1016
1016
  class: "mt4px"
1017
1017
  }),
1018
- $[10] || ($[10] = Q(" Copy Path ", -1))
1018
+ k[10] || (k[10] = Q(" Copy Path ", -1))
1019
1019
  ]),
1020
1020
  _: 1
1021
1021
  })
1022
1022
  ])
1023
1023
  ]),
1024
1024
  "button-icon": M(() => [
1025
- b(a(ue), { icon: "i-material-symbols:more-vert" })
1025
+ y(a(ue), { icon: "i-material-symbols:more-vert" })
1026
1026
  ]),
1027
1027
  _: 1
1028
1028
  }, 8, ["class", "disabled"])
1029
1029
  ]));
1030
1030
  }
1031
- }), wo = { class: "flex-inline items-center gap4px" }, We = /* @__PURE__ */ F({
1031
+ }), wo = { class: "flex-inline items-center gap4px" }, We = /* @__PURE__ */ Z({
1032
1032
  __name: "StateFieldInputEditor",
1033
1033
  props: {
1034
1034
  modelValue: {},
@@ -1038,14 +1038,14 @@ const yo = { class: "flex pl5px" }, bo = { class: "w160px py5px" }, _o = /* @__P
1038
1038
  },
1039
1039
  emits: ["cancel", "submit", "update:modelValue"],
1040
1040
  setup(e, { emit: t }) {
1041
- const o = e, n = t, l = S(() => o.customType === "date" ? "datetime-local" : ""), { escape: s, enter: p } = go();
1041
+ const o = e, n = t, l = $(() => o.customType === "date" ? "datetime-local" : ""), { escape: s, enter: p } = go();
1042
1042
  et(() => {
1043
1043
  s.value ? n("cancel") : p.value && n("submit");
1044
1044
  });
1045
1045
  const i = /* @__PURE__ */ Co(o, "modelValue", n);
1046
1046
  function r(d) {
1047
1047
  try {
1048
- return je(d, o.customType), !0;
1048
+ return ze(d, o.customType), !0;
1049
1049
  } catch {
1050
1050
  return !1;
1051
1051
  }
@@ -1053,58 +1053,58 @@ const yo = { class: "flex pl5px" }, bo = { class: "w160px py5px" }, _o = /* @__P
1053
1053
  const f = E(!1);
1054
1054
  return te(i, En(() => {
1055
1055
  f.value = !r(i.value);
1056
- }, 300)), (d, h) => (c(), m("span", wo, [
1057
- b(a(Ce), {
1056
+ }, 300)), (d, g) => (c(), h("span", wo, [
1057
+ y(a(Ce), {
1058
1058
  modelValue: a(i),
1059
- "onUpdate:modelValue": h[0] || (h[0] = (T) => Fe(i) ? i.value = T : null),
1059
+ "onUpdate:modelValue": g[0] || (g[0] = (T) => Ke(i) ? i.value = T : null),
1060
1060
  type: l.value,
1061
1061
  variant: f.value ? "warning" : "normal",
1062
1062
  class: ie(["h25px px4px", e.customType === "date" ? "w240px" : "w120px"]),
1063
1063
  "auto-focus": e.autoFocus,
1064
- onClick: h[1] || (h[1] = he(() => {
1064
+ onClick: g[1] || (g[1] = he(() => {
1065
1065
  }, ["stop"]))
1066
1066
  }, null, 8, ["modelValue", "type", "variant", "class", "auto-focus"]),
1067
- e.showActions ? (c(), m(le, { key: 0 }, [
1068
- q((c(), z(a(fe), {
1067
+ e.showActions ? (c(), h(se, { key: 0 }, [
1068
+ q((c(), B(a(fe), {
1069
1069
  size: "mini",
1070
1070
  flat: "",
1071
1071
  class: "p2px!",
1072
- onClick: h[2] || (h[2] = he((T) => d.$emit("cancel"), ["stop"]))
1072
+ onClick: g[2] || (g[2] = he((T) => d.$emit("cancel"), ["stop"]))
1073
1073
  }, {
1074
1074
  icon: M(() => [
1075
- b(a(ue), { icon: "i-material-symbols-cancel" })
1075
+ y(a(ue), { icon: "i-material-symbols-cancel" })
1076
1076
  ]),
1077
1077
  _: 1
1078
1078
  })), [
1079
- [a(Y), {
1079
+ [a(J), {
1080
1080
  content: "Esc to cancel"
1081
1081
  }]
1082
1082
  ]),
1083
- f.value ? q((c(), z(a(ue), {
1083
+ f.value ? q((c(), B(a(ue), {
1084
1084
  key: 1,
1085
1085
  icon: "i-material-symbols-warning",
1086
1086
  class: "color-warning-500 dark:color-warning-300"
1087
1087
  }, null, 512)), [
1088
- [a(Y), {
1088
+ [a(J), {
1089
1089
  content: "Invalid value"
1090
1090
  }]
1091
- ]) : q((c(), z(a(fe), {
1091
+ ]) : q((c(), B(a(fe), {
1092
1092
  key: 0,
1093
1093
  size: "mini",
1094
1094
  flat: "",
1095
1095
  class: "p2px!",
1096
- onClick: h[3] || (h[3] = he((T) => d.$emit("submit"), ["stop"]))
1096
+ onClick: g[3] || (g[3] = he((T) => d.$emit("submit"), ["stop"]))
1097
1097
  }, {
1098
1098
  icon: M(() => [
1099
- b(a(ue), { icon: "i-material-symbols-save" })
1099
+ y(a(ue), { icon: "i-material-symbols-save" })
1100
1100
  ]),
1101
1101
  _: 1
1102
1102
  })), [
1103
- [a(Y), {
1103
+ [a(J), {
1104
1104
  content: "Enter to submit change"
1105
1105
  }]
1106
1106
  ])
1107
- ], 64)) : j("", !0)
1107
+ ], 64)) : U("", !0)
1108
1108
  ]));
1109
1109
  }
1110
1110
  }), ko = {
@@ -1120,7 +1120,7 @@ const yo = { class: "flex pl5px" }, bo = { class: "w160px py5px" }, _o = /* @__P
1120
1120
  "text-ellipsis": "",
1121
1121
  "whitespace-nowrap": "",
1122
1122
  "state-key": ""
1123
- }, Vt = 30, Eo = /* @__PURE__ */ F({
1123
+ }, Vt = 30, Eo = /* @__PURE__ */ Z({
1124
1124
  __name: "StateFieldViewer",
1125
1125
  props: {
1126
1126
  data: {},
@@ -1129,166 +1129,179 @@ const yo = { class: "flex pl5px" }, bo = { class: "w160px py5px" }, _o = /* @__P
1129
1129
  expandedStateId: {}
1130
1130
  },
1131
1131
  setup(e) {
1132
- const t = e, o = E(Vt), n = S(() => In(t.data.value, !1, {
1132
+ const t = e, o = E(Vt), n = $(() => In(t.data.value, !1, {
1133
1133
  customClass: {
1134
1134
  string: "max-w-120 truncate"
1135
1135
  }
1136
- })), l = S(() => bt(t.data.value)), s = S(() => Pt(t.data.value)), { expanded: p, toggleExpanded: i } = at(t.expandedStateId ?? ""), r = S(() => l.value === "custom" ? `${t.data.value._custom?.type ?? "string"}-custom-state` : "unknown-state-type"), f = S(() => {
1137
- const { value: H } = s.value;
1138
- return _t(H) ? H.length : wt(H) ? Object.keys(H).length : 0;
1139
- }), v = S(() => t.data.path || [t.data.key]), d = S(() => v.value[v.value.length - 1]), h = S(() => {
1140
- const H = ["Reactive"], k = t.data.value?._custom?.stateTypeName || t.data?.stateTypeName;
1141
- if (H.includes(k))
1142
- return k;
1136
+ })), l = $(() => bt(t.data.value)), s = $(() => Pt(t.data.value)), { expanded: p, toggleExpanded: i } = at(t.expandedStateId ?? ""), r = $(() => l.value === "custom" ? `${t.data.value._custom?.type ?? "string"}-custom-state` : "unknown-state-type"), f = $(() => {
1137
+ const { value: I } = s.value;
1138
+ return _t(I) ? I.length : wt(I) ? Object.keys(I).length : 0;
1139
+ }), m = $(() => t.data.path || [t.data.key]), d = $(() => m.value[m.value.length - 1]), g = $(() => {
1140
+ const I = ["Reactive"], v = t.data.value?._custom?.stateTypeName || t.data?.stateTypeName;
1141
+ if (I.includes(v))
1142
+ return v;
1143
1143
  if (t.data.value?.fields?.abstract)
1144
1144
  return "";
1145
1145
  {
1146
- const g = t.data.value?._custom?.type, y = l.value === "custom" && !g ? `"${n.value}"` : n.value === "" ? '""' : n.value, D = l.value === "custom" && g === "ref" ? bt(y) : l.value, Z = l.value === "string" ? "select-text" : "", ae = `<span title="${l.value === "string" ? $n(t.data.value) : ""}" class="${D}-state-type flex whitespace-nowrap ${Z}">${y}</span>`;
1147
- return k ? `${ae} <span class="text-gray-500">(${k})</span>` : ae;
1146
+ const C = t.data.value?._custom?.type, P = l.value === "custom" && !C ? `"${n.value}"` : n.value === "" ? '""' : n.value, z = l.value === "custom" && C === "ref" ? bt(P) : l.value, oe = l.value === "string" ? "select-text" : "", we = `<span title="${l.value === "string" ? $n(t.data.value) : ""}" class="${z}-state-type flex whitespace-nowrap ${oe}">${P}</span>`;
1147
+ return v ? `${we} <span class="text-gray-500">(${v})</span>` : we;
1148
1148
  }
1149
- }), T = S(() => {
1150
- const { value: H, inherit: k, customType: g } = s.value, y = g === "set";
1151
- let D = [];
1152
- return _t(H) ? H.slice(0, o.value).map((ae, Ve) => ({
1153
- key: Ve.toString(),
1154
- path: [...v.value, Ve.toString()],
1155
- value: ae,
1156
- ...k,
1157
- editable: t.data.editable && !y,
1149
+ }), T = $(() => {
1150
+ const I = {
1151
+ content: "",
1152
+ disabled: !0,
1153
+ html: !0
1154
+ };
1155
+ if (l.value === "custom") {
1156
+ const v = t.data.value?._custom?.tooltipText;
1157
+ v && (I.content = v, I.disabled = !1);
1158
+ }
1159
+ return I;
1160
+ }), R = $(() => {
1161
+ const { value: I, inherit: v, customType: C } = s.value, P = C === "set";
1162
+ let z = [];
1163
+ return _t(I) ? I.slice(0, o.value).map((we, $e) => ({
1164
+ key: $e.toString(),
1165
+ path: [...m.value, $e.toString()],
1166
+ value: we,
1167
+ ...v,
1168
+ editable: t.data.editable && !P,
1158
1169
  creating: !1
1159
- })) : (wt(H) && (D = Object.keys(H).slice(0, o.value).map((Z) => ({
1160
- key: Z,
1161
- path: [...v.value, Z],
1162
- value: H[Z],
1163
- ...k,
1164
- editable: t.data.editable && !y,
1170
+ })) : (wt(I) && (z = Object.keys(I).slice(0, o.value).map((oe) => ({
1171
+ key: oe,
1172
+ path: [...m.value, oe],
1173
+ value: I[oe],
1174
+ ...v,
1175
+ editable: t.data.editable && !P,
1165
1176
  creating: !1
1166
- })), l.value !== "custom" && (D = Mt(D))), D === t.data.value ? [] : D);
1167
- }), A = S(() => T.value.length > 0), $ = E(), I = st(), { isHovering: P } = xo(() => $.value), { editingType: N, editing: w, editingText: R, toggleEditing: B, nodeId: G } = Jn();
1168
- te(() => w.value, (H) => {
1169
- if (H) {
1170
- const { value: k } = s.value;
1171
- R.value = Sn(k, s.value.customType);
1177
+ })), l.value !== "custom" && (z = Mt(z))), z === t.data.value ? [] : z);
1178
+ }), k = $(() => R.value.length > 0), S = E(), N = st(), { isHovering: A } = xo(() => S.value), { editingType: w, editing: D, editingText: j, toggleEditing: K, nodeId: G } = Jn();
1179
+ te(() => D.value, (I) => {
1180
+ if (I) {
1181
+ const { value: v } = s.value;
1182
+ j.value = Sn(v, s.value.customType);
1172
1183
  } else
1173
- R.value = "";
1184
+ j.value = "";
1174
1185
  });
1175
- async function W() {
1176
- const H = t.data;
1186
+ async function O() {
1187
+ const I = t.data;
1177
1188
  await V.value.editInspectorState({
1178
- path: v.value,
1179
- inspectorId: I.value.inspectorId,
1180
- type: H.stateType,
1189
+ path: m.value,
1190
+ inspectorId: N.value.inspectorId,
1191
+ type: I.stateType,
1181
1192
  nodeId: G.value,
1182
1193
  state: {
1183
1194
  newKey: null,
1184
- type: N.value,
1185
- value: je(R.value, s.value.customType)
1195
+ type: w.value,
1196
+ value: ze(j.value, s.value.customType)
1186
1197
  }
1187
- }), await V.value.sendInspectorState(I.value.inspectorId), B();
1198
+ }), await V.value.sendInspectorState(N.value.inspectorId), K();
1188
1199
  }
1189
- const { addNewProp: O, draftingNewProp: C, resetDrafting: U } = Xn();
1190
- function oe(H) {
1191
- const k = `${t.depth}-${t.index}`;
1192
- p.value.includes(k) || i(k), O(H, s.value.value);
1200
+ const { addNewProp: _, draftingNewProp: H, resetDrafting: ne } = Xn();
1201
+ function ae(I) {
1202
+ const v = `${t.depth}-${t.index}`;
1203
+ p.value.includes(v) || i(v), _(I, s.value.value);
1193
1204
  }
1194
- async function se() {
1195
- const H = t.data;
1205
+ async function W() {
1206
+ const I = t.data;
1196
1207
  await V.value.editInspectorState({
1197
- path: [...v.value, C.value.key],
1198
- inspectorId: I.value.inspectorId,
1199
- type: H.stateType,
1208
+ path: [...m.value, H.value.key],
1209
+ inspectorId: N.value.inspectorId,
1210
+ type: I.stateType,
1200
1211
  nodeId: G.value,
1201
1212
  state: {
1202
- newKey: C.value.key,
1203
- type: typeof je(C.value.value),
1204
- value: je(C.value.value)
1213
+ newKey: H.value.key,
1214
+ type: typeof ze(H.value.value),
1215
+ value: ze(H.value.value)
1205
1216
  }
1206
- }), await V.value.sendInspectorState(I.value.inspectorId), U();
1217
+ }), await V.value.sendInspectorState(N.value.inspectorId), ne();
1207
1218
  }
1208
- return (H, k) => (c(), m("div", null, [
1219
+ return (I, v) => (c(), h("div", null, [
1209
1220
  u("div", {
1210
1221
  ref_key: "containerRef",
1211
- ref: $,
1212
- class: ie(["font-state-field flex items-center text-3.5", [A.value && "cursor-pointer hover:bg-active"]]),
1213
- style: Se({ paddingLeft: `${e.depth * 15 + 4}px` }),
1214
- onClick: k[1] || (k[1] = (g) => a(i)(`${e.depth}-${e.index}`))
1222
+ ref: S,
1223
+ class: ie(["font-state-field flex items-center text-3.5", [k.value && "cursor-pointer hover:bg-active"]]),
1224
+ style: Ee({ paddingLeft: `${e.depth * 15 + 4}px` }),
1225
+ onClick: v[1] || (v[1] = (C) => a(i)(`${e.depth}-${e.index}`))
1215
1226
  }, [
1216
- A.value ? (c(), z(lt, {
1227
+ k.value ? (c(), B(lt, {
1217
1228
  key: 0,
1218
1229
  value: a(p).includes(`${e.depth}-${e.index}`)
1219
- }, null, 8, ["value"])) : (c(), m("span", ko)),
1230
+ }, null, 8, ["value"])) : (c(), h("span", ko)),
1220
1231
  u("span", Io, re(d.value), 1),
1221
- k[5] || (k[5] = u("span", { mx1: "" }, ":", -1)),
1222
- a(w) ? (c(), z(We, {
1232
+ v[5] || (v[5] = u("span", { mx1: "" }, ":", -1)),
1233
+ a(D) ? (c(), B(We, {
1223
1234
  key: 2,
1224
- modelValue: a(R),
1225
- "onUpdate:modelValue": k[0] || (k[0] = (g) => Fe(R) ? R.value = g : null),
1235
+ modelValue: a(j),
1236
+ "onUpdate:modelValue": v[0] || (v[0] = (C) => Ke(j) ? j.value = C : null),
1226
1237
  class: "mr-1",
1227
1238
  "custom-type": s.value.customType,
1228
- onCancel: a(B),
1229
- onSubmit: W
1230
- }, null, 8, ["modelValue", "custom-type", "onCancel"])) : j("", !0),
1239
+ onCancel: a(K),
1240
+ onSubmit: O
1241
+ }, null, 8, ["modelValue", "custom-type", "onCancel"])) : U("", !0),
1231
1242
  u("span", {
1232
1243
  class: ie([r.value, "flex whitespace-nowrap dark:text-#bdc6cf"])
1233
1244
  }, [
1234
- u("span", {
1245
+ q(u("span", {
1235
1246
  class: "flex",
1236
- innerHTML: h.value
1237
- }, null, 8, $o)
1247
+ innerHTML: g.value
1248
+ }, null, 8, $o), [
1249
+ [a(J), T.value]
1250
+ ])
1238
1251
  ], 2),
1239
- b(_o, {
1240
- hovering: a(P),
1241
- "disable-edit": a(I).disableEdit || a(w),
1252
+ y(_o, {
1253
+ hovering: a(A),
1254
+ "disable-edit": a(N).disableEdit || a(D),
1242
1255
  data: e.data,
1243
1256
  depth: e.depth,
1244
- onEnableEditInput: a(B),
1245
- onAddNewProp: oe
1257
+ onEnableEditInput: a(K),
1258
+ onAddNewProp: ae
1246
1259
  }, null, 8, ["hovering", "disable-edit", "data", "depth", "onEnableEditInput"])
1247
1260
  ], 6),
1248
- A.value && a(p).includes(`${e.depth}-${e.index}`) ? (c(), m("div", So, [
1249
- b(Yt, {
1250
- data: T.value,
1261
+ k.value && a(p).includes(`${e.depth}-${e.index}`) ? (c(), h("div", So, [
1262
+ y(Yt, {
1263
+ data: R.value,
1251
1264
  depth: e.depth,
1252
1265
  index: e.index
1253
1266
  }, null, 8, ["data", "depth", "index"]),
1254
- f.value > o.value ? q((c(), z(a(fe), {
1267
+ f.value > o.value ? q((c(), B(a(fe), {
1255
1268
  key: 0,
1256
1269
  flat: "",
1257
1270
  size: "mini",
1258
1271
  class: "ml-4",
1259
- onClick: k[2] || (k[2] = (g) => o.value += Vt)
1272
+ onClick: v[2] || (v[2] = (C) => o.value += Vt)
1260
1273
  }, {
1261
1274
  icon: M(() => [
1262
- b(a(ue), { icon: "i-material-symbols-more-horiz" })
1275
+ y(a(ue), { icon: "i-material-symbols-more-horiz" })
1263
1276
  ]),
1264
1277
  _: 1
1265
1278
  })), [
1266
- [a(Y), "Show more"]
1267
- ]) : j("", !0),
1268
- a(C).enable ? (c(), m("div", {
1279
+ [a(J), "Show more"]
1280
+ ]) : U("", !0),
1281
+ a(H).enable ? (c(), h("div", {
1269
1282
  key: 1,
1270
- style: Se({ paddingLeft: `${(e.depth + 1) * 15 + 4}px` })
1283
+ style: Ee({ paddingLeft: `${(e.depth + 1) * 15 + 4}px` })
1271
1284
  }, [
1272
1285
  u("span", To, [
1273
- b(We, {
1274
- modelValue: a(C).key,
1275
- "onUpdate:modelValue": k[3] || (k[3] = (g) => a(C).key = g),
1286
+ y(We, {
1287
+ modelValue: a(H).key,
1288
+ "onUpdate:modelValue": v[3] || (v[3] = (C) => a(H).key = C),
1276
1289
  "show-actions": !1
1277
1290
  }, null, 8, ["modelValue"])
1278
1291
  ]),
1279
- k[6] || (k[6] = u("span", { "mx-1": "" }, ":", -1)),
1280
- b(We, {
1281
- modelValue: a(C).value,
1282
- "onUpdate:modelValue": k[4] || (k[4] = (g) => a(C).value = g),
1292
+ v[6] || (v[6] = u("span", { "mx-1": "" }, ":", -1)),
1293
+ y(We, {
1294
+ modelValue: a(H).value,
1295
+ "onUpdate:modelValue": v[4] || (v[4] = (C) => a(H).value = C),
1283
1296
  "auto-focus": !1,
1284
- onCancel: a(U),
1285
- onSubmit: se
1297
+ onCancel: a(ne),
1298
+ onSubmit: W
1286
1299
  }, null, 8, ["modelValue", "onCancel"])
1287
- ], 4)) : j("", !0)
1288
- ])) : j("", !0)
1300
+ ], 4)) : U("", !0)
1301
+ ])) : U("", !0)
1289
1302
  ]));
1290
1303
  }
1291
- }), Vo = /* @__PURE__ */ _e(Eo, [["__scopeId", "data-v-7918b8f2"]]), Yt = /* @__PURE__ */ F({
1304
+ }), Vo = /* @__PURE__ */ _e(Eo, [["__scopeId", "data-v-1662487a"]]), Yt = /* @__PURE__ */ Z({
1292
1305
  __name: "ChildStateViewer",
1293
1306
  props: {
1294
1307
  data: {},
@@ -1297,9 +1310,9 @@ const yo = { class: "flex pl5px" }, bo = { class: "w160px py5px" }, _o = /* @__P
1297
1310
  expandedStateId: { default: "" }
1298
1311
  },
1299
1312
  setup(e) {
1300
- return (t, o) => (c(), m("div", null, [
1301
- (c(!0), m(le, null, ce(e.data, (n, l) => (c(), m("div", { key: l }, [
1302
- b(Vo, {
1313
+ return (t, o) => (c(), h("div", null, [
1314
+ (c(!0), h(se, null, ce(e.data, (n, l) => (c(), h("div", { key: l }, [
1315
+ y(Vo, {
1303
1316
  data: n,
1304
1317
  depth: e.depth + 1,
1305
1318
  index: `${e.index}-${l}`,
@@ -1315,7 +1328,7 @@ const yo = { class: "flex pl5px" }, bo = { class: "w160px py5px" }, _o = /* @__P
1315
1328
  "font-state-field": "",
1316
1329
  "text-3.5": "",
1317
1330
  "text-hex-a3a3a3": ""
1318
- }, Do = { key: 0 }, He = /* @__PURE__ */ F({
1331
+ }, Do = { key: 0 }, Oe = /* @__PURE__ */ Z({
1319
1332
  __name: "RootStateViewer",
1320
1333
  props: {
1321
1334
  data: {},
@@ -1338,25 +1351,25 @@ const yo = { class: "flex pl5px" }, bo = { class: "w160px py5px" }, _o = /* @__P
1338
1351
  n.value = o();
1339
1352
  });
1340
1353
  const { expanded: l, toggleExpanded: s } = at(t.expandedStateId);
1341
- return (p, i) => (c(), m("div", null, [
1342
- (c(!0), m(le, null, ce(e.data, (r, f, v) => (c(), m("div", { key: v }, [
1354
+ return (p, i) => (c(), h("div", null, [
1355
+ (c(!0), h(se, null, ce(e.data, (r, f, m) => (c(), h("div", { key: m }, [
1343
1356
  u("div", {
1344
1357
  class: ie(["flex items-center", [r?.length && "cursor-pointer hover:bg-active"]]),
1345
- onClick: (d) => a(s)(`${v}`)
1358
+ onClick: (d) => a(s)(`${m}`)
1346
1359
  }, [
1347
- r?.length ? (c(), z(lt, {
1360
+ r?.length ? (c(), B(lt, {
1348
1361
  key: 0,
1349
- value: a(l).includes(`${v}`)
1350
- }, null, 8, ["value"])) : (c(), m("span", Ao)),
1362
+ value: a(l).includes(`${m}`)
1363
+ }, null, 8, ["value"])) : (c(), h("span", Ao)),
1351
1364
  u("span", Ro, re(f), 1)
1352
1365
  ], 10, No),
1353
- r?.length && a(l).includes(`${v}`) ? (c(), m("div", Do, [
1354
- b(Yt, {
1366
+ r?.length && a(l).includes(`${m}`) ? (c(), h("div", Do, [
1367
+ y(Yt, {
1355
1368
  data: r,
1356
- index: `${v}`,
1369
+ index: `${m}`,
1357
1370
  "expanded-state-id": e.expandedStateId
1358
1371
  }, null, 8, ["data", "index", "expanded-state-id"])
1359
- ])) : j("", !0)
1372
+ ])) : U("", !0)
1360
1373
  ]))), 128))
1361
1374
  ]));
1362
1375
  }
@@ -1373,9 +1386,9 @@ const yo = { class: "flex pl5px" }, bo = { class: "w160px py5px" }, _o = /* @__P
1373
1386
  }, Uo = {
1374
1387
  pl2: "",
1375
1388
  op30: ""
1376
- }, jo = /* @__PURE__ */ F({
1389
+ }, jo = /* @__PURE__ */ Z({
1377
1390
  __name: "EventList",
1378
- props: /* @__PURE__ */ Re({
1391
+ props: /* @__PURE__ */ De({
1379
1392
  data: {}
1380
1393
  }, {
1381
1394
  modelValue: {},
@@ -1383,7 +1396,7 @@ const yo = { class: "flex pl5px" }, bo = { class: "w160px py5px" }, _o = /* @__P
1383
1396
  }),
1384
1397
  emits: ["update:modelValue"],
1385
1398
  setup(e) {
1386
- const t = e, o = Ye(e, "modelValue"), n = ["#3e5770", "#42b983", "#0098c4"], l = E(null), s = S(() => {
1399
+ const t = e, o = Ye(e, "modelValue"), n = ["#3e5770", "#42b983", "#0098c4"], l = E(null), s = $(() => {
1387
1400
  let p = -1, i = 0;
1388
1401
  return t.data.forEach((r, f) => {
1389
1402
  (r.groupId !== i || p === -1) && (p = (p + 1) % n.length), i = r.groupId ?? i, r.id = f, r.color = n[p];
@@ -1391,8 +1404,8 @@ const yo = { class: "flex pl5px" }, bo = { class: "w160px py5px" }, _o = /* @__P
1391
1404
  });
1392
1405
  return te(() => s.value.length, (p) => {
1393
1406
  l.value?.scrollToItem(p - 1);
1394
- }, { flush: "post" }), (p, i) => (c(), m("div", Po, [
1395
- b(a(Vn), {
1407
+ }, { flush: "post" }), (p, i) => (c(), h("div", Po, [
1408
+ y(a(Vn), {
1396
1409
  ref_key: "scrollerRef",
1397
1410
  ref: l,
1398
1411
  items: s.value,
@@ -1406,14 +1419,14 @@ const yo = { class: "flex pl5px" }, bo = { class: "w160px py5px" }, _o = /* @__P
1406
1419
  default: M(({ item: r }) => [
1407
1420
  u("div", {
1408
1421
  class: "relative mb7 h6 cursor-pointer",
1409
- style: Se({ color: o.value === r.id ? r.color : "" }),
1422
+ style: Ee({ color: o.value === r.id ? r.color : "" }),
1410
1423
  onClick: (f) => o.value = r.id
1411
1424
  }, [
1412
1425
  u("span", {
1413
1426
  class: "absolute top-1.5 inline-block h3 w3 b rounded-50%",
1414
- style: Se({ border: `3px solid ${r.color}` })
1427
+ style: Ee({ border: `3px solid ${r.color}` })
1415
1428
  }, null, 4),
1416
- r.id < e.data.length - 1 ? (c(), m("span", Mo)) : j("", !0),
1429
+ r.id < e.data.length - 1 ? (c(), h("span", Mo)) : U("", !0),
1417
1430
  u("p", Ho, [
1418
1431
  u("span", Oo, "[" + re(a(Rn)(r.time)) + "]", 1),
1419
1432
  Q(" " + re(r.title) + " ", 1),
@@ -1446,7 +1459,7 @@ const yo = { class: "flex pl5px" }, bo = { class: "w160px py5px" }, _o = /* @__P
1446
1459
  }, qo = {
1447
1460
  key: 1,
1448
1461
  class: "recording-btn bg-black op70 dark:bg-white hover:op100"
1449
- }, Jo = { class: "flex items-center gap1" }, Yo = /* @__PURE__ */ F({
1462
+ }, Jo = { class: "flex items-center gap1" }, Yo = /* @__PURE__ */ Z({
1450
1463
  __name: "index",
1451
1464
  props: {
1452
1465
  layerIds: {},
@@ -1459,92 +1472,92 @@ const yo = { class: "flex pl5px" }, bo = { class: "w160px py5px" }, _o = /* @__P
1459
1472
  setup(e, { expose: t }) {
1460
1473
  const o = e, { expanded: n } = xe("timeline-state");
1461
1474
  n.value = ["0", "1"];
1462
- const l = E([]), s = E(/* @__PURE__ */ new Map()), p = E(0), i = Lt(), r = S(() => i.timelineLayersState.value?.[o.pluginId]), f = S(() => l.value[p.value] ?? null), v = S(() => r.value ? "Stop recording" : "Start recording"), d = S(() => {
1463
- const N = [];
1475
+ const l = E([]), s = E(/* @__PURE__ */ new Map()), p = E(0), i = Lt(), r = $(() => i.timelineLayersState.value?.[o.pluginId]), f = $(() => l.value[p.value] ?? null), m = $(() => r.value ? "Stop recording" : "Start recording"), d = $(() => {
1476
+ const A = [];
1464
1477
  for (const w in f.value?.data)
1465
- N.push({
1478
+ A.push({
1466
1479
  key: w,
1467
1480
  type: w,
1468
1481
  editable: !1,
1469
1482
  value: f.value.data[w]
1470
1483
  });
1471
- return N;
1472
- }), h = S(() => {
1473
- const N = f.value?.groupId, w = s.value.get(N);
1484
+ return A;
1485
+ }), g = $(() => {
1486
+ const A = f.value?.groupId, w = s.value.get(A);
1474
1487
  if (w) {
1475
- const R = w[w.length - 1]?.time - (w[0]?.time ?? 0);
1488
+ const D = w[w.length - 1]?.time - (w[0]?.time ?? 0);
1476
1489
  return [{
1477
1490
  key: "events",
1478
1491
  type: "events",
1479
1492
  editable: !1,
1480
1493
  value: w.length
1481
- }, R && {
1494
+ }, D && {
1482
1495
  key: "duration",
1483
1496
  type: "duration",
1484
1497
  editable: !1,
1485
- value: `${R}ms`
1498
+ value: `${D}ms`
1486
1499
  }].filter(Boolean);
1487
1500
  }
1488
- }), T = S(() => ({ "Event Info": d.value, ...h.value && { "Group Info": h.value } }));
1489
- function A(N) {
1490
- const w = N.groupId;
1491
- w !== void 0 && (s.value.set(w, s.value.get(w) ?? []), s.value.get(w)?.push(N));
1501
+ }), T = $(() => ({ "Event Info": d.value, ...g.value && { "Group Info": g.value } }));
1502
+ function R(A) {
1503
+ const w = A.groupId;
1504
+ w !== void 0 && (s.value.set(w, s.value.get(w) ?? []), s.value.get(w)?.push(A));
1492
1505
  }
1493
- function $(N) {
1494
- const w = ne(N);
1506
+ function k(A) {
1507
+ const w = le(A);
1495
1508
  if (!w)
1496
1509
  return;
1497
- const { layerId: R, event: B } = w;
1498
- o.layerIds.includes(R) && (l.value.push(B), A(B));
1510
+ const { layerId: D, event: j } = w;
1511
+ o.layerIds.includes(D) && (l.value.push(j), R(j));
1499
1512
  }
1500
- V.functions.on(X.TIMELINE_EVENT_UPDATED, $), ke(() => {
1501
- V.functions.off(X.TIMELINE_EVENT_UPDATED, $);
1513
+ V.functions.on(X.TIMELINE_EVENT_UPDATED, k), Ie(() => {
1514
+ V.functions.off(X.TIMELINE_EVENT_UPDATED, k);
1502
1515
  });
1503
- function I() {
1516
+ function S() {
1504
1517
  l.value = [], s.value.clear();
1505
1518
  }
1506
1519
  t({
1507
- clear: I
1520
+ clear: S
1508
1521
  });
1509
- function P() {
1522
+ function N() {
1510
1523
  V.value.updateTimelineLayersState({
1511
1524
  [o.pluginId]: !r.value
1512
1525
  });
1513
1526
  }
1514
- return (N, w) => (c(), m("div", zo, [
1515
- e.headerVisible ? (c(), z(Te, {
1527
+ return (A, w) => (c(), h("div", zo, [
1528
+ e.headerVisible ? (c(), B(Ve, {
1516
1529
  key: 0,
1517
1530
  "doc-link": e.docLink,
1518
1531
  "github-repo-link": e.githubRepoLink
1519
1532
  }, {
1520
1533
  default: M(() => [
1521
- b(Ee)
1534
+ y(Ne)
1522
1535
  ]),
1523
1536
  _: 1
1524
- }, 8, ["doc-link", "github-repo-link"])) : j("", !0),
1525
- l.value.length ? (c(), m("div", Bo, [
1526
- b(a(Pe), { class: "h-full" }, {
1537
+ }, 8, ["doc-link", "github-repo-link"])) : U("", !0),
1538
+ l.value.length ? (c(), h("div", Bo, [
1539
+ y(a(Le), { class: "h-full" }, {
1527
1540
  default: M(() => [
1528
- b(a(de), {
1541
+ y(a(de), {
1529
1542
  border: "r base",
1530
1543
  size: "40",
1531
1544
  "h-full": ""
1532
1545
  }, {
1533
1546
  default: M(() => [
1534
1547
  u("div", Zo, [
1535
- b(jo, {
1548
+ y(jo, {
1536
1549
  modelValue: p.value,
1537
- "onUpdate:modelValue": w[0] || (w[0] = (R) => p.value = R),
1550
+ "onUpdate:modelValue": w[0] || (w[0] = (D) => p.value = D),
1538
1551
  data: l.value
1539
1552
  }, null, 8, ["modelValue", "data"])
1540
1553
  ])
1541
1554
  ]),
1542
1555
  _: 1
1543
1556
  }),
1544
- b(a(de), { size: "60" }, {
1557
+ y(a(de), { size: "60" }, {
1545
1558
  default: M(() => [
1546
1559
  u("div", Fo, [
1547
- b(He, {
1560
+ y(Oe, {
1548
1561
  class: "p3",
1549
1562
  data: T.value,
1550
1563
  "node-id": "",
@@ -1559,7 +1572,7 @@ const yo = { class: "flex pl5px" }, bo = { class: "w160px py5px" }, _o = /* @__P
1559
1572
  ]),
1560
1573
  _: 1
1561
1574
  })
1562
- ])) : (c(), z($e, {
1575
+ ])) : (c(), B(Te, {
1563
1576
  key: 2,
1564
1577
  class: "flex-1"
1565
1578
  }, {
@@ -1568,26 +1581,26 @@ const yo = { class: "flex pl5px" }, bo = { class: "w160px py5px" }, _o = /* @__P
1568
1581
  ])]),
1569
1582
  _: 1
1570
1583
  })),
1571
- e.switcherVisible ? (c(), m("div", Ko, [
1584
+ e.switcherVisible ? (c(), h("div", Ko, [
1572
1585
  u("div", Go, [
1573
- q((c(), m("div", {
1586
+ q((c(), h("div", {
1574
1587
  class: "flex items-center gap1",
1575
- onClick: P
1588
+ onClick: N
1576
1589
  }, [
1577
- r.value ? (c(), m("span", Wo)) : (c(), m("span", qo))
1590
+ r.value ? (c(), h("span", Wo)) : (c(), h("span", qo))
1578
1591
  ])), [
1579
1592
  [
1580
- a(Y),
1581
- { content: v.value },
1593
+ a(J),
1594
+ { content: m.value },
1582
1595
  void 0,
1583
1596
  { "bottom-end": !0 }
1584
1597
  ]
1585
1598
  ]),
1586
- q((c(), m("div", {
1599
+ q((c(), h("div", {
1587
1600
  class: "flex items-center gap1",
1588
- onClick: I
1601
+ onClick: S
1589
1602
  }, [
1590
- b(a(Ze), {
1603
+ y(a(Fe), {
1591
1604
  name: "baseline-delete",
1592
1605
  "cursor-pointer": "",
1593
1606
  "text-xl": "",
@@ -1596,14 +1609,14 @@ const yo = { class: "flex pl5px" }, bo = { class: "w160px py5px" }, _o = /* @__P
1596
1609
  })
1597
1610
  ])), [
1598
1611
  [
1599
- a(Y),
1612
+ a(J),
1600
1613
  { content: "Clear all timelines" },
1601
1614
  void 0,
1602
1615
  { "bottom-end": !0 }
1603
1616
  ]
1604
1617
  ]),
1605
- q((c(), m("div", Jo, [
1606
- b(a(Ze), {
1618
+ q((c(), h("div", Jo, [
1619
+ y(a(Fe), {
1607
1620
  name: "baseline-tips-and-updates",
1608
1621
  "cursor-pointer": "",
1609
1622
  "text-xl": "",
@@ -1612,25 +1625,25 @@ const yo = { class: "flex pl5px" }, bo = { class: "w160px py5px" }, _o = /* @__P
1612
1625
  })
1613
1626
  ])), [
1614
1627
  [
1615
- a(Y),
1628
+ a(J),
1616
1629
  { 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 },
1617
1630
  void 0,
1618
1631
  { "bottom-end": !0 }
1619
1632
  ]
1620
1633
  ])
1621
1634
  ])
1622
- ])) : j("", !0)
1635
+ ])) : U("", !0)
1623
1636
  ]));
1624
1637
  }
1625
1638
  }), ct = /* @__PURE__ */ _e(Yo, [["__scopeId", "data-v-3dbcfd2a"]]);
1626
- function gs() {
1639
+ function g1() {
1627
1640
  const e = E([]), t = E([]);
1628
1641
  function o(l) {
1629
1642
  t.value = l, l.length < e.value.length && (e.value = []), t.value.forEach((s) => {
1630
1643
  n(s);
1631
1644
  });
1632
1645
  }
1633
- De(() => {
1646
+ Pe(() => {
1634
1647
  V.value.getCustomInspector().then((l) => {
1635
1648
  t.value = l, t.value.forEach((s) => {
1636
1649
  n(s);
@@ -1640,7 +1653,7 @@ function gs() {
1640
1653
  function n(l) {
1641
1654
  e.value.some((s) => s.id === l.id) || e.value.push(l);
1642
1655
  }
1643
- return ke(() => {
1656
+ return Ie(() => {
1644
1657
  V.functions.off(X.INSPECTOR_UPDATED, o);
1645
1658
  }), {
1646
1659
  registeredInspector: e,
@@ -1685,9 +1698,9 @@ const el = ["onClick", "onDblclick", "onMouseover"], tl = {
1685
1698
  }, il = {
1686
1699
  key: 3,
1687
1700
  class: "ml-2 rounded-sm bg-gray-500 px-1 text-[0.75rem] leading-snug"
1688
- }, rl = { key: 0 }, Oe = /* @__PURE__ */ F({
1701
+ }, rl = { key: 0 }, Ue = /* @__PURE__ */ Z({
1689
1702
  __name: "TreeViewer",
1690
- props: /* @__PURE__ */ Re({
1703
+ props: /* @__PURE__ */ De({
1691
1704
  data: {},
1692
1705
  depth: { default: 0 },
1693
1706
  withTag: { type: Boolean, default: !1 }
@@ -1695,7 +1708,7 @@ const el = ["onClick", "onDblclick", "onMouseover"], tl = {
1695
1708
  modelValue: {},
1696
1709
  modelModifiers: {}
1697
1710
  }),
1698
- emits: /* @__PURE__ */ Re(["hover", "leave"], ["update:modelValue"]),
1711
+ emits: /* @__PURE__ */ De(["hover", "leave"], ["update:modelValue"]),
1699
1712
  setup(e, { emit: t }) {
1700
1713
  const o = t, n = Ye(e, "modelValue"), { expanded: l, toggleExpanded: s } = at();
1701
1714
  Qo();
@@ -1705,69 +1718,69 @@ const el = ["onClick", "onDblclick", "onMouseover"], tl = {
1705
1718
  function i(r) {
1706
1719
  n.value = r;
1707
1720
  }
1708
- return (r, f) => (c(!0), m(le, null, ce(e.data, (v, d) => (c(), m("div", {
1721
+ return (r, f) => (c(!0), h(se, null, ce(e.data, (m, d) => (c(), h("div", {
1709
1722
  key: d,
1710
1723
  class: ie({
1711
1724
  "min-w-max": e.depth === 0
1712
1725
  })
1713
1726
  }, [
1714
1727
  u("div", {
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 * e.depth + 4}px` }),
1717
- onClick: (h) => i(v.id),
1718
- onDblclick: (h) => a(s)(v.id),
1719
- onMouseover: () => o("hover", v.id),
1728
+ class: ie(["group flex cursor-pointer items-center rounded-1 hover:bg-primary-300 hover:dark:bg-gray-600", { "bg-primary-600! active": n.value === m.id }]),
1729
+ style: Ee({ paddingLeft: `${15 * e.depth + 4}px` }),
1730
+ onClick: (g) => i(m.id),
1731
+ onDblclick: (g) => a(s)(m.id),
1732
+ onMouseover: () => o("hover", m.id),
1720
1733
  onMouseleave: f[0] || (f[0] = () => o("leave"))
1721
1734
  }, [
1722
- v?.children?.length ? (c(), z(lt, {
1735
+ m?.children?.length ? (c(), B(lt, {
1723
1736
  key: 0,
1724
- value: a(l).includes(v.id),
1737
+ value: a(l).includes(m.id),
1725
1738
  class: "[.active_&]:op20 group-hover:op20",
1726
- onClick: he((h) => a(s)(v.id), ["stop"])
1727
- }, null, 8, ["value", "onClick"])) : (c(), m("span", tl)),
1739
+ onClick: he((g) => a(s)(m.id), ["stop"])
1740
+ }, null, 8, ["value", "onClick"])) : (c(), h("span", tl)),
1728
1741
  u("span", nl, [
1729
- e.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", {
1742
+ e.withTag ? (c(), h("span", ol, "<")) : U("", !0),
1743
+ u("span", ll, re(p(m)), 1),
1744
+ (m.renderKey === 0 || m.renderKey) && m.renderKey !== a(Dt) ? (c(), h("span", {
1732
1745
  key: 1,
1733
1746
  class: ie(["text-xs opacity-50", {
1734
- "opacity-100": n.value === v.id
1747
+ "opacity-100": n.value === m.id
1735
1748
  }])
1736
1749
  }, [
1737
1750
  u("span", {
1738
- class: ie([n.value === v.id ? "text-purple-200" : "text-purple-500"])
1751
+ class: ie([n.value === m.id ? "text-purple-200" : "text-purple-500"])
1739
1752
  }, " key", 2),
1740
1753
  f[4] || (f[4] = Q("=", -1)),
1741
- u("span", null, re(v.renderKey), 1)
1742
- ], 2)) : j("", !0),
1743
- e.withTag ? (c(), m("span", sl, ">")) : j("", !0)
1754
+ u("span", null, re(m.renderKey), 1)
1755
+ ], 2)) : U("", !0),
1756
+ e.withTag ? (c(), h("span", sl, ">")) : U("", !0)
1744
1757
  ]),
1745
- v.isFragment ? q((c(), m("span", al, [...f[5] || (f[5] = [
1758
+ m.isFragment ? q((c(), h("span", al, [...f[5] || (f[5] = [
1746
1759
  Q(" fragment ", -1)
1747
1760
  ])])), [
1748
- [a(Y), "Has multiple root DOM nodes"]
1749
- ]) : j("", !0),
1750
- v.inactive ? q((c(), m("span", il, [...f[6] || (f[6] = [
1761
+ [a(J), "Has multiple root DOM nodes"]
1762
+ ]) : U("", !0),
1763
+ m.inactive ? q((c(), h("span", il, [...f[6] || (f[6] = [
1751
1764
  Q(" inactive ", -1)
1752
1765
  ])])), [
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, {
1766
+ [a(J), "Currently inactive but not destroyed"]
1767
+ ]) : U("", !0),
1768
+ (c(!0), h(se, null, ce(m.tags, (g, T) => (c(), B(jt, {
1756
1769
  key: T,
1757
- tag: h
1770
+ tag: g
1758
1771
  }, null, 8, ["tag"]))), 128))
1759
1772
  ], 46, el),
1760
- v?.children?.length && a(l).includes(v.id) ? (c(), m("div", rl, [
1761
- b(Oe, {
1773
+ m?.children?.length && a(l).includes(m.id) ? (c(), h("div", rl, [
1774
+ y(Ue, {
1762
1775
  modelValue: n.value,
1763
- "onUpdate:modelValue": f[1] || (f[1] = (h) => n.value = h),
1764
- data: v?.children,
1776
+ "onUpdate:modelValue": f[1] || (f[1] = (g) => n.value = g),
1777
+ data: m?.children,
1765
1778
  depth: e.depth + 1,
1766
1779
  "with-tag": e.withTag,
1767
- onHover: f[2] || (f[2] = (h) => o("hover", h)),
1768
- onLeave: f[3] || (f[3] = (h) => o("leave"))
1780
+ onHover: f[2] || (f[2] = (g) => o("hover", g)),
1781
+ onLeave: f[3] || (f[3] = (g) => o("leave"))
1769
1782
  }, null, 8, ["modelValue", "data", "depth", "with-tag"])
1770
- ])) : j("", !0)
1783
+ ])) : U("", !0)
1771
1784
  ], 2))), 128));
1772
1785
  }
1773
1786
  }), Nt = 200;
@@ -1777,7 +1790,7 @@ function ul() {
1777
1790
  unhighlight: /* @__PURE__ */ Tt(() => V.value.unhighlight(), Nt)
1778
1791
  };
1779
1792
  }
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({
1793
+ 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__ */ Z({
1781
1794
  __name: "RenderCode",
1782
1795
  props: {
1783
1796
  code: {}
@@ -1788,7 +1801,7 @@ const cl = { class: "absolute left-0 top-0 h-full w-full flex flex-col rounded-b
1788
1801
  function n() {
1789
1802
  o("close");
1790
1803
  }
1791
- return (l, s) => (c(), m("div", cl, [
1804
+ return (l, s) => (c(), h("div", cl, [
1792
1805
  u("div", { class: "h-12 w-full flex items-center justify-between p-2" }, [
1793
1806
  s[0] || (s[0] = u("span", { class: "font-500" }, "Render Code", -1)),
1794
1807
  u("i", {
@@ -1797,7 +1810,7 @@ const cl = { class: "absolute left-0 top-0 h-full w-full flex flex-col rounded-b
1797
1810
  })
1798
1811
  ]),
1799
1812
  u("div", dl, [
1800
- b(a(gn), {
1813
+ y(a(gn), {
1801
1814
  code: e.code,
1802
1815
  lang: "javascript"
1803
1816
  }, null, 8, ["code"])
@@ -1823,188 +1836,188 @@ const cl = { class: "absolute left-0 top-0 h-full w-full flex flex-col rounded-b
1823
1836
  style: { height: "2em", width: "2em", opacity: "0.5", color: "#00dc82" },
1824
1837
  class: "animate-fade",
1825
1838
  viewBox: "0 0 24 24"
1826
- }, $l = { class: "flex items-center justify-center" }, Ae = "components", Sl = /* @__PURE__ */ F({
1839
+ }, $l = { class: "flex items-center justify-center" }, Re = "components", Sl = /* @__PURE__ */ Z({
1827
1840
  __name: "index",
1828
1841
  emits: ["openInEditor", "onInspectComponentStart", "onInspectComponentEnd"],
1829
1842
  setup(e, { emit: t }) {
1830
- const o = t, n = E(), l = E(!1), { width: s } = mo(n), p = S(() => l.value ? s.value < 700 : !1), i = E(""), r = E(""), [f, v] = /* @__PURE__ */ Wt(!0), d = E(!1), h = E(!1), T = E(""), A = E(!1), $ = ul();
1831
- function I(_, x = [], L = []) {
1832
- return x.push(_.id), _.children?.length === 0 && L.push([...x]), Array.isArray(_.children) && _.children.forEach((K) => {
1833
- I(K, x, L);
1843
+ const o = t, n = E(), l = E(!1), { width: s } = mo(n), p = $(() => l.value ? s.value < 700 : !1), i = E(""), r = E(""), [f, m] = /* @__PURE__ */ Wt(!0), d = E(!1), g = E(!1), T = E(""), R = E(!1), k = ul();
1844
+ function S(b, x = [], L = []) {
1845
+ return x.push(b.id), b.children?.length === 0 && L.push([...x]), Array.isArray(b.children) && b.children.forEach((F) => {
1846
+ S(F, x, L);
1834
1847
  }), x.pop(), L;
1835
1848
  }
1836
- function P(_) {
1837
- const x = [], L = (K) => {
1838
- K?.forEach((ee) => {
1849
+ function N(b) {
1850
+ const x = [], L = (F) => {
1851
+ F?.forEach((ee) => {
1839
1852
  x.push(ee), ee.children?.length && L(ee.children);
1840
1853
  });
1841
1854
  };
1842
- return L(_), x;
1855
+ return L(b), x;
1843
1856
  }
1844
- function N(_, x) {
1857
+ function A(b, x) {
1845
1858
  const L = [];
1846
- return _?.forEach((K) => {
1847
- L.push(...K.slice(0, x + 1));
1859
+ return b?.forEach((F) => {
1860
+ L.push(...F.slice(0, x + 1));
1848
1861
  }), [...new Set(L)];
1849
1862
  }
1850
- function w(_, x) {
1863
+ function w(b, x) {
1851
1864
  const L = [];
1852
- return _.forEach((K) => {
1853
- const ee = K.indexOf(x);
1854
- ee !== -1 && L.push(...K.slice(0, ee + 1));
1865
+ return b.forEach((F) => {
1866
+ const ee = F.indexOf(x);
1867
+ ee !== -1 && L.push(...F.slice(0, ee + 1));
1855
1868
  }), [...new Set(L)];
1856
1869
  }
1857
- const R = E([]), B = S(() => R.value?.length ? I(R.value?.[0]) : []), G = S(() => P(R.value)), W = S(() => G.value.map((_) => _.id)), O = E({}), C = E(""), U = S(() => {
1858
- const _ = [], x = (L) => {
1859
- L.forEach((K) => {
1860
- K.id === C.value && _.push(K), K.children?.length && x(K.children);
1870
+ const D = E([]), j = $(() => D.value?.length ? S(D.value?.[0]) : []), K = $(() => N(D.value)), G = $(() => K.value.map((b) => b.id)), O = E({}), _ = E(""), H = $(() => {
1871
+ const b = [], x = (L) => {
1872
+ L.forEach((F) => {
1873
+ F.id === _.value && b.push(F), F.children?.length && x(F.children);
1861
1874
  });
1862
1875
  };
1863
- return x(R.value), _[0];
1864
- }), oe = S(() => U.value?.file ?? ""), se = S(() => tt({
1876
+ return x(D.value), b[0];
1877
+ }), ne = $(() => H.value?.file ?? ""), ae = $(() => tt({
1865
1878
  state: O.value,
1866
1879
  filterKey: r.value,
1867
- processGroup(_) {
1868
- return Nn(Object.values(An(Mt(_), "stateType")));
1880
+ processGroup(b) {
1881
+ return Nn(Object.values(An(Mt(b), "stateType")));
1869
1882
  }
1870
- })), { expanded: H } = xe(), { expanded: k } = xe("component-state");
1883
+ })), { expanded: W } = xe(), { expanded: I } = xe("component-state");
1871
1884
  Xo();
1872
- async function g(_ = "") {
1873
- return V.value.getInspectorTree({ inspectorId: Ae, filter: _ }).then((x) => {
1874
- const L = ne(x);
1875
- R.value = L, C.value = R.value?.[0]?.id, H.value = N(B.value, 1), d.value = !0;
1885
+ async function v(b = "") {
1886
+ return V.value.getInspectorTree({ inspectorId: Re, filter: b }).then((x) => {
1887
+ const L = le(x);
1888
+ D.value = L, _.value = D.value?.[0]?.id, W.value = A(j.value, 1), d.value = !0;
1876
1889
  });
1877
1890
  }
1878
- function y(_) {
1879
- if (!_ || !_?.state)
1891
+ function C(b) {
1892
+ if (!b || !b?.state)
1880
1893
  return {};
1881
1894
  const x = {};
1882
- return _.state.forEach((L) => {
1895
+ return b.state.forEach((L) => {
1883
1896
  x[L.type] || (x[L.type] = []), x[L.type].push(L);
1884
1897
  }), x;
1885
1898
  }
1886
- function D(_) {
1887
- V.value.getInspectorState({ inspectorId: Ae, nodeId: _ }).then((x) => {
1888
- const L = ne(x);
1889
- L && (O.value = y(L), k.value = Array.from({ length: Object.keys(O.value).length }, (K, ee) => `${ee}`));
1899
+ function P(b) {
1900
+ V.value.getInspectorState({ inspectorId: Re, nodeId: b }).then((x) => {
1901
+ const L = le(x);
1902
+ L && (O.value = C(L), I.value = Array.from({ length: Object.keys(O.value).length }, (F, ee) => `${ee}`));
1890
1903
  });
1891
1904
  }
1892
- te(C, (_) => {
1893
- D(_), A.value && gt();
1905
+ te(_, (b) => {
1906
+ P(b), R.value && gt();
1894
1907
  });
1895
- function Z(_) {
1896
- const x = ne(_);
1897
- x.inspectorId !== Ae || x.nodeId !== C.value || (O.value = y({ state: x.state.state }));
1898
- }
1899
- V.functions.on(X.INSPECTOR_STATE_UPDATED, Z), g();
1900
- function ae(_) {
1901
- const x = _.trim().toLowerCase();
1902
- v(), g(x).then(() => {
1903
- v();
1908
+ function z(b) {
1909
+ const x = le(b);
1910
+ x.inspectorId !== Re || x.nodeId !== _.value || (O.value = C({ state: x.state.state }));
1911
+ }
1912
+ V.functions.on(X.INSPECTOR_STATE_UPDATED, z), v();
1913
+ function oe(b) {
1914
+ const x = b.trim().toLowerCase();
1915
+ m(), v(x).then(() => {
1916
+ m();
1904
1917
  });
1905
1918
  }
1906
- qt(i, (_) => {
1907
- ae(_);
1919
+ qt(i, (b) => {
1920
+ oe(b);
1908
1921
  }, { debounce: 300 });
1909
- function Ve(_) {
1910
- const x = ne(_);
1911
- x.inspectorId === Ae && (i.value ? ae(i.value) : R.value = x.rootNodes, W.value.includes(C.value) || (C.value = R.value?.[0]?.id, H.value = N(B.value, 1)));
1922
+ function we(b) {
1923
+ const x = le(b);
1924
+ x.inspectorId === Re && (i.value ? oe(i.value) : D.value = x.rootNodes, G.value.includes(_.value) || (_.value = D.value?.[0]?.id, W.value = A(j.value, 1)));
1912
1925
  }
1913
- V.functions.on(X.INSPECTOR_TREE_UPDATED, Ve), ke(() => {
1914
- V.functions.off(X.INSPECTOR_STATE_UPDATED, Z), V.functions.off(X.INSPECTOR_TREE_UPDATED, Ve);
1926
+ V.functions.on(X.INSPECTOR_TREE_UPDATED, we), Ie(() => {
1927
+ V.functions.off(X.INSPECTOR_STATE_UPDATED, z), V.functions.off(X.INSPECTOR_TREE_UPDATED, we);
1915
1928
  });
1916
- const Ke = Lt(), pt = S(() => Ke.appRecords.value.map((_) => ({
1917
- label: _.name + (_.version ? ` (${_.version})` : ""),
1918
- value: _.id,
1919
- iframe: _.iframe
1920
- }))), nn = S(() => pt.value.map((_) => ({
1921
- label: _.label + (_.iframe ? ` (iframe: ${_.iframe})` : ""),
1922
- id: _.value
1923
- }))), Ue = E(Ke.activeAppRecordId.value);
1929
+ const $e = Lt(), pt = $(() => $e.appRecords.value.map((b) => ({
1930
+ label: b.name + (b.version ? ` (${b.version})` : ""),
1931
+ value: b.id,
1932
+ iframe: b.iframe
1933
+ }))), nn = $(() => pt.value.map((b) => ({
1934
+ label: b.label + (b.iframe ? ` (iframe: ${b.iframe})` : ""),
1935
+ id: b.value
1936
+ }))), je = E($e.activeAppRecordId.value);
1924
1937
  et(() => {
1925
- Ue.value = Ke.activeAppRecordId.value;
1938
+ je.value = $e.activeAppRecordId.value;
1926
1939
  });
1927
- async function ft(_, x = {}) {
1928
- await V.value.toggleApp(_, x), C.value = "", await g();
1940
+ async function ft(b, x = {}) {
1941
+ await V.value.toggleApp(b, x), _.value = "", await v();
1929
1942
  }
1930
1943
  async function vt() {
1931
- h.value = !0, o("onInspectComponentStart");
1944
+ g.value = !0, o("onInspectComponentStart");
1932
1945
  try {
1933
- const _ = JSON.parse(await V.value.inspectComponentInspector()), x = _.id.split(":")[0];
1934
- Ue.value !== _.appId && await ft(x, { inspectingComponent: !0 }), C.value = _.id, H.value.includes(_.id) || H.value.push(_.id), H.value = [.../* @__PURE__ */ new Set([...H.value, ...w(B.value, _.id)])], rn();
1946
+ const b = JSON.parse(await V.value.inspectComponentInspector()), x = b.id.split(":")[0];
1947
+ je.value !== b.appId && await ft(x, { inspectingComponent: !0 }), _.value = b.id, W.value.includes(b.id) || W.value.push(b.id), W.value = [.../* @__PURE__ */ new Set([...W.value, ...w(j.value, b.id)])], rn();
1935
1948
  } finally {
1936
- h.value = !1, o("onInspectComponentEnd");
1949
+ g.value = !1, o("onInspectComponentEnd");
1937
1950
  }
1938
1951
  }
1939
1952
  function mt() {
1940
- h.value = !1, V.value.cancelInspectComponentInspector();
1941
- }
1942
- ve("keydown", (_) => {
1943
- _.key === "s" && (_.ctrlKey || _.metaKey) && !h.value ? vt() : _.key === "Escape" && h.value && mt();
1944
- }), Ne("ArrowRight", () => {
1945
- const _ = H.value.includes(C.value), x = G.value.find((L) => L.id === C.value)?.children?.length;
1946
- !_ && x && H.value.push(C.value);
1947
- }), Ne("ArrowLeft", () => {
1948
- H.value.includes(C.value) && H.value.splice(H.value.indexOf(C.value), 1);
1949
- }), Ne("ArrowDown", () => {
1950
- const _ = W.value.indexOf(C.value);
1951
- if (H.value.includes(C.value) && _ >= 0 && _ < W.value.length - 1)
1952
- C.value = W.value[_ + 1];
1953
+ g.value = !1, V.value.cancelInspectComponentInspector();
1954
+ }
1955
+ ve("keydown", (b) => {
1956
+ b.key === "s" && (b.ctrlKey || b.metaKey) && !g.value ? vt() : b.key === "Escape" && g.value && mt();
1957
+ }), Ae("ArrowRight", () => {
1958
+ const b = W.value.includes(_.value), x = K.value.find((L) => L.id === _.value)?.children?.length;
1959
+ !b && x && W.value.push(_.value);
1960
+ }), Ae("ArrowLeft", () => {
1961
+ W.value.includes(_.value) && W.value.splice(W.value.indexOf(_.value), 1);
1962
+ }), Ae("ArrowDown", () => {
1963
+ const b = G.value.indexOf(_.value);
1964
+ if (W.value.includes(_.value) && b >= 0 && b < G.value.length - 1)
1965
+ _.value = G.value[b + 1];
1953
1966
  else {
1954
- if (_ === 0)
1967
+ if (b === 0)
1955
1968
  return !1;
1956
- C.value = on();
1969
+ _.value = on();
1957
1970
  }
1958
- }), Ne("ArrowUp", () => {
1959
- const _ = C.value, x = B.value.find((Ge) => Ge.includes(_));
1971
+ }), Ae("ArrowUp", () => {
1972
+ const b = _.value, x = j.value.find((Ge) => Ge.includes(b));
1960
1973
  if (!x)
1961
1974
  return;
1962
- const L = x.indexOf(_), K = L > 0 ? L - 1 : 0, ee = x[K], pe = ht(ee);
1963
- pe && (C.value = pe.id);
1964
- }), Ne([" ", "Enter"], () => {
1965
- if (!G.value.find((L) => L.id === C.value)?.children?.length)
1975
+ const L = x.indexOf(b), F = L > 0 ? L - 1 : 0, ee = x[F], pe = ht(ee);
1976
+ pe && (_.value = pe.id);
1977
+ }), Ae([" ", "Enter"], () => {
1978
+ if (!K.value.find((L) => L.id === _.value)?.children?.length)
1966
1979
  return;
1967
- const x = H.value.indexOf(C.value);
1968
- x === -1 ? H.value.push(C.value) : H.value.splice(x, 1);
1980
+ const x = W.value.indexOf(_.value);
1981
+ x === -1 ? W.value.push(_.value) : W.value.splice(x, 1);
1969
1982
  });
1970
- function ht(_) {
1971
- const x = G.value.find((ee) => ee.id === _);
1983
+ function ht(b) {
1984
+ const x = K.value.find((ee) => ee.id === b);
1972
1985
  if (!x || !x.children?.length || x.children.length === 1)
1973
1986
  return x;
1974
- const L = x?.children?.findIndex((ee) => ee.id === C.value);
1987
+ const L = x?.children?.findIndex((ee) => ee.id === _.value);
1975
1988
  if (L <= 0)
1976
1989
  return x;
1977
- let K = x.children[L - 1];
1978
- for (; K && H.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)
1990
+ let F = x.children[L - 1];
1991
+ for (; F && W.value.includes(F.id) && F.children?.length; ) {
1992
+ const ee = F.children[F.children.length - 1], pe = ht(ee.id);
1993
+ if (!pe || pe.id === F.id)
1981
1994
  break;
1982
- K = pe;
1995
+ F = pe;
1983
1996
  }
1984
- return K || x;
1997
+ return F || x;
1985
1998
  }
1986
1999
  function on() {
1987
- const _ = B.value, x = [..._].findLastIndex((pe) => pe?.includes(C.value));
2000
+ const b = j.value, x = [...b].findLastIndex((pe) => pe?.includes(_.value));
1988
2001
  if (x === -1)
1989
- return C.value;
1990
- const L = _[x], K = _[x + 1], ee = K?.findIndex((pe, Ge) => pe !== L[Ge]) ?? -1;
1991
- return ee !== -1 ? K[ee] : C.value;
2002
+ return _.value;
2003
+ const L = b[x], F = b[x + 1], ee = F?.findIndex((pe, Ge) => pe !== L[Ge]) ?? -1;
2004
+ return ee !== -1 ? F[ee] : _.value;
1992
2005
  }
1993
2006
  function ln() {
1994
- V.value.scrollToComponent(C.value);
2007
+ V.value.scrollToComponent(_.value);
1995
2008
  }
1996
2009
  function sn() {
1997
- V.value.inspectDOM(C.value).then(() => {
2010
+ V.value.inspectDOM(_.value).then(() => {
1998
2011
  chrome.devtools.inspectedWindow.eval("inspect(window.__VUE_DEVTOOLS_INSPECT_DOM_TARGET__)");
1999
2012
  });
2000
2013
  }
2001
2014
  function gt() {
2002
- V.value.getComponentRenderCode(C.value).then((_) => {
2003
- T.value = _, A.value = !0;
2015
+ V.value.getComponentRenderCode(_.value).then((b) => {
2016
+ T.value = b, R.value = !0;
2004
2017
  });
2005
2018
  }
2006
2019
  function an() {
2007
- o("openInEditor", oe.value);
2020
+ o("openInEditor", ne.value);
2008
2021
  }
2009
2022
  const Ct = E();
2010
2023
  function rn() {
@@ -2013,10 +2026,10 @@ const cl = { class: "absolute left-0 top-0 h-full w-full flex flex-col rounded-b
2013
2026
  }, 300);
2014
2027
  }
2015
2028
  function un() {
2016
- T.value = "", A.value = !1;
2029
+ T.value = "", R.value = !1;
2017
2030
  }
2018
- return (_, x) => (c(), m("div", fl, [
2019
- b(a(Pe), {
2031
+ return (b, x) => (c(), h("div", fl, [
2032
+ y(a(Le), {
2020
2033
  ref_key: "splitpanesRef",
2021
2034
  ref: n,
2022
2035
  class: "flex-1 overflow-auto",
@@ -2024,16 +2037,16 @@ const cl = { class: "absolute left-0 top-0 h-full w-full flex flex-col rounded-b
2024
2037
  onReady: x[4] || (x[4] = (L) => l.value = !0)
2025
2038
  }, {
2026
2039
  default: M(() => [
2027
- pt.value.length > 1 ? (c(), z(a(de), {
2040
+ pt.value.length > 1 ? (c(), B(a(de), {
2028
2041
  key: 0,
2029
2042
  border: "base h-full",
2030
2043
  size: "20"
2031
2044
  }, {
2032
2045
  default: M(() => [
2033
2046
  u("div", vl, [
2034
- b(On, {
2035
- modelValue: Ue.value,
2036
- "onUpdate:modelValue": x[0] || (x[0] = (L) => Ue.value = L),
2047
+ y(On, {
2048
+ modelValue: je.value,
2049
+ "onUpdate:modelValue": x[0] || (x[0] = (L) => je.value = L),
2037
2050
  data: nn.value,
2038
2051
  class: "w-full",
2039
2052
  onSelect: ft
@@ -2041,15 +2054,15 @@ const cl = { class: "absolute left-0 top-0 h-full w-full flex flex-col rounded-b
2041
2054
  ])
2042
2055
  ]),
2043
2056
  _: 1
2044
- })) : j("", !0),
2045
- b(a(de), {
2057
+ })) : U("", !0),
2058
+ y(a(de), {
2046
2059
  border: "base",
2047
2060
  "h-full": ""
2048
2061
  }, {
2049
2062
  default: M(() => [
2050
- d.value ? (c(), m("div", ml, [
2063
+ d.value ? (c(), h("div", ml, [
2051
2064
  u("div", hl, [
2052
- b(a(Ce), {
2065
+ y(a(Ce), {
2053
2066
  modelValue: i.value,
2054
2067
  "onUpdate:modelValue": x[1] || (x[1] = (L) => i.value = L),
2055
2068
  "loading-debounce-time": 250,
@@ -2057,13 +2070,13 @@ const cl = { class: "absolute left-0 top-0 h-full w-full flex flex-col rounded-b
2057
2070
  placeholder: "Find components...",
2058
2071
  class: "flex-1 text-3.5"
2059
2072
  }, null, 8, ["modelValue", "loading"]),
2060
- a(Tn) ? j("", !0) : q((c(), m("button", {
2073
+ a(Tn) ? U("", !0) : q((c(), h("button", {
2061
2074
  key: 0,
2062
2075
  "px-1": "",
2063
2076
  class: "hover:color-#00dc82",
2064
2077
  onClick: vt
2065
2078
  }, [
2066
- (c(), m("svg", gl, [...x[6] || (x[6] = [
2079
+ (c(), h("svg", gl, [...x[6] || (x[6] = [
2067
2080
  u("path", {
2068
2081
  fill: "currentColor",
2069
2082
  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"
@@ -2071,7 +2084,7 @@ const cl = { class: "absolute left-0 top-0 h-full w-full flex flex-col rounded-b
2071
2084
  ])]))
2072
2085
  ])), [
2073
2086
  [
2074
- a(Y),
2087
+ a(J),
2075
2088
  "Select component in the page",
2076
2089
  void 0,
2077
2090
  { bottom: !0 }
@@ -2083,32 +2096,32 @@ const cl = { class: "absolute left-0 top-0 h-full w-full flex flex-col rounded-b
2083
2096
  ref: Ct,
2084
2097
  class: "no-scrollbar flex-1 select-none overflow-scroll"
2085
2098
  }, [
2086
- b(Oe, {
2087
- modelValue: C.value,
2088
- "onUpdate:modelValue": x[2] || (x[2] = (L) => C.value = L),
2089
- data: R.value,
2099
+ y(Ue, {
2100
+ modelValue: _.value,
2101
+ "onUpdate:modelValue": x[2] || (x[2] = (L) => _.value = L),
2102
+ data: D.value,
2090
2103
  "with-tag": !0,
2091
- onHover: a($).highlight,
2092
- onLeave: a($).unhighlight
2104
+ onHover: a(k).highlight,
2105
+ onLeave: a(k).unhighlight
2093
2106
  }, null, 8, ["modelValue", "data", "onHover", "onLeave"])
2094
2107
  ], 512)
2095
- ])) : j("", !0)
2108
+ ])) : U("", !0)
2096
2109
  ]),
2097
2110
  _: 1
2098
2111
  }),
2099
- b(a(de), {
2112
+ y(a(de), {
2100
2113
  relative: "",
2101
2114
  "h-full": ""
2102
2115
  }, {
2103
2116
  default: M(() => [
2104
2117
  u("div", Cl, [
2105
2118
  u("div", xl, [
2106
- U.value?.name ? (c(), m("span", yl, [
2119
+ H.value?.name ? (c(), h("span", yl, [
2107
2120
  x[7] || (x[7] = u("span", { class: "text-gray-400 dark:text-gray-600" }, "<", -1)),
2108
- u("span", bl, re(U.value.name), 1),
2121
+ u("span", bl, re(H.value.name), 1),
2109
2122
  x[8] || (x[8] = u("span", { class: "text-gray-400 dark:text-gray-600" }, ">", -1))
2110
- ])) : j("", !0),
2111
- b(a(Ce), {
2123
+ ])) : U("", !0),
2124
+ y(a(Ce), {
2112
2125
  modelValue: r.value,
2113
2126
  "onUpdate:modelValue": x[3] || (x[3] = (L) => r.value = L),
2114
2127
  "loading-debounce-time": 250,
@@ -2121,7 +2134,7 @@ const cl = { class: "absolute left-0 top-0 h-full w-full flex flex-col rounded-b
2121
2134
  onClick: ln
2122
2135
  }, null, 512), [
2123
2136
  [
2124
- a(Y),
2137
+ a(J),
2125
2138
  "Scroll to component",
2126
2139
  void 0,
2127
2140
  { bottom: !0 }
@@ -2132,68 +2145,68 @@ const cl = { class: "absolute left-0 top-0 h-full w-full flex flex-col rounded-b
2132
2145
  onClick: gt
2133
2146
  }, null, 512), [
2134
2147
  [
2135
- a(Y),
2148
+ a(J),
2136
2149
  "Show render code",
2137
2150
  void 0,
2138
2151
  { bottom: !0 }
2139
2152
  ]
2140
2153
  ]),
2141
- a(kt) ? q((c(), m("i", {
2154
+ a(kt) ? q((c(), h("i", {
2142
2155
  key: 0,
2143
2156
  class: "i-material-symbols-light:menu-open h-5 w-5 cursor-pointer hover:op-70",
2144
2157
  onClick: sn
2145
2158
  }, null, 512)), [
2146
2159
  [
2147
- a(Y),
2160
+ a(J),
2148
2161
  "Inspect DOM",
2149
2162
  void 0,
2150
2163
  { bottom: !0 }
2151
2164
  ]
2152
- ]) : j("", !0),
2153
- oe.value ? q((c(), m("i", {
2165
+ ]) : U("", !0),
2166
+ ne.value ? q((c(), h("i", {
2154
2167
  key: 1,
2155
2168
  class: "i-carbon-launch h-4 w-4 cursor-pointer hover:op-70",
2156
2169
  onClick: an
2157
2170
  }, null, 512)), [
2158
2171
  [
2159
- a(Y),
2172
+ a(J),
2160
2173
  "Open in Editor",
2161
2174
  void 0,
2162
2175
  { bottom: !0 }
2163
2176
  ]
2164
- ]) : j("", !0)
2177
+ ]) : U("", !0)
2165
2178
  ])
2166
2179
  ]),
2167
- b(He, {
2180
+ y(Oe, {
2168
2181
  class: "no-scrollbar flex-1 overflow-scroll",
2169
- data: se.value,
2170
- "node-id": C.value,
2171
- "inspector-id": Ae,
2182
+ data: ae.value,
2183
+ "node-id": _.value,
2184
+ "inspector-id": Re,
2172
2185
  "expanded-state-id": "component-state"
2173
2186
  }, null, 8, ["data", "node-id"])
2174
2187
  ]),
2175
- A.value && T.value ? (c(), z(pl, {
2188
+ R.value && T.value ? (c(), B(pl, {
2176
2189
  key: 0,
2177
2190
  code: T.value,
2178
2191
  onClose: un
2179
- }, null, 8, ["code"])) : j("", !0)
2192
+ }, null, 8, ["code"])) : U("", !0)
2180
2193
  ]),
2181
2194
  _: 1
2182
2195
  })
2183
2196
  ]),
2184
2197
  _: 1
2185
2198
  }, 8, ["horizontal"]),
2186
- a(kt) ? (c(), z(a(Cn), {
2199
+ a(kt) ? (c(), B(a(Cn), {
2187
2200
  key: 0,
2188
- modelValue: h.value,
2189
- "onUpdate:modelValue": x[5] || (x[5] = (L) => h.value = L),
2201
+ modelValue: g.value,
2202
+ "onUpdate:modelValue": x[5] || (x[5] = (L) => g.value = L),
2190
2203
  title: "",
2191
2204
  height: "12rem",
2192
2205
  closable: !1
2193
2206
  }, {
2194
2207
  footer: M(() => [
2195
2208
  u("div", $l, [
2196
- b(a(fe), { onClick: mt }, {
2209
+ y(a(fe), { onClick: mt }, {
2197
2210
  default: M(() => [...x[11] || (x[11] = [
2198
2211
  Q(" Cancel ", -1)
2199
2212
  ])]),
@@ -2204,7 +2217,7 @@ const cl = { class: "absolute left-0 top-0 h-full w-full flex flex-col rounded-b
2204
2217
  default: M(() => [
2205
2218
  u("div", wl, [
2206
2219
  u("span", kl, [
2207
- (c(), m("svg", Il, [...x[9] || (x[9] = [
2220
+ (c(), h("svg", Il, [...x[9] || (x[9] = [
2208
2221
  u("g", {
2209
2222
  fill: "none",
2210
2223
  stroke: "currentColor",
@@ -2226,12 +2239,12 @@ const cl = { class: "absolute left-0 top-0 h-full w-full flex flex-col rounded-b
2226
2239
  ])
2227
2240
  ]),
2228
2241
  _: 1
2229
- }, 8, ["modelValue"])) : j("", !0)
2242
+ }, 8, ["modelValue"])) : U("", !0)
2230
2243
  ]));
2231
2244
  }
2232
- }), Cs = /* @__PURE__ */ _e(Sl, [["__scopeId", "data-v-fbde5eca"]]), Tl = {}, El = { class: "h-screen w-screen $ui-fcc flex-col" };
2245
+ }), C1 = /* @__PURE__ */ _e(Sl, [["__scopeId", "data-v-fbde5eca"]]), Tl = {}, El = { class: "h-screen w-screen $ui-fcc flex-col" };
2233
2246
  function Vl(e, t) {
2234
- return c(), m("div", El, [
2247
+ return c(), h("div", El, [
2235
2248
  t[0] || (t[0] = u("div", { class: "outer" }, [
2236
2249
  u("div", { class: "inner" }, [
2237
2250
  u("i", {
@@ -2265,7 +2278,7 @@ const Al = {}, Rl = {
2265
2278
  xmlns: "http://www.w3.org/2000/svg"
2266
2279
  };
2267
2280
  function Dl(e, t) {
2268
- return c(), m("svg", Rl, [...t[0] || (t[0] = [
2281
+ return c(), h("svg", Rl, [...t[0] || (t[0] = [
2269
2282
  u("path", {
2270
2283
  fill: "currentColor",
2271
2284
  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"
@@ -2307,23 +2320,23 @@ const Pl = /* @__PURE__ */ _e(Al, [["render", Dl]]), Ll = {
2307
2320
  "mt-5": "",
2308
2321
  "items-center": "",
2309
2322
  "justify-center": ""
2310
- }, Wl = ["href"], ql = /* @__PURE__ */ F({
2323
+ }, Wl = ["href"], ql = /* @__PURE__ */ Z({
2311
2324
  __name: "About",
2312
2325
  setup(e) {
2313
- const t = Le(), o = be(), n = E(!1), l = E(!1);
2326
+ const t = Me(), o = be(), n = E(!1), l = E(!1);
2314
2327
  function s() {
2315
2328
  n.value = !0;
2316
2329
  }
2317
2330
  function p() {
2318
2331
  n.value = !0, l.value = !0;
2319
2332
  }
2320
- return (i, r) => (c(), m("div", Ll, [
2333
+ return (i, r) => (c(), h("div", Ll, [
2321
2334
  u("div", Ml, [
2322
2335
  r[5] || (r[5] = u("div", { "flex-auto": "" }, null, -1)),
2323
2336
  u("div", Hl, [
2324
2337
  u("div", Ol, [
2325
2338
  u("span", Ul, [
2326
- n.value ? j("", !0) : (c(), m("span", jl)),
2339
+ n.value ? U("", !0) : (c(), h("span", jl)),
2327
2340
  q(u("img", {
2328
2341
  src: a(o).logo,
2329
2342
  alt: `${a(o).label} Logo`,
@@ -2333,10 +2346,10 @@ const Pl = /* @__PURE__ */ _e(Al, [["render", Dl]]), Ll = {
2333
2346
  }, null, 40, zl), [
2334
2347
  [vn, n.value && !l.value]
2335
2348
  ]),
2336
- l.value ? (c(), m("span", Bl, re(a(o).label), 1)) : j("", !0)
2349
+ l.value ? (c(), h("span", Bl, re(a(o).label), 1)) : U("", !0)
2337
2350
  ]),
2338
2351
  u("span", null, [
2339
- b(Pl, { "h-18": "" })
2352
+ y(Pl, { "h-18": "" })
2340
2353
  ])
2341
2354
  ]),
2342
2355
  u("div", Zl, [
@@ -2358,7 +2371,7 @@ const Pl = /* @__PURE__ */ _e(Al, [["render", Dl]]), Ll = {
2358
2371
  }, null, -1),
2359
2372
  u("code", null, "State", -1)
2360
2373
  ])]),
2361
- a(o).timelineLayerIds?.length ? (c(), m("div", {
2374
+ a(o).timelineLayerIds?.length ? (c(), h("div", {
2362
2375
  key: 0,
2363
2376
  flex: "~ col auto",
2364
2377
  "min-w-40": "",
@@ -2371,7 +2384,7 @@ const Pl = /* @__PURE__ */ _e(Al, [["render", Dl]]), Ll = {
2371
2384
  "text-3xl": ""
2372
2385
  }, null, -1),
2373
2386
  u("div", null, "Timeline", -1)
2374
- ])])) : j("", !0)
2387
+ ])])) : U("", !0)
2375
2388
  ]),
2376
2389
  u("div", Gl, [
2377
2390
  u("a", {
@@ -2394,7 +2407,7 @@ const Pl = /* @__PURE__ */ _e(Al, [["render", Dl]]), Ll = {
2394
2407
  }), 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 = {
2395
2408
  key: 0,
2396
2409
  class: "flex justify-start"
2397
- }, e1 = { key: 1 }, en = /* @__PURE__ */ F({
2410
+ }, es = { key: 1 }, en = /* @__PURE__ */ Z({
2398
2411
  __name: "Settings",
2399
2412
  props: {
2400
2413
  pluginId: {},
@@ -2403,59 +2416,59 @@ const Pl = /* @__PURE__ */ _e(Al, [["render", Dl]]), Ll = {
2403
2416
  },
2404
2417
  emits: ["update"],
2405
2418
  setup(e, { emit: t }) {
2406
- const o = e, n = t, l = S(() => o.options), s = S(() => o.values);
2419
+ const o = e, n = t, l = $(() => o.options), s = $(() => o.values);
2407
2420
  function p(i, r) {
2408
2421
  V.value.updatePluginSettings(o.pluginId, i, r), V.value.getPluginSettings(o.pluginId).then((f) => {
2409
2422
  n("update", f);
2410
2423
  });
2411
2424
  }
2412
- return (i, r) => (c(), m("div", Jl, [
2425
+ return (i, r) => (c(), h("div", Jl, [
2413
2426
  u("ul", null, [
2414
- (c(!0), m(le, null, ce(l.value, (f, v) => (c(), m("li", {
2415
- key: v,
2427
+ (c(!0), h(se, null, ce(l.value, (f, m) => (c(), h("li", {
2428
+ key: m,
2416
2429
  class: "flex items-center py-2"
2417
2430
  }, [
2418
2431
  u("div", Yl, re(f.label), 1),
2419
2432
  u("div", Xl, [
2420
- f.type === "boolean" ? (c(), m("div", Ql, [
2421
- b(a(xn), {
2422
- "model-value": s.value[v],
2433
+ f.type === "boolean" ? (c(), h("div", Ql, [
2434
+ y(a(xn), {
2435
+ "model-value": s.value[m],
2423
2436
  class: "row-reverse flex py1 pl2 pr1 hover:bg-active",
2424
- "onUpdate:modelValue": (d) => p(v, d)
2437
+ "onUpdate:modelValue": (d) => p(m, d)
2425
2438
  }, null, 8, ["model-value", "onUpdate:modelValue"])
2426
- ])) : f.type === "choice" ? (c(), m("div", e1, [
2427
- b(a(yn), {
2428
- "model-value": s.value[v],
2439
+ ])) : f.type === "choice" ? (c(), h("div", es, [
2440
+ y(a(yn), {
2441
+ "model-value": s.value[m],
2429
2442
  options: f.options,
2430
- "onUpdate:modelValue": (d) => p(v, d)
2443
+ "onUpdate:modelValue": (d) => p(m, d)
2431
2444
  }, null, 8, ["model-value", "options", "onUpdate:modelValue"])
2432
- ])) : f.type === "text" ? (c(), z(a(Ce), {
2445
+ ])) : f.type === "text" ? (c(), B(a(Ce), {
2433
2446
  key: 2,
2434
- "model-value": s.value[v],
2435
- "onUpdate:modelValue": (d) => p(v, d)
2436
- }, null, 8, ["model-value", "onUpdate:modelValue"])) : j("", !0)
2447
+ "model-value": s.value[m],
2448
+ "onUpdate:modelValue": (d) => p(m, d)
2449
+ }, null, 8, ["model-value", "onUpdate:modelValue"])) : U("", !0)
2437
2450
  ])
2438
2451
  ]))), 128))
2439
2452
  ])
2440
2453
  ]));
2441
2454
  }
2442
- }), t1 = { class: "h-full flex flex-col" }, n1 = /* @__PURE__ */ F({
2455
+ }), ts = { class: "h-full flex flex-col" }, ns = /* @__PURE__ */ Z({
2443
2456
  __name: "Settings",
2444
2457
  setup(e) {
2445
- const t = ge("pluginSettings"), o = be(), n = S(() => t.value.options), l = S(() => t.value.values);
2458
+ const t = ge("pluginSettings"), o = be(), n = $(() => t.value.options), l = $(() => t.value.values);
2446
2459
  function s(p) {
2447
2460
  t.value = p;
2448
2461
  }
2449
- return (p, i) => (c(), m("div", t1, [
2450
- b(Te, {
2462
+ return (p, i) => (c(), h("div", ts, [
2463
+ y(Ve, {
2451
2464
  "doc-link": a(o).homepage
2452
2465
  }, {
2453
2466
  default: M(() => [
2454
- b(Ee)
2467
+ y(Ne)
2455
2468
  ]),
2456
2469
  _: 1
2457
2470
  }, 8, ["doc-link"]),
2458
- b(en, {
2471
+ y(en, {
2459
2472
  "plugin-id": a(o).pluginId,
2460
2473
  options: n.value,
2461
2474
  values: l.value,
@@ -2463,170 +2476,170 @@ const Pl = /* @__PURE__ */ _e(Al, [["render", Dl]]), Ll = {
2463
2476
  }, null, 8, ["plugin-id", "options", "values"])
2464
2477
  ]));
2465
2478
  }
2466
- }), o1 = { class: "h-full flex flex-col" }, l1 = { class: "h-full flex flex-col p2" }, s1 = {
2479
+ }), os = { class: "h-full flex flex-col" }, ls = { class: "h-full flex flex-col p2" }, ss = {
2467
2480
  class: "grid grid-cols-[1fr_auto] mb1 items-center gap2 pb1",
2468
2481
  border: "b dashed base"
2469
- }, a1 = {
2482
+ }, as = {
2470
2483
  key: 0,
2471
2484
  class: "flex items-center gap-2 px-1"
2472
- }, i1 = ["onClick"], r1 = {
2485
+ }, is = ["onClick"], rs = {
2473
2486
  key: 0,
2474
2487
  class: "no-scrollbar flex-1 select-none overflow-scroll"
2475
- }, u1 = { class: "h-full flex flex-col p2" }, c1 = {
2488
+ }, us = { class: "h-full flex flex-col p2" }, cs = {
2476
2489
  class: "grid grid-cols-[1fr_auto] mb1 items-center gap2 pb1",
2477
2490
  border: "b dashed base"
2478
- }, d1 = {
2491
+ }, ds = {
2479
2492
  key: 0,
2480
2493
  class: "flex items-center gap-2 px-1"
2481
- }, p1 = ["onClick"], f1 = /* @__PURE__ */ F({
2494
+ }, ps = ["onClick"], fs = /* @__PURE__ */ Z({
2482
2495
  __name: "Index",
2483
2496
  setup(e) {
2484
- const { expanded: t } = xe(), { expanded: o } = xe("custom-inspector-state"), n = be(), l = S(() => n.value.id), s = E([]), p = E([]), i = E([]), r = S(() => i.value?.length ? N(i.value?.[0]) : []), f = S(() => R(i.value)), v = S(() => f.value.map((g) => g.id)), d = E(""), h = E({}), T = S(() => !Object.keys(h.value).length), A = be(), $ = E(""), I = E("");
2485
- te($, (g, y) => {
2486
- !g.trim().length && !y.trim().length || se(g);
2497
+ const { expanded: t } = xe(), { expanded: o } = xe("custom-inspector-state"), n = be(), l = $(() => n.value.id), s = E([]), p = E([]), i = E([]), r = $(() => i.value?.length ? A(i.value?.[0]) : []), f = $(() => D(i.value)), m = $(() => f.value.map((v) => v.id)), d = E(""), g = E({}), T = $(() => !Object.keys(g.value).length), R = be(), k = E(""), S = E("");
2498
+ te(k, (v, C) => {
2499
+ !v.trim().length && !C.trim().length || ae(v);
2487
2500
  });
2488
- const P = S(() => tt({
2489
- state: h.value,
2490
- filterKey: I.value
2501
+ const N = $(() => tt({
2502
+ state: g.value,
2503
+ filterKey: S.value
2491
2504
  }));
2492
- function N(g, y = [], D = []) {
2493
- return y.push(g.id), g.children?.length === 0 && D.push([...y]), Array.isArray(g.children) && g.children.forEach((Z) => {
2494
- N(Z, y, D);
2495
- }), y.pop(), D;
2496
- }
2497
- function w(g, y) {
2498
- const D = [];
2499
- return g?.forEach((Z) => {
2500
- D.push(...Z.slice(0, y + 1));
2501
- }), [...new Set(D)];
2502
- }
2503
- function R(g) {
2504
- const y = [], D = (Z) => {
2505
- Z?.forEach((ae) => {
2506
- y.push(ae), ae.children?.length && D(ae.children);
2505
+ function A(v, C = [], P = []) {
2506
+ return C.push(v.id), v.children?.length === 0 && P.push([...C]), Array.isArray(v.children) && v.children.forEach((z) => {
2507
+ A(z, C, P);
2508
+ }), C.pop(), P;
2509
+ }
2510
+ function w(v, C) {
2511
+ const P = [];
2512
+ return v?.forEach((z) => {
2513
+ P.push(...z.slice(0, C + 1));
2514
+ }), [...new Set(P)];
2515
+ }
2516
+ function D(v) {
2517
+ const C = [], P = (z) => {
2518
+ z?.forEach((oe) => {
2519
+ C.push(oe), oe.children?.length && P(oe.children);
2507
2520
  });
2508
2521
  };
2509
- return D(g), y;
2522
+ return P(v), C;
2510
2523
  }
2511
- function B() {
2512
- V.value.getInspectorNodeActions(l.value).then((g) => {
2513
- s.value = g;
2524
+ function j() {
2525
+ V.value.getInspectorNodeActions(l.value).then((v) => {
2526
+ s.value = v;
2514
2527
  });
2515
2528
  }
2516
- function G() {
2517
- V.value.getInspectorActions(l.value).then((g) => {
2518
- p.value = g;
2529
+ function K() {
2530
+ V.value.getInspectorActions(l.value).then((v) => {
2531
+ p.value = v;
2519
2532
  });
2520
2533
  }
2521
- B(), G();
2522
- function W(g) {
2523
- V.value.callInspectorNodeAction(l.value, g, d.value);
2534
+ j(), K();
2535
+ function G(v) {
2536
+ V.value.callInspectorNodeAction(l.value, v, d.value);
2524
2537
  }
2525
- function O(g) {
2526
- V.value.callInspectorAction(l.value, g);
2538
+ function O(v) {
2539
+ V.value.callInspectorAction(l.value, v);
2527
2540
  }
2528
- function C(g) {
2529
- for (const y in g)
2530
- g[y]?.length || delete g[y];
2531
- return g;
2541
+ function _(v) {
2542
+ for (const C in v)
2543
+ v[C]?.length || delete v[C];
2544
+ return v;
2532
2545
  }
2533
- function U(g) {
2534
- V.value.getInspectorState({ inspectorId: l.value, nodeId: g }).then((y) => {
2535
- const D = ne(y);
2536
- D && (h.value = C(D), o.value = Array.from({ length: Object.keys(h.value).length }, (Z, ae) => `${ae}`));
2546
+ function H(v) {
2547
+ V.value.getInspectorState({ inspectorId: l.value, nodeId: v }).then((C) => {
2548
+ const P = le(C);
2549
+ P && (g.value = _(P), o.value = Array.from({ length: Object.keys(g.value).length }, (z, oe) => `${oe}`));
2537
2550
  });
2538
2551
  }
2539
- function oe() {
2540
- h.value = {};
2552
+ function ne() {
2553
+ g.value = {};
2541
2554
  }
2542
2555
  te(d, () => {
2543
- oe(), U(d.value);
2556
+ ne(), H(d.value);
2544
2557
  });
2545
- function se(g = "") {
2546
- V.value.getInspectorTree({ inspectorId: l.value, filter: g }).then((y) => {
2547
- const D = ne(y);
2548
- i.value = D, !d.value && D.length && (d.value = D[0].id, t.value = w(r.value, 1), U(D[0].id));
2558
+ function ae(v = "") {
2559
+ V.value.getInspectorTree({ inspectorId: l.value, filter: v }).then((C) => {
2560
+ const P = le(C);
2561
+ i.value = P, !d.value && P.length && (d.value = P[0].id, t.value = w(r.value, 1), H(P[0].id));
2549
2562
  });
2550
2563
  }
2551
- Gt(l).toBeTruthy().then(() => se());
2552
- function H(g) {
2553
- const y = ne(g);
2554
- !y.rootNodes.length || y.inspectorId !== l.value || (i.value = y.rootNodes, v.value.includes(d.value) || (d.value = i.value?.[0]?.id, t.value = w(r.value, 1)));
2564
+ Gt(l).toBeTruthy().then(() => ae());
2565
+ function W(v) {
2566
+ const C = le(v);
2567
+ !C.rootNodes.length || C.inspectorId !== l.value || (i.value = C.rootNodes, m.value.includes(d.value) || (d.value = i.value?.[0]?.id, t.value = w(r.value, 1)));
2555
2568
  }
2556
- function k(g) {
2557
- const y = ne(g);
2558
- if (y.inspectorId !== l.value || !y.state || y.nodeId !== d.value)
2569
+ function I(v) {
2570
+ const C = le(v);
2571
+ if (C.inspectorId !== l.value || !C.state || C.nodeId !== d.value)
2559
2572
  return;
2560
- const { inspectorId: D, ...Z } = y.state;
2561
- h.value = C(Z);
2562
- }
2563
- return De(() => {
2564
- V.functions.on(X.INSPECTOR_TREE_UPDATED, H), V.functions.on(X.INSPECTOR_STATE_UPDATED, k);
2565
- }), ke(() => {
2566
- V.functions.off(X.INSPECTOR_TREE_UPDATED, H), V.functions.off(X.INSPECTOR_STATE_UPDATED, k);
2567
- }), (g, y) => (c(), m("div", o1, [
2568
- b(Te, {
2573
+ const { inspectorId: P, ...z } = C.state;
2574
+ g.value = _(z);
2575
+ }
2576
+ return Pe(() => {
2577
+ V.functions.on(X.INSPECTOR_TREE_UPDATED, W), V.functions.on(X.INSPECTOR_STATE_UPDATED, I);
2578
+ }), Ie(() => {
2579
+ V.functions.off(X.INSPECTOR_TREE_UPDATED, W), V.functions.off(X.INSPECTOR_STATE_UPDATED, I);
2580
+ }), (v, C) => (c(), h("div", os, [
2581
+ y(Ve, {
2569
2582
  "doc-link": a(n).homepage
2570
2583
  }, {
2571
2584
  default: M(() => [
2572
- b(Ee)
2585
+ y(Ne)
2573
2586
  ]),
2574
2587
  _: 1
2575
2588
  }, 8, ["doc-link"]),
2576
- !i.value.length && !$.value.trim().length ? (c(), z($e, { key: 0 }, {
2577
- default: M(() => [...y[3] || (y[3] = [
2589
+ !i.value.length && !k.value.trim().length ? (c(), B(Te, { key: 0 }, {
2590
+ default: M(() => [...C[3] || (C[3] = [
2578
2591
  Q(" No Data ", -1)
2579
2592
  ])]),
2580
2593
  _: 1
2581
- })) : (c(), z(a(Pe), {
2594
+ })) : (c(), B(a(Le), {
2582
2595
  key: 1,
2583
2596
  class: "flex-1 overflow-auto"
2584
2597
  }, {
2585
2598
  default: M(() => [
2586
- b(a(de), {
2599
+ y(a(de), {
2587
2600
  border: "r base",
2588
2601
  size: "40",
2589
2602
  "h-full": ""
2590
2603
  }, {
2591
2604
  default: M(() => [
2592
- u("div", l1, [
2593
- u("div", s1, [
2594
- b(a(Ce), {
2595
- modelValue: $.value,
2596
- "onUpdate:modelValue": y[0] || (y[0] = (D) => $.value = D),
2597
- placeholder: a(A).treeFilterPlaceholder
2605
+ u("div", ls, [
2606
+ u("div", ss, [
2607
+ y(a(Ce), {
2608
+ modelValue: k.value,
2609
+ "onUpdate:modelValue": C[0] || (C[0] = (P) => k.value = P),
2610
+ placeholder: a(R).treeFilterPlaceholder
2598
2611
  }, null, 8, ["modelValue", "placeholder"]),
2599
- p.value?.length ? (c(), m("div", a1, [
2600
- (c(!0), m(le, null, ce(p.value, (D, Z) => q((c(), m("div", {
2601
- key: Z,
2612
+ p.value?.length ? (c(), h("div", as, [
2613
+ (c(!0), h(se, null, ce(p.value, (P, z) => q((c(), h("div", {
2614
+ key: z,
2602
2615
  class: "flex items-center gap1",
2603
- onClick: (ae) => O(Z)
2616
+ onClick: (oe) => O(z)
2604
2617
  }, [
2605
- b(a(Ze), {
2606
- name: `baseline-${D.icon.replace(/\_/g, "-")}`,
2618
+ y(a(Fe), {
2619
+ name: `baseline-${P.icon.replace(/\_/g, "-")}`,
2607
2620
  "cursor-pointer": "",
2608
2621
  "text-base": "",
2609
2622
  op70: "",
2610
2623
  "hover:op100": ""
2611
2624
  }, null, 8, ["name"])
2612
- ], 8, i1)), [
2625
+ ], 8, is)), [
2613
2626
  [
2614
- a(Y),
2615
- { content: D.tooltip },
2627
+ a(J),
2628
+ { content: P.tooltip },
2616
2629
  void 0,
2617
2630
  { "bottom-end": !0 }
2618
2631
  ]
2619
2632
  ])), 128))
2620
- ])) : j("", !0)
2633
+ ])) : U("", !0)
2621
2634
  ]),
2622
- i.value.length ? (c(), m("div", r1, [
2623
- b(Oe, {
2635
+ i.value.length ? (c(), h("div", rs, [
2636
+ y(Ue, {
2624
2637
  modelValue: d.value,
2625
- "onUpdate:modelValue": y[1] || (y[1] = (D) => d.value = D),
2638
+ "onUpdate:modelValue": C[1] || (C[1] = (P) => d.value = P),
2626
2639
  data: i.value
2627
2640
  }, null, 8, ["modelValue", "data"])
2628
- ])) : (c(), z($e, { key: 1 }, {
2629
- default: M(() => [...y[4] || (y[4] = [
2641
+ ])) : (c(), B(Te, { key: 1 }, {
2642
+ default: M(() => [...C[4] || (C[4] = [
2630
2643
  Q(" No Data ", -1)
2631
2644
  ])]),
2632
2645
  _: 1
@@ -2635,47 +2648,47 @@ const Pl = /* @__PURE__ */ _e(Al, [["render", Dl]]), Ll = {
2635
2648
  ]),
2636
2649
  _: 1
2637
2650
  }),
2638
- b(a(de), { size: "60" }, {
2651
+ y(a(de), { size: "60" }, {
2639
2652
  default: M(() => [
2640
- u("div", u1, [
2641
- u("div", c1, [
2642
- b(a(Ce), {
2643
- modelValue: I.value,
2644
- "onUpdate:modelValue": y[2] || (y[2] = (D) => I.value = D),
2645
- placeholder: a(A).stateFilterPlaceholder
2653
+ u("div", us, [
2654
+ u("div", cs, [
2655
+ y(a(Ce), {
2656
+ modelValue: S.value,
2657
+ "onUpdate:modelValue": C[2] || (C[2] = (P) => S.value = P),
2658
+ placeholder: a(R).stateFilterPlaceholder
2646
2659
  }, null, 8, ["modelValue", "placeholder"]),
2647
- s.value?.length ? (c(), m("div", d1, [
2648
- (c(!0), m(le, null, ce(s.value, (D, Z) => q((c(), m("div", {
2649
- key: Z,
2660
+ s.value?.length ? (c(), h("div", ds, [
2661
+ (c(!0), h(se, null, ce(s.value, (P, z) => q((c(), h("div", {
2662
+ key: z,
2650
2663
  class: "flex items-center gap1",
2651
- onClick: (ae) => W(Z)
2664
+ onClick: (oe) => G(z)
2652
2665
  }, [
2653
- b(a(Ze), {
2654
- name: `baseline-${D.icon.replace(/\_/g, "-")}`,
2666
+ y(a(Fe), {
2667
+ name: `baseline-${P.icon.replace(/\_/g, "-")}`,
2655
2668
  "cursor-pointer": "",
2656
2669
  "text-base": "",
2657
2670
  op70: "",
2658
2671
  "hover:op100": ""
2659
2672
  }, null, 8, ["name"])
2660
- ], 8, p1)), [
2673
+ ], 8, ps)), [
2661
2674
  [
2662
- a(Y),
2663
- { content: D.tooltip },
2675
+ a(J),
2676
+ { content: P.tooltip },
2664
2677
  void 0,
2665
2678
  { "bottom-end": !0 }
2666
2679
  ]
2667
2680
  ])), 128))
2668
- ])) : j("", !0)
2681
+ ])) : U("", !0)
2669
2682
  ]),
2670
- d.value && !T.value ? (c(), z(He, {
2683
+ d.value && !T.value ? (c(), B(Oe, {
2671
2684
  key: 0,
2672
- data: P.value,
2685
+ data: N.value,
2673
2686
  "node-id": d.value,
2674
2687
  "inspector-id": l.value,
2675
2688
  "expanded-state-id": "custom-inspector-state",
2676
2689
  class: "no-scrollbar flex-1 overflow-scroll"
2677
- }, null, 8, ["data", "node-id", "inspector-id"])) : (c(), z($e, { key: 1 }, {
2678
- default: M(() => [...y[5] || (y[5] = [
2690
+ }, null, 8, ["data", "node-id", "inspector-id"])) : (c(), B(Te, { key: 1 }, {
2691
+ default: M(() => [...C[5] || (C[5] = [
2679
2692
  Q(" No Data ", -1)
2680
2693
  ])]),
2681
2694
  _: 1
@@ -2689,20 +2702,20 @@ const Pl = /* @__PURE__ */ _e(Al, [["render", Dl]]), Ll = {
2689
2702
  }))
2690
2703
  ]));
2691
2704
  }
2692
- }), v1 = /* @__PURE__ */ F({
2705
+ }), vs = /* @__PURE__ */ Z({
2693
2706
  __name: "Index",
2694
2707
  setup(e) {
2695
2708
  const t = be();
2696
- return (o, n) => (c(), z(ct, {
2709
+ return (o, n) => (c(), B(ct, {
2697
2710
  "layer-ids": a(t).timelineLayerIds,
2698
2711
  "doc-link": a(t).homepage,
2699
2712
  "plugin-id": a(t).pluginId
2700
2713
  }, null, 8, ["layer-ids", "doc-link", "plugin-id"]));
2701
2714
  }
2702
- }), m1 = {
2715
+ }), ms = {
2703
2716
  "h-full": "",
2704
2717
  "w-full": ""
2705
- }, h1 = { key: 0 }, xs = /* @__PURE__ */ F({
2718
+ }, hs = { key: 0 }, x1 = /* @__PURE__ */ Z({
2706
2719
  __name: "index",
2707
2720
  props: {
2708
2721
  id: {},
@@ -2712,17 +2725,17 @@ const Pl = /* @__PURE__ */ _e(Al, [["render", Dl]]), Ll = {
2712
2725
  setup(e, { emit: t }) {
2713
2726
  const o = e, n = t, l = dt(), s = E(!1), p = E(null);
2714
2727
  ye("pluginSettings", p);
2715
- const i = S(() => [
2728
+ const i = $(() => [
2716
2729
  {
2717
2730
  path: "/state",
2718
2731
  name: "State",
2719
- component: f1,
2732
+ component: fs,
2720
2733
  icon: "i-carbon-tree-view-alt"
2721
2734
  },
2722
2735
  l.value.timelineLayerIds?.length && {
2723
2736
  path: "/timeline",
2724
2737
  name: "Timeline",
2725
- component: v1,
2738
+ component: vs,
2726
2739
  icon: "i-mdi:timeline-clock-outline"
2727
2740
  },
2728
2741
  {
@@ -2733,20 +2746,20 @@ const Pl = /* @__PURE__ */ _e(Al, [["render", Dl]]), Ll = {
2733
2746
  p.value && {
2734
2747
  path: "/settings",
2735
2748
  name: "Settings",
2736
- component: n1,
2749
+ component: ns,
2737
2750
  icon: "i-mdi:cog-outline"
2738
2751
  }
2739
2752
  ].filter(Boolean)), { VirtualRouterView: r, restoreRouter: f } = ot(i, {
2740
2753
  defaultRoutePath: "/state"
2741
2754
  });
2742
- function v() {
2743
- s.value = !0, De(() => {
2755
+ function m() {
2756
+ s.value = !0, Pe(() => {
2744
2757
  V.value.getInspectorInfo(o.id).then((d) => {
2745
2758
  if (!d) {
2746
2759
  n("loadError");
2747
2760
  return;
2748
2761
  }
2749
- const h = {
2762
+ const g = {
2750
2763
  homepage: d?.homepage,
2751
2764
  id: d?.id,
2752
2765
  label: d?.label,
@@ -2756,62 +2769,62 @@ const Pl = /* @__PURE__ */ _e(Al, [["render", Dl]]), Ll = {
2756
2769
  treeFilterPlaceholder: d.treeFilterPlaceholder,
2757
2770
  stateFilterPlaceholder: d.stateFilterPlaceholder
2758
2771
  };
2759
- l.value = h, f(), s.value = !1;
2772
+ l.value = g, f(), s.value = !1;
2760
2773
  }), V.value.getPluginSettings(o.pluginId).then((d) => {
2761
2774
  d.options ? p.value = d : p.value = null;
2762
2775
  });
2763
2776
  });
2764
2777
  }
2765
2778
  return te(() => o.id, () => {
2766
- v();
2779
+ m();
2767
2780
  }, {
2768
2781
  immediate: !0
2769
- }), ke(() => {
2782
+ }), Ie(() => {
2770
2783
  V.value.unhighlight();
2771
- }), (d, h) => (c(), m("div", m1, [
2772
- s.value ? (c(), m("div", h1, [
2773
- b(Nl)
2774
- ])) : (c(), z(a(r), { key: 1 }))
2784
+ }), (d, g) => (c(), h("div", ms, [
2785
+ s.value ? (c(), h("div", hs, [
2786
+ y(Nl)
2787
+ ])) : (c(), B(a(r), { key: 1 }))
2775
2788
  ]));
2776
2789
  }
2777
- }), g1 = {}, C1 = {
2790
+ }), gs = {}, Cs = {
2778
2791
  viewBox: "0 0 566 154",
2779
2792
  fill: "none",
2780
2793
  xmlns: "http://www.w3.org/2000/svg"
2781
2794
  };
2782
- function x1(e, t) {
2783
- return c(), m("svg", C1, [...t[0] || (t[0] = [
2795
+ function xs(e, t) {
2796
+ return c(), h("svg", Cs, [...t[0] || (t[0] = [
2784
2797
  mn('<svg height="130" viewBox="0 0 319 477" width="180" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><linearGradient id="a"><stop offset="0" stop-color="#52ce63"></stop><stop offset="1" stop-color="#51a256"></stop></linearGradient><linearGradient id="b" x1="55.342075%" x2="42.816933%" xlink:href="#a" y1="0%" y2="42.862855%"></linearGradient><linearGradient id="c" x1="55.348642%" x2="42.808103%" xlink:href="#a" y1="0%" y2="42.862855%"></linearGradient><linearGradient id="d" x1="50%" x2="50%" y1="0%" y2="58.811243%"><stop offset="0" stop-color="#8ae99c"></stop><stop offset="1" stop-color="#52ce63"></stop></linearGradient><linearGradient id="e" x1="51.37763%" x2="44.584719%" y1="17.472551%" y2="100%"><stop offset="0" stop-color="#ffe56c"></stop><stop offset="1" stop-color="#ffc63a"></stop></linearGradient><g fill="none" fill-rule="evenodd" transform="translate(-34 -24)"><g transform="matrix(.99254615 .12186934 -.12186934 .99254615 33.922073 .976691)"><path d="m103.950535 258.274149c44.361599-4.360825 60.014503-40.391282 65.353094-94.699444s-30.93219-103.451001-46.020347-101.9678079c-15.088156 1.4831932-63.0385313 58.9051239-68.3771222 113.2132869-5.3385908 54.308162 4.6827754 87.814791 49.0443752 83.453965z" fill="url(#b)" transform="matrix(.70710678 -.70710678 .70710678 .70710678 -80.496332 125.892944)"></path><path d="m275.876752 258.273992c44.3616 4.360826 53.167133-29.265322 47.828542-83.573485-5.338591-54.308162-52.073133-111.6105744-67.16129-113.0937675-15.088156-1.4831931-52.57477 47.5401275-47.236179 101.8482895s22.207328 90.458137 66.568927 94.818963z" fill="url(#c)" transform="matrix(.70710678 .70710678 -.70710678 .70710678 191.403399 -141.861963)"></path><path d="m188.370027 216.876305c39.941834 0 50.95265-38.251987 50.95265-97.89874 0-59.6467532-37.367733-118.10125956-50.95265-118.10125956s-52.04735 58.45450636-52.04735 118.10125956c0 59.646753 12.105516 97.89874 52.04735 97.89874z" fill="url(#d)"></path></g><path d="m184.473473 501c83.118854 0 150.526527-24.145148 150.526527-133.645148s-67.407673-199.354852-150.526527-199.354852c-83.118855 0-150.473473 89.854852-150.473473 199.354852s67.354618 133.645148 150.473473 133.645148z" fill="url(#e)"></path><ellipse cx="260.5" cy="335" fill="#eaadcc" rx="21.5" ry="10"></ellipse><ellipse cx="102.5" cy="329" fill="#eaadcc" rx="21.5" ry="10" transform="matrix(.99254615 .12186934 -.12186934 .99254615 40.859033 -10.039292)"></ellipse><g transform="matrix(-.99939083 .0348995 .0348995 .99939083 269.284825 271.027667)"><path d="m73.1046985 58.2728794c6.7372416 4.9130333 14.3132632 6.6640587 22.7280649 5.2530761 8.4148016-1.4109825 14.5054466-5.2535769 18.2719346-11.527783" stroke="#000" stroke-linecap="round" stroke-linejoin="round" stroke-width="6" transform="matrix(.9998477 .01745241 -.01745241 .9998477 1.026464 -1.624794)"></path><path d="m154.501124 3c-5.937545 0-11.312782 2.40629805-15.203644 6.29680621-3.89094 3.89058529-6.29748 9.26545449-6.29748 15.20263179 0 5.9376888 2.406488 11.3127422 6.297291 15.2034272 3.890886 3.8907673 9.266197 6.2971348 15.203833 6.2971348 5.937109 0 11.311896-2.4063889 15.202387-6.2972348 3.890299-3.8906535 6.296489-9.2656636 6.296489-15.2033272 0-5.9371521-2.406242-11.3119781-6.296677-15.20253181-3.890469-3.89058674-9.265181-6.29690619-15.202199-6.29690619z" fill="#000"></path><path d="m154 21c0-3.865549 3.135362-7 6.999413-7 3.866399 0 7.000587 3.134451 7.000587 7s-3.134188 7-7.000587 7c-3.864051-.0011735-6.999413-3.134451-6.999413-7z" fill="#fff"></path><path d="m24.5 13c-5.9375292 0-11.312426 2.406268-15.20299427 6.2967181-3.89069464 3.8905765-6.29700573 9.2654765-6.29700573 15.2027199 0 5.9377549 2.40625962 11.3128391 6.29681766 15.2035153 3.89059104 3.8907092 9.26556184 6.2970467 15.20318234 6.2970467 5.9371249 0 11.3122514-2.406419 15.2030371-6.2973229 3.8905441-3.8906623 6.2969629-9.2656416 6.2969629-15.2032391 0-5.937086-2.4064703-11.3118811-6.297151-15.2024437-3.890763-3.8906448-9.2658154-6.2969943-15.202849-6.2969943z" fill="#000"></path><g fill="#fff"><path d="m136 24.499438c0 10.2185232 8.282911 18.500562 18.501124 18.500562 10.217089 0 18.498876-8.2820388 18.498876-18.500562 0-10.2173992-8.281787-18.499438-18.498876-18.499438-10.218213 0-18.501124 8.2820388-18.501124 18.499438zm-6 0c0-13.5311954 10.96929-24.499438 24.501124-24.499438 13.530838 0 24.498876 10.9683711 24.498876 24.499438 0 13.5319607-10.967808 24.500562-24.498876 24.500562-13.532064 0-24.501124-10.9684728-24.501124-24.500562z" fill-rule="nonzero" stroke="#fff" stroke-width="3"></path><path d="m6 34.499438c0 10.2185232 8.2817873 18.500562 18.5 18.500562 10.2170889 0 18.5-8.2820388 18.5-18.500562 0-10.2173992-8.2829111-18.499438-18.5-18.499438-10.2182127 0-18.5 8.2820388-18.5 18.499438zm-6 0c0-13.531297 10.9682681-24.499438 24.5-24.499438 13.5309398 0 24.5 10.9684728 24.5 24.499438 0 13.5318591-10.96883 24.500562-24.5 24.500562-13.531962 0-24.5-10.9683711-24.5-24.500562z" fill-rule="nonzero" stroke="#fff" stroke-width="3"></path><path d="m24 31c0-3.865549 3.134451-7 7-7s7 3.134451 7 7-3.134451 7-7 7-7-3.134451-7-7z"></path></g></g><g stroke-linecap="round" stroke-width="11"><g stroke="#ecb732"><path d="m70.5 377.5 74 77"></path><path d="m134.5 386.5-47 50"></path></g><g stroke="#ecb732" transform="matrix(-1 0 0 1 298 377)"><path d="m.5.5 74 77"></path><path d="m64.5 9.5-47 50"></path></g><g stroke="#ffc73b" transform="matrix(0 1 -1 0 215 207)"><path d="m.5.5 49 49"></path><path d="m.5 10.5 49 49" transform="matrix(-1 0 0 1 50 0)"></path></g></g></g></svg><path d="M152.571 118V46.1333H176.8C183.576 46.1333 189.77 47.468 195.383 50.1373C200.995 52.8067 205.478 56.8449 208.832 62.252C212.186 67.5907 213.863 74.1956 213.863 82.0667C213.863 89.8693 212.186 96.4742 208.832 101.881C205.478 107.288 200.995 111.327 195.383 113.996C189.77 116.665 183.576 118 176.8 118H152.571ZM175.157 104.653C181.796 104.653 187.306 102.874 191.687 99.3147C196.067 95.6871 198.257 89.9378 198.257 82.0667C198.257 74.1956 196.067 68.4462 191.687 64.8187C187.306 61.1911 181.796 59.3773 175.157 59.3773H167.971V104.653H175.157ZM270.18 100.444C269.153 105.988 266.381 110.437 261.864 113.791C257.347 117.144 251.905 118.821 245.54 118.821C239.928 118.821 235.102 117.555 231.064 115.023C227.094 112.422 224.083 109.068 222.029 104.961C219.976 100.855 218.949 96.5427 218.949 92.0253C218.949 87.4396 219.873 83.1276 221.721 79.0893C223.638 75.0511 226.513 71.7658 230.345 69.2333C234.247 66.7009 238.969 65.4347 244.513 65.4347C250.263 65.4347 255.054 66.6667 258.887 69.1307C262.72 71.5947 265.526 74.7431 267.305 78.576C269.153 82.4089 270.077 86.4471 270.077 90.6907C270.077 92.2649 270.009 93.8049 269.872 95.3107H232.707C233.254 99.0067 234.623 101.916 236.813 104.037C239.072 106.091 241.981 107.117 245.54 107.117C248.415 107.117 250.776 106.57 252.624 105.475C254.472 104.311 255.67 102.634 256.217 100.444H270.18ZM244.513 75.9067C241.228 75.9067 238.627 76.7622 236.711 78.4733C234.794 80.116 233.528 82.7169 232.912 86.276H255.807C255.601 83.2644 254.506 80.8004 252.521 78.884C250.537 76.8991 247.867 75.9067 244.513 75.9067ZM302.77 118H289.629L270.738 66.256H285.317L296.2 99.7253L306.98 66.256H321.661L302.77 118ZM359.731 118H344.331V59.3773H323.079V46.1333H380.983V59.3773H359.731V118ZM402.364 118.821C397.163 118.821 392.474 117.692 388.299 115.433C384.124 113.106 380.873 109.924 378.546 105.885C376.219 101.779 375.055 97.1929 375.055 92.128C375.055 87.0631 376.219 82.5116 378.546 78.4733C380.873 74.3667 384.124 71.184 388.299 68.9253C392.474 66.5982 397.163 65.4347 402.364 65.4347C407.566 65.4347 412.255 66.5982 416.43 68.9253C420.605 71.184 423.856 74.3667 426.183 78.4733C428.51 82.5116 429.674 87.0631 429.674 92.128C429.674 97.1929 428.51 101.779 426.183 105.885C423.856 109.924 420.605 113.106 416.43 115.433C412.255 117.692 407.566 118.821 402.364 118.821ZM402.364 106.501C406.197 106.501 409.311 105.167 411.707 102.497C414.103 99.828 415.3 96.3716 415.3 92.128C415.3 87.816 414.103 84.3253 411.707 81.656C409.311 78.9867 406.197 77.652 402.364 77.652C398.531 77.652 395.417 78.9867 393.022 81.656C390.626 84.3253 389.428 87.816 389.428 92.128C389.428 96.3716 390.626 99.828 393.022 102.497C395.417 105.167 398.531 106.501 402.364 106.501ZM462.12 118.821C456.918 118.821 452.229 117.692 448.054 115.433C443.879 113.106 440.628 109.924 438.301 105.885C435.974 101.779 434.81 97.1929 434.81 92.128C434.81 87.0631 435.974 82.5116 438.301 78.4733C440.628 74.3667 443.879 71.184 448.054 68.9253C452.229 66.5982 456.918 65.4347 462.12 65.4347C467.321 65.4347 472.01 66.5982 476.185 68.9253C480.36 71.184 483.611 74.3667 485.938 78.4733C488.265 82.5116 489.429 87.0631 489.429 92.128C489.429 97.1929 488.265 101.779 485.938 105.885C483.611 109.924 480.36 113.106 476.185 115.433C472.01 117.692 467.321 118.821 462.12 118.821ZM462.12 106.501C465.952 106.501 469.067 105.167 471.462 102.497C473.858 99.828 475.056 96.3716 475.056 92.128C475.056 87.816 473.858 84.3253 471.462 81.656C469.067 78.9867 465.952 77.652 462.12 77.652C458.287 77.652 455.172 78.9867 452.777 81.656C450.381 84.3253 449.184 87.816 449.184 92.128C449.184 96.3716 450.381 99.828 452.777 102.497C455.172 105.167 458.287 106.501 462.12 106.501ZM512.327 118H498.056V43.772H512.327V118ZM542.494 118.821C536.129 118.821 530.961 117.179 526.991 113.893C523.09 110.54 521.002 106.091 520.729 100.547H533.049C533.322 102.874 534.281 104.722 535.923 106.091C537.634 107.391 539.825 108.041 542.494 108.041C544.684 108.041 546.464 107.562 547.833 106.604C549.27 105.646 549.989 104.448 549.989 103.011C549.989 101.094 549.167 99.7596 547.525 99.0067C545.882 98.2538 543.281 97.5693 539.722 96.9533C536.026 96.2689 533.014 95.516 530.687 94.6947C528.36 93.8733 526.341 92.4018 524.63 90.28C522.987 88.0898 522.166 85.0098 522.166 81.04C522.166 78.0284 522.953 75.3591 524.527 73.032C526.17 70.6364 528.394 68.7884 531.201 67.488C534.007 66.1191 537.155 65.4347 540.646 65.4347C546.874 65.4347 551.905 66.9747 555.738 70.0547C559.639 73.1347 561.727 77.2071 562.001 82.272H549.578C549.304 80.1502 548.312 78.5076 546.601 77.344C544.958 76.112 543.11 75.496 541.057 75.496C539.003 75.496 537.361 75.9409 536.129 76.8307C534.897 77.7204 534.281 78.9524 534.281 80.5267C534.281 82.4431 535.068 83.7436 536.642 84.428C538.285 85.044 540.851 85.5916 544.342 86.0707C548.106 86.6182 551.186 87.3027 553.582 88.124C556.046 88.8769 558.168 90.3827 559.947 92.6413C561.727 94.9 562.617 98.1853 562.617 102.497C562.617 107.425 560.769 111.395 557.073 114.407C553.445 117.35 548.585 118.821 542.494 118.821Z" fill="currentColor"></path>', 2)
2785
2798
  ])]);
2786
2799
  }
2787
- const y1 = /* @__PURE__ */ _e(g1, [["render", x1]]), b1 = {
2800
+ const ys = /* @__PURE__ */ _e(gs, [["render", xs]]), bs = {
2788
2801
  "h-full": "",
2789
2802
  "w-full": "",
2790
2803
  flex: "",
2791
2804
  "items-center": ""
2792
- }, _1 = {
2805
+ }, _s = {
2793
2806
  flex: "~ col gap2",
2794
2807
  ma: "",
2795
2808
  "px-5": ""
2796
- }, w1 = {
2809
+ }, ws = {
2797
2810
  flex: "~ col",
2798
2811
  "mt-20": "",
2799
2812
  "items-center": ""
2800
- }, k1 = {
2813
+ }, ks = {
2801
2814
  flex: "~",
2802
2815
  "mt--10": "",
2803
2816
  "items-center": "",
2804
2817
  "justify-center": ""
2805
- }, I1 = { flex: "~ gap2 wrap" }, $1 = /* @__PURE__ */ F({
2818
+ }, Is = { flex: "~ gap2 wrap" }, $s = /* @__PURE__ */ Z({
2806
2819
  __name: "About",
2807
2820
  setup(e) {
2808
- const t = Le();
2809
- return (o, n) => (c(), m("div", b1, [
2810
- u("div", _1, [
2821
+ const t = Me();
2822
+ return (o, n) => (c(), h("div", bs, [
2823
+ u("div", _s, [
2811
2824
  n[5] || (n[5] = u("div", { "flex-auto": "" }, null, -1)),
2812
- u("div", w1, [
2813
- u("div", k1, [
2814
- b(y1, { "h-18": "" })
2825
+ u("div", ws, [
2826
+ u("div", ks, [
2827
+ y(ys, { "h-18": "" })
2815
2828
  ]),
2816
2829
  n[2] || (n[2] = u("div", {
2817
2830
  mb6: "",
@@ -2824,7 +2837,7 @@ const y1 = /* @__PURE__ */ _e(g1, [["render", x1]]), b1 = {
2824
2837
  ], -1))
2825
2838
  ]),
2826
2839
  n[6] || (n[6] = u("div", { "flex-auto": "" }, null, -1)),
2827
- u("div", I1, [
2840
+ u("div", Is, [
2828
2841
  u("div", {
2829
2842
  flex: "~ col auto",
2830
2843
  "min-w-40": "",
@@ -2887,24 +2900,24 @@ const y1 = /* @__PURE__ */ _e(g1, [["render", x1]]), b1 = {
2887
2900
  ])
2888
2901
  ]));
2889
2902
  }
2890
- }), S1 = { class: "h-full flex flex-col" }, T1 = /* @__PURE__ */ F({
2903
+ }), Ss = { class: "h-full flex flex-col" }, Ts = /* @__PURE__ */ Z({
2891
2904
  __name: "Settings",
2892
2905
  setup(e) {
2893
- const t = ge("pluginSettings"), o = S(() => t.value.options), n = S(() => t.value.values);
2906
+ const t = ge("pluginSettings"), o = $(() => t.value.options), n = $(() => t.value.values);
2894
2907
  function l(s) {
2895
2908
  t.value = s;
2896
2909
  }
2897
- return (s, p) => (c(), m("div", S1, [
2898
- b(Te, {
2910
+ return (s, p) => (c(), h("div", Ss, [
2911
+ y(Ve, {
2899
2912
  "doc-link": "https://pinia.vuejs.org/",
2900
2913
  "github-repo-link": "https://github.com/vuejs/pinia"
2901
2914
  }, {
2902
2915
  default: M(() => [
2903
- b(Ee)
2916
+ y(Ne)
2904
2917
  ]),
2905
2918
  _: 1
2906
2919
  }),
2907
- b(en, {
2920
+ y(en, {
2908
2921
  "plugin-id": "dev.esm.pinia",
2909
2922
  options: o.value,
2910
2923
  values: n.value,
@@ -2912,157 +2925,157 @@ const y1 = /* @__PURE__ */ _e(g1, [["render", x1]]), b1 = {
2912
2925
  }, null, 8, ["options", "values"])
2913
2926
  ]));
2914
2927
  }
2915
- }), E1 = "dev.esm.pinia", tn = "pinia", V1 = { class: "h-full flex flex-col" }, N1 = { class: "h-full flex flex-col p2" }, A1 = {
2928
+ }), Es = "dev.esm.pinia", tn = "pinia", Vs = { class: "h-full flex flex-col" }, Ns = { class: "h-full flex flex-col p2" }, As = {
2916
2929
  class: "grid grid-cols-[1fr_auto] mb1 items-center gap2 pb1",
2917
2930
  border: "b dashed base"
2918
- }, R1 = {
2931
+ }, Rs = {
2919
2932
  key: 0,
2920
2933
  class: "flex items-center gap-2 px-1"
2921
- }, D1 = ["onClick"], P1 = { class: "no-scrollbar flex-1 select-none overflow-scroll" }, L1 = { class: "h-full flex flex-col p2" }, M1 = {
2934
+ }, Ds = ["onClick"], Ps = { class: "no-scrollbar flex-1 select-none overflow-scroll" }, Ls = { class: "h-full flex flex-col p2" }, Ms = {
2922
2935
  class: "grid grid-cols-[1fr_auto] mb1 items-center gap2 pb1",
2923
2936
  border: "b dashed base"
2924
- }, H1 = {
2937
+ }, Hs = {
2925
2938
  key: 0,
2926
2939
  class: "flex items-center gap-2 px-1"
2927
- }, O1 = ["onClick"], U1 = /* @__PURE__ */ F({
2940
+ }, Os = ["onClick"], Us = /* @__PURE__ */ Z({
2928
2941
  __name: "Index",
2929
2942
  setup(e) {
2930
- const { expanded: t } = xe(), { expanded: o } = xe("pinia-store-state"), n = tn, l = E([]), s = E([]), p = be(), i = E(""), r = E([]), f = S(() => r.value?.length ? P(r.value?.[0]) : []), v = S(() => w(r.value)), d = S(() => v.value.map((k) => k.id)), h = E({}), T = E(""), A = E("");
2931
- te(T, (k, g) => {
2932
- !k.trim().length && !g.trim().length || oe(k);
2943
+ const { expanded: t } = xe(), { expanded: o } = xe("pinia-store-state"), n = tn, l = E([]), s = E([]), p = be(), i = E(""), r = E([]), f = $(() => r.value?.length ? N(r.value?.[0]) : []), m = $(() => w(r.value)), d = $(() => m.value.map((I) => I.id)), g = E({}), T = E(""), R = E("");
2944
+ te(T, (I, v) => {
2945
+ !I.trim().length && !v.trim().length || ne(I);
2933
2946
  });
2934
- const $ = S(() => tt({
2935
- state: h.value,
2936
- filterKey: A.value
2937
- })), I = S(() => !h.value.state?.length && !h.value.getters?.length);
2938
- function P(k, g = [], y = []) {
2939
- return g.push(k.id), k.children?.length === 0 && y.push([...g]), Array.isArray(k.children) && k.children.forEach((D) => {
2940
- P(D, g, y);
2941
- }), g.pop(), y;
2942
- }
2943
- function N(k, g) {
2944
- const y = [];
2945
- return k?.forEach((D) => {
2946
- y.push(...D.slice(0, g + 1));
2947
- }), [...new Set(y)];
2948
- }
2949
- function w(k) {
2950
- const g = [], y = (D) => {
2951
- D?.forEach((Z) => {
2952
- g.push(Z), Z.children?.length && y(Z.children);
2947
+ const k = $(() => tt({
2948
+ state: g.value,
2949
+ filterKey: R.value
2950
+ })), S = $(() => !g.value.state?.length && !g.value.getters?.length);
2951
+ function N(I, v = [], C = []) {
2952
+ return v.push(I.id), I.children?.length === 0 && C.push([...v]), Array.isArray(I.children) && I.children.forEach((P) => {
2953
+ N(P, v, C);
2954
+ }), v.pop(), C;
2955
+ }
2956
+ function A(I, v) {
2957
+ const C = [];
2958
+ return I?.forEach((P) => {
2959
+ C.push(...P.slice(0, v + 1));
2960
+ }), [...new Set(C)];
2961
+ }
2962
+ function w(I) {
2963
+ const v = [], C = (P) => {
2964
+ P?.forEach((z) => {
2965
+ v.push(z), z.children?.length && C(z.children);
2953
2966
  });
2954
2967
  };
2955
- return y(k), g;
2968
+ return C(I), v;
2956
2969
  }
2957
- function R() {
2958
- V.value.getInspectorNodeActions(n).then((k) => {
2959
- l.value = k;
2970
+ function D() {
2971
+ V.value.getInspectorNodeActions(n).then((I) => {
2972
+ l.value = I;
2960
2973
  });
2961
2974
  }
2962
- function B() {
2963
- V.value.getInspectorActions(n).then((k) => {
2964
- s.value = k;
2975
+ function j() {
2976
+ V.value.getInspectorActions(n).then((I) => {
2977
+ s.value = I;
2965
2978
  });
2966
2979
  }
2967
- R(), B();
2968
- function G(k) {
2969
- V.value.callInspectorNodeAction(n, k, i.value);
2980
+ D(), j();
2981
+ function K(I) {
2982
+ V.value.callInspectorNodeAction(n, I, i.value);
2970
2983
  }
2971
- function W(k) {
2972
- V.value.callInspectorAction(n, k);
2984
+ function G(I) {
2985
+ V.value.callInspectorAction(n, I);
2973
2986
  }
2974
- function O(k) {
2975
- for (const g in k)
2976
- k[g]?.length || delete k[g];
2977
- return k;
2987
+ function O(I) {
2988
+ for (const v in I)
2989
+ I[v]?.length || delete I[v];
2990
+ return I;
2978
2991
  }
2979
- function C(k) {
2980
- V.value.getInspectorState({ inspectorId: n, nodeId: k }).then((g) => {
2981
- const y = ne(g);
2982
- y && (h.value = O(y), o.value = Array.from({ length: Object.keys(h.value).length }, (D, Z) => `${Z}`));
2992
+ function _(I) {
2993
+ V.value.getInspectorState({ inspectorId: n, nodeId: I }).then((v) => {
2994
+ const C = le(v);
2995
+ C && (g.value = O(C), o.value = Array.from({ length: Object.keys(g.value).length }, (P, z) => `${z}`));
2983
2996
  });
2984
2997
  }
2985
- function U() {
2986
- h.value = {};
2998
+ function H() {
2999
+ g.value = {};
2987
3000
  }
2988
3001
  te(i, () => {
2989
- U(), C(i.value);
3002
+ H(), _(i.value);
2990
3003
  });
2991
- function oe(k = "") {
2992
- V.value.getInspectorTree({ inspectorId: n, filter: k }).then((g) => {
2993
- const y = ne(g);
2994
- r.value = y, !i.value && y.length && (i.value = y[0].id, C(y[0].id), t.value = N(f.value, 1));
3004
+ function ne(I = "") {
3005
+ V.value.getInspectorTree({ inspectorId: n, filter: I }).then((v) => {
3006
+ const C = le(v);
3007
+ r.value = C, !i.value && C.length && (i.value = C[0].id, _(C[0].id), t.value = A(f.value, 1));
2995
3008
  });
2996
3009
  }
2997
- oe();
2998
- function se(k) {
2999
- const g = ne(k);
3000
- g.inspectorId !== n || !g.rootNodes.length || (r.value = g.rootNodes, d.value.includes(i.value) || (i.value = g.rootNodes[0].id, t.value = N(f.value, 1), C(g.rootNodes[0].id)));
3010
+ ne();
3011
+ function ae(I) {
3012
+ const v = le(I);
3013
+ v.inspectorId !== n || !v.rootNodes.length || (r.value = v.rootNodes, d.value.includes(i.value) || (i.value = v.rootNodes[0].id, t.value = A(f.value, 1), _(v.rootNodes[0].id)));
3001
3014
  }
3002
- function H(k) {
3003
- const g = ne(k);
3004
- if (g.inspectorId !== n)
3015
+ function W(I) {
3016
+ const v = le(I);
3017
+ if (v.inspectorId !== n)
3005
3018
  return;
3006
- const y = g.state;
3007
- y && (h.value = O({
3008
- state: y.state,
3009
- getters: y.getters
3019
+ const C = v.state;
3020
+ C && (g.value = O({
3021
+ state: C.state,
3022
+ getters: C.getters
3010
3023
  }));
3011
3024
  }
3012
- return V.functions.on(X.INSPECTOR_TREE_UPDATED, se), V.functions.on(X.INSPECTOR_STATE_UPDATED, H), ke(() => {
3013
- V.functions.off(X.INSPECTOR_TREE_UPDATED, se), V.functions.off(X.INSPECTOR_STATE_UPDATED, H);
3014
- }), (k, g) => (c(), m("div", V1, [
3015
- b(Te, {
3025
+ return V.functions.on(X.INSPECTOR_TREE_UPDATED, ae), V.functions.on(X.INSPECTOR_STATE_UPDATED, W), Ie(() => {
3026
+ V.functions.off(X.INSPECTOR_TREE_UPDATED, ae), V.functions.off(X.INSPECTOR_STATE_UPDATED, W);
3027
+ }), (I, v) => (c(), h("div", Vs, [
3028
+ y(Ve, {
3016
3029
  "doc-link": "https://pinia.vuejs.org/",
3017
3030
  "github-repo-link": "https://github.com/vuejs/pinia"
3018
3031
  }, {
3019
3032
  default: M(() => [
3020
- b(Ee)
3033
+ y(Ne)
3021
3034
  ]),
3022
3035
  _: 1
3023
3036
  }),
3024
- b(a(Pe), { class: "flex-1 overflow-auto" }, {
3037
+ y(a(Le), { class: "flex-1 overflow-auto" }, {
3025
3038
  default: M(() => [
3026
- b(a(de), {
3039
+ y(a(de), {
3027
3040
  border: "r base",
3028
3041
  size: "40",
3029
3042
  "h-full": ""
3030
3043
  }, {
3031
3044
  default: M(() => [
3032
- u("div", N1, [
3033
- u("div", A1, [
3034
- b(a(Ce), {
3045
+ u("div", Ns, [
3046
+ u("div", As, [
3047
+ y(a(Ce), {
3035
3048
  modelValue: T.value,
3036
- "onUpdate:modelValue": g[0] || (g[0] = (y) => T.value = y),
3049
+ "onUpdate:modelValue": v[0] || (v[0] = (C) => T.value = C),
3037
3050
  placeholder: a(p).treeFilterPlaceholder
3038
3051
  }, null, 8, ["modelValue", "placeholder"]),
3039
- s.value?.length ? (c(), m("div", R1, [
3040
- (c(!0), m(le, null, ce(s.value, (y, D) => q((c(), m("div", {
3041
- key: D,
3052
+ s.value?.length ? (c(), h("div", Rs, [
3053
+ (c(!0), h(se, null, ce(s.value, (C, P) => q((c(), h("div", {
3054
+ key: P,
3042
3055
  class: "flex items-center gap1",
3043
- onClick: (Z) => W(D)
3056
+ onClick: (z) => G(P)
3044
3057
  }, [
3045
3058
  u("i", {
3046
- class: ie(`i-ic-baseline-${y.icon.replace(/\_/g, "-")}`),
3059
+ class: ie(`i-ic-baseline-${C.icon.replace(/\_/g, "-")}`),
3047
3060
  "cursor-pointer": "",
3048
3061
  "text-base": "",
3049
3062
  op70: "",
3050
3063
  "hover:op100": ""
3051
3064
  }, null, 2)
3052
- ], 8, D1)), [
3065
+ ], 8, Ds)), [
3053
3066
  [
3054
- a(Y),
3055
- { content: y.tooltip },
3067
+ a(J),
3068
+ { content: C.tooltip },
3056
3069
  void 0,
3057
3070
  { "bottom-end": !0 }
3058
3071
  ]
3059
3072
  ])), 128))
3060
- ])) : j("", !0)
3073
+ ])) : U("", !0)
3061
3074
  ]),
3062
- u("div", P1, [
3063
- b(Oe, {
3075
+ u("div", Ps, [
3076
+ y(Ue, {
3064
3077
  modelValue: i.value,
3065
- "onUpdate:modelValue": g[1] || (g[1] = (y) => i.value = y),
3078
+ "onUpdate:modelValue": v[1] || (v[1] = (C) => i.value = C),
3066
3079
  data: r.value
3067
3080
  }, null, 8, ["modelValue", "data"])
3068
3081
  ])
@@ -3070,47 +3083,47 @@ const y1 = /* @__PURE__ */ _e(g1, [["render", x1]]), b1 = {
3070
3083
  ]),
3071
3084
  _: 1
3072
3085
  }),
3073
- b(a(de), { size: "60" }, {
3086
+ y(a(de), { size: "60" }, {
3074
3087
  default: M(() => [
3075
- u("div", L1, [
3076
- u("div", M1, [
3077
- b(a(Ce), {
3078
- modelValue: A.value,
3079
- "onUpdate:modelValue": g[2] || (g[2] = (y) => A.value = y),
3088
+ u("div", Ls, [
3089
+ u("div", Ms, [
3090
+ y(a(Ce), {
3091
+ modelValue: R.value,
3092
+ "onUpdate:modelValue": v[2] || (v[2] = (C) => R.value = C),
3080
3093
  placeholder: a(p).stateFilterPlaceholder
3081
3094
  }, null, 8, ["modelValue", "placeholder"]),
3082
- l.value?.length ? (c(), m("div", H1, [
3083
- (c(!0), m(le, null, ce(l.value, (y, D) => q((c(), m("div", {
3084
- key: D,
3095
+ l.value?.length ? (c(), h("div", Hs, [
3096
+ (c(!0), h(se, null, ce(l.value, (C, P) => q((c(), h("div", {
3097
+ key: P,
3085
3098
  class: "flex items-center gap1",
3086
- onClick: (Z) => G(D)
3099
+ onClick: (z) => K(P)
3087
3100
  }, [
3088
3101
  u("i", {
3089
- class: ie(`i-ic-baseline-${y.icon.replace(/\_/g, "-")}`),
3102
+ class: ie(`i-ic-baseline-${C.icon.replace(/\_/g, "-")}`),
3090
3103
  "cursor-pointer": "",
3091
3104
  "text-base": "",
3092
3105
  op70: "",
3093
3106
  "hover:op100": ""
3094
3107
  }, null, 2)
3095
- ], 8, O1)), [
3108
+ ], 8, Os)), [
3096
3109
  [
3097
- a(Y),
3098
- { content: y.tooltip },
3110
+ a(J),
3111
+ { content: C.tooltip },
3099
3112
  void 0,
3100
3113
  { "bottom-end": !0 }
3101
3114
  ]
3102
3115
  ])), 128))
3103
- ])) : j("", !0)
3116
+ ])) : U("", !0)
3104
3117
  ]),
3105
- i.value && !I.value ? (c(), z(He, {
3118
+ i.value && !S.value ? (c(), B(Oe, {
3106
3119
  key: 0,
3107
3120
  class: "no-scrollbar flex-1 overflow-scroll",
3108
- data: $.value,
3121
+ data: k.value,
3109
3122
  "node-id": i.value,
3110
3123
  "inspector-id": a(n),
3111
3124
  "expanded-state-id": "pinia-store-state"
3112
- }, null, 8, ["data", "node-id", "inspector-id"])) : (c(), z($e, { key: 1 }, {
3113
- default: M(() => [...g[3] || (g[3] = [
3125
+ }, null, 8, ["data", "node-id", "inspector-id"])) : (c(), B(Te, { key: 1 }, {
3126
+ default: M(() => [...v[3] || (v[3] = [
3114
3127
  Q(" No Data ", -1)
3115
3128
  ])]),
3116
3129
  _: 1
@@ -3124,55 +3137,55 @@ const y1 = /* @__PURE__ */ _e(g1, [["render", x1]]), b1 = {
3124
3137
  })
3125
3138
  ]));
3126
3139
  }
3127
- }), j1 = "dev.esm.pinia", z1 = /* @__PURE__ */ F({
3140
+ }), js = "dev.esm.pinia", zs = /* @__PURE__ */ Z({
3128
3141
  __name: "Index",
3129
3142
  setup(e) {
3130
3143
  const t = ["pinia:mutations"];
3131
- return (o, n) => (c(), z(ct, {
3144
+ return (o, n) => (c(), B(ct, {
3132
3145
  "layer-ids": t,
3133
3146
  "doc-link": "https://pinia.vuejs.org/",
3134
- "plugin-id": j1,
3147
+ "plugin-id": js,
3135
3148
  "github-repo-link": "https://github.com/vuejs/pinia"
3136
3149
  }));
3137
3150
  }
3138
- }), B1 = {
3151
+ }), Bs = {
3139
3152
  "h-full": "",
3140
3153
  "w-full": ""
3141
- }, ys = /* @__PURE__ */ F({
3154
+ }, y1 = /* @__PURE__ */ Z({
3142
3155
  __name: "index",
3143
3156
  setup(e) {
3144
3157
  const t = E(null);
3145
3158
  ye("pluginSettings", t);
3146
- const o = S(() => [
3159
+ const o = $(() => [
3147
3160
  {
3148
3161
  path: "/store",
3149
3162
  name: "Store",
3150
- component: U1,
3163
+ component: Us,
3151
3164
  icon: "i-carbon-tree-view-alt"
3152
3165
  },
3153
3166
  {
3154
3167
  path: "/timeline",
3155
3168
  name: "Timeline",
3156
- component: z1,
3169
+ component: zs,
3157
3170
  icon: "i-mdi:timeline-clock-outline"
3158
3171
  },
3159
3172
  {
3160
3173
  path: "/",
3161
3174
  name: "About",
3162
- component: $1,
3175
+ component: $s,
3163
3176
  icon: "i-logos-pinia"
3164
3177
  },
3165
3178
  t.value && {
3166
3179
  path: "/settings",
3167
3180
  name: "Settings",
3168
- component: T1,
3181
+ component: Ts,
3169
3182
  icon: "i-mdi:cog-outline"
3170
3183
  }
3171
3184
  ].filter(Boolean)), { VirtualRouterView: n } = ot(o, {
3172
3185
  defaultRoutePath: "/store"
3173
3186
  }), l = dt();
3174
- return De(() => {
3175
- V.value.getPluginSettings(E1).then((s) => {
3187
+ return Pe(() => {
3188
+ V.value.getPluginSettings(Es).then((s) => {
3176
3189
  s.options ? t.value = s : t.value = null;
3177
3190
  }), V.value.getInspectorInfo(tn).then((s) => {
3178
3191
  s && (l.value = {
@@ -3180,17 +3193,17 @@ const y1 = /* @__PURE__ */ _e(g1, [["render", x1]]), b1 = {
3180
3193
  treeFilterPlaceholder: s.treeFilterPlaceholder
3181
3194
  });
3182
3195
  });
3183
- }), (s, p) => (c(), m("div", B1, [
3184
- b(a(n))
3196
+ }), (s, p) => (c(), h("div", Bs, [
3197
+ y(a(n))
3185
3198
  ]));
3186
3199
  }
3187
- }), Z1 = {}, F1 = {
3200
+ }), Zs = {}, Fs = {
3188
3201
  viewBox: "0 0 566 154",
3189
3202
  fill: "none",
3190
3203
  xmlns: "http://www.w3.org/2000/svg"
3191
3204
  };
3192
- function K1(e, t) {
3193
- return c(), m("svg", F1, [...t[0] || (t[0] = [
3205
+ function Ks(e, t) {
3206
+ return c(), h("svg", Fs, [...t[0] || (t[0] = [
3194
3207
  u("svg", {
3195
3208
  xmlns: "http://www.w3.org/2000/svg",
3196
3209
  width: "8em",
@@ -3208,34 +3221,34 @@ function K1(e, t) {
3208
3221
  }, null, -1)
3209
3222
  ])]);
3210
3223
  }
3211
- const G1 = /* @__PURE__ */ _e(Z1, [["render", K1]]), W1 = {
3224
+ const Gs = /* @__PURE__ */ _e(Zs, [["render", Ks]]), Ws = {
3212
3225
  "h-full": "",
3213
3226
  "w-full": "",
3214
3227
  flex: "",
3215
3228
  "items-center": ""
3216
- }, q1 = {
3229
+ }, qs = {
3217
3230
  flex: "~ col gap2",
3218
3231
  ma: "",
3219
3232
  "px-5": ""
3220
- }, J1 = {
3233
+ }, Js = {
3221
3234
  flex: "~ col",
3222
3235
  "mt-20": "",
3223
3236
  "items-center": ""
3224
- }, Y1 = {
3237
+ }, Ys = {
3225
3238
  flex: "~",
3226
3239
  "mt--10": "",
3227
3240
  "items-center": "",
3228
3241
  "justify-center": ""
3229
- }, X1 = { flex: "~ gap2 wrap" }, Q1 = /* @__PURE__ */ F({
3242
+ }, Xs = { flex: "~ gap2 wrap" }, Qs = /* @__PURE__ */ Z({
3230
3243
  __name: "About",
3231
3244
  setup(e) {
3232
- const t = Le();
3233
- return (o, n) => (c(), m("div", W1, [
3234
- u("div", q1, [
3245
+ const t = Me();
3246
+ return (o, n) => (c(), h("div", Ws, [
3247
+ u("div", qs, [
3235
3248
  n[5] || (n[5] = u("div", { "flex-auto": "" }, null, -1)),
3236
- u("div", J1, [
3237
- u("div", Y1, [
3238
- b(G1, { "h-18": "" })
3249
+ u("div", Js, [
3250
+ u("div", Ys, [
3251
+ y(Gs, { "h-18": "" })
3239
3252
  ]),
3240
3253
  n[2] || (n[2] = u("div", {
3241
3254
  mb6: "",
@@ -3248,7 +3261,7 @@ const G1 = /* @__PURE__ */ _e(Z1, [["render", K1]]), W1 = {
3248
3261
  ], -1))
3249
3262
  ]),
3250
3263
  n[6] || (n[6] = u("div", { "flex-auto": "" }, null, -1)),
3251
- u("div", X1, [
3264
+ u("div", Xs, [
3252
3265
  u("div", {
3253
3266
  flex: "~ col auto",
3254
3267
  "min-w-40": "",
@@ -3311,137 +3324,137 @@ const G1 = /* @__PURE__ */ _e(Z1, [["render", K1]]), W1 = {
3311
3324
  ])
3312
3325
  ]));
3313
3326
  }
3314
- }), es = { class: "h-full flex flex-col" }, ts = {
3327
+ }), e1 = { class: "h-full flex flex-col" }, t1 = {
3315
3328
  "h-full": "",
3316
3329
  "select-none": "",
3317
3330
  "overflow-scroll": "",
3318
3331
  p2: "",
3319
3332
  class: "no-scrollbar"
3320
- }, ns = { class: "pb2" }, os = {
3333
+ }, n1 = { class: "pb2" }, o1 = {
3321
3334
  "h-full": "",
3322
3335
  "overflow-scroll": "",
3323
3336
  class: "no-scrollbar"
3324
- }, ls = /* @__PURE__ */ F({
3337
+ }, l1 = /* @__PURE__ */ Z({
3325
3338
  __name: "Index",
3326
3339
  setup(e) {
3327
- const { expanded: t } = xe(), { expanded: o } = xe("routes-state"), n = be(), l = S(() => n.value.id), s = E(""), p = E(""), [i, r] = /* @__PURE__ */ Wt(!0), f = E([]), v = S(() => f.value?.length ? A(f.value?.[0]) : []), d = S(() => I(f.value)), h = S(() => d.value.map((O) => O.id)), T = E({});
3328
- function A(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
- A(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);
3340
+ const { expanded: t } = xe(), { expanded: o } = xe("routes-state"), n = be(), l = $(() => n.value.id), s = E(""), p = E(""), [i, r] = /* @__PURE__ */ Wt(!0), f = E([]), m = $(() => f.value?.length ? R(f.value?.[0]) : []), d = $(() => S(f.value)), g = $(() => d.value.map((O) => O.id)), T = E({});
3341
+ function R(O, _ = [], H = []) {
3342
+ return _.push(O.id), O.children?.length === 0 && H.push([..._]), Array.isArray(O.children) && O.children.forEach((ne) => {
3343
+ R(ne, _, H);
3344
+ }), _.pop(), H;
3345
+ }
3346
+ function k(O, _) {
3347
+ const H = [];
3348
+ return O?.forEach((ne) => {
3349
+ H.push(...ne.slice(0, _ + 1));
3350
+ }), [...new Set(H)];
3351
+ }
3352
+ function S(O) {
3353
+ const _ = [], H = (ne) => {
3354
+ ne?.forEach((ae) => {
3355
+ _.push(ae), ae.children?.length && H(ae.children);
3343
3356
  });
3344
3357
  };
3345
- return U(O), C;
3358
+ return H(O), _;
3346
3359
  }
3347
- function P(O) {
3348
- for (const C in O)
3349
- O[C]?.length || delete O[C];
3360
+ function N(O) {
3361
+ for (const _ in O)
3362
+ O[_]?.length || delete O[_];
3350
3363
  return O;
3351
3364
  }
3352
- function N(O) {
3353
- V.value.getInspectorState({ inspectorId: l.value, nodeId: O }).then((C) => {
3354
- const U = ne(C);
3355
- U && (T.value = P(U), o.value = Array.from({ length: Object.keys(T.value).length }, (oe, se) => `${se}`));
3365
+ function A(O) {
3366
+ V.value.getInspectorState({ inspectorId: l.value, nodeId: O }).then((_) => {
3367
+ const H = le(_);
3368
+ H && (T.value = N(H), o.value = Array.from({ length: Object.keys(T.value).length }, (ne, ae) => `${ae}`));
3356
3369
  });
3357
3370
  }
3358
3371
  function w() {
3359
3372
  T.value = {};
3360
3373
  }
3361
3374
  te(s, () => {
3362
- w(), N(s.value);
3375
+ w(), A(s.value);
3363
3376
  });
3364
- const R = async (O = "") => {
3365
- await V.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, N(U[0].id), t.value = $(v.value, 1));
3377
+ const D = async (O = "") => {
3378
+ await V.value.getInspectorTree({ inspectorId: l.value, filter: O }).then((_) => {
3379
+ const H = le(_);
3380
+ f.value = H, !s.value && H.length && (s.value = H[0].id, A(H[0].id), t.value = k(m.value, 1));
3368
3381
  });
3369
3382
  };
3370
3383
  Gt(l).toBeTruthy().then(() => {
3371
- R();
3384
+ D();
3372
3385
  });
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, t.value = $(v.value, 1), N(C.rootNodes[0].id)));
3386
+ function j(O) {
3387
+ const _ = le(O);
3388
+ _.inspectorId !== l.value || !_.rootNodes.length || (f.value = _.rootNodes, g.value.includes(s.value) || (s.value = _.rootNodes[0].id, t.value = k(m.value, 1), A(_.rootNodes[0].id)));
3376
3389
  }
3377
- function G(O) {
3378
- const C = ne(O);
3379
- if (C.inspectorId !== l.value)
3390
+ function K(O) {
3391
+ const _ = le(O);
3392
+ if (_.inspectorId !== l.value)
3380
3393
  return;
3381
- const U = C.state;
3382
- T.value = P(U);
3394
+ const H = _.state;
3395
+ T.value = N(H);
3383
3396
  }
3384
- V.functions.on(X.INSPECTOR_TREE_UPDATED, B), V.functions.on(X.INSPECTOR_STATE_UPDATED, G), ke(() => {
3385
- V.functions.off(X.INSPECTOR_TREE_UPDATED, B), V.functions.off(X.INSPECTOR_STATE_UPDATED, G);
3397
+ V.functions.on(X.INSPECTOR_TREE_UPDATED, j), V.functions.on(X.INSPECTOR_STATE_UPDATED, K), Ie(() => {
3398
+ V.functions.off(X.INSPECTOR_TREE_UPDATED, j), V.functions.off(X.INSPECTOR_STATE_UPDATED, K);
3386
3399
  });
3387
- function W(O) {
3388
- const C = O.trim().toLowerCase();
3389
- r(), R(C).then(() => {
3400
+ function G(O) {
3401
+ const _ = O.trim().toLowerCase();
3402
+ r(), D(_).then(() => {
3390
3403
  r();
3391
3404
  });
3392
3405
  }
3393
3406
  return qt(p, (O) => {
3394
- W(O);
3395
- }, { debounce: 300 }), (O, C) => (c(), m("div", es, [
3396
- b(Te, {
3407
+ G(O);
3408
+ }, { debounce: 300 }), (O, _) => (c(), h("div", e1, [
3409
+ y(Ve, {
3397
3410
  "doc-link": "https://router.vuejs.org/",
3398
3411
  "github-repo-link": "https://github.com/vuejs/router"
3399
3412
  }, {
3400
3413
  default: M(() => [
3401
- b(Ee)
3414
+ y(Ne)
3402
3415
  ]),
3403
3416
  _: 1
3404
3417
  }),
3405
- b(a(Pe), { class: "flex-1 overflow-auto" }, {
3418
+ y(a(Le), { class: "flex-1 overflow-auto" }, {
3406
3419
  default: M(() => [
3407
- b(a(de), {
3420
+ y(a(de), {
3408
3421
  border: "r base",
3409
3422
  size: "40",
3410
3423
  "h-full": ""
3411
3424
  }, {
3412
3425
  default: M(() => [
3413
- u("div", ts, [
3414
- u("div", ns, [
3415
- b(a(Ce), {
3426
+ u("div", t1, [
3427
+ u("div", n1, [
3428
+ y(a(Ce), {
3416
3429
  modelValue: p.value,
3417
- "onUpdate:modelValue": C[0] || (C[0] = (U) => p.value = U),
3430
+ "onUpdate:modelValue": _[0] || (_[0] = (H) => p.value = H),
3418
3431
  placeholder: "Search routes",
3419
3432
  loading: !a(i),
3420
3433
  "loading-debounce-time": 250,
3421
3434
  class: "text-3.5"
3422
3435
  }, null, 8, ["modelValue", "loading"])
3423
3436
  ]),
3424
- b(Oe, {
3437
+ y(Ue, {
3425
3438
  modelValue: s.value,
3426
- "onUpdate:modelValue": C[1] || (C[1] = (U) => s.value = U),
3439
+ "onUpdate:modelValue": _[1] || (_[1] = (H) => s.value = H),
3427
3440
  data: f.value
3428
3441
  }, null, 8, ["modelValue", "data"])
3429
3442
  ])
3430
3443
  ]),
3431
3444
  _: 1
3432
3445
  }),
3433
- b(a(de), { size: "60" }, {
3446
+ y(a(de), { size: "60" }, {
3434
3447
  default: M(() => [
3435
- u("div", os, [
3436
- s.value ? (c(), z(He, {
3448
+ u("div", o1, [
3449
+ s.value ? (c(), B(Oe, {
3437
3450
  key: 0,
3438
3451
  class: "p3",
3439
3452
  data: T.value,
3440
3453
  "node-id": "",
3441
3454
  "inspector-id": "router",
3442
3455
  "expanded-state-id": "routes-state"
3443
- }, null, 8, ["data"])) : (c(), z($e, { key: 1 }, {
3444
- default: M(() => [...C[2] || (C[2] = [
3456
+ }, null, 8, ["data"])) : (c(), B(Te, { key: 1 }, {
3457
+ default: M(() => [..._[2] || (_[2] = [
3445
3458
  Q(" No Data ", -1)
3446
3459
  ])]),
3447
3460
  _: 1
@@ -3455,21 +3468,21 @@ const G1 = /* @__PURE__ */ _e(Z1, [["render", K1]]), W1 = {
3455
3468
  })
3456
3469
  ]));
3457
3470
  }
3458
- }), ss = "org.vuejs.router", as = /* @__PURE__ */ F({
3471
+ }), s1 = "org.vuejs.router", a1 = /* @__PURE__ */ Z({
3459
3472
  __name: "Index",
3460
3473
  setup(e) {
3461
3474
  const t = be();
3462
- return (o, n) => (c(), z(ct, {
3475
+ return (o, n) => (c(), B(ct, {
3463
3476
  "layer-ids": a(t).timelineLayerIds,
3464
3477
  "doc-link": "https://router.vuejs.org/",
3465
- "plugin-id": ss,
3478
+ "plugin-id": s1,
3466
3479
  "github-repo-link": "https://github.com/vuejs/router"
3467
3480
  }, null, 8, ["layer-ids"]));
3468
3481
  }
3469
- }), is = {
3482
+ }), i1 = {
3470
3483
  "h-full": "",
3471
3484
  "w-full": ""
3472
- }, bs = /* @__PURE__ */ F({
3485
+ }, b1 = /* @__PURE__ */ Z({
3473
3486
  __name: "index",
3474
3487
  props: {
3475
3488
  id: {}
@@ -3479,26 +3492,26 @@ const G1 = /* @__PURE__ */ _e(Z1, [["render", K1]]), W1 = {
3479
3492
  {
3480
3493
  path: "/routes",
3481
3494
  name: "Routes",
3482
- component: ls,
3495
+ component: l1,
3483
3496
  icon: "i-carbon-tree-view-alt"
3484
3497
  },
3485
3498
  {
3486
3499
  path: "/timeline",
3487
3500
  name: "Timeline",
3488
- component: as,
3501
+ component: a1,
3489
3502
  icon: "i-mdi:timeline-clock-outline"
3490
3503
  },
3491
3504
  {
3492
3505
  path: "/about",
3493
3506
  name: "About",
3494
- component: Q1,
3507
+ component: Qs,
3495
3508
  icon: "i-ri-route-line"
3496
3509
  }
3497
3510
  ], {
3498
3511
  defaultRoutePath: "/routes"
3499
3512
  });
3500
3513
  function p() {
3501
- n.value = !0, De(() => {
3514
+ n.value = !0, Pe(() => {
3502
3515
  V.value.getInspectorInfo(t.id).then((i) => {
3503
3516
  if (!i)
3504
3517
  return;
@@ -3515,17 +3528,17 @@ const G1 = /* @__PURE__ */ _e(Z1, [["render", K1]]), W1 = {
3515
3528
  }
3516
3529
  return te(() => t.id, (i) => {
3517
3530
  i && p();
3518
- }), (i, r) => (c(), m("div", is, [
3519
- b(a(l))
3531
+ }), (i, r) => (c(), h("div", i1, [
3532
+ y(a(l))
3520
3533
  ]));
3521
3534
  }
3522
3535
  });
3523
3536
  export {
3524
- Cs as Components,
3525
- xs as CustomInspector,
3526
- ys as Pinia,
3527
- bs as Router,
3537
+ C1 as Components,
3538
+ x1 as CustomInspector,
3539
+ y1 as Pinia,
3540
+ b1 as Router,
3528
3541
  On as SelectiveList,
3529
3542
  ct as Timeline,
3530
- gs as useCustomInspector
3543
+ g1 as useCustomInspector
3531
3544
  };