@ddd-tool/domain-designer-generator 0.0.0-alpha.7 → 0.0.0-alpha.9

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/index.js CHANGED
@@ -5,7 +5,7 @@
5
5
  **/
6
6
  /*! #__NO_SIDE_EFFECTS__ */
7
7
  // @__NO_SIDE_EFFECTS__
8
- function fo(e) {
8
+ function mo(e) {
9
9
  const t = /* @__PURE__ */ Object.create(null);
10
10
  for (const n of e.split(",")) t[n] = 1;
11
11
  return (n) => n in t;
@@ -14,7 +14,7 @@ const H = process.env.NODE_ENV !== "production" ? Object.freeze({}) : {};
14
14
  process.env.NODE_ENV !== "production" && Object.freeze([]);
15
15
  const oe = () => {
16
16
  }, ho = (e) => e.charCodeAt(0) === 111 && e.charCodeAt(1) === 110 && // uppercase letter
17
- (e.charCodeAt(2) > 122 || e.charCodeAt(2) < 97), F = Object.assign, mo = Object.prototype.hasOwnProperty, S = (e, t) => mo.call(e, t), E = Array.isArray, _e = (e) => ot(e) === "[object Map]", go = (e) => ot(e) === "[object Set]", x = (e) => typeof e == "function", K = (e) => typeof e == "string", Ve = (e) => typeof e == "symbol", P = (e) => e !== null && typeof e == "object", _o = (e) => (P(e) || x(e)) && x(e.then) && x(e.catch), vo = Object.prototype.toString, ot = (e) => vo.call(e), mn = (e) => ot(e).slice(8, -1), Co = (e) => ot(e) === "[object Object]", kt = (e) => K(e) && e !== "NaN" && e[0] !== "-" && "" + parseInt(e, 10) === e, bo = (e) => {
17
+ (e.charCodeAt(2) > 122 || e.charCodeAt(2) < 97), F = Object.assign, go = Object.prototype.hasOwnProperty, O = (e, t) => go.call(e, t), E = Array.isArray, ve = (e) => it(e) === "[object Map]", _o = (e) => it(e) === "[object Set]", x = (e) => typeof e == "function", K = (e) => typeof e == "string", Pe = (e) => typeof e == "symbol", T = (e) => e !== null && typeof e == "object", vo = (e) => (T(e) || x(e)) && x(e.then) && x(e.catch), Co = Object.prototype.toString, it = (e) => Co.call(e), _n = (e) => it(e).slice(8, -1), $o = (e) => it(e) === "[object Object]", Lt = (e) => K(e) && e !== "NaN" && e[0] !== "-" && "" + parseInt(e, 10) === e, bo = (e) => {
18
18
  const t = /* @__PURE__ */ Object.create(null);
19
19
  return (n) => t[n] || (t[n] = e(n));
20
20
  }, No = bo((e) => e.charAt(0).toUpperCase() + e.slice(1)), ee = (e, t) => !Object.is(e, t), wo = (e, t, n, o = !1) => {
@@ -25,41 +25,41 @@ const oe = () => {
25
25
  value: n
26
26
  });
27
27
  };
28
- let on;
29
- const st = () => on || (on = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : typeof global < "u" ? global : {});
30
- function Ht(e) {
28
+ let rn;
29
+ const at = () => rn || (rn = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : typeof global < "u" ? global : {});
30
+ function Kt(e) {
31
31
  if (E(e)) {
32
32
  const t = {};
33
33
  for (let n = 0; n < e.length; n++) {
34
- const o = e[n], s = K(o) ? So(o) : Ht(o);
34
+ const o = e[n], s = K(o) ? Oo(o) : Kt(o);
35
35
  if (s)
36
36
  for (const r in s)
37
37
  t[r] = s[r];
38
38
  }
39
39
  return t;
40
- } else if (K(e) || P(e))
40
+ } else if (K(e) || T(e))
41
41
  return e;
42
42
  }
43
- const Eo = /;(?![^(]*\))/g, yo = /:([^]+)/, $o = /\/\*[^]*?\*\//g;
44
- function So(e) {
43
+ const Eo = /;(?![^(]*\))/g, yo = /:([^]+)/, So = /\/\*[^]*?\*\//g;
44
+ function Oo(e) {
45
45
  const t = {};
46
- return e.replace($o, "").split(Eo).forEach((n) => {
46
+ return e.replace(So, "").split(Eo).forEach((n) => {
47
47
  if (n) {
48
48
  const o = n.split(yo);
49
49
  o.length > 1 && (t[o[0].trim()] = o[1].trim());
50
50
  }
51
51
  }), t;
52
52
  }
53
- function Mt(e) {
53
+ function Ut(e) {
54
54
  let t = "";
55
55
  if (K(e))
56
56
  t = e;
57
57
  else if (E(e))
58
58
  for (let n = 0; n < e.length; n++) {
59
- const o = Mt(e[n]);
59
+ const o = Ut(e[n]);
60
60
  o && (t += o + " ");
61
61
  }
62
- else if (P(e))
62
+ else if (T(e))
63
63
  for (const n in e)
64
64
  e[n] && (t += n + " ");
65
65
  return t.trim();
@@ -69,11 +69,11 @@ function Mt(e) {
69
69
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
70
70
  * @license MIT
71
71
  **/
72
- function G(e, ...t) {
72
+ function W(e, ...t) {
73
73
  }
74
74
  let w;
75
- const pt = /* @__PURE__ */ new WeakSet();
76
- class Oo {
75
+ const ht = /* @__PURE__ */ new WeakSet();
76
+ class Io {
77
77
  constructor(t) {
78
78
  this.fn = t, this.deps = void 0, this.depsTail = void 0, this.flags = 5, this.next = void 0, this.cleanup = void 0, this.scheduler = void 0;
79
79
  }
@@ -81,61 +81,61 @@ class Oo {
81
81
  this.flags |= 64;
82
82
  }
83
83
  resume() {
84
- this.flags & 64 && (this.flags &= -65, pt.has(this) && (pt.delete(this), this.trigger()));
84
+ this.flags & 64 && (this.flags &= -65, ht.has(this) && (ht.delete(this), this.trigger()));
85
85
  }
86
86
  /**
87
87
  * @internal
88
88
  */
89
89
  notify() {
90
- this.flags & 2 && !(this.flags & 32) || this.flags & 8 || _n(this);
90
+ this.flags & 2 && !(this.flags & 32) || this.flags & 8 || Cn(this);
91
91
  }
92
92
  run() {
93
93
  if (!(this.flags & 1))
94
94
  return this.fn();
95
- this.flags |= 2, sn(this), vn(this);
95
+ this.flags |= 2, an(this), $n(this);
96
96
  const t = w, n = M;
97
97
  w = this, M = !0;
98
98
  try {
99
99
  return this.fn();
100
100
  } finally {
101
- process.env.NODE_ENV !== "production" && w !== this && G(
101
+ process.env.NODE_ENV !== "production" && w !== this && W(
102
102
  "Active effect was not restored correctly - this is likely a Vue internal bug."
103
- ), Cn(this), w = t, M = n, this.flags &= -3;
103
+ ), bn(this), w = t, M = n, this.flags &= -3;
104
104
  }
105
105
  }
106
106
  stop() {
107
107
  if (this.flags & 1) {
108
108
  for (let t = this.deps; t; t = t.nextDep)
109
- zt(t);
110
- this.deps = this.depsTail = void 0, sn(this), this.onStop && this.onStop(), this.flags &= -2;
109
+ Bt(t);
110
+ this.deps = this.depsTail = void 0, an(this), this.onStop && this.onStop(), this.flags &= -2;
111
111
  }
112
112
  }
113
113
  trigger() {
114
- this.flags & 64 ? pt.add(this) : this.scheduler ? this.scheduler() : this.runIfDirty();
114
+ this.flags & 64 ? ht.add(this) : this.scheduler ? this.scheduler() : this.runIfDirty();
115
115
  }
116
116
  /**
117
117
  * @internal
118
118
  */
119
119
  runIfDirty() {
120
- Et(this) && this.run();
120
+ Ot(this) && this.run();
121
121
  }
122
122
  get dirty() {
123
- return Et(this);
123
+ return Ot(this);
124
124
  }
125
125
  }
126
- let gn = 0, Ee, ye;
127
- function _n(e, t = !1) {
126
+ let vn = 0, Ee, ye;
127
+ function Cn(e, t = !1) {
128
128
  if (e.flags |= 8, t) {
129
129
  e.next = ye, ye = e;
130
130
  return;
131
131
  }
132
132
  e.next = Ee, Ee = e;
133
133
  }
134
- function Lt() {
135
- gn++;
134
+ function zt() {
135
+ vn++;
136
136
  }
137
- function Kt() {
138
- if (--gn > 0)
137
+ function Gt() {
138
+ if (--vn > 0)
139
139
  return;
140
140
  if (ye) {
141
141
  let t = ye;
@@ -160,51 +160,51 @@ function Kt() {
160
160
  }
161
161
  if (e) throw e;
162
162
  }
163
- function vn(e) {
163
+ function $n(e) {
164
164
  for (let t = e.deps; t; t = t.nextDep)
165
165
  t.version = -1, t.prevActiveLink = t.dep.activeLink, t.dep.activeLink = t;
166
166
  }
167
- function Cn(e) {
167
+ function bn(e) {
168
168
  let t, n = e.depsTail, o = n;
169
169
  for (; o; ) {
170
170
  const s = o.prevDep;
171
- o.version === -1 ? (o === n && (n = s), zt(o), xo(o)) : t = o, o.dep.activeLink = o.prevActiveLink, o.prevActiveLink = void 0, o = s;
171
+ o.version === -1 ? (o === n && (n = s), Bt(o), xo(o)) : t = o, o.dep.activeLink = o.prevActiveLink, o.prevActiveLink = void 0, o = s;
172
172
  }
173
173
  e.deps = t, e.depsTail = n;
174
174
  }
175
- function Et(e) {
175
+ function Ot(e) {
176
176
  for (let t = e.deps; t; t = t.nextDep)
177
- if (t.dep.version !== t.version || t.dep.computed && (bn(t.dep.computed) || t.dep.version !== t.version))
177
+ if (t.dep.version !== t.version || t.dep.computed && (Nn(t.dep.computed) || t.dep.version !== t.version))
178
178
  return !0;
179
179
  return !!e._dirty;
180
180
  }
181
- function bn(e) {
182
- if (e.flags & 4 && !(e.flags & 16) || (e.flags &= -17, e.globalVersion === Se))
181
+ function Nn(e) {
182
+ if (e.flags & 4 && !(e.flags & 16) || (e.flags &= -17, e.globalVersion === Oe))
183
183
  return;
184
- e.globalVersion = Se;
184
+ e.globalVersion = Oe;
185
185
  const t = e.dep;
186
- if (e.flags |= 2, t.version > 0 && !e.isSSR && e.deps && !Et(e)) {
186
+ if (e.flags |= 2, t.version > 0 && !e.isSSR && e.deps && !Ot(e)) {
187
187
  e.flags &= -3;
188
188
  return;
189
189
  }
190
190
  const n = w, o = M;
191
191
  w = e, M = !0;
192
192
  try {
193
- vn(e);
193
+ $n(e);
194
194
  const s = e.fn(e._value);
195
195
  (t.version === 0 || ee(s, e._value)) && (e._value = s, t.version++);
196
196
  } catch (s) {
197
197
  throw t.version++, s;
198
198
  } finally {
199
- w = n, M = o, Cn(e), e.flags &= -3;
199
+ w = n, M = o, bn(e), e.flags &= -3;
200
200
  }
201
201
  }
202
- function zt(e, t = !1) {
202
+ function Bt(e, t = !1) {
203
203
  const { dep: n, prevSub: o, nextSub: s } = e;
204
204
  if (o && (o.nextSub = s, e.prevSub = void 0), s && (s.prevSub = o, e.nextSub = void 0), process.env.NODE_ENV !== "production" && n.subsHead === e && (n.subsHead = s), n.subs === e && (n.subs = o, !o && n.computed)) {
205
205
  n.computed.flags &= -5;
206
206
  for (let r = n.computed.deps; r; r = r.nextDep)
207
- zt(r, !0);
207
+ Bt(r, !0);
208
208
  }
209
209
  !t && !--n.sc && n.map && n.map.delete(n.key);
210
210
  }
@@ -213,15 +213,15 @@ function xo(e) {
213
213
  t && (t.nextDep = n, e.prevDep = void 0), n && (n.prevDep = t, e.nextDep = void 0);
214
214
  }
215
215
  let M = !0;
216
- const Nn = [];
217
- function rt() {
218
- Nn.push(M), M = !1;
216
+ const wn = [];
217
+ function ct() {
218
+ wn.push(M), M = !1;
219
219
  }
220
- function it() {
221
- const e = Nn.pop();
220
+ function ut() {
221
+ const e = wn.pop();
222
222
  M = e === void 0 ? !0 : e;
223
223
  }
224
- function sn(e) {
224
+ function an(e) {
225
225
  const { cleanup: t } = e;
226
226
  if (e.cleanup = void 0, t) {
227
227
  const n = w;
@@ -233,13 +233,13 @@ function sn(e) {
233
233
  }
234
234
  }
235
235
  }
236
- let Se = 0;
237
- class Do {
236
+ let Oe = 0;
237
+ class Ao {
238
238
  constructor(t, n) {
239
239
  this.sub = t, this.dep = n, this.version = n.version, this.nextDep = this.prevDep = this.nextSub = this.prevSub = this.prevActiveLink = void 0;
240
240
  }
241
241
  }
242
- class Ut {
242
+ class Wt {
243
243
  constructor(t) {
244
244
  this.computed = t, 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);
245
245
  }
@@ -248,7 +248,7 @@ class Ut {
248
248
  return;
249
249
  let n = this.activeLink;
250
250
  if (n === void 0 || n.sub !== w)
251
- n = this.activeLink = new Do(w, this), w.deps ? (n.prevDep = w.depsTail, w.depsTail.nextDep = n, w.depsTail = n) : w.deps = w.depsTail = n, wn(n);
251
+ n = this.activeLink = new Ao(w, this), w.deps ? (n.prevDep = w.depsTail, w.depsTail.nextDep = n, w.depsTail = n) : w.deps = w.depsTail = n, En(n);
252
252
  else if (n.version === -1 && (n.version = this.version, n.nextDep)) {
253
253
  const o = n.nextDep;
254
254
  o.prevDep = n.prevDep, n.prevDep && (n.prevDep.nextDep = o), n.prevDep = w.depsTail, n.nextDep = void 0, w.depsTail.nextDep = n, w.depsTail = n, w.deps === n && (w.deps = o);
@@ -263,10 +263,10 @@ class Ut {
263
263
  ), n;
264
264
  }
265
265
  trigger(t) {
266
- this.version++, Se++, this.notify(t);
266
+ this.version++, Oe++, this.notify(t);
267
267
  }
268
268
  notify(t) {
269
- Lt();
269
+ zt();
270
270
  try {
271
271
  if (process.env.NODE_ENV !== "production")
272
272
  for (let n = this.subsHead; n; n = n.nextSub)
@@ -281,35 +281,35 @@ class Ut {
281
281
  for (let n = this.subs; n; n = n.prevSub)
282
282
  n.sub.notify() && n.sub.dep.notify();
283
283
  } finally {
284
- Kt();
284
+ Gt();
285
285
  }
286
286
  }
287
287
  }
288
- function wn(e) {
288
+ function En(e) {
289
289
  if (e.dep.sc++, e.sub.flags & 4) {
290
290
  const t = e.dep.computed;
291
291
  if (t && !e.dep.subs) {
292
292
  t.flags |= 20;
293
293
  for (let o = t.deps; o; o = o.nextDep)
294
- wn(o);
294
+ En(o);
295
295
  }
296
296
  const n = e.dep.subs;
297
297
  n !== e && (e.prevSub = n, n && (n.nextSub = e)), process.env.NODE_ENV !== "production" && e.dep.subsHead === void 0 && (e.dep.subsHead = e), e.dep.subs = e;
298
298
  }
299
299
  }
300
- const yt = /* @__PURE__ */ new WeakMap(), se = Symbol(
300
+ const It = /* @__PURE__ */ new WeakMap(), se = Symbol(
301
301
  process.env.NODE_ENV !== "production" ? "Object iterate" : ""
302
- ), $t = Symbol(
302
+ ), xt = Symbol(
303
303
  process.env.NODE_ENV !== "production" ? "Map keys iterate" : ""
304
- ), Oe = Symbol(
304
+ ), Ie = Symbol(
305
305
  process.env.NODE_ENV !== "production" ? "Array iterate" : ""
306
306
  );
307
- function O(e, t, n) {
307
+ function I(e, t, n) {
308
308
  if (M && w) {
309
- let o = yt.get(e);
310
- o || yt.set(e, o = /* @__PURE__ */ new Map());
309
+ let o = It.get(e);
310
+ o || It.set(e, o = /* @__PURE__ */ new Map());
311
311
  let s = o.get(n);
312
- s || (o.set(n, s = new Ut()), s.map = o, s.key = n), process.env.NODE_ENV !== "production" ? s.track({
312
+ s || (o.set(n, s = new Wt()), s.map = o, s.key = n), process.env.NODE_ENV !== "production" ? s.track({
313
313
  target: e,
314
314
  type: t,
315
315
  key: n
@@ -317,56 +317,56 @@ function O(e, t, n) {
317
317
  }
318
318
  }
319
319
  function Z(e, t, n, o, s, r) {
320
- const a = yt.get(e);
320
+ const a = It.get(e);
321
321
  if (!a) {
322
- Se++;
322
+ Oe++;
323
323
  return;
324
324
  }
325
- const c = (l) => {
326
- l && (process.env.NODE_ENV !== "production" ? l.trigger({
325
+ const c = (u) => {
326
+ u && (process.env.NODE_ENV !== "production" ? u.trigger({
327
327
  target: e,
328
328
  type: t,
329
329
  key: n,
330
330
  newValue: o,
331
331
  oldValue: s,
332
332
  oldTarget: r
333
- }) : l.trigger());
333
+ }) : u.trigger());
334
334
  };
335
- if (Lt(), t === "clear")
335
+ if (zt(), t === "clear")
336
336
  a.forEach(c);
337
337
  else {
338
- const l = E(e), d = l && kt(n);
339
- if (l && n === "length") {
340
- const f = Number(o);
341
- a.forEach((i, u) => {
342
- (u === "length" || u === Oe || !Ve(u) && u >= f) && c(i);
338
+ const u = E(e), f = u && Lt(n);
339
+ if (u && n === "length") {
340
+ const d = Number(o);
341
+ a.forEach((i, l) => {
342
+ (l === "length" || l === Ie || !Pe(l) && l >= d) && c(i);
343
343
  });
344
344
  } else
345
- switch ((n !== void 0 || a.has(void 0)) && c(a.get(n)), d && c(a.get(Oe)), t) {
345
+ switch ((n !== void 0 || a.has(void 0)) && c(a.get(n)), f && c(a.get(Ie)), t) {
346
346
  case "add":
347
- l ? d && c(a.get("length")) : (c(a.get(se)), _e(e) && c(a.get($t)));
347
+ u ? f && c(a.get("length")) : (c(a.get(se)), ve(e) && c(a.get(xt)));
348
348
  break;
349
349
  case "delete":
350
- l || (c(a.get(se)), _e(e) && c(a.get($t)));
350
+ u || (c(a.get(se)), ve(e) && c(a.get(xt)));
351
351
  break;
352
352
  case "set":
353
- _e(e) && c(a.get(se));
353
+ ve(e) && c(a.get(se));
354
354
  break;
355
355
  }
356
356
  }
357
- Kt();
357
+ Gt();
358
358
  }
359
359
  function pe(e) {
360
- const t = C(e);
361
- return t === e ? t : (O(t, "iterate", Oe), T(e) ? t : t.map(V));
360
+ const t = N(e);
361
+ return t === e ? t : (I(t, "iterate", Ie), j(e) ? t : t.map(P));
362
362
  }
363
- function Bt(e) {
364
- return O(e = C(e), "iterate", Oe), e;
363
+ function Jt(e) {
364
+ return I(e = N(e), "iterate", Ie), e;
365
365
  }
366
- const Ao = {
366
+ const Do = {
367
367
  __proto__: null,
368
368
  [Symbol.iterator]() {
369
- return ft(this, Symbol.iterator, V);
369
+ return gt(this, Symbol.iterator, P);
370
370
  },
371
371
  concat(...e) {
372
372
  return pe(this).concat(
@@ -374,45 +374,45 @@ const Ao = {
374
374
  );
375
375
  },
376
376
  entries() {
377
- return ft(this, "entries", (e) => (e[1] = V(e[1]), e));
377
+ return gt(this, "entries", (e) => (e[1] = P(e[1]), e));
378
378
  },
379
379
  every(e, t) {
380
- return U(this, "every", e, t, void 0, arguments);
380
+ return z(this, "every", e, t, void 0, arguments);
381
381
  },
382
382
  filter(e, t) {
383
- return U(this, "filter", e, t, (n) => n.map(V), arguments);
383
+ return z(this, "filter", e, t, (n) => n.map(P), arguments);
384
384
  },
385
385
  find(e, t) {
386
- return U(this, "find", e, t, V, arguments);
386
+ return z(this, "find", e, t, P, arguments);
387
387
  },
388
388
  findIndex(e, t) {
389
- return U(this, "findIndex", e, t, void 0, arguments);
389
+ return z(this, "findIndex", e, t, void 0, arguments);
390
390
  },
391
391
  findLast(e, t) {
392
- return U(this, "findLast", e, t, V, arguments);
392
+ return z(this, "findLast", e, t, P, arguments);
393
393
  },
394
394
  findLastIndex(e, t) {
395
- return U(this, "findLastIndex", e, t, void 0, arguments);
395
+ return z(this, "findLastIndex", e, t, void 0, arguments);
396
396
  },
397
397
  // flat, flatMap could benefit from ARRAY_ITERATE but are not straight-forward to implement
398
398
  forEach(e, t) {
399
- return U(this, "forEach", e, t, void 0, arguments);
399
+ return z(this, "forEach", e, t, void 0, arguments);
400
400
  },
401
401
  includes(...e) {
402
- return dt(this, "includes", e);
402
+ return _t(this, "includes", e);
403
403
  },
404
404
  indexOf(...e) {
405
- return dt(this, "indexOf", e);
405
+ return _t(this, "indexOf", e);
406
406
  },
407
407
  join(e) {
408
408
  return pe(this).join(e);
409
409
  },
410
410
  // keys() iterator only reads `length`, no optimisation required
411
411
  lastIndexOf(...e) {
412
- return dt(this, "lastIndexOf", e);
412
+ return _t(this, "lastIndexOf", e);
413
413
  },
414
414
  map(e, t) {
415
- return U(this, "map", e, t, void 0, arguments);
415
+ return z(this, "map", e, t, void 0, arguments);
416
416
  },
417
417
  pop() {
418
418
  return Ne(this, "pop");
@@ -421,17 +421,17 @@ const Ao = {
421
421
  return Ne(this, "push", e);
422
422
  },
423
423
  reduce(e, ...t) {
424
- return rn(this, "reduce", e, t);
424
+ return cn(this, "reduce", e, t);
425
425
  },
426
426
  reduceRight(e, ...t) {
427
- return rn(this, "reduceRight", e, t);
427
+ return cn(this, "reduceRight", e, t);
428
428
  },
429
429
  shift() {
430
430
  return Ne(this, "shift");
431
431
  },
432
432
  // slice could use ARRAY_ITERATE but also seems to beg for range tracking
433
433
  some(e, t) {
434
- return U(this, "some", e, t, void 0, arguments);
434
+ return z(this, "some", e, t, void 0, arguments);
435
435
  },
436
436
  splice(...e) {
437
437
  return Ne(this, "splice", e);
@@ -449,61 +449,61 @@ const Ao = {
449
449
  return Ne(this, "unshift", e);
450
450
  },
451
451
  values() {
452
- return ft(this, "values", V);
452
+ return gt(this, "values", P);
453
453
  }
454
454
  };
455
- function ft(e, t, n) {
456
- const o = Bt(e), s = o[t]();
457
- return o !== e && !T(e) && (s._next = s.next, s.next = () => {
455
+ function gt(e, t, n) {
456
+ const o = Jt(e), s = o[t]();
457
+ return o !== e && !j(e) && (s._next = s.next, s.next = () => {
458
458
  const r = s._next();
459
459
  return r.value && (r.value = n(r.value)), r;
460
460
  }), s;
461
461
  }
462
- const Vo = Array.prototype;
463
- function U(e, t, n, o, s, r) {
464
- const a = Bt(e), c = a !== e && !T(e), l = a[t];
465
- if (l !== Vo[t]) {
466
- const i = l.apply(e, r);
467
- return c ? V(i) : i;
468
- }
469
- let d = n;
470
- a !== e && (c ? d = function(i, u) {
471
- return n.call(this, V(i), u, e);
472
- } : n.length > 2 && (d = function(i, u) {
473
- return n.call(this, i, u, e);
462
+ const Po = Array.prototype;
463
+ function z(e, t, n, o, s, r) {
464
+ const a = Jt(e), c = a !== e && !j(e), u = a[t];
465
+ if (u !== Po[t]) {
466
+ const i = u.apply(e, r);
467
+ return c ? P(i) : i;
468
+ }
469
+ let f = n;
470
+ a !== e && (c ? f = function(i, l) {
471
+ return n.call(this, P(i), l, e);
472
+ } : n.length > 2 && (f = function(i, l) {
473
+ return n.call(this, i, l, e);
474
474
  }));
475
- const f = l.call(a, d, o);
476
- return c && s ? s(f) : f;
475
+ const d = u.call(a, f, o);
476
+ return c && s ? s(d) : d;
477
477
  }
478
- function rn(e, t, n, o) {
479
- const s = Bt(e);
478
+ function cn(e, t, n, o) {
479
+ const s = Jt(e);
480
480
  let r = n;
481
- return s !== e && (T(e) ? n.length > 3 && (r = function(a, c, l) {
482
- return n.call(this, a, c, l, e);
483
- }) : r = function(a, c, l) {
484
- return n.call(this, a, V(c), l, e);
481
+ return s !== e && (j(e) ? n.length > 3 && (r = function(a, c, u) {
482
+ return n.call(this, a, c, u, e);
483
+ }) : r = function(a, c, u) {
484
+ return n.call(this, a, P(c), u, e);
485
485
  }), s[t](r, ...o);
486
486
  }
487
- function dt(e, t, n) {
488
- const o = C(e);
489
- O(o, "iterate", Oe);
487
+ function _t(e, t, n) {
488
+ const o = N(e);
489
+ I(o, "iterate", Ie);
490
490
  const s = o[t](...n);
491
- return (s === -1 || s === !1) && Ke(n[0]) ? (n[0] = C(n[0]), o[t](...n)) : s;
491
+ return (s === -1 || s === !1) && ze(n[0]) ? (n[0] = N(n[0]), o[t](...n)) : s;
492
492
  }
493
493
  function Ne(e, t, n = []) {
494
- rt(), Lt();
495
- const o = C(e)[t].apply(e, n);
496
- return Kt(), it(), o;
494
+ ct(), zt();
495
+ const o = N(e)[t].apply(e, n);
496
+ return Gt(), ut(), o;
497
497
  }
498
- const Io = /* @__PURE__ */ fo("__proto__,__v_isRef,__isVue"), En = new Set(
499
- /* @__PURE__ */ Object.getOwnPropertyNames(Symbol).filter((e) => e !== "arguments" && e !== "caller").map((e) => Symbol[e]).filter(Ve)
498
+ const Vo = /* @__PURE__ */ mo("__proto__,__v_isRef,__isVue"), yn = new Set(
499
+ /* @__PURE__ */ Object.getOwnPropertyNames(Symbol).filter((e) => e !== "arguments" && e !== "caller").map((e) => Symbol[e]).filter(Pe)
500
500
  );
501
- function Po(e) {
502
- Ve(e) || (e = String(e));
503
- const t = C(this);
504
- return O(t, "has", e), t.hasOwnProperty(e);
501
+ function To(e) {
502
+ Pe(e) || (e = String(e));
503
+ const t = N(this);
504
+ return I(t, "has", e), t.hasOwnProperty(e);
505
505
  }
506
- class yn {
506
+ class Sn {
507
507
  constructor(t = !1, n = !1) {
508
508
  this._isReadonly = t, this._isShallow = n;
509
509
  }
@@ -517,16 +517,16 @@ class yn {
517
517
  if (n === "__v_isShallow")
518
518
  return r;
519
519
  if (n === "__v_raw")
520
- return o === (s ? r ? xn : On : r ? zo : Sn).get(t) || // receiver is not the reactive proxy, but has the same prototype
520
+ return o === (s ? r ? An : xn : r ? zo : In).get(t) || // receiver is not the reactive proxy, but has the same prototype
521
521
  // this means the receiver is a user proxy of the reactive proxy
522
522
  Object.getPrototypeOf(t) === Object.getPrototypeOf(o) ? t : void 0;
523
523
  const a = E(t);
524
524
  if (!s) {
525
- let l;
526
- if (a && (l = Ao[n]))
527
- return l;
525
+ let u;
526
+ if (a && (u = Do[n]))
527
+ return u;
528
528
  if (n === "hasOwnProperty")
529
- return Po;
529
+ return To;
530
530
  }
531
531
  const c = Reflect.get(
532
532
  t,
@@ -534,78 +534,78 @@ class yn {
534
534
  // if this is a proxy wrapping a ref, return methods using the raw ref
535
535
  // as receiver so that we don't have to call `toRaw` on the ref in all
536
536
  // its class methods
537
- I(t) ? t : o
537
+ V(t) ? t : o
538
538
  );
539
- return (Ve(n) ? En.has(n) : Io(n)) || (s || O(t, "get", n), r) ? c : I(c) ? a && kt(n) ? c : c.value : P(c) ? s ? Le(c) : Dn(c) : c;
539
+ return (Pe(n) ? yn.has(n) : Vo(n)) || (s || I(t, "get", n), r) ? c : V(c) ? a && Lt(n) ? c : c.value : T(c) ? s ? Ue(c) : Dn(c) : c;
540
540
  }
541
541
  }
542
- class To extends yn {
542
+ class jo extends Sn {
543
543
  constructor(t = !1) {
544
544
  super(!1, t);
545
545
  }
546
546
  set(t, n, o, s) {
547
547
  let r = t[n];
548
548
  if (!this._isShallow) {
549
- const l = J(r);
550
- if (!T(o) && !J(o) && (r = C(r), o = C(o)), !E(t) && I(r) && !I(o))
551
- return l ? !1 : (r.value = o, !0);
549
+ const u = J(r);
550
+ if (!j(o) && !J(o) && (r = N(r), o = N(o)), !E(t) && V(r) && !V(o))
551
+ return u ? !1 : (r.value = o, !0);
552
552
  }
553
- const a = E(t) && kt(n) ? Number(n) < t.length : S(t, n), c = Reflect.set(
553
+ const a = E(t) && Lt(n) ? Number(n) < t.length : O(t, n), c = Reflect.set(
554
554
  t,
555
555
  n,
556
556
  o,
557
- I(t) ? t : s
557
+ V(t) ? t : s
558
558
  );
559
- return t === C(s) && (a ? ee(o, r) && Z(t, "set", n, o, r) : Z(t, "add", n, o)), c;
559
+ return t === N(s) && (a ? ee(o, r) && Z(t, "set", n, o, r) : Z(t, "add", n, o)), c;
560
560
  }
561
561
  deleteProperty(t, n) {
562
- const o = S(t, n), s = t[n], r = Reflect.deleteProperty(t, n);
562
+ const o = O(t, n), s = t[n], r = Reflect.deleteProperty(t, n);
563
563
  return r && o && Z(t, "delete", n, void 0, s), r;
564
564
  }
565
565
  has(t, n) {
566
566
  const o = Reflect.has(t, n);
567
- return (!Ve(n) || !En.has(n)) && O(t, "has", n), o;
567
+ return (!Pe(n) || !yn.has(n)) && I(t, "has", n), o;
568
568
  }
569
569
  ownKeys(t) {
570
- return O(
570
+ return I(
571
571
  t,
572
572
  "iterate",
573
573
  E(t) ? "length" : se
574
574
  ), Reflect.ownKeys(t);
575
575
  }
576
576
  }
577
- class $n extends yn {
577
+ class On extends Sn {
578
578
  constructor(t = !1) {
579
579
  super(!0, t);
580
580
  }
581
581
  set(t, n) {
582
- return process.env.NODE_ENV !== "production" && G(
582
+ return process.env.NODE_ENV !== "production" && W(
583
583
  `Set operation on key "${String(n)}" failed: target is readonly.`,
584
584
  t
585
585
  ), !0;
586
586
  }
587
587
  deleteProperty(t, n) {
588
- return process.env.NODE_ENV !== "production" && G(
588
+ return process.env.NODE_ENV !== "production" && W(
589
589
  `Delete operation on key "${String(n)}" failed: target is readonly.`,
590
590
  t
591
591
  ), !0;
592
592
  }
593
593
  }
594
- const Ro = /* @__PURE__ */ new To(), Fo = /* @__PURE__ */ new $n(), jo = /* @__PURE__ */ new $n(!0), St = (e) => e, Te = (e) => Reflect.getPrototypeOf(e);
595
- function ko(e, t, n) {
594
+ const Fo = /* @__PURE__ */ new jo(), Ro = /* @__PURE__ */ new On(), ko = /* @__PURE__ */ new On(!0), At = (e) => e, Fe = (e) => Reflect.getPrototypeOf(e);
595
+ function Ho(e, t, n) {
596
596
  return function(...o) {
597
- const s = this.__v_raw, r = C(s), a = _e(r), c = e === "entries" || e === Symbol.iterator && a, l = e === "keys" && a, d = s[e](...o), f = n ? St : t ? Ot : V;
598
- return !t && O(
597
+ const s = this.__v_raw, r = N(s), a = ve(r), c = e === "entries" || e === Symbol.iterator && a, u = e === "keys" && a, f = s[e](...o), d = n ? At : t ? Dt : P;
598
+ return !t && I(
599
599
  r,
600
600
  "iterate",
601
- l ? $t : se
601
+ u ? xt : se
602
602
  ), {
603
603
  // iterator protocol
604
604
  next() {
605
- const { value: i, done: u } = d.next();
606
- return u ? { value: i, done: u } : {
607
- value: c ? [f(i[0]), f(i[1])] : f(i),
608
- done: u
605
+ const { value: i, done: l } = f.next();
606
+ return l ? { value: i, done: l } : {
607
+ value: c ? [d(i[0]), d(i[1])] : d(i),
608
+ done: l
609
609
  };
610
610
  },
611
611
  // iterable protocol
@@ -619,37 +619,37 @@ function Re(e) {
619
619
  return function(...t) {
620
620
  if (process.env.NODE_ENV !== "production") {
621
621
  const n = t[0] ? `on key "${t[0]}" ` : "";
622
- G(
622
+ W(
623
623
  `${No(e)} operation ${n}failed: target is readonly.`,
624
- C(this)
624
+ N(this)
625
625
  );
626
626
  }
627
627
  return e === "delete" ? !1 : e === "clear" ? void 0 : this;
628
628
  };
629
629
  }
630
- function Ho(e, t) {
630
+ function Mo(e, t) {
631
631
  const n = {
632
632
  get(s) {
633
- const r = this.__v_raw, a = C(r), c = C(s);
634
- e || (ee(s, c) && O(a, "get", s), O(a, "get", c));
635
- const { has: l } = Te(a), d = t ? St : e ? Ot : V;
636
- if (l.call(a, s))
637
- return d(r.get(s));
638
- if (l.call(a, c))
639
- return d(r.get(c));
633
+ const r = this.__v_raw, a = N(r), c = N(s);
634
+ e || (ee(s, c) && I(a, "get", s), I(a, "get", c));
635
+ const { has: u } = Fe(a), f = t ? At : e ? Dt : P;
636
+ if (u.call(a, s))
637
+ return f(r.get(s));
638
+ if (u.call(a, c))
639
+ return f(r.get(c));
640
640
  r !== a && r.get(s);
641
641
  },
642
642
  get size() {
643
643
  const s = this.__v_raw;
644
- return !e && O(C(s), "iterate", se), Reflect.get(s, "size", s);
644
+ return !e && I(N(s), "iterate", se), Reflect.get(s, "size", s);
645
645
  },
646
646
  has(s) {
647
- const r = this.__v_raw, a = C(r), c = C(s);
648
- return e || (ee(s, c) && O(a, "has", s), O(a, "has", c)), s === c ? r.has(s) : r.has(s) || r.has(c);
647
+ const r = this.__v_raw, a = N(r), c = N(s);
648
+ return e || (ee(s, c) && I(a, "has", s), I(a, "has", c)), s === c ? r.has(s) : r.has(s) || r.has(c);
649
649
  },
650
650
  forEach(s, r) {
651
- const a = this, c = a.__v_raw, l = C(c), d = t ? St : e ? Ot : V;
652
- return !e && O(l, "iterate", se), c.forEach((f, i) => s.call(r, d(f), d(i), a));
651
+ const a = this, c = a.__v_raw, u = N(c), f = t ? At : e ? Dt : P;
652
+ return !e && I(u, "iterate", se), c.forEach((d, i) => s.call(r, f(d), f(i), a));
653
653
  }
654
654
  };
655
655
  return F(
@@ -661,27 +661,27 @@ function Ho(e, t) {
661
661
  clear: Re("clear")
662
662
  } : {
663
663
  add(s) {
664
- !t && !T(s) && !J(s) && (s = C(s));
665
- const r = C(this);
666
- return Te(r).has.call(r, s) || (r.add(s), Z(r, "add", s, s)), this;
664
+ !t && !j(s) && !J(s) && (s = N(s));
665
+ const r = N(this);
666
+ return Fe(r).has.call(r, s) || (r.add(s), Z(r, "add", s, s)), this;
667
667
  },
668
668
  set(s, r) {
669
- !t && !T(r) && !J(r) && (r = C(r));
670
- const a = C(this), { has: c, get: l } = Te(a);
671
- let d = c.call(a, s);
672
- d ? process.env.NODE_ENV !== "production" && an(a, c, s) : (s = C(s), d = c.call(a, s));
673
- const f = l.call(a, s);
674
- return a.set(s, r), d ? ee(r, f) && Z(a, "set", s, r, f) : Z(a, "add", s, r), this;
669
+ !t && !j(r) && !J(r) && (r = N(r));
670
+ const a = N(this), { has: c, get: u } = Fe(a);
671
+ let f = c.call(a, s);
672
+ f ? process.env.NODE_ENV !== "production" && un(a, c, s) : (s = N(s), f = c.call(a, s));
673
+ const d = u.call(a, s);
674
+ return a.set(s, r), f ? ee(r, d) && Z(a, "set", s, r, d) : Z(a, "add", s, r), this;
675
675
  },
676
676
  delete(s) {
677
- const r = C(this), { has: a, get: c } = Te(r);
678
- let l = a.call(r, s);
679
- l ? process.env.NODE_ENV !== "production" && an(r, a, s) : (s = C(s), l = a.call(r, s));
680
- const d = c ? c.call(r, s) : void 0, f = r.delete(s);
681
- return l && Z(r, "delete", s, void 0, d), f;
677
+ const r = N(this), { has: a, get: c } = Fe(r);
678
+ let u = a.call(r, s);
679
+ u ? process.env.NODE_ENV !== "production" && un(r, a, s) : (s = N(s), u = a.call(r, s));
680
+ const f = c ? c.call(r, s) : void 0, d = r.delete(s);
681
+ return u && Z(r, "delete", s, void 0, f), d;
682
682
  },
683
683
  clear() {
684
- const s = C(this), r = s.size !== 0, a = process.env.NODE_ENV !== "production" ? _e(s) ? new Map(s) : new Set(s) : void 0, c = s.clear();
684
+ const s = N(this), r = s.size !== 0, a = process.env.NODE_ENV !== "production" ? ve(s) ? new Map(s) : new Set(s) : void 0, c = s.clear();
685
685
  return r && Z(
686
686
  s,
687
687
  "clear",
@@ -697,35 +697,35 @@ function Ho(e, t) {
697
697
  "entries",
698
698
  Symbol.iterator
699
699
  ].forEach((s) => {
700
- n[s] = ko(s, e, t);
700
+ n[s] = Ho(s, e, t);
701
701
  }), n;
702
702
  }
703
- function Wt(e, t) {
704
- const n = Ho(e, t);
703
+ function qt(e, t) {
704
+ const n = Mo(e, t);
705
705
  return (o, s, r) => s === "__v_isReactive" ? !e : s === "__v_isReadonly" ? e : s === "__v_raw" ? o : Reflect.get(
706
- S(n, s) && s in o ? n : o,
706
+ O(n, s) && s in o ? n : o,
707
707
  s,
708
708
  r
709
709
  );
710
710
  }
711
- const Mo = {
712
- get: /* @__PURE__ */ Wt(!1, !1)
713
- }, Lo = {
714
- get: /* @__PURE__ */ Wt(!0, !1)
711
+ const Lo = {
712
+ get: /* @__PURE__ */ qt(!1, !1)
715
713
  }, Ko = {
716
- get: /* @__PURE__ */ Wt(!0, !0)
714
+ get: /* @__PURE__ */ qt(!0, !1)
715
+ }, Uo = {
716
+ get: /* @__PURE__ */ qt(!0, !0)
717
717
  };
718
- function an(e, t, n) {
719
- const o = C(n);
718
+ function un(e, t, n) {
719
+ const o = N(n);
720
720
  if (o !== n && t.call(e, o)) {
721
- const s = mn(e);
722
- G(
721
+ const s = _n(e);
722
+ W(
723
723
  `Reactive ${s} contains both the raw and reactive versions of the same object${s === "Map" ? " as keys" : ""}, which can lead to inconsistencies. Avoid differentiating between the raw and reactive versions of an object and only use the reactive version if possible.`
724
724
  );
725
725
  }
726
726
  }
727
- const Sn = /* @__PURE__ */ new WeakMap(), zo = /* @__PURE__ */ new WeakMap(), On = /* @__PURE__ */ new WeakMap(), xn = /* @__PURE__ */ new WeakMap();
728
- function Uo(e) {
727
+ const In = /* @__PURE__ */ new WeakMap(), zo = /* @__PURE__ */ new WeakMap(), xn = /* @__PURE__ */ new WeakMap(), An = /* @__PURE__ */ new WeakMap();
728
+ function Go(e) {
729
729
  switch (e) {
730
730
  case "Object":
731
731
  case "Array":
@@ -740,38 +740,38 @@ function Uo(e) {
740
740
  }
741
741
  }
742
742
  function Bo(e) {
743
- return e.__v_skip || !Object.isExtensible(e) ? 0 : Uo(mn(e));
743
+ return e.__v_skip || !Object.isExtensible(e) ? 0 : Go(_n(e));
744
744
  }
745
745
  function Dn(e) {
746
- return J(e) ? e : Gt(
746
+ return J(e) ? e : Yt(
747
747
  e,
748
748
  !1,
749
- Ro,
750
- Mo,
751
- Sn
749
+ Fo,
750
+ Lo,
751
+ In
752
752
  );
753
753
  }
754
- function Le(e) {
755
- return Gt(
754
+ function Ue(e) {
755
+ return Yt(
756
756
  e,
757
757
  !0,
758
- Fo,
759
- Lo,
760
- On
758
+ Ro,
759
+ Ko,
760
+ xn
761
761
  );
762
762
  }
763
763
  function X(e) {
764
- return Gt(
764
+ return Yt(
765
765
  e,
766
766
  !0,
767
- jo,
768
- Ko,
769
- xn
767
+ ko,
768
+ Uo,
769
+ An
770
770
  );
771
771
  }
772
- function Gt(e, t, n, o, s) {
773
- if (!P(e))
774
- return process.env.NODE_ENV !== "production" && G(
772
+ function Yt(e, t, n, o, s) {
773
+ if (!T(e))
774
+ return process.env.NODE_ENV !== "production" && W(
775
775
  `value cannot be made ${t ? "readonly" : "reactive"}: ${String(
776
776
  e
777
777
  )}`
@@ -790,38 +790,38 @@ function Gt(e, t, n, o, s) {
790
790
  );
791
791
  return s.set(e, c), c;
792
792
  }
793
- function ve(e) {
794
- return J(e) ? ve(e.__v_raw) : !!(e && e.__v_isReactive);
793
+ function Ce(e) {
794
+ return J(e) ? Ce(e.__v_raw) : !!(e && e.__v_isReactive);
795
795
  }
796
796
  function J(e) {
797
797
  return !!(e && e.__v_isReadonly);
798
798
  }
799
- function T(e) {
799
+ function j(e) {
800
800
  return !!(e && e.__v_isShallow);
801
801
  }
802
- function Ke(e) {
802
+ function ze(e) {
803
803
  return e ? !!e.__v_raw : !1;
804
804
  }
805
- function C(e) {
805
+ function N(e) {
806
806
  const t = e && e.__v_raw;
807
- return t ? C(t) : e;
807
+ return t ? N(t) : e;
808
808
  }
809
809
  function Wo(e) {
810
- return !S(e, "__v_skip") && Object.isExtensible(e) && wo(e, "__v_skip", !0), e;
810
+ return !O(e, "__v_skip") && Object.isExtensible(e) && wo(e, "__v_skip", !0), e;
811
811
  }
812
- const V = (e) => P(e) ? Dn(e) : e, Ot = (e) => P(e) ? Le(e) : e;
813
- function I(e) {
812
+ const P = (e) => T(e) ? Dn(e) : e, Dt = (e) => T(e) ? Ue(e) : e;
813
+ function V(e) {
814
814
  return e ? e.__v_isRef === !0 : !1;
815
815
  }
816
- function ze(e) {
817
- return Go(e, !1);
816
+ function Ge(e) {
817
+ return Jo(e, !1);
818
818
  }
819
- function Go(e, t) {
820
- return I(e) ? e : new Jo(e, t);
819
+ function Jo(e, t) {
820
+ return V(e) ? e : new qo(e, t);
821
821
  }
822
- class Jo {
822
+ class qo {
823
823
  constructor(t, n) {
824
- this.dep = new Ut(), this.__v_isRef = !0, this.__v_isShallow = !1, this._rawValue = n ? t : C(t), this._value = n ? t : V(t), this.__v_isShallow = n;
824
+ this.dep = new Wt(), this.__v_isRef = !0, this.__v_isShallow = !1, this._rawValue = n ? t : N(t), this._value = n ? t : P(t), this.__v_isShallow = n;
825
825
  }
826
826
  get value() {
827
827
  return process.env.NODE_ENV !== "production" ? this.dep.track({
@@ -831,8 +831,8 @@ class Jo {
831
831
  }) : this.dep.track(), this._value;
832
832
  }
833
833
  set value(t) {
834
- const n = this._rawValue, o = this.__v_isShallow || T(t) || J(t);
835
- t = o ? t : C(t), ee(t, n) && (this._rawValue = t, this._value = o ? t : V(t), process.env.NODE_ENV !== "production" ? this.dep.trigger({
834
+ const n = this._rawValue, o = this.__v_isShallow || j(t) || J(t);
835
+ t = o ? t : N(t), ee(t, n) && (this._rawValue = t, this._value = o ? t : P(t), process.env.NODE_ENV !== "production" ? this.dep.trigger({
836
836
  target: this,
837
837
  type: "set",
838
838
  key: "value",
@@ -841,22 +841,22 @@ class Jo {
841
841
  }) : this.dep.trigger());
842
842
  }
843
843
  }
844
- function qo(e) {
845
- return I(e) ? e.value : e;
844
+ function Yo(e) {
845
+ return V(e) ? e.value : e;
846
846
  }
847
- const Yo = {
848
- get: (e, t, n) => t === "__v_raw" ? e : qo(Reflect.get(e, t, n)),
847
+ const Zo = {
848
+ get: (e, t, n) => t === "__v_raw" ? e : Yo(Reflect.get(e, t, n)),
849
849
  set: (e, t, n, o) => {
850
850
  const s = e[t];
851
- return I(s) && !I(n) ? (s.value = n, !0) : Reflect.set(e, t, n, o);
851
+ return V(s) && !V(n) ? (s.value = n, !0) : Reflect.set(e, t, n, o);
852
852
  }
853
853
  };
854
- function Zo(e) {
855
- return ve(e) ? e : new Proxy(e, Yo);
854
+ function Qo(e) {
855
+ return Ce(e) ? e : new Proxy(e, Zo);
856
856
  }
857
- class Qo {
857
+ class Xo {
858
858
  constructor(t, n, o) {
859
- this.fn = t, this.setter = n, this._value = void 0, this.dep = new Ut(this), this.__v_isRef = !0, this.deps = void 0, this.depsTail = void 0, this.flags = 16, this.globalVersion = Se - 1, this.next = void 0, this.effect = this, this.__v_isReadonly = !n, this.isSSR = o;
859
+ this.fn = t, this.setter = n, this._value = void 0, this.dep = new Wt(this), this.__v_isRef = !0, this.deps = void 0, this.depsTail = void 0, this.flags = 16, this.globalVersion = Oe - 1, this.next = void 0, this.effect = this, this.__v_isReadonly = !n, this.isSSR = o;
860
860
  }
861
861
  /**
862
862
  * @internal
@@ -864,7 +864,7 @@ class Qo {
864
864
  notify() {
865
865
  if (this.flags |= 16, !(this.flags & 8) && // avoid infinite self recursion
866
866
  w !== this)
867
- return _n(this, !0), !0;
867
+ return Cn(this, !0), !0;
868
868
  process.env.NODE_ENV;
869
869
  }
870
870
  get value() {
@@ -873,125 +873,125 @@ class Qo {
873
873
  type: "get",
874
874
  key: "value"
875
875
  }) : this.dep.track();
876
- return bn(this), t && (t.version = this.dep.version), this._value;
876
+ return Nn(this), t && (t.version = this.dep.version), this._value;
877
877
  }
878
878
  set value(t) {
879
- this.setter ? this.setter(t) : process.env.NODE_ENV !== "production" && G("Write operation failed: computed value is readonly");
879
+ this.setter ? this.setter(t) : process.env.NODE_ENV !== "production" && W("Write operation failed: computed value is readonly");
880
880
  }
881
881
  }
882
- function Xo(e, t, n = !1) {
882
+ function es(e, t, n = !1) {
883
883
  let o, s;
884
884
  x(e) ? o = e : (o = e.get, s = e.set);
885
- const r = new Qo(o, s, n);
885
+ const r = new Xo(o, s, n);
886
886
  return process.env.NODE_ENV, r;
887
887
  }
888
- const Fe = {}, Ue = /* @__PURE__ */ new WeakMap();
888
+ const ke = {}, Be = /* @__PURE__ */ new WeakMap();
889
889
  let ne;
890
- function es(e, t = !1, n = ne) {
890
+ function ts(e, t = !1, n = ne) {
891
891
  if (n) {
892
- let o = Ue.get(n);
893
- o || Ue.set(n, o = []), o.push(e);
894
- } else process.env.NODE_ENV !== "production" && !t && G(
892
+ let o = Be.get(n);
893
+ o || Be.set(n, o = []), o.push(e);
894
+ } else process.env.NODE_ENV !== "production" && !t && W(
895
895
  "onWatcherCleanup() was called when there was no active watcher to associate with."
896
896
  );
897
897
  }
898
- function ts(e, t, n = H) {
899
- const { immediate: o, deep: s, once: r, scheduler: a, augmentJob: c, call: l } = n, d = (b) => {
900
- (n.onWarn || G)(
898
+ function ns(e, t, n = H) {
899
+ const { immediate: o, deep: s, once: r, scheduler: a, augmentJob: c, call: u } = n, f = (b) => {
900
+ (n.onWarn || W)(
901
901
  "Invalid watch source: ",
902
902
  b,
903
903
  "A watch source can only be a getter/effect function, a ref, a reactive object, or an array of these types."
904
904
  );
905
- }, f = (b) => s ? b : T(b) || s === !1 || s === 0 ? Q(b, 1) : Q(b);
906
- let i, u, p, _, g = !1, m = !1;
907
- if (I(e) ? (u = () => e.value, g = T(e)) : ve(e) ? (u = () => f(e), g = !0) : E(e) ? (m = !0, g = e.some((b) => ve(b) || T(b)), u = () => e.map((b) => {
908
- if (I(b))
905
+ }, d = (b) => s ? b : j(b) || s === !1 || s === 0 ? Q(b, 1) : Q(b);
906
+ let i, l, p, _, h = !1, g = !1;
907
+ if (V(e) ? (l = () => e.value, h = j(e)) : Ce(e) ? (l = () => d(e), h = !0) : E(e) ? (g = !0, h = e.some((b) => Ce(b) || j(b)), l = () => e.map((b) => {
908
+ if (V(b))
909
909
  return b.value;
910
- if (ve(b))
911
- return f(b);
910
+ if (Ce(b))
911
+ return d(b);
912
912
  if (x(b))
913
- return l ? l(b, 2) : b();
914
- process.env.NODE_ENV !== "production" && d(b);
915
- })) : x(e) ? t ? u = l ? () => l(e, 2) : e : u = () => {
913
+ return u ? u(b, 2) : b();
914
+ process.env.NODE_ENV !== "production" && f(b);
915
+ })) : x(e) ? t ? l = u ? () => u(e, 2) : e : l = () => {
916
916
  if (p) {
917
- rt();
917
+ ct();
918
918
  try {
919
919
  p();
920
920
  } finally {
921
- it();
921
+ ut();
922
922
  }
923
923
  }
924
924
  const b = ne;
925
925
  ne = i;
926
926
  try {
927
- return l ? l(e, 3, [_]) : e(_);
927
+ return u ? u(e, 3, [_]) : e(_);
928
928
  } finally {
929
929
  ne = b;
930
930
  }
931
- } : (u = oe, process.env.NODE_ENV !== "production" && d(e)), t && s) {
932
- const b = u, L = s === !0 ? 1 / 0 : s;
933
- u = () => Q(b(), L);
931
+ } : (l = oe, process.env.NODE_ENV !== "production" && f(e)), t && s) {
932
+ const b = l, L = s === !0 ? 1 / 0 : s;
933
+ l = () => Q(b(), L);
934
934
  }
935
- const h = () => {
935
+ const m = () => {
936
936
  i.stop();
937
937
  };
938
938
  if (r && t) {
939
939
  const b = t;
940
940
  t = (...L) => {
941
- b(...L), h();
941
+ b(...L), m();
942
942
  };
943
943
  }
944
- let v = m ? new Array(e.length).fill(Fe) : Fe;
945
- const y = (b) => {
944
+ let v = g ? new Array(e.length).fill(ke) : ke;
945
+ const C = (b) => {
946
946
  if (!(!(i.flags & 1) || !i.dirty && !b))
947
947
  if (t) {
948
948
  const L = i.run();
949
- if (s || g || (m ? L.some((ut, Pe) => ee(ut, v[Pe])) : ee(L, v))) {
949
+ if (s || h || (g ? L.some((mt, je) => ee(mt, v[je])) : ee(L, v))) {
950
950
  p && p();
951
- const ut = ne;
951
+ const mt = ne;
952
952
  ne = i;
953
953
  try {
954
- const Pe = [
954
+ const je = [
955
955
  L,
956
956
  // pass undefined as the old value when it's changed for the first time
957
- v === Fe ? void 0 : m && v[0] === Fe ? [] : v,
957
+ v === ke ? void 0 : g && v[0] === ke ? [] : v,
958
958
  _
959
959
  ];
960
- l ? l(t, 3, Pe) : (
960
+ u ? u(t, 3, je) : (
961
961
  // @ts-expect-error
962
- t(...Pe)
962
+ t(...je)
963
963
  ), v = L;
964
964
  } finally {
965
- ne = ut;
965
+ ne = mt;
966
966
  }
967
967
  }
968
968
  } else
969
969
  i.run();
970
970
  };
971
- return c && c(y), i = new Oo(u), i.scheduler = a ? () => a(y, !1) : y, _ = (b) => es(b, !1, i), p = i.onStop = () => {
972
- const b = Ue.get(i);
971
+ return c && c(C), i = new Io(l), i.scheduler = a ? () => a(C, !1) : C, _ = (b) => ts(b, !1, i), p = i.onStop = () => {
972
+ const b = Be.get(i);
973
973
  if (b) {
974
- if (l)
975
- l(b, 4);
974
+ if (u)
975
+ u(b, 4);
976
976
  else
977
977
  for (const L of b) L();
978
- Ue.delete(i);
978
+ Be.delete(i);
979
979
  }
980
- }, process.env.NODE_ENV !== "production" && (i.onTrack = n.onTrack, i.onTrigger = n.onTrigger), t ? o ? y(!0) : v = i.run() : a ? a(y.bind(null, !0), !0) : i.run(), h.pause = i.pause.bind(i), h.resume = i.resume.bind(i), h.stop = h, h;
980
+ }, process.env.NODE_ENV !== "production" && (i.onTrack = n.onTrack, i.onTrigger = n.onTrigger), t ? o ? C(!0) : v = i.run() : a ? a(C.bind(null, !0), !0) : i.run(), m.pause = i.pause.bind(i), m.resume = i.resume.bind(i), m.stop = m, m;
981
981
  }
982
982
  function Q(e, t = 1 / 0, n) {
983
- if (t <= 0 || !P(e) || e.__v_skip || (n = n || /* @__PURE__ */ new Set(), n.has(e)))
983
+ if (t <= 0 || !T(e) || e.__v_skip || (n = n || /* @__PURE__ */ new Set(), n.has(e)))
984
984
  return e;
985
- if (n.add(e), t--, I(e))
985
+ if (n.add(e), t--, V(e))
986
986
  Q(e.value, t, n);
987
987
  else if (E(e))
988
988
  for (let o = 0; o < e.length; o++)
989
989
  Q(e[o], t, n);
990
- else if (go(e) || _e(e))
990
+ else if (_o(e) || ve(e))
991
991
  e.forEach((o) => {
992
992
  Q(o, t, n);
993
993
  });
994
- else if (Co(e)) {
994
+ else if ($o(e)) {
995
995
  for (const o in e)
996
996
  Q(e[o], t, n);
997
997
  for (const o of Object.getOwnPropertySymbols(e))
@@ -1005,19 +1005,19 @@ function Q(e, t = 1 / 0, n) {
1005
1005
  * @license MIT
1006
1006
  **/
1007
1007
  const re = [];
1008
- function ns(e) {
1008
+ function os(e) {
1009
1009
  re.push(e);
1010
1010
  }
1011
- function os() {
1011
+ function ss() {
1012
1012
  re.pop();
1013
1013
  }
1014
- let ht = !1;
1015
- function $(e, ...t) {
1016
- if (ht) return;
1017
- ht = !0, rt();
1018
- const n = re.length ? re[re.length - 1].component : null, o = n && n.appContext.config.warnHandler, s = ss();
1014
+ let vt = !1;
1015
+ function S(e, ...t) {
1016
+ if (vt) return;
1017
+ vt = !0, ct();
1018
+ const n = re.length ? re[re.length - 1].component : null, o = n && n.appContext.config.warnHandler, s = rs();
1019
1019
  if (o)
1020
- at(
1020
+ lt(
1021
1021
  o,
1022
1022
  n,
1023
1023
  11,
@@ -1029,7 +1029,7 @@ function $(e, ...t) {
1029
1029
  }).join(""),
1030
1030
  n && n.proxy,
1031
1031
  s.map(
1032
- ({ vnode: r }) => `at <${Wn(n, r.type)}>`
1032
+ ({ vnode: r }) => `at <${Jn(n, r.type)}>`
1033
1033
  ).join(`
1034
1034
  `),
1035
1035
  s
@@ -1038,11 +1038,11 @@ function $(e, ...t) {
1038
1038
  else {
1039
1039
  const r = [`[Vue warn]: ${e}`, ...t];
1040
1040
  s.length && r.push(`
1041
- `, ...rs(s));
1041
+ `, ...is(s));
1042
1042
  }
1043
- it(), ht = !1;
1043
+ ut(), vt = !1;
1044
1044
  }
1045
- function ss() {
1045
+ function rs() {
1046
1046
  let e = re[re.length - 1];
1047
1047
  if (!e)
1048
1048
  return [];
@@ -1058,29 +1058,29 @@ function ss() {
1058
1058
  }
1059
1059
  return t;
1060
1060
  }
1061
- function rs(e) {
1061
+ function is(e) {
1062
1062
  const t = [];
1063
1063
  return e.forEach((n, o) => {
1064
1064
  t.push(...o === 0 ? [] : [`
1065
- `], ...is(n));
1065
+ `], ...as(n));
1066
1066
  }), t;
1067
1067
  }
1068
- function is({ vnode: e, recurseCount: t }) {
1069
- const n = t > 0 ? `... (${t} recursive calls)` : "", o = e.component ? e.component.parent == null : !1, s = ` at <${Wn(
1068
+ function as({ vnode: e, recurseCount: t }) {
1069
+ const n = t > 0 ? `... (${t} recursive calls)` : "", o = e.component ? e.component.parent == null : !1, s = ` at <${Jn(
1070
1070
  e.component,
1071
1071
  e.type,
1072
1072
  o
1073
1073
  )}`, r = ">" + n;
1074
- return e.props ? [s, ...as(e.props), r] : [s + r];
1074
+ return e.props ? [s, ...cs(e.props), r] : [s + r];
1075
1075
  }
1076
- function as(e) {
1076
+ function cs(e) {
1077
1077
  const t = [], n = Object.keys(e);
1078
1078
  return n.slice(0, 3).forEach((o) => {
1079
- t.push(...An(o, e[o]));
1079
+ t.push(...Pn(o, e[o]));
1080
1080
  }), n.length > 3 && t.push(" ..."), t;
1081
1081
  }
1082
- function An(e, t, n) {
1083
- return K(t) ? (t = JSON.stringify(t), n ? t : [`${e}=${t}`]) : typeof t == "number" || typeof t == "boolean" || t == null ? n ? t : [`${e}=${t}`] : I(t) ? (t = An(e, C(t.value), !0), n ? t : [`${e}=Ref<`, t, ">"]) : x(t) ? [`${e}=fn${t.name ? `<${t.name}>` : ""}`] : (t = C(t), n ? t : [`${e}=`, t]);
1082
+ function Pn(e, t, n) {
1083
+ return K(t) ? (t = JSON.stringify(t), n ? t : [`${e}=${t}`]) : typeof t == "number" || typeof t == "boolean" || t == null ? n ? t : [`${e}=${t}`] : V(t) ? (t = Pn(e, N(t.value), !0), n ? t : [`${e}=Ref<`, t, ">"]) : x(t) ? [`${e}=fn${t.name ? `<${t.name}>` : ""}`] : (t = N(t), n ? t : [`${e}=`, t]);
1084
1084
  }
1085
1085
  const Vn = {
1086
1086
  sp: "serverPrefetch hook",
@@ -1115,121 +1115,121 @@ const Vn = {
1115
1115
  15: "component update",
1116
1116
  16: "app unmount cleanup function"
1117
1117
  };
1118
- function at(e, t, n, o) {
1118
+ function lt(e, t, n, o) {
1119
1119
  try {
1120
1120
  return o ? e(...o) : e();
1121
1121
  } catch (s) {
1122
- Jt(s, t, n);
1122
+ Zt(s, t, n);
1123
1123
  }
1124
1124
  }
1125
- function In(e, t, n, o) {
1125
+ function Tn(e, t, n, o) {
1126
1126
  if (x(e)) {
1127
- const s = at(e, t, n, o);
1128
- return s && _o(s) && s.catch((r) => {
1129
- Jt(r, t, n);
1127
+ const s = lt(e, t, n, o);
1128
+ return s && vo(s) && s.catch((r) => {
1129
+ Zt(r, t, n);
1130
1130
  }), s;
1131
1131
  }
1132
1132
  if (E(e)) {
1133
1133
  const s = [];
1134
1134
  for (let r = 0; r < e.length; r++)
1135
- s.push(In(e[r], t, n, o));
1135
+ s.push(Tn(e[r], t, n, o));
1136
1136
  return s;
1137
- } else process.env.NODE_ENV !== "production" && $(
1137
+ } else process.env.NODE_ENV !== "production" && S(
1138
1138
  `Invalid value type passed to callWithAsyncErrorHandling(): ${typeof e}`
1139
1139
  );
1140
1140
  }
1141
- function Jt(e, t, n, o = !0) {
1141
+ function Zt(e, t, n, o = !0) {
1142
1142
  const s = t ? t.vnode : null, { errorHandler: r, throwUnhandledErrorInProduction: a } = t && t.appContext.config || H;
1143
1143
  if (t) {
1144
1144
  let c = t.parent;
1145
- const l = t.proxy, d = process.env.NODE_ENV !== "production" ? Vn[n] : `https://vuejs.org/error-reference/#runtime-${n}`;
1145
+ const u = t.proxy, f = process.env.NODE_ENV !== "production" ? Vn[n] : `https://vuejs.org/error-reference/#runtime-${n}`;
1146
1146
  for (; c; ) {
1147
- const f = c.ec;
1148
- if (f) {
1149
- for (let i = 0; i < f.length; i++)
1150
- if (f[i](e, l, d) === !1)
1147
+ const d = c.ec;
1148
+ if (d) {
1149
+ for (let i = 0; i < d.length; i++)
1150
+ if (d[i](e, u, f) === !1)
1151
1151
  return;
1152
1152
  }
1153
1153
  c = c.parent;
1154
1154
  }
1155
1155
  if (r) {
1156
- rt(), at(r, null, 10, [
1156
+ ct(), lt(r, null, 10, [
1157
1157
  e,
1158
- l,
1159
- d
1160
- ]), it();
1158
+ u,
1159
+ f
1160
+ ]), ut();
1161
1161
  return;
1162
1162
  }
1163
1163
  }
1164
- cs(e, n, s, o, a);
1164
+ us(e, n, s, o, a);
1165
1165
  }
1166
- function cs(e, t, n, o = !0, s = !1) {
1166
+ function us(e, t, n, o = !0, s = !1) {
1167
1167
  if (process.env.NODE_ENV !== "production") {
1168
1168
  const r = Vn[t];
1169
- if (n && ns(n), $(`Unhandled error${r ? ` during execution of ${r}` : ""}`), n && os(), o)
1169
+ if (n && os(n), S(`Unhandled error${r ? ` during execution of ${r}` : ""}`), n && ss(), o)
1170
1170
  throw e;
1171
1171
  } else if (s)
1172
1172
  throw e;
1173
1173
  }
1174
- const j = [];
1175
- let B = -1;
1176
- const Ce = [];
1174
+ const R = [];
1175
+ let G = -1;
1176
+ const $e = [];
1177
1177
  let q = null, fe = 0;
1178
- const Pn = /* @__PURE__ */ Promise.resolve();
1179
- let Be = null;
1178
+ const jn = /* @__PURE__ */ Promise.resolve();
1179
+ let We = null;
1180
1180
  const ls = 100;
1181
- function us(e) {
1182
- const t = Be || Pn;
1181
+ function ps(e) {
1182
+ const t = We || jn;
1183
1183
  return e ? t.then(this ? e.bind(this) : e) : t;
1184
1184
  }
1185
- function ps(e) {
1186
- let t = B + 1, n = j.length;
1185
+ function ds(e) {
1186
+ let t = G + 1, n = R.length;
1187
1187
  for (; t < n; ) {
1188
- const o = t + n >>> 1, s = j[o], r = xe(s);
1188
+ const o = t + n >>> 1, s = R[o], r = xe(s);
1189
1189
  r < e || r === e && s.flags & 2 ? t = o + 1 : n = o;
1190
1190
  }
1191
1191
  return t;
1192
1192
  }
1193
- function qt(e) {
1193
+ function Qt(e) {
1194
1194
  if (!(e.flags & 1)) {
1195
- const t = xe(e), n = j[j.length - 1];
1195
+ const t = xe(e), n = R[R.length - 1];
1196
1196
  !n || // fast path when the job id is larger than the tail
1197
- !(e.flags & 2) && t >= xe(n) ? j.push(e) : j.splice(ps(t), 0, e), e.flags |= 1, Tn();
1197
+ !(e.flags & 2) && t >= xe(n) ? R.push(e) : R.splice(ds(t), 0, e), e.flags |= 1, Fn();
1198
1198
  }
1199
1199
  }
1200
- function Tn() {
1201
- Be || (Be = Pn.then(Fn));
1200
+ function Fn() {
1201
+ We || (We = jn.then(kn));
1202
1202
  }
1203
1203
  function Rn(e) {
1204
- E(e) ? Ce.push(...e) : q && e.id === -1 ? q.splice(fe + 1, 0, e) : e.flags & 1 || (Ce.push(e), e.flags |= 1), Tn();
1204
+ E(e) ? $e.push(...e) : q && e.id === -1 ? q.splice(fe + 1, 0, e) : e.flags & 1 || ($e.push(e), e.flags |= 1), Fn();
1205
1205
  }
1206
1206
  function fs(e) {
1207
- if (Ce.length) {
1208
- const t = [...new Set(Ce)].sort(
1207
+ if ($e.length) {
1208
+ const t = [...new Set($e)].sort(
1209
1209
  (n, o) => xe(n) - xe(o)
1210
1210
  );
1211
- if (Ce.length = 0, q) {
1211
+ if ($e.length = 0, q) {
1212
1212
  q.push(...t);
1213
1213
  return;
1214
1214
  }
1215
1215
  for (q = t, process.env.NODE_ENV !== "production" && (e = e || /* @__PURE__ */ new Map()), fe = 0; fe < q.length; fe++) {
1216
1216
  const n = q[fe];
1217
- process.env.NODE_ENV !== "production" && jn(e, n) || (n.flags & 4 && (n.flags &= -2), n.flags & 8 || n(), n.flags &= -2);
1217
+ process.env.NODE_ENV !== "production" && Hn(e, n) || (n.flags & 4 && (n.flags &= -2), n.flags & 8 || n(), n.flags &= -2);
1218
1218
  }
1219
1219
  q = null, fe = 0;
1220
1220
  }
1221
1221
  }
1222
1222
  const xe = (e) => e.id == null ? e.flags & 2 ? -1 : 1 / 0 : e.id;
1223
- function Fn(e) {
1223
+ function kn(e) {
1224
1224
  process.env.NODE_ENV !== "production" && (e = e || /* @__PURE__ */ new Map());
1225
- const t = process.env.NODE_ENV !== "production" ? (n) => jn(e, n) : oe;
1225
+ const t = process.env.NODE_ENV !== "production" ? (n) => Hn(e, n) : oe;
1226
1226
  try {
1227
- for (B = 0; B < j.length; B++) {
1228
- const n = j[B];
1227
+ for (G = 0; G < R.length; G++) {
1228
+ const n = R[G];
1229
1229
  if (n && !(n.flags & 8)) {
1230
1230
  if (process.env.NODE_ENV !== "production" && t(n))
1231
1231
  continue;
1232
- n.flags & 4 && (n.flags &= -2), at(
1232
+ n.flags & 4 && (n.flags &= -2), lt(
1233
1233
  n,
1234
1234
  n.i,
1235
1235
  n.i ? 15 : 14
@@ -1237,18 +1237,18 @@ function Fn(e) {
1237
1237
  }
1238
1238
  }
1239
1239
  } finally {
1240
- for (; B < j.length; B++) {
1241
- const n = j[B];
1240
+ for (; G < R.length; G++) {
1241
+ const n = R[G];
1242
1242
  n && (n.flags &= -2);
1243
1243
  }
1244
- B = -1, j.length = 0, fs(e), Be = null, (j.length || Ce.length) && Fn(e);
1244
+ G = -1, R.length = 0, fs(e), We = null, (R.length || $e.length) && kn(e);
1245
1245
  }
1246
1246
  }
1247
- function jn(e, t) {
1247
+ function Hn(e, t) {
1248
1248
  const n = e.get(t) || 0;
1249
1249
  if (n > ls) {
1250
- const o = t.i, s = o && Bn(o.type);
1251
- return Jt(
1250
+ const o = t.i, s = o && Wn(o.type);
1251
+ return Zt(
1252
1252
  `Maximum recursive updates exceeded${s ? ` in component <${s}>` : ""}. This means you have a reactive effect that is mutating its own dependencies and thus recursively triggering itself. Possible sources include component template, render function, updated hook or watcher source function.`,
1253
1253
  null,
1254
1254
  10
@@ -1256,50 +1256,50 @@ function jn(e, t) {
1256
1256
  }
1257
1257
  return e.set(t, n + 1), !1;
1258
1258
  }
1259
- const mt = /* @__PURE__ */ new Map();
1260
- process.env.NODE_ENV !== "production" && (st().__VUE_HMR_RUNTIME__ = {
1261
- createRecord: gt(ds),
1262
- rerender: gt(hs),
1263
- reload: gt(ms)
1259
+ const Ct = /* @__PURE__ */ new Map();
1260
+ process.env.NODE_ENV !== "production" && (at().__VUE_HMR_RUNTIME__ = {
1261
+ createRecord: $t(ms),
1262
+ rerender: $t(hs),
1263
+ reload: $t(gs)
1264
1264
  });
1265
- const We = /* @__PURE__ */ new Map();
1266
- function ds(e, t) {
1267
- return We.has(e) ? !1 : (We.set(e, {
1268
- initialDef: Ge(t),
1265
+ const Je = /* @__PURE__ */ new Map();
1266
+ function ms(e, t) {
1267
+ return Je.has(e) ? !1 : (Je.set(e, {
1268
+ initialDef: qe(t),
1269
1269
  instances: /* @__PURE__ */ new Set()
1270
1270
  }), !0);
1271
1271
  }
1272
- function Ge(e) {
1273
- return Gn(e) ? e.__vccOpts : e;
1272
+ function qe(e) {
1273
+ return qn(e) ? e.__vccOpts : e;
1274
1274
  }
1275
1275
  function hs(e, t) {
1276
- const n = We.get(e);
1276
+ const n = Je.get(e);
1277
1277
  n && (n.initialDef.render = t, [...n.instances].forEach((o) => {
1278
- t && (o.render = t, Ge(o.type).render = t), o.renderCache = [], o.update();
1278
+ t && (o.render = t, qe(o.type).render = t), o.renderCache = [], o.update();
1279
1279
  }));
1280
1280
  }
1281
- function ms(e, t) {
1282
- const n = We.get(e);
1281
+ function gs(e, t) {
1282
+ const n = Je.get(e);
1283
1283
  if (!n) return;
1284
- t = Ge(t), cn(n.initialDef, t);
1284
+ t = qe(t), ln(n.initialDef, t);
1285
1285
  const o = [...n.instances];
1286
1286
  for (let s = 0; s < o.length; s++) {
1287
- const r = o[s], a = Ge(r.type);
1288
- let c = mt.get(a);
1289
- c || (a !== n.initialDef && cn(a, t), mt.set(a, c = /* @__PURE__ */ new Set())), c.add(r), r.appContext.propsCache.delete(r.type), r.appContext.emitsCache.delete(r.type), r.appContext.optionsCache.delete(r.type), r.ceReload ? (c.add(r), r.ceReload(t.styles), c.delete(r)) : r.parent ? qt(() => {
1287
+ const r = o[s], a = qe(r.type);
1288
+ let c = Ct.get(a);
1289
+ c || (a !== n.initialDef && ln(a, t), Ct.set(a, c = /* @__PURE__ */ new Set())), c.add(r), r.appContext.propsCache.delete(r.type), r.appContext.emitsCache.delete(r.type), r.appContext.optionsCache.delete(r.type), r.ceReload ? (c.add(r), r.ceReload(t.styles), c.delete(r)) : r.parent ? Qt(() => {
1290
1290
  r.parent.update(), c.delete(r);
1291
1291
  }) : r.appContext.reload ? r.appContext.reload() : typeof window < "u" && window.location.reload(), r.root.ce && r !== r.root && r.root.ce._removeChildStyle(a);
1292
1292
  }
1293
1293
  Rn(() => {
1294
- mt.clear();
1294
+ Ct.clear();
1295
1295
  });
1296
1296
  }
1297
- function cn(e, t) {
1297
+ function ln(e, t) {
1298
1298
  F(e, t);
1299
1299
  for (const n in e)
1300
1300
  n !== "__file" && !(n in t) && delete e[n];
1301
1301
  }
1302
- function gt(e) {
1302
+ function $t(e) {
1303
1303
  return (t, n) => {
1304
1304
  try {
1305
1305
  return e(t, n);
@@ -1307,26 +1307,26 @@ function gt(e) {
1307
1307
  }
1308
1308
  };
1309
1309
  }
1310
- let de, je = [];
1311
- function kn(e, t) {
1310
+ let me, He = [];
1311
+ function Mn(e, t) {
1312
1312
  var n, o;
1313
- de = e, de ? (de.enabled = !0, je.forEach(({ event: s, args: r }) => de.emit(s, ...r)), je = []) : /* handle late devtools injection - only do this if we are in an actual */ /* browser environment to avoid the timer handle stalling test runner exit */ /* (#4815) */ typeof window < "u" && // some envs mock window but not fully
1313
+ me = e, me ? (me.enabled = !0, He.forEach(({ event: s, args: r }) => me.emit(s, ...r)), He = []) : /* handle late devtools injection - only do this if we are in an actual */ /* browser environment to avoid the timer handle stalling test runner exit */ /* (#4815) */ typeof window < "u" && // some envs mock window but not fully
1314
1314
  window.HTMLElement && // also exclude jsdom
1315
1315
  // eslint-disable-next-line no-restricted-syntax
1316
1316
  !((o = (n = window.navigator) == null ? void 0 : n.userAgent) != null && o.includes("jsdom")) ? ((t.__VUE_DEVTOOLS_HOOK_REPLAY__ = t.__VUE_DEVTOOLS_HOOK_REPLAY__ || []).push((r) => {
1317
- kn(r, t);
1317
+ Mn(r, t);
1318
1318
  }), setTimeout(() => {
1319
- de || (t.__VUE_DEVTOOLS_HOOK_REPLAY__ = null, je = []);
1320
- }, 3e3)) : je = [];
1319
+ me || (t.__VUE_DEVTOOLS_HOOK_REPLAY__ = null, He = []);
1320
+ }, 3e3)) : He = [];
1321
1321
  }
1322
- let le = null, gs = null;
1323
- const _s = (e) => e.__isTeleport;
1324
- function Hn(e, t) {
1325
- e.shapeFlag & 6 && e.component ? (e.transition = t, Hn(e.component.subTree, t)) : e.shapeFlag & 128 ? (e.ssContent.transition = t.clone(e.ssContent), e.ssFallback.transition = t.clone(e.ssFallback)) : e.transition = t;
1322
+ let ue = null, _s = null;
1323
+ const vs = (e) => e.__isTeleport;
1324
+ function Ln(e, t) {
1325
+ e.shapeFlag & 6 && e.component ? (e.transition = t, Ln(e.component.subTree, t)) : e.shapeFlag & 128 ? (e.ssContent.transition = t.clone(e.ssContent), e.ssFallback.transition = t.clone(e.ssFallback)) : e.transition = t;
1326
1326
  }
1327
- st().requestIdleCallback;
1328
- st().cancelIdleCallback;
1329
- const vs = Symbol.for("v-ndc"), xt = (e) => e ? Gs(e) ? Js(e) : xt(e.parent) : null, $e = (
1327
+ at().requestIdleCallback;
1328
+ at().cancelIdleCallback;
1329
+ const Cs = Symbol.for("v-ndc"), Pt = (e) => e ? Js(e) ? qs(e) : Pt(e.parent) : null, Se = (
1330
1330
  // Move PURE marker to new line to workaround compiler discarding it
1331
1331
  // due to type annotation
1332
1332
  /* @__PURE__ */ F(/* @__PURE__ */ Object.create(null), {
@@ -1337,25 +1337,25 @@ const vs = Symbol.for("v-ndc"), xt = (e) => e ? Gs(e) ? Js(e) : xt(e.parent) : n
1337
1337
  $attrs: (e) => process.env.NODE_ENV !== "production" ? X(e.attrs) : e.attrs,
1338
1338
  $slots: (e) => process.env.NODE_ENV !== "production" ? X(e.slots) : e.slots,
1339
1339
  $refs: (e) => process.env.NODE_ENV !== "production" ? X(e.refs) : e.refs,
1340
- $parent: (e) => xt(e.parent),
1341
- $root: (e) => xt(e.root),
1340
+ $parent: (e) => Pt(e.parent),
1341
+ $root: (e) => Pt(e.root),
1342
1342
  $host: (e) => e.ce,
1343
1343
  $emit: (e) => e.emit,
1344
1344
  $options: (e) => __VUE_OPTIONS_API__ ? Ns(e) : e.type,
1345
1345
  $forceUpdate: (e) => e.f || (e.f = () => {
1346
- qt(e.update);
1346
+ Qt(e.update);
1347
1347
  }),
1348
- $nextTick: (e) => e.n || (e.n = us.bind(e.proxy)),
1349
- $watch: (e) => __VUE_OPTIONS_API__ ? Is.bind(e) : oe
1348
+ $nextTick: (e) => e.n || (e.n = ps.bind(e.proxy)),
1349
+ $watch: (e) => __VUE_OPTIONS_API__ ? Vs.bind(e) : oe
1350
1350
  })
1351
- ), _t = (e, t) => e !== H && !e.__isScriptSetup && S(e, t), Cs = {
1351
+ ), bt = (e, t) => e !== H && !e.__isScriptSetup && O(e, t), $s = {
1352
1352
  get({ _: e }, t) {
1353
1353
  if (t === "__v_skip")
1354
1354
  return !0;
1355
- const { ctx: n, setupState: o, data: s, props: r, accessCache: a, type: c, appContext: l } = e;
1355
+ const { ctx: n, setupState: o, data: s, props: r, accessCache: a, type: c, appContext: u } = e;
1356
1356
  if (process.env.NODE_ENV !== "production" && t === "__isVue")
1357
1357
  return !0;
1358
- let d;
1358
+ let f;
1359
1359
  if (t[0] !== "$") {
1360
1360
  const p = a[t];
1361
1361
  if (p !== void 0)
@@ -1370,42 +1370,42 @@ const vs = Symbol.for("v-ndc"), xt = (e) => e ? Gs(e) ? Js(e) : xt(e.parent) : n
1370
1370
  return r[t];
1371
1371
  }
1372
1372
  else {
1373
- if (_t(o, t))
1373
+ if (bt(o, t))
1374
1374
  return a[t] = 1, o[t];
1375
- if (s !== H && S(s, t))
1375
+ if (s !== H && O(s, t))
1376
1376
  return a[t] = 2, s[t];
1377
1377
  if (
1378
1378
  // only cache other properties when instance has declared (thus stable)
1379
1379
  // props
1380
- (d = e.propsOptions[0]) && S(d, t)
1380
+ (f = e.propsOptions[0]) && O(f, t)
1381
1381
  )
1382
1382
  return a[t] = 3, r[t];
1383
- if (n !== H && S(n, t))
1383
+ if (n !== H && O(n, t))
1384
1384
  return a[t] = 4, n[t];
1385
1385
  (!__VUE_OPTIONS_API__ || bs) && (a[t] = 0);
1386
1386
  }
1387
1387
  }
1388
- const f = $e[t];
1389
- let i, u;
1390
- if (f)
1391
- return t === "$attrs" ? (O(e.attrs, "get", ""), process.env.NODE_ENV !== "production" && void 0) : process.env.NODE_ENV !== "production" && t === "$slots" && O(e, "get", t), f(e);
1388
+ const d = Se[t];
1389
+ let i, l;
1390
+ if (d)
1391
+ return t === "$attrs" ? (I(e.attrs, "get", ""), process.env.NODE_ENV !== "production" && void 0) : process.env.NODE_ENV !== "production" && t === "$slots" && I(e, "get", t), d(e);
1392
1392
  if (
1393
1393
  // css module (injected by vue-loader)
1394
1394
  (i = c.__cssModules) && (i = i[t])
1395
1395
  )
1396
1396
  return i;
1397
- if (n !== H && S(n, t))
1397
+ if (n !== H && O(n, t))
1398
1398
  return a[t] = 4, n[t];
1399
1399
  if (
1400
1400
  // global properties
1401
- u = l.config.globalProperties, S(u, t)
1401
+ l = u.config.globalProperties, O(l, t)
1402
1402
  )
1403
- return u[t];
1403
+ return l[t];
1404
1404
  process.env.NODE_ENV;
1405
1405
  },
1406
1406
  set({ _: e }, t, n) {
1407
1407
  const { data: o, setupState: s, ctx: r } = e;
1408
- return _t(s, t) ? (s[t] = n, !0) : process.env.NODE_ENV !== "production" && s.__isScriptSetup && S(s, t) ? ($(`Cannot mutate <script setup> binding "${t}" from Options API.`), !1) : o !== H && S(o, t) ? (o[t] = n, !0) : S(e.props, t) ? (process.env.NODE_ENV !== "production" && $(`Attempting to mutate prop "${t}". Props are readonly.`), !1) : t[0] === "$" && t.slice(1) in e ? (process.env.NODE_ENV !== "production" && $(
1408
+ return bt(s, t) ? (s[t] = n, !0) : process.env.NODE_ENV !== "production" && s.__isScriptSetup && O(s, t) ? (S(`Cannot mutate <script setup> binding "${t}" from Options API.`), !1) : o !== H && O(o, t) ? (o[t] = n, !0) : O(e.props, t) ? (process.env.NODE_ENV !== "production" && S(`Attempting to mutate prop "${t}". Props are readonly.`), !1) : t[0] === "$" && t.slice(1) in e ? (process.env.NODE_ENV !== "production" && S(
1409
1409
  `Attempting to mutate public property "${t}". Properties starting with $ are reserved and readonly.`
1410
1410
  ), !1) : (process.env.NODE_ENV !== "production" && t in e.appContext.config.globalProperties ? Object.defineProperty(r, t, {
1411
1411
  enumerable: !0,
@@ -1417,16 +1417,16 @@ const vs = Symbol.for("v-ndc"), xt = (e) => e ? Gs(e) ? Js(e) : xt(e.parent) : n
1417
1417
  _: { data: e, setupState: t, accessCache: n, ctx: o, appContext: s, propsOptions: r }
1418
1418
  }, a) {
1419
1419
  let c;
1420
- return !!n[a] || e !== H && S(e, a) || _t(t, a) || (c = r[0]) && S(c, a) || S(o, a) || S($e, a) || S(s.config.globalProperties, a);
1420
+ return !!n[a] || e !== H && O(e, a) || bt(t, a) || (c = r[0]) && O(c, a) || O(o, a) || O(Se, a) || O(s.config.globalProperties, a);
1421
1421
  },
1422
1422
  defineProperty(e, t, n) {
1423
- return n.get != null ? e._.accessCache[t] = 0 : S(n, "value") && this.set(e, t, n.value, null), Reflect.defineProperty(e, t, n);
1423
+ return n.get != null ? e._.accessCache[t] = 0 : O(n, "value") && this.set(e, t, n.value, null), Reflect.defineProperty(e, t, n);
1424
1424
  }
1425
1425
  };
1426
- process.env.NODE_ENV !== "production" && (Cs.ownKeys = (e) => ($(
1426
+ process.env.NODE_ENV !== "production" && ($s.ownKeys = (e) => (S(
1427
1427
  "Avoid app logic that relies on enumerating keys on a component instance. The keys will be empty in production mode to avoid performance overhead."
1428
1428
  ), Reflect.ownKeys(e)));
1429
- function ln(e) {
1429
+ function pn(e) {
1430
1430
  return E(e) ? e.reduce(
1431
1431
  (t, n) => (t[n] = null, t),
1432
1432
  {}
@@ -1439,19 +1439,19 @@ function Ns(e) {
1439
1439
  optionsCache: r,
1440
1440
  config: { optionMergeStrategies: a }
1441
1441
  } = e.appContext, c = r.get(t);
1442
- let l;
1443
- return c ? l = c : !s.length && !n && !o ? l = t : (l = {}, s.length && s.forEach(
1444
- (d) => Je(l, d, a, !0)
1445
- ), Je(l, t, a)), P(t) && r.set(t, l), l;
1442
+ let u;
1443
+ return c ? u = c : !s.length && !n && !o ? u = t : (u = {}, s.length && s.forEach(
1444
+ (f) => Ye(u, f, a, !0)
1445
+ ), Ye(u, t, a)), T(t) && r.set(t, u), u;
1446
1446
  }
1447
- function Je(e, t, n, o = !1) {
1447
+ function Ye(e, t, n, o = !1) {
1448
1448
  const { mixins: s, extends: r } = t;
1449
- r && Je(e, r, n, !0), s && s.forEach(
1450
- (a) => Je(e, a, n, !0)
1449
+ r && Ye(e, r, n, !0), s && s.forEach(
1450
+ (a) => Ye(e, a, n, !0)
1451
1451
  );
1452
1452
  for (const a in t)
1453
1453
  if (o && a === "expose")
1454
- process.env.NODE_ENV !== "production" && $(
1454
+ process.env.NODE_ENV !== "production" && S(
1455
1455
  '"expose" option is ignored when declared in mixins or extends. It should only be declared in the base component itself.'
1456
1456
  );
1457
1457
  else {
@@ -1461,37 +1461,37 @@ function Je(e, t, n, o = !1) {
1461
1461
  return e;
1462
1462
  }
1463
1463
  const ws = {
1464
- data: un,
1465
- props: fn,
1466
- emits: fn,
1464
+ data: dn,
1465
+ props: mn,
1466
+ emits: mn,
1467
1467
  // objects
1468
1468
  methods: we,
1469
1469
  computed: we,
1470
1470
  // lifecycle
1471
- beforeCreate: A,
1472
- created: A,
1473
- beforeMount: A,
1474
- mounted: A,
1475
- beforeUpdate: A,
1476
- updated: A,
1477
- beforeDestroy: A,
1478
- beforeUnmount: A,
1479
- destroyed: A,
1480
- unmounted: A,
1481
- activated: A,
1482
- deactivated: A,
1483
- errorCaptured: A,
1484
- serverPrefetch: A,
1471
+ beforeCreate: D,
1472
+ created: D,
1473
+ beforeMount: D,
1474
+ mounted: D,
1475
+ beforeUpdate: D,
1476
+ updated: D,
1477
+ beforeDestroy: D,
1478
+ beforeUnmount: D,
1479
+ destroyed: D,
1480
+ unmounted: D,
1481
+ activated: D,
1482
+ deactivated: D,
1483
+ errorCaptured: D,
1484
+ serverPrefetch: D,
1485
1485
  // assets
1486
1486
  components: we,
1487
1487
  directives: we,
1488
1488
  // watch
1489
1489
  watch: ys,
1490
1490
  // provide / inject
1491
- provide: un,
1491
+ provide: dn,
1492
1492
  inject: Es
1493
1493
  };
1494
- function un(e, t) {
1494
+ function dn(e, t) {
1495
1495
  return t ? e ? function() {
1496
1496
  return F(
1497
1497
  x(e) ? e.call(this, this) : e,
@@ -1500,9 +1500,9 @@ function un(e, t) {
1500
1500
  } : t : e;
1501
1501
  }
1502
1502
  function Es(e, t) {
1503
- return we(pn(e), pn(t));
1503
+ return we(fn(e), fn(t));
1504
1504
  }
1505
- function pn(e) {
1505
+ function fn(e) {
1506
1506
  if (E(e)) {
1507
1507
  const t = {};
1508
1508
  for (let n = 0; n < e.length; n++)
@@ -1511,17 +1511,17 @@ function pn(e) {
1511
1511
  }
1512
1512
  return e;
1513
1513
  }
1514
- function A(e, t) {
1514
+ function D(e, t) {
1515
1515
  return e ? [...new Set([].concat(e, t))] : t;
1516
1516
  }
1517
1517
  function we(e, t) {
1518
1518
  return e ? F(/* @__PURE__ */ Object.create(null), e, t) : t;
1519
1519
  }
1520
- function fn(e, t) {
1520
+ function mn(e, t) {
1521
1521
  return e ? E(e) && E(t) ? [.../* @__PURE__ */ new Set([...e, ...t])] : F(
1522
1522
  /* @__PURE__ */ Object.create(null),
1523
- ln(e),
1524
- ln(t ?? {})
1523
+ pn(e),
1524
+ pn(t ?? {})
1525
1525
  ) : t;
1526
1526
  }
1527
1527
  function ys(e, t) {
@@ -1529,73 +1529,73 @@ function ys(e, t) {
1529
1529
  if (!t) return e;
1530
1530
  const n = F(/* @__PURE__ */ Object.create(null), e);
1531
1531
  for (const o in t)
1532
- n[o] = A(e[o], t[o]);
1532
+ n[o] = D(e[o], t[o]);
1533
1533
  return n;
1534
1534
  }
1535
- let $s = null;
1536
- function Ss(e, t, n = !1) {
1537
- const o = Ie || le;
1538
- if (o || $s) {
1535
+ let Ss = null;
1536
+ function Os(e, t, n = !1) {
1537
+ const o = Ve || ue;
1538
+ if (o || Ss) {
1539
1539
  const s = o ? o.parent == null ? o.vnode.appContext && o.vnode.appContext.provides : o.parent.provides : void 0;
1540
1540
  if (s && e in s)
1541
1541
  return s[e];
1542
1542
  if (arguments.length > 1)
1543
1543
  return n && x(t) ? t.call(o && o.proxy) : t;
1544
- process.env.NODE_ENV !== "production" && $(`injection "${String(e)}" not found.`);
1545
- } else process.env.NODE_ENV !== "production" && $("inject() can only be used inside setup() or functional components.");
1544
+ process.env.NODE_ENV !== "production" && S(`injection "${String(e)}" not found.`);
1545
+ } else process.env.NODE_ENV !== "production" && S("inject() can only be used inside setup() or functional components.");
1546
1546
  }
1547
- const Os = {}, Mn = (e) => Object.getPrototypeOf(e) === Os, xs = Rs, Ds = Symbol.for("v-scx"), As = () => {
1547
+ const Is = {}, Kn = (e) => Object.getPrototypeOf(e) === Is, xs = Fs, As = Symbol.for("v-scx"), Ds = () => {
1548
1548
  {
1549
- const e = Ss(Ds);
1550
- return e || process.env.NODE_ENV !== "production" && $(
1549
+ const e = Os(As);
1550
+ return e || process.env.NODE_ENV !== "production" && S(
1551
1551
  "Server rendering context not provided. Make sure to only call useSSRContext() conditionally in the server build."
1552
1552
  ), e;
1553
1553
  }
1554
1554
  };
1555
- function Vs(e, t, n = H) {
1555
+ function Ps(e, t, n = H) {
1556
1556
  const { immediate: o, deep: s, flush: r, once: a } = n;
1557
- process.env.NODE_ENV !== "production" && !t && (o !== void 0 && $(
1557
+ process.env.NODE_ENV !== "production" && !t && (o !== void 0 && S(
1558
1558
  'watch() "immediate" option is only respected when using the watch(source, callback, options?) signature.'
1559
- ), s !== void 0 && $(
1559
+ ), s !== void 0 && S(
1560
1560
  'watch() "deep" option is only respected when using the watch(source, callback, options?) signature.'
1561
- ), a !== void 0 && $(
1561
+ ), a !== void 0 && S(
1562
1562
  'watch() "once" option is only respected when using the watch(source, callback, options?) signature.'
1563
1563
  ));
1564
1564
  const c = F({}, n);
1565
- process.env.NODE_ENV !== "production" && (c.onWarn = $);
1566
- const l = t && o || !t && r !== "post";
1567
- let d;
1568
- if (Ye) {
1565
+ process.env.NODE_ENV !== "production" && (c.onWarn = S);
1566
+ const u = t && o || !t && r !== "post";
1567
+ let f;
1568
+ if (Qe) {
1569
1569
  if (r === "sync") {
1570
- const p = As();
1571
- d = p.__watcherHandles || (p.__watcherHandles = []);
1572
- } else if (!l) {
1570
+ const p = Ds();
1571
+ f = p.__watcherHandles || (p.__watcherHandles = []);
1572
+ } else if (!u) {
1573
1573
  const p = () => {
1574
1574
  };
1575
1575
  return p.stop = oe, p.resume = oe, p.pause = oe, p;
1576
1576
  }
1577
1577
  }
1578
- const f = Ie;
1579
- c.call = (p, _, g) => In(p, f, _, g);
1578
+ const d = Ve;
1579
+ c.call = (p, _, h) => Tn(p, d, _, h);
1580
1580
  let i = !1;
1581
1581
  r === "post" ? c.scheduler = (p) => {
1582
- xs(p, f && f.suspense);
1582
+ xs(p, d && d.suspense);
1583
1583
  } : r !== "sync" && (i = !0, c.scheduler = (p, _) => {
1584
- _ ? p() : qt(p);
1584
+ _ ? p() : Qt(p);
1585
1585
  }), c.augmentJob = (p) => {
1586
- t && (p.flags |= 4), i && (p.flags |= 2, f && (p.id = f.uid, p.i = f));
1586
+ t && (p.flags |= 4), i && (p.flags |= 2, d && (p.id = d.uid, p.i = d));
1587
1587
  };
1588
- const u = ts(e, t, c);
1589
- return Ye && (d ? d.push(u) : l && u()), u;
1588
+ const l = ns(e, t, c);
1589
+ return Qe && (f ? f.push(l) : u && l()), l;
1590
1590
  }
1591
- function Is(e, t, n) {
1592
- const o = this.proxy, s = K(e) ? e.includes(".") ? Ps(o, e) : () => o[e] : e.bind(o, o);
1591
+ function Vs(e, t, n) {
1592
+ const o = this.proxy, s = K(e) ? e.includes(".") ? Ts(o, e) : () => o[e] : e.bind(o, o);
1593
1593
  let r;
1594
1594
  x(t) ? r = t : (r = t.handler, n = t);
1595
- const a = Ws(this), c = Vs(s, r.bind(o), n);
1595
+ const a = Ws(this), c = Ps(s, r.bind(o), n);
1596
1596
  return a(), c;
1597
1597
  }
1598
- function Ps(e, t) {
1598
+ function Ts(e, t) {
1599
1599
  const n = t.split(".");
1600
1600
  return () => {
1601
1601
  let o = e;
@@ -1604,31 +1604,31 @@ function Ps(e, t) {
1604
1604
  return o;
1605
1605
  };
1606
1606
  }
1607
- const Ts = (e) => e.__isSuspense;
1608
- function Rs(e, t) {
1607
+ const js = (e) => e.__isSuspense;
1608
+ function Fs(e, t) {
1609
1609
  t && t.pendingBranch ? E(e) ? t.effects.push(...e) : t.effects.push(e) : Rn(e);
1610
1610
  }
1611
- const Ln = Symbol.for("v-fgt"), Fs = Symbol.for("v-txt"), js = Symbol.for("v-cmt");
1612
- let me = null;
1613
- function ks(e) {
1611
+ const Un = Symbol.for("v-fgt"), Rs = Symbol.for("v-txt"), ks = Symbol.for("v-cmt");
1612
+ let ge = null;
1613
+ function Hs(e) {
1614
1614
  return e ? e.__v_isVNode === !0 : !1;
1615
1615
  }
1616
- const Hs = (...e) => zn(
1616
+ const Ms = (...e) => Gn(
1617
1617
  ...e
1618
- ), Kn = ({ key: e }) => e ?? null, He = ({
1618
+ ), zn = ({ key: e }) => e ?? null, Le = ({
1619
1619
  ref: e,
1620
1620
  ref_key: t,
1621
1621
  ref_for: n
1622
- }) => (typeof e == "number" && (e = "" + e), e != null ? K(e) || I(e) || x(e) ? { i: le, r: e, k: t, f: !!n } : e : null);
1623
- function Ms(e, t = null, n = null, o = 0, s = null, r = e === Ln ? 0 : 1, a = !1, c = !1) {
1624
- const l = {
1622
+ }) => (typeof e == "number" && (e = "" + e), e != null ? K(e) || V(e) || x(e) ? { i: ue, r: e, k: t, f: !!n } : e : null);
1623
+ function Ls(e, t = null, n = null, o = 0, s = null, r = e === Un ? 0 : 1, a = !1, c = !1) {
1624
+ const u = {
1625
1625
  __v_isVNode: !0,
1626
1626
  __v_skip: !0,
1627
1627
  type: e,
1628
1628
  props: t,
1629
- key: t && Kn(t),
1630
- ref: t && He(t),
1631
- scopeId: gs,
1629
+ key: t && zn(t),
1630
+ ref: t && Le(t),
1631
+ scopeId: _s,
1632
1632
  slotScopeIds: null,
1633
1633
  children: n,
1634
1634
  component: null,
@@ -1648,41 +1648,41 @@ function Ms(e, t = null, n = null, o = 0, s = null, r = e === Ln ? 0 : 1, a = !1
1648
1648
  dynamicProps: s,
1649
1649
  dynamicChildren: null,
1650
1650
  appContext: null,
1651
- ctx: le
1651
+ ctx: ue
1652
1652
  };
1653
- return c ? (Yt(l, n), r & 128 && e.normalize(l)) : n && (l.shapeFlag |= K(n) ? 8 : 16), process.env.NODE_ENV !== "production" && l.key !== l.key && $("VNode created with invalid key (NaN). VNode type:", l.type), // avoid a block node from tracking itself
1653
+ return c ? (Xt(u, n), r & 128 && e.normalize(u)) : n && (u.shapeFlag |= K(n) ? 8 : 16), process.env.NODE_ENV !== "production" && u.key !== u.key && S("VNode created with invalid key (NaN). VNode type:", u.type), // avoid a block node from tracking itself
1654
1654
  !a && // has current parent block
1655
- me && // presence of a patch flag indicates this node needs patching on updates.
1655
+ ge && // presence of a patch flag indicates this node needs patching on updates.
1656
1656
  // component nodes also should always be patched, because even if the
1657
1657
  // component doesn't need to update, it needs to persist the instance on to
1658
1658
  // the next vnode so that it can be properly unmounted later.
1659
- (l.patchFlag > 0 || r & 6) && // the EVENTS flag is only for hydration and if it is the only flag, the
1659
+ (u.patchFlag > 0 || r & 6) && // the EVENTS flag is only for hydration and if it is the only flag, the
1660
1660
  // vnode should not be considered dynamic due to handler caching.
1661
- l.patchFlag !== 32 && me.push(l), l;
1661
+ u.patchFlag !== 32 && ge.push(u), u;
1662
1662
  }
1663
- const Ls = process.env.NODE_ENV !== "production" ? Hs : zn;
1664
- function zn(e, t = null, n = null, o = 0, s = null, r = !1) {
1665
- if ((!e || e === vs) && (process.env.NODE_ENV !== "production" && !e && $(`Invalid vnode type when creating vnode: ${e}.`), e = js), ks(e)) {
1666
- const c = qe(
1663
+ const Ks = process.env.NODE_ENV !== "production" ? Ms : Gn;
1664
+ function Gn(e, t = null, n = null, o = 0, s = null, r = !1) {
1665
+ if ((!e || e === Cs) && (process.env.NODE_ENV !== "production" && !e && S(`Invalid vnode type when creating vnode: ${e}.`), e = ks), Hs(e)) {
1666
+ const c = Ze(
1667
1667
  e,
1668
1668
  t,
1669
1669
  !0
1670
1670
  /* mergeRef: true */
1671
1671
  );
1672
- return n && Yt(c, n), !r && me && (c.shapeFlag & 6 ? me[me.indexOf(e)] = c : me.push(c)), c.patchFlag = -2, c;
1672
+ return n && Xt(c, n), !r && ge && (c.shapeFlag & 6 ? ge[ge.indexOf(e)] = c : ge.push(c)), c.patchFlag = -2, c;
1673
1673
  }
1674
- if (Gn(e) && (e = e.__vccOpts), t) {
1675
- t = Ks(t);
1676
- let { class: c, style: l } = t;
1677
- c && !K(c) && (t.class = Mt(c)), P(l) && (Ke(l) && !E(l) && (l = F({}, l)), t.style = Ht(l));
1674
+ if (qn(e) && (e = e.__vccOpts), t) {
1675
+ t = Us(t);
1676
+ let { class: c, style: u } = t;
1677
+ c && !K(c) && (t.class = Ut(c)), T(u) && (ze(u) && !E(u) && (u = F({}, u)), t.style = Kt(u));
1678
1678
  }
1679
- const a = K(e) ? 1 : Ts(e) ? 128 : _s(e) ? 64 : P(e) ? 4 : x(e) ? 2 : 0;
1680
- return process.env.NODE_ENV !== "production" && a & 4 && Ke(e) && (e = C(e), $(
1679
+ const a = K(e) ? 1 : js(e) ? 128 : vs(e) ? 64 : T(e) ? 4 : x(e) ? 2 : 0;
1680
+ return process.env.NODE_ENV !== "production" && a & 4 && ze(e) && (e = N(e), S(
1681
1681
  "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`.",
1682
1682
  `
1683
1683
  Component that was made reactive: `,
1684
1684
  e
1685
- )), Ms(
1685
+ )), Ls(
1686
1686
  e,
1687
1687
  t,
1688
1688
  n,
@@ -1693,25 +1693,25 @@ Component that was made reactive: `,
1693
1693
  !0
1694
1694
  );
1695
1695
  }
1696
- function Ks(e) {
1697
- return e ? Ke(e) || Mn(e) ? F({}, e) : e : null;
1696
+ function Us(e) {
1697
+ return e ? ze(e) || Kn(e) ? F({}, e) : e : null;
1698
1698
  }
1699
- function qe(e, t, n = !1, o = !1) {
1700
- const { props: s, ref: r, patchFlag: a, children: c, transition: l } = e, d = t ? Us(s || {}, t) : s, f = {
1699
+ function Ze(e, t, n = !1, o = !1) {
1700
+ const { props: s, ref: r, patchFlag: a, children: c, transition: u } = e, f = t ? Gs(s || {}, t) : s, d = {
1701
1701
  __v_isVNode: !0,
1702
1702
  __v_skip: !0,
1703
1703
  type: e.type,
1704
- props: d,
1705
- key: d && Kn(d),
1704
+ props: f,
1705
+ key: f && zn(f),
1706
1706
  ref: t && t.ref ? (
1707
1707
  // #2078 in the case of <component :is="vnode" ref="extra"/>
1708
1708
  // if the vnode itself already has a ref, cloneVNode will need to merge
1709
1709
  // the refs so the single vnode can be set on multiple refs
1710
- n && r ? E(r) ? r.concat(He(t)) : [r, He(t)] : He(t)
1710
+ n && r ? E(r) ? r.concat(Le(t)) : [r, Le(t)] : Le(t)
1711
1711
  ) : r,
1712
1712
  scopeId: e.scopeId,
1713
1713
  slotScopeIds: e.slotScopeIds,
1714
- children: process.env.NODE_ENV !== "production" && a === -1 && E(c) ? c.map(Un) : c,
1714
+ children: process.env.NODE_ENV !== "production" && a === -1 && E(c) ? c.map(Bn) : c,
1715
1715
  target: e.target,
1716
1716
  targetStart: e.targetStart,
1717
1717
  targetAnchor: e.targetAnchor,
@@ -1721,38 +1721,38 @@ function qe(e, t, n = !1, o = !1) {
1721
1721
  // existing patch flag to be reliable and need to add the FULL_PROPS flag.
1722
1722
  // note: preserve flag for fragments since they use the flag for children
1723
1723
  // fast paths only.
1724
- patchFlag: t && e.type !== Ln ? a === -1 ? 16 : a | 16 : a,
1724
+ patchFlag: t && e.type !== Un ? a === -1 ? 16 : a | 16 : a,
1725
1725
  dynamicProps: e.dynamicProps,
1726
1726
  dynamicChildren: e.dynamicChildren,
1727
1727
  appContext: e.appContext,
1728
1728
  dirs: e.dirs,
1729
- transition: l,
1729
+ transition: u,
1730
1730
  // These should technically only be non-null on mounted VNodes. However,
1731
1731
  // they *should* be copied for kept-alive vnodes. So we just always copy
1732
1732
  // them since them being non-null during a mount doesn't affect the logic as
1733
1733
  // they will simply be overwritten.
1734
1734
  component: e.component,
1735
1735
  suspense: e.suspense,
1736
- ssContent: e.ssContent && qe(e.ssContent),
1737
- ssFallback: e.ssFallback && qe(e.ssFallback),
1736
+ ssContent: e.ssContent && Ze(e.ssContent),
1737
+ ssFallback: e.ssFallback && Ze(e.ssFallback),
1738
1738
  el: e.el,
1739
1739
  anchor: e.anchor,
1740
1740
  ctx: e.ctx,
1741
1741
  ce: e.ce
1742
1742
  };
1743
- return l && o && Hn(
1744
- f,
1745
- l.clone(f)
1746
- ), f;
1743
+ return u && o && Ln(
1744
+ d,
1745
+ u.clone(d)
1746
+ ), d;
1747
1747
  }
1748
- function Un(e) {
1749
- const t = qe(e);
1750
- return E(e.children) && (t.children = e.children.map(Un)), t;
1748
+ function Bn(e) {
1749
+ const t = Ze(e);
1750
+ return E(e.children) && (t.children = e.children.map(Bn)), t;
1751
1751
  }
1752
1752
  function zs(e = " ", t = 0) {
1753
- return Ls(Fs, null, e, t);
1753
+ return Ks(Rs, null, e, t);
1754
1754
  }
1755
- function Yt(e, t) {
1755
+ function Xt(e, t) {
1756
1756
  let n = 0;
1757
1757
  const { shapeFlag: o } = e;
1758
1758
  if (t == null)
@@ -1762,22 +1762,22 @@ function Yt(e, t) {
1762
1762
  else if (typeof t == "object")
1763
1763
  if (o & 65) {
1764
1764
  const s = t.default;
1765
- s && (s._c && (s._d = !1), Yt(e, s()), s._c && (s._d = !0));
1765
+ s && (s._c && (s._d = !1), Xt(e, s()), s._c && (s._d = !0));
1766
1766
  return;
1767
1767
  } else
1768
- n = 32, !t._ && !Mn(t) && (t._ctx = le);
1769
- else x(t) ? (t = { default: t, _ctx: le }, n = 32) : (t = String(t), o & 64 ? (n = 16, t = [zs(t)]) : n = 8);
1768
+ n = 32, !t._ && !Kn(t) && (t._ctx = ue);
1769
+ else x(t) ? (t = { default: t, _ctx: ue }, n = 32) : (t = String(t), o & 64 ? (n = 16, t = [zs(t)]) : n = 8);
1770
1770
  e.children = t, e.shapeFlag |= n;
1771
1771
  }
1772
- function Us(...e) {
1772
+ function Gs(...e) {
1773
1773
  const t = {};
1774
1774
  for (let n = 0; n < e.length; n++) {
1775
1775
  const o = e[n];
1776
1776
  for (const s in o)
1777
1777
  if (s === "class")
1778
- t.class !== o.class && (t.class = Mt([t.class, o.class]));
1778
+ t.class !== o.class && (t.class = Ut([t.class, o.class]));
1779
1779
  else if (s === "style")
1780
- t.style = Ht([t.style, o.style]);
1780
+ t.style = Kt([t.style, o.style]);
1781
1781
  else if (ho(s)) {
1782
1782
  const r = t[s], a = o[s];
1783
1783
  a && r !== a && !(E(r) && r.includes(a)) && (t[s] = r ? [].concat(r, a) : a);
@@ -1785,54 +1785,54 @@ function Us(...e) {
1785
1785
  }
1786
1786
  return t;
1787
1787
  }
1788
- let Ie = null;
1789
- const Bs = () => Ie || le;
1790
- let Dt;
1788
+ let Ve = null;
1789
+ const Bs = () => Ve || ue;
1790
+ let Vt;
1791
1791
  {
1792
- const e = st(), t = (n, o) => {
1792
+ const e = at(), t = (n, o) => {
1793
1793
  let s;
1794
1794
  return (s = e[n]) || (s = e[n] = []), s.push(o), (r) => {
1795
1795
  s.length > 1 ? s.forEach((a) => a(r)) : s[0](r);
1796
1796
  };
1797
1797
  };
1798
- Dt = t(
1798
+ Vt = t(
1799
1799
  "__VUE_INSTANCE_SETTERS__",
1800
- (n) => Ie = n
1800
+ (n) => Ve = n
1801
1801
  ), t(
1802
1802
  "__VUE_SSR_SETTERS__",
1803
- (n) => Ye = n
1803
+ (n) => Qe = n
1804
1804
  );
1805
1805
  }
1806
1806
  const Ws = (e) => {
1807
- const t = Ie;
1808
- return Dt(e), e.scope.on(), () => {
1809
- e.scope.off(), Dt(t);
1807
+ const t = Ve;
1808
+ return Vt(e), e.scope.on(), () => {
1809
+ e.scope.off(), Vt(t);
1810
1810
  };
1811
1811
  };
1812
- function Gs(e) {
1812
+ function Js(e) {
1813
1813
  return e.vnode.shapeFlag & 4;
1814
1814
  }
1815
- let Ye = !1;
1815
+ let Qe = !1;
1816
1816
  process.env.NODE_ENV;
1817
- function Js(e) {
1818
- return e.exposed ? e.exposeProxy || (e.exposeProxy = new Proxy(Zo(Wo(e.exposed)), {
1817
+ function qs(e) {
1818
+ return e.exposed ? e.exposeProxy || (e.exposeProxy = new Proxy(Qo(Wo(e.exposed)), {
1819
1819
  get(t, n) {
1820
1820
  if (n in t)
1821
1821
  return t[n];
1822
- if (n in $e)
1823
- return $e[n](e);
1822
+ if (n in Se)
1823
+ return Se[n](e);
1824
1824
  },
1825
1825
  has(t, n) {
1826
- return n in t || n in $e;
1826
+ return n in t || n in Se;
1827
1827
  }
1828
1828
  })) : e.proxy;
1829
1829
  }
1830
- const qs = /(?:^|[-_])(\w)/g, Ys = (e) => e.replace(qs, (t) => t.toUpperCase()).replace(/[-_]/g, "");
1831
- function Bn(e, t = !0) {
1830
+ const Ys = /(?:^|[-_])(\w)/g, Zs = (e) => e.replace(Ys, (t) => t.toUpperCase()).replace(/[-_]/g, "");
1831
+ function Wn(e, t = !0) {
1832
1832
  return x(e) ? e.displayName || e.name : e.name || t && e.__name;
1833
1833
  }
1834
- function Wn(e, t, n = !1) {
1835
- let o = Bn(t);
1834
+ function Jn(e, t, n = !1) {
1835
+ let o = Wn(t);
1836
1836
  if (!o && t.__file) {
1837
1837
  const s = t.__file.match(/([^/\\]+)\.\w+$/);
1838
1838
  s && (o = s[1]);
@@ -1847,44 +1847,44 @@ function Wn(e, t, n = !1) {
1847
1847
  e.components || e.parent.type.components
1848
1848
  ) || s(e.appContext.components);
1849
1849
  }
1850
- return o ? Ys(o) : n ? "App" : "Anonymous";
1850
+ return o ? Zs(o) : n ? "App" : "Anonymous";
1851
1851
  }
1852
- function Gn(e) {
1852
+ function qn(e) {
1853
1853
  return x(e) && "__vccOpts" in e;
1854
1854
  }
1855
- const At = (e, t) => {
1856
- const n = Xo(e, t, Ye);
1855
+ const Tt = (e, t) => {
1856
+ const n = es(e, t, Qe);
1857
1857
  if (process.env.NODE_ENV !== "production") {
1858
1858
  const o = Bs();
1859
1859
  o && o.appContext.config.warnRecursiveComputed && (n._warnRecursive = !0);
1860
1860
  }
1861
1861
  return n;
1862
1862
  };
1863
- function Zs() {
1863
+ function Qs() {
1864
1864
  if (process.env.NODE_ENV === "production" || typeof window > "u")
1865
1865
  return;
1866
1866
  const e = { style: "color:#3ba776" }, t = { style: "color:#1677ff" }, n = { style: "color:#f5222d" }, o = { style: "color:#eb2f96" }, s = {
1867
1867
  __vue_custom_formatter: !0,
1868
1868
  header(i) {
1869
- return P(i) ? i.__isVue ? ["div", e, "VueInstance"] : I(i) ? [
1869
+ return T(i) ? i.__isVue ? ["div", e, "VueInstance"] : V(i) ? [
1870
1870
  "div",
1871
1871
  {},
1872
- ["span", e, f(i)],
1872
+ ["span", e, d(i)],
1873
1873
  "<",
1874
1874
  // avoid debugger accessing value affecting behavior
1875
1875
  c("_value" in i ? i._value : i),
1876
1876
  ">"
1877
- ] : ve(i) ? [
1877
+ ] : Ce(i) ? [
1878
1878
  "div",
1879
1879
  {},
1880
- ["span", e, T(i) ? "ShallowReactive" : "Reactive"],
1880
+ ["span", e, j(i) ? "ShallowReactive" : "Reactive"],
1881
1881
  "<",
1882
1882
  c(i),
1883
1883
  `>${J(i) ? " (readonly)" : ""}`
1884
1884
  ] : J(i) ? [
1885
1885
  "div",
1886
1886
  {},
1887
- ["span", e, T(i) ? "ShallowReadonly" : "Readonly"],
1887
+ ["span", e, j(i) ? "ShallowReadonly" : "Readonly"],
1888
1888
  "<",
1889
1889
  c(i),
1890
1890
  ">"
@@ -1903,12 +1903,12 @@ function Zs() {
1903
1903
  }
1904
1904
  };
1905
1905
  function r(i) {
1906
- const u = [];
1907
- i.type.props && i.props && u.push(a("props", C(i.props))), i.setupState !== H && u.push(a("setup", i.setupState)), i.data !== H && u.push(a("data", C(i.data)));
1908
- const p = l(i, "computed");
1909
- p && u.push(a("computed", p));
1910
- const _ = l(i, "inject");
1911
- return _ && u.push(a("injected", _)), u.push([
1906
+ const l = [];
1907
+ i.type.props && i.props && l.push(a("props", N(i.props))), i.setupState !== H && l.push(a("setup", i.setupState)), i.data !== H && l.push(a("data", N(i.data)));
1908
+ const p = u(i, "computed");
1909
+ p && l.push(a("computed", p));
1910
+ const _ = u(i, "inject");
1911
+ return _ && l.push(a("injected", _)), l.push([
1912
1912
  "div",
1913
1913
  {},
1914
1914
  [
@@ -1919,10 +1919,10 @@ function Zs() {
1919
1919
  "$ (internal): "
1920
1920
  ],
1921
1921
  ["object", { object: i }]
1922
- ]), u;
1922
+ ]), l;
1923
1923
  }
1924
- function a(i, u) {
1925
- return u = F({}, u), Object.keys(u).length ? [
1924
+ function a(i, l) {
1925
+ return l = F({}, l), Object.keys(l).length ? [
1926
1926
  "div",
1927
1927
  { style: "line-height:1.25em;margin-bottom:0.6em" },
1928
1928
  [
@@ -1937,34 +1937,34 @@ function Zs() {
1937
1937
  {
1938
1938
  style: "padding-left:1.25em"
1939
1939
  },
1940
- ...Object.keys(u).map((p) => [
1940
+ ...Object.keys(l).map((p) => [
1941
1941
  "div",
1942
1942
  {},
1943
1943
  ["span", o, p + ": "],
1944
- c(u[p], !1)
1944
+ c(l[p], !1)
1945
1945
  ])
1946
1946
  ]
1947
1947
  ] : ["span", {}];
1948
1948
  }
1949
- function c(i, u = !0) {
1950
- return typeof i == "number" ? ["span", t, i] : typeof i == "string" ? ["span", n, JSON.stringify(i)] : typeof i == "boolean" ? ["span", o, i] : P(i) ? ["object", { object: u ? C(i) : i }] : ["span", n, String(i)];
1949
+ function c(i, l = !0) {
1950
+ return typeof i == "number" ? ["span", t, i] : typeof i == "string" ? ["span", n, JSON.stringify(i)] : typeof i == "boolean" ? ["span", o, i] : T(i) ? ["object", { object: l ? N(i) : i }] : ["span", n, String(i)];
1951
1951
  }
1952
- function l(i, u) {
1952
+ function u(i, l) {
1953
1953
  const p = i.type;
1954
1954
  if (x(p))
1955
1955
  return;
1956
1956
  const _ = {};
1957
- for (const g in i.ctx)
1958
- d(p, g, u) && (_[g] = i.ctx[g]);
1957
+ for (const h in i.ctx)
1958
+ f(p, h, l) && (_[h] = i.ctx[h]);
1959
1959
  return _;
1960
1960
  }
1961
- function d(i, u, p) {
1961
+ function f(i, l, p) {
1962
1962
  const _ = i[p];
1963
- if (E(_) && _.includes(u) || P(_) && u in _ || i.extends && d(i.extends, u, p) || i.mixins && i.mixins.some((g) => d(g, u, p)))
1963
+ if (E(_) && _.includes(l) || T(_) && l in _ || i.extends && f(i.extends, l, p) || i.mixins && i.mixins.some((h) => f(h, l, p)))
1964
1964
  return !0;
1965
1965
  }
1966
- function f(i) {
1967
- return T(i) ? "ShallowRef" : i.effect ? "ComputedRef" : "Ref";
1966
+ function d(i) {
1967
+ return j(i) ? "ShallowRef" : i.effect ? "ComputedRef" : "Ref";
1968
1968
  }
1969
1969
  window.devtoolsFormatters ? window.devtoolsFormatters.push(s) : window.devtoolsFormatters = [s];
1970
1970
  }
@@ -1976,103 +1976,103 @@ process.env.NODE_ENV;
1976
1976
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
1977
1977
  * @license MIT
1978
1978
  **/
1979
- function Qs() {
1980
- Zs();
1979
+ function Xs() {
1980
+ Qs();
1981
1981
  }
1982
- process.env.NODE_ENV !== "production" && Qs();
1983
- const Xs = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";
1984
- let er = (e = 21) => {
1982
+ process.env.NODE_ENV !== "production" && Xs();
1983
+ const er = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";
1984
+ let tr = (e = 21) => {
1985
1985
  let t = "", n = crypto.getRandomValues(new Uint8Array(e |= 0));
1986
1986
  for (; e--; )
1987
- t += Xs[n[e] & 63];
1987
+ t += er[n[e] & 63];
1988
1988
  return t;
1989
1989
  };
1990
- function tr(e, t = !0, n = !1) {
1991
- const o = ze();
1990
+ function nr(e, t = !0, n = !1) {
1991
+ const o = Ge();
1992
1992
  let s;
1993
- const r = ze(!1);
1993
+ const r = Ge(!1);
1994
1994
  let a = () => {
1995
1995
  };
1996
1996
  const c = new Proxy(e, {
1997
- apply: function(f, i, u) {
1998
- let p = f(...u);
1997
+ apply: function(d, i, l) {
1998
+ let p = d(...l);
1999
1999
  if (p instanceof Error) {
2000
2000
  if (o.value = p, s = p, t)
2001
2001
  throw a(), p;
2002
2002
  } else
2003
2003
  r.value = !0, o.value = void 0, s = !0, a();
2004
2004
  }
2005
- }), l = () => {
2006
- }, d = new Proxy(
2007
- (f) => {
2008
- o.value = f;
2005
+ }), u = () => {
2006
+ }, f = new Proxy(
2007
+ (d) => {
2008
+ o.value = d;
2009
2009
  },
2010
2010
  {
2011
- apply: function(f, i, u) {
2012
- f(...u), l(...u);
2011
+ apply: function(d, i, l) {
2012
+ d(...l), u(...l);
2013
2013
  }
2014
2014
  }
2015
2015
  );
2016
2016
  return {
2017
- promise: new Promise((f, i) => {
2017
+ promise: new Promise((d, i) => {
2018
2018
  if (t && s instanceof Error) {
2019
2019
  i(s);
2020
2020
  return;
2021
2021
  } else if (s === !0) {
2022
- f();
2022
+ d();
2023
2023
  return;
2024
2024
  }
2025
- let u;
2026
- n && (u = setTimeout(() => {
2025
+ let l;
2026
+ n && (l = setTimeout(() => {
2027
2027
  const p = new Error("timeout!");
2028
2028
  o.value = p, t && i(p);
2029
2029
  }, n)), a = () => {
2030
- u && (clearTimeout(u), u = void 0), f();
2030
+ l && (clearTimeout(l), l = void 0), d();
2031
2031
  };
2032
2032
  }),
2033
2033
  callback: c,
2034
- onError: d,
2035
- resolved: At(() => r.value),
2036
- error: At(() => o.value)
2034
+ onError: f,
2035
+ resolved: Tt(() => r.value),
2036
+ error: Tt(() => o.value)
2037
2037
  };
2038
2038
  }
2039
- function Vt() {
2040
- return er();
2039
+ function jt() {
2040
+ return tr();
2041
2041
  }
2042
- function nr() {
2042
+ function or() {
2043
2043
  const e = {}, t = {}, n = /* @__PURE__ */ new WeakMap(), o = {};
2044
2044
  return Object.freeze({
2045
2045
  registerAgg(s) {
2046
2046
  if (s.isInitialized.value)
2047
2047
  throw new Error("Agg must register before initialized");
2048
- if (o[s._code])
2048
+ if (o[s.__id])
2049
2049
  throw new Error("Agg already registered");
2050
2050
  s.type === "MultiInstance" && s.api.events.destroyed.watchPublish(() => {
2051
- delete o[s._code];
2052
- }), o[s._code] = s;
2051
+ delete o[s.__id];
2052
+ }), o[s.__id] = s;
2053
2053
  const r = [];
2054
2054
  for (const a of Object.values(e))
2055
- a.mount({ api: s.api, aggHash: s._code, isInitialized: s.isInitialized });
2055
+ a.mount({ api: s.api, __aggId: s.__id, isInitialized: s.isInitialized });
2056
2056
  for (const a of Object.values(t))
2057
- a.mount({ api: s.api, aggHash: s._code }), r.push(a._code);
2057
+ a.mount({ api: s.api, __aggId: s.__id }), r.push(a.__id);
2058
2058
  n.set(s, r);
2059
2059
  },
2060
2060
  createSetupPlugin(s) {
2061
2061
  let r;
2062
2062
  return s instanceof Function ? r = s() : r = s, Object.freeze({
2063
- _code: Vt(),
2063
+ __id: jt(),
2064
2064
  type: "Setup",
2065
2065
  mount(a) {
2066
2066
  if (a.isInitialized.value)
2067
2067
  throw new Error("Can not setup after initialized");
2068
- r.mount({ api: a.api, aggHash: a.aggHash });
2068
+ r.mount({ api: a.api, __aggId: a.__aggId });
2069
2069
  }
2070
2070
  });
2071
2071
  },
2072
2072
  createHotSwapPlugin(s) {
2073
2073
  let r;
2074
2074
  return s instanceof Function ? r = s() : r = s, Object.freeze({
2075
- _code: Vt(),
2075
+ __id: jt(),
2076
2076
  type: "HotSwap",
2077
2077
  mount: r.mount,
2078
2078
  unmount: r.unmount
@@ -2080,19 +2080,19 @@ function nr() {
2080
2080
  },
2081
2081
  registerPlugin(s) {
2082
2082
  if (s.type === "Setup") {
2083
- if (e[s._code])
2083
+ if (e[s.__id])
2084
2084
  throw new Error("Plugin already registered");
2085
- e[s._code] = s;
2085
+ e[s.__id] = s;
2086
2086
  for (const r in o)
2087
2087
  s.mount({
2088
2088
  api: o[r].api,
2089
- aggHash: o[r]._code,
2089
+ __aggId: o[r].__id,
2090
2090
  isInitialized: o[r].isInitialized
2091
2091
  });
2092
2092
  } else if (s.type === "HotSwap") {
2093
- t[s._code] = s;
2093
+ t[s.__id] = s;
2094
2094
  for (const r in o)
2095
- n.has(o[r]) && !n.get(o[r]).includes(s._code) && (s.mount({ api: o[r].api, aggHash: o[r]._code }), n.get(o[r]).push(s._code));
2095
+ n.has(o[r]) && !n.get(o[r]).includes(s.__id) && (s.mount({ api: o[r].api, __aggId: o[r].__id }), n.get(o[r]).push(s.__id));
2096
2096
  } else
2097
2097
  isNever(s);
2098
2098
  },
@@ -2101,29 +2101,29 @@ function nr() {
2101
2101
  throw new Error("Can not unregister setup plugin");
2102
2102
  if (s.type === "HotSwap") {
2103
2103
  for (const r in o)
2104
- n.has(o[r]) && n.get(o[r]).includes(s._code) && s.unmount({ api: o[r].api, aggHash: o[r]._code });
2105
- delete t[s._code];
2104
+ n.has(o[r]) && n.get(o[r]).includes(s.__id) && s.unmount({ api: o[r].api, __aggId: o[r].__id });
2105
+ delete t[s.__id];
2106
2106
  } else
2107
2107
  isNever(s);
2108
2108
  }
2109
2109
  });
2110
2110
  }
2111
- function or(e) {
2112
- return nr();
2113
- }
2114
2111
  function sr(e) {
2115
- const t = rr(e);
2112
+ return or();
2113
+ }
2114
+ function rr(e) {
2115
+ const t = ir(e);
2116
2116
  return X({
2117
2117
  states: t.states,
2118
2118
  commands: t.commands,
2119
2119
  events: t.events
2120
2120
  });
2121
2121
  }
2122
- function rr(e) {
2122
+ function ir(e) {
2123
2123
  const t = e.states;
2124
2124
  for (const a of Object.keys(e.states))
2125
- t[a] = Le(t[a]);
2126
- const n = X(e.states), o = Le(e.commands), s = {}, r = e.events;
2125
+ t[a] = Ue(t[a]);
2126
+ const n = X(e.states), o = Ue(e.commands), s = {}, r = e.events;
2127
2127
  for (const a in e.events)
2128
2128
  s[a] = r[a].api;
2129
2129
  return X({
@@ -2133,13 +2133,13 @@ function rr(e) {
2133
2133
  destroy: e.destroy
2134
2134
  });
2135
2135
  }
2136
- function ir(e) {
2136
+ function ar(e) {
2137
2137
  const {
2138
2138
  callback: t,
2139
2139
  onError: n,
2140
2140
  promise: o,
2141
2141
  resolved: s
2142
- } = tr(() => {
2142
+ } = nr(() => {
2143
2143
  }, !1, 5e3);
2144
2144
  function r(i) {
2145
2145
  if (s.value === !0)
@@ -2151,7 +2151,7 @@ function ir(e) {
2151
2151
  Promise.resolve().then(i);
2152
2152
  },
2153
2153
  onBeforeInitialize: r,
2154
- isInitialized: At(() => s.value),
2154
+ isInitialized: Tt(() => s.value),
2155
2155
  untilInitialized: o
2156
2156
  });
2157
2157
  setTimeout(
@@ -2161,14 +2161,14 @@ function ir(e) {
2161
2161
  n(i);
2162
2162
  })
2163
2163
  );
2164
- const l = c.states || {}, d = c.commands || {}, f = c.events || {};
2164
+ const u = c.states || {}, f = c.commands || {}, d = c.events || {};
2165
2165
  return {
2166
- _code: Vt(),
2166
+ __id: jt(),
2167
2167
  type: "Singleton",
2168
- api: sr({
2169
- states: l,
2170
- commands: d,
2171
- events: f,
2168
+ api: rr({
2169
+ states: u,
2170
+ commands: f,
2171
+ events: d,
2172
2172
  destroy: () => {
2173
2173
  }
2174
2174
  }),
@@ -2181,11 +2181,11 @@ Stack : ${i.stack || "unkown"}`);
2181
2181
  }
2182
2182
  };
2183
2183
  }
2184
- let ke;
2185
- function ar(e) {
2186
- return ir(() => {
2187
- const t = ze(e), n = ze({});
2188
- let o = () => [], s = () => [], r = () => [], a = () => [], c = () => [], l = () => [], d = () => [];
2184
+ let Me;
2185
+ function cr(e) {
2186
+ return ar(() => {
2187
+ const t = Ge(e), n = Ge({});
2188
+ let o = () => [], s = () => [], r = () => [], a = () => [], c = () => [], u = () => [], f = () => [];
2189
2189
  return {
2190
2190
  states: {
2191
2191
  designer: t,
@@ -2193,98 +2193,98 @@ function ar(e) {
2193
2193
  },
2194
2194
  commands: {
2195
2195
  genCodeFiles() {
2196
- return d();
2196
+ return f();
2197
2197
  },
2198
2198
  clearCaches() {
2199
2199
  },
2200
- setContext(f) {
2201
- n.value = f;
2200
+ setContext(d) {
2201
+ n.value = d;
2202
2202
  },
2203
- setDomainDesigner(f) {
2204
- this.clearCaches(), t.value = f;
2203
+ setDomainDesigner(d) {
2204
+ this.clearCaches(), t.value = d;
2205
2205
  },
2206
- _genInfoCode(...f) {
2207
- return o(...f);
2206
+ _genInfoCode(...d) {
2207
+ return o(...d);
2208
2208
  },
2209
- _setInfoCodeProvider(f) {
2210
- o = f;
2209
+ _setInfoCodeProvider(d) {
2210
+ o = d;
2211
2211
  },
2212
- _genCommandCode(...f) {
2213
- return s(...f);
2212
+ _genCommandCode(...d) {
2213
+ return s(...d);
2214
2214
  },
2215
- _setCommandCodeProvider(f) {
2216
- s = f;
2215
+ _setCommandCodeProvider(d) {
2216
+ s = d;
2217
2217
  },
2218
- _genFacadeCommandCode(...f) {
2219
- return r(...f);
2218
+ _genFacadeCommandCode(...d) {
2219
+ return r(...d);
2220
2220
  },
2221
- _setFacadeCommandCodeProvider(f) {
2222
- r = f;
2221
+ _setFacadeCommandCodeProvider(d) {
2222
+ r = d;
2223
2223
  },
2224
- _genAggCode(...f) {
2225
- return a(...f);
2224
+ _genAggCode(...d) {
2225
+ return a(...d);
2226
2226
  },
2227
- _setAggCodeProvider(f) {
2228
- a = f;
2227
+ _setAggCodeProvider(d) {
2228
+ a = d;
2229
2229
  },
2230
- _genEventCode(...f) {
2231
- return c(...f);
2230
+ _genEventCode(...d) {
2231
+ return c(...d);
2232
2232
  },
2233
- _setEventCodeProvider(f) {
2234
- c = f;
2233
+ _setEventCodeProvider(d) {
2234
+ c = d;
2235
2235
  },
2236
- _genReadModelCode(...f) {
2237
- return l(...f);
2236
+ _genReadModelCode(...d) {
2237
+ return u(...d);
2238
2238
  },
2239
- _setReadModelCodeProvider(f) {
2240
- l = f;
2239
+ _setReadModelCodeProvider(d) {
2240
+ u = d;
2241
2241
  },
2242
- _setCodeFileProvider(f) {
2243
- d = f;
2242
+ _setCodeFileProvider(d) {
2243
+ f = d;
2244
2244
  }
2245
2245
  }
2246
2246
  };
2247
2247
  });
2248
2248
  }
2249
- const Zt = or();
2250
- function ti(e) {
2251
- if (!ke) {
2249
+ const Te = sr();
2250
+ function ni(e) {
2251
+ if (!Me) {
2252
2252
  if (!e)
2253
2253
  throw new Error("designer is required");
2254
- ke = ar(e), Zt.registerAgg(ke);
2254
+ Me = cr(e), Te.registerAgg(Me);
2255
2255
  }
2256
- return ke.api;
2256
+ return Me.api;
2257
2257
  }
2258
- function Jn(e) {
2258
+ function pt(e) {
2259
2259
  return e && e._attributes && e._attributes.rule === "Info";
2260
2260
  }
2261
- function cr(e) {
2261
+ function ur(e) {
2262
2262
  return e && e._attributes && e._attributes.rule === "Agg";
2263
2263
  }
2264
2264
  function lr(e) {
2265
2265
  return e && e._attributes && e._attributes.rule === "Command";
2266
2266
  }
2267
- function ur(e) {
2267
+ function pr(e) {
2268
2268
  return e && e._attributes && e._attributes.rule === "FacadeCommand";
2269
2269
  }
2270
- function pr(e) {
2270
+ function dr(e) {
2271
2271
  return e && e._attributes && e._attributes.rule === "Event";
2272
2272
  }
2273
2273
  function fr(e) {
2274
2274
  return e && e._attributes && e._attributes.rule === "ReadModel";
2275
2275
  }
2276
- const It = process.env.NODE_ENV !== "production" ? Object.freeze({}) : {};
2276
+ const Ft = process.env.NODE_ENV !== "production" ? Object.freeze({}) : {};
2277
2277
  process.env.NODE_ENV !== "production" && Object.freeze([]);
2278
- const dr = () => {
2278
+ const mr = () => {
2279
2279
  }, hr = (e) => e.charCodeAt(0) === 111 && e.charCodeAt(1) === 110 && // uppercase letter
2280
- (e.charCodeAt(2) > 122 || e.charCodeAt(2) < 97), ct = Object.assign, z = Array.isArray, ue = (e) => typeof e == "function", te = (e) => typeof e == "string", mr = (e) => typeof e == "symbol", ie = (e) => e !== null && typeof e == "object";
2281
- let dn;
2282
- const lt = () => dn || (dn = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : typeof global < "u" ? global : {});
2283
- function Qt(e) {
2284
- if (z(e)) {
2280
+ (e.charCodeAt(2) > 122 || e.charCodeAt(2) < 97), dt = Object.assign, U = Array.isArray, le = (e) => typeof e == "function", te = (e) => typeof e == "string", gr = (e) => typeof e == "symbol", ie = (e) => e !== null && typeof e == "object";
2281
+ let hn;
2282
+ const ft = () => hn || (hn = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : typeof global < "u" ? global : {});
2283
+ function en(e) {
2284
+ if (U(e)) {
2285
2285
  const t = {};
2286
2286
  for (let n = 0; n < e.length; n++) {
2287
- const o = e[n], s = te(o) ? Cr(o) : Qt(o);
2287
+ const o = e[n], s = te(o) ? $r(o) : en(o);
2288
2288
  if (s)
2289
2289
  for (const r in s)
2290
2290
  t[r] = s[r];
@@ -2293,23 +2293,23 @@ function Qt(e) {
2293
2293
  } else if (te(e) || ie(e))
2294
2294
  return e;
2295
2295
  }
2296
- const gr = /;(?![^(]*\))/g, _r = /:([^]+)/, vr = /\/\*[^]*?\*\//g;
2297
- function Cr(e) {
2296
+ const _r = /;(?![^(]*\))/g, vr = /:([^]+)/, Cr = /\/\*[^]*?\*\//g;
2297
+ function $r(e) {
2298
2298
  const t = {};
2299
- return e.replace(vr, "").split(gr).forEach((n) => {
2299
+ return e.replace(Cr, "").split(_r).forEach((n) => {
2300
2300
  if (n) {
2301
- const o = n.split(_r);
2301
+ const o = n.split(vr);
2302
2302
  o.length > 1 && (t[o[0].trim()] = o[1].trim());
2303
2303
  }
2304
2304
  }), t;
2305
2305
  }
2306
- function Xt(e) {
2306
+ function tn(e) {
2307
2307
  let t = "";
2308
2308
  if (te(e))
2309
2309
  t = e;
2310
- else if (z(e))
2310
+ else if (U(e))
2311
2311
  for (let n = 0; n < e.length; n++) {
2312
- const o = Xt(e[n]);
2312
+ const o = tn(e[n]);
2313
2313
  o && (t += o + " ");
2314
2314
  }
2315
2315
  else if (ie(e))
@@ -2327,25 +2327,25 @@ Symbol(
2327
2327
  process.env.NODE_ENV !== "production" ? "Array iterate" : ""
2328
2328
  );
2329
2329
  new Set(
2330
- /* @__PURE__ */ Object.getOwnPropertyNames(Symbol).filter((e) => e !== "arguments" && e !== "caller").map((e) => Symbol[e]).filter(mr)
2330
+ /* @__PURE__ */ Object.getOwnPropertyNames(Symbol).filter((e) => e !== "arguments" && e !== "caller").map((e) => Symbol[e]).filter(gr)
2331
2331
  );
2332
- function qn(e) {
2333
- return Pt(e) ? qn(e.__v_raw) : !!(e && e.__v_isReactive);
2332
+ function Yn(e) {
2333
+ return Rt(e) ? Yn(e.__v_raw) : !!(e && e.__v_isReactive);
2334
2334
  }
2335
- function Pt(e) {
2335
+ function Rt(e) {
2336
2336
  return !!(e && e.__v_isReadonly);
2337
2337
  }
2338
- function vt(e) {
2338
+ function Nt(e) {
2339
2339
  return !!(e && e.__v_isShallow);
2340
2340
  }
2341
- function Tt(e) {
2341
+ function kt(e) {
2342
2342
  return e ? !!e.__v_raw : !1;
2343
2343
  }
2344
2344
  function ae(e) {
2345
2345
  const t = e && e.__v_raw;
2346
2346
  return t ? ae(t) : e;
2347
2347
  }
2348
- function en(e) {
2348
+ function nn(e) {
2349
2349
  return e ? e.__v_isRef === !0 : !1;
2350
2350
  }
2351
2351
  /**
@@ -2360,13 +2360,13 @@ function br(e) {
2360
2360
  function Nr() {
2361
2361
  ce.pop();
2362
2362
  }
2363
- let Ct = !1;
2364
- function De(e, ...t) {
2365
- if (Ct) return;
2366
- Ct = !0;
2363
+ let wt = !1;
2364
+ function Ae(e, ...t) {
2365
+ if (wt) return;
2366
+ wt = !0;
2367
2367
  const n = ce.length ? ce[ce.length - 1].component : null, o = n && n.appContext.config.warnHandler, s = wr();
2368
2368
  if (o)
2369
- tn(
2369
+ on(
2370
2370
  o,
2371
2371
  n,
2372
2372
  11,
@@ -2389,7 +2389,7 @@ function De(e, ...t) {
2389
2389
  s.length && r.push(`
2390
2390
  `, ...Er(s));
2391
2391
  }
2392
- Ct = !1;
2392
+ wt = !1;
2393
2393
  }
2394
2394
  function wr() {
2395
2395
  let e = ce[ce.length - 1];
@@ -2420,18 +2420,18 @@ function yr({ vnode: e, recurseCount: t }) {
2420
2420
  e.type,
2421
2421
  o
2422
2422
  )}`, r = ">" + n;
2423
- return e.props ? [s, ...$r(e.props), r] : [s + r];
2423
+ return e.props ? [s, ...Sr(e.props), r] : [s + r];
2424
2424
  }
2425
- function $r(e) {
2425
+ function Sr(e) {
2426
2426
  const t = [], n = Object.keys(e);
2427
2427
  return n.slice(0, 3).forEach((o) => {
2428
- t.push(...Yn(o, e[o]));
2428
+ t.push(...Zn(o, e[o]));
2429
2429
  }), n.length > 3 && t.push(" ..."), t;
2430
2430
  }
2431
- function Yn(e, t, n) {
2432
- return te(t) ? (t = JSON.stringify(t), n ? t : [`${e}=${t}`]) : typeof t == "number" || typeof t == "boolean" || t == null ? n ? t : [`${e}=${t}`] : en(t) ? (t = Yn(e, ae(t.value), !0), n ? t : [`${e}=Ref<`, t, ">"]) : ue(t) ? [`${e}=fn${t.name ? `<${t.name}>` : ""}`] : (t = ae(t), n ? t : [`${e}=`, t]);
2431
+ function Zn(e, t, n) {
2432
+ return te(t) ? (t = JSON.stringify(t), n ? t : [`${e}=${t}`]) : typeof t == "number" || typeof t == "boolean" || t == null ? n ? t : [`${e}=${t}`] : nn(t) ? (t = Zn(e, ae(t.value), !0), n ? t : [`${e}=Ref<`, t, ">"]) : le(t) ? [`${e}=fn${t.name ? `<${t.name}>` : ""}`] : (t = ae(t), n ? t : [`${e}=`, t]);
2433
2433
  }
2434
- const Zn = {
2434
+ const Qn = {
2435
2435
  sp: "serverPrefetch hook",
2436
2436
  bc: "beforeCreate hook",
2437
2437
  c: "created hook",
@@ -2464,78 +2464,78 @@ const Zn = {
2464
2464
  15: "component update",
2465
2465
  16: "app unmount cleanup function"
2466
2466
  };
2467
- function tn(e, t, n, o) {
2467
+ function on(e, t, n, o) {
2468
2468
  try {
2469
2469
  return o ? e(...o) : e();
2470
2470
  } catch (s) {
2471
- Qn(s, t, n);
2471
+ Xn(s, t, n);
2472
2472
  }
2473
2473
  }
2474
- function Qn(e, t, n, o = !0) {
2475
- const s = t ? t.vnode : null, { errorHandler: r, throwUnhandledErrorInProduction: a } = t && t.appContext.config || It;
2474
+ function Xn(e, t, n, o = !0) {
2475
+ const s = t ? t.vnode : null, { errorHandler: r, throwUnhandledErrorInProduction: a } = t && t.appContext.config || Ft;
2476
2476
  if (t) {
2477
2477
  let c = t.parent;
2478
- const l = t.proxy, d = process.env.NODE_ENV !== "production" ? Zn[n] : `https://vuejs.org/error-reference/#runtime-${n}`;
2478
+ const u = t.proxy, f = process.env.NODE_ENV !== "production" ? Qn[n] : `https://vuejs.org/error-reference/#runtime-${n}`;
2479
2479
  for (; c; ) {
2480
- const f = c.ec;
2481
- if (f) {
2482
- for (let i = 0; i < f.length; i++)
2483
- if (f[i](e, l, d) === !1)
2480
+ const d = c.ec;
2481
+ if (d) {
2482
+ for (let i = 0; i < d.length; i++)
2483
+ if (d[i](e, u, f) === !1)
2484
2484
  return;
2485
2485
  }
2486
2486
  c = c.parent;
2487
2487
  }
2488
2488
  if (r) {
2489
- tn(r, null, 10, [
2489
+ on(r, null, 10, [
2490
2490
  e,
2491
- l,
2492
- d
2491
+ u,
2492
+ f
2493
2493
  ]);
2494
2494
  return;
2495
2495
  }
2496
2496
  }
2497
- Sr(e, n, s, o, a);
2497
+ Or(e, n, s, o, a);
2498
2498
  }
2499
- function Sr(e, t, n, o = !0, s = !1) {
2499
+ function Or(e, t, n, o = !0, s = !1) {
2500
2500
  if (process.env.NODE_ENV !== "production") {
2501
- const r = Zn[t];
2502
- if (n && br(n), De(`Unhandled error${r ? ` during execution of ${r}` : ""}`), n && Nr(), o)
2501
+ const r = Qn[t];
2502
+ if (n && br(n), Ae(`Unhandled error${r ? ` during execution of ${r}` : ""}`), n && Nr(), o)
2503
2503
  throw e;
2504
2504
  } else if (s)
2505
2505
  throw e;
2506
2506
  }
2507
2507
  const k = [];
2508
- let W = -1;
2508
+ let B = -1;
2509
2509
  const be = [];
2510
2510
  let Y = null, he = 0;
2511
- const Or = /* @__PURE__ */ Promise.resolve();
2512
- let Rt = null;
2511
+ const Ir = /* @__PURE__ */ Promise.resolve();
2512
+ let Ht = null;
2513
2513
  const xr = 100;
2514
- function Dr(e) {
2515
- let t = W + 1, n = k.length;
2514
+ function Ar(e) {
2515
+ let t = B + 1, n = k.length;
2516
2516
  for (; t < n; ) {
2517
- const o = t + n >>> 1, s = k[o], r = Ae(s);
2517
+ const o = t + n >>> 1, s = k[o], r = De(s);
2518
2518
  r < e || r === e && s.flags & 2 ? t = o + 1 : n = o;
2519
2519
  }
2520
2520
  return t;
2521
2521
  }
2522
- function Ar(e) {
2522
+ function Dr(e) {
2523
2523
  if (!(e.flags & 1)) {
2524
- const t = Ae(e), n = k[k.length - 1];
2524
+ const t = De(e), n = k[k.length - 1];
2525
2525
  !n || // fast path when the job id is larger than the tail
2526
- !(e.flags & 2) && t >= Ae(n) ? k.push(e) : k.splice(Dr(t), 0, e), e.flags |= 1, Xn();
2526
+ !(e.flags & 2) && t >= De(n) ? k.push(e) : k.splice(Ar(t), 0, e), e.flags |= 1, eo();
2527
2527
  }
2528
2528
  }
2529
- function Xn() {
2530
- Rt || (Rt = Or.then(eo));
2529
+ function eo() {
2530
+ Ht || (Ht = Ir.then(to));
2531
2531
  }
2532
- function Vr(e) {
2533
- z(e) ? be.push(...e) : Y && e.id === -1 ? Y.splice(he + 1, 0, e) : e.flags & 1 || (be.push(e), e.flags |= 1), Xn();
2532
+ function Pr(e) {
2533
+ U(e) ? be.push(...e) : Y && e.id === -1 ? Y.splice(he + 1, 0, e) : e.flags & 1 || (be.push(e), e.flags |= 1), eo();
2534
2534
  }
2535
- function Ir(e) {
2535
+ function Vr(e) {
2536
2536
  if (be.length) {
2537
2537
  const t = [...new Set(be)].sort(
2538
- (n, o) => Ae(n) - Ae(o)
2538
+ (n, o) => De(n) - De(o)
2539
2539
  );
2540
2540
  if (be.length = 0, Y) {
2541
2541
  Y.push(...t);
@@ -2543,22 +2543,22 @@ function Ir(e) {
2543
2543
  }
2544
2544
  for (Y = t, process.env.NODE_ENV !== "production" && (e = e || /* @__PURE__ */ new Map()), he = 0; he < Y.length; he++) {
2545
2545
  const n = Y[he];
2546
- process.env.NODE_ENV !== "production" && to(e, n) || (n.flags & 4 && (n.flags &= -2), n.flags & 8 || n(), n.flags &= -2);
2546
+ process.env.NODE_ENV !== "production" && no(e, n) || (n.flags & 4 && (n.flags &= -2), n.flags & 8 || n(), n.flags &= -2);
2547
2547
  }
2548
2548
  Y = null, he = 0;
2549
2549
  }
2550
2550
  }
2551
- const Ae = (e) => e.id == null ? e.flags & 2 ? -1 : 1 / 0 : e.id;
2552
- function eo(e) {
2551
+ const De = (e) => e.id == null ? e.flags & 2 ? -1 : 1 / 0 : e.id;
2552
+ function to(e) {
2553
2553
  process.env.NODE_ENV !== "production" && (e = e || /* @__PURE__ */ new Map());
2554
- const t = process.env.NODE_ENV !== "production" ? (n) => to(e, n) : dr;
2554
+ const t = process.env.NODE_ENV !== "production" ? (n) => no(e, n) : mr;
2555
2555
  try {
2556
- for (W = 0; W < k.length; W++) {
2557
- const n = k[W];
2556
+ for (B = 0; B < k.length; B++) {
2557
+ const n = k[B];
2558
2558
  if (n && !(n.flags & 8)) {
2559
2559
  if (process.env.NODE_ENV !== "production" && t(n))
2560
2560
  continue;
2561
- n.flags & 4 && (n.flags &= -2), tn(
2561
+ n.flags & 4 && (n.flags &= -2), on(
2562
2562
  n,
2563
2563
  n.i,
2564
2564
  n.i ? 15 : 14
@@ -2566,18 +2566,18 @@ function eo(e) {
2566
2566
  }
2567
2567
  }
2568
2568
  } finally {
2569
- for (; W < k.length; W++) {
2570
- const n = k[W];
2569
+ for (; B < k.length; B++) {
2570
+ const n = k[B];
2571
2571
  n && (n.flags &= -2);
2572
2572
  }
2573
- W = -1, k.length = 0, Ir(e), Rt = null, (k.length || be.length) && eo(e);
2573
+ B = -1, k.length = 0, Vr(e), Ht = null, (k.length || be.length) && to(e);
2574
2574
  }
2575
2575
  }
2576
- function to(e, t) {
2576
+ function no(e, t) {
2577
2577
  const n = e.get(t) || 0;
2578
2578
  if (n > xr) {
2579
- const o = t.i, s = o && co(o.type);
2580
- return Qn(
2579
+ const o = t.i, s = o && uo(o.type);
2580
+ return Xn(
2581
2581
  `Maximum recursive updates exceeded${s ? ` in component <${s}>` : ""}. This means you have a reactive effect that is mutating its own dependencies and thus recursively triggering itself. Possible sources include component template, render function, updated hook or watcher source function.`,
2582
2582
  null,
2583
2583
  10
@@ -2585,50 +2585,50 @@ function to(e, t) {
2585
2585
  }
2586
2586
  return e.set(t, n + 1), !1;
2587
2587
  }
2588
- const bt = /* @__PURE__ */ new Map();
2589
- process.env.NODE_ENV !== "production" && (lt().__VUE_HMR_RUNTIME__ = {
2590
- createRecord: Nt(Pr),
2591
- rerender: Nt(Tr),
2592
- reload: Nt(Rr)
2588
+ const Et = /* @__PURE__ */ new Map();
2589
+ process.env.NODE_ENV !== "production" && (ft().__VUE_HMR_RUNTIME__ = {
2590
+ createRecord: yt(Tr),
2591
+ rerender: yt(jr),
2592
+ reload: yt(Fr)
2593
2593
  });
2594
- const Ze = /* @__PURE__ */ new Map();
2595
- function Pr(e, t) {
2596
- return Ze.has(e) ? !1 : (Ze.set(e, {
2597
- initialDef: Qe(t),
2594
+ const Xe = /* @__PURE__ */ new Map();
2595
+ function Tr(e, t) {
2596
+ return Xe.has(e) ? !1 : (Xe.set(e, {
2597
+ initialDef: et(t),
2598
2598
  instances: /* @__PURE__ */ new Set()
2599
2599
  }), !0);
2600
2600
  }
2601
- function Qe(e) {
2602
- return uo(e) ? e.__vccOpts : e;
2601
+ function et(e) {
2602
+ return po(e) ? e.__vccOpts : e;
2603
2603
  }
2604
- function Tr(e, t) {
2605
- const n = Ze.get(e);
2604
+ function jr(e, t) {
2605
+ const n = Xe.get(e);
2606
2606
  n && (n.initialDef.render = t, [...n.instances].forEach((o) => {
2607
- t && (o.render = t, Qe(o.type).render = t), o.renderCache = [], o.update();
2607
+ t && (o.render = t, et(o.type).render = t), o.renderCache = [], o.update();
2608
2608
  }));
2609
2609
  }
2610
- function Rr(e, t) {
2611
- const n = Ze.get(e);
2610
+ function Fr(e, t) {
2611
+ const n = Xe.get(e);
2612
2612
  if (!n) return;
2613
- t = Qe(t), hn(n.initialDef, t);
2613
+ t = et(t), gn(n.initialDef, t);
2614
2614
  const o = [...n.instances];
2615
2615
  for (let s = 0; s < o.length; s++) {
2616
- const r = o[s], a = Qe(r.type);
2617
- let c = bt.get(a);
2618
- c || (a !== n.initialDef && hn(a, t), bt.set(a, c = /* @__PURE__ */ new Set())), c.add(r), r.appContext.propsCache.delete(r.type), r.appContext.emitsCache.delete(r.type), r.appContext.optionsCache.delete(r.type), r.ceReload ? (c.add(r), r.ceReload(t.styles), c.delete(r)) : r.parent ? Ar(() => {
2616
+ const r = o[s], a = et(r.type);
2617
+ let c = Et.get(a);
2618
+ c || (a !== n.initialDef && gn(a, t), Et.set(a, c = /* @__PURE__ */ new Set())), c.add(r), r.appContext.propsCache.delete(r.type), r.appContext.emitsCache.delete(r.type), r.appContext.optionsCache.delete(r.type), r.ceReload ? (c.add(r), r.ceReload(t.styles), c.delete(r)) : r.parent ? Dr(() => {
2619
2619
  r.parent.update(), c.delete(r);
2620
2620
  }) : r.appContext.reload ? r.appContext.reload() : typeof window < "u" && window.location.reload(), r.root.ce && r !== r.root && r.root.ce._removeChildStyle(a);
2621
2621
  }
2622
- Vr(() => {
2623
- bt.clear();
2622
+ Pr(() => {
2623
+ Et.clear();
2624
2624
  });
2625
2625
  }
2626
- function hn(e, t) {
2627
- ct(e, t);
2626
+ function gn(e, t) {
2627
+ dt(e, t);
2628
2628
  for (const n in e)
2629
2629
  n !== "__file" && !(n in t) && delete e[n];
2630
2630
  }
2631
- function Nt(e) {
2631
+ function yt(e) {
2632
2632
  return (t, n) => {
2633
2633
  try {
2634
2634
  return e(t, n);
@@ -2636,36 +2636,36 @@ function Nt(e) {
2636
2636
  }
2637
2637
  };
2638
2638
  }
2639
- let Xe = null, Fr = null;
2640
- const jr = (e) => e.__isTeleport;
2641
- function no(e, t) {
2642
- e.shapeFlag & 6 && e.component ? (e.transition = t, no(e.component.subTree, t)) : e.shapeFlag & 128 ? (e.ssContent.transition = t.clone(e.ssContent), e.ssFallback.transition = t.clone(e.ssFallback)) : e.transition = t;
2639
+ let tt = null, Rr = null;
2640
+ const kr = (e) => e.__isTeleport;
2641
+ function oo(e, t) {
2642
+ e.shapeFlag & 6 && e.component ? (e.transition = t, oo(e.component.subTree, t)) : e.shapeFlag & 128 ? (e.ssContent.transition = t.clone(e.ssContent), e.ssFallback.transition = t.clone(e.ssFallback)) : e.transition = t;
2643
2643
  }
2644
- lt().requestIdleCallback;
2645
- lt().cancelIdleCallback;
2646
- const kr = Symbol.for("v-ndc");
2644
+ ft().requestIdleCallback;
2645
+ ft().cancelIdleCallback;
2646
+ const Hr = Symbol.for("v-ndc");
2647
2647
  process.env.NODE_ENV;
2648
- const Hr = {}, oo = (e) => Object.getPrototypeOf(e) === Hr, Mr = (e) => e.__isSuspense, so = Symbol.for("v-fgt"), Lr = Symbol.for("v-txt"), Kr = Symbol.for("v-cmt");
2649
- let ge = null;
2648
+ const Mr = {}, so = (e) => Object.getPrototypeOf(e) === Mr, Lr = (e) => e.__isSuspense, ro = Symbol.for("v-fgt"), Kr = Symbol.for("v-txt"), Ur = Symbol.for("v-cmt");
2649
+ let _e = null;
2650
2650
  function zr(e) {
2651
2651
  return e ? e.__v_isVNode === !0 : !1;
2652
2652
  }
2653
- const Ur = (...e) => io(
2653
+ const Gr = (...e) => ao(
2654
2654
  ...e
2655
- ), ro = ({ key: e }) => e ?? null, Me = ({
2655
+ ), io = ({ key: e }) => e ?? null, Ke = ({
2656
2656
  ref: e,
2657
2657
  ref_key: t,
2658
2658
  ref_for: n
2659
- }) => (typeof e == "number" && (e = "" + e), e != null ? te(e) || en(e) || ue(e) ? { i: Xe, r: e, k: t, f: !!n } : e : null);
2660
- function Br(e, t = null, n = null, o = 0, s = null, r = e === so ? 0 : 1, a = !1, c = !1) {
2661
- const l = {
2659
+ }) => (typeof e == "number" && (e = "" + e), e != null ? te(e) || nn(e) || le(e) ? { i: tt, r: e, k: t, f: !!n } : e : null);
2660
+ function Br(e, t = null, n = null, o = 0, s = null, r = e === ro ? 0 : 1, a = !1, c = !1) {
2661
+ const u = {
2662
2662
  __v_isVNode: !0,
2663
2663
  __v_skip: !0,
2664
2664
  type: e,
2665
2665
  props: t,
2666
- key: t && ro(t),
2667
- ref: t && Me(t),
2668
- scopeId: Fr,
2666
+ key: t && io(t),
2667
+ ref: t && Ke(t),
2668
+ scopeId: Rr,
2669
2669
  slotScopeIds: null,
2670
2670
  children: n,
2671
2671
  component: null,
@@ -2685,36 +2685,36 @@ function Br(e, t = null, n = null, o = 0, s = null, r = e === so ? 0 : 1, a = !1
2685
2685
  dynamicProps: s,
2686
2686
  dynamicChildren: null,
2687
2687
  appContext: null,
2688
- ctx: Xe
2688
+ ctx: tt
2689
2689
  };
2690
- return c ? (nn(l, n), r & 128 && e.normalize(l)) : n && (l.shapeFlag |= te(n) ? 8 : 16), process.env.NODE_ENV !== "production" && l.key !== l.key && De("VNode created with invalid key (NaN). VNode type:", l.type), // avoid a block node from tracking itself
2690
+ return c ? (sn(u, n), r & 128 && e.normalize(u)) : n && (u.shapeFlag |= te(n) ? 8 : 16), process.env.NODE_ENV !== "production" && u.key !== u.key && Ae("VNode created with invalid key (NaN). VNode type:", u.type), // avoid a block node from tracking itself
2691
2691
  !a && // has current parent block
2692
- ge && // presence of a patch flag indicates this node needs patching on updates.
2692
+ _e && // presence of a patch flag indicates this node needs patching on updates.
2693
2693
  // component nodes also should always be patched, because even if the
2694
2694
  // component doesn't need to update, it needs to persist the instance on to
2695
2695
  // the next vnode so that it can be properly unmounted later.
2696
- (l.patchFlag > 0 || r & 6) && // the EVENTS flag is only for hydration and if it is the only flag, the
2696
+ (u.patchFlag > 0 || r & 6) && // the EVENTS flag is only for hydration and if it is the only flag, the
2697
2697
  // vnode should not be considered dynamic due to handler caching.
2698
- l.patchFlag !== 32 && ge.push(l), l;
2698
+ u.patchFlag !== 32 && _e.push(u), u;
2699
2699
  }
2700
- const Wr = process.env.NODE_ENV !== "production" ? Ur : io;
2701
- function io(e, t = null, n = null, o = 0, s = null, r = !1) {
2702
- if ((!e || e === kr) && (process.env.NODE_ENV !== "production" && !e && De(`Invalid vnode type when creating vnode: ${e}.`), e = Kr), zr(e)) {
2703
- const c = et(
2700
+ const Wr = process.env.NODE_ENV !== "production" ? Gr : ao;
2701
+ function ao(e, t = null, n = null, o = 0, s = null, r = !1) {
2702
+ if ((!e || e === Hr) && (process.env.NODE_ENV !== "production" && !e && Ae(`Invalid vnode type when creating vnode: ${e}.`), e = Ur), zr(e)) {
2703
+ const c = nt(
2704
2704
  e,
2705
2705
  t,
2706
2706
  !0
2707
2707
  /* mergeRef: true */
2708
2708
  );
2709
- return n && nn(c, n), !r && ge && (c.shapeFlag & 6 ? ge[ge.indexOf(e)] = c : ge.push(c)), c.patchFlag = -2, c;
2709
+ return n && sn(c, n), !r && _e && (c.shapeFlag & 6 ? _e[_e.indexOf(e)] = c : _e.push(c)), c.patchFlag = -2, c;
2710
2710
  }
2711
- if (uo(e) && (e = e.__vccOpts), t) {
2712
- t = Gr(t);
2713
- let { class: c, style: l } = t;
2714
- c && !te(c) && (t.class = Xt(c)), ie(l) && (Tt(l) && !z(l) && (l = ct({}, l)), t.style = Qt(l));
2711
+ if (po(e) && (e = e.__vccOpts), t) {
2712
+ t = Jr(t);
2713
+ let { class: c, style: u } = t;
2714
+ c && !te(c) && (t.class = tn(c)), ie(u) && (kt(u) && !U(u) && (u = dt({}, u)), t.style = en(u));
2715
2715
  }
2716
- const a = te(e) ? 1 : Mr(e) ? 128 : jr(e) ? 64 : ie(e) ? 4 : ue(e) ? 2 : 0;
2717
- return process.env.NODE_ENV !== "production" && a & 4 && Tt(e) && (e = ae(e), De(
2716
+ const a = te(e) ? 1 : Lr(e) ? 128 : kr(e) ? 64 : ie(e) ? 4 : le(e) ? 2 : 0;
2717
+ return process.env.NODE_ENV !== "production" && a & 4 && kt(e) && (e = ae(e), Ae(
2718
2718
  "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`.",
2719
2719
  `
2720
2720
  Component that was made reactive: `,
@@ -2730,25 +2730,25 @@ Component that was made reactive: `,
2730
2730
  !0
2731
2731
  );
2732
2732
  }
2733
- function Gr(e) {
2734
- return e ? Tt(e) || oo(e) ? ct({}, e) : e : null;
2733
+ function Jr(e) {
2734
+ return e ? kt(e) || so(e) ? dt({}, e) : e : null;
2735
2735
  }
2736
- function et(e, t, n = !1, o = !1) {
2737
- const { props: s, ref: r, patchFlag: a, children: c, transition: l } = e, d = t ? qr(s || {}, t) : s, f = {
2736
+ function nt(e, t, n = !1, o = !1) {
2737
+ const { props: s, ref: r, patchFlag: a, children: c, transition: u } = e, f = t ? Yr(s || {}, t) : s, d = {
2738
2738
  __v_isVNode: !0,
2739
2739
  __v_skip: !0,
2740
2740
  type: e.type,
2741
- props: d,
2742
- key: d && ro(d),
2741
+ props: f,
2742
+ key: f && io(f),
2743
2743
  ref: t && t.ref ? (
2744
2744
  // #2078 in the case of <component :is="vnode" ref="extra"/>
2745
2745
  // if the vnode itself already has a ref, cloneVNode will need to merge
2746
2746
  // the refs so the single vnode can be set on multiple refs
2747
- n && r ? z(r) ? r.concat(Me(t)) : [r, Me(t)] : Me(t)
2747
+ n && r ? U(r) ? r.concat(Ke(t)) : [r, Ke(t)] : Ke(t)
2748
2748
  ) : r,
2749
2749
  scopeId: e.scopeId,
2750
2750
  slotScopeIds: e.slotScopeIds,
2751
- children: process.env.NODE_ENV !== "production" && a === -1 && z(c) ? c.map(ao) : c,
2751
+ children: process.env.NODE_ENV !== "production" && a === -1 && U(c) ? c.map(co) : c,
2752
2752
  target: e.target,
2753
2753
  targetStart: e.targetStart,
2754
2754
  targetAnchor: e.targetAnchor,
@@ -2758,72 +2758,72 @@ function et(e, t, n = !1, o = !1) {
2758
2758
  // existing patch flag to be reliable and need to add the FULL_PROPS flag.
2759
2759
  // note: preserve flag for fragments since they use the flag for children
2760
2760
  // fast paths only.
2761
- patchFlag: t && e.type !== so ? a === -1 ? 16 : a | 16 : a,
2761
+ patchFlag: t && e.type !== ro ? a === -1 ? 16 : a | 16 : a,
2762
2762
  dynamicProps: e.dynamicProps,
2763
2763
  dynamicChildren: e.dynamicChildren,
2764
2764
  appContext: e.appContext,
2765
2765
  dirs: e.dirs,
2766
- transition: l,
2766
+ transition: u,
2767
2767
  // These should technically only be non-null on mounted VNodes. However,
2768
2768
  // they *should* be copied for kept-alive vnodes. So we just always copy
2769
2769
  // them since them being non-null during a mount doesn't affect the logic as
2770
2770
  // they will simply be overwritten.
2771
2771
  component: e.component,
2772
2772
  suspense: e.suspense,
2773
- ssContent: e.ssContent && et(e.ssContent),
2774
- ssFallback: e.ssFallback && et(e.ssFallback),
2773
+ ssContent: e.ssContent && nt(e.ssContent),
2774
+ ssFallback: e.ssFallback && nt(e.ssFallback),
2775
2775
  el: e.el,
2776
2776
  anchor: e.anchor,
2777
2777
  ctx: e.ctx,
2778
2778
  ce: e.ce
2779
2779
  };
2780
- return l && o && no(
2781
- f,
2782
- l.clone(f)
2783
- ), f;
2780
+ return u && o && oo(
2781
+ d,
2782
+ u.clone(d)
2783
+ ), d;
2784
2784
  }
2785
- function ao(e) {
2786
- const t = et(e);
2787
- return z(e.children) && (t.children = e.children.map(ao)), t;
2785
+ function co(e) {
2786
+ const t = nt(e);
2787
+ return U(e.children) && (t.children = e.children.map(co)), t;
2788
2788
  }
2789
- function Jr(e = " ", t = 0) {
2790
- return Wr(Lr, null, e, t);
2789
+ function qr(e = " ", t = 0) {
2790
+ return Wr(Kr, null, e, t);
2791
2791
  }
2792
- function nn(e, t) {
2792
+ function sn(e, t) {
2793
2793
  let n = 0;
2794
2794
  const { shapeFlag: o } = e;
2795
2795
  if (t == null)
2796
2796
  t = null;
2797
- else if (z(t))
2797
+ else if (U(t))
2798
2798
  n = 16;
2799
2799
  else if (typeof t == "object")
2800
2800
  if (o & 65) {
2801
2801
  const s = t.default;
2802
- s && (s._c && (s._d = !1), nn(e, s()), s._c && (s._d = !0));
2802
+ s && (s._c && (s._d = !1), sn(e, s()), s._c && (s._d = !0));
2803
2803
  return;
2804
2804
  } else
2805
- n = 32, !t._ && !oo(t) && (t._ctx = Xe);
2806
- else ue(t) ? (t = { default: t, _ctx: Xe }, n = 32) : (t = String(t), o & 64 ? (n = 16, t = [Jr(t)]) : n = 8);
2805
+ n = 32, !t._ && !so(t) && (t._ctx = tt);
2806
+ else le(t) ? (t = { default: t, _ctx: tt }, n = 32) : (t = String(t), o & 64 ? (n = 16, t = [qr(t)]) : n = 8);
2807
2807
  e.children = t, e.shapeFlag |= n;
2808
2808
  }
2809
- function qr(...e) {
2809
+ function Yr(...e) {
2810
2810
  const t = {};
2811
2811
  for (let n = 0; n < e.length; n++) {
2812
2812
  const o = e[n];
2813
2813
  for (const s in o)
2814
2814
  if (s === "class")
2815
- t.class !== o.class && (t.class = Xt([t.class, o.class]));
2815
+ t.class !== o.class && (t.class = tn([t.class, o.class]));
2816
2816
  else if (s === "style")
2817
- t.style = Qt([t.style, o.style]);
2817
+ t.style = en([t.style, o.style]);
2818
2818
  else if (hr(s)) {
2819
2819
  const r = t[s], a = o[s];
2820
- a && r !== a && !(z(r) && r.includes(a)) && (t[s] = r ? [].concat(r, a) : a);
2820
+ a && r !== a && !(U(r) && r.includes(a)) && (t[s] = r ? [].concat(r, a) : a);
2821
2821
  } else s !== "" && (t[s] = o[s]);
2822
2822
  }
2823
2823
  return t;
2824
2824
  }
2825
2825
  {
2826
- const e = lt(), t = (n, o) => {
2826
+ const e = ft(), t = (n, o) => {
2827
2827
  let s;
2828
2828
  return (s = e[n]) || (s = e[n] = []), s.push(o), (r) => {
2829
2829
  s.length > 1 ? s.forEach((a) => a(r)) : s[0](r);
@@ -2838,12 +2838,12 @@ function qr(...e) {
2838
2838
  );
2839
2839
  }
2840
2840
  process.env.NODE_ENV;
2841
- const Yr = /(?:^|[-_])(\w)/g, Zr = (e) => e.replace(Yr, (t) => t.toUpperCase()).replace(/[-_]/g, "");
2842
- function co(e, t = !0) {
2843
- return ue(e) ? e.displayName || e.name : e.name || t && e.__name;
2841
+ const Zr = /(?:^|[-_])(\w)/g, Qr = (e) => e.replace(Zr, (t) => t.toUpperCase()).replace(/[-_]/g, "");
2842
+ function uo(e, t = !0) {
2843
+ return le(e) ? e.displayName || e.name : e.name || t && e.__name;
2844
2844
  }
2845
2845
  function lo(e, t, n = !1) {
2846
- let o = co(t);
2846
+ let o = uo(t);
2847
2847
  if (!o && t.__file) {
2848
2848
  const s = t.__file.match(/([^/\\]+)\.\w+$/);
2849
2849
  s && (o = s[1]);
@@ -2858,36 +2858,36 @@ function lo(e, t, n = !1) {
2858
2858
  e.components || e.parent.type.components
2859
2859
  ) || s(e.appContext.components);
2860
2860
  }
2861
- return o ? Zr(o) : n ? "App" : "Anonymous";
2861
+ return o ? Qr(o) : n ? "App" : "Anonymous";
2862
2862
  }
2863
- function uo(e) {
2864
- return ue(e) && "__vccOpts" in e;
2863
+ function po(e) {
2864
+ return le(e) && "__vccOpts" in e;
2865
2865
  }
2866
- function Qr() {
2866
+ function Xr() {
2867
2867
  if (process.env.NODE_ENV === "production" || typeof window > "u")
2868
2868
  return;
2869
2869
  const e = { style: "color:#3ba776" }, t = { style: "color:#1677ff" }, n = { style: "color:#f5222d" }, o = { style: "color:#eb2f96" }, s = {
2870
2870
  __vue_custom_formatter: !0,
2871
2871
  header(i) {
2872
- return ie(i) ? i.__isVue ? ["div", e, "VueInstance"] : en(i) ? [
2872
+ return ie(i) ? i.__isVue ? ["div", e, "VueInstance"] : nn(i) ? [
2873
2873
  "div",
2874
2874
  {},
2875
- ["span", e, f(i)],
2875
+ ["span", e, d(i)],
2876
2876
  "<",
2877
2877
  // avoid debugger accessing value affecting behavior
2878
2878
  c("_value" in i ? i._value : i),
2879
2879
  ">"
2880
- ] : qn(i) ? [
2880
+ ] : Yn(i) ? [
2881
2881
  "div",
2882
2882
  {},
2883
- ["span", e, vt(i) ? "ShallowReactive" : "Reactive"],
2883
+ ["span", e, Nt(i) ? "ShallowReactive" : "Reactive"],
2884
2884
  "<",
2885
2885
  c(i),
2886
- `>${Pt(i) ? " (readonly)" : ""}`
2887
- ] : Pt(i) ? [
2886
+ `>${Rt(i) ? " (readonly)" : ""}`
2887
+ ] : Rt(i) ? [
2888
2888
  "div",
2889
2889
  {},
2890
- ["span", e, vt(i) ? "ShallowReadonly" : "Readonly"],
2890
+ ["span", e, Nt(i) ? "ShallowReadonly" : "Readonly"],
2891
2891
  "<",
2892
2892
  c(i),
2893
2893
  ">"
@@ -2906,12 +2906,12 @@ function Qr() {
2906
2906
  }
2907
2907
  };
2908
2908
  function r(i) {
2909
- const u = [];
2910
- i.type.props && i.props && u.push(a("props", ae(i.props))), i.setupState !== It && u.push(a("setup", i.setupState)), i.data !== It && u.push(a("data", ae(i.data)));
2911
- const p = l(i, "computed");
2912
- p && u.push(a("computed", p));
2913
- const _ = l(i, "inject");
2914
- return _ && u.push(a("injected", _)), u.push([
2909
+ const l = [];
2910
+ i.type.props && i.props && l.push(a("props", ae(i.props))), i.setupState !== Ft && l.push(a("setup", i.setupState)), i.data !== Ft && l.push(a("data", ae(i.data)));
2911
+ const p = u(i, "computed");
2912
+ p && l.push(a("computed", p));
2913
+ const _ = u(i, "inject");
2914
+ return _ && l.push(a("injected", _)), l.push([
2915
2915
  "div",
2916
2916
  {},
2917
2917
  [
@@ -2922,10 +2922,10 @@ function Qr() {
2922
2922
  "$ (internal): "
2923
2923
  ],
2924
2924
  ["object", { object: i }]
2925
- ]), u;
2925
+ ]), l;
2926
2926
  }
2927
- function a(i, u) {
2928
- return u = ct({}, u), Object.keys(u).length ? [
2927
+ function a(i, l) {
2928
+ return l = dt({}, l), Object.keys(l).length ? [
2929
2929
  "div",
2930
2930
  { style: "line-height:1.25em;margin-bottom:0.6em" },
2931
2931
  [
@@ -2940,34 +2940,34 @@ function Qr() {
2940
2940
  {
2941
2941
  style: "padding-left:1.25em"
2942
2942
  },
2943
- ...Object.keys(u).map((p) => [
2943
+ ...Object.keys(l).map((p) => [
2944
2944
  "div",
2945
2945
  {},
2946
2946
  ["span", o, p + ": "],
2947
- c(u[p], !1)
2947
+ c(l[p], !1)
2948
2948
  ])
2949
2949
  ]
2950
2950
  ] : ["span", {}];
2951
2951
  }
2952
- function c(i, u = !0) {
2953
- return typeof i == "number" ? ["span", t, i] : typeof i == "string" ? ["span", n, JSON.stringify(i)] : typeof i == "boolean" ? ["span", o, i] : ie(i) ? ["object", { object: u ? ae(i) : i }] : ["span", n, String(i)];
2952
+ function c(i, l = !0) {
2953
+ return typeof i == "number" ? ["span", t, i] : typeof i == "string" ? ["span", n, JSON.stringify(i)] : typeof i == "boolean" ? ["span", o, i] : ie(i) ? ["object", { object: l ? ae(i) : i }] : ["span", n, String(i)];
2954
2954
  }
2955
- function l(i, u) {
2955
+ function u(i, l) {
2956
2956
  const p = i.type;
2957
- if (ue(p))
2957
+ if (le(p))
2958
2958
  return;
2959
2959
  const _ = {};
2960
- for (const g in i.ctx)
2961
- d(p, g, u) && (_[g] = i.ctx[g]);
2960
+ for (const h in i.ctx)
2961
+ f(p, h, l) && (_[h] = i.ctx[h]);
2962
2962
  return _;
2963
2963
  }
2964
- function d(i, u, p) {
2964
+ function f(i, l, p) {
2965
2965
  const _ = i[p];
2966
- if (z(_) && _.includes(u) || ie(_) && u in _ || i.extends && d(i.extends, u, p) || i.mixins && i.mixins.some((g) => d(g, u, p)))
2966
+ if (U(_) && _.includes(l) || ie(_) && l in _ || i.extends && f(i.extends, l, p) || i.mixins && i.mixins.some((h) => f(h, l, p)))
2967
2967
  return !0;
2968
2968
  }
2969
- function f(i) {
2970
- return vt(i) ? "ShallowRef" : i.effect ? "ComputedRef" : "Ref";
2969
+ function d(i) {
2970
+ return Nt(i) ? "ShallowRef" : i.effect ? "ComputedRef" : "Ref";
2971
2971
  }
2972
2972
  window.devtoolsFormatters ? window.devtoolsFormatters.push(s) : window.devtoolsFormatters = [s];
2973
2973
  }
@@ -2979,15 +2979,15 @@ process.env.NODE_ENV;
2979
2979
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
2980
2980
  * @license MIT
2981
2981
  **/
2982
- function Xr() {
2983
- Qr();
2982
+ function ei() {
2983
+ Xr();
2984
2984
  }
2985
- process.env.NODE_ENV !== "production" && Xr();
2986
- function ei(e) {
2987
- return lr(e) || ur(e) || cr(e) || pr(e) || fr(e);
2985
+ process.env.NODE_ENV !== "production" && ei();
2986
+ function ti(e) {
2987
+ return lr(e) || pr(e) || ur(e) || dr(e) || fr(e);
2988
2988
  }
2989
- var po = /* @__PURE__ */ ((e) => (e.Java = "java", e.Kotlin = "kotlin", e.CSharp = "csharp", e.Go = "go", e))(po || {});
2990
- class R {
2989
+ var fo = /* @__PURE__ */ ((e) => (e.Java = "java", e.Kotlin = "kotlin", e.CSharp = "csharp", e.Go = "go", e))(fo || {});
2990
+ class y {
2991
2991
  imports = /* @__PURE__ */ new Set();
2992
2992
  parentDir;
2993
2993
  name;
@@ -3028,84 +3028,88 @@ class R {
3028
3028
  this.parentDir = t;
3029
3029
  }
3030
3030
  }
3031
- var tt;
3031
+ var ot;
3032
3032
  ((e) => {
3033
3033
  ((t) => {
3034
3034
  t.Lombok = "Lombok", t.LombokBuilder = "LombokBuilder", t.RecordVakueObject = "RecordVakueObject", t.CommandHandler = "CommandHandler", t.Jpa = "Jpa", t.Timezone = "Timezone", t.SpringFramework = "SpringFramework";
3035
3035
  })(e.JavaGeneratorAddition || (e.JavaGeneratorAddition = {}));
3036
- })(tt || (tt = {}));
3037
- var nt;
3036
+ })(ot || (ot = {}));
3037
+ var st;
3038
3038
  ((e) => {
3039
3039
  ((t) => {
3040
3040
  t.ValueClass = "ValueClass", t.CommandHandler = "CommandHandler", t.Timezone = "Timezone";
3041
3041
  })(e.KotlinGeneratorAddition || (e.KotlinGeneratorAddition = {}));
3042
- })(nt || (nt = {}));
3043
- var Ft;
3042
+ })(st || (st = {}));
3043
+ var rt;
3044
3044
  ((e) => {
3045
- e.CSharpGeneratorAddition || (e.CSharpGeneratorAddition = {});
3046
- })(Ft || (Ft = {}));
3047
- var jt;
3045
+ ((t) => {
3046
+ t.Timezone = "Timezone", t.RecordStruct = "RecordStruct", t.CommandInterface = "CommandInterface", t.CommandHandlerInterface = "CommandHandlerInterface", t.AggInterface = "AggInterface", t.EventInterface = "EventInterface";
3047
+ })(e.CSharpGeneratorAddition || (e.CSharpGeneratorAddition = {}));
3048
+ })(rt || (rt = {}));
3049
+ var Mt;
3048
3050
  ((e) => {
3049
- e.GoGeneratorAddition || (e.GoGeneratorAddition = {});
3050
- })(jt || (jt = {}));
3051
- const ni = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3051
+ ((t) => {
3052
+ t.SinglePackageEachDesigner = "SinglePackageEachDesigner";
3053
+ })(e.GoGeneratorAddition || (e.GoGeneratorAddition = {}));
3054
+ })(Mt || (Mt = {}));
3055
+ const oi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3052
3056
  __proto__: null,
3053
- CodeFile: R,
3054
- Language: po,
3057
+ CodeFile: y,
3058
+ Language: fo,
3055
3059
  get csharp() {
3056
- return Ft;
3060
+ return rt;
3057
3061
  },
3058
3062
  get go() {
3059
- return jt;
3063
+ return Mt;
3060
3064
  },
3061
- isStruct: ei,
3065
+ isStruct: ti,
3062
3066
  get java() {
3063
- return tt;
3067
+ return ot;
3064
3068
  },
3065
3069
  get kotlin() {
3066
- return nt;
3070
+ return st;
3067
3071
  }
3068
3072
  }, Symbol.toStringTag, { value: "Module" }));
3069
- var N;
3073
+ var $;
3070
3074
  ((e) => {
3071
- function t(d) {
3072
- return d.trim().split(d.includes("_") ? /_|\s/ : /(?=[A-Z])/g).map((f) => f.charAt(0).toUpperCase() + f.toLowerCase().slice(1)).join("");
3075
+ function t(f) {
3076
+ return f.trim().split(f.includes("_") ? /_|\s/ : /(?=[A-Z])/g).map((d) => d.charAt(0).toUpperCase() + d.toLowerCase().slice(1)).join("");
3073
3077
  }
3074
3078
  e.stringToUpperCamel = t;
3075
- function n(d) {
3076
- let f = !0;
3077
- return d.trim().split(d.includes("_") ? /_|\s/ : /(?=[A-Z])/g).map((i) => f ? (f = !1, i.toLowerCase()) : i.charAt(0).toUpperCase() + i.toLowerCase().slice(1)).join("");
3079
+ function n(f) {
3080
+ let d = !0;
3081
+ return f.trim().split(f.includes("_") ? /_|\s/ : /(?=[A-Z])/g).map((i) => d ? (d = !1, i.toLowerCase()) : i.charAt(0).toUpperCase() + i.toLowerCase().slice(1)).join("");
3078
3082
  }
3079
3083
  e.stringToLowerCamel = n;
3080
- function o(d) {
3081
- return d.includes("_") ? d.toLowerCase() : r(d);
3084
+ function o(f) {
3085
+ return f.includes("_") ? f.toLowerCase() : r(f);
3082
3086
  }
3083
3087
  e.stringToLowerSnake = o;
3084
- function s(d) {
3085
- return d.trim().split(/(?=[A-Z])/g).join("_").toUpperCase();
3088
+ function s(f) {
3089
+ return f.trim().split(/(?=[A-Z])/g).join("_").toUpperCase();
3086
3090
  }
3087
3091
  e.camelToUpperSnake = s;
3088
- function r(d) {
3089
- return d.trim().split(/(?=[A-Z])/g).join("_").toLowerCase();
3092
+ function r(f) {
3093
+ return f.trim().split(/(?=[A-Z])/g).join("_").toLowerCase();
3090
3094
  }
3091
3095
  e.camelToLowerSnake = r;
3092
- function a(d) {
3093
- return d.trim().split("_").map((f) => f.charAt(0).toUpperCase() + f.slice(1)).join("");
3096
+ function a(f) {
3097
+ return f.trim().split("_").map((d) => d.charAt(0).toUpperCase() + d.slice(1)).join("");
3094
3098
  }
3095
3099
  e.snakeToUpperCamel = a;
3096
- function c(d) {
3097
- return d.trim().charAt(0).toLowerCase() + d.slice(1);
3100
+ function c(f) {
3101
+ return f.trim().charAt(0).toLowerCase() + f.slice(1);
3098
3102
  }
3099
3103
  e.lowerFirst = c;
3100
- function l(d) {
3101
- return d.trim().charAt(0).toUpperCase() + d.slice(1);
3104
+ function u(f) {
3105
+ return f.trim().charAt(0).toUpperCase() + f.slice(1);
3102
3106
  }
3103
- e.upperFirst = l;
3104
- })(N || (N = {}));
3105
- const D = tt.JavaGeneratorAddition, oi = Zt.createHotSwapPlugin(() => {
3107
+ e.upperFirst = u;
3108
+ })($ || ($ = {}));
3109
+ const A = ot.JavaGeneratorAddition, si = Te.createHotSwapPlugin(() => {
3106
3110
  const e = "value";
3107
3111
  function t(n) {
3108
- return N.stringToUpperCamel(n._attributes.name);
3112
+ return $.stringToUpperCamel(n._attributes.name);
3109
3113
  }
3110
3114
  return {
3111
3115
  unmount({ api: n }) {
@@ -3114,15 +3118,15 @@ const D = tt.JavaGeneratorAddition, oi = Zt.createHotSwapPlugin(() => {
3114
3118
  mount({ api: n }) {
3115
3119
  const o = n.states.context;
3116
3120
  function s(a, c) {
3117
- const l = o.value.additions, d = N.stringToLowerSnake(c._attributes.name).replace(/_/, " ");
3118
- return /\b(time|timestamp|date|deadline|expire)\b/.test(d) ? l.has(D.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(d) ? "Integer" : /\b(price)$/.test(d) ? (a.add("java.math.BigDecimal"), "BigDecimal") : /^(if|is)\b/.test(d) ? "Boolean" : Jn(c) && (c._attributes.type === "Id" || c._attributes.type === "Version") ? "Long" : "String";
3121
+ const u = o.value.additions, f = $.stringToLowerSnake(c._attributes.name).replace(/_/, " ");
3122
+ return /\b(time|timestamp|date|deadline|expire)\b/.test(f) ? u.has(A.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(f) ? "Integer" : /\b(price)$/.test(f) ? (a.add("java.math.BigDecimal"), "BigDecimal") : /^(if|is)\b/.test(f) ? "Boolean" : pt(c) && (c._attributes.type === "Id" || c._attributes.type === "Version") ? "Long" : "String";
3119
3123
  }
3120
3124
  n.commands._setInfoCodeProvider(
3121
3125
  (a) => {
3122
3126
  const c = /* @__PURE__ */ new Set();
3123
3127
  c.add(o.value.nonNullAnnotation);
3124
- const l = o.value.nonNullAnnotation.split(".").pop(), d = t(a), f = o.value.additions, i = [];
3125
- return f.has(D.RecordVakueObject) ? (i.push(`public record ${d}(@${l} ${s(c, a)} value) {`), i.push(` public ${d} {`), i.push(" // HACK check value"), i.push(" }"), i.push("}")) : f.has(D.Lombok) ? (i.push("@lombok.Getter"), i.push(`public class ${d} {`), i.push(` private final ${s(c, a)} value;`), i.push(""), i.push(` public ${d} (@${l} ${s(c, a)} value) {`), i.push(" // HACK check value"), i.push(" this.value = value;"), i.push(" }"), i.push("}")) : (i.push(`public class ${t(a)} {`), i.push(` private final ${s(c, a)} value;`), i.push(""), i.push(` public ${d} (@${l} ${s(c, a)} value) {`), i.push(" // HACK check value"), i.push(" this.value = value;"), i.push(" }"), i.push(""), i.push(` public ${s(c, a)} getValue() {`), i.push(" return this.value;"), i.push(" }"), i.push("}")), [
3128
+ const u = o.value.nonNullAnnotation.split(".").pop(), f = t(a), d = o.value.additions, i = [];
3129
+ return d.has(A.RecordVakueObject) ? (i.push(`public record ${f}(@${u} ${s(c, a)} value) {`), i.push(` public ${f} {`), i.push(" // HACK check value"), i.push(" }"), i.push("}")) : d.has(A.Lombok) ? (i.push("@lombok.Getter"), i.push(`public class ${f} {`), i.push(` private final ${s(c, a)} value;`), i.push(""), i.push(` public ${f} (@${u} ${s(c, a)} value) {`), i.push(" // HACK check value"), i.push(" this.value = value;"), i.push(" }"), i.push("}")) : (i.push(`public class ${t(a)} {`), i.push(` private final ${s(c, a)} value;`), i.push(""), i.push(` public ${f} (@${u} ${s(c, a)} value) {`), i.push(" // HACK check value"), i.push(" this.value = value;"), i.push(" }"), i.push(""), i.push(` public ${s(c, a)} getValue() {`), i.push(" return this.value;"), i.push(" }"), i.push("}")), [
3126
3130
  {
3127
3131
  type: "Info",
3128
3132
  imports: c,
@@ -3133,75 +3137,75 @@ const D = tt.JavaGeneratorAddition, oi = Zt.createHotSwapPlugin(() => {
3133
3137
  }
3134
3138
  );
3135
3139
  function r(a) {
3136
- const c = [], l = o.value.additions, d = o.value.nonNullAnnotation.split(".").pop();
3140
+ const c = [], u = o.value.additions, f = o.value.nonNullAnnotation.split(".").pop();
3137
3141
  {
3138
- const f = /* @__PURE__ */ new Set();
3139
- f.add(o.value.nonNullAnnotation);
3140
- const i = t(a), u = [], p = Object.values(a.inner);
3142
+ const d = /* @__PURE__ */ new Set();
3143
+ d.add(o.value.nonNullAnnotation);
3144
+ const i = t(a), l = [], p = Object.values(a.inner);
3141
3145
  for (const _ of p)
3142
- f.add(
3146
+ d.add(
3143
3147
  `${o.value.namespace}.${o.value.moduleName}.${e}.${t(_)}`
3144
3148
  );
3145
- if (l.has(D.RecordVakueObject)) {
3146
- l.has(D.LombokBuilder) && u.push("@lombok.Builder(toBuilder = true)"), u.push(`public record ${i}(`);
3149
+ if (u.has(A.RecordVakueObject)) {
3150
+ u.has(A.LombokBuilder) && l.push("@lombok.Builder(toBuilder = true)"), l.push(`public record ${i}(`);
3147
3151
  const _ = [];
3148
- for (const g of p) {
3149
- const m = t(g);
3150
- _.push(` @${d}
3151
- ${m} ${N.lowerFirst(m)}`);
3152
+ for (const h of p) {
3153
+ const g = t(h);
3154
+ _.push(` @${f}
3155
+ ${g} ${$.lowerFirst(g)}`);
3152
3156
  }
3153
- u.push(_.join(`,
3154
- `)), u.push(") {"), u.push(` public ${i} {`), u.push(" // HACK check value"), u.push(" }"), u.push("}");
3155
- } else if (l.has(D.Lombok)) {
3156
- u.push("@lombok.AllArgsConstructor"), u.push("@lombok.Getter"), l.has(D.LombokBuilder) && u.push("@lombok.Builder(toBuilder = true)"), u.push(`public class ${i} {`);
3157
+ l.push(_.join(`,
3158
+ `)), l.push(") {"), l.push(` public ${i} {`), l.push(" // HACK check value"), l.push(" }"), l.push("}");
3159
+ } else if (u.has(A.Lombok)) {
3160
+ l.push("@lombok.AllArgsConstructor"), l.push("@lombok.Getter"), u.has(A.LombokBuilder) && l.push("@lombok.Builder(toBuilder = true)"), l.push(`public class ${i} {`);
3157
3161
  for (const _ of p) {
3158
- const g = t(_);
3159
- u.push(` @${d}`), u.push(` private final ${g} ${N.lowerFirst(g)};`);
3162
+ const h = t(_);
3163
+ l.push(` @${f}`), l.push(` private final ${h} ${$.lowerFirst(h)};`);
3160
3164
  }
3161
- u.push("}");
3165
+ l.push("}");
3162
3166
  } else {
3163
- u.push(`public class ${i} {`);
3164
- for (const m of p) {
3165
- const h = t(m);
3166
- u.push(` @${d}`), u.push(` private final ${s(f, m)} ${N.lowerFirst(h)};`);
3167
+ l.push(`public class ${i} {`);
3168
+ for (const g of p) {
3169
+ const m = t(g);
3170
+ l.push(` @${f}`), l.push(` private final ${s(d, g)} ${$.lowerFirst(m)};`);
3167
3171
  }
3168
- u.push("");
3169
- const _ = [], g = [];
3170
- for (const m of p) {
3171
- const h = t(m);
3172
- _.push(`@${d} ${s(f, m)} ${N.lowerFirst(h)}`), g.push(`this.${N.lowerFirst(h)} = ${N.lowerFirst(h)};`);
3172
+ l.push("");
3173
+ const _ = [], h = [];
3174
+ for (const g of p) {
3175
+ const m = t(g);
3176
+ _.push(`@${f} ${s(d, g)} ${$.lowerFirst(m)}`), h.push(`this.${$.lowerFirst(m)} = ${$.lowerFirst(m)};`);
3173
3177
  }
3174
- u.push(` public ${i}(${_.join(", ")}) {`), u.push(` ${g.join(`
3175
- `)}`), u.push(" }");
3176
- for (const m of p) {
3177
- const h = t(m);
3178
- u.push(""), u.push(` public ${s(f, m)} get${h} () {`), u.push(` return this.${N.lowerFirst(h)};`), u.push(" }");
3178
+ l.push(` public ${i}(${_.join(", ")}) {`), l.push(` ${h.join(`
3179
+ `)}`), l.push(" }");
3180
+ for (const g of p) {
3181
+ const m = t(g);
3182
+ l.push(""), l.push(` public ${s(d, g)} get${m} () {`), l.push(` return this.${$.lowerFirst(m)};`), l.push(" }");
3179
3183
  }
3180
- u.push("}");
3184
+ l.push("}");
3181
3185
  }
3182
3186
  c.push({
3183
3187
  type: "Command",
3184
- imports: f,
3185
- content: u.join(`
3188
+ imports: d,
3189
+ content: l.join(`
3186
3190
  `)
3187
3191
  });
3188
3192
  }
3189
- if (!l.has(D.CommandHandler))
3193
+ if (!u.has(A.CommandHandler))
3190
3194
  return c;
3191
3195
  {
3192
- const f = /* @__PURE__ */ new Set();
3193
- f.add(o.value.nonNullAnnotation);
3194
- const i = t(a), u = [];
3195
- l.has(D.SpringFramework) && (f.add("org.springframework.stereotype.Component"), u.push("@Component")), l.has(D.Lombok) && u.push("@lombok.RequiredArgsConstructor"), u.push(`public class ${i}Handler {`);
3196
+ const d = /* @__PURE__ */ new Set();
3197
+ d.add(o.value.nonNullAnnotation);
3198
+ const i = t(a), l = [];
3199
+ u.has(A.SpringFramework) && (d.add("org.springframework.stereotype.Component"), l.push("@Component")), u.has(A.Lombok) && l.push("@lombok.RequiredArgsConstructor"), l.push(`public class ${i}Handler {`);
3196
3200
  const p = [...n.states.designer.value._getContext().getAssociationMap()[a._attributes.__id]].filter(
3197
3201
  (_) => _._attributes.rule === "Agg"
3198
3202
  );
3199
3203
  for (const _ of p)
3200
- f.add(`${o.value.namespace}.${o.value.moduleName}.${t(_)}`), u.push(` public ${t(_)} handle(@${d} ${i} command) {`), u.push(" // HACK Implement"), u.push(" }");
3201
- u.push("}"), c.push({
3204
+ d.add(`${o.value.namespace}.${o.value.moduleName}.${t(_)}`), l.push(` public ${t(_)} handle(@${f} ${i} command) {`), l.push(" // HACK Implement"), l.push(" }");
3205
+ l.push("}"), c.push({
3202
3206
  type: "CommandHandler",
3203
- imports: f,
3204
- content: u.join(`
3207
+ imports: d,
3208
+ content: l.join(`
3205
3209
  `)
3206
3210
  });
3207
3211
  }
@@ -3209,74 +3213,74 @@ const D = tt.JavaGeneratorAddition, oi = Zt.createHotSwapPlugin(() => {
3209
3213
  }
3210
3214
  n.commands._setCommandCodeProvider(r), n.commands._setFacadeCommandCodeProvider(r), n.commands._setAggCodeProvider(
3211
3215
  (a) => {
3212
- const c = o.value.additions, l = n.states.designer.value, d = o.value.nonNullAnnotation.split(".").pop(), f = t(a), i = [];
3216
+ const c = o.value.additions, u = n.states.designer.value, f = o.value.nonNullAnnotation.split(".").pop(), d = t(a), i = [];
3213
3217
  {
3214
- const u = /* @__PURE__ */ new Set();
3215
- u.add(o.value.nonNullAnnotation);
3216
- const p = [], _ = [], g = [...l._getContext().getAssociationMap()[a._attributes.__id]].filter((m) => m._attributes.rule === "Command" || m._attributes.rule === "FacadeCommand");
3217
- for (const m of g) {
3218
- const h = t(m);
3219
- _.push(`public void handle${h}(@${d} ${h} command);`);
3218
+ const l = /* @__PURE__ */ new Set();
3219
+ l.add(o.value.nonNullAnnotation);
3220
+ const p = [], _ = [], h = [...u._getContext().getAssociationMap()[a._attributes.__id]].filter((g) => g._attributes.rule === "Command" || g._attributes.rule === "FacadeCommand");
3221
+ for (const g of h) {
3222
+ const m = t(g);
3223
+ _.push(`public void handle${m}(@${f} ${m} command);`);
3220
3224
  }
3221
- p.push(`public interface ${f} {`), p.push(` ${_.join(`
3225
+ p.push(`public interface ${d} {`), p.push(` ${_.join(`
3222
3226
 
3223
3227
  `)}`), p.push("}"), i.push({
3224
3228
  type: "Agg",
3225
- imports: u,
3229
+ imports: l,
3226
3230
  content: p.join(`
3227
3231
  `)
3228
3232
  });
3229
3233
  }
3230
3234
  {
3231
- const u = /* @__PURE__ */ new Set();
3232
- u.add(o.value.nonNullAnnotation);
3235
+ const l = /* @__PURE__ */ new Set();
3236
+ l.add(o.value.nonNullAnnotation);
3233
3237
  const p = [], _ = Object.values(a.inner);
3234
- for (const g of _)
3235
- u.add(
3236
- `${o.value.namespace}.${o.value.moduleName}.${e}.${t(g)}`
3238
+ for (const h of _)
3239
+ l.add(
3240
+ `${o.value.namespace}.${o.value.moduleName}.${e}.${t(h)}`
3237
3241
  );
3238
- if (c.has(D.Lombok)) {
3239
- p.push("@lombok.AllArgsConstructor"), p.push("@lombok.Getter"), p.push(`public class ${f}Impl implements ${f} {`);
3240
- for (const m of _) {
3241
- const h = t(m);
3242
- p.push(` @${d}`), p.push(` private ${h} ${N.lowerFirst(h)};`);
3242
+ if (c.has(A.Lombok)) {
3243
+ p.push("@lombok.AllArgsConstructor"), p.push("@lombok.Getter"), p.push(`public class ${d}Impl implements ${d} {`);
3244
+ for (const g of _) {
3245
+ const m = t(g);
3246
+ p.push(` @${f}`), p.push(` private ${m} ${$.lowerFirst(m)};`);
3243
3247
  }
3244
- const g = [...l._getContext().getAssociationMap()[a._attributes.__id]].filter((m) => m._attributes.rule === "Command" || m._attributes.rule === "FacadeCommand");
3245
- for (const m of g) {
3246
- const h = t(m);
3248
+ const h = [...u._getContext().getAssociationMap()[a._attributes.__id]].filter((g) => g._attributes.rule === "Command" || g._attributes.rule === "FacadeCommand");
3249
+ for (const g of h) {
3250
+ const m = t(g);
3247
3251
  p.push(""), p.push(
3248
- ` public void handle${h}(@${d} ${h} ${N.lowerFirst(
3249
- h
3252
+ ` public void handle${m}(@${f} ${m} ${$.lowerFirst(
3253
+ m
3250
3254
  )}) {`
3251
3255
  ), p.push(" // HACK need implement"), p.push(" }");
3252
3256
  }
3253
3257
  p.push("}");
3254
3258
  } else {
3255
- p.push(`public class ${f}Impl implements ${f} {`);
3259
+ p.push(`public class ${d}Impl implements ${d} {`);
3256
3260
  for (const v of _) {
3257
- const y = t(v);
3258
- p.push(` @${d}`), p.push(` private ${y} ${N.lowerFirst(y)};`);
3261
+ const C = t(v);
3262
+ p.push(` @${f}`), p.push(` private ${C} ${$.lowerFirst(C)};`);
3259
3263
  }
3260
3264
  p.push("");
3261
- const g = [], m = [];
3265
+ const h = [], g = [];
3262
3266
  for (const v of _) {
3263
- const y = t(v);
3264
- g.push(`@${d} ${y} ${N.lowerFirst(y)}`), m.push(`this.${N.lowerFirst(y)} = ${N.lowerFirst(y)};`);
3267
+ const C = t(v);
3268
+ h.push(`@${f} ${C} ${$.lowerFirst(C)}`), g.push(`this.${$.lowerFirst(C)} = ${$.lowerFirst(C)};`);
3265
3269
  }
3266
- p.push(` public ${f}(${g.join(", ")}) {`), p.push(` ${m.join(`
3270
+ p.push(` public ${d}(${h.join(", ")}) {`), p.push(` ${g.join(`
3267
3271
  `)}`), p.push(" }");
3268
3272
  for (const v of _) {
3269
- const y = t(v);
3270
- p.push(""), p.push(` @${d}`), p.push(` public ${y} get${y}() {`), p.push(` return this.${N.lowerFirst(y)};`), p.push(" }");
3273
+ const C = t(v);
3274
+ p.push(""), p.push(` @${f}`), p.push(` public ${C} get${C}() {`), p.push(` return this.${$.lowerFirst(C)};`), p.push(" }");
3271
3275
  }
3272
- const h = [...l._getContext().getAssociationMap()[a._attributes.__id]].filter(
3276
+ const m = [...u._getContext().getAssociationMap()[a._attributes.__id]].filter(
3273
3277
  (v) => v._attributes.rule === "Command" || v._attributes.rule === "FacadeCommand"
3274
3278
  );
3275
- for (const v of h) {
3276
- const y = t(v);
3279
+ for (const v of m) {
3280
+ const C = t(v);
3277
3281
  p.push(""), p.push(
3278
- ` public void handle${y}(@${d} ${y} ${N.lowerFirst(
3279
- y
3282
+ ` public void handle${C}(@${f} ${C} ${$.lowerFirst(
3283
+ C
3280
3284
  )}) {`
3281
3285
  ), p.push(" // HACK need implement"), p.push(" }");
3282
3286
  }
@@ -3284,7 +3288,7 @@ const D = tt.JavaGeneratorAddition, oi = Zt.createHotSwapPlugin(() => {
3284
3288
  }
3285
3289
  i.push({
3286
3290
  type: "AggImpl",
3287
- imports: u,
3291
+ imports: l,
3288
3292
  content: p.join(`
3289
3293
  `)
3290
3294
  });
@@ -3295,45 +3299,45 @@ const D = tt.JavaGeneratorAddition, oi = Zt.createHotSwapPlugin(() => {
3295
3299
  (a) => {
3296
3300
  const c = /* @__PURE__ */ new Set();
3297
3301
  c.add(o.value.nonNullAnnotation);
3298
- const l = o.value.nonNullAnnotation.split(".").pop(), d = o.value.additions, f = t(a), i = [], u = Object.values(a.inner);
3299
- for (const p of u)
3302
+ const u = o.value.nonNullAnnotation.split(".").pop(), f = o.value.additions, d = t(a), i = [], l = Object.values(a.inner);
3303
+ for (const p of l)
3300
3304
  c.add(
3301
3305
  `${o.value.namespace}.${o.value.moduleName}.${e}.${t(p)}`
3302
3306
  );
3303
- if (d.has(D.RecordVakueObject)) {
3304
- d.has(D.LombokBuilder) && i.push("@lombok.Builder(toBuilder = true)"), i.push(`public record ${f}(`);
3307
+ if (f.has(A.RecordVakueObject)) {
3308
+ f.has(A.LombokBuilder) && i.push("@lombok.Builder(toBuilder = true)"), i.push(`public record ${d}(`);
3305
3309
  const p = [];
3306
- for (const _ of u) {
3307
- const g = t(_);
3308
- p.push(` @${l}
3309
- ${g} ${N.lowerFirst(g)}`);
3310
+ for (const _ of l) {
3311
+ const h = t(_);
3312
+ p.push(` @${u}
3313
+ ${h} ${$.lowerFirst(h)}`);
3310
3314
  }
3311
3315
  i.push(p.join(`,
3312
- `)), i.push(") {"), i.push(` public ${f} {`), i.push(" // HACK check value"), i.push(" }"), i.push("}");
3313
- } else if (d.has(D.Lombok)) {
3314
- i.push("@lombok.AllArgsConstructor"), i.push("@lombok.Getter"), d.has(D.LombokBuilder) && i.push("@lombok.Builder(toBuilder = true)"), i.push(`public class ${f} {`);
3315
- for (const p of u) {
3316
+ `)), i.push(") {"), i.push(` public ${d} {`), i.push(" // HACK check value"), i.push(" }"), i.push("}");
3317
+ } else if (f.has(A.Lombok)) {
3318
+ i.push("@lombok.AllArgsConstructor"), i.push("@lombok.Getter"), f.has(A.LombokBuilder) && i.push("@lombok.Builder(toBuilder = true)"), i.push(`public class ${d} {`);
3319
+ for (const p of l) {
3316
3320
  const _ = t(p);
3317
- i.push(` @${l}`), i.push(` private final ${_} ${N.lowerFirst(_)};`);
3321
+ i.push(` @${u}`), i.push(` private final ${_} ${$.lowerFirst(_)};`);
3318
3322
  }
3319
3323
  i.push("}");
3320
3324
  } else {
3321
- i.push(`public class ${f} {`);
3322
- for (const g of u) {
3323
- const m = t(g);
3324
- i.push(` @${l}`), i.push(` private final ${m} ${N.lowerFirst(m)};`);
3325
+ i.push(`public class ${d} {`);
3326
+ for (const h of l) {
3327
+ const g = t(h);
3328
+ i.push(` @${u}`), i.push(` private final ${g} ${$.lowerFirst(g)};`);
3325
3329
  }
3326
3330
  i.push("");
3327
3331
  const p = [], _ = [];
3328
- for (const g of u) {
3329
- const m = t(g);
3330
- p.push(`@${l} ${s(c, g)} ${N.lowerFirst(m)}`), _.push(`this.${N.lowerFirst(m)} = ${N.lowerFirst(m)};`);
3332
+ for (const h of l) {
3333
+ const g = t(h);
3334
+ p.push(`@${u} ${s(c, h)} ${$.lowerFirst(g)}`), _.push(`this.${$.lowerFirst(g)} = ${$.lowerFirst(g)};`);
3331
3335
  }
3332
- i.push(` public ${f}(${p.join(", ")}) {`), i.push(` ${_.join(`
3336
+ i.push(` public ${d}(${p.join(", ")}) {`), i.push(` ${_.join(`
3333
3337
  `)}`), i.push(" }");
3334
- for (const g of u) {
3335
- const m = t(g);
3336
- i.push(""), i.push(` public ${m} get${m} () {`), i.push(` return this.${N.lowerFirst(m)};`), i.push(" }");
3338
+ for (const h of l) {
3339
+ const g = t(h);
3340
+ i.push(""), i.push(` public ${g} get${g} () {`), i.push(` return this.${$.lowerFirst(g)};`), i.push(" }");
3337
3341
  }
3338
3342
  i.push("}");
3339
3343
  }
@@ -3348,115 +3352,115 @@ const D = tt.JavaGeneratorAddition, oi = Zt.createHotSwapPlugin(() => {
3348
3352
  }
3349
3353
  ), n.commands._setReadModelCodeProvider(() => []), n.commands._setCodeFileProvider(() => {
3350
3354
  const a = [], c = {};
3351
- function l(p) {
3355
+ function u(p) {
3352
3356
  for (const _ of Object.values(p)) {
3353
- const g = [...o.value.namespace.split(/\./), o.value.moduleName, e], m = t(_) + ".java";
3354
- if (c[`${g}/${m}`] === !0)
3357
+ const h = [...o.value.namespace.split(/\./), o.value.moduleName, e], g = t(_) + ".java";
3358
+ if (c[`${h.join("/")}/${g}`] === !0)
3355
3359
  continue;
3356
- const h = n.commands._genInfoCode(_);
3357
- if (h.length === 0)
3360
+ const m = n.commands._genInfoCode(_);
3361
+ if (m.length === 0)
3358
3362
  continue;
3359
- const v = new R(g, m);
3363
+ const v = new y(h, g);
3360
3364
  v.appendContentln(`package ${o.value.namespace}.${o.value.moduleName}.${e};`), v.appendContentln("");
3361
- for (const y of h[0].imports)
3362
- v.appendContentln(`import ${y};`);
3363
- v.appendContentln(""), v.appendContentln(h[0].content), a.push(v), c[`${g}/${m}`] = !0;
3365
+ for (const C of m[0].imports)
3366
+ v.appendContentln(`import ${C};`);
3367
+ v.appendContentln(""), v.appendContentln(m[0].content), a.push(v), c[`${h.join("/")}/${g}`] = !0;
3364
3368
  }
3365
3369
  }
3366
- const d = n.states.designer.value._getContext().getCommands();
3367
- for (const p of d) {
3368
- l(p.inner);
3369
- const _ = n.commands._genCommandCode(p), g = [...o.value.namespace.split(/\./), o.value.moduleName];
3370
- _.forEach((m) => {
3371
- if (m.type === "Command") {
3372
- const h = new R(g, t(p) + ".java");
3373
- h.appendContentln(`package ${o.value.namespace}.${o.value.moduleName};`), h.appendContentln(""), h.addImports(m.imports);
3374
- for (const v of m.imports)
3375
- h.appendContentln(`import ${v};`);
3376
- h.appendContentln(""), h.appendContentln(m.content), a.push(h);
3377
- } else if (m.type === "CommandHandler") {
3378
- const h = new R(g, t(p) + "Handler.java");
3379
- h.appendContentln(`package ${o.value.namespace}.${o.value.moduleName};`), h.appendContentln(""), h.addImports(m.imports);
3380
- for (const v of m.imports)
3381
- h.appendContentln(`import ${v};`);
3382
- h.appendContentln(""), h.appendContentln(m.content), a.push(h);
3370
+ const f = n.states.designer.value._getContext().getCommands();
3371
+ for (const p of f) {
3372
+ u(p.inner);
3373
+ const _ = n.commands._genCommandCode(p), h = [...o.value.namespace.split(/\./), o.value.moduleName];
3374
+ _.forEach((g) => {
3375
+ if (g.type === "Command") {
3376
+ const m = new y(h, t(p) + ".java");
3377
+ m.appendContentln(`package ${o.value.namespace}.${o.value.moduleName};`), m.appendContentln(""), m.addImports(g.imports);
3378
+ for (const v of g.imports)
3379
+ m.appendContentln(`import ${v};`);
3380
+ m.appendContentln(""), m.appendContentln(g.content), a.push(m);
3381
+ } else if (g.type === "CommandHandler") {
3382
+ const m = new y(h, t(p) + "Handler.java");
3383
+ m.appendContentln(`package ${o.value.namespace}.${o.value.moduleName};`), m.appendContentln(""), m.addImports(g.imports);
3384
+ for (const v of g.imports)
3385
+ m.appendContentln(`import ${v};`);
3386
+ m.appendContentln(""), m.appendContentln(g.content), a.push(m);
3383
3387
  } else
3384
- isNever(m.type);
3388
+ isNever(g.type);
3385
3389
  });
3386
3390
  }
3387
- const f = n.states.designer.value._getContext().getFacadeCommands();
3388
- for (const p of f) {
3389
- l(p.inner);
3390
- const _ = n.commands._genFacadeCommandCode(p), g = [...o.value.namespace.split(/\./), o.value.moduleName];
3391
- _.forEach((m) => {
3392
- if (m.type === "FacadeCommand") {
3393
- const h = new R(g, t(p) + ".java");
3394
- h.appendContentln(`package ${o.value.namespace}.${o.value.moduleName};`), h.appendContentln(""), h.addImports(m.imports);
3395
- for (const v of m.imports)
3396
- h.appendContentln(`import ${v};`);
3397
- h.appendContentln(""), h.appendContentln(m.content), a.push(h);
3391
+ const d = n.states.designer.value._getContext().getFacadeCommands();
3392
+ for (const p of d) {
3393
+ u(p.inner);
3394
+ const _ = n.commands._genFacadeCommandCode(p), h = [...o.value.namespace.split(/\./), o.value.moduleName];
3395
+ _.forEach((g) => {
3396
+ if (g.type === "FacadeCommand") {
3397
+ const m = new y(h, t(p) + ".java");
3398
+ m.appendContentln(`package ${o.value.namespace}.${o.value.moduleName};`), m.appendContentln(""), m.addImports(g.imports);
3399
+ for (const v of g.imports)
3400
+ m.appendContentln(`import ${v};`);
3401
+ m.appendContentln(""), m.appendContentln(g.content), a.push(m);
3398
3402
  } else
3399
- isNever(m.type);
3403
+ isNever(g.type);
3400
3404
  });
3401
3405
  }
3402
3406
  const i = n.states.designer.value._getContext().getAggs();
3403
3407
  for (const p of i) {
3404
- l(p.inner);
3405
- const _ = n.commands._genAggCode(p), g = [...o.value.namespace.split(/\./), o.value.moduleName];
3406
- _.forEach((m) => {
3407
- if (m.type === "Agg") {
3408
- const h = new R(g, t(p) + ".java");
3409
- h.appendContentln(`package ${o.value.namespace}.${o.value.moduleName};`), h.appendContentln(""), h.addImports(m.imports);
3410
- for (const v of m.imports)
3411
- h.appendContentln(`import ${v};`);
3412
- h.appendContentln(""), h.appendContentln(m.content), a.push(h);
3413
- } else if (m.type === "AggImpl") {
3414
- const h = new R(g, t(p) + "Impl.java");
3415
- h.appendContentln(`package ${o.value.namespace}.${o.value.moduleName};`), h.appendContentln(""), h.addImports(m.imports);
3416
- for (const v of m.imports)
3417
- h.appendContentln(`import ${v};`);
3418
- h.appendContentln(""), h.appendContentln(m.content), a.push(h);
3408
+ u(p.inner);
3409
+ const _ = n.commands._genAggCode(p), h = [...o.value.namespace.split(/\./), o.value.moduleName];
3410
+ _.forEach((g) => {
3411
+ if (g.type === "Agg") {
3412
+ const m = new y(h, t(p) + ".java");
3413
+ m.appendContentln(`package ${o.value.namespace}.${o.value.moduleName};`), m.appendContentln(""), m.addImports(g.imports);
3414
+ for (const v of g.imports)
3415
+ m.appendContentln(`import ${v};`);
3416
+ m.appendContentln(""), m.appendContentln(g.content), a.push(m);
3417
+ } else if (g.type === "AggImpl") {
3418
+ const m = new y(h, t(p) + "Impl.java");
3419
+ m.appendContentln(`package ${o.value.namespace}.${o.value.moduleName};`), m.appendContentln(""), m.addImports(g.imports);
3420
+ for (const v of g.imports)
3421
+ m.appendContentln(`import ${v};`);
3422
+ m.appendContentln(""), m.appendContentln(g.content), a.push(m);
3419
3423
  } else
3420
- isNever(m.type);
3424
+ isNever(g.type);
3421
3425
  });
3422
3426
  }
3423
- const u = n.states.designer.value._getContext().getEvents();
3424
- for (const p of u) {
3425
- l(p.inner);
3426
- const _ = n.commands._genEventCode(p), g = [...o.value.namespace.split(/\./), o.value.moduleName];
3427
- _.forEach((m) => {
3428
- const h = new R(g, t(p) + ".java");
3429
- h.appendContentln(`package ${o.value.namespace}.${o.value.moduleName};`), h.appendContentln(""), h.addImports(m.imports);
3430
- for (const v of m.imports)
3431
- h.appendContentln(`import ${v};`);
3432
- h.appendContentln(""), h.appendContentln(m.content), a.push(h);
3427
+ const l = n.states.designer.value._getContext().getEvents();
3428
+ for (const p of l) {
3429
+ u(p.inner);
3430
+ const _ = n.commands._genEventCode(p), h = [...o.value.namespace.split(/\./), o.value.moduleName];
3431
+ _.forEach((g) => {
3432
+ const m = new y(h, t(p) + ".java");
3433
+ m.appendContentln(`package ${o.value.namespace}.${o.value.moduleName};`), m.appendContentln(""), m.addImports(g.imports);
3434
+ for (const v of g.imports)
3435
+ m.appendContentln(`import ${v};`);
3436
+ m.appendContentln(""), m.appendContentln(g.content), a.push(m);
3433
3437
  });
3434
3438
  }
3435
3439
  return a;
3436
3440
  });
3437
3441
  }
3438
3442
  };
3439
- }), wt = nt.KotlinGeneratorAddition, si = Zt.createHotSwapPlugin(() => ({
3443
+ }), St = st.KotlinGeneratorAddition, ri = Te.createHotSwapPlugin(() => ({
3440
3444
  unmount({ api: e }) {
3441
3445
  e.commands.clearCaches(), e.commands._setCommandCodeProvider(() => []), e.commands._setFacadeCommandCodeProvider(() => []), e.commands._setAggCodeProvider(() => []), e.commands._setEventCodeProvider(() => []), e.commands._setReadModelCodeProvider(() => []), e.commands._setCodeFileProvider(() => []), e.commands.setContext({});
3442
3446
  },
3443
3447
  mount({ api: e }) {
3444
3448
  const t = "value", n = e.states.context;
3445
3449
  function o(r) {
3446
- return N.stringToUpperCamel(r._attributes.name);
3450
+ return $.stringToUpperCamel(r._attributes.name);
3447
3451
  }
3448
3452
  function s(r, a) {
3449
- const c = n.value.additions, l = N.stringToLowerSnake(a._attributes.name).replace(/_/, " ");
3450
- return /\b(time|timestamp|date|deadline|expire)\b/.test(l) ? c.has(wt.Timezone) ? (r.add("java.time.OffsetDateTime"), "OffsetDateTime") : (r.add("java.time.LocalDateTime"), "LocalDateTime") : /\b(enum|gender|sex|count|amount|num|number|flag|times)\b/.test(l) ? "Integer" : /\b(price)$/.test(l) ? (r.add("java.math.BigDecimal"), "BigDecimal") : /^(if|is)\b/.test(l) ? "Boolean" : Jn(a) && (a._attributes.type === "Id" || a._attributes.type === "Version") ? "Long" : "String";
3453
+ const c = n.value.additions, u = $.stringToLowerSnake(a._attributes.name).replace(/_/, " ");
3454
+ return /\b(time|timestamp|date|deadline|expire)\b/.test(u) ? c.has(St.Timezone) ? (r.add("java.time.OffsetDateTime"), "OffsetDateTime") : (r.add("java.time.LocalDateTime"), "LocalDateTime") : /\b(enum|gender|sex|count|amount|num|number|flag|times)\b/.test(u) ? "Integer" : /\b(price)$/.test(u) ? (r.add("java.math.BigDecimal"), "BigDecimal") : /^(if|is)\b/.test(u) ? "Boolean" : pt(a) && (a._attributes.type === "Id" || a._attributes.type === "Version") ? "Long" : "String";
3451
3455
  }
3452
3456
  e.commands._setInfoCodeProvider(
3453
3457
  (r) => {
3454
- const a = /* @__PURE__ */ new Set(), c = o(r), l = n.value.additions, d = [];
3455
- return l.has(wt.ValueClass) ? (a.add("kotlin.jvm.JvmInline"), d.push("@JvmInline"), d.push(`value class ${c}(val value: ${s(a, r)})`)) : d.push(`data class ${c}(val value: ${s(a, r)})`), [
3458
+ const a = /* @__PURE__ */ new Set(), c = o(r), u = n.value.additions, f = [];
3459
+ return u.has(St.ValueClass) ? (a.add("kotlin.jvm.JvmInline"), f.push("@JvmInline"), f.push(`value class ${c}(val value: ${s(a, r)})`)) : f.push(`data class ${c}(val value: ${s(a, r)})`), [
3456
3460
  {
3457
3461
  type: "Info",
3458
3462
  imports: a,
3459
- content: d.join(`
3463
+ content: f.join(`
3460
3464
  `)
3461
3465
  }
3462
3466
  ];
@@ -3465,37 +3469,37 @@ const D = tt.JavaGeneratorAddition, oi = Zt.createHotSwapPlugin(() => {
3465
3469
  (r) => {
3466
3470
  const a = [], c = n.value.additions;
3467
3471
  {
3468
- const l = /* @__PURE__ */ new Set(), d = o(r), f = [], i = Object.values(r.inner);
3472
+ const u = /* @__PURE__ */ new Set(), f = o(r), d = [], i = Object.values(r.inner);
3469
3473
  for (const p of i)
3470
- l.add(
3474
+ u.add(
3471
3475
  `${n.value.namespace}.${n.value.moduleName}.${t}.${o(p)}`
3472
3476
  );
3473
- const u = [];
3477
+ const l = [];
3474
3478
  for (const p of i) {
3475
3479
  const _ = o(p);
3476
- u.push(`val ${N.lowerFirst(_)}: ${_}`);
3480
+ l.push(`val ${$.lowerFirst(_)}: ${_}`);
3477
3481
  }
3478
- f.push(`data class ${d}(${u.join(", ")})`), a.push({
3482
+ d.push(`data class ${f}(${l.join(", ")})`), a.push({
3479
3483
  type: "Command",
3480
- imports: l,
3481
- content: f.join(`
3484
+ imports: u,
3485
+ content: d.join(`
3482
3486
  `)
3483
3487
  });
3484
3488
  }
3485
- if (!c.has(wt.CommandHandler))
3489
+ if (!c.has(St.CommandHandler))
3486
3490
  return a;
3487
3491
  {
3488
- const l = /* @__PURE__ */ new Set(), d = o(r), f = [];
3489
- f.push(`class ${d}Handler {`);
3492
+ const u = /* @__PURE__ */ new Set(), f = o(r), d = [];
3493
+ d.push(`class ${f}Handler {`);
3490
3494
  const i = [...e.states.designer.value._getContext().getAssociationMap()[r._attributes.__id]].filter(
3491
- (u) => u._attributes.rule === "Agg"
3495
+ (l) => l._attributes.rule === "Agg"
3492
3496
  );
3493
- for (const u of i)
3494
- l.add(`${n.value.namespace}.${n.value.moduleName}.${o(u)}`), f.push(` fun handle(command: ${d}): ${o(u)} {`), f.push(" // HACK Implement"), f.push(" }");
3495
- f.push("}"), a.push({
3497
+ for (const l of i)
3498
+ u.add(`${n.value.namespace}.${n.value.moduleName}.${o(l)}`), d.push(` fun handle(command: ${f}): ${o(l)} {`), d.push(" // HACK Implement"), d.push(" }");
3499
+ d.push("}"), a.push({
3496
3500
  type: "CommandHandler",
3497
- imports: l,
3498
- content: f.join(`
3501
+ imports: u,
3502
+ content: d.join(`
3499
3503
  `)
3500
3504
  });
3501
3505
  }
@@ -3503,161 +3507,549 @@ const D = tt.JavaGeneratorAddition, oi = Zt.createHotSwapPlugin(() => {
3503
3507
  }
3504
3508
  ), e.commands._setFacadeCommandCodeProvider(
3505
3509
  (r) => {
3506
- const a = /* @__PURE__ */ new Set(), c = o(r), l = [], d = Object.values(r.inner);
3507
- for (const i of d)
3510
+ const a = /* @__PURE__ */ new Set(), c = o(r), u = [], f = Object.values(r.inner);
3511
+ for (const i of f)
3508
3512
  a.add(
3509
3513
  `${n.value.namespace}.${n.value.moduleName}.${t}.${o(i)}`
3510
3514
  );
3511
- const f = [];
3512
- for (const i of d) {
3513
- const u = o(i);
3514
- f.push(`val ${N.lowerFirst(u)}: ${u}`);
3515
+ const d = [];
3516
+ for (const i of f) {
3517
+ const l = o(i);
3518
+ d.push(`val ${$.lowerFirst(l)}: ${l}`);
3515
3519
  }
3516
- return l.push(`data class ${c}(${f.join(", ")})`), [
3520
+ return u.push(`data class ${c}(${d.join(", ")})`), [
3517
3521
  {
3518
3522
  type: "FacadeCommand",
3519
3523
  imports: a,
3520
- content: l.join(`
3524
+ content: u.join(`
3521
3525
  `)
3522
3526
  }
3523
3527
  ];
3524
3528
  }
3525
3529
  ), e.commands._setAggCodeProvider((r) => {
3526
- const a = /* @__PURE__ */ new Set(), c = e.states.designer.value, l = o(r), d = [], f = Object.values(r.inner);
3527
- for (const _ of f)
3530
+ const a = /* @__PURE__ */ new Set(), c = e.states.designer.value, u = o(r), f = [], d = Object.values(r.inner);
3531
+ for (const _ of d)
3528
3532
  a.add(
3529
3533
  `${n.value.namespace}.${n.value.moduleName}.${t}.${o(_)}`
3530
3534
  );
3531
- const i = [], u = [...c._getContext().getAssociationMap()[r._attributes.__id]].filter((_) => _._attributes.rule === "Command" || _._attributes.rule === "FacadeCommand");
3532
- for (const _ of u) {
3533
- const g = o(_);
3534
- i.push(`fun handle(command: ${g})`);
3535
+ const i = [], l = [...c._getContext().getAssociationMap()[r._attributes.__id]].filter((_) => _._attributes.rule === "Command" || _._attributes.rule === "FacadeCommand");
3536
+ for (const _ of l) {
3537
+ const h = o(_);
3538
+ i.push(`fun handle(command: ${h})`);
3535
3539
  }
3536
- d.push(`interface ${l} {`), d.push(` ${i.join(`
3537
- `)}`), d.push("}"), d.push(""), d.push(`class ${l}Impl(`);
3540
+ f.push(`interface ${u} {`), f.push(` ${i.join(`
3541
+ `)}`), f.push("}"), f.push(""), f.push(`class ${u}Impl(`);
3538
3542
  const p = [];
3539
- for (const _ of f) {
3540
- const g = o(_);
3541
- p.push(`val ${N.lowerFirst(g)}: ${g}`);
3543
+ for (const _ of d) {
3544
+ const h = o(_);
3545
+ p.push(`val ${$.lowerFirst(h)}: ${h}`);
3542
3546
  }
3543
- d.push(` ${p.join(`,
3544
- `)}`), d.push(`): ${l} {`);
3545
- for (const _ of u) {
3546
- const g = o(_);
3547
- d.push(` override fun handle(command: ${g}) {`), d.push(" // HACK Implement"), d.push(" }");
3547
+ f.push(` ${p.join(`,
3548
+ `)}`), f.push(`): ${u} {`);
3549
+ for (const _ of l) {
3550
+ const h = o(_);
3551
+ f.push(` override fun handle(command: ${h}) {`), f.push(" // HACK Implement"), f.push(" }");
3548
3552
  }
3549
- return d.push("}"), [
3553
+ return f.push("}"), [
3550
3554
  {
3551
3555
  type: "Agg",
3552
3556
  imports: a,
3553
- content: d.join(`
3557
+ content: f.join(`
3554
3558
  `)
3555
3559
  }
3556
3560
  ];
3557
3561
  }), e.commands._setEventCodeProvider(
3558
3562
  (r) => {
3559
- const a = /* @__PURE__ */ new Set(), c = o(r), l = [], d = Object.values(r.inner);
3560
- for (const i of d)
3563
+ const a = /* @__PURE__ */ new Set(), c = o(r), u = [], f = Object.values(r.inner);
3564
+ for (const i of f)
3561
3565
  a.add(
3562
3566
  `${n.value.namespace}.${n.value.moduleName}.${t}.${o(i)}`
3563
3567
  );
3564
- const f = [];
3565
- for (const i of d) {
3566
- const u = o(i);
3567
- f.push(`val ${N.lowerFirst(u)}: ${u}`);
3568
+ const d = [];
3569
+ for (const i of f) {
3570
+ const l = o(i);
3571
+ d.push(`val ${$.lowerFirst(l)}: ${l}`);
3568
3572
  }
3569
- return l.push(`data class ${c}(${f.join(", ")})`), [
3573
+ return u.push(`data class ${c}(${d.join(", ")})`), [
3570
3574
  {
3571
3575
  type: "Event",
3572
3576
  imports: a,
3573
- content: l.join(`
3577
+ content: u.join(`
3574
3578
  `)
3575
3579
  }
3576
3580
  ];
3577
3581
  }
3578
3582
  ), e.commands._setReadModelCodeProvider(() => []), e.commands._setCodeFileProvider(() => {
3579
3583
  const r = [], a = {};
3580
- function c(u) {
3581
- for (const p of Object.values(u)) {
3582
- const _ = [...n.value.namespace.split(/\./), n.value.moduleName, t], g = o(p) + ".kt";
3583
- if (a[`${_}/${g}`] === !0)
3584
+ function c(l) {
3585
+ for (const p of Object.values(l)) {
3586
+ const _ = [...n.value.namespace.split(/\./), n.value.moduleName, t], h = o(p) + ".kt";
3587
+ if (a[`${_.join("/")}/${h}`] === !0)
3584
3588
  continue;
3585
- const m = e.commands._genInfoCode(p);
3586
- if (m.length === 0)
3589
+ const g = e.commands._genInfoCode(p);
3590
+ if (g.length === 0)
3587
3591
  continue;
3588
- const h = new R(_, g);
3589
- h.appendContentln(`package ${n.value.namespace}.${n.value.moduleName}.${t}`), h.appendContentln("");
3590
- for (const v of m[0].imports)
3591
- h.appendContentln(`import ${v}`);
3592
- h.appendContentln(""), h.appendContentln(m[0].content), r.push(h), a[`${_}/${g}`] = !0;
3592
+ const m = new y(_, h);
3593
+ m.appendContentln(`package ${n.value.namespace}.${n.value.moduleName}.${t}`), m.appendContentln("");
3594
+ for (const v of g[0].imports)
3595
+ m.appendContentln(`import ${v}`);
3596
+ m.appendContentln(""), m.appendContentln(g[0].content), r.push(m), a[`${_.join("/")}/${h}`] = !0;
3593
3597
  }
3594
3598
  }
3595
- const l = e.states.designer.value._getContext().getCommands();
3596
- for (const u of l) {
3597
- c(u.inner);
3598
- const p = e.commands._genCommandCode(u), _ = [...n.value.namespace.split(/\./), n.value.moduleName], g = new R(_, o(u) + ".kt"), m = [];
3599
- g.appendContentln(`package ${n.value.namespace}.${n.value.moduleName}`), g.appendContentln(""), p.forEach((h) => {
3600
- h.type === "Command" || h.type === "CommandHandler" ? (g.addImports(h.imports), m.push(h.content)) : isNever(h.type);
3599
+ const u = e.states.designer.value._getContext().getCommands();
3600
+ for (const l of u) {
3601
+ c(l.inner);
3602
+ const p = e.commands._genCommandCode(l), _ = [...n.value.namespace.split(/\./), n.value.moduleName], h = new y(_, o(l) + ".kt"), g = [];
3603
+ h.appendContentln(`package ${n.value.namespace}.${n.value.moduleName}`), h.appendContentln(""), p.forEach((m) => {
3604
+ m.type === "Command" || m.type === "CommandHandler" ? (h.addImports(m.imports), g.push(m.content)) : isNever(m.type);
3601
3605
  });
3602
- for (const h of g.getImports())
3603
- g.appendContentln(`import ${h}`);
3604
- g.appendContentln("");
3605
- for (const h of m)
3606
- g.appendContentln(h);
3607
- r.push(g);
3606
+ for (const m of h.getImports())
3607
+ h.appendContentln(`import ${m}`);
3608
+ h.appendContentln("");
3609
+ for (const m of g)
3610
+ h.appendContentln(m);
3611
+ r.push(h);
3608
3612
  }
3609
- const d = e.states.designer.value._getContext().getFacadeCommands();
3610
- for (const u of d) {
3611
- c(u.inner);
3612
- const p = e.commands._genFacadeCommandCode(u), _ = [...n.value.namespace.split(/\./), n.value.moduleName];
3613
- p.forEach((g) => {
3614
- if (g.type === "FacadeCommand") {
3615
- const m = new R(_, o(u) + ".kt");
3616
- m.appendContentln(`package ${n.value.namespace}.${n.value.moduleName}`), m.appendContentln(""), m.addImports(g.imports);
3617
- for (const h of g.imports)
3618
- m.appendContentln(`import ${h}`);
3619
- m.appendContentln(""), m.appendContentln(g.content), r.push(m);
3613
+ const f = e.states.designer.value._getContext().getFacadeCommands();
3614
+ for (const l of f) {
3615
+ c(l.inner);
3616
+ const p = e.commands._genFacadeCommandCode(l), _ = [...n.value.namespace.split(/\./), n.value.moduleName];
3617
+ p.forEach((h) => {
3618
+ if (h.type === "FacadeCommand") {
3619
+ const g = new y(_, o(l) + ".kt");
3620
+ g.appendContentln(`package ${n.value.namespace}.${n.value.moduleName}`), g.appendContentln(""), g.addImports(h.imports);
3621
+ for (const m of h.imports)
3622
+ g.appendContentln(`import ${m}`);
3623
+ g.appendContentln(""), g.appendContentln(h.content), r.push(g);
3620
3624
  } else
3621
- isNever(g.type);
3625
+ isNever(h.type);
3622
3626
  });
3623
3627
  }
3624
- const f = e.states.designer.value._getContext().getAggs();
3625
- for (const u of f) {
3626
- c(u.inner);
3627
- const p = e.commands._genAggCode(u), _ = [...n.value.namespace.split(/\./), n.value.moduleName], g = new R(_, o(u) + ".kt"), m = [];
3628
- p.forEach((h) => {
3629
- h.type === "Agg" || h.type === "AggImpl" ? (g.addImports(h.imports), m.push(h.content)) : isNever(h.type);
3628
+ const d = e.states.designer.value._getContext().getAggs();
3629
+ for (const l of d) {
3630
+ c(l.inner);
3631
+ const p = e.commands._genAggCode(l), _ = [...n.value.namespace.split(/\./), n.value.moduleName], h = new y(_, o(l) + ".kt"), g = [];
3632
+ h.appendContentln(`package ${n.value.namespace}.${n.value.moduleName}`), h.appendContentln(""), p.forEach((m) => {
3633
+ m.type === "Agg" || m.type === "AggImpl" ? (h.addImports(m.imports), g.push(m.content)) : isNever(m.type);
3630
3634
  });
3631
- for (const h of g.getImports())
3632
- g.appendContentln(`import ${h}`);
3633
- g.appendContentln("");
3634
- for (const h of m)
3635
- g.appendContentln(h);
3636
- r.push(g);
3635
+ for (const m of h.getImports())
3636
+ h.appendContentln(`import ${m}`);
3637
+ h.appendContentln("");
3638
+ for (const m of g)
3639
+ h.appendContentln(m);
3640
+ r.push(h);
3637
3641
  }
3638
3642
  const i = e.states.designer.value._getContext().getEvents();
3639
- for (const u of i) {
3640
- c(u.inner);
3641
- const p = e.commands._genEventCode(u), _ = [...n.value.namespace.split(/\./), n.value.moduleName];
3642
- p.forEach((g) => {
3643
- if (g.type === "Event") {
3644
- const m = new R(_, o(u) + ".kt");
3645
- m.appendContentln(`package ${n.value.namespace}.${n.value.moduleName}`), m.appendContentln(""), m.addImports(g.imports);
3646
- for (const h of g.imports)
3647
- m.appendContentln(`import ${h}`);
3648
- m.appendContentln(""), m.appendContentln(g.content), r.push(m);
3643
+ for (const l of i) {
3644
+ c(l.inner);
3645
+ const p = e.commands._genEventCode(l), _ = [...n.value.namespace.split(/\./), n.value.moduleName];
3646
+ p.forEach((h) => {
3647
+ if (h.type === "Event") {
3648
+ const g = new y(_, o(l) + ".kt");
3649
+ g.appendContentln(`package ${n.value.namespace}.${n.value.moduleName}`), g.appendContentln(""), g.addImports(h.imports);
3650
+ for (const m of h.imports)
3651
+ g.appendContentln(`import ${m}`);
3652
+ g.appendContentln(""), g.appendContentln(h.content), r.push(g);
3649
3653
  } else
3650
- isNever(g.type);
3654
+ isNever(h.type);
3651
3655
  });
3652
3656
  }
3653
3657
  return r;
3654
3658
  });
3655
3659
  }
3656
- }));
3660
+ })), ii = Te.createHotSwapPlugin(() => ({
3661
+ unmount({ api: e }) {
3662
+ e.commands.clearCaches(), e.commands._setCommandCodeProvider(() => []), e.commands._setFacadeCommandCodeProvider(() => []), e.commands._setAggCodeProvider(() => []), e.commands._setEventCodeProvider(() => []), e.commands._setReadModelCodeProvider(() => []), e.commands._setCodeFileProvider(() => []), e.commands.setContext({});
3663
+ },
3664
+ mount({ api: e }) {
3665
+ const t = e.states.context;
3666
+ function n(r) {
3667
+ return $.stringToUpperCamel(r._attributes.name);
3668
+ }
3669
+ function o(r) {
3670
+ return $.stringToLowerCamel(r._attributes.name);
3671
+ }
3672
+ function s(r, a) {
3673
+ const c = $.stringToLowerSnake(a._attributes.name).replace(/_/, " ");
3674
+ return /\b(time|timestamp|date|deadline|expire)\b/.test(c) ? (r.add("time"), "time.Time") : /\b(enum|gender|sex|count|amount|num|number|flag|times)\b/.test(c) ? "int" : /\b(price)$/.test(c) ? "string" : /^(if|is)\b/.test(c) ? "bool" : pt(a) && (a._attributes.type === "Id" || a._attributes.type === "Version") ? "int64" : "string";
3675
+ }
3676
+ e.commands._setInfoCodeProvider(
3677
+ (r) => {
3678
+ const a = /* @__PURE__ */ new Set(), c = [];
3679
+ return c.push(`type ${n(r)} struct {`), c.push(` value ${s(a, r)}`), c.push("}"), c.push(""), c.push(
3680
+ `func New${n(r)}(value ${s(a, r)}) ${n(
3681
+ r
3682
+ )} {`
3683
+ ), c.push(" // HACK check value"), c.push(` return ${n(r)}{value}`), c.push("}"), c.push(
3684
+ `func (${o(r)} ${n(r)}) GetValue() ${s(
3685
+ a,
3686
+ r
3687
+ )} {`
3688
+ ), c.push(` return ${o(r)}.value`), c.push("}"), [{ type: "Info", imports: a, content: c.join(`
3689
+ `) }];
3690
+ }
3691
+ ), e.commands._setCommandCodeProvider(
3692
+ (r) => {
3693
+ const a = n(r), c = o(r), u = /* @__PURE__ */ new Set(), f = [];
3694
+ f.push(`type ${a} struct {`);
3695
+ const d = Object.values(r.inner);
3696
+ for (const p of d)
3697
+ f.push(` ${o(p)} ${n(p)}`);
3698
+ f.push("}");
3699
+ for (const p of d)
3700
+ f.push(
3701
+ `func (${c} ${a}) Get${n(p)} () ${n(
3702
+ p
3703
+ )} {`
3704
+ ), f.push(` return ${c}.${o(p)}`), f.push("}");
3705
+ const i = [], l = [];
3706
+ for (const p of d)
3707
+ i.push(`${o(p)} ${n(p)}`), l.push(o(p));
3708
+ return f.push(`func New${a}(${i.join(", ")}) ${a} {`), f.push(" // HACK check value"), f.push(` return ${a}{`), f.push(` ${l.join(`,
3709
+ `)},`), f.push(" }"), f.push("}"), [{ type: "Command", imports: u, content: f.join(`
3710
+ `) }];
3711
+ }
3712
+ ), e.commands._setFacadeCommandCodeProvider(
3713
+ (r) => {
3714
+ const a = n(r), c = o(r), u = Object.values(r.inner), f = /* @__PURE__ */ new Set(), d = [];
3715
+ d.push(`type ${a} struct {`);
3716
+ for (const p of u)
3717
+ d.push(` ${o(p)} ${n(p)}`);
3718
+ d.push("}");
3719
+ for (const p of u)
3720
+ d.push(
3721
+ `func (${c} ${a}) Get${n(p)} () ${n(
3722
+ p
3723
+ )} {`
3724
+ ), d.push(` return ${c}.${o(p)}`), d.push("}");
3725
+ const i = [], l = [];
3726
+ for (const p of u)
3727
+ i.push(`${o(p)} ${n(p)}`), l.push(o(p));
3728
+ return d.push(`func New${a}(${i.join(", ")}) ${a} {`), d.push(" // HACK check value"), d.push(` return ${a}{`), d.push(` ${l.join(`,
3729
+ `)},`), d.push(" }"), d.push("}"), [
3730
+ {
3731
+ type: "FacadeCommand",
3732
+ imports: f,
3733
+ content: d.join(`
3734
+ `)
3735
+ }
3736
+ ];
3737
+ }
3738
+ ), e.commands._setAggCodeProvider((r) => {
3739
+ const a = e.states.designer.value, c = n(r), u = o(r), f = Object.values(r.inner), d = /* @__PURE__ */ new Set(), i = [];
3740
+ i.push(`type ${c} struct {`);
3741
+ for (const h of f)
3742
+ i.push(` ${o(h)} ${n(h)}`);
3743
+ i.push("}");
3744
+ for (const h of f)
3745
+ i.push(
3746
+ `func (${u} ${c}) Get${n(h)} () ${n(h)} {`
3747
+ ), i.push(` return ${u}.${o(h)}`), i.push("}");
3748
+ const l = [], p = [];
3749
+ for (const h of f)
3750
+ l.push(`${o(h)} ${n(h)}`), p.push(o(h));
3751
+ i.push(`func New${c}(${l.join(", ")}) ${c} {`), i.push(" // HACK check value"), i.push(` return ${c}{`), i.push(` ${p.join(`,
3752
+ `)},`), i.push(" }"), i.push("}"), i.push("");
3753
+ const _ = [...a._getContext().getAssociationMap()[r._attributes.__id]].filter((h) => h._attributes.rule === "Command" || h._attributes.rule === "FacadeCommand");
3754
+ for (const h of _) {
3755
+ const g = n(h), m = o(h);
3756
+ i.push(`func (${u} ${c}) Handle${g} (${m} ${g}) {`), i.push(" // HACK implement"), i.push("}");
3757
+ }
3758
+ return [
3759
+ {
3760
+ type: "Agg",
3761
+ imports: d,
3762
+ content: i.join(`
3763
+ `)
3764
+ }
3765
+ ];
3766
+ }), e.commands._setEventCodeProvider(
3767
+ (r) => {
3768
+ const a = [], c = /* @__PURE__ */ new Set(), u = Object.values(r.inner), f = n(r), d = o(r);
3769
+ a.push(`type ${f} struct {`);
3770
+ for (const p of u)
3771
+ a.push(` ${o(p)} ${n(p)}`);
3772
+ a.push("}");
3773
+ for (const p of u)
3774
+ a.push(
3775
+ `func (${d} ${f}) Get${n(p)} () ${n(
3776
+ p
3777
+ )} {`
3778
+ ), a.push(` return ${d}.${o(p)}`), a.push("}");
3779
+ const i = [], l = [];
3780
+ for (const p of u)
3781
+ i.push(`${o(p)} ${n(p)}`), l.push(o(p));
3782
+ return a.push(`func New${f}(${i.join(", ")}) ${f} {`), a.push(" // HACK check value"), a.push(` return ${f}{`), a.push(` ${l.join(`,
3783
+ `)},`), a.push(" }"), a.push("}"), [
3784
+ {
3785
+ type: "Event",
3786
+ imports: c,
3787
+ content: a.join(`
3788
+ `)
3789
+ }
3790
+ ];
3791
+ }
3792
+ ), e.commands._setCodeFileProvider(() => {
3793
+ const r = [], a = {}, c = [...t.value.namespace.split(/\./), t.value.moduleName], u = new y(c, `${t.value.moduleName}.go`), f = [], d = new y(c, `${t.value.moduleName}_value_object.go`), i = [];
3794
+ function l(m) {
3795
+ for (const v of Object.values(m)) {
3796
+ const C = n(v);
3797
+ if (a[`${c.join("/")}/${C}`] === !0)
3798
+ continue;
3799
+ const b = e.commands._genInfoCode(v);
3800
+ b.length !== 0 && (d.addImports(b[0].imports), i.push(b[0].content), i.push(""), a[`${c.join("/")}/${C}`] = !0);
3801
+ }
3802
+ }
3803
+ const p = e.states.designer.value._getContext().getCommands();
3804
+ for (const m of p) {
3805
+ l(m.inner);
3806
+ const v = e.commands._genCommandCode(m);
3807
+ for (const C of v)
3808
+ a[C.content] !== !0 && (u.addImports(C.imports), f.push(C.content));
3809
+ }
3810
+ const _ = e.states.designer.value._getContext().getFacadeCommands();
3811
+ for (const m of _) {
3812
+ l(m.inner);
3813
+ const v = e.commands._genFacadeCommandCode(m);
3814
+ for (const C of v)
3815
+ a[C.content] !== !0 && (u.addImports(C.imports), f.push(C.content));
3816
+ }
3817
+ const h = e.states.designer.value._getContext().getAggs();
3818
+ for (const m of h) {
3819
+ l(m.inner);
3820
+ const v = e.commands._genAggCode(m);
3821
+ for (const C of v)
3822
+ a[C.content] !== !0 && (u.addImports(C.imports), f.push(C.content));
3823
+ }
3824
+ const g = e.states.designer.value._getContext().getEvents();
3825
+ for (const m of g) {
3826
+ l(m.inner);
3827
+ const v = e.commands._genEventCode(m);
3828
+ for (const C of v)
3829
+ a[C.content] !== !0 && (u.addImports(C.imports), f.push(C.content));
3830
+ }
3831
+ return u.appendContentln(`package ${t.value.moduleName}`), u.appendContentln(""), u.getImports().length > 0 && (u.appendContentln("import ("), u.appendContentln(` ${[...u.getImports()].join(`
3832
+ `)}`), u.appendContentln(")")), u.appendContentln(f.join(`
3833
+ `)), d.appendContentln(`package ${t.value.moduleName}`), d.appendContentln(""), d.getImports().length > 0 && (d.appendContentln("import ("), d.appendContentln(` ${[...d.getImports()].map((m) => `"${m}"`).join(`
3834
+ `)}`), d.appendContentln(")"), d.appendContentln("")), d.appendContentln(i.join(`
3835
+ `)), r.push(u), r.push(d), r;
3836
+ });
3837
+ }
3838
+ })), de = rt.CSharpGeneratorAddition, ai = Te.createHotSwapPlugin(() => {
3839
+ const e = " ";
3840
+ function t(n, o = 1) {
3841
+ return n.split(`
3842
+ `).map((s) => e.repeat(o) + s).join(`
3843
+ `);
3844
+ }
3845
+ return {
3846
+ unmount({ api: n }) {
3847
+ n.commands.clearCaches(), n.commands._setCommandCodeProvider(() => []), n.commands._setFacadeCommandCodeProvider(() => []), n.commands._setAggCodeProvider(() => []), n.commands._setEventCodeProvider(() => []), n.commands._setReadModelCodeProvider(() => []), n.commands._setCodeFileProvider(() => []), n.commands.setContext({});
3848
+ },
3849
+ mount({ api: n }) {
3850
+ const o = n.states.context;
3851
+ function s(c) {
3852
+ return $.stringToUpperCamel(c._attributes.name);
3853
+ }
3854
+ function r(c) {
3855
+ return c.has(de.RecordStruct) ? " struct" : "";
3856
+ }
3857
+ function a(c, u) {
3858
+ const f = o.value.additions, d = $.stringToLowerSnake(u._attributes.name).replace(/_/, " ");
3859
+ return /\b(time|timestamp|date|deadline|expire)\b/.test(d) ? f.has(de.Timezone) ? "System.DateTimeOffset" : "System.DateTime" : /\b(enum|gender|sex|count|amount|num|number|flag|times)\b/.test(d) ? "int" : /\b(price)$/.test(d) ? "decimal" : /^(if|is)\b/.test(d) ? "bool" : pt(u) && (u._attributes.type === "Id" || u._attributes.type === "Version") ? "long" : "string";
3860
+ }
3861
+ n.commands._setInfoCodeProvider(
3862
+ (c) => {
3863
+ const u = o.value.additions, f = /* @__PURE__ */ new Set(), d = [];
3864
+ return d.push(
3865
+ `public record${r(u)} ${s(c)}(${a(
3866
+ f,
3867
+ c
3868
+ )} value);`
3869
+ ), [
3870
+ {
3871
+ type: "Info",
3872
+ content: d.join(`
3873
+ `),
3874
+ imports: f
3875
+ }
3876
+ ];
3877
+ }
3878
+ ), n.commands._setCommandCodeProvider(
3879
+ (c) => {
3880
+ const u = [], f = o.value.additions, d = /* @__PURE__ */ new Set(), i = s(c);
3881
+ {
3882
+ const l = [], p = Object.values(c.inner), _ = f.has(de.CommandInterface) ? ` : ${o.value.commandInterface}` : "";
3883
+ l.push(`public record${r(f)} ${i}${_}`), l.push("(");
3884
+ const h = [];
3885
+ for (const g of p) {
3886
+ const m = s(g);
3887
+ h.push(` ${m} ${$.upperFirst(m)}`);
3888
+ }
3889
+ l.push(` ${h.join(`,
3890
+ `)}`), l.push(");"), u.push({
3891
+ type: "Command",
3892
+ content: l.join(`
3893
+ `),
3894
+ imports: d
3895
+ });
3896
+ }
3897
+ {
3898
+ const l = f.has(de.CommandHandlerInterface) ? ` : ${o.value.commandHandlerInterface}` : "", p = [];
3899
+ p.push(`public class ${i}Handler${l}`), p.push("{"), p.push(` public void Handle(${i} command)`), p.push(" {"), p.push(" // HACK implement"), p.push(" }"), p.push("}"), u.push({
3900
+ type: "CommandHandler",
3901
+ content: p.join(`
3902
+ `),
3903
+ imports: d
3904
+ });
3905
+ }
3906
+ return u;
3907
+ }
3908
+ ), n.commands._setAggCodeProvider(
3909
+ (c) => {
3910
+ const u = [], f = n.states.designer.value, d = o.value.additions;
3911
+ {
3912
+ const i = /* @__PURE__ */ new Set(), l = [], p = d.has(de.AggInterface) ? ` : ${o.value.aggInterface}` : "";
3913
+ l.push(`public interface I${s(c)}${p}`), l.push("{");
3914
+ const _ = [], h = [...f._getContext().getAssociationMap()[c._attributes.__id]].filter((g) => g._attributes.rule === "Command" || g._attributes.rule === "FacadeCommand");
3915
+ for (const g of h) {
3916
+ const m = s(g);
3917
+ _.push(` void Handle${m}(${m} command);`);
3918
+ }
3919
+ l.push(` ${_.join(`
3920
+
3921
+ `)}`), l.push("}"), u.push({
3922
+ type: "Agg",
3923
+ content: l.join(`
3924
+ `),
3925
+ imports: i
3926
+ });
3927
+ }
3928
+ {
3929
+ const i = /* @__PURE__ */ new Set(), l = [], p = s(c);
3930
+ l.push(`public class ${p}: I${p}`), l.push("{");
3931
+ const _ = [...f._getContext().getAssociationMap()[c._attributes.__id]].filter((g) => g._attributes.rule === "Command" || g._attributes.rule === "FacadeCommand");
3932
+ for (const g of _) {
3933
+ const m = s(g);
3934
+ l.push(` ${m} ${$.lowerFirst(m)} { get; private set; }`), l.push("");
3935
+ }
3936
+ const h = [];
3937
+ for (const g of _) {
3938
+ const m = s(g);
3939
+ h.push(`public void Handle${m}(${m} command)`), h.push("{"), h.push(" // HACK implement"), h.push("}"), h.push("");
3940
+ }
3941
+ l.push(` ${h.join(`
3942
+ `)}`), u.push({
3943
+ type: "AggImpl",
3944
+ content: l.join(`
3945
+ `),
3946
+ imports: i
3947
+ });
3948
+ }
3949
+ return u;
3950
+ }
3951
+ ), n.commands._setEventCodeProvider(
3952
+ (c) => {
3953
+ const u = o.value.additions, f = s(c), d = /* @__PURE__ */ new Set(), i = u.has(de.EventInterface) ? ` : ${o.value.eventInterface}` : "", l = Object.values(c.inner), p = [];
3954
+ p.push(`public record${r(u)} ${f}${i}`), p.push("(");
3955
+ const _ = [];
3956
+ for (const h of l) {
3957
+ const g = s(h);
3958
+ _.push(` ${g} ${$.upperFirst(g)}`);
3959
+ }
3960
+ return p.push(` ${_.join(`,
3961
+ `)}`), p.push(");"), [
3962
+ {
3963
+ type: "Event",
3964
+ content: p.join(`
3965
+ `),
3966
+ imports: d
3967
+ }
3968
+ ];
3969
+ }
3970
+ ), n.commands._setReadModelCodeProvider(() => []), n.commands._setCodeFileProvider(() => {
3971
+ const c = [], u = {}, f = [...o.value.namespace.split(/\./), $.stringToUpperCamel(o.value.moduleName)];
3972
+ function d(h) {
3973
+ for (const g of Object.values(h)) {
3974
+ const m = s(g) + ".cs";
3975
+ if (u[`${f.join("/")}/${m}`] === !0)
3976
+ continue;
3977
+ const v = n.commands._genInfoCode(g);
3978
+ if (v.length === 0)
3979
+ continue;
3980
+ const C = new y(f, m);
3981
+ for (const b of v[0].imports)
3982
+ C.appendContentln(`using ${b};`);
3983
+ C.appendContentln(""), C.appendContentln(
3984
+ `namespace ${o.value.namespace}.${$.stringToUpperCamel(o.value.moduleName)}`
3985
+ ), C.appendContentln("{"), C.appendContentln(t(v[0].content)), C.appendContentln("}"), c.push(C), u[`${f.join("/")}/${m}`] = !0;
3986
+ }
3987
+ }
3988
+ const i = n.states.designer.value._getContext().getCommands();
3989
+ for (const h of i) {
3990
+ d(h.inner);
3991
+ const g = s(h) + ".cs", m = n.commands._genCommandCode(h), v = new y(f, g);
3992
+ for (const C of m)
3993
+ if (C.type === "Command") {
3994
+ v.addImports(C.imports);
3995
+ for (const b of C.imports)
3996
+ v.appendContentln(`using ${b};`);
3997
+ v.appendContentln(""), v.appendContentln(
3998
+ `namespace ${o.value.namespace}.${$.stringToUpperCamel(o.value.moduleName)}`
3999
+ ), v.appendContentln("{"), v.appendContentln(t(C.content)), v.appendContentln("}");
4000
+ }
4001
+ c.push(v);
4002
+ }
4003
+ const l = n.states.designer.value._getContext().getFacadeCommands();
4004
+ for (const h of l) {
4005
+ d(h.inner);
4006
+ const g = s(h) + ".cs", m = n.commands._genFacadeCommandCode(h), v = new y(f, g);
4007
+ v.addImports(m[0].imports);
4008
+ for (const C of m[0].imports)
4009
+ v.appendContentln(`using ${C};`);
4010
+ v.appendContentln(""), v.appendContentln(
4011
+ `namespace ${o.value.namespace}.${$.stringToUpperCamel(o.value.moduleName)}`
4012
+ ), v.appendContentln("{"), v.appendContentln(t(m[0].content)), v.appendContentln("}"), c.push(v);
4013
+ }
4014
+ const p = n.states.designer.value._getContext().getAggs();
4015
+ for (const h of p) {
4016
+ d(h.inner);
4017
+ const g = n.commands._genAggCode(h), m = s(h) + ".cs", v = new y(f, m);
4018
+ for (const C of g) {
4019
+ v.addImports(C.imports);
4020
+ for (const b of C.imports)
4021
+ v.appendContentln(`using ${b};`);
4022
+ v.appendContentln("");
4023
+ }
4024
+ v.appendContentln(
4025
+ `namespace ${o.value.namespace}.${$.stringToUpperCamel(o.value.moduleName)}`
4026
+ ), v.appendContentln("{");
4027
+ for (const C of g)
4028
+ v.appendContentln(t(C.content));
4029
+ v.appendContentln("}"), c.push(v);
4030
+ }
4031
+ const _ = n.states.designer.value._getContext().getEvents();
4032
+ for (const h of _) {
4033
+ d(h.inner);
4034
+ const g = s(h) + ".cs", m = n.commands._genEventCode(h), v = new y(f, g);
4035
+ v.addImports(m[0].imports);
4036
+ for (const C of m[0].imports)
4037
+ v.appendContentln(`using ${C};`);
4038
+ v.appendContentln(""), v.appendContentln(
4039
+ `namespace ${o.value.namespace}.${$.stringToUpperCamel(o.value.moduleName)}`
4040
+ ), v.appendContentln("{"), v.appendContentln(t(m[0].content)), v.appendContentln("}"), c.push(v);
4041
+ }
4042
+ return c;
4043
+ });
4044
+ }
4045
+ };
4046
+ });
3657
4047
  export {
3658
- oi as GENERATOR_JAVA_PLUGIN,
3659
- si as GENERATOR_KOTLIN_PLUGIN,
3660
- Zt as GeneratorPliginHelper,
3661
- ni as define,
3662
- ti as useGeneratorAgg
4048
+ ai as GENERATOR_CSHARP_PLUGIN,
4049
+ ii as GENERATOR_GO_PLUGIN,
4050
+ si as GENERATOR_JAVA_PLUGIN,
4051
+ ri as GENERATOR_KOTLIN_PLUGIN,
4052
+ Te as GeneratorPliginHelper,
4053
+ oi as define,
4054
+ ni as useGeneratorAgg
3663
4055
  };