@ddd-tool/domain-designer-generator 0.1.0-beta.0 → 0.1.0-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/domain/generator-agg.d.ts +22 -22
- package/domain-plugin/generator-csharp-plugin.d.ts +2 -2
- package/domain-plugin/generator-go-plugin.d.ts +2 -2
- package/domain-plugin/generator-java-plugin.d.ts +2 -2
- package/domain-plugin/generator-kotlin-plugin.d.ts +2 -2
- package/index.js +1529 -1465
- package/package.json +6 -5
package/index.js
CHANGED
|
@@ -5,49 +5,49 @@
|
|
|
5
5
|
**/
|
|
6
6
|
/*! #__NO_SIDE_EFFECTS__ */
|
|
7
7
|
// @__NO_SIDE_EFFECTS__
|
|
8
|
-
function
|
|
8
|
+
function Kn(e) {
|
|
9
9
|
const n = /* @__PURE__ */ Object.create(null);
|
|
10
10
|
for (const t of e.split(",")) n[t] = 1;
|
|
11
11
|
return (t) => t in n;
|
|
12
12
|
}
|
|
13
13
|
process.env.NODE_ENV !== "production" && Object.freeze({});
|
|
14
14
|
process.env.NODE_ENV !== "production" && Object.freeze([]);
|
|
15
|
-
const
|
|
15
|
+
const Fe = Object.assign, zn = Object.prototype.hasOwnProperty, Ve = (e, n) => zn.call(e, n), J = Array.isArray, ne = (e) => pn(e) === "[object Map]", Bn = (e) => typeof e == "function", Un = (e) => typeof e == "string", ce = (e) => typeof e == "symbol", ye = (e) => e !== null && typeof e == "object", Gn = Object.prototype.toString, pn = (e) => Gn.call(e), dn = (e) => pn(e).slice(8, -1), Je = (e) => Un(e) && e !== "NaN" && e[0] !== "-" && "" + parseInt(e, 10) === e, Wn = (e) => {
|
|
16
16
|
const n = /* @__PURE__ */ Object.create(null);
|
|
17
17
|
return (t) => n[t] || (n[t] = e(t));
|
|
18
|
-
},
|
|
18
|
+
}, Jn = Wn((e) => e.charAt(0).toUpperCase() + e.slice(1)), Y = (e, n) => !Object.is(e, n);
|
|
19
19
|
/**
|
|
20
20
|
* @vue/reactivity v3.5.13
|
|
21
21
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
22
22
|
* @license MIT
|
|
23
23
|
**/
|
|
24
|
-
function
|
|
24
|
+
function X(e, ...n) {
|
|
25
25
|
}
|
|
26
|
-
let
|
|
27
|
-
function
|
|
26
|
+
let S, fn = 0, te, oe;
|
|
27
|
+
function Yn(e, n = !1) {
|
|
28
28
|
if (e.flags |= 8, n) {
|
|
29
|
-
e.next =
|
|
29
|
+
e.next = oe, oe = e;
|
|
30
30
|
return;
|
|
31
31
|
}
|
|
32
|
-
e.next =
|
|
32
|
+
e.next = te, te = e;
|
|
33
33
|
}
|
|
34
|
-
function
|
|
35
|
-
|
|
34
|
+
function Ye() {
|
|
35
|
+
fn++;
|
|
36
36
|
}
|
|
37
|
-
function
|
|
38
|
-
if (--
|
|
37
|
+
function Ze() {
|
|
38
|
+
if (--fn > 0)
|
|
39
39
|
return;
|
|
40
|
-
if (
|
|
41
|
-
let n =
|
|
42
|
-
for (
|
|
40
|
+
if (oe) {
|
|
41
|
+
let n = oe;
|
|
42
|
+
for (oe = void 0; n; ) {
|
|
43
43
|
const t = n.next;
|
|
44
44
|
n.next = void 0, n.flags &= -9, n = t;
|
|
45
45
|
}
|
|
46
46
|
}
|
|
47
47
|
let e;
|
|
48
|
-
for (;
|
|
49
|
-
let n =
|
|
50
|
-
for (
|
|
48
|
+
for (; te; ) {
|
|
49
|
+
let n = te;
|
|
50
|
+
for (te = void 0; n; ) {
|
|
51
51
|
const t = n.next;
|
|
52
52
|
if (n.next = void 0, n.flags &= -9, n.flags & 1)
|
|
53
53
|
try {
|
|
@@ -60,106 +60,106 @@ function We() {
|
|
|
60
60
|
}
|
|
61
61
|
if (e) throw e;
|
|
62
62
|
}
|
|
63
|
-
function
|
|
63
|
+
function Zn(e) {
|
|
64
64
|
for (let n = e.deps; n; n = n.nextDep)
|
|
65
65
|
n.version = -1, n.prevActiveLink = n.dep.activeLink, n.dep.activeLink = n;
|
|
66
66
|
}
|
|
67
|
-
function
|
|
67
|
+
function qn(e) {
|
|
68
68
|
let n, t = e.depsTail, o = t;
|
|
69
69
|
for (; o; ) {
|
|
70
70
|
const s = o.prevDep;
|
|
71
|
-
o.version === -1 ? (o === t && (t = s),
|
|
71
|
+
o.version === -1 ? (o === t && (t = s), hn(o), Qn(o)) : n = o, o.dep.activeLink = o.prevActiveLink, o.prevActiveLink = void 0, o = s;
|
|
72
72
|
}
|
|
73
73
|
e.deps = n, e.depsTail = t;
|
|
74
74
|
}
|
|
75
|
-
function
|
|
75
|
+
function Xn(e) {
|
|
76
76
|
for (let n = e.deps; n; n = n.nextDep)
|
|
77
|
-
if (n.dep.version !== n.version || n.dep.computed && (
|
|
77
|
+
if (n.dep.version !== n.version || n.dep.computed && (mn(n.dep.computed) || n.dep.version !== n.version))
|
|
78
78
|
return !0;
|
|
79
79
|
return !!e._dirty;
|
|
80
80
|
}
|
|
81
|
-
function
|
|
82
|
-
if (e.flags & 4 && !(e.flags & 16) || (e.flags &= -17, e.globalVersion ===
|
|
81
|
+
function mn(e) {
|
|
82
|
+
if (e.flags & 4 && !(e.flags & 16) || (e.flags &= -17, e.globalVersion === se))
|
|
83
83
|
return;
|
|
84
|
-
e.globalVersion =
|
|
84
|
+
e.globalVersion = se;
|
|
85
85
|
const n = e.dep;
|
|
86
|
-
if (e.flags |= 2, n.version > 0 && !e.isSSR && e.deps && !
|
|
86
|
+
if (e.flags |= 2, n.version > 0 && !e.isSSR && e.deps && !Xn(e)) {
|
|
87
87
|
e.flags &= -3;
|
|
88
88
|
return;
|
|
89
89
|
}
|
|
90
|
-
const t =
|
|
91
|
-
|
|
90
|
+
const t = S, o = R;
|
|
91
|
+
S = e, R = !0;
|
|
92
92
|
try {
|
|
93
|
-
|
|
93
|
+
Zn(e);
|
|
94
94
|
const s = e.fn(e._value);
|
|
95
|
-
(n.version === 0 ||
|
|
95
|
+
(n.version === 0 || Y(s, e._value)) && (e._value = s, n.version++);
|
|
96
96
|
} catch (s) {
|
|
97
97
|
throw n.version++, s;
|
|
98
98
|
} finally {
|
|
99
|
-
|
|
99
|
+
S = t, R = o, qn(e), e.flags &= -3;
|
|
100
100
|
}
|
|
101
101
|
}
|
|
102
|
-
function
|
|
102
|
+
function hn(e, n = !1) {
|
|
103
103
|
const { dep: t, prevSub: o, nextSub: s } = e;
|
|
104
104
|
if (o && (o.nextSub = s, e.prevSub = void 0), s && (s.prevSub = o, e.nextSub = void 0), process.env.NODE_ENV !== "production" && t.subsHead === e && (t.subsHead = s), t.subs === e && (t.subs = o, !o && t.computed)) {
|
|
105
105
|
t.computed.flags &= -5;
|
|
106
|
-
for (let
|
|
107
|
-
|
|
106
|
+
for (let a = t.computed.deps; a; a = a.nextDep)
|
|
107
|
+
hn(a, !0);
|
|
108
108
|
}
|
|
109
109
|
!n && !--t.sc && t.map && t.map.delete(t.key);
|
|
110
110
|
}
|
|
111
|
-
function
|
|
111
|
+
function Qn(e) {
|
|
112
112
|
const { prevDep: n, nextDep: t } = e;
|
|
113
113
|
n && (n.nextDep = t, e.prevDep = void 0), t && (t.prevDep = n, e.nextDep = void 0);
|
|
114
114
|
}
|
|
115
|
-
let
|
|
116
|
-
const
|
|
117
|
-
function
|
|
118
|
-
|
|
115
|
+
let R = !0;
|
|
116
|
+
const gn = [];
|
|
117
|
+
function et() {
|
|
118
|
+
gn.push(R), R = !1;
|
|
119
119
|
}
|
|
120
|
-
function
|
|
121
|
-
const e =
|
|
122
|
-
|
|
120
|
+
function nt() {
|
|
121
|
+
const e = gn.pop();
|
|
122
|
+
R = e === void 0 ? !0 : e;
|
|
123
123
|
}
|
|
124
|
-
let
|
|
125
|
-
class
|
|
124
|
+
let se = 0;
|
|
125
|
+
class tt {
|
|
126
126
|
constructor(n, t) {
|
|
127
127
|
this.sub = n, this.dep = t, this.version = t.version, this.nextDep = this.prevDep = this.nextSub = this.prevSub = this.prevActiveLink = void 0;
|
|
128
128
|
}
|
|
129
129
|
}
|
|
130
|
-
class
|
|
130
|
+
class qe {
|
|
131
131
|
constructor(n) {
|
|
132
132
|
this.computed = n, this.version = 0, this.activeLink = void 0, this.subs = void 0, this.map = void 0, this.key = void 0, this.sc = 0, process.env.NODE_ENV !== "production" && (this.subsHead = void 0);
|
|
133
133
|
}
|
|
134
134
|
track(n) {
|
|
135
|
-
if (!
|
|
135
|
+
if (!S || !R || S === this.computed)
|
|
136
136
|
return;
|
|
137
137
|
let t = this.activeLink;
|
|
138
|
-
if (t === void 0 || t.sub !==
|
|
139
|
-
t = this.activeLink = new
|
|
138
|
+
if (t === void 0 || t.sub !== S)
|
|
139
|
+
t = this.activeLink = new tt(S, this), S.deps ? (t.prevDep = S.depsTail, S.depsTail.nextDep = t, S.depsTail = t) : S.deps = S.depsTail = t, vn(t);
|
|
140
140
|
else if (t.version === -1 && (t.version = this.version, t.nextDep)) {
|
|
141
141
|
const o = t.nextDep;
|
|
142
|
-
o.prevDep = t.prevDep, t.prevDep && (t.prevDep.nextDep = o), t.prevDep =
|
|
142
|
+
o.prevDep = t.prevDep, t.prevDep && (t.prevDep.nextDep = o), t.prevDep = S.depsTail, t.nextDep = void 0, S.depsTail.nextDep = t, S.depsTail = t, S.deps === t && (S.deps = o);
|
|
143
143
|
}
|
|
144
|
-
return process.env.NODE_ENV !== "production" &&
|
|
145
|
-
|
|
144
|
+
return process.env.NODE_ENV !== "production" && S.onTrack && S.onTrack(
|
|
145
|
+
Fe(
|
|
146
146
|
{
|
|
147
|
-
effect:
|
|
147
|
+
effect: S
|
|
148
148
|
},
|
|
149
149
|
n
|
|
150
150
|
)
|
|
151
151
|
), t;
|
|
152
152
|
}
|
|
153
153
|
trigger(n) {
|
|
154
|
-
this.version++,
|
|
154
|
+
this.version++, se++, this.notify(n);
|
|
155
155
|
}
|
|
156
156
|
notify(n) {
|
|
157
|
-
|
|
157
|
+
Ye();
|
|
158
158
|
try {
|
|
159
159
|
if (process.env.NODE_ENV !== "production")
|
|
160
160
|
for (let t = this.subsHead; t; t = t.nextSub)
|
|
161
161
|
t.sub.onTrigger && !(t.sub.flags & 8) && t.sub.onTrigger(
|
|
162
|
-
|
|
162
|
+
Fe(
|
|
163
163
|
{
|
|
164
164
|
effect: t.sub
|
|
165
165
|
},
|
|
@@ -169,331 +169,331 @@ class Je {
|
|
|
169
169
|
for (let t = this.subs; t; t = t.prevSub)
|
|
170
170
|
t.sub.notify() && t.sub.dep.notify();
|
|
171
171
|
} finally {
|
|
172
|
-
|
|
172
|
+
Ze();
|
|
173
173
|
}
|
|
174
174
|
}
|
|
175
175
|
}
|
|
176
|
-
function
|
|
176
|
+
function vn(e) {
|
|
177
177
|
if (e.dep.sc++, e.sub.flags & 4) {
|
|
178
178
|
const n = e.dep.computed;
|
|
179
179
|
if (n && !e.dep.subs) {
|
|
180
180
|
n.flags |= 20;
|
|
181
181
|
for (let o = n.deps; o; o = o.nextDep)
|
|
182
|
-
|
|
182
|
+
vn(o);
|
|
183
183
|
}
|
|
184
184
|
const t = e.dep.subs;
|
|
185
185
|
t !== e && (e.prevSub = t, t && (t.nextSub = e)), process.env.NODE_ENV !== "production" && e.dep.subsHead === void 0 && (e.dep.subsHead = e), e.dep.subs = e;
|
|
186
186
|
}
|
|
187
187
|
}
|
|
188
|
-
const
|
|
188
|
+
const Re = /* @__PURE__ */ new WeakMap(), M = Symbol(
|
|
189
189
|
process.env.NODE_ENV !== "production" ? "Object iterate" : ""
|
|
190
|
-
),
|
|
190
|
+
), ke = Symbol(
|
|
191
191
|
process.env.NODE_ENV !== "production" ? "Map keys iterate" : ""
|
|
192
|
-
),
|
|
192
|
+
), re = Symbol(
|
|
193
193
|
process.env.NODE_ENV !== "production" ? "Array iterate" : ""
|
|
194
194
|
);
|
|
195
|
-
function
|
|
196
|
-
if (
|
|
197
|
-
let o =
|
|
198
|
-
o ||
|
|
195
|
+
function I(e, n, t) {
|
|
196
|
+
if (R && S) {
|
|
197
|
+
let o = Re.get(e);
|
|
198
|
+
o || Re.set(e, o = /* @__PURE__ */ new Map());
|
|
199
199
|
let s = o.get(t);
|
|
200
|
-
s || (o.set(t, s = new
|
|
200
|
+
s || (o.set(t, s = new qe()), s.map = o, s.key = t), process.env.NODE_ENV !== "production" ? s.track({
|
|
201
201
|
target: e,
|
|
202
202
|
type: n,
|
|
203
203
|
key: t
|
|
204
204
|
}) : s.track();
|
|
205
205
|
}
|
|
206
206
|
}
|
|
207
|
-
function
|
|
208
|
-
const
|
|
209
|
-
if (!
|
|
210
|
-
|
|
207
|
+
function V(e, n, t, o, s, a) {
|
|
208
|
+
const c = Re.get(e);
|
|
209
|
+
if (!c) {
|
|
210
|
+
se++;
|
|
211
211
|
return;
|
|
212
212
|
}
|
|
213
|
-
const
|
|
214
|
-
|
|
213
|
+
const g = (v) => {
|
|
214
|
+
v && (process.env.NODE_ENV !== "production" ? v.trigger({
|
|
215
215
|
target: e,
|
|
216
216
|
type: n,
|
|
217
217
|
key: t,
|
|
218
218
|
newValue: o,
|
|
219
219
|
oldValue: s,
|
|
220
|
-
oldTarget:
|
|
221
|
-
}) :
|
|
220
|
+
oldTarget: a
|
|
221
|
+
}) : v.trigger());
|
|
222
222
|
};
|
|
223
|
-
if (
|
|
224
|
-
|
|
223
|
+
if (Ye(), n === "clear")
|
|
224
|
+
c.forEach(g);
|
|
225
225
|
else {
|
|
226
|
-
const
|
|
227
|
-
if (
|
|
228
|
-
const
|
|
229
|
-
|
|
230
|
-
(
|
|
226
|
+
const v = J(e), d = v && Je(t);
|
|
227
|
+
if (v && t === "length") {
|
|
228
|
+
const r = Number(o);
|
|
229
|
+
c.forEach((i, l) => {
|
|
230
|
+
(l === "length" || l === re || !ce(l) && l >= r) && g(i);
|
|
231
231
|
});
|
|
232
232
|
} else
|
|
233
|
-
switch ((t !== void 0 ||
|
|
233
|
+
switch ((t !== void 0 || c.has(void 0)) && g(c.get(t)), d && g(c.get(re)), n) {
|
|
234
234
|
case "add":
|
|
235
|
-
|
|
235
|
+
v ? d && g(c.get("length")) : (g(c.get(M)), ne(e) && g(c.get(ke)));
|
|
236
236
|
break;
|
|
237
237
|
case "delete":
|
|
238
|
-
|
|
238
|
+
v || (g(c.get(M)), ne(e) && g(c.get(ke)));
|
|
239
239
|
break;
|
|
240
240
|
case "set":
|
|
241
|
-
|
|
241
|
+
ne(e) && g(c.get(M));
|
|
242
242
|
break;
|
|
243
243
|
}
|
|
244
244
|
}
|
|
245
|
-
|
|
245
|
+
Ze();
|
|
246
246
|
}
|
|
247
|
-
function
|
|
248
|
-
const n =
|
|
249
|
-
return n === e ? n : (
|
|
247
|
+
function U(e) {
|
|
248
|
+
const n = E(e);
|
|
249
|
+
return n === e ? n : (I(n, "iterate", re), k(e) ? n : n.map(A));
|
|
250
250
|
}
|
|
251
|
-
function
|
|
252
|
-
return
|
|
251
|
+
function Xe(e) {
|
|
252
|
+
return I(e = E(e), "iterate", re), e;
|
|
253
253
|
}
|
|
254
|
-
const
|
|
254
|
+
const ot = {
|
|
255
255
|
__proto__: null,
|
|
256
256
|
[Symbol.iterator]() {
|
|
257
|
-
return
|
|
257
|
+
return Oe(this, Symbol.iterator, A);
|
|
258
258
|
},
|
|
259
259
|
concat(...e) {
|
|
260
|
-
return
|
|
261
|
-
...e.map((n) =>
|
|
260
|
+
return U(this).concat(
|
|
261
|
+
...e.map((n) => J(n) ? U(n) : n)
|
|
262
262
|
);
|
|
263
263
|
},
|
|
264
264
|
entries() {
|
|
265
|
-
return
|
|
265
|
+
return Oe(this, "entries", (e) => (e[1] = A(e[1]), e));
|
|
266
266
|
},
|
|
267
267
|
every(e, n) {
|
|
268
|
-
return
|
|
268
|
+
return P(this, "every", e, n, void 0, arguments);
|
|
269
269
|
},
|
|
270
270
|
filter(e, n) {
|
|
271
|
-
return
|
|
271
|
+
return P(this, "filter", e, n, (t) => t.map(A), arguments);
|
|
272
272
|
},
|
|
273
273
|
find(e, n) {
|
|
274
|
-
return
|
|
274
|
+
return P(this, "find", e, n, A, arguments);
|
|
275
275
|
},
|
|
276
276
|
findIndex(e, n) {
|
|
277
|
-
return
|
|
277
|
+
return P(this, "findIndex", e, n, void 0, arguments);
|
|
278
278
|
},
|
|
279
279
|
findLast(e, n) {
|
|
280
|
-
return
|
|
280
|
+
return P(this, "findLast", e, n, A, arguments);
|
|
281
281
|
},
|
|
282
282
|
findLastIndex(e, n) {
|
|
283
|
-
return
|
|
283
|
+
return P(this, "findLastIndex", e, n, void 0, arguments);
|
|
284
284
|
},
|
|
285
285
|
// flat, flatMap could benefit from ARRAY_ITERATE but are not straight-forward to implement
|
|
286
286
|
forEach(e, n) {
|
|
287
|
-
return
|
|
287
|
+
return P(this, "forEach", e, n, void 0, arguments);
|
|
288
288
|
},
|
|
289
289
|
includes(...e) {
|
|
290
|
-
return
|
|
290
|
+
return Ae(this, "includes", e);
|
|
291
291
|
},
|
|
292
292
|
indexOf(...e) {
|
|
293
|
-
return
|
|
293
|
+
return Ae(this, "indexOf", e);
|
|
294
294
|
},
|
|
295
295
|
join(e) {
|
|
296
|
-
return
|
|
296
|
+
return U(this).join(e);
|
|
297
297
|
},
|
|
298
298
|
// keys() iterator only reads `length`, no optimisation required
|
|
299
299
|
lastIndexOf(...e) {
|
|
300
|
-
return
|
|
300
|
+
return Ae(this, "lastIndexOf", e);
|
|
301
301
|
},
|
|
302
302
|
map(e, n) {
|
|
303
|
-
return
|
|
303
|
+
return P(this, "map", e, n, void 0, arguments);
|
|
304
304
|
},
|
|
305
305
|
pop() {
|
|
306
|
-
return
|
|
306
|
+
return ee(this, "pop");
|
|
307
307
|
},
|
|
308
308
|
push(...e) {
|
|
309
|
-
return
|
|
309
|
+
return ee(this, "push", e);
|
|
310
310
|
},
|
|
311
311
|
reduce(e, ...n) {
|
|
312
|
-
return
|
|
312
|
+
return an(this, "reduce", e, n);
|
|
313
313
|
},
|
|
314
314
|
reduceRight(e, ...n) {
|
|
315
|
-
return
|
|
315
|
+
return an(this, "reduceRight", e, n);
|
|
316
316
|
},
|
|
317
317
|
shift() {
|
|
318
|
-
return
|
|
318
|
+
return ee(this, "shift");
|
|
319
319
|
},
|
|
320
320
|
// slice could use ARRAY_ITERATE but also seems to beg for range tracking
|
|
321
321
|
some(e, n) {
|
|
322
|
-
return
|
|
322
|
+
return P(this, "some", e, n, void 0, arguments);
|
|
323
323
|
},
|
|
324
324
|
splice(...e) {
|
|
325
|
-
return
|
|
325
|
+
return ee(this, "splice", e);
|
|
326
326
|
},
|
|
327
327
|
toReversed() {
|
|
328
|
-
return
|
|
328
|
+
return U(this).toReversed();
|
|
329
329
|
},
|
|
330
330
|
toSorted(e) {
|
|
331
|
-
return
|
|
331
|
+
return U(this).toSorted(e);
|
|
332
332
|
},
|
|
333
333
|
toSpliced(...e) {
|
|
334
|
-
return
|
|
334
|
+
return U(this).toSpliced(...e);
|
|
335
335
|
},
|
|
336
336
|
unshift(...e) {
|
|
337
|
-
return
|
|
337
|
+
return ee(this, "unshift", e);
|
|
338
338
|
},
|
|
339
339
|
values() {
|
|
340
|
-
return
|
|
340
|
+
return Oe(this, "values", A);
|
|
341
341
|
}
|
|
342
342
|
};
|
|
343
|
-
function
|
|
344
|
-
const o =
|
|
345
|
-
return o !== e && !
|
|
346
|
-
const
|
|
347
|
-
return
|
|
343
|
+
function Oe(e, n, t) {
|
|
344
|
+
const o = Xe(e), s = o[n]();
|
|
345
|
+
return o !== e && !k(e) && (s._next = s.next, s.next = () => {
|
|
346
|
+
const a = s._next();
|
|
347
|
+
return a.value && (a.value = t(a.value)), a;
|
|
348
348
|
}), s;
|
|
349
349
|
}
|
|
350
|
-
const
|
|
351
|
-
function
|
|
352
|
-
const
|
|
353
|
-
if (
|
|
354
|
-
const i =
|
|
355
|
-
return
|
|
356
|
-
}
|
|
357
|
-
let
|
|
358
|
-
|
|
359
|
-
return t.call(this,
|
|
360
|
-
} : t.length > 2 && (
|
|
361
|
-
return t.call(this, i,
|
|
350
|
+
const st = Array.prototype;
|
|
351
|
+
function P(e, n, t, o, s, a) {
|
|
352
|
+
const c = Xe(e), g = c !== e && !k(e), v = c[n];
|
|
353
|
+
if (v !== st[n]) {
|
|
354
|
+
const i = v.apply(e, a);
|
|
355
|
+
return g ? A(i) : i;
|
|
356
|
+
}
|
|
357
|
+
let d = t;
|
|
358
|
+
c !== e && (g ? d = function(i, l) {
|
|
359
|
+
return t.call(this, A(i), l, e);
|
|
360
|
+
} : t.length > 2 && (d = function(i, l) {
|
|
361
|
+
return t.call(this, i, l, e);
|
|
362
362
|
}));
|
|
363
|
-
const
|
|
364
|
-
return
|
|
365
|
-
}
|
|
366
|
-
function
|
|
367
|
-
const s =
|
|
368
|
-
let
|
|
369
|
-
return s !== e && (
|
|
370
|
-
return t.call(this,
|
|
371
|
-
}) :
|
|
372
|
-
return t.call(this,
|
|
373
|
-
}), s[n](
|
|
374
|
-
}
|
|
375
|
-
function
|
|
376
|
-
const o =
|
|
377
|
-
|
|
363
|
+
const r = v.call(c, d, o);
|
|
364
|
+
return g && s ? s(r) : r;
|
|
365
|
+
}
|
|
366
|
+
function an(e, n, t, o) {
|
|
367
|
+
const s = Xe(e);
|
|
368
|
+
let a = t;
|
|
369
|
+
return s !== e && (k(e) ? t.length > 3 && (a = function(c, g, v) {
|
|
370
|
+
return t.call(this, c, g, v, e);
|
|
371
|
+
}) : a = function(c, g, v) {
|
|
372
|
+
return t.call(this, c, A(g), v, e);
|
|
373
|
+
}), s[n](a, ...o);
|
|
374
|
+
}
|
|
375
|
+
function Ae(e, n, t) {
|
|
376
|
+
const o = E(e);
|
|
377
|
+
I(o, "iterate", re);
|
|
378
378
|
const s = o[n](...t);
|
|
379
|
-
return (s === -1 || s === !1) &&
|
|
379
|
+
return (s === -1 || s === !1) && Ct(t[0]) ? (t[0] = E(t[0]), o[n](...t)) : s;
|
|
380
380
|
}
|
|
381
|
-
function
|
|
382
|
-
|
|
383
|
-
const o =
|
|
384
|
-
return
|
|
381
|
+
function ee(e, n, t = []) {
|
|
382
|
+
et(), Ye();
|
|
383
|
+
const o = E(e)[n].apply(e, t);
|
|
384
|
+
return Ze(), nt(), o;
|
|
385
385
|
}
|
|
386
|
-
const
|
|
387
|
-
/* @__PURE__ */ Object.getOwnPropertyNames(Symbol).filter((e) => e !== "arguments" && e !== "caller").map((e) => Symbol[e]).filter(
|
|
386
|
+
const rt = /* @__PURE__ */ Kn("__proto__,__v_isRef,__isVue"), _n = new Set(
|
|
387
|
+
/* @__PURE__ */ Object.getOwnPropertyNames(Symbol).filter((e) => e !== "arguments" && e !== "caller").map((e) => Symbol[e]).filter(ce)
|
|
388
388
|
);
|
|
389
|
-
function
|
|
390
|
-
|
|
391
|
-
const n =
|
|
392
|
-
return
|
|
389
|
+
function at(e) {
|
|
390
|
+
ce(e) || (e = String(e));
|
|
391
|
+
const n = E(this);
|
|
392
|
+
return I(n, "has", e), n.hasOwnProperty(e);
|
|
393
393
|
}
|
|
394
|
-
class
|
|
394
|
+
class Cn {
|
|
395
395
|
constructor(n = !1, t = !1) {
|
|
396
396
|
this._isReadonly = n, this._isShallow = t;
|
|
397
397
|
}
|
|
398
398
|
get(n, t, o) {
|
|
399
399
|
if (t === "__v_skip") return n.__v_skip;
|
|
400
|
-
const s = this._isReadonly,
|
|
400
|
+
const s = this._isReadonly, a = this._isShallow;
|
|
401
401
|
if (t === "__v_isReactive")
|
|
402
402
|
return !s;
|
|
403
403
|
if (t === "__v_isReadonly")
|
|
404
404
|
return s;
|
|
405
405
|
if (t === "__v_isShallow")
|
|
406
|
-
return
|
|
406
|
+
return a;
|
|
407
407
|
if (t === "__v_raw")
|
|
408
|
-
return o === (s ?
|
|
408
|
+
return o === (s ? a ? Nn : wn : a ? gt : bn).get(n) || // receiver is not the reactive proxy, but has the same prototype
|
|
409
409
|
// this means the receiver is a user proxy of the reactive proxy
|
|
410
410
|
Object.getPrototypeOf(n) === Object.getPrototypeOf(o) ? n : void 0;
|
|
411
|
-
const
|
|
411
|
+
const c = J(n);
|
|
412
412
|
if (!s) {
|
|
413
|
-
let
|
|
414
|
-
if (
|
|
415
|
-
return
|
|
413
|
+
let v;
|
|
414
|
+
if (c && (v = ot[t]))
|
|
415
|
+
return v;
|
|
416
416
|
if (t === "hasOwnProperty")
|
|
417
|
-
return
|
|
417
|
+
return at;
|
|
418
418
|
}
|
|
419
|
-
const
|
|
419
|
+
const g = Reflect.get(
|
|
420
420
|
n,
|
|
421
421
|
t,
|
|
422
422
|
// if this is a proxy wrapping a ref, return methods using the raw ref
|
|
423
423
|
// as receiver so that we don't have to call `toRaw` on the ref in all
|
|
424
424
|
// its class methods
|
|
425
|
-
|
|
425
|
+
Z(n) ? n : o
|
|
426
426
|
);
|
|
427
|
-
return (
|
|
427
|
+
return (ce(t) ? _n.has(t) : rt(t)) || (s || I(n, "get", t), a) ? g : Z(g) ? c && Je(t) ? g : g.value : ye(g) ? s ? he(g) : yn(g) : g;
|
|
428
428
|
}
|
|
429
429
|
}
|
|
430
|
-
class
|
|
430
|
+
class it extends Cn {
|
|
431
431
|
constructor(n = !1) {
|
|
432
432
|
super(!1, n);
|
|
433
433
|
}
|
|
434
434
|
set(n, t, o, s) {
|
|
435
|
-
let
|
|
435
|
+
let a = n[t];
|
|
436
436
|
if (!this._isShallow) {
|
|
437
|
-
const
|
|
438
|
-
if (!
|
|
439
|
-
return
|
|
437
|
+
const v = Q(a);
|
|
438
|
+
if (!k(o) && !Q(o) && (a = E(a), o = E(o)), !J(n) && Z(a) && !Z(o))
|
|
439
|
+
return v ? !1 : (a.value = o, !0);
|
|
440
440
|
}
|
|
441
|
-
const
|
|
441
|
+
const c = J(n) && Je(t) ? Number(t) < n.length : Ve(n, t), g = Reflect.set(
|
|
442
442
|
n,
|
|
443
443
|
t,
|
|
444
444
|
o,
|
|
445
|
-
|
|
445
|
+
Z(n) ? n : s
|
|
446
446
|
);
|
|
447
|
-
return n ===
|
|
447
|
+
return n === E(s) && (c ? Y(o, a) && V(n, "set", t, o, a) : V(n, "add", t, o)), g;
|
|
448
448
|
}
|
|
449
449
|
deleteProperty(n, t) {
|
|
450
|
-
const o =
|
|
451
|
-
return
|
|
450
|
+
const o = Ve(n, t), s = n[t], a = Reflect.deleteProperty(n, t);
|
|
451
|
+
return a && o && V(n, "delete", t, void 0, s), a;
|
|
452
452
|
}
|
|
453
453
|
has(n, t) {
|
|
454
454
|
const o = Reflect.has(n, t);
|
|
455
|
-
return (!
|
|
455
|
+
return (!ce(t) || !_n.has(t)) && I(n, "has", t), o;
|
|
456
456
|
}
|
|
457
457
|
ownKeys(n) {
|
|
458
|
-
return
|
|
458
|
+
return I(
|
|
459
459
|
n,
|
|
460
460
|
"iterate",
|
|
461
|
-
|
|
461
|
+
J(n) ? "length" : M
|
|
462
462
|
), Reflect.ownKeys(n);
|
|
463
463
|
}
|
|
464
464
|
}
|
|
465
|
-
class
|
|
465
|
+
class $n extends Cn {
|
|
466
466
|
constructor(n = !1) {
|
|
467
467
|
super(!0, n);
|
|
468
468
|
}
|
|
469
469
|
set(n, t) {
|
|
470
|
-
return process.env.NODE_ENV !== "production" &&
|
|
470
|
+
return process.env.NODE_ENV !== "production" && X(
|
|
471
471
|
`Set operation on key "${String(t)}" failed: target is readonly.`,
|
|
472
472
|
n
|
|
473
473
|
), !0;
|
|
474
474
|
}
|
|
475
475
|
deleteProperty(n, t) {
|
|
476
|
-
return process.env.NODE_ENV !== "production" &&
|
|
476
|
+
return process.env.NODE_ENV !== "production" && X(
|
|
477
477
|
`Delete operation on key "${String(t)}" failed: target is readonly.`,
|
|
478
478
|
n
|
|
479
479
|
), !0;
|
|
480
480
|
}
|
|
481
481
|
}
|
|
482
|
-
const
|
|
483
|
-
function
|
|
482
|
+
const ct = /* @__PURE__ */ new it(), ut = /* @__PURE__ */ new $n(), lt = /* @__PURE__ */ new $n(!0), He = (e) => e, le = (e) => Reflect.getPrototypeOf(e);
|
|
483
|
+
function pt(e, n, t) {
|
|
484
484
|
return function(...o) {
|
|
485
|
-
const s = this.__v_raw,
|
|
486
|
-
return !n &&
|
|
487
|
-
|
|
485
|
+
const s = this.__v_raw, a = E(s), c = ne(a), g = e === "entries" || e === Symbol.iterator && c, v = e === "keys" && c, d = s[e](...o), r = t ? He : n ? Me : A;
|
|
486
|
+
return !n && I(
|
|
487
|
+
a,
|
|
488
488
|
"iterate",
|
|
489
|
-
|
|
489
|
+
v ? ke : M
|
|
490
490
|
), {
|
|
491
491
|
// iterator protocol
|
|
492
492
|
next() {
|
|
493
|
-
const { value: i, done:
|
|
494
|
-
return
|
|
495
|
-
value:
|
|
496
|
-
done:
|
|
493
|
+
const { value: i, done: l } = d.next();
|
|
494
|
+
return l ? { value: i, done: l } : {
|
|
495
|
+
value: g ? [r(i[0]), r(i[1])] : r(i),
|
|
496
|
+
done: l
|
|
497
497
|
};
|
|
498
498
|
},
|
|
499
499
|
// iterable protocol
|
|
@@ -503,80 +503,80 @@ function ct(e, n, t) {
|
|
|
503
503
|
};
|
|
504
504
|
};
|
|
505
505
|
}
|
|
506
|
-
function
|
|
506
|
+
function pe(e) {
|
|
507
507
|
return function(...n) {
|
|
508
508
|
if (process.env.NODE_ENV !== "production") {
|
|
509
509
|
const t = n[0] ? `on key "${n[0]}" ` : "";
|
|
510
|
-
|
|
511
|
-
`${
|
|
512
|
-
|
|
510
|
+
X(
|
|
511
|
+
`${Jn(e)} operation ${t}failed: target is readonly.`,
|
|
512
|
+
E(this)
|
|
513
513
|
);
|
|
514
514
|
}
|
|
515
515
|
return e === "delete" ? !1 : e === "clear" ? void 0 : this;
|
|
516
516
|
};
|
|
517
517
|
}
|
|
518
|
-
function
|
|
518
|
+
function dt(e, n) {
|
|
519
519
|
const t = {
|
|
520
520
|
get(s) {
|
|
521
|
-
const
|
|
522
|
-
e || (
|
|
523
|
-
const { has:
|
|
524
|
-
if (
|
|
525
|
-
return
|
|
526
|
-
if (
|
|
527
|
-
return
|
|
528
|
-
|
|
521
|
+
const a = this.__v_raw, c = E(a), g = E(s);
|
|
522
|
+
e || (Y(s, g) && I(c, "get", s), I(c, "get", g));
|
|
523
|
+
const { has: v } = le(c), d = n ? He : e ? Me : A;
|
|
524
|
+
if (v.call(c, s))
|
|
525
|
+
return d(a.get(s));
|
|
526
|
+
if (v.call(c, g))
|
|
527
|
+
return d(a.get(g));
|
|
528
|
+
a !== c && a.get(s);
|
|
529
529
|
},
|
|
530
530
|
get size() {
|
|
531
531
|
const s = this.__v_raw;
|
|
532
|
-
return !e &&
|
|
532
|
+
return !e && I(E(s), "iterate", M), Reflect.get(s, "size", s);
|
|
533
533
|
},
|
|
534
534
|
has(s) {
|
|
535
|
-
const
|
|
536
|
-
return e || (
|
|
535
|
+
const a = this.__v_raw, c = E(a), g = E(s);
|
|
536
|
+
return e || (Y(s, g) && I(c, "has", s), I(c, "has", g)), s === g ? a.has(s) : a.has(s) || a.has(g);
|
|
537
537
|
},
|
|
538
|
-
forEach(s,
|
|
539
|
-
const
|
|
540
|
-
return !e &&
|
|
538
|
+
forEach(s, a) {
|
|
539
|
+
const c = this, g = c.__v_raw, v = E(g), d = n ? He : e ? Me : A;
|
|
540
|
+
return !e && I(v, "iterate", M), g.forEach((r, i) => s.call(a, d(r), d(i), c));
|
|
541
541
|
}
|
|
542
542
|
};
|
|
543
|
-
return
|
|
543
|
+
return Fe(
|
|
544
544
|
t,
|
|
545
545
|
e ? {
|
|
546
|
-
add:
|
|
547
|
-
set:
|
|
548
|
-
delete:
|
|
549
|
-
clear:
|
|
546
|
+
add: pe("add"),
|
|
547
|
+
set: pe("set"),
|
|
548
|
+
delete: pe("delete"),
|
|
549
|
+
clear: pe("clear")
|
|
550
550
|
} : {
|
|
551
551
|
add(s) {
|
|
552
|
-
!n && !
|
|
553
|
-
const
|
|
554
|
-
return
|
|
552
|
+
!n && !k(s) && !Q(s) && (s = E(s));
|
|
553
|
+
const a = E(this);
|
|
554
|
+
return le(a).has.call(a, s) || (a.add(s), V(a, "add", s, s)), this;
|
|
555
555
|
},
|
|
556
|
-
set(s,
|
|
557
|
-
!n && !
|
|
558
|
-
const
|
|
559
|
-
let
|
|
560
|
-
|
|
561
|
-
const
|
|
562
|
-
return
|
|
556
|
+
set(s, a) {
|
|
557
|
+
!n && !k(a) && !Q(a) && (a = E(a));
|
|
558
|
+
const c = E(this), { has: g, get: v } = le(c);
|
|
559
|
+
let d = g.call(c, s);
|
|
560
|
+
d ? process.env.NODE_ENV !== "production" && cn(c, g, s) : (s = E(s), d = g.call(c, s));
|
|
561
|
+
const r = v.call(c, s);
|
|
562
|
+
return c.set(s, a), d ? Y(a, r) && V(c, "set", s, a, r) : V(c, "add", s, a), this;
|
|
563
563
|
},
|
|
564
564
|
delete(s) {
|
|
565
|
-
const
|
|
566
|
-
let
|
|
567
|
-
|
|
568
|
-
const
|
|
569
|
-
return
|
|
565
|
+
const a = E(this), { has: c, get: g } = le(a);
|
|
566
|
+
let v = c.call(a, s);
|
|
567
|
+
v ? process.env.NODE_ENV !== "production" && cn(a, c, s) : (s = E(s), v = c.call(a, s));
|
|
568
|
+
const d = g ? g.call(a, s) : void 0, r = a.delete(s);
|
|
569
|
+
return v && V(a, "delete", s, void 0, d), r;
|
|
570
570
|
},
|
|
571
571
|
clear() {
|
|
572
|
-
const s =
|
|
573
|
-
return
|
|
572
|
+
const s = E(this), a = s.size !== 0, c = process.env.NODE_ENV !== "production" ? ne(s) ? new Map(s) : new Set(s) : void 0, g = s.clear();
|
|
573
|
+
return a && V(
|
|
574
574
|
s,
|
|
575
575
|
"clear",
|
|
576
576
|
void 0,
|
|
577
577
|
void 0,
|
|
578
|
-
|
|
579
|
-
),
|
|
578
|
+
c
|
|
579
|
+
), g;
|
|
580
580
|
}
|
|
581
581
|
}
|
|
582
582
|
), [
|
|
@@ -585,35 +585,35 @@ function ut(e, n) {
|
|
|
585
585
|
"entries",
|
|
586
586
|
Symbol.iterator
|
|
587
587
|
].forEach((s) => {
|
|
588
|
-
t[s] =
|
|
588
|
+
t[s] = pt(s, e, n);
|
|
589
589
|
}), t;
|
|
590
590
|
}
|
|
591
|
-
function
|
|
592
|
-
const t =
|
|
593
|
-
return (o, s,
|
|
594
|
-
|
|
591
|
+
function Qe(e, n) {
|
|
592
|
+
const t = dt(e, n);
|
|
593
|
+
return (o, s, a) => s === "__v_isReactive" ? !e : s === "__v_isReadonly" ? e : s === "__v_raw" ? o : Reflect.get(
|
|
594
|
+
Ve(t, s) && s in o ? t : o,
|
|
595
595
|
s,
|
|
596
|
-
|
|
596
|
+
a
|
|
597
597
|
);
|
|
598
598
|
}
|
|
599
|
-
const
|
|
600
|
-
get: /* @__PURE__ */
|
|
601
|
-
},
|
|
602
|
-
get: /* @__PURE__ */
|
|
603
|
-
},
|
|
604
|
-
get: /* @__PURE__ */
|
|
599
|
+
const ft = {
|
|
600
|
+
get: /* @__PURE__ */ Qe(!1, !1)
|
|
601
|
+
}, mt = {
|
|
602
|
+
get: /* @__PURE__ */ Qe(!0, !1)
|
|
603
|
+
}, ht = {
|
|
604
|
+
get: /* @__PURE__ */ Qe(!0, !0)
|
|
605
605
|
};
|
|
606
|
-
function
|
|
607
|
-
const o =
|
|
606
|
+
function cn(e, n, t) {
|
|
607
|
+
const o = E(t);
|
|
608
608
|
if (o !== t && n.call(e, o)) {
|
|
609
|
-
const s =
|
|
610
|
-
|
|
609
|
+
const s = dn(e);
|
|
610
|
+
X(
|
|
611
611
|
`Reactive ${s} contains both the raw and reactive versions of the same object${s === "Map" ? " as keys" : ""}, which can lead to inconsistencies. Avoid differentiating between the raw and reactive versions of an object and only use the reactive version if possible.`
|
|
612
612
|
);
|
|
613
613
|
}
|
|
614
614
|
}
|
|
615
|
-
const
|
|
616
|
-
function
|
|
615
|
+
const bn = /* @__PURE__ */ new WeakMap(), gt = /* @__PURE__ */ new WeakMap(), wn = /* @__PURE__ */ new WeakMap(), Nn = /* @__PURE__ */ new WeakMap();
|
|
616
|
+
function vt(e) {
|
|
617
617
|
switch (e) {
|
|
618
618
|
case "Object":
|
|
619
619
|
case "Array":
|
|
@@ -627,83 +627,83 @@ function mt(e) {
|
|
|
627
627
|
return 0;
|
|
628
628
|
}
|
|
629
629
|
}
|
|
630
|
-
function
|
|
631
|
-
return e.__v_skip || !Object.isExtensible(e) ? 0 :
|
|
630
|
+
function _t(e) {
|
|
631
|
+
return e.__v_skip || !Object.isExtensible(e) ? 0 : vt(dn(e));
|
|
632
632
|
}
|
|
633
|
-
function
|
|
634
|
-
return
|
|
633
|
+
function yn(e) {
|
|
634
|
+
return Q(e) ? e : en(
|
|
635
635
|
e,
|
|
636
636
|
!1,
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
637
|
+
ct,
|
|
638
|
+
ft,
|
|
639
|
+
bn
|
|
640
640
|
);
|
|
641
641
|
}
|
|
642
|
-
function
|
|
643
|
-
return
|
|
642
|
+
function he(e) {
|
|
643
|
+
return en(
|
|
644
644
|
e,
|
|
645
645
|
!0,
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
646
|
+
ut,
|
|
647
|
+
mt,
|
|
648
|
+
wn
|
|
649
649
|
);
|
|
650
650
|
}
|
|
651
|
-
function
|
|
652
|
-
return
|
|
651
|
+
function fe(e) {
|
|
652
|
+
return en(
|
|
653
653
|
e,
|
|
654
654
|
!0,
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
655
|
+
lt,
|
|
656
|
+
ht,
|
|
657
|
+
Nn
|
|
658
658
|
);
|
|
659
659
|
}
|
|
660
|
-
function
|
|
661
|
-
if (!
|
|
662
|
-
return process.env.NODE_ENV !== "production" &&
|
|
660
|
+
function en(e, n, t, o, s) {
|
|
661
|
+
if (!ye(e))
|
|
662
|
+
return process.env.NODE_ENV !== "production" && X(
|
|
663
663
|
`value cannot be made ${n ? "readonly" : "reactive"}: ${String(
|
|
664
664
|
e
|
|
665
665
|
)}`
|
|
666
666
|
), e;
|
|
667
667
|
if (e.__v_raw && !(n && e.__v_isReactive))
|
|
668
668
|
return e;
|
|
669
|
-
const
|
|
670
|
-
if (
|
|
671
|
-
return
|
|
672
|
-
const
|
|
673
|
-
if (
|
|
669
|
+
const a = s.get(e);
|
|
670
|
+
if (a)
|
|
671
|
+
return a;
|
|
672
|
+
const c = _t(e);
|
|
673
|
+
if (c === 0)
|
|
674
674
|
return e;
|
|
675
|
-
const
|
|
675
|
+
const g = new Proxy(
|
|
676
676
|
e,
|
|
677
|
-
|
|
677
|
+
c === 2 ? o : t
|
|
678
678
|
);
|
|
679
|
-
return s.set(e,
|
|
679
|
+
return s.set(e, g), g;
|
|
680
680
|
}
|
|
681
|
-
function
|
|
681
|
+
function Q(e) {
|
|
682
682
|
return !!(e && e.__v_isReadonly);
|
|
683
683
|
}
|
|
684
|
-
function
|
|
684
|
+
function k(e) {
|
|
685
685
|
return !!(e && e.__v_isShallow);
|
|
686
686
|
}
|
|
687
|
-
function
|
|
687
|
+
function Ct(e) {
|
|
688
688
|
return e ? !!e.__v_raw : !1;
|
|
689
689
|
}
|
|
690
|
-
function
|
|
690
|
+
function E(e) {
|
|
691
691
|
const n = e && e.__v_raw;
|
|
692
|
-
return n ?
|
|
692
|
+
return n ? E(n) : e;
|
|
693
693
|
}
|
|
694
|
-
const
|
|
695
|
-
function
|
|
694
|
+
const A = (e) => ye(e) ? yn(e) : e, Me = (e) => ye(e) ? he(e) : e;
|
|
695
|
+
function Z(e) {
|
|
696
696
|
return e ? e.__v_isRef === !0 : !1;
|
|
697
697
|
}
|
|
698
|
-
function
|
|
699
|
-
return
|
|
698
|
+
function ge(e) {
|
|
699
|
+
return $t(e, !1);
|
|
700
700
|
}
|
|
701
|
-
function
|
|
702
|
-
return
|
|
701
|
+
function $t(e, n) {
|
|
702
|
+
return Z(e) ? e : new bt(e, n);
|
|
703
703
|
}
|
|
704
|
-
class
|
|
704
|
+
class bt {
|
|
705
705
|
constructor(n, t) {
|
|
706
|
-
this.dep = new
|
|
706
|
+
this.dep = new qe(), this.__v_isRef = !0, this.__v_isShallow = !1, this._rawValue = t ? n : E(n), this._value = t ? n : A(n), this.__v_isShallow = t;
|
|
707
707
|
}
|
|
708
708
|
get value() {
|
|
709
709
|
return process.env.NODE_ENV !== "production" ? this.dep.track({
|
|
@@ -713,8 +713,8 @@ class _t {
|
|
|
713
713
|
}) : this.dep.track(), this._value;
|
|
714
714
|
}
|
|
715
715
|
set value(n) {
|
|
716
|
-
const t = this._rawValue, o = this.__v_isShallow ||
|
|
717
|
-
n = o ? n :
|
|
716
|
+
const t = this._rawValue, o = this.__v_isShallow || k(n) || Q(n);
|
|
717
|
+
n = o ? n : E(n), Y(n, t) && (this._rawValue = n, this._value = o ? n : A(n), process.env.NODE_ENV !== "production" ? this.dep.trigger({
|
|
718
718
|
target: this,
|
|
719
719
|
type: "set",
|
|
720
720
|
key: "value",
|
|
@@ -723,17 +723,17 @@ class _t {
|
|
|
723
723
|
}) : this.dep.trigger());
|
|
724
724
|
}
|
|
725
725
|
}
|
|
726
|
-
class
|
|
726
|
+
class wt {
|
|
727
727
|
constructor(n, t, o) {
|
|
728
|
-
this.fn = n, this.setter = t, this._value = void 0, this.dep = new
|
|
728
|
+
this.fn = n, this.setter = t, this._value = void 0, this.dep = new qe(this), this.__v_isRef = !0, this.deps = void 0, this.depsTail = void 0, this.flags = 16, this.globalVersion = se - 1, this.next = void 0, this.effect = this, this.__v_isReadonly = !t, this.isSSR = o;
|
|
729
729
|
}
|
|
730
730
|
/**
|
|
731
731
|
* @internal
|
|
732
732
|
*/
|
|
733
733
|
notify() {
|
|
734
734
|
if (this.flags |= 16, !(this.flags & 8) && // avoid infinite self recursion
|
|
735
|
-
|
|
736
|
-
return
|
|
735
|
+
S !== this)
|
|
736
|
+
return Yn(this, !0), !0;
|
|
737
737
|
process.env.NODE_ENV;
|
|
738
738
|
}
|
|
739
739
|
get value() {
|
|
@@ -742,83 +742,83 @@ class Ct {
|
|
|
742
742
|
type: "get",
|
|
743
743
|
key: "value"
|
|
744
744
|
}) : this.dep.track();
|
|
745
|
-
return
|
|
745
|
+
return mn(this), n && (n.version = this.dep.version), this._value;
|
|
746
746
|
}
|
|
747
747
|
set value(n) {
|
|
748
|
-
this.setter ? this.setter(n) : process.env.NODE_ENV !== "production" &&
|
|
748
|
+
this.setter ? this.setter(n) : process.env.NODE_ENV !== "production" && X("Write operation failed: computed value is readonly");
|
|
749
749
|
}
|
|
750
750
|
}
|
|
751
|
-
function
|
|
751
|
+
function Le(e, n, t = !1) {
|
|
752
752
|
let o, s;
|
|
753
|
-
|
|
754
|
-
const
|
|
755
|
-
return process.env.NODE_ENV,
|
|
753
|
+
Bn(e) ? o = e : (o = e.get, s = e.set);
|
|
754
|
+
const a = new wt(o, s, t);
|
|
755
|
+
return process.env.NODE_ENV, a;
|
|
756
756
|
}
|
|
757
|
-
const
|
|
758
|
-
let
|
|
757
|
+
const Nt = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";
|
|
758
|
+
let yt = (e = 21) => {
|
|
759
759
|
let n = "", t = crypto.getRandomValues(new Uint8Array(e |= 0));
|
|
760
760
|
for (; e--; )
|
|
761
|
-
n +=
|
|
761
|
+
n += Nt[t[e] & 63];
|
|
762
762
|
return n;
|
|
763
763
|
};
|
|
764
|
-
function
|
|
765
|
-
const o =
|
|
764
|
+
function Et(e, n = !0, t = !1) {
|
|
765
|
+
const o = ge();
|
|
766
766
|
let s;
|
|
767
|
-
const
|
|
768
|
-
let
|
|
767
|
+
const a = ge(!1);
|
|
768
|
+
let c = () => {
|
|
769
769
|
};
|
|
770
|
-
const
|
|
771
|
-
apply: function(
|
|
772
|
-
let
|
|
770
|
+
const g = new Proxy(e, {
|
|
771
|
+
apply: function(r, i, l) {
|
|
772
|
+
let m;
|
|
773
773
|
try {
|
|
774
|
-
|
|
775
|
-
} catch (
|
|
776
|
-
|
|
774
|
+
m = r(...l);
|
|
775
|
+
} catch (C) {
|
|
776
|
+
m = C;
|
|
777
777
|
}
|
|
778
|
-
if (
|
|
779
|
-
if (o.value =
|
|
780
|
-
throw
|
|
778
|
+
if (m instanceof Error) {
|
|
779
|
+
if (o.value = m, s = m, n)
|
|
780
|
+
throw c(), m;
|
|
781
781
|
} else
|
|
782
|
-
|
|
782
|
+
a.value = !0, o.value = void 0, s = !0, c();
|
|
783
783
|
}
|
|
784
|
-
}),
|
|
785
|
-
},
|
|
786
|
-
(
|
|
787
|
-
o.value =
|
|
784
|
+
}), v = () => {
|
|
785
|
+
}, d = new Proxy(
|
|
786
|
+
(r) => {
|
|
787
|
+
o.value = r;
|
|
788
788
|
},
|
|
789
789
|
{
|
|
790
|
-
apply: function(
|
|
791
|
-
|
|
790
|
+
apply: function(r, i, l) {
|
|
791
|
+
r(...l), v(...l);
|
|
792
792
|
}
|
|
793
793
|
}
|
|
794
794
|
);
|
|
795
795
|
return {
|
|
796
|
-
promise: new Promise((
|
|
796
|
+
promise: new Promise((r, i) => {
|
|
797
797
|
if (n && s instanceof Error) {
|
|
798
798
|
i(s);
|
|
799
799
|
return;
|
|
800
800
|
} else if (s === !0) {
|
|
801
|
-
|
|
801
|
+
r();
|
|
802
802
|
return;
|
|
803
803
|
}
|
|
804
|
-
let
|
|
805
|
-
t && (
|
|
806
|
-
const
|
|
807
|
-
o.value =
|
|
808
|
-
}, t)),
|
|
809
|
-
|
|
804
|
+
let l;
|
|
805
|
+
t && (l = setTimeout(() => {
|
|
806
|
+
const m = new Error("timeout!");
|
|
807
|
+
o.value = m, n && i(m);
|
|
808
|
+
}, t)), c = () => {
|
|
809
|
+
l && (clearTimeout(l), l = void 0), r();
|
|
810
810
|
};
|
|
811
811
|
}),
|
|
812
|
-
callback:
|
|
813
|
-
onError:
|
|
814
|
-
resolved:
|
|
815
|
-
error:
|
|
812
|
+
callback: g,
|
|
813
|
+
onError: d,
|
|
814
|
+
resolved: Le(() => a.value),
|
|
815
|
+
error: Le(() => o.value)
|
|
816
816
|
};
|
|
817
817
|
}
|
|
818
|
-
function
|
|
819
|
-
return
|
|
818
|
+
function Ke() {
|
|
819
|
+
return yt();
|
|
820
820
|
}
|
|
821
|
-
function
|
|
821
|
+
function St() {
|
|
822
822
|
const e = {}, n = {}, t = /* @__PURE__ */ new WeakMap(), o = {};
|
|
823
823
|
return Object.freeze({
|
|
824
824
|
registerAgg(s) {
|
|
@@ -829,32 +829,32 @@ function wt() {
|
|
|
829
829
|
s.type === "MultiInstance" && s.api.events.destroyed.watchPublish(() => {
|
|
830
830
|
delete o[s.__id];
|
|
831
831
|
}), o[s.__id] = s;
|
|
832
|
-
const
|
|
833
|
-
for (const
|
|
834
|
-
|
|
835
|
-
for (const
|
|
836
|
-
|
|
837
|
-
t.set(s,
|
|
832
|
+
const a = [];
|
|
833
|
+
for (const c of Object.values(e))
|
|
834
|
+
c.mount({ api: s.api, __aggId: s.__id, isInitialized: s.isInitialized });
|
|
835
|
+
for (const c of Object.values(n))
|
|
836
|
+
c.mount({ api: s.api, __aggId: s.__id }), a.push(c.__id);
|
|
837
|
+
t.set(s, a);
|
|
838
838
|
},
|
|
839
839
|
createSetupPlugin(s) {
|
|
840
|
-
let
|
|
841
|
-
return s instanceof Function ?
|
|
842
|
-
__id:
|
|
840
|
+
let a;
|
|
841
|
+
return s instanceof Function ? a = s() : a = s, Object.freeze({
|
|
842
|
+
__id: Ke(),
|
|
843
843
|
type: "Setup",
|
|
844
|
-
mount(
|
|
845
|
-
if (
|
|
844
|
+
mount(c) {
|
|
845
|
+
if (c.isInitialized.value)
|
|
846
846
|
throw new Error("Can not setup after initialized");
|
|
847
|
-
|
|
847
|
+
a.mount({ api: c.api, __aggId: c.__aggId });
|
|
848
848
|
}
|
|
849
849
|
});
|
|
850
850
|
},
|
|
851
851
|
createHotSwapPlugin(s) {
|
|
852
|
-
let
|
|
853
|
-
return s instanceof Function ?
|
|
854
|
-
__id:
|
|
852
|
+
let a;
|
|
853
|
+
return s instanceof Function ? a = s() : a = s, Object.freeze({
|
|
854
|
+
__id: Ke(),
|
|
855
855
|
type: "HotSwap",
|
|
856
|
-
mount:
|
|
857
|
-
unmount:
|
|
856
|
+
mount: a.mount,
|
|
857
|
+
unmount: a.unmount
|
|
858
858
|
});
|
|
859
859
|
},
|
|
860
860
|
registerPlugin(s) {
|
|
@@ -862,16 +862,16 @@ function wt() {
|
|
|
862
862
|
if (e[s.__id])
|
|
863
863
|
throw new Error("Plugin already registered");
|
|
864
864
|
e[s.__id] = s;
|
|
865
|
-
for (const
|
|
865
|
+
for (const a in o)
|
|
866
866
|
s.mount({
|
|
867
|
-
api: o[
|
|
868
|
-
__aggId: o[
|
|
869
|
-
isInitialized: o[
|
|
867
|
+
api: o[a].api,
|
|
868
|
+
__aggId: o[a].__id,
|
|
869
|
+
isInitialized: o[a].isInitialized
|
|
870
870
|
});
|
|
871
871
|
} else if (s.type === "HotSwap") {
|
|
872
872
|
n[s.__id] = s;
|
|
873
|
-
for (const
|
|
874
|
-
t.has(o[
|
|
873
|
+
for (const a in o)
|
|
874
|
+
t.has(o[a]) && !t.get(o[a]).includes(s.__id) && (s.mount({ api: o[a].api, __aggId: o[a].__id }), t.get(o[a]).push(s.__id));
|
|
875
875
|
} else
|
|
876
876
|
isNever(s);
|
|
877
877
|
},
|
|
@@ -879,75 +879,76 @@ function wt() {
|
|
|
879
879
|
if (s.type === "Setup")
|
|
880
880
|
throw new Error("Can not unregister setup plugin");
|
|
881
881
|
if (s.type === "HotSwap") {
|
|
882
|
-
for (const
|
|
883
|
-
t.has(o[
|
|
882
|
+
for (const a in o)
|
|
883
|
+
t.has(o[a]) && t.get(o[a]).includes(s.__id) && s.unmount({ api: o[a].api, __aggId: o[a].__id });
|
|
884
884
|
delete n[s.__id];
|
|
885
885
|
} else
|
|
886
886
|
isNever(s);
|
|
887
887
|
}
|
|
888
888
|
});
|
|
889
889
|
}
|
|
890
|
-
function
|
|
891
|
-
return
|
|
890
|
+
function jt(e) {
|
|
891
|
+
return St();
|
|
892
892
|
}
|
|
893
|
-
function
|
|
894
|
-
const n =
|
|
895
|
-
return
|
|
893
|
+
function Ot(e) {
|
|
894
|
+
const n = At(e);
|
|
895
|
+
return fe({
|
|
896
896
|
states: n.states,
|
|
897
897
|
commands: n.commands,
|
|
898
898
|
events: n.events
|
|
899
899
|
});
|
|
900
900
|
}
|
|
901
|
-
function
|
|
901
|
+
function At(e) {
|
|
902
902
|
const n = e.states;
|
|
903
|
-
for (const
|
|
904
|
-
n[
|
|
905
|
-
const t =
|
|
906
|
-
for (const
|
|
907
|
-
s[
|
|
908
|
-
return
|
|
903
|
+
for (const c of Object.keys(e.states))
|
|
904
|
+
n[c] = he(n[c]);
|
|
905
|
+
const t = fe(e.states), o = he(e.commands), s = {}, a = e.events;
|
|
906
|
+
for (const c in e.events)
|
|
907
|
+
s[c] = a[c].api;
|
|
908
|
+
return fe({
|
|
909
909
|
states: t,
|
|
910
910
|
commands: o,
|
|
911
|
-
events:
|
|
911
|
+
events: fe(s),
|
|
912
912
|
destroy: e.destroy
|
|
913
913
|
});
|
|
914
914
|
}
|
|
915
|
-
function
|
|
915
|
+
function It(e) {
|
|
916
916
|
const {
|
|
917
917
|
callback: n,
|
|
918
918
|
onError: t,
|
|
919
919
|
promise: o,
|
|
920
920
|
resolved: s
|
|
921
|
-
} =
|
|
921
|
+
} = Et(() => {
|
|
922
922
|
}, !1, 5e3);
|
|
923
|
-
function
|
|
923
|
+
function a(i) {
|
|
924
924
|
if (s.value === !0)
|
|
925
925
|
throw new Error("Agg already initialized");
|
|
926
|
-
|
|
926
|
+
c.push(i());
|
|
927
927
|
}
|
|
928
|
-
const
|
|
928
|
+
const c = [], g = e({
|
|
929
929
|
onCreated(i) {
|
|
930
930
|
Promise.resolve().then(i);
|
|
931
931
|
},
|
|
932
|
-
onBeforeInitialize:
|
|
933
|
-
isInitialized:
|
|
932
|
+
onBeforeInitialize: a,
|
|
933
|
+
isInitialized: Le(() => s.value),
|
|
934
934
|
untilInitialized: o
|
|
935
935
|
});
|
|
936
936
|
setTimeout(
|
|
937
|
-
() => Promise.all(
|
|
937
|
+
() => Promise.all(c).then(() => {
|
|
938
938
|
n();
|
|
939
939
|
}).catch((i) => {
|
|
940
940
|
t(i);
|
|
941
|
-
})
|
|
941
|
+
}),
|
|
942
|
+
0
|
|
942
943
|
);
|
|
943
|
-
const
|
|
944
|
+
const v = g.states || {}, d = g.commands || {}, r = g.events || {};
|
|
944
945
|
return {
|
|
945
|
-
__id:
|
|
946
|
+
__id: Ke(),
|
|
946
947
|
type: "Singleton",
|
|
947
|
-
api:
|
|
948
|
-
states:
|
|
949
|
-
commands:
|
|
950
|
-
events:
|
|
948
|
+
api: Ot({
|
|
949
|
+
states: v,
|
|
950
|
+
commands: d,
|
|
951
|
+
events: r,
|
|
951
952
|
destroy: () => {
|
|
952
953
|
}
|
|
953
954
|
}),
|
|
@@ -960,11 +961,11 @@ Stack : ${i.stack || "unkown"}`);
|
|
|
960
961
|
}
|
|
961
962
|
};
|
|
962
963
|
}
|
|
963
|
-
let
|
|
964
|
-
function
|
|
965
|
-
return
|
|
966
|
-
const n =
|
|
967
|
-
let o = () => [], s = () => [],
|
|
964
|
+
let de;
|
|
965
|
+
function xt(e) {
|
|
966
|
+
return It(() => {
|
|
967
|
+
const n = ge(e), t = ge({});
|
|
968
|
+
let o = () => [], s = () => [], a = () => [], c = () => [], g = () => [], v = () => [], d = () => [];
|
|
968
969
|
return {
|
|
969
970
|
states: {
|
|
970
971
|
designer: n,
|
|
@@ -972,126 +973,126 @@ function jt(e) {
|
|
|
972
973
|
},
|
|
973
974
|
commands: {
|
|
974
975
|
genCodeFiles() {
|
|
975
|
-
return
|
|
976
|
+
return d();
|
|
976
977
|
},
|
|
977
978
|
clearCaches() {
|
|
978
979
|
},
|
|
979
|
-
setContext(
|
|
980
|
-
t.value =
|
|
980
|
+
setContext(r) {
|
|
981
|
+
t.value = r;
|
|
981
982
|
},
|
|
982
|
-
setDomainDesigner(
|
|
983
|
-
this.clearCaches(), n.value =
|
|
983
|
+
setDomainDesigner(r) {
|
|
984
|
+
this.clearCaches(), n.value = r;
|
|
984
985
|
},
|
|
985
|
-
_genInfoCode(...
|
|
986
|
-
return o(...
|
|
986
|
+
_genInfoCode(...r) {
|
|
987
|
+
return o(...r);
|
|
987
988
|
},
|
|
988
|
-
_setInfoCodeProvider(
|
|
989
|
-
o =
|
|
989
|
+
_setInfoCodeProvider(r) {
|
|
990
|
+
o = r;
|
|
990
991
|
},
|
|
991
|
-
_genCommandCode(...
|
|
992
|
-
return s(...
|
|
992
|
+
_genCommandCode(...r) {
|
|
993
|
+
return s(...r);
|
|
993
994
|
},
|
|
994
|
-
_setCommandCodeProvider(
|
|
995
|
-
s =
|
|
995
|
+
_setCommandCodeProvider(r) {
|
|
996
|
+
s = r;
|
|
996
997
|
},
|
|
997
|
-
_genFacadeCommandCode(...
|
|
998
|
-
return
|
|
998
|
+
_genFacadeCommandCode(...r) {
|
|
999
|
+
return a(...r);
|
|
999
1000
|
},
|
|
1000
|
-
_setFacadeCommandCodeProvider(
|
|
1001
|
-
|
|
1001
|
+
_setFacadeCommandCodeProvider(r) {
|
|
1002
|
+
a = r;
|
|
1002
1003
|
},
|
|
1003
|
-
_genAggCode(...
|
|
1004
|
-
return
|
|
1004
|
+
_genAggCode(...r) {
|
|
1005
|
+
return c(...r);
|
|
1005
1006
|
},
|
|
1006
|
-
_setAggCodeProvider(
|
|
1007
|
-
|
|
1007
|
+
_setAggCodeProvider(r) {
|
|
1008
|
+
c = r;
|
|
1008
1009
|
},
|
|
1009
|
-
_genEventCode(...
|
|
1010
|
-
return
|
|
1010
|
+
_genEventCode(...r) {
|
|
1011
|
+
return g(...r);
|
|
1011
1012
|
},
|
|
1012
|
-
_setEventCodeProvider(
|
|
1013
|
-
|
|
1013
|
+
_setEventCodeProvider(r) {
|
|
1014
|
+
g = r;
|
|
1014
1015
|
},
|
|
1015
|
-
_genReadModelCode(...
|
|
1016
|
-
return
|
|
1016
|
+
_genReadModelCode(...r) {
|
|
1017
|
+
return v(...r);
|
|
1017
1018
|
},
|
|
1018
|
-
_setReadModelCodeProvider(
|
|
1019
|
-
|
|
1019
|
+
_setReadModelCodeProvider(r) {
|
|
1020
|
+
v = r;
|
|
1020
1021
|
},
|
|
1021
|
-
_setCodeFileProvider(
|
|
1022
|
-
|
|
1022
|
+
_setCodeFileProvider(r) {
|
|
1023
|
+
d = r;
|
|
1023
1024
|
}
|
|
1024
1025
|
}
|
|
1025
1026
|
};
|
|
1026
1027
|
});
|
|
1027
1028
|
}
|
|
1028
|
-
const
|
|
1029
|
-
function
|
|
1030
|
-
if (!
|
|
1029
|
+
const ue = jt();
|
|
1030
|
+
function So(e) {
|
|
1031
|
+
if (!de) {
|
|
1031
1032
|
if (!e)
|
|
1032
1033
|
throw new Error("designer is required");
|
|
1033
|
-
|
|
1034
|
+
de = xt(e), ue.registerAgg(de);
|
|
1034
1035
|
}
|
|
1035
|
-
return
|
|
1036
|
+
return de.api;
|
|
1036
1037
|
}
|
|
1037
|
-
function
|
|
1038
|
+
function Ee(e) {
|
|
1038
1039
|
return e && e._attributes && e._attributes.rule === "Info";
|
|
1039
1040
|
}
|
|
1040
|
-
function
|
|
1041
|
+
function Dt(e) {
|
|
1041
1042
|
return e && e._attributes && e._attributes.rule === "Agg";
|
|
1042
1043
|
}
|
|
1043
|
-
function
|
|
1044
|
+
function Pt(e) {
|
|
1044
1045
|
return e && e._attributes && e._attributes.rule === "Command";
|
|
1045
1046
|
}
|
|
1046
|
-
function
|
|
1047
|
+
function Tt(e) {
|
|
1047
1048
|
return e && e._attributes && e._attributes.rule === "FacadeCommand";
|
|
1048
1049
|
}
|
|
1049
|
-
function
|
|
1050
|
+
function Ft(e) {
|
|
1050
1051
|
return e && e._attributes && e._attributes.rule === "Event";
|
|
1051
1052
|
}
|
|
1052
|
-
function
|
|
1053
|
+
function Vt(e) {
|
|
1053
1054
|
return e && e._attributes && e._attributes.rule === "ReadModel";
|
|
1054
1055
|
}
|
|
1055
|
-
const
|
|
1056
|
+
const ze = process.env.NODE_ENV !== "production" ? Object.freeze({}) : {};
|
|
1056
1057
|
process.env.NODE_ENV !== "production" && Object.freeze([]);
|
|
1057
|
-
const
|
|
1058
|
-
},
|
|
1059
|
-
(e.charCodeAt(2) > 122 || e.charCodeAt(2) < 97),
|
|
1060
|
-
let
|
|
1061
|
-
const
|
|
1062
|
-
function
|
|
1063
|
-
if (
|
|
1058
|
+
const Rt = () => {
|
|
1059
|
+
}, kt = (e) => e.charCodeAt(0) === 111 && e.charCodeAt(1) === 110 && // uppercase letter
|
|
1060
|
+
(e.charCodeAt(2) > 122 || e.charCodeAt(2) < 97), Se = Object.assign, D = Array.isArray, B = (e) => typeof e == "function", H = (e) => typeof e == "string", Ht = (e) => typeof e == "symbol", L = (e) => e !== null && typeof e == "object";
|
|
1061
|
+
let un;
|
|
1062
|
+
const je = () => un || (un = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : typeof global < "u" ? global : {});
|
|
1063
|
+
function nn(e) {
|
|
1064
|
+
if (D(e)) {
|
|
1064
1065
|
const n = {};
|
|
1065
1066
|
for (let t = 0; t < e.length; t++) {
|
|
1066
|
-
const o = e[t], s =
|
|
1067
|
+
const o = e[t], s = H(o) ? zt(o) : nn(o);
|
|
1067
1068
|
if (s)
|
|
1068
|
-
for (const
|
|
1069
|
-
n[
|
|
1069
|
+
for (const a in s)
|
|
1070
|
+
n[a] = s[a];
|
|
1070
1071
|
}
|
|
1071
1072
|
return n;
|
|
1072
|
-
} else if (
|
|
1073
|
+
} else if (H(e) || L(e))
|
|
1073
1074
|
return e;
|
|
1074
1075
|
}
|
|
1075
|
-
const
|
|
1076
|
-
function
|
|
1076
|
+
const Mt = /;(?![^(]*\))/g, Lt = /:([^]+)/, Kt = /\/\*[^]*?\*\//g;
|
|
1077
|
+
function zt(e) {
|
|
1077
1078
|
const n = {};
|
|
1078
|
-
return e.replace(
|
|
1079
|
+
return e.replace(Kt, "").split(Mt).forEach((t) => {
|
|
1079
1080
|
if (t) {
|
|
1080
|
-
const o = t.split(
|
|
1081
|
+
const o = t.split(Lt);
|
|
1081
1082
|
o.length > 1 && (n[o[0].trim()] = o[1].trim());
|
|
1082
1083
|
}
|
|
1083
1084
|
}), n;
|
|
1084
1085
|
}
|
|
1085
|
-
function
|
|
1086
|
+
function tn(e) {
|
|
1086
1087
|
let n = "";
|
|
1087
|
-
if (
|
|
1088
|
+
if (H(e))
|
|
1088
1089
|
n = e;
|
|
1089
|
-
else if (
|
|
1090
|
+
else if (D(e))
|
|
1090
1091
|
for (let t = 0; t < e.length; t++) {
|
|
1091
|
-
const o =
|
|
1092
|
+
const o = tn(e[t]);
|
|
1092
1093
|
o && (n += o + " ");
|
|
1093
1094
|
}
|
|
1094
|
-
else if (
|
|
1095
|
+
else if (L(e))
|
|
1095
1096
|
for (const t in e)
|
|
1096
1097
|
e[t] && (n += t + " ");
|
|
1097
1098
|
return n.trim();
|
|
@@ -1106,25 +1107,25 @@ Symbol(
|
|
|
1106
1107
|
process.env.NODE_ENV !== "production" ? "Array iterate" : ""
|
|
1107
1108
|
);
|
|
1108
1109
|
new Set(
|
|
1109
|
-
/* @__PURE__ */ Object.getOwnPropertyNames(Symbol).filter((e) => e !== "arguments" && e !== "caller").map((e) => Symbol[e]).filter(
|
|
1110
|
+
/* @__PURE__ */ Object.getOwnPropertyNames(Symbol).filter((e) => e !== "arguments" && e !== "caller").map((e) => Symbol[e]).filter(Ht)
|
|
1110
1111
|
);
|
|
1111
|
-
function
|
|
1112
|
-
return
|
|
1112
|
+
function En(e) {
|
|
1113
|
+
return Be(e) ? En(e.__v_raw) : !!(e && e.__v_isReactive);
|
|
1113
1114
|
}
|
|
1114
|
-
function
|
|
1115
|
+
function Be(e) {
|
|
1115
1116
|
return !!(e && e.__v_isReadonly);
|
|
1116
1117
|
}
|
|
1117
|
-
function
|
|
1118
|
+
function Ie(e) {
|
|
1118
1119
|
return !!(e && e.__v_isShallow);
|
|
1119
1120
|
}
|
|
1120
|
-
function
|
|
1121
|
+
function Ue(e) {
|
|
1121
1122
|
return e ? !!e.__v_raw : !1;
|
|
1122
1123
|
}
|
|
1123
|
-
function
|
|
1124
|
+
function K(e) {
|
|
1124
1125
|
const n = e && e.__v_raw;
|
|
1125
|
-
return n ?
|
|
1126
|
+
return n ? K(n) : e;
|
|
1126
1127
|
}
|
|
1127
|
-
function
|
|
1128
|
+
function on(e) {
|
|
1128
1129
|
return e ? e.__v_isRef === !0 : !1;
|
|
1129
1130
|
}
|
|
1130
1131
|
/**
|
|
@@ -1132,46 +1133,46 @@ function en(e) {
|
|
|
1132
1133
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
1133
1134
|
* @license MIT
|
|
1134
1135
|
**/
|
|
1135
|
-
const
|
|
1136
|
-
function
|
|
1137
|
-
|
|
1138
|
-
}
|
|
1139
|
-
function
|
|
1140
|
-
|
|
1141
|
-
}
|
|
1142
|
-
let
|
|
1143
|
-
function
|
|
1144
|
-
if (
|
|
1145
|
-
|
|
1146
|
-
const t =
|
|
1136
|
+
const z = [];
|
|
1137
|
+
function Bt(e) {
|
|
1138
|
+
z.push(e);
|
|
1139
|
+
}
|
|
1140
|
+
function Ut() {
|
|
1141
|
+
z.pop();
|
|
1142
|
+
}
|
|
1143
|
+
let xe = !1;
|
|
1144
|
+
function ae(e, ...n) {
|
|
1145
|
+
if (xe) return;
|
|
1146
|
+
xe = !0;
|
|
1147
|
+
const t = z.length ? z[z.length - 1].component : null, o = t && t.appContext.config.warnHandler, s = Gt();
|
|
1147
1148
|
if (o)
|
|
1148
|
-
|
|
1149
|
+
sn(
|
|
1149
1150
|
o,
|
|
1150
1151
|
t,
|
|
1151
1152
|
11,
|
|
1152
1153
|
[
|
|
1153
1154
|
// eslint-disable-next-line no-restricted-syntax
|
|
1154
|
-
e + n.map((
|
|
1155
|
-
var
|
|
1156
|
-
return (
|
|
1155
|
+
e + n.map((a) => {
|
|
1156
|
+
var c, g;
|
|
1157
|
+
return (g = (c = a.toString) == null ? void 0 : c.call(a)) != null ? g : JSON.stringify(a);
|
|
1157
1158
|
}).join(""),
|
|
1158
1159
|
t && t.proxy,
|
|
1159
1160
|
s.map(
|
|
1160
|
-
({ vnode:
|
|
1161
|
+
({ vnode: a }) => `at <${Hn(t, a.type)}>`
|
|
1161
1162
|
).join(`
|
|
1162
1163
|
`),
|
|
1163
1164
|
s
|
|
1164
1165
|
]
|
|
1165
1166
|
);
|
|
1166
1167
|
else {
|
|
1167
|
-
const
|
|
1168
|
-
s.length &&
|
|
1169
|
-
`, ...
|
|
1168
|
+
const a = [`[Vue warn]: ${e}`, ...n];
|
|
1169
|
+
s.length && a.push(`
|
|
1170
|
+
`, ...Wt(s));
|
|
1170
1171
|
}
|
|
1171
|
-
|
|
1172
|
+
xe = !1;
|
|
1172
1173
|
}
|
|
1173
|
-
function
|
|
1174
|
-
let e =
|
|
1174
|
+
function Gt() {
|
|
1175
|
+
let e = z[z.length - 1];
|
|
1175
1176
|
if (!e)
|
|
1176
1177
|
return [];
|
|
1177
1178
|
const n = [];
|
|
@@ -1186,31 +1187,31 @@ function zt() {
|
|
|
1186
1187
|
}
|
|
1187
1188
|
return n;
|
|
1188
1189
|
}
|
|
1189
|
-
function
|
|
1190
|
+
function Wt(e) {
|
|
1190
1191
|
const n = [];
|
|
1191
1192
|
return e.forEach((t, o) => {
|
|
1192
1193
|
n.push(...o === 0 ? [] : [`
|
|
1193
|
-
`], ...
|
|
1194
|
+
`], ...Jt(t));
|
|
1194
1195
|
}), n;
|
|
1195
1196
|
}
|
|
1196
|
-
function
|
|
1197
|
-
const t = n > 0 ? `... (${n} recursive calls)` : "", o = e.component ? e.component.parent == null : !1, s = ` at <${
|
|
1197
|
+
function Jt({ vnode: e, recurseCount: n }) {
|
|
1198
|
+
const t = n > 0 ? `... (${n} recursive calls)` : "", o = e.component ? e.component.parent == null : !1, s = ` at <${Hn(
|
|
1198
1199
|
e.component,
|
|
1199
1200
|
e.type,
|
|
1200
1201
|
o
|
|
1201
|
-
)}`,
|
|
1202
|
-
return e.props ? [s, ...
|
|
1202
|
+
)}`, a = ">" + t;
|
|
1203
|
+
return e.props ? [s, ...Yt(e.props), a] : [s + a];
|
|
1203
1204
|
}
|
|
1204
|
-
function
|
|
1205
|
+
function Yt(e) {
|
|
1205
1206
|
const n = [], t = Object.keys(e);
|
|
1206
1207
|
return t.slice(0, 3).forEach((o) => {
|
|
1207
|
-
n.push(...
|
|
1208
|
+
n.push(...Sn(o, e[o]));
|
|
1208
1209
|
}), t.length > 3 && n.push(" ..."), n;
|
|
1209
1210
|
}
|
|
1210
|
-
function
|
|
1211
|
-
return
|
|
1211
|
+
function Sn(e, n, t) {
|
|
1212
|
+
return H(n) ? (n = JSON.stringify(n), t ? n : [`${e}=${n}`]) : typeof n == "number" || typeof n == "boolean" || n == null ? t ? n : [`${e}=${n}`] : on(n) ? (n = Sn(e, K(n.value), !0), t ? n : [`${e}=Ref<`, n, ">"]) : B(n) ? [`${e}=fn${n.name ? `<${n.name}>` : ""}`] : (n = K(n), t ? n : [`${e}=`, n]);
|
|
1212
1213
|
}
|
|
1213
|
-
const
|
|
1214
|
+
const jn = {
|
|
1214
1215
|
sp: "serverPrefetch hook",
|
|
1215
1216
|
bc: "beforeCreate hook",
|
|
1216
1217
|
c: "created hook",
|
|
@@ -1243,101 +1244,101 @@ const yn = {
|
|
|
1243
1244
|
15: "component update",
|
|
1244
1245
|
16: "app unmount cleanup function"
|
|
1245
1246
|
};
|
|
1246
|
-
function
|
|
1247
|
+
function sn(e, n, t, o) {
|
|
1247
1248
|
try {
|
|
1248
1249
|
return o ? e(...o) : e();
|
|
1249
1250
|
} catch (s) {
|
|
1250
|
-
|
|
1251
|
+
On(s, n, t);
|
|
1251
1252
|
}
|
|
1252
1253
|
}
|
|
1253
|
-
function
|
|
1254
|
-
const s = n ? n.vnode : null, { errorHandler:
|
|
1254
|
+
function On(e, n, t, o = !0) {
|
|
1255
|
+
const s = n ? n.vnode : null, { errorHandler: a, throwUnhandledErrorInProduction: c } = n && n.appContext.config || ze;
|
|
1255
1256
|
if (n) {
|
|
1256
|
-
let
|
|
1257
|
-
const
|
|
1258
|
-
for (;
|
|
1259
|
-
const
|
|
1260
|
-
if (
|
|
1261
|
-
for (let i = 0; i <
|
|
1262
|
-
if (
|
|
1257
|
+
let g = n.parent;
|
|
1258
|
+
const v = n.proxy, d = process.env.NODE_ENV !== "production" ? jn[t] : `https://vuejs.org/error-reference/#runtime-${t}`;
|
|
1259
|
+
for (; g; ) {
|
|
1260
|
+
const r = g.ec;
|
|
1261
|
+
if (r) {
|
|
1262
|
+
for (let i = 0; i < r.length; i++)
|
|
1263
|
+
if (r[i](e, v, d) === !1)
|
|
1263
1264
|
return;
|
|
1264
1265
|
}
|
|
1265
|
-
|
|
1266
|
+
g = g.parent;
|
|
1266
1267
|
}
|
|
1267
|
-
if (
|
|
1268
|
-
|
|
1268
|
+
if (a) {
|
|
1269
|
+
sn(a, null, 10, [
|
|
1269
1270
|
e,
|
|
1270
|
-
|
|
1271
|
-
|
|
1271
|
+
v,
|
|
1272
|
+
d
|
|
1272
1273
|
]);
|
|
1273
1274
|
return;
|
|
1274
1275
|
}
|
|
1275
1276
|
}
|
|
1276
|
-
|
|
1277
|
+
Zt(e, t, s, o, c);
|
|
1277
1278
|
}
|
|
1278
|
-
function
|
|
1279
|
+
function Zt(e, n, t, o = !0, s = !1) {
|
|
1279
1280
|
if (process.env.NODE_ENV !== "production") {
|
|
1280
|
-
const
|
|
1281
|
-
if (t &&
|
|
1281
|
+
const a = jn[n];
|
|
1282
|
+
if (t && Bt(t), ae(`Unhandled error${a ? ` during execution of ${a}` : ""}`), t && Ut(), o)
|
|
1282
1283
|
throw e;
|
|
1283
1284
|
} else if (s)
|
|
1284
1285
|
throw e;
|
|
1285
1286
|
}
|
|
1286
|
-
const
|
|
1287
|
-
let
|
|
1288
|
-
const
|
|
1289
|
-
let
|
|
1290
|
-
const
|
|
1291
|
-
let
|
|
1292
|
-
const
|
|
1293
|
-
function
|
|
1294
|
-
let n =
|
|
1287
|
+
const x = [];
|
|
1288
|
+
let T = -1;
|
|
1289
|
+
const q = [];
|
|
1290
|
+
let F = null, W = 0;
|
|
1291
|
+
const qt = /* @__PURE__ */ Promise.resolve();
|
|
1292
|
+
let Ge = null;
|
|
1293
|
+
const Xt = 100;
|
|
1294
|
+
function Qt(e) {
|
|
1295
|
+
let n = T + 1, t = x.length;
|
|
1295
1296
|
for (; n < t; ) {
|
|
1296
|
-
const o = n + t >>> 1, s =
|
|
1297
|
-
|
|
1297
|
+
const o = n + t >>> 1, s = x[o], a = ie(s);
|
|
1298
|
+
a < e || a === e && s.flags & 2 ? n = o + 1 : t = o;
|
|
1298
1299
|
}
|
|
1299
1300
|
return n;
|
|
1300
1301
|
}
|
|
1301
|
-
function
|
|
1302
|
+
function eo(e) {
|
|
1302
1303
|
if (!(e.flags & 1)) {
|
|
1303
|
-
const n =
|
|
1304
|
+
const n = ie(e), t = x[x.length - 1];
|
|
1304
1305
|
!t || // fast path when the job id is larger than the tail
|
|
1305
|
-
!(e.flags & 2) && n >=
|
|
1306
|
+
!(e.flags & 2) && n >= ie(t) ? x.push(e) : x.splice(Qt(n), 0, e), e.flags |= 1, An();
|
|
1306
1307
|
}
|
|
1307
1308
|
}
|
|
1308
|
-
function
|
|
1309
|
-
|
|
1309
|
+
function An() {
|
|
1310
|
+
Ge || (Ge = qt.then(In));
|
|
1310
1311
|
}
|
|
1311
|
-
function
|
|
1312
|
-
|
|
1312
|
+
function no(e) {
|
|
1313
|
+
D(e) ? q.push(...e) : F && e.id === -1 ? F.splice(W + 1, 0, e) : e.flags & 1 || (q.push(e), e.flags |= 1), An();
|
|
1313
1314
|
}
|
|
1314
|
-
function
|
|
1315
|
-
if (
|
|
1316
|
-
const n = [...new Set(
|
|
1317
|
-
(t, o) =>
|
|
1315
|
+
function to(e) {
|
|
1316
|
+
if (q.length) {
|
|
1317
|
+
const n = [...new Set(q)].sort(
|
|
1318
|
+
(t, o) => ie(t) - ie(o)
|
|
1318
1319
|
);
|
|
1319
|
-
if (
|
|
1320
|
-
|
|
1320
|
+
if (q.length = 0, F) {
|
|
1321
|
+
F.push(...n);
|
|
1321
1322
|
return;
|
|
1322
1323
|
}
|
|
1323
|
-
for (
|
|
1324
|
-
const t =
|
|
1325
|
-
process.env.NODE_ENV !== "production" &&
|
|
1324
|
+
for (F = n, process.env.NODE_ENV !== "production" && (e = e || /* @__PURE__ */ new Map()), W = 0; W < F.length; W++) {
|
|
1325
|
+
const t = F[W];
|
|
1326
|
+
process.env.NODE_ENV !== "production" && xn(e, t) || (t.flags & 4 && (t.flags &= -2), t.flags & 8 || t(), t.flags &= -2);
|
|
1326
1327
|
}
|
|
1327
|
-
|
|
1328
|
+
F = null, W = 0;
|
|
1328
1329
|
}
|
|
1329
1330
|
}
|
|
1330
|
-
const
|
|
1331
|
-
function
|
|
1331
|
+
const ie = (e) => e.id == null ? e.flags & 2 ? -1 : 1 / 0 : e.id;
|
|
1332
|
+
function In(e) {
|
|
1332
1333
|
process.env.NODE_ENV !== "production" && (e = e || /* @__PURE__ */ new Map());
|
|
1333
|
-
const n = process.env.NODE_ENV !== "production" ? (t) =>
|
|
1334
|
+
const n = process.env.NODE_ENV !== "production" ? (t) => xn(e, t) : Rt;
|
|
1334
1335
|
try {
|
|
1335
|
-
for (
|
|
1336
|
-
const t =
|
|
1336
|
+
for (T = 0; T < x.length; T++) {
|
|
1337
|
+
const t = x[T];
|
|
1337
1338
|
if (t && !(t.flags & 8)) {
|
|
1338
1339
|
if (process.env.NODE_ENV !== "production" && n(t))
|
|
1339
1340
|
continue;
|
|
1340
|
-
t.flags & 4 && (t.flags &= -2),
|
|
1341
|
+
t.flags & 4 && (t.flags &= -2), sn(
|
|
1341
1342
|
t,
|
|
1342
1343
|
t.i,
|
|
1343
1344
|
t.i ? 15 : 14
|
|
@@ -1345,18 +1346,18 @@ function An(e) {
|
|
|
1345
1346
|
}
|
|
1346
1347
|
}
|
|
1347
1348
|
} finally {
|
|
1348
|
-
for (;
|
|
1349
|
-
const t =
|
|
1349
|
+
for (; T < x.length; T++) {
|
|
1350
|
+
const t = x[T];
|
|
1350
1351
|
t && (t.flags &= -2);
|
|
1351
1352
|
}
|
|
1352
|
-
|
|
1353
|
+
T = -1, x.length = 0, to(e), Ge = null, (x.length || q.length) && In(e);
|
|
1353
1354
|
}
|
|
1354
1355
|
}
|
|
1355
|
-
function
|
|
1356
|
+
function xn(e, n) {
|
|
1356
1357
|
const t = e.get(n) || 0;
|
|
1357
|
-
if (t >
|
|
1358
|
-
const o = n.i, s = o &&
|
|
1359
|
-
return
|
|
1358
|
+
if (t > Xt) {
|
|
1359
|
+
const o = n.i, s = o && kn(o.type);
|
|
1360
|
+
return On(
|
|
1360
1361
|
`Maximum recursive updates exceeded${s ? ` in component <${s}>` : ""}. This means you have a reactive effect that is mutating its own dependencies and thus recursively triggering itself. Possible sources include component template, render function, updated hook or watcher source function.`,
|
|
1361
1362
|
null,
|
|
1362
1363
|
10
|
|
@@ -1364,50 +1365,50 @@ function jn(e, n) {
|
|
|
1364
1365
|
}
|
|
1365
1366
|
return e.set(n, t + 1), !1;
|
|
1366
1367
|
}
|
|
1367
|
-
const
|
|
1368
|
-
process.env.NODE_ENV !== "production" && (
|
|
1369
|
-
createRecord:
|
|
1370
|
-
rerender:
|
|
1371
|
-
reload:
|
|
1368
|
+
const De = /* @__PURE__ */ new Map();
|
|
1369
|
+
process.env.NODE_ENV !== "production" && (je().__VUE_HMR_RUNTIME__ = {
|
|
1370
|
+
createRecord: Pe(oo),
|
|
1371
|
+
rerender: Pe(so),
|
|
1372
|
+
reload: Pe(ro)
|
|
1372
1373
|
});
|
|
1373
|
-
const
|
|
1374
|
-
function
|
|
1375
|
-
return
|
|
1376
|
-
initialDef:
|
|
1374
|
+
const ve = /* @__PURE__ */ new Map();
|
|
1375
|
+
function oo(e, n) {
|
|
1376
|
+
return ve.has(e) ? !1 : (ve.set(e, {
|
|
1377
|
+
initialDef: _e(n),
|
|
1377
1378
|
instances: /* @__PURE__ */ new Set()
|
|
1378
1379
|
}), !0);
|
|
1379
1380
|
}
|
|
1380
|
-
function
|
|
1381
|
-
return
|
|
1381
|
+
function _e(e) {
|
|
1382
|
+
return Mn(e) ? e.__vccOpts : e;
|
|
1382
1383
|
}
|
|
1383
|
-
function
|
|
1384
|
-
const t =
|
|
1384
|
+
function so(e, n) {
|
|
1385
|
+
const t = ve.get(e);
|
|
1385
1386
|
t && (t.initialDef.render = n, [...t.instances].forEach((o) => {
|
|
1386
|
-
n && (o.render = n,
|
|
1387
|
+
n && (o.render = n, _e(o.type).render = n), o.renderCache = [], o.update();
|
|
1387
1388
|
}));
|
|
1388
1389
|
}
|
|
1389
|
-
function
|
|
1390
|
-
const t =
|
|
1390
|
+
function ro(e, n) {
|
|
1391
|
+
const t = ve.get(e);
|
|
1391
1392
|
if (!t) return;
|
|
1392
|
-
n =
|
|
1393
|
+
n = _e(n), ln(t.initialDef, n);
|
|
1393
1394
|
const o = [...t.instances];
|
|
1394
1395
|
for (let s = 0; s < o.length; s++) {
|
|
1395
|
-
const
|
|
1396
|
-
let
|
|
1397
|
-
|
|
1398
|
-
|
|
1399
|
-
}) :
|
|
1400
|
-
}
|
|
1401
|
-
|
|
1402
|
-
|
|
1396
|
+
const a = o[s], c = _e(a.type);
|
|
1397
|
+
let g = De.get(c);
|
|
1398
|
+
g || (c !== t.initialDef && ln(c, n), De.set(c, g = /* @__PURE__ */ new Set())), g.add(a), a.appContext.propsCache.delete(a.type), a.appContext.emitsCache.delete(a.type), a.appContext.optionsCache.delete(a.type), a.ceReload ? (g.add(a), a.ceReload(n.styles), g.delete(a)) : a.parent ? eo(() => {
|
|
1399
|
+
a.parent.update(), g.delete(a);
|
|
1400
|
+
}) : a.appContext.reload ? a.appContext.reload() : typeof window < "u" && window.location.reload(), a.root.ce && a !== a.root && a.root.ce._removeChildStyle(c);
|
|
1401
|
+
}
|
|
1402
|
+
no(() => {
|
|
1403
|
+
De.clear();
|
|
1403
1404
|
});
|
|
1404
1405
|
}
|
|
1405
|
-
function
|
|
1406
|
-
|
|
1406
|
+
function ln(e, n) {
|
|
1407
|
+
Se(e, n);
|
|
1407
1408
|
for (const t in e)
|
|
1408
1409
|
t !== "__file" && !(t in n) && delete e[t];
|
|
1409
1410
|
}
|
|
1410
|
-
function
|
|
1411
|
+
function Pe(e) {
|
|
1411
1412
|
return (n, t) => {
|
|
1412
1413
|
try {
|
|
1413
1414
|
return e(n, t);
|
|
@@ -1415,35 +1416,35 @@ function Oe(e) {
|
|
|
1415
1416
|
}
|
|
1416
1417
|
};
|
|
1417
1418
|
}
|
|
1418
|
-
let
|
|
1419
|
-
const
|
|
1420
|
-
function
|
|
1421
|
-
e.shapeFlag & 6 && e.component ? (e.transition = n,
|
|
1419
|
+
let Ce = null, ao = null;
|
|
1420
|
+
const io = (e) => e.__isTeleport;
|
|
1421
|
+
function Dn(e, n) {
|
|
1422
|
+
e.shapeFlag & 6 && e.component ? (e.transition = n, Dn(e.component.subTree, n)) : e.shapeFlag & 128 ? (e.ssContent.transition = n.clone(e.ssContent), e.ssFallback.transition = n.clone(e.ssFallback)) : e.transition = n;
|
|
1422
1423
|
}
|
|
1423
|
-
|
|
1424
|
-
|
|
1425
|
-
const
|
|
1424
|
+
je().requestIdleCallback;
|
|
1425
|
+
je().cancelIdleCallback;
|
|
1426
|
+
const co = Symbol.for("v-ndc");
|
|
1426
1427
|
process.env.NODE_ENV;
|
|
1427
|
-
const
|
|
1428
|
-
function
|
|
1428
|
+
const uo = {}, Pn = (e) => Object.getPrototypeOf(e) === uo, lo = (e) => e.__isSuspense, Tn = Symbol.for("v-fgt"), po = Symbol.for("v-txt"), fo = Symbol.for("v-cmt");
|
|
1429
|
+
function mo(e) {
|
|
1429
1430
|
return e ? e.__v_isVNode === !0 : !1;
|
|
1430
1431
|
}
|
|
1431
|
-
const
|
|
1432
|
+
const ho = (...e) => Vn(
|
|
1432
1433
|
...e
|
|
1433
|
-
),
|
|
1434
|
+
), Fn = ({ key: e }) => e ?? null, me = ({
|
|
1434
1435
|
ref: e,
|
|
1435
1436
|
ref_key: n,
|
|
1436
1437
|
ref_for: t
|
|
1437
|
-
}) => (typeof e == "number" && (e = "" + e), e != null ?
|
|
1438
|
-
function
|
|
1439
|
-
const
|
|
1438
|
+
}) => (typeof e == "number" && (e = "" + e), e != null ? H(e) || on(e) || B(e) ? { i: Ce, r: e, k: n, f: !!t } : e : null);
|
|
1439
|
+
function go(e, n = null, t = null, o = 0, s = null, a = e === Tn ? 0 : 1, c = !1, g = !1) {
|
|
1440
|
+
const v = {
|
|
1440
1441
|
__v_isVNode: !0,
|
|
1441
1442
|
__v_skip: !0,
|
|
1442
1443
|
type: e,
|
|
1443
1444
|
props: n,
|
|
1444
|
-
key: n &&
|
|
1445
|
-
ref: n &&
|
|
1446
|
-
scopeId:
|
|
1445
|
+
key: n && Fn(n),
|
|
1446
|
+
ref: n && me(n),
|
|
1447
|
+
scopeId: ao,
|
|
1447
1448
|
slotScopeIds: null,
|
|
1448
1449
|
children: t,
|
|
1449
1450
|
component: null,
|
|
@@ -1458,67 +1459,67 @@ function fo(e, n = null, t = null, o = 0, s = null, r = e === Pn ? 0 : 1, a = !1
|
|
|
1458
1459
|
targetStart: null,
|
|
1459
1460
|
targetAnchor: null,
|
|
1460
1461
|
staticCount: 0,
|
|
1461
|
-
shapeFlag:
|
|
1462
|
+
shapeFlag: a,
|
|
1462
1463
|
patchFlag: o,
|
|
1463
1464
|
dynamicProps: s,
|
|
1464
1465
|
dynamicChildren: null,
|
|
1465
1466
|
appContext: null,
|
|
1466
|
-
ctx:
|
|
1467
|
+
ctx: Ce
|
|
1467
1468
|
};
|
|
1468
|
-
return
|
|
1469
|
+
return g ? (rn(v, t), a & 128 && e.normalize(v)) : t && (v.shapeFlag |= H(t) ? 8 : 16), process.env.NODE_ENV !== "production" && v.key !== v.key && ae("VNode created with invalid key (NaN). VNode type:", v.type), v;
|
|
1469
1470
|
}
|
|
1470
|
-
const
|
|
1471
|
-
function
|
|
1472
|
-
if ((!e || e ===
|
|
1473
|
-
const
|
|
1471
|
+
const vo = process.env.NODE_ENV !== "production" ? ho : Vn;
|
|
1472
|
+
function Vn(e, n = null, t = null, o = 0, s = null, a = !1) {
|
|
1473
|
+
if ((!e || e === co) && (process.env.NODE_ENV !== "production" && !e && ae(`Invalid vnode type when creating vnode: ${e}.`), e = fo), mo(e)) {
|
|
1474
|
+
const g = $e(
|
|
1474
1475
|
e,
|
|
1475
1476
|
n,
|
|
1476
1477
|
!0
|
|
1477
1478
|
/* mergeRef: true */
|
|
1478
1479
|
);
|
|
1479
|
-
return t &&
|
|
1480
|
+
return t && rn(g, t), g.patchFlag = -2, g;
|
|
1480
1481
|
}
|
|
1481
|
-
if (
|
|
1482
|
-
n =
|
|
1483
|
-
let { class:
|
|
1484
|
-
|
|
1482
|
+
if (Mn(e) && (e = e.__vccOpts), n) {
|
|
1483
|
+
n = _o(n);
|
|
1484
|
+
let { class: g, style: v } = n;
|
|
1485
|
+
g && !H(g) && (n.class = tn(g)), L(v) && (Ue(v) && !D(v) && (v = Se({}, v)), n.style = nn(v));
|
|
1485
1486
|
}
|
|
1486
|
-
const
|
|
1487
|
-
return process.env.NODE_ENV !== "production" &&
|
|
1487
|
+
const c = H(e) ? 1 : lo(e) ? 128 : io(e) ? 64 : L(e) ? 4 : B(e) ? 2 : 0;
|
|
1488
|
+
return process.env.NODE_ENV !== "production" && c & 4 && Ue(e) && (e = K(e), ae(
|
|
1488
1489
|
"Vue received a Component that was made a reactive object. This can lead to unnecessary performance overhead and should be avoided by marking the component with `markRaw` or using `shallowRef` instead of `ref`.",
|
|
1489
1490
|
`
|
|
1490
1491
|
Component that was made reactive: `,
|
|
1491
1492
|
e
|
|
1492
|
-
)),
|
|
1493
|
+
)), go(
|
|
1493
1494
|
e,
|
|
1494
1495
|
n,
|
|
1495
1496
|
t,
|
|
1496
1497
|
o,
|
|
1497
1498
|
s,
|
|
1499
|
+
c,
|
|
1498
1500
|
a,
|
|
1499
|
-
r,
|
|
1500
1501
|
!0
|
|
1501
1502
|
);
|
|
1502
1503
|
}
|
|
1503
|
-
function
|
|
1504
|
-
return e ?
|
|
1504
|
+
function _o(e) {
|
|
1505
|
+
return e ? Ue(e) || Pn(e) ? Se({}, e) : e : null;
|
|
1505
1506
|
}
|
|
1506
|
-
function
|
|
1507
|
-
const { props: s, ref:
|
|
1507
|
+
function $e(e, n, t = !1, o = !1) {
|
|
1508
|
+
const { props: s, ref: a, patchFlag: c, children: g, transition: v } = e, d = n ? $o(s || {}, n) : s, r = {
|
|
1508
1509
|
__v_isVNode: !0,
|
|
1509
1510
|
__v_skip: !0,
|
|
1510
1511
|
type: e.type,
|
|
1511
|
-
props:
|
|
1512
|
-
key:
|
|
1512
|
+
props: d,
|
|
1513
|
+
key: d && Fn(d),
|
|
1513
1514
|
ref: n && n.ref ? (
|
|
1514
1515
|
// #2078 in the case of <component :is="vnode" ref="extra"/>
|
|
1515
1516
|
// if the vnode itself already has a ref, cloneVNode will need to merge
|
|
1516
1517
|
// the refs so the single vnode can be set on multiple refs
|
|
1517
|
-
t &&
|
|
1518
|
-
) :
|
|
1518
|
+
t && a ? D(a) ? a.concat(me(n)) : [a, me(n)] : me(n)
|
|
1519
|
+
) : a,
|
|
1519
1520
|
scopeId: e.scopeId,
|
|
1520
1521
|
slotScopeIds: e.slotScopeIds,
|
|
1521
|
-
children: process.env.NODE_ENV !== "production" &&
|
|
1522
|
+
children: process.env.NODE_ENV !== "production" && c === -1 && D(g) ? g.map(Rn) : g,
|
|
1522
1523
|
target: e.target,
|
|
1523
1524
|
targetStart: e.targetStart,
|
|
1524
1525
|
targetAnchor: e.targetAnchor,
|
|
@@ -1528,75 +1529,75 @@ function ge(e, n, t = !1, o = !1) {
|
|
|
1528
1529
|
// existing patch flag to be reliable and need to add the FULL_PROPS flag.
|
|
1529
1530
|
// note: preserve flag for fragments since they use the flag for children
|
|
1530
1531
|
// fast paths only.
|
|
1531
|
-
patchFlag: n && e.type !==
|
|
1532
|
+
patchFlag: n && e.type !== Tn ? c === -1 ? 16 : c | 16 : c,
|
|
1532
1533
|
dynamicProps: e.dynamicProps,
|
|
1533
1534
|
dynamicChildren: e.dynamicChildren,
|
|
1534
1535
|
appContext: e.appContext,
|
|
1535
1536
|
dirs: e.dirs,
|
|
1536
|
-
transition:
|
|
1537
|
+
transition: v,
|
|
1537
1538
|
// These should technically only be non-null on mounted VNodes. However,
|
|
1538
1539
|
// they *should* be copied for kept-alive vnodes. So we just always copy
|
|
1539
1540
|
// them since them being non-null during a mount doesn't affect the logic as
|
|
1540
1541
|
// they will simply be overwritten.
|
|
1541
1542
|
component: e.component,
|
|
1542
1543
|
suspense: e.suspense,
|
|
1543
|
-
ssContent: e.ssContent &&
|
|
1544
|
-
ssFallback: e.ssFallback &&
|
|
1544
|
+
ssContent: e.ssContent && $e(e.ssContent),
|
|
1545
|
+
ssFallback: e.ssFallback && $e(e.ssFallback),
|
|
1545
1546
|
el: e.el,
|
|
1546
1547
|
anchor: e.anchor,
|
|
1547
1548
|
ctx: e.ctx,
|
|
1548
1549
|
ce: e.ce
|
|
1549
1550
|
};
|
|
1550
|
-
return
|
|
1551
|
-
|
|
1552
|
-
|
|
1553
|
-
),
|
|
1551
|
+
return v && o && Dn(
|
|
1552
|
+
r,
|
|
1553
|
+
v.clone(r)
|
|
1554
|
+
), r;
|
|
1554
1555
|
}
|
|
1555
|
-
function
|
|
1556
|
-
const n =
|
|
1557
|
-
return
|
|
1556
|
+
function Rn(e) {
|
|
1557
|
+
const n = $e(e);
|
|
1558
|
+
return D(e.children) && (n.children = e.children.map(Rn)), n;
|
|
1558
1559
|
}
|
|
1559
|
-
function
|
|
1560
|
-
return
|
|
1560
|
+
function Co(e = " ", n = 0) {
|
|
1561
|
+
return vo(po, null, e, n);
|
|
1561
1562
|
}
|
|
1562
|
-
function
|
|
1563
|
+
function rn(e, n) {
|
|
1563
1564
|
let t = 0;
|
|
1564
1565
|
const { shapeFlag: o } = e;
|
|
1565
1566
|
if (n == null)
|
|
1566
1567
|
n = null;
|
|
1567
|
-
else if (
|
|
1568
|
+
else if (D(n))
|
|
1568
1569
|
t = 16;
|
|
1569
1570
|
else if (typeof n == "object")
|
|
1570
1571
|
if (o & 65) {
|
|
1571
1572
|
const s = n.default;
|
|
1572
|
-
s && (s._c && (s._d = !1),
|
|
1573
|
+
s && (s._c && (s._d = !1), rn(e, s()), s._c && (s._d = !0));
|
|
1573
1574
|
return;
|
|
1574
1575
|
} else
|
|
1575
|
-
t = 32, !n._ && !
|
|
1576
|
-
else
|
|
1576
|
+
t = 32, !n._ && !Pn(n) && (n._ctx = Ce);
|
|
1577
|
+
else B(n) ? (n = { default: n, _ctx: Ce }, t = 32) : (n = String(n), o & 64 ? (t = 16, n = [Co(n)]) : t = 8);
|
|
1577
1578
|
e.children = n, e.shapeFlag |= t;
|
|
1578
1579
|
}
|
|
1579
|
-
function
|
|
1580
|
+
function $o(...e) {
|
|
1580
1581
|
const n = {};
|
|
1581
1582
|
for (let t = 0; t < e.length; t++) {
|
|
1582
1583
|
const o = e[t];
|
|
1583
1584
|
for (const s in o)
|
|
1584
1585
|
if (s === "class")
|
|
1585
|
-
n.class !== o.class && (n.class =
|
|
1586
|
+
n.class !== o.class && (n.class = tn([n.class, o.class]));
|
|
1586
1587
|
else if (s === "style")
|
|
1587
|
-
n.style =
|
|
1588
|
-
else if (
|
|
1589
|
-
const
|
|
1590
|
-
|
|
1588
|
+
n.style = nn([n.style, o.style]);
|
|
1589
|
+
else if (kt(s)) {
|
|
1590
|
+
const a = n[s], c = o[s];
|
|
1591
|
+
c && a !== c && !(D(a) && a.includes(c)) && (n[s] = a ? [].concat(a, c) : c);
|
|
1591
1592
|
} else s !== "" && (n[s] = o[s]);
|
|
1592
1593
|
}
|
|
1593
1594
|
return n;
|
|
1594
1595
|
}
|
|
1595
1596
|
{
|
|
1596
|
-
const e =
|
|
1597
|
+
const e = je(), n = (t, o) => {
|
|
1597
1598
|
let s;
|
|
1598
|
-
return (s = e[t]) || (s = e[t] = []), s.push(o), (
|
|
1599
|
-
s.length > 1 ? s.forEach((
|
|
1599
|
+
return (s = e[t]) || (s = e[t] = []), s.push(o), (a) => {
|
|
1600
|
+
s.length > 1 ? s.forEach((c) => c(a)) : s[0](a);
|
|
1600
1601
|
};
|
|
1601
1602
|
};
|
|
1602
1603
|
n(
|
|
@@ -1608,58 +1609,58 @@ function go(...e) {
|
|
|
1608
1609
|
);
|
|
1609
1610
|
}
|
|
1610
1611
|
process.env.NODE_ENV;
|
|
1611
|
-
const
|
|
1612
|
-
function
|
|
1613
|
-
return
|
|
1612
|
+
const bo = /(?:^|[-_])(\w)/g, wo = (e) => e.replace(bo, (n) => n.toUpperCase()).replace(/[-_]/g, "");
|
|
1613
|
+
function kn(e, n = !0) {
|
|
1614
|
+
return B(e) ? e.displayName || e.name : e.name || n && e.__name;
|
|
1614
1615
|
}
|
|
1615
|
-
function
|
|
1616
|
-
let o =
|
|
1616
|
+
function Hn(e, n, t = !1) {
|
|
1617
|
+
let o = kn(n);
|
|
1617
1618
|
if (!o && n.__file) {
|
|
1618
1619
|
const s = n.__file.match(/([^/\\]+)\.\w+$/);
|
|
1619
1620
|
s && (o = s[1]);
|
|
1620
1621
|
}
|
|
1621
1622
|
if (!o && e && e.parent) {
|
|
1622
|
-
const s = (
|
|
1623
|
-
for (const
|
|
1624
|
-
if (
|
|
1625
|
-
return
|
|
1623
|
+
const s = (a) => {
|
|
1624
|
+
for (const c in a)
|
|
1625
|
+
if (a[c] === n)
|
|
1626
|
+
return c;
|
|
1626
1627
|
};
|
|
1627
1628
|
o = s(
|
|
1628
1629
|
e.components || e.parent.type.components
|
|
1629
1630
|
) || s(e.appContext.components);
|
|
1630
1631
|
}
|
|
1631
|
-
return o ?
|
|
1632
|
+
return o ? wo(o) : t ? "App" : "Anonymous";
|
|
1632
1633
|
}
|
|
1633
|
-
function
|
|
1634
|
-
return
|
|
1634
|
+
function Mn(e) {
|
|
1635
|
+
return B(e) && "__vccOpts" in e;
|
|
1635
1636
|
}
|
|
1636
|
-
function
|
|
1637
|
+
function No() {
|
|
1637
1638
|
if (process.env.NODE_ENV === "production" || typeof window > "u")
|
|
1638
1639
|
return;
|
|
1639
1640
|
const e = { style: "color:#3ba776" }, n = { style: "color:#1677ff" }, t = { style: "color:#f5222d" }, o = { style: "color:#eb2f96" }, s = {
|
|
1640
1641
|
__vue_custom_formatter: !0,
|
|
1641
1642
|
header(i) {
|
|
1642
|
-
return
|
|
1643
|
+
return L(i) ? i.__isVue ? ["div", e, "VueInstance"] : on(i) ? [
|
|
1643
1644
|
"div",
|
|
1644
1645
|
{},
|
|
1645
|
-
["span", e,
|
|
1646
|
+
["span", e, r(i)],
|
|
1646
1647
|
"<",
|
|
1647
1648
|
// avoid debugger accessing value affecting behavior
|
|
1648
|
-
|
|
1649
|
+
g("_value" in i ? i._value : i),
|
|
1649
1650
|
">"
|
|
1650
|
-
] :
|
|
1651
|
+
] : En(i) ? [
|
|
1651
1652
|
"div",
|
|
1652
1653
|
{},
|
|
1653
|
-
["span", e,
|
|
1654
|
+
["span", e, Ie(i) ? "ShallowReactive" : "Reactive"],
|
|
1654
1655
|
"<",
|
|
1655
|
-
|
|
1656
|
-
`>${
|
|
1657
|
-
] :
|
|
1656
|
+
g(i),
|
|
1657
|
+
`>${Be(i) ? " (readonly)" : ""}`
|
|
1658
|
+
] : Be(i) ? [
|
|
1658
1659
|
"div",
|
|
1659
1660
|
{},
|
|
1660
|
-
["span", e,
|
|
1661
|
+
["span", e, Ie(i) ? "ShallowReadonly" : "Readonly"],
|
|
1661
1662
|
"<",
|
|
1662
|
-
|
|
1663
|
+
g(i),
|
|
1663
1664
|
">"
|
|
1664
1665
|
] : null : null;
|
|
1665
1666
|
},
|
|
@@ -1671,17 +1672,17 @@ function $o() {
|
|
|
1671
1672
|
return [
|
|
1672
1673
|
"div",
|
|
1673
1674
|
{},
|
|
1674
|
-
...
|
|
1675
|
+
...a(i.$)
|
|
1675
1676
|
];
|
|
1676
1677
|
}
|
|
1677
1678
|
};
|
|
1678
|
-
function
|
|
1679
|
-
const
|
|
1680
|
-
i.type.props && i.props &&
|
|
1681
|
-
const
|
|
1682
|
-
|
|
1683
|
-
const
|
|
1684
|
-
return
|
|
1679
|
+
function a(i) {
|
|
1680
|
+
const l = [];
|
|
1681
|
+
i.type.props && i.props && l.push(c("props", K(i.props))), i.setupState !== ze && l.push(c("setup", i.setupState)), i.data !== ze && l.push(c("data", K(i.data)));
|
|
1682
|
+
const m = v(i, "computed");
|
|
1683
|
+
m && l.push(c("computed", m));
|
|
1684
|
+
const C = v(i, "inject");
|
|
1685
|
+
return C && l.push(c("injected", C)), l.push([
|
|
1685
1686
|
"div",
|
|
1686
1687
|
{},
|
|
1687
1688
|
[
|
|
@@ -1692,10 +1693,10 @@ function $o() {
|
|
|
1692
1693
|
"$ (internal): "
|
|
1693
1694
|
],
|
|
1694
1695
|
["object", { object: i }]
|
|
1695
|
-
]),
|
|
1696
|
+
]), l;
|
|
1696
1697
|
}
|
|
1697
|
-
function
|
|
1698
|
-
return
|
|
1698
|
+
function c(i, l) {
|
|
1699
|
+
return l = Se({}, l), Object.keys(l).length ? [
|
|
1699
1700
|
"div",
|
|
1700
1701
|
{ style: "line-height:1.25em;margin-bottom:0.6em" },
|
|
1701
1702
|
[
|
|
@@ -1710,34 +1711,34 @@ function $o() {
|
|
|
1710
1711
|
{
|
|
1711
1712
|
style: "padding-left:1.25em"
|
|
1712
1713
|
},
|
|
1713
|
-
...Object.keys(
|
|
1714
|
+
...Object.keys(l).map((m) => [
|
|
1714
1715
|
"div",
|
|
1715
1716
|
{},
|
|
1716
|
-
["span", o,
|
|
1717
|
-
|
|
1717
|
+
["span", o, m + ": "],
|
|
1718
|
+
g(l[m], !1)
|
|
1718
1719
|
])
|
|
1719
1720
|
]
|
|
1720
1721
|
] : ["span", {}];
|
|
1721
1722
|
}
|
|
1722
|
-
function
|
|
1723
|
-
return typeof i == "number" ? ["span", n, i] : typeof i == "string" ? ["span", t, JSON.stringify(i)] : typeof i == "boolean" ? ["span", o, i] :
|
|
1723
|
+
function g(i, l = !0) {
|
|
1724
|
+
return typeof i == "number" ? ["span", n, i] : typeof i == "string" ? ["span", t, JSON.stringify(i)] : typeof i == "boolean" ? ["span", o, i] : L(i) ? ["object", { object: l ? K(i) : i }] : ["span", t, String(i)];
|
|
1724
1725
|
}
|
|
1725
|
-
function
|
|
1726
|
-
const
|
|
1727
|
-
if (
|
|
1726
|
+
function v(i, l) {
|
|
1727
|
+
const m = i.type;
|
|
1728
|
+
if (B(m))
|
|
1728
1729
|
return;
|
|
1729
|
-
const
|
|
1730
|
-
for (const
|
|
1731
|
-
|
|
1732
|
-
return
|
|
1733
|
-
}
|
|
1734
|
-
function
|
|
1735
|
-
const
|
|
1736
|
-
if (
|
|
1730
|
+
const C = {};
|
|
1731
|
+
for (const p in i.ctx)
|
|
1732
|
+
d(m, p, l) && (C[p] = i.ctx[p]);
|
|
1733
|
+
return C;
|
|
1734
|
+
}
|
|
1735
|
+
function d(i, l, m) {
|
|
1736
|
+
const C = i[m];
|
|
1737
|
+
if (D(C) && C.includes(l) || L(C) && l in C || i.extends && d(i.extends, l, m) || i.mixins && i.mixins.some((p) => d(p, l, m)))
|
|
1737
1738
|
return !0;
|
|
1738
1739
|
}
|
|
1739
|
-
function
|
|
1740
|
-
return
|
|
1740
|
+
function r(i) {
|
|
1741
|
+
return Ie(i) ? "ShallowRef" : i.effect ? "ComputedRef" : "Ref";
|
|
1741
1742
|
}
|
|
1742
1743
|
window.devtoolsFormatters ? window.devtoolsFormatters.push(s) : window.devtoolsFormatters = [s];
|
|
1743
1744
|
}
|
|
@@ -1749,15 +1750,15 @@ process.env.NODE_ENV;
|
|
|
1749
1750
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
1750
1751
|
* @license MIT
|
|
1751
1752
|
**/
|
|
1752
|
-
function
|
|
1753
|
-
|
|
1753
|
+
function yo() {
|
|
1754
|
+
No();
|
|
1754
1755
|
}
|
|
1755
|
-
process.env.NODE_ENV !== "production" &&
|
|
1756
|
-
function
|
|
1757
|
-
return
|
|
1756
|
+
process.env.NODE_ENV !== "production" && yo();
|
|
1757
|
+
function Eo(e) {
|
|
1758
|
+
return Pt(e) || Tt(e) || Dt(e) || Ft(e) || Vt(e);
|
|
1758
1759
|
}
|
|
1759
|
-
var
|
|
1760
|
-
class
|
|
1760
|
+
var Ln = /* @__PURE__ */ ((e) => (e.Java = "java", e.Kotlin = "kotlin", e.CSharp = "csharp", e.Go = "go", e))(Ln || {});
|
|
1761
|
+
class j {
|
|
1761
1762
|
imports = /* @__PURE__ */ new Set();
|
|
1762
1763
|
parentDir;
|
|
1763
1764
|
name;
|
|
@@ -1798,814 +1799,865 @@ class y {
|
|
|
1798
1799
|
this.parentDir = n;
|
|
1799
1800
|
}
|
|
1800
1801
|
}
|
|
1801
|
-
var
|
|
1802
|
+
var be;
|
|
1802
1803
|
((e) => {
|
|
1803
1804
|
((n) => {
|
|
1804
1805
|
n.Lombok = "Lombok", n.LombokBuilder = "LombokBuilder", n.RecordVakueObject = "RecordVakueObject", n.CommandHandler = "CommandHandler", n.Jpa = "Jpa", n.Timezone = "Timezone", n.SpringFramework = "SpringFramework";
|
|
1805
1806
|
})(e.JavaGeneratorAddition || (e.JavaGeneratorAddition = {}));
|
|
1806
|
-
})(
|
|
1807
|
-
var
|
|
1807
|
+
})(be || (be = {}));
|
|
1808
|
+
var we;
|
|
1808
1809
|
((e) => {
|
|
1809
1810
|
((n) => {
|
|
1810
1811
|
n.ValueClass = "ValueClass", n.CommandHandler = "CommandHandler", n.Timezone = "Timezone";
|
|
1811
1812
|
})(e.KotlinGeneratorAddition || (e.KotlinGeneratorAddition = {}));
|
|
1812
|
-
})(
|
|
1813
|
-
var
|
|
1813
|
+
})(we || (we = {}));
|
|
1814
|
+
var Ne;
|
|
1814
1815
|
((e) => {
|
|
1815
1816
|
((n) => {
|
|
1816
1817
|
n.Timezone = "Timezone", n.RecordStruct = "RecordStruct", n.PrimaryConstructor = "PrimaryConstructor", n.CommandHandlerInterface = "CommandHandlerInterface", n.AggInterface = "AggInterface";
|
|
1817
1818
|
})(e.CSharpGeneratorAddition || (e.CSharpGeneratorAddition = {}));
|
|
1818
|
-
})(
|
|
1819
|
-
var
|
|
1819
|
+
})(Ne || (Ne = {}));
|
|
1820
|
+
var We;
|
|
1820
1821
|
((e) => {
|
|
1821
1822
|
((n) => {
|
|
1822
1823
|
n.SinglePackageEachDesigner = "SinglePackageEachDesigner";
|
|
1823
1824
|
})(e.GoGeneratorAddition || (e.GoGeneratorAddition = {}));
|
|
1824
|
-
})(
|
|
1825
|
-
const
|
|
1825
|
+
})(We || (We = {}));
|
|
1826
|
+
const jo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1826
1827
|
__proto__: null,
|
|
1827
|
-
CodeFile:
|
|
1828
|
-
Language:
|
|
1828
|
+
CodeFile: j,
|
|
1829
|
+
Language: Ln,
|
|
1829
1830
|
get csharp() {
|
|
1830
|
-
return
|
|
1831
|
+
return Ne;
|
|
1831
1832
|
},
|
|
1832
1833
|
get go() {
|
|
1833
|
-
return
|
|
1834
|
+
return We;
|
|
1834
1835
|
},
|
|
1835
|
-
isStruct:
|
|
1836
|
+
isStruct: Eo,
|
|
1836
1837
|
get java() {
|
|
1837
|
-
return
|
|
1838
|
+
return be;
|
|
1838
1839
|
},
|
|
1839
1840
|
get kotlin() {
|
|
1840
|
-
return
|
|
1841
|
+
return we;
|
|
1841
1842
|
}
|
|
1842
1843
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
1843
|
-
var
|
|
1844
|
+
var N;
|
|
1844
1845
|
((e) => {
|
|
1845
|
-
function n(
|
|
1846
|
-
return
|
|
1846
|
+
function n(d) {
|
|
1847
|
+
return d.trim().split(d.includes("_") ? /_|\s/ : /(?=[A-Z])/g).map((r) => r.charAt(0).toUpperCase() + r.toLowerCase().slice(1)).join("");
|
|
1847
1848
|
}
|
|
1848
1849
|
e.stringToUpperCamel = n;
|
|
1849
|
-
function t(
|
|
1850
|
-
let
|
|
1851
|
-
return
|
|
1850
|
+
function t(d) {
|
|
1851
|
+
let r = !0;
|
|
1852
|
+
return d.trim().split(d.includes("_") ? /_|\s/ : /(?=[A-Z])/g).map((i) => r ? (r = !1, i.toLowerCase()) : i.charAt(0).toUpperCase() + i.toLowerCase().slice(1)).join("");
|
|
1852
1853
|
}
|
|
1853
1854
|
e.stringToLowerCamel = t;
|
|
1854
|
-
function o(
|
|
1855
|
-
return
|
|
1855
|
+
function o(d) {
|
|
1856
|
+
return d.includes("_") ? d.toLowerCase() : a(d);
|
|
1856
1857
|
}
|
|
1857
1858
|
e.stringToLowerSnake = o;
|
|
1858
|
-
function s(
|
|
1859
|
-
return
|
|
1859
|
+
function s(d) {
|
|
1860
|
+
return d.trim().split(/(?=[A-Z])/g).join("_").toUpperCase();
|
|
1860
1861
|
}
|
|
1861
1862
|
e.camelToUpperSnake = s;
|
|
1862
|
-
function
|
|
1863
|
-
return
|
|
1863
|
+
function a(d) {
|
|
1864
|
+
return d.trim().split(/(?=[A-Z])/g).join("_").toLowerCase();
|
|
1864
1865
|
}
|
|
1865
|
-
e.camelToLowerSnake =
|
|
1866
|
-
function
|
|
1867
|
-
return
|
|
1866
|
+
e.camelToLowerSnake = a;
|
|
1867
|
+
function c(d) {
|
|
1868
|
+
return d.trim().split("_").map((r) => r.charAt(0).toUpperCase() + r.slice(1)).join("");
|
|
1868
1869
|
}
|
|
1869
|
-
e.snakeToUpperCamel =
|
|
1870
|
-
function
|
|
1871
|
-
return
|
|
1870
|
+
e.snakeToUpperCamel = c;
|
|
1871
|
+
function g(d) {
|
|
1872
|
+
return d.trim().charAt(0).toLowerCase() + d.slice(1);
|
|
1872
1873
|
}
|
|
1873
|
-
e.lowerFirst =
|
|
1874
|
-
function
|
|
1875
|
-
return
|
|
1874
|
+
e.lowerFirst = g;
|
|
1875
|
+
function v(d) {
|
|
1876
|
+
return d.trim().charAt(0).toUpperCase() + d.slice(1);
|
|
1876
1877
|
}
|
|
1877
|
-
e.upperFirst =
|
|
1878
|
-
})(
|
|
1879
|
-
const
|
|
1878
|
+
e.upperFirst = v;
|
|
1879
|
+
})(N || (N = {}));
|
|
1880
|
+
const O = be.JavaGeneratorAddition, Oo = ue.createHotSwapPlugin(() => {
|
|
1880
1881
|
const e = "value";
|
|
1881
1882
|
function n(t) {
|
|
1882
|
-
return
|
|
1883
|
+
return N.stringToUpperCamel(t._attributes.name);
|
|
1883
1884
|
}
|
|
1884
1885
|
return {
|
|
1885
1886
|
unmount({ api: t }) {
|
|
1886
1887
|
t.commands.clearCaches(), t.commands._setCommandCodeProvider(() => []), t.commands._setFacadeCommandCodeProvider(() => []), t.commands._setAggCodeProvider(() => []), t.commands._setEventCodeProvider(() => []), t.commands._setReadModelCodeProvider(() => []), t.commands._setCodeFileProvider(() => []), t.commands.setContext({});
|
|
1887
1888
|
},
|
|
1888
1889
|
mount({ api: t }) {
|
|
1889
|
-
const o = t.states.context;
|
|
1890
|
-
function
|
|
1891
|
-
|
|
1892
|
-
|
|
1890
|
+
const o = t.states.context, s = t.states.designer.value._getContext().getDesignerOptions().ignoreValueObjects.map((r) => N.stringToLowerCamel(r));
|
|
1891
|
+
function a(r) {
|
|
1892
|
+
return !s.includes(N.stringToLowerCamel(r._attributes.name));
|
|
1893
|
+
}
|
|
1894
|
+
function c(r, i) {
|
|
1895
|
+
return a(i) ? N.stringToUpperCamel(i._attributes.name) : v(r, i);
|
|
1896
|
+
}
|
|
1897
|
+
function g(r, i) {
|
|
1898
|
+
for (const l of i) {
|
|
1899
|
+
if (!a(l)) {
|
|
1900
|
+
v(r, l);
|
|
1901
|
+
continue;
|
|
1902
|
+
}
|
|
1903
|
+
r.add(
|
|
1904
|
+
`${o.value.namespace}.${o.value.moduleName}.${e}.${n(l)}`
|
|
1905
|
+
);
|
|
1906
|
+
}
|
|
1907
|
+
}
|
|
1908
|
+
function v(r, i) {
|
|
1909
|
+
const l = o.value.additions, m = N.stringToLowerSnake(i._attributes.name).replace(/_/, " ");
|
|
1910
|
+
return /\b(time|timestamp|date|deadline|expire)\b/.test(m) ? l.has(O.Timezone) ? (r.add("java.time.OffsetDateTime"), "OffsetDateTime") : (r.add("java.time.LocalDateTime"), "LocalDateTime") : /\b(enum|gender|sex|count|amount|num|number|flag|times)\b/.test(m) ? "Integer" : /\b(price)$/.test(m) ? (r.add("java.math.BigDecimal"), "BigDecimal") : /^(if|is)\b/.test(m) ? "Boolean" : Ee(i) && (i._attributes.type === "Id" || i._attributes.type === "Version") ? "Long" : "String";
|
|
1893
1911
|
}
|
|
1894
1912
|
t.commands._setInfoCodeProvider(
|
|
1895
|
-
(
|
|
1896
|
-
const
|
|
1897
|
-
|
|
1898
|
-
const
|
|
1899
|
-
return
|
|
1913
|
+
(r) => {
|
|
1914
|
+
const i = /* @__PURE__ */ new Set();
|
|
1915
|
+
i.add(o.value.nonNullAnnotation);
|
|
1916
|
+
const l = o.value.nonNullAnnotation.split(".").pop(), m = n(r), C = o.value.additions, p = [];
|
|
1917
|
+
return C.has(O.RecordVakueObject) ? (p.push(`public record ${m}(@${l} ${v(i, r)} value) {`), p.push(` public ${m} {`), p.push(" // HACK check value"), p.push(" }"), p.push("}")) : C.has(O.Lombok) ? (p.push("@lombok.Getter"), p.push(`public class ${m} {`), p.push(` private final ${v(i, r)} value;`), p.push(""), p.push(` public ${m} (@${l} ${v(i, r)} value) {`), p.push(" // HACK check value"), p.push(" this.value = value;"), p.push(" }"), p.push("}")) : (p.push(`public class ${n(r)} {`), p.push(` private final ${v(i, r)} value;`), p.push(""), p.push(` public ${m} (@${l} ${v(i, r)} value) {`), p.push(" // HACK check value"), p.push(" this.value = value;"), p.push(" }"), p.push(""), p.push(` public ${v(i, r)} getValue() {`), p.push(" return this.value;"), p.push(" }"), p.push("}")), [
|
|
1900
1918
|
{
|
|
1901
1919
|
type: "Info",
|
|
1902
|
-
imports:
|
|
1903
|
-
content:
|
|
1920
|
+
imports: i,
|
|
1921
|
+
content: p.join(`
|
|
1904
1922
|
`)
|
|
1905
1923
|
}
|
|
1906
1924
|
];
|
|
1907
1925
|
}
|
|
1908
1926
|
);
|
|
1909
|
-
function r
|
|
1910
|
-
const
|
|
1927
|
+
function d(r) {
|
|
1928
|
+
const i = [], l = o.value.additions, m = o.value.nonNullAnnotation.split(".").pop();
|
|
1911
1929
|
{
|
|
1912
|
-
const
|
|
1913
|
-
|
|
1914
|
-
const
|
|
1915
|
-
|
|
1916
|
-
l.
|
|
1917
|
-
|
|
1918
|
-
)
|
|
1919
|
-
|
|
1920
|
-
|
|
1921
|
-
|
|
1922
|
-
|
|
1923
|
-
|
|
1924
|
-
|
|
1925
|
-
|
|
1930
|
+
const C = /* @__PURE__ */ new Set();
|
|
1931
|
+
C.add(o.value.nonNullAnnotation);
|
|
1932
|
+
const p = n(r), f = [], $ = Object.values(r.inner);
|
|
1933
|
+
if (g(C, $), l.has(O.RecordVakueObject)) {
|
|
1934
|
+
l.has(O.LombokBuilder) && f.push("@lombok.Builder(toBuilder = true)"), f.push(`public record ${p}(`);
|
|
1935
|
+
const _ = [];
|
|
1936
|
+
for (const b of $) {
|
|
1937
|
+
const h = n(b);
|
|
1938
|
+
_.push(
|
|
1939
|
+
` @${m}
|
|
1940
|
+
${c(
|
|
1941
|
+
C,
|
|
1942
|
+
b
|
|
1943
|
+
)} ${N.lowerFirst(h)}`
|
|
1944
|
+
);
|
|
1926
1945
|
}
|
|
1927
|
-
|
|
1928
|
-
`)),
|
|
1929
|
-
} else if (
|
|
1930
|
-
|
|
1931
|
-
for (const
|
|
1932
|
-
const
|
|
1933
|
-
|
|
1946
|
+
f.push(_.join(`,
|
|
1947
|
+
`)), f.push(") {"), f.push(` public ${p} {`), f.push(" // HACK check value"), f.push(" }"), f.push("}");
|
|
1948
|
+
} else if (l.has(O.Lombok)) {
|
|
1949
|
+
f.push("@lombok.AllArgsConstructor"), f.push("@lombok.Getter"), l.has(O.LombokBuilder) && f.push("@lombok.Builder(toBuilder = true)"), f.push(`public class ${p} {`);
|
|
1950
|
+
for (const _ of $) {
|
|
1951
|
+
const b = n(_);
|
|
1952
|
+
f.push(` @${m}`), f.push(
|
|
1953
|
+
` private final ${c(C, _)} ${N.lowerFirst(b)};`
|
|
1954
|
+
);
|
|
1934
1955
|
}
|
|
1935
|
-
|
|
1956
|
+
f.push("}");
|
|
1936
1957
|
} else {
|
|
1937
|
-
|
|
1938
|
-
for (const
|
|
1939
|
-
const
|
|
1940
|
-
|
|
1958
|
+
f.push(`public class ${p} {`);
|
|
1959
|
+
for (const h of $) {
|
|
1960
|
+
const u = n(h);
|
|
1961
|
+
f.push(` @${m}`), f.push(
|
|
1962
|
+
` private final ${c(C, h)} ${N.lowerFirst(u)};`
|
|
1963
|
+
);
|
|
1941
1964
|
}
|
|
1942
|
-
|
|
1943
|
-
const
|
|
1944
|
-
for (const
|
|
1945
|
-
const
|
|
1946
|
-
|
|
1965
|
+
f.push("");
|
|
1966
|
+
const _ = [], b = [];
|
|
1967
|
+
for (const h of $) {
|
|
1968
|
+
const u = n(h);
|
|
1969
|
+
_.push(
|
|
1970
|
+
`@${m} ${v(C, h)} ${N.lowerFirst(u)}`
|
|
1971
|
+
), b.push(`this.${N.lowerFirst(u)} = ${N.lowerFirst(u)};`);
|
|
1947
1972
|
}
|
|
1948
|
-
|
|
1949
|
-
`)}`),
|
|
1950
|
-
for (const
|
|
1951
|
-
const
|
|
1952
|
-
|
|
1973
|
+
f.push(` public ${p}(${_.join(", ")}) {`), f.push(` ${b.join(`
|
|
1974
|
+
`)}`), f.push(" }");
|
|
1975
|
+
for (const h of $) {
|
|
1976
|
+
const u = n(h);
|
|
1977
|
+
f.push(""), f.push(` public ${c(C, h)} get${u} () {`), f.push(` return this.${N.lowerFirst(u)};`), f.push(" }");
|
|
1953
1978
|
}
|
|
1954
|
-
|
|
1979
|
+
f.push("}");
|
|
1955
1980
|
}
|
|
1956
|
-
|
|
1981
|
+
i.push({
|
|
1957
1982
|
type: "Command",
|
|
1958
|
-
imports:
|
|
1959
|
-
content:
|
|
1983
|
+
imports: C,
|
|
1984
|
+
content: f.join(`
|
|
1960
1985
|
`)
|
|
1961
1986
|
});
|
|
1962
1987
|
}
|
|
1963
|
-
if (!
|
|
1964
|
-
return
|
|
1988
|
+
if (!l.has(O.CommandHandler))
|
|
1989
|
+
return i;
|
|
1965
1990
|
{
|
|
1966
|
-
const
|
|
1967
|
-
|
|
1968
|
-
const
|
|
1969
|
-
|
|
1970
|
-
const
|
|
1971
|
-
(
|
|
1991
|
+
const C = /* @__PURE__ */ new Set();
|
|
1992
|
+
C.add(o.value.nonNullAnnotation);
|
|
1993
|
+
const p = n(r), f = [];
|
|
1994
|
+
l.has(O.SpringFramework) && (C.add("org.springframework.stereotype.Component"), f.push("@Component")), l.has(O.Lombok) && f.push("@lombok.RequiredArgsConstructor"), f.push(`public class ${p}Handler {`);
|
|
1995
|
+
const $ = [...t.states.designer.value._getContext().getAssociationMap()[r._attributes.__id]].filter(
|
|
1996
|
+
(_) => _._attributes.rule === "Agg"
|
|
1972
1997
|
);
|
|
1973
|
-
for (const
|
|
1974
|
-
|
|
1975
|
-
|
|
1998
|
+
for (const _ of $)
|
|
1999
|
+
C.add(`${o.value.namespace}.${o.value.moduleName}.${n(_)}`), f.push(` public ${n(_)} handle(@${m} ${p} command) {`), f.push(" // HACK Implement"), f.push(" }");
|
|
2000
|
+
f.push("}"), i.push({
|
|
1976
2001
|
type: "CommandHandler",
|
|
1977
|
-
imports:
|
|
1978
|
-
content:
|
|
2002
|
+
imports: C,
|
|
2003
|
+
content: f.join(`
|
|
1979
2004
|
`)
|
|
1980
2005
|
});
|
|
1981
2006
|
}
|
|
1982
|
-
return
|
|
2007
|
+
return i;
|
|
1983
2008
|
}
|
|
1984
|
-
t.commands._setCommandCodeProvider(
|
|
1985
|
-
(
|
|
1986
|
-
const
|
|
2009
|
+
t.commands._setCommandCodeProvider(d), t.commands._setFacadeCommandCodeProvider(d), t.commands._setAggCodeProvider(
|
|
2010
|
+
(r) => {
|
|
2011
|
+
const i = o.value.additions, l = t.states.designer.value, m = o.value.nonNullAnnotation.split(".").pop(), C = n(r), p = [];
|
|
1987
2012
|
{
|
|
1988
|
-
const
|
|
1989
|
-
|
|
1990
|
-
const
|
|
1991
|
-
for (const
|
|
1992
|
-
const
|
|
1993
|
-
|
|
2013
|
+
const f = /* @__PURE__ */ new Set();
|
|
2014
|
+
f.add(o.value.nonNullAnnotation);
|
|
2015
|
+
const $ = [], _ = [], b = [...l._getContext().getAssociationMap()[r._attributes.__id]].filter((h) => h._attributes.rule === "Command" || h._attributes.rule === "FacadeCommand");
|
|
2016
|
+
for (const h of b) {
|
|
2017
|
+
const u = n(h);
|
|
2018
|
+
_.push(`public void handle${u}(@${m} ${u} command);`);
|
|
1994
2019
|
}
|
|
1995
|
-
|
|
2020
|
+
$.push(`public interface ${C} {`), $.push(` ${_.join(`
|
|
1996
2021
|
|
|
1997
|
-
`)}`),
|
|
2022
|
+
`)}`), $.push("}"), p.push({
|
|
1998
2023
|
type: "Agg",
|
|
1999
|
-
imports:
|
|
2000
|
-
content:
|
|
2024
|
+
imports: f,
|
|
2025
|
+
content: $.join(`
|
|
2001
2026
|
`)
|
|
2002
2027
|
});
|
|
2003
2028
|
}
|
|
2004
2029
|
{
|
|
2005
|
-
const
|
|
2006
|
-
|
|
2007
|
-
const
|
|
2008
|
-
|
|
2009
|
-
|
|
2010
|
-
|
|
2011
|
-
|
|
2012
|
-
|
|
2013
|
-
d.push("@lombok.AllArgsConstructor"), d.push("@lombok.Getter"), d.push(`public class ${l}Impl implements ${l} {`);
|
|
2014
|
-
for (const v of g) {
|
|
2015
|
-
const m = n(v);
|
|
2016
|
-
d.push(` @${p}`), d.push(` private ${m} ${$.lowerFirst(m)};`);
|
|
2030
|
+
const f = /* @__PURE__ */ new Set();
|
|
2031
|
+
f.add(o.value.nonNullAnnotation);
|
|
2032
|
+
const $ = [], _ = Object.values(r.inner);
|
|
2033
|
+
if (g(f, _), i.has(O.Lombok)) {
|
|
2034
|
+
$.push("@lombok.AllArgsConstructor"), $.push("@lombok.Getter"), $.push(`public class ${C}Impl implements ${C} {`);
|
|
2035
|
+
for (const h of _) {
|
|
2036
|
+
const u = n(h);
|
|
2037
|
+
$.push(` @${m}`), $.push(` private ${c(f, h)} ${N.lowerFirst(u)};`);
|
|
2017
2038
|
}
|
|
2018
|
-
const
|
|
2019
|
-
for (const
|
|
2020
|
-
const
|
|
2021
|
-
|
|
2022
|
-
` public void handle${
|
|
2023
|
-
|
|
2039
|
+
const b = [...l._getContext().getAssociationMap()[r._attributes.__id]].filter((h) => h._attributes.rule === "Command" || h._attributes.rule === "FacadeCommand");
|
|
2040
|
+
for (const h of b) {
|
|
2041
|
+
const u = n(h);
|
|
2042
|
+
$.push(""), $.push(
|
|
2043
|
+
` public void handle${u}(@${m} ${u} ${N.lowerFirst(
|
|
2044
|
+
u
|
|
2024
2045
|
)}) {`
|
|
2025
|
-
),
|
|
2046
|
+
), $.push(" // HACK need implement"), $.push(" }");
|
|
2026
2047
|
}
|
|
2027
|
-
|
|
2048
|
+
$.push("}");
|
|
2028
2049
|
} else {
|
|
2029
|
-
|
|
2030
|
-
for (const
|
|
2031
|
-
const
|
|
2032
|
-
|
|
2050
|
+
$.push(`public class ${C}Impl implements ${C} {`);
|
|
2051
|
+
for (const w of _) {
|
|
2052
|
+
const y = n(w);
|
|
2053
|
+
$.push(` @${m}`), $.push(` private ${c(f, w)} ${N.lowerFirst(y)};`);
|
|
2033
2054
|
}
|
|
2034
|
-
|
|
2035
|
-
const
|
|
2036
|
-
for (const
|
|
2037
|
-
const
|
|
2038
|
-
|
|
2055
|
+
$.push("");
|
|
2056
|
+
const b = [], h = [];
|
|
2057
|
+
for (const w of _) {
|
|
2058
|
+
const y = n(w);
|
|
2059
|
+
b.push(
|
|
2060
|
+
`@${m} ${c(f, w)} ${N.lowerFirst(y)}`
|
|
2061
|
+
), h.push(`this.${N.lowerFirst(y)} = ${N.lowerFirst(y)};`);
|
|
2039
2062
|
}
|
|
2040
|
-
|
|
2041
|
-
`)}`),
|
|
2042
|
-
for (const
|
|
2043
|
-
const
|
|
2044
|
-
|
|
2063
|
+
$.push(` public ${C}(${b.join(", ")}) {`), $.push(` ${h.join(`
|
|
2064
|
+
`)}`), $.push(" }");
|
|
2065
|
+
for (const w of _) {
|
|
2066
|
+
const y = n(w);
|
|
2067
|
+
$.push(""), $.push(` @${m}`), $.push(` public ${c(f, w)} get${y}() {`), $.push(` return this.${N.lowerFirst(y)};`), $.push(" }");
|
|
2045
2068
|
}
|
|
2046
|
-
const
|
|
2047
|
-
(
|
|
2069
|
+
const u = [...l._getContext().getAssociationMap()[r._attributes.__id]].filter(
|
|
2070
|
+
(w) => w._attributes.rule === "Command" || w._attributes.rule === "FacadeCommand"
|
|
2048
2071
|
);
|
|
2049
|
-
for (const
|
|
2050
|
-
const
|
|
2051
|
-
|
|
2052
|
-
` public void handle${
|
|
2053
|
-
|
|
2072
|
+
for (const w of u) {
|
|
2073
|
+
const y = n(w);
|
|
2074
|
+
$.push(""), $.push(
|
|
2075
|
+
` public void handle${y}(@${m} ${y} ${N.lowerFirst(
|
|
2076
|
+
y
|
|
2054
2077
|
)}) {`
|
|
2055
|
-
),
|
|
2078
|
+
), $.push(" // HACK need implement"), $.push(" }");
|
|
2056
2079
|
}
|
|
2057
|
-
|
|
2080
|
+
$.push("}");
|
|
2058
2081
|
}
|
|
2059
|
-
|
|
2082
|
+
p.push({
|
|
2060
2083
|
type: "AggImpl",
|
|
2061
|
-
imports:
|
|
2062
|
-
content:
|
|
2084
|
+
imports: f,
|
|
2085
|
+
content: $.join(`
|
|
2063
2086
|
`)
|
|
2064
2087
|
});
|
|
2065
2088
|
}
|
|
2066
|
-
return
|
|
2089
|
+
return p;
|
|
2067
2090
|
}
|
|
2068
2091
|
), t.commands._setEventCodeProvider(
|
|
2069
|
-
(
|
|
2070
|
-
const
|
|
2071
|
-
|
|
2072
|
-
const
|
|
2073
|
-
|
|
2074
|
-
|
|
2075
|
-
|
|
2076
|
-
)
|
|
2077
|
-
|
|
2078
|
-
|
|
2079
|
-
|
|
2080
|
-
|
|
2081
|
-
|
|
2082
|
-
|
|
2083
|
-
|
|
2092
|
+
(r) => {
|
|
2093
|
+
const i = /* @__PURE__ */ new Set();
|
|
2094
|
+
i.add(o.value.nonNullAnnotation);
|
|
2095
|
+
const l = o.value.nonNullAnnotation.split(".").pop(), m = o.value.additions, C = n(r), p = [], f = Object.values(r.inner);
|
|
2096
|
+
if (g(i, f), m.has(O.RecordVakueObject)) {
|
|
2097
|
+
m.has(O.LombokBuilder) && p.push("@lombok.Builder(toBuilder = true)"), p.push(`public record ${C}(`);
|
|
2098
|
+
const $ = [];
|
|
2099
|
+
for (const _ of f) {
|
|
2100
|
+
const b = n(_);
|
|
2101
|
+
$.push(
|
|
2102
|
+
` @${l}
|
|
2103
|
+
${c(
|
|
2104
|
+
i,
|
|
2105
|
+
_
|
|
2106
|
+
)} ${N.lowerFirst(b)}`
|
|
2107
|
+
);
|
|
2084
2108
|
}
|
|
2085
|
-
|
|
2086
|
-
`)),
|
|
2087
|
-
} else if (
|
|
2088
|
-
|
|
2089
|
-
for (const
|
|
2090
|
-
const
|
|
2091
|
-
|
|
2109
|
+
p.push($.join(`,
|
|
2110
|
+
`)), p.push(") {"), p.push(` public ${C} {`), p.push(" // HACK check value"), p.push(" }"), p.push("}");
|
|
2111
|
+
} else if (m.has(O.Lombok)) {
|
|
2112
|
+
p.push("@lombok.AllArgsConstructor"), p.push("@lombok.Getter"), m.has(O.LombokBuilder) && p.push("@lombok.Builder(toBuilder = true)"), p.push(`public class ${C} {`);
|
|
2113
|
+
for (const $ of f) {
|
|
2114
|
+
const _ = n($);
|
|
2115
|
+
p.push(` @${l}`), p.push(
|
|
2116
|
+
` private final ${c(i, $)} ${N.lowerFirst(_)};`
|
|
2117
|
+
);
|
|
2092
2118
|
}
|
|
2093
|
-
|
|
2119
|
+
p.push("}");
|
|
2094
2120
|
} else {
|
|
2095
|
-
|
|
2096
|
-
for (const
|
|
2097
|
-
const
|
|
2098
|
-
|
|
2121
|
+
p.push(`public class ${C} {`);
|
|
2122
|
+
for (const b of f) {
|
|
2123
|
+
const h = n(b);
|
|
2124
|
+
p.push(` @${l}`), p.push(` private final ${h} ${N.lowerFirst(h)};`);
|
|
2099
2125
|
}
|
|
2100
|
-
|
|
2101
|
-
const
|
|
2102
|
-
for (const
|
|
2103
|
-
const
|
|
2104
|
-
|
|
2126
|
+
p.push("");
|
|
2127
|
+
const $ = [], _ = [];
|
|
2128
|
+
for (const b of f) {
|
|
2129
|
+
const h = n(b);
|
|
2130
|
+
$.push(
|
|
2131
|
+
`@${l} ${v(i, b)} ${N.lowerFirst(h)}`
|
|
2132
|
+
), _.push(`this.${N.lowerFirst(h)} = ${N.lowerFirst(h)};`);
|
|
2105
2133
|
}
|
|
2106
|
-
|
|
2107
|
-
`)}`),
|
|
2108
|
-
for (const
|
|
2109
|
-
const
|
|
2110
|
-
|
|
2134
|
+
p.push(` public ${C}(${$.join(", ")}) {`), p.push(` ${_.join(`
|
|
2135
|
+
`)}`), p.push(" }");
|
|
2136
|
+
for (const b of f) {
|
|
2137
|
+
const h = n(b);
|
|
2138
|
+
p.push(""), p.push(` public ${h} get${h} () {`), p.push(` return this.${N.lowerFirst(h)};`), p.push(" }");
|
|
2111
2139
|
}
|
|
2112
|
-
|
|
2140
|
+
p.push("}");
|
|
2113
2141
|
}
|
|
2114
2142
|
return [
|
|
2115
2143
|
{
|
|
2116
2144
|
type: "Event",
|
|
2117
|
-
imports:
|
|
2118
|
-
content:
|
|
2145
|
+
imports: i,
|
|
2146
|
+
content: p.join(`
|
|
2119
2147
|
`)
|
|
2120
2148
|
}
|
|
2121
2149
|
];
|
|
2122
2150
|
}
|
|
2123
2151
|
), t.commands._setReadModelCodeProvider(() => []), t.commands._setCodeFileProvider(() => {
|
|
2124
|
-
const
|
|
2125
|
-
function
|
|
2126
|
-
for (const
|
|
2127
|
-
|
|
2128
|
-
if (c[`${h.join("/")}/${v}`] === !0)
|
|
2152
|
+
const r = [], i = {};
|
|
2153
|
+
function l($) {
|
|
2154
|
+
for (const _ of Object.values($)) {
|
|
2155
|
+
if (!a(_))
|
|
2129
2156
|
continue;
|
|
2130
|
-
const
|
|
2131
|
-
if (
|
|
2157
|
+
const b = [...o.value.namespace.split(/\./), o.value.moduleName, e], h = n(_) + ".java";
|
|
2158
|
+
if (i[`${b.join("/")}/${h}`] === !0)
|
|
2132
2159
|
continue;
|
|
2133
|
-
const
|
|
2134
|
-
|
|
2135
|
-
|
|
2136
|
-
|
|
2137
|
-
|
|
2160
|
+
const u = t.commands._genInfoCode(_);
|
|
2161
|
+
if (u.length === 0)
|
|
2162
|
+
continue;
|
|
2163
|
+
const w = new j(b, h);
|
|
2164
|
+
w.appendContentln(`package ${o.value.namespace}.${o.value.moduleName}.${e};`), w.appendContentln("");
|
|
2165
|
+
for (const y of u[0].imports)
|
|
2166
|
+
w.appendContentln(`import ${y};`);
|
|
2167
|
+
w.appendContentln(""), w.appendContentln(u[0].content), r.push(w), i[`${b.join("/")}/${h}`] = !0;
|
|
2138
2168
|
}
|
|
2139
2169
|
}
|
|
2140
|
-
const
|
|
2141
|
-
for (const
|
|
2142
|
-
|
|
2143
|
-
const
|
|
2144
|
-
|
|
2145
|
-
if (
|
|
2146
|
-
const
|
|
2147
|
-
|
|
2148
|
-
for (const
|
|
2149
|
-
|
|
2150
|
-
|
|
2151
|
-
} else if (
|
|
2152
|
-
const
|
|
2153
|
-
|
|
2154
|
-
for (const
|
|
2155
|
-
|
|
2156
|
-
|
|
2170
|
+
const m = t.states.designer.value._getContext().getCommands();
|
|
2171
|
+
for (const $ of m) {
|
|
2172
|
+
l($.inner);
|
|
2173
|
+
const _ = t.commands._genCommandCode($), b = [...o.value.namespace.split(/\./), o.value.moduleName];
|
|
2174
|
+
_.forEach((h) => {
|
|
2175
|
+
if (h.type === "Command") {
|
|
2176
|
+
const u = new j(b, n($) + ".java");
|
|
2177
|
+
u.appendContentln(`package ${o.value.namespace}.${o.value.moduleName};`), u.appendContentln(""), u.addImports(h.imports);
|
|
2178
|
+
for (const w of h.imports)
|
|
2179
|
+
u.appendContentln(`import ${w};`);
|
|
2180
|
+
u.appendContentln(""), u.appendContentln(h.content), r.push(u);
|
|
2181
|
+
} else if (h.type === "CommandHandler") {
|
|
2182
|
+
const u = new j(b, n($) + "Handler.java");
|
|
2183
|
+
u.appendContentln(`package ${o.value.namespace}.${o.value.moduleName};`), u.appendContentln(""), u.addImports(h.imports);
|
|
2184
|
+
for (const w of h.imports)
|
|
2185
|
+
u.appendContentln(`import ${w};`);
|
|
2186
|
+
u.appendContentln(""), u.appendContentln(h.content), r.push(u);
|
|
2157
2187
|
} else
|
|
2158
|
-
isNever(
|
|
2188
|
+
isNever(h.type);
|
|
2159
2189
|
});
|
|
2160
2190
|
}
|
|
2161
|
-
const
|
|
2162
|
-
for (const
|
|
2163
|
-
|
|
2164
|
-
const
|
|
2165
|
-
|
|
2166
|
-
if (
|
|
2167
|
-
const
|
|
2168
|
-
|
|
2169
|
-
for (const
|
|
2170
|
-
|
|
2171
|
-
|
|
2191
|
+
const C = t.states.designer.value._getContext().getFacadeCommands();
|
|
2192
|
+
for (const $ of C) {
|
|
2193
|
+
l($.inner);
|
|
2194
|
+
const _ = t.commands._genFacadeCommandCode($), b = [...o.value.namespace.split(/\./), o.value.moduleName];
|
|
2195
|
+
_.forEach((h) => {
|
|
2196
|
+
if (h.type === "FacadeCommand") {
|
|
2197
|
+
const u = new j(b, n($) + ".java");
|
|
2198
|
+
u.appendContentln(`package ${o.value.namespace}.${o.value.moduleName};`), u.appendContentln(""), u.addImports(h.imports);
|
|
2199
|
+
for (const w of h.imports)
|
|
2200
|
+
u.appendContentln(`import ${w};`);
|
|
2201
|
+
u.appendContentln(""), u.appendContentln(h.content), r.push(u);
|
|
2172
2202
|
} else
|
|
2173
|
-
isNever(
|
|
2203
|
+
isNever(h.type);
|
|
2174
2204
|
});
|
|
2175
2205
|
}
|
|
2176
|
-
const
|
|
2177
|
-
for (const
|
|
2178
|
-
|
|
2179
|
-
const
|
|
2180
|
-
|
|
2181
|
-
if (
|
|
2182
|
-
const
|
|
2183
|
-
|
|
2184
|
-
for (const
|
|
2185
|
-
|
|
2186
|
-
|
|
2187
|
-
} else if (
|
|
2188
|
-
const
|
|
2189
|
-
|
|
2190
|
-
for (const
|
|
2191
|
-
|
|
2192
|
-
|
|
2206
|
+
const p = t.states.designer.value._getContext().getAggs();
|
|
2207
|
+
for (const $ of p) {
|
|
2208
|
+
l($.inner);
|
|
2209
|
+
const _ = t.commands._genAggCode($), b = [...o.value.namespace.split(/\./), o.value.moduleName];
|
|
2210
|
+
_.forEach((h) => {
|
|
2211
|
+
if (h.type === "Agg") {
|
|
2212
|
+
const u = new j(b, n($) + ".java");
|
|
2213
|
+
u.appendContentln(`package ${o.value.namespace}.${o.value.moduleName};`), u.appendContentln(""), u.addImports(h.imports);
|
|
2214
|
+
for (const w of h.imports)
|
|
2215
|
+
u.appendContentln(`import ${w};`);
|
|
2216
|
+
u.appendContentln(""), u.appendContentln(h.content), r.push(u);
|
|
2217
|
+
} else if (h.type === "AggImpl") {
|
|
2218
|
+
const u = new j(b, n($) + "Impl.java");
|
|
2219
|
+
u.appendContentln(`package ${o.value.namespace}.${o.value.moduleName};`), u.appendContentln(""), u.addImports(h.imports);
|
|
2220
|
+
for (const w of h.imports)
|
|
2221
|
+
u.appendContentln(`import ${w};`);
|
|
2222
|
+
u.appendContentln(""), u.appendContentln(h.content), r.push(u);
|
|
2193
2223
|
} else
|
|
2194
|
-
isNever(
|
|
2224
|
+
isNever(h.type);
|
|
2195
2225
|
});
|
|
2196
2226
|
}
|
|
2197
|
-
const
|
|
2198
|
-
for (const
|
|
2199
|
-
|
|
2200
|
-
const
|
|
2201
|
-
|
|
2202
|
-
const
|
|
2203
|
-
|
|
2204
|
-
for (const
|
|
2205
|
-
|
|
2206
|
-
|
|
2227
|
+
const f = t.states.designer.value._getContext().getEvents();
|
|
2228
|
+
for (const $ of f) {
|
|
2229
|
+
l($.inner);
|
|
2230
|
+
const _ = t.commands._genEventCode($), b = [...o.value.namespace.split(/\./), o.value.moduleName];
|
|
2231
|
+
_.forEach((h) => {
|
|
2232
|
+
const u = new j(b, n($) + ".java");
|
|
2233
|
+
u.appendContentln(`package ${o.value.namespace}.${o.value.moduleName};`), u.appendContentln(""), u.addImports(h.imports);
|
|
2234
|
+
for (const w of h.imports)
|
|
2235
|
+
u.appendContentln(`import ${w};`);
|
|
2236
|
+
u.appendContentln(""), u.appendContentln(h.content), r.push(u);
|
|
2207
2237
|
});
|
|
2208
2238
|
}
|
|
2209
|
-
return
|
|
2239
|
+
return r;
|
|
2210
2240
|
});
|
|
2211
2241
|
}
|
|
2212
2242
|
};
|
|
2213
|
-
}),
|
|
2243
|
+
}), Te = we.KotlinGeneratorAddition, Ao = ue.createHotSwapPlugin(() => ({
|
|
2214
2244
|
unmount({ api: e }) {
|
|
2215
2245
|
e.commands.clearCaches(), e.commands._setCommandCodeProvider(() => []), e.commands._setFacadeCommandCodeProvider(() => []), e.commands._setAggCodeProvider(() => []), e.commands._setEventCodeProvider(() => []), e.commands._setReadModelCodeProvider(() => []), e.commands._setCodeFileProvider(() => []), e.commands.setContext({});
|
|
2216
2246
|
},
|
|
2217
2247
|
mount({ api: e }) {
|
|
2218
|
-
const n = "value", t = e.states.context;
|
|
2219
|
-
function
|
|
2220
|
-
return
|
|
2248
|
+
const n = "value", t = e.states.context, o = e.states.designer.value._getContext().getDesignerOptions().ignoreValueObjects.map((d) => N.stringToLowerCamel(d));
|
|
2249
|
+
function s(d) {
|
|
2250
|
+
return !o.includes(N.stringToLowerCamel(d._attributes.name));
|
|
2251
|
+
}
|
|
2252
|
+
function a(d, r) {
|
|
2253
|
+
return s(r) ? N.stringToUpperCamel(r._attributes.name) : v(d, r);
|
|
2221
2254
|
}
|
|
2222
|
-
function
|
|
2223
|
-
|
|
2224
|
-
|
|
2255
|
+
function c(d) {
|
|
2256
|
+
return N.stringToUpperCamel(d._attributes.name);
|
|
2257
|
+
}
|
|
2258
|
+
function g(d, r) {
|
|
2259
|
+
for (const i of r) {
|
|
2260
|
+
if (!s(i)) {
|
|
2261
|
+
v(d, i);
|
|
2262
|
+
continue;
|
|
2263
|
+
}
|
|
2264
|
+
d.add(
|
|
2265
|
+
`${t.value.namespace}.${t.value.moduleName}.${n}.${c(i)}`
|
|
2266
|
+
);
|
|
2267
|
+
}
|
|
2268
|
+
}
|
|
2269
|
+
function v(d, r) {
|
|
2270
|
+
const i = t.value.additions, l = N.stringToLowerSnake(r._attributes.name).replace(/_/, " ");
|
|
2271
|
+
return /\b(time|timestamp|date|deadline|expire)\b/.test(l) ? i.has(Te.Timezone) ? (d.add("java.time.OffsetDateTime"), "OffsetDateTime") : (d.add("java.time.LocalDateTime"), "LocalDateTime") : /\b(enum|gender|sex|count|amount|num|number|flag|times)\b/.test(l) ? "Integer" : /\b(price)$/.test(l) ? (d.add("java.math.BigDecimal"), "BigDecimal") : /^(if|is)\b/.test(l) ? "Boolean" : Ee(r) && (r._attributes.type === "Id" || r._attributes.type === "Version") ? "Long" : "String";
|
|
2225
2272
|
}
|
|
2226
2273
|
e.commands._setInfoCodeProvider(
|
|
2227
|
-
(
|
|
2228
|
-
const
|
|
2229
|
-
return
|
|
2274
|
+
(d) => {
|
|
2275
|
+
const r = /* @__PURE__ */ new Set(), i = c(d), l = t.value.additions, m = [];
|
|
2276
|
+
return l.has(Te.ValueClass) ? (r.add("kotlin.jvm.JvmInline"), m.push("@JvmInline"), m.push(`value class ${i}(val value: ${v(r, d)})`)) : m.push(`data class ${i}(val value: ${v(r, d)})`), [
|
|
2230
2277
|
{
|
|
2231
2278
|
type: "Info",
|
|
2232
|
-
imports:
|
|
2233
|
-
content:
|
|
2279
|
+
imports: r,
|
|
2280
|
+
content: m.join(`
|
|
2234
2281
|
`)
|
|
2235
2282
|
}
|
|
2236
2283
|
];
|
|
2237
2284
|
}
|
|
2238
2285
|
), e.commands._setCommandCodeProvider(
|
|
2239
|
-
(
|
|
2240
|
-
const
|
|
2286
|
+
(d) => {
|
|
2287
|
+
const r = [], i = t.value.additions;
|
|
2241
2288
|
{
|
|
2242
|
-
const
|
|
2243
|
-
|
|
2244
|
-
|
|
2245
|
-
|
|
2246
|
-
);
|
|
2247
|
-
|
|
2248
|
-
for (const d of i) {
|
|
2249
|
-
const g = o(d);
|
|
2250
|
-
u.push(`val ${$.lowerFirst(g)}: ${g}`);
|
|
2289
|
+
const l = /* @__PURE__ */ new Set(), m = c(d), C = [], p = Object.values(d.inner);
|
|
2290
|
+
g(l, p);
|
|
2291
|
+
const f = [];
|
|
2292
|
+
for (const $ of p) {
|
|
2293
|
+
const _ = c($);
|
|
2294
|
+
f.push(`val ${N.lowerFirst(_)}: ${a(l, $)}`);
|
|
2251
2295
|
}
|
|
2252
|
-
|
|
2296
|
+
C.push(`data class ${m}(${f.join(", ")})`), r.push({
|
|
2253
2297
|
type: "Command",
|
|
2254
|
-
imports:
|
|
2255
|
-
content:
|
|
2298
|
+
imports: l,
|
|
2299
|
+
content: C.join(`
|
|
2256
2300
|
`)
|
|
2257
2301
|
});
|
|
2258
2302
|
}
|
|
2259
|
-
if (!
|
|
2260
|
-
return
|
|
2303
|
+
if (!i.has(Te.CommandHandler))
|
|
2304
|
+
return r;
|
|
2261
2305
|
{
|
|
2262
|
-
const
|
|
2263
|
-
|
|
2264
|
-
const
|
|
2265
|
-
(
|
|
2306
|
+
const l = /* @__PURE__ */ new Set(), m = c(d), C = [];
|
|
2307
|
+
C.push(`class ${m}Handler {`);
|
|
2308
|
+
const p = [...e.states.designer.value._getContext().getAssociationMap()[d._attributes.__id]].filter(
|
|
2309
|
+
(f) => f._attributes.rule === "Agg"
|
|
2266
2310
|
);
|
|
2267
|
-
for (const
|
|
2268
|
-
|
|
2269
|
-
|
|
2311
|
+
for (const f of p)
|
|
2312
|
+
l.add(`${t.value.namespace}.${t.value.moduleName}.${c(f)}`), C.push(` fun handle(command: ${m}): ${c(f)} {`), C.push(" // HACK Implement"), C.push(" }");
|
|
2313
|
+
C.push("}"), r.push({
|
|
2270
2314
|
type: "CommandHandler",
|
|
2271
|
-
imports:
|
|
2272
|
-
content:
|
|
2315
|
+
imports: l,
|
|
2316
|
+
content: C.join(`
|
|
2273
2317
|
`)
|
|
2274
2318
|
});
|
|
2275
2319
|
}
|
|
2276
|
-
return
|
|
2320
|
+
return r;
|
|
2277
2321
|
}
|
|
2278
2322
|
), e.commands._setFacadeCommandCodeProvider(
|
|
2279
|
-
(
|
|
2280
|
-
const
|
|
2281
|
-
|
|
2282
|
-
|
|
2283
|
-
|
|
2284
|
-
);
|
|
2285
|
-
|
|
2286
|
-
for (const i of p) {
|
|
2287
|
-
const u = o(i);
|
|
2288
|
-
l.push(`val ${$.lowerFirst(u)}: ${u}`);
|
|
2323
|
+
(d) => {
|
|
2324
|
+
const r = /* @__PURE__ */ new Set(), i = c(d), l = [], m = Object.values(d.inner);
|
|
2325
|
+
g(r, m);
|
|
2326
|
+
const C = [];
|
|
2327
|
+
for (const p of m) {
|
|
2328
|
+
const f = c(p);
|
|
2329
|
+
C.push(`val ${N.lowerFirst(f)}: ${a(r, p)}`);
|
|
2289
2330
|
}
|
|
2290
|
-
return
|
|
2331
|
+
return l.push(`data class ${i}(${C.join(", ")})`), [
|
|
2291
2332
|
{
|
|
2292
2333
|
type: "FacadeCommand",
|
|
2293
|
-
imports:
|
|
2294
|
-
content:
|
|
2334
|
+
imports: r,
|
|
2335
|
+
content: l.join(`
|
|
2295
2336
|
`)
|
|
2296
2337
|
}
|
|
2297
2338
|
];
|
|
2298
2339
|
}
|
|
2299
|
-
), e.commands._setAggCodeProvider((
|
|
2300
|
-
const
|
|
2301
|
-
|
|
2302
|
-
|
|
2303
|
-
|
|
2304
|
-
);
|
|
2305
|
-
|
|
2306
|
-
for (const g of u) {
|
|
2307
|
-
const h = o(g);
|
|
2308
|
-
i.push(`fun handle(command: ${h})`);
|
|
2340
|
+
), e.commands._setAggCodeProvider((d) => {
|
|
2341
|
+
const r = /* @__PURE__ */ new Set(), i = e.states.designer.value, l = c(d), m = [], C = Object.values(d.inner);
|
|
2342
|
+
g(r, C);
|
|
2343
|
+
const p = [], f = [...i._getContext().getAssociationMap()[d._attributes.__id]].filter((_) => _._attributes.rule === "Command" || _._attributes.rule === "FacadeCommand");
|
|
2344
|
+
for (const _ of f) {
|
|
2345
|
+
const b = c(_);
|
|
2346
|
+
p.push(`fun handle(command: ${b})`);
|
|
2309
2347
|
}
|
|
2310
|
-
|
|
2311
|
-
`)}`),
|
|
2312
|
-
const
|
|
2313
|
-
for (const
|
|
2314
|
-
const
|
|
2315
|
-
|
|
2348
|
+
m.push(`interface ${l} {`), m.push(` ${p.join(`
|
|
2349
|
+
`)}`), m.push("}"), m.push(""), m.push(`class ${l}Impl(`);
|
|
2350
|
+
const $ = [];
|
|
2351
|
+
for (const _ of C) {
|
|
2352
|
+
const b = c(_);
|
|
2353
|
+
$.push(`val ${N.lowerFirst(b)}: ${a(r, _)}`);
|
|
2316
2354
|
}
|
|
2317
|
-
|
|
2318
|
-
`)}`),
|
|
2319
|
-
for (const
|
|
2320
|
-
const
|
|
2321
|
-
|
|
2355
|
+
m.push(` ${$.join(`,
|
|
2356
|
+
`)}`), m.push(`): ${l} {`);
|
|
2357
|
+
for (const _ of f) {
|
|
2358
|
+
const b = c(_);
|
|
2359
|
+
m.push(` override fun handle(command: ${b}) {`), m.push(" // HACK Implement"), m.push(" }");
|
|
2322
2360
|
}
|
|
2323
|
-
return
|
|
2361
|
+
return m.push("}"), [
|
|
2324
2362
|
{
|
|
2325
2363
|
type: "Agg",
|
|
2326
|
-
imports:
|
|
2327
|
-
content:
|
|
2364
|
+
imports: r,
|
|
2365
|
+
content: m.join(`
|
|
2328
2366
|
`)
|
|
2329
2367
|
}
|
|
2330
2368
|
];
|
|
2331
2369
|
}), e.commands._setEventCodeProvider(
|
|
2332
|
-
(
|
|
2333
|
-
const
|
|
2334
|
-
|
|
2335
|
-
|
|
2336
|
-
|
|
2337
|
-
);
|
|
2338
|
-
|
|
2339
|
-
for (const i of p) {
|
|
2340
|
-
const u = o(i);
|
|
2341
|
-
l.push(`val ${$.lowerFirst(u)}: ${u}`);
|
|
2370
|
+
(d) => {
|
|
2371
|
+
const r = /* @__PURE__ */ new Set(), i = c(d), l = [], m = Object.values(d.inner);
|
|
2372
|
+
g(r, m);
|
|
2373
|
+
const C = [];
|
|
2374
|
+
for (const p of m) {
|
|
2375
|
+
const f = c(p);
|
|
2376
|
+
C.push(`val ${N.lowerFirst(f)}: ${a(r, p)}`);
|
|
2342
2377
|
}
|
|
2343
|
-
return
|
|
2378
|
+
return l.push(`data class ${i}(${C.join(", ")})`), [
|
|
2344
2379
|
{
|
|
2345
2380
|
type: "Event",
|
|
2346
|
-
imports:
|
|
2347
|
-
content:
|
|
2381
|
+
imports: r,
|
|
2382
|
+
content: l.join(`
|
|
2348
2383
|
`)
|
|
2349
2384
|
}
|
|
2350
2385
|
];
|
|
2351
2386
|
}
|
|
2352
2387
|
), e.commands._setReadModelCodeProvider(() => []), e.commands._setCodeFileProvider(() => {
|
|
2353
|
-
const
|
|
2354
|
-
function
|
|
2355
|
-
for (const
|
|
2356
|
-
|
|
2357
|
-
|
|
2388
|
+
const d = [], r = {};
|
|
2389
|
+
function i(f) {
|
|
2390
|
+
for (const $ of Object.values(f)) {
|
|
2391
|
+
if (!s($))
|
|
2392
|
+
continue;
|
|
2393
|
+
const _ = [...t.value.namespace.split(/\./), t.value.moduleName, n], b = c($) + ".kt";
|
|
2394
|
+
if (r[`${_.join("/")}/${b}`] === !0)
|
|
2358
2395
|
continue;
|
|
2359
|
-
const
|
|
2360
|
-
if (
|
|
2396
|
+
const h = e.commands._genInfoCode($);
|
|
2397
|
+
if (h.length === 0)
|
|
2361
2398
|
continue;
|
|
2362
|
-
const
|
|
2363
|
-
|
|
2364
|
-
for (const
|
|
2365
|
-
|
|
2366
|
-
|
|
2399
|
+
const u = new j(_, b);
|
|
2400
|
+
u.appendContentln(`package ${t.value.namespace}.${t.value.moduleName}.${n}`), u.appendContentln("");
|
|
2401
|
+
for (const w of h[0].imports)
|
|
2402
|
+
u.appendContentln(`import ${w}`);
|
|
2403
|
+
u.appendContentln(""), u.appendContentln(h[0].content), d.push(u), r[`${_.join("/")}/${b}`] = !0;
|
|
2367
2404
|
}
|
|
2368
2405
|
}
|
|
2369
|
-
const
|
|
2370
|
-
for (const
|
|
2371
|
-
|
|
2372
|
-
const
|
|
2373
|
-
|
|
2374
|
-
|
|
2406
|
+
const l = e.states.designer.value._getContext().getCommands();
|
|
2407
|
+
for (const f of l) {
|
|
2408
|
+
i(f.inner);
|
|
2409
|
+
const $ = e.commands._genCommandCode(f), _ = [...t.value.namespace.split(/\./), t.value.moduleName], b = new j(_, c(f) + ".kt"), h = [];
|
|
2410
|
+
b.appendContentln(`package ${t.value.namespace}.${t.value.moduleName}`), b.appendContentln(""), $.forEach((u) => {
|
|
2411
|
+
u.type === "Command" || u.type === "CommandHandler" ? (b.addImports(u.imports), h.push(u.content)) : isNever(u.type);
|
|
2375
2412
|
});
|
|
2376
|
-
for (const
|
|
2377
|
-
|
|
2378
|
-
|
|
2379
|
-
for (const
|
|
2380
|
-
|
|
2381
|
-
|
|
2413
|
+
for (const u of b.getImports())
|
|
2414
|
+
b.appendContentln(`import ${u}`);
|
|
2415
|
+
b.appendContentln("");
|
|
2416
|
+
for (const u of h)
|
|
2417
|
+
b.appendContentln(u);
|
|
2418
|
+
d.push(b);
|
|
2382
2419
|
}
|
|
2383
|
-
const
|
|
2384
|
-
for (const
|
|
2385
|
-
|
|
2386
|
-
const
|
|
2387
|
-
|
|
2388
|
-
if (
|
|
2389
|
-
const
|
|
2390
|
-
|
|
2391
|
-
for (const
|
|
2392
|
-
|
|
2393
|
-
|
|
2420
|
+
const m = e.states.designer.value._getContext().getFacadeCommands();
|
|
2421
|
+
for (const f of m) {
|
|
2422
|
+
i(f.inner);
|
|
2423
|
+
const $ = e.commands._genFacadeCommandCode(f), _ = [...t.value.namespace.split(/\./), t.value.moduleName];
|
|
2424
|
+
$.forEach((b) => {
|
|
2425
|
+
if (b.type === "FacadeCommand") {
|
|
2426
|
+
const h = new j(_, c(f) + ".kt");
|
|
2427
|
+
h.appendContentln(`package ${t.value.namespace}.${t.value.moduleName}`), h.appendContentln(""), h.addImports(b.imports);
|
|
2428
|
+
for (const u of b.imports)
|
|
2429
|
+
h.appendContentln(`import ${u}`);
|
|
2430
|
+
h.appendContentln(""), h.appendContentln(b.content), d.push(h);
|
|
2394
2431
|
} else
|
|
2395
|
-
isNever(
|
|
2432
|
+
isNever(b.type);
|
|
2396
2433
|
});
|
|
2397
2434
|
}
|
|
2398
|
-
const
|
|
2399
|
-
for (const
|
|
2400
|
-
|
|
2401
|
-
const
|
|
2402
|
-
|
|
2403
|
-
|
|
2435
|
+
const C = e.states.designer.value._getContext().getAggs();
|
|
2436
|
+
for (const f of C) {
|
|
2437
|
+
i(f.inner);
|
|
2438
|
+
const $ = e.commands._genAggCode(f), _ = [...t.value.namespace.split(/\./), t.value.moduleName], b = new j(_, c(f) + ".kt"), h = [];
|
|
2439
|
+
b.appendContentln(`package ${t.value.namespace}.${t.value.moduleName}`), b.appendContentln(""), $.forEach((u) => {
|
|
2440
|
+
u.type === "Agg" || u.type === "AggImpl" ? (b.addImports(u.imports), h.push(u.content)) : isNever(u.type);
|
|
2404
2441
|
});
|
|
2405
|
-
for (const
|
|
2406
|
-
|
|
2407
|
-
|
|
2408
|
-
for (const
|
|
2409
|
-
|
|
2410
|
-
|
|
2442
|
+
for (const u of b.getImports())
|
|
2443
|
+
b.appendContentln(`import ${u}`);
|
|
2444
|
+
b.appendContentln("");
|
|
2445
|
+
for (const u of h)
|
|
2446
|
+
b.appendContentln(u);
|
|
2447
|
+
d.push(b);
|
|
2411
2448
|
}
|
|
2412
|
-
const
|
|
2413
|
-
for (const
|
|
2414
|
-
|
|
2415
|
-
const
|
|
2416
|
-
|
|
2417
|
-
if (
|
|
2418
|
-
const
|
|
2419
|
-
|
|
2420
|
-
for (const
|
|
2421
|
-
|
|
2422
|
-
|
|
2449
|
+
const p = e.states.designer.value._getContext().getEvents();
|
|
2450
|
+
for (const f of p) {
|
|
2451
|
+
i(f.inner);
|
|
2452
|
+
const $ = e.commands._genEventCode(f), _ = [...t.value.namespace.split(/\./), t.value.moduleName];
|
|
2453
|
+
$.forEach((b) => {
|
|
2454
|
+
if (b.type === "Event") {
|
|
2455
|
+
const h = new j(_, c(f) + ".kt");
|
|
2456
|
+
h.appendContentln(`package ${t.value.namespace}.${t.value.moduleName}`), h.appendContentln(""), h.addImports(b.imports);
|
|
2457
|
+
for (const u of b.imports)
|
|
2458
|
+
h.appendContentln(`import ${u}`);
|
|
2459
|
+
h.appendContentln(""), h.appendContentln(b.content), d.push(h);
|
|
2423
2460
|
} else
|
|
2424
|
-
isNever(
|
|
2461
|
+
isNever(b.type);
|
|
2425
2462
|
});
|
|
2426
2463
|
}
|
|
2427
|
-
return
|
|
2464
|
+
return d;
|
|
2428
2465
|
});
|
|
2429
2466
|
}
|
|
2430
|
-
})),
|
|
2467
|
+
})), Io = ue.createHotSwapPlugin(() => ({
|
|
2431
2468
|
unmount({ api: e }) {
|
|
2432
2469
|
e.commands.clearCaches(), e.commands._setCommandCodeProvider(() => []), e.commands._setFacadeCommandCodeProvider(() => []), e.commands._setAggCodeProvider(() => []), e.commands._setEventCodeProvider(() => []), e.commands._setReadModelCodeProvider(() => []), e.commands._setCodeFileProvider(() => []), e.commands.setContext({});
|
|
2433
2470
|
},
|
|
2434
2471
|
mount({ api: e }) {
|
|
2435
|
-
const n = e.states.context;
|
|
2436
|
-
function
|
|
2437
|
-
return
|
|
2472
|
+
const n = e.states.context, t = e.states.designer.value._getContext().getDesignerOptions().ignoreValueObjects.map((v) => N.stringToLowerCamel(v));
|
|
2473
|
+
function o(v) {
|
|
2474
|
+
return !t.includes(N.stringToLowerCamel(v._attributes.name));
|
|
2475
|
+
}
|
|
2476
|
+
function s(v, d) {
|
|
2477
|
+
return o(d) ? N.stringToUpperCamel(d._attributes.name) : g(v, d);
|
|
2478
|
+
}
|
|
2479
|
+
function a(v) {
|
|
2480
|
+
return N.stringToUpperCamel(v._attributes.name);
|
|
2438
2481
|
}
|
|
2439
|
-
function
|
|
2440
|
-
return
|
|
2482
|
+
function c(v) {
|
|
2483
|
+
return N.stringToLowerCamel(v._attributes.name);
|
|
2441
2484
|
}
|
|
2442
|
-
function
|
|
2443
|
-
const
|
|
2444
|
-
return /\b(time|timestamp|date|deadline|expire)\b/.test(
|
|
2485
|
+
function g(v, d) {
|
|
2486
|
+
const r = N.stringToLowerSnake(d._attributes.name).replace(/_/, " ");
|
|
2487
|
+
return /\b(time|timestamp|date|deadline|expire)\b/.test(r) ? (v.add("time"), "time.Time") : /\b(enum|gender|sex|count|amount|num|number|flag|times)\b/.test(r) ? "int" : /\b(price)$/.test(r) ? "string" : /^(if|is)\b/.test(r) ? "bool" : Ee(d) && (d._attributes.type === "Id" || d._attributes.type === "Version") ? "int64" : "string";
|
|
2445
2488
|
}
|
|
2446
2489
|
e.commands._setInfoCodeProvider(
|
|
2447
|
-
(
|
|
2448
|
-
const
|
|
2449
|
-
return
|
|
2450
|
-
`func New${
|
|
2451
|
-
|
|
2490
|
+
(v) => {
|
|
2491
|
+
const d = /* @__PURE__ */ new Set(), r = [];
|
|
2492
|
+
return r.push(`type ${a(v)} struct {`), r.push(` value ${g(d, v)}`), r.push("}"), r.push(""), r.push(
|
|
2493
|
+
`func New${a(v)}(value ${g(
|
|
2494
|
+
d,
|
|
2495
|
+
v
|
|
2496
|
+
)}) ${a(v)} {`
|
|
2497
|
+
), r.push(" // HACK check value"), r.push(` return ${a(v)}{value}`), r.push("}"), r.push(
|
|
2498
|
+
`func (${c(v)} ${a(v)}) GetValue() ${g(
|
|
2499
|
+
d,
|
|
2500
|
+
v
|
|
2452
2501
|
)} {`
|
|
2453
|
-
),
|
|
2454
|
-
`func (${o(r)} ${t(r)}) GetValue() ${s(
|
|
2455
|
-
a,
|
|
2456
|
-
r
|
|
2457
|
-
)} {`
|
|
2458
|
-
), c.push(` return ${o(r)}.value`), c.push("}"), [{ type: "Info", imports: a, content: c.join(`
|
|
2502
|
+
), r.push(` return ${c(v)}.value`), r.push("}"), [{ type: "Info", imports: d, content: r.join(`
|
|
2459
2503
|
`) }];
|
|
2460
2504
|
}
|
|
2461
2505
|
), e.commands._setCommandCodeProvider(
|
|
2462
|
-
(
|
|
2463
|
-
const
|
|
2464
|
-
|
|
2465
|
-
const
|
|
2466
|
-
for (const
|
|
2467
|
-
|
|
2468
|
-
|
|
2469
|
-
for (const
|
|
2470
|
-
|
|
2471
|
-
`func (${
|
|
2472
|
-
|
|
2506
|
+
(v) => {
|
|
2507
|
+
const d = a(v), r = c(v), i = /* @__PURE__ */ new Set(), l = [];
|
|
2508
|
+
l.push(`type ${d} struct {`);
|
|
2509
|
+
const m = Object.values(v.inner);
|
|
2510
|
+
for (const f of m)
|
|
2511
|
+
l.push(` ${c(f)} ${s(i, f)}`);
|
|
2512
|
+
l.push("}");
|
|
2513
|
+
for (const f of m)
|
|
2514
|
+
l.push(
|
|
2515
|
+
`func (${r} ${d}) Get${a(f)} () ${s(
|
|
2516
|
+
i,
|
|
2517
|
+
f
|
|
2473
2518
|
)} {`
|
|
2474
|
-
),
|
|
2475
|
-
const
|
|
2476
|
-
for (const
|
|
2477
|
-
|
|
2478
|
-
return
|
|
2479
|
-
`)},`),
|
|
2519
|
+
), l.push(` return ${r}.${c(f)}`), l.push("}");
|
|
2520
|
+
const C = [], p = [];
|
|
2521
|
+
for (const f of m)
|
|
2522
|
+
C.push(`${c(f)} ${s(i, f)}`), p.push(c(f));
|
|
2523
|
+
return l.push(`func New${d}(${C.join(", ")}) ${d} {`), l.push(" // HACK check value"), l.push(` return ${d}{`), l.push(` ${p.join(`,
|
|
2524
|
+
`)},`), l.push(" }"), l.push("}"), [{ type: "Command", imports: i, content: l.join(`
|
|
2480
2525
|
`) }];
|
|
2481
2526
|
}
|
|
2482
2527
|
), e.commands._setFacadeCommandCodeProvider(
|
|
2483
|
-
(
|
|
2484
|
-
const
|
|
2485
|
-
|
|
2486
|
-
for (const
|
|
2487
|
-
|
|
2488
|
-
|
|
2489
|
-
for (const
|
|
2490
|
-
|
|
2491
|
-
`func (${
|
|
2492
|
-
|
|
2528
|
+
(v) => {
|
|
2529
|
+
const d = a(v), r = c(v), i = Object.values(v.inner), l = /* @__PURE__ */ new Set(), m = [];
|
|
2530
|
+
m.push(`type ${d} struct {`);
|
|
2531
|
+
for (const f of i)
|
|
2532
|
+
m.push(` ${c(f)} ${s(l, f)}`);
|
|
2533
|
+
m.push("}");
|
|
2534
|
+
for (const f of i)
|
|
2535
|
+
m.push(
|
|
2536
|
+
`func (${r} ${d}) Get${a(f)} () ${s(
|
|
2537
|
+
l,
|
|
2538
|
+
f
|
|
2493
2539
|
)} {`
|
|
2494
|
-
),
|
|
2495
|
-
const
|
|
2496
|
-
for (const
|
|
2497
|
-
|
|
2498
|
-
return
|
|
2499
|
-
`)},`),
|
|
2540
|
+
), m.push(` return ${r}.${c(f)}`), m.push("}");
|
|
2541
|
+
const C = [], p = [];
|
|
2542
|
+
for (const f of i)
|
|
2543
|
+
C.push(`${c(f)} ${s(l, f)}`), p.push(c(f));
|
|
2544
|
+
return m.push(`func New${d}(${C.join(", ")}) ${d} {`), m.push(" // HACK check value"), m.push(` return ${d}{`), m.push(` ${p.join(`,
|
|
2545
|
+
`)},`), m.push(" }"), m.push("}"), [
|
|
2500
2546
|
{
|
|
2501
2547
|
type: "FacadeCommand",
|
|
2502
|
-
imports:
|
|
2503
|
-
content:
|
|
2548
|
+
imports: l,
|
|
2549
|
+
content: m.join(`
|
|
2504
2550
|
`)
|
|
2505
2551
|
}
|
|
2506
2552
|
];
|
|
2507
2553
|
}
|
|
2508
|
-
), e.commands._setAggCodeProvider((
|
|
2509
|
-
const
|
|
2510
|
-
|
|
2511
|
-
for (const
|
|
2512
|
-
|
|
2513
|
-
|
|
2514
|
-
for (const
|
|
2515
|
-
|
|
2516
|
-
`func (${
|
|
2517
|
-
|
|
2518
|
-
|
|
2519
|
-
|
|
2520
|
-
|
|
2521
|
-
|
|
2522
|
-
|
|
2523
|
-
|
|
2524
|
-
|
|
2525
|
-
|
|
2526
|
-
|
|
2554
|
+
), e.commands._setAggCodeProvider((v) => {
|
|
2555
|
+
const d = e.states.designer.value, r = a(v), i = c(v), l = Object.values(v.inner), m = /* @__PURE__ */ new Set(), C = [];
|
|
2556
|
+
C.push(`type ${r} struct {`);
|
|
2557
|
+
for (const _ of l)
|
|
2558
|
+
C.push(` ${c(_)} ${s(m, _)}`);
|
|
2559
|
+
C.push("}");
|
|
2560
|
+
for (const _ of l)
|
|
2561
|
+
C.push(
|
|
2562
|
+
`func (${i} ${r}) Get${a(_)} () ${s(
|
|
2563
|
+
m,
|
|
2564
|
+
_
|
|
2565
|
+
)} {`
|
|
2566
|
+
), C.push(` return ${i}.${c(_)}`), C.push("}");
|
|
2567
|
+
const p = [], f = [];
|
|
2568
|
+
for (const _ of l)
|
|
2569
|
+
p.push(`${c(_)} ${s(m, _)}`), f.push(c(_));
|
|
2570
|
+
C.push(`func New${r}(${p.join(", ")}) ${r} {`), C.push(" // HACK check value"), C.push(` return ${r}{`), C.push(` ${f.join(`,
|
|
2571
|
+
`)},`), C.push(" }"), C.push("}"), C.push("");
|
|
2572
|
+
const $ = [...d._getContext().getAssociationMap()[v._attributes.__id]].filter((_) => _._attributes.rule === "Command" || _._attributes.rule === "FacadeCommand");
|
|
2573
|
+
for (const _ of $) {
|
|
2574
|
+
const b = a(_), h = c(_);
|
|
2575
|
+
C.push(`func (${i} ${r}) Handle${b} (${h} ${b}) {`), C.push(" // HACK implement"), C.push("}");
|
|
2527
2576
|
}
|
|
2528
2577
|
return [
|
|
2529
2578
|
{
|
|
2530
2579
|
type: "Agg",
|
|
2531
|
-
imports:
|
|
2532
|
-
content:
|
|
2580
|
+
imports: m,
|
|
2581
|
+
content: C.join(`
|
|
2533
2582
|
`)
|
|
2534
2583
|
}
|
|
2535
2584
|
];
|
|
2536
2585
|
}), e.commands._setEventCodeProvider(
|
|
2537
|
-
(
|
|
2538
|
-
const
|
|
2539
|
-
|
|
2540
|
-
for (const
|
|
2541
|
-
|
|
2542
|
-
|
|
2543
|
-
for (const
|
|
2544
|
-
|
|
2545
|
-
`func (${
|
|
2546
|
-
|
|
2586
|
+
(v) => {
|
|
2587
|
+
const d = [], r = /* @__PURE__ */ new Set(), i = Object.values(v.inner), l = a(v), m = c(v);
|
|
2588
|
+
d.push(`type ${l} struct {`);
|
|
2589
|
+
for (const f of i)
|
|
2590
|
+
d.push(` ${c(f)} ${s(r, f)}`);
|
|
2591
|
+
d.push("}");
|
|
2592
|
+
for (const f of i)
|
|
2593
|
+
d.push(
|
|
2594
|
+
`func (${m} ${l}) Get${a(f)} () ${s(
|
|
2595
|
+
r,
|
|
2596
|
+
f
|
|
2547
2597
|
)} {`
|
|
2548
|
-
),
|
|
2549
|
-
const
|
|
2550
|
-
for (const
|
|
2551
|
-
|
|
2552
|
-
return
|
|
2553
|
-
`)},`),
|
|
2598
|
+
), d.push(` return ${m}.${c(f)}`), d.push("}");
|
|
2599
|
+
const C = [], p = [];
|
|
2600
|
+
for (const f of i)
|
|
2601
|
+
C.push(`${c(f)} ${s(r, f)}`), p.push(c(f));
|
|
2602
|
+
return d.push(`func New${l}(${C.join(", ")}) ${l} {`), d.push(" // HACK check value"), d.push(` return ${l}{`), d.push(` ${p.join(`,
|
|
2603
|
+
`)},`), d.push(" }"), d.push("}"), [
|
|
2554
2604
|
{
|
|
2555
2605
|
type: "Event",
|
|
2556
|
-
imports:
|
|
2557
|
-
content:
|
|
2606
|
+
imports: r,
|
|
2607
|
+
content: d.join(`
|
|
2558
2608
|
`)
|
|
2559
2609
|
}
|
|
2560
2610
|
];
|
|
2561
2611
|
}
|
|
2562
2612
|
), e.commands._setCodeFileProvider(() => {
|
|
2563
|
-
const
|
|
2564
|
-
function
|
|
2565
|
-
for (const
|
|
2566
|
-
|
|
2567
|
-
|
|
2613
|
+
const v = [], d = {}, r = [...n.value.namespace.split(/\./), n.value.moduleName], i = new j(r, `${n.value.moduleName}.go`), l = [], m = new j(r, `${n.value.moduleName}_value_object.go`), C = [];
|
|
2614
|
+
function p(h) {
|
|
2615
|
+
for (const u of Object.values(h)) {
|
|
2616
|
+
if (!o(u))
|
|
2617
|
+
continue;
|
|
2618
|
+
const w = a(u);
|
|
2619
|
+
if (d[`${r.join("/")}/${w}`] === !0)
|
|
2568
2620
|
continue;
|
|
2569
|
-
const
|
|
2570
|
-
|
|
2621
|
+
const y = e.commands._genInfoCode(u);
|
|
2622
|
+
y.length !== 0 && (m.addImports(y[0].imports), C.push(y[0].content), C.push(""), d[`${r.join("/")}/${w}`] = !0);
|
|
2571
2623
|
}
|
|
2572
2624
|
}
|
|
2573
|
-
const
|
|
2574
|
-
for (const
|
|
2575
|
-
|
|
2576
|
-
const
|
|
2577
|
-
for (const
|
|
2578
|
-
|
|
2625
|
+
const f = e.states.designer.value._getContext().getCommands();
|
|
2626
|
+
for (const h of f) {
|
|
2627
|
+
p(h.inner);
|
|
2628
|
+
const u = e.commands._genCommandCode(h);
|
|
2629
|
+
for (const w of u)
|
|
2630
|
+
d[w.content] !== !0 && (i.addImports(w.imports), l.push(w.content));
|
|
2579
2631
|
}
|
|
2580
|
-
const
|
|
2581
|
-
for (const
|
|
2582
|
-
|
|
2583
|
-
const
|
|
2584
|
-
for (const
|
|
2585
|
-
|
|
2632
|
+
const $ = e.states.designer.value._getContext().getFacadeCommands();
|
|
2633
|
+
for (const h of $) {
|
|
2634
|
+
p(h.inner);
|
|
2635
|
+
const u = e.commands._genFacadeCommandCode(h);
|
|
2636
|
+
for (const w of u)
|
|
2637
|
+
d[w.content] !== !0 && (i.addImports(w.imports), l.push(w.content));
|
|
2586
2638
|
}
|
|
2587
|
-
const
|
|
2588
|
-
for (const
|
|
2589
|
-
|
|
2590
|
-
const
|
|
2591
|
-
for (const
|
|
2592
|
-
|
|
2639
|
+
const _ = e.states.designer.value._getContext().getAggs();
|
|
2640
|
+
for (const h of _) {
|
|
2641
|
+
p(h.inner);
|
|
2642
|
+
const u = e.commands._genAggCode(h);
|
|
2643
|
+
for (const w of u)
|
|
2644
|
+
d[w.content] !== !0 && (i.addImports(w.imports), l.push(w.content));
|
|
2593
2645
|
}
|
|
2594
|
-
const
|
|
2595
|
-
for (const
|
|
2596
|
-
|
|
2597
|
-
const
|
|
2598
|
-
for (const
|
|
2599
|
-
|
|
2646
|
+
const b = e.states.designer.value._getContext().getEvents();
|
|
2647
|
+
for (const h of b) {
|
|
2648
|
+
p(h.inner);
|
|
2649
|
+
const u = e.commands._genEventCode(h);
|
|
2650
|
+
for (const w of u)
|
|
2651
|
+
d[w.content] !== !0 && (i.addImports(w.imports), l.push(w.content));
|
|
2600
2652
|
}
|
|
2601
|
-
return
|
|
2602
|
-
`)}`),
|
|
2603
|
-
`)),
|
|
2604
|
-
`)}`),
|
|
2605
|
-
`)),
|
|
2653
|
+
return i.appendContentln(`package ${n.value.moduleName}`), i.appendContentln(""), i.getImports().length > 0 && (i.appendContentln("import ("), i.appendContentln(` ${[...i.getImports()].join(`
|
|
2654
|
+
`)}`), i.appendContentln(")")), i.appendContentln(l.join(`
|
|
2655
|
+
`)), m.appendContentln(`package ${n.value.moduleName}`), m.appendContentln(""), m.getImports().length > 0 && (m.appendContentln("import ("), m.appendContentln(` ${[...m.getImports()].map((h) => `"${h}"`).join(`
|
|
2656
|
+
`)}`), m.appendContentln(")"), m.appendContentln("")), m.appendContentln(C.join(`
|
|
2657
|
+
`)), v.push(i), v.push(m), v;
|
|
2606
2658
|
});
|
|
2607
2659
|
}
|
|
2608
|
-
})),
|
|
2660
|
+
})), G = Ne.CSharpGeneratorAddition, xo = ue.createHotSwapPlugin(() => {
|
|
2609
2661
|
const e = " ";
|
|
2610
2662
|
function n(t, o = 1) {
|
|
2611
2663
|
return t.split(`
|
|
@@ -2617,247 +2669,259 @@ const E = _e.JavaGeneratorAddition, Eo = ae.createHotSwapPlugin(() => {
|
|
|
2617
2669
|
t.commands.clearCaches(), t.commands._setCommandCodeProvider(() => []), t.commands._setFacadeCommandCodeProvider(() => []), t.commands._setAggCodeProvider(() => []), t.commands._setEventCodeProvider(() => []), t.commands._setReadModelCodeProvider(() => []), t.commands._setCodeFileProvider(() => []), t.commands.setContext({});
|
|
2618
2670
|
},
|
|
2619
2671
|
mount({ api: t }) {
|
|
2620
|
-
const o = t.states.context;
|
|
2621
|
-
function
|
|
2622
|
-
return
|
|
2672
|
+
const o = t.states.context, s = t.states.designer.value._getContext().getDesignerOptions().ignoreValueObjects.map((r) => N.stringToLowerCamel(r));
|
|
2673
|
+
function a(r) {
|
|
2674
|
+
return !s.includes(N.stringToLowerCamel(r._attributes.name));
|
|
2675
|
+
}
|
|
2676
|
+
function c(r, i) {
|
|
2677
|
+
return a(i) ? N.stringToUpperCamel(i._attributes.name) : d(r, i);
|
|
2623
2678
|
}
|
|
2624
|
-
function r
|
|
2625
|
-
return
|
|
2679
|
+
function g(r) {
|
|
2680
|
+
return N.stringToUpperCamel(r._attributes.name);
|
|
2626
2681
|
}
|
|
2627
|
-
function
|
|
2628
|
-
|
|
2629
|
-
|
|
2682
|
+
function v(r) {
|
|
2683
|
+
return r.has(G.RecordStruct) ? " struct" : "";
|
|
2684
|
+
}
|
|
2685
|
+
function d(r, i) {
|
|
2686
|
+
const l = o.value.additions, m = N.stringToLowerSnake(i._attributes.name).replace(/_/, " ");
|
|
2687
|
+
return /\b(time|timestamp|date|deadline|expire)\b/.test(m) ? l.has(G.Timezone) ? "System.DateTimeOffset" : "System.DateTime" : /\b(enum|gender|sex|count|amount|num|number|flag|times)\b/.test(m) ? "int" : /\b(price)$/.test(m) ? "decimal" : /^(if|is)\b/.test(m) ? "bool" : Ee(i) && (i._attributes.type === "Id" || i._attributes.type === "Version") ? "long" : "string";
|
|
2630
2688
|
}
|
|
2631
2689
|
t.commands._setInfoCodeProvider(
|
|
2632
|
-
(
|
|
2633
|
-
const
|
|
2634
|
-
return
|
|
2635
|
-
`public record${
|
|
2636
|
-
|
|
2637
|
-
|
|
2690
|
+
(r) => {
|
|
2691
|
+
const i = o.value.additions, l = /* @__PURE__ */ new Set(), m = [];
|
|
2692
|
+
return m.push(
|
|
2693
|
+
`public record${v(i)} ${g(r)}(${d(
|
|
2694
|
+
l,
|
|
2695
|
+
r
|
|
2638
2696
|
)} value);`
|
|
2639
2697
|
), [
|
|
2640
2698
|
{
|
|
2641
2699
|
type: "Info",
|
|
2642
|
-
content:
|
|
2700
|
+
content: m.join(`
|
|
2643
2701
|
`),
|
|
2644
|
-
imports:
|
|
2702
|
+
imports: l
|
|
2645
2703
|
}
|
|
2646
2704
|
];
|
|
2647
2705
|
}
|
|
2648
2706
|
), t.commands._setCommandCodeProvider(
|
|
2649
|
-
(
|
|
2650
|
-
const
|
|
2707
|
+
(r) => {
|
|
2708
|
+
const i = [], l = o.value.additions, m = /* @__PURE__ */ new Set(), C = g(r);
|
|
2651
2709
|
{
|
|
2652
|
-
const
|
|
2653
|
-
|
|
2654
|
-
const
|
|
2655
|
-
for (const
|
|
2656
|
-
const
|
|
2657
|
-
|
|
2710
|
+
const p = [], f = Object.values(r.inner);
|
|
2711
|
+
p.push(`public record${v(l)} ${C}`), p.push("(");
|
|
2712
|
+
const $ = [];
|
|
2713
|
+
for (const _ of f) {
|
|
2714
|
+
const b = g(_);
|
|
2715
|
+
$.push(`${c(m, _)} ${N.upperFirst(b)}`);
|
|
2658
2716
|
}
|
|
2659
|
-
|
|
2660
|
-
`)}`),
|
|
2717
|
+
p.push(` ${$.join(`,
|
|
2718
|
+
`)}`), p.push(")"), p.push("{"), p.push("}"), i.push({
|
|
2661
2719
|
type: "Command",
|
|
2662
|
-
content:
|
|
2720
|
+
content: p.join(`
|
|
2663
2721
|
`),
|
|
2664
|
-
imports:
|
|
2722
|
+
imports: m
|
|
2665
2723
|
});
|
|
2666
2724
|
}
|
|
2667
2725
|
{
|
|
2668
|
-
const
|
|
2669
|
-
|
|
2726
|
+
const p = l.has(G.CommandHandlerInterface) ? ` : ${o.value.commandHandlerInterface}` : "", f = [];
|
|
2727
|
+
f.push(`public class ${C}Handler${p}`), f.push("{"), f.push(` public void Handle(${C} command)`), f.push(" {"), f.push(" // HACK implement"), f.push(" }"), f.push("}"), i.push({
|
|
2670
2728
|
type: "CommandHandler",
|
|
2671
|
-
content:
|
|
2729
|
+
content: f.join(`
|
|
2672
2730
|
`),
|
|
2673
|
-
imports:
|
|
2731
|
+
imports: m
|
|
2674
2732
|
});
|
|
2675
2733
|
}
|
|
2676
|
-
return
|
|
2734
|
+
return i;
|
|
2677
2735
|
}
|
|
2678
2736
|
), t.commands._setAggCodeProvider(
|
|
2679
|
-
(
|
|
2680
|
-
const
|
|
2737
|
+
(r) => {
|
|
2738
|
+
const i = [], l = t.states.designer.value, m = o.value.additions;
|
|
2681
2739
|
{
|
|
2682
|
-
const
|
|
2683
|
-
|
|
2684
|
-
const
|
|
2685
|
-
for (const
|
|
2686
|
-
const
|
|
2687
|
-
|
|
2740
|
+
const C = /* @__PURE__ */ new Set(), p = [], f = m.has(G.AggInterface) ? ` : ${o.value.aggInterface}` : "";
|
|
2741
|
+
p.push(`public interface I${g(r)}${f}`), p.push("{");
|
|
2742
|
+
const $ = [], _ = [...l._getContext().getAssociationMap()[r._attributes.__id]].filter((b) => b._attributes.rule === "Command" || b._attributes.rule === "FacadeCommand");
|
|
2743
|
+
for (const b of _) {
|
|
2744
|
+
const h = g(b);
|
|
2745
|
+
$.push(`void Handle${h}(${h} command);`);
|
|
2688
2746
|
}
|
|
2689
|
-
|
|
2747
|
+
p.push(` ${$.join(`
|
|
2690
2748
|
|
|
2691
|
-
`)}`),
|
|
2749
|
+
`)}`), p.push("}"), p.push(""), i.push({
|
|
2692
2750
|
type: "Agg",
|
|
2693
|
-
content:
|
|
2751
|
+
content: p.join(`
|
|
2694
2752
|
`),
|
|
2695
|
-
imports:
|
|
2753
|
+
imports: C
|
|
2696
2754
|
});
|
|
2697
2755
|
}
|
|
2698
2756
|
{
|
|
2699
|
-
const
|
|
2700
|
-
if (
|
|
2701
|
-
const
|
|
2702
|
-
for (const
|
|
2703
|
-
const
|
|
2704
|
-
|
|
2757
|
+
const C = /* @__PURE__ */ new Set(), p = [], f = g(r), $ = Object.values(r.inner), _ = m.has(G.AggInterface) ? `, ${o.value.aggInterface}` : "";
|
|
2758
|
+
if (m.has(G.PrimaryConstructor)) {
|
|
2759
|
+
const b = [...l._getContext().getAssociationMap()[r._attributes.__id]].filter((w) => w._attributes.rule === "Command" || w._attributes.rule === "FacadeCommand"), h = [];
|
|
2760
|
+
for (const w of $) {
|
|
2761
|
+
const y = g(w);
|
|
2762
|
+
h.push(`${c(C, w)} ${N.lowerFirst(y)}`);
|
|
2705
2763
|
}
|
|
2706
|
-
|
|
2707
|
-
`)}`),
|
|
2708
|
-
for (const
|
|
2709
|
-
const
|
|
2710
|
-
|
|
2711
|
-
` public ${
|
|
2712
|
-
|
|
2713
|
-
)};`
|
|
2714
|
-
),
|
|
2764
|
+
p.push(`public class ${f}`), p.push("("), p.push(` ${h.join(`,
|
|
2765
|
+
`)}`), p.push(`): I${f}${_}`), p.push("{");
|
|
2766
|
+
for (const w of $) {
|
|
2767
|
+
const y = g(w);
|
|
2768
|
+
p.push(
|
|
2769
|
+
` public ${c(C, w)} ${N.upperFirst(
|
|
2770
|
+
y
|
|
2771
|
+
)} { get; private set; } = ${N.lowerFirst(y)};`
|
|
2772
|
+
), p.push("");
|
|
2715
2773
|
}
|
|
2716
|
-
const
|
|
2717
|
-
for (const
|
|
2718
|
-
const
|
|
2719
|
-
|
|
2774
|
+
const u = [];
|
|
2775
|
+
for (const w of b) {
|
|
2776
|
+
const y = g(w);
|
|
2777
|
+
u.push(`public void Handle${y}(${y} command)`), u.push("{"), u.push(" // HACK implement"), u.push("}"), u.push("");
|
|
2720
2778
|
}
|
|
2721
|
-
|
|
2722
|
-
`)}`),
|
|
2779
|
+
p.push(` ${u.join(`
|
|
2780
|
+
`)}`), p.push("}");
|
|
2723
2781
|
} else {
|
|
2724
|
-
const
|
|
2725
|
-
|
|
2726
|
-
for (const
|
|
2727
|
-
const
|
|
2728
|
-
|
|
2782
|
+
const b = [...l._getContext().getAssociationMap()[r._attributes.__id]].filter((w) => w._attributes.rule === "Command" || w._attributes.rule === "FacadeCommand");
|
|
2783
|
+
p.push(`public class ${f} : I${f}${_}`), p.push("{");
|
|
2784
|
+
for (const w of $) {
|
|
2785
|
+
const y = g(w);
|
|
2786
|
+
p.push(
|
|
2787
|
+
` public ${c(C, w)} ${N.lowerFirst(
|
|
2788
|
+
y
|
|
2789
|
+
)} { get; private set; }`
|
|
2790
|
+
);
|
|
2729
2791
|
}
|
|
2730
|
-
|
|
2731
|
-
const
|
|
2732
|
-
for (const
|
|
2733
|
-
const
|
|
2734
|
-
|
|
2792
|
+
p.push("");
|
|
2793
|
+
const h = [];
|
|
2794
|
+
for (const w of $) {
|
|
2795
|
+
const y = g(w);
|
|
2796
|
+
h.push(`${c(C, w)} ${y}`);
|
|
2735
2797
|
}
|
|
2736
|
-
|
|
2737
|
-
for (const
|
|
2738
|
-
const
|
|
2739
|
-
|
|
2798
|
+
p.push(` public ${f}(${h.join(", ")})`), p.push(" {");
|
|
2799
|
+
for (const w of $) {
|
|
2800
|
+
const y = g(w);
|
|
2801
|
+
p.push(` ${y} = ${N.lowerFirst(y)};`);
|
|
2740
2802
|
}
|
|
2741
|
-
|
|
2742
|
-
const
|
|
2743
|
-
for (const
|
|
2744
|
-
const
|
|
2745
|
-
|
|
2803
|
+
p.push(" }");
|
|
2804
|
+
const u = [];
|
|
2805
|
+
for (const w of b) {
|
|
2806
|
+
const y = g(w);
|
|
2807
|
+
u.push(`public void Handle${y}(${y} command)`), u.push("{"), u.push(" // HACK implement"), u.push("}"), u.push("");
|
|
2746
2808
|
}
|
|
2747
|
-
|
|
2748
|
-
`)}`),
|
|
2809
|
+
p.push(` ${u.join(`
|
|
2810
|
+
`)}`), p.push("}");
|
|
2749
2811
|
}
|
|
2750
|
-
|
|
2812
|
+
i.push({
|
|
2751
2813
|
type: "AggImpl",
|
|
2752
|
-
content:
|
|
2814
|
+
content: p.join(`
|
|
2753
2815
|
`),
|
|
2754
|
-
imports:
|
|
2816
|
+
imports: C
|
|
2755
2817
|
});
|
|
2756
2818
|
}
|
|
2757
|
-
return
|
|
2819
|
+
return i;
|
|
2758
2820
|
}
|
|
2759
2821
|
), t.commands._setEventCodeProvider(
|
|
2760
|
-
(
|
|
2761
|
-
const
|
|
2762
|
-
|
|
2763
|
-
const
|
|
2764
|
-
for (const
|
|
2765
|
-
const
|
|
2766
|
-
|
|
2822
|
+
(r) => {
|
|
2823
|
+
const i = o.value.additions, l = g(r), m = /* @__PURE__ */ new Set(), C = Object.values(r.inner), p = [];
|
|
2824
|
+
p.push(`public record${v(i)} ${l}`), p.push("(");
|
|
2825
|
+
const f = [];
|
|
2826
|
+
for (const $ of C) {
|
|
2827
|
+
const _ = g($);
|
|
2828
|
+
f.push(`${c(m, $)} ${N.upperFirst(_)}`);
|
|
2767
2829
|
}
|
|
2768
|
-
return
|
|
2769
|
-
`)}`),
|
|
2830
|
+
return p.push(` ${f.join(`,
|
|
2831
|
+
`)}`), p.push(")"), p.push("{"), p.push("}"), [
|
|
2770
2832
|
{
|
|
2771
2833
|
type: "Event",
|
|
2772
|
-
content:
|
|
2834
|
+
content: p.join(`
|
|
2773
2835
|
`),
|
|
2774
|
-
imports:
|
|
2836
|
+
imports: m
|
|
2775
2837
|
}
|
|
2776
2838
|
];
|
|
2777
2839
|
}
|
|
2778
2840
|
), t.commands._setReadModelCodeProvider(() => []), t.commands._setCodeFileProvider(() => {
|
|
2779
|
-
const
|
|
2780
|
-
function
|
|
2781
|
-
for (const
|
|
2782
|
-
|
|
2783
|
-
|
|
2841
|
+
const r = [], i = {}, l = [...o.value.namespace.split(/\./), N.stringToUpperCamel(o.value.moduleName)];
|
|
2842
|
+
function m(_) {
|
|
2843
|
+
for (const b of Object.values(_)) {
|
|
2844
|
+
if (!a(b))
|
|
2845
|
+
continue;
|
|
2846
|
+
const h = g(b) + ".cs";
|
|
2847
|
+
if (i[`${l.join("/")}/${h}`] === !0)
|
|
2784
2848
|
continue;
|
|
2785
|
-
const
|
|
2786
|
-
if (
|
|
2849
|
+
const u = t.commands._genInfoCode(b);
|
|
2850
|
+
if (u.length === 0)
|
|
2787
2851
|
continue;
|
|
2788
|
-
const
|
|
2789
|
-
for (const
|
|
2790
|
-
|
|
2791
|
-
|
|
2792
|
-
`namespace ${o.value.namespace}.${
|
|
2793
|
-
),
|
|
2852
|
+
const w = new j(l, h);
|
|
2853
|
+
for (const y of u[0].imports)
|
|
2854
|
+
w.appendContentln(`using ${y};`);
|
|
2855
|
+
w.appendContentln(""), w.appendContentln(
|
|
2856
|
+
`namespace ${o.value.namespace}.${N.stringToUpperCamel(o.value.moduleName)}`
|
|
2857
|
+
), w.appendContentln("{"), w.appendContentln(n(u[0].content)), w.appendContentln("}"), r.push(w), i[`${l.join("/")}/${h}`] = !0;
|
|
2794
2858
|
}
|
|
2795
2859
|
}
|
|
2796
|
-
const
|
|
2797
|
-
for (const
|
|
2798
|
-
|
|
2799
|
-
const
|
|
2800
|
-
for (const
|
|
2801
|
-
if (
|
|
2802
|
-
|
|
2803
|
-
for (const
|
|
2804
|
-
|
|
2805
|
-
|
|
2806
|
-
`namespace ${o.value.namespace}.${
|
|
2807
|
-
),
|
|
2860
|
+
const C = t.states.designer.value._getContext().getCommands();
|
|
2861
|
+
for (const _ of C) {
|
|
2862
|
+
m(_.inner);
|
|
2863
|
+
const b = g(_) + ".cs", h = t.commands._genCommandCode(_), u = new j(l, b);
|
|
2864
|
+
for (const w of h)
|
|
2865
|
+
if (w.type === "Command") {
|
|
2866
|
+
u.addImports(w.imports);
|
|
2867
|
+
for (const y of w.imports)
|
|
2868
|
+
u.appendContentln(`using ${y};`);
|
|
2869
|
+
u.appendContentln(""), u.appendContentln(
|
|
2870
|
+
`namespace ${o.value.namespace}.${N.stringToUpperCamel(o.value.moduleName)}`
|
|
2871
|
+
), u.appendContentln("{"), u.appendContentln(n(w.content)), u.appendContentln("}");
|
|
2808
2872
|
}
|
|
2809
|
-
|
|
2873
|
+
r.push(u);
|
|
2810
2874
|
}
|
|
2811
|
-
const
|
|
2812
|
-
for (const
|
|
2813
|
-
|
|
2814
|
-
const
|
|
2815
|
-
|
|
2816
|
-
for (const
|
|
2817
|
-
|
|
2818
|
-
|
|
2819
|
-
`namespace ${o.value.namespace}.${
|
|
2820
|
-
),
|
|
2875
|
+
const p = t.states.designer.value._getContext().getFacadeCommands();
|
|
2876
|
+
for (const _ of p) {
|
|
2877
|
+
m(_.inner);
|
|
2878
|
+
const b = g(_) + ".cs", h = t.commands._genFacadeCommandCode(_), u = new j(l, b);
|
|
2879
|
+
u.addImports(h[0].imports);
|
|
2880
|
+
for (const w of h[0].imports)
|
|
2881
|
+
u.appendContentln(`using ${w};`);
|
|
2882
|
+
u.appendContentln(""), u.appendContentln(
|
|
2883
|
+
`namespace ${o.value.namespace}.${N.stringToUpperCamel(o.value.moduleName)}`
|
|
2884
|
+
), u.appendContentln("{"), u.appendContentln(n(h[0].content)), u.appendContentln("}"), r.push(u);
|
|
2821
2885
|
}
|
|
2822
|
-
const
|
|
2823
|
-
for (const
|
|
2824
|
-
|
|
2825
|
-
const
|
|
2826
|
-
for (const
|
|
2827
|
-
|
|
2828
|
-
for (const
|
|
2829
|
-
|
|
2830
|
-
|
|
2886
|
+
const f = t.states.designer.value._getContext().getAggs();
|
|
2887
|
+
for (const _ of f) {
|
|
2888
|
+
m(_.inner);
|
|
2889
|
+
const b = t.commands._genAggCode(_), h = g(_) + ".cs", u = new j(l, h);
|
|
2890
|
+
for (const w of b) {
|
|
2891
|
+
u.addImports(w.imports);
|
|
2892
|
+
for (const y of w.imports)
|
|
2893
|
+
u.appendContentln(`using ${y};`);
|
|
2894
|
+
u.appendContentln("");
|
|
2831
2895
|
}
|
|
2832
|
-
|
|
2833
|
-
`namespace ${o.value.namespace}.${
|
|
2834
|
-
),
|
|
2835
|
-
for (const
|
|
2836
|
-
|
|
2837
|
-
|
|
2896
|
+
u.appendContentln(
|
|
2897
|
+
`namespace ${o.value.namespace}.${N.stringToUpperCamel(o.value.moduleName)}`
|
|
2898
|
+
), u.appendContentln("{");
|
|
2899
|
+
for (const w of b)
|
|
2900
|
+
u.appendContentln(n(w.content));
|
|
2901
|
+
u.appendContentln("}"), r.push(u);
|
|
2838
2902
|
}
|
|
2839
|
-
const
|
|
2840
|
-
for (const
|
|
2841
|
-
|
|
2842
|
-
const
|
|
2843
|
-
|
|
2844
|
-
for (const
|
|
2845
|
-
|
|
2846
|
-
|
|
2847
|
-
`namespace ${o.value.namespace}.${
|
|
2848
|
-
),
|
|
2903
|
+
const $ = t.states.designer.value._getContext().getEvents();
|
|
2904
|
+
for (const _ of $) {
|
|
2905
|
+
m(_.inner);
|
|
2906
|
+
const b = g(_) + ".cs", h = t.commands._genEventCode(_), u = new j(l, b);
|
|
2907
|
+
u.addImports(h[0].imports);
|
|
2908
|
+
for (const w of h[0].imports)
|
|
2909
|
+
u.appendContentln(`using ${w};`);
|
|
2910
|
+
u.appendContentln(""), u.appendContentln(
|
|
2911
|
+
`namespace ${o.value.namespace}.${N.stringToUpperCamel(o.value.moduleName)}`
|
|
2912
|
+
), u.appendContentln("{"), u.appendContentln(n(h[0].content)), u.appendContentln("}"), r.push(u);
|
|
2849
2913
|
}
|
|
2850
|
-
return
|
|
2914
|
+
return r;
|
|
2851
2915
|
});
|
|
2852
2916
|
}
|
|
2853
2917
|
};
|
|
2854
2918
|
});
|
|
2855
2919
|
export {
|
|
2856
|
-
|
|
2857
|
-
|
|
2858
|
-
|
|
2859
|
-
|
|
2860
|
-
|
|
2861
|
-
|
|
2862
|
-
|
|
2920
|
+
xo as GENERATOR_CSHARP_PLUGIN,
|
|
2921
|
+
Io as GENERATOR_GO_PLUGIN,
|
|
2922
|
+
Oo as GENERATOR_JAVA_PLUGIN,
|
|
2923
|
+
Ao as GENERATOR_KOTLIN_PLUGIN,
|
|
2924
|
+
ue as GeneratorPliginHelper,
|
|
2925
|
+
jo as define,
|
|
2926
|
+
So as useGeneratorAgg
|
|
2863
2927
|
};
|