mrs-toolbox-cli 0.0.129 → 0.0.130
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/88b0986a7186d029-atomicfu-js-ir.js +19 -19
- package/clikt-clikt-mordant.js +245 -0
- package/clikt-clikt-mordant.js.map +1 -0
- package/clikt-clikt.js +3345 -3129
- package/clikt-clikt.js.map +1 -1
- package/colormath-root-colormath.js +806 -611
- package/colormath-root-colormath.js.map +1 -1
- package/com.mrs.platform.configuration.dto.js +6125 -5640
- package/com.mrs.platform.configuration.dto.js.map +1 -1
- package/kotlin-kotlin-stdlib.js +3749 -2808
- package/kotlin-kotlin-stdlib.js.map +1 -1
- package/kotlin-logging-js-ir.js +47 -47
- package/kotlin-node.js +1 -1
- package/kotlinx-serialization-kotlinx-serialization-core.js +2084 -2056
- package/kotlinx-serialization-kotlinx-serialization-core.js.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-json.js +1640 -1629
- package/kotlinx-serialization-kotlinx-serialization-json.js.map +1 -1
- package/kotlinx.coroutines-kotlinx-coroutines-core-js-ir.js +2119 -2096
- package/kotlinx.coroutines-kotlinx-coroutines-core-js-ir.js.map +1 -1
- package/ktor-ktor-client-content-negotiation.js +223 -223
- package/ktor-ktor-client-content-negotiation.js.map +1 -1
- package/ktor-ktor-client-core.js +2531 -2532
- package/ktor-ktor-client-core.js.map +1 -1
- package/ktor-ktor-events.js +13 -13
- package/ktor-ktor-http.js +702 -703
- package/ktor-ktor-http.js.map +1 -1
- package/ktor-ktor-io.js +1583 -1583
- package/ktor-ktor-io.js.map +1 -1
- package/ktor-ktor-serialization-kotlinx-json.js +8 -8
- package/ktor-ktor-serialization-kotlinx.js +265 -265
- package/ktor-ktor-serialization.js +126 -126
- package/ktor-ktor-utils.js +519 -519
- package/ktor-ktor-utils.js.map +1 -1
- package/ktor-ktor-websockets.js +60 -60
- package/ktor-ktor-websockets.js.map +1 -1
- package/mordant-mordant-omnibus.js +8 -0
- package/mordant-mordant-omnibus.js.map +1 -0
- package/mordant-mordant.js +4442 -9011
- package/mordant-mordant.js.map +1 -1
- package/mrs-toolbox-cli.d.ts +43 -1
- package/mrs-toolbox-cli.js +1020 -145
- package/mrs-toolbox-cli.js.map +1 -1
- package/package.json +1 -1
- package/static/init/hooks.webpack.config.js +35 -0
- package/static/init/webpackRoot.config.js +35 -0
- package/toolbox.js +6163 -5544
- package/toolbox.js.map +1 -1
- package/markdown.js +0 -6644
- package/markdown.js.map +0 -1
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
(function (_, kotlin_kotlin) {
|
|
2
2
|
'use strict';
|
|
3
3
|
//region block: imports
|
|
4
|
-
var fillArrayVal = kotlin_kotlin.$_$.
|
|
5
|
-
var protoOf = kotlin_kotlin.$_$.
|
|
6
|
-
var defineProp = kotlin_kotlin.$_$.
|
|
7
|
-
var initMetadataForClass = kotlin_kotlin.$_$.
|
|
8
|
-
var initMetadataForObject = kotlin_kotlin.$_$.
|
|
4
|
+
var fillArrayVal = kotlin_kotlin.$_$.ua;
|
|
5
|
+
var protoOf = kotlin_kotlin.$_$.ac;
|
|
6
|
+
var defineProp = kotlin_kotlin.$_$.ra;
|
|
7
|
+
var initMetadataForClass = kotlin_kotlin.$_$.ab;
|
|
8
|
+
var initMetadataForObject = kotlin_kotlin.$_$.gb;
|
|
9
9
|
var VOID = kotlin_kotlin.$_$.g;
|
|
10
|
-
var toString = kotlin_kotlin.$_$.
|
|
10
|
+
var toString = kotlin_kotlin.$_$.rh;
|
|
11
11
|
//endregion
|
|
12
12
|
//region block: pre-declaration
|
|
13
13
|
initMetadataForClass(atomicfu$AtomicRefArray$ref, 'AtomicArray');
|
|
@@ -27,13 +27,13 @@
|
|
|
27
27
|
tmp_1[tmp_0] = atomic$ref$1(null);
|
|
28
28
|
tmp_0 = tmp_0 + 1 | 0;
|
|
29
29
|
}
|
|
30
|
-
tmp.
|
|
30
|
+
tmp.jo_1 = tmp_1;
|
|
31
31
|
}
|
|
32
|
-
protoOf(atomicfu$AtomicRefArray$ref).
|
|
33
|
-
return this.
|
|
32
|
+
protoOf(atomicfu$AtomicRefArray$ref).ko = function () {
|
|
33
|
+
return this.jo_1.length;
|
|
34
34
|
};
|
|
35
35
|
protoOf(atomicfu$AtomicRefArray$ref).atomicfu$get = function (index) {
|
|
36
|
-
return this.
|
|
36
|
+
return this.jo_1[index];
|
|
37
37
|
};
|
|
38
38
|
function atomicfu$AtomicRefArray$ofNulls(size) {
|
|
39
39
|
return new atomicfu$AtomicRefArray$ref(size);
|
|
@@ -61,10 +61,10 @@
|
|
|
61
61
|
function AtomicRef(value) {
|
|
62
62
|
this.kotlinx$atomicfu$value = value;
|
|
63
63
|
}
|
|
64
|
-
protoOf(AtomicRef).
|
|
64
|
+
protoOf(AtomicRef).lo = function (_set____db54di) {
|
|
65
65
|
this.kotlinx$atomicfu$value = _set____db54di;
|
|
66
66
|
};
|
|
67
|
-
protoOf(AtomicRef).
|
|
67
|
+
protoOf(AtomicRef).mo = function () {
|
|
68
68
|
return this.kotlinx$atomicfu$value;
|
|
69
69
|
};
|
|
70
70
|
protoOf(AtomicRef).atomicfu$compareAndSet = function (expect, update) {
|
|
@@ -87,10 +87,10 @@
|
|
|
87
87
|
function AtomicBoolean(value) {
|
|
88
88
|
this.kotlinx$atomicfu$value = value;
|
|
89
89
|
}
|
|
90
|
-
protoOf(AtomicBoolean).
|
|
90
|
+
protoOf(AtomicBoolean).no = function (_set____db54di) {
|
|
91
91
|
this.kotlinx$atomicfu$value = _set____db54di;
|
|
92
92
|
};
|
|
93
|
-
protoOf(AtomicBoolean).
|
|
93
|
+
protoOf(AtomicBoolean).mo = function () {
|
|
94
94
|
return this.kotlinx$atomicfu$value;
|
|
95
95
|
};
|
|
96
96
|
protoOf(AtomicBoolean).atomicfu$compareAndSet = function (expect, update) {
|
|
@@ -113,10 +113,10 @@
|
|
|
113
113
|
function AtomicInt(value) {
|
|
114
114
|
this.kotlinx$atomicfu$value = value;
|
|
115
115
|
}
|
|
116
|
-
protoOf(AtomicInt).
|
|
116
|
+
protoOf(AtomicInt).oo = function (_set____db54di) {
|
|
117
117
|
this.kotlinx$atomicfu$value = _set____db54di;
|
|
118
118
|
};
|
|
119
|
-
protoOf(AtomicInt).
|
|
119
|
+
protoOf(AtomicInt).mo = function () {
|
|
120
120
|
return this.kotlinx$atomicfu$value;
|
|
121
121
|
};
|
|
122
122
|
protoOf(AtomicInt).atomicfu$compareAndSet = function (expect, update) {
|
|
@@ -166,10 +166,10 @@
|
|
|
166
166
|
function AtomicLong(value) {
|
|
167
167
|
this.kotlinx$atomicfu$value = value;
|
|
168
168
|
}
|
|
169
|
-
protoOf(AtomicLong).
|
|
169
|
+
protoOf(AtomicLong).po = function (_set____db54di) {
|
|
170
170
|
this.kotlinx$atomicfu$value = _set____db54di;
|
|
171
171
|
};
|
|
172
|
-
protoOf(AtomicLong).
|
|
172
|
+
protoOf(AtomicLong).mo = function () {
|
|
173
173
|
return this.kotlinx$atomicfu$value;
|
|
174
174
|
};
|
|
175
175
|
protoOf(AtomicLong).atomicfu$compareAndSet = function (expect, update) {
|
|
@@ -233,7 +233,7 @@
|
|
|
233
233
|
return new AtomicLong(initial);
|
|
234
234
|
}
|
|
235
235
|
//region block: post-declaration
|
|
236
|
-
defineProp(protoOf(atomicfu$AtomicRefArray$ref), 'atomicfu$size', protoOf(atomicfu$AtomicRefArray$ref).
|
|
236
|
+
defineProp(protoOf(atomicfu$AtomicRefArray$ref), 'atomicfu$size', protoOf(atomicfu$AtomicRefArray$ref).ko);
|
|
237
237
|
//endregion
|
|
238
238
|
//region block: exports
|
|
239
239
|
_.$_$ = _.$_$ || {};
|
|
@@ -0,0 +1,245 @@
|
|
|
1
|
+
(function (_, kotlin_clikt_clikt, kotlin_kotlin, kotlin_mordant_mordant) {
|
|
2
|
+
'use strict';
|
|
3
|
+
//region block: imports
|
|
4
|
+
var selfAndAncestors = kotlin_clikt_clikt.$_$.f;
|
|
5
|
+
var mapNotNull = kotlin_kotlin.$_$.hd;
|
|
6
|
+
var firstOrNull = kotlin_kotlin.$_$.cd;
|
|
7
|
+
var Terminal_init_$Create$ = kotlin_mordant_mordant.$_$.e;
|
|
8
|
+
var last = kotlin_kotlin.$_$.gd;
|
|
9
|
+
var Unit_instance = kotlin_kotlin.$_$.f5;
|
|
10
|
+
var Terminal = kotlin_mordant_mordant.$_$.d;
|
|
11
|
+
var VOID = kotlin_kotlin.$_$.g;
|
|
12
|
+
var transformAll = kotlin_clikt_clikt.$_$.m;
|
|
13
|
+
var to = kotlin_kotlin.$_$.sh;
|
|
14
|
+
var numberRangeToNumber = kotlin_kotlin.$_$.vb;
|
|
15
|
+
var slice = kotlin_kotlin.$_$.ue;
|
|
16
|
+
var charSequenceGet = kotlin_kotlin.$_$.na;
|
|
17
|
+
var contains = kotlin_kotlin.$_$.qd;
|
|
18
|
+
var charSequenceLength = kotlin_kotlin.$_$.oa;
|
|
19
|
+
var toString = kotlin_kotlin.$_$.u2;
|
|
20
|
+
var titlecase = kotlin_kotlin.$_$.ef;
|
|
21
|
+
var isLowerCase = kotlin_kotlin.$_$.fe;
|
|
22
|
+
var toString_0 = kotlin_kotlin.$_$.fc;
|
|
23
|
+
var Prompt = kotlin_mordant_mordant.$_$.c;
|
|
24
|
+
var OptionCallTransformContext = kotlin_clikt_clikt.$_$.j;
|
|
25
|
+
var listOf = kotlin_kotlin.$_$.v7;
|
|
26
|
+
var OptionWithValues = kotlin_clikt_clikt.$_$.k;
|
|
27
|
+
var isInterface = kotlin_kotlin.$_$.pb;
|
|
28
|
+
var Valid = kotlin_mordant_mordant.$_$.b;
|
|
29
|
+
var Plain_instance = kotlin_clikt_clikt.$_$.o;
|
|
30
|
+
var Invalid = kotlin_mordant_mordant.$_$.a;
|
|
31
|
+
var UsageError = kotlin_clikt_clikt.$_$.e;
|
|
32
|
+
var protoOf = kotlin_kotlin.$_$.ac;
|
|
33
|
+
var initMetadataForClass = kotlin_kotlin.$_$.ab;
|
|
34
|
+
var compareTo = kotlin_kotlin.$_$.qa;
|
|
35
|
+
var Regex_init_$Create$ = kotlin_kotlin.$_$.d1;
|
|
36
|
+
var lastOrNull = kotlin_kotlin.$_$.r7;
|
|
37
|
+
var Abort = kotlin_clikt_clikt.$_$.a;
|
|
38
|
+
var Companion_instance = kotlin_mordant_mordant.$_$.f;
|
|
39
|
+
//endregion
|
|
40
|
+
//region block: pre-declaration
|
|
41
|
+
initMetadataForClass(prompt$1$builder$1$1, VOID, VOID, Prompt);
|
|
42
|
+
//endregion
|
|
43
|
+
function get_terminal(_this__u8e3s4) {
|
|
44
|
+
// Inline function 'com.github.ajalt.clikt.core.Context.findObject' call
|
|
45
|
+
var key = 'mordant_terminal';
|
|
46
|
+
var tmp = selfAndAncestors(_this__u8e3s4);
|
|
47
|
+
var tmp0_elvis_lhs = firstOrNull(mapNotNull(tmp, _get_terminal_$lambda_5keric(key)));
|
|
48
|
+
var tmp_0;
|
|
49
|
+
if (tmp0_elvis_lhs == null) {
|
|
50
|
+
// Inline function 'kotlin.also' call
|
|
51
|
+
var this_0 = Terminal_init_$Create$();
|
|
52
|
+
// Inline function 'kotlin.contracts.contract' call
|
|
53
|
+
// Inline function 'com.github.ajalt.clikt.core.<get-terminal>.<anonymous>' call
|
|
54
|
+
// Inline function 'kotlin.collections.set' call
|
|
55
|
+
var this_1 = last(selfAndAncestors(_this__u8e3s4)).d6p_1;
|
|
56
|
+
var key_0 = 'mordant_terminal';
|
|
57
|
+
this_1.o2(key_0, this_0);
|
|
58
|
+
tmp_0 = this_0;
|
|
59
|
+
} else {
|
|
60
|
+
tmp_0 = tmp0_elvis_lhs;
|
|
61
|
+
}
|
|
62
|
+
return tmp_0;
|
|
63
|
+
}
|
|
64
|
+
function _get_terminal_$lambda_5keric($key) {
|
|
65
|
+
return function (it) {
|
|
66
|
+
var tmp = it.d6p_1.l2($key);
|
|
67
|
+
return tmp instanceof Terminal ? tmp : null;
|
|
68
|
+
};
|
|
69
|
+
}
|
|
70
|
+
function prompt(_this__u8e3s4, text, default_0, hideInput, promptSuffix, showDefault, requireConfirmation, confirmationPrompt, confirmationMismatchMessage) {
|
|
71
|
+
text = text === VOID ? null : text;
|
|
72
|
+
default_0 = default_0 === VOID ? null : default_0;
|
|
73
|
+
hideInput = hideInput === VOID ? false : hideInput;
|
|
74
|
+
promptSuffix = promptSuffix === VOID ? ': ' : promptSuffix;
|
|
75
|
+
showDefault = showDefault === VOID ? true : showDefault;
|
|
76
|
+
requireConfirmation = requireConfirmation === VOID ? false : requireConfirmation;
|
|
77
|
+
confirmationPrompt = confirmationPrompt === VOID ? 'Repeat for confirmation' : confirmationPrompt;
|
|
78
|
+
confirmationMismatchMessage = confirmationMismatchMessage === VOID ? 'Values do not match, try again' : confirmationMismatchMessage;
|
|
79
|
+
return transformAll(_this__u8e3s4, VOID, VOID, prompt$lambda(text, requireConfirmation, confirmationPrompt, confirmationMismatchMessage, default_0, showDefault, hideInput, promptSuffix, _this__u8e3s4));
|
|
80
|
+
}
|
|
81
|
+
function splitOptionPrefix(name) {
|
|
82
|
+
var tmp;
|
|
83
|
+
if (name.length < 2 || !contains('-@/+', charSequenceGet(name, 0))) {
|
|
84
|
+
tmp = to('', name);
|
|
85
|
+
} else if (name.length > 2 && charSequenceGet(name, 0) === charSequenceGet(name, 1)) {
|
|
86
|
+
var tmp_0 = slice(name, numberRangeToNumber(0, 1));
|
|
87
|
+
// Inline function 'kotlin.text.substring' call
|
|
88
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
89
|
+
var tmp$ret$1 = name.substring(2);
|
|
90
|
+
tmp = to(tmp_0, tmp$ret$1);
|
|
91
|
+
} else {
|
|
92
|
+
// Inline function 'kotlin.text.substring' call
|
|
93
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
94
|
+
var tmp_1 = name.substring(0, 1);
|
|
95
|
+
// Inline function 'kotlin.text.substring' call
|
|
96
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
97
|
+
var tmp$ret$5 = name.substring(1);
|
|
98
|
+
tmp = to(tmp_1, tmp$ret$5);
|
|
99
|
+
}
|
|
100
|
+
return tmp;
|
|
101
|
+
}
|
|
102
|
+
function capitalize2(_this__u8e3s4) {
|
|
103
|
+
// Inline function 'kotlin.text.replaceFirstChar' call
|
|
104
|
+
var tmp;
|
|
105
|
+
// Inline function 'kotlin.text.isNotEmpty' call
|
|
106
|
+
if (charSequenceLength(_this__u8e3s4) > 0) {
|
|
107
|
+
// Inline function 'com.github.ajalt.clikt.parameters.options.capitalize2.<anonymous>' call
|
|
108
|
+
var it = charSequenceGet(_this__u8e3s4, 0);
|
|
109
|
+
var tmp$ret$1 = isLowerCase(it) ? titlecase(it) : toString(it);
|
|
110
|
+
var tmp_0 = toString_0(tmp$ret$1);
|
|
111
|
+
// Inline function 'kotlin.text.substring' call
|
|
112
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
113
|
+
tmp = tmp_0 + _this__u8e3s4.substring(1);
|
|
114
|
+
} else {
|
|
115
|
+
tmp = _this__u8e3s4;
|
|
116
|
+
}
|
|
117
|
+
return tmp;
|
|
118
|
+
}
|
|
119
|
+
function prompt$1$builder$1$1($it, $this_transformAll, $default, $showDefault, $hideInput, $promptSuffix, $this_prompt) {
|
|
120
|
+
this.r7h_1 = $this_transformAll;
|
|
121
|
+
this.s7h_1 = $this_prompt;
|
|
122
|
+
Prompt.call(this, $it, get_terminal_0($this_transformAll), $default, $showDefault, VOID, $hideInput, VOID, $promptSuffix);
|
|
123
|
+
}
|
|
124
|
+
protoOf(prompt$1$builder$1$1).t7e = function (input) {
|
|
125
|
+
var ctx = new OptionCallTransformContext('', this.r7h_1, this.r7h_1.z6p_1);
|
|
126
|
+
try {
|
|
127
|
+
var v = this.s7h_1.z6z()(ctx, listOf(this.s7h_1.x6y()(ctx, input)));
|
|
128
|
+
var tmp = this.r7h_1.y6p_1;
|
|
129
|
+
var tmp4_safe_receiver = isInterface(tmp, OptionWithValues) ? tmp : null;
|
|
130
|
+
var validator = tmp4_safe_receiver == null ? null : tmp4_safe_receiver.l70();
|
|
131
|
+
if (validator == null)
|
|
132
|
+
null;
|
|
133
|
+
else
|
|
134
|
+
validator(this.r7h_1, v);
|
|
135
|
+
return new Valid(v);
|
|
136
|
+
} catch ($p) {
|
|
137
|
+
if ($p instanceof UsageError) {
|
|
138
|
+
var e = $p;
|
|
139
|
+
var tmp0_elvis_lhs = e.r9();
|
|
140
|
+
e.i6s(tmp0_elvis_lhs == null ? this.r7h_1.z6p_1 : tmp0_elvis_lhs);
|
|
141
|
+
return new Invalid(e.h6s(this.r7h_1.z6p_1.b6p_1, Plain_instance));
|
|
142
|
+
} else {
|
|
143
|
+
throw $p;
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
};
|
|
147
|
+
function prompt$lambda$lambda($this_transformAll, $default, $showDefault, $hideInput, $promptSuffix, $this_prompt) {
|
|
148
|
+
return function (it) {
|
|
149
|
+
return new prompt$1$builder$1$1(it, $this_transformAll, $default, $showDefault, $hideInput, $promptSuffix, $this_prompt);
|
|
150
|
+
};
|
|
151
|
+
}
|
|
152
|
+
function prompt$lambda($text, $requireConfirmation, $confirmationPrompt, $confirmationMismatchMessage, $default, $showDefault, $hideInput, $promptSuffix, $this_prompt) {
|
|
153
|
+
return function ($this$transformAll, invocations) {
|
|
154
|
+
var tmp0_elvis_lhs = $text;
|
|
155
|
+
var tmp;
|
|
156
|
+
if (tmp0_elvis_lhs == null) {
|
|
157
|
+
var tmp$ret$0;
|
|
158
|
+
$l$block_0: {
|
|
159
|
+
// Inline function 'kotlin.collections.maxByOrNull' call
|
|
160
|
+
var iterator = $this$transformAll.m6o().k();
|
|
161
|
+
if (!iterator.l()) {
|
|
162
|
+
tmp$ret$0 = null;
|
|
163
|
+
break $l$block_0;
|
|
164
|
+
}
|
|
165
|
+
var maxElem = iterator.m();
|
|
166
|
+
if (!iterator.l()) {
|
|
167
|
+
tmp$ret$0 = maxElem;
|
|
168
|
+
break $l$block_0;
|
|
169
|
+
}
|
|
170
|
+
// Inline function 'com.github.ajalt.clikt.parameters.options.prompt.<anonymous>.<anonymous>' call
|
|
171
|
+
var maxValue = maxElem.length;
|
|
172
|
+
do {
|
|
173
|
+
var e = iterator.m();
|
|
174
|
+
// Inline function 'com.github.ajalt.clikt.parameters.options.prompt.<anonymous>.<anonymous>' call
|
|
175
|
+
var v = e.length;
|
|
176
|
+
if (compareTo(maxValue, v) < 0) {
|
|
177
|
+
maxElem = e;
|
|
178
|
+
maxValue = v;
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
while (iterator.l());
|
|
182
|
+
tmp$ret$0 = maxElem;
|
|
183
|
+
}
|
|
184
|
+
var tmp1_safe_receiver = tmp$ret$0;
|
|
185
|
+
var tmp_0;
|
|
186
|
+
if (tmp1_safe_receiver == null) {
|
|
187
|
+
tmp_0 = null;
|
|
188
|
+
} else {
|
|
189
|
+
// Inline function 'kotlin.let' call
|
|
190
|
+
// Inline function 'kotlin.contracts.contract' call
|
|
191
|
+
// Inline function 'com.github.ajalt.clikt.parameters.options.prompt.<anonymous>.<anonymous>' call
|
|
192
|
+
tmp_0 = splitOptionPrefix(tmp1_safe_receiver).pg_1;
|
|
193
|
+
}
|
|
194
|
+
var tmp2_safe_receiver = tmp_0;
|
|
195
|
+
var tmp_1;
|
|
196
|
+
if (tmp2_safe_receiver == null) {
|
|
197
|
+
tmp_1 = null;
|
|
198
|
+
} else {
|
|
199
|
+
// Inline function 'kotlin.text.replace' call
|
|
200
|
+
tmp_1 = Regex_init_$Create$('\\W').ed(tmp2_safe_receiver, ' ');
|
|
201
|
+
}
|
|
202
|
+
var tmp3_safe_receiver = tmp_1;
|
|
203
|
+
tmp = tmp3_safe_receiver == null ? null : capitalize2(tmp3_safe_receiver);
|
|
204
|
+
} else {
|
|
205
|
+
tmp = tmp0_elvis_lhs;
|
|
206
|
+
}
|
|
207
|
+
var tmp1_elvis_lhs = tmp;
|
|
208
|
+
var promptText = tmp1_elvis_lhs == null ? 'Value' : tmp1_elvis_lhs;
|
|
209
|
+
var provided = lastOrNull(invocations);
|
|
210
|
+
var tmp_2;
|
|
211
|
+
if (!(provided == null)) {
|
|
212
|
+
return provided;
|
|
213
|
+
}
|
|
214
|
+
var tmp_3;
|
|
215
|
+
if ($this$transformAll.z6p_1.h6p_1) {
|
|
216
|
+
throw new Abort();
|
|
217
|
+
}
|
|
218
|
+
var builder = prompt$lambda$lambda($this$transformAll, $default, $showDefault, $hideInput, $promptSuffix, $this_prompt);
|
|
219
|
+
var tmp_4;
|
|
220
|
+
if ($requireConfirmation) {
|
|
221
|
+
tmp_4 = Companion_instance.g7f(promptText, $confirmationPrompt, $confirmationMismatchMessage, builder).a7f();
|
|
222
|
+
} else {
|
|
223
|
+
tmp_4 = builder(promptText).a7f();
|
|
224
|
+
}
|
|
225
|
+
var result = tmp_4;
|
|
226
|
+
var tmp_5;
|
|
227
|
+
if (result == null) {
|
|
228
|
+
throw new Abort();
|
|
229
|
+
} else {
|
|
230
|
+
tmp_5 = result;
|
|
231
|
+
}
|
|
232
|
+
return tmp_5;
|
|
233
|
+
};
|
|
234
|
+
}
|
|
235
|
+
function get_terminal_0(_this__u8e3s4) {
|
|
236
|
+
return get_terminal(_this__u8e3s4.z6p_1);
|
|
237
|
+
}
|
|
238
|
+
//region block: exports
|
|
239
|
+
_.$_$ = _.$_$ || {};
|
|
240
|
+
_.$_$.a = prompt;
|
|
241
|
+
//endregion
|
|
242
|
+
return _;
|
|
243
|
+
}(module.exports, require('./clikt-clikt.js'), require('./kotlin-kotlin-stdlib.js'), require('./mordant-mordant.js')));
|
|
244
|
+
|
|
245
|
+
//# sourceMappingURL=clikt-clikt-mordant.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../../../../../../Users/runner/work/clikt/clikt/clikt-mordant/src/commonMain/kotlin/com/github/ajalt/clikt/core/MordantContext.kt","../../../../../../../../../Users/runner/work/clikt/clikt/clikt/src/commonMain/kotlin/com/github/ajalt/clikt/core/Context.kt","../../../../../cli/build/compileSync/js/main/productionLibrary/kotlin/src/kotlin/util/Standard.kt","../../../../../cli/build/compileSync/js/main/productionLibrary/kotlin/src/kotlin/collections/Maps.kt","../../../../../../../../../Users/runner/work/clikt/clikt/clikt-mordant/src/commonMain/kotlin/com/github/ajalt/clikt/parameters/options/PromptOptions.kt","../../../../../cli/build/compileSync/js/main/productionLibrary/kotlin/js/src/kotlin/text/stringJs.kt","../../../../../cli/build/compileSync/js/main/productionLibrary/kotlin/src/kotlin/text/Strings.kt","../../../../../cli/build/compileSync/js/main/productionLibrary/kotlin/common/src/generated/_Collections.kt","../../../../../../../../../Users/runner/work/clikt/clikt/clikt-mordant/src/commonMain/kotlin/com/github/ajalt/clikt/parameters/transform/MordantTransformContext.kt"],"sourcesContent":[null,null,null,null,null,null,null,null,null],"names":["<get-terminal>","<this>","<get-terminal>$lambda","<get-terminal>$lambda$lambda","it","prompt","text","default","hideInput","promptSuffix","showDefault","requireConfirmation","confirmationPrompt","confirmationMismatchMessage","splitOptionPrefix","name","capitalize2","<init>","$it","$this_transformAll","$default","$showDefault","$hideInput","$promptSuffix","convert","input","ctx","v","validator","e","prompt$lambda$lambda","prompt$lambda$lambda$lambda","prompt$lambda","$text","$requireConfirmation","$confirmationPrompt","$confirmationMismatchMessage","$this$transformAll","invocations","iterator","maxElem","maxValue","promptText","provided","builder","result"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;uBAYIA,CADAC,aACAD,EAAQ;A;cCFkB,kB;cA2If,iBA3II,aA2IJ,C;QDzIH,iBCyIwD,YAAlC,gBAAW,iCAAX,CAAkC,C;;IDzIxD,2B;;mBEEqB,wB;;;;mBCEM,KAAnB,+BAAmB,C,CAAO,K;kBAAK,kB;MA0P/C,UAAI,KAAJ,EHrM+wB,MGqM/wB,C;cDxKO,M;;cFtFC,c;;IAGP,Y;EAAD,C;uCAsDu2GE,C,IAAAA,E;oBAAAC,CAAAC,EAAAD,EAAA;A,gBAAE,GAAG,KAAH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