@dmarket/p2p-tracker-core 1.0.0-beta.1 → 1.0.2-beta
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/dmarket-p2p-tracker-core-domain.mjs +2931 -2608
- package/dmarket-p2p-tracker-core-domain.mjs.map +1 -1
- package/kotlin-kotlin-stdlib.mjs +13 -22
- package/kotlin-kotlin-stdlib.mjs.map +1 -1
- package/kotlinx-io-kotlinx-io-bytestring.mjs +30 -30
- package/kotlinx-io-kotlinx-io-bytestring.mjs.map +1 -1
- package/kotlinx-io-kotlinx-io-core.mjs +470 -450
- package/kotlinx-io-kotlinx-io-core.mjs.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-core.mjs.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-json.mjs.map +1 -1
- package/ktor-ktor-client-core.mjs +1904 -1913
- package/ktor-ktor-client-core.mjs.map +1 -1
- package/ktor-ktor-events.mjs +5 -5
- package/ktor-ktor-http-cio.mjs +313 -313
- package/ktor-ktor-http.mjs +619 -599
- package/ktor-ktor-http.mjs.map +1 -1
- package/ktor-ktor-io.mjs +741 -655
- package/ktor-ktor-io.mjs.map +1 -1
- package/ktor-ktor-utils.mjs +622 -622
- package/ktor-ktor-websockets.mjs +472 -416
- package/ktor-ktor-websockets.mjs.map +1 -1
- package/p2p-tracker-core.d.mts +5 -2
- package/p2p-tracker-core.mjs +7427 -5807
- package/p2p-tracker-core.mjs.map +1 -1
- package/package.json +1 -1
package/ktor-ktor-io.mjs
CHANGED
|
@@ -54,7 +54,7 @@ import {
|
|
|
54
54
|
listOf1jh22dvmctj1r as listOf,
|
|
55
55
|
StringBuilder_init_$Create$3q4yitjcnfjo as StringBuilder_init_$Create$,
|
|
56
56
|
charSequenceLength3278n89t01tmv as charSequenceLength,
|
|
57
|
-
|
|
57
|
+
encodeToByteArray1onwao0uakjfh as encodeToByteArray,
|
|
58
58
|
AutoCloseable1l5p57f9lp7kv as AutoCloseable,
|
|
59
59
|
_Char___init__impl__6a9atx2yltdocdrxs4d as _Char___init__impl__6a9atx,
|
|
60
60
|
replaceqbix900hl8kl as replace_0,
|
|
@@ -87,7 +87,8 @@ import {
|
|
|
87
87
|
EOFException_init_$Create$28fkhq0q0kobq as EOFException_init_$Create$,
|
|
88
88
|
readString3v6duspiz33tv as readString,
|
|
89
89
|
readByteString2hnsbql6t4ads as readByteString,
|
|
90
|
-
|
|
90
|
+
readStringo8i62qxt5m4m as readString_0,
|
|
91
|
+
readString2nvggcfaijfhd as readString_1,
|
|
91
92
|
IOException1wyutdmfe71nu as IOException,
|
|
92
93
|
IOException_init_$Init$1v5tzhogkz08y as IOException_init_$Init$,
|
|
93
94
|
IOException_init_$Create$1n9wqi59tj1t7 as IOException_init_$Create$_0,
|
|
@@ -105,10 +106,10 @@ initMetadataForCompanion(Companion);
|
|
|
105
106
|
initMetadataForObject(Empty, 'Empty');
|
|
106
107
|
initMetadataForClass(Closed, 'Closed');
|
|
107
108
|
function resume() {
|
|
108
|
-
return this.
|
|
109
|
+
return this.y3i().g9(Companion_getInstance().v3i_1);
|
|
109
110
|
}
|
|
110
111
|
function resume_0(throwable) {
|
|
111
|
-
var tmp = this.
|
|
112
|
+
var tmp = this.y3i();
|
|
112
113
|
var tmp_0;
|
|
113
114
|
if (throwable == null) {
|
|
114
115
|
tmp_0 = null;
|
|
@@ -119,7 +120,7 @@ function resume_0(throwable) {
|
|
|
119
120
|
tmp_0 = new Result(tmp$ret$0);
|
|
120
121
|
}
|
|
121
122
|
var tmp1_elvis_lhs = tmp_0;
|
|
122
|
-
return tmp.g9(tmp1_elvis_lhs == null ? Companion_getInstance().
|
|
123
|
+
return tmp.g9(tmp1_elvis_lhs == null ? Companion_getInstance().v3i_1 : tmp1_elvis_lhs.do_1);
|
|
123
124
|
}
|
|
124
125
|
initMetadataForInterface(Task, 'Task');
|
|
125
126
|
initMetadataForClass(Read, 'Read', VOID, VOID, [Task]);
|
|
@@ -130,7 +131,7 @@ initMetadataForCoroutine($flushCOROUTINE$, CoroutineImpl);
|
|
|
130
131
|
initMetadataForCoroutine($flushAndCloseCOROUTINE$, CoroutineImpl);
|
|
131
132
|
function awaitContent$default(min, $completion, $super) {
|
|
132
133
|
min = min === VOID ? 1 : min;
|
|
133
|
-
return $super === VOID ? this.
|
|
134
|
+
return $super === VOID ? this.f3l(min, $completion) : $super.f3l.call(this, min, $completion);
|
|
134
135
|
}
|
|
135
136
|
initMetadataForInterface(ByteReadChannel_1, 'ByteReadChannel', VOID, VOID, VOID, [1]);
|
|
136
137
|
function get_autoFlush() {
|
|
@@ -195,10 +196,10 @@ initMetadataForClass(TextDecoderFallback, 'TextDecoderFallback');
|
|
|
195
196
|
//endregion
|
|
196
197
|
function Companion() {
|
|
197
198
|
Companion_instance_0 = this;
|
|
198
|
-
this.
|
|
199
|
+
this.u3i_1 = new Closed(null);
|
|
199
200
|
var tmp = this;
|
|
200
201
|
// Inline function 'kotlin.Companion.success' call
|
|
201
|
-
tmp.
|
|
202
|
+
tmp.v3i_1 = _Result___init__impl__xyqfz8(Unit_instance);
|
|
202
203
|
}
|
|
203
204
|
var Companion_instance_0;
|
|
204
205
|
function Companion_getInstance() {
|
|
@@ -226,102 +227,102 @@ function Empty_getInstance() {
|
|
|
226
227
|
return Empty_instance;
|
|
227
228
|
}
|
|
228
229
|
function Closed(cause) {
|
|
229
|
-
this.
|
|
230
|
+
this.w3i_1 = cause;
|
|
230
231
|
}
|
|
231
232
|
protoOf(Closed).toString = function () {
|
|
232
|
-
return 'Closed(cause=' + toString(this.
|
|
233
|
+
return 'Closed(cause=' + toString(this.w3i_1) + ')';
|
|
233
234
|
};
|
|
234
235
|
protoOf(Closed).hashCode = function () {
|
|
235
|
-
return this.
|
|
236
|
+
return this.w3i_1 == null ? 0 : hashCode(this.w3i_1);
|
|
236
237
|
};
|
|
237
238
|
protoOf(Closed).equals = function (other) {
|
|
238
239
|
if (this === other)
|
|
239
240
|
return true;
|
|
240
241
|
if (!(other instanceof Closed))
|
|
241
242
|
return false;
|
|
242
|
-
if (!equals(this.
|
|
243
|
+
if (!equals(this.w3i_1, other.w3i_1))
|
|
243
244
|
return false;
|
|
244
245
|
return true;
|
|
245
246
|
};
|
|
246
247
|
function Task() {
|
|
247
248
|
}
|
|
248
249
|
function Read(continuation) {
|
|
249
|
-
this.
|
|
250
|
-
this.
|
|
250
|
+
this.c3j_1 = continuation;
|
|
251
|
+
this.d3j_1 = null;
|
|
251
252
|
if (get_DEVELOPMENT_MODE()) {
|
|
252
253
|
var tmp = this;
|
|
253
254
|
// Inline function 'kotlin.also' call
|
|
254
|
-
var this_0 = newThrowable('ReadTask 0x' + toString_0(hashCode(this.
|
|
255
|
+
var this_0 = newThrowable('ReadTask 0x' + toString_0(hashCode(this.c3j_1), 16));
|
|
255
256
|
stackTraceToString(this_0);
|
|
256
|
-
tmp.
|
|
257
|
+
tmp.d3j_1 = this_0;
|
|
257
258
|
}
|
|
258
259
|
}
|
|
259
|
-
protoOf(Read).
|
|
260
|
-
return this.
|
|
260
|
+
protoOf(Read).y3i = function () {
|
|
261
|
+
return this.c3j_1;
|
|
261
262
|
};
|
|
262
|
-
protoOf(Read).
|
|
263
|
-
return this.
|
|
263
|
+
protoOf(Read).x3i = function () {
|
|
264
|
+
return this.d3j_1;
|
|
264
265
|
};
|
|
265
|
-
protoOf(Read).
|
|
266
|
+
protoOf(Read).z3i = function () {
|
|
266
267
|
return 'read';
|
|
267
268
|
};
|
|
268
269
|
function Write(continuation) {
|
|
269
|
-
this.
|
|
270
|
-
this.
|
|
270
|
+
this.e3j_1 = continuation;
|
|
271
|
+
this.f3j_1 = null;
|
|
271
272
|
if (get_DEVELOPMENT_MODE()) {
|
|
272
273
|
var tmp = this;
|
|
273
274
|
// Inline function 'kotlin.also' call
|
|
274
|
-
var this_0 = newThrowable('WriteTask 0x' + toString_0(hashCode(this.
|
|
275
|
+
var this_0 = newThrowable('WriteTask 0x' + toString_0(hashCode(this.e3j_1), 16));
|
|
275
276
|
stackTraceToString(this_0);
|
|
276
|
-
tmp.
|
|
277
|
+
tmp.f3j_1 = this_0;
|
|
277
278
|
}
|
|
278
279
|
}
|
|
279
|
-
protoOf(Write).
|
|
280
|
-
return this.
|
|
280
|
+
protoOf(Write).y3i = function () {
|
|
281
|
+
return this.e3j_1;
|
|
281
282
|
};
|
|
282
|
-
protoOf(Write).
|
|
283
|
-
return this.
|
|
283
|
+
protoOf(Write).x3i = function () {
|
|
284
|
+
return this.f3j_1;
|
|
284
285
|
};
|
|
285
|
-
protoOf(Write).
|
|
286
|
+
protoOf(Write).z3i = function () {
|
|
286
287
|
return 'write';
|
|
287
288
|
};
|
|
288
289
|
function moveFlushToReadBuffer($this) {
|
|
289
290
|
// Inline function 'io.ktor.utils.io.locks.synchronized' call
|
|
290
|
-
$this.
|
|
291
|
-
$this.
|
|
292
|
-
$this.
|
|
291
|
+
$this.j3j_1;
|
|
292
|
+
$this.h3j_1.z3g($this.l3j_1);
|
|
293
|
+
$this.i3j_1 = 0;
|
|
293
294
|
// Inline function 'io.ktor.utils.io.ByteChannel.resumeSlot' call
|
|
294
|
-
var current = $this.
|
|
295
|
+
var current = $this.k3j_1.kotlinx$atomicfu$value;
|
|
295
296
|
var tmp;
|
|
296
297
|
if (current instanceof Write) {
|
|
297
|
-
tmp = $this.
|
|
298
|
+
tmp = $this.k3j_1.atomicfu$compareAndSet(current, Empty_instance);
|
|
298
299
|
} else {
|
|
299
300
|
tmp = false;
|
|
300
301
|
}
|
|
301
302
|
if (tmp) {
|
|
302
|
-
current.
|
|
303
|
+
current.a3j();
|
|
303
304
|
}
|
|
304
305
|
}
|
|
305
306
|
function closeSlot($this, cause) {
|
|
306
|
-
var closeContinuation = !(cause == null) ? new Closed(cause) : Companion_getInstance().
|
|
307
|
-
var continuation = $this.
|
|
307
|
+
var closeContinuation = !(cause == null) ? new Closed(cause) : Companion_getInstance().u3i_1;
|
|
308
|
+
var continuation = $this.k3j_1.atomicfu$getAndSet(closeContinuation);
|
|
308
309
|
if (isInterface(continuation, Task)) {
|
|
309
|
-
continuation.
|
|
310
|
+
continuation.b3j(cause);
|
|
310
311
|
}
|
|
311
|
-
var tmp0_safe_receiver = $this.
|
|
312
|
+
var tmp0_safe_receiver = $this.o3j_1.atomicfu$getAndSet(null);
|
|
312
313
|
if (tmp0_safe_receiver == null)
|
|
313
314
|
null;
|
|
314
315
|
else
|
|
315
316
|
tmp0_safe_receiver(cause);
|
|
316
317
|
}
|
|
317
318
|
function sam$kotlinx_coroutines_DisposableHandle$0(function_0) {
|
|
318
|
-
this.
|
|
319
|
+
this.p3j_1 = function_0;
|
|
319
320
|
}
|
|
320
321
|
protoOf(sam$kotlinx_coroutines_DisposableHandle$0).u1p = function () {
|
|
321
|
-
return this.
|
|
322
|
+
return this.p3j_1();
|
|
322
323
|
};
|
|
323
324
|
protoOf(sam$kotlinx_coroutines_DisposableHandle$0).m3 = function () {
|
|
324
|
-
return this.
|
|
325
|
+
return this.p3j_1;
|
|
325
326
|
};
|
|
326
327
|
protoOf(sam$kotlinx_coroutines_DisposableHandle$0).equals = function (other) {
|
|
327
328
|
var tmp;
|
|
@@ -349,14 +350,14 @@ function ByteChannel$invokeOnClose$lambda_0() {
|
|
|
349
350
|
}
|
|
350
351
|
function ByteChannel$invokeOnClose$lambda_1(this$0, $handler) {
|
|
351
352
|
return function () {
|
|
352
|
-
this$0.
|
|
353
|
+
this$0.o3j_1.atomicfu$compareAndSet($handler, null);
|
|
353
354
|
return Unit_instance;
|
|
354
355
|
};
|
|
355
356
|
}
|
|
356
357
|
function $awaitContentCOROUTINE$(_this__u8e3s4, min, resultContinuation) {
|
|
357
358
|
CoroutineImpl.call(this, resultContinuation);
|
|
358
|
-
this.
|
|
359
|
-
this.
|
|
359
|
+
this.y3j_1 = _this__u8e3s4;
|
|
360
|
+
this.z3j_1 = min;
|
|
360
361
|
}
|
|
361
362
|
protoOf($awaitContentCOROUTINE$).d9 = function () {
|
|
362
363
|
var suspendResult = this.x8_1;
|
|
@@ -366,14 +367,14 @@ protoOf($awaitContentCOROUTINE$).d9 = function () {
|
|
|
366
367
|
switch (tmp) {
|
|
367
368
|
case 0:
|
|
368
369
|
this.w8_1 = 4;
|
|
369
|
-
rethrowCloseCauseIfNeeded_0(this.
|
|
370
|
-
if (compare(this.
|
|
370
|
+
rethrowCloseCauseIfNeeded_0(this.y3j_1);
|
|
371
|
+
if (compare(this.y3j_1.l3j_1.e1(), fromInt(this.z3j_1)) >= 0)
|
|
371
372
|
return true;
|
|
372
|
-
this.
|
|
373
|
+
this.a3k_1 = this.y3j_1;
|
|
373
374
|
this.v8_1 = 1;
|
|
374
375
|
continue $sm;
|
|
375
376
|
case 1:
|
|
376
|
-
if (!(compare(add(numberToLong(this.
|
|
377
|
+
if (!(compare(add(numberToLong(this.y3j_1.i3j_1), this.y3j_1.l3j_1.e1()), fromInt(this.z3j_1)) < 0 && this.y3j_1.n3j_1.kotlinx$atomicfu$value == null)) {
|
|
377
378
|
this.v8_1 = 3;
|
|
378
379
|
continue $sm;
|
|
379
380
|
}
|
|
@@ -381,24 +382,24 @@ protoOf($awaitContentCOROUTINE$).d9 = function () {
|
|
|
381
382
|
this.v8_1 = 2;
|
|
382
383
|
var cancellable = new CancellableContinuationImpl(intercepted(this), 1);
|
|
383
384
|
cancellable.x1q();
|
|
384
|
-
var tmp0 = this.
|
|
385
|
+
var tmp0 = this.a3k_1;
|
|
385
386
|
var tmp2 = new Read(cancellable);
|
|
386
387
|
l$ret$1: do {
|
|
387
|
-
var previous = tmp0.
|
|
388
|
+
var previous = tmp0.k3j_1.kotlinx$atomicfu$value;
|
|
388
389
|
if (!(previous instanceof Closed)) {
|
|
389
|
-
if (!tmp0.
|
|
390
|
-
tmp2.
|
|
390
|
+
if (!tmp0.k3j_1.atomicfu$compareAndSet(previous, tmp2)) {
|
|
391
|
+
tmp2.a3j();
|
|
391
392
|
break l$ret$1;
|
|
392
393
|
}
|
|
393
394
|
}
|
|
394
395
|
if (previous instanceof Read) {
|
|
395
|
-
previous.
|
|
396
|
+
previous.b3j(new ConcurrentIOException(tmp2.z3i(), previous.x3i()));
|
|
396
397
|
} else {
|
|
397
398
|
if (isInterface(previous, Task)) {
|
|
398
|
-
previous.
|
|
399
|
+
previous.a3j();
|
|
399
400
|
} else {
|
|
400
401
|
if (previous instanceof Closed) {
|
|
401
|
-
tmp2.
|
|
402
|
+
tmp2.b3j(previous.w3i_1);
|
|
402
403
|
break l$ret$1;
|
|
403
404
|
} else {
|
|
404
405
|
if (!equals(previous, Empty_instance)) {
|
|
@@ -407,16 +408,16 @@ protoOf($awaitContentCOROUTINE$).d9 = function () {
|
|
|
407
408
|
}
|
|
408
409
|
}
|
|
409
410
|
}
|
|
410
|
-
if (!(compare(add(numberToLong(this.
|
|
411
|
-
var current = tmp0.
|
|
411
|
+
if (!(compare(add(numberToLong(this.y3j_1.i3j_1), this.y3j_1.l3j_1.e1()), fromInt(this.z3j_1)) < 0 && this.y3j_1.n3j_1.kotlinx$atomicfu$value == null)) {
|
|
412
|
+
var current = tmp0.k3j_1.kotlinx$atomicfu$value;
|
|
412
413
|
var tmp_0;
|
|
413
414
|
if (current instanceof Read) {
|
|
414
|
-
tmp_0 = tmp0.
|
|
415
|
+
tmp_0 = tmp0.k3j_1.atomicfu$compareAndSet(current, Empty_instance);
|
|
415
416
|
} else {
|
|
416
417
|
tmp_0 = false;
|
|
417
418
|
}
|
|
418
419
|
if (tmp_0) {
|
|
419
|
-
current.
|
|
420
|
+
current.a3j();
|
|
420
421
|
}
|
|
421
422
|
}
|
|
422
423
|
}
|
|
@@ -431,11 +432,11 @@ protoOf($awaitContentCOROUTINE$).d9 = function () {
|
|
|
431
432
|
this.v8_1 = 1;
|
|
432
433
|
continue $sm;
|
|
433
434
|
case 3:
|
|
434
|
-
if (compare(this.
|
|
435
|
-
moveFlushToReadBuffer(this.
|
|
435
|
+
if (compare(this.y3j_1.l3j_1.e1(), new Long(1048576, 0)) < 0) {
|
|
436
|
+
moveFlushToReadBuffer(this.y3j_1);
|
|
436
437
|
}
|
|
437
438
|
|
|
438
|
-
return compare(this.
|
|
439
|
+
return compare(this.y3j_1.l3j_1.e1(), fromInt(this.z3j_1)) >= 0;
|
|
439
440
|
case 4:
|
|
440
441
|
throw this.y8_1;
|
|
441
442
|
}
|
|
@@ -452,7 +453,7 @@ protoOf($awaitContentCOROUTINE$).d9 = function () {
|
|
|
452
453
|
};
|
|
453
454
|
function $flushCOROUTINE$(_this__u8e3s4, resultContinuation) {
|
|
454
455
|
CoroutineImpl.call(this, resultContinuation);
|
|
455
|
-
this.
|
|
456
|
+
this.j3k_1 = _this__u8e3s4;
|
|
456
457
|
}
|
|
457
458
|
protoOf($flushCOROUTINE$).d9 = function () {
|
|
458
459
|
var suspendResult = this.x8_1;
|
|
@@ -462,15 +463,15 @@ protoOf($flushCOROUTINE$).d9 = function () {
|
|
|
462
463
|
switch (tmp) {
|
|
463
464
|
case 0:
|
|
464
465
|
this.w8_1 = 4;
|
|
465
|
-
rethrowCloseCauseIfNeeded_0(this.
|
|
466
|
-
this.
|
|
467
|
-
if (this.
|
|
466
|
+
rethrowCloseCauseIfNeeded_0(this.j3k_1);
|
|
467
|
+
this.j3k_1.l3k();
|
|
468
|
+
if (this.j3k_1.m3k())
|
|
468
469
|
return Unit_instance;
|
|
469
|
-
this.
|
|
470
|
+
this.k3k_1 = this.j3k_1;
|
|
470
471
|
this.v8_1 = 1;
|
|
471
472
|
continue $sm;
|
|
472
473
|
case 1:
|
|
473
|
-
if (!(!this.
|
|
474
|
+
if (!(!this.j3k_1.m3k() && this.j3k_1.n3j_1.kotlinx$atomicfu$value == null)) {
|
|
474
475
|
this.v8_1 = 3;
|
|
475
476
|
continue $sm;
|
|
476
477
|
}
|
|
@@ -478,24 +479,24 @@ protoOf($flushCOROUTINE$).d9 = function () {
|
|
|
478
479
|
this.v8_1 = 2;
|
|
479
480
|
var cancellable = new CancellableContinuationImpl(intercepted(this), 1);
|
|
480
481
|
cancellable.x1q();
|
|
481
|
-
var tmp0 = this.
|
|
482
|
+
var tmp0 = this.k3k_1;
|
|
482
483
|
var tmp2 = new Write(cancellable);
|
|
483
484
|
l$ret$1: do {
|
|
484
|
-
var previous = tmp0.
|
|
485
|
+
var previous = tmp0.k3j_1.kotlinx$atomicfu$value;
|
|
485
486
|
if (!(previous instanceof Closed)) {
|
|
486
|
-
if (!tmp0.
|
|
487
|
-
tmp2.
|
|
487
|
+
if (!tmp0.k3j_1.atomicfu$compareAndSet(previous, tmp2)) {
|
|
488
|
+
tmp2.a3j();
|
|
488
489
|
break l$ret$1;
|
|
489
490
|
}
|
|
490
491
|
}
|
|
491
492
|
if (previous instanceof Write) {
|
|
492
|
-
previous.
|
|
493
|
+
previous.b3j(new ConcurrentIOException(tmp2.z3i(), previous.x3i()));
|
|
493
494
|
} else {
|
|
494
495
|
if (isInterface(previous, Task)) {
|
|
495
|
-
previous.
|
|
496
|
+
previous.a3j();
|
|
496
497
|
} else {
|
|
497
498
|
if (previous instanceof Closed) {
|
|
498
|
-
tmp2.
|
|
499
|
+
tmp2.b3j(previous.w3i_1);
|
|
499
500
|
break l$ret$1;
|
|
500
501
|
} else {
|
|
501
502
|
if (!equals(previous, Empty_instance)) {
|
|
@@ -504,16 +505,16 @@ protoOf($flushCOROUTINE$).d9 = function () {
|
|
|
504
505
|
}
|
|
505
506
|
}
|
|
506
507
|
}
|
|
507
|
-
if (!(!this.
|
|
508
|
-
var current = tmp0.
|
|
508
|
+
if (!(!this.j3k_1.m3k() && this.j3k_1.n3j_1.kotlinx$atomicfu$value == null)) {
|
|
509
|
+
var current = tmp0.k3j_1.kotlinx$atomicfu$value;
|
|
509
510
|
var tmp_0;
|
|
510
511
|
if (current instanceof Write) {
|
|
511
|
-
tmp_0 = tmp0.
|
|
512
|
+
tmp_0 = tmp0.k3j_1.atomicfu$compareAndSet(current, Empty_instance);
|
|
512
513
|
} else {
|
|
513
514
|
tmp_0 = false;
|
|
514
515
|
}
|
|
515
516
|
if (tmp_0) {
|
|
516
|
-
current.
|
|
517
|
+
current.a3j();
|
|
517
518
|
}
|
|
518
519
|
}
|
|
519
520
|
}
|
|
@@ -545,7 +546,7 @@ protoOf($flushCOROUTINE$).d9 = function () {
|
|
|
545
546
|
};
|
|
546
547
|
function $flushAndCloseCOROUTINE$(_this__u8e3s4, resultContinuation) {
|
|
547
548
|
CoroutineImpl.call(this, resultContinuation);
|
|
548
|
-
this.
|
|
549
|
+
this.v3k_1 = _this__u8e3s4;
|
|
549
550
|
}
|
|
550
551
|
protoOf($flushAndCloseCOROUTINE$).d9 = function () {
|
|
551
552
|
var suspendResult = this.x8_1;
|
|
@@ -555,11 +556,11 @@ protoOf($flushAndCloseCOROUTINE$).d9 = function () {
|
|
|
555
556
|
switch (tmp) {
|
|
556
557
|
case 0:
|
|
557
558
|
this.w8_1 = 4;
|
|
558
|
-
var this_0 = this.
|
|
559
|
+
var this_0 = this.v3k_1;
|
|
559
560
|
this.w8_1 = 2;
|
|
560
|
-
this.
|
|
561
|
+
this.x3k_1 = Companion_instance;
|
|
561
562
|
this.v8_1 = 1;
|
|
562
|
-
suspendResult = this_0.
|
|
563
|
+
suspendResult = this_0.y3k(this);
|
|
563
564
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
564
565
|
return suspendResult;
|
|
565
566
|
}
|
|
@@ -567,8 +568,8 @@ protoOf($flushAndCloseCOROUTINE$).d9 = function () {
|
|
|
567
568
|
continue $sm;
|
|
568
569
|
case 1:
|
|
569
570
|
var tmp_0 = this;
|
|
570
|
-
this.
|
|
571
|
-
tmp_0.
|
|
571
|
+
this.x3k_1;
|
|
572
|
+
tmp_0.w3k_1 = _Result___init__impl__xyqfz8(Unit_instance);
|
|
572
573
|
this.w8_1 = 4;
|
|
573
574
|
this.v8_1 = 3;
|
|
574
575
|
continue $sm;
|
|
@@ -578,7 +579,7 @@ protoOf($flushAndCloseCOROUTINE$).d9 = function () {
|
|
|
578
579
|
if (tmp_1 instanceof Error) {
|
|
579
580
|
var e = this.y8_1;
|
|
580
581
|
var tmp_2 = this;
|
|
581
|
-
tmp_2.
|
|
582
|
+
tmp_2.w3k_1 = _Result___init__impl__xyqfz8(createFailure(e));
|
|
582
583
|
this.v8_1 = 3;
|
|
583
584
|
continue $sm;
|
|
584
585
|
} else {
|
|
@@ -587,9 +588,9 @@ protoOf($flushAndCloseCOROUTINE$).d9 = function () {
|
|
|
587
588
|
|
|
588
589
|
case 3:
|
|
589
590
|
this.w8_1 = 4;
|
|
590
|
-
if (!this.
|
|
591
|
+
if (!this.v3k_1.n3j_1.atomicfu$compareAndSet(null, get_CLOSED()))
|
|
591
592
|
return Unit_instance;
|
|
592
|
-
closeSlot(this.
|
|
593
|
+
closeSlot(this.v3k_1, null);
|
|
593
594
|
return Unit_instance;
|
|
594
595
|
case 4:
|
|
595
596
|
throw this.y8_1;
|
|
@@ -607,24 +608,24 @@ protoOf($flushAndCloseCOROUTINE$).d9 = function () {
|
|
|
607
608
|
};
|
|
608
609
|
function ByteChannel(autoFlush) {
|
|
609
610
|
autoFlush = autoFlush === VOID ? false : autoFlush;
|
|
610
|
-
this.
|
|
611
|
-
this.
|
|
612
|
-
this.
|
|
613
|
-
this.
|
|
614
|
-
this.
|
|
615
|
-
this.
|
|
616
|
-
this.
|
|
617
|
-
this.
|
|
618
|
-
this.
|
|
619
|
-
}
|
|
620
|
-
protoOf(ByteChannel).
|
|
621
|
-
return this.
|
|
622
|
-
};
|
|
623
|
-
protoOf(ByteChannel).
|
|
624
|
-
return this.
|
|
625
|
-
};
|
|
626
|
-
protoOf(ByteChannel).
|
|
627
|
-
var tmp0_safe_receiver = this.
|
|
611
|
+
this.g3j_1 = autoFlush;
|
|
612
|
+
this.h3j_1 = new Buffer();
|
|
613
|
+
this.i3j_1 = 0;
|
|
614
|
+
this.j3j_1 = new Object();
|
|
615
|
+
this.k3j_1 = atomic$ref$1(Empty_instance);
|
|
616
|
+
this.l3j_1 = new Buffer();
|
|
617
|
+
this.m3j_1 = new Buffer();
|
|
618
|
+
this.n3j_1 = atomic$ref$1(null);
|
|
619
|
+
this.o3j_1 = atomic$ref$1(null);
|
|
620
|
+
}
|
|
621
|
+
protoOf(ByteChannel).z3k = function () {
|
|
622
|
+
return this.g3j_1;
|
|
623
|
+
};
|
|
624
|
+
protoOf(ByteChannel).m3k = function () {
|
|
625
|
+
return this.i3j_1 < 1048576;
|
|
626
|
+
};
|
|
627
|
+
protoOf(ByteChannel).a3l = function () {
|
|
628
|
+
var tmp0_safe_receiver = this.n3j_1.kotlinx$atomicfu$value;
|
|
628
629
|
if (tmp0_safe_receiver == null)
|
|
629
630
|
null;
|
|
630
631
|
else {
|
|
@@ -655,14 +656,14 @@ protoOf(ByteChannel).z3j = function () {
|
|
|
655
656
|
throw tmp0_safe_receiver_0;
|
|
656
657
|
}
|
|
657
658
|
}
|
|
658
|
-
if (this.
|
|
659
|
+
if (this.l3j_1.w3f()) {
|
|
659
660
|
moveFlushToReadBuffer(this);
|
|
660
661
|
}
|
|
661
|
-
return this.
|
|
662
|
+
return this.l3j_1;
|
|
662
663
|
};
|
|
663
|
-
protoOf(ByteChannel).
|
|
664
|
-
if (this.
|
|
665
|
-
var tmp0_safe_receiver = this.
|
|
664
|
+
protoOf(ByteChannel).b3l = function () {
|
|
665
|
+
if (this.c3l()) {
|
|
666
|
+
var tmp0_safe_receiver = this.n3j_1.kotlinx$atomicfu$value;
|
|
666
667
|
var tmp;
|
|
667
668
|
if (tmp0_safe_receiver == null) {
|
|
668
669
|
tmp = null;
|
|
@@ -698,10 +699,10 @@ protoOf(ByteChannel).a3k = function () {
|
|
|
698
699
|
if (tmp == null)
|
|
699
700
|
throw new ClosedWriteChannelException();
|
|
700
701
|
}
|
|
701
|
-
return this.
|
|
702
|
+
return this.m3j_1;
|
|
702
703
|
};
|
|
703
|
-
protoOf(ByteChannel).
|
|
704
|
-
var tmp0_safe_receiver = this.
|
|
704
|
+
protoOf(ByteChannel).d3l = function () {
|
|
705
|
+
var tmp0_safe_receiver = this.n3j_1.kotlinx$atomicfu$value;
|
|
705
706
|
var tmp;
|
|
706
707
|
if (tmp0_safe_receiver == null) {
|
|
707
708
|
tmp = null;
|
|
@@ -727,61 +728,61 @@ protoOf(ByteChannel).c3k = function () {
|
|
|
727
728
|
}
|
|
728
729
|
return tmp;
|
|
729
730
|
};
|
|
730
|
-
protoOf(ByteChannel).
|
|
731
|
-
return !(this.
|
|
731
|
+
protoOf(ByteChannel).c3l = function () {
|
|
732
|
+
return !(this.n3j_1.kotlinx$atomicfu$value == null);
|
|
732
733
|
};
|
|
733
|
-
protoOf(ByteChannel).
|
|
734
|
-
return !(this.
|
|
734
|
+
protoOf(ByteChannel).e3l = function () {
|
|
735
|
+
return !(this.d3l() == null) || (this.c3l() && this.i3j_1 === 0 && this.l3j_1.w3f());
|
|
735
736
|
};
|
|
736
|
-
protoOf(ByteChannel).
|
|
737
|
+
protoOf(ByteChannel).f3l = function (min, $completion) {
|
|
737
738
|
var tmp = new $awaitContentCOROUTINE$(this, min, $completion);
|
|
738
739
|
tmp.x8_1 = Unit_instance;
|
|
739
740
|
tmp.y8_1 = null;
|
|
740
741
|
return tmp.d9();
|
|
741
742
|
};
|
|
742
|
-
protoOf(ByteChannel).
|
|
743
|
+
protoOf(ByteChannel).y3k = function ($completion) {
|
|
743
744
|
var tmp = new $flushCOROUTINE$(this, $completion);
|
|
744
745
|
tmp.x8_1 = Unit_instance;
|
|
745
746
|
tmp.y8_1 = null;
|
|
746
747
|
return tmp.d9();
|
|
747
748
|
};
|
|
748
|
-
protoOf(ByteChannel).
|
|
749
|
-
if (this.
|
|
749
|
+
protoOf(ByteChannel).l3k = function () {
|
|
750
|
+
if (this.m3j_1.w3f())
|
|
750
751
|
return Unit_instance;
|
|
751
752
|
// Inline function 'io.ktor.utils.io.locks.synchronized' call
|
|
752
|
-
this.
|
|
753
|
-
var count = convertToInt(this.
|
|
754
|
-
this.
|
|
755
|
-
this.
|
|
753
|
+
this.j3j_1;
|
|
754
|
+
var count = convertToInt(this.m3j_1.e1());
|
|
755
|
+
this.h3j_1.o3h(this.m3j_1);
|
|
756
|
+
this.i3j_1 = this.i3j_1 + count | 0;
|
|
756
757
|
// Inline function 'io.ktor.utils.io.ByteChannel.resumeSlot' call
|
|
757
|
-
var current = this.
|
|
758
|
+
var current = this.k3j_1.kotlinx$atomicfu$value;
|
|
758
759
|
var tmp;
|
|
759
760
|
if (current instanceof Read) {
|
|
760
|
-
tmp = this.
|
|
761
|
+
tmp = this.k3j_1.atomicfu$compareAndSet(current, Empty_instance);
|
|
761
762
|
} else {
|
|
762
763
|
tmp = false;
|
|
763
764
|
}
|
|
764
765
|
if (tmp) {
|
|
765
|
-
current.
|
|
766
|
+
current.a3j();
|
|
766
767
|
}
|
|
767
768
|
};
|
|
768
769
|
protoOf(ByteChannel).d4 = function () {
|
|
769
|
-
this.
|
|
770
|
-
if (!this.
|
|
770
|
+
this.l3k();
|
|
771
|
+
if (!this.n3j_1.atomicfu$compareAndSet(null, get_CLOSED()))
|
|
771
772
|
return Unit_instance;
|
|
772
773
|
closeSlot(this, null);
|
|
773
774
|
};
|
|
774
|
-
protoOf(ByteChannel).
|
|
775
|
+
protoOf(ByteChannel).h3l = function ($completion) {
|
|
775
776
|
var tmp = new $flushAndCloseCOROUTINE$(this, $completion);
|
|
776
777
|
tmp.x8_1 = Unit_instance;
|
|
777
778
|
tmp.y8_1 = null;
|
|
778
779
|
return tmp.d9();
|
|
779
780
|
};
|
|
780
|
-
protoOf(ByteChannel).
|
|
781
|
-
if (!(this.
|
|
781
|
+
protoOf(ByteChannel).i3l = function (cause) {
|
|
782
|
+
if (!(this.n3j_1.kotlinx$atomicfu$value == null))
|
|
782
783
|
return Unit_instance;
|
|
783
784
|
var closedToken = new CloseToken(cause);
|
|
784
|
-
this.
|
|
785
|
+
this.n3j_1.atomicfu$compareAndSet(null, closedToken);
|
|
785
786
|
// Inline function 'io.ktor.utils.io.Companion.wrapCause' call
|
|
786
787
|
var tmp0_subject = access$_get_origin__hdh1qz(closedToken);
|
|
787
788
|
var tmp;
|
|
@@ -802,8 +803,8 @@ protoOf(ByteChannel).h3k = function (cause) {
|
|
|
802
803
|
var wrappedCause = tmp;
|
|
803
804
|
closeSlot(this, wrappedCause);
|
|
804
805
|
};
|
|
805
|
-
protoOf(ByteChannel).
|
|
806
|
-
var existingCause = this.
|
|
806
|
+
protoOf(ByteChannel).j3l = function (handler) {
|
|
807
|
+
var existingCause = this.n3j_1.kotlinx$atomicfu$value;
|
|
807
808
|
if (!(existingCause == null)) {
|
|
808
809
|
// Inline function 'io.ktor.utils.io.Companion.wrapCause' call
|
|
809
810
|
var tmp0_subject = access$_get_origin__hdh1qz(existingCause);
|
|
@@ -826,13 +827,13 @@ protoOf(ByteChannel).i3k = function (handler) {
|
|
|
826
827
|
var tmp_0 = ByteChannel$invokeOnClose$lambda;
|
|
827
828
|
return new sam$kotlinx_coroutines_DisposableHandle$0(tmp_0);
|
|
828
829
|
}
|
|
829
|
-
if (!this.
|
|
830
|
+
if (!this.o3j_1.atomicfu$compareAndSet(null, handler)) {
|
|
830
831
|
// Inline function 'kotlin.error' call
|
|
831
832
|
var message = 'Only one invokeOnClose handler is supported per channel';
|
|
832
833
|
throw IllegalStateException_init_$Create$(toString_1(message));
|
|
833
834
|
}
|
|
834
|
-
var cause = this.
|
|
835
|
-
if (!(cause == null) && this.
|
|
835
|
+
var cause = this.n3j_1.kotlinx$atomicfu$value;
|
|
836
|
+
if (!(cause == null) && this.o3j_1.atomicfu$compareAndSet(handler, null)) {
|
|
836
837
|
// Inline function 'io.ktor.utils.io.Companion.wrapCause' call
|
|
837
838
|
var tmp0_subject_0 = access$_get_origin__hdh1qz(cause);
|
|
838
839
|
var tmp_1;
|
|
@@ -870,7 +871,7 @@ function ByteReadChannel(content, offset, length) {
|
|
|
870
871
|
length = length === VOID ? content.length : length;
|
|
871
872
|
// Inline function 'kotlin.also' call
|
|
872
873
|
var this_0 = new Buffer();
|
|
873
|
-
this_0.
|
|
874
|
+
this_0.f3h(content, offset, offset + length | 0);
|
|
874
875
|
var source = this_0;
|
|
875
876
|
return ByteReadChannel_0(source);
|
|
876
877
|
}
|
|
@@ -878,18 +879,18 @@ function ByteReadChannel_0(source) {
|
|
|
878
879
|
return new SourceByteReadChannel(source);
|
|
879
880
|
}
|
|
880
881
|
function buildPartialMatchTable($this) {
|
|
881
|
-
var table = new Int32Array($this.
|
|
882
|
+
var table = new Int32Array($this.l3l_1.e1());
|
|
882
883
|
var j = 0;
|
|
883
884
|
var inductionVariable = 1;
|
|
884
|
-
var last = $this.
|
|
885
|
+
var last = $this.l3l_1.e1();
|
|
885
886
|
if (inductionVariable < last)
|
|
886
887
|
do {
|
|
887
888
|
var i = inductionVariable;
|
|
888
889
|
inductionVariable = inductionVariable + 1 | 0;
|
|
889
|
-
while (j > 0 && !($this.
|
|
890
|
+
while (j > 0 && !($this.l3l_1.f1(i) === $this.l3l_1.f1(j))) {
|
|
890
891
|
j = table[j - 1 | 0];
|
|
891
892
|
}
|
|
892
|
-
if ($this.
|
|
893
|
+
if ($this.l3l_1.f1(i) === $this.l3l_1.f1(j)) {
|
|
893
894
|
j = j + 1 | 0;
|
|
894
895
|
}
|
|
895
896
|
table[i] = j;
|
|
@@ -910,8 +911,8 @@ function checkFullMatch($this, $completion) {
|
|
|
910
911
|
return tmp.d9();
|
|
911
912
|
}
|
|
912
913
|
function checkBounds($this, extra) {
|
|
913
|
-
if (compare(add($this.
|
|
914
|
-
throw IOException_init_$Create$('Limit of ' + $this.
|
|
914
|
+
if (compare(add($this.r3l_1, extra), $this.n3l_1) > 0) {
|
|
915
|
+
throw IOException_init_$Create$('Limit of ' + $this.n3l_1.toString() + ' bytes exceeded ' + ('while searching for "' + toSingleLineString($this, $this.l3l_1) + '"'));
|
|
915
916
|
}
|
|
916
917
|
}
|
|
917
918
|
function toSingleLineString($this, $receiver) {
|
|
@@ -919,8 +920,8 @@ function toSingleLineString($this, $receiver) {
|
|
|
919
920
|
}
|
|
920
921
|
function $findNextCOROUTINE$(_this__u8e3s4, ignoreMissing, resultContinuation) {
|
|
921
922
|
CoroutineImpl.call(this, resultContinuation);
|
|
922
|
-
this.
|
|
923
|
-
this.
|
|
923
|
+
this.w3m_1 = _this__u8e3s4;
|
|
924
|
+
this.x3m_1 = ignoreMissing;
|
|
924
925
|
}
|
|
925
926
|
protoOf($findNextCOROUTINE$).d9 = function () {
|
|
926
927
|
var suspendResult = this.x8_1;
|
|
@@ -930,17 +931,17 @@ protoOf($findNextCOROUTINE$).d9 = function () {
|
|
|
930
931
|
switch (tmp) {
|
|
931
932
|
case 0:
|
|
932
933
|
this.w8_1 = 9;
|
|
933
|
-
this.
|
|
934
|
+
this.w3m_1.r3l_1 = new Long(0, 0);
|
|
934
935
|
this.v8_1 = 1;
|
|
935
936
|
continue $sm;
|
|
936
937
|
case 1:
|
|
937
|
-
if (!this.
|
|
938
|
-
this.
|
|
938
|
+
if (!this.w3m_1.o3l_1.w3f()) {
|
|
939
|
+
this.y3m_1 = true;
|
|
939
940
|
this.v8_1 = 3;
|
|
940
941
|
continue $sm;
|
|
941
942
|
} else {
|
|
942
943
|
this.v8_1 = 2;
|
|
943
|
-
suspendResult = this.
|
|
944
|
+
suspendResult = this.w3m_1.k3l_1.g3l(VOID, this);
|
|
944
945
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
945
946
|
return suspendResult;
|
|
946
947
|
}
|
|
@@ -948,17 +949,17 @@ protoOf($findNextCOROUTINE$).d9 = function () {
|
|
|
948
949
|
}
|
|
949
950
|
|
|
950
951
|
case 2:
|
|
951
|
-
this.
|
|
952
|
+
this.y3m_1 = suspendResult;
|
|
952
953
|
this.v8_1 = 3;
|
|
953
954
|
continue $sm;
|
|
954
955
|
case 3:
|
|
955
|
-
if (!this.
|
|
956
|
+
if (!this.y3m_1) {
|
|
956
957
|
this.v8_1 = 7;
|
|
957
958
|
continue $sm;
|
|
958
959
|
}
|
|
959
960
|
|
|
960
961
|
this.v8_1 = 4;
|
|
961
|
-
suspendResult = advanceToNextPotentialMatch(this.
|
|
962
|
+
suspendResult = advanceToNextPotentialMatch(this.w3m_1, this);
|
|
962
963
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
963
964
|
return suspendResult;
|
|
964
965
|
}
|
|
@@ -966,7 +967,7 @@ protoOf($findNextCOROUTINE$).d9 = function () {
|
|
|
966
967
|
continue $sm;
|
|
967
968
|
case 4:
|
|
968
969
|
this.v8_1 = 5;
|
|
969
|
-
suspendResult = checkFullMatch(this.
|
|
970
|
+
suspendResult = checkFullMatch(this.w3m_1, this);
|
|
970
971
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
971
972
|
return suspendResult;
|
|
972
973
|
}
|
|
@@ -974,7 +975,7 @@ protoOf($findNextCOROUTINE$).d9 = function () {
|
|
|
974
975
|
continue $sm;
|
|
975
976
|
case 5:
|
|
976
977
|
if (suspendResult) {
|
|
977
|
-
return this.
|
|
978
|
+
return this.w3m_1.r3l_1;
|
|
978
979
|
} else {
|
|
979
980
|
this.v8_1 = 6;
|
|
980
981
|
continue $sm;
|
|
@@ -984,20 +985,20 @@ protoOf($findNextCOROUTINE$).d9 = function () {
|
|
|
984
985
|
this.v8_1 = 1;
|
|
985
986
|
continue $sm;
|
|
986
987
|
case 7:
|
|
987
|
-
if (!this.
|
|
988
|
-
throw IOException_init_$Create$('Expected "' + toSingleLineString(this.
|
|
988
|
+
if (!this.x3m_1) {
|
|
989
|
+
throw IOException_init_$Create$('Expected "' + toSingleLineString(this.w3m_1, this.w3m_1.l3l_1) + '" but encountered end of input');
|
|
989
990
|
}
|
|
990
991
|
|
|
991
|
-
this.
|
|
992
|
+
this.w3m_1.r3l_1 = add(this.w3m_1.r3l_1, this.w3m_1.q3l_1.z3g(this.w3m_1.m3l_1.b3l()));
|
|
992
993
|
this.v8_1 = 8;
|
|
993
|
-
suspendResult = this.
|
|
994
|
+
suspendResult = this.w3m_1.m3l_1.y3k(this);
|
|
994
995
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
995
996
|
return suspendResult;
|
|
996
997
|
}
|
|
997
998
|
|
|
998
999
|
continue $sm;
|
|
999
1000
|
case 8:
|
|
1000
|
-
return this.
|
|
1001
|
+
return this.w3m_1.r3l_1;
|
|
1001
1002
|
case 9:
|
|
1002
1003
|
throw this.y8_1;
|
|
1003
1004
|
}
|
|
@@ -1014,7 +1015,7 @@ protoOf($findNextCOROUTINE$).d9 = function () {
|
|
|
1014
1015
|
};
|
|
1015
1016
|
function $advanceToNextPotentialMatchCOROUTINE$(_this__u8e3s4, resultContinuation) {
|
|
1016
1017
|
CoroutineImpl.call(this, resultContinuation);
|
|
1017
|
-
this.
|
|
1018
|
+
this.b3m_1 = _this__u8e3s4;
|
|
1018
1019
|
}
|
|
1019
1020
|
protoOf($advanceToNextPotentialMatchCOROUTINE$).d9 = function () {
|
|
1020
1021
|
var suspendResult = this.x8_1;
|
|
@@ -1027,13 +1028,13 @@ protoOf($advanceToNextPotentialMatchCOROUTINE$).d9 = function () {
|
|
|
1027
1028
|
this.v8_1 = 1;
|
|
1028
1029
|
continue $sm;
|
|
1029
1030
|
case 1:
|
|
1030
|
-
if (!this.
|
|
1031
|
-
this.
|
|
1031
|
+
if (!this.b3m_1.o3l_1.w3f()) {
|
|
1032
|
+
this.c3m_1 = true;
|
|
1032
1033
|
this.v8_1 = 3;
|
|
1033
1034
|
continue $sm;
|
|
1034
1035
|
} else {
|
|
1035
1036
|
this.v8_1 = 2;
|
|
1036
|
-
suspendResult = this.
|
|
1037
|
+
suspendResult = this.b3m_1.k3l_1.g3l(VOID, this);
|
|
1037
1038
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1038
1039
|
return suspendResult;
|
|
1039
1040
|
}
|
|
@@ -1041,34 +1042,34 @@ protoOf($advanceToNextPotentialMatchCOROUTINE$).d9 = function () {
|
|
|
1041
1042
|
}
|
|
1042
1043
|
|
|
1043
1044
|
case 2:
|
|
1044
|
-
this.
|
|
1045
|
+
this.c3m_1 = suspendResult;
|
|
1045
1046
|
this.v8_1 = 3;
|
|
1046
1047
|
continue $sm;
|
|
1047
1048
|
case 3:
|
|
1048
|
-
if (!this.
|
|
1049
|
+
if (!this.c3m_1) {
|
|
1049
1050
|
this.v8_1 = 7;
|
|
1050
1051
|
continue $sm;
|
|
1051
1052
|
}
|
|
1052
1053
|
|
|
1053
|
-
var nextMatch = indexOf(this.
|
|
1054
|
+
var nextMatch = indexOf(this.b3m_1.o3l_1, this.b3m_1.l3l_1.f1(0));
|
|
1054
1055
|
if (equalsLong(nextMatch, new Long(-1, -1))) {
|
|
1055
|
-
var tmp_0 = this.
|
|
1056
|
-
checkBounds(this.
|
|
1057
|
-
this.
|
|
1056
|
+
var tmp_0 = this.b3m_1.o3l_1;
|
|
1057
|
+
checkBounds(this.b3m_1, (tmp_0 instanceof Buffer ? tmp_0 : THROW_CCE()).e1());
|
|
1058
|
+
this.b3m_1.r3l_1 = add(this.b3m_1.r3l_1, this.b3m_1.o3l_1.z3g(this.b3m_1.m3l_1.b3l()));
|
|
1058
1059
|
this.v8_1 = 5;
|
|
1059
|
-
suspendResult = flushIfNeeded(this.
|
|
1060
|
+
suspendResult = flushIfNeeded(this.b3m_1.m3l_1, this);
|
|
1060
1061
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1061
1062
|
return suspendResult;
|
|
1062
1063
|
}
|
|
1063
1064
|
continue $sm;
|
|
1064
1065
|
} else {
|
|
1065
|
-
checkBounds(this.
|
|
1066
|
-
var tmp_1 = this.
|
|
1067
|
-
var tmp_2 = this.
|
|
1068
|
-
var tmp_3 = this.
|
|
1069
|
-
tmp_1.
|
|
1066
|
+
checkBounds(this.b3m_1, nextMatch);
|
|
1067
|
+
var tmp_1 = this.b3m_1;
|
|
1068
|
+
var tmp_2 = this.b3m_1.r3l_1;
|
|
1069
|
+
var tmp_3 = this.b3m_1.m3l_1.b3l();
|
|
1070
|
+
tmp_1.r3l_1 = add(tmp_2, this.b3m_1.o3l_1.w3g(tmp_3 instanceof Buffer ? tmp_3 : THROW_CCE(), nextMatch));
|
|
1070
1071
|
this.v8_1 = 4;
|
|
1071
|
-
suspendResult = flushIfNeeded(this.
|
|
1072
|
+
suspendResult = flushIfNeeded(this.b3m_1.m3l_1, this);
|
|
1072
1073
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1073
1074
|
return suspendResult;
|
|
1074
1075
|
}
|
|
@@ -1101,7 +1102,7 @@ protoOf($advanceToNextPotentialMatchCOROUTINE$).d9 = function () {
|
|
|
1101
1102
|
};
|
|
1102
1103
|
function $checkFullMatchCOROUTINE$(_this__u8e3s4, resultContinuation) {
|
|
1103
1104
|
CoroutineImpl.call(this, resultContinuation);
|
|
1104
|
-
this.
|
|
1105
|
+
this.l3m_1 = _this__u8e3s4;
|
|
1105
1106
|
}
|
|
1106
1107
|
protoOf($checkFullMatchCOROUTINE$).d9 = function () {
|
|
1107
1108
|
var suspendResult = this.x8_1;
|
|
@@ -1114,13 +1115,13 @@ protoOf($checkFullMatchCOROUTINE$).d9 = function () {
|
|
|
1114
1115
|
this.v8_1 = 1;
|
|
1115
1116
|
continue $sm;
|
|
1116
1117
|
case 1:
|
|
1117
|
-
if (!this.
|
|
1118
|
-
this.
|
|
1118
|
+
if (!this.l3m_1.o3l_1.w3f()) {
|
|
1119
|
+
this.n3m_1 = true;
|
|
1119
1120
|
this.v8_1 = 3;
|
|
1120
1121
|
continue $sm;
|
|
1121
1122
|
} else {
|
|
1122
1123
|
this.v8_1 = 2;
|
|
1123
|
-
suspendResult = this.k3l_1.
|
|
1124
|
+
suspendResult = this.l3m_1.k3l_1.g3l(VOID, this);
|
|
1124
1125
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1125
1126
|
return suspendResult;
|
|
1126
1127
|
}
|
|
@@ -1128,30 +1129,30 @@ protoOf($checkFullMatchCOROUTINE$).d9 = function () {
|
|
|
1128
1129
|
}
|
|
1129
1130
|
|
|
1130
1131
|
case 2:
|
|
1131
|
-
this.
|
|
1132
|
+
this.n3m_1 = suspendResult;
|
|
1132
1133
|
this.v8_1 = 3;
|
|
1133
1134
|
continue $sm;
|
|
1134
1135
|
case 3:
|
|
1135
|
-
if (!this.
|
|
1136
|
+
if (!this.n3m_1) {
|
|
1136
1137
|
this.v8_1 = 7;
|
|
1137
1138
|
continue $sm;
|
|
1138
1139
|
}
|
|
1139
1140
|
|
|
1140
|
-
this.
|
|
1141
|
-
if (this.
|
|
1142
|
-
var oldMatchIndex = this.
|
|
1143
|
-
while (this.
|
|
1144
|
-
this.
|
|
1141
|
+
this.m3m_1 = this.l3m_1.o3l_1.z3f();
|
|
1142
|
+
if (this.l3m_1.s3l_1 > 0 && !(this.m3m_1 === this.l3m_1.l3l_1.f1(this.l3m_1.s3l_1))) {
|
|
1143
|
+
var oldMatchIndex = this.l3m_1.s3l_1;
|
|
1144
|
+
while (this.l3m_1.s3l_1 > 0 && !(this.m3m_1 === this.l3m_1.l3l_1.f1(this.l3m_1.s3l_1))) {
|
|
1145
|
+
this.l3m_1.s3l_1 = this.l3m_1.p3l_1[this.l3m_1.s3l_1 - 1 | 0];
|
|
1145
1146
|
}
|
|
1146
|
-
var retained = fromInt(oldMatchIndex - this.
|
|
1147
|
-
checkBounds(this.
|
|
1148
|
-
var tmp_0 = this.
|
|
1149
|
-
var tmp_1 = this.
|
|
1150
|
-
var tmp_2 = this.
|
|
1151
|
-
tmp_0.
|
|
1152
|
-
if (this.
|
|
1147
|
+
var retained = fromInt(oldMatchIndex - this.l3m_1.s3l_1 | 0);
|
|
1148
|
+
checkBounds(this.l3m_1, retained);
|
|
1149
|
+
var tmp_0 = this.l3m_1;
|
|
1150
|
+
var tmp_1 = this.l3m_1.r3l_1;
|
|
1151
|
+
var tmp_2 = this.l3m_1.m3l_1.b3l();
|
|
1152
|
+
tmp_0.r3l_1 = add(tmp_1, this.l3m_1.q3l_1.w3g(tmp_2 instanceof Buffer ? tmp_2 : THROW_CCE(), retained));
|
|
1153
|
+
if (this.l3m_1.s3l_1 === 0 && !(this.m3m_1 === this.l3m_1.l3l_1.f1(this.l3m_1.s3l_1))) {
|
|
1153
1154
|
this.v8_1 = 6;
|
|
1154
|
-
suspendResult = writeByte(this.
|
|
1155
|
+
suspendResult = writeByte(this.l3m_1.m3l_1, this.m3m_1, this);
|
|
1155
1156
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1156
1157
|
return suspendResult;
|
|
1157
1158
|
}
|
|
@@ -1169,17 +1170,17 @@ protoOf($checkFullMatchCOROUTINE$).d9 = function () {
|
|
|
1169
1170
|
this.v8_1 = 5;
|
|
1170
1171
|
continue $sm;
|
|
1171
1172
|
case 5:
|
|
1172
|
-
this.
|
|
1173
|
-
if (this.
|
|
1173
|
+
this.l3m_1.s3l_1 = this.l3m_1.s3l_1 + 1 | 0;
|
|
1174
|
+
if (this.l3m_1.s3l_1 === this.l3m_1.l3l_1.e1()) {
|
|
1174
1175
|
return true;
|
|
1175
1176
|
}
|
|
1176
1177
|
|
|
1177
|
-
this.
|
|
1178
|
+
this.l3m_1.q3l_1.p3h(this.m3m_1);
|
|
1178
1179
|
this.v8_1 = 1;
|
|
1179
1180
|
continue $sm;
|
|
1180
1181
|
case 6:
|
|
1181
|
-
var _unary__edvuaz = this.
|
|
1182
|
-
this.
|
|
1182
|
+
var _unary__edvuaz = this.l3m_1.r3l_1;
|
|
1183
|
+
this.l3m_1.r3l_1 = add(_unary__edvuaz, get_ONE());
|
|
1183
1184
|
return false;
|
|
1184
1185
|
case 7:
|
|
1185
1186
|
return false;
|
|
@@ -1199,68 +1200,68 @@ protoOf($checkFullMatchCOROUTINE$).d9 = function () {
|
|
|
1199
1200
|
};
|
|
1200
1201
|
function ByteChannelScanner(channel, matchString, writeChannel, limit) {
|
|
1201
1202
|
limit = limit === VOID ? new Long(-1, 2147483647) : limit;
|
|
1202
|
-
this.
|
|
1203
|
-
this.
|
|
1204
|
-
this.
|
|
1205
|
-
this.
|
|
1203
|
+
this.k3l_1 = channel;
|
|
1204
|
+
this.l3l_1 = matchString;
|
|
1205
|
+
this.m3l_1 = writeChannel;
|
|
1206
|
+
this.n3l_1 = limit;
|
|
1206
1207
|
// Inline function 'kotlin.require' call
|
|
1207
|
-
if (!(this.
|
|
1208
|
+
if (!(this.l3l_1.e1() > 0)) {
|
|
1208
1209
|
var message = 'Empty match string not permitted for scanning';
|
|
1209
1210
|
throw IllegalArgumentException_init_$Create$(toString_1(message));
|
|
1210
1211
|
}
|
|
1211
|
-
this.
|
|
1212
|
-
this.
|
|
1213
|
-
this.
|
|
1214
|
-
this.
|
|
1215
|
-
this.
|
|
1212
|
+
this.o3l_1 = this.k3l_1.a3l();
|
|
1213
|
+
this.p3l_1 = buildPartialMatchTable(this);
|
|
1214
|
+
this.q3l_1 = new Buffer();
|
|
1215
|
+
this.r3l_1 = new Long(0, 0);
|
|
1216
|
+
this.s3l_1 = 0;
|
|
1216
1217
|
}
|
|
1217
|
-
protoOf(ByteChannelScanner).
|
|
1218
|
+
protoOf(ByteChannelScanner).z3m = function (ignoreMissing, $completion) {
|
|
1218
1219
|
var tmp = new $findNextCOROUTINE$(this, ignoreMissing, $completion);
|
|
1219
1220
|
tmp.x8_1 = Unit_instance;
|
|
1220
1221
|
tmp.y8_1 = null;
|
|
1221
1222
|
return tmp.d9();
|
|
1222
1223
|
};
|
|
1223
1224
|
function attachWriterJob(_this__u8e3s4, writerJob) {
|
|
1224
|
-
var tmp = writerJob.
|
|
1225
|
+
var tmp = writerJob.a3n_1;
|
|
1225
1226
|
var tmp0_safe_receiver = tmp instanceof ByteChannel ? tmp : null;
|
|
1226
1227
|
if (tmp0_safe_receiver == null)
|
|
1227
1228
|
null;
|
|
1228
1229
|
else {
|
|
1229
|
-
tmp0_safe_receiver.
|
|
1230
|
+
tmp0_safe_receiver.j3l(attachWriterJob$lambda(_this__u8e3s4));
|
|
1230
1231
|
}
|
|
1231
1232
|
}
|
|
1232
1233
|
function attachWriterJob$lambda($this_attachWriterJob) {
|
|
1233
1234
|
return function (cause) {
|
|
1234
1235
|
var tmp;
|
|
1235
1236
|
if (!(cause == null)) {
|
|
1236
|
-
$this_attachWriterJob.
|
|
1237
|
+
$this_attachWriterJob.i3l(cause);
|
|
1237
1238
|
tmp = Unit_instance;
|
|
1238
1239
|
}
|
|
1239
1240
|
return Unit_instance;
|
|
1240
1241
|
};
|
|
1241
1242
|
}
|
|
1242
1243
|
function ByteReadChannel$Companion$Empty$1() {
|
|
1243
|
-
this.
|
|
1244
|
-
this.
|
|
1244
|
+
this.c3n_1 = null;
|
|
1245
|
+
this.d3n_1 = new Buffer();
|
|
1245
1246
|
}
|
|
1246
|
-
protoOf(ByteReadChannel$Companion$Empty$1).
|
|
1247
|
-
return this.
|
|
1247
|
+
protoOf(ByteReadChannel$Companion$Empty$1).d3l = function () {
|
|
1248
|
+
return this.c3n_1;
|
|
1248
1249
|
};
|
|
1249
|
-
protoOf(ByteReadChannel$Companion$Empty$1).
|
|
1250
|
+
protoOf(ByteReadChannel$Companion$Empty$1).e3l = function () {
|
|
1250
1251
|
return true;
|
|
1251
1252
|
};
|
|
1252
|
-
protoOf(ByteReadChannel$Companion$Empty$1).
|
|
1253
|
-
return this.
|
|
1253
|
+
protoOf(ByteReadChannel$Companion$Empty$1).a3l = function () {
|
|
1254
|
+
return this.d3n_1;
|
|
1254
1255
|
};
|
|
1255
|
-
protoOf(ByteReadChannel$Companion$Empty$1).
|
|
1256
|
+
protoOf(ByteReadChannel$Companion$Empty$1).f3l = function (min, $completion) {
|
|
1256
1257
|
return false;
|
|
1257
1258
|
};
|
|
1258
|
-
protoOf(ByteReadChannel$Companion$Empty$1).
|
|
1259
|
+
protoOf(ByteReadChannel$Companion$Empty$1).i3l = function (cause) {
|
|
1259
1260
|
};
|
|
1260
1261
|
function Companion_0() {
|
|
1261
1262
|
Companion_instance_1 = this;
|
|
1262
1263
|
var tmp = this;
|
|
1263
|
-
tmp.
|
|
1264
|
+
tmp.e3n_1 = new ByteReadChannel$Companion$Empty$1();
|
|
1264
1265
|
}
|
|
1265
1266
|
var Companion_instance_1;
|
|
1266
1267
|
function Companion_getInstance_0() {
|
|
@@ -1271,7 +1272,7 @@ function Companion_getInstance_0() {
|
|
|
1271
1272
|
function ByteReadChannel_1() {
|
|
1272
1273
|
}
|
|
1273
1274
|
function cancel_0(_this__u8e3s4) {
|
|
1274
|
-
_this__u8e3s4.
|
|
1275
|
+
_this__u8e3s4.i3l(IOException_init_$Create$('Channel was cancelled'));
|
|
1275
1276
|
}
|
|
1276
1277
|
function readRemaining(_this__u8e3s4, $completion) {
|
|
1277
1278
|
var tmp = new $readRemainingCOROUTINE$(_this__u8e3s4, $completion);
|
|
@@ -1307,7 +1308,7 @@ function copyTo(_this__u8e3s4, channel, limit, $completion) {
|
|
|
1307
1308
|
return tmp.d9();
|
|
1308
1309
|
}
|
|
1309
1310
|
function rethrowCloseCauseIfNeeded(_this__u8e3s4) {
|
|
1310
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
1311
|
+
var tmp0_safe_receiver = _this__u8e3s4.d3l();
|
|
1311
1312
|
if (tmp0_safe_receiver == null)
|
|
1312
1313
|
null;
|
|
1313
1314
|
else {
|
|
@@ -1330,7 +1331,7 @@ function readPacket(_this__u8e3s4, packet, $completion) {
|
|
|
1330
1331
|
function readUntil(_this__u8e3s4, matchString, writeChannel, limit, ignoreMissing, $completion) {
|
|
1331
1332
|
limit = limit === VOID ? new Long(-1, 2147483647) : limit;
|
|
1332
1333
|
ignoreMissing = ignoreMissing === VOID ? false : ignoreMissing;
|
|
1333
|
-
return (new ByteChannelScanner(_this__u8e3s4, matchString, writeChannel, limit)).
|
|
1334
|
+
return (new ByteChannelScanner(_this__u8e3s4, matchString, writeChannel, limit)).z3m(ignoreMissing, $completion);
|
|
1334
1335
|
}
|
|
1335
1336
|
function readLineStrictTo(_this__u8e3s4, out, limit, lineEnding, $completion) {
|
|
1336
1337
|
limit = limit === VOID ? new Long(-1, 2147483647) : limit;
|
|
@@ -1343,7 +1344,7 @@ function readLineStrictTo(_this__u8e3s4, out, limit, lineEnding, $completion) {
|
|
|
1343
1344
|
return internalReadLineTo(_this__u8e3s4, out, limit, lineEnding.equals(LineEnding_Lenient_getInstance()), true, $completion);
|
|
1344
1345
|
}
|
|
1345
1346
|
function rethrowCloseCauseIfNeeded_0(_this__u8e3s4) {
|
|
1346
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
1347
|
+
var tmp0_safe_receiver = _this__u8e3s4.d3l();
|
|
1347
1348
|
if (tmp0_safe_receiver == null)
|
|
1348
1349
|
null;
|
|
1349
1350
|
else {
|
|
@@ -1352,7 +1353,7 @@ function rethrowCloseCauseIfNeeded_0(_this__u8e3s4) {
|
|
|
1352
1353
|
}
|
|
1353
1354
|
}
|
|
1354
1355
|
function get_availableForRead(_this__u8e3s4) {
|
|
1355
|
-
return convertToInt(_this__u8e3s4.
|
|
1356
|
+
return convertToInt(_this__u8e3s4.a3l().v3f().e1());
|
|
1356
1357
|
}
|
|
1357
1358
|
function readBuffer(_this__u8e3s4, $completion) {
|
|
1358
1359
|
var tmp = new $readBufferCOROUTINE$(_this__u8e3s4, $completion);
|
|
@@ -1373,13 +1374,13 @@ function internalReadLineTo(_this__u8e3s4, out, limit, lenientLineEnding, throwO
|
|
|
1373
1374
|
return tmp.d9();
|
|
1374
1375
|
}
|
|
1375
1376
|
function throwEndOfStreamException(consumed) {
|
|
1376
|
-
throw EOFException_init_$Create$('Unexpected end of stream after reading ' + consumed.toString() + '
|
|
1377
|
+
throw EOFException_init_$Create$('Unexpected end of stream after reading ' + consumed.toString() + ' bytes');
|
|
1377
1378
|
}
|
|
1378
1379
|
function throwTooLongLineException(limit) {
|
|
1379
|
-
throw new TooLongLineException('Line exceeds limit of ' + limit.toString() + '
|
|
1380
|
+
throw new TooLongLineException('Line exceeds limit of ' + limit.toString() + ' bytes');
|
|
1380
1381
|
}
|
|
1381
1382
|
function rethrowCloseCauseIfNeeded_1(_this__u8e3s4) {
|
|
1382
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
1383
|
+
var tmp0_safe_receiver = _this__u8e3s4.d3l();
|
|
1383
1384
|
if (tmp0_safe_receiver == null)
|
|
1384
1385
|
null;
|
|
1385
1386
|
else {
|
|
@@ -1387,14 +1388,23 @@ function rethrowCloseCauseIfNeeded_1(_this__u8e3s4) {
|
|
|
1387
1388
|
throw tmp0_safe_receiver;
|
|
1388
1389
|
}
|
|
1389
1390
|
}
|
|
1390
|
-
function internalReadLineTo$
|
|
1391
|
+
function internalReadLineTo$bufferBytes(outBuffer, readBuffer, consumed, count) {
|
|
1391
1392
|
if (compare(count, new Long(0, 0)) > 0) {
|
|
1392
|
-
|
|
1393
|
-
|
|
1394
|
-
|
|
1395
|
-
|
|
1396
|
-
|
|
1397
|
-
|
|
1393
|
+
if (outBuffer._v == null) {
|
|
1394
|
+
outBuffer._v = new Buffer();
|
|
1395
|
+
}
|
|
1396
|
+
outBuffer._v.j3h(readBuffer, count);
|
|
1397
|
+
consumed._v = add(consumed._v, count);
|
|
1398
|
+
}
|
|
1399
|
+
}
|
|
1400
|
+
function internalReadLineTo$appendOrBuffer(outBuffer, $out, readBuffer, consumed, count) {
|
|
1401
|
+
if (outBuffer._v == null) {
|
|
1402
|
+
if (compare(count, new Long(0, 0)) > 0) {
|
|
1403
|
+
$out.c1(readString(readBuffer, count));
|
|
1404
|
+
consumed._v = add(consumed._v, count);
|
|
1405
|
+
}
|
|
1406
|
+
} else {
|
|
1407
|
+
internalReadLineTo$bufferBytes(outBuffer, readBuffer, consumed, count);
|
|
1398
1408
|
}
|
|
1399
1409
|
}
|
|
1400
1410
|
function internalReadLineTo$scanForSoleCr(_this__u8e3s4, $lenientLineEnding, lfIndex, limitLeft) {
|
|
@@ -1424,7 +1434,7 @@ function internalReadLineTo$discardCrlfOrCr(_this__u8e3s4, $this_internalReadLin
|
|
|
1424
1434
|
}
|
|
1425
1435
|
function $readRemainingCOROUTINE$(_this__u8e3s4, resultContinuation) {
|
|
1426
1436
|
CoroutineImpl.call(this, resultContinuation);
|
|
1427
|
-
this.
|
|
1437
|
+
this.n3n_1 = _this__u8e3s4;
|
|
1428
1438
|
}
|
|
1429
1439
|
protoOf($readRemainingCOROUTINE$).d9 = function () {
|
|
1430
1440
|
var suspendResult = this.x8_1;
|
|
@@ -1434,18 +1444,18 @@ protoOf($readRemainingCOROUTINE$).d9 = function () {
|
|
|
1434
1444
|
switch (tmp) {
|
|
1435
1445
|
case 0:
|
|
1436
1446
|
this.w8_1 = 4;
|
|
1437
|
-
this.
|
|
1447
|
+
this.o3n_1 = BytePacketBuilder();
|
|
1438
1448
|
this.v8_1 = 1;
|
|
1439
1449
|
continue $sm;
|
|
1440
1450
|
case 1:
|
|
1441
|
-
if (!!this.
|
|
1451
|
+
if (!!this.n3n_1.e3l()) {
|
|
1442
1452
|
this.v8_1 = 3;
|
|
1443
1453
|
continue $sm;
|
|
1444
1454
|
}
|
|
1445
1455
|
|
|
1446
|
-
this.
|
|
1456
|
+
this.o3n_1.o3h(this.n3n_1.a3l());
|
|
1447
1457
|
this.v8_1 = 2;
|
|
1448
|
-
suspendResult = this.
|
|
1458
|
+
suspendResult = this.n3n_1.g3l(VOID, this);
|
|
1449
1459
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1450
1460
|
return suspendResult;
|
|
1451
1461
|
}
|
|
@@ -1455,8 +1465,8 @@ protoOf($readRemainingCOROUTINE$).d9 = function () {
|
|
|
1455
1465
|
this.v8_1 = 1;
|
|
1456
1466
|
continue $sm;
|
|
1457
1467
|
case 3:
|
|
1458
|
-
rethrowCloseCauseIfNeeded(this.
|
|
1459
|
-
return this.
|
|
1468
|
+
rethrowCloseCauseIfNeeded(this.n3n_1);
|
|
1469
|
+
return this.o3n_1.v3f();
|
|
1460
1470
|
case 4:
|
|
1461
1471
|
throw this.y8_1;
|
|
1462
1472
|
}
|
|
@@ -1473,8 +1483,8 @@ protoOf($readRemainingCOROUTINE$).d9 = function () {
|
|
|
1473
1483
|
};
|
|
1474
1484
|
function $discardCOROUTINE$(_this__u8e3s4, max, resultContinuation) {
|
|
1475
1485
|
CoroutineImpl.call(this, resultContinuation);
|
|
1476
|
-
this.
|
|
1477
|
-
this.
|
|
1486
|
+
this.x3n_1 = _this__u8e3s4;
|
|
1487
|
+
this.y3n_1 = max;
|
|
1478
1488
|
}
|
|
1479
1489
|
protoOf($discardCOROUTINE$).d9 = function () {
|
|
1480
1490
|
var suspendResult = this.x8_1;
|
|
@@ -1484,18 +1494,18 @@ protoOf($discardCOROUTINE$).d9 = function () {
|
|
|
1484
1494
|
switch (tmp) {
|
|
1485
1495
|
case 0:
|
|
1486
1496
|
this.w8_1 = 5;
|
|
1487
|
-
this.
|
|
1497
|
+
this.z3n_1 = this.y3n_1;
|
|
1488
1498
|
this.v8_1 = 1;
|
|
1489
1499
|
continue $sm;
|
|
1490
1500
|
case 1:
|
|
1491
|
-
if (!(compare(this.
|
|
1501
|
+
if (!(compare(this.z3n_1, new Long(0, 0)) > 0 && !this.x3n_1.e3l())) {
|
|
1492
1502
|
this.v8_1 = 4;
|
|
1493
1503
|
continue $sm;
|
|
1494
1504
|
}
|
|
1495
1505
|
|
|
1496
|
-
if (get_availableForRead(this.
|
|
1506
|
+
if (get_availableForRead(this.x3n_1) === 0) {
|
|
1497
1507
|
this.v8_1 = 2;
|
|
1498
|
-
suspendResult = this.
|
|
1508
|
+
suspendResult = this.x3n_1.g3l(VOID, this);
|
|
1499
1509
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1500
1510
|
return suspendResult;
|
|
1501
1511
|
}
|
|
@@ -1509,15 +1519,15 @@ protoOf($discardCOROUTINE$).d9 = function () {
|
|
|
1509
1519
|
this.v8_1 = 3;
|
|
1510
1520
|
continue $sm;
|
|
1511
1521
|
case 3:
|
|
1512
|
-
var tmp0 = this.
|
|
1513
|
-
var b = get_remaining(this.
|
|
1522
|
+
var tmp0 = this.z3n_1;
|
|
1523
|
+
var b = get_remaining(this.x3n_1.a3l());
|
|
1514
1524
|
var count = compare(tmp0, b) <= 0 ? tmp0 : b;
|
|
1515
|
-
discard_0(this.
|
|
1516
|
-
this.
|
|
1525
|
+
discard_0(this.x3n_1.a3l(), count);
|
|
1526
|
+
this.z3n_1 = subtract(this.z3n_1, count);
|
|
1517
1527
|
this.v8_1 = 1;
|
|
1518
1528
|
continue $sm;
|
|
1519
1529
|
case 4:
|
|
1520
|
-
return subtract(this.
|
|
1530
|
+
return subtract(this.y3n_1, this.z3n_1);
|
|
1521
1531
|
case 5:
|
|
1522
1532
|
throw this.y8_1;
|
|
1523
1533
|
}
|
|
@@ -1534,10 +1544,10 @@ protoOf($discardCOROUTINE$).d9 = function () {
|
|
|
1534
1544
|
};
|
|
1535
1545
|
function $readAvailableCOROUTINE$(_this__u8e3s4, buffer, offset, length, resultContinuation) {
|
|
1536
1546
|
CoroutineImpl.call(this, resultContinuation);
|
|
1537
|
-
this.
|
|
1538
|
-
this.
|
|
1539
|
-
this.
|
|
1540
|
-
this.
|
|
1547
|
+
this.i3o_1 = _this__u8e3s4;
|
|
1548
|
+
this.j3o_1 = buffer;
|
|
1549
|
+
this.k3o_1 = offset;
|
|
1550
|
+
this.l3o_1 = length;
|
|
1541
1551
|
}
|
|
1542
1552
|
protoOf($readAvailableCOROUTINE$).d9 = function () {
|
|
1543
1553
|
var suspendResult = this.x8_1;
|
|
@@ -1547,11 +1557,11 @@ protoOf($readAvailableCOROUTINE$).d9 = function () {
|
|
|
1547
1557
|
switch (tmp) {
|
|
1548
1558
|
case 0:
|
|
1549
1559
|
this.w8_1 = 3;
|
|
1550
|
-
if (this.
|
|
1560
|
+
if (this.i3o_1.e3l())
|
|
1551
1561
|
return -1;
|
|
1552
|
-
if (this.
|
|
1562
|
+
if (this.i3o_1.a3l().w3f()) {
|
|
1553
1563
|
this.v8_1 = 1;
|
|
1554
|
-
suspendResult = this.
|
|
1564
|
+
suspendResult = this.i3o_1.g3l(VOID, this);
|
|
1555
1565
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1556
1566
|
return suspendResult;
|
|
1557
1567
|
}
|
|
@@ -1565,9 +1575,9 @@ protoOf($readAvailableCOROUTINE$).d9 = function () {
|
|
|
1565
1575
|
this.v8_1 = 2;
|
|
1566
1576
|
continue $sm;
|
|
1567
1577
|
case 2:
|
|
1568
|
-
if (this.
|
|
1578
|
+
if (this.i3o_1.e3l())
|
|
1569
1579
|
return -1;
|
|
1570
|
-
return readAvailable_0(this.
|
|
1580
|
+
return readAvailable_0(this.i3o_1.a3l(), this.j3o_1, this.k3o_1, this.l3o_1);
|
|
1571
1581
|
case 3:
|
|
1572
1582
|
throw this.y8_1;
|
|
1573
1583
|
}
|
|
@@ -1584,7 +1594,7 @@ protoOf($readAvailableCOROUTINE$).d9 = function () {
|
|
|
1584
1594
|
};
|
|
1585
1595
|
function $toByteArrayCOROUTINE$(_this__u8e3s4, resultContinuation) {
|
|
1586
1596
|
CoroutineImpl.call(this, resultContinuation);
|
|
1587
|
-
this.
|
|
1597
|
+
this.u3o_1 = _this__u8e3s4;
|
|
1588
1598
|
}
|
|
1589
1599
|
protoOf($toByteArrayCOROUTINE$).d9 = function () {
|
|
1590
1600
|
var suspendResult = this.x8_1;
|
|
@@ -1595,7 +1605,7 @@ protoOf($toByteArrayCOROUTINE$).d9 = function () {
|
|
|
1595
1605
|
case 0:
|
|
1596
1606
|
this.w8_1 = 2;
|
|
1597
1607
|
this.v8_1 = 1;
|
|
1598
|
-
suspendResult = readBuffer(this.
|
|
1608
|
+
suspendResult = readBuffer(this.u3o_1, this);
|
|
1599
1609
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1600
1610
|
return suspendResult;
|
|
1601
1611
|
}
|
|
@@ -1620,9 +1630,9 @@ protoOf($toByteArrayCOROUTINE$).d9 = function () {
|
|
|
1620
1630
|
};
|
|
1621
1631
|
function $copyToCOROUTINE$(_this__u8e3s4, channel, limit, resultContinuation) {
|
|
1622
1632
|
CoroutineImpl.call(this, resultContinuation);
|
|
1623
|
-
this.
|
|
1624
|
-
this.
|
|
1625
|
-
this.
|
|
1633
|
+
this.d3p_1 = _this__u8e3s4;
|
|
1634
|
+
this.e3p_1 = channel;
|
|
1635
|
+
this.f3p_1 = limit;
|
|
1626
1636
|
}
|
|
1627
1637
|
protoOf($copyToCOROUTINE$).d9 = function () {
|
|
1628
1638
|
var suspendResult = this.x8_1;
|
|
@@ -1632,7 +1642,7 @@ protoOf($copyToCOROUTINE$).d9 = function () {
|
|
|
1632
1642
|
switch (tmp) {
|
|
1633
1643
|
case 0:
|
|
1634
1644
|
this.w8_1 = 12;
|
|
1635
|
-
this.
|
|
1645
|
+
this.g3p_1 = this.f3p_1;
|
|
1636
1646
|
this.v8_1 = 1;
|
|
1637
1647
|
continue $sm;
|
|
1638
1648
|
case 1:
|
|
@@ -1641,14 +1651,14 @@ protoOf($copyToCOROUTINE$).d9 = function () {
|
|
|
1641
1651
|
this.v8_1 = 2;
|
|
1642
1652
|
continue $sm;
|
|
1643
1653
|
case 2:
|
|
1644
|
-
if (!(!this.
|
|
1654
|
+
if (!(!this.d3p_1.e3l() && compare(this.g3p_1, new Long(0, 0)) > 0)) {
|
|
1645
1655
|
this.v8_1 = 6;
|
|
1646
1656
|
continue $sm;
|
|
1647
1657
|
}
|
|
1648
1658
|
|
|
1649
|
-
if (this.
|
|
1659
|
+
if (this.d3p_1.a3l().w3f()) {
|
|
1650
1660
|
this.v8_1 = 3;
|
|
1651
|
-
suspendResult = this.
|
|
1661
|
+
suspendResult = this.d3p_1.g3l(VOID, this);
|
|
1652
1662
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1653
1663
|
return suspendResult;
|
|
1654
1664
|
}
|
|
@@ -1662,13 +1672,13 @@ protoOf($copyToCOROUTINE$).d9 = function () {
|
|
|
1662
1672
|
this.v8_1 = 4;
|
|
1663
1673
|
continue $sm;
|
|
1664
1674
|
case 4:
|
|
1665
|
-
var tmp0 = this.
|
|
1666
|
-
var b = get_remaining(this.
|
|
1675
|
+
var tmp0 = this.g3p_1;
|
|
1676
|
+
var b = get_remaining(this.d3p_1.a3l());
|
|
1667
1677
|
var count = compare(tmp0, b) <= 0 ? tmp0 : b;
|
|
1668
|
-
this.
|
|
1669
|
-
this.
|
|
1678
|
+
this.d3p_1.a3l().y3g(this.e3p_1.b3l(), count);
|
|
1679
|
+
this.g3p_1 = subtract(this.g3p_1, count);
|
|
1670
1680
|
this.v8_1 = 5;
|
|
1671
|
-
suspendResult = this.
|
|
1681
|
+
suspendResult = this.e3p_1.y3k(this);
|
|
1672
1682
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1673
1683
|
return suspendResult;
|
|
1674
1684
|
}
|
|
@@ -1686,8 +1696,8 @@ protoOf($copyToCOROUTINE$).d9 = function () {
|
|
|
1686
1696
|
var tmp_0 = this.y8_1;
|
|
1687
1697
|
if (tmp_0 instanceof Error) {
|
|
1688
1698
|
var cause = this.y8_1;
|
|
1689
|
-
this.
|
|
1690
|
-
close_0(this.
|
|
1699
|
+
this.d3p_1.i3l(cause);
|
|
1700
|
+
close_0(this.e3p_1, cause);
|
|
1691
1701
|
throw cause;
|
|
1692
1702
|
} else {
|
|
1693
1703
|
throw this.y8_1;
|
|
@@ -1695,27 +1705,27 @@ protoOf($copyToCOROUTINE$).d9 = function () {
|
|
|
1695
1705
|
|
|
1696
1706
|
case 8:
|
|
1697
1707
|
this.w8_1 = 12;
|
|
1698
|
-
this.
|
|
1708
|
+
this.h3p_1 = this.y8_1;
|
|
1699
1709
|
this.v8_1 = 9;
|
|
1700
|
-
suspendResult = this.
|
|
1710
|
+
suspendResult = this.e3p_1.y3k(this);
|
|
1701
1711
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1702
1712
|
return suspendResult;
|
|
1703
1713
|
}
|
|
1704
1714
|
|
|
1705
1715
|
continue $sm;
|
|
1706
1716
|
case 9:
|
|
1707
|
-
throw this.
|
|
1717
|
+
throw this.h3p_1;
|
|
1708
1718
|
case 10:
|
|
1709
1719
|
this.w8_1 = 12;
|
|
1710
1720
|
this.v8_1 = 11;
|
|
1711
|
-
suspendResult = this.
|
|
1721
|
+
suspendResult = this.e3p_1.y3k(this);
|
|
1712
1722
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1713
1723
|
return suspendResult;
|
|
1714
1724
|
}
|
|
1715
1725
|
|
|
1716
1726
|
continue $sm;
|
|
1717
1727
|
case 11:
|
|
1718
|
-
return subtract(this.
|
|
1728
|
+
return subtract(this.f3p_1, this.g3p_1);
|
|
1719
1729
|
case 12:
|
|
1720
1730
|
throw this.y8_1;
|
|
1721
1731
|
}
|
|
@@ -1732,8 +1742,8 @@ protoOf($copyToCOROUTINE$).d9 = function () {
|
|
|
1732
1742
|
};
|
|
1733
1743
|
function $skipIfFoundCOROUTINE$(_this__u8e3s4, byteString, resultContinuation) {
|
|
1734
1744
|
CoroutineImpl.call(this, resultContinuation);
|
|
1735
|
-
this.
|
|
1736
|
-
this.
|
|
1745
|
+
this.q3p_1 = _this__u8e3s4;
|
|
1746
|
+
this.r3p_1 = byteString;
|
|
1737
1747
|
}
|
|
1738
1748
|
protoOf($skipIfFoundCOROUTINE$).d9 = function () {
|
|
1739
1749
|
var suspendResult = this.x8_1;
|
|
@@ -1744,7 +1754,7 @@ protoOf($skipIfFoundCOROUTINE$).d9 = function () {
|
|
|
1744
1754
|
case 0:
|
|
1745
1755
|
this.w8_1 = 4;
|
|
1746
1756
|
this.v8_1 = 1;
|
|
1747
|
-
suspendResult = peek(this.
|
|
1757
|
+
suspendResult = peek(this.q3p_1, this.r3p_1.e1(), this);
|
|
1748
1758
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1749
1759
|
return suspendResult;
|
|
1750
1760
|
}
|
|
@@ -1752,9 +1762,9 @@ protoOf($skipIfFoundCOROUTINE$).d9 = function () {
|
|
|
1752
1762
|
continue $sm;
|
|
1753
1763
|
case 1:
|
|
1754
1764
|
var ARGUMENT = suspendResult;
|
|
1755
|
-
if (equals(ARGUMENT, this.
|
|
1765
|
+
if (equals(ARGUMENT, this.r3p_1)) {
|
|
1756
1766
|
this.v8_1 = 3;
|
|
1757
|
-
suspendResult = discard(this.
|
|
1767
|
+
suspendResult = discard(this.q3p_1, fromInt(this.r3p_1.e1()), this);
|
|
1758
1768
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1759
1769
|
return suspendResult;
|
|
1760
1770
|
}
|
|
@@ -1784,8 +1794,8 @@ protoOf($skipIfFoundCOROUTINE$).d9 = function () {
|
|
|
1784
1794
|
};
|
|
1785
1795
|
function $readPacketCOROUTINE$(_this__u8e3s4, packet, resultContinuation) {
|
|
1786
1796
|
CoroutineImpl.call(this, resultContinuation);
|
|
1787
|
-
this.
|
|
1788
|
-
this.
|
|
1797
|
+
this.a3q_1 = _this__u8e3s4;
|
|
1798
|
+
this.b3q_1 = packet;
|
|
1789
1799
|
}
|
|
1790
1800
|
protoOf($readPacketCOROUTINE$).d9 = function () {
|
|
1791
1801
|
var suspendResult = this.x8_1;
|
|
@@ -1795,18 +1805,18 @@ protoOf($readPacketCOROUTINE$).d9 = function () {
|
|
|
1795
1805
|
switch (tmp) {
|
|
1796
1806
|
case 0:
|
|
1797
1807
|
this.w8_1 = 6;
|
|
1798
|
-
this.
|
|
1808
|
+
this.c3q_1 = new Buffer();
|
|
1799
1809
|
this.v8_1 = 1;
|
|
1800
1810
|
continue $sm;
|
|
1801
1811
|
case 1:
|
|
1802
|
-
if (!(compare(this.
|
|
1812
|
+
if (!(compare(this.c3q_1.e1(), fromInt(this.b3q_1)) < 0)) {
|
|
1803
1813
|
this.v8_1 = 5;
|
|
1804
1814
|
continue $sm;
|
|
1805
1815
|
}
|
|
1806
1816
|
|
|
1807
|
-
if (this.
|
|
1817
|
+
if (this.a3q_1.a3l().w3f()) {
|
|
1808
1818
|
this.v8_1 = 2;
|
|
1809
|
-
suspendResult = this.
|
|
1819
|
+
suspendResult = this.a3q_1.g3l(VOID, this);
|
|
1810
1820
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1811
1821
|
return suspendResult;
|
|
1812
1822
|
}
|
|
@@ -1820,7 +1830,7 @@ protoOf($readPacketCOROUTINE$).d9 = function () {
|
|
|
1820
1830
|
this.v8_1 = 3;
|
|
1821
1831
|
continue $sm;
|
|
1822
1832
|
case 3:
|
|
1823
|
-
if (this.
|
|
1833
|
+
if (this.a3q_1.e3l()) {
|
|
1824
1834
|
this.v8_1 = 5;
|
|
1825
1835
|
continue $sm;
|
|
1826
1836
|
} else {
|
|
@@ -1829,20 +1839,20 @@ protoOf($readPacketCOROUTINE$).d9 = function () {
|
|
|
1829
1839
|
}
|
|
1830
1840
|
|
|
1831
1841
|
case 4:
|
|
1832
|
-
if (compare(get_remaining(this.
|
|
1833
|
-
this.
|
|
1842
|
+
if (compare(get_remaining(this.a3q_1.a3l()), subtract(numberToLong(this.b3q_1), this.c3q_1.e1())) > 0) {
|
|
1843
|
+
this.a3q_1.a3l().y3g(this.c3q_1, subtract(numberToLong(this.b3q_1), this.c3q_1.e1()));
|
|
1834
1844
|
} else {
|
|
1835
|
-
this.
|
|
1845
|
+
this.a3q_1.a3l().z3g(this.c3q_1);
|
|
1836
1846
|
}
|
|
1837
1847
|
|
|
1838
1848
|
this.v8_1 = 1;
|
|
1839
1849
|
continue $sm;
|
|
1840
1850
|
case 5:
|
|
1841
|
-
if (compare(this.
|
|
1842
|
-
throw EOFException_init_$Create$('Not enough data available, required ' + this.
|
|
1851
|
+
if (compare(this.c3q_1.e1(), fromInt(this.b3q_1)) < 0) {
|
|
1852
|
+
throw EOFException_init_$Create$('Not enough data available, required ' + this.b3q_1 + ' bytes but only ' + this.c3q_1.e1().toString() + ' available');
|
|
1843
1853
|
}
|
|
1844
1854
|
|
|
1845
|
-
return this.
|
|
1855
|
+
return this.c3q_1;
|
|
1846
1856
|
case 6:
|
|
1847
1857
|
throw this.y8_1;
|
|
1848
1858
|
}
|
|
@@ -1859,7 +1869,7 @@ protoOf($readPacketCOROUTINE$).d9 = function () {
|
|
|
1859
1869
|
};
|
|
1860
1870
|
function $readBufferCOROUTINE$(_this__u8e3s4, resultContinuation) {
|
|
1861
1871
|
CoroutineImpl.call(this, resultContinuation);
|
|
1862
|
-
this.
|
|
1872
|
+
this.l3q_1 = _this__u8e3s4;
|
|
1863
1873
|
}
|
|
1864
1874
|
protoOf($readBufferCOROUTINE$).d9 = function () {
|
|
1865
1875
|
var suspendResult = this.x8_1;
|
|
@@ -1869,18 +1879,18 @@ protoOf($readBufferCOROUTINE$).d9 = function () {
|
|
|
1869
1879
|
switch (tmp) {
|
|
1870
1880
|
case 0:
|
|
1871
1881
|
this.w8_1 = 4;
|
|
1872
|
-
this.
|
|
1882
|
+
this.m3q_1 = new Buffer();
|
|
1873
1883
|
this.v8_1 = 1;
|
|
1874
1884
|
continue $sm;
|
|
1875
1885
|
case 1:
|
|
1876
|
-
if (!!this.
|
|
1886
|
+
if (!!this.l3q_1.e3l()) {
|
|
1877
1887
|
this.v8_1 = 3;
|
|
1878
1888
|
continue $sm;
|
|
1879
1889
|
}
|
|
1880
1890
|
|
|
1881
|
-
this.
|
|
1891
|
+
this.m3q_1.o3h(this.l3q_1.a3l());
|
|
1882
1892
|
this.v8_1 = 2;
|
|
1883
|
-
suspendResult = this.
|
|
1893
|
+
suspendResult = this.l3q_1.g3l(VOID, this);
|
|
1884
1894
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1885
1895
|
return suspendResult;
|
|
1886
1896
|
}
|
|
@@ -1890,14 +1900,14 @@ protoOf($readBufferCOROUTINE$).d9 = function () {
|
|
|
1890
1900
|
this.v8_1 = 1;
|
|
1891
1901
|
continue $sm;
|
|
1892
1902
|
case 3:
|
|
1893
|
-
var tmp0_safe_receiver = this.
|
|
1903
|
+
var tmp0_safe_receiver = this.l3q_1.d3l();
|
|
1894
1904
|
if (tmp0_safe_receiver == null)
|
|
1895
1905
|
null;
|
|
1896
1906
|
else {
|
|
1897
1907
|
throw tmp0_safe_receiver;
|
|
1898
1908
|
}
|
|
1899
1909
|
|
|
1900
|
-
return this.
|
|
1910
|
+
return this.m3q_1;
|
|
1901
1911
|
case 4:
|
|
1902
1912
|
throw this.y8_1;
|
|
1903
1913
|
}
|
|
@@ -1914,8 +1924,8 @@ protoOf($readBufferCOROUTINE$).d9 = function () {
|
|
|
1914
1924
|
};
|
|
1915
1925
|
function $peekCOROUTINE$(_this__u8e3s4, count, resultContinuation) {
|
|
1916
1926
|
CoroutineImpl.call(this, resultContinuation);
|
|
1917
|
-
this.
|
|
1918
|
-
this.
|
|
1927
|
+
this.v3q_1 = _this__u8e3s4;
|
|
1928
|
+
this.w3q_1 = count;
|
|
1919
1929
|
}
|
|
1920
1930
|
protoOf($peekCOROUTINE$).d9 = function () {
|
|
1921
1931
|
var suspendResult = this.x8_1;
|
|
@@ -1925,10 +1935,10 @@ protoOf($peekCOROUTINE$).d9 = function () {
|
|
|
1925
1935
|
switch (tmp) {
|
|
1926
1936
|
case 0:
|
|
1927
1937
|
this.w8_1 = 3;
|
|
1928
|
-
if (this.
|
|
1938
|
+
if (this.v3q_1.e3l())
|
|
1929
1939
|
return null;
|
|
1930
1940
|
this.v8_1 = 1;
|
|
1931
|
-
suspendResult = this.
|
|
1941
|
+
suspendResult = this.v3q_1.f3l(this.w3q_1, this);
|
|
1932
1942
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1933
1943
|
return suspendResult;
|
|
1934
1944
|
}
|
|
@@ -1943,7 +1953,7 @@ protoOf($peekCOROUTINE$).d9 = function () {
|
|
|
1943
1953
|
}
|
|
1944
1954
|
|
|
1945
1955
|
case 2:
|
|
1946
|
-
return readByteString(this.
|
|
1956
|
+
return readByteString(this.v3q_1.a3l().a3h(), this.w3q_1);
|
|
1947
1957
|
case 3:
|
|
1948
1958
|
throw this.y8_1;
|
|
1949
1959
|
}
|
|
@@ -1960,11 +1970,11 @@ protoOf($peekCOROUTINE$).d9 = function () {
|
|
|
1960
1970
|
};
|
|
1961
1971
|
function $internalReadLineToCOROUTINE$(_this__u8e3s4, out, limit, lenientLineEnding, throwOnIncompleteLine, resultContinuation) {
|
|
1962
1972
|
CoroutineImpl.call(this, resultContinuation);
|
|
1963
|
-
this.
|
|
1964
|
-
this.
|
|
1965
|
-
this.
|
|
1966
|
-
this.
|
|
1967
|
-
this.
|
|
1973
|
+
this.f3r_1 = _this__u8e3s4;
|
|
1974
|
+
this.g3r_1 = out;
|
|
1975
|
+
this.h3r_1 = limit;
|
|
1976
|
+
this.i3r_1 = lenientLineEnding;
|
|
1977
|
+
this.j3r_1 = throwOnIncompleteLine;
|
|
1968
1978
|
}
|
|
1969
1979
|
protoOf($internalReadLineToCOROUTINE$).d9 = function () {
|
|
1970
1980
|
var suspendResult = this.x8_1;
|
|
@@ -1973,11 +1983,11 @@ protoOf($internalReadLineToCOROUTINE$).d9 = function () {
|
|
|
1973
1983
|
var tmp = this.v8_1;
|
|
1974
1984
|
switch (tmp) {
|
|
1975
1985
|
case 0:
|
|
1976
|
-
this.w8_1 =
|
|
1977
|
-
this.
|
|
1978
|
-
if (this.
|
|
1986
|
+
this.w8_1 = 27;
|
|
1987
|
+
this.n3r_1 = this.f3r_1.a3l();
|
|
1988
|
+
if (this.n3r_1.w3f()) {
|
|
1979
1989
|
this.v8_1 = 1;
|
|
1980
|
-
suspendResult = this.
|
|
1990
|
+
suspendResult = this.f3r_1.g3l(VOID, this);
|
|
1981
1991
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1982
1992
|
return suspendResult;
|
|
1983
1993
|
}
|
|
@@ -1991,190 +2001,266 @@ protoOf($internalReadLineToCOROUTINE$).d9 = function () {
|
|
|
1991
2001
|
this.v8_1 = 2;
|
|
1992
2002
|
continue $sm;
|
|
1993
2003
|
case 2:
|
|
1994
|
-
if (this.
|
|
2004
|
+
if (this.f3r_1.e3l())
|
|
1995
2005
|
return new Long(-1, -1);
|
|
1996
|
-
this.
|
|
2006
|
+
this.m3r_1 = {_v: new Long(0, 0)};
|
|
2007
|
+
this.k3r_1 = {_v: null};
|
|
1997
2008
|
this.v8_1 = 3;
|
|
1998
2009
|
continue $sm;
|
|
1999
2010
|
case 3:
|
|
2000
|
-
|
|
2001
|
-
|
|
2011
|
+
this.v8_1 = 4;
|
|
2012
|
+
continue $sm;
|
|
2013
|
+
case 4:
|
|
2014
|
+
this.w8_1 = 24;
|
|
2015
|
+
this.v8_1 = 5;
|
|
2016
|
+
continue $sm;
|
|
2017
|
+
case 5:
|
|
2018
|
+
if (!(compare(this.m3r_1._v, this.h3r_1) < 0 && !this.f3r_1.e3l())) {
|
|
2019
|
+
this.v8_1 = 15;
|
|
2002
2020
|
continue $sm;
|
|
2003
2021
|
}
|
|
2004
2022
|
|
|
2005
|
-
|
|
2006
|
-
|
|
2007
|
-
var crIndex = internalReadLineTo$scanForSoleCr(this.
|
|
2023
|
+
this.q3r_1 = subtract(this.h3r_1, this.m3r_1._v);
|
|
2024
|
+
this.r3r_1 = indexOf(this.n3r_1, 10, VOID, this.q3r_1);
|
|
2025
|
+
var crIndex = internalReadLineTo$scanForSoleCr(this.n3r_1, this.i3r_1, this.r3r_1, this.q3r_1);
|
|
2008
2026
|
if (compare(crIndex, new Long(0, 0)) >= 0) {
|
|
2009
|
-
internalReadLineTo$
|
|
2010
|
-
discard_0(this.
|
|
2011
|
-
|
|
2027
|
+
internalReadLineTo$appendOrBuffer(this.k3r_1, this.g3r_1, this.n3r_1, this.m3r_1, crIndex);
|
|
2028
|
+
discard_0(this.n3r_1, new Long(1, 0));
|
|
2029
|
+
this.l3r_1 = this.m3r_1._v;
|
|
2030
|
+
this.w8_1 = 27;
|
|
2031
|
+
this.v8_1 = 25;
|
|
2032
|
+
continue $sm;
|
|
2033
|
+
} else {
|
|
2034
|
+
this.v8_1 = 6;
|
|
2035
|
+
continue $sm;
|
|
2012
2036
|
}
|
|
2013
2037
|
|
|
2014
|
-
|
|
2015
|
-
|
|
2016
|
-
|
|
2038
|
+
case 6:
|
|
2039
|
+
if (equalsLong(this.r3r_1, new Long(0, 0))) {
|
|
2040
|
+
discard_0(this.n3r_1, new Long(1, 0));
|
|
2041
|
+
this.l3r_1 = this.m3r_1._v;
|
|
2042
|
+
this.w8_1 = 27;
|
|
2043
|
+
this.v8_1 = 25;
|
|
2044
|
+
continue $sm;
|
|
2045
|
+
} else {
|
|
2046
|
+
this.v8_1 = 7;
|
|
2047
|
+
continue $sm;
|
|
2017
2048
|
}
|
|
2018
2049
|
|
|
2019
|
-
|
|
2050
|
+
case 7:
|
|
2051
|
+
if (compare(this.r3r_1, new Long(0, 0)) > 0) {
|
|
2020
2052
|
var tmp_0;
|
|
2021
|
-
var tmp_1 = this.
|
|
2022
|
-
|
|
2053
|
+
var tmp_1 = this.n3r_1.v3f();
|
|
2054
|
+
var this_0 = this.r3r_1;
|
|
2055
|
+
if (tmp_1.r3g(subtract(this_0, fromInt(1))) === 13) {
|
|
2023
2056
|
tmp_0 = new Long(1, 0);
|
|
2024
2057
|
} else {
|
|
2025
2058
|
tmp_0 = new Long(0, 0);
|
|
2026
2059
|
}
|
|
2027
2060
|
var isCrlf = tmp_0;
|
|
2028
|
-
internalReadLineTo$
|
|
2029
|
-
discard_0(this.
|
|
2030
|
-
|
|
2061
|
+
internalReadLineTo$appendOrBuffer(this.k3r_1, this.g3r_1, this.n3r_1, this.m3r_1, subtract(this.r3r_1, isCrlf));
|
|
2062
|
+
discard_0(this.n3r_1, add(numberToLong(1), isCrlf));
|
|
2063
|
+
this.l3r_1 = this.m3r_1._v;
|
|
2064
|
+
this.w8_1 = 27;
|
|
2065
|
+
this.v8_1 = 25;
|
|
2066
|
+
continue $sm;
|
|
2067
|
+
} else {
|
|
2068
|
+
this.v8_1 = 8;
|
|
2069
|
+
continue $sm;
|
|
2031
2070
|
}
|
|
2032
2071
|
|
|
2033
|
-
|
|
2034
|
-
var
|
|
2035
|
-
var
|
|
2036
|
-
|
|
2037
|
-
|
|
2038
|
-
|
|
2039
|
-
|
|
2072
|
+
case 8:
|
|
2073
|
+
var tmp0 = this.q3r_1;
|
|
2074
|
+
var b = get_remaining(this.n3r_1);
|
|
2075
|
+
var count = compare(tmp0, b) <= 0 ? tmp0 : b;
|
|
2076
|
+
var tmp_2 = this.n3r_1.v3f();
|
|
2077
|
+
if (tmp_2.r3g(subtract(count, fromInt(1))) === 13) {
|
|
2078
|
+
internalReadLineTo$appendOrBuffer(this.k3r_1, this.g3r_1, this.n3r_1, this.m3r_1, subtract(count, fromInt(1)));
|
|
2079
|
+
this.v8_1 = 9;
|
|
2080
|
+
suspendResult = internalReadLineTo$discardCrlfOrCr(this.n3r_1, this.f3r_1, this.i3r_1, this);
|
|
2040
2081
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2041
2082
|
return suspendResult;
|
|
2042
2083
|
}
|
|
2043
2084
|
continue $sm;
|
|
2044
2085
|
} else {
|
|
2045
|
-
internalReadLineTo$
|
|
2046
|
-
this.v8_1 =
|
|
2086
|
+
internalReadLineTo$bufferBytes(this.k3r_1, this.n3r_1, this.m3r_1, count);
|
|
2087
|
+
this.v8_1 = 11;
|
|
2047
2088
|
continue $sm;
|
|
2048
2089
|
}
|
|
2049
2090
|
|
|
2050
|
-
case
|
|
2091
|
+
case 9:
|
|
2051
2092
|
if (suspendResult) {
|
|
2052
|
-
|
|
2093
|
+
this.l3r_1 = this.m3r_1._v;
|
|
2094
|
+
this.w8_1 = 27;
|
|
2095
|
+
this.v8_1 = 25;
|
|
2096
|
+
continue $sm;
|
|
2053
2097
|
} else {
|
|
2054
|
-
this.
|
|
2098
|
+
internalReadLineTo$bufferBytes(this.k3r_1, this.n3r_1, this.m3r_1, new Long(1, 0));
|
|
2099
|
+
this.v8_1 = 10;
|
|
2055
2100
|
continue $sm;
|
|
2056
2101
|
}
|
|
2057
2102
|
|
|
2058
|
-
case
|
|
2059
|
-
|
|
2060
|
-
this.v8_1 = 6;
|
|
2103
|
+
case 10:
|
|
2104
|
+
this.v8_1 = 11;
|
|
2061
2105
|
continue $sm;
|
|
2062
|
-
case
|
|
2063
|
-
if (compare(this.
|
|
2064
|
-
this.v8_1 =
|
|
2065
|
-
suspendResult = this.
|
|
2106
|
+
case 11:
|
|
2107
|
+
if (compare(this.m3r_1._v, this.h3r_1) < 0 && equalsLong(get_remaining(this.n3r_1), new Long(0, 0))) {
|
|
2108
|
+
this.v8_1 = 12;
|
|
2109
|
+
suspendResult = this.f3r_1.g3l(VOID, this);
|
|
2066
2110
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2067
2111
|
return suspendResult;
|
|
2068
2112
|
}
|
|
2069
2113
|
continue $sm;
|
|
2070
2114
|
} else {
|
|
2071
|
-
this.
|
|
2072
|
-
this.v8_1 =
|
|
2115
|
+
this.p3r_1 = false;
|
|
2116
|
+
this.v8_1 = 13;
|
|
2073
2117
|
continue $sm;
|
|
2074
2118
|
}
|
|
2075
2119
|
|
|
2076
|
-
case
|
|
2077
|
-
this.
|
|
2078
|
-
this.v8_1 =
|
|
2120
|
+
case 12:
|
|
2121
|
+
this.p3r_1 = !suspendResult;
|
|
2122
|
+
this.v8_1 = 13;
|
|
2079
2123
|
continue $sm;
|
|
2080
|
-
case
|
|
2081
|
-
if (this.
|
|
2082
|
-
this.v8_1 =
|
|
2124
|
+
case 13:
|
|
2125
|
+
if (this.p3r_1) {
|
|
2126
|
+
this.v8_1 = 15;
|
|
2083
2127
|
continue $sm;
|
|
2084
2128
|
} else {
|
|
2085
|
-
this.v8_1 =
|
|
2129
|
+
this.v8_1 = 14;
|
|
2086
2130
|
continue $sm;
|
|
2087
2131
|
}
|
|
2088
2132
|
|
|
2089
|
-
case
|
|
2090
|
-
this.v8_1 =
|
|
2133
|
+
case 14:
|
|
2134
|
+
this.v8_1 = 5;
|
|
2091
2135
|
continue $sm;
|
|
2092
|
-
case
|
|
2093
|
-
if (equalsLong(this.
|
|
2094
|
-
|
|
2095
|
-
|
|
2096
|
-
|
|
2136
|
+
case 15:
|
|
2137
|
+
if (equalsLong(this.m3r_1._v, new Long(0, 0)) && this.f3r_1.e3l()) {
|
|
2138
|
+
this.l3r_1 = new Long(-1, -1);
|
|
2139
|
+
this.w8_1 = 27;
|
|
2140
|
+
this.v8_1 = 25;
|
|
2141
|
+
continue $sm;
|
|
2142
|
+
} else {
|
|
2143
|
+
this.v8_1 = 16;
|
|
2144
|
+
continue $sm;
|
|
2145
|
+
}
|
|
2146
|
+
|
|
2147
|
+
case 16:
|
|
2148
|
+
if (!(compare(this.m3r_1._v, this.h3r_1) <= 0)) {
|
|
2149
|
+
var message = 'Consumed bytes exceed the limit: ' + this.m3r_1._v.toString() + ' > ' + this.h3r_1.toString() + ". It's an implementation bug, please report it.";
|
|
2097
2150
|
throw IllegalStateException_init_$Create$(toString_1(message));
|
|
2098
2151
|
}
|
|
2099
2152
|
|
|
2100
|
-
if (equalsLong(this.
|
|
2101
|
-
if (equalsLong(this.
|
|
2153
|
+
if (equalsLong(this.m3r_1._v, this.h3r_1)) {
|
|
2154
|
+
if (equalsLong(this.h3r_1, new Long(-1, 2147483647)))
|
|
2102
2155
|
throw new TooLongLineException('Max line length exceeded');
|
|
2103
|
-
if (equalsLong(get_remaining(this.
|
|
2104
|
-
this.v8_1 =
|
|
2105
|
-
suspendResult = this.
|
|
2156
|
+
if (equalsLong(get_remaining(this.n3r_1), new Long(0, 0))) {
|
|
2157
|
+
this.v8_1 = 18;
|
|
2158
|
+
suspendResult = this.f3r_1.g3l(VOID, this);
|
|
2106
2159
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2107
2160
|
return suspendResult;
|
|
2108
2161
|
}
|
|
2109
2162
|
continue $sm;
|
|
2110
2163
|
} else {
|
|
2111
|
-
this.
|
|
2112
|
-
this.v8_1 =
|
|
2164
|
+
this.o3r_1 = false;
|
|
2165
|
+
this.v8_1 = 19;
|
|
2113
2166
|
continue $sm;
|
|
2114
2167
|
}
|
|
2115
2168
|
} else {
|
|
2116
|
-
this.v8_1 =
|
|
2169
|
+
this.v8_1 = 17;
|
|
2117
2170
|
continue $sm;
|
|
2118
2171
|
}
|
|
2119
2172
|
|
|
2120
|
-
case
|
|
2121
|
-
if (this.
|
|
2122
|
-
throwEndOfStreamException(this.
|
|
2173
|
+
case 17:
|
|
2174
|
+
if (this.j3r_1) {
|
|
2175
|
+
throwEndOfStreamException(this.m3r_1._v);
|
|
2123
2176
|
}
|
|
2124
2177
|
|
|
2125
|
-
|
|
2126
|
-
|
|
2127
|
-
this.
|
|
2128
|
-
|
|
2178
|
+
this.l3r_1 = this.m3r_1._v;
|
|
2179
|
+
this.w8_1 = 27;
|
|
2180
|
+
this.v8_1 = 25;
|
|
2181
|
+
var tmp_3 = this;
|
|
2129
2182
|
continue $sm;
|
|
2130
|
-
case
|
|
2131
|
-
|
|
2132
|
-
|
|
2183
|
+
case 18:
|
|
2184
|
+
this.o3r_1 = !suspendResult;
|
|
2185
|
+
this.v8_1 = 19;
|
|
2186
|
+
continue $sm;
|
|
2187
|
+
case 19:
|
|
2188
|
+
if (this.o3r_1) {
|
|
2189
|
+
throwEndOfStreamException(this.m3r_1._v);
|
|
2133
2190
|
} else {
|
|
2134
|
-
this.v8_1 =
|
|
2191
|
+
this.v8_1 = 20;
|
|
2135
2192
|
continue $sm;
|
|
2136
2193
|
}
|
|
2137
2194
|
|
|
2138
2195
|
break;
|
|
2139
|
-
case
|
|
2140
|
-
var tmp0_subject = this.
|
|
2196
|
+
case 20:
|
|
2197
|
+
var tmp0_subject = this.n3r_1.v3f().r3g(new Long(0, 0));
|
|
2141
2198
|
if (tmp0_subject === 10) {
|
|
2142
|
-
discard_0(this.
|
|
2143
|
-
|
|
2199
|
+
discard_0(this.n3r_1, new Long(1, 0));
|
|
2200
|
+
this.l3r_1 = this.m3r_1._v;
|
|
2201
|
+
this.w8_1 = 27;
|
|
2202
|
+
this.v8_1 = 25;
|
|
2203
|
+
continue $sm;
|
|
2144
2204
|
} else {
|
|
2145
2205
|
if (tmp0_subject === 13) {
|
|
2146
|
-
this.v8_1 =
|
|
2147
|
-
suspendResult = internalReadLineTo$discardCrlfOrCr(this.
|
|
2206
|
+
this.v8_1 = 21;
|
|
2207
|
+
suspendResult = internalReadLineTo$discardCrlfOrCr(this.n3r_1, this.f3r_1, this.i3r_1, this);
|
|
2148
2208
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2149
2209
|
return suspendResult;
|
|
2150
2210
|
}
|
|
2151
2211
|
continue $sm;
|
|
2152
2212
|
} else {
|
|
2153
|
-
this.v8_1 =
|
|
2213
|
+
this.v8_1 = 23;
|
|
2154
2214
|
continue $sm;
|
|
2155
2215
|
}
|
|
2156
2216
|
}
|
|
2157
2217
|
|
|
2158
|
-
case
|
|
2218
|
+
case 21:
|
|
2159
2219
|
if (suspendResult) {
|
|
2160
|
-
|
|
2220
|
+
this.l3r_1 = this.m3r_1._v;
|
|
2221
|
+
this.w8_1 = 27;
|
|
2222
|
+
this.v8_1 = 25;
|
|
2223
|
+
continue $sm;
|
|
2161
2224
|
} else {
|
|
2162
|
-
this.v8_1 =
|
|
2225
|
+
this.v8_1 = 22;
|
|
2163
2226
|
continue $sm;
|
|
2164
2227
|
}
|
|
2165
2228
|
|
|
2166
|
-
case
|
|
2167
|
-
this.v8_1 =
|
|
2229
|
+
case 22:
|
|
2230
|
+
this.v8_1 = 23;
|
|
2168
2231
|
continue $sm;
|
|
2169
|
-
case
|
|
2170
|
-
throwTooLongLineException(this.
|
|
2232
|
+
case 23:
|
|
2233
|
+
throwTooLongLineException(this.h3r_1);
|
|
2171
2234
|
break;
|
|
2172
|
-
case
|
|
2235
|
+
case 24:
|
|
2236
|
+
this.w8_1 = 27;
|
|
2237
|
+
var t = this.y8_1;
|
|
2238
|
+
if (!(this.k3r_1._v == null)) {
|
|
2239
|
+
this.g3r_1.c1(readString_0(this.k3r_1._v));
|
|
2240
|
+
}
|
|
2241
|
+
|
|
2242
|
+
throw t;
|
|
2243
|
+
case 25:
|
|
2244
|
+
var tmp_4 = this.l3r_1;
|
|
2245
|
+
this.w8_1 = 27;
|
|
2246
|
+
if (!(this.k3r_1._v == null)) {
|
|
2247
|
+
this.g3r_1.c1(readString_0(this.k3r_1._v));
|
|
2248
|
+
}
|
|
2249
|
+
|
|
2250
|
+
return tmp_4;
|
|
2251
|
+
case 26:
|
|
2252
|
+
this.w8_1 = 27;
|
|
2253
|
+
if (!(this.k3r_1._v == null)) {
|
|
2254
|
+
this.g3r_1.c1(readString_0(this.k3r_1._v));
|
|
2255
|
+
}
|
|
2256
|
+
|
|
2257
|
+
return Unit_instance;
|
|
2258
|
+
case 27:
|
|
2173
2259
|
throw this.y8_1;
|
|
2174
2260
|
}
|
|
2175
2261
|
} catch ($p) {
|
|
2176
2262
|
var e = $p;
|
|
2177
|
-
if (this.w8_1 ===
|
|
2263
|
+
if (this.w8_1 === 27) {
|
|
2178
2264
|
throw e;
|
|
2179
2265
|
} else {
|
|
2180
2266
|
this.v8_1 = this.w8_1;
|
|
@@ -2185,9 +2271,9 @@ protoOf($internalReadLineToCOROUTINE$).d9 = function () {
|
|
|
2185
2271
|
};
|
|
2186
2272
|
function $internalReadLineTo$discardCrlfOrCrCOROUTINE$(_this__u8e3s4, $this_internalReadLineTo, $lenientLineEnding, resultContinuation) {
|
|
2187
2273
|
CoroutineImpl.call(this, resultContinuation);
|
|
2188
|
-
this.
|
|
2189
|
-
this.
|
|
2190
|
-
this.
|
|
2274
|
+
this.a3s_1 = _this__u8e3s4;
|
|
2275
|
+
this.b3s_1 = $this_internalReadLineTo;
|
|
2276
|
+
this.c3s_1 = $lenientLineEnding;
|
|
2191
2277
|
}
|
|
2192
2278
|
protoOf($internalReadLineTo$discardCrlfOrCrCOROUTINE$).d9 = function () {
|
|
2193
2279
|
var suspendResult = this.x8_1;
|
|
@@ -2197,13 +2283,13 @@ protoOf($internalReadLineTo$discardCrlfOrCrCOROUTINE$).d9 = function () {
|
|
|
2197
2283
|
switch (tmp) {
|
|
2198
2284
|
case 0:
|
|
2199
2285
|
this.w8_1 = 5;
|
|
2200
|
-
if (compare(get_remaining(this.
|
|
2201
|
-
this.
|
|
2286
|
+
if (compare(get_remaining(this.a3s_1), new Long(2, 0)) >= 0) {
|
|
2287
|
+
this.e3s_1 = true;
|
|
2202
2288
|
this.v8_1 = 2;
|
|
2203
2289
|
continue $sm;
|
|
2204
2290
|
} else {
|
|
2205
2291
|
this.v8_1 = 1;
|
|
2206
|
-
suspendResult = this.
|
|
2292
|
+
suspendResult = this.b3s_1.f3l(2, this);
|
|
2207
2293
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2208
2294
|
return suspendResult;
|
|
2209
2295
|
}
|
|
@@ -2211,23 +2297,23 @@ protoOf($internalReadLineTo$discardCrlfOrCrCOROUTINE$).d9 = function () {
|
|
|
2211
2297
|
}
|
|
2212
2298
|
|
|
2213
2299
|
case 1:
|
|
2214
|
-
this.
|
|
2300
|
+
this.e3s_1 = suspendResult;
|
|
2215
2301
|
this.v8_1 = 2;
|
|
2216
2302
|
continue $sm;
|
|
2217
2303
|
case 2:
|
|
2218
|
-
if (this.
|
|
2219
|
-
this.
|
|
2304
|
+
if (this.e3s_1) {
|
|
2305
|
+
this.d3s_1 = this.a3s_1.v3f().r3g(new Long(1, 0)) === 10;
|
|
2220
2306
|
this.v8_1 = 3;
|
|
2221
2307
|
continue $sm;
|
|
2222
2308
|
} else {
|
|
2223
|
-
this.
|
|
2309
|
+
this.d3s_1 = false;
|
|
2224
2310
|
this.v8_1 = 3;
|
|
2225
2311
|
continue $sm;
|
|
2226
2312
|
}
|
|
2227
2313
|
|
|
2228
2314
|
case 3:
|
|
2229
|
-
if (this.
|
|
2230
|
-
discard_0(this.
|
|
2315
|
+
if (this.d3s_1) {
|
|
2316
|
+
discard_0(this.a3s_1, new Long(2, 0));
|
|
2231
2317
|
return true;
|
|
2232
2318
|
} else {
|
|
2233
2319
|
this.v8_1 = 4;
|
|
@@ -2235,8 +2321,8 @@ protoOf($internalReadLineTo$discardCrlfOrCrCOROUTINE$).d9 = function () {
|
|
|
2235
2321
|
}
|
|
2236
2322
|
|
|
2237
2323
|
case 4:
|
|
2238
|
-
if (this.
|
|
2239
|
-
discard_0(this.
|
|
2324
|
+
if (this.c3s_1) {
|
|
2325
|
+
discard_0(this.a3s_1, new Long(1, 0));
|
|
2240
2326
|
return true;
|
|
2241
2327
|
}
|
|
2242
2328
|
|
|
@@ -2265,7 +2351,7 @@ function flushIfNeeded(_this__u8e3s4, $completion) {
|
|
|
2265
2351
|
}
|
|
2266
2352
|
function $flushIfNeededCOROUTINE$(_this__u8e3s4, resultContinuation) {
|
|
2267
2353
|
CoroutineImpl.call(this, resultContinuation);
|
|
2268
|
-
this.
|
|
2354
|
+
this.n3s_1 = _this__u8e3s4;
|
|
2269
2355
|
}
|
|
2270
2356
|
protoOf($flushIfNeededCOROUTINE$).d9 = function () {
|
|
2271
2357
|
var suspendResult = this.x8_1;
|
|
@@ -2275,10 +2361,10 @@ protoOf($flushIfNeededCOROUTINE$).d9 = function () {
|
|
|
2275
2361
|
switch (tmp) {
|
|
2276
2362
|
case 0:
|
|
2277
2363
|
this.w8_1 = 3;
|
|
2278
|
-
rethrowCloseCauseIfNeeded_1(this.
|
|
2279
|
-
if (this.
|
|
2364
|
+
rethrowCloseCauseIfNeeded_1(this.n3s_1);
|
|
2365
|
+
if (this.n3s_1.z3k() || get_size(this.n3s_1.b3l()) >= 1048576) {
|
|
2280
2366
|
this.v8_1 = 1;
|
|
2281
|
-
suspendResult = this.
|
|
2367
|
+
suspendResult = this.n3s_1.y3k(this);
|
|
2282
2368
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2283
2369
|
return suspendResult;
|
|
2284
2370
|
}
|
|
@@ -2310,7 +2396,7 @@ protoOf($flushIfNeededCOROUTINE$).d9 = function () {
|
|
|
2310
2396
|
function ByteWriteChannel$flushAndClose$ref(p0) {
|
|
2311
2397
|
var i = new ByteWriteChannel$flushAndClose$ref_0(p0);
|
|
2312
2398
|
return constructCallableReference(function ($completion) {
|
|
2313
|
-
return i.
|
|
2399
|
+
return i.s3s($completion);
|
|
2314
2400
|
}, 0, 1, 17, 'flushAndClose', [p0]);
|
|
2315
2401
|
}
|
|
2316
2402
|
function get_NO_CALLBACK() {
|
|
@@ -2319,11 +2405,11 @@ function get_NO_CALLBACK() {
|
|
|
2319
2405
|
}
|
|
2320
2406
|
var NO_CALLBACK;
|
|
2321
2407
|
function WriterJob(channel, job) {
|
|
2322
|
-
this.
|
|
2323
|
-
this.
|
|
2408
|
+
this.a3n_1 = channel;
|
|
2409
|
+
this.b3n_1 = job;
|
|
2324
2410
|
}
|
|
2325
2411
|
protoOf(WriterJob).i1q = function () {
|
|
2326
|
-
return this.
|
|
2412
|
+
return this.b3n_1;
|
|
2327
2413
|
};
|
|
2328
2414
|
function writer(_this__u8e3s4, coroutineContext, autoFlush, block) {
|
|
2329
2415
|
coroutineContext = coroutineContext === VOID ? EmptyCoroutineContext_getInstance() : coroutineContext;
|
|
@@ -2332,16 +2418,16 @@ function writer(_this__u8e3s4, coroutineContext, autoFlush, block) {
|
|
|
2332
2418
|
return writer_0(_this__u8e3s4, coroutineContext, new ByteChannel(), block);
|
|
2333
2419
|
}
|
|
2334
2420
|
function WriterScope(channel, coroutineContext) {
|
|
2335
|
-
this.
|
|
2336
|
-
this.
|
|
2421
|
+
this.t3s_1 = channel;
|
|
2422
|
+
this.u3s_1 = coroutineContext;
|
|
2337
2423
|
}
|
|
2338
2424
|
protoOf(WriterScope).w1m = function () {
|
|
2339
|
-
return this.
|
|
2425
|
+
return this.u3s_1;
|
|
2340
2426
|
};
|
|
2341
2427
|
function writeFully(_this__u8e3s4, value, startIndex, endIndex, $completion) {
|
|
2342
2428
|
startIndex = startIndex === VOID ? 0 : startIndex;
|
|
2343
2429
|
endIndex = endIndex === VOID ? value.length : endIndex;
|
|
2344
|
-
_this__u8e3s4.
|
|
2430
|
+
_this__u8e3s4.b3l().f3h(value, startIndex, endIndex);
|
|
2345
2431
|
return flushIfNeeded(_this__u8e3s4, $completion);
|
|
2346
2432
|
}
|
|
2347
2433
|
function close_0(_this__u8e3s4, cause) {
|
|
@@ -2349,7 +2435,7 @@ function close_0(_this__u8e3s4, cause) {
|
|
|
2349
2435
|
if (cause == null) {
|
|
2350
2436
|
fireAndForget(ByteWriteChannel$flushAndClose$ref(_this__u8e3s4));
|
|
2351
2437
|
} else {
|
|
2352
|
-
_this__u8e3s4.
|
|
2438
|
+
_this__u8e3s4.i3l(cause);
|
|
2353
2439
|
}
|
|
2354
2440
|
}
|
|
2355
2441
|
function invokeOnCompletion(_this__u8e3s4, block) {
|
|
@@ -2370,14 +2456,14 @@ function fireAndForget(_this__u8e3s4) {
|
|
|
2370
2456
|
startCoroutineCancellable(_this__u8e3s4, get_NO_CALLBACK());
|
|
2371
2457
|
}
|
|
2372
2458
|
function writeByte(_this__u8e3s4, value, $completion) {
|
|
2373
|
-
_this__u8e3s4.
|
|
2459
|
+
_this__u8e3s4.b3l().p3h(value);
|
|
2374
2460
|
return flushIfNeeded(_this__u8e3s4, $completion);
|
|
2375
2461
|
}
|
|
2376
2462
|
function NO_CALLBACK$1() {
|
|
2377
|
-
this.
|
|
2463
|
+
this.v3s_1 = EmptyCoroutineContext_getInstance();
|
|
2378
2464
|
}
|
|
2379
2465
|
protoOf(NO_CALLBACK$1).b9 = function () {
|
|
2380
|
-
return this.
|
|
2466
|
+
return this.v3s_1;
|
|
2381
2467
|
};
|
|
2382
2468
|
protoOf(NO_CALLBACK$1).c9 = function (result) {
|
|
2383
2469
|
return Unit_instance;
|
|
@@ -2387,27 +2473,27 @@ protoOf(NO_CALLBACK$1).g9 = function (result) {
|
|
|
2387
2473
|
};
|
|
2388
2474
|
function ByteWriteChannel$flushAndClose$ref_0(p0) {
|
|
2389
2475
|
KFunctionImpl.call(this, 1, 1, 17);
|
|
2390
|
-
this.
|
|
2476
|
+
this.r3s_1 = p0;
|
|
2391
2477
|
}
|
|
2392
|
-
protoOf(ByteWriteChannel$flushAndClose$ref_0).
|
|
2393
|
-
return this.
|
|
2478
|
+
protoOf(ByteWriteChannel$flushAndClose$ref_0).s3s = function ($completion) {
|
|
2479
|
+
return this.r3s_1.h3l($completion);
|
|
2394
2480
|
};
|
|
2395
2481
|
protoOf(ByteWriteChannel$flushAndClose$ref_0).p9 = function ($completion) {
|
|
2396
|
-
return this.
|
|
2482
|
+
return this.s3s($completion);
|
|
2397
2483
|
};
|
|
2398
2484
|
function writer$slambda($block, $channel, resultContinuation) {
|
|
2399
|
-
this.
|
|
2400
|
-
this.
|
|
2485
|
+
this.e3t_1 = $block;
|
|
2486
|
+
this.f3t_1 = $channel;
|
|
2401
2487
|
CoroutineImpl.call(this, resultContinuation);
|
|
2402
2488
|
}
|
|
2403
|
-
protoOf(writer$slambda).
|
|
2404
|
-
var tmp = this.
|
|
2489
|
+
protoOf(writer$slambda).n3t = function ($this$launch, $completion) {
|
|
2490
|
+
var tmp = this.o3t($this$launch, $completion);
|
|
2405
2491
|
tmp.x8_1 = Unit_instance;
|
|
2406
2492
|
tmp.y8_1 = null;
|
|
2407
2493
|
return tmp.d9();
|
|
2408
2494
|
};
|
|
2409
2495
|
protoOf(writer$slambda).q9 = function (p1, $completion) {
|
|
2410
|
-
return this.
|
|
2496
|
+
return this.n3t((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
2411
2497
|
};
|
|
2412
2498
|
protoOf(writer$slambda).d9 = function () {
|
|
2413
2499
|
var suspendResult = this.x8_1;
|
|
@@ -2417,24 +2503,24 @@ protoOf(writer$slambda).d9 = function () {
|
|
|
2417
2503
|
switch (tmp) {
|
|
2418
2504
|
case 0:
|
|
2419
2505
|
this.w8_1 = 14;
|
|
2420
|
-
this.
|
|
2506
|
+
this.j3t_1 = Job(get_job(this.g3t_1.w1m()));
|
|
2421
2507
|
this.v8_1 = 1;
|
|
2422
2508
|
continue $sm;
|
|
2423
2509
|
case 1:
|
|
2424
2510
|
this.w8_1 = 4;
|
|
2425
2511
|
this.w8_1 = 3;
|
|
2426
2512
|
this.v8_1 = 2;
|
|
2427
|
-
suspendResult = this.
|
|
2513
|
+
suspendResult = this.e3t_1(new WriterScope(this.f3t_1, this.g3t_1.w1m().wh(this.j3t_1)), this);
|
|
2428
2514
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2429
2515
|
return suspendResult;
|
|
2430
2516
|
}
|
|
2431
2517
|
|
|
2432
2518
|
continue $sm;
|
|
2433
2519
|
case 2:
|
|
2434
|
-
this.
|
|
2520
|
+
this.j3t_1.f1v();
|
|
2435
2521
|
var tmp_0;
|
|
2436
|
-
if (get_job(this.
|
|
2437
|
-
this.
|
|
2522
|
+
if (get_job(this.g3t_1.w1m()).t1n()) {
|
|
2523
|
+
this.f3t_1.i3l(get_job(this.g3t_1.w1m()).w1n());
|
|
2438
2524
|
tmp_0 = Unit_instance;
|
|
2439
2525
|
}
|
|
2440
2526
|
|
|
@@ -2446,8 +2532,8 @@ protoOf(writer$slambda).d9 = function () {
|
|
|
2446
2532
|
var tmp_1 = this.y8_1;
|
|
2447
2533
|
if (tmp_1 instanceof Error) {
|
|
2448
2534
|
var cause = this.y8_1;
|
|
2449
|
-
cancel(this.
|
|
2450
|
-
this.
|
|
2535
|
+
cancel(this.j3t_1, 'Exception thrown while writing to channel', cause);
|
|
2536
|
+
this.f3t_1.i3l(cause);
|
|
2451
2537
|
this.w8_1 = 14;
|
|
2452
2538
|
this.v8_1 = 9;
|
|
2453
2539
|
continue $sm;
|
|
@@ -2457,20 +2543,20 @@ protoOf(writer$slambda).d9 = function () {
|
|
|
2457
2543
|
|
|
2458
2544
|
case 4:
|
|
2459
2545
|
this.w8_1 = 14;
|
|
2460
|
-
this.
|
|
2546
|
+
this.k3t_1 = this.y8_1;
|
|
2461
2547
|
this.v8_1 = 5;
|
|
2462
|
-
suspendResult = this.
|
|
2548
|
+
suspendResult = this.j3t_1.d1o(this);
|
|
2463
2549
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2464
2550
|
return suspendResult;
|
|
2465
2551
|
}
|
|
2466
2552
|
|
|
2467
2553
|
continue $sm;
|
|
2468
2554
|
case 5:
|
|
2469
|
-
this.
|
|
2555
|
+
this.g3t_1;
|
|
2470
2556
|
this.w8_1 = 7;
|
|
2471
|
-
this.
|
|
2557
|
+
this.m3t_1 = Companion_instance;
|
|
2472
2558
|
this.v8_1 = 6;
|
|
2473
|
-
suspendResult = this.
|
|
2559
|
+
suspendResult = this.f3t_1.h3l(this);
|
|
2474
2560
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2475
2561
|
return suspendResult;
|
|
2476
2562
|
}
|
|
@@ -2478,8 +2564,8 @@ protoOf(writer$slambda).d9 = function () {
|
|
|
2478
2564
|
continue $sm;
|
|
2479
2565
|
case 6:
|
|
2480
2566
|
var tmp_2 = this;
|
|
2481
|
-
this.
|
|
2482
|
-
tmp_2.
|
|
2567
|
+
this.m3t_1;
|
|
2568
|
+
tmp_2.l3t_1 = _Result___init__impl__xyqfz8(Unit_instance);
|
|
2483
2569
|
this.w8_1 = 14;
|
|
2484
2570
|
this.v8_1 = 8;
|
|
2485
2571
|
continue $sm;
|
|
@@ -2489,7 +2575,7 @@ protoOf(writer$slambda).d9 = function () {
|
|
|
2489
2575
|
if (tmp_3 instanceof Error) {
|
|
2490
2576
|
var e = this.y8_1;
|
|
2491
2577
|
var tmp_4 = this;
|
|
2492
|
-
tmp_4.
|
|
2578
|
+
tmp_4.l3t_1 = _Result___init__impl__xyqfz8(createFailure(e));
|
|
2493
2579
|
this.v8_1 = 8;
|
|
2494
2580
|
continue $sm;
|
|
2495
2581
|
} else {
|
|
@@ -2498,22 +2584,22 @@ protoOf(writer$slambda).d9 = function () {
|
|
|
2498
2584
|
|
|
2499
2585
|
case 8:
|
|
2500
2586
|
this.w8_1 = 14;
|
|
2501
|
-
throw this.
|
|
2587
|
+
throw this.k3t_1;
|
|
2502
2588
|
case 9:
|
|
2503
2589
|
this.w8_1 = 14;
|
|
2504
2590
|
this.v8_1 = 10;
|
|
2505
|
-
suspendResult = this.
|
|
2591
|
+
suspendResult = this.j3t_1.d1o(this);
|
|
2506
2592
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2507
2593
|
return suspendResult;
|
|
2508
2594
|
}
|
|
2509
2595
|
|
|
2510
2596
|
continue $sm;
|
|
2511
2597
|
case 10:
|
|
2512
|
-
this.
|
|
2598
|
+
this.g3t_1;
|
|
2513
2599
|
this.w8_1 = 12;
|
|
2514
|
-
this.
|
|
2600
|
+
this.i3t_1 = Companion_instance;
|
|
2515
2601
|
this.v8_1 = 11;
|
|
2516
|
-
suspendResult = this.
|
|
2602
|
+
suspendResult = this.f3t_1.h3l(this);
|
|
2517
2603
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2518
2604
|
return suspendResult;
|
|
2519
2605
|
}
|
|
@@ -2521,8 +2607,8 @@ protoOf(writer$slambda).d9 = function () {
|
|
|
2521
2607
|
continue $sm;
|
|
2522
2608
|
case 11:
|
|
2523
2609
|
var tmp_5 = this;
|
|
2524
|
-
this.
|
|
2525
|
-
tmp_5.
|
|
2610
|
+
this.i3t_1;
|
|
2611
|
+
tmp_5.h3t_1 = _Result___init__impl__xyqfz8(Unit_instance);
|
|
2526
2612
|
this.w8_1 = 14;
|
|
2527
2613
|
this.v8_1 = 13;
|
|
2528
2614
|
continue $sm;
|
|
@@ -2532,7 +2618,7 @@ protoOf(writer$slambda).d9 = function () {
|
|
|
2532
2618
|
if (tmp_6 instanceof Error) {
|
|
2533
2619
|
var e_0 = this.y8_1;
|
|
2534
2620
|
var tmp_7 = this;
|
|
2535
|
-
tmp_7.
|
|
2621
|
+
tmp_7.h3t_1 = _Result___init__impl__xyqfz8(createFailure(e_0));
|
|
2536
2622
|
this.v8_1 = 13;
|
|
2537
2623
|
continue $sm;
|
|
2538
2624
|
} else {
|
|
@@ -2556,22 +2642,22 @@ protoOf(writer$slambda).d9 = function () {
|
|
|
2556
2642
|
}
|
|
2557
2643
|
while (true);
|
|
2558
2644
|
};
|
|
2559
|
-
protoOf(writer$slambda).
|
|
2560
|
-
var i = new writer$slambda(this.
|
|
2561
|
-
i.
|
|
2645
|
+
protoOf(writer$slambda).o3t = function ($this$launch, completion) {
|
|
2646
|
+
var i = new writer$slambda(this.e3t_1, this.f3t_1, completion);
|
|
2647
|
+
i.g3t_1 = $this$launch;
|
|
2562
2648
|
return i;
|
|
2563
2649
|
};
|
|
2564
2650
|
function writer$slambda_0($block, $channel, resultContinuation) {
|
|
2565
2651
|
var i = new writer$slambda($block, $channel, resultContinuation);
|
|
2566
2652
|
return constructCallableReference(function ($this$launch, $completion) {
|
|
2567
|
-
return i.
|
|
2653
|
+
return i.n3t($this$launch, $completion);
|
|
2568
2654
|
}, 1);
|
|
2569
2655
|
}
|
|
2570
2656
|
function writer$lambda($channel) {
|
|
2571
2657
|
return function (it) {
|
|
2572
2658
|
var tmp;
|
|
2573
|
-
if (!(it == null) && !$channel.
|
|
2574
|
-
$channel.
|
|
2659
|
+
if (!(it == null) && !$channel.c3l()) {
|
|
2660
|
+
$channel.i3l(it);
|
|
2575
2661
|
tmp = Unit_instance;
|
|
2576
2662
|
}
|
|
2577
2663
|
return Unit_instance;
|
|
@@ -2596,10 +2682,10 @@ function Companion_getInstance_1() {
|
|
|
2596
2682
|
return Companion_instance_2;
|
|
2597
2683
|
}
|
|
2598
2684
|
function access$_get_origin__hdh1qz($this) {
|
|
2599
|
-
return $this.
|
|
2685
|
+
return $this.p3t_1;
|
|
2600
2686
|
}
|
|
2601
2687
|
function CloseToken(origin) {
|
|
2602
|
-
this.
|
|
2688
|
+
this.p3t_1 = origin;
|
|
2603
2689
|
}
|
|
2604
2690
|
var properties_initialized_CloseToken_kt_lgg8zn;
|
|
2605
2691
|
function _init_properties_CloseToken_kt__9ucr41() {
|
|
@@ -2610,17 +2696,17 @@ function _init_properties_CloseToken_kt__9ucr41() {
|
|
|
2610
2696
|
}
|
|
2611
2697
|
function transferFromDelegate($this) {
|
|
2612
2698
|
updateConsumed($this);
|
|
2613
|
-
var appended = $this.
|
|
2614
|
-
$this.
|
|
2699
|
+
var appended = $this.r3t_1.o3h($this.q3t_1.a3l());
|
|
2700
|
+
$this.s3t_1 = add($this.s3t_1, appended);
|
|
2615
2701
|
}
|
|
2616
2702
|
function updateConsumed($this) {
|
|
2617
|
-
$this.
|
|
2618
|
-
$this.
|
|
2703
|
+
$this.t3t_1 = add($this.t3t_1, subtract($this.s3t_1, $this.r3t_1.e1()));
|
|
2704
|
+
$this.s3t_1 = $this.r3t_1.e1();
|
|
2619
2705
|
}
|
|
2620
2706
|
function $awaitContentCOROUTINE$_0(_this__u8e3s4, min, resultContinuation) {
|
|
2621
2707
|
CoroutineImpl.call(this, resultContinuation);
|
|
2622
|
-
this.
|
|
2623
|
-
this.
|
|
2708
|
+
this.c3u_1 = _this__u8e3s4;
|
|
2709
|
+
this.d3u_1 = min;
|
|
2624
2710
|
}
|
|
2625
2711
|
protoOf($awaitContentCOROUTINE$_0).d9 = function () {
|
|
2626
2712
|
var suspendResult = this.x8_1;
|
|
@@ -2630,12 +2716,12 @@ protoOf($awaitContentCOROUTINE$_0).d9 = function () {
|
|
|
2630
2716
|
switch (tmp) {
|
|
2631
2717
|
case 0:
|
|
2632
2718
|
this.w8_1 = 3;
|
|
2633
|
-
if (compare(this.
|
|
2719
|
+
if (compare(this.c3u_1.a3l().e1(), fromInt(this.d3u_1)) >= 0) {
|
|
2634
2720
|
return true;
|
|
2635
2721
|
}
|
|
2636
2722
|
|
|
2637
2723
|
this.v8_1 = 1;
|
|
2638
|
-
suspendResult = this.
|
|
2724
|
+
suspendResult = this.c3u_1.q3t_1.f3l(this.d3u_1, this);
|
|
2639
2725
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2640
2726
|
return suspendResult;
|
|
2641
2727
|
}
|
|
@@ -2643,7 +2729,7 @@ protoOf($awaitContentCOROUTINE$_0).d9 = function () {
|
|
|
2643
2729
|
continue $sm;
|
|
2644
2730
|
case 1:
|
|
2645
2731
|
if (suspendResult) {
|
|
2646
|
-
transferFromDelegate(this.
|
|
2732
|
+
transferFromDelegate(this.c3u_1);
|
|
2647
2733
|
return true;
|
|
2648
2734
|
} else {
|
|
2649
2735
|
this.v8_1 = 2;
|
|
@@ -2667,40 +2753,40 @@ protoOf($awaitContentCOROUTINE$_0).d9 = function () {
|
|
|
2667
2753
|
while (true);
|
|
2668
2754
|
};
|
|
2669
2755
|
function CountedByteReadChannel(delegate) {
|
|
2670
|
-
this.
|
|
2671
|
-
this.
|
|
2672
|
-
this.
|
|
2673
|
-
this.
|
|
2756
|
+
this.q3t_1 = delegate;
|
|
2757
|
+
this.r3t_1 = new Buffer();
|
|
2758
|
+
this.s3t_1 = new Long(0, 0);
|
|
2759
|
+
this.t3t_1 = new Long(0, 0);
|
|
2674
2760
|
}
|
|
2675
|
-
protoOf(CountedByteReadChannel).
|
|
2761
|
+
protoOf(CountedByteReadChannel).e3u = function () {
|
|
2676
2762
|
updateConsumed(this);
|
|
2677
|
-
return this.
|
|
2763
|
+
return this.t3t_1;
|
|
2678
2764
|
};
|
|
2679
|
-
protoOf(CountedByteReadChannel).
|
|
2680
|
-
return this.
|
|
2765
|
+
protoOf(CountedByteReadChannel).d3l = function () {
|
|
2766
|
+
return this.q3t_1.d3l();
|
|
2681
2767
|
};
|
|
2682
|
-
protoOf(CountedByteReadChannel).
|
|
2683
|
-
return this.
|
|
2768
|
+
protoOf(CountedByteReadChannel).e3l = function () {
|
|
2769
|
+
return this.r3t_1.w3f() && this.q3t_1.e3l();
|
|
2684
2770
|
};
|
|
2685
|
-
protoOf(CountedByteReadChannel).
|
|
2771
|
+
protoOf(CountedByteReadChannel).a3l = function () {
|
|
2686
2772
|
transferFromDelegate(this);
|
|
2687
|
-
return this.
|
|
2773
|
+
return this.r3t_1;
|
|
2688
2774
|
};
|
|
2689
|
-
protoOf(CountedByteReadChannel).
|
|
2775
|
+
protoOf(CountedByteReadChannel).f3l = function (min, $completion) {
|
|
2690
2776
|
var tmp = new $awaitContentCOROUTINE$_0(this, min, $completion);
|
|
2691
2777
|
tmp.x8_1 = Unit_instance;
|
|
2692
2778
|
tmp.y8_1 = null;
|
|
2693
2779
|
return tmp.d9();
|
|
2694
2780
|
};
|
|
2695
|
-
protoOf(CountedByteReadChannel).
|
|
2696
|
-
this.
|
|
2697
|
-
this.
|
|
2781
|
+
protoOf(CountedByteReadChannel).i3l = function (cause) {
|
|
2782
|
+
this.q3t_1.i3l(cause);
|
|
2783
|
+
this.r3t_1.d4();
|
|
2698
2784
|
};
|
|
2699
2785
|
function counted(_this__u8e3s4) {
|
|
2700
2786
|
return new CountedByteReadChannel(_this__u8e3s4);
|
|
2701
2787
|
}
|
|
2702
2788
|
function readText(_this__u8e3s4) {
|
|
2703
|
-
return
|
|
2789
|
+
return readString_1(_this__u8e3s4);
|
|
2704
2790
|
}
|
|
2705
2791
|
function ClosedByteChannelException(cause) {
|
|
2706
2792
|
cause = cause === VOID ? null : cause;
|
|
@@ -2752,21 +2838,21 @@ function LineEndingMode__plus_impl_ttpz2j($this, other) {
|
|
|
2752
2838
|
}
|
|
2753
2839
|
function LineEndingMode__toString_impl_j4h76r($this) {
|
|
2754
2840
|
var tmp;
|
|
2755
|
-
if ($this === Companion_getInstance_2().
|
|
2841
|
+
if ($this === Companion_getInstance_2().f3u_1) {
|
|
2756
2842
|
tmp = 'CR';
|
|
2757
|
-
} else if ($this === Companion_getInstance_2().
|
|
2843
|
+
} else if ($this === Companion_getInstance_2().g3u_1) {
|
|
2758
2844
|
tmp = 'LF';
|
|
2759
|
-
} else if ($this === Companion_getInstance_2().
|
|
2845
|
+
} else if ($this === Companion_getInstance_2().h3u_1) {
|
|
2760
2846
|
tmp = 'CRLF';
|
|
2761
2847
|
} else {
|
|
2762
2848
|
// Inline function 'kotlin.collections.filter' call
|
|
2763
|
-
var tmp0 = Companion_getInstance_2().
|
|
2849
|
+
var tmp0 = Companion_getInstance_2().j3u_1;
|
|
2764
2850
|
// Inline function 'kotlin.collections.filterTo' call
|
|
2765
2851
|
var destination = ArrayList_init_$Create$();
|
|
2766
2852
|
var _iterator__ex2g4s = tmp0.t();
|
|
2767
2853
|
while (_iterator__ex2g4s.u()) {
|
|
2768
2854
|
var element = _iterator__ex2g4s.v();
|
|
2769
|
-
var it = element.
|
|
2855
|
+
var it = element.k3u_1;
|
|
2770
2856
|
if (LineEndingMode__contains_impl_q5pr68($this, it)) {
|
|
2771
2857
|
destination.b1(element);
|
|
2772
2858
|
}
|
|
@@ -2777,11 +2863,11 @@ function LineEndingMode__toString_impl_j4h76r($this) {
|
|
|
2777
2863
|
}
|
|
2778
2864
|
function Companion_2() {
|
|
2779
2865
|
Companion_instance_3 = this;
|
|
2780
|
-
this.
|
|
2781
|
-
this.
|
|
2782
|
-
this.
|
|
2783
|
-
this.
|
|
2784
|
-
this.
|
|
2866
|
+
this.f3u_1 = _LineEndingMode___init__impl__jo5bul(1);
|
|
2867
|
+
this.g3u_1 = _LineEndingMode___init__impl__jo5bul(2);
|
|
2868
|
+
this.h3u_1 = _LineEndingMode___init__impl__jo5bul(4);
|
|
2869
|
+
this.i3u_1 = _LineEndingMode___init__impl__jo5bul(7);
|
|
2870
|
+
this.j3u_1 = listOf([new LineEndingMode(this.f3u_1), new LineEndingMode(this.g3u_1), new LineEndingMode(this.h3u_1)]);
|
|
2785
2871
|
}
|
|
2786
2872
|
var Companion_instance_3;
|
|
2787
2873
|
function Companion_getInstance_2() {
|
|
@@ -2795,29 +2881,29 @@ function LineEndingMode__hashCode_impl_2mopm4($this) {
|
|
|
2795
2881
|
function LineEndingMode__equals_impl_qyr4nk($this, other) {
|
|
2796
2882
|
if (!(other instanceof LineEndingMode))
|
|
2797
2883
|
return false;
|
|
2798
|
-
if (!($this === other.
|
|
2884
|
+
if (!($this === other.k3u_1))
|
|
2799
2885
|
return false;
|
|
2800
2886
|
return true;
|
|
2801
2887
|
}
|
|
2802
2888
|
function LineEndingMode(mode) {
|
|
2803
2889
|
Companion_getInstance_2();
|
|
2804
|
-
this.
|
|
2890
|
+
this.k3u_1 = mode;
|
|
2805
2891
|
}
|
|
2806
2892
|
protoOf(LineEndingMode).toString = function () {
|
|
2807
|
-
return LineEndingMode__toString_impl_j4h76r(this.
|
|
2893
|
+
return LineEndingMode__toString_impl_j4h76r(this.k3u_1);
|
|
2808
2894
|
};
|
|
2809
2895
|
protoOf(LineEndingMode).hashCode = function () {
|
|
2810
|
-
return LineEndingMode__hashCode_impl_2mopm4(this.
|
|
2896
|
+
return LineEndingMode__hashCode_impl_2mopm4(this.k3u_1);
|
|
2811
2897
|
};
|
|
2812
2898
|
protoOf(LineEndingMode).equals = function (other) {
|
|
2813
|
-
return LineEndingMode__equals_impl_qyr4nk(this.
|
|
2899
|
+
return LineEndingMode__equals_impl_qyr4nk(this.k3u_1, other);
|
|
2814
2900
|
};
|
|
2815
2901
|
function SourceByteReadChannel(source) {
|
|
2816
|
-
this.
|
|
2817
|
-
this.
|
|
2902
|
+
this.l3u_1 = source;
|
|
2903
|
+
this.m3u_1 = null;
|
|
2818
2904
|
}
|
|
2819
|
-
protoOf(SourceByteReadChannel).
|
|
2820
|
-
var tmp0_safe_receiver = this.
|
|
2905
|
+
protoOf(SourceByteReadChannel).d3l = function () {
|
|
2906
|
+
var tmp0_safe_receiver = this.m3u_1;
|
|
2821
2907
|
var tmp;
|
|
2822
2908
|
if (tmp0_safe_receiver == null) {
|
|
2823
2909
|
tmp = null;
|
|
@@ -2843,42 +2929,42 @@ protoOf(SourceByteReadChannel).c3k = function () {
|
|
|
2843
2929
|
}
|
|
2844
2930
|
return tmp;
|
|
2845
2931
|
};
|
|
2846
|
-
protoOf(SourceByteReadChannel).
|
|
2847
|
-
return this.
|
|
2932
|
+
protoOf(SourceByteReadChannel).e3l = function () {
|
|
2933
|
+
return this.l3u_1.w3f();
|
|
2848
2934
|
};
|
|
2849
|
-
protoOf(SourceByteReadChannel).
|
|
2850
|
-
var tmp0_safe_receiver = this.
|
|
2935
|
+
protoOf(SourceByteReadChannel).a3l = function () {
|
|
2936
|
+
var tmp0_safe_receiver = this.d3l();
|
|
2851
2937
|
if (tmp0_safe_receiver == null)
|
|
2852
2938
|
null;
|
|
2853
2939
|
else {
|
|
2854
2940
|
// Inline function 'kotlin.let' call
|
|
2855
2941
|
throw tmp0_safe_receiver;
|
|
2856
2942
|
}
|
|
2857
|
-
return this.
|
|
2943
|
+
return this.l3u_1.v3f();
|
|
2858
2944
|
};
|
|
2859
|
-
protoOf(SourceByteReadChannel).
|
|
2860
|
-
var tmp0_safe_receiver = this.
|
|
2945
|
+
protoOf(SourceByteReadChannel).f3l = function (min, $completion) {
|
|
2946
|
+
var tmp0_safe_receiver = this.d3l();
|
|
2861
2947
|
if (tmp0_safe_receiver == null)
|
|
2862
2948
|
null;
|
|
2863
2949
|
else {
|
|
2864
2950
|
// Inline function 'kotlin.let' call
|
|
2865
2951
|
throw tmp0_safe_receiver;
|
|
2866
2952
|
}
|
|
2867
|
-
return this.
|
|
2953
|
+
return this.l3u_1.y3f(fromInt(min));
|
|
2868
2954
|
};
|
|
2869
|
-
protoOf(SourceByteReadChannel).
|
|
2870
|
-
if (!(this.
|
|
2955
|
+
protoOf(SourceByteReadChannel).i3l = function (cause) {
|
|
2956
|
+
if (!(this.m3u_1 == null))
|
|
2871
2957
|
return Unit_instance;
|
|
2872
|
-
this.
|
|
2958
|
+
this.l3u_1.d4();
|
|
2873
2959
|
var tmp = this;
|
|
2874
2960
|
var tmp1_elvis_lhs = cause == null ? null : cause.message;
|
|
2875
|
-
tmp.
|
|
2961
|
+
tmp.m3u_1 = new CloseToken(IOException_init_$Create$_0(tmp1_elvis_lhs == null ? 'Channel was cancelled' : tmp1_elvis_lhs, cause));
|
|
2876
2962
|
};
|
|
2877
2963
|
function decode(_this__u8e3s4, input, max) {
|
|
2878
2964
|
max = max === VOID ? 2147483647 : max;
|
|
2879
2965
|
var tmp0 = fromInt(max);
|
|
2880
2966
|
// Inline function 'kotlin.comparisons.minOf' call
|
|
2881
|
-
var b = input.
|
|
2967
|
+
var b = input.v3f().e1();
|
|
2882
2968
|
var tmp$ret$0 = compare(tmp0, b) <= 0 ? tmp0 : b;
|
|
2883
2969
|
// Inline function 'kotlin.text.buildString' call
|
|
2884
2970
|
var capacity = convertToInt(tmp$ret$0);
|
|
@@ -2915,7 +3001,7 @@ function encodeToImpl(_this__u8e3s4, destination, input, fromIndex, toIndex) {
|
|
|
2915
3001
|
}
|
|
2916
3002
|
}
|
|
2917
3003
|
function canRead(_this__u8e3s4) {
|
|
2918
|
-
return !_this__u8e3s4.
|
|
3004
|
+
return !_this__u8e3s4.w3f();
|
|
2919
3005
|
}
|
|
2920
3006
|
function readBytes(_this__u8e3s4, count) {
|
|
2921
3007
|
count = count === VOID ? convertToInt(_this__u8e3s4.e1()) : count;
|
|
@@ -2924,35 +3010,35 @@ function readBytes(_this__u8e3s4, count) {
|
|
|
2924
3010
|
function writeFully_0(_this__u8e3s4, buffer, offset, length) {
|
|
2925
3011
|
offset = offset === VOID ? 0 : offset;
|
|
2926
3012
|
length = length === VOID ? buffer.length - offset | 0 : length;
|
|
2927
|
-
_this__u8e3s4.
|
|
3013
|
+
_this__u8e3s4.f3h(buffer, offset, offset + length | 0);
|
|
2928
3014
|
}
|
|
2929
3015
|
function BytePacketBuilder() {
|
|
2930
3016
|
return new Buffer();
|
|
2931
3017
|
}
|
|
2932
3018
|
function build(_this__u8e3s4) {
|
|
2933
|
-
return _this__u8e3s4.
|
|
3019
|
+
return _this__u8e3s4.v3f();
|
|
2934
3020
|
}
|
|
2935
3021
|
function get_size(_this__u8e3s4) {
|
|
2936
|
-
return convertToInt(_this__u8e3s4.
|
|
3022
|
+
return convertToInt(_this__u8e3s4.v3f().e1());
|
|
2937
3023
|
}
|
|
2938
3024
|
var ByteReadPacketEmpty;
|
|
2939
3025
|
function get_remaining(_this__u8e3s4) {
|
|
2940
3026
|
_init_properties_ByteReadPacket_kt__28475y();
|
|
2941
|
-
return _this__u8e3s4.
|
|
3027
|
+
return _this__u8e3s4.v3f().e1();
|
|
2942
3028
|
}
|
|
2943
3029
|
function takeWhile(_this__u8e3s4, block) {
|
|
2944
3030
|
_init_properties_ByteReadPacket_kt__28475y();
|
|
2945
|
-
while (!_this__u8e3s4.
|
|
3031
|
+
while (!_this__u8e3s4.w3f() && block(_this__u8e3s4.v3f())) {
|
|
2946
3032
|
}
|
|
2947
3033
|
}
|
|
2948
3034
|
function discard_0(_this__u8e3s4, count) {
|
|
2949
3035
|
count = count === VOID ? new Long(-1, 2147483647) : count;
|
|
2950
3036
|
_init_properties_ByteReadPacket_kt__28475y();
|
|
2951
|
-
_this__u8e3s4.
|
|
3037
|
+
_this__u8e3s4.y3f(count);
|
|
2952
3038
|
// Inline function 'kotlin.comparisons.minOf' call
|
|
2953
3039
|
var b = get_remaining(_this__u8e3s4);
|
|
2954
3040
|
var countToDiscard = compare(count, b) <= 0 ? count : b;
|
|
2955
|
-
_this__u8e3s4.
|
|
3041
|
+
_this__u8e3s4.v3f().t3g(countToDiscard);
|
|
2956
3042
|
return countToDiscard;
|
|
2957
3043
|
}
|
|
2958
3044
|
var properties_initialized_ByteReadPacket_kt_hw4st4;
|
|
@@ -2965,37 +3051,23 @@ function _init_properties_ByteReadPacket_kt__28475y() {
|
|
|
2965
3051
|
function readAvailable_0(_this__u8e3s4, buffer, offset, length) {
|
|
2966
3052
|
offset = offset === VOID ? 0 : offset;
|
|
2967
3053
|
length = length === VOID ? buffer.length - offset | 0 : length;
|
|
2968
|
-
var result = _this__u8e3s4.
|
|
3054
|
+
var result = _this__u8e3s4.u3g(buffer, offset, offset + length | 0);
|
|
2969
3055
|
return result === -1 ? 0 : result;
|
|
2970
3056
|
}
|
|
2971
|
-
function readText_0(_this__u8e3s4, charset, max) {
|
|
2972
|
-
charset = charset === VOID ? Charsets_getInstance().i3t_1 : charset;
|
|
2973
|
-
max = max === VOID ? 2147483647 : max;
|
|
2974
|
-
if (charset.equals(Charsets_getInstance().i3t_1)) {
|
|
2975
|
-
if (max === 2147483647)
|
|
2976
|
-
return readString_0(_this__u8e3s4);
|
|
2977
|
-
var tmp0 = _this__u8e3s4.v3e().e1();
|
|
2978
|
-
// Inline function 'kotlin.math.min' call
|
|
2979
|
-
var b = fromInt(max);
|
|
2980
|
-
var count = compare(tmp0, b) <= 0 ? tmp0 : b;
|
|
2981
|
-
return readString(_this__u8e3s4, count);
|
|
2982
|
-
}
|
|
2983
|
-
return decode(charset.l3t(), _this__u8e3s4, max);
|
|
2984
|
-
}
|
|
2985
3057
|
function toByteArray_0(_this__u8e3s4, charset) {
|
|
2986
|
-
charset = charset === VOID ? Charsets_getInstance().
|
|
2987
|
-
if (charset.equals(Charsets_getInstance().
|
|
2988
|
-
return encodeToByteArray(_this__u8e3s4
|
|
2989
|
-
return encodeToByteArray_0(charset.
|
|
3058
|
+
charset = charset === VOID ? Charsets_getInstance().n3u_1 : charset;
|
|
3059
|
+
if (charset.equals(Charsets_getInstance().n3u_1))
|
|
3060
|
+
return encodeToByteArray(_this__u8e3s4);
|
|
3061
|
+
return encodeToByteArray_0(charset.q3u(), _this__u8e3s4, 0, _this__u8e3s4.length);
|
|
2990
3062
|
}
|
|
2991
3063
|
function writeText(_this__u8e3s4, text, fromIndex, toIndex, charset) {
|
|
2992
3064
|
fromIndex = fromIndex === VOID ? 0 : fromIndex;
|
|
2993
3065
|
toIndex = toIndex === VOID ? charSequenceLength(text) : toIndex;
|
|
2994
|
-
charset = charset === VOID ? Charsets_getInstance().
|
|
2995
|
-
if (charset === Charsets_getInstance().
|
|
3066
|
+
charset = charset === VOID ? Charsets_getInstance().n3u_1 : charset;
|
|
3067
|
+
if (charset === Charsets_getInstance().n3u_1) {
|
|
2996
3068
|
return writeString(_this__u8e3s4, toString_1(text), fromIndex, toIndex);
|
|
2997
3069
|
}
|
|
2998
|
-
encodeToImpl(charset.
|
|
3070
|
+
encodeToImpl(charset.q3u(), _this__u8e3s4, text, fromIndex, toIndex);
|
|
2999
3071
|
}
|
|
3000
3072
|
function get_ByteArrayPool() {
|
|
3001
3073
|
_init_properties_ByteArrayPool_kt__kfi3uj();
|
|
@@ -3005,7 +3077,7 @@ var ByteArrayPool;
|
|
|
3005
3077
|
function ByteArrayPool$1() {
|
|
3006
3078
|
DefaultPool.call(this, 128);
|
|
3007
3079
|
}
|
|
3008
|
-
protoOf(ByteArrayPool$1).
|
|
3080
|
+
protoOf(ByteArrayPool$1).u3u = function () {
|
|
3009
3081
|
return new Int8Array(4096);
|
|
3010
3082
|
};
|
|
3011
3083
|
var properties_initialized_ByteArrayPool_kt_td6pfh;
|
|
@@ -3019,7 +3091,7 @@ function ObjectPool() {
|
|
|
3019
3091
|
}
|
|
3020
3092
|
function NoPoolImpl() {
|
|
3021
3093
|
}
|
|
3022
|
-
protoOf(NoPoolImpl).
|
|
3094
|
+
protoOf(NoPoolImpl).c3v = function (instance) {
|
|
3023
3095
|
return Unit_instance;
|
|
3024
3096
|
};
|
|
3025
3097
|
protoOf(NoPoolImpl).u1p = function () {
|
|
@@ -3027,13 +3099,13 @@ protoOf(NoPoolImpl).u1p = function () {
|
|
|
3027
3099
|
};
|
|
3028
3100
|
function Companion_3() {
|
|
3029
3101
|
}
|
|
3030
|
-
protoOf(Companion_3).
|
|
3102
|
+
protoOf(Companion_3).d3v = function (name) {
|
|
3031
3103
|
switch (name) {
|
|
3032
3104
|
case 'UTF-8':
|
|
3033
3105
|
case 'utf-8':
|
|
3034
3106
|
case 'UTF8':
|
|
3035
3107
|
case 'utf8':
|
|
3036
|
-
return Charsets_getInstance().
|
|
3108
|
+
return Charsets_getInstance().n3u_1;
|
|
3037
3109
|
}
|
|
3038
3110
|
var tmp;
|
|
3039
3111
|
var tmp_0;
|
|
@@ -3064,7 +3136,7 @@ protoOf(Companion_3).z3t = function (name) {
|
|
|
3064
3136
|
tmp = name === 'latin1' || name === 'Latin1';
|
|
3065
3137
|
}
|
|
3066
3138
|
if (tmp) {
|
|
3067
|
-
return Charsets_getInstance().
|
|
3139
|
+
return Charsets_getInstance().o3u_1;
|
|
3068
3140
|
}
|
|
3069
3141
|
throw IllegalArgumentException_init_$Create$('Charset ' + name + ' is not supported');
|
|
3070
3142
|
};
|
|
@@ -3073,7 +3145,7 @@ function Companion_getInstance_3() {
|
|
|
3073
3145
|
return Companion_instance_4;
|
|
3074
3146
|
}
|
|
3075
3147
|
function Charset(_name) {
|
|
3076
|
-
this.
|
|
3148
|
+
this.p3u_1 = _name;
|
|
3077
3149
|
}
|
|
3078
3150
|
protoOf(Charset).equals = function (other) {
|
|
3079
3151
|
if (this === other)
|
|
@@ -3082,18 +3154,18 @@ protoOf(Charset).equals = function (other) {
|
|
|
3082
3154
|
return false;
|
|
3083
3155
|
if (!(other instanceof Charset))
|
|
3084
3156
|
THROW_CCE();
|
|
3085
|
-
return this.
|
|
3157
|
+
return this.p3u_1 === other.p3u_1;
|
|
3086
3158
|
};
|
|
3087
3159
|
protoOf(Charset).hashCode = function () {
|
|
3088
|
-
return getStringHashCode(this.
|
|
3160
|
+
return getStringHashCode(this.p3u_1);
|
|
3089
3161
|
};
|
|
3090
3162
|
protoOf(Charset).toString = function () {
|
|
3091
|
-
return this.
|
|
3163
|
+
return this.p3u_1;
|
|
3092
3164
|
};
|
|
3093
3165
|
function Charsets() {
|
|
3094
3166
|
Charsets_instance = this;
|
|
3095
|
-
this.
|
|
3096
|
-
this.
|
|
3167
|
+
this.n3u_1 = new CharsetImpl('UTF-8');
|
|
3168
|
+
this.o3u_1 = new CharsetImpl('ISO-8859-1');
|
|
3097
3169
|
}
|
|
3098
3170
|
var Charsets_instance;
|
|
3099
3171
|
function Charsets_getInstance() {
|
|
@@ -3102,24 +3174,24 @@ function Charsets_getInstance() {
|
|
|
3102
3174
|
return Charsets_instance;
|
|
3103
3175
|
}
|
|
3104
3176
|
function get_name(_this__u8e3s4) {
|
|
3105
|
-
return _this__u8e3s4.
|
|
3177
|
+
return _this__u8e3s4.p3u_1;
|
|
3106
3178
|
}
|
|
3107
3179
|
function MalformedInputException(message) {
|
|
3108
3180
|
IOException_init_$Init$_0(message, this);
|
|
3109
3181
|
captureStack(this, MalformedInputException);
|
|
3110
3182
|
}
|
|
3111
3183
|
function CharsetDecoder(_charset) {
|
|
3112
|
-
this.
|
|
3184
|
+
this.f3v_1 = _charset;
|
|
3113
3185
|
}
|
|
3114
3186
|
function forName(_this__u8e3s4, name) {
|
|
3115
|
-
return Companion_instance_4.
|
|
3187
|
+
return Companion_instance_4.d3v(name);
|
|
3116
3188
|
}
|
|
3117
3189
|
function CharsetEncoder(_charset) {
|
|
3118
|
-
this.
|
|
3190
|
+
this.g3v_1 = _charset;
|
|
3119
3191
|
}
|
|
3120
3192
|
function decode_0(_this__u8e3s4, input, dst, max) {
|
|
3121
3193
|
var decoder = Decoder(get_name(get_charset(_this__u8e3s4)), true);
|
|
3122
|
-
var tmp0 = input.
|
|
3194
|
+
var tmp0 = input.v3f().e1();
|
|
3123
3195
|
// Inline function 'kotlin.comparisons.minOf' call
|
|
3124
3196
|
var b = fromInt(max);
|
|
3125
3197
|
var count = compare(tmp0, b) <= 0 ? tmp0 : b;
|
|
@@ -3129,7 +3201,7 @@ function decode_0(_this__u8e3s4, input, dst, max) {
|
|
|
3129
3201
|
// Inline function 'org.khronos.webgl.toInt8Array' call
|
|
3130
3202
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
3131
3203
|
// Inline function 'kotlin.js.asDynamic' call
|
|
3132
|
-
tmp = decoder.
|
|
3204
|
+
tmp = decoder.h3v(array);
|
|
3133
3205
|
} catch ($p) {
|
|
3134
3206
|
var tmp_0;
|
|
3135
3207
|
if ($p instanceof Error) {
|
|
@@ -3151,11 +3223,11 @@ function encodeImpl(_this__u8e3s4, input, fromIndex, toIndex, dst) {
|
|
|
3151
3223
|
var message = 'Failed requirement.';
|
|
3152
3224
|
throw IllegalArgumentException_init_$Create$(toString_1(message));
|
|
3153
3225
|
}
|
|
3154
|
-
if (get_charset_0(_this__u8e3s4).equals(Charsets_getInstance().
|
|
3226
|
+
if (get_charset_0(_this__u8e3s4).equals(Charsets_getInstance().o3u_1)) {
|
|
3155
3227
|
return encodeISO88591(input, fromIndex, toIndex, dst);
|
|
3156
3228
|
}
|
|
3157
3229
|
// Inline function 'kotlin.require' call
|
|
3158
|
-
if (!(get_charset_0(_this__u8e3s4) === Charsets_getInstance().
|
|
3230
|
+
if (!(get_charset_0(_this__u8e3s4) === Charsets_getInstance().n3u_1)) {
|
|
3159
3231
|
var message_0 = 'Only UTF-8 encoding is supported in JS';
|
|
3160
3232
|
throw IllegalArgumentException_init_$Create$(toString_1(message_0));
|
|
3161
3233
|
}
|
|
@@ -3165,7 +3237,7 @@ function encodeImpl(_this__u8e3s4, input, fromIndex, toIndex, dst) {
|
|
|
3165
3237
|
var result = encoder.encode(tmp$ret$5);
|
|
3166
3238
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
3167
3239
|
// Inline function 'kotlin.js.asDynamic' call
|
|
3168
|
-
dst.
|
|
3240
|
+
dst.i3h(result);
|
|
3169
3241
|
return result.length;
|
|
3170
3242
|
}
|
|
3171
3243
|
function encodeToByteArray_0(_this__u8e3s4, input, fromIndex, toIndex) {
|
|
@@ -3176,17 +3248,17 @@ function encodeToByteArray_0(_this__u8e3s4, input, fromIndex, toIndex) {
|
|
|
3176
3248
|
function CharsetImpl(name) {
|
|
3177
3249
|
Charset.call(this, name);
|
|
3178
3250
|
}
|
|
3179
|
-
protoOf(CharsetImpl).
|
|
3251
|
+
protoOf(CharsetImpl).q3u = function () {
|
|
3180
3252
|
return new CharsetEncoderImpl(this);
|
|
3181
3253
|
};
|
|
3182
|
-
protoOf(CharsetImpl).
|
|
3254
|
+
protoOf(CharsetImpl).e3v = function () {
|
|
3183
3255
|
return new CharsetDecoderImpl(this);
|
|
3184
3256
|
};
|
|
3185
3257
|
function get_charset(_this__u8e3s4) {
|
|
3186
|
-
return _this__u8e3s4.
|
|
3258
|
+
return _this__u8e3s4.f3v_1;
|
|
3187
3259
|
}
|
|
3188
3260
|
function get_charset_0(_this__u8e3s4) {
|
|
3189
|
-
return _this__u8e3s4.
|
|
3261
|
+
return _this__u8e3s4.g3v_1;
|
|
3190
3262
|
}
|
|
3191
3263
|
function encodeToByteArrayImpl(_this__u8e3s4, input, fromIndex, toIndex) {
|
|
3192
3264
|
fromIndex = fromIndex === VOID ? 0 : fromIndex;
|
|
@@ -3205,39 +3277,39 @@ function encodeToByteArrayImpl(_this__u8e3s4, input, fromIndex, toIndex) {
|
|
|
3205
3277
|
}
|
|
3206
3278
|
function CharsetEncoderImpl(charset) {
|
|
3207
3279
|
CharsetEncoder.call(this, charset);
|
|
3208
|
-
this.
|
|
3280
|
+
this.k3v_1 = charset;
|
|
3209
3281
|
}
|
|
3210
3282
|
protoOf(CharsetEncoderImpl).toString = function () {
|
|
3211
|
-
return 'CharsetEncoderImpl(charset=' + this.
|
|
3283
|
+
return 'CharsetEncoderImpl(charset=' + this.k3v_1.toString() + ')';
|
|
3212
3284
|
};
|
|
3213
3285
|
protoOf(CharsetEncoderImpl).hashCode = function () {
|
|
3214
|
-
return this.
|
|
3286
|
+
return this.k3v_1.hashCode();
|
|
3215
3287
|
};
|
|
3216
3288
|
protoOf(CharsetEncoderImpl).equals = function (other) {
|
|
3217
3289
|
if (this === other)
|
|
3218
3290
|
return true;
|
|
3219
3291
|
if (!(other instanceof CharsetEncoderImpl))
|
|
3220
3292
|
return false;
|
|
3221
|
-
if (!this.
|
|
3293
|
+
if (!this.k3v_1.equals(other.k3v_1))
|
|
3222
3294
|
return false;
|
|
3223
3295
|
return true;
|
|
3224
3296
|
};
|
|
3225
3297
|
function CharsetDecoderImpl(charset) {
|
|
3226
3298
|
CharsetDecoder.call(this, charset);
|
|
3227
|
-
this.
|
|
3299
|
+
this.m3v_1 = charset;
|
|
3228
3300
|
}
|
|
3229
3301
|
protoOf(CharsetDecoderImpl).toString = function () {
|
|
3230
|
-
return 'CharsetDecoderImpl(charset=' + this.
|
|
3302
|
+
return 'CharsetDecoderImpl(charset=' + this.m3v_1.toString() + ')';
|
|
3231
3303
|
};
|
|
3232
3304
|
protoOf(CharsetDecoderImpl).hashCode = function () {
|
|
3233
|
-
return this.
|
|
3305
|
+
return this.m3v_1.hashCode();
|
|
3234
3306
|
};
|
|
3235
3307
|
protoOf(CharsetDecoderImpl).equals = function (other) {
|
|
3236
3308
|
if (this === other)
|
|
3237
3309
|
return true;
|
|
3238
3310
|
if (!(other instanceof CharsetDecoderImpl))
|
|
3239
3311
|
return false;
|
|
3240
|
-
if (!this.
|
|
3312
|
+
if (!this.m3v_1.equals(other.m3v_1))
|
|
3241
3313
|
return false;
|
|
3242
3314
|
return true;
|
|
3243
3315
|
};
|
|
@@ -3271,10 +3343,10 @@ function textDecoderOptions(fatal) {
|
|
|
3271
3343
|
return this_0;
|
|
3272
3344
|
}
|
|
3273
3345
|
function toKtor$1($this_toKtor) {
|
|
3274
|
-
this.
|
|
3346
|
+
this.n3v_1 = $this_toKtor;
|
|
3275
3347
|
}
|
|
3276
|
-
protoOf(toKtor$1).
|
|
3277
|
-
return this.
|
|
3348
|
+
protoOf(toKtor$1).h3v = function (buffer) {
|
|
3349
|
+
return this.n3v_1.decode(buffer);
|
|
3278
3350
|
};
|
|
3279
3351
|
function get_ENCODING_ALIASES() {
|
|
3280
3352
|
_init_properties_TextDecoderFallback_js_kt__an7r6m();
|
|
@@ -3287,7 +3359,7 @@ function get_REPLACEMENT() {
|
|
|
3287
3359
|
}
|
|
3288
3360
|
var REPLACEMENT;
|
|
3289
3361
|
function TextDecoderFallback(encoding, fatal) {
|
|
3290
|
-
this.
|
|
3362
|
+
this.o3v_1 = fatal;
|
|
3291
3363
|
// Inline function 'kotlin.text.trim' call
|
|
3292
3364
|
// Inline function 'kotlin.text.lowercase' call
|
|
3293
3365
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -3298,7 +3370,7 @@ function TextDecoderFallback(encoding, fatal) {
|
|
|
3298
3370
|
throw IllegalStateException_init_$Create$(toString_1(message));
|
|
3299
3371
|
}
|
|
3300
3372
|
}
|
|
3301
|
-
protoOf(TextDecoderFallback).
|
|
3373
|
+
protoOf(TextDecoderFallback).h3v = function (buffer) {
|
|
3302
3374
|
// Inline function 'io.ktor.utils.io.core.buildPacket' call
|
|
3303
3375
|
var builder = new Buffer();
|
|
3304
3376
|
var bytes = buffer instanceof Int8Array ? buffer : THROW_CCE();
|
|
@@ -3314,7 +3386,7 @@ protoOf(TextDecoderFallback).c3u = function (buffer) {
|
|
|
3314
3386
|
var point = toCodePoint(byte);
|
|
3315
3387
|
if (point < 0) {
|
|
3316
3388
|
// Inline function 'kotlin.check' call
|
|
3317
|
-
if (!!this.
|
|
3389
|
+
if (!!this.o3v_1) {
|
|
3318
3390
|
var message = 'Invalid character: ' + point;
|
|
3319
3391
|
throw IllegalStateException_init_$Create$(toString_1(message));
|
|
3320
3392
|
}
|
|
@@ -3322,9 +3394,9 @@ protoOf(TextDecoderFallback).c3u = function (buffer) {
|
|
|
3322
3394
|
continue $l$loop;
|
|
3323
3395
|
}
|
|
3324
3396
|
if (point > 255) {
|
|
3325
|
-
builder.
|
|
3397
|
+
builder.p3h(toByte(point >> 8));
|
|
3326
3398
|
}
|
|
3327
|
-
builder.
|
|
3399
|
+
builder.p3h(toByte(point & 255));
|
|
3328
3400
|
}
|
|
3329
3401
|
while (inductionVariable < last);
|
|
3330
3402
|
return decodeToString(readByteArray_0(builder));
|
|
@@ -3350,6 +3422,20 @@ function _init_properties_TextDecoderFallback_js_kt__an7r6m() {
|
|
|
3350
3422
|
REPLACEMENT = new Int8Array([-17, -65, -67]);
|
|
3351
3423
|
}
|
|
3352
3424
|
}
|
|
3425
|
+
function readText_0(_this__u8e3s4, charset, max) {
|
|
3426
|
+
charset = charset === VOID ? Charsets_getInstance().n3u_1 : charset;
|
|
3427
|
+
max = max === VOID ? 2147483647 : max;
|
|
3428
|
+
if (charset.equals(Charsets_getInstance().n3u_1)) {
|
|
3429
|
+
if (max === 2147483647)
|
|
3430
|
+
return readString_1(_this__u8e3s4);
|
|
3431
|
+
var tmp0 = _this__u8e3s4.v3f().e1();
|
|
3432
|
+
// Inline function 'kotlin.math.min' call
|
|
3433
|
+
var b = fromInt(max);
|
|
3434
|
+
var count = compare(tmp0, b) <= 0 ? tmp0 : b;
|
|
3435
|
+
return readString(_this__u8e3s4, count);
|
|
3436
|
+
}
|
|
3437
|
+
return decode(charset.e3v(), _this__u8e3s4, max);
|
|
3438
|
+
}
|
|
3353
3439
|
function get_DEVELOPMENT_MODE() {
|
|
3354
3440
|
return false;
|
|
3355
3441
|
}
|
|
@@ -3370,7 +3456,7 @@ function encodeISO88591(input, fromIndex, toIndex, dst) {
|
|
|
3370
3456
|
if (character > 255) {
|
|
3371
3457
|
failedToMapError(character);
|
|
3372
3458
|
}
|
|
3373
|
-
dst.
|
|
3459
|
+
dst.p3h(toByte(character));
|
|
3374
3460
|
}
|
|
3375
3461
|
while (inductionVariable < toIndex);
|
|
3376
3462
|
return toIndex - fromIndex | 0;
|
|
@@ -3392,64 +3478,64 @@ function _init_properties_Win1252Table_kt__tl0v64() {
|
|
|
3392
3478
|
}
|
|
3393
3479
|
}
|
|
3394
3480
|
function DefaultPool(capacity) {
|
|
3395
|
-
this.
|
|
3481
|
+
this.v3u_1 = capacity;
|
|
3396
3482
|
var tmp = this;
|
|
3397
3483
|
// Inline function 'kotlin.arrayOfNulls' call
|
|
3398
|
-
var size = this.
|
|
3399
|
-
tmp.
|
|
3400
|
-
this.
|
|
3484
|
+
var size = this.v3u_1;
|
|
3485
|
+
tmp.w3u_1 = Array(size);
|
|
3486
|
+
this.x3u_1 = 0;
|
|
3401
3487
|
}
|
|
3402
|
-
protoOf(DefaultPool).
|
|
3488
|
+
protoOf(DefaultPool).y3u = function (instance) {
|
|
3403
3489
|
};
|
|
3404
|
-
protoOf(DefaultPool).
|
|
3490
|
+
protoOf(DefaultPool).z3u = function (instance) {
|
|
3405
3491
|
return instance;
|
|
3406
3492
|
};
|
|
3407
|
-
protoOf(DefaultPool).
|
|
3493
|
+
protoOf(DefaultPool).a3v = function (instance) {
|
|
3408
3494
|
};
|
|
3409
|
-
protoOf(DefaultPool).
|
|
3410
|
-
if (this.
|
|
3411
|
-
return this.
|
|
3412
|
-
this.
|
|
3413
|
-
var idx = this.
|
|
3414
|
-
var tmp = this.
|
|
3495
|
+
protoOf(DefaultPool).b3v = function () {
|
|
3496
|
+
if (this.x3u_1 === 0)
|
|
3497
|
+
return this.u3u();
|
|
3498
|
+
this.x3u_1 = this.x3u_1 - 1 | 0;
|
|
3499
|
+
var idx = this.x3u_1;
|
|
3500
|
+
var tmp = this.w3u_1[idx];
|
|
3415
3501
|
var instance = !(tmp == null) ? tmp : THROW_CCE();
|
|
3416
|
-
this.
|
|
3417
|
-
return this.
|
|
3502
|
+
this.w3u_1[idx] = null;
|
|
3503
|
+
return this.z3u(instance);
|
|
3418
3504
|
};
|
|
3419
|
-
protoOf(DefaultPool).
|
|
3420
|
-
this.
|
|
3421
|
-
if (this.
|
|
3422
|
-
this.
|
|
3505
|
+
protoOf(DefaultPool).c3v = function (instance) {
|
|
3506
|
+
this.a3v(instance);
|
|
3507
|
+
if (this.x3u_1 === this.v3u_1) {
|
|
3508
|
+
this.y3u(instance);
|
|
3423
3509
|
} else {
|
|
3424
|
-
var _unary__edvuaz = this.
|
|
3425
|
-
this.
|
|
3426
|
-
this.
|
|
3510
|
+
var _unary__edvuaz = this.x3u_1;
|
|
3511
|
+
this.x3u_1 = _unary__edvuaz + 1 | 0;
|
|
3512
|
+
this.w3u_1[_unary__edvuaz] = instance;
|
|
3427
3513
|
}
|
|
3428
3514
|
};
|
|
3429
3515
|
protoOf(DefaultPool).u1p = function () {
|
|
3430
3516
|
var inductionVariable = 0;
|
|
3431
|
-
var last = this.
|
|
3517
|
+
var last = this.x3u_1;
|
|
3432
3518
|
if (inductionVariable < last)
|
|
3433
3519
|
do {
|
|
3434
3520
|
var i = inductionVariable;
|
|
3435
3521
|
inductionVariable = inductionVariable + 1 | 0;
|
|
3436
|
-
var tmp = this.
|
|
3522
|
+
var tmp = this.w3u_1[i];
|
|
3437
3523
|
var instance = !(tmp == null) ? tmp : THROW_CCE();
|
|
3438
|
-
this.
|
|
3439
|
-
this.
|
|
3524
|
+
this.w3u_1[i] = null;
|
|
3525
|
+
this.y3u(instance);
|
|
3440
3526
|
}
|
|
3441
3527
|
while (inductionVariable < last);
|
|
3442
|
-
this.
|
|
3528
|
+
this.x3u_1 = 0;
|
|
3443
3529
|
};
|
|
3444
3530
|
//region block: post-declaration
|
|
3445
|
-
protoOf(Read).
|
|
3446
|
-
protoOf(Read).
|
|
3447
|
-
protoOf(Write).
|
|
3448
|
-
protoOf(Write).
|
|
3449
|
-
protoOf(ByteChannel).
|
|
3450
|
-
protoOf(ByteReadChannel$Companion$Empty$1).
|
|
3451
|
-
protoOf(CountedByteReadChannel).
|
|
3452
|
-
protoOf(SourceByteReadChannel).
|
|
3531
|
+
protoOf(Read).a3j = resume;
|
|
3532
|
+
protoOf(Read).b3j = resume_0;
|
|
3533
|
+
protoOf(Write).a3j = resume;
|
|
3534
|
+
protoOf(Write).b3j = resume_0;
|
|
3535
|
+
protoOf(ByteChannel).g3l = awaitContent$default;
|
|
3536
|
+
protoOf(ByteReadChannel$Companion$Empty$1).g3l = awaitContent$default;
|
|
3537
|
+
protoOf(CountedByteReadChannel).g3l = awaitContent$default;
|
|
3538
|
+
protoOf(SourceByteReadChannel).g3l = awaitContent$default;
|
|
3453
3539
|
protoOf(DefaultPool).d4 = close;
|
|
3454
3540
|
protoOf(NoPoolImpl).d4 = close;
|
|
3455
3541
|
//endregion
|