@dmarket/p2p-tracker-core 1.2.1-SNAPSHOT-development.152 → 1.2.1-SNAPSHOT-development.156
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 +3006 -2994
- package/dmarket-p2p-tracker-core-domain.mjs.map +1 -1
- package/kotlin-kotlin-stdlib.mjs +4 -4
- package/kotlinx-io-kotlinx-io-bytestring.mjs +30 -30
- package/kotlinx-io-kotlinx-io-core.mjs +450 -450
- package/ktor-ktor-client-core.mjs +1852 -1852
- package/ktor-ktor-events.mjs +5 -5
- package/ktor-ktor-http-cio.mjs +311 -311
- package/ktor-ktor-http.mjs +625 -625
- package/ktor-ktor-io.mjs +600 -600
- package/ktor-ktor-utils.mjs +651 -651
- package/ktor-ktor-websockets.mjs +365 -365
- package/p2p-tracker-core.d.mts +3 -2
- package/p2p-tracker-core.mjs +7510 -7221
- package/p2p-tracker-core.mjs.map +1 -1
- package/package.json +1 -1
package/ktor-ktor-io.mjs
CHANGED
|
@@ -106,10 +106,10 @@ initMetadataForCompanion(Companion);
|
|
|
106
106
|
initMetadataForObject(Empty, 'Empty');
|
|
107
107
|
initMetadataForClass(Closed, 'Closed');
|
|
108
108
|
function resume() {
|
|
109
|
-
return this.
|
|
109
|
+
return this.s3q().m9(Companion_getInstance().p3q_1);
|
|
110
110
|
}
|
|
111
111
|
function resume_0(throwable) {
|
|
112
|
-
var tmp = this.
|
|
112
|
+
var tmp = this.s3q();
|
|
113
113
|
var tmp_0;
|
|
114
114
|
if (throwable == null) {
|
|
115
115
|
tmp_0 = null;
|
|
@@ -120,7 +120,7 @@ function resume_0(throwable) {
|
|
|
120
120
|
tmp_0 = new Result(tmp$ret$0);
|
|
121
121
|
}
|
|
122
122
|
var tmp1_elvis_lhs = tmp_0;
|
|
123
|
-
return tmp.m9(tmp1_elvis_lhs == null ? Companion_getInstance().
|
|
123
|
+
return tmp.m9(tmp1_elvis_lhs == null ? Companion_getInstance().p3q_1 : tmp1_elvis_lhs.lq_1);
|
|
124
124
|
}
|
|
125
125
|
initMetadataForInterface(Task, 'Task');
|
|
126
126
|
initMetadataForClass(Read, 'Read', VOID, VOID, [Task]);
|
|
@@ -131,7 +131,7 @@ initMetadataForCoroutine($flushCOROUTINE$, CoroutineImpl);
|
|
|
131
131
|
initMetadataForCoroutine($flushAndCloseCOROUTINE$, CoroutineImpl);
|
|
132
132
|
function awaitContent$default(min, $completion, $super) {
|
|
133
133
|
min = min === VOID ? 1 : min;
|
|
134
|
-
return $super === VOID ? this.
|
|
134
|
+
return $super === VOID ? this.z3s(min, $completion) : $super.z3s.call(this, min, $completion);
|
|
135
135
|
}
|
|
136
136
|
initMetadataForInterface(ByteReadChannel_1, 'ByteReadChannel', VOID, VOID, VOID, [1]);
|
|
137
137
|
function get_autoFlush() {
|
|
@@ -195,10 +195,10 @@ initMetadataForClass(TextDecoderFallback, 'TextDecoderFallback');
|
|
|
195
195
|
//endregion
|
|
196
196
|
function Companion() {
|
|
197
197
|
Companion_instance_0 = this;
|
|
198
|
-
this.
|
|
198
|
+
this.o3q_1 = new Closed(null);
|
|
199
199
|
var tmp = this;
|
|
200
200
|
// Inline function 'kotlin.Companion.success' call
|
|
201
|
-
tmp.
|
|
201
|
+
tmp.p3q_1 = _Result___init__impl__xyqfz8(Unit_instance);
|
|
202
202
|
}
|
|
203
203
|
var Companion_instance_0;
|
|
204
204
|
function Companion_getInstance() {
|
|
@@ -226,67 +226,67 @@ function Empty_getInstance() {
|
|
|
226
226
|
return Empty_instance;
|
|
227
227
|
}
|
|
228
228
|
function Closed(cause) {
|
|
229
|
-
this.
|
|
229
|
+
this.q3q_1 = cause;
|
|
230
230
|
}
|
|
231
231
|
protoOf(Closed).toString = function () {
|
|
232
|
-
return 'Closed(cause=' + toString(this.
|
|
232
|
+
return 'Closed(cause=' + toString(this.q3q_1) + ')';
|
|
233
233
|
};
|
|
234
234
|
protoOf(Closed).hashCode = function () {
|
|
235
|
-
return this.
|
|
235
|
+
return this.q3q_1 == null ? 0 : hashCode(this.q3q_1);
|
|
236
236
|
};
|
|
237
237
|
protoOf(Closed).equals = function (other) {
|
|
238
238
|
if (this === other)
|
|
239
239
|
return true;
|
|
240
240
|
if (!(other instanceof Closed))
|
|
241
241
|
return false;
|
|
242
|
-
if (!equals(this.
|
|
242
|
+
if (!equals(this.q3q_1, other.q3q_1))
|
|
243
243
|
return false;
|
|
244
244
|
return true;
|
|
245
245
|
};
|
|
246
246
|
function Task() {
|
|
247
247
|
}
|
|
248
248
|
function Read(continuation) {
|
|
249
|
-
this.
|
|
250
|
-
this.
|
|
249
|
+
this.w3q_1 = continuation;
|
|
250
|
+
this.x3q_1 = null;
|
|
251
251
|
if (get_DEVELOPMENT_MODE()) {
|
|
252
252
|
var tmp = this;
|
|
253
253
|
// Inline function 'kotlin.also' call
|
|
254
|
-
var this_0 = newThrowable('ReadTask 0x' + toString_0(hashCode(this.
|
|
254
|
+
var this_0 = newThrowable('ReadTask 0x' + toString_0(hashCode(this.w3q_1), 16));
|
|
255
255
|
stackTraceToString(this_0);
|
|
256
|
-
tmp.
|
|
256
|
+
tmp.x3q_1 = this_0;
|
|
257
257
|
}
|
|
258
258
|
}
|
|
259
|
-
protoOf(Read).
|
|
260
|
-
return this.
|
|
261
|
-
};
|
|
262
|
-
protoOf(Read).p3q = function () {
|
|
263
|
-
return this.v3q_1;
|
|
259
|
+
protoOf(Read).s3q = function () {
|
|
260
|
+
return this.w3q_1;
|
|
264
261
|
};
|
|
265
262
|
protoOf(Read).r3q = function () {
|
|
263
|
+
return this.x3q_1;
|
|
264
|
+
};
|
|
265
|
+
protoOf(Read).t3q = function () {
|
|
266
266
|
return 'read';
|
|
267
267
|
};
|
|
268
268
|
function Write(continuation) {
|
|
269
|
-
this.
|
|
270
|
-
this.
|
|
269
|
+
this.y3q_1 = continuation;
|
|
270
|
+
this.z3q_1 = null;
|
|
271
271
|
if (get_DEVELOPMENT_MODE()) {
|
|
272
272
|
var tmp = this;
|
|
273
273
|
// Inline function 'kotlin.also' call
|
|
274
|
-
var this_0 = newThrowable('WriteTask 0x' + toString_0(hashCode(this.
|
|
274
|
+
var this_0 = newThrowable('WriteTask 0x' + toString_0(hashCode(this.y3q_1), 16));
|
|
275
275
|
stackTraceToString(this_0);
|
|
276
|
-
tmp.
|
|
276
|
+
tmp.z3q_1 = this_0;
|
|
277
277
|
}
|
|
278
278
|
}
|
|
279
|
-
protoOf(Write).
|
|
280
|
-
return this.
|
|
281
|
-
};
|
|
282
|
-
protoOf(Write).p3q = function () {
|
|
283
|
-
return this.x3q_1;
|
|
279
|
+
protoOf(Write).s3q = function () {
|
|
280
|
+
return this.y3q_1;
|
|
284
281
|
};
|
|
285
282
|
protoOf(Write).r3q = function () {
|
|
283
|
+
return this.z3q_1;
|
|
284
|
+
};
|
|
285
|
+
protoOf(Write).t3q = function () {
|
|
286
286
|
return 'write';
|
|
287
287
|
};
|
|
288
288
|
function rethrowCloseCauseIfNeeded($this) {
|
|
289
|
-
var tmp0_safe_receiver = $this.
|
|
289
|
+
var tmp0_safe_receiver = $this.j3r();
|
|
290
290
|
if (tmp0_safe_receiver == null)
|
|
291
291
|
null;
|
|
292
292
|
else {
|
|
@@ -296,41 +296,41 @@ function rethrowCloseCauseIfNeeded($this) {
|
|
|
296
296
|
}
|
|
297
297
|
function moveFlushToReadBuffer($this) {
|
|
298
298
|
// Inline function 'io.ktor.utils.io.locks.synchronized' call
|
|
299
|
-
$this.
|
|
300
|
-
$this.
|
|
301
|
-
$this.
|
|
299
|
+
$this.d3r_1;
|
|
300
|
+
$this.b3r_1.t3o($this.f3r_1);
|
|
301
|
+
$this.c3r_1 = 0;
|
|
302
302
|
// Inline function 'io.ktor.utils.io.ByteChannel.resumeSlot' call
|
|
303
|
-
var current = $this.
|
|
303
|
+
var current = $this.e3r_1.kotlinx$atomicfu$value;
|
|
304
304
|
var tmp;
|
|
305
305
|
if (current instanceof Write) {
|
|
306
|
-
tmp = $this.
|
|
306
|
+
tmp = $this.e3r_1.atomicfu$compareAndSet(current, Empty_instance);
|
|
307
307
|
} else {
|
|
308
308
|
tmp = false;
|
|
309
309
|
}
|
|
310
310
|
if (tmp) {
|
|
311
|
-
current.
|
|
311
|
+
current.u3q();
|
|
312
312
|
}
|
|
313
313
|
}
|
|
314
314
|
function closeSlot($this, cause) {
|
|
315
|
-
var closeContinuation = !(cause == null) ? new Closed(cause) : Companion_getInstance().
|
|
316
|
-
var continuation = $this.
|
|
315
|
+
var closeContinuation = !(cause == null) ? new Closed(cause) : Companion_getInstance().o3q_1;
|
|
316
|
+
var continuation = $this.e3r_1.atomicfu$getAndSet(closeContinuation);
|
|
317
317
|
if (isInterface(continuation, Task)) {
|
|
318
|
-
continuation.
|
|
318
|
+
continuation.v3q(cause);
|
|
319
319
|
}
|
|
320
|
-
var tmp0_safe_receiver = $this.
|
|
320
|
+
var tmp0_safe_receiver = $this.i3r_1.atomicfu$getAndSet(null);
|
|
321
321
|
if (tmp0_safe_receiver == null)
|
|
322
322
|
null;
|
|
323
323
|
else
|
|
324
324
|
tmp0_safe_receiver(cause);
|
|
325
325
|
}
|
|
326
326
|
function sam$kotlinx_coroutines_DisposableHandle$0(function_0) {
|
|
327
|
-
this.
|
|
327
|
+
this.k3r_1 = function_0;
|
|
328
328
|
}
|
|
329
329
|
protoOf(sam$kotlinx_coroutines_DisposableHandle$0).i1s = function () {
|
|
330
|
-
return this.
|
|
330
|
+
return this.k3r_1();
|
|
331
331
|
};
|
|
332
332
|
protoOf(sam$kotlinx_coroutines_DisposableHandle$0).r3 = function () {
|
|
333
|
-
return this.
|
|
333
|
+
return this.k3r_1;
|
|
334
334
|
};
|
|
335
335
|
protoOf(sam$kotlinx_coroutines_DisposableHandle$0).equals = function (other) {
|
|
336
336
|
var tmp;
|
|
@@ -358,14 +358,14 @@ function ByteChannel$invokeOnClose$lambda_0() {
|
|
|
358
358
|
}
|
|
359
359
|
function ByteChannel$invokeOnClose$lambda_1(this$0, $handler) {
|
|
360
360
|
return function () {
|
|
361
|
-
this$0.
|
|
361
|
+
this$0.i3r_1.atomicfu$compareAndSet($handler, null);
|
|
362
362
|
return Unit_instance;
|
|
363
363
|
};
|
|
364
364
|
}
|
|
365
365
|
function $awaitContentCOROUTINE$(_this__u8e3s4, min, resultContinuation) {
|
|
366
366
|
CoroutineImpl.call(this, resultContinuation);
|
|
367
|
-
this.
|
|
368
|
-
this.
|
|
367
|
+
this.t3r_1 = _this__u8e3s4;
|
|
368
|
+
this.u3r_1 = min;
|
|
369
369
|
}
|
|
370
370
|
protoOf($awaitContentCOROUTINE$).j9 = function () {
|
|
371
371
|
var suspendResult = this.d9_1;
|
|
@@ -375,14 +375,14 @@ protoOf($awaitContentCOROUTINE$).j9 = function () {
|
|
|
375
375
|
switch (tmp) {
|
|
376
376
|
case 0:
|
|
377
377
|
this.c9_1 = 4;
|
|
378
|
-
rethrowCloseCauseIfNeeded(this.
|
|
379
|
-
if (compare(this.
|
|
378
|
+
rethrowCloseCauseIfNeeded(this.t3r_1);
|
|
379
|
+
if (compare(this.t3r_1.f3r_1.e1(), fromInt(this.u3r_1)) >= 0)
|
|
380
380
|
return true;
|
|
381
|
-
this.
|
|
381
|
+
this.v3r_1 = this.t3r_1;
|
|
382
382
|
this.b9_1 = 1;
|
|
383
383
|
continue $sm;
|
|
384
384
|
case 1:
|
|
385
|
-
if (!(compare(add(numberToLong(this.
|
|
385
|
+
if (!(compare(add(numberToLong(this.t3r_1.c3r_1), this.t3r_1.f3r_1.e1()), fromInt(this.u3r_1)) < 0 && this.t3r_1.h3r_1.kotlinx$atomicfu$value == null)) {
|
|
386
386
|
this.b9_1 = 3;
|
|
387
387
|
continue $sm;
|
|
388
388
|
}
|
|
@@ -390,24 +390,24 @@ protoOf($awaitContentCOROUTINE$).j9 = function () {
|
|
|
390
390
|
this.b9_1 = 2;
|
|
391
391
|
var cancellable = new CancellableContinuationImpl(intercepted(this), 1);
|
|
392
392
|
cancellable.l1t();
|
|
393
|
-
var tmp0 = this.
|
|
393
|
+
var tmp0 = this.v3r_1;
|
|
394
394
|
var tmp2 = new Read(cancellable);
|
|
395
395
|
l$ret$1: do {
|
|
396
|
-
var previous = tmp0.
|
|
396
|
+
var previous = tmp0.e3r_1.kotlinx$atomicfu$value;
|
|
397
397
|
if (!(previous instanceof Closed)) {
|
|
398
|
-
if (!tmp0.
|
|
399
|
-
tmp2.
|
|
398
|
+
if (!tmp0.e3r_1.atomicfu$compareAndSet(previous, tmp2)) {
|
|
399
|
+
tmp2.u3q();
|
|
400
400
|
break l$ret$1;
|
|
401
401
|
}
|
|
402
402
|
}
|
|
403
403
|
if (previous instanceof Read) {
|
|
404
|
-
previous.
|
|
404
|
+
previous.v3q(new ConcurrentIOException(tmp2.t3q(), previous.r3q()));
|
|
405
405
|
} else {
|
|
406
406
|
if (isInterface(previous, Task)) {
|
|
407
|
-
previous.
|
|
407
|
+
previous.u3q();
|
|
408
408
|
} else {
|
|
409
409
|
if (previous instanceof Closed) {
|
|
410
|
-
tmp2.
|
|
410
|
+
tmp2.v3q(previous.q3q_1);
|
|
411
411
|
break l$ret$1;
|
|
412
412
|
} else {
|
|
413
413
|
if (!equals(previous, Empty_instance)) {
|
|
@@ -416,16 +416,16 @@ protoOf($awaitContentCOROUTINE$).j9 = function () {
|
|
|
416
416
|
}
|
|
417
417
|
}
|
|
418
418
|
}
|
|
419
|
-
if (!(compare(add(numberToLong(this.
|
|
420
|
-
var current = tmp0.
|
|
419
|
+
if (!(compare(add(numberToLong(this.t3r_1.c3r_1), this.t3r_1.f3r_1.e1()), fromInt(this.u3r_1)) < 0 && this.t3r_1.h3r_1.kotlinx$atomicfu$value == null)) {
|
|
420
|
+
var current = tmp0.e3r_1.kotlinx$atomicfu$value;
|
|
421
421
|
var tmp_0;
|
|
422
422
|
if (current instanceof Read) {
|
|
423
|
-
tmp_0 = tmp0.
|
|
423
|
+
tmp_0 = tmp0.e3r_1.atomicfu$compareAndSet(current, Empty_instance);
|
|
424
424
|
} else {
|
|
425
425
|
tmp_0 = false;
|
|
426
426
|
}
|
|
427
427
|
if (tmp_0) {
|
|
428
|
-
current.
|
|
428
|
+
current.u3q();
|
|
429
429
|
}
|
|
430
430
|
}
|
|
431
431
|
}
|
|
@@ -440,12 +440,12 @@ protoOf($awaitContentCOROUTINE$).j9 = function () {
|
|
|
440
440
|
this.b9_1 = 1;
|
|
441
441
|
continue $sm;
|
|
442
442
|
case 3:
|
|
443
|
-
rethrowCloseCauseIfNeeded(this.
|
|
444
|
-
if (compare(this.
|
|
445
|
-
moveFlushToReadBuffer(this.
|
|
443
|
+
rethrowCloseCauseIfNeeded(this.t3r_1);
|
|
444
|
+
if (compare(this.t3r_1.f3r_1.e1(), new Long(1048576, 0)) < 0) {
|
|
445
|
+
moveFlushToReadBuffer(this.t3r_1);
|
|
446
446
|
}
|
|
447
447
|
|
|
448
|
-
return compare(this.
|
|
448
|
+
return compare(this.t3r_1.f3r_1.e1(), fromInt(this.u3r_1)) >= 0;
|
|
449
449
|
case 4:
|
|
450
450
|
throw this.e9_1;
|
|
451
451
|
}
|
|
@@ -462,7 +462,7 @@ protoOf($awaitContentCOROUTINE$).j9 = function () {
|
|
|
462
462
|
};
|
|
463
463
|
function $flushCOROUTINE$(_this__u8e3s4, resultContinuation) {
|
|
464
464
|
CoroutineImpl.call(this, resultContinuation);
|
|
465
|
-
this.
|
|
465
|
+
this.e3s_1 = _this__u8e3s4;
|
|
466
466
|
}
|
|
467
467
|
protoOf($flushCOROUTINE$).j9 = function () {
|
|
468
468
|
var suspendResult = this.d9_1;
|
|
@@ -472,15 +472,15 @@ protoOf($flushCOROUTINE$).j9 = function () {
|
|
|
472
472
|
switch (tmp) {
|
|
473
473
|
case 0:
|
|
474
474
|
this.c9_1 = 4;
|
|
475
|
-
rethrowCloseCauseIfNeeded(this.
|
|
476
|
-
this.
|
|
477
|
-
if (this.
|
|
475
|
+
rethrowCloseCauseIfNeeded(this.e3s_1);
|
|
476
|
+
this.e3s_1.g3s();
|
|
477
|
+
if (this.e3s_1.h3s())
|
|
478
478
|
return Unit_instance;
|
|
479
|
-
this.
|
|
479
|
+
this.f3s_1 = this.e3s_1;
|
|
480
480
|
this.b9_1 = 1;
|
|
481
481
|
continue $sm;
|
|
482
482
|
case 1:
|
|
483
|
-
if (!(!this.
|
|
483
|
+
if (!(!this.e3s_1.h3s() && this.e3s_1.h3r_1.kotlinx$atomicfu$value == null)) {
|
|
484
484
|
this.b9_1 = 3;
|
|
485
485
|
continue $sm;
|
|
486
486
|
}
|
|
@@ -488,24 +488,24 @@ protoOf($flushCOROUTINE$).j9 = function () {
|
|
|
488
488
|
this.b9_1 = 2;
|
|
489
489
|
var cancellable = new CancellableContinuationImpl(intercepted(this), 1);
|
|
490
490
|
cancellable.l1t();
|
|
491
|
-
var tmp0 = this.
|
|
491
|
+
var tmp0 = this.f3s_1;
|
|
492
492
|
var tmp2 = new Write(cancellable);
|
|
493
493
|
l$ret$1: do {
|
|
494
|
-
var previous = tmp0.
|
|
494
|
+
var previous = tmp0.e3r_1.kotlinx$atomicfu$value;
|
|
495
495
|
if (!(previous instanceof Closed)) {
|
|
496
|
-
if (!tmp0.
|
|
497
|
-
tmp2.
|
|
496
|
+
if (!tmp0.e3r_1.atomicfu$compareAndSet(previous, tmp2)) {
|
|
497
|
+
tmp2.u3q();
|
|
498
498
|
break l$ret$1;
|
|
499
499
|
}
|
|
500
500
|
}
|
|
501
501
|
if (previous instanceof Write) {
|
|
502
|
-
previous.
|
|
502
|
+
previous.v3q(new ConcurrentIOException(tmp2.t3q(), previous.r3q()));
|
|
503
503
|
} else {
|
|
504
504
|
if (isInterface(previous, Task)) {
|
|
505
|
-
previous.
|
|
505
|
+
previous.u3q();
|
|
506
506
|
} else {
|
|
507
507
|
if (previous instanceof Closed) {
|
|
508
|
-
tmp2.
|
|
508
|
+
tmp2.v3q(previous.q3q_1);
|
|
509
509
|
break l$ret$1;
|
|
510
510
|
} else {
|
|
511
511
|
if (!equals(previous, Empty_instance)) {
|
|
@@ -514,16 +514,16 @@ protoOf($flushCOROUTINE$).j9 = function () {
|
|
|
514
514
|
}
|
|
515
515
|
}
|
|
516
516
|
}
|
|
517
|
-
if (!(!this.
|
|
518
|
-
var current = tmp0.
|
|
517
|
+
if (!(!this.e3s_1.h3s() && this.e3s_1.h3r_1.kotlinx$atomicfu$value == null)) {
|
|
518
|
+
var current = tmp0.e3r_1.kotlinx$atomicfu$value;
|
|
519
519
|
var tmp_0;
|
|
520
520
|
if (current instanceof Write) {
|
|
521
|
-
tmp_0 = tmp0.
|
|
521
|
+
tmp_0 = tmp0.e3r_1.atomicfu$compareAndSet(current, Empty_instance);
|
|
522
522
|
} else {
|
|
523
523
|
tmp_0 = false;
|
|
524
524
|
}
|
|
525
525
|
if (tmp_0) {
|
|
526
|
-
current.
|
|
526
|
+
current.u3q();
|
|
527
527
|
}
|
|
528
528
|
}
|
|
529
529
|
}
|
|
@@ -555,7 +555,7 @@ protoOf($flushCOROUTINE$).j9 = function () {
|
|
|
555
555
|
};
|
|
556
556
|
function $flushAndCloseCOROUTINE$(_this__u8e3s4, resultContinuation) {
|
|
557
557
|
CoroutineImpl.call(this, resultContinuation);
|
|
558
|
-
this.
|
|
558
|
+
this.q3s_1 = _this__u8e3s4;
|
|
559
559
|
}
|
|
560
560
|
protoOf($flushAndCloseCOROUTINE$).j9 = function () {
|
|
561
561
|
var suspendResult = this.d9_1;
|
|
@@ -565,11 +565,11 @@ protoOf($flushAndCloseCOROUTINE$).j9 = function () {
|
|
|
565
565
|
switch (tmp) {
|
|
566
566
|
case 0:
|
|
567
567
|
this.c9_1 = 4;
|
|
568
|
-
var this_0 = this.
|
|
568
|
+
var this_0 = this.q3s_1;
|
|
569
569
|
this.c9_1 = 2;
|
|
570
|
-
this.
|
|
570
|
+
this.s3s_1 = Companion_instance;
|
|
571
571
|
this.b9_1 = 1;
|
|
572
|
-
suspendResult = this_0.
|
|
572
|
+
suspendResult = this_0.t3s(this);
|
|
573
573
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
574
574
|
return suspendResult;
|
|
575
575
|
}
|
|
@@ -577,8 +577,8 @@ protoOf($flushAndCloseCOROUTINE$).j9 = function () {
|
|
|
577
577
|
continue $sm;
|
|
578
578
|
case 1:
|
|
579
579
|
var tmp_0 = this;
|
|
580
|
-
this.
|
|
581
|
-
tmp_0.
|
|
580
|
+
this.s3s_1;
|
|
581
|
+
tmp_0.r3s_1 = _Result___init__impl__xyqfz8(Unit_instance);
|
|
582
582
|
this.c9_1 = 4;
|
|
583
583
|
this.b9_1 = 3;
|
|
584
584
|
continue $sm;
|
|
@@ -588,7 +588,7 @@ protoOf($flushAndCloseCOROUTINE$).j9 = function () {
|
|
|
588
588
|
if (tmp_1 instanceof Error) {
|
|
589
589
|
var e = this.e9_1;
|
|
590
590
|
var tmp_2 = this;
|
|
591
|
-
tmp_2.
|
|
591
|
+
tmp_2.r3s_1 = _Result___init__impl__xyqfz8(createFailure(e));
|
|
592
592
|
this.b9_1 = 3;
|
|
593
593
|
continue $sm;
|
|
594
594
|
} else {
|
|
@@ -597,9 +597,9 @@ protoOf($flushAndCloseCOROUTINE$).j9 = function () {
|
|
|
597
597
|
|
|
598
598
|
case 3:
|
|
599
599
|
this.c9_1 = 4;
|
|
600
|
-
if (!this.
|
|
600
|
+
if (!this.q3s_1.h3r_1.atomicfu$compareAndSet(null, get_CLOSED()))
|
|
601
601
|
return Unit_instance;
|
|
602
|
-
closeSlot(this.
|
|
602
|
+
closeSlot(this.q3s_1, null);
|
|
603
603
|
return Unit_instance;
|
|
604
604
|
case 4:
|
|
605
605
|
throw this.e9_1;
|
|
@@ -617,24 +617,24 @@ protoOf($flushAndCloseCOROUTINE$).j9 = function () {
|
|
|
617
617
|
};
|
|
618
618
|
function ByteChannel(autoFlush) {
|
|
619
619
|
autoFlush = autoFlush === VOID ? false : autoFlush;
|
|
620
|
-
this.
|
|
621
|
-
this.
|
|
622
|
-
this.
|
|
623
|
-
this.
|
|
624
|
-
this.
|
|
625
|
-
this.
|
|
626
|
-
this.
|
|
627
|
-
this.
|
|
628
|
-
this.
|
|
629
|
-
}
|
|
630
|
-
protoOf(ByteChannel).
|
|
631
|
-
return this.
|
|
620
|
+
this.a3r_1 = autoFlush;
|
|
621
|
+
this.b3r_1 = new Buffer();
|
|
622
|
+
this.c3r_1 = 0;
|
|
623
|
+
this.d3r_1 = new Object();
|
|
624
|
+
this.e3r_1 = atomic$ref$1(Empty_instance);
|
|
625
|
+
this.f3r_1 = new Buffer();
|
|
626
|
+
this.g3r_1 = new Buffer();
|
|
627
|
+
this.h3r_1 = atomic$ref$1(null);
|
|
628
|
+
this.i3r_1 = atomic$ref$1(null);
|
|
629
|
+
}
|
|
630
|
+
protoOf(ByteChannel).u3s = function () {
|
|
631
|
+
return this.a3r_1;
|
|
632
632
|
};
|
|
633
|
-
protoOf(ByteChannel).
|
|
634
|
-
return this.
|
|
633
|
+
protoOf(ByteChannel).h3s = function () {
|
|
634
|
+
return this.c3r_1 < 1048576;
|
|
635
635
|
};
|
|
636
|
-
protoOf(ByteChannel).
|
|
637
|
-
var tmp0_safe_receiver = this.
|
|
636
|
+
protoOf(ByteChannel).v3s = function () {
|
|
637
|
+
var tmp0_safe_receiver = this.h3r_1.kotlinx$atomicfu$value;
|
|
638
638
|
if (tmp0_safe_receiver == null)
|
|
639
639
|
null;
|
|
640
640
|
else {
|
|
@@ -665,14 +665,14 @@ protoOf(ByteChannel).t3s = function () {
|
|
|
665
665
|
throw tmp0_safe_receiver_0;
|
|
666
666
|
}
|
|
667
667
|
}
|
|
668
|
-
if (this.
|
|
668
|
+
if (this.f3r_1.q3n()) {
|
|
669
669
|
moveFlushToReadBuffer(this);
|
|
670
670
|
}
|
|
671
|
-
return this.
|
|
671
|
+
return this.f3r_1;
|
|
672
672
|
};
|
|
673
|
-
protoOf(ByteChannel).
|
|
674
|
-
if (this.
|
|
675
|
-
var tmp0_safe_receiver = this.
|
|
673
|
+
protoOf(ByteChannel).w3s = function () {
|
|
674
|
+
if (this.x3s()) {
|
|
675
|
+
var tmp0_safe_receiver = this.h3r_1.kotlinx$atomicfu$value;
|
|
676
676
|
var tmp;
|
|
677
677
|
if (tmp0_safe_receiver == null) {
|
|
678
678
|
tmp = null;
|
|
@@ -708,10 +708,10 @@ protoOf(ByteChannel).u3s = function () {
|
|
|
708
708
|
if (tmp == null)
|
|
709
709
|
throw new ClosedWriteChannelException();
|
|
710
710
|
}
|
|
711
|
-
return this.
|
|
711
|
+
return this.g3r_1;
|
|
712
712
|
};
|
|
713
|
-
protoOf(ByteChannel).
|
|
714
|
-
var tmp0_safe_receiver = this.
|
|
713
|
+
protoOf(ByteChannel).j3r = function () {
|
|
714
|
+
var tmp0_safe_receiver = this.h3r_1.kotlinx$atomicfu$value;
|
|
715
715
|
var tmp;
|
|
716
716
|
if (tmp0_safe_receiver == null) {
|
|
717
717
|
tmp = null;
|
|
@@ -737,61 +737,61 @@ protoOf(ByteChannel).h3r = function () {
|
|
|
737
737
|
}
|
|
738
738
|
return tmp;
|
|
739
739
|
};
|
|
740
|
-
protoOf(ByteChannel).
|
|
741
|
-
return !(this.
|
|
740
|
+
protoOf(ByteChannel).x3s = function () {
|
|
741
|
+
return !(this.h3r_1.kotlinx$atomicfu$value == null);
|
|
742
742
|
};
|
|
743
|
-
protoOf(ByteChannel).
|
|
744
|
-
return !(this.
|
|
743
|
+
protoOf(ByteChannel).y3s = function () {
|
|
744
|
+
return !(this.j3r() == null) || (this.x3s() && this.c3r_1 === 0 && this.f3r_1.q3n());
|
|
745
745
|
};
|
|
746
|
-
protoOf(ByteChannel).
|
|
746
|
+
protoOf(ByteChannel).z3s = function (min, $completion) {
|
|
747
747
|
var tmp = new $awaitContentCOROUTINE$(this, min, $completion);
|
|
748
748
|
tmp.d9_1 = Unit_instance;
|
|
749
749
|
tmp.e9_1 = null;
|
|
750
750
|
return tmp.j9();
|
|
751
751
|
};
|
|
752
|
-
protoOf(ByteChannel).
|
|
752
|
+
protoOf(ByteChannel).t3s = function ($completion) {
|
|
753
753
|
var tmp = new $flushCOROUTINE$(this, $completion);
|
|
754
754
|
tmp.d9_1 = Unit_instance;
|
|
755
755
|
tmp.e9_1 = null;
|
|
756
756
|
return tmp.j9();
|
|
757
757
|
};
|
|
758
|
-
protoOf(ByteChannel).
|
|
759
|
-
if (this.
|
|
758
|
+
protoOf(ByteChannel).g3s = function () {
|
|
759
|
+
if (this.g3r_1.q3n())
|
|
760
760
|
return Unit_instance;
|
|
761
761
|
// Inline function 'io.ktor.utils.io.locks.synchronized' call
|
|
762
|
-
this.
|
|
763
|
-
var count = convertToInt(this.
|
|
764
|
-
this.
|
|
765
|
-
this.
|
|
762
|
+
this.d3r_1;
|
|
763
|
+
var count = convertToInt(this.g3r_1.e1());
|
|
764
|
+
this.b3r_1.i3p(this.g3r_1);
|
|
765
|
+
this.c3r_1 = this.c3r_1 + count | 0;
|
|
766
766
|
// Inline function 'io.ktor.utils.io.ByteChannel.resumeSlot' call
|
|
767
|
-
var current = this.
|
|
767
|
+
var current = this.e3r_1.kotlinx$atomicfu$value;
|
|
768
768
|
var tmp;
|
|
769
769
|
if (current instanceof Read) {
|
|
770
|
-
tmp = this.
|
|
770
|
+
tmp = this.e3r_1.atomicfu$compareAndSet(current, Empty_instance);
|
|
771
771
|
} else {
|
|
772
772
|
tmp = false;
|
|
773
773
|
}
|
|
774
774
|
if (tmp) {
|
|
775
|
-
current.
|
|
775
|
+
current.u3q();
|
|
776
776
|
}
|
|
777
777
|
};
|
|
778
778
|
protoOf(ByteChannel).j4 = function () {
|
|
779
|
-
this.
|
|
780
|
-
if (!this.
|
|
779
|
+
this.g3s();
|
|
780
|
+
if (!this.h3r_1.atomicfu$compareAndSet(null, get_CLOSED()))
|
|
781
781
|
return Unit_instance;
|
|
782
782
|
closeSlot(this, null);
|
|
783
783
|
};
|
|
784
|
-
protoOf(ByteChannel).
|
|
784
|
+
protoOf(ByteChannel).b3t = function ($completion) {
|
|
785
785
|
var tmp = new $flushAndCloseCOROUTINE$(this, $completion);
|
|
786
786
|
tmp.d9_1 = Unit_instance;
|
|
787
787
|
tmp.e9_1 = null;
|
|
788
788
|
return tmp.j9();
|
|
789
789
|
};
|
|
790
|
-
protoOf(ByteChannel).
|
|
791
|
-
if (!(this.
|
|
790
|
+
protoOf(ByteChannel).c3t = function (cause) {
|
|
791
|
+
if (!(this.h3r_1.kotlinx$atomicfu$value == null))
|
|
792
792
|
return Unit_instance;
|
|
793
793
|
var closedToken = new CloseToken(cause);
|
|
794
|
-
this.
|
|
794
|
+
this.h3r_1.atomicfu$compareAndSet(null, closedToken);
|
|
795
795
|
// Inline function 'io.ktor.utils.io.Companion.wrapCause' call
|
|
796
796
|
var tmp0_subject = access$_get_origin__hdh1qz(closedToken);
|
|
797
797
|
var tmp;
|
|
@@ -812,8 +812,8 @@ protoOf(ByteChannel).a3t = function (cause) {
|
|
|
812
812
|
var wrappedCause = tmp;
|
|
813
813
|
closeSlot(this, wrappedCause);
|
|
814
814
|
};
|
|
815
|
-
protoOf(ByteChannel).
|
|
816
|
-
var existingCause = this.
|
|
815
|
+
protoOf(ByteChannel).d3t = function (handler) {
|
|
816
|
+
var existingCause = this.h3r_1.kotlinx$atomicfu$value;
|
|
817
817
|
if (!(existingCause == null)) {
|
|
818
818
|
// Inline function 'io.ktor.utils.io.Companion.wrapCause' call
|
|
819
819
|
var tmp0_subject = access$_get_origin__hdh1qz(existingCause);
|
|
@@ -836,13 +836,13 @@ protoOf(ByteChannel).b3t = function (handler) {
|
|
|
836
836
|
var tmp_0 = ByteChannel$invokeOnClose$lambda;
|
|
837
837
|
return new sam$kotlinx_coroutines_DisposableHandle$0(tmp_0);
|
|
838
838
|
}
|
|
839
|
-
if (!this.
|
|
839
|
+
if (!this.i3r_1.atomicfu$compareAndSet(null, handler)) {
|
|
840
840
|
// Inline function 'kotlin.error' call
|
|
841
841
|
var message = 'Only one invokeOnClose handler is supported per channel';
|
|
842
842
|
throw IllegalStateException_init_$Create$(toString_1(message));
|
|
843
843
|
}
|
|
844
|
-
var cause = this.
|
|
845
|
-
if (!(cause == null) && this.
|
|
844
|
+
var cause = this.h3r_1.kotlinx$atomicfu$value;
|
|
845
|
+
if (!(cause == null) && this.i3r_1.atomicfu$compareAndSet(handler, null)) {
|
|
846
846
|
// Inline function 'io.ktor.utils.io.Companion.wrapCause' call
|
|
847
847
|
var tmp0_subject_0 = access$_get_origin__hdh1qz(cause);
|
|
848
848
|
var tmp_1;
|
|
@@ -880,7 +880,7 @@ function ByteReadChannel(content, offset, length) {
|
|
|
880
880
|
length = length === VOID ? content.length : length;
|
|
881
881
|
// Inline function 'kotlin.also' call
|
|
882
882
|
var this_0 = new Buffer();
|
|
883
|
-
this_0.
|
|
883
|
+
this_0.z3o(content, offset, offset + length | 0);
|
|
884
884
|
var source = this_0;
|
|
885
885
|
return ByteReadChannel_0(source);
|
|
886
886
|
}
|
|
@@ -888,18 +888,18 @@ function ByteReadChannel_0(source) {
|
|
|
888
888
|
return new SourceByteReadChannel(source);
|
|
889
889
|
}
|
|
890
890
|
function buildPartialMatchTable($this) {
|
|
891
|
-
var table = new Int32Array($this.
|
|
891
|
+
var table = new Int32Array($this.f3t_1.e1());
|
|
892
892
|
var j = 0;
|
|
893
893
|
var inductionVariable = 1;
|
|
894
|
-
var last = $this.
|
|
894
|
+
var last = $this.f3t_1.e1();
|
|
895
895
|
if (inductionVariable < last)
|
|
896
896
|
do {
|
|
897
897
|
var i = inductionVariable;
|
|
898
898
|
inductionVariable = inductionVariable + 1 | 0;
|
|
899
|
-
while (j > 0 && !($this.
|
|
899
|
+
while (j > 0 && !($this.f3t_1.f1(i) === $this.f3t_1.f1(j))) {
|
|
900
900
|
j = table[j - 1 | 0];
|
|
901
901
|
}
|
|
902
|
-
if ($this.
|
|
902
|
+
if ($this.f3t_1.f1(i) === $this.f3t_1.f1(j)) {
|
|
903
903
|
j = j + 1 | 0;
|
|
904
904
|
}
|
|
905
905
|
table[i] = j;
|
|
@@ -920,8 +920,8 @@ function checkFullMatch($this, $completion) {
|
|
|
920
920
|
return tmp.j9();
|
|
921
921
|
}
|
|
922
922
|
function checkBounds($this, extra) {
|
|
923
|
-
if (compare(add($this.
|
|
924
|
-
throw IOException_init_$Create$('Limit of ' + $this.
|
|
923
|
+
if (compare(add($this.l3t_1, extra), $this.h3t_1) > 0) {
|
|
924
|
+
throw IOException_init_$Create$('Limit of ' + $this.h3t_1.toString() + ' bytes exceeded ' + ('while searching for "' + toSingleLineString($this, $this.f3t_1) + '"'));
|
|
925
925
|
}
|
|
926
926
|
}
|
|
927
927
|
function toSingleLineString($this, $receiver) {
|
|
@@ -929,8 +929,8 @@ function toSingleLineString($this, $receiver) {
|
|
|
929
929
|
}
|
|
930
930
|
function $findNextCOROUTINE$(_this__u8e3s4, ignoreMissing, resultContinuation) {
|
|
931
931
|
CoroutineImpl.call(this, resultContinuation);
|
|
932
|
-
this.
|
|
933
|
-
this.
|
|
932
|
+
this.q3u_1 = _this__u8e3s4;
|
|
933
|
+
this.r3u_1 = ignoreMissing;
|
|
934
934
|
}
|
|
935
935
|
protoOf($findNextCOROUTINE$).j9 = function () {
|
|
936
936
|
var suspendResult = this.d9_1;
|
|
@@ -940,17 +940,17 @@ protoOf($findNextCOROUTINE$).j9 = function () {
|
|
|
940
940
|
switch (tmp) {
|
|
941
941
|
case 0:
|
|
942
942
|
this.c9_1 = 9;
|
|
943
|
-
this.
|
|
943
|
+
this.q3u_1.l3t_1 = new Long(0, 0);
|
|
944
944
|
this.b9_1 = 1;
|
|
945
945
|
continue $sm;
|
|
946
946
|
case 1:
|
|
947
|
-
if (!this.
|
|
948
|
-
this.
|
|
947
|
+
if (!this.q3u_1.i3t_1.q3n()) {
|
|
948
|
+
this.s3u_1 = true;
|
|
949
949
|
this.b9_1 = 3;
|
|
950
950
|
continue $sm;
|
|
951
951
|
} else {
|
|
952
952
|
this.b9_1 = 2;
|
|
953
|
-
suspendResult = this.
|
|
953
|
+
suspendResult = this.q3u_1.e3t_1.a3t(VOID, this);
|
|
954
954
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
955
955
|
return suspendResult;
|
|
956
956
|
}
|
|
@@ -958,17 +958,17 @@ protoOf($findNextCOROUTINE$).j9 = function () {
|
|
|
958
958
|
}
|
|
959
959
|
|
|
960
960
|
case 2:
|
|
961
|
-
this.
|
|
961
|
+
this.s3u_1 = suspendResult;
|
|
962
962
|
this.b9_1 = 3;
|
|
963
963
|
continue $sm;
|
|
964
964
|
case 3:
|
|
965
|
-
if (!this.
|
|
965
|
+
if (!this.s3u_1) {
|
|
966
966
|
this.b9_1 = 7;
|
|
967
967
|
continue $sm;
|
|
968
968
|
}
|
|
969
969
|
|
|
970
970
|
this.b9_1 = 4;
|
|
971
|
-
suspendResult = advanceToNextPotentialMatch(this.
|
|
971
|
+
suspendResult = advanceToNextPotentialMatch(this.q3u_1, this);
|
|
972
972
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
973
973
|
return suspendResult;
|
|
974
974
|
}
|
|
@@ -976,7 +976,7 @@ protoOf($findNextCOROUTINE$).j9 = function () {
|
|
|
976
976
|
continue $sm;
|
|
977
977
|
case 4:
|
|
978
978
|
this.b9_1 = 5;
|
|
979
|
-
suspendResult = checkFullMatch(this.
|
|
979
|
+
suspendResult = checkFullMatch(this.q3u_1, this);
|
|
980
980
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
981
981
|
return suspendResult;
|
|
982
982
|
}
|
|
@@ -984,7 +984,7 @@ protoOf($findNextCOROUTINE$).j9 = function () {
|
|
|
984
984
|
continue $sm;
|
|
985
985
|
case 5:
|
|
986
986
|
if (suspendResult) {
|
|
987
|
-
return this.
|
|
987
|
+
return this.q3u_1.l3t_1;
|
|
988
988
|
} else {
|
|
989
989
|
this.b9_1 = 6;
|
|
990
990
|
continue $sm;
|
|
@@ -994,20 +994,20 @@ protoOf($findNextCOROUTINE$).j9 = function () {
|
|
|
994
994
|
this.b9_1 = 1;
|
|
995
995
|
continue $sm;
|
|
996
996
|
case 7:
|
|
997
|
-
if (!this.
|
|
998
|
-
throw IOException_init_$Create$('Expected "' + toSingleLineString(this.
|
|
997
|
+
if (!this.r3u_1) {
|
|
998
|
+
throw IOException_init_$Create$('Expected "' + toSingleLineString(this.q3u_1, this.q3u_1.f3t_1) + '" but encountered end of input');
|
|
999
999
|
}
|
|
1000
1000
|
|
|
1001
|
-
this.
|
|
1001
|
+
this.q3u_1.l3t_1 = add(this.q3u_1.l3t_1, this.q3u_1.k3t_1.t3o(this.q3u_1.g3t_1.w3s()));
|
|
1002
1002
|
this.b9_1 = 8;
|
|
1003
|
-
suspendResult = this.
|
|
1003
|
+
suspendResult = this.q3u_1.g3t_1.t3s(this);
|
|
1004
1004
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1005
1005
|
return suspendResult;
|
|
1006
1006
|
}
|
|
1007
1007
|
|
|
1008
1008
|
continue $sm;
|
|
1009
1009
|
case 8:
|
|
1010
|
-
return this.
|
|
1010
|
+
return this.q3u_1.l3t_1;
|
|
1011
1011
|
case 9:
|
|
1012
1012
|
throw this.e9_1;
|
|
1013
1013
|
}
|
|
@@ -1024,7 +1024,7 @@ protoOf($findNextCOROUTINE$).j9 = function () {
|
|
|
1024
1024
|
};
|
|
1025
1025
|
function $advanceToNextPotentialMatchCOROUTINE$(_this__u8e3s4, resultContinuation) {
|
|
1026
1026
|
CoroutineImpl.call(this, resultContinuation);
|
|
1027
|
-
this.
|
|
1027
|
+
this.v3t_1 = _this__u8e3s4;
|
|
1028
1028
|
}
|
|
1029
1029
|
protoOf($advanceToNextPotentialMatchCOROUTINE$).j9 = function () {
|
|
1030
1030
|
var suspendResult = this.d9_1;
|
|
@@ -1037,13 +1037,13 @@ protoOf($advanceToNextPotentialMatchCOROUTINE$).j9 = function () {
|
|
|
1037
1037
|
this.b9_1 = 1;
|
|
1038
1038
|
continue $sm;
|
|
1039
1039
|
case 1:
|
|
1040
|
-
if (!this.
|
|
1041
|
-
this.
|
|
1040
|
+
if (!this.v3t_1.i3t_1.q3n()) {
|
|
1041
|
+
this.w3t_1 = true;
|
|
1042
1042
|
this.b9_1 = 3;
|
|
1043
1043
|
continue $sm;
|
|
1044
1044
|
} else {
|
|
1045
1045
|
this.b9_1 = 2;
|
|
1046
|
-
suspendResult = this.
|
|
1046
|
+
suspendResult = this.v3t_1.e3t_1.a3t(VOID, this);
|
|
1047
1047
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1048
1048
|
return suspendResult;
|
|
1049
1049
|
}
|
|
@@ -1051,34 +1051,34 @@ protoOf($advanceToNextPotentialMatchCOROUTINE$).j9 = function () {
|
|
|
1051
1051
|
}
|
|
1052
1052
|
|
|
1053
1053
|
case 2:
|
|
1054
|
-
this.
|
|
1054
|
+
this.w3t_1 = suspendResult;
|
|
1055
1055
|
this.b9_1 = 3;
|
|
1056
1056
|
continue $sm;
|
|
1057
1057
|
case 3:
|
|
1058
|
-
if (!this.
|
|
1058
|
+
if (!this.w3t_1) {
|
|
1059
1059
|
this.b9_1 = 7;
|
|
1060
1060
|
continue $sm;
|
|
1061
1061
|
}
|
|
1062
1062
|
|
|
1063
|
-
var nextMatch = indexOf(this.
|
|
1063
|
+
var nextMatch = indexOf(this.v3t_1.i3t_1, this.v3t_1.f3t_1.f1(0));
|
|
1064
1064
|
if (equalsLong(nextMatch, new Long(-1, -1))) {
|
|
1065
|
-
var tmp_0 = this.
|
|
1066
|
-
checkBounds(this.
|
|
1067
|
-
this.
|
|
1065
|
+
var tmp_0 = this.v3t_1.i3t_1;
|
|
1066
|
+
checkBounds(this.v3t_1, (tmp_0 instanceof Buffer ? tmp_0 : THROW_CCE()).e1());
|
|
1067
|
+
this.v3t_1.l3t_1 = add(this.v3t_1.l3t_1, this.v3t_1.i3t_1.t3o(this.v3t_1.g3t_1.w3s()));
|
|
1068
1068
|
this.b9_1 = 5;
|
|
1069
|
-
suspendResult = flushIfNeeded(this.
|
|
1069
|
+
suspendResult = flushIfNeeded(this.v3t_1.g3t_1, this);
|
|
1070
1070
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1071
1071
|
return suspendResult;
|
|
1072
1072
|
}
|
|
1073
1073
|
continue $sm;
|
|
1074
1074
|
} else {
|
|
1075
|
-
checkBounds(this.
|
|
1076
|
-
var tmp_1 = this.
|
|
1077
|
-
var tmp_2 = this.
|
|
1078
|
-
var tmp_3 = this.
|
|
1079
|
-
tmp_1.
|
|
1075
|
+
checkBounds(this.v3t_1, nextMatch);
|
|
1076
|
+
var tmp_1 = this.v3t_1;
|
|
1077
|
+
var tmp_2 = this.v3t_1.l3t_1;
|
|
1078
|
+
var tmp_3 = this.v3t_1.g3t_1.w3s();
|
|
1079
|
+
tmp_1.l3t_1 = add(tmp_2, this.v3t_1.i3t_1.q3o(tmp_3 instanceof Buffer ? tmp_3 : THROW_CCE(), nextMatch));
|
|
1080
1080
|
this.b9_1 = 4;
|
|
1081
|
-
suspendResult = flushIfNeeded(this.
|
|
1081
|
+
suspendResult = flushIfNeeded(this.v3t_1.g3t_1, this);
|
|
1082
1082
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1083
1083
|
return suspendResult;
|
|
1084
1084
|
}
|
|
@@ -1111,7 +1111,7 @@ protoOf($advanceToNextPotentialMatchCOROUTINE$).j9 = function () {
|
|
|
1111
1111
|
};
|
|
1112
1112
|
function $checkFullMatchCOROUTINE$(_this__u8e3s4, resultContinuation) {
|
|
1113
1113
|
CoroutineImpl.call(this, resultContinuation);
|
|
1114
|
-
this.
|
|
1114
|
+
this.f3u_1 = _this__u8e3s4;
|
|
1115
1115
|
}
|
|
1116
1116
|
protoOf($checkFullMatchCOROUTINE$).j9 = function () {
|
|
1117
1117
|
var suspendResult = this.d9_1;
|
|
@@ -1124,13 +1124,13 @@ protoOf($checkFullMatchCOROUTINE$).j9 = function () {
|
|
|
1124
1124
|
this.b9_1 = 1;
|
|
1125
1125
|
continue $sm;
|
|
1126
1126
|
case 1:
|
|
1127
|
-
if (!this.
|
|
1128
|
-
this.
|
|
1127
|
+
if (!this.f3u_1.i3t_1.q3n()) {
|
|
1128
|
+
this.h3u_1 = true;
|
|
1129
1129
|
this.b9_1 = 3;
|
|
1130
1130
|
continue $sm;
|
|
1131
1131
|
} else {
|
|
1132
1132
|
this.b9_1 = 2;
|
|
1133
|
-
suspendResult = this.
|
|
1133
|
+
suspendResult = this.f3u_1.e3t_1.a3t(VOID, this);
|
|
1134
1134
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1135
1135
|
return suspendResult;
|
|
1136
1136
|
}
|
|
@@ -1138,30 +1138,30 @@ protoOf($checkFullMatchCOROUTINE$).j9 = function () {
|
|
|
1138
1138
|
}
|
|
1139
1139
|
|
|
1140
1140
|
case 2:
|
|
1141
|
-
this.
|
|
1141
|
+
this.h3u_1 = suspendResult;
|
|
1142
1142
|
this.b9_1 = 3;
|
|
1143
1143
|
continue $sm;
|
|
1144
1144
|
case 3:
|
|
1145
|
-
if (!this.
|
|
1145
|
+
if (!this.h3u_1) {
|
|
1146
1146
|
this.b9_1 = 7;
|
|
1147
1147
|
continue $sm;
|
|
1148
1148
|
}
|
|
1149
1149
|
|
|
1150
|
-
this.
|
|
1151
|
-
if (this.
|
|
1152
|
-
var oldMatchIndex = this.
|
|
1153
|
-
while (this.
|
|
1154
|
-
this.
|
|
1150
|
+
this.g3u_1 = this.f3u_1.i3t_1.t3n();
|
|
1151
|
+
if (this.f3u_1.m3t_1 > 0 && !(this.g3u_1 === this.f3u_1.f3t_1.f1(this.f3u_1.m3t_1))) {
|
|
1152
|
+
var oldMatchIndex = this.f3u_1.m3t_1;
|
|
1153
|
+
while (this.f3u_1.m3t_1 > 0 && !(this.g3u_1 === this.f3u_1.f3t_1.f1(this.f3u_1.m3t_1))) {
|
|
1154
|
+
this.f3u_1.m3t_1 = this.f3u_1.j3t_1[this.f3u_1.m3t_1 - 1 | 0];
|
|
1155
1155
|
}
|
|
1156
|
-
var retained = fromInt(oldMatchIndex - this.
|
|
1157
|
-
checkBounds(this.
|
|
1158
|
-
var tmp_0 = this.
|
|
1159
|
-
var tmp_1 = this.
|
|
1160
|
-
var tmp_2 = this.
|
|
1161
|
-
tmp_0.
|
|
1162
|
-
if (this.
|
|
1156
|
+
var retained = fromInt(oldMatchIndex - this.f3u_1.m3t_1 | 0);
|
|
1157
|
+
checkBounds(this.f3u_1, retained);
|
|
1158
|
+
var tmp_0 = this.f3u_1;
|
|
1159
|
+
var tmp_1 = this.f3u_1.l3t_1;
|
|
1160
|
+
var tmp_2 = this.f3u_1.g3t_1.w3s();
|
|
1161
|
+
tmp_0.l3t_1 = add(tmp_1, this.f3u_1.k3t_1.q3o(tmp_2 instanceof Buffer ? tmp_2 : THROW_CCE(), retained));
|
|
1162
|
+
if (this.f3u_1.m3t_1 === 0 && !(this.g3u_1 === this.f3u_1.f3t_1.f1(this.f3u_1.m3t_1))) {
|
|
1163
1163
|
this.b9_1 = 6;
|
|
1164
|
-
suspendResult = writeByte(this.
|
|
1164
|
+
suspendResult = writeByte(this.f3u_1.g3t_1, this.g3u_1, this);
|
|
1165
1165
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1166
1166
|
return suspendResult;
|
|
1167
1167
|
}
|
|
@@ -1179,17 +1179,17 @@ protoOf($checkFullMatchCOROUTINE$).j9 = function () {
|
|
|
1179
1179
|
this.b9_1 = 5;
|
|
1180
1180
|
continue $sm;
|
|
1181
1181
|
case 5:
|
|
1182
|
-
this.
|
|
1183
|
-
if (this.
|
|
1182
|
+
this.f3u_1.m3t_1 = this.f3u_1.m3t_1 + 1 | 0;
|
|
1183
|
+
if (this.f3u_1.m3t_1 === this.f3u_1.f3t_1.e1()) {
|
|
1184
1184
|
return true;
|
|
1185
1185
|
}
|
|
1186
1186
|
|
|
1187
|
-
this.
|
|
1187
|
+
this.f3u_1.k3t_1.j3p(this.g3u_1);
|
|
1188
1188
|
this.b9_1 = 1;
|
|
1189
1189
|
continue $sm;
|
|
1190
1190
|
case 6:
|
|
1191
|
-
var _unary__edvuaz = this.
|
|
1192
|
-
this.
|
|
1191
|
+
var _unary__edvuaz = this.f3u_1.l3t_1;
|
|
1192
|
+
this.f3u_1.l3t_1 = add(_unary__edvuaz, get_ONE());
|
|
1193
1193
|
return false;
|
|
1194
1194
|
case 7:
|
|
1195
1195
|
return false;
|
|
@@ -1209,68 +1209,68 @@ protoOf($checkFullMatchCOROUTINE$).j9 = function () {
|
|
|
1209
1209
|
};
|
|
1210
1210
|
function ByteChannelScanner(channel, matchString, writeChannel, limit) {
|
|
1211
1211
|
limit = limit === VOID ? new Long(-1, 2147483647) : limit;
|
|
1212
|
-
this.
|
|
1213
|
-
this.
|
|
1214
|
-
this.
|
|
1215
|
-
this.
|
|
1212
|
+
this.e3t_1 = channel;
|
|
1213
|
+
this.f3t_1 = matchString;
|
|
1214
|
+
this.g3t_1 = writeChannel;
|
|
1215
|
+
this.h3t_1 = limit;
|
|
1216
1216
|
// Inline function 'kotlin.require' call
|
|
1217
|
-
if (!(this.
|
|
1217
|
+
if (!(this.f3t_1.e1() > 0)) {
|
|
1218
1218
|
var message = 'Empty match string not permitted for scanning';
|
|
1219
1219
|
throw IllegalArgumentException_init_$Create$(toString_1(message));
|
|
1220
1220
|
}
|
|
1221
|
-
this.
|
|
1222
|
-
this.
|
|
1223
|
-
this.
|
|
1224
|
-
this.
|
|
1225
|
-
this.
|
|
1221
|
+
this.i3t_1 = this.e3t_1.v3s();
|
|
1222
|
+
this.j3t_1 = buildPartialMatchTable(this);
|
|
1223
|
+
this.k3t_1 = new Buffer();
|
|
1224
|
+
this.l3t_1 = new Long(0, 0);
|
|
1225
|
+
this.m3t_1 = 0;
|
|
1226
1226
|
}
|
|
1227
|
-
protoOf(ByteChannelScanner).
|
|
1227
|
+
protoOf(ByteChannelScanner).t3u = function (ignoreMissing, $completion) {
|
|
1228
1228
|
var tmp = new $findNextCOROUTINE$(this, ignoreMissing, $completion);
|
|
1229
1229
|
tmp.d9_1 = Unit_instance;
|
|
1230
1230
|
tmp.e9_1 = null;
|
|
1231
1231
|
return tmp.j9();
|
|
1232
1232
|
};
|
|
1233
1233
|
function attachWriterJob(_this__u8e3s4, writerJob) {
|
|
1234
|
-
var tmp = writerJob.
|
|
1234
|
+
var tmp = writerJob.u3u_1;
|
|
1235
1235
|
var tmp0_safe_receiver = tmp instanceof ByteChannel ? tmp : null;
|
|
1236
1236
|
if (tmp0_safe_receiver == null)
|
|
1237
1237
|
null;
|
|
1238
1238
|
else {
|
|
1239
|
-
tmp0_safe_receiver.
|
|
1239
|
+
tmp0_safe_receiver.d3t(attachWriterJob$lambda(_this__u8e3s4));
|
|
1240
1240
|
}
|
|
1241
1241
|
}
|
|
1242
1242
|
function attachWriterJob$lambda($this_attachWriterJob) {
|
|
1243
1243
|
return function (cause) {
|
|
1244
1244
|
var tmp;
|
|
1245
1245
|
if (!(cause == null)) {
|
|
1246
|
-
$this_attachWriterJob.
|
|
1246
|
+
$this_attachWriterJob.c3t(cause);
|
|
1247
1247
|
tmp = Unit_instance;
|
|
1248
1248
|
}
|
|
1249
1249
|
return Unit_instance;
|
|
1250
1250
|
};
|
|
1251
1251
|
}
|
|
1252
1252
|
function ByteReadChannel$Companion$Empty$1() {
|
|
1253
|
-
this.
|
|
1254
|
-
this.
|
|
1253
|
+
this.w3u_1 = null;
|
|
1254
|
+
this.x3u_1 = new Buffer();
|
|
1255
1255
|
}
|
|
1256
|
-
protoOf(ByteReadChannel$Companion$Empty$1).
|
|
1257
|
-
return this.
|
|
1256
|
+
protoOf(ByteReadChannel$Companion$Empty$1).j3r = function () {
|
|
1257
|
+
return this.w3u_1;
|
|
1258
1258
|
};
|
|
1259
|
-
protoOf(ByteReadChannel$Companion$Empty$1).
|
|
1259
|
+
protoOf(ByteReadChannel$Companion$Empty$1).y3s = function () {
|
|
1260
1260
|
return true;
|
|
1261
1261
|
};
|
|
1262
|
-
protoOf(ByteReadChannel$Companion$Empty$1).
|
|
1263
|
-
return this.
|
|
1262
|
+
protoOf(ByteReadChannel$Companion$Empty$1).v3s = function () {
|
|
1263
|
+
return this.x3u_1;
|
|
1264
1264
|
};
|
|
1265
|
-
protoOf(ByteReadChannel$Companion$Empty$1).
|
|
1265
|
+
protoOf(ByteReadChannel$Companion$Empty$1).z3s = function (min, $completion) {
|
|
1266
1266
|
return false;
|
|
1267
1267
|
};
|
|
1268
|
-
protoOf(ByteReadChannel$Companion$Empty$1).
|
|
1268
|
+
protoOf(ByteReadChannel$Companion$Empty$1).c3t = function (cause) {
|
|
1269
1269
|
};
|
|
1270
1270
|
function Companion_0() {
|
|
1271
1271
|
Companion_instance_1 = this;
|
|
1272
1272
|
var tmp = this;
|
|
1273
|
-
tmp.
|
|
1273
|
+
tmp.y3u_1 = new ByteReadChannel$Companion$Empty$1();
|
|
1274
1274
|
}
|
|
1275
1275
|
var Companion_instance_1;
|
|
1276
1276
|
function Companion_getInstance_0() {
|
|
@@ -1281,7 +1281,7 @@ function Companion_getInstance_0() {
|
|
|
1281
1281
|
function ByteReadChannel_1() {
|
|
1282
1282
|
}
|
|
1283
1283
|
function cancel_0(_this__u8e3s4) {
|
|
1284
|
-
_this__u8e3s4.
|
|
1284
|
+
_this__u8e3s4.c3t(IOException_init_$Create$('Channel was cancelled'));
|
|
1285
1285
|
}
|
|
1286
1286
|
function readBuffer(_this__u8e3s4, $completion) {
|
|
1287
1287
|
var tmp = new $readBufferCOROUTINE$(_this__u8e3s4, $completion);
|
|
@@ -1317,7 +1317,7 @@ function copyTo(_this__u8e3s4, channel, limit, $completion) {
|
|
|
1317
1317
|
return tmp.j9();
|
|
1318
1318
|
}
|
|
1319
1319
|
function rethrowCloseCauseIfNeeded_0(_this__u8e3s4) {
|
|
1320
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
1320
|
+
var tmp0_safe_receiver = _this__u8e3s4.j3r();
|
|
1321
1321
|
if (tmp0_safe_receiver == null)
|
|
1322
1322
|
null;
|
|
1323
1323
|
else {
|
|
@@ -1340,7 +1340,7 @@ function readPacket(_this__u8e3s4, packet, $completion) {
|
|
|
1340
1340
|
function readUntil(_this__u8e3s4, matchString, writeChannel, limit, ignoreMissing, $completion) {
|
|
1341
1341
|
limit = limit === VOID ? new Long(-1, 2147483647) : limit;
|
|
1342
1342
|
ignoreMissing = ignoreMissing === VOID ? false : ignoreMissing;
|
|
1343
|
-
return (new ByteChannelScanner(_this__u8e3s4, matchString, writeChannel, limit)).
|
|
1343
|
+
return (new ByteChannelScanner(_this__u8e3s4, matchString, writeChannel, limit)).t3u(ignoreMissing, $completion);
|
|
1344
1344
|
}
|
|
1345
1345
|
function readLineStrictTo(_this__u8e3s4, out, limit, lineEnding, $completion) {
|
|
1346
1346
|
limit = limit === VOID ? new Long(-1, 2147483647) : limit;
|
|
@@ -1353,7 +1353,7 @@ function readLineStrictTo(_this__u8e3s4, out, limit, lineEnding, $completion) {
|
|
|
1353
1353
|
return internalReadLineTo(_this__u8e3s4, out, limit, lineEnding.equals(LineEnding_Lenient_getInstance()), true, $completion);
|
|
1354
1354
|
}
|
|
1355
1355
|
function get_availableForRead(_this__u8e3s4) {
|
|
1356
|
-
return convertToInt(_this__u8e3s4.
|
|
1356
|
+
return convertToInt(_this__u8e3s4.v3s().p3n().e1());
|
|
1357
1357
|
}
|
|
1358
1358
|
function peek(_this__u8e3s4, count, $completion) {
|
|
1359
1359
|
var tmp = new $peekCOROUTINE$(_this__u8e3s4, count, $completion);
|
|
@@ -1374,7 +1374,7 @@ function throwTooLongLineException(limit) {
|
|
|
1374
1374
|
throw new TooLongLineException('Line exceeds limit of ' + limit.toString() + ' bytes');
|
|
1375
1375
|
}
|
|
1376
1376
|
function rethrowCloseCauseIfNeeded_1(_this__u8e3s4) {
|
|
1377
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
1377
|
+
var tmp0_safe_receiver = _this__u8e3s4.j3r();
|
|
1378
1378
|
if (tmp0_safe_receiver == null)
|
|
1379
1379
|
null;
|
|
1380
1380
|
else {
|
|
@@ -1387,7 +1387,7 @@ function internalReadLineTo$bufferBytes(outBuffer, readBuffer, consumed, count)
|
|
|
1387
1387
|
if (outBuffer._v == null) {
|
|
1388
1388
|
outBuffer._v = new Buffer();
|
|
1389
1389
|
}
|
|
1390
|
-
outBuffer._v.
|
|
1390
|
+
outBuffer._v.d3p(readBuffer, count);
|
|
1391
1391
|
consumed._v = add(consumed._v, count);
|
|
1392
1392
|
}
|
|
1393
1393
|
}
|
|
@@ -1428,7 +1428,7 @@ function internalReadLineTo$discardCrlfOrCr(_this__u8e3s4, $this_internalReadLin
|
|
|
1428
1428
|
}
|
|
1429
1429
|
function $readBufferCOROUTINE$(_this__u8e3s4, resultContinuation) {
|
|
1430
1430
|
CoroutineImpl.call(this, resultContinuation);
|
|
1431
|
-
this.
|
|
1431
|
+
this.h3v_1 = _this__u8e3s4;
|
|
1432
1432
|
}
|
|
1433
1433
|
protoOf($readBufferCOROUTINE$).j9 = function () {
|
|
1434
1434
|
var suspendResult = this.d9_1;
|
|
@@ -1438,18 +1438,18 @@ protoOf($readBufferCOROUTINE$).j9 = function () {
|
|
|
1438
1438
|
switch (tmp) {
|
|
1439
1439
|
case 0:
|
|
1440
1440
|
this.c9_1 = 5;
|
|
1441
|
-
this.
|
|
1441
|
+
this.i3v_1 = new Buffer();
|
|
1442
1442
|
this.b9_1 = 1;
|
|
1443
1443
|
continue $sm;
|
|
1444
1444
|
case 1:
|
|
1445
|
-
if (!!this.
|
|
1445
|
+
if (!!this.h3v_1.y3s()) {
|
|
1446
1446
|
this.b9_1 = 4;
|
|
1447
1447
|
continue $sm;
|
|
1448
1448
|
}
|
|
1449
1449
|
|
|
1450
|
-
if (this.
|
|
1450
|
+
if (this.h3v_1.v3s().q3n()) {
|
|
1451
1451
|
this.b9_1 = 2;
|
|
1452
|
-
suspendResult = this.
|
|
1452
|
+
suspendResult = this.h3v_1.a3t(VOID, this);
|
|
1453
1453
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1454
1454
|
return suspendResult;
|
|
1455
1455
|
}
|
|
@@ -1463,12 +1463,12 @@ protoOf($readBufferCOROUTINE$).j9 = function () {
|
|
|
1463
1463
|
this.b9_1 = 3;
|
|
1464
1464
|
continue $sm;
|
|
1465
1465
|
case 3:
|
|
1466
|
-
this.
|
|
1466
|
+
this.i3v_1.i3p(this.h3v_1.v3s());
|
|
1467
1467
|
this.b9_1 = 1;
|
|
1468
1468
|
continue $sm;
|
|
1469
1469
|
case 4:
|
|
1470
|
-
rethrowCloseCauseIfNeeded_0(this.
|
|
1471
|
-
return this.
|
|
1470
|
+
rethrowCloseCauseIfNeeded_0(this.h3v_1);
|
|
1471
|
+
return this.i3v_1;
|
|
1472
1472
|
case 5:
|
|
1473
1473
|
throw this.e9_1;
|
|
1474
1474
|
}
|
|
@@ -1485,8 +1485,8 @@ protoOf($readBufferCOROUTINE$).j9 = function () {
|
|
|
1485
1485
|
};
|
|
1486
1486
|
function $discardCOROUTINE$(_this__u8e3s4, max, resultContinuation) {
|
|
1487
1487
|
CoroutineImpl.call(this, resultContinuation);
|
|
1488
|
-
this.
|
|
1489
|
-
this.
|
|
1488
|
+
this.r3v_1 = _this__u8e3s4;
|
|
1489
|
+
this.s3v_1 = max;
|
|
1490
1490
|
}
|
|
1491
1491
|
protoOf($discardCOROUTINE$).j9 = function () {
|
|
1492
1492
|
var suspendResult = this.d9_1;
|
|
@@ -1496,18 +1496,18 @@ protoOf($discardCOROUTINE$).j9 = function () {
|
|
|
1496
1496
|
switch (tmp) {
|
|
1497
1497
|
case 0:
|
|
1498
1498
|
this.c9_1 = 5;
|
|
1499
|
-
this.
|
|
1499
|
+
this.t3v_1 = this.s3v_1;
|
|
1500
1500
|
this.b9_1 = 1;
|
|
1501
1501
|
continue $sm;
|
|
1502
1502
|
case 1:
|
|
1503
|
-
if (!(compare(this.
|
|
1503
|
+
if (!(compare(this.t3v_1, new Long(0, 0)) > 0 && !this.r3v_1.y3s())) {
|
|
1504
1504
|
this.b9_1 = 4;
|
|
1505
1505
|
continue $sm;
|
|
1506
1506
|
}
|
|
1507
1507
|
|
|
1508
|
-
if (get_availableForRead(this.
|
|
1508
|
+
if (get_availableForRead(this.r3v_1) === 0) {
|
|
1509
1509
|
this.b9_1 = 2;
|
|
1510
|
-
suspendResult = this.
|
|
1510
|
+
suspendResult = this.r3v_1.a3t(VOID, this);
|
|
1511
1511
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1512
1512
|
return suspendResult;
|
|
1513
1513
|
}
|
|
@@ -1521,15 +1521,15 @@ protoOf($discardCOROUTINE$).j9 = function () {
|
|
|
1521
1521
|
this.b9_1 = 3;
|
|
1522
1522
|
continue $sm;
|
|
1523
1523
|
case 3:
|
|
1524
|
-
var tmp0 = this.
|
|
1525
|
-
var b = get_remaining(this.
|
|
1524
|
+
var tmp0 = this.t3v_1;
|
|
1525
|
+
var b = get_remaining(this.r3v_1.v3s());
|
|
1526
1526
|
var count = compare(tmp0, b) <= 0 ? tmp0 : b;
|
|
1527
|
-
discard_0(this.
|
|
1528
|
-
this.
|
|
1527
|
+
discard_0(this.r3v_1.v3s(), count);
|
|
1528
|
+
this.t3v_1 = subtract(this.t3v_1, count);
|
|
1529
1529
|
this.b9_1 = 1;
|
|
1530
1530
|
continue $sm;
|
|
1531
1531
|
case 4:
|
|
1532
|
-
return subtract(this.
|
|
1532
|
+
return subtract(this.s3v_1, this.t3v_1);
|
|
1533
1533
|
case 5:
|
|
1534
1534
|
throw this.e9_1;
|
|
1535
1535
|
}
|
|
@@ -1546,10 +1546,10 @@ protoOf($discardCOROUTINE$).j9 = function () {
|
|
|
1546
1546
|
};
|
|
1547
1547
|
function $readAvailableCOROUTINE$(_this__u8e3s4, buffer, offset, length, resultContinuation) {
|
|
1548
1548
|
CoroutineImpl.call(this, resultContinuation);
|
|
1549
|
-
this.
|
|
1550
|
-
this.
|
|
1551
|
-
this.
|
|
1552
|
-
this.
|
|
1549
|
+
this.c3w_1 = _this__u8e3s4;
|
|
1550
|
+
this.d3w_1 = buffer;
|
|
1551
|
+
this.e3w_1 = offset;
|
|
1552
|
+
this.f3w_1 = length;
|
|
1553
1553
|
}
|
|
1554
1554
|
protoOf($readAvailableCOROUTINE$).j9 = function () {
|
|
1555
1555
|
var suspendResult = this.d9_1;
|
|
@@ -1559,11 +1559,11 @@ protoOf($readAvailableCOROUTINE$).j9 = function () {
|
|
|
1559
1559
|
switch (tmp) {
|
|
1560
1560
|
case 0:
|
|
1561
1561
|
this.c9_1 = 3;
|
|
1562
|
-
if (this.
|
|
1562
|
+
if (this.c3w_1.y3s())
|
|
1563
1563
|
return -1;
|
|
1564
|
-
if (this.
|
|
1564
|
+
if (this.c3w_1.v3s().q3n()) {
|
|
1565
1565
|
this.b9_1 = 1;
|
|
1566
|
-
suspendResult = this.
|
|
1566
|
+
suspendResult = this.c3w_1.a3t(VOID, this);
|
|
1567
1567
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1568
1568
|
return suspendResult;
|
|
1569
1569
|
}
|
|
@@ -1577,9 +1577,9 @@ protoOf($readAvailableCOROUTINE$).j9 = function () {
|
|
|
1577
1577
|
this.b9_1 = 2;
|
|
1578
1578
|
continue $sm;
|
|
1579
1579
|
case 2:
|
|
1580
|
-
if (this.
|
|
1580
|
+
if (this.c3w_1.y3s())
|
|
1581
1581
|
return -1;
|
|
1582
|
-
return readAvailable_0(this.
|
|
1582
|
+
return readAvailable_0(this.c3w_1.v3s(), this.d3w_1, this.e3w_1, this.f3w_1);
|
|
1583
1583
|
case 3:
|
|
1584
1584
|
throw this.e9_1;
|
|
1585
1585
|
}
|
|
@@ -1596,7 +1596,7 @@ protoOf($readAvailableCOROUTINE$).j9 = function () {
|
|
|
1596
1596
|
};
|
|
1597
1597
|
function $toByteArrayCOROUTINE$(_this__u8e3s4, resultContinuation) {
|
|
1598
1598
|
CoroutineImpl.call(this, resultContinuation);
|
|
1599
|
-
this.
|
|
1599
|
+
this.o3w_1 = _this__u8e3s4;
|
|
1600
1600
|
}
|
|
1601
1601
|
protoOf($toByteArrayCOROUTINE$).j9 = function () {
|
|
1602
1602
|
var suspendResult = this.d9_1;
|
|
@@ -1607,7 +1607,7 @@ protoOf($toByteArrayCOROUTINE$).j9 = function () {
|
|
|
1607
1607
|
case 0:
|
|
1608
1608
|
this.c9_1 = 2;
|
|
1609
1609
|
this.b9_1 = 1;
|
|
1610
|
-
suspendResult = readBuffer(this.
|
|
1610
|
+
suspendResult = readBuffer(this.o3w_1, this);
|
|
1611
1611
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1612
1612
|
return suspendResult;
|
|
1613
1613
|
}
|
|
@@ -1632,9 +1632,9 @@ protoOf($toByteArrayCOROUTINE$).j9 = function () {
|
|
|
1632
1632
|
};
|
|
1633
1633
|
function $copyToCOROUTINE$(_this__u8e3s4, channel, limit, resultContinuation) {
|
|
1634
1634
|
CoroutineImpl.call(this, resultContinuation);
|
|
1635
|
-
this.
|
|
1636
|
-
this.
|
|
1637
|
-
this.
|
|
1635
|
+
this.x3w_1 = _this__u8e3s4;
|
|
1636
|
+
this.y3w_1 = channel;
|
|
1637
|
+
this.z3w_1 = limit;
|
|
1638
1638
|
}
|
|
1639
1639
|
protoOf($copyToCOROUTINE$).j9 = function () {
|
|
1640
1640
|
var suspendResult = this.d9_1;
|
|
@@ -1644,7 +1644,7 @@ protoOf($copyToCOROUTINE$).j9 = function () {
|
|
|
1644
1644
|
switch (tmp) {
|
|
1645
1645
|
case 0:
|
|
1646
1646
|
this.c9_1 = 12;
|
|
1647
|
-
this.
|
|
1647
|
+
this.a3x_1 = this.z3w_1;
|
|
1648
1648
|
this.b9_1 = 1;
|
|
1649
1649
|
continue $sm;
|
|
1650
1650
|
case 1:
|
|
@@ -1653,14 +1653,14 @@ protoOf($copyToCOROUTINE$).j9 = function () {
|
|
|
1653
1653
|
this.b9_1 = 2;
|
|
1654
1654
|
continue $sm;
|
|
1655
1655
|
case 2:
|
|
1656
|
-
if (!(!this.
|
|
1656
|
+
if (!(!this.x3w_1.y3s() && compare(this.a3x_1, new Long(0, 0)) > 0)) {
|
|
1657
1657
|
this.b9_1 = 6;
|
|
1658
1658
|
continue $sm;
|
|
1659
1659
|
}
|
|
1660
1660
|
|
|
1661
|
-
if (this.
|
|
1661
|
+
if (this.x3w_1.v3s().q3n()) {
|
|
1662
1662
|
this.b9_1 = 3;
|
|
1663
|
-
suspendResult = this.
|
|
1663
|
+
suspendResult = this.x3w_1.a3t(VOID, this);
|
|
1664
1664
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1665
1665
|
return suspendResult;
|
|
1666
1666
|
}
|
|
@@ -1674,13 +1674,13 @@ protoOf($copyToCOROUTINE$).j9 = function () {
|
|
|
1674
1674
|
this.b9_1 = 4;
|
|
1675
1675
|
continue $sm;
|
|
1676
1676
|
case 4:
|
|
1677
|
-
var tmp0 = this.
|
|
1678
|
-
var b = get_remaining(this.
|
|
1677
|
+
var tmp0 = this.a3x_1;
|
|
1678
|
+
var b = get_remaining(this.x3w_1.v3s());
|
|
1679
1679
|
var count = compare(tmp0, b) <= 0 ? tmp0 : b;
|
|
1680
|
-
this.
|
|
1681
|
-
this.
|
|
1680
|
+
this.x3w_1.v3s().s3o(this.y3w_1.w3s(), count);
|
|
1681
|
+
this.a3x_1 = subtract(this.a3x_1, count);
|
|
1682
1682
|
this.b9_1 = 5;
|
|
1683
|
-
suspendResult = this.
|
|
1683
|
+
suspendResult = this.y3w_1.t3s(this);
|
|
1684
1684
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1685
1685
|
return suspendResult;
|
|
1686
1686
|
}
|
|
@@ -1698,8 +1698,8 @@ protoOf($copyToCOROUTINE$).j9 = function () {
|
|
|
1698
1698
|
var tmp_0 = this.e9_1;
|
|
1699
1699
|
if (tmp_0 instanceof Error) {
|
|
1700
1700
|
var cause = this.e9_1;
|
|
1701
|
-
this.
|
|
1702
|
-
close_0(this.
|
|
1701
|
+
this.x3w_1.c3t(cause);
|
|
1702
|
+
close_0(this.y3w_1, cause);
|
|
1703
1703
|
throw cause;
|
|
1704
1704
|
} else {
|
|
1705
1705
|
throw this.e9_1;
|
|
@@ -1707,27 +1707,27 @@ protoOf($copyToCOROUTINE$).j9 = function () {
|
|
|
1707
1707
|
|
|
1708
1708
|
case 8:
|
|
1709
1709
|
this.c9_1 = 12;
|
|
1710
|
-
this.
|
|
1710
|
+
this.b3x_1 = this.e9_1;
|
|
1711
1711
|
this.b9_1 = 9;
|
|
1712
|
-
suspendResult = this.
|
|
1712
|
+
suspendResult = this.y3w_1.t3s(this);
|
|
1713
1713
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1714
1714
|
return suspendResult;
|
|
1715
1715
|
}
|
|
1716
1716
|
|
|
1717
1717
|
continue $sm;
|
|
1718
1718
|
case 9:
|
|
1719
|
-
throw this.
|
|
1719
|
+
throw this.b3x_1;
|
|
1720
1720
|
case 10:
|
|
1721
1721
|
this.c9_1 = 12;
|
|
1722
1722
|
this.b9_1 = 11;
|
|
1723
|
-
suspendResult = this.
|
|
1723
|
+
suspendResult = this.y3w_1.t3s(this);
|
|
1724
1724
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1725
1725
|
return suspendResult;
|
|
1726
1726
|
}
|
|
1727
1727
|
|
|
1728
1728
|
continue $sm;
|
|
1729
1729
|
case 11:
|
|
1730
|
-
return subtract(this.
|
|
1730
|
+
return subtract(this.z3w_1, this.a3x_1);
|
|
1731
1731
|
case 12:
|
|
1732
1732
|
throw this.e9_1;
|
|
1733
1733
|
}
|
|
@@ -1744,8 +1744,8 @@ protoOf($copyToCOROUTINE$).j9 = function () {
|
|
|
1744
1744
|
};
|
|
1745
1745
|
function $skipIfFoundCOROUTINE$(_this__u8e3s4, byteString, resultContinuation) {
|
|
1746
1746
|
CoroutineImpl.call(this, resultContinuation);
|
|
1747
|
-
this.
|
|
1748
|
-
this.
|
|
1747
|
+
this.k3x_1 = _this__u8e3s4;
|
|
1748
|
+
this.l3x_1 = byteString;
|
|
1749
1749
|
}
|
|
1750
1750
|
protoOf($skipIfFoundCOROUTINE$).j9 = function () {
|
|
1751
1751
|
var suspendResult = this.d9_1;
|
|
@@ -1756,7 +1756,7 @@ protoOf($skipIfFoundCOROUTINE$).j9 = function () {
|
|
|
1756
1756
|
case 0:
|
|
1757
1757
|
this.c9_1 = 4;
|
|
1758
1758
|
this.b9_1 = 1;
|
|
1759
|
-
suspendResult = peek(this.
|
|
1759
|
+
suspendResult = peek(this.k3x_1, this.l3x_1.e1(), this);
|
|
1760
1760
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1761
1761
|
return suspendResult;
|
|
1762
1762
|
}
|
|
@@ -1764,9 +1764,9 @@ protoOf($skipIfFoundCOROUTINE$).j9 = function () {
|
|
|
1764
1764
|
continue $sm;
|
|
1765
1765
|
case 1:
|
|
1766
1766
|
var ARGUMENT = suspendResult;
|
|
1767
|
-
if (equals(ARGUMENT, this.
|
|
1767
|
+
if (equals(ARGUMENT, this.l3x_1)) {
|
|
1768
1768
|
this.b9_1 = 3;
|
|
1769
|
-
suspendResult = discard(this.
|
|
1769
|
+
suspendResult = discard(this.k3x_1, fromInt(this.l3x_1.e1()), this);
|
|
1770
1770
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1771
1771
|
return suspendResult;
|
|
1772
1772
|
}
|
|
@@ -1796,8 +1796,8 @@ protoOf($skipIfFoundCOROUTINE$).j9 = function () {
|
|
|
1796
1796
|
};
|
|
1797
1797
|
function $readPacketCOROUTINE$(_this__u8e3s4, packet, resultContinuation) {
|
|
1798
1798
|
CoroutineImpl.call(this, resultContinuation);
|
|
1799
|
-
this.
|
|
1800
|
-
this.
|
|
1799
|
+
this.u3x_1 = _this__u8e3s4;
|
|
1800
|
+
this.v3x_1 = packet;
|
|
1801
1801
|
}
|
|
1802
1802
|
protoOf($readPacketCOROUTINE$).j9 = function () {
|
|
1803
1803
|
var suspendResult = this.d9_1;
|
|
@@ -1807,18 +1807,18 @@ protoOf($readPacketCOROUTINE$).j9 = function () {
|
|
|
1807
1807
|
switch (tmp) {
|
|
1808
1808
|
case 0:
|
|
1809
1809
|
this.c9_1 = 6;
|
|
1810
|
-
this.
|
|
1810
|
+
this.w3x_1 = new Buffer();
|
|
1811
1811
|
this.b9_1 = 1;
|
|
1812
1812
|
continue $sm;
|
|
1813
1813
|
case 1:
|
|
1814
|
-
if (!(compare(this.
|
|
1814
|
+
if (!(compare(this.w3x_1.e1(), fromInt(this.v3x_1)) < 0)) {
|
|
1815
1815
|
this.b9_1 = 5;
|
|
1816
1816
|
continue $sm;
|
|
1817
1817
|
}
|
|
1818
1818
|
|
|
1819
|
-
if (this.
|
|
1819
|
+
if (this.u3x_1.v3s().q3n()) {
|
|
1820
1820
|
this.b9_1 = 2;
|
|
1821
|
-
suspendResult = this.
|
|
1821
|
+
suspendResult = this.u3x_1.a3t(VOID, this);
|
|
1822
1822
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1823
1823
|
return suspendResult;
|
|
1824
1824
|
}
|
|
@@ -1832,7 +1832,7 @@ protoOf($readPacketCOROUTINE$).j9 = function () {
|
|
|
1832
1832
|
this.b9_1 = 3;
|
|
1833
1833
|
continue $sm;
|
|
1834
1834
|
case 3:
|
|
1835
|
-
if (this.
|
|
1835
|
+
if (this.u3x_1.y3s()) {
|
|
1836
1836
|
this.b9_1 = 5;
|
|
1837
1837
|
continue $sm;
|
|
1838
1838
|
} else {
|
|
@@ -1841,20 +1841,20 @@ protoOf($readPacketCOROUTINE$).j9 = function () {
|
|
|
1841
1841
|
}
|
|
1842
1842
|
|
|
1843
1843
|
case 4:
|
|
1844
|
-
if (compare(get_remaining(this.
|
|
1845
|
-
this.
|
|
1844
|
+
if (compare(get_remaining(this.u3x_1.v3s()), subtract(numberToLong(this.v3x_1), this.w3x_1.e1())) > 0) {
|
|
1845
|
+
this.u3x_1.v3s().s3o(this.w3x_1, subtract(numberToLong(this.v3x_1), this.w3x_1.e1()));
|
|
1846
1846
|
} else {
|
|
1847
|
-
this.
|
|
1847
|
+
this.u3x_1.v3s().t3o(this.w3x_1);
|
|
1848
1848
|
}
|
|
1849
1849
|
|
|
1850
1850
|
this.b9_1 = 1;
|
|
1851
1851
|
continue $sm;
|
|
1852
1852
|
case 5:
|
|
1853
|
-
if (compare(this.
|
|
1854
|
-
throw EOFException_init_$Create$('Not enough data available, required ' + this.
|
|
1853
|
+
if (compare(this.w3x_1.e1(), fromInt(this.v3x_1)) < 0) {
|
|
1854
|
+
throw EOFException_init_$Create$('Not enough data available, required ' + this.v3x_1 + ' bytes but only ' + this.w3x_1.e1().toString() + ' available');
|
|
1855
1855
|
}
|
|
1856
1856
|
|
|
1857
|
-
return this.
|
|
1857
|
+
return this.w3x_1;
|
|
1858
1858
|
case 6:
|
|
1859
1859
|
throw this.e9_1;
|
|
1860
1860
|
}
|
|
@@ -1871,8 +1871,8 @@ protoOf($readPacketCOROUTINE$).j9 = function () {
|
|
|
1871
1871
|
};
|
|
1872
1872
|
function $peekCOROUTINE$(_this__u8e3s4, count, resultContinuation) {
|
|
1873
1873
|
CoroutineImpl.call(this, resultContinuation);
|
|
1874
|
-
this.
|
|
1875
|
-
this.
|
|
1874
|
+
this.f3y_1 = _this__u8e3s4;
|
|
1875
|
+
this.g3y_1 = count;
|
|
1876
1876
|
}
|
|
1877
1877
|
protoOf($peekCOROUTINE$).j9 = function () {
|
|
1878
1878
|
var suspendResult = this.d9_1;
|
|
@@ -1882,10 +1882,10 @@ protoOf($peekCOROUTINE$).j9 = function () {
|
|
|
1882
1882
|
switch (tmp) {
|
|
1883
1883
|
case 0:
|
|
1884
1884
|
this.c9_1 = 3;
|
|
1885
|
-
if (this.
|
|
1885
|
+
if (this.f3y_1.y3s())
|
|
1886
1886
|
return null;
|
|
1887
1887
|
this.b9_1 = 1;
|
|
1888
|
-
suspendResult = this.
|
|
1888
|
+
suspendResult = this.f3y_1.z3s(this.g3y_1, this);
|
|
1889
1889
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1890
1890
|
return suspendResult;
|
|
1891
1891
|
}
|
|
@@ -1900,7 +1900,7 @@ protoOf($peekCOROUTINE$).j9 = function () {
|
|
|
1900
1900
|
}
|
|
1901
1901
|
|
|
1902
1902
|
case 2:
|
|
1903
|
-
return readByteString(this.
|
|
1903
|
+
return readByteString(this.f3y_1.v3s().u3o(), this.g3y_1);
|
|
1904
1904
|
case 3:
|
|
1905
1905
|
throw this.e9_1;
|
|
1906
1906
|
}
|
|
@@ -1917,11 +1917,11 @@ protoOf($peekCOROUTINE$).j9 = function () {
|
|
|
1917
1917
|
};
|
|
1918
1918
|
function $internalReadLineToCOROUTINE$(_this__u8e3s4, out, limit, lenientLineEnding, throwOnIncompleteLine, resultContinuation) {
|
|
1919
1919
|
CoroutineImpl.call(this, resultContinuation);
|
|
1920
|
-
this.
|
|
1921
|
-
this.
|
|
1922
|
-
this.
|
|
1923
|
-
this.
|
|
1924
|
-
this.
|
|
1920
|
+
this.p3y_1 = _this__u8e3s4;
|
|
1921
|
+
this.q3y_1 = out;
|
|
1922
|
+
this.r3y_1 = limit;
|
|
1923
|
+
this.s3y_1 = lenientLineEnding;
|
|
1924
|
+
this.t3y_1 = throwOnIncompleteLine;
|
|
1925
1925
|
}
|
|
1926
1926
|
protoOf($internalReadLineToCOROUTINE$).j9 = function () {
|
|
1927
1927
|
var suspendResult = this.d9_1;
|
|
@@ -1931,10 +1931,10 @@ protoOf($internalReadLineToCOROUTINE$).j9 = function () {
|
|
|
1931
1931
|
switch (tmp) {
|
|
1932
1932
|
case 0:
|
|
1933
1933
|
this.c9_1 = 27;
|
|
1934
|
-
this.
|
|
1935
|
-
if (this.
|
|
1934
|
+
this.x3y_1 = this.p3y_1.v3s();
|
|
1935
|
+
if (this.x3y_1.q3n()) {
|
|
1936
1936
|
this.b9_1 = 1;
|
|
1937
|
-
suspendResult = this.
|
|
1937
|
+
suspendResult = this.p3y_1.a3t(VOID, this);
|
|
1938
1938
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1939
1939
|
return suspendResult;
|
|
1940
1940
|
}
|
|
@@ -1948,10 +1948,10 @@ protoOf($internalReadLineToCOROUTINE$).j9 = function () {
|
|
|
1948
1948
|
this.b9_1 = 2;
|
|
1949
1949
|
continue $sm;
|
|
1950
1950
|
case 2:
|
|
1951
|
-
if (this.
|
|
1951
|
+
if (this.p3y_1.y3s())
|
|
1952
1952
|
return new Long(-1, -1);
|
|
1953
|
-
this.
|
|
1954
|
-
this.
|
|
1953
|
+
this.w3y_1 = {_v: new Long(0, 0)};
|
|
1954
|
+
this.u3y_1 = {_v: null};
|
|
1955
1955
|
this.b9_1 = 3;
|
|
1956
1956
|
continue $sm;
|
|
1957
1957
|
case 3:
|
|
@@ -1962,18 +1962,18 @@ protoOf($internalReadLineToCOROUTINE$).j9 = function () {
|
|
|
1962
1962
|
this.b9_1 = 5;
|
|
1963
1963
|
continue $sm;
|
|
1964
1964
|
case 5:
|
|
1965
|
-
if (!(compare(this.
|
|
1965
|
+
if (!(compare(this.w3y_1._v, this.r3y_1) < 0 && !this.p3y_1.y3s())) {
|
|
1966
1966
|
this.b9_1 = 15;
|
|
1967
1967
|
continue $sm;
|
|
1968
1968
|
}
|
|
1969
1969
|
|
|
1970
|
-
this.
|
|
1971
|
-
this.
|
|
1972
|
-
var crIndex = internalReadLineTo$scanForSoleCr(this.
|
|
1970
|
+
this.a3z_1 = subtract(this.r3y_1, this.w3y_1._v);
|
|
1971
|
+
this.b3z_1 = indexOf(this.x3y_1, 10, VOID, this.a3z_1);
|
|
1972
|
+
var crIndex = internalReadLineTo$scanForSoleCr(this.x3y_1, this.s3y_1, this.b3z_1, this.a3z_1);
|
|
1973
1973
|
if (compare(crIndex, new Long(0, 0)) >= 0) {
|
|
1974
|
-
internalReadLineTo$appendOrBuffer(this.
|
|
1975
|
-
discard_0(this.
|
|
1976
|
-
this.
|
|
1974
|
+
internalReadLineTo$appendOrBuffer(this.u3y_1, this.q3y_1, this.x3y_1, this.w3y_1, crIndex);
|
|
1975
|
+
discard_0(this.x3y_1, new Long(1, 0));
|
|
1976
|
+
this.v3y_1 = this.w3y_1._v;
|
|
1977
1977
|
this.c9_1 = 27;
|
|
1978
1978
|
this.b9_1 = 25;
|
|
1979
1979
|
continue $sm;
|
|
@@ -1983,9 +1983,9 @@ protoOf($internalReadLineToCOROUTINE$).j9 = function () {
|
|
|
1983
1983
|
}
|
|
1984
1984
|
|
|
1985
1985
|
case 6:
|
|
1986
|
-
if (equalsLong(this.
|
|
1987
|
-
discard_0(this.
|
|
1988
|
-
this.
|
|
1986
|
+
if (equalsLong(this.b3z_1, new Long(0, 0))) {
|
|
1987
|
+
discard_0(this.x3y_1, new Long(1, 0));
|
|
1988
|
+
this.v3y_1 = this.w3y_1._v;
|
|
1989
1989
|
this.c9_1 = 27;
|
|
1990
1990
|
this.b9_1 = 25;
|
|
1991
1991
|
continue $sm;
|
|
@@ -1995,19 +1995,19 @@ protoOf($internalReadLineToCOROUTINE$).j9 = function () {
|
|
|
1995
1995
|
}
|
|
1996
1996
|
|
|
1997
1997
|
case 7:
|
|
1998
|
-
if (compare(this.
|
|
1998
|
+
if (compare(this.b3z_1, new Long(0, 0)) > 0) {
|
|
1999
1999
|
var tmp_0;
|
|
2000
|
-
var tmp_1 = this.
|
|
2001
|
-
var this_0 = this.
|
|
2002
|
-
if (tmp_1.
|
|
2000
|
+
var tmp_1 = this.x3y_1.p3n();
|
|
2001
|
+
var this_0 = this.b3z_1;
|
|
2002
|
+
if (tmp_1.l3o(subtract(this_0, fromInt(1))) === 13) {
|
|
2003
2003
|
tmp_0 = new Long(1, 0);
|
|
2004
2004
|
} else {
|
|
2005
2005
|
tmp_0 = new Long(0, 0);
|
|
2006
2006
|
}
|
|
2007
2007
|
var isCrlf = tmp_0;
|
|
2008
|
-
internalReadLineTo$appendOrBuffer(this.
|
|
2009
|
-
discard_0(this.
|
|
2010
|
-
this.
|
|
2008
|
+
internalReadLineTo$appendOrBuffer(this.u3y_1, this.q3y_1, this.x3y_1, this.w3y_1, subtract(this.b3z_1, isCrlf));
|
|
2009
|
+
discard_0(this.x3y_1, add(numberToLong(1), isCrlf));
|
|
2010
|
+
this.v3y_1 = this.w3y_1._v;
|
|
2011
2011
|
this.c9_1 = 27;
|
|
2012
2012
|
this.b9_1 = 25;
|
|
2013
2013
|
continue $sm;
|
|
@@ -2017,32 +2017,32 @@ protoOf($internalReadLineToCOROUTINE$).j9 = function () {
|
|
|
2017
2017
|
}
|
|
2018
2018
|
|
|
2019
2019
|
case 8:
|
|
2020
|
-
var tmp0 = this.
|
|
2021
|
-
var b = get_remaining(this.
|
|
2020
|
+
var tmp0 = this.a3z_1;
|
|
2021
|
+
var b = get_remaining(this.x3y_1);
|
|
2022
2022
|
var count = compare(tmp0, b) <= 0 ? tmp0 : b;
|
|
2023
|
-
var tmp_2 = this.
|
|
2024
|
-
if (tmp_2.
|
|
2025
|
-
internalReadLineTo$appendOrBuffer(this.
|
|
2023
|
+
var tmp_2 = this.x3y_1.p3n();
|
|
2024
|
+
if (tmp_2.l3o(subtract(count, fromInt(1))) === 13) {
|
|
2025
|
+
internalReadLineTo$appendOrBuffer(this.u3y_1, this.q3y_1, this.x3y_1, this.w3y_1, subtract(count, fromInt(1)));
|
|
2026
2026
|
this.b9_1 = 9;
|
|
2027
|
-
suspendResult = internalReadLineTo$discardCrlfOrCr(this.
|
|
2027
|
+
suspendResult = internalReadLineTo$discardCrlfOrCr(this.x3y_1, this.p3y_1, this.s3y_1, this);
|
|
2028
2028
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2029
2029
|
return suspendResult;
|
|
2030
2030
|
}
|
|
2031
2031
|
continue $sm;
|
|
2032
2032
|
} else {
|
|
2033
|
-
internalReadLineTo$bufferBytes(this.
|
|
2033
|
+
internalReadLineTo$bufferBytes(this.u3y_1, this.x3y_1, this.w3y_1, count);
|
|
2034
2034
|
this.b9_1 = 11;
|
|
2035
2035
|
continue $sm;
|
|
2036
2036
|
}
|
|
2037
2037
|
|
|
2038
2038
|
case 9:
|
|
2039
2039
|
if (suspendResult) {
|
|
2040
|
-
this.
|
|
2040
|
+
this.v3y_1 = this.w3y_1._v;
|
|
2041
2041
|
this.c9_1 = 27;
|
|
2042
2042
|
this.b9_1 = 25;
|
|
2043
2043
|
continue $sm;
|
|
2044
2044
|
} else {
|
|
2045
|
-
internalReadLineTo$bufferBytes(this.
|
|
2045
|
+
internalReadLineTo$bufferBytes(this.u3y_1, this.x3y_1, this.w3y_1, new Long(1, 0));
|
|
2046
2046
|
this.b9_1 = 10;
|
|
2047
2047
|
continue $sm;
|
|
2048
2048
|
}
|
|
@@ -2051,25 +2051,25 @@ protoOf($internalReadLineToCOROUTINE$).j9 = function () {
|
|
|
2051
2051
|
this.b9_1 = 11;
|
|
2052
2052
|
continue $sm;
|
|
2053
2053
|
case 11:
|
|
2054
|
-
if (compare(this.
|
|
2054
|
+
if (compare(this.w3y_1._v, this.r3y_1) < 0 && equalsLong(get_remaining(this.x3y_1), new Long(0, 0))) {
|
|
2055
2055
|
this.b9_1 = 12;
|
|
2056
|
-
suspendResult = this.
|
|
2056
|
+
suspendResult = this.p3y_1.a3t(VOID, this);
|
|
2057
2057
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2058
2058
|
return suspendResult;
|
|
2059
2059
|
}
|
|
2060
2060
|
continue $sm;
|
|
2061
2061
|
} else {
|
|
2062
|
-
this.
|
|
2062
|
+
this.z3y_1 = false;
|
|
2063
2063
|
this.b9_1 = 13;
|
|
2064
2064
|
continue $sm;
|
|
2065
2065
|
}
|
|
2066
2066
|
|
|
2067
2067
|
case 12:
|
|
2068
|
-
this.
|
|
2068
|
+
this.z3y_1 = !suspendResult;
|
|
2069
2069
|
this.b9_1 = 13;
|
|
2070
2070
|
continue $sm;
|
|
2071
2071
|
case 13:
|
|
2072
|
-
if (this.
|
|
2072
|
+
if (this.z3y_1) {
|
|
2073
2073
|
this.b9_1 = 15;
|
|
2074
2074
|
continue $sm;
|
|
2075
2075
|
} else {
|
|
@@ -2081,8 +2081,8 @@ protoOf($internalReadLineToCOROUTINE$).j9 = function () {
|
|
|
2081
2081
|
this.b9_1 = 5;
|
|
2082
2082
|
continue $sm;
|
|
2083
2083
|
case 15:
|
|
2084
|
-
if (equalsLong(this.
|
|
2085
|
-
this.
|
|
2084
|
+
if (equalsLong(this.w3y_1._v, new Long(0, 0)) && this.p3y_1.y3s()) {
|
|
2085
|
+
this.v3y_1 = new Long(-1, -1);
|
|
2086
2086
|
this.c9_1 = 27;
|
|
2087
2087
|
this.b9_1 = 25;
|
|
2088
2088
|
continue $sm;
|
|
@@ -2092,23 +2092,23 @@ protoOf($internalReadLineToCOROUTINE$).j9 = function () {
|
|
|
2092
2092
|
}
|
|
2093
2093
|
|
|
2094
2094
|
case 16:
|
|
2095
|
-
if (!(compare(this.
|
|
2096
|
-
var message = 'Consumed bytes exceed the limit: ' + this.
|
|
2095
|
+
if (!(compare(this.w3y_1._v, this.r3y_1) <= 0)) {
|
|
2096
|
+
var message = 'Consumed bytes exceed the limit: ' + this.w3y_1._v.toString() + ' > ' + this.r3y_1.toString() + ". It's an implementation bug, please report it.";
|
|
2097
2097
|
throw IllegalStateException_init_$Create$(toString_1(message));
|
|
2098
2098
|
}
|
|
2099
2099
|
|
|
2100
|
-
if (equalsLong(this.
|
|
2101
|
-
if (equalsLong(this.
|
|
2100
|
+
if (equalsLong(this.w3y_1._v, this.r3y_1)) {
|
|
2101
|
+
if (equalsLong(this.r3y_1, new Long(-1, 2147483647)))
|
|
2102
2102
|
throw new TooLongLineException('Max line length exceeded');
|
|
2103
|
-
if (equalsLong(get_remaining(this.
|
|
2103
|
+
if (equalsLong(get_remaining(this.x3y_1), new Long(0, 0))) {
|
|
2104
2104
|
this.b9_1 = 18;
|
|
2105
|
-
suspendResult = this.
|
|
2105
|
+
suspendResult = this.p3y_1.a3t(VOID, this);
|
|
2106
2106
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2107
2107
|
return suspendResult;
|
|
2108
2108
|
}
|
|
2109
2109
|
continue $sm;
|
|
2110
2110
|
} else {
|
|
2111
|
-
this.
|
|
2111
|
+
this.y3y_1 = false;
|
|
2112
2112
|
this.b9_1 = 19;
|
|
2113
2113
|
continue $sm;
|
|
2114
2114
|
}
|
|
@@ -2118,22 +2118,22 @@ protoOf($internalReadLineToCOROUTINE$).j9 = function () {
|
|
|
2118
2118
|
}
|
|
2119
2119
|
|
|
2120
2120
|
case 17:
|
|
2121
|
-
if (this.
|
|
2122
|
-
throwEndOfStreamException(this.
|
|
2121
|
+
if (this.t3y_1) {
|
|
2122
|
+
throwEndOfStreamException(this.w3y_1._v);
|
|
2123
2123
|
}
|
|
2124
2124
|
|
|
2125
|
-
this.
|
|
2125
|
+
this.v3y_1 = this.w3y_1._v;
|
|
2126
2126
|
this.c9_1 = 27;
|
|
2127
2127
|
this.b9_1 = 25;
|
|
2128
2128
|
var tmp_3 = this;
|
|
2129
2129
|
continue $sm;
|
|
2130
2130
|
case 18:
|
|
2131
|
-
this.
|
|
2131
|
+
this.y3y_1 = !suspendResult;
|
|
2132
2132
|
this.b9_1 = 19;
|
|
2133
2133
|
continue $sm;
|
|
2134
2134
|
case 19:
|
|
2135
|
-
if (this.
|
|
2136
|
-
throwEndOfStreamException(this.
|
|
2135
|
+
if (this.y3y_1) {
|
|
2136
|
+
throwEndOfStreamException(this.w3y_1._v);
|
|
2137
2137
|
} else {
|
|
2138
2138
|
this.b9_1 = 20;
|
|
2139
2139
|
continue $sm;
|
|
@@ -2141,17 +2141,17 @@ protoOf($internalReadLineToCOROUTINE$).j9 = function () {
|
|
|
2141
2141
|
|
|
2142
2142
|
break;
|
|
2143
2143
|
case 20:
|
|
2144
|
-
var tmp0_subject = this.
|
|
2144
|
+
var tmp0_subject = this.x3y_1.p3n().l3o(new Long(0, 0));
|
|
2145
2145
|
if (tmp0_subject === 10) {
|
|
2146
|
-
discard_0(this.
|
|
2147
|
-
this.
|
|
2146
|
+
discard_0(this.x3y_1, new Long(1, 0));
|
|
2147
|
+
this.v3y_1 = this.w3y_1._v;
|
|
2148
2148
|
this.c9_1 = 27;
|
|
2149
2149
|
this.b9_1 = 25;
|
|
2150
2150
|
continue $sm;
|
|
2151
2151
|
} else {
|
|
2152
2152
|
if (tmp0_subject === 13) {
|
|
2153
2153
|
this.b9_1 = 21;
|
|
2154
|
-
suspendResult = internalReadLineTo$discardCrlfOrCr(this.
|
|
2154
|
+
suspendResult = internalReadLineTo$discardCrlfOrCr(this.x3y_1, this.p3y_1, this.s3y_1, this);
|
|
2155
2155
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2156
2156
|
return suspendResult;
|
|
2157
2157
|
}
|
|
@@ -2164,7 +2164,7 @@ protoOf($internalReadLineToCOROUTINE$).j9 = function () {
|
|
|
2164
2164
|
|
|
2165
2165
|
case 21:
|
|
2166
2166
|
if (suspendResult) {
|
|
2167
|
-
this.
|
|
2167
|
+
this.v3y_1 = this.w3y_1._v;
|
|
2168
2168
|
this.c9_1 = 27;
|
|
2169
2169
|
this.b9_1 = 25;
|
|
2170
2170
|
continue $sm;
|
|
@@ -2177,28 +2177,28 @@ protoOf($internalReadLineToCOROUTINE$).j9 = function () {
|
|
|
2177
2177
|
this.b9_1 = 23;
|
|
2178
2178
|
continue $sm;
|
|
2179
2179
|
case 23:
|
|
2180
|
-
throwTooLongLineException(this.
|
|
2180
|
+
throwTooLongLineException(this.r3y_1);
|
|
2181
2181
|
break;
|
|
2182
2182
|
case 24:
|
|
2183
2183
|
this.c9_1 = 27;
|
|
2184
2184
|
var t = this.e9_1;
|
|
2185
|
-
if (!(this.
|
|
2186
|
-
this.
|
|
2185
|
+
if (!(this.u3y_1._v == null)) {
|
|
2186
|
+
this.q3y_1.c1(readString_0(this.u3y_1._v));
|
|
2187
2187
|
}
|
|
2188
2188
|
|
|
2189
2189
|
throw t;
|
|
2190
2190
|
case 25:
|
|
2191
|
-
var tmp_4 = this.
|
|
2191
|
+
var tmp_4 = this.v3y_1;
|
|
2192
2192
|
this.c9_1 = 27;
|
|
2193
|
-
if (!(this.
|
|
2194
|
-
this.
|
|
2193
|
+
if (!(this.u3y_1._v == null)) {
|
|
2194
|
+
this.q3y_1.c1(readString_0(this.u3y_1._v));
|
|
2195
2195
|
}
|
|
2196
2196
|
|
|
2197
2197
|
return tmp_4;
|
|
2198
2198
|
case 26:
|
|
2199
2199
|
this.c9_1 = 27;
|
|
2200
|
-
if (!(this.
|
|
2201
|
-
this.
|
|
2200
|
+
if (!(this.u3y_1._v == null)) {
|
|
2201
|
+
this.q3y_1.c1(readString_0(this.u3y_1._v));
|
|
2202
2202
|
}
|
|
2203
2203
|
|
|
2204
2204
|
return Unit_instance;
|
|
@@ -2218,9 +2218,9 @@ protoOf($internalReadLineToCOROUTINE$).j9 = function () {
|
|
|
2218
2218
|
};
|
|
2219
2219
|
function $internalReadLineTo$discardCrlfOrCrCOROUTINE$(_this__u8e3s4, $this_internalReadLineTo, $lenientLineEnding, resultContinuation) {
|
|
2220
2220
|
CoroutineImpl.call(this, resultContinuation);
|
|
2221
|
-
this.
|
|
2222
|
-
this.
|
|
2223
|
-
this.
|
|
2221
|
+
this.k3z_1 = _this__u8e3s4;
|
|
2222
|
+
this.l3z_1 = $this_internalReadLineTo;
|
|
2223
|
+
this.m3z_1 = $lenientLineEnding;
|
|
2224
2224
|
}
|
|
2225
2225
|
protoOf($internalReadLineTo$discardCrlfOrCrCOROUTINE$).j9 = function () {
|
|
2226
2226
|
var suspendResult = this.d9_1;
|
|
@@ -2230,13 +2230,13 @@ protoOf($internalReadLineTo$discardCrlfOrCrCOROUTINE$).j9 = function () {
|
|
|
2230
2230
|
switch (tmp) {
|
|
2231
2231
|
case 0:
|
|
2232
2232
|
this.c9_1 = 5;
|
|
2233
|
-
if (compare(get_remaining(this.
|
|
2234
|
-
this.
|
|
2233
|
+
if (compare(get_remaining(this.k3z_1), new Long(2, 0)) >= 0) {
|
|
2234
|
+
this.o3z_1 = true;
|
|
2235
2235
|
this.b9_1 = 2;
|
|
2236
2236
|
continue $sm;
|
|
2237
2237
|
} else {
|
|
2238
2238
|
this.b9_1 = 1;
|
|
2239
|
-
suspendResult = this.
|
|
2239
|
+
suspendResult = this.l3z_1.z3s(2, this);
|
|
2240
2240
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2241
2241
|
return suspendResult;
|
|
2242
2242
|
}
|
|
@@ -2244,23 +2244,23 @@ protoOf($internalReadLineTo$discardCrlfOrCrCOROUTINE$).j9 = function () {
|
|
|
2244
2244
|
}
|
|
2245
2245
|
|
|
2246
2246
|
case 1:
|
|
2247
|
-
this.
|
|
2247
|
+
this.o3z_1 = suspendResult;
|
|
2248
2248
|
this.b9_1 = 2;
|
|
2249
2249
|
continue $sm;
|
|
2250
2250
|
case 2:
|
|
2251
|
-
if (this.
|
|
2252
|
-
this.
|
|
2251
|
+
if (this.o3z_1) {
|
|
2252
|
+
this.n3z_1 = this.k3z_1.p3n().l3o(new Long(1, 0)) === 10;
|
|
2253
2253
|
this.b9_1 = 3;
|
|
2254
2254
|
continue $sm;
|
|
2255
2255
|
} else {
|
|
2256
|
-
this.
|
|
2256
|
+
this.n3z_1 = false;
|
|
2257
2257
|
this.b9_1 = 3;
|
|
2258
2258
|
continue $sm;
|
|
2259
2259
|
}
|
|
2260
2260
|
|
|
2261
2261
|
case 3:
|
|
2262
|
-
if (this.
|
|
2263
|
-
discard_0(this.
|
|
2262
|
+
if (this.n3z_1) {
|
|
2263
|
+
discard_0(this.k3z_1, new Long(2, 0));
|
|
2264
2264
|
return true;
|
|
2265
2265
|
} else {
|
|
2266
2266
|
this.b9_1 = 4;
|
|
@@ -2268,8 +2268,8 @@ protoOf($internalReadLineTo$discardCrlfOrCrCOROUTINE$).j9 = function () {
|
|
|
2268
2268
|
}
|
|
2269
2269
|
|
|
2270
2270
|
case 4:
|
|
2271
|
-
if (this.
|
|
2272
|
-
discard_0(this.
|
|
2271
|
+
if (this.m3z_1) {
|
|
2272
|
+
discard_0(this.k3z_1, new Long(1, 0));
|
|
2273
2273
|
return true;
|
|
2274
2274
|
}
|
|
2275
2275
|
|
|
@@ -2298,7 +2298,7 @@ function flushIfNeeded(_this__u8e3s4, $completion) {
|
|
|
2298
2298
|
}
|
|
2299
2299
|
function $flushIfNeededCOROUTINE$(_this__u8e3s4, resultContinuation) {
|
|
2300
2300
|
CoroutineImpl.call(this, resultContinuation);
|
|
2301
|
-
this.
|
|
2301
|
+
this.x3z_1 = _this__u8e3s4;
|
|
2302
2302
|
}
|
|
2303
2303
|
protoOf($flushIfNeededCOROUTINE$).j9 = function () {
|
|
2304
2304
|
var suspendResult = this.d9_1;
|
|
@@ -2308,10 +2308,10 @@ protoOf($flushIfNeededCOROUTINE$).j9 = function () {
|
|
|
2308
2308
|
switch (tmp) {
|
|
2309
2309
|
case 0:
|
|
2310
2310
|
this.c9_1 = 3;
|
|
2311
|
-
rethrowCloseCauseIfNeeded_1(this.
|
|
2312
|
-
if (this.
|
|
2311
|
+
rethrowCloseCauseIfNeeded_1(this.x3z_1);
|
|
2312
|
+
if (this.x3z_1.u3s() || get_size(this.x3z_1.w3s()) >= 1048576) {
|
|
2313
2313
|
this.b9_1 = 1;
|
|
2314
|
-
suspendResult = this.
|
|
2314
|
+
suspendResult = this.x3z_1.t3s(this);
|
|
2315
2315
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2316
2316
|
return suspendResult;
|
|
2317
2317
|
}
|
|
@@ -2343,7 +2343,7 @@ protoOf($flushIfNeededCOROUTINE$).j9 = function () {
|
|
|
2343
2343
|
function ByteWriteChannel$flushAndClose$ref(p0) {
|
|
2344
2344
|
var i = new ByteWriteChannel$flushAndClose$ref_0(p0);
|
|
2345
2345
|
return constructCallableReference(function ($completion) {
|
|
2346
|
-
return i.
|
|
2346
|
+
return i.c40($completion);
|
|
2347
2347
|
}, 0, 1, 17, 'flushAndClose', [p0]);
|
|
2348
2348
|
}
|
|
2349
2349
|
function get_NO_CALLBACK() {
|
|
@@ -2352,11 +2352,11 @@ function get_NO_CALLBACK() {
|
|
|
2352
2352
|
}
|
|
2353
2353
|
var NO_CALLBACK;
|
|
2354
2354
|
function WriterJob(channel, job) {
|
|
2355
|
-
this.
|
|
2356
|
-
this.
|
|
2355
|
+
this.u3u_1 = channel;
|
|
2356
|
+
this.v3u_1 = job;
|
|
2357
2357
|
}
|
|
2358
2358
|
protoOf(WriterJob).w1s = function () {
|
|
2359
|
-
return this.
|
|
2359
|
+
return this.v3u_1;
|
|
2360
2360
|
};
|
|
2361
2361
|
function writer(_this__u8e3s4, coroutineContext, autoFlush, block) {
|
|
2362
2362
|
coroutineContext = coroutineContext === VOID ? EmptyCoroutineContext_getInstance() : coroutineContext;
|
|
@@ -2365,16 +2365,16 @@ function writer(_this__u8e3s4, coroutineContext, autoFlush, block) {
|
|
|
2365
2365
|
return writer_0(_this__u8e3s4, coroutineContext, new ByteChannel(autoFlush), block);
|
|
2366
2366
|
}
|
|
2367
2367
|
function WriterScope(channel, coroutineContext) {
|
|
2368
|
-
this.
|
|
2369
|
-
this.
|
|
2368
|
+
this.d40_1 = channel;
|
|
2369
|
+
this.e40_1 = coroutineContext;
|
|
2370
2370
|
}
|
|
2371
2371
|
protoOf(WriterScope).k1p = function () {
|
|
2372
|
-
return this.
|
|
2372
|
+
return this.e40_1;
|
|
2373
2373
|
};
|
|
2374
2374
|
function writeFully(_this__u8e3s4, value, startIndex, endIndex, $completion) {
|
|
2375
2375
|
startIndex = startIndex === VOID ? 0 : startIndex;
|
|
2376
2376
|
endIndex = endIndex === VOID ? value.length : endIndex;
|
|
2377
|
-
_this__u8e3s4.
|
|
2377
|
+
_this__u8e3s4.w3s().z3o(value, startIndex, endIndex);
|
|
2378
2378
|
return flushIfNeeded(_this__u8e3s4, $completion);
|
|
2379
2379
|
}
|
|
2380
2380
|
function close_0(_this__u8e3s4, cause) {
|
|
@@ -2382,7 +2382,7 @@ function close_0(_this__u8e3s4, cause) {
|
|
|
2382
2382
|
if (cause == null) {
|
|
2383
2383
|
fireAndForget(ByteWriteChannel$flushAndClose$ref(_this__u8e3s4));
|
|
2384
2384
|
} else {
|
|
2385
|
-
_this__u8e3s4.
|
|
2385
|
+
_this__u8e3s4.c3t(cause);
|
|
2386
2386
|
}
|
|
2387
2387
|
}
|
|
2388
2388
|
function invokeOnCompletion(_this__u8e3s4, block) {
|
|
@@ -2403,14 +2403,14 @@ function fireAndForget(_this__u8e3s4) {
|
|
|
2403
2403
|
startCoroutineCancellable(_this__u8e3s4, get_NO_CALLBACK());
|
|
2404
2404
|
}
|
|
2405
2405
|
function writeByte(_this__u8e3s4, value, $completion) {
|
|
2406
|
-
_this__u8e3s4.
|
|
2406
|
+
_this__u8e3s4.w3s().j3p(value);
|
|
2407
2407
|
return flushIfNeeded(_this__u8e3s4, $completion);
|
|
2408
2408
|
}
|
|
2409
2409
|
function NO_CALLBACK$1() {
|
|
2410
|
-
this.
|
|
2410
|
+
this.f40_1 = EmptyCoroutineContext_getInstance();
|
|
2411
2411
|
}
|
|
2412
2412
|
protoOf(NO_CALLBACK$1).h9 = function () {
|
|
2413
|
-
return this.
|
|
2413
|
+
return this.f40_1;
|
|
2414
2414
|
};
|
|
2415
2415
|
protoOf(NO_CALLBACK$1).i9 = function (result) {
|
|
2416
2416
|
return Unit_instance;
|
|
@@ -2420,27 +2420,27 @@ protoOf(NO_CALLBACK$1).m9 = function (result) {
|
|
|
2420
2420
|
};
|
|
2421
2421
|
function ByteWriteChannel$flushAndClose$ref_0(p0) {
|
|
2422
2422
|
KFunctionImpl.call(this, 1, 1, 17);
|
|
2423
|
-
this.
|
|
2423
|
+
this.b40_1 = p0;
|
|
2424
2424
|
}
|
|
2425
|
-
protoOf(ByteWriteChannel$flushAndClose$ref_0).
|
|
2426
|
-
return this.
|
|
2425
|
+
protoOf(ByteWriteChannel$flushAndClose$ref_0).c40 = function ($completion) {
|
|
2426
|
+
return this.b40_1.b3t($completion);
|
|
2427
2427
|
};
|
|
2428
2428
|
protoOf(ByteWriteChannel$flushAndClose$ref_0).v9 = function ($completion) {
|
|
2429
|
-
return this.
|
|
2429
|
+
return this.c40($completion);
|
|
2430
2430
|
};
|
|
2431
2431
|
function writer$slambda($block, $channel, resultContinuation) {
|
|
2432
|
-
this.
|
|
2433
|
-
this.
|
|
2432
|
+
this.o40_1 = $block;
|
|
2433
|
+
this.p40_1 = $channel;
|
|
2434
2434
|
CoroutineImpl.call(this, resultContinuation);
|
|
2435
2435
|
}
|
|
2436
|
-
protoOf(writer$slambda).
|
|
2437
|
-
var tmp = this.
|
|
2436
|
+
protoOf(writer$slambda).x40 = function ($this$launch, $completion) {
|
|
2437
|
+
var tmp = this.y40($this$launch, $completion);
|
|
2438
2438
|
tmp.d9_1 = Unit_instance;
|
|
2439
2439
|
tmp.e9_1 = null;
|
|
2440
2440
|
return tmp.j9();
|
|
2441
2441
|
};
|
|
2442
2442
|
protoOf(writer$slambda).w9 = function (p1, $completion) {
|
|
2443
|
-
return this.
|
|
2443
|
+
return this.x40((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
2444
2444
|
};
|
|
2445
2445
|
protoOf(writer$slambda).j9 = function () {
|
|
2446
2446
|
var suspendResult = this.d9_1;
|
|
@@ -2450,24 +2450,24 @@ protoOf(writer$slambda).j9 = function () {
|
|
|
2450
2450
|
switch (tmp) {
|
|
2451
2451
|
case 0:
|
|
2452
2452
|
this.c9_1 = 14;
|
|
2453
|
-
this.
|
|
2453
|
+
this.t40_1 = Job(get_job(this.q40_1.k1p()));
|
|
2454
2454
|
this.b9_1 = 1;
|
|
2455
2455
|
continue $sm;
|
|
2456
2456
|
case 1:
|
|
2457
2457
|
this.c9_1 = 4;
|
|
2458
2458
|
this.c9_1 = 3;
|
|
2459
2459
|
this.b9_1 = 2;
|
|
2460
|
-
suspendResult = this.
|
|
2460
|
+
suspendResult = this.o40_1(new WriterScope(this.p40_1, this.q40_1.k1p().rj(this.t40_1)), this);
|
|
2461
2461
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2462
2462
|
return suspendResult;
|
|
2463
2463
|
}
|
|
2464
2464
|
|
|
2465
2465
|
continue $sm;
|
|
2466
2466
|
case 2:
|
|
2467
|
-
this.
|
|
2467
|
+
this.t40_1.t1x();
|
|
2468
2468
|
var tmp_0;
|
|
2469
|
-
if (get_job(this.
|
|
2470
|
-
this.
|
|
2469
|
+
if (get_job(this.q40_1.k1p()).h1q()) {
|
|
2470
|
+
this.p40_1.c3t(get_job(this.q40_1.k1p()).k1q());
|
|
2471
2471
|
tmp_0 = Unit_instance;
|
|
2472
2472
|
}
|
|
2473
2473
|
|
|
@@ -2479,8 +2479,8 @@ protoOf(writer$slambda).j9 = function () {
|
|
|
2479
2479
|
var tmp_1 = this.e9_1;
|
|
2480
2480
|
if (tmp_1 instanceof Error) {
|
|
2481
2481
|
var cause = this.e9_1;
|
|
2482
|
-
cancel(this.
|
|
2483
|
-
this.
|
|
2482
|
+
cancel(this.t40_1, 'Exception thrown while writing to channel', cause);
|
|
2483
|
+
this.p40_1.c3t(cause);
|
|
2484
2484
|
this.c9_1 = 14;
|
|
2485
2485
|
this.b9_1 = 9;
|
|
2486
2486
|
continue $sm;
|
|
@@ -2490,20 +2490,20 @@ protoOf(writer$slambda).j9 = function () {
|
|
|
2490
2490
|
|
|
2491
2491
|
case 4:
|
|
2492
2492
|
this.c9_1 = 14;
|
|
2493
|
-
this.
|
|
2493
|
+
this.u40_1 = this.e9_1;
|
|
2494
2494
|
this.b9_1 = 5;
|
|
2495
|
-
suspendResult = this.
|
|
2495
|
+
suspendResult = this.t40_1.r1q(this);
|
|
2496
2496
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2497
2497
|
return suspendResult;
|
|
2498
2498
|
}
|
|
2499
2499
|
|
|
2500
2500
|
continue $sm;
|
|
2501
2501
|
case 5:
|
|
2502
|
-
this.
|
|
2502
|
+
this.q40_1;
|
|
2503
2503
|
this.c9_1 = 7;
|
|
2504
|
-
this.
|
|
2504
|
+
this.w40_1 = Companion_instance;
|
|
2505
2505
|
this.b9_1 = 6;
|
|
2506
|
-
suspendResult = this.
|
|
2506
|
+
suspendResult = this.p40_1.b3t(this);
|
|
2507
2507
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2508
2508
|
return suspendResult;
|
|
2509
2509
|
}
|
|
@@ -2511,8 +2511,8 @@ protoOf(writer$slambda).j9 = function () {
|
|
|
2511
2511
|
continue $sm;
|
|
2512
2512
|
case 6:
|
|
2513
2513
|
var tmp_2 = this;
|
|
2514
|
-
this.
|
|
2515
|
-
tmp_2.
|
|
2514
|
+
this.w40_1;
|
|
2515
|
+
tmp_2.v40_1 = _Result___init__impl__xyqfz8(Unit_instance);
|
|
2516
2516
|
this.c9_1 = 14;
|
|
2517
2517
|
this.b9_1 = 8;
|
|
2518
2518
|
continue $sm;
|
|
@@ -2522,7 +2522,7 @@ protoOf(writer$slambda).j9 = function () {
|
|
|
2522
2522
|
if (tmp_3 instanceof Error) {
|
|
2523
2523
|
var e = this.e9_1;
|
|
2524
2524
|
var tmp_4 = this;
|
|
2525
|
-
tmp_4.
|
|
2525
|
+
tmp_4.v40_1 = _Result___init__impl__xyqfz8(createFailure(e));
|
|
2526
2526
|
this.b9_1 = 8;
|
|
2527
2527
|
continue $sm;
|
|
2528
2528
|
} else {
|
|
@@ -2531,22 +2531,22 @@ protoOf(writer$slambda).j9 = function () {
|
|
|
2531
2531
|
|
|
2532
2532
|
case 8:
|
|
2533
2533
|
this.c9_1 = 14;
|
|
2534
|
-
throw this.
|
|
2534
|
+
throw this.u40_1;
|
|
2535
2535
|
case 9:
|
|
2536
2536
|
this.c9_1 = 14;
|
|
2537
2537
|
this.b9_1 = 10;
|
|
2538
|
-
suspendResult = this.
|
|
2538
|
+
suspendResult = this.t40_1.r1q(this);
|
|
2539
2539
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2540
2540
|
return suspendResult;
|
|
2541
2541
|
}
|
|
2542
2542
|
|
|
2543
2543
|
continue $sm;
|
|
2544
2544
|
case 10:
|
|
2545
|
-
this.
|
|
2545
|
+
this.q40_1;
|
|
2546
2546
|
this.c9_1 = 12;
|
|
2547
|
-
this.
|
|
2547
|
+
this.s40_1 = Companion_instance;
|
|
2548
2548
|
this.b9_1 = 11;
|
|
2549
|
-
suspendResult = this.
|
|
2549
|
+
suspendResult = this.p40_1.b3t(this);
|
|
2550
2550
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2551
2551
|
return suspendResult;
|
|
2552
2552
|
}
|
|
@@ -2554,8 +2554,8 @@ protoOf(writer$slambda).j9 = function () {
|
|
|
2554
2554
|
continue $sm;
|
|
2555
2555
|
case 11:
|
|
2556
2556
|
var tmp_5 = this;
|
|
2557
|
-
this.
|
|
2558
|
-
tmp_5.
|
|
2557
|
+
this.s40_1;
|
|
2558
|
+
tmp_5.r40_1 = _Result___init__impl__xyqfz8(Unit_instance);
|
|
2559
2559
|
this.c9_1 = 14;
|
|
2560
2560
|
this.b9_1 = 13;
|
|
2561
2561
|
continue $sm;
|
|
@@ -2565,7 +2565,7 @@ protoOf(writer$slambda).j9 = function () {
|
|
|
2565
2565
|
if (tmp_6 instanceof Error) {
|
|
2566
2566
|
var e_0 = this.e9_1;
|
|
2567
2567
|
var tmp_7 = this;
|
|
2568
|
-
tmp_7.
|
|
2568
|
+
tmp_7.r40_1 = _Result___init__impl__xyqfz8(createFailure(e_0));
|
|
2569
2569
|
this.b9_1 = 13;
|
|
2570
2570
|
continue $sm;
|
|
2571
2571
|
} else {
|
|
@@ -2589,22 +2589,22 @@ protoOf(writer$slambda).j9 = function () {
|
|
|
2589
2589
|
}
|
|
2590
2590
|
while (true);
|
|
2591
2591
|
};
|
|
2592
|
-
protoOf(writer$slambda).
|
|
2593
|
-
var i = new writer$slambda(this.
|
|
2594
|
-
i.
|
|
2592
|
+
protoOf(writer$slambda).y40 = function ($this$launch, completion) {
|
|
2593
|
+
var i = new writer$slambda(this.o40_1, this.p40_1, completion);
|
|
2594
|
+
i.q40_1 = $this$launch;
|
|
2595
2595
|
return i;
|
|
2596
2596
|
};
|
|
2597
2597
|
function writer$slambda_0($block, $channel, resultContinuation) {
|
|
2598
2598
|
var i = new writer$slambda($block, $channel, resultContinuation);
|
|
2599
2599
|
return constructCallableReference(function ($this$launch, $completion) {
|
|
2600
|
-
return i.
|
|
2600
|
+
return i.x40($this$launch, $completion);
|
|
2601
2601
|
}, 1);
|
|
2602
2602
|
}
|
|
2603
2603
|
function writer$lambda($channel) {
|
|
2604
2604
|
return function (it) {
|
|
2605
2605
|
var tmp;
|
|
2606
|
-
if (!(it == null) && !$channel.
|
|
2607
|
-
$channel.
|
|
2606
|
+
if (!(it == null) && !$channel.x3s()) {
|
|
2607
|
+
$channel.c3t(it);
|
|
2608
2608
|
tmp = Unit_instance;
|
|
2609
2609
|
}
|
|
2610
2610
|
return Unit_instance;
|
|
@@ -2629,10 +2629,10 @@ function Companion_getInstance_1() {
|
|
|
2629
2629
|
return Companion_instance_2;
|
|
2630
2630
|
}
|
|
2631
2631
|
function access$_get_origin__hdh1qz($this) {
|
|
2632
|
-
return $this.
|
|
2632
|
+
return $this.z40_1;
|
|
2633
2633
|
}
|
|
2634
2634
|
function CloseToken(origin) {
|
|
2635
|
-
this.
|
|
2635
|
+
this.z40_1 = origin;
|
|
2636
2636
|
}
|
|
2637
2637
|
var properties_initialized_CloseToken_kt_lgg8zn;
|
|
2638
2638
|
function _init_properties_CloseToken_kt__9ucr41() {
|
|
@@ -2643,17 +2643,17 @@ function _init_properties_CloseToken_kt__9ucr41() {
|
|
|
2643
2643
|
}
|
|
2644
2644
|
function transferFromDelegate($this) {
|
|
2645
2645
|
updateConsumed($this);
|
|
2646
|
-
var appended = $this.
|
|
2647
|
-
$this.
|
|
2646
|
+
var appended = $this.b41_1.i3p($this.a41_1.v3s());
|
|
2647
|
+
$this.c41_1 = add($this.c41_1, appended);
|
|
2648
2648
|
}
|
|
2649
2649
|
function updateConsumed($this) {
|
|
2650
|
-
$this.
|
|
2651
|
-
$this.
|
|
2650
|
+
$this.d41_1 = add($this.d41_1, subtract($this.c41_1, $this.b41_1.e1()));
|
|
2651
|
+
$this.c41_1 = $this.b41_1.e1();
|
|
2652
2652
|
}
|
|
2653
2653
|
function $awaitContentCOROUTINE$_0(_this__u8e3s4, min, resultContinuation) {
|
|
2654
2654
|
CoroutineImpl.call(this, resultContinuation);
|
|
2655
|
-
this.
|
|
2656
|
-
this.
|
|
2655
|
+
this.m41_1 = _this__u8e3s4;
|
|
2656
|
+
this.n41_1 = min;
|
|
2657
2657
|
}
|
|
2658
2658
|
protoOf($awaitContentCOROUTINE$_0).j9 = function () {
|
|
2659
2659
|
var suspendResult = this.d9_1;
|
|
@@ -2663,12 +2663,12 @@ protoOf($awaitContentCOROUTINE$_0).j9 = function () {
|
|
|
2663
2663
|
switch (tmp) {
|
|
2664
2664
|
case 0:
|
|
2665
2665
|
this.c9_1 = 3;
|
|
2666
|
-
if (compare(this.
|
|
2666
|
+
if (compare(this.m41_1.v3s().e1(), fromInt(this.n41_1)) >= 0) {
|
|
2667
2667
|
return true;
|
|
2668
2668
|
}
|
|
2669
2669
|
|
|
2670
2670
|
this.b9_1 = 1;
|
|
2671
|
-
suspendResult = this.
|
|
2671
|
+
suspendResult = this.m41_1.a41_1.z3s(this.n41_1, this);
|
|
2672
2672
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2673
2673
|
return suspendResult;
|
|
2674
2674
|
}
|
|
@@ -2676,7 +2676,7 @@ protoOf($awaitContentCOROUTINE$_0).j9 = function () {
|
|
|
2676
2676
|
continue $sm;
|
|
2677
2677
|
case 1:
|
|
2678
2678
|
if (suspendResult) {
|
|
2679
|
-
transferFromDelegate(this.
|
|
2679
|
+
transferFromDelegate(this.m41_1);
|
|
2680
2680
|
return true;
|
|
2681
2681
|
} else {
|
|
2682
2682
|
this.b9_1 = 2;
|
|
@@ -2700,34 +2700,34 @@ protoOf($awaitContentCOROUTINE$_0).j9 = function () {
|
|
|
2700
2700
|
while (true);
|
|
2701
2701
|
};
|
|
2702
2702
|
function CountedByteReadChannel(delegate) {
|
|
2703
|
-
this.
|
|
2704
|
-
this.
|
|
2705
|
-
this.
|
|
2706
|
-
this.
|
|
2703
|
+
this.a41_1 = delegate;
|
|
2704
|
+
this.b41_1 = new Buffer();
|
|
2705
|
+
this.c41_1 = new Long(0, 0);
|
|
2706
|
+
this.d41_1 = new Long(0, 0);
|
|
2707
2707
|
}
|
|
2708
|
-
protoOf(CountedByteReadChannel).
|
|
2708
|
+
protoOf(CountedByteReadChannel).o41 = function () {
|
|
2709
2709
|
updateConsumed(this);
|
|
2710
|
-
return this.
|
|
2710
|
+
return this.d41_1;
|
|
2711
2711
|
};
|
|
2712
|
-
protoOf(CountedByteReadChannel).
|
|
2713
|
-
return this.
|
|
2712
|
+
protoOf(CountedByteReadChannel).j3r = function () {
|
|
2713
|
+
return this.a41_1.j3r();
|
|
2714
2714
|
};
|
|
2715
|
-
protoOf(CountedByteReadChannel).
|
|
2716
|
-
return this.
|
|
2715
|
+
protoOf(CountedByteReadChannel).y3s = function () {
|
|
2716
|
+
return this.b41_1.q3n() && this.a41_1.y3s();
|
|
2717
2717
|
};
|
|
2718
|
-
protoOf(CountedByteReadChannel).
|
|
2718
|
+
protoOf(CountedByteReadChannel).v3s = function () {
|
|
2719
2719
|
transferFromDelegate(this);
|
|
2720
|
-
return this.
|
|
2720
|
+
return this.b41_1;
|
|
2721
2721
|
};
|
|
2722
|
-
protoOf(CountedByteReadChannel).
|
|
2722
|
+
protoOf(CountedByteReadChannel).z3s = function (min, $completion) {
|
|
2723
2723
|
var tmp = new $awaitContentCOROUTINE$_0(this, min, $completion);
|
|
2724
2724
|
tmp.d9_1 = Unit_instance;
|
|
2725
2725
|
tmp.e9_1 = null;
|
|
2726
2726
|
return tmp.j9();
|
|
2727
2727
|
};
|
|
2728
|
-
protoOf(CountedByteReadChannel).
|
|
2729
|
-
this.
|
|
2730
|
-
this.
|
|
2728
|
+
protoOf(CountedByteReadChannel).c3t = function (cause) {
|
|
2729
|
+
this.a41_1.c3t(cause);
|
|
2730
|
+
this.b41_1.j4();
|
|
2731
2731
|
};
|
|
2732
2732
|
function counted(_this__u8e3s4) {
|
|
2733
2733
|
return new CountedByteReadChannel(_this__u8e3s4);
|
|
@@ -2785,21 +2785,21 @@ function LineEndingMode__plus_impl_ttpz2j($this, other) {
|
|
|
2785
2785
|
}
|
|
2786
2786
|
function LineEndingMode__toString_impl_j4h76r($this) {
|
|
2787
2787
|
var tmp;
|
|
2788
|
-
if ($this === Companion_getInstance_2().
|
|
2788
|
+
if ($this === Companion_getInstance_2().p41_1) {
|
|
2789
2789
|
tmp = 'CR';
|
|
2790
|
-
} else if ($this === Companion_getInstance_2().
|
|
2790
|
+
} else if ($this === Companion_getInstance_2().q41_1) {
|
|
2791
2791
|
tmp = 'LF';
|
|
2792
|
-
} else if ($this === Companion_getInstance_2().
|
|
2792
|
+
} else if ($this === Companion_getInstance_2().r41_1) {
|
|
2793
2793
|
tmp = 'CRLF';
|
|
2794
2794
|
} else {
|
|
2795
2795
|
// Inline function 'kotlin.collections.filter' call
|
|
2796
|
-
var tmp0 = Companion_getInstance_2().
|
|
2796
|
+
var tmp0 = Companion_getInstance_2().t41_1;
|
|
2797
2797
|
// Inline function 'kotlin.collections.filterTo' call
|
|
2798
2798
|
var destination = ArrayList_init_$Create$();
|
|
2799
2799
|
var _iterator__ex2g4s = tmp0.t();
|
|
2800
2800
|
while (_iterator__ex2g4s.u()) {
|
|
2801
2801
|
var element = _iterator__ex2g4s.v();
|
|
2802
|
-
var it = element.
|
|
2802
|
+
var it = element.u41_1;
|
|
2803
2803
|
if (LineEndingMode__contains_impl_q5pr68($this, it)) {
|
|
2804
2804
|
destination.b1(element);
|
|
2805
2805
|
}
|
|
@@ -2810,11 +2810,11 @@ function LineEndingMode__toString_impl_j4h76r($this) {
|
|
|
2810
2810
|
}
|
|
2811
2811
|
function Companion_2() {
|
|
2812
2812
|
Companion_instance_3 = this;
|
|
2813
|
-
this.
|
|
2814
|
-
this.
|
|
2815
|
-
this.
|
|
2816
|
-
this.
|
|
2817
|
-
this.
|
|
2813
|
+
this.p41_1 = _LineEndingMode___init__impl__jo5bul(1);
|
|
2814
|
+
this.q41_1 = _LineEndingMode___init__impl__jo5bul(2);
|
|
2815
|
+
this.r41_1 = _LineEndingMode___init__impl__jo5bul(4);
|
|
2816
|
+
this.s41_1 = _LineEndingMode___init__impl__jo5bul(7);
|
|
2817
|
+
this.t41_1 = listOf([new LineEndingMode(this.p41_1), new LineEndingMode(this.q41_1), new LineEndingMode(this.r41_1)]);
|
|
2818
2818
|
}
|
|
2819
2819
|
var Companion_instance_3;
|
|
2820
2820
|
function Companion_getInstance_2() {
|
|
@@ -2828,29 +2828,29 @@ function LineEndingMode__hashCode_impl_2mopm4($this) {
|
|
|
2828
2828
|
function LineEndingMode__equals_impl_qyr4nk($this, other) {
|
|
2829
2829
|
if (!(other instanceof LineEndingMode))
|
|
2830
2830
|
return false;
|
|
2831
|
-
if (!($this === other.
|
|
2831
|
+
if (!($this === other.u41_1))
|
|
2832
2832
|
return false;
|
|
2833
2833
|
return true;
|
|
2834
2834
|
}
|
|
2835
2835
|
function LineEndingMode(mode) {
|
|
2836
2836
|
Companion_getInstance_2();
|
|
2837
|
-
this.
|
|
2837
|
+
this.u41_1 = mode;
|
|
2838
2838
|
}
|
|
2839
2839
|
protoOf(LineEndingMode).toString = function () {
|
|
2840
|
-
return LineEndingMode__toString_impl_j4h76r(this.
|
|
2840
|
+
return LineEndingMode__toString_impl_j4h76r(this.u41_1);
|
|
2841
2841
|
};
|
|
2842
2842
|
protoOf(LineEndingMode).hashCode = function () {
|
|
2843
|
-
return LineEndingMode__hashCode_impl_2mopm4(this.
|
|
2843
|
+
return LineEndingMode__hashCode_impl_2mopm4(this.u41_1);
|
|
2844
2844
|
};
|
|
2845
2845
|
protoOf(LineEndingMode).equals = function (other) {
|
|
2846
|
-
return LineEndingMode__equals_impl_qyr4nk(this.
|
|
2846
|
+
return LineEndingMode__equals_impl_qyr4nk(this.u41_1, other);
|
|
2847
2847
|
};
|
|
2848
2848
|
function SourceByteReadChannel(source) {
|
|
2849
|
-
this.
|
|
2850
|
-
this.
|
|
2849
|
+
this.v41_1 = source;
|
|
2850
|
+
this.w41_1 = null;
|
|
2851
2851
|
}
|
|
2852
|
-
protoOf(SourceByteReadChannel).
|
|
2853
|
-
var tmp0_safe_receiver = this.
|
|
2852
|
+
protoOf(SourceByteReadChannel).j3r = function () {
|
|
2853
|
+
var tmp0_safe_receiver = this.w41_1;
|
|
2854
2854
|
var tmp;
|
|
2855
2855
|
if (tmp0_safe_receiver == null) {
|
|
2856
2856
|
tmp = null;
|
|
@@ -2876,42 +2876,42 @@ protoOf(SourceByteReadChannel).h3r = function () {
|
|
|
2876
2876
|
}
|
|
2877
2877
|
return tmp;
|
|
2878
2878
|
};
|
|
2879
|
-
protoOf(SourceByteReadChannel).
|
|
2880
|
-
return this.
|
|
2879
|
+
protoOf(SourceByteReadChannel).y3s = function () {
|
|
2880
|
+
return this.v41_1.q3n();
|
|
2881
2881
|
};
|
|
2882
|
-
protoOf(SourceByteReadChannel).
|
|
2883
|
-
var tmp0_safe_receiver = this.
|
|
2882
|
+
protoOf(SourceByteReadChannel).v3s = function () {
|
|
2883
|
+
var tmp0_safe_receiver = this.j3r();
|
|
2884
2884
|
if (tmp0_safe_receiver == null)
|
|
2885
2885
|
null;
|
|
2886
2886
|
else {
|
|
2887
2887
|
// Inline function 'kotlin.let' call
|
|
2888
2888
|
throw tmp0_safe_receiver;
|
|
2889
2889
|
}
|
|
2890
|
-
return this.
|
|
2890
|
+
return this.v41_1.p3n();
|
|
2891
2891
|
};
|
|
2892
|
-
protoOf(SourceByteReadChannel).
|
|
2893
|
-
var tmp0_safe_receiver = this.
|
|
2892
|
+
protoOf(SourceByteReadChannel).z3s = function (min, $completion) {
|
|
2893
|
+
var tmp0_safe_receiver = this.j3r();
|
|
2894
2894
|
if (tmp0_safe_receiver == null)
|
|
2895
2895
|
null;
|
|
2896
2896
|
else {
|
|
2897
2897
|
// Inline function 'kotlin.let' call
|
|
2898
2898
|
throw tmp0_safe_receiver;
|
|
2899
2899
|
}
|
|
2900
|
-
return this.
|
|
2900
|
+
return this.v41_1.s3n(fromInt(min));
|
|
2901
2901
|
};
|
|
2902
|
-
protoOf(SourceByteReadChannel).
|
|
2903
|
-
if (!(this.
|
|
2902
|
+
protoOf(SourceByteReadChannel).c3t = function (cause) {
|
|
2903
|
+
if (!(this.w41_1 == null))
|
|
2904
2904
|
return Unit_instance;
|
|
2905
|
-
this.
|
|
2905
|
+
this.v41_1.j4();
|
|
2906
2906
|
var tmp = this;
|
|
2907
2907
|
var tmp1_elvis_lhs = cause == null ? null : cause.message;
|
|
2908
|
-
tmp.
|
|
2908
|
+
tmp.w41_1 = new CloseToken(IOException_init_$Create$_0(tmp1_elvis_lhs == null ? 'Channel was cancelled' : tmp1_elvis_lhs, cause));
|
|
2909
2909
|
};
|
|
2910
2910
|
function decode(_this__u8e3s4, input, max) {
|
|
2911
2911
|
max = max === VOID ? 2147483647 : max;
|
|
2912
2912
|
var tmp0 = fromInt(max);
|
|
2913
2913
|
// Inline function 'kotlin.comparisons.minOf' call
|
|
2914
|
-
var b = input.
|
|
2914
|
+
var b = input.p3n().e1();
|
|
2915
2915
|
var tmp$ret$0 = compare(tmp0, b) <= 0 ? tmp0 : b;
|
|
2916
2916
|
// Inline function 'kotlin.text.buildString' call
|
|
2917
2917
|
var capacity = convertToInt(tmp$ret$0);
|
|
@@ -2948,7 +2948,7 @@ function encodeToImpl(_this__u8e3s4, destination, input, fromIndex, toIndex) {
|
|
|
2948
2948
|
}
|
|
2949
2949
|
}
|
|
2950
2950
|
function canRead(_this__u8e3s4) {
|
|
2951
|
-
return !_this__u8e3s4.
|
|
2951
|
+
return !_this__u8e3s4.q3n();
|
|
2952
2952
|
}
|
|
2953
2953
|
function readBytes(_this__u8e3s4, count) {
|
|
2954
2954
|
count = count === VOID ? convertToInt(_this__u8e3s4.e1()) : count;
|
|
@@ -2957,35 +2957,35 @@ function readBytes(_this__u8e3s4, count) {
|
|
|
2957
2957
|
function writeFully_0(_this__u8e3s4, buffer, offset, length) {
|
|
2958
2958
|
offset = offset === VOID ? 0 : offset;
|
|
2959
2959
|
length = length === VOID ? buffer.length - offset | 0 : length;
|
|
2960
|
-
_this__u8e3s4.
|
|
2960
|
+
_this__u8e3s4.z3o(buffer, offset, offset + length | 0);
|
|
2961
2961
|
}
|
|
2962
2962
|
function BytePacketBuilder() {
|
|
2963
2963
|
return new Buffer();
|
|
2964
2964
|
}
|
|
2965
2965
|
function build(_this__u8e3s4) {
|
|
2966
|
-
return _this__u8e3s4.
|
|
2966
|
+
return _this__u8e3s4.p3n();
|
|
2967
2967
|
}
|
|
2968
2968
|
function get_size(_this__u8e3s4) {
|
|
2969
|
-
return convertToInt(_this__u8e3s4.
|
|
2969
|
+
return convertToInt(_this__u8e3s4.p3n().e1());
|
|
2970
2970
|
}
|
|
2971
2971
|
var ByteReadPacketEmpty;
|
|
2972
2972
|
function get_remaining(_this__u8e3s4) {
|
|
2973
2973
|
_init_properties_ByteReadPacket_kt__28475y();
|
|
2974
|
-
return _this__u8e3s4.
|
|
2974
|
+
return _this__u8e3s4.p3n().e1();
|
|
2975
2975
|
}
|
|
2976
2976
|
function takeWhile(_this__u8e3s4, block) {
|
|
2977
2977
|
_init_properties_ByteReadPacket_kt__28475y();
|
|
2978
|
-
while (!_this__u8e3s4.
|
|
2978
|
+
while (!_this__u8e3s4.q3n() && block(_this__u8e3s4.p3n())) {
|
|
2979
2979
|
}
|
|
2980
2980
|
}
|
|
2981
2981
|
function discard_0(_this__u8e3s4, count) {
|
|
2982
2982
|
count = count === VOID ? new Long(-1, 2147483647) : count;
|
|
2983
2983
|
_init_properties_ByteReadPacket_kt__28475y();
|
|
2984
|
-
_this__u8e3s4.
|
|
2984
|
+
_this__u8e3s4.s3n(count);
|
|
2985
2985
|
// Inline function 'kotlin.comparisons.minOf' call
|
|
2986
2986
|
var b = get_remaining(_this__u8e3s4);
|
|
2987
2987
|
var countToDiscard = compare(count, b) <= 0 ? count : b;
|
|
2988
|
-
_this__u8e3s4.
|
|
2988
|
+
_this__u8e3s4.p3n().n3o(countToDiscard);
|
|
2989
2989
|
return countToDiscard;
|
|
2990
2990
|
}
|
|
2991
2991
|
var properties_initialized_ByteReadPacket_kt_hw4st4;
|
|
@@ -2998,23 +2998,23 @@ function _init_properties_ByteReadPacket_kt__28475y() {
|
|
|
2998
2998
|
function readAvailable_0(_this__u8e3s4, buffer, offset, length) {
|
|
2999
2999
|
offset = offset === VOID ? 0 : offset;
|
|
3000
3000
|
length = length === VOID ? buffer.length - offset | 0 : length;
|
|
3001
|
-
var result = _this__u8e3s4.
|
|
3001
|
+
var result = _this__u8e3s4.o3o(buffer, offset, offset + length | 0);
|
|
3002
3002
|
return result === -1 ? 0 : result;
|
|
3003
3003
|
}
|
|
3004
3004
|
function toByteArray_0(_this__u8e3s4, charset) {
|
|
3005
|
-
charset = charset === VOID ? Charsets_getInstance().
|
|
3006
|
-
if (charset.equals(Charsets_getInstance().
|
|
3005
|
+
charset = charset === VOID ? Charsets_getInstance().x41_1 : charset;
|
|
3006
|
+
if (charset.equals(Charsets_getInstance().x41_1))
|
|
3007
3007
|
return encodeToByteArray(_this__u8e3s4);
|
|
3008
|
-
return encodeToByteArray_0(charset.
|
|
3008
|
+
return encodeToByteArray_0(charset.a42(), _this__u8e3s4, 0, _this__u8e3s4.length);
|
|
3009
3009
|
}
|
|
3010
3010
|
function writeText(_this__u8e3s4, text, fromIndex, toIndex, charset) {
|
|
3011
3011
|
fromIndex = fromIndex === VOID ? 0 : fromIndex;
|
|
3012
3012
|
toIndex = toIndex === VOID ? charSequenceLength(text) : toIndex;
|
|
3013
|
-
charset = charset === VOID ? Charsets_getInstance().
|
|
3014
|
-
if (charset === Charsets_getInstance().
|
|
3013
|
+
charset = charset === VOID ? Charsets_getInstance().x41_1 : charset;
|
|
3014
|
+
if (charset === Charsets_getInstance().x41_1) {
|
|
3015
3015
|
return writeString(_this__u8e3s4, toString_1(text), fromIndex, toIndex);
|
|
3016
3016
|
}
|
|
3017
|
-
encodeToImpl(charset.
|
|
3017
|
+
encodeToImpl(charset.a42(), _this__u8e3s4, text, fromIndex, toIndex);
|
|
3018
3018
|
}
|
|
3019
3019
|
function get_ByteArrayPool() {
|
|
3020
3020
|
_init_properties_ByteArrayPool_kt__kfi3uj();
|
|
@@ -3024,7 +3024,7 @@ var ByteArrayPool;
|
|
|
3024
3024
|
function ByteArrayPool$1() {
|
|
3025
3025
|
DefaultPool.call(this, 128);
|
|
3026
3026
|
}
|
|
3027
|
-
protoOf(ByteArrayPool$1).
|
|
3027
|
+
protoOf(ByteArrayPool$1).e42 = function () {
|
|
3028
3028
|
return new Int8Array(4096);
|
|
3029
3029
|
};
|
|
3030
3030
|
var properties_initialized_ByteArrayPool_kt_td6pfh;
|
|
@@ -3038,7 +3038,7 @@ function ObjectPool() {
|
|
|
3038
3038
|
}
|
|
3039
3039
|
function NoPoolImpl() {
|
|
3040
3040
|
}
|
|
3041
|
-
protoOf(NoPoolImpl).
|
|
3041
|
+
protoOf(NoPoolImpl).m42 = function (instance) {
|
|
3042
3042
|
return Unit_instance;
|
|
3043
3043
|
};
|
|
3044
3044
|
protoOf(NoPoolImpl).i1s = function () {
|
|
@@ -3046,13 +3046,13 @@ protoOf(NoPoolImpl).i1s = function () {
|
|
|
3046
3046
|
};
|
|
3047
3047
|
function Companion_3() {
|
|
3048
3048
|
}
|
|
3049
|
-
protoOf(Companion_3).
|
|
3049
|
+
protoOf(Companion_3).n42 = function (name) {
|
|
3050
3050
|
switch (name) {
|
|
3051
3051
|
case 'UTF-8':
|
|
3052
3052
|
case 'utf-8':
|
|
3053
3053
|
case 'UTF8':
|
|
3054
3054
|
case 'utf8':
|
|
3055
|
-
return Charsets_getInstance().
|
|
3055
|
+
return Charsets_getInstance().x41_1;
|
|
3056
3056
|
}
|
|
3057
3057
|
var tmp;
|
|
3058
3058
|
var tmp_0;
|
|
@@ -3083,7 +3083,7 @@ protoOf(Companion_3).l42 = function (name) {
|
|
|
3083
3083
|
tmp = name === 'latin1' || name === 'Latin1';
|
|
3084
3084
|
}
|
|
3085
3085
|
if (tmp) {
|
|
3086
|
-
return Charsets_getInstance().
|
|
3086
|
+
return Charsets_getInstance().y41_1;
|
|
3087
3087
|
}
|
|
3088
3088
|
throw IllegalArgumentException_init_$Create$('Charset ' + name + ' is not supported');
|
|
3089
3089
|
};
|
|
@@ -3092,7 +3092,7 @@ function Companion_getInstance_3() {
|
|
|
3092
3092
|
return Companion_instance_4;
|
|
3093
3093
|
}
|
|
3094
3094
|
function Charset(_name) {
|
|
3095
|
-
this.
|
|
3095
|
+
this.z41_1 = _name;
|
|
3096
3096
|
}
|
|
3097
3097
|
protoOf(Charset).equals = function (other) {
|
|
3098
3098
|
if (this === other)
|
|
@@ -3101,18 +3101,18 @@ protoOf(Charset).equals = function (other) {
|
|
|
3101
3101
|
return false;
|
|
3102
3102
|
if (!(other instanceof Charset))
|
|
3103
3103
|
THROW_CCE();
|
|
3104
|
-
return this.
|
|
3104
|
+
return this.z41_1 === other.z41_1;
|
|
3105
3105
|
};
|
|
3106
3106
|
protoOf(Charset).hashCode = function () {
|
|
3107
|
-
return getStringHashCode(this.
|
|
3107
|
+
return getStringHashCode(this.z41_1);
|
|
3108
3108
|
};
|
|
3109
3109
|
protoOf(Charset).toString = function () {
|
|
3110
|
-
return this.
|
|
3110
|
+
return this.z41_1;
|
|
3111
3111
|
};
|
|
3112
3112
|
function Charsets() {
|
|
3113
3113
|
Charsets_instance = this;
|
|
3114
|
-
this.
|
|
3115
|
-
this.
|
|
3114
|
+
this.x41_1 = new CharsetImpl('UTF-8');
|
|
3115
|
+
this.y41_1 = new CharsetImpl('ISO-8859-1');
|
|
3116
3116
|
}
|
|
3117
3117
|
var Charsets_instance;
|
|
3118
3118
|
function Charsets_getInstance() {
|
|
@@ -3121,25 +3121,25 @@ function Charsets_getInstance() {
|
|
|
3121
3121
|
return Charsets_instance;
|
|
3122
3122
|
}
|
|
3123
3123
|
function get_name(_this__u8e3s4) {
|
|
3124
|
-
return _this__u8e3s4.
|
|
3124
|
+
return _this__u8e3s4.z41_1;
|
|
3125
3125
|
}
|
|
3126
3126
|
function MalformedInputException(message) {
|
|
3127
3127
|
IOException_init_$Init$_0(message, this);
|
|
3128
3128
|
captureStack(this, MalformedInputException);
|
|
3129
3129
|
}
|
|
3130
3130
|
function CharsetDecoder(_charset) {
|
|
3131
|
-
this.
|
|
3131
|
+
this.p42_1 = _charset;
|
|
3132
3132
|
}
|
|
3133
3133
|
function forName(_this__u8e3s4, name) {
|
|
3134
|
-
return Companion_instance_4.
|
|
3134
|
+
return Companion_instance_4.n42(name);
|
|
3135
3135
|
}
|
|
3136
3136
|
function CharsetEncoder(_charset) {
|
|
3137
|
-
this.
|
|
3137
|
+
this.q42_1 = _charset;
|
|
3138
3138
|
}
|
|
3139
3139
|
function decode_0(_this__u8e3s4, input, dst, max) {
|
|
3140
3140
|
var decoder = Decoder(get_name(get_charset(_this__u8e3s4)), true);
|
|
3141
|
-
input.
|
|
3142
|
-
var tmp0 = input.
|
|
3141
|
+
input.s3n(fromInt(max));
|
|
3142
|
+
var tmp0 = input.p3n().e1();
|
|
3143
3143
|
// Inline function 'kotlin.comparisons.minOf' call
|
|
3144
3144
|
var b = fromInt(max);
|
|
3145
3145
|
var count = compare(tmp0, b) <= 0 ? tmp0 : b;
|
|
@@ -3149,7 +3149,7 @@ function decode_0(_this__u8e3s4, input, dst, max) {
|
|
|
3149
3149
|
// Inline function 'org.khronos.webgl.toInt8Array' call
|
|
3150
3150
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
3151
3151
|
// Inline function 'kotlin.js.asDynamic' call
|
|
3152
|
-
tmp = decoder.
|
|
3152
|
+
tmp = decoder.r42(array);
|
|
3153
3153
|
} catch ($p) {
|
|
3154
3154
|
var tmp_0;
|
|
3155
3155
|
if ($p instanceof Error) {
|
|
@@ -3171,11 +3171,11 @@ function encodeImpl(_this__u8e3s4, input, fromIndex, toIndex, dst) {
|
|
|
3171
3171
|
var message = 'Failed requirement.';
|
|
3172
3172
|
throw IllegalArgumentException_init_$Create$(toString_1(message));
|
|
3173
3173
|
}
|
|
3174
|
-
if (get_charset_0(_this__u8e3s4).equals(Charsets_getInstance().
|
|
3174
|
+
if (get_charset_0(_this__u8e3s4).equals(Charsets_getInstance().y41_1)) {
|
|
3175
3175
|
return encodeISO88591(input, fromIndex, toIndex, dst);
|
|
3176
3176
|
}
|
|
3177
3177
|
// Inline function 'kotlin.require' call
|
|
3178
|
-
if (!(get_charset_0(_this__u8e3s4) === Charsets_getInstance().
|
|
3178
|
+
if (!(get_charset_0(_this__u8e3s4) === Charsets_getInstance().x41_1)) {
|
|
3179
3179
|
var message_0 = 'Only UTF-8 encoding is supported in JS';
|
|
3180
3180
|
throw IllegalArgumentException_init_$Create$(toString_1(message_0));
|
|
3181
3181
|
}
|
|
@@ -3185,7 +3185,7 @@ function encodeImpl(_this__u8e3s4, input, fromIndex, toIndex, dst) {
|
|
|
3185
3185
|
var result = encoder.encode(tmp$ret$5);
|
|
3186
3186
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
3187
3187
|
// Inline function 'kotlin.js.asDynamic' call
|
|
3188
|
-
dst.
|
|
3188
|
+
dst.c3p(result);
|
|
3189
3189
|
return result.length;
|
|
3190
3190
|
}
|
|
3191
3191
|
function encodeToByteArray_0(_this__u8e3s4, input, fromIndex, toIndex) {
|
|
@@ -3196,17 +3196,17 @@ function encodeToByteArray_0(_this__u8e3s4, input, fromIndex, toIndex) {
|
|
|
3196
3196
|
function CharsetImpl(name) {
|
|
3197
3197
|
Charset.call(this, name);
|
|
3198
3198
|
}
|
|
3199
|
-
protoOf(CharsetImpl).
|
|
3199
|
+
protoOf(CharsetImpl).a42 = function () {
|
|
3200
3200
|
return new CharsetEncoderImpl(this);
|
|
3201
3201
|
};
|
|
3202
|
-
protoOf(CharsetImpl).
|
|
3202
|
+
protoOf(CharsetImpl).o42 = function () {
|
|
3203
3203
|
return new CharsetDecoderImpl(this);
|
|
3204
3204
|
};
|
|
3205
3205
|
function get_charset(_this__u8e3s4) {
|
|
3206
|
-
return _this__u8e3s4.
|
|
3206
|
+
return _this__u8e3s4.p42_1;
|
|
3207
3207
|
}
|
|
3208
3208
|
function get_charset_0(_this__u8e3s4) {
|
|
3209
|
-
return _this__u8e3s4.
|
|
3209
|
+
return _this__u8e3s4.q42_1;
|
|
3210
3210
|
}
|
|
3211
3211
|
function encodeToByteArrayImpl(_this__u8e3s4, input, fromIndex, toIndex) {
|
|
3212
3212
|
fromIndex = fromIndex === VOID ? 0 : fromIndex;
|
|
@@ -3225,39 +3225,39 @@ function encodeToByteArrayImpl(_this__u8e3s4, input, fromIndex, toIndex) {
|
|
|
3225
3225
|
}
|
|
3226
3226
|
function CharsetEncoderImpl(charset) {
|
|
3227
3227
|
CharsetEncoder.call(this, charset);
|
|
3228
|
-
this.
|
|
3228
|
+
this.u42_1 = charset;
|
|
3229
3229
|
}
|
|
3230
3230
|
protoOf(CharsetEncoderImpl).toString = function () {
|
|
3231
|
-
return 'CharsetEncoderImpl(charset=' + this.
|
|
3231
|
+
return 'CharsetEncoderImpl(charset=' + this.u42_1.toString() + ')';
|
|
3232
3232
|
};
|
|
3233
3233
|
protoOf(CharsetEncoderImpl).hashCode = function () {
|
|
3234
|
-
return this.
|
|
3234
|
+
return this.u42_1.hashCode();
|
|
3235
3235
|
};
|
|
3236
3236
|
protoOf(CharsetEncoderImpl).equals = function (other) {
|
|
3237
3237
|
if (this === other)
|
|
3238
3238
|
return true;
|
|
3239
3239
|
if (!(other instanceof CharsetEncoderImpl))
|
|
3240
3240
|
return false;
|
|
3241
|
-
if (!this.
|
|
3241
|
+
if (!this.u42_1.equals(other.u42_1))
|
|
3242
3242
|
return false;
|
|
3243
3243
|
return true;
|
|
3244
3244
|
};
|
|
3245
3245
|
function CharsetDecoderImpl(charset) {
|
|
3246
3246
|
CharsetDecoder.call(this, charset);
|
|
3247
|
-
this.
|
|
3247
|
+
this.w42_1 = charset;
|
|
3248
3248
|
}
|
|
3249
3249
|
protoOf(CharsetDecoderImpl).toString = function () {
|
|
3250
|
-
return 'CharsetDecoderImpl(charset=' + this.
|
|
3250
|
+
return 'CharsetDecoderImpl(charset=' + this.w42_1.toString() + ')';
|
|
3251
3251
|
};
|
|
3252
3252
|
protoOf(CharsetDecoderImpl).hashCode = function () {
|
|
3253
|
-
return this.
|
|
3253
|
+
return this.w42_1.hashCode();
|
|
3254
3254
|
};
|
|
3255
3255
|
protoOf(CharsetDecoderImpl).equals = function (other) {
|
|
3256
3256
|
if (this === other)
|
|
3257
3257
|
return true;
|
|
3258
3258
|
if (!(other instanceof CharsetDecoderImpl))
|
|
3259
3259
|
return false;
|
|
3260
|
-
if (!this.
|
|
3260
|
+
if (!this.w42_1.equals(other.w42_1))
|
|
3261
3261
|
return false;
|
|
3262
3262
|
return true;
|
|
3263
3263
|
};
|
|
@@ -3291,10 +3291,10 @@ function textDecoderOptions(fatal) {
|
|
|
3291
3291
|
return this_0;
|
|
3292
3292
|
}
|
|
3293
3293
|
function toKtor$1($this_toKtor) {
|
|
3294
|
-
this.
|
|
3294
|
+
this.x42_1 = $this_toKtor;
|
|
3295
3295
|
}
|
|
3296
|
-
protoOf(toKtor$1).
|
|
3297
|
-
return this.
|
|
3296
|
+
protoOf(toKtor$1).r42 = function (buffer) {
|
|
3297
|
+
return this.x42_1.decode(buffer);
|
|
3298
3298
|
};
|
|
3299
3299
|
function get_ENCODING_ALIASES() {
|
|
3300
3300
|
_init_properties_TextDecoderFallback_js_kt__an7r6m();
|
|
@@ -3307,7 +3307,7 @@ function get_REPLACEMENT() {
|
|
|
3307
3307
|
}
|
|
3308
3308
|
var REPLACEMENT;
|
|
3309
3309
|
function TextDecoderFallback(encoding, fatal) {
|
|
3310
|
-
this.
|
|
3310
|
+
this.y42_1 = fatal;
|
|
3311
3311
|
// Inline function 'kotlin.text.trim' call
|
|
3312
3312
|
// Inline function 'kotlin.text.lowercase' call
|
|
3313
3313
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -3318,7 +3318,7 @@ function TextDecoderFallback(encoding, fatal) {
|
|
|
3318
3318
|
throw IllegalStateException_init_$Create$(toString_1(message));
|
|
3319
3319
|
}
|
|
3320
3320
|
}
|
|
3321
|
-
protoOf(TextDecoderFallback).
|
|
3321
|
+
protoOf(TextDecoderFallback).r42 = function (buffer) {
|
|
3322
3322
|
// Inline function 'io.ktor.utils.io.core.buildPacket' call
|
|
3323
3323
|
var builder = new Buffer();
|
|
3324
3324
|
var bytes = buffer instanceof Int8Array ? buffer : THROW_CCE();
|
|
@@ -3334,7 +3334,7 @@ protoOf(TextDecoderFallback).p42 = function (buffer) {
|
|
|
3334
3334
|
var point = toCodePoint(byte);
|
|
3335
3335
|
if (point < 0) {
|
|
3336
3336
|
// Inline function 'kotlin.check' call
|
|
3337
|
-
if (!!this.
|
|
3337
|
+
if (!!this.y42_1) {
|
|
3338
3338
|
var message = 'Invalid character: ' + point;
|
|
3339
3339
|
throw IllegalStateException_init_$Create$(toString_1(message));
|
|
3340
3340
|
}
|
|
@@ -3342,9 +3342,9 @@ protoOf(TextDecoderFallback).p42 = function (buffer) {
|
|
|
3342
3342
|
continue $l$loop;
|
|
3343
3343
|
}
|
|
3344
3344
|
if (point > 255) {
|
|
3345
|
-
builder.
|
|
3345
|
+
builder.j3p(toByte(point >> 8));
|
|
3346
3346
|
}
|
|
3347
|
-
builder.
|
|
3347
|
+
builder.j3p(toByte(point & 255));
|
|
3348
3348
|
}
|
|
3349
3349
|
while (inductionVariable < last);
|
|
3350
3350
|
return decodeToString(readByteArray_0(builder));
|
|
@@ -3371,19 +3371,19 @@ function _init_properties_TextDecoderFallback_js_kt__an7r6m() {
|
|
|
3371
3371
|
}
|
|
3372
3372
|
}
|
|
3373
3373
|
function readText_0(_this__u8e3s4, charset, max) {
|
|
3374
|
-
charset = charset === VOID ? Charsets_getInstance().
|
|
3374
|
+
charset = charset === VOID ? Charsets_getInstance().x41_1 : charset;
|
|
3375
3375
|
max = max === VOID ? 2147483647 : max;
|
|
3376
|
-
if (charset.equals(Charsets_getInstance().
|
|
3376
|
+
if (charset.equals(Charsets_getInstance().x41_1)) {
|
|
3377
3377
|
if (max === 2147483647)
|
|
3378
3378
|
return readString_1(_this__u8e3s4);
|
|
3379
|
-
_this__u8e3s4.
|
|
3380
|
-
var tmp0 = _this__u8e3s4.
|
|
3379
|
+
_this__u8e3s4.s3n(fromInt(max));
|
|
3380
|
+
var tmp0 = _this__u8e3s4.p3n().e1();
|
|
3381
3381
|
// Inline function 'kotlin.math.min' call
|
|
3382
3382
|
var b = fromInt(max);
|
|
3383
3383
|
var count = compare(tmp0, b) <= 0 ? tmp0 : b;
|
|
3384
3384
|
return readString(_this__u8e3s4, count);
|
|
3385
3385
|
}
|
|
3386
|
-
return decode(charset.
|
|
3386
|
+
return decode(charset.o42(), _this__u8e3s4, max);
|
|
3387
3387
|
}
|
|
3388
3388
|
function get_DEVELOPMENT_MODE() {
|
|
3389
3389
|
return false;
|
|
@@ -3405,7 +3405,7 @@ function encodeISO88591(input, fromIndex, toIndex, dst) {
|
|
|
3405
3405
|
if (character > 255) {
|
|
3406
3406
|
failedToMapError(character);
|
|
3407
3407
|
}
|
|
3408
|
-
dst.
|
|
3408
|
+
dst.j3p(toByte(character));
|
|
3409
3409
|
}
|
|
3410
3410
|
while (inductionVariable < toIndex);
|
|
3411
3411
|
return toIndex - fromIndex | 0;
|
|
@@ -3427,64 +3427,64 @@ function _init_properties_Win1252Table_kt__tl0v64() {
|
|
|
3427
3427
|
}
|
|
3428
3428
|
}
|
|
3429
3429
|
function DefaultPool(capacity) {
|
|
3430
|
-
this.
|
|
3430
|
+
this.f42_1 = capacity;
|
|
3431
3431
|
var tmp = this;
|
|
3432
3432
|
// Inline function 'kotlin.arrayOfNulls' call
|
|
3433
|
-
var size = this.
|
|
3434
|
-
tmp.
|
|
3435
|
-
this.
|
|
3433
|
+
var size = this.f42_1;
|
|
3434
|
+
tmp.g42_1 = Array(size);
|
|
3435
|
+
this.h42_1 = 0;
|
|
3436
3436
|
}
|
|
3437
|
-
protoOf(DefaultPool).
|
|
3437
|
+
protoOf(DefaultPool).i42 = function (instance) {
|
|
3438
3438
|
};
|
|
3439
|
-
protoOf(DefaultPool).
|
|
3439
|
+
protoOf(DefaultPool).j42 = function (instance) {
|
|
3440
3440
|
return instance;
|
|
3441
3441
|
};
|
|
3442
|
-
protoOf(DefaultPool).
|
|
3442
|
+
protoOf(DefaultPool).k42 = function (instance) {
|
|
3443
3443
|
};
|
|
3444
|
-
protoOf(DefaultPool).
|
|
3445
|
-
if (this.
|
|
3446
|
-
return this.
|
|
3447
|
-
this.
|
|
3448
|
-
var idx = this.
|
|
3449
|
-
var tmp = this.
|
|
3444
|
+
protoOf(DefaultPool).l42 = function () {
|
|
3445
|
+
if (this.h42_1 === 0)
|
|
3446
|
+
return this.e42();
|
|
3447
|
+
this.h42_1 = this.h42_1 - 1 | 0;
|
|
3448
|
+
var idx = this.h42_1;
|
|
3449
|
+
var tmp = this.g42_1[idx];
|
|
3450
3450
|
var instance = !(tmp == null) ? tmp : THROW_CCE();
|
|
3451
|
-
this.
|
|
3452
|
-
return this.
|
|
3451
|
+
this.g42_1[idx] = null;
|
|
3452
|
+
return this.j42(instance);
|
|
3453
3453
|
};
|
|
3454
|
-
protoOf(DefaultPool).
|
|
3455
|
-
this.
|
|
3456
|
-
if (this.
|
|
3457
|
-
this.
|
|
3454
|
+
protoOf(DefaultPool).m42 = function (instance) {
|
|
3455
|
+
this.k42(instance);
|
|
3456
|
+
if (this.h42_1 === this.f42_1) {
|
|
3457
|
+
this.i42(instance);
|
|
3458
3458
|
} else {
|
|
3459
|
-
var _unary__edvuaz = this.
|
|
3460
|
-
this.
|
|
3461
|
-
this.
|
|
3459
|
+
var _unary__edvuaz = this.h42_1;
|
|
3460
|
+
this.h42_1 = _unary__edvuaz + 1 | 0;
|
|
3461
|
+
this.g42_1[_unary__edvuaz] = instance;
|
|
3462
3462
|
}
|
|
3463
3463
|
};
|
|
3464
3464
|
protoOf(DefaultPool).i1s = function () {
|
|
3465
3465
|
var inductionVariable = 0;
|
|
3466
|
-
var last = this.
|
|
3466
|
+
var last = this.h42_1;
|
|
3467
3467
|
if (inductionVariable < last)
|
|
3468
3468
|
do {
|
|
3469
3469
|
var i = inductionVariable;
|
|
3470
3470
|
inductionVariable = inductionVariable + 1 | 0;
|
|
3471
|
-
var tmp = this.
|
|
3471
|
+
var tmp = this.g42_1[i];
|
|
3472
3472
|
var instance = !(tmp == null) ? tmp : THROW_CCE();
|
|
3473
|
-
this.
|
|
3474
|
-
this.
|
|
3473
|
+
this.g42_1[i] = null;
|
|
3474
|
+
this.i42(instance);
|
|
3475
3475
|
}
|
|
3476
3476
|
while (inductionVariable < last);
|
|
3477
|
-
this.
|
|
3477
|
+
this.h42_1 = 0;
|
|
3478
3478
|
};
|
|
3479
3479
|
//region block: post-declaration
|
|
3480
|
-
protoOf(Read).
|
|
3481
|
-
protoOf(Read).
|
|
3482
|
-
protoOf(Write).
|
|
3483
|
-
protoOf(Write).
|
|
3484
|
-
protoOf(ByteChannel).
|
|
3485
|
-
protoOf(ByteReadChannel$Companion$Empty$1).
|
|
3486
|
-
protoOf(CountedByteReadChannel).
|
|
3487
|
-
protoOf(SourceByteReadChannel).
|
|
3480
|
+
protoOf(Read).u3q = resume;
|
|
3481
|
+
protoOf(Read).v3q = resume_0;
|
|
3482
|
+
protoOf(Write).u3q = resume;
|
|
3483
|
+
protoOf(Write).v3q = resume_0;
|
|
3484
|
+
protoOf(ByteChannel).a3t = awaitContent$default;
|
|
3485
|
+
protoOf(ByteReadChannel$Companion$Empty$1).a3t = awaitContent$default;
|
|
3486
|
+
protoOf(CountedByteReadChannel).a3t = awaitContent$default;
|
|
3487
|
+
protoOf(SourceByteReadChannel).a3t = awaitContent$default;
|
|
3488
3488
|
protoOf(DefaultPool).j4 = close;
|
|
3489
3489
|
protoOf(NoPoolImpl).j4 = close;
|
|
3490
3490
|
//endregion
|