@sddsjs/design-system-builder-cli 0.0.0-stage → 0.2.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.
- package/LICENSE +4 -0
- package/README.md +969 -2
- package/bin/dsbuilder.js +2 -0
- package/dist/kotlin/Kotlin-Immutable-Collections-kotlinx-collections-immutable.js +3170 -0
- package/dist/kotlin/Stately-stately-concurrency.js +32 -0
- package/dist/kotlin/Stately-stately-concurrent-collections.js +302 -0
- package/dist/kotlin/Stately-stately-strict.js +12 -0
- package/dist/kotlin/clikt-clikt-mordant.js +304 -0
- package/dist/kotlin/clikt-clikt.js +6960 -0
- package/dist/kotlin/colormath-root-colormath.js +1653 -0
- package/dist/kotlin/design-system-builder-frontend-analytics-metrica.js +1026 -0
- package/dist/kotlin/design-system-builder-frontend-cli.js +10690 -0
- package/dist/kotlin/design-system-builder-frontend-core-analytics.js +128 -0
- package/dist/kotlin/design-system-builder-frontend-core-application.js +3634 -0
- package/dist/kotlin/design-system-builder-frontend-core-auth.js +1772 -0
- package/dist/kotlin/design-system-builder-frontend-core-domain.js +501 -0
- package/dist/kotlin/design-system-builder-frontend-core-network.js +3318 -0
- package/dist/kotlin/design-system-builder-frontend-core-platform.js +972 -0
- package/dist/kotlin/design-system-builder-frontend-core-process.js +236 -0
- package/dist/kotlin/design-system-builder-frontend-core-workspace.js +1058 -0
- package/dist/kotlin/design-system-builder-frontend-feature-auth.js +1664 -0
- package/dist/kotlin/design-system-builder-frontend-feature-components.js +24819 -0
- package/dist/kotlin/design-system-builder-frontend-feature-docs.js +7625 -0
- package/dist/kotlin/design-system-builder-frontend-feature-ds.js +2219 -0
- package/dist/kotlin/design-system-builder-frontend-feature-init.js +318 -0
- package/dist/kotlin/design-system-builder-frontend-feature-projects.js +624 -0
- package/dist/kotlin/design-system-builder-frontend-feature-status.js +984 -0
- package/dist/kotlin/design-system-builder-frontend-feature-theme.js +10456 -0
- package/dist/kotlin/design-system-builder-frontend-feature-toolchain.js +586 -0
- package/dist/kotlin/design-system-builder-frontend-mcp-server-core.js +6878 -0
- package/dist/kotlin/design-system-builder-frontend-platform-android.js +451 -0
- package/dist/kotlin/design-system-builder-frontend-platform-ios.js +1858 -0
- package/dist/kotlin/design-system-builder-frontend-platform-web.js +1555 -0
- package/dist/kotlin/design-system-builder-frontend-runtime-node.js +1763 -0
- package/dist/kotlin/kotlin-kotlin-stdlib.js +17881 -0
- package/dist/kotlin/kotlin-logging.js +440 -0
- package/dist/kotlin/kotlin-sdk-kotlin-sdk-core.js +20228 -0
- package/dist/kotlin/kotlin-sdk-kotlin-sdk-server.js +2771 -0
- package/dist/kotlin/kotlin_org_jetbrains_kotlin_kotlin_dom_api_compat.js +8 -0
- package/dist/kotlin/kotlinx-atomicfu.js +252 -0
- package/dist/kotlin/kotlinx-coroutines-core.js +10822 -0
- package/dist/kotlin/kotlinx-io-kotlinx-io-bytestring.js +203 -0
- package/dist/kotlin/kotlinx-io-kotlinx-io-core.js +2032 -0
- package/dist/kotlin/kotlinx-serialization-kotlinx-serialization-core.js +6171 -0
- package/dist/kotlin/kotlinx-serialization-kotlinx-serialization-json.js +5690 -0
- package/dist/kotlin/ktor-ktor-client-core.js +8382 -0
- package/dist/kotlin/ktor-ktor-events.js +80 -0
- package/dist/kotlin/ktor-ktor-http-cio.js +2252 -0
- package/dist/kotlin/ktor-ktor-http.js +3320 -0
- package/dist/kotlin/ktor-ktor-io.js +3328 -0
- package/dist/kotlin/ktor-ktor-serialization.js +8 -0
- package/dist/kotlin/ktor-ktor-server-core.js +12 -0
- package/dist/kotlin/ktor-ktor-server-sse.js +8 -0
- package/dist/kotlin/ktor-ktor-server-websockets.js +8 -0
- package/dist/kotlin/ktor-ktor-sse.js +8 -0
- package/dist/kotlin/ktor-ktor-utils.js +2524 -0
- package/dist/kotlin/ktor-ktor-websocket-serialization.js +8 -0
- package/dist/kotlin/ktor-ktor-websockets.js +433 -0
- package/dist/kotlin/mordant-mordant-omnibus.js +8 -0
- package/dist/kotlin/mordant-mordant.js +12111 -0
- package/dist/kotlin/okio-parent-okio.js +2335 -0
- package/dist/kotlin/projects-core-koin-core.js +1285 -0
- package/package.json +26 -5
|
@@ -0,0 +1,972 @@
|
|
|
1
|
+
(function (_, kotlin_kotlin, kotlin_io_insert_koin_koin_core, kotlin_design_system_builder_frontend_core_application, kotlin_design_system_builder_frontend_core_workspace, kotlin_design_system_builder_frontend_core_domain, kotlin_design_system_builder_frontend_core_process) {
|
|
2
|
+
'use strict';
|
|
3
|
+
//region block: imports
|
|
4
|
+
var imul = Math.imul;
|
|
5
|
+
var VOID = kotlin_kotlin.$_$.c;
|
|
6
|
+
var module_0 = kotlin_io_insert_koin_koin_core.$_$.g;
|
|
7
|
+
var Companion_getInstance = kotlin_io_insert_koin_koin_core.$_$.b;
|
|
8
|
+
var Kind_Singleton_getInstance = kotlin_io_insert_koin_koin_core.$_$.a;
|
|
9
|
+
var emptyList = kotlin_kotlin.$_$.y7;
|
|
10
|
+
var getKClass = kotlin_kotlin.$_$.qf;
|
|
11
|
+
var BeanDefinition = kotlin_io_insert_koin_koin_core.$_$.c;
|
|
12
|
+
var SingleInstanceFactory = kotlin_io_insert_koin_koin_core.$_$.e;
|
|
13
|
+
var Unit_instance = kotlin_kotlin.$_$.r5;
|
|
14
|
+
var KoinDefinition = kotlin_io_insert_koin_koin_core.$_$.d;
|
|
15
|
+
var ProjectContextReader = kotlin_design_system_builder_frontend_core_application.$_$.p;
|
|
16
|
+
var WorkspaceFileSystem = kotlin_design_system_builder_frontend_core_workspace.$_$.i;
|
|
17
|
+
var protoOf = kotlin_kotlin.$_$.te;
|
|
18
|
+
var getStringHashCode = kotlin_kotlin.$_$.od;
|
|
19
|
+
var initMetadataForClass = kotlin_kotlin.$_$.qd;
|
|
20
|
+
var TargetPlatform_SWIFT_UI_getInstance = kotlin_design_system_builder_frontend_core_domain.$_$.q;
|
|
21
|
+
var joinToString = kotlin_kotlin.$_$.r8;
|
|
22
|
+
var charSequenceLength = kotlin_kotlin.$_$.fd;
|
|
23
|
+
var CoroutineImpl = kotlin_kotlin.$_$.tb;
|
|
24
|
+
var noWhenBranchMatchedException = kotlin_kotlin.$_$.vl;
|
|
25
|
+
var Failed = kotlin_design_system_builder_frontend_core_application.$_$.n;
|
|
26
|
+
var Found = kotlin_design_system_builder_frontend_core_application.$_$.o;
|
|
27
|
+
var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.db;
|
|
28
|
+
var initMetadataForCoroutine = kotlin_kotlin.$_$.sd;
|
|
29
|
+
var toString = kotlin_kotlin.$_$.bm;
|
|
30
|
+
var toString_0 = kotlin_kotlin.$_$.we;
|
|
31
|
+
var hashCode = kotlin_kotlin.$_$.pd;
|
|
32
|
+
var equals = kotlin_kotlin.$_$.jd;
|
|
33
|
+
var toList = kotlin_kotlin.$_$.la;
|
|
34
|
+
var LinkedHashMap_init_$Create$ = kotlin_kotlin.$_$.v;
|
|
35
|
+
var LinkedHashSet_init_$Create$ = kotlin_kotlin.$_$.x;
|
|
36
|
+
var IllegalArgumentException_init_$Create$ = kotlin_kotlin.$_$.v1;
|
|
37
|
+
var _Char___init__impl__6a9atx = kotlin_kotlin.$_$.w2;
|
|
38
|
+
var charArrayOf = kotlin_kotlin.$_$.bd;
|
|
39
|
+
var trimEnd = kotlin_kotlin.$_$.oj;
|
|
40
|
+
var isAbsolutePath = kotlin_design_system_builder_frontend_core_process.$_$.e;
|
|
41
|
+
var parentOfAbsolutePath = kotlin_design_system_builder_frontend_core_process.$_$.f;
|
|
42
|
+
var initMetadataForCompanion = kotlin_kotlin.$_$.rd;
|
|
43
|
+
var Regex_init_$Create$ = kotlin_kotlin.$_$.e1;
|
|
44
|
+
var enumEntries = kotlin_kotlin.$_$.vb;
|
|
45
|
+
var Enum = kotlin_kotlin.$_$.kk;
|
|
46
|
+
var distinct = kotlin_kotlin.$_$.t7;
|
|
47
|
+
var Companion_getInstance_0 = kotlin_design_system_builder_frontend_core_domain.$_$.j1;
|
|
48
|
+
var single = kotlin_kotlin.$_$.ba;
|
|
49
|
+
var initMetadataForObject = kotlin_kotlin.$_$.wd;
|
|
50
|
+
//endregion
|
|
51
|
+
//region block: pre-declaration
|
|
52
|
+
initMetadataForClass(Completed, 'Completed');
|
|
53
|
+
initMetadataForClass(Failed_0, 'Failed');
|
|
54
|
+
initMetadataForClass(PlatformRunPlan, 'PlatformRunPlan');
|
|
55
|
+
initMetadataForCoroutine($executeCOROUTINE$, CoroutineImpl);
|
|
56
|
+
initMetadataForClass(PlatformCapabilityRunner, 'PlatformCapabilityRunner', VOID, VOID, VOID, [2]);
|
|
57
|
+
initMetadataForClass(PlatformRunCommand, 'PlatformRunCommand');
|
|
58
|
+
initMetadataForClass(PlatformDelegateRegistry, 'PlatformDelegateRegistry');
|
|
59
|
+
initMetadataForCompanion(Companion);
|
|
60
|
+
initMetadataForClass(WorkspacePaths, 'WorkspacePaths');
|
|
61
|
+
initMetadataForClass(Ready, 'Ready');
|
|
62
|
+
initMetadataForClass(Missing, 'Missing');
|
|
63
|
+
initMetadataForClass(Incompatible, 'Incompatible');
|
|
64
|
+
initMetadataForCompanion(Companion_0);
|
|
65
|
+
initMetadataForClass(ToolchainId, 'ToolchainId');
|
|
66
|
+
initMetadataForClass(Capability, 'Capability', VOID, Enum);
|
|
67
|
+
initMetadataForClass(Completed_0, 'Completed');
|
|
68
|
+
initMetadataForClass(Failed_1, 'Failed');
|
|
69
|
+
initMetadataForClass(ToolchainMissing, 'ToolchainMissing');
|
|
70
|
+
initMetadataForClass(Unsupported, 'Unsupported');
|
|
71
|
+
initMetadataForClass(DelegateInvocation, 'DelegateInvocation');
|
|
72
|
+
initMetadataForClass(Resolved, 'Resolved');
|
|
73
|
+
initMetadataForClass(Failed_2, 'Failed');
|
|
74
|
+
initMetadataForObject(PlatformResolver, 'PlatformResolver');
|
|
75
|
+
initMetadataForClass(Installed, 'Installed');
|
|
76
|
+
initMetadataForClass(Failed_3, 'Failed');
|
|
77
|
+
initMetadataForClass(ToolchainInstallRequest, 'ToolchainInstallRequest', ToolchainInstallRequest);
|
|
78
|
+
initMetadataForClass(ToolchainInstallerRegistry, 'ToolchainInstallerRegistry');
|
|
79
|
+
//endregion
|
|
80
|
+
function corePlatformModule() {
|
|
81
|
+
return module_0(VOID, corePlatformModule$lambda);
|
|
82
|
+
}
|
|
83
|
+
function corePlatformModule$lambda($this$module) {
|
|
84
|
+
// Inline function 'org.koin.core.module.Module.single' call
|
|
85
|
+
// Inline function 'org.koin.core.module._singleInstanceFactory' call
|
|
86
|
+
var definition = corePlatformModule$lambda$lambda;
|
|
87
|
+
var scopeQualifier = Companion_getInstance().u56_1;
|
|
88
|
+
// Inline function 'org.koin.core.definition._createDefinition' call
|
|
89
|
+
var kind = Kind_Singleton_getInstance();
|
|
90
|
+
var secondaryTypes = emptyList();
|
|
91
|
+
var def = new BeanDefinition(scopeQualifier, getKClass(PlatformCapabilityRunner), null, definition, kind, secondaryTypes);
|
|
92
|
+
var factory = new SingleInstanceFactory(def);
|
|
93
|
+
$this$module.k58(factory);
|
|
94
|
+
if (false || $this$module.e58_1) {
|
|
95
|
+
$this$module.m58(factory);
|
|
96
|
+
}
|
|
97
|
+
new KoinDefinition($this$module, factory);
|
|
98
|
+
return Unit_instance;
|
|
99
|
+
}
|
|
100
|
+
function corePlatformModule$lambda$lambda($this$single, it) {
|
|
101
|
+
// Inline function 'org.koin.core.scope.Scope.get' call
|
|
102
|
+
var tmp = $this$single.j59(getKClass(ProjectContextReader), null, null);
|
|
103
|
+
// Inline function 'org.koin.core.scope.Scope.get' call
|
|
104
|
+
var tmp_0 = $this$single.j59(getKClass(PlatformDelegateRegistry), null, null);
|
|
105
|
+
// Inline function 'org.koin.core.scope.Scope.get' call
|
|
106
|
+
var tmp$ret$2 = $this$single.j59(getKClass(WorkspaceFileSystem), null, null);
|
|
107
|
+
return new PlatformCapabilityRunner(tmp, tmp_0, tmp$ret$2);
|
|
108
|
+
}
|
|
109
|
+
function Completed(plan, summary) {
|
|
110
|
+
this.i64_1 = plan;
|
|
111
|
+
this.j64_1 = summary;
|
|
112
|
+
}
|
|
113
|
+
protoOf(Completed).toString = function () {
|
|
114
|
+
return 'Completed(plan=' + this.i64_1.toString() + ', summary=' + this.j64_1 + ')';
|
|
115
|
+
};
|
|
116
|
+
protoOf(Completed).hashCode = function () {
|
|
117
|
+
var result = this.i64_1.hashCode();
|
|
118
|
+
result = imul(result, 31) + getStringHashCode(this.j64_1) | 0;
|
|
119
|
+
return result;
|
|
120
|
+
};
|
|
121
|
+
protoOf(Completed).equals = function (other) {
|
|
122
|
+
if (this === other)
|
|
123
|
+
return true;
|
|
124
|
+
if (!(other instanceof Completed))
|
|
125
|
+
return false;
|
|
126
|
+
if (!this.i64_1.equals(other.i64_1))
|
|
127
|
+
return false;
|
|
128
|
+
if (!(this.j64_1 === other.j64_1))
|
|
129
|
+
return false;
|
|
130
|
+
return true;
|
|
131
|
+
};
|
|
132
|
+
function Failed_0(message) {
|
|
133
|
+
this.k64_1 = message;
|
|
134
|
+
}
|
|
135
|
+
protoOf(Failed_0).toString = function () {
|
|
136
|
+
return 'Failed(message=' + this.k64_1 + ')';
|
|
137
|
+
};
|
|
138
|
+
protoOf(Failed_0).hashCode = function () {
|
|
139
|
+
return getStringHashCode(this.k64_1);
|
|
140
|
+
};
|
|
141
|
+
protoOf(Failed_0).equals = function (other) {
|
|
142
|
+
if (this === other)
|
|
143
|
+
return true;
|
|
144
|
+
if (!(other instanceof Failed_0))
|
|
145
|
+
return false;
|
|
146
|
+
if (!(this.k64_1 === other.k64_1))
|
|
147
|
+
return false;
|
|
148
|
+
return true;
|
|
149
|
+
};
|
|
150
|
+
function PlatformRunPlan(platform, toolchain, workspace) {
|
|
151
|
+
this.l64_1 = platform;
|
|
152
|
+
this.m64_1 = toolchain;
|
|
153
|
+
this.n64_1 = workspace;
|
|
154
|
+
}
|
|
155
|
+
protoOf(PlatformRunPlan).toString = function () {
|
|
156
|
+
return 'PlatformRunPlan(platform=' + this.l64_1.toString() + ', toolchain=' + ToolchainId__toString_impl_4s8lfn(this.m64_1) + ', workspace=' + this.n64_1.toString() + ')';
|
|
157
|
+
};
|
|
158
|
+
protoOf(PlatformRunPlan).hashCode = function () {
|
|
159
|
+
var result = this.l64_1.hashCode();
|
|
160
|
+
result = imul(result, 31) + ToolchainId__hashCode_impl_qjei8i(this.m64_1) | 0;
|
|
161
|
+
result = imul(result, 31) + this.n64_1.hashCode() | 0;
|
|
162
|
+
return result;
|
|
163
|
+
};
|
|
164
|
+
protoOf(PlatformRunPlan).equals = function (other) {
|
|
165
|
+
if (this === other)
|
|
166
|
+
return true;
|
|
167
|
+
if (!(other instanceof PlatformRunPlan))
|
|
168
|
+
return false;
|
|
169
|
+
if (!this.l64_1.equals(other.l64_1))
|
|
170
|
+
return false;
|
|
171
|
+
if (!(this.m64_1 === other.m64_1))
|
|
172
|
+
return false;
|
|
173
|
+
if (!this.n64_1.equals(other.n64_1))
|
|
174
|
+
return false;
|
|
175
|
+
return true;
|
|
176
|
+
};
|
|
177
|
+
function noDelegateMessage($this, platform) {
|
|
178
|
+
if (platform.equals(TargetPlatform_SWIFT_UI_getInstance())) {
|
|
179
|
+
return "iOS toolchain for 'swiftui' is unavailable on this operating system.";
|
|
180
|
+
}
|
|
181
|
+
var registered = joinToString($this.r64_1.o64_1, VOID, VOID, VOID, VOID, VOID, PlatformCapabilityRunner$noDelegateMessage$lambda);
|
|
182
|
+
var tmp;
|
|
183
|
+
// Inline function 'kotlin.text.isEmpty' call
|
|
184
|
+
if (charSequenceLength(registered) === 0) {
|
|
185
|
+
tmp = "No platform toolchain is registered for '" + platform.m5p_1 + "'.";
|
|
186
|
+
} else {
|
|
187
|
+
tmp = "No platform toolchain is registered for '" + platform.m5p_1 + "'. Registered toolchains: " + registered + '.';
|
|
188
|
+
}
|
|
189
|
+
return tmp;
|
|
190
|
+
}
|
|
191
|
+
function PlatformCapabilityRunner$execute$lambda(it) {
|
|
192
|
+
return Unit_instance;
|
|
193
|
+
}
|
|
194
|
+
function PlatformCapabilityRunner$noDelegateMessage$lambda(it) {
|
|
195
|
+
return _ToolchainId___get_value__impl__s7z1bd(it.t64());
|
|
196
|
+
}
|
|
197
|
+
function $executeCOROUTINE$(_this__u8e3s4, command, onPlan, resultContinuation) {
|
|
198
|
+
CoroutineImpl.call(this, resultContinuation);
|
|
199
|
+
this.c65_1 = _this__u8e3s4;
|
|
200
|
+
this.d65_1 = command;
|
|
201
|
+
this.e65_1 = onPlan;
|
|
202
|
+
}
|
|
203
|
+
protoOf($executeCOROUTINE$).e9 = function () {
|
|
204
|
+
var suspendResult = this.y8_1;
|
|
205
|
+
$sm: do
|
|
206
|
+
try {
|
|
207
|
+
var tmp = this.w8_1;
|
|
208
|
+
switch (tmp) {
|
|
209
|
+
case 0:
|
|
210
|
+
this.x8_1 = 3;
|
|
211
|
+
var result = this.c65_1.q64_1.j5s(null);
|
|
212
|
+
var tmp_0;
|
|
213
|
+
if (result instanceof Found) {
|
|
214
|
+
tmp_0 = result.s5t_1;
|
|
215
|
+
} else {
|
|
216
|
+
if (result instanceof Failed) {
|
|
217
|
+
return new Failed_0(result.u5t_1);
|
|
218
|
+
} else {
|
|
219
|
+
noWhenBranchMatchedException();
|
|
220
|
+
}
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
var context = tmp_0;
|
|
224
|
+
var tmp_1 = this;
|
|
225
|
+
var resolution = PlatformResolver_instance.p65(this.d65_1.l65_1, context.b5p_1);
|
|
226
|
+
var tmp_2;
|
|
227
|
+
if (resolution instanceof Resolved) {
|
|
228
|
+
tmp_2 = resolution.r65_1;
|
|
229
|
+
} else {
|
|
230
|
+
if (resolution instanceof Failed_2) {
|
|
231
|
+
return new Failed_0(resolution.q65_1);
|
|
232
|
+
} else {
|
|
233
|
+
noWhenBranchMatchedException();
|
|
234
|
+
}
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
tmp_1.j65_1 = tmp_2;
|
|
238
|
+
var tmp_3 = this;
|
|
239
|
+
var tmp0_elvis_lhs = this.c65_1.r64_1.s65(this.j65_1);
|
|
240
|
+
var tmp_4;
|
|
241
|
+
if (tmp0_elvis_lhs == null) {
|
|
242
|
+
return new Failed_0(noDelegateMessage(this.c65_1, this.j65_1));
|
|
243
|
+
} else {
|
|
244
|
+
tmp_4 = tmp0_elvis_lhs;
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
tmp_3.f65_1 = tmp_4;
|
|
248
|
+
if (!this.f65_1.w65().t(this.d65_1.k65_1)) {
|
|
249
|
+
return new Failed_0("Toolchain '" + ToolchainId__toString_impl_4s8lfn(this.f65_1.t64()) + "' does not support " + this.d65_1.k65_1.v65_1 + ' ' + ("for platform '" + this.j65_1.m5p_1 + "'."));
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
this.i65_1 = Companion_instance.x65(this.c65_1.s64_1.e5o(context.a5p_1));
|
|
253
|
+
this.g65_1 = new PlatformRunPlan(this.j65_1, this.f65_1.t64(), this.i65_1);
|
|
254
|
+
var tmp_5 = this;
|
|
255
|
+
var tmp1_safe_receiver = this.d65_1.o65_1;
|
|
256
|
+
var tmp_6;
|
|
257
|
+
if (tmp1_safe_receiver == null) {
|
|
258
|
+
tmp_6 = null;
|
|
259
|
+
} else {
|
|
260
|
+
tmp_6 = this.c65_1.s64_1.e5o(tmp1_safe_receiver);
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
tmp_5.h65_1 = tmp_6;
|
|
264
|
+
this.w8_1 = 1;
|
|
265
|
+
suspendResult = this.f65_1.y65(this.i65_1, this.h65_1, this);
|
|
266
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
267
|
+
return suspendResult;
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
continue $sm;
|
|
271
|
+
case 1:
|
|
272
|
+
var status = suspendResult;
|
|
273
|
+
if (!(status instanceof Ready)) {
|
|
274
|
+
if (status instanceof Missing)
|
|
275
|
+
return new Failed_0(status.b66_1);
|
|
276
|
+
else {
|
|
277
|
+
if (status instanceof Incompatible)
|
|
278
|
+
return new Failed_0("Toolchain '" + ToolchainId__toString_impl_4s8lfn(this.f65_1.t64()) + "' has version " + status.z65_1 + ', ' + ('but ' + status.a66_1 + ' or newer is required.'));
|
|
279
|
+
else {
|
|
280
|
+
noWhenBranchMatchedException();
|
|
281
|
+
}
|
|
282
|
+
}
|
|
283
|
+
}
|
|
284
|
+
|
|
285
|
+
this.e65_1(this.g65_1);
|
|
286
|
+
var tmp2_safe_receiver = this.d65_1.m65_1;
|
|
287
|
+
var tmp_7;
|
|
288
|
+
if (tmp2_safe_receiver == null) {
|
|
289
|
+
tmp_7 = null;
|
|
290
|
+
} else {
|
|
291
|
+
tmp_7 = this.c65_1.s64_1.e5o(tmp2_safe_receiver);
|
|
292
|
+
}
|
|
293
|
+
|
|
294
|
+
var invocation = new DelegateInvocation(this.d65_1.k65_1, this.j65_1, this.i65_1, tmp_7, this.d65_1.n65_1, this.h65_1);
|
|
295
|
+
this.w8_1 = 2;
|
|
296
|
+
suspendResult = this.f65_1.c66(invocation, this);
|
|
297
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
298
|
+
return suspendResult;
|
|
299
|
+
}
|
|
300
|
+
|
|
301
|
+
continue $sm;
|
|
302
|
+
case 2:
|
|
303
|
+
var result_0 = suspendResult;
|
|
304
|
+
var tmp_8;
|
|
305
|
+
if (result_0 instanceof Completed_0) {
|
|
306
|
+
tmp_8 = new Completed(this.g65_1, result_0.h66_1);
|
|
307
|
+
} else {
|
|
308
|
+
if (result_0 instanceof Failed_1) {
|
|
309
|
+
tmp_8 = new Failed_0("Toolchain '" + ToolchainId__toString_impl_4s8lfn(this.f65_1.t64()) + "' failed with exit code " + result_0.f66_1 + ': ' + result_0.g66_1);
|
|
310
|
+
} else {
|
|
311
|
+
if (result_0 instanceof ToolchainMissing) {
|
|
312
|
+
tmp_8 = new Failed_0(result_0.e66_1);
|
|
313
|
+
} else {
|
|
314
|
+
if (result_0 instanceof Unsupported) {
|
|
315
|
+
tmp_8 = new Failed_0(result_0.d66_1);
|
|
316
|
+
} else {
|
|
317
|
+
noWhenBranchMatchedException();
|
|
318
|
+
}
|
|
319
|
+
}
|
|
320
|
+
}
|
|
321
|
+
}
|
|
322
|
+
|
|
323
|
+
return tmp_8;
|
|
324
|
+
case 3:
|
|
325
|
+
throw this.z8_1;
|
|
326
|
+
}
|
|
327
|
+
} catch ($p) {
|
|
328
|
+
var e = $p;
|
|
329
|
+
if (this.x8_1 === 3) {
|
|
330
|
+
throw e;
|
|
331
|
+
} else {
|
|
332
|
+
this.w8_1 = this.x8_1;
|
|
333
|
+
this.z8_1 = e;
|
|
334
|
+
}
|
|
335
|
+
}
|
|
336
|
+
while (true);
|
|
337
|
+
};
|
|
338
|
+
function PlatformCapabilityRunner(projectContextReader, registry, fileSystem) {
|
|
339
|
+
this.q64_1 = projectContextReader;
|
|
340
|
+
this.r64_1 = registry;
|
|
341
|
+
this.s64_1 = fileSystem;
|
|
342
|
+
}
|
|
343
|
+
protoOf(PlatformCapabilityRunner).i66 = function (command, onPlan, $completion) {
|
|
344
|
+
var tmp = new $executeCOROUTINE$(this, command, onPlan, $completion);
|
|
345
|
+
tmp.y8_1 = Unit_instance;
|
|
346
|
+
tmp.z8_1 = null;
|
|
347
|
+
return tmp.e9();
|
|
348
|
+
};
|
|
349
|
+
protoOf(PlatformCapabilityRunner).j66 = function (command, onPlan, $completion, $super) {
|
|
350
|
+
var tmp;
|
|
351
|
+
if (onPlan === VOID) {
|
|
352
|
+
tmp = PlatformCapabilityRunner$execute$lambda;
|
|
353
|
+
} else {
|
|
354
|
+
tmp = onPlan;
|
|
355
|
+
}
|
|
356
|
+
onPlan = tmp;
|
|
357
|
+
return $super === VOID ? this.i66(command, onPlan, $completion) : $super.i66.call(this, command, onPlan, $completion);
|
|
358
|
+
};
|
|
359
|
+
function PlatformRunCommand(capability, platform, output, passthrough, toolOverride) {
|
|
360
|
+
platform = platform === VOID ? null : platform;
|
|
361
|
+
output = output === VOID ? null : output;
|
|
362
|
+
passthrough = passthrough === VOID ? emptyList() : passthrough;
|
|
363
|
+
toolOverride = toolOverride === VOID ? null : toolOverride;
|
|
364
|
+
this.k65_1 = capability;
|
|
365
|
+
this.l65_1 = platform;
|
|
366
|
+
this.m65_1 = output;
|
|
367
|
+
this.n65_1 = passthrough;
|
|
368
|
+
this.o65_1 = toolOverride;
|
|
369
|
+
}
|
|
370
|
+
protoOf(PlatformRunCommand).toString = function () {
|
|
371
|
+
return 'PlatformRunCommand(capability=' + this.k65_1.toString() + ', platform=' + toString(this.l65_1) + ', output=' + this.m65_1 + ', passthrough=' + toString_0(this.n65_1) + ', toolOverride=' + this.o65_1 + ')';
|
|
372
|
+
};
|
|
373
|
+
protoOf(PlatformRunCommand).hashCode = function () {
|
|
374
|
+
var result = this.k65_1.hashCode();
|
|
375
|
+
result = imul(result, 31) + (this.l65_1 == null ? 0 : this.l65_1.hashCode()) | 0;
|
|
376
|
+
result = imul(result, 31) + (this.m65_1 == null ? 0 : getStringHashCode(this.m65_1)) | 0;
|
|
377
|
+
result = imul(result, 31) + hashCode(this.n65_1) | 0;
|
|
378
|
+
result = imul(result, 31) + (this.o65_1 == null ? 0 : getStringHashCode(this.o65_1)) | 0;
|
|
379
|
+
return result;
|
|
380
|
+
};
|
|
381
|
+
protoOf(PlatformRunCommand).equals = function (other) {
|
|
382
|
+
if (this === other)
|
|
383
|
+
return true;
|
|
384
|
+
if (!(other instanceof PlatformRunCommand))
|
|
385
|
+
return false;
|
|
386
|
+
if (!this.k65_1.equals(other.k65_1))
|
|
387
|
+
return false;
|
|
388
|
+
if (!equals(this.l65_1, other.l65_1))
|
|
389
|
+
return false;
|
|
390
|
+
if (!(this.m65_1 == other.m65_1))
|
|
391
|
+
return false;
|
|
392
|
+
if (!equals(this.n65_1, other.n65_1))
|
|
393
|
+
return false;
|
|
394
|
+
if (!(this.o65_1 == other.o65_1))
|
|
395
|
+
return false;
|
|
396
|
+
return true;
|
|
397
|
+
};
|
|
398
|
+
function PlatformDelegateRegistry(delegates) {
|
|
399
|
+
this.o64_1 = toList(delegates);
|
|
400
|
+
var tmp = this;
|
|
401
|
+
// Inline function 'kotlin.collections.buildMap' call
|
|
402
|
+
// Inline function 'kotlin.collections.buildMapInternal' call
|
|
403
|
+
// Inline function 'kotlin.apply' call
|
|
404
|
+
var this_0 = LinkedHashMap_init_$Create$();
|
|
405
|
+
// Inline function 'kotlin.collections.mutableSetOf' call
|
|
406
|
+
var toolchains = LinkedHashSet_init_$Create$();
|
|
407
|
+
// Inline function 'kotlin.collections.forEach' call
|
|
408
|
+
var _iterator__ex2g4s = this.o64_1.l();
|
|
409
|
+
while (_iterator__ex2g4s.m()) {
|
|
410
|
+
var element = _iterator__ex2g4s.n();
|
|
411
|
+
// Inline function 'kotlin.require' call
|
|
412
|
+
if (!toolchains.j(new ToolchainId(element.t64()))) {
|
|
413
|
+
var message = "Toolchain '" + ToolchainId__toString_impl_4s8lfn(element.t64()) + "' is registered twice.";
|
|
414
|
+
throw IllegalArgumentException_init_$Create$(toString_0(message));
|
|
415
|
+
}
|
|
416
|
+
// Inline function 'kotlin.collections.forEach' call
|
|
417
|
+
var _iterator__ex2g4s_0 = element.k66().l();
|
|
418
|
+
while (_iterator__ex2g4s_0.m()) {
|
|
419
|
+
var element_0 = _iterator__ex2g4s_0.n();
|
|
420
|
+
var claimed = this_0.c2(element_0);
|
|
421
|
+
// Inline function 'kotlin.require' call
|
|
422
|
+
if (!(claimed == null)) {
|
|
423
|
+
var tmp_0 = "Platform '" + element_0.m5p_1 + "' is claimed by both ";
|
|
424
|
+
var tmp_1 = claimed == null ? null : claimed.t64();
|
|
425
|
+
var message_0 = tmp_0 + ("'" + toString(tmp_1 == null ? null : new ToolchainId(tmp_1)) + "' and '" + ToolchainId__toString_impl_4s8lfn(element.t64()) + "'.");
|
|
426
|
+
throw IllegalArgumentException_init_$Create$(toString_0(message_0));
|
|
427
|
+
}
|
|
428
|
+
this_0.f2(element_0, element);
|
|
429
|
+
}
|
|
430
|
+
}
|
|
431
|
+
tmp.p64_1 = this_0.b5();
|
|
432
|
+
}
|
|
433
|
+
protoOf(PlatformDelegateRegistry).s65 = function (platform) {
|
|
434
|
+
return this.p64_1.c2(platform);
|
|
435
|
+
};
|
|
436
|
+
function Companion() {
|
|
437
|
+
}
|
|
438
|
+
protoOf(Companion).l66 = function (sddsDir) {
|
|
439
|
+
var normalized = trimEnd(sddsDir, charArrayOf([_Char___init__impl__6a9atx(47), _Char___init__impl__6a9atx(92)]));
|
|
440
|
+
// Inline function 'kotlin.require' call
|
|
441
|
+
if (!(isAbsolutePath(sddsDir) && !(parentOfAbsolutePath(normalized) == null))) {
|
|
442
|
+
var message = "sddsDir must be an absolute path below the file system root: '" + sddsDir + "'.";
|
|
443
|
+
throw IllegalArgumentException_init_$Create$(toString_0(message));
|
|
444
|
+
}
|
|
445
|
+
// Inline function 'kotlin.requireNotNull' call
|
|
446
|
+
var tmp0 = parentOfAbsolutePath(normalized);
|
|
447
|
+
var tmp$ret$3;
|
|
448
|
+
$l$block: {
|
|
449
|
+
// Inline function 'kotlin.requireNotNull' call
|
|
450
|
+
if (tmp0 == null) {
|
|
451
|
+
var message_0 = 'Required value was null.';
|
|
452
|
+
throw IllegalArgumentException_init_$Create$(toString_0(message_0));
|
|
453
|
+
} else {
|
|
454
|
+
tmp$ret$3 = tmp0;
|
|
455
|
+
break $l$block;
|
|
456
|
+
}
|
|
457
|
+
}
|
|
458
|
+
var parent = tmp$ret$3;
|
|
459
|
+
return new WorkspacePaths(normalized, parent);
|
|
460
|
+
};
|
|
461
|
+
protoOf(Companion).x65 = function (configPath) {
|
|
462
|
+
var normalized = trimEnd(configPath, charArrayOf([_Char___init__impl__6a9atx(47), _Char___init__impl__6a9atx(92)]));
|
|
463
|
+
// Inline function 'kotlin.require' call
|
|
464
|
+
if (!(isAbsolutePath(configPath) && !(parentOfAbsolutePath(normalized) == null))) {
|
|
465
|
+
var message = "configPath must be an absolute path below the file system root: '" + configPath + "'.";
|
|
466
|
+
throw IllegalArgumentException_init_$Create$(toString_0(message));
|
|
467
|
+
}
|
|
468
|
+
// Inline function 'kotlin.requireNotNull' call
|
|
469
|
+
var tmp0 = parentOfAbsolutePath(normalized);
|
|
470
|
+
var tmp$ret$3;
|
|
471
|
+
$l$block: {
|
|
472
|
+
// Inline function 'kotlin.requireNotNull' call
|
|
473
|
+
if (tmp0 == null) {
|
|
474
|
+
var message_0 = 'Required value was null.';
|
|
475
|
+
throw IllegalArgumentException_init_$Create$(toString_0(message_0));
|
|
476
|
+
} else {
|
|
477
|
+
tmp$ret$3 = tmp0;
|
|
478
|
+
break $l$block;
|
|
479
|
+
}
|
|
480
|
+
}
|
|
481
|
+
var tmp$ret$4 = tmp$ret$3;
|
|
482
|
+
return this.l66(tmp$ret$4);
|
|
483
|
+
};
|
|
484
|
+
var Companion_instance;
|
|
485
|
+
function Companion_getInstance_1() {
|
|
486
|
+
return Companion_instance;
|
|
487
|
+
}
|
|
488
|
+
function WorkspacePaths(sddsDir, workspaceDir) {
|
|
489
|
+
this.m66_1 = sddsDir;
|
|
490
|
+
this.n66_1 = workspaceDir;
|
|
491
|
+
// Inline function 'kotlin.require' call
|
|
492
|
+
if (!isAbsolutePath(this.m66_1)) {
|
|
493
|
+
var message = "sddsDir must be an absolute path: '" + this.m66_1 + "'.";
|
|
494
|
+
throw IllegalArgumentException_init_$Create$(toString_0(message));
|
|
495
|
+
}
|
|
496
|
+
// Inline function 'kotlin.require' call
|
|
497
|
+
if (!isAbsolutePath(this.n66_1)) {
|
|
498
|
+
var message_0 = "workspaceDir must be an absolute path: '" + this.n66_1 + "'.";
|
|
499
|
+
throw IllegalArgumentException_init_$Create$(toString_0(message_0));
|
|
500
|
+
}
|
|
501
|
+
}
|
|
502
|
+
protoOf(WorkspacePaths).toString = function () {
|
|
503
|
+
return 'WorkspacePaths(sddsDir=' + this.m66_1 + ', workspaceDir=' + this.n66_1 + ')';
|
|
504
|
+
};
|
|
505
|
+
protoOf(WorkspacePaths).hashCode = function () {
|
|
506
|
+
var result = getStringHashCode(this.m66_1);
|
|
507
|
+
result = imul(result, 31) + getStringHashCode(this.n66_1) | 0;
|
|
508
|
+
return result;
|
|
509
|
+
};
|
|
510
|
+
protoOf(WorkspacePaths).equals = function (other) {
|
|
511
|
+
if (this === other)
|
|
512
|
+
return true;
|
|
513
|
+
if (!(other instanceof WorkspacePaths))
|
|
514
|
+
return false;
|
|
515
|
+
if (!(this.m66_1 === other.m66_1))
|
|
516
|
+
return false;
|
|
517
|
+
if (!(this.n66_1 === other.n66_1))
|
|
518
|
+
return false;
|
|
519
|
+
return true;
|
|
520
|
+
};
|
|
521
|
+
function Ready(executable, version) {
|
|
522
|
+
this.o66_1 = executable;
|
|
523
|
+
this.p66_1 = version;
|
|
524
|
+
}
|
|
525
|
+
protoOf(Ready).toString = function () {
|
|
526
|
+
return 'Ready(executable=' + this.o66_1 + ', version=' + this.p66_1 + ')';
|
|
527
|
+
};
|
|
528
|
+
protoOf(Ready).hashCode = function () {
|
|
529
|
+
var result = getStringHashCode(this.o66_1);
|
|
530
|
+
result = imul(result, 31) + getStringHashCode(this.p66_1) | 0;
|
|
531
|
+
return result;
|
|
532
|
+
};
|
|
533
|
+
protoOf(Ready).equals = function (other) {
|
|
534
|
+
if (this === other)
|
|
535
|
+
return true;
|
|
536
|
+
if (!(other instanceof Ready))
|
|
537
|
+
return false;
|
|
538
|
+
if (!(this.o66_1 === other.o66_1))
|
|
539
|
+
return false;
|
|
540
|
+
if (!(this.p66_1 === other.p66_1))
|
|
541
|
+
return false;
|
|
542
|
+
return true;
|
|
543
|
+
};
|
|
544
|
+
function Missing(hint) {
|
|
545
|
+
this.b66_1 = hint;
|
|
546
|
+
}
|
|
547
|
+
protoOf(Missing).toString = function () {
|
|
548
|
+
return 'Missing(hint=' + this.b66_1 + ')';
|
|
549
|
+
};
|
|
550
|
+
protoOf(Missing).hashCode = function () {
|
|
551
|
+
return getStringHashCode(this.b66_1);
|
|
552
|
+
};
|
|
553
|
+
protoOf(Missing).equals = function (other) {
|
|
554
|
+
if (this === other)
|
|
555
|
+
return true;
|
|
556
|
+
if (!(other instanceof Missing))
|
|
557
|
+
return false;
|
|
558
|
+
if (!(this.b66_1 === other.b66_1))
|
|
559
|
+
return false;
|
|
560
|
+
return true;
|
|
561
|
+
};
|
|
562
|
+
function Incompatible() {
|
|
563
|
+
}
|
|
564
|
+
function _ToolchainId___init__impl__eu7bv9(value) {
|
|
565
|
+
// Inline function 'kotlin.require' call
|
|
566
|
+
if (!Companion_getInstance_2().q66_1.ld(_ToolchainId___get_value__impl__s7z1bd(value))) {
|
|
567
|
+
var message = "Toolchain id must match [a-z][a-z0-9-]*, got '" + _ToolchainId___get_value__impl__s7z1bd(value) + "'.";
|
|
568
|
+
throw IllegalArgumentException_init_$Create$(toString_0(message));
|
|
569
|
+
}
|
|
570
|
+
return value;
|
|
571
|
+
}
|
|
572
|
+
function _ToolchainId___get_value__impl__s7z1bd($this) {
|
|
573
|
+
return $this;
|
|
574
|
+
}
|
|
575
|
+
function ToolchainId__toString_impl_4s8lfn($this) {
|
|
576
|
+
return _ToolchainId___get_value__impl__s7z1bd($this);
|
|
577
|
+
}
|
|
578
|
+
function Companion_0() {
|
|
579
|
+
Companion_instance_0 = this;
|
|
580
|
+
this.q66_1 = Regex_init_$Create$('[a-z][a-z0-9-]*');
|
|
581
|
+
}
|
|
582
|
+
var Companion_instance_0;
|
|
583
|
+
function Companion_getInstance_2() {
|
|
584
|
+
if (Companion_instance_0 == null)
|
|
585
|
+
new Companion_0();
|
|
586
|
+
return Companion_instance_0;
|
|
587
|
+
}
|
|
588
|
+
function ToolchainId__hashCode_impl_qjei8i($this) {
|
|
589
|
+
return getStringHashCode($this);
|
|
590
|
+
}
|
|
591
|
+
function ToolchainId__equals_impl_95ivwq($this, other) {
|
|
592
|
+
if (!(other instanceof ToolchainId))
|
|
593
|
+
return false;
|
|
594
|
+
if (!($this === other.r66_1))
|
|
595
|
+
return false;
|
|
596
|
+
return true;
|
|
597
|
+
}
|
|
598
|
+
function ToolchainId(value) {
|
|
599
|
+
Companion_getInstance_2();
|
|
600
|
+
this.r66_1 = value;
|
|
601
|
+
}
|
|
602
|
+
protoOf(ToolchainId).toString = function () {
|
|
603
|
+
return ToolchainId__toString_impl_4s8lfn(this.r66_1);
|
|
604
|
+
};
|
|
605
|
+
protoOf(ToolchainId).hashCode = function () {
|
|
606
|
+
return ToolchainId__hashCode_impl_qjei8i(this.r66_1);
|
|
607
|
+
};
|
|
608
|
+
protoOf(ToolchainId).equals = function (other) {
|
|
609
|
+
return ToolchainId__equals_impl_95ivwq(this.r66_1, other);
|
|
610
|
+
};
|
|
611
|
+
var Capability_THEME_instance;
|
|
612
|
+
var Capability_COMPONENTS_instance;
|
|
613
|
+
var Capability_DOCS_AGGREGATE_instance;
|
|
614
|
+
var Capability_DESIGN_SYSTEM_instance;
|
|
615
|
+
function values() {
|
|
616
|
+
return [Capability_THEME_getInstance(), Capability_COMPONENTS_getInstance(), Capability_DOCS_AGGREGATE_getInstance(), Capability_DESIGN_SYSTEM_getInstance()];
|
|
617
|
+
}
|
|
618
|
+
function get_entries() {
|
|
619
|
+
if ($ENTRIES == null)
|
|
620
|
+
$ENTRIES = enumEntries(values());
|
|
621
|
+
return $ENTRIES;
|
|
622
|
+
}
|
|
623
|
+
var Capability_entriesInitialized;
|
|
624
|
+
function Capability_initEntries() {
|
|
625
|
+
if (Capability_entriesInitialized)
|
|
626
|
+
return Unit_instance;
|
|
627
|
+
Capability_entriesInitialized = true;
|
|
628
|
+
Capability_THEME_instance = new Capability('THEME', 0, 'theme generation');
|
|
629
|
+
Capability_COMPONENTS_instance = new Capability('COMPONENTS', 1, 'components generation');
|
|
630
|
+
Capability_DOCS_AGGREGATE_instance = new Capability('DOCS_AGGREGATE', 2, 'documentation aggregation');
|
|
631
|
+
Capability_DESIGN_SYSTEM_instance = new Capability('DESIGN_SYSTEM', 3, 'design system generation');
|
|
632
|
+
}
|
|
633
|
+
var $ENTRIES;
|
|
634
|
+
function Capability(name, ordinal, label) {
|
|
635
|
+
Enum.call(this, name, ordinal);
|
|
636
|
+
this.v65_1 = label;
|
|
637
|
+
}
|
|
638
|
+
function Completed_0(summary) {
|
|
639
|
+
this.h66_1 = summary;
|
|
640
|
+
}
|
|
641
|
+
protoOf(Completed_0).toString = function () {
|
|
642
|
+
return 'Completed(summary=' + this.h66_1 + ')';
|
|
643
|
+
};
|
|
644
|
+
protoOf(Completed_0).hashCode = function () {
|
|
645
|
+
return getStringHashCode(this.h66_1);
|
|
646
|
+
};
|
|
647
|
+
protoOf(Completed_0).equals = function (other) {
|
|
648
|
+
if (this === other)
|
|
649
|
+
return true;
|
|
650
|
+
if (!(other instanceof Completed_0))
|
|
651
|
+
return false;
|
|
652
|
+
if (!(this.h66_1 === other.h66_1))
|
|
653
|
+
return false;
|
|
654
|
+
return true;
|
|
655
|
+
};
|
|
656
|
+
function Failed_1(exitCode, message) {
|
|
657
|
+
this.f66_1 = exitCode;
|
|
658
|
+
this.g66_1 = message;
|
|
659
|
+
}
|
|
660
|
+
protoOf(Failed_1).toString = function () {
|
|
661
|
+
return 'Failed(exitCode=' + this.f66_1 + ', message=' + this.g66_1 + ')';
|
|
662
|
+
};
|
|
663
|
+
protoOf(Failed_1).hashCode = function () {
|
|
664
|
+
var result = this.f66_1;
|
|
665
|
+
result = imul(result, 31) + getStringHashCode(this.g66_1) | 0;
|
|
666
|
+
return result;
|
|
667
|
+
};
|
|
668
|
+
protoOf(Failed_1).equals = function (other) {
|
|
669
|
+
if (this === other)
|
|
670
|
+
return true;
|
|
671
|
+
if (!(other instanceof Failed_1))
|
|
672
|
+
return false;
|
|
673
|
+
if (!(this.f66_1 === other.f66_1))
|
|
674
|
+
return false;
|
|
675
|
+
if (!(this.g66_1 === other.g66_1))
|
|
676
|
+
return false;
|
|
677
|
+
return true;
|
|
678
|
+
};
|
|
679
|
+
function ToolchainMissing(hint) {
|
|
680
|
+
this.e66_1 = hint;
|
|
681
|
+
}
|
|
682
|
+
protoOf(ToolchainMissing).toString = function () {
|
|
683
|
+
return 'ToolchainMissing(hint=' + this.e66_1 + ')';
|
|
684
|
+
};
|
|
685
|
+
protoOf(ToolchainMissing).hashCode = function () {
|
|
686
|
+
return getStringHashCode(this.e66_1);
|
|
687
|
+
};
|
|
688
|
+
protoOf(ToolchainMissing).equals = function (other) {
|
|
689
|
+
if (this === other)
|
|
690
|
+
return true;
|
|
691
|
+
if (!(other instanceof ToolchainMissing))
|
|
692
|
+
return false;
|
|
693
|
+
if (!(this.e66_1 === other.e66_1))
|
|
694
|
+
return false;
|
|
695
|
+
return true;
|
|
696
|
+
};
|
|
697
|
+
function Unsupported(message) {
|
|
698
|
+
this.d66_1 = message;
|
|
699
|
+
}
|
|
700
|
+
protoOf(Unsupported).toString = function () {
|
|
701
|
+
return 'Unsupported(message=' + this.d66_1 + ')';
|
|
702
|
+
};
|
|
703
|
+
protoOf(Unsupported).hashCode = function () {
|
|
704
|
+
return getStringHashCode(this.d66_1);
|
|
705
|
+
};
|
|
706
|
+
protoOf(Unsupported).equals = function (other) {
|
|
707
|
+
if (this === other)
|
|
708
|
+
return true;
|
|
709
|
+
if (!(other instanceof Unsupported))
|
|
710
|
+
return false;
|
|
711
|
+
if (!(this.d66_1 === other.d66_1))
|
|
712
|
+
return false;
|
|
713
|
+
return true;
|
|
714
|
+
};
|
|
715
|
+
function DelegateInvocation(capability, platform, workspace, output, passthrough, toolOverride) {
|
|
716
|
+
output = output === VOID ? null : output;
|
|
717
|
+
passthrough = passthrough === VOID ? emptyList() : passthrough;
|
|
718
|
+
toolOverride = toolOverride === VOID ? null : toolOverride;
|
|
719
|
+
this.s66_1 = capability;
|
|
720
|
+
this.t66_1 = platform;
|
|
721
|
+
this.u66_1 = workspace;
|
|
722
|
+
this.v66_1 = output;
|
|
723
|
+
this.w66_1 = passthrough;
|
|
724
|
+
this.x66_1 = toolOverride;
|
|
725
|
+
// Inline function 'kotlin.require' call
|
|
726
|
+
if (!(this.v66_1 == null || isAbsolutePath(this.v66_1))) {
|
|
727
|
+
var message = "output must be an absolute path: '" + this.v66_1 + "'.";
|
|
728
|
+
throw IllegalArgumentException_init_$Create$(toString_0(message));
|
|
729
|
+
}
|
|
730
|
+
// Inline function 'kotlin.require' call
|
|
731
|
+
if (!(this.x66_1 == null || isAbsolutePath(this.x66_1))) {
|
|
732
|
+
var message_0 = "toolOverride must be an absolute path: '" + this.x66_1 + "'.";
|
|
733
|
+
throw IllegalArgumentException_init_$Create$(toString_0(message_0));
|
|
734
|
+
}
|
|
735
|
+
}
|
|
736
|
+
protoOf(DelegateInvocation).toString = function () {
|
|
737
|
+
return 'DelegateInvocation(capability=' + this.s66_1.toString() + ', platform=' + this.t66_1.toString() + ', workspace=' + this.u66_1.toString() + ', output=' + this.v66_1 + ', passthrough=' + toString_0(this.w66_1) + ', toolOverride=' + this.x66_1 + ')';
|
|
738
|
+
};
|
|
739
|
+
protoOf(DelegateInvocation).hashCode = function () {
|
|
740
|
+
var result = this.s66_1.hashCode();
|
|
741
|
+
result = imul(result, 31) + this.t66_1.hashCode() | 0;
|
|
742
|
+
result = imul(result, 31) + this.u66_1.hashCode() | 0;
|
|
743
|
+
result = imul(result, 31) + (this.v66_1 == null ? 0 : getStringHashCode(this.v66_1)) | 0;
|
|
744
|
+
result = imul(result, 31) + hashCode(this.w66_1) | 0;
|
|
745
|
+
result = imul(result, 31) + (this.x66_1 == null ? 0 : getStringHashCode(this.x66_1)) | 0;
|
|
746
|
+
return result;
|
|
747
|
+
};
|
|
748
|
+
protoOf(DelegateInvocation).equals = function (other) {
|
|
749
|
+
if (this === other)
|
|
750
|
+
return true;
|
|
751
|
+
if (!(other instanceof DelegateInvocation))
|
|
752
|
+
return false;
|
|
753
|
+
if (!this.s66_1.equals(other.s66_1))
|
|
754
|
+
return false;
|
|
755
|
+
if (!this.t66_1.equals(other.t66_1))
|
|
756
|
+
return false;
|
|
757
|
+
if (!this.u66_1.equals(other.u66_1))
|
|
758
|
+
return false;
|
|
759
|
+
if (!(this.v66_1 == other.v66_1))
|
|
760
|
+
return false;
|
|
761
|
+
if (!equals(this.w66_1, other.w66_1))
|
|
762
|
+
return false;
|
|
763
|
+
if (!(this.x66_1 == other.x66_1))
|
|
764
|
+
return false;
|
|
765
|
+
return true;
|
|
766
|
+
};
|
|
767
|
+
function Capability_THEME_getInstance() {
|
|
768
|
+
Capability_initEntries();
|
|
769
|
+
return Capability_THEME_instance;
|
|
770
|
+
}
|
|
771
|
+
function Capability_COMPONENTS_getInstance() {
|
|
772
|
+
Capability_initEntries();
|
|
773
|
+
return Capability_COMPONENTS_instance;
|
|
774
|
+
}
|
|
775
|
+
function Capability_DOCS_AGGREGATE_getInstance() {
|
|
776
|
+
Capability_initEntries();
|
|
777
|
+
return Capability_DOCS_AGGREGATE_instance;
|
|
778
|
+
}
|
|
779
|
+
function Capability_DESIGN_SYSTEM_getInstance() {
|
|
780
|
+
Capability_initEntries();
|
|
781
|
+
return Capability_DESIGN_SYSTEM_instance;
|
|
782
|
+
}
|
|
783
|
+
function Resolved(platform) {
|
|
784
|
+
this.r65_1 = platform;
|
|
785
|
+
}
|
|
786
|
+
protoOf(Resolved).toString = function () {
|
|
787
|
+
return 'Resolved(platform=' + this.r65_1.toString() + ')';
|
|
788
|
+
};
|
|
789
|
+
protoOf(Resolved).hashCode = function () {
|
|
790
|
+
return this.r65_1.hashCode();
|
|
791
|
+
};
|
|
792
|
+
protoOf(Resolved).equals = function (other) {
|
|
793
|
+
if (this === other)
|
|
794
|
+
return true;
|
|
795
|
+
if (!(other instanceof Resolved))
|
|
796
|
+
return false;
|
|
797
|
+
if (!this.r65_1.equals(other.r65_1))
|
|
798
|
+
return false;
|
|
799
|
+
return true;
|
|
800
|
+
};
|
|
801
|
+
function Failed_2(message) {
|
|
802
|
+
this.q65_1 = message;
|
|
803
|
+
}
|
|
804
|
+
protoOf(Failed_2).toString = function () {
|
|
805
|
+
return 'Failed(message=' + this.q65_1 + ')';
|
|
806
|
+
};
|
|
807
|
+
protoOf(Failed_2).hashCode = function () {
|
|
808
|
+
return getStringHashCode(this.q65_1);
|
|
809
|
+
};
|
|
810
|
+
protoOf(Failed_2).equals = function (other) {
|
|
811
|
+
if (this === other)
|
|
812
|
+
return true;
|
|
813
|
+
if (!(other instanceof Failed_2))
|
|
814
|
+
return false;
|
|
815
|
+
if (!(this.q65_1 === other.q65_1))
|
|
816
|
+
return false;
|
|
817
|
+
return true;
|
|
818
|
+
};
|
|
819
|
+
function PlatformResolver$resolve$lambda(it) {
|
|
820
|
+
return it.m5p_1;
|
|
821
|
+
}
|
|
822
|
+
function PlatformResolver() {
|
|
823
|
+
}
|
|
824
|
+
protoOf(PlatformResolver).p65 = function (explicit, configured) {
|
|
825
|
+
if (!(explicit == null)) {
|
|
826
|
+
return new Resolved(explicit);
|
|
827
|
+
}
|
|
828
|
+
var distinct_0 = distinct(configured);
|
|
829
|
+
var tmp;
|
|
830
|
+
if (distinct_0.o() === 1) {
|
|
831
|
+
tmp = new Resolved(single(distinct_0));
|
|
832
|
+
} else if (distinct_0.r()) {
|
|
833
|
+
tmp = new Failed_2('Target platform is not set. Pass --platform <' + joinToString(Companion_getInstance_0().n5p_1, '|') + '> ' + 'or record it once in .sdds/config.json as "platforms": ["<platform>"] (`dsbuilder init --platform <platform>` writes it for a new project).');
|
|
834
|
+
} else {
|
|
835
|
+
tmp = new Failed_2('Project config declares several platforms (' + joinToString(distinct_0, VOID, VOID, VOID, VOID, VOID, PlatformResolver$resolve$lambda) + '). ' + 'Pass --platform to choose one.');
|
|
836
|
+
}
|
|
837
|
+
return tmp;
|
|
838
|
+
};
|
|
839
|
+
var PlatformResolver_instance;
|
|
840
|
+
function PlatformResolver_getInstance() {
|
|
841
|
+
return PlatformResolver_instance;
|
|
842
|
+
}
|
|
843
|
+
function Installed(version, executable) {
|
|
844
|
+
this.y66_1 = version;
|
|
845
|
+
this.z66_1 = executable;
|
|
846
|
+
}
|
|
847
|
+
protoOf(Installed).toString = function () {
|
|
848
|
+
return 'Installed(version=' + this.y66_1 + ', executable=' + this.z66_1 + ')';
|
|
849
|
+
};
|
|
850
|
+
protoOf(Installed).hashCode = function () {
|
|
851
|
+
var result = getStringHashCode(this.y66_1);
|
|
852
|
+
result = imul(result, 31) + getStringHashCode(this.z66_1) | 0;
|
|
853
|
+
return result;
|
|
854
|
+
};
|
|
855
|
+
protoOf(Installed).equals = function (other) {
|
|
856
|
+
if (this === other)
|
|
857
|
+
return true;
|
|
858
|
+
if (!(other instanceof Installed))
|
|
859
|
+
return false;
|
|
860
|
+
if (!(this.y66_1 === other.y66_1))
|
|
861
|
+
return false;
|
|
862
|
+
if (!(this.z66_1 === other.z66_1))
|
|
863
|
+
return false;
|
|
864
|
+
return true;
|
|
865
|
+
};
|
|
866
|
+
function Failed_3(message) {
|
|
867
|
+
this.a67_1 = message;
|
|
868
|
+
}
|
|
869
|
+
protoOf(Failed_3).toString = function () {
|
|
870
|
+
return 'Failed(message=' + this.a67_1 + ')';
|
|
871
|
+
};
|
|
872
|
+
protoOf(Failed_3).hashCode = function () {
|
|
873
|
+
return getStringHashCode(this.a67_1);
|
|
874
|
+
};
|
|
875
|
+
protoOf(Failed_3).equals = function (other) {
|
|
876
|
+
if (this === other)
|
|
877
|
+
return true;
|
|
878
|
+
if (!(other instanceof Failed_3))
|
|
879
|
+
return false;
|
|
880
|
+
if (!(this.a67_1 === other.a67_1))
|
|
881
|
+
return false;
|
|
882
|
+
return true;
|
|
883
|
+
};
|
|
884
|
+
function ToolchainInstallRequest(version, archive) {
|
|
885
|
+
version = version === VOID ? null : version;
|
|
886
|
+
archive = archive === VOID ? null : archive;
|
|
887
|
+
this.b67_1 = version;
|
|
888
|
+
this.c67_1 = archive;
|
|
889
|
+
}
|
|
890
|
+
protoOf(ToolchainInstallRequest).toString = function () {
|
|
891
|
+
return 'ToolchainInstallRequest(version=' + this.b67_1 + ', archive=' + this.c67_1 + ')';
|
|
892
|
+
};
|
|
893
|
+
protoOf(ToolchainInstallRequest).hashCode = function () {
|
|
894
|
+
var result = this.b67_1 == null ? 0 : getStringHashCode(this.b67_1);
|
|
895
|
+
result = imul(result, 31) + (this.c67_1 == null ? 0 : getStringHashCode(this.c67_1)) | 0;
|
|
896
|
+
return result;
|
|
897
|
+
};
|
|
898
|
+
protoOf(ToolchainInstallRequest).equals = function (other) {
|
|
899
|
+
if (this === other)
|
|
900
|
+
return true;
|
|
901
|
+
if (!(other instanceof ToolchainInstallRequest))
|
|
902
|
+
return false;
|
|
903
|
+
if (!(this.b67_1 == other.b67_1))
|
|
904
|
+
return false;
|
|
905
|
+
if (!(this.c67_1 == other.c67_1))
|
|
906
|
+
return false;
|
|
907
|
+
return true;
|
|
908
|
+
};
|
|
909
|
+
function ToolchainInstallerRegistry(installers) {
|
|
910
|
+
this.d67_1 = toList(installers);
|
|
911
|
+
var tmp = this;
|
|
912
|
+
// Inline function 'kotlin.collections.buildMap' call
|
|
913
|
+
// Inline function 'kotlin.collections.buildMapInternal' call
|
|
914
|
+
// Inline function 'kotlin.apply' call
|
|
915
|
+
var this_0 = LinkedHashMap_init_$Create$();
|
|
916
|
+
// Inline function 'kotlin.collections.forEach' call
|
|
917
|
+
var _iterator__ex2g4s = this.d67_1.l();
|
|
918
|
+
while (_iterator__ex2g4s.m()) {
|
|
919
|
+
var element = _iterator__ex2g4s.n();
|
|
920
|
+
// Inline function 'kotlin.require' call
|
|
921
|
+
if (!(this_0.f2(new ToolchainId(element.t64()), element) == null)) {
|
|
922
|
+
var message = "Toolchain '" + ToolchainId__toString_impl_4s8lfn(element.t64()) + "' has two installers.";
|
|
923
|
+
throw IllegalArgumentException_init_$Create$(toString_0(message));
|
|
924
|
+
}
|
|
925
|
+
}
|
|
926
|
+
tmp.e67_1 = this_0.b5();
|
|
927
|
+
}
|
|
928
|
+
protoOf(ToolchainInstallerRegistry).f67 = function (toolchain) {
|
|
929
|
+
return this.e67_1.c2(new ToolchainId(toolchain));
|
|
930
|
+
};
|
|
931
|
+
//region block: init
|
|
932
|
+
Companion_instance = new Companion();
|
|
933
|
+
PlatformResolver_instance = new PlatformResolver();
|
|
934
|
+
//endregion
|
|
935
|
+
//region block: exports
|
|
936
|
+
_.$_$ = _.$_$ || {};
|
|
937
|
+
_.$_$.a = get_entries;
|
|
938
|
+
_.$_$.b = Completed_0;
|
|
939
|
+
_.$_$.c = Failed_1;
|
|
940
|
+
_.$_$.d = ToolchainMissing;
|
|
941
|
+
_.$_$.e = Unsupported;
|
|
942
|
+
_.$_$.f = PlatformCapabilityRunner;
|
|
943
|
+
_.$_$.g = PlatformDelegateRegistry;
|
|
944
|
+
_.$_$.h = Failed_2;
|
|
945
|
+
_.$_$.i = Resolved;
|
|
946
|
+
_.$_$.j = PlatformRunCommand;
|
|
947
|
+
_.$_$.k = Completed;
|
|
948
|
+
_.$_$.l = Failed_0;
|
|
949
|
+
_.$_$.m = ToolchainInstallRequest;
|
|
950
|
+
_.$_$.n = Failed_3;
|
|
951
|
+
_.$_$.o = Installed;
|
|
952
|
+
_.$_$.p = ToolchainInstallerRegistry;
|
|
953
|
+
_.$_$.q = Incompatible;
|
|
954
|
+
_.$_$.r = Missing;
|
|
955
|
+
_.$_$.s = Ready;
|
|
956
|
+
_.$_$.t = WorkspacePaths;
|
|
957
|
+
_.$_$.u = corePlatformModule;
|
|
958
|
+
_.$_$.v = Capability_COMPONENTS_getInstance;
|
|
959
|
+
_.$_$.w = Capability_DESIGN_SYSTEM_getInstance;
|
|
960
|
+
_.$_$.x = Capability_DOCS_AGGREGATE_getInstance;
|
|
961
|
+
_.$_$.y = Capability_THEME_getInstance;
|
|
962
|
+
_.$_$.z = _ToolchainId___init__impl__eu7bv9;
|
|
963
|
+
_.$_$.a1 = ToolchainId__hashCode_impl_qjei8i;
|
|
964
|
+
_.$_$.b1 = ToolchainId__toString_impl_4s8lfn;
|
|
965
|
+
_.$_$.c1 = _ToolchainId___get_value__impl__s7z1bd;
|
|
966
|
+
_.$_$.d1 = PlatformResolver_instance;
|
|
967
|
+
_.$_$.e1 = Companion_instance;
|
|
968
|
+
//endregion
|
|
969
|
+
return _;
|
|
970
|
+
}(module.exports, require('./kotlin-kotlin-stdlib.js'), require('./projects-core-koin-core.js'), require('./design-system-builder-frontend-core-application.js'), require('./design-system-builder-frontend-core-workspace.js'), require('./design-system-builder-frontend-core-domain.js'), require('./design-system-builder-frontend-core-process.js')));
|
|
971
|
+
|
|
972
|
+
//# sourceMappingURL=design-system-builder-frontend-core-platform.js.map
|