@doordeck/doordeck-headless-sdk 0.193.0 → 0.195.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/kotlin/Kermit-kermit-core.js +64 -64
- package/kotlin/Kermit-kermit.js +8 -8
- package/kotlin/MultiplatformSettings-multiplatform-settings.js +23 -23
- package/kotlin/doordeck-sdk.d.ts +22 -22
- package/kotlin/doordeck-sdk.js +10911 -10922
- package/kotlin/kotlin-kotlin-stdlib.js +2281 -1824
- package/kotlin/kotlinx-atomicfu.js +21 -21
- package/kotlin/kotlinx-browser.js +10 -0
- package/kotlin/kotlinx-coroutines-core.js +2904 -2424
- package/kotlin/kotlinx-io-kotlinx-io-bytestring.js +56 -56
- package/kotlin/kotlinx-io-kotlinx-io-core.js +651 -651
- package/kotlin/kotlinx-serialization-kotlinx-serialization-core.js +2063 -2073
- package/kotlin/kotlinx-serialization-kotlinx-serialization-json.js +1619 -1618
- package/kotlin/ktor-ktor-client-auth.js +421 -412
- package/kotlin/ktor-ktor-client-content-negotiation.js +189 -190
- package/kotlin/ktor-ktor-client-core.js +3050 -2383
- package/kotlin/ktor-ktor-client-logging.js +1055 -1018
- package/kotlin/ktor-ktor-events.js +16 -16
- package/kotlin/ktor-ktor-http-cio.js +446 -451
- package/kotlin/ktor-ktor-http.js +1000 -956
- package/kotlin/ktor-ktor-io.js +1070 -1001
- package/kotlin/ktor-ktor-serialization-kotlinx-json.js +8 -8
- package/kotlin/ktor-ktor-serialization-kotlinx.js +175 -174
- package/kotlin/ktor-ktor-serialization.js +78 -80
- package/kotlin/ktor-ktor-utils.js +981 -1041
- package/kotlin/ktor-ktor-websockets.js +2179 -85
- package/package.json +3 -3
package/kotlin/ktor-ktor-io.js
CHANGED
|
@@ -1,115 +1,114 @@
|
|
|
1
1
|
(function (_, kotlin_kotlin, kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core, kotlin_org_jetbrains_kotlinx_kotlinx_io_core, kotlin_org_jetbrains_kotlinx_atomicfu, kotlin_org_jetbrains_kotlinx_kotlinx_io_bytestring) {
|
|
2
2
|
'use strict';
|
|
3
3
|
//region block: imports
|
|
4
|
-
var Companion_instance = kotlin_kotlin.$_$.
|
|
5
|
-
var Unit_instance = kotlin_kotlin.$_$.
|
|
6
|
-
var _Result___init__impl__xyqfz8 = kotlin_kotlin.$_$.
|
|
7
|
-
var protoOf = kotlin_kotlin.$_$.
|
|
8
|
-
var initMetadataForCompanion = kotlin_kotlin.$_$.
|
|
9
|
-
var initMetadataForObject = kotlin_kotlin.$_$.
|
|
10
|
-
var toString = kotlin_kotlin.$_$.
|
|
11
|
-
var hashCode = kotlin_kotlin.$_$.
|
|
12
|
-
var equals = kotlin_kotlin.$_$.
|
|
13
|
-
var initMetadataForClass = kotlin_kotlin.$_$.
|
|
14
|
-
var createFailure = kotlin_kotlin.$_$.
|
|
15
|
-
var Result = kotlin_kotlin.$_$.
|
|
16
|
-
var initMetadataForInterface = kotlin_kotlin.$_$.
|
|
17
|
-
var toString_0 = kotlin_kotlin.$_$.
|
|
18
|
-
var newThrowable = kotlin_kotlin.$_$.
|
|
19
|
-
var stackTraceToString = kotlin_kotlin.$_$.
|
|
4
|
+
var Companion_instance = kotlin_kotlin.$_$.u;
|
|
5
|
+
var Unit_instance = kotlin_kotlin.$_$.z;
|
|
6
|
+
var _Result___init__impl__xyqfz8 = kotlin_kotlin.$_$.n3;
|
|
7
|
+
var protoOf = kotlin_kotlin.$_$.zb;
|
|
8
|
+
var initMetadataForCompanion = kotlin_kotlin.$_$.db;
|
|
9
|
+
var initMetadataForObject = kotlin_kotlin.$_$.ib;
|
|
10
|
+
var toString = kotlin_kotlin.$_$.ch;
|
|
11
|
+
var hashCode = kotlin_kotlin.$_$.bb;
|
|
12
|
+
var equals = kotlin_kotlin.$_$.ua;
|
|
13
|
+
var initMetadataForClass = kotlin_kotlin.$_$.cb;
|
|
14
|
+
var createFailure = kotlin_kotlin.$_$.qg;
|
|
15
|
+
var Result = kotlin_kotlin.$_$.xf;
|
|
16
|
+
var initMetadataForInterface = kotlin_kotlin.$_$.gb;
|
|
17
|
+
var toString_0 = kotlin_kotlin.$_$.ve;
|
|
18
|
+
var newThrowable = kotlin_kotlin.$_$.vb;
|
|
19
|
+
var stackTraceToString = kotlin_kotlin.$_$.ah;
|
|
20
20
|
var VOID = kotlin_kotlin.$_$.b;
|
|
21
|
-
var isInterface = kotlin_kotlin.$_$.
|
|
22
|
-
var CoroutineImpl = kotlin_kotlin.$_$.
|
|
23
|
-
var fromInt = kotlin_kotlin.$_$.
|
|
24
|
-
var numberToLong = kotlin_kotlin.$_$.
|
|
25
|
-
var add = kotlin_kotlin.$_$.
|
|
26
|
-
var intercepted = kotlin_kotlin.$_$.
|
|
27
|
-
var CancellableContinuationImpl = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.
|
|
28
|
-
var noWhenBranchMatchedException = kotlin_kotlin.$_$.
|
|
29
|
-
var returnIfSuspended = kotlin_kotlin.$_$.
|
|
30
|
-
var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.
|
|
31
|
-
var initMetadataForCoroutine = kotlin_kotlin.$_$.
|
|
21
|
+
var isInterface = kotlin_kotlin.$_$.rb;
|
|
22
|
+
var CoroutineImpl = kotlin_kotlin.$_$.l9;
|
|
23
|
+
var fromInt = kotlin_kotlin.$_$.w9;
|
|
24
|
+
var numberToLong = kotlin_kotlin.$_$.ca;
|
|
25
|
+
var add = kotlin_kotlin.$_$.r9;
|
|
26
|
+
var intercepted = kotlin_kotlin.$_$.y8;
|
|
27
|
+
var CancellableContinuationImpl = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.j1;
|
|
28
|
+
var noWhenBranchMatchedException = kotlin_kotlin.$_$.yg;
|
|
29
|
+
var returnIfSuspended = kotlin_kotlin.$_$.g1;
|
|
30
|
+
var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.v8;
|
|
31
|
+
var initMetadataForCoroutine = kotlin_kotlin.$_$.eb;
|
|
32
32
|
var Buffer = kotlin_org_jetbrains_kotlinx_kotlinx_io_core.$_$.f;
|
|
33
33
|
var atomic$ref$1 = kotlin_org_jetbrains_kotlinx_atomicfu.$_$.d;
|
|
34
|
-
var convertToInt = kotlin_kotlin.$_$.
|
|
35
|
-
var IllegalStateException = kotlin_kotlin.$_$.
|
|
36
|
-
var IllegalStateException_init_$Init$ = kotlin_kotlin.$_$.
|
|
37
|
-
var captureStack = kotlin_kotlin.$_$.
|
|
34
|
+
var convertToInt = kotlin_kotlin.$_$.t9;
|
|
35
|
+
var IllegalStateException = kotlin_kotlin.$_$.uf;
|
|
36
|
+
var IllegalStateException_init_$Init$ = kotlin_kotlin.$_$.s2;
|
|
37
|
+
var captureStack = kotlin_kotlin.$_$.la;
|
|
38
38
|
var IOException_init_$Create$ = kotlin_org_jetbrains_kotlinx_kotlinx_io_core.$_$.c;
|
|
39
39
|
var decodeToString = kotlin_org_jetbrains_kotlinx_kotlinx_io_bytestring.$_$.d;
|
|
40
|
-
var replace = kotlin_kotlin.$_$.
|
|
40
|
+
var replace = kotlin_kotlin.$_$.wd;
|
|
41
41
|
var indexOf = kotlin_org_jetbrains_kotlinx_kotlinx_io_core.$_$.i;
|
|
42
|
-
var THROW_CCE = kotlin_kotlin.$_$.
|
|
43
|
-
var get_ONE = kotlin_kotlin.$_$.
|
|
44
|
-
var toString_1 = kotlin_kotlin.$_$.
|
|
45
|
-
var IllegalArgumentException_init_$Create$ = kotlin_kotlin.$_$.
|
|
46
|
-
var subtract = kotlin_kotlin.$_$.ba;
|
|
42
|
+
var THROW_CCE = kotlin_kotlin.$_$.zf;
|
|
43
|
+
var get_ONE = kotlin_kotlin.$_$.q9;
|
|
44
|
+
var toString_1 = kotlin_kotlin.$_$.cc;
|
|
45
|
+
var IllegalArgumentException_init_$Create$ = kotlin_kotlin.$_$.n2;
|
|
47
46
|
var EOFException_init_$Create$ = kotlin_org_jetbrains_kotlinx_kotlinx_io_core.$_$.a;
|
|
48
|
-
var readString = kotlin_org_jetbrains_kotlinx_kotlinx_io_core.$_$.
|
|
49
|
-
var
|
|
47
|
+
var readString = kotlin_org_jetbrains_kotlinx_kotlinx_io_core.$_$.n;
|
|
48
|
+
var subtract = kotlin_kotlin.$_$.fa;
|
|
50
49
|
var readByteString = kotlin_org_jetbrains_kotlinx_kotlinx_io_core.$_$.l;
|
|
51
|
-
var
|
|
52
|
-
var
|
|
53
|
-
var
|
|
54
|
-
var
|
|
55
|
-
var
|
|
56
|
-
var
|
|
57
|
-
var
|
|
58
|
-
var
|
|
59
|
-
var
|
|
60
|
-
var
|
|
61
|
-
var
|
|
62
|
-
var
|
|
63
|
-
var
|
|
50
|
+
var IllegalStateException_init_$Create$ = kotlin_kotlin.$_$.r2;
|
|
51
|
+
var EmptyCoroutineContext_instance = kotlin_kotlin.$_$.d;
|
|
52
|
+
var CoroutineScope = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.q1;
|
|
53
|
+
var startCoroutineCancellable = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.g1;
|
|
54
|
+
var launch = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.a2;
|
|
55
|
+
var Continuation = kotlin_kotlin.$_$.f9;
|
|
56
|
+
var initMetadataForFunctionReference = kotlin_kotlin.$_$.fb;
|
|
57
|
+
var get_job = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.z1;
|
|
58
|
+
var Job = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.s1;
|
|
59
|
+
var cancel = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.y1;
|
|
60
|
+
var initMetadataForLambda = kotlin_kotlin.$_$.hb;
|
|
61
|
+
var CancellationException_init_$Create$ = kotlin_kotlin.$_$.z1;
|
|
62
|
+
var CancellationException = kotlin_kotlin.$_$.u8;
|
|
63
|
+
var CopyableThrowable = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.n1;
|
|
64
64
|
var readString_0 = kotlin_org_jetbrains_kotlinx_kotlinx_io_core.$_$.m;
|
|
65
65
|
var IOException = kotlin_org_jetbrains_kotlinx_kotlinx_io_core.$_$.g;
|
|
66
66
|
var IOException_init_$Init$ = kotlin_org_jetbrains_kotlinx_kotlinx_io_core.$_$.d;
|
|
67
|
-
var
|
|
68
|
-
var
|
|
67
|
+
var Enum = kotlin_kotlin.$_$.qf;
|
|
68
|
+
var ArrayList_init_$Create$ = kotlin_kotlin.$_$.j1;
|
|
69
|
+
var listOf = kotlin_kotlin.$_$.o7;
|
|
69
70
|
var IOException_init_$Create$_0 = kotlin_org_jetbrains_kotlinx_kotlinx_io_core.$_$.e;
|
|
70
|
-
var StringBuilder_init_$Create$ = kotlin_kotlin.$_$.
|
|
71
|
-
var charSequenceLength = kotlin_kotlin.$_$.
|
|
72
|
-
var IllegalStateException_init_$Create$ = kotlin_kotlin.$_$.r1;
|
|
71
|
+
var StringBuilder_init_$Create$ = kotlin_kotlin.$_$.c2;
|
|
72
|
+
var charSequenceLength = kotlin_kotlin.$_$.qa;
|
|
73
73
|
var readByteArray = kotlin_org_jetbrains_kotlinx_kotlinx_io_core.$_$.j;
|
|
74
|
-
var
|
|
75
|
-
var
|
|
76
|
-
var
|
|
77
|
-
var
|
|
78
|
-
var
|
|
79
|
-
var
|
|
80
|
-
var getStringHashCode = kotlin_kotlin.$_$.wa;
|
|
74
|
+
var encodeToByteArray = kotlin_kotlin.$_$.gd;
|
|
75
|
+
var writeString = kotlin_org_jetbrains_kotlinx_kotlinx_io_core.$_$.o;
|
|
76
|
+
var AutoCloseable = kotlin_kotlin.$_$.jf;
|
|
77
|
+
var _Char___init__impl__6a9atx = kotlin_kotlin.$_$.f3;
|
|
78
|
+
var replace_0 = kotlin_kotlin.$_$.xd;
|
|
79
|
+
var getStringHashCode = kotlin_kotlin.$_$.ab;
|
|
81
80
|
var IOException_init_$Init$_0 = kotlin_org_jetbrains_kotlinx_kotlinx_io_core.$_$.b;
|
|
82
|
-
var charSequenceSubSequence = kotlin_kotlin.$_$.
|
|
81
|
+
var charSequenceSubSequence = kotlin_kotlin.$_$.ra;
|
|
83
82
|
var readByteArray_0 = kotlin_org_jetbrains_kotlinx_kotlinx_io_core.$_$.k;
|
|
84
|
-
var isCharSequence = kotlin_kotlin.$_$.
|
|
85
|
-
var trim = kotlin_kotlin.$_$.
|
|
86
|
-
var toByte = kotlin_kotlin.$_$.
|
|
87
|
-
var decodeToString_0 = kotlin_kotlin.$_$.
|
|
88
|
-
var setOf = kotlin_kotlin.$_$.
|
|
89
|
-
var Dispatchers_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.
|
|
90
|
-
var charSequenceGet = kotlin_kotlin.$_$.
|
|
91
|
-
var Char__toInt_impl_vasixd = kotlin_kotlin.$_$.
|
|
83
|
+
var isCharSequence = kotlin_kotlin.$_$.nb;
|
|
84
|
+
var trim = kotlin_kotlin.$_$.df;
|
|
85
|
+
var toByte = kotlin_kotlin.$_$.ac;
|
|
86
|
+
var decodeToString_0 = kotlin_kotlin.$_$.ed;
|
|
87
|
+
var setOf = kotlin_kotlin.$_$.a8;
|
|
88
|
+
var Dispatchers_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.c;
|
|
89
|
+
var charSequenceGet = kotlin_kotlin.$_$.pa;
|
|
90
|
+
var Char__toInt_impl_vasixd = kotlin_kotlin.$_$.l3;
|
|
92
91
|
//endregion
|
|
93
92
|
//region block: pre-declaration
|
|
94
93
|
initMetadataForCompanion(Companion);
|
|
95
94
|
initMetadataForObject(Empty, 'Empty');
|
|
96
95
|
initMetadataForClass(Closed, 'Closed');
|
|
97
96
|
function resume() {
|
|
98
|
-
return this.
|
|
97
|
+
return this.u1l().l9(Companion_getInstance().r1l_1);
|
|
99
98
|
}
|
|
100
99
|
function resume_0(throwable) {
|
|
101
|
-
var tmp = this.
|
|
100
|
+
var tmp = this.u1l();
|
|
102
101
|
var tmp_0;
|
|
103
102
|
if (throwable == null) {
|
|
104
103
|
tmp_0 = null;
|
|
105
104
|
} else {
|
|
106
105
|
// Inline function 'kotlin.let' call
|
|
107
106
|
// Inline function 'kotlin.Companion.failure' call
|
|
108
|
-
var tmp$ret$
|
|
109
|
-
tmp_0 = new Result(tmp$ret$
|
|
107
|
+
var tmp$ret$0 = _Result___init__impl__xyqfz8(createFailure(throwable));
|
|
108
|
+
tmp_0 = new Result(tmp$ret$0);
|
|
110
109
|
}
|
|
111
110
|
var tmp1_elvis_lhs = tmp_0;
|
|
112
|
-
return tmp.l9(tmp1_elvis_lhs == null ? Companion_getInstance().
|
|
111
|
+
return tmp.l9(tmp1_elvis_lhs == null ? Companion_getInstance().r1l_1 : tmp1_elvis_lhs.pm_1);
|
|
113
112
|
}
|
|
114
113
|
initMetadataForInterface(Task, 'Task');
|
|
115
114
|
initMetadataForClass(Read, 'Read', VOID, VOID, [Task]);
|
|
@@ -119,7 +118,7 @@
|
|
|
119
118
|
initMetadataForCoroutine($flushAndCloseCOROUTINE$, CoroutineImpl);
|
|
120
119
|
function awaitContent$default(min, $completion, $super) {
|
|
121
120
|
min = min === VOID ? 1 : min;
|
|
122
|
-
return $super === VOID ? this.
|
|
121
|
+
return $super === VOID ? this.b1o(min, $completion) : $super.b1o.call(this, min, $completion);
|
|
123
122
|
}
|
|
124
123
|
initMetadataForInterface(ByteReadChannel_1, 'ByteReadChannel', VOID, VOID, VOID, [1]);
|
|
125
124
|
function get_autoFlush() {
|
|
@@ -134,18 +133,18 @@
|
|
|
134
133
|
initMetadataForClass(ByteChannelScanner, 'ByteChannelScanner', VOID, VOID, VOID, [1, 0]);
|
|
135
134
|
initMetadataForClass(ByteReadChannel$Companion$Empty$1, VOID, VOID, VOID, [ByteReadChannel_1], [1]);
|
|
136
135
|
initMetadataForCompanion(Companion_0);
|
|
136
|
+
initMetadataForCoroutine($readBufferCOROUTINE$, CoroutineImpl);
|
|
137
137
|
initMetadataForCoroutine($readAvailableCOROUTINE$, CoroutineImpl);
|
|
138
|
-
initMetadataForCoroutine($copyToCOROUTINE$, CoroutineImpl);
|
|
139
138
|
initMetadataForCoroutine($readRemainingCOROUTINE$, CoroutineImpl);
|
|
140
139
|
initMetadataForCoroutine($toByteArrayCOROUTINE$, CoroutineImpl);
|
|
141
|
-
initMetadataForCoroutine($copyToCOROUTINE
|
|
140
|
+
initMetadataForCoroutine($copyToCOROUTINE$, CoroutineImpl);
|
|
142
141
|
initMetadataForCoroutine($discardCOROUTINE$, CoroutineImpl);
|
|
143
142
|
initMetadataForCoroutine($skipIfFoundCOROUTINE$, CoroutineImpl);
|
|
144
143
|
initMetadataForCoroutine($readPacketCOROUTINE$, CoroutineImpl);
|
|
145
|
-
initMetadataForCoroutine($readUTF8LineToCOROUTINE$, CoroutineImpl);
|
|
146
144
|
initMetadataForCoroutine($readRemainingCOROUTINE$_0, CoroutineImpl);
|
|
147
|
-
initMetadataForCoroutine($readBufferCOROUTINE$, CoroutineImpl);
|
|
148
145
|
initMetadataForCoroutine($peekCOROUTINE$, CoroutineImpl);
|
|
146
|
+
initMetadataForCoroutine($internalReadLineToCOROUTINE$, CoroutineImpl);
|
|
147
|
+
initMetadataForCoroutine($internalReadLineTo$discardCrlfOrCrCOROUTINE$, CoroutineImpl);
|
|
149
148
|
initMetadataForCoroutine($flushIfNeededCOROUTINE$, CoroutineImpl);
|
|
150
149
|
initMetadataForClass(WriterJob, 'WriterJob');
|
|
151
150
|
initMetadataForClass(WriterScope, 'WriterScope', VOID, VOID, [CoroutineScope]);
|
|
@@ -159,13 +158,14 @@
|
|
|
159
158
|
initMetadataForClass(ClosedByteChannelException, 'ClosedByteChannelException', ClosedByteChannelException, IOException);
|
|
160
159
|
initMetadataForClass(ClosedReadChannelException, 'ClosedReadChannelException', ClosedReadChannelException, ClosedByteChannelException);
|
|
161
160
|
initMetadataForClass(ClosedWriteChannelException, 'ClosedWriteChannelException', ClosedWriteChannelException, ClosedByteChannelException);
|
|
161
|
+
initMetadataForClass(LineEnding, 'LineEnding', VOID, Enum);
|
|
162
162
|
initMetadataForCompanion(Companion_1);
|
|
163
163
|
initMetadataForClass(LineEndingMode, 'LineEndingMode');
|
|
164
164
|
initMetadataForClass(SourceByteReadChannel, 'SourceByteReadChannel', VOID, VOID, [ByteReadChannel_1], [1]);
|
|
165
165
|
initMetadataForClass(MalformedInputException, 'MalformedInputException', VOID, IOException);
|
|
166
166
|
initMetadataForClass(TooLongLineException, 'TooLongLineException', VOID, MalformedInputException);
|
|
167
167
|
function close() {
|
|
168
|
-
this.
|
|
168
|
+
this.qv();
|
|
169
169
|
}
|
|
170
170
|
initMetadataForInterface(ObjectPool, 'ObjectPool', VOID, VOID, [AutoCloseable]);
|
|
171
171
|
initMetadataForClass(DefaultPool, 'DefaultPool', VOID, VOID, [ObjectPool]);
|
|
@@ -184,10 +184,10 @@
|
|
|
184
184
|
//endregion
|
|
185
185
|
function Companion() {
|
|
186
186
|
Companion_instance_0 = this;
|
|
187
|
-
this.
|
|
187
|
+
this.q1l_1 = new Closed(null);
|
|
188
188
|
var tmp = this;
|
|
189
189
|
// Inline function 'kotlin.Companion.success' call
|
|
190
|
-
tmp.
|
|
190
|
+
tmp.r1l_1 = _Result___init__impl__xyqfz8(Unit_instance);
|
|
191
191
|
}
|
|
192
192
|
var Companion_instance_0;
|
|
193
193
|
function Companion_getInstance() {
|
|
@@ -215,87 +215,87 @@
|
|
|
215
215
|
return Empty_instance;
|
|
216
216
|
}
|
|
217
217
|
function Closed(cause) {
|
|
218
|
-
this.
|
|
218
|
+
this.s1l_1 = cause;
|
|
219
219
|
}
|
|
220
220
|
protoOf(Closed).toString = function () {
|
|
221
|
-
return 'Closed(cause=' + toString(this.
|
|
221
|
+
return 'Closed(cause=' + toString(this.s1l_1) + ')';
|
|
222
222
|
};
|
|
223
223
|
protoOf(Closed).hashCode = function () {
|
|
224
|
-
return this.
|
|
224
|
+
return this.s1l_1 == null ? 0 : hashCode(this.s1l_1);
|
|
225
225
|
};
|
|
226
226
|
protoOf(Closed).equals = function (other) {
|
|
227
227
|
if (this === other)
|
|
228
228
|
return true;
|
|
229
229
|
if (!(other instanceof Closed))
|
|
230
230
|
return false;
|
|
231
|
-
if (!equals(this.
|
|
231
|
+
if (!equals(this.s1l_1, other.s1l_1))
|
|
232
232
|
return false;
|
|
233
233
|
return true;
|
|
234
234
|
};
|
|
235
235
|
function Task() {
|
|
236
236
|
}
|
|
237
237
|
function Read(continuation) {
|
|
238
|
-
this.
|
|
239
|
-
this.
|
|
238
|
+
this.y1l_1 = continuation;
|
|
239
|
+
this.z1l_1 = null;
|
|
240
240
|
if (get_DEVELOPMENT_MODE()) {
|
|
241
241
|
var tmp = this;
|
|
242
242
|
// Inline function 'kotlin.also' call
|
|
243
|
-
var this_0 = newThrowable('ReadTask 0x' + toString_0(hashCode(this.
|
|
243
|
+
var this_0 = newThrowable('ReadTask 0x' + toString_0(hashCode(this.y1l_1), 16));
|
|
244
244
|
stackTraceToString(this_0);
|
|
245
|
-
tmp.
|
|
245
|
+
tmp.z1l_1 = this_0;
|
|
246
246
|
}
|
|
247
247
|
}
|
|
248
|
-
protoOf(Read).
|
|
249
|
-
return this.
|
|
248
|
+
protoOf(Read).u1l = function () {
|
|
249
|
+
return this.y1l_1;
|
|
250
250
|
};
|
|
251
|
-
protoOf(Read).
|
|
252
|
-
return this.
|
|
251
|
+
protoOf(Read).t1l = function () {
|
|
252
|
+
return this.z1l_1;
|
|
253
253
|
};
|
|
254
|
-
protoOf(Read).
|
|
254
|
+
protoOf(Read).v1l = function () {
|
|
255
255
|
return 'read';
|
|
256
256
|
};
|
|
257
257
|
function Write(continuation) {
|
|
258
|
-
this.
|
|
259
|
-
this.
|
|
258
|
+
this.a1m_1 = continuation;
|
|
259
|
+
this.b1m_1 = null;
|
|
260
260
|
if (get_DEVELOPMENT_MODE()) {
|
|
261
261
|
var tmp = this;
|
|
262
262
|
// Inline function 'kotlin.also' call
|
|
263
|
-
var this_0 = newThrowable('WriteTask 0x' + toString_0(hashCode(this.
|
|
263
|
+
var this_0 = newThrowable('WriteTask 0x' + toString_0(hashCode(this.a1m_1), 16));
|
|
264
264
|
stackTraceToString(this_0);
|
|
265
|
-
tmp.
|
|
265
|
+
tmp.b1m_1 = this_0;
|
|
266
266
|
}
|
|
267
267
|
}
|
|
268
|
-
protoOf(Write).
|
|
269
|
-
return this.
|
|
268
|
+
protoOf(Write).u1l = function () {
|
|
269
|
+
return this.a1m_1;
|
|
270
270
|
};
|
|
271
|
-
protoOf(Write).
|
|
272
|
-
return this.
|
|
271
|
+
protoOf(Write).t1l = function () {
|
|
272
|
+
return this.b1m_1;
|
|
273
273
|
};
|
|
274
|
-
protoOf(Write).
|
|
274
|
+
protoOf(Write).v1l = function () {
|
|
275
275
|
return 'write';
|
|
276
276
|
};
|
|
277
277
|
function moveFlushToReadBuffer($this) {
|
|
278
278
|
// Inline function 'io.ktor.utils.io.locks.synchronized' call
|
|
279
|
-
$this.
|
|
280
|
-
$this.
|
|
281
|
-
$this.
|
|
279
|
+
$this.f1m_1;
|
|
280
|
+
$this.d1m_1.kq($this.h1m_1);
|
|
281
|
+
$this.e1m_1 = 0;
|
|
282
282
|
// Inline function 'io.ktor.utils.io.ByteChannel.resumeSlot' call
|
|
283
|
-
var current = $this.
|
|
283
|
+
var current = $this.g1m_1.kotlinx$atomicfu$value;
|
|
284
284
|
var tmp;
|
|
285
285
|
if (current instanceof Write) {
|
|
286
|
-
tmp = $this.
|
|
286
|
+
tmp = $this.g1m_1.atomicfu$compareAndSet(current, Empty_instance);
|
|
287
287
|
} else {
|
|
288
288
|
tmp = false;
|
|
289
289
|
}
|
|
290
290
|
if (tmp) {
|
|
291
|
-
current.
|
|
291
|
+
current.w1l();
|
|
292
292
|
}
|
|
293
293
|
}
|
|
294
294
|
function closeSlot($this, cause) {
|
|
295
|
-
var closeContinuation = !(cause == null) ? new Closed(cause) : Companion_getInstance().
|
|
296
|
-
var continuation = $this.
|
|
295
|
+
var closeContinuation = !(cause == null) ? new Closed(cause) : Companion_getInstance().q1l_1;
|
|
296
|
+
var continuation = $this.g1m_1.atomicfu$getAndSet(closeContinuation);
|
|
297
297
|
if (isInterface(continuation, Task)) {
|
|
298
|
-
continuation.
|
|
298
|
+
continuation.x1l(cause);
|
|
299
299
|
}
|
|
300
300
|
}
|
|
301
301
|
function ClosedReadChannelException$_init_$ref_ix0089() {
|
|
@@ -314,8 +314,8 @@
|
|
|
314
314
|
}
|
|
315
315
|
function $awaitContentCOROUTINE$(_this__u8e3s4, min, resultContinuation) {
|
|
316
316
|
CoroutineImpl.call(this, resultContinuation);
|
|
317
|
-
this.
|
|
318
|
-
this.
|
|
317
|
+
this.s1m_1 = _this__u8e3s4;
|
|
318
|
+
this.t1m_1 = min;
|
|
319
319
|
}
|
|
320
320
|
protoOf($awaitContentCOROUTINE$).i9 = function () {
|
|
321
321
|
var suspendResult = this.c9_1;
|
|
@@ -325,39 +325,39 @@
|
|
|
325
325
|
switch (tmp) {
|
|
326
326
|
case 0:
|
|
327
327
|
this.b9_1 = 4;
|
|
328
|
-
rethrowCloseCauseIfNeeded(this.
|
|
329
|
-
if (this.
|
|
328
|
+
rethrowCloseCauseIfNeeded(this.s1m_1);
|
|
329
|
+
if (this.s1m_1.h1m_1.l1() >= fromInt(this.t1m_1))
|
|
330
330
|
return true;
|
|
331
|
-
this.
|
|
331
|
+
this.u1m_1 = this.s1m_1;
|
|
332
332
|
this.a9_1 = 1;
|
|
333
333
|
continue $sm;
|
|
334
334
|
case 1:
|
|
335
|
-
if (!(add(numberToLong(this.
|
|
335
|
+
if (!(add(numberToLong(this.s1m_1.e1m_1), this.s1m_1.h1m_1.l1()) < fromInt(this.t1m_1) && this.s1m_1.j1m_1.kotlinx$atomicfu$value == null)) {
|
|
336
336
|
this.a9_1 = 3;
|
|
337
337
|
continue $sm;
|
|
338
338
|
}
|
|
339
339
|
|
|
340
340
|
this.a9_1 = 2;
|
|
341
341
|
var cancellable = new CancellableContinuationImpl(intercepted(this), 1);
|
|
342
|
-
cancellable.
|
|
343
|
-
var tmp0 = this.
|
|
342
|
+
cancellable.tw();
|
|
343
|
+
var tmp0 = this.u1m_1;
|
|
344
344
|
var tmp2 = new Read(cancellable);
|
|
345
345
|
l$ret$1: do {
|
|
346
|
-
var previous = tmp0.
|
|
346
|
+
var previous = tmp0.g1m_1.kotlinx$atomicfu$value;
|
|
347
347
|
if (!(previous instanceof Closed)) {
|
|
348
|
-
if (!tmp0.
|
|
349
|
-
tmp2.
|
|
348
|
+
if (!tmp0.g1m_1.atomicfu$compareAndSet(previous, tmp2)) {
|
|
349
|
+
tmp2.w1l();
|
|
350
350
|
break l$ret$1;
|
|
351
351
|
}
|
|
352
352
|
}
|
|
353
353
|
if (previous instanceof Read) {
|
|
354
|
-
previous.
|
|
354
|
+
previous.x1l(new ConcurrentIOException(tmp2.v1l(), previous.t1l()));
|
|
355
355
|
} else {
|
|
356
356
|
if (isInterface(previous, Task)) {
|
|
357
|
-
previous.
|
|
357
|
+
previous.w1l();
|
|
358
358
|
} else {
|
|
359
359
|
if (previous instanceof Closed) {
|
|
360
|
-
tmp2.
|
|
360
|
+
tmp2.x1l(previous.s1l_1);
|
|
361
361
|
break l$ret$1;
|
|
362
362
|
} else {
|
|
363
363
|
if (!equals(previous, Empty_instance)) {
|
|
@@ -366,21 +366,21 @@
|
|
|
366
366
|
}
|
|
367
367
|
}
|
|
368
368
|
}
|
|
369
|
-
if (!(add(numberToLong(this.
|
|
370
|
-
var current = tmp0.
|
|
369
|
+
if (!(add(numberToLong(this.s1m_1.e1m_1), this.s1m_1.h1m_1.l1()) < fromInt(this.t1m_1) && this.s1m_1.j1m_1.kotlinx$atomicfu$value == null)) {
|
|
370
|
+
var current = tmp0.g1m_1.kotlinx$atomicfu$value;
|
|
371
371
|
var tmp_0;
|
|
372
372
|
if (current instanceof Read) {
|
|
373
|
-
tmp_0 = tmp0.
|
|
373
|
+
tmp_0 = tmp0.g1m_1.atomicfu$compareAndSet(current, Empty_instance);
|
|
374
374
|
} else {
|
|
375
375
|
tmp_0 = false;
|
|
376
376
|
}
|
|
377
377
|
if (tmp_0) {
|
|
378
|
-
current.
|
|
378
|
+
current.w1l();
|
|
379
379
|
}
|
|
380
380
|
}
|
|
381
381
|
}
|
|
382
382
|
while (false);
|
|
383
|
-
suspendResult = returnIfSuspended(cancellable.
|
|
383
|
+
suspendResult = returnIfSuspended(cancellable.uw(), this);
|
|
384
384
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
385
385
|
return suspendResult;
|
|
386
386
|
}
|
|
@@ -390,11 +390,11 @@
|
|
|
390
390
|
this.a9_1 = 1;
|
|
391
391
|
continue $sm;
|
|
392
392
|
case 3:
|
|
393
|
-
if (this.
|
|
394
|
-
moveFlushToReadBuffer(this.
|
|
393
|
+
if (this.s1m_1.h1m_1.l1() < 1048576n) {
|
|
394
|
+
moveFlushToReadBuffer(this.s1m_1);
|
|
395
395
|
}
|
|
396
396
|
|
|
397
|
-
return this.
|
|
397
|
+
return this.s1m_1.h1m_1.l1() >= fromInt(this.t1m_1);
|
|
398
398
|
case 4:
|
|
399
399
|
throw this.d9_1;
|
|
400
400
|
}
|
|
@@ -411,7 +411,7 @@
|
|
|
411
411
|
};
|
|
412
412
|
function $flushCOROUTINE$(_this__u8e3s4, resultContinuation) {
|
|
413
413
|
CoroutineImpl.call(this, resultContinuation);
|
|
414
|
-
this.
|
|
414
|
+
this.d1n_1 = _this__u8e3s4;
|
|
415
415
|
}
|
|
416
416
|
protoOf($flushCOROUTINE$).i9 = function () {
|
|
417
417
|
var suspendResult = this.c9_1;
|
|
@@ -421,40 +421,40 @@
|
|
|
421
421
|
switch (tmp) {
|
|
422
422
|
case 0:
|
|
423
423
|
this.b9_1 = 4;
|
|
424
|
-
rethrowCloseCauseIfNeeded(this.
|
|
425
|
-
this.
|
|
426
|
-
if (this.
|
|
424
|
+
rethrowCloseCauseIfNeeded(this.d1n_1);
|
|
425
|
+
this.d1n_1.f1n();
|
|
426
|
+
if (this.d1n_1.e1m_1 < 1048576)
|
|
427
427
|
return Unit_instance;
|
|
428
|
-
this.
|
|
428
|
+
this.e1n_1 = this.d1n_1;
|
|
429
429
|
this.a9_1 = 1;
|
|
430
430
|
continue $sm;
|
|
431
431
|
case 1:
|
|
432
|
-
if (!(this.
|
|
432
|
+
if (!(this.d1n_1.e1m_1 >= 1048576 && this.d1n_1.j1m_1.kotlinx$atomicfu$value == null)) {
|
|
433
433
|
this.a9_1 = 3;
|
|
434
434
|
continue $sm;
|
|
435
435
|
}
|
|
436
436
|
|
|
437
437
|
this.a9_1 = 2;
|
|
438
438
|
var cancellable = new CancellableContinuationImpl(intercepted(this), 1);
|
|
439
|
-
cancellable.
|
|
440
|
-
var tmp0 = this.
|
|
439
|
+
cancellable.tw();
|
|
440
|
+
var tmp0 = this.e1n_1;
|
|
441
441
|
var tmp2 = new Write(cancellable);
|
|
442
442
|
l$ret$1: do {
|
|
443
|
-
var previous = tmp0.
|
|
443
|
+
var previous = tmp0.g1m_1.kotlinx$atomicfu$value;
|
|
444
444
|
if (!(previous instanceof Closed)) {
|
|
445
|
-
if (!tmp0.
|
|
446
|
-
tmp2.
|
|
445
|
+
if (!tmp0.g1m_1.atomicfu$compareAndSet(previous, tmp2)) {
|
|
446
|
+
tmp2.w1l();
|
|
447
447
|
break l$ret$1;
|
|
448
448
|
}
|
|
449
449
|
}
|
|
450
450
|
if (previous instanceof Write) {
|
|
451
|
-
previous.
|
|
451
|
+
previous.x1l(new ConcurrentIOException(tmp2.v1l(), previous.t1l()));
|
|
452
452
|
} else {
|
|
453
453
|
if (isInterface(previous, Task)) {
|
|
454
|
-
previous.
|
|
454
|
+
previous.w1l();
|
|
455
455
|
} else {
|
|
456
456
|
if (previous instanceof Closed) {
|
|
457
|
-
tmp2.
|
|
457
|
+
tmp2.x1l(previous.s1l_1);
|
|
458
458
|
break l$ret$1;
|
|
459
459
|
} else {
|
|
460
460
|
if (!equals(previous, Empty_instance)) {
|
|
@@ -463,21 +463,21 @@
|
|
|
463
463
|
}
|
|
464
464
|
}
|
|
465
465
|
}
|
|
466
|
-
if (!(this.
|
|
467
|
-
var current = tmp0.
|
|
466
|
+
if (!(this.d1n_1.e1m_1 >= 1048576 && this.d1n_1.j1m_1.kotlinx$atomicfu$value == null)) {
|
|
467
|
+
var current = tmp0.g1m_1.kotlinx$atomicfu$value;
|
|
468
468
|
var tmp_0;
|
|
469
469
|
if (current instanceof Write) {
|
|
470
|
-
tmp_0 = tmp0.
|
|
470
|
+
tmp_0 = tmp0.g1m_1.atomicfu$compareAndSet(current, Empty_instance);
|
|
471
471
|
} else {
|
|
472
472
|
tmp_0 = false;
|
|
473
473
|
}
|
|
474
474
|
if (tmp_0) {
|
|
475
|
-
current.
|
|
475
|
+
current.w1l();
|
|
476
476
|
}
|
|
477
477
|
}
|
|
478
478
|
}
|
|
479
479
|
while (false);
|
|
480
|
-
suspendResult = returnIfSuspended(cancellable.
|
|
480
|
+
suspendResult = returnIfSuspended(cancellable.uw(), this);
|
|
481
481
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
482
482
|
return suspendResult;
|
|
483
483
|
}
|
|
@@ -504,7 +504,7 @@
|
|
|
504
504
|
};
|
|
505
505
|
function $flushAndCloseCOROUTINE$(_this__u8e3s4, resultContinuation) {
|
|
506
506
|
CoroutineImpl.call(this, resultContinuation);
|
|
507
|
-
this.
|
|
507
|
+
this.o1n_1 = _this__u8e3s4;
|
|
508
508
|
}
|
|
509
509
|
protoOf($flushAndCloseCOROUTINE$).i9 = function () {
|
|
510
510
|
var suspendResult = this.c9_1;
|
|
@@ -514,11 +514,11 @@
|
|
|
514
514
|
switch (tmp) {
|
|
515
515
|
case 0:
|
|
516
516
|
this.b9_1 = 4;
|
|
517
|
-
var this_0 = this.
|
|
517
|
+
var this_0 = this.o1n_1;
|
|
518
518
|
this.b9_1 = 2;
|
|
519
|
-
this.
|
|
519
|
+
this.q1n_1 = Companion_instance;
|
|
520
520
|
this.a9_1 = 1;
|
|
521
|
-
suspendResult = this_0.
|
|
521
|
+
suspendResult = this_0.r1n(this);
|
|
522
522
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
523
523
|
return suspendResult;
|
|
524
524
|
}
|
|
@@ -526,8 +526,8 @@
|
|
|
526
526
|
continue $sm;
|
|
527
527
|
case 1:
|
|
528
528
|
var tmp_0 = this;
|
|
529
|
-
this.
|
|
530
|
-
tmp_0.
|
|
529
|
+
this.q1n_1;
|
|
530
|
+
tmp_0.p1n_1 = _Result___init__impl__xyqfz8(Unit_instance);
|
|
531
531
|
this.b9_1 = 4;
|
|
532
532
|
this.a9_1 = 3;
|
|
533
533
|
continue $sm;
|
|
@@ -537,7 +537,7 @@
|
|
|
537
537
|
if (tmp_1 instanceof Error) {
|
|
538
538
|
var e = this.d9_1;
|
|
539
539
|
var tmp_2 = this;
|
|
540
|
-
tmp_2.
|
|
540
|
+
tmp_2.p1n_1 = _Result___init__impl__xyqfz8(createFailure(e));
|
|
541
541
|
this.a9_1 = 3;
|
|
542
542
|
continue $sm;
|
|
543
543
|
} else {
|
|
@@ -546,9 +546,9 @@
|
|
|
546
546
|
|
|
547
547
|
case 3:
|
|
548
548
|
this.b9_1 = 4;
|
|
549
|
-
if (!this.
|
|
549
|
+
if (!this.o1n_1.j1m_1.atomicfu$compareAndSet(null, get_CLOSED()))
|
|
550
550
|
return Unit_instance;
|
|
551
|
-
closeSlot(this.
|
|
551
|
+
closeSlot(this.o1n_1, null);
|
|
552
552
|
return Unit_instance;
|
|
553
553
|
case 4:
|
|
554
554
|
throw this.d9_1;
|
|
@@ -566,104 +566,104 @@
|
|
|
566
566
|
};
|
|
567
567
|
function ByteChannel(autoFlush) {
|
|
568
568
|
autoFlush = autoFlush === VOID ? false : autoFlush;
|
|
569
|
-
this.
|
|
570
|
-
this.
|
|
571
|
-
this.
|
|
572
|
-
this.
|
|
573
|
-
this.
|
|
574
|
-
this.
|
|
575
|
-
this.
|
|
576
|
-
this.
|
|
577
|
-
}
|
|
578
|
-
protoOf(ByteChannel).
|
|
579
|
-
return this.
|
|
580
|
-
};
|
|
581
|
-
protoOf(ByteChannel).
|
|
582
|
-
var tmp0_safe_receiver = this.
|
|
569
|
+
this.c1m_1 = autoFlush;
|
|
570
|
+
this.d1m_1 = new Buffer();
|
|
571
|
+
this.e1m_1 = 0;
|
|
572
|
+
this.f1m_1 = new Object();
|
|
573
|
+
this.g1m_1 = atomic$ref$1(Empty_instance);
|
|
574
|
+
this.h1m_1 = new Buffer();
|
|
575
|
+
this.i1m_1 = new Buffer();
|
|
576
|
+
this.j1m_1 = atomic$ref$1(null);
|
|
577
|
+
}
|
|
578
|
+
protoOf(ByteChannel).s1n = function () {
|
|
579
|
+
return this.c1m_1;
|
|
580
|
+
};
|
|
581
|
+
protoOf(ByteChannel).t1n = function () {
|
|
582
|
+
var tmp0_safe_receiver = this.j1m_1.kotlinx$atomicfu$value;
|
|
583
583
|
if (tmp0_safe_receiver == null)
|
|
584
584
|
null;
|
|
585
585
|
else {
|
|
586
|
-
tmp0_safe_receiver.
|
|
586
|
+
tmp0_safe_receiver.v1n(ClosedReadChannelException$_init_$ref_ix0089());
|
|
587
587
|
}
|
|
588
|
-
if (this.
|
|
588
|
+
if (this.h1m_1.hp()) {
|
|
589
589
|
moveFlushToReadBuffer(this);
|
|
590
590
|
}
|
|
591
|
-
return this.
|
|
591
|
+
return this.h1m_1;
|
|
592
592
|
};
|
|
593
|
-
protoOf(ByteChannel).
|
|
594
|
-
if (this.
|
|
595
|
-
var tmp0_safe_receiver = this.
|
|
593
|
+
protoOf(ByteChannel).w1n = function () {
|
|
594
|
+
if (this.x1n()) {
|
|
595
|
+
var tmp0_safe_receiver = this.j1m_1.kotlinx$atomicfu$value;
|
|
596
596
|
var tmp;
|
|
597
597
|
if (tmp0_safe_receiver == null) {
|
|
598
598
|
tmp = null;
|
|
599
599
|
} else {
|
|
600
|
-
tmp = tmp0_safe_receiver.
|
|
600
|
+
tmp = tmp0_safe_receiver.v1n(ClosedWriteChannelException$_init_$ref_ef15ty());
|
|
601
601
|
}
|
|
602
602
|
if (tmp == null)
|
|
603
603
|
throw new ClosedWriteChannelException();
|
|
604
604
|
}
|
|
605
|
-
return this.
|
|
605
|
+
return this.i1m_1;
|
|
606
606
|
};
|
|
607
|
-
protoOf(ByteChannel).
|
|
608
|
-
var tmp0_safe_receiver = this.
|
|
609
|
-
return tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
607
|
+
protoOf(ByteChannel).y1n = function () {
|
|
608
|
+
var tmp0_safe_receiver = this.j1m_1.kotlinx$atomicfu$value;
|
|
609
|
+
return tmp0_safe_receiver == null ? null : tmp0_safe_receiver.z1n();
|
|
610
610
|
};
|
|
611
|
-
protoOf(ByteChannel).
|
|
612
|
-
return !(this.
|
|
611
|
+
protoOf(ByteChannel).x1n = function () {
|
|
612
|
+
return !(this.j1m_1.kotlinx$atomicfu$value == null);
|
|
613
613
|
};
|
|
614
|
-
protoOf(ByteChannel).
|
|
615
|
-
return !(this.
|
|
614
|
+
protoOf(ByteChannel).a1o = function () {
|
|
615
|
+
return !(this.y1n() == null) || (this.x1n() && this.e1m_1 === 0 && this.h1m_1.hp());
|
|
616
616
|
};
|
|
617
|
-
protoOf(ByteChannel).
|
|
617
|
+
protoOf(ByteChannel).b1o = function (min, $completion) {
|
|
618
618
|
var tmp = new $awaitContentCOROUTINE$(this, min, $completion);
|
|
619
619
|
tmp.c9_1 = Unit_instance;
|
|
620
620
|
tmp.d9_1 = null;
|
|
621
621
|
return tmp.i9();
|
|
622
622
|
};
|
|
623
|
-
protoOf(ByteChannel).
|
|
623
|
+
protoOf(ByteChannel).r1n = function ($completion) {
|
|
624
624
|
var tmp = new $flushCOROUTINE$(this, $completion);
|
|
625
625
|
tmp.c9_1 = Unit_instance;
|
|
626
626
|
tmp.d9_1 = null;
|
|
627
627
|
return tmp.i9();
|
|
628
628
|
};
|
|
629
|
-
protoOf(ByteChannel).
|
|
630
|
-
if (this.
|
|
629
|
+
protoOf(ByteChannel).f1n = function () {
|
|
630
|
+
if (this.i1m_1.hp())
|
|
631
631
|
return Unit_instance;
|
|
632
632
|
// Inline function 'io.ktor.utils.io.locks.synchronized' call
|
|
633
|
-
this.
|
|
634
|
-
var count = convertToInt(this.
|
|
635
|
-
this.
|
|
636
|
-
this.
|
|
633
|
+
this.f1m_1;
|
|
634
|
+
var count = convertToInt(this.i1m_1.l1());
|
|
635
|
+
this.d1m_1.zq(this.i1m_1);
|
|
636
|
+
this.e1m_1 = this.e1m_1 + count | 0;
|
|
637
637
|
// Inline function 'io.ktor.utils.io.ByteChannel.resumeSlot' call
|
|
638
|
-
var current = this.
|
|
638
|
+
var current = this.g1m_1.kotlinx$atomicfu$value;
|
|
639
639
|
var tmp;
|
|
640
640
|
if (current instanceof Read) {
|
|
641
|
-
tmp = this.
|
|
641
|
+
tmp = this.g1m_1.atomicfu$compareAndSet(current, Empty_instance);
|
|
642
642
|
} else {
|
|
643
643
|
tmp = false;
|
|
644
644
|
}
|
|
645
645
|
if (tmp) {
|
|
646
|
-
current.
|
|
646
|
+
current.w1l();
|
|
647
647
|
}
|
|
648
648
|
};
|
|
649
649
|
protoOf(ByteChannel).l4 = function () {
|
|
650
|
-
this.
|
|
651
|
-
if (!this.
|
|
650
|
+
this.f1n();
|
|
651
|
+
if (!this.j1m_1.atomicfu$compareAndSet(null, get_CLOSED()))
|
|
652
652
|
return Unit_instance;
|
|
653
653
|
closeSlot(this, null);
|
|
654
654
|
};
|
|
655
|
-
protoOf(ByteChannel).
|
|
655
|
+
protoOf(ByteChannel).d1o = function ($completion) {
|
|
656
656
|
var tmp = new $flushAndCloseCOROUTINE$(this, $completion);
|
|
657
657
|
tmp.c9_1 = Unit_instance;
|
|
658
658
|
tmp.d9_1 = null;
|
|
659
659
|
return tmp.i9();
|
|
660
660
|
};
|
|
661
|
-
protoOf(ByteChannel).
|
|
662
|
-
if (!(this.
|
|
661
|
+
protoOf(ByteChannel).e1o = function (cause) {
|
|
662
|
+
if (!(this.j1m_1.kotlinx$atomicfu$value == null))
|
|
663
663
|
return Unit_instance;
|
|
664
664
|
var closedToken = new CloseToken(cause);
|
|
665
|
-
this.
|
|
666
|
-
var wrappedCause = closedToken.
|
|
665
|
+
this.j1m_1.atomicfu$compareAndSet(null, closedToken);
|
|
666
|
+
var wrappedCause = closedToken.z1n();
|
|
667
667
|
closeSlot(this, wrappedCause);
|
|
668
668
|
};
|
|
669
669
|
protoOf(ByteChannel).toString = function () {
|
|
@@ -679,7 +679,7 @@
|
|
|
679
679
|
length = length === VOID ? content.length : length;
|
|
680
680
|
// Inline function 'kotlin.also' call
|
|
681
681
|
var this_0 = new Buffer();
|
|
682
|
-
this_0.
|
|
682
|
+
this_0.qq(content, offset, offset + length | 0);
|
|
683
683
|
var source = this_0;
|
|
684
684
|
return ByteReadChannel_0(source);
|
|
685
685
|
}
|
|
@@ -687,18 +687,18 @@
|
|
|
687
687
|
return new SourceByteReadChannel(source);
|
|
688
688
|
}
|
|
689
689
|
function buildPartialMatchTable($this) {
|
|
690
|
-
var table = new Int32Array($this.
|
|
690
|
+
var table = new Int32Array($this.g1o_1.l1());
|
|
691
691
|
var j = 0;
|
|
692
692
|
var inductionVariable = 1;
|
|
693
|
-
var last = $this.
|
|
693
|
+
var last = $this.g1o_1.l1();
|
|
694
694
|
if (inductionVariable < last)
|
|
695
695
|
do {
|
|
696
696
|
var i = inductionVariable;
|
|
697
697
|
inductionVariable = inductionVariable + 1 | 0;
|
|
698
|
-
while (j > 0 && !($this.
|
|
698
|
+
while (j > 0 && !($this.g1o_1.m1(i) === $this.g1o_1.m1(j))) {
|
|
699
699
|
j = table[j - 1 | 0];
|
|
700
700
|
}
|
|
701
|
-
if ($this.
|
|
701
|
+
if ($this.g1o_1.m1(i) === $this.g1o_1.m1(j)) {
|
|
702
702
|
j = j + 1 | 0;
|
|
703
703
|
}
|
|
704
704
|
table[i] = j;
|
|
@@ -719,17 +719,17 @@
|
|
|
719
719
|
return tmp.i9();
|
|
720
720
|
}
|
|
721
721
|
function checkBounds($this, extra) {
|
|
722
|
-
if (add($this.
|
|
723
|
-
throw IOException_init_$Create$('Limit of ' + $this.
|
|
722
|
+
if (add($this.m1o_1, extra) > $this.i1o_1) {
|
|
723
|
+
throw IOException_init_$Create$('Limit of ' + $this.i1o_1.toString() + ' bytes exceeded ' + ('while searching for "' + toSingleLineString($this, $this.g1o_1) + '"'));
|
|
724
724
|
}
|
|
725
725
|
}
|
|
726
|
-
function toSingleLineString($this,
|
|
727
|
-
return replace(decodeToString(
|
|
726
|
+
function toSingleLineString($this, $receiver) {
|
|
727
|
+
return replace(decodeToString($receiver), '\n', '\\n');
|
|
728
728
|
}
|
|
729
729
|
function $findNextCOROUTINE$(_this__u8e3s4, ignoreMissing, resultContinuation) {
|
|
730
730
|
CoroutineImpl.call(this, resultContinuation);
|
|
731
|
-
this.
|
|
732
|
-
this.
|
|
731
|
+
this.r1p_1 = _this__u8e3s4;
|
|
732
|
+
this.s1p_1 = ignoreMissing;
|
|
733
733
|
}
|
|
734
734
|
protoOf($findNextCOROUTINE$).i9 = function () {
|
|
735
735
|
var suspendResult = this.c9_1;
|
|
@@ -739,17 +739,17 @@
|
|
|
739
739
|
switch (tmp) {
|
|
740
740
|
case 0:
|
|
741
741
|
this.b9_1 = 9;
|
|
742
|
-
this.
|
|
742
|
+
this.r1p_1.m1o_1 = 0n;
|
|
743
743
|
this.a9_1 = 1;
|
|
744
744
|
continue $sm;
|
|
745
745
|
case 1:
|
|
746
|
-
if (!this.
|
|
747
|
-
this.
|
|
746
|
+
if (!this.r1p_1.j1o_1.hp()) {
|
|
747
|
+
this.t1p_1 = true;
|
|
748
748
|
this.a9_1 = 3;
|
|
749
749
|
continue $sm;
|
|
750
750
|
} else {
|
|
751
751
|
this.a9_1 = 2;
|
|
752
|
-
suspendResult = this.
|
|
752
|
+
suspendResult = this.r1p_1.f1o_1.c1o(VOID, this);
|
|
753
753
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
754
754
|
return suspendResult;
|
|
755
755
|
}
|
|
@@ -757,17 +757,17 @@
|
|
|
757
757
|
}
|
|
758
758
|
|
|
759
759
|
case 2:
|
|
760
|
-
this.
|
|
760
|
+
this.t1p_1 = suspendResult;
|
|
761
761
|
this.a9_1 = 3;
|
|
762
762
|
continue $sm;
|
|
763
763
|
case 3:
|
|
764
|
-
if (!this.
|
|
764
|
+
if (!this.t1p_1) {
|
|
765
765
|
this.a9_1 = 7;
|
|
766
766
|
continue $sm;
|
|
767
767
|
}
|
|
768
768
|
|
|
769
769
|
this.a9_1 = 4;
|
|
770
|
-
suspendResult = advanceToNextPotentialMatch(this.
|
|
770
|
+
suspendResult = advanceToNextPotentialMatch(this.r1p_1, this);
|
|
771
771
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
772
772
|
return suspendResult;
|
|
773
773
|
}
|
|
@@ -775,7 +775,7 @@
|
|
|
775
775
|
continue $sm;
|
|
776
776
|
case 4:
|
|
777
777
|
this.a9_1 = 5;
|
|
778
|
-
suspendResult = checkFullMatch(this.
|
|
778
|
+
suspendResult = checkFullMatch(this.r1p_1, this);
|
|
779
779
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
780
780
|
return suspendResult;
|
|
781
781
|
}
|
|
@@ -783,7 +783,7 @@
|
|
|
783
783
|
continue $sm;
|
|
784
784
|
case 5:
|
|
785
785
|
if (suspendResult) {
|
|
786
|
-
return this.
|
|
786
|
+
return this.r1p_1.m1o_1;
|
|
787
787
|
} else {
|
|
788
788
|
this.a9_1 = 6;
|
|
789
789
|
continue $sm;
|
|
@@ -793,20 +793,20 @@
|
|
|
793
793
|
this.a9_1 = 1;
|
|
794
794
|
continue $sm;
|
|
795
795
|
case 7:
|
|
796
|
-
if (!this.
|
|
797
|
-
throw IOException_init_$Create$('Expected "' + toSingleLineString(this.
|
|
796
|
+
if (!this.s1p_1) {
|
|
797
|
+
throw IOException_init_$Create$('Expected "' + toSingleLineString(this.r1p_1, this.r1p_1.g1o_1) + '" but encountered end of input');
|
|
798
798
|
}
|
|
799
799
|
|
|
800
|
-
this.
|
|
800
|
+
this.r1p_1.m1o_1 = add(this.r1p_1.m1o_1, this.r1p_1.l1o_1.kq(this.r1p_1.h1o_1.w1n()));
|
|
801
801
|
this.a9_1 = 8;
|
|
802
|
-
suspendResult = this.
|
|
802
|
+
suspendResult = this.r1p_1.h1o_1.r1n(this);
|
|
803
803
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
804
804
|
return suspendResult;
|
|
805
805
|
}
|
|
806
806
|
|
|
807
807
|
continue $sm;
|
|
808
808
|
case 8:
|
|
809
|
-
return this.
|
|
809
|
+
return this.r1p_1.m1o_1;
|
|
810
810
|
case 9:
|
|
811
811
|
throw this.d9_1;
|
|
812
812
|
}
|
|
@@ -823,7 +823,7 @@
|
|
|
823
823
|
};
|
|
824
824
|
function $advanceToNextPotentialMatchCOROUTINE$(_this__u8e3s4, resultContinuation) {
|
|
825
825
|
CoroutineImpl.call(this, resultContinuation);
|
|
826
|
-
this.
|
|
826
|
+
this.w1o_1 = _this__u8e3s4;
|
|
827
827
|
}
|
|
828
828
|
protoOf($advanceToNextPotentialMatchCOROUTINE$).i9 = function () {
|
|
829
829
|
var suspendResult = this.c9_1;
|
|
@@ -836,13 +836,13 @@
|
|
|
836
836
|
this.a9_1 = 1;
|
|
837
837
|
continue $sm;
|
|
838
838
|
case 1:
|
|
839
|
-
if (!this.
|
|
840
|
-
this.
|
|
839
|
+
if (!this.w1o_1.j1o_1.hp()) {
|
|
840
|
+
this.x1o_1 = true;
|
|
841
841
|
this.a9_1 = 3;
|
|
842
842
|
continue $sm;
|
|
843
843
|
} else {
|
|
844
844
|
this.a9_1 = 2;
|
|
845
|
-
suspendResult = this.
|
|
845
|
+
suspendResult = this.w1o_1.f1o_1.c1o(VOID, this);
|
|
846
846
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
847
847
|
return suspendResult;
|
|
848
848
|
}
|
|
@@ -850,34 +850,34 @@
|
|
|
850
850
|
}
|
|
851
851
|
|
|
852
852
|
case 2:
|
|
853
|
-
this.
|
|
853
|
+
this.x1o_1 = suspendResult;
|
|
854
854
|
this.a9_1 = 3;
|
|
855
855
|
continue $sm;
|
|
856
856
|
case 3:
|
|
857
|
-
if (!this.
|
|
857
|
+
if (!this.x1o_1) {
|
|
858
858
|
this.a9_1 = 7;
|
|
859
859
|
continue $sm;
|
|
860
860
|
}
|
|
861
861
|
|
|
862
|
-
var nextMatch = indexOf(this.
|
|
862
|
+
var nextMatch = indexOf(this.w1o_1.j1o_1, this.w1o_1.g1o_1.m1(0));
|
|
863
863
|
if (nextMatch === -1n) {
|
|
864
|
-
var tmp_0 = this.
|
|
865
|
-
checkBounds(this.
|
|
866
|
-
this.
|
|
864
|
+
var tmp_0 = this.w1o_1.j1o_1;
|
|
865
|
+
checkBounds(this.w1o_1, (tmp_0 instanceof Buffer ? tmp_0 : THROW_CCE()).l1());
|
|
866
|
+
this.w1o_1.m1o_1 = add(this.w1o_1.m1o_1, this.w1o_1.j1o_1.kq(this.w1o_1.h1o_1.w1n()));
|
|
867
867
|
this.a9_1 = 5;
|
|
868
|
-
suspendResult = flushIfNeeded(this.
|
|
868
|
+
suspendResult = flushIfNeeded(this.w1o_1.h1o_1, this);
|
|
869
869
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
870
870
|
return suspendResult;
|
|
871
871
|
}
|
|
872
872
|
continue $sm;
|
|
873
873
|
} else {
|
|
874
|
-
checkBounds(this.
|
|
875
|
-
var tmp_1 = this.
|
|
876
|
-
var tmp_2 = this.
|
|
877
|
-
var tmp_3 = this.
|
|
878
|
-
tmp_1.
|
|
874
|
+
checkBounds(this.w1o_1, nextMatch);
|
|
875
|
+
var tmp_1 = this.w1o_1;
|
|
876
|
+
var tmp_2 = this.w1o_1.m1o_1;
|
|
877
|
+
var tmp_3 = this.w1o_1.h1o_1.w1n();
|
|
878
|
+
tmp_1.m1o_1 = add(tmp_2, this.w1o_1.j1o_1.hq(tmp_3 instanceof Buffer ? tmp_3 : THROW_CCE(), nextMatch));
|
|
879
879
|
this.a9_1 = 4;
|
|
880
|
-
suspendResult = flushIfNeeded(this.
|
|
880
|
+
suspendResult = flushIfNeeded(this.w1o_1.h1o_1, this);
|
|
881
881
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
882
882
|
return suspendResult;
|
|
883
883
|
}
|
|
@@ -910,7 +910,7 @@
|
|
|
910
910
|
};
|
|
911
911
|
function $checkFullMatchCOROUTINE$(_this__u8e3s4, resultContinuation) {
|
|
912
912
|
CoroutineImpl.call(this, resultContinuation);
|
|
913
|
-
this.
|
|
913
|
+
this.g1p_1 = _this__u8e3s4;
|
|
914
914
|
}
|
|
915
915
|
protoOf($checkFullMatchCOROUTINE$).i9 = function () {
|
|
916
916
|
var suspendResult = this.c9_1;
|
|
@@ -923,13 +923,13 @@
|
|
|
923
923
|
this.a9_1 = 1;
|
|
924
924
|
continue $sm;
|
|
925
925
|
case 1:
|
|
926
|
-
if (!this.
|
|
927
|
-
this.
|
|
926
|
+
if (!this.g1p_1.j1o_1.hp()) {
|
|
927
|
+
this.i1p_1 = true;
|
|
928
928
|
this.a9_1 = 3;
|
|
929
929
|
continue $sm;
|
|
930
930
|
} else {
|
|
931
931
|
this.a9_1 = 2;
|
|
932
|
-
suspendResult = this.
|
|
932
|
+
suspendResult = this.g1p_1.f1o_1.c1o(VOID, this);
|
|
933
933
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
934
934
|
return suspendResult;
|
|
935
935
|
}
|
|
@@ -937,30 +937,30 @@
|
|
|
937
937
|
}
|
|
938
938
|
|
|
939
939
|
case 2:
|
|
940
|
-
this.
|
|
940
|
+
this.i1p_1 = suspendResult;
|
|
941
941
|
this.a9_1 = 3;
|
|
942
942
|
continue $sm;
|
|
943
943
|
case 3:
|
|
944
|
-
if (!this.
|
|
944
|
+
if (!this.i1p_1) {
|
|
945
945
|
this.a9_1 = 7;
|
|
946
946
|
continue $sm;
|
|
947
947
|
}
|
|
948
948
|
|
|
949
|
-
this.
|
|
950
|
-
if (this.
|
|
951
|
-
var oldMatchIndex = this.
|
|
952
|
-
while (this.
|
|
953
|
-
this.
|
|
949
|
+
this.h1p_1 = this.g1p_1.j1o_1.kp();
|
|
950
|
+
if (this.g1p_1.n1o_1 > 0 && !(this.h1p_1 === this.g1p_1.g1o_1.m1(this.g1p_1.n1o_1))) {
|
|
951
|
+
var oldMatchIndex = this.g1p_1.n1o_1;
|
|
952
|
+
while (this.g1p_1.n1o_1 > 0 && !(this.h1p_1 === this.g1p_1.g1o_1.m1(this.g1p_1.n1o_1))) {
|
|
953
|
+
this.g1p_1.n1o_1 = this.g1p_1.k1o_1[this.g1p_1.n1o_1 - 1 | 0];
|
|
954
954
|
}
|
|
955
|
-
var retained = fromInt(oldMatchIndex - this.
|
|
956
|
-
checkBounds(this.
|
|
957
|
-
var tmp_0 = this.
|
|
958
|
-
var tmp_1 = this.
|
|
959
|
-
var tmp_2 = this.
|
|
960
|
-
tmp_0.
|
|
961
|
-
if (this.
|
|
955
|
+
var retained = fromInt(oldMatchIndex - this.g1p_1.n1o_1 | 0);
|
|
956
|
+
checkBounds(this.g1p_1, retained);
|
|
957
|
+
var tmp_0 = this.g1p_1;
|
|
958
|
+
var tmp_1 = this.g1p_1.m1o_1;
|
|
959
|
+
var tmp_2 = this.g1p_1.h1o_1.w1n();
|
|
960
|
+
tmp_0.m1o_1 = add(tmp_1, this.g1p_1.l1o_1.hq(tmp_2 instanceof Buffer ? tmp_2 : THROW_CCE(), retained));
|
|
961
|
+
if (this.g1p_1.n1o_1 === 0 && !(this.h1p_1 === this.g1p_1.g1o_1.m1(this.g1p_1.n1o_1))) {
|
|
962
962
|
this.a9_1 = 6;
|
|
963
|
-
suspendResult = writeByte(this.
|
|
963
|
+
suspendResult = writeByte(this.g1p_1.h1o_1, this.h1p_1, this);
|
|
964
964
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
965
965
|
return suspendResult;
|
|
966
966
|
}
|
|
@@ -978,17 +978,17 @@
|
|
|
978
978
|
this.a9_1 = 5;
|
|
979
979
|
continue $sm;
|
|
980
980
|
case 5:
|
|
981
|
-
this.
|
|
982
|
-
if (this.
|
|
981
|
+
this.g1p_1.n1o_1 = this.g1p_1.n1o_1 + 1 | 0;
|
|
982
|
+
if (this.g1p_1.n1o_1 === this.g1p_1.g1o_1.l1()) {
|
|
983
983
|
return true;
|
|
984
984
|
}
|
|
985
985
|
|
|
986
|
-
this.
|
|
986
|
+
this.g1p_1.l1o_1.ar(this.h1p_1);
|
|
987
987
|
this.a9_1 = 1;
|
|
988
988
|
continue $sm;
|
|
989
989
|
case 6:
|
|
990
|
-
var _unary__edvuaz = this.
|
|
991
|
-
this.
|
|
990
|
+
var _unary__edvuaz = this.g1p_1.m1o_1;
|
|
991
|
+
this.g1p_1.m1o_1 = add(_unary__edvuaz, get_ONE());
|
|
992
992
|
return false;
|
|
993
993
|
case 7:
|
|
994
994
|
return false;
|
|
@@ -1008,49 +1008,49 @@
|
|
|
1008
1008
|
};
|
|
1009
1009
|
function ByteChannelScanner(channel, matchString, writeChannel, limit) {
|
|
1010
1010
|
limit = limit === VOID ? 9223372036854775807n : limit;
|
|
1011
|
-
this.
|
|
1012
|
-
this.
|
|
1013
|
-
this.
|
|
1014
|
-
this.
|
|
1011
|
+
this.f1o_1 = channel;
|
|
1012
|
+
this.g1o_1 = matchString;
|
|
1013
|
+
this.h1o_1 = writeChannel;
|
|
1014
|
+
this.i1o_1 = limit;
|
|
1015
1015
|
// Inline function 'kotlin.require' call
|
|
1016
|
-
if (!(this.
|
|
1016
|
+
if (!(this.g1o_1.l1() > 0)) {
|
|
1017
1017
|
var message = 'Empty match string not permitted for scanning';
|
|
1018
1018
|
throw IllegalArgumentException_init_$Create$(toString_1(message));
|
|
1019
1019
|
}
|
|
1020
|
-
this.
|
|
1021
|
-
this.
|
|
1022
|
-
this.
|
|
1023
|
-
this.
|
|
1024
|
-
this.
|
|
1020
|
+
this.j1o_1 = this.f1o_1.t1n();
|
|
1021
|
+
this.k1o_1 = buildPartialMatchTable(this);
|
|
1022
|
+
this.l1o_1 = new Buffer();
|
|
1023
|
+
this.m1o_1 = 0n;
|
|
1024
|
+
this.n1o_1 = 0;
|
|
1025
1025
|
}
|
|
1026
|
-
protoOf(ByteChannelScanner).
|
|
1026
|
+
protoOf(ByteChannelScanner).u1p = function (ignoreMissing, $completion) {
|
|
1027
1027
|
var tmp = new $findNextCOROUTINE$(this, ignoreMissing, $completion);
|
|
1028
1028
|
tmp.c9_1 = Unit_instance;
|
|
1029
1029
|
tmp.d9_1 = null;
|
|
1030
1030
|
return tmp.i9();
|
|
1031
1031
|
};
|
|
1032
1032
|
function ByteReadChannel$Companion$Empty$1() {
|
|
1033
|
-
this.
|
|
1034
|
-
this.
|
|
1033
|
+
this.v1p_1 = null;
|
|
1034
|
+
this.w1p_1 = new Buffer();
|
|
1035
1035
|
}
|
|
1036
|
-
protoOf(ByteReadChannel$Companion$Empty$1).
|
|
1037
|
-
return this.
|
|
1036
|
+
protoOf(ByteReadChannel$Companion$Empty$1).y1n = function () {
|
|
1037
|
+
return this.v1p_1;
|
|
1038
1038
|
};
|
|
1039
|
-
protoOf(ByteReadChannel$Companion$Empty$1).
|
|
1039
|
+
protoOf(ByteReadChannel$Companion$Empty$1).a1o = function () {
|
|
1040
1040
|
return true;
|
|
1041
1041
|
};
|
|
1042
|
-
protoOf(ByteReadChannel$Companion$Empty$1).
|
|
1043
|
-
return this.
|
|
1042
|
+
protoOf(ByteReadChannel$Companion$Empty$1).t1n = function () {
|
|
1043
|
+
return this.w1p_1;
|
|
1044
1044
|
};
|
|
1045
|
-
protoOf(ByteReadChannel$Companion$Empty$1).
|
|
1045
|
+
protoOf(ByteReadChannel$Companion$Empty$1).b1o = function (min, $completion) {
|
|
1046
1046
|
return false;
|
|
1047
1047
|
};
|
|
1048
|
-
protoOf(ByteReadChannel$Companion$Empty$1).
|
|
1048
|
+
protoOf(ByteReadChannel$Companion$Empty$1).e1o = function (cause) {
|
|
1049
1049
|
};
|
|
1050
1050
|
function Companion_0() {
|
|
1051
1051
|
Companion_instance_1 = this;
|
|
1052
1052
|
var tmp = this;
|
|
1053
|
-
tmp.
|
|
1053
|
+
tmp.x1p_1 = new ByteReadChannel$Companion$Empty$1();
|
|
1054
1054
|
}
|
|
1055
1055
|
var Companion_instance_1;
|
|
1056
1056
|
function Companion_getInstance_0() {
|
|
@@ -1061,18 +1061,18 @@
|
|
|
1061
1061
|
function ByteReadChannel_1() {
|
|
1062
1062
|
}
|
|
1063
1063
|
function cancel_0(_this__u8e3s4) {
|
|
1064
|
-
_this__u8e3s4.
|
|
1064
|
+
_this__u8e3s4.e1o(IOException_init_$Create$('Channel was cancelled'));
|
|
1065
1065
|
}
|
|
1066
|
-
function
|
|
1067
|
-
|
|
1068
|
-
length = length === VOID ? buffer.length - offset | 0 : length;
|
|
1069
|
-
var tmp = new $readAvailableCOROUTINE$(_this__u8e3s4, buffer, offset, length, $completion);
|
|
1066
|
+
function readBuffer(_this__u8e3s4, $completion) {
|
|
1067
|
+
var tmp = new $readBufferCOROUTINE$(_this__u8e3s4, $completion);
|
|
1070
1068
|
tmp.c9_1 = Unit_instance;
|
|
1071
1069
|
tmp.d9_1 = null;
|
|
1072
1070
|
return tmp.i9();
|
|
1073
1071
|
}
|
|
1074
|
-
function
|
|
1075
|
-
|
|
1072
|
+
function readAvailable(_this__u8e3s4, buffer, offset, length, $completion) {
|
|
1073
|
+
offset = offset === VOID ? 0 : offset;
|
|
1074
|
+
length = length === VOID ? buffer.length - offset | 0 : length;
|
|
1075
|
+
var tmp = new $readAvailableCOROUTINE$(_this__u8e3s4, buffer, offset, length, $completion);
|
|
1076
1076
|
tmp.c9_1 = Unit_instance;
|
|
1077
1077
|
tmp.d9_1 = null;
|
|
1078
1078
|
return tmp.i9();
|
|
@@ -1089,8 +1089,8 @@
|
|
|
1089
1089
|
tmp.d9_1 = null;
|
|
1090
1090
|
return tmp.i9();
|
|
1091
1091
|
}
|
|
1092
|
-
function
|
|
1093
|
-
var tmp = new $copyToCOROUTINE$
|
|
1092
|
+
function copyTo(_this__u8e3s4, channel, limit, $completion) {
|
|
1093
|
+
var tmp = new $copyToCOROUTINE$(_this__u8e3s4, channel, limit, $completion);
|
|
1094
1094
|
tmp.c9_1 = Unit_instance;
|
|
1095
1095
|
tmp.d9_1 = null;
|
|
1096
1096
|
return tmp.i9();
|
|
@@ -1117,15 +1117,17 @@
|
|
|
1117
1117
|
function readUntil(_this__u8e3s4, matchString, writeChannel, limit, ignoreMissing, $completion) {
|
|
1118
1118
|
limit = limit === VOID ? 9223372036854775807n : limit;
|
|
1119
1119
|
ignoreMissing = ignoreMissing === VOID ? false : ignoreMissing;
|
|
1120
|
-
return (new ByteChannelScanner(_this__u8e3s4, matchString, writeChannel, limit)).
|
|
1120
|
+
return (new ByteChannelScanner(_this__u8e3s4, matchString, writeChannel, limit)).u1p(ignoreMissing, $completion);
|
|
1121
1121
|
}
|
|
1122
|
-
function
|
|
1123
|
-
|
|
1124
|
-
lineEnding = lineEnding === VOID ?
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
|
|
1122
|
+
function readLineStrictTo(_this__u8e3s4, out, limit, lineEnding, $completion) {
|
|
1123
|
+
limit = limit === VOID ? 9223372036854775807n : limit;
|
|
1124
|
+
lineEnding = lineEnding === VOID ? LineEnding_Default_getInstance() : lineEnding;
|
|
1125
|
+
// Inline function 'kotlin.require' call
|
|
1126
|
+
if (!(limit >= 0n)) {
|
|
1127
|
+
var message = 'Limit (' + limit.toString() + ') should be non-negative';
|
|
1128
|
+
throw IllegalArgumentException_init_$Create$(toString_1(message));
|
|
1129
|
+
}
|
|
1130
|
+
return internalReadLineTo(_this__u8e3s4, out, limit, lineEnding.equals(LineEnding_Lenient_getInstance()), true, $completion);
|
|
1129
1131
|
}
|
|
1130
1132
|
function readRemaining_0(_this__u8e3s4, max, $completion) {
|
|
1131
1133
|
var tmp = new $readRemainingCOROUTINE$_0(_this__u8e3s4, max, $completion);
|
|
@@ -1134,7 +1136,7 @@
|
|
|
1134
1136
|
return tmp.i9();
|
|
1135
1137
|
}
|
|
1136
1138
|
function rethrowCloseCauseIfNeeded(_this__u8e3s4) {
|
|
1137
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
1139
|
+
var tmp0_safe_receiver = _this__u8e3s4.y1n();
|
|
1138
1140
|
if (tmp0_safe_receiver == null)
|
|
1139
1141
|
null;
|
|
1140
1142
|
else {
|
|
@@ -1143,7 +1145,7 @@
|
|
|
1143
1145
|
}
|
|
1144
1146
|
}
|
|
1145
1147
|
function rethrowCloseCauseIfNeeded_0(_this__u8e3s4) {
|
|
1146
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
1148
|
+
var tmp0_safe_receiver = _this__u8e3s4.y1n();
|
|
1147
1149
|
if (tmp0_safe_receiver == null)
|
|
1148
1150
|
null;
|
|
1149
1151
|
else {
|
|
@@ -1151,14 +1153,8 @@
|
|
|
1151
1153
|
throw tmp0_safe_receiver;
|
|
1152
1154
|
}
|
|
1153
1155
|
}
|
|
1154
|
-
function readBuffer(_this__u8e3s4, $completion) {
|
|
1155
|
-
var tmp = new $readBufferCOROUTINE$(_this__u8e3s4, $completion);
|
|
1156
|
-
tmp.c9_1 = Unit_instance;
|
|
1157
|
-
tmp.d9_1 = null;
|
|
1158
|
-
return tmp.i9();
|
|
1159
|
-
}
|
|
1160
1156
|
function get_availableForRead(_this__u8e3s4) {
|
|
1161
|
-
return convertToInt(_this__u8e3s4.
|
|
1157
|
+
return convertToInt(_this__u8e3s4.t1n().gp().l1());
|
|
1162
1158
|
}
|
|
1163
1159
|
function peek(_this__u8e3s4, count, $completion) {
|
|
1164
1160
|
var tmp = new $peekCOROUTINE$(_this__u8e3s4, count, $completion);
|
|
@@ -1166,8 +1162,20 @@
|
|
|
1166
1162
|
tmp.d9_1 = null;
|
|
1167
1163
|
return tmp.i9();
|
|
1168
1164
|
}
|
|
1165
|
+
function internalReadLineTo(_this__u8e3s4, out, limit, lenientLineEnding, throwOnIncompleteLine, $completion) {
|
|
1166
|
+
var tmp = new $internalReadLineToCOROUTINE$(_this__u8e3s4, out, limit, lenientLineEnding, throwOnIncompleteLine, $completion);
|
|
1167
|
+
tmp.c9_1 = Unit_instance;
|
|
1168
|
+
tmp.d9_1 = null;
|
|
1169
|
+
return tmp.i9();
|
|
1170
|
+
}
|
|
1171
|
+
function throwEndOfStreamException(consumed) {
|
|
1172
|
+
throw EOFException_init_$Create$('Unexpected end of stream after reading ' + consumed.toString() + ' characters');
|
|
1173
|
+
}
|
|
1174
|
+
function throwTooLongLineException(limit) {
|
|
1175
|
+
throw new TooLongLineException('Line exceeds limit of ' + limit.toString() + ' characters');
|
|
1176
|
+
}
|
|
1169
1177
|
function rethrowCloseCauseIfNeeded_1(_this__u8e3s4) {
|
|
1170
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
1178
|
+
var tmp0_safe_receiver = _this__u8e3s4.y1n();
|
|
1171
1179
|
if (tmp0_safe_receiver == null)
|
|
1172
1180
|
null;
|
|
1173
1181
|
else {
|
|
@@ -1175,53 +1183,88 @@
|
|
|
1175
1183
|
throw tmp0_safe_receiver;
|
|
1176
1184
|
}
|
|
1177
1185
|
}
|
|
1178
|
-
function
|
|
1179
|
-
if (
|
|
1180
|
-
|
|
1186
|
+
function internalReadLineTo$transferString(readBuffer, $out, consumed, count) {
|
|
1187
|
+
if (count > 0n) {
|
|
1188
|
+
var string = readString(readBuffer, count);
|
|
1189
|
+
$out.k1(string);
|
|
1190
|
+
var tmp0 = consumed._v;
|
|
1191
|
+
// Inline function 'kotlin.Long.plus' call
|
|
1192
|
+
var other = string.length;
|
|
1193
|
+
consumed._v = add(tmp0, fromInt(other));
|
|
1181
1194
|
}
|
|
1182
1195
|
}
|
|
1183
|
-
function $
|
|
1196
|
+
function internalReadLineTo$scanForSoleCr(_this__u8e3s4, $lenientLineEnding, lfIndex, limitLeft) {
|
|
1197
|
+
if (!$lenientLineEnding)
|
|
1198
|
+
return -1n;
|
|
1199
|
+
var tmp;
|
|
1200
|
+
if (lfIndex === -1n) {
|
|
1201
|
+
// Inline function 'kotlin.Long.minus' call
|
|
1202
|
+
var this_0 = get_remaining(_this__u8e3s4);
|
|
1203
|
+
// Inline function 'kotlin.comparisons.minOf' call
|
|
1204
|
+
var b = subtract(this_0, fromInt(1));
|
|
1205
|
+
tmp = limitLeft <= b ? limitLeft : b;
|
|
1206
|
+
} else if (lfIndex === 0n) {
|
|
1207
|
+
tmp = 0n;
|
|
1208
|
+
} else {
|
|
1209
|
+
// Inline function 'kotlin.Long.minus' call
|
|
1210
|
+
tmp = subtract(lfIndex, fromInt(1));
|
|
1211
|
+
}
|
|
1212
|
+
var endIndex = tmp;
|
|
1213
|
+
return indexOf(_this__u8e3s4, 13, VOID, endIndex);
|
|
1214
|
+
}
|
|
1215
|
+
function internalReadLineTo$discardCrlfOrCr(_this__u8e3s4, $this_internalReadLineTo, $lenientLineEnding, $completion) {
|
|
1216
|
+
var tmp = new $internalReadLineTo$discardCrlfOrCrCOROUTINE$(_this__u8e3s4, $this_internalReadLineTo, $lenientLineEnding, $completion);
|
|
1217
|
+
tmp.c9_1 = Unit_instance;
|
|
1218
|
+
tmp.d9_1 = null;
|
|
1219
|
+
return tmp.i9();
|
|
1220
|
+
}
|
|
1221
|
+
function $readBufferCOROUTINE$(_this__u8e3s4, resultContinuation) {
|
|
1184
1222
|
CoroutineImpl.call(this, resultContinuation);
|
|
1185
|
-
this.
|
|
1186
|
-
this.i1n_1 = buffer;
|
|
1187
|
-
this.j1n_1 = offset;
|
|
1188
|
-
this.k1n_1 = length;
|
|
1223
|
+
this.g1q_1 = _this__u8e3s4;
|
|
1189
1224
|
}
|
|
1190
|
-
protoOf($
|
|
1225
|
+
protoOf($readBufferCOROUTINE$).i9 = function () {
|
|
1191
1226
|
var suspendResult = this.c9_1;
|
|
1192
1227
|
$sm: do
|
|
1193
1228
|
try {
|
|
1194
1229
|
var tmp = this.a9_1;
|
|
1195
1230
|
switch (tmp) {
|
|
1196
1231
|
case 0:
|
|
1197
|
-
this.b9_1 =
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
return suspendResult;
|
|
1205
|
-
}
|
|
1206
|
-
continue $sm;
|
|
1207
|
-
} else {
|
|
1208
|
-
this.a9_1 = 2;
|
|
1232
|
+
this.b9_1 = 4;
|
|
1233
|
+
this.h1q_1 = new Buffer();
|
|
1234
|
+
this.a9_1 = 1;
|
|
1235
|
+
continue $sm;
|
|
1236
|
+
case 1:
|
|
1237
|
+
if (!!this.g1q_1.a1o()) {
|
|
1238
|
+
this.a9_1 = 3;
|
|
1209
1239
|
continue $sm;
|
|
1210
1240
|
}
|
|
1211
1241
|
|
|
1212
|
-
|
|
1242
|
+
this.h1q_1.zq(this.g1q_1.t1n());
|
|
1213
1243
|
this.a9_1 = 2;
|
|
1244
|
+
suspendResult = this.g1q_1.c1o(VOID, this);
|
|
1245
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1246
|
+
return suspendResult;
|
|
1247
|
+
}
|
|
1248
|
+
|
|
1214
1249
|
continue $sm;
|
|
1215
1250
|
case 2:
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
return readAvailable_0(this.h1n_1.u1k(), this.i1n_1, this.j1n_1, this.k1n_1);
|
|
1251
|
+
this.a9_1 = 1;
|
|
1252
|
+
continue $sm;
|
|
1219
1253
|
case 3:
|
|
1254
|
+
var tmp0_safe_receiver = this.g1q_1.y1n();
|
|
1255
|
+
if (tmp0_safe_receiver == null)
|
|
1256
|
+
null;
|
|
1257
|
+
else {
|
|
1258
|
+
throw tmp0_safe_receiver;
|
|
1259
|
+
}
|
|
1260
|
+
|
|
1261
|
+
return this.h1q_1;
|
|
1262
|
+
case 4:
|
|
1220
1263
|
throw this.d9_1;
|
|
1221
1264
|
}
|
|
1222
1265
|
} catch ($p) {
|
|
1223
1266
|
var e = $p;
|
|
1224
|
-
if (this.b9_1 ===
|
|
1267
|
+
if (this.b9_1 === 4) {
|
|
1225
1268
|
throw e;
|
|
1226
1269
|
} else {
|
|
1227
1270
|
this.a9_1 = this.b9_1;
|
|
@@ -1230,97 +1273,48 @@
|
|
|
1230
1273
|
}
|
|
1231
1274
|
while (true);
|
|
1232
1275
|
};
|
|
1233
|
-
function $
|
|
1276
|
+
function $readAvailableCOROUTINE$(_this__u8e3s4, buffer, offset, length, resultContinuation) {
|
|
1234
1277
|
CoroutineImpl.call(this, resultContinuation);
|
|
1235
|
-
this.
|
|
1236
|
-
this.
|
|
1278
|
+
this.q1q_1 = _this__u8e3s4;
|
|
1279
|
+
this.r1q_1 = buffer;
|
|
1280
|
+
this.s1q_1 = offset;
|
|
1281
|
+
this.t1q_1 = length;
|
|
1237
1282
|
}
|
|
1238
|
-
protoOf($
|
|
1283
|
+
protoOf($readAvailableCOROUTINE$).i9 = function () {
|
|
1239
1284
|
var suspendResult = this.c9_1;
|
|
1240
1285
|
$sm: do
|
|
1241
1286
|
try {
|
|
1242
1287
|
var tmp = this.a9_1;
|
|
1243
1288
|
switch (tmp) {
|
|
1244
1289
|
case 0:
|
|
1245
|
-
this.b9_1 =
|
|
1246
|
-
this.
|
|
1247
|
-
|
|
1248
|
-
|
|
1249
|
-
|
|
1250
|
-
|
|
1251
|
-
|
|
1252
|
-
|
|
1253
|
-
|
|
1254
|
-
case 2:
|
|
1255
|
-
if (!!this.t1n_1.b1l()) {
|
|
1256
|
-
this.a9_1 = 5;
|
|
1290
|
+
this.b9_1 = 3;
|
|
1291
|
+
if (this.q1q_1.a1o())
|
|
1292
|
+
return -1;
|
|
1293
|
+
if (this.q1q_1.t1n().hp()) {
|
|
1294
|
+
this.a9_1 = 1;
|
|
1295
|
+
suspendResult = this.q1q_1.c1o(VOID, this);
|
|
1296
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1297
|
+
return suspendResult;
|
|
1298
|
+
}
|
|
1257
1299
|
continue $sm;
|
|
1258
|
-
}
|
|
1259
|
-
|
|
1260
|
-
this.v1n_1 = add(this.v1n_1, this.t1n_1.u1k().ep(this.u1n_1.x1k()));
|
|
1261
|
-
this.a9_1 = 3;
|
|
1262
|
-
suspendResult = this.u1n_1.s1k(this);
|
|
1263
|
-
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1264
|
-
return suspendResult;
|
|
1265
|
-
}
|
|
1266
|
-
|
|
1267
|
-
continue $sm;
|
|
1268
|
-
case 3:
|
|
1269
|
-
this.a9_1 = 4;
|
|
1270
|
-
suspendResult = this.t1n_1.d1l(VOID, this);
|
|
1271
|
-
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1272
|
-
return suspendResult;
|
|
1273
|
-
}
|
|
1274
|
-
|
|
1275
|
-
continue $sm;
|
|
1276
|
-
case 4:
|
|
1277
|
-
this.a9_1 = 2;
|
|
1278
|
-
continue $sm;
|
|
1279
|
-
case 5:
|
|
1280
|
-
this.b9_1 = 11;
|
|
1281
|
-
this.a9_1 = 9;
|
|
1282
|
-
continue $sm;
|
|
1283
|
-
case 6:
|
|
1284
|
-
this.b9_1 = 7;
|
|
1285
|
-
var tmp_0 = this.d9_1;
|
|
1286
|
-
if (tmp_0 instanceof Error) {
|
|
1287
|
-
var cause = this.d9_1;
|
|
1288
|
-
this.t1n_1.f1l(cause);
|
|
1289
|
-
close_0(this.u1n_1, cause);
|
|
1290
|
-
throw cause;
|
|
1291
1300
|
} else {
|
|
1292
|
-
|
|
1293
|
-
|
|
1294
|
-
|
|
1295
|
-
case 7:
|
|
1296
|
-
this.b9_1 = 11;
|
|
1297
|
-
this.w1n_1 = this.d9_1;
|
|
1298
|
-
this.a9_1 = 8;
|
|
1299
|
-
suspendResult = this.u1n_1.s1k(this);
|
|
1300
|
-
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1301
|
-
return suspendResult;
|
|
1302
|
-
}
|
|
1303
|
-
|
|
1304
|
-
continue $sm;
|
|
1305
|
-
case 8:
|
|
1306
|
-
throw this.w1n_1;
|
|
1307
|
-
case 9:
|
|
1308
|
-
this.b9_1 = 11;
|
|
1309
|
-
this.a9_1 = 10;
|
|
1310
|
-
suspendResult = this.u1n_1.s1k(this);
|
|
1311
|
-
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1312
|
-
return suspendResult;
|
|
1301
|
+
this.a9_1 = 2;
|
|
1302
|
+
continue $sm;
|
|
1313
1303
|
}
|
|
1314
1304
|
|
|
1305
|
+
case 1:
|
|
1306
|
+
this.a9_1 = 2;
|
|
1315
1307
|
continue $sm;
|
|
1316
|
-
case
|
|
1317
|
-
|
|
1318
|
-
|
|
1308
|
+
case 2:
|
|
1309
|
+
if (this.q1q_1.a1o())
|
|
1310
|
+
return -1;
|
|
1311
|
+
return readAvailable_0(this.q1q_1.t1n(), this.r1q_1, this.s1q_1, this.t1q_1);
|
|
1312
|
+
case 3:
|
|
1319
1313
|
throw this.d9_1;
|
|
1320
1314
|
}
|
|
1321
1315
|
} catch ($p) {
|
|
1322
1316
|
var e = $p;
|
|
1323
|
-
if (this.b9_1 ===
|
|
1317
|
+
if (this.b9_1 === 3) {
|
|
1324
1318
|
throw e;
|
|
1325
1319
|
} else {
|
|
1326
1320
|
this.a9_1 = this.b9_1;
|
|
@@ -1331,7 +1325,7 @@
|
|
|
1331
1325
|
};
|
|
1332
1326
|
function $readRemainingCOROUTINE$(_this__u8e3s4, resultContinuation) {
|
|
1333
1327
|
CoroutineImpl.call(this, resultContinuation);
|
|
1334
|
-
this.
|
|
1328
|
+
this.c1r_1 = _this__u8e3s4;
|
|
1335
1329
|
}
|
|
1336
1330
|
protoOf($readRemainingCOROUTINE$).i9 = function () {
|
|
1337
1331
|
var suspendResult = this.c9_1;
|
|
@@ -1341,18 +1335,18 @@
|
|
|
1341
1335
|
switch (tmp) {
|
|
1342
1336
|
case 0:
|
|
1343
1337
|
this.b9_1 = 4;
|
|
1344
|
-
this.
|
|
1338
|
+
this.d1r_1 = BytePacketBuilder();
|
|
1345
1339
|
this.a9_1 = 1;
|
|
1346
1340
|
continue $sm;
|
|
1347
1341
|
case 1:
|
|
1348
|
-
if (!!this.
|
|
1342
|
+
if (!!this.c1r_1.a1o()) {
|
|
1349
1343
|
this.a9_1 = 3;
|
|
1350
1344
|
continue $sm;
|
|
1351
1345
|
}
|
|
1352
1346
|
|
|
1353
|
-
this.
|
|
1347
|
+
this.d1r_1.zq(this.c1r_1.t1n());
|
|
1354
1348
|
this.a9_1 = 2;
|
|
1355
|
-
suspendResult = this.
|
|
1349
|
+
suspendResult = this.c1r_1.c1o(VOID, this);
|
|
1356
1350
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1357
1351
|
return suspendResult;
|
|
1358
1352
|
}
|
|
@@ -1362,8 +1356,8 @@
|
|
|
1362
1356
|
this.a9_1 = 1;
|
|
1363
1357
|
continue $sm;
|
|
1364
1358
|
case 3:
|
|
1365
|
-
rethrowCloseCauseIfNeeded_0(this.
|
|
1366
|
-
return this.
|
|
1359
|
+
rethrowCloseCauseIfNeeded_0(this.c1r_1);
|
|
1360
|
+
return this.d1r_1.gp();
|
|
1367
1361
|
case 4:
|
|
1368
1362
|
throw this.d9_1;
|
|
1369
1363
|
}
|
|
@@ -1380,7 +1374,7 @@
|
|
|
1380
1374
|
};
|
|
1381
1375
|
function $toByteArrayCOROUTINE$(_this__u8e3s4, resultContinuation) {
|
|
1382
1376
|
CoroutineImpl.call(this, resultContinuation);
|
|
1383
|
-
this.
|
|
1377
|
+
this.m1r_1 = _this__u8e3s4;
|
|
1384
1378
|
}
|
|
1385
1379
|
protoOf($toByteArrayCOROUTINE$).i9 = function () {
|
|
1386
1380
|
var suspendResult = this.c9_1;
|
|
@@ -1391,7 +1385,7 @@
|
|
|
1391
1385
|
case 0:
|
|
1392
1386
|
this.b9_1 = 2;
|
|
1393
1387
|
this.a9_1 = 1;
|
|
1394
|
-
suspendResult = readBuffer(this.
|
|
1388
|
+
suspendResult = readBuffer(this.m1r_1, this);
|
|
1395
1389
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1396
1390
|
return suspendResult;
|
|
1397
1391
|
}
|
|
@@ -1414,13 +1408,13 @@
|
|
|
1414
1408
|
}
|
|
1415
1409
|
while (true);
|
|
1416
1410
|
};
|
|
1417
|
-
function $copyToCOROUTINE$
|
|
1411
|
+
function $copyToCOROUTINE$(_this__u8e3s4, channel, limit, resultContinuation) {
|
|
1418
1412
|
CoroutineImpl.call(this, resultContinuation);
|
|
1419
|
-
this.
|
|
1420
|
-
this.
|
|
1421
|
-
this.
|
|
1413
|
+
this.v1r_1 = _this__u8e3s4;
|
|
1414
|
+
this.w1r_1 = channel;
|
|
1415
|
+
this.x1r_1 = limit;
|
|
1422
1416
|
}
|
|
1423
|
-
protoOf($copyToCOROUTINE$
|
|
1417
|
+
protoOf($copyToCOROUTINE$).i9 = function () {
|
|
1424
1418
|
var suspendResult = this.c9_1;
|
|
1425
1419
|
$sm: do
|
|
1426
1420
|
try {
|
|
@@ -1428,7 +1422,7 @@
|
|
|
1428
1422
|
switch (tmp) {
|
|
1429
1423
|
case 0:
|
|
1430
1424
|
this.b9_1 = 12;
|
|
1431
|
-
this.
|
|
1425
|
+
this.y1r_1 = this.x1r_1;
|
|
1432
1426
|
this.a9_1 = 1;
|
|
1433
1427
|
continue $sm;
|
|
1434
1428
|
case 1:
|
|
@@ -1437,14 +1431,14 @@
|
|
|
1437
1431
|
this.a9_1 = 2;
|
|
1438
1432
|
continue $sm;
|
|
1439
1433
|
case 2:
|
|
1440
|
-
if (!(!this.
|
|
1434
|
+
if (!(!this.v1r_1.a1o() && this.y1r_1 > 0n)) {
|
|
1441
1435
|
this.a9_1 = 6;
|
|
1442
1436
|
continue $sm;
|
|
1443
1437
|
}
|
|
1444
1438
|
|
|
1445
|
-
if (this.
|
|
1439
|
+
if (this.v1r_1.t1n().hp()) {
|
|
1446
1440
|
this.a9_1 = 3;
|
|
1447
|
-
suspendResult = this.
|
|
1441
|
+
suspendResult = this.v1r_1.c1o(VOID, this);
|
|
1448
1442
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1449
1443
|
return suspendResult;
|
|
1450
1444
|
}
|
|
@@ -1458,13 +1452,13 @@
|
|
|
1458
1452
|
this.a9_1 = 4;
|
|
1459
1453
|
continue $sm;
|
|
1460
1454
|
case 4:
|
|
1461
|
-
var tmp0 = this.
|
|
1462
|
-
var b = get_remaining(this.
|
|
1455
|
+
var tmp0 = this.y1r_1;
|
|
1456
|
+
var b = get_remaining(this.v1r_1.t1n());
|
|
1463
1457
|
var count = tmp0 <= b ? tmp0 : b;
|
|
1464
|
-
this.
|
|
1465
|
-
this.
|
|
1458
|
+
this.v1r_1.t1n().jq(this.w1r_1.w1n(), count);
|
|
1459
|
+
this.y1r_1 = subtract(this.y1r_1, count);
|
|
1466
1460
|
this.a9_1 = 5;
|
|
1467
|
-
suspendResult = this.
|
|
1461
|
+
suspendResult = this.w1r_1.r1n(this);
|
|
1468
1462
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1469
1463
|
return suspendResult;
|
|
1470
1464
|
}
|
|
@@ -1482,8 +1476,8 @@
|
|
|
1482
1476
|
var tmp_0 = this.d9_1;
|
|
1483
1477
|
if (tmp_0 instanceof Error) {
|
|
1484
1478
|
var cause = this.d9_1;
|
|
1485
|
-
this.
|
|
1486
|
-
close_0(this.
|
|
1479
|
+
this.v1r_1.e1o(cause);
|
|
1480
|
+
close_0(this.w1r_1, cause);
|
|
1487
1481
|
throw cause;
|
|
1488
1482
|
} else {
|
|
1489
1483
|
throw this.d9_1;
|
|
@@ -1491,27 +1485,27 @@
|
|
|
1491
1485
|
|
|
1492
1486
|
case 8:
|
|
1493
1487
|
this.b9_1 = 12;
|
|
1494
|
-
this.
|
|
1488
|
+
this.z1r_1 = this.d9_1;
|
|
1495
1489
|
this.a9_1 = 9;
|
|
1496
|
-
suspendResult = this.
|
|
1490
|
+
suspendResult = this.w1r_1.r1n(this);
|
|
1497
1491
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1498
1492
|
return suspendResult;
|
|
1499
1493
|
}
|
|
1500
1494
|
|
|
1501
1495
|
continue $sm;
|
|
1502
1496
|
case 9:
|
|
1503
|
-
throw this.
|
|
1497
|
+
throw this.z1r_1;
|
|
1504
1498
|
case 10:
|
|
1505
1499
|
this.b9_1 = 12;
|
|
1506
1500
|
this.a9_1 = 11;
|
|
1507
|
-
suspendResult = this.
|
|
1501
|
+
suspendResult = this.w1r_1.r1n(this);
|
|
1508
1502
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1509
1503
|
return suspendResult;
|
|
1510
1504
|
}
|
|
1511
1505
|
|
|
1512
1506
|
continue $sm;
|
|
1513
1507
|
case 11:
|
|
1514
|
-
return subtract(this.
|
|
1508
|
+
return subtract(this.x1r_1, this.y1r_1);
|
|
1515
1509
|
case 12:
|
|
1516
1510
|
throw this.d9_1;
|
|
1517
1511
|
}
|
|
@@ -1528,8 +1522,8 @@
|
|
|
1528
1522
|
};
|
|
1529
1523
|
function $discardCOROUTINE$(_this__u8e3s4, max, resultContinuation) {
|
|
1530
1524
|
CoroutineImpl.call(this, resultContinuation);
|
|
1531
|
-
this.
|
|
1532
|
-
this.
|
|
1525
|
+
this.i1s_1 = _this__u8e3s4;
|
|
1526
|
+
this.j1s_1 = max;
|
|
1533
1527
|
}
|
|
1534
1528
|
protoOf($discardCOROUTINE$).i9 = function () {
|
|
1535
1529
|
var suspendResult = this.c9_1;
|
|
@@ -1539,18 +1533,18 @@
|
|
|
1539
1533
|
switch (tmp) {
|
|
1540
1534
|
case 0:
|
|
1541
1535
|
this.b9_1 = 5;
|
|
1542
|
-
this.
|
|
1536
|
+
this.k1s_1 = this.j1s_1;
|
|
1543
1537
|
this.a9_1 = 1;
|
|
1544
1538
|
continue $sm;
|
|
1545
1539
|
case 1:
|
|
1546
|
-
if (!(this.
|
|
1540
|
+
if (!(this.k1s_1 > 0n && !this.i1s_1.a1o())) {
|
|
1547
1541
|
this.a9_1 = 4;
|
|
1548
1542
|
continue $sm;
|
|
1549
1543
|
}
|
|
1550
1544
|
|
|
1551
|
-
if (get_availableForRead(this.
|
|
1545
|
+
if (get_availableForRead(this.i1s_1) === 0) {
|
|
1552
1546
|
this.a9_1 = 2;
|
|
1553
|
-
suspendResult = this.
|
|
1547
|
+
suspendResult = this.i1s_1.c1o(VOID, this);
|
|
1554
1548
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1555
1549
|
return suspendResult;
|
|
1556
1550
|
}
|
|
@@ -1564,15 +1558,15 @@
|
|
|
1564
1558
|
this.a9_1 = 3;
|
|
1565
1559
|
continue $sm;
|
|
1566
1560
|
case 3:
|
|
1567
|
-
var tmp0 = this.
|
|
1568
|
-
var b = get_remaining(this.
|
|
1561
|
+
var tmp0 = this.k1s_1;
|
|
1562
|
+
var b = get_remaining(this.i1s_1.t1n());
|
|
1569
1563
|
var count = tmp0 <= b ? tmp0 : b;
|
|
1570
|
-
discard_0(this.
|
|
1571
|
-
this.
|
|
1564
|
+
discard_0(this.i1s_1.t1n(), count);
|
|
1565
|
+
this.k1s_1 = subtract(this.k1s_1, count);
|
|
1572
1566
|
this.a9_1 = 1;
|
|
1573
1567
|
continue $sm;
|
|
1574
1568
|
case 4:
|
|
1575
|
-
return subtract(this.
|
|
1569
|
+
return subtract(this.j1s_1, this.k1s_1);
|
|
1576
1570
|
case 5:
|
|
1577
1571
|
throw this.d9_1;
|
|
1578
1572
|
}
|
|
@@ -1589,8 +1583,8 @@
|
|
|
1589
1583
|
};
|
|
1590
1584
|
function $skipIfFoundCOROUTINE$(_this__u8e3s4, byteString, resultContinuation) {
|
|
1591
1585
|
CoroutineImpl.call(this, resultContinuation);
|
|
1592
|
-
this.
|
|
1593
|
-
this.
|
|
1586
|
+
this.t1s_1 = _this__u8e3s4;
|
|
1587
|
+
this.u1s_1 = byteString;
|
|
1594
1588
|
}
|
|
1595
1589
|
protoOf($skipIfFoundCOROUTINE$).i9 = function () {
|
|
1596
1590
|
var suspendResult = this.c9_1;
|
|
@@ -1601,7 +1595,7 @@
|
|
|
1601
1595
|
case 0:
|
|
1602
1596
|
this.b9_1 = 4;
|
|
1603
1597
|
this.a9_1 = 1;
|
|
1604
|
-
suspendResult = peek(this.
|
|
1598
|
+
suspendResult = peek(this.t1s_1, this.u1s_1.l1(), this);
|
|
1605
1599
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1606
1600
|
return suspendResult;
|
|
1607
1601
|
}
|
|
@@ -1609,9 +1603,9 @@
|
|
|
1609
1603
|
continue $sm;
|
|
1610
1604
|
case 1:
|
|
1611
1605
|
var ARGUMENT = suspendResult;
|
|
1612
|
-
if (equals(ARGUMENT, this.
|
|
1606
|
+
if (equals(ARGUMENT, this.u1s_1)) {
|
|
1613
1607
|
this.a9_1 = 3;
|
|
1614
|
-
suspendResult = discard(this.
|
|
1608
|
+
suspendResult = discard(this.t1s_1, fromInt(this.u1s_1.l1()), this);
|
|
1615
1609
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1616
1610
|
return suspendResult;
|
|
1617
1611
|
}
|
|
@@ -1641,8 +1635,8 @@
|
|
|
1641
1635
|
};
|
|
1642
1636
|
function $readPacketCOROUTINE$(_this__u8e3s4, packet, resultContinuation) {
|
|
1643
1637
|
CoroutineImpl.call(this, resultContinuation);
|
|
1644
|
-
this.
|
|
1645
|
-
this.
|
|
1638
|
+
this.d1t_1 = _this__u8e3s4;
|
|
1639
|
+
this.e1t_1 = packet;
|
|
1646
1640
|
}
|
|
1647
1641
|
protoOf($readPacketCOROUTINE$).i9 = function () {
|
|
1648
1642
|
var suspendResult = this.c9_1;
|
|
@@ -1652,18 +1646,18 @@
|
|
|
1652
1646
|
switch (tmp) {
|
|
1653
1647
|
case 0:
|
|
1654
1648
|
this.b9_1 = 6;
|
|
1655
|
-
this.
|
|
1649
|
+
this.f1t_1 = new Buffer();
|
|
1656
1650
|
this.a9_1 = 1;
|
|
1657
1651
|
continue $sm;
|
|
1658
1652
|
case 1:
|
|
1659
|
-
if (!(this.
|
|
1653
|
+
if (!(this.f1t_1.l1() < fromInt(this.e1t_1))) {
|
|
1660
1654
|
this.a9_1 = 5;
|
|
1661
1655
|
continue $sm;
|
|
1662
1656
|
}
|
|
1663
1657
|
|
|
1664
|
-
if (this.
|
|
1658
|
+
if (this.d1t_1.t1n().hp()) {
|
|
1665
1659
|
this.a9_1 = 2;
|
|
1666
|
-
suspendResult = this.
|
|
1660
|
+
suspendResult = this.d1t_1.c1o(VOID, this);
|
|
1667
1661
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1668
1662
|
return suspendResult;
|
|
1669
1663
|
}
|
|
@@ -1677,7 +1671,7 @@
|
|
|
1677
1671
|
this.a9_1 = 3;
|
|
1678
1672
|
continue $sm;
|
|
1679
1673
|
case 3:
|
|
1680
|
-
if (this.
|
|
1674
|
+
if (this.d1t_1.a1o()) {
|
|
1681
1675
|
this.a9_1 = 5;
|
|
1682
1676
|
continue $sm;
|
|
1683
1677
|
} else {
|
|
@@ -1686,20 +1680,20 @@
|
|
|
1686
1680
|
}
|
|
1687
1681
|
|
|
1688
1682
|
case 4:
|
|
1689
|
-
if (get_remaining(this.
|
|
1690
|
-
this.
|
|
1683
|
+
if (get_remaining(this.d1t_1.t1n()) > subtract(numberToLong(this.e1t_1), this.f1t_1.l1())) {
|
|
1684
|
+
this.d1t_1.t1n().jq(this.f1t_1, subtract(numberToLong(this.e1t_1), this.f1t_1.l1()));
|
|
1691
1685
|
} else {
|
|
1692
|
-
this.
|
|
1686
|
+
this.d1t_1.t1n().kq(this.f1t_1);
|
|
1693
1687
|
}
|
|
1694
1688
|
|
|
1695
1689
|
this.a9_1 = 1;
|
|
1696
1690
|
continue $sm;
|
|
1697
1691
|
case 5:
|
|
1698
|
-
if (this.
|
|
1699
|
-
throw EOFException_init_$Create$('Not enough data available, required ' + this.
|
|
1692
|
+
if (this.f1t_1.l1() < fromInt(this.e1t_1)) {
|
|
1693
|
+
throw EOFException_init_$Create$('Not enough data available, required ' + this.e1t_1 + ' bytes but only ' + this.f1t_1.l1().toString() + ' available');
|
|
1700
1694
|
}
|
|
1701
1695
|
|
|
1702
|
-
return this.
|
|
1696
|
+
return this.f1t_1;
|
|
1703
1697
|
case 6:
|
|
1704
1698
|
throw this.d9_1;
|
|
1705
1699
|
}
|
|
@@ -1714,251 +1708,101 @@
|
|
|
1714
1708
|
}
|
|
1715
1709
|
while (true);
|
|
1716
1710
|
};
|
|
1717
|
-
function $
|
|
1711
|
+
function $readRemainingCOROUTINE$_0(_this__u8e3s4, max, resultContinuation) {
|
|
1718
1712
|
CoroutineImpl.call(this, resultContinuation);
|
|
1719
|
-
this.
|
|
1720
|
-
this.
|
|
1721
|
-
this.y1q_1 = max;
|
|
1722
|
-
this.z1q_1 = lineEnding;
|
|
1713
|
+
this.o1t_1 = _this__u8e3s4;
|
|
1714
|
+
this.p1t_1 = max;
|
|
1723
1715
|
}
|
|
1724
|
-
protoOf($
|
|
1716
|
+
protoOf($readRemainingCOROUTINE$_0).i9 = function () {
|
|
1725
1717
|
var suspendResult = this.c9_1;
|
|
1726
1718
|
$sm: do
|
|
1727
1719
|
try {
|
|
1728
1720
|
var tmp = this.a9_1;
|
|
1729
1721
|
switch (tmp) {
|
|
1730
1722
|
case 0:
|
|
1731
|
-
this.b9_1 =
|
|
1732
|
-
|
|
1733
|
-
|
|
1734
|
-
|
|
1735
|
-
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1736
|
-
return suspendResult;
|
|
1737
|
-
}
|
|
1738
|
-
continue $sm;
|
|
1739
|
-
} else {
|
|
1740
|
-
this.a9_1 = 2;
|
|
1741
|
-
continue $sm;
|
|
1742
|
-
}
|
|
1743
|
-
|
|
1744
|
-
case 1:
|
|
1745
|
-
this.a9_1 = 2;
|
|
1746
|
-
continue $sm;
|
|
1747
|
-
case 2:
|
|
1748
|
-
if (this.w1q_1.b1l())
|
|
1749
|
-
return false;
|
|
1750
|
-
this.f1r_1 = new Buffer();
|
|
1751
|
-
this.a9_1 = 3;
|
|
1752
|
-
continue $sm;
|
|
1753
|
-
case 3:
|
|
1754
|
-
this.c1r_1 = this.f1r_1;
|
|
1755
|
-
this.b1r_1 = null;
|
|
1756
|
-
this.a9_1 = 4;
|
|
1757
|
-
continue $sm;
|
|
1758
|
-
case 4:
|
|
1759
|
-
this.a9_1 = 5;
|
|
1760
|
-
continue $sm;
|
|
1761
|
-
case 5:
|
|
1762
|
-
this.a9_1 = 6;
|
|
1763
|
-
continue $sm;
|
|
1764
|
-
case 6:
|
|
1765
|
-
this.b9_1 = 18;
|
|
1766
|
-
this.b9_1 = 17;
|
|
1767
|
-
this.e1r_1 = this.c1r_1;
|
|
1768
|
-
this.a9_1 = 7;
|
|
1769
|
-
continue $sm;
|
|
1770
|
-
case 7:
|
|
1771
|
-
if (!!this.w1q_1.b1l()) {
|
|
1772
|
-
this.a9_1 = 14;
|
|
1773
|
-
continue $sm;
|
|
1774
|
-
}
|
|
1775
|
-
|
|
1776
|
-
this.a9_1 = 8;
|
|
1723
|
+
this.b9_1 = 4;
|
|
1724
|
+
this.q1t_1 = BytePacketBuilder();
|
|
1725
|
+
this.r1t_1 = this.p1t_1;
|
|
1726
|
+
this.a9_1 = 1;
|
|
1777
1727
|
continue $sm;
|
|
1778
|
-
case
|
|
1779
|
-
if (
|
|
1780
|
-
this.a9_1 =
|
|
1728
|
+
case 1:
|
|
1729
|
+
if (!(!this.o1t_1.a1o() && this.r1t_1 > 0n)) {
|
|
1730
|
+
this.a9_1 = 3;
|
|
1781
1731
|
continue $sm;
|
|
1782
1732
|
}
|
|
1783
1733
|
|
|
1784
|
-
|
|
1785
|
-
|
|
1786
|
-
|
|
1787
|
-
this.a9_1 = 10;
|
|
1788
|
-
suspendResult = this.w1q_1.d1l(VOID, this);
|
|
1789
|
-
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1790
|
-
return suspendResult;
|
|
1791
|
-
}
|
|
1792
|
-
continue $sm;
|
|
1793
|
-
} else {
|
|
1794
|
-
this.a9_1 = 11;
|
|
1795
|
-
continue $sm;
|
|
1796
|
-
}
|
|
1734
|
+
if (this.r1t_1 >= get_remaining(this.o1t_1.t1n())) {
|
|
1735
|
+
this.r1t_1 = subtract(this.r1t_1, get_remaining(this.o1t_1.t1n()));
|
|
1736
|
+
this.o1t_1.t1n().kq(this.q1t_1);
|
|
1797
1737
|
} else {
|
|
1798
|
-
|
|
1799
|
-
|
|
1800
|
-
this.x1q_1.k1(readString(this.e1r_1));
|
|
1801
|
-
this.d1r_1 = true;
|
|
1802
|
-
this.b9_1 = 21;
|
|
1803
|
-
this.a9_1 = 15;
|
|
1804
|
-
continue $sm;
|
|
1805
|
-
} else {
|
|
1806
|
-
this.e1r_1.up(b);
|
|
1807
|
-
this.a9_1 = 9;
|
|
1808
|
-
continue $sm;
|
|
1809
|
-
}
|
|
1810
|
-
}
|
|
1811
|
-
|
|
1812
|
-
case 9:
|
|
1813
|
-
this.a9_1 = 8;
|
|
1814
|
-
continue $sm;
|
|
1815
|
-
case 10:
|
|
1816
|
-
this.a9_1 = 11;
|
|
1817
|
-
continue $sm;
|
|
1818
|
-
case 11:
|
|
1819
|
-
if (this.w1q_1.u1k().ao().wo(0n) === 10) {
|
|
1820
|
-
readUTF8LineTo$checkLineEndingAllowed(this.z1q_1, Companion_getInstance_1().l1q_1);
|
|
1821
|
-
discard_0(this.w1q_1.u1k(), 1n);
|
|
1822
|
-
} else {
|
|
1823
|
-
readUTF8LineTo$checkLineEndingAllowed(this.z1q_1, Companion_getInstance_1().j1q_1);
|
|
1824
|
-
}
|
|
1825
|
-
|
|
1826
|
-
this.x1q_1.k1(readString(this.e1r_1));
|
|
1827
|
-
this.d1r_1 = true;
|
|
1828
|
-
this.b9_1 = 21;
|
|
1829
|
-
this.a9_1 = 15;
|
|
1830
|
-
continue $sm;
|
|
1831
|
-
case 12:
|
|
1832
|
-
if (this.e1r_1.l1() >= fromInt(this.y1q_1)) {
|
|
1833
|
-
throw new TooLongLineException('Line exceeds limit of ' + this.y1q_1 + ' characters');
|
|
1738
|
+
this.o1t_1.t1n().jq(this.q1t_1, this.r1t_1);
|
|
1739
|
+
this.r1t_1 = 0n;
|
|
1834
1740
|
}
|
|
1835
1741
|
|
|
1836
|
-
this.a9_1 =
|
|
1837
|
-
suspendResult = this.
|
|
1742
|
+
this.a9_1 = 2;
|
|
1743
|
+
suspendResult = this.o1t_1.c1o(VOID, this);
|
|
1838
1744
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1839
1745
|
return suspendResult;
|
|
1840
1746
|
}
|
|
1841
1747
|
|
|
1842
1748
|
continue $sm;
|
|
1843
|
-
case
|
|
1844
|
-
this.a9_1 =
|
|
1845
|
-
continue $sm;
|
|
1846
|
-
case 14:
|
|
1847
|
-
var tmp_0 = this;
|
|
1848
|
-
var this_0 = this.e1r_1.l1() > 0n;
|
|
1849
|
-
if (this_0) {
|
|
1850
|
-
this.x1q_1.k1(readString(this.e1r_1));
|
|
1851
|
-
}
|
|
1852
|
-
|
|
1853
|
-
tmp_0.d1r_1 = this_0;
|
|
1854
|
-
this.b9_1 = 21;
|
|
1855
|
-
this.a9_1 = 15;
|
|
1856
|
-
var tmp_1 = this;
|
|
1857
|
-
continue $sm;
|
|
1858
|
-
case 15:
|
|
1859
|
-
var tmp_2 = this.d1r_1;
|
|
1860
|
-
this.b9_1 = 21;
|
|
1861
|
-
closeFinally(this.c1r_1, this.b1r_1);
|
|
1862
|
-
return tmp_2;
|
|
1863
|
-
case 16:
|
|
1864
|
-
this.b9_1 = 21;
|
|
1865
|
-
var tmp_3 = this;
|
|
1866
|
-
closeFinally(this.c1r_1, this.b1r_1);
|
|
1867
|
-
tmp_3.a1r_1 = Unit_instance;
|
|
1868
|
-
this.a9_1 = 20;
|
|
1869
|
-
continue $sm;
|
|
1870
|
-
case 17:
|
|
1871
|
-
this.b9_1 = 18;
|
|
1872
|
-
var tmp_4 = this.d9_1;
|
|
1873
|
-
if (tmp_4 instanceof Error) {
|
|
1874
|
-
var e = this.d9_1;
|
|
1875
|
-
var tmp_5 = this;
|
|
1876
|
-
this.b1r_1 = e;
|
|
1877
|
-
throw e;
|
|
1878
|
-
} else {
|
|
1879
|
-
throw this.d9_1;
|
|
1880
|
-
}
|
|
1881
|
-
|
|
1882
|
-
case 18:
|
|
1883
|
-
this.b9_1 = 21;
|
|
1884
|
-
var t = this.d9_1;
|
|
1885
|
-
closeFinally(this.c1r_1, this.b1r_1);
|
|
1886
|
-
throw t;
|
|
1887
|
-
case 19:
|
|
1888
|
-
this.b9_1 = 21;
|
|
1889
|
-
closeFinally(this.c1r_1, this.b1r_1);
|
|
1890
|
-
if (false) {
|
|
1891
|
-
this.a9_1 = 3;
|
|
1892
|
-
continue $sm;
|
|
1893
|
-
}
|
|
1894
|
-
|
|
1895
|
-
this.a9_1 = 20;
|
|
1749
|
+
case 2:
|
|
1750
|
+
this.a9_1 = 1;
|
|
1896
1751
|
continue $sm;
|
|
1897
|
-
case
|
|
1898
|
-
return
|
|
1899
|
-
case
|
|
1752
|
+
case 3:
|
|
1753
|
+
return this.q1t_1.gp();
|
|
1754
|
+
case 4:
|
|
1900
1755
|
throw this.d9_1;
|
|
1901
1756
|
}
|
|
1902
1757
|
} catch ($p) {
|
|
1903
|
-
var
|
|
1904
|
-
if (this.b9_1 ===
|
|
1905
|
-
throw
|
|
1758
|
+
var e = $p;
|
|
1759
|
+
if (this.b9_1 === 4) {
|
|
1760
|
+
throw e;
|
|
1906
1761
|
} else {
|
|
1907
1762
|
this.a9_1 = this.b9_1;
|
|
1908
|
-
this.d9_1 =
|
|
1763
|
+
this.d9_1 = e;
|
|
1909
1764
|
}
|
|
1910
1765
|
}
|
|
1911
1766
|
while (true);
|
|
1912
1767
|
};
|
|
1913
|
-
function $
|
|
1768
|
+
function $peekCOROUTINE$(_this__u8e3s4, count, resultContinuation) {
|
|
1914
1769
|
CoroutineImpl.call(this, resultContinuation);
|
|
1915
|
-
this.
|
|
1916
|
-
this.
|
|
1770
|
+
this.a1u_1 = _this__u8e3s4;
|
|
1771
|
+
this.b1u_1 = count;
|
|
1917
1772
|
}
|
|
1918
|
-
protoOf($
|
|
1773
|
+
protoOf($peekCOROUTINE$).i9 = function () {
|
|
1919
1774
|
var suspendResult = this.c9_1;
|
|
1920
1775
|
$sm: do
|
|
1921
1776
|
try {
|
|
1922
1777
|
var tmp = this.a9_1;
|
|
1923
1778
|
switch (tmp) {
|
|
1924
1779
|
case 0:
|
|
1925
|
-
this.b9_1 =
|
|
1926
|
-
this.
|
|
1927
|
-
|
|
1780
|
+
this.b9_1 = 3;
|
|
1781
|
+
if (this.a1u_1.a1o())
|
|
1782
|
+
return null;
|
|
1928
1783
|
this.a9_1 = 1;
|
|
1929
|
-
|
|
1930
|
-
case 1:
|
|
1931
|
-
if (!(!this.o1r_1.b1l() && this.r1r_1 > 0n)) {
|
|
1932
|
-
this.a9_1 = 3;
|
|
1933
|
-
continue $sm;
|
|
1934
|
-
}
|
|
1935
|
-
|
|
1936
|
-
if (this.r1r_1 >= get_remaining(this.o1r_1.u1k())) {
|
|
1937
|
-
this.r1r_1 = subtract(this.r1r_1, get_remaining(this.o1r_1.u1k()));
|
|
1938
|
-
this.o1r_1.u1k().ep(this.q1r_1);
|
|
1939
|
-
} else {
|
|
1940
|
-
this.o1r_1.u1k().dp(this.q1r_1, this.r1r_1);
|
|
1941
|
-
this.r1r_1 = 0n;
|
|
1942
|
-
}
|
|
1943
|
-
|
|
1944
|
-
this.a9_1 = 2;
|
|
1945
|
-
suspendResult = this.o1r_1.d1l(VOID, this);
|
|
1784
|
+
suspendResult = this.a1u_1.b1o(this.b1u_1, this);
|
|
1946
1785
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1947
1786
|
return suspendResult;
|
|
1948
1787
|
}
|
|
1949
1788
|
|
|
1950
1789
|
continue $sm;
|
|
1790
|
+
case 1:
|
|
1791
|
+
if (!suspendResult) {
|
|
1792
|
+
return null;
|
|
1793
|
+
} else {
|
|
1794
|
+
this.a9_1 = 2;
|
|
1795
|
+
continue $sm;
|
|
1796
|
+
}
|
|
1797
|
+
|
|
1951
1798
|
case 2:
|
|
1952
|
-
this.
|
|
1953
|
-
continue $sm;
|
|
1799
|
+
return readByteString(this.a1u_1.t1n().lq(), this.b1u_1);
|
|
1954
1800
|
case 3:
|
|
1955
|
-
return this.q1r_1.ao();
|
|
1956
|
-
case 4:
|
|
1957
1801
|
throw this.d9_1;
|
|
1958
1802
|
}
|
|
1959
1803
|
} catch ($p) {
|
|
1960
1804
|
var e = $p;
|
|
1961
|
-
if (this.b9_1 ===
|
|
1805
|
+
if (this.b9_1 === 3) {
|
|
1962
1806
|
throw e;
|
|
1963
1807
|
} else {
|
|
1964
1808
|
this.a9_1 = this.b9_1;
|
|
@@ -1967,53 +1811,223 @@
|
|
|
1967
1811
|
}
|
|
1968
1812
|
while (true);
|
|
1969
1813
|
};
|
|
1970
|
-
function $
|
|
1814
|
+
function $internalReadLineToCOROUTINE$(_this__u8e3s4, out, limit, lenientLineEnding, throwOnIncompleteLine, resultContinuation) {
|
|
1971
1815
|
CoroutineImpl.call(this, resultContinuation);
|
|
1972
|
-
this.
|
|
1816
|
+
this.k1u_1 = _this__u8e3s4;
|
|
1817
|
+
this.l1u_1 = out;
|
|
1818
|
+
this.m1u_1 = limit;
|
|
1819
|
+
this.n1u_1 = lenientLineEnding;
|
|
1820
|
+
this.o1u_1 = throwOnIncompleteLine;
|
|
1973
1821
|
}
|
|
1974
|
-
protoOf($
|
|
1822
|
+
protoOf($internalReadLineToCOROUTINE$).i9 = function () {
|
|
1975
1823
|
var suspendResult = this.c9_1;
|
|
1976
1824
|
$sm: do
|
|
1977
1825
|
try {
|
|
1978
1826
|
var tmp = this.a9_1;
|
|
1979
1827
|
switch (tmp) {
|
|
1980
1828
|
case 0:
|
|
1981
|
-
this.b9_1 =
|
|
1982
|
-
this.
|
|
1983
|
-
this.
|
|
1984
|
-
|
|
1985
|
-
|
|
1986
|
-
|
|
1987
|
-
|
|
1829
|
+
this.b9_1 = 18;
|
|
1830
|
+
this.q1u_1 = this.k1u_1.t1n();
|
|
1831
|
+
if (this.q1u_1.hp()) {
|
|
1832
|
+
this.a9_1 = 1;
|
|
1833
|
+
suspendResult = this.k1u_1.c1o(VOID, this);
|
|
1834
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1835
|
+
return suspendResult;
|
|
1836
|
+
}
|
|
1837
|
+
continue $sm;
|
|
1838
|
+
} else {
|
|
1839
|
+
this.a9_1 = 2;
|
|
1988
1840
|
continue $sm;
|
|
1989
1841
|
}
|
|
1990
1842
|
|
|
1991
|
-
|
|
1843
|
+
case 1:
|
|
1992
1844
|
this.a9_1 = 2;
|
|
1993
|
-
suspendResult = this.a1s_1.d1l(VOID, this);
|
|
1994
|
-
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1995
|
-
return suspendResult;
|
|
1996
|
-
}
|
|
1997
|
-
|
|
1998
1845
|
continue $sm;
|
|
1999
1846
|
case 2:
|
|
2000
|
-
this.
|
|
1847
|
+
if (this.k1u_1.a1o())
|
|
1848
|
+
return -1n;
|
|
1849
|
+
this.p1u_1 = {_v: 0n};
|
|
1850
|
+
this.a9_1 = 3;
|
|
2001
1851
|
continue $sm;
|
|
2002
1852
|
case 3:
|
|
2003
|
-
|
|
2004
|
-
|
|
2005
|
-
|
|
2006
|
-
|
|
2007
|
-
|
|
1853
|
+
if (!(this.p1u_1._v < this.m1u_1 && !this.k1u_1.a1o())) {
|
|
1854
|
+
this.a9_1 = 10;
|
|
1855
|
+
continue $sm;
|
|
1856
|
+
}
|
|
1857
|
+
|
|
1858
|
+
var limitLeft = subtract(this.m1u_1, this.p1u_1._v);
|
|
1859
|
+
var lfIndex = indexOf(this.q1u_1, 10, VOID, limitLeft);
|
|
1860
|
+
var crIndex = internalReadLineTo$scanForSoleCr(this.q1u_1, this.n1u_1, lfIndex, limitLeft);
|
|
1861
|
+
if (crIndex >= 0n) {
|
|
1862
|
+
internalReadLineTo$transferString(this.q1u_1, this.l1u_1, this.p1u_1, crIndex);
|
|
1863
|
+
discard_0(this.q1u_1, 1n);
|
|
1864
|
+
return this.p1u_1._v;
|
|
1865
|
+
}
|
|
1866
|
+
|
|
1867
|
+
if (lfIndex === 0n) {
|
|
1868
|
+
discard_0(this.q1u_1, 1n);
|
|
1869
|
+
return this.p1u_1._v;
|
|
1870
|
+
}
|
|
1871
|
+
|
|
1872
|
+
if (lfIndex > 0n) {
|
|
1873
|
+
var tmp_0;
|
|
1874
|
+
var tmp_1 = this.q1u_1.gp();
|
|
1875
|
+
if (tmp_1.cq(subtract(lfIndex, fromInt(1))) === 13) {
|
|
1876
|
+
tmp_0 = 1n;
|
|
1877
|
+
} else {
|
|
1878
|
+
tmp_0 = 0n;
|
|
1879
|
+
}
|
|
1880
|
+
var isCrlf = tmp_0;
|
|
1881
|
+
internalReadLineTo$transferString(this.q1u_1, this.l1u_1, this.p1u_1, subtract(lfIndex, isCrlf));
|
|
1882
|
+
discard_0(this.q1u_1, add(numberToLong(1), isCrlf));
|
|
1883
|
+
return this.p1u_1._v;
|
|
1884
|
+
}
|
|
1885
|
+
|
|
1886
|
+
var b = get_remaining(this.q1u_1);
|
|
1887
|
+
var count = limitLeft <= b ? limitLeft : b;
|
|
1888
|
+
var tmp_2 = this.q1u_1.gp();
|
|
1889
|
+
if (tmp_2.cq(subtract(count, fromInt(1))) === 13) {
|
|
1890
|
+
internalReadLineTo$transferString(this.q1u_1, this.l1u_1, this.p1u_1, subtract(count, fromInt(1)));
|
|
1891
|
+
this.a9_1 = 4;
|
|
1892
|
+
suspendResult = internalReadLineTo$discardCrlfOrCr(this.q1u_1, this.k1u_1, this.n1u_1, this);
|
|
1893
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1894
|
+
return suspendResult;
|
|
1895
|
+
}
|
|
1896
|
+
continue $sm;
|
|
1897
|
+
} else {
|
|
1898
|
+
internalReadLineTo$transferString(this.q1u_1, this.l1u_1, this.p1u_1, count);
|
|
1899
|
+
this.a9_1 = 6;
|
|
1900
|
+
continue $sm;
|
|
2008
1901
|
}
|
|
2009
1902
|
|
|
2010
|
-
return this.b1s_1;
|
|
2011
1903
|
case 4:
|
|
1904
|
+
if (suspendResult) {
|
|
1905
|
+
return this.p1u_1._v;
|
|
1906
|
+
} else {
|
|
1907
|
+
this.a9_1 = 5;
|
|
1908
|
+
continue $sm;
|
|
1909
|
+
}
|
|
1910
|
+
|
|
1911
|
+
case 5:
|
|
1912
|
+
internalReadLineTo$transferString(this.q1u_1, this.l1u_1, this.p1u_1, 1n);
|
|
1913
|
+
this.a9_1 = 6;
|
|
1914
|
+
continue $sm;
|
|
1915
|
+
case 6:
|
|
1916
|
+
if (this.p1u_1._v < this.m1u_1 && get_remaining(this.q1u_1) === 0n) {
|
|
1917
|
+
this.a9_1 = 7;
|
|
1918
|
+
suspendResult = this.k1u_1.c1o(VOID, this);
|
|
1919
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1920
|
+
return suspendResult;
|
|
1921
|
+
}
|
|
1922
|
+
continue $sm;
|
|
1923
|
+
} else {
|
|
1924
|
+
this.s1u_1 = false;
|
|
1925
|
+
this.a9_1 = 8;
|
|
1926
|
+
continue $sm;
|
|
1927
|
+
}
|
|
1928
|
+
|
|
1929
|
+
case 7:
|
|
1930
|
+
this.s1u_1 = !suspendResult;
|
|
1931
|
+
this.a9_1 = 8;
|
|
1932
|
+
continue $sm;
|
|
1933
|
+
case 8:
|
|
1934
|
+
if (this.s1u_1) {
|
|
1935
|
+
this.a9_1 = 10;
|
|
1936
|
+
continue $sm;
|
|
1937
|
+
} else {
|
|
1938
|
+
this.a9_1 = 9;
|
|
1939
|
+
continue $sm;
|
|
1940
|
+
}
|
|
1941
|
+
|
|
1942
|
+
case 9:
|
|
1943
|
+
this.a9_1 = 3;
|
|
1944
|
+
continue $sm;
|
|
1945
|
+
case 10:
|
|
1946
|
+
if (this.p1u_1._v === 0n && this.k1u_1.a1o())
|
|
1947
|
+
return -1n;
|
|
1948
|
+
if (!(this.p1u_1._v <= this.m1u_1)) {
|
|
1949
|
+
var message = 'Consumed bytes exceed the limit: ' + this.p1u_1._v.toString() + ' > ' + this.m1u_1.toString() + ". It's an implementation bug, please report it.";
|
|
1950
|
+
throw IllegalStateException_init_$Create$(toString_1(message));
|
|
1951
|
+
}
|
|
1952
|
+
|
|
1953
|
+
if (this.p1u_1._v === this.m1u_1) {
|
|
1954
|
+
if (this.m1u_1 === 9223372036854775807n)
|
|
1955
|
+
throw new TooLongLineException('Max line length exceeded');
|
|
1956
|
+
if (get_remaining(this.q1u_1) === 0n) {
|
|
1957
|
+
this.a9_1 = 12;
|
|
1958
|
+
suspendResult = this.k1u_1.c1o(VOID, this);
|
|
1959
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1960
|
+
return suspendResult;
|
|
1961
|
+
}
|
|
1962
|
+
continue $sm;
|
|
1963
|
+
} else {
|
|
1964
|
+
this.r1u_1 = false;
|
|
1965
|
+
this.a9_1 = 13;
|
|
1966
|
+
continue $sm;
|
|
1967
|
+
}
|
|
1968
|
+
} else {
|
|
1969
|
+
this.a9_1 = 11;
|
|
1970
|
+
continue $sm;
|
|
1971
|
+
}
|
|
1972
|
+
|
|
1973
|
+
case 11:
|
|
1974
|
+
if (this.o1u_1) {
|
|
1975
|
+
throwEndOfStreamException(this.p1u_1._v);
|
|
1976
|
+
}
|
|
1977
|
+
|
|
1978
|
+
return this.p1u_1._v;
|
|
1979
|
+
case 12:
|
|
1980
|
+
this.r1u_1 = !suspendResult;
|
|
1981
|
+
this.a9_1 = 13;
|
|
1982
|
+
continue $sm;
|
|
1983
|
+
case 13:
|
|
1984
|
+
if (this.r1u_1) {
|
|
1985
|
+
throwEndOfStreamException(this.p1u_1._v);
|
|
1986
|
+
} else {
|
|
1987
|
+
this.a9_1 = 14;
|
|
1988
|
+
continue $sm;
|
|
1989
|
+
}
|
|
1990
|
+
|
|
1991
|
+
break;
|
|
1992
|
+
case 14:
|
|
1993
|
+
var tmp0_subject = this.q1u_1.gp().cq(0n);
|
|
1994
|
+
if (tmp0_subject === 10) {
|
|
1995
|
+
discard_0(this.q1u_1, 1n);
|
|
1996
|
+
return this.p1u_1._v;
|
|
1997
|
+
} else {
|
|
1998
|
+
if (tmp0_subject === 13) {
|
|
1999
|
+
this.a9_1 = 15;
|
|
2000
|
+
suspendResult = internalReadLineTo$discardCrlfOrCr(this.q1u_1, this.k1u_1, this.n1u_1, this);
|
|
2001
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2002
|
+
return suspendResult;
|
|
2003
|
+
}
|
|
2004
|
+
continue $sm;
|
|
2005
|
+
} else {
|
|
2006
|
+
this.a9_1 = 17;
|
|
2007
|
+
continue $sm;
|
|
2008
|
+
}
|
|
2009
|
+
}
|
|
2010
|
+
|
|
2011
|
+
case 15:
|
|
2012
|
+
if (suspendResult) {
|
|
2013
|
+
return this.p1u_1._v;
|
|
2014
|
+
} else {
|
|
2015
|
+
this.a9_1 = 16;
|
|
2016
|
+
continue $sm;
|
|
2017
|
+
}
|
|
2018
|
+
|
|
2019
|
+
case 16:
|
|
2020
|
+
this.a9_1 = 17;
|
|
2021
|
+
continue $sm;
|
|
2022
|
+
case 17:
|
|
2023
|
+
throwTooLongLineException(this.m1u_1);
|
|
2024
|
+
break;
|
|
2025
|
+
case 18:
|
|
2012
2026
|
throw this.d9_1;
|
|
2013
2027
|
}
|
|
2014
2028
|
} catch ($p) {
|
|
2015
2029
|
var e = $p;
|
|
2016
|
-
if (this.b9_1 ===
|
|
2030
|
+
if (this.b9_1 === 18) {
|
|
2017
2031
|
throw e;
|
|
2018
2032
|
} else {
|
|
2019
2033
|
this.a9_1 = this.b9_1;
|
|
@@ -2022,44 +2036,70 @@
|
|
|
2022
2036
|
}
|
|
2023
2037
|
while (true);
|
|
2024
2038
|
};
|
|
2025
|
-
function $
|
|
2039
|
+
function $internalReadLineTo$discardCrlfOrCrCOROUTINE$(_this__u8e3s4, $this_internalReadLineTo, $lenientLineEnding, resultContinuation) {
|
|
2026
2040
|
CoroutineImpl.call(this, resultContinuation);
|
|
2027
|
-
this.
|
|
2028
|
-
this.
|
|
2041
|
+
this.b1v_1 = _this__u8e3s4;
|
|
2042
|
+
this.c1v_1 = $this_internalReadLineTo;
|
|
2043
|
+
this.d1v_1 = $lenientLineEnding;
|
|
2029
2044
|
}
|
|
2030
|
-
protoOf($
|
|
2045
|
+
protoOf($internalReadLineTo$discardCrlfOrCrCOROUTINE$).i9 = function () {
|
|
2031
2046
|
var suspendResult = this.c9_1;
|
|
2032
2047
|
$sm: do
|
|
2033
2048
|
try {
|
|
2034
2049
|
var tmp = this.a9_1;
|
|
2035
2050
|
switch (tmp) {
|
|
2036
2051
|
case 0:
|
|
2037
|
-
this.b9_1 =
|
|
2038
|
-
if (this.
|
|
2039
|
-
|
|
2040
|
-
|
|
2041
|
-
|
|
2042
|
-
|
|
2043
|
-
|
|
2052
|
+
this.b9_1 = 5;
|
|
2053
|
+
if (get_remaining(this.b1v_1) >= 2n) {
|
|
2054
|
+
this.f1v_1 = true;
|
|
2055
|
+
this.a9_1 = 2;
|
|
2056
|
+
continue $sm;
|
|
2057
|
+
} else {
|
|
2058
|
+
this.a9_1 = 1;
|
|
2059
|
+
suspendResult = this.c1v_1.b1o(2, this);
|
|
2060
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2061
|
+
return suspendResult;
|
|
2062
|
+
}
|
|
2063
|
+
continue $sm;
|
|
2044
2064
|
}
|
|
2045
2065
|
|
|
2046
|
-
continue $sm;
|
|
2047
2066
|
case 1:
|
|
2048
|
-
|
|
2049
|
-
|
|
2067
|
+
this.f1v_1 = suspendResult;
|
|
2068
|
+
this.a9_1 = 2;
|
|
2069
|
+
continue $sm;
|
|
2070
|
+
case 2:
|
|
2071
|
+
if (this.f1v_1) {
|
|
2072
|
+
this.e1v_1 = this.b1v_1.gp().cq(1n) === 10;
|
|
2073
|
+
this.a9_1 = 3;
|
|
2074
|
+
continue $sm;
|
|
2050
2075
|
} else {
|
|
2051
|
-
this.
|
|
2076
|
+
this.e1v_1 = false;
|
|
2077
|
+
this.a9_1 = 3;
|
|
2052
2078
|
continue $sm;
|
|
2053
2079
|
}
|
|
2054
2080
|
|
|
2055
|
-
case 2:
|
|
2056
|
-
return readByteString(this.k1s_1.u1k().fp(), this.l1s_1);
|
|
2057
2081
|
case 3:
|
|
2082
|
+
if (this.e1v_1) {
|
|
2083
|
+
discard_0(this.b1v_1, 2n);
|
|
2084
|
+
return true;
|
|
2085
|
+
} else {
|
|
2086
|
+
this.a9_1 = 4;
|
|
2087
|
+
continue $sm;
|
|
2088
|
+
}
|
|
2089
|
+
|
|
2090
|
+
case 4:
|
|
2091
|
+
if (this.d1v_1) {
|
|
2092
|
+
discard_0(this.b1v_1, 1n);
|
|
2093
|
+
return true;
|
|
2094
|
+
}
|
|
2095
|
+
|
|
2096
|
+
return false;
|
|
2097
|
+
case 5:
|
|
2058
2098
|
throw this.d9_1;
|
|
2059
2099
|
}
|
|
2060
2100
|
} catch ($p) {
|
|
2061
2101
|
var e = $p;
|
|
2062
|
-
if (this.b9_1 ===
|
|
2102
|
+
if (this.b9_1 === 5) {
|
|
2063
2103
|
throw e;
|
|
2064
2104
|
} else {
|
|
2065
2105
|
this.a9_1 = this.b9_1;
|
|
@@ -2078,7 +2118,7 @@
|
|
|
2078
2118
|
}
|
|
2079
2119
|
function $flushIfNeededCOROUTINE$(_this__u8e3s4, resultContinuation) {
|
|
2080
2120
|
CoroutineImpl.call(this, resultContinuation);
|
|
2081
|
-
this.
|
|
2121
|
+
this.o1v_1 = _this__u8e3s4;
|
|
2082
2122
|
}
|
|
2083
2123
|
protoOf($flushIfNeededCOROUTINE$).i9 = function () {
|
|
2084
2124
|
var suspendResult = this.c9_1;
|
|
@@ -2088,10 +2128,10 @@
|
|
|
2088
2128
|
switch (tmp) {
|
|
2089
2129
|
case 0:
|
|
2090
2130
|
this.b9_1 = 3;
|
|
2091
|
-
rethrowCloseCauseIfNeeded_1(this.
|
|
2092
|
-
if (this.
|
|
2131
|
+
rethrowCloseCauseIfNeeded_1(this.o1v_1);
|
|
2132
|
+
if (this.o1v_1.s1n() || get_size(this.o1v_1.w1n()) >= 1048576) {
|
|
2093
2133
|
this.a9_1 = 1;
|
|
2094
|
-
suspendResult = this.
|
|
2134
|
+
suspendResult = this.o1v_1.r1n(this);
|
|
2095
2135
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2096
2136
|
return suspendResult;
|
|
2097
2137
|
}
|
|
@@ -2128,15 +2168,15 @@
|
|
|
2128
2168
|
function writeFully(_this__u8e3s4, value, startIndex, endIndex, $completion) {
|
|
2129
2169
|
startIndex = startIndex === VOID ? 0 : startIndex;
|
|
2130
2170
|
endIndex = endIndex === VOID ? value.length : endIndex;
|
|
2131
|
-
_this__u8e3s4.
|
|
2171
|
+
_this__u8e3s4.w1n().qq(value, startIndex, endIndex);
|
|
2132
2172
|
return flushIfNeeded(_this__u8e3s4, $completion);
|
|
2133
2173
|
}
|
|
2134
2174
|
function WriterJob(channel, job) {
|
|
2135
|
-
this.
|
|
2136
|
-
this.
|
|
2175
|
+
this.p1v_1 = channel;
|
|
2176
|
+
this.q1v_1 = job;
|
|
2137
2177
|
}
|
|
2138
|
-
protoOf(WriterJob).
|
|
2139
|
-
return this.
|
|
2178
|
+
protoOf(WriterJob).ew = function () {
|
|
2179
|
+
return this.q1v_1;
|
|
2140
2180
|
};
|
|
2141
2181
|
function writer(_this__u8e3s4, coroutineContext, autoFlush, block) {
|
|
2142
2182
|
coroutineContext = coroutineContext === VOID ? EmptyCoroutineContext_instance : coroutineContext;
|
|
@@ -2145,22 +2185,22 @@
|
|
|
2145
2185
|
return writer_0(_this__u8e3s4, coroutineContext, new ByteChannel(), block);
|
|
2146
2186
|
}
|
|
2147
2187
|
function WriterScope(channel, coroutineContext) {
|
|
2148
|
-
this.
|
|
2149
|
-
this.
|
|
2188
|
+
this.r1v_1 = channel;
|
|
2189
|
+
this.s1v_1 = coroutineContext;
|
|
2150
2190
|
}
|
|
2151
|
-
protoOf(WriterScope).
|
|
2152
|
-
return this.
|
|
2191
|
+
protoOf(WriterScope).ss = function () {
|
|
2192
|
+
return this.s1v_1;
|
|
2153
2193
|
};
|
|
2154
2194
|
function invokeOnCompletion(_this__u8e3s4, block) {
|
|
2155
2195
|
_init_properties_ByteWriteChannelOperations_kt__i7slrs();
|
|
2156
|
-
return _this__u8e3s4.
|
|
2196
|
+
return _this__u8e3s4.ew().ut(block);
|
|
2157
2197
|
}
|
|
2158
2198
|
function close_0(_this__u8e3s4, cause) {
|
|
2159
2199
|
_init_properties_ByteWriteChannelOperations_kt__i7slrs();
|
|
2160
2200
|
if (cause == null) {
|
|
2161
2201
|
fireAndForget(ByteWriteChannel$flushAndClose$ref_0(_this__u8e3s4));
|
|
2162
2202
|
} else {
|
|
2163
|
-
_this__u8e3s4.
|
|
2203
|
+
_this__u8e3s4.e1o(cause);
|
|
2164
2204
|
}
|
|
2165
2205
|
}
|
|
2166
2206
|
function writePacket(_this__u8e3s4, source, $completion) {
|
|
@@ -2178,19 +2218,19 @@
|
|
|
2178
2218
|
_init_properties_ByteWriteChannelOperations_kt__i7slrs();
|
|
2179
2219
|
// Inline function 'kotlin.apply' call
|
|
2180
2220
|
var this_0 = launch(_this__u8e3s4, coroutineContext, VOID, writer$slambda_0(block, channel, null));
|
|
2181
|
-
this_0.
|
|
2221
|
+
this_0.ut(writer$lambda(channel));
|
|
2182
2222
|
var job = this_0;
|
|
2183
2223
|
return new WriterJob(channel, job);
|
|
2184
2224
|
}
|
|
2185
2225
|
function writeByte(_this__u8e3s4, value, $completion) {
|
|
2186
|
-
_this__u8e3s4.
|
|
2226
|
+
_this__u8e3s4.w1n().ar(value);
|
|
2187
2227
|
return flushIfNeeded(_this__u8e3s4, $completion);
|
|
2188
2228
|
}
|
|
2189
2229
|
function NO_CALLBACK$1() {
|
|
2190
|
-
this.
|
|
2230
|
+
this.d1w_1 = EmptyCoroutineContext_instance;
|
|
2191
2231
|
}
|
|
2192
2232
|
protoOf(NO_CALLBACK$1).g9 = function () {
|
|
2193
|
-
return this.
|
|
2233
|
+
return this.d1w_1;
|
|
2194
2234
|
};
|
|
2195
2235
|
protoOf(NO_CALLBACK$1).h9 = function (result) {
|
|
2196
2236
|
return Unit_instance;
|
|
@@ -2199,36 +2239,36 @@
|
|
|
2199
2239
|
return this.h9(result);
|
|
2200
2240
|
};
|
|
2201
2241
|
function ByteWriteChannel$flushAndClose$ref(p0) {
|
|
2202
|
-
this.
|
|
2242
|
+
this.e1w_1 = p0;
|
|
2203
2243
|
}
|
|
2204
|
-
protoOf(ByteWriteChannel$flushAndClose$ref).
|
|
2205
|
-
return this.
|
|
2244
|
+
protoOf(ByteWriteChannel$flushAndClose$ref).f1w = function ($completion) {
|
|
2245
|
+
return this.e1w_1.d1o($completion);
|
|
2206
2246
|
};
|
|
2207
2247
|
protoOf(ByteWriteChannel$flushAndClose$ref).ra = function ($completion) {
|
|
2208
|
-
return this.
|
|
2248
|
+
return this.f1w($completion);
|
|
2209
2249
|
};
|
|
2210
2250
|
function ByteWriteChannel$flushAndClose$ref_0(p0) {
|
|
2211
2251
|
var i = new ByteWriteChannel$flushAndClose$ref(p0);
|
|
2212
2252
|
var l = function ($completion) {
|
|
2213
|
-
return i.
|
|
2253
|
+
return i.f1w($completion);
|
|
2214
2254
|
};
|
|
2215
2255
|
l.callableName = 'flushAndClose';
|
|
2216
2256
|
l.$arity = 0;
|
|
2217
2257
|
return l;
|
|
2218
2258
|
}
|
|
2219
2259
|
function writer$slambda($block, $channel, resultContinuation) {
|
|
2220
|
-
this.
|
|
2221
|
-
this.
|
|
2260
|
+
this.o1w_1 = $block;
|
|
2261
|
+
this.p1w_1 = $channel;
|
|
2222
2262
|
CoroutineImpl.call(this, resultContinuation);
|
|
2223
2263
|
}
|
|
2224
|
-
protoOf(writer$slambda).
|
|
2225
|
-
var tmp = this.
|
|
2264
|
+
protoOf(writer$slambda).x1w = function ($this$launch, $completion) {
|
|
2265
|
+
var tmp = this.y1w($this$launch, $completion);
|
|
2226
2266
|
tmp.c9_1 = Unit_instance;
|
|
2227
2267
|
tmp.d9_1 = null;
|
|
2228
2268
|
return tmp.i9();
|
|
2229
2269
|
};
|
|
2230
2270
|
protoOf(writer$slambda).u9 = function (p1, $completion) {
|
|
2231
|
-
return this.
|
|
2271
|
+
return this.x1w((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
2232
2272
|
};
|
|
2233
2273
|
protoOf(writer$slambda).i9 = function () {
|
|
2234
2274
|
var suspendResult = this.c9_1;
|
|
@@ -2238,24 +2278,24 @@
|
|
|
2238
2278
|
switch (tmp) {
|
|
2239
2279
|
case 0:
|
|
2240
2280
|
this.b9_1 = 14;
|
|
2241
|
-
this.
|
|
2281
|
+
this.t1w_1 = Job(get_job(this.q1w_1.ss()));
|
|
2242
2282
|
this.a9_1 = 1;
|
|
2243
2283
|
continue $sm;
|
|
2244
2284
|
case 1:
|
|
2245
2285
|
this.b9_1 = 4;
|
|
2246
2286
|
this.b9_1 = 3;
|
|
2247
2287
|
this.a9_1 = 2;
|
|
2248
|
-
suspendResult = this.
|
|
2288
|
+
suspendResult = this.o1w_1(new WriterScope(this.p1w_1, this.q1w_1.ss().yg(this.t1w_1)), this);
|
|
2249
2289
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2250
2290
|
return suspendResult;
|
|
2251
2291
|
}
|
|
2252
2292
|
|
|
2253
2293
|
continue $sm;
|
|
2254
2294
|
case 2:
|
|
2255
|
-
this.
|
|
2295
|
+
this.t1w_1.c11();
|
|
2256
2296
|
var tmp_0;
|
|
2257
|
-
if (get_job(this.
|
|
2258
|
-
this.
|
|
2297
|
+
if (get_job(this.q1w_1.ss()).ot()) {
|
|
2298
|
+
this.p1w_1.e1o(get_job(this.q1w_1.ss()).rt());
|
|
2259
2299
|
tmp_0 = Unit_instance;
|
|
2260
2300
|
}
|
|
2261
2301
|
|
|
@@ -2267,8 +2307,8 @@
|
|
|
2267
2307
|
var tmp_1 = this.d9_1;
|
|
2268
2308
|
if (tmp_1 instanceof Error) {
|
|
2269
2309
|
var cause = this.d9_1;
|
|
2270
|
-
cancel(this.
|
|
2271
|
-
this.
|
|
2310
|
+
cancel(this.t1w_1, 'Exception thrown while writing to channel', cause);
|
|
2311
|
+
this.p1w_1.e1o(cause);
|
|
2272
2312
|
this.b9_1 = 14;
|
|
2273
2313
|
this.a9_1 = 9;
|
|
2274
2314
|
continue $sm;
|
|
@@ -2278,20 +2318,20 @@
|
|
|
2278
2318
|
|
|
2279
2319
|
case 4:
|
|
2280
2320
|
this.b9_1 = 14;
|
|
2281
|
-
this.
|
|
2321
|
+
this.u1w_1 = this.d9_1;
|
|
2282
2322
|
this.a9_1 = 5;
|
|
2283
|
-
suspendResult = this.
|
|
2323
|
+
suspendResult = this.t1w_1.yt(this);
|
|
2284
2324
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2285
2325
|
return suspendResult;
|
|
2286
2326
|
}
|
|
2287
2327
|
|
|
2288
2328
|
continue $sm;
|
|
2289
2329
|
case 5:
|
|
2290
|
-
this.
|
|
2330
|
+
this.q1w_1;
|
|
2291
2331
|
this.b9_1 = 7;
|
|
2292
|
-
this.
|
|
2332
|
+
this.w1w_1 = Companion_instance;
|
|
2293
2333
|
this.a9_1 = 6;
|
|
2294
|
-
suspendResult = this.
|
|
2334
|
+
suspendResult = this.p1w_1.d1o(this);
|
|
2295
2335
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2296
2336
|
return suspendResult;
|
|
2297
2337
|
}
|
|
@@ -2299,8 +2339,8 @@
|
|
|
2299
2339
|
continue $sm;
|
|
2300
2340
|
case 6:
|
|
2301
2341
|
var tmp_2 = this;
|
|
2302
|
-
this.
|
|
2303
|
-
tmp_2.
|
|
2342
|
+
this.w1w_1;
|
|
2343
|
+
tmp_2.v1w_1 = _Result___init__impl__xyqfz8(Unit_instance);
|
|
2304
2344
|
this.b9_1 = 14;
|
|
2305
2345
|
this.a9_1 = 8;
|
|
2306
2346
|
continue $sm;
|
|
@@ -2310,7 +2350,7 @@
|
|
|
2310
2350
|
if (tmp_3 instanceof Error) {
|
|
2311
2351
|
var e = this.d9_1;
|
|
2312
2352
|
var tmp_4 = this;
|
|
2313
|
-
tmp_4.
|
|
2353
|
+
tmp_4.v1w_1 = _Result___init__impl__xyqfz8(createFailure(e));
|
|
2314
2354
|
this.a9_1 = 8;
|
|
2315
2355
|
continue $sm;
|
|
2316
2356
|
} else {
|
|
@@ -2319,22 +2359,22 @@
|
|
|
2319
2359
|
|
|
2320
2360
|
case 8:
|
|
2321
2361
|
this.b9_1 = 14;
|
|
2322
|
-
throw this.
|
|
2362
|
+
throw this.u1w_1;
|
|
2323
2363
|
case 9:
|
|
2324
2364
|
this.b9_1 = 14;
|
|
2325
2365
|
this.a9_1 = 10;
|
|
2326
|
-
suspendResult = this.
|
|
2366
|
+
suspendResult = this.t1w_1.yt(this);
|
|
2327
2367
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2328
2368
|
return suspendResult;
|
|
2329
2369
|
}
|
|
2330
2370
|
|
|
2331
2371
|
continue $sm;
|
|
2332
2372
|
case 10:
|
|
2333
|
-
this.
|
|
2373
|
+
this.q1w_1;
|
|
2334
2374
|
this.b9_1 = 12;
|
|
2335
|
-
this.
|
|
2375
|
+
this.s1w_1 = Companion_instance;
|
|
2336
2376
|
this.a9_1 = 11;
|
|
2337
|
-
suspendResult = this.
|
|
2377
|
+
suspendResult = this.p1w_1.d1o(this);
|
|
2338
2378
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2339
2379
|
return suspendResult;
|
|
2340
2380
|
}
|
|
@@ -2342,8 +2382,8 @@
|
|
|
2342
2382
|
continue $sm;
|
|
2343
2383
|
case 11:
|
|
2344
2384
|
var tmp_5 = this;
|
|
2345
|
-
this.
|
|
2346
|
-
tmp_5.
|
|
2385
|
+
this.s1w_1;
|
|
2386
|
+
tmp_5.r1w_1 = _Result___init__impl__xyqfz8(Unit_instance);
|
|
2347
2387
|
this.b9_1 = 14;
|
|
2348
2388
|
this.a9_1 = 13;
|
|
2349
2389
|
continue $sm;
|
|
@@ -2353,7 +2393,7 @@
|
|
|
2353
2393
|
if (tmp_6 instanceof Error) {
|
|
2354
2394
|
var e_0 = this.d9_1;
|
|
2355
2395
|
var tmp_7 = this;
|
|
2356
|
-
tmp_7.
|
|
2396
|
+
tmp_7.r1w_1 = _Result___init__impl__xyqfz8(createFailure(e_0));
|
|
2357
2397
|
this.a9_1 = 13;
|
|
2358
2398
|
continue $sm;
|
|
2359
2399
|
} else {
|
|
@@ -2377,15 +2417,15 @@
|
|
|
2377
2417
|
}
|
|
2378
2418
|
while (true);
|
|
2379
2419
|
};
|
|
2380
|
-
protoOf(writer$slambda).
|
|
2381
|
-
var i = new writer$slambda(this.
|
|
2382
|
-
i.
|
|
2420
|
+
protoOf(writer$slambda).y1w = function ($this$launch, completion) {
|
|
2421
|
+
var i = new writer$slambda(this.o1w_1, this.p1w_1, completion);
|
|
2422
|
+
i.q1w_1 = $this$launch;
|
|
2383
2423
|
return i;
|
|
2384
2424
|
};
|
|
2385
2425
|
function writer$slambda_0($block, $channel, resultContinuation) {
|
|
2386
2426
|
var i = new writer$slambda($block, $channel, resultContinuation);
|
|
2387
2427
|
var l = function ($this$launch, $completion) {
|
|
2388
|
-
return i.
|
|
2428
|
+
return i.x1w($this$launch, $completion);
|
|
2389
2429
|
};
|
|
2390
2430
|
l.$arity = 1;
|
|
2391
2431
|
return l;
|
|
@@ -2393,8 +2433,8 @@
|
|
|
2393
2433
|
function writer$lambda($channel) {
|
|
2394
2434
|
return function (it) {
|
|
2395
2435
|
var tmp;
|
|
2396
|
-
if (!(it == null) && !$channel.
|
|
2397
|
-
$channel.
|
|
2436
|
+
if (!(it == null) && !$channel.x1n()) {
|
|
2437
|
+
$channel.e1o(it);
|
|
2398
2438
|
tmp = Unit_instance;
|
|
2399
2439
|
}
|
|
2400
2440
|
return Unit_instance;
|
|
@@ -2402,8 +2442,8 @@
|
|
|
2402
2442
|
}
|
|
2403
2443
|
function $writePacketCOROUTINE$(_this__u8e3s4, source, resultContinuation) {
|
|
2404
2444
|
CoroutineImpl.call(this, resultContinuation);
|
|
2405
|
-
this.
|
|
2406
|
-
this.
|
|
2445
|
+
this.b1w_1 = _this__u8e3s4;
|
|
2446
|
+
this.c1w_1 = source;
|
|
2407
2447
|
}
|
|
2408
2448
|
protoOf($writePacketCOROUTINE$).i9 = function () {
|
|
2409
2449
|
var suspendResult = this.c9_1;
|
|
@@ -2416,14 +2456,14 @@
|
|
|
2416
2456
|
this.a9_1 = 1;
|
|
2417
2457
|
continue $sm;
|
|
2418
2458
|
case 1:
|
|
2419
|
-
if (!!this.
|
|
2459
|
+
if (!!this.c1w_1.hp()) {
|
|
2420
2460
|
this.a9_1 = 3;
|
|
2421
2461
|
continue $sm;
|
|
2422
2462
|
}
|
|
2423
2463
|
|
|
2424
|
-
this.
|
|
2464
|
+
this.b1w_1.w1n().uq(this.c1w_1, get_remaining(this.c1w_1));
|
|
2425
2465
|
this.a9_1 = 2;
|
|
2426
|
-
suspendResult = flushIfNeeded(this.
|
|
2466
|
+
suspendResult = flushIfNeeded(this.b1w_1, this);
|
|
2427
2467
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2428
2468
|
return suspendResult;
|
|
2429
2469
|
}
|
|
@@ -2468,27 +2508,27 @@
|
|
|
2468
2508
|
return l;
|
|
2469
2509
|
}
|
|
2470
2510
|
function CloseToken(origin) {
|
|
2471
|
-
this.
|
|
2511
|
+
this.u1n_1 = origin;
|
|
2472
2512
|
}
|
|
2473
|
-
protoOf(CloseToken).
|
|
2474
|
-
var tmp0_subject = this.
|
|
2513
|
+
protoOf(CloseToken).z1w = function (wrap) {
|
|
2514
|
+
var tmp0_subject = this.u1n_1;
|
|
2475
2515
|
var tmp;
|
|
2476
2516
|
if (tmp0_subject == null) {
|
|
2477
2517
|
tmp = null;
|
|
2478
2518
|
} else {
|
|
2479
2519
|
if (isInterface(tmp0_subject, CopyableThrowable)) {
|
|
2480
|
-
tmp = this.
|
|
2520
|
+
tmp = this.u1n_1.l11();
|
|
2481
2521
|
} else {
|
|
2482
2522
|
if (tmp0_subject instanceof CancellationException) {
|
|
2483
|
-
tmp = CancellationException_init_$Create$(this.
|
|
2523
|
+
tmp = CancellationException_init_$Create$(this.u1n_1.message, this.u1n_1);
|
|
2484
2524
|
} else {
|
|
2485
|
-
tmp = wrap(this.
|
|
2525
|
+
tmp = wrap(this.u1n_1);
|
|
2486
2526
|
}
|
|
2487
2527
|
}
|
|
2488
2528
|
}
|
|
2489
2529
|
return tmp;
|
|
2490
2530
|
};
|
|
2491
|
-
protoOf(CloseToken).
|
|
2531
|
+
protoOf(CloseToken).z1n = function (wrap, $super) {
|
|
2492
2532
|
var tmp;
|
|
2493
2533
|
if (wrap === VOID) {
|
|
2494
2534
|
tmp = ClosedByteChannelException$_init_$ref_yjp351();
|
|
@@ -2496,10 +2536,10 @@
|
|
|
2496
2536
|
tmp = wrap;
|
|
2497
2537
|
}
|
|
2498
2538
|
wrap = tmp;
|
|
2499
|
-
return $super === VOID ? this.
|
|
2539
|
+
return $super === VOID ? this.z1w(wrap) : $super.z1w.call(this, wrap);
|
|
2500
2540
|
};
|
|
2501
|
-
protoOf(CloseToken).
|
|
2502
|
-
var tmp0_safe_receiver = this.
|
|
2541
|
+
protoOf(CloseToken).v1n = function (wrap) {
|
|
2542
|
+
var tmp0_safe_receiver = this.z1w(wrap);
|
|
2503
2543
|
var tmp;
|
|
2504
2544
|
if (tmp0_safe_receiver == null) {
|
|
2505
2545
|
tmp = null;
|
|
@@ -2518,17 +2558,17 @@
|
|
|
2518
2558
|
}
|
|
2519
2559
|
function transferFromDelegate($this) {
|
|
2520
2560
|
updateConsumed($this);
|
|
2521
|
-
var appended = $this.
|
|
2522
|
-
$this.
|
|
2561
|
+
var appended = $this.b1x_1.zq($this.a1x_1.t1n());
|
|
2562
|
+
$this.c1x_1 = add($this.c1x_1, appended);
|
|
2523
2563
|
}
|
|
2524
2564
|
function updateConsumed($this) {
|
|
2525
|
-
$this.
|
|
2526
|
-
$this.
|
|
2565
|
+
$this.d1x_1 = add($this.d1x_1, subtract($this.c1x_1, $this.b1x_1.l1()));
|
|
2566
|
+
$this.c1x_1 = $this.b1x_1.l1();
|
|
2527
2567
|
}
|
|
2528
2568
|
function $awaitContentCOROUTINE$_0(_this__u8e3s4, min, resultContinuation) {
|
|
2529
2569
|
CoroutineImpl.call(this, resultContinuation);
|
|
2530
|
-
this.
|
|
2531
|
-
this.
|
|
2570
|
+
this.m1x_1 = _this__u8e3s4;
|
|
2571
|
+
this.n1x_1 = min;
|
|
2532
2572
|
}
|
|
2533
2573
|
protoOf($awaitContentCOROUTINE$_0).i9 = function () {
|
|
2534
2574
|
var suspendResult = this.c9_1;
|
|
@@ -2538,12 +2578,12 @@
|
|
|
2538
2578
|
switch (tmp) {
|
|
2539
2579
|
case 0:
|
|
2540
2580
|
this.b9_1 = 3;
|
|
2541
|
-
if (this.
|
|
2581
|
+
if (this.m1x_1.t1n().l1() >= fromInt(this.n1x_1)) {
|
|
2542
2582
|
return true;
|
|
2543
2583
|
}
|
|
2544
2584
|
|
|
2545
2585
|
this.a9_1 = 1;
|
|
2546
|
-
suspendResult = this.
|
|
2586
|
+
suspendResult = this.m1x_1.a1x_1.b1o(this.n1x_1, this);
|
|
2547
2587
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2548
2588
|
return suspendResult;
|
|
2549
2589
|
}
|
|
@@ -2551,7 +2591,7 @@
|
|
|
2551
2591
|
continue $sm;
|
|
2552
2592
|
case 1:
|
|
2553
2593
|
if (suspendResult) {
|
|
2554
|
-
transferFromDelegate(this.
|
|
2594
|
+
transferFromDelegate(this.m1x_1);
|
|
2555
2595
|
return true;
|
|
2556
2596
|
} else {
|
|
2557
2597
|
this.a9_1 = 2;
|
|
@@ -2575,34 +2615,34 @@
|
|
|
2575
2615
|
while (true);
|
|
2576
2616
|
};
|
|
2577
2617
|
function CountedByteReadChannel(delegate) {
|
|
2578
|
-
this.
|
|
2579
|
-
this.
|
|
2580
|
-
this.
|
|
2581
|
-
this.
|
|
2618
|
+
this.a1x_1 = delegate;
|
|
2619
|
+
this.b1x_1 = new Buffer();
|
|
2620
|
+
this.c1x_1 = 0n;
|
|
2621
|
+
this.d1x_1 = 0n;
|
|
2582
2622
|
}
|
|
2583
|
-
protoOf(CountedByteReadChannel).
|
|
2623
|
+
protoOf(CountedByteReadChannel).o1x = function () {
|
|
2584
2624
|
updateConsumed(this);
|
|
2585
|
-
return this.
|
|
2625
|
+
return this.d1x_1;
|
|
2586
2626
|
};
|
|
2587
|
-
protoOf(CountedByteReadChannel).
|
|
2588
|
-
return this.
|
|
2627
|
+
protoOf(CountedByteReadChannel).y1n = function () {
|
|
2628
|
+
return this.a1x_1.y1n();
|
|
2589
2629
|
};
|
|
2590
|
-
protoOf(CountedByteReadChannel).
|
|
2591
|
-
return this.
|
|
2630
|
+
protoOf(CountedByteReadChannel).a1o = function () {
|
|
2631
|
+
return this.b1x_1.hp() && this.a1x_1.a1o();
|
|
2592
2632
|
};
|
|
2593
|
-
protoOf(CountedByteReadChannel).
|
|
2633
|
+
protoOf(CountedByteReadChannel).t1n = function () {
|
|
2594
2634
|
transferFromDelegate(this);
|
|
2595
|
-
return this.
|
|
2635
|
+
return this.b1x_1;
|
|
2596
2636
|
};
|
|
2597
|
-
protoOf(CountedByteReadChannel).
|
|
2637
|
+
protoOf(CountedByteReadChannel).b1o = function (min, $completion) {
|
|
2598
2638
|
var tmp = new $awaitContentCOROUTINE$_0(this, min, $completion);
|
|
2599
2639
|
tmp.c9_1 = Unit_instance;
|
|
2600
2640
|
tmp.d9_1 = null;
|
|
2601
2641
|
return tmp.i9();
|
|
2602
2642
|
};
|
|
2603
|
-
protoOf(CountedByteReadChannel).
|
|
2604
|
-
this.
|
|
2605
|
-
this.
|
|
2643
|
+
protoOf(CountedByteReadChannel).e1o = function (cause) {
|
|
2644
|
+
this.a1x_1.e1o(cause);
|
|
2645
|
+
this.b1x_1.l4();
|
|
2606
2646
|
};
|
|
2607
2647
|
function counted(_this__u8e3s4) {
|
|
2608
2648
|
return new CountedByteReadChannel(_this__u8e3s4);
|
|
@@ -2625,6 +2665,27 @@
|
|
|
2625
2665
|
ClosedByteChannelException.call(this, cause);
|
|
2626
2666
|
captureStack(this, ClosedWriteChannelException);
|
|
2627
2667
|
}
|
|
2668
|
+
var LineEnding_Default_instance;
|
|
2669
|
+
var LineEnding_Lenient_instance;
|
|
2670
|
+
var LineEnding_entriesInitialized;
|
|
2671
|
+
function LineEnding_initEntries() {
|
|
2672
|
+
if (LineEnding_entriesInitialized)
|
|
2673
|
+
return Unit_instance;
|
|
2674
|
+
LineEnding_entriesInitialized = true;
|
|
2675
|
+
LineEnding_Default_instance = new LineEnding('Default', 0);
|
|
2676
|
+
LineEnding_Lenient_instance = new LineEnding('Lenient', 1);
|
|
2677
|
+
}
|
|
2678
|
+
function LineEnding(name, ordinal) {
|
|
2679
|
+
Enum.call(this, name, ordinal);
|
|
2680
|
+
}
|
|
2681
|
+
function LineEnding_Default_getInstance() {
|
|
2682
|
+
LineEnding_initEntries();
|
|
2683
|
+
return LineEnding_Default_instance;
|
|
2684
|
+
}
|
|
2685
|
+
function LineEnding_Lenient_getInstance() {
|
|
2686
|
+
LineEnding_initEntries();
|
|
2687
|
+
return LineEnding_Lenient_instance;
|
|
2688
|
+
}
|
|
2628
2689
|
function _LineEndingMode___init__impl__jo5bul(mode) {
|
|
2629
2690
|
return mode;
|
|
2630
2691
|
}
|
|
@@ -2639,21 +2700,21 @@
|
|
|
2639
2700
|
}
|
|
2640
2701
|
function LineEndingMode__toString_impl_j4h76r($this) {
|
|
2641
2702
|
var tmp;
|
|
2642
|
-
if ($this === Companion_getInstance_1().
|
|
2703
|
+
if ($this === Companion_getInstance_1().p1x_1) {
|
|
2643
2704
|
tmp = 'CR';
|
|
2644
|
-
} else if ($this === Companion_getInstance_1().
|
|
2705
|
+
} else if ($this === Companion_getInstance_1().q1x_1) {
|
|
2645
2706
|
tmp = 'LF';
|
|
2646
|
-
} else if ($this === Companion_getInstance_1().
|
|
2707
|
+
} else if ($this === Companion_getInstance_1().r1x_1) {
|
|
2647
2708
|
tmp = 'CRLF';
|
|
2648
2709
|
} else {
|
|
2649
2710
|
// Inline function 'kotlin.collections.filter' call
|
|
2650
|
-
var tmp0 = Companion_getInstance_1().
|
|
2711
|
+
var tmp0 = Companion_getInstance_1().t1x_1;
|
|
2651
2712
|
// Inline function 'kotlin.collections.filterTo' call
|
|
2652
2713
|
var destination = ArrayList_init_$Create$();
|
|
2653
2714
|
var _iterator__ex2g4s = tmp0.t();
|
|
2654
2715
|
while (_iterator__ex2g4s.u()) {
|
|
2655
2716
|
var element = _iterator__ex2g4s.v();
|
|
2656
|
-
var it = element.
|
|
2717
|
+
var it = element.u1x_1;
|
|
2657
2718
|
if (LineEndingMode__contains_impl_q5pr68($this, it)) {
|
|
2658
2719
|
destination.j1(element);
|
|
2659
2720
|
}
|
|
@@ -2664,11 +2725,11 @@
|
|
|
2664
2725
|
}
|
|
2665
2726
|
function Companion_1() {
|
|
2666
2727
|
Companion_instance_2 = this;
|
|
2667
|
-
this.
|
|
2668
|
-
this.
|
|
2669
|
-
this.
|
|
2670
|
-
this.
|
|
2671
|
-
this.
|
|
2728
|
+
this.p1x_1 = _LineEndingMode___init__impl__jo5bul(1);
|
|
2729
|
+
this.q1x_1 = _LineEndingMode___init__impl__jo5bul(2);
|
|
2730
|
+
this.r1x_1 = _LineEndingMode___init__impl__jo5bul(4);
|
|
2731
|
+
this.s1x_1 = _LineEndingMode___init__impl__jo5bul(7);
|
|
2732
|
+
this.t1x_1 = listOf([new LineEndingMode(this.p1x_1), new LineEndingMode(this.q1x_1), new LineEndingMode(this.r1x_1)]);
|
|
2672
2733
|
}
|
|
2673
2734
|
var Companion_instance_2;
|
|
2674
2735
|
function Companion_getInstance_1() {
|
|
@@ -2682,67 +2743,67 @@
|
|
|
2682
2743
|
function LineEndingMode__equals_impl_qyr4nk($this, other) {
|
|
2683
2744
|
if (!(other instanceof LineEndingMode))
|
|
2684
2745
|
return false;
|
|
2685
|
-
if (!($this === other.
|
|
2746
|
+
if (!($this === other.u1x_1))
|
|
2686
2747
|
return false;
|
|
2687
2748
|
return true;
|
|
2688
2749
|
}
|
|
2689
2750
|
function LineEndingMode(mode) {
|
|
2690
2751
|
Companion_getInstance_1();
|
|
2691
|
-
this.
|
|
2752
|
+
this.u1x_1 = mode;
|
|
2692
2753
|
}
|
|
2693
2754
|
protoOf(LineEndingMode).toString = function () {
|
|
2694
|
-
return LineEndingMode__toString_impl_j4h76r(this.
|
|
2755
|
+
return LineEndingMode__toString_impl_j4h76r(this.u1x_1);
|
|
2695
2756
|
};
|
|
2696
2757
|
protoOf(LineEndingMode).hashCode = function () {
|
|
2697
|
-
return LineEndingMode__hashCode_impl_2mopm4(this.
|
|
2758
|
+
return LineEndingMode__hashCode_impl_2mopm4(this.u1x_1);
|
|
2698
2759
|
};
|
|
2699
2760
|
protoOf(LineEndingMode).equals = function (other) {
|
|
2700
|
-
return LineEndingMode__equals_impl_qyr4nk(this.
|
|
2761
|
+
return LineEndingMode__equals_impl_qyr4nk(this.u1x_1, other);
|
|
2701
2762
|
};
|
|
2702
2763
|
function SourceByteReadChannel(source) {
|
|
2703
|
-
this.
|
|
2704
|
-
this.
|
|
2764
|
+
this.v1x_1 = source;
|
|
2765
|
+
this.w1x_1 = null;
|
|
2705
2766
|
}
|
|
2706
|
-
protoOf(SourceByteReadChannel).
|
|
2707
|
-
var tmp0_safe_receiver = this.
|
|
2708
|
-
return tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
2767
|
+
protoOf(SourceByteReadChannel).y1n = function () {
|
|
2768
|
+
var tmp0_safe_receiver = this.w1x_1;
|
|
2769
|
+
return tmp0_safe_receiver == null ? null : tmp0_safe_receiver.z1n();
|
|
2709
2770
|
};
|
|
2710
|
-
protoOf(SourceByteReadChannel).
|
|
2711
|
-
return this.
|
|
2771
|
+
protoOf(SourceByteReadChannel).a1o = function () {
|
|
2772
|
+
return this.v1x_1.hp();
|
|
2712
2773
|
};
|
|
2713
|
-
protoOf(SourceByteReadChannel).
|
|
2714
|
-
var tmp0_safe_receiver = this.
|
|
2774
|
+
protoOf(SourceByteReadChannel).t1n = function () {
|
|
2775
|
+
var tmp0_safe_receiver = this.y1n();
|
|
2715
2776
|
if (tmp0_safe_receiver == null)
|
|
2716
2777
|
null;
|
|
2717
2778
|
else {
|
|
2718
2779
|
// Inline function 'kotlin.let' call
|
|
2719
2780
|
throw tmp0_safe_receiver;
|
|
2720
2781
|
}
|
|
2721
|
-
return this.
|
|
2782
|
+
return this.v1x_1.gp();
|
|
2722
2783
|
};
|
|
2723
|
-
protoOf(SourceByteReadChannel).
|
|
2724
|
-
var tmp0_safe_receiver = this.
|
|
2784
|
+
protoOf(SourceByteReadChannel).b1o = function (min, $completion) {
|
|
2785
|
+
var tmp0_safe_receiver = this.y1n();
|
|
2725
2786
|
if (tmp0_safe_receiver == null)
|
|
2726
2787
|
null;
|
|
2727
2788
|
else {
|
|
2728
2789
|
// Inline function 'kotlin.let' call
|
|
2729
2790
|
throw tmp0_safe_receiver;
|
|
2730
2791
|
}
|
|
2731
|
-
return this.
|
|
2792
|
+
return this.v1x_1.jp(fromInt(min));
|
|
2732
2793
|
};
|
|
2733
|
-
protoOf(SourceByteReadChannel).
|
|
2734
|
-
if (!(this.
|
|
2794
|
+
protoOf(SourceByteReadChannel).e1o = function (cause) {
|
|
2795
|
+
if (!(this.w1x_1 == null))
|
|
2735
2796
|
return Unit_instance;
|
|
2736
|
-
this.
|
|
2797
|
+
this.v1x_1.l4();
|
|
2737
2798
|
var tmp = this;
|
|
2738
2799
|
var tmp1_elvis_lhs = cause == null ? null : cause.message;
|
|
2739
|
-
tmp.
|
|
2800
|
+
tmp.w1x_1 = new CloseToken(IOException_init_$Create$_0(tmp1_elvis_lhs == null ? 'Channel was cancelled' : tmp1_elvis_lhs, cause));
|
|
2740
2801
|
};
|
|
2741
2802
|
function decode(_this__u8e3s4, input, max) {
|
|
2742
2803
|
max = max === VOID ? 2147483647 : max;
|
|
2743
2804
|
var tmp0 = fromInt(max);
|
|
2744
2805
|
// Inline function 'kotlin.comparisons.minOf' call
|
|
2745
|
-
var b = input.
|
|
2806
|
+
var b = input.gp().l1();
|
|
2746
2807
|
var tmp$ret$0 = tmp0 <= b ? tmp0 : b;
|
|
2747
2808
|
// Inline function 'kotlin.text.buildString' call
|
|
2748
2809
|
var capacity = convertToInt(tmp$ret$0);
|
|
@@ -2779,7 +2840,7 @@
|
|
|
2779
2840
|
}
|
|
2780
2841
|
}
|
|
2781
2842
|
function canRead(_this__u8e3s4) {
|
|
2782
|
-
return !_this__u8e3s4.
|
|
2843
|
+
return !_this__u8e3s4.hp();
|
|
2783
2844
|
}
|
|
2784
2845
|
function readBytes(_this__u8e3s4, count) {
|
|
2785
2846
|
count = count === VOID ? convertToInt(_this__u8e3s4.l1()) : count;
|
|
@@ -2788,32 +2849,35 @@
|
|
|
2788
2849
|
function writeFully_0(_this__u8e3s4, buffer, offset, length) {
|
|
2789
2850
|
offset = offset === VOID ? 0 : offset;
|
|
2790
2851
|
length = length === VOID ? buffer.length - offset | 0 : length;
|
|
2791
|
-
_this__u8e3s4.
|
|
2852
|
+
_this__u8e3s4.qq(buffer, offset, offset + length | 0);
|
|
2792
2853
|
}
|
|
2793
2854
|
function BytePacketBuilder() {
|
|
2794
2855
|
return new Buffer();
|
|
2795
2856
|
}
|
|
2857
|
+
function build(_this__u8e3s4) {
|
|
2858
|
+
return _this__u8e3s4.gp();
|
|
2859
|
+
}
|
|
2796
2860
|
function get_size(_this__u8e3s4) {
|
|
2797
|
-
return convertToInt(_this__u8e3s4.
|
|
2861
|
+
return convertToInt(_this__u8e3s4.gp().l1());
|
|
2798
2862
|
}
|
|
2799
2863
|
var ByteReadPacketEmpty;
|
|
2800
2864
|
function get_remaining(_this__u8e3s4) {
|
|
2801
2865
|
_init_properties_ByteReadPacket_kt__28475y();
|
|
2802
|
-
return _this__u8e3s4.
|
|
2866
|
+
return _this__u8e3s4.gp().l1();
|
|
2803
2867
|
}
|
|
2804
2868
|
function takeWhile(_this__u8e3s4, block) {
|
|
2805
2869
|
_init_properties_ByteReadPacket_kt__28475y();
|
|
2806
|
-
while (!_this__u8e3s4.
|
|
2870
|
+
while (!_this__u8e3s4.hp() && block(_this__u8e3s4.gp())) {
|
|
2807
2871
|
}
|
|
2808
2872
|
}
|
|
2809
2873
|
function discard_0(_this__u8e3s4, count) {
|
|
2810
2874
|
count = count === VOID ? 9223372036854775807n : count;
|
|
2811
2875
|
_init_properties_ByteReadPacket_kt__28475y();
|
|
2812
|
-
_this__u8e3s4.
|
|
2876
|
+
_this__u8e3s4.jp(count);
|
|
2813
2877
|
// Inline function 'kotlin.comparisons.minOf' call
|
|
2814
2878
|
var b = get_remaining(_this__u8e3s4);
|
|
2815
2879
|
var countToDiscard = count <= b ? count : b;
|
|
2816
|
-
_this__u8e3s4.
|
|
2880
|
+
_this__u8e3s4.gp().eq(countToDiscard);
|
|
2817
2881
|
return countToDiscard;
|
|
2818
2882
|
}
|
|
2819
2883
|
var properties_initialized_ByteReadPacket_kt_hw4st4;
|
|
@@ -2826,37 +2890,37 @@
|
|
|
2826
2890
|
function readAvailable_0(_this__u8e3s4, buffer, offset, length) {
|
|
2827
2891
|
offset = offset === VOID ? 0 : offset;
|
|
2828
2892
|
length = length === VOID ? buffer.length - offset | 0 : length;
|
|
2829
|
-
var result = _this__u8e3s4.
|
|
2893
|
+
var result = _this__u8e3s4.fq(buffer, offset, offset + length | 0);
|
|
2830
2894
|
return result === -1 ? 0 : result;
|
|
2831
2895
|
}
|
|
2832
2896
|
function readText_0(_this__u8e3s4, charset, max) {
|
|
2833
|
-
charset = charset === VOID ? Charsets_getInstance().
|
|
2897
|
+
charset = charset === VOID ? Charsets_getInstance().x1x_1 : charset;
|
|
2834
2898
|
max = max === VOID ? 2147483647 : max;
|
|
2835
|
-
if (charset.equals(Charsets_getInstance().
|
|
2899
|
+
if (charset.equals(Charsets_getInstance().x1x_1)) {
|
|
2836
2900
|
if (max === 2147483647)
|
|
2837
2901
|
return readString_0(_this__u8e3s4);
|
|
2838
|
-
var tmp0 = _this__u8e3s4.
|
|
2902
|
+
var tmp0 = _this__u8e3s4.gp().l1();
|
|
2839
2903
|
// Inline function 'kotlin.math.min' call
|
|
2840
2904
|
var b = fromInt(max);
|
|
2841
2905
|
var count = tmp0 <= b ? tmp0 : b;
|
|
2842
|
-
return
|
|
2906
|
+
return readString(_this__u8e3s4, count);
|
|
2843
2907
|
}
|
|
2844
|
-
return decode(charset.
|
|
2908
|
+
return decode(charset.a1y(), _this__u8e3s4, max);
|
|
2845
2909
|
}
|
|
2846
2910
|
function toByteArray_0(_this__u8e3s4, charset) {
|
|
2847
|
-
charset = charset === VOID ? Charsets_getInstance().
|
|
2848
|
-
if (charset.equals(Charsets_getInstance().
|
|
2911
|
+
charset = charset === VOID ? Charsets_getInstance().x1x_1 : charset;
|
|
2912
|
+
if (charset.equals(Charsets_getInstance().x1x_1))
|
|
2849
2913
|
return encodeToByteArray(_this__u8e3s4, VOID, VOID, true);
|
|
2850
|
-
return encodeToByteArray_0(charset.
|
|
2914
|
+
return encodeToByteArray_0(charset.b1y(), _this__u8e3s4, 0, _this__u8e3s4.length);
|
|
2851
2915
|
}
|
|
2852
2916
|
function writeText(_this__u8e3s4, text, fromIndex, toIndex, charset) {
|
|
2853
2917
|
fromIndex = fromIndex === VOID ? 0 : fromIndex;
|
|
2854
2918
|
toIndex = toIndex === VOID ? charSequenceLength(text) : toIndex;
|
|
2855
|
-
charset = charset === VOID ? Charsets_getInstance().
|
|
2856
|
-
if (charset === Charsets_getInstance().
|
|
2919
|
+
charset = charset === VOID ? Charsets_getInstance().x1x_1 : charset;
|
|
2920
|
+
if (charset === Charsets_getInstance().x1x_1) {
|
|
2857
2921
|
return writeString(_this__u8e3s4, toString_1(text), fromIndex, toIndex);
|
|
2858
2922
|
}
|
|
2859
|
-
encodeToImpl(charset.
|
|
2923
|
+
encodeToImpl(charset.b1y(), _this__u8e3s4, text, fromIndex, toIndex);
|
|
2860
2924
|
}
|
|
2861
2925
|
function get_ByteArrayPool() {
|
|
2862
2926
|
_init_properties_ByteArrayPool_kt__kfi3uj();
|
|
@@ -2866,7 +2930,7 @@
|
|
|
2866
2930
|
function ByteArrayPool$1() {
|
|
2867
2931
|
DefaultPool.call(this, 128);
|
|
2868
2932
|
}
|
|
2869
|
-
protoOf(ByteArrayPool$1).
|
|
2933
|
+
protoOf(ByteArrayPool$1).f1y = function () {
|
|
2870
2934
|
return new Int8Array(4096);
|
|
2871
2935
|
};
|
|
2872
2936
|
var properties_initialized_ByteArrayPool_kt_td6pfh;
|
|
@@ -2880,21 +2944,21 @@
|
|
|
2880
2944
|
}
|
|
2881
2945
|
function NoPoolImpl() {
|
|
2882
2946
|
}
|
|
2883
|
-
protoOf(NoPoolImpl).
|
|
2947
|
+
protoOf(NoPoolImpl).n1y = function (instance) {
|
|
2884
2948
|
return Unit_instance;
|
|
2885
2949
|
};
|
|
2886
|
-
protoOf(NoPoolImpl).
|
|
2950
|
+
protoOf(NoPoolImpl).qv = function () {
|
|
2887
2951
|
return Unit_instance;
|
|
2888
2952
|
};
|
|
2889
2953
|
function Companion_2() {
|
|
2890
2954
|
}
|
|
2891
|
-
protoOf(Companion_2).
|
|
2955
|
+
protoOf(Companion_2).o1y = function (name) {
|
|
2892
2956
|
switch (name) {
|
|
2893
2957
|
case 'UTF-8':
|
|
2894
2958
|
case 'utf-8':
|
|
2895
2959
|
case 'UTF8':
|
|
2896
2960
|
case 'utf8':
|
|
2897
|
-
return Charsets_getInstance().
|
|
2961
|
+
return Charsets_getInstance().x1x_1;
|
|
2898
2962
|
}
|
|
2899
2963
|
var tmp;
|
|
2900
2964
|
var tmp_0;
|
|
@@ -2925,11 +2989,11 @@
|
|
|
2925
2989
|
tmp = name === 'latin1' || name === 'Latin1';
|
|
2926
2990
|
}
|
|
2927
2991
|
if (tmp) {
|
|
2928
|
-
return Charsets_getInstance().
|
|
2992
|
+
return Charsets_getInstance().y1x_1;
|
|
2929
2993
|
}
|
|
2930
2994
|
throw IllegalArgumentException_init_$Create$('Charset ' + name + ' is not supported');
|
|
2931
2995
|
};
|
|
2932
|
-
protoOf(Companion_2).
|
|
2996
|
+
protoOf(Companion_2).p1y = function (charset) {
|
|
2933
2997
|
var tmp;
|
|
2934
2998
|
switch (charset) {
|
|
2935
2999
|
case 'UTF-8':
|
|
@@ -2984,7 +3048,7 @@
|
|
|
2984
3048
|
return Companion_instance_3;
|
|
2985
3049
|
}
|
|
2986
3050
|
function Charset(_name) {
|
|
2987
|
-
this.
|
|
3051
|
+
this.z1x_1 = _name;
|
|
2988
3052
|
}
|
|
2989
3053
|
protoOf(Charset).equals = function (other) {
|
|
2990
3054
|
if (this === other)
|
|
@@ -2993,18 +3057,18 @@
|
|
|
2993
3057
|
return false;
|
|
2994
3058
|
if (!(other instanceof Charset))
|
|
2995
3059
|
THROW_CCE();
|
|
2996
|
-
return this.
|
|
3060
|
+
return this.z1x_1 === other.z1x_1;
|
|
2997
3061
|
};
|
|
2998
3062
|
protoOf(Charset).hashCode = function () {
|
|
2999
|
-
return getStringHashCode(this.
|
|
3063
|
+
return getStringHashCode(this.z1x_1);
|
|
3000
3064
|
};
|
|
3001
3065
|
protoOf(Charset).toString = function () {
|
|
3002
|
-
return this.
|
|
3066
|
+
return this.z1x_1;
|
|
3003
3067
|
};
|
|
3004
3068
|
function Charsets() {
|
|
3005
3069
|
Charsets_instance = this;
|
|
3006
|
-
this.
|
|
3007
|
-
this.
|
|
3070
|
+
this.x1x_1 = new CharsetImpl('UTF-8');
|
|
3071
|
+
this.y1x_1 = new CharsetImpl('ISO-8859-1');
|
|
3008
3072
|
}
|
|
3009
3073
|
var Charsets_instance;
|
|
3010
3074
|
function Charsets_getInstance() {
|
|
@@ -3013,37 +3077,39 @@
|
|
|
3013
3077
|
return Charsets_instance;
|
|
3014
3078
|
}
|
|
3015
3079
|
function CharsetDecoder(_charset) {
|
|
3016
|
-
this.
|
|
3080
|
+
this.q1y_1 = _charset;
|
|
3017
3081
|
}
|
|
3018
3082
|
function MalformedInputException(message) {
|
|
3019
3083
|
IOException_init_$Init$_0(message, this);
|
|
3020
3084
|
captureStack(this, MalformedInputException);
|
|
3021
3085
|
}
|
|
3022
3086
|
function get_name(_this__u8e3s4) {
|
|
3023
|
-
return _this__u8e3s4.
|
|
3087
|
+
return _this__u8e3s4.z1x_1;
|
|
3024
3088
|
}
|
|
3025
3089
|
function isSupported(_this__u8e3s4, name) {
|
|
3026
|
-
return Companion_instance_3.
|
|
3090
|
+
return Companion_instance_3.p1y(name);
|
|
3027
3091
|
}
|
|
3028
3092
|
function forName(_this__u8e3s4, name) {
|
|
3029
|
-
return Companion_instance_3.
|
|
3093
|
+
return Companion_instance_3.o1y(name);
|
|
3030
3094
|
}
|
|
3031
3095
|
function CharsetEncoder(_charset) {
|
|
3032
|
-
this.
|
|
3096
|
+
this.r1y_1 = _charset;
|
|
3033
3097
|
}
|
|
3034
3098
|
function decode_0(_this__u8e3s4, input, dst, max) {
|
|
3035
3099
|
var decoder = Decoder(get_name(get_charset(_this__u8e3s4)), true);
|
|
3036
|
-
var tmp0 = input.
|
|
3100
|
+
var tmp0 = input.gp().l1();
|
|
3037
3101
|
// Inline function 'kotlin.comparisons.minOf' call
|
|
3038
3102
|
var b = fromInt(max);
|
|
3039
3103
|
var count = tmp0 <= b ? tmp0 : b;
|
|
3040
|
-
var
|
|
3041
|
-
var
|
|
3042
|
-
var tmp_0;
|
|
3104
|
+
var array = readByteArray(input, convertToInt(count));
|
|
3105
|
+
var tmp;
|
|
3043
3106
|
try {
|
|
3044
|
-
|
|
3107
|
+
// Inline function 'org.khronos.webgl.toInt8Array' call
|
|
3108
|
+
// Inline function 'kotlin.js.unsafeCast' call
|
|
3109
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
3110
|
+
tmp = decoder.s1y(array);
|
|
3045
3111
|
} catch ($p) {
|
|
3046
|
-
var
|
|
3112
|
+
var tmp_0;
|
|
3047
3113
|
if ($p instanceof Error) {
|
|
3048
3114
|
var cause = $p;
|
|
3049
3115
|
var tmp0_elvis_lhs = cause.message;
|
|
@@ -3052,7 +3118,7 @@
|
|
|
3052
3118
|
throw $p;
|
|
3053
3119
|
}
|
|
3054
3120
|
}
|
|
3055
|
-
var result =
|
|
3121
|
+
var result = tmp;
|
|
3056
3122
|
dst.k1(result);
|
|
3057
3123
|
return result.length;
|
|
3058
3124
|
}
|
|
@@ -3063,11 +3129,11 @@
|
|
|
3063
3129
|
var message = 'Failed requirement.';
|
|
3064
3130
|
throw IllegalArgumentException_init_$Create$(toString_1(message));
|
|
3065
3131
|
}
|
|
3066
|
-
if (get_charset_0(_this__u8e3s4).equals(Charsets_getInstance().
|
|
3132
|
+
if (get_charset_0(_this__u8e3s4).equals(Charsets_getInstance().y1x_1)) {
|
|
3067
3133
|
return encodeISO88591(input, fromIndex, toIndex, dst);
|
|
3068
3134
|
}
|
|
3069
3135
|
// Inline function 'kotlin.require' call
|
|
3070
|
-
if (!(get_charset_0(_this__u8e3s4) === Charsets_getInstance().
|
|
3136
|
+
if (!(get_charset_0(_this__u8e3s4) === Charsets_getInstance().x1x_1)) {
|
|
3071
3137
|
var message_0 = 'Only UTF-8 encoding is supported in JS';
|
|
3072
3138
|
throw IllegalArgumentException_init_$Create$(toString_1(message_0));
|
|
3073
3139
|
}
|
|
@@ -3077,7 +3143,7 @@
|
|
|
3077
3143
|
var result = encoder.encode(tmp$ret$5);
|
|
3078
3144
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
3079
3145
|
// Inline function 'kotlin.js.asDynamic' call
|
|
3080
|
-
dst.
|
|
3146
|
+
dst.tq(result);
|
|
3081
3147
|
return result.length;
|
|
3082
3148
|
}
|
|
3083
3149
|
function encodeToByteArray_0(_this__u8e3s4, input, fromIndex, toIndex) {
|
|
@@ -3088,17 +3154,17 @@
|
|
|
3088
3154
|
function CharsetImpl(name) {
|
|
3089
3155
|
Charset.call(this, name);
|
|
3090
3156
|
}
|
|
3091
|
-
protoOf(CharsetImpl).
|
|
3157
|
+
protoOf(CharsetImpl).b1y = function () {
|
|
3092
3158
|
return new CharsetEncoderImpl(this);
|
|
3093
3159
|
};
|
|
3094
|
-
protoOf(CharsetImpl).
|
|
3160
|
+
protoOf(CharsetImpl).a1y = function () {
|
|
3095
3161
|
return new CharsetDecoderImpl(this);
|
|
3096
3162
|
};
|
|
3097
3163
|
function get_charset(_this__u8e3s4) {
|
|
3098
|
-
return _this__u8e3s4.
|
|
3164
|
+
return _this__u8e3s4.q1y_1;
|
|
3099
3165
|
}
|
|
3100
3166
|
function get_charset_0(_this__u8e3s4) {
|
|
3101
|
-
return _this__u8e3s4.
|
|
3167
|
+
return _this__u8e3s4.r1y_1;
|
|
3102
3168
|
}
|
|
3103
3169
|
function encodeToByteArrayImpl(_this__u8e3s4, input, fromIndex, toIndex) {
|
|
3104
3170
|
fromIndex = fromIndex === VOID ? 0 : fromIndex;
|
|
@@ -3117,39 +3183,39 @@
|
|
|
3117
3183
|
}
|
|
3118
3184
|
function CharsetEncoderImpl(charset) {
|
|
3119
3185
|
CharsetEncoder.call(this, charset);
|
|
3120
|
-
this.
|
|
3186
|
+
this.v1y_1 = charset;
|
|
3121
3187
|
}
|
|
3122
3188
|
protoOf(CharsetEncoderImpl).toString = function () {
|
|
3123
|
-
return 'CharsetEncoderImpl(charset=' + this.
|
|
3189
|
+
return 'CharsetEncoderImpl(charset=' + this.v1y_1.toString() + ')';
|
|
3124
3190
|
};
|
|
3125
3191
|
protoOf(CharsetEncoderImpl).hashCode = function () {
|
|
3126
|
-
return this.
|
|
3192
|
+
return this.v1y_1.hashCode();
|
|
3127
3193
|
};
|
|
3128
3194
|
protoOf(CharsetEncoderImpl).equals = function (other) {
|
|
3129
3195
|
if (this === other)
|
|
3130
3196
|
return true;
|
|
3131
3197
|
if (!(other instanceof CharsetEncoderImpl))
|
|
3132
3198
|
return false;
|
|
3133
|
-
if (!this.
|
|
3199
|
+
if (!this.v1y_1.equals(other.v1y_1))
|
|
3134
3200
|
return false;
|
|
3135
3201
|
return true;
|
|
3136
3202
|
};
|
|
3137
3203
|
function CharsetDecoderImpl(charset) {
|
|
3138
3204
|
CharsetDecoder.call(this, charset);
|
|
3139
|
-
this.
|
|
3205
|
+
this.x1y_1 = charset;
|
|
3140
3206
|
}
|
|
3141
3207
|
protoOf(CharsetDecoderImpl).toString = function () {
|
|
3142
|
-
return 'CharsetDecoderImpl(charset=' + this.
|
|
3208
|
+
return 'CharsetDecoderImpl(charset=' + this.x1y_1.toString() + ')';
|
|
3143
3209
|
};
|
|
3144
3210
|
protoOf(CharsetDecoderImpl).hashCode = function () {
|
|
3145
|
-
return this.
|
|
3211
|
+
return this.x1y_1.hashCode();
|
|
3146
3212
|
};
|
|
3147
3213
|
protoOf(CharsetDecoderImpl).equals = function (other) {
|
|
3148
3214
|
if (this === other)
|
|
3149
3215
|
return true;
|
|
3150
3216
|
if (!(other instanceof CharsetDecoderImpl))
|
|
3151
3217
|
return false;
|
|
3152
|
-
if (!this.
|
|
3218
|
+
if (!this.x1y_1.equals(other.x1y_1))
|
|
3153
3219
|
return false;
|
|
3154
3220
|
return true;
|
|
3155
3221
|
};
|
|
@@ -3183,10 +3249,10 @@
|
|
|
3183
3249
|
return this_0;
|
|
3184
3250
|
}
|
|
3185
3251
|
function toKtor$1($this_toKtor) {
|
|
3186
|
-
this.
|
|
3252
|
+
this.y1y_1 = $this_toKtor;
|
|
3187
3253
|
}
|
|
3188
|
-
protoOf(toKtor$1).
|
|
3189
|
-
return this.
|
|
3254
|
+
protoOf(toKtor$1).s1y = function (buffer) {
|
|
3255
|
+
return this.y1y_1.decode(buffer);
|
|
3190
3256
|
};
|
|
3191
3257
|
function get_ENCODING_ALIASES() {
|
|
3192
3258
|
_init_properties_TextDecoderFallback_js_kt__an7r6m();
|
|
@@ -3199,18 +3265,18 @@
|
|
|
3199
3265
|
}
|
|
3200
3266
|
var REPLACEMENT;
|
|
3201
3267
|
function TextDecoderFallback(encoding, fatal) {
|
|
3202
|
-
this.
|
|
3268
|
+
this.z1y_1 = fatal;
|
|
3203
3269
|
// Inline function 'kotlin.text.trim' call
|
|
3204
3270
|
// Inline function 'kotlin.text.lowercase' call
|
|
3205
3271
|
// Inline function 'kotlin.js.asDynamic' call
|
|
3206
3272
|
var requestedEncoding = toString_1(trim(isCharSequence(encoding) ? encoding : THROW_CCE())).toLowerCase();
|
|
3207
3273
|
// Inline function 'kotlin.check' call
|
|
3208
|
-
if (!get_ENCODING_ALIASES().
|
|
3274
|
+
if (!get_ENCODING_ALIASES().n2(requestedEncoding)) {
|
|
3209
3275
|
var message = encoding + ' is not supported.';
|
|
3210
3276
|
throw IllegalStateException_init_$Create$(toString_1(message));
|
|
3211
3277
|
}
|
|
3212
3278
|
}
|
|
3213
|
-
protoOf(TextDecoderFallback).
|
|
3279
|
+
protoOf(TextDecoderFallback).s1y = function (buffer) {
|
|
3214
3280
|
// Inline function 'io.ktor.utils.io.core.buildPacket' call
|
|
3215
3281
|
var builder = new Buffer();
|
|
3216
3282
|
var bytes = buffer instanceof Int8Array ? buffer : THROW_CCE();
|
|
@@ -3226,7 +3292,7 @@
|
|
|
3226
3292
|
var point = toCodePoint(byte);
|
|
3227
3293
|
if (point < 0) {
|
|
3228
3294
|
// Inline function 'kotlin.check' call
|
|
3229
|
-
if (!!this.
|
|
3295
|
+
if (!!this.z1y_1) {
|
|
3230
3296
|
var message = 'Invalid character: ' + point;
|
|
3231
3297
|
throw IllegalStateException_init_$Create$(toString_1(message));
|
|
3232
3298
|
}
|
|
@@ -3234,9 +3300,9 @@
|
|
|
3234
3300
|
continue $l$loop;
|
|
3235
3301
|
}
|
|
3236
3302
|
if (point > 255) {
|
|
3237
|
-
builder.
|
|
3303
|
+
builder.ar(toByte(point >> 8));
|
|
3238
3304
|
}
|
|
3239
|
-
builder.
|
|
3305
|
+
builder.ar(toByte(point & 255));
|
|
3240
3306
|
}
|
|
3241
3307
|
while (inductionVariable < last);
|
|
3242
3308
|
return decodeToString_0(readByteArray_0(builder));
|
|
@@ -3266,7 +3332,7 @@
|
|
|
3266
3332
|
return false;
|
|
3267
3333
|
}
|
|
3268
3334
|
function ioDispatcher() {
|
|
3269
|
-
return Dispatchers_getInstance().
|
|
3335
|
+
return Dispatchers_getInstance().i15_1;
|
|
3270
3336
|
}
|
|
3271
3337
|
function encodeISO88591(input, fromIndex, toIndex, dst) {
|
|
3272
3338
|
if (fromIndex >= toIndex)
|
|
@@ -3282,7 +3348,7 @@
|
|
|
3282
3348
|
if (character > 255) {
|
|
3283
3349
|
failedToMapError(character);
|
|
3284
3350
|
}
|
|
3285
|
-
dst.
|
|
3351
|
+
dst.ar(toByte(character));
|
|
3286
3352
|
}
|
|
3287
3353
|
while (inductionVariable < toIndex);
|
|
3288
3354
|
return toIndex - fromIndex | 0;
|
|
@@ -3304,64 +3370,64 @@
|
|
|
3304
3370
|
}
|
|
3305
3371
|
}
|
|
3306
3372
|
function DefaultPool(capacity) {
|
|
3307
|
-
this.
|
|
3373
|
+
this.g1y_1 = capacity;
|
|
3308
3374
|
var tmp = this;
|
|
3309
3375
|
// Inline function 'kotlin.arrayOfNulls' call
|
|
3310
|
-
var size = this.
|
|
3311
|
-
tmp.
|
|
3312
|
-
this.
|
|
3376
|
+
var size = this.g1y_1;
|
|
3377
|
+
tmp.h1y_1 = Array(size);
|
|
3378
|
+
this.i1y_1 = 0;
|
|
3313
3379
|
}
|
|
3314
|
-
protoOf(DefaultPool).
|
|
3380
|
+
protoOf(DefaultPool).j1y = function (instance) {
|
|
3315
3381
|
};
|
|
3316
|
-
protoOf(DefaultPool).
|
|
3382
|
+
protoOf(DefaultPool).k1y = function (instance) {
|
|
3317
3383
|
return instance;
|
|
3318
3384
|
};
|
|
3319
|
-
protoOf(DefaultPool).
|
|
3385
|
+
protoOf(DefaultPool).l1y = function (instance) {
|
|
3320
3386
|
};
|
|
3321
|
-
protoOf(DefaultPool).
|
|
3322
|
-
if (this.
|
|
3323
|
-
return this.
|
|
3324
|
-
this.
|
|
3325
|
-
var idx = this.
|
|
3326
|
-
var tmp = this.
|
|
3387
|
+
protoOf(DefaultPool).m1y = function () {
|
|
3388
|
+
if (this.i1y_1 === 0)
|
|
3389
|
+
return this.f1y();
|
|
3390
|
+
this.i1y_1 = this.i1y_1 - 1 | 0;
|
|
3391
|
+
var idx = this.i1y_1;
|
|
3392
|
+
var tmp = this.h1y_1[idx];
|
|
3327
3393
|
var instance = !(tmp == null) ? tmp : THROW_CCE();
|
|
3328
|
-
this.
|
|
3329
|
-
return this.
|
|
3394
|
+
this.h1y_1[idx] = null;
|
|
3395
|
+
return this.k1y(instance);
|
|
3330
3396
|
};
|
|
3331
|
-
protoOf(DefaultPool).
|
|
3332
|
-
this.
|
|
3333
|
-
if (this.
|
|
3334
|
-
this.
|
|
3397
|
+
protoOf(DefaultPool).n1y = function (instance) {
|
|
3398
|
+
this.l1y(instance);
|
|
3399
|
+
if (this.i1y_1 === this.g1y_1) {
|
|
3400
|
+
this.j1y(instance);
|
|
3335
3401
|
} else {
|
|
3336
|
-
var _unary__edvuaz = this.
|
|
3337
|
-
this.
|
|
3338
|
-
this.
|
|
3402
|
+
var _unary__edvuaz = this.i1y_1;
|
|
3403
|
+
this.i1y_1 = _unary__edvuaz + 1 | 0;
|
|
3404
|
+
this.h1y_1[_unary__edvuaz] = instance;
|
|
3339
3405
|
}
|
|
3340
3406
|
};
|
|
3341
|
-
protoOf(DefaultPool).
|
|
3407
|
+
protoOf(DefaultPool).qv = function () {
|
|
3342
3408
|
var inductionVariable = 0;
|
|
3343
|
-
var last = this.
|
|
3409
|
+
var last = this.i1y_1;
|
|
3344
3410
|
if (inductionVariable < last)
|
|
3345
3411
|
do {
|
|
3346
3412
|
var i = inductionVariable;
|
|
3347
3413
|
inductionVariable = inductionVariable + 1 | 0;
|
|
3348
|
-
var tmp = this.
|
|
3414
|
+
var tmp = this.h1y_1[i];
|
|
3349
3415
|
var instance = !(tmp == null) ? tmp : THROW_CCE();
|
|
3350
|
-
this.
|
|
3351
|
-
this.
|
|
3416
|
+
this.h1y_1[i] = null;
|
|
3417
|
+
this.j1y(instance);
|
|
3352
3418
|
}
|
|
3353
3419
|
while (inductionVariable < last);
|
|
3354
|
-
this.
|
|
3420
|
+
this.i1y_1 = 0;
|
|
3355
3421
|
};
|
|
3356
3422
|
//region block: post-declaration
|
|
3357
|
-
protoOf(Read).
|
|
3358
|
-
protoOf(Read).
|
|
3359
|
-
protoOf(Write).
|
|
3360
|
-
protoOf(Write).
|
|
3361
|
-
protoOf(ByteChannel).
|
|
3362
|
-
protoOf(ByteReadChannel$Companion$Empty$1).
|
|
3363
|
-
protoOf(CountedByteReadChannel).
|
|
3364
|
-
protoOf(SourceByteReadChannel).
|
|
3423
|
+
protoOf(Read).w1l = resume;
|
|
3424
|
+
protoOf(Read).x1l = resume_0;
|
|
3425
|
+
protoOf(Write).w1l = resume;
|
|
3426
|
+
protoOf(Write).x1l = resume_0;
|
|
3427
|
+
protoOf(ByteChannel).c1o = awaitContent$default;
|
|
3428
|
+
protoOf(ByteReadChannel$Companion$Empty$1).c1o = awaitContent$default;
|
|
3429
|
+
protoOf(CountedByteReadChannel).c1o = awaitContent$default;
|
|
3430
|
+
protoOf(SourceByteReadChannel).c1o = awaitContent$default;
|
|
3365
3431
|
protoOf(DefaultPool).l4 = close;
|
|
3366
3432
|
protoOf(NoPoolImpl).l4 = close;
|
|
3367
3433
|
//endregion
|
|
@@ -3371,52 +3437,55 @@
|
|
|
3371
3437
|
//endregion
|
|
3372
3438
|
//region block: exports
|
|
3373
3439
|
_.$_$ = _.$_$ || {};
|
|
3374
|
-
_.$_$.a =
|
|
3375
|
-
_.$_$.b =
|
|
3376
|
-
_.$_$.c =
|
|
3377
|
-
_.$_$.d =
|
|
3378
|
-
_.$_$.e =
|
|
3379
|
-
_.$_$.f =
|
|
3380
|
-
_.$_$.g =
|
|
3381
|
-
_.$_$.h =
|
|
3382
|
-
_.$_$.i =
|
|
3383
|
-
_.$_$.j =
|
|
3384
|
-
_.$_$.k =
|
|
3385
|
-
_.$_$.l =
|
|
3386
|
-
_.$_$.m =
|
|
3387
|
-
_.$_$.n =
|
|
3388
|
-
_.$_$.o =
|
|
3389
|
-
_.$_$.p =
|
|
3390
|
-
_.$_$.q =
|
|
3440
|
+
_.$_$.a = Charsets_getInstance;
|
|
3441
|
+
_.$_$.b = Companion_getInstance_0;
|
|
3442
|
+
_.$_$.c = Companion_getInstance_1;
|
|
3443
|
+
_.$_$.d = copyTo;
|
|
3444
|
+
_.$_$.e = discard;
|
|
3445
|
+
_.$_$.f = readAvailable;
|
|
3446
|
+
_.$_$.g = readBuffer;
|
|
3447
|
+
_.$_$.h = readLineStrictTo;
|
|
3448
|
+
_.$_$.i = readPacket;
|
|
3449
|
+
_.$_$.j = readRemaining;
|
|
3450
|
+
_.$_$.k = readRemaining_0;
|
|
3451
|
+
_.$_$.l = readUntil;
|
|
3452
|
+
_.$_$.m = skipIfFound;
|
|
3453
|
+
_.$_$.n = toByteArray;
|
|
3454
|
+
_.$_$.o = writeFully;
|
|
3455
|
+
_.$_$.p = writePacket;
|
|
3456
|
+
_.$_$.q = LineEndingMode__plus_impl_ttpz2j;
|
|
3391
3457
|
_.$_$.r = MalformedInputException;
|
|
3392
3458
|
_.$_$.s = decode;
|
|
3393
3459
|
_.$_$.t = encode;
|
|
3394
3460
|
_.$_$.u = forName;
|
|
3395
3461
|
_.$_$.v = isSupported;
|
|
3396
3462
|
_.$_$.w = get_name;
|
|
3397
|
-
_.$_$.x =
|
|
3398
|
-
_.$_$.y =
|
|
3399
|
-
_.$_$.z =
|
|
3400
|
-
_.$_$.a1 =
|
|
3401
|
-
_.$_$.b1 =
|
|
3402
|
-
_.$_$.c1 =
|
|
3403
|
-
_.$_$.d1 =
|
|
3404
|
-
_.$_$.e1 =
|
|
3405
|
-
_.$_$.f1 =
|
|
3406
|
-
_.$_$.g1 =
|
|
3407
|
-
_.$_$.h1 =
|
|
3408
|
-
_.$_$.i1 =
|
|
3409
|
-
_.$_$.j1 =
|
|
3410
|
-
_.$_$.k1 =
|
|
3411
|
-
_.$_$.l1 =
|
|
3412
|
-
_.$_$.m1 =
|
|
3413
|
-
_.$_$.n1 =
|
|
3414
|
-
_.$_$.o1 =
|
|
3415
|
-
_.$_$.p1 =
|
|
3416
|
-
_.$_$.q1 =
|
|
3417
|
-
_.$_$.r1 =
|
|
3418
|
-
_.$_$.s1 =
|
|
3419
|
-
_.$_$.t1 =
|
|
3463
|
+
_.$_$.x = BytePacketBuilder;
|
|
3464
|
+
_.$_$.y = build;
|
|
3465
|
+
_.$_$.z = canRead;
|
|
3466
|
+
_.$_$.a1 = discard_0;
|
|
3467
|
+
_.$_$.b1 = readText_0;
|
|
3468
|
+
_.$_$.c1 = get_remaining;
|
|
3469
|
+
_.$_$.d1 = get_size;
|
|
3470
|
+
_.$_$.e1 = takeWhile;
|
|
3471
|
+
_.$_$.f1 = toByteArray_0;
|
|
3472
|
+
_.$_$.g1 = writeFully_0;
|
|
3473
|
+
_.$_$.h1 = writeText;
|
|
3474
|
+
_.$_$.i1 = get_ByteArrayPool;
|
|
3475
|
+
_.$_$.j1 = DefaultPool;
|
|
3476
|
+
_.$_$.k1 = NoPoolImpl;
|
|
3477
|
+
_.$_$.l1 = ByteChannel;
|
|
3478
|
+
_.$_$.m1 = ByteReadChannel;
|
|
3479
|
+
_.$_$.n1 = ByteReadChannel_1;
|
|
3480
|
+
_.$_$.o1 = ClosedByteChannelException;
|
|
3481
|
+
_.$_$.p1 = WriterScope;
|
|
3482
|
+
_.$_$.q1 = cancel_0;
|
|
3483
|
+
_.$_$.r1 = close_0;
|
|
3484
|
+
_.$_$.s1 = counted;
|
|
3485
|
+
_.$_$.t1 = invokeOnCompletion;
|
|
3486
|
+
_.$_$.u1 = ioDispatcher;
|
|
3487
|
+
_.$_$.v1 = readText;
|
|
3488
|
+
_.$_$.w1 = writer;
|
|
3420
3489
|
//endregion
|
|
3421
3490
|
return _;
|
|
3422
3491
|
}(module.exports, require('./kotlin-kotlin-stdlib.js'), require('./kotlinx-coroutines-core.js'), require('./kotlinx-io-kotlinx-io-core.js'), require('./kotlinx-atomicfu.js'), require('./kotlinx-io-kotlinx-io-bytestring.js')));
|