x-prop-tree 0.5.4 → 0.5.6

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