@likec4/core 1.43.0 → 1.45.0

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 (72) hide show
  1. package/dist/builder/index.d.mts +15 -14
  2. package/dist/builder/index.mjs +35 -18
  3. package/dist/compute-view/index.d.mts +9 -9
  4. package/dist/compute-view/index.mjs +8 -7
  5. package/dist/compute-view/relationships-view/index.d.mts +7 -7
  6. package/dist/compute-view/relationships-view/index.mjs +2 -2
  7. package/dist/index.d.mts +27 -7
  8. package/dist/index.mjs +8 -7
  9. package/dist/model/connection/deployment/index.d.mts +9 -9
  10. package/dist/model/connection/deployment/index.mjs +2 -2
  11. package/dist/model/connection/index.d.mts +10 -10
  12. package/dist/model/connection/index.mjs +3 -3
  13. package/dist/model/connection/model/index.d.mts +9 -9
  14. package/dist/model/connection/model/index.mjs +2 -2
  15. package/dist/model/index.d.mts +11 -11
  16. package/dist/model/index.mjs +4 -4
  17. package/dist/shared/{core.CDvVInBp.d.mts → core.0zAQeenX.d.mts} +3 -3
  18. package/dist/shared/core.3ZhnKAlZ.mjs +106 -0
  19. package/dist/shared/{core.CwsG7hOw.d.mts → core.5ZQ-r3Oa.d.mts} +1 -1
  20. package/dist/shared/{core.hNWo20Ym.d.mts → core.B73yxfPi.d.mts} +55 -36
  21. package/dist/shared/{core.Cq2kxOI-.d.mts → core.BGFjN3nv.d.mts} +3 -3
  22. package/dist/shared/{core.rCeaAqgW.mjs → core.BdPcbSkN.mjs} +1 -1
  23. package/dist/shared/core.BhNcrwzK.mjs +7 -0
  24. package/dist/shared/core.BkVA6gjl.mjs +5 -0
  25. package/dist/shared/core.BuQZczj6.mjs +38 -0
  26. package/dist/shared/{core.2N_9BzyD.mjs → core.CQPEY2wQ.mjs} +5 -4
  27. package/dist/shared/{core.DFi2dOTl.mjs → core.CR3PmPzr.mjs} +85 -1
  28. package/dist/shared/{core.DyToofsP.mjs → core.CRI1AjFj.mjs} +276 -145
  29. package/dist/shared/{core.CXWsKEDr.mjs → core.CWwSgOzF.mjs} +268 -631
  30. package/dist/shared/{core.727Qoh_W.mjs → core.CdNCAwq7.mjs} +2 -101
  31. package/dist/shared/{core.QJD_fcrc.mjs → core.CmPXpJ8l.mjs} +1 -14
  32. package/dist/shared/{core.DTdfiejA.d.mts → core.Cog93roC.d.mts} +2 -2
  33. package/dist/shared/core.Coi_LOUZ.mjs +7 -0
  34. package/dist/shared/{core.CcJ1FZ7h.d.mts → core.CpURdWRM.d.mts} +174 -76
  35. package/dist/shared/{core.D5fzJWbF.d.mts → core.DB0Ue5Wx.d.mts} +1 -1
  36. package/dist/shared/{core.DNbUPnve.mjs → core.DEieYfbG.mjs} +27 -25
  37. package/dist/shared/{core.BYNkXQ8A.mjs → core.DH7TXqXf.mjs} +30 -1
  38. package/dist/shared/{core.DMMOWQqc.mjs → core.DIE3F6sw.mjs} +2 -2
  39. package/dist/shared/{core.D0NziuvN.mjs → core.DViDmiAu.mjs} +5 -5
  40. package/dist/shared/{core.Be05qJwN.mjs → core.D_f4F48-.mjs} +41 -18
  41. package/dist/shared/{core.C2TiyjI6.mjs → core.DbfO90vF.mjs} +20 -31
  42. package/dist/shared/{core.BT-9gaqQ.d.mts → core.DnCLhN8C.d.mts} +83 -94
  43. package/dist/shared/{core.BouyJs63.mjs → core.DqlrMlsf.mjs} +1 -1
  44. package/dist/shared/{core.CNgZvKb8.mjs → core.DrUt0Lbi.mjs} +1 -1
  45. package/dist/shared/{core.CT1xBp4R.d.mts → core.Dvh1H0T2.d.mts} +2 -2
  46. package/dist/shared/core.M9ayqQZa.mjs +1207 -0
  47. package/dist/shared/{core.CvLjw3bH.d.mts → core.mUnpvHtA.d.mts} +96 -12
  48. package/dist/shared/core.oSV6SRfk.mjs +13 -0
  49. package/dist/shared/core.q10OP9oJ.mjs +5 -0
  50. package/dist/shared/{core.BXs4wY7R.d.mts → core.t3qfsVvn.d.mts} +4 -4
  51. package/dist/shared/core.uFk_o9X6.mjs +13 -0
  52. package/dist/shared/core.vzLtp8i3.mjs +1282 -0
  53. package/dist/styles/index.d.mts +18 -8
  54. package/dist/styles/index.mjs +63 -1
  55. package/dist/types/_aux.d.mts +2 -2
  56. package/dist/types/_aux.mjs +8 -1
  57. package/dist/types/expression-model.d.mts +3 -3
  58. package/dist/types/expression.d.mts +3 -3
  59. package/dist/types/fqnRef.d.mts +7 -8
  60. package/dist/types/index.d.mts +17 -13
  61. package/dist/types/index.mjs +51 -14
  62. package/dist/utils/graphology/index.mjs +1 -1
  63. package/dist/utils/index.d.mts +3 -2
  64. package/dist/utils/index.mjs +9 -6
  65. package/dist/utils/iterable/index.d.mts +1 -1
  66. package/dist/utils/iterable/index.mjs +2 -1
  67. package/package.json +18 -17
  68. package/dist/shared/core.01VTr9qu.mjs +0 -170
  69. package/dist/shared/core.1vX5a9AY.mjs +0 -86
  70. package/dist/shared/core.BazD6cot.mjs +0 -14
  71. package/dist/shared/core.BzTakU3I.mjs +0 -67
  72. package/dist/shared/core.OHD4KXm9.mjs +0 -5
@@ -0,0 +1,106 @@
1
+ import { g as getDefaultExportFromCjs } from './core.B85MJLTf.mjs';
2
+ import { e as e$1 } from './core.CqAJJpK_.mjs';
3
+
4
+ const e={done:true,hasNext:false},t$1={done:false,hasNext:false},n$1=()=>e;
5
+
6
+ function t(e,...t){let a=e,o=t.map(e=>`lazy`in e?r(e):void 0),s=0;for(;s<t.length;){if(o[s]===void 0||!i(a)){let e=t[s];a=e(a),s+=1;continue}let e=[];for(let n=s;n<t.length;n++){let t=o[n];if(t===void 0||(e.push(t),t.isSingle))break}let r=[];for(let t of a)if(n(t,r,e))break;let{isSingle:c}=e.at(-1);a=c?r[0]:r,s+=e.length;}return a}function n(t,r,i){if(i.length===0)return r.push(t),false;let a=t,o=t$1,s=false;for(let[e,t]of i.entries()){let{index:c,items:l}=t;if(l.push(a),o=t(a,c,l),t.index+=1,o.hasNext){if(o.hasMany??false){for(let t of o.next)if(n(t,r,i.slice(e+1)))return true;return s}a=o.next;}if(!o.hasNext)break;o.done&&(s=true);}return o.hasNext&&r.push(a),s}function r(e){let{lazy:t,lazyArgs:n}=e,r=t(...n);return Object.assign(r,{isSingle:t.single??false,index:0,items:[]})}function i(e){return typeof e==`string`||typeof e==`object`&&!!e&&Symbol.iterator in e}
7
+
8
+ var naturalCompareLite = {exports: {}};
9
+
10
+ var hasRequiredNaturalCompareLite;
11
+
12
+ function requireNaturalCompareLite () {
13
+ if (hasRequiredNaturalCompareLite) return naturalCompareLite.exports;
14
+ hasRequiredNaturalCompareLite = 1;
15
+ /*
16
+ * @version 1.4.0
17
+ * @date 2015-10-26
18
+ * @stability 3 - Stable
19
+ * @author Lauri Rooden (https://github.com/litejs/natural-compare-lite)
20
+ * @license MIT License
21
+ */
22
+
23
+
24
+ var naturalCompare = function(a, b) {
25
+ var i, codeA
26
+ , codeB = 1
27
+ , posA = 0
28
+ , posB = 0
29
+ , alphabet = String.alphabet;
30
+
31
+ function getCode(str, pos, code) {
32
+ if (code) {
33
+ for (i = pos; code = getCode(str, i), code < 76 && code > 65;) ++i;
34
+ return +str.slice(pos - 1, i)
35
+ }
36
+ code = alphabet && alphabet.indexOf(str.charAt(pos));
37
+ return code > -1 ? code + 76 : ((code = str.charCodeAt(pos) || 0), code < 45 || code > 127) ? code
38
+ : code < 46 ? 65 // -
39
+ : code < 48 ? code - 1
40
+ : code < 58 ? code + 18 // 0-9
41
+ : code < 65 ? code - 11
42
+ : code < 91 ? code + 11 // A-Z
43
+ : code < 97 ? code - 37
44
+ : code < 123 ? code + 5 // a-z
45
+ : code - 63
46
+ }
47
+
48
+
49
+ if ((a+="") != (b+="")) for (;codeB;) {
50
+ codeA = getCode(a, posA++);
51
+ codeB = getCode(b, posB++);
52
+
53
+ if (codeA < 76 && codeB < 76 && codeA > 66 && codeB > 66) {
54
+ codeA = getCode(a, posA, posA);
55
+ codeB = getCode(b, posB, posA = i);
56
+ posB = i;
57
+ }
58
+
59
+ if (codeA != codeB) return (codeA < codeB) ? -1 : 1
60
+ }
61
+ return 0
62
+ };
63
+
64
+ try {
65
+ naturalCompareLite.exports = naturalCompare;
66
+ } catch (e) {
67
+ String.naturalCompare = naturalCompare;
68
+ }
69
+ return naturalCompareLite.exports;
70
+ }
71
+
72
+ var naturalCompareLiteExports = requireNaturalCompareLite();
73
+ const compare = /*@__PURE__*/getDefaultExportFromCjs(naturalCompareLiteExports);
74
+
75
+ function compareNatural(a, b) {
76
+ if (a === b) return 0;
77
+ if (e$1(a)) {
78
+ if (e$1(b)) {
79
+ return compare(a, b);
80
+ }
81
+ return 1;
82
+ }
83
+ return e$1(b) ? -1 : 0;
84
+ }
85
+ function compareNaturalHierarchically(separator = ".", deepestFirst = false) {
86
+ return (a, b) => {
87
+ if (a === b) return 0;
88
+ if (!a) return -1;
89
+ if (!b) return 1;
90
+ const aParts = a.split(separator);
91
+ const bParts = b.split(separator);
92
+ const minLength = Math.min(aParts.length, bParts.length);
93
+ for (let i = 0; i < minLength; i++) {
94
+ const aPart = aParts[i];
95
+ const bPart = bParts[i];
96
+ const comparison = compare(aPart, bPart);
97
+ if (comparison !== 0) {
98
+ return comparison;
99
+ }
100
+ }
101
+ const diff = aParts.length - bParts.length;
102
+ return deepestFirst ? -1 * diff : diff;
103
+ };
104
+ }
105
+
106
+ export { t$1 as a, compareNaturalHierarchically as b, compareNatural as c, n$1 as n, t };
@@ -1,4 +1,4 @@
1
- import { I as IterableContainer, R as ReorderedArray, N as NonEmptyArray } from './core.D5fzJWbF.mjs';
1
+ import { I as IterableContainer, R as ReorderedArray, N as NonEmptyArray } from './core.DB0Ue5Wx.mjs';
2
2
  import { F as Fqn } from './core.DX-WYEPA.mjs';
3
3
  import { SetRequired, SetNonNullable } from 'type-fest';
4
4
 
@@ -1,6 +1,6 @@
1
1
  import { IfNever, IsNever, IsLiteral } from 'type-fest';
2
- import { C as Coalesce, L as Link } from './core.D5fzJWbF.mjs';
3
- import { D as DeploymentFqn$1, F as Fqn$1, d as RelationId$1, N as NodeId$1, j as EdgeId$1, P as ProjectId$1, V as ViewId$1, T as Tag$1, E as ElementKind$1, b as DeploymentKind$1, c as RelationshipKind, M as MarkdownOrString } from './core.DX-WYEPA.mjs';
2
+ import { C as Coalesce, L as Link } from './core.DB0Ue5Wx.mjs';
3
+ import { V as ViewId$1, F as Fqn$1, D as DeploymentFqn$1, N as NodeId$1, j as EdgeId$1, d as RelationId$1, P as ProjectId$1, T as Tag$1, E as ElementKind$1, b as DeploymentKind$1, c as RelationshipKind, M as MarkdownOrString } from './core.DX-WYEPA.mjs';
4
4
 
5
5
  /**
6
6
  * Determines the stage of the model:
@@ -31,6 +31,12 @@ type _stage = typeof _stage;
31
31
  */
32
32
  declare const _type = "_type";
33
33
  type _type = typeof _type;
34
+ /**
35
+ * Property name to store layout type information, used to identify the type of the layout*
36
+ * @internal
37
+ */
38
+ declare const _layout = "_layout";
39
+ type _layout = typeof _layout;
34
40
 
35
41
  /**
36
42
  * Specification types (kinds, tags, metadata keys)
@@ -59,7 +65,7 @@ type AnySpec = SpecAux<any, any, any, any, any>;
59
65
  * @typeParam Project - Project identifier type
60
66
  * @typeParam Spec - Specification types (kinds, tags, metadata keys)
61
67
  */
62
- interface Aux<Stage extends ModelStage, Element extends string, Deployment extends string, View extends string, Project extends string, Spec extends SpecAux<string, string, string, string, string>> {
68
+ interface Aux<Stage extends ModelStage, Element extends string, Deployment extends string, View extends string, Project extends string, Spec extends AnySpec> {
63
69
  Stage: Stage;
64
70
  ProjectId: Project;
65
71
  ElementId: Element;
@@ -71,14 +77,18 @@ interface Aux<Stage extends ModelStage, Element extends string, Deployment exten
71
77
  Tag: Spec['Tag'];
72
78
  MetadataKey: Spec['MetadataKey'];
73
79
  }
74
- type Any = Aux<any, any, any, any, any, SpecAux<any, any, any, any, any>>;
80
+ type AnyOnStage<Stage extends ModelStage> = Aux<Stage, any, any, any, any, any>;
81
+ type AnyParsed = AnyOnStage<'parsed'>;
82
+ type AnyComputed = AnyOnStage<'computed'>;
83
+ type AnyLayouted = AnyOnStage<'layouted'>;
84
+ type Any = Aux<any, any, any, any, any, any>;
75
85
 
76
86
  type Never = Aux<never, never, never, never, never, SpecAux<never, never, never, never, never>>;
77
87
  /**
78
88
  * Fallback when {@link Aux} can't be inferred.
79
89
  * By default assumes non parsed model
80
90
  */
81
- type Unknown = Aux<'layouted' | 'computed', string, string, string, string, SpecAux<string, string, string, string, string>>;
91
+ type Unknown = UnknownComputed | UnknownLayouted;
82
92
  type UnknownParsed = Aux<'parsed', string, string, string, string, SpecAux<string, string, string, string, string>>;
83
93
  type UnknownComputed = Aux<'computed', string, string, string, string, SpecAux<string, string, string, string, string>>;
84
94
  type UnknownLayouted = Aux<'layouted', string, string, string, string, SpecAux<string, string, string, string, string>>;
@@ -101,48 +111,48 @@ type toLayouted<A> = A extends Aux<any, infer E, infer D, infer V, infer P, infe
101
111
  /**
102
112
  * Project identifier from Aux
103
113
  */
104
- type ProjectId<A> = A extends infer T extends Any ? Coalesce<T['ProjectId']> : never;
114
+ type ProjectId<A> = A extends Aux<any, any, any, any, infer P, any> ? Coalesce<P> : never;
105
115
  type setProject<A, P extends string> = A extends Aux<infer S, infer E, infer D, infer V, any, infer Spec> ? Aux<S, E, D, V, P, Spec> : never;
106
116
  /**
107
117
  * Element FQN from Aux as branded type
108
118
  */
109
- type Fqn<A> = A extends infer T extends Any ? Fqn$1<ElementId<T>> : never;
119
+ type Fqn<A> = A extends Any ? Fqn$1<ElementId<A>> : never;
110
120
  /**
111
121
  * Element FQN from Aux as a literal union
112
122
  */
113
- type ElementId<A> = A extends infer T extends Any ? Coalesce<T['ElementId']> : never;
123
+ type ElementId<A> = A extends Any ? Coalesce<A['ElementId']> : never;
114
124
  /**
115
125
  * Deployment FQN from Aux as branded type
116
126
  */
117
- type DeploymentFqn<A> = A extends infer T extends Any ? DeploymentFqn$1<DeploymentId<T>> : never;
127
+ type DeploymentFqn<A> = A extends Any ? DeploymentFqn$1<DeploymentId<A>> : never;
118
128
  /**
119
129
  * Deployment FQN from Aux as a literal union
120
130
  * @alias {@link DeploymentFqn}
121
131
  */
122
- type DeploymentId<A> = A extends infer T extends Any ? Coalesce<T['DeploymentId']> : never;
132
+ type DeploymentId<A> = A extends Any ? Coalesce<A['DeploymentId']> : never;
123
133
  /**
124
134
  * View identifier from Aux as a literal union
125
135
  */
126
- type ViewId<A> = A extends infer T extends Any ? Coalesce<T['ViewId']> : never;
136
+ type ViewId<A> = A extends Any ? Coalesce<A['ViewId']> : never;
127
137
  type RelationId = RelationId$1;
128
138
  type NodeId = NodeId$1;
129
139
  type EdgeId = EdgeId$1;
130
140
  /**
131
141
  * ElementKind from Aux as a literal union
132
142
  */
133
- type ElementKind<A> = A extends infer T extends Any ? Coalesce<T['ElementKind']> : never;
143
+ type ElementKind<A> = A extends Any ? Coalesce<A['ElementKind']> : never;
134
144
  /**
135
145
  * DeploymentKind from Aux as a literal union
136
146
  */
137
- type DeploymentKind<A> = A extends infer T extends Any ? Coalesce<T['DeploymentKind']> : never;
147
+ type DeploymentKind<A> = A extends Any ? Coalesce<A['DeploymentKind']> : never;
138
148
  /**
139
149
  * RelationKind from Aux as a literal union
140
150
  */
141
- type RelationKind<A> = A extends infer T extends Any ? Coalesce<T['RelationKind']> : never;
151
+ type RelationKind<A> = A extends Any ? Coalesce<A['RelationKind']> : never;
142
152
  /**
143
153
  * Tags from Aux as a literal union
144
154
  */
145
- type Tag<A> = A extends infer T extends Any ? Coalesce<T['Tag']> : never;
155
+ type Tag<A> = A extends Any ? Coalesce<A['Tag']> : never;
146
156
  /**
147
157
  * Array of tags from Aux
148
158
  */
@@ -150,7 +160,7 @@ type Tags<A extends Any> = readonly Tag<A>[];
150
160
  /**
151
161
  * Metadata key from Aux
152
162
  */
153
- type MetadataKey<A> = A extends infer T extends Any ? Coalesce<T['MetadataKey']> : never;
163
+ type MetadataKey<A> = A extends Any ? Coalesce<A['MetadataKey']> : never;
154
164
  /**
155
165
  * Metadata object from Aux
156
166
  */
@@ -164,7 +174,7 @@ type AllKinds<A> = ElementKind<A> | DeploymentKind<A> | RelationKind<A>;
164
174
  /**
165
175
  * Specification from Aux
166
176
  */
167
- type Spec<A> = A extends Aux<any, any, any, any, any, infer S> ? S : never;
177
+ type Spec<A> = A extends Aux<any, any, any, any, any, SpecAux<infer E, infer D, infer R, infer T, infer M>> ? SpecAux<E, D, R, T, M> : never;
168
178
  type StrictProjectId<A> = A extends infer T extends Any ? ProjectId$1<ProjectId<T>> : never;
169
179
 
170
180
  type StrictViewId<A> = A extends infer T extends Any ? ViewId$1<ViewId<T>> : never;
@@ -207,19 +217,27 @@ type WithNotation = {
207
217
  * @see {@link LiteralUnion} from type-fest (https://github.com/sindresorhus/type-fest/blob/main/source/literal-union.d.ts)
208
218
  */
209
219
  type OrString = string & Record<never, never>;
210
- type LooseElementId<A extends Any> = Coalesce<A['ElementId']> | OrString;
211
- type LooseDeploymentId<A extends Any> = Coalesce<A['DeploymentId']> | OrString;
212
- type LooseViewId<A extends Any> = Coalesce<A['ViewId']> | OrString;
213
- type LooseTag<A extends Any> = Coalesce<A['Tag']> | OrString;
214
- type LooseTags<A extends Any> = readonly (Coalesce<A['Tag']> | OrString)[];
215
- type LooseElementKind<A extends Any> = Coalesce<A['ElementKind']> | OrString;
216
- type LooseDeploymentKind<A extends Any> = Coalesce<A['DeploymentKind']> | OrString;
217
- type LooseRelationKind<A extends Any> = Coalesce<A['RelationKind']> | OrString;
220
+ /**
221
+ * Allows any string value, but still auto-completes to the possible values in IDE
222
+ */
223
+ type LooseLiteral<V extends string> = Coalesce<V> | OrString;
224
+ type LooseElementId<A> = A extends Any ? LooseLiteral<A['ElementId']> : string;
225
+ type LooseDeploymentId<A> = A extends Any ? LooseLiteral<A['DeploymentId']> : string;
226
+ type LooseViewId<A> = A extends Any ? LooseLiteral<A['ViewId']> : string;
227
+ type LooseTag<A> = A extends Any ? LooseLiteral<A['Tag']> : string;
228
+ type LooseTags<A> = A extends Any ? readonly (LooseLiteral<A['Tag']>)[] : string[];
229
+ type LooseElementKind<A> = A extends Any ? LooseLiteral<A['ElementKind']> : string;
230
+ type LooseDeploymentKind<A> = A extends Any ? LooseLiteral<A['DeploymentKind']> : string;
231
+ type LooseRelationKind<A> = A extends Any ? LooseLiteral<A['RelationKind']> : string;
218
232
 
219
233
  type _aux_AllKinds<A> = AllKinds<A>;
220
234
  type _aux_Any = Any;
235
+ type _aux_AnyComputed = AnyComputed;
236
+ type _aux_AnyLayouted = AnyLayouted;
237
+ type _aux_AnyOnStage<Stage extends ModelStage> = AnyOnStage<Stage>;
238
+ type _aux_AnyParsed = AnyParsed;
221
239
  type _aux_AnySpec = AnySpec;
222
- type _aux_Aux<Stage extends ModelStage, Element extends string, Deployment extends string, View extends string, Project extends string, Spec extends SpecAux<string, string, string, string, string>> = Aux<Stage, Element, Deployment, View, Project, Spec>;
240
+ type _aux_Aux<Stage extends ModelStage, Element extends string, Deployment extends string, View extends string, Project extends string, Spec extends AnySpec> = Aux<Stage, Element, Deployment, View, Project, Spec>;
223
241
  type _aux_DeploymentFqn<A> = DeploymentFqn<A>;
224
242
  type _aux_DeploymentId<A> = DeploymentId<A>;
225
243
  type _aux_DeploymentKind<A> = DeploymentKind<A>;
@@ -227,14 +245,15 @@ type _aux_EdgeId = EdgeId;
227
245
  type _aux_ElementId<A> = ElementId<A>;
228
246
  type _aux_ElementKind<A> = ElementKind<A>;
229
247
  type _aux_Fqn<A> = Fqn<A>;
230
- type _aux_LooseDeploymentId<A extends Any> = LooseDeploymentId<A>;
231
- type _aux_LooseDeploymentKind<A extends Any> = LooseDeploymentKind<A>;
232
- type _aux_LooseElementId<A extends Any> = LooseElementId<A>;
233
- type _aux_LooseElementKind<A extends Any> = LooseElementKind<A>;
234
- type _aux_LooseRelationKind<A extends Any> = LooseRelationKind<A>;
235
- type _aux_LooseTag<A extends Any> = LooseTag<A>;
236
- type _aux_LooseTags<A extends Any> = LooseTags<A>;
237
- type _aux_LooseViewId<A extends Any> = LooseViewId<A>;
248
+ type _aux_LooseDeploymentId<A> = LooseDeploymentId<A>;
249
+ type _aux_LooseDeploymentKind<A> = LooseDeploymentKind<A>;
250
+ type _aux_LooseElementId<A> = LooseElementId<A>;
251
+ type _aux_LooseElementKind<A> = LooseElementKind<A>;
252
+ type _aux_LooseLiteral<V extends string> = LooseLiteral<V>;
253
+ type _aux_LooseRelationKind<A> = LooseRelationKind<A>;
254
+ type _aux_LooseTag<A> = LooseTag<A>;
255
+ type _aux_LooseTags<A> = LooseTags<A>;
256
+ type _aux_LooseViewId<A> = LooseViewId<A>;
238
257
  type _aux_Metadata<A extends Any> = Metadata<A>;
239
258
  type _aux_MetadataKey<A> = MetadataKey<A>;
240
259
  type _aux_Never = Never;
@@ -275,7 +294,7 @@ type _aux_toComputed<A> = toComputed<A>;
275
294
  type _aux_toLayouted<A> = toLayouted<A>;
276
295
  type _aux_toParsed<A> = toParsed<A>;
277
296
  declare namespace _aux {
278
- export { type _aux_AllKinds as AllKinds, type _aux_Any as Any, type Any as AnyAux, type _aux_AnySpec as AnySpec, type _aux_Aux as Aux, type _aux_DeploymentFqn as DeploymentFqn, type _aux_DeploymentId as DeploymentId, type _aux_DeploymentKind as DeploymentKind, type _aux_EdgeId as EdgeId, type _aux_ElementId as ElementId, type _aux_ElementKind as ElementKind, type _aux_Fqn as Fqn, type _aux_LooseDeploymentId as LooseDeploymentId, type _aux_LooseDeploymentKind as LooseDeploymentKind, type _aux_LooseElementId as LooseElementId, type _aux_LooseElementKind as LooseElementKind, type _aux_LooseRelationKind as LooseRelationKind, type _aux_LooseTag as LooseTag, type _aux_LooseTags as LooseTags, type _aux_LooseViewId as LooseViewId, type _aux_Metadata as Metadata, type _aux_MetadataKey as MetadataKey, type _aux_Never as Never, type _aux_NodeId as NodeId, type _aux_OrString as OrString, type _aux_PickByStage as PickByStage, type _aux_ProjectId as ProjectId, type _aux_RelationId as RelationId, type _aux_RelationKind as RelationKind, type _aux_Spec as Spec, type _aux_SpecAux as SpecAux, type _aux_Stage as Stage, type DeploymentFqn as StrictDeploymentFqn, type _aux_StrictDeploymentKind as StrictDeploymentKind, type _aux_StrictElementKind as StrictElementKind, type Fqn as StrictFqn, type _aux_StrictProjectId as StrictProjectId, type _aux_StrictRelationKind as StrictRelationKind, type _aux_StrictTag as StrictTag, type _aux_StrictViewId as StrictViewId, type _aux_Tag as Tag, type _aux_Tags as Tags, type _aux_Unknown as Unknown, type _aux_UnknownComputed as UnknownComputed, type _aux_UnknownLayouted as UnknownLayouted, type _aux_UnknownParsed as UnknownParsed, type _aux_ViewId as ViewId, type _aux_WithDescriptionAndTech as WithDescriptionAndTech, type _aux_WithLinks as WithLinks, type _aux_WithMetadata as WithMetadata, type _aux_WithNotation as WithNotation, type _aux_WithOptionalLinks as WithOptionalLinks, type _aux_WithOptionalTags as WithOptionalTags, type _aux_WithTags as WithTags, _aux_preferDescription as preferDescription, _aux_preferSummary as preferSummary, type _aux_setProject as setProject, type _aux_setStage as setStage, type _aux_toComputed as toComputed, type _aux_toLayouted as toLayouted, type _aux_toParsed as toParsed };
297
+ export { type _aux_AllKinds as AllKinds, type _aux_Any as Any, type Any as AnyAux, type _aux_AnyComputed as AnyComputed, type _aux_AnyLayouted as AnyLayouted, type _aux_AnyOnStage as AnyOnStage, type _aux_AnyParsed as AnyParsed, type _aux_AnySpec as AnySpec, type _aux_Aux as Aux, type _aux_DeploymentFqn as DeploymentFqn, type _aux_DeploymentId as DeploymentId, type _aux_DeploymentKind as DeploymentKind, type _aux_EdgeId as EdgeId, type _aux_ElementId as ElementId, type _aux_ElementKind as ElementKind, type _aux_Fqn as Fqn, type _aux_LooseDeploymentId as LooseDeploymentId, type _aux_LooseDeploymentKind as LooseDeploymentKind, type _aux_LooseElementId as LooseElementId, type _aux_LooseElementKind as LooseElementKind, type _aux_LooseLiteral as LooseLiteral, type _aux_LooseRelationKind as LooseRelationKind, type _aux_LooseTag as LooseTag, type _aux_LooseTags as LooseTags, type _aux_LooseViewId as LooseViewId, type _aux_Metadata as Metadata, type _aux_MetadataKey as MetadataKey, type _aux_Never as Never, type _aux_NodeId as NodeId, type _aux_OrString as OrString, type _aux_PickByStage as PickByStage, type _aux_ProjectId as ProjectId, type _aux_RelationId as RelationId, type _aux_RelationKind as RelationKind, type _aux_Spec as Spec, type _aux_SpecAux as SpecAux, type _aux_Stage as Stage, type DeploymentFqn as StrictDeploymentFqn, type _aux_StrictDeploymentKind as StrictDeploymentKind, type _aux_StrictElementKind as StrictElementKind, type Fqn as StrictFqn, type _aux_StrictProjectId as StrictProjectId, type _aux_StrictRelationKind as StrictRelationKind, type _aux_StrictTag as StrictTag, type _aux_StrictViewId as StrictViewId, type _aux_Tag as Tag, type _aux_Tags as Tags, type _aux_Unknown as Unknown, type _aux_UnknownComputed as UnknownComputed, type _aux_UnknownLayouted as UnknownLayouted, type _aux_UnknownParsed as UnknownParsed, type _aux_ViewId as ViewId, type _aux_WithDescriptionAndTech as WithDescriptionAndTech, type _aux_WithLinks as WithLinks, type _aux_WithMetadata as WithMetadata, type _aux_WithNotation as WithNotation, type _aux_WithOptionalLinks as WithOptionalLinks, type _aux_WithOptionalTags as WithOptionalTags, type _aux_WithTags as WithTags, _aux_preferDescription as preferDescription, _aux_preferSummary as preferSummary, type _aux_setProject as setProject, type _aux_setStage as setStage, type _aux_toComputed as toComputed, type _aux_toLayouted as toLayouted, type _aux_toParsed as toParsed };
279
298
  }
280
299
 
281
- export { type StrictProjectId as $, type Any as A, type LooseElementId as B, type LooseDeploymentId as C, type DeploymentId as D, type ExtractOnStage as E, type Fqn as F, type toComputed as G, type toLayouted as H, type Stage as I, type toParsed as J, type LooseViewId as K, type LooseTag as L, type ModelStage as M, type NodeId as N, type setProject as O, type ProjectId as P, type AnySpec as Q, type RelationKind as R, type SpecAux as S, type Tag as T, type Unknown as U, type ViewId as V, type WithDescriptionAndTech as W, type PickByStage as X, type setStage as Y, type Spec as Z, _aux as _, type Aux as a, type StrictTag as a0, type StrictElementKind as a1, type StrictDeploymentKind as a2, type StrictRelationKind as a3, type WithLinks as a4, type OrString as a5, type LooseTags as a6, type LooseElementKind as a7, type LooseDeploymentKind as a8, type LooseRelationKind as a9, type UnknownComputed as b, type UnknownLayouted as c, type UnknownParsed as d, preferSummary as e, _stage as f, _type as g, type StrictViewId as h, isOnStage as i, type ElementKind as j, type ElementId as k, type AllKinds as l, type Tags as m, type WithOptionalTags as n, type WithOptionalLinks as o, preferDescription as p, type WithMetadata as q, type WithNotation as r, type DeploymentFqn as s, type DeploymentKind as t, type MetadataKey as u, type EdgeId as v, type Never as w, type WithTags as x, type Metadata as y, type RelationId as z };
300
+ export { type AnyOnStage as $, type Any as A, type Never as B, type MetadataKey as C, type DeploymentId as D, type ElementKind as E, type Fqn as F, type WithTags as G, type Metadata as H, type LooseTag as I, type RelationId as J, type LooseElementId as K, type LooseLiteral as L, type ModelStage as M, type NodeId as N, type LooseDeploymentId as O, type ProjectId as P, type Stage as Q, type RelationKind as R, type StrictViewId as S, type Tag as T, type Unknown as U, type ViewId as V, type WithDescriptionAndTech as W, type LooseViewId as X, type setProject as Y, type AnySpec as Z, _aux as _, type ElementId as a, type PickByStage as a0, type setStage as a1, type toParsed as a2, type toLayouted as a3, type Spec as a4, type StrictProjectId as a5, type StrictTag as a6, type StrictElementKind as a7, type StrictDeploymentKind as a8, type StrictRelationKind as a9, type WithLinks as aa, type OrString as ab, type LooseTags as ac, type LooseElementKind as ad, type LooseDeploymentKind as ae, type LooseRelationKind as af, type AnyComputed as b, type AnyLayouted as c, type AnyParsed as d, type Aux as e, type SpecAux as f, type UnknownComputed as g, type UnknownLayouted as h, type UnknownParsed as i, preferSummary as j, type ExtractOnStage as k, isOnStage as l, _stage as m, _type as n, _layout as o, preferDescription as p, type AllKinds as q, type Tags as r, type WithOptionalTags as s, type toComputed as t, type WithOptionalLinks as u, type WithMetadata as v, type WithNotation as w, type DeploymentFqn as x, type DeploymentKind as y, type EdgeId as z };
@@ -1,6 +1,6 @@
1
- import { C as Connection, c as customInspectSymbol } from './core.DTdfiejA.mjs';
2
- import { E as ElementModel, R as RelationshipModel } from './core.CcJ1FZ7h.mjs';
3
- import { A as Any, U as Unknown, v as EdgeId } from './core.hNWo20Ym.mjs';
1
+ import { C as Connection, c as customInspectSymbol } from './core.Cog93roC.mjs';
2
+ import { E as ElementModel, R as RelationshipModel } from './core.CpURdWRM.mjs';
3
+ import { A as Any, U as Unknown, z as EdgeId } from './core.B73yxfPi.mjs';
4
4
 
5
5
  /**
6
6
  * Connection refers to any relationships between two elements,
@@ -115,4 +115,4 @@ function requireIterator () {
115
115
  return iterator;
116
116
  }
117
117
 
118
- export { requireIterator as a, requireSupport as r };
118
+ export { requireSupport as a, requireIterator as r };
@@ -0,0 +1,7 @@
1
+ import { t as t$1, a as t$2 } from './core.3ZhnKAlZ.mjs';
2
+
3
+ function t(t,n){let r=n.length-t.length;if(r===1){let[r,...i]=n;return t$1(r,{lazy:t,lazyArgs:i})}if(r===0){let r={lazy:t,lazyArgs:n};return Object.assign(t=>t$1(t,r),r)}throw Error(`Wrong number of arguments`)}
4
+
5
+ function n(...e){return t(r,e)}function r(){let t=new Set;return n=>t.has(n)?t$2:(t.add(n),{done:false,hasNext:true,next:n})}
6
+
7
+ export { n };
@@ -0,0 +1,5 @@
1
+ import { t as t$1 } from './core.BsSXS-_R.mjs';
2
+
3
+ function t(...t){return t$1(n,t)}function n(e,t){let n=[...e];return n.sort(t),n}
4
+
5
+ export { t };
@@ -0,0 +1,38 @@
1
+ import { e as isStepEdgeId } from './core.C_Ni6yHl.mjs';
2
+
3
+ function e(e){return Array.isArray(e)}
4
+
5
+ function isViewRuleGlobalStyle(rule) {
6
+ return "styleId" in rule;
7
+ }
8
+ function isViewRuleGlobalPredicateRef(rule) {
9
+ return "predicateId" in rule;
10
+ }
11
+ function isAutoLayoutDirection(autoLayout) {
12
+ return autoLayout === "TB" || autoLayout === "BT" || autoLayout === "LR" || autoLayout === "RL";
13
+ }
14
+ function isViewRuleAutoLayout(rule) {
15
+ return "direction" in rule;
16
+ }
17
+
18
+ function getParallelStepsPrefix(id) {
19
+ if (isStepEdgeId(id) && id.includes(".")) {
20
+ return id.slice(0, id.indexOf(".") + 1);
21
+ }
22
+ return null;
23
+ }
24
+ function isDynamicStep(step) {
25
+ return !!step && !("__series" in step || "__parallel" in step);
26
+ }
27
+ function isDynamicStepsParallel(step) {
28
+ return !!step && "__parallel" in step && e(step.__parallel);
29
+ }
30
+ function isDynamicStepsSeries(step) {
31
+ return !!step && "__series" in step && e(step.__series);
32
+ }
33
+
34
+ function isViewRuleGroup(rule) {
35
+ return "title" in rule && "groupRules" in rule && Array.isArray(rule.groupRules);
36
+ }
37
+
38
+ export { isViewRuleGlobalPredicateRef as a, isAutoLayoutDirection as b, isViewRuleAutoLayout as c, isDynamicStep as d, isDynamicStepsParallel as e, isDynamicStepsSeries as f, getParallelStepsPrefix as g, isViewRuleGroup as h, isViewRuleGlobalStyle as i, e as j };
@@ -1,9 +1,10 @@
1
- import { c as customInspectSymbol } from './core.BouyJs63.mjs';
1
+ import { c as customInspectSymbol } from './core.DqlrMlsf.mjs';
2
2
  import { e } from './core.BoYfZOBm.mjs';
3
- import { i as intersection, a as stringHash, u as union, d as difference, e as equals } from './core.C2TiyjI6.mjs';
4
- import { t } from './core.OHD4KXm9.mjs';
3
+ import { i as intersection, u as union, d as difference, e as equals } from './core.DbfO90vF.mjs';
4
+ import { s as stringHash } from './core.oSV6SRfk.mjs';
5
+ import { t } from './core.3ZhnKAlZ.mjs';
5
6
  import { t as t$1 } from './core.CbT8JVYL.mjs';
6
- import { b as isDescendantOf, i as isAncestor, e as isString, s as sortNaturalByFqn, d as isSameHierarchy } from './core.727Qoh_W.mjs';
7
+ import { b as isDescendantOf, i as isAncestor, e as isString, s as sortNaturalByFqn, d as isSameHierarchy } from './core.CdNCAwq7.mjs';
7
8
  import { i as isome } from './core.FZ305VYd.mjs';
8
9
  import { i as ifilter } from './core.DRJma0Ol.mjs';
9
10
  import { i as invariant } from './core.D4npX2q8.mjs';
@@ -1,5 +1,89 @@
1
+ import { a as requireSupport } from './core.BdPcbSkN.mjs';
1
2
  import { g as getDefaultExportFromCjs } from './core.B85MJLTf.mjs';
2
3
 
4
+ /**
5
+ * Obliterator ForEach Function
6
+ * =============================
7
+ *
8
+ * Helper function used to easily iterate over mixed values.
9
+ */
10
+
11
+ var foreach;
12
+ var hasRequiredForeach;
13
+
14
+ function requireForeach () {
15
+ if (hasRequiredForeach) return foreach;
16
+ hasRequiredForeach = 1;
17
+ var support = requireSupport();
18
+
19
+ var ARRAY_BUFFER_SUPPORT = support.ARRAY_BUFFER_SUPPORT;
20
+ var SYMBOL_SUPPORT = support.SYMBOL_SUPPORT;
21
+
22
+ /**
23
+ * Function able to iterate over almost any iterable JS value.
24
+ *
25
+ * @param {any} iterable - Iterable value.
26
+ * @param {function} callback - Callback function.
27
+ */
28
+ foreach = function forEach(iterable, callback) {
29
+ var iterator, k, i, l, s;
30
+
31
+ if (!iterable) throw new Error('obliterator/forEach: invalid iterable.');
32
+
33
+ if (typeof callback !== 'function')
34
+ throw new Error('obliterator/forEach: expecting a callback.');
35
+
36
+ // The target is an array or a string or function arguments
37
+ if (
38
+ Array.isArray(iterable) ||
39
+ (ARRAY_BUFFER_SUPPORT && ArrayBuffer.isView(iterable)) ||
40
+ typeof iterable === 'string' ||
41
+ iterable.toString() === '[object Arguments]'
42
+ ) {
43
+ for (i = 0, l = iterable.length; i < l; i++) callback(iterable[i], i);
44
+ return;
45
+ }
46
+
47
+ // The target has a #.forEach method
48
+ if (typeof iterable.forEach === 'function') {
49
+ iterable.forEach(callback);
50
+ return;
51
+ }
52
+
53
+ // The target is iterable
54
+ if (
55
+ SYMBOL_SUPPORT &&
56
+ Symbol.iterator in iterable &&
57
+ typeof iterable.next !== 'function'
58
+ ) {
59
+ iterable = iterable[Symbol.iterator]();
60
+ }
61
+
62
+ // The target is an iterator
63
+ if (typeof iterable.next === 'function') {
64
+ iterator = iterable;
65
+ i = 0;
66
+
67
+ while (((s = iterator.next()), s.done !== true)) {
68
+ callback(s.value, i);
69
+ i++;
70
+ }
71
+
72
+ return;
73
+ }
74
+
75
+ // The target is a plain object
76
+ for (k in iterable) {
77
+ if (iterable.hasOwnProperty(k)) {
78
+ callback(iterable[k], k);
79
+ }
80
+ }
81
+
82
+ return;
83
+ };
84
+ return foreach;
85
+ }
86
+
3
87
  const VOID = -1;
4
88
  const PRIMITIVE = 0;
5
89
  const ARRAY = 1;
@@ -39545,4 +39629,4 @@ function markdownToText(markdown) {
39545
39629
  });
39546
39630
  }
39547
39631
 
39548
- export { markdownToText as a, markdownToHtml as m };
39632
+ export { markdownToText as a, markdownToHtml as m, requireForeach as r };