@ddd-tool/domain-designer-cli 0.1.0-beta.7 → 0.1.0-beta.8
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/bin/domain-designer-cli.cjs +1821 -1635
- package/package.json +1 -1
- package/templates/node_modules/version.txt +1 -1
- package/vite.config.ts +1 -10
|
@@ -13380,12 +13380,14 @@ var enDict = {
|
|
|
13380
13380
|
"question.subcommand.genCode.kotlin.additions.timezone": "Use [OffsetDateTime] to represent time",
|
|
13381
13381
|
"question.subcommand.genCode.java.additions": "Select additional options",
|
|
13382
13382
|
"question.subcommand.genCode.java.additions.springFramework": "Use spring container for development",
|
|
13383
|
+
"question.subcommand.genCode.java.additions.jpa": "Use jpa for persistence",
|
|
13383
13384
|
"question.subcommand.genCode.java.additions.lombok": "Use [@Getter, @RequiredArgsConstructor...] of lombok",
|
|
13384
13385
|
"question.subcommand.genCode.java.additions.lombokBuilder": "Use [@Builder] of lombok to avoid long parameter lists",
|
|
13385
13386
|
"question.subcommand.genCode.java.additions.commandHandler": "Generate CommandHandler for each command",
|
|
13386
|
-
"question.subcommand.genCode.java.additions.
|
|
13387
|
+
"question.subcommand.genCode.java.additions.recordValueObject": "Use [java record] to generate value object (JDK16+)",
|
|
13387
13388
|
"question.subcommand.genCode.java.additions.timezone": "Use [OffsetDateTime] to represent time",
|
|
13388
13389
|
"question.subcommand.genCode.java.nonNullAnnotation": "Select non-null annotation",
|
|
13390
|
+
"question.subcommand.genCode.java.idGenStrategy": "Select ID generation strategy",
|
|
13389
13391
|
"question.subcommand.genCode.additions.hint": "- Space to select. Return to submit",
|
|
13390
13392
|
"question.subcommand.init": "Initialize project",
|
|
13391
13393
|
"question.subcommand.updateWorkspace": "Update Workspace",
|
|
@@ -13428,12 +13430,14 @@ var zhDict = {
|
|
|
13428
13430
|
"question.subcommand.genCode.kotlin.additions.timezone": "\u4F7F\u7528\u5E26\u65F6\u533A\u7684OffsetDateTime\u8868\u793A\u65F6\u95F4",
|
|
13429
13431
|
"question.subcommand.genCode.java.additions": "\u9009\u62E9\u9644\u52A0\u9009\u9879",
|
|
13430
13432
|
"question.subcommand.genCode.java.additions.springFramework": "\u4F7F\u7528spring\u5BB9\u5668\u8FDB\u884C\u5F00\u53D1",
|
|
13433
|
+
"question.subcommand.genCode.java.additions.jpa": "\u4F7F\u7528jpa\u8FDB\u884C\u6301\u4E45\u5316",
|
|
13431
13434
|
"question.subcommand.genCode.java.additions.lombok": "\u4F7F\u7528lombok\u5E38\u7528\u7684Getter\u7B49\u6CE8\u89E3",
|
|
13432
13435
|
"question.subcommand.genCode.java.additions.lombokBuilder": "\u4F7F\u7528lombok\u7684Builder\u6CE8\u89E3\u907F\u514D\u957F\u53C2\u6570\u5217\u8868",
|
|
13433
13436
|
"question.subcommand.genCode.java.additions.commandHandler": "\u4E3A\u6BCF\u4E2A\u547D\u4EE4\u751F\u6210CommandHandler",
|
|
13434
|
-
"question.subcommand.genCode.java.additions.
|
|
13437
|
+
"question.subcommand.genCode.java.additions.recordValueObject": "\u4F7F\u7528record\u7C7B\u751F\u6210\u503C\u5BF9\u8C61\uFF08JDK16+\uFF09",
|
|
13435
13438
|
"question.subcommand.genCode.java.additions.timezone": "\u4F7F\u7528\u5E26\u65F6\u533A\u7684OffsetDateTime\u8868\u793A\u65F6\u95F4",
|
|
13436
13439
|
"question.subcommand.genCode.java.nonNullAnnotation": "\u9009\u62E9\u975E\u7A7A\u6CE8\u89E3",
|
|
13440
|
+
"question.subcommand.genCode.java.idGenStrategy": "\u9009\u62E9ID\u751F\u6210\u7B56\u7565",
|
|
13437
13441
|
"question.subcommand.genCode.additions.hint": "- \u7A7A\u683C\u52FE\u9009\uFF0C\u56DE\u8F66\u63D0\u4EA4",
|
|
13438
13442
|
"question.subcommand.init": "\u521D\u59CB\u5316\u9879\u76EE",
|
|
13439
13443
|
"question.subcommand.updateWorkspace": "\u66F4\u65B0\u4F9D\u8D56",
|
|
@@ -13507,7 +13511,7 @@ function onCancel() {
|
|
|
13507
13511
|
// src/utils/package-info.ts
|
|
13508
13512
|
var package_info_default = {
|
|
13509
13513
|
"name": "@ddd-tool/domain-designer-cli",
|
|
13510
|
-
"version": "0.1.0-beta.
|
|
13514
|
+
"version": "0.1.0-beta.8",
|
|
13511
13515
|
"private": true,
|
|
13512
13516
|
"type": "module",
|
|
13513
13517
|
"files": [
|
|
@@ -13522,7 +13526,7 @@ var package_info_default = {
|
|
|
13522
13526
|
},
|
|
13523
13527
|
"readme": "ERROR: No README data found!",
|
|
13524
13528
|
"homepage": "https://github.com/ddd-tool/domain-designer-cli-node#readme",
|
|
13525
|
-
"_id": "@ddd-tool/domain-designer-cli@0.1.0-beta.
|
|
13529
|
+
"_id": "@ddd-tool/domain-designer-cli@0.1.0-beta.8"
|
|
13526
13530
|
};
|
|
13527
13531
|
|
|
13528
13532
|
// src/domain/environment-agg/index.ts
|
|
@@ -14890,70 +14894,70 @@ function Mn() {
|
|
|
14890
14894
|
}
|
|
14891
14895
|
process.env.NODE_ENV !== "production" && Mn();
|
|
14892
14896
|
|
|
14893
|
-
// node_modules/.pnpm/@ddd-tool+domain-designer-
|
|
14897
|
+
// node_modules/.pnpm/@ddd-tool+domain-designer-g_65c72307a129f35df6ab1b69bad098eb/node_modules/@ddd-tool/domain-designer-generator/index.js
|
|
14894
14898
|
// @__NO_SIDE_EFFECTS__
|
|
14895
|
-
function
|
|
14899
|
+
function Bn(e) {
|
|
14896
14900
|
const n = /* @__PURE__ */ Object.create(null);
|
|
14897
14901
|
for (const t of e.split(",")) n[t] = 1;
|
|
14898
14902
|
return (t) => t in n;
|
|
14899
14903
|
}
|
|
14900
14904
|
process.env.NODE_ENV !== "production" && Object.freeze({});
|
|
14901
14905
|
process.env.NODE_ENV !== "production" && Object.freeze([]);
|
|
14902
|
-
var
|
|
14903
|
-
var
|
|
14904
|
-
var Ve2 = (e, n) =>
|
|
14905
|
-
var
|
|
14906
|
-
var
|
|
14907
|
-
var
|
|
14908
|
-
var
|
|
14909
|
-
var
|
|
14910
|
-
var
|
|
14911
|
-
var
|
|
14912
|
-
var
|
|
14913
|
-
var
|
|
14914
|
-
var
|
|
14906
|
+
var Pe = Object.assign;
|
|
14907
|
+
var Gn = Object.prototype.hasOwnProperty;
|
|
14908
|
+
var Ve2 = (e, n) => Gn.call(e, n);
|
|
14909
|
+
var Y = Array.isArray;
|
|
14910
|
+
var te = (e) => dn2(e) === "[object Map]";
|
|
14911
|
+
var Un = (e) => typeof e == "function";
|
|
14912
|
+
var zn = (e) => typeof e == "string";
|
|
14913
|
+
var ue = (e) => typeof e == "symbol";
|
|
14914
|
+
var je = (e) => e !== null && typeof e == "object";
|
|
14915
|
+
var Jn = Object.prototype.toString;
|
|
14916
|
+
var dn2 = (e) => Jn.call(e);
|
|
14917
|
+
var mn2 = (e) => dn2(e).slice(8, -1);
|
|
14918
|
+
var Ye = (e) => zn(e) && e !== "NaN" && e[0] !== "-" && "" + parseInt(e, 10) === e;
|
|
14915
14919
|
var Wn = (e) => {
|
|
14916
14920
|
const n = /* @__PURE__ */ Object.create(null);
|
|
14917
14921
|
return (t) => n[t] || (n[t] = e(t));
|
|
14918
14922
|
};
|
|
14919
|
-
var
|
|
14920
|
-
var
|
|
14923
|
+
var Yn = Wn((e) => e.charAt(0).toUpperCase() + e.slice(1));
|
|
14924
|
+
var q = (e, n) => !Object.is(e, n);
|
|
14921
14925
|
function X3(e, ...n) {
|
|
14922
14926
|
}
|
|
14923
|
-
var
|
|
14927
|
+
var A;
|
|
14924
14928
|
var fn2 = 0;
|
|
14925
|
-
var te;
|
|
14926
14929
|
var oe2;
|
|
14927
|
-
|
|
14930
|
+
var se2;
|
|
14931
|
+
function qn(e, n = false) {
|
|
14928
14932
|
if (e.flags |= 8, n) {
|
|
14929
|
-
e.next =
|
|
14933
|
+
e.next = se2, se2 = e;
|
|
14930
14934
|
return;
|
|
14931
14935
|
}
|
|
14932
|
-
e.next =
|
|
14936
|
+
e.next = oe2, oe2 = e;
|
|
14933
14937
|
}
|
|
14934
|
-
function
|
|
14938
|
+
function qe() {
|
|
14935
14939
|
fn2++;
|
|
14936
14940
|
}
|
|
14937
14941
|
function Ze() {
|
|
14938
14942
|
if (--fn2 > 0)
|
|
14939
14943
|
return;
|
|
14940
|
-
if (
|
|
14941
|
-
let n =
|
|
14942
|
-
for (
|
|
14944
|
+
if (se2) {
|
|
14945
|
+
let n = se2;
|
|
14946
|
+
for (se2 = void 0; n; ) {
|
|
14943
14947
|
const t = n.next;
|
|
14944
14948
|
n.next = void 0, n.flags &= -9, n = t;
|
|
14945
14949
|
}
|
|
14946
14950
|
}
|
|
14947
14951
|
let e;
|
|
14948
|
-
for (;
|
|
14949
|
-
let n =
|
|
14950
|
-
for (
|
|
14952
|
+
for (; oe2; ) {
|
|
14953
|
+
let n = oe2;
|
|
14954
|
+
for (oe2 = void 0; n; ) {
|
|
14951
14955
|
const t = n.next;
|
|
14952
14956
|
if (n.next = void 0, n.flags &= -9, n.flags & 1)
|
|
14953
14957
|
try {
|
|
14954
14958
|
n.trigger();
|
|
14955
|
-
} catch (
|
|
14956
|
-
e || (e =
|
|
14959
|
+
} catch (r2) {
|
|
14960
|
+
e || (e = r2);
|
|
14957
14961
|
}
|
|
14958
14962
|
n = t;
|
|
14959
14963
|
}
|
|
@@ -14964,102 +14968,102 @@ function Zn(e) {
|
|
|
14964
14968
|
for (let n = e.deps; n; n = n.nextDep)
|
|
14965
14969
|
n.version = -1, n.prevActiveLink = n.dep.activeLink, n.dep.activeLink = n;
|
|
14966
14970
|
}
|
|
14967
|
-
function
|
|
14968
|
-
let n, t = e.depsTail,
|
|
14969
|
-
for (;
|
|
14970
|
-
const
|
|
14971
|
-
|
|
14971
|
+
function Qn(e) {
|
|
14972
|
+
let n, t = e.depsTail, r2 = t;
|
|
14973
|
+
for (; r2; ) {
|
|
14974
|
+
const o = r2.prevDep;
|
|
14975
|
+
r2.version === -1 ? (r2 === t && (t = o), vn2(r2), et(r2)) : n = r2, r2.dep.activeLink = r2.prevActiveLink, r2.prevActiveLink = void 0, r2 = o;
|
|
14972
14976
|
}
|
|
14973
14977
|
e.deps = n, e.depsTail = t;
|
|
14974
14978
|
}
|
|
14975
14979
|
function Xn(e) {
|
|
14976
14980
|
for (let n = e.deps; n; n = n.nextDep)
|
|
14977
|
-
if (n.dep.version !== n.version || n.dep.computed && (
|
|
14981
|
+
if (n.dep.version !== n.version || n.dep.computed && (hn2(n.dep.computed) || n.dep.version !== n.version))
|
|
14978
14982
|
return true;
|
|
14979
14983
|
return !!e._dirty;
|
|
14980
14984
|
}
|
|
14981
|
-
function
|
|
14982
|
-
if (e.flags & 4 && !(e.flags & 16) || (e.flags &= -17, e.globalVersion ===
|
|
14985
|
+
function hn2(e) {
|
|
14986
|
+
if (e.flags & 4 && !(e.flags & 16) || (e.flags &= -17, e.globalVersion === re2))
|
|
14983
14987
|
return;
|
|
14984
|
-
e.globalVersion =
|
|
14988
|
+
e.globalVersion = re2;
|
|
14985
14989
|
const n = e.dep;
|
|
14986
14990
|
if (e.flags |= 2, n.version > 0 && !e.isSSR && e.deps && !Xn(e)) {
|
|
14987
14991
|
e.flags &= -3;
|
|
14988
14992
|
return;
|
|
14989
14993
|
}
|
|
14990
|
-
const t =
|
|
14991
|
-
|
|
14994
|
+
const t = A, r2 = R2;
|
|
14995
|
+
A = e, R2 = true;
|
|
14992
14996
|
try {
|
|
14993
14997
|
Zn(e);
|
|
14994
|
-
const
|
|
14995
|
-
(n.version === 0 ||
|
|
14996
|
-
} catch (
|
|
14997
|
-
throw n.version++,
|
|
14998
|
+
const o = e.fn(e._value);
|
|
14999
|
+
(n.version === 0 || q(o, e._value)) && (e._value = o, n.version++);
|
|
15000
|
+
} catch (o) {
|
|
15001
|
+
throw n.version++, o;
|
|
14998
15002
|
} finally {
|
|
14999
|
-
|
|
15003
|
+
A = t, R2 = r2, Qn(e), e.flags &= -3;
|
|
15000
15004
|
}
|
|
15001
15005
|
}
|
|
15002
|
-
function
|
|
15003
|
-
const { dep: t, prevSub:
|
|
15004
|
-
if (
|
|
15006
|
+
function vn2(e, n = false) {
|
|
15007
|
+
const { dep: t, prevSub: r2, nextSub: o } = e;
|
|
15008
|
+
if (r2 && (r2.nextSub = o, e.prevSub = void 0), o && (o.prevSub = r2, e.nextSub = void 0), process.env.NODE_ENV !== "production" && t.subsHead === e && (t.subsHead = o), t.subs === e && (t.subs = r2, !r2 && t.computed)) {
|
|
15005
15009
|
t.computed.flags &= -5;
|
|
15006
|
-
for (let
|
|
15007
|
-
|
|
15010
|
+
for (let s = t.computed.deps; s; s = s.nextDep)
|
|
15011
|
+
vn2(s, true);
|
|
15008
15012
|
}
|
|
15009
15013
|
!n && !--t.sc && t.map && t.map.delete(t.key);
|
|
15010
15014
|
}
|
|
15011
|
-
function
|
|
15015
|
+
function et(e) {
|
|
15012
15016
|
const { prevDep: n, nextDep: t } = e;
|
|
15013
15017
|
n && (n.nextDep = t, e.prevDep = void 0), t && (t.prevDep = n, e.nextDep = void 0);
|
|
15014
15018
|
}
|
|
15015
15019
|
var R2 = true;
|
|
15016
15020
|
var gn2 = [];
|
|
15017
|
-
function
|
|
15021
|
+
function nt() {
|
|
15018
15022
|
gn2.push(R2), R2 = false;
|
|
15019
15023
|
}
|
|
15020
|
-
function
|
|
15024
|
+
function tt() {
|
|
15021
15025
|
const e = gn2.pop();
|
|
15022
15026
|
R2 = e === void 0 ? true : e;
|
|
15023
15027
|
}
|
|
15024
|
-
var
|
|
15025
|
-
var
|
|
15028
|
+
var re2 = 0;
|
|
15029
|
+
var ot2 = class {
|
|
15026
15030
|
constructor(n, t) {
|
|
15027
15031
|
this.sub = n, this.dep = t, this.version = t.version, this.nextDep = this.prevDep = this.nextSub = this.prevSub = this.prevActiveLink = void 0;
|
|
15028
15032
|
}
|
|
15029
15033
|
};
|
|
15030
|
-
var
|
|
15034
|
+
var Qe = class {
|
|
15031
15035
|
constructor(n) {
|
|
15032
15036
|
this.computed = n, this.version = 0, this.activeLink = void 0, this.subs = void 0, this.map = void 0, this.key = void 0, this.sc = 0, process.env.NODE_ENV !== "production" && (this.subsHead = void 0);
|
|
15033
15037
|
}
|
|
15034
15038
|
track(n) {
|
|
15035
|
-
if (!
|
|
15039
|
+
if (!A || !R2 || A === this.computed)
|
|
15036
15040
|
return;
|
|
15037
15041
|
let t = this.activeLink;
|
|
15038
|
-
if (t === void 0 || t.sub !==
|
|
15039
|
-
t = this.activeLink = new
|
|
15042
|
+
if (t === void 0 || t.sub !== A)
|
|
15043
|
+
t = this.activeLink = new ot2(A, this), A.deps ? (t.prevDep = A.depsTail, A.depsTail.nextDep = t, A.depsTail = t) : A.deps = A.depsTail = t, _n2(t);
|
|
15040
15044
|
else if (t.version === -1 && (t.version = this.version, t.nextDep)) {
|
|
15041
|
-
const
|
|
15042
|
-
|
|
15045
|
+
const r2 = t.nextDep;
|
|
15046
|
+
r2.prevDep = t.prevDep, t.prevDep && (t.prevDep.nextDep = r2), t.prevDep = A.depsTail, t.nextDep = void 0, A.depsTail.nextDep = t, A.depsTail = t, A.deps === t && (A.deps = r2);
|
|
15043
15047
|
}
|
|
15044
|
-
return process.env.NODE_ENV !== "production" &&
|
|
15045
|
-
|
|
15048
|
+
return process.env.NODE_ENV !== "production" && A.onTrack && A.onTrack(
|
|
15049
|
+
Pe(
|
|
15046
15050
|
{
|
|
15047
|
-
effect:
|
|
15051
|
+
effect: A
|
|
15048
15052
|
},
|
|
15049
15053
|
n
|
|
15050
15054
|
)
|
|
15051
15055
|
), t;
|
|
15052
15056
|
}
|
|
15053
15057
|
trigger(n) {
|
|
15054
|
-
this.version++,
|
|
15058
|
+
this.version++, re2++, this.notify(n);
|
|
15055
15059
|
}
|
|
15056
15060
|
notify(n) {
|
|
15057
|
-
|
|
15061
|
+
qe();
|
|
15058
15062
|
try {
|
|
15059
15063
|
if (process.env.NODE_ENV !== "production")
|
|
15060
15064
|
for (let t = this.subsHead; t; t = t.nextSub)
|
|
15061
15065
|
t.sub.onTrigger && !(t.sub.flags & 8) && t.sub.onTrigger(
|
|
15062
|
-
|
|
15066
|
+
Pe(
|
|
15063
15067
|
{
|
|
15064
15068
|
effect: t.sub
|
|
15065
15069
|
},
|
|
@@ -15073,300 +15077,300 @@ var qe = class {
|
|
|
15073
15077
|
}
|
|
15074
15078
|
}
|
|
15075
15079
|
};
|
|
15076
|
-
function
|
|
15080
|
+
function _n2(e) {
|
|
15077
15081
|
if (e.dep.sc++, e.sub.flags & 4) {
|
|
15078
15082
|
const n = e.dep.computed;
|
|
15079
15083
|
if (n && !e.dep.subs) {
|
|
15080
15084
|
n.flags |= 20;
|
|
15081
|
-
for (let
|
|
15082
|
-
|
|
15085
|
+
for (let r2 = n.deps; r2; r2 = r2.nextDep)
|
|
15086
|
+
_n2(r2);
|
|
15083
15087
|
}
|
|
15084
15088
|
const t = e.dep.subs;
|
|
15085
15089
|
t !== e && (e.prevSub = t, t && (t.nextSub = e)), process.env.NODE_ENV !== "production" && e.dep.subsHead === void 0 && (e.dep.subsHead = e), e.dep.subs = e;
|
|
15086
15090
|
}
|
|
15087
15091
|
}
|
|
15088
15092
|
var Re2 = /* @__PURE__ */ new WeakMap();
|
|
15089
|
-
var
|
|
15093
|
+
var K2 = Symbol(
|
|
15090
15094
|
process.env.NODE_ENV !== "production" ? "Object iterate" : ""
|
|
15091
15095
|
);
|
|
15092
|
-
var
|
|
15096
|
+
var He = Symbol(
|
|
15093
15097
|
process.env.NODE_ENV !== "production" ? "Map keys iterate" : ""
|
|
15094
15098
|
);
|
|
15095
|
-
var
|
|
15099
|
+
var ae2 = Symbol(
|
|
15096
15100
|
process.env.NODE_ENV !== "production" ? "Array iterate" : ""
|
|
15097
15101
|
);
|
|
15098
|
-
function
|
|
15099
|
-
if (R2 &&
|
|
15100
|
-
let
|
|
15101
|
-
|
|
15102
|
-
let
|
|
15103
|
-
|
|
15102
|
+
function T(e, n, t) {
|
|
15103
|
+
if (R2 && A) {
|
|
15104
|
+
let r2 = Re2.get(e);
|
|
15105
|
+
r2 || Re2.set(e, r2 = /* @__PURE__ */ new Map());
|
|
15106
|
+
let o = r2.get(t);
|
|
15107
|
+
o || (r2.set(t, o = new Qe()), o.map = r2, o.key = t), process.env.NODE_ENV !== "production" ? o.track({
|
|
15104
15108
|
target: e,
|
|
15105
15109
|
type: n,
|
|
15106
15110
|
key: t
|
|
15107
|
-
}) :
|
|
15111
|
+
}) : o.track();
|
|
15108
15112
|
}
|
|
15109
15113
|
}
|
|
15110
|
-
function V2(e, n, t, o, s
|
|
15111
|
-
const
|
|
15112
|
-
if (!
|
|
15113
|
-
|
|
15114
|
+
function V2(e, n, t, r2, o, s) {
|
|
15115
|
+
const p = Re2.get(e);
|
|
15116
|
+
if (!p) {
|
|
15117
|
+
re2++;
|
|
15114
15118
|
return;
|
|
15115
15119
|
}
|
|
15116
|
-
const
|
|
15117
|
-
|
|
15120
|
+
const _ = (C2) => {
|
|
15121
|
+
C2 && (process.env.NODE_ENV !== "production" ? C2.trigger({
|
|
15118
15122
|
target: e,
|
|
15119
15123
|
type: n,
|
|
15120
15124
|
key: t,
|
|
15121
|
-
newValue:
|
|
15122
|
-
oldValue:
|
|
15123
|
-
oldTarget:
|
|
15124
|
-
}) :
|
|
15125
|
+
newValue: r2,
|
|
15126
|
+
oldValue: o,
|
|
15127
|
+
oldTarget: s
|
|
15128
|
+
}) : C2.trigger());
|
|
15125
15129
|
};
|
|
15126
|
-
if (
|
|
15127
|
-
|
|
15130
|
+
if (qe(), n === "clear")
|
|
15131
|
+
p.forEach(_);
|
|
15128
15132
|
else {
|
|
15129
|
-
const
|
|
15130
|
-
if (
|
|
15131
|
-
const
|
|
15132
|
-
|
|
15133
|
-
(l2 === "length" || l2 ===
|
|
15133
|
+
const C2 = Y(e), d = C2 && Ye(t);
|
|
15134
|
+
if (C2 && t === "length") {
|
|
15135
|
+
const i = Number(r2);
|
|
15136
|
+
p.forEach((a, l2) => {
|
|
15137
|
+
(l2 === "length" || l2 === ae2 || !ue(l2) && l2 >= i) && _(a);
|
|
15134
15138
|
});
|
|
15135
15139
|
} else
|
|
15136
|
-
switch ((t !== void 0 ||
|
|
15140
|
+
switch ((t !== void 0 || p.has(void 0)) && _(p.get(t)), d && _(p.get(ae2)), n) {
|
|
15137
15141
|
case "add":
|
|
15138
|
-
|
|
15142
|
+
C2 ? d && _(p.get("length")) : (_(p.get(K2)), te(e) && _(p.get(He)));
|
|
15139
15143
|
break;
|
|
15140
15144
|
case "delete":
|
|
15141
|
-
|
|
15145
|
+
C2 || (_(p.get(K2)), te(e) && _(p.get(He)));
|
|
15142
15146
|
break;
|
|
15143
15147
|
case "set":
|
|
15144
|
-
|
|
15148
|
+
te(e) && _(p.get(K2));
|
|
15145
15149
|
break;
|
|
15146
15150
|
}
|
|
15147
15151
|
}
|
|
15148
15152
|
Ze();
|
|
15149
15153
|
}
|
|
15150
|
-
function
|
|
15154
|
+
function J(e) {
|
|
15151
15155
|
const n = E2(e);
|
|
15152
|
-
return n === e ? n : (
|
|
15156
|
+
return n === e ? n : (T(n, "iterate", ae2), H(e) ? n : n.map(O2));
|
|
15153
15157
|
}
|
|
15154
15158
|
function Xe(e) {
|
|
15155
|
-
return
|
|
15159
|
+
return T(e = E2(e), "iterate", ae2), e;
|
|
15156
15160
|
}
|
|
15157
|
-
var
|
|
15161
|
+
var st2 = {
|
|
15158
15162
|
__proto__: null,
|
|
15159
15163
|
[Symbol.iterator]() {
|
|
15160
|
-
return
|
|
15164
|
+
return Ie2(this, Symbol.iterator, O2);
|
|
15161
15165
|
},
|
|
15162
15166
|
concat(...e) {
|
|
15163
|
-
return
|
|
15164
|
-
...e.map((n) =>
|
|
15167
|
+
return J(this).concat(
|
|
15168
|
+
...e.map((n) => Y(n) ? J(n) : n)
|
|
15165
15169
|
);
|
|
15166
15170
|
},
|
|
15167
15171
|
entries() {
|
|
15168
|
-
return
|
|
15172
|
+
return Ie2(this, "entries", (e) => (e[1] = O2(e[1]), e));
|
|
15169
15173
|
},
|
|
15170
15174
|
every(e, n) {
|
|
15171
|
-
return
|
|
15175
|
+
return D2(this, "every", e, n, void 0, arguments);
|
|
15172
15176
|
},
|
|
15173
15177
|
filter(e, n) {
|
|
15174
|
-
return
|
|
15178
|
+
return D2(this, "filter", e, n, (t) => t.map(O2), arguments);
|
|
15175
15179
|
},
|
|
15176
15180
|
find(e, n) {
|
|
15177
|
-
return
|
|
15181
|
+
return D2(this, "find", e, n, O2, arguments);
|
|
15178
15182
|
},
|
|
15179
15183
|
findIndex(e, n) {
|
|
15180
|
-
return
|
|
15184
|
+
return D2(this, "findIndex", e, n, void 0, arguments);
|
|
15181
15185
|
},
|
|
15182
15186
|
findLast(e, n) {
|
|
15183
|
-
return
|
|
15187
|
+
return D2(this, "findLast", e, n, O2, arguments);
|
|
15184
15188
|
},
|
|
15185
15189
|
findLastIndex(e, n) {
|
|
15186
|
-
return
|
|
15190
|
+
return D2(this, "findLastIndex", e, n, void 0, arguments);
|
|
15187
15191
|
},
|
|
15188
15192
|
// flat, flatMap could benefit from ARRAY_ITERATE but are not straight-forward to implement
|
|
15189
15193
|
forEach(e, n) {
|
|
15190
|
-
return
|
|
15194
|
+
return D2(this, "forEach", e, n, void 0, arguments);
|
|
15191
15195
|
},
|
|
15192
15196
|
includes(...e) {
|
|
15193
|
-
return
|
|
15197
|
+
return Oe(this, "includes", e);
|
|
15194
15198
|
},
|
|
15195
15199
|
indexOf(...e) {
|
|
15196
|
-
return
|
|
15200
|
+
return Oe(this, "indexOf", e);
|
|
15197
15201
|
},
|
|
15198
15202
|
join(e) {
|
|
15199
|
-
return
|
|
15203
|
+
return J(this).join(e);
|
|
15200
15204
|
},
|
|
15201
15205
|
// keys() iterator only reads `length`, no optimisation required
|
|
15202
15206
|
lastIndexOf(...e) {
|
|
15203
|
-
return
|
|
15207
|
+
return Oe(this, "lastIndexOf", e);
|
|
15204
15208
|
},
|
|
15205
15209
|
map(e, n) {
|
|
15206
|
-
return
|
|
15210
|
+
return D2(this, "map", e, n, void 0, arguments);
|
|
15207
15211
|
},
|
|
15208
15212
|
pop() {
|
|
15209
|
-
return
|
|
15213
|
+
return ne2(this, "pop");
|
|
15210
15214
|
},
|
|
15211
15215
|
push(...e) {
|
|
15212
|
-
return
|
|
15216
|
+
return ne2(this, "push", e);
|
|
15213
15217
|
},
|
|
15214
15218
|
reduce(e, ...n) {
|
|
15215
|
-
return
|
|
15219
|
+
return cn2(this, "reduce", e, n);
|
|
15216
15220
|
},
|
|
15217
15221
|
reduceRight(e, ...n) {
|
|
15218
|
-
return
|
|
15222
|
+
return cn2(this, "reduceRight", e, n);
|
|
15219
15223
|
},
|
|
15220
15224
|
shift() {
|
|
15221
|
-
return
|
|
15225
|
+
return ne2(this, "shift");
|
|
15222
15226
|
},
|
|
15223
15227
|
// slice could use ARRAY_ITERATE but also seems to beg for range tracking
|
|
15224
15228
|
some(e, n) {
|
|
15225
|
-
return
|
|
15229
|
+
return D2(this, "some", e, n, void 0, arguments);
|
|
15226
15230
|
},
|
|
15227
15231
|
splice(...e) {
|
|
15228
|
-
return
|
|
15232
|
+
return ne2(this, "splice", e);
|
|
15229
15233
|
},
|
|
15230
15234
|
toReversed() {
|
|
15231
|
-
return
|
|
15235
|
+
return J(this).toReversed();
|
|
15232
15236
|
},
|
|
15233
15237
|
toSorted(e) {
|
|
15234
|
-
return
|
|
15238
|
+
return J(this).toSorted(e);
|
|
15235
15239
|
},
|
|
15236
15240
|
toSpliced(...e) {
|
|
15237
|
-
return
|
|
15241
|
+
return J(this).toSpliced(...e);
|
|
15238
15242
|
},
|
|
15239
15243
|
unshift(...e) {
|
|
15240
|
-
return
|
|
15244
|
+
return ne2(this, "unshift", e);
|
|
15241
15245
|
},
|
|
15242
15246
|
values() {
|
|
15243
|
-
return
|
|
15247
|
+
return Ie2(this, "values", O2);
|
|
15244
15248
|
}
|
|
15245
15249
|
};
|
|
15246
|
-
function
|
|
15247
|
-
const
|
|
15248
|
-
return
|
|
15249
|
-
const
|
|
15250
|
-
return
|
|
15251
|
-
}),
|
|
15250
|
+
function Ie2(e, n, t) {
|
|
15251
|
+
const r2 = Xe(e), o = r2[n]();
|
|
15252
|
+
return r2 !== e && !H(e) && (o._next = o.next, o.next = () => {
|
|
15253
|
+
const s = o._next();
|
|
15254
|
+
return s.value && (s.value = t(s.value)), s;
|
|
15255
|
+
}), o;
|
|
15252
15256
|
}
|
|
15253
|
-
var
|
|
15254
|
-
function
|
|
15255
|
-
const
|
|
15256
|
-
if (
|
|
15257
|
-
const
|
|
15258
|
-
return
|
|
15257
|
+
var rt = Array.prototype;
|
|
15258
|
+
function D2(e, n, t, r2, o, s) {
|
|
15259
|
+
const p = Xe(e), _ = p !== e && !H(e), C2 = p[n];
|
|
15260
|
+
if (C2 !== rt[n]) {
|
|
15261
|
+
const a = C2.apply(e, s);
|
|
15262
|
+
return _ ? O2(a) : a;
|
|
15259
15263
|
}
|
|
15260
15264
|
let d = t;
|
|
15261
|
-
|
|
15262
|
-
return t.call(this,
|
|
15263
|
-
} : t.length > 2 && (d = function(
|
|
15264
|
-
return t.call(this,
|
|
15265
|
+
p !== e && (_ ? d = function(a, l2) {
|
|
15266
|
+
return t.call(this, O2(a), l2, e);
|
|
15267
|
+
} : t.length > 2 && (d = function(a, l2) {
|
|
15268
|
+
return t.call(this, a, l2, e);
|
|
15265
15269
|
}));
|
|
15266
|
-
const
|
|
15267
|
-
return
|
|
15270
|
+
const i = C2.call(p, d, r2);
|
|
15271
|
+
return _ && o ? o(i) : i;
|
|
15268
15272
|
}
|
|
15269
|
-
function
|
|
15270
|
-
const
|
|
15271
|
-
let
|
|
15272
|
-
return
|
|
15273
|
-
return t.call(this,
|
|
15274
|
-
}) :
|
|
15275
|
-
return t.call(this,
|
|
15276
|
-
}),
|
|
15273
|
+
function cn2(e, n, t, r2) {
|
|
15274
|
+
const o = Xe(e);
|
|
15275
|
+
let s = t;
|
|
15276
|
+
return o !== e && (H(e) ? t.length > 3 && (s = function(p, _, C2) {
|
|
15277
|
+
return t.call(this, p, _, C2, e);
|
|
15278
|
+
}) : s = function(p, _, C2) {
|
|
15279
|
+
return t.call(this, p, O2(_), C2, e);
|
|
15280
|
+
}), o[n](s, ...r2);
|
|
15277
15281
|
}
|
|
15278
|
-
function
|
|
15279
|
-
const
|
|
15280
|
-
|
|
15281
|
-
const
|
|
15282
|
-
return (
|
|
15282
|
+
function Oe(e, n, t) {
|
|
15283
|
+
const r2 = E2(e);
|
|
15284
|
+
T(r2, "iterate", ae2);
|
|
15285
|
+
const o = r2[n](...t);
|
|
15286
|
+
return (o === -1 || o === false) && $t5(t[0]) ? (t[0] = E2(t[0]), r2[n](...t)) : o;
|
|
15283
15287
|
}
|
|
15284
|
-
function
|
|
15285
|
-
|
|
15286
|
-
const
|
|
15287
|
-
return Ze(),
|
|
15288
|
+
function ne2(e, n, t = []) {
|
|
15289
|
+
nt(), qe();
|
|
15290
|
+
const r2 = E2(e)[n].apply(e, t);
|
|
15291
|
+
return Ze(), tt(), r2;
|
|
15288
15292
|
}
|
|
15289
|
-
var
|
|
15290
|
-
var
|
|
15291
|
-
/* @__PURE__ */ Object.getOwnPropertyNames(Symbol).filter((e) => e !== "arguments" && e !== "caller").map((e) => Symbol[e]).filter(
|
|
15293
|
+
var at2 = /* @__PURE__ */ Bn("__proto__,__v_isRef,__isVue");
|
|
15294
|
+
var Cn2 = new Set(
|
|
15295
|
+
/* @__PURE__ */ Object.getOwnPropertyNames(Symbol).filter((e) => e !== "arguments" && e !== "caller").map((e) => Symbol[e]).filter(ue)
|
|
15292
15296
|
);
|
|
15293
|
-
function
|
|
15294
|
-
|
|
15297
|
+
function it(e) {
|
|
15298
|
+
ue(e) || (e = String(e));
|
|
15295
15299
|
const n = E2(this);
|
|
15296
|
-
return
|
|
15300
|
+
return T(n, "has", e), n.hasOwnProperty(e);
|
|
15297
15301
|
}
|
|
15298
|
-
var
|
|
15302
|
+
var $n = class {
|
|
15299
15303
|
constructor(n = false, t = false) {
|
|
15300
15304
|
this._isReadonly = n, this._isShallow = t;
|
|
15301
15305
|
}
|
|
15302
|
-
get(n, t,
|
|
15306
|
+
get(n, t, r2) {
|
|
15303
15307
|
if (t === "__v_skip") return n.__v_skip;
|
|
15304
|
-
const
|
|
15308
|
+
const o = this._isReadonly, s = this._isShallow;
|
|
15305
15309
|
if (t === "__v_isReactive")
|
|
15306
|
-
return !
|
|
15310
|
+
return !o;
|
|
15307
15311
|
if (t === "__v_isReadonly")
|
|
15308
|
-
return
|
|
15312
|
+
return o;
|
|
15309
15313
|
if (t === "__v_isShallow")
|
|
15310
|
-
return
|
|
15314
|
+
return s;
|
|
15311
15315
|
if (t === "__v_raw")
|
|
15312
|
-
return
|
|
15316
|
+
return r2 === (o ? s ? yn2 : Nn2 : s ? gt2 : wn2).get(n) || // receiver is not the reactive proxy, but has the same prototype
|
|
15313
15317
|
// this means the receiver is a user proxy of the reactive proxy
|
|
15314
|
-
Object.getPrototypeOf(n) === Object.getPrototypeOf(
|
|
15315
|
-
const
|
|
15316
|
-
if (!
|
|
15317
|
-
let
|
|
15318
|
-
if (
|
|
15319
|
-
return
|
|
15318
|
+
Object.getPrototypeOf(n) === Object.getPrototypeOf(r2) ? n : void 0;
|
|
15319
|
+
const p = Y(n);
|
|
15320
|
+
if (!o) {
|
|
15321
|
+
let C2;
|
|
15322
|
+
if (p && (C2 = st2[t]))
|
|
15323
|
+
return C2;
|
|
15320
15324
|
if (t === "hasOwnProperty")
|
|
15321
|
-
return
|
|
15325
|
+
return it;
|
|
15322
15326
|
}
|
|
15323
|
-
const
|
|
15327
|
+
const _ = Reflect.get(
|
|
15324
15328
|
n,
|
|
15325
15329
|
t,
|
|
15326
15330
|
// if this is a proxy wrapping a ref, return methods using the raw ref
|
|
15327
15331
|
// as receiver so that we don't have to call `toRaw` on the ref in all
|
|
15328
15332
|
// its class methods
|
|
15329
|
-
Z2(n) ? n :
|
|
15333
|
+
Z2(n) ? n : r2
|
|
15330
15334
|
);
|
|
15331
|
-
return (
|
|
15335
|
+
return (ue(t) ? Cn2.has(t) : at2(t)) || (o || T(n, "get", t), s) ? _ : Z2(_) ? p && Ye(t) ? _ : _.value : je(_) ? o ? ve(_) : jn(_) : _;
|
|
15332
15336
|
}
|
|
15333
15337
|
};
|
|
15334
|
-
var
|
|
15338
|
+
var ct2 = class extends $n {
|
|
15335
15339
|
constructor(n = false) {
|
|
15336
15340
|
super(false, n);
|
|
15337
15341
|
}
|
|
15338
|
-
set(n, t,
|
|
15339
|
-
let
|
|
15342
|
+
set(n, t, r2, o) {
|
|
15343
|
+
let s = n[t];
|
|
15340
15344
|
if (!this._isShallow) {
|
|
15341
|
-
const
|
|
15342
|
-
if (!
|
|
15343
|
-
return
|
|
15345
|
+
const C2 = ee2(s);
|
|
15346
|
+
if (!H(r2) && !ee2(r2) && (s = E2(s), r2 = E2(r2)), !Y(n) && Z2(s) && !Z2(r2))
|
|
15347
|
+
return C2 ? false : (s.value = r2, true);
|
|
15344
15348
|
}
|
|
15345
|
-
const
|
|
15349
|
+
const p = Y(n) && Ye(t) ? Number(t) < n.length : Ve2(n, t), _ = Reflect.set(
|
|
15346
15350
|
n,
|
|
15347
15351
|
t,
|
|
15348
|
-
|
|
15349
|
-
Z2(n) ? n :
|
|
15352
|
+
r2,
|
|
15353
|
+
Z2(n) ? n : o
|
|
15350
15354
|
);
|
|
15351
|
-
return n === E2(
|
|
15355
|
+
return n === E2(o) && (p ? q(r2, s) && V2(n, "set", t, r2, s) : V2(n, "add", t, r2)), _;
|
|
15352
15356
|
}
|
|
15353
15357
|
deleteProperty(n, t) {
|
|
15354
|
-
const
|
|
15355
|
-
return
|
|
15358
|
+
const r2 = Ve2(n, t), o = n[t], s = Reflect.deleteProperty(n, t);
|
|
15359
|
+
return s && r2 && V2(n, "delete", t, void 0, o), s;
|
|
15356
15360
|
}
|
|
15357
15361
|
has(n, t) {
|
|
15358
|
-
const
|
|
15359
|
-
return (!
|
|
15362
|
+
const r2 = Reflect.has(n, t);
|
|
15363
|
+
return (!ue(t) || !Cn2.has(t)) && T(n, "has", t), r2;
|
|
15360
15364
|
}
|
|
15361
15365
|
ownKeys(n) {
|
|
15362
|
-
return
|
|
15366
|
+
return T(
|
|
15363
15367
|
n,
|
|
15364
15368
|
"iterate",
|
|
15365
|
-
|
|
15369
|
+
Y(n) ? "length" : K2
|
|
15366
15370
|
), Reflect.ownKeys(n);
|
|
15367
15371
|
}
|
|
15368
15372
|
};
|
|
15369
|
-
var
|
|
15373
|
+
var bn2 = class extends $n {
|
|
15370
15374
|
constructor(n = false) {
|
|
15371
15375
|
super(true, n);
|
|
15372
15376
|
}
|
|
@@ -15383,24 +15387,24 @@ var $n = class extends Cn2 {
|
|
|
15383
15387
|
), true;
|
|
15384
15388
|
}
|
|
15385
15389
|
};
|
|
15386
|
-
var
|
|
15387
|
-
var
|
|
15388
|
-
var
|
|
15389
|
-
var
|
|
15390
|
-
var
|
|
15391
|
-
function
|
|
15392
|
-
return function(...
|
|
15393
|
-
const
|
|
15394
|
-
return !n &&
|
|
15395
|
-
|
|
15390
|
+
var ut2 = /* @__PURE__ */ new ct2();
|
|
15391
|
+
var lt2 = /* @__PURE__ */ new bn2();
|
|
15392
|
+
var pt = /* @__PURE__ */ new bn2(true);
|
|
15393
|
+
var Le = (e) => e;
|
|
15394
|
+
var pe2 = (e) => Reflect.getPrototypeOf(e);
|
|
15395
|
+
function dt2(e, n, t) {
|
|
15396
|
+
return function(...r2) {
|
|
15397
|
+
const o = this.__v_raw, s = E2(o), p = te(s), _ = e === "entries" || e === Symbol.iterator && p, C2 = e === "keys" && p, d = o[e](...r2), i = t ? Le : n ? Me2 : O2;
|
|
15398
|
+
return !n && T(
|
|
15399
|
+
s,
|
|
15396
15400
|
"iterate",
|
|
15397
|
-
|
|
15401
|
+
C2 ? He : K2
|
|
15398
15402
|
), {
|
|
15399
15403
|
// iterator protocol
|
|
15400
15404
|
next() {
|
|
15401
|
-
const { value:
|
|
15402
|
-
return l2 ? { value:
|
|
15403
|
-
value:
|
|
15405
|
+
const { value: a, done: l2 } = d.next();
|
|
15406
|
+
return l2 ? { value: a, done: l2 } : {
|
|
15407
|
+
value: _ ? [i(a[0]), i(a[1])] : i(a),
|
|
15404
15408
|
done: l2
|
|
15405
15409
|
};
|
|
15406
15410
|
},
|
|
@@ -15411,80 +15415,80 @@ function pt(e, n, t) {
|
|
|
15411
15415
|
};
|
|
15412
15416
|
};
|
|
15413
15417
|
}
|
|
15414
|
-
function
|
|
15418
|
+
function de2(e) {
|
|
15415
15419
|
return function(...n) {
|
|
15416
15420
|
if (process.env.NODE_ENV !== "production") {
|
|
15417
15421
|
const t = n[0] ? `on key "${n[0]}" ` : "";
|
|
15418
15422
|
X3(
|
|
15419
|
-
`${
|
|
15423
|
+
`${Yn(e)} operation ${t}failed: target is readonly.`,
|
|
15420
15424
|
E2(this)
|
|
15421
15425
|
);
|
|
15422
15426
|
}
|
|
15423
15427
|
return e === "delete" ? false : e === "clear" ? void 0 : this;
|
|
15424
15428
|
};
|
|
15425
15429
|
}
|
|
15426
|
-
function
|
|
15430
|
+
function mt2(e, n) {
|
|
15427
15431
|
const t = {
|
|
15428
|
-
get(
|
|
15429
|
-
const
|
|
15430
|
-
e || (
|
|
15431
|
-
const { has:
|
|
15432
|
-
if (
|
|
15433
|
-
return d(
|
|
15434
|
-
if (
|
|
15435
|
-
return d(
|
|
15436
|
-
|
|
15432
|
+
get(o) {
|
|
15433
|
+
const s = this.__v_raw, p = E2(s), _ = E2(o);
|
|
15434
|
+
e || (q(o, _) && T(p, "get", o), T(p, "get", _));
|
|
15435
|
+
const { has: C2 } = pe2(p), d = n ? Le : e ? Me2 : O2;
|
|
15436
|
+
if (C2.call(p, o))
|
|
15437
|
+
return d(s.get(o));
|
|
15438
|
+
if (C2.call(p, _))
|
|
15439
|
+
return d(s.get(_));
|
|
15440
|
+
s !== p && s.get(o);
|
|
15437
15441
|
},
|
|
15438
15442
|
get size() {
|
|
15439
|
-
const
|
|
15440
|
-
return !e &&
|
|
15443
|
+
const o = this.__v_raw;
|
|
15444
|
+
return !e && T(E2(o), "iterate", K2), Reflect.get(o, "size", o);
|
|
15441
15445
|
},
|
|
15442
|
-
has(
|
|
15443
|
-
const
|
|
15444
|
-
return e || (
|
|
15446
|
+
has(o) {
|
|
15447
|
+
const s = this.__v_raw, p = E2(s), _ = E2(o);
|
|
15448
|
+
return e || (q(o, _) && T(p, "has", o), T(p, "has", _)), o === _ ? s.has(o) : s.has(o) || s.has(_);
|
|
15445
15449
|
},
|
|
15446
|
-
forEach(
|
|
15447
|
-
const
|
|
15448
|
-
return !e &&
|
|
15450
|
+
forEach(o, s) {
|
|
15451
|
+
const p = this, _ = p.__v_raw, C2 = E2(_), d = n ? Le : e ? Me2 : O2;
|
|
15452
|
+
return !e && T(C2, "iterate", K2), _.forEach((i, a) => o.call(s, d(i), d(a), p));
|
|
15449
15453
|
}
|
|
15450
15454
|
};
|
|
15451
|
-
return
|
|
15455
|
+
return Pe(
|
|
15452
15456
|
t,
|
|
15453
15457
|
e ? {
|
|
15454
|
-
add:
|
|
15455
|
-
set:
|
|
15456
|
-
delete:
|
|
15457
|
-
clear:
|
|
15458
|
+
add: de2("add"),
|
|
15459
|
+
set: de2("set"),
|
|
15460
|
+
delete: de2("delete"),
|
|
15461
|
+
clear: de2("clear")
|
|
15458
15462
|
} : {
|
|
15459
|
-
add(
|
|
15460
|
-
!n && !
|
|
15461
|
-
const
|
|
15462
|
-
return
|
|
15463
|
+
add(o) {
|
|
15464
|
+
!n && !H(o) && !ee2(o) && (o = E2(o));
|
|
15465
|
+
const s = E2(this);
|
|
15466
|
+
return pe2(s).has.call(s, o) || (s.add(o), V2(s, "add", o, o)), this;
|
|
15463
15467
|
},
|
|
15464
|
-
set(
|
|
15465
|
-
!n && !
|
|
15466
|
-
const
|
|
15467
|
-
let d =
|
|
15468
|
-
d ? process.env.NODE_ENV !== "production" &&
|
|
15469
|
-
const
|
|
15470
|
-
return
|
|
15468
|
+
set(o, s) {
|
|
15469
|
+
!n && !H(s) && !ee2(s) && (s = E2(s));
|
|
15470
|
+
const p = E2(this), { has: _, get: C2 } = pe2(p);
|
|
15471
|
+
let d = _.call(p, o);
|
|
15472
|
+
d ? process.env.NODE_ENV !== "production" && un2(p, _, o) : (o = E2(o), d = _.call(p, o));
|
|
15473
|
+
const i = C2.call(p, o);
|
|
15474
|
+
return p.set(o, s), d ? q(s, i) && V2(p, "set", o, s, i) : V2(p, "add", o, s), this;
|
|
15471
15475
|
},
|
|
15472
|
-
delete(
|
|
15473
|
-
const
|
|
15474
|
-
let
|
|
15475
|
-
|
|
15476
|
-
const d =
|
|
15477
|
-
return
|
|
15476
|
+
delete(o) {
|
|
15477
|
+
const s = E2(this), { has: p, get: _ } = pe2(s);
|
|
15478
|
+
let C2 = p.call(s, o);
|
|
15479
|
+
C2 ? process.env.NODE_ENV !== "production" && un2(s, p, o) : (o = E2(o), C2 = p.call(s, o));
|
|
15480
|
+
const d = _ ? _.call(s, o) : void 0, i = s.delete(o);
|
|
15481
|
+
return C2 && V2(s, "delete", o, void 0, d), i;
|
|
15478
15482
|
},
|
|
15479
15483
|
clear() {
|
|
15480
|
-
const
|
|
15481
|
-
return
|
|
15482
|
-
|
|
15484
|
+
const o = E2(this), s = o.size !== 0, p = process.env.NODE_ENV !== "production" ? te(o) ? new Map(o) : new Set(o) : void 0, _ = o.clear();
|
|
15485
|
+
return s && V2(
|
|
15486
|
+
o,
|
|
15483
15487
|
"clear",
|
|
15484
15488
|
void 0,
|
|
15485
15489
|
void 0,
|
|
15486
|
-
|
|
15487
|
-
),
|
|
15490
|
+
p
|
|
15491
|
+
), _;
|
|
15488
15492
|
}
|
|
15489
15493
|
}
|
|
15490
15494
|
), [
|
|
@@ -15492,41 +15496,41 @@ function dt2(e, n) {
|
|
|
15492
15496
|
"values",
|
|
15493
15497
|
"entries",
|
|
15494
15498
|
Symbol.iterator
|
|
15495
|
-
].forEach((
|
|
15496
|
-
t[
|
|
15499
|
+
].forEach((o) => {
|
|
15500
|
+
t[o] = dt2(o, e, n);
|
|
15497
15501
|
}), t;
|
|
15498
15502
|
}
|
|
15499
|
-
function
|
|
15500
|
-
const t =
|
|
15501
|
-
return (o, s
|
|
15502
|
-
Ve2(t,
|
|
15503
|
-
|
|
15504
|
-
|
|
15503
|
+
function en2(e, n) {
|
|
15504
|
+
const t = mt2(e, n);
|
|
15505
|
+
return (r2, o, s) => o === "__v_isReactive" ? !e : o === "__v_isReadonly" ? e : o === "__v_raw" ? r2 : Reflect.get(
|
|
15506
|
+
Ve2(t, o) && o in r2 ? t : r2,
|
|
15507
|
+
o,
|
|
15508
|
+
s
|
|
15505
15509
|
);
|
|
15506
15510
|
}
|
|
15507
15511
|
var ft2 = {
|
|
15508
|
-
get: /* @__PURE__ */
|
|
15509
|
-
};
|
|
15510
|
-
var mt2 = {
|
|
15511
|
-
get: /* @__PURE__ */ Qe(true, false)
|
|
15512
|
+
get: /* @__PURE__ */ en2(false, false)
|
|
15512
15513
|
};
|
|
15513
15514
|
var ht = {
|
|
15514
|
-
get: /* @__PURE__ */
|
|
15515
|
+
get: /* @__PURE__ */ en2(true, false)
|
|
15516
|
+
};
|
|
15517
|
+
var vt = {
|
|
15518
|
+
get: /* @__PURE__ */ en2(true, true)
|
|
15515
15519
|
};
|
|
15516
|
-
function
|
|
15517
|
-
const
|
|
15518
|
-
if (
|
|
15519
|
-
const
|
|
15520
|
+
function un2(e, n, t) {
|
|
15521
|
+
const r2 = E2(t);
|
|
15522
|
+
if (r2 !== t && n.call(e, r2)) {
|
|
15523
|
+
const o = mn2(e);
|
|
15520
15524
|
X3(
|
|
15521
|
-
`Reactive ${
|
|
15525
|
+
`Reactive ${o} contains both the raw and reactive versions of the same object${o === "Map" ? " as keys" : ""}, which can lead to inconsistencies. Avoid differentiating between the raw and reactive versions of an object and only use the reactive version if possible.`
|
|
15522
15526
|
);
|
|
15523
15527
|
}
|
|
15524
15528
|
}
|
|
15525
|
-
var bn2 = /* @__PURE__ */ new WeakMap();
|
|
15526
|
-
var gt2 = /* @__PURE__ */ new WeakMap();
|
|
15527
15529
|
var wn2 = /* @__PURE__ */ new WeakMap();
|
|
15530
|
+
var gt2 = /* @__PURE__ */ new WeakMap();
|
|
15528
15531
|
var Nn2 = /* @__PURE__ */ new WeakMap();
|
|
15529
|
-
|
|
15532
|
+
var yn2 = /* @__PURE__ */ new WeakMap();
|
|
15533
|
+
function _t(e) {
|
|
15530
15534
|
switch (e) {
|
|
15531
15535
|
case "Object":
|
|
15532
15536
|
case "Array":
|
|
@@ -15540,38 +15544,38 @@ function vt(e) {
|
|
|
15540
15544
|
return 0;
|
|
15541
15545
|
}
|
|
15542
15546
|
}
|
|
15543
|
-
function
|
|
15544
|
-
return e.__v_skip || !Object.isExtensible(e) ? 0 :
|
|
15547
|
+
function Ct(e) {
|
|
15548
|
+
return e.__v_skip || !Object.isExtensible(e) ? 0 : _t(mn2(e));
|
|
15545
15549
|
}
|
|
15546
|
-
function
|
|
15547
|
-
return
|
|
15550
|
+
function jn(e) {
|
|
15551
|
+
return ee2(e) ? e : nn2(
|
|
15548
15552
|
e,
|
|
15549
15553
|
false,
|
|
15550
|
-
|
|
15554
|
+
ut2,
|
|
15551
15555
|
ft2,
|
|
15552
|
-
|
|
15556
|
+
wn2
|
|
15553
15557
|
);
|
|
15554
15558
|
}
|
|
15555
|
-
function
|
|
15556
|
-
return
|
|
15559
|
+
function ve(e) {
|
|
15560
|
+
return nn2(
|
|
15557
15561
|
e,
|
|
15558
15562
|
true,
|
|
15559
|
-
|
|
15560
|
-
|
|
15561
|
-
|
|
15563
|
+
lt2,
|
|
15564
|
+
ht,
|
|
15565
|
+
Nn2
|
|
15562
15566
|
);
|
|
15563
15567
|
}
|
|
15564
15568
|
function fe2(e) {
|
|
15565
|
-
return
|
|
15569
|
+
return nn2(
|
|
15566
15570
|
e,
|
|
15567
15571
|
true,
|
|
15568
|
-
|
|
15569
|
-
|
|
15570
|
-
|
|
15572
|
+
pt,
|
|
15573
|
+
vt,
|
|
15574
|
+
yn2
|
|
15571
15575
|
);
|
|
15572
15576
|
}
|
|
15573
|
-
function
|
|
15574
|
-
if (!
|
|
15577
|
+
function nn2(e, n, t, r2, o) {
|
|
15578
|
+
if (!je(e))
|
|
15575
15579
|
return process.env.NODE_ENV !== "production" && X3(
|
|
15576
15580
|
`value cannot be made ${n ? "readonly" : "reactive"}: ${String(
|
|
15577
15581
|
e
|
|
@@ -15579,45 +15583,45 @@ function en2(e, n, t, o, s) {
|
|
|
15579
15583
|
), e;
|
|
15580
15584
|
if (e.__v_raw && !(n && e.__v_isReactive))
|
|
15581
15585
|
return e;
|
|
15582
|
-
const
|
|
15583
|
-
if (
|
|
15584
|
-
return
|
|
15585
|
-
const
|
|
15586
|
-
if (
|
|
15586
|
+
const s = o.get(e);
|
|
15587
|
+
if (s)
|
|
15588
|
+
return s;
|
|
15589
|
+
const p = Ct(e);
|
|
15590
|
+
if (p === 0)
|
|
15587
15591
|
return e;
|
|
15588
|
-
const
|
|
15592
|
+
const _ = new Proxy(
|
|
15589
15593
|
e,
|
|
15590
|
-
|
|
15594
|
+
p === 2 ? r2 : t
|
|
15591
15595
|
);
|
|
15592
|
-
return
|
|
15596
|
+
return o.set(e, _), _;
|
|
15593
15597
|
}
|
|
15594
|
-
function
|
|
15598
|
+
function ee2(e) {
|
|
15595
15599
|
return !!(e && e.__v_isReadonly);
|
|
15596
15600
|
}
|
|
15597
|
-
function
|
|
15601
|
+
function H(e) {
|
|
15598
15602
|
return !!(e && e.__v_isShallow);
|
|
15599
15603
|
}
|
|
15600
|
-
function
|
|
15604
|
+
function $t5(e) {
|
|
15601
15605
|
return e ? !!e.__v_raw : false;
|
|
15602
15606
|
}
|
|
15603
15607
|
function E2(e) {
|
|
15604
15608
|
const n = e && e.__v_raw;
|
|
15605
15609
|
return n ? E2(n) : e;
|
|
15606
15610
|
}
|
|
15607
|
-
var
|
|
15608
|
-
var Me2 = (e) =>
|
|
15611
|
+
var O2 = (e) => je(e) ? jn(e) : e;
|
|
15612
|
+
var Me2 = (e) => je(e) ? ve(e) : e;
|
|
15609
15613
|
function Z2(e) {
|
|
15610
15614
|
return e ? e.__v_isRef === true : false;
|
|
15611
15615
|
}
|
|
15612
15616
|
function ge2(e) {
|
|
15613
|
-
return
|
|
15617
|
+
return bt2(e, false);
|
|
15614
15618
|
}
|
|
15615
|
-
function
|
|
15616
|
-
return Z2(e) ? e : new
|
|
15619
|
+
function bt2(e, n) {
|
|
15620
|
+
return Z2(e) ? e : new wt(e, n);
|
|
15617
15621
|
}
|
|
15618
|
-
var
|
|
15622
|
+
var wt = class {
|
|
15619
15623
|
constructor(n, t) {
|
|
15620
|
-
this.dep = new
|
|
15624
|
+
this.dep = new Qe(), this.__v_isRef = true, this.__v_isShallow = false, this._rawValue = t ? n : E2(n), this._value = t ? n : O2(n), this.__v_isShallow = t;
|
|
15621
15625
|
}
|
|
15622
15626
|
get value() {
|
|
15623
15627
|
return process.env.NODE_ENV !== "production" ? this.dep.track({
|
|
@@ -15627,8 +15631,8 @@ var bt2 = class {
|
|
|
15627
15631
|
}) : this.dep.track(), this._value;
|
|
15628
15632
|
}
|
|
15629
15633
|
set value(n) {
|
|
15630
|
-
const t = this._rawValue,
|
|
15631
|
-
n =
|
|
15634
|
+
const t = this._rawValue, r2 = this.__v_isShallow || H(n) || ee2(n);
|
|
15635
|
+
n = r2 ? n : E2(n), q(n, t) && (this._rawValue = n, this._value = r2 ? n : O2(n), process.env.NODE_ENV !== "production" ? this.dep.trigger({
|
|
15632
15636
|
target: this,
|
|
15633
15637
|
type: "set",
|
|
15634
15638
|
key: "value",
|
|
@@ -15637,17 +15641,17 @@ var bt2 = class {
|
|
|
15637
15641
|
}) : this.dep.trigger());
|
|
15638
15642
|
}
|
|
15639
15643
|
};
|
|
15640
|
-
var
|
|
15641
|
-
constructor(n, t,
|
|
15642
|
-
this.fn = n, this.setter = t, this._value = void 0, this.dep = new
|
|
15644
|
+
var Nt2 = class {
|
|
15645
|
+
constructor(n, t, r2) {
|
|
15646
|
+
this.fn = n, this.setter = t, this._value = void 0, this.dep = new Qe(this), this.__v_isRef = true, this.deps = void 0, this.depsTail = void 0, this.flags = 16, this.globalVersion = re2 - 1, this.next = void 0, this.effect = this, this.__v_isReadonly = !t, this.isSSR = r2;
|
|
15643
15647
|
}
|
|
15644
15648
|
/**
|
|
15645
15649
|
* @internal
|
|
15646
15650
|
*/
|
|
15647
15651
|
notify() {
|
|
15648
15652
|
if (this.flags |= 16, !(this.flags & 8) && // avoid infinite self recursion
|
|
15649
|
-
|
|
15650
|
-
return
|
|
15653
|
+
A !== this)
|
|
15654
|
+
return qn(this, true), true;
|
|
15651
15655
|
process.env.NODE_ENV;
|
|
15652
15656
|
}
|
|
15653
15657
|
get value() {
|
|
@@ -15656,230 +15660,230 @@ var wt = class {
|
|
|
15656
15660
|
type: "get",
|
|
15657
15661
|
key: "value"
|
|
15658
15662
|
}) : this.dep.track();
|
|
15659
|
-
return
|
|
15663
|
+
return hn2(this), n && (n.version = this.dep.version), this._value;
|
|
15660
15664
|
}
|
|
15661
15665
|
set value(n) {
|
|
15662
15666
|
this.setter ? this.setter(n) : process.env.NODE_ENV !== "production" && X3("Write operation failed: computed value is readonly");
|
|
15663
15667
|
}
|
|
15664
15668
|
};
|
|
15665
|
-
function
|
|
15666
|
-
let
|
|
15667
|
-
|
|
15668
|
-
const
|
|
15669
|
-
return process.env.NODE_ENV,
|
|
15669
|
+
function Ke(e, n, t = false) {
|
|
15670
|
+
let r2, o;
|
|
15671
|
+
Un(e) ? r2 = e : (r2 = e.get, o = e.set);
|
|
15672
|
+
const s = new Nt2(r2, o, t);
|
|
15673
|
+
return process.env.NODE_ENV, s;
|
|
15670
15674
|
}
|
|
15671
|
-
var
|
|
15672
|
-
var
|
|
15675
|
+
var yt2 = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";
|
|
15676
|
+
var jt = (e = 21) => {
|
|
15673
15677
|
let n = "", t = crypto.getRandomValues(new Uint8Array(e |= 0));
|
|
15674
15678
|
for (; e--; )
|
|
15675
|
-
n +=
|
|
15679
|
+
n += yt2[t[e] & 63];
|
|
15676
15680
|
return n;
|
|
15677
15681
|
};
|
|
15678
15682
|
function Et(e, n = true, t = false) {
|
|
15679
|
-
const
|
|
15680
|
-
let
|
|
15681
|
-
const
|
|
15682
|
-
let
|
|
15683
|
+
const r2 = ge2();
|
|
15684
|
+
let o;
|
|
15685
|
+
const s = ge2(false);
|
|
15686
|
+
let p = () => {
|
|
15683
15687
|
};
|
|
15684
|
-
const
|
|
15685
|
-
apply: function(
|
|
15686
|
-
let
|
|
15688
|
+
const _ = new Proxy(e, {
|
|
15689
|
+
apply: function(i, a, l2) {
|
|
15690
|
+
let f;
|
|
15687
15691
|
try {
|
|
15688
|
-
|
|
15689
|
-
} catch (
|
|
15690
|
-
|
|
15692
|
+
f = i(...l2);
|
|
15693
|
+
} catch (b2) {
|
|
15694
|
+
f = b2;
|
|
15691
15695
|
}
|
|
15692
|
-
if (
|
|
15693
|
-
if (
|
|
15694
|
-
throw
|
|
15696
|
+
if (f instanceof Error) {
|
|
15697
|
+
if (r2.value = f, o = f, n)
|
|
15698
|
+
throw p(), f;
|
|
15695
15699
|
} else
|
|
15696
|
-
|
|
15700
|
+
s.value = true, r2.value = void 0, o = true, p();
|
|
15697
15701
|
}
|
|
15698
|
-
}),
|
|
15702
|
+
}), C2 = () => {
|
|
15699
15703
|
}, d = new Proxy(
|
|
15700
|
-
(
|
|
15701
|
-
|
|
15704
|
+
(i) => {
|
|
15705
|
+
r2.value = i;
|
|
15702
15706
|
},
|
|
15703
15707
|
{
|
|
15704
|
-
apply: function(
|
|
15705
|
-
|
|
15708
|
+
apply: function(i, a, l2) {
|
|
15709
|
+
i(...l2), C2(...l2);
|
|
15706
15710
|
}
|
|
15707
15711
|
}
|
|
15708
15712
|
);
|
|
15709
15713
|
return {
|
|
15710
|
-
promise: new Promise((
|
|
15711
|
-
if (n &&
|
|
15712
|
-
|
|
15714
|
+
promise: new Promise((i, a) => {
|
|
15715
|
+
if (n && o instanceof Error) {
|
|
15716
|
+
a(o);
|
|
15713
15717
|
return;
|
|
15714
|
-
} else if (
|
|
15715
|
-
|
|
15718
|
+
} else if (o === true) {
|
|
15719
|
+
i();
|
|
15716
15720
|
return;
|
|
15717
15721
|
}
|
|
15718
15722
|
let l2;
|
|
15719
15723
|
t && (l2 = setTimeout(() => {
|
|
15720
|
-
const
|
|
15721
|
-
|
|
15722
|
-
}, t)),
|
|
15723
|
-
l2 && (clearTimeout(l2), l2 = void 0),
|
|
15724
|
+
const f = new Error("timeout!");
|
|
15725
|
+
r2.value = f, n && a(f);
|
|
15726
|
+
}, t)), p = () => {
|
|
15727
|
+
l2 && (clearTimeout(l2), l2 = void 0), i();
|
|
15724
15728
|
};
|
|
15725
15729
|
}),
|
|
15726
|
-
callback:
|
|
15730
|
+
callback: _,
|
|
15727
15731
|
onError: d,
|
|
15728
|
-
resolved:
|
|
15729
|
-
error:
|
|
15732
|
+
resolved: Ke(() => s.value),
|
|
15733
|
+
error: Ke(() => r2.value)
|
|
15730
15734
|
};
|
|
15731
15735
|
}
|
|
15732
|
-
function
|
|
15733
|
-
return
|
|
15736
|
+
function Be() {
|
|
15737
|
+
return jt();
|
|
15734
15738
|
}
|
|
15735
|
-
function
|
|
15736
|
-
const e = {}, n = {}, t = /* @__PURE__ */ new WeakMap(),
|
|
15739
|
+
function At2() {
|
|
15740
|
+
const e = {}, n = {}, t = /* @__PURE__ */ new WeakMap(), r2 = {};
|
|
15737
15741
|
return Object.freeze({
|
|
15738
|
-
registerAgg(
|
|
15739
|
-
if (
|
|
15742
|
+
registerAgg(o) {
|
|
15743
|
+
if (o.isInitialized.value)
|
|
15740
15744
|
throw new Error("Agg must register before initialized");
|
|
15741
|
-
if (o
|
|
15745
|
+
if (r2[o.__id])
|
|
15742
15746
|
throw new Error("Agg already registered");
|
|
15743
|
-
|
|
15744
|
-
delete o
|
|
15745
|
-
}), o
|
|
15746
|
-
const
|
|
15747
|
-
for (const
|
|
15748
|
-
|
|
15749
|
-
for (const
|
|
15750
|
-
|
|
15751
|
-
t.set(
|
|
15747
|
+
o.type === "MultiInstance" && o.api.events.destroyed.watchPublish(() => {
|
|
15748
|
+
delete r2[o.__id];
|
|
15749
|
+
}), r2[o.__id] = o;
|
|
15750
|
+
const s = [];
|
|
15751
|
+
for (const p of Object.values(e))
|
|
15752
|
+
p.mount({ api: o.api, __aggId: o.__id, isInitialized: o.isInitialized });
|
|
15753
|
+
for (const p of Object.values(n))
|
|
15754
|
+
p.mount({ api: o.api, __aggId: o.__id }), s.push(p.__id);
|
|
15755
|
+
t.set(o, s);
|
|
15752
15756
|
},
|
|
15753
|
-
createSetupPlugin(
|
|
15754
|
-
let
|
|
15755
|
-
return
|
|
15756
|
-
__id:
|
|
15757
|
+
createSetupPlugin(o) {
|
|
15758
|
+
let s;
|
|
15759
|
+
return o instanceof Function ? s = o() : s = o, Object.freeze({
|
|
15760
|
+
__id: Be(),
|
|
15757
15761
|
type: "Setup",
|
|
15758
|
-
mount(
|
|
15759
|
-
if (
|
|
15762
|
+
mount(p) {
|
|
15763
|
+
if (p.isInitialized.value)
|
|
15760
15764
|
throw new Error("Can not setup after initialized");
|
|
15761
|
-
|
|
15765
|
+
s.mount({ api: p.api, __aggId: p.__aggId });
|
|
15762
15766
|
}
|
|
15763
15767
|
});
|
|
15764
15768
|
},
|
|
15765
|
-
createHotSwapPlugin(
|
|
15766
|
-
let
|
|
15767
|
-
return
|
|
15768
|
-
__id:
|
|
15769
|
+
createHotSwapPlugin(o) {
|
|
15770
|
+
let s;
|
|
15771
|
+
return o instanceof Function ? s = o() : s = o, Object.freeze({
|
|
15772
|
+
__id: Be(),
|
|
15769
15773
|
type: "HotSwap",
|
|
15770
|
-
mount:
|
|
15771
|
-
unmount:
|
|
15774
|
+
mount: s.mount,
|
|
15775
|
+
unmount: s.unmount
|
|
15772
15776
|
});
|
|
15773
15777
|
},
|
|
15774
|
-
registerPlugin(
|
|
15775
|
-
if (
|
|
15776
|
-
if (e[
|
|
15778
|
+
registerPlugin(o) {
|
|
15779
|
+
if (o.type === "Setup") {
|
|
15780
|
+
if (e[o.__id])
|
|
15777
15781
|
throw new Error("Plugin already registered");
|
|
15778
|
-
e[
|
|
15779
|
-
for (const
|
|
15780
|
-
|
|
15781
|
-
api:
|
|
15782
|
-
__aggId:
|
|
15783
|
-
isInitialized:
|
|
15782
|
+
e[o.__id] = o;
|
|
15783
|
+
for (const s in r2)
|
|
15784
|
+
o.mount({
|
|
15785
|
+
api: r2[s].api,
|
|
15786
|
+
__aggId: r2[s].__id,
|
|
15787
|
+
isInitialized: r2[s].isInitialized
|
|
15784
15788
|
});
|
|
15785
|
-
} else if (
|
|
15786
|
-
n[
|
|
15787
|
-
for (const
|
|
15788
|
-
t.has(
|
|
15789
|
+
} else if (o.type === "HotSwap") {
|
|
15790
|
+
n[o.__id] = o;
|
|
15791
|
+
for (const s in r2)
|
|
15792
|
+
t.has(r2[s]) && !t.get(r2[s]).includes(o.__id) && (o.mount({ api: r2[s].api, __aggId: r2[s].__id }), t.get(r2[s]).push(o.__id));
|
|
15789
15793
|
} else
|
|
15790
|
-
isNever(
|
|
15794
|
+
isNever(o);
|
|
15791
15795
|
},
|
|
15792
|
-
unregisterPlugin(
|
|
15793
|
-
if (
|
|
15796
|
+
unregisterPlugin(o) {
|
|
15797
|
+
if (o.type === "Setup")
|
|
15794
15798
|
throw new Error("Can not unregister setup plugin");
|
|
15795
|
-
if (
|
|
15796
|
-
for (const
|
|
15797
|
-
t.has(
|
|
15798
|
-
delete n[
|
|
15799
|
+
if (o.type === "HotSwap") {
|
|
15800
|
+
for (const s in r2)
|
|
15801
|
+
t.has(r2[s]) && t.get(r2[s]).includes(o.__id) && o.unmount({ api: r2[s].api, __aggId: r2[s].__id });
|
|
15802
|
+
delete n[o.__id];
|
|
15799
15803
|
} else
|
|
15800
|
-
isNever(
|
|
15804
|
+
isNever(o);
|
|
15801
15805
|
}
|
|
15802
15806
|
});
|
|
15803
15807
|
}
|
|
15804
|
-
function
|
|
15805
|
-
return
|
|
15808
|
+
function St(e) {
|
|
15809
|
+
return At2();
|
|
15806
15810
|
}
|
|
15807
|
-
function
|
|
15808
|
-
const n =
|
|
15811
|
+
function It2(e) {
|
|
15812
|
+
const n = Ot2(e);
|
|
15809
15813
|
return fe2({
|
|
15810
15814
|
states: n.states,
|
|
15811
15815
|
commands: n.commands,
|
|
15812
15816
|
events: n.events
|
|
15813
15817
|
});
|
|
15814
15818
|
}
|
|
15815
|
-
function
|
|
15819
|
+
function Ot2(e) {
|
|
15816
15820
|
const n = e.states;
|
|
15817
|
-
for (const
|
|
15818
|
-
n[
|
|
15819
|
-
const t = fe2(e.states),
|
|
15820
|
-
for (const
|
|
15821
|
-
|
|
15821
|
+
for (const p of Object.keys(e.states))
|
|
15822
|
+
n[p] = ve(n[p]);
|
|
15823
|
+
const t = fe2(e.states), r2 = ve(e.commands), o = {}, s = e.events;
|
|
15824
|
+
for (const p in e.events)
|
|
15825
|
+
o[p] = s[p].api;
|
|
15822
15826
|
return fe2({
|
|
15823
15827
|
states: t,
|
|
15824
|
-
commands:
|
|
15825
|
-
events: fe2(
|
|
15828
|
+
commands: r2,
|
|
15829
|
+
events: fe2(o),
|
|
15826
15830
|
destroy: e.destroy
|
|
15827
15831
|
});
|
|
15828
15832
|
}
|
|
15829
|
-
function
|
|
15833
|
+
function Tt(e) {
|
|
15830
15834
|
const {
|
|
15831
15835
|
callback: n,
|
|
15832
15836
|
onError: t,
|
|
15833
|
-
promise:
|
|
15834
|
-
resolved:
|
|
15837
|
+
promise: r2,
|
|
15838
|
+
resolved: o
|
|
15835
15839
|
} = Et(() => {
|
|
15836
15840
|
}, false, 5e3);
|
|
15837
|
-
function a
|
|
15838
|
-
if (
|
|
15841
|
+
function s(a) {
|
|
15842
|
+
if (o.value === true)
|
|
15839
15843
|
throw new Error("Agg already initialized");
|
|
15840
|
-
|
|
15844
|
+
p.push(a());
|
|
15841
15845
|
}
|
|
15842
|
-
const
|
|
15843
|
-
onCreated(
|
|
15844
|
-
Promise.resolve().then(
|
|
15846
|
+
const p = [], _ = e({
|
|
15847
|
+
onCreated(a) {
|
|
15848
|
+
Promise.resolve().then(a);
|
|
15845
15849
|
},
|
|
15846
|
-
onBeforeInitialize:
|
|
15847
|
-
isInitialized:
|
|
15848
|
-
untilInitialized:
|
|
15850
|
+
onBeforeInitialize: s,
|
|
15851
|
+
isInitialized: Ke(() => o.value),
|
|
15852
|
+
untilInitialized: r2
|
|
15849
15853
|
});
|
|
15850
15854
|
setTimeout(
|
|
15851
|
-
() => Promise.all(
|
|
15855
|
+
() => Promise.all(p).then(() => {
|
|
15852
15856
|
n();
|
|
15853
|
-
}).catch((
|
|
15854
|
-
t(
|
|
15857
|
+
}).catch((a) => {
|
|
15858
|
+
t(a);
|
|
15855
15859
|
}),
|
|
15856
15860
|
0
|
|
15857
15861
|
);
|
|
15858
|
-
const
|
|
15862
|
+
const C2 = _.states || {}, d = _.commands || {}, i = _.events || {};
|
|
15859
15863
|
return {
|
|
15860
|
-
__id:
|
|
15864
|
+
__id: Be(),
|
|
15861
15865
|
type: "Singleton",
|
|
15862
|
-
api:
|
|
15863
|
-
states:
|
|
15866
|
+
api: It2({
|
|
15867
|
+
states: C2,
|
|
15864
15868
|
commands: d,
|
|
15865
|
-
events:
|
|
15869
|
+
events: i,
|
|
15866
15870
|
destroy: () => {
|
|
15867
15871
|
}
|
|
15868
15872
|
}),
|
|
15869
|
-
isInitialized:
|
|
15873
|
+
isInitialized: o,
|
|
15870
15874
|
async untilInitialized() {
|
|
15871
|
-
return await
|
|
15872
|
-
throw new Error(`Failed to initialize Agg: ${
|
|
15873
|
-
Stack : ${
|
|
15875
|
+
return await r2.catch((a) => {
|
|
15876
|
+
throw new Error(`Failed to initialize Agg: ${a.message}
|
|
15877
|
+
Stack : ${a.stack || "unkown"}`);
|
|
15874
15878
|
});
|
|
15875
15879
|
}
|
|
15876
15880
|
};
|
|
15877
15881
|
}
|
|
15878
|
-
var
|
|
15882
|
+
var me;
|
|
15879
15883
|
function xt2(e) {
|
|
15880
|
-
return
|
|
15884
|
+
return Tt(() => {
|
|
15881
15885
|
const n = ge2(e), t = ge2({});
|
|
15882
|
-
let
|
|
15886
|
+
let r2 = () => [], o = () => [], s = () => [], p = () => [], _ = () => [], C2 = () => [], d = () => [];
|
|
15883
15887
|
return {
|
|
15884
15888
|
states: {
|
|
15885
15889
|
designer: n,
|
|
@@ -15891,131 +15895,131 @@ function xt2(e) {
|
|
|
15891
15895
|
},
|
|
15892
15896
|
clearCaches() {
|
|
15893
15897
|
},
|
|
15894
|
-
setContext(
|
|
15895
|
-
t.value =
|
|
15898
|
+
setContext(i) {
|
|
15899
|
+
t.value = i;
|
|
15896
15900
|
},
|
|
15897
|
-
setDomainDesigner(
|
|
15898
|
-
this.clearCaches(), n.value =
|
|
15901
|
+
setDomainDesigner(i) {
|
|
15902
|
+
this.clearCaches(), n.value = i;
|
|
15899
15903
|
},
|
|
15900
|
-
_genInfoCode(...
|
|
15901
|
-
return
|
|
15904
|
+
_genInfoCode(...i) {
|
|
15905
|
+
return r2(...i);
|
|
15902
15906
|
},
|
|
15903
|
-
_setInfoCodeProvider(
|
|
15904
|
-
|
|
15907
|
+
_setInfoCodeProvider(i) {
|
|
15908
|
+
r2 = i;
|
|
15905
15909
|
},
|
|
15906
|
-
_genCommandCode(...
|
|
15907
|
-
return
|
|
15910
|
+
_genCommandCode(...i) {
|
|
15911
|
+
return o(...i);
|
|
15908
15912
|
},
|
|
15909
|
-
_setCommandCodeProvider(
|
|
15910
|
-
|
|
15913
|
+
_setCommandCodeProvider(i) {
|
|
15914
|
+
o = i;
|
|
15911
15915
|
},
|
|
15912
|
-
_genFacadeCommandCode(...
|
|
15913
|
-
return
|
|
15916
|
+
_genFacadeCommandCode(...i) {
|
|
15917
|
+
return s(...i);
|
|
15914
15918
|
},
|
|
15915
|
-
_setFacadeCommandCodeProvider(
|
|
15916
|
-
|
|
15919
|
+
_setFacadeCommandCodeProvider(i) {
|
|
15920
|
+
s = i;
|
|
15917
15921
|
},
|
|
15918
|
-
_genAggCode(...
|
|
15919
|
-
return
|
|
15922
|
+
_genAggCode(...i) {
|
|
15923
|
+
return p(...i);
|
|
15920
15924
|
},
|
|
15921
|
-
_setAggCodeProvider(
|
|
15922
|
-
|
|
15925
|
+
_setAggCodeProvider(i) {
|
|
15926
|
+
p = i;
|
|
15923
15927
|
},
|
|
15924
|
-
_genEventCode(...
|
|
15925
|
-
return
|
|
15928
|
+
_genEventCode(...i) {
|
|
15929
|
+
return _(...i);
|
|
15926
15930
|
},
|
|
15927
|
-
_setEventCodeProvider(
|
|
15928
|
-
|
|
15931
|
+
_setEventCodeProvider(i) {
|
|
15932
|
+
_ = i;
|
|
15929
15933
|
},
|
|
15930
|
-
_genReadModelCode(...
|
|
15931
|
-
return
|
|
15934
|
+
_genReadModelCode(...i) {
|
|
15935
|
+
return C2(...i);
|
|
15932
15936
|
},
|
|
15933
|
-
_setReadModelCodeProvider(
|
|
15934
|
-
|
|
15937
|
+
_setReadModelCodeProvider(i) {
|
|
15938
|
+
C2 = i;
|
|
15935
15939
|
},
|
|
15936
|
-
_setCodeFileProvider(
|
|
15937
|
-
d =
|
|
15940
|
+
_setCodeFileProvider(i) {
|
|
15941
|
+
d = i;
|
|
15938
15942
|
}
|
|
15939
15943
|
}
|
|
15940
15944
|
};
|
|
15941
15945
|
});
|
|
15942
15946
|
}
|
|
15943
|
-
var
|
|
15944
|
-
function
|
|
15945
|
-
if (!
|
|
15947
|
+
var le2 = St();
|
|
15948
|
+
function Ao(e) {
|
|
15949
|
+
if (!me) {
|
|
15946
15950
|
if (!e)
|
|
15947
15951
|
throw new Error("designer is required");
|
|
15948
|
-
|
|
15952
|
+
me = xt2(e), le2.registerAgg(me);
|
|
15949
15953
|
}
|
|
15950
|
-
return
|
|
15954
|
+
return me.api;
|
|
15951
15955
|
}
|
|
15952
15956
|
function Ee(e) {
|
|
15953
15957
|
return e && e._attributes && e._attributes.rule === "Info";
|
|
15954
15958
|
}
|
|
15955
|
-
function
|
|
15959
|
+
function kt(e) {
|
|
15956
15960
|
return e && e._attributes && e._attributes.rule === "Agg";
|
|
15957
15961
|
}
|
|
15958
|
-
function
|
|
15962
|
+
function Dt(e) {
|
|
15959
15963
|
return e && e._attributes && e._attributes.rule === "Command";
|
|
15960
15964
|
}
|
|
15961
|
-
function
|
|
15965
|
+
function Ft2(e) {
|
|
15962
15966
|
return e && e._attributes && e._attributes.rule === "FacadeCommand";
|
|
15963
15967
|
}
|
|
15964
|
-
function
|
|
15968
|
+
function Pt(e) {
|
|
15965
15969
|
return e && e._attributes && e._attributes.rule === "Event";
|
|
15966
15970
|
}
|
|
15967
15971
|
function Vt(e) {
|
|
15968
15972
|
return e && e._attributes && e._attributes.rule === "ReadModel";
|
|
15969
15973
|
}
|
|
15970
|
-
var
|
|
15974
|
+
var Ge = process.env.NODE_ENV !== "production" ? Object.freeze({}) : {};
|
|
15971
15975
|
process.env.NODE_ENV !== "production" && Object.freeze([]);
|
|
15972
15976
|
var Rt2 = () => {
|
|
15973
15977
|
};
|
|
15974
|
-
var
|
|
15978
|
+
var Ht2 = (e) => e.charCodeAt(0) === 111 && e.charCodeAt(1) === 110 && // uppercase letter
|
|
15975
15979
|
(e.charCodeAt(2) > 122 || e.charCodeAt(2) < 97);
|
|
15976
|
-
var
|
|
15977
|
-
var
|
|
15978
|
-
var
|
|
15979
|
-
var
|
|
15980
|
-
var
|
|
15981
|
-
var
|
|
15982
|
-
var
|
|
15983
|
-
var
|
|
15984
|
-
function
|
|
15985
|
-
if (
|
|
15980
|
+
var Ae2 = Object.assign;
|
|
15981
|
+
var k2 = Array.isArray;
|
|
15982
|
+
var z = (e) => typeof e == "function";
|
|
15983
|
+
var L2 = (e) => typeof e == "string";
|
|
15984
|
+
var Lt2 = (e) => typeof e == "symbol";
|
|
15985
|
+
var B2 = (e) => e !== null && typeof e == "object";
|
|
15986
|
+
var ln2;
|
|
15987
|
+
var Se = () => ln2 || (ln2 = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : typeof global < "u" ? global : {});
|
|
15988
|
+
function tn2(e) {
|
|
15989
|
+
if (k2(e)) {
|
|
15986
15990
|
const n = {};
|
|
15987
15991
|
for (let t = 0; t < e.length; t++) {
|
|
15988
|
-
const
|
|
15989
|
-
if (
|
|
15990
|
-
for (const
|
|
15991
|
-
n[
|
|
15992
|
+
const r2 = e[t], o = L2(r2) ? Gt(r2) : tn2(r2);
|
|
15993
|
+
if (o)
|
|
15994
|
+
for (const s in o)
|
|
15995
|
+
n[s] = o[s];
|
|
15992
15996
|
}
|
|
15993
15997
|
return n;
|
|
15994
|
-
} else if (
|
|
15998
|
+
} else if (L2(e) || B2(e))
|
|
15995
15999
|
return e;
|
|
15996
16000
|
}
|
|
15997
16001
|
var Mt2 = /;(?![^(]*\))/g;
|
|
15998
|
-
var
|
|
15999
|
-
var
|
|
16000
|
-
function
|
|
16002
|
+
var Kt = /:([^]+)/;
|
|
16003
|
+
var Bt = /\/\*[^]*?\*\//g;
|
|
16004
|
+
function Gt(e) {
|
|
16001
16005
|
const n = {};
|
|
16002
|
-
return e.replace(
|
|
16006
|
+
return e.replace(Bt, "").split(Mt2).forEach((t) => {
|
|
16003
16007
|
if (t) {
|
|
16004
|
-
const
|
|
16005
|
-
|
|
16008
|
+
const r2 = t.split(Kt);
|
|
16009
|
+
r2.length > 1 && (n[r2[0].trim()] = r2[1].trim());
|
|
16006
16010
|
}
|
|
16007
16011
|
}), n;
|
|
16008
16012
|
}
|
|
16009
|
-
function
|
|
16013
|
+
function on2(e) {
|
|
16010
16014
|
let n = "";
|
|
16011
|
-
if (
|
|
16015
|
+
if (L2(e))
|
|
16012
16016
|
n = e;
|
|
16013
|
-
else if (
|
|
16017
|
+
else if (k2(e))
|
|
16014
16018
|
for (let t = 0; t < e.length; t++) {
|
|
16015
|
-
const
|
|
16016
|
-
|
|
16019
|
+
const r2 = on2(e[t]);
|
|
16020
|
+
r2 && (n += r2 + " ");
|
|
16017
16021
|
}
|
|
16018
|
-
else if (
|
|
16022
|
+
else if (B2(e))
|
|
16019
16023
|
for (const t in e)
|
|
16020
16024
|
e[t] && (n += t + " ");
|
|
16021
16025
|
return n.trim();
|
|
@@ -16030,67 +16034,67 @@ Symbol(
|
|
|
16030
16034
|
process.env.NODE_ENV !== "production" ? "Array iterate" : ""
|
|
16031
16035
|
);
|
|
16032
16036
|
new Set(
|
|
16033
|
-
/* @__PURE__ */ Object.getOwnPropertyNames(Symbol).filter((e) => e !== "arguments" && e !== "caller").map((e) => Symbol[e]).filter(
|
|
16037
|
+
/* @__PURE__ */ Object.getOwnPropertyNames(Symbol).filter((e) => e !== "arguments" && e !== "caller").map((e) => Symbol[e]).filter(Lt2)
|
|
16034
16038
|
);
|
|
16035
16039
|
function En2(e) {
|
|
16036
|
-
return
|
|
16040
|
+
return Ue(e) ? En2(e.__v_raw) : !!(e && e.__v_isReactive);
|
|
16037
16041
|
}
|
|
16038
|
-
function
|
|
16042
|
+
function Ue(e) {
|
|
16039
16043
|
return !!(e && e.__v_isReadonly);
|
|
16040
16044
|
}
|
|
16041
|
-
function
|
|
16045
|
+
function Te(e) {
|
|
16042
16046
|
return !!(e && e.__v_isShallow);
|
|
16043
16047
|
}
|
|
16044
|
-
function
|
|
16048
|
+
function ze(e) {
|
|
16045
16049
|
return e ? !!e.__v_raw : false;
|
|
16046
16050
|
}
|
|
16047
|
-
function
|
|
16051
|
+
function G(e) {
|
|
16048
16052
|
const n = e && e.__v_raw;
|
|
16049
|
-
return n ?
|
|
16053
|
+
return n ? G(n) : e;
|
|
16050
16054
|
}
|
|
16051
|
-
function
|
|
16055
|
+
function sn2(e) {
|
|
16052
16056
|
return e ? e.__v_isRef === true : false;
|
|
16053
16057
|
}
|
|
16054
|
-
var
|
|
16055
|
-
function
|
|
16056
|
-
|
|
16058
|
+
var U = [];
|
|
16059
|
+
function Ut(e) {
|
|
16060
|
+
U.push(e);
|
|
16057
16061
|
}
|
|
16058
|
-
function
|
|
16059
|
-
|
|
16062
|
+
function zt() {
|
|
16063
|
+
U.pop();
|
|
16060
16064
|
}
|
|
16061
16065
|
var xe2 = false;
|
|
16062
|
-
function
|
|
16066
|
+
function ie2(e, ...n) {
|
|
16063
16067
|
if (xe2) return;
|
|
16064
16068
|
xe2 = true;
|
|
16065
|
-
const t =
|
|
16066
|
-
if (
|
|
16067
|
-
|
|
16068
|
-
|
|
16069
|
+
const t = U.length ? U[U.length - 1].component : null, r2 = t && t.appContext.config.warnHandler, o = Jt();
|
|
16070
|
+
if (r2)
|
|
16071
|
+
rn2(
|
|
16072
|
+
r2,
|
|
16069
16073
|
t,
|
|
16070
16074
|
11,
|
|
16071
16075
|
[
|
|
16072
16076
|
// eslint-disable-next-line no-restricted-syntax
|
|
16073
|
-
e + n.map((
|
|
16074
|
-
var
|
|
16075
|
-
return (
|
|
16077
|
+
e + n.map((s) => {
|
|
16078
|
+
var p, _;
|
|
16079
|
+
return (_ = (p = s.toString) == null ? void 0 : p.call(s)) != null ? _ : JSON.stringify(s);
|
|
16076
16080
|
}).join(""),
|
|
16077
16081
|
t && t.proxy,
|
|
16078
|
-
|
|
16079
|
-
({ vnode:
|
|
16082
|
+
o.map(
|
|
16083
|
+
({ vnode: s }) => `at <${Ln(t, s.type)}>`
|
|
16080
16084
|
).join(`
|
|
16081
16085
|
`),
|
|
16082
|
-
|
|
16086
|
+
o
|
|
16083
16087
|
]
|
|
16084
16088
|
);
|
|
16085
16089
|
else {
|
|
16086
|
-
const
|
|
16087
|
-
|
|
16088
|
-
`, ...Wt(
|
|
16090
|
+
const s = [`[Vue warn]: ${e}`, ...n];
|
|
16091
|
+
o.length && s.push(`
|
|
16092
|
+
`, ...Wt(o));
|
|
16089
16093
|
}
|
|
16090
16094
|
xe2 = false;
|
|
16091
16095
|
}
|
|
16092
|
-
function
|
|
16093
|
-
let e =
|
|
16096
|
+
function Jt() {
|
|
16097
|
+
let e = U[U.length - 1];
|
|
16094
16098
|
if (!e)
|
|
16095
16099
|
return [];
|
|
16096
16100
|
const n = [];
|
|
@@ -16100,36 +16104,36 @@ function Gt() {
|
|
|
16100
16104
|
vnode: e,
|
|
16101
16105
|
recurseCount: 0
|
|
16102
16106
|
});
|
|
16103
|
-
const
|
|
16104
|
-
e =
|
|
16107
|
+
const r2 = e.component && e.component.parent;
|
|
16108
|
+
e = r2 && r2.vnode;
|
|
16105
16109
|
}
|
|
16106
16110
|
return n;
|
|
16107
16111
|
}
|
|
16108
16112
|
function Wt(e) {
|
|
16109
16113
|
const n = [];
|
|
16110
|
-
return e.forEach((t,
|
|
16111
|
-
n.push(...
|
|
16112
|
-
`], ...
|
|
16114
|
+
return e.forEach((t, r2) => {
|
|
16115
|
+
n.push(...r2 === 0 ? [] : [`
|
|
16116
|
+
`], ...Yt2(t));
|
|
16113
16117
|
}), n;
|
|
16114
16118
|
}
|
|
16115
|
-
function
|
|
16116
|
-
const t = n > 0 ? `... (${n} recursive calls)` : "",
|
|
16119
|
+
function Yt2({ vnode: e, recurseCount: n }) {
|
|
16120
|
+
const t = n > 0 ? `... (${n} recursive calls)` : "", r2 = e.component ? e.component.parent == null : false, o = ` at <${Ln(
|
|
16117
16121
|
e.component,
|
|
16118
16122
|
e.type,
|
|
16119
|
-
|
|
16120
|
-
)}`,
|
|
16121
|
-
return e.props ? [
|
|
16123
|
+
r2
|
|
16124
|
+
)}`, s = ">" + t;
|
|
16125
|
+
return e.props ? [o, ...qt2(e.props), s] : [o + s];
|
|
16122
16126
|
}
|
|
16123
|
-
function
|
|
16127
|
+
function qt2(e) {
|
|
16124
16128
|
const n = [], t = Object.keys(e);
|
|
16125
|
-
return t.slice(0, 3).forEach((
|
|
16126
|
-
n.push(...
|
|
16129
|
+
return t.slice(0, 3).forEach((r2) => {
|
|
16130
|
+
n.push(...An2(r2, e[r2]));
|
|
16127
16131
|
}), t.length > 3 && n.push(" ..."), n;
|
|
16128
16132
|
}
|
|
16129
|
-
function
|
|
16130
|
-
return
|
|
16133
|
+
function An2(e, n, t) {
|
|
16134
|
+
return L2(n) ? (n = JSON.stringify(n), t ? n : [`${e}=${n}`]) : typeof n == "number" || typeof n == "boolean" || n == null ? t ? n : [`${e}=${n}`] : sn2(n) ? (n = An2(e, G(n.value), true), t ? n : [`${e}=Ref<`, n, ">"]) : z(n) ? [`${e}=fn${n.name ? `<${n.name}>` : ""}`] : (n = G(n), t ? n : [`${e}=`, n]);
|
|
16131
16135
|
}
|
|
16132
|
-
var
|
|
16136
|
+
var Sn2 = {
|
|
16133
16137
|
sp: "serverPrefetch hook",
|
|
16134
16138
|
bc: "beforeCreate hook",
|
|
16135
16139
|
c: "created hook",
|
|
@@ -16162,102 +16166,102 @@ var jn = {
|
|
|
16162
16166
|
15: "component update",
|
|
16163
16167
|
16: "app unmount cleanup function"
|
|
16164
16168
|
};
|
|
16165
|
-
function
|
|
16169
|
+
function rn2(e, n, t, r2) {
|
|
16166
16170
|
try {
|
|
16167
|
-
return
|
|
16168
|
-
} catch (
|
|
16169
|
-
|
|
16171
|
+
return r2 ? e(...r2) : e();
|
|
16172
|
+
} catch (o) {
|
|
16173
|
+
In2(o, n, t);
|
|
16170
16174
|
}
|
|
16171
16175
|
}
|
|
16172
|
-
function
|
|
16173
|
-
const
|
|
16176
|
+
function In2(e, n, t, r2 = true) {
|
|
16177
|
+
const o = n ? n.vnode : null, { errorHandler: s, throwUnhandledErrorInProduction: p } = n && n.appContext.config || Ge;
|
|
16174
16178
|
if (n) {
|
|
16175
|
-
let
|
|
16176
|
-
const
|
|
16177
|
-
for (;
|
|
16178
|
-
const
|
|
16179
|
-
if (
|
|
16180
|
-
for (let
|
|
16181
|
-
if (
|
|
16179
|
+
let _ = n.parent;
|
|
16180
|
+
const C2 = n.proxy, d = process.env.NODE_ENV !== "production" ? Sn2[t] : `https://vuejs.org/error-reference/#runtime-${t}`;
|
|
16181
|
+
for (; _; ) {
|
|
16182
|
+
const i = _.ec;
|
|
16183
|
+
if (i) {
|
|
16184
|
+
for (let a = 0; a < i.length; a++)
|
|
16185
|
+
if (i[a](e, C2, d) === false)
|
|
16182
16186
|
return;
|
|
16183
16187
|
}
|
|
16184
|
-
|
|
16188
|
+
_ = _.parent;
|
|
16185
16189
|
}
|
|
16186
|
-
if (
|
|
16187
|
-
|
|
16190
|
+
if (s) {
|
|
16191
|
+
rn2(s, null, 10, [
|
|
16188
16192
|
e,
|
|
16189
|
-
|
|
16193
|
+
C2,
|
|
16190
16194
|
d
|
|
16191
16195
|
]);
|
|
16192
16196
|
return;
|
|
16193
16197
|
}
|
|
16194
16198
|
}
|
|
16195
|
-
Zt(e, t,
|
|
16199
|
+
Zt(e, t, o, r2, p);
|
|
16196
16200
|
}
|
|
16197
|
-
function Zt(e, n, t,
|
|
16201
|
+
function Zt(e, n, t, r2 = true, o = false) {
|
|
16198
16202
|
if (process.env.NODE_ENV !== "production") {
|
|
16199
|
-
const
|
|
16200
|
-
if (t &&
|
|
16203
|
+
const s = Sn2[n];
|
|
16204
|
+
if (t && Ut(t), ie2(`Unhandled error${s ? ` during execution of ${s}` : ""}`), t && zt(), r2)
|
|
16201
16205
|
throw e;
|
|
16202
|
-
} else if (
|
|
16206
|
+
} else if (o)
|
|
16203
16207
|
throw e;
|
|
16204
16208
|
}
|
|
16205
16209
|
var x2 = [];
|
|
16206
|
-
var
|
|
16207
|
-
var
|
|
16208
|
-
var
|
|
16210
|
+
var F3 = -1;
|
|
16211
|
+
var Q2 = [];
|
|
16212
|
+
var P3 = null;
|
|
16209
16213
|
var W2 = 0;
|
|
16210
|
-
var
|
|
16211
|
-
var
|
|
16214
|
+
var Qt = /* @__PURE__ */ Promise.resolve();
|
|
16215
|
+
var Je = null;
|
|
16212
16216
|
var Xt = 100;
|
|
16213
|
-
function
|
|
16214
|
-
let n =
|
|
16217
|
+
function eo(e) {
|
|
16218
|
+
let n = F3 + 1, t = x2.length;
|
|
16215
16219
|
for (; n < t; ) {
|
|
16216
|
-
const
|
|
16217
|
-
|
|
16220
|
+
const r2 = n + t >>> 1, o = x2[r2], s = ce2(o);
|
|
16221
|
+
s < e || s === e && o.flags & 2 ? n = r2 + 1 : t = r2;
|
|
16218
16222
|
}
|
|
16219
16223
|
return n;
|
|
16220
16224
|
}
|
|
16221
|
-
function
|
|
16225
|
+
function no(e) {
|
|
16222
16226
|
if (!(e.flags & 1)) {
|
|
16223
|
-
const n =
|
|
16227
|
+
const n = ce2(e), t = x2[x2.length - 1];
|
|
16224
16228
|
!t || // fast path when the job id is larger than the tail
|
|
16225
|
-
!(e.flags & 2) && n >=
|
|
16229
|
+
!(e.flags & 2) && n >= ce2(t) ? x2.push(e) : x2.splice(eo(n), 0, e), e.flags |= 1, On2();
|
|
16226
16230
|
}
|
|
16227
16231
|
}
|
|
16228
|
-
function
|
|
16229
|
-
|
|
16230
|
-
}
|
|
16231
|
-
function no(e) {
|
|
16232
|
-
D2(e) ? q.push(...e) : F3 && e.id === -1 ? F3.splice(W2 + 1, 0, e) : e.flags & 1 || (q.push(e), e.flags |= 1), An2();
|
|
16232
|
+
function On2() {
|
|
16233
|
+
Je || (Je = Qt.then(Tn2));
|
|
16233
16234
|
}
|
|
16234
16235
|
function to(e) {
|
|
16235
|
-
|
|
16236
|
-
|
|
16237
|
-
|
|
16236
|
+
k2(e) ? Q2.push(...e) : P3 && e.id === -1 ? P3.splice(W2 + 1, 0, e) : e.flags & 1 || (Q2.push(e), e.flags |= 1), On2();
|
|
16237
|
+
}
|
|
16238
|
+
function oo(e) {
|
|
16239
|
+
if (Q2.length) {
|
|
16240
|
+
const n = [...new Set(Q2)].sort(
|
|
16241
|
+
(t, r2) => ce2(t) - ce2(r2)
|
|
16238
16242
|
);
|
|
16239
|
-
if (
|
|
16240
|
-
|
|
16243
|
+
if (Q2.length = 0, P3) {
|
|
16244
|
+
P3.push(...n);
|
|
16241
16245
|
return;
|
|
16242
16246
|
}
|
|
16243
|
-
for (
|
|
16244
|
-
const t =
|
|
16247
|
+
for (P3 = n, process.env.NODE_ENV !== "production" && (e = e || /* @__PURE__ */ new Map()), W2 = 0; W2 < P3.length; W2++) {
|
|
16248
|
+
const t = P3[W2];
|
|
16245
16249
|
process.env.NODE_ENV !== "production" && xn2(e, t) || (t.flags & 4 && (t.flags &= -2), t.flags & 8 || t(), t.flags &= -2);
|
|
16246
16250
|
}
|
|
16247
|
-
|
|
16251
|
+
P3 = null, W2 = 0;
|
|
16248
16252
|
}
|
|
16249
16253
|
}
|
|
16250
|
-
var
|
|
16251
|
-
function
|
|
16254
|
+
var ce2 = (e) => e.id == null ? e.flags & 2 ? -1 : 1 / 0 : e.id;
|
|
16255
|
+
function Tn2(e) {
|
|
16252
16256
|
process.env.NODE_ENV !== "production" && (e = e || /* @__PURE__ */ new Map());
|
|
16253
16257
|
const n = process.env.NODE_ENV !== "production" ? (t) => xn2(e, t) : Rt2;
|
|
16254
16258
|
try {
|
|
16255
|
-
for (
|
|
16256
|
-
const t = x2[
|
|
16259
|
+
for (F3 = 0; F3 < x2.length; F3++) {
|
|
16260
|
+
const t = x2[F3];
|
|
16257
16261
|
if (t && !(t.flags & 8)) {
|
|
16258
16262
|
if (process.env.NODE_ENV !== "production" && n(t))
|
|
16259
16263
|
continue;
|
|
16260
|
-
t.flags & 4 && (t.flags &= -2),
|
|
16264
|
+
t.flags & 4 && (t.flags &= -2), rn2(
|
|
16261
16265
|
t,
|
|
16262
16266
|
t.i,
|
|
16263
16267
|
t.i ? 15 : 14
|
|
@@ -16265,69 +16269,69 @@ function In2(e) {
|
|
|
16265
16269
|
}
|
|
16266
16270
|
}
|
|
16267
16271
|
} finally {
|
|
16268
|
-
for (;
|
|
16269
|
-
const t = x2[
|
|
16272
|
+
for (; F3 < x2.length; F3++) {
|
|
16273
|
+
const t = x2[F3];
|
|
16270
16274
|
t && (t.flags &= -2);
|
|
16271
16275
|
}
|
|
16272
|
-
|
|
16276
|
+
F3 = -1, x2.length = 0, oo(e), Je = null, (x2.length || Q2.length) && Tn2(e);
|
|
16273
16277
|
}
|
|
16274
16278
|
}
|
|
16275
16279
|
function xn2(e, n) {
|
|
16276
16280
|
const t = e.get(n) || 0;
|
|
16277
16281
|
if (t > Xt) {
|
|
16278
|
-
const
|
|
16279
|
-
return
|
|
16280
|
-
`Maximum recursive updates exceeded${
|
|
16282
|
+
const r2 = n.i, o = r2 && Hn(r2.type);
|
|
16283
|
+
return In2(
|
|
16284
|
+
`Maximum recursive updates exceeded${o ? ` in component <${o}>` : ""}. This means you have a reactive effect that is mutating its own dependencies and thus recursively triggering itself. Possible sources include component template, render function, updated hook or watcher source function.`,
|
|
16281
16285
|
null,
|
|
16282
16286
|
10
|
|
16283
16287
|
), true;
|
|
16284
16288
|
}
|
|
16285
16289
|
return e.set(n, t + 1), false;
|
|
16286
16290
|
}
|
|
16287
|
-
var
|
|
16288
|
-
process.env.NODE_ENV !== "production" && (
|
|
16289
|
-
createRecord:
|
|
16290
|
-
rerender:
|
|
16291
|
-
reload:
|
|
16291
|
+
var ke = /* @__PURE__ */ new Map();
|
|
16292
|
+
process.env.NODE_ENV !== "production" && (Se().__VUE_HMR_RUNTIME__ = {
|
|
16293
|
+
createRecord: De2(so),
|
|
16294
|
+
rerender: De2(ro),
|
|
16295
|
+
reload: De2(ao)
|
|
16292
16296
|
});
|
|
16293
|
-
var
|
|
16294
|
-
function
|
|
16295
|
-
return
|
|
16296
|
-
initialDef:
|
|
16297
|
+
var _e2 = /* @__PURE__ */ new Map();
|
|
16298
|
+
function so(e, n) {
|
|
16299
|
+
return _e2.has(e) ? false : (_e2.set(e, {
|
|
16300
|
+
initialDef: Ce(n),
|
|
16297
16301
|
instances: /* @__PURE__ */ new Set()
|
|
16298
16302
|
}), true);
|
|
16299
16303
|
}
|
|
16300
|
-
function
|
|
16304
|
+
function Ce(e) {
|
|
16301
16305
|
return Mn2(e) ? e.__vccOpts : e;
|
|
16302
16306
|
}
|
|
16303
|
-
function
|
|
16304
|
-
const t =
|
|
16305
|
-
t && (t.initialDef.render = n, [...t.instances].forEach((
|
|
16306
|
-
n && (
|
|
16307
|
+
function ro(e, n) {
|
|
16308
|
+
const t = _e2.get(e);
|
|
16309
|
+
t && (t.initialDef.render = n, [...t.instances].forEach((r2) => {
|
|
16310
|
+
n && (r2.render = n, Ce(r2.type).render = n), r2.renderCache = [], r2.update();
|
|
16307
16311
|
}));
|
|
16308
16312
|
}
|
|
16309
|
-
function
|
|
16310
|
-
const t =
|
|
16313
|
+
function ao(e, n) {
|
|
16314
|
+
const t = _e2.get(e);
|
|
16311
16315
|
if (!t) return;
|
|
16312
|
-
n =
|
|
16313
|
-
const
|
|
16314
|
-
for (let
|
|
16315
|
-
const
|
|
16316
|
-
let
|
|
16317
|
-
|
|
16318
|
-
|
|
16319
|
-
}) :
|
|
16320
|
-
}
|
|
16321
|
-
|
|
16322
|
-
|
|
16316
|
+
n = Ce(n), pn2(t.initialDef, n);
|
|
16317
|
+
const r2 = [...t.instances];
|
|
16318
|
+
for (let o = 0; o < r2.length; o++) {
|
|
16319
|
+
const s = r2[o], p = Ce(s.type);
|
|
16320
|
+
let _ = ke.get(p);
|
|
16321
|
+
_ || (p !== t.initialDef && pn2(p, n), ke.set(p, _ = /* @__PURE__ */ new Set())), _.add(s), s.appContext.propsCache.delete(s.type), s.appContext.emitsCache.delete(s.type), s.appContext.optionsCache.delete(s.type), s.ceReload ? (_.add(s), s.ceReload(n.styles), _.delete(s)) : s.parent ? no(() => {
|
|
16322
|
+
s.parent.update(), _.delete(s);
|
|
16323
|
+
}) : s.appContext.reload ? s.appContext.reload() : typeof window < "u" && window.location.reload(), s.root.ce && s !== s.root && s.root.ce._removeChildStyle(p);
|
|
16324
|
+
}
|
|
16325
|
+
to(() => {
|
|
16326
|
+
ke.clear();
|
|
16323
16327
|
});
|
|
16324
16328
|
}
|
|
16325
|
-
function
|
|
16326
|
-
|
|
16329
|
+
function pn2(e, n) {
|
|
16330
|
+
Ae2(e, n);
|
|
16327
16331
|
for (const t in e)
|
|
16328
16332
|
t !== "__file" && !(t in n) && delete e[t];
|
|
16329
16333
|
}
|
|
16330
|
-
function
|
|
16334
|
+
function De2(e) {
|
|
16331
16335
|
return (n, t) => {
|
|
16332
16336
|
try {
|
|
16333
16337
|
return e(n, t);
|
|
@@ -16335,43 +16339,43 @@ function Pe(e) {
|
|
|
16335
16339
|
}
|
|
16336
16340
|
};
|
|
16337
16341
|
}
|
|
16338
|
-
var
|
|
16339
|
-
var
|
|
16340
|
-
var
|
|
16341
|
-
function
|
|
16342
|
-
e.shapeFlag & 6 && e.component ? (e.transition = n,
|
|
16342
|
+
var $e2 = null;
|
|
16343
|
+
var io = null;
|
|
16344
|
+
var co = (e) => e.__isTeleport;
|
|
16345
|
+
function kn(e, n) {
|
|
16346
|
+
e.shapeFlag & 6 && e.component ? (e.transition = n, kn(e.component.subTree, n)) : e.shapeFlag & 128 ? (e.ssContent.transition = n.clone(e.ssContent), e.ssFallback.transition = n.clone(e.ssFallback)) : e.transition = n;
|
|
16343
16347
|
}
|
|
16344
|
-
|
|
16345
|
-
|
|
16346
|
-
var
|
|
16348
|
+
Se().requestIdleCallback;
|
|
16349
|
+
Se().cancelIdleCallback;
|
|
16350
|
+
var uo = Symbol.for("v-ndc");
|
|
16347
16351
|
process.env.NODE_ENV;
|
|
16348
|
-
var
|
|
16349
|
-
var
|
|
16350
|
-
var
|
|
16351
|
-
var
|
|
16352
|
-
var
|
|
16352
|
+
var lo = {};
|
|
16353
|
+
var Dn2 = (e) => Object.getPrototypeOf(e) === lo;
|
|
16354
|
+
var po = (e) => e.__isSuspense;
|
|
16355
|
+
var Fn2 = Symbol.for("v-fgt");
|
|
16356
|
+
var mo = Symbol.for("v-txt");
|
|
16353
16357
|
var fo = Symbol.for("v-cmt");
|
|
16354
|
-
function
|
|
16358
|
+
function ho(e) {
|
|
16355
16359
|
return e ? e.__v_isVNode === true : false;
|
|
16356
16360
|
}
|
|
16357
|
-
var
|
|
16361
|
+
var vo = (...e) => Vn2(
|
|
16358
16362
|
...e
|
|
16359
16363
|
);
|
|
16360
|
-
var
|
|
16361
|
-
var
|
|
16364
|
+
var Pn = ({ key: e }) => e ?? null;
|
|
16365
|
+
var he2 = ({
|
|
16362
16366
|
ref: e,
|
|
16363
16367
|
ref_key: n,
|
|
16364
16368
|
ref_for: t
|
|
16365
|
-
}) => (typeof e == "number" && (e = "" + e), e != null ?
|
|
16366
|
-
function go(e, n = null, t = null,
|
|
16367
|
-
const
|
|
16369
|
+
}) => (typeof e == "number" && (e = "" + e), e != null ? L2(e) || sn2(e) || z(e) ? { i: $e2, r: e, k: n, f: !!t } : e : null);
|
|
16370
|
+
function go(e, n = null, t = null, r2 = 0, o = null, s = e === Fn2 ? 0 : 1, p = false, _ = false) {
|
|
16371
|
+
const C2 = {
|
|
16368
16372
|
__v_isVNode: true,
|
|
16369
16373
|
__v_skip: true,
|
|
16370
16374
|
type: e,
|
|
16371
16375
|
props: n,
|
|
16372
|
-
key: n &&
|
|
16373
|
-
ref: n &&
|
|
16374
|
-
scopeId:
|
|
16376
|
+
key: n && Pn(n),
|
|
16377
|
+
ref: n && he2(n),
|
|
16378
|
+
scopeId: io,
|
|
16375
16379
|
slotScopeIds: null,
|
|
16376
16380
|
children: t,
|
|
16377
16381
|
component: null,
|
|
@@ -16386,33 +16390,33 @@ function go(e, n = null, t = null, o = 0, s = null, a = e === Tn2 ? 0 : 1, c = f
|
|
|
16386
16390
|
targetStart: null,
|
|
16387
16391
|
targetAnchor: null,
|
|
16388
16392
|
staticCount: 0,
|
|
16389
|
-
shapeFlag:
|
|
16390
|
-
patchFlag:
|
|
16391
|
-
dynamicProps:
|
|
16393
|
+
shapeFlag: s,
|
|
16394
|
+
patchFlag: r2,
|
|
16395
|
+
dynamicProps: o,
|
|
16392
16396
|
dynamicChildren: null,
|
|
16393
16397
|
appContext: null,
|
|
16394
|
-
ctx:
|
|
16398
|
+
ctx: $e2
|
|
16395
16399
|
};
|
|
16396
|
-
return
|
|
16400
|
+
return _ ? (an2(C2, t), s & 128 && e.normalize(C2)) : t && (C2.shapeFlag |= L2(t) ? 8 : 16), process.env.NODE_ENV !== "production" && C2.key !== C2.key && ie2("VNode created with invalid key (NaN). VNode type:", C2.type), C2;
|
|
16397
16401
|
}
|
|
16398
|
-
var
|
|
16399
|
-
function Vn2(e, n = null, t = null,
|
|
16400
|
-
if ((!e || e ===
|
|
16401
|
-
const
|
|
16402
|
+
var _o = process.env.NODE_ENV !== "production" ? vo : Vn2;
|
|
16403
|
+
function Vn2(e, n = null, t = null, r2 = 0, o = null, s = false) {
|
|
16404
|
+
if ((!e || e === uo) && (process.env.NODE_ENV !== "production" && !e && ie2(`Invalid vnode type when creating vnode: ${e}.`), e = fo), ho(e)) {
|
|
16405
|
+
const _ = be2(
|
|
16402
16406
|
e,
|
|
16403
16407
|
n,
|
|
16404
16408
|
true
|
|
16405
16409
|
/* mergeRef: true */
|
|
16406
16410
|
);
|
|
16407
|
-
return t &&
|
|
16411
|
+
return t && an2(_, t), _.patchFlag = -2, _;
|
|
16408
16412
|
}
|
|
16409
16413
|
if (Mn2(e) && (e = e.__vccOpts), n) {
|
|
16410
|
-
n =
|
|
16411
|
-
let { class:
|
|
16412
|
-
|
|
16414
|
+
n = Co(n);
|
|
16415
|
+
let { class: _, style: C2 } = n;
|
|
16416
|
+
_ && !L2(_) && (n.class = on2(_)), B2(C2) && (ze(C2) && !k2(C2) && (C2 = Ae2({}, C2)), n.style = tn2(C2));
|
|
16413
16417
|
}
|
|
16414
|
-
const
|
|
16415
|
-
return process.env.NODE_ENV !== "production" &&
|
|
16418
|
+
const p = L2(e) ? 1 : po(e) ? 128 : co(e) ? 64 : B2(e) ? 4 : z(e) ? 2 : 0;
|
|
16419
|
+
return process.env.NODE_ENV !== "production" && p & 4 && ze(e) && (e = G(e), ie2(
|
|
16416
16420
|
"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`.",
|
|
16417
16421
|
`
|
|
16418
16422
|
Component that was made reactive: `,
|
|
@@ -16421,32 +16425,32 @@ Component that was made reactive: `,
|
|
|
16421
16425
|
e,
|
|
16422
16426
|
n,
|
|
16423
16427
|
t,
|
|
16428
|
+
r2,
|
|
16424
16429
|
o,
|
|
16430
|
+
p,
|
|
16425
16431
|
s,
|
|
16426
|
-
c,
|
|
16427
|
-
a,
|
|
16428
16432
|
true
|
|
16429
16433
|
);
|
|
16430
16434
|
}
|
|
16431
|
-
function
|
|
16432
|
-
return e ?
|
|
16435
|
+
function Co(e) {
|
|
16436
|
+
return e ? ze(e) || Dn2(e) ? Ae2({}, e) : e : null;
|
|
16433
16437
|
}
|
|
16434
|
-
function
|
|
16435
|
-
const { props:
|
|
16438
|
+
function be2(e, n, t = false, r2 = false) {
|
|
16439
|
+
const { props: o, ref: s, patchFlag: p, children: _, transition: C2 } = e, d = n ? bo(o || {}, n) : o, i = {
|
|
16436
16440
|
__v_isVNode: true,
|
|
16437
16441
|
__v_skip: true,
|
|
16438
16442
|
type: e.type,
|
|
16439
16443
|
props: d,
|
|
16440
|
-
key: d &&
|
|
16444
|
+
key: d && Pn(d),
|
|
16441
16445
|
ref: n && n.ref ? (
|
|
16442
16446
|
// #2078 in the case of <component :is="vnode" ref="extra"/>
|
|
16443
16447
|
// if the vnode itself already has a ref, cloneVNode will need to merge
|
|
16444
16448
|
// the refs so the single vnode can be set on multiple refs
|
|
16445
|
-
t &&
|
|
16446
|
-
) :
|
|
16449
|
+
t && s ? k2(s) ? s.concat(he2(n)) : [s, he2(n)] : he2(n)
|
|
16450
|
+
) : s,
|
|
16447
16451
|
scopeId: e.scopeId,
|
|
16448
16452
|
slotScopeIds: e.slotScopeIds,
|
|
16449
|
-
children: process.env.NODE_ENV !== "production" &&
|
|
16453
|
+
children: process.env.NODE_ENV !== "production" && p === -1 && k2(_) ? _.map(Rn2) : _,
|
|
16450
16454
|
target: e.target,
|
|
16451
16455
|
targetStart: e.targetStart,
|
|
16452
16456
|
targetAnchor: e.targetAnchor,
|
|
@@ -16456,75 +16460,75 @@ function $e2(e, n, t = false, o = false) {
|
|
|
16456
16460
|
// existing patch flag to be reliable and need to add the FULL_PROPS flag.
|
|
16457
16461
|
// note: preserve flag for fragments since they use the flag for children
|
|
16458
16462
|
// fast paths only.
|
|
16459
|
-
patchFlag: n && e.type !==
|
|
16463
|
+
patchFlag: n && e.type !== Fn2 ? p === -1 ? 16 : p | 16 : p,
|
|
16460
16464
|
dynamicProps: e.dynamicProps,
|
|
16461
16465
|
dynamicChildren: e.dynamicChildren,
|
|
16462
16466
|
appContext: e.appContext,
|
|
16463
16467
|
dirs: e.dirs,
|
|
16464
|
-
transition:
|
|
16468
|
+
transition: C2,
|
|
16465
16469
|
// These should technically only be non-null on mounted VNodes. However,
|
|
16466
16470
|
// they *should* be copied for kept-alive vnodes. So we just always copy
|
|
16467
16471
|
// them since them being non-null during a mount doesn't affect the logic as
|
|
16468
16472
|
// they will simply be overwritten.
|
|
16469
16473
|
component: e.component,
|
|
16470
16474
|
suspense: e.suspense,
|
|
16471
|
-
ssContent: e.ssContent &&
|
|
16472
|
-
ssFallback: e.ssFallback &&
|
|
16475
|
+
ssContent: e.ssContent && be2(e.ssContent),
|
|
16476
|
+
ssFallback: e.ssFallback && be2(e.ssFallback),
|
|
16473
16477
|
el: e.el,
|
|
16474
16478
|
anchor: e.anchor,
|
|
16475
16479
|
ctx: e.ctx,
|
|
16476
16480
|
ce: e.ce
|
|
16477
16481
|
};
|
|
16478
|
-
return
|
|
16479
|
-
|
|
16480
|
-
|
|
16481
|
-
),
|
|
16482
|
+
return C2 && r2 && kn(
|
|
16483
|
+
i,
|
|
16484
|
+
C2.clone(i)
|
|
16485
|
+
), i;
|
|
16482
16486
|
}
|
|
16483
16487
|
function Rn2(e) {
|
|
16484
|
-
const n =
|
|
16485
|
-
return
|
|
16488
|
+
const n = be2(e);
|
|
16489
|
+
return k2(e.children) && (n.children = e.children.map(Rn2)), n;
|
|
16486
16490
|
}
|
|
16487
|
-
function
|
|
16488
|
-
return
|
|
16491
|
+
function $o(e = " ", n = 0) {
|
|
16492
|
+
return _o(mo, null, e, n);
|
|
16489
16493
|
}
|
|
16490
|
-
function
|
|
16494
|
+
function an2(e, n) {
|
|
16491
16495
|
let t = 0;
|
|
16492
|
-
const { shapeFlag:
|
|
16496
|
+
const { shapeFlag: r2 } = e;
|
|
16493
16497
|
if (n == null)
|
|
16494
16498
|
n = null;
|
|
16495
|
-
else if (
|
|
16499
|
+
else if (k2(n))
|
|
16496
16500
|
t = 16;
|
|
16497
16501
|
else if (typeof n == "object")
|
|
16498
|
-
if (
|
|
16499
|
-
const
|
|
16500
|
-
|
|
16502
|
+
if (r2 & 65) {
|
|
16503
|
+
const o = n.default;
|
|
16504
|
+
o && (o._c && (o._d = false), an2(e, o()), o._c && (o._d = true));
|
|
16501
16505
|
return;
|
|
16502
16506
|
} else
|
|
16503
|
-
t = 32, !n._ && !
|
|
16504
|
-
else
|
|
16507
|
+
t = 32, !n._ && !Dn2(n) && (n._ctx = $e2);
|
|
16508
|
+
else z(n) ? (n = { default: n, _ctx: $e2 }, t = 32) : (n = String(n), r2 & 64 ? (t = 16, n = [$o(n)]) : t = 8);
|
|
16505
16509
|
e.children = n, e.shapeFlag |= t;
|
|
16506
16510
|
}
|
|
16507
|
-
function
|
|
16511
|
+
function bo(...e) {
|
|
16508
16512
|
const n = {};
|
|
16509
16513
|
for (let t = 0; t < e.length; t++) {
|
|
16510
|
-
const
|
|
16511
|
-
for (const
|
|
16512
|
-
if (
|
|
16513
|
-
n.class !==
|
|
16514
|
-
else if (
|
|
16515
|
-
n.style =
|
|
16516
|
-
else if (
|
|
16517
|
-
const
|
|
16518
|
-
|
|
16519
|
-
} else
|
|
16514
|
+
const r2 = e[t];
|
|
16515
|
+
for (const o in r2)
|
|
16516
|
+
if (o === "class")
|
|
16517
|
+
n.class !== r2.class && (n.class = on2([n.class, r2.class]));
|
|
16518
|
+
else if (o === "style")
|
|
16519
|
+
n.style = tn2([n.style, r2.style]);
|
|
16520
|
+
else if (Ht2(o)) {
|
|
16521
|
+
const s = n[o], p = r2[o];
|
|
16522
|
+
p && s !== p && !(k2(s) && s.includes(p)) && (n[o] = s ? [].concat(s, p) : p);
|
|
16523
|
+
} else o !== "" && (n[o] = r2[o]);
|
|
16520
16524
|
}
|
|
16521
16525
|
return n;
|
|
16522
16526
|
}
|
|
16523
16527
|
{
|
|
16524
|
-
const e =
|
|
16525
|
-
let
|
|
16526
|
-
return (
|
|
16527
|
-
|
|
16528
|
+
const e = Se(), n = (t, r2) => {
|
|
16529
|
+
let o;
|
|
16530
|
+
return (o = e[t]) || (o = e[t] = []), o.push(r2), (s) => {
|
|
16531
|
+
o.length > 1 ? o.forEach((p) => p(s)) : o[0](s);
|
|
16528
16532
|
};
|
|
16529
16533
|
};
|
|
16530
16534
|
n(
|
|
@@ -16536,95 +16540,95 @@ function $o(...e) {
|
|
|
16536
16540
|
);
|
|
16537
16541
|
}
|
|
16538
16542
|
process.env.NODE_ENV;
|
|
16539
|
-
var
|
|
16540
|
-
var
|
|
16541
|
-
function
|
|
16542
|
-
return
|
|
16543
|
+
var wo = /(?:^|[-_])(\w)/g;
|
|
16544
|
+
var No = (e) => e.replace(wo, (n) => n.toUpperCase()).replace(/[-_]/g, "");
|
|
16545
|
+
function Hn(e, n = true) {
|
|
16546
|
+
return z(e) ? e.displayName || e.name : e.name || n && e.__name;
|
|
16543
16547
|
}
|
|
16544
|
-
function
|
|
16545
|
-
let
|
|
16546
|
-
if (!
|
|
16547
|
-
const
|
|
16548
|
-
|
|
16549
|
-
}
|
|
16550
|
-
if (!
|
|
16551
|
-
const
|
|
16552
|
-
for (const
|
|
16553
|
-
if (
|
|
16554
|
-
return
|
|
16548
|
+
function Ln(e, n, t = false) {
|
|
16549
|
+
let r2 = Hn(n);
|
|
16550
|
+
if (!r2 && n.__file) {
|
|
16551
|
+
const o = n.__file.match(/([^/\\]+)\.\w+$/);
|
|
16552
|
+
o && (r2 = o[1]);
|
|
16553
|
+
}
|
|
16554
|
+
if (!r2 && e && e.parent) {
|
|
16555
|
+
const o = (s) => {
|
|
16556
|
+
for (const p in s)
|
|
16557
|
+
if (s[p] === n)
|
|
16558
|
+
return p;
|
|
16555
16559
|
};
|
|
16556
|
-
|
|
16560
|
+
r2 = o(
|
|
16557
16561
|
e.components || e.parent.type.components
|
|
16558
|
-
) ||
|
|
16562
|
+
) || o(e.appContext.components);
|
|
16559
16563
|
}
|
|
16560
|
-
return
|
|
16564
|
+
return r2 ? No(r2) : t ? "App" : "Anonymous";
|
|
16561
16565
|
}
|
|
16562
16566
|
function Mn2(e) {
|
|
16563
|
-
return
|
|
16567
|
+
return z(e) && "__vccOpts" in e;
|
|
16564
16568
|
}
|
|
16565
|
-
function
|
|
16569
|
+
function yo() {
|
|
16566
16570
|
if (process.env.NODE_ENV === "production" || typeof window > "u")
|
|
16567
16571
|
return;
|
|
16568
|
-
const e = { style: "color:#3ba776" }, n = { style: "color:#1677ff" }, t = { style: "color:#f5222d" },
|
|
16572
|
+
const e = { style: "color:#3ba776" }, n = { style: "color:#1677ff" }, t = { style: "color:#f5222d" }, r2 = { style: "color:#eb2f96" }, o = {
|
|
16569
16573
|
__vue_custom_formatter: true,
|
|
16570
|
-
header(
|
|
16571
|
-
return
|
|
16574
|
+
header(a) {
|
|
16575
|
+
return B2(a) ? a.__isVue ? ["div", e, "VueInstance"] : sn2(a) ? [
|
|
16572
16576
|
"div",
|
|
16573
16577
|
{},
|
|
16574
|
-
["span", e,
|
|
16578
|
+
["span", e, i(a)],
|
|
16575
16579
|
"<",
|
|
16576
16580
|
// avoid debugger accessing value affecting behavior
|
|
16577
|
-
|
|
16581
|
+
_("_value" in a ? a._value : a),
|
|
16578
16582
|
">"
|
|
16579
|
-
] : En2(
|
|
16583
|
+
] : En2(a) ? [
|
|
16580
16584
|
"div",
|
|
16581
16585
|
{},
|
|
16582
|
-
["span", e,
|
|
16586
|
+
["span", e, Te(a) ? "ShallowReactive" : "Reactive"],
|
|
16583
16587
|
"<",
|
|
16584
|
-
|
|
16585
|
-
`>${
|
|
16586
|
-
] :
|
|
16588
|
+
_(a),
|
|
16589
|
+
`>${Ue(a) ? " (readonly)" : ""}`
|
|
16590
|
+
] : Ue(a) ? [
|
|
16587
16591
|
"div",
|
|
16588
16592
|
{},
|
|
16589
|
-
["span", e,
|
|
16593
|
+
["span", e, Te(a) ? "ShallowReadonly" : "Readonly"],
|
|
16590
16594
|
"<",
|
|
16591
|
-
|
|
16595
|
+
_(a),
|
|
16592
16596
|
">"
|
|
16593
16597
|
] : null : null;
|
|
16594
16598
|
},
|
|
16595
|
-
hasBody(
|
|
16596
|
-
return
|
|
16599
|
+
hasBody(a) {
|
|
16600
|
+
return a && a.__isVue;
|
|
16597
16601
|
},
|
|
16598
|
-
body(
|
|
16599
|
-
if (
|
|
16602
|
+
body(a) {
|
|
16603
|
+
if (a && a.__isVue)
|
|
16600
16604
|
return [
|
|
16601
16605
|
"div",
|
|
16602
16606
|
{},
|
|
16603
|
-
...a
|
|
16607
|
+
...s(a.$)
|
|
16604
16608
|
];
|
|
16605
16609
|
}
|
|
16606
16610
|
};
|
|
16607
|
-
function a
|
|
16611
|
+
function s(a) {
|
|
16608
16612
|
const l2 = [];
|
|
16609
|
-
|
|
16610
|
-
const
|
|
16611
|
-
|
|
16612
|
-
const
|
|
16613
|
-
return
|
|
16613
|
+
a.type.props && a.props && l2.push(p("props", G(a.props))), a.setupState !== Ge && l2.push(p("setup", a.setupState)), a.data !== Ge && l2.push(p("data", G(a.data)));
|
|
16614
|
+
const f = C2(a, "computed");
|
|
16615
|
+
f && l2.push(p("computed", f));
|
|
16616
|
+
const b2 = C2(a, "inject");
|
|
16617
|
+
return b2 && l2.push(p("injected", b2)), l2.push([
|
|
16614
16618
|
"div",
|
|
16615
16619
|
{},
|
|
16616
16620
|
[
|
|
16617
16621
|
"span",
|
|
16618
16622
|
{
|
|
16619
|
-
style:
|
|
16623
|
+
style: r2.style + ";opacity:0.66"
|
|
16620
16624
|
},
|
|
16621
16625
|
"$ (internal): "
|
|
16622
16626
|
],
|
|
16623
|
-
["object", { object:
|
|
16627
|
+
["object", { object: a }]
|
|
16624
16628
|
]), l2;
|
|
16625
16629
|
}
|
|
16626
|
-
function
|
|
16627
|
-
return l2 =
|
|
16630
|
+
function p(a, l2) {
|
|
16631
|
+
return l2 = Ae2({}, l2), Object.keys(l2).length ? [
|
|
16628
16632
|
"div",
|
|
16629
16633
|
{ style: "line-height:1.25em;margin-bottom:0.6em" },
|
|
16630
16634
|
[
|
|
@@ -16632,56 +16636,56 @@ function No() {
|
|
|
16632
16636
|
{
|
|
16633
16637
|
style: "color:#476582"
|
|
16634
16638
|
},
|
|
16635
|
-
|
|
16639
|
+
a
|
|
16636
16640
|
],
|
|
16637
16641
|
[
|
|
16638
16642
|
"div",
|
|
16639
16643
|
{
|
|
16640
16644
|
style: "padding-left:1.25em"
|
|
16641
16645
|
},
|
|
16642
|
-
...Object.keys(l2).map((
|
|
16646
|
+
...Object.keys(l2).map((f) => [
|
|
16643
16647
|
"div",
|
|
16644
16648
|
{},
|
|
16645
|
-
["span",
|
|
16646
|
-
|
|
16649
|
+
["span", r2, f + ": "],
|
|
16650
|
+
_(l2[f], false)
|
|
16647
16651
|
])
|
|
16648
16652
|
]
|
|
16649
16653
|
] : ["span", {}];
|
|
16650
16654
|
}
|
|
16651
|
-
function
|
|
16652
|
-
return typeof
|
|
16655
|
+
function _(a, l2 = true) {
|
|
16656
|
+
return typeof a == "number" ? ["span", n, a] : typeof a == "string" ? ["span", t, JSON.stringify(a)] : typeof a == "boolean" ? ["span", r2, a] : B2(a) ? ["object", { object: l2 ? G(a) : a }] : ["span", t, String(a)];
|
|
16653
16657
|
}
|
|
16654
|
-
function
|
|
16655
|
-
const
|
|
16656
|
-
if (
|
|
16658
|
+
function C2(a, l2) {
|
|
16659
|
+
const f = a.type;
|
|
16660
|
+
if (z(f))
|
|
16657
16661
|
return;
|
|
16658
|
-
const
|
|
16659
|
-
for (const
|
|
16660
|
-
d(
|
|
16661
|
-
return
|
|
16662
|
-
}
|
|
16663
|
-
function d(
|
|
16664
|
-
const
|
|
16665
|
-
if (
|
|
16662
|
+
const b2 = {};
|
|
16663
|
+
for (const g2 in a.ctx)
|
|
16664
|
+
d(f, g2, l2) && (b2[g2] = a.ctx[g2]);
|
|
16665
|
+
return b2;
|
|
16666
|
+
}
|
|
16667
|
+
function d(a, l2, f) {
|
|
16668
|
+
const b2 = a[f];
|
|
16669
|
+
if (k2(b2) && b2.includes(l2) || B2(b2) && l2 in b2 || a.extends && d(a.extends, l2, f) || a.mixins && a.mixins.some((g2) => d(g2, l2, f)))
|
|
16666
16670
|
return true;
|
|
16667
16671
|
}
|
|
16668
|
-
function
|
|
16669
|
-
return
|
|
16672
|
+
function i(a) {
|
|
16673
|
+
return Te(a) ? "ShallowRef" : a.effect ? "ComputedRef" : "Ref";
|
|
16670
16674
|
}
|
|
16671
|
-
window.devtoolsFormatters ? window.devtoolsFormatters.push(
|
|
16675
|
+
window.devtoolsFormatters ? window.devtoolsFormatters.push(o) : window.devtoolsFormatters = [o];
|
|
16672
16676
|
}
|
|
16673
16677
|
process.env.NODE_ENV;
|
|
16674
16678
|
process.env.NODE_ENV;
|
|
16675
16679
|
process.env.NODE_ENV;
|
|
16676
|
-
function
|
|
16677
|
-
|
|
16680
|
+
function jo() {
|
|
16681
|
+
yo();
|
|
16678
16682
|
}
|
|
16679
|
-
process.env.NODE_ENV !== "production" &&
|
|
16683
|
+
process.env.NODE_ENV !== "production" && jo();
|
|
16680
16684
|
function Eo(e) {
|
|
16681
|
-
return
|
|
16685
|
+
return Dt(e) || Ft2(e) || kt(e) || Pt(e) || Vt(e);
|
|
16682
16686
|
}
|
|
16683
|
-
var
|
|
16684
|
-
var
|
|
16687
|
+
var Kn = /* @__PURE__ */ ((e) => (e.Java = "java", e.Kotlin = "kotlin", e.CSharp = "csharp", e.Go = "go", e))(Kn || {});
|
|
16688
|
+
var S2 = class {
|
|
16685
16689
|
imports = /* @__PURE__ */ new Set();
|
|
16686
16690
|
parentDir;
|
|
16687
16691
|
name;
|
|
@@ -16722,875 +16726,1001 @@ var j3 = class {
|
|
|
16722
16726
|
this.parentDir = n;
|
|
16723
16727
|
}
|
|
16724
16728
|
};
|
|
16725
|
-
var
|
|
16729
|
+
var we;
|
|
16726
16730
|
((e) => {
|
|
16727
16731
|
((n) => {
|
|
16728
|
-
n.Lombok = "Lombok", n.LombokBuilder = "LombokBuilder", n.
|
|
16729
|
-
})(e.JavaGeneratorAddition || (e.JavaGeneratorAddition = {}))
|
|
16730
|
-
|
|
16731
|
-
|
|
16732
|
+
n.Lombok = "Lombok", n.LombokBuilder = "LombokBuilder", n.RecordValueObject = "RecordValueObject", n.CommandHandler = "CommandHandler", n.Jpa = "Jpa", n.Timezone = "Timezone", n.SpringFramework = "SpringFramework";
|
|
16733
|
+
})(e.JavaGeneratorAddition || (e.JavaGeneratorAddition = {})), ((n) => {
|
|
16734
|
+
n.TABLE = "TABLE", n.SEQUENCE = "SEQUENCE", n.IDENTITY = "IDENTITY", n.UUID = "UUID", n.AUTO = "AUTO";
|
|
16735
|
+
})(e.IdGenStrategy || (e.IdGenStrategy = {}));
|
|
16736
|
+
})(we || (we = {}));
|
|
16737
|
+
var Ne;
|
|
16732
16738
|
((e) => {
|
|
16733
16739
|
((n) => {
|
|
16734
16740
|
n.ValueClass = "ValueClass", n.CommandHandler = "CommandHandler", n.Timezone = "Timezone";
|
|
16735
16741
|
})(e.KotlinGeneratorAddition || (e.KotlinGeneratorAddition = {}));
|
|
16736
|
-
})(
|
|
16737
|
-
var
|
|
16742
|
+
})(Ne || (Ne = {}));
|
|
16743
|
+
var ye;
|
|
16738
16744
|
((e) => {
|
|
16739
16745
|
((n) => {
|
|
16740
16746
|
n.Timezone = "Timezone", n.RecordStruct = "RecordStruct", n.PrimaryConstructor = "PrimaryConstructor", n.CommandHandlerInterface = "CommandHandlerInterface", n.AggInterface = "AggInterface";
|
|
16741
16747
|
})(e.CSharpGeneratorAddition || (e.CSharpGeneratorAddition = {}));
|
|
16742
|
-
})(
|
|
16748
|
+
})(ye || (ye = {}));
|
|
16743
16749
|
var We;
|
|
16744
16750
|
((e) => {
|
|
16745
16751
|
((n) => {
|
|
16746
16752
|
n.SinglePackageEachDesigner = "SinglePackageEachDesigner";
|
|
16747
16753
|
})(e.GoGeneratorAddition || (e.GoGeneratorAddition = {}));
|
|
16748
16754
|
})(We || (We = {}));
|
|
16749
|
-
var
|
|
16755
|
+
var So = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
16750
16756
|
__proto__: null,
|
|
16751
|
-
CodeFile:
|
|
16752
|
-
Language:
|
|
16757
|
+
CodeFile: S2,
|
|
16758
|
+
Language: Kn,
|
|
16753
16759
|
get csharp() {
|
|
16754
|
-
return
|
|
16760
|
+
return ye;
|
|
16755
16761
|
},
|
|
16756
16762
|
get go() {
|
|
16757
16763
|
return We;
|
|
16758
16764
|
},
|
|
16759
16765
|
isStruct: Eo,
|
|
16760
16766
|
get java() {
|
|
16761
|
-
return
|
|
16767
|
+
return we;
|
|
16762
16768
|
},
|
|
16763
16769
|
get kotlin() {
|
|
16764
|
-
return
|
|
16770
|
+
return Ne;
|
|
16765
16771
|
}
|
|
16766
16772
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
16767
16773
|
var N2;
|
|
16768
16774
|
((e) => {
|
|
16769
16775
|
function n(d) {
|
|
16770
|
-
return d.trim().split(d.includes("_") ? /_|\s
|
|
16776
|
+
return d.trim().split(d.includes("_") || d.includes("-") || d.includes(" ") ? /_|\s|-/ : /(?=[A-Z])/g).map((i) => i.charAt(0).toUpperCase() + i.toLowerCase().slice(1)).join("");
|
|
16771
16777
|
}
|
|
16772
16778
|
e.stringToUpperCamel = n;
|
|
16773
16779
|
function t(d) {
|
|
16774
|
-
let
|
|
16775
|
-
return d.trim().split(d.includes("_") ? /_|\s
|
|
16780
|
+
let i = true;
|
|
16781
|
+
return d.trim().split(d.includes("_") || d.includes("-") || d.includes(" ") ? /_|\s|-/ : /(?=[A-Z])/g).map((a) => i ? (i = false, a.toLowerCase()) : a.charAt(0).toUpperCase() + a.toLowerCase().slice(1)).join("");
|
|
16776
16782
|
}
|
|
16777
16783
|
e.stringToLowerCamel = t;
|
|
16778
|
-
function
|
|
16779
|
-
return d.includes("_") ? d.toLowerCase() :
|
|
16784
|
+
function r2(d) {
|
|
16785
|
+
return d = d.trim(), d.includes("_") ? d.toLowerCase() : d.includes(" ") || d.includes("-") ? d.split(/\s|-/).join("_").toLowerCase() : s(d);
|
|
16780
16786
|
}
|
|
16781
|
-
e.stringToLowerSnake =
|
|
16782
|
-
function
|
|
16787
|
+
e.stringToLowerSnake = r2;
|
|
16788
|
+
function o(d) {
|
|
16783
16789
|
return d.trim().split(/(?=[A-Z])/g).join("_").toUpperCase();
|
|
16784
16790
|
}
|
|
16785
|
-
e.camelToUpperSnake =
|
|
16786
|
-
function
|
|
16791
|
+
e.camelToUpperSnake = o;
|
|
16792
|
+
function s(d) {
|
|
16787
16793
|
return d.trim().split(/(?=[A-Z])/g).join("_").toLowerCase();
|
|
16788
16794
|
}
|
|
16789
|
-
e.camelToLowerSnake =
|
|
16790
|
-
function
|
|
16791
|
-
return d.trim().split("_").map((
|
|
16795
|
+
e.camelToLowerSnake = s;
|
|
16796
|
+
function p(d) {
|
|
16797
|
+
return d.trim().split("_").map((i) => i.charAt(0).toUpperCase() + i.slice(1)).join("");
|
|
16792
16798
|
}
|
|
16793
|
-
e.snakeToUpperCamel =
|
|
16794
|
-
function
|
|
16799
|
+
e.snakeToUpperCamel = p;
|
|
16800
|
+
function _(d) {
|
|
16795
16801
|
return d.trim().charAt(0).toLowerCase() + d.slice(1);
|
|
16796
16802
|
}
|
|
16797
|
-
e.lowerFirst =
|
|
16798
|
-
function
|
|
16803
|
+
e.lowerFirst = _;
|
|
16804
|
+
function C2(d) {
|
|
16799
16805
|
return d.trim().charAt(0).toUpperCase() + d.slice(1);
|
|
16800
16806
|
}
|
|
16801
|
-
e.upperFirst =
|
|
16807
|
+
e.upperFirst = C2;
|
|
16802
16808
|
})(N2 || (N2 = {}));
|
|
16803
|
-
var
|
|
16804
|
-
var
|
|
16805
|
-
const e = "value";
|
|
16806
|
-
function
|
|
16807
|
-
return N2.stringToUpperCamel(
|
|
16809
|
+
var j3 = we.JavaGeneratorAddition;
|
|
16810
|
+
var Io = le2.createHotSwapPlugin(() => {
|
|
16811
|
+
const e = "value", n = "command", t = "event";
|
|
16812
|
+
function r2(o) {
|
|
16813
|
+
return N2.stringToUpperCamel(o._attributes.name);
|
|
16808
16814
|
}
|
|
16809
16815
|
return {
|
|
16810
|
-
unmount({ api:
|
|
16811
|
-
|
|
16816
|
+
unmount({ api: o }) {
|
|
16817
|
+
o.commands.clearCaches(), o.commands._setCommandCodeProvider(() => []), o.commands._setFacadeCommandCodeProvider(() => []), o.commands._setAggCodeProvider(() => []), o.commands._setEventCodeProvider(() => []), o.commands._setReadModelCodeProvider(() => []), o.commands._setCodeFileProvider(() => []), o.commands.setContext({});
|
|
16812
16818
|
},
|
|
16813
|
-
mount({ api:
|
|
16814
|
-
const
|
|
16815
|
-
function a
|
|
16816
|
-
return !
|
|
16817
|
-
}
|
|
16818
|
-
function
|
|
16819
|
-
return
|
|
16820
|
-
}
|
|
16821
|
-
function
|
|
16822
|
-
for (const
|
|
16823
|
-
if (!
|
|
16824
|
-
|
|
16819
|
+
mount({ api: o }) {
|
|
16820
|
+
const s = o.states.context, p = o.states.designer.value._getContext().getDesignerOptions().ignoreValueObjects.map((a) => N2.stringToLowerCamel(a));
|
|
16821
|
+
function _(a) {
|
|
16822
|
+
return !p.includes(N2.stringToLowerCamel(a._attributes.name));
|
|
16823
|
+
}
|
|
16824
|
+
function C2(a, l2) {
|
|
16825
|
+
return _(l2) ? N2.stringToUpperCamel(l2._attributes.name) : i(a, l2);
|
|
16826
|
+
}
|
|
16827
|
+
function d(a, l2) {
|
|
16828
|
+
for (const f of l2) {
|
|
16829
|
+
if (!_(f)) {
|
|
16830
|
+
i(a, f);
|
|
16825
16831
|
continue;
|
|
16826
16832
|
}
|
|
16827
|
-
|
|
16828
|
-
`${
|
|
16833
|
+
a.add(
|
|
16834
|
+
`${s.value.namespace}.${s.value.moduleName}.${e}.${r2(f)}`
|
|
16829
16835
|
);
|
|
16830
16836
|
}
|
|
16831
16837
|
}
|
|
16832
|
-
function
|
|
16833
|
-
const
|
|
16834
|
-
return /\b(time|timestamp|date|deadline|expire)\b/.test(
|
|
16835
|
-
}
|
|
16836
|
-
|
|
16837
|
-
(
|
|
16838
|
-
const
|
|
16839
|
-
|
|
16840
|
-
const
|
|
16841
|
-
return
|
|
16838
|
+
function i(a, l2) {
|
|
16839
|
+
const f = s.value.additions, b2 = N2.stringToLowerSnake(l2._attributes.name).replace(/_/, " ");
|
|
16840
|
+
return /\b(time|timestamp|date|deadline|expire)\b/.test(b2) ? f.has(j3.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(b2) ? "Integer" : /\b(price)$/.test(b2) ? (a.add("java.math.BigDecimal"), "BigDecimal") : /^(if|is)\b/.test(b2) ? "Boolean" : Ee(l2) && (l2._attributes.type === "Id" || l2._attributes.type === "Version" || /\b(id|identifier|ver|version)$/.test(b2)) ? "Long" : "String";
|
|
16841
|
+
}
|
|
16842
|
+
o.commands._setInfoCodeProvider(
|
|
16843
|
+
(a) => {
|
|
16844
|
+
const l2 = /* @__PURE__ */ new Set();
|
|
16845
|
+
l2.add(s.value.nonNullAnnotation);
|
|
16846
|
+
const f = s.value.nonNullAnnotation.split(".").pop(), b2 = r2(a), g2 = s.value.additions, u = [];
|
|
16847
|
+
return g2.has(j3.RecordValueObject) ? (g2.has(j3.Jpa) && (l2.add(
|
|
16848
|
+
s.value.jdkVersion === "8" ? "javax.persistence.Embeddable" : "jakarta.persistence.Embeddable"
|
|
16849
|
+
), u.push("@Embeddable")), u.push(`public record ${b2}(@${f} ${i(l2, a)} value) {`), u.push(` public ${b2} {`), u.push(" // HACK check value"), u.push(" }"), u.push("}")) : g2.has(j3.Lombok) ? (u.push("@lombok.Getter"), g2.has(j3.Jpa) && (l2.add(
|
|
16850
|
+
s.value.jdkVersion === "8" ? "javax.persistence.Embeddable" : "jakarta.persistence.Embeddable"
|
|
16851
|
+
), u.push("@Embeddable")), u.push(`public class ${b2} {`), u.push(` private final ${i(l2, a)} value;`), u.push(""), u.push(` public ${b2} (@${f} ${i(l2, a)} value) {`), u.push(" // HACK check value"), u.push(" this.value = value;"), u.push(" }"), u.push("}")) : (g2.has(j3.Jpa) && (l2.add(
|
|
16852
|
+
s.value.jdkVersion === "8" ? "javax.persistence.Embeddable" : "jakarta.persistence.Embeddable"
|
|
16853
|
+
), u.push("@Embeddable")), u.push(`public class ${r2(a)} {`), u.push(` private final ${i(l2, a)} value;`), u.push(""), u.push(` public ${b2} (@${f} ${i(l2, a)} value) {`), u.push(" // HACK check value"), u.push(" this.value = value;"), u.push(" }"), u.push(""), u.push(` public ${i(l2, a)} getValue() {`), u.push(" return this.value;"), u.push(" }"), u.push("}")), [
|
|
16842
16854
|
{
|
|
16843
16855
|
type: "Info",
|
|
16844
|
-
imports:
|
|
16845
|
-
content:
|
|
16856
|
+
imports: l2,
|
|
16857
|
+
content: u.join(`
|
|
16846
16858
|
`)
|
|
16847
16859
|
}
|
|
16848
16860
|
];
|
|
16849
16861
|
}
|
|
16850
|
-
)
|
|
16851
|
-
|
|
16852
|
-
|
|
16862
|
+
), o.commands._setCommandCodeProvider(
|
|
16863
|
+
(a) => {
|
|
16864
|
+
const l2 = [], f = s.value.additions, b2 = s.value.nonNullAnnotation.split(".").pop();
|
|
16865
|
+
{
|
|
16866
|
+
const g2 = /* @__PURE__ */ new Set();
|
|
16867
|
+
g2.add(s.value.nonNullAnnotation);
|
|
16868
|
+
const u = r2(a), v = [], m2 = Object.values(a.inner);
|
|
16869
|
+
if (d(g2, m2), f.has(j3.RecordValueObject)) {
|
|
16870
|
+
f.has(j3.LombokBuilder) && v.push("@lombok.Builder(toBuilder = true)"), v.push(`public record ${u}(`);
|
|
16871
|
+
const $2 = [];
|
|
16872
|
+
for (const w2 of m2) {
|
|
16873
|
+
const c = r2(w2);
|
|
16874
|
+
$2.push(
|
|
16875
|
+
` @${b2}
|
|
16876
|
+
${C2(
|
|
16877
|
+
g2,
|
|
16878
|
+
w2
|
|
16879
|
+
)} ${N2.lowerFirst(c)}`
|
|
16880
|
+
);
|
|
16881
|
+
}
|
|
16882
|
+
v.push($2.join(`,
|
|
16883
|
+
`)), v.push(") {"), v.push(` public ${u} {`), v.push(" // HACK check value"), v.push(" }"), v.push("}");
|
|
16884
|
+
} else if (f.has(j3.Lombok)) {
|
|
16885
|
+
v.push("@lombok.AllArgsConstructor"), v.push("@lombok.Getter"), f.has(j3.LombokBuilder) && v.push("@lombok.Builder(toBuilder = true)"), v.push(`public class ${u} {`);
|
|
16886
|
+
for (const $2 of m2) {
|
|
16887
|
+
const w2 = r2($2);
|
|
16888
|
+
v.push(` @${b2}`), v.push(
|
|
16889
|
+
` private final ${C2(g2, $2)} ${N2.lowerFirst(w2)};`
|
|
16890
|
+
);
|
|
16891
|
+
}
|
|
16892
|
+
v.push("}");
|
|
16893
|
+
} else {
|
|
16894
|
+
v.push(`public class ${u} {`);
|
|
16895
|
+
for (const c of m2) {
|
|
16896
|
+
const h2 = r2(c);
|
|
16897
|
+
v.push(` @${b2}`), v.push(
|
|
16898
|
+
` private final ${C2(g2, c)} ${N2.lowerFirst(h2)};`
|
|
16899
|
+
);
|
|
16900
|
+
}
|
|
16901
|
+
v.push("");
|
|
16902
|
+
const $2 = [], w2 = [];
|
|
16903
|
+
for (const c of m2) {
|
|
16904
|
+
const h2 = r2(c);
|
|
16905
|
+
$2.push(
|
|
16906
|
+
`@${b2} ${i(g2, c)} ${N2.lowerFirst(h2)}`
|
|
16907
|
+
), w2.push(`this.${N2.lowerFirst(h2)} = ${N2.lowerFirst(h2)};`);
|
|
16908
|
+
}
|
|
16909
|
+
v.push(` public ${u}(${$2.join(", ")}) {`), v.push(` ${w2.join(`
|
|
16910
|
+
`)}`), v.push(" }");
|
|
16911
|
+
for (const c of m2) {
|
|
16912
|
+
const h2 = r2(c);
|
|
16913
|
+
v.push(""), v.push(` public ${C2(g2, c)} get${h2} () {`), v.push(` return this.${N2.lowerFirst(h2)};`), v.push(" }");
|
|
16914
|
+
}
|
|
16915
|
+
v.push("}");
|
|
16916
|
+
}
|
|
16917
|
+
l2.push({
|
|
16918
|
+
type: "Command",
|
|
16919
|
+
imports: g2,
|
|
16920
|
+
content: v.join(`
|
|
16921
|
+
`)
|
|
16922
|
+
});
|
|
16923
|
+
}
|
|
16924
|
+
if (!f.has(j3.CommandHandler))
|
|
16925
|
+
return l2;
|
|
16926
|
+
{
|
|
16927
|
+
const g2 = /* @__PURE__ */ new Set();
|
|
16928
|
+
g2.add(s.value.nonNullAnnotation);
|
|
16929
|
+
const u = r2(a), v = [];
|
|
16930
|
+
f.has(j3.SpringFramework) && (g2.add("org.springframework.stereotype.Component"), v.push("@Component")), f.has(j3.Lombok) && v.push("@lombok.RequiredArgsConstructor"), v.push(`public class ${u}Handler {`);
|
|
16931
|
+
const m2 = [...o.states.designer.value._getContext().getAssociationMap()[a._attributes.__id]].filter(
|
|
16932
|
+
($2) => $2._attributes.rule === "Agg"
|
|
16933
|
+
);
|
|
16934
|
+
for (const $2 of m2)
|
|
16935
|
+
g2.add(`${s.value.namespace}.${s.value.moduleName}.${r2($2)}`), v.push(` public ${r2($2)} handle(@${b2} ${u} command) {`), v.push(" // HACK Implement"), v.push(" }");
|
|
16936
|
+
v.push("}"), l2.push({
|
|
16937
|
+
type: "CommandHandler",
|
|
16938
|
+
imports: g2,
|
|
16939
|
+
content: v.join(`
|
|
16940
|
+
`)
|
|
16941
|
+
});
|
|
16942
|
+
}
|
|
16943
|
+
return l2;
|
|
16944
|
+
}
|
|
16945
|
+
), o.commands._setFacadeCommandCodeProvider((a) => {
|
|
16946
|
+
const l2 = [], f = s.value.additions, b2 = s.value.nonNullAnnotation.split(".").pop();
|
|
16853
16947
|
{
|
|
16854
|
-
const
|
|
16855
|
-
|
|
16856
|
-
const
|
|
16857
|
-
if (g2
|
|
16858
|
-
|
|
16859
|
-
const
|
|
16860
|
-
for (const
|
|
16861
|
-
const
|
|
16862
|
-
|
|
16863
|
-
` @${
|
|
16864
|
-
${
|
|
16865
|
-
|
|
16866
|
-
|
|
16867
|
-
)} ${N2.lowerFirst(
|
|
16948
|
+
const g2 = /* @__PURE__ */ new Set();
|
|
16949
|
+
g2.add(s.value.nonNullAnnotation);
|
|
16950
|
+
const u = r2(a), v = [], m2 = Object.values(a.inner);
|
|
16951
|
+
if (d(g2, m2), f.has(j3.RecordValueObject)) {
|
|
16952
|
+
f.has(j3.LombokBuilder) && v.push("@lombok.Builder(toBuilder = true)"), v.push(`public record ${u}(`);
|
|
16953
|
+
const $2 = [];
|
|
16954
|
+
for (const w2 of m2) {
|
|
16955
|
+
const c = r2(w2);
|
|
16956
|
+
$2.push(
|
|
16957
|
+
` @${b2}
|
|
16958
|
+
${C2(
|
|
16959
|
+
g2,
|
|
16960
|
+
w2
|
|
16961
|
+
)} ${N2.lowerFirst(c)}`
|
|
16868
16962
|
);
|
|
16869
16963
|
}
|
|
16870
|
-
|
|
16871
|
-
`)),
|
|
16872
|
-
} else if (
|
|
16873
|
-
|
|
16874
|
-
for (const
|
|
16875
|
-
const
|
|
16876
|
-
|
|
16877
|
-
` private final ${
|
|
16964
|
+
v.push($2.join(`,
|
|
16965
|
+
`)), v.push(") {"), v.push(` public ${u} {`), v.push(" // HACK check value"), v.push(" }"), v.push("}");
|
|
16966
|
+
} else if (f.has(j3.Lombok)) {
|
|
16967
|
+
v.push("@lombok.AllArgsConstructor"), v.push("@lombok.Getter"), f.has(j3.LombokBuilder) && v.push("@lombok.Builder(toBuilder = true)"), v.push(`public class ${u} {`);
|
|
16968
|
+
for (const $2 of m2) {
|
|
16969
|
+
const w2 = r2($2);
|
|
16970
|
+
v.push(` @${b2}`), v.push(
|
|
16971
|
+
` private final ${C2(g2, $2)} ${N2.lowerFirst(w2)};`
|
|
16878
16972
|
);
|
|
16879
16973
|
}
|
|
16880
|
-
|
|
16974
|
+
v.push("}");
|
|
16881
16975
|
} else {
|
|
16882
|
-
|
|
16883
|
-
for (const
|
|
16884
|
-
const
|
|
16885
|
-
|
|
16886
|
-
` private final ${
|
|
16976
|
+
v.push(`public class ${u} {`);
|
|
16977
|
+
for (const c of m2) {
|
|
16978
|
+
const h2 = r2(c);
|
|
16979
|
+
v.push(` @${b2}`), v.push(
|
|
16980
|
+
` private final ${C2(g2, c)} ${N2.lowerFirst(h2)};`
|
|
16887
16981
|
);
|
|
16888
16982
|
}
|
|
16889
|
-
|
|
16890
|
-
const
|
|
16891
|
-
for (const
|
|
16892
|
-
const
|
|
16893
|
-
|
|
16894
|
-
`@${
|
|
16895
|
-
),
|
|
16983
|
+
v.push("");
|
|
16984
|
+
const $2 = [], w2 = [];
|
|
16985
|
+
for (const c of m2) {
|
|
16986
|
+
const h2 = r2(c);
|
|
16987
|
+
$2.push(
|
|
16988
|
+
`@${b2} ${i(g2, c)} ${N2.lowerFirst(h2)}`
|
|
16989
|
+
), w2.push(`this.${N2.lowerFirst(h2)} = ${N2.lowerFirst(h2)};`);
|
|
16896
16990
|
}
|
|
16897
|
-
|
|
16898
|
-
`)}`),
|
|
16899
|
-
for (const
|
|
16900
|
-
const
|
|
16901
|
-
|
|
16991
|
+
v.push(` public ${u}(${$2.join(", ")}) {`), v.push(` ${w2.join(`
|
|
16992
|
+
`)}`), v.push(" }");
|
|
16993
|
+
for (const c of m2) {
|
|
16994
|
+
const h2 = r2(c);
|
|
16995
|
+
v.push(""), v.push(` public ${C2(g2, c)} get${h2} () {`), v.push(` return this.${N2.lowerFirst(h2)};`), v.push(" }");
|
|
16902
16996
|
}
|
|
16903
|
-
|
|
16997
|
+
v.push("}");
|
|
16904
16998
|
}
|
|
16905
|
-
|
|
16906
|
-
type: "
|
|
16907
|
-
imports:
|
|
16908
|
-
content:
|
|
16999
|
+
l2.push({
|
|
17000
|
+
type: "FacadeCommand",
|
|
17001
|
+
imports: g2,
|
|
17002
|
+
content: v.join(`
|
|
16909
17003
|
`)
|
|
16910
17004
|
});
|
|
16911
17005
|
}
|
|
16912
|
-
if (!
|
|
16913
|
-
return
|
|
17006
|
+
if (!f.has(j3.CommandHandler))
|
|
17007
|
+
return l2;
|
|
16914
17008
|
{
|
|
16915
|
-
const
|
|
16916
|
-
|
|
16917
|
-
const
|
|
16918
|
-
|
|
16919
|
-
const
|
|
16920
|
-
(
|
|
17009
|
+
const g2 = /* @__PURE__ */ new Set();
|
|
17010
|
+
g2.add(s.value.nonNullAnnotation);
|
|
17011
|
+
const u = r2(a), v = [];
|
|
17012
|
+
f.has(j3.SpringFramework) && (g2.add("org.springframework.stereotype.Component"), v.push("@Component")), f.has(j3.Lombok) && v.push("@lombok.RequiredArgsConstructor"), v.push(`public class ${u}Handler {`);
|
|
17013
|
+
const m2 = [...o.states.designer.value._getContext().getAssociationMap()[a._attributes.__id]].filter(
|
|
17014
|
+
($2) => $2._attributes.rule === "Agg"
|
|
16921
17015
|
);
|
|
16922
|
-
for (const
|
|
16923
|
-
|
|
16924
|
-
|
|
16925
|
-
type: "
|
|
16926
|
-
imports:
|
|
16927
|
-
content:
|
|
17016
|
+
for (const $2 of m2)
|
|
17017
|
+
g2.add(`${s.value.namespace}.${s.value.moduleName}.${r2($2)}`), v.push(` public ${r2($2)} handle(@${b2} ${u} command) {`), v.push(" // HACK Implement"), v.push(" }");
|
|
17018
|
+
v.push("}"), l2.push({
|
|
17019
|
+
type: "FacadeCommandHandler",
|
|
17020
|
+
imports: g2,
|
|
17021
|
+
content: v.join(`
|
|
16928
17022
|
`)
|
|
16929
17023
|
});
|
|
16930
17024
|
}
|
|
16931
|
-
return
|
|
16932
|
-
}
|
|
16933
|
-
|
|
16934
|
-
|
|
16935
|
-
const i = o.value.additions, l2 = t.states.designer.value, m2 = o.value.nonNullAnnotation.split(".").pop(), C2 = n(r2), p = [];
|
|
17025
|
+
return l2;
|
|
17026
|
+
}), o.commands._setAggCodeProvider(
|
|
17027
|
+
(a) => {
|
|
17028
|
+
const l2 = s.value.additions, f = o.states.designer.value, b2 = s.value.nonNullAnnotation.split(".").pop(), g2 = r2(a), u = [];
|
|
16936
17029
|
{
|
|
16937
|
-
const
|
|
16938
|
-
|
|
16939
|
-
const
|
|
16940
|
-
for (const
|
|
16941
|
-
const
|
|
16942
|
-
|
|
17030
|
+
const v = /* @__PURE__ */ new Set();
|
|
17031
|
+
v.add(s.value.nonNullAnnotation);
|
|
17032
|
+
const m2 = [], $2 = [], w2 = [...f._getContext().getAssociationMap()[a._attributes.__id]].filter((c) => c._attributes.rule === "Command" || c._attributes.rule === "FacadeCommand");
|
|
17033
|
+
for (const c of w2) {
|
|
17034
|
+
const h2 = r2(c);
|
|
17035
|
+
v.add(`${s.value.namespace}.${s.value.moduleName}.${n}.${h2}`), $2.push(`public void handle${h2}(@${b2} ${h2} command);`);
|
|
16943
17036
|
}
|
|
16944
|
-
|
|
17037
|
+
m2.push(`public interface ${g2} {`), m2.push(` ${$2.join(`
|
|
16945
17038
|
|
|
16946
|
-
`)}`),
|
|
17039
|
+
`)}`), m2.push("}"), u.push({
|
|
16947
17040
|
type: "Agg",
|
|
16948
|
-
imports:
|
|
16949
|
-
content:
|
|
17041
|
+
imports: v,
|
|
17042
|
+
content: m2.join(`
|
|
16950
17043
|
`)
|
|
16951
17044
|
});
|
|
16952
17045
|
}
|
|
16953
17046
|
{
|
|
16954
|
-
const
|
|
16955
|
-
|
|
16956
|
-
const
|
|
16957
|
-
if (
|
|
16958
|
-
|
|
16959
|
-
|
|
16960
|
-
|
|
16961
|
-
|
|
17047
|
+
const v = /* @__PURE__ */ new Set();
|
|
17048
|
+
v.add(s.value.nonNullAnnotation);
|
|
17049
|
+
const m2 = [], $2 = Object.values(a.inner);
|
|
17050
|
+
if (d(v, $2), l2.has(j3.Lombok)) {
|
|
17051
|
+
m2.push(
|
|
17052
|
+
l2.has(j3.Jpa) ? "@lombok.NoArgsConstructor" : "@lombok.AllArgsConstructor"
|
|
17053
|
+
), m2.push("@lombok.Getter"), l2.has(j3.Jpa) && (v.add(
|
|
17054
|
+
s.value.jdkVersion === "8" ? "javax.persistence.Entity" : "jakarta.persistence.Entity"
|
|
17055
|
+
), m2.push("@Entity"), v.add(s.value.jdkVersion === "8" ? "javax.persistence.Table" : "jakarta.persistence.Table"), m2.push(`@Table(name = "${N2.camelToLowerSnake(g2)}")`)), m2.push(`public class ${g2}Impl implements ${g2} {`);
|
|
17056
|
+
for (const c of $2) {
|
|
17057
|
+
const h2 = r2(c);
|
|
17058
|
+
m2.push(` @${b2}`), l2.has(j3.Jpa) && (c._attributes.type === "Id" && (v.add(s.value.jdkVersion === "8" ? "javax.persistence.Id" : "jakarta.persistence.Id"), v.add(
|
|
17059
|
+
s.value.jdkVersion === "8" ? "javax.persistence.GeneratedValue" : "jakarta.persistence.GeneratedValue"
|
|
17060
|
+
), v.add(
|
|
17061
|
+
s.value.jdkVersion === "8" ? "javax.persistence.GenerationType" : "jakarta.persistence.GenerationType"
|
|
17062
|
+
), m2.push(` @GeneratedValue(strategy = GenerationType.${s.value.idGenStrategy})`), m2.push(" @Id")), v.add(
|
|
17063
|
+
s.value.jdkVersion === "8" ? "javax.persistence.AttributeOverride" : "jakarta.persistence.AttributeOverride"
|
|
17064
|
+
), v.add(
|
|
17065
|
+
s.value.jdkVersion === "8" ? "javax.persistence.Column" : "jakarta.persistence.Column"
|
|
17066
|
+
), m2.push(
|
|
17067
|
+
` @AttributeOverride(name = "value", column = @Column(name = "${N2.camelToLowerSnake(
|
|
17068
|
+
h2
|
|
17069
|
+
)}"))`
|
|
17070
|
+
)), m2.push(` private ${C2(v, c)} ${N2.lowerFirst(h2)};`);
|
|
16962
17071
|
}
|
|
16963
|
-
const
|
|
16964
|
-
for (const
|
|
16965
|
-
const
|
|
16966
|
-
|
|
16967
|
-
` public void handle${
|
|
16968
|
-
|
|
17072
|
+
const w2 = [...f._getContext().getAssociationMap()[a._attributes.__id]].filter((c) => c._attributes.rule === "Command" || c._attributes.rule === "FacadeCommand");
|
|
17073
|
+
for (const c of w2) {
|
|
17074
|
+
const h2 = r2(c);
|
|
17075
|
+
v.add(`${s.value.namespace}.${s.value.moduleName}.${n}.${h2}`), m2.push(""), m2.push(
|
|
17076
|
+
` public void handle${h2}(@${b2} ${h2} ${N2.lowerFirst(
|
|
17077
|
+
h2
|
|
16969
17078
|
)}) {`
|
|
16970
|
-
),
|
|
17079
|
+
), m2.push(" // HACK need implement"), m2.push(" }");
|
|
16971
17080
|
}
|
|
16972
|
-
|
|
17081
|
+
m2.push("}");
|
|
16973
17082
|
} else {
|
|
16974
|
-
|
|
16975
|
-
|
|
16976
|
-
|
|
16977
|
-
|
|
17083
|
+
l2.has(j3.Jpa) && (v.add(
|
|
17084
|
+
s.value.jdkVersion === "8" ? "javax.persistence.Entity" : "jakarta.persistence.Entity"
|
|
17085
|
+
), m2.push("@Entity"), v.add(s.value.jdkVersion === "8" ? "javax.persistence.Table" : "jakarta.persistence.Table"), m2.push(`@Table(name = "${N2.camelToLowerSnake(g2)}")`)), m2.push(`public class ${g2}Impl implements ${g2} {`);
|
|
17086
|
+
for (const y3 of $2) {
|
|
17087
|
+
const I2 = r2(y3);
|
|
17088
|
+
m2.push(` @${b2}`), l2.has(j3.Jpa) && (y3._attributes.type === "Id" && (v.add(s.value.jdkVersion === "8" ? "javax.persistence.Id" : "jakarta.persistence.Id"), v.add(
|
|
17089
|
+
s.value.jdkVersion === "8" ? "javax.persistence.GeneratedValue" : "jakarta.persistence.GeneratedValue"
|
|
17090
|
+
), v.add(
|
|
17091
|
+
s.value.jdkVersion === "8" ? "javax.persistence.GenerationType" : "jakarta.persistence.GenerationType"
|
|
17092
|
+
), m2.push(` @GeneratedValue(strategy = GenerationType.${s.value.idGenStrategy})`), m2.push(" @Id")), v.add(
|
|
17093
|
+
s.value.jdkVersion === "8" ? "javax.persistence.AttributeOverride" : "jakarta.persistence.AttributeOverride"
|
|
17094
|
+
), v.add(
|
|
17095
|
+
s.value.jdkVersion === "8" ? "javax.persistence.Column" : "jakarta.persistence.Column"
|
|
17096
|
+
), m2.push(
|
|
17097
|
+
` @AttributeOverride(name = "value", column = @Column(name = "${N2.camelToLowerSnake(
|
|
17098
|
+
I2
|
|
17099
|
+
)}"))`
|
|
17100
|
+
)), m2.push(` private ${C2(v, y3)} ${N2.lowerFirst(I2)};`);
|
|
16978
17101
|
}
|
|
16979
|
-
|
|
16980
|
-
const
|
|
16981
|
-
for (const
|
|
16982
|
-
|
|
16983
|
-
|
|
16984
|
-
|
|
16985
|
-
|
|
17102
|
+
m2.push("");
|
|
17103
|
+
const w2 = [], c = [];
|
|
17104
|
+
for (const y3 of $2) {
|
|
17105
|
+
if (l2.has(j3.Jpa))
|
|
17106
|
+
break;
|
|
17107
|
+
const I2 = r2(y3);
|
|
17108
|
+
w2.push(
|
|
17109
|
+
`@${b2} ${C2(v, y3)} ${N2.lowerFirst(I2)}`
|
|
17110
|
+
), c.push(`this.${N2.lowerFirst(I2)} = ${N2.lowerFirst(I2)};`);
|
|
16986
17111
|
}
|
|
16987
|
-
|
|
16988
|
-
`)}`),
|
|
16989
|
-
for (const
|
|
16990
|
-
const
|
|
16991
|
-
|
|
17112
|
+
m2.push(` public ${g2}Impl(${w2.join(", ")}) {`), m2.push(` ${c.join(`
|
|
17113
|
+
`)}`), m2.push(" }");
|
|
17114
|
+
for (const y3 of $2) {
|
|
17115
|
+
const I2 = r2(y3);
|
|
17116
|
+
m2.push(""), m2.push(` @${b2}`), m2.push(` public ${C2(v, y3)} get${I2}() {`), m2.push(` return this.${N2.lowerFirst(I2)};`), m2.push(" }");
|
|
16992
17117
|
}
|
|
16993
|
-
const
|
|
16994
|
-
(
|
|
17118
|
+
const h2 = [...f._getContext().getAssociationMap()[a._attributes.__id]].filter(
|
|
17119
|
+
(y3) => y3._attributes.rule === "Command" || y3._attributes.rule === "FacadeCommand"
|
|
16995
17120
|
);
|
|
16996
|
-
for (const
|
|
16997
|
-
const
|
|
16998
|
-
|
|
16999
|
-
` public void handle${
|
|
17000
|
-
|
|
17121
|
+
for (const y3 of h2) {
|
|
17122
|
+
const I2 = r2(y3);
|
|
17123
|
+
v.add(`${s.value.namespace}.${s.value.moduleName}.${n}.${I2}`), m2.push(""), m2.push(
|
|
17124
|
+
` public void handle${I2}(@${b2} ${I2} ${N2.lowerFirst(
|
|
17125
|
+
I2
|
|
17001
17126
|
)}) {`
|
|
17002
|
-
),
|
|
17127
|
+
), m2.push(" // HACK need implement"), m2.push(" }");
|
|
17003
17128
|
}
|
|
17004
|
-
|
|
17129
|
+
m2.push("}");
|
|
17005
17130
|
}
|
|
17006
|
-
|
|
17131
|
+
u.push({
|
|
17007
17132
|
type: "AggImpl",
|
|
17008
|
-
imports:
|
|
17009
|
-
content:
|
|
17133
|
+
imports: v,
|
|
17134
|
+
content: m2.join(`
|
|
17010
17135
|
`)
|
|
17011
17136
|
});
|
|
17012
17137
|
}
|
|
17013
|
-
return
|
|
17014
|
-
}
|
|
17015
|
-
),
|
|
17016
|
-
(
|
|
17017
|
-
const
|
|
17018
|
-
|
|
17019
|
-
const
|
|
17020
|
-
if (
|
|
17021
|
-
|
|
17022
|
-
const
|
|
17023
|
-
for (const
|
|
17024
|
-
const
|
|
17025
|
-
|
|
17026
|
-
` @${
|
|
17027
|
-
${
|
|
17028
|
-
|
|
17029
|
-
|
|
17030
|
-
)} ${N2.lowerFirst(
|
|
17138
|
+
return u;
|
|
17139
|
+
}
|
|
17140
|
+
), o.commands._setEventCodeProvider(
|
|
17141
|
+
(a) => {
|
|
17142
|
+
const l2 = /* @__PURE__ */ new Set();
|
|
17143
|
+
l2.add(s.value.nonNullAnnotation);
|
|
17144
|
+
const f = s.value.nonNullAnnotation.split(".").pop(), b2 = s.value.additions, g2 = r2(a), u = [], v = Object.values(a.inner);
|
|
17145
|
+
if (d(l2, v), b2.has(j3.RecordValueObject)) {
|
|
17146
|
+
b2.has(j3.LombokBuilder) && u.push("@lombok.Builder(toBuilder = true)"), u.push(`public record ${g2}(`);
|
|
17147
|
+
const m2 = [];
|
|
17148
|
+
for (const $2 of v) {
|
|
17149
|
+
const w2 = r2($2);
|
|
17150
|
+
m2.push(
|
|
17151
|
+
` @${f}
|
|
17152
|
+
${C2(
|
|
17153
|
+
l2,
|
|
17154
|
+
$2
|
|
17155
|
+
)} ${N2.lowerFirst(w2)}`
|
|
17031
17156
|
);
|
|
17032
17157
|
}
|
|
17033
|
-
|
|
17034
|
-
`)),
|
|
17035
|
-
} else if (
|
|
17036
|
-
|
|
17037
|
-
for (const
|
|
17038
|
-
const
|
|
17039
|
-
|
|
17040
|
-
` private final ${
|
|
17158
|
+
u.push(m2.join(`,
|
|
17159
|
+
`)), u.push(") {"), u.push(` public ${g2} {`), u.push(" // HACK check value"), u.push(" }"), u.push("}");
|
|
17160
|
+
} else if (b2.has(j3.Lombok)) {
|
|
17161
|
+
u.push("@lombok.AllArgsConstructor"), u.push("@lombok.Getter"), b2.has(j3.LombokBuilder) && u.push("@lombok.Builder(toBuilder = true)"), u.push(`public class ${g2} {`);
|
|
17162
|
+
for (const m2 of v) {
|
|
17163
|
+
const $2 = r2(m2);
|
|
17164
|
+
u.push(` @${f}`), u.push(
|
|
17165
|
+
` private final ${C2(l2, m2)} ${N2.lowerFirst($2)};`
|
|
17041
17166
|
);
|
|
17042
17167
|
}
|
|
17043
|
-
|
|
17168
|
+
u.push("}");
|
|
17044
17169
|
} else {
|
|
17045
|
-
|
|
17046
|
-
for (const
|
|
17047
|
-
const
|
|
17048
|
-
|
|
17170
|
+
u.push(`public class ${g2} {`);
|
|
17171
|
+
for (const w2 of v) {
|
|
17172
|
+
const c = r2(w2);
|
|
17173
|
+
u.push(` @${f}`), u.push(` private final ${c} ${N2.lowerFirst(c)};`);
|
|
17049
17174
|
}
|
|
17050
|
-
|
|
17051
|
-
const
|
|
17052
|
-
for (const
|
|
17053
|
-
const
|
|
17054
|
-
|
|
17055
|
-
`@${
|
|
17056
|
-
),
|
|
17175
|
+
u.push("");
|
|
17176
|
+
const m2 = [], $2 = [];
|
|
17177
|
+
for (const w2 of v) {
|
|
17178
|
+
const c = r2(w2);
|
|
17179
|
+
m2.push(
|
|
17180
|
+
`@${f} ${i(l2, w2)} ${N2.lowerFirst(c)}`
|
|
17181
|
+
), $2.push(`this.${N2.lowerFirst(c)} = ${N2.lowerFirst(c)};`);
|
|
17057
17182
|
}
|
|
17058
|
-
|
|
17059
|
-
`)}`),
|
|
17060
|
-
for (const
|
|
17061
|
-
const
|
|
17062
|
-
|
|
17183
|
+
u.push(` public ${g2}(${m2.join(", ")}) {`), u.push(` ${$2.join(`
|
|
17184
|
+
`)}`), u.push(" }");
|
|
17185
|
+
for (const w2 of v) {
|
|
17186
|
+
const c = r2(w2);
|
|
17187
|
+
u.push(""), u.push(` public ${c} get${c} () {`), u.push(` return this.${N2.lowerFirst(c)};`), u.push(" }");
|
|
17063
17188
|
}
|
|
17064
|
-
|
|
17189
|
+
u.push("}");
|
|
17065
17190
|
}
|
|
17066
17191
|
return [
|
|
17067
17192
|
{
|
|
17068
17193
|
type: "Event",
|
|
17069
|
-
imports:
|
|
17070
|
-
content:
|
|
17194
|
+
imports: l2,
|
|
17195
|
+
content: u.join(`
|
|
17071
17196
|
`)
|
|
17072
17197
|
}
|
|
17073
17198
|
];
|
|
17074
17199
|
}
|
|
17075
|
-
),
|
|
17076
|
-
const
|
|
17077
|
-
function
|
|
17078
|
-
for (const
|
|
17079
|
-
if (!
|
|
17200
|
+
), o.commands._setReadModelCodeProvider(() => []), o.commands._setCodeFileProvider(() => {
|
|
17201
|
+
const a = [], l2 = {};
|
|
17202
|
+
function f(m2) {
|
|
17203
|
+
for (const $2 of Object.values(m2)) {
|
|
17204
|
+
if (!_($2))
|
|
17080
17205
|
continue;
|
|
17081
|
-
const
|
|
17082
|
-
if (
|
|
17206
|
+
const w2 = [...s.value.namespace.split(/\./), s.value.moduleName, e], c = r2($2) + ".java";
|
|
17207
|
+
if (l2[`${w2.join("/")}/${c}`] === true)
|
|
17083
17208
|
continue;
|
|
17084
|
-
const
|
|
17085
|
-
if (
|
|
17209
|
+
const h2 = o.commands._genInfoCode($2);
|
|
17210
|
+
if (h2.length === 0)
|
|
17086
17211
|
continue;
|
|
17087
|
-
const
|
|
17088
|
-
|
|
17089
|
-
for (const
|
|
17090
|
-
|
|
17091
|
-
|
|
17212
|
+
const y3 = new S2(w2, c);
|
|
17213
|
+
y3.appendContentln(`package ${s.value.namespace}.${s.value.moduleName}.${e};`), y3.appendContentln("");
|
|
17214
|
+
for (const I2 of h2[0].imports)
|
|
17215
|
+
y3.appendContentln(`import ${I2};`);
|
|
17216
|
+
y3.appendContentln(""), y3.appendContentln(h2[0].content), a.push(y3), l2[`${w2.join("/")}/${c}`] = true;
|
|
17092
17217
|
}
|
|
17093
17218
|
}
|
|
17094
|
-
const
|
|
17095
|
-
for (const
|
|
17096
|
-
|
|
17097
|
-
const
|
|
17098
|
-
|
|
17099
|
-
if (
|
|
17100
|
-
const
|
|
17101
|
-
|
|
17102
|
-
for (const
|
|
17103
|
-
|
|
17104
|
-
|
|
17105
|
-
} else if (
|
|
17106
|
-
const
|
|
17107
|
-
|
|
17108
|
-
for (const
|
|
17109
|
-
|
|
17110
|
-
|
|
17219
|
+
const b2 = o.states.designer.value._getContext().getCommands();
|
|
17220
|
+
for (const m2 of b2) {
|
|
17221
|
+
f(m2.inner);
|
|
17222
|
+
const $2 = o.commands._genCommandCode(m2), w2 = [...s.value.namespace.split(/\./), s.value.moduleName, n];
|
|
17223
|
+
$2.forEach((c) => {
|
|
17224
|
+
if (c.type === "Command") {
|
|
17225
|
+
const h2 = new S2(w2, r2(m2) + ".java");
|
|
17226
|
+
h2.appendContentln(`package ${s.value.namespace}.${s.value.moduleName}.${n};`), h2.appendContentln(""), h2.addImports(c.imports);
|
|
17227
|
+
for (const y3 of c.imports)
|
|
17228
|
+
h2.appendContentln(`import ${y3};`);
|
|
17229
|
+
h2.appendContentln(""), h2.appendContentln(c.content), a.push(h2);
|
|
17230
|
+
} else if (c.type === "CommandHandler") {
|
|
17231
|
+
const h2 = new S2(w2, r2(m2) + "Handler.java");
|
|
17232
|
+
h2.appendContentln(`package ${s.value.namespace}.${s.value.moduleName}.${n};`), h2.appendContentln(""), h2.addImports(c.imports);
|
|
17233
|
+
for (const y3 of c.imports)
|
|
17234
|
+
h2.appendContentln(`import ${y3};`);
|
|
17235
|
+
h2.appendContentln(""), h2.appendContentln(c.content), a.push(h2);
|
|
17111
17236
|
} else
|
|
17112
|
-
isNever(
|
|
17237
|
+
isNever(c.type);
|
|
17113
17238
|
});
|
|
17114
17239
|
}
|
|
17115
|
-
const
|
|
17116
|
-
for (const
|
|
17117
|
-
|
|
17118
|
-
const
|
|
17119
|
-
|
|
17120
|
-
if (
|
|
17121
|
-
const
|
|
17122
|
-
|
|
17123
|
-
for (const
|
|
17124
|
-
|
|
17125
|
-
|
|
17240
|
+
const g2 = o.states.designer.value._getContext().getFacadeCommands();
|
|
17241
|
+
for (const m2 of g2) {
|
|
17242
|
+
f(m2.inner);
|
|
17243
|
+
const $2 = o.commands._genFacadeCommandCode(m2), w2 = [...s.value.namespace.split(/\./), s.value.moduleName, n];
|
|
17244
|
+
$2.forEach((c) => {
|
|
17245
|
+
if (c.type === "FacadeCommand") {
|
|
17246
|
+
const h2 = new S2(w2, r2(m2) + ".java");
|
|
17247
|
+
h2.appendContentln(`package ${s.value.namespace}.${s.value.moduleName}.${n};`), h2.appendContentln(""), h2.addImports(c.imports);
|
|
17248
|
+
for (const y3 of c.imports)
|
|
17249
|
+
h2.appendContentln(`import ${y3};`);
|
|
17250
|
+
h2.appendContentln(""), h2.appendContentln(c.content), a.push(h2);
|
|
17251
|
+
} else if (c.type === "FacadeCommandHandler") {
|
|
17252
|
+
const h2 = new S2(w2, r2(m2) + "Handler.java");
|
|
17253
|
+
h2.appendContentln(`package ${s.value.namespace}.${s.value.moduleName}.${n};`), h2.appendContentln(""), h2.addImports(c.imports);
|
|
17254
|
+
for (const y3 of c.imports)
|
|
17255
|
+
h2.appendContentln(`import ${y3};`);
|
|
17256
|
+
h2.appendContentln(""), h2.appendContentln(c.content), a.push(h2);
|
|
17126
17257
|
} else
|
|
17127
|
-
isNever(
|
|
17258
|
+
isNever(c.type);
|
|
17128
17259
|
});
|
|
17129
17260
|
}
|
|
17130
|
-
const
|
|
17131
|
-
for (const
|
|
17132
|
-
|
|
17133
|
-
const
|
|
17134
|
-
|
|
17135
|
-
if (
|
|
17136
|
-
const
|
|
17137
|
-
|
|
17138
|
-
for (const
|
|
17139
|
-
|
|
17140
|
-
|
|
17141
|
-
} else if (
|
|
17142
|
-
const
|
|
17143
|
-
|
|
17144
|
-
for (const
|
|
17145
|
-
|
|
17146
|
-
|
|
17261
|
+
const u = o.states.designer.value._getContext().getAggs();
|
|
17262
|
+
for (const m2 of u) {
|
|
17263
|
+
f(m2.inner);
|
|
17264
|
+
const $2 = o.commands._genAggCode(m2), w2 = [...s.value.namespace.split(/\./), s.value.moduleName];
|
|
17265
|
+
$2.forEach((c) => {
|
|
17266
|
+
if (c.type === "Agg") {
|
|
17267
|
+
const h2 = new S2(w2, r2(m2) + ".java");
|
|
17268
|
+
h2.appendContentln(`package ${s.value.namespace}.${s.value.moduleName};`), h2.appendContentln(""), h2.addImports(c.imports);
|
|
17269
|
+
for (const y3 of c.imports)
|
|
17270
|
+
h2.appendContentln(`import ${y3};`);
|
|
17271
|
+
h2.appendContentln(""), h2.appendContentln(c.content), a.push(h2);
|
|
17272
|
+
} else if (c.type === "AggImpl") {
|
|
17273
|
+
const h2 = new S2(w2, r2(m2) + "Impl.java");
|
|
17274
|
+
h2.appendContentln(`package ${s.value.namespace}.${s.value.moduleName};`), h2.appendContentln(""), h2.addImports(c.imports);
|
|
17275
|
+
for (const y3 of c.imports)
|
|
17276
|
+
h2.appendContentln(`import ${y3};`);
|
|
17277
|
+
h2.appendContentln(""), h2.appendContentln(c.content), a.push(h2);
|
|
17147
17278
|
} else
|
|
17148
|
-
isNever(
|
|
17279
|
+
isNever(c.type);
|
|
17149
17280
|
});
|
|
17150
17281
|
}
|
|
17151
|
-
const
|
|
17152
|
-
for (const
|
|
17153
|
-
|
|
17154
|
-
const
|
|
17155
|
-
|
|
17156
|
-
const
|
|
17157
|
-
|
|
17158
|
-
for (const
|
|
17159
|
-
|
|
17160
|
-
|
|
17282
|
+
const v = o.states.designer.value._getContext().getEvents();
|
|
17283
|
+
for (const m2 of v) {
|
|
17284
|
+
f(m2.inner);
|
|
17285
|
+
const $2 = o.commands._genEventCode(m2), w2 = [...s.value.namespace.split(/\./), s.value.moduleName, t];
|
|
17286
|
+
$2.forEach((c) => {
|
|
17287
|
+
const h2 = new S2(w2, r2(m2) + ".java");
|
|
17288
|
+
h2.appendContentln(`package ${s.value.namespace}.${s.value.moduleName}.${t};`), h2.appendContentln(""), h2.addImports(c.imports);
|
|
17289
|
+
for (const y3 of c.imports)
|
|
17290
|
+
h2.appendContentln(`import ${y3};`);
|
|
17291
|
+
h2.appendContentln(""), h2.appendContentln(c.content), a.push(h2);
|
|
17161
17292
|
});
|
|
17162
17293
|
}
|
|
17163
|
-
return
|
|
17294
|
+
return a;
|
|
17164
17295
|
});
|
|
17165
17296
|
}
|
|
17166
17297
|
};
|
|
17167
17298
|
});
|
|
17168
|
-
var
|
|
17169
|
-
var
|
|
17299
|
+
var Fe = Ne.KotlinGeneratorAddition;
|
|
17300
|
+
var Oo = le2.createHotSwapPlugin(() => ({
|
|
17170
17301
|
unmount({ api: e }) {
|
|
17171
17302
|
e.commands.clearCaches(), e.commands._setCommandCodeProvider(() => []), e.commands._setFacadeCommandCodeProvider(() => []), e.commands._setAggCodeProvider(() => []), e.commands._setEventCodeProvider(() => []), e.commands._setReadModelCodeProvider(() => []), e.commands._setCodeFileProvider(() => []), e.commands.setContext({});
|
|
17172
17303
|
},
|
|
17173
17304
|
mount({ api: e }) {
|
|
17174
|
-
const n = "value", t = e.states.context,
|
|
17175
|
-
function
|
|
17176
|
-
return !
|
|
17305
|
+
const n = "value", t = e.states.context, r2 = e.states.designer.value._getContext().getDesignerOptions().ignoreValueObjects.map((d) => N2.stringToLowerCamel(d));
|
|
17306
|
+
function o(d) {
|
|
17307
|
+
return !r2.includes(N2.stringToLowerCamel(d._attributes.name));
|
|
17177
17308
|
}
|
|
17178
|
-
function
|
|
17179
|
-
return
|
|
17309
|
+
function s(d, i) {
|
|
17310
|
+
return o(i) ? N2.stringToUpperCamel(i._attributes.name) : C2(d, i);
|
|
17180
17311
|
}
|
|
17181
|
-
function
|
|
17312
|
+
function p(d) {
|
|
17182
17313
|
return N2.stringToUpperCamel(d._attributes.name);
|
|
17183
17314
|
}
|
|
17184
|
-
function
|
|
17185
|
-
for (const
|
|
17186
|
-
if (!
|
|
17187
|
-
|
|
17315
|
+
function _(d, i) {
|
|
17316
|
+
for (const a of i) {
|
|
17317
|
+
if (!o(a)) {
|
|
17318
|
+
C2(d, a);
|
|
17188
17319
|
continue;
|
|
17189
17320
|
}
|
|
17190
17321
|
d.add(
|
|
17191
|
-
`${t.value.namespace}.${t.value.moduleName}.${n}.${
|
|
17322
|
+
`${t.value.namespace}.${t.value.moduleName}.${n}.${p(a)}`
|
|
17192
17323
|
);
|
|
17193
17324
|
}
|
|
17194
17325
|
}
|
|
17195
|
-
function
|
|
17196
|
-
const
|
|
17197
|
-
return /\b(time|timestamp|date|deadline|expire)\b/.test(l2) ?
|
|
17326
|
+
function C2(d, i) {
|
|
17327
|
+
const a = t.value.additions, l2 = N2.stringToLowerSnake(i._attributes.name).replace(/_/, " ");
|
|
17328
|
+
return /\b(time|timestamp|date|deadline|expire)\b/.test(l2) ? a.has(Fe.Timezone) ? (d.add("java.time.OffsetDateTime"), "OffsetDateTime") : (d.add("java.time.LocalDateTime"), "LocalDateTime") : /\b(enum|gender|sex|count|amount|num|number|flag|times)\b/.test(l2) ? "Integer" : /\b(price)$/.test(l2) ? (d.add("java.math.BigDecimal"), "BigDecimal") : /^(if|is)\b/.test(l2) ? "Boolean" : Ee(i) && (i._attributes.type === "Id" || i._attributes.type === "Version") || /\b(id|identifier|ver|version)$/.test(l2) ? "Long" : "String";
|
|
17198
17329
|
}
|
|
17199
17330
|
e.commands._setInfoCodeProvider(
|
|
17200
17331
|
(d) => {
|
|
17201
|
-
const
|
|
17202
|
-
return l2.has(
|
|
17332
|
+
const i = /* @__PURE__ */ new Set(), a = p(d), l2 = t.value.additions, f = [];
|
|
17333
|
+
return l2.has(Fe.ValueClass) ? (i.add("kotlin.jvm.JvmInline"), f.push("@JvmInline"), f.push(`value class ${a}(val value: ${C2(i, d)})`)) : f.push(`data class ${a}(val value: ${C2(i, d)})`), [
|
|
17203
17334
|
{
|
|
17204
17335
|
type: "Info",
|
|
17205
|
-
imports:
|
|
17206
|
-
content:
|
|
17336
|
+
imports: i,
|
|
17337
|
+
content: f.join(`
|
|
17207
17338
|
`)
|
|
17208
17339
|
}
|
|
17209
17340
|
];
|
|
17210
17341
|
}
|
|
17211
17342
|
), e.commands._setCommandCodeProvider(
|
|
17212
17343
|
(d) => {
|
|
17213
|
-
const
|
|
17344
|
+
const i = [], a = t.value.additions;
|
|
17214
17345
|
{
|
|
17215
|
-
const l2 = /* @__PURE__ */ new Set(),
|
|
17216
|
-
|
|
17217
|
-
const
|
|
17218
|
-
for (const
|
|
17219
|
-
const
|
|
17220
|
-
|
|
17346
|
+
const l2 = /* @__PURE__ */ new Set(), f = p(d), b2 = [], g2 = Object.values(d.inner);
|
|
17347
|
+
_(l2, g2);
|
|
17348
|
+
const u = [];
|
|
17349
|
+
for (const v of g2) {
|
|
17350
|
+
const m2 = p(v);
|
|
17351
|
+
u.push(`val ${N2.lowerFirst(m2)}: ${s(l2, v)}`);
|
|
17221
17352
|
}
|
|
17222
|
-
|
|
17353
|
+
b2.push(`data class ${f}(${u.join(", ")})`), i.push({
|
|
17223
17354
|
type: "Command",
|
|
17224
17355
|
imports: l2,
|
|
17225
|
-
content:
|
|
17356
|
+
content: b2.join(`
|
|
17226
17357
|
`)
|
|
17227
17358
|
});
|
|
17228
17359
|
}
|
|
17229
|
-
if (!
|
|
17230
|
-
return
|
|
17360
|
+
if (!a.has(Fe.CommandHandler))
|
|
17361
|
+
return i;
|
|
17231
17362
|
{
|
|
17232
|
-
const l2 = /* @__PURE__ */ new Set(),
|
|
17233
|
-
|
|
17234
|
-
const
|
|
17235
|
-
(
|
|
17363
|
+
const l2 = /* @__PURE__ */ new Set(), f = p(d), b2 = [];
|
|
17364
|
+
b2.push(`class ${f}Handler {`);
|
|
17365
|
+
const g2 = [...e.states.designer.value._getContext().getAssociationMap()[d._attributes.__id]].filter(
|
|
17366
|
+
(u) => u._attributes.rule === "Agg"
|
|
17236
17367
|
);
|
|
17237
|
-
for (const
|
|
17238
|
-
l2.add(`${t.value.namespace}.${t.value.moduleName}.${
|
|
17239
|
-
|
|
17368
|
+
for (const u of g2)
|
|
17369
|
+
l2.add(`${t.value.namespace}.${t.value.moduleName}.${p(u)}`), b2.push(` fun handle(command: ${f}): ${p(u)} {`), b2.push(" // HACK Implement"), b2.push(" }");
|
|
17370
|
+
b2.push("}"), i.push({
|
|
17240
17371
|
type: "CommandHandler",
|
|
17241
17372
|
imports: l2,
|
|
17242
|
-
content:
|
|
17373
|
+
content: b2.join(`
|
|
17243
17374
|
`)
|
|
17244
17375
|
});
|
|
17245
17376
|
}
|
|
17246
|
-
return
|
|
17377
|
+
return i;
|
|
17247
17378
|
}
|
|
17248
17379
|
), e.commands._setFacadeCommandCodeProvider(
|
|
17249
17380
|
(d) => {
|
|
17250
|
-
const
|
|
17251
|
-
|
|
17252
|
-
const
|
|
17253
|
-
for (const
|
|
17254
|
-
const
|
|
17255
|
-
|
|
17256
|
-
}
|
|
17257
|
-
return l2.push(`data class ${
|
|
17381
|
+
const i = /* @__PURE__ */ new Set(), a = p(d), l2 = [], f = Object.values(d.inner);
|
|
17382
|
+
_(i, f);
|
|
17383
|
+
const b2 = [];
|
|
17384
|
+
for (const g2 of f) {
|
|
17385
|
+
const u = p(g2);
|
|
17386
|
+
b2.push(`val ${N2.lowerFirst(u)}: ${s(i, g2)}`);
|
|
17387
|
+
}
|
|
17388
|
+
return l2.push(`data class ${a}(${b2.join(", ")})`), [
|
|
17258
17389
|
{
|
|
17259
17390
|
type: "FacadeCommand",
|
|
17260
|
-
imports:
|
|
17391
|
+
imports: i,
|
|
17261
17392
|
content: l2.join(`
|
|
17262
17393
|
`)
|
|
17263
17394
|
}
|
|
17264
17395
|
];
|
|
17265
17396
|
}
|
|
17266
17397
|
), e.commands._setAggCodeProvider((d) => {
|
|
17267
|
-
const
|
|
17268
|
-
|
|
17269
|
-
const
|
|
17270
|
-
for (const
|
|
17271
|
-
const
|
|
17272
|
-
|
|
17273
|
-
}
|
|
17274
|
-
|
|
17275
|
-
`)}`),
|
|
17276
|
-
const
|
|
17277
|
-
for (const
|
|
17278
|
-
const
|
|
17279
|
-
|
|
17280
|
-
}
|
|
17281
|
-
|
|
17282
|
-
`)}`),
|
|
17283
|
-
for (const
|
|
17284
|
-
const
|
|
17285
|
-
|
|
17286
|
-
}
|
|
17287
|
-
return
|
|
17398
|
+
const i = /* @__PURE__ */ new Set(), a = e.states.designer.value, l2 = p(d), f = [], b2 = Object.values(d.inner);
|
|
17399
|
+
_(i, b2);
|
|
17400
|
+
const g2 = [], u = [...a._getContext().getAssociationMap()[d._attributes.__id]].filter((m2) => m2._attributes.rule === "Command" || m2._attributes.rule === "FacadeCommand");
|
|
17401
|
+
for (const m2 of u) {
|
|
17402
|
+
const $2 = p(m2);
|
|
17403
|
+
g2.push(`fun handle(command: ${$2})`);
|
|
17404
|
+
}
|
|
17405
|
+
f.push(`interface ${l2} {`), f.push(` ${g2.join(`
|
|
17406
|
+
`)}`), f.push("}"), f.push(""), f.push(`class ${l2}Impl(`);
|
|
17407
|
+
const v = [];
|
|
17408
|
+
for (const m2 of b2) {
|
|
17409
|
+
const $2 = p(m2);
|
|
17410
|
+
v.push(`val ${N2.lowerFirst($2)}: ${s(i, m2)}`);
|
|
17411
|
+
}
|
|
17412
|
+
f.push(` ${v.join(`,
|
|
17413
|
+
`)}`), f.push(`): ${l2} {`);
|
|
17414
|
+
for (const m2 of u) {
|
|
17415
|
+
const $2 = p(m2);
|
|
17416
|
+
f.push(` override fun handle(command: ${$2}) {`), f.push(" // HACK Implement"), f.push(" }");
|
|
17417
|
+
}
|
|
17418
|
+
return f.push("}"), [
|
|
17288
17419
|
{
|
|
17289
17420
|
type: "Agg",
|
|
17290
|
-
imports:
|
|
17291
|
-
content:
|
|
17421
|
+
imports: i,
|
|
17422
|
+
content: f.join(`
|
|
17292
17423
|
`)
|
|
17293
17424
|
}
|
|
17294
17425
|
];
|
|
17295
17426
|
}), e.commands._setEventCodeProvider(
|
|
17296
17427
|
(d) => {
|
|
17297
|
-
const
|
|
17298
|
-
|
|
17299
|
-
const
|
|
17300
|
-
for (const
|
|
17301
|
-
const
|
|
17302
|
-
|
|
17303
|
-
}
|
|
17304
|
-
return l2.push(`data class ${
|
|
17428
|
+
const i = /* @__PURE__ */ new Set(), a = p(d), l2 = [], f = Object.values(d.inner);
|
|
17429
|
+
_(i, f);
|
|
17430
|
+
const b2 = [];
|
|
17431
|
+
for (const g2 of f) {
|
|
17432
|
+
const u = p(g2);
|
|
17433
|
+
b2.push(`val ${N2.lowerFirst(u)}: ${s(i, g2)}`);
|
|
17434
|
+
}
|
|
17435
|
+
return l2.push(`data class ${a}(${b2.join(", ")})`), [
|
|
17305
17436
|
{
|
|
17306
17437
|
type: "Event",
|
|
17307
|
-
imports:
|
|
17438
|
+
imports: i,
|
|
17308
17439
|
content: l2.join(`
|
|
17309
17440
|
`)
|
|
17310
17441
|
}
|
|
17311
17442
|
];
|
|
17312
17443
|
}
|
|
17313
17444
|
), e.commands._setReadModelCodeProvider(() => []), e.commands._setCodeFileProvider(() => {
|
|
17314
|
-
const d = [],
|
|
17315
|
-
function
|
|
17316
|
-
for (const
|
|
17317
|
-
if (!
|
|
17445
|
+
const d = [], i = {};
|
|
17446
|
+
function a(u) {
|
|
17447
|
+
for (const v of Object.values(u)) {
|
|
17448
|
+
if (!o(v))
|
|
17318
17449
|
continue;
|
|
17319
|
-
const
|
|
17320
|
-
if (
|
|
17450
|
+
const m2 = [...t.value.namespace.split(/\./), t.value.moduleName, n], $2 = p(v) + ".kt";
|
|
17451
|
+
if (i[`${m2.join("/")}/${$2}`] === true)
|
|
17321
17452
|
continue;
|
|
17322
|
-
const
|
|
17323
|
-
if (
|
|
17453
|
+
const w2 = e.commands._genInfoCode(v);
|
|
17454
|
+
if (w2.length === 0)
|
|
17324
17455
|
continue;
|
|
17325
|
-
const
|
|
17326
|
-
|
|
17327
|
-
for (const
|
|
17328
|
-
|
|
17329
|
-
|
|
17456
|
+
const c = new S2(m2, $2);
|
|
17457
|
+
c.appendContentln(`package ${t.value.namespace}.${t.value.moduleName}.${n}`), c.appendContentln("");
|
|
17458
|
+
for (const h2 of w2[0].imports)
|
|
17459
|
+
c.appendContentln(`import ${h2}`);
|
|
17460
|
+
c.appendContentln(""), c.appendContentln(w2[0].content), d.push(c), i[`${m2.join("/")}/${$2}`] = true;
|
|
17330
17461
|
}
|
|
17331
17462
|
}
|
|
17332
17463
|
const l2 = e.states.designer.value._getContext().getCommands();
|
|
17333
|
-
for (const
|
|
17334
|
-
|
|
17335
|
-
const
|
|
17336
|
-
|
|
17337
|
-
|
|
17464
|
+
for (const u of l2) {
|
|
17465
|
+
a(u.inner);
|
|
17466
|
+
const v = e.commands._genCommandCode(u), m2 = [...t.value.namespace.split(/\./), t.value.moduleName], $2 = new S2(m2, p(u) + ".kt"), w2 = [];
|
|
17467
|
+
$2.appendContentln(`package ${t.value.namespace}.${t.value.moduleName}`), $2.appendContentln(""), v.forEach((c) => {
|
|
17468
|
+
c.type === "Command" || c.type === "CommandHandler" ? ($2.addImports(c.imports), w2.push(c.content)) : isNever(c.type);
|
|
17338
17469
|
});
|
|
17339
|
-
for (const
|
|
17340
|
-
|
|
17341
|
-
|
|
17342
|
-
for (const
|
|
17343
|
-
|
|
17344
|
-
d.push(
|
|
17345
|
-
}
|
|
17346
|
-
const
|
|
17347
|
-
for (const
|
|
17348
|
-
|
|
17349
|
-
const
|
|
17350
|
-
$2.forEach((
|
|
17351
|
-
|
|
17352
|
-
const h2 = new j3(_, c(f) + ".kt");
|
|
17353
|
-
h2.appendContentln(`package ${t.value.namespace}.${t.value.moduleName}`), h2.appendContentln(""), h2.addImports(b2.imports);
|
|
17354
|
-
for (const u of b2.imports)
|
|
17355
|
-
h2.appendContentln(`import ${u}`);
|
|
17356
|
-
h2.appendContentln(""), h2.appendContentln(b2.content), d.push(h2);
|
|
17357
|
-
} else
|
|
17358
|
-
isNever(b2.type);
|
|
17470
|
+
for (const c of $2.getImports())
|
|
17471
|
+
$2.appendContentln(`import ${c}`);
|
|
17472
|
+
$2.appendContentln("");
|
|
17473
|
+
for (const c of w2)
|
|
17474
|
+
$2.appendContentln(c);
|
|
17475
|
+
d.push($2);
|
|
17476
|
+
}
|
|
17477
|
+
const f = e.states.designer.value._getContext().getFacadeCommands();
|
|
17478
|
+
for (const u of f) {
|
|
17479
|
+
a(u.inner);
|
|
17480
|
+
const v = e.commands._genFacadeCommandCode(u), m2 = [...t.value.namespace.split(/\./), t.value.moduleName], $2 = new S2(m2, p(u) + ".kt"), w2 = [];
|
|
17481
|
+
$2.appendContentln(`package ${t.value.namespace}.${t.value.moduleName}`), $2.appendContentln(""), v.forEach((c) => {
|
|
17482
|
+
c.type === "FacadeCommand" || c.type === "FacadeCommandHandler" ? ($2.addImports(c.imports), w2.push(c.content)) : isNever(c.type);
|
|
17359
17483
|
});
|
|
17360
|
-
|
|
17361
|
-
|
|
17362
|
-
|
|
17363
|
-
|
|
17364
|
-
|
|
17365
|
-
|
|
17366
|
-
|
|
17484
|
+
for (const c of $2.getImports())
|
|
17485
|
+
$2.appendContentln(`import ${c}`);
|
|
17486
|
+
$2.appendContentln("");
|
|
17487
|
+
for (const c of w2)
|
|
17488
|
+
$2.appendContentln(c);
|
|
17489
|
+
d.push($2);
|
|
17490
|
+
}
|
|
17491
|
+
const b2 = e.states.designer.value._getContext().getAggs();
|
|
17492
|
+
for (const u of b2) {
|
|
17493
|
+
a(u.inner);
|
|
17494
|
+
const v = e.commands._genAggCode(u), m2 = [...t.value.namespace.split(/\./), t.value.moduleName], $2 = new S2(m2, p(u) + ".kt"), w2 = [];
|
|
17495
|
+
$2.appendContentln(`package ${t.value.namespace}.${t.value.moduleName}`), $2.appendContentln(""), v.forEach((c) => {
|
|
17496
|
+
c.type === "Agg" || c.type === "AggImpl" ? ($2.addImports(c.imports), w2.push(c.content)) : isNever(c.type);
|
|
17367
17497
|
});
|
|
17368
|
-
for (const
|
|
17369
|
-
|
|
17370
|
-
|
|
17371
|
-
for (const
|
|
17372
|
-
|
|
17373
|
-
d.push(
|
|
17374
|
-
}
|
|
17375
|
-
const
|
|
17376
|
-
for (const
|
|
17377
|
-
|
|
17378
|
-
const
|
|
17379
|
-
|
|
17380
|
-
if (
|
|
17381
|
-
const
|
|
17382
|
-
|
|
17383
|
-
for (const
|
|
17384
|
-
|
|
17385
|
-
|
|
17498
|
+
for (const c of $2.getImports())
|
|
17499
|
+
$2.appendContentln(`import ${c}`);
|
|
17500
|
+
$2.appendContentln("");
|
|
17501
|
+
for (const c of w2)
|
|
17502
|
+
$2.appendContentln(c);
|
|
17503
|
+
d.push($2);
|
|
17504
|
+
}
|
|
17505
|
+
const g2 = e.states.designer.value._getContext().getEvents();
|
|
17506
|
+
for (const u of g2) {
|
|
17507
|
+
a(u.inner);
|
|
17508
|
+
const v = e.commands._genEventCode(u), m2 = [...t.value.namespace.split(/\./), t.value.moduleName];
|
|
17509
|
+
v.forEach(($2) => {
|
|
17510
|
+
if ($2.type === "Event") {
|
|
17511
|
+
const w2 = new S2(m2, p(u) + ".kt");
|
|
17512
|
+
w2.appendContentln(`package ${t.value.namespace}.${t.value.moduleName}`), w2.appendContentln(""), w2.addImports($2.imports);
|
|
17513
|
+
for (const c of $2.imports)
|
|
17514
|
+
w2.appendContentln(`import ${c}`);
|
|
17515
|
+
w2.appendContentln(""), w2.appendContentln($2.content), d.push(w2);
|
|
17386
17516
|
} else
|
|
17387
|
-
isNever(
|
|
17517
|
+
isNever($2.type);
|
|
17388
17518
|
});
|
|
17389
17519
|
}
|
|
17390
17520
|
return d;
|
|
17391
17521
|
});
|
|
17392
17522
|
}
|
|
17393
17523
|
}));
|
|
17394
|
-
var
|
|
17524
|
+
var To = le2.createHotSwapPlugin(() => ({
|
|
17395
17525
|
unmount({ api: e }) {
|
|
17396
17526
|
e.commands.clearCaches(), e.commands._setCommandCodeProvider(() => []), e.commands._setFacadeCommandCodeProvider(() => []), e.commands._setAggCodeProvider(() => []), e.commands._setEventCodeProvider(() => []), e.commands._setReadModelCodeProvider(() => []), e.commands._setCodeFileProvider(() => []), e.commands.setContext({});
|
|
17397
17527
|
},
|
|
17398
17528
|
mount({ api: e }) {
|
|
17399
|
-
const n = e.states.context, t = e.states.designer.value._getContext().getDesignerOptions().ignoreValueObjects.map((
|
|
17400
|
-
function
|
|
17401
|
-
return !t.includes(N2.stringToLowerCamel(
|
|
17529
|
+
const n = e.states.context, t = e.states.designer.value._getContext().getDesignerOptions().ignoreValueObjects.map((C2) => N2.stringToLowerCamel(C2));
|
|
17530
|
+
function r2(C2) {
|
|
17531
|
+
return !t.includes(N2.stringToLowerCamel(C2._attributes.name));
|
|
17402
17532
|
}
|
|
17403
|
-
function
|
|
17404
|
-
return
|
|
17533
|
+
function o(C2, d) {
|
|
17534
|
+
return r2(d) ? N2.stringToUpperCamel(d._attributes.name) : _(C2, d);
|
|
17405
17535
|
}
|
|
17406
|
-
function
|
|
17407
|
-
return N2.stringToUpperCamel(
|
|
17536
|
+
function s(C2) {
|
|
17537
|
+
return N2.stringToUpperCamel(C2._attributes.name);
|
|
17408
17538
|
}
|
|
17409
|
-
function
|
|
17410
|
-
return N2.stringToLowerCamel(
|
|
17539
|
+
function p(C2) {
|
|
17540
|
+
return N2.stringToLowerCamel(C2._attributes.name);
|
|
17411
17541
|
}
|
|
17412
|
-
function
|
|
17413
|
-
const
|
|
17414
|
-
return /\b(time|timestamp|date|deadline|expire)\b/.test(
|
|
17542
|
+
function _(C2, d) {
|
|
17543
|
+
const i = N2.stringToLowerSnake(d._attributes.name).replace(/_/, " ");
|
|
17544
|
+
return /\b(time|timestamp|date|deadline|expire)\b/.test(i) ? (C2.add("time"), "time.Time") : /\b(enum|gender|sex|count|amount|num|number|flag|times)\b/.test(i) ? "int" : /\b(price)$/.test(i) ? "string" : /^(if|is)\b/.test(i) ? "bool" : Ee(d) && (d._attributes.type === "Id" || d._attributes.type === "Version" || /\b(id|identifier|ver|version)$/.test(i)) ? "int64" : "string";
|
|
17415
17545
|
}
|
|
17416
17546
|
e.commands._setInfoCodeProvider(
|
|
17417
|
-
(
|
|
17418
|
-
const d = /* @__PURE__ */ new Set(),
|
|
17419
|
-
return
|
|
17420
|
-
`func New${
|
|
17547
|
+
(C2) => {
|
|
17548
|
+
const d = /* @__PURE__ */ new Set(), i = [];
|
|
17549
|
+
return i.push(`type ${s(C2)} struct {`), i.push(` value ${_(d, C2)}`), i.push("}"), i.push(""), i.push(
|
|
17550
|
+
`func New${s(C2)}(value ${_(
|
|
17421
17551
|
d,
|
|
17422
|
-
|
|
17423
|
-
)}) ${
|
|
17424
|
-
),
|
|
17425
|
-
`func (${
|
|
17552
|
+
C2
|
|
17553
|
+
)}) ${s(C2)} {`
|
|
17554
|
+
), i.push(" // HACK check value"), i.push(` return ${s(C2)}{value}`), i.push("}"), i.push(
|
|
17555
|
+
`func (${p(C2)} ${s(C2)}) GetValue() ${_(
|
|
17426
17556
|
d,
|
|
17427
|
-
|
|
17557
|
+
C2
|
|
17428
17558
|
)} {`
|
|
17429
|
-
),
|
|
17559
|
+
), i.push(` return ${p(C2)}.value`), i.push("}"), [{ type: "Info", imports: d, content: i.join(`
|
|
17430
17560
|
`) }];
|
|
17431
17561
|
}
|
|
17432
17562
|
), e.commands._setCommandCodeProvider(
|
|
17433
|
-
(
|
|
17434
|
-
const d =
|
|
17563
|
+
(C2) => {
|
|
17564
|
+
const d = s(C2), i = p(C2), a = /* @__PURE__ */ new Set(), l2 = [];
|
|
17435
17565
|
l2.push(`type ${d} struct {`);
|
|
17436
|
-
const
|
|
17437
|
-
for (const
|
|
17438
|
-
l2.push(` ${
|
|
17566
|
+
const f = Object.values(C2.inner);
|
|
17567
|
+
for (const u of f)
|
|
17568
|
+
l2.push(` ${p(u)} ${o(a, u)}`);
|
|
17439
17569
|
l2.push("}");
|
|
17440
|
-
for (const
|
|
17570
|
+
for (const u of f)
|
|
17441
17571
|
l2.push(
|
|
17442
|
-
`func (${
|
|
17443
|
-
|
|
17444
|
-
|
|
17572
|
+
`func (${i} ${d}) Get${s(u)} () ${o(
|
|
17573
|
+
a,
|
|
17574
|
+
u
|
|
17445
17575
|
)} {`
|
|
17446
|
-
), l2.push(` return ${
|
|
17447
|
-
const
|
|
17448
|
-
for (const
|
|
17449
|
-
|
|
17450
|
-
return l2.push(`func New${d}(${
|
|
17451
|
-
`)},`), l2.push(" }"), l2.push("}"), [{ type: "Command", imports:
|
|
17576
|
+
), l2.push(` return ${i}.${p(u)}`), l2.push("}");
|
|
17577
|
+
const b2 = [], g2 = [];
|
|
17578
|
+
for (const u of f)
|
|
17579
|
+
b2.push(`${p(u)} ${o(a, u)}`), g2.push(p(u));
|
|
17580
|
+
return l2.push(`func New${d}(${b2.join(", ")}) ${d} {`), l2.push(" // HACK check value"), l2.push(` return ${d}{`), l2.push(` ${g2.join(`,
|
|
17581
|
+
`)},`), l2.push(" }"), l2.push("}"), [{ type: "Command", imports: a, content: l2.join(`
|
|
17452
17582
|
`) }];
|
|
17453
17583
|
}
|
|
17454
17584
|
), e.commands._setFacadeCommandCodeProvider(
|
|
17455
|
-
(
|
|
17456
|
-
const d =
|
|
17457
|
-
|
|
17458
|
-
for (const
|
|
17459
|
-
|
|
17460
|
-
|
|
17461
|
-
for (const
|
|
17462
|
-
|
|
17463
|
-
`func (${
|
|
17585
|
+
(C2) => {
|
|
17586
|
+
const d = s(C2), i = p(C2), a = Object.values(C2.inner), l2 = /* @__PURE__ */ new Set(), f = [];
|
|
17587
|
+
f.push(`type ${d} struct {`);
|
|
17588
|
+
for (const u of a)
|
|
17589
|
+
f.push(` ${p(u)} ${o(l2, u)}`);
|
|
17590
|
+
f.push("}");
|
|
17591
|
+
for (const u of a)
|
|
17592
|
+
f.push(
|
|
17593
|
+
`func (${i} ${d}) Get${s(u)} () ${o(
|
|
17464
17594
|
l2,
|
|
17465
|
-
|
|
17595
|
+
u
|
|
17466
17596
|
)} {`
|
|
17467
|
-
),
|
|
17468
|
-
const
|
|
17469
|
-
for (const
|
|
17470
|
-
|
|
17471
|
-
return
|
|
17472
|
-
`)},`),
|
|
17597
|
+
), f.push(` return ${i}.${p(u)}`), f.push("}");
|
|
17598
|
+
const b2 = [], g2 = [];
|
|
17599
|
+
for (const u of a)
|
|
17600
|
+
b2.push(`${p(u)} ${o(l2, u)}`), g2.push(p(u));
|
|
17601
|
+
return f.push(`func New${d}(${b2.join(", ")}) ${d} {`), f.push(" // HACK check value"), f.push(` return ${d}{`), f.push(` ${g2.join(`,
|
|
17602
|
+
`)},`), f.push(" }"), f.push("}"), [
|
|
17473
17603
|
{
|
|
17474
17604
|
type: "FacadeCommand",
|
|
17475
17605
|
imports: l2,
|
|
17476
|
-
content:
|
|
17606
|
+
content: f.join(`
|
|
17477
17607
|
`)
|
|
17478
17608
|
}
|
|
17479
17609
|
];
|
|
17480
17610
|
}
|
|
17481
|
-
), e.commands._setAggCodeProvider((
|
|
17482
|
-
const d = e.states.designer.value,
|
|
17483
|
-
|
|
17484
|
-
for (const
|
|
17485
|
-
|
|
17486
|
-
|
|
17487
|
-
for (const
|
|
17488
|
-
|
|
17489
|
-
`func (${
|
|
17490
|
-
|
|
17491
|
-
|
|
17611
|
+
), e.commands._setAggCodeProvider((C2) => {
|
|
17612
|
+
const d = e.states.designer.value, i = s(C2), a = p(C2), l2 = Object.values(C2.inner), f = /* @__PURE__ */ new Set(), b2 = [];
|
|
17613
|
+
b2.push(`type ${i} struct {`);
|
|
17614
|
+
for (const m2 of l2)
|
|
17615
|
+
b2.push(` ${p(m2)} ${o(f, m2)}`);
|
|
17616
|
+
b2.push("}");
|
|
17617
|
+
for (const m2 of l2)
|
|
17618
|
+
b2.push(
|
|
17619
|
+
`func (${a} ${i}) Get${s(m2)} () ${o(
|
|
17620
|
+
f,
|
|
17621
|
+
m2
|
|
17492
17622
|
)} {`
|
|
17493
|
-
),
|
|
17494
|
-
const
|
|
17495
|
-
for (const
|
|
17496
|
-
|
|
17497
|
-
|
|
17498
|
-
`)},`),
|
|
17499
|
-
const
|
|
17500
|
-
for (const
|
|
17501
|
-
const
|
|
17502
|
-
|
|
17623
|
+
), b2.push(` return ${a}.${p(m2)}`), b2.push("}");
|
|
17624
|
+
const g2 = [], u = [];
|
|
17625
|
+
for (const m2 of l2)
|
|
17626
|
+
g2.push(`${p(m2)} ${o(f, m2)}`), u.push(p(m2));
|
|
17627
|
+
b2.push(`func New${i}(${g2.join(", ")}) ${i} {`), b2.push(" // HACK check value"), b2.push(` return ${i}{`), b2.push(` ${u.join(`,
|
|
17628
|
+
`)},`), b2.push(" }"), b2.push("}"), b2.push("");
|
|
17629
|
+
const v = [...d._getContext().getAssociationMap()[C2._attributes.__id]].filter((m2) => m2._attributes.rule === "Command" || m2._attributes.rule === "FacadeCommand");
|
|
17630
|
+
for (const m2 of v) {
|
|
17631
|
+
const $2 = s(m2), w2 = p(m2);
|
|
17632
|
+
b2.push(`func (${a} ${i}) Handle${$2} (${w2} ${$2}) {`), b2.push(" // HACK implement"), b2.push("}");
|
|
17503
17633
|
}
|
|
17504
17634
|
return [
|
|
17505
17635
|
{
|
|
17506
17636
|
type: "Agg",
|
|
17507
|
-
imports:
|
|
17508
|
-
content:
|
|
17637
|
+
imports: f,
|
|
17638
|
+
content: b2.join(`
|
|
17509
17639
|
`)
|
|
17510
17640
|
}
|
|
17511
17641
|
];
|
|
17512
17642
|
}), e.commands._setEventCodeProvider(
|
|
17513
|
-
(
|
|
17514
|
-
const d = [],
|
|
17643
|
+
(C2) => {
|
|
17644
|
+
const d = [], i = /* @__PURE__ */ new Set(), a = Object.values(C2.inner), l2 = s(C2), f = p(C2);
|
|
17515
17645
|
d.push(`type ${l2} struct {`);
|
|
17516
|
-
for (const
|
|
17517
|
-
d.push(` ${
|
|
17646
|
+
for (const u of a)
|
|
17647
|
+
d.push(` ${p(u)} ${o(i, u)}`);
|
|
17518
17648
|
d.push("}");
|
|
17519
|
-
for (const
|
|
17649
|
+
for (const u of a)
|
|
17520
17650
|
d.push(
|
|
17521
|
-
`func (${
|
|
17522
|
-
|
|
17523
|
-
|
|
17651
|
+
`func (${f} ${l2}) Get${s(u)} () ${o(
|
|
17652
|
+
i,
|
|
17653
|
+
u
|
|
17524
17654
|
)} {`
|
|
17525
|
-
), d.push(` return ${
|
|
17526
|
-
const
|
|
17527
|
-
for (const
|
|
17528
|
-
|
|
17529
|
-
return d.push(`func New${l2}(${
|
|
17655
|
+
), d.push(` return ${f}.${p(u)}`), d.push("}");
|
|
17656
|
+
const b2 = [], g2 = [];
|
|
17657
|
+
for (const u of a)
|
|
17658
|
+
b2.push(`${p(u)} ${o(i, u)}`), g2.push(p(u));
|
|
17659
|
+
return d.push(`func New${l2}(${b2.join(", ")}) ${l2} {`), d.push(" // HACK check value"), d.push(` return ${l2}{`), d.push(` ${g2.join(`,
|
|
17530
17660
|
`)},`), d.push(" }"), d.push("}"), [
|
|
17531
17661
|
{
|
|
17532
17662
|
type: "Event",
|
|
17533
|
-
imports:
|
|
17663
|
+
imports: i,
|
|
17534
17664
|
content: d.join(`
|
|
17535
17665
|
`)
|
|
17536
17666
|
}
|
|
17537
17667
|
];
|
|
17538
17668
|
}
|
|
17539
17669
|
), e.commands._setCodeFileProvider(() => {
|
|
17540
|
-
const
|
|
17541
|
-
function
|
|
17542
|
-
for (const
|
|
17543
|
-
if (!
|
|
17670
|
+
const C2 = [], d = {}, i = [...n.value.namespace.split(/\./), n.value.moduleName], a = new S2(i, `${n.value.moduleName}.go`), l2 = [], f = new S2(i, `${n.value.moduleName}_value_object.go`), b2 = [];
|
|
17671
|
+
function g2(w2) {
|
|
17672
|
+
for (const c of Object.values(w2)) {
|
|
17673
|
+
if (!r2(c))
|
|
17544
17674
|
continue;
|
|
17545
|
-
const
|
|
17546
|
-
if (d[`${
|
|
17675
|
+
const h2 = s(c);
|
|
17676
|
+
if (d[`${i.join("/")}/${h2}`] === true)
|
|
17547
17677
|
continue;
|
|
17548
|
-
const y3 = e.commands._genInfoCode(
|
|
17549
|
-
y3.length !== 0 && (
|
|
17550
|
-
}
|
|
17551
|
-
}
|
|
17552
|
-
const
|
|
17553
|
-
for (const
|
|
17554
|
-
|
|
17555
|
-
const
|
|
17556
|
-
for (const
|
|
17557
|
-
d[
|
|
17558
|
-
}
|
|
17559
|
-
const
|
|
17560
|
-
for (const
|
|
17561
|
-
|
|
17562
|
-
const
|
|
17563
|
-
for (const
|
|
17564
|
-
d[
|
|
17565
|
-
}
|
|
17566
|
-
const
|
|
17567
|
-
for (const
|
|
17568
|
-
|
|
17569
|
-
const
|
|
17570
|
-
for (const
|
|
17571
|
-
d[
|
|
17572
|
-
}
|
|
17573
|
-
const
|
|
17574
|
-
for (const
|
|
17575
|
-
|
|
17576
|
-
const
|
|
17577
|
-
for (const
|
|
17578
|
-
d[
|
|
17579
|
-
}
|
|
17580
|
-
return
|
|
17581
|
-
`)}`),
|
|
17582
|
-
`)),
|
|
17583
|
-
`)}`),
|
|
17584
|
-
`)),
|
|
17678
|
+
const y3 = e.commands._genInfoCode(c);
|
|
17679
|
+
y3.length !== 0 && (f.addImports(y3[0].imports), b2.push(y3[0].content), b2.push(""), d[`${i.join("/")}/${h2}`] = true);
|
|
17680
|
+
}
|
|
17681
|
+
}
|
|
17682
|
+
const u = e.states.designer.value._getContext().getCommands();
|
|
17683
|
+
for (const w2 of u) {
|
|
17684
|
+
g2(w2.inner);
|
|
17685
|
+
const c = e.commands._genCommandCode(w2);
|
|
17686
|
+
for (const h2 of c)
|
|
17687
|
+
d[h2.content] !== true && (a.addImports(h2.imports), l2.push(h2.content));
|
|
17688
|
+
}
|
|
17689
|
+
const v = e.states.designer.value._getContext().getFacadeCommands();
|
|
17690
|
+
for (const w2 of v) {
|
|
17691
|
+
g2(w2.inner);
|
|
17692
|
+
const c = e.commands._genFacadeCommandCode(w2);
|
|
17693
|
+
for (const h2 of c)
|
|
17694
|
+
d[h2.content] !== true && (a.addImports(h2.imports), l2.push(h2.content));
|
|
17695
|
+
}
|
|
17696
|
+
const m2 = e.states.designer.value._getContext().getAggs();
|
|
17697
|
+
for (const w2 of m2) {
|
|
17698
|
+
g2(w2.inner);
|
|
17699
|
+
const c = e.commands._genAggCode(w2);
|
|
17700
|
+
for (const h2 of c)
|
|
17701
|
+
d[h2.content] !== true && (a.addImports(h2.imports), l2.push(h2.content));
|
|
17702
|
+
}
|
|
17703
|
+
const $2 = e.states.designer.value._getContext().getEvents();
|
|
17704
|
+
for (const w2 of $2) {
|
|
17705
|
+
g2(w2.inner);
|
|
17706
|
+
const c = e.commands._genEventCode(w2);
|
|
17707
|
+
for (const h2 of c)
|
|
17708
|
+
d[h2.content] !== true && (a.addImports(h2.imports), l2.push(h2.content));
|
|
17709
|
+
}
|
|
17710
|
+
return a.appendContentln(`package ${n.value.moduleName}`), a.appendContentln(""), a.getImports().length > 0 && (a.appendContentln("import ("), a.appendContentln(` ${[...a.getImports()].join(`
|
|
17711
|
+
`)}`), a.appendContentln(")")), a.appendContentln(l2.join(`
|
|
17712
|
+
`)), f.appendContentln(`package ${n.value.moduleName}`), f.appendContentln(""), f.getImports().length > 0 && (f.appendContentln("import ("), f.appendContentln(` ${[...f.getImports()].map((w2) => `"${w2}"`).join(`
|
|
17713
|
+
`)}`), f.appendContentln(")"), f.appendContentln("")), f.appendContentln(b2.join(`
|
|
17714
|
+
`)), C2.push(a), C2.push(f), C2;
|
|
17585
17715
|
});
|
|
17586
17716
|
}
|
|
17587
17717
|
}));
|
|
17588
|
-
var
|
|
17589
|
-
var xo =
|
|
17718
|
+
var M3 = ye.CSharpGeneratorAddition;
|
|
17719
|
+
var xo = le2.createHotSwapPlugin(() => {
|
|
17590
17720
|
const e = " ";
|
|
17591
|
-
function n(t,
|
|
17721
|
+
function n(t, r2 = 1) {
|
|
17592
17722
|
return t.split(`
|
|
17593
|
-
`).map((
|
|
17723
|
+
`).map((o) => e.repeat(r2) + o).join(`
|
|
17594
17724
|
`);
|
|
17595
17725
|
}
|
|
17596
17726
|
return {
|
|
@@ -17598,249 +17728,279 @@ var xo = ue.createHotSwapPlugin(() => {
|
|
|
17598
17728
|
t.commands.clearCaches(), t.commands._setCommandCodeProvider(() => []), t.commands._setFacadeCommandCodeProvider(() => []), t.commands._setAggCodeProvider(() => []), t.commands._setEventCodeProvider(() => []), t.commands._setReadModelCodeProvider(() => []), t.commands._setCodeFileProvider(() => []), t.commands.setContext({});
|
|
17599
17729
|
},
|
|
17600
17730
|
mount({ api: t }) {
|
|
17601
|
-
const
|
|
17602
|
-
function
|
|
17603
|
-
return !
|
|
17731
|
+
const r2 = t.states.context, o = t.states.designer.value._getContext().getDesignerOptions().ignoreValueObjects.map((i) => N2.stringToLowerCamel(i));
|
|
17732
|
+
function s(i) {
|
|
17733
|
+
return !o.includes(N2.stringToLowerCamel(i._attributes.name));
|
|
17604
17734
|
}
|
|
17605
|
-
function
|
|
17606
|
-
return a
|
|
17735
|
+
function p(i, a) {
|
|
17736
|
+
return s(a) ? N2.stringToUpperCamel(a._attributes.name) : d(i, a);
|
|
17607
17737
|
}
|
|
17608
|
-
function
|
|
17609
|
-
return N2.stringToUpperCamel(
|
|
17738
|
+
function _(i) {
|
|
17739
|
+
return N2.stringToUpperCamel(i._attributes.name);
|
|
17610
17740
|
}
|
|
17611
|
-
function
|
|
17612
|
-
return
|
|
17741
|
+
function C2(i) {
|
|
17742
|
+
return i.has(M3.RecordStruct) ? " struct" : "";
|
|
17613
17743
|
}
|
|
17614
|
-
function d(
|
|
17615
|
-
const l2 =
|
|
17616
|
-
return /\b(time|timestamp|date|deadline|expire)\b/.test(
|
|
17744
|
+
function d(i, a) {
|
|
17745
|
+
const l2 = r2.value.additions, f = N2.stringToLowerSnake(a._attributes.name).replace(/_/, " ");
|
|
17746
|
+
return /\b(time|timestamp|date|deadline|expire)\b/.test(f) ? l2.has(M3.Timezone) ? "System.DateTimeOffset" : "System.DateTime" : /\b(enum|gender|sex|count|amount|num|number|flag|times)\b/.test(f) ? "int" : /\b(price)$/.test(f) ? "decimal" : /^(if|is)\b/.test(f) ? "bool" : Ee(a) && (a._attributes.type === "Id" || a._attributes.type === "Version" || /\b(id|identifier|ver|version)$/.test(f)) ? "long" : "string";
|
|
17617
17747
|
}
|
|
17618
17748
|
t.commands._setInfoCodeProvider(
|
|
17619
|
-
(
|
|
17620
|
-
const
|
|
17621
|
-
return
|
|
17622
|
-
`public record${
|
|
17749
|
+
(i) => {
|
|
17750
|
+
const a = r2.value.additions, l2 = /* @__PURE__ */ new Set(), f = [];
|
|
17751
|
+
return f.push(
|
|
17752
|
+
`public record${C2(a)} ${_(i)}(${d(
|
|
17623
17753
|
l2,
|
|
17624
|
-
|
|
17754
|
+
i
|
|
17625
17755
|
)} value);`
|
|
17626
17756
|
), [
|
|
17627
17757
|
{
|
|
17628
17758
|
type: "Info",
|
|
17629
|
-
content:
|
|
17759
|
+
content: f.join(`
|
|
17630
17760
|
`),
|
|
17631
17761
|
imports: l2
|
|
17632
17762
|
}
|
|
17633
17763
|
];
|
|
17634
17764
|
}
|
|
17635
17765
|
), t.commands._setCommandCodeProvider(
|
|
17636
|
-
(
|
|
17637
|
-
const
|
|
17766
|
+
(i) => {
|
|
17767
|
+
const a = [], l2 = r2.value.additions, f = /* @__PURE__ */ new Set(), b2 = _(i);
|
|
17638
17768
|
{
|
|
17639
|
-
const
|
|
17640
|
-
|
|
17641
|
-
const
|
|
17642
|
-
for (const
|
|
17643
|
-
const
|
|
17644
|
-
|
|
17769
|
+
const g2 = [], u = Object.values(i.inner);
|
|
17770
|
+
g2.push(`public record${C2(l2)} ${b2}`), g2.push("(");
|
|
17771
|
+
const v = [];
|
|
17772
|
+
for (const m2 of u) {
|
|
17773
|
+
const $2 = _(m2);
|
|
17774
|
+
v.push(`${p(f, m2)} ${N2.upperFirst($2)}`);
|
|
17645
17775
|
}
|
|
17646
|
-
|
|
17647
|
-
`)}`),
|
|
17776
|
+
g2.push(` ${v.join(`,
|
|
17777
|
+
`)}`), g2.push(")"), g2.push("{"), g2.push("}"), a.push({
|
|
17648
17778
|
type: "Command",
|
|
17649
|
-
content:
|
|
17779
|
+
content: g2.join(`
|
|
17650
17780
|
`),
|
|
17651
|
-
imports:
|
|
17781
|
+
imports: f
|
|
17652
17782
|
});
|
|
17653
17783
|
}
|
|
17654
17784
|
{
|
|
17655
|
-
const
|
|
17656
|
-
|
|
17785
|
+
const g2 = l2.has(M3.CommandHandlerInterface) ? ` : ${r2.value.commandHandlerInterface}` : "", u = [];
|
|
17786
|
+
u.push(`public class ${b2}Handler${g2}`), u.push("{"), u.push(` public void Handle(${b2} command)`), u.push(" {"), u.push(" // HACK implement"), u.push(" }"), u.push("}"), a.push({
|
|
17657
17787
|
type: "CommandHandler",
|
|
17658
|
-
content:
|
|
17788
|
+
content: u.join(`
|
|
17659
17789
|
`),
|
|
17660
|
-
imports:
|
|
17790
|
+
imports: f
|
|
17661
17791
|
});
|
|
17662
17792
|
}
|
|
17663
|
-
return
|
|
17793
|
+
return a;
|
|
17794
|
+
}
|
|
17795
|
+
), t.commands._setFacadeCommandCodeProvider(
|
|
17796
|
+
(i) => {
|
|
17797
|
+
const a = [], l2 = r2.value.additions, f = /* @__PURE__ */ new Set(), b2 = _(i);
|
|
17798
|
+
{
|
|
17799
|
+
const g2 = [], u = Object.values(i.inner);
|
|
17800
|
+
g2.push(`public record${C2(l2)} ${b2}`), g2.push("(");
|
|
17801
|
+
const v = [];
|
|
17802
|
+
for (const m2 of u) {
|
|
17803
|
+
const $2 = _(m2);
|
|
17804
|
+
v.push(`${p(f, m2)} ${N2.upperFirst($2)}`);
|
|
17805
|
+
}
|
|
17806
|
+
g2.push(` ${v.join(`,
|
|
17807
|
+
`)}`), g2.push(")"), g2.push("{"), g2.push("}"), a.push({
|
|
17808
|
+
type: "FacadeCommand",
|
|
17809
|
+
content: g2.join(`
|
|
17810
|
+
`),
|
|
17811
|
+
imports: f
|
|
17812
|
+
});
|
|
17813
|
+
}
|
|
17814
|
+
{
|
|
17815
|
+
const g2 = l2.has(M3.CommandHandlerInterface) ? ` : ${r2.value.commandHandlerInterface}` : "", u = [];
|
|
17816
|
+
u.push(`public class ${b2}Handler${g2}`), u.push("{"), u.push(` public void Handle(${b2} command)`), u.push(" {"), u.push(" // HACK implement"), u.push(" }"), u.push("}"), a.push({
|
|
17817
|
+
type: "FacadeCommandHandler",
|
|
17818
|
+
content: u.join(`
|
|
17819
|
+
`),
|
|
17820
|
+
imports: f
|
|
17821
|
+
});
|
|
17822
|
+
}
|
|
17823
|
+
return a;
|
|
17664
17824
|
}
|
|
17665
17825
|
), t.commands._setAggCodeProvider(
|
|
17666
|
-
(
|
|
17667
|
-
const
|
|
17826
|
+
(i) => {
|
|
17827
|
+
const a = [], l2 = t.states.designer.value, f = r2.value.additions;
|
|
17668
17828
|
{
|
|
17669
|
-
const
|
|
17670
|
-
|
|
17671
|
-
const
|
|
17672
|
-
for (const
|
|
17673
|
-
const
|
|
17674
|
-
|
|
17829
|
+
const b2 = /* @__PURE__ */ new Set(), g2 = [], u = f.has(M3.AggInterface) ? ` : ${r2.value.aggInterface}` : "";
|
|
17830
|
+
g2.push(`public interface I${_(i)}${u}`), g2.push("{");
|
|
17831
|
+
const v = [], m2 = [...l2._getContext().getAssociationMap()[i._attributes.__id]].filter(($2) => $2._attributes.rule === "Command" || $2._attributes.rule === "FacadeCommand");
|
|
17832
|
+
for (const $2 of m2) {
|
|
17833
|
+
const w2 = _($2);
|
|
17834
|
+
v.push(`void Handle${w2}(${w2} command);`);
|
|
17675
17835
|
}
|
|
17676
|
-
|
|
17836
|
+
g2.push(` ${v.join(`
|
|
17677
17837
|
|
|
17678
|
-
`)}`),
|
|
17838
|
+
`)}`), g2.push("}"), g2.push(""), a.push({
|
|
17679
17839
|
type: "Agg",
|
|
17680
|
-
content:
|
|
17840
|
+
content: g2.join(`
|
|
17681
17841
|
`),
|
|
17682
|
-
imports:
|
|
17842
|
+
imports: b2
|
|
17683
17843
|
});
|
|
17684
17844
|
}
|
|
17685
17845
|
{
|
|
17686
|
-
const
|
|
17687
|
-
if (
|
|
17688
|
-
const
|
|
17689
|
-
for (const
|
|
17690
|
-
const y3 =
|
|
17691
|
-
|
|
17846
|
+
const b2 = /* @__PURE__ */ new Set(), g2 = [], u = _(i), v = Object.values(i.inner), m2 = f.has(M3.AggInterface) ? `, ${r2.value.aggInterface}` : "";
|
|
17847
|
+
if (f.has(M3.PrimaryConstructor)) {
|
|
17848
|
+
const $2 = [...l2._getContext().getAssociationMap()[i._attributes.__id]].filter((h2) => h2._attributes.rule === "Command" || h2._attributes.rule === "FacadeCommand"), w2 = [];
|
|
17849
|
+
for (const h2 of v) {
|
|
17850
|
+
const y3 = _(h2);
|
|
17851
|
+
w2.push(`${p(b2, h2)} ${N2.lowerFirst(y3)}`);
|
|
17692
17852
|
}
|
|
17693
|
-
|
|
17694
|
-
`)}`),
|
|
17695
|
-
for (const
|
|
17696
|
-
const y3 =
|
|
17697
|
-
|
|
17698
|
-
` public ${
|
|
17853
|
+
g2.push(`public class ${u}`), g2.push("("), g2.push(` ${w2.join(`,
|
|
17854
|
+
`)}`), g2.push(`): I${u}${m2}`), g2.push("{");
|
|
17855
|
+
for (const h2 of v) {
|
|
17856
|
+
const y3 = _(h2);
|
|
17857
|
+
g2.push(
|
|
17858
|
+
` public ${p(b2, h2)} ${N2.upperFirst(
|
|
17699
17859
|
y3
|
|
17700
17860
|
)} { get; private set; } = ${N2.lowerFirst(y3)};`
|
|
17701
|
-
),
|
|
17861
|
+
), g2.push("");
|
|
17702
17862
|
}
|
|
17703
|
-
const
|
|
17704
|
-
for (const
|
|
17705
|
-
const y3 =
|
|
17706
|
-
|
|
17863
|
+
const c = [];
|
|
17864
|
+
for (const h2 of $2) {
|
|
17865
|
+
const y3 = _(h2);
|
|
17866
|
+
c.push(`public void Handle${y3}(${y3} command)`), c.push("{"), c.push(" // HACK implement"), c.push("}"), c.push("");
|
|
17707
17867
|
}
|
|
17708
|
-
|
|
17709
|
-
`)}`),
|
|
17868
|
+
g2.push(` ${c.join(`
|
|
17869
|
+
`)}`), g2.push("}");
|
|
17710
17870
|
} else {
|
|
17711
|
-
const
|
|
17712
|
-
|
|
17713
|
-
for (const
|
|
17714
|
-
const y3 =
|
|
17715
|
-
|
|
17716
|
-
` public ${
|
|
17871
|
+
const $2 = [...l2._getContext().getAssociationMap()[i._attributes.__id]].filter((h2) => h2._attributes.rule === "Command" || h2._attributes.rule === "FacadeCommand");
|
|
17872
|
+
g2.push(`public class ${u} : I${u}${m2}`), g2.push("{");
|
|
17873
|
+
for (const h2 of v) {
|
|
17874
|
+
const y3 = _(h2);
|
|
17875
|
+
g2.push(
|
|
17876
|
+
` public ${p(b2, h2)} ${N2.lowerFirst(
|
|
17717
17877
|
y3
|
|
17718
17878
|
)} { get; private set; }`
|
|
17719
17879
|
);
|
|
17720
17880
|
}
|
|
17721
|
-
|
|
17722
|
-
const
|
|
17723
|
-
for (const
|
|
17724
|
-
const y3 =
|
|
17725
|
-
|
|
17881
|
+
g2.push("");
|
|
17882
|
+
const w2 = [];
|
|
17883
|
+
for (const h2 of v) {
|
|
17884
|
+
const y3 = _(h2);
|
|
17885
|
+
w2.push(`${p(b2, h2)} ${y3}`);
|
|
17726
17886
|
}
|
|
17727
|
-
|
|
17728
|
-
for (const
|
|
17729
|
-
const y3 =
|
|
17730
|
-
|
|
17887
|
+
g2.push(` public ${u}(${w2.join(", ")})`), g2.push(" {");
|
|
17888
|
+
for (const h2 of v) {
|
|
17889
|
+
const y3 = _(h2);
|
|
17890
|
+
g2.push(` ${y3} = ${N2.lowerFirst(y3)};`);
|
|
17731
17891
|
}
|
|
17732
|
-
|
|
17733
|
-
const
|
|
17734
|
-
for (const
|
|
17735
|
-
const y3 =
|
|
17736
|
-
|
|
17892
|
+
g2.push(" }");
|
|
17893
|
+
const c = [];
|
|
17894
|
+
for (const h2 of $2) {
|
|
17895
|
+
const y3 = _(h2);
|
|
17896
|
+
c.push(`public void Handle${y3}(${y3} command)`), c.push("{"), c.push(" // HACK implement"), c.push("}"), c.push("");
|
|
17737
17897
|
}
|
|
17738
|
-
|
|
17739
|
-
`)}`),
|
|
17898
|
+
g2.push(` ${c.join(`
|
|
17899
|
+
`)}`), g2.push("}");
|
|
17740
17900
|
}
|
|
17741
|
-
|
|
17901
|
+
a.push({
|
|
17742
17902
|
type: "AggImpl",
|
|
17743
|
-
content:
|
|
17903
|
+
content: g2.join(`
|
|
17744
17904
|
`),
|
|
17745
|
-
imports:
|
|
17905
|
+
imports: b2
|
|
17746
17906
|
});
|
|
17747
17907
|
}
|
|
17748
|
-
return
|
|
17908
|
+
return a;
|
|
17749
17909
|
}
|
|
17750
17910
|
), t.commands._setEventCodeProvider(
|
|
17751
|
-
(
|
|
17752
|
-
const
|
|
17753
|
-
|
|
17754
|
-
const
|
|
17755
|
-
for (const
|
|
17756
|
-
const
|
|
17757
|
-
|
|
17911
|
+
(i) => {
|
|
17912
|
+
const a = r2.value.additions, l2 = _(i), f = /* @__PURE__ */ new Set(), b2 = Object.values(i.inner), g2 = [];
|
|
17913
|
+
g2.push(`public record${C2(a)} ${l2}`), g2.push("(");
|
|
17914
|
+
const u = [];
|
|
17915
|
+
for (const v of b2) {
|
|
17916
|
+
const m2 = _(v);
|
|
17917
|
+
u.push(`${p(f, v)} ${N2.upperFirst(m2)}`);
|
|
17758
17918
|
}
|
|
17759
|
-
return
|
|
17760
|
-
`)}`),
|
|
17919
|
+
return g2.push(` ${u.join(`,
|
|
17920
|
+
`)}`), g2.push(")"), g2.push("{"), g2.push("}"), [
|
|
17761
17921
|
{
|
|
17762
17922
|
type: "Event",
|
|
17763
|
-
content:
|
|
17923
|
+
content: g2.join(`
|
|
17764
17924
|
`),
|
|
17765
|
-
imports:
|
|
17925
|
+
imports: f
|
|
17766
17926
|
}
|
|
17767
17927
|
];
|
|
17768
17928
|
}
|
|
17769
17929
|
), t.commands._setReadModelCodeProvider(() => []), t.commands._setCodeFileProvider(() => {
|
|
17770
|
-
const
|
|
17771
|
-
function m2
|
|
17772
|
-
for (const
|
|
17773
|
-
if (!
|
|
17930
|
+
const i = [], a = {}, l2 = [...r2.value.namespace.split(/\./), N2.stringToUpperCamel(r2.value.moduleName)];
|
|
17931
|
+
function f(m2) {
|
|
17932
|
+
for (const $2 of Object.values(m2)) {
|
|
17933
|
+
if (!s($2))
|
|
17774
17934
|
continue;
|
|
17775
|
-
const
|
|
17776
|
-
if (
|
|
17935
|
+
const w2 = _($2) + ".cs";
|
|
17936
|
+
if (a[`${l2.join("/")}/${w2}`] === true)
|
|
17777
17937
|
continue;
|
|
17778
|
-
const
|
|
17779
|
-
if (
|
|
17938
|
+
const c = t.commands._genInfoCode($2);
|
|
17939
|
+
if (c.length === 0)
|
|
17780
17940
|
continue;
|
|
17781
|
-
const
|
|
17782
|
-
for (const y3 of
|
|
17783
|
-
|
|
17784
|
-
|
|
17785
|
-
`namespace ${
|
|
17786
|
-
),
|
|
17941
|
+
const h2 = new S2(l2, w2);
|
|
17942
|
+
for (const y3 of c[0].imports)
|
|
17943
|
+
h2.appendContentln(`using ${y3};`);
|
|
17944
|
+
h2.appendContentln(""), h2.appendContentln(
|
|
17945
|
+
`namespace ${r2.value.namespace}.${N2.stringToUpperCamel(r2.value.moduleName)}`
|
|
17946
|
+
), h2.appendContentln("{"), h2.appendContentln(n(c[0].content)), h2.appendContentln("}"), i.push(h2), a[`${l2.join("/")}/${w2}`] = true;
|
|
17787
17947
|
}
|
|
17788
17948
|
}
|
|
17789
|
-
const
|
|
17790
|
-
for (const
|
|
17791
|
-
m2
|
|
17792
|
-
const
|
|
17793
|
-
for (const
|
|
17794
|
-
if (
|
|
17795
|
-
|
|
17796
|
-
for (const y3 of
|
|
17797
|
-
|
|
17798
|
-
|
|
17799
|
-
`namespace ${
|
|
17800
|
-
),
|
|
17949
|
+
const b2 = t.states.designer.value._getContext().getCommands();
|
|
17950
|
+
for (const m2 of b2) {
|
|
17951
|
+
f(m2.inner);
|
|
17952
|
+
const $2 = _(m2) + ".cs", w2 = t.commands._genCommandCode(m2), c = new S2(l2, $2);
|
|
17953
|
+
for (const h2 of w2)
|
|
17954
|
+
if (h2.type === "Command") {
|
|
17955
|
+
c.addImports(h2.imports);
|
|
17956
|
+
for (const y3 of h2.imports)
|
|
17957
|
+
c.appendContentln(`using ${y3};`);
|
|
17958
|
+
c.appendContentln(""), c.appendContentln(
|
|
17959
|
+
`namespace ${r2.value.namespace}.${N2.stringToUpperCamel(r2.value.moduleName)}`
|
|
17960
|
+
), c.appendContentln("{"), c.appendContentln(n(h2.content)), c.appendContentln("}");
|
|
17801
17961
|
}
|
|
17802
|
-
|
|
17803
|
-
}
|
|
17804
|
-
const
|
|
17805
|
-
for (const
|
|
17806
|
-
m2
|
|
17807
|
-
const
|
|
17808
|
-
|
|
17809
|
-
for (const
|
|
17810
|
-
|
|
17811
|
-
|
|
17812
|
-
`namespace ${
|
|
17813
|
-
),
|
|
17814
|
-
}
|
|
17815
|
-
const
|
|
17816
|
-
for (const
|
|
17817
|
-
m2
|
|
17818
|
-
const
|
|
17819
|
-
for (const
|
|
17820
|
-
|
|
17821
|
-
for (const y3 of
|
|
17822
|
-
|
|
17823
|
-
|
|
17962
|
+
i.push(c);
|
|
17963
|
+
}
|
|
17964
|
+
const g2 = t.states.designer.value._getContext().getFacadeCommands();
|
|
17965
|
+
for (const m2 of g2) {
|
|
17966
|
+
f(m2.inner);
|
|
17967
|
+
const $2 = _(m2) + ".cs", w2 = t.commands._genFacadeCommandCode(m2), c = new S2(l2, $2);
|
|
17968
|
+
c.addImports(w2[0].imports);
|
|
17969
|
+
for (const h2 of w2[0].imports)
|
|
17970
|
+
c.appendContentln(`using ${h2};`);
|
|
17971
|
+
c.appendContentln(""), c.appendContentln(
|
|
17972
|
+
`namespace ${r2.value.namespace}.${N2.stringToUpperCamel(r2.value.moduleName)}`
|
|
17973
|
+
), c.appendContentln("{"), c.appendContentln(n(w2[0].content)), c.appendContentln("}"), i.push(c);
|
|
17974
|
+
}
|
|
17975
|
+
const u = t.states.designer.value._getContext().getAggs();
|
|
17976
|
+
for (const m2 of u) {
|
|
17977
|
+
f(m2.inner);
|
|
17978
|
+
const $2 = t.commands._genAggCode(m2), w2 = _(m2) + ".cs", c = new S2(l2, w2);
|
|
17979
|
+
for (const h2 of $2) {
|
|
17980
|
+
c.addImports(h2.imports);
|
|
17981
|
+
for (const y3 of h2.imports)
|
|
17982
|
+
c.appendContentln(`using ${y3};`);
|
|
17983
|
+
c.appendContentln("");
|
|
17824
17984
|
}
|
|
17825
|
-
|
|
17826
|
-
`namespace ${
|
|
17827
|
-
),
|
|
17828
|
-
for (const
|
|
17829
|
-
|
|
17830
|
-
|
|
17831
|
-
}
|
|
17832
|
-
const
|
|
17833
|
-
for (const
|
|
17834
|
-
m2
|
|
17835
|
-
const
|
|
17836
|
-
|
|
17837
|
-
for (const
|
|
17838
|
-
|
|
17839
|
-
|
|
17840
|
-
`namespace ${
|
|
17841
|
-
),
|
|
17842
|
-
}
|
|
17843
|
-
return
|
|
17985
|
+
c.appendContentln(
|
|
17986
|
+
`namespace ${r2.value.namespace}.${N2.stringToUpperCamel(r2.value.moduleName)}`
|
|
17987
|
+
), c.appendContentln("{");
|
|
17988
|
+
for (const h2 of $2)
|
|
17989
|
+
c.appendContentln(n(h2.content));
|
|
17990
|
+
c.appendContentln("}"), i.push(c);
|
|
17991
|
+
}
|
|
17992
|
+
const v = t.states.designer.value._getContext().getEvents();
|
|
17993
|
+
for (const m2 of v) {
|
|
17994
|
+
f(m2.inner);
|
|
17995
|
+
const $2 = _(m2) + ".cs", w2 = t.commands._genEventCode(m2), c = new S2(l2, $2);
|
|
17996
|
+
c.addImports(w2[0].imports);
|
|
17997
|
+
for (const h2 of w2[0].imports)
|
|
17998
|
+
c.appendContentln(`using ${h2};`);
|
|
17999
|
+
c.appendContentln(""), c.appendContentln(
|
|
18000
|
+
`namespace ${r2.value.namespace}.${N2.stringToUpperCamel(r2.value.moduleName)}`
|
|
18001
|
+
), c.appendContentln("{"), c.appendContentln(n(w2[0].content)), c.appendContentln("}"), i.push(c);
|
|
18002
|
+
}
|
|
18003
|
+
return i;
|
|
17844
18004
|
});
|
|
17845
18005
|
}
|
|
17846
18006
|
};
|
|
@@ -17868,36 +18028,42 @@ async function requireGenJavaContext() {
|
|
|
17868
18028
|
message: $t6("question.subcommand.genCode.java.additions"),
|
|
17869
18029
|
choices: [
|
|
17870
18030
|
{
|
|
17871
|
-
title:
|
|
17872
|
-
value:
|
|
18031
|
+
title: So.java.JavaGeneratorAddition.SpringFramework,
|
|
18032
|
+
value: So.java.JavaGeneratorAddition.SpringFramework,
|
|
17873
18033
|
selected: true,
|
|
17874
18034
|
description: $t6("question.subcommand.genCode.java.additions.springFramework")
|
|
17875
18035
|
},
|
|
17876
18036
|
{
|
|
17877
|
-
title:
|
|
17878
|
-
value:
|
|
18037
|
+
title: So.java.JavaGeneratorAddition.Jpa,
|
|
18038
|
+
value: So.java.JavaGeneratorAddition.Jpa,
|
|
18039
|
+
selected: false,
|
|
18040
|
+
description: $t6("question.subcommand.genCode.java.additions.jpa")
|
|
18041
|
+
},
|
|
18042
|
+
{
|
|
18043
|
+
title: So.java.JavaGeneratorAddition.Lombok,
|
|
18044
|
+
value: So.java.JavaGeneratorAddition.Lombok,
|
|
17879
18045
|
selected: true,
|
|
17880
18046
|
description: $t6("question.subcommand.genCode.java.additions.lombok")
|
|
17881
18047
|
},
|
|
17882
18048
|
{
|
|
17883
|
-
title:
|
|
17884
|
-
value:
|
|
18049
|
+
title: So.java.JavaGeneratorAddition.LombokBuilder,
|
|
18050
|
+
value: So.java.JavaGeneratorAddition.LombokBuilder,
|
|
17885
18051
|
description: $t6("question.subcommand.genCode.java.additions.lombokBuilder")
|
|
17886
18052
|
},
|
|
17887
18053
|
{
|
|
17888
|
-
title:
|
|
17889
|
-
value:
|
|
18054
|
+
title: So.java.JavaGeneratorAddition.CommandHandler,
|
|
18055
|
+
value: So.java.JavaGeneratorAddition.CommandHandler,
|
|
17890
18056
|
selected: true,
|
|
17891
18057
|
description: $t6("question.subcommand.genCode.java.additions.commandHandler")
|
|
17892
18058
|
},
|
|
17893
18059
|
{
|
|
17894
|
-
title:
|
|
17895
|
-
value:
|
|
17896
|
-
description: $t6("question.subcommand.genCode.java.additions.
|
|
18060
|
+
title: So.java.JavaGeneratorAddition.RecordValueObject,
|
|
18061
|
+
value: So.java.JavaGeneratorAddition.RecordValueObject,
|
|
18062
|
+
description: $t6("question.subcommand.genCode.java.additions.recordValueObject")
|
|
17897
18063
|
},
|
|
17898
18064
|
{
|
|
17899
|
-
title:
|
|
17900
|
-
value:
|
|
18065
|
+
title: So.java.JavaGeneratorAddition.Timezone,
|
|
18066
|
+
value: So.java.JavaGeneratorAddition.Timezone,
|
|
17901
18067
|
selected: true,
|
|
17902
18068
|
description: $t6("question.subcommand.genCode.java.additions.timezone")
|
|
17903
18069
|
}
|
|
@@ -17908,7 +18074,7 @@ async function requireGenJavaContext() {
|
|
|
17908
18074
|
{ onCancel }
|
|
17909
18075
|
);
|
|
17910
18076
|
let nonNullAnnotation = additions.includes(
|
|
17911
|
-
|
|
18077
|
+
So.java.JavaGeneratorAddition.SpringFramework
|
|
17912
18078
|
) ? "org.springframework.lang.NonNull" : void 0;
|
|
17913
18079
|
if (nonNullAnnotation === void 0) {
|
|
17914
18080
|
nonNullAnnotation = (await (0, import_prompts.default)(
|
|
@@ -17927,6 +18093,26 @@ async function requireGenJavaContext() {
|
|
|
17927
18093
|
{ onCancel }
|
|
17928
18094
|
)).nonNullAnnotation;
|
|
17929
18095
|
}
|
|
18096
|
+
if (additions.includes(So.java.JavaGeneratorAddition.Jpa)) {
|
|
18097
|
+
const { idGenStrategy } = await (0, import_prompts.default)(
|
|
18098
|
+
[
|
|
18099
|
+
{
|
|
18100
|
+
name: "idGenStrategy",
|
|
18101
|
+
type: "select",
|
|
18102
|
+
message: $t6("question.subcommand.genCode.java.idGenStrategy"),
|
|
18103
|
+
choices: [
|
|
18104
|
+
{ title: "TABLE", value: So.java.IdGenStrategy.TABLE },
|
|
18105
|
+
{ title: "SEQUENCE", value: So.java.IdGenStrategy.SEQUENCE },
|
|
18106
|
+
{ title: "IDENTITY", value: So.java.IdGenStrategy.IDENTITY },
|
|
18107
|
+
{ title: "UUID", value: So.java.IdGenStrategy.UUID },
|
|
18108
|
+
{ title: "AUTO", value: So.java.IdGenStrategy.AUTO }
|
|
18109
|
+
]
|
|
18110
|
+
}
|
|
18111
|
+
],
|
|
18112
|
+
{ onCancel }
|
|
18113
|
+
);
|
|
18114
|
+
context.idGenStrategy = idGenStrategy;
|
|
18115
|
+
}
|
|
17930
18116
|
context.namespace = namespace;
|
|
17931
18117
|
context.additions = new Set(additions);
|
|
17932
18118
|
context.moduleName = "";
|
|
@@ -17953,20 +18139,20 @@ async function requireGenKotlinContext() {
|
|
|
17953
18139
|
message: $t7("question.subcommand.genCode.kotlin.additions"),
|
|
17954
18140
|
choices: [
|
|
17955
18141
|
{
|
|
17956
|
-
title:
|
|
17957
|
-
value:
|
|
18142
|
+
title: So.kotlin.KotlinGeneratorAddition.CommandHandler,
|
|
18143
|
+
value: So.kotlin.KotlinGeneratorAddition.CommandHandler,
|
|
17958
18144
|
selected: true,
|
|
17959
18145
|
description: $t7("question.subcommand.genCode.kotlin.additions.commandHandler")
|
|
17960
18146
|
},
|
|
17961
18147
|
{
|
|
17962
|
-
title:
|
|
17963
|
-
value:
|
|
18148
|
+
title: So.kotlin.KotlinGeneratorAddition.ValueClass,
|
|
18149
|
+
value: So.kotlin.KotlinGeneratorAddition.ValueClass,
|
|
17964
18150
|
selected: true,
|
|
17965
18151
|
description: $t7("question.subcommand.genCode.kotlin.additions.valueClass")
|
|
17966
18152
|
},
|
|
17967
18153
|
{
|
|
17968
|
-
title:
|
|
17969
|
-
value:
|
|
18154
|
+
title: So.kotlin.KotlinGeneratorAddition.Timezone,
|
|
18155
|
+
value: So.kotlin.KotlinGeneratorAddition.Timezone,
|
|
17970
18156
|
description: $t7("question.subcommand.genCode.kotlin.additions.timezone")
|
|
17971
18157
|
}
|
|
17972
18158
|
],
|
|
@@ -17999,32 +18185,32 @@ async function requireGenCsharpContext() {
|
|
|
17999
18185
|
message: $t8("question.subcommand.genCode.csharp.additions"),
|
|
18000
18186
|
choices: [
|
|
18001
18187
|
{
|
|
18002
|
-
title:
|
|
18003
|
-
value:
|
|
18188
|
+
title: So.csharp.CSharpGeneratorAddition.Timezone,
|
|
18189
|
+
value: So.csharp.CSharpGeneratorAddition.Timezone,
|
|
18004
18190
|
selected: true,
|
|
18005
18191
|
description: $t8("question.subcommand.genCode.csharp.additions.timezone")
|
|
18006
18192
|
},
|
|
18007
18193
|
{
|
|
18008
|
-
title:
|
|
18009
|
-
value:
|
|
18194
|
+
title: So.csharp.CSharpGeneratorAddition.RecordStruct,
|
|
18195
|
+
value: So.csharp.CSharpGeneratorAddition.RecordStruct,
|
|
18010
18196
|
selected: true,
|
|
18011
18197
|
description: $t8("question.subcommand.genCode.csharp.additions.recordStruct")
|
|
18012
18198
|
},
|
|
18013
18199
|
{
|
|
18014
|
-
title:
|
|
18015
|
-
value:
|
|
18200
|
+
title: So.csharp.CSharpGeneratorAddition.PrimaryConstructor,
|
|
18201
|
+
value: So.csharp.CSharpGeneratorAddition.PrimaryConstructor,
|
|
18016
18202
|
selected: true,
|
|
18017
18203
|
description: $t8("question.subcommand.genCode.csharp.additions.primaryConstructor")
|
|
18018
18204
|
},
|
|
18019
18205
|
{
|
|
18020
|
-
title:
|
|
18021
|
-
value:
|
|
18206
|
+
title: So.csharp.CSharpGeneratorAddition.CommandHandlerInterface,
|
|
18207
|
+
value: So.csharp.CSharpGeneratorAddition.CommandHandlerInterface,
|
|
18022
18208
|
selected: false,
|
|
18023
18209
|
description: $t8("question.subcommand.genCode.csharp.additions.commandHandlerInterface")
|
|
18024
18210
|
},
|
|
18025
18211
|
{
|
|
18026
|
-
title:
|
|
18027
|
-
value:
|
|
18212
|
+
title: So.csharp.CSharpGeneratorAddition.AggInterface,
|
|
18213
|
+
value: So.csharp.CSharpGeneratorAddition.AggInterface,
|
|
18028
18214
|
selected: false,
|
|
18029
18215
|
description: $t8("question.subcommand.genCode.csharp.additions.aggInterface")
|
|
18030
18216
|
}
|
|
@@ -18036,7 +18222,7 @@ async function requireGenCsharpContext() {
|
|
|
18036
18222
|
);
|
|
18037
18223
|
context.additions = new Set(additions);
|
|
18038
18224
|
context.namespace = namespace;
|
|
18039
|
-
if (context.additions.has(
|
|
18225
|
+
if (context.additions.has(So.csharp.CSharpGeneratorAddition.CommandHandlerInterface)) {
|
|
18040
18226
|
const { commandHandlerInterface } = await (0, import_prompts3.default)(
|
|
18041
18227
|
[
|
|
18042
18228
|
{
|
|
@@ -18049,7 +18235,7 @@ async function requireGenCsharpContext() {
|
|
|
18049
18235
|
);
|
|
18050
18236
|
context.commandHandlerInterface = commandHandlerInterface;
|
|
18051
18237
|
}
|
|
18052
|
-
if (context.additions.has(
|
|
18238
|
+
if (context.additions.has(So.csharp.CSharpGeneratorAddition.AggInterface)) {
|
|
18053
18239
|
const { aggInterface } = await (0, import_prompts3.default)(
|
|
18054
18240
|
[
|
|
18055
18241
|
{
|
|
@@ -18116,20 +18302,20 @@ async function requireGenCodeCommandArgs(params) {
|
|
|
18116
18302
|
message: $t10("question.subcommand.genCode.language"),
|
|
18117
18303
|
choices: [
|
|
18118
18304
|
{
|
|
18119
|
-
title:
|
|
18120
|
-
value:
|
|
18305
|
+
title: So.Language.CSharp,
|
|
18306
|
+
value: So.Language.CSharp
|
|
18121
18307
|
},
|
|
18122
18308
|
{
|
|
18123
|
-
title:
|
|
18124
|
-
value:
|
|
18309
|
+
title: So.Language.Go,
|
|
18310
|
+
value: So.Language.Go
|
|
18125
18311
|
},
|
|
18126
18312
|
{
|
|
18127
|
-
title:
|
|
18128
|
-
value:
|
|
18313
|
+
title: So.Language.Java,
|
|
18314
|
+
value: So.Language.Java
|
|
18129
18315
|
},
|
|
18130
18316
|
{
|
|
18131
|
-
title:
|
|
18132
|
-
value:
|
|
18317
|
+
title: So.Language.Kotlin,
|
|
18318
|
+
value: So.Language.Kotlin
|
|
18133
18319
|
}
|
|
18134
18320
|
]
|
|
18135
18321
|
}
|
|
@@ -18137,13 +18323,13 @@ async function requireGenCodeCommandArgs(params) {
|
|
|
18137
18323
|
{ onCancel }
|
|
18138
18324
|
)).language;
|
|
18139
18325
|
params.args.language = language;
|
|
18140
|
-
if (language ===
|
|
18326
|
+
if (language === So.Language.Java) {
|
|
18141
18327
|
params.args.context = await requireGenJavaContext();
|
|
18142
|
-
} else if (language ===
|
|
18328
|
+
} else if (language === So.Language.Kotlin) {
|
|
18143
18329
|
params.args.context = await requireGenKotlinContext();
|
|
18144
|
-
} else if (language ===
|
|
18330
|
+
} else if (language === So.Language.CSharp) {
|
|
18145
18331
|
params.args.context = await requireGenCsharpContext();
|
|
18146
|
-
} else if (language ===
|
|
18332
|
+
} else if (language === So.Language.Go) {
|
|
18147
18333
|
params.args.context = await requireGenGoContext();
|
|
18148
18334
|
} else {
|
|
18149
18335
|
isNever(language);
|
|
@@ -18195,20 +18381,20 @@ async function execute5(args) {
|
|
|
18195
18381
|
}
|
|
18196
18382
|
const designer = m2.default;
|
|
18197
18383
|
if (!pluginLoaded) {
|
|
18198
|
-
if (args.language ===
|
|
18199
|
-
|
|
18200
|
-
} else if (args.language ===
|
|
18201
|
-
|
|
18202
|
-
} else if (args.language ===
|
|
18203
|
-
|
|
18204
|
-
} else if (args.language ===
|
|
18205
|
-
|
|
18384
|
+
if (args.language === So.Language.Java) {
|
|
18385
|
+
le2.registerPlugin(Io);
|
|
18386
|
+
} else if (args.language === So.Language.Kotlin) {
|
|
18387
|
+
le2.registerPlugin(Oo);
|
|
18388
|
+
} else if (args.language === So.Language.CSharp) {
|
|
18389
|
+
le2.registerPlugin(xo);
|
|
18390
|
+
} else if (args.language === So.Language.Go) {
|
|
18391
|
+
le2.registerPlugin(To);
|
|
18206
18392
|
} else {
|
|
18207
18393
|
isNever(args.language);
|
|
18208
18394
|
}
|
|
18209
18395
|
pluginLoaded = true;
|
|
18210
18396
|
}
|
|
18211
|
-
agg4 =
|
|
18397
|
+
agg4 = Ao(designer);
|
|
18212
18398
|
agg4.commands.setDomainDesigner(designer);
|
|
18213
18399
|
args.context.moduleName = designer._getContext().getDesignerOptions().moduleName || file.split(".")[0];
|
|
18214
18400
|
agg4.commands.setContext(args.context);
|