document-model 1.0.33 → 1.0.35

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.
Files changed (34) hide show
  1. package/dist/browser/document-model.cjs +1 -1
  2. package/dist/browser/document-model.js +13 -8
  3. package/dist/browser/document.cjs +1 -1
  4. package/dist/browser/document.js +2 -2
  5. package/dist/browser/index.cjs +1 -1
  6. package/dist/browser/index.js +3 -3
  7. package/dist/{node/internal/index-C21AbOFE.js → browser/internal/index-A_QX9cy_.js} +1 -1
  8. package/dist/{node/internal/index-CW5xQQ7a.js → browser/internal/index-CZWjb-hc.js} +1 -1
  9. package/dist/browser/internal/index-CsKglrKe.js +22 -0
  10. package/dist/browser/internal/{index-i5s_5m9e.js → index-DJYIO2I4.js} +572 -405
  11. package/dist/browser/internal/{object-CqQGngpx.js → object-B-Aw8ilC.js} +20 -20
  12. package/dist/browser/internal/{object-BOMJbn2Y.js → object-C8B-mq5Y.js} +1 -1
  13. package/dist/browser/src/document-model/custom/utils.d.ts +7 -1
  14. package/dist/browser/src/document-model/index.d.ts +5 -0
  15. package/dist/browser/test/document-model/validation.test.d.ts +1 -0
  16. package/dist/node/document-model.cjs +1 -1
  17. package/dist/node/document-model.js +12 -7
  18. package/dist/node/document.cjs +1 -1
  19. package/dist/node/document.js +2 -2
  20. package/dist/node/index.cjs +1 -1
  21. package/dist/node/index.js +3 -3
  22. package/dist/node/internal/index-BLZ2ydMH.js +22 -0
  23. package/dist/{browser/internal/index-CBO7uxzK.js → node/internal/index-D_eCXEyL.js} +1 -1
  24. package/dist/node/internal/{index-rIcx-JJZ.js → index-DfxrIKIl.js} +572 -405
  25. package/dist/{browser/internal/index-CTCFa4de.js → node/internal/index-DjP2tO7C.js} +1 -1
  26. package/dist/node/internal/object-B5Lf9AWl.js +2 -0
  27. package/dist/node/internal/{object-BIG1wTk-.js → object-CvntAblp.js} +48 -48
  28. package/dist/node/src/document-model/custom/utils.d.ts +7 -1
  29. package/dist/node/src/document-model/index.d.ts +5 -0
  30. package/dist/node/test/document-model/validation.test.d.ts +1 -0
  31. package/package.json +2 -1
  32. package/dist/browser/internal/index-DTIvFQBH.js +0 -22
  33. package/dist/node/internal/index-CP5hMjbq.js +0 -22
  34. package/dist/node/internal/object-C778ylvS.js +0 -2
@@ -1,7 +1,7 @@
1
- var ut = Object.defineProperty;
2
- var mt = (t, e, r) => e in t ? ut(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r;
3
- var ce = (t, e, r) => (mt(t, typeof e != "symbol" ? e + "" : e, r), r);
4
- import { c as Et, i as ht, a as Ot, b as gt, s as St, d as bt, l as ft, e as _t, f as s, B as l, g as It, h as Tt } from "./object-BIG1wTk-.js";
1
+ var Rt = Object.defineProperty;
2
+ var xt = (t, e, r) => e in t ? Rt(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r;
3
+ var Ee = (t, e, r) => (xt(t, typeof e != "symbol" ? e + "" : e, r), r);
4
+ import { c as At, i as Mt, a as Dt, b as Nt, s as Lt, d as Pt, l as Ct, e as jt, f as a, B as c, g as yt, h as wt } from "./object-CvntAblp.js";
5
5
  import "immer";
6
6
  import "json-stringify-deterministic";
7
7
  import "crypto";
@@ -10,9 +10,166 @@ import "https";
10
10
  import "path";
11
11
  import "jszip";
12
12
  import { z as o } from "zod";
13
- const Rt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
14
- __proto__: null
15
- }, Symbol.toStringTag, { value: "Module" })), de = {
13
+ const kt = new RegExp("([\\p{Ll}\\d])(\\p{Lu})", "gu"), Ut = new RegExp("(\\p{Lu})([\\p{Lu}][\\p{Ll}])", "gu"), vt = new RegExp("(\\d)\\p{Ll}|(\\p{L})\\d", "u"), Ft = /[^\p{L}\d]+/giu, he = "$1\0$2", Oe = "";
14
+ function Se(t) {
15
+ let e = t.trim();
16
+ e = e.replace(kt, he).replace(Ut, he), e = e.replace(Ft, "\0");
17
+ let r = 0, n = e.length;
18
+ for (; e.charAt(r) === "\0"; )
19
+ r++;
20
+ if (r === n)
21
+ return [];
22
+ for (; e.charAt(n - 1) === "\0"; )
23
+ n--;
24
+ return e.slice(r, n).split(/\0/g);
25
+ }
26
+ function $t(t) {
27
+ const e = Se(t);
28
+ for (let r = 0; r < e.length; r++) {
29
+ const n = e[r], i = vt.exec(n);
30
+ if (i) {
31
+ const s = i.index + (i[1] ?? i[2]).length;
32
+ e.splice(r, 1, n.slice(0, s), n.slice(s));
33
+ }
34
+ }
35
+ return e;
36
+ }
37
+ function ge(t, e) {
38
+ const [r, n, i] = Wt(t, e), s = Vt(e == null ? void 0 : e.locale), l = Xt(e == null ? void 0 : e.locale), u = e != null && e.mergeAmbiguousCharacters ? Ht(s, l) : Gt(s, l);
39
+ return r + n.map(u).join((e == null ? void 0 : e.delimiter) ?? "") + i;
40
+ }
41
+ function Vt(t) {
42
+ return t === !1 ? (e) => e.toLowerCase() : (e) => e.toLocaleLowerCase(t);
43
+ }
44
+ function Xt(t) {
45
+ return t === !1 ? (e) => e.toUpperCase() : (e) => e.toLocaleUpperCase(t);
46
+ }
47
+ function Ht(t, e) {
48
+ return (r) => `${e(r[0])}${t(r.slice(1))}`;
49
+ }
50
+ function Gt(t, e) {
51
+ return (r, n) => {
52
+ const i = r[0];
53
+ return (n > 0 && i >= "0" && i <= "9" ? "_" + i : e(i)) + t(r.slice(1));
54
+ };
55
+ }
56
+ function Wt(t, e = {}) {
57
+ const r = e.split ?? (e.separateNumbers ? $t : Se), n = e.prefixCharacters ?? Oe, i = e.suffixCharacters ?? Oe;
58
+ let s = 0, l = t.length;
59
+ for (; s < t.length; ) {
60
+ const u = t.charAt(s);
61
+ if (!n.includes(u))
62
+ break;
63
+ s++;
64
+ }
65
+ for (; l > s; ) {
66
+ const u = l - 1, Tt = t.charAt(u);
67
+ if (!i.includes(Tt))
68
+ break;
69
+ l = u;
70
+ }
71
+ return [
72
+ t.slice(0, s),
73
+ r(t.slice(s, l)),
74
+ t.slice(l)
75
+ ];
76
+ }
77
+ function fe(t, e = !1) {
78
+ const r = [];
79
+ if (e && t === "")
80
+ return r;
81
+ try {
82
+ const n = JSON.parse(t);
83
+ !e && !Object.keys(n).length && r.push({
84
+ message: "Initial state cannot be empty",
85
+ details: {
86
+ initialState: t
87
+ }
88
+ });
89
+ } catch {
90
+ r.push({
91
+ message: "Invalid initial state",
92
+ details: {
93
+ initialState: t
94
+ }
95
+ });
96
+ }
97
+ return r;
98
+ }
99
+ function be(t, e, r = "", n = !0) {
100
+ const i = [];
101
+ if (!n && !t)
102
+ return i.push({
103
+ message: "State schema is required",
104
+ details: {
105
+ schema: t
106
+ }
107
+ }), i;
108
+ if (n && !t)
109
+ return i;
110
+ const s = `type ${ge(e)}${ge(r)}State`;
111
+ return t.includes(s) || i.push({
112
+ message: `Invalid state schema name. Expected ${s}`,
113
+ details: {
114
+ schema: t
115
+ }
116
+ }), i;
117
+ }
118
+ function _e(t) {
119
+ const e = [];
120
+ t.length || e.push({
121
+ message: "Modules are required",
122
+ details: {
123
+ modules: t
124
+ }
125
+ });
126
+ const r = t.reduce(
127
+ (n, i) => [...n, ...T(i)],
128
+ []
129
+ );
130
+ return [...e, ...r];
131
+ }
132
+ function T(t) {
133
+ const e = [];
134
+ t.name || e.push({
135
+ message: "Module name is required",
136
+ details: {
137
+ module: t
138
+ }
139
+ }), t.operations.length || e.push({
140
+ message: "Module operations are required",
141
+ details: {
142
+ module: t
143
+ }
144
+ });
145
+ const r = t.operations.reduce(
146
+ (n, i) => [...n, ...R(i)],
147
+ []
148
+ );
149
+ return [...e, ...r];
150
+ }
151
+ function R(t) {
152
+ const e = [];
153
+ return t.name || e.push({
154
+ message: "Operation name is required",
155
+ details: {
156
+ operation: t
157
+ }
158
+ }), t.schema || e.push({
159
+ message: "Operation schema is required",
160
+ details: {
161
+ operation: t
162
+ }
163
+ }), e;
164
+ }
165
+ const Bt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
166
+ __proto__: null,
167
+ validateInitialState: fe,
168
+ validateModule: T,
169
+ validateModuleOperation: R,
170
+ validateModules: _e,
171
+ validateStateSchemaName: be
172
+ }, Symbol.toStringTag, { value: "Module" })), Ie = {
16
173
  id: "powerhouse/document-model",
17
174
  name: "DocumentModel",
18
175
  extension: "phdm",
@@ -573,8 +730,8 @@ const Rt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
573
730
  }
574
731
  }
575
732
  ]
576
- }, ue = (t) => t != null, At = o.any().refine((t) => ue(t));
577
- function _() {
733
+ }, Te = (t) => t != null, zt = o.any().refine((t) => Te(t));
734
+ function x() {
578
735
  return o.object({
579
736
  __typename: o.literal("AddChangeLogItemInput").optional(),
580
737
  content: o.string(),
@@ -582,14 +739,14 @@ function _() {
582
739
  insertBefore: o.string().nullable()
583
740
  });
584
741
  }
585
- function I() {
742
+ function A() {
586
743
  return o.object({
587
744
  description: o.string().nullish(),
588
745
  id: o.string(),
589
746
  name: o.string()
590
747
  });
591
748
  }
592
- function T() {
749
+ function M() {
593
750
  return o.object({
594
751
  errorCode: o.string().nullish(),
595
752
  errorDescription: o.string().nullish(),
@@ -599,14 +756,14 @@ function T() {
599
756
  operationId: o.string()
600
757
  });
601
758
  }
602
- function R() {
759
+ function D() {
603
760
  return o.object({
604
761
  example: o.string(),
605
762
  id: o.string(),
606
763
  operationId: o.string()
607
764
  });
608
765
  }
609
- function A() {
766
+ function N() {
610
767
  return o.object({
611
768
  description: o.string().nullish(),
612
769
  id: o.string(),
@@ -615,10 +772,10 @@ function A() {
615
772
  reducer: o.string().nullish(),
616
773
  schema: o.string().nullish(),
617
774
  template: o.string().nullish(),
618
- scope: b().nullish()
775
+ scope: _().nullish()
619
776
  });
620
777
  }
621
- function x() {
778
+ function L() {
622
779
  return o.object({
623
780
  scope: o.string(),
624
781
  example: o.string(),
@@ -626,83 +783,79 @@ function x() {
626
783
  insertBefore: o.string().nullish()
627
784
  });
628
785
  }
629
- function me() {
786
+ function Re() {
630
787
  return o.object({
631
788
  __typename: o.literal("Author").optional(),
632
789
  name: o.string(),
633
790
  website: o.string().nullable()
634
791
  });
635
792
  }
636
- function D() {
793
+ function P() {
637
794
  return o.object({
638
795
  __typename: o.literal("CodeExample").optional(),
639
796
  id: o.string(),
640
797
  value: o.string()
641
798
  });
642
799
  }
643
- function M() {
800
+ function C() {
644
801
  return o.object({
645
802
  __typename: o.literal("DeleteChangeLogItemInput").optional(),
646
803
  id: o.string()
647
804
  });
648
805
  }
649
- function N() {
806
+ function j() {
650
807
  return o.object({
651
808
  id: o.string()
652
809
  });
653
810
  }
654
- function L() {
811
+ function y() {
655
812
  return o.object({
656
813
  id: o.string()
657
814
  });
658
815
  }
659
- function P() {
816
+ function w() {
660
817
  return o.object({
661
818
  id: o.string()
662
819
  });
663
820
  }
664
- function j() {
821
+ function k() {
665
822
  return o.object({
666
823
  id: o.string()
667
824
  });
668
825
  }
669
- function C() {
826
+ function U() {
670
827
  return o.object({
671
828
  scope: o.string(),
672
829
  id: o.string()
673
830
  });
674
831
  }
675
- function b() {
832
+ function _() {
676
833
  return o.literal("global").or(o.literal("local"));
677
834
  }
678
- function xt() {
835
+ function qt() {
679
836
  return o.union([
680
- _(),
681
- I(),
682
- T(),
683
- R(),
684
- A(),
685
837
  x(),
838
+ A(),
686
839
  M(),
840
+ D(),
687
841
  N(),
688
842
  L(),
689
- P(),
690
- j(),
691
843
  C(),
692
- k(),
844
+ j(),
693
845
  y(),
694
846
  w(),
695
- v(),
847
+ k(),
696
848
  U(),
697
- V(),
849
+ v(),
698
850
  F(),
699
- H(),
851
+ $(),
852
+ V(),
700
853
  X(),
854
+ H(),
701
855
  G(),
702
- $(),
703
856
  W(),
704
- z(),
705
857
  B(),
858
+ z(),
706
859
  q(),
707
860
  J(),
708
861
  K(),
@@ -717,59 +870,63 @@ function xt() {
717
870
  ie(),
718
871
  se(),
719
872
  ae(),
720
- pe()
873
+ pe(),
874
+ le(),
875
+ ce(),
876
+ de(),
877
+ ue()
721
878
  ]);
722
879
  }
723
- function Dt() {
880
+ function Jt() {
724
881
  return o.object({
725
882
  __typename: o.literal("DocumentModelState").optional(),
726
- author: me(),
883
+ author: Re(),
727
884
  description: o.string(),
728
885
  extension: o.string(),
729
886
  id: o.string(),
730
887
  name: o.string(),
731
- specifications: o.array(Ee())
888
+ specifications: o.array(xe())
732
889
  });
733
890
  }
734
- function Ee() {
891
+ function xe() {
735
892
  return o.object({
736
893
  __typename: o.literal("DocumentSpecification").optional(),
737
894
  changeLog: o.array(o.string()),
738
- modules: o.array(he()),
739
- state: be(),
895
+ modules: o.array(Ae()),
896
+ state: Le(),
740
897
  version: o.number()
741
898
  });
742
899
  }
743
- function he() {
900
+ function Ae() {
744
901
  return o.object({
745
902
  __typename: o.literal("Module").optional(),
746
903
  description: o.string().nullable(),
747
904
  id: o.string(),
748
905
  name: o.string(),
749
- operations: o.array(Oe())
906
+ operations: o.array(Me())
750
907
  });
751
908
  }
752
- function k() {
909
+ function v() {
753
910
  return o.object({
754
911
  newModuleId: o.string(),
755
912
  operationId: o.string()
756
913
  });
757
914
  }
758
- function Oe() {
915
+ function Me() {
759
916
  return o.object({
760
917
  __typename: o.literal("Operation").optional(),
761
918
  description: o.string().nullable(),
762
- errors: o.array(ge()),
763
- examples: o.array(D()),
919
+ errors: o.array(De()),
920
+ examples: o.array(P()),
764
921
  id: o.string(),
765
922
  name: o.string().nullable(),
766
923
  reducer: o.string().nullable(),
767
924
  schema: o.string().nullable(),
768
925
  template: o.string().nullable(),
769
- scope: b()
926
+ scope: _()
770
927
  });
771
928
  }
772
- function ge() {
929
+ function De() {
773
930
  return o.object({
774
931
  __typename: o.literal("OperationError").optional(),
775
932
  code: o.string().nullable(),
@@ -779,247 +936,247 @@ function ge() {
779
936
  template: o.string().nullable()
780
937
  });
781
938
  }
782
- function y() {
939
+ function F() {
783
940
  return o.object({
784
941
  __typename: o.literal("ReorderChangeLogItemsInput").optional(),
785
942
  order: o.array(o.string())
786
943
  });
787
944
  }
788
- function w() {
945
+ function $() {
789
946
  return o.object({
790
947
  moduleId: o.string(),
791
948
  order: o.array(o.string())
792
949
  });
793
950
  }
794
- function v() {
951
+ function V() {
795
952
  return o.object({
796
953
  order: o.array(o.string())
797
954
  });
798
955
  }
799
- function U() {
956
+ function X() {
800
957
  return o.object({
801
958
  operationId: o.string(),
802
959
  order: o.array(o.string())
803
960
  });
804
961
  }
805
- function V() {
962
+ function H() {
806
963
  return o.object({
807
964
  operationId: o.string(),
808
965
  order: o.array(o.string())
809
966
  });
810
967
  }
811
- function F() {
968
+ function G() {
812
969
  return o.object({
813
970
  scope: o.string(),
814
971
  order: o.array(o.string())
815
972
  });
816
973
  }
817
- function H() {
974
+ function W() {
818
975
  return o.object({
819
976
  authorName: o.string()
820
977
  });
821
978
  }
822
- function X() {
979
+ function B() {
823
980
  return o.object({
824
981
  authorWebsite: o.string()
825
982
  });
826
983
  }
827
- function G() {
984
+ function z() {
828
985
  return o.object({
829
986
  scope: o.string(),
830
987
  initialValue: o.string()
831
988
  });
832
989
  }
833
- function $() {
990
+ function q() {
834
991
  return o.object({
835
992
  description: o.string()
836
993
  });
837
994
  }
838
- function W() {
995
+ function J() {
839
996
  return o.object({
840
997
  extension: o.string()
841
998
  });
842
999
  }
843
- function z() {
1000
+ function K() {
844
1001
  return o.object({
845
1002
  id: o.string()
846
1003
  });
847
1004
  }
848
- function B() {
1005
+ function Q() {
849
1006
  return o.object({
850
1007
  name: o.string()
851
1008
  });
852
1009
  }
853
- function q() {
1010
+ function Y() {
854
1011
  return o.object({
855
1012
  description: o.string().nullish(),
856
1013
  id: o.string()
857
1014
  });
858
1015
  }
859
- function J() {
1016
+ function Z() {
860
1017
  return o.object({
861
1018
  id: o.string(),
862
1019
  name: o.string().nullish()
863
1020
  });
864
1021
  }
865
- function K() {
1022
+ function ee() {
866
1023
  return o.object({
867
1024
  description: o.string().nullish(),
868
1025
  id: o.string()
869
1026
  });
870
1027
  }
871
- function Q() {
1028
+ function te() {
872
1029
  return o.object({
873
1030
  errorCode: o.string().nullish(),
874
1031
  id: o.string()
875
1032
  });
876
1033
  }
877
- function Y() {
1034
+ function re() {
878
1035
  return o.object({
879
1036
  errorDescription: o.string().nullish(),
880
1037
  id: o.string()
881
1038
  });
882
1039
  }
883
- function Z() {
1040
+ function oe() {
884
1041
  return o.object({
885
1042
  errorName: o.string().nullish(),
886
1043
  id: o.string()
887
1044
  });
888
1045
  }
889
- function ee() {
1046
+ function ne() {
890
1047
  return o.object({
891
1048
  errorTemplate: o.string().nullish(),
892
1049
  id: o.string()
893
1050
  });
894
1051
  }
895
- function te() {
1052
+ function ie() {
896
1053
  return o.object({
897
1054
  id: o.string(),
898
1055
  name: o.string().nullish()
899
1056
  });
900
1057
  }
901
- function Se() {
1058
+ function Ne() {
902
1059
  return o.object({
903
1060
  id: o.string(),
904
- scope: b()
1061
+ scope: _()
905
1062
  });
906
1063
  }
907
- function re() {
1064
+ function se() {
908
1065
  return o.object({
909
1066
  id: o.string(),
910
1067
  reducer: o.string().nullish()
911
1068
  });
912
1069
  }
913
- function oe() {
1070
+ function ae() {
914
1071
  return o.object({
915
1072
  id: o.string(),
916
1073
  schema: o.string().nullish()
917
1074
  });
918
1075
  }
919
- function ne() {
1076
+ function pe() {
920
1077
  return o.object({
921
1078
  id: o.string(),
922
1079
  template: o.string().nullish()
923
1080
  });
924
1081
  }
925
- function ie() {
1082
+ function le() {
926
1083
  return o.object({
927
1084
  scope: o.string(),
928
1085
  schema: o.string()
929
1086
  });
930
1087
  }
931
- function f() {
1088
+ function I() {
932
1089
  return o.object({
933
1090
  __typename: o.literal("State").optional(),
934
- examples: o.array(D()),
1091
+ examples: o.array(P()),
935
1092
  initialValue: o.string(),
936
1093
  schema: o.string()
937
1094
  });
938
1095
  }
939
- function be() {
1096
+ function Le() {
940
1097
  return o.object({
941
- global: f(),
942
- local: f()
1098
+ global: I(),
1099
+ local: I()
943
1100
  });
944
1101
  }
945
- function se() {
1102
+ function ce() {
946
1103
  return o.object({
947
1104
  __typename: o.literal("UpdateChangeLogItemInput").optional(),
948
1105
  id: o.string(),
949
1106
  newContent: o.string()
950
1107
  });
951
1108
  }
952
- function ae() {
1109
+ function de() {
953
1110
  return o.object({
954
1111
  example: o.string(),
955
1112
  id: o.string()
956
1113
  });
957
1114
  }
958
- function pe() {
1115
+ function ue() {
959
1116
  return o.object({
960
1117
  scope: o.string(),
961
1118
  id: o.string(),
962
1119
  newExample: o.string()
963
1120
  });
964
1121
  }
965
- const Mt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1122
+ const Kt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
966
1123
  __proto__: null,
967
- AddChangeLogItemInputSchema: _,
968
- AddModuleInputSchema: I,
969
- AddOperationErrorInputSchema: T,
970
- AddOperationExampleInputSchema: R,
971
- AddOperationInputSchema: A,
972
- AddStateExampleInputSchema: x,
973
- AuthorSchema: me,
974
- CodeExampleSchema: D,
975
- DeleteChangeLogItemInputSchema: M,
976
- DeleteModuleInputSchema: N,
977
- DeleteOperationErrorInputSchema: L,
978
- DeleteOperationExampleInputSchema: P,
979
- DeleteOperationInputSchema: j,
980
- DeleteStateExampleInputSchema: C,
981
- DocumentModelInputSchema: xt,
982
- DocumentModelStateSchema: Dt,
983
- DocumentSpecificationSchema: Ee,
984
- ModuleSchema: he,
985
- MoveOperationInputSchema: k,
986
- OperationErrorSchema: ge,
987
- OperationSchema: Oe,
988
- OperationScopeSchema: b,
989
- ReorderChangeLogItemsInputSchema: y,
990
- ReorderModuleOperationsInputSchema: w,
991
- ReorderModulesInputSchema: v,
992
- ReorderOperationErrorsInputSchema: U,
993
- ReorderOperationExamplesInputSchema: V,
994
- ReorderStateExamplesInputSchema: F,
995
- ScopeStateSchema: be,
996
- SetAuthorNameInputSchema: H,
997
- SetAuthorWebsiteInputSchema: X,
998
- SetInitialStateInputSchema: G,
999
- SetModelDescriptionInputSchema: $,
1000
- SetModelExtensionInputSchema: W,
1001
- SetModelIdInputSchema: z,
1002
- SetModelNameInputSchema: B,
1003
- SetModuleDescriptionInputSchema: q,
1004
- SetModuleNameInputSchema: J,
1005
- SetOperationDescriptionInputSchema: K,
1006
- SetOperationErrorCodeInputSchema: Q,
1007
- SetOperationErrorDescriptionInputSchema: Y,
1008
- SetOperationErrorNameInputSchema: Z,
1009
- SetOperationErrorTemplateInputSchema: ee,
1010
- SetOperationNameInputSchema: te,
1011
- SetOperationReducerInputSchema: re,
1012
- SetOperationSchemaInputSchema: oe,
1013
- SetOperationScopeInputSchema: Se,
1014
- SetOperationTemplateInputSchema: ne,
1015
- SetStateSchemaInputSchema: ie,
1016
- StateSchema: f,
1017
- UpdateChangeLogItemInputSchema: se,
1018
- UpdateOperationExampleInputSchema: ae,
1019
- UpdateStateExampleInputSchema: pe,
1020
- definedNonNullAnySchema: At,
1021
- isDefinedNonNullAny: ue
1022
- }, Symbol.toStringTag, { value: "Module" })), d = {
1124
+ AddChangeLogItemInputSchema: x,
1125
+ AddModuleInputSchema: A,
1126
+ AddOperationErrorInputSchema: M,
1127
+ AddOperationExampleInputSchema: D,
1128
+ AddOperationInputSchema: N,
1129
+ AddStateExampleInputSchema: L,
1130
+ AuthorSchema: Re,
1131
+ CodeExampleSchema: P,
1132
+ DeleteChangeLogItemInputSchema: C,
1133
+ DeleteModuleInputSchema: j,
1134
+ DeleteOperationErrorInputSchema: y,
1135
+ DeleteOperationExampleInputSchema: w,
1136
+ DeleteOperationInputSchema: k,
1137
+ DeleteStateExampleInputSchema: U,
1138
+ DocumentModelInputSchema: qt,
1139
+ DocumentModelStateSchema: Jt,
1140
+ DocumentSpecificationSchema: xe,
1141
+ ModuleSchema: Ae,
1142
+ MoveOperationInputSchema: v,
1143
+ OperationErrorSchema: De,
1144
+ OperationSchema: Me,
1145
+ OperationScopeSchema: _,
1146
+ ReorderChangeLogItemsInputSchema: F,
1147
+ ReorderModuleOperationsInputSchema: $,
1148
+ ReorderModulesInputSchema: V,
1149
+ ReorderOperationErrorsInputSchema: X,
1150
+ ReorderOperationExamplesInputSchema: H,
1151
+ ReorderStateExamplesInputSchema: G,
1152
+ ScopeStateSchema: Le,
1153
+ SetAuthorNameInputSchema: W,
1154
+ SetAuthorWebsiteInputSchema: B,
1155
+ SetInitialStateInputSchema: z,
1156
+ SetModelDescriptionInputSchema: q,
1157
+ SetModelExtensionInputSchema: J,
1158
+ SetModelIdInputSchema: K,
1159
+ SetModelNameInputSchema: Q,
1160
+ SetModuleDescriptionInputSchema: Y,
1161
+ SetModuleNameInputSchema: Z,
1162
+ SetOperationDescriptionInputSchema: ee,
1163
+ SetOperationErrorCodeInputSchema: te,
1164
+ SetOperationErrorDescriptionInputSchema: re,
1165
+ SetOperationErrorNameInputSchema: oe,
1166
+ SetOperationErrorTemplateInputSchema: ne,
1167
+ SetOperationNameInputSchema: ie,
1168
+ SetOperationReducerInputSchema: se,
1169
+ SetOperationSchemaInputSchema: ae,
1170
+ SetOperationScopeInputSchema: Ne,
1171
+ SetOperationTemplateInputSchema: pe,
1172
+ SetStateSchemaInputSchema: le,
1173
+ StateSchema: I,
1174
+ UpdateChangeLogItemInputSchema: ce,
1175
+ UpdateOperationExampleInputSchema: de,
1176
+ UpdateStateExampleInputSchema: ue,
1177
+ definedNonNullAnySchema: zt,
1178
+ isDefinedNonNullAny: Te
1179
+ }, Symbol.toStringTag, { value: "Module" })), m = {
1023
1180
  setModelNameOperation(t, e) {
1024
1181
  t.name = e.input.name;
1025
1182
  },
@@ -1038,7 +1195,7 @@ const Mt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1038
1195
  setAuthorWebsiteOperation(t, e) {
1039
1196
  t.author = t.author || { name: "", website: null }, t.author.website = e.input.authorWebsite;
1040
1197
  }
1041
- }, E = {
1198
+ }, O = {
1042
1199
  addChangeLogItemOperation(t, e) {
1043
1200
  throw new Error(
1044
1201
  'Reducer "addChangeLogItemOperation" not yet implemented'
@@ -1064,10 +1221,10 @@ const Mt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1064
1221
  'Reducer "releaseNewVersionOperation" not yet implemented'
1065
1222
  );
1066
1223
  }
1067
- }, Nt = (t) => {
1224
+ }, Qt = (t) => {
1068
1225
  const e = {};
1069
1226
  return t.forEach((r, n) => e[r] = n), (r, n) => (e[n.id] || 999999) - (e[r.id] || 999999);
1070
- }, h = {
1227
+ }, g = {
1071
1228
  addModuleOperation(t, e) {
1072
1229
  t.specifications[t.specifications.length - 1].modules.push({
1073
1230
  id: e.input.id,
@@ -1093,12 +1250,12 @@ const Mt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1093
1250
  );
1094
1251
  },
1095
1252
  reorderModulesOperation(t, e) {
1096
- t.specifications[t.specifications.length - 1].modules.sort(Nt(e.input.order));
1253
+ t.specifications[t.specifications.length - 1].modules.sort(Qt(e.input.order));
1097
1254
  }
1098
- }, Lt = (t) => {
1255
+ }, Yt = (t) => {
1099
1256
  const e = {};
1100
1257
  return t.forEach((r, n) => e[r] = n), (r, n) => (e[n.id] || 999999) - (e[r.id] || 999999);
1101
- }, c = {
1258
+ }, d = {
1102
1259
  addOperationErrorOperation(t, e) {
1103
1260
  const r = t.specifications[t.specifications.length - 1];
1104
1261
  for (let n = 0; n < r.modules.length; n++)
@@ -1115,48 +1272,48 @@ const Mt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1115
1272
  const r = t.specifications[t.specifications.length - 1];
1116
1273
  for (let n = 0; n < r.modules.length; n++)
1117
1274
  for (let i = 0; i < r.modules[n].operations.length; i++)
1118
- for (let a = 0; a < r.modules[n].operations[i].errors.length; a++)
1119
- r.modules[n].operations[i].errors[a].id == e.input.id && (r.modules[n].operations[i].errors[a].code = e.input.errorCode || "");
1275
+ for (let s = 0; s < r.modules[n].operations[i].errors.length; s++)
1276
+ r.modules[n].operations[i].errors[s].id == e.input.id && (r.modules[n].operations[i].errors[s].code = e.input.errorCode || "");
1120
1277
  },
1121
1278
  setOperationErrorNameOperation(t, e) {
1122
1279
  const r = t.specifications[t.specifications.length - 1];
1123
1280
  for (let n = 0; n < r.modules.length; n++)
1124
1281
  for (let i = 0; i < r.modules[n].operations.length; i++)
1125
- for (let a = 0; a < r.modules[n].operations[i].errors.length; a++)
1126
- r.modules[n].operations[i].errors[a].id == e.input.id && (r.modules[n].operations[i].errors[a].name = e.input.errorName || "");
1282
+ for (let s = 0; s < r.modules[n].operations[i].errors.length; s++)
1283
+ r.modules[n].operations[i].errors[s].id == e.input.id && (r.modules[n].operations[i].errors[s].name = e.input.errorName || "");
1127
1284
  },
1128
1285
  setOperationErrorDescriptionOperation(t, e) {
1129
1286
  const r = t.specifications[t.specifications.length - 1];
1130
1287
  for (let n = 0; n < r.modules.length; n++)
1131
1288
  for (let i = 0; i < r.modules[n].operations.length; i++)
1132
- for (let a = 0; a < r.modules[n].operations[i].errors.length; a++)
1133
- r.modules[n].operations[i].errors[a].id == e.input.id && (r.modules[n].operations[i].errors[a].description = e.input.errorDescription || "");
1289
+ for (let s = 0; s < r.modules[n].operations[i].errors.length; s++)
1290
+ r.modules[n].operations[i].errors[s].id == e.input.id && (r.modules[n].operations[i].errors[s].description = e.input.errorDescription || "");
1134
1291
  },
1135
1292
  setOperationErrorTemplateOperation(t, e) {
1136
1293
  const r = t.specifications[t.specifications.length - 1];
1137
1294
  for (let n = 0; n < r.modules.length; n++)
1138
1295
  for (let i = 0; i < r.modules[n].operations.length; i++)
1139
- for (let a = 0; a < r.modules[n].operations[i].errors.length; a++)
1140
- r.modules[n].operations[i].errors[a].id == e.input.id && (r.modules[n].operations[i].errors[a].template = e.input.errorTemplate || "");
1296
+ for (let s = 0; s < r.modules[n].operations[i].errors.length; s++)
1297
+ r.modules[n].operations[i].errors[s].id == e.input.id && (r.modules[n].operations[i].errors[s].template = e.input.errorTemplate || "");
1141
1298
  },
1142
1299
  deleteOperationErrorOperation(t, e) {
1143
1300
  const r = t.specifications[t.specifications.length - 1];
1144
1301
  for (let n = 0; n < r.modules.length; n++)
1145
1302
  for (let i = 0; i < r.modules[n].operations.length; i++)
1146
- r.modules[n].operations[i].errors = r.modules[n].operations[i].errors.filter((a) => a.id != e.input.id);
1303
+ r.modules[n].operations[i].errors = r.modules[n].operations[i].errors.filter((s) => s.id != e.input.id);
1147
1304
  },
1148
1305
  reorderOperationErrorsOperation(t, e) {
1149
1306
  const r = t.specifications[t.specifications.length - 1];
1150
1307
  for (let n = 0; n < r.modules.length; n++)
1151
1308
  for (let i = 0; i < r.modules[n].operations.length; i++)
1152
1309
  r.modules[n].operations[i].id == e.input.operationId && r.modules[n].operations[i].errors.sort(
1153
- Lt(e.input.order)
1310
+ Yt(e.input.order)
1154
1311
  );
1155
1312
  }
1156
- }, Pt = (t) => {
1313
+ }, Zt = (t) => {
1157
1314
  const e = {};
1158
1315
  return t.forEach((r, n) => e[r] = n), (r, n) => (e[n.id] || 999999) - (e[r.id] || 999999);
1159
- }, S = {
1316
+ }, b = {
1160
1317
  addOperationExampleOperation(t, e) {
1161
1318
  const r = t.specifications[t.specifications.length - 1];
1162
1319
  for (let n = 0; n < r.modules.length; n++)
@@ -1170,15 +1327,15 @@ const Mt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1170
1327
  const r = t.specifications[t.specifications.length - 1];
1171
1328
  for (let n = 0; n < r.modules.length; n++)
1172
1329
  for (let i = 0; i < r.modules[n].operations.length; i++)
1173
- for (let a = 0; a < r.modules[n].operations[i].examples.length; a++)
1174
- r.modules[n].operations[i].examples[a].id == e.input.id && (r.modules[n].operations[i].examples[a].value = e.input.example);
1330
+ for (let s = 0; s < r.modules[n].operations[i].examples.length; s++)
1331
+ r.modules[n].operations[i].examples[s].id == e.input.id && (r.modules[n].operations[i].examples[s].value = e.input.example);
1175
1332
  },
1176
1333
  deleteOperationExampleOperation(t, e) {
1177
1334
  const r = t.specifications[t.specifications.length - 1];
1178
1335
  for (let n = 0; n < r.modules.length; n++)
1179
1336
  for (let i = 0; i < r.modules[n].operations.length; i++)
1180
1337
  r.modules[n].operations[i].examples = r.modules[n].operations[i].examples.filter(
1181
- (a) => a.id != e.input.id
1338
+ (s) => s.id != e.input.id
1182
1339
  );
1183
1340
  },
1184
1341
  reorderOperationExamplesOperation(t, e) {
@@ -1186,10 +1343,10 @@ const Mt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1186
1343
  for (let n = 0; n < r.modules.length; n++)
1187
1344
  for (let i = 0; i < r.modules[n].operations.length; i++)
1188
1345
  r.modules[n].operations[i].id == e.input.operationId && r.modules[n].operations[i].examples.sort(
1189
- Pt(e.input.order)
1346
+ Zt(e.input.order)
1190
1347
  );
1191
1348
  }
1192
- }, jt = (t) => {
1349
+ }, er = (t) => {
1193
1350
  const e = {};
1194
1351
  return t.forEach((r, n) => e[r] = n), (r, n) => (e[n.id] || 999999) - (e[r.id] || 999999);
1195
1352
  }, p = {
@@ -1247,7 +1404,7 @@ const Mt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1247
1404
  moveOperationOperation(t, e) {
1248
1405
  const r = [], n = t.specifications[t.specifications.length - 1];
1249
1406
  for (let i = 0; i < n.modules.length; i++)
1250
- n.modules[i].operations = n.modules[i].operations.filter((a) => a.id == e.input.operationId ? (r.push(a), !1) : !0);
1407
+ n.modules[i].operations = n.modules[i].operations.filter((s) => s.id == e.input.operationId ? (r.push(s), !1) : !0);
1251
1408
  for (let i = 0; i < n.modules.length; i++)
1252
1409
  n.modules[i].id == e.input.newModuleId && n.modules[i].operations.push(...r);
1253
1410
  },
@@ -1260,13 +1417,13 @@ const Mt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1260
1417
  const r = t.specifications[t.specifications.length - 1];
1261
1418
  for (let n = 0; n < r.modules.length; n++)
1262
1419
  r.modules[n].id == e.input.moduleId && r.modules[n].operations.sort(
1263
- jt(e.input.order)
1420
+ er(e.input.order)
1264
1421
  );
1265
1422
  }
1266
- }, Ct = (t) => {
1423
+ }, tr = (t) => {
1267
1424
  const e = {};
1268
1425
  return t.forEach((r, n) => e[r] = n), (r, n) => (e[n.id] || 999999) - (e[r.id] || 999999);
1269
- }, u = {
1426
+ }, E = {
1270
1427
  setStateSchemaOperation(t, e) {
1271
1428
  const r = t.specifications[t.specifications.length - 1];
1272
1429
  if (Object.keys(r.state).includes(e.input.scope))
@@ -1309,49 +1466,49 @@ const Mt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1309
1466
  reorderStateExamplesOperation(t, e) {
1310
1467
  const r = t.specifications[t.specifications.length - 1];
1311
1468
  if (Object.keys(r.state).includes(e.input.scope))
1312
- r.state[e.input.scope].examples.sort(Ct(e.input.order));
1469
+ r.state[e.input.scope].examples.sort(tr(e.input.order));
1313
1470
  else
1314
1471
  throw new Error(`Invalid scope: ${e.input.scope}`);
1315
1472
  }
1316
- }, kt = (t, e) => {
1317
- if (ht(e))
1473
+ }, rr = (t, e) => {
1474
+ if (Mt(e))
1318
1475
  return t;
1319
1476
  switch (e.type) {
1320
1477
  case "SET_MODEL_NAME":
1321
- B().parse(e.input), d.setModelNameOperation(t.global, e);
1478
+ Q().parse(e.input), m.setModelNameOperation(t.global, e);
1322
1479
  break;
1323
1480
  case "SET_MODEL_ID":
1324
- z().parse(e.input), d.setModelIdOperation(t.global, e);
1481
+ K().parse(e.input), m.setModelIdOperation(t.global, e);
1325
1482
  break;
1326
1483
  case "SET_MODEL_EXTENSION":
1327
- W().parse(e.input), d.setModelExtensionOperation(t.global, e);
1484
+ J().parse(e.input), m.setModelExtensionOperation(t.global, e);
1328
1485
  break;
1329
1486
  case "SET_MODEL_DESCRIPTION":
1330
- $().parse(e.input), d.setModelDescriptionOperation(t.global, e);
1487
+ q().parse(e.input), m.setModelDescriptionOperation(t.global, e);
1331
1488
  break;
1332
1489
  case "SET_AUTHOR_NAME":
1333
- H().parse(e.input), d.setAuthorNameOperation(t.global, e);
1490
+ W().parse(e.input), m.setAuthorNameOperation(t.global, e);
1334
1491
  break;
1335
1492
  case "SET_AUTHOR_WEBSITE":
1336
- X().parse(e.input), d.setAuthorWebsiteOperation(t.global, e);
1493
+ B().parse(e.input), m.setAuthorWebsiteOperation(t.global, e);
1337
1494
  break;
1338
1495
  case "ADD_CHANGE_LOG_ITEM":
1339
- _().parse(e.input), E.addChangeLogItemOperation(t.global, e);
1496
+ x().parse(e.input), O.addChangeLogItemOperation(t.global, e);
1340
1497
  break;
1341
1498
  case "UPDATE_CHANGE_LOG_ITEM":
1342
- se().parse(e.input), E.updateChangeLogItemOperation(
1499
+ ce().parse(e.input), O.updateChangeLogItemOperation(
1343
1500
  t.global,
1344
1501
  e
1345
1502
  );
1346
1503
  break;
1347
1504
  case "DELETE_CHANGE_LOG_ITEM":
1348
- M().parse(e.input), E.deleteChangeLogItemOperation(
1505
+ C().parse(e.input), O.deleteChangeLogItemOperation(
1349
1506
  t.global,
1350
1507
  e
1351
1508
  );
1352
1509
  break;
1353
1510
  case "REORDER_CHANGE_LOG_ITEMS":
1354
- y().parse(e.input), E.reorderChangeLogItemsOperation(
1511
+ F().parse(e.input), O.reorderChangeLogItemsOperation(
1355
1512
  t.global,
1356
1513
  e
1357
1514
  );
@@ -1361,150 +1518,150 @@ const Mt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1361
1518
  throw new Error(
1362
1519
  "Expected empty input for action RELEASE_NEW_VERSION"
1363
1520
  );
1364
- E.releaseNewVersionOperation(t.global, e);
1521
+ O.releaseNewVersionOperation(t.global, e);
1365
1522
  break;
1366
1523
  case "ADD_MODULE":
1367
- I().parse(e.input), h.addModuleOperation(t.global, e);
1524
+ A().parse(e.input), g.addModuleOperation(t.global, e);
1368
1525
  break;
1369
1526
  case "SET_MODULE_NAME":
1370
- J().parse(e.input), h.setModuleNameOperation(t.global, e);
1527
+ Z().parse(e.input), g.setModuleNameOperation(t.global, e);
1371
1528
  break;
1372
1529
  case "SET_MODULE_DESCRIPTION":
1373
- q().parse(e.input), h.setModuleDescriptionOperation(t.global, e);
1530
+ Y().parse(e.input), g.setModuleDescriptionOperation(t.global, e);
1374
1531
  break;
1375
1532
  case "DELETE_MODULE":
1376
- N().parse(e.input), h.deleteModuleOperation(t.global, e);
1533
+ j().parse(e.input), g.deleteModuleOperation(t.global, e);
1377
1534
  break;
1378
1535
  case "REORDER_MODULES":
1379
- v().parse(e.input), h.reorderModulesOperation(t.global, e);
1536
+ V().parse(e.input), g.reorderModulesOperation(t.global, e);
1380
1537
  break;
1381
1538
  case "ADD_OPERATION_ERROR":
1382
- T().parse(e.input), c.addOperationErrorOperation(
1539
+ M().parse(e.input), d.addOperationErrorOperation(
1383
1540
  t.global,
1384
1541
  e
1385
1542
  );
1386
1543
  break;
1387
1544
  case "SET_OPERATION_ERROR_CODE":
1388
- Q().parse(e.input), c.setOperationErrorCodeOperation(
1545
+ te().parse(e.input), d.setOperationErrorCodeOperation(
1389
1546
  t.global,
1390
1547
  e
1391
1548
  );
1392
1549
  break;
1393
1550
  case "SET_OPERATION_ERROR_NAME":
1394
- Z().parse(e.input), c.setOperationErrorNameOperation(
1551
+ oe().parse(e.input), d.setOperationErrorNameOperation(
1395
1552
  t.global,
1396
1553
  e
1397
1554
  );
1398
1555
  break;
1399
1556
  case "SET_OPERATION_ERROR_DESCRIPTION":
1400
- Y().parse(e.input), c.setOperationErrorDescriptionOperation(
1557
+ re().parse(e.input), d.setOperationErrorDescriptionOperation(
1401
1558
  t.global,
1402
1559
  e
1403
1560
  );
1404
1561
  break;
1405
1562
  case "SET_OPERATION_ERROR_TEMPLATE":
1406
- ee().parse(e.input), c.setOperationErrorTemplateOperation(
1563
+ ne().parse(e.input), d.setOperationErrorTemplateOperation(
1407
1564
  t.global,
1408
1565
  e
1409
1566
  );
1410
1567
  break;
1411
1568
  case "DELETE_OPERATION_ERROR":
1412
- L().parse(e.input), c.deleteOperationErrorOperation(
1569
+ y().parse(e.input), d.deleteOperationErrorOperation(
1413
1570
  t.global,
1414
1571
  e
1415
1572
  );
1416
1573
  break;
1417
1574
  case "REORDER_OPERATION_ERRORS":
1418
- U().parse(e.input), c.reorderOperationErrorsOperation(
1575
+ X().parse(e.input), d.reorderOperationErrorsOperation(
1419
1576
  t.global,
1420
1577
  e
1421
1578
  );
1422
1579
  break;
1423
1580
  case "ADD_OPERATION_EXAMPLE":
1424
- R().parse(e.input), S.addOperationExampleOperation(
1581
+ D().parse(e.input), b.addOperationExampleOperation(
1425
1582
  t.global,
1426
1583
  e
1427
1584
  );
1428
1585
  break;
1429
1586
  case "UPDATE_OPERATION_EXAMPLE":
1430
- ae().parse(e.input), S.updateOperationExampleOperation(
1587
+ de().parse(e.input), b.updateOperationExampleOperation(
1431
1588
  t.global,
1432
1589
  e
1433
1590
  );
1434
1591
  break;
1435
1592
  case "DELETE_OPERATION_EXAMPLE":
1436
- P().parse(e.input), S.deleteOperationExampleOperation(
1593
+ w().parse(e.input), b.deleteOperationExampleOperation(
1437
1594
  t.global,
1438
1595
  e
1439
1596
  );
1440
1597
  break;
1441
1598
  case "REORDER_OPERATION_EXAMPLES":
1442
- V().parse(e.input), S.reorderOperationExamplesOperation(
1599
+ H().parse(e.input), b.reorderOperationExamplesOperation(
1443
1600
  t.global,
1444
1601
  e
1445
1602
  );
1446
1603
  break;
1447
1604
  case "ADD_OPERATION":
1448
- A().parse(e.input), p.addOperationOperation(t.global, e);
1605
+ N().parse(e.input), p.addOperationOperation(t.global, e);
1449
1606
  break;
1450
1607
  case "SET_OPERATION_NAME":
1451
- te().parse(e.input), p.setOperationNameOperation(t.global, e);
1608
+ ie().parse(e.input), p.setOperationNameOperation(t.global, e);
1452
1609
  break;
1453
1610
  case "SET_OPERATION_SCOPE":
1454
- Se().parse(e.input), p.setOperationScopeOperation(t.global, e);
1611
+ Ne().parse(e.input), p.setOperationScopeOperation(t.global, e);
1455
1612
  break;
1456
1613
  case "SET_OPERATION_SCHEMA":
1457
- oe().parse(e.input), p.setOperationSchemaOperation(t.global, e);
1614
+ ae().parse(e.input), p.setOperationSchemaOperation(t.global, e);
1458
1615
  break;
1459
1616
  case "SET_OPERATION_DESCRIPTION":
1460
- K().parse(e.input), p.setOperationDescriptionOperation(
1617
+ ee().parse(e.input), p.setOperationDescriptionOperation(
1461
1618
  t.global,
1462
1619
  e
1463
1620
  );
1464
1621
  break;
1465
1622
  case "SET_OPERATION_TEMPLATE":
1466
- ne().parse(e.input), p.setOperationTemplateOperation(
1623
+ pe().parse(e.input), p.setOperationTemplateOperation(
1467
1624
  t.global,
1468
1625
  e
1469
1626
  );
1470
1627
  break;
1471
1628
  case "SET_OPERATION_REDUCER":
1472
- re().parse(e.input), p.setOperationReducerOperation(t.global, e);
1629
+ se().parse(e.input), p.setOperationReducerOperation(t.global, e);
1473
1630
  break;
1474
1631
  case "MOVE_OPERATION":
1475
- k().parse(e.input), p.moveOperationOperation(t.global, e);
1632
+ v().parse(e.input), p.moveOperationOperation(t.global, e);
1476
1633
  break;
1477
1634
  case "DELETE_OPERATION":
1478
- j().parse(e.input), p.deleteOperationOperation(t.global, e);
1635
+ k().parse(e.input), p.deleteOperationOperation(t.global, e);
1479
1636
  break;
1480
1637
  case "REORDER_MODULE_OPERATIONS":
1481
- w().parse(e.input), p.reorderModuleOperationsOperation(
1638
+ $().parse(e.input), p.reorderModuleOperationsOperation(
1482
1639
  t.global,
1483
1640
  e
1484
1641
  );
1485
1642
  break;
1486
1643
  case "SET_STATE_SCHEMA":
1487
- ie().parse(e.input), u.setStateSchemaOperation(t.global, e);
1644
+ le().parse(e.input), E.setStateSchemaOperation(t.global, e);
1488
1645
  break;
1489
1646
  case "SET_INITIAL_STATE":
1490
- G().parse(e.input), u.setInitialStateOperation(t.global, e);
1647
+ z().parse(e.input), E.setInitialStateOperation(t.global, e);
1491
1648
  break;
1492
1649
  case "ADD_STATE_EXAMPLE":
1493
- x().parse(e.input), u.addStateExampleOperation(t.global, e);
1650
+ L().parse(e.input), E.addStateExampleOperation(t.global, e);
1494
1651
  break;
1495
1652
  case "UPDATE_STATE_EXAMPLE":
1496
- pe().parse(e.input), u.updateStateExampleOperation(t.global, e);
1653
+ ue().parse(e.input), E.updateStateExampleOperation(t.global, e);
1497
1654
  break;
1498
1655
  case "DELETE_STATE_EXAMPLE":
1499
- C().parse(e.input), u.deleteStateExampleOperation(t.global, e);
1656
+ U().parse(e.input), E.deleteStateExampleOperation(t.global, e);
1500
1657
  break;
1501
1658
  case "REORDER_STATE_EXAMPLES":
1502
- F().parse(e.input), u.reorderStateExamplesOperation(t.global, e);
1659
+ G().parse(e.input), E.reorderStateExamplesOperation(t.global, e);
1503
1660
  break;
1504
1661
  default:
1505
1662
  return t;
1506
1663
  }
1507
- }, g = Et(kt), yt = {
1664
+ }, f = At(rr), or = {
1508
1665
  id: "",
1509
1666
  name: "",
1510
1667
  extension: "",
@@ -1532,323 +1689,323 @@ const Mt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1532
1689
  modules: []
1533
1690
  }
1534
1691
  ]
1535
- }, wt = {}, O = {
1692
+ }, nr = {}, S = {
1536
1693
  fileExtension: "phdm",
1537
1694
  createState(t) {
1538
1695
  return {
1539
- global: { ...yt, ...t == null ? void 0 : t.global },
1540
- local: { ...wt, ...t == null ? void 0 : t.local }
1696
+ global: { ...or, ...t == null ? void 0 : t.global },
1697
+ local: { ...nr, ...t == null ? void 0 : t.local }
1541
1698
  };
1542
1699
  },
1543
1700
  createExtendedState(t) {
1544
- return Ot(
1701
+ return Dt(
1545
1702
  { ...t, documentType: "powerhouse/document-model" },
1546
- O.createState
1703
+ S.createState
1547
1704
  );
1548
1705
  },
1549
1706
  createDocument(t) {
1550
- return gt(
1551
- O.createExtendedState(t),
1552
- O.createState
1707
+ return Nt(
1708
+ S.createExtendedState(t),
1709
+ S.createState
1553
1710
  );
1554
1711
  },
1555
1712
  saveToFile(t, e, r) {
1556
- return St(t, e, "phdm", r);
1713
+ return Lt(t, e, "phdm", r);
1557
1714
  },
1558
1715
  saveToFileHandle(t, e) {
1559
- return bt(t, e);
1716
+ return Pt(t, e);
1560
1717
  },
1561
1718
  loadFromFile(t) {
1562
- return ft(t, g);
1719
+ return Ct(t, f);
1563
1720
  },
1564
1721
  loadFromInput(t) {
1565
- return _t(t, g);
1722
+ return jt(t, f);
1566
1723
  }
1567
- }, fe = (t) => s(
1724
+ }, Pe = (t) => a(
1568
1725
  "SET_MODEL_NAME",
1569
1726
  { ...t }
1570
- ), _e = (t) => s(
1727
+ ), Ce = (t) => a(
1571
1728
  "SET_MODEL_ID",
1572
1729
  { ...t }
1573
- ), Ie = (t) => s(
1730
+ ), je = (t) => a(
1574
1731
  "SET_MODEL_EXTENSION",
1575
1732
  { ...t }
1576
- ), Te = (t) => s(
1733
+ ), ye = (t) => a(
1577
1734
  "SET_MODEL_DESCRIPTION",
1578
1735
  { ...t }
1579
- ), Re = (t) => s(
1736
+ ), we = (t) => a(
1580
1737
  "SET_AUTHOR_NAME",
1581
1738
  { ...t }
1582
- ), Ae = (t) => s(
1739
+ ), ke = (t) => a(
1583
1740
  "SET_AUTHOR_WEBSITE",
1584
1741
  { ...t }
1585
1742
  );
1586
- class vt extends l {
1743
+ class ir extends c {
1587
1744
  setModelName(e, r) {
1588
- return this.dispatch(fe(e), r);
1745
+ return this.dispatch(Pe(e), r);
1589
1746
  }
1590
1747
  setModelId(e, r) {
1591
- return this.dispatch(_e(e), r);
1748
+ return this.dispatch(Ce(e), r);
1592
1749
  }
1593
1750
  setModelExtension(e, r) {
1594
- return this.dispatch(Ie(e), r);
1751
+ return this.dispatch(je(e), r);
1595
1752
  }
1596
1753
  setModelDescription(e, r) {
1597
- return this.dispatch(Te(e), r);
1754
+ return this.dispatch(ye(e), r);
1598
1755
  }
1599
1756
  setAuthorName(e, r) {
1600
- return this.dispatch(Re(e), r);
1757
+ return this.dispatch(we(e), r);
1601
1758
  }
1602
1759
  setAuthorWebsite(e, r) {
1603
- return this.dispatch(Ae(e), r);
1760
+ return this.dispatch(ke(e), r);
1604
1761
  }
1605
1762
  }
1606
- const xe = (t) => s(
1763
+ const Ue = (t) => a(
1607
1764
  "ADD_CHANGE_LOG_ITEM",
1608
1765
  { ...t }
1609
- ), De = (t) => s(
1766
+ ), ve = (t) => a(
1610
1767
  "UPDATE_CHANGE_LOG_ITEM",
1611
1768
  { ...t }
1612
- ), Me = (t) => s(
1769
+ ), Fe = (t) => a(
1613
1770
  "DELETE_CHANGE_LOG_ITEM",
1614
1771
  { ...t }
1615
- ), Ne = (t) => s(
1772
+ ), $e = (t) => a(
1616
1773
  "REORDER_CHANGE_LOG_ITEMS",
1617
1774
  { ...t }
1618
- ), Le = () => s(
1775
+ ), Ve = () => a(
1619
1776
  "RELEASE_NEW_VERSION"
1620
1777
  );
1621
- class Ut extends l {
1778
+ class sr extends c {
1622
1779
  addChangeLogItem(e, r) {
1623
- return this.dispatch(xe(e), r);
1780
+ return this.dispatch(Ue(e), r);
1624
1781
  }
1625
1782
  updateChangeLogItem(e, r) {
1626
- return this.dispatch(De(e), r);
1783
+ return this.dispatch(ve(e), r);
1627
1784
  }
1628
1785
  deleteChangeLogItem(e, r) {
1629
- return this.dispatch(Me(e), r);
1786
+ return this.dispatch(Fe(e), r);
1630
1787
  }
1631
1788
  reorderChangeLogItems(e, r) {
1632
- return this.dispatch(Ne(e), r);
1789
+ return this.dispatch($e(e), r);
1633
1790
  }
1634
1791
  releaseNewVersion(e) {
1635
- return this.dispatch(Le(), e);
1792
+ return this.dispatch(Ve(), e);
1636
1793
  }
1637
1794
  }
1638
- const Pe = (t) => s(
1795
+ const Xe = (t) => a(
1639
1796
  "ADD_MODULE",
1640
1797
  { ...t }
1641
- ), je = (t) => s(
1798
+ ), He = (t) => a(
1642
1799
  "SET_MODULE_NAME",
1643
1800
  { ...t }
1644
- ), Ce = (t) => s(
1801
+ ), Ge = (t) => a(
1645
1802
  "SET_MODULE_DESCRIPTION",
1646
1803
  { ...t }
1647
- ), ke = (t) => s(
1804
+ ), We = (t) => a(
1648
1805
  "DELETE_MODULE",
1649
1806
  { ...t }
1650
- ), ye = (t) => s(
1807
+ ), Be = (t) => a(
1651
1808
  "REORDER_MODULES",
1652
1809
  { ...t }
1653
1810
  );
1654
- class Vt extends l {
1811
+ class ar extends c {
1655
1812
  addModule(e, r) {
1656
- return this.dispatch(Pe(e), r);
1813
+ return this.dispatch(Xe(e), r);
1657
1814
  }
1658
1815
  setModuleName(e, r) {
1659
- return this.dispatch(je(e), r);
1816
+ return this.dispatch(He(e), r);
1660
1817
  }
1661
1818
  setModuleDescription(e, r) {
1662
- return this.dispatch(Ce(e), r);
1819
+ return this.dispatch(Ge(e), r);
1663
1820
  }
1664
1821
  deleteModule(e, r) {
1665
- return this.dispatch(ke(e), r);
1822
+ return this.dispatch(We(e), r);
1666
1823
  }
1667
1824
  reorderModules(e, r) {
1668
- return this.dispatch(ye(e), r);
1825
+ return this.dispatch(Be(e), r);
1669
1826
  }
1670
1827
  }
1671
- const we = (t) => s(
1828
+ const ze = (t) => a(
1672
1829
  "ADD_OPERATION_ERROR",
1673
1830
  { ...t }
1674
- ), ve = (t) => s(
1831
+ ), qe = (t) => a(
1675
1832
  "SET_OPERATION_ERROR_CODE",
1676
1833
  { ...t }
1677
- ), Ue = (t) => s(
1834
+ ), Je = (t) => a(
1678
1835
  "SET_OPERATION_ERROR_NAME",
1679
1836
  { ...t }
1680
- ), Ve = (t) => s(
1837
+ ), Ke = (t) => a(
1681
1838
  "SET_OPERATION_ERROR_DESCRIPTION",
1682
1839
  { ...t }
1683
- ), Fe = (t) => s(
1840
+ ), Qe = (t) => a(
1684
1841
  "SET_OPERATION_ERROR_TEMPLATE",
1685
1842
  { ...t }
1686
- ), He = (t) => s(
1843
+ ), Ye = (t) => a(
1687
1844
  "DELETE_OPERATION_ERROR",
1688
1845
  { ...t }
1689
- ), Xe = (t) => s(
1846
+ ), Ze = (t) => a(
1690
1847
  "REORDER_OPERATION_ERRORS",
1691
1848
  { ...t }
1692
1849
  );
1693
- class Ft extends l {
1850
+ class pr extends c {
1694
1851
  addOperationError(e, r) {
1695
- return this.dispatch(we(e), r);
1852
+ return this.dispatch(ze(e), r);
1696
1853
  }
1697
1854
  setOperationErrorCode(e, r) {
1698
- return this.dispatch(ve(e), r);
1855
+ return this.dispatch(qe(e), r);
1699
1856
  }
1700
1857
  setOperationErrorName(e, r) {
1701
- return this.dispatch(Ue(e), r);
1858
+ return this.dispatch(Je(e), r);
1702
1859
  }
1703
1860
  setOperationErrorDescription(e, r) {
1704
- return this.dispatch(Ve(e), r);
1861
+ return this.dispatch(Ke(e), r);
1705
1862
  }
1706
1863
  setOperationErrorTemplate(e, r) {
1707
- return this.dispatch(Fe(e), r);
1864
+ return this.dispatch(Qe(e), r);
1708
1865
  }
1709
1866
  deleteOperationError(e, r) {
1710
- return this.dispatch(He(e), r);
1867
+ return this.dispatch(Ye(e), r);
1711
1868
  }
1712
1869
  reorderOperationErrors(e, r) {
1713
- return this.dispatch(Xe(e), r);
1870
+ return this.dispatch(Ze(e), r);
1714
1871
  }
1715
1872
  }
1716
- const Ge = (t) => s(
1873
+ const et = (t) => a(
1717
1874
  "ADD_OPERATION_EXAMPLE",
1718
1875
  { ...t }
1719
- ), $e = (t) => s(
1876
+ ), tt = (t) => a(
1720
1877
  "UPDATE_OPERATION_EXAMPLE",
1721
1878
  { ...t }
1722
- ), We = (t) => s(
1879
+ ), rt = (t) => a(
1723
1880
  "DELETE_OPERATION_EXAMPLE",
1724
1881
  { ...t }
1725
- ), ze = (t) => s(
1882
+ ), ot = (t) => a(
1726
1883
  "REORDER_OPERATION_EXAMPLES",
1727
1884
  { ...t }
1728
1885
  );
1729
- class Ht extends l {
1886
+ class lr extends c {
1730
1887
  addOperationExample(e, r) {
1731
- return this.dispatch(Ge(e), r);
1888
+ return this.dispatch(et(e), r);
1732
1889
  }
1733
1890
  updateOperationExample(e, r) {
1734
- return this.dispatch($e(e), r);
1891
+ return this.dispatch(tt(e), r);
1735
1892
  }
1736
1893
  deleteOperationExample(e, r) {
1737
- return this.dispatch(We(e), r);
1894
+ return this.dispatch(rt(e), r);
1738
1895
  }
1739
1896
  reorderOperationExamples(e, r) {
1740
- return this.dispatch(ze(e), r);
1897
+ return this.dispatch(ot(e), r);
1741
1898
  }
1742
1899
  }
1743
- const Be = (t) => s(
1900
+ const nt = (t) => a(
1744
1901
  "ADD_OPERATION",
1745
1902
  { ...t }
1746
- ), qe = (t) => s(
1903
+ ), it = (t) => a(
1747
1904
  "SET_OPERATION_NAME",
1748
1905
  { ...t }
1749
- ), Je = (t) => s(
1906
+ ), st = (t) => a(
1750
1907
  "SET_OPERATION_SCOPE",
1751
1908
  { ...t }
1752
- ), Ke = (t) => s(
1909
+ ), at = (t) => a(
1753
1910
  "SET_OPERATION_SCHEMA",
1754
1911
  { ...t }
1755
- ), Qe = (t) => s(
1912
+ ), pt = (t) => a(
1756
1913
  "SET_OPERATION_DESCRIPTION",
1757
1914
  { ...t }
1758
- ), Ye = (t) => s(
1915
+ ), lt = (t) => a(
1759
1916
  "SET_OPERATION_TEMPLATE",
1760
1917
  { ...t }
1761
- ), Ze = (t) => s(
1918
+ ), ct = (t) => a(
1762
1919
  "SET_OPERATION_REDUCER",
1763
1920
  { ...t }
1764
- ), et = (t) => s(
1921
+ ), dt = (t) => a(
1765
1922
  "MOVE_OPERATION",
1766
1923
  { ...t }
1767
- ), tt = (t) => s(
1924
+ ), ut = (t) => a(
1768
1925
  "DELETE_OPERATION",
1769
1926
  { ...t }
1770
- ), rt = (t) => s(
1927
+ ), mt = (t) => a(
1771
1928
  "REORDER_MODULE_OPERATIONS",
1772
1929
  { ...t }
1773
1930
  );
1774
- class Xt extends l {
1931
+ class cr extends c {
1775
1932
  addOperation(e, r) {
1776
- return this.dispatch(Be(e), r);
1933
+ return this.dispatch(nt(e), r);
1777
1934
  }
1778
1935
  setOperationName(e, r) {
1779
- return this.dispatch(qe(e), r);
1936
+ return this.dispatch(it(e), r);
1780
1937
  }
1781
1938
  setOperationScope(e, r) {
1782
- return this.dispatch(Je(e), r);
1939
+ return this.dispatch(st(e), r);
1783
1940
  }
1784
1941
  setOperationSchema(e, r) {
1785
- return this.dispatch(Ke(e), r);
1942
+ return this.dispatch(at(e), r);
1786
1943
  }
1787
1944
  setOperationDescription(e, r) {
1788
- return this.dispatch(Qe(e), r);
1945
+ return this.dispatch(pt(e), r);
1789
1946
  }
1790
1947
  setOperationTemplate(e, r) {
1791
- return this.dispatch(Ye(e), r);
1948
+ return this.dispatch(lt(e), r);
1792
1949
  }
1793
1950
  setOperationReducer(e, r) {
1794
- return this.dispatch(Ze(e), r);
1951
+ return this.dispatch(ct(e), r);
1795
1952
  }
1796
1953
  moveOperation(e, r) {
1797
- return this.dispatch(et(e), r);
1954
+ return this.dispatch(dt(e), r);
1798
1955
  }
1799
1956
  deleteOperation(e, r) {
1800
- return this.dispatch(tt(e), r);
1957
+ return this.dispatch(ut(e), r);
1801
1958
  }
1802
1959
  reorderModuleOperations(e, r) {
1803
- return this.dispatch(rt(e), r);
1960
+ return this.dispatch(mt(e), r);
1804
1961
  }
1805
1962
  }
1806
- const ot = (t) => s(
1963
+ const Et = (t) => a(
1807
1964
  "SET_STATE_SCHEMA",
1808
1965
  { ...t }
1809
- ), nt = (t) => s(
1966
+ ), ht = (t) => a(
1810
1967
  "SET_INITIAL_STATE",
1811
1968
  { ...t }
1812
- ), it = (t) => s(
1969
+ ), Ot = (t) => a(
1813
1970
  "ADD_STATE_EXAMPLE",
1814
1971
  { ...t }
1815
- ), st = (t) => s(
1972
+ ), gt = (t) => a(
1816
1973
  "UPDATE_STATE_EXAMPLE",
1817
1974
  { ...t }
1818
- ), at = (t) => s(
1975
+ ), St = (t) => a(
1819
1976
  "DELETE_STATE_EXAMPLE",
1820
1977
  { ...t }
1821
- ), pt = (t) => s(
1978
+ ), ft = (t) => a(
1822
1979
  "REORDER_STATE_EXAMPLES",
1823
1980
  { ...t }
1824
1981
  );
1825
- class Gt extends l {
1982
+ class dr extends c {
1826
1983
  setStateSchema(e, r) {
1827
- return this.dispatch(ot(e), r);
1984
+ return this.dispatch(Et(e), r);
1828
1985
  }
1829
1986
  setInitialState(e, r) {
1830
- return this.dispatch(nt(e), r);
1987
+ return this.dispatch(ht(e), r);
1831
1988
  }
1832
1989
  addStateExample(e, r) {
1833
- return this.dispatch(it(e), r);
1990
+ return this.dispatch(Ot(e), r);
1834
1991
  }
1835
1992
  updateStateExample(e, r) {
1836
- return this.dispatch(st(e), r);
1993
+ return this.dispatch(gt(e), r);
1837
1994
  }
1838
1995
  deleteStateExample(e, r) {
1839
- return this.dispatch(at(e), r);
1996
+ return this.dispatch(St(e), r);
1840
1997
  }
1841
1998
  reorderStateExamples(e, r) {
1842
- return this.dispatch(pt(e), r);
1999
+ return this.dispatch(ft(e), r);
1843
2000
  }
1844
2001
  }
1845
- var m;
1846
- let le = (m = class extends l {
2002
+ var h;
2003
+ let me = (h = class extends c {
1847
2004
  constructor(e, r) {
1848
- super(g, O.createDocument(e), r);
2005
+ super(f, S.createDocument(e), r);
1849
2006
  }
1850
2007
  saveToFile(e, r) {
1851
- return super.saveToFile(e, m.fileExtension, r);
2008
+ return super.saveToFile(e, h.fileExtension, r);
1852
2009
  }
1853
2010
  loadFromFile(e) {
1854
2011
  return super.loadFromFile(e);
@@ -1857,86 +2014,96 @@ let le = (m = class extends l {
1857
2014
  const r = new this();
1858
2015
  return await r.loadFromFile(e), r;
1859
2016
  }
1860
- }, ce(m, "fileExtension", "phdm"), m);
1861
- It(le, [
1862
- vt,
1863
- Ut,
1864
- Vt,
1865
- Ft,
1866
- Ht,
1867
- Xt,
1868
- Gt
2017
+ }, Ee(h, "fileExtension", "phdm"), h);
2018
+ yt(me, [
2019
+ ir,
2020
+ sr,
2021
+ ar,
2022
+ pr,
2023
+ lr,
2024
+ cr,
2025
+ dr
1869
2026
  ]);
1870
- const $t = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2027
+ const ur = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1871
2028
  __proto__: null,
1872
- addChangeLogItem: xe,
1873
- addModule: Pe,
1874
- addOperation: Be,
1875
- addOperationError: we,
1876
- addOperationExample: Ge,
1877
- addStateExample: it,
1878
- deleteChangeLogItem: Me,
1879
- deleteModule: ke,
1880
- deleteOperation: tt,
1881
- deleteOperationError: He,
1882
- deleteOperationExample: We,
1883
- deleteStateExample: at,
1884
- moveOperation: et,
1885
- releaseNewVersion: Le,
1886
- reorderChangeLogItems: Ne,
1887
- reorderModuleOperations: rt,
1888
- reorderModules: ye,
1889
- reorderOperationErrors: Xe,
1890
- reorderOperationExamples: ze,
1891
- reorderStateExamples: pt,
1892
- setAuthorName: Re,
1893
- setAuthorWebsite: Ae,
1894
- setInitialState: nt,
1895
- setModelDescription: Te,
1896
- setModelExtension: Ie,
1897
- setModelId: _e,
1898
- setModelName: fe,
1899
- setModuleDescription: Ce,
1900
- setModuleName: je,
1901
- setOperationDescription: Qe,
1902
- setOperationErrorCode: ve,
1903
- setOperationErrorDescription: Ve,
1904
- setOperationErrorName: Ue,
1905
- setOperationErrorTemplate: Fe,
1906
- setOperationName: qe,
1907
- setOperationReducer: Ze,
1908
- setOperationSchema: Ke,
1909
- setOperationScope: Je,
1910
- setOperationTemplate: Ye,
1911
- setStateSchema: ot,
1912
- updateChangeLogItem: De,
1913
- updateOperationExample: $e,
1914
- updateStateExample: st
1915
- }, Symbol.toStringTag, { value: "Module" })), lt = le, ct = { ...O, ...Rt }, dt = { ...Tt, ...$t }, Wt = {
1916
- Document: lt,
1917
- reducer: g,
1918
- actions: dt,
1919
- utils: ct,
1920
- documentModel: de
1921
- }, rr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2029
+ addChangeLogItem: Ue,
2030
+ addModule: Xe,
2031
+ addOperation: nt,
2032
+ addOperationError: ze,
2033
+ addOperationExample: et,
2034
+ addStateExample: Ot,
2035
+ deleteChangeLogItem: Fe,
2036
+ deleteModule: We,
2037
+ deleteOperation: ut,
2038
+ deleteOperationError: Ye,
2039
+ deleteOperationExample: rt,
2040
+ deleteStateExample: St,
2041
+ moveOperation: dt,
2042
+ releaseNewVersion: Ve,
2043
+ reorderChangeLogItems: $e,
2044
+ reorderModuleOperations: mt,
2045
+ reorderModules: Be,
2046
+ reorderOperationErrors: Ze,
2047
+ reorderOperationExamples: ot,
2048
+ reorderStateExamples: ft,
2049
+ setAuthorName: we,
2050
+ setAuthorWebsite: ke,
2051
+ setInitialState: ht,
2052
+ setModelDescription: ye,
2053
+ setModelExtension: je,
2054
+ setModelId: Ce,
2055
+ setModelName: Pe,
2056
+ setModuleDescription: Ge,
2057
+ setModuleName: He,
2058
+ setOperationDescription: pt,
2059
+ setOperationErrorCode: qe,
2060
+ setOperationErrorDescription: Ke,
2061
+ setOperationErrorName: Je,
2062
+ setOperationErrorTemplate: Qe,
2063
+ setOperationName: it,
2064
+ setOperationReducer: ct,
2065
+ setOperationSchema: at,
2066
+ setOperationScope: st,
2067
+ setOperationTemplate: lt,
2068
+ setStateSchema: Et,
2069
+ updateChangeLogItem: ve,
2070
+ updateOperationExample: tt,
2071
+ updateStateExample: gt
2072
+ }, Symbol.toStringTag, { value: "Module" })), bt = me, _t = { ...S, ...Bt }, It = { ...wt, ...ur }, mr = {
2073
+ Document: bt,
2074
+ reducer: f,
2075
+ actions: It,
2076
+ utils: _t,
2077
+ documentModel: Ie
2078
+ }, Rr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1922
2079
  __proto__: null,
1923
- Document: lt,
1924
- DocumentModel: le,
1925
- actions: dt,
1926
- documentModel: de,
1927
- module: Wt,
1928
- reducer: g,
1929
- utils: ct,
1930
- z: Mt
2080
+ Document: bt,
2081
+ DocumentModel: me,
2082
+ actions: It,
2083
+ documentModel: Ie,
2084
+ module: mr,
2085
+ reducer: f,
2086
+ utils: _t,
2087
+ validateInitialState: fe,
2088
+ validateModule: T,
2089
+ validateModuleOperation: R,
2090
+ validateModules: _e,
2091
+ validateStateSchemaName: be,
2092
+ z: Kt
1931
2093
  }, Symbol.toStringTag, { value: "Module" }));
1932
2094
  export {
1933
- rr as D,
1934
- le as a,
1935
- lt as b,
1936
- dt as c,
1937
- de as d,
1938
- Wt as m,
1939
- g as r,
1940
- ct as u,
1941
- Mt as z
2095
+ Rr as D,
2096
+ me as a,
2097
+ bt as b,
2098
+ It as c,
2099
+ Ie as d,
2100
+ be as e,
2101
+ _e as f,
2102
+ T as g,
2103
+ R as h,
2104
+ mr as m,
2105
+ f as r,
2106
+ _t as u,
2107
+ fe as v,
2108
+ Kt as z
1942
2109
  };