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