mrs-toolbox-cli 0.0.1 → 0.0.11

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 (132) hide show
  1. package/88b0986a7186d029-atomicfu-js-ir.js +53 -72
  2. package/88b0986a7186d029-atomicfu-js-ir.js.map +1 -1
  3. package/{Kotlin-DateTime-library-kotlinx-datetime-js-ir.js → Kotlin-DateTime-library-kotlinx-datetime.js} +1 -1
  4. package/app.properties +1 -0
  5. package/clikt-clikt-mordant.js +245 -0
  6. package/clikt-clikt-mordant.js.map +1 -0
  7. package/clikt-clikt.js +6653 -0
  8. package/clikt-clikt.js.map +1 -0
  9. package/colormath-root-colormath.js +1670 -0
  10. package/colormath-root-colormath.js.map +1 -0
  11. package/com.mrs.platform.configuration.dto.js +11391 -9555
  12. package/com.mrs.platform.configuration.dto.js.map +1 -1
  13. package/kotlin-kotlin-stdlib.js +16354 -0
  14. package/kotlin-kotlin-stdlib.js.map +1 -0
  15. package/kotlin-logging-js-ir.js +88 -111
  16. package/kotlin-logging-js-ir.js.map +1 -1
  17. package/kotlin-node.js +14 -5
  18. package/kotlin-node.js.map +1 -1
  19. package/kotlin_org_jetbrains_kotlin_kotlin_dom_api_compat.js +8 -0
  20. package/kotlin_org_jetbrains_kotlin_kotlin_dom_api_compat.js.map +1 -0
  21. package/kotlinx-html.js +8 -0
  22. package/kotlinx-html.js.map +1 -0
  23. package/kotlinx-serialization-kotlinx-serialization-core.js +6098 -0
  24. package/kotlinx-serialization-kotlinx-serialization-core.js.map +1 -0
  25. package/kotlinx-serialization-kotlinx-serialization-json.js +5116 -0
  26. package/kotlinx-serialization-kotlinx-serialization-json.js.map +1 -0
  27. package/kotlinx.coroutines-kotlinx-coroutines-core-js-ir.js +3931 -3753
  28. package/kotlinx.coroutines-kotlinx-coroutines-core-js-ir.js.map +1 -1
  29. package/ktor-ktor-client-content-negotiation.js +293 -302
  30. package/ktor-ktor-client-content-negotiation.js.map +1 -1
  31. package/ktor-ktor-client-core.js +3108 -3459
  32. package/ktor-ktor-client-core.js.map +1 -1
  33. package/ktor-ktor-events.js +21 -27
  34. package/ktor-ktor-events.js.map +1 -1
  35. package/ktor-ktor-http.js +1241 -1722
  36. package/ktor-ktor-http.js.map +1 -1
  37. package/ktor-ktor-io.js +2222 -3125
  38. package/ktor-ktor-io.js.map +1 -1
  39. package/ktor-ktor-serialization-kotlinx-json.js +12 -13
  40. package/ktor-ktor-serialization-kotlinx-json.js.map +1 -1
  41. package/ktor-ktor-serialization-kotlinx.js +365 -396
  42. package/ktor-ktor-serialization-kotlinx.js.map +1 -1
  43. package/ktor-ktor-serialization.js +154 -150
  44. package/ktor-ktor-serialization.js.map +1 -1
  45. package/ktor-ktor-utils.js +749 -943
  46. package/ktor-ktor-utils.js.map +1 -1
  47. package/ktor-ktor-websockets.js +102 -116
  48. package/ktor-ktor-websockets.js.map +1 -1
  49. package/mordant-mordant-omnibus.js +8 -0
  50. package/mordant-mordant-omnibus.js.map +1 -0
  51. package/mordant-mordant.js +7129 -0
  52. package/mordant-mordant.js.map +1 -0
  53. package/mrs-toolbox-cli.d.ts +801 -829
  54. package/mrs-toolbox-cli.js +1055 -264
  55. package/mrs-toolbox-cli.js.map +1 -1
  56. package/package.json +3 -2
  57. package/static/demo.test.ts.txt +1 -1
  58. package/static/init/hooks.webpack.config.js +35 -0
  59. package/static/init/webpackRoot.config.js +35 -0
  60. package/static/mrscconfig.json +0 -1
  61. package/toolbox.js +14903 -12592
  62. package/toolbox.js.map +1 -1
  63. package/88b0986a7186d029-atomicfu-js-ir.js.hash +0 -1
  64. package/88b0986a7186d029-atomicfu-js-ir.js.map.hash +0 -1
  65. package/Kotlin-DateTime-library-kotlinx-datetime-js-ir.js.hash +0 -1
  66. package/Kotlin-DateTime-library-kotlinx-datetime-js-ir.js.map.hash +0 -1
  67. package/clikt-clikt-js-ir.js +0 -7044
  68. package/clikt-clikt-js-ir.js.hash +0 -1
  69. package/clikt-clikt-js-ir.js.map +0 -1
  70. package/clikt-clikt-js-ir.js.map.hash +0 -1
  71. package/com.mrs.platform.configuration.dto.js.hash +0 -1
  72. package/com.mrs.platform.configuration.dto.js.map.hash +0 -1
  73. package/kotlin-js.js.hash +0 -1
  74. package/kotlin-js.js.map.hash +0 -1
  75. package/kotlin-kotlin-stdlib-js-ir.js +0 -15789
  76. package/kotlin-kotlin-stdlib-js-ir.js.hash +0 -1
  77. package/kotlin-kotlin-stdlib-js-ir.js.map +0 -1
  78. package/kotlin-kotlin-stdlib-js-ir.js.map.hash +0 -1
  79. package/kotlin-kotlinx-atomicfu-runtime-js-ir.js.hash +0 -1
  80. package/kotlin-kotlinx-atomicfu-runtime-js-ir.js.map.hash +0 -1
  81. package/kotlin-logging-js-ir.js.hash +0 -1
  82. package/kotlin-logging-js-ir.js.map.hash +0 -1
  83. package/kotlin-node.js.hash +0 -1
  84. package/kotlin-node.js.map.hash +0 -1
  85. package/kotlin-web.js.hash +0 -1
  86. package/kotlin-web.js.map.hash +0 -1
  87. package/kotlinx-serialization-kotlinx-serialization-core-js-ir.js +0 -6431
  88. package/kotlinx-serialization-kotlinx-serialization-core-js-ir.js.hash +0 -1
  89. package/kotlinx-serialization-kotlinx-serialization-core-js-ir.js.map +0 -1
  90. package/kotlinx-serialization-kotlinx-serialization-core-js-ir.js.map.hash +0 -1
  91. package/kotlinx-serialization-kotlinx-serialization-json-js-ir.js +0 -5102
  92. package/kotlinx-serialization-kotlinx-serialization-json-js-ir.js.hash +0 -1
  93. package/kotlinx-serialization-kotlinx-serialization-json-js-ir.js.map +0 -1
  94. package/kotlinx-serialization-kotlinx-serialization-json-js-ir.js.map.hash +0 -1
  95. package/kotlinx.coroutines-kotlinx-coroutines-core-js-ir.js.hash +0 -1
  96. package/kotlinx.coroutines-kotlinx-coroutines-core-js-ir.js.map.hash +0 -1
  97. package/ktor-ktor-client-content-negotiation.js.hash +0 -1
  98. package/ktor-ktor-client-content-negotiation.js.map.hash +0 -1
  99. package/ktor-ktor-client-core.js.hash +0 -1
  100. package/ktor-ktor-client-core.js.map.hash +0 -1
  101. package/ktor-ktor-events.js.hash +0 -1
  102. package/ktor-ktor-events.js.map.hash +0 -1
  103. package/ktor-ktor-http.js.hash +0 -1
  104. package/ktor-ktor-http.js.map.hash +0 -1
  105. package/ktor-ktor-io.js.hash +0 -1
  106. package/ktor-ktor-io.js.map.hash +0 -1
  107. package/ktor-ktor-serialization-kotlinx-json.js.hash +0 -1
  108. package/ktor-ktor-serialization-kotlinx-json.js.map.hash +0 -1
  109. package/ktor-ktor-serialization-kotlinx.js.hash +0 -1
  110. package/ktor-ktor-serialization-kotlinx.js.map.hash +0 -1
  111. package/ktor-ktor-serialization.js.hash +0 -1
  112. package/ktor-ktor-serialization.js.map.hash +0 -1
  113. package/ktor-ktor-utils.js.hash +0 -1
  114. package/ktor-ktor-utils.js.map.hash +0 -1
  115. package/ktor-ktor-websocket-serialization.js.hash +0 -1
  116. package/ktor-ktor-websocket-serialization.js.map.hash +0 -1
  117. package/ktor-ktor-websockets.js.hash +0 -1
  118. package/ktor-ktor-websockets.js.map.hash +0 -1
  119. package/mrs-toolbox-cli.d.ts.hash +0 -1
  120. package/mrs-toolbox-cli.js.hash +0 -1
  121. package/mrs-toolbox-cli.js.map.hash +0 -1
  122. package/static/access.query.txt.hash +0 -1
  123. package/static/demo.test.ts.txt.hash +0 -1
  124. package/static/git.ignore.hash +0 -1
  125. package/static/graph.query.txt.hash +0 -1
  126. package/static/hook.ts.txt.hash +0 -1
  127. package/static/mrscconfig.json.hash +0 -1
  128. package/static/readme.md.hash +0 -1
  129. package/static/tsconfig.json.txt.hash +0 -1
  130. package/toolbox.js.hash +0 -1
  131. package/toolbox.js.map.hash +0 -1
  132. /package/{Kotlin-DateTime-library-kotlinx-datetime-js-ir.js.map → Kotlin-DateTime-library-kotlinx-datetime.js.map} +0 -0
@@ -1,389 +1,1180 @@
1
1
  #!/usr/bin/env node
2
- (function (_, kotlin_com_github_ajalt_clikt_clikt, kotlin_kotlin, kotlin_com_mrs_platform_toolbox_library, kotlin_com_mrs_platform_configuration_dto_dto) {
2
+ (function (_, kotlin_clikt_clikt, kotlin_kotlin, kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core, kotlin_com_mrs_platform_toolbox_library, kotlin_clikt_clikt_mordant, kotlin_com_mrs_platform_configuration_dto_dto) {
3
3
  'use strict';
4
4
  //region block: imports
5
- var CliktCommand = kotlin_com_github_ajalt_clikt_clikt.$_$.a;
6
- var protoOf = kotlin_kotlin.$_$.ua;
7
- var classMeta = kotlin_kotlin.$_$.o9;
8
- var VOID = kotlin_kotlin.$_$.tf;
9
- var setMetadataFor = kotlin_kotlin.$_$.va;
10
- var charSequenceLength = kotlin_kotlin.$_$.m9;
11
- var Unit_getInstance = kotlin_kotlin.$_$.v4;
12
- var option = kotlin_com_github_ajalt_clikt_clikt.$_$.g;
13
- var prompt = kotlin_com_github_ajalt_clikt_clikt.$_$.h;
14
- var validate = kotlin_com_github_ajalt_clikt_clikt.$_$.i;
15
- var argument = kotlin_com_github_ajalt_clikt_clikt.$_$.c;
16
- var optional = kotlin_com_github_ajalt_clikt_clikt.$_$.d;
17
- var FileManager_getInstance = kotlin_com_mrs_platform_toolbox_library.$_$.b;
18
- var default_0 = kotlin_com_github_ajalt_clikt_clikt.$_$.e;
5
+ var BaseCliktCommand = kotlin_clikt_clikt.$_$.b;
6
+ var VOID = kotlin_kotlin.$_$.g;
7
+ var protoOf = kotlin_kotlin.$_$.dc;
8
+ var initMetadataForClass = kotlin_kotlin.$_$.db;
9
+ var CoroutineImpl = kotlin_kotlin.$_$.da;
10
+ var Unit_instance = kotlin_kotlin.$_$.g5;
11
+ var THROW_CCE = kotlin_kotlin.$_$.rg;
12
+ var FlowCollector = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.o;
13
+ var isInterface = kotlin_kotlin.$_$.sb;
14
+ var initMetadataForLambda = kotlin_kotlin.$_$.ib;
15
+ var flow = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.q;
19
16
  var CommandExecutor_getInstance = kotlin_com_mrs_platform_toolbox_library.$_$.a;
20
- var flag = kotlin_com_github_ajalt_clikt_clikt.$_$.f;
21
- var println = kotlin_kotlin.$_$.e9;
22
- var KProperty1 = kotlin_kotlin.$_$.lb;
23
- var getPropertyCallableRef = kotlin_kotlin.$_$.u9;
24
- var THROW_CCE = kotlin_kotlin.$_$.pe;
25
- var isArray = kotlin_kotlin.$_$.y9;
26
- var split = kotlin_kotlin.$_$.zc;
27
- var subcommands = kotlin_com_github_ajalt_clikt_clikt.$_$.b;
17
+ var argument = kotlin_clikt_clikt.$_$.h;
18
+ var charSequenceLength = kotlin_kotlin.$_$.ra;
19
+ var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.n9;
20
+ var option = kotlin_clikt_clikt.$_$.l;
21
+ var prompt = kotlin_clikt_clikt_mordant.$_$.a;
22
+ var optional = kotlin_clikt_clikt.$_$.i;
23
+ var LoggerMessage = kotlin_com_mrs_platform_toolbox_library.$_$.b;
24
+ var ArrayList_init_$Create$ = kotlin_kotlin.$_$.m;
25
+ var CommandLineParser_instance = kotlin_clikt_clikt.$_$.p;
26
+ var asList = kotlin_kotlin.$_$.y5;
27
+ var flatten = kotlin_clikt_clikt.$_$.n;
28
+ var closeFinally = kotlin_kotlin.$_$.gh;
29
+ var ProgramResult = kotlin_clikt_clikt.$_$.d;
30
+ var CliktError = kotlin_clikt_clikt.$_$.c;
31
+ var subcommands = kotlin_clikt_clikt.$_$.g;
32
+ var emitAll = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.a;
33
+ var KProperty1 = kotlin_kotlin.$_$.ad;
34
+ var getPropertyCallableRef = kotlin_kotlin.$_$.ab;
35
+ var isArray = kotlin_kotlin.$_$.kb;
36
+ var get_EmptyContinuation = kotlin_kotlin.$_$.r9;
28
37
  //endregion
29
38
  //region block: pre-declaration
30
- setMetadataFor(Mrsc, 'Mrsc', classMeta, CliktCommand);
31
- setMetadataFor(Auth, 'Auth', classMeta, CliktCommand);
32
- setMetadataFor(Test, 'Test', classMeta, CliktCommand);
33
- setMetadataFor(Prepare, 'Prepare', classMeta, CliktCommand);
34
- setMetadataFor(Export, 'Export', classMeta, CliktCommand);
35
- setMetadataFor(Upload, 'Upload', classMeta, CliktCommand);
36
- setMetadataFor(Version, 'Version', classMeta, CliktCommand);
37
- setMetadataFor(PullReferences, 'PullReferences', classMeta, CliktCommand);
39
+ initMetadataForClass(FlowCliktCommand, 'FlowCliktCommand', VOID, BaseCliktCommand);
40
+ initMetadataForLambda(Mrsc$run$slambda, CoroutineImpl, VOID, [1]);
41
+ initMetadataForClass(Mrsc, 'Mrsc', Mrsc, FlowCliktCommand);
42
+ initMetadataForLambda(WorkingDir$run$slambda, CoroutineImpl, VOID, [1]);
43
+ initMetadataForClass(WorkingDir, 'WorkingDir', WorkingDir, FlowCliktCommand);
44
+ initMetadataForLambda(Auth$run$slambda, CoroutineImpl, VOID, [1]);
45
+ initMetadataForClass(Auth, 'Auth', Auth, FlowCliktCommand);
46
+ initMetadataForLambda(Test$run$slambda, CoroutineImpl, VOID, [1]);
47
+ initMetadataForClass(Test, 'Test', Test, FlowCliktCommand);
48
+ initMetadataForLambda(Prepare$run$slambda, CoroutineImpl, VOID, [1]);
49
+ initMetadataForClass(Prepare, 'Prepare', Prepare, FlowCliktCommand);
50
+ initMetadataForLambda(Export$run$slambda$slambda, CoroutineImpl, VOID, [1]);
51
+ initMetadataForClass(sam$kotlinx_coroutines_flow_FlowCollector$0, 'sam$kotlinx_coroutines_flow_FlowCollector$0', VOID, VOID, [FlowCollector], [1]);
52
+ initMetadataForLambda(Export$run$slambda, CoroutineImpl, VOID, [1]);
53
+ initMetadataForClass(Export, 'Export', Export, FlowCliktCommand);
54
+ initMetadataForLambda(Upload$run$slambda$slambda, CoroutineImpl, VOID, [1]);
55
+ initMetadataForClass(sam$kotlinx_coroutines_flow_FlowCollector$0_0, 'sam$kotlinx_coroutines_flow_FlowCollector$0', VOID, VOID, [FlowCollector], [1]);
56
+ initMetadataForLambda(Upload$run$slambda, CoroutineImpl, VOID, [1]);
57
+ initMetadataForClass(Upload, 'Upload', Upload, FlowCliktCommand);
58
+ initMetadataForLambda(Version$run$slambda, CoroutineImpl, VOID, [1]);
59
+ initMetadataForClass(Version, 'Version', Version, FlowCliktCommand);
60
+ initMetadataForLambda(PullDictionaries$run$slambda, CoroutineImpl, VOID, [1]);
61
+ initMetadataForClass(PullDictionaries, 'PullDictionaries', PullDictionaries, FlowCliktCommand);
62
+ initMetadataForLambda(Migrate$run$slambda, CoroutineImpl, VOID, [1]);
63
+ initMetadataForClass(Migrate, 'Migrate', Migrate, FlowCliktCommand);
64
+ initMetadataForClass(sam$kotlinx_coroutines_flow_FlowCollector$0_1, 'sam$kotlinx_coroutines_flow_FlowCollector$0', VOID, VOID, [FlowCollector], [1]);
65
+ initMetadataForLambda(parse$slambda, CoroutineImpl, VOID, [1]);
66
+ initMetadataForLambda(commonMain$slambda, CoroutineImpl, VOID, [1]);
38
67
  //endregion
68
+ function FlowCliktCommand(name) {
69
+ name = name === VOID ? null : name;
70
+ BaseCliktCommand.call(this, name);
71
+ }
72
+ function Mrsc$run$slambda(resultContinuation) {
73
+ CoroutineImpl.call(this, resultContinuation);
74
+ }
75
+ protoOf(Mrsc$run$slambda).a7n = function ($this$flow, $completion) {
76
+ var tmp = this.b7n($this$flow, $completion);
77
+ tmp.n9_1 = Unit_instance;
78
+ tmp.o9_1 = null;
79
+ return tmp.t9();
80
+ };
81
+ protoOf(Mrsc$run$slambda).ba = function (p1, $completion) {
82
+ return this.a7n((!(p1 == null) ? isInterface(p1, FlowCollector) : false) ? p1 : THROW_CCE(), $completion);
83
+ };
84
+ protoOf(Mrsc$run$slambda).t9 = function () {
85
+ var suspendResult = this.n9_1;
86
+ $sm: do
87
+ try {
88
+ var tmp = this.l9_1;
89
+ if (tmp === 0) {
90
+ this.m9_1 = 1;
91
+ return Unit_instance;
92
+ } else if (tmp === 1) {
93
+ throw this.o9_1;
94
+ }
95
+ } catch ($p) {
96
+ var e = $p;
97
+ throw e;
98
+ }
99
+ while (true);
100
+ };
101
+ protoOf(Mrsc$run$slambda).b7n = function ($this$flow, completion) {
102
+ var i = new Mrsc$run$slambda(completion);
103
+ i.z7m_1 = $this$flow;
104
+ return i;
105
+ };
106
+ function Mrsc$run$slambda_0(resultContinuation) {
107
+ var i = new Mrsc$run$slambda(resultContinuation);
108
+ var l = function ($this$flow, $completion) {
109
+ return i.a7n($this$flow, $completion);
110
+ };
111
+ l.$arity = 1;
112
+ return l;
113
+ }
39
114
  function Mrsc() {
40
- CliktCommand.call(this, 'Mrs constructor toolbox cli app');
41
- }
42
- protoOf(Mrsc).wq = function () {
43
- };
44
- function Auth$email$delegate$lambda($this$validate, it) {
45
- // Inline function 'com.github.ajalt.clikt.parameters.options.OptionTransformContext.require' call
46
- var tmp$ret$0;
47
- // Inline function 'kotlin.text.isNotEmpty' call
48
- tmp$ret$0 = charSequenceLength(it) > 0;
49
- var tmp0_require = tmp$ret$0;
50
- if (!tmp0_require) {
51
- var tmp$ret$1;
52
- // Inline function 'Auth.email$delegate.<anonymous>.<anonymous>' call
53
- tmp$ret$1 = "Email can't be empty!";
54
- $this$validate.b56(tmp$ret$1);
115
+ FlowCliktCommand.call(this);
116
+ }
117
+ protoOf(Mrsc).q7m = function () {
118
+ return flow(Mrsc$run$slambda_0(null));
119
+ };
120
+ function WorkingDir$run$slambda(this$0, resultContinuation) {
121
+ this.z7n_1 = this$0;
122
+ CoroutineImpl.call(this, resultContinuation);
123
+ }
124
+ protoOf(WorkingDir$run$slambda).a7n = function ($this$flow, $completion) {
125
+ var tmp = this.b7n($this$flow, $completion);
126
+ tmp.n9_1 = Unit_instance;
127
+ tmp.o9_1 = null;
128
+ return tmp.t9();
129
+ };
130
+ protoOf(WorkingDir$run$slambda).ba = function (p1, $completion) {
131
+ return this.a7n((!(p1 == null) ? isInterface(p1, FlowCollector) : false) ? p1 : THROW_CCE(), $completion);
132
+ };
133
+ protoOf(WorkingDir$run$slambda).t9 = function () {
134
+ var suspendResult = this.n9_1;
135
+ $sm: do
136
+ try {
137
+ var tmp = this.l9_1;
138
+ if (tmp === 0) {
139
+ this.m9_1 = 1;
140
+ CommandExecutor_getInstance().z57_1 = this.z7n_1.r7o();
141
+ return Unit_instance;
142
+ } else if (tmp === 1) {
143
+ throw this.o9_1;
144
+ }
145
+ } catch ($p) {
146
+ var e = $p;
147
+ throw e;
148
+ }
149
+ while (true);
150
+ };
151
+ protoOf(WorkingDir$run$slambda).b7n = function ($this$flow, completion) {
152
+ var i = new WorkingDir$run$slambda(this.z7n_1, completion);
153
+ i.a7o_1 = $this$flow;
154
+ return i;
155
+ };
156
+ function WorkingDir$run$slambda_0(this$0, resultContinuation) {
157
+ var i = new WorkingDir$run$slambda(this$0, resultContinuation);
158
+ var l = function ($this$flow, $completion) {
159
+ return i.a7n($this$flow, $completion);
160
+ };
161
+ l.$arity = 1;
162
+ return l;
163
+ }
164
+ function WorkingDir() {
165
+ FlowCliktCommand.call(this, 'workingdir');
166
+ this.q7o_1 = argument(this).k73(this, workingDir$factory());
167
+ }
168
+ protoOf(WorkingDir).c6u = function (context) {
169
+ return 'Set working directory';
170
+ };
171
+ protoOf(WorkingDir).r7o = function () {
172
+ return this.q7o_1.e74(this, workingDir$factory_0());
173
+ };
174
+ protoOf(WorkingDir).q7m = function () {
175
+ return flow(WorkingDir$run$slambda_0(this, null));
176
+ };
177
+ function Auth$email$delegate$lambda($this$copy, it) {
178
+ if (!(it == null)) {
179
+ // Inline function 'Auth.email$delegate.<anonymous>' call
180
+ // Inline function 'com.github.ajalt.clikt.parameters.options.OptionTransformContext.require' call
181
+ // Inline function 'kotlin.text.isNotEmpty' call
182
+ if (!(charSequenceLength(it) > 0)) {
183
+ // Inline function 'Auth.email$delegate.<anonymous>.<anonymous>' call
184
+ var tmp$ret$1 = "Email can't be empty!";
185
+ $this$copy.n73(tmp$ret$1);
186
+ }
55
187
  }
56
- return Unit_getInstance();
57
- }
58
- function Auth$password$delegate$lambda($this$validate, it) {
59
- // Inline function 'com.github.ajalt.clikt.parameters.options.OptionTransformContext.require' call
60
- var tmp$ret$0;
61
- // Inline function 'kotlin.text.isNotEmpty' call
62
- tmp$ret$0 = charSequenceLength(it) > 0;
63
- var tmp0_require = tmp$ret$0;
64
- if (!tmp0_require) {
65
- var tmp$ret$1;
66
- // Inline function 'Auth.password$delegate.<anonymous>.<anonymous>' call
67
- tmp$ret$1 = "Password can't be empty!";
68
- $this$validate.b56(tmp$ret$1);
188
+ return Unit_instance;
189
+ }
190
+ function Auth$password$delegate$lambda($this$copy, it) {
191
+ if (!(it == null)) {
192
+ // Inline function 'Auth.password$delegate.<anonymous>' call
193
+ // Inline function 'com.github.ajalt.clikt.parameters.options.OptionTransformContext.require' call
194
+ // Inline function 'kotlin.text.isNotEmpty' call
195
+ if (!(charSequenceLength(it) > 0)) {
196
+ // Inline function 'Auth.password$delegate.<anonymous>.<anonymous>' call
197
+ var tmp$ret$1 = "Password can't be empty!";
198
+ $this$copy.n73(tmp$ret$1);
199
+ }
69
200
  }
70
- return Unit_getInstance();
201
+ return Unit_instance;
202
+ }
203
+ function Auth$run$slambda(this$0, resultContinuation) {
204
+ this.a7p_1 = this$0;
205
+ CoroutineImpl.call(this, resultContinuation);
206
+ }
207
+ protoOf(Auth$run$slambda).a7n = function ($this$flow, $completion) {
208
+ var tmp = this.b7n($this$flow, $completion);
209
+ tmp.n9_1 = Unit_instance;
210
+ tmp.o9_1 = null;
211
+ return tmp.t9();
212
+ };
213
+ protoOf(Auth$run$slambda).ba = function (p1, $completion) {
214
+ return this.a7n((!(p1 == null) ? isInterface(p1, FlowCollector) : false) ? p1 : THROW_CCE(), $completion);
215
+ };
216
+ protoOf(Auth$run$slambda).t9 = function () {
217
+ var suspendResult = this.n9_1;
218
+ $sm: do
219
+ try {
220
+ var tmp = this.l9_1;
221
+ switch (tmp) {
222
+ case 0:
223
+ this.m9_1 = 2;
224
+ this.l9_1 = 1;
225
+ suspendResult = CommandExecutor_getInstance().p5a(this.a7p_1.u3v(), this.a7p_1.v28(), this.a7p_1.f3p(), this.a7p_1.i45()).nr(this);
226
+ if (suspendResult === get_COROUTINE_SUSPENDED()) {
227
+ return suspendResult;
228
+ }
229
+
230
+ continue $sm;
231
+ case 1:
232
+ return Unit_instance;
233
+ case 2:
234
+ throw this.o9_1;
235
+ }
236
+ } catch ($p) {
237
+ var e = $p;
238
+ if (this.m9_1 === 2) {
239
+ throw e;
240
+ } else {
241
+ this.l9_1 = this.m9_1;
242
+ this.o9_1 = e;
243
+ }
244
+ }
245
+ while (true);
246
+ };
247
+ protoOf(Auth$run$slambda).b7n = function ($this$flow, completion) {
248
+ var i = new Auth$run$slambda(this.a7p_1, completion);
249
+ i.b7p_1 = $this$flow;
250
+ return i;
251
+ };
252
+ function Auth$run$slambda_0(this$0, resultContinuation) {
253
+ var i = new Auth$run$slambda(this$0, resultContinuation);
254
+ var l = function ($this$flow, $completion) {
255
+ return i.a7n($this$flow, $completion);
256
+ };
257
+ l.$arity = 1;
258
+ return l;
71
259
  }
72
260
  function Auth() {
73
- CliktCommand.call(this, 'Auth to strapi');
261
+ FlowCliktCommand.call(this, 'auth');
74
262
  var tmp = this;
75
- var tmp_0 = prompt(option(this, ['-e', '--email'], 'Email for log in'));
76
- tmp.g65_1 = validate(tmp_0, Auth$email$delegate$lambda).y54(this, email$factory());
77
- var tmp_1 = this;
78
- var tmp_2 = prompt(option(this, ['-p', '--password'], 'Password for log in'));
79
- tmp_1.h65_1 = validate(tmp_2, Auth$password$delegate$lambda).y54(this, password$factory());
80
- this.i65_1 = optional(argument(this, VOID, 'Url to strapi server')).o53(this, url$factory());
81
- this.j65_1 = option(this, ['-c', '--config'], 'Config file name').y54(this, config$factory());
82
- this.k65_1 = default_0(option(this, [], 'Current working directory', VOID, true), FileManager_getInstance().s61()).y54(this, cwd$factory());
263
+ // Inline function 'com.github.ajalt.clikt.parameters.options.validate' call
264
+ var this_0 = prompt(option(this, ['-e', '--email'], 'Email for log in'));
265
+ var tmp_0 = this_0.f73();
266
+ var tmp_1 = this_0.h74();
267
+ var tmp_2 = this_0.g73();
268
+ tmp.r7p_1 = this_0.i74(tmp_0, tmp_1, tmp_2, Auth$email$delegate$lambda).o74(this, email$factory());
269
+ var tmp_3 = this;
270
+ // Inline function 'com.github.ajalt.clikt.parameters.options.validate' call
271
+ var this_1 = prompt(option(this, ['-p', '--password'], 'Password for log in'));
272
+ var tmp_4 = this_1.f73();
273
+ var tmp_5 = this_1.h74();
274
+ var tmp_6 = this_1.g73();
275
+ tmp_3.s7p_1 = this_1.i74(tmp_4, tmp_5, tmp_6, Auth$password$delegate$lambda).o74(this, password$factory());
276
+ this.t7p_1 = optional(argument(this, VOID, 'Url to strapi server')).k73(this, url$factory());
277
+ this.u7p_1 = option(this, ['-c', '--config'], 'Config file name').o74(this, config$factory());
83
278
  }
84
- protoOf(Auth).l65 = function () {
85
- return this.g65_1.n53(this, email$factory_0());
279
+ protoOf(Auth).c6u = function (context) {
280
+ return 'Auth to directus';
281
+ };
282
+ protoOf(Auth).u3v = function () {
283
+ return this.r7p_1.e74(this, email$factory_0());
284
+ };
285
+ protoOf(Auth).v28 = function () {
286
+ return this.s7p_1.e74(this, password$factory_0());
86
287
  };
87
- protoOf(Auth).o20 = function () {
88
- return this.h65_1.n53(this, password$factory_0());
288
+ protoOf(Auth).f3p = function () {
289
+ return this.t7p_1.e74(this, url$factory_0());
89
290
  };
90
- protoOf(Auth).w29 = function () {
91
- return this.i65_1.n53(this, url$factory_0());
291
+ protoOf(Auth).i45 = function () {
292
+ return this.u7p_1.e74(this, config$factory_0());
92
293
  };
93
- protoOf(Auth).x27 = function () {
94
- return this.j65_1.n53(this, config$factory_0());
294
+ protoOf(Auth).q7m = function () {
295
+ return flow(Auth$run$slambda_0(this, null));
95
296
  };
96
- protoOf(Auth).l62 = function () {
97
- return this.k65_1.n53(this, cwd$factory_0());
297
+ function Test$run$slambda(this$0, resultContinuation) {
298
+ this.d7q_1 = this$0;
299
+ CoroutineImpl.call(this, resultContinuation);
300
+ }
301
+ protoOf(Test$run$slambda).a7n = function ($this$flow, $completion) {
302
+ var tmp = this.b7n($this$flow, $completion);
303
+ tmp.n9_1 = Unit_instance;
304
+ tmp.o9_1 = null;
305
+ return tmp.t9();
306
+ };
307
+ protoOf(Test$run$slambda).ba = function (p1, $completion) {
308
+ return this.a7n((!(p1 == null) ? isInterface(p1, FlowCollector) : false) ? p1 : THROW_CCE(), $completion);
309
+ };
310
+ protoOf(Test$run$slambda).t9 = function () {
311
+ var suspendResult = this.n9_1;
312
+ $sm: do
313
+ try {
314
+ var tmp = this.l9_1;
315
+ switch (tmp) {
316
+ case 0:
317
+ this.m9_1 = 2;
318
+ this.l9_1 = 1;
319
+ suspendResult = CommandExecutor_getInstance().q5a(this.d7q_1.i45()).nr(this);
320
+ if (suspendResult === get_COROUTINE_SUSPENDED()) {
321
+ return suspendResult;
322
+ }
323
+
324
+ continue $sm;
325
+ case 1:
326
+ return Unit_instance;
327
+ case 2:
328
+ throw this.o9_1;
329
+ }
330
+ } catch ($p) {
331
+ var e = $p;
332
+ if (this.m9_1 === 2) {
333
+ throw e;
334
+ } else {
335
+ this.l9_1 = this.m9_1;
336
+ this.o9_1 = e;
337
+ }
338
+ }
339
+ while (true);
98
340
  };
99
- protoOf(Auth).wq = function () {
100
- return CommandExecutor_getInstance().auth(this.l65(), this.o20(), this.w29(), this.l62(), this.x27());
341
+ protoOf(Test$run$slambda).b7n = function ($this$flow, completion) {
342
+ var i = new Test$run$slambda(this.d7q_1, completion);
343
+ i.e7q_1 = $this$flow;
344
+ return i;
101
345
  };
346
+ function Test$run$slambda_0(this$0, resultContinuation) {
347
+ var i = new Test$run$slambda(this$0, resultContinuation);
348
+ var l = function ($this$flow, $completion) {
349
+ return i.a7n($this$flow, $completion);
350
+ };
351
+ l.$arity = 1;
352
+ return l;
353
+ }
102
354
  function Test() {
103
- CliktCommand.call(this, 'Test hooks');
104
- this.d66_1 = option(this, ['-c', '--config'], 'Config file name').y54(this, config$factory_1());
105
- this.e66_1 = default_0(option(this, [], 'Current working directory', VOID, true), FileManager_getInstance().s61()).y54(this, cwd$factory_1());
355
+ FlowCliktCommand.call(this, 'test');
356
+ this.u7q_1 = option(this, ['-c', '--config'], 'Config file name').o74(this, config$factory_1());
357
+ }
358
+ protoOf(Test).c6u = function (context) {
359
+ return 'Test hooks';
360
+ };
361
+ protoOf(Test).i45 = function () {
362
+ return this.u7q_1.e74(this, config$factory_2());
363
+ };
364
+ protoOf(Test).q7m = function () {
365
+ return flow(Test$run$slambda_0(this, null));
366
+ };
367
+ function Prepare$run$slambda(this$0, resultContinuation) {
368
+ this.d7r_1 = this$0;
369
+ CoroutineImpl.call(this, resultContinuation);
106
370
  }
107
- protoOf(Test).x27 = function () {
108
- return this.d66_1.n53(this, config$factory_2());
371
+ protoOf(Prepare$run$slambda).a7n = function ($this$flow, $completion) {
372
+ var tmp = this.b7n($this$flow, $completion);
373
+ tmp.n9_1 = Unit_instance;
374
+ tmp.o9_1 = null;
375
+ return tmp.t9();
376
+ };
377
+ protoOf(Prepare$run$slambda).ba = function (p1, $completion) {
378
+ return this.a7n((!(p1 == null) ? isInterface(p1, FlowCollector) : false) ? p1 : THROW_CCE(), $completion);
109
379
  };
110
- protoOf(Test).l62 = function () {
111
- return this.e66_1.n53(this, cwd$factory_2());
380
+ protoOf(Prepare$run$slambda).t9 = function () {
381
+ var suspendResult = this.n9_1;
382
+ $sm: do
383
+ try {
384
+ var tmp = this.l9_1;
385
+ if (tmp === 0) {
386
+ this.m9_1 = 1;
387
+ CommandExecutor_getInstance().r5a(this.d7r_1.i45());
388
+ return Unit_instance;
389
+ } else if (tmp === 1) {
390
+ throw this.o9_1;
391
+ }
392
+ } catch ($p) {
393
+ var e = $p;
394
+ throw e;
395
+ }
396
+ while (true);
112
397
  };
113
- protoOf(Test).wq = function () {
114
- return CommandExecutor_getInstance().test(this.l62(), this.x27());
398
+ protoOf(Prepare$run$slambda).b7n = function ($this$flow, completion) {
399
+ var i = new Prepare$run$slambda(this.d7r_1, completion);
400
+ i.e7r_1 = $this$flow;
401
+ return i;
115
402
  };
403
+ function Prepare$run$slambda_0(this$0, resultContinuation) {
404
+ var i = new Prepare$run$slambda(this$0, resultContinuation);
405
+ var l = function ($this$flow, $completion) {
406
+ return i.a7n($this$flow, $completion);
407
+ };
408
+ l.$arity = 1;
409
+ return l;
410
+ }
116
411
  function Prepare() {
117
- CliktCommand.call(this, 'Prepare workspace');
118
- this.w66_1 = option(this, ['-c', '--config'], 'Config file name').y54(this, config$factory_3());
119
- this.x66_1 = default_0(option(this, [], 'Current working directory', VOID, true), FileManager_getInstance().s61()).y54(this, cwd$factory_3());
412
+ FlowCliktCommand.call(this, 'prepare');
413
+ this.u7r_1 = option(this, ['-c', '--config'], 'Config file name').o74(this, config$factory_3());
414
+ }
415
+ protoOf(Prepare).c6u = function (context) {
416
+ return 'Prepare workspace';
417
+ };
418
+ protoOf(Prepare).i45 = function () {
419
+ return this.u7r_1.e74(this, config$factory_4());
420
+ };
421
+ protoOf(Prepare).q7m = function () {
422
+ return flow(Prepare$run$slambda_0(this, null));
423
+ };
424
+ function Export$run$slambda$slambda(resultContinuation) {
425
+ CoroutineImpl.call(this, resultContinuation);
120
426
  }
121
- protoOf(Prepare).x27 = function () {
122
- return this.w66_1.n53(this, config$factory_4());
427
+ protoOf(Export$run$slambda$slambda).y5k = function (it, $completion) {
428
+ var tmp = this.z5k(it, $completion);
429
+ tmp.n9_1 = Unit_instance;
430
+ tmp.o9_1 = null;
431
+ return tmp.t9();
123
432
  };
124
- protoOf(Prepare).l62 = function () {
125
- return this.x66_1.n53(this, cwd$factory_4());
433
+ protoOf(Export$run$slambda$slambda).ba = function (p1, $completion) {
434
+ return this.y5k(p1 instanceof LoggerMessage ? p1 : THROW_CCE(), $completion);
126
435
  };
127
- protoOf(Prepare).wq = function () {
128
- return CommandExecutor_getInstance().prepare(this.l62(), this.x27());
436
+ protoOf(Export$run$slambda$slambda).t9 = function () {
437
+ var suspendResult = this.n9_1;
438
+ $sm: do
439
+ try {
440
+ var tmp = this.l9_1;
441
+ if (tmp === 0) {
442
+ this.m9_1 = 1;
443
+ return Unit_instance;
444
+ } else if (tmp === 1) {
445
+ throw this.o9_1;
446
+ }
447
+ } catch ($p) {
448
+ var e = $p;
449
+ throw e;
450
+ }
451
+ while (true);
452
+ };
453
+ protoOf(Export$run$slambda$slambda).z5k = function (it, completion) {
454
+ var i = new Export$run$slambda$slambda(completion);
455
+ i.d7s_1 = it;
456
+ return i;
457
+ };
458
+ function Export$run$slambda$slambda_0(resultContinuation) {
459
+ var i = new Export$run$slambda$slambda(resultContinuation);
460
+ var l = function (it, $completion) {
461
+ return i.y5k(it, $completion);
462
+ };
463
+ l.$arity = 1;
464
+ return l;
465
+ }
466
+ function sam$kotlinx_coroutines_flow_FlowCollector$0(function_0) {
467
+ this.e7s_1 = function_0;
468
+ }
469
+ protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0).o16 = function (value, $completion) {
470
+ return this.e7s_1(value, $completion);
129
471
  };
472
+ function Export$run$slambda(this$0, resultContinuation) {
473
+ this.n7s_1 = this$0;
474
+ CoroutineImpl.call(this, resultContinuation);
475
+ }
476
+ protoOf(Export$run$slambda).a7n = function ($this$flow, $completion) {
477
+ var tmp = this.b7n($this$flow, $completion);
478
+ tmp.n9_1 = Unit_instance;
479
+ tmp.o9_1 = null;
480
+ return tmp.t9();
481
+ };
482
+ protoOf(Export$run$slambda).ba = function (p1, $completion) {
483
+ return this.a7n((!(p1 == null) ? isInterface(p1, FlowCollector) : false) ? p1 : THROW_CCE(), $completion);
484
+ };
485
+ protoOf(Export$run$slambda).t9 = function () {
486
+ var suspendResult = this.n9_1;
487
+ $sm: do
488
+ try {
489
+ var tmp = this.l9_1;
490
+ switch (tmp) {
491
+ case 0:
492
+ this.m9_1 = 3;
493
+ this.l9_1 = 1;
494
+ var tmp_0 = CommandExecutor_getInstance();
495
+ var tmp0_elvis_lhs = this.n7s_1.y3r();
496
+ suspendResult = tmp_0.w5a(tmp0_elvis_lhs == null ? '0.0.0' : tmp0_elvis_lhs, this);
497
+ if (suspendResult === get_COROUTINE_SUSPENDED()) {
498
+ return suspendResult;
499
+ }
500
+
501
+ continue $sm;
502
+ case 1:
503
+ this.p7s_1 = suspendResult;
504
+ this.l9_1 = 2;
505
+ var tmp_1 = Export$run$slambda$slambda_0(null);
506
+ suspendResult = this.p7s_1.x15(new sam$kotlinx_coroutines_flow_FlowCollector$0(tmp_1), this);
507
+ if (suspendResult === get_COROUTINE_SUSPENDED()) {
508
+ return suspendResult;
509
+ }
510
+
511
+ continue $sm;
512
+ case 2:
513
+ return Unit_instance;
514
+ case 3:
515
+ throw this.o9_1;
516
+ }
517
+ } catch ($p) {
518
+ var e = $p;
519
+ if (this.m9_1 === 3) {
520
+ throw e;
521
+ } else {
522
+ this.l9_1 = this.m9_1;
523
+ this.o9_1 = e;
524
+ }
525
+ }
526
+ while (true);
527
+ };
528
+ protoOf(Export$run$slambda).b7n = function ($this$flow, completion) {
529
+ var i = new Export$run$slambda(this.n7s_1, completion);
530
+ i.o7s_1 = $this$flow;
531
+ return i;
532
+ };
533
+ function Export$run$slambda_0(this$0, resultContinuation) {
534
+ var i = new Export$run$slambda(this$0, resultContinuation);
535
+ var l = function ($this$flow, $completion) {
536
+ return i.a7n($this$flow, $completion);
537
+ };
538
+ l.$arity = 1;
539
+ return l;
540
+ }
130
541
  function Export() {
131
- CliktCommand.call(this, 'Create export config for s3');
132
- this.p67_1 = option(this, ['-c', '--config'], 'Config file name').y54(this, config$factory_5());
133
- this.q67_1 = default_0(option(this, [], 'Current working directory', VOID, true), FileManager_getInstance().s61()).y54(this, cwd$factory_5());
134
- this.r67_1 = flag(option(this, ['--autoUpdate'], 'Autoupdate config in s3 storage', VOID, true), [], false).y54(this, autoUpdate$factory());
135
- this.s67_1 = option(this, ['-v', '--version'], 'Version for build').y54(this, version$factory());
542
+ FlowCliktCommand.call(this, 'export');
543
+ this.f7t_1 = option(this, ['-v', '--version'], 'Configuration version').o74(this, version$factory());
136
544
  }
137
- protoOf(Export).x27 = function () {
138
- return this.p67_1.n53(this, config$factory_6());
545
+ protoOf(Export).c6u = function (context) {
546
+ return 'Create export config for s3';
139
547
  };
140
- protoOf(Export).l62 = function () {
141
- return this.q67_1.n53(this, cwd$factory_6());
548
+ protoOf(Export).y3r = function () {
549
+ return this.f7t_1.e74(this, version$factory_0());
142
550
  };
143
- protoOf(Export).o4h = function () {
144
- return this.r67_1.n53(this, autoUpdate$factory_0());
551
+ protoOf(Export).q7m = function () {
552
+ return flow(Export$run$slambda_0(this, null));
145
553
  };
146
- protoOf(Export).d2b = function () {
147
- return this.s67_1.n53(this, version$factory_0());
554
+ function Upload$run$slambda$slambda(resultContinuation) {
555
+ CoroutineImpl.call(this, resultContinuation);
556
+ }
557
+ protoOf(Upload$run$slambda$slambda).y5k = function (it, $completion) {
558
+ var tmp = this.z5k(it, $completion);
559
+ tmp.n9_1 = Unit_instance;
560
+ tmp.o9_1 = null;
561
+ return tmp.t9();
148
562
  };
149
- protoOf(Export).wq = function () {
150
- return CommandExecutor_getInstance().export(this.o4h(), this.l62(), this.x27(), this.d2b());
563
+ protoOf(Upload$run$slambda$slambda).ba = function (p1, $completion) {
564
+ return this.y5k(p1 instanceof LoggerMessage ? p1 : THROW_CCE(), $completion);
151
565
  };
566
+ protoOf(Upload$run$slambda$slambda).t9 = function () {
567
+ var suspendResult = this.n9_1;
568
+ $sm: do
569
+ try {
570
+ var tmp = this.l9_1;
571
+ if (tmp === 0) {
572
+ this.m9_1 = 1;
573
+ return Unit_instance;
574
+ } else if (tmp === 1) {
575
+ throw this.o9_1;
576
+ }
577
+ } catch ($p) {
578
+ var e = $p;
579
+ throw e;
580
+ }
581
+ while (true);
582
+ };
583
+ protoOf(Upload$run$slambda$slambda).z5k = function (it, completion) {
584
+ var i = new Upload$run$slambda$slambda(completion);
585
+ i.o7t_1 = it;
586
+ return i;
587
+ };
588
+ function Upload$run$slambda$slambda_0(resultContinuation) {
589
+ var i = new Upload$run$slambda$slambda(resultContinuation);
590
+ var l = function (it, $completion) {
591
+ return i.y5k(it, $completion);
592
+ };
593
+ l.$arity = 1;
594
+ return l;
595
+ }
596
+ function sam$kotlinx_coroutines_flow_FlowCollector$0_0(function_0) {
597
+ this.p7t_1 = function_0;
598
+ }
599
+ protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_0).o16 = function (value, $completion) {
600
+ return this.p7t_1(value, $completion);
601
+ };
602
+ function Upload$run$slambda(this$0, resultContinuation) {
603
+ this.y7t_1 = this$0;
604
+ CoroutineImpl.call(this, resultContinuation);
605
+ }
606
+ protoOf(Upload$run$slambda).a7n = function ($this$flow, $completion) {
607
+ var tmp = this.b7n($this$flow, $completion);
608
+ tmp.n9_1 = Unit_instance;
609
+ tmp.o9_1 = null;
610
+ return tmp.t9();
611
+ };
612
+ protoOf(Upload$run$slambda).ba = function (p1, $completion) {
613
+ return this.a7n((!(p1 == null) ? isInterface(p1, FlowCollector) : false) ? p1 : THROW_CCE(), $completion);
614
+ };
615
+ protoOf(Upload$run$slambda).t9 = function () {
616
+ var suspendResult = this.n9_1;
617
+ $sm: do
618
+ try {
619
+ var tmp = this.l9_1;
620
+ switch (tmp) {
621
+ case 0:
622
+ this.m9_1 = 2;
623
+ this.a7u_1 = CommandExecutor_getInstance().u5a(this.y7t_1.r7u());
624
+ this.l9_1 = 1;
625
+ var tmp_0 = Upload$run$slambda$slambda_0(null);
626
+ suspendResult = this.a7u_1.x15(new sam$kotlinx_coroutines_flow_FlowCollector$0_0(tmp_0), this);
627
+ if (suspendResult === get_COROUTINE_SUSPENDED()) {
628
+ return suspendResult;
629
+ }
630
+
631
+ continue $sm;
632
+ case 1:
633
+ return Unit_instance;
634
+ case 2:
635
+ throw this.o9_1;
636
+ }
637
+ } catch ($p) {
638
+ var e = $p;
639
+ if (this.m9_1 === 2) {
640
+ throw e;
641
+ } else {
642
+ this.l9_1 = this.m9_1;
643
+ this.o9_1 = e;
644
+ }
645
+ }
646
+ while (true);
647
+ };
648
+ protoOf(Upload$run$slambda).b7n = function ($this$flow, completion) {
649
+ var i = new Upload$run$slambda(this.y7t_1, completion);
650
+ i.z7t_1 = $this$flow;
651
+ return i;
652
+ };
653
+ function Upload$run$slambda_0(this$0, resultContinuation) {
654
+ var i = new Upload$run$slambda(this$0, resultContinuation);
655
+ var l = function ($this$flow, $completion) {
656
+ return i.a7n($this$flow, $completion);
657
+ };
658
+ l.$arity = 1;
659
+ return l;
660
+ }
152
661
  function Upload() {
153
- CliktCommand.call(this, 'Upload exportConfig to s3');
154
- this.k68_1 = option(this, ['-c', '--config'], 'Config file name').y54(this, config$factory_7());
155
- this.l68_1 = default_0(option(this, [], 'Current working directory', VOID, true), FileManager_getInstance().s61()).y54(this, cwd$factory_7());
662
+ FlowCliktCommand.call(this, 'upload');
663
+ this.q7u_1 = option(this, ['-c', '--config'], 'Configuration file name').o74(this, configFileName$factory());
664
+ }
665
+ protoOf(Upload).c6u = function (context) {
666
+ return 'Upload config to s3';
667
+ };
668
+ protoOf(Upload).r7u = function () {
669
+ return this.q7u_1.e74(this, configFileName$factory_0());
670
+ };
671
+ protoOf(Upload).q7m = function () {
672
+ return flow(Upload$run$slambda_0(this, null));
673
+ };
674
+ function Version$run$slambda(resultContinuation) {
675
+ CoroutineImpl.call(this, resultContinuation);
156
676
  }
157
- protoOf(Upload).x27 = function () {
158
- return this.k68_1.n53(this, config$factory_8());
677
+ protoOf(Version$run$slambda).a7n = function ($this$flow, $completion) {
678
+ var tmp = this.b7n($this$flow, $completion);
679
+ tmp.n9_1 = Unit_instance;
680
+ tmp.o9_1 = null;
681
+ return tmp.t9();
682
+ };
683
+ protoOf(Version$run$slambda).ba = function (p1, $completion) {
684
+ return this.a7n((!(p1 == null) ? isInterface(p1, FlowCollector) : false) ? p1 : THROW_CCE(), $completion);
159
685
  };
160
- protoOf(Upload).l62 = function () {
161
- return this.l68_1.n53(this, cwd$factory_8());
686
+ protoOf(Version$run$slambda).t9 = function () {
687
+ var suspendResult = this.n9_1;
688
+ $sm: do
689
+ try {
690
+ var tmp = this.l9_1;
691
+ switch (tmp) {
692
+ case 0:
693
+ this.m9_1 = 2;
694
+ this.l9_1 = 1;
695
+ suspendResult = this.a7v_1.o16('Version is 0.0.1', this);
696
+ if (suspendResult === get_COROUTINE_SUSPENDED()) {
697
+ return suspendResult;
698
+ }
699
+
700
+ continue $sm;
701
+ case 1:
702
+ return Unit_instance;
703
+ case 2:
704
+ throw this.o9_1;
705
+ }
706
+ } catch ($p) {
707
+ var e = $p;
708
+ if (this.m9_1 === 2) {
709
+ throw e;
710
+ } else {
711
+ this.l9_1 = this.m9_1;
712
+ this.o9_1 = e;
713
+ }
714
+ }
715
+ while (true);
162
716
  };
163
- protoOf(Upload).wq = function () {
164
- return CommandExecutor_getInstance().upload(this.l62(), this.x27());
717
+ protoOf(Version$run$slambda).b7n = function ($this$flow, completion) {
718
+ var i = new Version$run$slambda(completion);
719
+ i.a7v_1 = $this$flow;
720
+ return i;
165
721
  };
722
+ function Version$run$slambda_0(resultContinuation) {
723
+ var i = new Version$run$slambda(resultContinuation);
724
+ var l = function ($this$flow, $completion) {
725
+ return i.a7n($this$flow, $completion);
726
+ };
727
+ l.$arity = 1;
728
+ return l;
729
+ }
166
730
  function Version() {
167
- CliktCommand.call(this, 'Get toolbox version');
731
+ FlowCliktCommand.call(this, 'version');
168
732
  }
169
- protoOf(Version).wq = function () {
170
- return println('Version is 0.0.1');
733
+ protoOf(Version).c6u = function (context) {
734
+ return 'Get toolbox version';
171
735
  };
172
- function PullReferences() {
173
- CliktCommand.call(this, 'Pull references from Directus');
174
- this.u69_1 = option(this, ['-c', '--config'], 'Config file name').y54(this, config$factory_9());
175
- this.v69_1 = default_0(option(this, [], 'Current working directory', VOID, true), FileManager_getInstance().s61()).y54(this, cwd$factory_9());
736
+ protoOf(Version).q7m = function () {
737
+ return flow(Version$run$slambda_0(null));
738
+ };
739
+ function PullDictionaries$run$slambda(this$0, resultContinuation) {
740
+ this.y7v_1 = this$0;
741
+ CoroutineImpl.call(this, resultContinuation);
176
742
  }
177
- protoOf(PullReferences).x27 = function () {
178
- return this.u69_1.n53(this, config$factory_10());
743
+ protoOf(PullDictionaries$run$slambda).a7n = function ($this$flow, $completion) {
744
+ var tmp = this.b7n($this$flow, $completion);
745
+ tmp.n9_1 = Unit_instance;
746
+ tmp.o9_1 = null;
747
+ return tmp.t9();
748
+ };
749
+ protoOf(PullDictionaries$run$slambda).ba = function (p1, $completion) {
750
+ return this.a7n((!(p1 == null) ? isInterface(p1, FlowCollector) : false) ? p1 : THROW_CCE(), $completion);
751
+ };
752
+ protoOf(PullDictionaries$run$slambda).t9 = function () {
753
+ var suspendResult = this.n9_1;
754
+ $sm: do
755
+ try {
756
+ var tmp = this.l9_1;
757
+ switch (tmp) {
758
+ case 0:
759
+ this.m9_1 = 2;
760
+ this.l9_1 = 1;
761
+ suspendResult = CommandExecutor_getInstance().v5a(this.y7v_1.i45()).nr(this);
762
+ if (suspendResult === get_COROUTINE_SUSPENDED()) {
763
+ return suspendResult;
764
+ }
765
+
766
+ continue $sm;
767
+ case 1:
768
+ return Unit_instance;
769
+ case 2:
770
+ throw this.o9_1;
771
+ }
772
+ } catch ($p) {
773
+ var e = $p;
774
+ if (this.m9_1 === 2) {
775
+ throw e;
776
+ } else {
777
+ this.l9_1 = this.m9_1;
778
+ this.o9_1 = e;
779
+ }
780
+ }
781
+ while (true);
782
+ };
783
+ protoOf(PullDictionaries$run$slambda).b7n = function ($this$flow, completion) {
784
+ var i = new PullDictionaries$run$slambda(this.y7v_1, completion);
785
+ i.z7v_1 = $this$flow;
786
+ return i;
179
787
  };
180
- protoOf(PullReferences).l62 = function () {
181
- return this.v69_1.n53(this, cwd$factory_10());
788
+ function PullDictionaries$run$slambda_0(this$0, resultContinuation) {
789
+ var i = new PullDictionaries$run$slambda(this$0, resultContinuation);
790
+ var l = function ($this$flow, $completion) {
791
+ return i.a7n($this$flow, $completion);
792
+ };
793
+ l.$arity = 1;
794
+ return l;
795
+ }
796
+ function PullDictionaries() {
797
+ FlowCliktCommand.call(this, 'pull-dictionaries');
798
+ this.p7w_1 = option(this, ['-c', '--config'], 'Config file name').o74(this, config$factory_5());
799
+ }
800
+ protoOf(PullDictionaries).c6u = function (context) {
801
+ return 'Pull dictionaries from Directus';
802
+ };
803
+ protoOf(PullDictionaries).i45 = function () {
804
+ return this.p7w_1.e74(this, config$factory_6());
805
+ };
806
+ protoOf(PullDictionaries).q7m = function () {
807
+ return flow(PullDictionaries$run$slambda_0(this, null));
808
+ };
809
+ function Migrate$run$slambda(resultContinuation) {
810
+ CoroutineImpl.call(this, resultContinuation);
811
+ }
812
+ protoOf(Migrate$run$slambda).a7n = function ($this$flow, $completion) {
813
+ var tmp = this.b7n($this$flow, $completion);
814
+ tmp.n9_1 = Unit_instance;
815
+ tmp.o9_1 = null;
816
+ return tmp.t9();
817
+ };
818
+ protoOf(Migrate$run$slambda).ba = function (p1, $completion) {
819
+ return this.a7n((!(p1 == null) ? isInterface(p1, FlowCollector) : false) ? p1 : THROW_CCE(), $completion);
820
+ };
821
+ protoOf(Migrate$run$slambda).t9 = function () {
822
+ var suspendResult = this.n9_1;
823
+ $sm: do
824
+ try {
825
+ var tmp = this.l9_1;
826
+ switch (tmp) {
827
+ case 0:
828
+ this.m9_1 = 2;
829
+ this.l9_1 = 1;
830
+ suspendResult = CommandExecutor_getInstance().z5a().nr(this);
831
+ if (suspendResult === get_COROUTINE_SUSPENDED()) {
832
+ return suspendResult;
833
+ }
834
+
835
+ continue $sm;
836
+ case 1:
837
+ return Unit_instance;
838
+ case 2:
839
+ throw this.o9_1;
840
+ }
841
+ } catch ($p) {
842
+ var e = $p;
843
+ if (this.m9_1 === 2) {
844
+ throw e;
845
+ } else {
846
+ this.l9_1 = this.m9_1;
847
+ this.o9_1 = e;
848
+ }
849
+ }
850
+ while (true);
851
+ };
852
+ protoOf(Migrate$run$slambda).b7n = function ($this$flow, completion) {
853
+ var i = new Migrate$run$slambda(completion);
854
+ i.y7w_1 = $this$flow;
855
+ return i;
856
+ };
857
+ function Migrate$run$slambda_0(resultContinuation) {
858
+ var i = new Migrate$run$slambda(resultContinuation);
859
+ var l = function ($this$flow, $completion) {
860
+ return i.a7n($this$flow, $completion);
861
+ };
862
+ l.$arity = 1;
863
+ return l;
864
+ }
865
+ function Migrate() {
866
+ FlowCliktCommand.call(this, 'migrate');
867
+ }
868
+ protoOf(Migrate).c6u = function (context) {
869
+ return 'Migrate current configuration';
870
+ };
871
+ protoOf(Migrate).q7m = function () {
872
+ return flow(Migrate$run$slambda_0(null));
873
+ };
874
+ function parse(_this__u8e3s4, argv) {
875
+ // Inline function 'kotlin.collections.mutableListOf' call
876
+ var flows = ArrayList_init_$Create$();
877
+ // Inline function 'com.github.ajalt.clikt.parsers.CommandLineParser.parseAndRun' call
878
+ var argv_0 = asList(argv);
879
+ var result = CommandLineParser_instance.c76(_this__u8e3s4, argv_0);
880
+ // Inline function 'com.github.ajalt.clikt.parsers.CommandLineParser.run' call
881
+ var rootInvocation = result.g76_1;
882
+ $l$block: {
883
+ // Inline function 'kotlin.use' call
884
+ var this_0 = flatten(rootInvocation);
885
+ // Inline function 'kotlin.contracts.contract' call
886
+ var exception = null;
887
+ try {
888
+ var _iterator__ex2g4s = this_0.k();
889
+ while (_iterator__ex2g4s.l()) {
890
+ var invocation = _iterator__ex2g4s.m();
891
+ // Inline function 'parse.<anonymous>' call
892
+ // Inline function 'kotlin.collections.plusAssign' call
893
+ var element = invocation.x75_1.q7m();
894
+ flows.e(element);
895
+ }
896
+ break $l$block;
897
+ } catch ($p) {
898
+ if ($p instanceof Error) {
899
+ var e = $p;
900
+ exception = e;
901
+ throw e;
902
+ } else {
903
+ throw $p;
904
+ }
905
+ }
906
+ finally {
907
+ closeFinally(this_0, exception);
908
+ }
909
+ }
910
+ return flow(parse$slambda_0(flows, null));
911
+ }
912
+ function main(_this__u8e3s4, argv) {
913
+ var tmp$ret$1;
914
+ $l$block: {
915
+ // Inline function 'com.github.ajalt.clikt.parsers.CommandLineParser.mainReturningValue' call
916
+ try {
917
+ // Inline function 'main.<anonymous>' call
918
+ tmp$ret$1 = parse(_this__u8e3s4, argv);
919
+ break $l$block;
920
+ } catch ($p) {
921
+ if ($p instanceof CliktError) {
922
+ var e = $p;
923
+ _this__u8e3s4.h6v(e);
924
+ _this__u8e3s4.t6s().n6t_1(e.i6v_1);
925
+ throw new ProgramResult(e.i6v_1);
926
+ } else {
927
+ throw $p;
928
+ }
929
+ }
930
+ }
931
+ return tmp$ret$1;
932
+ }
933
+ function commonMain(argv, $completion) {
934
+ var command = subcommands(new Mrsc(), [new WorkingDir(), new Auth(), new Test(), new Prepare(), new Export(), new Upload(), new Version(), new PullDictionaries(), new Migrate()]);
935
+ var resultFlow = main(command, argv);
936
+ var tmp = commonMain$slambda_0(command, null);
937
+ return resultFlow.x15(new sam$kotlinx_coroutines_flow_FlowCollector$0_1(tmp), $completion);
938
+ }
939
+ function sam$kotlinx_coroutines_flow_FlowCollector$0_1(function_0) {
940
+ this.o7x_1 = function_0;
941
+ }
942
+ protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_1).o16 = function (value, $completion) {
943
+ return this.o7x_1(value, $completion);
944
+ };
945
+ function parse$slambda($flows, resultContinuation) {
946
+ this.x7x_1 = $flows;
947
+ CoroutineImpl.call(this, resultContinuation);
948
+ }
949
+ protoOf(parse$slambda).a7n = function ($this$flow, $completion) {
950
+ var tmp = this.b7n($this$flow, $completion);
951
+ tmp.n9_1 = Unit_instance;
952
+ tmp.o9_1 = null;
953
+ return tmp.t9();
954
+ };
955
+ protoOf(parse$slambda).ba = function (p1, $completion) {
956
+ return this.a7n((!(p1 == null) ? isInterface(p1, FlowCollector) : false) ? p1 : THROW_CCE(), $completion);
957
+ };
958
+ protoOf(parse$slambda).t9 = function () {
959
+ var suspendResult = this.n9_1;
960
+ $sm: do
961
+ try {
962
+ var tmp = this.l9_1;
963
+ switch (tmp) {
964
+ case 0:
965
+ this.m9_1 = 4;
966
+ var tmp_0 = this;
967
+ tmp_0.z7x_1 = this.x7x_1;
968
+ this.a7y_1 = this.z7x_1.k();
969
+ this.l9_1 = 1;
970
+ continue $sm;
971
+ case 1:
972
+ if (!this.a7y_1.l()) {
973
+ this.l9_1 = 3;
974
+ continue $sm;
975
+ }
976
+
977
+ this.b7y_1 = this.a7y_1.m();
978
+ var tmp_1 = this;
979
+ tmp_1.c7y_1 = this.b7y_1;
980
+ this.l9_1 = 2;
981
+ suspendResult = emitAll(this.y7x_1, this.c7y_1, this);
982
+ if (suspendResult === get_COROUTINE_SUSPENDED()) {
983
+ return suspendResult;
984
+ }
985
+
986
+ continue $sm;
987
+ case 2:
988
+ this.l9_1 = 1;
989
+ continue $sm;
990
+ case 3:
991
+ return Unit_instance;
992
+ case 4:
993
+ throw this.o9_1;
994
+ }
995
+ } catch ($p) {
996
+ var e = $p;
997
+ if (this.m9_1 === 4) {
998
+ throw e;
999
+ } else {
1000
+ this.l9_1 = this.m9_1;
1001
+ this.o9_1 = e;
1002
+ }
1003
+ }
1004
+ while (true);
1005
+ };
1006
+ protoOf(parse$slambda).b7n = function ($this$flow, completion) {
1007
+ var i = new parse$slambda(this.x7x_1, completion);
1008
+ i.y7x_1 = $this$flow;
1009
+ return i;
1010
+ };
1011
+ function parse$slambda_0($flows, resultContinuation) {
1012
+ var i = new parse$slambda($flows, resultContinuation);
1013
+ var l = function ($this$flow, $completion) {
1014
+ return i.a7n($this$flow, $completion);
1015
+ };
1016
+ l.$arity = 1;
1017
+ return l;
1018
+ }
1019
+ function commonMain$slambda($command, resultContinuation) {
1020
+ this.l7y_1 = $command;
1021
+ CoroutineImpl.call(this, resultContinuation);
1022
+ }
1023
+ protoOf(commonMain$slambda).n7y = function (it, $completion) {
1024
+ var tmp = this.o7y(it, $completion);
1025
+ tmp.n9_1 = Unit_instance;
1026
+ tmp.o9_1 = null;
1027
+ return tmp.t9();
1028
+ };
1029
+ protoOf(commonMain$slambda).ba = function (p1, $completion) {
1030
+ return this.n7y((!(p1 == null) ? typeof p1 === 'string' : false) ? p1 : THROW_CCE(), $completion);
1031
+ };
1032
+ protoOf(commonMain$slambda).t9 = function () {
1033
+ var suspendResult = this.n9_1;
1034
+ $sm: do
1035
+ try {
1036
+ var tmp = this.l9_1;
1037
+ if (tmp === 0) {
1038
+ this.m9_1 = 1;
1039
+ this.l7y_1.k6v(this.m7y_1);
1040
+ return Unit_instance;
1041
+ } else if (tmp === 1) {
1042
+ throw this.o9_1;
1043
+ }
1044
+ } catch ($p) {
1045
+ var e = $p;
1046
+ throw e;
1047
+ }
1048
+ while (true);
182
1049
  };
183
- protoOf(PullReferences).wq = function () {
184
- return CommandExecutor_getInstance().pullReferences(this.l62(), this.x27());
1050
+ protoOf(commonMain$slambda).o7y = function (it, completion) {
1051
+ var i = new commonMain$slambda(this.l7y_1, completion);
1052
+ i.m7y_1 = it;
1053
+ return i;
185
1054
  };
1055
+ function commonMain$slambda_0($command, resultContinuation) {
1056
+ var i = new commonMain$slambda($command, resultContinuation);
1057
+ var l = function (it, $completion) {
1058
+ return i.n7y(it, $completion);
1059
+ };
1060
+ l.$arity = 1;
1061
+ return l;
1062
+ }
1063
+ function workingDir$factory() {
1064
+ return getPropertyCallableRef('workingDir', 1, KProperty1, function (receiver) {
1065
+ return receiver.r7o();
1066
+ }, null);
1067
+ }
1068
+ function workingDir$factory_0() {
1069
+ return getPropertyCallableRef('workingDir', 1, KProperty1, function (receiver) {
1070
+ return receiver.r7o();
1071
+ }, null);
1072
+ }
186
1073
  function email$factory() {
187
1074
  return getPropertyCallableRef('email', 1, KProperty1, function (receiver) {
188
- return receiver.l65();
1075
+ return receiver.u3v();
189
1076
  }, null);
190
1077
  }
191
1078
  function password$factory() {
192
1079
  return getPropertyCallableRef('password', 1, KProperty1, function (receiver) {
193
- return receiver.o20();
1080
+ return receiver.v28();
194
1081
  }, null);
195
1082
  }
196
1083
  function url$factory() {
197
1084
  return getPropertyCallableRef('url', 1, KProperty1, function (receiver) {
198
- return receiver.w29();
1085
+ return receiver.f3p();
199
1086
  }, null);
200
1087
  }
201
1088
  function config$factory() {
202
1089
  return getPropertyCallableRef('config', 1, KProperty1, function (receiver) {
203
- return receiver.x27();
204
- }, null);
205
- }
206
- function cwd$factory() {
207
- return getPropertyCallableRef('cwd', 1, KProperty1, function (receiver) {
208
- return receiver.l62();
1090
+ return receiver.i45();
209
1091
  }, null);
210
1092
  }
211
1093
  function email$factory_0() {
212
1094
  return getPropertyCallableRef('email', 1, KProperty1, function (receiver) {
213
- return receiver.l65();
1095
+ return receiver.u3v();
214
1096
  }, null);
215
1097
  }
216
1098
  function password$factory_0() {
217
1099
  return getPropertyCallableRef('password', 1, KProperty1, function (receiver) {
218
- return receiver.o20();
1100
+ return receiver.v28();
219
1101
  }, null);
220
1102
  }
221
1103
  function url$factory_0() {
222
1104
  return getPropertyCallableRef('url', 1, KProperty1, function (receiver) {
223
- return receiver.w29();
1105
+ return receiver.f3p();
224
1106
  }, null);
225
1107
  }
226
1108
  function config$factory_0() {
227
1109
  return getPropertyCallableRef('config', 1, KProperty1, function (receiver) {
228
- return receiver.x27();
229
- }, null);
230
- }
231
- function cwd$factory_0() {
232
- return getPropertyCallableRef('cwd', 1, KProperty1, function (receiver) {
233
- return receiver.l62();
1110
+ return receiver.i45();
234
1111
  }, null);
235
1112
  }
236
1113
  function config$factory_1() {
237
1114
  return getPropertyCallableRef('config', 1, KProperty1, function (receiver) {
238
- return receiver.x27();
239
- }, null);
240
- }
241
- function cwd$factory_1() {
242
- return getPropertyCallableRef('cwd', 1, KProperty1, function (receiver) {
243
- return receiver.l62();
1115
+ return receiver.i45();
244
1116
  }, null);
245
1117
  }
246
1118
  function config$factory_2() {
247
1119
  return getPropertyCallableRef('config', 1, KProperty1, function (receiver) {
248
- return receiver.x27();
249
- }, null);
250
- }
251
- function cwd$factory_2() {
252
- return getPropertyCallableRef('cwd', 1, KProperty1, function (receiver) {
253
- return receiver.l62();
1120
+ return receiver.i45();
254
1121
  }, null);
255
1122
  }
256
1123
  function config$factory_3() {
257
1124
  return getPropertyCallableRef('config', 1, KProperty1, function (receiver) {
258
- return receiver.x27();
259
- }, null);
260
- }
261
- function cwd$factory_3() {
262
- return getPropertyCallableRef('cwd', 1, KProperty1, function (receiver) {
263
- return receiver.l62();
1125
+ return receiver.i45();
264
1126
  }, null);
265
1127
  }
266
1128
  function config$factory_4() {
267
1129
  return getPropertyCallableRef('config', 1, KProperty1, function (receiver) {
268
- return receiver.x27();
269
- }, null);
270
- }
271
- function cwd$factory_4() {
272
- return getPropertyCallableRef('cwd', 1, KProperty1, function (receiver) {
273
- return receiver.l62();
274
- }, null);
275
- }
276
- function config$factory_5() {
277
- return getPropertyCallableRef('config', 1, KProperty1, function (receiver) {
278
- return receiver.x27();
279
- }, null);
280
- }
281
- function cwd$factory_5() {
282
- return getPropertyCallableRef('cwd', 1, KProperty1, function (receiver) {
283
- return receiver.l62();
284
- }, null);
285
- }
286
- function autoUpdate$factory() {
287
- return getPropertyCallableRef('autoUpdate', 1, KProperty1, function (receiver) {
288
- return receiver.o4h();
1130
+ return receiver.i45();
289
1131
  }, null);
290
1132
  }
291
1133
  function version$factory() {
292
1134
  return getPropertyCallableRef('version', 1, KProperty1, function (receiver) {
293
- return receiver.d2b();
294
- }, null);
295
- }
296
- function config$factory_6() {
297
- return getPropertyCallableRef('config', 1, KProperty1, function (receiver) {
298
- return receiver.x27();
299
- }, null);
300
- }
301
- function cwd$factory_6() {
302
- return getPropertyCallableRef('cwd', 1, KProperty1, function (receiver) {
303
- return receiver.l62();
304
- }, null);
305
- }
306
- function autoUpdate$factory_0() {
307
- return getPropertyCallableRef('autoUpdate', 1, KProperty1, function (receiver) {
308
- return receiver.o4h();
1135
+ return receiver.y3r();
309
1136
  }, null);
310
1137
  }
311
1138
  function version$factory_0() {
312
1139
  return getPropertyCallableRef('version', 1, KProperty1, function (receiver) {
313
- return receiver.d2b();
314
- }, null);
315
- }
316
- function config$factory_7() {
317
- return getPropertyCallableRef('config', 1, KProperty1, function (receiver) {
318
- return receiver.x27();
319
- }, null);
320
- }
321
- function cwd$factory_7() {
322
- return getPropertyCallableRef('cwd', 1, KProperty1, function (receiver) {
323
- return receiver.l62();
1140
+ return receiver.y3r();
324
1141
  }, null);
325
1142
  }
326
- function config$factory_8() {
327
- return getPropertyCallableRef('config', 1, KProperty1, function (receiver) {
328
- return receiver.x27();
1143
+ function configFileName$factory() {
1144
+ return getPropertyCallableRef('configFileName', 1, KProperty1, function (receiver) {
1145
+ return receiver.r7u();
329
1146
  }, null);
330
1147
  }
331
- function cwd$factory_8() {
332
- return getPropertyCallableRef('cwd', 1, KProperty1, function (receiver) {
333
- return receiver.l62();
1148
+ function configFileName$factory_0() {
1149
+ return getPropertyCallableRef('configFileName', 1, KProperty1, function (receiver) {
1150
+ return receiver.r7u();
334
1151
  }, null);
335
1152
  }
336
- function config$factory_9() {
1153
+ function config$factory_5() {
337
1154
  return getPropertyCallableRef('config', 1, KProperty1, function (receiver) {
338
- return receiver.x27();
1155
+ return receiver.i45();
339
1156
  }, null);
340
1157
  }
341
- function cwd$factory_9() {
342
- return getPropertyCallableRef('cwd', 1, KProperty1, function (receiver) {
343
- return receiver.l62();
344
- }, null);
345
- }
346
- function config$factory_10() {
1158
+ function config$factory_6() {
347
1159
  return getPropertyCallableRef('config', 1, KProperty1, function (receiver) {
348
- return receiver.x27();
1160
+ return receiver.i45();
349
1161
  }, null);
350
1162
  }
351
- function cwd$factory_10() {
352
- return getPropertyCallableRef('cwd', 1, KProperty1, function (receiver) {
353
- return receiver.l62();
354
- }, null);
355
- }
356
- function main(args) {
1163
+ function main_0(args, $completion) {
357
1164
  var tmp = process.argv.slice(2);
358
1165
  var argv = (!(tmp == null) ? isArray(tmp) : false) ? tmp : THROW_CCE();
359
- println(split(argv[0], [' ']));
360
- try {
361
- subcommands(new Mrsc(), [new Auth(), new Test(), new Prepare(), new Export(), new Upload(), new Version(), new PullReferences()]).d4w(split(argv[0], [' ']));
362
- } catch ($p) {
363
- if ($p instanceof Error) {
364
- var e = $p;
365
- var tmp_0 = subcommands(new Mrsc(), [new Auth(), new Test(), new Prepare(), new Export(), new Upload(), new Version(), new PullReferences()]);
366
- var tmp$ret$2;
367
- // Inline function 'kotlin.arrayOf' call
368
- var tmp$ret$1;
369
- // Inline function 'kotlin.js.unsafeCast' call
370
- var tmp$ret$0;
371
- // Inline function 'kotlin.js.asDynamic' call
372
- tmp$ret$0 = ['--help'];
373
- tmp$ret$1 = tmp$ret$0;
374
- tmp$ret$2 = tmp$ret$1;
375
- tmp_0.t4w(tmp$ret$2);
376
- } else {
377
- throw $p;
378
- }
379
- }
1166
+ return commonMain(argv, $completion);
1167
+ }
1168
+ function mainWrapper() {
1169
+ main_0([], get_EmptyContinuation());
380
1170
  }
381
1171
  //region block: exports
1172
+ kotlin_kotlin.$jsExportAll$(_);
382
1173
  kotlin_com_mrs_platform_configuration_dto_dto.$jsExportAll$(_);
383
1174
  kotlin_com_mrs_platform_toolbox_library.$jsExportAll$(_);
384
1175
  //endregion
385
- main([]);
1176
+ mainWrapper();
386
1177
  return _;
387
- }(module.exports, require('./clikt-clikt-js-ir.js'), require('./kotlin-kotlin-stdlib-js-ir.js'), require('./toolbox.js'), require('./com.mrs.platform.configuration.dto.js')));
1178
+ }(module.exports, require('./clikt-clikt.js'), require('./kotlin-kotlin-stdlib.js'), require('./kotlinx.coroutines-kotlinx-coroutines-core-js-ir.js'), require('./toolbox.js'), require('./clikt-clikt-mordant.js'), require('./com.mrs.platform.configuration.dto.js')));
388
1179
 
389
1180
  //# sourceMappingURL=mrs-toolbox-cli.js.map