@doordeck/doordeck-headless-sdk 0.105.0 → 0.106.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/kotlin/Kermit-kermit-core.js +316 -0
- package/kotlin/Kermit-kermit.js +51 -0
- package/kotlin/Kotlin-DateTime-library-kotlinx-datetime.js +1400 -1400
- package/kotlin/KotlinMultiplatformLibsodium-multiplatform-crypto-libsodium-bindings.js +17 -17
- package/kotlin/MultiplatformSettings-multiplatform-settings.js +10 -10
- package/kotlin/doordeck-sdk.d.ts +4 -2
- package/kotlin/doordeck-sdk.js +9905 -9672
- package/kotlin/kotlin-kotlin-stdlib.js +173 -164
- package/kotlin/kotlinx-atomicfu.js +13 -13
- package/kotlin/kotlinx-coroutines-core.js +2087 -1905
- package/kotlin/kotlinx-io-kotlinx-io-bytestring.js +32 -32
- package/kotlin/kotlinx-io-kotlinx-io-core.js +427 -427
- package/kotlin/kotlinx-serialization-kotlinx-serialization-core.js +1738 -1738
- package/kotlin/kotlinx-serialization-kotlinx-serialization-json.js +1346 -1346
- package/kotlin/ktor-ktor-client-ktor-client-core.js +2314 -1913
- package/kotlin/ktor-ktor-client-ktor-client-plugins-ktor-client-auth.js +254 -254
- package/kotlin/ktor-ktor-client-ktor-client-plugins-ktor-client-content-negotiation.js +151 -151
- package/kotlin/ktor-ktor-client-ktor-client-plugins-ktor-client-logging.js +3131 -2
- package/kotlin/ktor-ktor-http-ktor-http-cio.js +350 -350
- package/kotlin/ktor-ktor-http.js +730 -715
- package/kotlin/ktor-ktor-io.js +805 -630
- package/kotlin/ktor-ktor-shared-ktor-events.js +9 -9
- package/kotlin/ktor-ktor-shared-ktor-serialization-ktor-serialization-kotlinx-ktor-serialization-kotlinx-json.js +7 -7
- package/kotlin/ktor-ktor-shared-ktor-serialization-ktor-serialization-kotlinx.js +146 -146
- package/kotlin/ktor-ktor-shared-ktor-serialization.js +68 -68
- package/kotlin/ktor-ktor-shared-ktor-websockets.js +40 -40
- package/kotlin/ktor-ktor-utils.js +1182 -577
- package/package.json +1 -1
package/kotlin/ktor-ktor-io.js
CHANGED
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
var toLong = kotlin_kotlin.$_$.wb;
|
|
25
25
|
var numberToLong = kotlin_kotlin.$_$.sb;
|
|
26
26
|
var intercepted = kotlin_kotlin.$_$.i9;
|
|
27
|
-
var CancellableContinuationImpl = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.
|
|
27
|
+
var CancellableContinuationImpl = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.t;
|
|
28
28
|
var noWhenBranchMatchedException = kotlin_kotlin.$_$.rg;
|
|
29
29
|
var returnIfSuspended = kotlin_kotlin.$_$.m;
|
|
30
30
|
var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.f9;
|
|
@@ -45,18 +45,18 @@
|
|
|
45
45
|
var IllegalStateException_init_$Create$ = kotlin_kotlin.$_$.a2;
|
|
46
46
|
var readByteString = kotlin_org_jetbrains_kotlinx_kotlinx_io_core.$_$.k;
|
|
47
47
|
var EmptyCoroutineContext_getInstance = kotlin_kotlin.$_$.s4;
|
|
48
|
-
var CoroutineScope = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.
|
|
49
|
-
var launch = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.
|
|
50
|
-
var startCoroutineCancellable = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.
|
|
48
|
+
var CoroutineScope = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.a1;
|
|
49
|
+
var launch = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.k1;
|
|
50
|
+
var startCoroutineCancellable = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.q;
|
|
51
51
|
var Continuation = kotlin_kotlin.$_$.p9;
|
|
52
52
|
var initMetadataForFunctionReference = kotlin_kotlin.$_$.va;
|
|
53
|
-
var get_job = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.
|
|
54
|
-
var Job = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.
|
|
55
|
-
var cancel = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.
|
|
53
|
+
var get_job = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.j1;
|
|
54
|
+
var Job = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.c1;
|
|
55
|
+
var cancel = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.i1;
|
|
56
56
|
var initMetadataForLambda = kotlin_kotlin.$_$.xa;
|
|
57
57
|
var CancellationException_init_$Create$ = kotlin_kotlin.$_$.f1;
|
|
58
58
|
var CancellationException = kotlin_kotlin.$_$.e9;
|
|
59
|
-
var CopyableThrowable = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.
|
|
59
|
+
var CopyableThrowable = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.x;
|
|
60
60
|
var readString_0 = kotlin_org_jetbrains_kotlinx_kotlinx_io_core.$_$.l;
|
|
61
61
|
var IOException = kotlin_org_jetbrains_kotlinx_kotlinx_io_core.$_$.g;
|
|
62
62
|
var IOException_init_$Init$ = kotlin_org_jetbrains_kotlinx_kotlinx_io_core.$_$.d;
|
|
@@ -90,10 +90,10 @@
|
|
|
90
90
|
initMetadataForObject(Empty, 'Empty');
|
|
91
91
|
initMetadataForClass(Closed, 'Closed');
|
|
92
92
|
function resume() {
|
|
93
|
-
return this.
|
|
93
|
+
return this.p1k().r9(Companion_getInstance().m1k_1);
|
|
94
94
|
}
|
|
95
95
|
function resume_0(throwable) {
|
|
96
|
-
var tmp = this.
|
|
96
|
+
var tmp = this.p1k();
|
|
97
97
|
var tmp_0;
|
|
98
98
|
if (throwable == null) {
|
|
99
99
|
tmp_0 = null;
|
|
@@ -104,7 +104,7 @@
|
|
|
104
104
|
tmp_0 = new Result(tmp$ret$2);
|
|
105
105
|
}
|
|
106
106
|
var tmp1_elvis_lhs = tmp_0;
|
|
107
|
-
return tmp.r9(tmp1_elvis_lhs == null ? Companion_getInstance().
|
|
107
|
+
return tmp.r9(tmp1_elvis_lhs == null ? Companion_getInstance().m1k_1 : tmp1_elvis_lhs.pl_1);
|
|
108
108
|
}
|
|
109
109
|
initMetadataForInterface(Task, 'Task');
|
|
110
110
|
initMetadataForClass(Read, 'Read', VOID, VOID, [Task]);
|
|
@@ -114,7 +114,7 @@
|
|
|
114
114
|
initMetadataForCoroutine($flushAndCloseCOROUTINE$2, CoroutineImpl);
|
|
115
115
|
function awaitContent$default(min, $completion, $super) {
|
|
116
116
|
min = min === VOID ? 1 : min;
|
|
117
|
-
return $super === VOID ? this.
|
|
117
|
+
return $super === VOID ? this.b1n(min, $completion) : $super.b1n.call(this, min, $completion);
|
|
118
118
|
}
|
|
119
119
|
initMetadataForInterface(ByteReadChannel_1, 'ByteReadChannel', VOID, VOID, VOID, [1]);
|
|
120
120
|
initMetadataForClass(ByteChannel, 'ByteChannel', ByteChannel, VOID, [ByteReadChannel_1], [1, 0]);
|
|
@@ -127,8 +127,10 @@
|
|
|
127
127
|
initMetadataForCoroutine($readAvailableCOROUTINE$7, CoroutineImpl);
|
|
128
128
|
initMetadataForCoroutine($toByteArrayCOROUTINE$9, CoroutineImpl);
|
|
129
129
|
initMetadataForCoroutine($copyToCOROUTINE$10, CoroutineImpl);
|
|
130
|
+
initMetadataForCoroutine($copyToCOROUTINE$11, CoroutineImpl);
|
|
130
131
|
initMetadataForCoroutine($readBufferCOROUTINE$12, CoroutineImpl);
|
|
131
132
|
initMetadataForCoroutine($readUTF8LineToCOROUTINE$13, CoroutineImpl);
|
|
133
|
+
initMetadataForCoroutine($readRemainingCOROUTINE$14, CoroutineImpl);
|
|
132
134
|
initMetadataForCoroutine($skipIfFoundCOROUTINE$15, CoroutineImpl);
|
|
133
135
|
initMetadataForCoroutine($readUntilCOROUTINE$16, CoroutineImpl);
|
|
134
136
|
initMetadataForCoroutine($peekCOROUTINE$17, CoroutineImpl);
|
|
@@ -153,7 +155,7 @@
|
|
|
153
155
|
initMetadataForClass(MalformedInputException, 'MalformedInputException', VOID, IOException);
|
|
154
156
|
initMetadataForClass(TooLongLineException, 'TooLongLineException', VOID, MalformedInputException);
|
|
155
157
|
function close() {
|
|
156
|
-
this.
|
|
158
|
+
this.lr();
|
|
157
159
|
}
|
|
158
160
|
initMetadataForInterface(ObjectPool, 'ObjectPool', VOID, VOID, [AutoCloseable]);
|
|
159
161
|
initMetadataForClass(DefaultPool, 'DefaultPool', VOID, VOID, [ObjectPool]);
|
|
@@ -172,10 +174,10 @@
|
|
|
172
174
|
//endregion
|
|
173
175
|
function Companion() {
|
|
174
176
|
Companion_instance_0 = this;
|
|
175
|
-
this.
|
|
177
|
+
this.l1k_1 = new Closed(null);
|
|
176
178
|
var tmp = this;
|
|
177
179
|
// Inline function 'kotlin.Companion.success' call
|
|
178
|
-
tmp.
|
|
180
|
+
tmp.m1k_1 = _Result___init__impl__xyqfz8(Unit_instance);
|
|
179
181
|
}
|
|
180
182
|
var Companion_instance_0;
|
|
181
183
|
function Companion_getInstance() {
|
|
@@ -204,13 +206,13 @@
|
|
|
204
206
|
return Empty_instance;
|
|
205
207
|
}
|
|
206
208
|
function Closed(cause) {
|
|
207
|
-
this.
|
|
209
|
+
this.n1k_1 = cause;
|
|
208
210
|
}
|
|
209
211
|
protoOf(Closed).toString = function () {
|
|
210
|
-
return 'Closed(cause=' + toString(this.
|
|
212
|
+
return 'Closed(cause=' + toString(this.n1k_1) + ')';
|
|
211
213
|
};
|
|
212
214
|
protoOf(Closed).hashCode = function () {
|
|
213
|
-
return this.
|
|
215
|
+
return this.n1k_1 == null ? 0 : hashCode(this.n1k_1);
|
|
214
216
|
};
|
|
215
217
|
protoOf(Closed).equals = function (other) {
|
|
216
218
|
if (this === other)
|
|
@@ -218,74 +220,74 @@
|
|
|
218
220
|
if (!(other instanceof Closed))
|
|
219
221
|
return false;
|
|
220
222
|
var tmp0_other_with_cast = other instanceof Closed ? other : THROW_CCE();
|
|
221
|
-
if (!equals(this.
|
|
223
|
+
if (!equals(this.n1k_1, tmp0_other_with_cast.n1k_1))
|
|
222
224
|
return false;
|
|
223
225
|
return true;
|
|
224
226
|
};
|
|
225
227
|
function Task() {
|
|
226
228
|
}
|
|
227
229
|
function Read(continuation) {
|
|
228
|
-
this.
|
|
229
|
-
this.
|
|
230
|
+
this.t1k_1 = continuation;
|
|
231
|
+
this.u1k_1 = null;
|
|
230
232
|
if (get_DEVELOPMENT_MODE()) {
|
|
231
233
|
var tmp = this;
|
|
232
234
|
// Inline function 'kotlin.also' call
|
|
233
|
-
var this_0 = newThrowable('ReadTask 0x' + toString_0(hashCode(this.
|
|
235
|
+
var this_0 = newThrowable('ReadTask 0x' + toString_0(hashCode(this.t1k_1), 16));
|
|
234
236
|
stackTraceToString(this_0);
|
|
235
|
-
tmp.
|
|
237
|
+
tmp.u1k_1 = this_0;
|
|
236
238
|
}
|
|
237
239
|
}
|
|
238
|
-
protoOf(Read).
|
|
239
|
-
return this.
|
|
240
|
+
protoOf(Read).p1k = function () {
|
|
241
|
+
return this.t1k_1;
|
|
240
242
|
};
|
|
241
|
-
protoOf(Read).
|
|
242
|
-
return this.
|
|
243
|
+
protoOf(Read).o1k = function () {
|
|
244
|
+
return this.u1k_1;
|
|
243
245
|
};
|
|
244
|
-
protoOf(Read).
|
|
246
|
+
protoOf(Read).q1k = function () {
|
|
245
247
|
return 'read';
|
|
246
248
|
};
|
|
247
249
|
function Write(continuation) {
|
|
248
|
-
this.
|
|
249
|
-
this.
|
|
250
|
+
this.v1k_1 = continuation;
|
|
251
|
+
this.w1k_1 = null;
|
|
250
252
|
if (get_DEVELOPMENT_MODE()) {
|
|
251
253
|
var tmp = this;
|
|
252
254
|
// Inline function 'kotlin.also' call
|
|
253
|
-
var this_0 = newThrowable('WriteTask 0x' + toString_0(hashCode(this.
|
|
255
|
+
var this_0 = newThrowable('WriteTask 0x' + toString_0(hashCode(this.v1k_1), 16));
|
|
254
256
|
stackTraceToString(this_0);
|
|
255
|
-
tmp.
|
|
257
|
+
tmp.w1k_1 = this_0;
|
|
256
258
|
}
|
|
257
259
|
}
|
|
258
|
-
protoOf(Write).
|
|
259
|
-
return this.
|
|
260
|
+
protoOf(Write).p1k = function () {
|
|
261
|
+
return this.v1k_1;
|
|
260
262
|
};
|
|
261
|
-
protoOf(Write).
|
|
262
|
-
return this.
|
|
263
|
+
protoOf(Write).o1k = function () {
|
|
264
|
+
return this.w1k_1;
|
|
263
265
|
};
|
|
264
|
-
protoOf(Write).
|
|
266
|
+
protoOf(Write).q1k = function () {
|
|
265
267
|
return 'write';
|
|
266
268
|
};
|
|
267
269
|
function moveFlushToReadBuffer($this) {
|
|
268
270
|
// Inline function 'io.ktor.utils.io.locks.synchronized' call
|
|
269
|
-
$this.
|
|
270
|
-
$this.
|
|
271
|
-
$this.
|
|
271
|
+
$this.a1l_1;
|
|
272
|
+
$this.y1k_1.q1i($this.c1l_1);
|
|
273
|
+
$this.z1k_1 = 0;
|
|
272
274
|
// Inline function 'io.ktor.utils.io.ByteChannel.resumeSlot' call
|
|
273
|
-
var current = $this.
|
|
275
|
+
var current = $this.b1l_1.kotlinx$atomicfu$value;
|
|
274
276
|
var tmp;
|
|
275
277
|
if (current instanceof Write) {
|
|
276
|
-
tmp = $this.
|
|
278
|
+
tmp = $this.b1l_1.atomicfu$compareAndSet(current, Empty_instance);
|
|
277
279
|
} else {
|
|
278
280
|
tmp = false;
|
|
279
281
|
}
|
|
280
282
|
if (tmp) {
|
|
281
|
-
current.
|
|
283
|
+
current.r1k();
|
|
282
284
|
}
|
|
283
285
|
}
|
|
284
286
|
function closeSlot($this, cause) {
|
|
285
|
-
var closeContinuation = !(cause == null) ? new Closed(cause) : Companion_getInstance().
|
|
286
|
-
var continuation = $this.
|
|
287
|
+
var closeContinuation = !(cause == null) ? new Closed(cause) : Companion_getInstance().l1k_1;
|
|
288
|
+
var continuation = $this.b1l_1.atomicfu$getAndSet(closeContinuation);
|
|
287
289
|
if (isInterface(continuation, Task)) {
|
|
288
|
-
continuation.
|
|
290
|
+
continuation.s1k(cause);
|
|
289
291
|
}
|
|
290
292
|
}
|
|
291
293
|
function ClosedReadChannelException$_init_$ref_ix0089() {
|
|
@@ -304,8 +306,8 @@
|
|
|
304
306
|
}
|
|
305
307
|
function $awaitContentCOROUTINE$0(_this__u8e3s4, min, resultContinuation) {
|
|
306
308
|
CoroutineImpl.call(this, resultContinuation);
|
|
307
|
-
this.
|
|
308
|
-
this.
|
|
309
|
+
this.n1l_1 = _this__u8e3s4;
|
|
310
|
+
this.o1l_1 = min;
|
|
309
311
|
}
|
|
310
312
|
protoOf($awaitContentCOROUTINE$0).o9 = function () {
|
|
311
313
|
var suspendResult = this.i9_1;
|
|
@@ -315,41 +317,41 @@
|
|
|
315
317
|
switch (tmp) {
|
|
316
318
|
case 0:
|
|
317
319
|
this.h9_1 = 4;
|
|
318
|
-
rethrowCloseCauseIfNeeded_1(this.
|
|
319
|
-
if (this.
|
|
320
|
+
rethrowCloseCauseIfNeeded_1(this.n1l_1);
|
|
321
|
+
if (this.n1l_1.c1l_1.s().e1(toLong(this.o1l_1)) >= 0)
|
|
320
322
|
return true;
|
|
321
323
|
var tmp_0 = this;
|
|
322
|
-
tmp_0.
|
|
323
|
-
this.
|
|
324
|
+
tmp_0.p1l_1 = this.n1l_1;
|
|
325
|
+
this.q1l_1 = this.p1l_1;
|
|
324
326
|
this.g9_1 = 1;
|
|
325
327
|
continue $sm;
|
|
326
328
|
case 1:
|
|
327
|
-
if (!(numberToLong(this.
|
|
329
|
+
if (!(numberToLong(this.n1l_1.z1k_1).z2(this.n1l_1.c1l_1.s()).e1(toLong(this.o1l_1)) < 0 && this.n1l_1.e1l_1.kotlinx$atomicfu$value == null)) {
|
|
328
330
|
this.g9_1 = 3;
|
|
329
331
|
continue $sm;
|
|
330
332
|
}
|
|
331
333
|
|
|
332
334
|
this.g9_1 = 2;
|
|
333
335
|
var cancellable = new CancellableContinuationImpl(intercepted(this), 1);
|
|
334
|
-
cancellable.
|
|
335
|
-
var tmp0 = this.
|
|
336
|
+
cancellable.os();
|
|
337
|
+
var tmp0 = this.q1l_1;
|
|
336
338
|
var tmp1 = new Read(cancellable);
|
|
337
339
|
l$ret$1: do {
|
|
338
|
-
var previous = tmp0.
|
|
340
|
+
var previous = tmp0.b1l_1.kotlinx$atomicfu$value;
|
|
339
341
|
if (!(previous instanceof Closed)) {
|
|
340
|
-
if (!tmp0.
|
|
341
|
-
tmp1.
|
|
342
|
+
if (!tmp0.b1l_1.atomicfu$compareAndSet(previous, tmp1)) {
|
|
343
|
+
tmp1.r1k();
|
|
342
344
|
break l$ret$1;
|
|
343
345
|
}
|
|
344
346
|
}
|
|
345
347
|
if (previous instanceof Read) {
|
|
346
|
-
previous.
|
|
348
|
+
previous.s1k(new ConcurrentIOException(tmp1.q1k(), previous.o1k()));
|
|
347
349
|
} else {
|
|
348
350
|
if (isInterface(previous, Task)) {
|
|
349
|
-
previous.
|
|
351
|
+
previous.r1k();
|
|
350
352
|
} else {
|
|
351
353
|
if (previous instanceof Closed) {
|
|
352
|
-
tmp1.
|
|
354
|
+
tmp1.s1k(previous.n1k_1);
|
|
353
355
|
break l$ret$1;
|
|
354
356
|
} else {
|
|
355
357
|
if (!equals(previous, Empty_instance)) {
|
|
@@ -358,21 +360,21 @@
|
|
|
358
360
|
}
|
|
359
361
|
}
|
|
360
362
|
}
|
|
361
|
-
if (!(numberToLong(this.
|
|
362
|
-
var current = tmp0.
|
|
363
|
+
if (!(numberToLong(this.n1l_1.z1k_1).z2(this.n1l_1.c1l_1.s()).e1(toLong(this.o1l_1)) < 0 && this.n1l_1.e1l_1.kotlinx$atomicfu$value == null)) {
|
|
364
|
+
var current = tmp0.b1l_1.kotlinx$atomicfu$value;
|
|
363
365
|
var tmp_1;
|
|
364
366
|
if (current instanceof Read) {
|
|
365
|
-
tmp_1 = tmp0.
|
|
367
|
+
tmp_1 = tmp0.b1l_1.atomicfu$compareAndSet(current, Empty_instance);
|
|
366
368
|
} else {
|
|
367
369
|
tmp_1 = false;
|
|
368
370
|
}
|
|
369
371
|
if (tmp_1) {
|
|
370
|
-
current.
|
|
372
|
+
current.r1k();
|
|
371
373
|
}
|
|
372
374
|
}
|
|
373
375
|
}
|
|
374
376
|
while (false);
|
|
375
|
-
suspendResult = returnIfSuspended(cancellable.
|
|
377
|
+
suspendResult = returnIfSuspended(cancellable.ps(), this);
|
|
376
378
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
377
379
|
return suspendResult;
|
|
378
380
|
}
|
|
@@ -382,11 +384,11 @@
|
|
|
382
384
|
this.g9_1 = 1;
|
|
383
385
|
continue $sm;
|
|
384
386
|
case 3:
|
|
385
|
-
if (this.
|
|
386
|
-
moveFlushToReadBuffer(this.
|
|
387
|
+
if (this.n1l_1.c1l_1.s().e1(new Long(1048576, 0)) < 0) {
|
|
388
|
+
moveFlushToReadBuffer(this.n1l_1);
|
|
387
389
|
}
|
|
388
390
|
|
|
389
|
-
return this.
|
|
391
|
+
return this.n1l_1.c1l_1.s().e1(toLong(this.o1l_1)) >= 0;
|
|
390
392
|
case 4:
|
|
391
393
|
throw this.j9_1;
|
|
392
394
|
}
|
|
@@ -403,7 +405,7 @@
|
|
|
403
405
|
};
|
|
404
406
|
function $flushCOROUTINE$1(_this__u8e3s4, resultContinuation) {
|
|
405
407
|
CoroutineImpl.call(this, resultContinuation);
|
|
406
|
-
this.
|
|
408
|
+
this.z1l_1 = _this__u8e3s4;
|
|
407
409
|
}
|
|
408
410
|
protoOf($flushCOROUTINE$1).o9 = function () {
|
|
409
411
|
var suspendResult = this.i9_1;
|
|
@@ -413,42 +415,42 @@
|
|
|
413
415
|
switch (tmp) {
|
|
414
416
|
case 0:
|
|
415
417
|
this.h9_1 = 4;
|
|
416
|
-
rethrowCloseCauseIfNeeded_1(this.
|
|
417
|
-
this.
|
|
418
|
-
if (this.
|
|
418
|
+
rethrowCloseCauseIfNeeded_1(this.z1l_1);
|
|
419
|
+
this.z1l_1.c1m();
|
|
420
|
+
if (this.z1l_1.z1k_1 < 1048576)
|
|
419
421
|
return Unit_instance;
|
|
420
422
|
var tmp_0 = this;
|
|
421
|
-
tmp_0.
|
|
422
|
-
this.
|
|
423
|
+
tmp_0.a1m_1 = this.z1l_1;
|
|
424
|
+
this.b1m_1 = this.a1m_1;
|
|
423
425
|
this.g9_1 = 1;
|
|
424
426
|
continue $sm;
|
|
425
427
|
case 1:
|
|
426
|
-
if (!(this.
|
|
428
|
+
if (!(this.z1l_1.z1k_1 >= 1048576 && this.z1l_1.e1l_1.kotlinx$atomicfu$value == null)) {
|
|
427
429
|
this.g9_1 = 3;
|
|
428
430
|
continue $sm;
|
|
429
431
|
}
|
|
430
432
|
|
|
431
433
|
this.g9_1 = 2;
|
|
432
434
|
var cancellable = new CancellableContinuationImpl(intercepted(this), 1);
|
|
433
|
-
cancellable.
|
|
434
|
-
var tmp0 = this.
|
|
435
|
+
cancellable.os();
|
|
436
|
+
var tmp0 = this.b1m_1;
|
|
435
437
|
var tmp1 = new Write(cancellable);
|
|
436
438
|
l$ret$1: do {
|
|
437
|
-
var previous = tmp0.
|
|
439
|
+
var previous = tmp0.b1l_1.kotlinx$atomicfu$value;
|
|
438
440
|
if (!(previous instanceof Closed)) {
|
|
439
|
-
if (!tmp0.
|
|
440
|
-
tmp1.
|
|
441
|
+
if (!tmp0.b1l_1.atomicfu$compareAndSet(previous, tmp1)) {
|
|
442
|
+
tmp1.r1k();
|
|
441
443
|
break l$ret$1;
|
|
442
444
|
}
|
|
443
445
|
}
|
|
444
446
|
if (previous instanceof Write) {
|
|
445
|
-
previous.
|
|
447
|
+
previous.s1k(new ConcurrentIOException(tmp1.q1k(), previous.o1k()));
|
|
446
448
|
} else {
|
|
447
449
|
if (isInterface(previous, Task)) {
|
|
448
|
-
previous.
|
|
450
|
+
previous.r1k();
|
|
449
451
|
} else {
|
|
450
452
|
if (previous instanceof Closed) {
|
|
451
|
-
tmp1.
|
|
453
|
+
tmp1.s1k(previous.n1k_1);
|
|
452
454
|
break l$ret$1;
|
|
453
455
|
} else {
|
|
454
456
|
if (!equals(previous, Empty_instance)) {
|
|
@@ -457,21 +459,21 @@
|
|
|
457
459
|
}
|
|
458
460
|
}
|
|
459
461
|
}
|
|
460
|
-
if (!(this.
|
|
461
|
-
var current = tmp0.
|
|
462
|
+
if (!(this.z1l_1.z1k_1 >= 1048576 && this.z1l_1.e1l_1.kotlinx$atomicfu$value == null)) {
|
|
463
|
+
var current = tmp0.b1l_1.kotlinx$atomicfu$value;
|
|
462
464
|
var tmp_1;
|
|
463
465
|
if (current instanceof Write) {
|
|
464
|
-
tmp_1 = tmp0.
|
|
466
|
+
tmp_1 = tmp0.b1l_1.atomicfu$compareAndSet(current, Empty_instance);
|
|
465
467
|
} else {
|
|
466
468
|
tmp_1 = false;
|
|
467
469
|
}
|
|
468
470
|
if (tmp_1) {
|
|
469
|
-
current.
|
|
471
|
+
current.r1k();
|
|
470
472
|
}
|
|
471
473
|
}
|
|
472
474
|
}
|
|
473
475
|
while (false);
|
|
474
|
-
suspendResult = returnIfSuspended(cancellable.
|
|
476
|
+
suspendResult = returnIfSuspended(cancellable.ps(), this);
|
|
475
477
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
476
478
|
return suspendResult;
|
|
477
479
|
}
|
|
@@ -498,7 +500,7 @@
|
|
|
498
500
|
};
|
|
499
501
|
function $flushAndCloseCOROUTINE$2(_this__u8e3s4, resultContinuation) {
|
|
500
502
|
CoroutineImpl.call(this, resultContinuation);
|
|
501
|
-
this.
|
|
503
|
+
this.l1m_1 = _this__u8e3s4;
|
|
502
504
|
}
|
|
503
505
|
protoOf($flushAndCloseCOROUTINE$2).o9 = function () {
|
|
504
506
|
var suspendResult = this.i9_1;
|
|
@@ -509,16 +511,16 @@
|
|
|
509
511
|
case 0:
|
|
510
512
|
this.h9_1 = 4;
|
|
511
513
|
var tmp_0 = this;
|
|
512
|
-
tmp_0.
|
|
513
|
-
this.
|
|
514
|
+
tmp_0.m1m_1 = this.l1m_1;
|
|
515
|
+
this.n1m_1 = this.m1m_1;
|
|
514
516
|
this.h9_1 = 2;
|
|
515
517
|
var tmp_1 = this;
|
|
516
|
-
tmp_1.
|
|
518
|
+
tmp_1.p1m_1 = Companion_instance;
|
|
517
519
|
var tmp_2 = this;
|
|
518
|
-
tmp_2.
|
|
519
|
-
this.
|
|
520
|
+
tmp_2.q1m_1 = this.n1m_1;
|
|
521
|
+
this.r1m_1 = this.q1m_1;
|
|
520
522
|
this.g9_1 = 1;
|
|
521
|
-
suspendResult = this.
|
|
523
|
+
suspendResult = this.r1m_1.s1m(this);
|
|
522
524
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
523
525
|
return suspendResult;
|
|
524
526
|
}
|
|
@@ -526,8 +528,8 @@
|
|
|
526
528
|
continue $sm;
|
|
527
529
|
case 1:
|
|
528
530
|
var tmp_3 = this;
|
|
529
|
-
this.
|
|
530
|
-
tmp_3.
|
|
531
|
+
this.p1m_1;
|
|
532
|
+
tmp_3.o1m_1 = _Result___init__impl__xyqfz8(Unit_instance);
|
|
531
533
|
this.h9_1 = 4;
|
|
532
534
|
this.g9_1 = 3;
|
|
533
535
|
continue $sm;
|
|
@@ -537,7 +539,7 @@
|
|
|
537
539
|
if (tmp_4 instanceof Error) {
|
|
538
540
|
var e = this.j9_1;
|
|
539
541
|
var tmp_5 = this;
|
|
540
|
-
tmp_5.
|
|
542
|
+
tmp_5.o1m_1 = _Result___init__impl__xyqfz8(createFailure(e));
|
|
541
543
|
this.g9_1 = 3;
|
|
542
544
|
continue $sm;
|
|
543
545
|
} else {
|
|
@@ -546,9 +548,9 @@
|
|
|
546
548
|
|
|
547
549
|
case 3:
|
|
548
550
|
this.h9_1 = 4;
|
|
549
|
-
if (!this.
|
|
551
|
+
if (!this.l1m_1.e1l_1.atomicfu$compareAndSet(null, get_CLOSED()))
|
|
550
552
|
return Unit_instance;
|
|
551
|
-
closeSlot(this.
|
|
553
|
+
closeSlot(this.l1m_1, null);
|
|
552
554
|
return Unit_instance;
|
|
553
555
|
case 4:
|
|
554
556
|
throw this.j9_1;
|
|
@@ -566,101 +568,101 @@
|
|
|
566
568
|
};
|
|
567
569
|
function ByteChannel(autoFlush) {
|
|
568
570
|
autoFlush = autoFlush === VOID ? false : autoFlush;
|
|
569
|
-
this.
|
|
570
|
-
this.
|
|
571
|
-
this.
|
|
572
|
-
this.
|
|
573
|
-
this.
|
|
574
|
-
this.
|
|
575
|
-
this.
|
|
576
|
-
this.
|
|
577
|
-
}
|
|
578
|
-
protoOf(ByteChannel).
|
|
579
|
-
var tmp0_safe_receiver = this.
|
|
571
|
+
this.x1k_1 = autoFlush;
|
|
572
|
+
this.y1k_1 = new Buffer();
|
|
573
|
+
this.z1k_1 = 0;
|
|
574
|
+
this.a1l_1 = new Object();
|
|
575
|
+
this.b1l_1 = atomic$ref$1(Empty_instance);
|
|
576
|
+
this.c1l_1 = new Buffer();
|
|
577
|
+
this.d1l_1 = new Buffer();
|
|
578
|
+
this.e1l_1 = atomic$ref$1(null);
|
|
579
|
+
}
|
|
580
|
+
protoOf(ByteChannel).t1m = function () {
|
|
581
|
+
var tmp0_safe_receiver = this.e1l_1.kotlinx$atomicfu$value;
|
|
580
582
|
if (tmp0_safe_receiver == null)
|
|
581
583
|
null;
|
|
582
584
|
else {
|
|
583
|
-
tmp0_safe_receiver.
|
|
585
|
+
tmp0_safe_receiver.v1m(ClosedReadChannelException$_init_$ref_ix0089());
|
|
584
586
|
}
|
|
585
|
-
if (this.
|
|
587
|
+
if (this.c1l_1.n1h()) {
|
|
586
588
|
moveFlushToReadBuffer(this);
|
|
587
589
|
}
|
|
588
|
-
return this.
|
|
590
|
+
return this.c1l_1;
|
|
589
591
|
};
|
|
590
|
-
protoOf(ByteChannel).
|
|
591
|
-
if (this.
|
|
592
|
-
var tmp0_safe_receiver = this.
|
|
592
|
+
protoOf(ByteChannel).w1m = function () {
|
|
593
|
+
if (this.x1m()) {
|
|
594
|
+
var tmp0_safe_receiver = this.e1l_1.kotlinx$atomicfu$value;
|
|
593
595
|
var tmp;
|
|
594
596
|
if (tmp0_safe_receiver == null) {
|
|
595
597
|
tmp = null;
|
|
596
598
|
} else {
|
|
597
|
-
tmp = tmp0_safe_receiver.
|
|
599
|
+
tmp = tmp0_safe_receiver.v1m(ClosedWriteChannelException$_init_$ref_ef15ty());
|
|
598
600
|
}
|
|
599
601
|
if (tmp == null)
|
|
600
602
|
throw new ClosedWriteChannelException();
|
|
601
603
|
}
|
|
602
|
-
return this.
|
|
604
|
+
return this.d1l_1;
|
|
603
605
|
};
|
|
604
|
-
protoOf(ByteChannel).
|
|
605
|
-
var tmp0_safe_receiver = this.
|
|
606
|
-
return tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
606
|
+
protoOf(ByteChannel).y1m = function () {
|
|
607
|
+
var tmp0_safe_receiver = this.e1l_1.kotlinx$atomicfu$value;
|
|
608
|
+
return tmp0_safe_receiver == null ? null : tmp0_safe_receiver.z1m();
|
|
607
609
|
};
|
|
608
|
-
protoOf(ByteChannel).
|
|
609
|
-
return !(this.
|
|
610
|
+
protoOf(ByteChannel).x1m = function () {
|
|
611
|
+
return !(this.e1l_1.kotlinx$atomicfu$value == null);
|
|
610
612
|
};
|
|
611
|
-
protoOf(ByteChannel).
|
|
612
|
-
return !(this.
|
|
613
|
+
protoOf(ByteChannel).a1n = function () {
|
|
614
|
+
return !(this.y1m() == null) || (this.x1m() && this.z1k_1 === 0 && this.c1l_1.n1h());
|
|
613
615
|
};
|
|
614
|
-
protoOf(ByteChannel).
|
|
616
|
+
protoOf(ByteChannel).b1n = function (min, $completion) {
|
|
615
617
|
var tmp = new $awaitContentCOROUTINE$0(this, min, $completion);
|
|
616
618
|
tmp.i9_1 = Unit_instance;
|
|
617
619
|
tmp.j9_1 = null;
|
|
618
620
|
return tmp.o9();
|
|
619
621
|
};
|
|
620
|
-
protoOf(ByteChannel).
|
|
622
|
+
protoOf(ByteChannel).s1m = function ($completion) {
|
|
621
623
|
var tmp = new $flushCOROUTINE$1(this, $completion);
|
|
622
624
|
tmp.i9_1 = Unit_instance;
|
|
623
625
|
tmp.j9_1 = null;
|
|
624
626
|
return tmp.o9();
|
|
625
627
|
};
|
|
626
|
-
protoOf(ByteChannel).
|
|
627
|
-
if (this.
|
|
628
|
+
protoOf(ByteChannel).c1m = function () {
|
|
629
|
+
if (this.d1l_1.n1h())
|
|
628
630
|
return Unit_instance;
|
|
629
631
|
// Inline function 'io.ktor.utils.io.locks.synchronized' call
|
|
630
|
-
this.
|
|
631
|
-
var count = this.
|
|
632
|
-
this.
|
|
633
|
-
this.
|
|
632
|
+
this.a1l_1;
|
|
633
|
+
var count = this.d1l_1.s().j1();
|
|
634
|
+
this.y1k_1.f1j(this.d1l_1);
|
|
635
|
+
this.z1k_1 = this.z1k_1 + count | 0;
|
|
634
636
|
// Inline function 'io.ktor.utils.io.ByteChannel.resumeSlot' call
|
|
635
|
-
var current = this.
|
|
637
|
+
var current = this.b1l_1.kotlinx$atomicfu$value;
|
|
636
638
|
var tmp;
|
|
637
639
|
if (current instanceof Read) {
|
|
638
|
-
tmp = this.
|
|
640
|
+
tmp = this.b1l_1.atomicfu$compareAndSet(current, Empty_instance);
|
|
639
641
|
} else {
|
|
640
642
|
tmp = false;
|
|
641
643
|
}
|
|
642
644
|
if (tmp) {
|
|
643
|
-
current.
|
|
645
|
+
current.r1k();
|
|
644
646
|
}
|
|
645
647
|
};
|
|
646
648
|
protoOf(ByteChannel).p4 = function () {
|
|
647
|
-
this.
|
|
648
|
-
if (!this.
|
|
649
|
+
this.c1m();
|
|
650
|
+
if (!this.e1l_1.atomicfu$compareAndSet(null, get_CLOSED()))
|
|
649
651
|
return Unit_instance;
|
|
650
652
|
closeSlot(this, null);
|
|
651
653
|
};
|
|
652
|
-
protoOf(ByteChannel).
|
|
654
|
+
protoOf(ByteChannel).d1n = function ($completion) {
|
|
653
655
|
var tmp = new $flushAndCloseCOROUTINE$2(this, $completion);
|
|
654
656
|
tmp.i9_1 = Unit_instance;
|
|
655
657
|
tmp.j9_1 = null;
|
|
656
658
|
return tmp.o9();
|
|
657
659
|
};
|
|
658
|
-
protoOf(ByteChannel).
|
|
659
|
-
if (!(this.
|
|
660
|
+
protoOf(ByteChannel).e1n = function (cause) {
|
|
661
|
+
if (!(this.e1l_1.kotlinx$atomicfu$value == null))
|
|
660
662
|
return Unit_instance;
|
|
661
663
|
var closedToken = new CloseToken(cause);
|
|
662
|
-
this.
|
|
663
|
-
var wrappedCause = closedToken.
|
|
664
|
+
this.e1l_1.atomicfu$compareAndSet(null, closedToken);
|
|
665
|
+
var wrappedCause = closedToken.z1m();
|
|
664
666
|
closeSlot(this, wrappedCause);
|
|
665
667
|
};
|
|
666
668
|
protoOf(ByteChannel).toString = function () {
|
|
@@ -676,7 +678,7 @@
|
|
|
676
678
|
length = length === VOID ? content.length : length;
|
|
677
679
|
// Inline function 'kotlin.also' call
|
|
678
680
|
var this_0 = new Buffer();
|
|
679
|
-
this_0.
|
|
681
|
+
this_0.w1i(content, offset, offset + length | 0);
|
|
680
682
|
var source = this_0;
|
|
681
683
|
return ByteReadChannel_0(source);
|
|
682
684
|
}
|
|
@@ -684,27 +686,27 @@
|
|
|
684
686
|
return new SourceByteReadChannel(source);
|
|
685
687
|
}
|
|
686
688
|
function ByteReadChannel$Companion$Empty$1() {
|
|
687
|
-
this.
|
|
688
|
-
this.
|
|
689
|
+
this.f1n_1 = null;
|
|
690
|
+
this.g1n_1 = new Buffer();
|
|
689
691
|
}
|
|
690
|
-
protoOf(ByteReadChannel$Companion$Empty$1).
|
|
691
|
-
return this.
|
|
692
|
+
protoOf(ByteReadChannel$Companion$Empty$1).y1m = function () {
|
|
693
|
+
return this.f1n_1;
|
|
692
694
|
};
|
|
693
|
-
protoOf(ByteReadChannel$Companion$Empty$1).
|
|
695
|
+
protoOf(ByteReadChannel$Companion$Empty$1).a1n = function () {
|
|
694
696
|
return true;
|
|
695
697
|
};
|
|
696
|
-
protoOf(ByteReadChannel$Companion$Empty$1).
|
|
697
|
-
return this.
|
|
698
|
+
protoOf(ByteReadChannel$Companion$Empty$1).t1m = function () {
|
|
699
|
+
return this.g1n_1;
|
|
698
700
|
};
|
|
699
|
-
protoOf(ByteReadChannel$Companion$Empty$1).
|
|
701
|
+
protoOf(ByteReadChannel$Companion$Empty$1).b1n = function (min, $completion) {
|
|
700
702
|
return false;
|
|
701
703
|
};
|
|
702
|
-
protoOf(ByteReadChannel$Companion$Empty$1).
|
|
704
|
+
protoOf(ByteReadChannel$Companion$Empty$1).e1n = function (cause) {
|
|
703
705
|
};
|
|
704
706
|
function Companion_0() {
|
|
705
707
|
Companion_instance_1 = this;
|
|
706
708
|
var tmp = this;
|
|
707
|
-
tmp.
|
|
709
|
+
tmp.h1n_1 = new ByteReadChannel$Companion$Empty$1();
|
|
708
710
|
}
|
|
709
711
|
var Companion_instance_1;
|
|
710
712
|
function Companion_getInstance_0() {
|
|
@@ -715,7 +717,7 @@
|
|
|
715
717
|
function ByteReadChannel_1() {
|
|
716
718
|
}
|
|
717
719
|
function cancel_0(_this__u8e3s4) {
|
|
718
|
-
_this__u8e3s4.
|
|
720
|
+
_this__u8e3s4.e1n(IOException_init_$Create$('Channel was cancelled'));
|
|
719
721
|
}
|
|
720
722
|
function readRemaining(_this__u8e3s4, $completion) {
|
|
721
723
|
var tmp = new $readRemainingCOROUTINE$3(_this__u8e3s4, $completion);
|
|
@@ -724,7 +726,7 @@
|
|
|
724
726
|
return tmp.o9();
|
|
725
727
|
}
|
|
726
728
|
function get_availableForRead(_this__u8e3s4) {
|
|
727
|
-
return _this__u8e3s4.
|
|
729
|
+
return _this__u8e3s4.t1m().m1h().s().j1();
|
|
728
730
|
}
|
|
729
731
|
function readPacket(_this__u8e3s4, packet, $completion) {
|
|
730
732
|
var tmp = new $readPacketCOROUTINE$4(_this__u8e3s4, packet, $completion);
|
|
@@ -759,8 +761,14 @@
|
|
|
759
761
|
tmp.j9_1 = null;
|
|
760
762
|
return tmp.o9();
|
|
761
763
|
}
|
|
764
|
+
function copyTo_0(_this__u8e3s4, channel, $completion) {
|
|
765
|
+
var tmp = new $copyToCOROUTINE$11(_this__u8e3s4, channel, $completion);
|
|
766
|
+
tmp.i9_1 = Unit_instance;
|
|
767
|
+
tmp.j9_1 = null;
|
|
768
|
+
return tmp.o9();
|
|
769
|
+
}
|
|
762
770
|
function rethrowCloseCauseIfNeeded(_this__u8e3s4) {
|
|
763
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
771
|
+
var tmp0_safe_receiver = _this__u8e3s4.y1m();
|
|
764
772
|
if (tmp0_safe_receiver == null)
|
|
765
773
|
null;
|
|
766
774
|
else {
|
|
@@ -776,14 +784,14 @@
|
|
|
776
784
|
}
|
|
777
785
|
function readUTF8LineTo(_this__u8e3s4, out, max, lineEnding, $completion) {
|
|
778
786
|
max = max === VOID ? 2147483647 : max;
|
|
779
|
-
lineEnding = lineEnding === VOID ? Companion_getInstance_1().
|
|
787
|
+
lineEnding = lineEnding === VOID ? Companion_getInstance_1().a1r_1 : lineEnding;
|
|
780
788
|
var tmp = new $readUTF8LineToCOROUTINE$13(_this__u8e3s4, out, max, lineEnding, $completion);
|
|
781
789
|
tmp.i9_1 = Unit_instance;
|
|
782
790
|
tmp.j9_1 = null;
|
|
783
791
|
return tmp.o9();
|
|
784
792
|
}
|
|
785
793
|
function rethrowCloseCauseIfNeeded_0(_this__u8e3s4) {
|
|
786
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
794
|
+
var tmp0_safe_receiver = _this__u8e3s4.y1m();
|
|
787
795
|
if (tmp0_safe_receiver == null)
|
|
788
796
|
null;
|
|
789
797
|
else {
|
|
@@ -792,7 +800,7 @@
|
|
|
792
800
|
}
|
|
793
801
|
}
|
|
794
802
|
function rethrowCloseCauseIfNeeded_1(_this__u8e3s4) {
|
|
795
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
803
|
+
var tmp0_safe_receiver = _this__u8e3s4.y1m();
|
|
796
804
|
if (tmp0_safe_receiver == null)
|
|
797
805
|
null;
|
|
798
806
|
else {
|
|
@@ -800,6 +808,12 @@
|
|
|
800
808
|
throw tmp0_safe_receiver;
|
|
801
809
|
}
|
|
802
810
|
}
|
|
811
|
+
function readRemaining_0(_this__u8e3s4, max, $completion) {
|
|
812
|
+
var tmp = new $readRemainingCOROUTINE$14(_this__u8e3s4, max, $completion);
|
|
813
|
+
tmp.i9_1 = Unit_instance;
|
|
814
|
+
tmp.j9_1 = null;
|
|
815
|
+
return tmp.o9();
|
|
816
|
+
}
|
|
803
817
|
function skipIfFound(_this__u8e3s4, byteString, $completion) {
|
|
804
818
|
var tmp = new $skipIfFoundCOROUTINE$15(_this__u8e3s4, byteString, $completion);
|
|
805
819
|
tmp.i9_1 = Unit_instance;
|
|
@@ -867,7 +881,7 @@
|
|
|
867
881
|
}
|
|
868
882
|
function $readRemainingCOROUTINE$3(_this__u8e3s4, resultContinuation) {
|
|
869
883
|
CoroutineImpl.call(this, resultContinuation);
|
|
870
|
-
this.
|
|
884
|
+
this.q1n_1 = _this__u8e3s4;
|
|
871
885
|
}
|
|
872
886
|
protoOf($readRemainingCOROUTINE$3).o9 = function () {
|
|
873
887
|
var suspendResult = this.i9_1;
|
|
@@ -877,18 +891,18 @@
|
|
|
877
891
|
switch (tmp) {
|
|
878
892
|
case 0:
|
|
879
893
|
this.h9_1 = 4;
|
|
880
|
-
this.
|
|
894
|
+
this.r1n_1 = BytePacketBuilder();
|
|
881
895
|
this.g9_1 = 1;
|
|
882
896
|
continue $sm;
|
|
883
897
|
case 1:
|
|
884
|
-
if (!!this.
|
|
898
|
+
if (!!this.q1n_1.a1n()) {
|
|
885
899
|
this.g9_1 = 3;
|
|
886
900
|
continue $sm;
|
|
887
901
|
}
|
|
888
902
|
|
|
889
|
-
this.
|
|
903
|
+
this.r1n_1.f1j(this.q1n_1.t1m());
|
|
890
904
|
this.g9_1 = 2;
|
|
891
|
-
suspendResult = this.
|
|
905
|
+
suspendResult = this.q1n_1.c1n(VOID, this);
|
|
892
906
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
893
907
|
return suspendResult;
|
|
894
908
|
}
|
|
@@ -898,8 +912,8 @@
|
|
|
898
912
|
this.g9_1 = 1;
|
|
899
913
|
continue $sm;
|
|
900
914
|
case 3:
|
|
901
|
-
rethrowCloseCauseIfNeeded(this.
|
|
902
|
-
return this.
|
|
915
|
+
rethrowCloseCauseIfNeeded(this.q1n_1);
|
|
916
|
+
return this.r1n_1.m1h();
|
|
903
917
|
case 4:
|
|
904
918
|
throw this.j9_1;
|
|
905
919
|
}
|
|
@@ -916,8 +930,8 @@
|
|
|
916
930
|
};
|
|
917
931
|
function $readPacketCOROUTINE$4(_this__u8e3s4, packet, resultContinuation) {
|
|
918
932
|
CoroutineImpl.call(this, resultContinuation);
|
|
919
|
-
this.
|
|
920
|
-
this.
|
|
933
|
+
this.a1o_1 = _this__u8e3s4;
|
|
934
|
+
this.b1o_1 = packet;
|
|
921
935
|
}
|
|
922
936
|
protoOf($readPacketCOROUTINE$4).o9 = function () {
|
|
923
937
|
var suspendResult = this.i9_1;
|
|
@@ -927,18 +941,18 @@
|
|
|
927
941
|
switch (tmp) {
|
|
928
942
|
case 0:
|
|
929
943
|
this.h9_1 = 6;
|
|
930
|
-
this.
|
|
944
|
+
this.c1o_1 = new Buffer();
|
|
931
945
|
this.g9_1 = 1;
|
|
932
946
|
continue $sm;
|
|
933
947
|
case 1:
|
|
934
|
-
if (!(this.
|
|
948
|
+
if (!(this.c1o_1.s().e1(toLong(this.b1o_1)) < 0)) {
|
|
935
949
|
this.g9_1 = 5;
|
|
936
950
|
continue $sm;
|
|
937
951
|
}
|
|
938
952
|
|
|
939
|
-
if (this.
|
|
953
|
+
if (this.a1o_1.t1m().n1h()) {
|
|
940
954
|
this.g9_1 = 2;
|
|
941
|
-
suspendResult = this.
|
|
955
|
+
suspendResult = this.a1o_1.c1n(VOID, this);
|
|
942
956
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
943
957
|
return suspendResult;
|
|
944
958
|
}
|
|
@@ -952,7 +966,7 @@
|
|
|
952
966
|
this.g9_1 = 3;
|
|
953
967
|
continue $sm;
|
|
954
968
|
case 3:
|
|
955
|
-
if (this.
|
|
969
|
+
if (this.a1o_1.a1n()) {
|
|
956
970
|
this.g9_1 = 5;
|
|
957
971
|
continue $sm;
|
|
958
972
|
} else {
|
|
@@ -961,20 +975,20 @@
|
|
|
961
975
|
}
|
|
962
976
|
|
|
963
977
|
case 4:
|
|
964
|
-
if (get_remaining(this.
|
|
965
|
-
this.
|
|
978
|
+
if (get_remaining(this.a1o_1.t1m()).e1(numberToLong(this.b1o_1).a3(this.c1o_1.s())) > 0) {
|
|
979
|
+
this.a1o_1.t1m().p1i(this.c1o_1, numberToLong(this.b1o_1).a3(this.c1o_1.s()));
|
|
966
980
|
} else {
|
|
967
|
-
this.
|
|
981
|
+
this.a1o_1.t1m().q1i(this.c1o_1);
|
|
968
982
|
}
|
|
969
983
|
|
|
970
984
|
this.g9_1 = 1;
|
|
971
985
|
continue $sm;
|
|
972
986
|
case 5:
|
|
973
|
-
if (this.
|
|
974
|
-
throw EOFException_init_$Create$('Not enough data available, required ' + this.
|
|
987
|
+
if (this.c1o_1.s().e1(toLong(this.b1o_1)) < 0) {
|
|
988
|
+
throw EOFException_init_$Create$('Not enough data available, required ' + this.b1o_1 + ' bytes but only ' + this.c1o_1.s().toString() + ' available');
|
|
975
989
|
}
|
|
976
990
|
|
|
977
|
-
return this.
|
|
991
|
+
return this.c1o_1;
|
|
978
992
|
case 6:
|
|
979
993
|
throw this.j9_1;
|
|
980
994
|
}
|
|
@@ -991,8 +1005,8 @@
|
|
|
991
1005
|
};
|
|
992
1006
|
function $discardCOROUTINE$5(_this__u8e3s4, max, resultContinuation) {
|
|
993
1007
|
CoroutineImpl.call(this, resultContinuation);
|
|
994
|
-
this.
|
|
995
|
-
this.
|
|
1008
|
+
this.l1o_1 = _this__u8e3s4;
|
|
1009
|
+
this.m1o_1 = max;
|
|
996
1010
|
}
|
|
997
1011
|
protoOf($discardCOROUTINE$5).o9 = function () {
|
|
998
1012
|
var suspendResult = this.i9_1;
|
|
@@ -1002,18 +1016,18 @@
|
|
|
1002
1016
|
switch (tmp) {
|
|
1003
1017
|
case 0:
|
|
1004
1018
|
this.h9_1 = 5;
|
|
1005
|
-
this.
|
|
1019
|
+
this.n1o_1 = this.m1o_1;
|
|
1006
1020
|
this.g9_1 = 1;
|
|
1007
1021
|
continue $sm;
|
|
1008
1022
|
case 1:
|
|
1009
|
-
if (!(this.
|
|
1023
|
+
if (!(this.n1o_1.e1(new Long(0, 0)) > 0 && !this.l1o_1.a1n())) {
|
|
1010
1024
|
this.g9_1 = 4;
|
|
1011
1025
|
continue $sm;
|
|
1012
1026
|
}
|
|
1013
1027
|
|
|
1014
|
-
if (get_availableForRead(this.
|
|
1028
|
+
if (get_availableForRead(this.l1o_1) === 0) {
|
|
1015
1029
|
this.g9_1 = 2;
|
|
1016
|
-
suspendResult = this.
|
|
1030
|
+
suspendResult = this.l1o_1.c1n(VOID, this);
|
|
1017
1031
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1018
1032
|
return suspendResult;
|
|
1019
1033
|
}
|
|
@@ -1027,15 +1041,15 @@
|
|
|
1027
1041
|
this.g9_1 = 3;
|
|
1028
1042
|
continue $sm;
|
|
1029
1043
|
case 3:
|
|
1030
|
-
var tmp0 = this.
|
|
1031
|
-
var b = get_remaining(this.
|
|
1044
|
+
var tmp0 = this.n1o_1;
|
|
1045
|
+
var b = get_remaining(this.l1o_1.t1m());
|
|
1032
1046
|
var count = tmp0.e1(b) <= 0 ? tmp0 : b;
|
|
1033
|
-
discard_0(this.
|
|
1034
|
-
this.
|
|
1047
|
+
discard_0(this.l1o_1.t1m(), count);
|
|
1048
|
+
this.n1o_1 = this.n1o_1.a3(count);
|
|
1035
1049
|
this.g9_1 = 1;
|
|
1036
1050
|
continue $sm;
|
|
1037
1051
|
case 4:
|
|
1038
|
-
return this.
|
|
1052
|
+
return this.m1o_1.a3(this.n1o_1);
|
|
1039
1053
|
case 5:
|
|
1040
1054
|
throw this.j9_1;
|
|
1041
1055
|
}
|
|
@@ -1052,10 +1066,10 @@
|
|
|
1052
1066
|
};
|
|
1053
1067
|
function $readAvailableCOROUTINE$7(_this__u8e3s4, buffer, offset, length, resultContinuation) {
|
|
1054
1068
|
CoroutineImpl.call(this, resultContinuation);
|
|
1055
|
-
this.
|
|
1056
|
-
this.
|
|
1057
|
-
this.
|
|
1058
|
-
this.
|
|
1069
|
+
this.w1o_1 = _this__u8e3s4;
|
|
1070
|
+
this.x1o_1 = buffer;
|
|
1071
|
+
this.y1o_1 = offset;
|
|
1072
|
+
this.z1o_1 = length;
|
|
1059
1073
|
}
|
|
1060
1074
|
protoOf($readAvailableCOROUTINE$7).o9 = function () {
|
|
1061
1075
|
var suspendResult = this.i9_1;
|
|
@@ -1065,11 +1079,11 @@
|
|
|
1065
1079
|
switch (tmp) {
|
|
1066
1080
|
case 0:
|
|
1067
1081
|
this.h9_1 = 3;
|
|
1068
|
-
if (this.
|
|
1082
|
+
if (this.w1o_1.a1n())
|
|
1069
1083
|
return -1;
|
|
1070
|
-
if (this.
|
|
1084
|
+
if (this.w1o_1.t1m().n1h()) {
|
|
1071
1085
|
this.g9_1 = 1;
|
|
1072
|
-
suspendResult = this.
|
|
1086
|
+
suspendResult = this.w1o_1.c1n(VOID, this);
|
|
1073
1087
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1074
1088
|
return suspendResult;
|
|
1075
1089
|
}
|
|
@@ -1083,9 +1097,9 @@
|
|
|
1083
1097
|
this.g9_1 = 2;
|
|
1084
1098
|
continue $sm;
|
|
1085
1099
|
case 2:
|
|
1086
|
-
if (this.
|
|
1100
|
+
if (this.w1o_1.a1n())
|
|
1087
1101
|
return -1;
|
|
1088
|
-
return readAvailable_0(this.
|
|
1102
|
+
return readAvailable_0(this.w1o_1.t1m(), this.x1o_1, this.y1o_1, this.z1o_1);
|
|
1089
1103
|
case 3:
|
|
1090
1104
|
throw this.j9_1;
|
|
1091
1105
|
}
|
|
@@ -1102,7 +1116,7 @@
|
|
|
1102
1116
|
};
|
|
1103
1117
|
function $toByteArrayCOROUTINE$9(_this__u8e3s4, resultContinuation) {
|
|
1104
1118
|
CoroutineImpl.call(this, resultContinuation);
|
|
1105
|
-
this.
|
|
1119
|
+
this.i1p_1 = _this__u8e3s4;
|
|
1106
1120
|
}
|
|
1107
1121
|
protoOf($toByteArrayCOROUTINE$9).o9 = function () {
|
|
1108
1122
|
var suspendResult = this.i9_1;
|
|
@@ -1113,7 +1127,7 @@
|
|
|
1113
1127
|
case 0:
|
|
1114
1128
|
this.h9_1 = 2;
|
|
1115
1129
|
this.g9_1 = 1;
|
|
1116
|
-
suspendResult = readBuffer(this.
|
|
1130
|
+
suspendResult = readBuffer(this.i1p_1, this);
|
|
1117
1131
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1118
1132
|
return suspendResult;
|
|
1119
1133
|
}
|
|
@@ -1138,9 +1152,9 @@
|
|
|
1138
1152
|
};
|
|
1139
1153
|
function $copyToCOROUTINE$10(_this__u8e3s4, channel, limit, resultContinuation) {
|
|
1140
1154
|
CoroutineImpl.call(this, resultContinuation);
|
|
1141
|
-
this.
|
|
1142
|
-
this.
|
|
1143
|
-
this.
|
|
1155
|
+
this.r1p_1 = _this__u8e3s4;
|
|
1156
|
+
this.s1p_1 = channel;
|
|
1157
|
+
this.t1p_1 = limit;
|
|
1144
1158
|
}
|
|
1145
1159
|
protoOf($copyToCOROUTINE$10).o9 = function () {
|
|
1146
1160
|
var suspendResult = this.i9_1;
|
|
@@ -1150,7 +1164,7 @@
|
|
|
1150
1164
|
switch (tmp) {
|
|
1151
1165
|
case 0:
|
|
1152
1166
|
this.h9_1 = 12;
|
|
1153
|
-
this.
|
|
1167
|
+
this.u1p_1 = this.t1p_1;
|
|
1154
1168
|
this.g9_1 = 1;
|
|
1155
1169
|
continue $sm;
|
|
1156
1170
|
case 1:
|
|
@@ -1159,14 +1173,14 @@
|
|
|
1159
1173
|
this.g9_1 = 2;
|
|
1160
1174
|
continue $sm;
|
|
1161
1175
|
case 2:
|
|
1162
|
-
if (!(!this.
|
|
1176
|
+
if (!(!this.r1p_1.a1n() && this.u1p_1.e1(new Long(0, 0)) > 0)) {
|
|
1163
1177
|
this.g9_1 = 6;
|
|
1164
1178
|
continue $sm;
|
|
1165
1179
|
}
|
|
1166
1180
|
|
|
1167
|
-
if (this.
|
|
1181
|
+
if (this.r1p_1.t1m().n1h()) {
|
|
1168
1182
|
this.g9_1 = 3;
|
|
1169
|
-
suspendResult = this.
|
|
1183
|
+
suspendResult = this.r1p_1.c1n(VOID, this);
|
|
1170
1184
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1171
1185
|
return suspendResult;
|
|
1172
1186
|
}
|
|
@@ -1181,13 +1195,13 @@
|
|
|
1181
1195
|
continue $sm;
|
|
1182
1196
|
case 4:
|
|
1183
1197
|
var tmp_0 = this;
|
|
1184
|
-
var tmp0 = this.
|
|
1185
|
-
var b = get_remaining(this.
|
|
1186
|
-
tmp_0.
|
|
1187
|
-
this.
|
|
1188
|
-
this.
|
|
1198
|
+
var tmp0 = this.u1p_1;
|
|
1199
|
+
var b = get_remaining(this.r1p_1.t1m());
|
|
1200
|
+
tmp_0.w1p_1 = tmp0.e1(b) <= 0 ? tmp0 : b;
|
|
1201
|
+
this.r1p_1.t1m().p1i(this.s1p_1.w1m(), this.w1p_1);
|
|
1202
|
+
this.u1p_1 = this.u1p_1.a3(this.w1p_1);
|
|
1189
1203
|
this.g9_1 = 5;
|
|
1190
|
-
suspendResult = this.
|
|
1204
|
+
suspendResult = this.s1p_1.s1m(this);
|
|
1191
1205
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1192
1206
|
return suspendResult;
|
|
1193
1207
|
}
|
|
@@ -1197,7 +1211,7 @@
|
|
|
1197
1211
|
this.g9_1 = 2;
|
|
1198
1212
|
continue $sm;
|
|
1199
1213
|
case 6:
|
|
1200
|
-
this.
|
|
1214
|
+
this.v1p_1 = Unit_instance;
|
|
1201
1215
|
this.h9_1 = 12;
|
|
1202
1216
|
this.g9_1 = 10;
|
|
1203
1217
|
continue $sm;
|
|
@@ -1205,38 +1219,38 @@
|
|
|
1205
1219
|
this.h9_1 = 8;
|
|
1206
1220
|
var tmp_1 = this.j9_1;
|
|
1207
1221
|
if (tmp_1 instanceof Error) {
|
|
1208
|
-
this.
|
|
1222
|
+
this.x1p_1 = this.j9_1;
|
|
1209
1223
|
var tmp_2 = this;
|
|
1210
|
-
this.
|
|
1211
|
-
close_0(this.
|
|
1212
|
-
throw this.
|
|
1224
|
+
this.r1p_1.e1n(this.x1p_1);
|
|
1225
|
+
close_0(this.s1p_1, this.x1p_1);
|
|
1226
|
+
throw this.x1p_1;
|
|
1213
1227
|
} else {
|
|
1214
1228
|
throw this.j9_1;
|
|
1215
1229
|
}
|
|
1216
1230
|
|
|
1217
1231
|
case 8:
|
|
1218
1232
|
this.h9_1 = 12;
|
|
1219
|
-
this.
|
|
1233
|
+
this.y1p_1 = this.j9_1;
|
|
1220
1234
|
this.g9_1 = 9;
|
|
1221
|
-
suspendResult = this.
|
|
1235
|
+
suspendResult = this.s1p_1.s1m(this);
|
|
1222
1236
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1223
1237
|
return suspendResult;
|
|
1224
1238
|
}
|
|
1225
1239
|
|
|
1226
1240
|
continue $sm;
|
|
1227
1241
|
case 9:
|
|
1228
|
-
throw this.
|
|
1242
|
+
throw this.y1p_1;
|
|
1229
1243
|
case 10:
|
|
1230
1244
|
this.h9_1 = 12;
|
|
1231
1245
|
this.g9_1 = 11;
|
|
1232
|
-
suspendResult = this.
|
|
1246
|
+
suspendResult = this.s1p_1.s1m(this);
|
|
1233
1247
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1234
1248
|
return suspendResult;
|
|
1235
1249
|
}
|
|
1236
1250
|
|
|
1237
1251
|
continue $sm;
|
|
1238
1252
|
case 11:
|
|
1239
|
-
return this.
|
|
1253
|
+
return this.t1p_1.a3(this.u1p_1);
|
|
1240
1254
|
case 12:
|
|
1241
1255
|
throw this.j9_1;
|
|
1242
1256
|
}
|
|
@@ -1251,9 +1265,110 @@
|
|
|
1251
1265
|
}
|
|
1252
1266
|
while (true);
|
|
1253
1267
|
};
|
|
1268
|
+
function $copyToCOROUTINE$11(_this__u8e3s4, channel, resultContinuation) {
|
|
1269
|
+
CoroutineImpl.call(this, resultContinuation);
|
|
1270
|
+
this.h1q_1 = _this__u8e3s4;
|
|
1271
|
+
this.i1q_1 = channel;
|
|
1272
|
+
}
|
|
1273
|
+
protoOf($copyToCOROUTINE$11).o9 = function () {
|
|
1274
|
+
var suspendResult = this.i9_1;
|
|
1275
|
+
$sm: do
|
|
1276
|
+
try {
|
|
1277
|
+
var tmp = this.g9_1;
|
|
1278
|
+
switch (tmp) {
|
|
1279
|
+
case 0:
|
|
1280
|
+
this.h9_1 = 11;
|
|
1281
|
+
this.j1q_1 = new Long(0, 0);
|
|
1282
|
+
this.g9_1 = 1;
|
|
1283
|
+
continue $sm;
|
|
1284
|
+
case 1:
|
|
1285
|
+
this.h9_1 = 7;
|
|
1286
|
+
this.h9_1 = 6;
|
|
1287
|
+
this.g9_1 = 2;
|
|
1288
|
+
continue $sm;
|
|
1289
|
+
case 2:
|
|
1290
|
+
if (!!this.h1q_1.a1n()) {
|
|
1291
|
+
this.g9_1 = 5;
|
|
1292
|
+
continue $sm;
|
|
1293
|
+
}
|
|
1294
|
+
|
|
1295
|
+
this.j1q_1 = this.j1q_1.z2(this.h1q_1.t1m().q1i(this.i1q_1.w1m()));
|
|
1296
|
+
this.g9_1 = 3;
|
|
1297
|
+
suspendResult = this.i1q_1.s1m(this);
|
|
1298
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1299
|
+
return suspendResult;
|
|
1300
|
+
}
|
|
1301
|
+
|
|
1302
|
+
continue $sm;
|
|
1303
|
+
case 3:
|
|
1304
|
+
this.g9_1 = 4;
|
|
1305
|
+
suspendResult = this.h1q_1.c1n(VOID, this);
|
|
1306
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1307
|
+
return suspendResult;
|
|
1308
|
+
}
|
|
1309
|
+
|
|
1310
|
+
continue $sm;
|
|
1311
|
+
case 4:
|
|
1312
|
+
this.g9_1 = 2;
|
|
1313
|
+
continue $sm;
|
|
1314
|
+
case 5:
|
|
1315
|
+
this.k1q_1 = Unit_instance;
|
|
1316
|
+
this.h9_1 = 11;
|
|
1317
|
+
this.g9_1 = 9;
|
|
1318
|
+
continue $sm;
|
|
1319
|
+
case 6:
|
|
1320
|
+
this.h9_1 = 7;
|
|
1321
|
+
var tmp_0 = this.j9_1;
|
|
1322
|
+
if (tmp_0 instanceof Error) {
|
|
1323
|
+
this.l1q_1 = this.j9_1;
|
|
1324
|
+
var tmp_1 = this;
|
|
1325
|
+
this.h1q_1.e1n(this.l1q_1);
|
|
1326
|
+
close_0(this.i1q_1, this.l1q_1);
|
|
1327
|
+
throw this.l1q_1;
|
|
1328
|
+
} else {
|
|
1329
|
+
throw this.j9_1;
|
|
1330
|
+
}
|
|
1331
|
+
|
|
1332
|
+
case 7:
|
|
1333
|
+
this.h9_1 = 11;
|
|
1334
|
+
this.m1q_1 = this.j9_1;
|
|
1335
|
+
this.g9_1 = 8;
|
|
1336
|
+
suspendResult = this.i1q_1.s1m(this);
|
|
1337
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1338
|
+
return suspendResult;
|
|
1339
|
+
}
|
|
1340
|
+
|
|
1341
|
+
continue $sm;
|
|
1342
|
+
case 8:
|
|
1343
|
+
throw this.m1q_1;
|
|
1344
|
+
case 9:
|
|
1345
|
+
this.h9_1 = 11;
|
|
1346
|
+
this.g9_1 = 10;
|
|
1347
|
+
suspendResult = this.i1q_1.s1m(this);
|
|
1348
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1349
|
+
return suspendResult;
|
|
1350
|
+
}
|
|
1351
|
+
|
|
1352
|
+
continue $sm;
|
|
1353
|
+
case 10:
|
|
1354
|
+
return this.j1q_1;
|
|
1355
|
+
case 11:
|
|
1356
|
+
throw this.j9_1;
|
|
1357
|
+
}
|
|
1358
|
+
} catch ($p) {
|
|
1359
|
+
var e = $p;
|
|
1360
|
+
if (this.h9_1 === 11) {
|
|
1361
|
+
throw e;
|
|
1362
|
+
} else {
|
|
1363
|
+
this.g9_1 = this.h9_1;
|
|
1364
|
+
this.j9_1 = e;
|
|
1365
|
+
}
|
|
1366
|
+
}
|
|
1367
|
+
while (true);
|
|
1368
|
+
};
|
|
1254
1369
|
function $readBufferCOROUTINE$12(_this__u8e3s4, resultContinuation) {
|
|
1255
1370
|
CoroutineImpl.call(this, resultContinuation);
|
|
1256
|
-
this.
|
|
1371
|
+
this.v1q_1 = _this__u8e3s4;
|
|
1257
1372
|
}
|
|
1258
1373
|
protoOf($readBufferCOROUTINE$12).o9 = function () {
|
|
1259
1374
|
var suspendResult = this.i9_1;
|
|
@@ -1263,18 +1378,18 @@
|
|
|
1263
1378
|
switch (tmp) {
|
|
1264
1379
|
case 0:
|
|
1265
1380
|
this.h9_1 = 4;
|
|
1266
|
-
this.
|
|
1381
|
+
this.w1q_1 = new Buffer();
|
|
1267
1382
|
this.g9_1 = 1;
|
|
1268
1383
|
continue $sm;
|
|
1269
1384
|
case 1:
|
|
1270
|
-
if (!!this.
|
|
1385
|
+
if (!!this.v1q_1.a1n()) {
|
|
1271
1386
|
this.g9_1 = 3;
|
|
1272
1387
|
continue $sm;
|
|
1273
1388
|
}
|
|
1274
1389
|
|
|
1275
|
-
this.
|
|
1390
|
+
this.w1q_1.f1j(this.v1q_1.t1m());
|
|
1276
1391
|
this.g9_1 = 2;
|
|
1277
|
-
suspendResult = this.
|
|
1392
|
+
suspendResult = this.v1q_1.c1n(VOID, this);
|
|
1278
1393
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1279
1394
|
return suspendResult;
|
|
1280
1395
|
}
|
|
@@ -1284,14 +1399,14 @@
|
|
|
1284
1399
|
this.g9_1 = 1;
|
|
1285
1400
|
continue $sm;
|
|
1286
1401
|
case 3:
|
|
1287
|
-
var tmp0_safe_receiver = this.
|
|
1402
|
+
var tmp0_safe_receiver = this.v1q_1.y1m();
|
|
1288
1403
|
if (tmp0_safe_receiver == null)
|
|
1289
1404
|
null;
|
|
1290
1405
|
else {
|
|
1291
1406
|
throw tmp0_safe_receiver;
|
|
1292
1407
|
}
|
|
1293
1408
|
|
|
1294
|
-
return this.
|
|
1409
|
+
return this.w1q_1;
|
|
1295
1410
|
case 4:
|
|
1296
1411
|
throw this.j9_1;
|
|
1297
1412
|
}
|
|
@@ -1308,10 +1423,10 @@
|
|
|
1308
1423
|
};
|
|
1309
1424
|
function $readUTF8LineToCOROUTINE$13(_this__u8e3s4, out, max, lineEnding, resultContinuation) {
|
|
1310
1425
|
CoroutineImpl.call(this, resultContinuation);
|
|
1311
|
-
this.
|
|
1312
|
-
this.
|
|
1313
|
-
this.
|
|
1314
|
-
this.
|
|
1426
|
+
this.k1r_1 = _this__u8e3s4;
|
|
1427
|
+
this.l1r_1 = out;
|
|
1428
|
+
this.m1r_1 = max;
|
|
1429
|
+
this.n1r_1 = lineEnding;
|
|
1315
1430
|
}
|
|
1316
1431
|
protoOf($readUTF8LineToCOROUTINE$13).o9 = function () {
|
|
1317
1432
|
var suspendResult = this.i9_1;
|
|
@@ -1321,9 +1436,9 @@
|
|
|
1321
1436
|
switch (tmp) {
|
|
1322
1437
|
case 0:
|
|
1323
1438
|
this.h9_1 = 21;
|
|
1324
|
-
if (this.
|
|
1439
|
+
if (this.k1r_1.t1m().n1h()) {
|
|
1325
1440
|
this.g9_1 = 1;
|
|
1326
|
-
suspendResult = this.
|
|
1441
|
+
suspendResult = this.k1r_1.c1n(VOID, this);
|
|
1327
1442
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1328
1443
|
return suspendResult;
|
|
1329
1444
|
}
|
|
@@ -1337,15 +1452,15 @@
|
|
|
1337
1452
|
this.g9_1 = 2;
|
|
1338
1453
|
continue $sm;
|
|
1339
1454
|
case 2:
|
|
1340
|
-
if (this.
|
|
1455
|
+
if (this.k1r_1.a1n())
|
|
1341
1456
|
return false;
|
|
1342
1457
|
var tmp_0 = this;
|
|
1343
|
-
tmp_0.
|
|
1458
|
+
tmp_0.o1r_1 = new Buffer();
|
|
1344
1459
|
this.g9_1 = 3;
|
|
1345
1460
|
continue $sm;
|
|
1346
1461
|
case 3:
|
|
1347
|
-
this.
|
|
1348
|
-
this.
|
|
1462
|
+
this.q1r_1 = this.o1r_1;
|
|
1463
|
+
this.r1r_1 = null;
|
|
1349
1464
|
this.g9_1 = 4;
|
|
1350
1465
|
continue $sm;
|
|
1351
1466
|
case 4:
|
|
@@ -1358,12 +1473,12 @@
|
|
|
1358
1473
|
this.h9_1 = 18;
|
|
1359
1474
|
this.h9_1 = 17;
|
|
1360
1475
|
var tmp_1 = this;
|
|
1361
|
-
tmp_1.
|
|
1362
|
-
this.
|
|
1476
|
+
tmp_1.t1r_1 = this.q1r_1;
|
|
1477
|
+
this.u1r_1 = this.t1r_1;
|
|
1363
1478
|
this.g9_1 = 7;
|
|
1364
1479
|
continue $sm;
|
|
1365
1480
|
case 7:
|
|
1366
|
-
if (!!this.
|
|
1481
|
+
if (!!this.k1r_1.a1n()) {
|
|
1367
1482
|
this.g9_1 = 14;
|
|
1368
1483
|
continue $sm;
|
|
1369
1484
|
}
|
|
@@ -1371,16 +1486,16 @@
|
|
|
1371
1486
|
this.g9_1 = 8;
|
|
1372
1487
|
continue $sm;
|
|
1373
1488
|
case 8:
|
|
1374
|
-
if (!!this.
|
|
1489
|
+
if (!!this.k1r_1.t1m().n1h()) {
|
|
1375
1490
|
this.g9_1 = 12;
|
|
1376
1491
|
continue $sm;
|
|
1377
1492
|
}
|
|
1378
1493
|
|
|
1379
|
-
this.
|
|
1380
|
-
if (this.
|
|
1381
|
-
if (this.
|
|
1494
|
+
this.v1r_1 = this.k1r_1.t1m().q1h();
|
|
1495
|
+
if (this.v1r_1 === 13) {
|
|
1496
|
+
if (this.k1r_1.t1m().n1h()) {
|
|
1382
1497
|
this.g9_1 = 10;
|
|
1383
|
-
suspendResult = this.
|
|
1498
|
+
suspendResult = this.k1r_1.c1n(VOID, this);
|
|
1384
1499
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1385
1500
|
return suspendResult;
|
|
1386
1501
|
}
|
|
@@ -1390,15 +1505,15 @@
|
|
|
1390
1505
|
continue $sm;
|
|
1391
1506
|
}
|
|
1392
1507
|
} else {
|
|
1393
|
-
if (this.
|
|
1394
|
-
readUTF8LineTo$checkLineEndingAllowed(this.
|
|
1395
|
-
this.
|
|
1396
|
-
this.
|
|
1508
|
+
if (this.v1r_1 === 10) {
|
|
1509
|
+
readUTF8LineTo$checkLineEndingAllowed(this.n1r_1, Companion_getInstance_1().y1q_1);
|
|
1510
|
+
this.l1r_1.l(readString(this.u1r_1));
|
|
1511
|
+
this.s1r_1 = true;
|
|
1397
1512
|
this.h9_1 = 21;
|
|
1398
1513
|
this.g9_1 = 15;
|
|
1399
1514
|
continue $sm;
|
|
1400
1515
|
} else {
|
|
1401
|
-
this.
|
|
1516
|
+
this.u1r_1.g1j(this.v1r_1);
|
|
1402
1517
|
this.g9_1 = 9;
|
|
1403
1518
|
continue $sm;
|
|
1404
1519
|
}
|
|
@@ -1411,25 +1526,25 @@
|
|
|
1411
1526
|
this.g9_1 = 11;
|
|
1412
1527
|
continue $sm;
|
|
1413
1528
|
case 11:
|
|
1414
|
-
if (this.
|
|
1415
|
-
readUTF8LineTo$checkLineEndingAllowed(this.
|
|
1416
|
-
discard_0(this.
|
|
1529
|
+
if (this.k1r_1.t1m().m1h().i1i(new Long(0, 0)) === 10) {
|
|
1530
|
+
readUTF8LineTo$checkLineEndingAllowed(this.n1r_1, Companion_getInstance_1().z1q_1);
|
|
1531
|
+
discard_0(this.k1r_1.t1m(), new Long(1, 0));
|
|
1417
1532
|
} else {
|
|
1418
|
-
readUTF8LineTo$checkLineEndingAllowed(this.
|
|
1533
|
+
readUTF8LineTo$checkLineEndingAllowed(this.n1r_1, Companion_getInstance_1().x1q_1);
|
|
1419
1534
|
}
|
|
1420
1535
|
|
|
1421
|
-
this.
|
|
1422
|
-
this.
|
|
1536
|
+
this.l1r_1.l(readString(this.u1r_1));
|
|
1537
|
+
this.s1r_1 = true;
|
|
1423
1538
|
this.h9_1 = 21;
|
|
1424
1539
|
this.g9_1 = 15;
|
|
1425
1540
|
continue $sm;
|
|
1426
1541
|
case 12:
|
|
1427
|
-
if (this.
|
|
1428
|
-
throw new TooLongLineException('Line exceeds limit of ' + this.
|
|
1542
|
+
if (this.u1r_1.s().e1(toLong(this.m1r_1)) >= 0) {
|
|
1543
|
+
throw new TooLongLineException('Line exceeds limit of ' + this.m1r_1 + ' characters');
|
|
1429
1544
|
}
|
|
1430
1545
|
|
|
1431
1546
|
this.g9_1 = 13;
|
|
1432
|
-
suspendResult = this.
|
|
1547
|
+
suspendResult = this.k1r_1.c1n(VOID, this);
|
|
1433
1548
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1434
1549
|
return suspendResult;
|
|
1435
1550
|
}
|
|
@@ -1440,26 +1555,26 @@
|
|
|
1440
1555
|
continue $sm;
|
|
1441
1556
|
case 14:
|
|
1442
1557
|
var tmp_2 = this;
|
|
1443
|
-
var this_0 = this.
|
|
1558
|
+
var this_0 = this.u1r_1.s().e1(new Long(0, 0)) > 0;
|
|
1444
1559
|
if (this_0) {
|
|
1445
|
-
this.
|
|
1560
|
+
this.l1r_1.l(readString(this.u1r_1));
|
|
1446
1561
|
}
|
|
1447
1562
|
|
|
1448
|
-
tmp_2.
|
|
1563
|
+
tmp_2.s1r_1 = this_0;
|
|
1449
1564
|
this.h9_1 = 21;
|
|
1450
1565
|
this.g9_1 = 15;
|
|
1451
1566
|
var tmp_3 = this;
|
|
1452
1567
|
continue $sm;
|
|
1453
1568
|
case 15:
|
|
1454
|
-
var tmp_4 = this.
|
|
1569
|
+
var tmp_4 = this.s1r_1;
|
|
1455
1570
|
this.h9_1 = 21;
|
|
1456
|
-
closeFinally(this.
|
|
1571
|
+
closeFinally(this.q1r_1, this.r1r_1);
|
|
1457
1572
|
return tmp_4;
|
|
1458
1573
|
case 16:
|
|
1459
1574
|
this.h9_1 = 21;
|
|
1460
1575
|
var tmp_5 = this;
|
|
1461
|
-
closeFinally(this.
|
|
1462
|
-
tmp_5.
|
|
1576
|
+
closeFinally(this.q1r_1, this.r1r_1);
|
|
1577
|
+
tmp_5.p1r_1 = Unit_instance;
|
|
1463
1578
|
this.g9_1 = 20;
|
|
1464
1579
|
continue $sm;
|
|
1465
1580
|
case 17:
|
|
@@ -1468,7 +1583,7 @@
|
|
|
1468
1583
|
if (tmp_6 instanceof Error) {
|
|
1469
1584
|
var e = this.j9_1;
|
|
1470
1585
|
var tmp_7 = this;
|
|
1471
|
-
this.
|
|
1586
|
+
this.r1r_1 = e;
|
|
1472
1587
|
throw e;
|
|
1473
1588
|
} else {
|
|
1474
1589
|
throw this.j9_1;
|
|
@@ -1477,11 +1592,11 @@
|
|
|
1477
1592
|
case 18:
|
|
1478
1593
|
this.h9_1 = 21;
|
|
1479
1594
|
var t = this.j9_1;
|
|
1480
|
-
closeFinally(this.
|
|
1595
|
+
closeFinally(this.q1r_1, this.r1r_1);
|
|
1481
1596
|
throw t;
|
|
1482
1597
|
case 19:
|
|
1483
1598
|
this.h9_1 = 21;
|
|
1484
|
-
closeFinally(this.
|
|
1599
|
+
closeFinally(this.q1r_1, this.r1r_1);
|
|
1485
1600
|
if (false) {
|
|
1486
1601
|
this.g9_1 = 3;
|
|
1487
1602
|
continue $sm;
|
|
@@ -1505,10 +1620,67 @@
|
|
|
1505
1620
|
}
|
|
1506
1621
|
while (true);
|
|
1507
1622
|
};
|
|
1623
|
+
function $readRemainingCOROUTINE$14(_this__u8e3s4, max, resultContinuation) {
|
|
1624
|
+
CoroutineImpl.call(this, resultContinuation);
|
|
1625
|
+
this.e1s_1 = _this__u8e3s4;
|
|
1626
|
+
this.f1s_1 = max;
|
|
1627
|
+
}
|
|
1628
|
+
protoOf($readRemainingCOROUTINE$14).o9 = function () {
|
|
1629
|
+
var suspendResult = this.i9_1;
|
|
1630
|
+
$sm: do
|
|
1631
|
+
try {
|
|
1632
|
+
var tmp = this.g9_1;
|
|
1633
|
+
switch (tmp) {
|
|
1634
|
+
case 0:
|
|
1635
|
+
this.h9_1 = 4;
|
|
1636
|
+
this.g1s_1 = BytePacketBuilder();
|
|
1637
|
+
this.h1s_1 = this.f1s_1;
|
|
1638
|
+
this.g9_1 = 1;
|
|
1639
|
+
continue $sm;
|
|
1640
|
+
case 1:
|
|
1641
|
+
if (!(!this.e1s_1.a1n() && this.h1s_1.e1(new Long(0, 0)) > 0)) {
|
|
1642
|
+
this.g9_1 = 3;
|
|
1643
|
+
continue $sm;
|
|
1644
|
+
}
|
|
1645
|
+
|
|
1646
|
+
if (this.h1s_1.e1(get_remaining(this.e1s_1.t1m())) >= 0) {
|
|
1647
|
+
this.h1s_1 = this.h1s_1.a3(get_remaining(this.e1s_1.t1m()));
|
|
1648
|
+
this.e1s_1.t1m().q1i(this.g1s_1);
|
|
1649
|
+
} else {
|
|
1650
|
+
this.e1s_1.t1m().p1i(this.g1s_1, this.h1s_1);
|
|
1651
|
+
this.h1s_1 = new Long(0, 0);
|
|
1652
|
+
}
|
|
1653
|
+
|
|
1654
|
+
this.g9_1 = 2;
|
|
1655
|
+
suspendResult = this.e1s_1.c1n(VOID, this);
|
|
1656
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1657
|
+
return suspendResult;
|
|
1658
|
+
}
|
|
1659
|
+
|
|
1660
|
+
continue $sm;
|
|
1661
|
+
case 2:
|
|
1662
|
+
this.g9_1 = 1;
|
|
1663
|
+
continue $sm;
|
|
1664
|
+
case 3:
|
|
1665
|
+
return this.g1s_1.m1h();
|
|
1666
|
+
case 4:
|
|
1667
|
+
throw this.j9_1;
|
|
1668
|
+
}
|
|
1669
|
+
} catch ($p) {
|
|
1670
|
+
var e = $p;
|
|
1671
|
+
if (this.h9_1 === 4) {
|
|
1672
|
+
throw e;
|
|
1673
|
+
} else {
|
|
1674
|
+
this.g9_1 = this.h9_1;
|
|
1675
|
+
this.j9_1 = e;
|
|
1676
|
+
}
|
|
1677
|
+
}
|
|
1678
|
+
while (true);
|
|
1679
|
+
};
|
|
1508
1680
|
function $skipIfFoundCOROUTINE$15(_this__u8e3s4, byteString, resultContinuation) {
|
|
1509
1681
|
CoroutineImpl.call(this, resultContinuation);
|
|
1510
|
-
this.
|
|
1511
|
-
this.
|
|
1682
|
+
this.q1s_1 = _this__u8e3s4;
|
|
1683
|
+
this.r1s_1 = byteString;
|
|
1512
1684
|
}
|
|
1513
1685
|
protoOf($skipIfFoundCOROUTINE$15).o9 = function () {
|
|
1514
1686
|
var suspendResult = this.i9_1;
|
|
@@ -1519,17 +1691,17 @@
|
|
|
1519
1691
|
case 0:
|
|
1520
1692
|
this.h9_1 = 4;
|
|
1521
1693
|
this.g9_1 = 1;
|
|
1522
|
-
suspendResult = peek(this.
|
|
1694
|
+
suspendResult = peek(this.q1s_1, this.r1s_1.s(), this);
|
|
1523
1695
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1524
1696
|
return suspendResult;
|
|
1525
1697
|
}
|
|
1526
1698
|
|
|
1527
1699
|
continue $sm;
|
|
1528
1700
|
case 1:
|
|
1529
|
-
this.
|
|
1530
|
-
if (equals(this.
|
|
1701
|
+
this.s1s_1 = suspendResult;
|
|
1702
|
+
if (equals(this.s1s_1, this.r1s_1)) {
|
|
1531
1703
|
this.g9_1 = 3;
|
|
1532
|
-
suspendResult = discard(this.
|
|
1704
|
+
suspendResult = discard(this.q1s_1, toLong(this.r1s_1.s()), this);
|
|
1533
1705
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1534
1706
|
return suspendResult;
|
|
1535
1707
|
}
|
|
@@ -1559,11 +1731,11 @@
|
|
|
1559
1731
|
};
|
|
1560
1732
|
function $readUntilCOROUTINE$16(_this__u8e3s4, matchString, writeChannel, limit, ignoreMissing, resultContinuation) {
|
|
1561
1733
|
CoroutineImpl.call(this, resultContinuation);
|
|
1562
|
-
this.
|
|
1563
|
-
this.
|
|
1564
|
-
this.
|
|
1565
|
-
this.
|
|
1566
|
-
this.
|
|
1734
|
+
this.b1t_1 = _this__u8e3s4;
|
|
1735
|
+
this.c1t_1 = matchString;
|
|
1736
|
+
this.d1t_1 = writeChannel;
|
|
1737
|
+
this.e1t_1 = limit;
|
|
1738
|
+
this.f1t_1 = ignoreMissing;
|
|
1567
1739
|
}
|
|
1568
1740
|
protoOf($readUntilCOROUTINE$16).o9 = function () {
|
|
1569
1741
|
var suspendResult = this.i9_1;
|
|
@@ -1573,35 +1745,35 @@
|
|
|
1573
1745
|
switch (tmp) {
|
|
1574
1746
|
case 0:
|
|
1575
1747
|
this.h9_1 = 11;
|
|
1576
|
-
if (!(this.
|
|
1748
|
+
if (!(this.c1t_1.s() > 0)) {
|
|
1577
1749
|
var message = 'Empty match string not permitted for readUntil';
|
|
1578
1750
|
throw IllegalStateException_init_$Create$(toString_1(message));
|
|
1579
1751
|
}
|
|
1580
1752
|
|
|
1581
|
-
this.
|
|
1582
|
-
this.
|
|
1583
|
-
this.
|
|
1584
|
-
this.
|
|
1753
|
+
this.g1t_1 = buildPartialMatchTable(this.c1t_1);
|
|
1754
|
+
this.h1t_1 = {_v: 0};
|
|
1755
|
+
this.i1t_1 = new Int8Array(this.c1t_1.s());
|
|
1756
|
+
this.j1t_1 = {_v: new Long(0, 0)};
|
|
1585
1757
|
this.g9_1 = 1;
|
|
1586
1758
|
continue $sm;
|
|
1587
1759
|
case 1:
|
|
1588
|
-
if (!!this.
|
|
1760
|
+
if (!!this.b1t_1.a1n()) {
|
|
1589
1761
|
this.g9_1 = 7;
|
|
1590
1762
|
continue $sm;
|
|
1591
1763
|
}
|
|
1592
1764
|
|
|
1593
1765
|
this.g9_1 = 2;
|
|
1594
|
-
suspendResult = readByte(this.
|
|
1766
|
+
suspendResult = readByte(this.b1t_1, this);
|
|
1595
1767
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1596
1768
|
return suspendResult;
|
|
1597
1769
|
}
|
|
1598
1770
|
|
|
1599
1771
|
continue $sm;
|
|
1600
1772
|
case 2:
|
|
1601
|
-
this.
|
|
1602
|
-
if (this.
|
|
1773
|
+
this.k1t_1 = suspendResult;
|
|
1774
|
+
if (this.h1t_1._v > 0 && !(this.k1t_1 === this.c1t_1.u(this.h1t_1._v))) {
|
|
1603
1775
|
this.g9_1 = 3;
|
|
1604
|
-
suspendResult = readUntil$appendPartialMatch(this.
|
|
1776
|
+
suspendResult = readUntil$appendPartialMatch(this.d1t_1, this.i1t_1, this.h1t_1, this.j1t_1, this);
|
|
1605
1777
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1606
1778
|
return suspendResult;
|
|
1607
1779
|
}
|
|
@@ -1612,23 +1784,23 @@
|
|
|
1612
1784
|
}
|
|
1613
1785
|
|
|
1614
1786
|
case 3:
|
|
1615
|
-
readUntil$resetPartialMatch(this.
|
|
1787
|
+
readUntil$resetPartialMatch(this.h1t_1, this.c1t_1, this.g1t_1, this.k1t_1);
|
|
1616
1788
|
this.g9_1 = 4;
|
|
1617
1789
|
continue $sm;
|
|
1618
1790
|
case 4:
|
|
1619
|
-
if (this.
|
|
1791
|
+
if (this.k1t_1 === this.c1t_1.u(this.h1t_1._v)) {
|
|
1620
1792
|
var tmp_0 = this;
|
|
1621
|
-
this.
|
|
1622
|
-
this.
|
|
1623
|
-
if (this.
|
|
1624
|
-
return this.
|
|
1793
|
+
this.i1t_1[this.h1t_1._v] = this.k1t_1;
|
|
1794
|
+
this.h1t_1._v = this.h1t_1._v + 1 | 0;
|
|
1795
|
+
if (this.h1t_1._v === this.c1t_1.s()) {
|
|
1796
|
+
return this.j1t_1._v;
|
|
1625
1797
|
}
|
|
1626
|
-
tmp_0.
|
|
1798
|
+
tmp_0.l1t_1 = Unit_instance;
|
|
1627
1799
|
this.g9_1 = 6;
|
|
1628
1800
|
continue $sm;
|
|
1629
1801
|
} else {
|
|
1630
1802
|
this.g9_1 = 5;
|
|
1631
|
-
suspendResult = writeByte(this.
|
|
1803
|
+
suspendResult = writeByte(this.d1t_1, this.k1t_1, this);
|
|
1632
1804
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1633
1805
|
return suspendResult;
|
|
1634
1806
|
}
|
|
@@ -1637,22 +1809,22 @@
|
|
|
1637
1809
|
|
|
1638
1810
|
case 5:
|
|
1639
1811
|
var tmp_1 = this;
|
|
1640
|
-
var _unary__edvuaz = this.
|
|
1641
|
-
this.
|
|
1642
|
-
tmp_1.
|
|
1812
|
+
var _unary__edvuaz = this.j1t_1._v;
|
|
1813
|
+
this.j1t_1._v = _unary__edvuaz.e3();
|
|
1814
|
+
tmp_1.l1t_1 = _unary__edvuaz;
|
|
1643
1815
|
this.g9_1 = 6;
|
|
1644
1816
|
continue $sm;
|
|
1645
1817
|
case 6:
|
|
1646
|
-
if (this.
|
|
1647
|
-
throw IOException_init_$Create$('Limit of ' + this.
|
|
1818
|
+
if (this.j1t_1._v.e1(this.e1t_1) > 0) {
|
|
1819
|
+
throw IOException_init_$Create$('Limit of ' + this.e1t_1.toString() + ' bytes exceeded while scanning for "' + decodeToString(this.c1t_1) + '"');
|
|
1648
1820
|
}
|
|
1649
1821
|
|
|
1650
1822
|
this.g9_1 = 1;
|
|
1651
1823
|
continue $sm;
|
|
1652
1824
|
case 7:
|
|
1653
|
-
if (this.
|
|
1825
|
+
if (this.f1t_1) {
|
|
1654
1826
|
this.g9_1 = 9;
|
|
1655
|
-
suspendResult = readUntil$appendPartialMatch(this.
|
|
1827
|
+
suspendResult = readUntil$appendPartialMatch(this.d1t_1, this.i1t_1, this.h1t_1, this.j1t_1, this);
|
|
1656
1828
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1657
1829
|
return suspendResult;
|
|
1658
1830
|
}
|
|
@@ -1663,17 +1835,17 @@
|
|
|
1663
1835
|
}
|
|
1664
1836
|
|
|
1665
1837
|
case 8:
|
|
1666
|
-
throw IOException_init_$Create$('Expected "' + toSingleLineString(this.
|
|
1838
|
+
throw IOException_init_$Create$('Expected "' + toSingleLineString(this.c1t_1) + '" but encountered end of input');
|
|
1667
1839
|
case 9:
|
|
1668
1840
|
this.g9_1 = 10;
|
|
1669
|
-
suspendResult = this.
|
|
1841
|
+
suspendResult = this.d1t_1.s1m(this);
|
|
1670
1842
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1671
1843
|
return suspendResult;
|
|
1672
1844
|
}
|
|
1673
1845
|
|
|
1674
1846
|
continue $sm;
|
|
1675
1847
|
case 10:
|
|
1676
|
-
return this.
|
|
1848
|
+
return this.j1t_1._v;
|
|
1677
1849
|
case 11:
|
|
1678
1850
|
throw this.j9_1;
|
|
1679
1851
|
}
|
|
@@ -1690,8 +1862,8 @@
|
|
|
1690
1862
|
};
|
|
1691
1863
|
function $peekCOROUTINE$17(_this__u8e3s4, count, resultContinuation) {
|
|
1692
1864
|
CoroutineImpl.call(this, resultContinuation);
|
|
1693
|
-
this.
|
|
1694
|
-
this.
|
|
1865
|
+
this.u1t_1 = _this__u8e3s4;
|
|
1866
|
+
this.v1t_1 = count;
|
|
1695
1867
|
}
|
|
1696
1868
|
protoOf($peekCOROUTINE$17).o9 = function () {
|
|
1697
1869
|
var suspendResult = this.i9_1;
|
|
@@ -1701,10 +1873,10 @@
|
|
|
1701
1873
|
switch (tmp) {
|
|
1702
1874
|
case 0:
|
|
1703
1875
|
this.h9_1 = 3;
|
|
1704
|
-
if (this.
|
|
1876
|
+
if (this.u1t_1.a1n())
|
|
1705
1877
|
return null;
|
|
1706
1878
|
this.g9_1 = 1;
|
|
1707
|
-
suspendResult = this.
|
|
1879
|
+
suspendResult = this.u1t_1.b1n(this.v1t_1, this);
|
|
1708
1880
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1709
1881
|
return suspendResult;
|
|
1710
1882
|
}
|
|
@@ -1720,7 +1892,7 @@
|
|
|
1720
1892
|
}
|
|
1721
1893
|
|
|
1722
1894
|
case 2:
|
|
1723
|
-
return readByteString(this.
|
|
1895
|
+
return readByteString(this.u1t_1.t1m().r1i(), this.v1t_1);
|
|
1724
1896
|
case 3:
|
|
1725
1897
|
throw this.j9_1;
|
|
1726
1898
|
}
|
|
@@ -1737,7 +1909,7 @@
|
|
|
1737
1909
|
};
|
|
1738
1910
|
function $readByteCOROUTINE$18(_this__u8e3s4, resultContinuation) {
|
|
1739
1911
|
CoroutineImpl.call(this, resultContinuation);
|
|
1740
|
-
this.
|
|
1912
|
+
this.e1u_1 = _this__u8e3s4;
|
|
1741
1913
|
}
|
|
1742
1914
|
protoOf($readByteCOROUTINE$18).o9 = function () {
|
|
1743
1915
|
var suspendResult = this.i9_1;
|
|
@@ -1747,9 +1919,9 @@
|
|
|
1747
1919
|
switch (tmp) {
|
|
1748
1920
|
case 0:
|
|
1749
1921
|
this.h9_1 = 3;
|
|
1750
|
-
if (this.
|
|
1922
|
+
if (this.e1u_1.t1m().n1h()) {
|
|
1751
1923
|
this.g9_1 = 1;
|
|
1752
|
-
suspendResult = this.
|
|
1924
|
+
suspendResult = this.e1u_1.c1n(VOID, this);
|
|
1753
1925
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1754
1926
|
return suspendResult;
|
|
1755
1927
|
}
|
|
@@ -1763,11 +1935,11 @@
|
|
|
1763
1935
|
this.g9_1 = 2;
|
|
1764
1936
|
continue $sm;
|
|
1765
1937
|
case 2:
|
|
1766
|
-
if (this.
|
|
1938
|
+
if (this.e1u_1.t1m().n1h()) {
|
|
1767
1939
|
throw EOFException_init_$Create$('Not enough data available');
|
|
1768
1940
|
}
|
|
1769
1941
|
|
|
1770
|
-
return this.
|
|
1942
|
+
return this.e1u_1.t1m().q1h();
|
|
1771
1943
|
case 3:
|
|
1772
1944
|
throw this.j9_1;
|
|
1773
1945
|
}
|
|
@@ -1784,10 +1956,10 @@
|
|
|
1784
1956
|
};
|
|
1785
1957
|
function $readUntil$appendPartialMatchCOROUTINE$19($writeChannel, matchBuffer, matchIndex, rc, resultContinuation) {
|
|
1786
1958
|
CoroutineImpl.call(this, resultContinuation);
|
|
1787
|
-
this.
|
|
1788
|
-
this.
|
|
1789
|
-
this.
|
|
1790
|
-
this.
|
|
1959
|
+
this.n1u_1 = $writeChannel;
|
|
1960
|
+
this.o1u_1 = matchBuffer;
|
|
1961
|
+
this.p1u_1 = matchIndex;
|
|
1962
|
+
this.q1u_1 = rc;
|
|
1791
1963
|
}
|
|
1792
1964
|
protoOf($readUntil$appendPartialMatchCOROUTINE$19).o9 = function () {
|
|
1793
1965
|
var suspendResult = this.i9_1;
|
|
@@ -1798,17 +1970,17 @@
|
|
|
1798
1970
|
case 0:
|
|
1799
1971
|
this.h9_1 = 2;
|
|
1800
1972
|
this.g9_1 = 1;
|
|
1801
|
-
suspendResult = writeFully(this.
|
|
1973
|
+
suspendResult = writeFully(this.n1u_1, this.o1u_1, 0, this.p1u_1._v, this);
|
|
1802
1974
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1803
1975
|
return suspendResult;
|
|
1804
1976
|
}
|
|
1805
1977
|
|
|
1806
1978
|
continue $sm;
|
|
1807
1979
|
case 1:
|
|
1808
|
-
var tmp0 = this.
|
|
1809
|
-
var other = this.
|
|
1810
|
-
this.
|
|
1811
|
-
this.
|
|
1980
|
+
var tmp0 = this.q1u_1._v;
|
|
1981
|
+
var other = this.p1u_1._v;
|
|
1982
|
+
this.q1u_1._v = tmp0.z2(toLong(other));
|
|
1983
|
+
this.p1u_1._v = 0;
|
|
1812
1984
|
return Unit_instance;
|
|
1813
1985
|
case 2:
|
|
1814
1986
|
throw this.j9_1;
|
|
@@ -1832,7 +2004,7 @@
|
|
|
1832
2004
|
}
|
|
1833
2005
|
function $flushIfNeededCOROUTINE$20(_this__u8e3s4, resultContinuation) {
|
|
1834
2006
|
CoroutineImpl.call(this, resultContinuation);
|
|
1835
|
-
this.
|
|
2007
|
+
this.z1u_1 = _this__u8e3s4;
|
|
1836
2008
|
}
|
|
1837
2009
|
protoOf($flushIfNeededCOROUTINE$20).o9 = function () {
|
|
1838
2010
|
var suspendResult = this.i9_1;
|
|
@@ -1842,19 +2014,19 @@
|
|
|
1842
2014
|
switch (tmp) {
|
|
1843
2015
|
case 0:
|
|
1844
2016
|
this.h9_1 = 3;
|
|
1845
|
-
rethrowCloseCauseIfNeeded_0(this.
|
|
2017
|
+
rethrowCloseCauseIfNeeded_0(this.z1u_1);
|
|
1846
2018
|
var tmp_0;
|
|
1847
|
-
var tmp_1 = this.
|
|
2019
|
+
var tmp_1 = this.z1u_1;
|
|
1848
2020
|
var tmp0_safe_receiver = tmp_1 instanceof ByteChannel ? tmp_1 : null;
|
|
1849
|
-
if ((tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
2021
|
+
if ((tmp0_safe_receiver == null ? null : tmp0_safe_receiver.x1k_1) === true) {
|
|
1850
2022
|
tmp_0 = true;
|
|
1851
2023
|
} else {
|
|
1852
|
-
tmp_0 = get_size(this.
|
|
2024
|
+
tmp_0 = get_size(this.z1u_1.w1m()) >= 1048576;
|
|
1853
2025
|
}
|
|
1854
2026
|
|
|
1855
2027
|
if (tmp_0) {
|
|
1856
2028
|
this.g9_1 = 1;
|
|
1857
|
-
suspendResult = this.
|
|
2029
|
+
suspendResult = this.z1u_1.s1m(this);
|
|
1858
2030
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1859
2031
|
return suspendResult;
|
|
1860
2032
|
}
|
|
@@ -1889,11 +2061,11 @@
|
|
|
1889
2061
|
}
|
|
1890
2062
|
var NO_CALLBACK;
|
|
1891
2063
|
function WriterJob(channel, job) {
|
|
1892
|
-
this.
|
|
1893
|
-
this.
|
|
2064
|
+
this.a1v_1 = channel;
|
|
2065
|
+
this.b1v_1 = job;
|
|
1894
2066
|
}
|
|
1895
|
-
protoOf(WriterJob).
|
|
1896
|
-
return this.
|
|
2067
|
+
protoOf(WriterJob).zr = function () {
|
|
2068
|
+
return this.b1v_1;
|
|
1897
2069
|
};
|
|
1898
2070
|
function writer(_this__u8e3s4, coroutineContext, autoFlush, block) {
|
|
1899
2071
|
coroutineContext = coroutineContext === VOID ? EmptyCoroutineContext_getInstance() : coroutineContext;
|
|
@@ -1902,16 +2074,16 @@
|
|
|
1902
2074
|
return writer_0(_this__u8e3s4, coroutineContext, new ByteChannel(), block);
|
|
1903
2075
|
}
|
|
1904
2076
|
function WriterScope(channel, coroutineContext) {
|
|
1905
|
-
this.
|
|
1906
|
-
this.
|
|
2077
|
+
this.c1v_1 = channel;
|
|
2078
|
+
this.d1v_1 = coroutineContext;
|
|
1907
2079
|
}
|
|
1908
|
-
protoOf(WriterScope).
|
|
1909
|
-
return this.
|
|
2080
|
+
protoOf(WriterScope).po = function () {
|
|
2081
|
+
return this.d1v_1;
|
|
1910
2082
|
};
|
|
1911
2083
|
function writeFully(_this__u8e3s4, value, startIndex, endIndex, $completion) {
|
|
1912
2084
|
startIndex = startIndex === VOID ? 0 : startIndex;
|
|
1913
2085
|
endIndex = endIndex === VOID ? value.length : endIndex;
|
|
1914
|
-
_this__u8e3s4.
|
|
2086
|
+
_this__u8e3s4.w1m().w1i(value, startIndex, endIndex);
|
|
1915
2087
|
return flushIfNeeded(_this__u8e3s4, $completion);
|
|
1916
2088
|
}
|
|
1917
2089
|
function writePacket(_this__u8e3s4, source, $completion) {
|
|
@@ -1922,27 +2094,27 @@
|
|
|
1922
2094
|
}
|
|
1923
2095
|
function get_isCompleted(_this__u8e3s4) {
|
|
1924
2096
|
_init_properties_ByteWriteChannelOperations_kt__i7slrs();
|
|
1925
|
-
return _this__u8e3s4.
|
|
2097
|
+
return _this__u8e3s4.zr().kp();
|
|
1926
2098
|
}
|
|
1927
2099
|
function close_0(_this__u8e3s4, cause) {
|
|
1928
2100
|
_init_properties_ByteWriteChannelOperations_kt__i7slrs();
|
|
1929
2101
|
if (cause == null) {
|
|
1930
2102
|
fireAndForget(ByteWriteChannel$flushAndClose$ref_0(_this__u8e3s4));
|
|
1931
2103
|
} else {
|
|
1932
|
-
_this__u8e3s4.
|
|
2104
|
+
_this__u8e3s4.e1n(cause);
|
|
1933
2105
|
}
|
|
1934
2106
|
}
|
|
1935
2107
|
function invokeOnCompletion(_this__u8e3s4, block) {
|
|
1936
2108
|
_init_properties_ByteWriteChannelOperations_kt__i7slrs();
|
|
1937
|
-
var tmp = _this__u8e3s4.
|
|
1938
|
-
tmp.
|
|
2109
|
+
var tmp = _this__u8e3s4.zr();
|
|
2110
|
+
tmp.rp(invokeOnCompletion$lambda(block));
|
|
1939
2111
|
}
|
|
1940
2112
|
function writer_0(_this__u8e3s4, coroutineContext, channel, block) {
|
|
1941
2113
|
coroutineContext = coroutineContext === VOID ? EmptyCoroutineContext_getInstance() : coroutineContext;
|
|
1942
2114
|
_init_properties_ByteWriteChannelOperations_kt__i7slrs();
|
|
1943
2115
|
// Inline function 'kotlin.apply' call
|
|
1944
2116
|
var this_0 = launch(_this__u8e3s4, coroutineContext, VOID, writer$slambda_0(block, channel, null));
|
|
1945
|
-
this_0.
|
|
2117
|
+
this_0.rp(writer$lambda(channel));
|
|
1946
2118
|
var job = this_0;
|
|
1947
2119
|
return new WriterJob(channel, job);
|
|
1948
2120
|
}
|
|
@@ -1951,14 +2123,14 @@
|
|
|
1951
2123
|
startCoroutineCancellable(_this__u8e3s4, get_NO_CALLBACK());
|
|
1952
2124
|
}
|
|
1953
2125
|
function writeByte(_this__u8e3s4, value, $completion) {
|
|
1954
|
-
_this__u8e3s4.
|
|
2126
|
+
_this__u8e3s4.w1m().g1j(value);
|
|
1955
2127
|
return flushIfNeeded(_this__u8e3s4, $completion);
|
|
1956
2128
|
}
|
|
1957
2129
|
function NO_CALLBACK$1() {
|
|
1958
|
-
this.
|
|
2130
|
+
this.o1v_1 = EmptyCoroutineContext_getInstance();
|
|
1959
2131
|
}
|
|
1960
2132
|
protoOf(NO_CALLBACK$1).m9 = function () {
|
|
1961
|
-
return this.
|
|
2133
|
+
return this.o1v_1;
|
|
1962
2134
|
};
|
|
1963
2135
|
protoOf(NO_CALLBACK$1).n9 = function (result) {
|
|
1964
2136
|
return Unit_instance;
|
|
@@ -1967,18 +2139,18 @@
|
|
|
1967
2139
|
return this.n9(result);
|
|
1968
2140
|
};
|
|
1969
2141
|
function ByteWriteChannel$flushAndClose$ref($boundThis) {
|
|
1970
|
-
this.
|
|
2142
|
+
this.p1v_1 = $boundThis;
|
|
1971
2143
|
}
|
|
1972
|
-
protoOf(ByteWriteChannel$flushAndClose$ref).
|
|
1973
|
-
return this.
|
|
2144
|
+
protoOf(ByteWriteChannel$flushAndClose$ref).q1v = function ($completion) {
|
|
2145
|
+
return this.p1v_1.d1n($completion);
|
|
1974
2146
|
};
|
|
1975
2147
|
protoOf(ByteWriteChannel$flushAndClose$ref).hb = function ($completion) {
|
|
1976
|
-
return this.
|
|
2148
|
+
return this.q1v($completion);
|
|
1977
2149
|
};
|
|
1978
2150
|
function ByteWriteChannel$flushAndClose$ref_0($boundThis) {
|
|
1979
2151
|
var i = new ByteWriteChannel$flushAndClose$ref($boundThis);
|
|
1980
2152
|
var l = function ($completion) {
|
|
1981
|
-
return i.
|
|
2153
|
+
return i.q1v($completion);
|
|
1982
2154
|
};
|
|
1983
2155
|
l.callableName = 'flushAndClose';
|
|
1984
2156
|
l.$arity = 0;
|
|
@@ -1991,18 +2163,18 @@
|
|
|
1991
2163
|
};
|
|
1992
2164
|
}
|
|
1993
2165
|
function writer$slambda($block, $channel, resultContinuation) {
|
|
1994
|
-
this.
|
|
1995
|
-
this.
|
|
2166
|
+
this.z1v_1 = $block;
|
|
2167
|
+
this.a1w_1 = $channel;
|
|
1996
2168
|
CoroutineImpl.call(this, resultContinuation);
|
|
1997
2169
|
}
|
|
1998
|
-
protoOf(writer$slambda).
|
|
1999
|
-
var tmp = this.
|
|
2170
|
+
protoOf(writer$slambda).u1w = function ($this$launch, $completion) {
|
|
2171
|
+
var tmp = this.v1w($this$launch, $completion);
|
|
2000
2172
|
tmp.i9_1 = Unit_instance;
|
|
2001
2173
|
tmp.j9_1 = null;
|
|
2002
2174
|
return tmp.o9();
|
|
2003
2175
|
};
|
|
2004
2176
|
protoOf(writer$slambda).ca = function (p1, $completion) {
|
|
2005
|
-
return this.
|
|
2177
|
+
return this.u1w((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
2006
2178
|
};
|
|
2007
2179
|
protoOf(writer$slambda).o9 = function () {
|
|
2008
2180
|
var suspendResult = this.i9_1;
|
|
@@ -2012,29 +2184,29 @@
|
|
|
2012
2184
|
switch (tmp) {
|
|
2013
2185
|
case 0:
|
|
2014
2186
|
this.h9_1 = 14;
|
|
2015
|
-
this.
|
|
2187
|
+
this.c1w_1 = Job(get_job(this.b1w_1.po()));
|
|
2016
2188
|
this.g9_1 = 1;
|
|
2017
2189
|
continue $sm;
|
|
2018
2190
|
case 1:
|
|
2019
2191
|
this.h9_1 = 4;
|
|
2020
2192
|
this.h9_1 = 3;
|
|
2021
2193
|
this.g9_1 = 2;
|
|
2022
|
-
suspendResult = this.
|
|
2194
|
+
suspendResult = this.z1v_1(new WriterScope(this.a1w_1, this.b1w_1.po().rh(this.c1w_1)), this);
|
|
2023
2195
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2024
2196
|
return suspendResult;
|
|
2025
2197
|
}
|
|
2026
2198
|
|
|
2027
2199
|
continue $sm;
|
|
2028
2200
|
case 2:
|
|
2029
|
-
this.
|
|
2201
|
+
this.c1w_1.yw();
|
|
2030
2202
|
var tmp_0 = this;
|
|
2031
2203
|
var tmp_1;
|
|
2032
|
-
if (get_job(this.
|
|
2033
|
-
this.
|
|
2204
|
+
if (get_job(this.b1w_1.po()).lp()) {
|
|
2205
|
+
this.a1w_1.e1n(get_job(this.b1w_1.po()).op());
|
|
2034
2206
|
tmp_1 = Unit_instance;
|
|
2035
2207
|
}
|
|
2036
2208
|
|
|
2037
|
-
tmp_0.
|
|
2209
|
+
tmp_0.d1w_1 = tmp_1;
|
|
2038
2210
|
this.h9_1 = 14;
|
|
2039
2211
|
this.g9_1 = 9;
|
|
2040
2212
|
continue $sm;
|
|
@@ -2042,11 +2214,11 @@
|
|
|
2042
2214
|
this.h9_1 = 4;
|
|
2043
2215
|
var tmp_2 = this.j9_1;
|
|
2044
2216
|
if (tmp_2 instanceof Error) {
|
|
2045
|
-
this.
|
|
2217
|
+
this.e1w_1 = this.j9_1;
|
|
2046
2218
|
var tmp_3 = this;
|
|
2047
|
-
cancel(this.
|
|
2048
|
-
this.
|
|
2049
|
-
tmp_3.
|
|
2219
|
+
cancel(this.c1w_1, 'Exception thrown while writing to channel', this.e1w_1);
|
|
2220
|
+
this.a1w_1.e1n(this.e1w_1);
|
|
2221
|
+
tmp_3.d1w_1 = Unit_instance;
|
|
2050
2222
|
this.h9_1 = 14;
|
|
2051
2223
|
this.g9_1 = 9;
|
|
2052
2224
|
continue $sm;
|
|
@@ -2056,9 +2228,9 @@
|
|
|
2056
2228
|
|
|
2057
2229
|
case 4:
|
|
2058
2230
|
this.h9_1 = 14;
|
|
2059
|
-
this.
|
|
2231
|
+
this.f1w_1 = this.j9_1;
|
|
2060
2232
|
this.g9_1 = 5;
|
|
2061
|
-
suspendResult = this.
|
|
2233
|
+
suspendResult = this.c1w_1.zw(this);
|
|
2062
2234
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2063
2235
|
return suspendResult;
|
|
2064
2236
|
}
|
|
@@ -2066,27 +2238,27 @@
|
|
|
2066
2238
|
continue $sm;
|
|
2067
2239
|
case 5:
|
|
2068
2240
|
var tmp_4 = this;
|
|
2069
|
-
tmp_4.
|
|
2070
|
-
this.
|
|
2241
|
+
tmp_4.g1w_1 = this.b1w_1;
|
|
2242
|
+
this.h1w_1 = this.g1w_1;
|
|
2071
2243
|
this.h9_1 = 7;
|
|
2072
2244
|
var tmp_5 = this;
|
|
2073
|
-
tmp_5.
|
|
2245
|
+
tmp_5.j1w_1 = Companion_instance;
|
|
2074
2246
|
var tmp_6 = this;
|
|
2075
|
-
tmp_6.
|
|
2076
|
-
this.
|
|
2247
|
+
tmp_6.k1w_1 = this.h1w_1;
|
|
2248
|
+
this.l1w_1 = this.k1w_1;
|
|
2077
2249
|
this.g9_1 = 6;
|
|
2078
|
-
suspendResult = this.
|
|
2250
|
+
suspendResult = this.a1w_1.d1n(this);
|
|
2079
2251
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2080
2252
|
return suspendResult;
|
|
2081
2253
|
}
|
|
2082
2254
|
|
|
2083
2255
|
continue $sm;
|
|
2084
2256
|
case 6:
|
|
2085
|
-
this.
|
|
2257
|
+
this.m1w_1 = Unit_instance;
|
|
2086
2258
|
var tmp_7 = this;
|
|
2087
|
-
this.
|
|
2088
|
-
var value = this.
|
|
2089
|
-
tmp_7.
|
|
2259
|
+
this.j1w_1;
|
|
2260
|
+
var value = this.m1w_1;
|
|
2261
|
+
tmp_7.i1w_1 = _Result___init__impl__xyqfz8(value);
|
|
2090
2262
|
this.h9_1 = 14;
|
|
2091
2263
|
this.g9_1 = 8;
|
|
2092
2264
|
continue $sm;
|
|
@@ -2094,10 +2266,10 @@
|
|
|
2094
2266
|
this.h9_1 = 14;
|
|
2095
2267
|
var tmp_8 = this.j9_1;
|
|
2096
2268
|
if (tmp_8 instanceof Error) {
|
|
2097
|
-
this.
|
|
2269
|
+
this.n1w_1 = this.j9_1;
|
|
2098
2270
|
var tmp_9 = this;
|
|
2099
|
-
var exception = this.
|
|
2100
|
-
tmp_9.
|
|
2271
|
+
var exception = this.n1w_1;
|
|
2272
|
+
tmp_9.i1w_1 = _Result___init__impl__xyqfz8(createFailure(exception));
|
|
2101
2273
|
this.g9_1 = 8;
|
|
2102
2274
|
continue $sm;
|
|
2103
2275
|
} else {
|
|
@@ -2106,11 +2278,11 @@
|
|
|
2106
2278
|
|
|
2107
2279
|
case 8:
|
|
2108
2280
|
this.h9_1 = 14;
|
|
2109
|
-
throw this.
|
|
2281
|
+
throw this.f1w_1;
|
|
2110
2282
|
case 9:
|
|
2111
2283
|
this.h9_1 = 14;
|
|
2112
2284
|
this.g9_1 = 10;
|
|
2113
|
-
suspendResult = this.
|
|
2285
|
+
suspendResult = this.c1w_1.zw(this);
|
|
2114
2286
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2115
2287
|
return suspendResult;
|
|
2116
2288
|
}
|
|
@@ -2118,16 +2290,16 @@
|
|
|
2118
2290
|
continue $sm;
|
|
2119
2291
|
case 10:
|
|
2120
2292
|
var tmp_10 = this;
|
|
2121
|
-
tmp_10.
|
|
2122
|
-
this.
|
|
2293
|
+
tmp_10.o1w_1 = this.b1w_1;
|
|
2294
|
+
this.p1w_1 = this.o1w_1;
|
|
2123
2295
|
this.h9_1 = 12;
|
|
2124
2296
|
var tmp_11 = this;
|
|
2125
|
-
tmp_11.
|
|
2297
|
+
tmp_11.r1w_1 = Companion_instance;
|
|
2126
2298
|
var tmp_12 = this;
|
|
2127
|
-
tmp_12.
|
|
2128
|
-
this.
|
|
2299
|
+
tmp_12.s1w_1 = this.p1w_1;
|
|
2300
|
+
this.t1w_1 = this.s1w_1;
|
|
2129
2301
|
this.g9_1 = 11;
|
|
2130
|
-
suspendResult = this.
|
|
2302
|
+
suspendResult = this.a1w_1.d1n(this);
|
|
2131
2303
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2132
2304
|
return suspendResult;
|
|
2133
2305
|
}
|
|
@@ -2135,8 +2307,8 @@
|
|
|
2135
2307
|
continue $sm;
|
|
2136
2308
|
case 11:
|
|
2137
2309
|
var tmp_13 = this;
|
|
2138
|
-
this.
|
|
2139
|
-
tmp_13.
|
|
2310
|
+
this.r1w_1;
|
|
2311
|
+
tmp_13.q1w_1 = _Result___init__impl__xyqfz8(Unit_instance);
|
|
2140
2312
|
this.h9_1 = 14;
|
|
2141
2313
|
this.g9_1 = 13;
|
|
2142
2314
|
continue $sm;
|
|
@@ -2146,7 +2318,7 @@
|
|
|
2146
2318
|
if (tmp_14 instanceof Error) {
|
|
2147
2319
|
var e = this.j9_1;
|
|
2148
2320
|
var tmp_15 = this;
|
|
2149
|
-
tmp_15.
|
|
2321
|
+
tmp_15.q1w_1 = _Result___init__impl__xyqfz8(createFailure(e));
|
|
2150
2322
|
this.g9_1 = 13;
|
|
2151
2323
|
continue $sm;
|
|
2152
2324
|
} else {
|
|
@@ -2170,15 +2342,15 @@
|
|
|
2170
2342
|
}
|
|
2171
2343
|
while (true);
|
|
2172
2344
|
};
|
|
2173
|
-
protoOf(writer$slambda).
|
|
2174
|
-
var i = new writer$slambda(this.
|
|
2175
|
-
i.
|
|
2345
|
+
protoOf(writer$slambda).v1w = function ($this$launch, completion) {
|
|
2346
|
+
var i = new writer$slambda(this.z1v_1, this.a1w_1, completion);
|
|
2347
|
+
i.b1w_1 = $this$launch;
|
|
2176
2348
|
return i;
|
|
2177
2349
|
};
|
|
2178
2350
|
function writer$slambda_0($block, $channel, resultContinuation) {
|
|
2179
2351
|
var i = new writer$slambda($block, $channel, resultContinuation);
|
|
2180
2352
|
var l = function ($this$launch, $completion) {
|
|
2181
|
-
return i.
|
|
2353
|
+
return i.u1w($this$launch, $completion);
|
|
2182
2354
|
};
|
|
2183
2355
|
l.$arity = 1;
|
|
2184
2356
|
return l;
|
|
@@ -2186,8 +2358,8 @@
|
|
|
2186
2358
|
function writer$lambda($channel) {
|
|
2187
2359
|
return function (it) {
|
|
2188
2360
|
var tmp;
|
|
2189
|
-
if (!(it == null) && !$channel.
|
|
2190
|
-
$channel.
|
|
2361
|
+
if (!(it == null) && !$channel.x1m()) {
|
|
2362
|
+
$channel.e1n(it);
|
|
2191
2363
|
tmp = Unit_instance;
|
|
2192
2364
|
}
|
|
2193
2365
|
return Unit_instance;
|
|
@@ -2195,8 +2367,8 @@
|
|
|
2195
2367
|
}
|
|
2196
2368
|
function $writePacketCOROUTINE$21(_this__u8e3s4, source, resultContinuation) {
|
|
2197
2369
|
CoroutineImpl.call(this, resultContinuation);
|
|
2198
|
-
this.
|
|
2199
|
-
this.
|
|
2370
|
+
this.m1v_1 = _this__u8e3s4;
|
|
2371
|
+
this.n1v_1 = source;
|
|
2200
2372
|
}
|
|
2201
2373
|
protoOf($writePacketCOROUTINE$21).o9 = function () {
|
|
2202
2374
|
var suspendResult = this.i9_1;
|
|
@@ -2209,14 +2381,14 @@
|
|
|
2209
2381
|
this.g9_1 = 1;
|
|
2210
2382
|
continue $sm;
|
|
2211
2383
|
case 1:
|
|
2212
|
-
if (!!this.
|
|
2384
|
+
if (!!this.n1v_1.n1h()) {
|
|
2213
2385
|
this.g9_1 = 3;
|
|
2214
2386
|
continue $sm;
|
|
2215
2387
|
}
|
|
2216
2388
|
|
|
2217
|
-
this.
|
|
2389
|
+
this.m1v_1.w1m().a1j(this.n1v_1, get_remaining(this.n1v_1));
|
|
2218
2390
|
this.g9_1 = 2;
|
|
2219
|
-
suspendResult = flushIfNeeded(this.
|
|
2391
|
+
suspendResult = flushIfNeeded(this.m1v_1, this);
|
|
2220
2392
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2221
2393
|
return suspendResult;
|
|
2222
2394
|
}
|
|
@@ -2261,27 +2433,27 @@
|
|
|
2261
2433
|
return l;
|
|
2262
2434
|
}
|
|
2263
2435
|
function CloseToken(origin) {
|
|
2264
|
-
this.
|
|
2436
|
+
this.u1m_1 = origin;
|
|
2265
2437
|
}
|
|
2266
|
-
protoOf(CloseToken).
|
|
2267
|
-
var tmp0_subject = this.
|
|
2438
|
+
protoOf(CloseToken).w1w = function (wrap) {
|
|
2439
|
+
var tmp0_subject = this.u1m_1;
|
|
2268
2440
|
var tmp;
|
|
2269
2441
|
if (tmp0_subject == null) {
|
|
2270
2442
|
tmp = null;
|
|
2271
2443
|
} else {
|
|
2272
2444
|
if (!(tmp0_subject == null) ? isInterface(tmp0_subject, CopyableThrowable) : false) {
|
|
2273
|
-
tmp = this.
|
|
2445
|
+
tmp = this.u1m_1.ix();
|
|
2274
2446
|
} else {
|
|
2275
2447
|
if (tmp0_subject instanceof CancellationException) {
|
|
2276
|
-
tmp = CancellationException_init_$Create$(this.
|
|
2448
|
+
tmp = CancellationException_init_$Create$(this.u1m_1.message, this.u1m_1);
|
|
2277
2449
|
} else {
|
|
2278
|
-
tmp = wrap(this.
|
|
2450
|
+
tmp = wrap(this.u1m_1);
|
|
2279
2451
|
}
|
|
2280
2452
|
}
|
|
2281
2453
|
}
|
|
2282
2454
|
return tmp;
|
|
2283
2455
|
};
|
|
2284
|
-
protoOf(CloseToken).
|
|
2456
|
+
protoOf(CloseToken).z1m = function (wrap, $super) {
|
|
2285
2457
|
var tmp;
|
|
2286
2458
|
if (wrap === VOID) {
|
|
2287
2459
|
tmp = ClosedByteChannelException$_init_$ref_yjp351();
|
|
@@ -2289,10 +2461,10 @@
|
|
|
2289
2461
|
tmp = wrap;
|
|
2290
2462
|
}
|
|
2291
2463
|
wrap = tmp;
|
|
2292
|
-
return $super === VOID ? this.
|
|
2464
|
+
return $super === VOID ? this.w1w(wrap) : $super.w1w.call(this, wrap);
|
|
2293
2465
|
};
|
|
2294
|
-
protoOf(CloseToken).
|
|
2295
|
-
var tmp0_safe_receiver = this.
|
|
2466
|
+
protoOf(CloseToken).v1m = function (wrap) {
|
|
2467
|
+
var tmp0_safe_receiver = this.w1w(wrap);
|
|
2296
2468
|
var tmp;
|
|
2297
2469
|
if (tmp0_safe_receiver == null) {
|
|
2298
2470
|
tmp = null;
|
|
@@ -2310,13 +2482,13 @@
|
|
|
2310
2482
|
}
|
|
2311
2483
|
}
|
|
2312
2484
|
function updateConsumed($this) {
|
|
2313
|
-
$this.
|
|
2314
|
-
$this.
|
|
2485
|
+
$this.a1x_1 = $this.a1x_1.z2($this.z1w_1.a3($this.y1w_1.s()));
|
|
2486
|
+
$this.z1w_1 = $this.y1w_1.s();
|
|
2315
2487
|
}
|
|
2316
2488
|
function $awaitContentCOROUTINE$22(_this__u8e3s4, min, resultContinuation) {
|
|
2317
2489
|
CoroutineImpl.call(this, resultContinuation);
|
|
2318
|
-
this.
|
|
2319
|
-
this.
|
|
2490
|
+
this.j1x_1 = _this__u8e3s4;
|
|
2491
|
+
this.k1x_1 = min;
|
|
2320
2492
|
}
|
|
2321
2493
|
protoOf($awaitContentCOROUTINE$22).o9 = function () {
|
|
2322
2494
|
var suspendResult = this.i9_1;
|
|
@@ -2326,13 +2498,13 @@
|
|
|
2326
2498
|
switch (tmp) {
|
|
2327
2499
|
case 0:
|
|
2328
2500
|
this.h9_1 = 3;
|
|
2329
|
-
if (this.
|
|
2330
|
-
this.
|
|
2501
|
+
if (this.j1x_1.t1m().s().e1(toLong(this.k1x_1)) >= 0) {
|
|
2502
|
+
this.l1x_1 = true;
|
|
2331
2503
|
this.g9_1 = 2;
|
|
2332
2504
|
continue $sm;
|
|
2333
2505
|
} else {
|
|
2334
2506
|
this.g9_1 = 1;
|
|
2335
|
-
suspendResult = this.
|
|
2507
|
+
suspendResult = this.j1x_1.x1w_1.b1n(this.k1x_1, this);
|
|
2336
2508
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2337
2509
|
return suspendResult;
|
|
2338
2510
|
}
|
|
@@ -2340,11 +2512,11 @@
|
|
|
2340
2512
|
}
|
|
2341
2513
|
|
|
2342
2514
|
case 1:
|
|
2343
|
-
this.
|
|
2515
|
+
this.l1x_1 = suspendResult;
|
|
2344
2516
|
this.g9_1 = 2;
|
|
2345
2517
|
continue $sm;
|
|
2346
2518
|
case 2:
|
|
2347
|
-
return this.
|
|
2519
|
+
return this.l1x_1;
|
|
2348
2520
|
case 3:
|
|
2349
2521
|
throw this.j9_1;
|
|
2350
2522
|
}
|
|
@@ -2360,36 +2532,36 @@
|
|
|
2360
2532
|
while (true);
|
|
2361
2533
|
};
|
|
2362
2534
|
function CountedByteReadChannel(delegate) {
|
|
2363
|
-
this.
|
|
2364
|
-
this.
|
|
2365
|
-
this.
|
|
2366
|
-
this.
|
|
2535
|
+
this.x1w_1 = delegate;
|
|
2536
|
+
this.y1w_1 = new Buffer();
|
|
2537
|
+
this.z1w_1 = new Long(0, 0);
|
|
2538
|
+
this.a1x_1 = new Long(0, 0);
|
|
2367
2539
|
}
|
|
2368
|
-
protoOf(CountedByteReadChannel).
|
|
2540
|
+
protoOf(CountedByteReadChannel).m1x = function () {
|
|
2369
2541
|
updateConsumed(this);
|
|
2370
|
-
return this.
|
|
2542
|
+
return this.a1x_1;
|
|
2371
2543
|
};
|
|
2372
|
-
protoOf(CountedByteReadChannel).
|
|
2373
|
-
return this.
|
|
2544
|
+
protoOf(CountedByteReadChannel).y1m = function () {
|
|
2545
|
+
return this.x1w_1.y1m();
|
|
2374
2546
|
};
|
|
2375
|
-
protoOf(CountedByteReadChannel).
|
|
2376
|
-
return this.
|
|
2547
|
+
protoOf(CountedByteReadChannel).a1n = function () {
|
|
2548
|
+
return this.y1w_1.n1h() && this.x1w_1.a1n();
|
|
2377
2549
|
};
|
|
2378
|
-
protoOf(CountedByteReadChannel).
|
|
2550
|
+
protoOf(CountedByteReadChannel).t1m = function () {
|
|
2379
2551
|
updateConsumed(this);
|
|
2380
|
-
var appended = this.
|
|
2381
|
-
this.
|
|
2382
|
-
return this.
|
|
2552
|
+
var appended = this.y1w_1.f1j(this.x1w_1.t1m());
|
|
2553
|
+
this.z1w_1 = this.z1w_1.z2(appended);
|
|
2554
|
+
return this.y1w_1;
|
|
2383
2555
|
};
|
|
2384
|
-
protoOf(CountedByteReadChannel).
|
|
2556
|
+
protoOf(CountedByteReadChannel).b1n = function (min, $completion) {
|
|
2385
2557
|
var tmp = new $awaitContentCOROUTINE$22(this, min, $completion);
|
|
2386
2558
|
tmp.i9_1 = Unit_instance;
|
|
2387
2559
|
tmp.j9_1 = null;
|
|
2388
2560
|
return tmp.o9();
|
|
2389
2561
|
};
|
|
2390
|
-
protoOf(CountedByteReadChannel).
|
|
2391
|
-
this.
|
|
2392
|
-
this.
|
|
2562
|
+
protoOf(CountedByteReadChannel).e1n = function (cause) {
|
|
2563
|
+
this.x1w_1.e1n(cause);
|
|
2564
|
+
this.y1w_1.p4();
|
|
2393
2565
|
};
|
|
2394
2566
|
function counted(_this__u8e3s4) {
|
|
2395
2567
|
return new CountedByteReadChannel(_this__u8e3s4);
|
|
@@ -2426,21 +2598,21 @@
|
|
|
2426
2598
|
}
|
|
2427
2599
|
function LineEndingMode__toString_impl_j4h76r($this) {
|
|
2428
2600
|
var tmp;
|
|
2429
|
-
if ($this === Companion_getInstance_1().
|
|
2601
|
+
if ($this === Companion_getInstance_1().x1q_1) {
|
|
2430
2602
|
tmp = 'CR';
|
|
2431
|
-
} else if ($this === Companion_getInstance_1().
|
|
2603
|
+
} else if ($this === Companion_getInstance_1().y1q_1) {
|
|
2432
2604
|
tmp = 'LF';
|
|
2433
|
-
} else if ($this === Companion_getInstance_1().
|
|
2605
|
+
} else if ($this === Companion_getInstance_1().z1q_1) {
|
|
2434
2606
|
tmp = 'CRLF';
|
|
2435
2607
|
} else {
|
|
2436
2608
|
// Inline function 'kotlin.collections.filter' call
|
|
2437
|
-
var tmp0 = Companion_getInstance_1().
|
|
2609
|
+
var tmp0 = Companion_getInstance_1().b1r_1;
|
|
2438
2610
|
// Inline function 'kotlin.collections.filterTo' call
|
|
2439
2611
|
var destination = ArrayList_init_$Create$();
|
|
2440
2612
|
var _iterator__ex2g4s = tmp0.p();
|
|
2441
2613
|
while (_iterator__ex2g4s.q()) {
|
|
2442
2614
|
var element = _iterator__ex2g4s.r();
|
|
2443
|
-
var it = element.
|
|
2615
|
+
var it = element.n1x_1;
|
|
2444
2616
|
if (LineEndingMode__contains_impl_q5pr68($this, it)) {
|
|
2445
2617
|
destination.k(element);
|
|
2446
2618
|
}
|
|
@@ -2451,11 +2623,11 @@
|
|
|
2451
2623
|
}
|
|
2452
2624
|
function Companion_1() {
|
|
2453
2625
|
Companion_instance_2 = this;
|
|
2454
|
-
this.
|
|
2455
|
-
this.
|
|
2456
|
-
this.
|
|
2457
|
-
this.
|
|
2458
|
-
this.
|
|
2626
|
+
this.x1q_1 = _LineEndingMode___init__impl__jo5bul(1);
|
|
2627
|
+
this.y1q_1 = _LineEndingMode___init__impl__jo5bul(2);
|
|
2628
|
+
this.z1q_1 = _LineEndingMode___init__impl__jo5bul(4);
|
|
2629
|
+
this.a1r_1 = _LineEndingMode___init__impl__jo5bul(7);
|
|
2630
|
+
this.b1r_1 = listOf([new LineEndingMode(this.x1q_1), new LineEndingMode(this.y1q_1), new LineEndingMode(this.z1q_1)]);
|
|
2459
2631
|
}
|
|
2460
2632
|
var Companion_instance_2;
|
|
2461
2633
|
function Companion_getInstance_1() {
|
|
@@ -2469,67 +2641,67 @@
|
|
|
2469
2641
|
function LineEndingMode__equals_impl_qyr4nk($this, other) {
|
|
2470
2642
|
if (!(other instanceof LineEndingMode))
|
|
2471
2643
|
return false;
|
|
2472
|
-
if (!($this === (other instanceof LineEndingMode ? other.
|
|
2644
|
+
if (!($this === (other instanceof LineEndingMode ? other.n1x_1 : THROW_CCE())))
|
|
2473
2645
|
return false;
|
|
2474
2646
|
return true;
|
|
2475
2647
|
}
|
|
2476
2648
|
function LineEndingMode(mode) {
|
|
2477
2649
|
Companion_getInstance_1();
|
|
2478
|
-
this.
|
|
2650
|
+
this.n1x_1 = mode;
|
|
2479
2651
|
}
|
|
2480
2652
|
protoOf(LineEndingMode).toString = function () {
|
|
2481
|
-
return LineEndingMode__toString_impl_j4h76r(this.
|
|
2653
|
+
return LineEndingMode__toString_impl_j4h76r(this.n1x_1);
|
|
2482
2654
|
};
|
|
2483
2655
|
protoOf(LineEndingMode).hashCode = function () {
|
|
2484
|
-
return LineEndingMode__hashCode_impl_2mopm4(this.
|
|
2656
|
+
return LineEndingMode__hashCode_impl_2mopm4(this.n1x_1);
|
|
2485
2657
|
};
|
|
2486
2658
|
protoOf(LineEndingMode).equals = function (other) {
|
|
2487
|
-
return LineEndingMode__equals_impl_qyr4nk(this.
|
|
2659
|
+
return LineEndingMode__equals_impl_qyr4nk(this.n1x_1, other);
|
|
2488
2660
|
};
|
|
2489
2661
|
function SourceByteReadChannel(source) {
|
|
2490
|
-
this.
|
|
2491
|
-
this.
|
|
2662
|
+
this.o1x_1 = source;
|
|
2663
|
+
this.p1x_1 = null;
|
|
2492
2664
|
}
|
|
2493
|
-
protoOf(SourceByteReadChannel).
|
|
2494
|
-
var tmp0_safe_receiver = this.
|
|
2495
|
-
return tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
2665
|
+
protoOf(SourceByteReadChannel).y1m = function () {
|
|
2666
|
+
var tmp0_safe_receiver = this.p1x_1;
|
|
2667
|
+
return tmp0_safe_receiver == null ? null : tmp0_safe_receiver.z1m();
|
|
2496
2668
|
};
|
|
2497
|
-
protoOf(SourceByteReadChannel).
|
|
2498
|
-
return this.
|
|
2669
|
+
protoOf(SourceByteReadChannel).a1n = function () {
|
|
2670
|
+
return this.o1x_1.n1h();
|
|
2499
2671
|
};
|
|
2500
|
-
protoOf(SourceByteReadChannel).
|
|
2501
|
-
var tmp0_safe_receiver = this.
|
|
2672
|
+
protoOf(SourceByteReadChannel).t1m = function () {
|
|
2673
|
+
var tmp0_safe_receiver = this.y1m();
|
|
2502
2674
|
if (tmp0_safe_receiver == null)
|
|
2503
2675
|
null;
|
|
2504
2676
|
else {
|
|
2505
2677
|
// Inline function 'kotlin.let' call
|
|
2506
2678
|
throw tmp0_safe_receiver;
|
|
2507
2679
|
}
|
|
2508
|
-
return this.
|
|
2680
|
+
return this.o1x_1.m1h();
|
|
2509
2681
|
};
|
|
2510
|
-
protoOf(SourceByteReadChannel).
|
|
2511
|
-
var tmp0_safe_receiver = this.
|
|
2682
|
+
protoOf(SourceByteReadChannel).b1n = function (min, $completion) {
|
|
2683
|
+
var tmp0_safe_receiver = this.y1m();
|
|
2512
2684
|
if (tmp0_safe_receiver == null)
|
|
2513
2685
|
null;
|
|
2514
2686
|
else {
|
|
2515
2687
|
// Inline function 'kotlin.let' call
|
|
2516
2688
|
throw tmp0_safe_receiver;
|
|
2517
2689
|
}
|
|
2518
|
-
return this.
|
|
2690
|
+
return this.o1x_1.p1h(toLong(min));
|
|
2519
2691
|
};
|
|
2520
|
-
protoOf(SourceByteReadChannel).
|
|
2521
|
-
if (!(this.
|
|
2692
|
+
protoOf(SourceByteReadChannel).e1n = function (cause) {
|
|
2693
|
+
if (!(this.p1x_1 == null))
|
|
2522
2694
|
return Unit_instance;
|
|
2523
|
-
this.
|
|
2695
|
+
this.o1x_1.p4();
|
|
2524
2696
|
var tmp = this;
|
|
2525
2697
|
var tmp1_elvis_lhs = cause == null ? null : cause.message;
|
|
2526
|
-
tmp.
|
|
2698
|
+
tmp.p1x_1 = new CloseToken(IOException_init_$Create$_0(tmp1_elvis_lhs == null ? 'Channel was cancelled' : tmp1_elvis_lhs, cause));
|
|
2527
2699
|
};
|
|
2528
2700
|
function decode(_this__u8e3s4, input, max) {
|
|
2529
2701
|
max = max === VOID ? 2147483647 : max;
|
|
2530
2702
|
var tmp0 = toLong(max);
|
|
2531
2703
|
// Inline function 'kotlin.comparisons.minOf' call
|
|
2532
|
-
var b = input.
|
|
2704
|
+
var b = input.m1h().s();
|
|
2533
2705
|
// Inline function 'kotlin.text.buildString' call
|
|
2534
2706
|
var capacity = (tmp0.e1(b) <= 0 ? tmp0 : b).j1();
|
|
2535
2707
|
// Inline function 'kotlin.apply' call
|
|
@@ -2565,7 +2737,7 @@
|
|
|
2565
2737
|
return builder;
|
|
2566
2738
|
}
|
|
2567
2739
|
function canRead(_this__u8e3s4) {
|
|
2568
|
-
return !_this__u8e3s4.
|
|
2740
|
+
return !_this__u8e3s4.n1h();
|
|
2569
2741
|
}
|
|
2570
2742
|
function readBytes(_this__u8e3s4, count) {
|
|
2571
2743
|
count = count === VOID ? _this__u8e3s4.s().j1() : count;
|
|
@@ -2575,37 +2747,37 @@
|
|
|
2575
2747
|
return new Buffer();
|
|
2576
2748
|
}
|
|
2577
2749
|
function writePacket_0(_this__u8e3s4, packet) {
|
|
2578
|
-
_this__u8e3s4.
|
|
2750
|
+
_this__u8e3s4.f1j(packet);
|
|
2579
2751
|
}
|
|
2580
2752
|
function build(_this__u8e3s4) {
|
|
2581
|
-
return _this__u8e3s4.
|
|
2753
|
+
return _this__u8e3s4.m1h();
|
|
2582
2754
|
}
|
|
2583
2755
|
function writeFully_0(_this__u8e3s4, buffer, offset, length) {
|
|
2584
2756
|
offset = offset === VOID ? 0 : offset;
|
|
2585
2757
|
length = length === VOID ? buffer.length - offset | 0 : length;
|
|
2586
|
-
_this__u8e3s4.
|
|
2758
|
+
_this__u8e3s4.w1i(buffer, offset, offset + length | 0);
|
|
2587
2759
|
}
|
|
2588
2760
|
function get_size(_this__u8e3s4) {
|
|
2589
|
-
return _this__u8e3s4.
|
|
2761
|
+
return _this__u8e3s4.m1h().s().j1();
|
|
2590
2762
|
}
|
|
2591
2763
|
var ByteReadPacketEmpty;
|
|
2592
2764
|
function get_remaining(_this__u8e3s4) {
|
|
2593
2765
|
_init_properties_ByteReadPacket_kt__28475y();
|
|
2594
|
-
return _this__u8e3s4.
|
|
2766
|
+
return _this__u8e3s4.m1h().s();
|
|
2595
2767
|
}
|
|
2596
2768
|
function discard_0(_this__u8e3s4, count) {
|
|
2597
2769
|
count = count === VOID ? new Long(-1, 2147483647) : count;
|
|
2598
2770
|
_init_properties_ByteReadPacket_kt__28475y();
|
|
2599
|
-
_this__u8e3s4.
|
|
2771
|
+
_this__u8e3s4.p1h(count);
|
|
2600
2772
|
// Inline function 'kotlin.comparisons.minOf' call
|
|
2601
2773
|
var b = get_remaining(_this__u8e3s4);
|
|
2602
2774
|
var countToDiscard = count.e1(b) <= 0 ? count : b;
|
|
2603
|
-
_this__u8e3s4.
|
|
2775
|
+
_this__u8e3s4.m1h().k1i(countToDiscard);
|
|
2604
2776
|
return countToDiscard;
|
|
2605
2777
|
}
|
|
2606
2778
|
function takeWhile(_this__u8e3s4, block) {
|
|
2607
2779
|
_init_properties_ByteReadPacket_kt__28475y();
|
|
2608
|
-
while (!_this__u8e3s4.
|
|
2780
|
+
while (!_this__u8e3s4.n1h() && block(_this__u8e3s4.m1h())) {
|
|
2609
2781
|
}
|
|
2610
2782
|
}
|
|
2611
2783
|
var properties_initialized_ByteReadPacket_kt_hw4st4;
|
|
@@ -2618,37 +2790,37 @@
|
|
|
2618
2790
|
function readAvailable_0(_this__u8e3s4, buffer, offset, length) {
|
|
2619
2791
|
offset = offset === VOID ? 0 : offset;
|
|
2620
2792
|
length = length === VOID ? buffer.length - offset | 0 : length;
|
|
2621
|
-
var result = _this__u8e3s4.
|
|
2793
|
+
var result = _this__u8e3s4.l1i(buffer, offset, offset + length | 0);
|
|
2622
2794
|
return result === -1 ? 0 : result;
|
|
2623
2795
|
}
|
|
2624
2796
|
function toByteArray_0(_this__u8e3s4, charset) {
|
|
2625
|
-
charset = charset === VOID ? Charsets_getInstance().
|
|
2626
|
-
if (charset.equals(Charsets_getInstance().
|
|
2797
|
+
charset = charset === VOID ? Charsets_getInstance().q1x_1 : charset;
|
|
2798
|
+
if (charset.equals(Charsets_getInstance().q1x_1))
|
|
2627
2799
|
return encodeToByteArray(_this__u8e3s4, VOID, VOID, true);
|
|
2628
|
-
return encodeToByteArray_0(charset.
|
|
2800
|
+
return encodeToByteArray_0(charset.t1x(), _this__u8e3s4, 0, _this__u8e3s4.length);
|
|
2629
2801
|
}
|
|
2630
2802
|
function readText_0(_this__u8e3s4, charset, max) {
|
|
2631
|
-
charset = charset === VOID ? Charsets_getInstance().
|
|
2803
|
+
charset = charset === VOID ? Charsets_getInstance().q1x_1 : charset;
|
|
2632
2804
|
max = max === VOID ? 2147483647 : max;
|
|
2633
|
-
if (charset.equals(Charsets_getInstance().
|
|
2805
|
+
if (charset.equals(Charsets_getInstance().q1x_1)) {
|
|
2634
2806
|
if (max === 2147483647)
|
|
2635
2807
|
return readString_0(_this__u8e3s4);
|
|
2636
|
-
var tmp0 = _this__u8e3s4.
|
|
2808
|
+
var tmp0 = _this__u8e3s4.m1h().s();
|
|
2637
2809
|
// Inline function 'kotlin.math.min' call
|
|
2638
2810
|
var b = toLong(max);
|
|
2639
2811
|
var count = tmp0.e1(b) <= 0 ? tmp0 : b;
|
|
2640
2812
|
return readString_1(_this__u8e3s4, count);
|
|
2641
2813
|
}
|
|
2642
|
-
return decode(charset.
|
|
2814
|
+
return decode(charset.u1x(), _this__u8e3s4, max);
|
|
2643
2815
|
}
|
|
2644
2816
|
function writeText(_this__u8e3s4, text, fromIndex, toIndex, charset) {
|
|
2645
2817
|
fromIndex = fromIndex === VOID ? 0 : fromIndex;
|
|
2646
2818
|
toIndex = toIndex === VOID ? charSequenceLength(text) : toIndex;
|
|
2647
|
-
charset = charset === VOID ? Charsets_getInstance().
|
|
2648
|
-
if (charset === Charsets_getInstance().
|
|
2819
|
+
charset = charset === VOID ? Charsets_getInstance().q1x_1 : charset;
|
|
2820
|
+
if (charset === Charsets_getInstance().q1x_1) {
|
|
2649
2821
|
return writeString(_this__u8e3s4, toString_1(text), fromIndex, toIndex);
|
|
2650
2822
|
}
|
|
2651
|
-
encodeToImpl(charset.
|
|
2823
|
+
encodeToImpl(charset.t1x(), _this__u8e3s4, text, fromIndex, toIndex);
|
|
2652
2824
|
}
|
|
2653
2825
|
function get_ByteArrayPool() {
|
|
2654
2826
|
_init_properties_ByteArrayPool_kt__kfi3uj();
|
|
@@ -2658,7 +2830,7 @@
|
|
|
2658
2830
|
function ByteArrayPool$1() {
|
|
2659
2831
|
DefaultPool.call(this, 128);
|
|
2660
2832
|
}
|
|
2661
|
-
protoOf(ByteArrayPool$1).
|
|
2833
|
+
protoOf(ByteArrayPool$1).y1x = function () {
|
|
2662
2834
|
return new Int8Array(4096);
|
|
2663
2835
|
};
|
|
2664
2836
|
var properties_initialized_ByteArrayPool_kt_td6pfh;
|
|
@@ -2672,21 +2844,21 @@
|
|
|
2672
2844
|
}
|
|
2673
2845
|
function NoPoolImpl() {
|
|
2674
2846
|
}
|
|
2675
|
-
protoOf(NoPoolImpl).
|
|
2847
|
+
protoOf(NoPoolImpl).g1y = function (instance) {
|
|
2676
2848
|
return Unit_instance;
|
|
2677
2849
|
};
|
|
2678
|
-
protoOf(NoPoolImpl).
|
|
2850
|
+
protoOf(NoPoolImpl).lr = function () {
|
|
2679
2851
|
return Unit_instance;
|
|
2680
2852
|
};
|
|
2681
2853
|
function Companion_2() {
|
|
2682
2854
|
}
|
|
2683
|
-
protoOf(Companion_2).
|
|
2855
|
+
protoOf(Companion_2).h1y = function (name) {
|
|
2684
2856
|
switch (name) {
|
|
2685
2857
|
case 'UTF-8':
|
|
2686
2858
|
case 'utf-8':
|
|
2687
2859
|
case 'UTF8':
|
|
2688
2860
|
case 'utf8':
|
|
2689
|
-
return Charsets_getInstance().
|
|
2861
|
+
return Charsets_getInstance().q1x_1;
|
|
2690
2862
|
}
|
|
2691
2863
|
var tmp;
|
|
2692
2864
|
var tmp_0;
|
|
@@ -2717,11 +2889,11 @@
|
|
|
2717
2889
|
tmp = name === 'latin1' || name === 'Latin1';
|
|
2718
2890
|
}
|
|
2719
2891
|
if (tmp) {
|
|
2720
|
-
return Charsets_getInstance().
|
|
2892
|
+
return Charsets_getInstance().r1x_1;
|
|
2721
2893
|
}
|
|
2722
2894
|
throw IllegalArgumentException_init_$Create$('Charset ' + name + ' is not supported');
|
|
2723
2895
|
};
|
|
2724
|
-
protoOf(Companion_2).
|
|
2896
|
+
protoOf(Companion_2).i1y = function (charset) {
|
|
2725
2897
|
var tmp;
|
|
2726
2898
|
switch (charset) {
|
|
2727
2899
|
case 'UTF-8':
|
|
@@ -2776,7 +2948,7 @@
|
|
|
2776
2948
|
return Companion_instance_3;
|
|
2777
2949
|
}
|
|
2778
2950
|
function Charset(_name) {
|
|
2779
|
-
this.
|
|
2951
|
+
this.s1x_1 = _name;
|
|
2780
2952
|
}
|
|
2781
2953
|
protoOf(Charset).equals = function (other) {
|
|
2782
2954
|
if (this === other)
|
|
@@ -2785,21 +2957,21 @@
|
|
|
2785
2957
|
return false;
|
|
2786
2958
|
if (!(other instanceof Charset))
|
|
2787
2959
|
THROW_CCE();
|
|
2788
|
-
return this.
|
|
2960
|
+
return this.s1x_1 === other.s1x_1;
|
|
2789
2961
|
};
|
|
2790
2962
|
protoOf(Charset).hashCode = function () {
|
|
2791
|
-
return getStringHashCode(this.
|
|
2963
|
+
return getStringHashCode(this.s1x_1);
|
|
2792
2964
|
};
|
|
2793
2965
|
protoOf(Charset).toString = function () {
|
|
2794
|
-
return this.
|
|
2966
|
+
return this.s1x_1;
|
|
2795
2967
|
};
|
|
2796
2968
|
function get_name(_this__u8e3s4) {
|
|
2797
|
-
return _this__u8e3s4.
|
|
2969
|
+
return _this__u8e3s4.s1x_1;
|
|
2798
2970
|
}
|
|
2799
2971
|
function Charsets() {
|
|
2800
2972
|
Charsets_instance = this;
|
|
2801
|
-
this.
|
|
2802
|
-
this.
|
|
2973
|
+
this.q1x_1 = new CharsetImpl('UTF-8');
|
|
2974
|
+
this.r1x_1 = new CharsetImpl('ISO-8859-1');
|
|
2803
2975
|
}
|
|
2804
2976
|
var Charsets_instance;
|
|
2805
2977
|
function Charsets_getInstance() {
|
|
@@ -2812,7 +2984,7 @@
|
|
|
2812
2984
|
captureStack(this, MalformedInputException);
|
|
2813
2985
|
}
|
|
2814
2986
|
function CharsetDecoder(_charset) {
|
|
2815
|
-
this.
|
|
2987
|
+
this.j1y_1 = _charset;
|
|
2816
2988
|
}
|
|
2817
2989
|
function encodeToByteArray_0(_this__u8e3s4, input, fromIndex, toIndex) {
|
|
2818
2990
|
fromIndex = fromIndex === VOID ? 0 : fromIndex;
|
|
@@ -2820,15 +2992,15 @@
|
|
|
2820
2992
|
return encodeToByteArrayImpl(_this__u8e3s4, input, fromIndex, toIndex);
|
|
2821
2993
|
}
|
|
2822
2994
|
function CharsetEncoder(_charset) {
|
|
2823
|
-
this.
|
|
2995
|
+
this.k1y_1 = _charset;
|
|
2824
2996
|
}
|
|
2825
2997
|
function CharsetImpl(name) {
|
|
2826
2998
|
Charset.call(this, name);
|
|
2827
2999
|
}
|
|
2828
|
-
protoOf(CharsetImpl).
|
|
3000
|
+
protoOf(CharsetImpl).t1x = function () {
|
|
2829
3001
|
return new CharsetEncoderImpl(this);
|
|
2830
3002
|
};
|
|
2831
|
-
protoOf(CharsetImpl).
|
|
3003
|
+
protoOf(CharsetImpl).u1x = function () {
|
|
2832
3004
|
return new CharsetDecoderImpl(this);
|
|
2833
3005
|
};
|
|
2834
3006
|
function encodeToByteArrayImpl(_this__u8e3s4, input, fromIndex, toIndex) {
|
|
@@ -2848,13 +3020,13 @@
|
|
|
2848
3020
|
}
|
|
2849
3021
|
function CharsetEncoderImpl(charset) {
|
|
2850
3022
|
CharsetEncoder.call(this, charset);
|
|
2851
|
-
this.
|
|
3023
|
+
this.n1y_1 = charset;
|
|
2852
3024
|
}
|
|
2853
3025
|
protoOf(CharsetEncoderImpl).toString = function () {
|
|
2854
|
-
return 'CharsetEncoderImpl(charset=' + this.
|
|
3026
|
+
return 'CharsetEncoderImpl(charset=' + this.n1y_1.toString() + ')';
|
|
2855
3027
|
};
|
|
2856
3028
|
protoOf(CharsetEncoderImpl).hashCode = function () {
|
|
2857
|
-
return this.
|
|
3029
|
+
return this.n1y_1.hashCode();
|
|
2858
3030
|
};
|
|
2859
3031
|
protoOf(CharsetEncoderImpl).equals = function (other) {
|
|
2860
3032
|
if (this === other)
|
|
@@ -2862,19 +3034,19 @@
|
|
|
2862
3034
|
if (!(other instanceof CharsetEncoderImpl))
|
|
2863
3035
|
return false;
|
|
2864
3036
|
var tmp0_other_with_cast = other instanceof CharsetEncoderImpl ? other : THROW_CCE();
|
|
2865
|
-
if (!this.
|
|
3037
|
+
if (!this.n1y_1.equals(tmp0_other_with_cast.n1y_1))
|
|
2866
3038
|
return false;
|
|
2867
3039
|
return true;
|
|
2868
3040
|
};
|
|
2869
3041
|
function CharsetDecoderImpl(charset) {
|
|
2870
3042
|
CharsetDecoder.call(this, charset);
|
|
2871
|
-
this.
|
|
3043
|
+
this.p1y_1 = charset;
|
|
2872
3044
|
}
|
|
2873
3045
|
protoOf(CharsetDecoderImpl).toString = function () {
|
|
2874
|
-
return 'CharsetDecoderImpl(charset=' + this.
|
|
3046
|
+
return 'CharsetDecoderImpl(charset=' + this.p1y_1.toString() + ')';
|
|
2875
3047
|
};
|
|
2876
3048
|
protoOf(CharsetDecoderImpl).hashCode = function () {
|
|
2877
|
-
return this.
|
|
3049
|
+
return this.p1y_1.hashCode();
|
|
2878
3050
|
};
|
|
2879
3051
|
protoOf(CharsetDecoderImpl).equals = function (other) {
|
|
2880
3052
|
if (this === other)
|
|
@@ -2882,7 +3054,7 @@
|
|
|
2882
3054
|
if (!(other instanceof CharsetDecoderImpl))
|
|
2883
3055
|
return false;
|
|
2884
3056
|
var tmp0_other_with_cast = other instanceof CharsetDecoderImpl ? other : THROW_CCE();
|
|
2885
|
-
if (!this.
|
|
3057
|
+
if (!this.p1y_1.equals(tmp0_other_with_cast.p1y_1))
|
|
2886
3058
|
return false;
|
|
2887
3059
|
return true;
|
|
2888
3060
|
};
|
|
@@ -2893,11 +3065,11 @@
|
|
|
2893
3065
|
var message = 'Failed requirement.';
|
|
2894
3066
|
throw IllegalArgumentException_init_$Create$(toString_1(message));
|
|
2895
3067
|
}
|
|
2896
|
-
if (get_charset(_this__u8e3s4).equals(Charsets_getInstance().
|
|
3068
|
+
if (get_charset(_this__u8e3s4).equals(Charsets_getInstance().r1x_1)) {
|
|
2897
3069
|
return encodeISO88591(input, fromIndex, toIndex, dst);
|
|
2898
3070
|
}
|
|
2899
3071
|
// Inline function 'kotlin.require' call
|
|
2900
|
-
if (!(get_charset(_this__u8e3s4) === Charsets_getInstance().
|
|
3072
|
+
if (!(get_charset(_this__u8e3s4) === Charsets_getInstance().q1x_1)) {
|
|
2901
3073
|
var message_0 = 'Only UTF-8 encoding is supported in JS';
|
|
2902
3074
|
throw IllegalArgumentException_init_$Create$(toString_1(message_0));
|
|
2903
3075
|
}
|
|
@@ -2907,15 +3079,15 @@
|
|
|
2907
3079
|
var result = encoder.encode(tmp$ret$5);
|
|
2908
3080
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
2909
3081
|
// Inline function 'kotlin.js.asDynamic' call
|
|
2910
|
-
dst.
|
|
3082
|
+
dst.z1i(result);
|
|
2911
3083
|
return result.length;
|
|
2912
3084
|
}
|
|
2913
3085
|
function get_charset(_this__u8e3s4) {
|
|
2914
|
-
return _this__u8e3s4.
|
|
3086
|
+
return _this__u8e3s4.k1y_1;
|
|
2915
3087
|
}
|
|
2916
3088
|
function decode_0(_this__u8e3s4, input, dst, max) {
|
|
2917
3089
|
var decoder = Decoder(get_name(get_charset_0(_this__u8e3s4)), true);
|
|
2918
|
-
var tmp0 = input.
|
|
3090
|
+
var tmp0 = input.m1h().s();
|
|
2919
3091
|
// Inline function 'kotlin.comparisons.minOf' call
|
|
2920
3092
|
var b = toLong(max);
|
|
2921
3093
|
var count = tmp0.e1(b) <= 0 ? tmp0 : b;
|
|
@@ -2923,7 +3095,7 @@
|
|
|
2923
3095
|
var array = tmp instanceof Int8Array ? tmp : THROW_CCE();
|
|
2924
3096
|
var tmp_0;
|
|
2925
3097
|
try {
|
|
2926
|
-
tmp_0 = decoder.
|
|
3098
|
+
tmp_0 = decoder.q1y(array);
|
|
2927
3099
|
} catch ($p) {
|
|
2928
3100
|
var tmp_1;
|
|
2929
3101
|
if ($p instanceof Error) {
|
|
@@ -2939,13 +3111,13 @@
|
|
|
2939
3111
|
return result.length;
|
|
2940
3112
|
}
|
|
2941
3113
|
function get_charset_0(_this__u8e3s4) {
|
|
2942
|
-
return _this__u8e3s4.
|
|
3114
|
+
return _this__u8e3s4.j1y_1;
|
|
2943
3115
|
}
|
|
2944
3116
|
function forName(_this__u8e3s4, name) {
|
|
2945
|
-
return Companion_instance_3.
|
|
3117
|
+
return Companion_instance_3.h1y(name);
|
|
2946
3118
|
}
|
|
2947
3119
|
function isSupported(_this__u8e3s4, name) {
|
|
2948
|
-
return Companion_instance_3.
|
|
3120
|
+
return Companion_instance_3.i1y(name);
|
|
2949
3121
|
}
|
|
2950
3122
|
function Decoder(encoding, fatal) {
|
|
2951
3123
|
fatal = fatal === VOID ? true : fatal;
|
|
@@ -2977,10 +3149,10 @@
|
|
|
2977
3149
|
return this_0;
|
|
2978
3150
|
}
|
|
2979
3151
|
function toKtor$1($this_toKtor) {
|
|
2980
|
-
this.
|
|
3152
|
+
this.r1y_1 = $this_toKtor;
|
|
2981
3153
|
}
|
|
2982
|
-
protoOf(toKtor$1).
|
|
2983
|
-
return this.
|
|
3154
|
+
protoOf(toKtor$1).q1y = function (buffer) {
|
|
3155
|
+
return this.r1y_1.decode(buffer);
|
|
2984
3156
|
};
|
|
2985
3157
|
function get_ENCODING_ALIASES() {
|
|
2986
3158
|
_init_properties_TextDecoderFallback_js_kt__an7r6m();
|
|
@@ -2993,7 +3165,7 @@
|
|
|
2993
3165
|
}
|
|
2994
3166
|
var REPLACEMENT;
|
|
2995
3167
|
function TextDecoderFallback(encoding, fatal) {
|
|
2996
|
-
this.
|
|
3168
|
+
this.s1y_1 = fatal;
|
|
2997
3169
|
// Inline function 'kotlin.text.trim' call
|
|
2998
3170
|
// Inline function 'kotlin.text.lowercase' call
|
|
2999
3171
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -3004,7 +3176,7 @@
|
|
|
3004
3176
|
throw IllegalStateException_init_$Create$(toString_1(message));
|
|
3005
3177
|
}
|
|
3006
3178
|
}
|
|
3007
|
-
protoOf(TextDecoderFallback).
|
|
3179
|
+
protoOf(TextDecoderFallback).q1y = function (buffer) {
|
|
3008
3180
|
// Inline function 'io.ktor.utils.io.core.buildPacket' call
|
|
3009
3181
|
var builder = new Buffer();
|
|
3010
3182
|
var bytes = buffer instanceof Int8Array ? buffer : THROW_CCE();
|
|
@@ -3020,7 +3192,7 @@
|
|
|
3020
3192
|
var point = toCodePoint(byte);
|
|
3021
3193
|
if (point < 0) {
|
|
3022
3194
|
// Inline function 'kotlin.check' call
|
|
3023
|
-
if (!!this.
|
|
3195
|
+
if (!!this.s1y_1) {
|
|
3024
3196
|
var message = 'Invalid character: ' + point;
|
|
3025
3197
|
throw IllegalStateException_init_$Create$(toString_1(message));
|
|
3026
3198
|
}
|
|
@@ -3028,9 +3200,9 @@
|
|
|
3028
3200
|
continue $l$loop;
|
|
3029
3201
|
}
|
|
3030
3202
|
if (point > 255) {
|
|
3031
|
-
builder.
|
|
3203
|
+
builder.g1j(toByte(point >> 8));
|
|
3032
3204
|
}
|
|
3033
|
-
builder.
|
|
3205
|
+
builder.g1j(toByte(point & 255));
|
|
3034
3206
|
}
|
|
3035
3207
|
while (inductionVariable < last);
|
|
3036
3208
|
return decodeToString_0(readByteArray_0(builder));
|
|
@@ -3073,7 +3245,7 @@
|
|
|
3073
3245
|
if (character > 255) {
|
|
3074
3246
|
failedToMapError(character);
|
|
3075
3247
|
}
|
|
3076
|
-
dst.
|
|
3248
|
+
dst.g1j(toByte(character));
|
|
3077
3249
|
}
|
|
3078
3250
|
while (inductionVariable < toIndex);
|
|
3079
3251
|
return toIndex - fromIndex | 0;
|
|
@@ -3095,64 +3267,64 @@
|
|
|
3095
3267
|
}
|
|
3096
3268
|
}
|
|
3097
3269
|
function DefaultPool(capacity) {
|
|
3098
|
-
this.
|
|
3270
|
+
this.z1x_1 = capacity;
|
|
3099
3271
|
var tmp = this;
|
|
3100
3272
|
// Inline function 'kotlin.arrayOfNulls' call
|
|
3101
|
-
var size = this.
|
|
3102
|
-
tmp.
|
|
3103
|
-
this.
|
|
3273
|
+
var size = this.z1x_1;
|
|
3274
|
+
tmp.a1y_1 = Array(size);
|
|
3275
|
+
this.b1y_1 = 0;
|
|
3104
3276
|
}
|
|
3105
|
-
protoOf(DefaultPool).
|
|
3277
|
+
protoOf(DefaultPool).c1y = function (instance) {
|
|
3106
3278
|
};
|
|
3107
|
-
protoOf(DefaultPool).
|
|
3279
|
+
protoOf(DefaultPool).d1y = function (instance) {
|
|
3108
3280
|
return instance;
|
|
3109
3281
|
};
|
|
3110
|
-
protoOf(DefaultPool).
|
|
3282
|
+
protoOf(DefaultPool).e1y = function (instance) {
|
|
3111
3283
|
};
|
|
3112
|
-
protoOf(DefaultPool).
|
|
3113
|
-
if (this.
|
|
3114
|
-
return this.
|
|
3115
|
-
this.
|
|
3116
|
-
var idx = this.
|
|
3117
|
-
var tmp = this.
|
|
3284
|
+
protoOf(DefaultPool).f1y = function () {
|
|
3285
|
+
if (this.b1y_1 === 0)
|
|
3286
|
+
return this.y1x();
|
|
3287
|
+
this.b1y_1 = this.b1y_1 - 1 | 0;
|
|
3288
|
+
var idx = this.b1y_1;
|
|
3289
|
+
var tmp = this.a1y_1[idx];
|
|
3118
3290
|
var instance = !(tmp == null) ? tmp : THROW_CCE();
|
|
3119
|
-
this.
|
|
3120
|
-
return this.
|
|
3291
|
+
this.a1y_1[idx] = null;
|
|
3292
|
+
return this.d1y(instance);
|
|
3121
3293
|
};
|
|
3122
|
-
protoOf(DefaultPool).
|
|
3123
|
-
this.
|
|
3124
|
-
if (this.
|
|
3125
|
-
this.
|
|
3294
|
+
protoOf(DefaultPool).g1y = function (instance) {
|
|
3295
|
+
this.e1y(instance);
|
|
3296
|
+
if (this.b1y_1 === this.z1x_1) {
|
|
3297
|
+
this.c1y(instance);
|
|
3126
3298
|
} else {
|
|
3127
|
-
var _unary__edvuaz = this.
|
|
3128
|
-
this.
|
|
3129
|
-
this.
|
|
3299
|
+
var _unary__edvuaz = this.b1y_1;
|
|
3300
|
+
this.b1y_1 = _unary__edvuaz + 1 | 0;
|
|
3301
|
+
this.a1y_1[_unary__edvuaz] = instance;
|
|
3130
3302
|
}
|
|
3131
3303
|
};
|
|
3132
|
-
protoOf(DefaultPool).
|
|
3304
|
+
protoOf(DefaultPool).lr = function () {
|
|
3133
3305
|
var inductionVariable = 0;
|
|
3134
|
-
var last = this.
|
|
3306
|
+
var last = this.b1y_1;
|
|
3135
3307
|
if (inductionVariable < last)
|
|
3136
3308
|
do {
|
|
3137
3309
|
var i = inductionVariable;
|
|
3138
3310
|
inductionVariable = inductionVariable + 1 | 0;
|
|
3139
|
-
var tmp = this.
|
|
3311
|
+
var tmp = this.a1y_1[i];
|
|
3140
3312
|
var instance = !(tmp == null) ? tmp : THROW_CCE();
|
|
3141
|
-
this.
|
|
3142
|
-
this.
|
|
3313
|
+
this.a1y_1[i] = null;
|
|
3314
|
+
this.c1y(instance);
|
|
3143
3315
|
}
|
|
3144
3316
|
while (inductionVariable < last);
|
|
3145
|
-
this.
|
|
3317
|
+
this.b1y_1 = 0;
|
|
3146
3318
|
};
|
|
3147
3319
|
//region block: post-declaration
|
|
3148
|
-
protoOf(Read).
|
|
3149
|
-
protoOf(Read).
|
|
3150
|
-
protoOf(Write).
|
|
3151
|
-
protoOf(Write).
|
|
3152
|
-
protoOf(ByteChannel).
|
|
3153
|
-
protoOf(ByteReadChannel$Companion$Empty$1).
|
|
3154
|
-
protoOf(CountedByteReadChannel).
|
|
3155
|
-
protoOf(SourceByteReadChannel).
|
|
3320
|
+
protoOf(Read).r1k = resume;
|
|
3321
|
+
protoOf(Read).s1k = resume_0;
|
|
3322
|
+
protoOf(Write).r1k = resume;
|
|
3323
|
+
protoOf(Write).s1k = resume_0;
|
|
3324
|
+
protoOf(ByteChannel).c1n = awaitContent$default;
|
|
3325
|
+
protoOf(ByteReadChannel$Companion$Empty$1).c1n = awaitContent$default;
|
|
3326
|
+
protoOf(CountedByteReadChannel).c1n = awaitContent$default;
|
|
3327
|
+
protoOf(SourceByteReadChannel).c1n = awaitContent$default;
|
|
3156
3328
|
protoOf(DefaultPool).p4 = close;
|
|
3157
3329
|
protoOf(NoPoolImpl).p4 = close;
|
|
3158
3330
|
//endregion
|
|
@@ -3163,52 +3335,55 @@
|
|
|
3163
3335
|
//region block: exports
|
|
3164
3336
|
_.$_$ = _.$_$ || {};
|
|
3165
3337
|
_.$_$.a = copyTo;
|
|
3166
|
-
_.$_$.b =
|
|
3167
|
-
_.$_$.c =
|
|
3168
|
-
_.$_$.d =
|
|
3169
|
-
_.$_$.e =
|
|
3170
|
-
_.$_$.f =
|
|
3171
|
-
_.$_$.g =
|
|
3172
|
-
_.$_$.h =
|
|
3173
|
-
_.$_$.i =
|
|
3174
|
-
_.$_$.j =
|
|
3175
|
-
_.$_$.k =
|
|
3176
|
-
_.$_$.l =
|
|
3177
|
-
_.$_$.m =
|
|
3178
|
-
_.$_$.n =
|
|
3179
|
-
_.$_$.o =
|
|
3180
|
-
_.$_$.p =
|
|
3181
|
-
_.$_$.q =
|
|
3182
|
-
_.$_$.r =
|
|
3183
|
-
_.$_$.s =
|
|
3184
|
-
_.$_$.t =
|
|
3185
|
-
_.$_$.u =
|
|
3186
|
-
_.$_$.v =
|
|
3187
|
-
_.$_$.w =
|
|
3188
|
-
_.$_$.x =
|
|
3189
|
-
_.$_$.y =
|
|
3190
|
-
_.$_$.z =
|
|
3191
|
-
_.$_$.a1 =
|
|
3192
|
-
_.$_$.b1 =
|
|
3193
|
-
_.$_$.c1 =
|
|
3194
|
-
_.$_$.d1 =
|
|
3195
|
-
_.$_$.e1 =
|
|
3196
|
-
_.$_$.f1 =
|
|
3197
|
-
_.$_$.g1 =
|
|
3198
|
-
_.$_$.h1 =
|
|
3199
|
-
_.$_$.i1 =
|
|
3200
|
-
_.$_$.j1 =
|
|
3201
|
-
_.$_$.k1 =
|
|
3202
|
-
_.$_$.l1 =
|
|
3203
|
-
_.$_$.m1 =
|
|
3204
|
-
_.$_$.n1 =
|
|
3205
|
-
_.$_$.o1 =
|
|
3206
|
-
_.$_$.p1 =
|
|
3207
|
-
_.$_$.q1 =
|
|
3208
|
-
_.$_$.r1 =
|
|
3209
|
-
_.$_$.s1 =
|
|
3210
|
-
_.$_$.t1 =
|
|
3211
|
-
_.$_$.u1 =
|
|
3338
|
+
_.$_$.b = copyTo_0;
|
|
3339
|
+
_.$_$.c = discard;
|
|
3340
|
+
_.$_$.d = readAvailable;
|
|
3341
|
+
_.$_$.e = readPacket;
|
|
3342
|
+
_.$_$.f = readRemaining;
|
|
3343
|
+
_.$_$.g = readRemaining_0;
|
|
3344
|
+
_.$_$.h = readUTF8LineTo;
|
|
3345
|
+
_.$_$.i = readUntil;
|
|
3346
|
+
_.$_$.j = skipIfFound;
|
|
3347
|
+
_.$_$.k = toByteArray;
|
|
3348
|
+
_.$_$.l = writeFully;
|
|
3349
|
+
_.$_$.m = writePacket;
|
|
3350
|
+
_.$_$.n = LineEndingMode__plus_impl_ttpz2j;
|
|
3351
|
+
_.$_$.o = Charsets_getInstance;
|
|
3352
|
+
_.$_$.p = Companion_getInstance_0;
|
|
3353
|
+
_.$_$.q = Companion_getInstance_1;
|
|
3354
|
+
_.$_$.r = MalformedInputException;
|
|
3355
|
+
_.$_$.s = decode;
|
|
3356
|
+
_.$_$.t = encode;
|
|
3357
|
+
_.$_$.u = forName;
|
|
3358
|
+
_.$_$.v = isSupported;
|
|
3359
|
+
_.$_$.w = get_name;
|
|
3360
|
+
_.$_$.x = BytePacketBuilder;
|
|
3361
|
+
_.$_$.y = build;
|
|
3362
|
+
_.$_$.z = canRead;
|
|
3363
|
+
_.$_$.a1 = discard_0;
|
|
3364
|
+
_.$_$.b1 = readAvailable_0;
|
|
3365
|
+
_.$_$.c1 = readText_0;
|
|
3366
|
+
_.$_$.d1 = get_remaining;
|
|
3367
|
+
_.$_$.e1 = takeWhile;
|
|
3368
|
+
_.$_$.f1 = toByteArray_0;
|
|
3369
|
+
_.$_$.g1 = writeFully_0;
|
|
3370
|
+
_.$_$.h1 = writePacket_0;
|
|
3371
|
+
_.$_$.i1 = writeText;
|
|
3372
|
+
_.$_$.j1 = get_ByteArrayPool;
|
|
3373
|
+
_.$_$.k1 = DefaultPool;
|
|
3374
|
+
_.$_$.l1 = NoPoolImpl;
|
|
3375
|
+
_.$_$.m1 = ByteChannel;
|
|
3376
|
+
_.$_$.n1 = ByteReadChannel;
|
|
3377
|
+
_.$_$.o1 = ByteReadChannel_1;
|
|
3378
|
+
_.$_$.p1 = WriterScope;
|
|
3379
|
+
_.$_$.q1 = get_availableForRead;
|
|
3380
|
+
_.$_$.r1 = cancel_0;
|
|
3381
|
+
_.$_$.s1 = close_0;
|
|
3382
|
+
_.$_$.t1 = counted;
|
|
3383
|
+
_.$_$.u1 = invokeOnCompletion;
|
|
3384
|
+
_.$_$.v1 = get_isCompleted;
|
|
3385
|
+
_.$_$.w1 = readText;
|
|
3386
|
+
_.$_$.x1 = writer;
|
|
3212
3387
|
//endregion
|
|
3213
3388
|
return _;
|
|
3214
3389
|
}(module.exports, require('./kotlin-kotlin-stdlib.js'), require('./kotlinx-coroutines-core.js'), require('./kotlinx-io-kotlinx-io-core.js'), require('./kotlinx-atomicfu.js'), require('./kotlinx-io-kotlinx-io-bytestring.js')));
|