@elyx-code/project-logic-tree 0.0.6274 → 0.0.6276

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
@@ -10713,7 +10713,7 @@ function Jw(r) {
10713
10713
  o[E] = ol(o[E - 3] ^ o[E - 8] ^ o[E - 14] ^ o[E - 16], 1);
10714
10714
  let d = e[0], u = e[1], f = e[2], c = e[3], T = e[4];
10715
10715
  for (let E = 0; E < 80; ++E) {
10716
- const R = Math.floor(E / 20), O = ol(d, 5) + Zw(R, u, f, c) + T + a[R] + o[E] >>> 0;
10716
+ const D = Math.floor(E / 20), O = ol(d, 5) + Zw(D, u, f, c) + T + a[D] + o[E] >>> 0;
10717
10717
  T = c, c = f, f = ol(u, 30) >>> 0, u = d, d = O;
10718
10718
  }
10719
10719
  e[0] = e[0] + d >>> 0, e[1] = e[1] + u >>> 0, e[2] = e[2] + f >>> 0, e[3] = e[3] + c >>> 0, e[4] = e[4] + T >>> 0;
@@ -10886,8 +10886,8 @@ var oP = (() => {
10886
10886
  validate: (T, E = !1) => {
10887
10887
  if (!T || typeof T != "string")
10888
10888
  return !1;
10889
- const R = i.consistentLength ? T.length === s : T.length <= s, O = T.split("").every((P) => t.includes(P));
10890
- return E === !1 ? R && O : R && O && nP(Op(T, d));
10889
+ const D = i.consistentLength ? T.length === s : T.length <= s, O = T.split("").every((P) => t.includes(P));
10890
+ return E === !1 ? D && O : D && O && nP(Op(T, d));
10891
10891
  }
10892
10892
  };
10893
10893
  return Object.freeze(c), c;
@@ -25024,7 +25024,7 @@ var Tm = { exports: {} };
25024
25024
  (function(e, t) {
25025
25025
  r.exports = t();
25026
25026
  })(tw, function() {
25027
- var e = 1e3, t = 6e4, i = 36e5, s = "millisecond", l = "second", o = "minute", d = "hour", u = "day", f = "week", c = "month", T = "quarter", E = "year", R = "date", O = "Invalid Date", P = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, B = /\[([^\]]+)]|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, j = { 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(me) {
25027
+ var e = 1e3, t = 6e4, i = 36e5, s = "millisecond", l = "second", o = "minute", d = "hour", u = "day", f = "week", c = "month", T = "quarter", E = "year", D = "date", O = "Invalid Date", P = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, B = /\[([^\]]+)]|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, j = { 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(me) {
25028
25028
  var te = ["th", "st", "nd", "rd"], H = me % 100;
25029
25029
  return "[" + me + (te[(H - 20) % 10] || te[H] || te[0]) + "]";
25030
25030
  } }, C = function(me, te, H) {
@@ -25041,7 +25041,7 @@ var Tm = { exports: {} };
25041
25041
  }, a: function(me) {
25042
25042
  return me < 0 ? Math.ceil(me) || 0 : Math.floor(me);
25043
25043
  }, p: function(me) {
25044
- return { M: c, y: E, w: f, d: u, D: R, h: d, m: o, s: l, ms: s, Q: T }[me] || String(me || "").toLowerCase().replace(/s$/, "");
25044
+ return { M: c, y: E, w: f, d: u, D, h: d, m: o, s: l, ms: s, Q: T }[me] || String(me || "").toLowerCase().replace(/s$/, "");
25045
25045
  }, u: function(me) {
25046
25046
  return me === void 0;
25047
25047
  } }, Z = "en", J = {};
@@ -25131,7 +25131,7 @@ var Tm = { exports: {} };
25131
25131
  var Lr = this.$locale().weekStart || 0, Is = (wt < Lr ? wt + 7 : wt) - Lr;
25132
25132
  return ot(Ie ? Ei - Is : Ei + (6 - Is), Lt);
25133
25133
  case u:
25134
- case R:
25134
+ case D:
25135
25135
  return At(xn + "Hours", 0);
25136
25136
  case d:
25137
25137
  return At(xn + "Minutes", 1);
@@ -25145,10 +25145,10 @@ var Tm = { exports: {} };
25145
25145
  }, te.endOf = function(H) {
25146
25146
  return this.startOf(H, !1);
25147
25147
  }, te.$set = function(H, de) {
25148
- var Q, Ie = ae.p(H), Ae = "set" + (this.$u ? "UTC" : ""), ot = (Q = {}, Q[u] = Ae + "Date", Q[R] = Ae + "Date", Q[c] = Ae + "Month", Q[E] = Ae + "FullYear", Q[d] = Ae + "Hours", Q[o] = Ae + "Minutes", Q[l] = Ae + "Seconds", Q[s] = Ae + "Milliseconds", Q)[Ie], At = Ie === u ? this.$D + (de - this.$W) : de;
25148
+ var Q, Ie = ae.p(H), Ae = "set" + (this.$u ? "UTC" : ""), ot = (Q = {}, Q[u] = Ae + "Date", Q[D] = Ae + "Date", Q[c] = Ae + "Month", Q[E] = Ae + "FullYear", Q[d] = Ae + "Hours", Q[o] = Ae + "Minutes", Q[l] = Ae + "Seconds", Q[s] = Ae + "Milliseconds", Q)[Ie], At = Ie === u ? this.$D + (de - this.$W) : de;
25149
25149
  if (Ie === c || Ie === E) {
25150
- var wt = this.clone().set(R, 1);
25151
- wt.$d[ot](At), wt.init(), this.$d = wt.set(R, Math.min(this.$D, wt.daysInMonth())).$d;
25150
+ var wt = this.clone().set(D, 1);
25151
+ wt.$d[ot](At), wt.init(), this.$d = wt.set(D, Math.min(this.$D, wt.daysInMonth())).$d;
25152
25152
  } else
25153
25153
  ot && this.$d[ot](At);
25154
25154
  return this.init(), this;
@@ -25298,7 +25298,7 @@ var Tm = { exports: {} };
25298
25298
  return this.$d.toUTCString();
25299
25299
  }, me;
25300
25300
  }(), Ui = xt.prototype;
25301
- return W.prototype = Ui, [["$ms", s], ["$s", l], ["$m", o], ["$H", d], ["$W", u], ["$M", c], ["$y", E], ["$D", R]].forEach(function(me) {
25301
+ return W.prototype = Ui, [["$ms", s], ["$s", l], ["$m", o], ["$H", d], ["$W", u], ["$M", c], ["$y", E], ["$D", D]].forEach(function(me) {
25302
25302
  Ui[me[1]] = function(te) {
25303
25303
  return this.$g(te, me[0], me[1]);
25304
25304
  };
@@ -25311,7 +25311,7 @@ var Tm = { exports: {} };
25311
25311
  })(Tm);
25312
25312
  var v8 = Tm.exports;
25313
25313
  const v = /* @__PURE__ */ af(v8);
25314
- var D = /* @__PURE__ */ ((r) => (r.Error = "error", r.Warning = "warning", r))(D || {}), $ = /* @__PURE__ */ ((r) => (r.InvalidObjectStructure = "invalid-object-structure", r.NameNotUniqueInScope = "name-not-unique-in-scope", r.EmptyName = "empty-name", r.MissingCaller = "missing-caller", r.PropertyOverwritesOtherSiblingWithSameName = "property-overwrites-other-sibling-with-same-name", r.PropertyOverwritesOtherSiblingWithSameImplementation = "property-overwrites-other-sibling-with-same-name", r.PropertyOverwritesOtherImplementedEntitysPropertyWithSameName = "property-overwrites-other-implemented-entitys-property-with-same-name", r.PropertyOverwritesOtherImplementedEntitysPropertyWithSameImplementation = "property-overwrites-other-implemented-entitys-property-with-same-name", r.PropertyOverwritesOtherExtendedEntitysPropertyWithSameImplementation = "property-overwrites-other-extended-entitys-property-with-same-name", r.PropertyOverwritesOtherExtendedEntitysPropertyWithSameName = "property-overwrites-other-extended-entitys-property-with-same-name", r.PropertyOverwritesBasePropertyWithSameName = "property-overwrites-base-property-with-same-name", r.PropertyOverwritesBasePropertyWithSameImplementation = "property-overwrites-base-property-with-same-name", r.MethodOverwritesOtherSiblingWithSameName = "method-overwrites-other-sibling-with-same-name", r.MethodOverwritesOtherSiblingWithSameImplementation = "method-overwrites-other-sibling-with-same-name", r.MethodOverwritesOtherImplementedEntitysMethodWithSameName = "method-overwrites-other-implemented-entitys-method-with-same-name", r.MethodOverwritesOtherImplementedEntitysMethodWithSameImplementation = "method-overwrites-other-implemented-entitys-method-with-same-name", r.MethodOverwritesOtherExtendedEntitysMethodWithSameImplementation = "method-overwrites-other-extended-entitys-method-with-same-name", r.MethodOverwritesOtherExtendedEntitysMethodWithSameName = "method-overwrites-other-extended-entitys-method-with-same-name", r.MethodOverwritesBaseMethodWithSameName = "method-overwrites-base-method-with-same-name", r.MethodOverwritesBaseMethodWithSameImplementation = "method-overwrites-base-method-with-same-name", r.LoopBodyFunctionOverwrite = "loop-body-function-overwrite", r.NoOverlapWithImplementedSignature = "no-overlap-with-implemented-signature", r.ReaderWriterIncompatibleDataType = "reader-writer-incompatible-data-type", r.UnreachableEntity = "unreachable-entity", r.InternalCallParentMissingDataType = "internal-call-parent-missing-data-type", r.InternalCallParentDeclarationEntityInvalidType = "internal-call-parent-declaration-entity-invalid-type", r.InternalCallDeclarationNotFoundInParentDatatypeEntity = "internal-call-declaration-not-found-in-parent-datatype-entity", r.InternalCallDeclarationIsNotFunctionDeclaration = "internal-call-declaration-is-not-function-declaration", r.InternalCallDeclarationNotInParentDatatypeEntity = "internal-call-declaration-not-in-parent-datatype-entity", r))($ || {}), b = /* @__PURE__ */ ((r) => (r.RootReference = "root-reference", r.ReferencedEntityNotFound = "referenced-entity-not-found", r.EntityIdNotUnique = "entity-id-not-unique", r.BuiltInEntityGenerated = "built-in-entity-generated", r.BuiltInEntityUpdated = "built-in-entity-updated", r.BuiltInEntityDeleted = "built-in-entity-deleted", r.UnknownEntityType = "unknown-entity-type", r.MissingTypeProperty = "missing-type-property", r.MissingIdProperty = "missing-id-property", r.BuiltInEntityParent = "built-in-entity-parent", r.InvalidBuiltInEntityReference = "invalid-built-in-entity-reference", r.RecommendedImplementAbstractEntityAction = "recommended-implement-abstract-entity-action", r.RecommendedImplementOperationAction = "recommended-implement-operation-action", r.RecommendedImplementFunctionCallAction = "recommended-implement-function-call-action", r.RecommendedImplementVariableDeclarationAction = "recommended-implement-variable-declaration-action", r.RecommendedImplementVariableInstanceAction = "recommended-implement-variable-instance-action", r.RecommendedImplementConditionAction = "recommended-implement-condition-action", r.InvalidReferenceObjectStructure = "invalid-reference-object-structure", r.ContainsSingleButShouldBeReferenceList = "contains-single-but-should-be-reference-list", r.ContainsListButShouldReferenceSingle = "contains-list-but-should-reference-single", r.InvalidParentReference = "invalid-parent-reference", r.InvalidImplementsReference = "invalid-implements-reference", r.InvalidExtendsReference = "invalid-extends-reference", r.InvalidGenerationActionPayload = "invalid-generation-action-payload", r.InvalidReference = "invalid-reference", r.InvalidInternalCallParentRelation = "invalid-internal-call-parent-relation", r.InvalidUpdateEntityOperation = "invalid-update-entity-operation", r.NewEntityWouldOverriteExisting = "new-entity-would-overrite-existing", r.InvalidDownstreamPropertyOverride = "invalid-downstream-property-override", r.UnrecognizedProperty = "unrecognized-property", r.SelfReference = "self-reference", r.DuplicateReference = "duplicate-reference", r.CallerWithIncompatibleScope = "caller-with-incompatible-scope", r.InvalidFunctionDeclarationForFunctionCall = "invalid-function-declaration-for-function-call", r.InvalidInputMapDeclaration = "invalid-input-map-declaration", r.InvalidActionDescriptorForOperation = "invalid-action-descriptor-for-operation", r.InvalidActionDescriptorForCondition = "invalid-action-descriptor-for-condition", r.InvalidActionDescriptorForLoop = "invalid-action-descriptor-for-loop", r.InvalidInmutablePropertyOverride = "invalid-inmutable-property-override", r.OutputOverwrite = "output-overwrite", r.InputOverwrite = "input-overwrite", r.IncompatibleScope = "incompatible-scope", r.InvalidParentUpdate = "invalid-parent-update", r.NonInteractiveEntityReferenced = "non-interactive-entity-referenced", r.InvalidParentRelationType = "invalid-parent-relation-type", r))(b || {}), F = /* @__PURE__ */ ((r) => (r.NoPrimaryKeyProperty = "no-primary-key-property", r.ScopeWithoutLogic = "scope-without-logic", r.AbstractEntityImplements = "abstract-entity-implements", r.ImplementsIncompatibleEntities = "implements-incompatible-entities", r.ExtendsIncompatibleEntities = "extends-incompatible-entities", r.NonAbstractExtendingAbstractEntity = "non-abstract-extending-abstract-entity", r.AbstractExtendingNonAbstractEntity = "abstract-extending-non-abstract-entity", r.NonStaticExtendingStaticEntity = "non-static-extending-static-entity", r.StaticExtendingNonStaticEntity = "static-extending-non-static-entity", r.StaticImplementingNonStaticEntity = "static-implementing-non-static-entity", r.NonStaticImplementingStaticEntity = "non-static-implementing-static-entity", r.ImplementingNonAbstractEntity = "implementing-non-abstract-entity", r.ExtendingNonInteractiveEntity = "extending-non-interactive-entity", r.AbstractEntityWithNonAbstractMethods = "abstract-entity-with-non-abstract-methods", r.AbstractEntityWithNonAbstractProperties = "abstract-entity-with-non-abstract-properties", r.StaticEntityWithNonStaticProperties = "static-entity-with-non-static-properties", r.NonStaticPropertyInStaticEntity = "non-static-property-in-static-entity", r.AbstractPropertyInNonAbstractEntity = "abstract-property-in-non-abstract-entity", r.AbstractMethodInNonAbstractEntity = "abstract-method-in-non-abstract-entity", r.IncorrectEntityImplementation = "incorrect-entity-implementation", r.IncorrectMethodImplementation = "incorrect-method-implementation", r.IncorrectPropertyImplementation = "incorrect-property-implementation", r.PropertyImplementsNonAbstact = "property-implements-non-abstract", r.NonStaticPropertyImplementsStatic = "non-static-property-implements-static", r.StaticPropertyImplementsNonStatic = "static-property-implements-non-static", r.PropertyImplementsIncompatibleType = "property-implements-incompatible-type", r.MissingPropertyImplementation = "missing-property-implementation", r.MissingMethodImplementation = "missing-method-implementation", r.NoProperties = "no-properties", r.ReadingFromIncompatibleType = "reading-from-incompatible-type", r.WritingToIncompatibleType = "writing-to-incompatible-type", r.InvalidPropertiesCombination = "invalid-properties-combination", r.DisconnectedCallableEntity = "disconnected-callable-entity", r.VariableReadsValueAndInternalCall = "variable-reads-value-and-internal-call", r.VariableWritesValuesAndInternalCall = "variable-writes-values-and-internal-call", r.VariableHasInputsAndInternalCall = "variable-has-inputs-and-internal-calls", r.VariableHasOutputsAndInternalCall = "variable-has-outputs-and-internal-call", r.VariableIsCalledAndHasInternalCall = "variable-is-called-and-has-internal-call", r.VariableCallsOthersAndHasInternalCall = "variable-calls-others-and-has-internal-call", r))(F || {});
25314
+ var R = /* @__PURE__ */ ((r) => (r.Error = "error", r.Warning = "warning", r))(R || {}), $ = /* @__PURE__ */ ((r) => (r.InvalidObjectStructure = "invalid-object-structure", r.NameNotUniqueInScope = "name-not-unique-in-scope", r.EmptyName = "empty-name", r.MissingCaller = "missing-caller", r.PropertyOverwritesOtherSiblingWithSameName = "property-overwrites-other-sibling-with-same-name", r.PropertyOverwritesOtherSiblingWithSameImplementation = "property-overwrites-other-sibling-with-same-name", r.PropertyOverwritesOtherImplementedEntitysPropertyWithSameName = "property-overwrites-other-implemented-entitys-property-with-same-name", r.PropertyOverwritesOtherImplementedEntitysPropertyWithSameImplementation = "property-overwrites-other-implemented-entitys-property-with-same-name", r.PropertyOverwritesOtherExtendedEntitysPropertyWithSameImplementation = "property-overwrites-other-extended-entitys-property-with-same-name", r.PropertyOverwritesOtherExtendedEntitysPropertyWithSameName = "property-overwrites-other-extended-entitys-property-with-same-name", r.PropertyOverwritesBasePropertyWithSameName = "property-overwrites-base-property-with-same-name", r.PropertyOverwritesBasePropertyWithSameImplementation = "property-overwrites-base-property-with-same-name", r.MethodOverwritesOtherSiblingWithSameName = "method-overwrites-other-sibling-with-same-name", r.MethodOverwritesOtherSiblingWithSameImplementation = "method-overwrites-other-sibling-with-same-name", r.MethodOverwritesOtherImplementedEntitysMethodWithSameName = "method-overwrites-other-implemented-entitys-method-with-same-name", r.MethodOverwritesOtherImplementedEntitysMethodWithSameImplementation = "method-overwrites-other-implemented-entitys-method-with-same-name", r.MethodOverwritesOtherExtendedEntitysMethodWithSameImplementation = "method-overwrites-other-extended-entitys-method-with-same-name", r.MethodOverwritesOtherExtendedEntitysMethodWithSameName = "method-overwrites-other-extended-entitys-method-with-same-name", r.MethodOverwritesBaseMethodWithSameName = "method-overwrites-base-method-with-same-name", r.MethodOverwritesBaseMethodWithSameImplementation = "method-overwrites-base-method-with-same-name", r.LoopBodyFunctionOverwrite = "loop-body-function-overwrite", r.NoOverlapWithImplementedSignature = "no-overlap-with-implemented-signature", r.ReaderWriterIncompatibleDataType = "reader-writer-incompatible-data-type", r.UnreachableEntity = "unreachable-entity", r.InternalCallParentMissingDataType = "internal-call-parent-missing-data-type", r.InternalCallParentDeclarationEntityInvalidType = "internal-call-parent-declaration-entity-invalid-type", r.InternalCallDeclarationNotFoundInParentDatatypeEntity = "internal-call-declaration-not-found-in-parent-datatype-entity", r.InternalCallDeclarationIsNotFunctionDeclaration = "internal-call-declaration-is-not-function-declaration", r.InternalCallDeclarationNotInParentDatatypeEntity = "internal-call-declaration-not-in-parent-datatype-entity", r))($ || {}), b = /* @__PURE__ */ ((r) => (r.RootReference = "root-reference", r.ReferencedEntityNotFound = "referenced-entity-not-found", r.EntityIdNotUnique = "entity-id-not-unique", r.BuiltInEntityGenerated = "built-in-entity-generated", r.BuiltInEntityUpdated = "built-in-entity-updated", r.BuiltInEntityDeleted = "built-in-entity-deleted", r.UnknownEntityType = "unknown-entity-type", r.MissingTypeProperty = "missing-type-property", r.MissingIdProperty = "missing-id-property", r.BuiltInEntityParent = "built-in-entity-parent", r.InvalidBuiltInEntityReference = "invalid-built-in-entity-reference", r.RecommendedImplementAbstractEntityAction = "recommended-implement-abstract-entity-action", r.RecommendedImplementOperationAction = "recommended-implement-operation-action", r.RecommendedImplementFunctionCallAction = "recommended-implement-function-call-action", r.RecommendedImplementVariableDeclarationAction = "recommended-implement-variable-declaration-action", r.RecommendedImplementVariableInstanceAction = "recommended-implement-variable-instance-action", r.RecommendedImplementConditionAction = "recommended-implement-condition-action", r.InvalidReferenceObjectStructure = "invalid-reference-object-structure", r.ContainsSingleButShouldBeReferenceList = "contains-single-but-should-be-reference-list", r.ContainsListButShouldReferenceSingle = "contains-list-but-should-reference-single", r.InvalidParentReference = "invalid-parent-reference", r.InvalidImplementsReference = "invalid-implements-reference", r.InvalidExtendsReference = "invalid-extends-reference", r.InvalidGenerationActionPayload = "invalid-generation-action-payload", r.InvalidReference = "invalid-reference", r.InvalidInternalCallParentRelation = "invalid-internal-call-parent-relation", r.InvalidUpdateEntityOperation = "invalid-update-entity-operation", r.NewEntityWouldOverriteExisting = "new-entity-would-overrite-existing", r.InvalidDownstreamPropertyOverride = "invalid-downstream-property-override", r.UnrecognizedProperty = "unrecognized-property", r.SelfReference = "self-reference", r.DuplicateReference = "duplicate-reference", r.CallerWithIncompatibleScope = "caller-with-incompatible-scope", r.InvalidFunctionDeclarationForFunctionCall = "invalid-function-declaration-for-function-call", r.InvalidInputMapDeclaration = "invalid-input-map-declaration", r.InvalidActionDescriptorForOperation = "invalid-action-descriptor-for-operation", r.InvalidActionDescriptorForCondition = "invalid-action-descriptor-for-condition", r.InvalidActionDescriptorForLoop = "invalid-action-descriptor-for-loop", r.InvalidInmutablePropertyOverride = "invalid-inmutable-property-override", r.OutputOverwrite = "output-overwrite", r.InputOverwrite = "input-overwrite", r.IncompatibleScope = "incompatible-scope", r.InvalidParentUpdate = "invalid-parent-update", r.NonInteractiveEntityReferenced = "non-interactive-entity-referenced", r.InvalidParentRelationType = "invalid-parent-relation-type", r))(b || {}), F = /* @__PURE__ */ ((r) => (r.NoPrimaryKeyProperty = "no-primary-key-property", r.ScopeWithoutLogic = "scope-without-logic", r.AbstractEntityImplements = "abstract-entity-implements", r.ImplementsIncompatibleEntities = "implements-incompatible-entities", r.ExtendsIncompatibleEntities = "extends-incompatible-entities", r.NonAbstractExtendingAbstractEntity = "non-abstract-extending-abstract-entity", r.AbstractExtendingNonAbstractEntity = "abstract-extending-non-abstract-entity", r.NonStaticExtendingStaticEntity = "non-static-extending-static-entity", r.StaticExtendingNonStaticEntity = "static-extending-non-static-entity", r.StaticImplementingNonStaticEntity = "static-implementing-non-static-entity", r.NonStaticImplementingStaticEntity = "non-static-implementing-static-entity", r.ImplementingNonAbstractEntity = "implementing-non-abstract-entity", r.ExtendingNonInteractiveEntity = "extending-non-interactive-entity", r.AbstractEntityWithNonAbstractMethods = "abstract-entity-with-non-abstract-methods", r.AbstractEntityWithNonAbstractProperties = "abstract-entity-with-non-abstract-properties", r.StaticEntityWithNonStaticProperties = "static-entity-with-non-static-properties", r.NonStaticPropertyInStaticEntity = "non-static-property-in-static-entity", r.AbstractPropertyInNonAbstractEntity = "abstract-property-in-non-abstract-entity", r.AbstractMethodInNonAbstractEntity = "abstract-method-in-non-abstract-entity", r.IncorrectEntityImplementation = "incorrect-entity-implementation", r.IncorrectMethodImplementation = "incorrect-method-implementation", r.IncorrectPropertyImplementation = "incorrect-property-implementation", r.PropertyImplementsNonAbstact = "property-implements-non-abstract", r.NonStaticPropertyImplementsStatic = "non-static-property-implements-static", r.StaticPropertyImplementsNonStatic = "static-property-implements-non-static", r.PropertyImplementsIncompatibleType = "property-implements-incompatible-type", r.MissingPropertyImplementation = "missing-property-implementation", r.MissingMethodImplementation = "missing-method-implementation", r.NoProperties = "no-properties", r.ReadingFromIncompatibleType = "reading-from-incompatible-type", r.WritingToIncompatibleType = "writing-to-incompatible-type", r.InvalidPropertiesCombination = "invalid-properties-combination", r.DisconnectedCallableEntity = "disconnected-callable-entity", r.VariableReadsValueAndInternalCall = "variable-reads-value-and-internal-call", r.VariableWritesValuesAndInternalCall = "variable-writes-values-and-internal-call", r.VariableHasInputsAndInternalCall = "variable-has-inputs-and-internal-calls", r.VariableHasOutputsAndInternalCall = "variable-has-outputs-and-internal-call", r.VariableIsCalledAndHasInternalCall = "variable-is-called-and-has-internal-call", r.VariableCallsOthersAndHasInternalCall = "variable-calls-others-and-has-internal-call", r))(F || {});
25315
25315
  class w {
25316
25316
  constructor(a) {
25317
25317
  // A deterministic error code, so if the same error occurs again in a subsequent validation run,
@@ -29664,7 +29664,7 @@ function j0(r, a) {
29664
29664
  new w({
29665
29665
  id: `${r.id}--${$.EmptyName}`,
29666
29666
  message: `Entity with id "${r.id}" and type "${r.type}" has an empty name. Please provide a 'name' string.`,
29667
- severity: D.Error,
29667
+ severity: R.Error,
29668
29668
  code: $.EmptyName,
29669
29669
  issue: null
29670
29670
  })
@@ -29677,7 +29677,7 @@ function j0(r, a) {
29677
29677
  id: `${r.id}--${$.NameNotUniqueInScope}`,
29678
29678
  message: `Entity with id "${r.id}" and type "${r.type}" has a name "${r.name}" that is not unique in the project. Entity with id "${t[0].id}" has the same name.
29679
29679
  Please provide a unique 'name' string.`,
29680
- severity: D.Error,
29680
+ severity: R.Error,
29681
29681
  code: $.NameNotUniqueInScope,
29682
29682
  issue: null
29683
29683
  })
@@ -29689,7 +29689,7 @@ function L0(r, a) {
29689
29689
  new w({
29690
29690
  id: `${r.id}--${$.EmptyName}`,
29691
29691
  message: `Entity with id "${r.id}" and type "${r.type}" has an empty name. Please provide a 'name' string.`,
29692
- severity: D.Error,
29692
+ severity: R.Error,
29693
29693
  code: $.EmptyName,
29694
29694
  issue: null
29695
29695
  })
@@ -29713,7 +29713,7 @@ function L0(r, a) {
29713
29713
  id: `${r.id}--${$.NameNotUniqueInScope}`,
29714
29714
  message: `Entity with id "${r.id}" and type "${r.type}" has a name "${r.name}" that is not unique in ${i.type === n.Project ? "the globally declared project scope" : "its parent entity"}. Entity with id "${l[0].id}" has the same name.
29715
29715
  Please provide a unique 'name' string.`,
29716
- severity: D.Error,
29716
+ severity: R.Error,
29717
29717
  code: $.NameNotUniqueInScope,
29718
29718
  issue: null
29719
29719
  })
@@ -29725,7 +29725,7 @@ function $0(r, a) {
29725
29725
  new w({
29726
29726
  id: `${r.id}--${$.EmptyName}`,
29727
29727
  message: `Entity with id "${r.id}" and type "${r.type}" has an empty name. Please provide a 'name' string.`,
29728
- severity: D.Error,
29728
+ severity: R.Error,
29729
29729
  code: $.EmptyName,
29730
29730
  issue: null
29731
29731
  })
@@ -29736,7 +29736,7 @@ function $0(r, a) {
29736
29736
  new w({
29737
29737
  id: `${r.id}--parent-reference--${b.ReferencedEntityNotFound}`,
29738
29738
  message: `The entity with id '${r.parent}' that isn't yet found in the project. Perhaps it should be created first. Or perhaps the ID is incorrect.`,
29739
- severity: D.Error,
29739
+ severity: R.Error,
29740
29740
  code: b.ReferencedEntityNotFound,
29741
29741
  issue: null
29742
29742
  })
@@ -29752,7 +29752,7 @@ function $0(r, a) {
29752
29752
  id: `${r.id}--${$.NameNotUniqueInScope}`,
29753
29753
  message: `Entity with id "${r.id}" and type "${r.type}" has a name "${r.name}" that is not unique in its scope or higher scopes. Entity with id "${s[0].id}" has the same name.
29754
29754
  Please provide a unique 'name' string.`,
29755
- severity: D.Error,
29755
+ severity: R.Error,
29756
29756
  code: $.NameNotUniqueInScope,
29757
29757
  issue: null
29758
29758
  })
@@ -29766,7 +29766,7 @@ function G0(r, a) {
29766
29766
  new w({
29767
29767
  id: `${r.id}--${$.EmptyName}`,
29768
29768
  message: `Entity with id "${r.id}" and type "${r.type}" has an empty name. Please provide a 'name' string.`,
29769
- severity: D.Error,
29769
+ severity: R.Error,
29770
29770
  code: $.EmptyName,
29771
29771
  issue: null
29772
29772
  })
@@ -29777,7 +29777,7 @@ function G0(r, a) {
29777
29777
  new w({
29778
29778
  id: `${r.id}--parent-reference--${b.InvalidReferenceObjectStructure}`,
29779
29779
  message: `Reference object at 'parent' property for entity with id "${r.id}" and type "${r.type}" is not a valid reference. A reference needs to be a 'id' string of an existing entity in the project.`,
29780
- severity: D.Error,
29780
+ severity: R.Error,
29781
29781
  code: b.InvalidReferenceObjectStructure,
29782
29782
  issue: null
29783
29783
  })
@@ -29789,7 +29789,7 @@ function G0(r, a) {
29789
29789
  new w({
29790
29790
  id: `${r.id}--parent-reference--${b.ReferencedEntityNotFound}`,
29791
29791
  message: `The entity with id '${t}' that isn't yet found in the project. Perhaps it should be created first. Or perhaps the ID is incorrect.`,
29792
- severity: D.Error,
29792
+ severity: R.Error,
29793
29793
  code: b.ReferencedEntityNotFound,
29794
29794
  issue: null
29795
29795
  })
@@ -29803,7 +29803,7 @@ function G0(r, a) {
29803
29803
  id: `${r.id}--${$.NameNotUniqueInScope}`,
29804
29804
  message: `Entity with id "${r.id}" and type "${r.type}" has a name "${r.name}" that is not unique among all properties in the parent entity. Entity with id "${l[0].id}" has the same name.
29805
29805
  Please provide a unique 'name' string.`,
29806
- severity: D.Error,
29806
+ severity: R.Error,
29807
29807
  code: $.NameNotUniqueInScope,
29808
29808
  issue: null
29809
29809
  })
@@ -29818,7 +29818,7 @@ function F0(r, a) {
29818
29818
  new w({
29819
29819
  id: `${r.id}--${$.EmptyName}`,
29820
29820
  message: `Entity with id "${r.id}" and type "${r.type}" has an empty name. Please provide a 'name' string.`,
29821
- severity: D.Error,
29821
+ severity: R.Error,
29822
29822
  code: $.EmptyName,
29823
29823
  issue: null
29824
29824
  })
@@ -29829,7 +29829,7 @@ function F0(r, a) {
29829
29829
  new w({
29830
29830
  id: `${r.id}--parent-reference--${b.InvalidReferenceObjectStructure}`,
29831
29831
  message: `Reference object at 'parent' property for entity with id "${r.id}" and type "${r.type}" is not a valid reference. A reference needs to be a 'id' string of an existing entity in the project.`,
29832
- severity: D.Error,
29832
+ severity: R.Error,
29833
29833
  code: b.InvalidReferenceObjectStructure,
29834
29834
  issue: null
29835
29835
  })
@@ -29841,7 +29841,7 @@ function F0(r, a) {
29841
29841
  new w({
29842
29842
  id: `${r.id}--parent-reference--${b.ReferencedEntityNotFound}`,
29843
29843
  message: `The entity with id '${t}' that isn't yet found in the project. Perhaps it should be created first. Or perhaps the ID is incorrect.`,
29844
- severity: D.Error,
29844
+ severity: R.Error,
29845
29845
  code: b.ReferencedEntityNotFound,
29846
29846
  issue: null
29847
29847
  })
@@ -29857,7 +29857,7 @@ function F0(r, a) {
29857
29857
  id: `${r.id}--${$.NameNotUniqueInScope}`,
29858
29858
  message: `Entity with id "${r.id}" and type "${r.type}" has a name "${r.name}" that is not unique among all inputs declared in the parent entity. Entity with id "${l[0].id}" has the same name.
29859
29859
  Please provide a unique 'name' string.`,
29860
- severity: D.Error,
29860
+ severity: R.Error,
29861
29861
  code: $.NameNotUniqueInScope,
29862
29862
  issue: null
29863
29863
  })
@@ -29872,7 +29872,7 @@ function g0(r, a) {
29872
29872
  new w({
29873
29873
  id: `${r.id}--${$.EmptyName}`,
29874
29874
  message: `Entity with id "${r.id}" and type "${r.type}" has an empty name. Please provide a 'name' string.`,
29875
- severity: D.Error,
29875
+ severity: R.Error,
29876
29876
  code: $.EmptyName,
29877
29877
  issue: null
29878
29878
  })
@@ -29883,7 +29883,7 @@ function g0(r, a) {
29883
29883
  new w({
29884
29884
  id: `${r.id}--parent-reference--${b.InvalidReferenceObjectStructure}`,
29885
29885
  message: `Reference object at 'parent' property for entity with id "${r.id}" and type "${r.type}" is not a valid reference. A reference needs to be a 'id' string of an existing entity in the project.`,
29886
- severity: D.Error,
29886
+ severity: R.Error,
29887
29887
  code: b.InvalidReferenceObjectStructure,
29888
29888
  issue: null
29889
29889
  })
@@ -29895,7 +29895,7 @@ function g0(r, a) {
29895
29895
  new w({
29896
29896
  id: `${r.id}--parent-reference--${b.ReferencedEntityNotFound}`,
29897
29897
  message: `The entity with id '${t}' that isn't yet found in the project. Perhaps it should be created first. Or perhaps the ID is incorrect.`,
29898
- severity: D.Error,
29898
+ severity: R.Error,
29899
29899
  code: b.ReferencedEntityNotFound,
29900
29900
  issue: null
29901
29901
  })
@@ -29911,7 +29911,7 @@ function g0(r, a) {
29911
29911
  id: `${r.id}--${$.NameNotUniqueInScope}`,
29912
29912
  message: `Entity with id "${r.id}" and type "${r.type}" has a name "${r.name}" that is not unique among all outputs declared in the parent entity. Entity with id "${l[0].id}" has the same name.
29913
29913
  Please provide a unique 'name' string.`,
29914
- severity: D.Error,
29914
+ severity: R.Error,
29915
29915
  code: $.NameNotUniqueInScope,
29916
29916
  issue: null
29917
29917
  })
@@ -29979,7 +29979,7 @@ function k0(r) {
29979
29979
  r.project
29980
29980
  )}" with id "${r.id}".`,
29981
29981
  issue: null,
29982
- severity: D.Error,
29982
+ severity: R.Error,
29983
29983
  code: F.PropertyImplementsNonAbstact,
29984
29984
  entity: r
29985
29985
  });
@@ -30000,7 +30000,7 @@ function Z0(r) {
30000
30000
  r.project
30001
30001
  )}" with id "${e.id}".`,
30002
30002
  issue: null,
30003
- severity: D.Error,
30003
+ severity: R.Error,
30004
30004
  code: F.PropertyImplementsNonAbstact,
30005
30005
  entity: r
30006
30006
  });
@@ -30017,7 +30017,7 @@ function Z0(r) {
30017
30017
  r.project
30018
30018
  )}" with id "${e.id}".`,
30019
30019
  issue: null,
30020
- severity: D.Error,
30020
+ severity: R.Error,
30021
30021
  code: F.NonStaticPropertyImplementsStatic,
30022
30022
  entity: r
30023
30023
  });
@@ -30034,7 +30034,7 @@ function Z0(r) {
30034
30034
  r.project
30035
30035
  )}" with id "${e.id}".`,
30036
30036
  issue: null,
30037
- severity: D.Error,
30037
+ severity: R.Error,
30038
30038
  code: F.StaticPropertyImplementsNonStatic,
30039
30039
  entity: r
30040
30040
  });
@@ -30051,7 +30051,7 @@ function Z0(r) {
30051
30051
  r.project
30052
30052
  )}" with id "${e.id}" that has an incompatible data type.`,
30053
30053
  issue: null,
30054
- severity: D.Error,
30054
+ severity: R.Error,
30055
30055
  code: F.PropertyImplementsIncompatibleType,
30056
30056
  entity: r
30057
30057
  });
@@ -30073,7 +30073,7 @@ function r7(r, a) {
30073
30073
  new w({
30074
30074
  id: `${r.id}--${r.parent}--${b.ReferencedEntityNotFound}`,
30075
30075
  code: b.ReferencedEntityNotFound,
30076
- severity: D.Error,
30076
+ severity: R.Error,
30077
30077
  message: `Entity of type "${r.type}" with id "${r.id}", is referencing an entity with id "${r.parent}" that isn't yet found in the project. Perhaps it should be created first. Or perhaps the ID is incorrect.`,
30078
30078
  issue: null
30079
30079
  })
@@ -30089,7 +30089,7 @@ function r7(r, a) {
30089
30089
  new w({
30090
30090
  id: `${r.id}--${b.InvalidBuiltInEntityReference}`,
30091
30091
  code: b.InvalidBuiltInEntityReference,
30092
- severity: D.Error,
30092
+ severity: R.Error,
30093
30093
  message: l,
30094
30094
  issue: null
30095
30095
  })
@@ -30099,7 +30099,7 @@ function r7(r, a) {
30099
30099
  new w({
30100
30100
  id: `${r.id}--${r.parent}--${b.InvalidParentReference}`,
30101
30101
  code: b.InvalidParentReference,
30102
- severity: D.Error,
30102
+ severity: R.Error,
30103
30103
  message: `Entity of type "${r.type}" with id "${r.id}", has a parent reference that isn't pointing to an entity of type 'definition-entity'.`,
30104
30104
  issue: null
30105
30105
  })
@@ -30124,7 +30124,7 @@ ${un}`, e.push(
30124
30124
  new w({
30125
30125
  id: `${r.id}--${b.NonInteractiveEntityReferenced}`,
30126
30126
  code: b.NonInteractiveEntityReferenced,
30127
- severity: D.Error,
30127
+ severity: R.Error,
30128
30128
  message: d,
30129
30129
  issue: null
30130
30130
  })
@@ -30138,7 +30138,7 @@ ${un}`, e.push(
30138
30138
  new w({
30139
30139
  id: `${r.id}--${r.implements}--${b.SelfReference}`,
30140
30140
  code: b.SelfReference,
30141
- severity: D.Error,
30141
+ severity: R.Error,
30142
30142
  message: `Entity of type "${r.type}" with id "${r.id}", has a reference to itself at 'implements'. This is not allowed. Change the reference string or the 'entityId' property of the reference object.`,
30143
30143
  issue: null
30144
30144
  })
@@ -30148,7 +30148,7 @@ ${un}`, e.push(
30148
30148
  new w({
30149
30149
  id: `${r.id}--${r.implements}--${b.ReferencedEntityNotFound}`,
30150
30150
  code: b.ReferencedEntityNotFound,
30151
- severity: D.Error,
30151
+ severity: R.Error,
30152
30152
  message: `Entity of type "${r.type}" with id "${r.id}", is referencing an entity with id "${r.implements}" that isn't yet found in the project. Perhaps it should be created first. Or perhaps the ID is incorrect.`,
30153
30153
  issue: null
30154
30154
  })
@@ -30164,7 +30164,7 @@ ${un}`, e.push(
30164
30164
  new w({
30165
30165
  id: `${r.id}--${$.PropertyOverwritesOtherSiblingWithSameImplementation}`,
30166
30166
  code: $.PropertyOverwritesOtherSiblingWithSameImplementation,
30167
- severity: D.Error,
30167
+ severity: R.Error,
30168
30168
  message: `The property with id "${r.id}" is trying to implement the property with id "${r.implements}", but the parent entity already has a property with id '${u.id}' that implements the same base property.`,
30169
30169
  issue: null
30170
30170
  })
@@ -30172,7 +30172,7 @@ ${un}`, e.push(
30172
30172
  new w({
30173
30173
  id: `${r.id}--${r.implements}--${b.InvalidImplementsReference}`,
30174
30174
  code: b.InvalidImplementsReference,
30175
- severity: D.Error,
30175
+ severity: R.Error,
30176
30176
  message: `Entity of type "${r.type}" with id "${r.id}", has an 'implements' reference that isn't pointing to an abstract entity.`,
30177
30177
  issue: null
30178
30178
  })
@@ -30180,7 +30180,7 @@ ${un}`, e.push(
30180
30180
  new w({
30181
30181
  id: `${r.id}--${r.implements}--${b.InvalidImplementsReference}`,
30182
30182
  code: b.InvalidImplementsReference,
30183
- severity: D.Error,
30183
+ severity: R.Error,
30184
30184
  message: `Entity of type "${r.type}" with id "${r.id}", has an 'implements' reference that isn't pointing to an entity of type 'property'.`,
30185
30185
  issue: null
30186
30186
  })
@@ -30478,139 +30478,137 @@ class A {
30478
30478
  remove(a) {
30479
30479
  return this.has(a) && (delete this.added[a], delete this.updated[a], delete this.removed[a], delete this.affected[a], this.seenEntities = this.seenEntities.filter((e) => e !== a)), this;
30480
30480
  }
30481
- add(a, e) {
30482
- var l, o, d;
30481
+ add(a, e, t = { preventRecursion: !1 }) {
30482
+ var o, d, u;
30483
30483
  if (!this.open || !this.dirty)
30484
30484
  return this;
30485
- const t = Array.from(
30485
+ const i = Array.from(
30486
30486
  /* @__PURE__ */ new Set([...this.project.getAllBuiltInIds(), ...Zi()])
30487
30487
  );
30488
- if (t.includes(a.id))
30488
+ if (i.includes(a.id))
30489
30489
  return this;
30490
30490
  if (!vp(a, {
30491
30491
  ...this.project.instances,
30492
30492
  ...this.project.builtInInstances
30493
30493
  }).every(
30494
- (u) => !t.includes(u)
30494
+ (f) => !i.includes(f)
30495
30495
  ))
30496
30496
  return this;
30497
30497
  if (this.seenEntities.indexOf(a.id) === -1 && this.seenEntities.push(a.id), e === "removed") {
30498
30498
  if (this.added[a.id])
30499
- return delete this.added[a.id], this.seenEntities = this.seenEntities.filter((f) => f !== a.id), delete this.project.deletedInstances[a.id], this;
30500
- if (this.updated[a.id] && delete this.updated[a.id], this.affected[a.id] && delete this.affected[a.id], !this.hasRemoved(a.id)) {
30501
- a.increaseVersion(this.timestamp);
30502
- const { added: f, updated: c, removed: T, affected: E } = a.recursiveCaptureUpstreamVersions(this.timestamp);
30503
- for (const R of f)
30499
+ return delete this.added[a.id], this.seenEntities = this.seenEntities.filter((c) => c !== a.id), delete this.project.deletedInstances[a.id], this;
30500
+ if (this.updated[a.id] && delete this.updated[a.id], this.affected[a.id] && delete this.affected[a.id], !this.hasRemoved(a.id) && (a.increaseVersion(this.timestamp), !t.preventRecursion)) {
30501
+ const { added: c, updated: T, removed: E, affected: D } = a.recursiveCaptureUpstreamVersions(this.timestamp);
30502
+ for (const O of c)
30504
30503
  this.add(
30505
- R,
30504
+ O,
30506
30505
  "added"
30507
30506
  /* Added */
30508
30507
  );
30509
- for (const R of c)
30508
+ for (const O of T)
30510
30509
  this.add(
30511
- R,
30510
+ O,
30512
30511
  "updated"
30513
30512
  /* Updated */
30514
30513
  );
30515
- for (const R of T)
30514
+ for (const O of E)
30516
30515
  this.add(
30517
- R,
30516
+ O,
30518
30517
  "removed"
30519
30518
  /* Removed */
30520
30519
  );
30521
- for (const R of E)
30520
+ for (const O of D)
30522
30521
  this.add(
30523
- R,
30522
+ O,
30524
30523
  "affected"
30525
30524
  /* Affected */
30526
30525
  );
30527
30526
  }
30528
30527
  a.captureVersion();
30529
- const u = (l = a.knownVersions) == null ? void 0 : l.get(a.version);
30530
- if (!u)
30528
+ const f = (o = a.knownVersions) == null ? void 0 : o.get(a.version);
30529
+ if (!f)
30531
30530
  throw Error(
30532
30531
  `Version ${a.version} should have a cached version instance but it wasn't found when adding entity to change-set`
30533
30532
  );
30534
- return this.removed[a.id] = u, this;
30533
+ return this.removed[a.id] = f, this;
30535
30534
  }
30536
30535
  if (e === "added") {
30537
30536
  if (this.removed[a.id])
30538
30537
  return this;
30539
- if (this.updated[a.id] && delete this.updated[a.id], this.affected[a.id] && delete this.affected[a.id], !this.hasAdded(a.id)) {
30540
- const { added: f, updated: c, removed: T, affected: E } = a.recursiveCaptureUpstreamVersions(this.timestamp);
30541
- for (const R of f)
30538
+ if (this.updated[a.id] && delete this.updated[a.id], this.affected[a.id] && delete this.affected[a.id], !this.hasAdded(a.id) && !t.preventRecursion) {
30539
+ const { added: c, updated: T, removed: E, affected: D } = a.recursiveCaptureUpstreamVersions(this.timestamp);
30540
+ for (const O of c)
30542
30541
  this.add(
30543
- R,
30542
+ O,
30544
30543
  "added"
30545
30544
  /* Added */
30546
30545
  );
30547
- for (const R of c)
30546
+ for (const O of T)
30548
30547
  this.add(
30549
- R,
30548
+ O,
30550
30549
  "updated"
30551
30550
  /* Updated */
30552
30551
  );
30553
- for (const R of T)
30552
+ for (const O of E)
30554
30553
  this.add(
30555
- R,
30554
+ O,
30556
30555
  "removed"
30557
30556
  /* Removed */
30558
30557
  );
30559
- for (const R of E)
30558
+ for (const O of D)
30560
30559
  this.add(
30561
- R,
30560
+ O,
30562
30561
  "affected"
30563
30562
  /* Affected */
30564
30563
  );
30565
30564
  }
30566
30565
  a.previousVersion = null, a.captureVersion();
30567
- const u = (o = a.knownVersions) == null ? void 0 : o.get(a.version);
30568
- if (!u)
30566
+ const f = (d = a.knownVersions) == null ? void 0 : d.get(a.version);
30567
+ if (!f)
30569
30568
  throw Error(
30570
30569
  `Version ${a.version} should have a cached version instance but it wasn't found when adding entity to change-set`
30571
30570
  );
30572
- return this.added[a.id] = u, delete this.affected[a.id], this.addDependentsToAffected(a), this;
30571
+ return this.added[a.id] = f, delete this.affected[a.id], this.addDependentsToAffected(a), this;
30573
30572
  }
30574
30573
  if (e === "updated") {
30575
30574
  if (this.removed[a.id])
30576
30575
  return this;
30577
30576
  if (this.added[a.id])
30578
30577
  return a.captureVersion(), this.addDependentsToAffected(a), this;
30579
- if (this.affected[a.id] && delete this.affected[a.id], !this.hasUpdated(a.id)) {
30580
- a.increaseVersion(this.timestamp);
30581
- const { added: f, updated: c, removed: T, affected: E } = a.recursiveCaptureUpstreamVersions(this.timestamp);
30582
- for (const R of f)
30578
+ if (this.affected[a.id] && delete this.affected[a.id], !this.hasUpdated(a.id) && (a.increaseVersion(this.timestamp), !t.preventRecursion)) {
30579
+ const { added: c, updated: T, removed: E, affected: D } = a.recursiveCaptureUpstreamVersions(this.timestamp);
30580
+ for (const O of c)
30583
30581
  this.add(
30584
- R,
30582
+ O,
30585
30583
  "added"
30586
30584
  /* Added */
30587
30585
  );
30588
- for (const R of c)
30586
+ for (const O of T)
30589
30587
  this.add(
30590
- R,
30588
+ O,
30591
30589
  "updated"
30592
30590
  /* Updated */
30593
30591
  );
30594
- for (const R of T)
30592
+ for (const O of E)
30595
30593
  this.add(
30596
- R,
30594
+ O,
30597
30595
  "removed"
30598
30596
  /* Removed */
30599
30597
  );
30600
- for (const R of E)
30598
+ for (const O of D)
30601
30599
  this.add(
30602
- R,
30600
+ O,
30603
30601
  "affected"
30604
30602
  /* Affected */
30605
30603
  );
30606
30604
  }
30607
30605
  a.captureVersion();
30608
- const u = (d = a.knownVersions) == null ? void 0 : d.get(a.version);
30609
- if (!u)
30606
+ const f = (u = a.knownVersions) == null ? void 0 : u.get(a.version);
30607
+ if (!f)
30610
30608
  throw Error(
30611
30609
  `Version ${a.version} should have a cached version instance but it wasn't found when adding entity to change-set`
30612
30610
  );
30613
- return this.updated[a.id] = u, this.addDependentsToAffected(a), this;
30611
+ return this.updated[a.id] = f, this.addDependentsToAffected(a), this;
30614
30612
  }
30615
30613
  if (e === "affected") {
30616
30614
  if (this.removed[a.id])
@@ -30823,7 +30821,7 @@ const be = class be extends at {
30823
30821
  new w({
30824
30822
  id: `${this.id}--${b.InvalidParentUpdate}`,
30825
30823
  code: b.InvalidParentUpdate,
30826
- severity: D.Error,
30824
+ severity: R.Error,
30827
30825
  message: `Entity of type '${this.type}' with id '${this.id}' cannot have the 'parent' property updated, as it would mean moving the '${this.type}' entity to another parent entity.
30828
30826
  This is likely an incorrect strategy, either the '${this.type}' entity doesn't need to be updated or it should be deleted and a new one created in the desired parent.`,
30829
30827
  issue: null
@@ -30832,7 +30830,7 @@ This is likely an incorrect strategy, either the '${this.type}' entity doesn't n
30832
30830
  new w({
30833
30831
  id: `${this.id}--${$.InvalidObjectStructure}`,
30834
30832
  code: $.InvalidObjectStructure,
30835
- severity: D.Error,
30833
+ severity: R.Error,
30836
30834
  message: `Entity of type '${this.type}' with id '${this.id}' is not a value reading or writing entity.
30837
30835
  ${jl}`,
30838
30836
  issue: null
@@ -31616,7 +31614,7 @@ ${jl}`,
31616
31614
  "clone-entity"
31617
31615
  )
31618
31616
  ), t = null, i = null, s = !0) {
31619
- var E, R;
31617
+ var E, D;
31620
31618
  let l = yt(t, this);
31621
31619
  const o = i || y.UUID.uuid();
31622
31620
  let d = t || this.parent;
@@ -31654,7 +31652,7 @@ ${jl}`,
31654
31652
  s
31655
31653
  )) || null;
31656
31654
  c && f.setDataType(c);
31657
- const T = (R = this.defaultValue) == null ? void 0 : R.clone(
31655
+ const T = (D = this.defaultValue) == null ? void 0 : D.clone(
31658
31656
  e,
31659
31657
  f,
31660
31658
  y.UUID.uuid(),
@@ -31758,7 +31756,7 @@ function a7(r) {
31758
31756
  id: `${r.id}--${F.ScopeWithoutLogic}`,
31759
31757
  message: `Action "${G(r, r.project)}" with id "${r.id}" does not have any logic defined. So it doesn't do anything.`,
31760
31758
  issue: null,
31761
- severity: D.Warning,
31759
+ severity: R.Warning,
31762
31760
  code: F.ScopeWithoutLogic,
31763
31761
  entity: r
31764
31762
  });
@@ -31917,26 +31915,26 @@ const Re = class Re extends at {
31917
31915
  i = l.modifiedData;
31918
31916
  const o = L0(i, t), d = i.parent ? t.get(i.parent) : null;
31919
31917
  if (d && d.type === n.DefinitionEntity) {
31920
- const T = d, R = zt(T).filter(
31918
+ const T = d, D = zt(T).filter(
31921
31919
  (O) => !O.interactive
31922
31920
  );
31923
- if (R.length) {
31924
- let O = R.length > 1 ? `The entity of type '${e.type}' with id '${e.id}' can't be added to the 'parent' entity with id '${T.id}' because it extends or implements multiple '${n.BuiltInBaseEntity}' entities that are non-interactive ("${ne(
31925
- R.map(
31921
+ if (D.length) {
31922
+ let O = D.length > 1 ? `The entity of type '${e.type}' with id '${e.id}' can't be added to the 'parent' entity with id '${T.id}' because it extends or implements multiple '${n.BuiltInBaseEntity}' entities that are non-interactive ("${ne(
31923
+ D.map(
31926
31924
  (P) => G(P, P.project)
31927
31925
  ),
31928
31926
  '", "',
31929
31927
  '" and "'
31930
31928
  )}").` : `The entity of type '${e.type}' with id '${e.id}' can't be added to the 'parent' entity with id '${T.id}' because it extends or implements a '${n.BuiltInBaseEntity}' entity that is non-interactive ("${G(
31931
- R[0],
31932
- R[0].project
31929
+ D[0],
31930
+ D[0].project
31933
31931
  )}").`;
31934
31932
  O += `
31935
31933
  ${un}`, s.push(
31936
31934
  new w({
31937
31935
  id: `${e.id}--${b.NonInteractiveEntityReferenced}`,
31938
31936
  code: b.NonInteractiveEntityReferenced,
31939
- severity: D.Error,
31937
+ severity: R.Error,
31940
31938
  message: O,
31941
31939
  issue: null
31942
31940
  })
@@ -31952,7 +31950,7 @@ ${un}`, s.push(
31952
31950
  new w({
31953
31951
  id: `${i.id}--${$.MethodOverwritesOtherSiblingWithSameImplementation}`,
31954
31952
  code: $.MethodOverwritesOtherSiblingWithSameImplementation,
31955
- severity: D.Error,
31953
+ severity: R.Error,
31956
31954
  message: `The '${n.FunctionDeclaration}' with id "${i.id}" is trying to implement the '${n.ActionDescriptor}' with id "${i.implements}", but the parent definition-entity already has a ${n.FunctionDeclaration} with id '${O.id}' that implements the same base method.
31957
31955
  A ${n.FunctionDeclaration} that has a parent of type '${n.DefinitionEntity}' is considered a method of that entity, and cannot implement the same '${n.ActionDescriptor}' more than once.
31958
31956
  ${n.ActionDescriptor} entities inside a ${n.DefinitionEntity} are considered abstract methods that can be implemented by ${n.FunctionDeclaration} entities inside the same parent.
@@ -31967,7 +31965,7 @@ If you want to modify the existing implementation, you can update the existing m
31967
31965
  new w({
31968
31966
  id: `${i.id}--${b.InvalidImplementsReference}`,
31969
31967
  code: b.InvalidImplementsReference,
31970
- severity: D.Error,
31968
+ severity: R.Error,
31971
31969
  message: `The '${n.FunctionDeclaration}' with id "${i.id}" is trying to implement the '${n.ActionDescriptor}' with id "${i.implements}", but the parent definition-entity with id "${T.id}" does not have a action descriptor (abstract method) with that id.
31972
31970
  A ${n.FunctionDeclaration} that has a parent of type '${n.DefinitionEntity}' is considered a method of that entity, and if it implements a action-descriptor, it needs to be one of the parent's action descriptors.
31973
31971
  If you want to implement a new method, you can create a new 'function-declaration' inside the parent definition-entity. But note that often definition-entities already come the boiler plate for all the methods they need from the base entity they implement, which are often auto-generated when the parent definition-entity is first created.
@@ -31982,7 +31980,7 @@ If you want to modify the existing implementation, you can update the existing m
31982
31980
  new w({
31983
31981
  id: `${i.id}--${$.LoopBodyFunctionOverwrite}`,
31984
31982
  code: $.LoopBodyFunctionOverwrite,
31985
- severity: D.Error,
31983
+ severity: R.Error,
31986
31984
  message: `The '${n.FunctionDeclaration}' with id "${i.id}" is being added as the 'body' of the ${n.Loop} with id "${d.id}", but the loop already has a function-declaration body. A loop can only have one function-declaration body at a time. You can edit the existing body instead, but it will have to match the same base signature, otherwise the implementation will have a validation error.`,
31987
31985
  issue: null
31988
31986
  })
@@ -31993,7 +31991,7 @@ If you want to modify the existing implementation, you can update the existing m
31993
31991
  new w({
31994
31992
  id: `${e.id}--${b.BuiltInEntityParent}`,
31995
31993
  code: b.BuiltInEntityParent,
31996
- severity: D.Error,
31994
+ severity: R.Error,
31997
31995
  message: `The entity with id '${e.id}' and type '${e.type}', belongs to a built-in system entity "${G(
31998
31996
  f,
31999
31997
  t
@@ -32031,7 +32029,7 @@ If you want to modify the existing implementation, you can update the existing m
32031
32029
  new w({
32032
32030
  id: `${this.id}--${b.InvalidParentUpdate}`,
32033
32031
  code: b.InvalidParentUpdate,
32034
- severity: D.Error,
32032
+ severity: R.Error,
32035
32033
  message: `Entity of type '${this.type}' with id '${this.id}' cannot have the 'parent' property updated, as it would mean moving the '${this.type}' entity to another parent entity.
32036
32034
  This is likely an incorrect strategy because this is a globally declared '${this.type}' entity which can only have the root project as its parent.`,
32037
32035
  issue: null
@@ -32040,7 +32038,7 @@ This is likely an incorrect strategy because this is a globally declared '${this
32040
32038
  new w({
32041
32039
  id: `${this.id}--${b.InvalidParentUpdate}`,
32042
32040
  code: b.InvalidParentUpdate,
32043
- severity: D.Error,
32041
+ severity: R.Error,
32044
32042
  message: `Entity of type '${this.type}' with id '${this.id}' cannot have the 'parent' property updated, as it would mean moving the '${this.type}' entity to another parent entity.
32045
32043
  This is likely an incorrect strategy because this function declaration is a method, since it belongs to a '${this.parent.type}' entity, either the '${this.type}' entity doesn't need to be updated or it should be deleted and a new one created in the desired parent.
32046
32044
  Please consider than any updates might affect the overlap with the signature of the parent entity's action descriptors.`,
@@ -32178,7 +32176,7 @@ Please consider than any updates might affect the overlap with the signature of
32178
32176
  captureVersion() {
32179
32177
  var t;
32180
32178
  const e = ((t = this.knownVersions) == null ? void 0 : t.get(this.version)) || new Re(this, this.project);
32181
- return e.metaSync(this.toMeta(), null), this.knownVersions = this.knownVersions ? this.knownVersions.set(this.version, e) : /* @__PURE__ */ new Map([[this.version, e]]), e.inputs = this.inputs, e.calls = this.calls, e.implements = this.implements, e.extends = this.extends, e.detachedChildren = this.detachedChildren, e.parent = this.parent, this;
32179
+ return e.metaSync(this.toMeta(), null), this.knownVersions = this.knownVersions ? this.knownVersions.set(this.version, e) : /* @__PURE__ */ new Map([[this.version, e]]), e.inputs = [...this.inputs], e.calls = [...this.calls], e.implements = this.implements, e.extends = this.extends, e.detachedChildren = [...this.detachedChildren], e.parent = this.parent, this;
32182
32180
  }
32183
32181
  // Traverses upstream entities and captures their versions as well
32184
32182
  recursiveCaptureUpstreamVersions(e) {
@@ -32883,7 +32881,7 @@ Please consider than any updates might affect the overlap with the signature of
32883
32881
  );
32884
32882
  t ? f.setParent(t, null) : f.setParent(this.parent, null), s && f.subscribe(), f.initChildren(e), e == null || e.add(f, I.Added);
32885
32883
  const c = (E = this.inputs) == null ? void 0 : E.map(
32886
- (R) => R.clone(
32884
+ (D) => D.clone(
32887
32885
  e,
32888
32886
  f,
32889
32887
  y.UUID.uuid(),
@@ -32892,7 +32890,7 @@ Please consider than any updates might affect the overlap with the signature of
32892
32890
  )
32893
32891
  );
32894
32892
  return f.inputs = c, l ? (pi(this).map(
32895
- (R) => R.clone(
32893
+ (D) => D.clone(
32896
32894
  e,
32897
32895
  f,
32898
32896
  y.UUID.uuid(),
@@ -33079,7 +33077,7 @@ function W0(r) {
33079
33077
  id: r.id + "--" + F.InvalidPropertiesCombination,
33080
33078
  message: `Data type with id "${r.id}" has invalid properties combination. Only one of the following properties can be present at the time: 'entity', 'andChildrenGroup' or 'orChildrenGroup'`,
33081
33079
  issue: null,
33082
- severity: D.Error,
33080
+ severity: R.Error,
33083
33081
  code: F.InvalidPropertiesCombination,
33084
33082
  entity: r
33085
33083
  });
@@ -33112,7 +33110,7 @@ function d7(r, a) {
33112
33110
  new w({
33113
33111
  id: `${r.id}--${r.parent}--${b.SelfReference}`,
33114
33112
  code: b.SelfReference,
33115
- severity: D.Error,
33113
+ severity: R.Error,
33116
33114
  message: `Entity of type "${r.type}" with id "${r.id}", has a reference to itself at 'parent'. This is not allowed. Change the reference string or the 'entityId' property of the reference object.`,
33117
33115
  issue: null
33118
33116
  })
@@ -33123,7 +33121,7 @@ function d7(r, a) {
33123
33121
  new w({
33124
33122
  id: `${r.id}--${r.parent}--${b.InvalidParentReference}`,
33125
33123
  code: b.InvalidParentReference,
33126
- severity: D.Error,
33124
+ severity: R.Error,
33127
33125
  message: `Entity of type "${r.type}" with id "${r.id}", has a parent reference that isn't pointing to an entity of type ${i}.`,
33128
33126
  issue: null
33129
33127
  })
@@ -33131,7 +33129,7 @@ function d7(r, a) {
33131
33129
  new w({
33132
33130
  id: `${r.id}--${r.parent}--${b.ReferencedEntityNotFound}`,
33133
33131
  code: b.ReferencedEntityNotFound,
33134
- severity: D.Error,
33132
+ severity: R.Error,
33135
33133
  message: `Entity of type "${r.type}" with id "${r.id}", is referencing an entity with id "${r.parent}" that isn't yet found in the project. Perhaps it should be created first. Or perhaps the ID is incorrect.`,
33136
33134
  issue: null
33137
33135
  })
@@ -33142,7 +33140,7 @@ function d7(r, a) {
33142
33140
  new w({
33143
33141
  id: `${r.id}--${$.InvalidObjectStructure}`,
33144
33142
  code: $.InvalidObjectStructure,
33145
- severity: D.Error,
33143
+ severity: R.Error,
33146
33144
  message: `Entity of type "${r.type}" with id "${r.id}" is missing a 'parent' reference. The 'parent' of a 'data-type' entity must be a reference to an entity of type ${i}.`,
33147
33145
  issue: null
33148
33146
  })
@@ -33153,7 +33151,7 @@ function d7(r, a) {
33153
33151
  new w({
33154
33152
  id: `${r.id}--${r.entity}--${b.SelfReference}`,
33155
33153
  code: b.SelfReference,
33156
- severity: D.Error,
33154
+ severity: R.Error,
33157
33155
  message: `Entity of type "${r.type}" with id "${r.id}", has a reference to itself at 'entity'. This is not allowed. Change the reference string or the 'entityId' property of the reference object.`,
33158
33156
  issue: null
33159
33157
  })
@@ -33168,7 +33166,7 @@ function d7(r, a) {
33168
33166
  new w({
33169
33167
  id: `${r.id}--${r.entity}--${b.InvalidImplementsReference}`,
33170
33168
  code: b.InvalidImplementsReference,
33171
- severity: D.Error,
33169
+ severity: R.Error,
33172
33170
  message: `Entity of type "${r.type}" with id "${r.id}", has an 'entity' reference that isn't pointing to an entity of type 'definition-entity', 'primitive-entity', 'action-descriptor' or 'built-in-base-entity'.`,
33173
33171
  issue: null
33174
33172
  })
@@ -33176,7 +33174,7 @@ function d7(r, a) {
33176
33174
  new w({
33177
33175
  id: `${r.id}--${r.entity}--${b.ReferencedEntityNotFound}`,
33178
33176
  code: b.ReferencedEntityNotFound,
33179
- severity: D.Error,
33177
+ severity: R.Error,
33180
33178
  message: `Entity of type "${r.type}" with id "${r.id}", is referencing an entity with id "${r.entity}" that isn't yet found in the project. Perhaps it should be created first. Or perhaps the ID is incorrect.`,
33181
33179
  issue: null
33182
33180
  })
@@ -33302,7 +33300,7 @@ const De = class De extends at {
33302
33300
  );
33303
33301
  if (T.length) {
33304
33302
  const E = T.length > 1 ? `entities with ids '${ne(
33305
- T.map((R) => R.id),
33303
+ T.map((D) => D.id),
33306
33304
  "', '",
33307
33305
  "' and '"
33308
33306
  )}'` : `entity with id '${T[0].id}'`;
@@ -33310,7 +33308,7 @@ const De = class De extends at {
33310
33308
  new w({
33311
33309
  id: `${e.id}--${b.NonInteractiveEntityReferenced}`,
33312
33310
  code: b.NonInteractiveEntityReferenced,
33313
- severity: D.Error,
33311
+ severity: R.Error,
33314
33312
  message: `The entity with id '${e.id}' and type '${e.type}', cannot reference 'definition-entity' with id '${i.entity}' at 'entity'. The entity extends or implements non-interactive built-in-base-entity ${E}.
33315
33313
  ${un}`,
33316
33314
  issue: null
@@ -33325,7 +33323,7 @@ ${un}`,
33325
33323
  new w({
33326
33324
  id: `${e.id}--${b.BuiltInEntityParent}`,
33327
33325
  code: b.BuiltInEntityParent,
33328
- severity: D.Error,
33326
+ severity: R.Error,
33329
33327
  message: `The entity with id '${e.id}' and type '${e.type}', belongs to a built-in system entity "${G(
33330
33328
  d,
33331
33329
  t
@@ -33345,7 +33343,7 @@ ${un}`,
33345
33343
  new w({
33346
33344
  id: `${e.id}--${b.InvalidParentRelationType}`,
33347
33345
  code: b.InvalidParentRelationType,
33348
- severity: D.Error,
33346
+ severity: R.Error,
33349
33347
  message: `The entity with id '${e.id}' and type '${e.type}', cannot have a 'parentRelationType' property set of type '${f}'.
33350
33348
  The entitities of type '${ne(
33351
33349
  c,
@@ -33360,7 +33358,7 @@ The entitities of type '${ne(
33360
33358
  new w({
33361
33359
  id: `${e.id}--${b.NewEntityWouldOverriteExisting}`,
33362
33360
  code: b.NewEntityWouldOverriteExisting,
33363
- severity: D.Error,
33361
+ severity: R.Error,
33364
33362
  message: `The entity with id '${e.id}' and type '${e.type}', cannot be added as a child to the entity with id '${i.parent}' and type '${f}', because it already has a 'data-type' child with id '${T}'.
33365
33363
  The entitities of type '${ne(
33366
33364
  c,
@@ -33381,7 +33379,7 @@ Alternatively you can update the entity with 'update' action. Or replace it by f
33381
33379
  new w({
33382
33380
  id: `${e.id}--${b.InvalidParentRelationType}`,
33383
33381
  code: b.InvalidParentRelationType,
33384
- severity: D.Error,
33382
+ severity: R.Error,
33385
33383
  message: `The entity with id '${e.id}' and type '${e.type}', must have a 'parentRelationType' property set to either 'or-data-type-group' or 'and-data-type-group' when being added as a child to an entity of type 'data-type'.`,
33386
33384
  issue: null
33387
33385
  })
@@ -33523,7 +33521,7 @@ Alternatively you can update the entity with 'update' action. Or replace it by f
33523
33521
  captureVersion() {
33524
33522
  var t;
33525
33523
  const e = ((t = this.knownVersions) == null ? void 0 : t.get(this.version)) || new De(this, this.project);
33526
- return e.metaSync(this.toMeta(), null), this.knownVersions = this.knownVersions ? this.knownVersions.set(this.version, e) : /* @__PURE__ */ new Map([[this.version, e]]), e.entity = this.entity, e.andChildrenGroup = this.andChildrenGroup, e.orChildrenGroup = this.orChildrenGroup, e.parent = this.parent, this;
33524
+ return e.metaSync(this.toMeta(), null), this.knownVersions = this.knownVersions ? this.knownVersions.set(this.version, e) : /* @__PURE__ */ new Map([[this.version, e]]), e.entity = this.entity, e.andChildrenGroup = this.andChildrenGroup ? [...this.andChildrenGroup] : this.andChildrenGroup, e.orChildrenGroup = this.orChildrenGroup ? [...this.orChildrenGroup] : this.orChildrenGroup, e.parent = this.parent, this;
33527
33525
  }
33528
33526
  // Traverses upstream entities and captures their versions as well
33529
33527
  recursiveCaptureUpstreamVersions(e) {
@@ -34157,7 +34155,7 @@ Alternatively you can update the entity with 'update' action. Or replace it by f
34157
34155
  "clone-entity"
34158
34156
  )
34159
34157
  ), t = null, i = null, s = !0) {
34160
- var E, R, O;
34158
+ var E, D, O;
34161
34159
  let l = yt(t, this), o = t || this.parent;
34162
34160
  const u = {
34163
34161
  id: i || y.UUID.uuid(),
@@ -34194,7 +34192,7 @@ Alternatively you can update the entity with 'update' action. Or replace it by f
34194
34192
  // parentIdPrefix + '-and-group-data-type-' + index + '-id',
34195
34193
  s
34196
34194
  )
34197
- ), T = (R = this.orChildrenGroup) == null ? void 0 : R.map(
34195
+ ), T = (D = this.orChildrenGroup) == null ? void 0 : D.map(
34198
34196
  (P) => P.clone(
34199
34197
  e,
34200
34198
  f,
@@ -34464,7 +34462,7 @@ function Y0(r) {
34464
34462
  r.project
34465
34463
  )}" with id "${r.id}".`,
34466
34464
  issue: null,
34467
- severity: D.Error,
34465
+ severity: R.Error,
34468
34466
  code: F.PropertyImplementsNonAbstact,
34469
34467
  entity: r
34470
34468
  });
@@ -34649,7 +34647,7 @@ All built-in 'action-descriptor' entity ids are:
34649
34647
  new w({
34650
34648
  id: `${i.id}--${b.InvalidReference}`,
34651
34649
  code: b.InvalidReference,
34652
- severity: D.Error,
34650
+ severity: R.Error,
34653
34651
  message: `Entity of type "${n.Operation}" with id "${i.id}", has an invalid reference at the 'declaration' property. The 'declaration' property must be a valid reference to an 'action-descriptor' entity.
34654
34652
  References can either be an ID string or an object with exacly four properties: 'id', 'entityId', 'entityType', 'type'.${d}`,
34655
34653
  issue: null
@@ -34667,7 +34665,7 @@ References can either be an ID string or an object with exacly four properties:
34667
34665
  new w({
34668
34666
  id: `${this.id}--${b.InvalidParentUpdate}`,
34669
34667
  code: b.InvalidParentUpdate,
34670
- severity: D.Error,
34668
+ severity: R.Error,
34671
34669
  message: `Entity of type '${this.type}' with id '${this.id}' cannot have the 'parent' property updated. The 'parent' on a callable entity, is its scope. It scope is auto-calculated implicitly by the its caller.
34672
34670
  If an entity is called by another, they must be in the same scope, which means they have the same parent.
34673
34671
  You shouldn't have to manually update a 'parent' property. The equivalent result is to change its callers, the value writters of its inputs, or the value readers of its outputs.`,
@@ -34791,7 +34789,7 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
34791
34789
  captureVersion() {
34792
34790
  var t;
34793
34791
  const e = ((t = this.knownVersions) == null ? void 0 : t.get(this.version)) || new Oe(this, this.project);
34794
- return e.metaSync(this.toMeta(), null), this.knownVersions = this.knownVersions ? this.knownVersions.set(this.version, e) : /* @__PURE__ */ new Map([[this.version, e]]), e.inputs = this.inputs, e.outputs = this.outputs, e.error = this.error, e.process = this.process, e.successCalls = this.successCalls, e.errorCalls = this.errorCalls, e.calledBySuccess = this.calledBySuccess, e.calledByError = this.calledByError, e.calledByEntry = this.calledByEntry, e.declaration = this.declaration, e.parent = this.parent, this;
34792
+ return e.metaSync(this.toMeta(), null), this.knownVersions = this.knownVersions ? this.knownVersions.set(this.version, e) : /* @__PURE__ */ new Map([[this.version, e]]), e.inputs = [...this.inputs], e.outputs = [...this.outputs], e.error = this.error, e.process = this.process, e.successCalls = [...this.successCalls], e.errorCalls = [...this.errorCalls], e.calledBySuccess = [...this.calledBySuccess], e.calledByError = [...this.calledByError], e.calledByEntry = [...this.calledByEntry], e.declaration = this.declaration, e.parent = this.parent, this;
34795
34793
  }
34796
34794
  // Traverses upstream entities and captures their versions as well
34797
34795
  recursiveCaptureUpstreamVersions(e) {
@@ -34939,7 +34937,7 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
34939
34937
  removed: T
34940
34938
  } = this.syncMissingFixedOutputs(e), {
34941
34939
  updated: E,
34942
- added: R,
34940
+ added: D,
34943
34941
  removed: O
34944
34942
  } = this.declaration.syncOperationInstance(this, e);
34945
34943
  return t.push(
@@ -35714,7 +35712,7 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
35714
35712
  "clone-entity"
35715
35713
  )
35716
35714
  ), t = null, i = null, s = !0) {
35717
- var R, O;
35715
+ var D, O;
35718
35716
  let l = yt(t, this);
35719
35717
  const o = this.toJSON(), d = i || y.UUID.uuid();
35720
35718
  o.inputs = [];
@@ -35725,7 +35723,7 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
35725
35723
  l
35726
35724
  );
35727
35725
  t ? c.setParent(t, null) : c.setParent(this.parent, null), s && c.subscribe(), c.initChildren(e), e == null || e.add(c, I.Added);
35728
- const T = (R = this.inputs) == null ? void 0 : R.map(
35726
+ const T = (D = this.inputs) == null ? void 0 : D.map(
35729
35727
  (P, B) => P.clone(
35730
35728
  e,
35731
35729
  c,
@@ -35838,8 +35836,8 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
35838
35836
  )
35839
35837
  );
35840
35838
  this.inputs.sort((c, T) => c.index - T.index), o.forEach((c) => {
35841
- this.inputs.forEach((R) => {
35842
- R.index >= c.index && R.metaSync({ index: R.index + 1 }, e);
35839
+ this.inputs.forEach((D) => {
35840
+ D.index >= c.index && D.metaSync({ index: D.index + 1 }, e);
35843
35841
  });
35844
35842
  const T = {
35845
35843
  id: y.UUID.uuid(),
@@ -35898,8 +35896,8 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
35898
35896
  )
35899
35897
  );
35900
35898
  this.outputs.sort((c, T) => c.index - T.index), o.forEach((c) => {
35901
- this.outputs.forEach((R) => {
35902
- R.index >= c.index && R.index++;
35899
+ this.outputs.forEach((D) => {
35900
+ D.index >= c.index && D.index++;
35903
35901
  });
35904
35902
  const T = {
35905
35903
  id: y.UUID.uuid(),
@@ -36008,7 +36006,7 @@ function H0(r) {
36008
36006
  r.project
36009
36007
  )}" with id "${r.id}".`,
36010
36008
  issue: null,
36011
- severity: D.Error,
36009
+ severity: R.Error,
36012
36010
  code: F.PropertyImplementsNonAbstact,
36013
36011
  entity: r
36014
36012
  });
@@ -36171,7 +36169,7 @@ const we = class we extends at {
36171
36169
  new w({
36172
36170
  id: `${i.id}--${$.NoOverlapWithImplementedSignature}`,
36173
36171
  code: $.NoOverlapWithImplementedSignature,
36174
- severity: D.Error,
36172
+ severity: R.Error,
36175
36173
  message: `Entity of type '${n.ReturnDeclaration}' with id '${i.id}' cannot be added to the parent entity of type '${c.type}' with id '${c.id}'. This '${c.type}' already has return declarations.
36176
36174
  ${Jp}`,
36177
36175
  issue: null
@@ -36183,7 +36181,7 @@ ${Jp}`,
36183
36181
  new w({
36184
36182
  id: `${i.id}--${$.NoOverlapWithImplementedSignature}`,
36185
36183
  code: $.NoOverlapWithImplementedSignature,
36186
- severity: D.Error,
36184
+ severity: R.Error,
36187
36185
  message: `Entity of type '${n.ReturnDeclaration}' with id '${i.id}' cannot be added to the parent entity of type '${c.type}' with id '${c.id}'. This new 'return-declaration' doesn't have the same name "${O}" as the return declarations on the other statements in the same scope.
36188
36186
  ${Jp}`,
36189
36187
  issue: null
@@ -36197,7 +36195,7 @@ ${Jp}`,
36197
36195
  if (T) {
36198
36196
  const E = T.outputs.find(
36199
36197
  (C) => C.name === i.name
36200
- ), R = T.outputs.filter((C) => !f.outputs.find(
36198
+ ), D = T.outputs.filter((C) => !f.outputs.find(
36201
36199
  (Z) => Z.type === n.ReturnDeclaration && Z.name === C.name
36202
36200
  )), O = f.outputs.filter(
36203
36201
  (C) => C.type === n.ReturnDeclaration
@@ -36209,8 +36207,8 @@ ${Jp}`,
36209
36207
  ),
36210
36208
  ", ",
36211
36209
  " and "
36212
- )}.` : "The parent entity does not yet have any implemented return declarations.", j = R.length ? `The parent entity is still missing the following returns in the implementation: ${ne(
36213
- R.map(
36210
+ )}.` : "The parent entity does not yet have any implemented return declarations.", j = D.length ? `The parent entity is still missing the following returns in the implementation: ${ne(
36211
+ D.map(
36214
36212
  (C) => `'${C.id}' (${C.name})`
36215
36213
  ),
36216
36214
  ", ",
@@ -36220,7 +36218,7 @@ ${Jp}`,
36220
36218
  new w({
36221
36219
  id: `${i.id}--${$.NoOverlapWithImplementedSignature}`,
36222
36220
  code: $.NoOverlapWithImplementedSignature,
36223
- severity: D.Error,
36221
+ severity: R.Error,
36224
36222
  message: `Entity of type '${n.ReturnDeclaration}' with id '${i.id}' should not exist in a parent entity of type '${f.type}' with id '${f.id}' that implements a ${n.ActionDescriptor} with fixed outputs.
36225
36223
  Adding a new return would make the implementation invalid. An return with the same name already exists in the parent entity.
36226
36224
  ${B}
@@ -36231,7 +36229,7 @@ ${j}`,
36231
36229
  new w({
36232
36230
  id: `${i.id}--${$.NoOverlapWithImplementedSignature}`,
36233
36231
  code: $.NoOverlapWithImplementedSignature,
36234
- severity: D.Error,
36232
+ severity: R.Error,
36235
36233
  message: `Entity of type '${n.ReturnDeclaration}' with id '${i.id}' should not exist in a parent entity of type '${f.type}' with id '${f.id}' that implements a ${n.ActionDescriptor} with fixed outputs.
36236
36234
  Adding a new return would make the implementation invalid. There are no returns in the descriptor with the same name.
36237
36235
  ${B}
@@ -36269,7 +36267,7 @@ ${j}`,
36269
36267
  new w({
36270
36268
  id: `${this.id}--${b.InvalidParentUpdate}`,
36271
36269
  code: b.InvalidParentUpdate,
36272
- severity: D.Error,
36270
+ severity: R.Error,
36273
36271
  message: `Entity of type '${this.type}' with id '${this.id}' cannot have the 'parent' property updated, as it would mean moving the '${this.type}' entity to another parent entity.
36274
36272
  This is likely an incorrect strategy, either the '${this.type}' entity doesn't need to be updated or it should be deleted and a new one created in the desired parent.`,
36275
36273
  issue: null
@@ -37391,7 +37389,7 @@ const $e = class $e extends at {
37391
37389
  new w({
37392
37390
  id: `${this.id}--${b.InvalidParentUpdate}`,
37393
37391
  code: b.InvalidParentUpdate,
37394
- severity: D.Error,
37392
+ severity: R.Error,
37395
37393
  message: `Entity of type '${this.type}' with id '${this.id}' cannot have the 'parent' property updated. The 'parent' on a callable entity, is its scope. It scope is auto-calculated implicitly by the its caller.
37396
37394
  If an entity is called by another, they must be in the same scope, which means they have the same parent.
37397
37395
  You shouldn't have to manually update a 'parent' property.
@@ -37519,7 +37517,7 @@ Specifically for continue statements the parent needs to always be the 'loop' en
37519
37517
  return e.metaSync(this.toMeta(), null), this.knownVersions = this.knownVersions ? this.knownVersions.set(
37520
37518
  this.version,
37521
37519
  e
37522
- ) : /* @__PURE__ */ new Map([[this.version, e]]), e.outputs = this.outputs, e.throws = this.throws, e.calledBySuccess = this.calledBySuccess, e.calledByError = this.calledByError, e.calledByEntry = this.calledByEntry, e.parent = this.parent, this;
37520
+ ) : /* @__PURE__ */ new Map([[this.version, e]]), e.outputs = [...this.outputs], e.throws = this.throws, e.calledBySuccess = [...this.calledBySuccess], e.calledByError = [...this.calledByError], e.calledByEntry = [...this.calledByEntry], e.parent = this.parent, this;
37523
37521
  }
37524
37522
  // Traverses upstream entities and captures their versions as well
37525
37523
  recursiveCaptureUpstreamVersions(e) {
@@ -38174,7 +38172,7 @@ Specifically for continue statements the parent needs to always be the 'loop' en
38174
38172
  );
38175
38173
  t ? c.setParent(t, null) : c.setParent(this.parent, null), s && c.subscribe(), c.initChildren(e), e == null || e.add(c, I.Added);
38176
38174
  const T = (E = this.outputs) == null ? void 0 : E.map(
38177
- (R, O) => R.clone(
38175
+ (D, O) => D.clone(
38178
38176
  e,
38179
38177
  c,
38180
38178
  f + "-return-declaration-" + O + "-id",
@@ -38366,7 +38364,7 @@ const Xe = class Xe extends at {
38366
38364
  new w({
38367
38365
  id: `${this.id}--${b.InvalidParentUpdate}`,
38368
38366
  code: b.InvalidParentUpdate,
38369
- severity: D.Error,
38367
+ severity: R.Error,
38370
38368
  message: `Entity of type '${this.type}' with id '${this.id}' cannot have the 'parent' property updated. The 'parent' on a callable entity, is its scope. It scope is auto-calculated implicitly by the its caller.
38371
38369
  If an entity is called by another, they must be in the same scope, which means they have the same parent.
38372
38370
  You shouldn't have to manually update a 'parent' property.
@@ -38491,7 +38489,7 @@ Specifically for return statements the parent needs to always be the 'function-d
38491
38489
  captureVersion() {
38492
38490
  var t;
38493
38491
  const e = ((t = this.knownVersions) == null ? void 0 : t.get(this.version)) || new Xe(this, this.project);
38494
- return e.metaSync(this.toMeta(), null), this.knownVersions = this.knownVersions ? this.knownVersions.set(this.version, e) : /* @__PURE__ */ new Map([[this.version, e]]), e.outputs = this.outputs, e.throws = this.throws, e.calledBySuccess = this.calledBySuccess, e.calledByError = this.calledByError, e.calledByEntry = this.calledByEntry, e.parent = this.parent, this;
38492
+ return e.metaSync(this.toMeta(), null), this.knownVersions = this.knownVersions ? this.knownVersions.set(this.version, e) : /* @__PURE__ */ new Map([[this.version, e]]), e.outputs = [...this.outputs], e.throws = this.throws, e.calledBySuccess = [...this.calledBySuccess], e.calledByError = [...this.calledByError], e.calledByEntry = [...this.calledByEntry], e.parent = this.parent, this;
38495
38493
  }
38496
38494
  // Traverses upstream entities and captures their versions as well
38497
38495
  recursiveCaptureUpstreamVersions(e) {
@@ -39148,7 +39146,7 @@ Specifically for return statements the parent needs to always be the 'function-d
39148
39146
  );
39149
39147
  t ? c.setParent(t, null) : c.setParent(this.parent, null), s && c.subscribe(), c.initChildren(e), e == null || e.add(c, I.Added);
39150
39148
  const T = (E = this.outputs) == null ? void 0 : E.map(
39151
- (R, O) => R.clone(
39149
+ (D, O) => D.clone(
39152
39150
  e,
39153
39151
  c,
39154
39152
  f + "-return-declaration-" + O + "-id",
@@ -39183,13 +39181,13 @@ Specifically for return statements the parent needs to always be the 'function-d
39183
39181
  return this.throws && this.outputs.length && this.outputs.forEach((T) => {
39184
39182
  var E;
39185
39183
  if (T.id !== ((E = this.throws) == null ? void 0 : E.id)) {
39186
- const { updated: R, removed: O } = T.remove(
39184
+ const { updated: D, removed: O } = T.remove(
39187
39185
  {
39188
39186
  ignoreUpstream: !0
39189
39187
  },
39190
39188
  e
39191
39189
  );
39192
- t.push(...R), s.push(...O), this.removeOutputDeclaration(T, e);
39190
+ t.push(...D), s.push(...O), this.removeOutputDeclaration(T, e);
39193
39191
  }
39194
39192
  }), e == null || e.attemptAutoclose("sync-return-declarations", this.id), {
39195
39193
  updated: p(
@@ -39213,13 +39211,13 @@ Specifically for return statements the parent needs to always be the 'function-d
39213
39211
  const T = d.implementAsReturnDeclaration(e, this);
39214
39212
  return i.push(T), this.outputs.forEach((E) => {
39215
39213
  if (E.id !== T.id) {
39216
- const { updated: R, removed: O } = E.remove(
39214
+ const { updated: D, removed: O } = E.remove(
39217
39215
  {
39218
39216
  ignoreUpstream: !0
39219
39217
  },
39220
39218
  e
39221
39219
  );
39222
- t.push(...R), s.push(...O), this.removeOutputDeclaration(E, e);
39220
+ t.push(...D), s.push(...O), this.removeOutputDeclaration(E, e);
39223
39221
  }
39224
39222
  }), e == null || e.attemptAutoclose("sync-return-declarations", this.id), {
39225
39223
  updated: p(t),
@@ -39242,8 +39240,8 @@ Specifically for return statements the parent needs to always be the 'function-d
39242
39240
  }
39243
39241
  return u.filter(
39244
39242
  (T) => !this.outputs.find((E) => {
39245
- var R;
39246
- return ((R = E.implements) == null ? void 0 : R.id) === T.id && !E.isError;
39243
+ var D;
39244
+ return ((D = E.implements) == null ? void 0 : D.id) === T.id && !E.isError;
39247
39245
  })
39248
39246
  ).forEach((T) => {
39249
39247
  const E = T.implementAsReturnDeclaration(e, this);
@@ -39432,7 +39430,7 @@ const $W = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
39432
39430
  new w({
39433
39431
  id: `${e.id}--${$.InvalidObjectStructure}`,
39434
39432
  code: $.InvalidObjectStructure,
39435
- severity: D.Error,
39433
+ severity: R.Error,
39436
39434
  message: `Entity of type '${e.type}' with id '${e.id}' is missing the 'implements' property. This property is required for a '${e.type}' entity and must point to one of the built-in action descriptors reserved for 'global-event' entities.
39437
39435
  ${Tl(
39438
39436
  t
@@ -39447,7 +39445,7 @@ ${Tl(
39447
39445
  new w({
39448
39446
  id: `${e.id}--${b.ReferencedEntityNotFound}`,
39449
39447
  code: b.ReferencedEntityNotFound,
39450
- severity: D.Error,
39448
+ severity: R.Error,
39451
39449
  message: `Entity of type '${e.type}' with id '${e.id}' has an 'implements' property that isn't found in the project. The 'implements' property must point to one of the built-in action descriptors reserved for 'global-event' entities.
39452
39450
  ${Tl(
39453
39451
  t
@@ -39462,7 +39460,7 @@ ${Tl(
39462
39460
  new w({
39463
39461
  id: `${e.id}--${b.InvalidImplementsReference}`,
39464
39462
  code: b.InvalidImplementsReference,
39465
- severity: D.Error,
39463
+ severity: R.Error,
39466
39464
  message: `Entity of type '${e.type}' with id '${e.id}' has an 'implements' property that isn't pointing to an action descriptor reserved for 'global-event' entities.
39467
39465
  ${Tl(
39468
39466
  t
@@ -39478,7 +39476,7 @@ ${Tl(
39478
39476
  new w({
39479
39477
  id: `${e.id}--${b.InvalidImplementsReference}`,
39480
39478
  code: b.InvalidImplementsReference,
39481
- severity: D.Error,
39479
+ severity: R.Error,
39482
39480
  message: `Entity of type '${e.type}' with id '${e.id}' has an 'implements' property that points to an action descriptor that is already implemented by another global event with id '${u.id}' in the project. Each global event must implement a unique action descriptor.
39483
39481
  You can attach new logic to the existing 'global-event' but creating a new callable entity that gets called by it.`,
39484
39482
  issue: null
@@ -39502,7 +39500,7 @@ You can attach new logic to the existing 'global-event' but creating a new calla
39502
39500
  new w({
39503
39501
  id: `${this.id}--${b.InvalidParentUpdate}`,
39504
39502
  code: b.InvalidParentUpdate,
39505
- severity: D.Error,
39503
+ severity: R.Error,
39506
39504
  message: `Entity of type '${this.type}' with id '${this.id}' cannot have the 'parent' property updated. The 'parent' on an '${this.type}', must be the root project as it is a globally declared entity.`,
39507
39505
  issue: null
39508
39506
  })
@@ -39594,7 +39592,7 @@ You can attach new logic to the existing 'global-event' but creating a new calla
39594
39592
  captureVersion() {
39595
39593
  var t;
39596
39594
  const e = ((t = this.knownVersions) == null ? void 0 : t.get(this.version)) || new Pe(this, this.project);
39597
- return e.metaSync(this.toMeta(), null), this.knownVersions = this.knownVersions ? this.knownVersions.set(this.version, e) : /* @__PURE__ */ new Map([[this.version, e]]), e.inputs = this.inputs, e.calls = this.calls, e.implements = this.implements, e.detachedChildren = this.detachedChildren, e.parent = this.parent, this;
39595
+ return e.metaSync(this.toMeta(), null), this.knownVersions = this.knownVersions ? this.knownVersions.set(this.version, e) : /* @__PURE__ */ new Map([[this.version, e]]), e.inputs = [...this.inputs], e.calls = [...this.calls], e.implements = this.implements, e.detachedChildren = [...this.detachedChildren], e.parent = this.parent, this;
39598
39596
  }
39599
39597
  // Traverses upstream entities and captures their versions as well
39600
39598
  recursiveCaptureUpstreamVersions(e) {
@@ -40473,7 +40471,7 @@ ${un}`, s.push(
40473
40471
  new w({
40474
40472
  id: `${e.id}--${b.NonInteractiveEntityReferenced}`,
40475
40473
  code: b.NonInteractiveEntityReferenced,
40476
- severity: D.Error,
40474
+ severity: R.Error,
40477
40475
  message: c,
40478
40476
  issue: null
40479
40477
  })
@@ -40485,7 +40483,7 @@ ${un}`, s.push(
40485
40483
  new w({
40486
40484
  id: `${e.id}--${b.NewEntityWouldOverriteExisting}`,
40487
40485
  code: b.NewEntityWouldOverriteExisting,
40488
- severity: D.Error,
40486
+ severity: R.Error,
40489
40487
  message: `The entity of type '${e.type}' with id '${e.id}' can't be added to the 'parent' entity with id '${d.id}' because it already has an 'entity' child. Data type entities can only have one 'entity' as children.
40490
40488
  You can inspect the existing 'entity' field with the 'describe_entity' action. Like so:
40491
40489
  ${Qi(
@@ -40571,7 +40569,7 @@ Alternatively you can update the parent data-type entity with 'update' action to
40571
40569
  new w({
40572
40570
  id: `${this.id}--${b.InvalidParentUpdate}`,
40573
40571
  code: b.InvalidParentUpdate,
40574
- severity: D.Error,
40572
+ severity: R.Error,
40575
40573
  message: `Entity of type '${this.type}' with id '${this.id}' cannot have the 'parent' property updated, as it would mean moving the '${this.type}' entity to another parent entity.
40576
40574
  This is likely an incorrect strategy, either the '${this.type}' entity doesn't need to be updated or it should be deleted and a new one created in the desired parent.`,
40577
40575
  issue: null
@@ -40664,7 +40662,7 @@ This is likely an incorrect strategy, either the '${this.type}' entity doesn't n
40664
40662
  captureVersion() {
40665
40663
  var t;
40666
40664
  const e = ((t = this.knownVersions) == null ? void 0 : t.get(this.version)) || new Ve(this, this.project);
40667
- return e.metaSync(this.toMeta(), null), this.knownVersions = this.knownVersions ? this.knownVersions.set(this.version, e) : /* @__PURE__ */ new Map([[this.version, e]]), e.inputs = this.inputs, e.outputs = this.outputs, e.error = this.error, e.parent = this.parent, this;
40665
+ return e.metaSync(this.toMeta(), null), this.knownVersions = this.knownVersions ? this.knownVersions.set(this.version, e) : /* @__PURE__ */ new Map([[this.version, e]]), e.inputs = [...this.inputs], e.outputs = [...this.outputs], e.error = this.error, e.parent = this.parent, this;
40668
40666
  }
40669
40667
  // Traverses upstream entities and captures their versions as well
40670
40668
  recursiveCaptureUpstreamVersions(e) {
@@ -41214,7 +41212,7 @@ This is likely an incorrect strategy, either the '${this.type}' entity doesn't n
41214
41212
  ), o = [];
41215
41213
  if (this.outputs.length) {
41216
41214
  const u = this.outputs.map(
41217
- (E, R) => {
41215
+ (E, D) => {
41218
41216
  var P;
41219
41217
  const O = {
41220
41218
  id: y.UUID.uuid(),
@@ -41240,7 +41238,7 @@ This is likely an incorrect strategy, either the '${this.type}' entity doesn't n
41240
41238
  defaultValue: null,
41241
41239
  implements: E.toJSON(),
41242
41240
  isError: !1,
41243
- index: R,
41241
+ index: D,
41244
41242
  dataType: ((P = E.dataType) == null ? void 0 : P.toJSONClone()) || null,
41245
41243
  parent: O
41246
41244
  };
@@ -41356,13 +41354,13 @@ This is likely an incorrect strategy, either the '${this.type}' entity doesn't n
41356
41354
  index: c,
41357
41355
  dataType: null,
41358
41356
  parent: T
41359
- }, R = V(
41357
+ }, D = V(
41360
41358
  E,
41361
41359
  this.project
41362
41360
  );
41363
- R.setParent(u, e), R.initChildren(e), e == null || e.add(R, I.Added), R.hydrateAncestors(), R.addSelfToProject(e);
41364
- const O = ((P = f.dataType) == null ? void 0 : P.clone(e, R)) || null;
41365
- O && (e == null || e.add(O, I.Added)), R.setDataType(O);
41361
+ D.setParent(u, e), D.initChildren(e), e == null || e.add(D, I.Added), D.hydrateAncestors(), D.addSelfToProject(e);
41362
+ const O = ((P = f.dataType) == null ? void 0 : P.clone(e, D)) || null;
41363
+ O && (e == null || e.add(O, I.Added)), D.setDataType(O);
41366
41364
  }), this.outputs.length) {
41367
41365
  const f = y.UUID.uuid(), c = y.UUID.uuid(), T = {
41368
41366
  id: y.UUID.uuid(),
@@ -41377,7 +41375,7 @@ This is likely an incorrect strategy, either the '${this.type}' entity doesn't n
41377
41375
  version: o,
41378
41376
  entityType: n.GlobalEvent,
41379
41377
  entityId: l
41380
- }, R = {
41378
+ }, D = {
41381
41379
  id: f,
41382
41380
  version: c,
41383
41381
  createdAt: (e == null ? void 0 : e.timestamp) || v().toISOString(),
@@ -41394,7 +41392,7 @@ This is likely an incorrect strategy, either the '${this.type}' entity doesn't n
41394
41392
  x: 0,
41395
41393
  y: 0
41396
41394
  }, O = V(
41397
- R,
41395
+ D,
41398
41396
  this.project
41399
41397
  );
41400
41398
  O.setParent(u, e), O.initChildren(e), e == null || e.add(O, I.Added), O.hydrateAncestors(), O.addSelfToProject(e), this.outputs.map((P, B) => {
@@ -41495,15 +41493,15 @@ This is likely an incorrect strategy, either the '${this.type}' entity doesn't n
41495
41493
  index: c,
41496
41494
  dataType: null,
41497
41495
  parent: T
41498
- }, R = V(
41496
+ }, D = V(
41499
41497
  E,
41500
41498
  this.project
41501
41499
  );
41502
- R.setParent(u, e), R.initChildren(e), e == null || e.add(R, I.Added), R.hydrateAncestors(), R.addSelfToProject(e);
41503
- const O = ((B = f.dataType) == null ? void 0 : B.clone(e, R)) || null;
41504
- O && (e == null || e.add(O, I.Added)), R.setDataType(O);
41505
- const P = ((j = f.defaultValue) == null ? void 0 : j.clone(e, R)) || null;
41506
- P && (e == null || e.add(P, I.Added)), R.setDataType(O);
41500
+ D.setParent(u, e), D.initChildren(e), e == null || e.add(D, I.Added), D.hydrateAncestors(), D.addSelfToProject(e);
41501
+ const O = ((B = f.dataType) == null ? void 0 : B.clone(e, D)) || null;
41502
+ O && (e == null || e.add(O, I.Added)), D.setDataType(O);
41503
+ const P = ((j = f.defaultValue) == null ? void 0 : j.clone(e, D)) || null;
41504
+ P && (e == null || e.add(P, I.Added)), D.setDataType(O);
41507
41505
  }), this.outputs.length) {
41508
41506
  const f = y.UUID.uuid(), c = y.UUID.uuid(), T = {
41509
41507
  id: y.UUID.uuid(),
@@ -41518,7 +41516,7 @@ This is likely an incorrect strategy, either the '${this.type}' entity doesn't n
41518
41516
  version: o,
41519
41517
  entityType: n.FunctionDeclaration,
41520
41518
  entityId: l
41521
- }, R = {
41519
+ }, D = {
41522
41520
  id: f,
41523
41521
  version: c,
41524
41522
  createdAt: (e == null ? void 0 : e.timestamp) || v().toISOString(),
@@ -41535,7 +41533,7 @@ This is likely an incorrect strategy, either the '${this.type}' entity doesn't n
41535
41533
  x: 0,
41536
41534
  y: 0
41537
41535
  }, O = V(
41538
- R,
41536
+ D,
41539
41537
  this.project
41540
41538
  );
41541
41539
  O.hydrateAncestors(), O.setParent(u, e), O.addSelfToProject(e), e == null || e.add(O, I.Added), O.initChildren(e);
@@ -41713,7 +41711,7 @@ This is likely an incorrect strategy, either the '${this.type}' entity doesn't n
41713
41711
  )
41714
41712
  );
41715
41713
  T.inputs = E;
41716
- const R = (P = this.outputs) == null ? void 0 : P.map(
41714
+ const D = (P = this.outputs) == null ? void 0 : P.map(
41717
41715
  (B, j) => B.clone(
41718
41716
  e,
41719
41717
  T,
@@ -41721,7 +41719,7 @@ This is likely an incorrect strategy, either the '${this.type}' entity doesn't n
41721
41719
  s
41722
41720
  )
41723
41721
  );
41724
- return T.outputs = R, this.error && (T.error = this.error.clone(
41722
+ return T.outputs = D, this.error && (T.error = this.error.clone(
41725
41723
  e,
41726
41724
  T,
41727
41725
  c + "-error-action-descriptor-id",
@@ -41988,7 +41986,7 @@ const le = class le extends at {
41988
41986
  new w({
41989
41987
  id: `${e.id}--${b.InvalidImplementsReference}`,
41990
41988
  code: b.InvalidImplementsReference,
41991
- severity: D.Error,
41989
+ severity: R.Error,
41992
41990
  message: `Entity of type '${e.type}' with id '${e.id}' has an 'declaration' property that isn't pointing to an action descriptor reserved for '${n.Condition}' entities.
41993
41991
  ${El(t)}`,
41994
41992
  issue: null
@@ -41997,7 +41995,7 @@ ${El(t)}`,
41997
41995
  new w({
41998
41996
  id: `${e.id}--${b.ReferencedEntityNotFound}`,
41999
41997
  code: b.ReferencedEntityNotFound,
42000
- severity: D.Error,
41998
+ severity: R.Error,
42001
41999
  message: `Entity of type '${e.type}' with id '${e.id}' has an 'declaration' property that isn't found in the project. The 'declaration' property must point to one of the built-in action descriptors reserved for '${n.Condition}' entities.
42002
42000
  ${El(t)}`,
42003
42001
  issue: null
@@ -42006,7 +42004,7 @@ ${El(t)}`,
42006
42004
  new w({
42007
42005
  id: `${e.id}--${$.InvalidObjectStructure}`,
42008
42006
  code: $.InvalidObjectStructure,
42009
- severity: D.Error,
42007
+ severity: R.Error,
42010
42008
  message: `Entity of type '${e.type}' with id '${e.id}' is missing the 'declaration' property. This property is required for a '${e.type}' entity and must point to one of the built-in action descriptors reserved for '${n.Condition}' entities.
42011
42009
  ${El(t)}`,
42012
42010
  issue: null
@@ -42070,7 +42068,7 @@ ${El(t)}`,
42070
42068
  new w({
42071
42069
  id: `${this.id}--${b.InvalidParentUpdate}`,
42072
42070
  code: b.InvalidParentUpdate,
42073
- severity: D.Error,
42071
+ severity: R.Error,
42074
42072
  message: `Entity of type '${this.type}' with id '${this.id}' cannot have the 'parent' property updated. The 'parent' on a callable entity, is its scope. It scope is auto-calculated implicitly by the its caller.
42075
42073
  If an entity is called by another, they must be in the same scope, which means they have the same parent.
42076
42074
  You shouldn't have to manually update a 'parent' property. The equivalent result is to change its callers, the value writters of its inputs, or the value readers of its outputs.`,
@@ -42194,7 +42192,7 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
42194
42192
  captureVersion() {
42195
42193
  var t;
42196
42194
  const e = ((t = this.knownVersions) == null ? void 0 : t.get(this.version)) || new le(this, this.project);
42197
- return e.metaSync(this.toMeta(), null), this.knownVersions = this.knownVersions ? this.knownVersions.set(this.version, e) : /* @__PURE__ */ new Map([[this.version, e]]), e.inputs = this.inputs, e.outputs = this.outputs, e.error = this.error, e.successCalls = this.successCalls, e.errorCalls = this.errorCalls, e.declaration = this.declaration, e.outputsDeclarations = this.outputsDeclarations, e.body = this.body, e.calledByEntry = this.calledByEntry, e.calledBySuccess = this.calledBySuccess, e.calledByError = this.calledByError, e.process = this.process, e.parent = this.parent, this;
42195
+ return e.metaSync(this.toMeta(), null), this.knownVersions = this.knownVersions ? this.knownVersions.set(this.version, e) : /* @__PURE__ */ new Map([[this.version, e]]), e.inputs = [...this.inputs], e.outputs = [...this.outputs], e.error = this.error, e.successCalls = [...this.successCalls], e.errorCalls = [...this.errorCalls], e.declaration = this.declaration, e.outputsDeclarations = [...this.outputsDeclarations], e.body = this.body, e.calledByEntry = [...this.calledByEntry], e.calledBySuccess = [...this.calledBySuccess], e.calledByError = [...this.calledByError], e.process = this.process, e.parent = this.parent, this;
42198
42196
  }
42199
42197
  // Traverses upstream entities and captures their versions as well
42200
42198
  recursiveCaptureUpstreamVersions(e) {
@@ -43110,7 +43108,7 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
43110
43108
  "clone-entity"
43111
43109
  )
43112
43110
  ), t = null, i = null, s = !0) {
43113
- var R, O;
43111
+ var D, O;
43114
43112
  let l = yt(t, this);
43115
43113
  const o = this.toJSON(), d = i || y.UUID.uuid();
43116
43114
  o.inputs = [];
@@ -43121,7 +43119,7 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
43121
43119
  l
43122
43120
  );
43123
43121
  t ? c.setParent(t, null) : c.setParent(this.parent, null), s && c.subscribe(), c.initChildren(e), e == null || e.add(c, I.Added);
43124
- const T = (R = this.inputs) == null ? void 0 : R.map(
43122
+ const T = (D = this.inputs) == null ? void 0 : D.map(
43125
43123
  (P, B) => P.clone(
43126
43124
  e,
43127
43125
  c,
@@ -43393,9 +43391,9 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
43393
43391
  const {
43394
43392
  updated: T,
43395
43393
  added: E,
43396
- removed: R
43394
+ removed: D
43397
43395
  } = this.removeExtraBodyArgumentDeclarations(e);
43398
- return t.push(...T), i.push(...E), s.push(...R), e == null || e.attemptAutoclose("sync-body-arguments-declarations", this.id), {
43396
+ return t.push(...T), i.push(...E), s.push(...D), e == null || e.attemptAutoclose("sync-body-arguments-declarations", this.id), {
43399
43397
  updated: p(t),
43400
43398
  added: p(i),
43401
43399
  removed: p(s),
@@ -43561,10 +43559,10 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
43561
43559
  return o.forEach((f) => {
43562
43560
  var E;
43563
43561
  let T = d.find(
43564
- (R) => {
43562
+ (D) => {
43565
43563
  var O, P;
43566
- return ((O = R.declaration) == null ? void 0 : O.id) === f.id && Pi(
43567
- (P = R.declaration) == null ? void 0 : P.dataType,
43564
+ return ((O = D.declaration) == null ? void 0 : O.id) === f.id && Pi(
43565
+ (P = D.declaration) == null ? void 0 : P.dataType,
43568
43566
  f.dataType
43569
43567
  );
43570
43568
  }
@@ -43572,7 +43570,7 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
43572
43570
  if (T)
43573
43571
  ((E = T.declaration) == null ? void 0 : E.id) !== f.id && (T.setDeclaration(f), t.push(T));
43574
43572
  else {
43575
- const R = {
43573
+ const D = {
43576
43574
  id: y.UUID.uuid(),
43577
43575
  version: y.UUID.uuid(),
43578
43576
  createdAt: (e == null ? void 0 : e.timestamp) || v().toISOString(),
@@ -43586,7 +43584,7 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
43586
43584
  writesValues: [],
43587
43585
  parent: this.toReference()
43588
43586
  }, O = V(
43589
- R,
43587
+ D,
43590
43588
  this.project
43591
43589
  );
43592
43590
  O.setParent(this, e), O.initChildren(e), e == null || e.add(O, I.Added), O.addSelfToProject(e), i.push(O), T = O;
@@ -43775,7 +43773,7 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
43775
43773
  "create-current-value-input-based-on-input-map"
43776
43774
  )
43777
43775
  )) {
43778
- var f, c, T, E, R;
43776
+ var f, c, T, E, D;
43779
43777
  const t = [], i = [], s = [], l = [];
43780
43778
  switch (this.declaration.id) {
43781
43779
  case ee.List: {
@@ -44162,7 +44160,7 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
44162
44160
  const Z = this.project.getBuiltIn(
44163
44161
  g["primitive-entity"].string.id
44164
44162
  );
44165
- ((R = L.entity) == null ? void 0 : R.id) !== Z.id && (L.setEntity(Z), t.push(L));
44163
+ ((D = L.entity) == null ? void 0 : D.id) !== Z.id && (L.setEntity(Z), t.push(L));
44166
44164
  } else {
44167
44165
  const Z = {
44168
44166
  id: y.UUID.uuid(),
@@ -44617,10 +44615,10 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
44617
44615
  t.push(...f), i.push(...c), s.push(...T);
44618
44616
  const {
44619
44617
  updated: E,
44620
- added: R,
44618
+ added: D,
44621
44619
  removed: O
44622
44620
  } = this.syncTerminationStatements(e);
44623
- t.push(...E), i.push(...R), s.push(...O);
44621
+ t.push(...E), i.push(...D), s.push(...O);
44624
44622
  const {
44625
44623
  updated: P,
44626
44624
  added: B,
@@ -44871,7 +44869,7 @@ const Ge = class Ge extends at {
44871
44869
  new w({
44872
44870
  id: `${e.id}--${b.InvalidImplementsReference}`,
44873
44871
  code: b.InvalidImplementsReference,
44874
- severity: D.Error,
44872
+ severity: R.Error,
44875
44873
  message: `Entity of type '${e.type}' with id '${e.id}' has an 'declaration' property that isn't pointing to an action descriptor reserved for '${n.Condition}' entities.
44876
44874
  ${Il(t)}`,
44877
44875
  issue: null
@@ -44880,7 +44878,7 @@ ${Il(t)}`,
44880
44878
  new w({
44881
44879
  id: `${e.id}--${b.ReferencedEntityNotFound}`,
44882
44880
  code: b.ReferencedEntityNotFound,
44883
- severity: D.Error,
44881
+ severity: R.Error,
44884
44882
  message: `Entity of type '${e.type}' with id '${e.id}' has an 'declaration' property that isn't found in the project. The 'declaration' property must point to one of the built-in action descriptors reserved for '${n.Condition}' entities.
44885
44883
  ${Il(t)}`,
44886
44884
  issue: null
@@ -44889,7 +44887,7 @@ ${Il(t)}`,
44889
44887
  new w({
44890
44888
  id: `${e.id}--${$.InvalidObjectStructure}`,
44891
44889
  code: $.InvalidObjectStructure,
44892
- severity: D.Error,
44890
+ severity: R.Error,
44893
44891
  message: `Entity of type '${e.type}' with id '${e.id}' is missing the 'declaration' property. This property is required for a '${e.type}' entity and must point to one of the built-in action descriptors reserved for '${n.Condition}' entities.
44894
44892
  ${Il(t)}`,
44895
44893
  issue: null
@@ -44905,7 +44903,7 @@ ${Il(t)}`,
44905
44903
  new w({
44906
44904
  id: `${this.id}--${b.InvalidParentUpdate}`,
44907
44905
  code: b.InvalidParentUpdate,
44908
- severity: D.Error,
44906
+ severity: R.Error,
44909
44907
  message: `Entity of type '${this.type}' with id '${this.id}' cannot have the 'parent' property updated. The 'parent' on a callable entity, is its scope. It scope is auto-calculated implicitly by the its caller.
44910
44908
  If an entity is called by another, they must be in the same scope, which means they have the same parent.`,
44911
44909
  issue: null
@@ -45027,7 +45025,7 @@ If an entity is called by another, they must be in the same scope, which means t
45027
45025
  captureVersion() {
45028
45026
  var t;
45029
45027
  const e = ((t = this.knownVersions) == null ? void 0 : t.get(this.version)) || new Ge(this, this.project);
45030
- return e.metaSync(this.toMeta(), null), this.knownVersions = this.knownVersions ? this.knownVersions.set(this.version, e) : /* @__PURE__ */ new Map([[this.version, e]]), e.inputs = this.inputs, e.declaration = this.declaration, e.successCalls = this.successCalls, e.errorCalls = this.errorCalls, e.calledBySuccess = this.calledBySuccess, e.calledByError = this.calledByError, e.calledByEntry = this.calledByEntry, e.parent = this.parent, this;
45028
+ return e.metaSync(this.toMeta(), null), this.knownVersions = this.knownVersions ? this.knownVersions.set(this.version, e) : /* @__PURE__ */ new Map([[this.version, e]]), e.inputs = [...this.inputs], e.declaration = this.declaration, e.successCalls = [...this.successCalls], e.errorCalls = [...this.errorCalls], e.calledBySuccess = [...this.calledBySuccess], e.calledByError = [...this.calledByError], e.calledByEntry = [...this.calledByEntry], e.parent = this.parent, this;
45031
45029
  }
45032
45030
  // Traverses upstream entities and captures their versions as well
45033
45031
  recursiveCaptureUpstreamVersions(e) {
@@ -45804,7 +45802,7 @@ If an entity is called by another, they must be in the same scope, which means t
45804
45802
  );
45805
45803
  t ? c.setParent(t, null) : c.setParent(this.parent, null), s && c.subscribe(), c.initChildren(e), e == null || e.add(c, I.Added);
45806
45804
  const T = (E = this.inputs) == null ? void 0 : E.map(
45807
- (R, O) => R.clone(
45805
+ (D, O) => D.clone(
45808
45806
  e,
45809
45807
  c,
45810
45808
  f + "-input-map-" + O + "-id",
@@ -45862,8 +45860,8 @@ If an entity is called by another, they must be in the same scope, which means t
45862
45860
  )
45863
45861
  );
45864
45862
  this.inputs.sort((c, T) => c.index - T.index), o.forEach((c) => {
45865
- this.inputs.forEach((R) => {
45866
- R.index >= c.index && R.metaSync({ index: R.index + 1 }, e);
45863
+ this.inputs.forEach((D) => {
45864
+ D.index >= c.index && D.metaSync({ index: D.index + 1 }, e);
45867
45865
  });
45868
45866
  const T = {
45869
45867
  id: y.UUID.uuid(),
@@ -45969,7 +45967,7 @@ function iv(r) {
45969
45967
  r.project
45970
45968
  )}" with id "${r.id}".`,
45971
45969
  issue: null,
45972
- severity: D.Error,
45970
+ severity: R.Error,
45973
45971
  code: F.PropertyImplementsNonAbstact,
45974
45972
  entity: r
45975
45973
  });
@@ -45983,7 +45981,7 @@ function iv(r) {
45983
45981
  r.project
45984
45982
  )}" with id "${r.id}".`,
45985
45983
  issue: null,
45986
- severity: D.Error,
45984
+ severity: R.Error,
45987
45985
  code: F.PropertyImplementsNonAbstact,
45988
45986
  entity: r
45989
45987
  });
@@ -46008,7 +46006,7 @@ function rv(r) {
46008
46006
  r.project
46009
46007
  )}" with id "${r.id}".`,
46010
46008
  issue: null,
46011
- severity: D.Error,
46009
+ severity: R.Error,
46012
46010
  code: F.PropertyImplementsNonAbstact,
46013
46011
  entity: r
46014
46012
  });
@@ -46102,14 +46100,14 @@ const Ce = class Ce extends at {
46102
46100
  const s = _(e.declaration), l = t.get(
46103
46101
  s
46104
46102
  ), o = e.calledByEntry.map((E) => {
46105
- const R = _(E);
46106
- return t.get(R);
46103
+ const D = _(E);
46104
+ return t.get(D);
46107
46105
  }), d = e.calledBySuccess.map((E) => {
46108
- const R = _(E);
46109
- return t.get(R);
46106
+ const D = _(E);
46107
+ return t.get(D);
46110
46108
  }), u = e.calledByError.map((E) => {
46111
- const R = _(E);
46112
- return t.get(R);
46109
+ const D = _(E);
46110
+ return t.get(D);
46113
46111
  });
46114
46112
  let f = null;
46115
46113
  if (e.readsValue) {
@@ -46208,7 +46206,7 @@ const Ce = class Ce extends at {
46208
46206
  new w({
46209
46207
  id: `${this.id}--${b.InvalidParentUpdate}`,
46210
46208
  code: b.InvalidParentUpdate,
46211
- severity: D.Error,
46209
+ severity: R.Error,
46212
46210
  message: `Entity of type '${this.type}' with id '${this.id}' cannot have the 'parent' property updated. The 'parent' on a callable entity, is its scope. It scope is auto-calculated implicitly by the its caller.
46213
46211
  If an entity is called by another, they must be in the same scope, which means they have the same parent.
46214
46212
  Specifically for variables, their scope is also calculated from their value readers and value writters.
@@ -46373,7 +46371,7 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
46373
46371
  captureVersion() {
46374
46372
  var t;
46375
46373
  const e = ((t = this.knownVersions) == null ? void 0 : t.get(this.version)) || new Ce(this, this.project);
46376
- return e.metaSync(this.toMeta(), null), this.knownVersions = this.knownVersions ? this.knownVersions.set(this.version, e) : /* @__PURE__ */ new Map([[this.version, e]]), e.inputs = this.inputs, e.outputs = this.outputs, e.internalCalls = this.internalCalls, e.successCalls = this.successCalls, e.errorCalls = this.errorCalls, e.writesValues = this.writesValues, e.readsValue = this.readsValue, e.defaultValue = this.defaultValue, e.declaration = this.declaration, e.calledBySuccess = this.calledBySuccess, e.calledByError = this.calledByError, e.calledByEntry = this.calledByEntry, e.parent = this.parent, this;
46374
+ return e.metaSync(this.toMeta(), null), this.knownVersions = this.knownVersions ? this.knownVersions.set(this.version, e) : /* @__PURE__ */ new Map([[this.version, e]]), e.inputs = [...this.inputs], e.outputs = [...this.outputs], e.internalCalls = [...this.internalCalls], e.successCalls = [...this.successCalls], e.errorCalls = [...this.errorCalls], e.writesValues = [...this.writesValues], e.readsValue = this.readsValue, e.defaultValue = this.defaultValue, e.declaration = this.declaration, e.calledBySuccess = [...this.calledBySuccess], e.calledByError = [...this.calledByError], e.calledByEntry = [...this.calledByEntry], e.parent = this.parent, this;
46377
46375
  }
46378
46376
  // Traverses upstream entities and captures their versions as well
46379
46377
  recursiveCaptureUpstreamVersions(e) {
@@ -46531,9 +46529,9 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
46531
46529
  added: c,
46532
46530
  updated: T,
46533
46531
  removed: E,
46534
- affected: R
46532
+ affected: D
46535
46533
  } = this.generateUnusedOutputs(e);
46536
- i.push(...c), t.push(...T), s.push(...E), l.push(...R);
46534
+ i.push(...c), t.push(...T), s.push(...E), l.push(...D);
46537
46535
  const {
46538
46536
  added: O,
46539
46537
  updated: P,
@@ -47444,7 +47442,7 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
47444
47442
  "clone-entity"
47445
47443
  )
47446
47444
  ), t = null, i = null, s = !0) {
47447
- var R, O, P, B;
47445
+ var D, O, P, B;
47448
47446
  let l = yt(t, this);
47449
47447
  const o = this.toJSON(), d = i || y.UUID.uuid();
47450
47448
  o.inputs = [], o.id = d, o.version = y.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;
@@ -47453,7 +47451,7 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
47453
47451
  l
47454
47452
  );
47455
47453
  t ? u.setParent(t, null) : u.setParent(this.parent, null), s && u.subscribe(), u.initChildren(e), e == null || e.add(u, I.Added);
47456
- const f = (R = this.defaultValue) == null ? void 0 : R.clone(
47454
+ const f = (D = this.defaultValue) == null ? void 0 : D.clone(
47457
47455
  e,
47458
47456
  u,
47459
47457
  y.UUID.uuid(),
@@ -47535,10 +47533,10 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
47535
47533
  );
47536
47534
  if (!E)
47537
47535
  return;
47538
- const R = Fi(
47536
+ const D = Fi(
47539
47537
  E
47540
47538
  );
47541
- c.setDataType(R), T.setDeclaration(c);
47539
+ c.setDataType(D), T.setDeclaration(c);
47542
47540
  }), o.filter((c) => !this.inputs.find(
47543
47541
  (T) => {
47544
47542
  var E;
@@ -47685,8 +47683,8 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
47685
47683
  ].includes(this.declaration.dataType.entity.type) && [
47686
47684
  ...this.declaration.dataType.entity.getAllInteractiveMethods()
47687
47685
  ].filter((u) => !this.internalCalls.find((c) => {
47688
- var E, R, O, P, B;
47689
- return (((E = c.declaration) == null ? void 0 : E.id) || ((O = (R = c.initialData) == null ? void 0 : R.declaration) == null ? void 0 : O.entityId) || ((B = (P = c.initialData) == null ? void 0 : P.declaration) == null ? void 0 : B.id)) === u.id;
47686
+ var E, D, O, P, B;
47687
+ return (((E = c.declaration) == null ? void 0 : E.id) || ((O = (D = c.initialData) == null ? void 0 : D.declaration) == null ? void 0 : O.entityId) || ((B = (P = c.initialData) == null ? void 0 : P.declaration) == null ? void 0 : B.id)) === u.id;
47690
47688
  })).map((u) => {
47691
47689
  const f = u.createInternalCall(e, this);
47692
47690
  return e == null || e.add(f, I.Added), f.suggestion = !0, this.addInternalCall(f), f;
@@ -48009,7 +48007,7 @@ const _e = class _e extends at {
48009
48007
  new w({
48010
48008
  id: `${this.id}--${b.InvalidParentUpdate}`,
48011
48009
  code: b.InvalidParentUpdate,
48012
- severity: D.Error,
48010
+ severity: R.Error,
48013
48011
  message: `Entity of type '${this.type}' with id '${this.id}' cannot have the 'parent' property updated. The 'parent' on a callable entity, is its scope. It scope is auto-calculated implicitly by the its caller.
48014
48012
  If an entity is called by another, they must be in the same scope, which means they have the same parent.
48015
48013
  Specifically for variables, their scope is also calculated from their value readers and value writters.
@@ -48146,7 +48144,7 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
48146
48144
  captureVersion() {
48147
48145
  var t;
48148
48146
  const e = ((t = this.knownVersions) == null ? void 0 : t.get(this.version)) || new _e(this, this.project);
48149
- return e.metaSync(this.toMeta(), null), this.knownVersions = this.knownVersions ? this.knownVersions.set(this.version, e) : /* @__PURE__ */ new Map([[this.version, e]]), e.inputs = this.inputs, e.outputs = this.outputs, e.internalCalls = this.internalCalls, e.successCalls = this.successCalls, e.errorCalls = this.errorCalls, e.writesValues = this.writesValues, e.readsValue = this.readsValue, e.defaultValue = this.defaultValue, e.dataType = this.dataType, e.calledBySuccess = this.calledBySuccess, e.calledByError = this.calledByError, e.calledByEntry = this.calledByEntry, e.parent = this.parent, this;
48147
+ return e.metaSync(this.toMeta(), null), this.knownVersions = this.knownVersions ? this.knownVersions.set(this.version, e) : /* @__PURE__ */ new Map([[this.version, e]]), e.inputs = [...this.inputs], e.outputs = [...this.outputs], e.internalCalls = [...this.internalCalls], e.successCalls = [...this.successCalls], e.errorCalls = [...this.errorCalls], e.writesValues = [...this.writesValues], e.readsValue = this.readsValue, e.defaultValue = this.defaultValue, e.dataType = this.dataType, e.calledBySuccess = [...this.calledBySuccess], e.calledByError = [...this.calledByError], e.calledByEntry = [...this.calledByEntry], e.parent = this.parent, this;
48150
48148
  }
48151
48149
  // Traverses upstream entities and captures their versions as well
48152
48150
  recursiveCaptureUpstreamVersions(e) {
@@ -48295,9 +48293,9 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
48295
48293
  added: c,
48296
48294
  updated: T,
48297
48295
  removed: E,
48298
- affected: R
48296
+ affected: D
48299
48297
  } = this.generateUnusedOutputs(e);
48300
- i.push(...c), t.push(...T), s.push(...E), l.push(...R);
48298
+ i.push(...c), t.push(...T), s.push(...E), l.push(...D);
48301
48299
  const {
48302
48300
  added: O,
48303
48301
  updated: P,
@@ -48841,11 +48839,11 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
48841
48839
  t.push(...f), i.push(...u), s.push(...c), l.push(...T);
48842
48840
  const {
48843
48841
  updated: E,
48844
- added: R,
48842
+ added: D,
48845
48843
  removed: O,
48846
48844
  affected: P
48847
48845
  } = this.generateUnusedOutputs(e);
48848
- return t.push(...R), i.push(...E), s.push(...O), l.push(...P), this.variableInstances.forEach((Z) => {
48846
+ return t.push(...D), i.push(...E), s.push(...O), l.push(...P), this.variableInstances.forEach((Z) => {
48849
48847
  const {
48850
48848
  updated: J,
48851
48849
  added: K,
@@ -49442,7 +49440,7 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
49442
49440
  )
49443
49441
  );
49444
49442
  u.outputs = E;
49445
- const R = (C = this.internalCalls) == null ? void 0 : C.map(
49443
+ const D = (C = this.internalCalls) == null ? void 0 : C.map(
49446
49444
  (L) => L.clone(
49447
49445
  e,
49448
49446
  u,
@@ -49451,7 +49449,7 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
49451
49449
  s
49452
49450
  )
49453
49451
  );
49454
- return u.internalCalls = R, e == null || e.attemptAutoclose("clone-entity", this.id), u;
49452
+ return u.internalCalls = D, e == null || e.attemptAutoclose("clone-entity", this.id), u;
49455
49453
  }
49456
49454
  addInternalCall(e) {
49457
49455
  return this.internalCalls.find((t) => t === e) || this.internalCalls.push(e), this;
@@ -49534,10 +49532,10 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
49534
49532
  );
49535
49533
  if (!E)
49536
49534
  return;
49537
- const R = Fi(
49535
+ const D = Fi(
49538
49536
  E
49539
49537
  );
49540
- c.setDataType(R), T.setDeclaration(c);
49538
+ c.setDataType(D), T.setDeclaration(c);
49541
49539
  }), o.filter((c) => !this.inputs.find(
49542
49540
  (T) => {
49543
49541
  var E;
@@ -49684,8 +49682,8 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
49684
49682
  ].includes(this.dataType.entity.type) && [
49685
49683
  ...this.dataType.entity.getAllInteractiveMethods()
49686
49684
  ].filter((u) => !this.internalCalls.find((c) => {
49687
- var E, R, O, P, B;
49688
- return (((E = c.declaration) == null ? void 0 : E.id) || ((O = (R = c.initialData) == null ? void 0 : R.declaration) == null ? void 0 : O.entityId) || ((B = (P = c.initialData) == null ? void 0 : P.declaration) == null ? void 0 : B.id)) === u.id;
49685
+ var E, D, O, P, B;
49686
+ return (((E = c.declaration) == null ? void 0 : E.id) || ((O = (D = c.initialData) == null ? void 0 : D.declaration) == null ? void 0 : O.entityId) || ((B = (P = c.initialData) == null ? void 0 : P.declaration) == null ? void 0 : B.id)) === u.id;
49689
49687
  })).map((u) => {
49690
49688
  const f = u.createInternalCall(e, this);
49691
49689
  return e == null || e.add(f, I.Added), f.suggestion = !0, this.addInternalCall(f), f;
@@ -50029,7 +50027,7 @@ const qe = class qe extends at {
50029
50027
  new w({
50030
50028
  id: `${this.id}--${b.InvalidParentUpdate}`,
50031
50029
  code: b.InvalidParentUpdate,
50032
- severity: D.Error,
50030
+ severity: R.Error,
50033
50031
  message: `Entity of type '${this.type}' with id '${this.id}' cannot have the 'parent' property updated. The 'parent' on a callable entity, is its scope. It scope is auto-calculated implicitly by the its caller.
50034
50032
  If an entity is called by another, they must be in the same scope, which means they have the same parent.
50035
50033
  You shouldn't have to manually update a 'parent' property. The equivalent result is to change its callers, the value writters of its inputs, or the value readers of its outputs.`,
@@ -50177,7 +50175,7 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
50177
50175
  captureVersion() {
50178
50176
  var t;
50179
50177
  const e = ((t = this.knownVersions) == null ? void 0 : t.get(this.version)) || new qe(this, this.project);
50180
- return e.metaSync(this.toMeta(), null), this.knownVersions = this.knownVersions ? this.knownVersions.set(this.version, e) : /* @__PURE__ */ new Map([[this.version, e]]), e.inputs = this.inputs, e.outputs = this.outputs, e.error = this.error, e.inputsDeclarations = this.inputsDeclarations, e.outputsDeclarations = this.outputsDeclarations, e.successCalls = this.successCalls, e.errorCalls = this.errorCalls, e.calledByEntry = this.calledByEntry, e.calledBySuccess = this.calledBySuccess, e.calledByError = this.calledByError, e.parent = this.parent, this;
50178
+ return e.metaSync(this.toMeta(), null), this.knownVersions = this.knownVersions ? this.knownVersions.set(this.version, e) : /* @__PURE__ */ new Map([[this.version, e]]), e.inputs = [...this.inputs], e.outputs = [...this.outputs], e.error = this.error, e.inputsDeclarations = [...this.inputsDeclarations], e.outputsDeclarations = [...this.outputsDeclarations], e.successCalls = [...this.successCalls], e.errorCalls = [...this.errorCalls], e.calledByEntry = [...this.calledByEntry], e.calledBySuccess = [...this.calledBySuccess], e.calledByError = [...this.calledByError], e.parent = this.parent, this;
50181
50179
  }
50182
50180
  // Traverses upstream entities and captures their versions as well
50183
50181
  recursiveCaptureUpstreamVersions(e) {
@@ -51179,7 +51177,7 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
51179
51177
  )
51180
51178
  );
51181
51179
  c.outputsDeclarations = E;
51182
- const R = (j = this.inputs) == null ? void 0 : j.map(
51180
+ const D = (j = this.inputs) == null ? void 0 : j.map(
51183
51181
  (L, Z) => L.clone(
51184
51182
  e,
51185
51183
  c,
@@ -51187,7 +51185,7 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
51187
51185
  s
51188
51186
  )
51189
51187
  );
51190
- c.inputs = R;
51188
+ c.inputs = D;
51191
51189
  const O = (C = this.outputs) == null ? void 0 : C.map(
51192
51190
  (L, Z) => L.clone(
51193
51191
  e,
@@ -51442,7 +51440,7 @@ const qW = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
51442
51440
  new w({
51443
51441
  id: `${this.id}--${b.InvalidParentUpdate}`,
51444
51442
  code: b.InvalidParentUpdate,
51445
- severity: D.Error,
51443
+ severity: R.Error,
51446
51444
  message: `Entity of type '${this.type}' with id '${this.id}' cannot have the 'parent' property updated. The 'parent' on an installed project, must be the root project as it is a globally declared entity.`,
51447
51445
  issue: null
51448
51446
  })
@@ -51534,7 +51532,7 @@ const qW = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
51534
51532
  captureVersion() {
51535
51533
  var t;
51536
51534
  const e = ((t = this.knownVersions) == null ? void 0 : t.get(this.version)) || new Fe(this, this.project);
51537
- return e.metaSync(this.toMeta(), null), this.knownVersions = this.knownVersions ? this.knownVersions.set(this.version, e) : /* @__PURE__ */ new Map([[this.version, e]]), e.functions = this.functions, e.events = this.events, e.parent = this.parent, this;
51535
+ return e.metaSync(this.toMeta(), null), this.knownVersions = this.knownVersions ? this.knownVersions.set(this.version, e) : /* @__PURE__ */ new Map([[this.version, e]]), e.functions = [...this.functions], e.events = [...this.events], e.parent = this.parent, this;
51538
51536
  }
51539
51537
  // Traverses upstream entities and captures their versions as well
51540
51538
  recursiveCaptureUpstreamVersions(e) {
@@ -52055,7 +52053,7 @@ const qW = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
52055
52053
  "clone-entity"
52056
52054
  )
52057
52055
  ), t = null, i = null, s = !0) {
52058
- var R, O;
52056
+ var D, O;
52059
52057
  let l = yt(t, this);
52060
52058
  const o = this.toJSON(), d = i || y.UUID.uuid();
52061
52059
  o.functions = [], o.events = [];
@@ -52066,7 +52064,7 @@ const qW = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
52066
52064
  l
52067
52065
  );
52068
52066
  t && c.setParent(t, null), s && c.subscribe(), c.initChildren(e), e == null || e.add(c, I.Added);
52069
- const T = (R = this.functions) == null ? void 0 : R.map(
52067
+ const T = (D = this.functions) == null ? void 0 : D.map(
52070
52068
  (P, B) => P.clone(
52071
52069
  e,
52072
52070
  c,
@@ -52146,7 +52144,7 @@ function lv(r) {
52146
52144
  fe({
52147
52145
  id: `${r.id}--${$.InternalCallParentMissingDataType}`,
52148
52146
  code: $.InternalCallParentMissingDataType,
52149
- severity: D.Error,
52147
+ severity: R.Error,
52150
52148
  message: `Entity of type "${r.type}" with id "${r.id}", belongs to a variable whose data type entity doesn't contain its declaration method (function-declaration) its id "${r.declaration}".`,
52151
52149
  issue: null,
52152
52150
  entity: r
@@ -52161,7 +52159,7 @@ function lv(r) {
52161
52159
  fe({
52162
52160
  id: `${r.id}--${$.InternalCallParentDeclarationEntityInvalidType}`,
52163
52161
  code: $.InternalCallParentDeclarationEntityInvalidType,
52164
- severity: D.Error,
52162
+ severity: R.Error,
52165
52163
  message: `Entity of type "${r.type}" with id "${r.id}", belongs to a variable whose data type 'entity' is not a definition entity, built-in base entity or primitive entity.
52166
52164
  This variable's data-type has an 'entity' field that references an entity with id '${t.id}' and of type '${t.type}'.`,
52167
52165
  issue: null,
@@ -52200,7 +52198,7 @@ This variable's data-type 'entity' is a non-interactive 'built-in-base-entity'.s
52200
52198
  fe({
52201
52199
  id: `${r.id}--${$.InternalCallDeclarationIsNotFunctionDeclaration}`,
52202
52200
  code: $.InternalCallDeclarationIsNotFunctionDeclaration,
52203
- severity: D.Error,
52201
+ severity: R.Error,
52204
52202
  message: `Entity of type "${r.type}" with id "${r.id}", points to a 'declaration' that isn't a 'function-declaration' entity.
52205
52203
  The declaration of the internal-call must be a 'function-declaration' entity which exists as a method in the entity of the data-type of the parent variable.${l}`,
52206
52204
  issue: null,
@@ -52210,7 +52208,7 @@ The declaration of the internal-call must be a 'function-declaration' entity whi
52210
52208
  fe({
52211
52209
  id: `${r.id}--${$.InternalCallDeclarationNotFoundInParentDatatypeEntity}`,
52212
52210
  code: $.InternalCallDeclarationNotFoundInParentDatatypeEntity,
52213
- severity: D.Error,
52211
+ severity: R.Error,
52214
52212
  message: `Entity of type "${r.type}" with id "${r.id}", belongs to a variable whose data type entity doesn't contain its declaration method (function-declaration) with id "${r.declaration}".${l}`,
52215
52213
  issue: null,
52216
52214
  entity: r
@@ -52293,14 +52291,14 @@ const Be = class Be extends at {
52293
52291
  const i = _(e.parent), s = t.get(i), l = _(e.declaration), o = t.get(
52294
52292
  l
52295
52293
  ), d = e.calledByEntry.map((E) => {
52296
- const R = _(E);
52297
- return t.get(R);
52294
+ const D = _(E);
52295
+ return t.get(D);
52298
52296
  }), u = e.calledBySuccess.map((E) => {
52299
- const R = _(E);
52300
- return t.get(R);
52297
+ const D = _(E);
52298
+ return t.get(D);
52301
52299
  }), f = e.calledByError.map((E) => {
52302
- const R = _(E);
52303
- return t.get(R);
52300
+ const D = _(E);
52301
+ return t.get(D);
52304
52302
  }), c = {
52305
52303
  id: e.id,
52306
52304
  version: y.UUID.uuid(),
@@ -52369,7 +52367,7 @@ const Be = class Be extends at {
52369
52367
  new w({
52370
52368
  id: `${i.id}--${$.InternalCallParentMissingDataType}`,
52371
52369
  code: $.InternalCallParentMissingDataType,
52372
- severity: D.Error,
52370
+ severity: R.Error,
52373
52371
  message: `Entity of type "${i.type}" with id "${i.id}", belongs to a variable whose data type entity doesn't contain its declaration method (function-declaration) its id "${i.declaration}".`,
52374
52372
  issue: null
52375
52373
  })
@@ -52383,7 +52381,7 @@ const Be = class Be extends at {
52383
52381
  new w({
52384
52382
  id: `${i.id}--${$.InternalCallParentDeclarationEntityInvalidType}`,
52385
52383
  code: $.InternalCallParentDeclarationEntityInvalidType,
52386
- severity: D.Error,
52384
+ severity: R.Error,
52387
52385
  message: `Entity of type "${i.type}" with id "${i.id}", belongs to a variable whose data type 'entity' is not a definition entity, built-in base entity or primitive entity.
52388
52386
  This variable's data-type has an 'entity' field that references an entity with id '${f.id}' and of type '${f.type}'.`,
52389
52387
  issue: null
@@ -52419,7 +52417,7 @@ ${un}`);
52419
52417
  new w({
52420
52418
  id: `${i.id}--${b.ReferencedEntityNotFound}`,
52421
52419
  code: b.ReferencedEntityNotFound,
52422
- severity: D.Error,
52420
+ severity: R.Error,
52423
52421
  message: `Entity of type "${i.type}" with id "${i.id}", has a declaration method (function-declaration) that doesn't exist in the project.${T}`,
52424
52422
  issue: null
52425
52423
  })
@@ -52440,7 +52438,7 @@ ${un}`);
52440
52438
  new w({
52441
52439
  id: `${i.id}--${$.InternalCallDeclarationIsNotFunctionDeclaration}`,
52442
52440
  code: $.InternalCallDeclarationIsNotFunctionDeclaration,
52443
- severity: D.Error,
52441
+ severity: R.Error,
52444
52442
  message: `Entity of type "${i.type}" with id "${i.id}", points to a 'declaration' that isn't a 'function-declaration' entity.
52445
52443
  The declaration of the internal-call must be a 'function-declaration' entity which exists as a method in the entity of the data-type of the parent variable.${T}`,
52446
52444
  issue: null
@@ -52449,7 +52447,7 @@ The declaration of the internal-call must be a 'function-declaration' entity whi
52449
52447
  new w({
52450
52448
  id: `${i.id}--${$.InternalCallDeclarationNotFoundInParentDatatypeEntity}`,
52451
52449
  code: $.InternalCallDeclarationNotFoundInParentDatatypeEntity,
52452
- severity: D.Error,
52450
+ severity: R.Error,
52453
52451
  message: `Entity of type "${i.type}" with id "${i.id}", belongs to a variable whose data type entity doesn't contain its declaration method (function-declaration) with id "${i.declaration}".${T}`,
52454
52452
  issue: null
52455
52453
  })
@@ -52460,7 +52458,7 @@ The declaration of the internal-call must be a 'function-declaration' entity whi
52460
52458
  new w({
52461
52459
  id: `${i.id}--${b.InvalidInternalCallParentRelation}`,
52462
52460
  code: b.InvalidInternalCallParentRelation,
52463
- severity: D.Error,
52461
+ severity: R.Error,
52464
52462
  message: `Entity of type "${i.type}" with id "${i.id}", can only be added to a variable declaration or variable instance parent if the parent doesn't already have inputs, outputs or other internal calls.
52465
52463
  If you need a new variable-instance for this, consider using the 'implement_variable_instance' generation action to create one and give it a caller.
52466
52464
  The you can attach the new internal-call to it.`,
@@ -52482,7 +52480,7 @@ The you can attach the new internal-call to it.`,
52482
52480
  new w({
52483
52481
  id: `${this.id}--${b.InvalidParentUpdate}`,
52484
52482
  code: b.InvalidParentUpdate,
52485
- severity: D.Error,
52483
+ severity: R.Error,
52486
52484
  message: `Entity of type '${this.type}' with id '${this.id}' cannot have the 'parent' property updated, as it would mean moving the '${this.type}' entity to another parent entity.
52487
52485
  This is likely an incorrect strategy, either the '${this.type}' entity doesn't need to be updated or it should be deleted and a new one created in the desired parent.`,
52488
52486
  issue: null
@@ -52603,7 +52601,7 @@ This is likely an incorrect strategy, either the '${this.type}' entity doesn't n
52603
52601
  captureVersion() {
52604
52602
  var t;
52605
52603
  const e = ((t = this.knownVersions) == null ? void 0 : t.get(this.version)) || new Be(this, this.project);
52606
- return e.metaSync(this.toMeta(), null), this.knownVersions = this.knownVersions ? this.knownVersions.set(this.version, e) : /* @__PURE__ */ new Map([[this.version, e]]), e.inputs = this.inputs, e.outputs = this.outputs, e.error = this.error, e.process = this.process, e.successCalls = this.successCalls, e.errorCalls = this.errorCalls, e.calledBySuccess = this.calledBySuccess, e.calledByError = this.calledByError, e.calledByEntry = this.calledByEntry, e.declaration = this.declaration, e.parent = this.parent, this;
52604
+ return e.metaSync(this.toMeta(), null), this.knownVersions = this.knownVersions ? this.knownVersions.set(this.version, e) : /* @__PURE__ */ new Map([[this.version, e]]), e.inputs = [...this.inputs], e.outputs = [...this.outputs], e.error = this.error, e.process = this.process, e.successCalls = [...this.successCalls], e.errorCalls = [...this.errorCalls], e.calledBySuccess = [...this.calledBySuccess], e.calledByError = [...this.calledByError], e.calledByEntry = [...this.calledByEntry], e.declaration = this.declaration, e.parent = this.parent, this;
52607
52605
  }
52608
52606
  // Traverses upstream entities and captures their versions as well
52609
52607
  recursiveCaptureUpstreamVersions(e) {
@@ -53528,7 +53526,7 @@ This is likely an incorrect strategy, either the '${this.type}' entity doesn't n
53528
53526
  "clone-entity"
53529
53527
  )
53530
53528
  ), t = null, i = null, s = !0) {
53531
- var R, O;
53529
+ var D, O;
53532
53530
  let l = yt(t, this);
53533
53531
  const o = this.toJSON(), d = i || y.UUID.uuid();
53534
53532
  o.inputs = [];
@@ -53539,7 +53537,7 @@ This is likely an incorrect strategy, either the '${this.type}' entity doesn't n
53539
53537
  l
53540
53538
  );
53541
53539
  t ? c.setParent(t, null) : c.setParent(this.parent, null), s && c.subscribe(), c.initChildren(e), e == null || e.add(c, I.Added);
53542
- const T = (R = this.inputs) == null ? void 0 : R.map(
53540
+ const T = (D = this.inputs) == null ? void 0 : D.map(
53543
53541
  (P, B) => P.clone(
53544
53542
  e,
53545
53543
  c,
@@ -53649,8 +53647,8 @@ This is likely an incorrect strategy, either the '${this.type}' entity doesn't n
53649
53647
  )
53650
53648
  );
53651
53649
  this.inputs.sort((c, T) => c.index - T.index), o.forEach((c) => {
53652
- this.inputs.forEach((R) => {
53653
- R.index >= c.index && R.metaSync({ index: R.index + 1 }, e);
53650
+ this.inputs.forEach((D) => {
53651
+ D.index >= c.index && D.metaSync({ index: D.index + 1 }, e);
53654
53652
  });
53655
53653
  const T = {
53656
53654
  id: y.UUID.uuid(),
@@ -53720,7 +53718,7 @@ This is likely an incorrect strategy, either the '${this.type}' entity doesn't n
53720
53718
  this.outputs.forEach((B) => {
53721
53719
  B.index >= T.index && B.index++;
53722
53720
  });
53723
- const R = o.includes(T.index) ? this.outputs.length - 1 + E : T.index, O = {
53721
+ const D = o.includes(T.index) ? this.outputs.length - 1 + E : T.index, O = {
53724
53722
  id: y.UUID.uuid(),
53725
53723
  version: y.UUID.uuid(),
53726
53724
  createdAt: (e == null ? void 0 : e.timestamp) || v().toISOString(),
@@ -53731,7 +53729,7 @@ This is likely an incorrect strategy, either the '${this.type}' entity doesn't n
53731
53729
  declaration: T.toJSON(),
53732
53730
  defaultValue: null,
53733
53731
  writesValues: [],
53734
- index: R,
53732
+ index: D,
53735
53733
  parent: this.toReference()
53736
53734
  }, P = V(
53737
53735
  O,
@@ -53822,7 +53820,7 @@ function dv(r) {
53822
53820
  r.project
53823
53821
  )}" with id "${r.id}".`,
53824
53822
  issue: null,
53825
- severity: D.Error,
53823
+ severity: R.Error,
53826
53824
  code: F.PropertyImplementsNonAbstact,
53827
53825
  entity: r
53828
53826
  });
@@ -53964,7 +53962,7 @@ const Me = class Me extends at {
53964
53962
  new w({
53965
53963
  id: `${i.id}--${b.InvalidInputMapDeclaration}`,
53966
53964
  code: b.InvalidInputMapDeclaration,
53967
- severity: D.Error,
53965
+ severity: R.Error,
53968
53966
  message: `Entity of type '${n.InputMap}' with id '${i.id}' has a 'declaration' property pointing to an entity with type '${n.ArgumentDeclaration}' with id '${i.declaration}'.
53969
53967
  The parent entity of type '${o.type}' with id '${o.id}' is not compatible with this type of declaration.
53970
53968
  Only 'function-call', 'search' and 'internal-call' entities can have input-maps whose 'declaration' points to 'argument-declaration' entities.`,
@@ -53974,7 +53972,7 @@ Only 'function-call', 'search' and 'internal-call' entities can have input-maps
53974
53972
  new w({
53975
53973
  id: `${i.id}--${b.InvalidInputMapDeclaration}`,
53976
53974
  code: b.InvalidInputMapDeclaration,
53977
- severity: D.Error,
53975
+ severity: R.Error,
53978
53976
  message: `Entity of type '${n.InputMap}' with id '${i.id}' has a 'declaration' property pointing to an entity with type '${n.Property}' with id '${i.declaration}'.
53979
53977
  The parent entity of type '${o.type}' with id '${o.id}' is not compatible with this type of declaration.
53980
53978
  Only variables can have input-maps whose 'declaration' points to 'property' entities.`,
@@ -53986,7 +53984,7 @@ Only variables can have input-maps whose 'declaration' points to 'property' enti
53986
53984
  new w({
53987
53985
  id: `${i.id}--${b.InvalidInputMapDeclaration}`,
53988
53986
  code: b.InvalidInputMapDeclaration,
53989
- severity: D.Error,
53987
+ severity: R.Error,
53990
53988
  message: `Entity of type '${n.InputMap}' with id '${i.id}' has a 'declaration' property pointing to an entity with type '${n.ValueDescriptor}' with id '${i.declaration}'.
53991
53989
  The parent entity of type '${o.type}' with id '${o.id}' is not compatible with this type of declaration.
53992
53990
  Only 'condition', 'operation' and 'loop' entities can have input-maps whose 'declaration' points to 'value-descriptor' entities.`,
@@ -53996,7 +53994,7 @@ Only 'condition', 'operation' and 'loop' entities can have input-maps whose 'dec
53996
53994
  new w({
53997
53995
  id: `${i.id}--${b.InvalidInputMapDeclaration}`,
53998
53996
  code: b.InvalidInputMapDeclaration,
53999
- severity: D.Error,
53997
+ severity: R.Error,
54000
53998
  message: `Entity of type '${n.InputMap}' with id '${i.id}' must have a 'declaration' property pointing to a '${ne(
54001
53999
  [
54002
54000
  n.Property,
@@ -54014,7 +54012,7 @@ This is because a dynamically assembled object can have new properties added to
54014
54012
  new w({
54015
54013
  id: `${i.id}--${b.ReferencedEntityNotFound}`,
54016
54014
  code: b.ReferencedEntityNotFound,
54017
- severity: D.Error,
54015
+ severity: R.Error,
54018
54016
  message: `Entity of type '${n.InputMap}' with id '${i.id}' has a 'declaration' property that points to an entity with id '${i.declaration}' that isn't yet found in the project. Perhaps it should be created first. Or perhaps the ID is incorrect.`,
54019
54017
  issue: null
54020
54018
  })
@@ -54022,7 +54020,7 @@ This is because a dynamically assembled object can have new properties added to
54022
54020
  new w({
54023
54021
  id: `${i.id}--${b.InvalidInputMapDeclaration}`,
54024
54022
  code: b.InvalidInputMapDeclaration,
54025
- severity: D.Error,
54023
+ severity: R.Error,
54026
54024
  message: `Entity of type '${n.InputMap}' with id '${i.id}' must have a 'declaration' property pointing to a 'argument-declaration' or 'property' entity.
54027
54025
  Only input-map entities for variables with an inferred data type are allowed to not have a declaration.
54028
54026
  This is because a dynamically assembled object can have new properties added to it as input-maps. Otherwise all input maps need to point to a declaration`,
@@ -54034,7 +54032,7 @@ This is because a dynamically assembled object can have new properties added to
54034
54032
  new w({
54035
54033
  id: `${i.id}--${b.InputOverwrite}`,
54036
54034
  code: b.InputOverwrite,
54037
- severity: D.Error,
54035
+ severity: R.Error,
54038
54036
  message: `Entity of type '${n.InputMap}' with id '${i.id}' cannot be added to the parent entity of type '${o.type}' with id '${o.id}'. The parent already has an input-map with id '${u.id}' that points to the same base ${d.type} as declaration.
54039
54037
  Any value reads can be done with that input-map instead.
54040
54038
  You can't edit input-map entities as they need to match their argument declarations, so you can only modify the 'readsValue' property so it reads the value from an external entity, or the 'defaultValue' so it has a hard-coded one.`,
@@ -54042,25 +54040,25 @@ You can't edit input-map entities as they need to match their argument declarati
54042
54040
  })
54043
54041
  );
54044
54042
  else if (tt.includes(o.type)) {
54045
- const E = Fn(o).dataType, R = E == null ? void 0 : E.entity;
54046
- R && R.type === n.ActionDescriptor ? s.push(
54043
+ const E = Fn(o).dataType, D = E == null ? void 0 : E.entity;
54044
+ D && D.type === n.ActionDescriptor ? s.push(
54047
54045
  new w({
54048
54046
  id: `${i.id}--${$.NoOverlapWithImplementedSignature}`,
54049
54047
  code: $.NoOverlapWithImplementedSignature,
54050
- severity: D.Error,
54048
+ severity: R.Error,
54051
54049
  message: `Entity of type '${n.InputMap}' with id '${i.id}' cannot be added to the parent entity of type '${o.type}' with id '${o.id}'. The data type of the 'variable-declaration' is a 'action-descriptor' entity.
54052
54050
  This means it can hold a function-call or operation as its value, to be executed programatically.
54053
54051
  Input maps can only be added to variables which hold an entity with properties.`,
54054
54052
  issue: null
54055
54053
  })
54056
- ) : R && !(E != null && E.inferred) && (R.properties.find((P) => P.id === d.id) || s.push(
54054
+ ) : D && !(E != null && E.inferred) && (D.properties.find((P) => P.id === d.id) || s.push(
54057
54055
  new w({
54058
54056
  id: `${i.id}--${$.NoOverlapWithImplementedSignature}`,
54059
54057
  code: $.NoOverlapWithImplementedSignature,
54060
- severity: D.Error,
54058
+ severity: R.Error,
54061
54059
  message: `Entity of type '${n.InputMap}' with id '${i.id}' cannot be added to the parent entity of type '${o.type}' with id '${o.id}'. The 'declaration' with '${d.id}' of the 'input-map' does not exist in the entity of the 'data-type'.
54062
54060
  The entity of the data-type has the following properties that can be reads as input maps, ids: '${ne(
54063
- R.properties.map(
54061
+ D.properties.map(
54064
54062
  (P) => P.id
54065
54063
  ),
54066
54064
  "', '",
@@ -54074,7 +54072,7 @@ The entity of the data-type has the following properties that can be reads as in
54074
54072
  ).includes(o.type)) {
54075
54073
  const T = Pv(o), E = T.find(
54076
54074
  (O) => O.id === i.declaration
54077
- ), R = `The parent entity has the following argument declarations that can be referenced by input-maps, ids: '${ne(
54075
+ ), D = `The parent entity has the following argument declarations that can be referenced by input-maps, ids: '${ne(
54078
54076
  T.map((O) => O.id),
54079
54077
  "', '",
54080
54078
  "' and '"
@@ -54083,10 +54081,10 @@ The entity of the data-type has the following properties that can be reads as in
54083
54081
  new w({
54084
54082
  id: `${i.id}--${$.NoOverlapWithImplementedSignature}`,
54085
54083
  code: $.NoOverlapWithImplementedSignature,
54086
- severity: D.Error,
54084
+ severity: R.Error,
54087
54085
  message: `Entity of type '${n.InputMap}' with id '${i.id}' cannot be added to the parent entity of type '${o.type}' with id '${o.id}'. The parent entity does not have an 'argument-declaration' with id '${i.declaration}'.
54088
54086
  You can't add an input-map to an entity that doesn't have a matching 'argument-declaration'.
54089
- ${R}`,
54087
+ ${D}`,
54090
54088
  issue: null
54091
54089
  })
54092
54090
  );
@@ -54117,7 +54115,7 @@ ${R}`,
54117
54115
  new w({
54118
54116
  id: `${this.id}--${b.InvalidParentUpdate}`,
54119
54117
  code: b.InvalidParentUpdate,
54120
- severity: D.Error,
54118
+ severity: R.Error,
54121
54119
  message: `Entity of type '${this.type}' with id '${this.id}' cannot have the 'parent' property updated, as it would mean moving the '${this.type}' entity to another parent entity.
54122
54120
  This is likely an incorrect strategy, either the '${this.type}' entity doesn't need to be updated or it should be deleted and a new one created in the desired parent.`,
54123
54121
  issue: null
@@ -54714,7 +54712,7 @@ This is likely an incorrect strategy, either the '${this.type}' entity doesn't n
54714
54712
  });
54715
54713
  }
54716
54714
  toJSONClone(e = q) {
54717
- var i, s, l, o, d, u, f, c, T, E, R;
54715
+ var i, s, l, o, d, u, f, c, T, E, D;
54718
54716
  let t;
54719
54717
  return (i = e.seenEntityMaps) != null && i.has(this.id) ? t = e.seenEntityMaps.get(this.id) : (t = e.newId || ht(this, this.project, e.uuidStrategy), e.seenEntityMaps && e.seenEntityMaps.set(this.id, t)), (s = e.seenEntities) != null && s.has(t) || (l = e.seenEntities) != null && l.has(this.id) ? this.toReference({ seenEntityMaps: e.seenEntityMaps }) : ((o = e.seenEntities) == null || o.add(t), (d = e.seenEntities) == null || d.add(this.id), {
54720
54718
  id: t,
@@ -54737,7 +54735,7 @@ This is likely an incorrect strategy, either the '${this.type}' entity doesn't n
54737
54735
  ...e,
54738
54736
  newId: null
54739
54737
  })) || null,
54740
- readsValue: ((R = this.readsValue) == null ? void 0 : R.toReference({
54738
+ readsValue: ((D = this.readsValue) == null ? void 0 : D.toReference({
54741
54739
  seenEntityMaps: e.seenEntityMaps
54742
54740
  })) || null,
54743
54741
  parent: this.parent.toReference({
@@ -54982,7 +54980,7 @@ function uv(r) {
54982
54980
  r.project
54983
54981
  )}" with id "${r.id}".`,
54984
54982
  issue: null,
54985
- severity: D.Error,
54983
+ severity: R.Error,
54986
54984
  code: F.PropertyImplementsNonAbstact,
54987
54985
  entity: r
54988
54986
  });
@@ -55114,7 +55112,7 @@ const Ne = class Ne extends at {
55114
55112
  new w({
55115
55113
  id: `${i.id}--${b.OutputOverwrite}`,
55116
55114
  code: b.OutputOverwrite,
55117
- severity: D.Error,
55115
+ severity: R.Error,
55118
55116
  message: `Entity of type '${n.OutputMap}' with id '${i.id}' cannot be added to the parent entity of type '${o.type}' with id '${o.id}'. The parent already has an output-map with id '${u.id}' that points to the same base 'return-declaration'.
55119
55117
  Any value reads can be done with that output-map instead.
55120
55118
  You can't edit output-map entities as they need to match their return declarations, so you can only choose to read their outputted value if you need it.`,
@@ -55129,7 +55127,7 @@ You can't edit output-map entities as they need to match their return declaratio
55129
55127
  new w({
55130
55128
  id: `${i.id}--${$.NoOverlapWithImplementedSignature}`,
55131
55129
  code: $.NoOverlapWithImplementedSignature,
55132
- severity: D.Error,
55130
+ severity: R.Error,
55133
55131
  message: `Entity of type '${n.OutputMap}' with id '${i.id}' cannot be added to the parent entity of type '${o.type}' with id '${o.id}'. The data type of the 'variable-declaration' is a 'action-descriptor' entity.
55134
55132
  This means it can hold a function-call or operation as its value, to be executed programatically.
55135
55133
  Output maps can only be added to variables which hold an entity with properties.`,
@@ -55139,7 +55137,7 @@ Output maps can only be added to variables which hold an entity with properties.
55139
55137
  new w({
55140
55138
  id: `${i.id}--${$.NoOverlapWithImplementedSignature}`,
55141
55139
  code: $.NoOverlapWithImplementedSignature,
55142
- severity: D.Error,
55140
+ severity: R.Error,
55143
55141
  message: `Entity of type '${n.OutputMap}' with id '${i.id}' cannot be added to the parent entity of type '${o.type}' with id '${o.id}'. The 'declaration' with '${f.id}' of the 'output-map' does not exist in the entity of the 'data-type'.
55144
55142
  The entity of the data-type has the following properties that can be reads as output maps, ids: '${ne(
55145
55143
  (E.properties || []).map((O) => O.id),
@@ -55152,7 +55150,7 @@ The entity of the data-type has the following properties that can be reads as ou
55152
55150
  new w({
55153
55151
  id: `${i.id}--${$.NoOverlapWithImplementedSignature}`,
55154
55152
  code: $.NoOverlapWithImplementedSignature,
55155
- severity: D.Error,
55153
+ severity: R.Error,
55156
55154
  message: `Entity of type '${n.OutputMap}' with id '${i.id}' cannot be added to the parent entity of type '${o.type}' with id '${o.id}'. The data type of the 'variable-declaration' doesn't have an 'entity' set, so it cannot be determined if the output-map is reading a valid property of the data type entity.
55157
55155
  ${qp}`,
55158
55156
  issue: null
@@ -55161,7 +55159,7 @@ ${qp}`,
55161
55159
  new w({
55162
55160
  id: `${i.id}--${$.NoOverlapWithImplementedSignature}`,
55163
55161
  code: $.NoOverlapWithImplementedSignature,
55164
- severity: D.Error,
55162
+ severity: R.Error,
55165
55163
  message: `Entity of type '${n.OutputMap}' with id '${i.id}' cannot be added to the parent entity of type '${o.type}' with id '${o.id}'. The data type of the 'variable-declaration' is not set, so it cannot be determined if the output-map is reading a valid property of the data type entity.
55166
55164
  ${qp}`,
55167
55165
  issue: null
@@ -55175,7 +55173,7 @@ ${qp}`,
55175
55173
  new w({
55176
55174
  id: `${i.id}--${b.OutputOverwrite}`,
55177
55175
  code: b.OutputOverwrite,
55178
- severity: D.Error,
55176
+ severity: R.Error,
55179
55177
  message: `Entity of type '${n.OutputMap}' with id '${i.id}' cannot be added to the parent entity of type '${o.type}' with id '${o.id}'. The parent already has an output-map with id '${c.id}' that points to the same declaration.
55180
55178
  Any value reads can be done with that output-map instead.
55181
55179
  You can't edit output-map entities as they need to match their return declarations, so you can only choose to read their outputted value if you need it.`,
@@ -55203,7 +55201,7 @@ You can't edit output-map entities as they need to match their return declaratio
55203
55201
  new w({
55204
55202
  id: `${this.id}--${b.InvalidParentUpdate}`,
55205
55203
  code: b.InvalidParentUpdate,
55206
- severity: D.Error,
55204
+ severity: R.Error,
55207
55205
  message: `Entity of type '${this.type}' with id '${this.id}' cannot have the 'parent' property updated, as it would mean moving the '${this.type}' entity to another parent entity.
55208
55206
  This is likely an incorrect strategy, either the '${this.type}' entity doesn't need to be updated or it should be deleted and a new one created in the desired parent.`,
55209
55207
  issue: null
@@ -55338,7 +55336,7 @@ This is likely an incorrect strategy, either the '${this.type}' entity doesn't n
55338
55336
  captureVersion() {
55339
55337
  var t;
55340
55338
  const e = ((t = this.knownVersions) == null ? void 0 : t.get(this.version)) || new Ne(this, this.project);
55341
- return e.metaSync(this.toMeta(), null), this.knownVersions = this.knownVersions ? this.knownVersions.set(this.version, e) : /* @__PURE__ */ new Map([[this.version, e]]), e.declaration = this.declaration, e.defaultValue = this.defaultValue, e.writesValues = this.writesValues, e.dataType = this.dataType, e.parent = this.parent, this;
55339
+ return e.metaSync(this.toMeta(), null), this.knownVersions = this.knownVersions ? this.knownVersions.set(this.version, e) : /* @__PURE__ */ new Map([[this.version, e]]), e.declaration = this.declaration, e.defaultValue = this.defaultValue, e.writesValues = [...this.writesValues], e.dataType = this.dataType, e.parent = this.parent, this;
55342
55340
  }
55343
55341
  // Traverses upstream entities and captures their versions as well
55344
55342
  recursiveCaptureUpstreamVersions(e) {
@@ -55804,7 +55802,7 @@ This is likely an incorrect strategy, either the '${this.type}' entity doesn't n
55804
55802
  newId: null
55805
55803
  })) || null,
55806
55804
  writesValues: this.writesValues.map(
55807
- (R) => R.toJSONClone({
55805
+ (D) => D.toJSONClone({
55808
55806
  ...e,
55809
55807
  newId: null
55810
55808
  })
@@ -56048,7 +56046,7 @@ function pv(r) {
56048
56046
  r.project
56049
56047
  )}" with id "${r.id}".`,
56050
56048
  issue: null,
56051
- severity: D.Error,
56049
+ severity: R.Error,
56052
56050
  code: F.PropertyImplementsNonAbstact,
56053
56051
  entity: r
56054
56052
  });
@@ -56062,7 +56060,7 @@ function pv(r) {
56062
56060
  r.project
56063
56061
  )}" with id "${r.id}".`,
56064
56062
  issue: null,
56065
- severity: D.Error,
56063
+ severity: R.Error,
56066
56064
  code: F.PropertyImplementsNonAbstact,
56067
56065
  entity: r
56068
56066
  });
@@ -56209,7 +56207,7 @@ const xe = class xe extends at {
56209
56207
  )
56210
56208
  ), E = T.find(
56211
56209
  (P) => P.name === i.name
56212
- ), R = T.length ? `The parent entity already implements the following arguments: ${ne(
56210
+ ), D = T.length ? `The parent entity already implements the following arguments: ${ne(
56213
56211
  T.map(
56214
56212
  (P) => `'${P.id}' (${P.name})`
56215
56213
  ),
@@ -56226,10 +56224,10 @@ const xe = class xe extends at {
56226
56224
  new w({
56227
56225
  id: `${i.id}--${$.NoOverlapWithImplementedSignature}`,
56228
56226
  code: $.NoOverlapWithImplementedSignature,
56229
- severity: D.Error,
56227
+ severity: R.Error,
56230
56228
  message: `Entity of type '${n.ArgumentDeclaration}' with id '${i.id}' should not exist in a parent entity of type '${d.type}' with id '${d.id}' that implements a ${n.ActionDescriptor} with fixed arguments.
56231
56229
  Adding a new argument would make the implementation invalid. An argument with the same name already exists in the parent entity.
56232
- ${R}
56230
+ ${D}
56233
56231
  ${O}`,
56234
56232
  issue: null
56235
56233
  })
@@ -56237,10 +56235,10 @@ ${O}`,
56237
56235
  new w({
56238
56236
  id: `${i.id}--${$.NoOverlapWithImplementedSignature}`,
56239
56237
  code: $.NoOverlapWithImplementedSignature,
56240
- severity: D.Error,
56238
+ severity: R.Error,
56241
56239
  message: `Entity of type '${n.ArgumentDeclaration}' with id '${i.id}' should not exist in a parent entity of type '${d.type}' with id '${d.id}' that implements a ${n.ActionDescriptor} with fixed arguments.
56242
56240
  Adding a new argument would make the implementation invalid. There are no arguments in the descriptor with the same name.
56243
- ${R}
56241
+ ${D}
56244
56242
  ${O}`,
56245
56243
  issue: null
56246
56244
  })
@@ -56264,7 +56262,7 @@ ${O}`,
56264
56262
  new w({
56265
56263
  id: `${this.id}--${b.InvalidParentUpdate}`,
56266
56264
  code: b.InvalidParentUpdate,
56267
- severity: D.Error,
56265
+ severity: R.Error,
56268
56266
  message: `Entity of type '${this.type}' with id '${this.id}' cannot have the 'parent' property updated, as it would mean moving the '${this.type}' entity to another parent entity.
56269
56267
  This is likely an incorrect strategy, either the '${this.type}' entity doesn't need to be updated or it should be deleted and a new one created in the desired parent.`,
56270
56268
  issue: null
@@ -56383,7 +56381,7 @@ This is likely an incorrect strategy, either the '${this.type}' entity doesn't n
56383
56381
  captureVersion() {
56384
56382
  var t;
56385
56383
  const e = ((t = this.knownVersions) == null ? void 0 : t.get(this.version)) || new xe(this, this.project);
56386
- return e.metaSync(this.toMeta(), null), this.knownVersions = this.knownVersions ? this.knownVersions.set(this.version, e) : /* @__PURE__ */ new Map([[this.version, e]]), e.implements = this.implements, e.defaultValue = this.defaultValue, e.dataType = this.dataType, e.writesValues = this.writesValues, e.parent = this.parent, this;
56384
+ return e.metaSync(this.toMeta(), null), this.knownVersions = this.knownVersions ? this.knownVersions.set(this.version, e) : /* @__PURE__ */ new Map([[this.version, e]]), e.implements = this.implements, e.defaultValue = this.defaultValue, e.dataType = this.dataType, e.writesValues = [...this.writesValues], e.parent = this.parent, this;
56387
56385
  }
56388
56386
  // Traverses upstream entities and captures their versions as well
56389
56387
  recursiveCaptureUpstreamVersions(e) {
@@ -57119,7 +57117,7 @@ function D7(r, a) {
57119
57117
  new w({
57120
57118
  id: `${r.id}--${r.parent}--${b.NewEntityWouldOverriteExisting}`,
57121
57119
  code: b.NewEntityWouldOverriteExisting,
57122
- severity: D.Error,
57120
+ severity: R.Error,
57123
57121
  message: `Entity of type "${r.type}" with id "${r.id}", has a 'parent' of type 'data-type' which already has an existing default value entity with id "${s.entity.id}".
57124
57122
  Data types can only have one 'literal-value' entity as 'entity'.
57125
57123
  You can update the existing 'literal-value' with the 'update' action, for example, like so:
@@ -57148,7 +57146,7 @@ Or 'delete' and then 'post' actions to replace it.`,
57148
57146
  new w({
57149
57147
  id: `${r.id}--${r.parent}--${b.NewEntityWouldOverriteExisting}`,
57150
57148
  code: b.NewEntityWouldOverriteExisting,
57151
- severity: D.Error,
57149
+ severity: R.Error,
57152
57150
  message: `Entity of type "${r.type}" with id "${r.id}", has a 'parent' of type 'data-type' which already has an existing default value entity with id "${(t = s.defaultValue) == null ? void 0 : t.id}".
57153
57151
  Data types can only have one 'literal-value' entity as 'entity'.
57154
57152
  You can update the existing 'literal-value' with the 'update' action, for example, like so:
@@ -57168,7 +57166,7 @@ Or 'delete' and then 'post' actions to replace it.`,
57168
57166
  new w({
57169
57167
  id: `${r.id}--${r.parent}--${b.InvalidParentReference}`,
57170
57168
  code: b.InvalidParentReference,
57171
- severity: D.Error,
57169
+ severity: R.Error,
57172
57170
  message: `Entity of type "${r.type}" with id "${r.id}", has a parent reference that isn't pointing to an entity of type 'input-map' or 'data-type'.`,
57173
57171
  issue: null
57174
57172
  })
@@ -57176,7 +57174,7 @@ Or 'delete' and then 'post' actions to replace it.`,
57176
57174
  new w({
57177
57175
  id: `${r.id}--${r.parent}--${b.ReferencedEntityNotFound}`,
57178
57176
  code: b.ReferencedEntityNotFound,
57179
- severity: D.Error,
57177
+ severity: R.Error,
57180
57178
  message: `Entity of type "${r.type}" with id "${r.id}", is referencing an entity with id "${r.parent}" that isn't yet found in the project. Perhaps it should be created first. Or perhaps the ID is incorrect.`,
57181
57179
  issue: null
57182
57180
  })
@@ -57186,7 +57184,7 @@ Or 'delete' and then 'post' actions to replace it.`,
57186
57184
  new w({
57187
57185
  id: `${r.id}--${$.InvalidObjectStructure}`,
57188
57186
  code: $.InvalidObjectStructure,
57189
- severity: D.Error,
57187
+ severity: R.Error,
57190
57188
  message: `Entity of type "${r.type}" with id "${r.id}" is missing a 'parent' reference. The 'parent' of a literal value entity must be a reference to an entity of type 'input-map' or 'data-type'.`,
57191
57189
  issue: null
57192
57190
  })
@@ -57196,7 +57194,7 @@ Or 'delete' and then 'post' actions to replace it.`,
57196
57194
  new w({
57197
57195
  id: `${r.id}--${$.InvalidObjectStructure}`,
57198
57196
  code: $.InvalidObjectStructure,
57199
- severity: D.Error,
57197
+ severity: R.Error,
57200
57198
  message: `Entity of type "${r.type}" with id "${r.id}" is missing a 'parent' reference. The 'parent' of a literal value entity must be a reference to an entity of type 'input-map' or 'data-type'.`,
57201
57199
  issue: null
57202
57200
  })
@@ -57216,7 +57214,7 @@ Or 'delete' and then 'post' actions to replace it.`,
57216
57214
  new w({
57217
57215
  id: `${r.id}--${d}--${b.InvalidImplementsReference}`,
57218
57216
  code: b.InvalidImplementsReference,
57219
- severity: D.Error,
57217
+ severity: R.Error,
57220
57218
  message: `Entity of type "${r.type}" with id "${r.id}", has an 'valueAsTypeSingle' reference that isn't pointing to an entity of type 'definition-entity', 'function-declaration' or 'operation'.`,
57221
57219
  issue: null
57222
57220
  })
@@ -57224,7 +57222,7 @@ Or 'delete' and then 'post' actions to replace it.`,
57224
57222
  new w({
57225
57223
  id: `${r.id}--${d}--${b.ReferencedEntityNotFound}`,
57226
57224
  code: b.ReferencedEntityNotFound,
57227
- severity: D.Error,
57225
+ severity: R.Error,
57228
57226
  message: `Entity of type "${r.type}" with id "${r.id}", is referencing an entity with id "${d}" that isn't yet found in the project. Perhaps it should be created first. Or perhaps the ID is incorrect.`,
57229
57227
  issue: null
57230
57228
  })
@@ -57351,7 +57349,7 @@ const Ue = class Ue extends at {
57351
57349
  new w({
57352
57350
  id: `${this.id}--${b.InvalidParentUpdate}`,
57353
57351
  code: b.InvalidParentUpdate,
57354
- severity: D.Error,
57352
+ severity: R.Error,
57355
57353
  message: `Entity of type '${this.type}' with id '${this.id}' cannot have the 'parent' property updated, as it would mean moving the '${this.type}' entity to another parent entity.
57356
57354
  This is likely an incorrect strategy, either the '${this.type}' entity doesn't need to be updated or it should be deleted and a new one created in the desired parent.`,
57357
57355
  issue: null
@@ -57475,7 +57473,7 @@ This is likely an incorrect strategy, either the '${this.type}' entity doesn't n
57475
57473
  captureVersion() {
57476
57474
  var t;
57477
57475
  const e = ((t = this.knownVersions) == null ? void 0 : t.get(this.version)) || new Ue(this, this.project);
57478
- return e.metaSync(this.toMeta(), null), this.knownVersions = this.knownVersions ? this.knownVersions.set(this.version, e) : /* @__PURE__ */ new Map([[this.version, e]]), e.valueAsTypeSingle = this.valueAsTypeSingle, e.parent = this.parent, this;
57476
+ return e.metaSync(this.toMeta(), null), this.knownVersions = this.knownVersions ? this.knownVersions.set(this.version, e) : /* @__PURE__ */ new Map([[this.version, e]]), e.valueAsTypeSingle = this.valueAsTypeSingle, e.valueAsTypeList = this.valueAsTypeList ? [...this.valueAsTypeList] : this.valueAsTypeList, e.parent = this.parent, this;
57479
57477
  }
57480
57478
  // Traverses upstream entities and captures their versions as well
57481
57479
  recursiveCaptureUpstreamVersions(e) {
@@ -58337,7 +58335,7 @@ const ge = class ge extends at {
58337
58335
  new w({
58338
58336
  id: `${this.id}--${b.InvalidParentUpdate}`,
58339
58337
  code: b.InvalidParentUpdate,
58340
- severity: D.Error,
58338
+ severity: R.Error,
58341
58339
  message: `Entity of type '${this.type}' with id '${this.id}' cannot have the 'parent' property updated. The 'parent' on a callable entity, is its scope. It scope is auto-calculated implicitly by the its caller.
58342
58340
  If an entity is called by another, they must be in the same scope, which means they have the same parent.
58343
58341
  You shouldn't have to manually update a 'parent' property.
@@ -58461,7 +58459,7 @@ Specifically for break statements the parent needs to always be the 'loop' entit
58461
58459
  captureVersion() {
58462
58460
  var t;
58463
58461
  const e = ((t = this.knownVersions) == null ? void 0 : t.get(this.version)) || new ge(this, this.project);
58464
- return e.metaSync(this.toMeta(), null), this.knownVersions = this.knownVersions ? this.knownVersions.set(this.version, e) : /* @__PURE__ */ new Map([[this.version, e]]), e.outputs = this.outputs, e.throws = this.throws, e.calledBySuccess = this.calledBySuccess, e.calledByError = this.calledByError, e.calledByEntry = this.calledByEntry, e.parent = this.parent, this;
58462
+ return e.metaSync(this.toMeta(), null), this.knownVersions = this.knownVersions ? this.knownVersions.set(this.version, e) : /* @__PURE__ */ new Map([[this.version, e]]), e.outputs = [...this.outputs], e.throws = this.throws, e.calledBySuccess = [...this.calledBySuccess], e.calledByError = [...this.calledByError], e.calledByEntry = [...this.calledByEntry], e.parent = this.parent, this;
58465
58463
  }
58466
58464
  // Traverses upstream entities and captures their versions as well
58467
58465
  recursiveCaptureUpstreamVersions(e) {
@@ -59116,7 +59114,7 @@ Specifically for break statements the parent needs to always be the 'loop' entit
59116
59114
  );
59117
59115
  t ? c.setParent(t, null) : c.setParent(this.parent, null), s && c.subscribe(), c.initChildren(e), e == null || e.add(c, I.Added);
59118
59116
  const T = (E = this.outputs) == null ? void 0 : E.map(
59119
- (R, O) => R.clone(
59117
+ (D, O) => D.clone(
59120
59118
  e,
59121
59119
  c,
59122
59120
  f + "-return-declaration-" + O + "-id",
@@ -59292,7 +59290,7 @@ const je = class je extends at {
59292
59290
  new w({
59293
59291
  id: `${e.id}--${b.BuiltInEntityParent}`,
59294
59292
  code: b.BuiltInEntityParent,
59295
- severity: D.Error,
59293
+ severity: R.Error,
59296
59294
  message: `Entity of type "${e.type}" with id "${e.id}", has a parent that is a built-in entity "${d.name}" of type '${d.type}' with id '${d.id}'.
59297
59295
  You can't modify system entities that are built-in.`,
59298
59296
  issue: null
@@ -59301,7 +59299,7 @@ You can't modify system entities that are built-in.`,
59301
59299
  new w({
59302
59300
  id: `${e.id}--${b.InvalidParentRelationType}`,
59303
59301
  code: b.InvalidParentRelationType,
59304
- severity: D.Error,
59302
+ severity: R.Error,
59305
59303
  message: `The entity with id '${e.id}' and type '${e.type}', must have a 'parentRelationType' property set to either '${N.FixedArguments}', '${N.FixedReturns}', or '${N.ReturnedError}' when being added as a child to an entity of type 'action-descriptor'.`,
59306
59304
  issue: null
59307
59305
  })
@@ -59309,7 +59307,7 @@ You can't modify system entities that are built-in.`,
59309
59307
  new w({
59310
59308
  id: `${e.id}--${b.NewEntityWouldOverriteExisting}`,
59311
59309
  code: b.NewEntityWouldOverriteExisting,
59312
- severity: D.Error,
59310
+ severity: R.Error,
59313
59311
  message: `The entity with id '${e.id}' and type '${e.type}', is being added as an error value-descriptor to an entity of type 'action-descriptor' with id '${o.id}', which already has an error value descriptor with id '${o.error.id}'.
59314
59312
  An action descriptor can only have one error value descriptor child.
59315
59313
  Either remove the existing error value descriptor or update it with the 'update' action.
@@ -59566,9 +59564,9 @@ ${Qi(
59566
59564
  "add-self-to-project"
59567
59565
  )
59568
59566
  )) {
59569
- var o, d, u, f, c, T, E, R;
59567
+ var o, d, u, f, c, T, E, D;
59570
59568
  const t = [this], i = [], s = [], l = [];
59571
- return this.parentRelationType === N.FixedArguments || this.parentRelationType === N.DynamicArgument ? ((o = this.parent) == null ? void 0 : o.type) === n.Search || ((d = this.parent) == null ? void 0 : d.type) === n.Loop ? (this.parent.addInputDeclaration(this, e), t.push(this.parent)) : ((f = (u = this.parent) == null ? void 0 : u.addInput) == null || f.call(u, this, e), t.push(this.parent)) : this.parentRelationType === N.FixedReturns || this.parentRelationType === N.DynamicReturn ? ((c = this.parent) == null ? void 0 : c.type) === n.Search || ((T = this.parent) == null ? void 0 : T.type) === n.Loop ? (this.parent.addOutputDeclaration(this, e), t.push(this.parent)) : ((R = (E = this.parent) == null ? void 0 : E.addOutput) == null || R.call(E, this, e), t.push(this.parent)) : this.parentRelationType === N.ReturnedError && this.parent && (this.parent.error = this, t.push(this.parent)), this.subscribe(), this.subscribeToDependencies(), e == null || e.attemptAutoclose("add-self-to-project", this.id), {
59569
+ return this.parentRelationType === N.FixedArguments || this.parentRelationType === N.DynamicArgument ? ((o = this.parent) == null ? void 0 : o.type) === n.Search || ((d = this.parent) == null ? void 0 : d.type) === n.Loop ? (this.parent.addInputDeclaration(this, e), t.push(this.parent)) : ((f = (u = this.parent) == null ? void 0 : u.addInput) == null || f.call(u, this, e), t.push(this.parent)) : this.parentRelationType === N.FixedReturns || this.parentRelationType === N.DynamicReturn ? ((c = this.parent) == null ? void 0 : c.type) === n.Search || ((T = this.parent) == null ? void 0 : T.type) === n.Loop ? (this.parent.addOutputDeclaration(this, e), t.push(this.parent)) : ((D = (E = this.parent) == null ? void 0 : E.addOutput) == null || D.call(E, this, e), t.push(this.parent)) : this.parentRelationType === N.ReturnedError && this.parent && (this.parent.error = this, t.push(this.parent)), this.subscribe(), this.subscribeToDependencies(), e == null || e.attemptAutoclose("add-self-to-project", this.id), {
59572
59570
  updated: p(t),
59573
59571
  added: p(i),
59574
59572
  removed: p(s),
@@ -59676,7 +59674,7 @@ ${Qi(
59676
59674
  "remove-entity"
59677
59675
  )
59678
59676
  )) {
59679
- var u, f, c, T, E, R, O;
59677
+ var u, f, c, T, E, D, O;
59680
59678
  const i = [], s = [], l = [], o = [];
59681
59679
  if (Array.from(
59682
59680
  /* @__PURE__ */ new Set([...Zi(), ...this.project.getAllBuiltInIds()])
@@ -59725,7 +59723,7 @@ ${Qi(
59725
59723
  );
59726
59724
  i.push(...P), s.push(...B);
59727
59725
  }
59728
- return e || (((u = this.parent) == null ? void 0 : u.type) === n.Search ? this.parentRelationType === N.FixedReturns || this.parentRelationType === N.DynamicReturn ? (f = this.parent) == null || f.removeOutputDeclaration(this, t) : this.parentRelationType === N.FixedArguments || this.parentRelationType === N.DynamicArgument ? (c = this.parent) == null || c.removeInputDeclaration(this, t) : this.parentRelationType === N.ReturnedError && (this.parent.error = null) : ((T = this.parent) == null ? void 0 : T.type) === n.Loop ? this.parentRelationType === N.FixedReturns || this.parentRelationType === N.DynamicReturn ? (E = this.parent) == null || E.removeOutputDeclaration(this, t) : this.parentRelationType === N.ReturnedError && (this.parent.error = null) : this.parentRelationType === N.FixedReturns || this.parentRelationType === N.DynamicReturn ? (R = this.parent) == null || R.removeOutput(this, t) : (this.parentRelationType === N.FixedArguments || this.parentRelationType === N.DynamicArgument) && ((O = this.parent) == null || O.removeInput(this, t))), t == null || t.attemptAutoclose("remove-entity", this.id), {
59726
+ return e || (((u = this.parent) == null ? void 0 : u.type) === n.Search ? this.parentRelationType === N.FixedReturns || this.parentRelationType === N.DynamicReturn ? (f = this.parent) == null || f.removeOutputDeclaration(this, t) : this.parentRelationType === N.FixedArguments || this.parentRelationType === N.DynamicArgument ? (c = this.parent) == null || c.removeInputDeclaration(this, t) : this.parentRelationType === N.ReturnedError && (this.parent.error = null) : ((T = this.parent) == null ? void 0 : T.type) === n.Loop ? this.parentRelationType === N.FixedReturns || this.parentRelationType === N.DynamicReturn ? (E = this.parent) == null || E.removeOutputDeclaration(this, t) : this.parentRelationType === N.ReturnedError && (this.parent.error = null) : this.parentRelationType === N.FixedReturns || this.parentRelationType === N.DynamicReturn ? (D = this.parent) == null || D.removeOutput(this, t) : (this.parentRelationType === N.FixedArguments || this.parentRelationType === N.DynamicArgument) && ((O = this.parent) == null || O.removeInput(this, t))), t == null || t.attemptAutoclose("remove-entity", this.id), {
59729
59727
  added: p(l),
59730
59728
  updated: p(i),
59731
59729
  removed: p(s),
@@ -59752,27 +59750,27 @@ ${Qi(
59752
59750
  const t = [], i = [], s = [], l = [];
59753
59751
  if (e != null && e.hasAdded(this.id))
59754
59752
  return e == null || e.attemptAutoclose("restore-entity", this.id), { added: [], updated: [], removed: [], affected: [], self: this };
59755
- if (this.subscribe(), this.project.unsubscribeDeletedInstance(this), this.metaSync({ deleted: !1 }, e), Object.values(this.detachedDependents).forEach((R) => {
59753
+ if (this.subscribe(), this.project.unsubscribeDeletedInstance(this), this.metaSync({ deleted: !1 }, e), Object.values(this.detachedDependents).forEach((D) => {
59756
59754
  const {
59757
59755
  updated: O,
59758
59756
  removed: P,
59759
59757
  added: B
59760
- } = R.entity.onDetachedDependencyRestored(
59758
+ } = D.entity.onDetachedDependencyRestored(
59761
59759
  this,
59762
- R.field,
59760
+ D.field,
59763
59761
  e
59764
59762
  );
59765
59763
  i.push(...O), s.push(...P), t.push(...B);
59766
59764
  }), this.defaultValue) {
59767
- const { updated: R } = this.defaultValue.restore(
59765
+ const { updated: D } = this.defaultValue.restore(
59768
59766
  {},
59769
59767
  e
59770
59768
  );
59771
- i.push(...R);
59769
+ i.push(...D);
59772
59770
  }
59773
59771
  if (this.dataType) {
59774
- const { updated: R } = this.dataType.restore({}, e);
59775
- i.push(...R);
59772
+ const { updated: D } = this.dataType.restore({}, e);
59773
+ i.push(...D);
59776
59774
  }
59777
59775
  return ((o = this.parent) == null ? void 0 : o.type) === n.Search ? this.parentRelationType === N.FixedReturns || this.parentRelationType === N.DynamicReturn ? (d = this.parent) == null || d.addOutputDeclaration(this, e) : (this.parentRelationType === N.FixedArguments || this.parentRelationType === N.DynamicArgument) && ((u = this.parent) == null || u.addInputDeclaration(this, e)) : ((f = this.parent) == null ? void 0 : f.type) === n.Loop ? (this.parentRelationType === N.FixedReturns || this.parentRelationType === N.DynamicReturn) && ((c = this.parent) == null || c.addOutputDeclaration(this, e)) : this.parentRelationType === N.FixedReturns || this.parentRelationType === N.DynamicReturn ? (T = this.parent) == null || T.addOutput(this, e) : (this.parentRelationType === N.FixedArguments || this.parentRelationType === N.DynamicArgument) && ((E = this.parent) == null || E.addInput(this, e)), e == null || e.attemptAutoclose("restore-entity", this.id), {
59778
59776
  added: p(t),
@@ -59956,7 +59954,7 @@ ${Qi(
59956
59954
  "clone-entity"
59957
59955
  )
59958
59956
  ), t = null, i = null, s = !0) {
59959
- var E, R;
59957
+ var E, D;
59960
59958
  if (Array.from(
59961
59959
  /* @__PURE__ */ new Set([...Zi(), ...this.project.getAllBuiltInIds()])
59962
59960
  ).includes(this.id))
@@ -59976,7 +59974,7 @@ ${Qi(
59976
59974
  s
59977
59975
  )) || null;
59978
59976
  c && f.setDataType(c);
59979
- const T = (R = this.defaultValue) == null ? void 0 : R.clone(
59977
+ const T = (D = this.defaultValue) == null ? void 0 : D.clone(
59980
59978
  e,
59981
59979
  f,
59982
59980
  y.UUID.uuid(),
@@ -60132,14 +60130,14 @@ function rz(r, a) {
60132
60130
  new w({
60133
60131
  id: `last-generated-entity-payload--${b.MissingTypeProperty}`,
60134
60132
  message: "Last generated entity payload is missing a 'type' property.",
60135
- severity: D.Error,
60133
+ severity: R.Error,
60136
60134
  code: b.MissingTypeProperty,
60137
60135
  issue: null
60138
60136
  }),
60139
60137
  new w({
60140
60138
  id: `last-generated-entity-payload--${b.MissingIdProperty}`,
60141
60139
  message: "Last generated entity payload is missing an 'id' property.",
60142
- severity: D.Error,
60140
+ severity: R.Error,
60143
60141
  code: b.MissingIdProperty,
60144
60142
  issue: null
60145
60143
  })
@@ -60153,7 +60151,7 @@ function rz(r, a) {
60153
60151
  new w({
60154
60152
  id: `last-generated-entity-payload--${b.MissingIdProperty}`,
60155
60153
  message: `Last generated entity, with type "${r.type}" is missing an 'id' property.`,
60156
- severity: D.Error,
60154
+ severity: R.Error,
60157
60155
  code: b.MissingIdProperty,
60158
60156
  issue: null
60159
60157
  })
@@ -60166,7 +60164,7 @@ function rz(r, a) {
60166
60164
  new w({
60167
60165
  id: `${r.id}--${b.MissingTypeProperty}`,
60168
60166
  message: `Entity with id "${r.id}" is missing a 'type' property.`,
60169
- severity: D.Error,
60167
+ severity: R.Error,
60170
60168
  code: b.MissingTypeProperty,
60171
60169
  issue: null
60172
60170
  })
@@ -60179,7 +60177,7 @@ function rz(r, a) {
60179
60177
  new w({
60180
60178
  id: `${r.id}--${b.RootReference}`,
60181
60179
  message: `Generic reference entity with id "${r.id}". A generic reference cannot be generated as a standalone entity. Only in the body of another entity.`,
60182
- severity: D.Error,
60180
+ severity: R.Error,
60183
60181
  code: b.RootReference,
60184
60182
  issue: null
60185
60183
  })
@@ -60200,7 +60198,7 @@ If you are trying to create a new entity, please use a different id, for example
60200
60198
  new w({
60201
60199
  id: `duplicate--${e.id}--${b.EntityIdNotUnique}`,
60202
60200
  message: s,
60203
- severity: D.Error,
60201
+ severity: R.Error,
60204
60202
  code: b.EntityIdNotUnique,
60205
60203
  issue: null
60206
60204
  })
@@ -60216,7 +60214,7 @@ If you are trying to create a new entity, please use a different id, for example
60216
60214
  e,
60217
60215
  a
60218
60216
  )}".`,
60219
- severity: D.Error,
60217
+ severity: R.Error,
60220
60218
  code: b.EntityIdNotUnique,
60221
60219
  issue: null
60222
60220
  })
@@ -60358,7 +60356,7 @@ If you are trying to create a new entity, please use a different id, for example
60358
60356
  id: `${e.id}--${b.BuiltInEntityGenerated}`,
60359
60357
  message: `Entity with id "${e.id} is of "${e.type}" type and should not be generated. Built in entities can only be referenced by user created entities.
60360
60358
  ${o}`,
60361
- severity: D.Error,
60359
+ severity: R.Error,
60362
60360
  code: b.BuiltInEntityGenerated,
60363
60361
  issue: null
60364
60362
  })
@@ -60374,7 +60372,7 @@ ${o}`,
60374
60372
  new w({
60375
60373
  id: `${s.id}--${b.UnknownEntityType}`,
60376
60374
  message: `Incorrect entity implementation for entity with id "${s.id}". Entity type "${s.type}" is not supported.`,
60377
- severity: D.Error,
60375
+ severity: R.Error,
60378
60376
  code: b.UnknownEntityType,
60379
60377
  issue: null
60380
60378
  })
@@ -60416,7 +60414,7 @@ function nz(r, a) {
60416
60414
  new w({
60417
60415
  id: `${a.id}--${b.BuiltInEntityGenerated}`,
60418
60416
  message: `Entity with id "${a.id} is of "${a.type}" type and should not be updated. Built in entities can only be referenced by user created entities.`,
60419
- severity: D.Error,
60417
+ severity: R.Error,
60420
60418
  code: b.BuiltInEntityGenerated,
60421
60419
  issue: null
60422
60420
  })
@@ -60424,7 +60422,7 @@ function nz(r, a) {
60424
60422
  new w({
60425
60423
  id: `last-action--${b.InvalidUpdateEntityOperation}`,
60426
60424
  code: b.InvalidUpdateEntityOperation,
60427
- severity: D.Error,
60425
+ severity: R.Error,
60428
60426
  message: `The 'id' property cannot be updated in the 'update' action payload. The id of the entity is '${r.id}'. Only mutable core metadata properties can be updated, no nested entities or references. You can alternatively delete the entity and create a new one with the updated 'id'.`,
60429
60427
  issue: null
60430
60428
  })
@@ -60432,7 +60430,7 @@ function nz(r, a) {
60432
60430
  new w({
60433
60431
  id: `last-action--${b.InvalidUpdateEntityOperation}`,
60434
60432
  code: b.InvalidUpdateEntityOperation,
60435
- severity: D.Error,
60433
+ severity: R.Error,
60436
60434
  message: `The 'type' property cannot be updated in the 'update' action payload. The type of the entity is '${a.type}'. Only mutable core metadata properties can be updated, no nested entities or references. You can alternatively delete the entity and create a new one with the updated 'type'.`,
60437
60435
  issue: null
60438
60436
  })
@@ -60447,7 +60445,7 @@ function nz(r, a) {
60447
60445
  id: `${a.id}--${b.InvalidInmutablePropertyOverride}`,
60448
60446
  message: `Entity of type "${a.type}" with id "${a.id}" cannot have the property "calls" updated.
60449
60447
  ${Gr}`,
60450
- severity: D.Error,
60448
+ severity: R.Error,
60451
60449
  code: b.InvalidInmutablePropertyOverride,
60452
60450
  issue: null
60453
60451
  })
@@ -60456,7 +60454,7 @@ ${Gr}`,
60456
60454
  id: `${a.id}--${b.InvalidInmutablePropertyOverride}`,
60457
60455
  message: `Entity of type "${a.type}" with id "${a.id}" cannot have the property "successCalls" updated.
60458
60456
  ${Gr}`,
60459
- severity: D.Error,
60457
+ severity: R.Error,
60460
60458
  code: b.InvalidInmutablePropertyOverride,
60461
60459
  issue: null
60462
60460
  })
@@ -60465,7 +60463,7 @@ ${Gr}`,
60465
60463
  id: `${a.id}--${b.InvalidInmutablePropertyOverride}`,
60466
60464
  message: `Entity of type "${a.type}" with id "${a.id}" cannot have the property "errorCalls" updated.
60467
60465
  ${Gr}`,
60468
- severity: D.Error,
60466
+ severity: R.Error,
60469
60467
  code: b.InvalidInmutablePropertyOverride,
60470
60468
  issue: null
60471
60469
  })
@@ -60474,7 +60472,7 @@ ${Gr}`,
60474
60472
  id: `${a.id}--${b.InvalidInmutablePropertyOverride}`,
60475
60473
  message: `Entity of type "${a.type}" with id "${a.id}" cannot have the property "calledBy" updated.
60476
60474
  ${Gr}`,
60477
- severity: D.Error,
60475
+ severity: R.Error,
60478
60476
  code: b.InvalidInmutablePropertyOverride,
60479
60477
  issue: null
60480
60478
  })
@@ -60483,7 +60481,7 @@ ${Gr}`,
60483
60481
  id: `${a.id}--${b.InvalidInmutablePropertyOverride}`,
60484
60482
  message: `Entity of type "${a.type}" with id "${a.id}" cannot have the property "calledByEntry" updated.
60485
60483
  ${Gr}`,
60486
- severity: D.Error,
60484
+ severity: R.Error,
60487
60485
  code: b.InvalidInmutablePropertyOverride,
60488
60486
  issue: null
60489
60487
  })
@@ -60492,7 +60490,7 @@ ${Gr}`,
60492
60490
  id: `${a.id}--${b.InvalidInmutablePropertyOverride}`,
60493
60491
  message: `Entity of type "${a.type}" with id "${a.id}" cannot have the property "calledBySuccess" updated.
60494
60492
  ${Gr}`,
60495
- severity: D.Error,
60493
+ severity: R.Error,
60496
60494
  code: b.InvalidInmutablePropertyOverride,
60497
60495
  issue: null
60498
60496
  })
@@ -60501,7 +60499,7 @@ ${Gr}`,
60501
60499
  id: `${a.id}--${b.InvalidInmutablePropertyOverride}`,
60502
60500
  message: `Entity of type "${a.type}" with id "${a.id}" cannot have the property "calledByError" updated.
60503
60501
  ${Gr}`,
60504
- severity: D.Error,
60502
+ severity: R.Error,
60505
60503
  code: b.InvalidInmutablePropertyOverride,
60506
60504
  issue: null
60507
60505
  })
@@ -60521,7 +60519,7 @@ ${Gr}`,
60521
60519
  id: `${a.id}--${b.InvalidInmutablePropertyOverride}`,
60522
60520
  message: `Entity of type "${a.type}" with id "${a.id}" cannot have the property "${P}" updated. It is an inmutable property that is set only when the entity is created.
60523
60521
  If you need to update this property, you should delete the entity and create a new one with the updated value.`,
60524
- severity: D.Error,
60522
+ severity: R.Error,
60525
60523
  code: b.InvalidInmutablePropertyOverride,
60526
60524
  issue: null
60527
60525
  })
@@ -60535,7 +60533,7 @@ If you need to update this property, you should delete the entity and create a n
60535
60533
  message: `Entity of type "${a.type}" with id "${a.id}" cannot have the property "${P}" set directly. It is a downstream property that points to a downstream nested entity.
60536
60534
  All downstream references are managed by the downstream entity. Entities only manage their own upstream references.
60537
60535
  To modify '${P}', target the entity that it points to and its equivalent property.`,
60538
- severity: D.Error,
60536
+ severity: R.Error,
60539
60537
  code: b.InvalidDownstreamPropertyOverride,
60540
60538
  issue: null
60541
60539
  })
@@ -60548,7 +60546,7 @@ To modify '${P}', target the entity that it points to and its equivalent propert
60548
60546
  id: `${a.id}--${b.InvalidInmutablePropertyOverride}`,
60549
60547
  message: `Entity of type "${a.type}" with id "${a.id}" cannot have the property "${P}" updated. It is an inmutable property that is set only when the entity is created.
60550
60548
  If you need to update this property, you should delete the entity and create a new one with the updated value.`,
60551
- severity: D.Error,
60549
+ severity: R.Error,
60552
60550
  code: b.InvalidInmutablePropertyOverride,
60553
60551
  issue: null
60554
60552
  })
@@ -60560,7 +60558,7 @@ If you need to update this property, you should delete the entity and create a n
60560
60558
  new w({
60561
60559
  id: `${a.id}--${b.UnrecognizedProperty}`,
60562
60560
  message: `Entity of type "${a.type}" with id "${a.id}" has an unrecognized property "${P}" that will be ignored.`,
60563
- severity: D.Warning,
60561
+ severity: R.Warning,
60564
60562
  code: b.UnrecognizedProperty,
60565
60563
  issue: null
60566
60564
  })
@@ -60723,7 +60721,7 @@ function cp(r) {
60723
60721
  new w({
60724
60722
  id: `${r}--${b.InvalidReferenceObjectStructure}`,
60725
60723
  message: `Reference object with id "${r}" is not an object. References should be objects with exactly 4 properties: 'entityId', 'entityType', 'id', and 'type'.`,
60726
- severity: D.Error,
60724
+ severity: R.Error,
60727
60725
  code: b.InvalidReferenceObjectStructure,
60728
60726
  issue: null
60729
60727
  })
@@ -60733,7 +60731,7 @@ function cp(r) {
60733
60731
  new w({
60734
60732
  id: `${e}--${b.InvalidReferenceObjectStructure}`,
60735
60733
  message: `${t} is missing an 'entityId' property.`,
60736
- severity: D.Error,
60734
+ severity: R.Error,
60737
60735
  code: b.InvalidReferenceObjectStructure,
60738
60736
  issue: null
60739
60737
  })
@@ -60741,7 +60739,7 @@ function cp(r) {
60741
60739
  new w({
60742
60740
  id: `${e}--${b.InvalidReferenceObjectStructure}`,
60743
60741
  message: `${t} is missing an 'entityType' property.`,
60744
- severity: D.Error,
60742
+ severity: R.Error,
60745
60743
  code: b.InvalidReferenceObjectStructure,
60746
60744
  issue: null
60747
60745
  })
@@ -60749,7 +60747,7 @@ function cp(r) {
60749
60747
  new w({
60750
60748
  id: `${e}--${b.MissingIdProperty}`,
60751
60749
  message: `${t} is missing an 'id' property.`,
60752
- severity: D.Error,
60750
+ severity: R.Error,
60753
60751
  code: b.MissingIdProperty,
60754
60752
  issue: null
60755
60753
  })
@@ -60757,7 +60755,7 @@ function cp(r) {
60757
60755
  new w({
60758
60756
  id: `${e}--${b.MissingTypeProperty}`,
60759
60757
  message: `${t} is missing a 'type' property.`,
60760
- severity: D.Error,
60758
+ severity: R.Error,
60761
60759
  code: b.MissingTypeProperty,
60762
60760
  issue: null
60763
60761
  })
@@ -60768,7 +60766,7 @@ function yv(r, a) {
60768
60766
  (e) => new w({
60769
60767
  id: `${r.id}--${$.InvalidObjectStructure}`,
60770
60768
  message: `Entity of type "${r.type}" and with id "${r.id}", has an invalid structure: ${u5(e).toString().replace("Validation error: ", "")}`,
60771
- severity: D.Error,
60769
+ severity: R.Error,
60772
60770
  code: $.InvalidObjectStructure,
60773
60771
  issue: e
60774
60772
  })
@@ -60789,7 +60787,7 @@ function ut(r, a) {
60789
60787
  message: `Entity of type "${r.type}" with id "${r.id}" cannot have the property "${o}" set directly. It is a downstream property that points to a downstream nested entity.
60790
60788
  All downstream references are managed by the downstream entity. Entities only manage their own upstream references.
60791
60789
  To modify '${o}', target the entity that it points to and its equivalent property.`,
60792
- severity: D.Error,
60790
+ severity: R.Error,
60793
60791
  code: b.InvalidDownstreamPropertyOverride,
60794
60792
  issue: null
60795
60793
  })
@@ -60801,7 +60799,7 @@ To modify '${o}', target the entity that it points to and its equivalent propert
60801
60799
  new w({
60802
60800
  id: `${r.id}--${b.UnrecognizedProperty}`,
60803
60801
  message: `Entity of type "${r.type}" with id "${r.id}" has an unrecognized property "${o}" that will be ignored.`,
60804
- severity: D.Warning,
60802
+ severity: R.Warning,
60805
60803
  code: b.UnrecognizedProperty,
60806
60804
  issue: null
60807
60805
  })
@@ -60821,7 +60819,7 @@ function sz(r, a) {
60821
60819
  new w({
60822
60820
  id: `${r.id}--${b.BuiltInEntityParent}`,
60823
60821
  message: `Entity of type "${r.type}" with id "${r.id}" cannot have the parent with id "${t.id}", because it is a built in entity. Built in entities cannot be modified.`,
60824
- severity: D.Error,
60822
+ severity: R.Error,
60825
60823
  code: b.BuiltInEntityParent,
60826
60824
  issue: null
60827
60825
  })
@@ -60831,7 +60829,7 @@ function sz(r, a) {
60831
60829
  new w({
60832
60830
  id: `${r.id}--${b.BuiltInEntityParent}`,
60833
60831
  message: `Entity of type "${r.type}" with id "${r.id}" cannot have the parent with id "${t.id}", because it is a built in entity. Built in entities cannot be modified. Action descriptors are only sometimes built in, other times they are managed by the user.`,
60834
- severity: D.Error,
60832
+ severity: R.Error,
60835
60833
  code: b.BuiltInEntityParent,
60836
60834
  issue: null
60837
60835
  })
@@ -60848,7 +60846,7 @@ function mv(r, a, e) {
60848
60846
  ", ",
60849
60847
  " or "
60850
60848
  )}.`,
60851
- severity: D.Error,
60849
+ severity: R.Error,
60852
60850
  code: $.InvalidObjectStructure,
60853
60851
  issue: null
60854
60852
  })
@@ -60867,7 +60865,7 @@ function mv(r, a, e) {
60867
60865
  new w({
60868
60866
  id: `${r.id}--${s}--${b.SelfReference}`,
60869
60867
  message: `Entity of type "${r.type}" with id "${r.id}", has a reference to itself at '${a.key}'. This is not allowed. Change the reference string or the 'entityId' property of the reference object.`,
60870
- severity: D.Error,
60868
+ severity: R.Error,
60871
60869
  code: b.SelfReference,
60872
60870
  issue: null
60873
60871
  })
@@ -60881,7 +60879,7 @@ function mv(r, a, e) {
60881
60879
  "', '",
60882
60880
  "' or '"
60883
60881
  )}'.`,
60884
- severity: D.Error,
60882
+ severity: R.Error,
60885
60883
  code: b.InvalidReference,
60886
60884
  issue: null
60887
60885
  })
@@ -60889,7 +60887,7 @@ function mv(r, a, e) {
60889
60887
  new w({
60890
60888
  id: `${r.id}--${s}--${b.ReferencedEntityNotFound}`,
60891
60889
  message: `Entity of type "${r.type}" with id "${r.id}", is referencing an entity with id "${s}" at '${a.key}' that isn't yet found in the project. Perhaps it should be created first. Or perhaps the ID is incorrect.`,
60892
- severity: D.Error,
60890
+ severity: R.Error,
60893
60891
  code: b.ReferencedEntityNotFound,
60894
60892
  issue: null
60895
60893
  })
@@ -60912,7 +60910,7 @@ function ml(r, a, e) {
60912
60910
  new w({
60913
60911
  id: `${r.id}--${a}--${b.InvalidReference}`,
60914
60912
  message: `Entity of type "${r.type}" with id "${r.id}", has a missing reference at '${a}'. A reference needs to be a 'id' string of an existing entity in the project.`,
60915
- severity: D.Error,
60913
+ severity: R.Error,
60916
60914
  code: b.InvalidReference,
60917
60915
  issue: null
60918
60916
  })
@@ -60923,7 +60921,7 @@ function ml(r, a, e) {
60923
60921
  new w({
60924
60922
  id: `${r.id}--${o}--${b.ReferencedEntityNotFound}`,
60925
60923
  message: `Entity of type "${r.type}" with id "${r.id}", is referencing an entity with id "${o}" at '${a}' that isn't yet found in the project. Perhaps it should be created first. Or perhaps the ID is incorrect.`,
60926
- severity: D.Error,
60924
+ severity: R.Error,
60927
60925
  code: b.ReferencedEntityNotFound,
60928
60926
  issue: null
60929
60927
  })
@@ -60932,7 +60930,7 @@ function ml(r, a, e) {
60932
60930
  new w({
60933
60931
  id: `${r.id}--${a}--${$.InvalidObjectStructure}`,
60934
60932
  message: `Entity of type "${r.type}" with id "${r.id}" has an invalid structure for the "${a}" property. It should be an array of references.`,
60935
- severity: D.Error,
60933
+ severity: R.Error,
60936
60934
  code: $.InvalidObjectStructure,
60937
60935
  issue: null
60938
60936
  })
@@ -60940,7 +60938,7 @@ function ml(r, a, e) {
60940
60938
  new w({
60941
60939
  id: `${r.id}--${a}--${$.InvalidObjectStructure}`,
60942
60940
  message: `Entity of type "${r.type}" with id "${r.id}" is missing a list of references to "${a}" entities.`,
60943
- severity: D.Error,
60941
+ severity: R.Error,
60944
60942
  code: $.InvalidObjectStructure,
60945
60943
  issue: null
60946
60944
  })
@@ -60956,7 +60954,7 @@ function Zp(r, a, e) {
60956
60954
  new w({
60957
60955
  id: `${r.id}--${s.id}--${b.InvalidReference}`,
60958
60956
  code: b.InvalidReference,
60959
- severity: D.Error,
60957
+ severity: R.Error,
60960
60958
  message: `Entity of type "${r.type}" with id "${r.id}", has a reference to "${a.key}" that isn't pointing to an entity of type '${ne(
60961
60959
  a.types,
60962
60960
  "', '",
@@ -60968,7 +60966,7 @@ function Zp(r, a, e) {
60968
60966
  new w({
60969
60967
  id: `${r.id}--${s.id}--${b.SelfReference}`,
60970
60968
  code: b.SelfReference,
60971
- severity: D.Error,
60969
+ severity: R.Error,
60972
60970
  message: `Entity of type "${r.type}" with id "${r.id}", has a reference to itself at '${a.key}'. This is not allowed. Change the reference string or the 'entityId' property of the reference object.`,
60973
60971
  issue: null
60974
60972
  })
@@ -61091,7 +61089,7 @@ function M7(r, a) {
61091
61089
  new w({
61092
61090
  id: `${r.id}--${a.id}--${b.InvalidReference}`,
61093
61091
  code: b.InvalidReference,
61094
- severity: D.Warning,
61092
+ severity: R.Warning,
61095
61093
  message: `Entity of type "${r.type}" with id "${r.id}", has a reference to an entry-point entity at 'calledBySuccess' with id "${a.id}".
61096
61094
  Entry-point entities can only be referenced as 'calledByEntry'.
61097
61095
  ${Ko}
@@ -61115,7 +61113,7 @@ This ${a.type} is called by ${ne(
61115
61113
  new w({
61116
61114
  id: `${r.id}--${a.id}--${b.InvalidReference}`,
61117
61115
  code: b.InvalidReference,
61118
- severity: D.Error,
61116
+ severity: R.Error,
61119
61117
  message: `Entity of type "${r.type}" with id "${r.id}", has a reference to a '${a.type}' entity at 'calledBySuccess' with id "${a.id}".
61120
61118
  ${a.type} entities are the last entity to be executed in a logic chain, and they don't call any other entities.
61121
61119
  Termination entities are ${ne(
@@ -61131,7 +61129,7 @@ Termination entities are ${ne(
61131
61129
  new w({
61132
61130
  id: `${r.id}--${a.id}--${b.InvalidReference}`,
61133
61131
  code: b.InvalidReference,
61134
- severity: D.Error,
61132
+ severity: R.Error,
61135
61133
  message: `Entity of type "${r.type}" with id "${r.id}", has a reference to a caller entity at 'calledBySuccess' with id "${a.id}" that isn't a pass-through callable entity.
61136
61134
  ${dn}`,
61137
61135
  issue: null
@@ -61142,7 +61140,7 @@ ${dn}`,
61142
61140
  new w({
61143
61141
  id: `${r.id}--${a.id}--${b.InvalidReference}`,
61144
61142
  code: b.InvalidReference,
61145
- severity: D.Error,
61143
+ severity: R.Error,
61146
61144
  message: `Entity of type "${r.type}" with id "${r.id}", has a reference to a caller entity at 'calledBySuccess' with id "${a.id}" that isn't a caller entity.
61147
61145
  All caller entity types are: ${ne(
61148
61146
  tr,
@@ -61163,7 +61161,7 @@ function N7(r, a) {
61163
61161
  new w({
61164
61162
  id: `${r.id}--${a.id}--${b.InvalidReference}`,
61165
61163
  code: b.InvalidReference,
61166
- severity: D.Error,
61164
+ severity: R.Error,
61167
61165
  message: `Entity of type "${r.type}" with id "${r.id}", has a reference to an entry-point entity at 'calledByError' with id "${a.id}".
61168
61166
  Entry-point entities can only be referenced as 'calledByEntry'.
61169
61167
  ${Ko}`,
@@ -61184,7 +61182,7 @@ This ${a.type} is called by ${ne(
61184
61182
  new w({
61185
61183
  id: `${r.id}--${a.id}--${b.InvalidReference}`,
61186
61184
  code: b.InvalidReference,
61187
- severity: D.Error,
61185
+ severity: R.Error,
61188
61186
  message: `Entity of type "${r.type}" with id "${r.id}", has a reference to a '${a.type}' entity at 'calledByError' with id "${a.id}".
61189
61187
  ${a.type} entities are the last entity to be executed in a logic chain, and they don't call any other entities.
61190
61188
  Termination entities are ${ne(
@@ -61200,7 +61198,7 @@ Termination entities are ${ne(
61200
61198
  new w({
61201
61199
  id: `${r.id}--${a.id}--${b.InvalidReference}`,
61202
61200
  code: b.InvalidReference,
61203
- severity: D.Error,
61201
+ severity: R.Error,
61204
61202
  message: `Entity of type "${r.type}" with id "${r.id}", has a reference to a caller entity at 'calledByError' with id "${a.id}" that isn't a pass-through callable entity.
61205
61203
  ${dn}`,
61206
61204
  issue: null
@@ -61211,7 +61209,7 @@ ${dn}`,
61211
61209
  new w({
61212
61210
  id: `${r.id}--${a.id}--${b.InvalidReference}`,
61213
61211
  code: b.InvalidReference,
61214
- severity: D.Error,
61212
+ severity: R.Error,
61215
61213
  message: `Entity of type "${r.type}" with id "${r.id}", has a reference to a caller entity at 'calledByError' with id "${a.id}" that isn't a caller entity.
61216
61214
  All caller entity types are: ${ne(
61217
61215
  tr,
@@ -61241,7 +61239,7 @@ This ${a.type} is called by ${ne(
61241
61239
  new w({
61242
61240
  id: `${r.id}--${a.id}--${b.InvalidReference}`,
61243
61241
  code: b.InvalidReference,
61244
- severity: D.Error,
61242
+ severity: R.Error,
61245
61243
  message: `Entity of type "${r.type}" with id "${r.id}", has a reference to a '${a.type}' entity at 'calledByEntry' with id "${a.id}".
61246
61244
  ${a.type} entities are the last entity to be executed in a logic chain, and they don't call any other entities.
61247
61245
  Termination entities are ${ne(
@@ -61257,7 +61255,7 @@ Termination entities are ${ne(
61257
61255
  new w({
61258
61256
  id: `${r.id}--${a.id}--${b.InvalidReference}`,
61259
61257
  code: b.InvalidReference,
61260
- severity: D.Warning,
61258
+ severity: R.Warning,
61261
61259
  message: `Entity of type "${r.type}" with id "${r.id}", has a reference to a caller entity at 'calledByEntry' with id "${a.id}" that is a pass-through callable entity, not an entry-point entity.
61262
61260
  ${dn}.
61263
61261
  ${Ko}.
@@ -61271,7 +61269,7 @@ We have moved the reference to 'calledBySuccess' for you.`,
61271
61269
  new w({
61272
61270
  id: `${r.id}--${a.id}--${b.InvalidReference}`,
61273
61271
  code: b.InvalidReference,
61274
- severity: D.Error,
61272
+ severity: R.Error,
61275
61273
  message: `Entity of type "${r.type}" with id "${r.id}", has a reference to a caller entity at 'calledByEntry' with id "${a.id}" that isn't a caller entity.
61276
61274
  All caller entity types are: ${ne(
61277
61275
  tr,
@@ -61356,7 +61354,7 @@ function U7(r, a) {
61356
61354
  new w({
61357
61355
  id: `${t.id}--${b.DuplicateReference}`,
61358
61356
  code: b.DuplicateReference,
61359
- severity: D.Warning,
61357
+ severity: R.Warning,
61360
61358
  message: `Entity of type "${t.type}" with id "${t.id}" has duplicate caller references. Each caller reference should be unique. Duplicate caller reference will be ignored.`,
61361
61359
  issue: null
61362
61360
  })
@@ -61366,7 +61364,7 @@ function U7(r, a) {
61366
61364
  new w({
61367
61365
  id: `${t.id}--${b.IncompatibleScope}`,
61368
61366
  code: b.IncompatibleScope,
61369
- severity: D.Error,
61367
+ severity: R.Error,
61370
61368
  message: `Entity of type "${t.type}" with id "${t.id}" has an explicitly set parent, but it isn't a '${ne(
61371
61369
  nt,
61372
61370
  "', '",
@@ -61378,7 +61376,7 @@ function U7(r, a) {
61378
61376
  new w({
61379
61377
  id: `${t.id}--${b.IncompatibleScope}`,
61380
61378
  code: b.IncompatibleScope,
61381
- severity: D.Error,
61379
+ severity: R.Error,
61382
61380
  message: `Entity of type "${t.type}" with id "${t.id}" has an explicitly set parent, but it isn't a '${n.Loop}' entity. A continue statement's parent should always be resolved to a loop entity.${vl}`,
61383
61381
  issue: null
61384
61382
  })
@@ -61386,7 +61384,7 @@ function U7(r, a) {
61386
61384
  new w({
61387
61385
  id: `${t.id}--${b.IncompatibleScope}`,
61388
61386
  code: b.IncompatibleScope,
61389
- severity: D.Error,
61387
+ severity: R.Error,
61390
61388
  message: `Entity of type "${t.type}" with id "${t.id}" has an explicitly set parent, but it isn't a '${n.Loop}' entity. A break statement's parent should always be resolved to a loop entity.${vl}`,
61391
61389
  issue: null
61392
61390
  })
@@ -61400,7 +61398,7 @@ function U7(r, a) {
61400
61398
  new w({
61401
61399
  id: `${t.id}--${f}--${b.ReferencedEntityNotFound}`,
61402
61400
  code: b.ReferencedEntityNotFound,
61403
- severity: D.Error,
61401
+ severity: R.Error,
61404
61402
  message: `Entity of type "${r.type}" with id "${r.id}", has a reference to a caller entity with id "${f}" that doesn't exist in the project.`,
61405
61403
  issue: null
61406
61404
  })
@@ -61414,40 +61412,40 @@ function U7(r, a) {
61414
61412
  T,
61415
61413
  a
61416
61414
  ) ? (lt.includes(t.type) && ((t.calledBySuccess || []).find(
61417
- (R) => R === c.id
61415
+ (D) => D === c.id
61418
61416
  ) ? (c.successCalls || []).find(
61419
61417
  (P) => lt.includes(P.type)
61420
61418
  ) && e.push(
61421
61419
  new w({
61422
61420
  id: `${t.id}--${c.id}--${$.UnreachableEntity}`,
61423
61421
  code: $.UnreachableEntity,
61424
- severity: D.Error,
61422
+ severity: R.Error,
61425
61423
  message: `Entity of type "${t.type}" with id "${t.id}" is being called by an entity of type "${c.type}" with id "${c.id}" that already calls a termination statement.
61426
61424
  The new termination statement is redundant because both entities would be called from the same parent caller branch "successCalls", at the same time.`,
61427
61425
  issue: null
61428
61426
  })
61429
61427
  ) : (t.calledByError || []).find(
61430
- (R) => R === c.id
61428
+ (D) => D === c.id
61431
61429
  ) ? (c.errorCalls || []).find(
61432
61430
  (P) => lt.includes(P.type)
61433
61431
  ) && e.push(
61434
61432
  new w({
61435
61433
  id: `${t.id}--${c.id}--${$.UnreachableEntity}`,
61436
61434
  code: $.UnreachableEntity,
61437
- severity: D.Error,
61435
+ severity: R.Error,
61438
61436
  message: `Entity of type "${t.type}" with id "${t.id}" is being called by an entity of type "${c.type}" with id "${c.id}" that already calls a termination statement.
61439
61437
  The new termination statement is redundant because both entities would be called from the same parent caller branch "errorCalls", at the same time.`,
61440
61438
  issue: null
61441
61439
  })
61442
61440
  ) : (t.calledByEntry || []).find(
61443
- (R) => R === c.id
61441
+ (D) => D === c.id
61444
61442
  ) && (c.calls || []).find(
61445
61443
  (P) => lt.includes(P.type)
61446
61444
  ) && e.push(
61447
61445
  new w({
61448
61446
  id: `${t.id}--${c.id}--${$.UnreachableEntity}`,
61449
61447
  code: $.UnreachableEntity,
61450
- severity: D.Error,
61448
+ severity: R.Error,
61451
61449
  message: `Entity of type "${t.type}" with id "${t.id}" is being called by an entity of type "${c.type}" with id "${c.id}" that already calls a termination statement.
61452
61450
  The new termination statement is redundant because both entities would be called from the same parent caller branch (entry-point), at the same time.`,
61453
61451
  issue: null
@@ -61462,7 +61460,7 @@ The new termination statement is redundant because both entities would be called
61462
61460
  new w({
61463
61461
  id: `${t.id}--${c.id}--${b.CallerWithIncompatibleScope}`,
61464
61462
  code: b.CallerWithIncompatibleScope,
61465
- severity: D.Warning,
61463
+ severity: R.Warning,
61466
61464
  message: `Entity of type "${t.type}" with id "${t.id}" is being called by an entity of type "${c.type}" with id "${c.id}" that is in a different scope. The caller entity should be in the same scope or a higher valid scope. Or all callers should share the global project scope with the entity they call.`,
61467
61465
  issue: null
61468
61466
  })
@@ -61477,40 +61475,40 @@ The new termination statement is redundant because both entities would be called
61477
61475
  a
61478
61476
  );
61479
61477
  E ? (lt.includes(t.type) && ((t.calledBySuccess || []).find(
61480
- (R) => R === c.id
61478
+ (D) => D === c.id
61481
61479
  ) ? (c.successCalls || []).find(
61482
61480
  (P) => lt.includes(P.type)
61483
61481
  ) && e.push(
61484
61482
  new w({
61485
61483
  id: `${t.id}--${c.id}--${$.UnreachableEntity}`,
61486
61484
  code: $.UnreachableEntity,
61487
- severity: D.Error,
61485
+ severity: R.Error,
61488
61486
  message: `Entity of type "${t.type}" with id "${t.id}" is being called by an entity of type "${c.type}" with id "${c.id}" that already calls a termination statement.
61489
61487
  The new termination statement is redundant because both entities would be called from the same parent caller branch "successCalls", at the same time.`,
61490
61488
  issue: null
61491
61489
  })
61492
61490
  ) : (t.calledByError || []).find(
61493
- (R) => R === c.id
61491
+ (D) => D === c.id
61494
61492
  ) ? (c.errorCalls || []).find(
61495
61493
  (P) => lt.includes(P.type)
61496
61494
  ) && e.push(
61497
61495
  new w({
61498
61496
  id: `${t.id}--${c.id}--${$.UnreachableEntity}`,
61499
61497
  code: $.UnreachableEntity,
61500
- severity: D.Error,
61498
+ severity: R.Error,
61501
61499
  message: `Entity of type "${t.type}" with id "${t.id}" is being called by an entity of type "${c.type}" with id "${c.id}" that already calls a termination statement.
61502
61500
  The new termination statement is redundant because both entities would be called from the same parent caller branch "errorCalls", at the same time.`,
61503
61501
  issue: null
61504
61502
  })
61505
61503
  ) : (t.calledByEntry || []).find(
61506
- (R) => R === c.id
61504
+ (D) => D === c.id
61507
61505
  ) && (c.calls || []).find(
61508
61506
  (P) => lt.includes(P.type)
61509
61507
  ) && e.push(
61510
61508
  new w({
61511
61509
  id: `${t.id}--${c.id}--${$.UnreachableEntity}`,
61512
61510
  code: $.UnreachableEntity,
61513
- severity: D.Error,
61511
+ severity: R.Error,
61514
61512
  message: `Entity of type "${t.type}" with id "${t.id}" is being called by an entity of type "${c.type}" with id "${c.id}" that already calls a termination statement.
61515
61513
  The new termination statement is redundant because both entities would be called from the same parent caller branch (entry-point), at the same time.`,
61516
61514
  issue: null
@@ -61525,7 +61523,7 @@ The new termination statement is redundant because both entities would be called
61525
61523
  new w({
61526
61524
  id: `${t.id}--${c.id}--${b.CallerWithIncompatibleScope}`,
61527
61525
  code: b.CallerWithIncompatibleScope,
61528
- severity: D.Warning,
61526
+ severity: R.Warning,
61529
61527
  message: `Entity of type "${t.type}" with id "${t.id}" has multiple caller, but not all of them have compatible scopes. Caller of type "${c.type}" with id "${c.id}" is in a different scope than caller of type "${u.type}" with id "${u.id}". All callers should be in the same scope or a higher valid scope. Or all callers should share the global project scope.`,
61530
61528
  issue: null
61531
61529
  })
@@ -61561,7 +61559,7 @@ It is recommended to have a caller reference already at the moment of creation i
61561
61559
  id: `${t.id}--${$.MissingCaller}`,
61562
61560
  code: $.MissingCaller,
61563
61561
  // If it is a termination statement, make it an error, otherwise a warning
61564
- severity: lt.includes(t.type) ? D.Error : D.Warning,
61562
+ severity: lt.includes(t.type) ? R.Error : R.Warning,
61565
61563
  message: s,
61566
61564
  issue: null
61567
61565
  })
@@ -61580,7 +61578,7 @@ function Ev(r, a) {
61580
61578
  new w({
61581
61579
  id: `${r.id}--${a.id}--${b.InvalidReference}`,
61582
61580
  code: b.InvalidReference,
61583
- severity: D.Error,
61581
+ severity: R.Error,
61584
61582
  message: `Entity of type "${r.type}" with id "${r.id}", has a reference to a value writting entity at 'readsValue' with id "${a.id}" that is a literal value entity. Literal value entities aren't value writting entities.
61585
61583
  All value writting entity types are: ${ne(
61586
61584
  vt,
@@ -61598,7 +61596,7 @@ This literal-value entity belongs to an input map entity with id "${l.id}". Inpu
61598
61596
  new w({
61599
61597
  id: `${r.id}--${a.id}--${b.InvalidReference}`,
61600
61598
  code: b.InvalidReference,
61601
- severity: D.Error,
61599
+ severity: R.Error,
61602
61600
  message: `Entity of type "${r.type}" with id "${r.id}", has a reference to a value writting entity at 'readsValue' with id "${a.id}" that is a literal value entity. Literal value entities can't be referenced as value writting entities.
61603
61601
  All value writting entity types are: ${ne(
61604
61602
  vt,
@@ -61615,7 +61613,7 @@ This literal-value entity belongs to a data type entity with id "${d.id}", which
61615
61613
  new w({
61616
61614
  id: `${r.id}--${a.id}--${b.InvalidReference}`,
61617
61615
  code: b.InvalidReference,
61618
- severity: D.Error,
61616
+ severity: R.Error,
61619
61617
  message: `Entity of type "${r.type}" with id "${r.id}", has a reference to a value writting entity at 'readsValue' with id "${a.id}" that is a literal value entity. Literal value entities can't be referenced as value writting entities.
61620
61618
  All value writting entity types are: ${ne(
61621
61619
  vt,
@@ -61631,7 +61629,7 @@ All value writting entity types are: ${ne(
61631
61629
  new w({
61632
61630
  id: `${r.id}--${a.id}--${b.InvalidReference}`,
61633
61631
  code: b.InvalidReference,
61634
- severity: D.Error,
61632
+ severity: R.Error,
61635
61633
  message: `Entity of type "${r.type}" with id "${r.id}", has a reference to a value writting entity at 'readsValue' with id "${a.id}" that is a literal value entity. Literal value entities can't be referenced as value writting entities.
61636
61634
  All value writting entity types are: ${ne(
61637
61635
  vt,
@@ -61646,7 +61644,7 @@ This data type entity belongs to a ${l.type} entity with id "${l.id}". ${l.type}
61646
61644
  new w({
61647
61645
  id: `${r.id}--${a.id}--${b.InvalidReference}`,
61648
61646
  code: b.InvalidReference,
61649
- severity: D.Error,
61647
+ severity: R.Error,
61650
61648
  message: `Entity of type "${r.type}" with id "${r.id}", has a reference to a value writting entity at 'readsValue' with id "${a.id}" that is a literal value entity. Literal value entities can't be referenced as value writting entities.
61651
61649
  All value writting entity types are: ${ne(
61652
61650
  vt,
@@ -61661,7 +61659,7 @@ All value writting entity types are: ${ne(
61661
61659
  new w({
61662
61660
  id: `${r.id}--${a.id}--${b.InvalidReference}`,
61663
61661
  code: b.InvalidReference,
61664
- severity: D.Error,
61662
+ severity: R.Error,
61665
61663
  message: `Entity of type "${r.type}" with id "${r.id}", has a reference to a value writting entity at 'readsValue' with id "${a.id}" that isn't a value writting entity.
61666
61664
  All value writting entity types are: ${ne(
61667
61665
  vt,
@@ -61701,7 +61699,7 @@ Two value holding entities need to be in the same scope or in scopes nested insi
61701
61699
  new w({
61702
61700
  id: `${r.id}--${a.id}--${b.IncompatibleScope}`,
61703
61701
  code: b.IncompatibleScope,
61704
- severity: D.Error,
61702
+ severity: R.Error,
61705
61703
  message: `Entity of type "${r.type}" with id "${r.id}", has a reference to a value writting entity at 'readsValue' with id "${a.id}" with an incompatible scope.
61706
61704
  ${o}`,
61707
61705
  issue: null
@@ -61737,7 +61735,7 @@ function Rt(r, a, e, t = !1) {
61737
61735
  new w({
61738
61736
  id: `${l.id}--${b.InvalidReference}`,
61739
61737
  code: b.InvalidReference,
61740
- severity: D.Error,
61738
+ severity: R.Error,
61741
61739
  message: `Entity of type "${l.type}" with id "${l.id}" has a 'readsValue' property that is only valid for entities of type: ${ne(
61742
61740
  Fr,
61743
61741
  ", ",
@@ -61750,7 +61748,7 @@ ${jl}`,
61750
61748
  new w({
61751
61749
  id: `${l.id}--${b.InvalidReference}`,
61752
61750
  code: b.InvalidReference,
61753
- severity: D.Error,
61751
+ severity: R.Error,
61754
61752
  message: `Entity of type "${l.type}" with id "${l.id}" has a 'readsValue' property that is only valid for entities of type: ${ne(
61755
61753
  Fr,
61756
61754
  ", ",
@@ -61763,7 +61761,7 @@ ${Tv}`,
61763
61761
  new w({
61764
61762
  id: `${l.id}--${b.InvalidReference}`,
61765
61763
  code: b.InvalidReference,
61766
- severity: D.Error,
61764
+ severity: R.Error,
61767
61765
  message: `Entity of type "${l.type}" with id "${l.id}" has a 'readsValue' property that is only valid for entities of type: ${ne(
61768
61766
  Fr,
61769
61767
  ", ",
@@ -61777,7 +61775,7 @@ ${vv}`,
61777
61775
  new w({
61778
61776
  id: `${l.id}--${b.InvalidReference}`,
61779
61777
  code: b.InvalidReference,
61780
- severity: D.Warning,
61778
+ severity: R.Warning,
61781
61779
  message: `Entity of type "${l.type}" with id "${l.id}" has a 'writesValues' property. This property is managed by the downstream entity, the value reader, and should not be present in the payload of the generation action.
61782
61780
  ${Wp}`,
61783
61781
  issue: null
@@ -61786,7 +61784,7 @@ ${Wp}`,
61786
61784
  new w({
61787
61785
  id: `${l.id}--${b.InvalidReference}`,
61788
61786
  code: b.InvalidReference,
61789
- severity: D.Warning,
61787
+ severity: R.Warning,
61790
61788
  message: `Entity of type "${l.type}" with id "${l.id}" has a 'writesValues' property. This property is managed by the downstream entity, the value reader, and should not be present in the payload of the generation action.
61791
61789
  ${jl}
61792
61790
  ${Wp}`,
@@ -61804,7 +61802,7 @@ ${Wp}`,
61804
61802
  new w({
61805
61803
  id: `${l.id}--${d}--${$.InvalidObjectStructure}`,
61806
61804
  code: $.InvalidObjectStructure,
61807
- severity: D.Error,
61805
+ severity: R.Error,
61808
61806
  message: `Entity of type "${l.type}" with id "${l.id}" is missing a reference to a "${d}" entity. The '${d}' property of a "${l.type}" entity can be ${ne(f, ", ", " or ")}`,
61809
61807
  issue: null
61810
61808
  })
@@ -61814,19 +61812,19 @@ ${Wp}`,
61814
61812
  if (u.list)
61815
61813
  if (Array.isArray(T))
61816
61814
  for (const E of T) {
61817
- const R = Zp(
61815
+ const D = Zp(
61818
61816
  l,
61819
61817
  { key: d, types: f, optional: c },
61820
61818
  e
61821
61819
  );
61822
- i.push(...R);
61820
+ i.push(...D);
61823
61821
  }
61824
61822
  else {
61825
61823
  i.push(
61826
61824
  new w({
61827
61825
  id: `${l.id}--${d}--${b.ContainsSingleButShouldBeReferenceList}`,
61828
61826
  code: b.ContainsSingleButShouldBeReferenceList,
61829
- severity: D.Error,
61827
+ severity: R.Error,
61830
61828
  message: `Entity of type "${l.type}" with id "${l.id}", should have a property "${d}" which is a list, but it isn't.`,
61831
61829
  issue: null
61832
61830
  })
@@ -61838,7 +61836,7 @@ ${Wp}`,
61838
61836
  new w({
61839
61837
  id: `${l.id}--${d}--${b.ContainsListButShouldReferenceSingle}`,
61840
61838
  code: b.ContainsListButShouldReferenceSingle,
61841
- severity: D.Error,
61839
+ severity: R.Error,
61842
61840
  message: `Entity of type "${l.type}" with id "${l.id}", should have a property "${d}" which holds a single reference, but it is a list.`,
61843
61841
  issue: null
61844
61842
  })
@@ -61868,7 +61866,7 @@ function dz(r, a, e = "calledBy") {
61868
61866
  new w({
61869
61867
  id: `${r}--${b.ReferencedEntityNotFound}`,
61870
61868
  code: b.ReferencedEntityNotFound,
61871
- severity: D.Error,
61869
+ severity: R.Error,
61872
61870
  message: `Entity with id "${r}" referenced in '${e}' property not found in the project. Perhaps it should be created first? Perhaps it is the wrong ID?`,
61873
61871
  issue: null
61874
61872
  })
@@ -61889,7 +61887,7 @@ This ${i.type} is called by ${ne(
61889
61887
  new w({
61890
61888
  id: `last-action--${i.id}--${b.InvalidReference}`,
61891
61889
  code: b.InvalidReference,
61892
- severity: D.Error,
61890
+ severity: R.Error,
61893
61891
  message: `Entity with id '${i.id}' referenced in '${e}' property is of type '${i.type}'.
61894
61892
  ${i.type} entities are the last entity to be executed in a logic chain, and they don't call any other entities.
61895
61893
  Termination entities are ${ne(
@@ -61905,7 +61903,7 @@ Termination entities are ${ne(
61905
61903
  new w({
61906
61904
  id: `last-action--${i.id}--${b.InvalidReference}`,
61907
61905
  code: b.InvalidReference,
61908
- severity: D.Error,
61906
+ severity: R.Error,
61909
61907
  message: `Entity with id '${i.id}' referenced in '${e}' property is of type '${i.type}' which is not a valid caller entity type.
61910
61908
  All caller entity types are: ${ne(
61911
61909
  tr,
@@ -61927,7 +61925,7 @@ function uz(r, a, e = "calledByError") {
61927
61925
  new w({
61928
61926
  id: `${r}--${b.ReferencedEntityNotFound}`,
61929
61927
  code: b.ReferencedEntityNotFound,
61930
- severity: D.Error,
61928
+ severity: R.Error,
61931
61929
  message: `Entity with id "${r}" referenced in '${e}' property not found in the project. Perhaps it should be created first? Perhaps it is the wrong ID?`,
61932
61930
  issue: null
61933
61931
  })
@@ -61948,7 +61946,7 @@ This ${i.type} is called by ${ne(
61948
61946
  new w({
61949
61947
  id: `last-action--${i.id}--${b.InvalidReference}`,
61950
61948
  code: b.InvalidReference,
61951
- severity: D.Error,
61949
+ severity: R.Error,
61952
61950
  message: `Entity with id '${i.id}' referenced in '${e}' property is of type '${i.type}'.
61953
61951
  ${i.type} entities are the last entity to be executed in a logic chain, and they don't call any other entities.
61954
61952
  Termination entities are ${ne(
@@ -61964,7 +61962,7 @@ Termination entities are ${ne(
61964
61962
  new w({
61965
61963
  id: `last-action--${i.id}--${b.InvalidReference}`,
61966
61964
  code: b.InvalidReference,
61967
- severity: D.Error,
61965
+ severity: R.Error,
61968
61966
  message: `Entity with id '${i.id}' referenced in '${e}' property is of type '${i.type}' which is an entry-point entity and doesn't thrown errors.
61969
61967
  ${Ko}`,
61970
61968
  issue: null
@@ -61973,7 +61971,7 @@ ${Ko}`,
61973
61971
  new w({
61974
61972
  id: `last-action--${i.id}--${b.InvalidReference}`,
61975
61973
  code: b.InvalidReference,
61976
- severity: D.Error,
61974
+ severity: R.Error,
61977
61975
  message: `Entity with id '${i.id}' referenced in '${e}' property is of type '${i.type}' which is not a valid caller entity type.
61978
61976
  For any error branch caller, for the 'calledByError' property of an entity, you specifically need to reference a pass-through callable entity.
61979
61977
  ${dn}`,
@@ -61991,7 +61989,7 @@ function pz(r, a) {
61991
61989
  new w({
61992
61990
  id: `last-action--${b.ReferencedEntityNotFound}`,
61993
61991
  code: b.ReferencedEntityNotFound,
61994
- severity: D.Error,
61992
+ severity: R.Error,
61995
61993
  message: `The 'readsValue' property references an entity with id '${r}' that was not found in the project. Perhaps it should be created? Perhaps the ID is incorrect?`,
61996
61994
  issue: null
61997
61995
  })
@@ -62004,7 +62002,7 @@ function pz(r, a) {
62004
62002
  new w({
62005
62003
  id: `last-action--${t.id}--${b.InvalidReference}`,
62006
62004
  code: b.InvalidReference,
62007
- severity: D.Error,
62005
+ severity: R.Error,
62008
62006
  message: `The 'readsValue' property references an entity with id "${t.id}" that is a literal value entity. Literal value entities aren't value writting entities.
62009
62007
  All value writting entity types are: ${ne(
62010
62008
  vt,
@@ -62022,7 +62020,7 @@ This literal-value entity belongs to an input map entity with id "${s.id}". Inpu
62022
62020
  new w({
62023
62021
  id: `last-action--${t.id}--${b.InvalidReference}`,
62024
62022
  code: b.InvalidReference,
62025
- severity: D.Error,
62023
+ severity: R.Error,
62026
62024
  message: `The 'readsValue' property references an entity with id "${t.id}" that is a literal value entity. Literal value entities can't be referenced as value writting entities.
62027
62025
  All value writting entity types are: ${ne(
62028
62026
  vt,
@@ -62039,7 +62037,7 @@ This literal-value entity belongs to a data type entity with id "${o.id}", which
62039
62037
  new w({
62040
62038
  id: `last-action--${t.id}--${b.InvalidReference}`,
62041
62039
  code: b.InvalidReference,
62042
- severity: D.Error,
62040
+ severity: R.Error,
62043
62041
  message: `The 'readsValue' property references an entity with id "${t.id}" that is a literal value entity. Literal value entities can't be referenced as value writting entities.
62044
62042
  All value writting entity types are: ${ne(
62045
62043
  vt,
@@ -62055,7 +62053,7 @@ All value writting entity types are: ${ne(
62055
62053
  new w({
62056
62054
  id: `last-action--${t.id}--${b.InvalidReference}`,
62057
62055
  code: b.InvalidReference,
62058
- severity: D.Error,
62056
+ severity: R.Error,
62059
62057
  message: `The 'readsValue' property references an entity with id "${t.id}" that is a literal value entity. Literal value entities can't be referenced as value writting entities.
62060
62058
  All value writting entity types are: ${ne(
62061
62059
  vt,
@@ -62070,7 +62068,7 @@ This data type entity belongs to a ${s.type} entity with id "${s.id}". ${s.type}
62070
62068
  new w({
62071
62069
  id: `last-action--${t.id}--${b.InvalidReference}`,
62072
62070
  code: b.InvalidReference,
62073
- severity: D.Error,
62071
+ severity: R.Error,
62074
62072
  message: `The 'readsValue' property references an entity with id "${t.id}" that is a literal value entity. Literal value entities can't be referenced as value writting entities.
62075
62073
  All value writting entity types are: ${ne(
62076
62074
  vt,
@@ -62085,7 +62083,7 @@ All value writting entity types are: ${ne(
62085
62083
  new w({
62086
62084
  id: `last-action--${t.id}--${b.InvalidReference}`,
62087
62085
  code: b.InvalidReference,
62088
- severity: D.Error,
62086
+ severity: R.Error,
62089
62087
  message: `The 'readsValue' property references an entity with id "${t.id}" that isn't a value writting entity.
62090
62088
  All value writting entity types are: ${ne(
62091
62089
  vt,
@@ -62134,7 +62132,7 @@ function L7(r, a) {
62134
62132
  new w({
62135
62133
  id: `last-action--${b.ReferencedEntityNotFound}`,
62136
62134
  code: b.ReferencedEntityNotFound,
62137
- severity: D.Error,
62135
+ severity: R.Error,
62138
62136
  message: `The entity with id '${r}' that isn't yet found in the project. Perhaps it should be created first. Or perhaps the ID is incorrect.`,
62139
62137
  issue: null
62140
62138
  })
@@ -62144,7 +62142,7 @@ function L7(r, a) {
62144
62142
  new w({
62145
62143
  id: `last-action--${b.InvalidFunctionDeclarationForFunctionCall}`,
62146
62144
  code: b.InvalidFunctionDeclarationForFunctionCall,
62147
- severity: D.Error,
62145
+ severity: R.Error,
62148
62146
  message: `The 'functionDeclarationId' reference is pointing to entity with id '${r}' which is of type '${t.type}' entity. If you meant to reference an 'action-descriptor', you can use the 'implement_operation' generation action instead.
62149
62147
  Otherwise, if you were trying to implement a 'function-call' from a globally declarated 'function-declaration':
62150
62148
  ${i}`,
@@ -62156,7 +62154,7 @@ ${i}`,
62156
62154
  new w({
62157
62155
  id: `last-action--${b.InvalidFunctionDeclarationForFunctionCall}`,
62158
62156
  code: b.InvalidFunctionDeclarationForFunctionCall,
62159
- severity: D.Error,
62157
+ severity: R.Error,
62160
62158
  message: `The 'functionDeclarationId' reference is pointing to entity with id '${r}' which is of type '${t.type}' entity. Only 'function-declaration' entities can be implemented as function calls.
62161
62159
  ${i}`,
62162
62160
  issue: null
@@ -62179,7 +62177,7 @@ ${un}`), e.push(
62179
62177
  new w({
62180
62178
  id: `last-action--${b.InvalidFunctionDeclarationForFunctionCall}`,
62181
62179
  code: b.InvalidFunctionDeclarationForFunctionCall,
62182
- severity: D.Error,
62180
+ severity: R.Error,
62183
62181
  message: `The function declaration entity with id '${r}' is a method of the 'definition-entity' with id '${t.parent.id}'. Only globally declared, standalone functions can be implemented as function calls.
62184
62182
  If you want to call a method of a definition entity, use a '${n.InternalCall}' entity on any variable which is an instance of that definition entity.
62185
62183
  ${i}${o}`,
@@ -62191,7 +62189,7 @@ ${i}${o}`,
62191
62189
  new w({
62192
62190
  id: `last-action--${b.InvalidFunctionDeclarationForFunctionCall}`,
62193
62191
  code: b.InvalidFunctionDeclarationForFunctionCall,
62194
- severity: D.Error,
62192
+ severity: R.Error,
62195
62193
  message: `The function declaration entity with id '${r}' is the body of the 'loop' with id '${t.parent.id}'. Only globally declared, standalone functions can be implemented as function calls.
62196
62194
  If you want to execute the logic of a loop's body you can call the loop entity itself anf the body will be executed once for each iteration.
62197
62195
  ${i}`,
@@ -62201,7 +62199,7 @@ ${i}`,
62201
62199
  new w({
62202
62200
  id: `last-action--${b.InvalidFunctionDeclarationForFunctionCall}`,
62203
62201
  code: b.InvalidFunctionDeclarationForFunctionCall,
62204
- severity: D.Error,
62202
+ severity: R.Error,
62205
62203
  message: `The function declaration entity with id '${r}' has a 'parent' entity which isn't the root project. Only globally declared, standalone functions can be implemented as function calls.${i}`,
62206
62204
  issue: null
62207
62205
  })
@@ -62225,7 +62223,7 @@ All built-in 'action-descriptor' entities that define 'operation' entity, are (I
62225
62223
  new w({
62226
62224
  id: `last-action--${b.InvalidActionDescriptorForOperation}`,
62227
62225
  code: b.InvalidActionDescriptorForOperation,
62228
- severity: D.Error,
62226
+ severity: R.Error,
62229
62227
  message: `The entity with id '${r}' is of type '${t.type}' entity. Only 'action-descriptor' entities can be implemented as operations instances.${i}`,
62230
62228
  issue: null
62231
62229
  })
@@ -62235,7 +62233,7 @@ All built-in 'action-descriptor' entities that define 'operation' entity, are (I
62235
62233
  new w({
62236
62234
  id: `last-action--${b.InvalidActionDescriptorForOperation}`,
62237
62235
  code: b.InvalidActionDescriptorForOperation,
62238
- severity: D.Error,
62236
+ severity: R.Error,
62239
62237
  message: `The entity with id '${r}' is of type '${t.type}' entity but it isn't one of the allowed operation descriptors.${i}`,
62240
62238
  issue: null
62241
62239
  })
@@ -62243,7 +62241,7 @@ All built-in 'action-descriptor' entities that define 'operation' entity, are (I
62243
62241
  new w({
62244
62242
  id: `last-action--${b.InvalidActionDescriptorForOperation}`,
62245
62243
  code: b.InvalidActionDescriptorForOperation,
62246
- severity: D.Error,
62244
+ severity: R.Error,
62247
62245
  message: `The entity with id '${r}' is of type '${t.type}' entity. Only 'action-descriptor' entities can be implemented as operations instances.${i}`,
62248
62246
  issue: null
62249
62247
  })
@@ -62251,7 +62249,7 @@ All built-in 'action-descriptor' entities that define 'operation' entity, are (I
62251
62249
  new w({
62252
62250
  id: `last-action--${b.ReferencedEntityNotFound}`,
62253
62251
  code: b.ReferencedEntityNotFound,
62254
- severity: D.Error,
62252
+ severity: R.Error,
62255
62253
  message: `The entity with id '${r}' that isn't yet found in the project.${i}`,
62256
62254
  issue: null
62257
62255
  })
@@ -62274,7 +62272,7 @@ All built-in 'action-descriptor' entities that define 'condition' entity, are (I
62274
62272
  new w({
62275
62273
  id: `last-action--${b.InvalidActionDescriptorForCondition}`,
62276
62274
  code: b.InvalidActionDescriptorForCondition,
62277
- severity: D.Error,
62275
+ severity: R.Error,
62278
62276
  message: `The entity with id '${r}' is of type '${t.type}' entity. Only 'action-descriptor' entities can be implemented as conditions instances.${i}`,
62279
62277
  issue: null
62280
62278
  })
@@ -62284,7 +62282,7 @@ All built-in 'action-descriptor' entities that define 'condition' entity, are (I
62284
62282
  new w({
62285
62283
  id: `last-action--${b.InvalidActionDescriptorForOperation}`,
62286
62284
  code: b.InvalidActionDescriptorForOperation,
62287
- severity: D.Error,
62285
+ severity: R.Error,
62288
62286
  message: `The entity with id '${r}' is of type '${t.type}' entity but it isn't one of the allowed condition descriptors.${i}`,
62289
62287
  issue: null
62290
62288
  })
@@ -62292,7 +62290,7 @@ All built-in 'action-descriptor' entities that define 'condition' entity, are (I
62292
62290
  new w({
62293
62291
  id: `last-action--${b.InvalidActionDescriptorForCondition}`,
62294
62292
  code: b.InvalidActionDescriptorForCondition,
62295
- severity: D.Error,
62293
+ severity: R.Error,
62296
62294
  message: `The entity with id '${r}' is of type '${t.type}' entity. Only 'action-descriptor' entities can be implemented as conditions instances.${i}`,
62297
62295
  issue: null
62298
62296
  })
@@ -62300,7 +62298,7 @@ All built-in 'action-descriptor' entities that define 'condition' entity, are (I
62300
62298
  new w({
62301
62299
  id: `last-action--${b.ReferencedEntityNotFound}`,
62302
62300
  code: b.ReferencedEntityNotFound,
62303
- severity: D.Error,
62301
+ severity: R.Error,
62304
62302
  message: `The entity with id '${r}' that isn't yet found in the project.${i}`,
62305
62303
  issue: null
62306
62304
  })
@@ -62320,7 +62318,7 @@ All built-in 'action-descriptor' entities that define 'loop' entity, are (IDs):
62320
62318
  new w({
62321
62319
  id: `last-action--${b.InvalidActionDescriptorForLoop}`,
62322
62320
  code: b.InvalidActionDescriptorForLoop,
62323
- severity: D.Error,
62321
+ severity: R.Error,
62324
62322
  message: `The entity with id '${r}' is of type '${t.type}' entity. Only 'action-descriptor' entities can be implemented as loops instances.${i}`,
62325
62323
  issue: null
62326
62324
  })
@@ -62330,7 +62328,7 @@ All built-in 'action-descriptor' entities that define 'loop' entity, are (IDs):
62330
62328
  new w({
62331
62329
  id: `last-action--${b.InvalidActionDescriptorForOperation}`,
62332
62330
  code: b.InvalidActionDescriptorForOperation,
62333
- severity: D.Error,
62331
+ severity: R.Error,
62334
62332
  message: `The entity with id '${r}' is of type '${t.type}' entity but it isn't one of the allowed loop descriptors.${i}`,
62335
62333
  issue: null
62336
62334
  })
@@ -62338,7 +62336,7 @@ All built-in 'action-descriptor' entities that define 'loop' entity, are (IDs):
62338
62336
  new w({
62339
62337
  id: `last-action--${b.InvalidActionDescriptorForLoop}`,
62340
62338
  code: b.InvalidActionDescriptorForLoop,
62341
- severity: D.Error,
62339
+ severity: R.Error,
62342
62340
  message: `The entity with id '${r}' is of type '${t.type}' entity. Only 'action-descriptor' entities can be implemented as loops instances.${i}`,
62343
62341
  issue: null
62344
62342
  })
@@ -62346,7 +62344,7 @@ All built-in 'action-descriptor' entities that define 'loop' entity, are (IDs):
62346
62344
  new w({
62347
62345
  id: `last-action--${b.ReferencedEntityNotFound}`,
62348
62346
  code: b.ReferencedEntityNotFound,
62349
- severity: D.Error,
62347
+ severity: R.Error,
62350
62348
  message: `The entity with id '${r}' that isn't yet found in the project.${i}`,
62351
62349
  issue: null
62352
62350
  })
@@ -62384,7 +62382,7 @@ function So(r, a) {
62384
62382
  new w({
62385
62383
  id: `${a.id}--${b.InvalidBuiltInEntityReference}`,
62386
62384
  code: b.InvalidBuiltInEntityReference,
62387
- severity: D.Error,
62385
+ severity: R.Error,
62388
62386
  message: `The entity of type '${a.type}' with id '${a.id}' cannot update 'readsValue' to a built-in entity with id '${r.readsValue}'. Only user-created entities can be referenced.`,
62389
62387
  issue: null
62390
62388
  })
@@ -62394,7 +62392,7 @@ function So(r, a) {
62394
62392
  new w({
62395
62393
  id: `${a.id}--${b.ReferencedEntityNotFound}`,
62396
62394
  code: b.ReferencedEntityNotFound,
62397
- severity: D.Error,
62395
+ severity: R.Error,
62398
62396
  message: `The entity of type '${a.type}' with id '${a.id}' cannot update 'readsValue' to entity with id '${r.readsValue}' because the entity was not found in the project state.`,
62399
62397
  issue: null
62400
62398
  })
@@ -62406,7 +62404,7 @@ function So(r, a) {
62406
62404
  new w({
62407
62405
  id: `${a.id}--${b.InvalidBuiltInEntityReference}`,
62408
62406
  code: b.InvalidBuiltInEntityReference,
62409
- severity: D.Error,
62407
+ severity: R.Error,
62410
62408
  message: `The entity of type '${a.type}' with id '${a.id}' cannot update 'readsValue' to entity with id '${r.readsValue}' because the entity belongs to a built-in '${s.type}' entity with id '${s.id}' (${G(
62411
62409
  s,
62412
62410
  a.project
@@ -62431,7 +62429,7 @@ function So(r, a) {
62431
62429
  new w({
62432
62430
  id: `${a.id}--${$.ReaderWriterIncompatibleDataType}`,
62433
62431
  code: $.ReaderWriterIncompatibleDataType,
62434
- severity: D.Error,
62432
+ severity: R.Error,
62435
62433
  message: G7(
62436
62434
  a,
62437
62435
  t,
@@ -62452,7 +62450,7 @@ function jr(r) {
62452
62450
  new Ye({
62453
62451
  id: `${r.id}--${F.DisconnectedCallableEntity}`,
62454
62452
  code: F.DisconnectedCallableEntity,
62455
- severity: D.Warning,
62453
+ severity: R.Warning,
62456
62454
  message: `This '${r.type}' entity "${G(
62457
62455
  r,
62458
62456
  r.project
@@ -62487,7 +62485,7 @@ This '${r.type}' is blocked `;
62487
62485
  new Ye({
62488
62486
  id: `${r.id}--${$.UnreachableEntity}`,
62489
62487
  code: $.UnreachableEntity,
62490
- severity: D.Warning,
62488
+ severity: R.Warning,
62491
62489
  message: `${t}${i}`,
62492
62490
  issue: null,
62493
62491
  entity: r
@@ -62506,7 +62504,7 @@ function Iv(r) {
62506
62504
  id: `${r.id}--${F.VariableReadsValueAndInternalCall}`,
62507
62505
  message: `Variable "${G(r, r.project)}" with id "${r.id}" reads a value. A variable with internal calls can't read a value.`,
62508
62506
  issue: null,
62509
- severity: D.Error,
62507
+ severity: R.Error,
62510
62508
  code: F.VariableReadsValueAndInternalCall,
62511
62509
  entity: r
62512
62510
  });
@@ -62517,7 +62515,7 @@ function Iv(r) {
62517
62515
  id: `${r.id}--${F.VariableWritesValuesAndInternalCall}`,
62518
62516
  message: `Variable "${G(r, r.project)}" with id "${r.id}" writes values. A variable with internal calls can't write a value.`,
62519
62517
  issue: null,
62520
- severity: D.Error,
62518
+ severity: R.Error,
62521
62519
  code: F.VariableWritesValuesAndInternalCall,
62522
62520
  entity: r
62523
62521
  });
@@ -62528,7 +62526,7 @@ function Iv(r) {
62528
62526
  id: `${r.id}--${F.VariableHasInputsAndInternalCall}`,
62529
62527
  message: `Variable "${G(r, r.project)}" with id "${r.id}" has inputs. A variable with internal calls can't have inputs.`,
62530
62528
  issue: null,
62531
- severity: D.Error,
62529
+ severity: R.Error,
62532
62530
  code: F.VariableHasInputsAndInternalCall,
62533
62531
  entity: r
62534
62532
  });
@@ -62539,7 +62537,7 @@ function Iv(r) {
62539
62537
  id: `${r.id}--${F.VariableHasOutputsAndInternalCall}`,
62540
62538
  message: `Variable "${G(r, r.project)}" with id "${r.id}" has outputs. A variable with internal calls can't have outputs.`,
62541
62539
  issue: null,
62542
- severity: D.Error,
62540
+ severity: R.Error,
62543
62541
  code: F.VariableHasOutputsAndInternalCall,
62544
62542
  entity: r
62545
62543
  });
@@ -62550,7 +62548,7 @@ function Iv(r) {
62550
62548
  id: `${r.id}--${F.VariableIsCalledAndHasInternalCall}`,
62551
62549
  message: `Variable "${G(r, r.project)}" with id "${r.id}" is called by other entities. A variable with internal calls can't be called by other entities.`,
62552
62550
  issue: null,
62553
- severity: D.Error,
62551
+ severity: R.Error,
62554
62552
  code: F.VariableIsCalledAndHasInternalCall,
62555
62553
  entity: r
62556
62554
  });
@@ -62561,7 +62559,7 @@ function Iv(r) {
62561
62559
  id: `${r.id}--${F.VariableCallsOthersAndHasInternalCall}`,
62562
62560
  message: `Variable "${G(r, r.project)}" with id "${r.id}" calls other entities. A variable with internal calls can't call other entities.`,
62563
62561
  issue: null,
62564
- severity: D.Error,
62562
+ severity: R.Error,
62565
62563
  code: F.VariableCallsOthersAndHasInternalCall,
62566
62564
  entity: r
62567
62565
  });
@@ -62745,7 +62743,7 @@ The project currently has no global 'function-declaration' entities that can be
62745
62743
  new w({
62746
62744
  id: `${i.id}--${b.InvalidReference}`,
62747
62745
  code: b.InvalidReference,
62748
- severity: D.Error,
62746
+ severity: R.Error,
62749
62747
  message: `Entity of type "${n.FunctionCall}" with id "${i.id}", has an invalid reference at the 'declaration' property. The 'declaration' property must be a valid reference to an 'function-declaration' entity.
62750
62748
  References can either be an ID string or an object with exacly four properties: 'id', 'entityId', 'entityType', 'type'.${d}`,
62751
62749
  issue: null
@@ -62763,7 +62761,7 @@ References can either be an ID string or an object with exacly four properties:
62763
62761
  new w({
62764
62762
  id: `${this.id}--${b.InvalidParentUpdate}`,
62765
62763
  code: b.InvalidParentUpdate,
62766
- severity: D.Error,
62764
+ severity: R.Error,
62767
62765
  message: `Entity of type '${this.type}' with id '${this.id}' cannot have the 'parent' property updated. The 'parent' on a callable entity, is its scope. It scope is auto-calculated implicitly by the its caller.
62768
62766
  If an entity is called by another, they must be in the same scope, which means they have the same parent.
62769
62767
  You shouldn't have to manually update a 'parent' property. The equivalent result is to change its callers, the value writters of its inputs, or the value readers of its outputs.`,
@@ -62915,7 +62913,7 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
62915
62913
  captureVersion() {
62916
62914
  var t;
62917
62915
  const e = ((t = this.knownVersions) == null ? void 0 : t.get(this.version)) || new ke(this, this.project);
62918
- return e.metaSync(this.toMeta(), null), this.knownVersions = this.knownVersions ? this.knownVersions.set(this.version, e) : /* @__PURE__ */ new Map([[this.version, e]]), e.inputs = this.inputs, e.outputs = this.outputs, e.error = this.error, e.successCalls = this.successCalls, e.errorCalls = this.errorCalls, e.process = this.process, e.declaration = this.declaration, e.calledBySuccess = this.calledBySuccess, e.calledByError = this.calledByError, e.calledByEntry = this.calledByEntry, e.parent = this.parent, this;
62916
+ return e.metaSync(this.toMeta(), null), this.knownVersions = this.knownVersions ? this.knownVersions.set(this.version, e) : /* @__PURE__ */ new Map([[this.version, e]]), e.inputs = [...this.inputs], e.outputs = [...this.outputs], e.error = this.error, e.successCalls = [...this.successCalls], e.errorCalls = [...this.errorCalls], e.process = this.process, e.declaration = this.declaration, e.calledBySuccess = [...this.calledBySuccess], e.calledByError = [...this.calledByError], e.calledByEntry = [...this.calledByEntry], e.parent = this.parent, this;
62919
62917
  }
62920
62918
  // Traverses upstream entities and captures their versions as well
62921
62919
  recursiveCaptureUpstreamVersions(e) {
@@ -63830,7 +63828,7 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
63830
63828
  "clone-entity"
63831
63829
  )
63832
63830
  ), t = null, i = null, s = !0) {
63833
- var R, O;
63831
+ var D, O;
63834
63832
  let l = yt(t, this);
63835
63833
  const o = this.toJSON(), d = i || y.UUID.uuid();
63836
63834
  o.inputs = [];
@@ -63841,7 +63839,7 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
63841
63839
  l
63842
63840
  );
63843
63841
  t ? c.setParent(t, null) : c.setParent(this.parent, null), s && c.subscribe(), c.initChildren(e), e == null || e.add(c, I.Added);
63844
- const T = (R = this.inputs) == null ? void 0 : R.map(
63842
+ const T = (D = this.inputs) == null ? void 0 : D.map(
63845
63843
  (P, B) => P.clone(
63846
63844
  e,
63847
63845
  c,
@@ -63951,8 +63949,8 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
63951
63949
  )
63952
63950
  );
63953
63951
  this.inputs.sort((c, T) => c.index - T.index), o.forEach((c) => {
63954
- this.inputs.forEach((R) => {
63955
- R.index >= c.index && R.metaSync({ index: R.index + 1 }, e);
63952
+ this.inputs.forEach((D) => {
63953
+ D.index >= c.index && D.metaSync({ index: D.index + 1 }, e);
63956
63954
  });
63957
63955
  const T = {
63958
63956
  id: y.UUID.uuid(),
@@ -64022,7 +64020,7 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
64022
64020
  this.outputs.forEach((B) => {
64023
64021
  B.index >= T.index && B.index++;
64024
64022
  });
64025
- const R = o.includes(T.index) ? this.outputs.length - 1 + E : T.index, O = {
64023
+ const D = o.includes(T.index) ? this.outputs.length - 1 + E : T.index, O = {
64026
64024
  id: y.UUID.uuid(),
64027
64025
  version: y.UUID.uuid(),
64028
64026
  createdAt: (e == null ? void 0 : e.timestamp) || v().toISOString(),
@@ -64033,7 +64031,7 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
64033
64031
  declaration: T.toJSON(),
64034
64032
  defaultValue: null,
64035
64033
  writesValues: [],
64036
- index: R,
64034
+ index: D,
64037
64035
  parent: this.toReference()
64038
64036
  }, P = V(
64039
64037
  O,
@@ -64338,11 +64336,11 @@ function k7(r, a) {
64338
64336
  case g["built-in-base-entity"].BUILT_IN_PERSISTED_ENTITY_ENTITY.id: {
64339
64337
  let f = r.project.entities.filter(
64340
64338
  (E) => E.implements.find(
64341
- (R) => R.id === g["built-in-base-entity"].BUILT_IN_RELATIONAL_DATABASE_ENTITY.id
64339
+ (D) => D.id === g["built-in-base-entity"].BUILT_IN_RELATIONAL_DATABASE_ENTITY.id
64342
64340
  )
64343
- ).find((E) => !!E.properties.find((R) => {
64341
+ ).find((E) => !!E.properties.find((D) => {
64344
64342
  var O;
64345
- return R.implements && R.implements.id === g["built-in-base-entity"].BUILT_IN_RELATIONAL_DATABASE_ENTITY.properties.default.id && ((O = R.getDefaultValue()) == null ? void 0 : O.value) === !0;
64343
+ return D.implements && D.implements.id === g["built-in-base-entity"].BUILT_IN_RELATIONAL_DATABASE_ENTITY.properties.default.id && ((O = D.getDefaultValue()) == null ? void 0 : O.value) === !0;
64346
64344
  }));
64347
64345
  if (!f) {
64348
64346
  f = r.project.getBuiltIn(
@@ -64351,13 +64349,13 @@ function k7(r, a) {
64351
64349
  "Relational database",
64352
64350
  a
64353
64351
  );
64354
- const R = f.properties.find(
64352
+ const D = f.properties.find(
64355
64353
  (O) => {
64356
64354
  var P;
64357
64355
  return ((P = O.implements) == null ? void 0 : P.id) === g["built-in-base-entity"].BUILT_IN_RELATIONAL_DATABASE_ENTITY.properties.default.id;
64358
64356
  }
64359
64357
  );
64360
- (d = R == null ? void 0 : R.defaultValue) == null || d.metaSync(
64358
+ (d = D == null ? void 0 : D.defaultValue) == null || d.metaSync(
64361
64359
  {
64362
64360
  value: !0
64363
64361
  },
@@ -64380,11 +64378,11 @@ function k7(r, a) {
64380
64378
  valueAsTypeSingle: f,
64381
64379
  valueAsTypeList: null,
64382
64380
  parent: c == null ? void 0 : c.toReference()
64383
- }, R = V(
64381
+ }, D = V(
64384
64382
  E,
64385
64383
  r.project
64386
64384
  );
64387
- R.hydrateAncestors(), R.setParent(c, a), R.addSelfToProject(a), R.initChildren(a), a == null || a.add(R, I.Added), t.push(R);
64385
+ D.hydrateAncestors(), D.setParent(c, a), D.addSelfToProject(a), D.initChildren(a), a == null || a.add(D, I.Added), t.push(D);
64388
64386
  return;
64389
64387
  } else
64390
64388
  T && T.setValueAsTypeSingle(f, a);
@@ -64472,7 +64470,7 @@ function Z7(r, a, e, t = Vt.OrDataTypeGroup) {
64472
64470
  };
64473
64471
  }
64474
64472
  function Rv(r, a, e, t, i) {
64475
- var u, f, c, T, E, R, O, P;
64473
+ var u, f, c, T, E, D, O, P;
64476
64474
  const s = [], l = [], o = [], d = [];
64477
64475
  switch (typeof r) {
64478
64476
  case "string":
@@ -64721,7 +64719,7 @@ function Rv(r, a, e, t, i) {
64721
64719
  t,
64722
64720
  i
64723
64721
  );
64724
- a.setEntity((E = C.changeSet) == null ? void 0 : E.self), s.push(...(R = C.changeSet) == null ? void 0 : R.updated), l.push(...(O = C.changeSet) == null ? void 0 : O.added), o.push(...(P = C.changeSet) == null ? void 0 : P.removed);
64722
+ a.setEntity((E = C.changeSet) == null ? void 0 : E.self), s.push(...(D = C.changeSet) == null ? void 0 : D.updated), l.push(...(O = C.changeSet) == null ? void 0 : O.added), o.push(...(P = C.changeSet) == null ? void 0 : P.removed);
64725
64723
  break;
64726
64724
  }
64727
64725
  }
@@ -64766,11 +64764,11 @@ function Al(r, a, e, t, i) {
64766
64764
  x: 0,
64767
64765
  y: 0,
64768
64766
  parent: a.toReference()
64769
- }, R = V(
64767
+ }, D = V(
64770
64768
  E,
64771
64769
  a
64772
64770
  );
64773
- return R.setParent(a, t), R.initChildren(t), t == null || t.add(R, I.Added), R.addSelfToProject(t), l.push(R), u.forEach((O, P) => {
64771
+ return D.setParent(a, t), D.initChildren(t), t == null || t.add(D, I.Added), D.addSelfToProject(t), l.push(D), u.forEach((O, P) => {
64774
64772
  const j = {
64775
64773
  id: y.UUID.uuid(),
64776
64774
  version: y.UUID.uuid(),
@@ -64792,12 +64790,12 @@ function Al(r, a, e, t, i) {
64792
64790
  hidden: !1,
64793
64791
  private: !1,
64794
64792
  required: !0,
64795
- parent: R.toReference()
64793
+ parent: D.toReference()
64796
64794
  }, C = V(
64797
64795
  j,
64798
64796
  a
64799
64797
  );
64800
- C.setParent(R, t), C.initChildren(t), t == null || t.add(C, I.Added), C.addSelfToProject(t), l.push(C);
64798
+ C.setParent(D, t), C.initChildren(t), t == null || t.add(C, I.Added), C.addSelfToProject(t), l.push(C);
64801
64799
  const L = r[O], J = {
64802
64800
  id: y.UUID.uuid(),
64803
64801
  version: y.UUID.uuid(),
@@ -64834,7 +64832,7 @@ function Al(r, a, e, t, i) {
64834
64832
  id: y.UUID.uuid()
64835
64833
  },
64836
64834
  t,
64837
- i || R
64835
+ i || D
64838
64836
  );
64839
64837
  s.push(...oe.updated), l.push(...oe.added), o.push(...oe.removed);
64840
64838
  }), {
@@ -64846,7 +64844,7 @@ function Al(r, a, e, t, i) {
64846
64844
  affected: p(
64847
64845
  d
64848
64846
  ),
64849
- self: R
64847
+ self: D
64850
64848
  }
64851
64849
  };
64852
64850
  }
@@ -64865,7 +64863,7 @@ function mr(r, a, e, t) {
64865
64863
  id: s.id + "--" + l.id + "--" + t,
64866
64864
  message: `Entity of type ${s.type} named "${s.name}" with id "${s.id}" overrides a base ${l.type} ${l.name} with id "${l.id}" that has the same name`,
64867
64865
  issue: null,
64868
- severity: D.Error,
64866
+ severity: R.Error,
64869
64867
  code: t,
64870
64868
  entity: s,
64871
64869
  firstRelationship: l
@@ -64877,7 +64875,7 @@ function mr(r, a, e, t) {
64877
64875
  id: s.id + "--" + o.id + "--" + e,
64878
64876
  message: `Entity of type ${s.type} named "${s.name}" with id "${s.id}" overrides a base ${o.type} ${o.name} with id "${o.id}" that implements the same base descriptor`,
64879
64877
  issue: null,
64880
- severity: D.Error,
64878
+ severity: R.Error,
64881
64879
  code: e,
64882
64880
  entity: s,
64883
64881
  firstRelationship: o
@@ -64895,7 +64893,7 @@ function mr(r, a, e, t) {
64895
64893
  id: l.id + "--" + s.id + "--" + t,
64896
64894
  message: `Entity of type ${l.type} named "${l.name}" with id "${l.id}" overrides a base entity ${s.name} with id "${s.id}" that has the same name`,
64897
64895
  issue: null,
64898
- severity: D.Error,
64896
+ severity: R.Error,
64899
64897
  code: t,
64900
64898
  entity: l,
64901
64899
  firstRelationship: s
@@ -64907,7 +64905,7 @@ function mr(r, a, e, t) {
64907
64905
  id: o.id + "--" + s.id + "--" + e,
64908
64906
  message: `Entity of type ${o.type} named "${o.name}" with id "${o.id}" overrides a base entity ${s.name} with id "${s.id}" that implements the same base ${(d = o == null ? void 0 : o.implements) == null ? void 0 : d.type}`,
64909
64907
  issue: null,
64910
- severity: D.Error,
64908
+ severity: R.Error,
64911
64909
  code: e,
64912
64910
  entity: o,
64913
64911
  firstRelationship: s
@@ -64998,7 +64996,7 @@ function q7(r, a) {
64998
64996
  id: r.id + "--string-value-must-not-have-spaces",
64999
64997
  message: `Entity of type ${r.type} with id "${r.id}" has an invalid value "${a}". The value cannot contain spaces.`,
65000
64998
  issue: null,
65001
- severity: D.Error,
64999
+ severity: R.Error,
65002
65000
  code: "string-value-must-not-have-spaces",
65003
65001
  entity: r
65004
65002
  });
@@ -65026,7 +65024,7 @@ function W7(r, a) {
65026
65024
  id: r.id + "--string-value-must-not-have-spaces",
65027
65025
  message: `Entity of type ${r.type} with id "${r.id}" has an invalid value "${a}". The value cannot contain spaces or dashes.`,
65028
65026
  issue: null,
65029
- severity: D.Error,
65027
+ severity: R.Error,
65030
65028
  code: "string-value-must-not-have-spaces",
65031
65029
  entity: r
65032
65030
  });
@@ -65037,7 +65035,7 @@ function W7(r, a) {
65037
65035
  id: r.id + "--string-value-must-not-have-dashes",
65038
65036
  message: `Entity of type ${r.type} with id "${r.id}" has an invalid value "${a}". The value cannot contain spaces or dashes.`,
65039
65037
  issue: null,
65040
- severity: D.Error,
65038
+ severity: R.Error,
65041
65039
  code: "string-value-must-not-have-dashes",
65042
65040
  entity: r
65043
65041
  });
@@ -65566,14 +65564,14 @@ function bl(r, a = {}, e = {
65566
65564
  upstream: {},
65567
65565
  downstream: {}
65568
65566
  };
65569
- const t = r, i = r, s = r, l = r, o = r, d = r, u = r, f = r, c = r, T = r, E = r, R = r, O = r, P = [
65567
+ const t = r, i = r, s = r, l = r, o = r, d = r, u = r, f = r, c = r, T = r, E = r, D = r, O = r, P = [
65570
65568
  ...O.readsValue ? [O.readsValue] : [],
65571
65569
  ...O.declaration ? [O.declaration] : [],
65572
- ...(R.calledByEntry || []).flatMap((L) => L),
65573
- ...(R.calledBySuccess || []).flatMap(
65570
+ ...(D.calledByEntry || []).flatMap((L) => L),
65571
+ ...(D.calledBySuccess || []).flatMap(
65574
65572
  (L) => L
65575
65573
  ),
65576
- ...(R.calledByError || []).flatMap((L) => L),
65574
+ ...(D.calledByError || []).flatMap((L) => L),
65577
65575
  ...T.parent ? [T.parent] : []
65578
65576
  ];
65579
65577
  Array.isArray(s.implements) ? P.push(
@@ -65596,11 +65594,11 @@ function bl(r, a = {}, e = {
65596
65594
  (L) => L
65597
65595
  ),
65598
65596
  ...O.writesValues || [],
65599
- ...R.dataType ? [R.dataType] : [],
65597
+ ...D.dataType ? [D.dataType] : [],
65600
65598
  ...d.body ? [d.body] : [],
65601
- ...R.defaultValue ? [R.defaultValue] : [],
65602
- ...(R.successCalls || []).flatMap((L) => L),
65603
- ...(R.errorCalls || []).flatMap((L) => L),
65599
+ ...D.defaultValue ? [D.defaultValue] : [],
65600
+ ...(D.successCalls || []).flatMap((L) => L),
65601
+ ...(D.errorCalls || []).flatMap((L) => L),
65604
65602
  ...(s.properties || []).flatMap((L) => L),
65605
65603
  ...(s.methods || []).flatMap((L) => L),
65606
65604
  ...(s.abstractMethods || []).flatMap((L) => L),
@@ -67203,7 +67201,7 @@ function HJ(r, a) {
67203
67201
  id: r.id + "--" + F.ImplementingNonAbstractEntity,
67204
67202
  message: `Entity "${r.name}" with id "${r.id}" is implementing a non-abstract entity "${a.name}" with id "${a.id}"`,
67205
67203
  issue: null,
67206
- severity: D.Error,
67204
+ severity: R.Error,
67207
67205
  code: F.ImplementingNonAbstractEntity,
67208
67206
  entity: r
67209
67207
  });
@@ -67226,7 +67224,7 @@ function HJ(r, a) {
67226
67224
  id: r.id + "--" + F.MissingPropertyImplementation + "--" + f.id,
67227
67225
  message: `Property "${f.name}" with id "${f.id}" of entity "${a.name}" with id "${a.id}" is not implemented when entity "${r.name}" with id "${r.id}" implements it`,
67228
67226
  issue: null,
67229
- severity: D.Error,
67227
+ severity: R.Error,
67230
67228
  code: F.MissingPropertyImplementation,
67231
67229
  entity: r
67232
67230
  });
@@ -67249,7 +67247,7 @@ function HJ(r, a) {
67249
67247
  id: r.id + "--" + F.MissingMethodImplementation + "--" + f.id,
67250
67248
  message: `Method "${f.name}" with id "${f.id}" of entity "${a.name}" with id "${a.id}" is not implemented when entity "${r.name}" with id "${r.id}" implements it`,
67251
67249
  issue: null,
67252
- severity: D.Error,
67250
+ severity: R.Error,
67253
67251
  code: F.MissingMethodImplementation,
67254
67252
  entity: r
67255
67253
  });
@@ -67266,7 +67264,7 @@ function HJ(r, a) {
67266
67264
  id: r.id + "--" + $.PropertyOverwritesOtherSiblingWithSameName + "--" + f.id,
67267
67265
  message: `Property "${f.name}" with id "${f.id}" of entity "${r.name}" with id "${r.id}" overwrites the property with the same name from the base entity "${a.name}" with id "${a.id}"`,
67268
67266
  issue: null,
67269
- severity: D.Error,
67267
+ severity: R.Error,
67270
67268
  code: $.PropertyOverwritesOtherSiblingWithSameName,
67271
67269
  entity: r
67272
67270
  });
@@ -67283,7 +67281,7 @@ function HJ(r, a) {
67283
67281
  id: r.id + "--" + $.MethodOverwritesOtherSiblingWithSameName + "--" + f.id,
67284
67282
  message: `Method "${f.name}" with id "${f.id}" of entity "${r.name}" with id "${r.id}" overwrites the method with the same name from the base entity "${a.name}" with id "${a.id}"`,
67285
67283
  issue: null,
67286
- severity: D.Error,
67284
+ severity: R.Error,
67287
67285
  code: $.MethodOverwritesOtherSiblingWithSameName,
67288
67286
  entity: r
67289
67287
  });
@@ -67297,7 +67295,7 @@ function KJ(r, a) {
67297
67295
  id: r.id + "--" + a.id + "--" + F.NonAbstractExtendingAbstractEntity,
67298
67296
  message: `Entity "${r.name}" with id "${r.id}" is not-abstract but is extending an abstract entity "${a.name}" with id "${a.id}"`,
67299
67297
  issue: null,
67300
- severity: D.Error,
67298
+ severity: R.Error,
67301
67299
  code: F.NonAbstractExtendingAbstractEntity,
67302
67300
  entity: r,
67303
67301
  firstRelationship: a
@@ -67309,7 +67307,7 @@ function KJ(r, a) {
67309
67307
  id: r.id + "--" + a.id + "--" + F.AbstractExtendingNonAbstractEntity,
67310
67308
  message: `Entity "${r.name}" with id "${r.id}" is abstract but is extending an non-abstract entity "${a.name}" with id "${a.id}"`,
67311
67309
  issue: null,
67312
- severity: D.Error,
67310
+ severity: R.Error,
67313
67311
  code: F.AbstractExtendingNonAbstractEntity,
67314
67312
  entity: r,
67315
67313
  firstRelationship: a
@@ -67331,7 +67329,7 @@ function KJ(r, a) {
67331
67329
  id: r.id + "--" + $.PropertyOverwritesOtherSiblingWithSameName,
67332
67330
  message: `Property "${s.name}" with id "${s.id}" of entity "${r.name}" with id "${r.id}" overwrites the property with the same name from the extended entity "${a.name}" with id "${a.id}"`,
67333
67331
  issue: null,
67334
- severity: D.Error,
67332
+ severity: R.Error,
67335
67333
  code: $.PropertyOverwritesOtherSiblingWithSameName,
67336
67334
  entity: r
67337
67335
  });
@@ -67353,7 +67351,7 @@ function KJ(r, a) {
67353
67351
  id: r.id + "--" + $.MethodOverwritesOtherSiblingWithSameName,
67354
67352
  message: `Method "${s.name}" with id "${s.id}" of entity "${r.name}" with id "${r.id}" overwrites the method with the same name from the extended entity "${a.name}" with id "${a.id}"`,
67355
67353
  issue: null,
67356
- severity: D.Error,
67354
+ severity: R.Error,
67357
67355
  code: $.MethodOverwritesOtherSiblingWithSameName,
67358
67356
  entity: r
67359
67357
  });
@@ -67367,7 +67365,7 @@ function SJ(r) {
67367
67365
  id: r.id + "--" + F.NoProperties,
67368
67366
  message: "No properties implemented",
67369
67367
  issue: null,
67370
- severity: D.Warning,
67368
+ severity: R.Warning,
67371
67369
  code: F.NoProperties,
67372
67370
  entity: r
67373
67371
  });
@@ -67385,7 +67383,7 @@ function XJ(r) {
67385
67383
  id: r.id + "--" + F.AbstractEntityWithNonAbstractMethods,
67386
67384
  message: `Entity "${r.name}" with id "${r.id}" is marked as abstract but has non-abstract methods`,
67387
67385
  issue: null,
67388
- severity: D.Error,
67386
+ severity: R.Error,
67389
67387
  code: F.AbstractEntityWithNonAbstractMethods,
67390
67388
  entity: r
67391
67389
  });
@@ -67396,7 +67394,7 @@ function XJ(r) {
67396
67394
  id: r.id + "--" + F.AbstractEntityWithNonAbstractProperties,
67397
67395
  message: `Entity "${r.name}" with id "${r.id}" is marked as abstract but has non-abstract properties`,
67398
67396
  issue: null,
67399
- severity: D.Error,
67397
+ severity: R.Error,
67400
67398
  code: F.AbstractEntityWithNonAbstractProperties,
67401
67399
  entity: r
67402
67400
  });
@@ -67406,7 +67404,7 @@ function XJ(r) {
67406
67404
  id: r.id + "--" + F.StaticEntityWithNonStaticProperties + "--" + t.id,
67407
67405
  message: `Property "${t.name}" with id "${t.id}" of entity "${r.name}" with id "${r.id}" is not marked as abstract but the entity is marked as abstract`,
67408
67406
  issue: null,
67409
- severity: D.Error,
67407
+ severity: R.Error,
67410
67408
  code: F.StaticEntityWithNonStaticProperties,
67411
67409
  entity: r
67412
67410
  });
@@ -67420,7 +67418,7 @@ function XJ(r) {
67420
67418
  id: r.id + "--" + F.AbstractPropertyInNonAbstractEntity,
67421
67419
  message: `Entity "${r.name}" with id "${r.id}" is not marked as abstract but has abstract methods`,
67422
67420
  issue: null,
67423
- severity: D.Error,
67421
+ severity: R.Error,
67424
67422
  code: F.AbstractPropertyInNonAbstractEntity,
67425
67423
  entity: r
67426
67424
  });
@@ -67432,7 +67430,7 @@ function XJ(r) {
67432
67430
  id: r.id + "--" + F.AbstractPropertyInNonAbstractEntity + "--" + e.id,
67433
67431
  message: `Property "${e.name}" with id "${e.id}" of entity "${r.name}" with id "${r.id}" is marked as abstract but the entity is not marked as abstract`,
67434
67432
  issue: null,
67435
- severity: D.Error,
67433
+ severity: R.Error,
67436
67434
  code: F.AbstractPropertyInNonAbstractEntity,
67437
67435
  entity: r,
67438
67436
  firstRelationship: e
@@ -67447,7 +67445,7 @@ function XJ(r) {
67447
67445
  id: r.id + "--" + F.NonStaticPropertyInStaticEntity + "--" + e.id,
67448
67446
  message: `Property "${e.name}" with id "${e.id}" of entity "${r.name}" with id "${r.id}" is not marked as static but the entity is marked as static`,
67449
67447
  issue: null,
67450
- severity: D.Error,
67448
+ severity: R.Error,
67451
67449
  code: F.NonStaticPropertyInStaticEntity,
67452
67450
  entity: r,
67453
67451
  firstRelationship: e
@@ -67463,7 +67461,7 @@ function QJ(r, a) {
67463
67461
  id: r.id + "--" + a.id + "--" + F.ImplementingNonAbstractEntity,
67464
67462
  message: `Entity "${r.name}" with id "${r.id}" is implementing a non-abstract built-in entity "${a.name}" with id "${a.id}"`,
67465
67463
  issue: null,
67466
- severity: D.Error,
67464
+ severity: R.Error,
67467
67465
  code: F.ImplementingNonAbstractEntity,
67468
67466
  entity: r,
67469
67467
  firstRelationship: a
@@ -67478,7 +67476,7 @@ function QJ(r, a) {
67478
67476
  id: r.id + "--" + a.id + "--" + F.AbstractEntityImplements,
67479
67477
  message: `Entity "${r.name}" with id "${r.id}" is marked as abstract and cannot implement built-in entity "${a.name}" with id "${a.id}"`,
67480
67478
  issue: null,
67481
- severity: D.Error,
67479
+ severity: R.Error,
67482
67480
  code: F.AbstractEntityImplements,
67483
67481
  entity: r,
67484
67482
  firstRelationship: a
@@ -67490,7 +67488,7 @@ function QJ(r, a) {
67490
67488
  id: r.id + "--" + a.id + "--" + F.StaticImplementingNonStaticEntity,
67491
67489
  message: `Entity "${r.name}" with id "${r.id}" is marked as static and cannot implement non-static built-in entity "${a.name}" with id "${a.id}"`,
67492
67490
  issue: null,
67493
- severity: D.Error,
67491
+ severity: R.Error,
67494
67492
  code: F.StaticImplementingNonStaticEntity,
67495
67493
  entity: r,
67496
67494
  firstRelationship: a
@@ -67502,7 +67500,7 @@ function QJ(r, a) {
67502
67500
  id: r.id + "--" + a.id + "--" + F.NonStaticImplementingStaticEntity,
67503
67501
  message: `Entity "${r.name}" with id "${r.id}" is not marked as static and cannot implement static built-in entity "${a.name}" with id "${a.id}"`,
67504
67502
  issue: null,
67505
- severity: D.Error,
67503
+ severity: R.Error,
67506
67504
  code: F.NonStaticImplementingStaticEntity,
67507
67505
  entity: r,
67508
67506
  firstRelationship: a
@@ -67520,7 +67518,7 @@ function QJ(r, a) {
67520
67518
  id: r.id + "--" + d.id + "--" + l.id + "--" + F.ImplementsIncompatibleEntities,
67521
67519
  message: `Entity "${r.name}" with id "${r.id}" is implementing built-in entity "${d.name}" with id "${d.id}" but also implements entity "${l.name}" with id "${l.id}" which is incompatible`,
67522
67520
  issue: null,
67523
- severity: D.Error,
67521
+ severity: R.Error,
67524
67522
  code: F.ImplementsIncompatibleEntities,
67525
67523
  entity: r,
67526
67524
  firstRelationship: d,
@@ -67540,7 +67538,7 @@ function QJ(r, a) {
67540
67538
  id: r.id + "--" + T.id + "--" + f.id + "--" + F.ImplementsIncompatibleEntities,
67541
67539
  message: `Entity "${r.name}" with id "${r.id}" is implementing built-in entity "${T.name}" with id "${T.id}" but also implements entity "${f.name}" with id "${f.id}" which is incompatible`,
67542
67540
  issue: null,
67543
- severity: D.Error,
67541
+ severity: R.Error,
67544
67542
  code: F.ImplementsIncompatibleEntities,
67545
67543
  entity: r,
67546
67544
  firstRelationship: T,
@@ -67575,7 +67573,7 @@ function QJ(r, a) {
67575
67573
  id: r.id + "--" + a.id + "--" + l.id + "--" + F.ExtendsIncompatibleEntities,
67576
67574
  message: `Entity "${r.name}" with id "${r.id}" is implementing built-in entity "${a.name}" with id "${a.id}" but also extends entity "${l.name}" with id "${l.id}" which is incompatible`,
67577
67575
  issue: null,
67578
- severity: D.Error,
67576
+ severity: R.Error,
67579
67577
  code: F.ExtendsIncompatibleEntities,
67580
67578
  entity: r,
67581
67579
  firstRelationship: a,
@@ -67592,7 +67590,7 @@ function eq(r, a, e = !1) {
67592
67590
  id: r.id + "--" + a.id + "--" + F.NonAbstractExtendingAbstractEntity,
67593
67591
  message: `Entity "${r.name}" with id "${r.id}" is not-abstract but is extending an abstract entity "${a.name}" with id "${a.id}"`,
67594
67592
  issue: null,
67595
- severity: D.Error,
67593
+ severity: R.Error,
67596
67594
  code: F.NonAbstractExtendingAbstractEntity,
67597
67595
  entity: r,
67598
67596
  firstRelationship: a
@@ -67604,7 +67602,7 @@ function eq(r, a, e = !1) {
67604
67602
  id: r.id + "--" + a.id + "--" + F.AbstractExtendingNonAbstractEntity,
67605
67603
  message: `Entity "${r.name}" with id "${r.id}" is abstract but is extending an non-abstract entity "${a.name}" with id "${a.id}"`,
67606
67604
  issue: null,
67607
- severity: D.Error,
67605
+ severity: R.Error,
67608
67606
  code: F.AbstractExtendingNonAbstractEntity,
67609
67607
  entity: r,
67610
67608
  firstRelationship: a
@@ -67616,7 +67614,7 @@ function eq(r, a, e = !1) {
67616
67614
  id: r.id + "--" + a.id + "--" + F.NonStaticExtendingStaticEntity,
67617
67615
  message: `Entity "${r.name}" with id "${r.id}" is not static but is extending a static entity "${a.name}" with id "${a.id}"`,
67618
67616
  issue: null,
67619
- severity: D.Error,
67617
+ severity: R.Error,
67620
67618
  code: F.NonStaticExtendingStaticEntity,
67621
67619
  entity: r,
67622
67620
  firstRelationship: a
@@ -67628,7 +67626,7 @@ function eq(r, a, e = !1) {
67628
67626
  id: r.id + "--" + a.id + "--" + F.StaticExtendingNonStaticEntity,
67629
67627
  message: `Entity "${r.name}" with id "${r.id}" is static but is extending an non-static entity "${a.name}" with id "${a.id}"`,
67630
67628
  issue: null,
67631
- severity: D.Error,
67629
+ severity: R.Error,
67632
67630
  code: F.StaticExtendingNonStaticEntity,
67633
67631
  entity: r,
67634
67632
  firstRelationship: a
@@ -67640,7 +67638,7 @@ function eq(r, a, e = !1) {
67640
67638
  id: r.id + "--" + a.id + "--" + F.ExtendingNonInteractiveEntity,
67641
67639
  message: `Entity "${r.name}" with id "${r.id}" is extending an non-interactive entity "${a.name}" with id "${a.id}"`,
67642
67640
  issue: null,
67643
- severity: D.Error,
67641
+ severity: R.Error,
67644
67642
  code: F.ExtendingNonInteractiveEntity,
67645
67643
  entity: r,
67646
67644
  firstRelationship: a
@@ -67661,7 +67659,7 @@ function eq(r, a, e = !1) {
67661
67659
  id: r.id + "--" + T.id + "--" + f.id + "--" + F.ExtendsIncompatibleEntities,
67662
67660
  message: `Entity "${r.name}" with id "${r.id}" is extending built-in entity "${T.name}" with id "${T.id}" but also extends entity "${f.name}" with id "${f.id}" which is incompatible`,
67663
67661
  issue: null,
67664
- severity: D.Error,
67662
+ severity: R.Error,
67665
67663
  code: F.ExtendsIncompatibleEntities,
67666
67664
  entity: r,
67667
67665
  firstRelationship: T,
@@ -67681,7 +67679,7 @@ function eq(r, a, e = !1) {
67681
67679
  id: r.id + "--" + C.id + "--" + B.id + "--" + F.ImplementsIncompatibleEntities,
67682
67680
  message: `Entity "${r.name}" with id "${r.id}" is extending built-in entity "${C.name}" with id "${C.id}" but also extends or implements entity "${B.name}" with id "${B.id}" which is incompatible`,
67683
67681
  issue: null,
67684
- severity: D.Error,
67682
+ severity: R.Error,
67685
67683
  code: F.ImplementsIncompatibleEntities,
67686
67684
  entity: r,
67687
67685
  firstRelationship: C,
@@ -67703,8 +67701,8 @@ function eq(r, a, e = !1) {
67703
67701
  }
67704
67702
  )
67705
67703
  ));
67706
- let R = [...f.methods];
67707
- T && (R = R.filter(
67704
+ let D = [...f.methods];
67705
+ T && (D = D.filter(
67708
67706
  (B) => !a.methods.find(
67709
67707
  (j) => {
67710
67708
  var C;
@@ -67721,7 +67719,7 @@ function eq(r, a, e = !1) {
67721
67719
  t.push(...O.errors);
67722
67720
  const P = mr(
67723
67721
  a.abstractMethods,
67724
- R,
67722
+ D,
67725
67723
  $.MethodOverwritesOtherExtendedEntitysMethodWithSameImplementation,
67726
67724
  $.MethodOverwritesOtherExtendedEntitysMethodWithSameName
67727
67725
  );
@@ -67738,7 +67736,7 @@ function eq(r, a, e = !1) {
67738
67736
  id: r.id + "--" + T.id + "--" + f.id + "--" + F.ImplementsIncompatibleEntities,
67739
67737
  message: `Entity "${r.name}" with id "${r.id}" is implementing built-in entity "${T.name}" with id "${T.id}" but also implements entity "${f.name}" with id "${f.id}" which is incompatible`,
67740
67738
  issue: null,
67741
- severity: D.Error,
67739
+ severity: R.Error,
67742
67740
  code: F.ImplementsIncompatibleEntities,
67743
67741
  entity: r,
67744
67742
  firstRelationship: T,
@@ -67748,21 +67746,21 @@ function eq(r, a, e = !1) {
67748
67746
  }
67749
67747
  });
67750
67748
  } else {
67751
- zt(f).forEach((R) => {
67749
+ zt(f).forEach((D) => {
67752
67750
  const O = i.filter(
67753
- (P) => P.id !== R.id
67751
+ (P) => P.id !== D.id
67754
67752
  );
67755
67753
  O.length && O.forEach((P) => {
67756
- if (P.id !== R.id) {
67754
+ if (P.id !== D.id) {
67757
67755
  const B = new Ye({
67758
- id: r.id + "--" + P.id + "--" + R.id + "--" + F.ImplementsIncompatibleEntities,
67759
- message: `Entity "${r.name}" with id "${r.id}" is implementing built-in entity "${P.name}" with id "${P.id}" but also implements entity "${R.name}" with id "${R.id}" which is incompatible`,
67756
+ id: r.id + "--" + P.id + "--" + D.id + "--" + F.ImplementsIncompatibleEntities,
67757
+ message: `Entity "${r.name}" with id "${r.id}" is implementing built-in entity "${P.name}" with id "${P.id}" but also implements entity "${D.name}" with id "${D.id}" which is incompatible`,
67760
67758
  issue: null,
67761
- severity: D.Error,
67759
+ severity: R.Error,
67762
67760
  code: F.ImplementsIncompatibleEntities,
67763
67761
  entity: r,
67764
67762
  firstRelationship: P,
67765
- secondRelationship: R
67763
+ secondRelationship: D
67766
67764
  });
67767
67765
  t.push(B);
67768
67766
  }
@@ -67807,7 +67805,7 @@ function eq(r, a, e = !1) {
67807
67805
  id: r.id + "--" + a.id + "--" + f.id + "--" + F.ImplementsIncompatibleEntities,
67808
67806
  message: `Entity "${r.name}" with id "${r.id}" is extending built-in entity "${a.name}" with id "${a.id}" but also extends entity "${f.name}" with id "${f.id}" which is incompatible`,
67809
67807
  issue: null,
67810
- severity: D.Error,
67808
+ severity: R.Error,
67811
67809
  code: F.ImplementsIncompatibleEntities,
67812
67810
  entity: r,
67813
67811
  firstRelationship: a,
@@ -67825,7 +67823,7 @@ function tq(r) {
67825
67823
  id: r.id + "--" + e.id + "--" + F.StaticImplementingNonStaticEntity,
67826
67824
  message: `Entity "${r.name}" with id "${r.id}" is static but implements entity "${e.name}" with id "${e.id}" which is non-static`,
67827
67825
  issue: null,
67828
- severity: D.Error,
67826
+ severity: R.Error,
67829
67827
  code: F.StaticImplementingNonStaticEntity,
67830
67828
  entity: r,
67831
67829
  firstRelationship: e
@@ -67838,7 +67836,7 @@ function tq(r) {
67838
67836
  id: r.id + "--" + e.id + "--" + F.StaticExtendingNonStaticEntity,
67839
67837
  message: `Entity "${r.name}" with id "${r.id}" is static but extends entity "${e.name}" with id "${e.id}" which is non-static`,
67840
67838
  issue: null,
67841
- severity: D.Error,
67839
+ severity: R.Error,
67842
67840
  code: F.StaticExtendingNonStaticEntity,
67843
67841
  entity: r,
67844
67842
  firstRelationship: e
@@ -67854,7 +67852,7 @@ function iq(r) {
67854
67852
  id: r.id + "--" + F.AbstractEntityImplements,
67855
67853
  message: `Entity "${r.name}" with id "${r.id}" cannot be marked as abstract because it implements other entities`,
67856
67854
  issue: null,
67857
- severity: D.Error,
67855
+ severity: R.Error,
67858
67856
  code: F.AbstractEntityImplements,
67859
67857
  entity: r
67860
67858
  });
@@ -67866,7 +67864,7 @@ function iq(r) {
67866
67864
  id: r.id + "--" + e.id + "--" + F.AbstractExtendingNonAbstractEntity,
67867
67865
  message: `Entity "${r.name}" with id "${r.id}" is abstract but extends entity "${e.name}" with id "${e.id}" which is non-abstract`,
67868
67866
  issue: null,
67869
- severity: D.Error,
67867
+ severity: R.Error,
67870
67868
  code: F.AbstractExtendingNonAbstractEntity,
67871
67869
  entity: r,
67872
67870
  firstRelationship: e
@@ -67883,7 +67881,7 @@ function rq(r) {
67883
67881
  id: r.id + "--" + e.id + "--" + F.NonStaticExtendingStaticEntity,
67884
67882
  message: `Entity "${r.name}" with id "${r.id}" is non-static but extends entity "${e.name}" with id "${e.id}" which is static`,
67885
67883
  issue: null,
67886
- severity: D.Error,
67884
+ severity: R.Error,
67887
67885
  code: F.NonStaticExtendingStaticEntity,
67888
67886
  entity: r,
67889
67887
  firstRelationship: e
@@ -67900,7 +67898,7 @@ function nq(r) {
67900
67898
  id: r.id + "--" + e.id + "--" + F.NonAbstractExtendingAbstractEntity,
67901
67899
  message: `Entity "${r.name}" with id "${r.id}" is non-abstract but extends entity "${e.name}" with id "${e.id}" which is abstract`,
67902
67900
  issue: null,
67903
- severity: D.Error,
67901
+ severity: R.Error,
67904
67902
  code: F.NonAbstractExtendingAbstractEntity,
67905
67903
  entity: r,
67906
67904
  firstRelationship: e
@@ -67929,7 +67927,7 @@ function sq(r, a) {
67929
67927
  new w({
67930
67928
  id: `${r.id}--${r.parent}--${b.SelfReference}`,
67931
67929
  code: b.SelfReference,
67932
- severity: D.Error,
67930
+ severity: R.Error,
67933
67931
  message: `Entity of type "${r.type}" with id "${r.id}", has a reference to itself at 'parent'. This is not allowed. Change the reference string or the 'entityId' property of the reference object.`,
67934
67932
  issue: null
67935
67933
  })
@@ -67942,7 +67940,7 @@ function sq(r, a) {
67942
67940
  new w({
67943
67941
  id: `${r.id}--${r.parent}--${b.InvalidParentReference}`,
67944
67942
  code: b.InvalidParentReference,
67945
- severity: D.Error,
67943
+ severity: R.Error,
67946
67944
  message: `Entity of type "${r.type}" with id "${r.id}", has a parent reference that isn't pointing to an entity of type 'project' or 'data-type'.`,
67947
67945
  issue: null
67948
67946
  })
@@ -67950,7 +67948,7 @@ function sq(r, a) {
67950
67948
  new w({
67951
67949
  id: `${r.id}--${r.parent}--${b.ReferencedEntityNotFound}`,
67952
67950
  code: b.ReferencedEntityNotFound,
67953
- severity: D.Error,
67951
+ severity: R.Error,
67954
67952
  message: `Entity of type "${r.type}" with id "${r.id}", is referencing an entity with id "${r.parent}" that isn't yet found in the project. Perhaps it should be created first. Or perhaps the ID is incorrect.`,
67955
67953
  issue: null
67956
67954
  })
@@ -67962,7 +67960,7 @@ function sq(r, a) {
67962
67960
  new w({
67963
67961
  id: `${r.id}--${t}--${b.SelfReference}`,
67964
67962
  code: b.SelfReference,
67965
- severity: D.Error,
67963
+ severity: R.Error,
67966
67964
  message: `Entity of type "${r.type}" with id "${r.id}", has a reference to itself at one of the 'implements' references. This is not allowed. Change the reference string or the 'entityId' property of the reference object.`,
67967
67965
  issue: null
67968
67966
  })
@@ -67976,7 +67974,7 @@ function sq(r, a) {
67976
67974
  new w({
67977
67975
  id: `${r.id}--${t}--${b.InvalidImplementsReference}`,
67978
67976
  code: b.InvalidImplementsReference,
67979
- severity: D.Error,
67977
+ severity: R.Error,
67980
67978
  message: `Entity of type "${r.type}" with id "${r.id}", has an 'implements' reference that isn't pointing to an abstract entity.`,
67981
67979
  issue: null
67982
67980
  })
@@ -67984,7 +67982,7 @@ function sq(r, a) {
67984
67982
  new w({
67985
67983
  id: `${r.id}--${t}--${b.InvalidImplementsReference}`,
67986
67984
  code: b.InvalidImplementsReference,
67987
- severity: D.Error,
67985
+ severity: R.Error,
67988
67986
  message: `Entity of type "${r.type}" with id "${r.id}", has an 'implements' reference that isn't pointing to an entity of type 'definition-entity' or 'built-in-base-entity'.`,
67989
67987
  issue: null
67990
67988
  })
@@ -67992,7 +67990,7 @@ function sq(r, a) {
67992
67990
  new w({
67993
67991
  id: `${r.id}--${t}--${b.ReferencedEntityNotFound}`,
67994
67992
  code: b.ReferencedEntityNotFound,
67995
- severity: D.Error,
67993
+ severity: R.Error,
67996
67994
  message: `Entity of type "${r.type}" with id "${r.id}", is referencing an entity with id "${t}" that isn't yet found in the project. Perhaps it should be created first. Or perhaps the ID is incorrect.`,
67997
67995
  issue: null
67998
67996
  })
@@ -68001,7 +67999,7 @@ function sq(r, a) {
68001
67999
  new w({
68002
68000
  id: `${r.id}--${$.InvalidObjectStructure}`,
68003
68001
  code: $.InvalidObjectStructure,
68004
- severity: D.Error,
68002
+ severity: R.Error,
68005
68003
  message: `Entity of type "${r.type}" with id "${r.id}", has an 'implements' property that isn't an array.`,
68006
68004
  issue: null
68007
68005
  })
@@ -68013,7 +68011,7 @@ function sq(r, a) {
68013
68011
  new w({
68014
68012
  id: `${r.id}--${t}--${b.InvalidExtendsReference}`,
68015
68013
  code: b.InvalidExtendsReference,
68016
- severity: D.Error,
68014
+ severity: R.Error,
68017
68015
  message: `Entity of type "${r.type}" with id "${r.id}", has an 'extends' reference that isn't pointing to a non-abstract entity. Did you want to use the property 'implements', which holds a list of references to absract entities, instead?`,
68018
68016
  issue: null
68019
68017
  })
@@ -68021,7 +68019,7 @@ function sq(r, a) {
68021
68019
  new w({
68022
68020
  id: `${r.id}--${t}--${b.InvalidExtendsReference}`,
68023
68021
  code: b.InvalidExtendsReference,
68024
- severity: D.Error,
68022
+ severity: R.Error,
68025
68023
  message: `Entity of type "${r.type}" with id "${r.id}", has an 'extends' reference that isn't pointing to an entity of type 'definition-entity' or 'built-in-base-entity'.`,
68026
68024
  issue: null
68027
68025
  })
@@ -68029,7 +68027,7 @@ function sq(r, a) {
68029
68027
  new w({
68030
68028
  id: `${r.id}--${t}--${b.ReferencedEntityNotFound}`,
68031
68029
  code: b.ReferencedEntityNotFound,
68032
- severity: D.Error,
68030
+ severity: R.Error,
68033
68031
  message: `Entity of type "${r.type}" with id "${r.id}", is referencing an entity with id "${t}" that isn't yet found in the project. Perhaps it should be created first. Or perhaps the ID is incorrect.`,
68034
68032
  issue: null
68035
68033
  })
@@ -68164,7 +68162,7 @@ const Le = class Le extends at {
68164
68162
  new w({
68165
68163
  id: `${e.id}--${b.NewEntityWouldOverriteExisting}`,
68166
68164
  code: b.NewEntityWouldOverriteExisting,
68167
- severity: D.Error,
68165
+ severity: R.Error,
68168
68166
  message: `The entity of type '${e.type}' with id '${e.id}' can't be added to the 'parent' entity with id '${u.id}' because it already has an 'entity' child. Data type entities can only have one 'entity' as children.
68169
68167
  You can inspect the existing 'entity' field with the 'describe_entity' action. Like so:
68170
68168
  ${Qi(
@@ -68284,7 +68282,7 @@ Alternatively you can update the parent data-type entity with 'update' action to
68284
68282
  new w({
68285
68283
  id: `${this.id}--${b.InvalidParentUpdate}`,
68286
68284
  code: b.InvalidParentUpdate,
68287
- severity: D.Error,
68285
+ severity: R.Error,
68288
68286
  message: `Entity of type '${this.type}' with id '${this.id}' cannot have the 'parent' property updated. The 'parent' on an '${this.type}', must be the root project as it is a globally declared entity.`,
68289
68287
  issue: null
68290
68288
  })
@@ -68400,7 +68398,7 @@ Alternatively you can update the parent data-type entity with 'update' action to
68400
68398
  captureVersion() {
68401
68399
  var t;
68402
68400
  const e = ((t = this.knownVersions) == null ? void 0 : t.get(this.version)) || new Le(this, this.project);
68403
- return e.metaSync(this.toMeta(), null), this.knownVersions = this.knownVersions ? this.knownVersions.set(this.version, e) : /* @__PURE__ */ new Map([[this.version, e]]), e.properties = this.properties, e.methods = this.methods, e.abstractMethods = this.abstractMethods, e.extends = this.extends, e.implements = this.implements, e.parent = this.parent, this;
68401
+ return e.metaSync(this.toMeta(), null), this.knownVersions = this.knownVersions ? this.knownVersions.set(this.version, e) : /* @__PURE__ */ new Map([[this.version, e]]), e.properties = [...this.properties], e.methods = [...this.methods], e.abstractMethods = [...this.abstractMethods], e.extends = [...this.extends], e.implements = [...this.implements], e.parent = this.parent, this;
68404
68402
  }
68405
68403
  // Traverses upstream entities and captures their versions as well
68406
68404
  recursiveCaptureUpstreamVersions(e) {
@@ -68534,9 +68532,9 @@ Alternatively you can update the parent data-type entity with 'update' action to
68534
68532
  updated: c,
68535
68533
  added: T,
68536
68534
  removed: E,
68537
- affected: R
68535
+ affected: D
68538
68536
  } = this.addExtendedProperties(e);
68539
- t.push(...c), i.push(...T), s.push(...E), l.push(...R);
68537
+ t.push(...c), i.push(...T), s.push(...E), l.push(...D);
68540
68538
  const {
68541
68539
  updated: O,
68542
68540
  added: P,
@@ -68785,8 +68783,8 @@ Alternatively you can update the parent data-type entity with 'update' action to
68785
68783
  ];
68786
68784
  return d.filter((c) => !u.find(
68787
68785
  (E) => {
68788
- var R;
68789
- return ((R = E.implements) == null ? void 0 : R.id) === c.id;
68786
+ var D;
68787
+ return ((D = E.implements) == null ? void 0 : D.id) === c.id;
68790
68788
  }
68791
68789
  )).forEach((c) => {
68792
68790
  if (this.methods.find(
@@ -68821,8 +68819,8 @@ Alternatively you can update the parent data-type entity with 'update' action to
68821
68819
  ), e == null || e.add(this, I.Updated);
68822
68820
  return;
68823
68821
  }
68824
- const R = c.implementAsFunctionDeclaration(e, this);
68825
- i.push(R), e == null || e.add(R, I.Added), this.addMethod(R);
68822
+ const D = c.implementAsFunctionDeclaration(e, this);
68823
+ i.push(D), e == null || e.add(D, I.Added), this.addMethod(D);
68826
68824
  }), e == null || e.attemptAutoclose("sync-implementation-methods", this.id), {
68827
68825
  updated: p(t),
68828
68826
  added: p(i),
@@ -68851,8 +68849,8 @@ Alternatively you can update the parent data-type entity with 'update' action to
68851
68849
  return d.filter(
68852
68850
  (c) => !u.find(
68853
68851
  (E) => {
68854
- var R;
68855
- return ((R = E.implements) == null ? void 0 : R.id) === c.id;
68852
+ var D;
68853
+ return ((D = E.implements) == null ? void 0 : D.id) === c.id;
68856
68854
  }
68857
68855
  )
68858
68856
  ).forEach((c) => {
@@ -68870,12 +68868,12 @@ Alternatively you can update the parent data-type entity with 'update' action to
68870
68868
  E.implements = c, E.abstract = !1;
68871
68869
  return;
68872
68870
  }
68873
- const R = c.clone(
68871
+ const D = c.clone(
68874
68872
  e,
68875
68873
  this,
68876
68874
  y.UUID.uuid()
68877
68875
  );
68878
- R.initChildren(e), i.push(R), e == null || e.add(R, I.Added), R.setImplements(c, e), R.metaSync({ abstract: !1 }, e), this.addProperty(R);
68876
+ D.initChildren(e), i.push(D), e == null || e.add(D, I.Added), D.setImplements(c, e), D.metaSync({ abstract: !1 }, e), this.addProperty(D);
68879
68877
  }), e == null || e.attemptAutoclose("sync-implementation-properties", this.id), {
68880
68878
  updated: p(t),
68881
68879
  added: p(i),
@@ -68936,8 +68934,8 @@ Alternatively you can update the parent data-type entity with 'update' action to
68936
68934
  )) {
68937
68935
  const t = [], i = [], s = [], l = [], o = this.properties, d = this.extendedPropertiesFromOriginalParents, u = d.filter((c) => d.find(
68938
68936
  (E) => {
68939
- var R;
68940
- return ((R = E.implements) == null ? void 0 : R.id) === c.id;
68937
+ var D;
68938
+ return ((D = E.implements) == null ? void 0 : D.id) === c.id;
68941
68939
  }
68942
68940
  ) ? !1 : !c.abstract), f = new Set(
68943
68941
  o.filter((c) => {
@@ -69473,7 +69471,7 @@ Alternatively you can update the parent data-type entity with 'update' action to
69473
69471
  )
69474
69472
  );
69475
69473
  c.methods = E;
69476
- const R = (B = this.abstractMethods) == null ? void 0 : B.map(
69474
+ const D = (B = this.abstractMethods) == null ? void 0 : B.map(
69477
69475
  (j, C) => j.clone(
69478
69476
  e,
69479
69477
  c,
@@ -69481,7 +69479,7 @@ Alternatively you can update the parent data-type entity with 'update' action to
69481
69479
  s
69482
69480
  )
69483
69481
  );
69484
- return c.abstractMethods = R, e == null || e.attemptAutoclose("clone-entity", this.id), c;
69482
+ return c.abstractMethods = D, e == null || e.attemptAutoclose("clone-entity", this.id), c;
69485
69483
  }
69486
69484
  getFunctionDeclaration(e) {
69487
69485
  return this.methods.find((t) => t.id === e);
@@ -69552,12 +69550,12 @@ Alternatively you can update the parent data-type entity with 'update' action to
69552
69550
  );
69553
69551
  if (!T)
69554
69552
  return;
69555
- const R = Fn(
69553
+ const D = Fn(
69556
69554
  c.parent
69557
69555
  ).getMasterInputWithValueWritterFromAllInstances(
69558
69556
  c
69559
69557
  ), O = Fi(
69560
- R,
69558
+ D,
69561
69559
  t
69562
69560
  ), P = O == null ? void 0 : O.clone(
69563
69561
  t,
@@ -69667,11 +69665,11 @@ Alternatively you can update the parent data-type entity with 'update' action to
69667
69665
  extends: null,
69668
69666
  dataType: null,
69669
69667
  parent: this.toReference()
69670
- }, R = V(
69668
+ }, D = V(
69671
69669
  E,
69672
69670
  this.project
69673
69671
  );
69674
- R.setParent(this, t), R.initChildren(t), t == null || t.add(R, I.Added);
69672
+ D.setParent(this, t), D.initChildren(t), t == null || t.add(D, I.Added);
69675
69673
  const P = Fn(
69676
69674
  c.parent
69677
69675
  ).getMasterInputWithValueWritterFromAllInstances(
@@ -69680,16 +69678,16 @@ Alternatively you can update the parent data-type entity with 'update' action to
69680
69678
  P
69681
69679
  ), j = B == null ? void 0 : B.clone(
69682
69680
  t,
69683
- R,
69681
+ D,
69684
69682
  y.UUID.uuid(),
69685
69683
  !0
69686
69684
  );
69687
69685
  if (j) {
69688
- const K = (Z = R.dataType) == null ? void 0 : Z.merge(
69686
+ const K = (Z = D.dataType) == null ? void 0 : Z.merge(
69689
69687
  j,
69690
69688
  t
69691
69689
  );
69692
- R.dataType && (K == null ? void 0 : K.self.id) !== R.dataType.id && R.dataType.remove(
69690
+ D.dataType && (K == null ? void 0 : K.self.id) !== D.dataType.id && D.dataType.remove(
69693
69691
  { ignoreUpstream: !1 },
69694
69692
  t
69695
69693
  ), j.id !== ((J = K == null ? void 0 : K.self) == null ? void 0 : J.id) && j.remove({ ignoreUpstream: !1 }, t), K != null && K.self && (K.self.metaSync(
@@ -69701,9 +69699,9 @@ Alternatively you can update the parent data-type entity with 'update' action to
69701
69699
  ), t == null || t.add(
69702
69700
  K.self,
69703
69701
  I.Added
69704
- ), R.setDataType(K.self), t == null || t.add(R, I.Updated));
69702
+ ), D.setDataType(K.self), t == null || t.add(D, I.Updated));
69705
69703
  }
69706
- return this.addProperty(R), c.setDeclaration(R), t == null || t.add(c, I.Updated), R;
69704
+ return this.addProperty(D), c.setDeclaration(D), t == null || t.add(c, I.Updated), D;
69707
69705
  }), t == null || t.attemptAutoclose("infer-definition-entity-from-inputs", this.id), {
69708
69706
  added: p(i),
69709
69707
  updated: p(s),
@@ -71050,7 +71048,7 @@ const ie = class ie extends Gv {
71050
71048
  captureVersion() {
71051
71049
  var t;
71052
71050
  const e = ((t = this.knownVersions) == null ? void 0 : t.get(this.version)) || new ie(this);
71053
- return e.metaSync(this.toMeta(), null), this.knownVersions = this.knownVersions ? this.knownVersions.set(this.version, e) : /* @__PURE__ */ new Map([[this.version, e]]), e.entities = this.entities, e.projects = this.projects, e.functions = this.functions, e.events = this.events, e.variableDeclarations = this.variableDeclarations, e.variableInstances = this.variableInstances, e.conditions = this.conditions, e.operations = this.operations, e.functionCalls = this.functionCalls, e.loops = this.loops, e.searches = this.searches, this;
71051
+ return e.metaSync(this.toMeta(), null), this.knownVersions = this.knownVersions ? this.knownVersions.set(this.version, e) : /* @__PURE__ */ new Map([[this.version, e]]), e.entities = [...this.entities], e.projects = [...this.projects], e.functions = [...this.functions], e.events = [...this.events], e.variableDeclarations = [...this.variableDeclarations], e.variableInstances = [...this.variableInstances], e.conditions = [...this.conditions], e.operations = [...this.operations], e.functionCalls = [...this.functionCalls], e.loops = [...this.loops], e.searches = [...this.searches], this;
71054
71052
  }
71055
71053
  // Traverses upstream entities and captures their versions as well
71056
71054
  recursiveCaptureUpstreamVersions(e) {
@@ -72555,12 +72553,12 @@ class Tq extends We {
72555
72553
  added: c,
72556
72554
  updated: T,
72557
72555
  removed: E,
72558
- affected: R
72556
+ affected: D
72559
72557
  } = this.syncEntityToMatchInputMapDataType(
72560
72558
  d,
72561
72559
  t
72562
72560
  );
72563
- i.push(...T), s.push(...c), l.push(...E), o.push(...R);
72561
+ i.push(...T), s.push(...c), l.push(...E), o.push(...D);
72564
72562
  }
72565
72563
  const u = this.getDataToValidateInputMap(e);
72566
72564
  if (u) {
@@ -72568,12 +72566,12 @@ class Tq extends We {
72568
72566
  added: c,
72569
72567
  updated: T,
72570
72568
  removed: E,
72571
- affected: R
72569
+ affected: D
72572
72570
  } = this.syncDataToValidateInputMapDataType(
72573
72571
  u,
72574
72572
  t
72575
72573
  );
72576
- i.push(...T), s.push(...c), l.push(...E), o.push(...R);
72574
+ i.push(...T), s.push(...c), l.push(...E), o.push(...D);
72577
72575
  }
72578
72576
  const f = this.getOutputDataOutputMap(e);
72579
72577
  if (f) {
@@ -72581,9 +72579,9 @@ class Tq extends We {
72581
72579
  added: c,
72582
72580
  updated: T,
72583
72581
  removed: E,
72584
- affected: R
72582
+ affected: D
72585
72583
  } = this.syncOutputDataOutputMapDataType(f, t);
72586
- i.push(...T), s.push(...c), l.push(...E), o.push(...R);
72584
+ i.push(...T), s.push(...c), l.push(...E), o.push(...D);
72587
72585
  }
72588
72586
  return t == null || t.attemptAutoclose(
72589
72587
  "sync-operation-instance-validate-data",
@@ -72608,7 +72606,7 @@ class Tq extends We {
72608
72606
  "sync-entity-to-match-input-map-data-type"
72609
72607
  )
72610
72608
  )) {
72611
- var f, c, T, E, R, O, P, B, j, C, L, Z, J, K, oe;
72609
+ var f, c, T, E, D, O, P, B, j, C, L, Z, J, K, oe;
72612
72610
  const i = [], s = [], l = [], o = [];
72613
72611
  if (((f = e.declaration) == null ? void 0 : f.id) !== g.operation[Qe.Validate].inputs.entityToMatch.id)
72614
72612
  return t == null || t.attemptAutoclose(
@@ -72635,7 +72633,7 @@ class Tq extends We {
72635
72633
  options: ((c = e.declaration.dataType) == null ? void 0 : c.options) || null,
72636
72634
  implementationChooseOne: ((T = e.declaration.dataType) == null ? void 0 : T.implementationChooseOne) || !1,
72637
72635
  staticEntities: ((E = e.declaration.dataType) == null ? void 0 : E.staticEntities) ?? null,
72638
- interactiveEntities: ((R = e.declaration.dataType) == null ? void 0 : R.interactiveEntities) ?? null,
72636
+ interactiveEntities: ((D = e.declaration.dataType) == null ? void 0 : D.interactiveEntities) ?? null,
72639
72637
  actionEntities: ((O = e.declaration.dataType) == null ? void 0 : O.actionEntities) ?? null,
72640
72638
  isList: ((P = e.declaration.dataType) == null ? void 0 : P.isList) || !1,
72641
72639
  andChildrenGroup: null,
@@ -72729,7 +72727,7 @@ class Tq extends We {
72729
72727
  self: null
72730
72728
  };
72731
72729
  if (!e.dataType) {
72732
- const R = {
72730
+ const D = {
72733
72731
  id: y.UUID.uuid(),
72734
72732
  version: y.UUID.uuid(),
72735
72733
  createdAt: (t == null ? void 0 : t.timestamp) || (/* @__PURE__ */ new Date()).toISOString(),
@@ -72752,7 +72750,7 @@ class Tq extends We {
72752
72750
  inferred: !0,
72753
72751
  parent: e.toReference()
72754
72752
  }, O = V(
72755
- R,
72753
+ D,
72756
72754
  e.project
72757
72755
  );
72758
72756
  O.setParent(e, t), O.initChildren(t), t == null || t.add(O, I.Added), i.push(O), e.setDataType(O);
@@ -72792,7 +72790,7 @@ class Tq extends We {
72792
72790
  "sync-output-data-output-map-data-type"
72793
72791
  )
72794
72792
  )) {
72795
- var T, E, R;
72793
+ var T, E, D;
72796
72794
  const i = [], s = [], l = [], o = [];
72797
72795
  if (((T = e.declaration) == null ? void 0 : T.id) !== g.operation[Qe.Validate].outputs.outputEntity.id)
72798
72796
  return t == null || t.attemptAutoclose(
@@ -72870,7 +72868,7 @@ class Tq extends We {
72870
72868
  asType: !1
72871
72869
  },
72872
72870
  t
72873
- ), (R = e.dataType) == null || R.setEntity(c), e.dataType && s.push(e.dataType), t == null || t.attemptAutoclose(
72871
+ ), (D = e.dataType) == null || D.setEntity(c), e.dataType && s.push(e.dataType), t == null || t.attemptAutoclose(
72874
72872
  "sync-output-data-output-map-data-type",
72875
72873
  this.id
72876
72874
  ), {
@@ -73107,7 +73105,7 @@ function Vq(r, a) {
73107
73105
  id: r.id + "--status-code-must-be-number",
73108
73106
  message: `Entity of type ${r.type} with id "${r.id}" has an invalid value "${a}". The value must be a number.`,
73109
73107
  issue: null,
73110
- severity: D.Error,
73108
+ severity: R.Error,
73111
73109
  code: "status-code-must-be-number",
73112
73110
  entity: r
73113
73111
  });
@@ -73121,7 +73119,7 @@ function Vq(r, a) {
73121
73119
  id: r.id + "--status-code-must-be-between-100-and-599",
73122
73120
  message: `Entity of type ${r.type} with id "${r.id}" has an invalid value "${a}". The value must be a number between 100 and 599.`,
73123
73121
  issue: null,
73124
- severity: D.Error,
73122
+ severity: R.Error,
73125
73123
  code: "status-code-must-be-between-100-and-599",
73126
73124
  entity: r
73127
73125
  });
@@ -73132,7 +73130,7 @@ function Vq(r, a) {
73132
73130
  id: r.id + "--status-code-must-be-between-100-and-599",
73133
73131
  message: `Entity of type ${r.type} with id "${r.id}" has an invalid value "${a}". The value must be a number between 100 and 599.`,
73134
73132
  issue: null,
73135
- severity: D.Error,
73133
+ severity: R.Error,
73136
73134
  code: "status-code-must-be-between-100-and-599",
73137
73135
  entity: r
73138
73136
  });
@@ -73676,7 +73674,7 @@ export {
73676
73674
  Cq as EndpointEntity,
73677
73675
  cq as EntityAction,
73678
73676
  Ye as EntityError,
73679
- D as EntityErrorSeverity,
73677
+ R as EntityErrorSeverity,
73680
73678
  w as EntityGenerationError,
73681
73679
  b as EntityGenerationErrorCode,
73682
73680
  F as EntityInstanceErrorCode,