x-prop-tree 0.5.12 → 0.5.14

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,54 +1,55 @@
1
- import { provide as ze, inject as Ke, defineComponent as k, ref as N, computed as K, resolveComponent as U, openBlock as $, createBlock as H, unref as R, isRef as zt, withCtx as Y, createVNode as F, createElementBlock as B, Fragment as Be, renderList as Kt, createTextVNode as it, toDisplayString as ne, resolveDirective as oe, withDirectives as ee, normalizeStyle as Me, withModifiers as Z, createElementVNode as ae, createCommentVNode as I, renderSlot as jn, h as g, mergeModels as z, useModel as le, mergeProps as qt, watch as we, watchEffect as En, reactive as Nn } from "vue";
2
- import { useI18n as be } from "vue-i18n";
3
- import { useViewStack as It, useColor as Ue, eventBus as Ae } from "x-essential-lib";
4
- import { getPropDefault as D, parsePixelStr as Fn, parsePercentStr as Rn } from "x-runtime-lib";
5
- import { state as Bn } from "x-state-lib";
6
- var Xt = typeof global == "object" && global && global.Object === Object && global, Hn = typeof self == "object" && self && self.Object === Object && self, J = Xt || Hn || Function("return this")(), re = J.Symbol, Yt = Object.prototype, Gn = Yt.hasOwnProperty, kn = Yt.toString, Te = re ? re.toStringTag : void 0;
7
- function zn(e) {
8
- var t = Gn.call(e, Te), n = e[Te];
1
+ import { provide as Me, inject as Ve, defineComponent as K, ref as F, computed as G, resolveComponent as L, openBlock as S, createBlock as R, unref as E, isRef as nt, withCtx as Y, createVNode as B, createElementBlock as k, Fragment as He, renderList as qt, createTextVNode as at, toDisplayString as ne, resolveDirective as ae, withDirectives as re, normalizeStyle as ie, withModifiers as z, createElementVNode as q, createCommentVNode as I, renderSlot as Hn, h, mergeModels as X, useModel as oe, useId as Gn, withKeys as Kn, mergeProps as It, watch as Ce, watchEffect as zn, reactive as qn, onMounted as In, onBeforeUnmount as Xn } from "vue";
2
+ import { useI18n as de } from "vue-i18n";
3
+ import { useViewStack as Xt, useColor as $e, eventBus as Ae, useSystem as Zn } from "x-essential-lib";
4
+ import { getPropDefault as N, parsePixelStr as Yn, parsePercentStr as Jn } from "x-runtime-lib";
5
+ import { useDisplay as Wn } from "vuetify";
6
+ import { state as Qn } from "x-state-lib";
7
+ var Zt = typeof global == "object" && global && global.Object === Object && global, er = typeof self == "object" && self && self.Object === Object && self, W = Zt || er || Function("return this")(), se = W.Symbol, Yt = Object.prototype, tr = Yt.hasOwnProperty, nr = Yt.toString, Se = se ? se.toStringTag : void 0;
8
+ function rr(e) {
9
+ var t = tr.call(e, Se), n = e[Se];
9
10
  try {
10
- e[Te] = void 0;
11
+ e[Se] = void 0;
11
12
  var r = !0;
12
13
  } catch {
13
14
  }
14
- var l = kn.call(e);
15
- return r && (t ? e[Te] = n : delete e[Te]), l;
15
+ var l = nr.call(e);
16
+ return r && (t ? e[Se] = n : delete e[Se]), l;
16
17
  }
17
- var Kn = Object.prototype, qn = Kn.toString;
18
- function In(e) {
19
- return qn.call(e);
18
+ var or = Object.prototype, lr = or.toString;
19
+ function ir(e) {
20
+ return lr.call(e);
20
21
  }
21
- var Xn = "[object Null]", Yn = "[object Undefined]", yt = re ? re.toStringTag : void 0;
22
- function xe(e) {
23
- return e == null ? e === void 0 ? Yn : Xn : yt && yt in Object(e) ? zn(e) : In(e);
22
+ var sr = "[object Null]", ar = "[object Undefined]", _t = se ? se.toStringTag : void 0;
23
+ function Ue(e) {
24
+ return e == null ? e === void 0 ? ar : sr : _t && _t in Object(e) ? rr(e) : ir(e);
24
25
  }
25
- function ue(e) {
26
+ function ce(e) {
26
27
  return e != null && typeof e == "object";
27
28
  }
28
- var Ce = Array.isArray;
29
- function Le(e) {
29
+ var Oe = Array.isArray;
30
+ function De(e) {
30
31
  var t = typeof e;
31
32
  return e != null && (t == "object" || t == "function");
32
33
  }
33
- var Zn = "[object AsyncFunction]", Jn = "[object Function]", Wn = "[object GeneratorFunction]", Qn = "[object Proxy]";
34
- function Zt(e) {
35
- if (!Le(e))
34
+ var ur = "[object AsyncFunction]", cr = "[object Function]", fr = "[object GeneratorFunction]", dr = "[object Proxy]";
35
+ function Jt(e) {
36
+ if (!De(e))
36
37
  return !1;
37
- var t = xe(e);
38
- return t == Jn || t == Wn || t == Zn || t == Qn;
38
+ var t = Ue(e);
39
+ return t == cr || t == fr || t == ur || t == dr;
39
40
  }
40
- var Je = J["__core-js_shared__"], ht = function() {
41
- var e = /[^.]+$/.exec(Je && Je.keys && Je.keys.IE_PROTO || "");
41
+ var We = W["__core-js_shared__"], bt = function() {
42
+ var e = /[^.]+$/.exec(We && We.keys && We.keys.IE_PROTO || "");
42
43
  return e ? "Symbol(src)_1." + e : "";
43
44
  }();
44
- function er(e) {
45
- return !!ht && ht in e;
45
+ function pr(e) {
46
+ return !!bt && bt in e;
46
47
  }
47
- var tr = Function.prototype, nr = tr.toString;
48
- function fe(e) {
48
+ var vr = Function.prototype, mr = vr.toString;
49
+ function pe(e) {
49
50
  if (e != null) {
50
51
  try {
51
- return nr.call(e);
52
+ return mr.call(e);
52
53
  } catch {
53
54
  }
54
55
  try {
@@ -58,684 +59,719 @@ function fe(e) {
58
59
  }
59
60
  return "";
60
61
  }
61
- var rr = /[\\^$.*+?()[\]{}|]/g, or = /^\[object .+?Constructor\]$/, lr = Function.prototype, ir = Object.prototype, sr = lr.toString, ar = ir.hasOwnProperty, ur = RegExp(
62
- "^" + sr.call(ar).replace(rr, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
62
+ var gr = /[\\^$.*+?()[\]{}|]/g, yr = /^\[object .+?Constructor\]$/, hr = Function.prototype, _r = Object.prototype, br = hr.toString, $r = _r.hasOwnProperty, Tr = RegExp(
63
+ "^" + br.call($r).replace(gr, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
63
64
  );
64
- function cr(e) {
65
- if (!Le(e) || er(e))
65
+ function Sr(e) {
66
+ if (!De(e) || pr(e))
66
67
  return !1;
67
- var t = Zt(e) ? ur : or;
68
- return t.test(fe(e));
68
+ var t = Jt(e) ? Tr : yr;
69
+ return t.test(pe(e));
69
70
  }
70
- function fr(e, t) {
71
+ function wr(e, t) {
71
72
  return e == null ? void 0 : e[t];
72
73
  }
73
- function de(e, t) {
74
- var n = fr(e, t);
75
- return cr(n) ? n : void 0;
74
+ function ve(e, t) {
75
+ var n = wr(e, t);
76
+ return Sr(n) ? n : void 0;
76
77
  }
77
- var tt = de(J, "WeakMap"), _t = Object.create, dr = /* @__PURE__ */ function() {
78
+ var rt = ve(W, "WeakMap"), $t = Object.create, Ar = /* @__PURE__ */ function() {
78
79
  function e() {
79
80
  }
80
81
  return function(t) {
81
- if (!Le(t))
82
+ if (!De(t))
82
83
  return {};
83
- if (_t)
84
- return _t(t);
84
+ if ($t)
85
+ return $t(t);
85
86
  e.prototype = t;
86
87
  var n = new e();
87
88
  return e.prototype = void 0, n;
88
89
  };
89
90
  }();
90
- function pr(e, t) {
91
+ function Cr(e, t) {
91
92
  var n = -1, r = e.length;
92
93
  for (t || (t = Array(r)); ++n < r; )
93
94
  t[n] = e[n];
94
95
  return t;
95
96
  }
96
- var bt = function() {
97
+ var Tt = function() {
97
98
  try {
98
- var e = de(Object, "defineProperty");
99
+ var e = ve(Object, "defineProperty");
99
100
  return e({}, "", {}), e;
100
101
  } catch {
101
102
  }
102
103
  }();
103
- function mr(e, t) {
104
+ function Pr(e, t) {
104
105
  for (var n = -1, r = e == null ? 0 : e.length; ++n < r && t(e[n], n, e) !== !1; )
105
106
  ;
106
107
  return e;
107
108
  }
108
- var vr = 9007199254740991, gr = /^(?:0|[1-9]\d*)$/;
109
- function yr(e, t) {
109
+ var Or = 9007199254740991, xr = /^(?:0|[1-9]\d*)$/;
110
+ function Lr(e, t) {
110
111
  var n = typeof e;
111
- return t = t ?? vr, !!t && (n == "number" || n != "symbol" && gr.test(e)) && e > -1 && e % 1 == 0 && e < t;
112
+ return t = t ?? Or, !!t && (n == "number" || n != "symbol" && xr.test(e)) && e > -1 && e % 1 == 0 && e < t;
112
113
  }
113
- function Jt(e, t, n) {
114
- t == "__proto__" && bt ? bt(e, t, {
114
+ function Wt(e, t, n) {
115
+ t == "__proto__" && Tt ? Tt(e, t, {
115
116
  configurable: !0,
116
117
  enumerable: !0,
117
118
  value: n,
118
119
  writable: !0
119
120
  }) : e[t] = n;
120
121
  }
121
- function st(e, t) {
122
+ function ut(e, t) {
122
123
  return e === t || e !== e && t !== t;
123
124
  }
124
- var hr = Object.prototype, _r = hr.hasOwnProperty;
125
- function Wt(e, t, n) {
125
+ var Mr = Object.prototype, Vr = Mr.hasOwnProperty;
126
+ function Qt(e, t, n) {
126
127
  var r = e[t];
127
- (!(_r.call(e, t) && st(r, n)) || n === void 0 && !(t in e)) && Jt(e, t, n);
128
+ (!(Vr.call(e, t) && ut(r, n)) || n === void 0 && !(t in e)) && Wt(e, t, n);
128
129
  }
129
130
  function qe(e, t, n, r) {
130
131
  var l = !n;
131
132
  n || (n = {});
132
133
  for (var o = -1, i = t.length; ++o < i; ) {
133
134
  var s = t[o], a = void 0;
134
- a === void 0 && (a = e[s]), l ? Jt(n, s, a) : Wt(n, s, a);
135
+ a === void 0 && (a = e[s]), l ? Wt(n, s, a) : Qt(n, s, a);
135
136
  }
136
137
  return n;
137
138
  }
138
- var br = 9007199254740991;
139
- function Qt(e) {
140
- return typeof e == "number" && e > -1 && e % 1 == 0 && e <= br;
141
- }
139
+ var Ur = 9007199254740991;
142
140
  function en(e) {
143
- return e != null && Qt(e.length) && !Zt(e);
141
+ return typeof e == "number" && e > -1 && e % 1 == 0 && e <= Ur;
142
+ }
143
+ function tn(e) {
144
+ return e != null && en(e.length) && !Jt(e);
144
145
  }
145
- var $r = Object.prototype;
146
- function at(e) {
147
- var t = e && e.constructor, n = typeof t == "function" && t.prototype || $r;
146
+ var Dr = Object.prototype;
147
+ function ct(e) {
148
+ var t = e && e.constructor, n = typeof t == "function" && t.prototype || Dr;
148
149
  return e === n;
149
150
  }
150
- function Tr(e, t) {
151
+ function jr(e, t) {
151
152
  for (var n = -1, r = Array(e); ++n < e; )
152
153
  r[n] = t(n);
153
154
  return r;
154
155
  }
155
- var Sr = "[object Arguments]";
156
- function $t(e) {
157
- return ue(e) && xe(e) == Sr;
156
+ var Er = "[object Arguments]";
157
+ function St(e) {
158
+ return ce(e) && Ue(e) == Er;
158
159
  }
159
- var tn = Object.prototype, Ar = tn.hasOwnProperty, wr = tn.propertyIsEnumerable, Pr = $t(/* @__PURE__ */ function() {
160
+ var nn = Object.prototype, Nr = nn.hasOwnProperty, Br = nn.propertyIsEnumerable, Fr = St(/* @__PURE__ */ function() {
160
161
  return arguments;
161
- }()) ? $t : function(e) {
162
- return ue(e) && Ar.call(e, "callee") && !wr.call(e, "callee");
162
+ }()) ? St : function(e) {
163
+ return ce(e) && Nr.call(e, "callee") && !Br.call(e, "callee");
163
164
  };
164
- function Cr() {
165
+ function Rr() {
165
166
  return !1;
166
167
  }
167
- var nn = typeof exports == "object" && exports && !exports.nodeType && exports, Tt = nn && typeof module == "object" && module && !module.nodeType && module, Or = Tt && Tt.exports === nn, St = Or ? J.Buffer : void 0, Vr = St ? St.isBuffer : void 0, He = Vr || Cr, Mr = "[object Arguments]", Ur = "[object Array]", xr = "[object Boolean]", Lr = "[object Date]", Dr = "[object Error]", jr = "[object Function]", Er = "[object Map]", Nr = "[object Number]", Fr = "[object Object]", Rr = "[object RegExp]", Br = "[object Set]", Hr = "[object String]", Gr = "[object WeakMap]", kr = "[object ArrayBuffer]", zr = "[object DataView]", Kr = "[object Float32Array]", qr = "[object Float64Array]", Ir = "[object Int8Array]", Xr = "[object Int16Array]", Yr = "[object Int32Array]", Zr = "[object Uint8Array]", Jr = "[object Uint8ClampedArray]", Wr = "[object Uint16Array]", Qr = "[object Uint32Array]", O = {};
168
- O[Kr] = O[qr] = O[Ir] = O[Xr] = O[Yr] = O[Zr] = O[Jr] = O[Wr] = O[Qr] = !0;
169
- O[Mr] = O[Ur] = O[kr] = O[xr] = O[zr] = O[Lr] = O[Dr] = O[jr] = O[Er] = O[Nr] = O[Fr] = O[Rr] = O[Br] = O[Hr] = O[Gr] = !1;
170
- function eo(e) {
171
- return ue(e) && Qt(e.length) && !!O[xe(e)];
168
+ var rn = typeof exports == "object" && exports && !exports.nodeType && exports, wt = rn && typeof module == "object" && module && !module.nodeType && module, kr = wt && wt.exports === rn, At = kr ? W.Buffer : void 0, Hr = At ? At.isBuffer : void 0, Ge = Hr || Rr, Gr = "[object Arguments]", Kr = "[object Array]", zr = "[object Boolean]", qr = "[object Date]", Ir = "[object Error]", Xr = "[object Function]", Zr = "[object Map]", Yr = "[object Number]", Jr = "[object Object]", Wr = "[object RegExp]", Qr = "[object Set]", eo = "[object String]", to = "[object WeakMap]", no = "[object ArrayBuffer]", ro = "[object DataView]", oo = "[object Float32Array]", lo = "[object Float64Array]", io = "[object Int8Array]", so = "[object Int16Array]", ao = "[object Int32Array]", uo = "[object Uint8Array]", co = "[object Uint8ClampedArray]", fo = "[object Uint16Array]", po = "[object Uint32Array]", M = {};
169
+ M[oo] = M[lo] = M[io] = M[so] = M[ao] = M[uo] = M[co] = M[fo] = M[po] = !0;
170
+ M[Gr] = M[Kr] = M[no] = M[zr] = M[ro] = M[qr] = M[Ir] = M[Xr] = M[Zr] = M[Yr] = M[Jr] = M[Wr] = M[Qr] = M[eo] = M[to] = !1;
171
+ function vo(e) {
172
+ return ce(e) && en(e.length) && !!M[Ue(e)];
172
173
  }
173
- function ut(e) {
174
+ function ft(e) {
174
175
  return function(t) {
175
176
  return e(t);
176
177
  };
177
178
  }
178
- var rn = typeof exports == "object" && exports && !exports.nodeType && exports, Pe = rn && typeof module == "object" && module && !module.nodeType && module, to = Pe && Pe.exports === rn, We = to && Xt.process, _e = function() {
179
+ var on = typeof exports == "object" && exports && !exports.nodeType && exports, Pe = on && typeof module == "object" && module && !module.nodeType && module, mo = Pe && Pe.exports === on, Qe = mo && Zt.process, be = function() {
179
180
  try {
180
181
  var e = Pe && Pe.require && Pe.require("util").types;
181
- return e || We && We.binding && We.binding("util");
182
+ return e || Qe && Qe.binding && Qe.binding("util");
182
183
  } catch {
183
184
  }
184
- }(), At = _e && _e.isTypedArray, on = At ? ut(At) : eo, no = Object.prototype, ro = no.hasOwnProperty;
185
- function ln(e, t) {
186
- var n = Ce(e), r = !n && Pr(e), l = !n && !r && He(e), o = !n && !r && !l && on(e), i = n || r || l || o, s = i ? Tr(e.length, String) : [], a = s.length;
185
+ }(), Ct = be && be.isTypedArray, ln = Ct ? ft(Ct) : vo, go = Object.prototype, yo = go.hasOwnProperty;
186
+ function sn(e, t) {
187
+ var n = Oe(e), r = !n && Fr(e), l = !n && !r && Ge(e), o = !n && !r && !l && ln(e), i = n || r || l || o, s = i ? jr(e.length, String) : [], a = s.length;
187
188
  for (var u in e)
188
- (t || ro.call(e, u)) && !(i && // Safari 9 has enumerable `arguments.length` in strict mode.
189
+ (t || yo.call(e, u)) && !(i && // Safari 9 has enumerable `arguments.length` in strict mode.
189
190
  (u == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
190
191
  l && (u == "offset" || u == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
191
192
  o && (u == "buffer" || u == "byteLength" || u == "byteOffset") || // Skip index properties.
192
- yr(u, a))) && s.push(u);
193
+ Lr(u, a))) && s.push(u);
193
194
  return s;
194
195
  }
195
- function sn(e, t) {
196
+ function an(e, t) {
196
197
  return function(n) {
197
198
  return e(t(n));
198
199
  };
199
200
  }
200
- var oo = sn(Object.keys, Object), lo = Object.prototype, io = lo.hasOwnProperty;
201
- function so(e) {
202
- if (!at(e))
203
- return oo(e);
201
+ var ho = an(Object.keys, Object), _o = Object.prototype, bo = _o.hasOwnProperty;
202
+ function $o(e) {
203
+ if (!ct(e))
204
+ return ho(e);
204
205
  var t = [];
205
206
  for (var n in Object(e))
206
- io.call(e, n) && n != "constructor" && t.push(n);
207
+ bo.call(e, n) && n != "constructor" && t.push(n);
207
208
  return t;
208
209
  }
209
- function ct(e) {
210
- return en(e) ? ln(e) : so(e);
210
+ function dt(e) {
211
+ return tn(e) ? sn(e) : $o(e);
211
212
  }
212
- function ao(e) {
213
+ function To(e) {
213
214
  var t = [];
214
215
  if (e != null)
215
216
  for (var n in Object(e))
216
217
  t.push(n);
217
218
  return t;
218
219
  }
219
- var uo = Object.prototype, co = uo.hasOwnProperty;
220
- function fo(e) {
221
- if (!Le(e))
222
- return ao(e);
223
- var t = at(e), n = [];
220
+ var So = Object.prototype, wo = So.hasOwnProperty;
221
+ function Ao(e) {
222
+ if (!De(e))
223
+ return To(e);
224
+ var t = ct(e), n = [];
224
225
  for (var r in e)
225
- r == "constructor" && (t || !co.call(e, r)) || n.push(r);
226
+ r == "constructor" && (t || !wo.call(e, r)) || n.push(r);
226
227
  return n;
227
228
  }
228
- function ft(e) {
229
- return en(e) ? ln(e, !0) : fo(e);
229
+ function pt(e) {
230
+ return tn(e) ? sn(e, !0) : Ao(e);
230
231
  }
231
- var Oe = de(Object, "create");
232
- function po() {
233
- this.__data__ = Oe ? Oe(null) : {}, this.size = 0;
232
+ var xe = ve(Object, "create");
233
+ function Co() {
234
+ this.__data__ = xe ? xe(null) : {}, this.size = 0;
234
235
  }
235
- function mo(e) {
236
+ function Po(e) {
236
237
  var t = this.has(e) && delete this.__data__[e];
237
238
  return this.size -= t ? 1 : 0, t;
238
239
  }
239
- var vo = "__lodash_hash_undefined__", go = Object.prototype, yo = go.hasOwnProperty;
240
- function ho(e) {
240
+ var Oo = "__lodash_hash_undefined__", xo = Object.prototype, Lo = xo.hasOwnProperty;
241
+ function Mo(e) {
241
242
  var t = this.__data__;
242
- if (Oe) {
243
+ if (xe) {
243
244
  var n = t[e];
244
- return n === vo ? void 0 : n;
245
+ return n === Oo ? void 0 : n;
245
246
  }
246
- return yo.call(t, e) ? t[e] : void 0;
247
+ return Lo.call(t, e) ? t[e] : void 0;
247
248
  }
248
- var _o = Object.prototype, bo = _o.hasOwnProperty;
249
- function $o(e) {
249
+ var Vo = Object.prototype, Uo = Vo.hasOwnProperty;
250
+ function Do(e) {
250
251
  var t = this.__data__;
251
- return Oe ? t[e] !== void 0 : bo.call(t, e);
252
+ return xe ? t[e] !== void 0 : Uo.call(t, e);
252
253
  }
253
- var To = "__lodash_hash_undefined__";
254
- function So(e, t) {
254
+ var jo = "__lodash_hash_undefined__";
255
+ function Eo(e, t) {
255
256
  var n = this.__data__;
256
- return this.size += this.has(e) ? 0 : 1, n[e] = Oe && t === void 0 ? To : t, this;
257
+ return this.size += this.has(e) ? 0 : 1, n[e] = xe && t === void 0 ? jo : t, this;
257
258
  }
258
- function ce(e) {
259
+ function fe(e) {
259
260
  var t = -1, n = e == null ? 0 : e.length;
260
261
  for (this.clear(); ++t < n; ) {
261
262
  var r = e[t];
262
263
  this.set(r[0], r[1]);
263
264
  }
264
265
  }
265
- ce.prototype.clear = po;
266
- ce.prototype.delete = mo;
267
- ce.prototype.get = ho;
268
- ce.prototype.has = $o;
269
- ce.prototype.set = So;
270
- function Ao() {
266
+ fe.prototype.clear = Co;
267
+ fe.prototype.delete = Po;
268
+ fe.prototype.get = Mo;
269
+ fe.prototype.has = Do;
270
+ fe.prototype.set = Eo;
271
+ function No() {
271
272
  this.__data__ = [], this.size = 0;
272
273
  }
273
274
  function Ie(e, t) {
274
275
  for (var n = e.length; n--; )
275
- if (st(e[n][0], t))
276
+ if (ut(e[n][0], t))
276
277
  return n;
277
278
  return -1;
278
279
  }
279
- var wo = Array.prototype, Po = wo.splice;
280
- function Co(e) {
280
+ var Bo = Array.prototype, Fo = Bo.splice;
281
+ function Ro(e) {
281
282
  var t = this.__data__, n = Ie(t, e);
282
283
  if (n < 0)
283
284
  return !1;
284
285
  var r = t.length - 1;
285
- return n == r ? t.pop() : Po.call(t, n, 1), --this.size, !0;
286
+ return n == r ? t.pop() : Fo.call(t, n, 1), --this.size, !0;
286
287
  }
287
- function Oo(e) {
288
+ function ko(e) {
288
289
  var t = this.__data__, n = Ie(t, e);
289
290
  return n < 0 ? void 0 : t[n][1];
290
291
  }
291
- function Vo(e) {
292
+ function Ho(e) {
292
293
  return Ie(this.__data__, e) > -1;
293
294
  }
294
- function Mo(e, t) {
295
+ function Go(e, t) {
295
296
  var n = this.__data__, r = Ie(n, e);
296
297
  return r < 0 ? (++this.size, n.push([e, t])) : n[r][1] = t, this;
297
298
  }
298
- function te(e) {
299
+ function le(e) {
299
300
  var t = -1, n = e == null ? 0 : e.length;
300
301
  for (this.clear(); ++t < n; ) {
301
302
  var r = e[t];
302
303
  this.set(r[0], r[1]);
303
304
  }
304
305
  }
305
- te.prototype.clear = Ao;
306
- te.prototype.delete = Co;
307
- te.prototype.get = Oo;
308
- te.prototype.has = Vo;
309
- te.prototype.set = Mo;
310
- var Ve = de(J, "Map");
311
- function Uo() {
306
+ le.prototype.clear = No;
307
+ le.prototype.delete = Ro;
308
+ le.prototype.get = ko;
309
+ le.prototype.has = Ho;
310
+ le.prototype.set = Go;
311
+ var Le = ve(W, "Map");
312
+ function Ko() {
312
313
  this.size = 0, this.__data__ = {
313
- hash: new ce(),
314
- map: new (Ve || te)(),
315
- string: new ce()
314
+ hash: new fe(),
315
+ map: new (Le || le)(),
316
+ string: new fe()
316
317
  };
317
318
  }
318
- function xo(e) {
319
+ function zo(e) {
319
320
  var t = typeof e;
320
321
  return t == "string" || t == "number" || t == "symbol" || t == "boolean" ? e !== "__proto__" : e === null;
321
322
  }
322
323
  function Xe(e, t) {
323
324
  var n = e.__data__;
324
- return xo(t) ? n[typeof t == "string" ? "string" : "hash"] : n.map;
325
+ return zo(t) ? n[typeof t == "string" ? "string" : "hash"] : n.map;
325
326
  }
326
- function Lo(e) {
327
+ function qo(e) {
327
328
  var t = Xe(this, e).delete(e);
328
329
  return this.size -= t ? 1 : 0, t;
329
330
  }
330
- function Do(e) {
331
+ function Io(e) {
331
332
  return Xe(this, e).get(e);
332
333
  }
333
- function jo(e) {
334
+ function Xo(e) {
334
335
  return Xe(this, e).has(e);
335
336
  }
336
- function Eo(e, t) {
337
+ function Zo(e, t) {
337
338
  var n = Xe(this, e), r = n.size;
338
339
  return n.set(e, t), this.size += n.size == r ? 0 : 1, this;
339
340
  }
340
- function pe(e) {
341
+ function me(e) {
341
342
  var t = -1, n = e == null ? 0 : e.length;
342
343
  for (this.clear(); ++t < n; ) {
343
344
  var r = e[t];
344
345
  this.set(r[0], r[1]);
345
346
  }
346
347
  }
347
- pe.prototype.clear = Uo;
348
- pe.prototype.delete = Lo;
349
- pe.prototype.get = Do;
350
- pe.prototype.has = jo;
351
- pe.prototype.set = Eo;
352
- function an(e, t) {
348
+ me.prototype.clear = Ko;
349
+ me.prototype.delete = qo;
350
+ me.prototype.get = Io;
351
+ me.prototype.has = Xo;
352
+ me.prototype.set = Zo;
353
+ function un(e, t) {
353
354
  for (var n = -1, r = t.length, l = e.length; ++n < r; )
354
355
  e[l + n] = t[n];
355
356
  return e;
356
357
  }
357
- var un = sn(Object.getPrototypeOf, Object);
358
- function No() {
359
- this.__data__ = new te(), this.size = 0;
358
+ var cn = an(Object.getPrototypeOf, Object);
359
+ function Yo() {
360
+ this.__data__ = new le(), this.size = 0;
360
361
  }
361
- function Fo(e) {
362
+ function Jo(e) {
362
363
  var t = this.__data__, n = t.delete(e);
363
364
  return this.size = t.size, n;
364
365
  }
365
- function Ro(e) {
366
+ function Wo(e) {
366
367
  return this.__data__.get(e);
367
368
  }
368
- function Bo(e) {
369
+ function Qo(e) {
369
370
  return this.__data__.has(e);
370
371
  }
371
- var Ho = 200;
372
- function Go(e, t) {
372
+ var el = 200;
373
+ function tl(e, t) {
373
374
  var n = this.__data__;
374
- if (n instanceof te) {
375
+ if (n instanceof le) {
375
376
  var r = n.__data__;
376
- if (!Ve || r.length < Ho - 1)
377
+ if (!Le || r.length < el - 1)
377
378
  return r.push([e, t]), this.size = ++n.size, this;
378
- n = this.__data__ = new pe(r);
379
+ n = this.__data__ = new me(r);
379
380
  }
380
381
  return n.set(e, t), this.size = n.size, this;
381
382
  }
382
- function Q(e) {
383
- var t = this.__data__ = new te(e);
383
+ function te(e) {
384
+ var t = this.__data__ = new le(e);
384
385
  this.size = t.size;
385
386
  }
386
- Q.prototype.clear = No;
387
- Q.prototype.delete = Fo;
388
- Q.prototype.get = Ro;
389
- Q.prototype.has = Bo;
390
- Q.prototype.set = Go;
391
- function ko(e, t) {
392
- return e && qe(t, ct(t), e);
387
+ te.prototype.clear = Yo;
388
+ te.prototype.delete = Jo;
389
+ te.prototype.get = Wo;
390
+ te.prototype.has = Qo;
391
+ te.prototype.set = tl;
392
+ function nl(e, t) {
393
+ return e && qe(t, dt(t), e);
393
394
  }
394
- function zo(e, t) {
395
- return e && qe(t, ft(t), e);
395
+ function rl(e, t) {
396
+ return e && qe(t, pt(t), e);
396
397
  }
397
- var cn = typeof exports == "object" && exports && !exports.nodeType && exports, wt = cn && typeof module == "object" && module && !module.nodeType && module, Ko = wt && wt.exports === cn, Pt = Ko ? J.Buffer : void 0, Ct = Pt ? Pt.allocUnsafe : void 0;
398
- function qo(e, t) {
398
+ var fn = typeof exports == "object" && exports && !exports.nodeType && exports, Pt = fn && typeof module == "object" && module && !module.nodeType && module, ol = Pt && Pt.exports === fn, Ot = ol ? W.Buffer : void 0, xt = Ot ? Ot.allocUnsafe : void 0;
399
+ function ll(e, t) {
399
400
  if (t)
400
401
  return e.slice();
401
- var n = e.length, r = Ct ? Ct(n) : new e.constructor(n);
402
+ var n = e.length, r = xt ? xt(n) : new e.constructor(n);
402
403
  return e.copy(r), r;
403
404
  }
404
- function Io(e, t) {
405
+ function il(e, t) {
405
406
  for (var n = -1, r = e == null ? 0 : e.length, l = 0, o = []; ++n < r; ) {
406
407
  var i = e[n];
407
408
  t(i, n, e) && (o[l++] = i);
408
409
  }
409
410
  return o;
410
411
  }
411
- function fn() {
412
+ function dn() {
412
413
  return [];
413
414
  }
414
- var Xo = Object.prototype, Yo = Xo.propertyIsEnumerable, Ot = Object.getOwnPropertySymbols, dt = Ot ? function(e) {
415
- return e == null ? [] : (e = Object(e), Io(Ot(e), function(t) {
416
- return Yo.call(e, t);
415
+ var sl = Object.prototype, al = sl.propertyIsEnumerable, Lt = Object.getOwnPropertySymbols, vt = Lt ? function(e) {
416
+ return e == null ? [] : (e = Object(e), il(Lt(e), function(t) {
417
+ return al.call(e, t);
417
418
  }));
418
- } : fn;
419
- function Zo(e, t) {
420
- return qe(e, dt(e), t);
419
+ } : dn;
420
+ function ul(e, t) {
421
+ return qe(e, vt(e), t);
421
422
  }
422
- var Jo = Object.getOwnPropertySymbols, dn = Jo ? function(e) {
423
+ var cl = Object.getOwnPropertySymbols, pn = cl ? function(e) {
423
424
  for (var t = []; e; )
424
- an(t, dt(e)), e = un(e);
425
+ un(t, vt(e)), e = cn(e);
425
426
  return t;
426
- } : fn;
427
- function Wo(e, t) {
428
- return qe(e, dn(e), t);
427
+ } : dn;
428
+ function fl(e, t) {
429
+ return qe(e, pn(e), t);
429
430
  }
430
- function pn(e, t, n) {
431
+ function vn(e, t, n) {
431
432
  var r = t(e);
432
- return Ce(e) ? r : an(r, n(e));
433
+ return Oe(e) ? r : un(r, n(e));
433
434
  }
434
- function nt(e) {
435
- return pn(e, ct, dt);
435
+ function ot(e) {
436
+ return vn(e, dt, vt);
436
437
  }
437
- function Qo(e) {
438
- return pn(e, ft, dn);
438
+ function dl(e) {
439
+ return vn(e, pt, pn);
439
440
  }
440
- var rt = de(J, "DataView"), ot = de(J, "Promise"), lt = de(J, "Set"), Vt = "[object Map]", el = "[object Object]", Mt = "[object Promise]", Ut = "[object Set]", xt = "[object WeakMap]", Lt = "[object DataView]", tl = fe(rt), nl = fe(Ve), rl = fe(ot), ol = fe(lt), ll = fe(tt), q = xe;
441
- (rt && q(new rt(new ArrayBuffer(1))) != Lt || Ve && q(new Ve()) != Vt || ot && q(ot.resolve()) != Mt || lt && q(new lt()) != Ut || tt && q(new tt()) != xt) && (q = function(e) {
442
- var t = xe(e), n = t == el ? e.constructor : void 0, r = n ? fe(n) : "";
441
+ var lt = ve(W, "DataView"), it = ve(W, "Promise"), st = ve(W, "Set"), Mt = "[object Map]", pl = "[object Object]", Vt = "[object Promise]", Ut = "[object Set]", Dt = "[object WeakMap]", jt = "[object DataView]", vl = pe(lt), ml = pe(Le), gl = pe(it), yl = pe(st), hl = pe(rt), Z = Ue;
442
+ (lt && Z(new lt(new ArrayBuffer(1))) != jt || Le && Z(new Le()) != Mt || it && Z(it.resolve()) != Vt || st && Z(new st()) != Ut || rt && Z(new rt()) != Dt) && (Z = function(e) {
443
+ var t = Ue(e), n = t == pl ? e.constructor : void 0, r = n ? pe(n) : "";
443
444
  if (r)
444
445
  switch (r) {
445
- case tl:
446
- return Lt;
447
- case nl:
448
- return Vt;
449
- case rl:
446
+ case vl:
447
+ return jt;
448
+ case ml:
450
449
  return Mt;
451
- case ol:
450
+ case gl:
451
+ return Vt;
452
+ case yl:
452
453
  return Ut;
453
- case ll:
454
- return xt;
454
+ case hl:
455
+ return Dt;
455
456
  }
456
457
  return t;
457
458
  });
458
- var il = Object.prototype, sl = il.hasOwnProperty;
459
- function al(e) {
459
+ var _l = Object.prototype, bl = _l.hasOwnProperty;
460
+ function $l(e) {
460
461
  var t = e.length, n = new e.constructor(t);
461
- return t && typeof e[0] == "string" && sl.call(e, "index") && (n.index = e.index, n.input = e.input), n;
462
+ return t && typeof e[0] == "string" && bl.call(e, "index") && (n.index = e.index, n.input = e.input), n;
462
463
  }
463
- var Ge = J.Uint8Array;
464
- function pt(e) {
464
+ var Ke = W.Uint8Array;
465
+ function mt(e) {
465
466
  var t = new e.constructor(e.byteLength);
466
- return new Ge(t).set(new Ge(e)), t;
467
+ return new Ke(t).set(new Ke(e)), t;
467
468
  }
468
- function ul(e, t) {
469
- var n = t ? pt(e.buffer) : e.buffer;
469
+ function Tl(e, t) {
470
+ var n = t ? mt(e.buffer) : e.buffer;
470
471
  return new e.constructor(n, e.byteOffset, e.byteLength);
471
472
  }
472
- var cl = /\w*$/;
473
- function fl(e) {
474
- var t = new e.constructor(e.source, cl.exec(e));
473
+ var Sl = /\w*$/;
474
+ function wl(e) {
475
+ var t = new e.constructor(e.source, Sl.exec(e));
475
476
  return t.lastIndex = e.lastIndex, t;
476
477
  }
477
- var Dt = re ? re.prototype : void 0, jt = Dt ? Dt.valueOf : void 0;
478
- function dl(e) {
479
- return jt ? Object(jt.call(e)) : {};
478
+ var Et = se ? se.prototype : void 0, Nt = Et ? Et.valueOf : void 0;
479
+ function Al(e) {
480
+ return Nt ? Object(Nt.call(e)) : {};
480
481
  }
481
- function pl(e, t) {
482
- var n = t ? pt(e.buffer) : e.buffer;
482
+ function Cl(e, t) {
483
+ var n = t ? mt(e.buffer) : e.buffer;
483
484
  return new e.constructor(n, e.byteOffset, e.length);
484
485
  }
485
- var ml = "[object Boolean]", vl = "[object Date]", gl = "[object Map]", yl = "[object Number]", hl = "[object RegExp]", _l = "[object Set]", bl = "[object String]", $l = "[object Symbol]", Tl = "[object ArrayBuffer]", Sl = "[object DataView]", Al = "[object Float32Array]", wl = "[object Float64Array]", Pl = "[object Int8Array]", Cl = "[object Int16Array]", Ol = "[object Int32Array]", Vl = "[object Uint8Array]", Ml = "[object Uint8ClampedArray]", Ul = "[object Uint16Array]", xl = "[object Uint32Array]";
486
- function Ll(e, t, n) {
486
+ var Pl = "[object Boolean]", Ol = "[object Date]", xl = "[object Map]", Ll = "[object Number]", Ml = "[object RegExp]", Vl = "[object Set]", Ul = "[object String]", Dl = "[object Symbol]", jl = "[object ArrayBuffer]", El = "[object DataView]", Nl = "[object Float32Array]", Bl = "[object Float64Array]", Fl = "[object Int8Array]", Rl = "[object Int16Array]", kl = "[object Int32Array]", Hl = "[object Uint8Array]", Gl = "[object Uint8ClampedArray]", Kl = "[object Uint16Array]", zl = "[object Uint32Array]";
487
+ function ql(e, t, n) {
487
488
  var r = e.constructor;
488
489
  switch (t) {
489
- case Tl:
490
- return pt(e);
491
- case ml:
492
- case vl:
493
- return new r(+e);
494
- case Sl:
495
- return ul(e, n);
496
- case Al:
497
- case wl:
490
+ case jl:
491
+ return mt(e);
498
492
  case Pl:
499
- case Cl:
500
493
  case Ol:
501
- case Vl:
502
- case Ml:
503
- case Ul:
494
+ return new r(+e);
495
+ case El:
496
+ return Tl(e, n);
497
+ case Nl:
498
+ case Bl:
499
+ case Fl:
500
+ case Rl:
501
+ case kl:
502
+ case Hl:
503
+ case Gl:
504
+ case Kl:
505
+ case zl:
506
+ return Cl(e, n);
504
507
  case xl:
505
- return pl(e, n);
506
- case gl:
507
508
  return new r();
508
- case yl:
509
- case bl:
509
+ case Ll:
510
+ case Ul:
510
511
  return new r(e);
511
- case hl:
512
- return fl(e);
513
- case _l:
512
+ case Ml:
513
+ return wl(e);
514
+ case Vl:
514
515
  return new r();
515
- case $l:
516
- return dl(e);
516
+ case Dl:
517
+ return Al(e);
517
518
  }
518
519
  }
519
- function Dl(e) {
520
- return typeof e.constructor == "function" && !at(e) ? dr(un(e)) : {};
520
+ function Il(e) {
521
+ return typeof e.constructor == "function" && !ct(e) ? Ar(cn(e)) : {};
521
522
  }
522
- var jl = "[object Map]";
523
- function El(e) {
524
- return ue(e) && q(e) == jl;
523
+ var Xl = "[object Map]";
524
+ function Zl(e) {
525
+ return ce(e) && Z(e) == Xl;
525
526
  }
526
- var Et = _e && _e.isMap, Nl = Et ? ut(Et) : El, Fl = "[object Set]";
527
- function Rl(e) {
528
- return ue(e) && q(e) == Fl;
527
+ var Bt = be && be.isMap, Yl = Bt ? ft(Bt) : Zl, Jl = "[object Set]";
528
+ function Wl(e) {
529
+ return ce(e) && Z(e) == Jl;
529
530
  }
530
- var Nt = _e && _e.isSet, Bl = Nt ? ut(Nt) : Rl, Hl = 1, Gl = 2, kl = 4, mn = "[object Arguments]", zl = "[object Array]", Kl = "[object Boolean]", ql = "[object Date]", Il = "[object Error]", vn = "[object Function]", Xl = "[object GeneratorFunction]", Yl = "[object Map]", Zl = "[object Number]", gn = "[object Object]", Jl = "[object RegExp]", Wl = "[object Set]", Ql = "[object String]", ei = "[object Symbol]", ti = "[object WeakMap]", ni = "[object ArrayBuffer]", ri = "[object DataView]", oi = "[object Float32Array]", li = "[object Float64Array]", ii = "[object Int8Array]", si = "[object Int16Array]", ai = "[object Int32Array]", ui = "[object Uint8Array]", ci = "[object Uint8ClampedArray]", fi = "[object Uint16Array]", di = "[object Uint32Array]", P = {};
531
- P[mn] = P[zl] = P[ni] = P[ri] = P[Kl] = P[ql] = P[oi] = P[li] = P[ii] = P[si] = P[ai] = P[Yl] = P[Zl] = P[gn] = P[Jl] = P[Wl] = P[Ql] = P[ei] = P[ui] = P[ci] = P[fi] = P[di] = !0;
532
- P[Il] = P[vn] = P[ti] = !1;
533
- function Re(e, t, n, r, l, o) {
534
- var i, s = t & Hl, a = t & Gl, u = t & kl;
531
+ var Ft = be && be.isSet, Ql = Ft ? ft(Ft) : Wl, ei = 1, ti = 2, ni = 4, mn = "[object Arguments]", ri = "[object Array]", oi = "[object Boolean]", li = "[object Date]", ii = "[object Error]", gn = "[object Function]", si = "[object GeneratorFunction]", ai = "[object Map]", ui = "[object Number]", yn = "[object Object]", ci = "[object RegExp]", fi = "[object Set]", di = "[object String]", pi = "[object Symbol]", vi = "[object WeakMap]", mi = "[object ArrayBuffer]", gi = "[object DataView]", yi = "[object Float32Array]", hi = "[object Float64Array]", _i = "[object Int8Array]", bi = "[object Int16Array]", $i = "[object Int32Array]", Ti = "[object Uint8Array]", Si = "[object Uint8ClampedArray]", wi = "[object Uint16Array]", Ai = "[object Uint32Array]", x = {};
532
+ x[mn] = x[ri] = x[mi] = x[gi] = x[oi] = x[li] = x[yi] = x[hi] = x[_i] = x[bi] = x[$i] = x[ai] = x[ui] = x[yn] = x[ci] = x[fi] = x[di] = x[pi] = x[Ti] = x[Si] = x[wi] = x[Ai] = !0;
533
+ x[ii] = x[gn] = x[vi] = !1;
534
+ function ke(e, t, n, r, l, o) {
535
+ var i, s = t & ei, a = t & ti, u = t & ni;
535
536
  if (i !== void 0)
536
537
  return i;
537
- if (!Le(e))
538
+ if (!De(e))
538
539
  return e;
539
- var f = Ce(e);
540
- if (f) {
541
- if (i = al(e), !s)
542
- return pr(e, i);
540
+ var d = Oe(e);
541
+ if (d) {
542
+ if (i = $l(e), !s)
543
+ return Cr(e, i);
543
544
  } else {
544
- var d = q(e), y = d == vn || d == Xl;
545
- if (He(e))
546
- return qo(e, s);
547
- if (d == gn || d == mn || y && !l) {
548
- if (i = a || y ? {} : Dl(e), !s)
549
- return a ? Wo(e, zo(i, e)) : Zo(e, ko(i, e));
545
+ var f = Z(e), g = f == gn || f == si;
546
+ if (Ge(e))
547
+ return ll(e, s);
548
+ if (f == yn || f == mn || g && !l) {
549
+ if (i = a || g ? {} : Il(e), !s)
550
+ return a ? fl(e, rl(i, e)) : ul(e, nl(i, e));
550
551
  } else {
551
- if (!P[d])
552
+ if (!x[f])
552
553
  return l ? e : {};
553
- i = Ll(e, d, s);
554
+ i = ql(e, f, s);
554
555
  }
555
556
  }
556
- o || (o = new Q());
557
- var T = o.get(e);
558
- if (T)
559
- return T;
560
- o.set(e, i), Bl(e) ? e.forEach(function(h) {
561
- i.add(Re(h, t, n, h, e, o));
562
- }) : Nl(e) && e.forEach(function(h, S) {
563
- i.set(S, Re(h, t, n, S, e, o));
557
+ o || (o = new te());
558
+ var _ = o.get(e);
559
+ if (_)
560
+ return _;
561
+ o.set(e, i), Ql(e) ? e.forEach(function(y) {
562
+ i.add(ke(y, t, n, y, e, o));
563
+ }) : Yl(e) && e.forEach(function(y, $) {
564
+ i.set($, ke(y, t, n, $, e, o));
564
565
  });
565
- var w = u ? a ? Qo : nt : a ? ft : ct, C = f ? void 0 : w(e);
566
- return mr(C || e, function(h, S) {
567
- C && (S = h, h = e[S]), Wt(i, S, Re(h, t, n, S, e, o));
566
+ var w = u ? a ? dl : ot : a ? pt : dt, C = d ? void 0 : w(e);
567
+ return Pr(C || e, function(y, $) {
568
+ C && ($ = y, y = e[$]), Qt(i, $, ke(y, t, n, $, e, o));
568
569
  }), i;
569
570
  }
570
- var pi = 1, mi = 4;
571
- function yn(e) {
572
- return Re(e, pi | mi);
571
+ var Ci = 1, Pi = 4;
572
+ function hn(e) {
573
+ return ke(e, Ci | Pi);
573
574
  }
574
- var vi = "__lodash_hash_undefined__";
575
- function gi(e) {
576
- return this.__data__.set(e, vi), this;
575
+ var Oi = "__lodash_hash_undefined__";
576
+ function xi(e) {
577
+ return this.__data__.set(e, Oi), this;
577
578
  }
578
- function yi(e) {
579
+ function Li(e) {
579
580
  return this.__data__.has(e);
580
581
  }
581
- function ke(e) {
582
+ function ze(e) {
582
583
  var t = -1, n = e == null ? 0 : e.length;
583
- for (this.__data__ = new pe(); ++t < n; )
584
+ for (this.__data__ = new me(); ++t < n; )
584
585
  this.add(e[t]);
585
586
  }
586
- ke.prototype.add = ke.prototype.push = gi;
587
- ke.prototype.has = yi;
588
- function hi(e, t) {
587
+ ze.prototype.add = ze.prototype.push = xi;
588
+ ze.prototype.has = Li;
589
+ function Mi(e, t) {
589
590
  for (var n = -1, r = e == null ? 0 : e.length; ++n < r; )
590
591
  if (t(e[n], n, e))
591
592
  return !0;
592
593
  return !1;
593
594
  }
594
- function _i(e, t) {
595
+ function Vi(e, t) {
595
596
  return e.has(t);
596
597
  }
597
- var bi = 1, $i = 2;
598
- function hn(e, t, n, r, l, o) {
599
- var i = n & bi, s = e.length, a = t.length;
598
+ var Ui = 1, Di = 2;
599
+ function _n(e, t, n, r, l, o) {
600
+ var i = n & Ui, s = e.length, a = t.length;
600
601
  if (s != a && !(i && a > s))
601
602
  return !1;
602
- var u = o.get(e), f = o.get(t);
603
- if (u && f)
604
- return u == t && f == e;
605
- var d = -1, y = !0, T = n & $i ? new ke() : void 0;
606
- for (o.set(e, t), o.set(t, e); ++d < s; ) {
607
- var w = e[d], C = t[d];
603
+ var u = o.get(e), d = o.get(t);
604
+ if (u && d)
605
+ return u == t && d == e;
606
+ var f = -1, g = !0, _ = n & Di ? new ze() : void 0;
607
+ for (o.set(e, t), o.set(t, e); ++f < s; ) {
608
+ var w = e[f], C = t[f];
608
609
  if (r)
609
- var h = i ? r(C, w, d, t, e, o) : r(w, C, d, e, t, o);
610
- if (h !== void 0) {
611
- if (h)
610
+ var y = i ? r(C, w, f, t, e, o) : r(w, C, f, e, t, o);
611
+ if (y !== void 0) {
612
+ if (y)
612
613
  continue;
613
- y = !1;
614
+ g = !1;
614
615
  break;
615
616
  }
616
- if (T) {
617
- if (!hi(t, function(S, E) {
618
- if (!_i(T, E) && (w === S || l(w, S, n, r, o)))
619
- return T.push(E);
617
+ if (_) {
618
+ if (!Mi(t, function($, A) {
619
+ if (!Vi(_, A) && (w === $ || l(w, $, n, r, o)))
620
+ return _.push(A);
620
621
  })) {
621
- y = !1;
622
+ g = !1;
622
623
  break;
623
624
  }
624
625
  } else if (!(w === C || l(w, C, n, r, o))) {
625
- y = !1;
626
+ g = !1;
626
627
  break;
627
628
  }
628
629
  }
629
- return o.delete(e), o.delete(t), y;
630
+ return o.delete(e), o.delete(t), g;
630
631
  }
631
- function Ti(e) {
632
+ function ji(e) {
632
633
  var t = -1, n = Array(e.size);
633
634
  return e.forEach(function(r, l) {
634
635
  n[++t] = [l, r];
635
636
  }), n;
636
637
  }
637
- function Si(e) {
638
+ function Ei(e) {
638
639
  var t = -1, n = Array(e.size);
639
640
  return e.forEach(function(r) {
640
641
  n[++t] = r;
641
642
  }), n;
642
643
  }
643
- var Ai = 1, wi = 2, Pi = "[object Boolean]", Ci = "[object Date]", Oi = "[object Error]", Vi = "[object Map]", Mi = "[object Number]", Ui = "[object RegExp]", xi = "[object Set]", Li = "[object String]", Di = "[object Symbol]", ji = "[object ArrayBuffer]", Ei = "[object DataView]", Ft = re ? re.prototype : void 0, Qe = Ft ? Ft.valueOf : void 0;
644
- function Ni(e, t, n, r, l, o, i) {
644
+ var Ni = 1, Bi = 2, Fi = "[object Boolean]", Ri = "[object Date]", ki = "[object Error]", Hi = "[object Map]", Gi = "[object Number]", Ki = "[object RegExp]", zi = "[object Set]", qi = "[object String]", Ii = "[object Symbol]", Xi = "[object ArrayBuffer]", Zi = "[object DataView]", Rt = se ? se.prototype : void 0, et = Rt ? Rt.valueOf : void 0;
645
+ function Yi(e, t, n, r, l, o, i) {
645
646
  switch (n) {
646
- case Ei:
647
+ case Zi:
647
648
  if (e.byteLength != t.byteLength || e.byteOffset != t.byteOffset)
648
649
  return !1;
649
650
  e = e.buffer, t = t.buffer;
650
- case ji:
651
- return !(e.byteLength != t.byteLength || !o(new Ge(e), new Ge(t)));
652
- case Pi:
653
- case Ci:
654
- case Mi:
655
- return st(+e, +t);
656
- case Oi:
651
+ case Xi:
652
+ return !(e.byteLength != t.byteLength || !o(new Ke(e), new Ke(t)));
653
+ case Fi:
654
+ case Ri:
655
+ case Gi:
656
+ return ut(+e, +t);
657
+ case ki:
657
658
  return e.name == t.name && e.message == t.message;
658
- case Ui:
659
- case Li:
659
+ case Ki:
660
+ case qi:
660
661
  return e == t + "";
661
- case Vi:
662
- var s = Ti;
663
- case xi:
664
- var a = r & Ai;
665
- if (s || (s = Si), e.size != t.size && !a)
662
+ case Hi:
663
+ var s = ji;
664
+ case zi:
665
+ var a = r & Ni;
666
+ if (s || (s = Ei), e.size != t.size && !a)
666
667
  return !1;
667
668
  var u = i.get(e);
668
669
  if (u)
669
670
  return u == t;
670
- r |= wi, i.set(e, t);
671
- var f = hn(s(e), s(t), r, l, o, i);
672
- return i.delete(e), f;
673
- case Di:
674
- if (Qe)
675
- return Qe.call(e) == Qe.call(t);
671
+ r |= Bi, i.set(e, t);
672
+ var d = _n(s(e), s(t), r, l, o, i);
673
+ return i.delete(e), d;
674
+ case Ii:
675
+ if (et)
676
+ return et.call(e) == et.call(t);
676
677
  }
677
678
  return !1;
678
679
  }
679
- var Fi = 1, Ri = Object.prototype, Bi = Ri.hasOwnProperty;
680
- function Hi(e, t, n, r, l, o) {
681
- var i = n & Fi, s = nt(e), a = s.length, u = nt(t), f = u.length;
682
- if (a != f && !i)
680
+ var Ji = 1, Wi = Object.prototype, Qi = Wi.hasOwnProperty;
681
+ function es(e, t, n, r, l, o) {
682
+ var i = n & Ji, s = ot(e), a = s.length, u = ot(t), d = u.length;
683
+ if (a != d && !i)
683
684
  return !1;
684
- for (var d = a; d--; ) {
685
- var y = s[d];
686
- if (!(i ? y in t : Bi.call(t, y)))
685
+ for (var f = a; f--; ) {
686
+ var g = s[f];
687
+ if (!(i ? g in t : Qi.call(t, g)))
687
688
  return !1;
688
689
  }
689
- var T = o.get(e), w = o.get(t);
690
- if (T && w)
691
- return T == t && w == e;
690
+ var _ = o.get(e), w = o.get(t);
691
+ if (_ && w)
692
+ return _ == t && w == e;
692
693
  var C = !0;
693
694
  o.set(e, t), o.set(t, e);
694
- for (var h = i; ++d < a; ) {
695
- y = s[d];
696
- var S = e[y], E = t[y];
695
+ for (var y = i; ++f < a; ) {
696
+ g = s[f];
697
+ var $ = e[g], A = t[g];
697
698
  if (r)
698
- var V = i ? r(E, S, y, t, e, o) : r(S, E, y, e, t, o);
699
- if (!(V === void 0 ? S === E || l(S, E, n, r, o) : V)) {
699
+ var V = i ? r(A, $, g, t, e, o) : r($, A, g, e, t, o);
700
+ if (!(V === void 0 ? $ === A || l($, A, n, r, o) : V)) {
700
701
  C = !1;
701
702
  break;
702
703
  }
703
- h || (h = y == "constructor");
704
+ y || (y = g == "constructor");
704
705
  }
705
- if (C && !h) {
706
- var A = e.constructor, M = t.constructor;
707
- A != M && "constructor" in e && "constructor" in t && !(typeof A == "function" && A instanceof A && typeof M == "function" && M instanceof M) && (C = !1);
706
+ if (C && !y) {
707
+ var P = e.constructor, U = t.constructor;
708
+ P != U && "constructor" in e && "constructor" in t && !(typeof P == "function" && P instanceof P && typeof U == "function" && U instanceof U) && (C = !1);
708
709
  }
709
710
  return o.delete(e), o.delete(t), C;
710
711
  }
711
- var Gi = 1, Rt = "[object Arguments]", Bt = "[object Array]", Ee = "[object Object]", ki = Object.prototype, Ht = ki.hasOwnProperty;
712
- function zi(e, t, n, r, l, o) {
713
- var i = Ce(e), s = Ce(t), a = i ? Bt : q(e), u = s ? Bt : q(t);
714
- a = a == Rt ? Ee : a, u = u == Rt ? Ee : u;
715
- var f = a == Ee, d = u == Ee, y = a == u;
716
- if (y && He(e)) {
717
- if (!He(t))
712
+ var ts = 1, kt = "[object Arguments]", Ht = "[object Array]", Be = "[object Object]", ns = Object.prototype, Gt = ns.hasOwnProperty;
713
+ function rs(e, t, n, r, l, o) {
714
+ var i = Oe(e), s = Oe(t), a = i ? Ht : Z(e), u = s ? Ht : Z(t);
715
+ a = a == kt ? Be : a, u = u == kt ? Be : u;
716
+ var d = a == Be, f = u == Be, g = a == u;
717
+ if (g && Ge(e)) {
718
+ if (!Ge(t))
718
719
  return !1;
719
- i = !0, f = !1;
720
+ i = !0, d = !1;
720
721
  }
721
- if (y && !f)
722
- return o || (o = new Q()), i || on(e) ? hn(e, t, n, r, l, o) : Ni(e, t, a, n, r, l, o);
723
- if (!(n & Gi)) {
724
- var T = f && Ht.call(e, "__wrapped__"), w = d && Ht.call(t, "__wrapped__");
725
- if (T || w) {
726
- var C = T ? e.value() : e, h = w ? t.value() : t;
727
- return o || (o = new Q()), l(C, h, n, r, o);
722
+ if (g && !d)
723
+ return o || (o = new te()), i || ln(e) ? _n(e, t, n, r, l, o) : Yi(e, t, a, n, r, l, o);
724
+ if (!(n & ts)) {
725
+ var _ = d && Gt.call(e, "__wrapped__"), w = f && Gt.call(t, "__wrapped__");
726
+ if (_ || w) {
727
+ var C = _ ? e.value() : e, y = w ? t.value() : t;
728
+ return o || (o = new te()), l(C, y, n, r, o);
728
729
  }
729
730
  }
730
- return y ? (o || (o = new Q()), Hi(e, t, n, r, l, o)) : !1;
731
+ return g ? (o || (o = new te()), es(e, t, n, r, l, o)) : !1;
732
+ }
733
+ function bn(e, t, n, r, l) {
734
+ return e === t ? !0 : e == null || t == null || !ce(e) && !ce(t) ? e !== e && t !== t : rs(e, t, n, r, bn, l);
735
+ }
736
+ function Ze(e, t) {
737
+ return bn(e, t);
738
+ }
739
+ function os(e, t) {
740
+ const n = [];
741
+ let r = [];
742
+ e.forEach((i) => {
743
+ i.type === 0 ? n.push(i) : i.type === 1 ? r.push(i) : console.assert(!1);
744
+ }), n.sort((i, s) => i.position - s.position), r.sort((i, s) => i.position - s.position);
745
+ const l = [];
746
+ r.forEach((i) => {
747
+ n.find((s) => s.id === i.group) || l.push(i.id);
748
+ }), r = r.filter((i) => !l.find((s) => s === i.id));
749
+ const o = [];
750
+ return n.forEach((i) => {
751
+ const s = [];
752
+ r.forEach((a) => {
753
+ a.group === i.id && (a.show = !i.collapse, s.push(a));
754
+ }), i.count = s.length, i.count > 0 && (o.push(i), o.push(...s));
755
+ }), o;
731
756
  }
732
- function _n(e, t, n, r, l) {
733
- return e === t ? !0 : e == null || t == null || !ue(e) && !ue(t) ? e !== e && t !== t : zi(e, t, n, r, _n, l);
757
+ function $n(e, t) {
758
+ return e.value.find((n) => n.id === t);
734
759
  }
735
- function Ye(e, t) {
736
- return _n(e, t);
760
+ function ls(e, t, n) {
761
+ for (let r = 0; r < e.value.length; r++) {
762
+ let l = e.value[r];
763
+ if (l.id === t) {
764
+ if (l.type !== 0) {
765
+ console.assert(!1, "type must be 0");
766
+ break;
767
+ }
768
+ for (l.collapse = n, r++; r < e.value.length && (l = e.value[r], l.type !== 0); r++)
769
+ l.show = !n;
770
+ break;
771
+ }
772
+ }
737
773
  }
738
- const Ne = (e, t) => {
774
+ const Fe = (e, t) => {
739
775
  let n = { key: "", name: "", children: e };
740
776
  return t.forEach((r) => {
741
777
  if (typeof r != "number") {
@@ -750,7 +786,7 @@ const Ne = (e, t) => {
750
786
  n = n.children.find((l) => l.key === r);
751
787
  }
752
788
  }), n;
753
- }, Se = (e, t) => {
789
+ }, we = (e, t) => {
754
790
  let n = e;
755
791
  return t.forEach((r) => {
756
792
  if (!n) {
@@ -759,7 +795,7 @@ const Ne = (e, t) => {
759
795
  }
760
796
  n = n[r];
761
797
  }), n;
762
- }, Gt = (e) => !(e instanceof Array), et = (e) => e instanceof Array, Ki = (e, t) => {
798
+ }, Kt = (e) => !(e instanceof Array), tt = (e) => e instanceof Array, is = (e, t) => {
763
799
  const n = (r, l) => {
764
800
  if (r.ui !== l.ui || r.array !== l.array)
765
801
  return !1;
@@ -773,10 +809,10 @@ const Ne = (e, t) => {
773
809
  return !0;
774
810
  };
775
811
  return n(e, t);
776
- }, mt = (e) => !(e instanceof Array), vt = (e) => e instanceof Array, qi = [
812
+ }, gt = (e) => !(e instanceof Array), yt = (e) => e instanceof Array, ss = [
777
813
  ["basic", "id"],
778
814
  ["basic", "name"]
779
- ], Ii = (e) => qi.find((t) => Ye(e, t)), Ze = (e, t, n, r, l, o, i) => (e = yn(e), o !== void 0 ? (e.push(o), i && e.push(t.key)) : e.push(t.key), Ii(e) ? (r.change = !1, r.change) : t.ui ? t.array && o === void 0 ? Zi(
815
+ ], as = (e) => ss.find((t) => Ze(e, t)), Ye = (e, t, n, r, l, o, i) => (e = hn(e), o !== void 0 ? (e.push(o), i && e.push(t.key)) : e.push(t.key), as(e) ? (r.change = !1, r.change) : t.ui ? t.array && o === void 0 ? fs(
780
816
  e,
781
817
  t,
782
818
  n,
@@ -784,7 +820,7 @@ const Ne = (e, t) => {
784
820
  l,
785
821
  o,
786
822
  i
787
- ) : Ji(t, n, r, o, i) : t.array ? Xi(
823
+ ) : ds(t, n, r, o, i) : t.array ? us(
788
824
  e,
789
825
  t,
790
826
  n,
@@ -792,7 +828,7 @@ const Ne = (e, t) => {
792
828
  l,
793
829
  o,
794
830
  i
795
- ) : Yi(
831
+ ) : cs(
796
832
  e,
797
833
  t,
798
834
  n,
@@ -800,47 +836,47 @@ const Ne = (e, t) => {
800
836
  l,
801
837
  o,
802
838
  i
803
- )), Xi = (e, t, n, r, l, o, i) => {
839
+ )), us = (e, t, n, r, l, o, i) => {
804
840
  if (t.ui)
805
841
  return console.assert(!1, "execPropBranchArray prop ui must be invalid"), !1;
806
842
  if (!t.array)
807
843
  return console.assert(!1, "execPropBranchArray prop array must be valid"), !1;
808
- if (!vt(r.children))
844
+ if (!yt(r.children))
809
845
  return console.assert(!1, "execPropBranchArray state children must be array"), !1;
810
846
  let s;
811
- o !== void 0 && !i ? (n[o] instanceof Array || (n[o] = D(t), l == null || l(e, n[o])), s = n[o]) : (n[t.key] instanceof Array || (n[t.key] = D(t), l == null || l(e, n[t.key])), s = n[t.key]), r.change = !1;
847
+ o !== void 0 && !i ? (n[o] instanceof Array || (n[o] = N(t), l == null || l(e, n[o])), s = n[o]) : (n[t.key] instanceof Array || (n[t.key] = N(t), l == null || l(e, n[t.key])), s = n[t.key]), r.change = !1;
812
848
  for (let a = 0; a < s.length; a++) {
813
849
  r.children.push({
814
850
  change: !1,
815
851
  children: {}
816
852
  });
817
853
  const u = r.children[a];
818
- t.children.forEach((f) => {
819
- if (!mt(u.children)) {
854
+ t.children.forEach((d) => {
855
+ if (!gt(u.children)) {
820
856
  console.assert(!1);
821
857
  return;
822
858
  }
823
- u.children[f.key] = {
859
+ u.children[d.key] = {
824
860
  change: !1,
825
- children: f.array ? [] : {}
826
- }, Ze(
861
+ children: d.array ? [] : {}
862
+ }, Ye(
827
863
  e,
828
- f,
864
+ d,
829
865
  s[a],
830
- u.children[f.key],
866
+ u.children[d.key],
831
867
  l,
832
868
  a,
833
869
  !0
834
870
  ) && (u.change = !0), u.change && (r.change = !0);
835
871
  });
836
872
  }
837
- return r.change || (r.change = !Ye(s, D(t))), r.change;
838
- }, Yi = (e, t, n, r, l, o, i) => {
873
+ return r.change || (r.change = !Ze(s, N(t))), r.change;
874
+ }, cs = (e, t, n, r, l, o, i) => {
839
875
  if (t.ui)
840
876
  return console.assert(!1, "execPropBranchScalar prop ui must be invalid"), !1;
841
877
  if (t.array)
842
878
  return console.assert(!1, "execPropBranchScalar prop array must be invalid"), !1;
843
- if (!mt(r.children))
879
+ if (!gt(r.children))
844
880
  return console.assert(!1, "execPropBranchScalar state children must be map"), !1;
845
881
  let s;
846
882
  o !== void 0 && !i ? (n[o] || (n[o] = {}), s = n[o]) : (n[t.key] || (n[t.key] = {}), s = n[t.key]), r.change = !1;
@@ -849,30 +885,30 @@ const Ne = (e, t) => {
849
885
  r.children[u.key] = {
850
886
  change: !1,
851
887
  children: u.array ? [] : {}
852
- }, Ze(e, u, s, r.children[u.key], l) && (r.change = !0);
888
+ }, Ye(e, u, s, r.children[u.key], l) && (r.change = !0);
853
889
  }
854
890
  return r.change;
855
- }, Zi = (e, t, n, r, l, o, i) => {
891
+ }, fs = (e, t, n, r, l, o, i) => {
856
892
  if (!t.ui)
857
893
  return console.assert(!1, "execPropLeafArray prop ui must be valid"), !1;
858
894
  if (!t.array)
859
895
  return console.assert(!1, "execPropLeafArray prop aray must be valid"), !1;
860
- if (!vt(r.children))
896
+ if (!yt(r.children))
861
897
  return console.assert(!1, "execPropLeafArray state children must be array"), !1;
862
898
  let s;
863
- o !== void 0 && !i ? (n[o] instanceof Array || (n[o] = D(t), l == null || l(e, n[o])), s = n[o]) : (n[t.key] instanceof Array || (n[t.key] = D(t), l == null || l(e, n[t.key])), s = n[t.key]), r.change = !1;
899
+ o !== void 0 && !i ? (n[o] instanceof Array || (n[o] = N(t), l == null || l(e, n[o])), s = n[o]) : (n[t.key] instanceof Array || (n[t.key] = N(t), l == null || l(e, n[t.key])), s = n[t.key]), r.change = !1;
864
900
  for (let a = 0; a < s.length; a++)
865
901
  r.children[a] = {
866
902
  change: !1,
867
903
  children: {}
868
- }, Ze(e, t, s, r.children[a], l, a, !1) && (r.change = !0);
869
- return r.change || (r.change = !Ye(s, D(t))), r.change;
870
- }, Ji = (e, t, n, r, l) => {
904
+ }, Ye(e, t, s, r.children[a], l, a, !1) && (r.change = !0);
905
+ return r.change || (r.change = !Ze(s, N(t))), r.change;
906
+ }, ds = (e, t, n, r, l) => {
871
907
  if (!e.ui)
872
908
  return console.assert(!1, "execPropLeafScalar prop ui must be valid"), !1;
873
909
  let o;
874
- return r !== void 0 && !l ? o = t[r] : o = t[e.key], n.change = !Ye(o, D(e, !0)), n.change;
875
- }, kt = (e, t, n, r) => {
910
+ return r !== void 0 && !l ? o = t[r] : o = t[e.key], n.change = !Ze(o, N(e, !0)), n.change;
911
+ }, zt = (e, t, n, r) => {
876
912
  if (t.length <= 0 || !n) {
877
913
  e.value = {};
878
914
  return;
@@ -882,150 +918,156 @@ const Ne = (e, t) => {
882
918
  l[o.key] = {
883
919
  change: !1,
884
920
  children: o.array ? [] : {}
885
- }, Ze([], o, n, l[o.key], r);
921
+ }, Ye([], o, n, l[o.key], r);
886
922
  }), e.value = l;
887
- }, he = (e, t) => {
923
+ }, _e = (e, t) => {
888
924
  let n = { change: !1, children: e };
889
925
  return t.forEach((r) => {
890
926
  if (!n)
891
927
  return console.assert(!1, `isPropChanged state must be valid keys=${t}`), !1;
892
- typeof r == "string" ? mt(n.children) && (n = n.children[r]) : vt(n.children) && (n = n.children[r]);
928
+ typeof r == "string" ? gt(n.children) && (n = n.children[r]) : yt(n.children) && (n = n.children[r]);
893
929
  }), (n == null ? void 0 : n.change) ?? !1;
894
- }, bn = Symbol(), $n = Symbol(), Tn = Symbol(), Sn = Symbol();
895
- function Wi(e) {
896
- ze(bn, e);
930
+ }, Tn = Symbol(), Sn = Symbol(), wn = Symbol(), An = Symbol(), Cn = Symbol();
931
+ function ps(e) {
932
+ Me(Tn, e);
933
+ }
934
+ function vs() {
935
+ return Ve(Tn);
936
+ }
937
+ function ms(e) {
938
+ Me(Sn, e);
897
939
  }
898
- function Qi() {
899
- return Ke(bn);
940
+ function gs() {
941
+ return Ve(Sn);
900
942
  }
901
- function es(e) {
902
- ze($n, e);
943
+ function ys(e) {
944
+ Me(wn, e);
903
945
  }
904
- function ts() {
905
- return Ke($n);
946
+ function hs() {
947
+ return Ve(wn);
906
948
  }
907
- function ns(e) {
908
- ze(Tn, e);
949
+ function _s(e) {
950
+ Me(An, e);
909
951
  }
910
- function rs() {
911
- return Ke(Tn);
952
+ function bs() {
953
+ return Ve(An);
912
954
  }
913
- function os(e) {
914
- ze(Sn, e);
955
+ function $s(e) {
956
+ Me(Cn, e);
915
957
  }
916
- function ls() {
917
- return Ke(Sn);
958
+ function Pn() {
959
+ return Ve(Cn);
918
960
  }
919
- const is = /* @__PURE__ */ k({
961
+ const Ts = /* @__PURE__ */ K({
920
962
  __name: "menu",
921
963
  setup(e) {
922
- const { t } = be(), n = Qi(), r = ts(), l = rs(), o = ls(), i = N(0), s = N(0), a = N([]), u = K(() => [i.value, s.value]), f = (h) => {
923
- const S = () => !(a.value.length <= 0 || !he(l.value, a.value)), E = () => {
924
- if (!S())
964
+ const { t } = de(), n = vs(), r = gs(), l = hs(), o = bs(), i = F(0), s = F(0), a = F([]), u = G(() => [i.value, s.value]), d = (y) => {
965
+ const $ = () => !(a.value.length <= 0 || !_e(l.value, a.value)), A = () => {
966
+ if (!$())
925
967
  return;
926
- const V = Ne(n.value, a.value);
968
+ const V = Fe(n.value, a.value);
927
969
  if (V)
928
970
  if (V.ui) {
929
- const A = Se(r.value, a.value.slice(0, -1));
930
- if (!A)
971
+ const P = we(r.value, a.value.slice(0, -1));
972
+ if (!P)
931
973
  return;
932
- A[a.value.at(-1)] = D(V), o(a.value, A[a.value.at(-1)]);
974
+ P[a.value.at(-1)] = N(V), o(a.value, P[a.value.at(-1)]);
933
975
  } else if (V.array) {
934
- const A = a.value.at(-1);
935
- if (A === void 0) {
976
+ const P = a.value.at(-1);
977
+ if (P === void 0) {
936
978
  console.assert(!1, "invalid last key");
937
979
  return;
938
980
  }
939
- if (typeof A == "string") {
940
- const M = Se(r.value, a.value.slice(0, -1));
941
- if (!M)
981
+ if (typeof P == "string") {
982
+ const U = we(r.value, a.value.slice(0, -1));
983
+ if (!U)
942
984
  return;
943
- M[a.value.at(-1)] = D(V), o(a.value, M[a.value.at(-1)]);
985
+ U[a.value.at(-1)] = N(V), o(a.value, U[a.value.at(-1)]);
944
986
  } else {
945
- const M = Se(r.value, a.value);
946
- if (!M)
987
+ const U = we(r.value, a.value);
988
+ if (!U)
947
989
  return;
948
- V.children.forEach((X) => {
949
- M[X.key] = D(V), o([...a.value, X.key], M[X.key]);
990
+ V.children.forEach((J) => {
991
+ U[J.key] = N(V), o([...a.value, J.key], U[J.key]);
950
992
  });
951
993
  }
952
994
  } else {
953
- const A = Se(r.value, a.value);
954
- if (!A)
995
+ const P = we(r.value, a.value);
996
+ if (!P)
955
997
  return;
956
- V.children.forEach((M) => {
957
- A[M.key] = D(V), o([...a.value, M.key], A[M.key]);
998
+ V.children.forEach((U) => {
999
+ P[U.key] = N(V), o([...a.value, U.key], P[U.key]);
958
1000
  });
959
1001
  }
960
1002
  };
961
- S() && h.push({
1003
+ $() && y.push({
962
1004
  title: t("x-prop-tree.reset"),
963
- func: E
1005
+ func: A
964
1006
  });
965
- }, d = (h) => {
966
- const S = () => {
967
- const E = Ne(n.value, a.value), V = Se(r.value, a.value);
968
- localStorage.setItem("propTreeCopy", JSON.stringify({ prop: E, object: V }));
1007
+ }, f = (y) => {
1008
+ const $ = () => {
1009
+ const A = Fe(n.value, a.value), V = we(r.value, a.value);
1010
+ localStorage.setItem("propTreeCopy", JSON.stringify({ prop: A, object: V }));
969
1011
  };
970
- h.push({
1012
+ y.push({
971
1013
  title: t("x-prop-tree.copy"),
972
- func: S
1014
+ func: $
973
1015
  });
974
- }, y = (h) => {
975
- const S = () => {
1016
+ }, g = (y) => {
1017
+ const $ = () => {
976
1018
  const V = localStorage.getItem("propTreeCopy");
977
1019
  if (!V)
978
1020
  return !1;
979
1021
  try {
980
- const { prop: A } = JSON.parse(V), M = Ne(n.value, a.value);
981
- return Ki(A, M);
982
- } catch (A) {
983
- console.error(A);
1022
+ const { prop: P } = JSON.parse(V), U = Fe(n.value, a.value);
1023
+ return is(P, U);
1024
+ } catch (P) {
1025
+ console.error(P);
984
1026
  }
985
1027
  return !1;
986
- }, E = () => {
987
- if (!S())
1028
+ }, A = () => {
1029
+ if (!$())
988
1030
  return;
989
1031
  const V = localStorage.getItem("propTreeCopy");
990
1032
  if (V)
991
1033
  try {
992
- const { object: A } = JSON.parse(V), M = Ne(n.value, a.value);
993
- console.log(A, M);
994
- } catch (A) {
995
- console.error(A);
1034
+ const { object: P } = JSON.parse(V), U = Fe(n.value, a.value);
1035
+ console.log(P, U);
1036
+ } catch (P) {
1037
+ console.error(P);
996
1038
  }
997
1039
  };
998
- S() && h.push({
1040
+ $() && y.push({
999
1041
  title: t("x-prop-tree.paste"),
1000
- func: E
1042
+ func: A
1001
1043
  });
1002
- }, T = K(() => {
1003
- const h = [];
1004
- return f(h), d(h), y(h), h;
1005
- }), w = (h) => {
1006
- i.value = h.x, s.value = h.y, a.value = h.keys;
1007
- }, { open: C } = It("propTreeMenu", w);
1008
- return (h, S) => {
1009
- const E = U("v-list-item-title"), V = U("v-list-item"), A = U("v-list"), M = U("v-menu");
1010
- return $(), H(M, {
1011
- modelValue: R(C),
1012
- "onUpdate:modelValue": S[0] || (S[0] = (X) => zt(C) ? C.value = X : null),
1044
+ }, _ = G(() => {
1045
+ const y = [];
1046
+ return d(y), f(y), g(y), y;
1047
+ }), w = (y) => {
1048
+ i.value = y.x, s.value = y.y, a.value = y.keys;
1049
+ }, { open: C } = Xt("propTreeMenu", w);
1050
+ return (y, $) => {
1051
+ const A = L("v-list-item-title"), V = L("v-list-item"), P = L("v-list"), U = L("v-menu");
1052
+ return S(), R(U, {
1053
+ modelValue: E(C),
1054
+ "onUpdate:modelValue": $[0] || ($[0] = (J) => nt(C) ? C.value = J : null),
1013
1055
  "location-strategy": "connected",
1014
1056
  target: u.value,
1015
1057
  scrim: "transparent"
1016
1058
  }, {
1017
1059
  default: Y(() => [
1018
- F(A, null, {
1060
+ B(P, null, {
1019
1061
  default: Y(() => [
1020
- ($(!0), B(Be, null, Kt(T.value, (X, ye) => ($(), H(V, {
1021
- key: ye,
1062
+ (S(!0), k(He, null, qt(_.value, (J, Je) => (S(), R(V, {
1063
+ key: Je,
1022
1064
  link: "",
1023
- onClick: X.func
1065
+ onClick: J.func
1024
1066
  }, {
1025
1067
  default: Y(() => [
1026
- F(E, null, {
1068
+ B(A, null, {
1027
1069
  default: Y(() => [
1028
- it(ne(X.title), 1)
1070
+ at(ne(J.title), 1)
1029
1071
  ]),
1030
1072
  _: 2
1031
1073
  }, 1024)
@@ -1041,8 +1083,8 @@ const is = /* @__PURE__ */ k({
1041
1083
  };
1042
1084
  }
1043
1085
  });
1044
- var An = "M7.41,8.58L12,13.17L16.59,8.58L18,10L12,16L6,10L7.41,8.58Z", wn = "M8.59,16.58L13.17,12L8.59,7.41L10,6L16,12L10,18L8.59,16.58Z", me = "M19,13H5V11H19V13Z", ss = "M19,13H13V19H11V13H5V11H11V5H13V11H19V13Z";
1045
- const Fe = /* @__PURE__ */ k({
1086
+ var On = "M7.41,8.58L12,13.17L16.59,8.58L18,10L12,16L6,10L7.41,8.58Z", xn = "M8.59,16.58L13.17,12L8.59,7.41L10,6L16,12L10,18L8.59,16.58Z", Ss = "M19,6.41L17.59,5L12,10.59L6.41,5L5,6.41L10.59,12L5,17.59L6.41,19L12,13.41L17.59,19L19,17.59L13.41,12L19,6.41Z", ge = "M19,13H5V11H19V13Z", ws = "M19,13H13V19H11V13H5V11H11V5H13V11H19V13Z";
1087
+ const Re = /* @__PURE__ */ K({
1046
1088
  __name: "title",
1047
1089
  props: {
1048
1090
  title: {},
@@ -1053,7 +1095,7 @@ const Fe = /* @__PURE__ */ k({
1053
1095
  },
1054
1096
  emits: ["collapse", "menu", "create", "delete"],
1055
1097
  setup(e, { emit: t }) {
1056
- const { backgroundColor2: n, highlightColor: r } = Ue(), l = t, o = N(!1), i = K(() => ({
1098
+ const { backgroundColor2: n, highlightColor: r } = $e(), l = t, o = F(!1), i = G(() => ({
1057
1099
  background: o.value ? r.value : n.value,
1058
1100
  height: "36px",
1059
1101
  marginBottom: "1px",
@@ -1063,47 +1105,47 @@ const Fe = /* @__PURE__ */ k({
1063
1105
  }, a = (u) => {
1064
1106
  l("menu", u.clientX, u.clientY);
1065
1107
  };
1066
- return (u, f) => {
1067
- const d = U("v-icon"), y = U("v-spacer"), T = oe("ripple");
1068
- return ee(($(), B("div", {
1108
+ return (u, d) => {
1109
+ const f = L("v-icon"), g = L("v-spacer"), _ = ae("ripple");
1110
+ return re((S(), k("div", {
1069
1111
  class: "d-flex align-center cursor-pointer",
1070
- style: Me(i.value),
1112
+ style: ie(i.value),
1071
1113
  onClick: s,
1072
- onContextmenu: Z(a, ["prevent"]),
1073
- onMouseover: f[2] || (f[2] = (w) => o.value = !0),
1074
- onMouseout: f[3] || (f[3] = (w) => o.value = !1)
1114
+ onContextmenu: z(a, ["prevent"]),
1115
+ onMouseover: d[2] || (d[2] = (w) => o.value = !0),
1116
+ onMouseout: d[3] || (d[3] = (w) => o.value = !1)
1075
1117
  }, [
1076
- F(d, {
1118
+ B(f, {
1077
1119
  class: "mr-1",
1078
- icon: u.collapse ? R(wn) : R(An)
1120
+ icon: u.collapse ? E(xn) : E(On)
1079
1121
  }, null, 8, ["icon"]),
1080
- ae("span", null, ne(u.title), 1),
1081
- F(y),
1082
- u.hasCreate ? ($(), H(d, {
1122
+ q("span", null, ne(u.title), 1),
1123
+ B(g),
1124
+ u.hasCreate ? (S(), R(f, {
1083
1125
  key: 0,
1084
1126
  class: "mx-3",
1085
- icon: R(ss),
1086
- onClick: f[0] || (f[0] = Z((w) => l("create"), ["stop"]))
1127
+ icon: E(ws),
1128
+ onClick: d[0] || (d[0] = z((w) => l("create"), ["stop"]))
1087
1129
  }, null, 8, ["icon"])) : I("", !0),
1088
- u.hasDelete ? ($(), H(d, {
1130
+ u.hasDelete ? (S(), R(f, {
1089
1131
  key: 1,
1090
1132
  class: "mx-3",
1091
- icon: R(me),
1092
- onClick: f[1] || (f[1] = Z((w) => l("delete", u.index), ["stop"]))
1133
+ icon: E(ge),
1134
+ onClick: d[1] || (d[1] = z((w) => l("delete", u.index), ["stop"]))
1093
1135
  }, null, 8, ["icon"])) : I("", !0)
1094
1136
  ], 36)), [
1095
- [T]
1137
+ [_]
1096
1138
  ]);
1097
1139
  };
1098
1140
  }
1099
- }), as = /* @__PURE__ */ k({
1141
+ }), As = /* @__PURE__ */ K({
1100
1142
  __name: "entry",
1101
1143
  props: {
1102
1144
  minHeight: {}
1103
1145
  },
1104
1146
  emits: ["menu"],
1105
1147
  setup(e, { emit: t }) {
1106
- const { backgroundColor2: n, highlightColor: r } = Ue(), l = t, o = N(!1), i = K(() => ({
1148
+ const { backgroundColor2: n, highlightColor: r } = $e(), l = t, o = F(!1), i = G(() => ({
1107
1149
  background: o.value ? r.value : n.value,
1108
1150
  minHeight: e.minHeight,
1109
1151
  paddingRight: "4px",
@@ -1113,71 +1155,71 @@ const Fe = /* @__PURE__ */ k({
1113
1155
  l("menu", a.clientX, a.clientY);
1114
1156
  };
1115
1157
  return (a, u) => {
1116
- const f = oe("ripple");
1117
- return ee(($(), B("div", {
1158
+ const d = ae("ripple");
1159
+ return re((S(), k("div", {
1118
1160
  class: "d-flex justify-space-between align-center cursor-pointer",
1119
- style: Me(i.value),
1120
- onContextmenu: Z(s, ["prevent"]),
1121
- onMouseover: u[0] || (u[0] = (d) => o.value = !0),
1122
- onMouseout: u[1] || (u[1] = (d) => o.value = !1)
1161
+ style: ie(i.value),
1162
+ onContextmenu: z(s, ["prevent"]),
1163
+ onMouseover: u[0] || (u[0] = (f) => o.value = !0),
1164
+ onMouseout: u[1] || (u[1] = (f) => o.value = !1)
1123
1165
  }, [
1124
- jn(a.$slots, "default")
1166
+ Hn(a.$slots, "default")
1125
1167
  ], 36)), [
1126
- [f]
1168
+ [d]
1127
1169
  ]);
1128
1170
  };
1129
1171
  }
1130
1172
  });
1131
- function us(e, t, n) {
1132
- const { t: r } = be();
1173
+ function Cs(e, t, n) {
1174
+ const { t: r } = de();
1133
1175
  return { renderProp: (o, i, s) => {
1134
1176
  let a = r(i.name);
1135
- return he(e.value, o) && (a += " *"), g(
1136
- as,
1177
+ return _e(e.value, o) && (a += " *"), h(
1178
+ As,
1137
1179
  {
1138
1180
  minHeight: t.value,
1139
- onMenu: (u, f) => {
1140
- Ae.emit("propTreeMenu", { x: u, y: f, keys: o });
1181
+ onMenu: (u, d) => {
1182
+ Ae.emit("propTreeMenu", { x: u, y: d, keys: o });
1141
1183
  }
1142
1184
  },
1143
1185
  () => [
1144
- g("span", { class: "ml-1", innerHTML: a }),
1145
- g("div", { style: { width: n.value } }, s)
1186
+ h("span", { class: "ml-1", innerHTML: a }),
1187
+ h("div", { style: { width: n.value } }, s)
1146
1188
  ]
1147
1189
  );
1148
1190
  } };
1149
1191
  }
1150
- function cs(e) {
1192
+ function Ps(e) {
1151
1193
  return { renderUiDummy: (n, r, l, o, i) => {
1152
1194
  if (r.ui !== "dummy") {
1153
1195
  console.assert(!1, "renderUiDummy prop ui must be dummy");
1154
1196
  return;
1155
1197
  }
1156
1198
  if (o !== void 0 && !i) {
1157
- const s = D(r, !0);
1199
+ const s = N(r, !0);
1158
1200
  typeof l[o] != typeof s && (l[o] = s, e(n, l[o]));
1159
1201
  } else {
1160
- const s = D(r);
1202
+ const s = N(r);
1161
1203
  typeof l[r.key] != typeof s && (l[r.key] = s, e(n, l[r.key]));
1162
1204
  }
1163
1205
  } };
1164
1206
  }
1165
- const fs = { class: "d-flex justify-space-between align-center" }, ds = /* @__PURE__ */ k({
1207
+ const Os = { class: "d-flex justify-space-between align-center" }, xs = /* @__PURE__ */ K({
1166
1208
  __name: "strInput",
1167
- props: /* @__PURE__ */ z({
1209
+ props: /* @__PURE__ */ X({
1168
1210
  hasDelete: { type: Boolean, default: !1 },
1169
1211
  readonly: { type: Boolean, default: !1 }
1170
1212
  }, {
1171
1213
  modelValue: {},
1172
1214
  modelModifiers: {}
1173
1215
  }),
1174
- emits: /* @__PURE__ */ z(["delete"], ["update:modelValue"]),
1216
+ emits: /* @__PURE__ */ X(["delete"], ["update:modelValue"]),
1175
1217
  setup(e, { emit: t }) {
1176
- const n = le(e, "modelValue"), r = t;
1218
+ const n = oe(e, "modelValue"), r = t;
1177
1219
  return (l, o) => {
1178
- const i = U("v-text-field"), s = U("v-icon"), a = oe("ripple");
1179
- return $(), B("div", fs, [
1180
- ee(F(i, {
1220
+ const i = L("v-text-field"), s = L("v-icon"), a = ae("ripple");
1221
+ return S(), k("div", Os, [
1222
+ re(B(i, {
1181
1223
  modelValue: n.value,
1182
1224
  "onUpdate:modelValue": o[0] || (o[0] = (u) => n.value = u),
1183
1225
  density: "compact",
@@ -1192,29 +1234,29 @@ const fs = { class: "d-flex justify-space-between align-center" }, ds = /* @__PU
1192
1234
  { stop: !0 }
1193
1235
  ]
1194
1236
  ]),
1195
- l.hasDelete ? ($(), H(s, {
1237
+ l.hasDelete ? (S(), R(s, {
1196
1238
  key: 0,
1197
1239
  class: "mx-2",
1198
- icon: R(me),
1199
- onClick: o[1] || (o[1] = Z((u) => r("delete"), ["stop"]))
1240
+ icon: E(ge),
1241
+ onClick: o[1] || (o[1] = z((u) => r("delete"), ["stop"]))
1200
1242
  }, null, 8, ["icon"])) : I("", !0)
1201
1243
  ]);
1202
1244
  };
1203
1245
  }
1204
- }), ve = (e, t, n, r, l, o) => {
1205
- const i = D(t, !0);
1246
+ }), ye = (e, t, n, r, l, o) => {
1247
+ const i = N(t, !0);
1206
1248
  return l !== void 0 && !o ? (typeof n[l] != typeof i && (n[l] = i, r(e, n[l])), n[l]) : (typeof n[t.key] != typeof i && (n[t.key] = i, r(e, n[t.key])), n[t.key]);
1207
- }, ge = (e, t, n, r, l, o, i) => {
1208
- const s = D(t, !0);
1249
+ }, he = (e, t, n, r, l, o, i) => {
1250
+ const s = N(t, !0);
1209
1251
  if (typeof r != typeof s) {
1210
1252
  console.assert(!1);
1211
1253
  return;
1212
1254
  }
1213
1255
  o !== void 0 && !i ? r !== n[o] && (n[o] = r, l(e, n[o])) : r !== n[t.key] && (n[t.key] = r, l(e, n[t.key]));
1214
1256
  };
1215
- function ps(e) {
1216
- return { renderUiStrInput: (n, r, l, o, i) => r.ui !== "strInput" ? (console.assert(!1), g("div", "renderUiStrInput prop ui must be strInput")) : g(ds, {
1217
- modelValue: r.static ? r.value : ve(
1257
+ function Ls(e) {
1258
+ return { renderUiStrInput: (n, r, l, o, i) => r.ui !== "strInput" ? (console.assert(!1), h("div", "renderUiStrInput prop ui must be strInput")) : h(xs, {
1259
+ modelValue: r.static ? r.value : ye(
1218
1260
  n,
1219
1261
  r,
1220
1262
  l,
@@ -1223,7 +1265,7 @@ function ps(e) {
1223
1265
  i
1224
1266
  ),
1225
1267
  "onUpdate:modelValue": (s) => {
1226
- r.static || ge(
1268
+ r.static || he(
1227
1269
  n,
1228
1270
  r,
1229
1271
  l,
@@ -1240,9 +1282,9 @@ function ps(e) {
1240
1282
  readonly: r.static || r.readonly
1241
1283
  }) };
1242
1284
  }
1243
- const ms = { class: "d-flex justify-space-between align-center" }, vs = /* @__PURE__ */ k({
1285
+ const Ms = { class: "d-flex justify-space-between align-center" }, Vs = /* @__PURE__ */ K({
1244
1286
  __name: "numInput",
1245
- props: /* @__PURE__ */ z({
1287
+ props: /* @__PURE__ */ X({
1246
1288
  hasDelete: { type: Boolean, default: !1 },
1247
1289
  precision: { default: 4 },
1248
1290
  min: { default: () => -1 / 0 },
@@ -1253,13 +1295,13 @@ const ms = { class: "d-flex justify-space-between align-center" }, vs = /* @__PU
1253
1295
  modelValue: {},
1254
1296
  modelModifiers: {}
1255
1297
  }),
1256
- emits: /* @__PURE__ */ z(["delete"], ["update:modelValue"]),
1298
+ emits: /* @__PURE__ */ X(["delete"], ["update:modelValue"]),
1257
1299
  setup(e, { emit: t }) {
1258
- const n = le(e, "modelValue"), r = t;
1300
+ const n = oe(e, "modelValue"), r = t;
1259
1301
  return (l, o) => {
1260
- const i = U("v-number-input"), s = U("v-icon"), a = oe("ripple");
1261
- return $(), B("div", ms, [
1262
- ee(F(i, {
1302
+ const i = L("v-number-input"), s = L("v-icon"), a = ae("ripple");
1303
+ return S(), k("div", Ms, [
1304
+ re(B(i, {
1263
1305
  modelValue: n.value,
1264
1306
  "onUpdate:modelValue": o[0] || (o[0] = (u) => n.value = u),
1265
1307
  density: "compact",
@@ -1279,19 +1321,19 @@ const ms = { class: "d-flex justify-space-between align-center" }, vs = /* @__PU
1279
1321
  { stop: !0 }
1280
1322
  ]
1281
1323
  ]),
1282
- l.hasDelete ? ($(), H(s, {
1324
+ l.hasDelete ? (S(), R(s, {
1283
1325
  key: 0,
1284
1326
  class: "mx-2",
1285
- icon: R(me),
1286
- onClick: o[1] || (o[1] = Z((u) => r("delete"), ["stop"]))
1327
+ icon: E(ge),
1328
+ onClick: o[1] || (o[1] = z((u) => r("delete"), ["stop"]))
1287
1329
  }, null, 8, ["icon"])) : I("", !0)
1288
1330
  ]);
1289
1331
  };
1290
1332
  }
1291
1333
  });
1292
- function gs(e) {
1293
- return { renderUiNumInput: (n, r, l, o, i) => r.ui !== "numInput" ? (console.assert(!1), g("div", "renderUiNumInput prop ui must be numInput")) : g(vs, {
1294
- modelValue: ve(
1334
+ function Us(e) {
1335
+ return { renderUiNumInput: (n, r, l, o, i) => r.ui !== "numInput" ? (console.assert(!1), h("div", "renderUiNumInput prop ui must be numInput")) : h(Vs, {
1336
+ modelValue: ye(
1295
1337
  n,
1296
1338
  r,
1297
1339
  l,
@@ -1300,7 +1342,7 @@ function gs(e) {
1300
1342
  i
1301
1343
  ),
1302
1344
  "onUpdate:modelValue": (s) => {
1303
- ge(
1345
+ he(
1304
1346
  n,
1305
1347
  r,
1306
1348
  l,
@@ -1317,22 +1359,22 @@ function gs(e) {
1317
1359
  readonly: r.readonly
1318
1360
  }) };
1319
1361
  }
1320
- const ys = { class: "d-flex justify-space-between align-center" }, hs = /* @__PURE__ */ k({
1362
+ const Ds = { class: "d-flex justify-space-between align-center" }, js = /* @__PURE__ */ K({
1321
1363
  __name: "switch",
1322
- props: /* @__PURE__ */ z({
1364
+ props: /* @__PURE__ */ X({
1323
1365
  hasDelete: { type: Boolean, default: !1 },
1324
1366
  readonly: { type: Boolean, default: !1 }
1325
1367
  }, {
1326
1368
  modelValue: { type: Boolean },
1327
1369
  modelModifiers: {}
1328
1370
  }),
1329
- emits: /* @__PURE__ */ z(["delete"], ["update:modelValue"]),
1371
+ emits: /* @__PURE__ */ X(["delete"], ["update:modelValue"]),
1330
1372
  setup(e, { emit: t }) {
1331
- const n = le(e, "modelValue"), r = t;
1373
+ const n = oe(e, "modelValue"), r = t;
1332
1374
  return (l, o) => {
1333
- const i = U("v-switch"), s = U("v-icon");
1334
- return $(), B("div", ys, [
1335
- F(i, {
1375
+ const i = L("v-switch"), s = L("v-icon");
1376
+ return S(), k("div", Ds, [
1377
+ B(i, {
1336
1378
  modelValue: n.value,
1337
1379
  "onUpdate:modelValue": o[0] || (o[0] = (a) => n.value = a),
1338
1380
  class: "ml-1",
@@ -1341,19 +1383,19 @@ const ys = { class: "d-flex justify-space-between align-center" }, hs = /* @__PU
1341
1383
  "hide-details": "",
1342
1384
  readonly: l.readonly
1343
1385
  }, null, 8, ["modelValue", "readonly"]),
1344
- l.hasDelete ? ($(), H(s, {
1386
+ l.hasDelete ? (S(), R(s, {
1345
1387
  key: 0,
1346
1388
  class: "mx-2",
1347
- icon: R(me),
1348
- onClick: o[1] || (o[1] = Z((a) => r("delete"), ["stop"]))
1389
+ icon: E(ge),
1390
+ onClick: o[1] || (o[1] = z((a) => r("delete"), ["stop"]))
1349
1391
  }, null, 8, ["icon"])) : I("", !0)
1350
1392
  ]);
1351
1393
  };
1352
1394
  }
1353
1395
  });
1354
- function _s(e) {
1355
- return { renderUiSwitch: (n, r, l, o, i) => r.ui !== "switch" ? (console.assert(!1), g("div", "renderUiSwitch prop ui must be switch")) : g(hs, {
1356
- modelValue: ve(
1396
+ function Es(e) {
1397
+ return { renderUiSwitch: (n, r, l, o, i) => r.ui !== "switch" ? (console.assert(!1), h("div", "renderUiSwitch prop ui must be switch")) : h(js, {
1398
+ modelValue: ye(
1357
1399
  n,
1358
1400
  r,
1359
1401
  l,
@@ -1362,7 +1404,7 @@ function _s(e) {
1362
1404
  i
1363
1405
  ),
1364
1406
  "onUpdate:modelValue": (s) => {
1365
- ge(
1407
+ he(
1366
1408
  n,
1367
1409
  r,
1368
1410
  l,
@@ -1379,9 +1421,9 @@ function _s(e) {
1379
1421
  readonly: r.readonly
1380
1422
  }) };
1381
1423
  }
1382
- const bs = { class: "d-flex justify-space-between align-center" }, $s = /* @__PURE__ */ k({
1424
+ const Ns = { class: "d-flex justify-space-between align-center" }, Bs = /* @__PURE__ */ K({
1383
1425
  __name: "select",
1384
- props: /* @__PURE__ */ z({
1426
+ props: /* @__PURE__ */ X({
1385
1427
  hasDelete: { type: Boolean, default: !1 },
1386
1428
  readonly: { type: Boolean, default: !1 },
1387
1429
  items: {}
@@ -1389,13 +1431,13 @@ const bs = { class: "d-flex justify-space-between align-center" }, $s = /* @__PU
1389
1431
  modelValue: {},
1390
1432
  modelModifiers: {}
1391
1433
  }),
1392
- emits: /* @__PURE__ */ z(["delete"], ["update:modelValue"]),
1434
+ emits: /* @__PURE__ */ X(["delete"], ["update:modelValue"]),
1393
1435
  setup(e, { emit: t }) {
1394
- const n = le(e, "modelValue"), r = t;
1436
+ const n = oe(e, "modelValue"), r = t;
1395
1437
  return (l, o) => {
1396
- const i = U("v-select"), s = U("v-icon"), a = oe("ripple");
1397
- return $(), B("div", bs, [
1398
- ee(F(i, {
1438
+ const i = L("v-select"), s = L("v-icon"), a = ae("ripple");
1439
+ return S(), k("div", Ns, [
1440
+ re(B(i, {
1399
1441
  modelValue: n.value,
1400
1442
  "onUpdate:modelValue": o[0] || (o[0] = (u) => n.value = u),
1401
1443
  density: "compact",
@@ -1411,20 +1453,20 @@ const bs = { class: "d-flex justify-space-between align-center" }, $s = /* @__PU
1411
1453
  { stop: !0 }
1412
1454
  ]
1413
1455
  ]),
1414
- l.hasDelete ? ($(), H(s, {
1456
+ l.hasDelete ? (S(), R(s, {
1415
1457
  key: 0,
1416
1458
  class: "mx-2",
1417
- icon: R(me),
1418
- onClick: o[1] || (o[1] = Z((u) => r("delete"), ["stop"]))
1459
+ icon: E(ge),
1460
+ onClick: o[1] || (o[1] = z((u) => r("delete"), ["stop"]))
1419
1461
  }, null, 8, ["icon"])) : I("", !0)
1420
1462
  ]);
1421
1463
  };
1422
1464
  }
1423
1465
  });
1424
- function Ts(e) {
1425
- const { t } = be();
1426
- return { renderUiSelect: (r, l, o, i, s) => l.ui !== "select" ? (console.assert(!1), g("div", "renderUiSelect prop ui must be select")) : g($s, {
1427
- modelValue: ve(
1466
+ function Fs(e) {
1467
+ const { t } = de();
1468
+ return { renderUiSelect: (r, l, o, i, s) => l.ui !== "select" ? (console.assert(!1), h("div", "renderUiSelect prop ui must be select")) : h(Bs, {
1469
+ modelValue: ye(
1428
1470
  r,
1429
1471
  l,
1430
1472
  o,
@@ -1433,7 +1475,7 @@ function Ts(e) {
1433
1475
  s
1434
1476
  ),
1435
1477
  "onUpdate:modelValue": (a) => {
1436
- ge(
1478
+ he(
1437
1479
  r,
1438
1480
  l,
1439
1481
  o,
@@ -1449,52 +1491,17 @@ function Ts(e) {
1449
1491
  },
1450
1492
  items: (() => {
1451
1493
  const a = [];
1452
- return l.items.forEach(({ title: u, value: f }) => {
1494
+ return l.items.forEach(({ title: u, value: d }) => {
1453
1495
  a.push({
1454
1496
  title: t(u),
1455
- value: f
1497
+ value: d
1456
1498
  });
1457
1499
  }), a;
1458
1500
  })(),
1459
1501
  readonly: l.readonly
1460
1502
  }) };
1461
1503
  }
1462
- function Ss(e, t) {
1463
- const n = [];
1464
- let r = [];
1465
- e.forEach((i) => {
1466
- i.type === 0 ? n.push(i) : i.type === 1 ? r.push(i) : console.assert(!1);
1467
- }), n.sort((i, s) => i.position - s.position), r.sort((i, s) => i.position - s.position);
1468
- const l = [];
1469
- r.forEach((i) => {
1470
- n.find((s) => s.id === i.group) || l.push(i.id);
1471
- }), r = r.filter((i) => !l.find((s) => s === i.id));
1472
- const o = [];
1473
- return n.forEach((i) => {
1474
- const s = [];
1475
- r.forEach((a) => {
1476
- a.group === i.id && (a.show = !i.collapse, s.push(a));
1477
- }), i.count = s.length, i.count > 0 && (o.push(i), o.push(...s));
1478
- }), o;
1479
- }
1480
- function Pn(e, t) {
1481
- return e.value.find((n) => n.id === t);
1482
- }
1483
- function As(e, t, n) {
1484
- for (let r = 0; r < e.value.length; r++) {
1485
- let l = e.value[r];
1486
- if (l.id === t) {
1487
- if (l.type !== 0) {
1488
- console.assert(!1, "type must be 0");
1489
- break;
1490
- }
1491
- for (l.collapse = n, r++; r < e.value.length && (l = e.value[r], l.type !== 0); r++)
1492
- l.show = !n;
1493
- break;
1494
- }
1495
- }
1496
- }
1497
- const ws = { class: "text-subtitle-2 ml-1" }, Ps = { class: "text-caption text-grey ml-1" }, Cs = /* @__PURE__ */ k({
1504
+ const Rs = { class: "text-subtitle-2 ml-1" }, ks = { class: "text-caption text-grey ml-1" }, Hs = /* @__PURE__ */ K({
1498
1505
  __name: "group",
1499
1506
  props: {
1500
1507
  id: {},
@@ -1504,33 +1511,33 @@ const ws = { class: "text-subtitle-2 ml-1" }, Ps = { class: "text-caption text-g
1504
1511
  },
1505
1512
  emits: ["x-click"],
1506
1513
  setup(e, { emit: t }) {
1507
- const { backgroundColor2: n, highlightColor: r } = Ue(), l = e, o = t, i = N(!1), s = K(() => ({
1514
+ const { backgroundColor2: n, highlightColor: r } = $e(), l = e, o = t, i = F(!1), s = G(() => ({
1508
1515
  background: i.value ? r.value : n.value,
1509
1516
  height: "30px",
1510
1517
  marginBottom: "1px",
1511
1518
  userSelect: "none"
1512
1519
  }));
1513
1520
  return (a, u) => {
1514
- const f = U("v-icon"), d = oe("ripple");
1515
- return ee(($(), B("div", {
1521
+ const d = L("v-icon"), f = ae("ripple");
1522
+ return re((S(), k("div", {
1516
1523
  class: "d-flex align-center cursor-pointer",
1517
- style: Me(s.value),
1518
- onClick: u[0] || (u[0] = (y) => o("x-click", l.id)),
1519
- onMouseover: u[1] || (u[1] = (y) => i.value = !0),
1520
- onMouseout: u[2] || (u[2] = (y) => i.value = !1)
1524
+ style: ie(s.value),
1525
+ onClick: u[0] || (u[0] = (g) => o("x-click", l.id)),
1526
+ onMouseover: u[1] || (u[1] = (g) => i.value = !0),
1527
+ onMouseout: u[2] || (u[2] = (g) => i.value = !1)
1521
1528
  }, [
1522
- F(f, {
1523
- icon: l.collapse ? R(wn) : R(An),
1529
+ B(d, {
1530
+ icon: l.collapse ? E(xn) : E(On),
1524
1531
  size: "small"
1525
1532
  }, null, 8, ["icon"]),
1526
- ae("span", ws, ne(l.title), 1),
1527
- ae("span", Ps, ne(l.count), 1)
1533
+ q("span", Rs, ne(l.title), 1),
1534
+ q("span", ks, ne(l.count), 1)
1528
1535
  ], 36)), [
1529
- [d]
1536
+ [f]
1530
1537
  ]);
1531
1538
  };
1532
1539
  }
1533
- }), Os = { class: "text-subtitle-1 ml-6" }, Vs = /* @__PURE__ */ k({
1540
+ }), Gs = { class: "text-subtitle-1 ml-6" }, Ks = /* @__PURE__ */ K({
1534
1541
  __name: "item",
1535
1542
  props: {
1536
1543
  id: {},
@@ -1538,51 +1545,51 @@ const ws = { class: "text-subtitle-2 ml-1" }, Ps = { class: "text-caption text-g
1538
1545
  },
1539
1546
  emits: ["x-click"],
1540
1547
  setup(e, { emit: t }) {
1541
- const { backgroundColor2: n, highlightColor: r } = Ue(), l = e, o = t, i = N(!1), s = K(() => ({
1548
+ const { backgroundColor2: n, highlightColor: r } = $e(), l = e, o = t, i = F(!1), s = G(() => ({
1542
1549
  background: i.value ? r.value : n.value,
1543
1550
  height: "48px",
1544
1551
  marginBottom: "1px",
1545
1552
  userSelect: "none"
1546
1553
  }));
1547
1554
  return (a, u) => {
1548
- const f = oe("ripple");
1549
- return ee(($(), B("div", {
1555
+ const d = ae("ripple");
1556
+ return re((S(), k("div", {
1550
1557
  class: "d-flex align-center cursor-pointer",
1551
- style: Me(s.value),
1552
- onClick: u[0] || (u[0] = (d) => o("x-click", l.id)),
1553
- onMouseover: u[1] || (u[1] = (d) => i.value = !0),
1554
- onMouseout: u[2] || (u[2] = (d) => i.value = !1)
1558
+ style: ie(s.value),
1559
+ onClick: u[0] || (u[0] = (f) => o("x-click", l.id)),
1560
+ onMouseover: u[1] || (u[1] = (f) => i.value = !0),
1561
+ onMouseout: u[2] || (u[2] = (f) => i.value = !1)
1555
1562
  }, [
1556
- ae("span", Os, ne(l.title), 1)
1563
+ q("span", Gs, ne(l.title), 1)
1557
1564
  ], 36)), [
1558
- [f]
1565
+ [d]
1559
1566
  ]);
1560
1567
  };
1561
1568
  }
1562
- }), Ms = { key: 0 }, Us = {
1569
+ }), zs = { key: 0 }, qs = {
1563
1570
  key: 1,
1564
1571
  class: "text-body-2 text-grey ml-3"
1565
- }, xs = /* @__PURE__ */ k({
1572
+ }, Is = /* @__PURE__ */ K({
1566
1573
  __name: "index",
1567
- props: /* @__PURE__ */ z({
1568
- compList: {}
1569
- }, {
1574
+ props: {
1570
1575
  modelValue: { required: !0 },
1571
- modelModifiers: {}
1572
- }),
1573
- emits: ["update:modelValue"],
1576
+ modelModifiers: {},
1577
+ open: { type: Boolean, required: !0 },
1578
+ openModifiers: {}
1579
+ },
1580
+ emits: ["update:modelValue", "update:open"],
1574
1581
  setup(e) {
1575
- const { t } = be(), n = le(e, "modelValue"), r = e, l = K(() => r.compList), o = (s) => {
1576
- const a = Pn(l, s);
1577
- a && As(l, s, !a.collapse);
1582
+ const { t } = de(), n = oe(e, "modelValue"), r = oe(e, "open"), l = Pn(), o = (s) => {
1583
+ const a = $n(l, s);
1584
+ a && ls(l, s, !a.collapse);
1578
1585
  }, i = (s) => {
1579
- console.log("onItemClick", s), n.value = s;
1586
+ n.value = s, r.value = !1;
1580
1587
  };
1581
- return (s, a) => l.value.length > 0 ? ($(), B("div", Ms, [
1582
- ($(!0), B(Be, null, Kt(l.value, (u) => ($(), B(Be, {
1588
+ return (s, a) => E(l).length > 0 ? (S(), k("div", zs, [
1589
+ (S(!0), k(He, null, qt(E(l), (u) => (S(), k(He, {
1583
1590
  key: u.id
1584
1591
  }, [
1585
- u.type === 0 ? ($(), H(Cs, {
1592
+ u.type === 0 ? (S(), R(Hs, {
1586
1593
  key: 0,
1587
1594
  id: u.id,
1588
1595
  title: u.name,
@@ -1590,16 +1597,16 @@ const ws = { class: "text-subtitle-2 ml-1" }, Ps = { class: "text-caption text-g
1590
1597
  count: u.count ?? 0,
1591
1598
  onXClick: o
1592
1599
  }, null, 8, ["id", "title", "collapse", "count"])) : I("", !0),
1593
- u.type === 1 && u.show ? ($(), H(Vs, {
1600
+ u.type === 1 && u.show ? (S(), R(Ks, {
1594
1601
  key: 1,
1595
1602
  id: u.id,
1596
1603
  title: u.name,
1597
1604
  onXClick: i
1598
1605
  }, null, 8, ["id", "title"])) : I("", !0)
1599
1606
  ], 64))), 128))
1600
- ])) : ($(), B("div", Us, ne(R(t)("x-prop-tree.noComp")), 1));
1607
+ ])) : (S(), k("div", qs, ne(E(t)("x-prop-tree.noComp")), 1));
1601
1608
  }
1602
- }), Ls = /* @__PURE__ */ k({
1609
+ }), Xs = { class: "text-subtitle-1 ml-3" }, Zs = /* @__PURE__ */ K({
1603
1610
  __name: "index",
1604
1611
  props: {
1605
1612
  modelValue: { required: !0 },
@@ -1607,51 +1614,104 @@ const ws = { class: "text-subtitle-2 ml-1" }, Ps = { class: "text-caption text-g
1607
1614
  },
1608
1615
  emits: ["update:modelValue"],
1609
1616
  setup(e) {
1610
- const t = le(e, "modelValue"), n = N([]), r = K(() => {
1611
- const s = Pn(n, t.value);
1612
- return s ? s.name : "<n/a>";
1613
- }), l = () => {
1614
- i();
1615
- }, { open: o } = It("compSelectDlg", l), i = () => {
1616
- const { compGroups: s, comps: a } = Bn.app.activeApp, u = [];
1617
- s.forEach(({ id: f, name: d, position: y }) => {
1618
- u.push({ id: f, type: 0, name: d, position: y, collapse: !0 });
1619
- }), a.forEach(({ id: f, groupid: d, name: y, position: T }) => {
1620
- u.push({ id: f, type: 1, name: y, position: T, group: d });
1621
- }), Ss(u, !0), n.value = u;
1622
- };
1623
- return (s, a) => {
1624
- const u = U("v-btn"), f = U("v-dialog");
1625
- return $(), H(f, {
1626
- modelValue: R(o),
1627
- "onUpdate:modelValue": a[1] || (a[1] = (d) => zt(o) ? o.value = d : null)
1617
+ const { t } = de(), n = Wn(), { sysBarAvail: r } = Zn(), { backgroundColor1: l } = $e(), o = oe(e, "modelValue"), i = Pn(), s = G(() => {
1618
+ let g = "100%";
1619
+ return n.mdAndUp.value && (g = "400px"), {
1620
+ background: l.value,
1621
+ width: g,
1622
+ height: "100%"
1623
+ };
1624
+ }), a = G(() => {
1625
+ let g = 48;
1626
+ return r.value && (g += 24), {
1627
+ position: "relative",
1628
+ width: "100%",
1629
+ height: `calc(100% - ${g}px)`
1630
+ };
1631
+ }), u = G(() => ({
1632
+ height: "60px"
1633
+ })), d = G(() => {
1634
+ if (!o.value)
1635
+ return t("x-prop-tree.notSet");
1636
+ const g = $n(i, o.value);
1637
+ return g ? g.name : t("x-runtime-lib.compNotAvail");
1638
+ }), { open: f } = Xt(`compSelectDlg@${Gn()}`);
1639
+ return (g, _) => {
1640
+ const w = L("v-btn"), C = L("v-sheet"), y = L("v-icon"), $ = L("v-dialog");
1641
+ return S(), R($, {
1642
+ modelValue: E(f),
1643
+ "onUpdate:modelValue": _[5] || (_[5] = (A) => nt(f) ? f.value = A : null),
1644
+ transition: "scroll-x-reverse-transition",
1645
+ persistent: "",
1646
+ "no-click-animation": "",
1647
+ fullscreen: "",
1648
+ onKeydown: _[6] || (_[6] = Kn(z((A) => f.value = !1, ["stop", "prevent"]), ["esc"]))
1628
1649
  }, {
1629
- activator: Y(({ props: d }) => [
1630
- F(u, qt(d, {
1650
+ activator: Y(({ props: A }) => [
1651
+ B(w, It(A, {
1631
1652
  density: "comfortable",
1632
1653
  block: ""
1633
1654
  }), {
1634
1655
  default: Y(() => [
1635
- it(ne(r.value), 1)
1656
+ at(ne(d.value), 1)
1636
1657
  ]),
1637
1658
  _: 2
1638
1659
  }, 1040)
1639
1660
  ]),
1640
1661
  default: Y(() => [
1641
- F(xs, {
1642
- modelValue: t.value,
1643
- "onUpdate:modelValue": a[0] || (a[0] = (d) => t.value = d),
1644
- "comp-list": n.value
1645
- }, null, 8, ["modelValue", "comp-list"])
1662
+ q("div", {
1663
+ class: "w-100 h-100 d-flex flex-row-reverse",
1664
+ onClick: _[3] || (_[3] = z((A) => f.value = !1, ["self"])),
1665
+ onContextmenu: _[4] || (_[4] = z((A) => f.value = !1, ["self", "prevent"]))
1666
+ }, [
1667
+ q("div", {
1668
+ class: "elevation-2",
1669
+ style: ie(s.value)
1670
+ }, [
1671
+ E(r) ? (S(), R(C, {
1672
+ key: 0,
1673
+ color: "transparent",
1674
+ height: 24
1675
+ })) : I("", !0),
1676
+ B(C, {
1677
+ class: "d-flex align-center px-3",
1678
+ color: "transparent",
1679
+ height: 48
1680
+ }, {
1681
+ default: Y(() => [
1682
+ B(y, {
1683
+ icon: E(Ss),
1684
+ onClick: _[0] || (_[0] = (A) => f.value = !1)
1685
+ }, null, 8, ["icon"]),
1686
+ q("span", Xs, ne(E(t)("x-prop-tree.dlg.compSelect.title")), 1)
1687
+ ]),
1688
+ _: 1
1689
+ }),
1690
+ q("div", {
1691
+ class: "overflow-y-auto",
1692
+ style: ie(a.value)
1693
+ }, [
1694
+ B(Is, {
1695
+ modelValue: o.value,
1696
+ "onUpdate:modelValue": _[1] || (_[1] = (A) => o.value = A),
1697
+ open: E(f),
1698
+ "onUpdate:open": _[2] || (_[2] = (A) => nt(f) ? f.value = A : null)
1699
+ }, null, 8, ["modelValue", "open"]),
1700
+ q("div", {
1701
+ style: ie(u.value)
1702
+ }, null, 4)
1703
+ ], 4)
1704
+ ], 4)
1705
+ ], 32)
1646
1706
  ]),
1647
1707
  _: 1
1648
1708
  }, 8, ["modelValue"]);
1649
1709
  };
1650
1710
  }
1651
1711
  });
1652
- function Ds(e) {
1653
- return { renderUiCompSelect: (n, r, l, o, i) => r.ui !== "compSelect" ? (console.assert(!1), g("div", "renderUiCompSelect prop ui must be compSelect")) : (console.log(n, r, l, o, i, e), g(Ls, {
1654
- modelValue: ve(
1712
+ function Ys(e) {
1713
+ return { renderUiCompSelect: (n, r, l, o, i) => r.ui !== "compSelect" ? (console.assert(!1), h("div", "renderUiCompSelect prop ui must be compSelect")) : h(Zs, {
1714
+ modelValue: ye(
1655
1715
  n,
1656
1716
  r,
1657
1717
  l,
@@ -1660,7 +1720,7 @@ function Ds(e) {
1660
1720
  i
1661
1721
  ),
1662
1722
  "onUpdate:modelValue": (s) => {
1663
- ge(
1723
+ he(
1664
1724
  n,
1665
1725
  r,
1666
1726
  l,
@@ -1670,72 +1730,71 @@ function Ds(e) {
1670
1730
  i
1671
1731
  );
1672
1732
  }
1673
- })) };
1733
+ }) };
1674
1734
  }
1675
- const js = { class: "d-flex justify-space-between align-center" }, Es = /* @__PURE__ */ k({
1735
+ const Js = { class: "d-flex justify-space-between align-center" }, Ws = /* @__PURE__ */ K({
1676
1736
  __name: "colorPicker",
1677
- props: /* @__PURE__ */ z({
1737
+ props: /* @__PURE__ */ X({
1678
1738
  hasDelete: { type: Boolean, default: !1 },
1679
1739
  readonly: { type: Boolean, default: !1 }
1680
1740
  }, {
1681
1741
  modelValue: {},
1682
1742
  modelModifiers: {}
1683
1743
  }),
1684
- emits: /* @__PURE__ */ z(["delete"], ["update:modelValue"]),
1744
+ emits: /* @__PURE__ */ X(["delete"], ["update:modelValue"]),
1685
1745
  setup(e, { emit: t }) {
1686
- const n = le(e, "modelValue"), r = t, l = K(() => {
1687
- let s = "100%";
1688
- return e.hasDelete && (s = "calc(100% - 37px)"), {
1689
- width: s
1746
+ const n = oe(e, "modelValue"), r = t, l = G(() => {
1747
+ let i = "100%";
1748
+ return e.hasDelete && (i = "calc(100% - 37px)"), {
1749
+ width: i
1690
1750
  };
1691
- }), o = K(() => e.readonly), i = N("hexa");
1692
- return (s, a) => {
1693
- const u = U("v-btn"), f = U("v-icon"), d = U("v-color-picker"), y = U("v-menu");
1694
- return $(), H(y, { "close-on-content-click": !1 }, {
1695
- activator: Y(({ props: T }) => [
1696
- ae("div", js, [
1697
- ae("div", {
1751
+ }), o = G(() => e.readonly);
1752
+ return (i, s) => {
1753
+ const a = L("v-btn"), u = L("v-icon"), d = L("v-color-picker"), f = L("v-menu");
1754
+ return S(), R(f, { "close-on-content-click": !1 }, {
1755
+ activator: Y(({ props: g }) => [
1756
+ q("div", Js, [
1757
+ q("div", {
1698
1758
  class: "flex-grow-1",
1699
- style: Me(l.value)
1759
+ style: ie(l.value)
1700
1760
  }, [
1701
- F(u, qt(T, {
1761
+ B(a, It(g, {
1702
1762
  density: "comfortable",
1703
1763
  color: n.value,
1704
1764
  block: "",
1705
1765
  disabled: o.value
1706
1766
  }), {
1707
1767
  default: Y(() => [
1708
- it(ne(n.value), 1)
1768
+ at(ne(n.value), 1)
1709
1769
  ]),
1710
1770
  _: 2
1711
1771
  }, 1040, ["color", "disabled"])
1712
1772
  ], 4),
1713
- s.hasDelete ? ($(), H(f, {
1773
+ i.hasDelete ? (S(), R(u, {
1714
1774
  key: 0,
1715
1775
  class: "mx-2",
1716
- icon: R(me),
1717
- onClick: a[0] || (a[0] = Z((w) => r("delete"), ["stop"]))
1776
+ icon: E(ge),
1777
+ onClick: s[0] || (s[0] = z((_) => r("delete"), ["stop"]))
1718
1778
  }, null, 8, ["icon"])) : I("", !0)
1719
1779
  ])
1720
1780
  ]),
1721
1781
  default: Y(() => [
1722
- F(d, {
1782
+ B(d, {
1723
1783
  modelValue: n.value,
1724
- "onUpdate:modelValue": a[1] || (a[1] = (T) => n.value = T),
1725
- mode: i.value,
1726
- "onUpdate:mode": a[2] || (a[2] = (T) => i.value = T),
1784
+ "onUpdate:modelValue": s[1] || (s[1] = (g) => n.value = g),
1785
+ mode: "hexa",
1727
1786
  "show-swatches": "",
1728
1787
  "swatches-max-height": "150px"
1729
- }, null, 8, ["modelValue", "mode"])
1788
+ }, null, 8, ["modelValue"])
1730
1789
  ]),
1731
1790
  _: 1
1732
1791
  });
1733
1792
  };
1734
1793
  }
1735
1794
  });
1736
- function Ns(e) {
1737
- return { renderUiColorPicker: (n, r, l, o, i) => r.ui !== "colorPicker" ? (console.assert(!1), g("div", "renderUiColorPicker prop ui must be colorPicker")) : g(Es, {
1738
- modelValue: ve(
1795
+ function Qs(e) {
1796
+ return { renderUiColorPicker: (n, r, l, o, i) => r.ui !== "colorPicker" ? (console.assert(!1), h("div", "renderUiColorPicker prop ui must be colorPicker")) : h(Ws, {
1797
+ modelValue: ye(
1739
1798
  n,
1740
1799
  r,
1741
1800
  l,
@@ -1744,7 +1803,7 @@ function Ns(e) {
1744
1803
  i
1745
1804
  ),
1746
1805
  "onUpdate:modelValue": (s) => {
1747
- ge(
1806
+ he(
1748
1807
  n,
1749
1808
  r,
1750
1809
  l,
@@ -1761,43 +1820,43 @@ function Ns(e) {
1761
1820
  readonly: r.readonly
1762
1821
  }) };
1763
1822
  }
1764
- const Fs = { class: "d-flex justify-space-between align-center my-2" }, Rs = { class: "flex-grow-1" }, Bs = /* @__PURE__ */ k({
1823
+ const ea = { class: "d-flex justify-space-between align-center my-2" }, ta = { class: "flex-grow-1" }, na = /* @__PURE__ */ K({
1765
1824
  __name: "multiTypes",
1766
- props: /* @__PURE__ */ z({
1825
+ props: /* @__PURE__ */ X({
1767
1826
  hasDelete: { type: Boolean, default: !1 },
1768
1827
  types: {}
1769
1828
  }, {
1770
1829
  modelValue: { default: "" },
1771
1830
  modelModifiers: {}
1772
1831
  }),
1773
- emits: /* @__PURE__ */ z(["delete"], ["update:modelValue"]),
1832
+ emits: /* @__PURE__ */ X(["delete"], ["update:modelValue"]),
1774
1833
  setup(e, { emit: t }) {
1775
- const { t: n } = be(), r = le(e, "modelValue"), l = t, o = N(0), i = K(() => {
1834
+ const { t: n } = de(), r = oe(e, "modelValue"), l = t, o = F(0), i = G(() => {
1776
1835
  const u = [];
1777
- return e.types.forEach((f, d) => {
1836
+ return e.types.forEach((d, f) => {
1778
1837
  u.push({
1779
- title: n(f.name),
1780
- value: d
1838
+ title: n(d.name),
1839
+ value: f
1781
1840
  });
1782
1841
  }), u;
1783
1842
  });
1784
- e.types.some((u, f) => u.validator(r.value) ? (o.value = f, !0) : !1);
1785
- const s = K(() => e.types[o.value]);
1786
- we(s, (u) => {
1843
+ e.types.some((u, d) => u.validator(r.value) ? (o.value = d, !0) : !1);
1844
+ const s = G(() => e.types[o.value]);
1845
+ Ce(s, (u) => {
1787
1846
  r.value = u.default;
1788
1847
  });
1789
- const a = N(0);
1790
- return En(() => {
1791
- s.value.ui === "pixelInput" ? a.value = Fn(r.value) : s.value.ui === "percentInput" && (a.value = Rn(r.value));
1792
- }), we(a, (u) => {
1848
+ const a = F(0);
1849
+ return zn(() => {
1850
+ s.value.ui === "pixelInput" ? a.value = Yn(r.value) : s.value.ui === "percentInput" && (a.value = Jn(r.value));
1851
+ }), Ce(a, (u) => {
1793
1852
  s.value.ui === "pixelInput" ? r.value = u + "px" : s.value.ui === "percentInput" && (r.value = u + "%");
1794
- }), (u, f) => {
1795
- const d = U("v-select"), y = U("v-number-input"), T = U("v-icon"), w = oe("ripple");
1796
- return $(), B("div", Fs, [
1797
- ae("div", Rs, [
1798
- ee(F(d, {
1853
+ }), (u, d) => {
1854
+ const f = L("v-select"), g = L("v-number-input"), _ = L("v-icon"), w = ae("ripple");
1855
+ return S(), k("div", ea, [
1856
+ q("div", ta, [
1857
+ re(B(f, {
1799
1858
  modelValue: o.value,
1800
- "onUpdate:modelValue": f[0] || (f[0] = (C) => o.value = C),
1859
+ "onUpdate:modelValue": d[0] || (d[0] = (C) => o.value = C),
1801
1860
  density: "compact",
1802
1861
  items: i.value,
1803
1862
  "hide-details": "",
@@ -1810,10 +1869,10 @@ const Fs = { class: "d-flex justify-space-between align-center my-2" }, Rs = { c
1810
1869
  { stop: !0 }
1811
1870
  ]
1812
1871
  ]),
1813
- s.value.ui === "pixelInput" || s.value.ui === "percentInput" ? ee(($(), H(y, {
1872
+ s.value.ui === "pixelInput" || s.value.ui === "percentInput" ? re((S(), R(g, {
1814
1873
  key: 0,
1815
1874
  modelValue: a.value,
1816
- "onUpdate:modelValue": f[1] || (f[1] = (C) => a.value = C),
1875
+ "onUpdate:modelValue": d[1] || (d[1] = (C) => a.value = C),
1817
1876
  density: "compact",
1818
1877
  "control-variant": "stacked",
1819
1878
  precision: s.value.precision,
@@ -1831,19 +1890,19 @@ const Fs = { class: "d-flex justify-space-between align-center my-2" }, Rs = { c
1831
1890
  ]
1832
1891
  ]) : I("", !0)
1833
1892
  ]),
1834
- u.hasDelete ? ($(), H(T, {
1893
+ u.hasDelete ? (S(), R(_, {
1835
1894
  key: 0,
1836
1895
  class: "mx-2",
1837
- icon: R(me),
1838
- onClick: f[2] || (f[2] = Z((C) => l("delete"), ["stop"]))
1896
+ icon: E(ge),
1897
+ onClick: d[2] || (d[2] = z((C) => l("delete"), ["stop"]))
1839
1898
  }, null, 8, ["icon"])) : I("", !0)
1840
1899
  ]);
1841
1900
  };
1842
1901
  }
1843
1902
  });
1844
- function Hs(e) {
1845
- return { renderUiMultiTypes: (n, r, l, o, i) => r.ui !== "multiTypes" ? (console.assert(!1), g("div", "renderUiMultiTypes prop ui must be multiTypes")) : g(Bs, {
1846
- modelValue: ve(
1903
+ function ra(e) {
1904
+ return { renderUiMultiTypes: (n, r, l, o, i) => r.ui !== "multiTypes" ? (console.assert(!1), h("div", "renderUiMultiTypes prop ui must be multiTypes")) : h(na, {
1905
+ modelValue: ye(
1847
1906
  n,
1848
1907
  r,
1849
1908
  l,
@@ -1852,7 +1911,7 @@ function Hs(e) {
1852
1911
  i
1853
1912
  ),
1854
1913
  "onUpdate:modelValue": (s) => {
1855
- ge(
1914
+ he(
1856
1915
  n,
1857
1916
  r,
1858
1917
  l,
@@ -1869,7 +1928,7 @@ function Hs(e) {
1869
1928
  types: r.types
1870
1929
  }) };
1871
1930
  }
1872
- const Gs = /* @__PURE__ */ k({
1931
+ const oa = /* @__PURE__ */ K({
1873
1932
  __name: "index",
1874
1933
  props: {
1875
1934
  unique: {},
@@ -1878,64 +1937,94 @@ const Gs = /* @__PURE__ */ k({
1878
1937
  },
1879
1938
  emits: ["change"],
1880
1939
  setup(e, { emit: t }) {
1881
- const { t: n } = be(), { backgroundColor1: r } = Ue(), l = e, o = t, i = N("20px"), s = N("56px"), a = N("200px"), u = Nn({}), f = N({}), d = (p, c) => {
1882
- kt(f, l.config, l.object), o("change", p, c);
1940
+ const { t: n } = de(), { backgroundColor1: r } = $e(), l = e, o = t, i = F("20px"), s = F("56px"), a = F("200px"), u = qn({}), d = F({}), f = (v, c) => {
1941
+ zt(d, l.config, l.object), o("change", v, c);
1883
1942
  };
1884
- we(
1943
+ Ce(
1885
1944
  [() => l.config, () => l.object],
1886
1945
  () => {
1887
- kt(f, l.config, l.object, (p, c) => {
1888
- o("change", p, c);
1946
+ zt(d, l.config, l.object, (v, c) => {
1947
+ o("change", v, c);
1889
1948
  });
1890
1949
  },
1891
1950
  { immediate: !0 }
1892
1951
  );
1893
- const y = N(l.config);
1894
- Wi(y), we(
1952
+ const g = F(l.config);
1953
+ ps(g), Ce(
1895
1954
  () => l.config,
1896
1955
  () => {
1897
- y.value = l.config;
1956
+ g.value = l.config;
1898
1957
  }
1899
1958
  );
1900
- const T = N(l.object);
1901
- es(T), we(
1959
+ const _ = F(l.object);
1960
+ ms(_), Ce(
1902
1961
  () => l.object,
1903
1962
  () => {
1904
- T.value = l.object;
1963
+ _.value = l.object;
1905
1964
  }
1906
- ), ns(f), os(d);
1907
- const { renderProp: w } = us(f, s, a), { renderUiDummy: C } = cs(d), { renderUiStrInput: h } = ps(d), { renderUiNumInput: S } = gs(d), { renderUiSwitch: E } = _s(d), { renderUiSelect: V } = Ts(d), { renderUiColorPicker: A } = Ns(d), { renderUiMultiTypes: M } = Hs(d), { renderUiCompSelect: X } = Ds(d), ye = (p, c, v, m, _, x) => (p = yn(p), _ !== void 0 ? (p.push(_), x && p.push(c.key)) : p.push(c.key), c.ui ? c.array && _ === void 0 ? Vn(p, c, v, m, _, x) : Mn(p, c, v, _, x) : c.array ? Cn(p, c, v, m, _, x) : On(
1908
- p,
1909
- c,
1965
+ ), ys(d), _s(f);
1966
+ const w = F([]);
1967
+ $s(w);
1968
+ const C = () => {
1969
+ const { compGroups: v, comps: c } = Qn.app.activeApp, m = [];
1970
+ v.forEach(({ id: p, name: b, position: O }) => {
1971
+ const D = w.value.find((Q) => Q.id === p);
1972
+ m.push({
1973
+ id: p,
1974
+ type: 0,
1975
+ name: b,
1976
+ position: O,
1977
+ collapse: (D == null ? void 0 : D.collapse) ?? !0
1978
+ });
1979
+ }), c.forEach(({ id: p, groupid: b, name: O, position: D }) => {
1980
+ m.push({ id: p, type: 1, name: O, position: D, group: b });
1981
+ }), os(m, !0), w.value = m;
1982
+ };
1983
+ let y;
1984
+ const $ = () => {
1985
+ clearTimeout(y), y = window.setTimeout(() => {
1986
+ C(), y && $();
1987
+ }, 3e3);
1988
+ }, A = () => {
1989
+ clearTimeout(y), y = void 0;
1990
+ };
1991
+ In(() => {
1992
+ $();
1993
+ }), Xn(() => {
1994
+ A();
1995
+ });
1996
+ const { renderProp: V } = Cs(d, s, a), { renderUiDummy: P } = Ps(f), { renderUiStrInput: U } = Ls(f), { renderUiNumInput: J } = Us(f), { renderUiSwitch: Je } = Es(f), { renderUiSelect: Ln } = Fs(f), { renderUiColorPicker: Mn } = Qs(f), { renderUiMultiTypes: Vn } = ra(f), { renderUiCompSelect: Un } = Ys(f), je = (v, c, m, p, b, O) => (v = hn(v), b !== void 0 ? (v.push(b), O && v.push(c.key)) : v.push(c.key), c.ui ? c.array && b === void 0 ? En(v, c, m, p, b, O) : Nn(v, c, m, b, O) : c.array ? Dn(v, c, m, p, b, O) : jn(
1910
1997
  v,
1998
+ c,
1911
1999
  m,
1912
- _,
1913
- x
1914
- )), Cn = (p, c, v, m, _, x) => {
2000
+ p,
2001
+ b,
2002
+ O
2003
+ )), Dn = (v, c, m, p, b, O) => {
1915
2004
  if (c.ui)
1916
- return console.assert(!1), g("div", "renderBranchArray prop ui must be invalid");
2005
+ return console.assert(!1), h("div", "renderBranchArray prop ui must be invalid");
1917
2006
  if (!c.array)
1918
- return console.assert(!1), g("div", "renderBranchArray prop array must be valid");
1919
- if (!m)
1920
- return console.assert(!1), g("div", "renderBranchArray branch must be valid");
1921
- let j;
1922
- _ !== void 0 && !x ? (v[_] instanceof Array || (v[_] = D(c), d(p, v[c.key])), j = v[_]) : (v[c.key] instanceof Array || (v[c.key] = D(c), d(p, v[c.key])), j = v[c.key]);
1923
- let ie = n(c.name);
1924
- m.collapse && he(f.value, p) && (ie += " *");
1925
- const $e = g(Fe, {
1926
- title: ie,
1927
- collapse: m.collapse,
2007
+ return console.assert(!1), h("div", "renderBranchArray prop array must be valid");
2008
+ if (!p)
2009
+ return console.assert(!1), h("div", "renderBranchArray branch must be valid");
2010
+ let D;
2011
+ b !== void 0 && !O ? (m[b] instanceof Array || (m[b] = N(c), f(v, m[c.key])), D = m[b]) : (m[c.key] instanceof Array || (m[c.key] = N(c), f(v, m[c.key])), D = m[c.key]);
2012
+ let Q = n(c.name);
2013
+ p.collapse && _e(d.value, v) && (Q += " *");
2014
+ const Te = h(Re, {
2015
+ title: Q,
2016
+ collapse: p.collapse,
1928
2017
  hasCreate: !0,
1929
- onCollapse: (b) => {
1930
- m.collapse = b;
2018
+ onCollapse: (T) => {
2019
+ p.collapse = T;
1931
2020
  },
1932
- onMenu: (b, L) => {
1933
- Ae.emit("propTreeMenu", { x: b, y: L, keys: p });
2021
+ onMenu: (T, j) => {
2022
+ Ae.emit("propTreeMenu", { x: T, y: j, keys: v });
1934
2023
  },
1935
2024
  onCreate: () => {
1936
- j.push({}), d(p, j);
2025
+ D.push({}), f(v, D);
1937
2026
  }
1938
- }), G = g(
2027
+ }), H = h(
1939
2028
  "div",
1940
2029
  {
1941
2030
  style: {
@@ -1943,44 +2032,44 @@ const Gs = /* @__PURE__ */ k({
1943
2032
  }
1944
2033
  },
1945
2034
  (() => {
1946
- const b = [];
1947
- for (let L = 0; L < j.length; L++) {
1948
- if (!et(m.children)) {
2035
+ const T = [];
2036
+ for (let j = 0; j < D.length; j++) {
2037
+ if (!tt(p.children)) {
1949
2038
  console.assert(!1);
1950
2039
  break;
1951
2040
  }
1952
- m.children[L] || m.children.push({
2041
+ p.children[j] || p.children.push({
1953
2042
  collapse: !0,
1954
2043
  children: {}
1955
2044
  });
1956
- const De = [...p, L], je = m.children[L];
1957
- let gt = n("x-prop-tree.entry", { index: L });
1958
- m.children[L].collapse && he(f.value, De) && (gt += " *");
1959
- const xn = g(Fe, {
1960
- title: gt,
1961
- collapse: m.children[L].collapse,
2045
+ const Ee = [...v, j], Ne = p.children[j];
2046
+ let ht = n("x-prop-tree.entry", { index: j });
2047
+ p.children[j].collapse && _e(d.value, Ee) && (ht += " *");
2048
+ const Fn = h(Re, {
2049
+ title: ht,
2050
+ collapse: p.children[j].collapse,
1962
2051
  hasDelete: !0,
1963
- index: L,
1964
- onCollapse: (W) => {
1965
- if (!et(m.children)) {
2052
+ index: j,
2053
+ onCollapse: (ee) => {
2054
+ if (!tt(p.children)) {
1966
2055
  console.assert(!1);
1967
2056
  return;
1968
2057
  }
1969
- m.children[L].collapse = W;
2058
+ p.children[j].collapse = ee;
1970
2059
  },
1971
- onMenu: (W, se) => {
1972
- Ae.emit("propTreeMenu", { x: W, y: se, keys: De });
2060
+ onMenu: (ee, ue) => {
2061
+ Ae.emit("propTreeMenu", { x: ee, y: ue, keys: Ee });
1973
2062
  },
1974
- onDelete: (W) => {
1975
- if (!et(m.children)) {
2063
+ onDelete: (ee) => {
2064
+ if (!tt(p.children)) {
1976
2065
  console.assert(!1);
1977
2066
  return;
1978
2067
  }
1979
- m.children.splice(W, 1), j.splice(W, 1), d(p, j);
2068
+ p.children.splice(ee, 1), D.splice(ee, 1), f(v, D);
1980
2069
  }
1981
2070
  });
1982
- b.push(xn);
1983
- const Ln = g(
2071
+ T.push(Fn);
2072
+ const Rn = h(
1984
2073
  "div",
1985
2074
  {
1986
2075
  style: {
@@ -1988,34 +2077,34 @@ const Gs = /* @__PURE__ */ k({
1988
2077
  }
1989
2078
  },
1990
2079
  (() => {
1991
- const W = [];
1992
- return c.children.forEach((se) => {
1993
- if (!Gt(je.children)) {
2080
+ const ee = [];
2081
+ return c.children.forEach((ue) => {
2082
+ if (!Kt(Ne.children)) {
1994
2083
  console.assert(!1);
1995
2084
  return;
1996
2085
  }
1997
- je.children[se.key] || (je.children[se.key] = {
2086
+ Ne.children[ue.key] || (Ne.children[ue.key] = {
1998
2087
  collapse: !0,
1999
- children: se.array ? [] : {}
2088
+ children: ue.array ? [] : {}
2000
2089
  });
2001
- const Dn = ye(
2002
- p,
2003
- se,
2004
- j[L],
2005
- je.children[se.key],
2006
- L,
2090
+ const kn = je(
2091
+ v,
2092
+ ue,
2093
+ D[j],
2094
+ Ne.children[ue.key],
2095
+ j,
2007
2096
  !0
2008
2097
  );
2009
- W.push(Dn);
2010
- }), W;
2098
+ ee.push(kn);
2099
+ }), ee;
2011
2100
  })()
2012
2101
  );
2013
- m.children[L].collapse || b.push(Ln);
2102
+ p.children[j].collapse || T.push(Rn);
2014
2103
  }
2015
- return b;
2104
+ return T;
2016
2105
  })()
2017
2106
  );
2018
- return g(
2107
+ return h(
2019
2108
  "div",
2020
2109
  {
2021
2110
  style: {
@@ -2023,33 +2112,33 @@ const Gs = /* @__PURE__ */ k({
2023
2112
  }
2024
2113
  },
2025
2114
  (() => {
2026
- const b = [];
2027
- return b.push($e), m.collapse || b.push(G), b;
2115
+ const T = [];
2116
+ return T.push(Te), p.collapse || T.push(H), T;
2028
2117
  })()
2029
2118
  );
2030
- }, On = (p, c, v, m, _, x) => {
2119
+ }, jn = (v, c, m, p, b, O) => {
2031
2120
  if (c.ui)
2032
- return console.assert(!1), g("div", "renderBranchScalar prop ui must be invalid");
2121
+ return console.assert(!1), h("div", "renderBranchScalar prop ui must be invalid");
2033
2122
  if (c.array)
2034
- return console.assert(!1), g("div", "renderBranchScalar prop array must be invalid");
2035
- if (!m)
2036
- return console.assert(!1), g("div", "renderBranchScalar branch must be valid");
2037
- let j = n(c.name);
2038
- m.collapse && he(f.value, p) && (j += " *");
2039
- const ie = g(Fe, {
2040
- title: j,
2041
- collapse: m.collapse,
2042
- hasDelete: _ !== void 0 && !x,
2043
- onCollapse: (G) => {
2044
- m.collapse = G;
2123
+ return console.assert(!1), h("div", "renderBranchScalar prop array must be invalid");
2124
+ if (!p)
2125
+ return console.assert(!1), h("div", "renderBranchScalar branch must be valid");
2126
+ let D = n(c.name);
2127
+ p.collapse && _e(d.value, v) && (D += " *");
2128
+ const Q = h(Re, {
2129
+ title: D,
2130
+ collapse: p.collapse,
2131
+ hasDelete: b !== void 0 && !O,
2132
+ onCollapse: (H) => {
2133
+ p.collapse = H;
2045
2134
  },
2046
- onMenu: (G, b) => {
2047
- Ae.emit("propTreeMenu", { x: G, y: b, keys: p });
2135
+ onMenu: (H, T) => {
2136
+ Ae.emit("propTreeMenu", { x: H, y: T, keys: v });
2048
2137
  },
2049
2138
  onDelete: () => {
2050
- _ === void 0 || x || (v.splice(_, 1), d(p.slice(0, -1), v));
2139
+ b === void 0 || O || (m.splice(b, 1), f(v.slice(0, -1), m));
2051
2140
  }
2052
- }), $e = g(
2141
+ }), Te = h(
2053
2142
  "div",
2054
2143
  {
2055
2144
  style: {
@@ -2057,27 +2146,27 @@ const Gs = /* @__PURE__ */ k({
2057
2146
  }
2058
2147
  },
2059
2148
  (() => {
2060
- const G = [];
2061
- return c.children.forEach((b) => {
2062
- if (!Gt(m.children)) {
2149
+ const H = [];
2150
+ return c.children.forEach((T) => {
2151
+ if (!Kt(p.children)) {
2063
2152
  console.assert(!1);
2064
2153
  return;
2065
2154
  }
2066
- m.children[b.key] || (m.children[b.key] = {
2155
+ p.children[T.key] || (p.children[T.key] = {
2067
2156
  collapse: !0,
2068
- children: !b.ui && b.array ? [] : {}
2157
+ children: !T.ui && T.array ? [] : {}
2069
2158
  });
2070
- const L = ye(
2071
- p,
2072
- b,
2073
- (typeof v[c.key] != "object" && (v[c.key] = {}, d(p, v[c.key])), v[c.key]),
2074
- m.children[b.key]
2159
+ const j = je(
2160
+ v,
2161
+ T,
2162
+ (typeof m[c.key] != "object" && (m[c.key] = {}, f(v, m[c.key])), m[c.key]),
2163
+ p.children[T.key]
2075
2164
  );
2076
- G.push(L);
2077
- }), G;
2165
+ H.push(j);
2166
+ }), H;
2078
2167
  })()
2079
2168
  );
2080
- return g(
2169
+ return h(
2081
2170
  "div",
2082
2171
  {
2083
2172
  style: {
@@ -2085,35 +2174,35 @@ const Gs = /* @__PURE__ */ k({
2085
2174
  }
2086
2175
  },
2087
2176
  (() => {
2088
- const G = [];
2089
- return G.push(ie), m.collapse || G.push($e), G;
2177
+ const H = [];
2178
+ return H.push(Q), p.collapse || H.push(Te), H;
2090
2179
  })()
2091
2180
  );
2092
- }, Vn = (p, c, v, m, _, x) => {
2181
+ }, En = (v, c, m, p, b, O) => {
2093
2182
  if (!c.ui)
2094
- return console.assert(!1), g("div", "renderLeafArray prop ui must be valid");
2183
+ return console.assert(!1), h("div", "renderLeafArray prop ui must be valid");
2095
2184
  if (!c.array)
2096
- return console.assert(!1), g("div", "renderLeafArray prop array must be valid");
2097
- if (!m)
2098
- return console.assert(!1), g("div", "renderLeafArray branch must be valid");
2099
- let j;
2100
- _ !== void 0 && !x ? (v[_] instanceof Array || (v[_] = D(c), d(p, v[_])), j = v[_]) : (v[c.key] instanceof Array || (v[c.key] = D(c), d(p, v[c.key])), j = v[c.key]);
2101
- let ie = n(c.name);
2102
- m.collapse && he(f.value, p) && (ie += " *");
2103
- const $e = g(Fe, {
2104
- title: ie,
2105
- collapse: m.collapse,
2185
+ return console.assert(!1), h("div", "renderLeafArray prop array must be valid");
2186
+ if (!p)
2187
+ return console.assert(!1), h("div", "renderLeafArray branch must be valid");
2188
+ let D;
2189
+ b !== void 0 && !O ? (m[b] instanceof Array || (m[b] = N(c), f(v, m[b])), D = m[b]) : (m[c.key] instanceof Array || (m[c.key] = N(c), f(v, m[c.key])), D = m[c.key]);
2190
+ let Q = n(c.name);
2191
+ p.collapse && _e(d.value, v) && (Q += " *");
2192
+ const Te = h(Re, {
2193
+ title: Q,
2194
+ collapse: p.collapse,
2106
2195
  hasCreate: !0,
2107
- onCollapse: (b) => {
2108
- m.collapse = b;
2196
+ onCollapse: (T) => {
2197
+ p.collapse = T;
2109
2198
  },
2110
- onMenu: (b, L) => {
2111
- Ae.emit("propTreeMenu", { x: b, y: L, keys: p });
2199
+ onMenu: (T, j) => {
2200
+ Ae.emit("propTreeMenu", { x: T, y: j, keys: v });
2112
2201
  },
2113
2202
  onCreate: () => {
2114
- j.push(D(c, !0)), d(p, j);
2203
+ D.push(N(c, !0)), f(v, D);
2115
2204
  }
2116
- }), G = g(
2205
+ }), H = h(
2117
2206
  "div",
2118
2207
  {
2119
2208
  style: {
@@ -2121,15 +2210,15 @@ const Gs = /* @__PURE__ */ k({
2121
2210
  }
2122
2211
  },
2123
2212
  (() => {
2124
- const b = [];
2125
- for (let L = 0; L < j.length; L++) {
2126
- const De = ye(p, c, j, void 0, L, !1);
2127
- b.push(De);
2213
+ const T = [];
2214
+ for (let j = 0; j < D.length; j++) {
2215
+ const Ee = je(v, c, D, void 0, j, !1);
2216
+ T.push(Ee);
2128
2217
  }
2129
- return b;
2218
+ return T;
2130
2219
  })()
2131
2220
  );
2132
- return g(
2221
+ return h(
2133
2222
  "div",
2134
2223
  {
2135
2224
  style: {
@@ -2137,16 +2226,16 @@ const Gs = /* @__PURE__ */ k({
2137
2226
  }
2138
2227
  },
2139
2228
  (() => {
2140
- const b = [];
2141
- return b.push($e), m.collapse || b.push(G), b;
2229
+ const T = [];
2230
+ return T.push(Te), p.collapse || T.push(H), T;
2142
2231
  })()
2143
2232
  );
2144
- }, Mn = (p, c, v, m, _) => {
2233
+ }, Nn = (v, c, m, p, b) => {
2145
2234
  if (!c.ui)
2146
- return console.assert(!1), g("div", "renderLeafScalar prop ui must be valid");
2147
- let x;
2148
- return c.ui === "dummy" ? x = C(p, c, v, m, _) : c.ui === "strInput" ? x = h(p, c, v, m, _) : c.ui === "numInput" ? x = S(p, c, v, m, _) : c.ui === "switch" ? x = E(p, c, v, m, _) : c.ui === "select" ? x = V(p, c, v, m, _) : c.ui === "colorPicker" ? x = A(p, c, v, m, _) : c.ui === "multiTypes" ? x = M(p, c, v, m, _) : c.ui === "compSelect" ? x = X(p, c, v, m, _) : console.assert(!1, "renderLeafScalar not implemented"), x ? w(p, c, x) : g("div");
2149
- }, Un = () => g(
2235
+ return console.assert(!1), h("div", "renderLeafScalar prop ui must be valid");
2236
+ let O;
2237
+ return c.ui === "dummy" ? O = P(v, c, m, p, b) : c.ui === "strInput" ? O = U(v, c, m, p, b) : c.ui === "numInput" ? O = J(v, c, m, p, b) : c.ui === "switch" ? O = Je(v, c, m, p, b) : c.ui === "select" ? O = Ln(v, c, m, p, b) : c.ui === "colorPicker" ? O = Mn(v, c, m, p, b) : c.ui === "multiTypes" ? O = Vn(v, c, m, p, b) : c.ui === "compSelect" ? O = Un(v, c, m, p, b) : console.assert(!1, "renderLeafScalar not implemented"), O ? V(v, c, O) : h("div");
2238
+ }, Bn = () => h(
2150
2239
  "div",
2151
2240
  {
2152
2241
  class: "text-body-2",
@@ -2155,34 +2244,34 @@ const Gs = /* @__PURE__ */ k({
2155
2244
  }
2156
2245
  },
2157
2246
  (() => {
2158
- const p = [];
2247
+ const v = [];
2159
2248
  if (l.unique && l.config.length > 0 && l.object) {
2160
2249
  u[l.unique] || (u[l.unique] = {});
2161
2250
  const c = u[l.unique];
2162
- l.config.forEach((v) => {
2163
- c[v.key] || (c[v.key] = {
2251
+ l.config.forEach((m) => {
2252
+ c[m.key] || (c[m.key] = {
2164
2253
  collapse: !0,
2165
- children: !v.ui && v.array ? [] : {}
2254
+ children: !m.ui && m.array ? [] : {}
2166
2255
  });
2167
- const m = ye([], v, l.object, c[v.key]);
2168
- p.push(m);
2256
+ const p = je([], m, l.object, c[m.key]);
2257
+ v.push(p);
2169
2258
  });
2170
2259
  }
2171
- return p;
2260
+ return v;
2172
2261
  })()
2173
2262
  );
2174
- return (p, c) => ($(), B(Be, null, [
2175
- F(Un),
2176
- F(is, {
2263
+ return (v, c) => (S(), k(He, null, [
2264
+ B(Bn),
2265
+ B(Ts, {
2177
2266
  config: l.config,
2178
2267
  object: l.object,
2179
- "prop-states": f.value
2268
+ "prop-states": d.value
2180
2269
  }, null, 8, ["config", "object", "prop-states"])
2181
2270
  ], 64));
2182
2271
  }
2183
- }), ks = (e) => {
2184
- e.component("XPropTree", Gs);
2185
- }, zs = (e, t, n) => {
2272
+ }), la = (e) => {
2273
+ e.component("XPropTree", oa);
2274
+ }, ia = (e, t, n) => {
2186
2275
  const r = e[t];
2187
2276
  return r ? typeof r == "function" ? r() : Promise.resolve(r) : new Promise((l, o) => {
2188
2277
  (typeof queueMicrotask == "function" ? queueMicrotask : setTimeout)(
@@ -2195,11 +2284,11 @@ const Gs = /* @__PURE__ */ k({
2195
2284
  );
2196
2285
  });
2197
2286
  };
2198
- async function Zs(e) {
2199
- return (await zs(/* @__PURE__ */ Object.assign({ "./locales/en/index.ts": () => import("./i18n-en-eyioipy9.js"), "./locales/zhHans/index.ts": () => import("./i18n-zhHans-mtvnapj8.js") }), `./locales/${e}/index.ts`, 4)).default;
2287
+ async function pa(e) {
2288
+ return (await ia(/* @__PURE__ */ Object.assign({ "./locales/en/index.ts": () => import("./i18n-en-nonohi4u.js"), "./locales/zhHans/index.ts": () => import("./i18n-zhHans-gdfh4wwz.js") }), `./locales/${e}/index.ts`, 4)).default;
2200
2289
  }
2201
- const Js = { install: ks };
2290
+ const va = { install: la };
2202
2291
  export {
2203
- Js as default,
2204
- Zs as loadLocaleMessagePropTree
2292
+ va as default,
2293
+ pa as loadLocaleMessagePropTree
2205
2294
  };