@solibo/home-api 1.15.15 → 1.16.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-DateTime-library-kotlinx-datetime.mjs +1019 -943
- package/Kotlin-DateTime-library-kotlinx-datetime.mjs.map +1 -0
- package/MultiplatformSettings-multiplatform-settings-no-arg.mjs +1 -1
- package/MultiplatformSettings-multiplatform-settings-no-arg.mjs.map +1 -0
- package/MultiplatformSettings-multiplatform-settings.mjs +1 -1
- package/MultiplatformSettings-multiplatform-settings.mjs.map +1 -0
- package/kotlin-kotlin-stdlib.mjs +2223 -1914
- package/kotlin-kotlin-stdlib.mjs.map +1 -0
- package/kotlin_org_jetbrains_kotlin_kotlin_dom_api_compat.mjs +1 -1
- package/kotlin_org_jetbrains_kotlin_kotlin_dom_api_compat.mjs.map +1 -0
- package/kotlinx-atomicfu.mjs +14 -14
- package/kotlinx-atomicfu.mjs.map +1 -0
- package/kotlinx-browser.mjs +1 -1
- package/kotlinx-browser.mjs.map +1 -0
- package/kotlinx-coroutines-core.mjs +2307 -2247
- package/kotlinx-coroutines-core.mjs.map +1 -0
- package/kotlinx-io-kotlinx-io-bytestring.mjs +41 -41
- package/kotlinx-io-kotlinx-io-bytestring.mjs.map +1 -0
- package/kotlinx-io-kotlinx-io-core.mjs +474 -470
- package/kotlinx-io-kotlinx-io-core.mjs.map +1 -0
- package/kotlinx-serialization-kotlinx-serialization-core.mjs +1909 -1910
- package/kotlinx-serialization-kotlinx-serialization-core.mjs.map +1 -0
- package/kotlinx-serialization-kotlinx-serialization-json-io.mjs +1 -1
- package/kotlinx-serialization-kotlinx-serialization-json-io.mjs.map +1 -0
- package/kotlinx-serialization-kotlinx-serialization-json.mjs +1986 -1658
- package/kotlinx-serialization-kotlinx-serialization-json.mjs.map +1 -0
- package/ktor-ktor-client-auth.mjs +1 -1
- package/ktor-ktor-client-auth.mjs.map +1 -0
- package/ktor-ktor-client-content-negotiation.mjs +260 -234
- package/ktor-ktor-client-content-negotiation.mjs.map +1 -0
- package/ktor-ktor-client-core.mjs +3240 -3326
- package/ktor-ktor-client-core.mjs.map +1 -0
- package/ktor-ktor-client-encoding.mjs +1 -1
- package/ktor-ktor-client-encoding.mjs.map +1 -0
- package/ktor-ktor-client-logging.mjs +1 -1
- package/ktor-ktor-client-logging.mjs.map +1 -0
- package/ktor-ktor-client-websockets.mjs +1 -1
- package/ktor-ktor-client-websockets.mjs.map +1 -0
- package/ktor-ktor-events.mjs +8 -8
- package/ktor-ktor-events.mjs.map +1 -0
- package/ktor-ktor-http-cio.mjs +525 -530
- package/ktor-ktor-http-cio.mjs.map +1 -0
- package/ktor-ktor-http.mjs +735 -766
- package/ktor-ktor-http.mjs.map +1 -0
- package/ktor-ktor-io.mjs +1502 -1279
- package/ktor-ktor-io.mjs.map +1 -0
- package/ktor-ktor-serialization-kotlinx-json.mjs +10 -10
- package/ktor-ktor-serialization-kotlinx-json.mjs.map +1 -0
- package/ktor-ktor-serialization-kotlinx.mjs +272 -389
- package/ktor-ktor-serialization-kotlinx.mjs.map +1 -0
- package/ktor-ktor-serialization.mjs +113 -142
- package/ktor-ktor-serialization.mjs.map +1 -0
- package/ktor-ktor-sse.mjs +1 -1
- package/ktor-ktor-sse.mjs.map +1 -0
- package/ktor-ktor-utils.mjs +812 -787
- package/ktor-ktor-utils.mjs.map +1 -0
- package/ktor-ktor-websocket-serialization.mjs +1 -1
- package/ktor-ktor-websocket-serialization.mjs.map +1 -0
- package/ktor-ktor-websockets.mjs +901 -862
- package/ktor-ktor-websockets.mjs.map +1 -0
- package/package.json +2 -2
- package/solibo-sdk-sdk-home-api.d.mts +127 -14
- package/solibo-sdk-sdk-home-api.mjs +110003 -108257
- package/solibo-sdk-sdk-home-api.mjs.map +1 -0
package/ktor-ktor-io.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
Companion_instance1co2nkledm2ru as Companion_instance,
|
|
3
|
+
Unit_instance3vdlo4e4f5ggx as Unit_instance,
|
|
4
|
+
_Result___init__impl__xyqfz810za1hm0unrcw as _Result___init__impl__xyqfz8,
|
|
5
5
|
protoOf180f3jzyo7rfj as protoOf,
|
|
6
6
|
initMetadataForCompanion1wyw17z38v6ac as initMetadataForCompanion,
|
|
7
7
|
initMetadataForObject1cxne3s9w65el as initMetadataForObject,
|
|
@@ -17,40 +17,43 @@ import {
|
|
|
17
17
|
stackTraceToString2670q6lbhdojj as stackTraceToString,
|
|
18
18
|
VOID3gxj6tk5isa35 as VOID,
|
|
19
19
|
isInterface3d6p8outrmvmk as isInterface,
|
|
20
|
+
FunctionAdapter3lcrrz3moet5b as FunctionAdapter,
|
|
20
21
|
CoroutineImpl2sn3kjnwmfr10 as CoroutineImpl,
|
|
21
22
|
fromInt2ii0rejb1w62w as fromInt,
|
|
22
23
|
numberToLong2pakxeg38estk as numberToLong,
|
|
23
24
|
add2suhfggl4zvkk as add,
|
|
24
25
|
intercepted2ogpsikxxj4u0 as intercepted,
|
|
25
26
|
noWhenBranchMatchedException2a6r7ubxgky5j as noWhenBranchMatchedException,
|
|
26
|
-
|
|
27
|
+
returnIfSuspended216etyc2z49su as returnIfSuspended,
|
|
27
28
|
get_COROUTINE_SUSPENDED3ujt3p13qm4iy as get_COROUTINE_SUSPENDED,
|
|
28
29
|
initMetadataForCoroutine1i7lbatuf5bnt as initMetadataForCoroutine,
|
|
30
|
+
CancellationException_init_$Create$3mozl5zk7b7i2 as CancellationException_init_$Create$,
|
|
31
|
+
CancellationException3b36o9qz53rgr as CancellationException,
|
|
29
32
|
convertToInty04h231mmjoh as convertToInt,
|
|
33
|
+
toString1pkumu07cwy4m as toString_1,
|
|
34
|
+
IllegalStateException_init_$Create$3394faf8tdm0h as IllegalStateException_init_$Create$,
|
|
30
35
|
IllegalStateExceptionkoljg5n0nrlr as IllegalStateException,
|
|
31
|
-
IllegalStateException_init_$Init$
|
|
36
|
+
IllegalStateException_init_$Init$1o0uxbvfescy4 as IllegalStateException_init_$Init$,
|
|
32
37
|
captureStack1fzi4aczwc4hg as captureStack,
|
|
33
38
|
replace3le3ie7l9k8aq as replace,
|
|
34
39
|
THROW_CCE2g6jy02ryeudk as THROW_CCE,
|
|
35
40
|
get_ONEazvfdh9ju3d4 as get_ONE,
|
|
36
|
-
|
|
37
|
-
IllegalArgumentException_init_$Create$i4126l9nkbuo as IllegalArgumentException_init_$Create$,
|
|
41
|
+
IllegalArgumentException_init_$Create$1mgk48flhjim3 as IllegalArgumentException_init_$Create$,
|
|
38
42
|
subtract2orl8z9upxd9l as subtract,
|
|
39
|
-
|
|
40
|
-
|
|
43
|
+
constructCallableReference23y65rf941mch as constructCallableReference,
|
|
44
|
+
EmptyCoroutineContext_instancegbhtm9svfl3r as EmptyCoroutineContext_instance,
|
|
41
45
|
Continuation1aa2oekvx7jm7 as Continuation,
|
|
46
|
+
KFunctionImpl1wt0sp8rkf847 as KFunctionImpl,
|
|
42
47
|
initMetadataForFunctionReferencen3g5fpj34t8u as initMetadataForFunctionReference,
|
|
43
48
|
initMetadataForLambda3af3he42mmnh as initMetadataForLambda,
|
|
44
|
-
CancellationException_init_$Create$3ch6sfo7bilrl as CancellationException_init_$Create$,
|
|
45
|
-
CancellationException3b36o9qz53rgr as CancellationException,
|
|
46
49
|
Enum3alwj03lh1n41 as Enum,
|
|
47
|
-
ArrayList_init_$Create$
|
|
50
|
+
ArrayList_init_$Create$1z3aa4voswqq as ArrayList_init_$Create$,
|
|
48
51
|
listOf1jh22dvmctj1r as listOf,
|
|
49
|
-
StringBuilder_init_$Create$
|
|
52
|
+
StringBuilder_init_$Create$3q4yitjcnfjo as StringBuilder_init_$Create$,
|
|
50
53
|
charSequenceLength3278n89t01tmv as charSequenceLength,
|
|
51
|
-
|
|
54
|
+
encodeToByteArray1onwao0uakjfh as encodeToByteArray,
|
|
52
55
|
AutoCloseable1l5p57f9lp7kv as AutoCloseable,
|
|
53
|
-
|
|
56
|
+
_Char___init__impl__6a9atx2yltdocdrxs4d as _Char___init__impl__6a9atx,
|
|
54
57
|
replaceqbix900hl8kl as replace_0,
|
|
55
58
|
getStringHashCode26igk1bx568vk as getStringHashCode,
|
|
56
59
|
charSequenceSubSequence1iwpdba8s3jc7 as charSequenceSubSequence,
|
|
@@ -60,33 +63,35 @@ import {
|
|
|
60
63
|
decodeToString1x4faah2liw2p as decodeToString,
|
|
61
64
|
setOf45ia9pnfhe90 as setOf,
|
|
62
65
|
charSequenceGet1vxk1y5n17t1z as charSequenceGet,
|
|
63
|
-
|
|
66
|
+
Char__toInt_impl_vasixd1ka89vowck9tn as Char__toInt_impl_vasixd,
|
|
64
67
|
} from './kotlin-kotlin-stdlib.mjs';
|
|
65
68
|
import {
|
|
69
|
+
DisposableHandle1uzxt8frdchxn as DisposableHandle,
|
|
66
70
|
CancellableContinuationImpl1cx201opicavg as CancellableContinuationImpl,
|
|
71
|
+
CopyableThrowable1mvc99jcyvivf as CopyableThrowable,
|
|
67
72
|
CoroutineScopefcb5f5dwqcas as CoroutineScope,
|
|
68
73
|
startCoroutineCancellable18shtfwdieib as startCoroutineCancellable,
|
|
69
74
|
launch1c91vkjzdi9sd as launch,
|
|
70
75
|
get_job2zvlvce9o9a29 as get_job,
|
|
71
76
|
Job13y4jkazwjho0 as Job,
|
|
72
77
|
cancel1xim2hrvjmwpn as cancel,
|
|
73
|
-
|
|
74
|
-
Dispatchers_getInstance2p2r3ndn98nn as Dispatchers_getInstance,
|
|
78
|
+
Dispatchers_getInstance20p7pyqnrepag as Dispatchers_getInstance,
|
|
75
79
|
} from './kotlinx-coroutines-core.mjs';
|
|
76
80
|
import {
|
|
77
81
|
Buffergs925ekssbch as Buffer,
|
|
78
|
-
IOException_init_$Create$
|
|
82
|
+
IOException_init_$Create$30ael4xxp8cz as IOException_init_$Create$,
|
|
79
83
|
indexOf29nspdgx2e3ap as indexOf,
|
|
80
|
-
EOFException_init_$Create$
|
|
84
|
+
EOFException_init_$Create$28fkhq0q0kobq as EOFException_init_$Create$,
|
|
81
85
|
readString3v6duspiz33tv as readString,
|
|
82
86
|
readByteString2hnsbql6t4ads as readByteString,
|
|
83
|
-
|
|
87
|
+
readStringo8i62qxt5m4m as readString_0,
|
|
88
|
+
readString2nvggcfaijfhd as readString_1,
|
|
84
89
|
IOException1wyutdmfe71nu as IOException,
|
|
85
|
-
IOException_init_$Init$
|
|
86
|
-
IOException_init_$Create$
|
|
90
|
+
IOException_init_$Init$1v5tzhogkz08y as IOException_init_$Init$,
|
|
91
|
+
IOException_init_$Create$1n9wqi59tj1t7 as IOException_init_$Create$_0,
|
|
87
92
|
readByteArray1fhzfwi2j014k as readByteArray,
|
|
88
93
|
writeString33ca4btrgctw7 as writeString,
|
|
89
|
-
IOException_init_$Init$
|
|
94
|
+
IOException_init_$Init$214bkj3jbj847 as IOException_init_$Init$_0,
|
|
90
95
|
readByteArray1ri21h2rciakw as readByteArray_0,
|
|
91
96
|
} from './kotlinx-io-kotlinx-io-core.mjs';
|
|
92
97
|
import { atomic$ref$130aurmcwdfdf1 as atomic$ref$1 } from './kotlinx-atomicfu.mjs';
|
|
@@ -98,10 +103,10 @@ initMetadataForCompanion(Companion);
|
|
|
98
103
|
initMetadataForObject(Empty, 'Empty');
|
|
99
104
|
initMetadataForClass(Closed, 'Closed');
|
|
100
105
|
function resume() {
|
|
101
|
-
return this.
|
|
106
|
+
return this.y1e().v8(Companion_getInstance().v1e_1);
|
|
102
107
|
}
|
|
103
108
|
function resume_0(throwable) {
|
|
104
|
-
var tmp = this.
|
|
109
|
+
var tmp = this.y1e();
|
|
105
110
|
var tmp_0;
|
|
106
111
|
if (throwable == null) {
|
|
107
112
|
tmp_0 = null;
|
|
@@ -112,17 +117,18 @@ function resume_0(throwable) {
|
|
|
112
117
|
tmp_0 = new Result(tmp$ret$0);
|
|
113
118
|
}
|
|
114
119
|
var tmp1_elvis_lhs = tmp_0;
|
|
115
|
-
return tmp.
|
|
120
|
+
return tmp.v8(tmp1_elvis_lhs == null ? Companion_getInstance().v1e_1 : tmp1_elvis_lhs.mm_1);
|
|
116
121
|
}
|
|
117
122
|
initMetadataForInterface(Task, 'Task');
|
|
118
123
|
initMetadataForClass(Read, 'Read', VOID, VOID, [Task]);
|
|
119
124
|
initMetadataForClass(Write, 'Write', VOID, VOID, [Task]);
|
|
125
|
+
initMetadataForClass(sam$kotlinx_coroutines_DisposableHandle$0, 'sam$kotlinx_coroutines_DisposableHandle$0', VOID, VOID, [DisposableHandle, FunctionAdapter]);
|
|
120
126
|
initMetadataForCoroutine($awaitContentCOROUTINE$, CoroutineImpl);
|
|
121
127
|
initMetadataForCoroutine($flushCOROUTINE$, CoroutineImpl);
|
|
122
128
|
initMetadataForCoroutine($flushAndCloseCOROUTINE$, CoroutineImpl);
|
|
123
129
|
function awaitContent$default(min, $completion, $super) {
|
|
124
130
|
min = min === VOID ? 1 : min;
|
|
125
|
-
return $super === VOID ? this.
|
|
131
|
+
return $super === VOID ? this.f1h(min, $completion) : $super.f1h.call(this, min, $completion);
|
|
126
132
|
}
|
|
127
133
|
initMetadataForInterface(ByteReadChannel_1, 'ByteReadChannel', VOID, VOID, VOID, [1]);
|
|
128
134
|
function get_autoFlush() {
|
|
@@ -153,9 +159,10 @@ initMetadataForCoroutine($flushIfNeededCOROUTINE$, CoroutineImpl);
|
|
|
153
159
|
initMetadataForClass(WriterJob, 'WriterJob');
|
|
154
160
|
initMetadataForClass(WriterScope, 'WriterScope', VOID, VOID, [CoroutineScope]);
|
|
155
161
|
initMetadataForClass(NO_CALLBACK$1, VOID, VOID, VOID, [Continuation]);
|
|
156
|
-
initMetadataForFunctionReference(ByteWriteChannel$flushAndClose$
|
|
162
|
+
initMetadataForFunctionReference(ByteWriteChannel$flushAndClose$ref_0, KFunctionImpl, VOID, [0]);
|
|
157
163
|
initMetadataForLambda(writer$slambda, CoroutineImpl, VOID, [1]);
|
|
158
164
|
initMetadataForCoroutine($writePacketCOROUTINE$, CoroutineImpl);
|
|
165
|
+
initMetadataForCompanion(Companion_1);
|
|
159
166
|
initMetadataForClass(CloseToken, 'CloseToken');
|
|
160
167
|
initMetadataForCoroutine($awaitContentCOROUTINE$_0, CoroutineImpl);
|
|
161
168
|
initMetadataForClass(CountedByteReadChannel, 'CountedByteReadChannel', VOID, VOID, [ByteReadChannel_1], [1]);
|
|
@@ -163,19 +170,19 @@ initMetadataForClass(ClosedByteChannelException, 'ClosedByteChannelException', C
|
|
|
163
170
|
initMetadataForClass(ClosedReadChannelException, 'ClosedReadChannelException', ClosedReadChannelException, ClosedByteChannelException);
|
|
164
171
|
initMetadataForClass(ClosedWriteChannelException, 'ClosedWriteChannelException', ClosedWriteChannelException, ClosedByteChannelException);
|
|
165
172
|
initMetadataForClass(LineEnding, 'LineEnding', VOID, Enum);
|
|
166
|
-
initMetadataForCompanion(
|
|
173
|
+
initMetadataForCompanion(Companion_2);
|
|
167
174
|
initMetadataForClass(LineEndingMode, 'LineEndingMode');
|
|
168
175
|
initMetadataForClass(SourceByteReadChannel, 'SourceByteReadChannel', VOID, VOID, [ByteReadChannel_1], [1]);
|
|
169
176
|
initMetadataForClass(MalformedInputException, 'MalformedInputException', VOID, IOException);
|
|
170
177
|
initMetadataForClass(TooLongLineException, 'TooLongLineException', VOID, MalformedInputException);
|
|
171
178
|
function close() {
|
|
172
|
-
this.
|
|
179
|
+
this.tv();
|
|
173
180
|
}
|
|
174
181
|
initMetadataForInterface(ObjectPool, 'ObjectPool', VOID, VOID, [AutoCloseable]);
|
|
175
182
|
initMetadataForClass(DefaultPool, 'DefaultPool', VOID, VOID, [ObjectPool]);
|
|
176
183
|
initMetadataForClass(ByteArrayPool$1, VOID, VOID, DefaultPool);
|
|
177
184
|
initMetadataForClass(NoPoolImpl, 'NoPoolImpl', VOID, VOID, [ObjectPool]);
|
|
178
|
-
initMetadataForCompanion(
|
|
185
|
+
initMetadataForCompanion(Companion_3);
|
|
179
186
|
initMetadataForClass(Charset, 'Charset');
|
|
180
187
|
initMetadataForObject(Charsets, 'Charsets');
|
|
181
188
|
initMetadataForClass(CharsetDecoder, 'CharsetDecoder');
|
|
@@ -188,10 +195,10 @@ initMetadataForClass(TextDecoderFallback, 'TextDecoderFallback');
|
|
|
188
195
|
//endregion
|
|
189
196
|
function Companion() {
|
|
190
197
|
Companion_instance_0 = this;
|
|
191
|
-
this.
|
|
198
|
+
this.u1e_1 = new Closed(null);
|
|
192
199
|
var tmp = this;
|
|
193
200
|
// Inline function 'kotlin.Companion.success' call
|
|
194
|
-
tmp.
|
|
201
|
+
tmp.v1e_1 = _Result___init__impl__xyqfz8(Unit_instance);
|
|
195
202
|
}
|
|
196
203
|
var Companion_instance_0;
|
|
197
204
|
function Companion_getInstance() {
|
|
@@ -219,149 +226,179 @@ function Empty_getInstance() {
|
|
|
219
226
|
return Empty_instance;
|
|
220
227
|
}
|
|
221
228
|
function Closed(cause) {
|
|
222
|
-
this.
|
|
229
|
+
this.w1e_1 = cause;
|
|
223
230
|
}
|
|
224
231
|
protoOf(Closed).toString = function () {
|
|
225
|
-
return 'Closed(cause=' + toString(this.
|
|
232
|
+
return 'Closed(cause=' + toString(this.w1e_1) + ')';
|
|
226
233
|
};
|
|
227
234
|
protoOf(Closed).hashCode = function () {
|
|
228
|
-
return this.
|
|
235
|
+
return this.w1e_1 == null ? 0 : hashCode(this.w1e_1);
|
|
229
236
|
};
|
|
230
237
|
protoOf(Closed).equals = function (other) {
|
|
231
238
|
if (this === other)
|
|
232
239
|
return true;
|
|
233
240
|
if (!(other instanceof Closed))
|
|
234
241
|
return false;
|
|
235
|
-
if (!equals(this.
|
|
242
|
+
if (!equals(this.w1e_1, other.w1e_1))
|
|
236
243
|
return false;
|
|
237
244
|
return true;
|
|
238
245
|
};
|
|
239
246
|
function Task() {
|
|
240
247
|
}
|
|
241
248
|
function Read(continuation) {
|
|
242
|
-
this.
|
|
243
|
-
this.
|
|
249
|
+
this.c1f_1 = continuation;
|
|
250
|
+
this.d1f_1 = null;
|
|
244
251
|
if (get_DEVELOPMENT_MODE()) {
|
|
245
252
|
var tmp = this;
|
|
246
253
|
// Inline function 'kotlin.also' call
|
|
247
|
-
var this_0 = newThrowable('ReadTask 0x' + toString_0(hashCode(this.
|
|
254
|
+
var this_0 = newThrowable('ReadTask 0x' + toString_0(hashCode(this.c1f_1), 16));
|
|
248
255
|
stackTraceToString(this_0);
|
|
249
|
-
tmp.
|
|
256
|
+
tmp.d1f_1 = this_0;
|
|
250
257
|
}
|
|
251
258
|
}
|
|
252
|
-
protoOf(Read).
|
|
253
|
-
return this.
|
|
259
|
+
protoOf(Read).y1e = function () {
|
|
260
|
+
return this.c1f_1;
|
|
254
261
|
};
|
|
255
|
-
protoOf(Read).
|
|
256
|
-
return this.
|
|
262
|
+
protoOf(Read).x1e = function () {
|
|
263
|
+
return this.d1f_1;
|
|
257
264
|
};
|
|
258
|
-
protoOf(Read).
|
|
265
|
+
protoOf(Read).z1e = function () {
|
|
259
266
|
return 'read';
|
|
260
267
|
};
|
|
261
268
|
function Write(continuation) {
|
|
262
|
-
this.
|
|
263
|
-
this.
|
|
269
|
+
this.e1f_1 = continuation;
|
|
270
|
+
this.f1f_1 = null;
|
|
264
271
|
if (get_DEVELOPMENT_MODE()) {
|
|
265
272
|
var tmp = this;
|
|
266
273
|
// Inline function 'kotlin.also' call
|
|
267
|
-
var this_0 = newThrowable('WriteTask 0x' + toString_0(hashCode(this.
|
|
274
|
+
var this_0 = newThrowable('WriteTask 0x' + toString_0(hashCode(this.e1f_1), 16));
|
|
268
275
|
stackTraceToString(this_0);
|
|
269
|
-
tmp.
|
|
276
|
+
tmp.f1f_1 = this_0;
|
|
270
277
|
}
|
|
271
278
|
}
|
|
272
|
-
protoOf(Write).
|
|
273
|
-
return this.
|
|
279
|
+
protoOf(Write).y1e = function () {
|
|
280
|
+
return this.e1f_1;
|
|
274
281
|
};
|
|
275
|
-
protoOf(Write).
|
|
276
|
-
return this.
|
|
282
|
+
protoOf(Write).x1e = function () {
|
|
283
|
+
return this.f1f_1;
|
|
277
284
|
};
|
|
278
|
-
protoOf(Write).
|
|
285
|
+
protoOf(Write).z1e = function () {
|
|
279
286
|
return 'write';
|
|
280
287
|
};
|
|
281
288
|
function moveFlushToReadBuffer($this) {
|
|
282
289
|
// Inline function 'io.ktor.utils.io.locks.synchronized' call
|
|
283
|
-
$this.
|
|
284
|
-
$this.
|
|
285
|
-
$this.
|
|
290
|
+
$this.j1f_1;
|
|
291
|
+
$this.h1f_1.aq($this.l1f_1);
|
|
292
|
+
$this.i1f_1 = 0;
|
|
286
293
|
// Inline function 'io.ktor.utils.io.ByteChannel.resumeSlot' call
|
|
287
|
-
var current = $this.
|
|
294
|
+
var current = $this.k1f_1.kotlinx$atomicfu$value;
|
|
288
295
|
var tmp;
|
|
289
296
|
if (current instanceof Write) {
|
|
290
|
-
tmp = $this.
|
|
297
|
+
tmp = $this.k1f_1.atomicfu$compareAndSet(current, Empty_instance);
|
|
291
298
|
} else {
|
|
292
299
|
tmp = false;
|
|
293
300
|
}
|
|
294
301
|
if (tmp) {
|
|
295
|
-
current.
|
|
302
|
+
current.a1f();
|
|
296
303
|
}
|
|
297
304
|
}
|
|
298
305
|
function closeSlot($this, cause) {
|
|
299
|
-
var closeContinuation = !(cause == null) ? new Closed(cause) : Companion_getInstance().
|
|
300
|
-
var continuation = $this.
|
|
306
|
+
var closeContinuation = !(cause == null) ? new Closed(cause) : Companion_getInstance().u1e_1;
|
|
307
|
+
var continuation = $this.k1f_1.atomicfu$getAndSet(closeContinuation);
|
|
301
308
|
if (isInterface(continuation, Task)) {
|
|
302
|
-
continuation.
|
|
309
|
+
continuation.b1f(cause);
|
|
303
310
|
}
|
|
311
|
+
var tmp0_safe_receiver = $this.o1f_1.atomicfu$getAndSet(null);
|
|
312
|
+
if (tmp0_safe_receiver == null)
|
|
313
|
+
null;
|
|
314
|
+
else
|
|
315
|
+
tmp0_safe_receiver(cause);
|
|
304
316
|
}
|
|
305
|
-
function
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
317
|
+
function sam$kotlinx_coroutines_DisposableHandle$0(function_0) {
|
|
318
|
+
this.p1f_1 = function_0;
|
|
319
|
+
}
|
|
320
|
+
protoOf(sam$kotlinx_coroutines_DisposableHandle$0).tv = function () {
|
|
321
|
+
return this.p1f_1();
|
|
322
|
+
};
|
|
323
|
+
protoOf(sam$kotlinx_coroutines_DisposableHandle$0).g3 = function () {
|
|
324
|
+
return this.p1f_1;
|
|
325
|
+
};
|
|
326
|
+
protoOf(sam$kotlinx_coroutines_DisposableHandle$0).equals = function (other) {
|
|
327
|
+
var tmp;
|
|
328
|
+
if (!(other == null) ? isInterface(other, DisposableHandle) : false) {
|
|
329
|
+
var tmp_0;
|
|
330
|
+
if (!(other == null) ? isInterface(other, FunctionAdapter) : false) {
|
|
331
|
+
tmp_0 = equals(this.g3(), other.g3());
|
|
332
|
+
} else {
|
|
333
|
+
tmp_0 = false;
|
|
334
|
+
}
|
|
335
|
+
tmp = tmp_0;
|
|
336
|
+
} else {
|
|
337
|
+
tmp = false;
|
|
338
|
+
}
|
|
339
|
+
return tmp;
|
|
340
|
+
};
|
|
341
|
+
protoOf(sam$kotlinx_coroutines_DisposableHandle$0).hashCode = function () {
|
|
342
|
+
return hashCode(this.g3());
|
|
343
|
+
};
|
|
344
|
+
function ByteChannel$invokeOnClose$lambda() {
|
|
345
|
+
return Unit_instance;
|
|
346
|
+
}
|
|
347
|
+
function ByteChannel$invokeOnClose$lambda_0() {
|
|
348
|
+
return Unit_instance;
|
|
311
349
|
}
|
|
312
|
-
function
|
|
313
|
-
|
|
314
|
-
|
|
350
|
+
function ByteChannel$invokeOnClose$lambda_1(this$0, $handler) {
|
|
351
|
+
return function () {
|
|
352
|
+
this$0.o1f_1.atomicfu$compareAndSet($handler, null);
|
|
353
|
+
return Unit_instance;
|
|
315
354
|
};
|
|
316
|
-
l.callableName = '<init>';
|
|
317
|
-
return l;
|
|
318
355
|
}
|
|
319
356
|
function $awaitContentCOROUTINE$(_this__u8e3s4, min, resultContinuation) {
|
|
320
357
|
CoroutineImpl.call(this, resultContinuation);
|
|
321
|
-
this.
|
|
322
|
-
this.
|
|
358
|
+
this.y1f_1 = _this__u8e3s4;
|
|
359
|
+
this.z1f_1 = min;
|
|
323
360
|
}
|
|
324
|
-
protoOf($awaitContentCOROUTINE$).
|
|
325
|
-
var suspendResult = this.
|
|
361
|
+
protoOf($awaitContentCOROUTINE$).s8 = function () {
|
|
362
|
+
var suspendResult = this.m8_1;
|
|
326
363
|
$sm: do
|
|
327
364
|
try {
|
|
328
|
-
var tmp = this.
|
|
365
|
+
var tmp = this.k8_1;
|
|
329
366
|
switch (tmp) {
|
|
330
367
|
case 0:
|
|
331
|
-
this.
|
|
332
|
-
|
|
333
|
-
if (this.
|
|
368
|
+
this.l8_1 = 4;
|
|
369
|
+
rethrowCloseCauseIfNeeded_0(this.y1f_1);
|
|
370
|
+
if (this.y1f_1.l1f_1.g1() >= fromInt(this.z1f_1))
|
|
334
371
|
return true;
|
|
335
|
-
this.
|
|
336
|
-
this.
|
|
372
|
+
this.a1g_1 = this.y1f_1;
|
|
373
|
+
this.k8_1 = 1;
|
|
337
374
|
continue $sm;
|
|
338
375
|
case 1:
|
|
339
|
-
if (!(add(numberToLong(this.
|
|
340
|
-
this.
|
|
376
|
+
if (!(add(numberToLong(this.y1f_1.i1f_1), this.y1f_1.l1f_1.g1()) < fromInt(this.z1f_1) && this.y1f_1.n1f_1.kotlinx$atomicfu$value == null)) {
|
|
377
|
+
this.k8_1 = 3;
|
|
341
378
|
continue $sm;
|
|
342
379
|
}
|
|
343
380
|
|
|
344
|
-
this.
|
|
381
|
+
this.k8_1 = 2;
|
|
345
382
|
var cancellable = new CancellableContinuationImpl(intercepted(this), 1);
|
|
346
|
-
cancellable.
|
|
347
|
-
var tmp0 = this.
|
|
383
|
+
cancellable.ww();
|
|
384
|
+
var tmp0 = this.a1g_1;
|
|
348
385
|
var tmp2 = new Read(cancellable);
|
|
349
386
|
l$ret$1: do {
|
|
350
|
-
var previous = tmp0.
|
|
387
|
+
var previous = tmp0.k1f_1.kotlinx$atomicfu$value;
|
|
351
388
|
if (!(previous instanceof Closed)) {
|
|
352
|
-
if (!tmp0.
|
|
353
|
-
tmp2.
|
|
389
|
+
if (!tmp0.k1f_1.atomicfu$compareAndSet(previous, tmp2)) {
|
|
390
|
+
tmp2.a1f();
|
|
354
391
|
break l$ret$1;
|
|
355
392
|
}
|
|
356
393
|
}
|
|
357
394
|
if (previous instanceof Read) {
|
|
358
|
-
previous.
|
|
395
|
+
previous.b1f(new ConcurrentIOException(tmp2.z1e(), previous.x1e()));
|
|
359
396
|
} else {
|
|
360
397
|
if (isInterface(previous, Task)) {
|
|
361
|
-
previous.
|
|
398
|
+
previous.a1f();
|
|
362
399
|
} else {
|
|
363
400
|
if (previous instanceof Closed) {
|
|
364
|
-
tmp2.
|
|
401
|
+
tmp2.b1f(previous.w1e_1);
|
|
365
402
|
break l$ret$1;
|
|
366
403
|
} else {
|
|
367
404
|
if (!equals(previous, Empty_instance)) {
|
|
@@ -370,95 +407,95 @@ protoOf($awaitContentCOROUTINE$).r8 = function () {
|
|
|
370
407
|
}
|
|
371
408
|
}
|
|
372
409
|
}
|
|
373
|
-
if (!(add(numberToLong(this.
|
|
374
|
-
var current = tmp0.
|
|
410
|
+
if (!(add(numberToLong(this.y1f_1.i1f_1), this.y1f_1.l1f_1.g1()) < fromInt(this.z1f_1) && this.y1f_1.n1f_1.kotlinx$atomicfu$value == null)) {
|
|
411
|
+
var current = tmp0.k1f_1.kotlinx$atomicfu$value;
|
|
375
412
|
var tmp_0;
|
|
376
413
|
if (current instanceof Read) {
|
|
377
|
-
tmp_0 = tmp0.
|
|
414
|
+
tmp_0 = tmp0.k1f_1.atomicfu$compareAndSet(current, Empty_instance);
|
|
378
415
|
} else {
|
|
379
416
|
tmp_0 = false;
|
|
380
417
|
}
|
|
381
418
|
if (tmp_0) {
|
|
382
|
-
current.
|
|
419
|
+
current.a1f();
|
|
383
420
|
}
|
|
384
421
|
}
|
|
385
422
|
}
|
|
386
423
|
while (false);
|
|
387
|
-
suspendResult = returnIfSuspended(cancellable.
|
|
424
|
+
suspendResult = returnIfSuspended(cancellable.ex(), this);
|
|
388
425
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
389
426
|
return suspendResult;
|
|
390
427
|
}
|
|
391
428
|
|
|
392
429
|
continue $sm;
|
|
393
430
|
case 2:
|
|
394
|
-
this.
|
|
431
|
+
this.k8_1 = 1;
|
|
395
432
|
continue $sm;
|
|
396
433
|
case 3:
|
|
397
|
-
if (this.
|
|
398
|
-
moveFlushToReadBuffer(this.
|
|
434
|
+
if (this.y1f_1.l1f_1.g1() < 1048576n) {
|
|
435
|
+
moveFlushToReadBuffer(this.y1f_1);
|
|
399
436
|
}
|
|
400
437
|
|
|
401
|
-
return this.
|
|
438
|
+
return this.y1f_1.l1f_1.g1() >= fromInt(this.z1f_1);
|
|
402
439
|
case 4:
|
|
403
|
-
throw this.
|
|
440
|
+
throw this.n8_1;
|
|
404
441
|
}
|
|
405
442
|
} catch ($p) {
|
|
406
443
|
var e = $p;
|
|
407
|
-
if (this.
|
|
444
|
+
if (this.l8_1 === 4) {
|
|
408
445
|
throw e;
|
|
409
446
|
} else {
|
|
410
|
-
this.
|
|
411
|
-
this.
|
|
447
|
+
this.k8_1 = this.l8_1;
|
|
448
|
+
this.n8_1 = e;
|
|
412
449
|
}
|
|
413
450
|
}
|
|
414
451
|
while (true);
|
|
415
452
|
};
|
|
416
453
|
function $flushCOROUTINE$(_this__u8e3s4, resultContinuation) {
|
|
417
454
|
CoroutineImpl.call(this, resultContinuation);
|
|
418
|
-
this.
|
|
455
|
+
this.j1g_1 = _this__u8e3s4;
|
|
419
456
|
}
|
|
420
|
-
protoOf($flushCOROUTINE$).
|
|
421
|
-
var suspendResult = this.
|
|
457
|
+
protoOf($flushCOROUTINE$).s8 = function () {
|
|
458
|
+
var suspendResult = this.m8_1;
|
|
422
459
|
$sm: do
|
|
423
460
|
try {
|
|
424
|
-
var tmp = this.
|
|
461
|
+
var tmp = this.k8_1;
|
|
425
462
|
switch (tmp) {
|
|
426
463
|
case 0:
|
|
427
|
-
this.
|
|
428
|
-
|
|
429
|
-
this.
|
|
430
|
-
if (this.
|
|
464
|
+
this.l8_1 = 4;
|
|
465
|
+
rethrowCloseCauseIfNeeded_0(this.j1g_1);
|
|
466
|
+
this.j1g_1.l1g();
|
|
467
|
+
if (this.j1g_1.m1g())
|
|
431
468
|
return Unit_instance;
|
|
432
|
-
this.
|
|
433
|
-
this.
|
|
469
|
+
this.k1g_1 = this.j1g_1;
|
|
470
|
+
this.k8_1 = 1;
|
|
434
471
|
continue $sm;
|
|
435
472
|
case 1:
|
|
436
|
-
if (!(this.
|
|
437
|
-
this.
|
|
473
|
+
if (!(!this.j1g_1.m1g() && this.j1g_1.n1f_1.kotlinx$atomicfu$value == null)) {
|
|
474
|
+
this.k8_1 = 3;
|
|
438
475
|
continue $sm;
|
|
439
476
|
}
|
|
440
477
|
|
|
441
|
-
this.
|
|
478
|
+
this.k8_1 = 2;
|
|
442
479
|
var cancellable = new CancellableContinuationImpl(intercepted(this), 1);
|
|
443
|
-
cancellable.
|
|
444
|
-
var tmp0 = this.
|
|
480
|
+
cancellable.ww();
|
|
481
|
+
var tmp0 = this.k1g_1;
|
|
445
482
|
var tmp2 = new Write(cancellable);
|
|
446
483
|
l$ret$1: do {
|
|
447
|
-
var previous = tmp0.
|
|
484
|
+
var previous = tmp0.k1f_1.kotlinx$atomicfu$value;
|
|
448
485
|
if (!(previous instanceof Closed)) {
|
|
449
|
-
if (!tmp0.
|
|
450
|
-
tmp2.
|
|
486
|
+
if (!tmp0.k1f_1.atomicfu$compareAndSet(previous, tmp2)) {
|
|
487
|
+
tmp2.a1f();
|
|
451
488
|
break l$ret$1;
|
|
452
489
|
}
|
|
453
490
|
}
|
|
454
491
|
if (previous instanceof Write) {
|
|
455
|
-
previous.
|
|
492
|
+
previous.b1f(new ConcurrentIOException(tmp2.z1e(), previous.x1e()));
|
|
456
493
|
} else {
|
|
457
494
|
if (isInterface(previous, Task)) {
|
|
458
|
-
previous.
|
|
495
|
+
previous.a1f();
|
|
459
496
|
} else {
|
|
460
497
|
if (previous instanceof Closed) {
|
|
461
|
-
tmp2.
|
|
498
|
+
tmp2.b1f(previous.w1e_1);
|
|
462
499
|
break l$ret$1;
|
|
463
500
|
} else {
|
|
464
501
|
if (!equals(previous, Empty_instance)) {
|
|
@@ -467,62 +504,62 @@ protoOf($flushCOROUTINE$).r8 = function () {
|
|
|
467
504
|
}
|
|
468
505
|
}
|
|
469
506
|
}
|
|
470
|
-
if (!(this.
|
|
471
|
-
var current = tmp0.
|
|
507
|
+
if (!(!this.j1g_1.m1g() && this.j1g_1.n1f_1.kotlinx$atomicfu$value == null)) {
|
|
508
|
+
var current = tmp0.k1f_1.kotlinx$atomicfu$value;
|
|
472
509
|
var tmp_0;
|
|
473
510
|
if (current instanceof Write) {
|
|
474
|
-
tmp_0 = tmp0.
|
|
511
|
+
tmp_0 = tmp0.k1f_1.atomicfu$compareAndSet(current, Empty_instance);
|
|
475
512
|
} else {
|
|
476
513
|
tmp_0 = false;
|
|
477
514
|
}
|
|
478
515
|
if (tmp_0) {
|
|
479
|
-
current.
|
|
516
|
+
current.a1f();
|
|
480
517
|
}
|
|
481
518
|
}
|
|
482
519
|
}
|
|
483
520
|
while (false);
|
|
484
|
-
suspendResult = returnIfSuspended(cancellable.
|
|
521
|
+
suspendResult = returnIfSuspended(cancellable.ex(), this);
|
|
485
522
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
486
523
|
return suspendResult;
|
|
487
524
|
}
|
|
488
525
|
|
|
489
526
|
continue $sm;
|
|
490
527
|
case 2:
|
|
491
|
-
this.
|
|
528
|
+
this.k8_1 = 1;
|
|
492
529
|
continue $sm;
|
|
493
530
|
case 3:
|
|
494
531
|
return Unit_instance;
|
|
495
532
|
case 4:
|
|
496
|
-
throw this.
|
|
533
|
+
throw this.n8_1;
|
|
497
534
|
}
|
|
498
535
|
} catch ($p) {
|
|
499
536
|
var e = $p;
|
|
500
|
-
if (this.
|
|
537
|
+
if (this.l8_1 === 4) {
|
|
501
538
|
throw e;
|
|
502
539
|
} else {
|
|
503
|
-
this.
|
|
504
|
-
this.
|
|
540
|
+
this.k8_1 = this.l8_1;
|
|
541
|
+
this.n8_1 = e;
|
|
505
542
|
}
|
|
506
543
|
}
|
|
507
544
|
while (true);
|
|
508
545
|
};
|
|
509
546
|
function $flushAndCloseCOROUTINE$(_this__u8e3s4, resultContinuation) {
|
|
510
547
|
CoroutineImpl.call(this, resultContinuation);
|
|
511
|
-
this.
|
|
548
|
+
this.v1g_1 = _this__u8e3s4;
|
|
512
549
|
}
|
|
513
|
-
protoOf($flushAndCloseCOROUTINE$).
|
|
514
|
-
var suspendResult = this.
|
|
550
|
+
protoOf($flushAndCloseCOROUTINE$).s8 = function () {
|
|
551
|
+
var suspendResult = this.m8_1;
|
|
515
552
|
$sm: do
|
|
516
553
|
try {
|
|
517
|
-
var tmp = this.
|
|
554
|
+
var tmp = this.k8_1;
|
|
518
555
|
switch (tmp) {
|
|
519
556
|
case 0:
|
|
520
|
-
this.
|
|
521
|
-
var this_0 = this.
|
|
522
|
-
this.
|
|
523
|
-
this.
|
|
524
|
-
this.
|
|
525
|
-
suspendResult = this_0.
|
|
557
|
+
this.l8_1 = 4;
|
|
558
|
+
var this_0 = this.v1g_1;
|
|
559
|
+
this.l8_1 = 2;
|
|
560
|
+
this.x1g_1 = Companion_instance;
|
|
561
|
+
this.k8_1 = 1;
|
|
562
|
+
suspendResult = this_0.y1g(this);
|
|
526
563
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
527
564
|
return suspendResult;
|
|
528
565
|
}
|
|
@@ -530,146 +567,296 @@ protoOf($flushAndCloseCOROUTINE$).r8 = function () {
|
|
|
530
567
|
continue $sm;
|
|
531
568
|
case 1:
|
|
532
569
|
var tmp_0 = this;
|
|
533
|
-
this.
|
|
534
|
-
tmp_0.
|
|
535
|
-
this.
|
|
536
|
-
this.
|
|
570
|
+
this.x1g_1;
|
|
571
|
+
tmp_0.w1g_1 = _Result___init__impl__xyqfz8(Unit_instance);
|
|
572
|
+
this.l8_1 = 4;
|
|
573
|
+
this.k8_1 = 3;
|
|
537
574
|
continue $sm;
|
|
538
575
|
case 2:
|
|
539
|
-
this.
|
|
540
|
-
var tmp_1 = this.
|
|
576
|
+
this.l8_1 = 4;
|
|
577
|
+
var tmp_1 = this.n8_1;
|
|
541
578
|
if (tmp_1 instanceof Error) {
|
|
542
|
-
var e = this.
|
|
579
|
+
var e = this.n8_1;
|
|
543
580
|
var tmp_2 = this;
|
|
544
|
-
tmp_2.
|
|
545
|
-
this.
|
|
581
|
+
tmp_2.w1g_1 = _Result___init__impl__xyqfz8(createFailure(e));
|
|
582
|
+
this.k8_1 = 3;
|
|
546
583
|
continue $sm;
|
|
547
584
|
} else {
|
|
548
|
-
throw this.
|
|
585
|
+
throw this.n8_1;
|
|
549
586
|
}
|
|
550
587
|
|
|
551
588
|
case 3:
|
|
552
|
-
this.
|
|
553
|
-
if (!this.
|
|
589
|
+
this.l8_1 = 4;
|
|
590
|
+
if (!this.v1g_1.n1f_1.atomicfu$compareAndSet(null, get_CLOSED()))
|
|
554
591
|
return Unit_instance;
|
|
555
|
-
closeSlot(this.
|
|
592
|
+
closeSlot(this.v1g_1, null);
|
|
556
593
|
return Unit_instance;
|
|
557
594
|
case 4:
|
|
558
|
-
throw this.
|
|
595
|
+
throw this.n8_1;
|
|
559
596
|
}
|
|
560
597
|
} catch ($p) {
|
|
561
598
|
var e_0 = $p;
|
|
562
|
-
if (this.
|
|
599
|
+
if (this.l8_1 === 4) {
|
|
563
600
|
throw e_0;
|
|
564
601
|
} else {
|
|
565
|
-
this.
|
|
566
|
-
this.
|
|
602
|
+
this.k8_1 = this.l8_1;
|
|
603
|
+
this.n8_1 = e_0;
|
|
567
604
|
}
|
|
568
605
|
}
|
|
569
606
|
while (true);
|
|
570
607
|
};
|
|
571
608
|
function ByteChannel(autoFlush) {
|
|
572
609
|
autoFlush = autoFlush === VOID ? false : autoFlush;
|
|
573
|
-
this.
|
|
574
|
-
this.
|
|
575
|
-
this.
|
|
576
|
-
this.
|
|
577
|
-
this.
|
|
578
|
-
this.
|
|
579
|
-
this.
|
|
580
|
-
this.
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
610
|
+
this.g1f_1 = autoFlush;
|
|
611
|
+
this.h1f_1 = new Buffer();
|
|
612
|
+
this.i1f_1 = 0;
|
|
613
|
+
this.j1f_1 = new Object();
|
|
614
|
+
this.k1f_1 = atomic$ref$1(Empty_instance);
|
|
615
|
+
this.l1f_1 = new Buffer();
|
|
616
|
+
this.m1f_1 = new Buffer();
|
|
617
|
+
this.n1f_1 = atomic$ref$1(null);
|
|
618
|
+
this.o1f_1 = atomic$ref$1(null);
|
|
619
|
+
}
|
|
620
|
+
protoOf(ByteChannel).z1g = function () {
|
|
621
|
+
return this.g1f_1;
|
|
622
|
+
};
|
|
623
|
+
protoOf(ByteChannel).m1g = function () {
|
|
624
|
+
return this.i1f_1 < 1048576;
|
|
625
|
+
};
|
|
626
|
+
protoOf(ByteChannel).a1h = function () {
|
|
627
|
+
var tmp0_safe_receiver = this.n1f_1.kotlinx$atomicfu$value;
|
|
587
628
|
if (tmp0_safe_receiver == null)
|
|
588
629
|
null;
|
|
589
630
|
else {
|
|
590
|
-
|
|
631
|
+
// Inline function 'io.ktor.utils.io.Companion.throwOrNull' call
|
|
632
|
+
// Inline function 'io.ktor.utils.io.Companion.wrapCause' call
|
|
633
|
+
var tmp0_subject = access$_get_origin__hdh1qz(tmp0_safe_receiver);
|
|
634
|
+
var tmp;
|
|
635
|
+
if (tmp0_subject == null) {
|
|
636
|
+
tmp = null;
|
|
637
|
+
} else {
|
|
638
|
+
if (isInterface(tmp0_subject, CopyableThrowable)) {
|
|
639
|
+
tmp = access$_get_origin__hdh1qz(tmp0_safe_receiver).jz();
|
|
640
|
+
} else {
|
|
641
|
+
if (tmp0_subject instanceof CancellationException) {
|
|
642
|
+
tmp = CancellationException_init_$Create$(access$_get_origin__hdh1qz(tmp0_safe_receiver).message, access$_get_origin__hdh1qz(tmp0_safe_receiver));
|
|
643
|
+
} else {
|
|
644
|
+
var p0 = access$_get_origin__hdh1qz(tmp0_safe_receiver);
|
|
645
|
+
tmp = new ClosedReadChannelException(p0);
|
|
646
|
+
}
|
|
647
|
+
}
|
|
648
|
+
}
|
|
649
|
+
var tmp0_safe_receiver_0 = tmp;
|
|
650
|
+
var tmp_0;
|
|
651
|
+
if (tmp0_safe_receiver_0 == null) {
|
|
652
|
+
tmp_0 = null;
|
|
653
|
+
} else {
|
|
654
|
+
// Inline function 'kotlin.let' call
|
|
655
|
+
throw tmp0_safe_receiver_0;
|
|
656
|
+
}
|
|
591
657
|
}
|
|
592
|
-
if (this.
|
|
658
|
+
if (this.l1f_1.xo()) {
|
|
593
659
|
moveFlushToReadBuffer(this);
|
|
594
660
|
}
|
|
595
|
-
return this.
|
|
661
|
+
return this.l1f_1;
|
|
596
662
|
};
|
|
597
|
-
protoOf(ByteChannel).
|
|
598
|
-
if (this.
|
|
599
|
-
var tmp0_safe_receiver = this.
|
|
663
|
+
protoOf(ByteChannel).b1h = function () {
|
|
664
|
+
if (this.c1h()) {
|
|
665
|
+
var tmp0_safe_receiver = this.n1f_1.kotlinx$atomicfu$value;
|
|
600
666
|
var tmp;
|
|
601
667
|
if (tmp0_safe_receiver == null) {
|
|
602
668
|
tmp = null;
|
|
603
669
|
} else {
|
|
604
|
-
|
|
670
|
+
// Inline function 'io.ktor.utils.io.Companion.throwOrNull' call
|
|
671
|
+
// Inline function 'io.ktor.utils.io.Companion.wrapCause' call
|
|
672
|
+
var tmp0_subject = access$_get_origin__hdh1qz(tmp0_safe_receiver);
|
|
673
|
+
var tmp_0;
|
|
674
|
+
if (tmp0_subject == null) {
|
|
675
|
+
tmp_0 = null;
|
|
676
|
+
} else {
|
|
677
|
+
if (isInterface(tmp0_subject, CopyableThrowable)) {
|
|
678
|
+
tmp_0 = access$_get_origin__hdh1qz(tmp0_safe_receiver).jz();
|
|
679
|
+
} else {
|
|
680
|
+
if (tmp0_subject instanceof CancellationException) {
|
|
681
|
+
tmp_0 = CancellationException_init_$Create$(access$_get_origin__hdh1qz(tmp0_safe_receiver).message, access$_get_origin__hdh1qz(tmp0_safe_receiver));
|
|
682
|
+
} else {
|
|
683
|
+
var p0 = access$_get_origin__hdh1qz(tmp0_safe_receiver);
|
|
684
|
+
tmp_0 = new ClosedWriteChannelException(p0);
|
|
685
|
+
}
|
|
686
|
+
}
|
|
687
|
+
}
|
|
688
|
+
var tmp0_safe_receiver_0 = tmp_0;
|
|
689
|
+
var tmp_1;
|
|
690
|
+
if (tmp0_safe_receiver_0 == null) {
|
|
691
|
+
tmp_1 = null;
|
|
692
|
+
} else {
|
|
693
|
+
// Inline function 'kotlin.let' call
|
|
694
|
+
throw tmp0_safe_receiver_0;
|
|
695
|
+
}
|
|
696
|
+
tmp = tmp_1;
|
|
605
697
|
}
|
|
606
698
|
if (tmp == null)
|
|
607
699
|
throw new ClosedWriteChannelException();
|
|
608
700
|
}
|
|
609
|
-
return this.
|
|
701
|
+
return this.m1f_1;
|
|
610
702
|
};
|
|
611
|
-
protoOf(ByteChannel).
|
|
612
|
-
var tmp0_safe_receiver = this.
|
|
613
|
-
|
|
703
|
+
protoOf(ByteChannel).d1h = function () {
|
|
704
|
+
var tmp0_safe_receiver = this.n1f_1.kotlinx$atomicfu$value;
|
|
705
|
+
var tmp;
|
|
706
|
+
if (tmp0_safe_receiver == null) {
|
|
707
|
+
tmp = null;
|
|
708
|
+
} else {
|
|
709
|
+
// Inline function 'io.ktor.utils.io.Companion.wrapCause' call
|
|
710
|
+
var tmp0_subject = access$_get_origin__hdh1qz(tmp0_safe_receiver);
|
|
711
|
+
var tmp_0;
|
|
712
|
+
if (tmp0_subject == null) {
|
|
713
|
+
tmp_0 = null;
|
|
714
|
+
} else {
|
|
715
|
+
if (isInterface(tmp0_subject, CopyableThrowable)) {
|
|
716
|
+
tmp_0 = access$_get_origin__hdh1qz(tmp0_safe_receiver).jz();
|
|
717
|
+
} else {
|
|
718
|
+
if (tmp0_subject instanceof CancellationException) {
|
|
719
|
+
tmp_0 = CancellationException_init_$Create$(access$_get_origin__hdh1qz(tmp0_safe_receiver).message, access$_get_origin__hdh1qz(tmp0_safe_receiver));
|
|
720
|
+
} else {
|
|
721
|
+
var p0 = access$_get_origin__hdh1qz(tmp0_safe_receiver);
|
|
722
|
+
tmp_0 = new ClosedByteChannelException(p0);
|
|
723
|
+
}
|
|
724
|
+
}
|
|
725
|
+
}
|
|
726
|
+
tmp = tmp_0;
|
|
727
|
+
}
|
|
728
|
+
return tmp;
|
|
614
729
|
};
|
|
615
|
-
protoOf(ByteChannel).
|
|
616
|
-
return !(this.
|
|
730
|
+
protoOf(ByteChannel).c1h = function () {
|
|
731
|
+
return !(this.n1f_1.kotlinx$atomicfu$value == null);
|
|
617
732
|
};
|
|
618
|
-
protoOf(ByteChannel).
|
|
619
|
-
return !(this.
|
|
733
|
+
protoOf(ByteChannel).e1h = function () {
|
|
734
|
+
return !(this.d1h() == null) || (this.c1h() && this.i1f_1 === 0 && this.l1f_1.xo());
|
|
620
735
|
};
|
|
621
|
-
protoOf(ByteChannel).
|
|
736
|
+
protoOf(ByteChannel).f1h = function (min, $completion) {
|
|
622
737
|
var tmp = new $awaitContentCOROUTINE$(this, min, $completion);
|
|
623
|
-
tmp.
|
|
624
|
-
tmp.
|
|
625
|
-
return tmp.
|
|
738
|
+
tmp.m8_1 = Unit_instance;
|
|
739
|
+
tmp.n8_1 = null;
|
|
740
|
+
return tmp.s8();
|
|
626
741
|
};
|
|
627
|
-
protoOf(ByteChannel).
|
|
742
|
+
protoOf(ByteChannel).y1g = function ($completion) {
|
|
628
743
|
var tmp = new $flushCOROUTINE$(this, $completion);
|
|
629
|
-
tmp.
|
|
630
|
-
tmp.
|
|
631
|
-
return tmp.
|
|
744
|
+
tmp.m8_1 = Unit_instance;
|
|
745
|
+
tmp.n8_1 = null;
|
|
746
|
+
return tmp.s8();
|
|
632
747
|
};
|
|
633
|
-
protoOf(ByteChannel).
|
|
634
|
-
if (this.
|
|
748
|
+
protoOf(ByteChannel).l1g = function () {
|
|
749
|
+
if (this.m1f_1.xo())
|
|
635
750
|
return Unit_instance;
|
|
636
751
|
// Inline function 'io.ktor.utils.io.locks.synchronized' call
|
|
637
|
-
this.
|
|
638
|
-
var count = convertToInt(this.
|
|
639
|
-
this.
|
|
640
|
-
this.
|
|
752
|
+
this.j1f_1;
|
|
753
|
+
var count = convertToInt(this.m1f_1.g1());
|
|
754
|
+
this.h1f_1.pq(this.m1f_1);
|
|
755
|
+
this.i1f_1 = this.i1f_1 + count | 0;
|
|
641
756
|
// Inline function 'io.ktor.utils.io.ByteChannel.resumeSlot' call
|
|
642
|
-
var current = this.
|
|
757
|
+
var current = this.k1f_1.kotlinx$atomicfu$value;
|
|
643
758
|
var tmp;
|
|
644
759
|
if (current instanceof Read) {
|
|
645
|
-
tmp = this.
|
|
760
|
+
tmp = this.k1f_1.atomicfu$compareAndSet(current, Empty_instance);
|
|
646
761
|
} else {
|
|
647
762
|
tmp = false;
|
|
648
763
|
}
|
|
649
764
|
if (tmp) {
|
|
650
|
-
current.
|
|
765
|
+
current.a1f();
|
|
651
766
|
}
|
|
652
767
|
};
|
|
653
768
|
protoOf(ByteChannel).j4 = function () {
|
|
654
|
-
this.
|
|
655
|
-
if (!this.
|
|
769
|
+
this.l1g();
|
|
770
|
+
if (!this.n1f_1.atomicfu$compareAndSet(null, get_CLOSED()))
|
|
656
771
|
return Unit_instance;
|
|
657
772
|
closeSlot(this, null);
|
|
658
773
|
};
|
|
659
|
-
protoOf(ByteChannel).
|
|
774
|
+
protoOf(ByteChannel).h1h = function ($completion) {
|
|
660
775
|
var tmp = new $flushAndCloseCOROUTINE$(this, $completion);
|
|
661
|
-
tmp.
|
|
662
|
-
tmp.
|
|
663
|
-
return tmp.
|
|
776
|
+
tmp.m8_1 = Unit_instance;
|
|
777
|
+
tmp.n8_1 = null;
|
|
778
|
+
return tmp.s8();
|
|
664
779
|
};
|
|
665
|
-
protoOf(ByteChannel).
|
|
666
|
-
if (!(this.
|
|
780
|
+
protoOf(ByteChannel).i1h = function (cause) {
|
|
781
|
+
if (!(this.n1f_1.kotlinx$atomicfu$value == null))
|
|
667
782
|
return Unit_instance;
|
|
668
783
|
var closedToken = new CloseToken(cause);
|
|
669
|
-
this.
|
|
670
|
-
|
|
784
|
+
this.n1f_1.atomicfu$compareAndSet(null, closedToken);
|
|
785
|
+
// Inline function 'io.ktor.utils.io.Companion.wrapCause' call
|
|
786
|
+
var tmp0_subject = access$_get_origin__hdh1qz(closedToken);
|
|
787
|
+
var tmp;
|
|
788
|
+
if (tmp0_subject == null) {
|
|
789
|
+
tmp = null;
|
|
790
|
+
} else {
|
|
791
|
+
if (isInterface(tmp0_subject, CopyableThrowable)) {
|
|
792
|
+
tmp = access$_get_origin__hdh1qz(closedToken).jz();
|
|
793
|
+
} else {
|
|
794
|
+
if (tmp0_subject instanceof CancellationException) {
|
|
795
|
+
tmp = CancellationException_init_$Create$(access$_get_origin__hdh1qz(closedToken).message, access$_get_origin__hdh1qz(closedToken));
|
|
796
|
+
} else {
|
|
797
|
+
var p0 = access$_get_origin__hdh1qz(closedToken);
|
|
798
|
+
tmp = new ClosedByteChannelException(p0);
|
|
799
|
+
}
|
|
800
|
+
}
|
|
801
|
+
}
|
|
802
|
+
var wrappedCause = tmp;
|
|
671
803
|
closeSlot(this, wrappedCause);
|
|
672
804
|
};
|
|
805
|
+
protoOf(ByteChannel).j1h = function (handler) {
|
|
806
|
+
var existingCause = this.n1f_1.kotlinx$atomicfu$value;
|
|
807
|
+
if (!(existingCause == null)) {
|
|
808
|
+
// Inline function 'io.ktor.utils.io.Companion.wrapCause' call
|
|
809
|
+
var tmp0_subject = access$_get_origin__hdh1qz(existingCause);
|
|
810
|
+
var tmp;
|
|
811
|
+
if (tmp0_subject == null) {
|
|
812
|
+
tmp = null;
|
|
813
|
+
} else {
|
|
814
|
+
if (isInterface(tmp0_subject, CopyableThrowable)) {
|
|
815
|
+
tmp = access$_get_origin__hdh1qz(existingCause).jz();
|
|
816
|
+
} else {
|
|
817
|
+
if (tmp0_subject instanceof CancellationException) {
|
|
818
|
+
tmp = CancellationException_init_$Create$(access$_get_origin__hdh1qz(existingCause).message, access$_get_origin__hdh1qz(existingCause));
|
|
819
|
+
} else {
|
|
820
|
+
var p0 = access$_get_origin__hdh1qz(existingCause);
|
|
821
|
+
tmp = new ClosedByteChannelException(p0);
|
|
822
|
+
}
|
|
823
|
+
}
|
|
824
|
+
}
|
|
825
|
+
handler(tmp);
|
|
826
|
+
var tmp_0 = ByteChannel$invokeOnClose$lambda;
|
|
827
|
+
return new sam$kotlinx_coroutines_DisposableHandle$0(tmp_0);
|
|
828
|
+
}
|
|
829
|
+
if (!this.o1f_1.atomicfu$compareAndSet(null, handler)) {
|
|
830
|
+
// Inline function 'kotlin.error' call
|
|
831
|
+
var message = 'Only one invokeOnClose handler is supported per channel';
|
|
832
|
+
throw IllegalStateException_init_$Create$(toString_1(message));
|
|
833
|
+
}
|
|
834
|
+
var cause = this.n1f_1.kotlinx$atomicfu$value;
|
|
835
|
+
if (!(cause == null) && this.o1f_1.atomicfu$compareAndSet(handler, null)) {
|
|
836
|
+
// Inline function 'io.ktor.utils.io.Companion.wrapCause' call
|
|
837
|
+
var tmp0_subject_0 = access$_get_origin__hdh1qz(cause);
|
|
838
|
+
var tmp_1;
|
|
839
|
+
if (tmp0_subject_0 == null) {
|
|
840
|
+
tmp_1 = null;
|
|
841
|
+
} else {
|
|
842
|
+
if (isInterface(tmp0_subject_0, CopyableThrowable)) {
|
|
843
|
+
tmp_1 = access$_get_origin__hdh1qz(cause).jz();
|
|
844
|
+
} else {
|
|
845
|
+
if (tmp0_subject_0 instanceof CancellationException) {
|
|
846
|
+
tmp_1 = CancellationException_init_$Create$(access$_get_origin__hdh1qz(cause).message, access$_get_origin__hdh1qz(cause));
|
|
847
|
+
} else {
|
|
848
|
+
var p0_0 = access$_get_origin__hdh1qz(cause);
|
|
849
|
+
tmp_1 = new ClosedByteChannelException(p0_0);
|
|
850
|
+
}
|
|
851
|
+
}
|
|
852
|
+
}
|
|
853
|
+
handler(tmp_1);
|
|
854
|
+
var tmp_2 = ByteChannel$invokeOnClose$lambda_0;
|
|
855
|
+
return new sam$kotlinx_coroutines_DisposableHandle$0(tmp_2);
|
|
856
|
+
}
|
|
857
|
+
var tmp_3 = ByteChannel$invokeOnClose$lambda_1(this, handler);
|
|
858
|
+
return new sam$kotlinx_coroutines_DisposableHandle$0(tmp_3);
|
|
859
|
+
};
|
|
673
860
|
protoOf(ByteChannel).toString = function () {
|
|
674
861
|
return 'ByteChannel[' + hashCode(this) + ']';
|
|
675
862
|
};
|
|
@@ -683,7 +870,7 @@ function ByteReadChannel(content, offset, length) {
|
|
|
683
870
|
length = length === VOID ? content.length : length;
|
|
684
871
|
// Inline function 'kotlin.also' call
|
|
685
872
|
var this_0 = new Buffer();
|
|
686
|
-
this_0.
|
|
873
|
+
this_0.gq(content, offset, offset + length | 0);
|
|
687
874
|
var source = this_0;
|
|
688
875
|
return ByteReadChannel_0(source);
|
|
689
876
|
}
|
|
@@ -691,18 +878,18 @@ function ByteReadChannel_0(source) {
|
|
|
691
878
|
return new SourceByteReadChannel(source);
|
|
692
879
|
}
|
|
693
880
|
function buildPartialMatchTable($this) {
|
|
694
|
-
var table = new Int32Array($this.
|
|
881
|
+
var table = new Int32Array($this.l1h_1.g1());
|
|
695
882
|
var j = 0;
|
|
696
883
|
var inductionVariable = 1;
|
|
697
|
-
var last = $this.
|
|
884
|
+
var last = $this.l1h_1.g1();
|
|
698
885
|
if (inductionVariable < last)
|
|
699
886
|
do {
|
|
700
887
|
var i = inductionVariable;
|
|
701
888
|
inductionVariable = inductionVariable + 1 | 0;
|
|
702
|
-
while (j > 0 && !($this.
|
|
889
|
+
while (j > 0 && !($this.l1h_1.h1(i) === $this.l1h_1.h1(j))) {
|
|
703
890
|
j = table[j - 1 | 0];
|
|
704
891
|
}
|
|
705
|
-
if ($this.
|
|
892
|
+
if ($this.l1h_1.h1(i) === $this.l1h_1.h1(j)) {
|
|
706
893
|
j = j + 1 | 0;
|
|
707
894
|
}
|
|
708
895
|
table[i] = j;
|
|
@@ -712,19 +899,19 @@ function buildPartialMatchTable($this) {
|
|
|
712
899
|
}
|
|
713
900
|
function advanceToNextPotentialMatch($this, $completion) {
|
|
714
901
|
var tmp = new $advanceToNextPotentialMatchCOROUTINE$($this, $completion);
|
|
715
|
-
tmp.
|
|
716
|
-
tmp.
|
|
717
|
-
return tmp.
|
|
902
|
+
tmp.m8_1 = Unit_instance;
|
|
903
|
+
tmp.n8_1 = null;
|
|
904
|
+
return tmp.s8();
|
|
718
905
|
}
|
|
719
906
|
function checkFullMatch($this, $completion) {
|
|
720
907
|
var tmp = new $checkFullMatchCOROUTINE$($this, $completion);
|
|
721
|
-
tmp.
|
|
722
|
-
tmp.
|
|
723
|
-
return tmp.
|
|
908
|
+
tmp.m8_1 = Unit_instance;
|
|
909
|
+
tmp.n8_1 = null;
|
|
910
|
+
return tmp.s8();
|
|
724
911
|
}
|
|
725
912
|
function checkBounds($this, extra) {
|
|
726
|
-
if (add($this.
|
|
727
|
-
throw IOException_init_$Create$('Limit of ' + $this.
|
|
913
|
+
if (add($this.r1h_1, extra) > $this.n1h_1) {
|
|
914
|
+
throw IOException_init_$Create$('Limit of ' + $this.n1h_1.toString() + ' bytes exceeded ' + ('while searching for "' + toSingleLineString($this, $this.l1h_1) + '"'));
|
|
728
915
|
}
|
|
729
916
|
}
|
|
730
917
|
function toSingleLineString($this, $receiver) {
|
|
@@ -732,28 +919,28 @@ function toSingleLineString($this, $receiver) {
|
|
|
732
919
|
}
|
|
733
920
|
function $findNextCOROUTINE$(_this__u8e3s4, ignoreMissing, resultContinuation) {
|
|
734
921
|
CoroutineImpl.call(this, resultContinuation);
|
|
735
|
-
this.
|
|
736
|
-
this.
|
|
922
|
+
this.w1i_1 = _this__u8e3s4;
|
|
923
|
+
this.x1i_1 = ignoreMissing;
|
|
737
924
|
}
|
|
738
|
-
protoOf($findNextCOROUTINE$).
|
|
739
|
-
var suspendResult = this.
|
|
925
|
+
protoOf($findNextCOROUTINE$).s8 = function () {
|
|
926
|
+
var suspendResult = this.m8_1;
|
|
740
927
|
$sm: do
|
|
741
928
|
try {
|
|
742
|
-
var tmp = this.
|
|
929
|
+
var tmp = this.k8_1;
|
|
743
930
|
switch (tmp) {
|
|
744
931
|
case 0:
|
|
745
|
-
this.
|
|
746
|
-
this.
|
|
747
|
-
this.
|
|
932
|
+
this.l8_1 = 9;
|
|
933
|
+
this.w1i_1.r1h_1 = 0n;
|
|
934
|
+
this.k8_1 = 1;
|
|
748
935
|
continue $sm;
|
|
749
936
|
case 1:
|
|
750
|
-
if (!this.
|
|
751
|
-
this.
|
|
752
|
-
this.
|
|
937
|
+
if (!this.w1i_1.o1h_1.xo()) {
|
|
938
|
+
this.y1i_1 = true;
|
|
939
|
+
this.k8_1 = 3;
|
|
753
940
|
continue $sm;
|
|
754
941
|
} else {
|
|
755
|
-
this.
|
|
756
|
-
suspendResult = this.
|
|
942
|
+
this.k8_1 = 2;
|
|
943
|
+
suspendResult = this.w1i_1.k1h_1.g1h(VOID, this);
|
|
757
944
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
758
945
|
return suspendResult;
|
|
759
946
|
}
|
|
@@ -761,25 +948,25 @@ protoOf($findNextCOROUTINE$).r8 = function () {
|
|
|
761
948
|
}
|
|
762
949
|
|
|
763
950
|
case 2:
|
|
764
|
-
this.
|
|
765
|
-
this.
|
|
951
|
+
this.y1i_1 = suspendResult;
|
|
952
|
+
this.k8_1 = 3;
|
|
766
953
|
continue $sm;
|
|
767
954
|
case 3:
|
|
768
|
-
if (!this.
|
|
769
|
-
this.
|
|
955
|
+
if (!this.y1i_1) {
|
|
956
|
+
this.k8_1 = 7;
|
|
770
957
|
continue $sm;
|
|
771
958
|
}
|
|
772
959
|
|
|
773
|
-
this.
|
|
774
|
-
suspendResult = advanceToNextPotentialMatch(this.
|
|
960
|
+
this.k8_1 = 4;
|
|
961
|
+
suspendResult = advanceToNextPotentialMatch(this.w1i_1, this);
|
|
775
962
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
776
963
|
return suspendResult;
|
|
777
964
|
}
|
|
778
965
|
|
|
779
966
|
continue $sm;
|
|
780
967
|
case 4:
|
|
781
|
-
this.
|
|
782
|
-
suspendResult = checkFullMatch(this.
|
|
968
|
+
this.k8_1 = 5;
|
|
969
|
+
suspendResult = checkFullMatch(this.w1i_1, this);
|
|
783
970
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
784
971
|
return suspendResult;
|
|
785
972
|
}
|
|
@@ -787,66 +974,66 @@ protoOf($findNextCOROUTINE$).r8 = function () {
|
|
|
787
974
|
continue $sm;
|
|
788
975
|
case 5:
|
|
789
976
|
if (suspendResult) {
|
|
790
|
-
return this.
|
|
977
|
+
return this.w1i_1.r1h_1;
|
|
791
978
|
} else {
|
|
792
|
-
this.
|
|
979
|
+
this.k8_1 = 6;
|
|
793
980
|
continue $sm;
|
|
794
981
|
}
|
|
795
982
|
|
|
796
983
|
case 6:
|
|
797
|
-
this.
|
|
984
|
+
this.k8_1 = 1;
|
|
798
985
|
continue $sm;
|
|
799
986
|
case 7:
|
|
800
|
-
if (!this.
|
|
801
|
-
throw IOException_init_$Create$('Expected "' + toSingleLineString(this.
|
|
987
|
+
if (!this.x1i_1) {
|
|
988
|
+
throw IOException_init_$Create$('Expected "' + toSingleLineString(this.w1i_1, this.w1i_1.l1h_1) + '" but encountered end of input');
|
|
802
989
|
}
|
|
803
990
|
|
|
804
|
-
this.
|
|
805
|
-
this.
|
|
806
|
-
suspendResult = this.
|
|
991
|
+
this.w1i_1.r1h_1 = add(this.w1i_1.r1h_1, this.w1i_1.q1h_1.aq(this.w1i_1.m1h_1.b1h()));
|
|
992
|
+
this.k8_1 = 8;
|
|
993
|
+
suspendResult = this.w1i_1.m1h_1.y1g(this);
|
|
807
994
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
808
995
|
return suspendResult;
|
|
809
996
|
}
|
|
810
997
|
|
|
811
998
|
continue $sm;
|
|
812
999
|
case 8:
|
|
813
|
-
return this.
|
|
1000
|
+
return this.w1i_1.r1h_1;
|
|
814
1001
|
case 9:
|
|
815
|
-
throw this.
|
|
1002
|
+
throw this.n8_1;
|
|
816
1003
|
}
|
|
817
1004
|
} catch ($p) {
|
|
818
1005
|
var e = $p;
|
|
819
|
-
if (this.
|
|
1006
|
+
if (this.l8_1 === 9) {
|
|
820
1007
|
throw e;
|
|
821
1008
|
} else {
|
|
822
|
-
this.
|
|
823
|
-
this.
|
|
1009
|
+
this.k8_1 = this.l8_1;
|
|
1010
|
+
this.n8_1 = e;
|
|
824
1011
|
}
|
|
825
1012
|
}
|
|
826
1013
|
while (true);
|
|
827
1014
|
};
|
|
828
1015
|
function $advanceToNextPotentialMatchCOROUTINE$(_this__u8e3s4, resultContinuation) {
|
|
829
1016
|
CoroutineImpl.call(this, resultContinuation);
|
|
830
|
-
this.
|
|
1017
|
+
this.b1i_1 = _this__u8e3s4;
|
|
831
1018
|
}
|
|
832
|
-
protoOf($advanceToNextPotentialMatchCOROUTINE$).
|
|
833
|
-
var suspendResult = this.
|
|
1019
|
+
protoOf($advanceToNextPotentialMatchCOROUTINE$).s8 = function () {
|
|
1020
|
+
var suspendResult = this.m8_1;
|
|
834
1021
|
$sm: do
|
|
835
1022
|
try {
|
|
836
|
-
var tmp = this.
|
|
1023
|
+
var tmp = this.k8_1;
|
|
837
1024
|
switch (tmp) {
|
|
838
1025
|
case 0:
|
|
839
|
-
this.
|
|
840
|
-
this.
|
|
1026
|
+
this.l8_1 = 8;
|
|
1027
|
+
this.k8_1 = 1;
|
|
841
1028
|
continue $sm;
|
|
842
1029
|
case 1:
|
|
843
|
-
if (!this.
|
|
844
|
-
this.
|
|
845
|
-
this.
|
|
1030
|
+
if (!this.b1i_1.o1h_1.xo()) {
|
|
1031
|
+
this.c1i_1 = true;
|
|
1032
|
+
this.k8_1 = 3;
|
|
846
1033
|
continue $sm;
|
|
847
1034
|
} else {
|
|
848
|
-
this.
|
|
849
|
-
suspendResult = this.
|
|
1035
|
+
this.k8_1 = 2;
|
|
1036
|
+
suspendResult = this.b1i_1.k1h_1.g1h(VOID, this);
|
|
850
1037
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
851
1038
|
return suspendResult;
|
|
852
1039
|
}
|
|
@@ -854,34 +1041,34 @@ protoOf($advanceToNextPotentialMatchCOROUTINE$).r8 = function () {
|
|
|
854
1041
|
}
|
|
855
1042
|
|
|
856
1043
|
case 2:
|
|
857
|
-
this.
|
|
858
|
-
this.
|
|
1044
|
+
this.c1i_1 = suspendResult;
|
|
1045
|
+
this.k8_1 = 3;
|
|
859
1046
|
continue $sm;
|
|
860
1047
|
case 3:
|
|
861
|
-
if (!this.
|
|
862
|
-
this.
|
|
1048
|
+
if (!this.c1i_1) {
|
|
1049
|
+
this.k8_1 = 7;
|
|
863
1050
|
continue $sm;
|
|
864
1051
|
}
|
|
865
1052
|
|
|
866
|
-
var nextMatch = indexOf(this.
|
|
1053
|
+
var nextMatch = indexOf(this.b1i_1.o1h_1, this.b1i_1.l1h_1.h1(0));
|
|
867
1054
|
if (nextMatch === -1n) {
|
|
868
|
-
var tmp_0 = this.
|
|
869
|
-
checkBounds(this.
|
|
870
|
-
this.
|
|
871
|
-
this.
|
|
872
|
-
suspendResult = flushIfNeeded(this.
|
|
1055
|
+
var tmp_0 = this.b1i_1.o1h_1;
|
|
1056
|
+
checkBounds(this.b1i_1, (tmp_0 instanceof Buffer ? tmp_0 : THROW_CCE()).g1());
|
|
1057
|
+
this.b1i_1.r1h_1 = add(this.b1i_1.r1h_1, this.b1i_1.o1h_1.aq(this.b1i_1.m1h_1.b1h()));
|
|
1058
|
+
this.k8_1 = 5;
|
|
1059
|
+
suspendResult = flushIfNeeded(this.b1i_1.m1h_1, this);
|
|
873
1060
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
874
1061
|
return suspendResult;
|
|
875
1062
|
}
|
|
876
1063
|
continue $sm;
|
|
877
1064
|
} else {
|
|
878
|
-
checkBounds(this.
|
|
879
|
-
var tmp_1 = this.
|
|
880
|
-
var tmp_2 = this.
|
|
881
|
-
var tmp_3 = this.
|
|
882
|
-
tmp_1.
|
|
883
|
-
this.
|
|
884
|
-
suspendResult = flushIfNeeded(this.
|
|
1065
|
+
checkBounds(this.b1i_1, nextMatch);
|
|
1066
|
+
var tmp_1 = this.b1i_1;
|
|
1067
|
+
var tmp_2 = this.b1i_1.r1h_1;
|
|
1068
|
+
var tmp_3 = this.b1i_1.m1h_1.b1h();
|
|
1069
|
+
tmp_1.r1h_1 = add(tmp_2, this.b1i_1.o1h_1.xp(tmp_3 instanceof Buffer ? tmp_3 : THROW_CCE(), nextMatch));
|
|
1070
|
+
this.k8_1 = 4;
|
|
1071
|
+
suspendResult = flushIfNeeded(this.b1i_1.m1h_1, this);
|
|
885
1072
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
886
1073
|
return suspendResult;
|
|
887
1074
|
}
|
|
@@ -891,49 +1078,49 @@ protoOf($advanceToNextPotentialMatchCOROUTINE$).r8 = function () {
|
|
|
891
1078
|
case 4:
|
|
892
1079
|
return Unit_instance;
|
|
893
1080
|
case 5:
|
|
894
|
-
this.
|
|
1081
|
+
this.k8_1 = 6;
|
|
895
1082
|
continue $sm;
|
|
896
1083
|
case 6:
|
|
897
|
-
this.
|
|
1084
|
+
this.k8_1 = 1;
|
|
898
1085
|
continue $sm;
|
|
899
1086
|
case 7:
|
|
900
1087
|
return Unit_instance;
|
|
901
1088
|
case 8:
|
|
902
|
-
throw this.
|
|
1089
|
+
throw this.n8_1;
|
|
903
1090
|
}
|
|
904
1091
|
} catch ($p) {
|
|
905
1092
|
var e = $p;
|
|
906
|
-
if (this.
|
|
1093
|
+
if (this.l8_1 === 8) {
|
|
907
1094
|
throw e;
|
|
908
1095
|
} else {
|
|
909
|
-
this.
|
|
910
|
-
this.
|
|
1096
|
+
this.k8_1 = this.l8_1;
|
|
1097
|
+
this.n8_1 = e;
|
|
911
1098
|
}
|
|
912
1099
|
}
|
|
913
1100
|
while (true);
|
|
914
1101
|
};
|
|
915
1102
|
function $checkFullMatchCOROUTINE$(_this__u8e3s4, resultContinuation) {
|
|
916
1103
|
CoroutineImpl.call(this, resultContinuation);
|
|
917
|
-
this.
|
|
1104
|
+
this.l1i_1 = _this__u8e3s4;
|
|
918
1105
|
}
|
|
919
|
-
protoOf($checkFullMatchCOROUTINE$).
|
|
920
|
-
var suspendResult = this.
|
|
1106
|
+
protoOf($checkFullMatchCOROUTINE$).s8 = function () {
|
|
1107
|
+
var suspendResult = this.m8_1;
|
|
921
1108
|
$sm: do
|
|
922
1109
|
try {
|
|
923
|
-
var tmp = this.
|
|
1110
|
+
var tmp = this.k8_1;
|
|
924
1111
|
switch (tmp) {
|
|
925
1112
|
case 0:
|
|
926
|
-
this.
|
|
927
|
-
this.
|
|
1113
|
+
this.l8_1 = 8;
|
|
1114
|
+
this.k8_1 = 1;
|
|
928
1115
|
continue $sm;
|
|
929
1116
|
case 1:
|
|
930
|
-
if (!this.
|
|
931
|
-
this.
|
|
932
|
-
this.
|
|
1117
|
+
if (!this.l1i_1.o1h_1.xo()) {
|
|
1118
|
+
this.n1i_1 = true;
|
|
1119
|
+
this.k8_1 = 3;
|
|
933
1120
|
continue $sm;
|
|
934
1121
|
} else {
|
|
935
|
-
this.
|
|
936
|
-
suspendResult = this.
|
|
1122
|
+
this.k8_1 = 2;
|
|
1123
|
+
suspendResult = this.l1i_1.k1h_1.g1h(VOID, this);
|
|
937
1124
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
938
1125
|
return suspendResult;
|
|
939
1126
|
}
|
|
@@ -941,120 +1128,139 @@ protoOf($checkFullMatchCOROUTINE$).r8 = function () {
|
|
|
941
1128
|
}
|
|
942
1129
|
|
|
943
1130
|
case 2:
|
|
944
|
-
this.
|
|
945
|
-
this.
|
|
1131
|
+
this.n1i_1 = suspendResult;
|
|
1132
|
+
this.k8_1 = 3;
|
|
946
1133
|
continue $sm;
|
|
947
1134
|
case 3:
|
|
948
|
-
if (!this.
|
|
949
|
-
this.
|
|
1135
|
+
if (!this.n1i_1) {
|
|
1136
|
+
this.k8_1 = 7;
|
|
950
1137
|
continue $sm;
|
|
951
1138
|
}
|
|
952
1139
|
|
|
953
|
-
this.
|
|
954
|
-
if (this.
|
|
955
|
-
var oldMatchIndex = this.
|
|
956
|
-
while (this.
|
|
957
|
-
this.
|
|
1140
|
+
this.m1i_1 = this.l1i_1.o1h_1.ap();
|
|
1141
|
+
if (this.l1i_1.s1h_1 > 0 && !(this.m1i_1 === this.l1i_1.l1h_1.h1(this.l1i_1.s1h_1))) {
|
|
1142
|
+
var oldMatchIndex = this.l1i_1.s1h_1;
|
|
1143
|
+
while (this.l1i_1.s1h_1 > 0 && !(this.m1i_1 === this.l1i_1.l1h_1.h1(this.l1i_1.s1h_1))) {
|
|
1144
|
+
this.l1i_1.s1h_1 = this.l1i_1.p1h_1[this.l1i_1.s1h_1 - 1 | 0];
|
|
958
1145
|
}
|
|
959
|
-
var retained = fromInt(oldMatchIndex - this.
|
|
960
|
-
checkBounds(this.
|
|
961
|
-
var tmp_0 = this.
|
|
962
|
-
var tmp_1 = this.
|
|
963
|
-
var tmp_2 = this.
|
|
964
|
-
tmp_0.
|
|
965
|
-
if (this.
|
|
966
|
-
this.
|
|
967
|
-
suspendResult = writeByte(this.
|
|
1146
|
+
var retained = fromInt(oldMatchIndex - this.l1i_1.s1h_1 | 0);
|
|
1147
|
+
checkBounds(this.l1i_1, retained);
|
|
1148
|
+
var tmp_0 = this.l1i_1;
|
|
1149
|
+
var tmp_1 = this.l1i_1.r1h_1;
|
|
1150
|
+
var tmp_2 = this.l1i_1.m1h_1.b1h();
|
|
1151
|
+
tmp_0.r1h_1 = add(tmp_1, this.l1i_1.q1h_1.xp(tmp_2 instanceof Buffer ? tmp_2 : THROW_CCE(), retained));
|
|
1152
|
+
if (this.l1i_1.s1h_1 === 0 && !(this.m1i_1 === this.l1i_1.l1h_1.h1(this.l1i_1.s1h_1))) {
|
|
1153
|
+
this.k8_1 = 6;
|
|
1154
|
+
suspendResult = writeByte(this.l1i_1.m1h_1, this.m1i_1, this);
|
|
968
1155
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
969
1156
|
return suspendResult;
|
|
970
1157
|
}
|
|
971
1158
|
continue $sm;
|
|
972
1159
|
} else {
|
|
973
|
-
this.
|
|
1160
|
+
this.k8_1 = 4;
|
|
974
1161
|
continue $sm;
|
|
975
1162
|
}
|
|
976
1163
|
} else {
|
|
977
|
-
this.
|
|
1164
|
+
this.k8_1 = 5;
|
|
978
1165
|
continue $sm;
|
|
979
1166
|
}
|
|
980
1167
|
|
|
981
1168
|
case 4:
|
|
982
|
-
this.
|
|
1169
|
+
this.k8_1 = 5;
|
|
983
1170
|
continue $sm;
|
|
984
1171
|
case 5:
|
|
985
|
-
this.
|
|
986
|
-
if (this.
|
|
1172
|
+
this.l1i_1.s1h_1 = this.l1i_1.s1h_1 + 1 | 0;
|
|
1173
|
+
if (this.l1i_1.s1h_1 === this.l1i_1.l1h_1.g1()) {
|
|
987
1174
|
return true;
|
|
988
1175
|
}
|
|
989
1176
|
|
|
990
|
-
this.
|
|
991
|
-
this.
|
|
1177
|
+
this.l1i_1.q1h_1.qq(this.m1i_1);
|
|
1178
|
+
this.k8_1 = 1;
|
|
992
1179
|
continue $sm;
|
|
993
1180
|
case 6:
|
|
994
|
-
var _unary__edvuaz = this.
|
|
995
|
-
this.
|
|
1181
|
+
var _unary__edvuaz = this.l1i_1.r1h_1;
|
|
1182
|
+
this.l1i_1.r1h_1 = add(_unary__edvuaz, get_ONE());
|
|
996
1183
|
return false;
|
|
997
1184
|
case 7:
|
|
998
1185
|
return false;
|
|
999
1186
|
case 8:
|
|
1000
|
-
throw this.
|
|
1187
|
+
throw this.n8_1;
|
|
1001
1188
|
}
|
|
1002
1189
|
} catch ($p) {
|
|
1003
1190
|
var e = $p;
|
|
1004
|
-
if (this.
|
|
1191
|
+
if (this.l8_1 === 8) {
|
|
1005
1192
|
throw e;
|
|
1006
1193
|
} else {
|
|
1007
|
-
this.
|
|
1008
|
-
this.
|
|
1194
|
+
this.k8_1 = this.l8_1;
|
|
1195
|
+
this.n8_1 = e;
|
|
1009
1196
|
}
|
|
1010
1197
|
}
|
|
1011
1198
|
while (true);
|
|
1012
1199
|
};
|
|
1013
1200
|
function ByteChannelScanner(channel, matchString, writeChannel, limit) {
|
|
1014
1201
|
limit = limit === VOID ? 9223372036854775807n : limit;
|
|
1015
|
-
this.
|
|
1016
|
-
this.
|
|
1017
|
-
this.
|
|
1018
|
-
this.
|
|
1202
|
+
this.k1h_1 = channel;
|
|
1203
|
+
this.l1h_1 = matchString;
|
|
1204
|
+
this.m1h_1 = writeChannel;
|
|
1205
|
+
this.n1h_1 = limit;
|
|
1019
1206
|
// Inline function 'kotlin.require' call
|
|
1020
|
-
if (!(this.
|
|
1207
|
+
if (!(this.l1h_1.g1() > 0)) {
|
|
1021
1208
|
var message = 'Empty match string not permitted for scanning';
|
|
1022
1209
|
throw IllegalArgumentException_init_$Create$(toString_1(message));
|
|
1023
1210
|
}
|
|
1024
|
-
this.
|
|
1025
|
-
this.
|
|
1026
|
-
this.
|
|
1027
|
-
this.
|
|
1028
|
-
this.
|
|
1211
|
+
this.o1h_1 = this.k1h_1.a1h();
|
|
1212
|
+
this.p1h_1 = buildPartialMatchTable(this);
|
|
1213
|
+
this.q1h_1 = new Buffer();
|
|
1214
|
+
this.r1h_1 = 0n;
|
|
1215
|
+
this.s1h_1 = 0;
|
|
1029
1216
|
}
|
|
1030
|
-
protoOf(ByteChannelScanner).
|
|
1217
|
+
protoOf(ByteChannelScanner).z1i = function (ignoreMissing, $completion) {
|
|
1031
1218
|
var tmp = new $findNextCOROUTINE$(this, ignoreMissing, $completion);
|
|
1032
|
-
tmp.
|
|
1033
|
-
tmp.
|
|
1034
|
-
return tmp.
|
|
1219
|
+
tmp.m8_1 = Unit_instance;
|
|
1220
|
+
tmp.n8_1 = null;
|
|
1221
|
+
return tmp.s8();
|
|
1035
1222
|
};
|
|
1223
|
+
function attachWriterJob(_this__u8e3s4, writerJob) {
|
|
1224
|
+
var tmp = writerJob.a1j_1;
|
|
1225
|
+
var tmp0_safe_receiver = tmp instanceof ByteChannel ? tmp : null;
|
|
1226
|
+
if (tmp0_safe_receiver == null)
|
|
1227
|
+
null;
|
|
1228
|
+
else {
|
|
1229
|
+
tmp0_safe_receiver.j1h(attachWriterJob$lambda(_this__u8e3s4));
|
|
1230
|
+
}
|
|
1231
|
+
}
|
|
1232
|
+
function attachWriterJob$lambda($this_attachWriterJob) {
|
|
1233
|
+
return function (cause) {
|
|
1234
|
+
var tmp;
|
|
1235
|
+
if (!(cause == null)) {
|
|
1236
|
+
$this_attachWriterJob.i1h(cause);
|
|
1237
|
+
tmp = Unit_instance;
|
|
1238
|
+
}
|
|
1239
|
+
return Unit_instance;
|
|
1240
|
+
};
|
|
1241
|
+
}
|
|
1036
1242
|
function ByteReadChannel$Companion$Empty$1() {
|
|
1037
|
-
this.
|
|
1038
|
-
this.
|
|
1243
|
+
this.c1j_1 = null;
|
|
1244
|
+
this.d1j_1 = new Buffer();
|
|
1039
1245
|
}
|
|
1040
|
-
protoOf(ByteReadChannel$Companion$Empty$1).
|
|
1041
|
-
return this.
|
|
1246
|
+
protoOf(ByteReadChannel$Companion$Empty$1).d1h = function () {
|
|
1247
|
+
return this.c1j_1;
|
|
1042
1248
|
};
|
|
1043
|
-
protoOf(ByteReadChannel$Companion$Empty$1).
|
|
1249
|
+
protoOf(ByteReadChannel$Companion$Empty$1).e1h = function () {
|
|
1044
1250
|
return true;
|
|
1045
1251
|
};
|
|
1046
|
-
protoOf(ByteReadChannel$Companion$Empty$1).
|
|
1047
|
-
return this.
|
|
1252
|
+
protoOf(ByteReadChannel$Companion$Empty$1).a1h = function () {
|
|
1253
|
+
return this.d1j_1;
|
|
1048
1254
|
};
|
|
1049
|
-
protoOf(ByteReadChannel$Companion$Empty$1).
|
|
1255
|
+
protoOf(ByteReadChannel$Companion$Empty$1).f1h = function (min, $completion) {
|
|
1050
1256
|
return false;
|
|
1051
1257
|
};
|
|
1052
|
-
protoOf(ByteReadChannel$Companion$Empty$1).
|
|
1258
|
+
protoOf(ByteReadChannel$Companion$Empty$1).i1h = function (cause) {
|
|
1053
1259
|
};
|
|
1054
1260
|
function Companion_0() {
|
|
1055
1261
|
Companion_instance_1 = this;
|
|
1056
1262
|
var tmp = this;
|
|
1057
|
-
tmp.
|
|
1263
|
+
tmp.e1j_1 = new ByteReadChannel$Companion$Empty$1();
|
|
1058
1264
|
}
|
|
1059
1265
|
var Companion_instance_1;
|
|
1060
1266
|
function Companion_getInstance_0() {
|
|
@@ -1065,69 +1271,78 @@ function Companion_getInstance_0() {
|
|
|
1065
1271
|
function ByteReadChannel_1() {
|
|
1066
1272
|
}
|
|
1067
1273
|
function cancel_0(_this__u8e3s4) {
|
|
1068
|
-
_this__u8e3s4.
|
|
1274
|
+
_this__u8e3s4.i1h(IOException_init_$Create$('Channel was cancelled'));
|
|
1069
1275
|
}
|
|
1070
1276
|
function readBuffer(_this__u8e3s4, $completion) {
|
|
1071
1277
|
var tmp = new $readBufferCOROUTINE$(_this__u8e3s4, $completion);
|
|
1072
|
-
tmp.
|
|
1073
|
-
tmp.
|
|
1074
|
-
return tmp.
|
|
1278
|
+
tmp.m8_1 = Unit_instance;
|
|
1279
|
+
tmp.n8_1 = null;
|
|
1280
|
+
return tmp.s8();
|
|
1075
1281
|
}
|
|
1076
1282
|
function readAvailable(_this__u8e3s4, buffer, offset, length, $completion) {
|
|
1077
1283
|
offset = offset === VOID ? 0 : offset;
|
|
1078
1284
|
length = length === VOID ? buffer.length - offset | 0 : length;
|
|
1079
1285
|
var tmp = new $readAvailableCOROUTINE$(_this__u8e3s4, buffer, offset, length, $completion);
|
|
1080
|
-
tmp.
|
|
1081
|
-
tmp.
|
|
1082
|
-
return tmp.
|
|
1286
|
+
tmp.m8_1 = Unit_instance;
|
|
1287
|
+
tmp.n8_1 = null;
|
|
1288
|
+
return tmp.s8();
|
|
1083
1289
|
}
|
|
1084
1290
|
function readRemaining(_this__u8e3s4, $completion) {
|
|
1085
1291
|
var tmp = new $readRemainingCOROUTINE$(_this__u8e3s4, $completion);
|
|
1086
|
-
tmp.
|
|
1087
|
-
tmp.
|
|
1088
|
-
return tmp.
|
|
1292
|
+
tmp.m8_1 = Unit_instance;
|
|
1293
|
+
tmp.n8_1 = null;
|
|
1294
|
+
return tmp.s8();
|
|
1089
1295
|
}
|
|
1090
1296
|
function toByteArray(_this__u8e3s4, $completion) {
|
|
1091
1297
|
var tmp = new $toByteArrayCOROUTINE$(_this__u8e3s4, $completion);
|
|
1092
|
-
tmp.
|
|
1093
|
-
tmp.
|
|
1094
|
-
return tmp.
|
|
1298
|
+
tmp.m8_1 = Unit_instance;
|
|
1299
|
+
tmp.n8_1 = null;
|
|
1300
|
+
return tmp.s8();
|
|
1095
1301
|
}
|
|
1096
1302
|
function copyTo(_this__u8e3s4, channel, limit, $completion) {
|
|
1097
1303
|
var tmp = new $copyToCOROUTINE$(_this__u8e3s4, channel, limit, $completion);
|
|
1098
|
-
tmp.
|
|
1099
|
-
tmp.
|
|
1100
|
-
return tmp.
|
|
1304
|
+
tmp.m8_1 = Unit_instance;
|
|
1305
|
+
tmp.n8_1 = null;
|
|
1306
|
+
return tmp.s8();
|
|
1307
|
+
}
|
|
1308
|
+
function rethrowCloseCauseIfNeeded(_this__u8e3s4) {
|
|
1309
|
+
var tmp0_safe_receiver = _this__u8e3s4.d1h();
|
|
1310
|
+
if (tmp0_safe_receiver == null)
|
|
1311
|
+
null;
|
|
1312
|
+
else {
|
|
1313
|
+
// Inline function 'kotlin.let' call
|
|
1314
|
+
throw tmp0_safe_receiver;
|
|
1315
|
+
}
|
|
1101
1316
|
}
|
|
1102
1317
|
function discard(_this__u8e3s4, max, $completion) {
|
|
1103
1318
|
max = max === VOID ? 9223372036854775807n : max;
|
|
1104
1319
|
var tmp = new $discardCOROUTINE$(_this__u8e3s4, max, $completion);
|
|
1105
|
-
tmp.
|
|
1106
|
-
tmp.
|
|
1107
|
-
return tmp.
|
|
1320
|
+
tmp.m8_1 = Unit_instance;
|
|
1321
|
+
tmp.n8_1 = null;
|
|
1322
|
+
return tmp.s8();
|
|
1108
1323
|
}
|
|
1109
1324
|
function copyTo_0(_this__u8e3s4, channel, $completion) {
|
|
1110
1325
|
var tmp = new $copyToCOROUTINE$_0(_this__u8e3s4, channel, $completion);
|
|
1111
|
-
tmp.
|
|
1112
|
-
tmp.
|
|
1113
|
-
return tmp.
|
|
1326
|
+
tmp.m8_1 = Unit_instance;
|
|
1327
|
+
tmp.n8_1 = null;
|
|
1328
|
+
return tmp.s8();
|
|
1114
1329
|
}
|
|
1115
1330
|
function skipIfFound(_this__u8e3s4, byteString, $completion) {
|
|
1116
1331
|
var tmp = new $skipIfFoundCOROUTINE$(_this__u8e3s4, byteString, $completion);
|
|
1117
|
-
tmp.
|
|
1118
|
-
tmp.
|
|
1119
|
-
return tmp.
|
|
1332
|
+
tmp.m8_1 = Unit_instance;
|
|
1333
|
+
tmp.n8_1 = null;
|
|
1334
|
+
return tmp.s8();
|
|
1120
1335
|
}
|
|
1121
1336
|
function readPacket(_this__u8e3s4, packet, $completion) {
|
|
1122
1337
|
var tmp = new $readPacketCOROUTINE$(_this__u8e3s4, packet, $completion);
|
|
1123
|
-
tmp.
|
|
1124
|
-
tmp.
|
|
1125
|
-
return tmp.
|
|
1338
|
+
tmp.m8_1 = Unit_instance;
|
|
1339
|
+
tmp.n8_1 = null;
|
|
1340
|
+
return tmp.s8();
|
|
1126
1341
|
}
|
|
1127
1342
|
function readUntil(_this__u8e3s4, matchString, writeChannel, limit, ignoreMissing, $completion) {
|
|
1128
1343
|
limit = limit === VOID ? 9223372036854775807n : limit;
|
|
1129
1344
|
ignoreMissing = ignoreMissing === VOID ? false : ignoreMissing;
|
|
1130
|
-
return (new ByteChannelScanner(_this__u8e3s4, matchString, writeChannel, limit)).
|
|
1345
|
+
return (new ByteChannelScanner(_this__u8e3s4, matchString, writeChannel, limit)).z1i(ignoreMissing, $completion);
|
|
1131
1346
|
}
|
|
1132
1347
|
function readLineStrictTo(_this__u8e3s4, out, limit, lineEnding, $completion) {
|
|
1133
1348
|
limit = limit === VOID ? 9223372036854775807n : limit;
|
|
@@ -1139,17 +1354,8 @@ function readLineStrictTo(_this__u8e3s4, out, limit, lineEnding, $completion) {
|
|
|
1139
1354
|
}
|
|
1140
1355
|
return internalReadLineTo(_this__u8e3s4, out, limit, lineEnding.equals(LineEnding_Lenient_getInstance()), true, $completion);
|
|
1141
1356
|
}
|
|
1142
|
-
function rethrowCloseCauseIfNeeded(_this__u8e3s4) {
|
|
1143
|
-
var tmp0_safe_receiver = _this__u8e3s4.p1g();
|
|
1144
|
-
if (tmp0_safe_receiver == null)
|
|
1145
|
-
null;
|
|
1146
|
-
else {
|
|
1147
|
-
// Inline function 'kotlin.let' call
|
|
1148
|
-
throw tmp0_safe_receiver;
|
|
1149
|
-
}
|
|
1150
|
-
}
|
|
1151
1357
|
function rethrowCloseCauseIfNeeded_0(_this__u8e3s4) {
|
|
1152
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
1358
|
+
var tmp0_safe_receiver = _this__u8e3s4.d1h();
|
|
1153
1359
|
if (tmp0_safe_receiver == null)
|
|
1154
1360
|
null;
|
|
1155
1361
|
else {
|
|
@@ -1158,28 +1364,28 @@ function rethrowCloseCauseIfNeeded_0(_this__u8e3s4) {
|
|
|
1158
1364
|
}
|
|
1159
1365
|
}
|
|
1160
1366
|
function get_availableForRead(_this__u8e3s4) {
|
|
1161
|
-
return convertToInt(_this__u8e3s4.
|
|
1367
|
+
return convertToInt(_this__u8e3s4.a1h().wo().g1());
|
|
1162
1368
|
}
|
|
1163
1369
|
function peek(_this__u8e3s4, count, $completion) {
|
|
1164
1370
|
var tmp = new $peekCOROUTINE$(_this__u8e3s4, count, $completion);
|
|
1165
|
-
tmp.
|
|
1166
|
-
tmp.
|
|
1167
|
-
return tmp.
|
|
1371
|
+
tmp.m8_1 = Unit_instance;
|
|
1372
|
+
tmp.n8_1 = null;
|
|
1373
|
+
return tmp.s8();
|
|
1168
1374
|
}
|
|
1169
1375
|
function internalReadLineTo(_this__u8e3s4, out, limit, lenientLineEnding, throwOnIncompleteLine, $completion) {
|
|
1170
1376
|
var tmp = new $internalReadLineToCOROUTINE$(_this__u8e3s4, out, limit, lenientLineEnding, throwOnIncompleteLine, $completion);
|
|
1171
|
-
tmp.
|
|
1172
|
-
tmp.
|
|
1173
|
-
return tmp.
|
|
1377
|
+
tmp.m8_1 = Unit_instance;
|
|
1378
|
+
tmp.n8_1 = null;
|
|
1379
|
+
return tmp.s8();
|
|
1174
1380
|
}
|
|
1175
1381
|
function throwEndOfStreamException(consumed) {
|
|
1176
|
-
throw EOFException_init_$Create$('Unexpected end of stream after reading ' + consumed.toString() + '
|
|
1382
|
+
throw EOFException_init_$Create$('Unexpected end of stream after reading ' + consumed.toString() + ' bytes');
|
|
1177
1383
|
}
|
|
1178
1384
|
function throwTooLongLineException(limit) {
|
|
1179
|
-
throw new TooLongLineException('Line exceeds limit of ' + limit.toString() + '
|
|
1385
|
+
throw new TooLongLineException('Line exceeds limit of ' + limit.toString() + ' bytes');
|
|
1180
1386
|
}
|
|
1181
1387
|
function rethrowCloseCauseIfNeeded_1(_this__u8e3s4) {
|
|
1182
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
1388
|
+
var tmp0_safe_receiver = _this__u8e3s4.d1h();
|
|
1183
1389
|
if (tmp0_safe_receiver == null)
|
|
1184
1390
|
null;
|
|
1185
1391
|
else {
|
|
@@ -1187,14 +1393,23 @@ function rethrowCloseCauseIfNeeded_1(_this__u8e3s4) {
|
|
|
1187
1393
|
throw tmp0_safe_receiver;
|
|
1188
1394
|
}
|
|
1189
1395
|
}
|
|
1190
|
-
function internalReadLineTo$
|
|
1396
|
+
function internalReadLineTo$bufferBytes(outBuffer, readBuffer, consumed, count) {
|
|
1191
1397
|
if (count > 0n) {
|
|
1192
|
-
|
|
1193
|
-
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
|
|
1398
|
+
if (outBuffer._v == null) {
|
|
1399
|
+
outBuffer._v = new Buffer();
|
|
1400
|
+
}
|
|
1401
|
+
outBuffer._v.kq(readBuffer, count);
|
|
1402
|
+
consumed._v = add(consumed._v, count);
|
|
1403
|
+
}
|
|
1404
|
+
}
|
|
1405
|
+
function internalReadLineTo$appendOrBuffer(outBuffer, $out, readBuffer, consumed, count) {
|
|
1406
|
+
if (outBuffer._v == null) {
|
|
1407
|
+
if (count > 0n) {
|
|
1408
|
+
$out.f1(readString(readBuffer, count));
|
|
1409
|
+
consumed._v = add(consumed._v, count);
|
|
1410
|
+
}
|
|
1411
|
+
} else {
|
|
1412
|
+
internalReadLineTo$bufferBytes(outBuffer, readBuffer, consumed, count);
|
|
1198
1413
|
}
|
|
1199
1414
|
}
|
|
1200
1415
|
function internalReadLineTo$scanForSoleCr(_this__u8e3s4, $lenientLineEnding, lfIndex, limitLeft) {
|
|
@@ -1218,178 +1433,178 @@ function internalReadLineTo$scanForSoleCr(_this__u8e3s4, $lenientLineEnding, lfI
|
|
|
1218
1433
|
}
|
|
1219
1434
|
function internalReadLineTo$discardCrlfOrCr(_this__u8e3s4, $this_internalReadLineTo, $lenientLineEnding, $completion) {
|
|
1220
1435
|
var tmp = new $internalReadLineTo$discardCrlfOrCrCOROUTINE$(_this__u8e3s4, $this_internalReadLineTo, $lenientLineEnding, $completion);
|
|
1221
|
-
tmp.
|
|
1222
|
-
tmp.
|
|
1223
|
-
return tmp.
|
|
1436
|
+
tmp.m8_1 = Unit_instance;
|
|
1437
|
+
tmp.n8_1 = null;
|
|
1438
|
+
return tmp.s8();
|
|
1224
1439
|
}
|
|
1225
1440
|
function $readBufferCOROUTINE$(_this__u8e3s4, resultContinuation) {
|
|
1226
1441
|
CoroutineImpl.call(this, resultContinuation);
|
|
1227
|
-
this.
|
|
1442
|
+
this.n1j_1 = _this__u8e3s4;
|
|
1228
1443
|
}
|
|
1229
|
-
protoOf($readBufferCOROUTINE$).
|
|
1230
|
-
var suspendResult = this.
|
|
1444
|
+
protoOf($readBufferCOROUTINE$).s8 = function () {
|
|
1445
|
+
var suspendResult = this.m8_1;
|
|
1231
1446
|
$sm: do
|
|
1232
1447
|
try {
|
|
1233
|
-
var tmp = this.
|
|
1448
|
+
var tmp = this.k8_1;
|
|
1234
1449
|
switch (tmp) {
|
|
1235
1450
|
case 0:
|
|
1236
|
-
this.
|
|
1237
|
-
this.
|
|
1238
|
-
this.
|
|
1451
|
+
this.l8_1 = 4;
|
|
1452
|
+
this.o1j_1 = new Buffer();
|
|
1453
|
+
this.k8_1 = 1;
|
|
1239
1454
|
continue $sm;
|
|
1240
1455
|
case 1:
|
|
1241
|
-
if (!!this.
|
|
1242
|
-
this.
|
|
1456
|
+
if (!!this.n1j_1.e1h()) {
|
|
1457
|
+
this.k8_1 = 3;
|
|
1243
1458
|
continue $sm;
|
|
1244
1459
|
}
|
|
1245
1460
|
|
|
1246
|
-
this.
|
|
1247
|
-
this.
|
|
1248
|
-
suspendResult = this.
|
|
1461
|
+
this.o1j_1.pq(this.n1j_1.a1h());
|
|
1462
|
+
this.k8_1 = 2;
|
|
1463
|
+
suspendResult = this.n1j_1.g1h(VOID, this);
|
|
1249
1464
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1250
1465
|
return suspendResult;
|
|
1251
1466
|
}
|
|
1252
1467
|
|
|
1253
1468
|
continue $sm;
|
|
1254
1469
|
case 2:
|
|
1255
|
-
this.
|
|
1470
|
+
this.k8_1 = 1;
|
|
1256
1471
|
continue $sm;
|
|
1257
1472
|
case 3:
|
|
1258
|
-
var tmp0_safe_receiver = this.
|
|
1473
|
+
var tmp0_safe_receiver = this.n1j_1.d1h();
|
|
1259
1474
|
if (tmp0_safe_receiver == null)
|
|
1260
1475
|
null;
|
|
1261
1476
|
else {
|
|
1262
1477
|
throw tmp0_safe_receiver;
|
|
1263
1478
|
}
|
|
1264
1479
|
|
|
1265
|
-
return this.
|
|
1480
|
+
return this.o1j_1;
|
|
1266
1481
|
case 4:
|
|
1267
|
-
throw this.
|
|
1482
|
+
throw this.n8_1;
|
|
1268
1483
|
}
|
|
1269
1484
|
} catch ($p) {
|
|
1270
1485
|
var e = $p;
|
|
1271
|
-
if (this.
|
|
1486
|
+
if (this.l8_1 === 4) {
|
|
1272
1487
|
throw e;
|
|
1273
1488
|
} else {
|
|
1274
|
-
this.
|
|
1275
|
-
this.
|
|
1489
|
+
this.k8_1 = this.l8_1;
|
|
1490
|
+
this.n8_1 = e;
|
|
1276
1491
|
}
|
|
1277
1492
|
}
|
|
1278
1493
|
while (true);
|
|
1279
1494
|
};
|
|
1280
1495
|
function $readAvailableCOROUTINE$(_this__u8e3s4, buffer, offset, length, resultContinuation) {
|
|
1281
1496
|
CoroutineImpl.call(this, resultContinuation);
|
|
1282
|
-
this.
|
|
1283
|
-
this.
|
|
1284
|
-
this.
|
|
1285
|
-
this.
|
|
1497
|
+
this.x1j_1 = _this__u8e3s4;
|
|
1498
|
+
this.y1j_1 = buffer;
|
|
1499
|
+
this.z1j_1 = offset;
|
|
1500
|
+
this.a1k_1 = length;
|
|
1286
1501
|
}
|
|
1287
|
-
protoOf($readAvailableCOROUTINE$).
|
|
1288
|
-
var suspendResult = this.
|
|
1502
|
+
protoOf($readAvailableCOROUTINE$).s8 = function () {
|
|
1503
|
+
var suspendResult = this.m8_1;
|
|
1289
1504
|
$sm: do
|
|
1290
1505
|
try {
|
|
1291
|
-
var tmp = this.
|
|
1506
|
+
var tmp = this.k8_1;
|
|
1292
1507
|
switch (tmp) {
|
|
1293
1508
|
case 0:
|
|
1294
|
-
this.
|
|
1295
|
-
if (this.
|
|
1509
|
+
this.l8_1 = 3;
|
|
1510
|
+
if (this.x1j_1.e1h())
|
|
1296
1511
|
return -1;
|
|
1297
|
-
if (this.
|
|
1298
|
-
this.
|
|
1299
|
-
suspendResult = this.
|
|
1512
|
+
if (this.x1j_1.a1h().xo()) {
|
|
1513
|
+
this.k8_1 = 1;
|
|
1514
|
+
suspendResult = this.x1j_1.g1h(VOID, this);
|
|
1300
1515
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1301
1516
|
return suspendResult;
|
|
1302
1517
|
}
|
|
1303
1518
|
continue $sm;
|
|
1304
1519
|
} else {
|
|
1305
|
-
this.
|
|
1520
|
+
this.k8_1 = 2;
|
|
1306
1521
|
continue $sm;
|
|
1307
1522
|
}
|
|
1308
1523
|
|
|
1309
1524
|
case 1:
|
|
1310
|
-
this.
|
|
1525
|
+
this.k8_1 = 2;
|
|
1311
1526
|
continue $sm;
|
|
1312
1527
|
case 2:
|
|
1313
|
-
if (this.
|
|
1528
|
+
if (this.x1j_1.e1h())
|
|
1314
1529
|
return -1;
|
|
1315
|
-
return readAvailable_0(this.
|
|
1530
|
+
return readAvailable_0(this.x1j_1.a1h(), this.y1j_1, this.z1j_1, this.a1k_1);
|
|
1316
1531
|
case 3:
|
|
1317
|
-
throw this.
|
|
1532
|
+
throw this.n8_1;
|
|
1318
1533
|
}
|
|
1319
1534
|
} catch ($p) {
|
|
1320
1535
|
var e = $p;
|
|
1321
|
-
if (this.
|
|
1536
|
+
if (this.l8_1 === 3) {
|
|
1322
1537
|
throw e;
|
|
1323
1538
|
} else {
|
|
1324
|
-
this.
|
|
1325
|
-
this.
|
|
1539
|
+
this.k8_1 = this.l8_1;
|
|
1540
|
+
this.n8_1 = e;
|
|
1326
1541
|
}
|
|
1327
1542
|
}
|
|
1328
1543
|
while (true);
|
|
1329
1544
|
};
|
|
1330
1545
|
function $readRemainingCOROUTINE$(_this__u8e3s4, resultContinuation) {
|
|
1331
1546
|
CoroutineImpl.call(this, resultContinuation);
|
|
1332
|
-
this.
|
|
1547
|
+
this.j1k_1 = _this__u8e3s4;
|
|
1333
1548
|
}
|
|
1334
|
-
protoOf($readRemainingCOROUTINE$).
|
|
1335
|
-
var suspendResult = this.
|
|
1549
|
+
protoOf($readRemainingCOROUTINE$).s8 = function () {
|
|
1550
|
+
var suspendResult = this.m8_1;
|
|
1336
1551
|
$sm: do
|
|
1337
1552
|
try {
|
|
1338
|
-
var tmp = this.
|
|
1553
|
+
var tmp = this.k8_1;
|
|
1339
1554
|
switch (tmp) {
|
|
1340
1555
|
case 0:
|
|
1341
|
-
this.
|
|
1342
|
-
this.
|
|
1343
|
-
this.
|
|
1556
|
+
this.l8_1 = 4;
|
|
1557
|
+
this.k1k_1 = BytePacketBuilder();
|
|
1558
|
+
this.k8_1 = 1;
|
|
1344
1559
|
continue $sm;
|
|
1345
1560
|
case 1:
|
|
1346
|
-
if (!!this.
|
|
1347
|
-
this.
|
|
1561
|
+
if (!!this.j1k_1.e1h()) {
|
|
1562
|
+
this.k8_1 = 3;
|
|
1348
1563
|
continue $sm;
|
|
1349
1564
|
}
|
|
1350
1565
|
|
|
1351
|
-
this.
|
|
1352
|
-
this.
|
|
1353
|
-
suspendResult = this.
|
|
1566
|
+
this.k1k_1.pq(this.j1k_1.a1h());
|
|
1567
|
+
this.k8_1 = 2;
|
|
1568
|
+
suspendResult = this.j1k_1.g1h(VOID, this);
|
|
1354
1569
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1355
1570
|
return suspendResult;
|
|
1356
1571
|
}
|
|
1357
1572
|
|
|
1358
1573
|
continue $sm;
|
|
1359
1574
|
case 2:
|
|
1360
|
-
this.
|
|
1575
|
+
this.k8_1 = 1;
|
|
1361
1576
|
continue $sm;
|
|
1362
1577
|
case 3:
|
|
1363
|
-
|
|
1364
|
-
return this.
|
|
1578
|
+
rethrowCloseCauseIfNeeded(this.j1k_1);
|
|
1579
|
+
return this.k1k_1.wo();
|
|
1365
1580
|
case 4:
|
|
1366
|
-
throw this.
|
|
1581
|
+
throw this.n8_1;
|
|
1367
1582
|
}
|
|
1368
1583
|
} catch ($p) {
|
|
1369
1584
|
var e = $p;
|
|
1370
|
-
if (this.
|
|
1585
|
+
if (this.l8_1 === 4) {
|
|
1371
1586
|
throw e;
|
|
1372
1587
|
} else {
|
|
1373
|
-
this.
|
|
1374
|
-
this.
|
|
1588
|
+
this.k8_1 = this.l8_1;
|
|
1589
|
+
this.n8_1 = e;
|
|
1375
1590
|
}
|
|
1376
1591
|
}
|
|
1377
1592
|
while (true);
|
|
1378
1593
|
};
|
|
1379
1594
|
function $toByteArrayCOROUTINE$(_this__u8e3s4, resultContinuation) {
|
|
1380
1595
|
CoroutineImpl.call(this, resultContinuation);
|
|
1381
|
-
this.
|
|
1596
|
+
this.t1k_1 = _this__u8e3s4;
|
|
1382
1597
|
}
|
|
1383
|
-
protoOf($toByteArrayCOROUTINE$).
|
|
1384
|
-
var suspendResult = this.
|
|
1598
|
+
protoOf($toByteArrayCOROUTINE$).s8 = function () {
|
|
1599
|
+
var suspendResult = this.m8_1;
|
|
1385
1600
|
$sm: do
|
|
1386
1601
|
try {
|
|
1387
|
-
var tmp = this.
|
|
1602
|
+
var tmp = this.k8_1;
|
|
1388
1603
|
switch (tmp) {
|
|
1389
1604
|
case 0:
|
|
1390
|
-
this.
|
|
1391
|
-
this.
|
|
1392
|
-
suspendResult = readBuffer(this.
|
|
1605
|
+
this.l8_1 = 2;
|
|
1606
|
+
this.k8_1 = 1;
|
|
1607
|
+
suspendResult = readBuffer(this.t1k_1, this);
|
|
1393
1608
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1394
1609
|
return suspendResult;
|
|
1395
1610
|
}
|
|
@@ -1399,306 +1614,306 @@ protoOf($toByteArrayCOROUTINE$).r8 = function () {
|
|
|
1399
1614
|
var ARGUMENT = suspendResult;
|
|
1400
1615
|
return readBytes(ARGUMENT);
|
|
1401
1616
|
case 2:
|
|
1402
|
-
throw this.
|
|
1617
|
+
throw this.n8_1;
|
|
1403
1618
|
}
|
|
1404
1619
|
} catch ($p) {
|
|
1405
1620
|
var e = $p;
|
|
1406
|
-
if (this.
|
|
1621
|
+
if (this.l8_1 === 2) {
|
|
1407
1622
|
throw e;
|
|
1408
1623
|
} else {
|
|
1409
|
-
this.
|
|
1410
|
-
this.
|
|
1624
|
+
this.k8_1 = this.l8_1;
|
|
1625
|
+
this.n8_1 = e;
|
|
1411
1626
|
}
|
|
1412
1627
|
}
|
|
1413
1628
|
while (true);
|
|
1414
1629
|
};
|
|
1415
1630
|
function $copyToCOROUTINE$(_this__u8e3s4, channel, limit, resultContinuation) {
|
|
1416
1631
|
CoroutineImpl.call(this, resultContinuation);
|
|
1417
|
-
this.
|
|
1418
|
-
this.
|
|
1419
|
-
this.
|
|
1632
|
+
this.c1l_1 = _this__u8e3s4;
|
|
1633
|
+
this.d1l_1 = channel;
|
|
1634
|
+
this.e1l_1 = limit;
|
|
1420
1635
|
}
|
|
1421
|
-
protoOf($copyToCOROUTINE$).
|
|
1422
|
-
var suspendResult = this.
|
|
1636
|
+
protoOf($copyToCOROUTINE$).s8 = function () {
|
|
1637
|
+
var suspendResult = this.m8_1;
|
|
1423
1638
|
$sm: do
|
|
1424
1639
|
try {
|
|
1425
|
-
var tmp = this.
|
|
1640
|
+
var tmp = this.k8_1;
|
|
1426
1641
|
switch (tmp) {
|
|
1427
1642
|
case 0:
|
|
1428
|
-
this.
|
|
1429
|
-
this.
|
|
1430
|
-
this.
|
|
1643
|
+
this.l8_1 = 12;
|
|
1644
|
+
this.f1l_1 = this.e1l_1;
|
|
1645
|
+
this.k8_1 = 1;
|
|
1431
1646
|
continue $sm;
|
|
1432
1647
|
case 1:
|
|
1433
|
-
this.
|
|
1434
|
-
this.
|
|
1435
|
-
this.
|
|
1648
|
+
this.l8_1 = 8;
|
|
1649
|
+
this.l8_1 = 7;
|
|
1650
|
+
this.k8_1 = 2;
|
|
1436
1651
|
continue $sm;
|
|
1437
1652
|
case 2:
|
|
1438
|
-
if (!(!this.
|
|
1439
|
-
this.
|
|
1653
|
+
if (!(!this.c1l_1.e1h() && this.f1l_1 > 0n)) {
|
|
1654
|
+
this.k8_1 = 6;
|
|
1440
1655
|
continue $sm;
|
|
1441
1656
|
}
|
|
1442
1657
|
|
|
1443
|
-
if (this.
|
|
1444
|
-
this.
|
|
1445
|
-
suspendResult = this.
|
|
1658
|
+
if (this.c1l_1.a1h().xo()) {
|
|
1659
|
+
this.k8_1 = 3;
|
|
1660
|
+
suspendResult = this.c1l_1.g1h(VOID, this);
|
|
1446
1661
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1447
1662
|
return suspendResult;
|
|
1448
1663
|
}
|
|
1449
1664
|
continue $sm;
|
|
1450
1665
|
} else {
|
|
1451
|
-
this.
|
|
1666
|
+
this.k8_1 = 4;
|
|
1452
1667
|
continue $sm;
|
|
1453
1668
|
}
|
|
1454
1669
|
|
|
1455
1670
|
case 3:
|
|
1456
|
-
this.
|
|
1671
|
+
this.k8_1 = 4;
|
|
1457
1672
|
continue $sm;
|
|
1458
1673
|
case 4:
|
|
1459
|
-
var tmp0 = this.
|
|
1460
|
-
var b = get_remaining(this.
|
|
1674
|
+
var tmp0 = this.f1l_1;
|
|
1675
|
+
var b = get_remaining(this.c1l_1.a1h());
|
|
1461
1676
|
var count = tmp0 <= b ? tmp0 : b;
|
|
1462
|
-
this.
|
|
1463
|
-
this.
|
|
1464
|
-
this.
|
|
1465
|
-
suspendResult = this.
|
|
1677
|
+
this.c1l_1.a1h().zp(this.d1l_1.b1h(), count);
|
|
1678
|
+
this.f1l_1 = subtract(this.f1l_1, count);
|
|
1679
|
+
this.k8_1 = 5;
|
|
1680
|
+
suspendResult = this.d1l_1.y1g(this);
|
|
1466
1681
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1467
1682
|
return suspendResult;
|
|
1468
1683
|
}
|
|
1469
1684
|
|
|
1470
1685
|
continue $sm;
|
|
1471
1686
|
case 5:
|
|
1472
|
-
this.
|
|
1687
|
+
this.k8_1 = 2;
|
|
1473
1688
|
continue $sm;
|
|
1474
1689
|
case 6:
|
|
1475
|
-
this.
|
|
1476
|
-
this.
|
|
1690
|
+
this.l8_1 = 12;
|
|
1691
|
+
this.k8_1 = 10;
|
|
1477
1692
|
continue $sm;
|
|
1478
1693
|
case 7:
|
|
1479
|
-
this.
|
|
1480
|
-
var tmp_0 = this.
|
|
1694
|
+
this.l8_1 = 8;
|
|
1695
|
+
var tmp_0 = this.n8_1;
|
|
1481
1696
|
if (tmp_0 instanceof Error) {
|
|
1482
|
-
var cause = this.
|
|
1483
|
-
this.
|
|
1484
|
-
close_0(this.
|
|
1697
|
+
var cause = this.n8_1;
|
|
1698
|
+
this.c1l_1.i1h(cause);
|
|
1699
|
+
close_0(this.d1l_1, cause);
|
|
1485
1700
|
throw cause;
|
|
1486
1701
|
} else {
|
|
1487
|
-
throw this.
|
|
1702
|
+
throw this.n8_1;
|
|
1488
1703
|
}
|
|
1489
1704
|
|
|
1490
1705
|
case 8:
|
|
1491
|
-
this.
|
|
1492
|
-
this.
|
|
1493
|
-
this.
|
|
1494
|
-
suspendResult = this.
|
|
1706
|
+
this.l8_1 = 12;
|
|
1707
|
+
this.g1l_1 = this.n8_1;
|
|
1708
|
+
this.k8_1 = 9;
|
|
1709
|
+
suspendResult = this.d1l_1.y1g(this);
|
|
1495
1710
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1496
1711
|
return suspendResult;
|
|
1497
1712
|
}
|
|
1498
1713
|
|
|
1499
1714
|
continue $sm;
|
|
1500
1715
|
case 9:
|
|
1501
|
-
throw this.
|
|
1716
|
+
throw this.g1l_1;
|
|
1502
1717
|
case 10:
|
|
1503
|
-
this.
|
|
1504
|
-
this.
|
|
1505
|
-
suspendResult = this.
|
|
1718
|
+
this.l8_1 = 12;
|
|
1719
|
+
this.k8_1 = 11;
|
|
1720
|
+
suspendResult = this.d1l_1.y1g(this);
|
|
1506
1721
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1507
1722
|
return suspendResult;
|
|
1508
1723
|
}
|
|
1509
1724
|
|
|
1510
1725
|
continue $sm;
|
|
1511
1726
|
case 11:
|
|
1512
|
-
return subtract(this.
|
|
1727
|
+
return subtract(this.e1l_1, this.f1l_1);
|
|
1513
1728
|
case 12:
|
|
1514
|
-
throw this.
|
|
1729
|
+
throw this.n8_1;
|
|
1515
1730
|
}
|
|
1516
1731
|
} catch ($p) {
|
|
1517
1732
|
var e = $p;
|
|
1518
|
-
if (this.
|
|
1733
|
+
if (this.l8_1 === 12) {
|
|
1519
1734
|
throw e;
|
|
1520
1735
|
} else {
|
|
1521
|
-
this.
|
|
1522
|
-
this.
|
|
1736
|
+
this.k8_1 = this.l8_1;
|
|
1737
|
+
this.n8_1 = e;
|
|
1523
1738
|
}
|
|
1524
1739
|
}
|
|
1525
1740
|
while (true);
|
|
1526
1741
|
};
|
|
1527
1742
|
function $discardCOROUTINE$(_this__u8e3s4, max, resultContinuation) {
|
|
1528
1743
|
CoroutineImpl.call(this, resultContinuation);
|
|
1529
|
-
this.
|
|
1530
|
-
this.
|
|
1744
|
+
this.p1l_1 = _this__u8e3s4;
|
|
1745
|
+
this.q1l_1 = max;
|
|
1531
1746
|
}
|
|
1532
|
-
protoOf($discardCOROUTINE$).
|
|
1533
|
-
var suspendResult = this.
|
|
1747
|
+
protoOf($discardCOROUTINE$).s8 = function () {
|
|
1748
|
+
var suspendResult = this.m8_1;
|
|
1534
1749
|
$sm: do
|
|
1535
1750
|
try {
|
|
1536
|
-
var tmp = this.
|
|
1751
|
+
var tmp = this.k8_1;
|
|
1537
1752
|
switch (tmp) {
|
|
1538
1753
|
case 0:
|
|
1539
|
-
this.
|
|
1540
|
-
this.
|
|
1541
|
-
this.
|
|
1754
|
+
this.l8_1 = 5;
|
|
1755
|
+
this.r1l_1 = this.q1l_1;
|
|
1756
|
+
this.k8_1 = 1;
|
|
1542
1757
|
continue $sm;
|
|
1543
1758
|
case 1:
|
|
1544
|
-
if (!(this.
|
|
1545
|
-
this.
|
|
1759
|
+
if (!(this.r1l_1 > 0n && !this.p1l_1.e1h())) {
|
|
1760
|
+
this.k8_1 = 4;
|
|
1546
1761
|
continue $sm;
|
|
1547
1762
|
}
|
|
1548
1763
|
|
|
1549
|
-
if (get_availableForRead(this.
|
|
1550
|
-
this.
|
|
1551
|
-
suspendResult = this.
|
|
1764
|
+
if (get_availableForRead(this.p1l_1) === 0) {
|
|
1765
|
+
this.k8_1 = 2;
|
|
1766
|
+
suspendResult = this.p1l_1.g1h(VOID, this);
|
|
1552
1767
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1553
1768
|
return suspendResult;
|
|
1554
1769
|
}
|
|
1555
1770
|
continue $sm;
|
|
1556
1771
|
} else {
|
|
1557
|
-
this.
|
|
1772
|
+
this.k8_1 = 3;
|
|
1558
1773
|
continue $sm;
|
|
1559
1774
|
}
|
|
1560
1775
|
|
|
1561
1776
|
case 2:
|
|
1562
|
-
this.
|
|
1777
|
+
this.k8_1 = 3;
|
|
1563
1778
|
continue $sm;
|
|
1564
1779
|
case 3:
|
|
1565
|
-
var tmp0 = this.
|
|
1566
|
-
var b = get_remaining(this.
|
|
1780
|
+
var tmp0 = this.r1l_1;
|
|
1781
|
+
var b = get_remaining(this.p1l_1.a1h());
|
|
1567
1782
|
var count = tmp0 <= b ? tmp0 : b;
|
|
1568
|
-
discard_0(this.
|
|
1569
|
-
this.
|
|
1570
|
-
this.
|
|
1783
|
+
discard_0(this.p1l_1.a1h(), count);
|
|
1784
|
+
this.r1l_1 = subtract(this.r1l_1, count);
|
|
1785
|
+
this.k8_1 = 1;
|
|
1571
1786
|
continue $sm;
|
|
1572
1787
|
case 4:
|
|
1573
|
-
return subtract(this.
|
|
1788
|
+
return subtract(this.q1l_1, this.r1l_1);
|
|
1574
1789
|
case 5:
|
|
1575
|
-
throw this.
|
|
1790
|
+
throw this.n8_1;
|
|
1576
1791
|
}
|
|
1577
1792
|
} catch ($p) {
|
|
1578
1793
|
var e = $p;
|
|
1579
|
-
if (this.
|
|
1794
|
+
if (this.l8_1 === 5) {
|
|
1580
1795
|
throw e;
|
|
1581
1796
|
} else {
|
|
1582
|
-
this.
|
|
1583
|
-
this.
|
|
1797
|
+
this.k8_1 = this.l8_1;
|
|
1798
|
+
this.n8_1 = e;
|
|
1584
1799
|
}
|
|
1585
1800
|
}
|
|
1586
1801
|
while (true);
|
|
1587
1802
|
};
|
|
1588
1803
|
function $copyToCOROUTINE$_0(_this__u8e3s4, channel, resultContinuation) {
|
|
1589
1804
|
CoroutineImpl.call(this, resultContinuation);
|
|
1590
|
-
this.
|
|
1591
|
-
this.
|
|
1805
|
+
this.a1m_1 = _this__u8e3s4;
|
|
1806
|
+
this.b1m_1 = channel;
|
|
1592
1807
|
}
|
|
1593
|
-
protoOf($copyToCOROUTINE$_0).
|
|
1594
|
-
var suspendResult = this.
|
|
1808
|
+
protoOf($copyToCOROUTINE$_0).s8 = function () {
|
|
1809
|
+
var suspendResult = this.m8_1;
|
|
1595
1810
|
$sm: do
|
|
1596
1811
|
try {
|
|
1597
|
-
var tmp = this.
|
|
1812
|
+
var tmp = this.k8_1;
|
|
1598
1813
|
switch (tmp) {
|
|
1599
1814
|
case 0:
|
|
1600
|
-
this.
|
|
1601
|
-
this.
|
|
1602
|
-
this.
|
|
1815
|
+
this.l8_1 = 11;
|
|
1816
|
+
this.c1m_1 = 0n;
|
|
1817
|
+
this.k8_1 = 1;
|
|
1603
1818
|
continue $sm;
|
|
1604
1819
|
case 1:
|
|
1605
|
-
this.
|
|
1606
|
-
this.
|
|
1607
|
-
this.
|
|
1820
|
+
this.l8_1 = 7;
|
|
1821
|
+
this.l8_1 = 6;
|
|
1822
|
+
this.k8_1 = 2;
|
|
1608
1823
|
continue $sm;
|
|
1609
1824
|
case 2:
|
|
1610
|
-
if (!!this.
|
|
1611
|
-
this.
|
|
1825
|
+
if (!!this.a1m_1.e1h()) {
|
|
1826
|
+
this.k8_1 = 5;
|
|
1612
1827
|
continue $sm;
|
|
1613
1828
|
}
|
|
1614
1829
|
|
|
1615
|
-
this.
|
|
1616
|
-
this.
|
|
1617
|
-
suspendResult = this.
|
|
1830
|
+
this.c1m_1 = add(this.c1m_1, this.a1m_1.a1h().aq(this.b1m_1.b1h()));
|
|
1831
|
+
this.k8_1 = 3;
|
|
1832
|
+
suspendResult = this.b1m_1.y1g(this);
|
|
1618
1833
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1619
1834
|
return suspendResult;
|
|
1620
1835
|
}
|
|
1621
1836
|
|
|
1622
1837
|
continue $sm;
|
|
1623
1838
|
case 3:
|
|
1624
|
-
this.
|
|
1625
|
-
suspendResult = this.
|
|
1839
|
+
this.k8_1 = 4;
|
|
1840
|
+
suspendResult = this.a1m_1.g1h(VOID, this);
|
|
1626
1841
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1627
1842
|
return suspendResult;
|
|
1628
1843
|
}
|
|
1629
1844
|
|
|
1630
1845
|
continue $sm;
|
|
1631
1846
|
case 4:
|
|
1632
|
-
this.
|
|
1847
|
+
this.k8_1 = 2;
|
|
1633
1848
|
continue $sm;
|
|
1634
1849
|
case 5:
|
|
1635
|
-
this.
|
|
1636
|
-
this.
|
|
1850
|
+
this.l8_1 = 11;
|
|
1851
|
+
this.k8_1 = 9;
|
|
1637
1852
|
continue $sm;
|
|
1638
1853
|
case 6:
|
|
1639
|
-
this.
|
|
1640
|
-
var tmp_0 = this.
|
|
1854
|
+
this.l8_1 = 7;
|
|
1855
|
+
var tmp_0 = this.n8_1;
|
|
1641
1856
|
if (tmp_0 instanceof Error) {
|
|
1642
|
-
var cause = this.
|
|
1643
|
-
this.
|
|
1644
|
-
close_0(this.
|
|
1857
|
+
var cause = this.n8_1;
|
|
1858
|
+
this.a1m_1.i1h(cause);
|
|
1859
|
+
close_0(this.b1m_1, cause);
|
|
1645
1860
|
throw cause;
|
|
1646
1861
|
} else {
|
|
1647
|
-
throw this.
|
|
1862
|
+
throw this.n8_1;
|
|
1648
1863
|
}
|
|
1649
1864
|
|
|
1650
1865
|
case 7:
|
|
1651
|
-
this.
|
|
1652
|
-
this.
|
|
1653
|
-
this.
|
|
1654
|
-
suspendResult = this.
|
|
1866
|
+
this.l8_1 = 11;
|
|
1867
|
+
this.d1m_1 = this.n8_1;
|
|
1868
|
+
this.k8_1 = 8;
|
|
1869
|
+
suspendResult = this.b1m_1.y1g(this);
|
|
1655
1870
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1656
1871
|
return suspendResult;
|
|
1657
1872
|
}
|
|
1658
1873
|
|
|
1659
1874
|
continue $sm;
|
|
1660
1875
|
case 8:
|
|
1661
|
-
throw this.
|
|
1876
|
+
throw this.d1m_1;
|
|
1662
1877
|
case 9:
|
|
1663
|
-
this.
|
|
1664
|
-
this.
|
|
1665
|
-
suspendResult = this.
|
|
1878
|
+
this.l8_1 = 11;
|
|
1879
|
+
this.k8_1 = 10;
|
|
1880
|
+
suspendResult = this.b1m_1.y1g(this);
|
|
1666
1881
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1667
1882
|
return suspendResult;
|
|
1668
1883
|
}
|
|
1669
1884
|
|
|
1670
1885
|
continue $sm;
|
|
1671
1886
|
case 10:
|
|
1672
|
-
return this.
|
|
1887
|
+
return this.c1m_1;
|
|
1673
1888
|
case 11:
|
|
1674
|
-
throw this.
|
|
1889
|
+
throw this.n8_1;
|
|
1675
1890
|
}
|
|
1676
1891
|
} catch ($p) {
|
|
1677
1892
|
var e = $p;
|
|
1678
|
-
if (this.
|
|
1893
|
+
if (this.l8_1 === 11) {
|
|
1679
1894
|
throw e;
|
|
1680
1895
|
} else {
|
|
1681
|
-
this.
|
|
1682
|
-
this.
|
|
1896
|
+
this.k8_1 = this.l8_1;
|
|
1897
|
+
this.n8_1 = e;
|
|
1683
1898
|
}
|
|
1684
1899
|
}
|
|
1685
1900
|
while (true);
|
|
1686
1901
|
};
|
|
1687
1902
|
function $skipIfFoundCOROUTINE$(_this__u8e3s4, byteString, resultContinuation) {
|
|
1688
1903
|
CoroutineImpl.call(this, resultContinuation);
|
|
1689
|
-
this.
|
|
1690
|
-
this.
|
|
1904
|
+
this.m1m_1 = _this__u8e3s4;
|
|
1905
|
+
this.n1m_1 = byteString;
|
|
1691
1906
|
}
|
|
1692
|
-
protoOf($skipIfFoundCOROUTINE$).
|
|
1693
|
-
var suspendResult = this.
|
|
1907
|
+
protoOf($skipIfFoundCOROUTINE$).s8 = function () {
|
|
1908
|
+
var suspendResult = this.m8_1;
|
|
1694
1909
|
$sm: do
|
|
1695
1910
|
try {
|
|
1696
|
-
var tmp = this.
|
|
1911
|
+
var tmp = this.k8_1;
|
|
1697
1912
|
switch (tmp) {
|
|
1698
1913
|
case 0:
|
|
1699
|
-
this.
|
|
1700
|
-
this.
|
|
1701
|
-
suspendResult = peek(this.
|
|
1914
|
+
this.l8_1 = 4;
|
|
1915
|
+
this.k8_1 = 1;
|
|
1916
|
+
suspendResult = peek(this.m1m_1, this.n1m_1.g1(), this);
|
|
1702
1917
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1703
1918
|
return suspendResult;
|
|
1704
1919
|
}
|
|
@@ -1706,15 +1921,15 @@ protoOf($skipIfFoundCOROUTINE$).r8 = function () {
|
|
|
1706
1921
|
continue $sm;
|
|
1707
1922
|
case 1:
|
|
1708
1923
|
var ARGUMENT = suspendResult;
|
|
1709
|
-
if (equals(ARGUMENT, this.
|
|
1710
|
-
this.
|
|
1711
|
-
suspendResult = discard(this.
|
|
1924
|
+
if (equals(ARGUMENT, this.n1m_1)) {
|
|
1925
|
+
this.k8_1 = 3;
|
|
1926
|
+
suspendResult = discard(this.m1m_1, fromInt(this.n1m_1.g1()), this);
|
|
1712
1927
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1713
1928
|
return suspendResult;
|
|
1714
1929
|
}
|
|
1715
1930
|
continue $sm;
|
|
1716
1931
|
} else {
|
|
1717
|
-
this.
|
|
1932
|
+
this.k8_1 = 2;
|
|
1718
1933
|
continue $sm;
|
|
1719
1934
|
}
|
|
1720
1935
|
|
|
@@ -1723,111 +1938,111 @@ protoOf($skipIfFoundCOROUTINE$).r8 = function () {
|
|
|
1723
1938
|
case 3:
|
|
1724
1939
|
return true;
|
|
1725
1940
|
case 4:
|
|
1726
|
-
throw this.
|
|
1941
|
+
throw this.n8_1;
|
|
1727
1942
|
}
|
|
1728
1943
|
} catch ($p) {
|
|
1729
1944
|
var e = $p;
|
|
1730
|
-
if (this.
|
|
1945
|
+
if (this.l8_1 === 4) {
|
|
1731
1946
|
throw e;
|
|
1732
1947
|
} else {
|
|
1733
|
-
this.
|
|
1734
|
-
this.
|
|
1948
|
+
this.k8_1 = this.l8_1;
|
|
1949
|
+
this.n8_1 = e;
|
|
1735
1950
|
}
|
|
1736
1951
|
}
|
|
1737
1952
|
while (true);
|
|
1738
1953
|
};
|
|
1739
1954
|
function $readPacketCOROUTINE$(_this__u8e3s4, packet, resultContinuation) {
|
|
1740
1955
|
CoroutineImpl.call(this, resultContinuation);
|
|
1741
|
-
this.
|
|
1742
|
-
this.
|
|
1956
|
+
this.w1m_1 = _this__u8e3s4;
|
|
1957
|
+
this.x1m_1 = packet;
|
|
1743
1958
|
}
|
|
1744
|
-
protoOf($readPacketCOROUTINE$).
|
|
1745
|
-
var suspendResult = this.
|
|
1959
|
+
protoOf($readPacketCOROUTINE$).s8 = function () {
|
|
1960
|
+
var suspendResult = this.m8_1;
|
|
1746
1961
|
$sm: do
|
|
1747
1962
|
try {
|
|
1748
|
-
var tmp = this.
|
|
1963
|
+
var tmp = this.k8_1;
|
|
1749
1964
|
switch (tmp) {
|
|
1750
1965
|
case 0:
|
|
1751
|
-
this.
|
|
1752
|
-
this.
|
|
1753
|
-
this.
|
|
1966
|
+
this.l8_1 = 6;
|
|
1967
|
+
this.y1m_1 = new Buffer();
|
|
1968
|
+
this.k8_1 = 1;
|
|
1754
1969
|
continue $sm;
|
|
1755
1970
|
case 1:
|
|
1756
|
-
if (!(this.
|
|
1757
|
-
this.
|
|
1971
|
+
if (!(this.y1m_1.g1() < fromInt(this.x1m_1))) {
|
|
1972
|
+
this.k8_1 = 5;
|
|
1758
1973
|
continue $sm;
|
|
1759
1974
|
}
|
|
1760
1975
|
|
|
1761
|
-
if (this.
|
|
1762
|
-
this.
|
|
1763
|
-
suspendResult = this.
|
|
1976
|
+
if (this.w1m_1.a1h().xo()) {
|
|
1977
|
+
this.k8_1 = 2;
|
|
1978
|
+
suspendResult = this.w1m_1.g1h(VOID, this);
|
|
1764
1979
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1765
1980
|
return suspendResult;
|
|
1766
1981
|
}
|
|
1767
1982
|
continue $sm;
|
|
1768
1983
|
} else {
|
|
1769
|
-
this.
|
|
1984
|
+
this.k8_1 = 3;
|
|
1770
1985
|
continue $sm;
|
|
1771
1986
|
}
|
|
1772
1987
|
|
|
1773
1988
|
case 2:
|
|
1774
|
-
this.
|
|
1989
|
+
this.k8_1 = 3;
|
|
1775
1990
|
continue $sm;
|
|
1776
1991
|
case 3:
|
|
1777
|
-
if (this.
|
|
1778
|
-
this.
|
|
1992
|
+
if (this.w1m_1.e1h()) {
|
|
1993
|
+
this.k8_1 = 5;
|
|
1779
1994
|
continue $sm;
|
|
1780
1995
|
} else {
|
|
1781
|
-
this.
|
|
1996
|
+
this.k8_1 = 4;
|
|
1782
1997
|
continue $sm;
|
|
1783
1998
|
}
|
|
1784
1999
|
|
|
1785
2000
|
case 4:
|
|
1786
|
-
if (get_remaining(this.
|
|
1787
|
-
this.
|
|
2001
|
+
if (get_remaining(this.w1m_1.a1h()) > subtract(numberToLong(this.x1m_1), this.y1m_1.g1())) {
|
|
2002
|
+
this.w1m_1.a1h().zp(this.y1m_1, subtract(numberToLong(this.x1m_1), this.y1m_1.g1()));
|
|
1788
2003
|
} else {
|
|
1789
|
-
this.
|
|
2004
|
+
this.w1m_1.a1h().aq(this.y1m_1);
|
|
1790
2005
|
}
|
|
1791
2006
|
|
|
1792
|
-
this.
|
|
2007
|
+
this.k8_1 = 1;
|
|
1793
2008
|
continue $sm;
|
|
1794
2009
|
case 5:
|
|
1795
|
-
if (this.
|
|
1796
|
-
throw EOFException_init_$Create$('Not enough data available, required ' + this.
|
|
2010
|
+
if (this.y1m_1.g1() < fromInt(this.x1m_1)) {
|
|
2011
|
+
throw EOFException_init_$Create$('Not enough data available, required ' + this.x1m_1 + ' bytes but only ' + this.y1m_1.g1().toString() + ' available');
|
|
1797
2012
|
}
|
|
1798
2013
|
|
|
1799
|
-
return this.
|
|
2014
|
+
return this.y1m_1;
|
|
1800
2015
|
case 6:
|
|
1801
|
-
throw this.
|
|
2016
|
+
throw this.n8_1;
|
|
1802
2017
|
}
|
|
1803
2018
|
} catch ($p) {
|
|
1804
2019
|
var e = $p;
|
|
1805
|
-
if (this.
|
|
2020
|
+
if (this.l8_1 === 6) {
|
|
1806
2021
|
throw e;
|
|
1807
2022
|
} else {
|
|
1808
|
-
this.
|
|
1809
|
-
this.
|
|
2023
|
+
this.k8_1 = this.l8_1;
|
|
2024
|
+
this.n8_1 = e;
|
|
1810
2025
|
}
|
|
1811
2026
|
}
|
|
1812
2027
|
while (true);
|
|
1813
2028
|
};
|
|
1814
2029
|
function $peekCOROUTINE$(_this__u8e3s4, count, resultContinuation) {
|
|
1815
2030
|
CoroutineImpl.call(this, resultContinuation);
|
|
1816
|
-
this.
|
|
1817
|
-
this.
|
|
2031
|
+
this.h1n_1 = _this__u8e3s4;
|
|
2032
|
+
this.i1n_1 = count;
|
|
1818
2033
|
}
|
|
1819
|
-
protoOf($peekCOROUTINE$).
|
|
1820
|
-
var suspendResult = this.
|
|
2034
|
+
protoOf($peekCOROUTINE$).s8 = function () {
|
|
2035
|
+
var suspendResult = this.m8_1;
|
|
1821
2036
|
$sm: do
|
|
1822
2037
|
try {
|
|
1823
|
-
var tmp = this.
|
|
2038
|
+
var tmp = this.k8_1;
|
|
1824
2039
|
switch (tmp) {
|
|
1825
2040
|
case 0:
|
|
1826
|
-
this.
|
|
1827
|
-
if (this.
|
|
2041
|
+
this.l8_1 = 3;
|
|
2042
|
+
if (this.h1n_1.e1h())
|
|
1828
2043
|
return null;
|
|
1829
|
-
this.
|
|
1830
|
-
suspendResult = this.
|
|
2044
|
+
this.k8_1 = 1;
|
|
2045
|
+
suspendResult = this.h1n_1.f1h(this.i1n_1, this);
|
|
1831
2046
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1832
2047
|
return suspendResult;
|
|
1833
2048
|
}
|
|
@@ -1837,272 +2052,348 @@ protoOf($peekCOROUTINE$).r8 = function () {
|
|
|
1837
2052
|
if (!suspendResult) {
|
|
1838
2053
|
return null;
|
|
1839
2054
|
} else {
|
|
1840
|
-
this.
|
|
2055
|
+
this.k8_1 = 2;
|
|
1841
2056
|
continue $sm;
|
|
1842
2057
|
}
|
|
1843
2058
|
|
|
1844
2059
|
case 2:
|
|
1845
|
-
return readByteString(this.
|
|
2060
|
+
return readByteString(this.h1n_1.a1h().bq(), this.i1n_1);
|
|
1846
2061
|
case 3:
|
|
1847
|
-
throw this.
|
|
2062
|
+
throw this.n8_1;
|
|
1848
2063
|
}
|
|
1849
2064
|
} catch ($p) {
|
|
1850
2065
|
var e = $p;
|
|
1851
|
-
if (this.
|
|
2066
|
+
if (this.l8_1 === 3) {
|
|
1852
2067
|
throw e;
|
|
1853
2068
|
} else {
|
|
1854
|
-
this.
|
|
1855
|
-
this.
|
|
2069
|
+
this.k8_1 = this.l8_1;
|
|
2070
|
+
this.n8_1 = e;
|
|
1856
2071
|
}
|
|
1857
2072
|
}
|
|
1858
2073
|
while (true);
|
|
1859
2074
|
};
|
|
1860
2075
|
function $internalReadLineToCOROUTINE$(_this__u8e3s4, out, limit, lenientLineEnding, throwOnIncompleteLine, resultContinuation) {
|
|
1861
2076
|
CoroutineImpl.call(this, resultContinuation);
|
|
1862
|
-
this.
|
|
1863
|
-
this.
|
|
1864
|
-
this.
|
|
1865
|
-
this.
|
|
1866
|
-
this.
|
|
1867
|
-
}
|
|
1868
|
-
protoOf($internalReadLineToCOROUTINE$).
|
|
1869
|
-
var suspendResult = this.
|
|
2077
|
+
this.r1n_1 = _this__u8e3s4;
|
|
2078
|
+
this.s1n_1 = out;
|
|
2079
|
+
this.t1n_1 = limit;
|
|
2080
|
+
this.u1n_1 = lenientLineEnding;
|
|
2081
|
+
this.v1n_1 = throwOnIncompleteLine;
|
|
2082
|
+
}
|
|
2083
|
+
protoOf($internalReadLineToCOROUTINE$).s8 = function () {
|
|
2084
|
+
var suspendResult = this.m8_1;
|
|
1870
2085
|
$sm: do
|
|
1871
2086
|
try {
|
|
1872
|
-
var tmp = this.
|
|
2087
|
+
var tmp = this.k8_1;
|
|
1873
2088
|
switch (tmp) {
|
|
1874
2089
|
case 0:
|
|
1875
|
-
this.
|
|
1876
|
-
this.
|
|
1877
|
-
if (this.
|
|
1878
|
-
this.
|
|
1879
|
-
suspendResult = this.
|
|
2090
|
+
this.l8_1 = 27;
|
|
2091
|
+
this.z1n_1 = this.r1n_1.a1h();
|
|
2092
|
+
if (this.z1n_1.xo()) {
|
|
2093
|
+
this.k8_1 = 1;
|
|
2094
|
+
suspendResult = this.r1n_1.g1h(VOID, this);
|
|
1880
2095
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1881
2096
|
return suspendResult;
|
|
1882
2097
|
}
|
|
1883
2098
|
continue $sm;
|
|
1884
2099
|
} else {
|
|
1885
|
-
this.
|
|
2100
|
+
this.k8_1 = 2;
|
|
1886
2101
|
continue $sm;
|
|
1887
2102
|
}
|
|
1888
2103
|
|
|
1889
2104
|
case 1:
|
|
1890
|
-
this.
|
|
2105
|
+
this.k8_1 = 2;
|
|
1891
2106
|
continue $sm;
|
|
1892
2107
|
case 2:
|
|
1893
|
-
if (this.
|
|
2108
|
+
if (this.r1n_1.e1h())
|
|
1894
2109
|
return -1n;
|
|
1895
|
-
this.
|
|
1896
|
-
this.
|
|
2110
|
+
this.y1n_1 = {_v: 0n};
|
|
2111
|
+
this.w1n_1 = {_v: null};
|
|
2112
|
+
this.k8_1 = 3;
|
|
1897
2113
|
continue $sm;
|
|
1898
2114
|
case 3:
|
|
1899
|
-
|
|
1900
|
-
|
|
2115
|
+
this.k8_1 = 4;
|
|
2116
|
+
continue $sm;
|
|
2117
|
+
case 4:
|
|
2118
|
+
this.l8_1 = 24;
|
|
2119
|
+
this.k8_1 = 5;
|
|
2120
|
+
continue $sm;
|
|
2121
|
+
case 5:
|
|
2122
|
+
if (!(this.y1n_1._v < this.t1n_1 && !this.r1n_1.e1h())) {
|
|
2123
|
+
this.k8_1 = 15;
|
|
1901
2124
|
continue $sm;
|
|
1902
2125
|
}
|
|
1903
2126
|
|
|
1904
|
-
|
|
1905
|
-
|
|
1906
|
-
var crIndex = internalReadLineTo$scanForSoleCr(this.
|
|
2127
|
+
this.c1o_1 = subtract(this.t1n_1, this.y1n_1._v);
|
|
2128
|
+
this.d1o_1 = indexOf(this.z1n_1, 10, VOID, this.c1o_1);
|
|
2129
|
+
var crIndex = internalReadLineTo$scanForSoleCr(this.z1n_1, this.u1n_1, this.d1o_1, this.c1o_1);
|
|
1907
2130
|
if (crIndex >= 0n) {
|
|
1908
|
-
internalReadLineTo$
|
|
1909
|
-
discard_0(this.
|
|
1910
|
-
|
|
2131
|
+
internalReadLineTo$appendOrBuffer(this.w1n_1, this.s1n_1, this.z1n_1, this.y1n_1, crIndex);
|
|
2132
|
+
discard_0(this.z1n_1, 1n);
|
|
2133
|
+
this.x1n_1 = this.y1n_1._v;
|
|
2134
|
+
this.l8_1 = 27;
|
|
2135
|
+
this.k8_1 = 25;
|
|
2136
|
+
continue $sm;
|
|
2137
|
+
} else {
|
|
2138
|
+
this.k8_1 = 6;
|
|
2139
|
+
continue $sm;
|
|
1911
2140
|
}
|
|
1912
2141
|
|
|
1913
|
-
|
|
1914
|
-
|
|
1915
|
-
|
|
2142
|
+
case 6:
|
|
2143
|
+
if (this.d1o_1 === 0n) {
|
|
2144
|
+
discard_0(this.z1n_1, 1n);
|
|
2145
|
+
this.x1n_1 = this.y1n_1._v;
|
|
2146
|
+
this.l8_1 = 27;
|
|
2147
|
+
this.k8_1 = 25;
|
|
2148
|
+
continue $sm;
|
|
2149
|
+
} else {
|
|
2150
|
+
this.k8_1 = 7;
|
|
2151
|
+
continue $sm;
|
|
1916
2152
|
}
|
|
1917
2153
|
|
|
1918
|
-
|
|
2154
|
+
case 7:
|
|
2155
|
+
if (this.d1o_1 > 0n) {
|
|
1919
2156
|
var tmp_0;
|
|
1920
|
-
var tmp_1 = this.
|
|
1921
|
-
|
|
2157
|
+
var tmp_1 = this.z1n_1.wo();
|
|
2158
|
+
var this_0 = this.d1o_1;
|
|
2159
|
+
if (tmp_1.sp(subtract(this_0, fromInt(1))) === 13) {
|
|
1922
2160
|
tmp_0 = 1n;
|
|
1923
2161
|
} else {
|
|
1924
2162
|
tmp_0 = 0n;
|
|
1925
2163
|
}
|
|
1926
2164
|
var isCrlf = tmp_0;
|
|
1927
|
-
internalReadLineTo$
|
|
1928
|
-
discard_0(this.
|
|
1929
|
-
|
|
1930
|
-
|
|
1931
|
-
|
|
1932
|
-
|
|
1933
|
-
|
|
1934
|
-
|
|
1935
|
-
|
|
1936
|
-
|
|
1937
|
-
|
|
1938
|
-
|
|
2165
|
+
internalReadLineTo$appendOrBuffer(this.w1n_1, this.s1n_1, this.z1n_1, this.y1n_1, subtract(this.d1o_1, isCrlf));
|
|
2166
|
+
discard_0(this.z1n_1, add(numberToLong(1), isCrlf));
|
|
2167
|
+
this.x1n_1 = this.y1n_1._v;
|
|
2168
|
+
this.l8_1 = 27;
|
|
2169
|
+
this.k8_1 = 25;
|
|
2170
|
+
continue $sm;
|
|
2171
|
+
} else {
|
|
2172
|
+
this.k8_1 = 8;
|
|
2173
|
+
continue $sm;
|
|
2174
|
+
}
|
|
2175
|
+
|
|
2176
|
+
case 8:
|
|
2177
|
+
var tmp0 = this.c1o_1;
|
|
2178
|
+
var b = get_remaining(this.z1n_1);
|
|
2179
|
+
var count = tmp0 <= b ? tmp0 : b;
|
|
2180
|
+
var tmp_2 = this.z1n_1.wo();
|
|
2181
|
+
if (tmp_2.sp(subtract(count, fromInt(1))) === 13) {
|
|
2182
|
+
internalReadLineTo$appendOrBuffer(this.w1n_1, this.s1n_1, this.z1n_1, this.y1n_1, subtract(count, fromInt(1)));
|
|
2183
|
+
this.k8_1 = 9;
|
|
2184
|
+
suspendResult = internalReadLineTo$discardCrlfOrCr(this.z1n_1, this.r1n_1, this.u1n_1, this);
|
|
1939
2185
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1940
2186
|
return suspendResult;
|
|
1941
2187
|
}
|
|
1942
2188
|
continue $sm;
|
|
1943
2189
|
} else {
|
|
1944
|
-
internalReadLineTo$
|
|
1945
|
-
this.
|
|
2190
|
+
internalReadLineTo$bufferBytes(this.w1n_1, this.z1n_1, this.y1n_1, count);
|
|
2191
|
+
this.k8_1 = 11;
|
|
1946
2192
|
continue $sm;
|
|
1947
2193
|
}
|
|
1948
2194
|
|
|
1949
|
-
case
|
|
2195
|
+
case 9:
|
|
1950
2196
|
if (suspendResult) {
|
|
1951
|
-
|
|
2197
|
+
this.x1n_1 = this.y1n_1._v;
|
|
2198
|
+
this.l8_1 = 27;
|
|
2199
|
+
this.k8_1 = 25;
|
|
2200
|
+
continue $sm;
|
|
1952
2201
|
} else {
|
|
1953
|
-
this.
|
|
2202
|
+
internalReadLineTo$bufferBytes(this.w1n_1, this.z1n_1, this.y1n_1, 1n);
|
|
2203
|
+
this.k8_1 = 10;
|
|
1954
2204
|
continue $sm;
|
|
1955
2205
|
}
|
|
1956
2206
|
|
|
1957
|
-
case
|
|
1958
|
-
|
|
1959
|
-
this.j8_1 = 6;
|
|
2207
|
+
case 10:
|
|
2208
|
+
this.k8_1 = 11;
|
|
1960
2209
|
continue $sm;
|
|
1961
|
-
case
|
|
1962
|
-
if (this.
|
|
1963
|
-
this.
|
|
1964
|
-
suspendResult = this.
|
|
2210
|
+
case 11:
|
|
2211
|
+
if (this.y1n_1._v < this.t1n_1 && get_remaining(this.z1n_1) === 0n) {
|
|
2212
|
+
this.k8_1 = 12;
|
|
2213
|
+
suspendResult = this.r1n_1.g1h(VOID, this);
|
|
1965
2214
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1966
2215
|
return suspendResult;
|
|
1967
2216
|
}
|
|
1968
2217
|
continue $sm;
|
|
1969
2218
|
} else {
|
|
1970
|
-
this.
|
|
1971
|
-
this.
|
|
2219
|
+
this.b1o_1 = false;
|
|
2220
|
+
this.k8_1 = 13;
|
|
1972
2221
|
continue $sm;
|
|
1973
2222
|
}
|
|
1974
2223
|
|
|
1975
|
-
case
|
|
1976
|
-
this.
|
|
1977
|
-
this.
|
|
2224
|
+
case 12:
|
|
2225
|
+
this.b1o_1 = !suspendResult;
|
|
2226
|
+
this.k8_1 = 13;
|
|
1978
2227
|
continue $sm;
|
|
1979
|
-
case
|
|
1980
|
-
if (this.
|
|
1981
|
-
this.
|
|
2228
|
+
case 13:
|
|
2229
|
+
if (this.b1o_1) {
|
|
2230
|
+
this.k8_1 = 15;
|
|
1982
2231
|
continue $sm;
|
|
1983
2232
|
} else {
|
|
1984
|
-
this.
|
|
2233
|
+
this.k8_1 = 14;
|
|
1985
2234
|
continue $sm;
|
|
1986
2235
|
}
|
|
1987
2236
|
|
|
1988
|
-
case
|
|
1989
|
-
this.
|
|
2237
|
+
case 14:
|
|
2238
|
+
this.k8_1 = 5;
|
|
1990
2239
|
continue $sm;
|
|
1991
|
-
case
|
|
1992
|
-
if (this.
|
|
1993
|
-
|
|
1994
|
-
|
|
1995
|
-
|
|
2240
|
+
case 15:
|
|
2241
|
+
if (this.y1n_1._v === 0n && this.r1n_1.e1h()) {
|
|
2242
|
+
this.x1n_1 = -1n;
|
|
2243
|
+
this.l8_1 = 27;
|
|
2244
|
+
this.k8_1 = 25;
|
|
2245
|
+
continue $sm;
|
|
2246
|
+
} else {
|
|
2247
|
+
this.k8_1 = 16;
|
|
2248
|
+
continue $sm;
|
|
2249
|
+
}
|
|
2250
|
+
|
|
2251
|
+
case 16:
|
|
2252
|
+
if (!(this.y1n_1._v <= this.t1n_1)) {
|
|
2253
|
+
var message = 'Consumed bytes exceed the limit: ' + this.y1n_1._v.toString() + ' > ' + this.t1n_1.toString() + ". It's an implementation bug, please report it.";
|
|
1996
2254
|
throw IllegalStateException_init_$Create$(toString_1(message));
|
|
1997
2255
|
}
|
|
1998
2256
|
|
|
1999
|
-
if (this.
|
|
2000
|
-
if (this.
|
|
2257
|
+
if (this.y1n_1._v === this.t1n_1) {
|
|
2258
|
+
if (this.t1n_1 === 9223372036854775807n)
|
|
2001
2259
|
throw new TooLongLineException('Max line length exceeded');
|
|
2002
|
-
if (get_remaining(this.
|
|
2003
|
-
this.
|
|
2004
|
-
suspendResult = this.
|
|
2260
|
+
if (get_remaining(this.z1n_1) === 0n) {
|
|
2261
|
+
this.k8_1 = 18;
|
|
2262
|
+
suspendResult = this.r1n_1.g1h(VOID, this);
|
|
2005
2263
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2006
2264
|
return suspendResult;
|
|
2007
2265
|
}
|
|
2008
2266
|
continue $sm;
|
|
2009
2267
|
} else {
|
|
2010
|
-
this.
|
|
2011
|
-
this.
|
|
2268
|
+
this.a1o_1 = false;
|
|
2269
|
+
this.k8_1 = 19;
|
|
2012
2270
|
continue $sm;
|
|
2013
2271
|
}
|
|
2014
2272
|
} else {
|
|
2015
|
-
this.
|
|
2273
|
+
this.k8_1 = 17;
|
|
2016
2274
|
continue $sm;
|
|
2017
2275
|
}
|
|
2018
2276
|
|
|
2019
|
-
case
|
|
2020
|
-
if (this.
|
|
2021
|
-
throwEndOfStreamException(this.
|
|
2277
|
+
case 17:
|
|
2278
|
+
if (this.v1n_1) {
|
|
2279
|
+
throwEndOfStreamException(this.y1n_1._v);
|
|
2022
2280
|
}
|
|
2023
2281
|
|
|
2024
|
-
|
|
2025
|
-
|
|
2026
|
-
this.
|
|
2027
|
-
|
|
2282
|
+
this.x1n_1 = this.y1n_1._v;
|
|
2283
|
+
this.l8_1 = 27;
|
|
2284
|
+
this.k8_1 = 25;
|
|
2285
|
+
var tmp_3 = this;
|
|
2028
2286
|
continue $sm;
|
|
2029
|
-
case
|
|
2030
|
-
|
|
2031
|
-
|
|
2287
|
+
case 18:
|
|
2288
|
+
this.a1o_1 = !suspendResult;
|
|
2289
|
+
this.k8_1 = 19;
|
|
2290
|
+
continue $sm;
|
|
2291
|
+
case 19:
|
|
2292
|
+
if (this.a1o_1) {
|
|
2293
|
+
throwEndOfStreamException(this.y1n_1._v);
|
|
2032
2294
|
} else {
|
|
2033
|
-
this.
|
|
2295
|
+
this.k8_1 = 20;
|
|
2034
2296
|
continue $sm;
|
|
2035
2297
|
}
|
|
2036
2298
|
|
|
2037
2299
|
break;
|
|
2038
|
-
case
|
|
2039
|
-
var tmp0_subject = this.
|
|
2300
|
+
case 20:
|
|
2301
|
+
var tmp0_subject = this.z1n_1.wo().sp(0n);
|
|
2040
2302
|
if (tmp0_subject === 10) {
|
|
2041
|
-
discard_0(this.
|
|
2042
|
-
|
|
2303
|
+
discard_0(this.z1n_1, 1n);
|
|
2304
|
+
this.x1n_1 = this.y1n_1._v;
|
|
2305
|
+
this.l8_1 = 27;
|
|
2306
|
+
this.k8_1 = 25;
|
|
2307
|
+
continue $sm;
|
|
2043
2308
|
} else {
|
|
2044
2309
|
if (tmp0_subject === 13) {
|
|
2045
|
-
this.
|
|
2046
|
-
suspendResult = internalReadLineTo$discardCrlfOrCr(this.
|
|
2310
|
+
this.k8_1 = 21;
|
|
2311
|
+
suspendResult = internalReadLineTo$discardCrlfOrCr(this.z1n_1, this.r1n_1, this.u1n_1, this);
|
|
2047
2312
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2048
2313
|
return suspendResult;
|
|
2049
2314
|
}
|
|
2050
2315
|
continue $sm;
|
|
2051
2316
|
} else {
|
|
2052
|
-
this.
|
|
2317
|
+
this.k8_1 = 23;
|
|
2053
2318
|
continue $sm;
|
|
2054
2319
|
}
|
|
2055
2320
|
}
|
|
2056
2321
|
|
|
2057
|
-
case
|
|
2322
|
+
case 21:
|
|
2058
2323
|
if (suspendResult) {
|
|
2059
|
-
|
|
2324
|
+
this.x1n_1 = this.y1n_1._v;
|
|
2325
|
+
this.l8_1 = 27;
|
|
2326
|
+
this.k8_1 = 25;
|
|
2327
|
+
continue $sm;
|
|
2060
2328
|
} else {
|
|
2061
|
-
this.
|
|
2329
|
+
this.k8_1 = 22;
|
|
2062
2330
|
continue $sm;
|
|
2063
2331
|
}
|
|
2064
2332
|
|
|
2065
|
-
case
|
|
2066
|
-
this.
|
|
2333
|
+
case 22:
|
|
2334
|
+
this.k8_1 = 23;
|
|
2067
2335
|
continue $sm;
|
|
2068
|
-
case
|
|
2069
|
-
throwTooLongLineException(this.
|
|
2336
|
+
case 23:
|
|
2337
|
+
throwTooLongLineException(this.t1n_1);
|
|
2070
2338
|
break;
|
|
2071
|
-
case
|
|
2072
|
-
|
|
2339
|
+
case 24:
|
|
2340
|
+
this.l8_1 = 27;
|
|
2341
|
+
var t = this.n8_1;
|
|
2342
|
+
if (!(this.w1n_1._v == null)) {
|
|
2343
|
+
this.s1n_1.f1(readString_0(this.w1n_1._v));
|
|
2344
|
+
}
|
|
2345
|
+
|
|
2346
|
+
throw t;
|
|
2347
|
+
case 25:
|
|
2348
|
+
var tmp_4 = this.x1n_1;
|
|
2349
|
+
this.l8_1 = 27;
|
|
2350
|
+
if (!(this.w1n_1._v == null)) {
|
|
2351
|
+
this.s1n_1.f1(readString_0(this.w1n_1._v));
|
|
2352
|
+
}
|
|
2353
|
+
|
|
2354
|
+
return tmp_4;
|
|
2355
|
+
case 26:
|
|
2356
|
+
this.l8_1 = 27;
|
|
2357
|
+
if (!(this.w1n_1._v == null)) {
|
|
2358
|
+
this.s1n_1.f1(readString_0(this.w1n_1._v));
|
|
2359
|
+
}
|
|
2360
|
+
|
|
2361
|
+
return Unit_instance;
|
|
2362
|
+
case 27:
|
|
2363
|
+
throw this.n8_1;
|
|
2073
2364
|
}
|
|
2074
2365
|
} catch ($p) {
|
|
2075
2366
|
var e = $p;
|
|
2076
|
-
if (this.
|
|
2367
|
+
if (this.l8_1 === 27) {
|
|
2077
2368
|
throw e;
|
|
2078
2369
|
} else {
|
|
2079
|
-
this.
|
|
2080
|
-
this.
|
|
2370
|
+
this.k8_1 = this.l8_1;
|
|
2371
|
+
this.n8_1 = e;
|
|
2081
2372
|
}
|
|
2082
2373
|
}
|
|
2083
2374
|
while (true);
|
|
2084
2375
|
};
|
|
2085
2376
|
function $internalReadLineTo$discardCrlfOrCrCOROUTINE$(_this__u8e3s4, $this_internalReadLineTo, $lenientLineEnding, resultContinuation) {
|
|
2086
2377
|
CoroutineImpl.call(this, resultContinuation);
|
|
2087
|
-
this.
|
|
2088
|
-
this.
|
|
2089
|
-
this.
|
|
2378
|
+
this.m1o_1 = _this__u8e3s4;
|
|
2379
|
+
this.n1o_1 = $this_internalReadLineTo;
|
|
2380
|
+
this.o1o_1 = $lenientLineEnding;
|
|
2090
2381
|
}
|
|
2091
|
-
protoOf($internalReadLineTo$discardCrlfOrCrCOROUTINE$).
|
|
2092
|
-
var suspendResult = this.
|
|
2382
|
+
protoOf($internalReadLineTo$discardCrlfOrCrCOROUTINE$).s8 = function () {
|
|
2383
|
+
var suspendResult = this.m8_1;
|
|
2093
2384
|
$sm: do
|
|
2094
2385
|
try {
|
|
2095
|
-
var tmp = this.
|
|
2386
|
+
var tmp = this.k8_1;
|
|
2096
2387
|
switch (tmp) {
|
|
2097
2388
|
case 0:
|
|
2098
|
-
this.
|
|
2099
|
-
if (get_remaining(this.
|
|
2100
|
-
this.
|
|
2101
|
-
this.
|
|
2389
|
+
this.l8_1 = 5;
|
|
2390
|
+
if (get_remaining(this.m1o_1) >= 2n) {
|
|
2391
|
+
this.q1o_1 = true;
|
|
2392
|
+
this.k8_1 = 2;
|
|
2102
2393
|
continue $sm;
|
|
2103
2394
|
} else {
|
|
2104
|
-
this.
|
|
2105
|
-
suspendResult = this.
|
|
2395
|
+
this.k8_1 = 1;
|
|
2396
|
+
suspendResult = this.n1o_1.f1h(2, this);
|
|
2106
2397
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2107
2398
|
return suspendResult;
|
|
2108
2399
|
}
|
|
@@ -2110,46 +2401,46 @@ protoOf($internalReadLineTo$discardCrlfOrCrCOROUTINE$).r8 = function () {
|
|
|
2110
2401
|
}
|
|
2111
2402
|
|
|
2112
2403
|
case 1:
|
|
2113
|
-
this.
|
|
2114
|
-
this.
|
|
2404
|
+
this.q1o_1 = suspendResult;
|
|
2405
|
+
this.k8_1 = 2;
|
|
2115
2406
|
continue $sm;
|
|
2116
2407
|
case 2:
|
|
2117
|
-
if (this.
|
|
2118
|
-
this.
|
|
2119
|
-
this.
|
|
2408
|
+
if (this.q1o_1) {
|
|
2409
|
+
this.p1o_1 = this.m1o_1.wo().sp(1n) === 10;
|
|
2410
|
+
this.k8_1 = 3;
|
|
2120
2411
|
continue $sm;
|
|
2121
2412
|
} else {
|
|
2122
|
-
this.
|
|
2123
|
-
this.
|
|
2413
|
+
this.p1o_1 = false;
|
|
2414
|
+
this.k8_1 = 3;
|
|
2124
2415
|
continue $sm;
|
|
2125
2416
|
}
|
|
2126
2417
|
|
|
2127
2418
|
case 3:
|
|
2128
|
-
if (this.
|
|
2129
|
-
discard_0(this.
|
|
2419
|
+
if (this.p1o_1) {
|
|
2420
|
+
discard_0(this.m1o_1, 2n);
|
|
2130
2421
|
return true;
|
|
2131
2422
|
} else {
|
|
2132
|
-
this.
|
|
2423
|
+
this.k8_1 = 4;
|
|
2133
2424
|
continue $sm;
|
|
2134
2425
|
}
|
|
2135
2426
|
|
|
2136
2427
|
case 4:
|
|
2137
|
-
if (this.
|
|
2138
|
-
discard_0(this.
|
|
2428
|
+
if (this.o1o_1) {
|
|
2429
|
+
discard_0(this.m1o_1, 1n);
|
|
2139
2430
|
return true;
|
|
2140
2431
|
}
|
|
2141
2432
|
|
|
2142
2433
|
return false;
|
|
2143
2434
|
case 5:
|
|
2144
|
-
throw this.
|
|
2435
|
+
throw this.n8_1;
|
|
2145
2436
|
}
|
|
2146
2437
|
} catch ($p) {
|
|
2147
2438
|
var e = $p;
|
|
2148
|
-
if (this.
|
|
2439
|
+
if (this.l8_1 === 5) {
|
|
2149
2440
|
throw e;
|
|
2150
2441
|
} else {
|
|
2151
|
-
this.
|
|
2152
|
-
this.
|
|
2442
|
+
this.k8_1 = this.l8_1;
|
|
2443
|
+
this.n8_1 = e;
|
|
2153
2444
|
}
|
|
2154
2445
|
}
|
|
2155
2446
|
while (true);
|
|
@@ -2158,54 +2449,60 @@ function ByteWriteChannel() {
|
|
|
2158
2449
|
}
|
|
2159
2450
|
function flushIfNeeded(_this__u8e3s4, $completion) {
|
|
2160
2451
|
var tmp = new $flushIfNeededCOROUTINE$(_this__u8e3s4, $completion);
|
|
2161
|
-
tmp.
|
|
2162
|
-
tmp.
|
|
2163
|
-
return tmp.
|
|
2452
|
+
tmp.m8_1 = Unit_instance;
|
|
2453
|
+
tmp.n8_1 = null;
|
|
2454
|
+
return tmp.s8();
|
|
2164
2455
|
}
|
|
2165
2456
|
function $flushIfNeededCOROUTINE$(_this__u8e3s4, resultContinuation) {
|
|
2166
2457
|
CoroutineImpl.call(this, resultContinuation);
|
|
2167
|
-
this.
|
|
2458
|
+
this.z1o_1 = _this__u8e3s4;
|
|
2168
2459
|
}
|
|
2169
|
-
protoOf($flushIfNeededCOROUTINE$).
|
|
2170
|
-
var suspendResult = this.
|
|
2460
|
+
protoOf($flushIfNeededCOROUTINE$).s8 = function () {
|
|
2461
|
+
var suspendResult = this.m8_1;
|
|
2171
2462
|
$sm: do
|
|
2172
2463
|
try {
|
|
2173
|
-
var tmp = this.
|
|
2464
|
+
var tmp = this.k8_1;
|
|
2174
2465
|
switch (tmp) {
|
|
2175
2466
|
case 0:
|
|
2176
|
-
this.
|
|
2177
|
-
rethrowCloseCauseIfNeeded_1(this.
|
|
2178
|
-
if (this.
|
|
2179
|
-
this.
|
|
2180
|
-
suspendResult = this.
|
|
2467
|
+
this.l8_1 = 3;
|
|
2468
|
+
rethrowCloseCauseIfNeeded_1(this.z1o_1);
|
|
2469
|
+
if (this.z1o_1.z1g() || get_size(this.z1o_1.b1h()) >= 1048576) {
|
|
2470
|
+
this.k8_1 = 1;
|
|
2471
|
+
suspendResult = this.z1o_1.y1g(this);
|
|
2181
2472
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2182
2473
|
return suspendResult;
|
|
2183
2474
|
}
|
|
2184
2475
|
continue $sm;
|
|
2185
2476
|
} else {
|
|
2186
|
-
this.
|
|
2477
|
+
this.k8_1 = 2;
|
|
2187
2478
|
continue $sm;
|
|
2188
2479
|
}
|
|
2189
2480
|
|
|
2190
2481
|
case 1:
|
|
2191
|
-
this.
|
|
2482
|
+
this.k8_1 = 2;
|
|
2192
2483
|
continue $sm;
|
|
2193
2484
|
case 2:
|
|
2194
2485
|
return Unit_instance;
|
|
2195
2486
|
case 3:
|
|
2196
|
-
throw this.
|
|
2487
|
+
throw this.n8_1;
|
|
2197
2488
|
}
|
|
2198
2489
|
} catch ($p) {
|
|
2199
2490
|
var e = $p;
|
|
2200
|
-
if (this.
|
|
2491
|
+
if (this.l8_1 === 3) {
|
|
2201
2492
|
throw e;
|
|
2202
2493
|
} else {
|
|
2203
|
-
this.
|
|
2204
|
-
this.
|
|
2494
|
+
this.k8_1 = this.l8_1;
|
|
2495
|
+
this.n8_1 = e;
|
|
2205
2496
|
}
|
|
2206
2497
|
}
|
|
2207
2498
|
while (true);
|
|
2208
2499
|
};
|
|
2500
|
+
function ByteWriteChannel$flushAndClose$ref(p0) {
|
|
2501
|
+
var i = new ByteWriteChannel$flushAndClose$ref_0(p0);
|
|
2502
|
+
return constructCallableReference(function ($completion) {
|
|
2503
|
+
return i.e1p($completion);
|
|
2504
|
+
}, 0, 1, 6, 'flushAndClose', [p0]);
|
|
2505
|
+
}
|
|
2209
2506
|
function get_NO_CALLBACK() {
|
|
2210
2507
|
_init_properties_ByteWriteChannelOperations_kt__i7slrs();
|
|
2211
2508
|
return NO_CALLBACK;
|
|
@@ -2214,15 +2511,15 @@ var NO_CALLBACK;
|
|
|
2214
2511
|
function writeFully(_this__u8e3s4, value, startIndex, endIndex, $completion) {
|
|
2215
2512
|
startIndex = startIndex === VOID ? 0 : startIndex;
|
|
2216
2513
|
endIndex = endIndex === VOID ? value.length : endIndex;
|
|
2217
|
-
_this__u8e3s4.
|
|
2514
|
+
_this__u8e3s4.b1h().gq(value, startIndex, endIndex);
|
|
2218
2515
|
return flushIfNeeded(_this__u8e3s4, $completion);
|
|
2219
2516
|
}
|
|
2220
2517
|
function WriterJob(channel, job) {
|
|
2221
|
-
this.
|
|
2222
|
-
this.
|
|
2518
|
+
this.a1j_1 = channel;
|
|
2519
|
+
this.b1j_1 = job;
|
|
2223
2520
|
}
|
|
2224
|
-
protoOf(WriterJob).
|
|
2225
|
-
return this.
|
|
2521
|
+
protoOf(WriterJob).fy = function () {
|
|
2522
|
+
return this.b1j_1;
|
|
2226
2523
|
};
|
|
2227
2524
|
function writer(_this__u8e3s4, coroutineContext, autoFlush, block) {
|
|
2228
2525
|
coroutineContext = coroutineContext === VOID ? EmptyCoroutineContext_instance : coroutineContext;
|
|
@@ -2231,29 +2528,29 @@ function writer(_this__u8e3s4, coroutineContext, autoFlush, block) {
|
|
|
2231
2528
|
return writer_0(_this__u8e3s4, coroutineContext, new ByteChannel(), block);
|
|
2232
2529
|
}
|
|
2233
2530
|
function WriterScope(channel, coroutineContext) {
|
|
2234
|
-
this.
|
|
2235
|
-
this.
|
|
2531
|
+
this.f1p_1 = channel;
|
|
2532
|
+
this.g1p_1 = coroutineContext;
|
|
2236
2533
|
}
|
|
2237
|
-
protoOf(WriterScope).
|
|
2238
|
-
return this.
|
|
2534
|
+
protoOf(WriterScope).is = function () {
|
|
2535
|
+
return this.g1p_1;
|
|
2239
2536
|
};
|
|
2240
2537
|
function invokeOnCompletion(_this__u8e3s4, block) {
|
|
2241
2538
|
_init_properties_ByteWriteChannelOperations_kt__i7slrs();
|
|
2242
|
-
return _this__u8e3s4.
|
|
2539
|
+
return _this__u8e3s4.fy().kt(block);
|
|
2243
2540
|
}
|
|
2244
2541
|
function close_0(_this__u8e3s4, cause) {
|
|
2245
2542
|
_init_properties_ByteWriteChannelOperations_kt__i7slrs();
|
|
2246
2543
|
if (cause == null) {
|
|
2247
|
-
fireAndForget(ByteWriteChannel$flushAndClose$
|
|
2544
|
+
fireAndForget(ByteWriteChannel$flushAndClose$ref(_this__u8e3s4));
|
|
2248
2545
|
} else {
|
|
2249
|
-
_this__u8e3s4.
|
|
2546
|
+
_this__u8e3s4.i1h(cause);
|
|
2250
2547
|
}
|
|
2251
2548
|
}
|
|
2252
2549
|
function writePacket(_this__u8e3s4, source, $completion) {
|
|
2253
2550
|
var tmp = new $writePacketCOROUTINE$(_this__u8e3s4, source, $completion);
|
|
2254
|
-
tmp.
|
|
2255
|
-
tmp.
|
|
2256
|
-
return tmp.
|
|
2551
|
+
tmp.m8_1 = Unit_instance;
|
|
2552
|
+
tmp.n8_1 = null;
|
|
2553
|
+
return tmp.s8();
|
|
2257
2554
|
}
|
|
2258
2555
|
function fireAndForget(_this__u8e3s4) {
|
|
2259
2556
|
_init_properties_ByteWriteChannelOperations_kt__i7slrs();
|
|
@@ -2264,120 +2561,112 @@ function writer_0(_this__u8e3s4, coroutineContext, channel, block) {
|
|
|
2264
2561
|
_init_properties_ByteWriteChannelOperations_kt__i7slrs();
|
|
2265
2562
|
// Inline function 'kotlin.apply' call
|
|
2266
2563
|
var this_0 = launch(_this__u8e3s4, coroutineContext, VOID, writer$slambda_0(block, channel, null));
|
|
2267
|
-
this_0.
|
|
2564
|
+
this_0.kt(writer$lambda(channel));
|
|
2268
2565
|
var job = this_0;
|
|
2269
2566
|
return new WriterJob(channel, job);
|
|
2270
2567
|
}
|
|
2271
2568
|
function writeByte(_this__u8e3s4, value, $completion) {
|
|
2272
|
-
_this__u8e3s4.
|
|
2569
|
+
_this__u8e3s4.b1h().qq(value);
|
|
2273
2570
|
return flushIfNeeded(_this__u8e3s4, $completion);
|
|
2274
2571
|
}
|
|
2275
2572
|
function NO_CALLBACK$1() {
|
|
2276
|
-
this.
|
|
2573
|
+
this.r1p_1 = EmptyCoroutineContext_instance;
|
|
2277
2574
|
}
|
|
2278
|
-
protoOf(NO_CALLBACK$1).
|
|
2279
|
-
return this.
|
|
2575
|
+
protoOf(NO_CALLBACK$1).q8 = function () {
|
|
2576
|
+
return this.r1p_1;
|
|
2280
2577
|
};
|
|
2281
|
-
protoOf(NO_CALLBACK$1).
|
|
2578
|
+
protoOf(NO_CALLBACK$1).r8 = function (result) {
|
|
2282
2579
|
return Unit_instance;
|
|
2283
2580
|
};
|
|
2284
|
-
protoOf(NO_CALLBACK$1).
|
|
2285
|
-
return this.
|
|
2581
|
+
protoOf(NO_CALLBACK$1).v8 = function (result) {
|
|
2582
|
+
return this.r8(result);
|
|
2286
2583
|
};
|
|
2287
|
-
function ByteWriteChannel$flushAndClose$
|
|
2288
|
-
this
|
|
2584
|
+
function ByteWriteChannel$flushAndClose$ref_0(p0) {
|
|
2585
|
+
KFunctionImpl.call(this, 1, 1, 6);
|
|
2586
|
+
this.d1p_1 = p0;
|
|
2289
2587
|
}
|
|
2290
|
-
protoOf(ByteWriteChannel$flushAndClose$
|
|
2291
|
-
return this.
|
|
2588
|
+
protoOf(ByteWriteChannel$flushAndClose$ref_0).e1p = function ($completion) {
|
|
2589
|
+
return this.d1p_1.h1h($completion);
|
|
2292
2590
|
};
|
|
2293
|
-
protoOf(ByteWriteChannel$flushAndClose$
|
|
2294
|
-
return this.
|
|
2591
|
+
protoOf(ByteWriteChannel$flushAndClose$ref_0).e9 = function ($completion) {
|
|
2592
|
+
return this.e1p($completion);
|
|
2295
2593
|
};
|
|
2296
|
-
function ByteWriteChannel$flushAndClose$ref_0(p0) {
|
|
2297
|
-
var i = new ByteWriteChannel$flushAndClose$ref(p0);
|
|
2298
|
-
var l = function ($completion) {
|
|
2299
|
-
return i.w1o($completion);
|
|
2300
|
-
};
|
|
2301
|
-
l.callableName = 'flushAndClose';
|
|
2302
|
-
l.$arity = 0;
|
|
2303
|
-
return l;
|
|
2304
|
-
}
|
|
2305
2594
|
function writer$slambda($block, $channel, resultContinuation) {
|
|
2306
|
-
this.
|
|
2307
|
-
this.
|
|
2595
|
+
this.a1q_1 = $block;
|
|
2596
|
+
this.b1q_1 = $channel;
|
|
2308
2597
|
CoroutineImpl.call(this, resultContinuation);
|
|
2309
2598
|
}
|
|
2310
|
-
protoOf(writer$slambda).
|
|
2311
|
-
var tmp = this.
|
|
2312
|
-
tmp.
|
|
2313
|
-
tmp.
|
|
2314
|
-
return tmp.
|
|
2599
|
+
protoOf(writer$slambda).j1q = function ($this$launch, $completion) {
|
|
2600
|
+
var tmp = this.k1q($this$launch, $completion);
|
|
2601
|
+
tmp.m8_1 = Unit_instance;
|
|
2602
|
+
tmp.n8_1 = null;
|
|
2603
|
+
return tmp.s8();
|
|
2315
2604
|
};
|
|
2316
|
-
protoOf(writer$slambda).
|
|
2317
|
-
return this.
|
|
2605
|
+
protoOf(writer$slambda).f9 = function (p1, $completion) {
|
|
2606
|
+
return this.j1q((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
2318
2607
|
};
|
|
2319
|
-
protoOf(writer$slambda).
|
|
2320
|
-
var suspendResult = this.
|
|
2608
|
+
protoOf(writer$slambda).s8 = function () {
|
|
2609
|
+
var suspendResult = this.m8_1;
|
|
2321
2610
|
$sm: do
|
|
2322
2611
|
try {
|
|
2323
|
-
var tmp = this.
|
|
2612
|
+
var tmp = this.k8_1;
|
|
2324
2613
|
switch (tmp) {
|
|
2325
2614
|
case 0:
|
|
2326
|
-
this.
|
|
2327
|
-
this.
|
|
2328
|
-
this.
|
|
2615
|
+
this.l8_1 = 14;
|
|
2616
|
+
this.f1q_1 = Job(get_job(this.c1q_1.is()));
|
|
2617
|
+
this.k8_1 = 1;
|
|
2329
2618
|
continue $sm;
|
|
2330
2619
|
case 1:
|
|
2331
|
-
this.
|
|
2332
|
-
this.
|
|
2333
|
-
this.
|
|
2334
|
-
suspendResult = this.
|
|
2620
|
+
this.l8_1 = 4;
|
|
2621
|
+
this.l8_1 = 3;
|
|
2622
|
+
this.k8_1 = 2;
|
|
2623
|
+
suspendResult = this.a1q_1(new WriterScope(this.b1q_1, this.c1q_1.is().vf(this.f1q_1)), this);
|
|
2335
2624
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2336
2625
|
return suspendResult;
|
|
2337
2626
|
}
|
|
2338
2627
|
|
|
2339
2628
|
continue $sm;
|
|
2340
2629
|
case 2:
|
|
2341
|
-
this.
|
|
2630
|
+
this.f1q_1.az();
|
|
2342
2631
|
var tmp_0;
|
|
2343
|
-
if (get_job(this.
|
|
2344
|
-
this.
|
|
2632
|
+
if (get_job(this.c1q_1.is()).et()) {
|
|
2633
|
+
this.b1q_1.i1h(get_job(this.c1q_1.is()).ht());
|
|
2345
2634
|
tmp_0 = Unit_instance;
|
|
2346
2635
|
}
|
|
2347
2636
|
|
|
2348
|
-
this.
|
|
2349
|
-
this.
|
|
2637
|
+
this.l8_1 = 14;
|
|
2638
|
+
this.k8_1 = 9;
|
|
2350
2639
|
continue $sm;
|
|
2351
2640
|
case 3:
|
|
2352
|
-
this.
|
|
2353
|
-
var tmp_1 = this.
|
|
2641
|
+
this.l8_1 = 4;
|
|
2642
|
+
var tmp_1 = this.n8_1;
|
|
2354
2643
|
if (tmp_1 instanceof Error) {
|
|
2355
|
-
var cause = this.
|
|
2356
|
-
cancel(this.
|
|
2357
|
-
this.
|
|
2358
|
-
this.
|
|
2359
|
-
this.
|
|
2644
|
+
var cause = this.n8_1;
|
|
2645
|
+
cancel(this.f1q_1, 'Exception thrown while writing to channel', cause);
|
|
2646
|
+
this.b1q_1.i1h(cause);
|
|
2647
|
+
this.l8_1 = 14;
|
|
2648
|
+
this.k8_1 = 9;
|
|
2360
2649
|
continue $sm;
|
|
2361
2650
|
} else {
|
|
2362
|
-
throw this.
|
|
2651
|
+
throw this.n8_1;
|
|
2363
2652
|
}
|
|
2364
2653
|
|
|
2365
2654
|
case 4:
|
|
2366
|
-
this.
|
|
2367
|
-
this.
|
|
2368
|
-
this.
|
|
2369
|
-
suspendResult = this.
|
|
2655
|
+
this.l8_1 = 14;
|
|
2656
|
+
this.g1q_1 = this.n8_1;
|
|
2657
|
+
this.k8_1 = 5;
|
|
2658
|
+
suspendResult = this.f1q_1.ot(this);
|
|
2370
2659
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2371
2660
|
return suspendResult;
|
|
2372
2661
|
}
|
|
2373
2662
|
|
|
2374
2663
|
continue $sm;
|
|
2375
2664
|
case 5:
|
|
2376
|
-
this.
|
|
2377
|
-
this.
|
|
2378
|
-
this.
|
|
2379
|
-
this.
|
|
2380
|
-
suspendResult = this.
|
|
2665
|
+
this.c1q_1;
|
|
2666
|
+
this.l8_1 = 7;
|
|
2667
|
+
this.i1q_1 = Companion_instance;
|
|
2668
|
+
this.k8_1 = 6;
|
|
2669
|
+
suspendResult = this.b1q_1.h1h(this);
|
|
2381
2670
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2382
2671
|
return suspendResult;
|
|
2383
2672
|
}
|
|
@@ -2385,42 +2674,42 @@ protoOf(writer$slambda).r8 = function () {
|
|
|
2385
2674
|
continue $sm;
|
|
2386
2675
|
case 6:
|
|
2387
2676
|
var tmp_2 = this;
|
|
2388
|
-
this.
|
|
2389
|
-
tmp_2.
|
|
2390
|
-
this.
|
|
2391
|
-
this.
|
|
2677
|
+
this.i1q_1;
|
|
2678
|
+
tmp_2.h1q_1 = _Result___init__impl__xyqfz8(Unit_instance);
|
|
2679
|
+
this.l8_1 = 14;
|
|
2680
|
+
this.k8_1 = 8;
|
|
2392
2681
|
continue $sm;
|
|
2393
2682
|
case 7:
|
|
2394
|
-
this.
|
|
2395
|
-
var tmp_3 = this.
|
|
2683
|
+
this.l8_1 = 14;
|
|
2684
|
+
var tmp_3 = this.n8_1;
|
|
2396
2685
|
if (tmp_3 instanceof Error) {
|
|
2397
|
-
var e = this.
|
|
2686
|
+
var e = this.n8_1;
|
|
2398
2687
|
var tmp_4 = this;
|
|
2399
|
-
tmp_4.
|
|
2400
|
-
this.
|
|
2688
|
+
tmp_4.h1q_1 = _Result___init__impl__xyqfz8(createFailure(e));
|
|
2689
|
+
this.k8_1 = 8;
|
|
2401
2690
|
continue $sm;
|
|
2402
2691
|
} else {
|
|
2403
|
-
throw this.
|
|
2692
|
+
throw this.n8_1;
|
|
2404
2693
|
}
|
|
2405
2694
|
|
|
2406
2695
|
case 8:
|
|
2407
|
-
this.
|
|
2408
|
-
throw this.
|
|
2696
|
+
this.l8_1 = 14;
|
|
2697
|
+
throw this.g1q_1;
|
|
2409
2698
|
case 9:
|
|
2410
|
-
this.
|
|
2411
|
-
this.
|
|
2412
|
-
suspendResult = this.
|
|
2699
|
+
this.l8_1 = 14;
|
|
2700
|
+
this.k8_1 = 10;
|
|
2701
|
+
suspendResult = this.f1q_1.ot(this);
|
|
2413
2702
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2414
2703
|
return suspendResult;
|
|
2415
2704
|
}
|
|
2416
2705
|
|
|
2417
2706
|
continue $sm;
|
|
2418
2707
|
case 10:
|
|
2419
|
-
this.
|
|
2420
|
-
this.
|
|
2421
|
-
this.
|
|
2422
|
-
this.
|
|
2423
|
-
suspendResult = this.
|
|
2708
|
+
this.c1q_1;
|
|
2709
|
+
this.l8_1 = 12;
|
|
2710
|
+
this.e1q_1 = Companion_instance;
|
|
2711
|
+
this.k8_1 = 11;
|
|
2712
|
+
suspendResult = this.b1q_1.h1h(this);
|
|
2424
2713
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2425
2714
|
return suspendResult;
|
|
2426
2715
|
}
|
|
@@ -2428,59 +2717,57 @@ protoOf(writer$slambda).r8 = function () {
|
|
|
2428
2717
|
continue $sm;
|
|
2429
2718
|
case 11:
|
|
2430
2719
|
var tmp_5 = this;
|
|
2431
|
-
this.
|
|
2432
|
-
tmp_5.
|
|
2433
|
-
this.
|
|
2434
|
-
this.
|
|
2720
|
+
this.e1q_1;
|
|
2721
|
+
tmp_5.d1q_1 = _Result___init__impl__xyqfz8(Unit_instance);
|
|
2722
|
+
this.l8_1 = 14;
|
|
2723
|
+
this.k8_1 = 13;
|
|
2435
2724
|
continue $sm;
|
|
2436
2725
|
case 12:
|
|
2437
|
-
this.
|
|
2438
|
-
var tmp_6 = this.
|
|
2726
|
+
this.l8_1 = 14;
|
|
2727
|
+
var tmp_6 = this.n8_1;
|
|
2439
2728
|
if (tmp_6 instanceof Error) {
|
|
2440
|
-
var e_0 = this.
|
|
2729
|
+
var e_0 = this.n8_1;
|
|
2441
2730
|
var tmp_7 = this;
|
|
2442
|
-
tmp_7.
|
|
2443
|
-
this.
|
|
2731
|
+
tmp_7.d1q_1 = _Result___init__impl__xyqfz8(createFailure(e_0));
|
|
2732
|
+
this.k8_1 = 13;
|
|
2444
2733
|
continue $sm;
|
|
2445
2734
|
} else {
|
|
2446
|
-
throw this.
|
|
2735
|
+
throw this.n8_1;
|
|
2447
2736
|
}
|
|
2448
2737
|
|
|
2449
2738
|
case 13:
|
|
2450
|
-
this.
|
|
2739
|
+
this.l8_1 = 14;
|
|
2451
2740
|
return Unit_instance;
|
|
2452
2741
|
case 14:
|
|
2453
|
-
throw this.
|
|
2742
|
+
throw this.n8_1;
|
|
2454
2743
|
}
|
|
2455
2744
|
} catch ($p) {
|
|
2456
2745
|
var e_1 = $p;
|
|
2457
|
-
if (this.
|
|
2746
|
+
if (this.l8_1 === 14) {
|
|
2458
2747
|
throw e_1;
|
|
2459
2748
|
} else {
|
|
2460
|
-
this.
|
|
2461
|
-
this.
|
|
2749
|
+
this.k8_1 = this.l8_1;
|
|
2750
|
+
this.n8_1 = e_1;
|
|
2462
2751
|
}
|
|
2463
2752
|
}
|
|
2464
2753
|
while (true);
|
|
2465
2754
|
};
|
|
2466
|
-
protoOf(writer$slambda).
|
|
2467
|
-
var i = new writer$slambda(this.
|
|
2468
|
-
i.
|
|
2755
|
+
protoOf(writer$slambda).k1q = function ($this$launch, completion) {
|
|
2756
|
+
var i = new writer$slambda(this.a1q_1, this.b1q_1, completion);
|
|
2757
|
+
i.c1q_1 = $this$launch;
|
|
2469
2758
|
return i;
|
|
2470
2759
|
};
|
|
2471
2760
|
function writer$slambda_0($block, $channel, resultContinuation) {
|
|
2472
2761
|
var i = new writer$slambda($block, $channel, resultContinuation);
|
|
2473
|
-
|
|
2474
|
-
return i.
|
|
2475
|
-
};
|
|
2476
|
-
l.$arity = 1;
|
|
2477
|
-
return l;
|
|
2762
|
+
return constructCallableReference(function ($this$launch, $completion) {
|
|
2763
|
+
return i.j1q($this$launch, $completion);
|
|
2764
|
+
}, 1);
|
|
2478
2765
|
}
|
|
2479
2766
|
function writer$lambda($channel) {
|
|
2480
2767
|
return function (it) {
|
|
2481
2768
|
var tmp;
|
|
2482
|
-
if (!(it == null) && !$channel.
|
|
2483
|
-
$channel.
|
|
2769
|
+
if (!(it == null) && !$channel.c1h()) {
|
|
2770
|
+
$channel.i1h(it);
|
|
2484
2771
|
tmp = Unit_instance;
|
|
2485
2772
|
}
|
|
2486
2773
|
return Unit_instance;
|
|
@@ -2488,48 +2775,48 @@ function writer$lambda($channel) {
|
|
|
2488
2775
|
}
|
|
2489
2776
|
function $writePacketCOROUTINE$(_this__u8e3s4, source, resultContinuation) {
|
|
2490
2777
|
CoroutineImpl.call(this, resultContinuation);
|
|
2491
|
-
this.
|
|
2492
|
-
this.
|
|
2778
|
+
this.p1p_1 = _this__u8e3s4;
|
|
2779
|
+
this.q1p_1 = source;
|
|
2493
2780
|
}
|
|
2494
|
-
protoOf($writePacketCOROUTINE$).
|
|
2495
|
-
var suspendResult = this.
|
|
2781
|
+
protoOf($writePacketCOROUTINE$).s8 = function () {
|
|
2782
|
+
var suspendResult = this.m8_1;
|
|
2496
2783
|
$sm: do
|
|
2497
2784
|
try {
|
|
2498
|
-
var tmp = this.
|
|
2785
|
+
var tmp = this.k8_1;
|
|
2499
2786
|
switch (tmp) {
|
|
2500
2787
|
case 0:
|
|
2501
|
-
this.
|
|
2502
|
-
this.
|
|
2788
|
+
this.l8_1 = 4;
|
|
2789
|
+
this.k8_1 = 1;
|
|
2503
2790
|
continue $sm;
|
|
2504
2791
|
case 1:
|
|
2505
|
-
if (!!this.
|
|
2506
|
-
this.
|
|
2792
|
+
if (!!this.q1p_1.xo()) {
|
|
2793
|
+
this.k8_1 = 3;
|
|
2507
2794
|
continue $sm;
|
|
2508
2795
|
}
|
|
2509
2796
|
|
|
2510
|
-
this.
|
|
2511
|
-
this.
|
|
2512
|
-
suspendResult = flushIfNeeded(this.
|
|
2797
|
+
this.p1p_1.b1h().kq(this.q1p_1, get_remaining(this.q1p_1));
|
|
2798
|
+
this.k8_1 = 2;
|
|
2799
|
+
suspendResult = flushIfNeeded(this.p1p_1, this);
|
|
2513
2800
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2514
2801
|
return suspendResult;
|
|
2515
2802
|
}
|
|
2516
2803
|
|
|
2517
2804
|
continue $sm;
|
|
2518
2805
|
case 2:
|
|
2519
|
-
this.
|
|
2806
|
+
this.k8_1 = 1;
|
|
2520
2807
|
continue $sm;
|
|
2521
2808
|
case 3:
|
|
2522
2809
|
return Unit_instance;
|
|
2523
2810
|
case 4:
|
|
2524
|
-
throw this.
|
|
2811
|
+
throw this.n8_1;
|
|
2525
2812
|
}
|
|
2526
2813
|
} catch ($p) {
|
|
2527
2814
|
var e = $p;
|
|
2528
|
-
if (this.
|
|
2815
|
+
if (this.l8_1 === 4) {
|
|
2529
2816
|
throw e;
|
|
2530
2817
|
} else {
|
|
2531
|
-
this.
|
|
2532
|
-
this.
|
|
2818
|
+
this.k8_1 = this.l8_1;
|
|
2819
|
+
this.n8_1 = e;
|
|
2533
2820
|
}
|
|
2534
2821
|
}
|
|
2535
2822
|
while (true);
|
|
@@ -2546,55 +2833,18 @@ function get_CLOSED() {
|
|
|
2546
2833
|
return CLOSED;
|
|
2547
2834
|
}
|
|
2548
2835
|
var CLOSED;
|
|
2549
|
-
function
|
|
2550
|
-
|
|
2551
|
-
|
|
2552
|
-
|
|
2553
|
-
|
|
2554
|
-
|
|
2836
|
+
function Companion_1() {
|
|
2837
|
+
}
|
|
2838
|
+
var Companion_instance_2;
|
|
2839
|
+
function Companion_getInstance_1() {
|
|
2840
|
+
return Companion_instance_2;
|
|
2841
|
+
}
|
|
2842
|
+
function access$_get_origin__hdh1qz($this) {
|
|
2843
|
+
return $this.l1q_1;
|
|
2555
2844
|
}
|
|
2556
2845
|
function CloseToken(origin) {
|
|
2557
|
-
this.
|
|
2846
|
+
this.l1q_1 = origin;
|
|
2558
2847
|
}
|
|
2559
|
-
protoOf(CloseToken).q1p = function (wrap) {
|
|
2560
|
-
var tmp0_subject = this.l1g_1;
|
|
2561
|
-
var tmp;
|
|
2562
|
-
if (tmp0_subject == null) {
|
|
2563
|
-
tmp = null;
|
|
2564
|
-
} else {
|
|
2565
|
-
if (isInterface(tmp0_subject, CopyableThrowable)) {
|
|
2566
|
-
tmp = this.l1g_1.vy();
|
|
2567
|
-
} else {
|
|
2568
|
-
if (tmp0_subject instanceof CancellationException) {
|
|
2569
|
-
tmp = CancellationException_init_$Create$(this.l1g_1.message, this.l1g_1);
|
|
2570
|
-
} else {
|
|
2571
|
-
tmp = wrap(this.l1g_1);
|
|
2572
|
-
}
|
|
2573
|
-
}
|
|
2574
|
-
}
|
|
2575
|
-
return tmp;
|
|
2576
|
-
};
|
|
2577
|
-
protoOf(CloseToken).q1g = function (wrap, $super) {
|
|
2578
|
-
var tmp;
|
|
2579
|
-
if (wrap === VOID) {
|
|
2580
|
-
tmp = ClosedByteChannelException$_init_$ref_yjp351();
|
|
2581
|
-
} else {
|
|
2582
|
-
tmp = wrap;
|
|
2583
|
-
}
|
|
2584
|
-
wrap = tmp;
|
|
2585
|
-
return $super === VOID ? this.q1p(wrap) : $super.q1p.call(this, wrap);
|
|
2586
|
-
};
|
|
2587
|
-
protoOf(CloseToken).m1g = function (wrap) {
|
|
2588
|
-
var tmp0_safe_receiver = this.q1p(wrap);
|
|
2589
|
-
var tmp;
|
|
2590
|
-
if (tmp0_safe_receiver == null) {
|
|
2591
|
-
tmp = null;
|
|
2592
|
-
} else {
|
|
2593
|
-
// Inline function 'kotlin.let' call
|
|
2594
|
-
throw tmp0_safe_receiver;
|
|
2595
|
-
}
|
|
2596
|
-
return tmp;
|
|
2597
|
-
};
|
|
2598
2848
|
var properties_initialized_CloseToken_kt_lgg8zn;
|
|
2599
2849
|
function _init_properties_CloseToken_kt__9ucr41() {
|
|
2600
2850
|
if (!properties_initialized_CloseToken_kt_lgg8zn) {
|
|
@@ -2604,32 +2854,32 @@ function _init_properties_CloseToken_kt__9ucr41() {
|
|
|
2604
2854
|
}
|
|
2605
2855
|
function transferFromDelegate($this) {
|
|
2606
2856
|
updateConsumed($this);
|
|
2607
|
-
var appended = $this.
|
|
2608
|
-
$this.
|
|
2857
|
+
var appended = $this.n1q_1.pq($this.m1q_1.a1h());
|
|
2858
|
+
$this.o1q_1 = add($this.o1q_1, appended);
|
|
2609
2859
|
}
|
|
2610
2860
|
function updateConsumed($this) {
|
|
2611
|
-
$this.
|
|
2612
|
-
$this.
|
|
2861
|
+
$this.p1q_1 = add($this.p1q_1, subtract($this.o1q_1, $this.n1q_1.g1()));
|
|
2862
|
+
$this.o1q_1 = $this.n1q_1.g1();
|
|
2613
2863
|
}
|
|
2614
2864
|
function $awaitContentCOROUTINE$_0(_this__u8e3s4, min, resultContinuation) {
|
|
2615
2865
|
CoroutineImpl.call(this, resultContinuation);
|
|
2616
|
-
this.
|
|
2617
|
-
this.
|
|
2866
|
+
this.y1q_1 = _this__u8e3s4;
|
|
2867
|
+
this.z1q_1 = min;
|
|
2618
2868
|
}
|
|
2619
|
-
protoOf($awaitContentCOROUTINE$_0).
|
|
2620
|
-
var suspendResult = this.
|
|
2869
|
+
protoOf($awaitContentCOROUTINE$_0).s8 = function () {
|
|
2870
|
+
var suspendResult = this.m8_1;
|
|
2621
2871
|
$sm: do
|
|
2622
2872
|
try {
|
|
2623
|
-
var tmp = this.
|
|
2873
|
+
var tmp = this.k8_1;
|
|
2624
2874
|
switch (tmp) {
|
|
2625
2875
|
case 0:
|
|
2626
|
-
this.
|
|
2627
|
-
if (this.
|
|
2876
|
+
this.l8_1 = 3;
|
|
2877
|
+
if (this.y1q_1.a1h().g1() >= fromInt(this.z1q_1)) {
|
|
2628
2878
|
return true;
|
|
2629
2879
|
}
|
|
2630
2880
|
|
|
2631
|
-
this.
|
|
2632
|
-
suspendResult = this.
|
|
2881
|
+
this.k8_1 = 1;
|
|
2882
|
+
suspendResult = this.y1q_1.m1q_1.f1h(this.z1q_1, this);
|
|
2633
2883
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2634
2884
|
return suspendResult;
|
|
2635
2885
|
}
|
|
@@ -2637,64 +2887,64 @@ protoOf($awaitContentCOROUTINE$_0).r8 = function () {
|
|
|
2637
2887
|
continue $sm;
|
|
2638
2888
|
case 1:
|
|
2639
2889
|
if (suspendResult) {
|
|
2640
|
-
transferFromDelegate(this.
|
|
2890
|
+
transferFromDelegate(this.y1q_1);
|
|
2641
2891
|
return true;
|
|
2642
2892
|
} else {
|
|
2643
|
-
this.
|
|
2893
|
+
this.k8_1 = 2;
|
|
2644
2894
|
continue $sm;
|
|
2645
2895
|
}
|
|
2646
2896
|
|
|
2647
2897
|
case 2:
|
|
2648
2898
|
return false;
|
|
2649
2899
|
case 3:
|
|
2650
|
-
throw this.
|
|
2900
|
+
throw this.n8_1;
|
|
2651
2901
|
}
|
|
2652
2902
|
} catch ($p) {
|
|
2653
2903
|
var e = $p;
|
|
2654
|
-
if (this.
|
|
2904
|
+
if (this.l8_1 === 3) {
|
|
2655
2905
|
throw e;
|
|
2656
2906
|
} else {
|
|
2657
|
-
this.
|
|
2658
|
-
this.
|
|
2907
|
+
this.k8_1 = this.l8_1;
|
|
2908
|
+
this.n8_1 = e;
|
|
2659
2909
|
}
|
|
2660
2910
|
}
|
|
2661
2911
|
while (true);
|
|
2662
2912
|
};
|
|
2663
2913
|
function CountedByteReadChannel(delegate) {
|
|
2664
|
-
this.
|
|
2665
|
-
this.
|
|
2666
|
-
this.
|
|
2667
|
-
this.
|
|
2914
|
+
this.m1q_1 = delegate;
|
|
2915
|
+
this.n1q_1 = new Buffer();
|
|
2916
|
+
this.o1q_1 = 0n;
|
|
2917
|
+
this.p1q_1 = 0n;
|
|
2668
2918
|
}
|
|
2669
|
-
protoOf(CountedByteReadChannel).
|
|
2919
|
+
protoOf(CountedByteReadChannel).a1r = function () {
|
|
2670
2920
|
updateConsumed(this);
|
|
2671
|
-
return this.
|
|
2921
|
+
return this.p1q_1;
|
|
2672
2922
|
};
|
|
2673
|
-
protoOf(CountedByteReadChannel).
|
|
2674
|
-
return this.
|
|
2923
|
+
protoOf(CountedByteReadChannel).d1h = function () {
|
|
2924
|
+
return this.m1q_1.d1h();
|
|
2675
2925
|
};
|
|
2676
|
-
protoOf(CountedByteReadChannel).
|
|
2677
|
-
return this.
|
|
2926
|
+
protoOf(CountedByteReadChannel).e1h = function () {
|
|
2927
|
+
return this.n1q_1.xo() && this.m1q_1.e1h();
|
|
2678
2928
|
};
|
|
2679
|
-
protoOf(CountedByteReadChannel).
|
|
2929
|
+
protoOf(CountedByteReadChannel).a1h = function () {
|
|
2680
2930
|
transferFromDelegate(this);
|
|
2681
|
-
return this.
|
|
2931
|
+
return this.n1q_1;
|
|
2682
2932
|
};
|
|
2683
|
-
protoOf(CountedByteReadChannel).
|
|
2933
|
+
protoOf(CountedByteReadChannel).f1h = function (min, $completion) {
|
|
2684
2934
|
var tmp = new $awaitContentCOROUTINE$_0(this, min, $completion);
|
|
2685
|
-
tmp.
|
|
2686
|
-
tmp.
|
|
2687
|
-
return tmp.
|
|
2935
|
+
tmp.m8_1 = Unit_instance;
|
|
2936
|
+
tmp.n8_1 = null;
|
|
2937
|
+
return tmp.s8();
|
|
2688
2938
|
};
|
|
2689
|
-
protoOf(CountedByteReadChannel).
|
|
2690
|
-
this.
|
|
2691
|
-
this.
|
|
2939
|
+
protoOf(CountedByteReadChannel).i1h = function (cause) {
|
|
2940
|
+
this.m1q_1.i1h(cause);
|
|
2941
|
+
this.n1q_1.j4();
|
|
2692
2942
|
};
|
|
2693
2943
|
function counted(_this__u8e3s4) {
|
|
2694
2944
|
return new CountedByteReadChannel(_this__u8e3s4);
|
|
2695
2945
|
}
|
|
2696
2946
|
function readText(_this__u8e3s4) {
|
|
2697
|
-
return
|
|
2947
|
+
return readString_1(_this__u8e3s4);
|
|
2698
2948
|
}
|
|
2699
2949
|
function ClosedByteChannelException(cause) {
|
|
2700
2950
|
cause = cause === VOID ? null : cause;
|
|
@@ -2746,21 +2996,21 @@ function LineEndingMode__plus_impl_ttpz2j($this, other) {
|
|
|
2746
2996
|
}
|
|
2747
2997
|
function LineEndingMode__toString_impl_j4h76r($this) {
|
|
2748
2998
|
var tmp;
|
|
2749
|
-
if ($this ===
|
|
2999
|
+
if ($this === Companion_getInstance_2().b1r_1) {
|
|
2750
3000
|
tmp = 'CR';
|
|
2751
|
-
} else if ($this ===
|
|
3001
|
+
} else if ($this === Companion_getInstance_2().c1r_1) {
|
|
2752
3002
|
tmp = 'LF';
|
|
2753
|
-
} else if ($this ===
|
|
3003
|
+
} else if ($this === Companion_getInstance_2().d1r_1) {
|
|
2754
3004
|
tmp = 'CRLF';
|
|
2755
3005
|
} else {
|
|
2756
3006
|
// Inline function 'kotlin.collections.filter' call
|
|
2757
|
-
var tmp0 =
|
|
3007
|
+
var tmp0 = Companion_getInstance_2().f1r_1;
|
|
2758
3008
|
// Inline function 'kotlin.collections.filterTo' call
|
|
2759
3009
|
var destination = ArrayList_init_$Create$();
|
|
2760
3010
|
var _iterator__ex2g4s = tmp0.t();
|
|
2761
3011
|
while (_iterator__ex2g4s.u()) {
|
|
2762
3012
|
var element = _iterator__ex2g4s.v();
|
|
2763
|
-
var it = element.
|
|
3013
|
+
var it = element.g1r_1;
|
|
2764
3014
|
if (LineEndingMode__contains_impl_q5pr68($this, it)) {
|
|
2765
3015
|
destination.e1(element);
|
|
2766
3016
|
}
|
|
@@ -2769,19 +3019,19 @@ function LineEndingMode__toString_impl_j4h76r($this) {
|
|
|
2769
3019
|
}
|
|
2770
3020
|
return tmp;
|
|
2771
3021
|
}
|
|
2772
|
-
function
|
|
2773
|
-
|
|
2774
|
-
this.
|
|
2775
|
-
this.
|
|
2776
|
-
this.
|
|
2777
|
-
this.
|
|
2778
|
-
this.
|
|
3022
|
+
function Companion_2() {
|
|
3023
|
+
Companion_instance_3 = this;
|
|
3024
|
+
this.b1r_1 = _LineEndingMode___init__impl__jo5bul(1);
|
|
3025
|
+
this.c1r_1 = _LineEndingMode___init__impl__jo5bul(2);
|
|
3026
|
+
this.d1r_1 = _LineEndingMode___init__impl__jo5bul(4);
|
|
3027
|
+
this.e1r_1 = _LineEndingMode___init__impl__jo5bul(7);
|
|
3028
|
+
this.f1r_1 = listOf([new LineEndingMode(this.b1r_1), new LineEndingMode(this.c1r_1), new LineEndingMode(this.d1r_1)]);
|
|
2779
3029
|
}
|
|
2780
|
-
var
|
|
2781
|
-
function
|
|
2782
|
-
if (
|
|
2783
|
-
new
|
|
2784
|
-
return
|
|
3030
|
+
var Companion_instance_3;
|
|
3031
|
+
function Companion_getInstance_2() {
|
|
3032
|
+
if (Companion_instance_3 == null)
|
|
3033
|
+
new Companion_2();
|
|
3034
|
+
return Companion_instance_3;
|
|
2785
3035
|
}
|
|
2786
3036
|
function LineEndingMode__hashCode_impl_2mopm4($this) {
|
|
2787
3037
|
return $this;
|
|
@@ -2789,67 +3039,90 @@ function LineEndingMode__hashCode_impl_2mopm4($this) {
|
|
|
2789
3039
|
function LineEndingMode__equals_impl_qyr4nk($this, other) {
|
|
2790
3040
|
if (!(other instanceof LineEndingMode))
|
|
2791
3041
|
return false;
|
|
2792
|
-
if (!($this === other.
|
|
3042
|
+
if (!($this === other.g1r_1))
|
|
2793
3043
|
return false;
|
|
2794
3044
|
return true;
|
|
2795
3045
|
}
|
|
2796
3046
|
function LineEndingMode(mode) {
|
|
2797
|
-
|
|
2798
|
-
this.
|
|
3047
|
+
Companion_getInstance_2();
|
|
3048
|
+
this.g1r_1 = mode;
|
|
2799
3049
|
}
|
|
2800
3050
|
protoOf(LineEndingMode).toString = function () {
|
|
2801
|
-
return LineEndingMode__toString_impl_j4h76r(this.
|
|
3051
|
+
return LineEndingMode__toString_impl_j4h76r(this.g1r_1);
|
|
2802
3052
|
};
|
|
2803
3053
|
protoOf(LineEndingMode).hashCode = function () {
|
|
2804
|
-
return LineEndingMode__hashCode_impl_2mopm4(this.
|
|
3054
|
+
return LineEndingMode__hashCode_impl_2mopm4(this.g1r_1);
|
|
2805
3055
|
};
|
|
2806
3056
|
protoOf(LineEndingMode).equals = function (other) {
|
|
2807
|
-
return LineEndingMode__equals_impl_qyr4nk(this.
|
|
3057
|
+
return LineEndingMode__equals_impl_qyr4nk(this.g1r_1, other);
|
|
2808
3058
|
};
|
|
2809
3059
|
function SourceByteReadChannel(source) {
|
|
2810
|
-
this.
|
|
2811
|
-
this.
|
|
3060
|
+
this.h1r_1 = source;
|
|
3061
|
+
this.i1r_1 = null;
|
|
2812
3062
|
}
|
|
2813
|
-
protoOf(SourceByteReadChannel).
|
|
2814
|
-
var tmp0_safe_receiver = this.
|
|
2815
|
-
|
|
3063
|
+
protoOf(SourceByteReadChannel).d1h = function () {
|
|
3064
|
+
var tmp0_safe_receiver = this.i1r_1;
|
|
3065
|
+
var tmp;
|
|
3066
|
+
if (tmp0_safe_receiver == null) {
|
|
3067
|
+
tmp = null;
|
|
3068
|
+
} else {
|
|
3069
|
+
// Inline function 'io.ktor.utils.io.Companion.wrapCause' call
|
|
3070
|
+
var tmp0_subject = access$_get_origin__hdh1qz(tmp0_safe_receiver);
|
|
3071
|
+
var tmp_0;
|
|
3072
|
+
if (tmp0_subject == null) {
|
|
3073
|
+
tmp_0 = null;
|
|
3074
|
+
} else {
|
|
3075
|
+
if (isInterface(tmp0_subject, CopyableThrowable)) {
|
|
3076
|
+
tmp_0 = access$_get_origin__hdh1qz(tmp0_safe_receiver).jz();
|
|
3077
|
+
} else {
|
|
3078
|
+
if (tmp0_subject instanceof CancellationException) {
|
|
3079
|
+
tmp_0 = CancellationException_init_$Create$(access$_get_origin__hdh1qz(tmp0_safe_receiver).message, access$_get_origin__hdh1qz(tmp0_safe_receiver));
|
|
3080
|
+
} else {
|
|
3081
|
+
var p0 = access$_get_origin__hdh1qz(tmp0_safe_receiver);
|
|
3082
|
+
tmp_0 = new ClosedByteChannelException(p0);
|
|
3083
|
+
}
|
|
3084
|
+
}
|
|
3085
|
+
}
|
|
3086
|
+
tmp = tmp_0;
|
|
3087
|
+
}
|
|
3088
|
+
return tmp;
|
|
2816
3089
|
};
|
|
2817
|
-
protoOf(SourceByteReadChannel).
|
|
2818
|
-
return this.
|
|
3090
|
+
protoOf(SourceByteReadChannel).e1h = function () {
|
|
3091
|
+
return this.h1r_1.xo();
|
|
2819
3092
|
};
|
|
2820
|
-
protoOf(SourceByteReadChannel).
|
|
2821
|
-
var tmp0_safe_receiver = this.
|
|
3093
|
+
protoOf(SourceByteReadChannel).a1h = function () {
|
|
3094
|
+
var tmp0_safe_receiver = this.d1h();
|
|
2822
3095
|
if (tmp0_safe_receiver == null)
|
|
2823
3096
|
null;
|
|
2824
3097
|
else {
|
|
2825
3098
|
// Inline function 'kotlin.let' call
|
|
2826
3099
|
throw tmp0_safe_receiver;
|
|
2827
3100
|
}
|
|
2828
|
-
return this.
|
|
3101
|
+
return this.h1r_1.wo();
|
|
2829
3102
|
};
|
|
2830
|
-
protoOf(SourceByteReadChannel).
|
|
2831
|
-
var tmp0_safe_receiver = this.
|
|
3103
|
+
protoOf(SourceByteReadChannel).f1h = function (min, $completion) {
|
|
3104
|
+
var tmp0_safe_receiver = this.d1h();
|
|
2832
3105
|
if (tmp0_safe_receiver == null)
|
|
2833
3106
|
null;
|
|
2834
3107
|
else {
|
|
2835
3108
|
// Inline function 'kotlin.let' call
|
|
2836
3109
|
throw tmp0_safe_receiver;
|
|
2837
3110
|
}
|
|
2838
|
-
return this.
|
|
3111
|
+
return this.h1r_1.zo(fromInt(min));
|
|
2839
3112
|
};
|
|
2840
|
-
protoOf(SourceByteReadChannel).
|
|
2841
|
-
if (!(this.
|
|
3113
|
+
protoOf(SourceByteReadChannel).i1h = function (cause) {
|
|
3114
|
+
if (!(this.i1r_1 == null))
|
|
2842
3115
|
return Unit_instance;
|
|
2843
|
-
this.
|
|
3116
|
+
this.h1r_1.j4();
|
|
2844
3117
|
var tmp = this;
|
|
2845
3118
|
var tmp1_elvis_lhs = cause == null ? null : cause.message;
|
|
2846
|
-
tmp.
|
|
3119
|
+
tmp.i1r_1 = new CloseToken(IOException_init_$Create$_0(tmp1_elvis_lhs == null ? 'Channel was cancelled' : tmp1_elvis_lhs, cause));
|
|
2847
3120
|
};
|
|
2848
3121
|
function decode(_this__u8e3s4, input, max) {
|
|
2849
3122
|
max = max === VOID ? 2147483647 : max;
|
|
2850
3123
|
var tmp0 = fromInt(max);
|
|
2851
3124
|
// Inline function 'kotlin.comparisons.minOf' call
|
|
2852
|
-
var b = input.
|
|
3125
|
+
var b = input.wo().g1();
|
|
2853
3126
|
var tmp$ret$0 = tmp0 <= b ? tmp0 : b;
|
|
2854
3127
|
// Inline function 'kotlin.text.buildString' call
|
|
2855
3128
|
var capacity = convertToInt(tmp$ret$0);
|
|
@@ -2886,7 +3159,7 @@ function encodeToImpl(_this__u8e3s4, destination, input, fromIndex, toIndex) {
|
|
|
2886
3159
|
}
|
|
2887
3160
|
}
|
|
2888
3161
|
function canRead(_this__u8e3s4) {
|
|
2889
|
-
return !_this__u8e3s4.
|
|
3162
|
+
return !_this__u8e3s4.xo();
|
|
2890
3163
|
}
|
|
2891
3164
|
function readBytes(_this__u8e3s4, count) {
|
|
2892
3165
|
count = count === VOID ? convertToInt(_this__u8e3s4.g1()) : count;
|
|
@@ -2895,35 +3168,35 @@ function readBytes(_this__u8e3s4, count) {
|
|
|
2895
3168
|
function writeFully_0(_this__u8e3s4, buffer, offset, length) {
|
|
2896
3169
|
offset = offset === VOID ? 0 : offset;
|
|
2897
3170
|
length = length === VOID ? buffer.length - offset | 0 : length;
|
|
2898
|
-
_this__u8e3s4.
|
|
3171
|
+
_this__u8e3s4.gq(buffer, offset, offset + length | 0);
|
|
2899
3172
|
}
|
|
2900
3173
|
function BytePacketBuilder() {
|
|
2901
3174
|
return new Buffer();
|
|
2902
3175
|
}
|
|
2903
3176
|
function build(_this__u8e3s4) {
|
|
2904
|
-
return _this__u8e3s4.
|
|
3177
|
+
return _this__u8e3s4.wo();
|
|
2905
3178
|
}
|
|
2906
3179
|
function get_size(_this__u8e3s4) {
|
|
2907
|
-
return convertToInt(_this__u8e3s4.
|
|
3180
|
+
return convertToInt(_this__u8e3s4.wo().g1());
|
|
2908
3181
|
}
|
|
2909
3182
|
var ByteReadPacketEmpty;
|
|
2910
3183
|
function get_remaining(_this__u8e3s4) {
|
|
2911
3184
|
_init_properties_ByteReadPacket_kt__28475y();
|
|
2912
|
-
return _this__u8e3s4.
|
|
3185
|
+
return _this__u8e3s4.wo().g1();
|
|
2913
3186
|
}
|
|
2914
3187
|
function takeWhile(_this__u8e3s4, block) {
|
|
2915
3188
|
_init_properties_ByteReadPacket_kt__28475y();
|
|
2916
|
-
while (!_this__u8e3s4.
|
|
3189
|
+
while (!_this__u8e3s4.xo() && block(_this__u8e3s4.wo())) {
|
|
2917
3190
|
}
|
|
2918
3191
|
}
|
|
2919
3192
|
function discard_0(_this__u8e3s4, count) {
|
|
2920
3193
|
count = count === VOID ? 9223372036854775807n : count;
|
|
2921
3194
|
_init_properties_ByteReadPacket_kt__28475y();
|
|
2922
|
-
_this__u8e3s4.
|
|
3195
|
+
_this__u8e3s4.zo(count);
|
|
2923
3196
|
// Inline function 'kotlin.comparisons.minOf' call
|
|
2924
3197
|
var b = get_remaining(_this__u8e3s4);
|
|
2925
3198
|
var countToDiscard = count <= b ? count : b;
|
|
2926
|
-
_this__u8e3s4.
|
|
3199
|
+
_this__u8e3s4.wo().up(countToDiscard);
|
|
2927
3200
|
return countToDiscard;
|
|
2928
3201
|
}
|
|
2929
3202
|
var properties_initialized_ByteReadPacket_kt_hw4st4;
|
|
@@ -2936,37 +3209,23 @@ function _init_properties_ByteReadPacket_kt__28475y() {
|
|
|
2936
3209
|
function readAvailable_0(_this__u8e3s4, buffer, offset, length) {
|
|
2937
3210
|
offset = offset === VOID ? 0 : offset;
|
|
2938
3211
|
length = length === VOID ? buffer.length - offset | 0 : length;
|
|
2939
|
-
var result = _this__u8e3s4.
|
|
3212
|
+
var result = _this__u8e3s4.vp(buffer, offset, offset + length | 0);
|
|
2940
3213
|
return result === -1 ? 0 : result;
|
|
2941
3214
|
}
|
|
2942
|
-
function readText_0(_this__u8e3s4, charset, max) {
|
|
2943
|
-
charset = charset === VOID ? Charsets_getInstance().o1q_1 : charset;
|
|
2944
|
-
max = max === VOID ? 2147483647 : max;
|
|
2945
|
-
if (charset.equals(Charsets_getInstance().o1q_1)) {
|
|
2946
|
-
if (max === 2147483647)
|
|
2947
|
-
return readString_0(_this__u8e3s4);
|
|
2948
|
-
var tmp0 = _this__u8e3s4.io().g1();
|
|
2949
|
-
// Inline function 'kotlin.math.min' call
|
|
2950
|
-
var b = fromInt(max);
|
|
2951
|
-
var count = tmp0 <= b ? tmp0 : b;
|
|
2952
|
-
return readString(_this__u8e3s4, count);
|
|
2953
|
-
}
|
|
2954
|
-
return decode(charset.r1q(), _this__u8e3s4, max);
|
|
2955
|
-
}
|
|
2956
3215
|
function toByteArray_0(_this__u8e3s4, charset) {
|
|
2957
|
-
charset = charset === VOID ? Charsets_getInstance().
|
|
2958
|
-
if (charset.equals(Charsets_getInstance().
|
|
2959
|
-
return encodeToByteArray(_this__u8e3s4
|
|
2960
|
-
return encodeToByteArray_0(charset.
|
|
3216
|
+
charset = charset === VOID ? Charsets_getInstance().j1r_1 : charset;
|
|
3217
|
+
if (charset.equals(Charsets_getInstance().j1r_1))
|
|
3218
|
+
return encodeToByteArray(_this__u8e3s4);
|
|
3219
|
+
return encodeToByteArray_0(charset.m1r(), _this__u8e3s4, 0, _this__u8e3s4.length);
|
|
2961
3220
|
}
|
|
2962
3221
|
function writeText(_this__u8e3s4, text, fromIndex, toIndex, charset) {
|
|
2963
3222
|
fromIndex = fromIndex === VOID ? 0 : fromIndex;
|
|
2964
3223
|
toIndex = toIndex === VOID ? charSequenceLength(text) : toIndex;
|
|
2965
|
-
charset = charset === VOID ? Charsets_getInstance().
|
|
2966
|
-
if (charset === Charsets_getInstance().
|
|
3224
|
+
charset = charset === VOID ? Charsets_getInstance().j1r_1 : charset;
|
|
3225
|
+
if (charset === Charsets_getInstance().j1r_1) {
|
|
2967
3226
|
return writeString(_this__u8e3s4, toString_1(text), fromIndex, toIndex);
|
|
2968
3227
|
}
|
|
2969
|
-
encodeToImpl(charset.
|
|
3228
|
+
encodeToImpl(charset.m1r(), _this__u8e3s4, text, fromIndex, toIndex);
|
|
2970
3229
|
}
|
|
2971
3230
|
function get_ByteArrayPool() {
|
|
2972
3231
|
_init_properties_ByteArrayPool_kt__kfi3uj();
|
|
@@ -2976,7 +3235,7 @@ var ByteArrayPool;
|
|
|
2976
3235
|
function ByteArrayPool$1() {
|
|
2977
3236
|
DefaultPool.call(this, 128);
|
|
2978
3237
|
}
|
|
2979
|
-
protoOf(ByteArrayPool$1).
|
|
3238
|
+
protoOf(ByteArrayPool$1).q1r = function () {
|
|
2980
3239
|
return new Int8Array(4096);
|
|
2981
3240
|
};
|
|
2982
3241
|
var properties_initialized_ByteArrayPool_kt_td6pfh;
|
|
@@ -2990,21 +3249,21 @@ function ObjectPool() {
|
|
|
2990
3249
|
}
|
|
2991
3250
|
function NoPoolImpl() {
|
|
2992
3251
|
}
|
|
2993
|
-
protoOf(NoPoolImpl).
|
|
3252
|
+
protoOf(NoPoolImpl).y1r = function (instance) {
|
|
2994
3253
|
return Unit_instance;
|
|
2995
3254
|
};
|
|
2996
|
-
protoOf(NoPoolImpl).
|
|
3255
|
+
protoOf(NoPoolImpl).tv = function () {
|
|
2997
3256
|
return Unit_instance;
|
|
2998
3257
|
};
|
|
2999
|
-
function
|
|
3258
|
+
function Companion_3() {
|
|
3000
3259
|
}
|
|
3001
|
-
protoOf(
|
|
3260
|
+
protoOf(Companion_3).z1r = function (name) {
|
|
3002
3261
|
switch (name) {
|
|
3003
3262
|
case 'UTF-8':
|
|
3004
3263
|
case 'utf-8':
|
|
3005
3264
|
case 'UTF8':
|
|
3006
3265
|
case 'utf8':
|
|
3007
|
-
return Charsets_getInstance().
|
|
3266
|
+
return Charsets_getInstance().j1r_1;
|
|
3008
3267
|
}
|
|
3009
3268
|
var tmp;
|
|
3010
3269
|
var tmp_0;
|
|
@@ -3035,66 +3294,16 @@ protoOf(Companion_2).f1r = function (name) {
|
|
|
3035
3294
|
tmp = name === 'latin1' || name === 'Latin1';
|
|
3036
3295
|
}
|
|
3037
3296
|
if (tmp) {
|
|
3038
|
-
return Charsets_getInstance().
|
|
3297
|
+
return Charsets_getInstance().k1r_1;
|
|
3039
3298
|
}
|
|
3040
3299
|
throw IllegalArgumentException_init_$Create$('Charset ' + name + ' is not supported');
|
|
3041
3300
|
};
|
|
3042
|
-
|
|
3043
|
-
|
|
3044
|
-
|
|
3045
|
-
case 'UTF-8':
|
|
3046
|
-
case 'utf-8':
|
|
3047
|
-
case 'UTF8':
|
|
3048
|
-
case 'utf8':
|
|
3049
|
-
tmp = true;
|
|
3050
|
-
break;
|
|
3051
|
-
default:
|
|
3052
|
-
var tmp_0;
|
|
3053
|
-
var tmp_1;
|
|
3054
|
-
switch (charset) {
|
|
3055
|
-
case 'ISO-8859-1':
|
|
3056
|
-
case 'iso-8859-1':
|
|
3057
|
-
tmp_1 = true;
|
|
3058
|
-
break;
|
|
3059
|
-
default:
|
|
3060
|
-
// Inline function 'kotlin.let' call
|
|
3061
|
-
|
|
3062
|
-
var it = replace_0(charset, _Char___init__impl__6a9atx(95), _Char___init__impl__6a9atx(45));
|
|
3063
|
-
var tmp_2;
|
|
3064
|
-
if (it === 'iso-8859-1') {
|
|
3065
|
-
tmp_2 = true;
|
|
3066
|
-
} else {
|
|
3067
|
-
// Inline function 'kotlin.text.lowercase' call
|
|
3068
|
-
// Inline function 'kotlin.js.asDynamic' call
|
|
3069
|
-
tmp_2 = it.toLowerCase() === 'iso-8859-1';
|
|
3070
|
-
}
|
|
3071
|
-
|
|
3072
|
-
tmp_1 = tmp_2;
|
|
3073
|
-
break;
|
|
3074
|
-
}
|
|
3075
|
-
|
|
3076
|
-
if (tmp_1) {
|
|
3077
|
-
tmp_0 = true;
|
|
3078
|
-
} else {
|
|
3079
|
-
tmp_0 = charset === 'latin1';
|
|
3080
|
-
}
|
|
3081
|
-
|
|
3082
|
-
if (tmp_0) {
|
|
3083
|
-
tmp = true;
|
|
3084
|
-
} else {
|
|
3085
|
-
tmp = false;
|
|
3086
|
-
}
|
|
3087
|
-
|
|
3088
|
-
break;
|
|
3089
|
-
}
|
|
3090
|
-
return tmp;
|
|
3091
|
-
};
|
|
3092
|
-
var Companion_instance_3;
|
|
3093
|
-
function Companion_getInstance_2() {
|
|
3094
|
-
return Companion_instance_3;
|
|
3301
|
+
var Companion_instance_4;
|
|
3302
|
+
function Companion_getInstance_3() {
|
|
3303
|
+
return Companion_instance_4;
|
|
3095
3304
|
}
|
|
3096
3305
|
function Charset(_name) {
|
|
3097
|
-
this.
|
|
3306
|
+
this.l1r_1 = _name;
|
|
3098
3307
|
}
|
|
3099
3308
|
protoOf(Charset).equals = function (other) {
|
|
3100
3309
|
if (this === other)
|
|
@@ -3103,18 +3312,18 @@ protoOf(Charset).equals = function (other) {
|
|
|
3103
3312
|
return false;
|
|
3104
3313
|
if (!(other instanceof Charset))
|
|
3105
3314
|
THROW_CCE();
|
|
3106
|
-
return this.
|
|
3315
|
+
return this.l1r_1 === other.l1r_1;
|
|
3107
3316
|
};
|
|
3108
3317
|
protoOf(Charset).hashCode = function () {
|
|
3109
|
-
return getStringHashCode(this.
|
|
3318
|
+
return getStringHashCode(this.l1r_1);
|
|
3110
3319
|
};
|
|
3111
3320
|
protoOf(Charset).toString = function () {
|
|
3112
|
-
return this.
|
|
3321
|
+
return this.l1r_1;
|
|
3113
3322
|
};
|
|
3114
3323
|
function Charsets() {
|
|
3115
3324
|
Charsets_instance = this;
|
|
3116
|
-
this.
|
|
3117
|
-
this.
|
|
3325
|
+
this.j1r_1 = new CharsetImpl('UTF-8');
|
|
3326
|
+
this.k1r_1 = new CharsetImpl('ISO-8859-1');
|
|
3118
3327
|
}
|
|
3119
3328
|
var Charsets_instance;
|
|
3120
3329
|
function Charsets_getInstance() {
|
|
@@ -3123,27 +3332,24 @@ function Charsets_getInstance() {
|
|
|
3123
3332
|
return Charsets_instance;
|
|
3124
3333
|
}
|
|
3125
3334
|
function CharsetDecoder(_charset) {
|
|
3126
|
-
this.
|
|
3335
|
+
this.b1s_1 = _charset;
|
|
3127
3336
|
}
|
|
3128
3337
|
function MalformedInputException(message) {
|
|
3129
3338
|
IOException_init_$Init$_0(message, this);
|
|
3130
3339
|
captureStack(this, MalformedInputException);
|
|
3131
3340
|
}
|
|
3132
3341
|
function get_name(_this__u8e3s4) {
|
|
3133
|
-
return _this__u8e3s4.
|
|
3134
|
-
}
|
|
3135
|
-
function isSupported(_this__u8e3s4, name) {
|
|
3136
|
-
return Companion_instance_3.g1r(name);
|
|
3342
|
+
return _this__u8e3s4.l1r_1;
|
|
3137
3343
|
}
|
|
3138
3344
|
function forName(_this__u8e3s4, name) {
|
|
3139
|
-
return
|
|
3345
|
+
return Companion_instance_4.z1r(name);
|
|
3140
3346
|
}
|
|
3141
3347
|
function CharsetEncoder(_charset) {
|
|
3142
|
-
this.
|
|
3348
|
+
this.c1s_1 = _charset;
|
|
3143
3349
|
}
|
|
3144
3350
|
function decode_0(_this__u8e3s4, input, dst, max) {
|
|
3145
3351
|
var decoder = Decoder(get_name(get_charset(_this__u8e3s4)), true);
|
|
3146
|
-
var tmp0 = input.
|
|
3352
|
+
var tmp0 = input.wo().g1();
|
|
3147
3353
|
// Inline function 'kotlin.comparisons.minOf' call
|
|
3148
3354
|
var b = fromInt(max);
|
|
3149
3355
|
var count = tmp0 <= b ? tmp0 : b;
|
|
@@ -3153,7 +3359,7 @@ function decode_0(_this__u8e3s4, input, dst, max) {
|
|
|
3153
3359
|
// Inline function 'org.khronos.webgl.toInt8Array' call
|
|
3154
3360
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
3155
3361
|
// Inline function 'kotlin.js.asDynamic' call
|
|
3156
|
-
tmp = decoder.
|
|
3362
|
+
tmp = decoder.d1s(array);
|
|
3157
3363
|
} catch ($p) {
|
|
3158
3364
|
var tmp_0;
|
|
3159
3365
|
if ($p instanceof Error) {
|
|
@@ -3175,11 +3381,11 @@ function encodeImpl(_this__u8e3s4, input, fromIndex, toIndex, dst) {
|
|
|
3175
3381
|
var message = 'Failed requirement.';
|
|
3176
3382
|
throw IllegalArgumentException_init_$Create$(toString_1(message));
|
|
3177
3383
|
}
|
|
3178
|
-
if (get_charset_0(_this__u8e3s4).equals(Charsets_getInstance().
|
|
3384
|
+
if (get_charset_0(_this__u8e3s4).equals(Charsets_getInstance().k1r_1)) {
|
|
3179
3385
|
return encodeISO88591(input, fromIndex, toIndex, dst);
|
|
3180
3386
|
}
|
|
3181
3387
|
// Inline function 'kotlin.require' call
|
|
3182
|
-
if (!(get_charset_0(_this__u8e3s4) === Charsets_getInstance().
|
|
3388
|
+
if (!(get_charset_0(_this__u8e3s4) === Charsets_getInstance().j1r_1)) {
|
|
3183
3389
|
var message_0 = 'Only UTF-8 encoding is supported in JS';
|
|
3184
3390
|
throw IllegalArgumentException_init_$Create$(toString_1(message_0));
|
|
3185
3391
|
}
|
|
@@ -3189,7 +3395,7 @@ function encodeImpl(_this__u8e3s4, input, fromIndex, toIndex, dst) {
|
|
|
3189
3395
|
var result = encoder.encode(tmp$ret$5);
|
|
3190
3396
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
3191
3397
|
// Inline function 'kotlin.js.asDynamic' call
|
|
3192
|
-
dst.
|
|
3398
|
+
dst.jq(result);
|
|
3193
3399
|
return result.length;
|
|
3194
3400
|
}
|
|
3195
3401
|
function encodeToByteArray_0(_this__u8e3s4, input, fromIndex, toIndex) {
|
|
@@ -3200,17 +3406,17 @@ function encodeToByteArray_0(_this__u8e3s4, input, fromIndex, toIndex) {
|
|
|
3200
3406
|
function CharsetImpl(name) {
|
|
3201
3407
|
Charset.call(this, name);
|
|
3202
3408
|
}
|
|
3203
|
-
protoOf(CharsetImpl).
|
|
3409
|
+
protoOf(CharsetImpl).m1r = function () {
|
|
3204
3410
|
return new CharsetEncoderImpl(this);
|
|
3205
3411
|
};
|
|
3206
|
-
protoOf(CharsetImpl).
|
|
3412
|
+
protoOf(CharsetImpl).a1s = function () {
|
|
3207
3413
|
return new CharsetDecoderImpl(this);
|
|
3208
3414
|
};
|
|
3209
3415
|
function get_charset(_this__u8e3s4) {
|
|
3210
|
-
return _this__u8e3s4.
|
|
3416
|
+
return _this__u8e3s4.b1s_1;
|
|
3211
3417
|
}
|
|
3212
3418
|
function get_charset_0(_this__u8e3s4) {
|
|
3213
|
-
return _this__u8e3s4.
|
|
3419
|
+
return _this__u8e3s4.c1s_1;
|
|
3214
3420
|
}
|
|
3215
3421
|
function encodeToByteArrayImpl(_this__u8e3s4, input, fromIndex, toIndex) {
|
|
3216
3422
|
fromIndex = fromIndex === VOID ? 0 : fromIndex;
|
|
@@ -3229,39 +3435,39 @@ function encodeToByteArrayImpl(_this__u8e3s4, input, fromIndex, toIndex) {
|
|
|
3229
3435
|
}
|
|
3230
3436
|
function CharsetEncoderImpl(charset) {
|
|
3231
3437
|
CharsetEncoder.call(this, charset);
|
|
3232
|
-
this.
|
|
3438
|
+
this.g1s_1 = charset;
|
|
3233
3439
|
}
|
|
3234
3440
|
protoOf(CharsetEncoderImpl).toString = function () {
|
|
3235
|
-
return 'CharsetEncoderImpl(charset=' + this.
|
|
3441
|
+
return 'CharsetEncoderImpl(charset=' + this.g1s_1.toString() + ')';
|
|
3236
3442
|
};
|
|
3237
3443
|
protoOf(CharsetEncoderImpl).hashCode = function () {
|
|
3238
|
-
return this.
|
|
3444
|
+
return this.g1s_1.hashCode();
|
|
3239
3445
|
};
|
|
3240
3446
|
protoOf(CharsetEncoderImpl).equals = function (other) {
|
|
3241
3447
|
if (this === other)
|
|
3242
3448
|
return true;
|
|
3243
3449
|
if (!(other instanceof CharsetEncoderImpl))
|
|
3244
3450
|
return false;
|
|
3245
|
-
if (!this.
|
|
3451
|
+
if (!this.g1s_1.equals(other.g1s_1))
|
|
3246
3452
|
return false;
|
|
3247
3453
|
return true;
|
|
3248
3454
|
};
|
|
3249
3455
|
function CharsetDecoderImpl(charset) {
|
|
3250
3456
|
CharsetDecoder.call(this, charset);
|
|
3251
|
-
this.
|
|
3457
|
+
this.i1s_1 = charset;
|
|
3252
3458
|
}
|
|
3253
3459
|
protoOf(CharsetDecoderImpl).toString = function () {
|
|
3254
|
-
return 'CharsetDecoderImpl(charset=' + this.
|
|
3460
|
+
return 'CharsetDecoderImpl(charset=' + this.i1s_1.toString() + ')';
|
|
3255
3461
|
};
|
|
3256
3462
|
protoOf(CharsetDecoderImpl).hashCode = function () {
|
|
3257
|
-
return this.
|
|
3463
|
+
return this.i1s_1.hashCode();
|
|
3258
3464
|
};
|
|
3259
3465
|
protoOf(CharsetDecoderImpl).equals = function (other) {
|
|
3260
3466
|
if (this === other)
|
|
3261
3467
|
return true;
|
|
3262
3468
|
if (!(other instanceof CharsetDecoderImpl))
|
|
3263
3469
|
return false;
|
|
3264
|
-
if (!this.
|
|
3470
|
+
if (!this.i1s_1.equals(other.i1s_1))
|
|
3265
3471
|
return false;
|
|
3266
3472
|
return true;
|
|
3267
3473
|
};
|
|
@@ -3295,10 +3501,10 @@ function textDecoderOptions(fatal) {
|
|
|
3295
3501
|
return this_0;
|
|
3296
3502
|
}
|
|
3297
3503
|
function toKtor$1($this_toKtor) {
|
|
3298
|
-
this.
|
|
3504
|
+
this.j1s_1 = $this_toKtor;
|
|
3299
3505
|
}
|
|
3300
|
-
protoOf(toKtor$1).
|
|
3301
|
-
return this.
|
|
3506
|
+
protoOf(toKtor$1).d1s = function (buffer) {
|
|
3507
|
+
return this.j1s_1.decode(buffer);
|
|
3302
3508
|
};
|
|
3303
3509
|
function get_ENCODING_ALIASES() {
|
|
3304
3510
|
_init_properties_TextDecoderFallback_js_kt__an7r6m();
|
|
@@ -3311,7 +3517,7 @@ function get_REPLACEMENT() {
|
|
|
3311
3517
|
}
|
|
3312
3518
|
var REPLACEMENT;
|
|
3313
3519
|
function TextDecoderFallback(encoding, fatal) {
|
|
3314
|
-
this.
|
|
3520
|
+
this.k1s_1 = fatal;
|
|
3315
3521
|
// Inline function 'kotlin.text.trim' call
|
|
3316
3522
|
// Inline function 'kotlin.text.lowercase' call
|
|
3317
3523
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -3322,7 +3528,7 @@ function TextDecoderFallback(encoding, fatal) {
|
|
|
3322
3528
|
throw IllegalStateException_init_$Create$(toString_1(message));
|
|
3323
3529
|
}
|
|
3324
3530
|
}
|
|
3325
|
-
protoOf(TextDecoderFallback).
|
|
3531
|
+
protoOf(TextDecoderFallback).d1s = function (buffer) {
|
|
3326
3532
|
// Inline function 'io.ktor.utils.io.core.buildPacket' call
|
|
3327
3533
|
var builder = new Buffer();
|
|
3328
3534
|
var bytes = buffer instanceof Int8Array ? buffer : THROW_CCE();
|
|
@@ -3338,7 +3544,7 @@ protoOf(TextDecoderFallback).j1r = function (buffer) {
|
|
|
3338
3544
|
var point = toCodePoint(byte);
|
|
3339
3545
|
if (point < 0) {
|
|
3340
3546
|
// Inline function 'kotlin.check' call
|
|
3341
|
-
if (!!this.
|
|
3547
|
+
if (!!this.k1s_1) {
|
|
3342
3548
|
var message = 'Invalid character: ' + point;
|
|
3343
3549
|
throw IllegalStateException_init_$Create$(toString_1(message));
|
|
3344
3550
|
}
|
|
@@ -3346,9 +3552,9 @@ protoOf(TextDecoderFallback).j1r = function (buffer) {
|
|
|
3346
3552
|
continue $l$loop;
|
|
3347
3553
|
}
|
|
3348
3554
|
if (point > 255) {
|
|
3349
|
-
builder.
|
|
3555
|
+
builder.qq(toByte(point >> 8));
|
|
3350
3556
|
}
|
|
3351
|
-
builder.
|
|
3557
|
+
builder.qq(toByte(point & 255));
|
|
3352
3558
|
}
|
|
3353
3559
|
while (inductionVariable < last);
|
|
3354
3560
|
return decodeToString(readByteArray_0(builder));
|
|
@@ -3374,11 +3580,25 @@ function _init_properties_TextDecoderFallback_js_kt__an7r6m() {
|
|
|
3374
3580
|
REPLACEMENT = new Int8Array([-17, -65, -67]);
|
|
3375
3581
|
}
|
|
3376
3582
|
}
|
|
3583
|
+
function readText_0(_this__u8e3s4, charset, max) {
|
|
3584
|
+
charset = charset === VOID ? Charsets_getInstance().j1r_1 : charset;
|
|
3585
|
+
max = max === VOID ? 2147483647 : max;
|
|
3586
|
+
if (charset.equals(Charsets_getInstance().j1r_1)) {
|
|
3587
|
+
if (max === 2147483647)
|
|
3588
|
+
return readString_1(_this__u8e3s4);
|
|
3589
|
+
var tmp0 = _this__u8e3s4.wo().g1();
|
|
3590
|
+
// Inline function 'kotlin.math.min' call
|
|
3591
|
+
var b = fromInt(max);
|
|
3592
|
+
var count = tmp0 <= b ? tmp0 : b;
|
|
3593
|
+
return readString(_this__u8e3s4, count);
|
|
3594
|
+
}
|
|
3595
|
+
return decode(charset.a1s(), _this__u8e3s4, max);
|
|
3596
|
+
}
|
|
3377
3597
|
function get_DEVELOPMENT_MODE() {
|
|
3378
3598
|
return false;
|
|
3379
3599
|
}
|
|
3380
3600
|
function ioDispatcher() {
|
|
3381
|
-
return Dispatchers_getInstance().
|
|
3601
|
+
return Dispatchers_getInstance().x12_1;
|
|
3382
3602
|
}
|
|
3383
3603
|
function encodeISO88591(input, fromIndex, toIndex, dst) {
|
|
3384
3604
|
if (fromIndex >= toIndex)
|
|
@@ -3394,7 +3614,7 @@ function encodeISO88591(input, fromIndex, toIndex, dst) {
|
|
|
3394
3614
|
if (character > 255) {
|
|
3395
3615
|
failedToMapError(character);
|
|
3396
3616
|
}
|
|
3397
|
-
dst.
|
|
3617
|
+
dst.qq(toByte(character));
|
|
3398
3618
|
}
|
|
3399
3619
|
while (inductionVariable < toIndex);
|
|
3400
3620
|
return toIndex - fromIndex | 0;
|
|
@@ -3416,93 +3636,93 @@ function _init_properties_Win1252Table_kt__tl0v64() {
|
|
|
3416
3636
|
}
|
|
3417
3637
|
}
|
|
3418
3638
|
function DefaultPool(capacity) {
|
|
3419
|
-
this.
|
|
3639
|
+
this.r1r_1 = capacity;
|
|
3420
3640
|
var tmp = this;
|
|
3421
3641
|
// Inline function 'kotlin.arrayOfNulls' call
|
|
3422
|
-
var size = this.
|
|
3423
|
-
tmp.
|
|
3424
|
-
this.
|
|
3642
|
+
var size = this.r1r_1;
|
|
3643
|
+
tmp.s1r_1 = Array(size);
|
|
3644
|
+
this.t1r_1 = 0;
|
|
3425
3645
|
}
|
|
3426
|
-
protoOf(DefaultPool).
|
|
3646
|
+
protoOf(DefaultPool).u1r = function (instance) {
|
|
3427
3647
|
};
|
|
3428
|
-
protoOf(DefaultPool).
|
|
3648
|
+
protoOf(DefaultPool).v1r = function (instance) {
|
|
3429
3649
|
return instance;
|
|
3430
3650
|
};
|
|
3431
|
-
protoOf(DefaultPool).
|
|
3651
|
+
protoOf(DefaultPool).w1r = function (instance) {
|
|
3432
3652
|
};
|
|
3433
|
-
protoOf(DefaultPool).
|
|
3434
|
-
if (this.
|
|
3435
|
-
return this.
|
|
3436
|
-
this.
|
|
3437
|
-
var idx = this.
|
|
3438
|
-
var tmp = this.
|
|
3653
|
+
protoOf(DefaultPool).x1r = function () {
|
|
3654
|
+
if (this.t1r_1 === 0)
|
|
3655
|
+
return this.q1r();
|
|
3656
|
+
this.t1r_1 = this.t1r_1 - 1 | 0;
|
|
3657
|
+
var idx = this.t1r_1;
|
|
3658
|
+
var tmp = this.s1r_1[idx];
|
|
3439
3659
|
var instance = !(tmp == null) ? tmp : THROW_CCE();
|
|
3440
|
-
this.
|
|
3441
|
-
return this.
|
|
3660
|
+
this.s1r_1[idx] = null;
|
|
3661
|
+
return this.v1r(instance);
|
|
3442
3662
|
};
|
|
3443
|
-
protoOf(DefaultPool).
|
|
3444
|
-
this.
|
|
3445
|
-
if (this.
|
|
3446
|
-
this.
|
|
3663
|
+
protoOf(DefaultPool).y1r = function (instance) {
|
|
3664
|
+
this.w1r(instance);
|
|
3665
|
+
if (this.t1r_1 === this.r1r_1) {
|
|
3666
|
+
this.u1r(instance);
|
|
3447
3667
|
} else {
|
|
3448
|
-
var _unary__edvuaz = this.
|
|
3449
|
-
this.
|
|
3450
|
-
this.
|
|
3668
|
+
var _unary__edvuaz = this.t1r_1;
|
|
3669
|
+
this.t1r_1 = _unary__edvuaz + 1 | 0;
|
|
3670
|
+
this.s1r_1[_unary__edvuaz] = instance;
|
|
3451
3671
|
}
|
|
3452
3672
|
};
|
|
3453
|
-
protoOf(DefaultPool).
|
|
3673
|
+
protoOf(DefaultPool).tv = function () {
|
|
3454
3674
|
var inductionVariable = 0;
|
|
3455
|
-
var last = this.
|
|
3675
|
+
var last = this.t1r_1;
|
|
3456
3676
|
if (inductionVariable < last)
|
|
3457
3677
|
do {
|
|
3458
3678
|
var i = inductionVariable;
|
|
3459
3679
|
inductionVariable = inductionVariable + 1 | 0;
|
|
3460
|
-
var tmp = this.
|
|
3680
|
+
var tmp = this.s1r_1[i];
|
|
3461
3681
|
var instance = !(tmp == null) ? tmp : THROW_CCE();
|
|
3462
|
-
this.
|
|
3463
|
-
this.
|
|
3682
|
+
this.s1r_1[i] = null;
|
|
3683
|
+
this.u1r(instance);
|
|
3464
3684
|
}
|
|
3465
3685
|
while (inductionVariable < last);
|
|
3466
|
-
this.
|
|
3686
|
+
this.t1r_1 = 0;
|
|
3467
3687
|
};
|
|
3468
3688
|
//region block: post-declaration
|
|
3469
|
-
protoOf(Read).
|
|
3470
|
-
protoOf(Read).
|
|
3471
|
-
protoOf(Write).
|
|
3472
|
-
protoOf(Write).
|
|
3473
|
-
protoOf(ByteChannel).
|
|
3474
|
-
protoOf(ByteReadChannel$Companion$Empty$1).
|
|
3475
|
-
protoOf(CountedByteReadChannel).
|
|
3476
|
-
protoOf(SourceByteReadChannel).
|
|
3689
|
+
protoOf(Read).a1f = resume;
|
|
3690
|
+
protoOf(Read).b1f = resume_0;
|
|
3691
|
+
protoOf(Write).a1f = resume;
|
|
3692
|
+
protoOf(Write).b1f = resume_0;
|
|
3693
|
+
protoOf(ByteChannel).g1h = awaitContent$default;
|
|
3694
|
+
protoOf(ByteReadChannel$Companion$Empty$1).g1h = awaitContent$default;
|
|
3695
|
+
protoOf(CountedByteReadChannel).g1h = awaitContent$default;
|
|
3696
|
+
protoOf(SourceByteReadChannel).g1h = awaitContent$default;
|
|
3477
3697
|
protoOf(DefaultPool).j4 = close;
|
|
3478
3698
|
protoOf(NoPoolImpl).j4 = close;
|
|
3479
3699
|
//endregion
|
|
3480
3700
|
//region block: init
|
|
3481
3701
|
Empty_instance = new Empty();
|
|
3482
|
-
|
|
3702
|
+
Companion_instance_2 = new Companion_1();
|
|
3703
|
+
Companion_instance_4 = new Companion_3();
|
|
3483
3704
|
//endregion
|
|
3484
3705
|
//region block: exports
|
|
3485
3706
|
export {
|
|
3486
|
-
|
|
3487
|
-
|
|
3488
|
-
|
|
3489
|
-
|
|
3490
|
-
|
|
3491
|
-
|
|
3492
|
-
|
|
3493
|
-
|
|
3494
|
-
|
|
3495
|
-
|
|
3496
|
-
|
|
3497
|
-
|
|
3498
|
-
|
|
3499
|
-
|
|
3500
|
-
|
|
3707
|
+
LineEndingMode__plus_impl_ttpz2j as LineEndingMode__plus_impl_ttpz2j3u2ebrlepd29o,
|
|
3708
|
+
Charsets_getInstance as Charsets_getInstance3jooo7e4x0j2x,
|
|
3709
|
+
Companion_getInstance_0 as Companion_getInstance25751un9ltd4f,
|
|
3710
|
+
Companion_getInstance_2 as Companion_getInstance33j3lym6q7yx7,
|
|
3711
|
+
copyTo as copyTo1e8cxw3cmqjst,
|
|
3712
|
+
copyTo_0 as copyTo3qvfg88wirbvt,
|
|
3713
|
+
readAvailable as readAvailable2yaaricqompas,
|
|
3714
|
+
readLineStrictTo as readLineStrictTo30g42df56og5l,
|
|
3715
|
+
readPacket as readPacket25aqlhslm04t6,
|
|
3716
|
+
readRemaining as readRemaining1kbpbgdrq25q1,
|
|
3717
|
+
readUntil as readUntil13nwpwqdlw2vo,
|
|
3718
|
+
skipIfFound as skipIfFound2z2la3mzzpubl,
|
|
3719
|
+
toByteArray as toByteArray1nbmiiav9igm0,
|
|
3720
|
+
writeFully as writeFullyuc6cd2hh6ex3,
|
|
3721
|
+
writePacket as writePacket3icztho1wkb6k,
|
|
3501
3722
|
MalformedInputException as MalformedInputExceptionbvc6h5ij0ias,
|
|
3502
3723
|
decode as decode1t43jmuxrxpmo,
|
|
3503
3724
|
encode as encode35e4rpnc94tb5,
|
|
3504
3725
|
forName as forName2faodmskqnoz5,
|
|
3505
|
-
isSupported as isSupported2nf870ypy50et,
|
|
3506
3726
|
get_name as get_name2f11g4r0d5pxp,
|
|
3507
3727
|
BytePacketBuilder as BytePacketBuilder2biodf4wxvlba,
|
|
3508
3728
|
build as buildjygoh729rhy8,
|
|
@@ -3519,18 +3739,21 @@ export {
|
|
|
3519
3739
|
DefaultPool as DefaultPool2gb1fm4epwgu9,
|
|
3520
3740
|
NoPoolImpl as NoPoolImplgos9n8jphzjp,
|
|
3521
3741
|
ByteChannel as ByteChannel3cxdguezl3lu7,
|
|
3742
|
+
ByteReadChannel_0 as ByteReadChannel2ndu7k90iil3s,
|
|
3522
3743
|
ByteReadChannel as ByteReadChannel1cb89sbyipkce,
|
|
3523
3744
|
ByteReadChannel_1 as ByteReadChannel2wzou76jce72d,
|
|
3524
3745
|
ClosedByteChannelException as ClosedByteChannelException3il8gfpye60w,
|
|
3525
3746
|
WriterScope as WriterScope3b0bo1enaee6b,
|
|
3747
|
+
attachWriterJob as attachWriterJob2dr3tee7atoa9,
|
|
3526
3748
|
cancel_0 as canceldn4b3cdqcfny,
|
|
3527
3749
|
close_0 as close3semq7pafb42g,
|
|
3528
3750
|
counted as counted3iniv3aql3f9n,
|
|
3529
3751
|
invokeOnCompletion as invokeOnCompletion1ziuxzoag0iwj,
|
|
3530
3752
|
ioDispatcher as ioDispatcher3b9pa3x0duop,
|
|
3531
3753
|
readText as readText3frapgncbqrcg,
|
|
3754
|
+
rethrowCloseCauseIfNeeded as rethrowCloseCauseIfNeeded3ixo8wl4o3bz4,
|
|
3532
3755
|
writer as writer1eia5its2a1fh,
|
|
3533
3756
|
};
|
|
3534
3757
|
//endregion
|
|
3535
3758
|
|
|
3536
|
-
|
|
3759
|
+
//# sourceMappingURL=ktor-ktor-io.mjs.map
|