@dmarket/p2p-tracker-core 1.2.1-SNAPSHOT-development.162 → 1.3.0-beta
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dmarket-p2p-tracker-core-domain.mjs +3481 -3343
- package/dmarket-p2p-tracker-core-domain.mjs.map +1 -1
- package/kotlin-kotlin-stdlib.mjs +34 -34
- package/kotlin-kotlin-stdlib.mjs.map +1 -1
- package/kotlinx-coroutines-core.mjs +1 -1
- package/kotlinx-io-kotlinx-io-bytestring.mjs +30 -30
- package/kotlinx-io-kotlinx-io-bytestring.mjs.map +1 -1
- package/kotlinx-io-kotlinx-io-core.mjs +451 -451
- package/kotlinx-io-kotlinx-io-core.mjs.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-core.mjs +87 -87
- package/kotlinx-serialization-kotlinx-serialization-core.mjs.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-json.mjs.map +1 -1
- package/ktor-ktor-client-core.mjs +2046 -1936
- package/ktor-ktor-client-core.mjs.map +1 -1
- package/ktor-ktor-events.mjs +5 -5
- package/ktor-ktor-http-cio.mjs +320 -320
- package/ktor-ktor-http-cio.mjs.map +1 -1
- package/ktor-ktor-http.mjs +626 -626
- package/ktor-ktor-io.mjs +631 -606
- package/ktor-ktor-io.mjs.map +1 -1
- package/ktor-ktor-utils.mjs +663 -663
- package/ktor-ktor-websockets.mjs +365 -365
- package/p2p-tracker-core.d.mts +4 -2
- package/p2p-tracker-core.mjs +6985 -6636
- 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.a3r().m9(Companion_getInstance().x3q_1);
|
|
110
110
|
}
|
|
111
111
|
function resume_0(throwable) {
|
|
112
|
-
var tmp = this.
|
|
112
|
+
var tmp = this.a3r();
|
|
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().x3q_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.j3t(min, $completion) : $super.j3t.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.w3q_1 = new Closed(null);
|
|
199
199
|
var tmp = this;
|
|
200
200
|
// Inline function 'kotlin.Companion.success' call
|
|
201
|
-
tmp.
|
|
201
|
+
tmp.x3q_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.y3q_1 = cause;
|
|
230
230
|
}
|
|
231
231
|
protoOf(Closed).toString = function () {
|
|
232
|
-
return 'Closed(cause=' + toString(this.
|
|
232
|
+
return 'Closed(cause=' + toString(this.y3q_1) + ')';
|
|
233
233
|
};
|
|
234
234
|
protoOf(Closed).hashCode = function () {
|
|
235
|
-
return this.
|
|
235
|
+
return this.y3q_1 == null ? 0 : hashCode(this.y3q_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.y3q_1, other.y3q_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.e3r_1 = continuation;
|
|
250
|
+
this.f3r_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.e3r_1), 16));
|
|
255
255
|
stackTraceToString(this_0);
|
|
256
|
-
tmp.
|
|
256
|
+
tmp.f3r_1 = this_0;
|
|
257
257
|
}
|
|
258
258
|
}
|
|
259
|
-
protoOf(Read).
|
|
260
|
-
return this.
|
|
259
|
+
protoOf(Read).a3r = function () {
|
|
260
|
+
return this.e3r_1;
|
|
261
261
|
};
|
|
262
|
-
protoOf(Read).
|
|
263
|
-
return this.
|
|
262
|
+
protoOf(Read).z3q = function () {
|
|
263
|
+
return this.f3r_1;
|
|
264
264
|
};
|
|
265
|
-
protoOf(Read).
|
|
265
|
+
protoOf(Read).b3r = function () {
|
|
266
266
|
return 'read';
|
|
267
267
|
};
|
|
268
268
|
function Write(continuation) {
|
|
269
|
-
this.
|
|
270
|
-
this.
|
|
269
|
+
this.g3r_1 = continuation;
|
|
270
|
+
this.h3r_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.g3r_1), 16));
|
|
275
275
|
stackTraceToString(this_0);
|
|
276
|
-
tmp.
|
|
276
|
+
tmp.h3r_1 = this_0;
|
|
277
277
|
}
|
|
278
278
|
}
|
|
279
|
-
protoOf(Write).
|
|
280
|
-
return this.
|
|
279
|
+
protoOf(Write).a3r = function () {
|
|
280
|
+
return this.g3r_1;
|
|
281
281
|
};
|
|
282
|
-
protoOf(Write).
|
|
283
|
-
return this.
|
|
282
|
+
protoOf(Write).z3q = function () {
|
|
283
|
+
return this.h3r_1;
|
|
284
284
|
};
|
|
285
|
-
protoOf(Write).
|
|
285
|
+
protoOf(Write).b3r = function () {
|
|
286
286
|
return 'write';
|
|
287
287
|
};
|
|
288
288
|
function rethrowCloseCauseIfNeeded($this) {
|
|
289
|
-
var tmp0_safe_receiver = $this.
|
|
289
|
+
var tmp0_safe_receiver = $this.r3r();
|
|
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.l3r_1;
|
|
300
|
+
$this.j3r_1.b3p($this.n3r_1);
|
|
301
|
+
$this.k3r_1 = 0;
|
|
302
302
|
// Inline function 'io.ktor.utils.io.ByteChannel.resumeSlot' call
|
|
303
|
-
var current = $this.
|
|
303
|
+
var current = $this.m3r_1.kotlinx$atomicfu$value;
|
|
304
304
|
var tmp;
|
|
305
305
|
if (current instanceof Write) {
|
|
306
|
-
tmp = $this.
|
|
306
|
+
tmp = $this.m3r_1.atomicfu$compareAndSet(current, Empty_instance);
|
|
307
307
|
} else {
|
|
308
308
|
tmp = false;
|
|
309
309
|
}
|
|
310
310
|
if (tmp) {
|
|
311
|
-
current.
|
|
311
|
+
current.c3r();
|
|
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().w3q_1;
|
|
316
|
+
var continuation = $this.m3r_1.atomicfu$getAndSet(closeContinuation);
|
|
317
317
|
if (isInterface(continuation, Task)) {
|
|
318
|
-
continuation.
|
|
318
|
+
continuation.d3r(cause);
|
|
319
319
|
}
|
|
320
|
-
var tmp0_safe_receiver = $this.
|
|
320
|
+
var tmp0_safe_receiver = $this.q3r_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.s3r_1 = function_0;
|
|
328
328
|
}
|
|
329
329
|
protoOf(sam$kotlinx_coroutines_DisposableHandle$0).i1s = function () {
|
|
330
|
-
return this.
|
|
330
|
+
return this.s3r_1();
|
|
331
331
|
};
|
|
332
332
|
protoOf(sam$kotlinx_coroutines_DisposableHandle$0).r3 = function () {
|
|
333
|
-
return this.
|
|
333
|
+
return this.s3r_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.q3r_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.b3s_1 = _this__u8e3s4;
|
|
368
|
+
this.c3s_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.b3s_1);
|
|
379
|
+
if (compare(this.b3s_1.n3r_1.e1(), fromInt(this.c3s_1)) >= 0)
|
|
380
380
|
return true;
|
|
381
|
-
this.
|
|
381
|
+
this.d3s_1 = this.b3s_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.b3s_1.k3r_1), this.b3s_1.n3r_1.e1()), fromInt(this.c3s_1)) < 0 && this.b3s_1.p3r_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.d3s_1;
|
|
394
394
|
var tmp2 = new Read(cancellable);
|
|
395
395
|
l$ret$1: do {
|
|
396
|
-
var previous = tmp0.
|
|
396
|
+
var previous = tmp0.m3r_1.kotlinx$atomicfu$value;
|
|
397
397
|
if (!(previous instanceof Closed)) {
|
|
398
|
-
if (!tmp0.
|
|
399
|
-
tmp2.
|
|
398
|
+
if (!tmp0.m3r_1.atomicfu$compareAndSet(previous, tmp2)) {
|
|
399
|
+
tmp2.c3r();
|
|
400
400
|
break l$ret$1;
|
|
401
401
|
}
|
|
402
402
|
}
|
|
403
403
|
if (previous instanceof Read) {
|
|
404
|
-
previous.
|
|
404
|
+
previous.d3r(new ConcurrentIOException(tmp2.b3r(), previous.z3q()));
|
|
405
405
|
} else {
|
|
406
406
|
if (isInterface(previous, Task)) {
|
|
407
|
-
previous.
|
|
407
|
+
previous.c3r();
|
|
408
408
|
} else {
|
|
409
409
|
if (previous instanceof Closed) {
|
|
410
|
-
tmp2.
|
|
410
|
+
tmp2.d3r(previous.y3q_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.b3s_1.k3r_1), this.b3s_1.n3r_1.e1()), fromInt(this.c3s_1)) < 0 && this.b3s_1.p3r_1.kotlinx$atomicfu$value == null)) {
|
|
420
|
+
var current = tmp0.m3r_1.kotlinx$atomicfu$value;
|
|
421
421
|
var tmp_0;
|
|
422
422
|
if (current instanceof Read) {
|
|
423
|
-
tmp_0 = tmp0.
|
|
423
|
+
tmp_0 = tmp0.m3r_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.c3r();
|
|
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.b3s_1);
|
|
444
|
+
if (compare(this.b3s_1.n3r_1.e1(), new Long(1048576, 0)) < 0) {
|
|
445
|
+
moveFlushToReadBuffer(this.b3s_1);
|
|
446
446
|
}
|
|
447
447
|
|
|
448
|
-
return compare(this.
|
|
448
|
+
return compare(this.b3s_1.n3r_1.e1(), fromInt(this.c3s_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.m3s_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.m3s_1);
|
|
476
|
+
this.m3s_1.o3s();
|
|
477
|
+
if (this.m3s_1.p3s())
|
|
478
478
|
return Unit_instance;
|
|
479
|
-
this.
|
|
479
|
+
this.n3s_1 = this.m3s_1;
|
|
480
480
|
this.b9_1 = 1;
|
|
481
481
|
continue $sm;
|
|
482
482
|
case 1:
|
|
483
|
-
if (!(!this.
|
|
483
|
+
if (!(!this.m3s_1.p3s() && this.m3s_1.p3r_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.n3s_1;
|
|
492
492
|
var tmp2 = new Write(cancellable);
|
|
493
493
|
l$ret$1: do {
|
|
494
|
-
var previous = tmp0.
|
|
494
|
+
var previous = tmp0.m3r_1.kotlinx$atomicfu$value;
|
|
495
495
|
if (!(previous instanceof Closed)) {
|
|
496
|
-
if (!tmp0.
|
|
497
|
-
tmp2.
|
|
496
|
+
if (!tmp0.m3r_1.atomicfu$compareAndSet(previous, tmp2)) {
|
|
497
|
+
tmp2.c3r();
|
|
498
498
|
break l$ret$1;
|
|
499
499
|
}
|
|
500
500
|
}
|
|
501
501
|
if (previous instanceof Write) {
|
|
502
|
-
previous.
|
|
502
|
+
previous.d3r(new ConcurrentIOException(tmp2.b3r(), previous.z3q()));
|
|
503
503
|
} else {
|
|
504
504
|
if (isInterface(previous, Task)) {
|
|
505
|
-
previous.
|
|
505
|
+
previous.c3r();
|
|
506
506
|
} else {
|
|
507
507
|
if (previous instanceof Closed) {
|
|
508
|
-
tmp2.
|
|
508
|
+
tmp2.d3r(previous.y3q_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.m3s_1.p3s() && this.m3s_1.p3r_1.kotlinx$atomicfu$value == null)) {
|
|
518
|
+
var current = tmp0.m3r_1.kotlinx$atomicfu$value;
|
|
519
519
|
var tmp_0;
|
|
520
520
|
if (current instanceof Write) {
|
|
521
|
-
tmp_0 = tmp0.
|
|
521
|
+
tmp_0 = tmp0.m3r_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.c3r();
|
|
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.y3s_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.y3s_1;
|
|
569
569
|
this.c9_1 = 2;
|
|
570
|
-
this.
|
|
570
|
+
this.a3t_1 = Companion_instance;
|
|
571
571
|
this.b9_1 = 1;
|
|
572
|
-
suspendResult = this_0.
|
|
572
|
+
suspendResult = this_0.b3t(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.a3t_1;
|
|
581
|
+
tmp_0.z3s_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.z3s_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.y3s_1.p3r_1.atomicfu$compareAndSet(null, get_CLOSED()))
|
|
601
601
|
return Unit_instance;
|
|
602
|
-
closeSlot(this.
|
|
602
|
+
closeSlot(this.y3s_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.
|
|
632
|
-
};
|
|
633
|
-
protoOf(ByteChannel).
|
|
634
|
-
return this.
|
|
635
|
-
};
|
|
636
|
-
protoOf(ByteChannel).
|
|
637
|
-
var tmp0_safe_receiver = this.
|
|
620
|
+
this.i3r_1 = autoFlush;
|
|
621
|
+
this.j3r_1 = new Buffer();
|
|
622
|
+
this.k3r_1 = 0;
|
|
623
|
+
this.l3r_1 = new Object();
|
|
624
|
+
this.m3r_1 = atomic$ref$1(Empty_instance);
|
|
625
|
+
this.n3r_1 = new Buffer();
|
|
626
|
+
this.o3r_1 = new Buffer();
|
|
627
|
+
this.p3r_1 = atomic$ref$1(null);
|
|
628
|
+
this.q3r_1 = atomic$ref$1(null);
|
|
629
|
+
}
|
|
630
|
+
protoOf(ByteChannel).c3t = function () {
|
|
631
|
+
return this.i3r_1;
|
|
632
|
+
};
|
|
633
|
+
protoOf(ByteChannel).p3s = function () {
|
|
634
|
+
return this.k3r_1 < 1048576;
|
|
635
|
+
};
|
|
636
|
+
protoOf(ByteChannel).d3t = function () {
|
|
637
|
+
var tmp0_safe_receiver = this.p3r_1.kotlinx$atomicfu$value;
|
|
638
638
|
if (tmp0_safe_receiver == null)
|
|
639
639
|
null;
|
|
640
640
|
else {
|
|
@@ -665,14 +665,14 @@ protoOf(ByteChannel).v3s = function () {
|
|
|
665
665
|
throw tmp0_safe_receiver_0;
|
|
666
666
|
}
|
|
667
667
|
}
|
|
668
|
-
if (this.
|
|
668
|
+
if (this.n3r_1.y3n()) {
|
|
669
669
|
moveFlushToReadBuffer(this);
|
|
670
670
|
}
|
|
671
|
-
return this.
|
|
671
|
+
return this.n3r_1;
|
|
672
672
|
};
|
|
673
|
-
protoOf(ByteChannel).
|
|
674
|
-
if (this.
|
|
675
|
-
var tmp0_safe_receiver = this.
|
|
673
|
+
protoOf(ByteChannel).e3t = function () {
|
|
674
|
+
if (this.f3t()) {
|
|
675
|
+
var tmp0_safe_receiver = this.p3r_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).w3s = function () {
|
|
|
708
708
|
if (tmp == null)
|
|
709
709
|
throw new ClosedWriteChannelException();
|
|
710
710
|
}
|
|
711
|
-
return this.
|
|
711
|
+
return this.o3r_1;
|
|
712
712
|
};
|
|
713
|
-
protoOf(ByteChannel).
|
|
714
|
-
var tmp0_safe_receiver = this.
|
|
713
|
+
protoOf(ByteChannel).r3r = function () {
|
|
714
|
+
var tmp0_safe_receiver = this.p3r_1.kotlinx$atomicfu$value;
|
|
715
715
|
var tmp;
|
|
716
716
|
if (tmp0_safe_receiver == null) {
|
|
717
717
|
tmp = null;
|
|
@@ -737,61 +737,68 @@ protoOf(ByteChannel).j3r = function () {
|
|
|
737
737
|
}
|
|
738
738
|
return tmp;
|
|
739
739
|
};
|
|
740
|
-
protoOf(ByteChannel).
|
|
741
|
-
return !(this.
|
|
740
|
+
protoOf(ByteChannel).f3t = function () {
|
|
741
|
+
return !(this.p3r_1.kotlinx$atomicfu$value == null);
|
|
742
742
|
};
|
|
743
|
-
protoOf(ByteChannel).
|
|
744
|
-
|
|
743
|
+
protoOf(ByteChannel).g3t = function () {
|
|
744
|
+
var tmp;
|
|
745
|
+
var tmp0_safe_receiver = this.p3r_1.kotlinx$atomicfu$value;
|
|
746
|
+
if ((tmp0_safe_receiver == null ? null : tmp0_safe_receiver.i3t()) === true) {
|
|
747
|
+
tmp = true;
|
|
748
|
+
} else {
|
|
749
|
+
tmp = (this.f3t() && this.k3r_1 === 0 && this.n3r_1.y3n());
|
|
750
|
+
}
|
|
751
|
+
return tmp;
|
|
745
752
|
};
|
|
746
|
-
protoOf(ByteChannel).
|
|
753
|
+
protoOf(ByteChannel).j3t = function (min, $completion) {
|
|
747
754
|
var tmp = new $awaitContentCOROUTINE$(this, min, $completion);
|
|
748
755
|
tmp.d9_1 = Unit_instance;
|
|
749
756
|
tmp.e9_1 = null;
|
|
750
757
|
return tmp.j9();
|
|
751
758
|
};
|
|
752
|
-
protoOf(ByteChannel).
|
|
759
|
+
protoOf(ByteChannel).b3t = function ($completion) {
|
|
753
760
|
var tmp = new $flushCOROUTINE$(this, $completion);
|
|
754
761
|
tmp.d9_1 = Unit_instance;
|
|
755
762
|
tmp.e9_1 = null;
|
|
756
763
|
return tmp.j9();
|
|
757
764
|
};
|
|
758
|
-
protoOf(ByteChannel).
|
|
759
|
-
if (this.
|
|
765
|
+
protoOf(ByteChannel).o3s = function () {
|
|
766
|
+
if (this.o3r_1.y3n())
|
|
760
767
|
return Unit_instance;
|
|
761
768
|
// Inline function 'io.ktor.utils.io.locks.synchronized' call
|
|
762
|
-
this.
|
|
763
|
-
var count = convertToInt(this.
|
|
764
|
-
this.
|
|
765
|
-
this.
|
|
769
|
+
this.l3r_1;
|
|
770
|
+
var count = convertToInt(this.o3r_1.e1());
|
|
771
|
+
this.j3r_1.q3p(this.o3r_1);
|
|
772
|
+
this.k3r_1 = this.k3r_1 + count | 0;
|
|
766
773
|
// Inline function 'io.ktor.utils.io.ByteChannel.resumeSlot' call
|
|
767
|
-
var current = this.
|
|
774
|
+
var current = this.m3r_1.kotlinx$atomicfu$value;
|
|
768
775
|
var tmp;
|
|
769
776
|
if (current instanceof Read) {
|
|
770
|
-
tmp = this.
|
|
777
|
+
tmp = this.m3r_1.atomicfu$compareAndSet(current, Empty_instance);
|
|
771
778
|
} else {
|
|
772
779
|
tmp = false;
|
|
773
780
|
}
|
|
774
781
|
if (tmp) {
|
|
775
|
-
current.
|
|
782
|
+
current.c3r();
|
|
776
783
|
}
|
|
777
784
|
};
|
|
778
785
|
protoOf(ByteChannel).j4 = function () {
|
|
779
|
-
this.
|
|
780
|
-
if (!this.
|
|
786
|
+
this.o3s();
|
|
787
|
+
if (!this.p3r_1.atomicfu$compareAndSet(null, get_CLOSED()))
|
|
781
788
|
return Unit_instance;
|
|
782
789
|
closeSlot(this, null);
|
|
783
790
|
};
|
|
784
|
-
protoOf(ByteChannel).
|
|
791
|
+
protoOf(ByteChannel).l3t = function ($completion) {
|
|
785
792
|
var tmp = new $flushAndCloseCOROUTINE$(this, $completion);
|
|
786
793
|
tmp.d9_1 = Unit_instance;
|
|
787
794
|
tmp.e9_1 = null;
|
|
788
795
|
return tmp.j9();
|
|
789
796
|
};
|
|
790
|
-
protoOf(ByteChannel).
|
|
791
|
-
if (!(this.
|
|
797
|
+
protoOf(ByteChannel).m3t = function (cause) {
|
|
798
|
+
if (!(this.p3r_1.kotlinx$atomicfu$value == null))
|
|
792
799
|
return Unit_instance;
|
|
793
800
|
var closedToken = new CloseToken(cause);
|
|
794
|
-
this.
|
|
801
|
+
this.p3r_1.atomicfu$compareAndSet(null, closedToken);
|
|
795
802
|
// Inline function 'io.ktor.utils.io.Companion.wrapCause' call
|
|
796
803
|
var tmp0_subject = access$_get_origin__hdh1qz(closedToken);
|
|
797
804
|
var tmp;
|
|
@@ -812,8 +819,8 @@ protoOf(ByteChannel).c3t = function (cause) {
|
|
|
812
819
|
var wrappedCause = tmp;
|
|
813
820
|
closeSlot(this, wrappedCause);
|
|
814
821
|
};
|
|
815
|
-
protoOf(ByteChannel).
|
|
816
|
-
var existingCause = this.
|
|
822
|
+
protoOf(ByteChannel).n3t = function (handler) {
|
|
823
|
+
var existingCause = this.p3r_1.kotlinx$atomicfu$value;
|
|
817
824
|
if (!(existingCause == null)) {
|
|
818
825
|
// Inline function 'io.ktor.utils.io.Companion.wrapCause' call
|
|
819
826
|
var tmp0_subject = access$_get_origin__hdh1qz(existingCause);
|
|
@@ -836,13 +843,13 @@ protoOf(ByteChannel).d3t = function (handler) {
|
|
|
836
843
|
var tmp_0 = ByteChannel$invokeOnClose$lambda;
|
|
837
844
|
return new sam$kotlinx_coroutines_DisposableHandle$0(tmp_0);
|
|
838
845
|
}
|
|
839
|
-
if (!this.
|
|
846
|
+
if (!this.q3r_1.atomicfu$compareAndSet(null, handler)) {
|
|
840
847
|
// Inline function 'kotlin.error' call
|
|
841
848
|
var message = 'Only one invokeOnClose handler is supported per channel';
|
|
842
849
|
throw IllegalStateException_init_$Create$(toString_1(message));
|
|
843
850
|
}
|
|
844
|
-
var cause = this.
|
|
845
|
-
if (!(cause == null) && this.
|
|
851
|
+
var cause = this.p3r_1.kotlinx$atomicfu$value;
|
|
852
|
+
if (!(cause == null) && this.q3r_1.atomicfu$compareAndSet(handler, null)) {
|
|
846
853
|
// Inline function 'io.ktor.utils.io.Companion.wrapCause' call
|
|
847
854
|
var tmp0_subject_0 = access$_get_origin__hdh1qz(cause);
|
|
848
855
|
var tmp_1;
|
|
@@ -880,7 +887,7 @@ function ByteReadChannel(content, offset, length) {
|
|
|
880
887
|
length = length === VOID ? content.length : length;
|
|
881
888
|
// Inline function 'kotlin.also' call
|
|
882
889
|
var this_0 = new Buffer();
|
|
883
|
-
this_0.
|
|
890
|
+
this_0.h3p(content, offset, offset + length | 0);
|
|
884
891
|
var source = this_0;
|
|
885
892
|
return ByteReadChannel_0(source);
|
|
886
893
|
}
|
|
@@ -888,18 +895,18 @@ function ByteReadChannel_0(source) {
|
|
|
888
895
|
return new SourceByteReadChannel(source);
|
|
889
896
|
}
|
|
890
897
|
function buildPartialMatchTable($this) {
|
|
891
|
-
var table = new Int32Array($this.
|
|
898
|
+
var table = new Int32Array($this.p3t_1.e1());
|
|
892
899
|
var j = 0;
|
|
893
900
|
var inductionVariable = 1;
|
|
894
|
-
var last = $this.
|
|
901
|
+
var last = $this.p3t_1.e1();
|
|
895
902
|
if (inductionVariable < last)
|
|
896
903
|
do {
|
|
897
904
|
var i = inductionVariable;
|
|
898
905
|
inductionVariable = inductionVariable + 1 | 0;
|
|
899
|
-
while (j > 0 && !($this.
|
|
906
|
+
while (j > 0 && !($this.p3t_1.f1(i) === $this.p3t_1.f1(j))) {
|
|
900
907
|
j = table[j - 1 | 0];
|
|
901
908
|
}
|
|
902
|
-
if ($this.
|
|
909
|
+
if ($this.p3t_1.f1(i) === $this.p3t_1.f1(j)) {
|
|
903
910
|
j = j + 1 | 0;
|
|
904
911
|
}
|
|
905
912
|
table[i] = j;
|
|
@@ -920,8 +927,8 @@ function checkFullMatch($this, $completion) {
|
|
|
920
927
|
return tmp.j9();
|
|
921
928
|
}
|
|
922
929
|
function checkBounds($this, extra) {
|
|
923
|
-
if (compare(add($this.
|
|
924
|
-
throw IOException_init_$Create$('Limit of ' + $this.
|
|
930
|
+
if (compare(add($this.v3t_1, extra), $this.r3t_1) > 0) {
|
|
931
|
+
throw IOException_init_$Create$('Limit of ' + $this.r3t_1.toString() + ' bytes exceeded ' + ('while searching for "' + toSingleLineString($this, $this.p3t_1) + '"'));
|
|
925
932
|
}
|
|
926
933
|
}
|
|
927
934
|
function toSingleLineString($this, $receiver) {
|
|
@@ -929,8 +936,8 @@ function toSingleLineString($this, $receiver) {
|
|
|
929
936
|
}
|
|
930
937
|
function $findNextCOROUTINE$(_this__u8e3s4, ignoreMissing, resultContinuation) {
|
|
931
938
|
CoroutineImpl.call(this, resultContinuation);
|
|
932
|
-
this.
|
|
933
|
-
this.
|
|
939
|
+
this.a3v_1 = _this__u8e3s4;
|
|
940
|
+
this.b3v_1 = ignoreMissing;
|
|
934
941
|
}
|
|
935
942
|
protoOf($findNextCOROUTINE$).j9 = function () {
|
|
936
943
|
var suspendResult = this.d9_1;
|
|
@@ -940,17 +947,17 @@ protoOf($findNextCOROUTINE$).j9 = function () {
|
|
|
940
947
|
switch (tmp) {
|
|
941
948
|
case 0:
|
|
942
949
|
this.c9_1 = 9;
|
|
943
|
-
this.
|
|
950
|
+
this.a3v_1.v3t_1 = new Long(0, 0);
|
|
944
951
|
this.b9_1 = 1;
|
|
945
952
|
continue $sm;
|
|
946
953
|
case 1:
|
|
947
|
-
if (!this.
|
|
948
|
-
this.
|
|
954
|
+
if (!this.a3v_1.s3t_1.y3n()) {
|
|
955
|
+
this.c3v_1 = true;
|
|
949
956
|
this.b9_1 = 3;
|
|
950
957
|
continue $sm;
|
|
951
958
|
} else {
|
|
952
959
|
this.b9_1 = 2;
|
|
953
|
-
suspendResult = this.
|
|
960
|
+
suspendResult = this.a3v_1.o3t_1.k3t(VOID, this);
|
|
954
961
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
955
962
|
return suspendResult;
|
|
956
963
|
}
|
|
@@ -958,17 +965,17 @@ protoOf($findNextCOROUTINE$).j9 = function () {
|
|
|
958
965
|
}
|
|
959
966
|
|
|
960
967
|
case 2:
|
|
961
|
-
this.
|
|
968
|
+
this.c3v_1 = suspendResult;
|
|
962
969
|
this.b9_1 = 3;
|
|
963
970
|
continue $sm;
|
|
964
971
|
case 3:
|
|
965
|
-
if (!this.
|
|
972
|
+
if (!this.c3v_1) {
|
|
966
973
|
this.b9_1 = 7;
|
|
967
974
|
continue $sm;
|
|
968
975
|
}
|
|
969
976
|
|
|
970
977
|
this.b9_1 = 4;
|
|
971
|
-
suspendResult = advanceToNextPotentialMatch(this.
|
|
978
|
+
suspendResult = advanceToNextPotentialMatch(this.a3v_1, this);
|
|
972
979
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
973
980
|
return suspendResult;
|
|
974
981
|
}
|
|
@@ -976,7 +983,7 @@ protoOf($findNextCOROUTINE$).j9 = function () {
|
|
|
976
983
|
continue $sm;
|
|
977
984
|
case 4:
|
|
978
985
|
this.b9_1 = 5;
|
|
979
|
-
suspendResult = checkFullMatch(this.
|
|
986
|
+
suspendResult = checkFullMatch(this.a3v_1, this);
|
|
980
987
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
981
988
|
return suspendResult;
|
|
982
989
|
}
|
|
@@ -984,7 +991,7 @@ protoOf($findNextCOROUTINE$).j9 = function () {
|
|
|
984
991
|
continue $sm;
|
|
985
992
|
case 5:
|
|
986
993
|
if (suspendResult) {
|
|
987
|
-
return this.
|
|
994
|
+
return this.a3v_1.v3t_1;
|
|
988
995
|
} else {
|
|
989
996
|
this.b9_1 = 6;
|
|
990
997
|
continue $sm;
|
|
@@ -994,20 +1001,20 @@ protoOf($findNextCOROUTINE$).j9 = function () {
|
|
|
994
1001
|
this.b9_1 = 1;
|
|
995
1002
|
continue $sm;
|
|
996
1003
|
case 7:
|
|
997
|
-
if (!this.
|
|
998
|
-
throw IOException_init_$Create$('Expected "' + toSingleLineString(this.
|
|
1004
|
+
if (!this.b3v_1) {
|
|
1005
|
+
throw IOException_init_$Create$('Expected "' + toSingleLineString(this.a3v_1, this.a3v_1.p3t_1) + '" but encountered end of input');
|
|
999
1006
|
}
|
|
1000
1007
|
|
|
1001
|
-
this.
|
|
1008
|
+
this.a3v_1.v3t_1 = add(this.a3v_1.v3t_1, this.a3v_1.u3t_1.b3p(this.a3v_1.q3t_1.e3t()));
|
|
1002
1009
|
this.b9_1 = 8;
|
|
1003
|
-
suspendResult = this.
|
|
1010
|
+
suspendResult = this.a3v_1.q3t_1.b3t(this);
|
|
1004
1011
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1005
1012
|
return suspendResult;
|
|
1006
1013
|
}
|
|
1007
1014
|
|
|
1008
1015
|
continue $sm;
|
|
1009
1016
|
case 8:
|
|
1010
|
-
return this.
|
|
1017
|
+
return this.a3v_1.v3t_1;
|
|
1011
1018
|
case 9:
|
|
1012
1019
|
throw this.e9_1;
|
|
1013
1020
|
}
|
|
@@ -1024,7 +1031,7 @@ protoOf($findNextCOROUTINE$).j9 = function () {
|
|
|
1024
1031
|
};
|
|
1025
1032
|
function $advanceToNextPotentialMatchCOROUTINE$(_this__u8e3s4, resultContinuation) {
|
|
1026
1033
|
CoroutineImpl.call(this, resultContinuation);
|
|
1027
|
-
this.
|
|
1034
|
+
this.f3u_1 = _this__u8e3s4;
|
|
1028
1035
|
}
|
|
1029
1036
|
protoOf($advanceToNextPotentialMatchCOROUTINE$).j9 = function () {
|
|
1030
1037
|
var suspendResult = this.d9_1;
|
|
@@ -1037,13 +1044,13 @@ protoOf($advanceToNextPotentialMatchCOROUTINE$).j9 = function () {
|
|
|
1037
1044
|
this.b9_1 = 1;
|
|
1038
1045
|
continue $sm;
|
|
1039
1046
|
case 1:
|
|
1040
|
-
if (!this.
|
|
1041
|
-
this.
|
|
1047
|
+
if (!this.f3u_1.s3t_1.y3n()) {
|
|
1048
|
+
this.g3u_1 = true;
|
|
1042
1049
|
this.b9_1 = 3;
|
|
1043
1050
|
continue $sm;
|
|
1044
1051
|
} else {
|
|
1045
1052
|
this.b9_1 = 2;
|
|
1046
|
-
suspendResult = this.
|
|
1053
|
+
suspendResult = this.f3u_1.o3t_1.k3t(VOID, this);
|
|
1047
1054
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1048
1055
|
return suspendResult;
|
|
1049
1056
|
}
|
|
@@ -1051,34 +1058,34 @@ protoOf($advanceToNextPotentialMatchCOROUTINE$).j9 = function () {
|
|
|
1051
1058
|
}
|
|
1052
1059
|
|
|
1053
1060
|
case 2:
|
|
1054
|
-
this.
|
|
1061
|
+
this.g3u_1 = suspendResult;
|
|
1055
1062
|
this.b9_1 = 3;
|
|
1056
1063
|
continue $sm;
|
|
1057
1064
|
case 3:
|
|
1058
|
-
if (!this.
|
|
1065
|
+
if (!this.g3u_1) {
|
|
1059
1066
|
this.b9_1 = 7;
|
|
1060
1067
|
continue $sm;
|
|
1061
1068
|
}
|
|
1062
1069
|
|
|
1063
|
-
var nextMatch = indexOf(this.
|
|
1070
|
+
var nextMatch = indexOf(this.f3u_1.s3t_1, this.f3u_1.p3t_1.f1(0));
|
|
1064
1071
|
if (equalsLong(nextMatch, new Long(-1, -1))) {
|
|
1065
|
-
var tmp_0 = this.
|
|
1066
|
-
checkBounds(this.
|
|
1067
|
-
this.v3t_1
|
|
1072
|
+
var tmp_0 = this.f3u_1.s3t_1;
|
|
1073
|
+
checkBounds(this.f3u_1, (tmp_0 instanceof Buffer ? tmp_0 : THROW_CCE()).e1());
|
|
1074
|
+
this.f3u_1.v3t_1 = add(this.f3u_1.v3t_1, this.f3u_1.s3t_1.b3p(this.f3u_1.q3t_1.e3t()));
|
|
1068
1075
|
this.b9_1 = 5;
|
|
1069
|
-
suspendResult = flushIfNeeded(this.
|
|
1076
|
+
suspendResult = flushIfNeeded(this.f3u_1.q3t_1, this);
|
|
1070
1077
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1071
1078
|
return suspendResult;
|
|
1072
1079
|
}
|
|
1073
1080
|
continue $sm;
|
|
1074
1081
|
} else {
|
|
1075
|
-
checkBounds(this.
|
|
1076
|
-
var tmp_1 = this.
|
|
1077
|
-
var tmp_2 = this.v3t_1
|
|
1078
|
-
var tmp_3 = this.
|
|
1079
|
-
tmp_1.
|
|
1082
|
+
checkBounds(this.f3u_1, nextMatch);
|
|
1083
|
+
var tmp_1 = this.f3u_1;
|
|
1084
|
+
var tmp_2 = this.f3u_1.v3t_1;
|
|
1085
|
+
var tmp_3 = this.f3u_1.q3t_1.e3t();
|
|
1086
|
+
tmp_1.v3t_1 = add(tmp_2, this.f3u_1.s3t_1.y3o(tmp_3 instanceof Buffer ? tmp_3 : THROW_CCE(), nextMatch));
|
|
1080
1087
|
this.b9_1 = 4;
|
|
1081
|
-
suspendResult = flushIfNeeded(this.
|
|
1088
|
+
suspendResult = flushIfNeeded(this.f3u_1.q3t_1, this);
|
|
1082
1089
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1083
1090
|
return suspendResult;
|
|
1084
1091
|
}
|
|
@@ -1111,7 +1118,7 @@ protoOf($advanceToNextPotentialMatchCOROUTINE$).j9 = function () {
|
|
|
1111
1118
|
};
|
|
1112
1119
|
function $checkFullMatchCOROUTINE$(_this__u8e3s4, resultContinuation) {
|
|
1113
1120
|
CoroutineImpl.call(this, resultContinuation);
|
|
1114
|
-
this.
|
|
1121
|
+
this.p3u_1 = _this__u8e3s4;
|
|
1115
1122
|
}
|
|
1116
1123
|
protoOf($checkFullMatchCOROUTINE$).j9 = function () {
|
|
1117
1124
|
var suspendResult = this.d9_1;
|
|
@@ -1124,13 +1131,13 @@ protoOf($checkFullMatchCOROUTINE$).j9 = function () {
|
|
|
1124
1131
|
this.b9_1 = 1;
|
|
1125
1132
|
continue $sm;
|
|
1126
1133
|
case 1:
|
|
1127
|
-
if (!this.
|
|
1128
|
-
this.
|
|
1134
|
+
if (!this.p3u_1.s3t_1.y3n()) {
|
|
1135
|
+
this.r3u_1 = true;
|
|
1129
1136
|
this.b9_1 = 3;
|
|
1130
1137
|
continue $sm;
|
|
1131
1138
|
} else {
|
|
1132
1139
|
this.b9_1 = 2;
|
|
1133
|
-
suspendResult = this.
|
|
1140
|
+
suspendResult = this.p3u_1.o3t_1.k3t(VOID, this);
|
|
1134
1141
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1135
1142
|
return suspendResult;
|
|
1136
1143
|
}
|
|
@@ -1138,30 +1145,30 @@ protoOf($checkFullMatchCOROUTINE$).j9 = function () {
|
|
|
1138
1145
|
}
|
|
1139
1146
|
|
|
1140
1147
|
case 2:
|
|
1141
|
-
this.
|
|
1148
|
+
this.r3u_1 = suspendResult;
|
|
1142
1149
|
this.b9_1 = 3;
|
|
1143
1150
|
continue $sm;
|
|
1144
1151
|
case 3:
|
|
1145
|
-
if (!this.
|
|
1152
|
+
if (!this.r3u_1) {
|
|
1146
1153
|
this.b9_1 = 7;
|
|
1147
1154
|
continue $sm;
|
|
1148
1155
|
}
|
|
1149
1156
|
|
|
1150
|
-
this.
|
|
1151
|
-
if (this.
|
|
1152
|
-
var oldMatchIndex = this.
|
|
1153
|
-
while (this.
|
|
1154
|
-
this.
|
|
1157
|
+
this.q3u_1 = this.p3u_1.s3t_1.b3o();
|
|
1158
|
+
if (this.p3u_1.w3t_1 > 0 && !(this.q3u_1 === this.p3u_1.p3t_1.f1(this.p3u_1.w3t_1))) {
|
|
1159
|
+
var oldMatchIndex = this.p3u_1.w3t_1;
|
|
1160
|
+
while (this.p3u_1.w3t_1 > 0 && !(this.q3u_1 === this.p3u_1.p3t_1.f1(this.p3u_1.w3t_1))) {
|
|
1161
|
+
this.p3u_1.w3t_1 = this.p3u_1.t3t_1[this.p3u_1.w3t_1 - 1 | 0];
|
|
1155
1162
|
}
|
|
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.
|
|
1163
|
+
var retained = fromInt(oldMatchIndex - this.p3u_1.w3t_1 | 0);
|
|
1164
|
+
checkBounds(this.p3u_1, retained);
|
|
1165
|
+
var tmp_0 = this.p3u_1;
|
|
1166
|
+
var tmp_1 = this.p3u_1.v3t_1;
|
|
1167
|
+
var tmp_2 = this.p3u_1.q3t_1.e3t();
|
|
1168
|
+
tmp_0.v3t_1 = add(tmp_1, this.p3u_1.u3t_1.y3o(tmp_2 instanceof Buffer ? tmp_2 : THROW_CCE(), retained));
|
|
1169
|
+
if (this.p3u_1.w3t_1 === 0 && !(this.q3u_1 === this.p3u_1.p3t_1.f1(this.p3u_1.w3t_1))) {
|
|
1163
1170
|
this.b9_1 = 6;
|
|
1164
|
-
suspendResult = writeByte(this.
|
|
1171
|
+
suspendResult = writeByte(this.p3u_1.q3t_1, this.q3u_1, this);
|
|
1165
1172
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1166
1173
|
return suspendResult;
|
|
1167
1174
|
}
|
|
@@ -1179,17 +1186,17 @@ protoOf($checkFullMatchCOROUTINE$).j9 = function () {
|
|
|
1179
1186
|
this.b9_1 = 5;
|
|
1180
1187
|
continue $sm;
|
|
1181
1188
|
case 5:
|
|
1182
|
-
this.
|
|
1183
|
-
if (this.
|
|
1189
|
+
this.p3u_1.w3t_1 = this.p3u_1.w3t_1 + 1 | 0;
|
|
1190
|
+
if (this.p3u_1.w3t_1 === this.p3u_1.p3t_1.e1()) {
|
|
1184
1191
|
return true;
|
|
1185
1192
|
}
|
|
1186
1193
|
|
|
1187
|
-
this.
|
|
1194
|
+
this.p3u_1.u3t_1.r3p(this.q3u_1);
|
|
1188
1195
|
this.b9_1 = 1;
|
|
1189
1196
|
continue $sm;
|
|
1190
1197
|
case 6:
|
|
1191
|
-
var _unary__edvuaz = this.
|
|
1192
|
-
this.
|
|
1198
|
+
var _unary__edvuaz = this.p3u_1.v3t_1;
|
|
1199
|
+
this.p3u_1.v3t_1 = add(_unary__edvuaz, get_ONE());
|
|
1193
1200
|
return false;
|
|
1194
1201
|
case 7:
|
|
1195
1202
|
return false;
|
|
@@ -1209,68 +1216,81 @@ protoOf($checkFullMatchCOROUTINE$).j9 = function () {
|
|
|
1209
1216
|
};
|
|
1210
1217
|
function ByteChannelScanner(channel, matchString, writeChannel, limit) {
|
|
1211
1218
|
limit = limit === VOID ? new Long(-1, 2147483647) : limit;
|
|
1212
|
-
this.
|
|
1213
|
-
this.
|
|
1214
|
-
this.
|
|
1215
|
-
this.
|
|
1219
|
+
this.o3t_1 = channel;
|
|
1220
|
+
this.p3t_1 = matchString;
|
|
1221
|
+
this.q3t_1 = writeChannel;
|
|
1222
|
+
this.r3t_1 = limit;
|
|
1216
1223
|
// Inline function 'kotlin.require' call
|
|
1217
|
-
if (!(this.
|
|
1224
|
+
if (!(this.p3t_1.e1() > 0)) {
|
|
1218
1225
|
var message = 'Empty match string not permitted for scanning';
|
|
1219
1226
|
throw IllegalArgumentException_init_$Create$(toString_1(message));
|
|
1220
1227
|
}
|
|
1221
|
-
this.
|
|
1222
|
-
this.
|
|
1223
|
-
this.
|
|
1224
|
-
this.
|
|
1225
|
-
this.
|
|
1228
|
+
this.s3t_1 = this.o3t_1.d3t();
|
|
1229
|
+
this.t3t_1 = buildPartialMatchTable(this);
|
|
1230
|
+
this.u3t_1 = new Buffer();
|
|
1231
|
+
this.v3t_1 = new Long(0, 0);
|
|
1232
|
+
this.w3t_1 = 0;
|
|
1226
1233
|
}
|
|
1227
|
-
protoOf(ByteChannelScanner).
|
|
1234
|
+
protoOf(ByteChannelScanner).d3v = function (ignoreMissing, $completion) {
|
|
1228
1235
|
var tmp = new $findNextCOROUTINE$(this, ignoreMissing, $completion);
|
|
1229
1236
|
tmp.d9_1 = Unit_instance;
|
|
1230
1237
|
tmp.e9_1 = null;
|
|
1231
1238
|
return tmp.j9();
|
|
1232
1239
|
};
|
|
1240
|
+
function attachJob(_this__u8e3s4, job) {
|
|
1241
|
+
job.p1q(true, VOID, attachJob$lambda(_this__u8e3s4));
|
|
1242
|
+
}
|
|
1233
1243
|
function attachWriterJob(_this__u8e3s4, writerJob) {
|
|
1234
|
-
var tmp = writerJob.
|
|
1244
|
+
var tmp = writerJob.e3v_1;
|
|
1235
1245
|
var tmp0_safe_receiver = tmp instanceof ByteChannel ? tmp : null;
|
|
1236
1246
|
if (tmp0_safe_receiver == null)
|
|
1237
1247
|
null;
|
|
1238
1248
|
else {
|
|
1239
|
-
tmp0_safe_receiver.
|
|
1249
|
+
tmp0_safe_receiver.n3t(attachWriterJob$lambda(_this__u8e3s4));
|
|
1240
1250
|
}
|
|
1241
1251
|
}
|
|
1252
|
+
function attachJob$lambda($this_attachJob) {
|
|
1253
|
+
return function (it) {
|
|
1254
|
+
var tmp;
|
|
1255
|
+
if (!(it == null)) {
|
|
1256
|
+
$this_attachJob.m3t(it);
|
|
1257
|
+
tmp = Unit_instance;
|
|
1258
|
+
}
|
|
1259
|
+
return Unit_instance;
|
|
1260
|
+
};
|
|
1261
|
+
}
|
|
1242
1262
|
function attachWriterJob$lambda($this_attachWriterJob) {
|
|
1243
1263
|
return function (cause) {
|
|
1244
1264
|
var tmp;
|
|
1245
1265
|
if (!(cause == null)) {
|
|
1246
|
-
$this_attachWriterJob.
|
|
1266
|
+
$this_attachWriterJob.m3t(cause);
|
|
1247
1267
|
tmp = Unit_instance;
|
|
1248
1268
|
}
|
|
1249
1269
|
return Unit_instance;
|
|
1250
1270
|
};
|
|
1251
1271
|
}
|
|
1252
1272
|
function ByteReadChannel$Companion$Empty$1() {
|
|
1253
|
-
this.
|
|
1254
|
-
this.
|
|
1273
|
+
this.g3v_1 = null;
|
|
1274
|
+
this.h3v_1 = new Buffer();
|
|
1255
1275
|
}
|
|
1256
|
-
protoOf(ByteReadChannel$Companion$Empty$1).
|
|
1257
|
-
return this.
|
|
1276
|
+
protoOf(ByteReadChannel$Companion$Empty$1).r3r = function () {
|
|
1277
|
+
return this.g3v_1;
|
|
1258
1278
|
};
|
|
1259
|
-
protoOf(ByteReadChannel$Companion$Empty$1).
|
|
1279
|
+
protoOf(ByteReadChannel$Companion$Empty$1).g3t = function () {
|
|
1260
1280
|
return true;
|
|
1261
1281
|
};
|
|
1262
|
-
protoOf(ByteReadChannel$Companion$Empty$1).
|
|
1263
|
-
return this.
|
|
1282
|
+
protoOf(ByteReadChannel$Companion$Empty$1).d3t = function () {
|
|
1283
|
+
return this.h3v_1;
|
|
1264
1284
|
};
|
|
1265
|
-
protoOf(ByteReadChannel$Companion$Empty$1).
|
|
1285
|
+
protoOf(ByteReadChannel$Companion$Empty$1).j3t = function (min, $completion) {
|
|
1266
1286
|
return false;
|
|
1267
1287
|
};
|
|
1268
|
-
protoOf(ByteReadChannel$Companion$Empty$1).
|
|
1288
|
+
protoOf(ByteReadChannel$Companion$Empty$1).m3t = function (cause) {
|
|
1269
1289
|
};
|
|
1270
1290
|
function Companion_0() {
|
|
1271
1291
|
Companion_instance_1 = this;
|
|
1272
1292
|
var tmp = this;
|
|
1273
|
-
tmp.
|
|
1293
|
+
tmp.i3v_1 = new ByteReadChannel$Companion$Empty$1();
|
|
1274
1294
|
}
|
|
1275
1295
|
var Companion_instance_1;
|
|
1276
1296
|
function Companion_getInstance_0() {
|
|
@@ -1281,7 +1301,7 @@ function Companion_getInstance_0() {
|
|
|
1281
1301
|
function ByteReadChannel_1() {
|
|
1282
1302
|
}
|
|
1283
1303
|
function cancel_0(_this__u8e3s4) {
|
|
1284
|
-
_this__u8e3s4.
|
|
1304
|
+
_this__u8e3s4.m3t(IOException_init_$Create$('Channel was cancelled'));
|
|
1285
1305
|
}
|
|
1286
1306
|
function readBuffer(_this__u8e3s4, $completion) {
|
|
1287
1307
|
var tmp = new $readBufferCOROUTINE$(_this__u8e3s4, $completion);
|
|
@@ -1317,7 +1337,7 @@ function copyTo(_this__u8e3s4, channel, limit, $completion) {
|
|
|
1317
1337
|
return tmp.j9();
|
|
1318
1338
|
}
|
|
1319
1339
|
function rethrowCloseCauseIfNeeded_0(_this__u8e3s4) {
|
|
1320
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
1340
|
+
var tmp0_safe_receiver = _this__u8e3s4.r3r();
|
|
1321
1341
|
if (tmp0_safe_receiver == null)
|
|
1322
1342
|
null;
|
|
1323
1343
|
else {
|
|
@@ -1340,7 +1360,7 @@ function readPacket(_this__u8e3s4, packet, $completion) {
|
|
|
1340
1360
|
function readUntil(_this__u8e3s4, matchString, writeChannel, limit, ignoreMissing, $completion) {
|
|
1341
1361
|
limit = limit === VOID ? new Long(-1, 2147483647) : limit;
|
|
1342
1362
|
ignoreMissing = ignoreMissing === VOID ? false : ignoreMissing;
|
|
1343
|
-
return (new ByteChannelScanner(_this__u8e3s4, matchString, writeChannel, limit)).
|
|
1363
|
+
return (new ByteChannelScanner(_this__u8e3s4, matchString, writeChannel, limit)).d3v(ignoreMissing, $completion);
|
|
1344
1364
|
}
|
|
1345
1365
|
function readLineStrictTo(_this__u8e3s4, out, limit, lineEnding, $completion) {
|
|
1346
1366
|
limit = limit === VOID ? new Long(-1, 2147483647) : limit;
|
|
@@ -1353,7 +1373,7 @@ function readLineStrictTo(_this__u8e3s4, out, limit, lineEnding, $completion) {
|
|
|
1353
1373
|
return internalReadLineTo(_this__u8e3s4, out, limit, lineEnding.equals(LineEnding_Lenient_getInstance()), true, $completion);
|
|
1354
1374
|
}
|
|
1355
1375
|
function get_availableForRead(_this__u8e3s4) {
|
|
1356
|
-
return convertToInt(_this__u8e3s4.
|
|
1376
|
+
return convertToInt(_this__u8e3s4.d3t().x3n().e1());
|
|
1357
1377
|
}
|
|
1358
1378
|
function peek(_this__u8e3s4, count, $completion) {
|
|
1359
1379
|
var tmp = new $peekCOROUTINE$(_this__u8e3s4, count, $completion);
|
|
@@ -1374,7 +1394,7 @@ function throwTooLongLineException(limit) {
|
|
|
1374
1394
|
throw new TooLongLineException('Line exceeds limit of ' + limit.toString() + ' bytes');
|
|
1375
1395
|
}
|
|
1376
1396
|
function rethrowCloseCauseIfNeeded_1(_this__u8e3s4) {
|
|
1377
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
1397
|
+
var tmp0_safe_receiver = _this__u8e3s4.r3r();
|
|
1378
1398
|
if (tmp0_safe_receiver == null)
|
|
1379
1399
|
null;
|
|
1380
1400
|
else {
|
|
@@ -1387,7 +1407,7 @@ function internalReadLineTo$bufferBytes(outBuffer, readBuffer, consumed, count)
|
|
|
1387
1407
|
if (outBuffer._v == null) {
|
|
1388
1408
|
outBuffer._v = new Buffer();
|
|
1389
1409
|
}
|
|
1390
|
-
outBuffer._v.
|
|
1410
|
+
outBuffer._v.l3p(readBuffer, count);
|
|
1391
1411
|
consumed._v = add(consumed._v, count);
|
|
1392
1412
|
}
|
|
1393
1413
|
}
|
|
@@ -1428,7 +1448,7 @@ function internalReadLineTo$discardCrlfOrCr(_this__u8e3s4, $this_internalReadLin
|
|
|
1428
1448
|
}
|
|
1429
1449
|
function $readBufferCOROUTINE$(_this__u8e3s4, resultContinuation) {
|
|
1430
1450
|
CoroutineImpl.call(this, resultContinuation);
|
|
1431
|
-
this.
|
|
1451
|
+
this.r3v_1 = _this__u8e3s4;
|
|
1432
1452
|
}
|
|
1433
1453
|
protoOf($readBufferCOROUTINE$).j9 = function () {
|
|
1434
1454
|
var suspendResult = this.d9_1;
|
|
@@ -1438,18 +1458,18 @@ protoOf($readBufferCOROUTINE$).j9 = function () {
|
|
|
1438
1458
|
switch (tmp) {
|
|
1439
1459
|
case 0:
|
|
1440
1460
|
this.c9_1 = 5;
|
|
1441
|
-
this.
|
|
1461
|
+
this.s3v_1 = new Buffer();
|
|
1442
1462
|
this.b9_1 = 1;
|
|
1443
1463
|
continue $sm;
|
|
1444
1464
|
case 1:
|
|
1445
|
-
if (!!this.
|
|
1465
|
+
if (!!this.r3v_1.g3t()) {
|
|
1446
1466
|
this.b9_1 = 4;
|
|
1447
1467
|
continue $sm;
|
|
1448
1468
|
}
|
|
1449
1469
|
|
|
1450
|
-
if (this.
|
|
1470
|
+
if (this.r3v_1.d3t().y3n()) {
|
|
1451
1471
|
this.b9_1 = 2;
|
|
1452
|
-
suspendResult = this.
|
|
1472
|
+
suspendResult = this.r3v_1.k3t(VOID, this);
|
|
1453
1473
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1454
1474
|
return suspendResult;
|
|
1455
1475
|
}
|
|
@@ -1463,12 +1483,12 @@ protoOf($readBufferCOROUTINE$).j9 = function () {
|
|
|
1463
1483
|
this.b9_1 = 3;
|
|
1464
1484
|
continue $sm;
|
|
1465
1485
|
case 3:
|
|
1466
|
-
this.
|
|
1486
|
+
this.s3v_1.q3p(this.r3v_1.d3t());
|
|
1467
1487
|
this.b9_1 = 1;
|
|
1468
1488
|
continue $sm;
|
|
1469
1489
|
case 4:
|
|
1470
|
-
rethrowCloseCauseIfNeeded_0(this.
|
|
1471
|
-
return this.
|
|
1490
|
+
rethrowCloseCauseIfNeeded_0(this.r3v_1);
|
|
1491
|
+
return this.s3v_1;
|
|
1472
1492
|
case 5:
|
|
1473
1493
|
throw this.e9_1;
|
|
1474
1494
|
}
|
|
@@ -1485,8 +1505,8 @@ protoOf($readBufferCOROUTINE$).j9 = function () {
|
|
|
1485
1505
|
};
|
|
1486
1506
|
function $discardCOROUTINE$(_this__u8e3s4, max, resultContinuation) {
|
|
1487
1507
|
CoroutineImpl.call(this, resultContinuation);
|
|
1488
|
-
this.
|
|
1489
|
-
this.
|
|
1508
|
+
this.b3w_1 = _this__u8e3s4;
|
|
1509
|
+
this.c3w_1 = max;
|
|
1490
1510
|
}
|
|
1491
1511
|
protoOf($discardCOROUTINE$).j9 = function () {
|
|
1492
1512
|
var suspendResult = this.d9_1;
|
|
@@ -1496,18 +1516,18 @@ protoOf($discardCOROUTINE$).j9 = function () {
|
|
|
1496
1516
|
switch (tmp) {
|
|
1497
1517
|
case 0:
|
|
1498
1518
|
this.c9_1 = 5;
|
|
1499
|
-
this.
|
|
1519
|
+
this.d3w_1 = this.c3w_1;
|
|
1500
1520
|
this.b9_1 = 1;
|
|
1501
1521
|
continue $sm;
|
|
1502
1522
|
case 1:
|
|
1503
|
-
if (!(compare(this.
|
|
1523
|
+
if (!(compare(this.d3w_1, new Long(0, 0)) > 0 && !this.b3w_1.g3t())) {
|
|
1504
1524
|
this.b9_1 = 4;
|
|
1505
1525
|
continue $sm;
|
|
1506
1526
|
}
|
|
1507
1527
|
|
|
1508
|
-
if (get_availableForRead(this.
|
|
1528
|
+
if (get_availableForRead(this.b3w_1) === 0) {
|
|
1509
1529
|
this.b9_1 = 2;
|
|
1510
|
-
suspendResult = this.
|
|
1530
|
+
suspendResult = this.b3w_1.k3t(VOID, this);
|
|
1511
1531
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1512
1532
|
return suspendResult;
|
|
1513
1533
|
}
|
|
@@ -1521,15 +1541,15 @@ protoOf($discardCOROUTINE$).j9 = function () {
|
|
|
1521
1541
|
this.b9_1 = 3;
|
|
1522
1542
|
continue $sm;
|
|
1523
1543
|
case 3:
|
|
1524
|
-
var tmp0 = this.
|
|
1525
|
-
var b = get_remaining(this.
|
|
1544
|
+
var tmp0 = this.d3w_1;
|
|
1545
|
+
var b = get_remaining(this.b3w_1.d3t());
|
|
1526
1546
|
var count = compare(tmp0, b) <= 0 ? tmp0 : b;
|
|
1527
|
-
discard_0(this.
|
|
1528
|
-
this.
|
|
1547
|
+
discard_0(this.b3w_1.d3t(), count);
|
|
1548
|
+
this.d3w_1 = subtract(this.d3w_1, count);
|
|
1529
1549
|
this.b9_1 = 1;
|
|
1530
1550
|
continue $sm;
|
|
1531
1551
|
case 4:
|
|
1532
|
-
return subtract(this.
|
|
1552
|
+
return subtract(this.c3w_1, this.d3w_1);
|
|
1533
1553
|
case 5:
|
|
1534
1554
|
throw this.e9_1;
|
|
1535
1555
|
}
|
|
@@ -1546,10 +1566,10 @@ protoOf($discardCOROUTINE$).j9 = function () {
|
|
|
1546
1566
|
};
|
|
1547
1567
|
function $readAvailableCOROUTINE$(_this__u8e3s4, buffer, offset, length, resultContinuation) {
|
|
1548
1568
|
CoroutineImpl.call(this, resultContinuation);
|
|
1549
|
-
this.
|
|
1550
|
-
this.
|
|
1551
|
-
this.
|
|
1552
|
-
this.
|
|
1569
|
+
this.m3w_1 = _this__u8e3s4;
|
|
1570
|
+
this.n3w_1 = buffer;
|
|
1571
|
+
this.o3w_1 = offset;
|
|
1572
|
+
this.p3w_1 = length;
|
|
1553
1573
|
}
|
|
1554
1574
|
protoOf($readAvailableCOROUTINE$).j9 = function () {
|
|
1555
1575
|
var suspendResult = this.d9_1;
|
|
@@ -1559,11 +1579,11 @@ protoOf($readAvailableCOROUTINE$).j9 = function () {
|
|
|
1559
1579
|
switch (tmp) {
|
|
1560
1580
|
case 0:
|
|
1561
1581
|
this.c9_1 = 3;
|
|
1562
|
-
if (this.
|
|
1582
|
+
if (this.m3w_1.g3t())
|
|
1563
1583
|
return -1;
|
|
1564
|
-
if (this.
|
|
1584
|
+
if (this.m3w_1.d3t().y3n()) {
|
|
1565
1585
|
this.b9_1 = 1;
|
|
1566
|
-
suspendResult = this.
|
|
1586
|
+
suspendResult = this.m3w_1.k3t(VOID, this);
|
|
1567
1587
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1568
1588
|
return suspendResult;
|
|
1569
1589
|
}
|
|
@@ -1577,9 +1597,9 @@ protoOf($readAvailableCOROUTINE$).j9 = function () {
|
|
|
1577
1597
|
this.b9_1 = 2;
|
|
1578
1598
|
continue $sm;
|
|
1579
1599
|
case 2:
|
|
1580
|
-
if (this.
|
|
1600
|
+
if (this.m3w_1.g3t())
|
|
1581
1601
|
return -1;
|
|
1582
|
-
return readAvailable_0(this.
|
|
1602
|
+
return readAvailable_0(this.m3w_1.d3t(), this.n3w_1, this.o3w_1, this.p3w_1);
|
|
1583
1603
|
case 3:
|
|
1584
1604
|
throw this.e9_1;
|
|
1585
1605
|
}
|
|
@@ -1596,7 +1616,7 @@ protoOf($readAvailableCOROUTINE$).j9 = function () {
|
|
|
1596
1616
|
};
|
|
1597
1617
|
function $toByteArrayCOROUTINE$(_this__u8e3s4, resultContinuation) {
|
|
1598
1618
|
CoroutineImpl.call(this, resultContinuation);
|
|
1599
|
-
this.
|
|
1619
|
+
this.y3w_1 = _this__u8e3s4;
|
|
1600
1620
|
}
|
|
1601
1621
|
protoOf($toByteArrayCOROUTINE$).j9 = function () {
|
|
1602
1622
|
var suspendResult = this.d9_1;
|
|
@@ -1607,7 +1627,7 @@ protoOf($toByteArrayCOROUTINE$).j9 = function () {
|
|
|
1607
1627
|
case 0:
|
|
1608
1628
|
this.c9_1 = 2;
|
|
1609
1629
|
this.b9_1 = 1;
|
|
1610
|
-
suspendResult = readBuffer(this.
|
|
1630
|
+
suspendResult = readBuffer(this.y3w_1, this);
|
|
1611
1631
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1612
1632
|
return suspendResult;
|
|
1613
1633
|
}
|
|
@@ -1632,9 +1652,9 @@ protoOf($toByteArrayCOROUTINE$).j9 = function () {
|
|
|
1632
1652
|
};
|
|
1633
1653
|
function $copyToCOROUTINE$(_this__u8e3s4, channel, limit, resultContinuation) {
|
|
1634
1654
|
CoroutineImpl.call(this, resultContinuation);
|
|
1635
|
-
this.
|
|
1636
|
-
this.
|
|
1637
|
-
this.
|
|
1655
|
+
this.h3x_1 = _this__u8e3s4;
|
|
1656
|
+
this.i3x_1 = channel;
|
|
1657
|
+
this.j3x_1 = limit;
|
|
1638
1658
|
}
|
|
1639
1659
|
protoOf($copyToCOROUTINE$).j9 = function () {
|
|
1640
1660
|
var suspendResult = this.d9_1;
|
|
@@ -1644,7 +1664,7 @@ protoOf($copyToCOROUTINE$).j9 = function () {
|
|
|
1644
1664
|
switch (tmp) {
|
|
1645
1665
|
case 0:
|
|
1646
1666
|
this.c9_1 = 12;
|
|
1647
|
-
this.
|
|
1667
|
+
this.k3x_1 = this.j3x_1;
|
|
1648
1668
|
this.b9_1 = 1;
|
|
1649
1669
|
continue $sm;
|
|
1650
1670
|
case 1:
|
|
@@ -1653,14 +1673,14 @@ protoOf($copyToCOROUTINE$).j9 = function () {
|
|
|
1653
1673
|
this.b9_1 = 2;
|
|
1654
1674
|
continue $sm;
|
|
1655
1675
|
case 2:
|
|
1656
|
-
if (!(!this.
|
|
1676
|
+
if (!(!this.h3x_1.g3t() && compare(this.k3x_1, new Long(0, 0)) > 0)) {
|
|
1657
1677
|
this.b9_1 = 6;
|
|
1658
1678
|
continue $sm;
|
|
1659
1679
|
}
|
|
1660
1680
|
|
|
1661
|
-
if (this.
|
|
1681
|
+
if (this.h3x_1.d3t().y3n()) {
|
|
1662
1682
|
this.b9_1 = 3;
|
|
1663
|
-
suspendResult = this.
|
|
1683
|
+
suspendResult = this.h3x_1.k3t(VOID, this);
|
|
1664
1684
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1665
1685
|
return suspendResult;
|
|
1666
1686
|
}
|
|
@@ -1674,13 +1694,13 @@ protoOf($copyToCOROUTINE$).j9 = function () {
|
|
|
1674
1694
|
this.b9_1 = 4;
|
|
1675
1695
|
continue $sm;
|
|
1676
1696
|
case 4:
|
|
1677
|
-
var tmp0 = this.
|
|
1678
|
-
var b = get_remaining(this.
|
|
1697
|
+
var tmp0 = this.k3x_1;
|
|
1698
|
+
var b = get_remaining(this.h3x_1.d3t());
|
|
1679
1699
|
var count = compare(tmp0, b) <= 0 ? tmp0 : b;
|
|
1680
|
-
this.
|
|
1681
|
-
this.
|
|
1700
|
+
this.h3x_1.d3t().a3p(this.i3x_1.e3t(), count);
|
|
1701
|
+
this.k3x_1 = subtract(this.k3x_1, count);
|
|
1682
1702
|
this.b9_1 = 5;
|
|
1683
|
-
suspendResult = this.
|
|
1703
|
+
suspendResult = this.i3x_1.b3t(this);
|
|
1684
1704
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1685
1705
|
return suspendResult;
|
|
1686
1706
|
}
|
|
@@ -1698,8 +1718,8 @@ protoOf($copyToCOROUTINE$).j9 = function () {
|
|
|
1698
1718
|
var tmp_0 = this.e9_1;
|
|
1699
1719
|
if (tmp_0 instanceof Error) {
|
|
1700
1720
|
var cause = this.e9_1;
|
|
1701
|
-
this.
|
|
1702
|
-
close_0(this.
|
|
1721
|
+
this.h3x_1.m3t(cause);
|
|
1722
|
+
close_0(this.i3x_1, cause);
|
|
1703
1723
|
throw cause;
|
|
1704
1724
|
} else {
|
|
1705
1725
|
throw this.e9_1;
|
|
@@ -1707,27 +1727,27 @@ protoOf($copyToCOROUTINE$).j9 = function () {
|
|
|
1707
1727
|
|
|
1708
1728
|
case 8:
|
|
1709
1729
|
this.c9_1 = 12;
|
|
1710
|
-
this.
|
|
1730
|
+
this.l3x_1 = this.e9_1;
|
|
1711
1731
|
this.b9_1 = 9;
|
|
1712
|
-
suspendResult = this.
|
|
1732
|
+
suspendResult = this.i3x_1.b3t(this);
|
|
1713
1733
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1714
1734
|
return suspendResult;
|
|
1715
1735
|
}
|
|
1716
1736
|
|
|
1717
1737
|
continue $sm;
|
|
1718
1738
|
case 9:
|
|
1719
|
-
throw this.
|
|
1739
|
+
throw this.l3x_1;
|
|
1720
1740
|
case 10:
|
|
1721
1741
|
this.c9_1 = 12;
|
|
1722
1742
|
this.b9_1 = 11;
|
|
1723
|
-
suspendResult = this.
|
|
1743
|
+
suspendResult = this.i3x_1.b3t(this);
|
|
1724
1744
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1725
1745
|
return suspendResult;
|
|
1726
1746
|
}
|
|
1727
1747
|
|
|
1728
1748
|
continue $sm;
|
|
1729
1749
|
case 11:
|
|
1730
|
-
return subtract(this.
|
|
1750
|
+
return subtract(this.j3x_1, this.k3x_1);
|
|
1731
1751
|
case 12:
|
|
1732
1752
|
throw this.e9_1;
|
|
1733
1753
|
}
|
|
@@ -1744,8 +1764,8 @@ protoOf($copyToCOROUTINE$).j9 = function () {
|
|
|
1744
1764
|
};
|
|
1745
1765
|
function $skipIfFoundCOROUTINE$(_this__u8e3s4, byteString, resultContinuation) {
|
|
1746
1766
|
CoroutineImpl.call(this, resultContinuation);
|
|
1747
|
-
this.
|
|
1748
|
-
this.
|
|
1767
|
+
this.u3x_1 = _this__u8e3s4;
|
|
1768
|
+
this.v3x_1 = byteString;
|
|
1749
1769
|
}
|
|
1750
1770
|
protoOf($skipIfFoundCOROUTINE$).j9 = function () {
|
|
1751
1771
|
var suspendResult = this.d9_1;
|
|
@@ -1756,7 +1776,7 @@ protoOf($skipIfFoundCOROUTINE$).j9 = function () {
|
|
|
1756
1776
|
case 0:
|
|
1757
1777
|
this.c9_1 = 4;
|
|
1758
1778
|
this.b9_1 = 1;
|
|
1759
|
-
suspendResult = peek(this.
|
|
1779
|
+
suspendResult = peek(this.u3x_1, this.v3x_1.e1(), this);
|
|
1760
1780
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1761
1781
|
return suspendResult;
|
|
1762
1782
|
}
|
|
@@ -1764,9 +1784,9 @@ protoOf($skipIfFoundCOROUTINE$).j9 = function () {
|
|
|
1764
1784
|
continue $sm;
|
|
1765
1785
|
case 1:
|
|
1766
1786
|
var ARGUMENT = suspendResult;
|
|
1767
|
-
if (equals(ARGUMENT, this.
|
|
1787
|
+
if (equals(ARGUMENT, this.v3x_1)) {
|
|
1768
1788
|
this.b9_1 = 3;
|
|
1769
|
-
suspendResult = discard(this.
|
|
1789
|
+
suspendResult = discard(this.u3x_1, fromInt(this.v3x_1.e1()), this);
|
|
1770
1790
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1771
1791
|
return suspendResult;
|
|
1772
1792
|
}
|
|
@@ -1796,8 +1816,8 @@ protoOf($skipIfFoundCOROUTINE$).j9 = function () {
|
|
|
1796
1816
|
};
|
|
1797
1817
|
function $readPacketCOROUTINE$(_this__u8e3s4, packet, resultContinuation) {
|
|
1798
1818
|
CoroutineImpl.call(this, resultContinuation);
|
|
1799
|
-
this.
|
|
1800
|
-
this.
|
|
1819
|
+
this.e3y_1 = _this__u8e3s4;
|
|
1820
|
+
this.f3y_1 = packet;
|
|
1801
1821
|
}
|
|
1802
1822
|
protoOf($readPacketCOROUTINE$).j9 = function () {
|
|
1803
1823
|
var suspendResult = this.d9_1;
|
|
@@ -1807,18 +1827,18 @@ protoOf($readPacketCOROUTINE$).j9 = function () {
|
|
|
1807
1827
|
switch (tmp) {
|
|
1808
1828
|
case 0:
|
|
1809
1829
|
this.c9_1 = 6;
|
|
1810
|
-
this.
|
|
1830
|
+
this.g3y_1 = new Buffer();
|
|
1811
1831
|
this.b9_1 = 1;
|
|
1812
1832
|
continue $sm;
|
|
1813
1833
|
case 1:
|
|
1814
|
-
if (!(compare(this.
|
|
1834
|
+
if (!(compare(this.g3y_1.e1(), fromInt(this.f3y_1)) < 0)) {
|
|
1815
1835
|
this.b9_1 = 5;
|
|
1816
1836
|
continue $sm;
|
|
1817
1837
|
}
|
|
1818
1838
|
|
|
1819
|
-
if (this.
|
|
1839
|
+
if (this.e3y_1.d3t().y3n()) {
|
|
1820
1840
|
this.b9_1 = 2;
|
|
1821
|
-
suspendResult = this.
|
|
1841
|
+
suspendResult = this.e3y_1.k3t(VOID, this);
|
|
1822
1842
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1823
1843
|
return suspendResult;
|
|
1824
1844
|
}
|
|
@@ -1832,7 +1852,7 @@ protoOf($readPacketCOROUTINE$).j9 = function () {
|
|
|
1832
1852
|
this.b9_1 = 3;
|
|
1833
1853
|
continue $sm;
|
|
1834
1854
|
case 3:
|
|
1835
|
-
if (this.
|
|
1855
|
+
if (this.e3y_1.g3t()) {
|
|
1836
1856
|
this.b9_1 = 5;
|
|
1837
1857
|
continue $sm;
|
|
1838
1858
|
} else {
|
|
@@ -1841,20 +1861,20 @@ protoOf($readPacketCOROUTINE$).j9 = function () {
|
|
|
1841
1861
|
}
|
|
1842
1862
|
|
|
1843
1863
|
case 4:
|
|
1844
|
-
if (compare(get_remaining(this.
|
|
1845
|
-
this.
|
|
1864
|
+
if (compare(get_remaining(this.e3y_1.d3t()), subtract(numberToLong(this.f3y_1), this.g3y_1.e1())) > 0) {
|
|
1865
|
+
this.e3y_1.d3t().a3p(this.g3y_1, subtract(numberToLong(this.f3y_1), this.g3y_1.e1()));
|
|
1846
1866
|
} else {
|
|
1847
|
-
this.
|
|
1867
|
+
this.e3y_1.d3t().b3p(this.g3y_1);
|
|
1848
1868
|
}
|
|
1849
1869
|
|
|
1850
1870
|
this.b9_1 = 1;
|
|
1851
1871
|
continue $sm;
|
|
1852
1872
|
case 5:
|
|
1853
|
-
if (compare(this.
|
|
1854
|
-
throw EOFException_init_$Create$('Not enough data available, required ' + this.
|
|
1873
|
+
if (compare(this.g3y_1.e1(), fromInt(this.f3y_1)) < 0) {
|
|
1874
|
+
throw EOFException_init_$Create$('Not enough data available, required ' + this.f3y_1 + ' bytes but only ' + this.g3y_1.e1().toString() + ' available');
|
|
1855
1875
|
}
|
|
1856
1876
|
|
|
1857
|
-
return this.
|
|
1877
|
+
return this.g3y_1;
|
|
1858
1878
|
case 6:
|
|
1859
1879
|
throw this.e9_1;
|
|
1860
1880
|
}
|
|
@@ -1871,8 +1891,8 @@ protoOf($readPacketCOROUTINE$).j9 = function () {
|
|
|
1871
1891
|
};
|
|
1872
1892
|
function $peekCOROUTINE$(_this__u8e3s4, count, resultContinuation) {
|
|
1873
1893
|
CoroutineImpl.call(this, resultContinuation);
|
|
1874
|
-
this.
|
|
1875
|
-
this.
|
|
1894
|
+
this.p3y_1 = _this__u8e3s4;
|
|
1895
|
+
this.q3y_1 = count;
|
|
1876
1896
|
}
|
|
1877
1897
|
protoOf($peekCOROUTINE$).j9 = function () {
|
|
1878
1898
|
var suspendResult = this.d9_1;
|
|
@@ -1882,10 +1902,10 @@ protoOf($peekCOROUTINE$).j9 = function () {
|
|
|
1882
1902
|
switch (tmp) {
|
|
1883
1903
|
case 0:
|
|
1884
1904
|
this.c9_1 = 3;
|
|
1885
|
-
if (this.
|
|
1905
|
+
if (this.p3y_1.g3t())
|
|
1886
1906
|
return null;
|
|
1887
1907
|
this.b9_1 = 1;
|
|
1888
|
-
suspendResult = this.
|
|
1908
|
+
suspendResult = this.p3y_1.j3t(this.q3y_1, this);
|
|
1889
1909
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1890
1910
|
return suspendResult;
|
|
1891
1911
|
}
|
|
@@ -1900,7 +1920,7 @@ protoOf($peekCOROUTINE$).j9 = function () {
|
|
|
1900
1920
|
}
|
|
1901
1921
|
|
|
1902
1922
|
case 2:
|
|
1903
|
-
return readByteString(this.
|
|
1923
|
+
return readByteString(this.p3y_1.d3t().c3p(), this.q3y_1);
|
|
1904
1924
|
case 3:
|
|
1905
1925
|
throw this.e9_1;
|
|
1906
1926
|
}
|
|
@@ -1917,11 +1937,11 @@ protoOf($peekCOROUTINE$).j9 = function () {
|
|
|
1917
1937
|
};
|
|
1918
1938
|
function $internalReadLineToCOROUTINE$(_this__u8e3s4, out, limit, lenientLineEnding, throwOnIncompleteLine, resultContinuation) {
|
|
1919
1939
|
CoroutineImpl.call(this, resultContinuation);
|
|
1920
|
-
this.
|
|
1921
|
-
this.
|
|
1922
|
-
this.
|
|
1923
|
-
this.
|
|
1924
|
-
this.
|
|
1940
|
+
this.z3y_1 = _this__u8e3s4;
|
|
1941
|
+
this.a3z_1 = out;
|
|
1942
|
+
this.b3z_1 = limit;
|
|
1943
|
+
this.c3z_1 = lenientLineEnding;
|
|
1944
|
+
this.d3z_1 = throwOnIncompleteLine;
|
|
1925
1945
|
}
|
|
1926
1946
|
protoOf($internalReadLineToCOROUTINE$).j9 = function () {
|
|
1927
1947
|
var suspendResult = this.d9_1;
|
|
@@ -1931,10 +1951,10 @@ protoOf($internalReadLineToCOROUTINE$).j9 = function () {
|
|
|
1931
1951
|
switch (tmp) {
|
|
1932
1952
|
case 0:
|
|
1933
1953
|
this.c9_1 = 27;
|
|
1934
|
-
this.
|
|
1935
|
-
if (this.
|
|
1954
|
+
this.h3z_1 = this.z3y_1.d3t();
|
|
1955
|
+
if (this.h3z_1.y3n()) {
|
|
1936
1956
|
this.b9_1 = 1;
|
|
1937
|
-
suspendResult = this.
|
|
1957
|
+
suspendResult = this.z3y_1.k3t(VOID, this);
|
|
1938
1958
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1939
1959
|
return suspendResult;
|
|
1940
1960
|
}
|
|
@@ -1948,10 +1968,10 @@ protoOf($internalReadLineToCOROUTINE$).j9 = function () {
|
|
|
1948
1968
|
this.b9_1 = 2;
|
|
1949
1969
|
continue $sm;
|
|
1950
1970
|
case 2:
|
|
1951
|
-
if (this.
|
|
1971
|
+
if (this.z3y_1.g3t())
|
|
1952
1972
|
return new Long(-1, -1);
|
|
1953
|
-
this.
|
|
1954
|
-
this.
|
|
1973
|
+
this.g3z_1 = {_v: new Long(0, 0)};
|
|
1974
|
+
this.e3z_1 = {_v: null};
|
|
1955
1975
|
this.b9_1 = 3;
|
|
1956
1976
|
continue $sm;
|
|
1957
1977
|
case 3:
|
|
@@ -1962,18 +1982,18 @@ protoOf($internalReadLineToCOROUTINE$).j9 = function () {
|
|
|
1962
1982
|
this.b9_1 = 5;
|
|
1963
1983
|
continue $sm;
|
|
1964
1984
|
case 5:
|
|
1965
|
-
if (!(compare(this.
|
|
1985
|
+
if (!(compare(this.g3z_1._v, this.b3z_1) < 0 && !this.z3y_1.g3t())) {
|
|
1966
1986
|
this.b9_1 = 15;
|
|
1967
1987
|
continue $sm;
|
|
1968
1988
|
}
|
|
1969
1989
|
|
|
1970
|
-
this.
|
|
1971
|
-
this.
|
|
1972
|
-
var crIndex = internalReadLineTo$scanForSoleCr(this.
|
|
1990
|
+
this.k3z_1 = subtract(this.b3z_1, this.g3z_1._v);
|
|
1991
|
+
this.l3z_1 = indexOf(this.h3z_1, 10, VOID, this.k3z_1);
|
|
1992
|
+
var crIndex = internalReadLineTo$scanForSoleCr(this.h3z_1, this.c3z_1, this.l3z_1, this.k3z_1);
|
|
1973
1993
|
if (compare(crIndex, new Long(0, 0)) >= 0) {
|
|
1974
|
-
internalReadLineTo$appendOrBuffer(this.
|
|
1975
|
-
discard_0(this.
|
|
1976
|
-
this.
|
|
1994
|
+
internalReadLineTo$appendOrBuffer(this.e3z_1, this.a3z_1, this.h3z_1, this.g3z_1, crIndex);
|
|
1995
|
+
discard_0(this.h3z_1, new Long(1, 0));
|
|
1996
|
+
this.f3z_1 = this.g3z_1._v;
|
|
1977
1997
|
this.c9_1 = 27;
|
|
1978
1998
|
this.b9_1 = 25;
|
|
1979
1999
|
continue $sm;
|
|
@@ -1983,9 +2003,9 @@ protoOf($internalReadLineToCOROUTINE$).j9 = function () {
|
|
|
1983
2003
|
}
|
|
1984
2004
|
|
|
1985
2005
|
case 6:
|
|
1986
|
-
if (equalsLong(this.
|
|
1987
|
-
discard_0(this.
|
|
1988
|
-
this.
|
|
2006
|
+
if (equalsLong(this.l3z_1, new Long(0, 0))) {
|
|
2007
|
+
discard_0(this.h3z_1, new Long(1, 0));
|
|
2008
|
+
this.f3z_1 = this.g3z_1._v;
|
|
1989
2009
|
this.c9_1 = 27;
|
|
1990
2010
|
this.b9_1 = 25;
|
|
1991
2011
|
continue $sm;
|
|
@@ -1995,19 +2015,19 @@ protoOf($internalReadLineToCOROUTINE$).j9 = function () {
|
|
|
1995
2015
|
}
|
|
1996
2016
|
|
|
1997
2017
|
case 7:
|
|
1998
|
-
if (compare(this.
|
|
2018
|
+
if (compare(this.l3z_1, new Long(0, 0)) > 0) {
|
|
1999
2019
|
var tmp_0;
|
|
2000
|
-
var tmp_1 = this.
|
|
2001
|
-
var this_0 = this.
|
|
2002
|
-
if (tmp_1.
|
|
2020
|
+
var tmp_1 = this.h3z_1.x3n();
|
|
2021
|
+
var this_0 = this.l3z_1;
|
|
2022
|
+
if (tmp_1.t3o(subtract(this_0, fromInt(1))) === 13) {
|
|
2003
2023
|
tmp_0 = new Long(1, 0);
|
|
2004
2024
|
} else {
|
|
2005
2025
|
tmp_0 = new Long(0, 0);
|
|
2006
2026
|
}
|
|
2007
2027
|
var isCrlf = tmp_0;
|
|
2008
|
-
internalReadLineTo$appendOrBuffer(this.
|
|
2009
|
-
discard_0(this.
|
|
2010
|
-
this.
|
|
2028
|
+
internalReadLineTo$appendOrBuffer(this.e3z_1, this.a3z_1, this.h3z_1, this.g3z_1, subtract(this.l3z_1, isCrlf));
|
|
2029
|
+
discard_0(this.h3z_1, add(numberToLong(1), isCrlf));
|
|
2030
|
+
this.f3z_1 = this.g3z_1._v;
|
|
2011
2031
|
this.c9_1 = 27;
|
|
2012
2032
|
this.b9_1 = 25;
|
|
2013
2033
|
continue $sm;
|
|
@@ -2017,32 +2037,32 @@ protoOf($internalReadLineToCOROUTINE$).j9 = function () {
|
|
|
2017
2037
|
}
|
|
2018
2038
|
|
|
2019
2039
|
case 8:
|
|
2020
|
-
var tmp0 = this.
|
|
2021
|
-
var b = get_remaining(this.
|
|
2040
|
+
var tmp0 = this.k3z_1;
|
|
2041
|
+
var b = get_remaining(this.h3z_1);
|
|
2022
2042
|
var count = compare(tmp0, b) <= 0 ? tmp0 : b;
|
|
2023
|
-
var tmp_2 = this.
|
|
2024
|
-
if (tmp_2.
|
|
2025
|
-
internalReadLineTo$appendOrBuffer(this.
|
|
2043
|
+
var tmp_2 = this.h3z_1.x3n();
|
|
2044
|
+
if (tmp_2.t3o(subtract(count, fromInt(1))) === 13) {
|
|
2045
|
+
internalReadLineTo$appendOrBuffer(this.e3z_1, this.a3z_1, this.h3z_1, this.g3z_1, subtract(count, fromInt(1)));
|
|
2026
2046
|
this.b9_1 = 9;
|
|
2027
|
-
suspendResult = internalReadLineTo$discardCrlfOrCr(this.
|
|
2047
|
+
suspendResult = internalReadLineTo$discardCrlfOrCr(this.h3z_1, this.z3y_1, this.c3z_1, this);
|
|
2028
2048
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2029
2049
|
return suspendResult;
|
|
2030
2050
|
}
|
|
2031
2051
|
continue $sm;
|
|
2032
2052
|
} else {
|
|
2033
|
-
internalReadLineTo$bufferBytes(this.
|
|
2053
|
+
internalReadLineTo$bufferBytes(this.e3z_1, this.h3z_1, this.g3z_1, count);
|
|
2034
2054
|
this.b9_1 = 11;
|
|
2035
2055
|
continue $sm;
|
|
2036
2056
|
}
|
|
2037
2057
|
|
|
2038
2058
|
case 9:
|
|
2039
2059
|
if (suspendResult) {
|
|
2040
|
-
this.
|
|
2060
|
+
this.f3z_1 = this.g3z_1._v;
|
|
2041
2061
|
this.c9_1 = 27;
|
|
2042
2062
|
this.b9_1 = 25;
|
|
2043
2063
|
continue $sm;
|
|
2044
2064
|
} else {
|
|
2045
|
-
internalReadLineTo$bufferBytes(this.
|
|
2065
|
+
internalReadLineTo$bufferBytes(this.e3z_1, this.h3z_1, this.g3z_1, new Long(1, 0));
|
|
2046
2066
|
this.b9_1 = 10;
|
|
2047
2067
|
continue $sm;
|
|
2048
2068
|
}
|
|
@@ -2051,25 +2071,25 @@ protoOf($internalReadLineToCOROUTINE$).j9 = function () {
|
|
|
2051
2071
|
this.b9_1 = 11;
|
|
2052
2072
|
continue $sm;
|
|
2053
2073
|
case 11:
|
|
2054
|
-
if (compare(this.
|
|
2074
|
+
if (compare(this.g3z_1._v, this.b3z_1) < 0 && equalsLong(get_remaining(this.h3z_1), new Long(0, 0))) {
|
|
2055
2075
|
this.b9_1 = 12;
|
|
2056
|
-
suspendResult = this.
|
|
2076
|
+
suspendResult = this.z3y_1.k3t(VOID, this);
|
|
2057
2077
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2058
2078
|
return suspendResult;
|
|
2059
2079
|
}
|
|
2060
2080
|
continue $sm;
|
|
2061
2081
|
} else {
|
|
2062
|
-
this.
|
|
2082
|
+
this.j3z_1 = false;
|
|
2063
2083
|
this.b9_1 = 13;
|
|
2064
2084
|
continue $sm;
|
|
2065
2085
|
}
|
|
2066
2086
|
|
|
2067
2087
|
case 12:
|
|
2068
|
-
this.
|
|
2088
|
+
this.j3z_1 = !suspendResult;
|
|
2069
2089
|
this.b9_1 = 13;
|
|
2070
2090
|
continue $sm;
|
|
2071
2091
|
case 13:
|
|
2072
|
-
if (this.
|
|
2092
|
+
if (this.j3z_1) {
|
|
2073
2093
|
this.b9_1 = 15;
|
|
2074
2094
|
continue $sm;
|
|
2075
2095
|
} else {
|
|
@@ -2081,8 +2101,8 @@ protoOf($internalReadLineToCOROUTINE$).j9 = function () {
|
|
|
2081
2101
|
this.b9_1 = 5;
|
|
2082
2102
|
continue $sm;
|
|
2083
2103
|
case 15:
|
|
2084
|
-
if (equalsLong(this.
|
|
2085
|
-
this.
|
|
2104
|
+
if (equalsLong(this.g3z_1._v, new Long(0, 0)) && this.z3y_1.g3t()) {
|
|
2105
|
+
this.f3z_1 = new Long(-1, -1);
|
|
2086
2106
|
this.c9_1 = 27;
|
|
2087
2107
|
this.b9_1 = 25;
|
|
2088
2108
|
continue $sm;
|
|
@@ -2092,23 +2112,23 @@ protoOf($internalReadLineToCOROUTINE$).j9 = function () {
|
|
|
2092
2112
|
}
|
|
2093
2113
|
|
|
2094
2114
|
case 16:
|
|
2095
|
-
if (!(compare(this.
|
|
2096
|
-
var message = 'Consumed bytes exceed the limit: ' + this.
|
|
2115
|
+
if (!(compare(this.g3z_1._v, this.b3z_1) <= 0)) {
|
|
2116
|
+
var message = 'Consumed bytes exceed the limit: ' + this.g3z_1._v.toString() + ' > ' + this.b3z_1.toString() + ". It's an implementation bug, please report it.";
|
|
2097
2117
|
throw IllegalStateException_init_$Create$(toString_1(message));
|
|
2098
2118
|
}
|
|
2099
2119
|
|
|
2100
|
-
if (equalsLong(this.
|
|
2101
|
-
if (equalsLong(this.
|
|
2120
|
+
if (equalsLong(this.g3z_1._v, this.b3z_1)) {
|
|
2121
|
+
if (equalsLong(this.b3z_1, new Long(-1, 2147483647)))
|
|
2102
2122
|
throw new TooLongLineException('Max line length exceeded');
|
|
2103
|
-
if (equalsLong(get_remaining(this.
|
|
2123
|
+
if (equalsLong(get_remaining(this.h3z_1), new Long(0, 0))) {
|
|
2104
2124
|
this.b9_1 = 18;
|
|
2105
|
-
suspendResult = this.
|
|
2125
|
+
suspendResult = this.z3y_1.k3t(VOID, this);
|
|
2106
2126
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2107
2127
|
return suspendResult;
|
|
2108
2128
|
}
|
|
2109
2129
|
continue $sm;
|
|
2110
2130
|
} else {
|
|
2111
|
-
this.
|
|
2131
|
+
this.i3z_1 = false;
|
|
2112
2132
|
this.b9_1 = 19;
|
|
2113
2133
|
continue $sm;
|
|
2114
2134
|
}
|
|
@@ -2118,22 +2138,22 @@ protoOf($internalReadLineToCOROUTINE$).j9 = function () {
|
|
|
2118
2138
|
}
|
|
2119
2139
|
|
|
2120
2140
|
case 17:
|
|
2121
|
-
if (this.
|
|
2122
|
-
throwEndOfStreamException(this.
|
|
2141
|
+
if (this.d3z_1) {
|
|
2142
|
+
throwEndOfStreamException(this.g3z_1._v);
|
|
2123
2143
|
}
|
|
2124
2144
|
|
|
2125
|
-
this.
|
|
2145
|
+
this.f3z_1 = this.g3z_1._v;
|
|
2126
2146
|
this.c9_1 = 27;
|
|
2127
2147
|
this.b9_1 = 25;
|
|
2128
2148
|
var tmp_3 = this;
|
|
2129
2149
|
continue $sm;
|
|
2130
2150
|
case 18:
|
|
2131
|
-
this.
|
|
2151
|
+
this.i3z_1 = !suspendResult;
|
|
2132
2152
|
this.b9_1 = 19;
|
|
2133
2153
|
continue $sm;
|
|
2134
2154
|
case 19:
|
|
2135
|
-
if (this.
|
|
2136
|
-
throwEndOfStreamException(this.
|
|
2155
|
+
if (this.i3z_1) {
|
|
2156
|
+
throwEndOfStreamException(this.g3z_1._v);
|
|
2137
2157
|
} else {
|
|
2138
2158
|
this.b9_1 = 20;
|
|
2139
2159
|
continue $sm;
|
|
@@ -2141,17 +2161,17 @@ protoOf($internalReadLineToCOROUTINE$).j9 = function () {
|
|
|
2141
2161
|
|
|
2142
2162
|
break;
|
|
2143
2163
|
case 20:
|
|
2144
|
-
var tmp0_subject = this.
|
|
2164
|
+
var tmp0_subject = this.h3z_1.x3n().t3o(new Long(0, 0));
|
|
2145
2165
|
if (tmp0_subject === 10) {
|
|
2146
|
-
discard_0(this.
|
|
2147
|
-
this.
|
|
2166
|
+
discard_0(this.h3z_1, new Long(1, 0));
|
|
2167
|
+
this.f3z_1 = this.g3z_1._v;
|
|
2148
2168
|
this.c9_1 = 27;
|
|
2149
2169
|
this.b9_1 = 25;
|
|
2150
2170
|
continue $sm;
|
|
2151
2171
|
} else {
|
|
2152
2172
|
if (tmp0_subject === 13) {
|
|
2153
2173
|
this.b9_1 = 21;
|
|
2154
|
-
suspendResult = internalReadLineTo$discardCrlfOrCr(this.
|
|
2174
|
+
suspendResult = internalReadLineTo$discardCrlfOrCr(this.h3z_1, this.z3y_1, this.c3z_1, this);
|
|
2155
2175
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2156
2176
|
return suspendResult;
|
|
2157
2177
|
}
|
|
@@ -2164,7 +2184,7 @@ protoOf($internalReadLineToCOROUTINE$).j9 = function () {
|
|
|
2164
2184
|
|
|
2165
2185
|
case 21:
|
|
2166
2186
|
if (suspendResult) {
|
|
2167
|
-
this.
|
|
2187
|
+
this.f3z_1 = this.g3z_1._v;
|
|
2168
2188
|
this.c9_1 = 27;
|
|
2169
2189
|
this.b9_1 = 25;
|
|
2170
2190
|
continue $sm;
|
|
@@ -2177,28 +2197,28 @@ protoOf($internalReadLineToCOROUTINE$).j9 = function () {
|
|
|
2177
2197
|
this.b9_1 = 23;
|
|
2178
2198
|
continue $sm;
|
|
2179
2199
|
case 23:
|
|
2180
|
-
throwTooLongLineException(this.
|
|
2200
|
+
throwTooLongLineException(this.b3z_1);
|
|
2181
2201
|
break;
|
|
2182
2202
|
case 24:
|
|
2183
2203
|
this.c9_1 = 27;
|
|
2184
2204
|
var t = this.e9_1;
|
|
2185
|
-
if (!(this.
|
|
2186
|
-
this.
|
|
2205
|
+
if (!(this.e3z_1._v == null)) {
|
|
2206
|
+
this.a3z_1.c1(readString_0(this.e3z_1._v));
|
|
2187
2207
|
}
|
|
2188
2208
|
|
|
2189
2209
|
throw t;
|
|
2190
2210
|
case 25:
|
|
2191
|
-
var tmp_4 = this.
|
|
2211
|
+
var tmp_4 = this.f3z_1;
|
|
2192
2212
|
this.c9_1 = 27;
|
|
2193
|
-
if (!(this.
|
|
2194
|
-
this.
|
|
2213
|
+
if (!(this.e3z_1._v == null)) {
|
|
2214
|
+
this.a3z_1.c1(readString_0(this.e3z_1._v));
|
|
2195
2215
|
}
|
|
2196
2216
|
|
|
2197
2217
|
return tmp_4;
|
|
2198
2218
|
case 26:
|
|
2199
2219
|
this.c9_1 = 27;
|
|
2200
|
-
if (!(this.
|
|
2201
|
-
this.
|
|
2220
|
+
if (!(this.e3z_1._v == null)) {
|
|
2221
|
+
this.a3z_1.c1(readString_0(this.e3z_1._v));
|
|
2202
2222
|
}
|
|
2203
2223
|
|
|
2204
2224
|
return Unit_instance;
|
|
@@ -2218,9 +2238,9 @@ protoOf($internalReadLineToCOROUTINE$).j9 = function () {
|
|
|
2218
2238
|
};
|
|
2219
2239
|
function $internalReadLineTo$discardCrlfOrCrCOROUTINE$(_this__u8e3s4, $this_internalReadLineTo, $lenientLineEnding, resultContinuation) {
|
|
2220
2240
|
CoroutineImpl.call(this, resultContinuation);
|
|
2221
|
-
this.
|
|
2222
|
-
this.
|
|
2223
|
-
this.
|
|
2241
|
+
this.u3z_1 = _this__u8e3s4;
|
|
2242
|
+
this.v3z_1 = $this_internalReadLineTo;
|
|
2243
|
+
this.w3z_1 = $lenientLineEnding;
|
|
2224
2244
|
}
|
|
2225
2245
|
protoOf($internalReadLineTo$discardCrlfOrCrCOROUTINE$).j9 = function () {
|
|
2226
2246
|
var suspendResult = this.d9_1;
|
|
@@ -2230,13 +2250,13 @@ protoOf($internalReadLineTo$discardCrlfOrCrCOROUTINE$).j9 = function () {
|
|
|
2230
2250
|
switch (tmp) {
|
|
2231
2251
|
case 0:
|
|
2232
2252
|
this.c9_1 = 5;
|
|
2233
|
-
if (compare(get_remaining(this.
|
|
2234
|
-
this.
|
|
2253
|
+
if (compare(get_remaining(this.u3z_1), new Long(2, 0)) >= 0) {
|
|
2254
|
+
this.y3z_1 = true;
|
|
2235
2255
|
this.b9_1 = 2;
|
|
2236
2256
|
continue $sm;
|
|
2237
2257
|
} else {
|
|
2238
2258
|
this.b9_1 = 1;
|
|
2239
|
-
suspendResult = this.
|
|
2259
|
+
suspendResult = this.v3z_1.j3t(2, this);
|
|
2240
2260
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2241
2261
|
return suspendResult;
|
|
2242
2262
|
}
|
|
@@ -2244,23 +2264,23 @@ protoOf($internalReadLineTo$discardCrlfOrCrCOROUTINE$).j9 = function () {
|
|
|
2244
2264
|
}
|
|
2245
2265
|
|
|
2246
2266
|
case 1:
|
|
2247
|
-
this.
|
|
2267
|
+
this.y3z_1 = suspendResult;
|
|
2248
2268
|
this.b9_1 = 2;
|
|
2249
2269
|
continue $sm;
|
|
2250
2270
|
case 2:
|
|
2251
|
-
if (this.
|
|
2252
|
-
this.
|
|
2271
|
+
if (this.y3z_1) {
|
|
2272
|
+
this.x3z_1 = this.u3z_1.x3n().t3o(new Long(1, 0)) === 10;
|
|
2253
2273
|
this.b9_1 = 3;
|
|
2254
2274
|
continue $sm;
|
|
2255
2275
|
} else {
|
|
2256
|
-
this.
|
|
2276
|
+
this.x3z_1 = false;
|
|
2257
2277
|
this.b9_1 = 3;
|
|
2258
2278
|
continue $sm;
|
|
2259
2279
|
}
|
|
2260
2280
|
|
|
2261
2281
|
case 3:
|
|
2262
|
-
if (this.
|
|
2263
|
-
discard_0(this.
|
|
2282
|
+
if (this.x3z_1) {
|
|
2283
|
+
discard_0(this.u3z_1, new Long(2, 0));
|
|
2264
2284
|
return true;
|
|
2265
2285
|
} else {
|
|
2266
2286
|
this.b9_1 = 4;
|
|
@@ -2268,8 +2288,8 @@ protoOf($internalReadLineTo$discardCrlfOrCrCOROUTINE$).j9 = function () {
|
|
|
2268
2288
|
}
|
|
2269
2289
|
|
|
2270
2290
|
case 4:
|
|
2271
|
-
if (this.
|
|
2272
|
-
discard_0(this.
|
|
2291
|
+
if (this.w3z_1) {
|
|
2292
|
+
discard_0(this.u3z_1, new Long(1, 0));
|
|
2273
2293
|
return true;
|
|
2274
2294
|
}
|
|
2275
2295
|
|
|
@@ -2298,7 +2318,7 @@ function flushIfNeeded(_this__u8e3s4, $completion) {
|
|
|
2298
2318
|
}
|
|
2299
2319
|
function $flushIfNeededCOROUTINE$(_this__u8e3s4, resultContinuation) {
|
|
2300
2320
|
CoroutineImpl.call(this, resultContinuation);
|
|
2301
|
-
this.
|
|
2321
|
+
this.h40_1 = _this__u8e3s4;
|
|
2302
2322
|
}
|
|
2303
2323
|
protoOf($flushIfNeededCOROUTINE$).j9 = function () {
|
|
2304
2324
|
var suspendResult = this.d9_1;
|
|
@@ -2308,10 +2328,10 @@ protoOf($flushIfNeededCOROUTINE$).j9 = function () {
|
|
|
2308
2328
|
switch (tmp) {
|
|
2309
2329
|
case 0:
|
|
2310
2330
|
this.c9_1 = 3;
|
|
2311
|
-
rethrowCloseCauseIfNeeded_1(this.
|
|
2312
|
-
if (this.
|
|
2331
|
+
rethrowCloseCauseIfNeeded_1(this.h40_1);
|
|
2332
|
+
if (this.h40_1.c3t() || get_size(this.h40_1.e3t()) >= 1048576) {
|
|
2313
2333
|
this.b9_1 = 1;
|
|
2314
|
-
suspendResult = this.
|
|
2334
|
+
suspendResult = this.h40_1.b3t(this);
|
|
2315
2335
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2316
2336
|
return suspendResult;
|
|
2317
2337
|
}
|
|
@@ -2343,7 +2363,7 @@ protoOf($flushIfNeededCOROUTINE$).j9 = function () {
|
|
|
2343
2363
|
function ByteWriteChannel$flushAndClose$ref(p0) {
|
|
2344
2364
|
var i = new ByteWriteChannel$flushAndClose$ref_0(p0);
|
|
2345
2365
|
return constructCallableReference(function ($completion) {
|
|
2346
|
-
return i.
|
|
2366
|
+
return i.m40($completion);
|
|
2347
2367
|
}, 0, 1, 17, 'flushAndClose', [p0]);
|
|
2348
2368
|
}
|
|
2349
2369
|
function get_NO_CALLBACK() {
|
|
@@ -2352,11 +2372,11 @@ function get_NO_CALLBACK() {
|
|
|
2352
2372
|
}
|
|
2353
2373
|
var NO_CALLBACK;
|
|
2354
2374
|
function WriterJob(channel, job) {
|
|
2355
|
-
this.
|
|
2356
|
-
this.
|
|
2375
|
+
this.e3v_1 = channel;
|
|
2376
|
+
this.f3v_1 = job;
|
|
2357
2377
|
}
|
|
2358
2378
|
protoOf(WriterJob).w1s = function () {
|
|
2359
|
-
return this.
|
|
2379
|
+
return this.f3v_1;
|
|
2360
2380
|
};
|
|
2361
2381
|
function writer(_this__u8e3s4, coroutineContext, autoFlush, block) {
|
|
2362
2382
|
coroutineContext = coroutineContext === VOID ? EmptyCoroutineContext_getInstance() : coroutineContext;
|
|
@@ -2365,16 +2385,16 @@ function writer(_this__u8e3s4, coroutineContext, autoFlush, block) {
|
|
|
2365
2385
|
return writer_0(_this__u8e3s4, coroutineContext, new ByteChannel(autoFlush), block);
|
|
2366
2386
|
}
|
|
2367
2387
|
function WriterScope(channel, coroutineContext) {
|
|
2368
|
-
this.
|
|
2369
|
-
this.
|
|
2388
|
+
this.n40_1 = channel;
|
|
2389
|
+
this.o40_1 = coroutineContext;
|
|
2370
2390
|
}
|
|
2371
2391
|
protoOf(WriterScope).k1p = function () {
|
|
2372
|
-
return this.
|
|
2392
|
+
return this.o40_1;
|
|
2373
2393
|
};
|
|
2374
2394
|
function writeFully(_this__u8e3s4, value, startIndex, endIndex, $completion) {
|
|
2375
2395
|
startIndex = startIndex === VOID ? 0 : startIndex;
|
|
2376
2396
|
endIndex = endIndex === VOID ? value.length : endIndex;
|
|
2377
|
-
_this__u8e3s4.
|
|
2397
|
+
_this__u8e3s4.e3t().h3p(value, startIndex, endIndex);
|
|
2378
2398
|
return flushIfNeeded(_this__u8e3s4, $completion);
|
|
2379
2399
|
}
|
|
2380
2400
|
function close_0(_this__u8e3s4, cause) {
|
|
@@ -2382,13 +2402,9 @@ function close_0(_this__u8e3s4, cause) {
|
|
|
2382
2402
|
if (cause == null) {
|
|
2383
2403
|
fireAndForget(ByteWriteChannel$flushAndClose$ref(_this__u8e3s4));
|
|
2384
2404
|
} else {
|
|
2385
|
-
_this__u8e3s4.
|
|
2405
|
+
_this__u8e3s4.m3t(cause);
|
|
2386
2406
|
}
|
|
2387
2407
|
}
|
|
2388
|
-
function invokeOnCompletion(_this__u8e3s4, block) {
|
|
2389
|
-
_init_properties_ByteWriteChannelOperations_kt__i7slrs();
|
|
2390
|
-
return _this__u8e3s4.w1s().n1q(block);
|
|
2391
|
-
}
|
|
2392
2408
|
function writer_0(_this__u8e3s4, coroutineContext, channel, block) {
|
|
2393
2409
|
coroutineContext = coroutineContext === VOID ? EmptyCoroutineContext_getInstance() : coroutineContext;
|
|
2394
2410
|
_init_properties_ByteWriteChannelOperations_kt__i7slrs();
|
|
@@ -2398,19 +2414,23 @@ function writer_0(_this__u8e3s4, coroutineContext, channel, block) {
|
|
|
2398
2414
|
var job = this_0;
|
|
2399
2415
|
return new WriterJob(channel, job);
|
|
2400
2416
|
}
|
|
2417
|
+
function invokeOnCompletion(_this__u8e3s4, block) {
|
|
2418
|
+
_init_properties_ByteWriteChannelOperations_kt__i7slrs();
|
|
2419
|
+
return _this__u8e3s4.w1s().n1q(block);
|
|
2420
|
+
}
|
|
2401
2421
|
function fireAndForget(_this__u8e3s4) {
|
|
2402
2422
|
_init_properties_ByteWriteChannelOperations_kt__i7slrs();
|
|
2403
2423
|
startCoroutineCancellable(_this__u8e3s4, get_NO_CALLBACK());
|
|
2404
2424
|
}
|
|
2405
2425
|
function writeByte(_this__u8e3s4, value, $completion) {
|
|
2406
|
-
_this__u8e3s4.
|
|
2426
|
+
_this__u8e3s4.e3t().r3p(value);
|
|
2407
2427
|
return flushIfNeeded(_this__u8e3s4, $completion);
|
|
2408
2428
|
}
|
|
2409
2429
|
function NO_CALLBACK$1() {
|
|
2410
|
-
this.
|
|
2430
|
+
this.p40_1 = EmptyCoroutineContext_getInstance();
|
|
2411
2431
|
}
|
|
2412
2432
|
protoOf(NO_CALLBACK$1).h9 = function () {
|
|
2413
|
-
return this.
|
|
2433
|
+
return this.p40_1;
|
|
2414
2434
|
};
|
|
2415
2435
|
protoOf(NO_CALLBACK$1).i9 = function (result) {
|
|
2416
2436
|
return Unit_instance;
|
|
@@ -2420,27 +2440,27 @@ protoOf(NO_CALLBACK$1).m9 = function (result) {
|
|
|
2420
2440
|
};
|
|
2421
2441
|
function ByteWriteChannel$flushAndClose$ref_0(p0) {
|
|
2422
2442
|
KFunctionImpl.call(this, 1, 1, 17);
|
|
2423
|
-
this.
|
|
2443
|
+
this.l40_1 = p0;
|
|
2424
2444
|
}
|
|
2425
|
-
protoOf(ByteWriteChannel$flushAndClose$ref_0).
|
|
2426
|
-
return this.
|
|
2445
|
+
protoOf(ByteWriteChannel$flushAndClose$ref_0).m40 = function ($completion) {
|
|
2446
|
+
return this.l40_1.l3t($completion);
|
|
2427
2447
|
};
|
|
2428
2448
|
protoOf(ByteWriteChannel$flushAndClose$ref_0).v9 = function ($completion) {
|
|
2429
|
-
return this.
|
|
2449
|
+
return this.m40($completion);
|
|
2430
2450
|
};
|
|
2431
2451
|
function writer$slambda($block, $channel, resultContinuation) {
|
|
2432
|
-
this.
|
|
2433
|
-
this.
|
|
2452
|
+
this.y40_1 = $block;
|
|
2453
|
+
this.z40_1 = $channel;
|
|
2434
2454
|
CoroutineImpl.call(this, resultContinuation);
|
|
2435
2455
|
}
|
|
2436
|
-
protoOf(writer$slambda).
|
|
2437
|
-
var tmp = this.
|
|
2456
|
+
protoOf(writer$slambda).h41 = function ($this$launch, $completion) {
|
|
2457
|
+
var tmp = this.i41($this$launch, $completion);
|
|
2438
2458
|
tmp.d9_1 = Unit_instance;
|
|
2439
2459
|
tmp.e9_1 = null;
|
|
2440
2460
|
return tmp.j9();
|
|
2441
2461
|
};
|
|
2442
2462
|
protoOf(writer$slambda).w9 = function (p1, $completion) {
|
|
2443
|
-
return this.
|
|
2463
|
+
return this.h41((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
2444
2464
|
};
|
|
2445
2465
|
protoOf(writer$slambda).j9 = function () {
|
|
2446
2466
|
var suspendResult = this.d9_1;
|
|
@@ -2450,24 +2470,24 @@ protoOf(writer$slambda).j9 = function () {
|
|
|
2450
2470
|
switch (tmp) {
|
|
2451
2471
|
case 0:
|
|
2452
2472
|
this.c9_1 = 14;
|
|
2453
|
-
this.
|
|
2473
|
+
this.d41_1 = Job(get_job(this.a41_1.k1p()));
|
|
2454
2474
|
this.b9_1 = 1;
|
|
2455
2475
|
continue $sm;
|
|
2456
2476
|
case 1:
|
|
2457
2477
|
this.c9_1 = 4;
|
|
2458
2478
|
this.c9_1 = 3;
|
|
2459
2479
|
this.b9_1 = 2;
|
|
2460
|
-
suspendResult = this.
|
|
2480
|
+
suspendResult = this.y40_1(new WriterScope(this.z40_1, this.a41_1.k1p().rj(this.d41_1)), this);
|
|
2461
2481
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2462
2482
|
return suspendResult;
|
|
2463
2483
|
}
|
|
2464
2484
|
|
|
2465
2485
|
continue $sm;
|
|
2466
2486
|
case 2:
|
|
2467
|
-
this.
|
|
2487
|
+
this.d41_1.t1x();
|
|
2468
2488
|
var tmp_0;
|
|
2469
|
-
if (get_job(this.
|
|
2470
|
-
this.
|
|
2489
|
+
if (get_job(this.a41_1.k1p()).h1q()) {
|
|
2490
|
+
this.z40_1.m3t(get_job(this.a41_1.k1p()).k1q());
|
|
2471
2491
|
tmp_0 = Unit_instance;
|
|
2472
2492
|
}
|
|
2473
2493
|
|
|
@@ -2479,8 +2499,8 @@ protoOf(writer$slambda).j9 = function () {
|
|
|
2479
2499
|
var tmp_1 = this.e9_1;
|
|
2480
2500
|
if (tmp_1 instanceof Error) {
|
|
2481
2501
|
var cause = this.e9_1;
|
|
2482
|
-
cancel(this.
|
|
2483
|
-
this.
|
|
2502
|
+
cancel(this.d41_1, 'Exception thrown while writing to channel', cause);
|
|
2503
|
+
this.z40_1.m3t(cause);
|
|
2484
2504
|
this.c9_1 = 14;
|
|
2485
2505
|
this.b9_1 = 9;
|
|
2486
2506
|
continue $sm;
|
|
@@ -2490,20 +2510,20 @@ protoOf(writer$slambda).j9 = function () {
|
|
|
2490
2510
|
|
|
2491
2511
|
case 4:
|
|
2492
2512
|
this.c9_1 = 14;
|
|
2493
|
-
this.
|
|
2513
|
+
this.e41_1 = this.e9_1;
|
|
2494
2514
|
this.b9_1 = 5;
|
|
2495
|
-
suspendResult = this.
|
|
2515
|
+
suspendResult = this.d41_1.r1q(this);
|
|
2496
2516
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2497
2517
|
return suspendResult;
|
|
2498
2518
|
}
|
|
2499
2519
|
|
|
2500
2520
|
continue $sm;
|
|
2501
2521
|
case 5:
|
|
2502
|
-
this.
|
|
2522
|
+
this.a41_1;
|
|
2503
2523
|
this.c9_1 = 7;
|
|
2504
|
-
this.
|
|
2524
|
+
this.g41_1 = Companion_instance;
|
|
2505
2525
|
this.b9_1 = 6;
|
|
2506
|
-
suspendResult = this.
|
|
2526
|
+
suspendResult = this.z40_1.l3t(this);
|
|
2507
2527
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2508
2528
|
return suspendResult;
|
|
2509
2529
|
}
|
|
@@ -2511,8 +2531,8 @@ protoOf(writer$slambda).j9 = function () {
|
|
|
2511
2531
|
continue $sm;
|
|
2512
2532
|
case 6:
|
|
2513
2533
|
var tmp_2 = this;
|
|
2514
|
-
this.
|
|
2515
|
-
tmp_2.
|
|
2534
|
+
this.g41_1;
|
|
2535
|
+
tmp_2.f41_1 = _Result___init__impl__xyqfz8(Unit_instance);
|
|
2516
2536
|
this.c9_1 = 14;
|
|
2517
2537
|
this.b9_1 = 8;
|
|
2518
2538
|
continue $sm;
|
|
@@ -2522,7 +2542,7 @@ protoOf(writer$slambda).j9 = function () {
|
|
|
2522
2542
|
if (tmp_3 instanceof Error) {
|
|
2523
2543
|
var e = this.e9_1;
|
|
2524
2544
|
var tmp_4 = this;
|
|
2525
|
-
tmp_4.
|
|
2545
|
+
tmp_4.f41_1 = _Result___init__impl__xyqfz8(createFailure(e));
|
|
2526
2546
|
this.b9_1 = 8;
|
|
2527
2547
|
continue $sm;
|
|
2528
2548
|
} else {
|
|
@@ -2531,22 +2551,22 @@ protoOf(writer$slambda).j9 = function () {
|
|
|
2531
2551
|
|
|
2532
2552
|
case 8:
|
|
2533
2553
|
this.c9_1 = 14;
|
|
2534
|
-
throw this.
|
|
2554
|
+
throw this.e41_1;
|
|
2535
2555
|
case 9:
|
|
2536
2556
|
this.c9_1 = 14;
|
|
2537
2557
|
this.b9_1 = 10;
|
|
2538
|
-
suspendResult = this.
|
|
2558
|
+
suspendResult = this.d41_1.r1q(this);
|
|
2539
2559
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2540
2560
|
return suspendResult;
|
|
2541
2561
|
}
|
|
2542
2562
|
|
|
2543
2563
|
continue $sm;
|
|
2544
2564
|
case 10:
|
|
2545
|
-
this.
|
|
2565
|
+
this.a41_1;
|
|
2546
2566
|
this.c9_1 = 12;
|
|
2547
|
-
this.
|
|
2567
|
+
this.c41_1 = Companion_instance;
|
|
2548
2568
|
this.b9_1 = 11;
|
|
2549
|
-
suspendResult = this.
|
|
2569
|
+
suspendResult = this.z40_1.l3t(this);
|
|
2550
2570
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2551
2571
|
return suspendResult;
|
|
2552
2572
|
}
|
|
@@ -2554,8 +2574,8 @@ protoOf(writer$slambda).j9 = function () {
|
|
|
2554
2574
|
continue $sm;
|
|
2555
2575
|
case 11:
|
|
2556
2576
|
var tmp_5 = this;
|
|
2557
|
-
this.
|
|
2558
|
-
tmp_5.
|
|
2577
|
+
this.c41_1;
|
|
2578
|
+
tmp_5.b41_1 = _Result___init__impl__xyqfz8(Unit_instance);
|
|
2559
2579
|
this.c9_1 = 14;
|
|
2560
2580
|
this.b9_1 = 13;
|
|
2561
2581
|
continue $sm;
|
|
@@ -2565,7 +2585,7 @@ protoOf(writer$slambda).j9 = function () {
|
|
|
2565
2585
|
if (tmp_6 instanceof Error) {
|
|
2566
2586
|
var e_0 = this.e9_1;
|
|
2567
2587
|
var tmp_7 = this;
|
|
2568
|
-
tmp_7.
|
|
2588
|
+
tmp_7.b41_1 = _Result___init__impl__xyqfz8(createFailure(e_0));
|
|
2569
2589
|
this.b9_1 = 13;
|
|
2570
2590
|
continue $sm;
|
|
2571
2591
|
} else {
|
|
@@ -2589,22 +2609,22 @@ protoOf(writer$slambda).j9 = function () {
|
|
|
2589
2609
|
}
|
|
2590
2610
|
while (true);
|
|
2591
2611
|
};
|
|
2592
|
-
protoOf(writer$slambda).
|
|
2593
|
-
var i = new writer$slambda(this.
|
|
2594
|
-
i.
|
|
2612
|
+
protoOf(writer$slambda).i41 = function ($this$launch, completion) {
|
|
2613
|
+
var i = new writer$slambda(this.y40_1, this.z40_1, completion);
|
|
2614
|
+
i.a41_1 = $this$launch;
|
|
2595
2615
|
return i;
|
|
2596
2616
|
};
|
|
2597
2617
|
function writer$slambda_0($block, $channel, resultContinuation) {
|
|
2598
2618
|
var i = new writer$slambda($block, $channel, resultContinuation);
|
|
2599
2619
|
return constructCallableReference(function ($this$launch, $completion) {
|
|
2600
|
-
return i.
|
|
2620
|
+
return i.h41($this$launch, $completion);
|
|
2601
2621
|
}, 1);
|
|
2602
2622
|
}
|
|
2603
2623
|
function writer$lambda($channel) {
|
|
2604
2624
|
return function (it) {
|
|
2605
2625
|
var tmp;
|
|
2606
|
-
if (!(it == null) && !$channel.
|
|
2607
|
-
$channel.
|
|
2626
|
+
if (!(it == null) && !$channel.f3t()) {
|
|
2627
|
+
$channel.m3t(it);
|
|
2608
2628
|
tmp = Unit_instance;
|
|
2609
2629
|
}
|
|
2610
2630
|
return Unit_instance;
|
|
@@ -2629,11 +2649,14 @@ function Companion_getInstance_1() {
|
|
|
2629
2649
|
return Companion_instance_2;
|
|
2630
2650
|
}
|
|
2631
2651
|
function access$_get_origin__hdh1qz($this) {
|
|
2632
|
-
return $this.
|
|
2652
|
+
return $this.h3t_1;
|
|
2633
2653
|
}
|
|
2634
2654
|
function CloseToken(origin) {
|
|
2635
|
-
this.
|
|
2655
|
+
this.h3t_1 = origin;
|
|
2636
2656
|
}
|
|
2657
|
+
protoOf(CloseToken).i3t = function () {
|
|
2658
|
+
return !(this.h3t_1 == null);
|
|
2659
|
+
};
|
|
2637
2660
|
var properties_initialized_CloseToken_kt_lgg8zn;
|
|
2638
2661
|
function _init_properties_CloseToken_kt__9ucr41() {
|
|
2639
2662
|
if (!properties_initialized_CloseToken_kt_lgg8zn) {
|
|
@@ -2643,17 +2666,17 @@ function _init_properties_CloseToken_kt__9ucr41() {
|
|
|
2643
2666
|
}
|
|
2644
2667
|
function transferFromDelegate($this) {
|
|
2645
2668
|
updateConsumed($this);
|
|
2646
|
-
var appended = $this.
|
|
2647
|
-
$this.
|
|
2669
|
+
var appended = $this.k41_1.q3p($this.j41_1.d3t());
|
|
2670
|
+
$this.l41_1 = add($this.l41_1, appended);
|
|
2648
2671
|
}
|
|
2649
2672
|
function updateConsumed($this) {
|
|
2650
|
-
$this.
|
|
2651
|
-
$this.
|
|
2673
|
+
$this.m41_1 = add($this.m41_1, subtract($this.l41_1, $this.k41_1.e1()));
|
|
2674
|
+
$this.l41_1 = $this.k41_1.e1();
|
|
2652
2675
|
}
|
|
2653
2676
|
function $awaitContentCOROUTINE$_0(_this__u8e3s4, min, resultContinuation) {
|
|
2654
2677
|
CoroutineImpl.call(this, resultContinuation);
|
|
2655
|
-
this.
|
|
2656
|
-
this.
|
|
2678
|
+
this.v41_1 = _this__u8e3s4;
|
|
2679
|
+
this.w41_1 = min;
|
|
2657
2680
|
}
|
|
2658
2681
|
protoOf($awaitContentCOROUTINE$_0).j9 = function () {
|
|
2659
2682
|
var suspendResult = this.d9_1;
|
|
@@ -2663,12 +2686,12 @@ protoOf($awaitContentCOROUTINE$_0).j9 = function () {
|
|
|
2663
2686
|
switch (tmp) {
|
|
2664
2687
|
case 0:
|
|
2665
2688
|
this.c9_1 = 3;
|
|
2666
|
-
if (compare(this.
|
|
2689
|
+
if (compare(this.v41_1.d3t().e1(), fromInt(this.w41_1)) >= 0) {
|
|
2667
2690
|
return true;
|
|
2668
2691
|
}
|
|
2669
2692
|
|
|
2670
2693
|
this.b9_1 = 1;
|
|
2671
|
-
suspendResult = this.
|
|
2694
|
+
suspendResult = this.v41_1.j41_1.j3t(this.w41_1, this);
|
|
2672
2695
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2673
2696
|
return suspendResult;
|
|
2674
2697
|
}
|
|
@@ -2676,7 +2699,7 @@ protoOf($awaitContentCOROUTINE$_0).j9 = function () {
|
|
|
2676
2699
|
continue $sm;
|
|
2677
2700
|
case 1:
|
|
2678
2701
|
if (suspendResult) {
|
|
2679
|
-
transferFromDelegate(this.
|
|
2702
|
+
transferFromDelegate(this.v41_1);
|
|
2680
2703
|
return true;
|
|
2681
2704
|
} else {
|
|
2682
2705
|
this.b9_1 = 2;
|
|
@@ -2700,34 +2723,34 @@ protoOf($awaitContentCOROUTINE$_0).j9 = function () {
|
|
|
2700
2723
|
while (true);
|
|
2701
2724
|
};
|
|
2702
2725
|
function CountedByteReadChannel(delegate) {
|
|
2703
|
-
this.
|
|
2704
|
-
this.
|
|
2705
|
-
this.
|
|
2706
|
-
this.
|
|
2726
|
+
this.j41_1 = delegate;
|
|
2727
|
+
this.k41_1 = new Buffer();
|
|
2728
|
+
this.l41_1 = new Long(0, 0);
|
|
2729
|
+
this.m41_1 = new Long(0, 0);
|
|
2707
2730
|
}
|
|
2708
|
-
protoOf(CountedByteReadChannel).
|
|
2731
|
+
protoOf(CountedByteReadChannel).x41 = function () {
|
|
2709
2732
|
updateConsumed(this);
|
|
2710
|
-
return this.
|
|
2733
|
+
return this.m41_1;
|
|
2711
2734
|
};
|
|
2712
|
-
protoOf(CountedByteReadChannel).
|
|
2713
|
-
return this.
|
|
2735
|
+
protoOf(CountedByteReadChannel).r3r = function () {
|
|
2736
|
+
return this.j41_1.r3r();
|
|
2714
2737
|
};
|
|
2715
|
-
protoOf(CountedByteReadChannel).
|
|
2716
|
-
return this.
|
|
2738
|
+
protoOf(CountedByteReadChannel).g3t = function () {
|
|
2739
|
+
return this.k41_1.y3n() && this.j41_1.g3t();
|
|
2717
2740
|
};
|
|
2718
|
-
protoOf(CountedByteReadChannel).
|
|
2741
|
+
protoOf(CountedByteReadChannel).d3t = function () {
|
|
2719
2742
|
transferFromDelegate(this);
|
|
2720
|
-
return this.
|
|
2743
|
+
return this.k41_1;
|
|
2721
2744
|
};
|
|
2722
|
-
protoOf(CountedByteReadChannel).
|
|
2745
|
+
protoOf(CountedByteReadChannel).j3t = function (min, $completion) {
|
|
2723
2746
|
var tmp = new $awaitContentCOROUTINE$_0(this, min, $completion);
|
|
2724
2747
|
tmp.d9_1 = Unit_instance;
|
|
2725
2748
|
tmp.e9_1 = null;
|
|
2726
2749
|
return tmp.j9();
|
|
2727
2750
|
};
|
|
2728
|
-
protoOf(CountedByteReadChannel).
|
|
2729
|
-
this.
|
|
2730
|
-
this.
|
|
2751
|
+
protoOf(CountedByteReadChannel).m3t = function (cause) {
|
|
2752
|
+
this.j41_1.m3t(cause);
|
|
2753
|
+
this.k41_1.j4();
|
|
2731
2754
|
};
|
|
2732
2755
|
function counted(_this__u8e3s4) {
|
|
2733
2756
|
return new CountedByteReadChannel(_this__u8e3s4);
|
|
@@ -2785,21 +2808,21 @@ function LineEndingMode__plus_impl_ttpz2j($this, other) {
|
|
|
2785
2808
|
}
|
|
2786
2809
|
function LineEndingMode__toString_impl_j4h76r($this) {
|
|
2787
2810
|
var tmp;
|
|
2788
|
-
if ($this === Companion_getInstance_2().
|
|
2811
|
+
if ($this === Companion_getInstance_2().y41_1) {
|
|
2789
2812
|
tmp = 'CR';
|
|
2790
|
-
} else if ($this === Companion_getInstance_2().
|
|
2813
|
+
} else if ($this === Companion_getInstance_2().z41_1) {
|
|
2791
2814
|
tmp = 'LF';
|
|
2792
|
-
} else if ($this === Companion_getInstance_2().
|
|
2815
|
+
} else if ($this === Companion_getInstance_2().a42_1) {
|
|
2793
2816
|
tmp = 'CRLF';
|
|
2794
2817
|
} else {
|
|
2795
2818
|
// Inline function 'kotlin.collections.filter' call
|
|
2796
|
-
var tmp0 = Companion_getInstance_2().
|
|
2819
|
+
var tmp0 = Companion_getInstance_2().c42_1;
|
|
2797
2820
|
// Inline function 'kotlin.collections.filterTo' call
|
|
2798
2821
|
var destination = ArrayList_init_$Create$();
|
|
2799
2822
|
var _iterator__ex2g4s = tmp0.t();
|
|
2800
2823
|
while (_iterator__ex2g4s.u()) {
|
|
2801
2824
|
var element = _iterator__ex2g4s.v();
|
|
2802
|
-
var it = element.
|
|
2825
|
+
var it = element.d42_1;
|
|
2803
2826
|
if (LineEndingMode__contains_impl_q5pr68($this, it)) {
|
|
2804
2827
|
destination.b1(element);
|
|
2805
2828
|
}
|
|
@@ -2810,11 +2833,11 @@ function LineEndingMode__toString_impl_j4h76r($this) {
|
|
|
2810
2833
|
}
|
|
2811
2834
|
function Companion_2() {
|
|
2812
2835
|
Companion_instance_3 = this;
|
|
2813
|
-
this.
|
|
2814
|
-
this.
|
|
2815
|
-
this.
|
|
2816
|
-
this.
|
|
2817
|
-
this.
|
|
2836
|
+
this.y41_1 = _LineEndingMode___init__impl__jo5bul(1);
|
|
2837
|
+
this.z41_1 = _LineEndingMode___init__impl__jo5bul(2);
|
|
2838
|
+
this.a42_1 = _LineEndingMode___init__impl__jo5bul(4);
|
|
2839
|
+
this.b42_1 = _LineEndingMode___init__impl__jo5bul(7);
|
|
2840
|
+
this.c42_1 = listOf([new LineEndingMode(this.y41_1), new LineEndingMode(this.z41_1), new LineEndingMode(this.a42_1)]);
|
|
2818
2841
|
}
|
|
2819
2842
|
var Companion_instance_3;
|
|
2820
2843
|
function Companion_getInstance_2() {
|
|
@@ -2828,29 +2851,29 @@ function LineEndingMode__hashCode_impl_2mopm4($this) {
|
|
|
2828
2851
|
function LineEndingMode__equals_impl_qyr4nk($this, other) {
|
|
2829
2852
|
if (!(other instanceof LineEndingMode))
|
|
2830
2853
|
return false;
|
|
2831
|
-
if (!($this === other.
|
|
2854
|
+
if (!($this === other.d42_1))
|
|
2832
2855
|
return false;
|
|
2833
2856
|
return true;
|
|
2834
2857
|
}
|
|
2835
2858
|
function LineEndingMode(mode) {
|
|
2836
2859
|
Companion_getInstance_2();
|
|
2837
|
-
this.
|
|
2860
|
+
this.d42_1 = mode;
|
|
2838
2861
|
}
|
|
2839
2862
|
protoOf(LineEndingMode).toString = function () {
|
|
2840
|
-
return LineEndingMode__toString_impl_j4h76r(this.
|
|
2863
|
+
return LineEndingMode__toString_impl_j4h76r(this.d42_1);
|
|
2841
2864
|
};
|
|
2842
2865
|
protoOf(LineEndingMode).hashCode = function () {
|
|
2843
|
-
return LineEndingMode__hashCode_impl_2mopm4(this.
|
|
2866
|
+
return LineEndingMode__hashCode_impl_2mopm4(this.d42_1);
|
|
2844
2867
|
};
|
|
2845
2868
|
protoOf(LineEndingMode).equals = function (other) {
|
|
2846
|
-
return LineEndingMode__equals_impl_qyr4nk(this.
|
|
2869
|
+
return LineEndingMode__equals_impl_qyr4nk(this.d42_1, other);
|
|
2847
2870
|
};
|
|
2848
2871
|
function SourceByteReadChannel(source) {
|
|
2849
|
-
this.
|
|
2850
|
-
this.
|
|
2872
|
+
this.e42_1 = source;
|
|
2873
|
+
this.f42_1 = null;
|
|
2851
2874
|
}
|
|
2852
|
-
protoOf(SourceByteReadChannel).
|
|
2853
|
-
var tmp0_safe_receiver = this.
|
|
2875
|
+
protoOf(SourceByteReadChannel).r3r = function () {
|
|
2876
|
+
var tmp0_safe_receiver = this.f42_1;
|
|
2854
2877
|
var tmp;
|
|
2855
2878
|
if (tmp0_safe_receiver == null) {
|
|
2856
2879
|
tmp = null;
|
|
@@ -2876,42 +2899,42 @@ protoOf(SourceByteReadChannel).j3r = function () {
|
|
|
2876
2899
|
}
|
|
2877
2900
|
return tmp;
|
|
2878
2901
|
};
|
|
2879
|
-
protoOf(SourceByteReadChannel).
|
|
2880
|
-
return this.
|
|
2902
|
+
protoOf(SourceByteReadChannel).g3t = function () {
|
|
2903
|
+
return this.e42_1.y3n();
|
|
2881
2904
|
};
|
|
2882
|
-
protoOf(SourceByteReadChannel).
|
|
2883
|
-
var tmp0_safe_receiver = this.
|
|
2905
|
+
protoOf(SourceByteReadChannel).d3t = function () {
|
|
2906
|
+
var tmp0_safe_receiver = this.r3r();
|
|
2884
2907
|
if (tmp0_safe_receiver == null)
|
|
2885
2908
|
null;
|
|
2886
2909
|
else {
|
|
2887
2910
|
// Inline function 'kotlin.let' call
|
|
2888
2911
|
throw tmp0_safe_receiver;
|
|
2889
2912
|
}
|
|
2890
|
-
return this.
|
|
2913
|
+
return this.e42_1.x3n();
|
|
2891
2914
|
};
|
|
2892
|
-
protoOf(SourceByteReadChannel).
|
|
2893
|
-
var tmp0_safe_receiver = this.
|
|
2915
|
+
protoOf(SourceByteReadChannel).j3t = function (min, $completion) {
|
|
2916
|
+
var tmp0_safe_receiver = this.r3r();
|
|
2894
2917
|
if (tmp0_safe_receiver == null)
|
|
2895
2918
|
null;
|
|
2896
2919
|
else {
|
|
2897
2920
|
// Inline function 'kotlin.let' call
|
|
2898
2921
|
throw tmp0_safe_receiver;
|
|
2899
2922
|
}
|
|
2900
|
-
return this.
|
|
2923
|
+
return this.e42_1.a3o(fromInt(min));
|
|
2901
2924
|
};
|
|
2902
|
-
protoOf(SourceByteReadChannel).
|
|
2903
|
-
if (!(this.
|
|
2925
|
+
protoOf(SourceByteReadChannel).m3t = function (cause) {
|
|
2926
|
+
if (!(this.f42_1 == null))
|
|
2904
2927
|
return Unit_instance;
|
|
2905
|
-
this.
|
|
2928
|
+
this.e42_1.j4();
|
|
2906
2929
|
var tmp = this;
|
|
2907
2930
|
var tmp1_elvis_lhs = cause == null ? null : cause.message;
|
|
2908
|
-
tmp.
|
|
2931
|
+
tmp.f42_1 = new CloseToken(IOException_init_$Create$_0(tmp1_elvis_lhs == null ? 'Channel was cancelled' : tmp1_elvis_lhs, cause));
|
|
2909
2932
|
};
|
|
2910
2933
|
function decode(_this__u8e3s4, input, max) {
|
|
2911
2934
|
max = max === VOID ? 2147483647 : max;
|
|
2912
2935
|
var tmp0 = fromInt(max);
|
|
2913
2936
|
// Inline function 'kotlin.comparisons.minOf' call
|
|
2914
|
-
var b = input.
|
|
2937
|
+
var b = input.x3n().e1();
|
|
2915
2938
|
var tmp$ret$0 = compare(tmp0, b) <= 0 ? tmp0 : b;
|
|
2916
2939
|
// Inline function 'kotlin.text.buildString' call
|
|
2917
2940
|
var capacity = convertToInt(tmp$ret$0);
|
|
@@ -2948,7 +2971,7 @@ function encodeToImpl(_this__u8e3s4, destination, input, fromIndex, toIndex) {
|
|
|
2948
2971
|
}
|
|
2949
2972
|
}
|
|
2950
2973
|
function canRead(_this__u8e3s4) {
|
|
2951
|
-
return !_this__u8e3s4.
|
|
2974
|
+
return !_this__u8e3s4.y3n();
|
|
2952
2975
|
}
|
|
2953
2976
|
function readBytes(_this__u8e3s4, count) {
|
|
2954
2977
|
count = count === VOID ? convertToInt(_this__u8e3s4.e1()) : count;
|
|
@@ -2957,35 +2980,35 @@ function readBytes(_this__u8e3s4, count) {
|
|
|
2957
2980
|
function writeFully_0(_this__u8e3s4, buffer, offset, length) {
|
|
2958
2981
|
offset = offset === VOID ? 0 : offset;
|
|
2959
2982
|
length = length === VOID ? buffer.length - offset | 0 : length;
|
|
2960
|
-
_this__u8e3s4.
|
|
2983
|
+
_this__u8e3s4.h3p(buffer, offset, offset + length | 0);
|
|
2961
2984
|
}
|
|
2962
2985
|
function BytePacketBuilder() {
|
|
2963
2986
|
return new Buffer();
|
|
2964
2987
|
}
|
|
2965
2988
|
function build(_this__u8e3s4) {
|
|
2966
|
-
return _this__u8e3s4.
|
|
2989
|
+
return _this__u8e3s4.x3n();
|
|
2967
2990
|
}
|
|
2968
2991
|
function get_size(_this__u8e3s4) {
|
|
2969
|
-
return convertToInt(_this__u8e3s4.
|
|
2992
|
+
return convertToInt(_this__u8e3s4.x3n().e1());
|
|
2970
2993
|
}
|
|
2971
2994
|
var ByteReadPacketEmpty;
|
|
2972
2995
|
function get_remaining(_this__u8e3s4) {
|
|
2973
2996
|
_init_properties_ByteReadPacket_kt__28475y();
|
|
2974
|
-
return _this__u8e3s4.
|
|
2997
|
+
return _this__u8e3s4.x3n().e1();
|
|
2975
2998
|
}
|
|
2976
2999
|
function takeWhile(_this__u8e3s4, block) {
|
|
2977
3000
|
_init_properties_ByteReadPacket_kt__28475y();
|
|
2978
|
-
while (!_this__u8e3s4.
|
|
3001
|
+
while (!_this__u8e3s4.y3n() && block(_this__u8e3s4.x3n())) {
|
|
2979
3002
|
}
|
|
2980
3003
|
}
|
|
2981
3004
|
function discard_0(_this__u8e3s4, count) {
|
|
2982
3005
|
count = count === VOID ? new Long(-1, 2147483647) : count;
|
|
2983
3006
|
_init_properties_ByteReadPacket_kt__28475y();
|
|
2984
|
-
_this__u8e3s4.
|
|
3007
|
+
_this__u8e3s4.a3o(count);
|
|
2985
3008
|
// Inline function 'kotlin.comparisons.minOf' call
|
|
2986
3009
|
var b = get_remaining(_this__u8e3s4);
|
|
2987
3010
|
var countToDiscard = compare(count, b) <= 0 ? count : b;
|
|
2988
|
-
_this__u8e3s4.
|
|
3011
|
+
_this__u8e3s4.x3n().v3o(countToDiscard);
|
|
2989
3012
|
return countToDiscard;
|
|
2990
3013
|
}
|
|
2991
3014
|
var properties_initialized_ByteReadPacket_kt_hw4st4;
|
|
@@ -2998,23 +3021,23 @@ function _init_properties_ByteReadPacket_kt__28475y() {
|
|
|
2998
3021
|
function readAvailable_0(_this__u8e3s4, buffer, offset, length) {
|
|
2999
3022
|
offset = offset === VOID ? 0 : offset;
|
|
3000
3023
|
length = length === VOID ? buffer.length - offset | 0 : length;
|
|
3001
|
-
var result = _this__u8e3s4.
|
|
3024
|
+
var result = _this__u8e3s4.w3o(buffer, offset, offset + length | 0);
|
|
3002
3025
|
return result === -1 ? 0 : result;
|
|
3003
3026
|
}
|
|
3004
3027
|
function toByteArray_0(_this__u8e3s4, charset) {
|
|
3005
|
-
charset = charset === VOID ? Charsets_getInstance().
|
|
3006
|
-
if (charset.equals(Charsets_getInstance().
|
|
3028
|
+
charset = charset === VOID ? Charsets_getInstance().g42_1 : charset;
|
|
3029
|
+
if (charset.equals(Charsets_getInstance().g42_1))
|
|
3007
3030
|
return encodeToByteArray(_this__u8e3s4);
|
|
3008
|
-
return encodeToByteArray_0(charset.
|
|
3031
|
+
return encodeToByteArray_0(charset.j42(), _this__u8e3s4, 0, _this__u8e3s4.length);
|
|
3009
3032
|
}
|
|
3010
3033
|
function writeText(_this__u8e3s4, text, fromIndex, toIndex, charset) {
|
|
3011
3034
|
fromIndex = fromIndex === VOID ? 0 : fromIndex;
|
|
3012
3035
|
toIndex = toIndex === VOID ? charSequenceLength(text) : toIndex;
|
|
3013
|
-
charset = charset === VOID ? Charsets_getInstance().
|
|
3014
|
-
if (charset === Charsets_getInstance().
|
|
3036
|
+
charset = charset === VOID ? Charsets_getInstance().g42_1 : charset;
|
|
3037
|
+
if (charset === Charsets_getInstance().g42_1) {
|
|
3015
3038
|
return writeString(_this__u8e3s4, toString_1(text), fromIndex, toIndex);
|
|
3016
3039
|
}
|
|
3017
|
-
encodeToImpl(charset.
|
|
3040
|
+
encodeToImpl(charset.j42(), _this__u8e3s4, text, fromIndex, toIndex);
|
|
3018
3041
|
}
|
|
3019
3042
|
function get_ByteArrayPool() {
|
|
3020
3043
|
_init_properties_ByteArrayPool_kt__kfi3uj();
|
|
@@ -3024,7 +3047,7 @@ var ByteArrayPool;
|
|
|
3024
3047
|
function ByteArrayPool$1() {
|
|
3025
3048
|
DefaultPool.call(this, 128);
|
|
3026
3049
|
}
|
|
3027
|
-
protoOf(ByteArrayPool$1).
|
|
3050
|
+
protoOf(ByteArrayPool$1).n42 = function () {
|
|
3028
3051
|
return new Int8Array(4096);
|
|
3029
3052
|
};
|
|
3030
3053
|
var properties_initialized_ByteArrayPool_kt_td6pfh;
|
|
@@ -3038,7 +3061,7 @@ function ObjectPool() {
|
|
|
3038
3061
|
}
|
|
3039
3062
|
function NoPoolImpl() {
|
|
3040
3063
|
}
|
|
3041
|
-
protoOf(NoPoolImpl).
|
|
3064
|
+
protoOf(NoPoolImpl).v42 = function (instance) {
|
|
3042
3065
|
return Unit_instance;
|
|
3043
3066
|
};
|
|
3044
3067
|
protoOf(NoPoolImpl).i1s = function () {
|
|
@@ -3046,13 +3069,13 @@ protoOf(NoPoolImpl).i1s = function () {
|
|
|
3046
3069
|
};
|
|
3047
3070
|
function Companion_3() {
|
|
3048
3071
|
}
|
|
3049
|
-
protoOf(Companion_3).
|
|
3072
|
+
protoOf(Companion_3).w42 = function (name) {
|
|
3050
3073
|
switch (name) {
|
|
3051
3074
|
case 'UTF-8':
|
|
3052
3075
|
case 'utf-8':
|
|
3053
3076
|
case 'UTF8':
|
|
3054
3077
|
case 'utf8':
|
|
3055
|
-
return Charsets_getInstance().
|
|
3078
|
+
return Charsets_getInstance().g42_1;
|
|
3056
3079
|
}
|
|
3057
3080
|
var tmp;
|
|
3058
3081
|
var tmp_0;
|
|
@@ -3083,7 +3106,7 @@ protoOf(Companion_3).n42 = function (name) {
|
|
|
3083
3106
|
tmp = name === 'latin1' || name === 'Latin1';
|
|
3084
3107
|
}
|
|
3085
3108
|
if (tmp) {
|
|
3086
|
-
return Charsets_getInstance().
|
|
3109
|
+
return Charsets_getInstance().h42_1;
|
|
3087
3110
|
}
|
|
3088
3111
|
throw IllegalArgumentException_init_$Create$('Charset ' + name + ' is not supported');
|
|
3089
3112
|
};
|
|
@@ -3092,7 +3115,7 @@ function Companion_getInstance_3() {
|
|
|
3092
3115
|
return Companion_instance_4;
|
|
3093
3116
|
}
|
|
3094
3117
|
function Charset(_name) {
|
|
3095
|
-
this.
|
|
3118
|
+
this.i42_1 = _name;
|
|
3096
3119
|
}
|
|
3097
3120
|
protoOf(Charset).equals = function (other) {
|
|
3098
3121
|
if (this === other)
|
|
@@ -3101,18 +3124,18 @@ protoOf(Charset).equals = function (other) {
|
|
|
3101
3124
|
return false;
|
|
3102
3125
|
if (!(other instanceof Charset))
|
|
3103
3126
|
THROW_CCE();
|
|
3104
|
-
return this.
|
|
3127
|
+
return this.i42_1 === other.i42_1;
|
|
3105
3128
|
};
|
|
3106
3129
|
protoOf(Charset).hashCode = function () {
|
|
3107
|
-
return getStringHashCode(this.
|
|
3130
|
+
return getStringHashCode(this.i42_1);
|
|
3108
3131
|
};
|
|
3109
3132
|
protoOf(Charset).toString = function () {
|
|
3110
|
-
return this.
|
|
3133
|
+
return this.i42_1;
|
|
3111
3134
|
};
|
|
3112
3135
|
function Charsets() {
|
|
3113
3136
|
Charsets_instance = this;
|
|
3114
|
-
this.
|
|
3115
|
-
this.
|
|
3137
|
+
this.g42_1 = new CharsetImpl('UTF-8');
|
|
3138
|
+
this.h42_1 = new CharsetImpl('ISO-8859-1');
|
|
3116
3139
|
}
|
|
3117
3140
|
var Charsets_instance;
|
|
3118
3141
|
function Charsets_getInstance() {
|
|
@@ -3121,25 +3144,25 @@ function Charsets_getInstance() {
|
|
|
3121
3144
|
return Charsets_instance;
|
|
3122
3145
|
}
|
|
3123
3146
|
function get_name(_this__u8e3s4) {
|
|
3124
|
-
return _this__u8e3s4.
|
|
3147
|
+
return _this__u8e3s4.i42_1;
|
|
3125
3148
|
}
|
|
3126
3149
|
function MalformedInputException(message) {
|
|
3127
3150
|
IOException_init_$Init$_0(message, this);
|
|
3128
3151
|
captureStack(this, MalformedInputException);
|
|
3129
3152
|
}
|
|
3130
3153
|
function CharsetDecoder(_charset) {
|
|
3131
|
-
this.
|
|
3154
|
+
this.y42_1 = _charset;
|
|
3132
3155
|
}
|
|
3133
3156
|
function forName(_this__u8e3s4, name) {
|
|
3134
|
-
return Companion_instance_4.
|
|
3157
|
+
return Companion_instance_4.w42(name);
|
|
3135
3158
|
}
|
|
3136
3159
|
function CharsetEncoder(_charset) {
|
|
3137
|
-
this.
|
|
3160
|
+
this.z42_1 = _charset;
|
|
3138
3161
|
}
|
|
3139
3162
|
function decode_0(_this__u8e3s4, input, dst, max) {
|
|
3140
3163
|
var decoder = Decoder(get_name(get_charset(_this__u8e3s4)), true);
|
|
3141
|
-
input.
|
|
3142
|
-
var tmp0 = input.
|
|
3164
|
+
input.a3o(fromInt(max));
|
|
3165
|
+
var tmp0 = input.x3n().e1();
|
|
3143
3166
|
// Inline function 'kotlin.comparisons.minOf' call
|
|
3144
3167
|
var b = fromInt(max);
|
|
3145
3168
|
var count = compare(tmp0, b) <= 0 ? tmp0 : b;
|
|
@@ -3149,7 +3172,7 @@ function decode_0(_this__u8e3s4, input, dst, max) {
|
|
|
3149
3172
|
// Inline function 'org.khronos.webgl.toInt8Array' call
|
|
3150
3173
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
3151
3174
|
// Inline function 'kotlin.js.asDynamic' call
|
|
3152
|
-
tmp = decoder.
|
|
3175
|
+
tmp = decoder.a43(array);
|
|
3153
3176
|
} catch ($p) {
|
|
3154
3177
|
var tmp_0;
|
|
3155
3178
|
if ($p instanceof Error) {
|
|
@@ -3171,11 +3194,11 @@ function encodeImpl(_this__u8e3s4, input, fromIndex, toIndex, dst) {
|
|
|
3171
3194
|
var message = 'Failed requirement.';
|
|
3172
3195
|
throw IllegalArgumentException_init_$Create$(toString_1(message));
|
|
3173
3196
|
}
|
|
3174
|
-
if (get_charset_0(_this__u8e3s4).equals(Charsets_getInstance().
|
|
3197
|
+
if (get_charset_0(_this__u8e3s4).equals(Charsets_getInstance().h42_1)) {
|
|
3175
3198
|
return encodeISO88591(input, fromIndex, toIndex, dst);
|
|
3176
3199
|
}
|
|
3177
3200
|
// Inline function 'kotlin.require' call
|
|
3178
|
-
if (!(get_charset_0(_this__u8e3s4) === Charsets_getInstance().
|
|
3201
|
+
if (!(get_charset_0(_this__u8e3s4) === Charsets_getInstance().g42_1)) {
|
|
3179
3202
|
var message_0 = 'Only UTF-8 encoding is supported in JS';
|
|
3180
3203
|
throw IllegalArgumentException_init_$Create$(toString_1(message_0));
|
|
3181
3204
|
}
|
|
@@ -3185,7 +3208,7 @@ function encodeImpl(_this__u8e3s4, input, fromIndex, toIndex, dst) {
|
|
|
3185
3208
|
var result = encoder.encode(tmp$ret$5);
|
|
3186
3209
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
3187
3210
|
// Inline function 'kotlin.js.asDynamic' call
|
|
3188
|
-
dst.
|
|
3211
|
+
dst.k3p(result);
|
|
3189
3212
|
return result.length;
|
|
3190
3213
|
}
|
|
3191
3214
|
function encodeToByteArray_0(_this__u8e3s4, input, fromIndex, toIndex) {
|
|
@@ -3196,17 +3219,17 @@ function encodeToByteArray_0(_this__u8e3s4, input, fromIndex, toIndex) {
|
|
|
3196
3219
|
function CharsetImpl(name) {
|
|
3197
3220
|
Charset.call(this, name);
|
|
3198
3221
|
}
|
|
3199
|
-
protoOf(CharsetImpl).
|
|
3222
|
+
protoOf(CharsetImpl).j42 = function () {
|
|
3200
3223
|
return new CharsetEncoderImpl(this);
|
|
3201
3224
|
};
|
|
3202
|
-
protoOf(CharsetImpl).
|
|
3225
|
+
protoOf(CharsetImpl).x42 = function () {
|
|
3203
3226
|
return new CharsetDecoderImpl(this);
|
|
3204
3227
|
};
|
|
3205
3228
|
function get_charset(_this__u8e3s4) {
|
|
3206
|
-
return _this__u8e3s4.
|
|
3229
|
+
return _this__u8e3s4.y42_1;
|
|
3207
3230
|
}
|
|
3208
3231
|
function get_charset_0(_this__u8e3s4) {
|
|
3209
|
-
return _this__u8e3s4.
|
|
3232
|
+
return _this__u8e3s4.z42_1;
|
|
3210
3233
|
}
|
|
3211
3234
|
function encodeToByteArrayImpl(_this__u8e3s4, input, fromIndex, toIndex) {
|
|
3212
3235
|
fromIndex = fromIndex === VOID ? 0 : fromIndex;
|
|
@@ -3225,39 +3248,39 @@ function encodeToByteArrayImpl(_this__u8e3s4, input, fromIndex, toIndex) {
|
|
|
3225
3248
|
}
|
|
3226
3249
|
function CharsetEncoderImpl(charset) {
|
|
3227
3250
|
CharsetEncoder.call(this, charset);
|
|
3228
|
-
this.
|
|
3251
|
+
this.d43_1 = charset;
|
|
3229
3252
|
}
|
|
3230
3253
|
protoOf(CharsetEncoderImpl).toString = function () {
|
|
3231
|
-
return 'CharsetEncoderImpl(charset=' + this.
|
|
3254
|
+
return 'CharsetEncoderImpl(charset=' + this.d43_1.toString() + ')';
|
|
3232
3255
|
};
|
|
3233
3256
|
protoOf(CharsetEncoderImpl).hashCode = function () {
|
|
3234
|
-
return this.
|
|
3257
|
+
return this.d43_1.hashCode();
|
|
3235
3258
|
};
|
|
3236
3259
|
protoOf(CharsetEncoderImpl).equals = function (other) {
|
|
3237
3260
|
if (this === other)
|
|
3238
3261
|
return true;
|
|
3239
3262
|
if (!(other instanceof CharsetEncoderImpl))
|
|
3240
3263
|
return false;
|
|
3241
|
-
if (!this.
|
|
3264
|
+
if (!this.d43_1.equals(other.d43_1))
|
|
3242
3265
|
return false;
|
|
3243
3266
|
return true;
|
|
3244
3267
|
};
|
|
3245
3268
|
function CharsetDecoderImpl(charset) {
|
|
3246
3269
|
CharsetDecoder.call(this, charset);
|
|
3247
|
-
this.
|
|
3270
|
+
this.f43_1 = charset;
|
|
3248
3271
|
}
|
|
3249
3272
|
protoOf(CharsetDecoderImpl).toString = function () {
|
|
3250
|
-
return 'CharsetDecoderImpl(charset=' + this.
|
|
3273
|
+
return 'CharsetDecoderImpl(charset=' + this.f43_1.toString() + ')';
|
|
3251
3274
|
};
|
|
3252
3275
|
protoOf(CharsetDecoderImpl).hashCode = function () {
|
|
3253
|
-
return this.
|
|
3276
|
+
return this.f43_1.hashCode();
|
|
3254
3277
|
};
|
|
3255
3278
|
protoOf(CharsetDecoderImpl).equals = function (other) {
|
|
3256
3279
|
if (this === other)
|
|
3257
3280
|
return true;
|
|
3258
3281
|
if (!(other instanceof CharsetDecoderImpl))
|
|
3259
3282
|
return false;
|
|
3260
|
-
if (!this.
|
|
3283
|
+
if (!this.f43_1.equals(other.f43_1))
|
|
3261
3284
|
return false;
|
|
3262
3285
|
return true;
|
|
3263
3286
|
};
|
|
@@ -3291,10 +3314,10 @@ function textDecoderOptions(fatal) {
|
|
|
3291
3314
|
return this_0;
|
|
3292
3315
|
}
|
|
3293
3316
|
function toKtor$1($this_toKtor) {
|
|
3294
|
-
this.
|
|
3317
|
+
this.g43_1 = $this_toKtor;
|
|
3295
3318
|
}
|
|
3296
|
-
protoOf(toKtor$1).
|
|
3297
|
-
return this.
|
|
3319
|
+
protoOf(toKtor$1).a43 = function (buffer) {
|
|
3320
|
+
return this.g43_1.decode(buffer);
|
|
3298
3321
|
};
|
|
3299
3322
|
function get_ENCODING_ALIASES() {
|
|
3300
3323
|
_init_properties_TextDecoderFallback_js_kt__an7r6m();
|
|
@@ -3307,7 +3330,7 @@ function get_REPLACEMENT() {
|
|
|
3307
3330
|
}
|
|
3308
3331
|
var REPLACEMENT;
|
|
3309
3332
|
function TextDecoderFallback(encoding, fatal) {
|
|
3310
|
-
this.
|
|
3333
|
+
this.h43_1 = fatal;
|
|
3311
3334
|
// Inline function 'kotlin.text.trim' call
|
|
3312
3335
|
// Inline function 'kotlin.text.lowercase' call
|
|
3313
3336
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -3318,7 +3341,7 @@ function TextDecoderFallback(encoding, fatal) {
|
|
|
3318
3341
|
throw IllegalStateException_init_$Create$(toString_1(message));
|
|
3319
3342
|
}
|
|
3320
3343
|
}
|
|
3321
|
-
protoOf(TextDecoderFallback).
|
|
3344
|
+
protoOf(TextDecoderFallback).a43 = function (buffer) {
|
|
3322
3345
|
// Inline function 'io.ktor.utils.io.core.buildPacket' call
|
|
3323
3346
|
var builder = new Buffer();
|
|
3324
3347
|
var bytes = buffer instanceof Int8Array ? buffer : THROW_CCE();
|
|
@@ -3334,7 +3357,7 @@ protoOf(TextDecoderFallback).r42 = function (buffer) {
|
|
|
3334
3357
|
var point = toCodePoint(byte);
|
|
3335
3358
|
if (point < 0) {
|
|
3336
3359
|
// Inline function 'kotlin.check' call
|
|
3337
|
-
if (!!this.
|
|
3360
|
+
if (!!this.h43_1) {
|
|
3338
3361
|
var message = 'Invalid character: ' + point;
|
|
3339
3362
|
throw IllegalStateException_init_$Create$(toString_1(message));
|
|
3340
3363
|
}
|
|
@@ -3342,9 +3365,9 @@ protoOf(TextDecoderFallback).r42 = function (buffer) {
|
|
|
3342
3365
|
continue $l$loop;
|
|
3343
3366
|
}
|
|
3344
3367
|
if (point > 255) {
|
|
3345
|
-
builder.
|
|
3368
|
+
builder.r3p(toByte(point >> 8));
|
|
3346
3369
|
}
|
|
3347
|
-
builder.
|
|
3370
|
+
builder.r3p(toByte(point & 255));
|
|
3348
3371
|
}
|
|
3349
3372
|
while (inductionVariable < last);
|
|
3350
3373
|
return decodeToString(readByteArray_0(builder));
|
|
@@ -3371,19 +3394,19 @@ function _init_properties_TextDecoderFallback_js_kt__an7r6m() {
|
|
|
3371
3394
|
}
|
|
3372
3395
|
}
|
|
3373
3396
|
function readText_0(_this__u8e3s4, charset, max) {
|
|
3374
|
-
charset = charset === VOID ? Charsets_getInstance().
|
|
3397
|
+
charset = charset === VOID ? Charsets_getInstance().g42_1 : charset;
|
|
3375
3398
|
max = max === VOID ? 2147483647 : max;
|
|
3376
|
-
if (charset.equals(Charsets_getInstance().
|
|
3399
|
+
if (charset.equals(Charsets_getInstance().g42_1)) {
|
|
3377
3400
|
if (max === 2147483647)
|
|
3378
3401
|
return readString_1(_this__u8e3s4);
|
|
3379
|
-
_this__u8e3s4.
|
|
3380
|
-
var tmp0 = _this__u8e3s4.
|
|
3402
|
+
_this__u8e3s4.a3o(fromInt(max));
|
|
3403
|
+
var tmp0 = _this__u8e3s4.x3n().e1();
|
|
3381
3404
|
// Inline function 'kotlin.math.min' call
|
|
3382
3405
|
var b = fromInt(max);
|
|
3383
3406
|
var count = compare(tmp0, b) <= 0 ? tmp0 : b;
|
|
3384
3407
|
return readString(_this__u8e3s4, count);
|
|
3385
3408
|
}
|
|
3386
|
-
return decode(charset.
|
|
3409
|
+
return decode(charset.x42(), _this__u8e3s4, max);
|
|
3387
3410
|
}
|
|
3388
3411
|
function get_DEVELOPMENT_MODE() {
|
|
3389
3412
|
return false;
|
|
@@ -3405,7 +3428,7 @@ function encodeISO88591(input, fromIndex, toIndex, dst) {
|
|
|
3405
3428
|
if (character > 255) {
|
|
3406
3429
|
failedToMapError(character);
|
|
3407
3430
|
}
|
|
3408
|
-
dst.
|
|
3431
|
+
dst.r3p(toByte(character));
|
|
3409
3432
|
}
|
|
3410
3433
|
while (inductionVariable < toIndex);
|
|
3411
3434
|
return toIndex - fromIndex | 0;
|
|
@@ -3427,64 +3450,64 @@ function _init_properties_Win1252Table_kt__tl0v64() {
|
|
|
3427
3450
|
}
|
|
3428
3451
|
}
|
|
3429
3452
|
function DefaultPool(capacity) {
|
|
3430
|
-
this.
|
|
3453
|
+
this.o42_1 = capacity;
|
|
3431
3454
|
var tmp = this;
|
|
3432
3455
|
// Inline function 'kotlin.arrayOfNulls' call
|
|
3433
|
-
var size = this.
|
|
3434
|
-
tmp.
|
|
3435
|
-
this.
|
|
3456
|
+
var size = this.o42_1;
|
|
3457
|
+
tmp.p42_1 = Array(size);
|
|
3458
|
+
this.q42_1 = 0;
|
|
3436
3459
|
}
|
|
3437
|
-
protoOf(DefaultPool).
|
|
3460
|
+
protoOf(DefaultPool).r42 = function (instance) {
|
|
3438
3461
|
};
|
|
3439
|
-
protoOf(DefaultPool).
|
|
3462
|
+
protoOf(DefaultPool).s42 = function (instance) {
|
|
3440
3463
|
return instance;
|
|
3441
3464
|
};
|
|
3442
|
-
protoOf(DefaultPool).
|
|
3465
|
+
protoOf(DefaultPool).t42 = function (instance) {
|
|
3443
3466
|
};
|
|
3444
|
-
protoOf(DefaultPool).
|
|
3445
|
-
if (this.
|
|
3446
|
-
return this.
|
|
3447
|
-
this.
|
|
3448
|
-
var idx = this.
|
|
3449
|
-
var tmp = this.
|
|
3467
|
+
protoOf(DefaultPool).u42 = function () {
|
|
3468
|
+
if (this.q42_1 === 0)
|
|
3469
|
+
return this.n42();
|
|
3470
|
+
this.q42_1 = this.q42_1 - 1 | 0;
|
|
3471
|
+
var idx = this.q42_1;
|
|
3472
|
+
var tmp = this.p42_1[idx];
|
|
3450
3473
|
var instance = !(tmp == null) ? tmp : THROW_CCE();
|
|
3451
|
-
this.
|
|
3452
|
-
return this.
|
|
3474
|
+
this.p42_1[idx] = null;
|
|
3475
|
+
return this.s42(instance);
|
|
3453
3476
|
};
|
|
3454
|
-
protoOf(DefaultPool).
|
|
3455
|
-
this.
|
|
3456
|
-
if (this.
|
|
3457
|
-
this.
|
|
3477
|
+
protoOf(DefaultPool).v42 = function (instance) {
|
|
3478
|
+
this.t42(instance);
|
|
3479
|
+
if (this.q42_1 === this.o42_1) {
|
|
3480
|
+
this.r42(instance);
|
|
3458
3481
|
} else {
|
|
3459
|
-
var _unary__edvuaz = this.
|
|
3460
|
-
this.
|
|
3461
|
-
this.
|
|
3482
|
+
var _unary__edvuaz = this.q42_1;
|
|
3483
|
+
this.q42_1 = _unary__edvuaz + 1 | 0;
|
|
3484
|
+
this.p42_1[_unary__edvuaz] = instance;
|
|
3462
3485
|
}
|
|
3463
3486
|
};
|
|
3464
3487
|
protoOf(DefaultPool).i1s = function () {
|
|
3465
3488
|
var inductionVariable = 0;
|
|
3466
|
-
var last = this.
|
|
3489
|
+
var last = this.q42_1;
|
|
3467
3490
|
if (inductionVariable < last)
|
|
3468
3491
|
do {
|
|
3469
3492
|
var i = inductionVariable;
|
|
3470
3493
|
inductionVariable = inductionVariable + 1 | 0;
|
|
3471
|
-
var tmp = this.
|
|
3494
|
+
var tmp = this.p42_1[i];
|
|
3472
3495
|
var instance = !(tmp == null) ? tmp : THROW_CCE();
|
|
3473
|
-
this.
|
|
3474
|
-
this.
|
|
3496
|
+
this.p42_1[i] = null;
|
|
3497
|
+
this.r42(instance);
|
|
3475
3498
|
}
|
|
3476
3499
|
while (inductionVariable < last);
|
|
3477
|
-
this.
|
|
3500
|
+
this.q42_1 = 0;
|
|
3478
3501
|
};
|
|
3479
3502
|
//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).
|
|
3503
|
+
protoOf(Read).c3r = resume;
|
|
3504
|
+
protoOf(Read).d3r = resume_0;
|
|
3505
|
+
protoOf(Write).c3r = resume;
|
|
3506
|
+
protoOf(Write).d3r = resume_0;
|
|
3507
|
+
protoOf(ByteChannel).k3t = awaitContent$default;
|
|
3508
|
+
protoOf(ByteReadChannel$Companion$Empty$1).k3t = awaitContent$default;
|
|
3509
|
+
protoOf(CountedByteReadChannel).k3t = awaitContent$default;
|
|
3510
|
+
protoOf(SourceByteReadChannel).k3t = awaitContent$default;
|
|
3488
3511
|
protoOf(DefaultPool).j4 = close;
|
|
3489
3512
|
protoOf(NoPoolImpl).j4 = close;
|
|
3490
3513
|
//endregion
|
|
@@ -3531,6 +3554,7 @@ export {
|
|
|
3531
3554
|
ByteReadChannel_1 as ByteReadChannel2wzou76jce72d,
|
|
3532
3555
|
ClosedByteChannelException as ClosedByteChannelException3il8gfpye60w,
|
|
3533
3556
|
WriterScope as WriterScope3b0bo1enaee6b,
|
|
3557
|
+
attachJob as attachJoby0kwkw2fc958,
|
|
3534
3558
|
attachWriterJob as attachWriterJob2dr3tee7atoa9,
|
|
3535
3559
|
cancel_0 as canceldn4b3cdqcfny,
|
|
3536
3560
|
close_0 as close3semq7pafb42g,
|
|
@@ -3540,6 +3564,7 @@ export {
|
|
|
3540
3564
|
readText as readText3frapgncbqrcg,
|
|
3541
3565
|
rethrowCloseCauseIfNeeded_0 as rethrowCloseCauseIfNeeded3ixo8wl4o3bz4,
|
|
3542
3566
|
writer as writer1eia5its2a1fh,
|
|
3567
|
+
writer_0 as writers3lcf9rq7qek,
|
|
3543
3568
|
};
|
|
3544
3569
|
//endregion
|
|
3545
3570
|
|