x-prop-tree 0.5.10 → 0.5.12

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