@elyx-code/project-logic-tree 0.0.6001 → 0.0.6002

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
@@ -2881,7 +2881,7 @@ const $e = {
2881
2881
  abstractMethods: [bd],
2882
2882
  extends: [],
2883
2883
  methods: []
2884
- }, wt = $e[r.BuiltInBaseEntity].BUILT_IN_RELATIONAL_DATABASE_ENTITY, vb = {
2884
+ }, Ct = $e[r.BuiltInBaseEntity].BUILT_IN_RELATIONAL_DATABASE_ENTITY, vb = {
2885
2885
  id: "relational-database-built-in-base-entity-identifier-property-data-type-ref-id",
2886
2886
  type: r.GenericReference,
2887
2887
  entityId: "relational-database-built-in-base-entity-identifier-property-data-type-id",
@@ -2889,7 +2889,7 @@ const $e = {
2889
2889
  }, gb = {
2890
2890
  id: "relational-database-built-in-base-entity-identifier-property-ref-id",
2891
2891
  type: r.GenericReference,
2892
- entityId: wt.properties.identifier,
2892
+ entityId: Ct.properties.identifier,
2893
2893
  entityType: r.Property
2894
2894
  }, Ib = {
2895
2895
  id: "relational-database-built-in-base-entity-identifier-property-data-type-id",
@@ -2925,7 +2925,7 @@ const $e = {
2925
2925
  }, Eo = {
2926
2926
  hidden: !1,
2927
2927
  required: !0,
2928
- id: wt.properties.identifier,
2928
+ id: Ct.properties.identifier,
2929
2929
  name: "Identifier name",
2930
2930
  version: 1,
2931
2931
  type: r.Property,
@@ -2945,7 +2945,7 @@ const $e = {
2945
2945
  }, Pb = {
2946
2946
  id: "relational-database-built-in-base-entity-username-property-ref-id",
2947
2947
  type: r.GenericReference,
2948
- entityId: wt.properties.username,
2948
+ entityId: Ct.properties.username,
2949
2949
  entityType: r.Property
2950
2950
  }, Db = {
2951
2951
  id: "relational-database-built-in-base-entity-username-property-data-type-id",
@@ -2977,7 +2977,7 @@ const $e = {
2977
2977
  }, Ro = {
2978
2978
  hidden: !1,
2979
2979
  required: !0,
2980
- id: wt.properties.username,
2980
+ id: Ct.properties.username,
2981
2981
  name: "Username",
2982
2982
  version: 1,
2983
2983
  type: r.Property,
@@ -2997,7 +2997,7 @@ const $e = {
2997
2997
  }, Ab = {
2998
2998
  id: "relational-database-built-in-base-entity-password-property-ref-id",
2999
2999
  type: r.GenericReference,
3000
- entityId: wt.properties.password,
3000
+ entityId: Ct.properties.password,
3001
3001
  entityType: r.Property
3002
3002
  }, Sb = {
3003
3003
  id: "relational-database-built-in-base-entity-password-property-data-type-id",
@@ -3015,7 +3015,7 @@ const $e = {
3015
3015
  }, bo = {
3016
3016
  hidden: !1,
3017
3017
  required: !0,
3018
- id: wt.properties.password,
3018
+ id: Ct.properties.password,
3019
3019
  name: "Password",
3020
3020
  version: 1,
3021
3021
  type: r.Property,
@@ -3035,7 +3035,7 @@ const $e = {
3035
3035
  }, Cb = {
3036
3036
  id: "relational-database-built-in-base-entity-min-size-property-ref-id",
3037
3037
  type: r.GenericReference,
3038
- entityId: wt.properties.minSize,
3038
+ entityId: Ct.properties.minSize,
3039
3039
  entityType: r.Property
3040
3040
  }, wb = {
3041
3041
  id: "relational-database-built-in-base-entity-min-size-property-data-type-id",
@@ -3062,7 +3062,7 @@ const $e = {
3062
3062
  }, vo = {
3063
3063
  hidden: !0,
3064
3064
  required: !0,
3065
- id: wt.properties.minSize,
3065
+ id: Ct.properties.minSize,
3066
3066
  name: "Minimum GB size",
3067
3067
  version: 1,
3068
3068
  type: r.Property,
@@ -3082,7 +3082,7 @@ const $e = {
3082
3082
  }, Mb = {
3083
3083
  id: "relational-database-built-in-base-entity-default-property-ref-id",
3084
3084
  type: r.GenericReference,
3085
- entityId: wt.properties.default,
3085
+ entityId: Ct.properties.default,
3086
3086
  entityType: r.Property
3087
3087
  }, _b = {
3088
3088
  id: "relational-database-built-in-base-entity-default-property-data-type-id",
@@ -3109,7 +3109,7 @@ const $e = {
3109
3109
  }, vd = {
3110
3110
  hidden: !0,
3111
3111
  required: !0,
3112
- id: wt.properties.default,
3112
+ id: Ct.properties.default,
3113
3113
  name: "Default",
3114
3114
  version: 1,
3115
3115
  type: r.Property,
@@ -3124,7 +3124,7 @@ const $e = {
3124
3124
  }, Nb = {
3125
3125
  id: "relational-database-built-in-base-entity-autoscaling-property-ref-id",
3126
3126
  type: r.GenericReference,
3127
- entityId: wt.properties.autoscaling,
3127
+ entityId: Ct.properties.autoscaling,
3128
3128
  entityType: r.Property
3129
3129
  }, xb = {
3130
3130
  id: "relational-database-built-in-base-entity-autoscaling-property-data-type-ref-id",
@@ -3161,7 +3161,7 @@ const $e = {
3161
3161
  }, gd = {
3162
3162
  hidden: !0,
3163
3163
  required: !0,
3164
- id: wt.properties.autoscaling,
3164
+ id: Ct.properties.autoscaling,
3165
3165
  name: "Auto-scaling",
3166
3166
  version: 1,
3167
3167
  type: r.Property,
@@ -4046,10 +4046,10 @@ function _d(n, e, t, i, a) {
4046
4046
  throw new TypeError("Cannot write private member to an object whose class did not declare it");
4047
4047
  return i === "a" ? a.call(n, t) : a ? a.value = t : e.set(n, t), t;
4048
4048
  }
4049
- var N;
4049
+ var x;
4050
4050
  (function(n) {
4051
4051
  n.errToObj = (e) => typeof e == "string" ? { message: e } : e || {}, n.toString = (e) => typeof e == "string" ? e : e == null ? void 0 : e.message;
4052
- })(N || (N = {}));
4052
+ })(x || (x = {}));
4053
4053
  var ti, ni;
4054
4054
  class qt {
4055
4055
  constructor(e, t, i, a) {
@@ -4287,7 +4287,7 @@ function $d(n) {
4287
4287
  function Fv(n, e) {
4288
4288
  return !!((e === "v4" || !e) && xv.test(n) || (e === "v6" || !e) && $v.test(n));
4289
4289
  }
4290
- class $t extends W {
4290
+ class xt extends W {
4291
4291
  _parse(e) {
4292
4292
  if (this._def.coerce && (e.data = String(e.data)), this._getType(e) !== B.string) {
4293
4293
  const s = this._getOrReturnCtx(e);
@@ -4435,44 +4435,44 @@ class $t extends W {
4435
4435
  return this.refinement((a) => e.test(a), {
4436
4436
  validation: t,
4437
4437
  code: I.invalid_string,
4438
- ...N.errToObj(i)
4438
+ ...x.errToObj(i)
4439
4439
  });
4440
4440
  }
4441
4441
  _addCheck(e) {
4442
- return new $t({
4442
+ return new xt({
4443
4443
  ...this._def,
4444
4444
  checks: [...this._def.checks, e]
4445
4445
  });
4446
4446
  }
4447
4447
  email(e) {
4448
- return this._addCheck({ kind: "email", ...N.errToObj(e) });
4448
+ return this._addCheck({ kind: "email", ...x.errToObj(e) });
4449
4449
  }
4450
4450
  url(e) {
4451
- return this._addCheck({ kind: "url", ...N.errToObj(e) });
4451
+ return this._addCheck({ kind: "url", ...x.errToObj(e) });
4452
4452
  }
4453
4453
  emoji(e) {
4454
- return this._addCheck({ kind: "emoji", ...N.errToObj(e) });
4454
+ return this._addCheck({ kind: "emoji", ...x.errToObj(e) });
4455
4455
  }
4456
4456
  uuid(e) {
4457
- return this._addCheck({ kind: "uuid", ...N.errToObj(e) });
4457
+ return this._addCheck({ kind: "uuid", ...x.errToObj(e) });
4458
4458
  }
4459
4459
  nanoid(e) {
4460
- return this._addCheck({ kind: "nanoid", ...N.errToObj(e) });
4460
+ return this._addCheck({ kind: "nanoid", ...x.errToObj(e) });
4461
4461
  }
4462
4462
  cuid(e) {
4463
- return this._addCheck({ kind: "cuid", ...N.errToObj(e) });
4463
+ return this._addCheck({ kind: "cuid", ...x.errToObj(e) });
4464
4464
  }
4465
4465
  cuid2(e) {
4466
- return this._addCheck({ kind: "cuid2", ...N.errToObj(e) });
4466
+ return this._addCheck({ kind: "cuid2", ...x.errToObj(e) });
4467
4467
  }
4468
4468
  ulid(e) {
4469
- return this._addCheck({ kind: "ulid", ...N.errToObj(e) });
4469
+ return this._addCheck({ kind: "ulid", ...x.errToObj(e) });
4470
4470
  }
4471
4471
  base64(e) {
4472
- return this._addCheck({ kind: "base64", ...N.errToObj(e) });
4472
+ return this._addCheck({ kind: "base64", ...x.errToObj(e) });
4473
4473
  }
4474
4474
  ip(e) {
4475
- return this._addCheck({ kind: "ip", ...N.errToObj(e) });
4475
+ return this._addCheck({ kind: "ip", ...x.errToObj(e) });
4476
4476
  }
4477
4477
  datetime(e) {
4478
4478
  var t, i;
@@ -4487,7 +4487,7 @@ class $t extends W {
4487
4487
  precision: typeof (e == null ? void 0 : e.precision) > "u" ? null : e == null ? void 0 : e.precision,
4488
4488
  offset: (t = e == null ? void 0 : e.offset) !== null && t !== void 0 ? t : !1,
4489
4489
  local: (i = e == null ? void 0 : e.local) !== null && i !== void 0 ? i : !1,
4490
- ...N.errToObj(e == null ? void 0 : e.message)
4490
+ ...x.errToObj(e == null ? void 0 : e.message)
4491
4491
  });
4492
4492
  }
4493
4493
  date(e) {
@@ -4501,17 +4501,17 @@ class $t extends W {
4501
4501
  }) : this._addCheck({
4502
4502
  kind: "time",
4503
4503
  precision: typeof (e == null ? void 0 : e.precision) > "u" ? null : e == null ? void 0 : e.precision,
4504
- ...N.errToObj(e == null ? void 0 : e.message)
4504
+ ...x.errToObj(e == null ? void 0 : e.message)
4505
4505
  });
4506
4506
  }
4507
4507
  duration(e) {
4508
- return this._addCheck({ kind: "duration", ...N.errToObj(e) });
4508
+ return this._addCheck({ kind: "duration", ...x.errToObj(e) });
4509
4509
  }
4510
4510
  regex(e, t) {
4511
4511
  return this._addCheck({
4512
4512
  kind: "regex",
4513
4513
  regex: e,
4514
- ...N.errToObj(t)
4514
+ ...x.errToObj(t)
4515
4515
  });
4516
4516
  }
4517
4517
  includes(e, t) {
@@ -4519,42 +4519,42 @@ class $t extends W {
4519
4519
  kind: "includes",
4520
4520
  value: e,
4521
4521
  position: t == null ? void 0 : t.position,
4522
- ...N.errToObj(t == null ? void 0 : t.message)
4522
+ ...x.errToObj(t == null ? void 0 : t.message)
4523
4523
  });
4524
4524
  }
4525
4525
  startsWith(e, t) {
4526
4526
  return this._addCheck({
4527
4527
  kind: "startsWith",
4528
4528
  value: e,
4529
- ...N.errToObj(t)
4529
+ ...x.errToObj(t)
4530
4530
  });
4531
4531
  }
4532
4532
  endsWith(e, t) {
4533
4533
  return this._addCheck({
4534
4534
  kind: "endsWith",
4535
4535
  value: e,
4536
- ...N.errToObj(t)
4536
+ ...x.errToObj(t)
4537
4537
  });
4538
4538
  }
4539
4539
  min(e, t) {
4540
4540
  return this._addCheck({
4541
4541
  kind: "min",
4542
4542
  value: e,
4543
- ...N.errToObj(t)
4543
+ ...x.errToObj(t)
4544
4544
  });
4545
4545
  }
4546
4546
  max(e, t) {
4547
4547
  return this._addCheck({
4548
4548
  kind: "max",
4549
4549
  value: e,
4550
- ...N.errToObj(t)
4550
+ ...x.errToObj(t)
4551
4551
  });
4552
4552
  }
4553
4553
  length(e, t) {
4554
4554
  return this._addCheck({
4555
4555
  kind: "length",
4556
4556
  value: e,
4557
- ...N.errToObj(t)
4557
+ ...x.errToObj(t)
4558
4558
  });
4559
4559
  }
4560
4560
  /**
@@ -4562,22 +4562,22 @@ class $t extends W {
4562
4562
  * @see {@link ZodString.min}
4563
4563
  */
4564
4564
  nonempty(e) {
4565
- return this.min(1, N.errToObj(e));
4565
+ return this.min(1, x.errToObj(e));
4566
4566
  }
4567
4567
  trim() {
4568
- return new $t({
4568
+ return new xt({
4569
4569
  ...this._def,
4570
4570
  checks: [...this._def.checks, { kind: "trim" }]
4571
4571
  });
4572
4572
  }
4573
4573
  toLowerCase() {
4574
- return new $t({
4574
+ return new xt({
4575
4575
  ...this._def,
4576
4576
  checks: [...this._def.checks, { kind: "toLowerCase" }]
4577
4577
  });
4578
4578
  }
4579
4579
  toUpperCase() {
4580
- return new $t({
4580
+ return new xt({
4581
4581
  ...this._def,
4582
4582
  checks: [...this._def.checks, { kind: "toUpperCase" }]
4583
4583
  });
@@ -4637,9 +4637,9 @@ class $t extends W {
4637
4637
  return e;
4638
4638
  }
4639
4639
  }
4640
- $t.create = (n) => {
4640
+ xt.create = (n) => {
4641
4641
  var e;
4642
- return new $t({
4642
+ return new xt({
4643
4643
  checks: [],
4644
4644
  typeName: G.ZodString,
4645
4645
  coerce: (e = n == null ? void 0 : n.coerce) !== null && e !== void 0 ? e : !1,
@@ -4696,16 +4696,16 @@ class hn extends W {
4696
4696
  return { status: a.value, value: e.data };
4697
4697
  }
4698
4698
  gte(e, t) {
4699
- return this.setLimit("min", e, !0, N.toString(t));
4699
+ return this.setLimit("min", e, !0, x.toString(t));
4700
4700
  }
4701
4701
  gt(e, t) {
4702
- return this.setLimit("min", e, !1, N.toString(t));
4702
+ return this.setLimit("min", e, !1, x.toString(t));
4703
4703
  }
4704
4704
  lte(e, t) {
4705
- return this.setLimit("max", e, !0, N.toString(t));
4705
+ return this.setLimit("max", e, !0, x.toString(t));
4706
4706
  }
4707
4707
  lt(e, t) {
4708
- return this.setLimit("max", e, !1, N.toString(t));
4708
+ return this.setLimit("max", e, !1, x.toString(t));
4709
4709
  }
4710
4710
  setLimit(e, t, i, a) {
4711
4711
  return new hn({
@@ -4716,7 +4716,7 @@ class hn extends W {
4716
4716
  kind: e,
4717
4717
  value: t,
4718
4718
  inclusive: i,
4719
- message: N.toString(a)
4719
+ message: x.toString(a)
4720
4720
  }
4721
4721
  ]
4722
4722
  });
@@ -4730,7 +4730,7 @@ class hn extends W {
4730
4730
  int(e) {
4731
4731
  return this._addCheck({
4732
4732
  kind: "int",
4733
- message: N.toString(e)
4733
+ message: x.toString(e)
4734
4734
  });
4735
4735
  }
4736
4736
  positive(e) {
@@ -4738,7 +4738,7 @@ class hn extends W {
4738
4738
  kind: "min",
4739
4739
  value: 0,
4740
4740
  inclusive: !1,
4741
- message: N.toString(e)
4741
+ message: x.toString(e)
4742
4742
  });
4743
4743
  }
4744
4744
  negative(e) {
@@ -4746,7 +4746,7 @@ class hn extends W {
4746
4746
  kind: "max",
4747
4747
  value: 0,
4748
4748
  inclusive: !1,
4749
- message: N.toString(e)
4749
+ message: x.toString(e)
4750
4750
  });
4751
4751
  }
4752
4752
  nonpositive(e) {
@@ -4754,7 +4754,7 @@ class hn extends W {
4754
4754
  kind: "max",
4755
4755
  value: 0,
4756
4756
  inclusive: !0,
4757
- message: N.toString(e)
4757
+ message: x.toString(e)
4758
4758
  });
4759
4759
  }
4760
4760
  nonnegative(e) {
@@ -4762,20 +4762,20 @@ class hn extends W {
4762
4762
  kind: "min",
4763
4763
  value: 0,
4764
4764
  inclusive: !0,
4765
- message: N.toString(e)
4765
+ message: x.toString(e)
4766
4766
  });
4767
4767
  }
4768
4768
  multipleOf(e, t) {
4769
4769
  return this._addCheck({
4770
4770
  kind: "multipleOf",
4771
4771
  value: e,
4772
- message: N.toString(t)
4772
+ message: x.toString(t)
4773
4773
  });
4774
4774
  }
4775
4775
  finite(e) {
4776
4776
  return this._addCheck({
4777
4777
  kind: "finite",
4778
- message: N.toString(e)
4778
+ message: x.toString(e)
4779
4779
  });
4780
4780
  }
4781
4781
  safe(e) {
@@ -4783,12 +4783,12 @@ class hn extends W {
4783
4783
  kind: "min",
4784
4784
  inclusive: !0,
4785
4785
  value: Number.MIN_SAFE_INTEGER,
4786
- message: N.toString(e)
4786
+ message: x.toString(e)
4787
4787
  })._addCheck({
4788
4788
  kind: "max",
4789
4789
  inclusive: !0,
4790
4790
  value: Number.MAX_SAFE_INTEGER,
4791
- message: N.toString(e)
4791
+ message: x.toString(e)
4792
4792
  });
4793
4793
  }
4794
4794
  get minValue() {
@@ -4858,16 +4858,16 @@ class fn extends W {
4858
4858
  return { status: a.value, value: e.data };
4859
4859
  }
4860
4860
  gte(e, t) {
4861
- return this.setLimit("min", e, !0, N.toString(t));
4861
+ return this.setLimit("min", e, !0, x.toString(t));
4862
4862
  }
4863
4863
  gt(e, t) {
4864
- return this.setLimit("min", e, !1, N.toString(t));
4864
+ return this.setLimit("min", e, !1, x.toString(t));
4865
4865
  }
4866
4866
  lte(e, t) {
4867
- return this.setLimit("max", e, !0, N.toString(t));
4867
+ return this.setLimit("max", e, !0, x.toString(t));
4868
4868
  }
4869
4869
  lt(e, t) {
4870
- return this.setLimit("max", e, !1, N.toString(t));
4870
+ return this.setLimit("max", e, !1, x.toString(t));
4871
4871
  }
4872
4872
  setLimit(e, t, i, a) {
4873
4873
  return new fn({
@@ -4878,7 +4878,7 @@ class fn extends W {
4878
4878
  kind: e,
4879
4879
  value: t,
4880
4880
  inclusive: i,
4881
- message: N.toString(a)
4881
+ message: x.toString(a)
4882
4882
  }
4883
4883
  ]
4884
4884
  });
@@ -4894,7 +4894,7 @@ class fn extends W {
4894
4894
  kind: "min",
4895
4895
  value: BigInt(0),
4896
4896
  inclusive: !1,
4897
- message: N.toString(e)
4897
+ message: x.toString(e)
4898
4898
  });
4899
4899
  }
4900
4900
  negative(e) {
@@ -4902,7 +4902,7 @@ class fn extends W {
4902
4902
  kind: "max",
4903
4903
  value: BigInt(0),
4904
4904
  inclusive: !1,
4905
- message: N.toString(e)
4905
+ message: x.toString(e)
4906
4906
  });
4907
4907
  }
4908
4908
  nonpositive(e) {
@@ -4910,7 +4910,7 @@ class fn extends W {
4910
4910
  kind: "max",
4911
4911
  value: BigInt(0),
4912
4912
  inclusive: !0,
4913
- message: N.toString(e)
4913
+ message: x.toString(e)
4914
4914
  });
4915
4915
  }
4916
4916
  nonnegative(e) {
@@ -4918,14 +4918,14 @@ class fn extends W {
4918
4918
  kind: "min",
4919
4919
  value: BigInt(0),
4920
4920
  inclusive: !0,
4921
- message: N.toString(e)
4921
+ message: x.toString(e)
4922
4922
  });
4923
4923
  }
4924
4924
  multipleOf(e, t) {
4925
4925
  return this._addCheck({
4926
4926
  kind: "multipleOf",
4927
4927
  value: e,
4928
- message: N.toString(t)
4928
+ message: x.toString(t)
4929
4929
  });
4930
4930
  }
4931
4931
  get minValue() {
@@ -5017,14 +5017,14 @@ class Bn extends W {
5017
5017
  return this._addCheck({
5018
5018
  kind: "min",
5019
5019
  value: e.getTime(),
5020
- message: N.toString(t)
5020
+ message: x.toString(t)
5021
5021
  });
5022
5022
  }
5023
5023
  max(e, t) {
5024
5024
  return this._addCheck({
5025
5025
  kind: "max",
5026
5026
  value: e.getTime(),
5027
- message: N.toString(t)
5027
+ message: x.toString(t)
5028
5028
  });
5029
5029
  }
5030
5030
  get minDate() {
@@ -5198,19 +5198,19 @@ class Vt extends W {
5198
5198
  min(e, t) {
5199
5199
  return new Vt({
5200
5200
  ...this._def,
5201
- minLength: { value: e, message: N.toString(t) }
5201
+ minLength: { value: e, message: x.toString(t) }
5202
5202
  });
5203
5203
  }
5204
5204
  max(e, t) {
5205
5205
  return new Vt({
5206
5206
  ...this._def,
5207
- maxLength: { value: e, message: N.toString(t) }
5207
+ maxLength: { value: e, message: x.toString(t) }
5208
5208
  });
5209
5209
  }
5210
5210
  length(e, t) {
5211
5211
  return new Vt({
5212
5212
  ...this._def,
5213
- exactLength: { value: e, message: N.toString(t) }
5213
+ exactLength: { value: e, message: x.toString(t) }
5214
5214
  });
5215
5215
  }
5216
5216
  nonempty(e) {
@@ -5320,7 +5320,7 @@ class we extends W {
5320
5320
  return this._def.shape();
5321
5321
  }
5322
5322
  strict(e) {
5323
- return N.errToObj, new we({
5323
+ return x.errToObj, new we({
5324
5324
  ...this._def,
5325
5325
  unknownKeys: "strict",
5326
5326
  ...e !== void 0 ? {
@@ -5328,7 +5328,7 @@ class we extends W {
5328
5328
  var a, s, o, d;
5329
5329
  const u = (o = (s = (a = this._def).errorMap) === null || s === void 0 ? void 0 : s.call(a, t, i).message) !== null && o !== void 0 ? o : i.defaultError;
5330
5330
  return t.code === "unrecognized_keys" ? {
5331
- message: (d = N.errToObj(e).message) !== null && d !== void 0 ? d : u
5331
+ message: (d = x.errToObj(e).message) !== null && d !== void 0 ? d : u
5332
5332
  } : {
5333
5333
  message: u
5334
5334
  };
@@ -5815,7 +5815,7 @@ class ui extends W {
5815
5815
  typeName: G.ZodRecord,
5816
5816
  ...q(i)
5817
5817
  }) : new ui({
5818
- keyType: $t.create(),
5818
+ keyType: xt.create(),
5819
5819
  valueType: e,
5820
5820
  typeName: G.ZodRecord,
5821
5821
  ...q(t)
@@ -5911,13 +5911,13 @@ class Mn extends W {
5911
5911
  min(e, t) {
5912
5912
  return new Mn({
5913
5913
  ...this._def,
5914
- minSize: { value: e, message: N.toString(t) }
5914
+ minSize: { value: e, message: x.toString(t) }
5915
5915
  });
5916
5916
  }
5917
5917
  max(e, t) {
5918
5918
  return new Mn({
5919
5919
  ...this._def,
5920
- maxSize: { value: e, message: N.toString(t) }
5920
+ maxSize: { value: e, message: x.toString(t) }
5921
5921
  });
5922
5922
  }
5923
5923
  size(e, t) {
@@ -6475,8 +6475,8 @@ var G;
6475
6475
  })(G || (G = {}));
6476
6476
  const qv = (n, e = {
6477
6477
  message: `Input not instance of ${n.name}`
6478
- }) => Gd((t) => t instanceof n, e), fa = $t.create, Do = hn.create, Jv = ha.create, Wv = fn.create, Ao = si.create, Ld = Bn.create, Hv = ua.create, Yv = oi.create, Fd = li.create, zv = lr.create, na = wn.create, Zv = nn.create, Xv = pa.create, Qv = Vt.create, Ud = we.create, Kv = we.strictCreate, eg = ci.create, tg = Ca.create, ng = di.create, rg = Jt.create, jd = ui.create, ig = ya.create, ag = Mn.create, sg = sr.create, og = pi.create, lg = yi.create, kd = mn.create, cg = hi.create, dg = cr.create, Rc = Lt.create, ug = jt.create, pg = Tn.create, yg = Lt.createWithPreprocess, hg = Mi.create, fg = () => fa().optional(), mg = () => Do().optional(), Tg = () => Ao().optional(), Eg = {
6479
- string: (n) => $t.create({ ...n, coerce: !0 }),
6478
+ }) => Gd((t) => t instanceof n, e), fa = xt.create, Do = hn.create, Jv = ha.create, Wv = fn.create, Ao = si.create, Ld = Bn.create, Hv = ua.create, Yv = oi.create, Fd = li.create, zv = lr.create, na = wn.create, Zv = nn.create, Xv = pa.create, Qv = Vt.create, Ud = we.create, Kv = we.strictCreate, eg = ci.create, tg = Ca.create, ng = di.create, rg = Jt.create, jd = ui.create, ig = ya.create, ag = Mn.create, sg = sr.create, og = pi.create, lg = yi.create, kd = mn.create, cg = hi.create, dg = cr.create, Rc = Lt.create, ug = jt.create, pg = Tn.create, yg = Lt.createWithPreprocess, hg = Mi.create, fg = () => fa().optional(), mg = () => Do().optional(), Tg = () => Ao().optional(), Eg = {
6479
+ string: (n) => xt.create({ ...n, coerce: !0 }),
6480
6480
  number: (n) => hn.create({ ...n, coerce: !0 }),
6481
6481
  boolean: (n) => si.create({
6482
6482
  ...n,
@@ -6511,7 +6511,7 @@ var c = /* @__PURE__ */ Object.freeze({
6511
6511
  getParsedType: dn,
6512
6512
  ZodType: W,
6513
6513
  datetimeRegex: $d,
6514
- ZodString: $t,
6514
+ ZodString: xt,
6515
6515
  ZodNumber: hn,
6516
6516
  ZodBigInt: fn,
6517
6517
  ZodBoolean: si,
@@ -11379,7 +11379,7 @@ const dC = {
11379
11379
  calls: [aB, nB],
11380
11380
  x: 0,
11381
11381
  y: 0
11382
- }, Bt = "abort-execution-func-declaration-id", Vi = "abort-execution-func-exec-var-declaration-id", Wa = "abort-execution-func-small-wait-op-id", $o = "abort-execution-func-long-wait-op-id", Nu = "abort-execution-func-long-wait-process-output-id", xu = "abort-execution-func-exec-var-instance-write-id", $u = "abort-execution-func-long-wait-return-stmt-id", Vu = "abort-execution-func-small-wait-return-stmt-id", lB = "abort-execution-func-exec-var-instance-abort-call-id", Vo = "abort-execution-func-exec-var-instance-abort-internal-call-id", Gu = "abort-execution-func-exec-second-wait-op-id", cB = {
11382
+ }, wt = "abort-execution-func-declaration-id", Vi = "abort-execution-func-exec-var-declaration-id", Wa = "abort-execution-func-small-wait-op-id", $o = "abort-execution-func-long-wait-op-id", Nu = "abort-execution-func-long-wait-process-output-id", xu = "abort-execution-func-exec-var-instance-write-id", $u = "abort-execution-func-long-wait-return-stmt-id", Vu = "abort-execution-func-small-wait-return-stmt-id", lB = "abort-execution-func-exec-var-instance-abort-call-id", Vo = "abort-execution-func-exec-var-instance-abort-internal-call-id", Gu = "abort-execution-func-exec-second-wait-op-id", cB = {
11383
11383
  type: r.GenericReference,
11384
11384
  id: "short-wait-return-statement-returned-hello-string-data-type-parent-ref-id",
11385
11385
  entityType: r.ReturnDeclaration,
@@ -11437,7 +11437,7 @@ const dC = {
11437
11437
  type: r.GenericReference,
11438
11438
  id: "short-wait-return-statement-parent-ref-id",
11439
11439
  entityType: r.FunctionDeclaration,
11440
- entityId: Bt
11440
+ entityId: wt
11441
11441
  }, Lu = {
11442
11442
  type: r.ReturnStatement,
11443
11443
  id: Vu,
@@ -11485,7 +11485,7 @@ const dC = {
11485
11485
  type: r.GenericReference,
11486
11486
  id: "small-wait-parent-ref-id",
11487
11487
  entityType: r.FunctionDeclaration,
11488
- entityId: Bt
11488
+ entityId: wt
11489
11489
  }, bB = {
11490
11490
  type: r.GenericReference,
11491
11491
  id: "small-wait-called-by-ref-one-id",
@@ -11523,7 +11523,7 @@ const dC = {
11523
11523
  type: r.GenericReference,
11524
11524
  id: "abort-exec-func-abort-call-var-instance-main-project-ref-id",
11525
11525
  entityType: r.FunctionDeclaration,
11526
- entityId: Bt
11526
+ entityId: wt
11527
11527
  }, DB = {
11528
11528
  type: r.GenericReference,
11529
11529
  id: "abort-exec-func-abort-call-var-instance-declaration-ref-id",
@@ -11575,7 +11575,7 @@ const dC = {
11575
11575
  type: r.GenericReference,
11576
11576
  id: "abort-exec-func-var-write-instance-main-project-ref-id",
11577
11577
  entityType: r.FunctionDeclaration,
11578
- entityId: Bt
11578
+ entityId: wt
11579
11579
  }, CB = {
11580
11580
  type: r.GenericReference,
11581
11581
  id: "abort-exec-func-var-write-instance-called-by-ref-one-id",
@@ -11585,7 +11585,7 @@ const dC = {
11585
11585
  type: r.GenericReference,
11586
11586
  id: "abort-exec-func-var-write-instance-called-by-ref-two-id",
11587
11587
  entityType: r.FunctionDeclaration,
11588
- entityId: Bt
11588
+ entityId: wt
11589
11589
  }, BB = {
11590
11590
  type: r.GenericReference,
11591
11591
  id: "abort-exec-func-abort-call-var-instance-declaration-ref-id",
@@ -11638,12 +11638,12 @@ const NB = {
11638
11638
  type: r.GenericReference,
11639
11639
  id: "abort-exec-func-var-decl-main-project-ref-id",
11640
11640
  entityType: r.FunctionDeclaration,
11641
- entityId: Bt
11641
+ entityId: wt
11642
11642
  }, $B = {
11643
11643
  type: r.GenericReference,
11644
11644
  id: "abort-exec-func-var-decl-called-by-ref-one-id",
11645
11645
  entityType: r.FunctionDeclaration,
11646
- entityId: Bt
11646
+ entityId: wt
11647
11647
  }, VB = {
11648
11648
  id: Vi,
11649
11649
  type: r.VariableDeclaration,
@@ -11722,7 +11722,7 @@ const NB = {
11722
11722
  type: r.GenericReference,
11723
11723
  id: "long-wait-return-statement-parent-ref-id",
11724
11724
  entityType: r.FunctionDeclaration,
11725
- entityId: Bt
11725
+ entityId: wt
11726
11726
  }, Uu = {
11727
11727
  type: r.ReturnStatement,
11728
11728
  id: $u,
@@ -11770,12 +11770,12 @@ const NB = {
11770
11770
  type: r.GenericReference,
11771
11771
  id: "long-parent-ref-id",
11772
11772
  entityType: r.FunctionDeclaration,
11773
- entityId: Bt
11773
+ entityId: wt
11774
11774
  }, YB = {
11775
11775
  type: r.GenericReference,
11776
11776
  id: "long-called-by-ref-one-id",
11777
11777
  entityType: r.FunctionDeclaration,
11778
- entityId: Bt
11778
+ entityId: wt
11779
11779
  }, zB = {
11780
11780
  id: Nu,
11781
11781
  type: r.OutputMap,
@@ -11837,12 +11837,12 @@ const NB = {
11837
11837
  type: r.GenericReference,
11838
11838
  id: "small-wait-parent-ref-id",
11839
11839
  entityType: r.FunctionDeclaration,
11840
- entityId: Bt
11840
+ entityId: wt
11841
11841
  }, tM = {
11842
11842
  type: r.GenericReference,
11843
11843
  id: "small-wait-called-by-ref-one-id",
11844
11844
  entityType: r.FunctionDeclaration,
11845
- entityId: Bt
11845
+ entityId: wt
11846
11846
  }, nM = {
11847
11847
  id: Wa,
11848
11848
  type: r.Operation,
@@ -20515,7 +20515,7 @@ function d8(n, e) {
20515
20515
  }
20516
20516
  return !(i.length > 0);
20517
20517
  }
20518
- var _t = /* @__PURE__ */ ((n) => (n.BothUnconstrained = "both-unconstrained", n.AConstraintBUnconstrained = "a-constraint-b-unconstrained", n.BConstraintAUnconstrained = "b-constraint-a-unconstrained", n.Same = "same", n.AIsListBIsNot = "a-is-list-b-is-not", n.BIsListAIsNot = "b-is-list-a-is-not", n.AIsNullableBIsNot = "a-is-nullable-b-is-not", n.BIsNullableAIsNot = "b-is-nullable-a-is-not", n.AIsTemplateBIsNot = "a-is-template-b-is-not", n.BIsTemplateAIsNot = "b-is-template-a-is-not", n.BothUntyped = "both-untyped", n.AIsUntypedBIsNot = "a-is-untyped-b-is-not", n.BIsUntypedAIsNot = "b-is-untyped-a-is-not", n.TypeEntityMismatch = "type-entity-mismatch", n.SameCustomEntities = "same-custom-entities", n.CompatibleCustomEntities = "compatible-custom-entities", n.IncompatibleCustomEntities = "incompatible-custom-entities", n.SamePrimitiveEntities = "same-primitive-entities", n.IncompatiblePrimitiveEntities = "incompatible-primitive-entities", n.SameBuiltInBaseEntities = "same-built-in-base-entities", n.IncompatibleBuiltInBaseEntities = "incompatible-built-in-base-entities", n.CheckUnknown = "check-unknown", n))(_t || {});
20518
+ var Mt = /* @__PURE__ */ ((n) => (n.BothUnconstrained = "both-unconstrained", n.AConstraintBUnconstrained = "a-constraint-b-unconstrained", n.BConstraintAUnconstrained = "b-constraint-a-unconstrained", n.Same = "same", n.AIsListBIsNot = "a-is-list-b-is-not", n.BIsListAIsNot = "b-is-list-a-is-not", n.AIsNullableBIsNot = "a-is-nullable-b-is-not", n.BIsNullableAIsNot = "b-is-nullable-a-is-not", n.AIsTemplateBIsNot = "a-is-template-b-is-not", n.BIsTemplateAIsNot = "b-is-template-a-is-not", n.BothUntyped = "both-untyped", n.AIsUntypedBIsNot = "a-is-untyped-b-is-not", n.BIsUntypedAIsNot = "b-is-untyped-a-is-not", n.TypeEntityMismatch = "type-entity-mismatch", n.SameCustomEntities = "same-custom-entities", n.CompatibleCustomEntities = "compatible-custom-entities", n.IncompatibleCustomEntities = "incompatible-custom-entities", n.SamePrimitiveEntities = "same-primitive-entities", n.IncompatiblePrimitiveEntities = "incompatible-primitive-entities", n.SameBuiltInBaseEntities = "same-built-in-base-entities", n.IncompatibleBuiltInBaseEntities = "incompatible-built-in-base-entities", n.CheckUnknown = "check-unknown", n))(Mt || {});
20519
20519
  function lc(n, e) {
20520
20520
  var t, i, a, s, o, d, u, y, m, f, R;
20521
20521
  if (n && n.type !== r.DataType || e && e.type !== r.DataType)
@@ -21165,18 +21165,18 @@ function D(n, e) {
21165
21165
  case r.Operation:
21166
21166
  case r.InternalCall:
21167
21167
  case r.Loop:
21168
- const i = Nt(n.declaration, e);
21168
+ const i = _t(n.declaration, e);
21169
21169
  return D(i, e);
21170
21170
  case r.ActionDescriptor:
21171
21171
  return D8(n);
21172
21172
  case r.BreakStatement:
21173
- const a = Nt(
21173
+ const a = _t(
21174
21174
  n.parent,
21175
21175
  e
21176
21176
  );
21177
21177
  return `Stop loop ${D(a, e)}`;
21178
21178
  case r.ContinueStatement:
21179
- const s = Nt(
21179
+ const s = _t(
21180
21180
  n.parent,
21181
21181
  e
21182
21182
  );
@@ -21185,7 +21185,7 @@ function D(n, e) {
21185
21185
  e
21186
21186
  )}`;
21187
21187
  case r.FunctionCall:
21188
- return Nt(
21188
+ return _t(
21189
21189
  n.declaration,
21190
21190
  e
21191
21191
  ).name;
@@ -21209,12 +21209,12 @@ function D(n, e) {
21209
21209
  return `If ${Ms(d)}`;
21210
21210
  }
21211
21211
  case r.ReturnStatement: {
21212
- const d = Nt(n.parent, e);
21212
+ const d = _t(n.parent, e);
21213
21213
  return `Output of ${D(d, e)}`;
21214
21214
  }
21215
21215
  case r.InputMap:
21216
21216
  if (n.declaration) {
21217
- const d = Nt(
21217
+ const d = _t(
21218
21218
  n.declaration,
21219
21219
  e
21220
21220
  );
@@ -21222,7 +21222,7 @@ function D(n, e) {
21222
21222
  } else
21223
21223
  return n.name || "";
21224
21224
  case r.VariableInstance: {
21225
- const d = Nt(
21225
+ const d = _t(
21226
21226
  n.declaration,
21227
21227
  e
21228
21228
  );
@@ -21230,7 +21230,7 @@ function D(n, e) {
21230
21230
  }
21231
21231
  case r.OutputMap:
21232
21232
  if (n.declaration) {
21233
- const d = Nt(
21233
+ const d = _t(
21234
21234
  n.declaration,
21235
21235
  e
21236
21236
  );
@@ -21316,7 +21316,7 @@ function ff(n, e) {
21316
21316
  issue: null
21317
21317
  })
21318
21318
  );
21319
- const i = n.parent && Nt(n.parent, e) || e;
21319
+ const i = n.parent && _t(n.parent, e) || e;
21320
21320
  if (!i)
21321
21321
  t.push(
21322
21322
  new T({
@@ -21526,7 +21526,7 @@ function e3(n, e) {
21526
21526
  }
21527
21527
  function en(n, e, t) {
21528
21528
  const a = `${eo(n)}-${e}-id`;
21529
- return t.instances[a] ? x.UUID.uuid() : a;
21529
+ return t.instances[a] ? N.UUID.uuid() : a;
21530
21530
  }
21531
21531
  function kc(n, e) {
21532
21532
  let t = "", i = null;
@@ -21541,7 +21541,7 @@ function kc(n, e) {
21541
21541
  D(i, e)
21542
21542
  )}-`), t = `${a}${eo(
21543
21543
  D(n, e)
21544
- )}-id`, e.instances[t] ? x.UUID.uuid() : t;
21544
+ )}-id`, e.instances[t] ? N.UUID.uuid() : t;
21545
21545
  }
21546
21546
  function A8(n) {
21547
21547
  var o;
@@ -22001,7 +22001,7 @@ ${to}`,
22001
22001
  }
22002
22002
  toReference() {
22003
22003
  return {
22004
- id: this.id + "--" + x.UUID.uuid() + "--ref",
22004
+ id: this.id + "--" + N.UUID.uuid() + "--ref",
22005
22005
  type: r.GenericReference,
22006
22006
  entityId: this.id,
22007
22007
  entityType: this.type
@@ -22334,9 +22334,9 @@ ${xn}`, a.push(
22334
22334
  );
22335
22335
  } else {
22336
22336
  const O = f.methods.find(
22337
- (Mt) => {
22337
+ (Bt) => {
22338
22338
  var _e;
22339
- return ((_e = Mt.implements) == null ? void 0 : _e.id) === i.implements;
22339
+ return ((_e = Bt.implements) == null ? void 0 : _e.id) === i.implements;
22340
22340
  }
22341
22341
  );
22342
22342
  O && a.push(
@@ -22353,7 +22353,7 @@ If you want to modify the existing implementation, you can update the existing m
22353
22353
  );
22354
22354
  const $ = i.implements;
22355
22355
  f.abstractMethods.find(
22356
- (Mt) => Mt.id === $
22356
+ (Bt) => Bt.id === $
22357
22357
  ) || a.push(
22358
22358
  new T({
22359
22359
  id: `${i.id}--${p.InvalidImplementsReference}`,
@@ -22609,7 +22609,7 @@ Please consider that any updates might affect the overlap with the signature of
22609
22609
  }
22610
22610
  toReference() {
22611
22611
  return {
22612
- id: this.id + "--" + x.UUID.uuid() + "--ref",
22612
+ id: this.id + "--" + N.UUID.uuid() + "--ref",
22613
22613
  type: r.GenericReference,
22614
22614
  entityId: this.id,
22615
22615
  entityType: this.type
@@ -22710,7 +22710,7 @@ Please consider that any updates might affect the overlap with the signature of
22710
22710
  // Creates a call enitity for this function declaration
22711
22711
  createCall(e = this.project, t = {}) {
22712
22712
  const i = {
22713
- id: t.id || x.UUID.uuid(),
22713
+ id: t.id || N.UUID.uuid(),
22714
22714
  version: t.version || 1,
22715
22715
  type: r.FunctionCall,
22716
22716
  parent: e.toReference(),
@@ -22732,6 +22732,30 @@ Please consider that any updates might affect the overlap with the signature of
22732
22732
  );
22733
22733
  return a.setParent(e), a.initChildren(), e === this.project && this.project.addFunctionCall(a), a;
22734
22734
  }
22735
+ // Creates a call enitity for this function declaration
22736
+ createInternalCall(e, t = {}) {
22737
+ const i = {
22738
+ id: t.id || N.UUID.uuid(),
22739
+ version: t.version || 1,
22740
+ type: r.InternalCall,
22741
+ parent: e.toReference(),
22742
+ successCalls: t.successCalls || [],
22743
+ errorCalls: t.errorCalls || [],
22744
+ inputs: t.inputs || [],
22745
+ outputs: t.outputs || [],
22746
+ error: t.error || null,
22747
+ process: t.process || null,
22748
+ calledBySuccess: t.calledBySuccess || [],
22749
+ calledByError: t.calledByError || [],
22750
+ calledByEntry: t.calledByEntry || [],
22751
+ declaration: this.toJSON(),
22752
+ index: e.internalCalls.length
22753
+ }, a = E(
22754
+ i,
22755
+ this.project
22756
+ );
22757
+ return a.setParent(e), a.initChildren(), a;
22758
+ }
22735
22759
  addReturnStatement(e) {
22736
22760
  return this.returnStatements.includes(e) || this.returnStatements.push(e), this;
22737
22761
  }
@@ -23272,7 +23296,7 @@ Alternatively you can update the entity with 'update' action. Or replace it by f
23272
23296
  }
23273
23297
  toReference() {
23274
23298
  return {
23275
- id: this.id + "--" + x.UUID.uuid() + "--ref",
23299
+ id: this.id + "--" + N.UUID.uuid() + "--ref",
23276
23300
  type: r.GenericReference,
23277
23301
  entityId: this.id,
23278
23302
  entityType: this.type
@@ -23954,7 +23978,7 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
23954
23978
  }
23955
23979
  toReference() {
23956
23980
  return {
23957
- id: this.id + "--" + x.UUID.uuid() + "--ref",
23981
+ id: this.id + "--" + N.UUID.uuid() + "--ref",
23958
23982
  type: r.GenericReference,
23959
23983
  entityId: this.id,
23960
23984
  entityType: this.type
@@ -24445,7 +24469,7 @@ You can attach new logic to the existing 'global-event' but creating a new calla
24445
24469
  }
24446
24470
  toReference() {
24447
24471
  return {
24448
- id: this.id + "--" + x.UUID.uuid() + "--ref",
24472
+ id: this.id + "--" + N.UUID.uuid() + "--ref",
24449
24473
  type: r.GenericReference,
24450
24474
  entityId: this.id,
24451
24475
  entityType: this.type
@@ -25066,7 +25090,7 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
25066
25090
  }
25067
25091
  toReference() {
25068
25092
  return {
25069
- id: this.id + "--" + x.UUID.uuid() + "--ref",
25093
+ id: this.id + "--" + N.UUID.uuid() + "--ref",
25070
25094
  type: r.GenericReference,
25071
25095
  entityId: this.id,
25072
25096
  entityType: this.type
@@ -25642,7 +25666,7 @@ If an entity is called by another, they must be in the same scope, which means t
25642
25666
  }
25643
25667
  toReference() {
25644
25668
  return {
25645
- id: this.id + "--" + x.UUID.uuid() + "--ref",
25669
+ id: this.id + "--" + N.UUID.uuid() + "--ref",
25646
25670
  type: r.GenericReference,
25647
25671
  entityId: this.id,
25648
25672
  entityType: this.type
@@ -25889,6 +25913,7 @@ const ne = class ne {
25889
25913
  l(this, "project");
25890
25914
  // Meta
25891
25915
  l(this, "initialized", !1);
25916
+ l(this, "suggestion", !1);
25892
25917
  this.initialData = e, this.project = t, this.id = e.id, this.version = e.version, this.name = e.name, this.description = e.description, this.x = e.x, this.y = e.y;
25893
25918
  }
25894
25919
  /*
@@ -26056,6 +26081,16 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
26056
26081
  get unusedOutputs() {
26057
26082
  return this.outputs.filter((e) => !e.writesValues.length);
26058
26083
  }
26084
+ get usedInternalCalls() {
26085
+ return this.internalCalls.filter(
26086
+ (e) => !!e.calledBy.length
26087
+ );
26088
+ }
26089
+ get unusedInternalCalls() {
26090
+ return this.internalCalls.filter(
26091
+ (e) => !e.calledBy.length
26092
+ );
26093
+ }
26059
26094
  removeInput(e) {
26060
26095
  const t = this.inputs.findIndex((i) => i.id === e.id);
26061
26096
  return t > -1 && this.inputs.splice(t, 1), this;
@@ -26334,7 +26369,7 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
26334
26369
  }
26335
26370
  toReference() {
26336
26371
  return {
26337
- id: this.id + "--" + x.UUID.uuid() + "--ref",
26372
+ id: this.id + "--" + N.UUID.uuid() + "--ref",
26338
26373
  type: r.GenericReference,
26339
26374
  entityId: this.id,
26340
26375
  entityType: this.type
@@ -26459,7 +26494,7 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
26459
26494
  // Creates an instance enitity for this variable declaration
26460
26495
  createInstance(e = this.project, t = {}) {
26461
26496
  const i = {
26462
- id: t.id || x.UUID.uuid(),
26497
+ id: t.id || N.UUID.uuid(),
26463
26498
  version: t.version || 1,
26464
26499
  type: r.VariableInstance,
26465
26500
  parent: e.toReference(),
@@ -26489,10 +26524,17 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
26489
26524
  generateUnusedInputs() {
26490
26525
  if (this.dataType)
26491
26526
  if (this.dataType.entity) {
26492
- if (this.dataType.entity.type === r.CustomEntity)
26493
- return this.dataType.entity.properties.filter((i) => !this.inputs.find((a) => a.declaration === i)).map((i) => {
26527
+ if ([
26528
+ r.CustomEntity,
26529
+ r.PrimitiveEntity,
26530
+ r.BuiltInBaseEntity
26531
+ ].includes(this.dataType.entity.type))
26532
+ return [
26533
+ ...this.dataType.entity.properties,
26534
+ ...this.dataType.entity.extendedProperties
26535
+ ].filter((i) => !this.inputs.find((a) => a.declaration === i)).map((i) => {
26494
26536
  const a = {
26495
- id: x.UUID.uuid(),
26537
+ id: N.UUID.uuid(),
26496
26538
  version: 1,
26497
26539
  type: r.InputMap,
26498
26540
  parent: this.toReference(),
@@ -26518,10 +26560,17 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
26518
26560
  generateUnusedOutputs() {
26519
26561
  if (this.dataType)
26520
26562
  if (this.dataType.entity) {
26521
- if (this.dataType.entity.type === r.CustomEntity)
26522
- return this.dataType.entity.properties.filter((i) => !this.outputs.find((a) => a.declaration === i)).map((i) => {
26563
+ if ([
26564
+ r.CustomEntity,
26565
+ r.PrimitiveEntity,
26566
+ r.BuiltInBaseEntity
26567
+ ].includes(this.dataType.entity.type))
26568
+ return [
26569
+ ...this.dataType.entity.properties,
26570
+ ...this.dataType.entity.extendedProperties
26571
+ ].filter((i) => !this.outputs.find((a) => a.declaration === i)).map((i) => {
26523
26572
  const a = {
26524
- id: x.UUID.uuid(),
26573
+ id: N.UUID.uuid(),
26525
26574
  version: 1,
26526
26575
  type: r.OutputMap,
26527
26576
  parent: this.toReference(),
@@ -26540,6 +26589,26 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
26540
26589
  return [];
26541
26590
  return [];
26542
26591
  }
26592
+ generateUnusedInternalCalls() {
26593
+ if (this.dataType)
26594
+ if (this.dataType.entity) {
26595
+ if ([
26596
+ r.CustomEntity,
26597
+ r.PrimitiveEntity,
26598
+ r.BuiltInBaseEntity
26599
+ ].includes(this.dataType.entity.type))
26600
+ return [
26601
+ ...this.dataType.entity.getAllInteractiveMethods()
26602
+ ].filter((i) => !this.internalCalls.find((a) => a.declaration === i)).map((i) => {
26603
+ const a = i.createInternalCall(this);
26604
+ return a.suggestion = !0, a;
26605
+ });
26606
+ } else
26607
+ return [];
26608
+ else
26609
+ return [];
26610
+ return [];
26611
+ }
26543
26612
  setDataType(e) {
26544
26613
  return this.dataType = e, this;
26545
26614
  }
@@ -26658,6 +26727,7 @@ const re = class re {
26658
26727
  l(this, "parent");
26659
26728
  // Meta
26660
26729
  l(this, "initialized", !1);
26730
+ l(this, "suggestion", !1);
26661
26731
  this.initialData = e, this.project = t, this.id = e.id, this.version = e.version, this.x = e.x, this.y = e.y;
26662
26732
  }
26663
26733
  /*
@@ -26826,6 +26896,12 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
26826
26896
  get unusedOutputs() {
26827
26897
  return this.outputs.filter((e) => !e.writesValues.length);
26828
26898
  }
26899
+ get usedInternalCalls() {
26900
+ return this.internalCalls.filter((e) => !!e.calledBy.length);
26901
+ }
26902
+ get unusedInternalCalls() {
26903
+ return this.internalCalls.filter((e) => !e.calledBy.length);
26904
+ }
26829
26905
  removeInput(e) {
26830
26906
  const t = this.inputs.findIndex((i) => i.id === e.id);
26831
26907
  return t > -1 && this.inputs.splice(t, 1), this;
@@ -26947,7 +27023,7 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
26947
27023
  }
26948
27024
  },
26949
27025
  []
26950
- ), this.inputs.push(...this.generateUnusedInputs()), this.outputs.push(...this.generateUnusedOutputs()), this;
27026
+ ), this.inputs.push(...this.generateUnusedInputs()), this.outputs.push(...this.generateUnusedOutputs()), this.internalCalls.push(...this.generateUnusedInternalCalls()), this;
26951
27027
  }
26952
27028
  setValueWriter(e) {
26953
27029
  return this.readsValue = e, this;
@@ -27112,7 +27188,7 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
27112
27188
  }
27113
27189
  toReference() {
27114
27190
  return {
27115
- id: this.id + "--" + x.UUID.uuid() + "--ref",
27191
+ id: this.id + "--" + N.UUID.uuid() + "--ref",
27116
27192
  type: r.GenericReference,
27117
27193
  entityId: this.id,
27118
27194
  entityType: this.type
@@ -27245,10 +27321,17 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
27245
27321
  generateUnusedInputs() {
27246
27322
  if (this.declaration.dataType)
27247
27323
  if (this.declaration.dataType.entity) {
27248
- if (this.declaration.dataType.entity.type === r.CustomEntity)
27249
- return this.declaration.dataType.entity.properties.filter((i) => !this.inputs.find((a) => a.declaration === i)).map((i) => {
27324
+ if ([
27325
+ r.CustomEntity,
27326
+ r.PrimitiveEntity,
27327
+ r.BuiltInBaseEntity
27328
+ ].includes(this.declaration.dataType.entity.type))
27329
+ return [
27330
+ ...this.declaration.dataType.entity.properties,
27331
+ ...this.declaration.dataType.entity.extendedProperties
27332
+ ].filter((i) => !this.inputs.find((a) => a.declaration === i)).map((i) => {
27250
27333
  const a = {
27251
- id: x.UUID.uuid(),
27334
+ id: N.UUID.uuid(),
27252
27335
  version: 1,
27253
27336
  type: r.InputMap,
27254
27337
  parent: this.toReference(),
@@ -27274,10 +27357,17 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
27274
27357
  generateUnusedOutputs() {
27275
27358
  if (this.declaration.dataType)
27276
27359
  if (this.declaration.dataType.entity) {
27277
- if (this.declaration.dataType.entity.type === r.CustomEntity)
27278
- return this.declaration.dataType.entity.properties.filter((i) => !this.outputs.find((a) => a.declaration === i)).map((i) => {
27360
+ if ([
27361
+ r.CustomEntity,
27362
+ r.PrimitiveEntity,
27363
+ r.BuiltInBaseEntity
27364
+ ].includes(this.declaration.dataType.entity.type))
27365
+ return [
27366
+ ...this.declaration.dataType.entity.properties,
27367
+ ...this.declaration.dataType.entity.extendedProperties
27368
+ ].filter((i) => !this.outputs.find((a) => a.declaration === i)).map((i) => {
27279
27369
  const a = {
27280
- id: x.UUID.uuid(),
27370
+ id: N.UUID.uuid(),
27281
27371
  version: 1,
27282
27372
  type: r.OutputMap,
27283
27373
  parent: this.toReference(),
@@ -27296,6 +27386,26 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
27296
27386
  return [];
27297
27387
  return [];
27298
27388
  }
27389
+ generateUnusedInternalCalls() {
27390
+ if (this.declaration.dataType)
27391
+ if (this.declaration.dataType.entity) {
27392
+ if ([
27393
+ r.CustomEntity,
27394
+ r.PrimitiveEntity,
27395
+ r.BuiltInBaseEntity
27396
+ ].includes(this.declaration.dataType.entity.type))
27397
+ return [
27398
+ ...this.declaration.dataType.entity.getAllInteractiveMethods()
27399
+ ].filter((i) => !this.internalCalls.find((a) => a.declaration === i)).map((i) => {
27400
+ const a = i.createInternalCall(this);
27401
+ return a.suggestion = !0, a;
27402
+ });
27403
+ } else
27404
+ return [];
27405
+ else
27406
+ return [];
27407
+ return [];
27408
+ }
27299
27409
  getDataType() {
27300
27410
  var e;
27301
27411
  return ((e = this.declaration) == null ? void 0 : e.getDataType()) || null;
@@ -27306,7 +27416,9 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
27306
27416
  );
27307
27417
  }
27308
27418
  getUnusedOutputs() {
27309
- return this.outputs.filter((e) => e.suggestion || !e.writesValues.length);
27419
+ return this.outputs.filter(
27420
+ (e) => e.suggestion || !e.writesValues.length
27421
+ );
27310
27422
  }
27311
27423
  getUsedInputs() {
27312
27424
  return this.inputs.filter(
@@ -27530,7 +27642,7 @@ ${Jc}`,
27530
27642
  ),
27531
27643
  ", ",
27532
27644
  " and "
27533
- )}.` : "The parent entity does not yet have any implemented return declarations.", Mt = g.length ? `The parent entity is still missing the following returns in the implementation: ${_(
27645
+ )}.` : "The parent entity does not yet have any implemented return declarations.", Bt = g.length ? `The parent entity is still missing the following returns in the implementation: ${_(
27534
27646
  g.map(
27535
27647
  (_e) => `'${_e.id}' (${_e.name})`
27536
27648
  ),
@@ -27545,7 +27657,7 @@ ${Jc}`,
27545
27657
  message: `Entity of type '${r.ReturnDeclaration}' with id '${i.id}' should not exist in a parent entity of type '${y.type}' with id '${y.id}' that implements a ${r.ActionDescriptor} with fixed outputs.
27546
27658
  Adding a new return would make the implementation invalid. An return with the same name already exists in the parent entity.
27547
27659
  ${k}
27548
- ${Mt}`,
27660
+ ${Bt}`,
27549
27661
  issue: null
27550
27662
  })
27551
27663
  ) : a.push(
@@ -27556,7 +27668,7 @@ ${Mt}`,
27556
27668
  message: `Entity of type '${r.ReturnDeclaration}' with id '${i.id}' should not exist in a parent entity of type '${y.type}' with id '${y.id}' that implements a ${r.ActionDescriptor} with fixed outputs.
27557
27669
  Adding a new return would make the implementation invalid. There are no returns in the descriptor with the same name.
27558
27670
  ${k}
27559
- ${Mt}`,
27671
+ ${Bt}`,
27560
27672
  issue: null
27561
27673
  })
27562
27674
  );
@@ -27724,7 +27836,7 @@ This is likely an incorrect strategy, either the '${this.type}' entity doesn't n
27724
27836
  }
27725
27837
  toReference() {
27726
27838
  return {
27727
- id: this.id + "--" + x.UUID.uuid() + "--ref",
27839
+ id: this.id + "--" + N.UUID.uuid() + "--ref",
27728
27840
  type: r.GenericReference,
27729
27841
  entityId: this.id,
27730
27842
  entityType: this.type
@@ -27843,7 +27955,7 @@ l(ie, "MUTABLE_DOWNSTREAM_PROPERTIES", []), l(ie, "INMUTABLE_DOWNSTREAM_PROPERTI
27843
27955
  ...ie.UPSTREAM_PROPERTIES,
27844
27956
  ...ie.DOWNSTREAM_PROPERTIES
27845
27957
  ]);
27846
- let Ct = ie;
27958
+ let Ot = ie;
27847
27959
  function k8(n) {
27848
27960
  var o;
27849
27961
  const e = PL(), t = n.toJSON();
@@ -28321,7 +28433,7 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
28321
28433
  }
28322
28434
  toReference() {
28323
28435
  return {
28324
- id: this.id + "--" + x.UUID.uuid() + "--ref",
28436
+ id: this.id + "--" + N.UUID.uuid() + "--ref",
28325
28437
  type: r.GenericReference,
28326
28438
  entityId: this.id,
28327
28439
  entityType: this.type
@@ -28477,9 +28589,9 @@ l(ve, "MUTABLE_DOWNSTREAM_PROPERTIES", [
28477
28589
  ...ve.MUTABLE_DOWNSTREAM_PROPERTIES,
28478
28590
  ...ve.INMUTABLE_DOWNSTREAM_PROPERTIES
28479
28591
  ]), l(ve, "PROPERTIES", [
28480
- ...Ct.META_PROPERTIES,
28481
- ...Ct.UPSTREAM_PROPERTIES,
28482
- ...Ct.DOWNSTREAM_PROPERTIES
28592
+ ...Ot.META_PROPERTIES,
28593
+ ...Ot.UPSTREAM_PROPERTIES,
28594
+ ...Ot.DOWNSTREAM_PROPERTIES
28483
28595
  ]);
28484
28596
  let vr = ve;
28485
28597
  function q8(n) {
@@ -28531,7 +28643,7 @@ const fe = class fe {
28531
28643
  entityId: e.implements,
28532
28644
  entityType: r.Project,
28533
28645
  type: r.GenericReference,
28534
- id: x.UUID.uuid()
28646
+ id: N.UUID.uuid()
28535
28647
  },
28536
28648
  x: 0,
28537
28649
  y: 0,
@@ -28684,7 +28796,7 @@ const fe = class fe {
28684
28796
  }
28685
28797
  toReference() {
28686
28798
  return {
28687
- id: this.id + "--" + x.UUID.uuid() + "--ref",
28799
+ id: this.id + "--" + N.UUID.uuid() + "--ref",
28688
28800
  type: r.GenericReference,
28689
28801
  entityId: this.id,
28690
28802
  entityType: this.type
@@ -28901,6 +29013,7 @@ const ae = class ae {
28901
29013
  l(this, "errors", []);
28902
29014
  // Meta
28903
29015
  l(this, "initialized", !1);
29016
+ l(this, "suggestion", !1);
28904
29017
  this.initialData = e, this.project = t, this.id = e.id, this.version = e.version;
28905
29018
  }
28906
29019
  /*
@@ -29419,7 +29532,7 @@ This is likely an incorrect strategy, either the '${this.type}' entity doesn't n
29419
29532
  }
29420
29533
  toReference() {
29421
29534
  return {
29422
- id: this.id + "--" + x.UUID.uuid() + "--ref",
29535
+ id: this.id + "--" + N.UUID.uuid() + "--ref",
29423
29536
  type: r.GenericReference,
29424
29537
  entityId: this.id,
29425
29538
  entityType: this.type
@@ -29965,7 +30078,7 @@ This is likely an incorrect strategy, either the '${this.type}' entity doesn't n
29965
30078
  }
29966
30079
  toReference() {
29967
30080
  return {
29968
- id: this.id + "--" + x.UUID.uuid() + "--ref",
30081
+ id: this.id + "--" + N.UUID.uuid() + "--ref",
29969
30082
  type: r.GenericReference,
29970
30083
  entityId: this.id,
29971
30084
  entityType: this.type
@@ -30422,7 +30535,7 @@ This is likely an incorrect strategy, either the '${this.type}' entity doesn't n
30422
30535
  }
30423
30536
  toReference() {
30424
30537
  return {
30425
- id: this.id + "--" + x.UUID.uuid() + "--ref",
30538
+ id: this.id + "--" + N.UUID.uuid() + "--ref",
30426
30539
  type: r.GenericReference,
30427
30540
  entityId: this.id,
30428
30541
  entityType: this.type
@@ -30661,10 +30774,10 @@ const le = class le {
30661
30774
  ($) => $.name === i.name
30662
30775
  ), m = u.fixedArguments.filter(($) => !d.inputs.find(
30663
30776
  // @ts-ignore
30664
- (Mt) => (
30777
+ (Bt) => (
30665
30778
  // @ts-ignore
30666
- Mt.type === r.ArgumentDeclaration && // @ts-ignore
30667
- Mt.name === $.name
30779
+ Bt.type === r.ArgumentDeclaration && // @ts-ignore
30780
+ Bt.name === $.name
30668
30781
  )
30669
30782
  )), f = (
30670
30783
  // @ts-ignore
@@ -30881,7 +30994,7 @@ This is likely an incorrect strategy, either the '${this.type}' entity doesn't n
30881
30994
  }
30882
30995
  toReference() {
30883
30996
  return {
30884
- id: this.id + "--" + x.UUID.uuid() + "--ref",
30997
+ id: this.id + "--" + N.UUID.uuid() + "--ref",
30885
30998
  type: r.GenericReference,
30886
30999
  entityId: this.id,
30887
31000
  entityType: this.type
@@ -31270,7 +31383,7 @@ This is likely an incorrect strategy, either the '${this.type}' entity doesn't n
31270
31383
  }
31271
31384
  toReference() {
31272
31385
  return {
31273
- id: this.id + "--" + x.UUID.uuid() + "--ref",
31386
+ id: this.id + "--" + N.UUID.uuid() + "--ref",
31274
31387
  type: r.GenericReference,
31275
31388
  entityId: this.id,
31276
31389
  entityType: this.type
@@ -31670,7 +31783,7 @@ Specifically for continue statements the parent needs to always be the 'loop' en
31670
31783
  }
31671
31784
  toReference() {
31672
31785
  return {
31673
- id: this.id + "--" + x.UUID.uuid() + "--ref",
31786
+ id: this.id + "--" + N.UUID.uuid() + "--ref",
31674
31787
  type: r.GenericReference,
31675
31788
  entityId: this.id,
31676
31789
  entityType: this.type
@@ -32067,7 +32180,7 @@ Specifically for return statements the parent needs to always be the 'function-d
32067
32180
  }
32068
32181
  toReference() {
32069
32182
  return {
32070
- id: this.id + "--" + x.UUID.uuid() + "--ref",
32183
+ id: this.id + "--" + N.UUID.uuid() + "--ref",
32071
32184
  type: r.GenericReference,
32072
32185
  entityId: this.id,
32073
32186
  entityType: this.type
@@ -32167,9 +32280,9 @@ l(Qe, "MUTABLE_DOWNSTREAM_PROPERTIES", ["outputs", "throws"]), l(Qe, "INMUTABLE_
32167
32280
  ...dt.MUTABLE_DOWNSTREAM_PROPERTIES,
32168
32281
  ...dt.INMUTABLE_DOWNSTREAM_PROPERTIES
32169
32282
  ]), l(Qe, "PROPERTIES", [
32170
- ...Ct.META_PROPERTIES,
32171
- ...Ct.UPSTREAM_PROPERTIES,
32172
- ...Ct.DOWNSTREAM_PROPERTIES
32283
+ ...Ot.META_PROPERTIES,
32284
+ ...Ot.UPSTREAM_PROPERTIES,
32285
+ ...Ot.DOWNSTREAM_PROPERTIES
32173
32286
  ]);
32174
32287
  let Pr = Qe;
32175
32288
  function e6(n) {
@@ -32466,7 +32579,7 @@ Specifically for break statements the parent needs to always be the 'loop' entit
32466
32579
  }
32467
32580
  toReference() {
32468
32581
  return {
32469
- id: this.id + "--" + x.UUID.uuid() + "--ref",
32582
+ id: this.id + "--" + N.UUID.uuid() + "--ref",
32470
32583
  type: r.GenericReference,
32471
32584
  entityId: this.id,
32472
32585
  entityType: this.type
@@ -32906,7 +33019,7 @@ This is likely an incorrect strategy, either the '${this.type}' entity doesn't n
32906
33019
  }
32907
33020
  toReference() {
32908
33021
  return {
32909
- id: this.id + "--" + x.UUID.uuid() + "--ref",
33022
+ id: this.id + "--" + N.UUID.uuid() + "--ref",
32910
33023
  type: r.GenericReference,
32911
33024
  entityId: this.id,
32912
33025
  entityType: this.type
@@ -33061,7 +33174,7 @@ This is likely an incorrect strategy, either the '${this.type}' entity doesn't n
33061
33174
  }
33062
33175
  // This function returns an instance of an loop, which is an implementation of this loop declaration
33063
33176
  implementAsLoop(e) {
33064
- const t = e || this.project, i = this.id + "--instance-" + x.UUID.fromUUID(x.UUID.uuid()), a = {
33177
+ const t = e || this.project, i = this.id + "--instance-" + N.UUID.fromUUID(N.UUID.uuid()), a = {
33065
33178
  id: i,
33066
33179
  version: this.version,
33067
33180
  type: r.Loop,
@@ -33095,7 +33208,7 @@ This is likely an incorrect strategy, either the '${this.type}' entity doesn't n
33095
33208
  index: u,
33096
33209
  dynamicArguments: [],
33097
33210
  parent: {
33098
- id: x.UUID.uuid(),
33211
+ id: N.UUID.uuid(),
33099
33212
  type: r.GenericReference,
33100
33213
  entityId: i,
33101
33214
  entityType: r.Loop
@@ -33111,7 +33224,7 @@ This is likely an incorrect strategy, either the '${this.type}' entity doesn't n
33111
33224
  writesValues: [],
33112
33225
  index: u,
33113
33226
  parent: {
33114
- id: x.UUID.uuid(),
33227
+ id: N.UUID.uuid(),
33115
33228
  type: r.GenericReference,
33116
33229
  entityId: i,
33117
33230
  entityType: r.Loop
@@ -33135,7 +33248,7 @@ This is likely an incorrect strategy, either the '${this.type}' entity doesn't n
33135
33248
  x: 0,
33136
33249
  y: 0,
33137
33250
  parent: {
33138
- id: x.UUID.uuid(),
33251
+ id: N.UUID.uuid(),
33139
33252
  type: r.GenericReference,
33140
33253
  entityId: i,
33141
33254
  entityType: r.Loop
@@ -33143,7 +33256,7 @@ This is likely an incorrect strategy, either the '${this.type}' entity doesn't n
33143
33256
  };
33144
33257
  s.inputs = [
33145
33258
  {
33146
- id: x.UUID.uuid(),
33259
+ id: N.UUID.uuid(),
33147
33260
  version: this.version,
33148
33261
  type: r.ArgumentDeclaration,
33149
33262
  name: "Current iteration number",
@@ -33160,7 +33273,7 @@ This is likely an incorrect strategy, either the '${this.type}' entity doesn't n
33160
33273
  }
33161
33274
  },
33162
33275
  {
33163
- id: x.UUID.uuid(),
33276
+ id: N.UUID.uuid(),
33164
33277
  version: this.version,
33165
33278
  type: r.ArgumentDeclaration,
33166
33279
  name: "Previous iterations results",
@@ -33185,7 +33298,7 @@ This is likely an incorrect strategy, either the '${this.type}' entity doesn't n
33185
33298
  }
33186
33299
  // This function returns an instance of an operation, which is an implementation of this operation declaration
33187
33300
  implementAsOperation(e, t) {
33188
- const i = e || this.project, a = t || this.id + "--instance-" + x.UUID.fromUUID(x.UUID.uuid()), s = {
33301
+ const i = e || this.project, a = t || this.id + "--instance-" + N.UUID.fromUUID(N.UUID.uuid()), s = {
33189
33302
  id: a,
33190
33303
  version: this.version,
33191
33304
  type: r.Operation,
@@ -33217,7 +33330,7 @@ This is likely an incorrect strategy, either the '${this.type}' entity doesn't n
33217
33330
  index: u,
33218
33331
  dynamicArguments: [],
33219
33332
  parent: {
33220
- id: x.UUID.uuid(),
33333
+ id: N.UUID.uuid(),
33221
33334
  type: r.GenericReference,
33222
33335
  entityId: a,
33223
33336
  entityType: r.Operation
@@ -33233,7 +33346,7 @@ This is likely an incorrect strategy, either the '${this.type}' entity doesn't n
33233
33346
  writesValues: [],
33234
33347
  index: u,
33235
33348
  parent: {
33236
- id: x.UUID.uuid(),
33349
+ id: N.UUID.uuid(),
33237
33350
  type: r.GenericReference,
33238
33351
  entityId: a,
33239
33352
  entityType: r.Operation
@@ -33249,7 +33362,7 @@ This is likely an incorrect strategy, either the '${this.type}' entity doesn't n
33249
33362
  writesValues: [],
33250
33363
  index: -1,
33251
33364
  parent: {
33252
- id: x.UUID.uuid(),
33365
+ id: N.UUID.uuid(),
33253
33366
  type: r.GenericReference,
33254
33367
  entityId: a,
33255
33368
  entityType: r.Operation
@@ -33264,7 +33377,7 @@ This is likely an incorrect strategy, either the '${this.type}' entity doesn't n
33264
33377
  return o.setParent(i), o.initChildren(), o;
33265
33378
  }
33266
33379
  implementAsCondition(e) {
33267
- const t = e || this.project, i = this.id + "--instance-" + x.UUID.fromUUID(x.UUID.uuid()), a = {
33380
+ const t = e || this.project, i = this.id + "--instance-" + N.UUID.fromUUID(N.UUID.uuid()), a = {
33268
33381
  id: i,
33269
33382
  version: this.version,
33270
33383
  type: r.Condition,
@@ -33294,7 +33407,7 @@ This is likely an incorrect strategy, either the '${this.type}' entity doesn't n
33294
33407
  index: d,
33295
33408
  dynamicArguments: [],
33296
33409
  parent: {
33297
- id: x.UUID.uuid(),
33410
+ id: N.UUID.uuid(),
33298
33411
  type: r.GenericReference,
33299
33412
  entityId: i,
33300
33413
  entityType: r.Condition
@@ -33618,7 +33731,7 @@ ${Xt(
33618
33731
  }
33619
33732
  toReference() {
33620
33733
  return {
33621
- id: this.id + "--" + x.UUID.uuid() + "--ref",
33734
+ id: this.id + "--" + N.UUID.uuid() + "--ref",
33622
33735
  type: r.GenericReference,
33623
33736
  entityId: this.id,
33624
33737
  entityType: this.type
@@ -33825,7 +33938,7 @@ If you are trying to create a new entity, please use a different id, for example
33825
33938
  };
33826
33939
  switch (t.type) {
33827
33940
  case r.Project:
33828
- return x.validateGenerationTarget(
33941
+ return N.validateGenerationTarget(
33829
33942
  t,
33830
33943
  e
33831
33944
  );
@@ -33890,7 +34003,7 @@ If you are trying to create a new entity, please use a different id, for example
33890
34003
  e
33891
34004
  );
33892
34005
  case r.ReturnDeclaration:
33893
- return Ct.validateGenerationTarget(
34006
+ return Ot.validateGenerationTarget(
33894
34007
  t,
33895
34008
  e
33896
34009
  );
@@ -35966,16 +36079,16 @@ function h6(n, e, t) {
35966
36079
  const i = `entity of type "${n.type}" with id "${n.id}"`, a = `entity with id "${n.id}"`, s = `entity of type "${e.type}" with id "${e.id}"`, o = `entity with id "${e.id}"`, d = Qs(
35967
36080
  `${i} and ${s} have incompatible data types and cannot be connected as value-reader and value-writter.`
35968
36081
  );
35969
- return t.type === _t.AIsListBIsNot ? `${d}
35970
- ${a} is a list, but ${o} is not. A list can't be connected to a single value.` : t.type === _t.BIsListAIsNot ? `${d}
35971
- ${a} is not a list, but ${o} is. A single value can't be connected to a list.` : t.type === _t.AIsNullableBIsNot ? `${d}
35972
- ${a} is nullable, but ${o} is not. A nullable value can't be connected to a non-nullable value since an empty value might be incorrectly provided.` : t.type === _t.BIsNullableAIsNot ? `${d}
35973
- ${a} is not nullable, but ${o} is. A non-nullable value can't be connected to a nullable value since an empty value might be incorrectly provided.` : t.type === _t.AIsTemplateBIsNot ? `${d}
35974
- ${a} is a template, but ${o} is not. A data type that provides an entity as a "template" means that the value should be used as the type definition, or prototype of the entity, not as a specific instance of the entity.` : t.type === _t.BIsTemplateAIsNot ? `${d}
35975
- ${a} is not a template, but ${o} is. A data type that provides an entity as a "template" means that the value should be used as the type definition, or prototype of the entity, not as a specific instance of the entity.` : t.type === _t.TypeEntityMismatch ? `${d}
35976
- Their 'entity' property is of different types. They must be of the same type to be connected. For example, the 'entity' can be a '${r.CustomEntity}' or a '${r.PrimitiveEntity}'.` : t.type === _t.IncompatibleCustomEntities ? `${d}
35977
- Both point to custom entities, but they are not compatible to be connected. They must be either the same custom entity, or a custom entity that has equivalent shape, which includes the same properties all with compatible data types with the properties in the counterpart entity.` : t.type === _t.IncompatiblePrimitiveEntities ? `${d}
35978
- ${a} is of primitive type '${((u = n.getDataType()) == null ? void 0 : u.entity).name}' and ${o} is of primitive type '${((y = e.getDataType()) == null ? void 0 : y.entity).name}'. They must be of the same primitive type to be connected.` : t.type === _t.IncompatibleBuiltInBaseEntities ? `${d}
36082
+ return t.type === Mt.AIsListBIsNot ? `${d}
36083
+ ${a} is a list, but ${o} is not. A list can't be connected to a single value.` : t.type === Mt.BIsListAIsNot ? `${d}
36084
+ ${a} is not a list, but ${o} is. A single value can't be connected to a list.` : t.type === Mt.AIsNullableBIsNot ? `${d}
36085
+ ${a} is nullable, but ${o} is not. A nullable value can't be connected to a non-nullable value since an empty value might be incorrectly provided.` : t.type === Mt.BIsNullableAIsNot ? `${d}
36086
+ ${a} is not nullable, but ${o} is. A non-nullable value can't be connected to a nullable value since an empty value might be incorrectly provided.` : t.type === Mt.AIsTemplateBIsNot ? `${d}
36087
+ ${a} is a template, but ${o} is not. A data type that provides an entity as a "template" means that the value should be used as the type definition, or prototype of the entity, not as a specific instance of the entity.` : t.type === Mt.BIsTemplateAIsNot ? `${d}
36088
+ ${a} is not a template, but ${o} is. A data type that provides an entity as a "template" means that the value should be used as the type definition, or prototype of the entity, not as a specific instance of the entity.` : t.type === Mt.TypeEntityMismatch ? `${d}
36089
+ Their 'entity' property is of different types. They must be of the same type to be connected. For example, the 'entity' can be a '${r.CustomEntity}' or a '${r.PrimitiveEntity}'.` : t.type === Mt.IncompatibleCustomEntities ? `${d}
36090
+ Both point to custom entities, but they are not compatible to be connected. They must be either the same custom entity, or a custom entity that has equivalent shape, which includes the same properties all with compatible data types with the properties in the counterpart entity.` : t.type === Mt.IncompatiblePrimitiveEntities ? `${d}
36091
+ ${a} is of primitive type '${((u = n.getDataType()) == null ? void 0 : u.entity).name}' and ${o} is of primitive type '${((y = e.getDataType()) == null ? void 0 : y.entity).name}'. They must be of the same primitive type to be connected.` : t.type === Mt.IncompatibleBuiltInBaseEntities ? `${d}
35979
36092
  Both point to a built-in-base-entity. But${a} is of built-in base type '${((m = n.getDataType()) == null ? void 0 : m.entity).name}' and ${o} is of built-in base type '${((f = e.getDataType()) == null ? void 0 : f.entity).name}'. They must be of the same built-in base type to be connected.` : d;
35980
36093
  }
35981
36094
  function Es(n, e) {
@@ -36498,7 +36611,7 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
36498
36611
  const a = i.map(
36499
36612
  (s, o) => {
36500
36613
  const d = e.includes(s.index) ? this.outputs.length - 1 + o : s.index, u = {
36501
- id: x.UUID.uuid(),
36614
+ id: N.UUID.uuid(),
36502
36615
  type: r.OutputMap,
36503
36616
  version: 1,
36504
36617
  declaration: s,
@@ -36674,7 +36787,7 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
36674
36787
  }
36675
36788
  toReference() {
36676
36789
  return {
36677
- id: this.id + "--" + x.UUID.uuid() + "--ref",
36790
+ id: this.id + "--" + N.UUID.uuid() + "--ref",
36678
36791
  type: r.GenericReference,
36679
36792
  entityId: this.id,
36680
36793
  entityType: this.type
@@ -36980,12 +37093,12 @@ function pc(n, e, t) {
36980
37093
  type: r.GenericReference,
36981
37094
  entityId: i,
36982
37095
  entityType: r.CustomEntity
36983
- }, Mt = {
37096
+ }, Bt = {
36984
37097
  ...$,
36985
37098
  implements: g,
36986
37099
  parent: k
36987
37100
  }, _e = E(
36988
- Mt,
37101
+ Bt,
36989
37102
  n.project
36990
37103
  );
36991
37104
  return y.addMethod(_e), _e.setParent(y), _e.initChildren(), _e.implements = g, _e;
@@ -37779,15 +37892,15 @@ function mc(n) {
37779
37892
  case r.ArgumentDeclaration:
37780
37893
  return Ir;
37781
37894
  case r.ReturnDeclaration:
37782
- return Ct;
37895
+ return Ot;
37783
37896
  case r.Property:
37784
37897
  return hr;
37785
37898
  case r.InstalledProject:
37786
37899
  return gr;
37787
37900
  case r.Project:
37788
- return x;
37901
+ return N;
37789
37902
  case r.BuiltInBaseEntity:
37790
- return Ot;
37903
+ return $t;
37791
37904
  default:
37792
37905
  return null;
37793
37906
  }
@@ -37812,7 +37925,7 @@ function pt(n, e) {
37812
37925
  function $f(n, e) {
37813
37926
  if (Si.includes(n.type) || e.getAllBuiltInIds().includes(n.id))
37814
37927
  return null;
37815
- const i = Nt(
37928
+ const i = _t(
37816
37929
  n.parent,
37817
37930
  e
37818
37931
  );
@@ -37948,7 +38061,7 @@ function k6(n) {
37948
38061
  return !a || a === i ? t : i;
37949
38062
  }, n[0]);
37950
38063
  }
37951
- function Nt(n, e) {
38064
+ function _t(n, e) {
37952
38065
  let t;
37953
38066
  return typeof n == "string" ? t = n : n.type === r.GenericReference ? t = P(n) : t = n.id, t === e.id ? e : e.get(t);
37954
38067
  }
@@ -37965,7 +38078,7 @@ function Kr(n) {
37965
38078
  function Rs(n, e) {
37966
38079
  var t;
37967
38080
  if (n.readsValue) {
37968
- const i = Nt(
38081
+ const i = _t(
37969
38082
  n.readsValue,
37970
38083
  e.project
37971
38084
  );
@@ -38557,9 +38670,13 @@ Alternatively you can update the parent data-type entity with 'update' action to
38557
38670
  this.id,
38558
38671
  ...this.extends.flatMap((i) => i.toFlatIds(e)),
38559
38672
  ...this.implements.flatMap((i) => i.toFlatIds(e)),
38560
- ...this.properties.flatMap((i) => i.toFlatIds(e)),
38673
+ ...this.properties.flatMap(
38674
+ (i) => i.toFlatIds(e)
38675
+ ),
38561
38676
  ...this.methods.flatMap((i) => i.toFlatIds(e)),
38562
- ...this.abstractMethods.flatMap((i) => i.toFlatIds(e))
38677
+ ...this.abstractMethods.flatMap(
38678
+ (i) => i.toFlatIds(e)
38679
+ )
38563
38680
  ]);
38564
38681
  }
38565
38682
  toJSON() {
@@ -38583,7 +38700,7 @@ Alternatively you can update the parent data-type entity with 'update' action to
38583
38700
  }
38584
38701
  toReference() {
38585
38702
  return {
38586
- id: this.id + "--" + x.UUID.uuid() + "--ref",
38703
+ id: this.id + "--" + N.UUID.uuid() + "--ref",
38587
38704
  type: r.GenericReference,
38588
38705
  entityId: this.id,
38589
38706
  entityType: this.type
@@ -38700,9 +38817,7 @@ Alternatively you can update the parent data-type entity with 'update' action to
38700
38817
  );
38701
38818
  return [
38702
38819
  ...this.methods,
38703
- ...this.extends.flatMap(
38704
- (i) => i.getAllInteractiveMethods()
38705
- ),
38820
+ ...this.extends.flatMap((i) => i.getAllInteractiveMethods()),
38706
38821
  ...e.flatMap(
38707
38822
  (i) => i.getAllInteractiveMethods()
38708
38823
  )
@@ -38752,7 +38867,7 @@ function J6(n) {
38752
38867
  const a = [];
38753
38868
  return X(n.errors, a);
38754
38869
  }
38755
- class Ot {
38870
+ class $t {
38756
38871
  constructor(e, t) {
38757
38872
  l(this, "initialData");
38758
38873
  l(this, "id");
@@ -38795,14 +38910,11 @@ class Ot {
38795
38910
  get extendedProperties() {
38796
38911
  return S(
38797
38912
  this.extends.reduce((e, t) => {
38798
- if (t instanceof Ot) {
38799
- const i = [
38800
- ...t.properties,
38801
- ...t.extendedProperties
38802
- ].filter((a) => !a.abstract);
38803
- e.push(...i);
38804
- }
38805
- return e;
38913
+ const i = [
38914
+ ...t.properties,
38915
+ ...t.extendedProperties
38916
+ ].filter((a) => !a.abstract);
38917
+ return [...e, ...i];
38806
38918
  }, [])
38807
38919
  );
38808
38920
  }
@@ -38877,7 +38989,7 @@ class Ot {
38877
38989
  }
38878
38990
  toReference() {
38879
38991
  return {
38880
- id: this.id + "--" + x.UUID.uuid() + "--ref",
38992
+ id: this.id + "--" + N.UUID.uuid() + "--ref",
38881
38993
  type: r.GenericReference,
38882
38994
  entityId: this.id,
38883
38995
  entityType: this.type
@@ -38961,7 +39073,7 @@ class Ot {
38961
39073
  return this.errors;
38962
39074
  }
38963
39075
  clone() {
38964
- return new Ot(this.toJSON(), this.project);
39076
+ return new $t(this.toJSON(), this.project);
38965
39077
  }
38966
39078
  // Assuming the current entity is an abstract entity, it creates a new entity which implements it and all its properties and methods
38967
39079
  implement(e, t) {
@@ -38974,7 +39086,7 @@ class Ot {
38974
39086
  return this.interactive && (e.push(...this.methods), this.extends.filter(
38975
39087
  (i) => i.type === r.BuiltInBaseEntity && i.interactive || i.type === r.PrimitiveEntity
38976
39088
  ).forEach((i) => {
38977
- i instanceof Ot && e.push(...i.getAllInteractiveMethods());
39089
+ i instanceof $t && e.push(...i.getAllInteractiveMethods());
38978
39090
  })), e;
38979
39091
  }
38980
39092
  }
@@ -38984,7 +39096,7 @@ function W6(n) {
38984
39096
  const a = [];
38985
39097
  return X(n.errors, a);
38986
39098
  }
38987
- class xt {
39099
+ class Nt {
38988
39100
  constructor(e, t) {
38989
39101
  l(this, "initialData");
38990
39102
  l(this, "id");
@@ -39022,6 +39134,18 @@ class xt {
39022
39134
  return a.parent = this, a;
39023
39135
  });
39024
39136
  }
39137
+ // Returns the properties that are not abstract from the entities extended by this entity
39138
+ get extendedProperties() {
39139
+ return S(
39140
+ this.extends.reduce((e, t) => {
39141
+ const i = [
39142
+ ...t.properties,
39143
+ ...t.extendedProperties
39144
+ ].filter((a) => !a.abstract);
39145
+ return [...e, ...i];
39146
+ }, [])
39147
+ );
39148
+ }
39025
39149
  subscribe() {
39026
39150
  return this.project.subscribeInstance(this), this;
39027
39151
  }
@@ -39090,7 +39214,7 @@ class xt {
39090
39214
  }
39091
39215
  toReference() {
39092
39216
  return {
39093
- id: this.id + "--" + x.UUID.uuid() + "--ref",
39217
+ id: this.id + "--" + N.UUID.uuid() + "--ref",
39094
39218
  type: r.GenericReference,
39095
39219
  entityId: this.id,
39096
39220
  entityType: this.type
@@ -39172,7 +39296,7 @@ class xt {
39172
39296
  return this.errors;
39173
39297
  }
39174
39298
  clone() {
39175
- return new xt(this.toJSON(), this.project);
39299
+ return new Nt(this.toJSON(), this.project);
39176
39300
  }
39177
39301
  // Returns all methods, own, or inherited from the entities this entity extends
39178
39302
  // That can be called interactively during runtime
@@ -39181,7 +39305,7 @@ class xt {
39181
39305
  return e.push(...this.methods), this.extends.filter(
39182
39306
  (i) => i.type === r.BuiltInBaseEntity && i.interactive || i.type === r.PrimitiveEntity
39183
39307
  ).forEach((i) => {
39184
- i instanceof Ot && e.push(...i.getAllInteractiveMethods());
39308
+ i instanceof $t && e.push(...i.getAllInteractiveMethods());
39185
39309
  }), e;
39186
39310
  }
39187
39311
  }
@@ -39195,7 +39319,7 @@ function bs(n, e) {
39195
39319
  case r.CustomEntity:
39196
39320
  return t || new Sr(n, e);
39197
39321
  case r.PrimitiveEntity:
39198
- return t || new xt(n, e);
39322
+ return t || new Nt(n, e);
39199
39323
  case r.FunctionDeclaration:
39200
39324
  return t || new fr(n, e);
39201
39325
  case r.GlobalEvent:
@@ -39217,13 +39341,13 @@ function bs(n, e) {
39217
39341
  case r.OutputMap:
39218
39342
  return t || new bn(n, e);
39219
39343
  case r.ReturnDeclaration:
39220
- return t || new Ct(n, e);
39344
+ return t || new Ot(n, e);
39221
39345
  case r.ArgumentDeclaration:
39222
39346
  return t || new Ir(n, e);
39223
39347
  case r.InputMap:
39224
39348
  return t || new Rn(n, e);
39225
39349
  case r.Project:
39226
- return t || new x(n);
39350
+ return t || new N(n);
39227
39351
  case r.InstalledProject:
39228
39352
  return t || new gr(n, e);
39229
39353
  case r.ActionDescriptor:
@@ -39237,7 +39361,7 @@ function bs(n, e) {
39237
39361
  case r.ValueDescriptor:
39238
39362
  return t || new Dr(n, e);
39239
39363
  case r.BuiltInBaseEntity:
39240
- return t || new Ot(n, e);
39364
+ return t || new $t(n, e);
39241
39365
  case r.InternalCall:
39242
39366
  return t || new Ii(n, e);
39243
39367
  case r.ContinueStatement:
@@ -39295,7 +39419,7 @@ function q3(n, e) {
39295
39419
  case r.OutputMap:
39296
39420
  return bn.fromGenerationTarget(n, e);
39297
39421
  case r.ReturnDeclaration:
39298
- return Ct.fromGenerationTarget(
39422
+ return Ot.fromGenerationTarget(
39299
39423
  n,
39300
39424
  e
39301
39425
  );
@@ -40348,7 +40472,7 @@ l(H, "MUTABLE_DOWNSTREAM_PROPERTIES", [
40348
40472
  ...H.UPSTREAM_PROPERTIES,
40349
40473
  ...H.DOWNSTREAM_PROPERTIES
40350
40474
  ]);
40351
- let x = H;
40475
+ let N = H;
40352
40476
  class H6 extends Ne {
40353
40477
  constructor(t) {
40354
40478
  super(Ut, t);
@@ -40519,7 +40643,7 @@ function Z6(n) {
40519
40643
  t.initChildren(), n.subscribeBuiltInInstance(t);
40520
40644
  }), n.operationDeclarations = e, e;
40521
40645
  }
40522
- class X6 extends Ot {
40646
+ class X6 extends $t {
40523
40647
  constructor(t) {
40524
40648
  super(Ce, t);
40525
40649
  l(this, "initialData");
@@ -40562,10 +40686,10 @@ class X6 extends Ot {
40562
40686
  function Q6(n) {
40563
40687
  const e = [
40564
40688
  new X6(n),
40565
- new Ot(To, n),
40566
- new Ot(Fn, n),
40567
- new Ot(Sd, n),
40568
- new Ot(mo, n)
40689
+ new $t(To, n),
40690
+ new $t(Fn, n),
40691
+ new $t(Sd, n),
40692
+ new $t(mo, n)
40569
40693
  ];
40570
40694
  return e.forEach((t) => {
40571
40695
  n.subscribeBuiltInInstance(t);
@@ -40573,14 +40697,14 @@ function Q6(n) {
40573
40697
  }
40574
40698
  function K6(n) {
40575
40699
  const e = [
40576
- new xt(L, n),
40577
- new xt(Gn, n),
40578
- new xt(De, n),
40579
- new xt(st, n),
40580
- new xt(Ln, n),
40581
- new xt(vn, n),
40582
- new xt(ao, n),
40583
- new xt(Qc, n)
40700
+ new Nt(L, n),
40701
+ new Nt(Gn, n),
40702
+ new Nt(De, n),
40703
+ new Nt(st, n),
40704
+ new Nt(Ln, n),
40705
+ new Nt(vn, n),
40706
+ new Nt(ao, n),
40707
+ new Nt(Qc, n)
40584
40708
  ];
40585
40709
  return e.forEach((t) => {
40586
40710
  n.subscribeBuiltInInstance(t);
@@ -40647,7 +40771,7 @@ async function i9(n, e = {}) {
40647
40771
  } : { data: t };
40648
40772
  }
40649
40773
  function a9(n) {
40650
- const e = new x(n);
40774
+ const e = new N(n);
40651
40775
  return K6(e), Q6(e), Z6(e), e9(e), t9(e), n9(e), r9(e), e.initChildren(), e;
40652
40776
  }
40653
40777
  async function J3(n, e = {}) {
@@ -40689,7 +40813,7 @@ export {
40689
40813
  n3 as BaseState,
40690
40814
  pd as BaseValueDescriptorIds,
40691
40815
  Di as BreakStatementState,
40692
- Ot as BuiltInBaseEntityState,
40816
+ $t as BuiltInBaseEntityState,
40693
40817
  ar as CACHED_PROJECTS_BY_ID,
40694
40818
  T3 as CALLABLE_ENTITIES_EXPLANATION,
40695
40819
  Vn as CALLABLE_TYPES,
@@ -40713,7 +40837,7 @@ export {
40713
40837
  Xc as DRAGGABLE_ELEMENT_TYPES,
40714
40838
  u9 as DRAGGABLE_EXECUTABLE_TYPES,
40715
40839
  zc as DRAGGABLE_PASS_THROUGH_CALLABLE_TYPES,
40716
- _t as DataTypeCompatibilityTypes,
40840
+ Mt as DataTypeCompatibilityTypes,
40717
40841
  Je as DataTypeParentChildRelation,
40718
40842
  vi as DataTypeState,
40719
40843
  to as ENTITIES_WITH_VALLUES_EXPLANATION,
@@ -40776,13 +40900,13 @@ export {
40776
40900
  o3 as PassThroughCallableEntityClass,
40777
40901
  X6 as PersistedEntity,
40778
40902
  St as PersistedEntityMethods,
40779
- xt as PrimitiveEntityState,
40903
+ Nt as PrimitiveEntityState,
40780
40904
  v as PrimitiveTypes,
40781
40905
  Pi as PrimitiveValueState,
40782
- x as ProjectState,
40906
+ N as ProjectState,
40783
40907
  hr as PropertyState,
40784
40908
  E3 as RETURN_STATEMENT_RETURN_DECLARATIONS_EXPLANATION,
40785
- Ct as ReturnDeclarationState,
40909
+ Ot as ReturnDeclarationState,
40786
40910
  Pr as ReturnStatementState,
40787
40911
  mv as STANDALONE_CONDITIONS,
40788
40912
  vm as STRING_OPERATIONS,
@@ -41340,7 +41464,7 @@ export {
41340
41464
  kc as suggestNewIdForEntity,
41341
41465
  H3 as test_primitive_entities_export,
41342
41466
  X9 as toCamelCase,
41343
- Nt as toEntityState,
41467
+ _t as toEntityState,
41344
41468
  T8 as toKebabCase,
41345
41469
  eo as toLowerCaseKebabCase,
41346
41470
  Q9 as toPascalCase,