@elyx-code/project-logic-tree 0.0.6183 → 0.0.6185

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -23576,73 +23576,73 @@ var om = { exports: {} };
23576
23576
  var e = 1e3, t = 6e4, r = 36e5, s = "millisecond", d = "second", o = "minute", l = "hour", u = "day", y = "week", c = "month", m = "quarter", T = "year", D = "date", w = "Invalid Date", V = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, L = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, $ = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(ye) {
23577
23577
  var Q = ["th", "st", "nd", "rd"], W = ye % 100;
23578
23578
  return "[" + ye + (Q[(W - 20) % 10] || Q[W] || Q[0]) + "]";
23579
- } }, B = function(ye, Q, W) {
23579
+ } }, C = function(ye, Q, W) {
23580
23580
  var ae = String(ye);
23581
23581
  return !ae || ae.length >= Q ? ye : "" + Array(Q + 1 - ae.length).join(W) + ye;
23582
- }, U = { s: B, z: function(ye) {
23583
- var Q = -ye.utcOffset(), W = Math.abs(Q), ae = Math.floor(W / 60), K = W % 60;
23584
- return (Q <= 0 ? "+" : "-") + B(ae, 2, "0") + ":" + B(K, 2, "0");
23582
+ }, U = { s: C, z: function(ye) {
23583
+ var Q = -ye.utcOffset(), W = Math.abs(Q), ae = Math.floor(W / 60), H = W % 60;
23584
+ return (Q <= 0 ? "+" : "-") + C(ae, 2, "0") + ":" + C(H, 2, "0");
23585
23585
  }, m: function ye(Q, W) {
23586
23586
  if (Q.date() < W.date())
23587
23587
  return -ye(W, Q);
23588
- var ae = 12 * (W.year() - Q.year()) + (W.month() - Q.month()), K = Q.clone().add(ae, c), Te = W - K < 0, Ie = Q.clone().add(ae + (Te ? -1 : 1), c);
23589
- return +(-(ae + (W - K) / (Te ? K - Ie : Ie - K)) || 0);
23588
+ var ae = 12 * (W.year() - Q.year()) + (W.month() - Q.month()), H = Q.clone().add(ae, c), Te = W - H < 0, Ie = Q.clone().add(ae + (Te ? -1 : 1), c);
23589
+ return +(-(ae + (W - H) / (Te ? H - Ie : Ie - H)) || 0);
23590
23590
  }, a: function(ye) {
23591
23591
  return ye < 0 ? Math.ceil(ye) || 0 : Math.floor(ye);
23592
23592
  }, p: function(ye) {
23593
23593
  return { M: c, y: T, w: y, d: u, D, h: l, m: o, s: d, ms: s, Q: m }[ye] || String(ye || "").toLowerCase().replace(/s$/, "");
23594
23594
  }, u: function(ye) {
23595
23595
  return ye === void 0;
23596
- } }, k = "en", J = {};
23597
- J[k] = $;
23598
- var Y = "$isDayjsObject", de = function(ye) {
23599
- return ye instanceof $t || !(!ye || !ye[Y]);
23596
+ } }, k = "en", Z = {};
23597
+ Z[k] = $;
23598
+ var K = "$isDayjsObject", de = function(ye) {
23599
+ return ye instanceof $t || !(!ye || !ye[K]);
23600
23600
  }, he = function ye(Q, W, ae) {
23601
- var K;
23601
+ var H;
23602
23602
  if (!Q)
23603
23603
  return k;
23604
23604
  if (typeof Q == "string") {
23605
23605
  var Te = Q.toLowerCase();
23606
- J[Te] && (K = Te), W && (J[Te] = W, K = Te);
23606
+ Z[Te] && (H = Te), W && (Z[Te] = W, H = Te);
23607
23607
  var Ie = Q.split("-");
23608
- if (!K && Ie.length > 1)
23608
+ if (!H && Ie.length > 1)
23609
23609
  return ye(Ie[0]);
23610
23610
  } else {
23611
23611
  var rt = Q.name;
23612
- J[rt] = Q, K = rt;
23612
+ Z[rt] = Q, H = rt;
23613
23613
  }
23614
- return !ae && K && (k = K), K || !ae && k;
23615
- }, H = function(ye, Q) {
23614
+ return !ae && H && (k = H), H || !ae && k;
23615
+ }, Y = function(ye, Q) {
23616
23616
  if (de(ye))
23617
23617
  return ye.clone();
23618
23618
  var W = typeof Q == "object" ? Q : {};
23619
23619
  return W.date = ye, W.args = arguments, new $t(W);
23620
23620
  }, ne = U;
23621
23621
  ne.l = he, ne.i = de, ne.w = function(ye, Q) {
23622
- return H(ye, { locale: Q.$L, utc: Q.$u, x: Q.$x, $offset: Q.$offset });
23622
+ return Y(ye, { locale: Q.$L, utc: Q.$u, x: Q.$x, $offset: Q.$offset });
23623
23623
  };
23624
23624
  var $t = function() {
23625
23625
  function ye(W) {
23626
- this.$L = he(W.locale, null, !0), this.parse(W), this.$x = this.$x || W.x || {}, this[Y] = !0;
23626
+ this.$L = he(W.locale, null, !0), this.parse(W), this.$x = this.$x || W.x || {}, this[K] = !0;
23627
23627
  }
23628
23628
  var Q = ye.prototype;
23629
23629
  return Q.parse = function(W) {
23630
23630
  this.$d = function(ae) {
23631
- var K = ae.date, Te = ae.utc;
23632
- if (K === null)
23631
+ var H = ae.date, Te = ae.utc;
23632
+ if (H === null)
23633
23633
  return /* @__PURE__ */ new Date(NaN);
23634
- if (ne.u(K))
23634
+ if (ne.u(H))
23635
23635
  return /* @__PURE__ */ new Date();
23636
- if (K instanceof Date)
23637
- return new Date(K);
23638
- if (typeof K == "string" && !/Z$/i.test(K)) {
23639
- var Ie = K.match(V);
23636
+ if (H instanceof Date)
23637
+ return new Date(H);
23638
+ if (typeof H == "string" && !/Z$/i.test(H)) {
23639
+ var Ie = H.match(V);
23640
23640
  if (Ie) {
23641
23641
  var rt = Ie[2] - 1 || 0, Tt = (Ie[7] || "0").substring(0, 3);
23642
23642
  return Te ? new Date(Date.UTC(Ie[1], rt, Ie[3] || 1, Ie[4] || 0, Ie[5] || 0, Ie[6] || 0, Tt)) : new Date(Ie[1], rt, Ie[3] || 1, Ie[4] || 0, Ie[5] || 0, Ie[6] || 0, Tt);
23643
23643
  }
23644
23644
  }
23645
- return new Date(K);
23645
+ return new Date(H);
23646
23646
  }(W), this.init();
23647
23647
  }, Q.init = function() {
23648
23648
  var W = this.$d;
@@ -23652,24 +23652,24 @@ var om = { exports: {} };
23652
23652
  }, Q.isValid = function() {
23653
23653
  return this.$d.toString() !== w;
23654
23654
  }, Q.isSame = function(W, ae) {
23655
- var K = H(W);
23656
- return this.startOf(ae) <= K && K <= this.endOf(ae);
23655
+ var H = Y(W);
23656
+ return this.startOf(ae) <= H && H <= this.endOf(ae);
23657
23657
  }, Q.isAfter = function(W, ae) {
23658
- return H(W) < this.startOf(ae);
23658
+ return Y(W) < this.startOf(ae);
23659
23659
  }, Q.isBefore = function(W, ae) {
23660
- return this.endOf(ae) < H(W);
23661
- }, Q.$g = function(W, ae, K) {
23662
- return ne.u(W) ? this[ae] : this.set(K, W);
23660
+ return this.endOf(ae) < Y(W);
23661
+ }, Q.$g = function(W, ae, H) {
23662
+ return ne.u(W) ? this[ae] : this.set(H, W);
23663
23663
  }, Q.unix = function() {
23664
23664
  return Math.floor(this.valueOf() / 1e3);
23665
23665
  }, Q.valueOf = function() {
23666
23666
  return this.$d.getTime();
23667
23667
  }, Q.startOf = function(W, ae) {
23668
- var K = this, Te = !!ne.u(ae) || ae, Ie = ne.p(W), rt = function(Oi, qt) {
23669
- var si = ne.w(K.$u ? Date.UTC(K.$y, qt, Oi) : new Date(K.$y, qt, Oi), K);
23668
+ var H = this, Te = !!ne.u(ae) || ae, Ie = ne.p(W), rt = function(Oi, qt) {
23669
+ var si = ne.w(H.$u ? Date.UTC(H.$y, qt, Oi) : new Date(H.$y, qt, Oi), H);
23670
23670
  return Te ? si : si.endOf(u);
23671
23671
  }, Tt = function(Oi, qt) {
23672
- return ne.w(K.toDate()[Oi].apply(K.toDate("s"), (Te ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(qt)), K);
23672
+ return ne.w(H.toDate()[Oi].apply(H.toDate("s"), (Te ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(qt)), H);
23673
23673
  }, bt = this.$W, Bt = this.$M, pr = this.$D, bn = "set" + (this.$u ? "UTC" : "");
23674
23674
  switch (Ie) {
23675
23675
  case T:
@@ -23694,7 +23694,7 @@ var om = { exports: {} };
23694
23694
  }, Q.endOf = function(W) {
23695
23695
  return this.startOf(W, !1);
23696
23696
  }, Q.$set = function(W, ae) {
23697
- var K, Te = ne.p(W), Ie = "set" + (this.$u ? "UTC" : ""), rt = (K = {}, K[u] = Ie + "Date", K[D] = Ie + "Date", K[c] = Ie + "Month", K[T] = Ie + "FullYear", K[l] = Ie + "Hours", K[o] = Ie + "Minutes", K[d] = Ie + "Seconds", K[s] = Ie + "Milliseconds", K)[Te], Tt = Te === u ? this.$D + (ae - this.$W) : ae;
23697
+ var H, Te = ne.p(W), Ie = "set" + (this.$u ? "UTC" : ""), rt = (H = {}, H[u] = Ie + "Date", H[D] = Ie + "Date", H[c] = Ie + "Month", H[T] = Ie + "FullYear", H[l] = Ie + "Hours", H[o] = Ie + "Minutes", H[d] = Ie + "Seconds", H[s] = Ie + "Milliseconds", H)[Te], Tt = Te === u ? this.$D + (ae - this.$W) : ae;
23698
23698
  if (Te === c || Te === T) {
23699
23699
  var bt = this.clone().set(D, 1);
23700
23700
  bt.$d[rt](Tt), bt.init(), this.$d = bt.set(D, Math.min(this.$D, bt.daysInMonth())).$d;
@@ -23706,10 +23706,10 @@ var om = { exports: {} };
23706
23706
  }, Q.get = function(W) {
23707
23707
  return this[ne.p(W)]();
23708
23708
  }, Q.add = function(W, ae) {
23709
- var K, Te = this;
23709
+ var H, Te = this;
23710
23710
  W = Number(W);
23711
23711
  var Ie = ne.p(ae), rt = function(Bt) {
23712
- var pr = H(Te);
23712
+ var pr = Y(Te);
23713
23713
  return ne.w(pr.date(pr.date() + Math.round(Bt * W)), Te);
23714
23714
  };
23715
23715
  if (Ie === c)
@@ -23720,15 +23720,15 @@ var om = { exports: {} };
23720
23720
  return rt(1);
23721
23721
  if (Ie === y)
23722
23722
  return rt(7);
23723
- var Tt = (K = {}, K[o] = t, K[l] = r, K[d] = e, K)[Ie] || 1, bt = this.$d.getTime() + W * Tt;
23723
+ var Tt = (H = {}, H[o] = t, H[l] = r, H[d] = e, H)[Ie] || 1, bt = this.$d.getTime() + W * Tt;
23724
23724
  return ne.w(bt, this);
23725
23725
  }, Q.subtract = function(W, ae) {
23726
23726
  return this.add(-1 * W, ae);
23727
23727
  }, Q.format = function(W) {
23728
- var ae = this, K = this.$locale();
23728
+ var ae = this, H = this.$locale();
23729
23729
  if (!this.isValid())
23730
- return K.invalidDate || w;
23731
- var Te = W || "YYYY-MM-DDTHH:mm:ssZ", Ie = ne.z(this), rt = this.$H, Tt = this.$m, bt = this.$M, Bt = K.weekdays, pr = K.months, bn = K.meridiem, wi = function(qt, si, ys, Ta) {
23730
+ return H.invalidDate || w;
23731
+ var Te = W || "YYYY-MM-DDTHH:mm:ssZ", Ie = ne.z(this), rt = this.$H, Tt = this.$m, bt = this.$M, Bt = H.weekdays, pr = H.months, bn = H.meridiem, wi = function(qt, si, ys, Ta) {
23732
23732
  return qt && (qt[si] || qt(ae, Te)) || ys[si].slice(0, Ta);
23733
23733
  }, fs = function(qt) {
23734
23734
  return ne.s(rt % 12 || 12, qt, "0");
@@ -23748,7 +23748,7 @@ var om = { exports: {} };
23748
23748
  case "MM":
23749
23749
  return ne.s(bt + 1, 2, "0");
23750
23750
  case "MMM":
23751
- return wi(K.monthsShort, bt, pr, 3);
23751
+ return wi(H.monthsShort, bt, pr, 3);
23752
23752
  case "MMMM":
23753
23753
  return wi(pr, bt);
23754
23754
  case "D":
@@ -23758,9 +23758,9 @@ var om = { exports: {} };
23758
23758
  case "d":
23759
23759
  return String(ae.$W);
23760
23760
  case "dd":
23761
- return wi(K.weekdaysMin, ae.$W, Bt, 2);
23761
+ return wi(H.weekdaysMin, ae.$W, Bt, 2);
23762
23762
  case "ddd":
23763
- return wi(K.weekdaysShort, ae.$W, Bt, 3);
23763
+ return wi(H.weekdaysShort, ae.$W, Bt, 3);
23764
23764
  case "dddd":
23765
23765
  return Bt[ae.$W];
23766
23766
  case "H":
@@ -23793,8 +23793,8 @@ var om = { exports: {} };
23793
23793
  });
23794
23794
  }, Q.utcOffset = function() {
23795
23795
  return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
23796
- }, Q.diff = function(W, ae, K) {
23797
- var Te, Ie = this, rt = ne.p(ae), Tt = H(W), bt = (Tt.utcOffset() - this.utcOffset()) * t, Bt = this - Tt, pr = function() {
23796
+ }, Q.diff = function(W, ae, H) {
23797
+ var Te, Ie = this, rt = ne.p(ae), Tt = Y(W), bt = (Tt.utcOffset() - this.utcOffset()) * t, Bt = this - Tt, pr = function() {
23798
23798
  return ne.m(Ie, Tt);
23799
23799
  };
23800
23800
  switch (rt) {
@@ -23825,16 +23825,16 @@ var om = { exports: {} };
23825
23825
  default:
23826
23826
  Te = Bt;
23827
23827
  }
23828
- return K ? Te : ne.a(Te);
23828
+ return H ? Te : ne.a(Te);
23829
23829
  }, Q.daysInMonth = function() {
23830
23830
  return this.endOf(c).$D;
23831
23831
  }, Q.$locale = function() {
23832
- return J[this.$L];
23832
+ return Z[this.$L];
23833
23833
  }, Q.locale = function(W, ae) {
23834
23834
  if (!W)
23835
23835
  return this.$L;
23836
- var K = this.clone(), Te = he(W, ae, !0);
23837
- return Te && (K.$L = Te), K;
23836
+ var H = this.clone(), Te = he(W, ae, !0);
23837
+ return Te && (H.$L = Te), H;
23838
23838
  }, Q.clone = function() {
23839
23839
  return ne.w(this.$d, this);
23840
23840
  }, Q.toDate = function() {
@@ -23847,20 +23847,20 @@ var om = { exports: {} };
23847
23847
  return this.$d.toUTCString();
23848
23848
  }, ye;
23849
23849
  }(), wr = $t.prototype;
23850
- return H.prototype = wr, [["$ms", s], ["$s", d], ["$m", o], ["$H", l], ["$W", u], ["$M", c], ["$y", T], ["$D", D]].forEach(function(ye) {
23850
+ return Y.prototype = wr, [["$ms", s], ["$s", d], ["$m", o], ["$H", l], ["$W", u], ["$M", c], ["$y", T], ["$D", D]].forEach(function(ye) {
23851
23851
  wr[ye[1]] = function(Q) {
23852
23852
  return this.$g(Q, ye[0], ye[1]);
23853
23853
  };
23854
- }), H.extend = function(ye, Q) {
23855
- return ye.$i || (ye(Q, $t, H), ye.$i = !0), H;
23856
- }, H.locale = he, H.isDayjs = de, H.unix = function(ye) {
23857
- return H(1e3 * ye);
23858
- }, H.en = J[k], H.Ls = J, H.p = {}, H;
23854
+ }), Y.extend = function(ye, Q) {
23855
+ return ye.$i || (ye(Q, $t, Y), ye.$i = !0), Y;
23856
+ }, Y.locale = he, Y.isDayjs = de, Y.unix = function(ye) {
23857
+ return Y(1e3 * ye);
23858
+ }, Y.en = Z[k], Y.Ls = Z, Y.p = {}, Y;
23859
23859
  });
23860
23860
  })(om);
23861
23861
  var w8 = om.exports;
23862
23862
  const v = /* @__PURE__ */ zc(w8);
23863
- var R = /* @__PURE__ */ ((i) => (i.Error = "error", i.Warning = "warning", i))(R || {}), x = /* @__PURE__ */ ((i) => (i.InvalidObjectStructure = "invalid-object-structure", i.NameNotUniqueInScope = "name-not-unique-in-scope", i.EmptyName = "empty-name", i.MissingCaller = "missing-caller", i.PropertyOverwrite = "property-overwrite", i.MethodOverwrite = "method-overwrite", i.NoOverlapWithImplementedSignature = "no-overlap-with-implemented-signature", i.ReaderWriterIncompatibleDataType = "reader-writer-incompatible-data-type", i.UnreachableEntity = "unreachable-entity", i.InternalCallParentMissingDataType = "internal-call-parent-missing-data-type", i.InternalCallParentDeclarationEntityInvalidType = "internal-call-parent-declaration-entity-invalid-type", i.InternalCallDeclarationNotFoundInParentDatatypeEntity = "internal-call-declaration-not-found-in-parent-datatype-entity", i.InternalCallDeclarationIsNotFunctionDeclaration = "internal-call-declaration-is-not-function-declaration", i.InternalCallDeclarationNotInParentDatatypeEntity = "internal-call-declaration-not-in-parent-datatype-entity", i))(x || {}), E = /* @__PURE__ */ ((i) => (i.RootReference = "root-reference", i.ReferencedEntityNotFound = "referenced-entity-not-found", i.EntityIdNotUnique = "entity-id-not-unique", i.BuiltInEntityGenerated = "built-in-entity-generated", i.BuiltInEntityUpdated = "built-in-entity-updated", i.BuiltInEntityDeleted = "built-in-entity-deleted", i.UnknownEntityType = "unknown-entity-type", i.MissingTypeProperty = "missing-type-property", i.MissingIdProperty = "missing-id-property", i.BuiltInEntityParent = "built-in-entity-parent", i.InvalidBuiltInEntityReference = "invalid-built-in-entity-reference", i.RecommendedImplementAbstractEntityAction = "recommended-implement-abstract-entity-action", i.RecommendedImplementOperationAction = "recommended-implement-operation-action", i.RecommendedImplementFunctionCallAction = "recommended-implement-function-call-action", i.RecommendedImplementVariableDeclarationAction = "recommended-implement-variable-declaration-action", i.RecommendedImplementVariableInstanceAction = "recommended-implement-variable-instance-action", i.RecommendedImplementConditionAction = "recommended-implement-condition-action", i.InvalidReferenceObjectStructure = "invalid-reference-object-structure", i.ContainsSingleButShouldBeReferenceList = "contains-single-but-should-be-reference-list", i.ContainsListButShouldReferenceSingle = "contains-list-but-should-reference-single", i.InvalidParentReference = "invalid-parent-reference", i.InvalidImplementsReference = "invalid-implements-reference", i.InvalidExtendsReference = "invalid-extends-reference", i.InvalidGenerationActionPayload = "invalid-generation-action-payload", i.InvalidReference = "invalid-reference", i.InvalidInternalCallParentRelation = "invalid-internal-call-parent-relation", i.InvalidUpdateEntityOperation = "invalid-update-entity-operation", i.NewEntityWouldOverriteExisting = "new-entity-would-overrite-existing", i.InvalidDownstreamPropertyOverride = "invalid-downstream-property-override", i.UnrecognizedProperty = "unrecognized-property", i.SelfReference = "self-reference", i.DuplicateReference = "duplicate-reference", i.CallerWithIncompatibleScope = "caller-with-incompatible-scope", i.InvalidFunctionDeclarationForFunctionCall = "invalid-function-declaration-for-function-call", i.InvalidInputMapDeclaration = "invalid-input-map-declaration", i.InvalidActionDescriptorForOperation = "invalid-action-descriptor-for-operation", i.InvalidActionDescriptorForCondition = "invalid-action-descriptor-for-condition", i.InvalidActionDescriptorForLoop = "invalid-action-descriptor-for-loop", i.InvalidInmutablePropertyOverride = "invalid-inmutable-property-override", i.OutputOverwrite = "output-overwrite", i.InputOverwrite = "input-overwrite", i.IncompatibleScope = "incompatible-scope", i.InvalidParentUpdate = "invalid-parent-update", i.NonInteractiveEntityReferenced = "non-interactive-entity-referenced", i.InvalidParentRelationType = "invalid-parent-relation-type", i))(E || {}), Z = /* @__PURE__ */ ((i) => (i.NoPrimaryKeyProperty = "no-primary-key-property", i.ScopeWithoutLogic = "scope-without-logic", i.ExtendingAbstractEntity = "extending-abstract-entity", i.ImplementingNonAbstractEntity = "implementing-non-abstract-entity", i.AbstractEntityWithNonAbstractMethods = "abstract-entity-with-non-abstract-methods", i.AbstractEntityWithNonAbstractProperties = "abstract-entity-with-non-abstract-properties", i.StaticEntityWithNonStaticProperties = "static-entity-with-non-static-properties", i.NonStaticPropertyInStaticEntity = "non-static-property-in-static-entity", i.AbstractPropertyInNonAbstractEntity = "abstract-property-in-non-abstract-entity", i.AbstractMethodInNonAbstractEntity = "abstract-method-in-non-abstract-entity", i.IncorrectEntityImplementation = "incorrect-entity-implementation", i.IncorrectMethodImplementation = "incorrect-method-implementation", i.IncorrectPropertyImplementation = "incorrect-property-implementation", i.PropertyImplementsNonAbstact = "property-implements-non-abstract", i.NonStaticPropertyImplementsStatic = "non-static-property-implements-static", i.StaticPropertyImplementsNonStatic = "static-property-implements-non-static", i.PropertyImplementsIncompatibleType = "property-implements-incompatible-type", i.MissingPropertyImplementation = "missing-property-implementation", i.MissingMethodImplementation = "missing-method-implementation", i.NoProperties = "no-properties", i.ReadingFromIncompatibleType = "reading-from-incompatible-type", i.WritingToIncompatibleType = "writing-to-incompatible-type", i.InvalidPropertiesCombination = "invalid-properties-combination", i.DisconnectedCallableEntity = "disconnected-callable-entity", i.VariableReadsValueAndInternalCall = "variable-reads-value-and-internal-call", i.VariableWritesValuesAndInternalCall = "variable-writes-values-and-internal-call", i.VariableHasInputsAndInternalCall = "variable-has-inputs-and-internal-calls", i.VariableHasOutputsAndInternalCall = "variable-has-outputs-and-internal-call", i.VariableIsCalledAndHasInternalCall = "variable-is-called-and-has-internal-call", i.VariableCallsOthersAndHasInternalCall = "variable-calls-others-and-has-internal-call", i))(Z || {});
23863
+ var R = /* @__PURE__ */ ((i) => (i.Error = "error", i.Warning = "warning", i))(R || {}), x = /* @__PURE__ */ ((i) => (i.InvalidObjectStructure = "invalid-object-structure", i.NameNotUniqueInScope = "name-not-unique-in-scope", i.EmptyName = "empty-name", i.MissingCaller = "missing-caller", i.PropertyOverwrite = "property-overwrite", i.MethodOverwrite = "method-overwrite", i.NoOverlapWithImplementedSignature = "no-overlap-with-implemented-signature", i.ReaderWriterIncompatibleDataType = "reader-writer-incompatible-data-type", i.UnreachableEntity = "unreachable-entity", i.InternalCallParentMissingDataType = "internal-call-parent-missing-data-type", i.InternalCallParentDeclarationEntityInvalidType = "internal-call-parent-declaration-entity-invalid-type", i.InternalCallDeclarationNotFoundInParentDatatypeEntity = "internal-call-declaration-not-found-in-parent-datatype-entity", i.InternalCallDeclarationIsNotFunctionDeclaration = "internal-call-declaration-is-not-function-declaration", i.InternalCallDeclarationNotInParentDatatypeEntity = "internal-call-declaration-not-in-parent-datatype-entity", i))(x || {}), E = /* @__PURE__ */ ((i) => (i.RootReference = "root-reference", i.ReferencedEntityNotFound = "referenced-entity-not-found", i.EntityIdNotUnique = "entity-id-not-unique", i.BuiltInEntityGenerated = "built-in-entity-generated", i.BuiltInEntityUpdated = "built-in-entity-updated", i.BuiltInEntityDeleted = "built-in-entity-deleted", i.UnknownEntityType = "unknown-entity-type", i.MissingTypeProperty = "missing-type-property", i.MissingIdProperty = "missing-id-property", i.BuiltInEntityParent = "built-in-entity-parent", i.InvalidBuiltInEntityReference = "invalid-built-in-entity-reference", i.RecommendedImplementAbstractEntityAction = "recommended-implement-abstract-entity-action", i.RecommendedImplementOperationAction = "recommended-implement-operation-action", i.RecommendedImplementFunctionCallAction = "recommended-implement-function-call-action", i.RecommendedImplementVariableDeclarationAction = "recommended-implement-variable-declaration-action", i.RecommendedImplementVariableInstanceAction = "recommended-implement-variable-instance-action", i.RecommendedImplementConditionAction = "recommended-implement-condition-action", i.InvalidReferenceObjectStructure = "invalid-reference-object-structure", i.ContainsSingleButShouldBeReferenceList = "contains-single-but-should-be-reference-list", i.ContainsListButShouldReferenceSingle = "contains-list-but-should-reference-single", i.InvalidParentReference = "invalid-parent-reference", i.InvalidImplementsReference = "invalid-implements-reference", i.InvalidExtendsReference = "invalid-extends-reference", i.InvalidGenerationActionPayload = "invalid-generation-action-payload", i.InvalidReference = "invalid-reference", i.InvalidInternalCallParentRelation = "invalid-internal-call-parent-relation", i.InvalidUpdateEntityOperation = "invalid-update-entity-operation", i.NewEntityWouldOverriteExisting = "new-entity-would-overrite-existing", i.InvalidDownstreamPropertyOverride = "invalid-downstream-property-override", i.UnrecognizedProperty = "unrecognized-property", i.SelfReference = "self-reference", i.DuplicateReference = "duplicate-reference", i.CallerWithIncompatibleScope = "caller-with-incompatible-scope", i.InvalidFunctionDeclarationForFunctionCall = "invalid-function-declaration-for-function-call", i.InvalidInputMapDeclaration = "invalid-input-map-declaration", i.InvalidActionDescriptorForOperation = "invalid-action-descriptor-for-operation", i.InvalidActionDescriptorForCondition = "invalid-action-descriptor-for-condition", i.InvalidActionDescriptorForLoop = "invalid-action-descriptor-for-loop", i.InvalidInmutablePropertyOverride = "invalid-inmutable-property-override", i.OutputOverwrite = "output-overwrite", i.InputOverwrite = "input-overwrite", i.IncompatibleScope = "incompatible-scope", i.InvalidParentUpdate = "invalid-parent-update", i.NonInteractiveEntityReferenced = "non-interactive-entity-referenced", i.InvalidParentRelationType = "invalid-parent-relation-type", i))(E || {}), J = /* @__PURE__ */ ((i) => (i.NoPrimaryKeyProperty = "no-primary-key-property", i.ScopeWithoutLogic = "scope-without-logic", i.ExtendingAbstractEntity = "extending-abstract-entity", i.ImplementingNonAbstractEntity = "implementing-non-abstract-entity", i.AbstractEntityWithNonAbstractMethods = "abstract-entity-with-non-abstract-methods", i.AbstractEntityWithNonAbstractProperties = "abstract-entity-with-non-abstract-properties", i.StaticEntityWithNonStaticProperties = "static-entity-with-non-static-properties", i.NonStaticPropertyInStaticEntity = "non-static-property-in-static-entity", i.AbstractPropertyInNonAbstractEntity = "abstract-property-in-non-abstract-entity", i.AbstractMethodInNonAbstractEntity = "abstract-method-in-non-abstract-entity", i.IncorrectEntityImplementation = "incorrect-entity-implementation", i.IncorrectMethodImplementation = "incorrect-method-implementation", i.IncorrectPropertyImplementation = "incorrect-property-implementation", i.PropertyImplementsNonAbstact = "property-implements-non-abstract", i.NonStaticPropertyImplementsStatic = "non-static-property-implements-static", i.StaticPropertyImplementsNonStatic = "static-property-implements-non-static", i.PropertyImplementsIncompatibleType = "property-implements-incompatible-type", i.MissingPropertyImplementation = "missing-property-implementation", i.MissingMethodImplementation = "missing-method-implementation", i.NoProperties = "no-properties", i.ReadingFromIncompatibleType = "reading-from-incompatible-type", i.WritingToIncompatibleType = "writing-to-incompatible-type", i.InvalidPropertiesCombination = "invalid-properties-combination", i.DisconnectedCallableEntity = "disconnected-callable-entity", i.VariableReadsValueAndInternalCall = "variable-reads-value-and-internal-call", i.VariableWritesValuesAndInternalCall = "variable-writes-values-and-internal-call", i.VariableHasInputsAndInternalCall = "variable-has-inputs-and-internal-calls", i.VariableHasOutputsAndInternalCall = "variable-has-outputs-and-internal-call", i.VariableIsCalledAndHasInternalCall = "variable-is-called-and-has-internal-call", i.VariableCallsOthersAndHasInternalCall = "variable-calls-others-and-has-internal-call", i))(J || {});
23864
23864
  class P {
23865
23865
  constructor(a) {
23866
23866
  // A deterministic error code, so if the same error occurs again in a subsequent validation run,
@@ -26322,11 +26322,11 @@ function l3(i, a) {
26322
26322
  const e = [];
26323
26323
  if (!a.abstract) {
26324
26324
  const y = fe({
26325
- id: i.id + "--" + Z.ImplementingNonAbstractEntity,
26325
+ id: i.id + "--" + J.ImplementingNonAbstractEntity,
26326
26326
  message: `Entity "${i.name}" with id "${i.id}" is implementing a non-abstract entity "${a.name}" with id "${a.id}"`,
26327
26327
  issue: null,
26328
26328
  severity: R.Error,
26329
- code: Z.ImplementingNonAbstractEntity,
26329
+ code: J.ImplementingNonAbstractEntity,
26330
26330
  entity: i
26331
26331
  });
26332
26332
  return e.push(y.error), e;
@@ -26345,11 +26345,11 @@ function l3(i, a) {
26345
26345
  ) : r.push(y);
26346
26346
  }), r.length && r.forEach((y) => {
26347
26347
  const c = fe({
26348
- id: i.id + "--" + Z.MissingPropertyImplementation + "--" + y.id,
26348
+ id: i.id + "--" + J.MissingPropertyImplementation + "--" + y.id,
26349
26349
  message: `Property "${y.name}" with id "${y.id}" of entity "${a.name}" with id "${a.id}" is not implemented when entity "${i.name}" with id "${i.id}" implements it`,
26350
26350
  issue: null,
26351
26351
  severity: R.Error,
26352
- code: Z.MissingPropertyImplementation,
26352
+ code: J.MissingPropertyImplementation,
26353
26353
  entity: i
26354
26354
  });
26355
26355
  e.push(c.error);
@@ -26368,11 +26368,11 @@ function l3(i, a) {
26368
26368
  ) : d.push(y);
26369
26369
  }), d.length && d.forEach((y) => {
26370
26370
  const c = fe({
26371
- id: i.id + "--" + Z.MissingMethodImplementation + "--" + y.id,
26371
+ id: i.id + "--" + J.MissingMethodImplementation + "--" + y.id,
26372
26372
  message: `Method "${y.name}" with id "${y.id}" of entity "${a.name}" with id "${a.id}" is not implemented when entity "${i.name}" with id "${i.id}" implements it`,
26373
26373
  issue: null,
26374
26374
  severity: R.Error,
26375
- code: Z.MissingMethodImplementation,
26375
+ code: J.MissingMethodImplementation,
26376
26376
  entity: i
26377
26377
  });
26378
26378
  e.push(c.error);
@@ -26416,11 +26416,11 @@ function u3(i, a) {
26416
26416
  const e = [], t = [];
26417
26417
  if (a.abstract) {
26418
26418
  const s = fe({
26419
- id: i.id + "--" + Z.ExtendingAbstractEntity,
26419
+ id: i.id + "--" + J.ExtendingAbstractEntity,
26420
26420
  message: `Entity "${i.name}" with id "${i.id}" is extending an abstract entity "${a.name}" with id "${a.id}"`,
26421
26421
  issue: null,
26422
26422
  severity: R.Error,
26423
- code: Z.ExtendingAbstractEntity,
26423
+ code: J.ExtendingAbstractEntity,
26424
26424
  entity: i
26425
26425
  });
26426
26426
  return e.push(s.error), e;
@@ -26467,11 +26467,11 @@ function p3(i) {
26467
26467
  const a = [];
26468
26468
  if (!i.properties.length) {
26469
26469
  const e = fe({
26470
- id: i.id + "--" + Z.NoProperties,
26470
+ id: i.id + "--" + J.NoProperties,
26471
26471
  message: "No properties implemented",
26472
26472
  issue: null,
26473
26473
  severity: R.Warning,
26474
- code: Z.NoProperties,
26474
+ code: J.NoProperties,
26475
26475
  entity: i
26476
26476
  });
26477
26477
  a.push(e.error);
@@ -26485,32 +26485,32 @@ function c3(i) {
26485
26485
  if (i.abstract) {
26486
26486
  if (i.methods.length) {
26487
26487
  const e = fe({
26488
- id: i.id + "--" + Z.AbstractEntityWithNonAbstractMethods,
26488
+ id: i.id + "--" + J.AbstractEntityWithNonAbstractMethods,
26489
26489
  message: `Entity "${i.name}" with id "${i.id}" is marked as abstract but has non-abstract methods`,
26490
26490
  issue: null,
26491
26491
  severity: R.Error,
26492
- code: Z.AbstractEntityWithNonAbstractMethods,
26492
+ code: J.AbstractEntityWithNonAbstractMethods,
26493
26493
  entity: i
26494
26494
  });
26495
26495
  a.push(e.error);
26496
26496
  }
26497
26497
  if (i.properties.some((e) => !e.abstract)) {
26498
26498
  const e = fe({
26499
- id: i.id + "--" + Z.AbstractEntityWithNonAbstractProperties,
26499
+ id: i.id + "--" + J.AbstractEntityWithNonAbstractProperties,
26500
26500
  message: `Entity "${i.name}" with id "${i.id}" is marked as abstract but has non-abstract properties`,
26501
26501
  issue: null,
26502
26502
  severity: R.Error,
26503
- code: Z.AbstractEntityWithNonAbstractProperties,
26503
+ code: J.AbstractEntityWithNonAbstractProperties,
26504
26504
  entity: i
26505
26505
  });
26506
26506
  a.push(e.error), i.properties.forEach((t) => {
26507
26507
  if (!t.abstract) {
26508
26508
  const r = fe({
26509
- id: i.id + "--" + Z.StaticEntityWithNonStaticProperties + "--" + t.id,
26509
+ id: i.id + "--" + J.StaticEntityWithNonStaticProperties + "--" + t.id,
26510
26510
  message: `Property "${t.name}" with id "${t.id}" of entity "${i.name}" with id "${i.id}" is not marked as abstract but the entity is marked as abstract`,
26511
26511
  issue: null,
26512
26512
  severity: R.Error,
26513
- code: Z.StaticEntityWithNonStaticProperties,
26513
+ code: J.StaticEntityWithNonStaticProperties,
26514
26514
  entity: i
26515
26515
  });
26516
26516
  a.push(r.error);
@@ -26520,32 +26520,32 @@ function c3(i) {
26520
26520
  } else {
26521
26521
  if (i.abstractMethods.length) {
26522
26522
  const e = fe({
26523
- id: i.id + "--" + Z.AbstractPropertyInNonAbstractEntity,
26523
+ id: i.id + "--" + J.AbstractPropertyInNonAbstractEntity,
26524
26524
  message: `Entity "${i.name}" with id "${i.id}" is not marked as abstract but has abstract methods`,
26525
26525
  issue: null,
26526
26526
  severity: R.Error,
26527
- code: Z.AbstractPropertyInNonAbstractEntity,
26527
+ code: J.AbstractPropertyInNonAbstractEntity,
26528
26528
  entity: i
26529
26529
  });
26530
26530
  a.push(e.error);
26531
26531
  }
26532
26532
  if (i.properties.some((e) => e.abstract)) {
26533
26533
  const e = fe({
26534
- id: i.id + "--" + Z.AbstractMethodInNonAbstractEntity,
26534
+ id: i.id + "--" + J.AbstractMethodInNonAbstractEntity,
26535
26535
  message: `Entity "${i.name}" with id "${i.id}" is not marked as abstract but has abstract properties`,
26536
26536
  issue: null,
26537
26537
  severity: R.Error,
26538
- code: Z.AbstractMethodInNonAbstractEntity,
26538
+ code: J.AbstractMethodInNonAbstractEntity,
26539
26539
  entity: i
26540
26540
  });
26541
26541
  a.push(e.error), i.properties.forEach((t) => {
26542
26542
  if (t.abstract) {
26543
26543
  const r = fe({
26544
- id: i.id + "--" + Z.AbstractMethodInNonAbstractEntity + "--" + t.id,
26544
+ id: i.id + "--" + J.AbstractMethodInNonAbstractEntity + "--" + t.id,
26545
26545
  message: `Property "${t.name}" with id "${t.id}" of entity "${i.name}" with id "${i.id}" is marked as abstract but the entity is not marked as abstract`,
26546
26546
  issue: null,
26547
26547
  severity: R.Error,
26548
- code: Z.AbstractMethodInNonAbstractEntity,
26548
+ code: J.AbstractMethodInNonAbstractEntity,
26549
26549
  entity: i
26550
26550
  });
26551
26551
  a.push(r.error);
@@ -26555,21 +26555,21 @@ function c3(i) {
26555
26555
  }
26556
26556
  if (i.static && i.properties.some((e) => !e.static)) {
26557
26557
  const e = fe({
26558
- id: i.id + "--" + Z.StaticEntityWithNonStaticProperties,
26558
+ id: i.id + "--" + J.StaticEntityWithNonStaticProperties,
26559
26559
  message: `Entity "${i.name}" with id "${i.id}" is marked as static but has non-static properties`,
26560
26560
  issue: null,
26561
26561
  severity: R.Error,
26562
- code: Z.StaticEntityWithNonStaticProperties,
26562
+ code: J.StaticEntityWithNonStaticProperties,
26563
26563
  entity: i
26564
26564
  });
26565
26565
  a.push(e.error), i.properties.forEach((t) => {
26566
26566
  if (!t.static) {
26567
26567
  const r = fe({
26568
- id: i.id + "--" + Z.NonStaticPropertyInStaticEntity + "--" + t.id,
26568
+ id: i.id + "--" + J.NonStaticPropertyInStaticEntity + "--" + t.id,
26569
26569
  message: `Property "${t.name}" with id "${t.id}" of entity "${i.name}" with id "${i.id}" is not marked as static but the entity is marked as static`,
26570
26570
  issue: null,
26571
26571
  severity: R.Error,
26572
- code: Z.NonStaticPropertyInStaticEntity,
26572
+ code: J.NonStaticPropertyInStaticEntity,
26573
26573
  entity: i
26574
26574
  });
26575
26575
  a.push(r.error);
@@ -28083,7 +28083,7 @@ function Qu(i, a = null) {
28083
28083
  return null;
28084
28084
  }
28085
28085
  }
28086
- function C(i) {
28086
+ function B(i) {
28087
28087
  if (i) {
28088
28088
  let a = null;
28089
28089
  return typeof i == "string" ? a = i : i.entityId ? a = i.entityId : i.type !== n.GenericReference && (a = i.id), a;
@@ -28518,7 +28518,7 @@ function w0(i, a) {
28518
28518
  issue: null
28519
28519
  })
28520
28520
  );
28521
- const t = i.parent ? C(i.parent) : null;
28521
+ const t = i.parent ? B(i.parent) : null;
28522
28522
  let r = a;
28523
28523
  t && (r = a.get(t));
28524
28524
  const s = [];
@@ -28595,7 +28595,7 @@ function V0(i, a) {
28595
28595
  issue: null
28596
28596
  })
28597
28597
  );
28598
- const t = C(i.parent);
28598
+ const t = B(i.parent);
28599
28599
  if (!t)
28600
28600
  e.push(
28601
28601
  new P({
@@ -28647,7 +28647,7 @@ function C0(i, a) {
28647
28647
  issue: null
28648
28648
  })
28649
28649
  );
28650
- const t = C(i.parent);
28650
+ const t = B(i.parent);
28651
28651
  if (!t)
28652
28652
  e.push(
28653
28653
  new P({
@@ -28701,7 +28701,7 @@ function B0(i, a) {
28701
28701
  issue: null
28702
28702
  })
28703
28703
  );
28704
- const t = C(i.parent);
28704
+ const t = B(i.parent);
28705
28705
  if (!t)
28706
28706
  e.push(
28707
28707
  new P({
@@ -28797,14 +28797,14 @@ function IS(i) {
28797
28797
  const s = [...r];
28798
28798
  if (i.id === "80c86e1b-caca-4ba5-9b1f-38f72d10e4a3") {
28799
28799
  const o = fe({
28800
- id: `${i.id}--${Z.PropertyImplementsNonAbstact}`,
28800
+ id: `${i.id}--${J.PropertyImplementsNonAbstact}`,
28801
28801
  message: `Property "${j(i, i.project)}" with id "${i.id}" implements a non-abstract property "${j(
28802
28802
  i,
28803
28803
  i.project
28804
28804
  )}" with id "${i.id}".`,
28805
28805
  issue: null,
28806
28806
  severity: R.Error,
28807
- code: Z.PropertyImplementsNonAbstact,
28807
+ code: J.PropertyImplementsNonAbstact,
28808
28808
  entity: i
28809
28809
  });
28810
28810
  s.push(o.error);
@@ -28818,21 +28818,21 @@ function ES(i) {
28818
28818
  const e = i.implements;
28819
28819
  if (!e.abstract) {
28820
28820
  const r = fe({
28821
- id: `${i.id}--${Z.PropertyImplementsNonAbstact}`,
28821
+ id: `${i.id}--${J.PropertyImplementsNonAbstact}`,
28822
28822
  message: `Property "${j(i, i.project)}" with id "${i.id}" implements a non-abstract property "${j(
28823
28823
  e,
28824
28824
  i.project
28825
28825
  )}" with id "${e.id}".`,
28826
28826
  issue: null,
28827
28827
  severity: R.Error,
28828
- code: Z.PropertyImplementsNonAbstact,
28828
+ code: J.PropertyImplementsNonAbstact,
28829
28829
  entity: i
28830
28830
  });
28831
28831
  a.push(r.error);
28832
28832
  }
28833
28833
  if (i.static && !e.static) {
28834
28834
  const r = fe({
28835
- id: `${i.id}--${Z.NonStaticPropertyImplementsStatic}`,
28835
+ id: `${i.id}--${J.NonStaticPropertyImplementsStatic}`,
28836
28836
  message: `Static property "${j(
28837
28837
  i,
28838
28838
  i.project
@@ -28842,14 +28842,14 @@ function ES(i) {
28842
28842
  )}" with id "${e.id}".`,
28843
28843
  issue: null,
28844
28844
  severity: R.Error,
28845
- code: Z.NonStaticPropertyImplementsStatic,
28845
+ code: J.NonStaticPropertyImplementsStatic,
28846
28846
  entity: i
28847
28847
  });
28848
28848
  a.push(r.error);
28849
28849
  }
28850
28850
  if (!i.static && e.static) {
28851
28851
  const r = fe({
28852
- id: `${i.id}--${Z.StaticPropertyImplementsNonStatic}`,
28852
+ id: `${i.id}--${J.StaticPropertyImplementsNonStatic}`,
28853
28853
  message: `Non-static property "${j(
28854
28854
  i,
28855
28855
  i.project
@@ -28859,7 +28859,7 @@ function ES(i) {
28859
28859
  )}" with id "${e.id}".`,
28860
28860
  issue: null,
28861
28861
  severity: R.Error,
28862
- code: Z.StaticPropertyImplementsNonStatic,
28862
+ code: J.StaticPropertyImplementsNonStatic,
28863
28863
  entity: i
28864
28864
  });
28865
28865
  a.push(r.error);
@@ -28869,14 +28869,14 @@ function ES(i) {
28869
28869
  e.dataType
28870
28870
  )) {
28871
28871
  const r = fe({
28872
- id: `${i.id}--${Z.PropertyImplementsIncompatibleType}`,
28872
+ id: `${i.id}--${J.PropertyImplementsIncompatibleType}`,
28873
28873
  message: `Property "${j(i, i.project)}" with id "${i.id}" implements a property "${j(
28874
28874
  e,
28875
28875
  i.project
28876
28876
  )}" with id "${e.id}" that has an incompatible data type.`,
28877
28877
  issue: null,
28878
28878
  severity: R.Error,
28879
- code: Z.PropertyImplementsIncompatibleType,
28879
+ code: J.PropertyImplementsIncompatibleType,
28880
28880
  entity: i
28881
28881
  });
28882
28882
  a.push(r.error);
@@ -29325,12 +29325,12 @@ const Ee = class Ee extends tt {
29325
29325
  Then creates a new instance of the entity
29326
29326
  */
29327
29327
  static fromGenerationTarget(e, t) {
29328
- const r = C(e.parent), s = t.get(
29328
+ const r = B(e.parent), s = t.get(
29329
29329
  r
29330
29330
  );
29331
29331
  let d = null;
29332
29332
  if (e.implements) {
29333
- const u = C(
29333
+ const u = B(
29334
29334
  e.implements
29335
29335
  );
29336
29336
  d = t.get(
@@ -29576,7 +29576,7 @@ ${wd}`,
29576
29576
  hydrateAncestors() {
29577
29577
  const e = [], t = [], r = [], s = [];
29578
29578
  if (this.initialData.parent) {
29579
- const d = C(
29579
+ const d = B(
29580
29580
  this.initialData.parent
29581
29581
  ), o = this.project.get(
29582
29582
  d
@@ -29592,7 +29592,7 @@ ${wd}`,
29592
29592
  `${zt(this.type)} with id '${this.id}' is missing a parent reference`
29593
29593
  );
29594
29594
  if (this.initialData.implements) {
29595
- const d = C(this.initialData.implements), o = this.project.get(
29595
+ const d = B(this.initialData.implements), o = this.project.get(
29596
29596
  d
29597
29597
  );
29598
29598
  o && (this.setImplements(o, null), e.push(o));
@@ -30171,14 +30171,14 @@ function RS(i) {
30171
30171
  const r = [];
30172
30172
  if (i.id === "iterate-over-employee-list-continue-statement-employee-dto-output-decl-id") {
30173
30173
  const d = fe({
30174
- id: `${i.id}--${Z.PropertyImplementsNonAbstact}`,
30174
+ id: `${i.id}--${J.PropertyImplementsNonAbstact}`,
30175
30175
  message: `Property "${j(i, i.project)}" with id "${i.id}" implements a non-abstract property "${j(
30176
30176
  i,
30177
30177
  i.project
30178
30178
  )}" with id "${i.id}".`,
30179
30179
  issue: null,
30180
30180
  severity: R.Error,
30181
- code: Z.PropertyImplementsNonAbstact,
30181
+ code: J.PropertyImplementsNonAbstact,
30182
30182
  entity: i
30183
30183
  });
30184
30184
  r.push(d.error);
@@ -30226,10 +30226,10 @@ const be = class be extends tt {
30226
30226
  Then creates a new instance of the entity
30227
30227
  */
30228
30228
  static fromGenerationTarget(e, t) {
30229
- const r = C(e.parent), s = t.get(r);
30229
+ const r = B(e.parent), s = t.get(r);
30230
30230
  let d = null;
30231
30231
  if (e.readsValue) {
30232
- const u = C(e.readsValue);
30232
+ const u = B(e.readsValue);
30233
30233
  d = t.get(
30234
30234
  u
30235
30235
  );
@@ -30298,7 +30298,7 @@ const be = class be extends tt {
30298
30298
  ), o = B0(r, t);
30299
30299
  if (r = d.modifiedData, r.parent) {
30300
30300
  const y = t.get(
30301
- C(r.parent)
30301
+ B(r.parent)
30302
30302
  );
30303
30303
  if (y && [n.BreakStatement, n.ContinueStatement].includes(
30304
30304
  y.type
@@ -30337,22 +30337,22 @@ ${Lp}`,
30337
30337
  const m = c.implements;
30338
30338
  if (m) {
30339
30339
  const T = m.outputs.find(
30340
- (B) => B.name === r.name
30341
- ), D = m.outputs.filter((B) => !y.outputs.find(
30342
- (k) => k.type === n.ReturnDeclaration && k.name === B.name
30340
+ (C) => C.name === r.name
30341
+ ), D = m.outputs.filter((C) => !y.outputs.find(
30342
+ (k) => k.type === n.ReturnDeclaration && k.name === C.name
30343
30343
  )), w = y.outputs.filter(
30344
- (B) => B.type === n.ReturnDeclaration
30344
+ (C) => C.type === n.ReturnDeclaration
30345
30345
  ), V = w.find(
30346
- (B) => B.name === r.name
30346
+ (C) => C.name === r.name
30347
30347
  ), L = w.length ? `The parent entity already implements the following return declarations: ${re(
30348
30348
  w.map(
30349
- (B) => `'${B.id}' (${B.name})`
30349
+ (C) => `'${C.id}' (${C.name})`
30350
30350
  ),
30351
30351
  ", ",
30352
30352
  " and "
30353
30353
  )}.` : "The parent entity does not yet have any implemented return declarations.", $ = D.length ? `The parent entity is still missing the following returns in the implementation: ${re(
30354
30354
  D.map(
30355
- (B) => `'${B.id}' (${B.name})`
30355
+ (C) => `'${C.id}' (${C.name})`
30356
30356
  ),
30357
30357
  ", ",
30358
30358
  " and "
@@ -30579,7 +30579,7 @@ This is likely an incorrect strategy, either the '${this.type}' entity doesn't n
30579
30579
  hydrateAncestors() {
30580
30580
  const e = [], t = [], r = [], s = [];
30581
30581
  if (this.initialData.parent) {
30582
- const d = C(
30582
+ const d = B(
30583
30583
  this.initialData.parent
30584
30584
  ), o = this.project.get(d);
30585
30585
  if (o)
@@ -30591,7 +30591,7 @@ This is likely an incorrect strategy, either the '${this.type}' entity doesn't n
30591
30591
  } else
30592
30592
  throw new Error(`${this.type} with id '${this.id}' must have a 'parent'`);
30593
30593
  if (this.initialData.readsValue) {
30594
- const d = C(
30594
+ const d = B(
30595
30595
  this.initialData.readsValue
30596
30596
  ), o = this.project.get(
30597
30597
  d
@@ -30599,7 +30599,7 @@ This is likely an incorrect strategy, either the '${this.type}' entity doesn't n
30599
30599
  o && (this.setValueWriter(o), e.push(o));
30600
30600
  }
30601
30601
  if (this.initialData.implements) {
30602
- const d = C(
30602
+ const d = B(
30603
30603
  this.initialData.implements
30604
30604
  ), o = this.project.get(
30605
30605
  d
@@ -31318,14 +31318,14 @@ const Ue = class Ue extends tt {
31318
31318
  Then creates a new instance of the entity
31319
31319
  */
31320
31320
  static fromGenerationTarget(e, t) {
31321
- const r = C(e.parent), s = t.get(r), d = e.calledByEntry.map((c) => {
31322
- const m = C(c);
31321
+ const r = B(e.parent), s = t.get(r), d = e.calledByEntry.map((c) => {
31322
+ const m = B(c);
31323
31323
  return t.get(m);
31324
31324
  }), o = e.calledBySuccess.map((c) => {
31325
- const m = C(c);
31325
+ const m = B(c);
31326
31326
  return t.get(m);
31327
31327
  }), l = e.calledByError.map((c) => {
31328
- const m = C(c);
31328
+ const m = B(c);
31329
31329
  return t.get(m);
31330
31330
  }), u = {
31331
31331
  id: e.id,
@@ -31575,7 +31575,7 @@ Specifically for continue statements the parent needs to always be the 'loop' en
31575
31575
  hydrateAncestors() {
31576
31576
  const e = [], t = [], r = [], s = [];
31577
31577
  if (this.initialData.parent) {
31578
- const d = C(
31578
+ const d = B(
31579
31579
  this.initialData.parent
31580
31580
  ), o = this.project.get(d);
31581
31581
  if (o)
@@ -31587,15 +31587,15 @@ Specifically for continue statements the parent needs to always be the 'loop' en
31587
31587
  } else
31588
31588
  throw new Error(`${this.type} with id '${this.id}' must have a 'parent'`);
31589
31589
  return this.initialData.calledByEntry.forEach((d) => {
31590
- const o = C(d), l = this.project.get(o);
31590
+ const o = B(d), l = this.project.get(o);
31591
31591
  l && (this.addEntryCaller(l, null), e.push(l));
31592
31592
  }), this.initialData.calledBySuccess.forEach((d) => {
31593
- const o = C(d), l = this.project.get(
31593
+ const o = B(d), l = this.project.get(
31594
31594
  o
31595
31595
  );
31596
31596
  l && (this.addSuccessCaller(l, null), e.push(l));
31597
31597
  }), this.initialData.calledByError.forEach((d) => {
31598
- const o = C(d), l = this.project.get(
31598
+ const o = B(d), l = this.project.get(
31599
31599
  o
31600
31600
  );
31601
31601
  l && (this.addErrorCaller(l, null), e.push(l));
@@ -32193,16 +32193,16 @@ const Ye = class Ye extends tt {
32193
32193
  Then creates a new instance of the entity
32194
32194
  */
32195
32195
  static fromGenerationTarget(e, t) {
32196
- const r = C(e.parent), s = t.get(
32196
+ const r = B(e.parent), s = t.get(
32197
32197
  r
32198
32198
  ), d = e.calledByEntry.map((c) => {
32199
- const m = C(c);
32199
+ const m = B(c);
32200
32200
  return t.get(m);
32201
32201
  }), o = e.calledBySuccess.map((c) => {
32202
- const m = C(c);
32202
+ const m = B(c);
32203
32203
  return t.get(m);
32204
32204
  }), l = e.calledByError.map((c) => {
32205
- const m = C(c);
32205
+ const m = B(c);
32206
32206
  return t.get(m);
32207
32207
  }), u = {
32208
32208
  id: e.id,
@@ -32453,7 +32453,7 @@ Specifically for return statements the parent needs to always be the 'function-d
32453
32453
  hydrateAncestors() {
32454
32454
  const e = [], t = [], r = [], s = [];
32455
32455
  if (this.initialData.parent) {
32456
- const d = C(
32456
+ const d = B(
32457
32457
  this.initialData.parent
32458
32458
  ), o = this.project.get(d);
32459
32459
  if (o)
@@ -32465,15 +32465,15 @@ Specifically for return statements the parent needs to always be the 'function-d
32465
32465
  } else
32466
32466
  throw new Error(`${this.type} with id '${this.id}' must have a 'parent'`);
32467
32467
  return this.initialData.calledByEntry.forEach((d) => {
32468
- const o = C(d), l = this.project.get(o);
32468
+ const o = B(d), l = this.project.get(o);
32469
32469
  l && (this.addEntryCaller(l, null), e.push(l));
32470
32470
  }), this.initialData.calledBySuccess.forEach((d) => {
32471
- const o = C(d), l = this.project.get(
32471
+ const o = B(d), l = this.project.get(
32472
32472
  o
32473
32473
  );
32474
32474
  l && (this.addSuccessCaller(l, null), e.push(l));
32475
32475
  }), this.initialData.calledByError.forEach((d) => {
32476
- const o = C(d), l = this.project.get(
32476
+ const o = B(d), l = this.project.get(
32477
32477
  o
32478
32478
  );
32479
32479
  l && (this.addErrorCaller(l, null), e.push(l));
@@ -33039,14 +33039,14 @@ function OS(i) {
33039
33039
  const o = [...r, ...s];
33040
33040
  if (i.id === "getCompanyByIdEndpointReachedEntityEvent") {
33041
33041
  const l = fe({
33042
- id: `${i.id}--${Z.PropertyImplementsNonAbstact}`,
33042
+ id: `${i.id}--${J.PropertyImplementsNonAbstact}`,
33043
33043
  message: `Property "${j(i, i.project)}" with id "${i.id}" implements a non-abstract property "${j(
33044
33044
  i,
33045
33045
  i.project
33046
33046
  )}" with id "${i.id}".`,
33047
33047
  issue: null,
33048
33048
  severity: R.Error,
33049
- code: Z.PropertyImplementsNonAbstact,
33049
+ code: J.PropertyImplementsNonAbstact,
33050
33050
  entity: i
33051
33051
  });
33052
33052
  o.push(l.error);
@@ -33057,11 +33057,11 @@ function VS(i) {
33057
33057
  const a = [];
33058
33058
  if (!i.calls.length) {
33059
33059
  const e = fe({
33060
- id: `${i.id}--${Z.ScopeWithoutLogic}`,
33060
+ id: `${i.id}--${J.ScopeWithoutLogic}`,
33061
33061
  message: `Action "${j(i, i.project)}" with id "${i.id}" does not have any logic defined. So it doesn't do anything.`,
33062
33062
  issue: null,
33063
33063
  severity: R.Warning,
33064
- code: Z.ScopeWithoutLogic,
33064
+ code: J.ScopeWithoutLogic,
33065
33065
  entity: i
33066
33066
  });
33067
33067
  a.push(e.error);
@@ -33117,12 +33117,12 @@ const Ae = class Ae extends tt {
33117
33117
  static fromGenerationTarget(e, t) {
33118
33118
  let r = t;
33119
33119
  if (e.parent) {
33120
- const l = C(e.parent);
33120
+ const l = B(e.parent);
33121
33121
  r = t.get(l);
33122
33122
  }
33123
33123
  let s = null;
33124
33124
  if (e.implements) {
33125
- const l = C(e.implements);
33125
+ const l = B(e.implements);
33126
33126
  s = t.get(
33127
33127
  l
33128
33128
  );
@@ -33209,8 +33209,8 @@ ${Yi}`, s.push(
33209
33209
  } else {
33210
33210
  const w = m.methods.find(
33211
33211
  ($) => {
33212
- var B;
33213
- return ((B = $.implements) == null ? void 0 : B.id) === r.implements;
33212
+ var C;
33213
+ return ((C = $.implements) == null ? void 0 : C.id) === r.implements;
33214
33214
  }
33215
33215
  );
33216
33216
  w && s.push(
@@ -33463,7 +33463,7 @@ Please consider that any updates might affect the overlap with the signature of
33463
33463
  hydrateAncestors() {
33464
33464
  const e = [], t = [], r = [], s = [];
33465
33465
  if (this.initialData.parent) {
33466
- const d = C(
33466
+ const d = B(
33467
33467
  this.initialData.parent
33468
33468
  ), o = this.project.get(d);
33469
33469
  if (o)
@@ -33477,7 +33477,7 @@ Please consider that any updates might affect the overlap with the signature of
33477
33477
  `${zt(this.type)} with id '${this.id}' is missing a 'parent' reference`
33478
33478
  );
33479
33479
  if (this.initialData.implements) {
33480
- const d = C(
33480
+ const d = B(
33481
33481
  this.initialData.implements
33482
33482
  ), o = this.project.get(
33483
33483
  d
@@ -34015,59 +34015,77 @@ Please consider that any updates might affect the overlap with the signature of
34015
34015
  return this.inputs.find((t) => t.id === e) || null;
34016
34016
  }
34017
34017
  // Creates a call enitity for this function declaration
34018
- createCall(e = this.project, t = {}) {
34019
- const r = {
34020
- id: t.id || I.UUID.uuid(),
34021
- version: t.version || I.UUID.uuid(),
34022
- createdAt: t.createdAt || v().toISOString(),
34023
- author: t.author || "1",
34024
- previousVersion: t.previousVersion || null,
34025
- deleted: t.deleted || !1,
34018
+ createCall(e = this.project.addChangeSet(
34019
+ new A(
34020
+ this.project,
34021
+ "",
34022
+ v().toISOString(),
34023
+ this,
34024
+ !0,
34025
+ "create-call"
34026
+ )
34027
+ ), t = this.project, r = {}) {
34028
+ const s = {
34029
+ id: r.id || I.UUID.uuid(),
34030
+ version: r.version || I.UUID.uuid(),
34031
+ createdAt: r.createdAt || v().toISOString(),
34032
+ author: r.author || "1",
34033
+ previousVersion: r.previousVersion || null,
34034
+ deleted: r.deleted || !1,
34026
34035
  type: n.FunctionCall,
34027
- parent: e.toReference(),
34028
- successCalls: t.successCalls || [],
34029
- errorCalls: t.errorCalls || [],
34030
- inputs: t.inputs || [],
34031
- outputs: t.outputs || [],
34032
- error: t.error || null,
34033
- process: t.process || null,
34034
- calledBySuccess: t.calledBySuccess || [],
34035
- calledByError: t.calledByError || [],
34036
- calledByEntry: t.calledByEntry || [],
34036
+ parent: t.toReference(),
34037
+ successCalls: r.successCalls || [],
34038
+ errorCalls: r.errorCalls || [],
34039
+ inputs: r.inputs || [],
34040
+ outputs: r.outputs || [],
34041
+ error: r.error || null,
34042
+ process: r.process || null,
34043
+ calledBySuccess: r.calledBySuccess || [],
34044
+ calledByError: r.calledByError || [],
34045
+ calledByEntry: r.calledByEntry || [],
34037
34046
  declaration: this.toJSON(),
34038
34047
  x: 0,
34039
34048
  y: 0
34040
- }, s = O(
34041
- r,
34049
+ }, d = O(
34050
+ s,
34042
34051
  this.project
34043
34052
  );
34044
- return s.setParent(e, null), s.initChildren(null), e === this.project && this.project.addFunctionCall(s), s;
34053
+ return d.setParent(t, e), d.initChildren(e), e == null || e.add(d, b.Added), d.hydrateAncestors(), d.afterAllChildrenInitialized(e), t === this.project && this.project.addFunctionCall(d), e == null || e.attemptAutoclose("create-call", this.id), d;
34045
34054
  }
34046
34055
  // Creates a call enitity for this function declaration
34047
- createInternalCall(e, t = {}) {
34048
- const r = {
34049
- id: t.id || I.UUID.uuid(),
34050
- version: t.version || I.UUID.uuid(),
34056
+ createInternalCall(e = this.project.addChangeSet(
34057
+ new A(
34058
+ this.project,
34059
+ "",
34060
+ v().toISOString(),
34061
+ this,
34062
+ !0,
34063
+ "create-internal"
34064
+ )
34065
+ ), t, r = {}) {
34066
+ const s = {
34067
+ id: r.id || I.UUID.uuid(),
34068
+ version: r.version || I.UUID.uuid(),
34051
34069
  type: n.InternalCall,
34052
- parent: e.toReference(),
34053
- successCalls: t.successCalls || [],
34054
- deleted: t.deleted || !1,
34055
- errorCalls: t.errorCalls || [],
34056
- inputs: t.inputs || [],
34057
- outputs: t.outputs || [],
34058
- error: t.error || null,
34059
- process: t.process || null,
34060
- calledBySuccess: t.calledBySuccess || [],
34061
- calledByError: t.calledByError || [],
34062
- calledByEntry: t.calledByEntry || [],
34070
+ parent: t.toReference(),
34071
+ successCalls: r.successCalls || [],
34072
+ deleted: r.deleted || !1,
34073
+ errorCalls: r.errorCalls || [],
34074
+ inputs: r.inputs || [],
34075
+ outputs: r.outputs || [],
34076
+ error: r.error || null,
34077
+ process: r.process || null,
34078
+ calledBySuccess: r.calledBySuccess || [],
34079
+ calledByError: r.calledByError || [],
34080
+ calledByEntry: r.calledByEntry || [],
34063
34081
  // @ts-ignore This is because using the correct 'toJSON' method would recursively call the same method in other entities. Which during load, might not yet be available
34064
34082
  declaration: this.toShallowJSON(),
34065
- index: e.internalCalls.length
34066
- }, s = O(
34067
- r,
34083
+ index: t.internalCalls.length
34084
+ }, d = O(
34085
+ s,
34068
34086
  this.project
34069
34087
  );
34070
- return s.setParent(e, null), s.initChildren(null), s;
34088
+ return d.setParent(t, e), d.initChildren(e), e == null || e.add(d, b.Added), d.hydrateAncestors(), d.afterAllChildrenInitialized(e), e == null || e.attemptAutoclose("create-internal", this.id), d;
34071
34089
  }
34072
34090
  addReturnStatement(e) {
34073
34091
  return this.returnStatements.includes(e) || this.returnStatements.push(e), this;
@@ -34164,11 +34182,11 @@ function _S(i) {
34164
34182
  const r = [];
34165
34183
  if (i.entity && i.andChildrenGroup || i.entity && i.orChildrenGroup || i.andChildrenGroup && i.orChildrenGroup) {
34166
34184
  const s = fe({
34167
- id: i.id + "--" + Z.InvalidPropertiesCombination,
34185
+ id: i.id + "--" + J.InvalidPropertiesCombination,
34168
34186
  message: `Data type with id "${i.id}" has invalid properties combination. Only one of the following properties can be present at the time: 'entity', 'andChildrenGroup' or 'orChildrenGroup'`,
34169
34187
  issue: null,
34170
34188
  severity: R.Error,
34171
- code: Z.InvalidPropertiesCombination,
34189
+ code: J.InvalidPropertiesCombination,
34172
34190
  entity: i
34173
34191
  });
34174
34192
  r.push(s.error);
@@ -34308,7 +34326,7 @@ const Re = class Re extends tt {
34308
34326
  Then creates a new instance of the entity
34309
34327
  */
34310
34328
  static fromGenerationTarget(e, t) {
34311
- const r = C(e.parent), s = t.get(r);
34329
+ const r = B(e.parent), s = t.get(r);
34312
34330
  let d = null;
34313
34331
  e.entity && (d = t.get(e.entity));
34314
34332
  const o = {
@@ -34634,7 +34652,7 @@ Alternatively you can update the entity with 'update' action. Or replace it by f
34634
34652
  hydrateAncestors() {
34635
34653
  const e = [], t = [], r = [], s = [];
34636
34654
  if (this.initialData.parent) {
34637
- const d = C(
34655
+ const d = B(
34638
34656
  this.initialData.parent
34639
34657
  ), o = this.project.get(d);
34640
34658
  if (o)
@@ -34646,7 +34664,7 @@ Alternatively you can update the entity with 'update' action. Or replace it by f
34646
34664
  } else
34647
34665
  throw new Error(`${this.type} with id '${this.id}' must have a 'parent'`);
34648
34666
  if (this.initialData.entity) {
34649
- const d = C(
34667
+ const d = B(
34650
34668
  this.initialData.entity
34651
34669
  ), o = this.project.get(d);
34652
34670
  o && (o.type === n.DefinitionEntity && o.parent === this || (this.setEntity(o), o.type !== n.BuiltInBaseEntity && o.type !== n.PrimitiveEntity && e.push(o)));
@@ -35437,14 +35455,14 @@ function gS(i) {
35437
35455
  const r = LS(i), s = Pi(i), d = [...r, ...s];
35438
35456
  if (i.id === "exec-sequentially-operation-call-id") {
35439
35457
  const l = fe({
35440
- id: `${i.id}--${Z.PropertyImplementsNonAbstact}`,
35458
+ id: `${i.id}--${J.PropertyImplementsNonAbstact}`,
35441
35459
  message: `Property "${j(i, i.project)}" with id "${i.id}" implements a non-abstract property "${j(
35442
35460
  i,
35443
35461
  i.project
35444
35462
  )}" with id "${i.id}".`,
35445
35463
  issue: null,
35446
35464
  severity: R.Error,
35447
- code: Z.PropertyImplementsNonAbstact,
35465
+ code: J.PropertyImplementsNonAbstact,
35448
35466
  entity: i
35449
35467
  });
35450
35468
  d.push(l.error);
@@ -35501,19 +35519,19 @@ const De = class De extends tt {
35501
35519
  static fromGenerationTarget(e, t) {
35502
35520
  let r = t;
35503
35521
  if (e.parent) {
35504
- const m = C(e.parent);
35522
+ const m = B(e.parent);
35505
35523
  r = t.get(m);
35506
35524
  }
35507
- const s = C(e.declaration), d = t.get(
35525
+ const s = B(e.declaration), d = t.get(
35508
35526
  s
35509
35527
  ), o = e.calledByEntry.map((m) => {
35510
- const T = C(m);
35528
+ const T = B(m);
35511
35529
  return t.get(T);
35512
35530
  }), l = e.calledBySuccess.map((m) => {
35513
- const T = C(m);
35531
+ const T = B(m);
35514
35532
  return t.get(T);
35515
35533
  }), u = e.calledByError.map((m) => {
35516
- const T = C(m);
35534
+ const T = B(m);
35517
35535
  return t.get(T);
35518
35536
  }), y = {
35519
35537
  id: e.id,
@@ -35578,7 +35596,7 @@ const De = class De extends tt {
35578
35596
  ...d.errors,
35579
35597
  ...ot(r)
35580
35598
  );
35581
- const o = C(
35599
+ const o = B(
35582
35600
  r.declaration
35583
35601
  );
35584
35602
  if (o) {
@@ -35801,7 +35819,7 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
35801
35819
  hydrateAncestors() {
35802
35820
  const e = [], t = [], r = [], s = [];
35803
35821
  if (this.initialData.parent) {
35804
- const d = C(
35822
+ const d = B(
35805
35823
  this.initialData.parent
35806
35824
  ), o = this.project.get(d);
35807
35825
  if (o)
@@ -35813,7 +35831,7 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
35813
35831
  } else
35814
35832
  throw new Error(`${this.type} with id '${this.id}' must have a 'parent'`);
35815
35833
  if (this.initialData.declaration) {
35816
- const d = C(
35834
+ const d = B(
35817
35835
  this.initialData.declaration
35818
35836
  ), o = this.project.get(
35819
35837
  d
@@ -35821,15 +35839,15 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
35821
35839
  o && (this.setDeclaration(o), e.push(o));
35822
35840
  }
35823
35841
  return this.initialData.calledByEntry.forEach((d) => {
35824
- const o = C(d), l = this.project.get(o);
35842
+ const o = B(d), l = this.project.get(o);
35825
35843
  l && (this.addEntryCaller(l, null), e.push(l));
35826
35844
  }), this.initialData.calledBySuccess.forEach((d) => {
35827
- const o = C(d), l = this.project.get(
35845
+ const o = B(d), l = this.project.get(
35828
35846
  o
35829
35847
  );
35830
35848
  l && (this.addSuccessCaller(l, null), e.push(l));
35831
35849
  }), this.initialData.calledByError.forEach((d) => {
35832
- const o = C(d), l = this.project.get(
35850
+ const o = B(d), l = this.project.get(
35833
35851
  o
35834
35852
  );
35835
35853
  l && (this.addErrorCaller(l, null), e.push(l));
@@ -36841,7 +36859,7 @@ const Pe = class Pe extends tt {
36841
36859
  static fromGenerationTarget(e, t) {
36842
36860
  let r = t;
36843
36861
  if (e.parent) {
36844
- const l = C(e.parent);
36862
+ const l = B(e.parent);
36845
36863
  r = t.get(l);
36846
36864
  }
36847
36865
  let s;
@@ -37123,7 +37141,7 @@ You can attach new logic to the existing 'global-event' but creating a new calla
37123
37141
  hydrateAncestors() {
37124
37142
  const e = [], t = [], r = [], s = [];
37125
37143
  if (this.initialData.parent) {
37126
- const d = C(
37144
+ const d = B(
37127
37145
  this.initialData.parent
37128
37146
  ), o = this.project.get(d);
37129
37147
  if (o)
@@ -37137,7 +37155,7 @@ You can attach new logic to the existing 'global-event' but creating a new calla
37137
37155
  `${zt(this.type)} with id '${this.id}' is missing a parent reference`
37138
37156
  );
37139
37157
  if (this.initialData.implements) {
37140
- const d = C(
37158
+ const d = B(
37141
37159
  this.initialData.implements
37142
37160
  ), o = this.project.get(
37143
37161
  d
@@ -37753,14 +37771,14 @@ const xe = class xe extends tt {
37753
37771
  Then creates a new instance of the entity
37754
37772
  */
37755
37773
  static fromGenerationTarget(e, t) {
37756
- const r = C(e.parent), s = t.get(r), d = e.calledByEntry.map((c) => {
37757
- const m = C(c);
37774
+ const r = B(e.parent), s = t.get(r), d = e.calledByEntry.map((c) => {
37775
+ const m = B(c);
37758
37776
  return t.get(m);
37759
37777
  }), o = e.calledBySuccess.map((c) => {
37760
- const m = C(c);
37778
+ const m = B(c);
37761
37779
  return t.get(m);
37762
37780
  }), l = e.calledByError.map((c) => {
37763
- const m = C(c);
37781
+ const m = B(c);
37764
37782
  return t.get(m);
37765
37783
  }), u = {
37766
37784
  id: e.id,
@@ -38010,7 +38028,7 @@ Specifically for break statements the parent needs to always be the 'loop' entit
38010
38028
  hydrateAncestors() {
38011
38029
  const e = [], t = [], r = [], s = [];
38012
38030
  if (this.initialData.parent) {
38013
- const d = C(
38031
+ const d = B(
38014
38032
  this.initialData.parent
38015
38033
  ), o = this.project.get(d);
38016
38034
  if (o)
@@ -38022,15 +38040,15 @@ Specifically for break statements the parent needs to always be the 'loop' entit
38022
38040
  } else
38023
38041
  throw new Error(`${this.type} with id '${this.id}' must have a 'parent'`);
38024
38042
  return this.initialData.calledByEntry.forEach((d) => {
38025
- const o = C(d), l = this.project.get(o);
38043
+ const o = B(d), l = this.project.get(o);
38026
38044
  l && (l.addCall(this), e.push(l));
38027
38045
  }), this.initialData.calledBySuccess.forEach((d) => {
38028
- const o = C(d), l = this.project.get(
38046
+ const o = B(d), l = this.project.get(
38029
38047
  o
38030
38048
  );
38031
38049
  l && (l.addSuccessCall(this), e.push(l));
38032
38050
  }), this.initialData.calledByError.forEach((d) => {
38033
- const o = C(d), l = this.project.get(
38051
+ const o = B(d), l = this.project.get(
38034
38052
  o
38035
38053
  );
38036
38054
  l && (l.addErrorCall(this), e.push(l));
@@ -38642,7 +38660,7 @@ const we = class we extends tt {
38642
38660
  static fromGenerationTarget(e, t) {
38643
38661
  let r = null;
38644
38662
  if (e.parent) {
38645
- const o = C(e.parent);
38663
+ const o = B(e.parent);
38646
38664
  r = t.get(o);
38647
38665
  }
38648
38666
  const s = {
@@ -38960,7 +38978,7 @@ This is likely an incorrect strategy, either the '${this.type}' entity doesn't n
38960
38978
  hydrateAncestors() {
38961
38979
  const e = [], t = [], r = [], s = [];
38962
38980
  if (this.initialData.parent) {
38963
- const d = C(
38981
+ const d = B(
38964
38982
  this.initialData.parent
38965
38983
  ), o = this.project.get(d);
38966
38984
  if (o)
@@ -39486,7 +39504,143 @@ This is likely an incorrect strategy, either the '${this.type}' entity doesn't n
39486
39504
  y: 0
39487
39505
  };
39488
39506
  }
39489
- implementAsFunctionDeclaration(e, t = this.project.addChangeSet(
39507
+ implementAsGlobalEvent(e = this.project.addChangeSet(
39508
+ new A(
39509
+ this.project,
39510
+ "",
39511
+ v().toISOString(),
39512
+ this,
39513
+ !0,
39514
+ "implement-as-global-event"
39515
+ )
39516
+ ), t, r) {
39517
+ const s = t || this.project, d = r || I.UUID.uuid(), o = I.UUID.uuid(), l = {
39518
+ id: d,
39519
+ version: o,
39520
+ createdAt: (e == null ? void 0 : e.timestamp) || v().toISOString(),
39521
+ author: I.sessionAuthor,
39522
+ previousVersion: null,
39523
+ deleted: !1,
39524
+ type: n.GlobalEvent,
39525
+ name: this.name,
39526
+ description: this.description,
39527
+ inputs: [],
39528
+ calls: [],
39529
+ collapsed: !1,
39530
+ implements: this.toJSON(),
39531
+ parent: (s == null ? void 0 : s.toReference()) || null,
39532
+ x: 0,
39533
+ y: 0
39534
+ }, u = O(
39535
+ l,
39536
+ this.project
39537
+ );
39538
+ if (u.setParent(s, e), u.initChildren(e), e == null || e.add(u, b.Added), u.hydrateAncestors(), u.addSelfToProject(e), this.inputs.map((y, c) => {
39539
+ var V;
39540
+ const m = {
39541
+ id: I.UUID.uuid(),
39542
+ type: n.GenericReference,
39543
+ version: o,
39544
+ entityType: n.GlobalEvent,
39545
+ entityId: d
39546
+ }, T = {
39547
+ id: I.UUID.uuid(),
39548
+ version: I.UUID.uuid(),
39549
+ createdAt: (e == null ? void 0 : e.timestamp) || v().toISOString(),
39550
+ author: I.sessionAuthor,
39551
+ previousVersion: null,
39552
+ deleted: !1,
39553
+ type: n.ArgumentDeclaration,
39554
+ name: y.name,
39555
+ required: y.required,
39556
+ implements: y.toJSON(),
39557
+ constant: !0,
39558
+ writesValues: [],
39559
+ defaultValue: null,
39560
+ description: y.description,
39561
+ index: c,
39562
+ dataType: null,
39563
+ parent: m
39564
+ }, D = O(
39565
+ T,
39566
+ this.project
39567
+ );
39568
+ D.setParent(u, e), D.initChildren(e), e == null || e.add(D, b.Added), D.hydrateAncestors(), D.addSelfToProject(e);
39569
+ const w = ((V = y.dataType) == null ? void 0 : V.clone(e, D)) || null;
39570
+ w && (e == null || e.add(w, b.Added)), D.setDataType(w);
39571
+ }), this.outputs.length) {
39572
+ const y = I.UUID.uuid(), c = I.UUID.uuid(), m = {
39573
+ id: I.UUID.uuid(),
39574
+ // id: newId + '--return-statement-parent-ref',
39575
+ type: n.GenericReference,
39576
+ version: o,
39577
+ entityType: n.GlobalEvent,
39578
+ entityId: d
39579
+ }, T = {
39580
+ id: I.UUID.uuid(),
39581
+ type: n.GenericReference,
39582
+ version: o,
39583
+ entityType: n.GlobalEvent,
39584
+ entityId: d
39585
+ }, D = {
39586
+ id: y,
39587
+ version: c,
39588
+ createdAt: (e == null ? void 0 : e.timestamp) || v().toISOString(),
39589
+ author: I.sessionAuthor,
39590
+ previousVersion: null,
39591
+ deleted: !1,
39592
+ type: n.ReturnStatement,
39593
+ outputs: [],
39594
+ throws: null,
39595
+ calledBySuccess: [],
39596
+ calledByError: [],
39597
+ calledByEntry: [T],
39598
+ parent: m,
39599
+ x: 0,
39600
+ y: 0
39601
+ }, w = O(
39602
+ D,
39603
+ this.project
39604
+ );
39605
+ w.setParent(u, e), w.initChildren(e), e == null || e.add(w, b.Added), w.hydrateAncestors(), w.addSelfToProject(e), this.outputs.map((V, L) => {
39606
+ var Z;
39607
+ const $ = {
39608
+ id: I.UUID.uuid(),
39609
+ type: n.GenericReference,
39610
+ entityId: y,
39611
+ version: c,
39612
+ entityType: n.ReturnStatement
39613
+ }, C = {
39614
+ id: I.UUID.uuid(),
39615
+ version: I.UUID.uuid(),
39616
+ createdAt: (e == null ? void 0 : e.timestamp) || v().toISOString(),
39617
+ author: I.sessionAuthor,
39618
+ previousVersion: null,
39619
+ deleted: !1,
39620
+ type: n.ReturnDeclaration,
39621
+ name: V.name,
39622
+ description: V.description,
39623
+ readsValue: null,
39624
+ constant: !0,
39625
+ required: V.required,
39626
+ defaultValue: null,
39627
+ implements: V.toJSON(),
39628
+ isError: !1,
39629
+ index: L,
39630
+ dataType: null,
39631
+ parent: $
39632
+ }, U = O(
39633
+ C,
39634
+ this.project
39635
+ );
39636
+ U.setParent(w, e), U.initChildren(e), e == null || e.add(U, b.Added), U.hydrateAncestors(), U.addSelfToProject(e);
39637
+ const k = ((Z = V.dataType) == null ? void 0 : Z.clone(e, U)) || null;
39638
+ k && (e == null || e.add(k, b.Added)), U.setDataType(k);
39639
+ });
39640
+ }
39641
+ return e == null || e.attemptAutoclose("implement-as-function-declaration", this.id), u;
39642
+ }
39643
+ implementAsFunctionDeclaration(e = this.project.addChangeSet(
39490
39644
  new A(
39491
39645
  this.project,
39492
39646
  "",
@@ -39495,12 +39649,11 @@ This is likely an incorrect strategy, either the '${this.type}' entity doesn't n
39495
39649
  !0,
39496
39650
  "implement-as-function-declaration"
39497
39651
  )
39498
- ), r) {
39499
- var y;
39500
- const s = e || this.project, d = r || I.UUID.uuid(), o = I.UUID.uuid(), l = {
39652
+ ), t, r) {
39653
+ const s = t || this.project, d = r || I.UUID.uuid(), o = I.UUID.uuid(), l = {
39501
39654
  id: d,
39502
39655
  version: o,
39503
- createdAt: (t == null ? void 0 : t.timestamp) || v().toISOString(),
39656
+ createdAt: (e == null ? void 0 : e.timestamp) || v().toISOString(),
39504
39657
  author: I.sessionAuthor,
39505
39658
  previousVersion: null,
39506
39659
  deleted: !1,
@@ -39513,64 +39666,64 @@ This is likely an incorrect strategy, either the '${this.type}' entity doesn't n
39513
39666
  private: !1,
39514
39667
  implements: this.toJSON(),
39515
39668
  index: 0,
39516
- parent: ((y = this.parent) == null ? void 0 : y.toReference()) || null,
39669
+ parent: (s == null ? void 0 : s.toReference()) || null,
39517
39670
  x: 0,
39518
39671
  y: 0
39519
39672
  }, u = O(
39520
39673
  l,
39521
39674
  this.project
39522
39675
  );
39523
- if (u.setParent(s, t), u.initChildren(t), t == null || t.add(u, b.Added), u.hydrateAncestors(), u.addSelfToProject(t), this.inputs.map((c, m) => {
39524
- var L;
39525
- const T = {
39676
+ if (u.setParent(s, e), u.initChildren(e), e == null || e.add(u, b.Added), u.hydrateAncestors(), u.addSelfToProject(e), this.inputs.map((y, c) => {
39677
+ var V;
39678
+ const m = {
39526
39679
  id: I.UUID.uuid(),
39527
39680
  type: n.GenericReference,
39528
39681
  version: o,
39529
39682
  entityType: n.FunctionDeclaration,
39530
39683
  entityId: d
39531
- }, D = {
39684
+ }, T = {
39532
39685
  id: I.UUID.uuid(),
39533
39686
  version: I.UUID.uuid(),
39534
- createdAt: (t == null ? void 0 : t.timestamp) || v().toISOString(),
39687
+ createdAt: (e == null ? void 0 : e.timestamp) || v().toISOString(),
39535
39688
  author: I.sessionAuthor,
39536
39689
  previousVersion: null,
39537
39690
  deleted: !1,
39538
39691
  type: n.ArgumentDeclaration,
39539
- name: c.name,
39540
- required: c.required,
39541
- implements: c.toJSON(),
39692
+ name: y.name,
39693
+ required: y.required,
39694
+ implements: y.toJSON(),
39542
39695
  constant: !0,
39543
39696
  writesValues: [],
39544
39697
  defaultValue: null,
39545
- description: c.description,
39546
- index: m,
39698
+ description: y.description,
39699
+ index: c,
39547
39700
  dataType: null,
39548
- parent: T
39549
- }, w = O(
39550
- D,
39701
+ parent: m
39702
+ }, D = O(
39703
+ T,
39551
39704
  this.project
39552
39705
  );
39553
- w.setParent(u, t), w.initChildren(t), t == null || t.add(w, b.Added), w.hydrateAncestors(), w.addSelfToProject(t);
39554
- const V = ((L = c.dataType) == null ? void 0 : L.clone(t, w)) || null;
39555
- V && (t == null || t.add(V, b.Added)), w.setDataType(V);
39706
+ D.setParent(u, e), D.initChildren(e), e == null || e.add(D, b.Added), D.hydrateAncestors(), D.addSelfToProject(e);
39707
+ const w = ((V = y.dataType) == null ? void 0 : V.clone(e, D)) || null;
39708
+ w && (e == null || e.add(w, b.Added)), D.setDataType(w);
39556
39709
  }), this.outputs.length) {
39557
- const c = I.UUID.uuid(), m = I.UUID.uuid(), T = {
39710
+ const y = I.UUID.uuid(), c = I.UUID.uuid(), m = {
39558
39711
  id: I.UUID.uuid(),
39559
39712
  // id: newId + '--return-statement-parent-ref',
39560
39713
  type: n.GenericReference,
39561
39714
  version: o,
39562
39715
  entityType: n.FunctionDeclaration,
39563
39716
  entityId: d
39564
- }, D = {
39717
+ }, T = {
39565
39718
  id: I.UUID.uuid(),
39566
39719
  type: n.GenericReference,
39567
39720
  version: o,
39568
39721
  entityType: n.FunctionDeclaration,
39569
39722
  entityId: d
39570
- }, w = {
39571
- id: c,
39572
- version: m,
39573
- createdAt: (t == null ? void 0 : t.timestamp) || v().toISOString(),
39723
+ }, D = {
39724
+ id: y,
39725
+ version: c,
39726
+ createdAt: (e == null ? void 0 : e.timestamp) || v().toISOString(),
39574
39727
  author: I.sessionAuthor,
39575
39728
  previousVersion: null,
39576
39729
  deleted: !1,
@@ -39579,54 +39732,54 @@ This is likely an incorrect strategy, either the '${this.type}' entity doesn't n
39579
39732
  throws: null,
39580
39733
  calledBySuccess: [],
39581
39734
  calledByError: [],
39582
- calledByEntry: [D],
39583
- parent: T,
39735
+ calledByEntry: [T],
39736
+ parent: m,
39584
39737
  x: 0,
39585
39738
  y: 0
39586
- }, V = O(
39587
- w,
39739
+ }, w = O(
39740
+ D,
39588
39741
  this.project
39589
39742
  );
39590
- V.setParent(u, t), V.initChildren(t), t == null || t.add(V, b.Added), V.hydrateAncestors(), V.addSelfToProject(t), this.outputs.map((L, $) => {
39591
- var Y;
39592
- const B = {
39743
+ w.setParent(u, e), w.initChildren(e), e == null || e.add(w, b.Added), w.hydrateAncestors(), w.addSelfToProject(e), this.outputs.map((V, L) => {
39744
+ var Z;
39745
+ const $ = {
39593
39746
  id: I.UUID.uuid(),
39594
39747
  type: n.GenericReference,
39595
- entityId: c,
39596
- version: m,
39748
+ entityId: y,
39749
+ version: c,
39597
39750
  entityType: n.ReturnStatement
39598
- }, U = {
39751
+ }, C = {
39599
39752
  id: I.UUID.uuid(),
39600
39753
  version: I.UUID.uuid(),
39601
- createdAt: (t == null ? void 0 : t.timestamp) || v().toISOString(),
39754
+ createdAt: (e == null ? void 0 : e.timestamp) || v().toISOString(),
39602
39755
  author: I.sessionAuthor,
39603
39756
  previousVersion: null,
39604
39757
  deleted: !1,
39605
39758
  type: n.ReturnDeclaration,
39606
- name: L.name,
39607
- description: L.description,
39759
+ name: V.name,
39760
+ description: V.description,
39608
39761
  readsValue: null,
39609
39762
  constant: !0,
39610
- required: L.required,
39763
+ required: V.required,
39611
39764
  defaultValue: null,
39612
- implements: L.toJSON(),
39765
+ implements: V.toJSON(),
39613
39766
  isError: !1,
39614
- index: $,
39767
+ index: L,
39615
39768
  dataType: null,
39616
- parent: B
39617
- }, k = O(
39618
- U,
39769
+ parent: $
39770
+ }, U = O(
39771
+ C,
39619
39772
  this.project
39620
39773
  );
39621
- k.setParent(V, t), k.initChildren(t), t == null || t.add(k, b.Added), k.hydrateAncestors(), k.addSelfToProject(t);
39622
- const J = ((Y = L.dataType) == null ? void 0 : Y.clone(t, k)) || null;
39623
- J && (t == null || t.add(J, b.Added)), k.setDataType(J);
39774
+ U.setParent(w, e), U.initChildren(e), e == null || e.add(U, b.Added), U.hydrateAncestors(), U.addSelfToProject(e);
39775
+ const k = ((Z = V.dataType) == null ? void 0 : Z.clone(e, U)) || null;
39776
+ k && (e == null || e.add(k, b.Added)), U.setDataType(k);
39624
39777
  });
39625
39778
  }
39626
- return t == null || t.attemptAutoclose("implement-as-function-declaration", this.id), u;
39779
+ return e == null || e.attemptAutoclose("implement-as-function-declaration", this.id), u;
39627
39780
  }
39628
39781
  // This function returns an instance of an loop, which is an implementation of this loop declaration
39629
- implementAsLoop(e, t = this.project.addChangeSet(
39782
+ implementAsLoop(e = this.project.addChangeSet(
39630
39783
  new A(
39631
39784
  this.project,
39632
39785
  "",
@@ -39635,11 +39788,11 @@ This is likely an incorrect strategy, either the '${this.type}' entity doesn't n
39635
39788
  !0,
39636
39789
  "implement-as-loop"
39637
39790
  )
39638
- ), r) {
39639
- const s = e || this.project, d = r || I.UUID.uuid(), o = I.UUID.uuid(), l = {
39791
+ ), t, r) {
39792
+ const s = t || this.project, d = r || I.UUID.uuid(), o = I.UUID.uuid(), l = {
39640
39793
  id: d,
39641
39794
  version: o,
39642
- createdAt: (t == null ? void 0 : t.timestamp) || v().toISOString(),
39795
+ createdAt: (e == null ? void 0 : e.timestamp) || v().toISOString(),
39643
39796
  author: I.sessionAuthor,
39644
39797
  previousVersion: null,
39645
39798
  deleted: !1,
@@ -39663,10 +39816,10 @@ This is likely an incorrect strategy, either the '${this.type}' entity doesn't n
39663
39816
  l,
39664
39817
  this.project
39665
39818
  );
39666
- return u.setParent(s, t), u.initChildren(t), t == null || t.add(u, b.Added), u.hydrateAncestors(), u.addSelfToProject(t), u.afterAllChildrenInitialized(t), t == null || t.attemptAutoclose("implement-as-loop", this.id), u;
39819
+ return u.setParent(s, e), u.initChildren(e), e == null || e.add(u, b.Added), u.hydrateAncestors(), u.addSelfToProject(e), u.afterAllChildrenInitialized(e), e == null || e.attemptAutoclose("implement-as-loop", this.id), u;
39667
39820
  }
39668
39821
  // This function returns an instance of an operation, which is an implementation of this operation declaration
39669
- implementAsOperation(e, t = this.project.addChangeSet(
39822
+ implementAsOperation(e = this.project.addChangeSet(
39670
39823
  new A(
39671
39824
  this.project,
39672
39825
  "",
@@ -39675,11 +39828,11 @@ This is likely an incorrect strategy, either the '${this.type}' entity doesn't n
39675
39828
  !0,
39676
39829
  "implement-as-operation"
39677
39830
  )
39678
- ), r) {
39679
- const s = e || this.project, d = r || I.UUID.uuid(), o = I.UUID.uuid(), l = {
39831
+ ), t, r) {
39832
+ const s = t || this.project, d = r || I.UUID.uuid(), o = I.UUID.uuid(), l = {
39680
39833
  id: d,
39681
39834
  version: o,
39682
- createdAt: (t == null ? void 0 : t.timestamp) || v().toISOString(),
39835
+ createdAt: (e == null ? void 0 : e.timestamp) || v().toISOString(),
39683
39836
  author: I.sessionAuthor,
39684
39837
  previousVersion: null,
39685
39838
  deleted: !1,
@@ -39701,12 +39854,12 @@ This is likely an incorrect strategy, either the '${this.type}' entity doesn't n
39701
39854
  l,
39702
39855
  this.project
39703
39856
  );
39704
- return u.setParent(s, t), u.initChildren(t), t == null || t.add(u, b.Added), u.hydrateAncestors(), u.addSelfToProject(t), this.inputs.forEach((y, c) => {
39857
+ return u.setParent(s, e), u.initChildren(e), e == null || e.add(u, b.Added), u.hydrateAncestors(), u.addSelfToProject(e), this.inputs.forEach((y, c) => {
39705
39858
  const m = {
39706
39859
  id: I.UUID.uuid(),
39707
39860
  version: I.UUID.uuid(),
39708
39861
  type: n.InputMap,
39709
- createdAt: (t == null ? void 0 : t.timestamp) || v().toISOString(),
39862
+ createdAt: (e == null ? void 0 : e.timestamp) || v().toISOString(),
39710
39863
  author: I.sessionAuthor,
39711
39864
  previousVersion: null,
39712
39865
  deleted: !1,
@@ -39727,12 +39880,12 @@ This is likely an incorrect strategy, either the '${this.type}' entity doesn't n
39727
39880
  m,
39728
39881
  this.project
39729
39882
  );
39730
- T.setParent(u, t), T.initChildren(t), t == null || t.add(T, b.Added), T.hydrateAncestors(), T.addSelfToProject(t);
39883
+ T.setParent(u, e), T.initChildren(e), e == null || e.add(T, b.Added), T.hydrateAncestors(), T.addSelfToProject(e);
39731
39884
  }), this.outputs.forEach((y, c) => {
39732
39885
  const m = {
39733
39886
  id: I.UUID.uuid(),
39734
39887
  version: I.UUID.uuid(),
39735
- createdAt: (t == null ? void 0 : t.timestamp) || v().toISOString(),
39888
+ createdAt: (e == null ? void 0 : e.timestamp) || v().toISOString(),
39736
39889
  author: I.sessionAuthor,
39737
39890
  previousVersion: null,
39738
39891
  deleted: !1,
@@ -39752,10 +39905,10 @@ This is likely an incorrect strategy, either the '${this.type}' entity doesn't n
39752
39905
  m,
39753
39906
  this.project
39754
39907
  );
39755
- T.setParent(u, t), T.initChildren(t), t == null || t.add(T, b.Added), T.hydrateAncestors(), T.addSelfToProject(t);
39756
- }), u.afterAllChildrenInitialized(t), t == null || t.attemptAutoclose("implement-as-operation", this.id), u;
39908
+ T.setParent(u, e), T.initChildren(e), e == null || e.add(T, b.Added), T.hydrateAncestors(), T.addSelfToProject(e);
39909
+ }), u.afterAllChildrenInitialized(e), e == null || e.attemptAutoclose("implement-as-operation", this.id), u;
39757
39910
  }
39758
- implementAsCondition(e, t = this.project.addChangeSet(
39911
+ implementAsCondition(e = this.project.addChangeSet(
39759
39912
  new A(
39760
39913
  this.project,
39761
39914
  "",
@@ -39764,11 +39917,11 @@ This is likely an incorrect strategy, either the '${this.type}' entity doesn't n
39764
39917
  !0,
39765
39918
  "implement-as-condition"
39766
39919
  )
39767
- ), r) {
39768
- const s = e || this.project, d = r || I.UUID.uuid(), o = I.UUID.uuid(), l = {
39920
+ ), t, r) {
39921
+ const s = t || this.project, d = r || I.UUID.uuid(), o = I.UUID.uuid(), l = {
39769
39922
  id: d,
39770
39923
  version: o,
39771
- createdAt: (t == null ? void 0 : t.timestamp) || v().toISOString(),
39924
+ createdAt: (e == null ? void 0 : e.timestamp) || v().toISOString(),
39772
39925
  author: I.sessionAuthor,
39773
39926
  previousVersion: null,
39774
39927
  deleted: !1,
@@ -39787,12 +39940,12 @@ This is likely an incorrect strategy, either the '${this.type}' entity doesn't n
39787
39940
  l,
39788
39941
  this.project
39789
39942
  );
39790
- return u.setParent(s, t), u.initChildren(t), t == null || t.add(u, b.Added), u.hydrateAncestors(), u.addSelfToProject(t), this.inputs.forEach((y, c) => {
39943
+ return u.setParent(s, e), u.initChildren(e), e == null || e.add(u, b.Added), u.hydrateAncestors(), u.addSelfToProject(e), this.inputs.forEach((y, c) => {
39791
39944
  const m = {
39792
39945
  id: I.UUID.uuid(),
39793
39946
  version: I.UUID.uuid(),
39794
39947
  type: n.InputMap,
39795
- createdAt: (t == null ? void 0 : t.timestamp) || v().toISOString(),
39948
+ createdAt: (e == null ? void 0 : e.timestamp) || v().toISOString(),
39796
39949
  author: I.sessionAuthor,
39797
39950
  previousVersion: null,
39798
39951
  deleted: !1,
@@ -39813,8 +39966,8 @@ This is likely an incorrect strategy, either the '${this.type}' entity doesn't n
39813
39966
  m,
39814
39967
  this.project
39815
39968
  );
39816
- T.setParent(u, t), T.initChildren(t), t == null || t.add(T, b.Added), T.hydrateAncestors(), T.addSelfToProject(t);
39817
- }), u.afterAllChildrenInitialized(t), t == null || t.attemptAutoclose("implement-as-condition", this.id), u;
39969
+ T.setParent(u, e), T.initChildren(e), e == null || e.add(T, b.Added), T.hydrateAncestors(), T.addSelfToProject(e);
39970
+ }), u.afterAllChildrenInitialized(e), e == null || e.attemptAutoclose("implement-as-condition", this.id), u;
39818
39971
  }
39819
39972
  // Clear the errors of this entity and all its nested entities recursively
39820
39973
  clearErrors() {
@@ -40003,19 +40156,19 @@ const se = class se extends tt {
40003
40156
  static fromGenerationTarget(e, t) {
40004
40157
  let r = t;
40005
40158
  if (e.parent) {
40006
- const m = C(e.parent);
40159
+ const m = B(e.parent);
40007
40160
  r = t.get(m);
40008
40161
  }
40009
- const s = C(e.declaration), d = t.get(
40162
+ const s = B(e.declaration), d = t.get(
40010
40163
  s
40011
40164
  ), o = e.calledByEntry.map((m) => {
40012
- const T = C(m);
40165
+ const T = B(m);
40013
40166
  return t.get(T);
40014
40167
  }), l = e.calledBySuccess.map((m) => {
40015
- const T = C(m);
40168
+ const T = B(m);
40016
40169
  return t.get(T);
40017
40170
  }), u = e.calledByError.map((m) => {
40018
- const T = C(m);
40171
+ const T = B(m);
40019
40172
  return t.get(T);
40020
40173
  }), y = {
40021
40174
  id: e.id,
@@ -40350,7 +40503,7 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
40350
40503
  hydrateAncestors() {
40351
40504
  const e = [], t = [], r = [], s = [];
40352
40505
  if (this.initialData.parent) {
40353
- const d = C(
40506
+ const d = B(
40354
40507
  this.initialData.parent
40355
40508
  ), o = this.project.get(d);
40356
40509
  if (o)
@@ -40362,7 +40515,7 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
40362
40515
  } else
40363
40516
  throw new Error(`${this.type} with id '${this.id}' must have a 'parent'`);
40364
40517
  if (this.initialData.declaration) {
40365
- const d = C(
40518
+ const d = B(
40366
40519
  this.initialData.declaration
40367
40520
  ), o = this.project.get(
40368
40521
  d
@@ -40370,15 +40523,15 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
40370
40523
  o && (this.setDeclaration(o), e.push(o));
40371
40524
  }
40372
40525
  return this.initialData.calledByEntry.forEach((d) => {
40373
- const o = C(d), l = this.project.get(o);
40526
+ const o = B(d), l = this.project.get(o);
40374
40527
  l && (this.addEntryCaller(l, null), e.push(l));
40375
40528
  }), this.initialData.calledBySuccess.forEach((d) => {
40376
- const o = C(d), l = this.project.get(
40529
+ const o = B(d), l = this.project.get(
40377
40530
  o
40378
40531
  );
40379
40532
  l && (this.addSuccessCaller(l, null), e.push(l));
40380
40533
  }), this.initialData.calledByError.forEach((d) => {
40381
- const o = C(d), l = this.project.get(
40534
+ const o = B(d), l = this.project.get(
40382
40535
  o
40383
40536
  );
40384
40537
  l && (this.addErrorCaller(l, null), e.push(l));
@@ -41280,30 +41433,30 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
41280
41433
  required: w.required,
41281
41434
  parent: this.body.toReference(),
41282
41435
  writesValues: []
41283
- }, H = O(
41436
+ }, Y = O(
41284
41437
  he,
41285
41438
  this.project
41286
41439
  );
41287
- H.setParent(this.body, e), H.initChildren(e), e == null || e.add(
41288
- H,
41440
+ Y.setParent(this.body, e), Y.initChildren(e), e == null || e.add(
41441
+ Y,
41289
41442
  b.Added
41290
- ), H.addSelfToProject(e), r.push(H), $ = H;
41443
+ ), Y.addSelfToProject(e), r.push(Y), $ = Y;
41291
41444
  }
41292
- const B = this.body.inputs.find(
41445
+ const C = this.body.inputs.find(
41293
41446
  (de) => de.index === $.index && de !== $
41294
41447
  ), U = this.body.inputs.filter(
41295
41448
  (de) => de !== $
41296
41449
  );
41297
41450
  let k = $.index;
41298
- B && (k = Math.max(...U.map((de) => de.index)) + 1), $.index !== k && ($.metaSync({ index: k }, e), t.push($));
41299
- const J = $.getDataType(e);
41300
- let Y = J;
41451
+ C && (k = Math.max(...U.map((de) => de.index)) + 1), $.index !== k && ($.metaSync({ index: k }, e), t.push($));
41452
+ const Z = $.getDataType(e);
41453
+ let K = Z;
41301
41454
  if (V)
41302
- if (!J || !Tr(
41303
- J,
41455
+ if (!Z || !Tr(
41456
+ Z,
41304
41457
  V
41305
41458
  )) {
41306
- if (!Y) {
41459
+ if (!K) {
41307
41460
  const he = V.clone(
41308
41461
  e,
41309
41462
  $
@@ -41311,13 +41464,13 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
41311
41464
  e == null || e.add(
41312
41465
  he,
41313
41466
  b.Added
41314
- ), he.addSelfToProject(e), Y = he, r.push(he), t.push($);
41467
+ ), he.addSelfToProject(e), K = he, r.push(he), t.push($);
41315
41468
  }
41316
- const de = Y.merge(V, e);
41317
- de.self === Y ? V.remove({ ignoreUpstream: !1 }, e) : de.self === V && (Y.remove({ ignoreUpstream: !1 }, e), Y = V), Y.metaSync({ isList: !0 }, e);
41469
+ const de = K.merge(V, e);
41470
+ de.self === K ? V.remove({ ignoreUpstream: !1 }, e) : de.self === V && (K.remove({ ignoreUpstream: !1 }, e), K = V), K.metaSync({ isList: !0 }, e);
41318
41471
  } else
41319
- Y.isList || (Y.metaSync({ isList: !0 }, e), t.push(Y));
41320
- if (!V && !Y) {
41472
+ K.isList || (K.metaSync({ isList: !0 }, e), t.push(K));
41473
+ if (!V && !K) {
41321
41474
  const de = {
41322
41475
  id: I.UUID.uuid(),
41323
41476
  version: I.UUID.uuid(),
@@ -41716,12 +41869,12 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
41716
41869
  switch (this.declaration.id) {
41717
41870
  case X.List: {
41718
41871
  const w = this.body.inputs.find(($) => {
41719
- var B;
41720
- return ((B = $.implements) == null ? void 0 : B.id) === G[n.Loop][X.List].body.inputs.currentValue.id;
41872
+ var C;
41873
+ return ((C = $.implements) == null ? void 0 : C.id) === G[n.Loop][X.List].body.inputs.currentValue.id;
41721
41874
  }), V = this.inputs.find(
41722
41875
  ($) => {
41723
- var B;
41724
- return ((B = $.declaration) == null ? void 0 : B.id) === G[n.Loop][X.List].inputs.list.id;
41876
+ var C;
41877
+ return ((C = $.declaration) == null ? void 0 : C.id) === G[n.Loop][X.List].inputs.list.id;
41725
41878
  }
41726
41879
  );
41727
41880
  if (!V)
@@ -41735,7 +41888,7 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
41735
41888
  L && (!w.implements || w.implements.id !== L.id) && (w.setImplements(L, e), t.push(w));
41736
41889
  let U = w.getDataType(e);
41737
41890
  if (!U) {
41738
- const J = {
41891
+ const Z = {
41739
41892
  id: I.UUID.uuid(),
41740
41893
  version: I.UUID.uuid(),
41741
41894
  createdAt: (e == null ? void 0 : e.timestamp) || v().toISOString(),
@@ -41751,14 +41904,14 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
41751
41904
  andChildrenGroup: [],
41752
41905
  orChildrenGroup: [],
41753
41906
  parent: $.toReference()
41754
- }, Y = O(
41755
- J,
41907
+ }, K = O(
41908
+ Z,
41756
41909
  this.project
41757
41910
  );
41758
- Y.setParent($, e), Y.initChildren(e), e == null || e.add(
41759
- Y,
41911
+ K.setParent($, e), K.initChildren(e), e == null || e.add(
41912
+ K,
41760
41913
  b.Added
41761
- ), Y.addSelfToProject(e), r.push(Y), U = Y;
41914
+ ), K.addSelfToProject(e), r.push(K), U = K;
41762
41915
  }
41763
41916
  const k = V.getDataType(
41764
41917
  e
@@ -41783,17 +41936,17 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
41783
41936
  writesValues: [],
41784
41937
  dataType: null,
41785
41938
  parent: this.body.toReference()
41786
- }, B = O(
41939
+ }, C = O(
41787
41940
  $,
41788
41941
  this.project
41789
41942
  );
41790
- B.initChildren(e), B.setParent(this.body, e), e == null || e.add(
41791
- B,
41943
+ C.initChildren(e), C.setParent(this.body, e), e == null || e.add(
41944
+ C,
41792
41945
  b.Added
41793
- ), B.addSelfToProject(e), L && (!B.implements || B.implements.id !== L.id) && (B.setImplements(
41946
+ ), C.addSelfToProject(e), L && (!C.implements || C.implements.id !== L.id) && (C.setImplements(
41794
41947
  L,
41795
41948
  e
41796
- ), t.push(B)), r.push(B), this.currentValueArgumentDeclaration = B;
41949
+ ), t.push(C)), r.push(C), this.currentValueArgumentDeclaration = C;
41797
41950
  }
41798
41951
  break;
41799
41952
  }
@@ -41807,12 +41960,12 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
41807
41960
  }
41808
41961
  case X.ObjectKeys: {
41809
41962
  const w = this.body.inputs.find(($) => {
41810
- var B;
41811
- return ((B = $.implements) == null ? void 0 : B.id) === G[n.Loop][X.ObjectKeys].body.inputs.currentValue.id;
41963
+ var C;
41964
+ return ((C = $.implements) == null ? void 0 : C.id) === G[n.Loop][X.ObjectKeys].body.inputs.currentValue.id;
41812
41965
  });
41813
41966
  if (!this.inputs.find(($) => {
41814
- var B;
41815
- return ((B = $.declaration) == null ? void 0 : B.id) === G[n.Loop][X.ObjectKeys].inputs.object.id;
41967
+ var C;
41968
+ return ((C = $.declaration) == null ? void 0 : C.id) === G[n.Loop][X.ObjectKeys].inputs.object.id;
41816
41969
  }))
41817
41970
  break;
41818
41971
  const L = this.getCurrentValueBuiltInValueDescriptor();
@@ -41845,14 +41998,14 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
41845
41998
  andChildrenGroup: [],
41846
41999
  orChildrenGroup: [],
41847
42000
  parent: $.toReference()
41848
- }, J = O(
42001
+ }, Z = O(
41849
42002
  k,
41850
42003
  this.project
41851
42004
  );
41852
- J.setParent($, e), J.initChildren(e), e == null || e.add(
41853
- J,
42005
+ Z.setParent($, e), Z.initChildren(e), e == null || e.add(
42006
+ Z,
41854
42007
  b.Added
41855
- ), J.addSelfToProject(e), U = J;
42008
+ ), Z.addSelfToProject(e), U = Z;
41856
42009
  }
41857
42010
  } else {
41858
42011
  const $ = {
@@ -41873,27 +42026,27 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
41873
42026
  writesValues: [],
41874
42027
  dataType: null,
41875
42028
  parent: this.body.toReference()
41876
- }, B = O(
42029
+ }, C = O(
41877
42030
  $,
41878
42031
  this.project
41879
42032
  );
41880
- B.initChildren(e), B.setParent(this.body, e), e == null || e.add(
41881
- B,
42033
+ C.initChildren(e), C.setParent(this.body, e), e == null || e.add(
42034
+ C,
41882
42035
  b.Added
41883
- ), B.addSelfToProject(e), L && (!B.implements || B.implements.id !== L.id) && (B.setImplements(
42036
+ ), C.addSelfToProject(e), L && (!C.implements || C.implements.id !== L.id) && (C.setImplements(
41884
42037
  L,
41885
42038
  e
41886
- ), t.push(B)), r.push(B), this.currentValueArgumentDeclaration = B;
42039
+ ), t.push(C)), r.push(C), this.currentValueArgumentDeclaration = C;
41887
42040
  }
41888
42041
  break;
41889
42042
  }
41890
42043
  case X.ObjectValues: {
41891
42044
  const w = this.body.inputs.find(($) => {
41892
- var B;
41893
- return ((B = $.implements) == null ? void 0 : B.id) === G[n.Loop][X.ObjectValues].body.inputs.currentValue.id;
42045
+ var C;
42046
+ return ((C = $.implements) == null ? void 0 : C.id) === G[n.Loop][X.ObjectValues].body.inputs.currentValue.id;
41894
42047
  }), V = this.inputs.find(($) => {
41895
- var B;
41896
- return ((B = $.declaration) == null ? void 0 : B.id) === G[n.Loop][X.ObjectValues].inputs.object.id;
42048
+ var C;
42049
+ return ((C = $.declaration) == null ? void 0 : C.id) === G[n.Loop][X.ObjectValues].inputs.object.id;
41897
42050
  });
41898
42051
  if (!V)
41899
42052
  break;
@@ -41909,17 +42062,17 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
41909
42062
  ), t.push(w));
41910
42063
  let U = w.getDataType(e);
41911
42064
  if (U) {
41912
- const k = V.getDataType(e), J = ((m = k == null ? void 0 : k.entity) == null ? void 0 : m.properties) || [];
41913
- (T = U.orChildrenGroup) == null || T.forEach((Y) => {
41914
- const { updated: de, removed: he } = Y.remove(
42065
+ const k = V.getDataType(e), Z = ((m = k == null ? void 0 : k.entity) == null ? void 0 : m.properties) || [];
42066
+ (T = U.orChildrenGroup) == null || T.forEach((K) => {
42067
+ const { updated: de, removed: he } = K.remove(
41915
42068
  {
41916
42069
  ignoreUpstream: !1
41917
42070
  },
41918
42071
  e
41919
42072
  );
41920
42073
  t.push(...de), s.push(...he);
41921
- }), J.forEach((Y) => {
41922
- if (!Y.getDataType(e)) {
42074
+ }), Z.forEach((K) => {
42075
+ if (!K.getDataType(e)) {
41923
42076
  const he = {
41924
42077
  id: I.UUID.uuid(),
41925
42078
  version: I.UUID.uuid(),
@@ -41937,17 +42090,17 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
41937
42090
  orChildrenGroup: [],
41938
42091
  parentRelationType: At.OrDataTypeGroup,
41939
42092
  parent: U.toReference()
41940
- }, H = O(
42093
+ }, Y = O(
41941
42094
  he,
41942
42095
  this.project
41943
42096
  );
41944
- H.setParent(
42097
+ Y.setParent(
41945
42098
  U,
41946
42099
  e
41947
- ), H.initChildren(e), e == null || e.add(
41948
- H,
42100
+ ), Y.initChildren(e), e == null || e.add(
42101
+ Y,
41949
42102
  b.Added
41950
- ), H.addSelfToProject(e), r.push(H);
42103
+ ), Y.addSelfToProject(e), r.push(Y);
41951
42104
  }
41952
42105
  });
41953
42106
  } else {
@@ -41967,16 +42120,16 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
41967
42120
  andChildrenGroup: [],
41968
42121
  orChildrenGroup: [],
41969
42122
  parent: $.toReference()
41970
- }, J = O(
42123
+ }, Z = O(
41971
42124
  k,
41972
42125
  this.project
41973
42126
  );
41974
- J.setParent($, e), J.initChildren(e), e == null || e.add(
41975
- J,
42127
+ Z.setParent($, e), Z.initChildren(e), e == null || e.add(
42128
+ Z,
41976
42129
  b.Added
41977
- ), J.addSelfToProject(e), U = J;
41978
- const Y = V.getDataType(e);
41979
- (((c = Y == null ? void 0 : Y.entity) == null ? void 0 : c.properties) || []).forEach((he) => {
42130
+ ), Z.addSelfToProject(e), U = Z;
42131
+ const K = V.getDataType(e);
42132
+ (((c = K == null ? void 0 : K.entity) == null ? void 0 : c.properties) || []).forEach((he) => {
41980
42133
  if (!he.getDataType(e)) {
41981
42134
  const ne = {
41982
42135
  id: I.UUID.uuid(),
@@ -41994,13 +42147,13 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
41994
42147
  andChildrenGroup: [],
41995
42148
  orChildrenGroup: [],
41996
42149
  parentRelationType: At.OrDataTypeGroup,
41997
- parent: J.toReference()
42150
+ parent: Z.toReference()
41998
42151
  }, $t = O(
41999
42152
  ne,
42000
42153
  this.project
42001
42154
  );
42002
42155
  $t.setParent(
42003
- J,
42156
+ Z,
42004
42157
  e
42005
42158
  ), $t.initChildren(e), e == null || e.add(
42006
42159
  $t,
@@ -42028,28 +42181,28 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
42028
42181
  writesValues: [],
42029
42182
  dataType: null,
42030
42183
  parent: this.body.toReference()
42031
- }, B = O(
42184
+ }, C = O(
42032
42185
  $,
42033
42186
  this.project
42034
42187
  );
42035
- B.initChildren(e), B.setParent(this.body, e), e == null || e.add(
42036
- B,
42188
+ C.initChildren(e), C.setParent(this.body, e), e == null || e.add(
42189
+ C,
42037
42190
  b.Added
42038
- ), B.addSelfToProject(e), L && (!B.implements || B.implements.id !== L.id) && (B.setImplements(
42191
+ ), C.addSelfToProject(e), L && (!C.implements || C.implements.id !== L.id) && (C.setImplements(
42039
42192
  L,
42040
42193
  e
42041
- ), t.push(B)), r.push(B), this.currentValueArgumentDeclaration = B;
42194
+ ), t.push(C)), r.push(C), this.currentValueArgumentDeclaration = C;
42042
42195
  }
42043
42196
  break;
42044
42197
  }
42045
42198
  case X.String: {
42046
42199
  const w = this.body.inputs.find(($) => {
42047
- var B;
42048
- return ((B = $.implements) == null ? void 0 : B.id) === G[n.Loop][X.String].body.inputs.currentValue.id;
42200
+ var C;
42201
+ return ((C = $.implements) == null ? void 0 : C.id) === G[n.Loop][X.String].body.inputs.currentValue.id;
42049
42202
  });
42050
42203
  if (!this.inputs.find(($) => {
42051
- var B;
42052
- return ((B = $.declaration) == null ? void 0 : B.id) === G[n.Loop][X.String].inputs.string.id;
42204
+ var C;
42205
+ return ((C = $.declaration) == null ? void 0 : C.id) === G[n.Loop][X.String].inputs.string.id;
42053
42206
  }))
42054
42207
  break;
42055
42208
  const L = this.getCurrentValueBuiltInValueDescriptor();
@@ -42085,14 +42238,14 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
42085
42238
  andChildrenGroup: [],
42086
42239
  orChildrenGroup: [],
42087
42240
  parent: $.toReference()
42088
- }, J = O(
42241
+ }, Z = O(
42089
42242
  k,
42090
42243
  this.project
42091
42244
  );
42092
- J.setParent($, e), J.initChildren(e), e == null || e.add(
42093
- J,
42245
+ Z.setParent($, e), Z.initChildren(e), e == null || e.add(
42246
+ Z,
42094
42247
  b.Added
42095
- ), J.addSelfToProject(e), r.push(J), U = J;
42248
+ ), Z.addSelfToProject(e), r.push(Z), U = Z;
42096
42249
  }
42097
42250
  } else {
42098
42251
  const $ = {
@@ -42113,17 +42266,17 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
42113
42266
  writesValues: [],
42114
42267
  dataType: null,
42115
42268
  parent: this.body.toReference()
42116
- }, B = O(
42269
+ }, C = O(
42117
42270
  $,
42118
42271
  this.project
42119
42272
  );
42120
- B.initChildren(e), B.setParent(this.body, e), e == null || e.add(
42121
- B,
42273
+ C.initChildren(e), C.setParent(this.body, e), e == null || e.add(
42274
+ C,
42122
42275
  b.Added
42123
- ), B.addSelfToProject(e), L && (!B.implements || B.implements.id !== L.id) && (B.setImplements(
42276
+ ), C.addSelfToProject(e), L && (!C.implements || C.implements.id !== L.id) && (C.setImplements(
42124
42277
  L,
42125
42278
  e
42126
- ), t.push(B)), r.push(B), this.currentValueArgumentDeclaration = B;
42279
+ ), t.push(C)), r.push(C), this.currentValueArgumentDeclaration = C;
42127
42280
  }
42128
42281
  break;
42129
42282
  }
@@ -42526,23 +42679,23 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
42526
42679
  } = this.syncBodyArgumentsDeclarations(e);
42527
42680
  t.push(...V), r.push(...L), s.push(...$);
42528
42681
  const {
42529
- updated: B,
42682
+ updated: C,
42530
42683
  added: U,
42531
42684
  removed: k
42532
42685
  } = this.syncBodyInputIndexes(e);
42533
- t.push(...B), r.push(...U), s.push(...k);
42686
+ t.push(...C), r.push(...U), s.push(...k);
42534
42687
  const {
42535
- updated: J,
42536
- added: Y,
42688
+ updated: Z,
42689
+ added: K,
42537
42690
  removed: de
42538
42691
  } = this.syncOutputsDeclarations(e);
42539
- t.push(...J), r.push(...Y), s.push(...de);
42692
+ t.push(...Z), r.push(...K), s.push(...de);
42540
42693
  const {
42541
42694
  updated: he,
42542
- added: H,
42695
+ added: Y,
42543
42696
  removed: ne
42544
42697
  } = this.syncOutputMaps(e);
42545
- return t.push(...he), r.push(...H), s.push(...ne), e == null || e.attemptAutoclose("sync-children", this.id), {
42698
+ return t.push(...he), r.push(...Y), s.push(...ne), e == null || e.attemptAutoclose("sync-children", this.id), {
42546
42699
  self: this,
42547
42700
  updated: p(t),
42548
42701
  added: p(r),
@@ -42660,22 +42813,22 @@ const $e = class $e extends tt {
42660
42813
  static fromGenerationTarget(e, t) {
42661
42814
  let r = t;
42662
42815
  if (e.parent) {
42663
- const c = C(e.parent);
42816
+ const c = B(e.parent);
42664
42817
  r = t.get(c);
42665
42818
  }
42666
42819
  const s = e.calledByEntry.map((c) => {
42667
- const m = C(c);
42820
+ const m = B(c);
42668
42821
  return t.get(m);
42669
42822
  }), d = e.calledBySuccess.map((c) => {
42670
- const m = C(c);
42823
+ const m = B(c);
42671
42824
  return t.get(m);
42672
42825
  }), o = e.calledByError.map((c) => {
42673
- const m = C(c);
42826
+ const m = B(c);
42674
42827
  return t.get(m);
42675
42828
  });
42676
42829
  let l;
42677
42830
  if (e.declaration) {
42678
- const c = C(e.declaration);
42831
+ const c = B(e.declaration);
42679
42832
  l = t.get(
42680
42833
  c
42681
42834
  );
@@ -42960,7 +43113,7 @@ If an entity is called by another, they must be in the same scope, which means t
42960
43113
  hydrateAncestors() {
42961
43114
  const e = [], t = [], r = [], s = [];
42962
43115
  if (this.initialData.parent) {
42963
- const d = C(
43116
+ const d = B(
42964
43117
  this.initialData.parent
42965
43118
  ), o = this.project.get(d);
42966
43119
  if (o)
@@ -42974,7 +43127,7 @@ If an entity is called by another, they must be in the same scope, which means t
42974
43127
  `${zt(this.type)} with id '${this.id}' is missing a parent reference`
42975
43128
  );
42976
43129
  if (this.initialData.declaration) {
42977
- const d = C(
43130
+ const d = B(
42978
43131
  this.initialData.declaration
42979
43132
  ), o = this.project.get(
42980
43133
  d
@@ -42982,15 +43135,15 @@ If an entity is called by another, they must be in the same scope, which means t
42982
43135
  o && (this.setDeclaration(o), e.push(o));
42983
43136
  }
42984
43137
  return this.initialData.calledByEntry.forEach((d) => {
42985
- const o = C(d), l = this.project.get(o);
43138
+ const o = B(d), l = this.project.get(o);
42986
43139
  l && (this.addEntryCaller(l, null), e.push(l));
42987
43140
  }), this.initialData.calledBySuccess.forEach((d) => {
42988
- const o = C(d), l = this.project.get(
43141
+ const o = B(d), l = this.project.get(
42989
43142
  o
42990
43143
  );
42991
43144
  l && (this.addSuccessCaller(l, null), e.push(l));
42992
43145
  }), this.initialData.calledByError.forEach((d) => {
42993
- const o = C(d), l = this.project.get(
43146
+ const o = B(d), l = this.project.get(
42994
43147
  o
42995
43148
  );
42996
43149
  l && (this.addErrorCaller(l, null), e.push(l));
@@ -43720,28 +43873,28 @@ function JS(i) {
43720
43873
  const s = [...Pi(i)];
43721
43874
  if (i.id === "random-company-employee-test-variable-id") {
43722
43875
  const l = fe({
43723
- id: `${i.id}--${Z.PropertyImplementsNonAbstact}`,
43876
+ id: `${i.id}--${J.PropertyImplementsNonAbstact}`,
43724
43877
  message: `Property "${j(i, i.project)}" with id "${i.id}" implements a non-abstract property "${j(
43725
43878
  i,
43726
43879
  i.project
43727
43880
  )}" with id "${i.id}".`,
43728
43881
  issue: null,
43729
43882
  severity: R.Error,
43730
- code: Z.PropertyImplementsNonAbstact,
43883
+ code: J.PropertyImplementsNonAbstact,
43731
43884
  entity: i
43732
43885
  });
43733
43886
  s.push(l.error);
43734
43887
  }
43735
43888
  if (i.id === "company-dto-variable-one-id") {
43736
43889
  const l = fe({
43737
- id: `${i.id}--${Z.PropertyImplementsNonAbstact}`,
43890
+ id: `${i.id}--${J.PropertyImplementsNonAbstact}`,
43738
43891
  message: `Property "${j(i, i.project)}" with id "${i.id}" implements a non-abstract property "${j(
43739
43892
  i,
43740
43893
  i.project
43741
43894
  )}" with id "${i.id}".`,
43742
43895
  issue: null,
43743
43896
  severity: R.Error,
43744
- code: Z.PropertyImplementsNonAbstact,
43897
+ code: J.PropertyImplementsNonAbstact,
43745
43898
  entity: i
43746
43899
  });
43747
43900
  s.push(l.error);
@@ -43755,14 +43908,14 @@ function qS(i) {
43755
43908
  const s = [...Pi(i)];
43756
43909
  if (i.id === "exec-sequentially-result-variable-id") {
43757
43910
  const o = fe({
43758
- id: `${i.id}--${Z.PropertyImplementsNonAbstact}`,
43911
+ id: `${i.id}--${J.PropertyImplementsNonAbstact}`,
43759
43912
  message: `Property "${j(i, i.project)}" with id "${i.id}" implements a non-abstract property "${j(
43760
43913
  i,
43761
43914
  i.project
43762
43915
  )}" with id "${i.id}".`,
43763
43916
  issue: null,
43764
43917
  severity: R.Error,
43765
- code: Z.PropertyImplementsNonAbstact,
43918
+ code: J.PropertyImplementsNonAbstact,
43766
43919
  entity: i
43767
43920
  });
43768
43921
  s.push(o.error);
@@ -43817,24 +43970,24 @@ const Oe = class Oe extends tt {
43817
43970
  static fromGenerationTarget(e, t) {
43818
43971
  let r = t;
43819
43972
  if (e.parent) {
43820
- const T = C(e.parent);
43973
+ const T = B(e.parent);
43821
43974
  r = t.get(T);
43822
43975
  }
43823
- const s = C(e.declaration), d = t.get(
43976
+ const s = B(e.declaration), d = t.get(
43824
43977
  s
43825
43978
  ), o = e.calledByEntry.map((T) => {
43826
- const D = C(T);
43979
+ const D = B(T);
43827
43980
  return t.get(D);
43828
43981
  }), l = e.calledBySuccess.map((T) => {
43829
- const D = C(T);
43982
+ const D = B(T);
43830
43983
  return t.get(D);
43831
43984
  }), u = e.calledByError.map((T) => {
43832
- const D = C(T);
43985
+ const D = B(T);
43833
43986
  return t.get(D);
43834
43987
  });
43835
43988
  let y = null;
43836
43989
  if (e.readsValue) {
43837
- const T = C(e.readsValue);
43990
+ const T = B(e.readsValue);
43838
43991
  y = t.get(
43839
43992
  T
43840
43993
  );
@@ -44138,7 +44291,7 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
44138
44291
  hydrateAncestors() {
44139
44292
  const e = [], t = [], r = [], s = [];
44140
44293
  if (this.initialData.parent) {
44141
- const d = C(
44294
+ const d = B(
44142
44295
  this.initialData.parent
44143
44296
  ), o = this.project.get(d);
44144
44297
  if (o)
@@ -44150,7 +44303,7 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
44150
44303
  } else
44151
44304
  throw new Error(`${this.type} with id '${this.id}' must have a 'parent'`);
44152
44305
  if (this.initialData.readsValue) {
44153
- const d = C(
44306
+ const d = B(
44154
44307
  this.initialData.readsValue
44155
44308
  ), o = this.project.get(
44156
44309
  d
@@ -44158,7 +44311,7 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
44158
44311
  o && (this.setValueWriter(o), e.push(o));
44159
44312
  }
44160
44313
  if (this.initialData.declaration) {
44161
- const d = C(
44314
+ const d = B(
44162
44315
  this.initialData.declaration
44163
44316
  ), o = this.project.get(
44164
44317
  d
@@ -44166,15 +44319,15 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
44166
44319
  o && (this.setDeclaration(o), e.push(o));
44167
44320
  }
44168
44321
  return this.initialData.calledByEntry.forEach((d) => {
44169
- const o = C(d), l = this.project.get(o);
44322
+ const o = B(d), l = this.project.get(o);
44170
44323
  l && (this.addEntryCaller(l, null), e.push(l));
44171
44324
  }), this.initialData.calledBySuccess.forEach((d) => {
44172
- const o = C(d), l = this.project.get(
44325
+ const o = B(d), l = this.project.get(
44173
44326
  o
44174
44327
  );
44175
44328
  l && (this.addSuccessCaller(l, null), e.push(l));
44176
44329
  }), this.initialData.calledByError.forEach((d) => {
44177
- const o = C(d), l = this.project.get(
44330
+ const o = B(d), l = this.project.get(
44178
44331
  o
44179
44332
  );
44180
44333
  l && (this.addErrorCaller(l, null), e.push(l));
@@ -44198,7 +44351,7 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
44198
44351
  "after-all-children-initialized"
44199
44352
  )
44200
44353
  )) {
44201
- var B;
44354
+ var C;
44202
44355
  const t = [], r = [], s = [], d = [];
44203
44356
  this.initialized = !0, this.captureVersion();
44204
44357
  const {
@@ -44221,16 +44374,16 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
44221
44374
  removed: L,
44222
44375
  affected: $
44223
44376
  } = this.generateUnusedInternalCalls(e);
44224
- if (r.push(...w), t.push(...V), s.push(...L), d.push(...$), !this.declaration.dataType || (B = this.declaration.dataType) != null && B.inferred) {
44377
+ if (r.push(...w), t.push(...V), s.push(...L), d.push(...$), !this.declaration.dataType || (C = this.declaration.dataType) != null && C.inferred) {
44225
44378
  const {
44226
44379
  added: U,
44227
44380
  updated: k,
44228
- removed: J,
44229
- affected: Y
44381
+ removed: Z,
44382
+ affected: K
44230
44383
  } = this.declaration.inferDataTypeAndSyncInstancesInputsAndOutputs(
44231
44384
  e
44232
44385
  );
44233
- r.push(...U), t.push(...k), s.push(...J), d.push(...Y);
44386
+ r.push(...U), t.push(...k), s.push(...Z), d.push(...K);
44234
44387
  }
44235
44388
  return e == null || e.attemptAutoclose("after-all-children-initialized", this.id), {
44236
44389
  updated: p(t),
@@ -45223,7 +45376,7 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
45223
45376
  var T, D, w, V, L;
45224
45377
  return (((T = c.declaration) == null ? void 0 : T.id) || ((w = (D = c.initialData) == null ? void 0 : D.declaration) == null ? void 0 : w.entityId) || ((L = (V = c.initialData) == null ? void 0 : V.declaration) == null ? void 0 : L.id)) === u.id;
45225
45378
  })).map((u) => {
45226
- const y = u.createInternalCall(this);
45379
+ const y = u.createInternalCall(e, this);
45227
45380
  return e == null || e.add(y, b.Added), y.suggestion = !0, this.addInternalCall(y), y;
45228
45381
  });
45229
45382
  else
@@ -45397,22 +45550,22 @@ const Ve = class Ve extends tt {
45397
45550
  static fromGenerationTarget(e, t) {
45398
45551
  let r = t;
45399
45552
  if (e.parent) {
45400
- const c = C(e.parent);
45553
+ const c = B(e.parent);
45401
45554
  r = t.get(c);
45402
45555
  }
45403
45556
  const s = e.calledByEntry.map((c) => {
45404
- const m = C(c);
45557
+ const m = B(c);
45405
45558
  return t.get(m);
45406
45559
  }), d = e.calledBySuccess.map((c) => {
45407
- const m = C(c);
45560
+ const m = B(c);
45408
45561
  return t.get(m);
45409
45562
  }), o = e.calledByError.map((c) => {
45410
- const m = C(c);
45563
+ const m = B(c);
45411
45564
  return t.get(m);
45412
45565
  });
45413
45566
  let l = null;
45414
45567
  if (e.readsValue) {
45415
- const c = C(e.readsValue);
45568
+ const c = B(e.readsValue);
45416
45569
  l = t.get(
45417
45570
  c
45418
45571
  );
@@ -45703,7 +45856,7 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
45703
45856
  hydrateAncestors() {
45704
45857
  const e = [], t = [], r = [], s = [];
45705
45858
  if (this.initialData.parent) {
45706
- const d = C(
45859
+ const d = B(
45707
45860
  this.initialData.parent
45708
45861
  ), o = this.project.get(d);
45709
45862
  if (o)
@@ -45715,7 +45868,7 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
45715
45868
  } else
45716
45869
  throw new Error(`${this.type} with id '${this.id}' must have a 'parent'`);
45717
45870
  if (this.initialData.readsValue) {
45718
- const d = C(
45871
+ const d = B(
45719
45872
  this.initialData.readsValue
45720
45873
  ), o = this.project.get(
45721
45874
  d
@@ -45723,15 +45876,15 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
45723
45876
  o && (this.setValueWriter(o), e.push(o));
45724
45877
  }
45725
45878
  return this.initialData.calledByEntry.forEach((d) => {
45726
- const o = C(d), l = this.project.get(o);
45879
+ const o = B(d), l = this.project.get(o);
45727
45880
  l && (this.addEntryCaller(l, null), e.push(l));
45728
45881
  }), this.initialData.calledBySuccess.forEach((d) => {
45729
- const o = C(d), l = this.project.get(
45882
+ const o = B(d), l = this.project.get(
45730
45883
  o
45731
45884
  );
45732
45885
  l && (this.addSuccessCaller(l, null), e.push(l));
45733
45886
  }), this.initialData.calledByError.forEach((d) => {
45734
- const o = C(d), l = this.project.get(
45887
+ const o = B(d), l = this.project.get(
45735
45888
  o
45736
45889
  );
45737
45890
  l && (this.addErrorCaller(l, null), e.push(l));
@@ -45779,12 +45932,12 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
45779
45932
  } = this.generateUnusedInternalCalls(e);
45780
45933
  if (r.push(...w), t.push(...V), s.push(...L), d.push(...$), !this.dataType || this.dataType.inferred) {
45781
45934
  const {
45782
- added: B,
45935
+ added: C,
45783
45936
  updated: U,
45784
45937
  removed: k,
45785
- affected: J
45938
+ affected: Z
45786
45939
  } = this.inferDataTypeAndSyncInstancesInputsAndOutputs(e);
45787
- r.push(...B), t.push(...U), s.push(...k), d.push(...J);
45940
+ r.push(...C), t.push(...U), s.push(...k), d.push(...Z);
45788
45941
  }
45789
45942
  return e == null || e.attemptAutoclose("after-all-children-initialized", this.id), {
45790
45943
  updated: p(t),
@@ -46072,7 +46225,7 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
46072
46225
  "infer-data-type-and-sync-instances-inputs-and-outputs"
46073
46226
  )
46074
46227
  )) {
46075
- var L, $, B, U;
46228
+ var L, $, C, U;
46076
46229
  const t = [], r = [], s = [], d = [];
46077
46230
  if (!this.dataType) {
46078
46231
  const k = O(
@@ -46106,20 +46259,20 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
46106
46259
  if (this.readsValue) {
46107
46260
  const k = (L = this.readsValue.getDataType(e)) == null ? void 0 : L.clone(e);
46108
46261
  if (k) {
46109
- const J = ($ = this.dataType) == null ? void 0 : $.merge(
46262
+ const Z = ($ = this.dataType) == null ? void 0 : $.merge(
46110
46263
  k,
46111
46264
  e
46112
46265
  );
46113
- this.dataType && (J == null ? void 0 : J.self.id) !== this.dataType.id && this.dataType.remove({ ignoreUpstream: !1 }, e), k.id !== ((B = J == null ? void 0 : J.self) == null ? void 0 : B.id) && k.remove({ ignoreUpstream: !1 }, e), J != null && J.self && (J.self.metaSync(
46266
+ this.dataType && (Z == null ? void 0 : Z.self.id) !== this.dataType.id && this.dataType.remove({ ignoreUpstream: !1 }, e), k.id !== ((C = Z == null ? void 0 : Z.self) == null ? void 0 : C.id) && k.remove({ ignoreUpstream: !1 }, e), Z != null && Z.self && (Z.self.metaSync(
46114
46267
  {
46115
46268
  inferred: !0,
46116
46269
  like: !0
46117
46270
  },
46118
46271
  e
46119
46272
  ), e == null || e.add(
46120
- J.self,
46273
+ Z.self,
46121
46274
  b.Added
46122
- ), this.setDataType(J.self));
46275
+ ), this.setDataType(Z.self));
46123
46276
  }
46124
46277
  return e == null || e.attemptAutoclose(
46125
46278
  "infer-data-type-and-sync-instances-inputs-and-outputs",
@@ -46144,7 +46297,7 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
46144
46297
  ]), l = [];
46145
46298
  if (o.forEach((k) => {
46146
46299
  l.find(
46147
- (Y) => j(Y, this.project) === j(k, this.project)
46300
+ (K) => j(K, this.project) === j(k, this.project)
46148
46301
  ) || l.push(k);
46149
46302
  }), !l.length)
46150
46303
  return e == null || e.attemptAutoclose(
@@ -46195,19 +46348,19 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
46195
46348
  } = this.generateUnusedOutputs(e);
46196
46349
  return t.push(...D), r.push(...T), s.push(...w), d.push(...V), this.variableInstances.forEach((k) => {
46197
46350
  const {
46198
- updated: J,
46199
- added: Y,
46351
+ updated: Z,
46352
+ added: K,
46200
46353
  removed: de,
46201
46354
  affected: he
46202
46355
  } = k.generateUnusedInputs(e);
46203
- t.push(...Y), r.push(...J), s.push(...de), d.push(...he);
46356
+ t.push(...K), r.push(...Z), s.push(...de), d.push(...he);
46204
46357
  const {
46205
- updated: H,
46358
+ updated: Y,
46206
46359
  added: ne,
46207
46360
  removed: $t,
46208
46361
  affected: wr
46209
46362
  } = k.generateUnusedOutputs(e);
46210
- t.push(...ne), r.push(...H), s.push(...$t), d.push(...wr);
46363
+ t.push(...ne), r.push(...Y), s.push(...$t), d.push(...wr);
46211
46364
  }), e == null || e.attemptAutoclose(
46212
46365
  "infer-data-type-and-sync-instances-inputs-and-outputs",
46213
46366
  this.id
@@ -46716,7 +46869,7 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
46716
46869
  "clone-entity"
46717
46870
  )
46718
46871
  ), t = null, r = null, s = !0) {
46719
- var w, V, L, $, B;
46872
+ var w, V, L, $, C;
46720
46873
  let d = ct(t, this);
46721
46874
  const o = this.toJSON(), l = r || I.UUID.uuid();
46722
46875
  o.inputs = [], o.id = l, o.version = I.UUID.uuid(), o.createdAt = (e == null ? void 0 : e.timestamp) || v().toISOString(), o.author = (e == null ? void 0 : e.author) || "1", o.previousVersion = null, o.deleted = !1;
@@ -46759,7 +46912,7 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
46759
46912
  )
46760
46913
  );
46761
46914
  u.outputs = T;
46762
- const D = (B = this.internalCalls) == null ? void 0 : B.map(
46915
+ const D = (C = this.internalCalls) == null ? void 0 : C.map(
46763
46916
  (U) => U.clone(
46764
46917
  e,
46765
46918
  u,
@@ -47004,7 +47157,7 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
47004
47157
  var T, D, w, V, L;
47005
47158
  return (((T = c.declaration) == null ? void 0 : T.id) || ((w = (D = c.initialData) == null ? void 0 : D.declaration) == null ? void 0 : w.entityId) || ((L = (V = c.initialData) == null ? void 0 : V.declaration) == null ? void 0 : L.id)) === u.id;
47006
47159
  })).map((u) => {
47007
- const y = u.createInternalCall(this);
47160
+ const y = u.createInternalCall(e, this);
47008
47161
  return e == null || e.add(y, b.Added), y.suggestion = !0, this.addInternalCall(y), y;
47009
47162
  });
47010
47163
  else
@@ -47139,14 +47292,14 @@ function zS(i) {
47139
47292
  const s = [...Pi(i)];
47140
47293
  if (i.id === "search-person-by-id-id") {
47141
47294
  const o = fe({
47142
- id: `${i.id}--${Z.PropertyImplementsNonAbstact}`,
47295
+ id: `${i.id}--${J.PropertyImplementsNonAbstact}`,
47143
47296
  message: `Property "${j(i, i.project)}" with id "${i.id}" implements a non-abstract property "${j(
47144
47297
  i,
47145
47298
  i.project
47146
47299
  )}" with id "${i.id}".`,
47147
47300
  issue: null,
47148
47301
  severity: R.Error,
47149
- code: Z.PropertyImplementsNonAbstact,
47302
+ code: J.PropertyImplementsNonAbstact,
47150
47303
  entity: i
47151
47304
  });
47152
47305
  s.push(o.error);
@@ -47200,17 +47353,17 @@ const Se = class Se extends tt {
47200
47353
  static fromGenerationTarget(e, t) {
47201
47354
  let r = t;
47202
47355
  if (e.parent) {
47203
- const y = C(e.parent);
47356
+ const y = B(e.parent);
47204
47357
  r = t.get(y);
47205
47358
  }
47206
47359
  const s = e.calledByEntry.map((y) => {
47207
- const c = C(y);
47360
+ const c = B(y);
47208
47361
  return t.get(c);
47209
47362
  }), d = e.calledBySuccess.map((y) => {
47210
- const c = C(y);
47363
+ const c = B(y);
47211
47364
  return t.get(c);
47212
47365
  }), o = e.calledByError.map((y) => {
47213
- const c = C(y);
47366
+ const c = B(y);
47214
47367
  return t.get(c);
47215
47368
  }), l = {
47216
47369
  id: e.id,
@@ -47459,7 +47612,7 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
47459
47612
  hydrateAncestors() {
47460
47613
  const e = [], t = [], r = [], s = [];
47461
47614
  if (this.initialData.parent) {
47462
- const d = C(
47615
+ const d = B(
47463
47616
  this.initialData.parent
47464
47617
  ), o = this.project.get(d);
47465
47618
  if (o)
@@ -47471,15 +47624,15 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
47471
47624
  } else
47472
47625
  throw new Error(`${this.type} with id '${this.id}' must have a 'parent'`);
47473
47626
  return this.initialData.calledByEntry.forEach((d) => {
47474
- const o = C(d), l = this.project.get(o);
47627
+ const o = B(d), l = this.project.get(o);
47475
47628
  l && (this.addEntryCaller(l, null), e.push(l));
47476
47629
  }), this.initialData.calledBySuccess.forEach((d) => {
47477
- const o = C(d), l = this.project.get(
47630
+ const o = B(d), l = this.project.get(
47478
47631
  o
47479
47632
  );
47480
47633
  l && (this.addSuccessCaller(l, null), e.push(l));
47481
47634
  }), this.initialData.calledByError.forEach((d) => {
47482
- const o = C(d), l = this.project.get(
47635
+ const o = B(d), l = this.project.get(
47483
47636
  o
47484
47637
  );
47485
47638
  l && (this.addErrorCaller(l, null), e.push(l));
@@ -48216,7 +48369,7 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
48216
48369
  "clone-entity"
48217
48370
  )
48218
48371
  ), t = null, r = null, s = !0) {
48219
- var V, L, $, B;
48372
+ var V, L, $, C;
48220
48373
  let d = ct(t, this);
48221
48374
  const o = this.toJSON(), l = r || I.UUID.uuid();
48222
48375
  o.inputs = [];
@@ -48254,7 +48407,7 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
48254
48407
  )
48255
48408
  );
48256
48409
  c.inputs = D;
48257
- const w = (B = this.outputs) == null ? void 0 : B.map(
48410
+ const w = (C = this.outputs) == null ? void 0 : C.map(
48258
48411
  (U, k) => U.clone(
48259
48412
  e,
48260
48413
  c,
@@ -48633,7 +48786,7 @@ const je = class je extends tt {
48633
48786
  hydrateAncestors() {
48634
48787
  const e = [], t = [], r = [], s = [];
48635
48788
  if (this.initialData.parent) {
48636
- const d = C(
48789
+ const d = B(
48637
48790
  this.initialData.parent
48638
48791
  ), o = this.project.get(d);
48639
48792
  if (o)
@@ -49233,16 +49386,16 @@ const Ce = class Ce extends tt {
49233
49386
  Then creates a new instance of the entity
49234
49387
  */
49235
49388
  static fromGenerationTarget(e, t) {
49236
- const r = C(e.parent), s = t.get(r), d = C(e.declaration), o = t.get(
49389
+ const r = B(e.parent), s = t.get(r), d = B(e.declaration), o = t.get(
49237
49390
  d
49238
49391
  ), l = e.calledByEntry.map((T) => {
49239
- const D = C(T);
49392
+ const D = B(T);
49240
49393
  return t.get(D);
49241
49394
  }), u = e.calledBySuccess.map((T) => {
49242
- const D = C(T);
49395
+ const D = B(T);
49243
49396
  return t.get(D);
49244
49397
  }), y = e.calledByError.map((T) => {
49245
- const D = C(T);
49398
+ const D = B(T);
49246
49399
  return t.get(D);
49247
49400
  }), c = {
49248
49401
  id: e.id,
@@ -49302,7 +49455,7 @@ const Ce = class Ce extends tt {
49302
49455
  t
49303
49456
  );
49304
49457
  r = d.modifiedData;
49305
- const o = C(
49458
+ const o = B(
49306
49459
  r.parent
49307
49460
  ), l = t.get(o);
49308
49461
  if (l) {
@@ -49607,7 +49760,7 @@ This is likely an incorrect strategy, either the '${this.type}' entity doesn't n
49607
49760
  hydrateAncestors() {
49608
49761
  const e = [], t = [], r = [], s = [];
49609
49762
  if (this.initialData.parent) {
49610
- const d = C(
49763
+ const d = B(
49611
49764
  this.initialData.parent
49612
49765
  ), o = this.project.get(d);
49613
49766
  if (o)
@@ -49619,7 +49772,7 @@ This is likely an incorrect strategy, either the '${this.type}' entity doesn't n
49619
49772
  } else
49620
49773
  throw new Error(`${this.type} with id '${this.id}' must have a 'parent'`);
49621
49774
  if (this.initialData.declaration) {
49622
- const d = C(
49775
+ const d = B(
49623
49776
  this.initialData.declaration
49624
49777
  ), o = this.project.get(
49625
49778
  d
@@ -49627,15 +49780,15 @@ This is likely an incorrect strategy, either the '${this.type}' entity doesn't n
49627
49780
  o && (this.setDeclaration(o), e.push(o));
49628
49781
  }
49629
49782
  return this.initialData.calledByEntry.forEach((d) => {
49630
- const o = C(d), l = this.project.get(o);
49783
+ const o = B(d), l = this.project.get(o);
49631
49784
  l && (this.addEntryCaller(l, null), e.push(l));
49632
49785
  }), this.initialData.calledBySuccess.forEach((d) => {
49633
- const o = C(d), l = this.project.get(
49786
+ const o = B(d), l = this.project.get(
49634
49787
  o
49635
49788
  );
49636
49789
  l && (this.addSuccessCaller(l, null), e.push(l));
49637
49790
  }), this.initialData.calledByError.forEach((d) => {
49638
- const o = C(d), l = this.project.get(
49791
+ const o = B(d), l = this.project.get(
49639
49792
  o
49640
49793
  );
49641
49794
  l && (this.addErrorCaller(l, null), e.push(l));
@@ -50609,14 +50762,14 @@ function eZ(i) {
50609
50762
  const r = [];
50610
50763
  if (i.id === "exec-sequentially-argument-map-id") {
50611
50764
  const s = fe({
50612
- id: `${i.id}--${Z.PropertyImplementsNonAbstact}`,
50765
+ id: `${i.id}--${J.PropertyImplementsNonAbstact}`,
50613
50766
  message: `Property "${j(i, i.project)}" with id "${i.id}" implements a non-abstract property "${j(
50614
50767
  i,
50615
50768
  i.project
50616
50769
  )}" with id "${i.id}".`,
50617
50770
  issue: null,
50618
50771
  severity: R.Error,
50619
- code: Z.PropertyImplementsNonAbstact,
50772
+ code: J.PropertyImplementsNonAbstact,
50620
50773
  entity: i
50621
50774
  });
50622
50775
  r.push(s.error);
@@ -50662,17 +50815,17 @@ const Be = class Be extends tt {
50662
50815
  Then creates a new instance of the entity
50663
50816
  */
50664
50817
  static fromGenerationTarget(e, t) {
50665
- const r = C(e.parent), s = t.get(
50818
+ const r = B(e.parent), s = t.get(
50666
50819
  r
50667
50820
  );
50668
50821
  let d = null;
50669
50822
  if (e.declaration) {
50670
- const y = C(e.declaration);
50823
+ const y = B(e.declaration);
50671
50824
  d = t.get(y);
50672
50825
  }
50673
50826
  let o = null;
50674
50827
  if (e.readsValue) {
50675
- const y = C(e.readsValue);
50828
+ const y = B(e.readsValue);
50676
50829
  o = t.get(
50677
50830
  y
50678
50831
  );
@@ -51071,7 +51224,7 @@ This is likely an incorrect strategy, either the '${this.type}' entity doesn't n
51071
51224
  hydrateAncestors() {
51072
51225
  const e = [], t = [], r = [], s = [];
51073
51226
  if (this.initialData.parent) {
51074
- const d = C(
51227
+ const d = B(
51075
51228
  this.initialData.parent
51076
51229
  ), o = this.project.get(
51077
51230
  d
@@ -51085,7 +51238,7 @@ This is likely an incorrect strategy, either the '${this.type}' entity doesn't n
51085
51238
  } else
51086
51239
  throw new Error(`${this.type} with id '${this.id}' must have a 'parent'`);
51087
51240
  if (this.initialData.readsValue) {
51088
- const d = C(
51241
+ const d = B(
51089
51242
  this.initialData.readsValue
51090
51243
  ), o = this.project.get(
51091
51244
  d
@@ -51093,7 +51246,7 @@ This is likely an incorrect strategy, either the '${this.type}' entity doesn't n
51093
51246
  o && (this.setValueWriter(o), e.push(o));
51094
51247
  }
51095
51248
  if (this.initialData.declaration) {
51096
- const d = C(
51249
+ const d = B(
51097
51250
  this.initialData.declaration
51098
51251
  ), o = this.project.get(d);
51099
51252
  o && (this.setDeclaration(o), e.push(o));
@@ -51645,14 +51798,14 @@ function rZ(i) {
51645
51798
  const r = [];
51646
51799
  if (i.id === "exec-sequentially-return-map-id") {
51647
51800
  const s = fe({
51648
- id: `${i.id}--${Z.PropertyImplementsNonAbstact}`,
51801
+ id: `${i.id}--${J.PropertyImplementsNonAbstact}`,
51649
51802
  message: `Property "${j(i, i.project)}" with id "${i.id}" implements a non-abstract property "${j(
51650
51803
  i,
51651
51804
  i.project
51652
51805
  )}" with id "${i.id}".`,
51653
51806
  issue: null,
51654
51807
  severity: R.Error,
51655
- code: Z.PropertyImplementsNonAbstact,
51808
+ code: J.PropertyImplementsNonAbstact,
51656
51809
  entity: i
51657
51810
  });
51658
51811
  r.push(s.error);
@@ -51697,12 +51850,12 @@ const _e = class _e extends tt {
51697
51850
  Then creates a new instance of the entity
51698
51851
  */
51699
51852
  static fromGenerationTarget(e, t) {
51700
- const r = C(e.parent), s = t.get(
51853
+ const r = B(e.parent), s = t.get(
51701
51854
  r
51702
51855
  );
51703
51856
  let d;
51704
51857
  if (e.declaration) {
51705
- const u = C(e.declaration);
51858
+ const u = B(e.declaration);
51706
51859
  d = t.get(u);
51707
51860
  }
51708
51861
  const o = {
@@ -51754,7 +51907,7 @@ const _e = class _e extends tt {
51754
51907
  (u) => u !== n.Condition
51755
51908
  ).includes(o.type)) {
51756
51909
  const u = o.outputs.find(
51757
- (y) => y.declaration.id === (r.declaration ? C(r.declaration) : null)
51910
+ (y) => y.declaration.id === (r.declaration ? B(r.declaration) : null)
51758
51911
  );
51759
51912
  if (u)
51760
51913
  s.push(
@@ -52035,7 +52188,7 @@ This is likely an incorrect strategy, either the '${this.type}' entity doesn't n
52035
52188
  hydrateAncestors() {
52036
52189
  const e = [], t = [], r = [], s = [];
52037
52190
  if (this.initialData.parent) {
52038
- const d = C(
52191
+ const d = B(
52039
52192
  this.initialData.parent
52040
52193
  ), o = this.project.get(
52041
52194
  d
@@ -52049,7 +52202,7 @@ This is likely an incorrect strategy, either the '${this.type}' entity doesn't n
52049
52202
  } else
52050
52203
  throw new Error(`${this.type} with id '${this.id}' must have a 'parent'`);
52051
52204
  if (this.initialData.declaration) {
52052
- const d = C(
52205
+ const d = B(
52053
52206
  this.initialData.declaration
52054
52207
  ), o = this.project.get(
52055
52208
  d
@@ -52605,28 +52758,28 @@ function nZ(i) {
52605
52758
  const r = [];
52606
52759
  if (i.id === "company-dto-func-declaration-argument-dcl-id") {
52607
52760
  const d = fe({
52608
- id: `${i.id}--${Z.PropertyImplementsNonAbstact}`,
52761
+ id: `${i.id}--${J.PropertyImplementsNonAbstact}`,
52609
52762
  message: `Property "${j(i, i.project)}" with id "${i.id}" implements a non-abstract property "${j(
52610
52763
  i,
52611
52764
  i.project
52612
52765
  )}" with id "${i.id}".`,
52613
52766
  issue: null,
52614
52767
  severity: R.Error,
52615
- code: Z.PropertyImplementsNonAbstact,
52768
+ code: J.PropertyImplementsNonAbstact,
52616
52769
  entity: i
52617
52770
  });
52618
52771
  r.push(d.error);
52619
52772
  }
52620
52773
  if (i.id === "manual-hello-world-loop-current-iteration-number-output-map-id") {
52621
52774
  const d = fe({
52622
- id: `${i.id}--${Z.PropertyImplementsNonAbstact}`,
52775
+ id: `${i.id}--${J.PropertyImplementsNonAbstact}`,
52623
52776
  message: `Property "${j(i, i.project)}" with id "${i.id}" implements a non-abstract property "${j(
52624
52777
  i,
52625
52778
  i.project
52626
52779
  )}" with id "${i.id}".`,
52627
52780
  issue: null,
52628
52781
  severity: R.Error,
52629
- code: Z.PropertyImplementsNonAbstact,
52782
+ code: J.PropertyImplementsNonAbstact,
52630
52783
  entity: i
52631
52784
  });
52632
52785
  r.push(d.error);
@@ -52673,7 +52826,7 @@ const Me = class Me extends tt {
52673
52826
  Then creates a new instance of the entity
52674
52827
  */
52675
52828
  static fromGenerationTarget(e, t) {
52676
- const r = C(e.parent), s = t.get(r), d = {
52829
+ const r = B(e.parent), s = t.get(r), d = {
52677
52830
  id: e.id,
52678
52831
  version: I.UUID.uuid(),
52679
52832
  createdAt: v().toISOString(),
@@ -52720,7 +52873,7 @@ const Me = class Me extends tt {
52720
52873
  const o = C0(r, t);
52721
52874
  if (r.parent) {
52722
52875
  const l = t.get(
52723
- C(r.parent)
52876
+ B(r.parent)
52724
52877
  );
52725
52878
  if (l && at.includes(l.type)) {
52726
52879
  const u = l.implements;
@@ -52969,7 +53122,7 @@ This is likely an incorrect strategy, either the '${this.type}' entity doesn't n
52969
53122
  hydrateAncestors() {
52970
53123
  const e = [], t = [], r = [], s = [];
52971
53124
  if (this.initialData.parent) {
52972
- const d = C(
53125
+ const d = B(
52973
53126
  this.initialData.parent
52974
53127
  ), o = this.project.get(
52975
53128
  d
@@ -52983,7 +53136,7 @@ This is likely an incorrect strategy, either the '${this.type}' entity doesn't n
52983
53136
  } else
52984
53137
  throw new Error(`${this.type} with id '${this.id}' must have a 'parent'`);
52985
53138
  if (this.initialData.implements) {
52986
- const d = C(this.initialData.implements), o = this.project.get(
53139
+ const d = B(this.initialData.implements), o = this.project.get(
52987
53140
  d
52988
53141
  );
52989
53142
  o && (this.setImplements(o, null), e.push(o));
@@ -53713,7 +53866,7 @@ const Ne = class Ne extends tt {
53713
53866
  Then creates a new instance of the entity
53714
53867
  */
53715
53868
  static fromGenerationTarget(e, t) {
53716
- const r = C(e.parent), s = t.get(r);
53869
+ const r = B(e.parent), s = t.get(r);
53717
53870
  let d = null, o = null;
53718
53871
  e.valueAsTypeList ? Array.isArray(e.valueAsTypeList) && (o = e.valueAsTypeList.map(
53719
53872
  (y) => t.get(y) || t.getBuiltIn(y)
@@ -53940,7 +54093,7 @@ This is likely an incorrect strategy, either the '${this.type}' entity doesn't n
53940
54093
  hydrateAncestors() {
53941
54094
  const e = [], t = [], r = [], s = [];
53942
54095
  if (this.initialData.parent) {
53943
- const d = C(
54096
+ const d = B(
53944
54097
  this.initialData.parent
53945
54098
  ), o = this.project.get(d);
53946
54099
  if (o)
@@ -53953,11 +54106,11 @@ This is likely an incorrect strategy, either the '${this.type}' entity doesn't n
53953
54106
  throw new Error(`${this.type} with id '${this.id}' must have a 'parent'`);
53954
54107
  if (this.initialData.valueAsTypeList && Array.isArray(this.initialData.valueAsTypeList))
53955
54108
  this.valueAsTypeList = this.valueAsTypeList || [], this.initialData.valueAsTypeList.forEach((d) => {
53956
- const o = C(d), l = this.project.get(o);
54109
+ const o = B(d), l = this.project.get(o);
53957
54110
  l && this.valueAsTypeList.push(l);
53958
54111
  });
53959
54112
  else if (this.initialData.valueAsTypeSingle) {
53960
- const d = C(
54113
+ const d = B(
53961
54114
  this.initialData.valueAsTypeSingle
53962
54115
  ), o = this.project.get(d);
53963
54116
  o && (this.valueAsTypeSingle = o);
@@ -54115,7 +54268,7 @@ This is likely an incorrect strategy, either the '${this.type}' entity doesn't n
54115
54268
  });
54116
54269
  else if (this.initialData.valueAsTypeSingle) {
54117
54270
  if (this.initialData.valueAsTypeSingle.type === n.GenericReference) {
54118
- const r = C(this.initialData.valueAsTypeSingle), s = r ? this.project.get(r) : null;
54271
+ const r = B(this.initialData.valueAsTypeSingle), s = r ? this.project.get(r) : null;
54119
54272
  if (!s)
54120
54273
  throw new Error(
54121
54274
  `Standalone entity of type '${this.type}' with id '${this.id}' has a reference to an entity of type '${this.initialData.valueAsTypeSingle.entityType}' with id '${this.initialData.valueAsTypeSingle.entityId}' that is not part of the project state.`
@@ -54529,7 +54682,7 @@ const ge = class ge extends tt {
54529
54682
  Then creates a new instance of the entity
54530
54683
  */
54531
54684
  static fromGenerationTarget(e, t) {
54532
- const r = e.parent ? C(e.parent) : null, s = r ? t.get(r) : null, d = e.parentRelationType === _.FixedArguments ? s == null ? void 0 : s.inputs.length : s == null ? void 0 : s.outputs.length, o = {
54685
+ const r = e.parent ? B(e.parent) : null, s = r ? t.get(r) : null, d = e.parentRelationType === _.FixedArguments ? s == null ? void 0 : s.inputs.length : s == null ? void 0 : s.outputs.length, o = {
54533
54686
  id: e.id,
54534
54687
  version: I.UUID.uuid(),
54535
54688
  createdAt: v().toISOString(),
@@ -54772,7 +54925,7 @@ ${Fr(
54772
54925
  hydrateAncestors() {
54773
54926
  const e = [], t = [], r = [], s = [];
54774
54927
  if (this.initialData.parent) {
54775
- const d = C(
54928
+ const d = B(
54776
54929
  this.initialData.parent
54777
54930
  ), o = this.project.get(d);
54778
54931
  if (o)
@@ -54959,13 +55112,13 @@ ${Fr(
54959
55112
  const {
54960
55113
  updated: L,
54961
55114
  removed: $,
54962
- added: B
55115
+ added: C
54963
55116
  } = V.entity.onDetachedDependencyRemoved(
54964
55117
  this,
54965
55118
  V.field,
54966
55119
  t
54967
55120
  );
54968
- r.push(...L), s.push(...$), d.push(...B);
55121
+ r.push(...L), s.push(...$), d.push(...C);
54969
55122
  }), this.defaultValue) {
54970
55123
  const { updated: V, removed: L } = this.defaultValue.remove(
54971
55124
  {
@@ -57536,10 +57689,10 @@ function So(i, a) {
57536
57689
  const e = [];
57537
57690
  if (i.readsValue) {
57538
57691
  const t = a.project.get(
57539
- C(i.readsValue)
57692
+ B(i.readsValue)
57540
57693
  );
57541
57694
  if (a.project.getBuiltIn(
57542
- C(i.readsValue)
57695
+ B(i.readsValue)
57543
57696
  ))
57544
57697
  e.push(
57545
57698
  new P({
@@ -57611,8 +57764,8 @@ function Pi(i) {
57611
57764
  if (i.parent === i.project)
57612
57765
  !i.calledBy.length && i.type !== n.VariableDeclaration && a.push(
57613
57766
  new _n({
57614
- id: `${i.id}--${Z.DisconnectedCallableEntity}`,
57615
- code: Z.DisconnectedCallableEntity,
57767
+ id: `${i.id}--${J.DisconnectedCallableEntity}`,
57768
+ code: J.DisconnectedCallableEntity,
57616
57769
  severity: R.Warning,
57617
57770
  message: `This '${i.type}' entity "${j(
57618
57771
  i,
@@ -57664,66 +57817,66 @@ function G0(i) {
57664
57817
  return a;
57665
57818
  if (i.readsValue) {
57666
57819
  const e = fe({
57667
- id: `${i.id}--${Z.VariableReadsValueAndInternalCall}`,
57820
+ id: `${i.id}--${J.VariableReadsValueAndInternalCall}`,
57668
57821
  message: `Variable "${j(i, i.project)}" with id "${i.id}" reads a value. A variable with internal calls can't read a value.`,
57669
57822
  issue: null,
57670
57823
  severity: R.Error,
57671
- code: Z.VariableReadsValueAndInternalCall,
57824
+ code: J.VariableReadsValueAndInternalCall,
57672
57825
  entity: i
57673
57826
  });
57674
57827
  a.push(e.error);
57675
57828
  }
57676
57829
  if (i.writesValues.length) {
57677
57830
  const e = fe({
57678
- id: `${i.id}--${Z.VariableWritesValuesAndInternalCall}`,
57831
+ id: `${i.id}--${J.VariableWritesValuesAndInternalCall}`,
57679
57832
  message: `Variable "${j(i, i.project)}" with id "${i.id}" writes values. A variable with internal calls can't write a value.`,
57680
57833
  issue: null,
57681
57834
  severity: R.Error,
57682
- code: Z.VariableWritesValuesAndInternalCall,
57835
+ code: J.VariableWritesValuesAndInternalCall,
57683
57836
  entity: i
57684
57837
  });
57685
57838
  a.push(e.error);
57686
57839
  }
57687
57840
  if (i.getUsedInputs().length) {
57688
57841
  const e = fe({
57689
- id: `${i.id}--${Z.VariableHasInputsAndInternalCall}`,
57842
+ id: `${i.id}--${J.VariableHasInputsAndInternalCall}`,
57690
57843
  message: `Variable "${j(i, i.project)}" with id "${i.id}" has inputs. A variable with internal calls can't have inputs.`,
57691
57844
  issue: null,
57692
57845
  severity: R.Error,
57693
- code: Z.VariableHasInputsAndInternalCall,
57846
+ code: J.VariableHasInputsAndInternalCall,
57694
57847
  entity: i
57695
57848
  });
57696
57849
  a.push(e.error);
57697
57850
  }
57698
57851
  if (i.getUsedOutputs().length) {
57699
57852
  const e = fe({
57700
- id: `${i.id}--${Z.VariableHasOutputsAndInternalCall}`,
57853
+ id: `${i.id}--${J.VariableHasOutputsAndInternalCall}`,
57701
57854
  message: `Variable "${j(i, i.project)}" with id "${i.id}" has outputs. A variable with internal calls can't have outputs.`,
57702
57855
  issue: null,
57703
57856
  severity: R.Error,
57704
- code: Z.VariableHasOutputsAndInternalCall,
57857
+ code: J.VariableHasOutputsAndInternalCall,
57705
57858
  entity: i
57706
57859
  });
57707
57860
  a.push(e.error);
57708
57861
  }
57709
57862
  if (i.calledBy.length) {
57710
57863
  const e = fe({
57711
- id: `${i.id}--${Z.VariableIsCalledAndHasInternalCall}`,
57864
+ id: `${i.id}--${J.VariableIsCalledAndHasInternalCall}`,
57712
57865
  message: `Variable "${j(i, i.project)}" with id "${i.id}" is called by other entities. A variable with internal calls can't be called by other entities.`,
57713
57866
  issue: null,
57714
57867
  severity: R.Error,
57715
- code: Z.VariableIsCalledAndHasInternalCall,
57868
+ code: J.VariableIsCalledAndHasInternalCall,
57716
57869
  entity: i
57717
57870
  });
57718
57871
  a.push(e.error);
57719
57872
  }
57720
57873
  if ([...i.successCalls, ...i.errorCalls].length) {
57721
57874
  const e = fe({
57722
- id: `${i.id}--${Z.VariableCallsOthersAndHasInternalCall}`,
57875
+ id: `${i.id}--${J.VariableCallsOthersAndHasInternalCall}`,
57723
57876
  message: `Variable "${j(i, i.project)}" with id "${i.id}" calls other entities. A variable with internal calls can't call other entities.`,
57724
57877
  issue: null,
57725
57878
  severity: R.Error,
57726
- code: Z.VariableCallsOthersAndHasInternalCall,
57879
+ code: J.VariableCallsOthersAndHasInternalCall,
57727
57880
  entity: i
57728
57881
  });
57729
57882
  a.push(e.error);
@@ -57781,19 +57934,19 @@ const Ge = class Ge extends tt {
57781
57934
  static fromGenerationTarget(e, t) {
57782
57935
  let r = t;
57783
57936
  if (e.parent) {
57784
- const m = C(e.parent);
57937
+ const m = B(e.parent);
57785
57938
  r = t.get(m);
57786
57939
  }
57787
- const s = C(e.declaration), d = t.get(
57940
+ const s = B(e.declaration), d = t.get(
57788
57941
  s
57789
57942
  ), o = e.calledByEntry.map((m) => {
57790
- const T = C(m);
57943
+ const T = B(m);
57791
57944
  return t.get(T);
57792
57945
  }), l = e.calledBySuccess.map((m) => {
57793
- const T = C(m);
57946
+ const T = B(m);
57794
57947
  return t.get(T);
57795
57948
  }), u = e.calledByError.map((m) => {
57796
- const T = C(m);
57949
+ const T = B(m);
57797
57950
  return t.get(T);
57798
57951
  }), y = {
57799
57952
  id: e.id,
@@ -57858,7 +58011,7 @@ const Ge = class Ge extends tt {
57858
58011
  ...d.errors,
57859
58012
  ...ot(r)
57860
58013
  );
57861
- const o = C(
58014
+ const o = B(
57862
58015
  r.declaration
57863
58016
  );
57864
58017
  if (o) {
@@ -58101,7 +58254,7 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
58101
58254
  hydrateAncestors() {
58102
58255
  const e = [], t = [], r = [], s = [];
58103
58256
  if (this.initialData.parent) {
58104
- const d = C(
58257
+ const d = B(
58105
58258
  this.initialData.parent
58106
58259
  ), o = this.project.get(d);
58107
58260
  if (o)
@@ -58113,7 +58266,7 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
58113
58266
  } else
58114
58267
  throw new Error(`${this.type} with id '${this.id}' must have a 'parent'`);
58115
58268
  if (this.initialData.declaration) {
58116
- const d = C(
58269
+ const d = B(
58117
58270
  this.initialData.declaration
58118
58271
  ), o = this.project.get(
58119
58272
  d
@@ -58121,15 +58274,15 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
58121
58274
  o && (this.setDeclaration(o), e.push(o));
58122
58275
  }
58123
58276
  return this.initialData.calledByEntry.forEach((d) => {
58124
- const o = C(d), l = this.project.get(o);
58277
+ const o = B(d), l = this.project.get(o);
58125
58278
  l && (this.addEntryCaller(l, null), e.push(l));
58126
58279
  }), this.initialData.calledBySuccess.forEach((d) => {
58127
- const o = C(d), l = this.project.get(
58280
+ const o = B(d), l = this.project.get(
58128
58281
  o
58129
58282
  );
58130
58283
  l && (this.addSuccessCaller(l, null), e.push(l));
58131
58284
  }), this.initialData.calledByError.forEach((d) => {
58132
- const o = C(d), l = this.project.get(
58285
+ const o = B(d), l = this.project.get(
58133
58286
  o
58134
58287
  );
58135
58288
  l && (this.addErrorCaller(l, null), e.push(l));
@@ -58341,7 +58494,7 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
58341
58494
  );
58342
58495
  this.declaration = t;
58343
58496
  } else {
58344
- const t = C(
58497
+ const t = B(
58345
58498
  this.initialData.declaration
58346
58499
  ), r = this.project.get(
58347
58500
  t
@@ -59383,7 +59536,11 @@ function ip(i, a, e, t) {
59383
59536
  return m.abstract = !1, m.implements = y, e == null || e.add(m, b.Added), m.setParent(l, e), l.addProperty(m), m;
59384
59537
  }), i.abstractMethods.map(
59385
59538
  (y) => {
59386
- const c = I.UUID.uuid(), m = y.implementAsFunctionDeclaration(l, e, c);
59539
+ const c = I.UUID.uuid(), m = y.implementAsFunctionDeclaration(
59540
+ e,
59541
+ l,
59542
+ c
59543
+ );
59387
59544
  return l.addMethod(m), e == null || e.add(m, b.Added), m;
59388
59545
  }
59389
59546
  ), l.afterAllChildrenInitialized(e);
@@ -59448,16 +59605,16 @@ function k0(i, a, e, t, r) {
59448
59605
  let L = !1;
59449
59606
  const $ = new Date(i);
59450
59607
  if ($ instanceof Date && !isNaN($.valueOf()) && (L = !0), L) {
59451
- const B = a.project.getBuiltIn(
59608
+ const C = a.project.getBuiltIn(
59452
59609
  G[n.PrimitiveEntity][M.Date].id
59453
59610
  );
59454
- a.setEntity(B);
59611
+ a.setEntity(C);
59455
59612
  break;
59456
59613
  } else {
59457
- const B = a.project.getBuiltIn(
59614
+ const C = a.project.getBuiltIn(
59458
59615
  G[n.PrimitiveEntity][M.String].id
59459
59616
  );
59460
- a.setEntity(B);
59617
+ a.setEntity(C);
59461
59618
  break;
59462
59619
  }
59463
59620
  case "number":
@@ -59489,9 +59646,9 @@ function k0(i, a, e, t, r) {
59489
59646
  },
59490
59647
  t
59491
59648
  ), i.length > 0) {
59492
- const B = i.slice(0, 5).filter((k) => k !== void 0);
59493
- if (B.every((k) => typeof k == typeof B[0]) && (typeof B[0] != "object" || B[0] === null))
59494
- switch (typeof B[0]) {
59649
+ const C = i.slice(0, 5).filter((k) => k !== void 0);
59650
+ if (C.every((k) => typeof k == typeof C[0]) && (typeof C[0] != "object" || C[0] === null))
59651
+ switch (typeof C[0]) {
59495
59652
  case "string":
59496
59653
  a.setEntity(
59497
59654
  a.project.getBuiltIn(
@@ -59523,10 +59680,10 @@ function k0(i, a, e, t, r) {
59523
59680
  }
59524
59681
  else {
59525
59682
  const k = [];
59526
- let J = !1;
59527
- B.forEach((de) => {
59528
- var he, H, ne, $t;
59529
- if (Array.isArray(de) && (J = !0), typeof de == "object" && !Array.isArray(de) && de !== null) {
59683
+ let Z = !1;
59684
+ C.forEach((de) => {
59685
+ var he, Y, ne, $t;
59686
+ if (Array.isArray(de) && (Z = !0), typeof de == "object" && !Array.isArray(de) && de !== null) {
59530
59687
  const wr = ud(
59531
59688
  de,
59532
59689
  a.project,
@@ -59537,14 +59694,14 @@ function k0(i, a, e, t, r) {
59537
59694
  t,
59538
59695
  r
59539
59696
  );
59540
- wr.hasCreated && k.push((he = wr.changeSet) == null ? void 0 : he.self), s.push(...(H = wr.changeSet) == null ? void 0 : H.updated), d.push(...(ne = wr.changeSet) == null ? void 0 : ne.added), o.push(...($t = wr.changeSet) == null ? void 0 : $t.removed);
59697
+ wr.hasCreated && k.push((he = wr.changeSet) == null ? void 0 : he.self), s.push(...(Y = wr.changeSet) == null ? void 0 : Y.updated), d.push(...(ne = wr.changeSet) == null ? void 0 : ne.added), o.push(...($t = wr.changeSet) == null ? void 0 : $t.removed);
59541
59698
  }
59542
59699
  });
59543
- const Y = p(
59700
+ const K = p(
59544
59701
  k
59545
59702
  );
59546
- if (!Y.length && !J) {
59547
- B.forEach((de) => {
59703
+ if (!K.length && !Z) {
59704
+ C.forEach((de) => {
59548
59705
  const he = {
59549
59706
  id: I.UUID.uuid(),
59550
59707
  version: I.UUID.uuid(),
@@ -59562,35 +59719,35 @@ function k0(i, a, e, t, r) {
59562
59719
  inferred: !1,
59563
59720
  parentRelationType: At.OrDataTypeGroup,
59564
59721
  parent: a.toReference()
59565
- }, H = O(
59722
+ }, Y = O(
59566
59723
  he,
59567
59724
  a.project
59568
59725
  );
59569
- switch (H.setParent(a, t), H.initChildren(t), t == null || t.add(H, b.Added), H.addSelfToProject(t), typeof de) {
59726
+ switch (Y.setParent(a, t), Y.initChildren(t), t == null || t.add(Y, b.Added), Y.addSelfToProject(t), typeof de) {
59570
59727
  case "string":
59571
- H.setEntity(
59572
- H.project.getBuiltIn(
59728
+ Y.setEntity(
59729
+ Y.project.getBuiltIn(
59573
59730
  G[n.PrimitiveEntity][M.String].id
59574
59731
  )
59575
59732
  );
59576
59733
  break;
59577
59734
  case "number":
59578
- H.setEntity(
59579
- H.project.getBuiltIn(
59735
+ Y.setEntity(
59736
+ Y.project.getBuiltIn(
59580
59737
  G[n.PrimitiveEntity][M.Number].id
59581
59738
  )
59582
59739
  );
59583
59740
  break;
59584
59741
  case "boolean":
59585
- H.setEntity(
59586
- H.project.getBuiltIn(
59742
+ Y.setEntity(
59743
+ Y.project.getBuiltIn(
59587
59744
  G[n.PrimitiveEntity][M.Boolean].id
59588
59745
  )
59589
59746
  );
59590
59747
  break;
59591
59748
  case "object":
59592
- H.setEntity(
59593
- H.project.getBuiltIn(
59749
+ Y.setEntity(
59750
+ Y.project.getBuiltIn(
59594
59751
  G[n.PrimitiveEntity][M.Null].id
59595
59752
  )
59596
59753
  );
@@ -59599,20 +59756,20 @@ function k0(i, a, e, t, r) {
59599
59756
  });
59600
59757
  break;
59601
59758
  } else
59602
- Y.length === 1 && !J ? a.setEntity(Y[0]) : B.forEach((de) => {
59759
+ K.length === 1 && !Z ? a.setEntity(K[0]) : C.forEach((de) => {
59603
59760
  if (typeof de == "object" && !Array.isArray(de) && de !== null) {
59604
59761
  const he = F0(
59605
59762
  Object.keys(de),
59606
59763
  a.project
59607
59764
  );
59608
59765
  if (he) {
59609
- const H = OZ(
59610
- he || Y[0],
59766
+ const Y = OZ(
59767
+ he || K[0],
59611
59768
  a,
59612
59769
  t,
59613
59770
  At.OrDataTypeGroup
59614
59771
  );
59615
- s.push(...H.updated), d.push(...H.added), o.push(...H.removed);
59772
+ s.push(...Y.updated), d.push(...Y.added), o.push(...Y.removed);
59616
59773
  }
59617
59774
  } else {
59618
59775
  const he = {
@@ -59632,14 +59789,14 @@ function k0(i, a, e, t, r) {
59632
59789
  inferred: !1,
59633
59790
  parentRelationType: At.OrDataTypeGroup,
59634
59791
  parent: a.toReference()
59635
- }, H = O(
59792
+ }, Y = O(
59636
59793
  he,
59637
59794
  a.project
59638
59795
  );
59639
- H.setParent(a, t), H.initChildren(t), t == null || t.add(H, b.Added), H.addSelfToProject(t);
59796
+ Y.setParent(a, t), Y.initChildren(t), t == null || t.add(Y, b.Added), Y.addSelfToProject(t);
59640
59797
  const ne = k0(
59641
59798
  de,
59642
- H,
59799
+ Y,
59643
59800
  {
59644
59801
  ...e,
59645
59802
  id: I.UUID.uuid()
@@ -59652,7 +59809,7 @@ function k0(i, a, e, t, r) {
59652
59809
  });
59653
59810
  }
59654
59811
  } else {
59655
- const B = ud(
59812
+ const C = ud(
59656
59813
  i[0],
59657
59814
  a.project,
59658
59815
  {
@@ -59661,11 +59818,11 @@ function k0(i, a, e, t, r) {
59661
59818
  t,
59662
59819
  r
59663
59820
  );
59664
- a.setEntity((u = B.changeSet) == null ? void 0 : u.self), s.push(...(y = B.changeSet) == null ? void 0 : y.updated), d.push(...(c = B.changeSet) == null ? void 0 : c.added), o.push(...(m = B.changeSet) == null ? void 0 : m.removed);
59821
+ a.setEntity((u = C.changeSet) == null ? void 0 : u.self), s.push(...(y = C.changeSet) == null ? void 0 : y.updated), d.push(...(c = C.changeSet) == null ? void 0 : c.added), o.push(...(m = C.changeSet) == null ? void 0 : m.removed);
59665
59822
  break;
59666
59823
  }
59667
59824
  else {
59668
- const B = ud(
59825
+ const C = ud(
59669
59826
  i,
59670
59827
  a.project,
59671
59828
  {
@@ -59674,7 +59831,7 @@ function k0(i, a, e, t, r) {
59674
59831
  t,
59675
59832
  r
59676
59833
  );
59677
- a.setEntity((T = B.changeSet) == null ? void 0 : T.self), s.push(...(D = B.changeSet) == null ? void 0 : D.updated), d.push(...(w = B.changeSet) == null ? void 0 : w.added), o.push(...(V = B.changeSet) == null ? void 0 : V.removed);
59834
+ a.setEntity((T = C.changeSet) == null ? void 0 : T.self), s.push(...(D = C.changeSet) == null ? void 0 : D.updated), d.push(...(w = C.changeSet) == null ? void 0 : w.added), o.push(...(V = C.changeSet) == null ? void 0 : V.removed);
59678
59835
  break;
59679
59836
  }
59680
59837
  }
@@ -59745,12 +59902,12 @@ function ud(i, a, e, t, r) {
59745
59902
  private: !1,
59746
59903
  required: !0,
59747
59904
  parent: D.toReference()
59748
- }, B = O(
59905
+ }, C = O(
59749
59906
  $,
59750
59907
  a
59751
59908
  );
59752
- B.setParent(D, t), B.initChildren(t), t == null || t.add(B, b.Added), B.addSelfToProject(t), d.push(B);
59753
- const U = i[w], J = {
59909
+ C.setParent(D, t), C.initChildren(t), t == null || t.add(C, b.Added), C.addSelfToProject(t), d.push(C);
59910
+ const U = i[w], Z = {
59754
59911
  id: I.UUID.uuid(),
59755
59912
  version: I.UUID.uuid(),
59756
59913
  createdAt: (t == null ? void 0 : t.timestamp) || (/* @__PURE__ */ new Date()).toISOString(),
@@ -59765,15 +59922,15 @@ function ud(i, a, e, t, r) {
59765
59922
  orChildrenGroup: null,
59766
59923
  like: !0,
59767
59924
  inferred: !1,
59768
- parent: B.toReference()
59769
- }, Y = O(
59770
- J,
59925
+ parent: C.toReference()
59926
+ }, K = O(
59927
+ Z,
59771
59928
  a
59772
59929
  );
59773
- Y.setParent(B, t), Y.initChildren(t), t == null || t.add(Y, b.Added), Y.addSelfToProject(t), d.push(Y);
59930
+ K.setParent(C, t), K.initChildren(t), t == null || t.add(K, b.Added), K.addSelfToProject(t), d.push(K);
59774
59931
  const de = k0(
59775
59932
  U,
59776
- Y,
59933
+ K,
59777
59934
  {
59778
59935
  ...e,
59779
59936
  name: w,
@@ -60302,25 +60459,25 @@ function pd(i, a = {}, e = {
60302
60459
  ...(y.projects || []).flatMap((U) => U),
60303
60460
  ...(d.calls || []).flatMap((U) => U)
60304
60461
  ];
60305
- i.type === n.DataType && (r.entity && a[C(r.entity)] && a[C(r.entity)].parent && C(
60306
- a[C(r.entity)].parent
60462
+ i.type === n.DataType && (r.entity && a[B(r.entity)] && a[B(r.entity)].parent && B(
60463
+ a[B(r.entity)].parent
60307
60464
  ) === i.id ? L.push(r.entity) : r.entity && V.push(r.entity));
60308
- const $ = {}, B = {};
60465
+ const $ = {}, C = {};
60309
60466
  return V.forEach((U) => {
60310
- const k = C(U);
60467
+ const k = B(U);
60311
60468
  if (k && e.ignoreBuiltInBaseEntities && (Er.includes(U.type) || (e.allBuiltInEntityIds || []).includes(k)))
60312
60469
  return;
60313
- const J = U.version;
60314
- k && ($[k] = J);
60470
+ const Z = U.version;
60471
+ k && ($[k] = Z);
60315
60472
  }), L.forEach((U) => {
60316
- const k = C(U);
60473
+ const k = B(U);
60317
60474
  if (k && e.ignoreBuiltInBaseEntities && (Er.includes(U.type) || (e.allBuiltInEntityIds || []).includes(k)))
60318
60475
  return;
60319
- const J = U.version;
60320
- k && (B[k] = J);
60476
+ const Z = U.version;
60477
+ k && (C[k] = Z);
60321
60478
  }), {
60322
60479
  upstream: $,
60323
- downstream: B
60480
+ downstream: C
60324
60481
  };
60325
60482
  }
60326
60483
  function Aq(i, a) {
@@ -61313,7 +61470,7 @@ function Yt(i, a) {
61313
61470
  if (!e)
61314
61471
  return null;
61315
61472
  if (e.type === n.GenericReference) {
61316
- const t = C(e);
61473
+ const t = B(e);
61317
61474
  if (!t)
61318
61475
  return null;
61319
61476
  const r = a.get(t);
@@ -61464,7 +61621,7 @@ function ir(i, a) {
61464
61621
  if (!i)
61465
61622
  return null;
61466
61623
  let e;
61467
- return typeof i == "string" ? e = i : i.type === n.GenericReference ? e = C(i) : e = i.id, e === a.id ? a : a.get(e);
61624
+ return typeof i == "string" ? e = i : i.type === n.GenericReference ? e = B(i) : e = i.id, e === a.id ? a : a.get(e);
61468
61625
  }
61469
61626
  function Xi(i) {
61470
61627
  if (!i)
@@ -61749,7 +61906,7 @@ function dp(i, a = {}) {
61749
61906
  return [];
61750
61907
  if (!i.parent)
61751
61908
  return [];
61752
- const e = C(i.parent);
61909
+ const e = B(i.parent);
61753
61910
  if (!e)
61754
61911
  return [];
61755
61912
  const t = a[e];
@@ -61915,7 +62072,7 @@ const Le = class Le extends tt {
61915
62072
  static fromGenerationTarget(e, t) {
61916
62073
  let r = t;
61917
62074
  if (e.parent) {
61918
- const u = C(e.parent);
62075
+ const u = B(e.parent);
61919
62076
  r = t.get(u);
61920
62077
  }
61921
62078
  const s = [];
@@ -62221,7 +62378,7 @@ Alternatively you can update the parent data-type entity with 'update' action to
62221
62378
  hydrateAncestors() {
62222
62379
  const e = [], t = [], r = [], s = [];
62223
62380
  if (this.initialData.parent) {
62224
- const d = C(
62381
+ const d = B(
62225
62382
  this.initialData.parent
62226
62383
  ), o = this.project.get(d);
62227
62384
  if (o)
@@ -62233,10 +62390,10 @@ Alternatively you can update the parent data-type entity with 'update' action to
62233
62390
  } else
62234
62391
  throw new Error(`${this.type} with id '${this.id}' must have a 'parent'`);
62235
62392
  return this.initialData.extends.forEach((d) => {
62236
- const o = C(d), l = this.project.get(o);
62393
+ const o = B(d), l = this.project.get(o);
62237
62394
  l && (this.addExtension(l), l.type !== n.BuiltInBaseEntity && e.push(l));
62238
62395
  }), this.initialData.implements.forEach((d) => {
62239
- const o = C(d), l = this.project.get(o);
62396
+ const o = B(d), l = this.project.get(o);
62240
62397
  l && (this.addImplementation(l), l.type !== n.BuiltInBaseEntity && e.push(l));
62241
62398
  }), {
62242
62399
  updated: p(e),
@@ -62522,7 +62679,11 @@ Alternatively you can update the parent data-type entity with 'update' action to
62522
62679
  this,
62523
62680
  e
62524
62681
  ).forEach((s) => {
62525
- const d = `_suggestion--parent--${this.id}--${s.id}`, o = s.implementAsFunctionDeclaration(this, null, d), l = O(
62682
+ const d = `_suggestion--parent--${this.id}--${s.id}`, o = s.implementAsFunctionDeclaration(
62683
+ null,
62684
+ this,
62685
+ d
62686
+ ), l = O(
62526
62687
  o,
62527
62688
  this.project
62528
62689
  );
@@ -62966,19 +63127,19 @@ Alternatively you can update the parent data-type entity with 'update' action to
62966
63127
  );
62967
63128
  c.properties = m;
62968
63129
  const T = (V = this.methods) == null ? void 0 : V.map(
62969
- ($, B) => $.clone(
63130
+ ($, C) => $.clone(
62970
63131
  e,
62971
63132
  c,
62972
- y + "-method-" + B + "-id",
63133
+ y + "-method-" + C + "-id",
62973
63134
  s
62974
63135
  )
62975
63136
  );
62976
63137
  c.methods = T;
62977
63138
  const D = (L = this.abstractMethods) == null ? void 0 : L.map(
62978
- ($, B) => $.clone(
63139
+ ($, C) => $.clone(
62979
63140
  e,
62980
63141
  c,
62981
- y + "-abstract-method-" + B + "-id",
63142
+ y + "-abstract-method-" + C + "-id",
62982
63143
  s
62983
63144
  )
62984
63145
  );
@@ -63049,7 +63210,7 @@ Alternatively you can update the parent data-type entity with 'update' action to
63049
63210
  l.forEach((c) => {
63050
63211
  var L, $;
63051
63212
  const m = u.find(
63052
- (B) => j(B, this.project) === j(c, this.project)
63213
+ (C) => j(C, this.project) === j(c, this.project)
63053
63214
  );
63054
63215
  if (!m)
63055
63216
  return;
@@ -63067,23 +63228,23 @@ Alternatively you can update the parent data-type entity with 'update' action to
63067
63228
  !0
63068
63229
  );
63069
63230
  if (V) {
63070
- const B = (L = m.dataType) == null ? void 0 : L.merge(
63231
+ const C = (L = m.dataType) == null ? void 0 : L.merge(
63071
63232
  V,
63072
63233
  t
63073
63234
  );
63074
- m.dataType && (B == null ? void 0 : B.self.id) !== m.dataType.id && m.dataType.remove(
63235
+ m.dataType && (C == null ? void 0 : C.self.id) !== m.dataType.id && m.dataType.remove(
63075
63236
  { ignoreUpstream: !1 },
63076
63237
  t
63077
- ), V.id !== (($ = B == null ? void 0 : B.self) == null ? void 0 : $.id) && V.remove({ ignoreUpstream: !1 }, t), B != null && B.self && (B.self.metaSync(
63238
+ ), V.id !== (($ = C == null ? void 0 : C.self) == null ? void 0 : $.id) && V.remove({ ignoreUpstream: !1 }, t), C != null && C.self && (C.self.metaSync(
63078
63239
  {
63079
63240
  inferred: !0,
63080
63241
  like: !0
63081
63242
  },
63082
63243
  t
63083
63244
  ), t == null || t.add(
63084
- B.self,
63245
+ C.self,
63085
63246
  b.Added
63086
- ), m.setDataType(B.self), t == null || t.add(
63247
+ ), m.setDataType(C.self), t == null || t.add(
63087
63248
  m,
63088
63249
  b.Updated
63089
63250
  ));
@@ -63106,9 +63267,9 @@ Alternatively you can update the parent data-type entity with 'update' action to
63106
63267
  affected: [],
63107
63268
  self: this
63108
63269
  }) : (y.forEach((c) => {
63109
- var B, U, k, J;
63270
+ var C, U, k, Z;
63110
63271
  const m = this.properties.find(
63111
- (Y) => j(Y, this.project) === j(c, this.project)
63272
+ (K) => j(K, this.project) === j(c, this.project)
63112
63273
  );
63113
63274
  if (m) {
63114
63275
  if (c.setDeclaration(m), !m.getDataType(t)) {
@@ -63118,18 +63279,18 @@ Alternatively you can update the parent data-type entity with 'update' action to
63118
63279
  c
63119
63280
  ), he = Sr(
63120
63281
  de
63121
- ), H = he == null ? void 0 : he.clone(
63282
+ ), Y = he == null ? void 0 : he.clone(
63122
63283
  t,
63123
63284
  m,
63124
63285
  I.UUID.uuid(),
63125
63286
  !0
63126
63287
  );
63127
- if (H) {
63128
- const ne = (B = m.dataType) == null ? void 0 : B.merge(H, t);
63288
+ if (Y) {
63289
+ const ne = (C = m.dataType) == null ? void 0 : C.merge(Y, t);
63129
63290
  m.dataType && (ne == null ? void 0 : ne.self.id) !== m.dataType.id && m.dataType.remove(
63130
63291
  { ignoreUpstream: !1 },
63131
63292
  t
63132
- ), H.id !== ((U = ne == null ? void 0 : ne.self) == null ? void 0 : U.id) && H.remove({ ignoreUpstream: !1 }, t), ne != null && ne.self && (ne.self.metaSync(
63293
+ ), Y.id !== ((U = ne == null ? void 0 : ne.self) == null ? void 0 : U.id) && Y.remove({ ignoreUpstream: !1 }, t), ne != null && ne.self && (ne.self.metaSync(
63133
63294
  {
63134
63295
  inferred: !0,
63135
63296
  like: !0
@@ -63185,23 +63346,23 @@ Alternatively you can update the parent data-type entity with 'update' action to
63185
63346
  !0
63186
63347
  );
63187
63348
  if ($) {
63188
- const Y = (k = D.dataType) == null ? void 0 : k.merge(
63349
+ const K = (k = D.dataType) == null ? void 0 : k.merge(
63189
63350
  $,
63190
63351
  t
63191
63352
  );
63192
- D.dataType && (Y == null ? void 0 : Y.self.id) !== D.dataType.id && D.dataType.remove(
63353
+ D.dataType && (K == null ? void 0 : K.self.id) !== D.dataType.id && D.dataType.remove(
63193
63354
  { ignoreUpstream: !1 },
63194
63355
  t
63195
- ), $.id !== ((J = Y == null ? void 0 : Y.self) == null ? void 0 : J.id) && $.remove({ ignoreUpstream: !1 }, t), Y != null && Y.self && (Y.self.metaSync(
63356
+ ), $.id !== ((Z = K == null ? void 0 : K.self) == null ? void 0 : Z.id) && $.remove({ ignoreUpstream: !1 }, t), K != null && K.self && (K.self.metaSync(
63196
63357
  {
63197
63358
  inferred: !0,
63198
63359
  like: !0
63199
63360
  },
63200
63361
  t
63201
63362
  ), t == null || t.add(
63202
- Y.self,
63363
+ K.self,
63203
63364
  b.Added
63204
- ), D.setDataType(Y.self), t == null || t.add(D, b.Updated));
63365
+ ), D.setDataType(K.self), t == null || t.add(D, b.Updated));
63205
63366
  }
63206
63367
  return this.addProperty(D), c.setDeclaration(D), t == null || t.add(c, b.Updated), D;
63207
63368
  }), t == null || t.attemptAutoclose("infer-definition-entity-from-inputs", this.id), {
@@ -66721,7 +66882,7 @@ export {
66721
66882
  R as EntityErrorSeverity,
66722
66883
  P as EntityGenerationError,
66723
66884
  E as EntityGenerationErrorCode,
66724
- Z as EntityInstanceErrorCode,
66885
+ J as EntityInstanceErrorCode,
66725
66886
  He as EntityOperations,
66726
66887
  n as EntityType,
66727
66888
  Hq as EntityWithLogicScopeClass,
@@ -67133,7 +67294,7 @@ export {
67133
67294
  Xq as getProject,
67134
67295
  Zo as getPrototypeByType,
67135
67296
  dp as getRecusriveParentsIds,
67136
- C as getReferenceEntityId,
67297
+ B as getReferenceEntityId,
67137
67298
  sd as getReferencedEntitiesStateOrErrors,
67138
67299
  U0 as getReferencedEntityStateOrErrors,
67139
67300
  pd as getReferencedIds,